1(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[22],{UOww:function(e,t,n){"use strict";var c=n("nKUr"),r=n("cpVT"),i=n("7++0"),s=n("dDsW"),a=n("kriW"),o=n("bgFo"),j=n("hG6G"),d=n("dhJC"),l=n("q1tI"),u=n("SY7M"),b=n("qVkf"),O=n("4+6U"),x=n("auP5"),h=n("nocy"),m=n("kDLb"),p=n("Nd01");function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Object(i.e)({"react-intl-formatted-duration.daysUnit":{id:"react-intl-formatted-duration.daysUnit",defaultMessage:"{value, plural, one {day} other {days}}"},"react-intl-formatted-duration.hoursUnit":{id:"react-intl-formatted-duration.hoursUnit",defaultMessage:"{value, plural, one {hour} other {hours}}"},"react-intl-formatted-duration.minutesUnit":{id:"react-intl-formatted-duration.minutesUnit",defaultMessage:"{value, plural, one {min} other {min}}"},"react-intl-formatted-duration.secondsUnit":{id:"react-intl-formatted-duration.secondsUnit",defaultMessage:"{value, plural, one {second} other {seconds}}"}});var v=Object(i.e)({productName:{id:"modules.Receipt.orderTypes.productName",defaultMessage:"Product"},totalAmount:{id:"total",defaultMessage:"Total"},amountWithoutVat:{id:"modules.Receipt.orderTypes.amountWithoutVat",defaultMessage:"Amount w/o VAT"},totalIncludingVAT:{id:"modules.Receipt.orderTypes.totalIncludingVAT",defaultMessage:"Total including VAT"},vat:{id:"modules.Receipt.orderTypes.vat",defaultMessage:"VAT"},fromStation:{id:"modules.Receipt.orderTypes.fromStation",defaultMessage:"From {station} ({date})"},toStation:{id:"modules.Receipt.orderTypes.toStation",defaultMessage:"To {station} ({date})"},startLocation:{id:"trip_summary_pick_up",defaultMessage:"Pick up"},endLocation:{id:"trip_summary_drop_off",defaultMessage:"Drop off"},totalTime:{id:"modules.Receipt.orderTypes.totalTime",defaultMessage:"Total time: {totalTime}"},includedTime:{id:"modules.Receipt.orderTypes.includedTime",defaultMessage:"Included {includedMinutes} min:"},walletDeposit:{id:"modules.Profile.Receipts.table.type.walletDeposit",defaultMessage:"Wallet Deposit:"}}),y={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric"},A=function(e){var t=e.trip;return t?t.startLocation?Object(c.jsxs)(x.u,{alignItems:"center",children:[Object(c.jsx)(x.R,{small:!0,mr:2,children:Object(c.jsx)(a.a,g({},v.startLocation))}),t.startedAt&&Object(c.jsxs)(x.R,{small:!0,children:["(",Object(c.jsx)(i.a,g({value:t.startedAt},y)),")"]})]}):t.startDock?Object(c.jsx)(a.a,g(g({},v.fromStation),{},{values:{station:t.startDock.dockGroup.title||t.startDock.dockGroup.name,date:t.startedAt&&Object(c.jsx)(i.a,g({value:t.startedAt},y))}})):null:null},T=function(e){var t=e.trip;return t?t.endLocation?Object(c.jsxs)(x.u,{alignItems:"center",children:[Object(c.jsx)(x.R,{small:!0,mr:2,children:Object(c.jsx)(a.a,g({},v.endLocation))}),t.endedAt&&Object(c.jsxs)(x.R,{small:!0,children:["(",Object(c.jsx)(i.a,g({value:t.endedAt},y)),")"]})]}):t.endDock?Object(c.jsx)(a.a,g(g({},v.toStation),{},{values:{station:t.endDock.dockGroup.title||t.endDock.dockGroup.name,date:t.endedAt&&Object(c.jsx)(i.a,g({value:t.endedAt},y))}})):null:null};function R(e){var t=e.order,n=Object(d.a)(e,["order"]),r=(t.discount?t.discount.totalVatAmountDiscounted:t.vatAmount)||0,i=t.discount?t.discount.totalAmountDiscounted:t.amount||0;return Object(c.jsxs)(x.P,g(g({},n),{},{children:[Object(c.jsxs)("tbody",{children:[t.orderLines.map((function(e){if(!e)return null;var t=e.product&&e.product.name,n="registration_fee"===e.type;return Object(c.jsxs)(l.Fragment,{children:[Object(c.jsxs)(x.T,{children:[Object(c.jsx)(x.Q,{borderWidth:e.discount?"0":void 0,children:n?Object(c.jsx)(x.R,{mb:"xs",children:Object(c.jsx)(a.a,{id:"modules.Receipt.RegistrationFee.subHeading",defaultMessage:"Registration fee"})}):"".concat(t," \xd7 ").concat(e.quantity)}),Object(c.jsx)(x.Q,{textAlign:"right",borderWidth:e.discount?"0":void 0,children:Object(c.jsx)(h.a,{value:e.totalAmount,precision:2})})]}),e.discount&&Object(c.jsxs)(x.T,{children:[Object(c.jsxs)(x.Q,{py:0,pb:x.V.xxs,
1children:[Object(c.jsx)(a.a,{id:"discount",defaultMessage:"Discount"})," ",Object(c.jsx)("em",{children:e.discount.name})," \xd7"," ",e.discount.quantityDiscounted," ","RelativeDiscountAmount"===e.discount.discountAmount.__typename&&Object(c.jsx)(m.a,{discountAmount:e.discount.discountAmount})]}),Object(c.jsx)(x.Q,{py:0,pb:x.V.xxs,textAlign:"right",children:Object(c.jsx)(h.a,{value:e.discount.totalDiscountAmount,precision:2})})]})]},e.id)})),Object(c.jsxs)(x.T,{children:[Object(c.jsx)(x.Q,{children:Object(c.jsx)(x.R,{bold:!0,children:Object(c.jsx)(a.a,g({},v.totalAmount))})}),Object(c.jsx)(x.Q,{textAlign:"right",children:Object(c.jsx)(x.R,{bold:!0,"data-testid":"OrderTable__OrderAmount",children:Object(c.jsx)(h.a,{value:i,precision:2})})})]})]}),Object(c.jsx)("tfoot",{children:Object(c.jsxs)(x.T,{children:[Object(c.jsx)(x.Q,{children:Object(c.jsx)(x.R,{mute:!0,small:!0,children:Object(c.jsx)(a.a,g({},v.vat))})}),Object(c.jsx)(x.Q,{textAlign:"right",children:Object(c.jsx)(x.R,{mute:!0,small:!0,children:Object(c.jsx)(h.a,{value:r,precision:2})})})]})})]}))}var Q={subscription:R,reservation:function(e){var t=e.order,n=Object(d.a)(e,["order"]);return Object(c.jsxs)(x.P,g(g({},n),{},{children:[Object(c.jsxs)("tbody",{children:[t.orderLines.map((function(e){return e?Object(c.jsx)(l.Fragment,{children:Object(c.jsxs)(x.T,{children:[Object(c.jsx)(x.Q,{children:Object(c.jsx)(x.R,{mb:"xs",children:Object(c.jsx)(a.a,{id:"modules.Receipt.orderTypes.reservation",defaultMessage:"Reservation"})})}),Object(c.jsx)(x.Q,{textAlign:"right",children:Object(c.jsx)(h.a,{value:e.totalAmount,precision:2})})]})},e.id):null})),Object(c.jsxs)(x.T,{children:[Object(c.jsx)(x.Q,{children:Object(c.jsx)(x.R,{bold:!0,children:Object(c.jsx)(a.a,g({},v.totalAmount))})}),Object(c.jsx)(x.Q,{textAlign:"right",children:Object(c.jsx)(x.R,{bold:!0,"data-testid":"OrderReservationTable__OrderAmount",children:Object(c.jsx)(h.a,{value:t.amount||0,precision:2})})})]})]}),Object(c.jsx)("tfoot",{children:Object(c.jsxs)(x.T,{children:[Object(c.jsx)(x.Q,{children:Object(c.jsx)(x.R,{mute:!0,small:!0,children:Object(c.jsx)(a.a,g({},v.vat))})}),Object(c.jsx)(x.Q,{textAlign:"right",children:Object(c.jsx)(x.R,{mute:!0,small:!0,children:Object(c.jsx)(h.a,{value:t.vatAmount||0,precision:2})})})]})})]}))},value_code:R,trip:function(e){var t=e.order,n=t.vatAmount||0,r=t&&t.trip,i=r&&r.duration||0;return Object(c.jsx)(c.Fragment,{children:Object(c.jsxs)(x.P,{children:[Object(c.jsxs)("tbody",{children:[r&&Object(c.jsxs)(c.Fragment,{children:[Object(c.jsx)(x.T,{children:Object(c.jsx)(x.Q,{textAlign:"left",colSpan:2,children:Object(c.jsx)(A,{trip:r})})}),Object(c.jsx)(x.T,{children:Object(c.jsx)(x.Q,{textAlign:"left",colSpan:2,children:Object(c.jsx)(T,{trip:r})})}),Object(c.jsx)(x.T,{children:Object(c.jsx)(x.Q,{textAlign:"right",colSpan:2,children:i&&Object(c.jsx)(a.a,g(g({},v.totalTime),{},{values:{totalTime:Object(c.jsx)(u.a,{format:"{days} {hours} {minutes} {seconds}",seconds:i})}}))})})]}),t.orderLines&&t.orderLines.map((function(e){var t="free_minutes_per_day"===(null===e||void 0===e?void 0:e.type);return e?Object(c.jsx)(l.Fragment,{children:Object(c.jsxs)(x.T,{children:[Object(c.jsx)(x.Q,{colSpan:1,children:Object(c.jsx)(x.R,{children:e.orderLineTitle})}),Object(c.jsx)(x.Q,{textAlign:"right",children:t?e.amount||0:e.totalAmount&&Object(c.jsx)(h.a,{value:e.totalAmount,precision:2})})]})},e.id):null})),Object(c.jsxs)(x.T,{children:[Object(c.jsx)(x.Q,{colSpan:1,children:Object(c.jsx)(x.R,{fontWeight:"bold",children:Object(c.jsx)(a.a,g({},v.totalAmount))})}),Object(c.jsx)(x.Q,{textAlign:"right",children:t.amount&&Object(c.jsx)(h.a,{value:t.amount,precision:2})})]})]}),Object(c.jsx)("tfoot",{children:Object(c.jsxs)(x.T,{children:[Object(c.jsx)(x.Q,{children:Object(c.jsx)(x.R,{mute:!0,small:!0,children:Object(c.jsx)(a.a,g({},v.vat))})}),Object(c.jsx)(x.Q,{textAlign:"right",children:Object(c.jsx)(x.R,{mute:!0,small:!0,children:Object(c.jsx)(h.a,{value:n,precision:2})})})]})})]})})},extended_rental:function(e){var t=e.order,n=t.vatAmount||0,r=t&&t.trip,i=r&&r.duration||0,s=r&&r.freePeriodMins||0,o=r&&r.paidPeriodMins||0;return Object(c.jsxs)(c.Fragment,{children:[r&&Object(c.jsx)(x.P,{mb:"sm",children:Object(c.jsxs)("tbody",{children:[Object(c.jsx)(x.T,{children:Object(c.jsx)(x.Q,{textAlign:"left",colSpan:2,children:Object(c.jsx)(A,{trip:r})})}),Object(c.jsx)(x.T,{children:Object(c.jsx)(x.Q,{textAlign:"left",colSpan:2,children:Object(c.jsx)(T,{trip:r})})}),Object(c.jsx)(x.T,{children:Object(c.jsx)(x.Q,{textAlign:"right",colSpan:2,children:i&&Object(c.jsx)(a.a,g(g({},v.totalTime),{},{values:{totalTime:Object(c.jsx)(u.a,{format:"{days} {hours} {minutes} {seconds}",seconds:i})}}))})})]})}),Object(c.jsxs)(x.P,{children:[Object(c.jsxs)("tbody",{children:[Object(c.jsxs)(x.T,{children:[Object(c.jsx)(x.Q,{children:Object(c.jsx)(a.a,g(g({},v.includedTime),{},{values:{includedMinutes:s}}))}),Object(c.jsx)(x.Q,{textAlign:"right",children:Object(c.jsx)(h.a,{value:0,precision:2})})]}),Object(c.jsxs)(x.T,{children:[Object(c.jsx)(x.Q,{children:o&&Object(c.jsxs)(c.Fragment,{children:[Object(c.jsx)(a.a,g({},p.b.extendedRental))," ",Object(c.jsx)(u.a,{format:"{days} {hours} {minutes} {seconds}",seconds:60*o}),":"]})}),Object(c.jsx)(x.Q,{textAlign:"right",children:t.amount&&Object(c.jsx)(h.a,{value:t.amount,precision:2})})]}),Object(c.jsxs)(x.T,{children:[Object(c.jsx)(x.Q,{children:Object(c.jsx)(x.R,{bold:!0,children:Object(c.jsx)(a.a,g({},v.totalAmount))})}),Object(c.jsx)(x.Q,{textAlign:"right",children:Object(c.jsx)(x.R,{bold:!0,"data-testid":"OrderTable__OrderAmount",children:t.amount&&Object(c.jsx)(h.a,{value:t.amount,precision:2})})})]})]}),Object(c.jsx)("tfoot",{children:Object(c.jsxs)(x.T,{children:[Object(c.jsx)(x.Q,{children:Object(c.jsx)(x.R,{mute:!0,small:!0,children:Object(c.jsx)(a.a,g({},v.vat))})}),Object(c.jsx)(x.Q,{textAlign:"right",children:Object(c.jsx)(x.R,{mute:!0,small:!0,children:Object(c.jsx)(h.a,{value:n,precision:2})})})]})})]})]})}
1,pay2go:function(e){var t=e.order,n=t.vatAmount||0,r=t.trip,s=r&&r.startedAt&&Object(O.a)(r.startedAt),o=r&&r.endedAt&&Object(O.a)(r.endedAt),j=o&&s&&Object(b.a)(o,s);return Object(c.jsxs)(c.Fragment,{children:[Object(c.jsx)(x.P,{mb:"sm",children:Object(c.jsxs)("tbody",{children:[Object(c.jsx)(x.T,{children:Object(c.jsx)(x.Q,{colSpan:2,children:r&&r.startDock&&r.startDock.dockGroup&&r.startedAt&&Object(c.jsx)(a.a,g(g({},v.fromStation),{},{values:{station:r.startDock.dockGroup.title||r.startDock.dockGroup.name,date:Object(c.jsx)(i.a,g({value:r.startedAt},y))}}))})}),Object(c.jsx)(x.T,{children:Object(c.jsx)(x.Q,{colSpan:2,children:r&&r.endDock&&r.endDock.dockGroup&&r.endedAt&&Object(c.jsx)(a.a,g(g({},v.toStation),{},{values:{station:r.endDock.dockGroup.title||r.endDock.dockGroup.name,date:Object(c.jsx)(i.a,g({value:r.endedAt},y))}}))})}),Object(c.jsx)(x.T,{children:Object(c.jsx)(x.Q,{colSpan:2,textAlign:"right",children:Object(c.jsx)(a.a,g(g({},v.totalTime),{},{values:{totalTime:Object(c.jsx)(u.a,{format:"{days} {hours} {minutes} {seconds}",seconds:j})}}))})})]})}),Object(c.jsxs)(x.P,{children:[Object(c.jsxs)("tbody",{children:[Object(c.jsxs)(x.T,{children:[Object(c.jsx)(x.Q,{children:Object(c.jsx)(a.a,{id:"modules.Receipt.orderTypes.tripDuration",defaultMessage:"Cost of {tripDuration}",values:{tripDuration:Object(c.jsx)(u.a,{format:"{days} {hours} {minutes} {seconds}",seconds:j})}})}),Object(c.jsx)(x.Q,{textAlign:"right",children:null!==t.amount&&void 0!==t.amount&&Object(c.jsx)(h.a,{value:t.amount,precision:2})})]}),Object(c.jsxs)(x.T,{children:[Object(c.jsx)(x.Q,{children:Object(c.jsx)(x.R,{bold:!0,children:Object(c.jsx)(a.a,g({},v.totalAmount))})}),Object(c.jsx)(x.Q,{textAlign:"right",children:Object(c.jsx)(x.R,{bold:!0,children:t.amount&&Object(c.jsx)(h.a,{value:t.amount,precision:2})})})]})]}),Object(c.jsx)("tfoot",{children:Object(c.jsxs)(x.T,{children:[Object(c.jsx)(x.Q,{children:Object(c.jsx)(x.R,{mute:!0,small:!0,children:Object(c.jsx)(a.a,g({},v.vat))})}),Object(c.jsx)(x.Q,{textAlign:"right",children:Object(c.jsx)(x.R,{mute:!0,small:!0,children:Object(c.jsx)(h.a,{value:n,precision:2})})})]})})]})]})},business_registration_fee:function(e){var t=e.order;return Object(c.jsxs)(c.Fragment,{children:[Object(c.jsx)(x.R,{mb:"xs",fontWeight:"bold",children:Object(c.jsx)(a.a,{id:"modules.Receipt.RegistrationFee.subHeading",defaultMessage:"Registration fee"})}),Object(c.jsxs)(x.P,{variant:"simple",mb:"sm",children:[Object(c.jsx)("thead",{children:Object(c.jsxs)(x.T,{children:[Object(c.jsx)(x.S,{children:Object(c.jsx)(a.a,g({},v.productName))}),Object(c.jsx)(x.S,{textAlign:"right",children:Object(c.jsx)(a.a,g({},v.amountWithoutVat))})]})}),Object(c.jsx)("tbody",{children:t.orderLines&&t.orderLines.map((function(e){return e?Object(c.jsxs)(x.T,{children:[Object(c.jsx)(x.Q,{children:Object(c.jsxs)(x.R,{fontWeight:"bold",children:[e.product&&e.product.name," \xd7"," ",e.valueCodes&&e.valueCodes.length]})}),Object(c.jsx)(x.Q,{textAlign:"right",children:e.amountWithoutVat&&Object(c.jsx)(h.a,{value:e.amountWithoutVat})})]},e.id):null}))}),Object(c.jsxs)("tfoot",{children:[Object(c.jsxs)(x.T,{"data-testid":"ReceiptTable__Total",children:[Object(c.jsx)(x.Q,{children:Object(c.jsx)(x.R,{fontSize:2,fontWeight:"bold",children:Object(c.jsx)(a.a,g({},v.totalAmount))})}),Object(c.jsx)(x.Q,{textAlign:"right",children:t.amountWithoutVat&&Object(c.jsx)(x.R,{fontSize:2,fontWeight:"bold",children:Object(c.jsx)(h.a,{value:t.amountWithoutVat})})})]}),Object(c.jsxs)(x.T,{"data-testid":"ReceiptTable__VatAmount",children:[Object(c.jsx)(x.Q,{py:0,children:Object(c.jsx)(a.a,g({},v.vat))}),Object(c.jsx)(x.Q,{py:0,textAlign:"right",children:t.vatAmount&&Object(c.jsx)(h.a,{value:t.vatAmount})})]}),Object(c.jsxs)(x.T,{"data-testid":"ReceiptTable__TotalIncludingVat",children:[Object(c.jsx)(x.Q,{py:0,children:Object(c.jsx)(a.a,g({},v.totalIncludingVAT))}),Object(c.jsx)(x.Q,{py:0,textAlign:"right",children:t.amount&&Object(c.jsx)(h.a,{value:t.amount})})]})]})]})]})},business_regular_charge:function(e){var t=e.order,n=(t.orderLines||[]).reduce((function(e,t){return t&&t.valueCodes?e+t.valueCodes.length:e}),0);return Object(c.jsxs)(c.Fragment,{children:[Object(c.jsx)(x.R,{mb:"xs",children:t.completedAt&&Object(c.jsx)(x.R,{fontWeight:"bold",children:Object(c.jsx)(a.a,{id:"modules.Receipt.orderTypes.subHeading",values:{numberOfValueCodes:n,month:Object(c.jsx)(i.a,{value:t.completedAt,year:"numeric",month:"long"})}})})}),Object(c.jsxs)(x.P,{variant:"simple",mb:"sm",children:[Object(c.jsx)("thead",{children:Object(c.jsxs)(x.T,{children:[Object(c.jsx)(x.S,{children:Object(c.jsx)(a.a,g({},v.productName))}),Object(c.jsx)(x.S,{children:Object(c.jsx)(a.a,{id:"modules.Receipt.orderTypes.table.code",defaultMessage:"Code"})}),Object(c.jsx)(x.S,{children:Object(c.jsx)(a.a,{id:"modules.Receipt.orderTypes.table.redeemedDate",defaultMessage:"Redeemed date"})}),Object(c.jsx)(x.S,{textAlign:"right",children:Object(c.jsx)(a.a,g({},v.amountWithoutVat))})]})}),Object(c.jsx)("tbody",{children:t.orderLines&&t.orderLines.map((function(e){return e?Object(c.jsxs)(l.Fragment,{children:[Object(c.jsxs)(x.T,{children:[Object(c.jsx)(x.Q,{colSpan:3,children:Object(c.jsx)(x.R,{fontWeight:"bold",children:e.product&&e.product.name})}),Object(c.jsx)(x.Q,{textAlign:"right",children:e.amountWithoutVat&&Object(c.jsx)(h.a,{value:e.amountWithoutVat})})]}),e.valueCodes&&e.valueCodes.map((function(e){return e?Object(c.jsxs)(x.T,{children:[Object(c.jsx)(x.Q,{}
1),Object(c.jsx)(x.Q,{children:e.code}),Object(c.jsx)(x.Q,{colSpan:2,children:e.redeemedAt&&Object(c.jsx)(i.a,{value:e.redeemedAt,year:"numeric",month:"long",day:"2-digit",hour:"numeric",minute:"numeric"})})]},e.code):null}))]},e.id):null}))}),Object(c.jsxs)("tfoot",{children:[Object(c.jsxs)(x.T,{children:[Object(c.jsx)(x.Q,{colSpan:3,children:Object(c.jsx)(x.R,{fontSize:2,fontWeight:"bold",children:Object(c.jsx)(a.a,g({},v.totalAmount))})}),Object(c.jsx)(x.Q,{textAlign:"right",children:t.amountWithoutVat&&Object(c.jsx)(x.R,{fontSize:2,fontWeight:"bold",children:Object(c.jsx)(h.a,{value:t.amountWithoutVat})})})]}),Object(c.jsxs)(x.T,{children:[Object(c.jsx)(x.Q,{colSpan:3,py:0,children:Object(c.jsx)(a.a,g({},v.vat))}),Object(c.jsx)(x.Q,{py:0,textAlign:"right",children:t.vatAmount&&Object(c.jsx)(h.a,{value:t.vatAmount})})]}),Object(c.jsxs)(x.T,{children:[Object(c.jsx)(x.Q,{py:0,colSpan:3,children:Object(c.jsx)(a.a,g({},v.totalIncludingVAT))}),Object(c.jsx)(x.Q,{py:0,textAlign:"right",children:t.amount&&Object(c.jsx)(h.a,{value:t.amount})})]})]})]})]})},wallet_deposit:function(e){var t=e.order;return Object(c.jsx)(c.Fragment,{children:Object(c.jsxs)(x.P,{children:[Object(c.jsxs)("tbody",{children:[Object(c.jsxs)(x.T,{children:[Object(c.jsx)(x.Q,{textAlign:"left",colSpan:1,children:Object(c.jsx)(a.a,g({},v.walletDeposit))}),Object(c.jsx)(x.Q,{textAlign:"right",children:t.amount&&Object(c.jsx)(h.a,{value:t.amount,precision:2})})]}),Object(c.jsxs)(x.T,{children:[Object(c.jsx)(x.Q,{colSpan:1,children:Object(c.jsx)(x.R,{fontWeight:"bold",children:Object(c.jsx)(a.a,g({},v.totalAmount))})}),Object(c.jsx)(x.Q,{textAlign:"right",children:t.amount&&Object(c.jsx)(h.a,{value:t.amount,precision:2})})]})]}),Object(c.jsx)("tfoot",{children:Object(c.jsx)(x.T,{children:Object(c.jsx)(x.Q,{textAlign:"right",children:Object(c.jsx)(x.R,{mute:!0,small:!0})})})})]})})},verification:function(){throw new Error("Order type verification not implemented")}},S=n("OUWn"),_=n("sYXu"),k=n("g4pe"),M=n.n(k),D=n("qrrX"),w=n("dRa/");function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return F(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var c=0,r=function(){};return{s:r,n:function(){return c>=e.length?{done:!0}:{done:!1,value:e[c++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}function N(e){var t=new Error(e);return t.code="ENOENT",t}var C=Object(i.e)({header:{id:"receipt",defaultMessage:"Receipt"}});t.a=function(e){var t=e.order,n=e.showHeader,r=void 0===n||n,d=Object(s.a)(),l=Object(j.b)(),u=Object(w.c)();if(l.loading)return null;if(!t)throw N("Order not found");if(!l.data||!l.data.settings)throw N("Settings not found");var b=l.data.settings,O=b&&b.footer,x=function(e){if(e){var t,n=V(e);try{for(n.s();!(t=n.n()).done;){var c=t.value;if("PaymentTransaction"===c.__typename&&c.transactionNumber&&c.status===S.n.completed)return c.transactionNumber;if("WalletTransaction"===c.__typename&&c.id)return c.id}}catch(r){n.e(r)}finally{n.f()}}}(t.paymentTransactions.length>0?t.paymentTransactions:t.walletTransactions),h=Q[t.type];
1if(!h)throw new Error("Renderer for ".concat(t.type," not found"));var m=t.type===S.j.verification||t.type===S.j.business_registration_fee&&0===t.amount;return Object(c.jsxs)(c.Fragment,{children:[Object(c.jsx)(M.a,{children:Object(c.jsx)("title",{children:d.formatMessage(C.header)})}),r&&Object(c.jsx)(_.a,{sanitySettings:b,companyName:t&&t.company&&t.company.name}),!m&&Object(c.jsxs)(c.Fragment,{children:[Object(c.jsx)(o.y,{fontSize:2,mb:2,children:Object(c.jsx)(a.a,W(W({},C.header),{},{values:{siteName:b.title}}))}),Object(c.jsx)(o.mb,{as:"p",mute:!0,children:Object(c.jsx)(a.a,{id:"modules.Receipt.orderNumber",defaultMessage:"Order #{id}",values:{id:t.id}})})]}),Object(c.jsx)(o.e,{mb:2,children:Object(c.jsx)(h,{order:t})}),!m&&Object(c.jsx)(o.e,{mb:4,children:Object(c.jsxs)(o.W,{children:[Object(c.jsx)(o.U,{children:x&&Object(c.jsx)(a.a,{id:"transaction_number_str",defaultMessage:"Transaction number: {transactionNumber}",values:{transactionNumber:x}})},"transactionNumber"),t.completedAt&&Object(c.jsx)(o.U,{children:Object(c.jsx)(a.a,{id:"date_completed_at",defaultMessage:"Date: {completedAt}",values:{completedAt:Object(c.jsx)(i.a,{value:t.completedAt,year:"numeric",month:"long",day:"2-digit",hour:"numeric",minute:"numeric"})}})},t.completedAt),t.creditCardMasked&&Object(c.jsx)(o.U,{"data-testid":"Receipt__creditCardMasked",children:Object(c.jsx)(a.a,{id:"card_creditCardMasked",defaultMessage:"Card: {creditCardMasked}",values:{creditCardMasked:t.creditCardMasked}})},t.creditCardMasked)]})}),u.contactEmail&&Object(c.jsx)(o.mb,{textAlign:"center",as:"p",mb:4,children:Object(c.jsx)(a.a,{id:"modules.Receipt.contact",defaultMessage:"For customer service or other inquiries, please send us an email at {contactEmail}",values:{contactEmail:Object(c.jsx)(o.b,{color:"text",href:"mailto:".concat(u.contactEmail),children:u.contactEmail})}})}),O&&O.aboutOperator&&Object(c.jsx)(o.mb,{textAlign:"center",small:!0,mute:!0,children:Object(c.jsx)(D.a,{blocks:O.aboutOperator})})]})}},kDLb:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var c=n("nKUr"),r=n("7++0"),i=n("nocy");function s(e){var t=e.discountAmount;switch(t.__typename){case"AbsoluteDiscountAmount":return Object(c.jsx)(i.a,{value:-t.amount});case"RelativeDiscountAmount":return Object(c.jsx)(r.b,{value:-t.amount/100,style:"percent"})}}},qVkf:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var c=n("Orh4"),r=n("jIYg");function i(e,t){Object(r.a)(2,arguments);var n=Object(c.a)(e,t)/1e3;return n>0?Math.floor(n):Math.ceil(n)}},sYXu:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return l}));var c=n("nKUr"),r=n("bgFo"),i=n("DPir"),s=n("hK0Q"),a=n("qrrX"),o=n("YyUk"),j=n("dRa/"),d=function(e){var t,n=e.sanitySettings,a=e.companyName,d=Object(s.d)(),l=Object(j.c)(),u=Object(i.e)(d,l);u&&(t=o.e+"/v1/favicons/public-web/".concat(u,"/android-chrome-256x256.png"));var b,O=n.title;O&&(b=!0);return Object(c.jsxs)(r.e,{textAlign:"center",children:[t&&Object(c.jsx)(r.e,{mb:"xxs",color:"primaryText",width:100,mx:"auto",children:Object(c.jsx)(r.P,{width:100,src:t})}),b&&Object(c.jsxs)(r.mb,{as:"p",color:"primaryText",typoStyle:"xs",children:[O," ",a&&"| ".concat(a)]})]})},l=function(e){var t=e.children,n=e.textAlign,i=e.companyName,s=e.sanitySettings;return Object(c.jsxs)(r.e,{textAlign:n,m:"sm",children:[Object(c.jsx)(d,{companyName:i,sanitySettings:s}),t,s.footer&&s.footer.aboutOperator&&Object(c.jsx)(r.mb,{fontWeight:"normal",textAlign:"center",small:!0,mute:!0,children:Object(c.jsx)(a.a,{blocks:s.footer.aboutOperator})})]})}}}]); 2//# sourceMappingURL=18582e01cd9021190ec883354d44283524bcc806.b13f53735288884e65ed.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.