1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[279],{38320:function(t,e,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/gavekort-download/[id]",function(){return a(22680)}])},48688:function(t,e,a){"use strict";a.d(e,{Q:function(){return AppLoader}});var r=a(52322),i=a(5632),o=a(2784),n=a(63457),d=a(53396);let AppLoader=()=>{let t=(0,o.useRef)(null),e=(0,i.useRouter)(),[a,_]=(0,o.useState)(!1),{loading:c}=(0,o.useContext)(d.pV),startNav=()=>_(!0),envNav=()=>_(!1);return(0,o.useEffect)(()=>(e.events.on("routeChangeStart",startNav),e.events.on("routeChangeComplete",envNav),e.events.on("routeChangeError",envNav),()=>{e.events.off("routeChangeStart",startNav),e.events.off("routeChangeComplete",envNav),e.events.off("routeChangeError",envNav)}),[e]),(0,o.useEffect)(()=>{var e,r;c||a?null===(e=t.current)||void 0===e||e.continuousStart():null===(r=t.current)||void 0===r||r.complete()}),(0,r.jsx)(n.Z,{color:"#a84646",ref:t})}},72870:function(t,e,a){"use strict";a.d(e,{T:function(){return Logo}});var r=a(52322),i=a(96577),o=a.n(i),n=a(39097),d=a.n(n),_=a(84490);let Logo=()=>{let t=new Date,e=new Date("2025-11-01"),a=t<e;return(0,r.jsx)(d(),{prefetch:!1,href:_.Z5.Home,passHref:!0,"aria-label":"L\xf8gismose logo",children:(0,r.jsx)(o(),{alt:"L\xf8gismose logo",height:a?250:57,width:a?1e3:300,src:a?"/images/logismose-60-800x200.png":"/images/logo.svg",style:a?{width:"auto",height:"120px",maxWidth:"600px"}:void 0,className:a?"temporary-logo":void 0})})}},53445:function(t,e,a){"use strict";a.d(e,{H:function(){return SEO}});var r=a(52322),i=a(97729),o=a.n(i),n=a(5632),d=a(45847),_=a.n(d);let c="L\xf8gismose";function SEO(t){let{metaDescription:e,image:a,metaKeywords:i,pageTitle:d,schemaOrg:s,noIndex:l,canonicalUrl:f,price:m,currency:g,og:x}=t,u=d?"".concat(c," | ").concat(d):c,h=d&&(null==d?void 0:d.includes(c))?d:u,p=!!a&&!!a.BaseUrl,v=(0,n.useRouter)();return(0,r.jsxs)(o(),{children:[(0,r.jsx)("title",{children:h}),d&&(0,r.jsx)("meta",{name:"title",content:d}),e&&(0,r.jsx)("meta",{name:"description",content:e}),i&&(0,r.jsx)("meta",{name:"keywords",content:i}),p&&(0,r.jsx)("meta",{name:"image",content:null==a?void 0:a.BaseUrl},"image"),f&&(0,r.jsx)("link",{rel:"canonical",href:f}),l?(0,r.jsx)("meta",{name:"robots",content:"noindex"}):(0,r.jsx)("meta",{name:"robots",content:"follow, index, max-snippet:-1, max-video-preview:-1, max-image-preview:large"}),(0,r.jsx)("meta",{property:"og:site_name",content:c},"og:site_name"),(0,r.jsx)("meta",{property:"og:title",content:h},"og:title"),(0,r.jsx)("meta",{property:"og:type",content:(null==x?void 0:x.type)||"website"},"og:type"),e&&(0,r.jsx)("meta",{property:"og:description",content:e},"og:description"),p&&(0,r.jsx)("meta",{property:"og:image",content:null==a?void 0:a.BaseUrl},"og:image"),p&&a.AltText&&(0,r.jsx)("meta",{property:"og:image:alt",content:a.AltText},"og:image:alt"),(0,r.jsx)("meta",{property:"og:url",content:"".concat("https://www.loegismose.dk").concat(v.asPath)}),(0,r.jsx)("meta",{name:"facebook-domain-verification",content:"276fyba1rurs4pji3ehbizrewlugg7"}),m&&(0,r.jsx)("meta",{property:"product:price:amount",content:m}),g&&(0,r.jsx)("meta",{property:"product:price:currency",content:g}),p&&(0,r.jsx)("meta",{name:"twitter:card",content:"summary_large_image"},"twitter:card"),(0,r.jsx)("meta",{name:"twitter:site",content:c},"twitter:site"),(0,r.jsx)("meta",{name:"twitter:title",content:h},"twitter:title"),e&&(0,r.jsx)("meta",{name:"twitter:description",content:e},"twitter:description"),p&&(0,r.jsx)("meta",{name:"twitter:image",content:a.BaseUrl},"twitter:image"),p&&a.AltText&&(0,r.jsx)("meta",{name:"twitter:image:alt",content:a.AltText},"twitter:image:alt"),s&&(0,r.jsx)(_(),{id:"schema-org",type:"application/ld+json",strategy:"afterInteractive",children:s})]})}},84490:function(t,e,a){"use strict";var r,i;a.d(e,{Z5:function(){return r}}),(i=r||(r={})).Home="/",i.Products="/produkter/",i.Recipes="/opskrift/",i.Content="/indhold/",i.Basket="/kurv/",i.SignUp="/bliv-medlem/",i.DevContentKitchenSink="/__dev__/content-kitchen-sink/",i.DevPages="/__dev__/pages/",i.Checkout="/bestil/",i.Receipt="/kv
1ittering/",i.Search="/search/",i.Logout="logout",i.MyPageRoot="/min-side",i.MyPageFavorites="/min-side?tab=favoritter",i.MyPageOrders="/min-side?tab=mine-ordrer";let o=Object.values(r),n="/__dev__";o.filter(t=>t.startsWith(n)),o.filter(t=>!t.startsWith(n))},68820:function(t,e,a){"use strict";a.d(e,{c:function(){return useDownloadPdf}});var r=a(35669),i=a(62202),o=a(53396);function useDownloadPdf(t,e){let{setLoadingOff:a,setLoadingOn:n,loading:d}=(0,o.$C)(),{t:_}=(0,r.$G)();return async()=>{if(!d)try{n();let r=await e(),i=document.createElement("a");i.href=URL.createObjectURL(r),i.download=t,document.body.append(i),i.click(),a(),i.remove(),setTimeout(()=>URL.revokeObjectURL(i.href),2e3)}catch(t){a(),i.ZP.error(_("Loegismose.Frontend.Errors.Fallback"))}finally{a()}}}},22680:function(t,e,a){"use strict";a.r(e),a.d(e,{__N_SSP:function(){return P},default:function(){return _id_}});var r,i,o,n=a(52322),d=a(2784),_=a(4427),c=a(29463),s=a(56475),l=a(35669);(i||(i={})).EMAIL="email";var f=a(74899),m=a.n(f);let GiftCardConfirm=t=>{let{hint:e,onSubmit:a,error:r,isLoading:o}=t,{handleSubmit:d,control:_,formState:{errors:f}}=function(){let{t}=(0,l.$G)(),e=(0,s.useForm)({email:s.Yup.string().required(t("Loegismose.Frontend.Errors.General.FieldRequired")).email(t("Loegismose.Frontend.Errors.Validation.EmailTypeError"))},{email:""},"onTouched");return e}(),{t:g}=(0,c.$)(),x=r?g("Loegismose.Frontend.Page.GiftCardConfirm.Error"):null;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("b",{children:g("Loegismose.Frontend.Page.GiftCardConfirm.ConfirmEmailText")}),(0,n.jsx)("p",{children:g("Loegismose.Frontend.Page.GiftCardConfirm.DescriptionText")}),(0,n.jsxs)(s.Form,{className:m().root__form,onSubmit:d(a),children:[(0,n.jsx)(s.FormControl,{labelId:"gift-card-confirm-email",label:g("Loegismose.Frontend.Page.GiftCardConfirm"),caption:"".concat(g("Loegismose.Frontend.Page.GiftCardConfirm.HintPrefix")," ").concat(e),name:i.EMAIL,control:_,errors:f,children:(0,n.jsx)(s.Input,{required:!0,placeholder:g("Loegismose.Frontend.Page.GiftCardConfirm.EmailPlaceholder"),autoComplete:"email",id:i.EMAIL,type:"email"})}),x&&(0,n.jsx)("div",{className:m().root__error,children:(0,n.jsx)(s.FormMessage,{message:x,type:s.FormMessageType.ERROR})}),(0,n.jsx)(s.Button,{disabled:o,upperCase:!0,type:"submit",children:g("Loegismose.Frontend.Page.GiftCardConfirm.ViewGiftCard")})]})]})};var g=a(72779),x=a.n(g),u=a(39097),h=a.n(u),p=a(48688),v=a(72870),y=a(43151),C=a.n(y);let GiftCardLayout=t=>{let{children:e}=t,{t:a}=(0,c.$)(),r=a("Loegismose.Frontend.Page.GiftCardConfirm.NeedHelpEmail");return(0,n.jsxs)("div",{className:C().layout,children:[(0,n.jsx)(p.Q,{}),(0,n.jsx)("div",{className:x()("col-xs-4 col-md-12",C().layout__logoWrapper),children:(0,n.jsx)(v.T,{})}),(0,n.jsx)("main",{className:x()("col-xs-12",C().container),children:(0,n.jsxs)("div",{className:x()("col-xs-12",C().container__content),children:[(0,n.jsx)("h2",{children:a("Loegismose.Frontend.Page.GiftCardConfirm.Giftcard")}),(0,n.jsx)("div",{className:C().layout__boldSeparator}),(0,n.jsx)("div",{className:C().layout__separator}),e,(0,n.jsx)("div",{className:C().layout__separator}),(0,n.jsxs)("div",{className:C().layout__helpSection,children:[(0,n.jsx)("b",{children:a("Loegismose.Frontend.Page.GiftCardConfirm.NeedHelpTitle")}),(0,n.jsxs)("p",{children:[(0,n.jsx)(h(),{href:"mailto:".concat(r,"?subject=").concat(a("Loegismose.Frontend.Page.GiftCardConfirm.EmailSubject")),children:r})," ",a("Loegismose.Frontend.Page.GiftCardConfirm.NeedHelpText")]})]})]})})]})};var j=a(53396),L=a(68820),b=a(86477),S=a.n(b);let GiftCardItem=t=>{let{Id:e,OriginalAmount:a,lastItem:r,orderUid:i,email:o}=t,{t:d}=(0,c.$)(),{loading:l}=(0,j.$C)(),f=(0,L.c)("gavekort_".concat(e,".pdf"),()=>(0,_.uKJ)({OrderUid:i,Email:o}));return(0,n.jsxs)("div",{className:S().giftCard,children:[(0,n.jsxs)("b",{className:S().giftCard__id,children:[e,":"]}),(0,n.jsx)("h2",{className:S().giftCard__amount,children:a}),(0,n.jsx)(s.Button,{disabled:l,upperCase:!0,onClick:f,children:d("Loegismose.Frontend.Page.GiftCardConfirm.DownloadGiftCard")}),!r&&(0,n.jsx)("div",{className:S().giftCard__separator})]})};var w=a(16149),T=a.n(w);let GiftCardList=t=>{let{giftCards:e,email:a,orderUid:r}=t,{t:i}
1=(0,c.$)();return(null==e?void 0:e.length)===0?(0,n.jsx)("div",{children:i("Loegismose.Frontend.Page.GiftCardConfirm.NoGiftCards")}):(0,n.jsx)("div",{className:T().container,children:e.map((t,i)=>(0,n.jsx)(GiftCardItem,{orderUid:r,email:a,lastItem:i===e.length-1,...t}))})};var N=a(53445);(r=o||(o={})).CONFIRM_GIFT_CARD="confirm-gift-card",r.SHOW_GIFT_CARDS="show-gift-cards";let GiftCardPage=t=>{let{hint:e,orderUid:a}=t,{data:r,mutate:o,isLoading:c,error:s}=(0,_.txY)(),[l,f]=(0,d.useState)("confirm-gift-card"),[m,g]=(0,d.useState)(null),onGiftCardConfirm=async t=>{o({data:{OrderUid:a,Email:t[i.EMAIL]}},{onSuccess:()=>{g(t[i.EMAIL]),f("show-gift-cards")}})};return(0,n.jsxs)(GiftCardLayout,{children:[(0,n.jsx)(N.H,{noIndex:!0}),"confirm-gift-card"===l&&(0,n.jsx)(GiftCardConfirm,{hint:e,error:s,isLoading:c,onSubmit:onGiftCardConfirm}),"show-gift-cards"===l&&(0,n.jsx)(GiftCardList,{orderUid:a,email:m,giftCards:(null==r?void 0:r.GiftCards)||[]})]})};var P=!0,_id_=t=>{let{hint:e,orderUid:a}=t;return(0,n.jsx)(GiftCardPage,{orderUid:a,hint:e})}},74899:function(t){t.exports={"text-large":"gift-card-confirm_text-large__Lcbq6","text-373737":"gift-card-confirm_text-373737__6zFPi","text-767676":"gift-card-confirm_text-767676__lN_ID","text-caption":"gift-card-confirm_text-caption__vKnq8","text-h1":"gift-card-confirm_text-h1__IIwYo","text-h2":"gift-card-confirm_text-h2__jV5JJ","text-h3":"gift-card-confirm_text-h3__etv_d","text-body-1":"gift-card-confirm_text-body-1__Y_wxt","text-body-2":"gift-card-confirm_text-body-2__WJaOB","text-headline-1":"gift-card-confirm_text-headline-1__PBbwY","text-headline-2":"gift-card-confirm_text-headline-2__0AmT6","text-headline-3":"gift-card-confirm_text-headline-3__gBZNJ","font-avenirLTStd-Black":"gift-card-confirm_font-avenirLTStd-Black__sUtmn","font-avenirLTStd-Heavy":"gift-card-confirm_font-avenirLTStd-Heavy__XB0Sp","font-avenirLTStd-Roman":"gift-card-confirm_font-avenirLTStd-Roman__yvKaB","font-bentonModDisp-Bold":"gift-card-confirm_font-bentonModDisp-Bold__KmdZj",root__form:"gift-card-confirm_root__form__i_0bt",root__hint:"gift-card-confirm_root__hint__J_bB4",root__error:"gift-card-confirm_root__error__iGcLD"}},86477:function(t){t.exports={"text-large":"gift-card-item_text-large__k1WSV","text-373737":"gift-card-item_text-373737__87ZT6","text-767676":"gift-card-item_text-767676__081Dt","text-caption":"gift-card-item_text-caption__3Wu_2","text-h1":"gift-card-item_text-h1__6eCWh","text-h2":"gift-card-item_text-h2__XJEr8","text-h3":"gift-card-item_text-h3__XlklW","text-body-1":"gift-card-item_text-body-1__QYQXr","text-body-2":"gift-card-item_text-body-2__krRMw","text-headline-1":"gift-card-item_text-headline-1__K56uE","text-headline-2":"gift-card-item_text-headline-2__LSc_l","text-headline-3":"gift-card-item_text-headline-3__pCpzJ","font-avenirLTStd-Black":"gift-card-item_font-avenirLTStd-Black__bbyPU","font-avenirLTStd-Heavy":"gift-card-item_font-avenirLTStd-Heavy__cV_j8","font-avenirLTStd-Roman":"gift-card-item_font-avenirLTStd-Roman__OjO5X","font-bentonModDisp-Bold":"gift-card-item_font-bentonModDisp-Bold__PAfYx",giftCard:"gift-card-item_giftCard__nHC8K",giftCard__id:"gift-card-item_giftCard__id__v_glJ",giftCard__amount:"gift-card-item_giftCard__amount__S9V7K",giftCard__separator:"gift-card-item_giftCard__separator__OOlm1"}},43151:function(t){t.exports={"text-large":"gift-card-layout_text-large__WWXIz","text-373737":"gift-card-layout_text-373737__F6aT6","text-767676":"gift-card-layout_text-767676__ajabz","text-caption":"gift-card-layout_text-caption__efyC4","text-h1":"gift-card-layout_text-h1__x3Pkl","text-h2":"gift-card-layout_text-h2__7gutF","text-h3":"gift-card-layout_text-h3__qYK2K","text-body-1":"gift-card-layout_text-body-1__Cvu1t","text-body-2":"gift-card-layout_text-body-2__NK1dD","text-headline-1":"gift-card-layout_text-headline-1__sGx0b","text-headline-2":"gift-card-layout_text-headline-2___IgPF","text-headline-3":"gift-card-layout_text-headline-3__Fr4ER","font-avenirLTStd-Black":"gift-card-layout_font-avenirLTStd-Black__JAlLr","font-avenirLTStd-Heavy":"gift-card-layout_font-avenirLTStd-Heavy__zHXnd","font-avenirLTStd-Roman":"gift-card-layout_font-avenirLTStd-Roman___2Z_o","font-bentonModDisp-Bold":"gift-card-layout_font-bentonModDisp-Bold__3s4Iy",layout:"gift-card-layout_layout__LbaSN",container:"gift-card-layout_container__xgsqB",container__content:"gift-card-layout_container__content__apjov",layout__helpSection:"gift-card-layout_layout__helpSection__LveJq",layout__logoWrapper:"gift-card-layout_layout__logoWrapper__y7F0P",layout__boldSeparator:"gift-card-layout_layout__boldSeparator__UygJO",layout__separator:"gift-card-layout_layout__separator__2xp1d"}},16149:function(t){t.exports={"text-large":"gift-card-list_text-large__0xZc0","text-373737":"gift-card-list_text-373737__Tfdnz","text-767676":"gift-card-list_text-767676__IPiTR","text-caption":"gift-card-list_text-caption__NK8Ty","text-h1":"gift-card-list_text-h1__0xw_W","text-h2":"gift-card-list_text-h2__jFvFh","text-h3":"gift-card-list_text-h3__WVZUS","text-body-1":"gift-card-list_text-body-1__eqKhh","text-body-2":"gift-card-list_text-body-2__CFgDr","text-headline-1":"gift-card-list_text-headline-1__mfPqw","text-headline-2":"gift-card-list_text-headline-2__RZaIT","text-headline-3":"gift-card-list_text-headline-3__o_07N","font-avenirLTStd-Black":"gift-card-list_font-avenirLTStd-Black__Uw9wP","font-avenirLTStd-Heavy":"gift-card-list_font-avenirLTStd-Heavy__WnQ6B","font-avenirLTStd-Roman":"gift-card-list_font-avenirLTStd-Roman__ZNSS1","font-bentonModDisp-Bold":"gift-card-list_font-bentonModDisp-Bold__sdezE",container:"gift-card-list_container__iznXm"}}},function(t){t.O(0,[761,774,888,179],function(){return t(t.s=38320)}),_N_E=t.O()}]);
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.