PageSourceSearch

https://oslobysykkel.no/_next/static/chunks/pages/order-confirmation-d6e80bff93976e0ef091.js

js oslobysykkel.no collected 2026-10-01 12:34:39 UTC 6,419 bytes, 2 lines download raw bytes

1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[60],{"+X1/":function(e,t,r){"use strict";r.r(t);var n=r("vJKn"),i=r.n(n),a=r("rg98"),o=r("nKUr"),d=r("+TN3"),s=r("7++0"),c=r("dDsW"),l=r("lGJd"),u=r("bgFo"),f=r("cpVT"),m=r("kriW"),b=r("UOww"),p=Object(s.e)({heading:{id:"modules.OrderConfirmation.heading",defaultMessage:"Order completed"},receipt:{id:"receipt",defaultMessage:"Receipt"},giftCardDescription:{id:"modules.OrderConfirmation.giftCard.description",defaultMessage:"{quantity, plural, one {Your gift card is sent to} other {Your gift cards are sent to}} {mail} We have also sent this receipt to the same email"},giftCardListHeading:{id:"modules.OrderConfirmation.giftCardList.heading",defaultMessage:"{quantity, plural, one {Gift card} other {Gift cards}}"},thanksForPurchase:{id:"modules.OrderConfirmation.thanksForPurchase",defaultMessage:"Thank you for your purchase, this invoice will also be sent by email."},transactionNumberNotFound:{id:"could_not_load_payment_transaction",defaultMessage:"Could not load payment transaction"},transactionNumber:{id:"transaction_number_str",defaultMessage:"Transaction number: {transactionNumber}"},date:{id:"date_completed_at",defaultMessage:"Date: {completedAt}"},creditCardMasked:{id:"card_creditCardMasked",defaultMessage:"Card: {creditCardMasked}"},giftCardLink:{id:"modules.OrderConfirmation.giftCardLink",defaultMessage:"See the gift card"}});function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach((function(t){Object(f.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var O=function(e){var t=e.order,r=e.receiptPage,n=t.orderLines.reduce((function(e,t){return t&&(e+=t.quantity),e}),0);return Object(o.jsx)(u.t,{alignItems:"center",column:!0,"data-testid":"OrderConfirmation",children:Object(o.jsxs)(u.e,{children:[Object(o.jsx)(u.B,{textAlign:"center",children:r&&r.title?r.title:Object(o.jsx)(m.a,g({},p.heading))}),"value_code"===t.type&&Object(o.jsx)(u.mb,{as:"p",textAlign:"center",children:Object(o.jsx)(m.a,g(g({},p.giftCardDescription),{},{values:{quantity:n,mail:Object(o.jsxs)(u.mb,{as:"span",typoStyle:"sm",color:"primary",children:[t.customerEmail,Object(o.jsx)("br",{}),Object(o.jsx)("br",{})]})}}))}),Object(o.jsx)(u.mb,{as:"p",textAlign:"center",children:Object(o.jsx)(m.a,g({},p.thanksForPurchase))}),t.valueCodes&&t.valueCodes.length>0&&Object(o.jsxs)(u.e,{mb:"sm",children:[Object(o.jsxs)(u.kb,{"data-testid":"OrderConfirmation__GiftCards",children:[Object(o.jsx)(u.j,{children:Object(o.jsx)(m.a,g(g({},p.giftCardListHeading),{},{values:{quantity:n}}))}),Object(o.jsx)("tbody",{children:t.valueCodes.map((function(e){return e?Object(o.jsxs)(u.pb,{"data-testid":"OrderConfirmation__GiftCards__GiftCard",children:[Object(o.jsx)(u.lb,{children:Object(o.jsx)(u.mb,{mute:!0,children:e.product&&e.product.name})}),Object(o.jsx)(u.lb,{textAlign:"right",children:Object(o.jsx)(u.V,{route:"giftcard",params:{token:e.token},passHref:!0,children:Object(o.jsx)(u.b,{children:Object(o.jsx)(m.a,g({},p.giftCardLink))})})})]},e.token):null}))})]}),Object(o.jsx)("ol",{})]}),Object(o.jsx)(b.a,{order:t,showHeader:!1})]})})},k=r("oIFK"),h=r("n8X0"),v=r("Ikds"),y=Object(s.e)({title:{id:"pages.order-confirmation.title",defaultMessage:"Order confirmation"}}),x={kind:"Document",definitions:function(e){var t={};return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var r=e.name.value;return!t[r]&&(t[r]=!0,!0)}))}([{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"orderConfirmationQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"orderToken"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"receiptPage"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"orderTitle"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"order"},arguments:[{kind:"Argument",name:{kind:"Name",value:"token"},value:{kind:"Variable",name:{kind:"Name",value:"orderToken"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ReceiptOrder"},directives:[]}]}}]}}].concat(v.a.definitions)),loc:{start:0,end:176,source:{body:"\n  \n  query orderConfirmationQuery($orderToken: String!) {\n    receiptPage {\n      title\n      orderTitle\n    }\n    order(token: $orderToken) {\n      ...ReceiptOrder\n    }\n  }\n",name:"GraphQL request",locationOffset:{line:1,column:1}}}},C=function(e){var t=e.url,r=e.token,n=e.statusCode,i=Object(c.a)(),a=Object(d.f)(x,{variables:{orderToken:r}}
1),s=a.data,f=a.loading;return Object(o.jsx)(l.a,{statusCode:n,type:"article",title:s&&s.receiptPage&&s.receiptPage.title?s.receiptPage.title:i.formatMessage(y.title),url:t,loading:f,render:function(){return s&&s.receiptPage&&s.order?Object(o.jsx)(u.l,{variant:"narrow",children:Object(o.jsx)(O,{order:s.order,receiptPage:s.receiptPage})}):null}})};C.getInitialProps=function(){var e=Object(a.a)(i.a.mark((function e(t){var r,n,a,o;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=Object(k.b)(t.query.token)){e.next=5;break}throw(n=new Error("Page not found")).code="ENOENT",n;case 5:return e.next=7,t.apolloClient.query({query:x,variables:{orderToken:r}});case 7:return(a=e.sent).data&&a.data.order&&a.data.receiptPage||(o=404,t.res&&(t.res.statusCode=o)),e.abrupt("return",{statusCode:o,token:r});case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();t.default=Object(h.a)(C)},EvqG:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/order-confirmation",function(){return r("+X1/")}])}},[["EvqG",1,2,3,0,4,5,6,7,19,22]]]);
2//# sourceMappingURL=order-confirmation-d6e80bff93976e0ef091.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.