PageSourceSearch

https://www.originaltalks.no/_next/static/immutable/chunks/05bispzf2ymf8.js

js originaltalks.no collected 2026-10-08 04:59:58 UTC 8,468 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,413509,e=>{"use strict";var t=e.i(843476),a=e.i(618566),l=e.i(522016),n=e.i(647163),s=e.i(948148),i=e.i(772025),r=e.i(167881),c=e.i(201796);e.s(["default",0,()=>{let e=(0,a.usePathname)().split("/"),d=(0,s.useTranslations)("checkout"),o=[{label:d("step-title-giftcard"),slug:""},{label:d("step-title-user-information"),slug:"customer-information"},{label:d("step-title-payment"),slug:"payment"}],{error:m,validatedOrder:u,customer:f}=(0,i.default)(e=>e);return(0,t.jsxs)("div",{className:"charlie-darwin-container mb-6 mt-8 border-b pb-4 lg:mt-16 lg:border-none lg:pb-0",children:[m&&(0,t.jsx)("div",{className:"mb-12 rounded-md bg-destructive-foreground p-4 text-white",children:m}),(0,t.jsx)("h1",{className:"er mb-5 text-32 font-medium",children:(()=>{if(void 0===e[2])return o[0].label;let t=o.find(t=>t.slug===e[2]);return t?.label})()}),(0,t.jsxs)("div",{className:"-ml-2 flex items-center justify-between gap-4 md:justify-start",children:[(0,t.jsx)(r.Button,{variant:"ghost",className:(0,n.default)("h-fit flex-col gap-2 px-2 lg:h-9 lg:flex-row",void 0===e[2]&&"pointer-events-none underline"),asChild:!0,children:(0,t.jsxs)(l.default,{href:"/giftcard-checkout",children:[(0,t.jsx)("div",{className:"grid h-6 w-6 place-content-center rounded-full bg-primary text-14 font-semibold text-background",children:void 0===u?(0,t.jsx)("span",{children:"1"}):(0,t.jsx)(c.Check,{weight:"bold",size:14})}),(0,t.jsx)("span",{children:d("step-title-giftcard")})]})}),(0,t.jsx)(r.Button,{variant:"ghost",className:(0,n.default)("h-fit flex-col gap-2 px-2 lg:h-9 lg:flex-row",void 0===u&&"pointer-events-none opacity-50","customer-information"===e[2]&&"pointer-events-none underline"),asChild:!0,children:(0,t.jsxs)(l.default,{href:"/giftcard-checkout/customer-information",children:[(0,t.jsx)("div",{className:"grid h-6 w-6 place-content-center rounded-full bg-primary text-14 font-semibold text-background",children:void 0!==f?(0,t.jsx)(c.Check,{weight:"bold",size:14}):(0,t.jsx)("span",{children:"2"})}),(0,t.jsx)("span",{children:d("step-title-user-information")})]})}),(0,t.jsx)(r.Button,{variant:"ghost",className:(0,n.default)("h-fit flex-col gap-2 px-2 lg:h-9 lg:flex-row",void 0===f&&"pointer-events-none opacity-50","payment"===e[2]&&"pointer-events-none underline"),asChild:!0,children:(0,t.jsxs)(l.default,{href:"/giftcard-checkout/payment",children:[(0,t.jsx)("div",{className:"grid h-6 w-6 place-content-center rounded-full bg-primary text-14 font-semibold text-background",children:(0,t.jsx)("span",{children:"3"})}),(0,t.jsx)("span",{children:d("step-title-payment")})]})})]})]})}])},940800,e=>{"use strict";var t=e.i(843476),a=e.i(772025),l=e.i(657688),n=e.i(926714),s=e.i(890371),i=e.i(907419),r=e.i(647163),c=e.i(374009),d=e.i(861745),o=e.i(948148),m=e.i(271645),u=e.i(846696);let f=()=>{let e=(0,d.useLocale)(),[l,f]=(0,m.useState)(!1),{amount:h,value:p,setValidatedOrder:x,reset:g,validatedOrder:v,showInvoiceFee:j}=(0,a.default)(e=>e),b=(0,o.useTranslations)("checkout"),y=(0,o.useTranslations)("error"),_=async()=>{try{let{data:e,error:t}=await (0,n.validateGiftcard)({amount:h,value:p});if(t||!e){u.toast.error(y("payment-summary-unknown"),{description:y("payment-summary-unknown-description")}),g();return}let l=a.default.getState().validatedOrder;x(l?{...l,table:e.table,giftcard_count:e.giftcard_count,amount_cents:e.amount_cents,invoice_fee_cents_seller:e.invoice_fee_cents_seller,invoice_fee_vat_cents_seller:e.invoice_fee_vat_cents_seller,validation_errors:e.validation_errors}:e)}catch(e){console.error(e),u.toast.error(y("payment-summary-unknown"),{description:y("payment-summary-unknown-description")})}},N=(0,m.useMemo)(()=>(0,c.default)(async()=>{await _(),f(!1)},300),[h,p]);return(0,m.useEffect)(()=>(f(!0),N(),()=>N.cancel()),[N]),(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"mb-2 flex items-center justify-between gap-6 text-14 opacity-50",children:[(0,t.jsx)("p",{className:(0,r.default)(l&&"opacity-50"),children:b("amount-vat")}),(0,t.jsx)("p",{className:(0,r.default)("blur-none transition-all duration-100",l&&"blur-sm "),children:v&&(0,i.prettyM
1oney)((j?v.table.out_vat_cents+v.invoice_fee_vat_cents_seller:v.table.out_vat_cents)/100,e)})]}),j&&(0,t.jsxs)("div",{className:"mb-2 flex items-center justify-between gap-6 text-14 opacity-50",children:[(0,t.jsx)("p",{className:(0,r.default)(l&&"opacity-50"),children:b("invoice-fee")}),(0,t.jsx)("p",{className:(0,r.default)("blur-none transition-all duration-100",l&&"blur-sm "),children:v&&(0,i.prettyMoney)((v.invoice_fee_cents_seller+v.invoice_fee_vat_cents_seller)/100,e)})]}),(0,t.jsxs)("div",{className:"flex items-start justify-between gap-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:(0,r.default)(l&&"opacity-50","leadining-none -mb-1 font-semibold"),children:b("total")}),(0,t.jsx)("small",{className:"text-12 opacity-50",children:b("including-vat")})]}),(0,t.jsx)("p",{className:(0,r.default)("text-md text-18 font-semibold blur-none transition-all duration-100",l&&"blur-sm"),children:v&&(0,i.prettyMoney)((0,s.getFinalGiftcardPrice)(v,j)/100,e)})]})]})},h=()=>{let{customer:e}=(0,a.default)(e=>e),l=(0,o.useTranslations)("checkout");
1return e?(0,t.jsxs)("div",{className:"col-span-5 h-fit rounded-lg border p-6",children:[(0,t.jsx)("p",{className:"mb-5 text-22 font-medium",children:l("user-information")}),(0,t.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("p",{children:e.person_name}),(0,t.jsxs)("p",{children:[e.address,", ",e.zip,", ",e.city]}),(0,t.jsx)("p",{children:e.email}),(0,t.jsx)("p",{children:e.phone}),e.company_name&&(0,t.jsxs)("div",{className:"mt-4 border-t pt-4",children:[(0,t.jsx)("p",{className:"mb-5 text-22 font-medium",children:l("company-information")}),(0,t.jsx)("p",{children:e.company_name}),(0,t.jsxs)("p",{children:["CVR ",e.vat_no]})]})]})]}):null};e.s(["default",0,()=>{let{amount:e}=(0,a.default)(e=>e),n=(0,o.useTranslations)();return(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsxs)("div",{className:"mb-6 lg:rounded-lg lg:border lg:p-6",children:[(0,t.jsx)("p",{className:"mb-5 text-22 font-medium",children:n("checkout.your-order")}),(0,t.jsx)("div",{children:(0,t.jsxs)("div",{className:"flex h-full items-center gap-4",children:[(0,t.jsx)(l.default,{className:"rounded-sm",width:56,height:56,src:"/giftcard.png",alt:""}),(0,t.jsx)("div",{className:"flex h-[56px] flex-col justify-center",children:(0,t.jsxs)("p",{className:"flex items-end gap-2 text-14 font-medium",children:[e," x ",n("giftcard.giftcard")]})})]})}),(0,t.jsx)("hr",{className:"my-6"}),(0,t.jsx)(f,{})]}),(0,t.jsx)(h,{})]})}],940800)},926714,e=>{"use strict";var t=e.i(95187);let a=(0,t.createServerReference)("40e630aaa48bc64bfa14708569b6782aa1789edb40",t.callServer,void 0,t.findSourceMapURL,"validateGiftcard");e.s(["validateGiftcard",0,a])},201796,e=>{"use strict";var t=e.i(271645),a=e.i(769464);let l=new Map([["bold",t.createElement(t.Fragment,null,t.createElement("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"}))],["duotone",t.createElement(t.Fragment,null,t.createElement("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"}),t.createElement("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",t.createElement(t.Fragment,null,t.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["light",t.createElement(t.Fragment,null,t.createElement("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"}))],["regular",t.createElement(t.Fragment,null,t.createElement("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}))],["thin",t.createElement(t.Fragment,null,t.createElement("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"}))]]),n=t.forwardRef((e,n)=>t.createElement(a.default,{ref:n,...e,weights:l}));n.displayName="CheckIcon",e.s(["Check",0,n],201796)}]);

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.