PageSourceSearch

https://static.naf.no/static/pages-internationalDrivingPermit-components-Receipt-Receipt.844235dcb7ad049c.js

js naf.no collected 2026-09-24 17:48:31 UTC 6,657 bytes, 2 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[352],{45278(e,t,i){i.r(t),i.d(t,{IdpReceipt:()=>B});var r=i(11684),a=i(12888),s=i(2422),n=i(54046),d=i(94605),o=i(65642),m=i(27301),p=i(84645),c=i(53002),l=i(53885),u=i(60039),g=i(89130),h=i(83584),x=i(15999),b=i(78122),y=i(95205),f=i(1168),j=i(40947),w=i(22024);let _=e=>[b.J.MembershipWithRoadsideAssistance,b.J.Membership].includes(e);var A=i(38415),v=i(84824),N=i(21419),Y=i(96757),S=i(84204),K=i(57413);let k=(0,Y.A)("div",{target:"eyx0sjw0"})("display:flex;justify-content:center;margin:50px 0;@media (max-width:",S.fi.m,"){margin:20px 0;}");(0,Y.A)("img",{target:"eyx0sjw1"})("margin-bottom:",S.YK.space40,";@media (max-width:",S.fi.m,"){display:block;margin:0 auto;margin-bottom:",S.YK.space24,";}");let I=(0,Y.A)(v.EY,{target:"eyx0sjw2"})("&::after{overflow:hidden;display:inline-block;vertical-align:bottom;animation:ellipsis steps(4,end) 900ms infinite;content:'\\2026';width:0;}@keyframes ellipsis{to{width:25px;}}@keyframes ellipsis{to{width:25px;}}"),O=(0,Y.A)("div",{target:"eyx0sjw3"})("b{font-weight:bold;}h3{margin-top:0;}@media (max-width:",S.fi.m,"){margin-top:",S.YK.space32,";}"),J=(0,Y.A)(A.bn,{target:"eyx0sjw4"})("grid-column-start:9;@media (max-width:",S.fi.m,"){grid-column-start:auto;margin-top:",S.YK.space40,";}");(0,Y.A)("div",{target:"eyx0sjw5"})("background-color:",K.nafColor.primary.dew,";padding:",S.YK.space32,";h3{margin:0;}"),(0,Y.A)("div",{target:"eyx0sjw6"})("padding:",S.YK.space32," 0;border-bottom:1px solid rgb(26 26 26 / 12%);h5{margin:0;}"),(0,Y.A)("div",{target:"eyx0sjw7"})("padding-top:",S.YK.space32,";display:flex;justify-content:space-between;align-items:end;"),(0,Y.A)("div",{target:"eyx0sjw8"})("display:flex;justify-content:space-between;align-items:start;gap:",S.YK.space16,";&:not(:last-child){padding-bottom:",S.YK.space32,";}h5:last-child{white-space:nowrap;text-align:right;min-width:70px;}");let E=(0,Y.A)(v.EY,{target:"eyx0sjw10"})("margin-bottom:",S.YK.space64,";@media (max-width:",S.fi.m,"){margin-bottom:",S.YK.space32,";}"),D=(0,Y.A)(A.bn,{target:"eyx0sjw12"})("margin-top:",S.YK.space64,";@media (max-width:",S.fi.m,"){margin-top:",S.YK.space32,";}> *{margin-bottom:",S.YK.space48,";}");(0,Y.A)(A.TW,{target:"eyx0sjw13"})("margin-top:",S.YK.space80,";");let P=(0,Y.A)("div",{target:"eyx0sjw14"})("margin-top:",S.YK.space32,";"),T=()=>(0,r.jsxs)(A.xA,{children:[(0,r.jsx)(A.bn,{s:"12",m:"12",l:"12",xl:"12",children:(0,r.jsx)(E,{variant:v.J3.Header1,children:"Vi behandler ditt kj\xf8p"})}),(0,r.jsxs)(A.bn,{s:"12",m:"12",l:"12",xl:"12",children:[(0,r.jsx)(k,{children:(0,r.jsx)(N.A,{})}),(0,r.jsx)(I,{variant:v.J3.Header3,children:"Takk for din betaling. Vi forbereder din kj\xf8pskvittering."})]})]});var M=i(47966),R=i(92531),L=i(31144),W=i(76116),C=i(19015);let U=({order:e,windowPath:t})=>{let{summary:{orderSummaries:i,grandTotal:a}}=e||{summary:{}},s=e?.productPaymentOutcome?.paymentReceipt?.content||[],n=e?.productPaymentOutcome?.paymentReceipt?.stepByStep;return(0,r.jsxs)(A.xA,{children:[(0,r.jsxs)(A.bn,{s:"12",m:"12",l:"8",xl:"8",children:[(0,r.jsx)(M.A,{value:e.productPaymentOutcome?.paymentReceipt?.body}),n&&(0,r.jsx)(P,{children:(0,r.jsx)(W.A,{title:n.title,ingress:n.ingress,list:n.list,variant:"secondary"})})]}),i&&(0,r.jsx)(J,{s:"12",m:"12",l:"4",xl:"4",children:(0,r.jsx)(C.B,{orderSummaries:i,grandTotal:a})}),s.length>0&&(0,r.jsx)(A.TW,{children:(0,r.jsx)(D,{s:"12",m:"12",l:"12",xl:"12",children:(0,r.jsx)(R.m,{content:s})})}),(0,r.jsx)(A.TW,{children:(0,r.jsx)(A.bn,{s:"12",m:"12",l:"8",xl:"8",children:(0,r.jsx)(L.A,{title:"Savner du noe informasjon p\xe5 denne siden?",contentUrl:t})})})]})};var H=i(58867);let B=()=>{let{orderId:e}=(0,s.g)(),t=(0,o.S)(e),{summary:{orderSummaries:i,grandTotal:A,campaignCode:v,customerId:N}}=t||{summary:{}},Y=(0,c.n)(),S=(0,h.T)(),{trackPurchase:K,trackEvent:k}=(0,x.A)(),I=(0,n.wA)(),{simpleToken:J}=(0,m.j)();(0,a.useEffect)(()=>{(({dataLayer:e,orderId:t,orderSummaries:i,grandTotal:r,paymentOrderStatus:a,customerId:s})=>{let n=`gtm_idp_purchase_event_${t}`;if("u">typeof window&&window.sessionStorage?.getItem(n))return;let o=(0,w.P)();if(e&&t&&i&&i.length>0&&void 0!==r&&a===d.nd.PAID){let a=i.some(e=>_(e.productNumber)),d=i.some(e=>e.productNumber===b.J.MembershipWithRoadsideAssistance),m=i.map((e,t)=>{let i=e.productPrice/e.number,r=_(e.productNumber);return{item_id:e.productNumber,item_name:e.productName,price:i.toFixed(2),quantity:e.number.toString(),index:t,item_brand:"NAF",item_category:"NAF",item_category2:r?"Medlemskap":"Tilleggstjenester",item_list_id:"Produktside",item_list_name:"Produkter",affiliation:"Naf.no",...r&&{item_variant:(0,f.v)(e.productNumber)},...o??{}}});e.push({event:j.M.purchase,ecommerce:{purchase_origin:"idp-with-license",...s&&{purchase_user_id:s},transaction_id:t,value:r,currency:"NOK",affiliation:"Naf.no",...a&&{contains_naf_veihjelp:d},items:m}}),"u">typeof window&&window.sessionStorage?.setItem(n,"sent")}})({dataLayer:Y,orderId:e,orderSummaries:i,grandTotal:A,paymentOrderStatus:t?.paymentOrderStatus,customerId:N})},[v,N,Y,A,t?.paymentOrderStatus,e,i]),(0,a.useEffect)(()=>
1{if(t?.paymentOrderStatus===d.nd.PAID&&i&&i.length>0){let t=`espial_idp_purchase_event_${e}`;if("u">typeof window&&window.sessionStorage?.getItem(t))return;K(i);let r=i.find(e=>e.productNumber===b.J.Idp1Year||e.productNumber===b.J.Idp3Year||e.productNumber===b.J.Idp1and3Year),a=i.some(e=>e.productNumber===b.J.MembershipWithRoadsideAssistance||e.productNumber===b.J.Membership)?6:5,s=`${a} - Kvittering`;k(y.S.CHECKOUT_FUNNEL,[{checkout_name:"internasjonalt-forerkort"},{checkout_step:a},{checkout_step_name:s},...r?[{checkout_product:r.productNumber}]:[]]),"u">typeof window&&window.sessionStorage?.setItem(t,"sent")}},[t?.paymentOrderStatus,i,e,K,k]);let E=i?.find(e=>e.productNumber===b.J.Idp1Year||e.productNumber===b.J.Idp3Year||e.productNumber===b.J.Idp1and3Year)?.productNumber,D=i?.some(e=>e.productNumber===b.J.MembershipWithRoadsideAssistance||e.productNumber===b.J.Membership);(0,H.Tv)(E,D?6:5);let P=t&&(t.paymentOrderStatus===d.nd.PAID||t.paymentOrderStatus===d.nd.REGISTERED),M=!t||u.Gu.includes(t.status)&&P,R=P&&!u.Gu.includes(t.status);return(0,a.useEffect)(()=>{R&&J&&I(p.actions.getCustomerInformation.request(J))},[R,J,I]),(0,r.jsx)(l.n,{title:"Ditt kj\xf8p er gjennomf\xf8rt",description:"Du har bestilt internasjonalt f\xf8rerkort",internalSearchMetaData:{cardType:g.Um.Simple},children:(0,r.jsxs)(O,{children:[M&&(0,r.jsx)(T,{}),R&&(0,r.jsx)(U,{order:t,windowPath:S})]})})}}}]);
2//# sourceMappingURL=pages-internationalDrivingPermit-components-Receipt-Receipt.844235dcb7ad049c.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.