PageSourceSearch

https://www.kitchentime.dk/static/6274.9c3a9308ec435432.js

js kitchentime.dk collected 2026-09-25 05:48:52 UTC 14,655 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunknestcom=self.webpackChunknestcom||[]).push([["6274"],{2768:function(e,t,i){i.d(t,{O:()=>N,U:()=>q});var n=i(8931),s=i(3587),a=i(6003),r=i(2018),o=i(2063),l=i(7108),d=i(4414),c=i(1814),x=i(6043),g=i(3516),m=i(4422),h=i(6752),p=i(7630),u=i(2454);function f(e){let[t,i]=s.useState(e.activeMenuItem??(0,r.bS)().pathname),a=(0,r.T7)({},"NordicNest.ContentApi.DynamicData.WellknownPagesApiModel,NordicNest.ContentApi")[0]?.myPagesStartPageUrl,o=s.useMemo(()=>e.menuItemsWithIcon?[{value:a,text:(0,r.Tl)(e=>e.myPages.myPagesStartPageTitle),icon:void 0},...e.menuItemsWithIcon.map(e=>({value:e.link.to,text:e.link.children,icon:e.icon})),{value:"logout",text:(0,r.Tl)(e=>e.login.logout),icon:void 0}]:e.menuItems?[{value:a,text:(0,r.Tl)(e=>e.myPages.myPagesStartPageTitle)},...e.menuItems.map(e=>({value:e.to,text:e.children})),{value:"logout",text:(0,r.Tl)(e=>e.login.logout)}]:[],[a,e.menuItems,e.menuItemsWithIcon]),l=s.useCallback(t=>{"logout"===t?e.logout():(i(t),(0,r.c8)(t))},[e]),d=e=>(0,n.jsxs)(j,{..."logout"===e.value?u.Sv.MyPagesLogoutButton:[],children:[e.value===a?(0,n.jsx)(n.Fragment,{children:p.E6?(0,n.jsx)(P,{}):(0,n.jsx)(A,{})}):"logout"===e.value?(0,n.jsx)(C,{}):(0,n.jsx)(T,{image:e.icon}),e.text]});return(0,n.jsx)(I,{value:t,options:o,onChangeOption:l,selectedTransform:d,optionTransform:d,selectedValueDecorator:y,optionDecorator:S,isOpenDecorator:v,hideSelectedOption:!0})}let I=(0,a.I4)(m.A,{position:"relative",zIndex:2}),j=a.I4.span({display:"flex",alignItems:"center"}),y=(0,a.I4)({padding:{x:e=>e.sharedSpacing.m,y:e=>e.sharedSpacing.xs},border:{x:{style:"none"},top:{style:"none"},bottom:{style:"solid",width:1,color:e=>e.myPagesMenu?.color}},height:56}),S=(0,a.I4)({padding:{x:e=>e.sharedSpacing.m,y:e=>e.sharedSpacing.xs},height:56,display:"flex",alignItems:"center"}),v=(0,a.I4)({backgroundColor:e=>e.myPagesLoyaltyPoints?.color}),T=(0,a.I4)(h.Ay,{marginRight:e=>e.sharedSpacing.m,opacity:1}),b=(0,a.I4)({marginRight:e=>e.sharedSpacing.m,width:25,height:25}),C=(0,a.I4)(x.o4,b,{strokeWidth:p.E6?1.8:1}),A=(0,a.I4)(x.t0,b),P=(0,a.I4)(x.fA,b);var k=i(9268),w=i(6854),W=i(2562),D=i(8725);let N=(0,a.I4)(e=>(0,n.jsx)(L,{children:(0,n.jsxs)($,{children:[(0,n.jsx)(z,{}),(0,n.jsx)(F,{to:e.myPageStartPageUrl,children:(0,n.jsx)(O,{children:e?.heading})}),e.node]})}));function q({children:e,heading:t,isStartPage:i,backButton:a,activeMenuItem:o,...l}){let[c]=(0,r.T7)({},"NordicNest.ContentApi.DynamicData.MyPages.MyPagesApiModel,NordicNest.ContentApi"),g=(0,r.AC)(),[m]=(0,r.T7)({},"NordicNest.ContentApi.DynamicData.WellknownPagesApiModel,NordicNest.ContentApi"),h=(0,r.T7)({},"NordicNest.ContentApi.DynamicData.WellknownPagesApiModel,NordicNest.ContentApi")[0]?.startPageUrl??"",I=s.useRef(void 0);s.useEffect(()=>{m?.startPageUrl&&!I.current&&(I.current=m?.startPageUrl)},[m?.startPageUrl]);let j=s.useCallback(()=>{(0,r.c8)(h),(0,d.ri)()},[h]);return(0,n.jsxs)(B,{children:[!g&&(0,n.jsx)("div",{...u.Sv.MyPagesMenu,children:(0,n.jsx)(f,{menuItems:c?.menuItems,menuItemsWithIcon:c?.menuItemsWithIcon,logout:j,activeMenuItem:o})}),(0,n.jsxs)(H,{children:[g&&(0,n.jsxs)(U,{children:[(0,n.jsxs)(R,{css:(0,r.bS)().pathname===m?.myPagesStartPageUrl&&V,to:m?.myPagesStartPageUrl,children:[p.E6||p.G3?(0,n.jsx)(Y,{}):(0,n.jsx)(_,{}),(0,r.Tl)(e=>e.myPages.myPagesStartPageTitle)]}),c?.menuItemsWithIcon?c?.menuItemsWithIcon?.map(e=>(0,n.jsx)("li",{children:(0,n.jsxs)(R,{css:(0,r.bS)().pathname===e.link.to&&V,to:e.link.to,children:[e.icon&&(0,n.jsx)(Z,{image:e.icon})," ",e.link.children]})},e.link.to)):c?.menuItems?.map(e=>(0,n.jsx)("li",{children:(0,n.jsx)(R,{css:(0,r.bS)().pathname===e.to&&V,to:e.to,children:e.children})},e.to)),(0,n.jsxs)(K,{onClick:j,...u.Sv.MyPagesLogoutButton,children:[(0,n.jsx)(J,{})," ",(0,r.Tl)(e=>e.login.logout)]})]}),(0,n.jsxs)(G,{...l,children:[t&&(0,n.jsxs)(E,{css:i&&M,children:[a&&(0,n.jsxs)(ee,{onClick:()=>history.back(),children:[(0,n.jsx)(x.VG,{}),g&&(0,r.Tl)(e=>e.myPages.back)]}),(0,n.jsx)(Q,{children:t})]}),e]})]})]})}let B=a.I4.div({flexGrow:1}),G=a.I4.div({width:"100%",maxWidth:910}),z=(0,a.I4)(D.ny,{marginRight:e=>e.sharedSpacing.xs,fill:e=>e.dark.color}),M=(0,a.I4)((0,o.$f)({padding:{bottom:0}}),{borderBottom:{width:0}}),U=a.I4.ul(l.y,{minWidth:230}),E=(0,a.I4)(g.eB,(0,o.TG)({padding:{y:22}}),(0,o.$f)({justifyContent:"flex-start"}),{display:"flex",justifyContent:"center",alignItems:"center",position:"relative",padding:{bottom:e=>e.sharedSpacing.m}}),V=(0,a.I4)({fontWeight:"bold"}),R=(0,a.I4)(W.A,{margin:{bottom:e=>e.sharedSpacing.l},display:"flex",fontWeight:e=>e.myPagesMenu?.fontWeight}),H=(0,a.I4)(g.eB,g.jn,g.cX,g.sh,(0,o.$f)({display:"grid",gridTemplateColumns:"1fr 4fr",columnGap:e=>e.sharedSpacing.xxxxl,margin:{top:e=>e.sharedSpacing.xxl,bottom:e=>e.sharedSpacing.xxxl}}),(0,o.H_)({marginTop:e=>e.sharedSpacing.xxl}),{display:"flex",marginBottom:e=>e.sharedSpacing.xxxl}),L=a.I4.div((0,o.TG)({marginBottom:0}),{backgroundColor:"#edece8",marginBottom:e=>e.sharedSpacing.xxxl,border:{y:{style:"solid",width:"thin",color:c.cl}}}),$=(0,a.I4)(g.eB,g.qA,g.cX,g.sh,{display:"flex",alignItems:"center",position:"relative",height:64}),O=a.I4.h1((0,o.TG)({fontSize:e=>e.fontSize.s}),{fontSize:e=>e.fontSize.s,flexGrow:1,marginBottom:0,fontWeight:"normal"}),F=(0,a.I4)(W.A,{flexGrow:1}),Q=a.I4.h2((0,o.TG)({fontSize:e=>e.fontSize.l}),{marginBottom:0,width:"100%",textAlign:"center",fontSize:e=>e.fontSize.xl,fontWeight:e=>e.header?.fontWeight}),K=(0,a.I4)(w.U9,{display:"flex",fontWeight:e=>e.myPagesMenu?.fontWeight}),X=(0,a.I4)({marginRight:e=>e.sharedSpacing.m,width:25,height:25}),J=(0,a.I4)(x.o4,X,{strokeWidth:p.E6?1.8:1}),_=(0,a.I4)(x.t0,X),Y=(0,a.I4)(k.fA,X),Z=(0,a.I4)(h.Ay,{marginRight:e=>e.sharedSpacing.m,opacity:1}),ee=(0,a.I4)(w.U9,(0,o.TG)({marginLeft:e=>e.sharedSpacing.s}),{position:"absolute",left:0,display:"flex",alignItems:"center",columnGap:e=>e.sharedSpacing.xs,marginLeft:e=>e.sharedSpacing.m})},2878:function(e,t,i){i.d(t,{B:()=>f});var n=i(8931),s=i(3587),a=i(2018),r=i(6003),o=i(5101),l=i(4834),d=i(1e3),c=i(6043),x=i(1814),g=i(7184),m=i(3676),h=i(8217),p=i(1230),u=i(4414);function f({quoteDetails:e,showOrderDetails:t=!1}
1){let i=(0,o.Ab)(),[r,d]=s.useState(t),{isCompanyCustomer:c}=(0,u.cB)();return(0,n.jsxs)(I,{children:[(0,n.jsxs)(y,{onClick:()=>d(!r),children:[(0,n.jsx)(v,{children:e.createdDate}),(0,n.jsx)("div",{suppressHydrationWarning:!0,children:i(c?e.totalExclVat:e.totalInclVat,e.currency)}),(0,n.jsx)(T,{children:e.quoteNumber}),(0,n.jsx)(b,{children:(0,m.f)(e.status)}),(0,n.jsx)(j,{css:(0,l.GV)(r)})]}),(0,n.jsxs)(C,{visible:r,children:[(0,n.jsxs)(A,{css:S,children:[(0,n.jsxs)(P,{children:[(0,n.jsxs)(k,{children:[(0,n.jsxs)("b",{children:[(0,a.Tl)(e=>e.quotes.quoteDate),":"]})," ",e.createdDate]}),(0,n.jsxs)(k,{children:[(0,n.jsxs)("b",{children:[(0,a.Tl)(e=>e.quotes.quoteId),":"]})," ",e.quoteNumber]}),(0,n.jsxs)(k,{children:[(0,n.jsxs)("b",{children:[(0,a.Tl)(e=>e.customer.email),":"]})," ",e.customerEmail]})]}),(0,n.jsxs)(P,{children:[(0,n.jsxs)(k,{children:[(0,n.jsxs)("b",{children:[(0,a.Tl)(e=>e.quotes.validTo),":"]})," ",e.vaildUntil]}),(0,n.jsxs)(k,{children:[(0,n.jsxs)("b",{children:[(0,a.Tl)(e=>e.quotes.reference),":"]})," ",e.sellerName]})]}),(0,n.jsx)(P,{children:(0,n.jsxs)(k,{children:[(0,n.jsxs)("b",{children:[(0,a.Tl)(e=>e.quotes.receiver),":"]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{children:e.company}),(0,n.jsx)("div",{children:e.customerName}),(0,n.jsx)("div",{children:e.phoneNumber})]})]})})]}),(0,n.jsx)(g.l,{items:e.orderItems,currency:e.currency}),(0,n.jsx)(p.B,{discount:c?e.totalDiscountExclVat:e.totalDiscountInclVat,sum:c?e.sumExclVat:e.sumInclVat,vat:e.totalTax,total:c?e.totalExclVat:e.totalInclVat,currency:e.currency}),(0,n.jsx)(h.c,{quoteId:e.id,quoteNumber:e.quoteNumber,status:e.status,quoteLineItems:e.orderItems})]})]})}let I=r.I4.li({display:"flex",flexDirection:"column",borderBottom:{style:"solid",color:x.cl,width:"thin"}}),j=(0,r.I4)(c.D3,{justifySelf:"end"}),y=r.I4.div({display:"grid",gridTemplateColumns:"repeat(6, 1fr)",columnGap:e=>e.sharedSpacing.xl,padding:{y:e=>e.sharedSpacing.l},cursor:"pointer"}),S=(0,r.I4)({paddingBottom:e=>e.sharedSpacing.xl}),v=r.I4.div({color:x.vk}),T=r.I4.div({gridColumnStart:"span 2",justifySelf:"center"}),b=r.I4.div({textAlign:"right",fontWeight:"bold",textTransform:"capitalize"}),C=(0,r.I4)(d.JA,{flexGrow:1}),A=r.I4.div({display:"grid",gridTemplateColumns:"auto 1fr 1fr",columnGap:e=>e.sharedSpacing.xxxl,flexGrow:1,padding:{top:e=>e.sharedSpacing.l,x:e=>e.sharedSpacing.xl},backgroundColor:"#edece8"}),P=r.I4.div({fontSize:e=>e.fontSize.xxs,display:"flex",flexDirection:"column",gap:e=>e.sharedSpacing.xs}),k=r.I4.div({display:"flex",justifyContent:"space-between",gap:e=>e.sharedSpacing.xs})},8217:function(e,t,i){i.d(t,{c:()=>g});var n=i(8931),s=i(3587),a=i(2018),r=i(6003),o=i(6043),l=i(7630),d=i(2063),c=i(9983),x=i(8201);let g=({quoteId:e,quoteNumber:t,status:i,quoteLineItems:r})=>{let d=(0,a.T7)({},"NordicNest.ContentApi.DynamicData.WellknownPagesApiModel,NordicNest.ContentApi")[0]?.customerServicePageUrl,[g]=(0,a.T7)({selector:m},"Avensia.Excite.Commercetools.Api.Models.Cart.CartApiModel,Avensia.Excite.Commercetools"),I=!!(g?.find(t=>t.id===e)||"active"!==i),j=s.useMemo(()=>(r?.length??0)<=0,[r]),y=(0,s.useCallback)(async()=>{let i=(0,a.H$)(`quotes/pdf/${e}`),n=await (0,a.Tt)(i);if(n.validation.hasErrors)throw Error("Unable to generate pdf");let s=`data:application/pdf;base64,${n.quoteResponse}`,r=document.createElement("a");r.href=s,r.download=t??"quote-pdf",r.click()},[e,t]);return(0,n.jsxs)(h,{children:[(0,n.jsxs)(x.Pv,{as:l.Sx.Monochrome,onClick:y,disabled:j,children:[(0,n.jsx)(u,{}),(0,a.Tl)(e=>e.quotes.download)]}),(0,n.jsxs)(p,{as:l.Sx.Monochrome,to:d||"",children:[(0,n.jsx)(o.vH,{}),(0,a.Tl)(e=>e.quotes.contactCustomerService)]}),(0,n.jsxs)(x.Pv,{as:l.Sx.Positive,onClick:()=>(0,c.Vl)(e),disabled:I||j,children:[(0,n.jsx)(f,{}),(0,a.Tl)(e=>e.quotes.addQuoteToCart)]})]})};function m(e){if(e)return e.items}let h=r.I4.div((0,d.TG)({display:"flex",flexDirection:"column-reverse",padding:{x:e=>e.sharedSpacing.m},marginBottom:0}),{display:"grid",gridTemplateColumns:"1fr 1fr 1fr",gap:e=>e.sharedSpacing.m,marginBottom:e=>e.sharedSpacing.l}),p=(0,r.I4)(x.vx,{gap:e=>e.sharedSpacing.xs}),u=(0,r.I4)(o.s3,{marginRight:e=>e.sharedSpacing.xs}),f=(0,r.I4)(o.Kj,{marginRight:e=>e.sharedSpacing.xs})},7184:function(e,t,i){i.d(t,{l:()=>m});var n=i(8931);i(3587);var s=i(2018),a=i(6003),r=i(6752),o=i(2063),l=i(1814),d=i(5255),c=i(3088),x=i(3707),g=i(2562);function m({items:e,currency:t}){let i=(0,s.Kj)();function a(e){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(S,{children:[(0,n.jsx)(u,{image:e.image,external:!!e.customLineItemData,preset
1:"thumb"}),(0,n.jsxs)(T,{children:[(0,n.jsx)(C,{children:e.brand}),(0,n.jsx)(b,{children:e.displayName}),Object.entries(e.customViewData??{}).map(([e,t])=>(0,n.jsxs)(I,{children:[e," : ",t]},e)),(0,n.jsx)(d.V,{variantStatus:e.variantStatus,stockStatus:e.stockStatus,deliveryTime:e.deliveryTime}),i&&(0,n.jsx)(p,{label:(0,s.Tl)(e=>e.orderHistoryDetails.productQuantity),text:e.quantity})]})]}),(0,n.jsx)(v,{children:e.comment}),!i&&(0,n.jsx)(p,{label:(0,s.Tl)(e=>e.orderHistoryDetails.productQuantity),text:e.quantity}),(0,n.jsx)(P,{price:e.price})]})}return(0,n.jsx)(h,{children:e.map((e,t)=>e.productUrl?(0,n.jsx)(j,{to:e.productUrl,children:a(e)},t):(0,n.jsx)(y,{children:a(e)},t))})}let h=a.I4.div({padding:{y:e=>e.sharedSpacing.m},borderBottom:{width:1,style:"solid",color:l.cl}}),p=(0,a.I4)(({label:e,text:t})=>(0,n.jsxs)(A,{children:[(0,n.jsx)(w,{children:e}),(0,n.jsxs)(k,{children:[" ",t]})]})),u=(0,a.I4)(r.Ay,(0,o.TG)({marginRight:e=>e.sharedSpacing.m}),{maxWidth:70,marginRight:e=>e.sharedSpacing.xl}),f=(0,a.I4)(x.d,{display:"block",marginLeft:e=>e.sharedSpacing.xs,fontSize:e=>e.fontSize.xxxs,whiteSpace:"nowrap",textDecoration:"none",":hover":{textDecoration:"underline"}}),I=a.I4.span(f,{":hover":{textDecoration:"none"}}),j=(0,a.I4)(g.A,(0,o.TG)({display:"flex",padding:{x:e=>e.sharedSpacing.m},alignItems:"flex-end"}),{display:"grid",gridTemplateColumns:"repeat(5, 1fr)",alignItems:"center",textAlign:"left",marginBottom:e=>e.sharedSpacing.m}),y=a.I4.div((0,o.TG)({display:"flex",padding:{x:e=>e.sharedSpacing.m},alignItems:"flex-end"}),{display:"grid",gridTemplateColumns:"repeat(5, 1fr)",alignItems:"center",textAlign:"left",marginBottom:e=>e.sharedSpacing.m}),S=a.I4.div((0,o.TG)({alignItems:"flex-start"}),{gridColumnStart:"span 2",display:"flex",alignItems:"center"}),v=a.I4.div((0,o.TG)({display:"none"}),{wordWrap:"break-word",whiteSpace:"pre-wrap",minWidth:0}),T=a.I4.div({display:"flex",flexDirection:"column",textAlign:"left"}),b=a.I4.div((0,o.TG)({marginBottom:e=>e.sharedSpacing.xs}),{fontSize:e=>e.fontSize.xxs}),C=a.I4.div({textTransform:"uppercase",fontFamily:"charter",fontSize:e=>e.fontSize.xxs,color:e=>e.dark.color,marginBottom:e=>e.sharedSpacing.xs}),A=a.I4.div({fontSize:e=>e.fontSize.xxs}),P=(0,a.I4)(c.A,{textAlign:"right",fontWeight:"bold",flexGrow:1,fontSize:e=>e.fontSize.xxs}),k=a.I4.span(),w=a.I4.span({color:e=>e.dark.color})},1230:function(e,t,i){i.d(t,{B:()=>d});var n=i(8931);i(3587);var s=i(2018),a=i(6003),r=i(2063),o=i(4414),l=i(5101);let d=e=>{let t=(0,l.Ab)(),{isCompanyCustomer:i}=(0,o.cB)();return(0,n.jsxs)(c,{children:[(0,n.jsxs)(x,{suppressHydrationWarning:!0,children:[(0,n.jsx)("div",{children:(0,s.Tl)(e=>e.order.sum)})," ",t(e.sum,e.currency)]}),!i&&(0,n.jsxs)(x,{suppressHydrationWarning:!0,children:[(0,n.jsx)("div",{children:(0,s.Tl)(e=>e.order.vat)})," ",t(e.vat,e.currency)]}),void 0!==e.discount&&e.discount>0&&(0,n.jsxs)(x,{suppressHydrationWarning:!0,children:[(0,n.jsx)("div",{children:(0,s.Tl)(e=>e.order.discount)}),t(e.discount,e.currency)]}),(0,n.jsxs)(g,{suppressHydrationWarning:!0,children:[(0,n.jsx)("div",{children:(0,s.Tl)(e=>e.order.total)})," ",t(e.total,e.currency)]})]})},c=a.I4.div((0,r.$f)({padding:{x:0},maxWidth:240,marginLeft:"auto"}),{display:"flex",flexDirection:"column",justifyContent:"flex-end",padding:{x:e=>e.sharedSpacing.m,top:e=>e.sharedSpacing.m,bottom:e=>e.sharedSpacing.l}}),x=a.I4.div({display:"flex",justifyContent:"space-between",gap:e=>e.sharedSpacing.xs}),g=(0,a.I4)(x,{fontWeight:700,fontSize:e=>e.fontSize.s,marginTop:e=>e.sharedSpacing.m})},3676:function(e,t,i){i.d(t,{f:()=>s});var n=i(2018);function s(e){switch(e){case"draft":return(0,n.Tl)(e=>e.quotes.draft);case"active":return(0,n.Tl)(e=>e.quotes.active);case"done":return(0,n.Tl)(e=>e.quotes.done);case"expired":default:return(0,n.Tl)(e=>e.quotes.expired);case"deleted":return(0,n.Tl)(e=>e.quotes.deleted)}}}}]);
2//# sourceMappingURL=6274.9c3a9308ec435432.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.