1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3b960404-ada4-46be-ae9b-acd634a023fb",e._sentryDebugIdIdentifier="sentry-dbid-3b960404-ada4-46be-ae9b-acd634a023fb")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"a61a146704d275ddb36a35081280ebdbfe33652c"},(self.webpackChunktcconnect_gatsby=self.webpackChunktcconnect_gatsby||[]).push([[5277],{55179:function(e,t,n){var i=n(96540),a=n(29640),l=n(34378),r=n(37502),o=n(46784),c=n(66188),d=n(7897),m=n(77617),p=n(24794),s=n(53340),u=n(77155),f=n(22801),g=n(2711),h=n(80973),y=n(8890);const w=l.default.div.withConfig({displayName:"cart__Wrapper",componentId:"sc-gei539-0"})(["display:flex;width:100%;@media (max-width:","){flex-direction:column;}"],e=>{let{theme:t}=e;return t.breakpoints.wideTablet}),b=l.default.div.withConfig({displayName:"cart__WrapperRight",componentId:"sc-gei539-1"})(["display:flex;width:100%;"]),x=l.default.div.withConfig({displayName:"cart__WrapperContent",componentId:"sc-gei539-2"})(["display:flex;flex-direction:column;width:100%;"]),v=l.default.div.withConfig({displayName:"cart__ProductWrapper",componentId:"sc-gei539-3"})(["width:100%;height:100%;display:flex;align-items:start;justify-content:space-between;gap:1.5rem;background-color:var(--color-secondary);padding:2rem;&:nth-child(even){background-color:#eee;}@media (max-width:","){height:100%;gap:0.5rem;width:100%;padding:1rem;}"],e=>{let{theme:t}=e;return t.breakpoints.phone}),_=l.default.div.withConfig({displayName:"cart__AddOrDeleteProducts",componentId:"sc-gei539-4"})(["display:flex;flex-flow:column;"]),E=l.default.button.withConfig({displayName:"cart__RemoveButton",componentId:"sc-gei539-5"})(["background-color:transparent;font-size:1rem;@media (max-width:","){font-size:0.8rem;}"],e=>{let{theme:t}=e;return t.breakpoints.phone}),k=(0,l.default)(o.g).withConfig({displayName:"cart__RemoveIcon",componentId:"sc-gei539-6"})(["margin-left:10px;font-size:1rem;"]),$=(0,l.default)(a.A).withConfig({displayName:"cart__StyledImage",componentId:"sc-gei539-7"})(["width:120px;border:1px solid var(--color-grey);border-radius:var(--border-radius);"]),C=l.default.div.withConfig({displayName:"cart__NameWrapper",componentId:"sc-gei539-8"})(["width:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;"]),S=l.default.div.withConfig({displayName:"cart__AttributeWrapper",componentId:"sc-gei539-9"})(["margin-left:1.5rem;p{text-align:left;margin-bottom:5px;font-size:0.85rem;}span{font-weight:bold;}"]),I=l.default.div.withConfig({displayName:"cart__WrapperTotal",componentId:"sc-gei539-10"})(["display:flex;justify-content:space-between;width:100%;flex-direction:column;"]),N=l.default.p.withConfig({displayName:"cart__TotalRow",componentId:"sc-gei539-11"})(["display:flex;justify-content:space-between;font-size:14px;width:100%;text-align:end;margin-top:2rem;"]),z=l.default.div.withConfig({displayName:"cart__TotalPlusTaxt",componentId:"sc-gei539-12"})(["display:flex;justify-content:space-between;padding-block:2rem;font-size:24px;& span{white-space:nowrap;}"]),T=l.default.div.withConfig({displayName:"cart__BottomDiv",componentId:"sc-gei539-13"})(["display:flex;flex-direction:column;align-items:center;width:100%;justify-content:space-between;height:100%;padding:2rem;background-color:var(--color-white);box-shadow:0 0 4px 2px rgb(0 0 0 / 4%);margin:0 2.5rem;@media (max-width:","){width:100%;margin:2rem 0;padding:1rem;}"],e=>{let{theme:t}=e;return t.breakpoints.phone}),A=l.default.div.withConfig({displayName:"cart__BottomDivTopBox",componentId:"sc-gei539-14"})(["width:100%;"]),W=l.default.div.withConfig({displayName:"cart__Line",componentId:"sc-gei539-15"})(["height:0;border:1px solid #e8e8e8;width:100%;margin-block:1rem;"]),R=(0,l.default)(p.Link).withConfig({displayName:"cart__BackToShopBtn",componentId:"sc-gei539-16"})(["text-decoration:none;white-space:nowrap;border:1px solid var(--color-black);padding:12px 64px;font-size:15px;color:var(--color-black);transition:all 0.3s ease-in-out;&:hover{background-color:",";color:",";border:1px solid ",";}"],e=>{let{theme:t}=e;return t.colors.primary},e=>{let{theme:t}=e;return t.colors.white},e=>{let{theme:t}=e;return t.colors.primary}),j=(0,l.default)(p.Link).withConfig({displayName:"cart__StyledLink",componentId:"sc-gei539-17"})(["width:100%;font-weight:600;font-size:1.1rem;display:block;text-decoration:none;@media (max-width:","){font-size:1rem;}&:hover{text-decoration:underline;}"],e=>{let{theme:t}=e;return t.breakpoints.phone}),L=l.default.div.withConfig({displayName:"cart__MiddleWrapper",componentId:"sc-gei539-18"})(["display:flex;flex-flow:column;height:100%;justify-content:space-between;flex-basis:75%;align-items:flex-start;"]),P=l.default.div.withConfig({displayName:"cart__QuantityBox",componentId:"sc-gei539-19"})(["display:flex;width:120px;align-items:center;justify-content:space-between;padding:0.6rem;margin-top:0.5rem;border:2px solid #dfdfdf;border-radius:var(--border-radius);background-color:var(--color-white);gap:0.5rem;& svg,p{width:20px;margin:0;}"]),B=(0,l.default)(o.g).withConfig({displayName:"cart__ChangeQtyBtn",componentId:"sc-gei539-20"})(["cursor:pointer;color:",";"],e=>{let{productQty:t}=e;return 1===t?"grey":"black"}),D=(0,l.default)(p.Link).withConfig({displayName:"cart__CheckoutBtn",componentId:"sc-gei539-21"})(["background-color:",";color:var(--color-black);border:1px solid ",";text-decoration:none;padding:12px 64px;font-size:15px;transition:all 0.3s ease-in-out;width:100%;text-align:center;border-radius:var(--border-radius);&:hover{background-color:",";}"],e=>{let{theme:t}=e;return t.colors.primary},e=>{let{theme:t}=e;return t.colors.primary},e=>{let{theme:t}=e;return(0,g.modifyColor)(t.colors.primary,40)}),M=l.default.div.withConfig({displayName:"cart__RightWrapper",componentId:"sc-gei539-22"})(["display:flex;flex-flow:column;height:100%;width:fit-content;justify-content:space-between;"]),q=l.default.div.withConfig({displayName:"cart__Price",componentId:"sc-gei539-23"})(["display:grid;padding-block-end:0.525rem;& p{margin:0;white-space:nowrap;text-align:right;font-size:clamp(0.9rem,2vw,1rem);font-weight:600;}"]),H=l.default.div.withConfig({displayName:"cart__ButtonWrapper",componentId:"sc-gei539-24"})(["width:100%;height:100%;display:flex;align-items:start;justify-content:left;gap:1.5rem;background-color:var(--color-white);padding-block:2rem;white-space:nowrap;@media (max-width:","){height:100%;width:100%;padding:1rem;}"],e=>{let{theme:t}=e;return t.breakpoints.phone});t.A=()=>{var e;const{wp:t,wpProductCategory:n,allWpTaxRate:a}=(0,p.useStaticQuery)("3923859448"),l=(0,y.i)(),{cart:o}=i.useContext(m.qv),Q=i.useContext(m.Hq),O=(null===(e=a.nodes.find(e=>"MVA"===e.name))||void 0===e?void 0:e.rate)/100;let U=0;
1o.forEach(e=>{U+=e.price*e.quantity}),(0,i.useEffect)(()=>{"loading"!==l&&(0,g.updateDataLayer)(async()=>window.dataLayer.push({event:"view_cart",ecommerce:{logged_in:!!l,email:l?await(0,g.getSHA256Hash)(null==l?void 0:l.email):null,currency:t.wcSettings.currency,value:o.reduce((e,t)=>e+t.price*t.quantity,0),items:o.map(e=>({item_id:null==e?void 0:e.sku,item_name:null==e?void 0:e.name,item_category:null==e?void 0:e.category,price:null==e?void 0:e.price,quantity:null==e?void 0:e.quantity}))}}))},[l]);const V=e=>i.createElement(P,null,i.createElement(B,{icon:c.EZy,size:"xs",onClick:()=>function(e){Q({type:"REMOVE_FROM_CART",value:e})}(e),$productQty:e.quantity}),i.createElement(u.A,{fontSize:"clamp(0.8rem, 2vw, 1rem)",content:e.quantity,align:"center",innerStyle:{width:"clamp(2rem, 2vw, 3.525rem)",margin:0}}),i.createElement(B,{icon:c.QLR,size:"xs",onClick:()=>function(e){Q({type:"INCREASE_QUANTITY_IN_CART",value:e})}(e),$productQty:e.quantity}));return i.createElement(r.A,{maxWidth:"lg"},i.createElement("p",{style:{fontSize:"30px"}}," ",(0,s._)("Din handlekurv")),(null==o?void 0:o.length)>0?i.createElement(w,null,i.createElement(x,null,o.map(e=>{var t;return i.createElement(v,{key:e.id},i.createElement(_,null,e.image?i.createElement($,{image:e.image}):i.createElement($,{src:h.A}),i.createElement(f.sh,null,V)),i.createElement(L,null,i.createElement(C,null,i.createElement(j,{to:e.uri},e.name),e.sku&&i.createElement(u.A,{content:`Varenummer: ${null==e?void 0:e.sku}`,fontSize:"0.8rem"}),i.createElement(f.sh,null,i.createElement(q,{style:{padding:0}},i.createElement("p",null,(0,g.formatPrice)(e.price)))),V(e),i.createElement(S,null,null===(t=e.attributeLabels)||void 0===t?void 0:t.map(e=>i.createElement("p",{key:e.id},i.createElement("span",null,e.label,":")," ",e.value)))),i.createElement(f.cL,null,V)),i.createElement(M,null,i.createElement(f.cL,null,i.createElement(q,null,i.createElement("p",null,(0,g.formatPrice)(e.price)))),i.createElement(E,{onClick:()=>{return t=e.id,void Q({type:"UPDATE_CART",value:o.filter(e=>e.id!==t)});var t}},i.createElement(k,{icon:d.sjs}))))}),i.createElement(H,null,i.createElement(R,{to:null==n?void 0:n.uri},(0,s._)("Fortsette å handle")))),i.createElement(b,null,i.createElement(T,null,i.createElement(A,null,i.createElement("p",null,(0,s._)("Beløp")),i.createElement("div",{style:{display:"flex",width:"100%",alignItems:"end"}}),i.createElement(I,null,i.createElement(N,null,i.createElement("span",null,(0,s._)("Sum varer:")),i.createElement("span",null,U&&(0,g.formatPrice)(U.toString()))),i.createElement(N,null,i.createElement("span",null,(0,s._)("+ mva")),i.createElement("span",null,U&&(0,g.formatPrice)(U*O)))),i.createElement(W,null),i.createElement(z,null,i.createElement("span",null,(0,s._)("Totalt:")),i.createElement("span",null,U&&(0,g.formatPrice)(U*(1+O))))),i.createElement("div",{style:{marginTop:"1rem",width:"100%",display:"flex",justifyContent:"flex-end"}},i.createElement(D,{to:t.wcSettings.checkoutUrl},(0,s._)("Til checkout")))))):i.createElement("p",null,(0,s._)("Handlekurven din er tom")," ",i.createElement(p.Link,{to:null==n?void 0:n.uri},(0,s._)("Tilbake til butikken"))))}},59453:function(e,t,n){n.r(t),n.d(t,{Head:function(){return o}});var i=n(96540),a=n(58278),l=n(77528),r=n(55179);t.default=()=>i.createElement(a.A,null,i.createElement(r.A,null));const o=()=>i.createElement(l.A,{title:"Handlekurv",description:"Handlekurv",url:"/handlekurv/"})},77155:function(e,t,n){var i=n(96540);const a=n(34378).default.p.attrs(e=>{let{$color:t,$backgroundColor:n,$align:i,$fontSize:a,$textTransform:l,$letterSpacing:r,$fontStyle:o,$fontWeight:c,$fontSizeMobile:d,$rowSpacing:m,$linkColor:p,$inlineImageWidth:s}=e;return{$color:t||"",$backgroundColor:n||"",$fontSize:a||void 0,$align:i||"",$textTransform:l||"",$letterSpacing:r||"",$fontStyle:o||"",$fontWeight:c||"unset",$fontSizeMobile:d||void 0,$rowSpacing:m||"",$linkColor:p||"",$inlineImageWidth:s||"100%"}}).withConfig({displayName:"paragraph__ParagraphStyle",componentId:"sc-gv6vh-0"})(["color:",";background-color:",";font-size:",";text-align:",";text-transform:",";letter-spacing:",";font-style:",";font-weight:",";@media (max-width:","){font-size:",";}line-height:",";a{color:",";}img{width:",";}"],e=>{let{$color:t}=e;return t},e=>{let{$backgroundColor:t}=e;return t},e=>{let{$fontSize:t}=e;return t?`${t} !important`:"16px"},e=>{let{$align:t}=e;return t},e=>{let{$textTransform:t}=e;return t},e=>{let{$letterSpacing:t}=e;return t},e=>{let{$fontStyle:t}=e;return t},e=>{let{$fontWeight:t}=e;return t},e=>{let{theme:t}=e;return t.breakpoints.phone},e=>{let{$fontSizeMobile:t,$fontSize:n}=e;return t?`${t}px !important`:n?`${n} !important`:"16px"},e=>{let{$rowSpacing:t}=e;return t},e=>{let{$linkColor:t}=e;return t},e=>{let{$inlineImageWidth:t}=e;return t});t.A=e=>{let{color:t,backgroundColor:n,content:l,align:r,fontSize:o,anchor:c,className:d,direction:m,textTransform:p,letterSpacing:s,fontStyle:u,fontWeight:f,fontSizeMobile:g,rowSpacing:h,linkColor:y,inl
1ineImageWidth:w,innerStyle:b}=e;return i.createElement(a,Object.assign({},c?{id:c}:{},{className:d,dir:m||"auto",$color:t,$backgroundColor:n,$fontSize:o,$align:r,$textTransform:p,$letterSpacing:s,$fontStyle:u,$fontWeight:f,dangerouslySetInnerHTML:{__html:l},$fontSizeMobile:g||null,$rowSpacing:h,$linkColor:y||null,$inlineImageWidth:w,style:b}))}},80973:function(e,t,n){t.A=n.p+"static/placeholder-e83e00e04a871eaf131736981853ee39.jpg"}}]); 2//# sourceMappingURL=component---src-pages-handlekurv-js-0a9136efda750a76f915.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.