"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[3920],{90864:(e,t,o)=>{o.d(t,{A:()=>s});o(72176);var l=o(36788),n=o(80812);const r=(0,l.A)("div")``,s=e=>{let{display:t="flex",flexDirection:o="column",width:l="100%",...s}=e;return(0,n.jsx)(r,{display:t,flexDirection:o,width:l,...s})}},2433:(e,t,o)=>{o.d(t,{A:()=>a});var l=o(99736),n=o(83758),r=o(68372),s=o(69605),i=o(82638),d=o(80812);const a=e=>{let{label:t,day:o={from:"",to:"",additionalInformation:""}}=e;const a="pdp_stock_store"===(0,n.A)((e=>{var t;let{application:o}=e;return null===o||void 0===o||null===(t=o.overlay)||void 0===t?void 0:t.view})),{t:c}=(0,l.B)(),{from:p,to:u,additionalInformation:x}=o,m=!!p&&!!u,h=s.A.tints;return a?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(i.A,{textStyles:"Secondary/14_140_-3",children:c(t)}),(0,d.jsx)(i.A,{display:"inline",textStyles:"Secondary/14_140_-3",children:m?`${p} - ${u}`:c("store_information.closed")})]}):(0,d.jsxs)(d.Fragment,{children:[x&&(0,d.jsx)(i.A,{textStyles:"Miscellaneous/14_100_+4",m:"12px 0 4px",color:h.onyx,children:x}),(0,d.jsxs)(r.A,{justifyContent:"space-between",children:[(0,d.jsx)(i.A,{textStyles:"Secondary/16_100_-3",children:c(t)}),(0,d.jsx)(i.A,{textStyles:"Miscellaneous/16_100_+4",children:m?`${p} - ${u}`:c("store_information.closed")})]})]})}},40662:(e,t,o)=>{o.d(t,{A:()=>l});const l=(e,t,o,l)=>{const n=new Date,r=n.getDay(),s=r>=1&&r<=5?t:6===r?o:0===r?l:null,i=`${n.getFullYear()}${String(n.getMonth()+1).padStart(2,"0")}${String(n.getDate()).padStart(2,"0")}`,d=Array.isArray(e)?null===e||void 0===e?void 0:e.find((e=>(null===e||void 0===e?void 0:e.date)===i)):null;return d?"closed"===d.openRegularHoursOrClosed?"closed":"open"===d.openRegularHoursOrClosed?s:d:s}},58286:(e,t,o)=>{o.d(t,{Ay:()=>c,VG:()=>s});const l="undefined"!==typeof window,n=l&&window.CSS&&CSS.supports("-webkit-overflow-scrolling: touch");let r=!1;const s=e=>{let{smooth:t=!0,left:o=0,top:n=0,scrollRestoreIsTriggered:s=!1}=e;if(l)if(document.documentElement&&"scrollBehavior"in document.documentElement.style)r=s,a()?(window.scrollTo({behavior:!1!==t?"smooth":"auto",left:o,top:n}),r=!1):setTimeout((()=>{window.scrollTo({behavior:!1!==t?"smooth":"auto",left:o,top:n}),r=!1}),200);else{let e=0;const t=500,o=window.pageYOffset,l=r=>{e=e||r;const s=r-e;o<n?window.scrollTo(0,(n-o)*s/t+o):window.scrollTo(0,o-(o-n)*s/t),s<t?window.requestAnimationFrame(l):window.scrollTo(0,n)};window.requestAnimationFrame(l)}},i="data-prevent-scroll",d="data-scrollbar-gap",a=()=>null===document.body.getAttribute(i),c={scrollTo:s,allowScroll:()=>{if(l&&!a()){const e=document.body,t=Math.abs(parseInt(e.style.top||"0",10));n&&(t&&(e.style.removeProperty("top"),window.scrollTo(0,t)),setTimeout((()=>{r||window.scrollTo(0,t),r=!1})),e.style.removeProperty("position"),e.style.removeProperty("width")),e.style.removeProperty("overflow"),e.style.removeProperty("padding-right"),e.removeAttribute(d),e.removeAttribute(i)}},isScrollAllowed:a,preventScroll:()=>{if(l&&a()){const e=document.body,t=window.pageYOffset,o=window.innerWidth-document.documentElement.clientWidth;e.setAttribute(i,"true"),n&&(t&&e.style.setProperty("top",`-${t}px`),setTimeout((()=>{e.style.position="fixed"})),e.style.position="fixed",e.style.width="100%"),e.style.overflow="hidden",o>0&&(e.setAttribute(d,`${o}px`),e.style.paddingRight=`${o}px`)}}}},8962:(e,t,o)=>{o.d(t,{A:()=>r});o(72176);var l=o(66170),n=o(80812);const r=e=>{let{width:t,height:o,color:r="currentColor",fill:s="none",...i}=e;return(0,n.jsxs)(l.A,{width:t,height:o,viewBox:"0 0 16 16",fill:s,...i,children:[(0,n.jsx)("path",{d:"M1.5 2.5H14.5V12.5H1.5V2.5Z",stroke:r,"stroke-linejoin":"round"}),(0,n.jsx)("path",{d:"M1.5 5L8 8.86346L14.5 5",stroke:r})]})}},35665:(e,t,o)=>{o.d(t,{A:()=>r});o(72176);var l=o(66170),n=o(80812);const r=e=>{let{width:t,height:o,color:r="currentColor",fill:s="none",...i}=e;return(0,n.jsx)(l.A,{width:t,height:o,viewBox:"0 0 16 16",fill:s,...i,children:(0,n.jsx)("path",{d:"M14 11.1108L10.3606 9.34902L8.54085 10.2299C8.54085 10.2299 7.46582 10.0152 6.77767 9.34902C6.08953 8.6828 5.78131 7.32188 5.78131 7.32188L6.77767 5.60457L5.13518 2.00041C4.68078 1.97921 3.2738 2.79548 3.2738 2.79548C3.2738 2.79548 1.41241 3.59056 2.18987 6.27249C3.20009 9.75731 5.87252 12.5986 9.45071 13.7534C12.1803 14.6342 13.0901 12.8725 13.0901 12.8725C13.0901 12.8725 14 11.5512 14 11.1108Z",stroke:r,"stroke-linejoin":"round"})})}},25957:(e,t,o)=>{o.d(t,{A:()=>s});var l=o(36788),n=o(48188);const r=(0,l.A)("div")``;r.defaultProps={display:"grid",gridTemplateColumns:"repeat(12, 1fr)",columnGap:[n.T_.mobile,null,null,n.T_.desktop]};const s=r},40358:(e,t,o)=>{o.r(t),o.d(t,{default:()=>I});var l=o(83758),n=o(6154),r=o(36788),s=o(25957),i=o(99736),d=o(58286),a=o(90864),c=o(68372),p=o(58329),u=o(69605),x=o(43459),m=o(28707),h=o(46349),y=o(8962),g=o(35665),f=o(82638),A=o(80812);const _=(0,r.A)("div")`
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    border-radius: 8px;
    background-color: ${e=>{let{theme:t}=e;return t.colors.eggshell}};

    ${n.G1["desktop.sm"]} {
        margin-left: 32px;
        padding: 24px;
    }
`,v=(0,r.A)(p.A)`
    display: flex;
    height: 40px;
    width: 40px;
    border-radius: 100%;
    background-color: ${e=>{let{theme:t}=e;return t.colors.onyx}};
`,j=(0,r.A)("div")`
    display: flex;
    flex-direction: column;
    gap: 24px;

    ${n.G1["tablet.sm"]} {
        margin-top: auto;
    }

    ${n.G1["desktop.sm"]} {
        flex-direction: row;

        &[data-has-social='false'] {
            justify-content: flex-end;
        }
    }
`,w=e=>{let{data:t}=e;const{t:o}=(0,i.B)(),{storeContactInformation:l,storeEventCalendar:n}=t,{contactInformation:r,socialMediaLinks:s,streetAddress:p}=l,{location:w,address:S,city:b,postalCode:C}=p,{phoneNumber:k,email:$}=r,{instagram:T,facebook:M}=s,{url:D}=T||{},{url:L}=M||{};if([r.email,r.phoneNumber,null===p||void 0===p?void 0:p.address,null===p||void 0===p?void 0:p.city,null===p||void 0===p?void 0:p.postalCode].every((e=>""===e||null===e||void 0===e)))return null;const{heading:O,eventDays:E}=n,G=!!O&&!!E,{tints:H,monochrome:P,onyx:B}=u.A;return(0,A.jsxs)(_,{gridColumn:["1 / span 12",null,"1 / span 6",null,null,"1 / span 5"],children:[(0,A.jsx)(f.A,{textStyles:"Primary/24_100_-3",mb:"24px",children:o("store_information.street_address_contact")}),(0,A.jsxs)(a.A,{gap:"24px",height:"100%",children:[(0,A.jsxs)(a.A,{children:[(0,A.jsx)(f.A,{textStyles:"Miscellaneous/14_100_+4",mb:"16px",color:H.onyx,children:o("store_information.street_address")}),(0,A.jsxs)(a.A,{gap:"8px",children:[(0,A.jsx)(f.A,{textStyles:"Secondary/16_100_-3",children:w}),(0,A.jsx)(f.A,{textStyles:"Secondary/16_100_-3",children:S}),(0,A.jsxs)(f.A,{textStyles:"Secondary/16_100_-3",children:[C," ",b]})]})]}),(0,A.jsxs)(a.A,{mb:[null,null,"72px",null,null,"unset"],children:[(0,A.jsx)(f.A,{textStyles:"Miscellaneous/14_100_+4",mb:"16px",color:H.onyx,children:o("store_information.contact_information")}),(0,A.jsxs)(c.A,{gap:"16px",mb:"12px",children:[(0,A.jsxs)(c.A,{gap:"12px",children:[(0,A.jsx)(g.A,{flexShrink:"0",width:"16px",height:"16px"}),(0,A.jsxs)(f.A,{textStyles:"Secondary/16_100_-3",flexShrink:"0",children:[o("store_information.telephone"),":"]})]}),(0,A.jsx)(f.A,{textStyles:"Miscellaneous/16_100_+4",flexShrink:"0",children:k})]}),(0,A.jsxs)(c.A,{gap:"16px",children:[(0,A.jsxs)(c.A,{gap:"12px",children:[(0,A.jsx)(y.A,{flexShrink:"0",width:"16px",height:"16px"}),(0,A.jsxs)(f.A,{textStyles:"Secondary/16_100_-3",flexShrink:"0",children:[o("store_information.email"),":"]})]}),(0,A.jsx)(f.A,{textStyles:"Complementary/16_100",flexShrink:"0",children:$})]})]}),(!!D||!!L||!!G)&&(0,A.jsxs)(j,{"data-has-social":!!D||!!L,children:[(!!L||!!D)&&(0,A.jsxs)(a.A,{display:"inline",children:[(0,A.jsx)(f.A,{textStyles:"Miscellaneous/14_100_+4",mb:"16px",children:o("store_information.social_media")}),(0,A.jsxs)(c.A,{gap:"12px",children:[!!D&&(0,A.jsx)(v,{to:D,children:(0,A.jsx)(h.A,{margin:"auto",height:"20px",width:"20px",color:P.two})}),!!L&&(0,A.jsx)(v,{to:L,backgroundColor:`${P.two} !important`,children:(0,A.jsx)(m.A,{borderRadius:"100%",color:B,margin:"auto",height:"40px",width:"40px"})})]})]}),!!G&&(0,A.jsx)(x.A,{onClick:()=>{const e=document.getElementById("event-calendar");e&&(0,d.VG)({smooth:!0,top:e.offsetTop-120})},alignSelf:[null,null,null,null,null,"flex-end"],children:(0,A.jsx)(f.A,{textStyles:"Miscellaneous/16_100_+4",children:o("store_information.store_news")})})]})]})]})},S=(0,r.A)("div")`
    padding: 24px;
    border-radius: 8px;
    background-color: ${e=>{let{theme:t}=e;return t.colors.eggshell}};

    ${n.G1["desktop.sm"]} {
        margin-left: 32px;
    }
`,b=(0,r.A)("div")`
    &:last-of-type {
        padding-bottom: 0;
    }
`,C=e=>{let{data:t}=e;const{heading:o,eventDays:l}=t;if(!o||!l)return null;const{tints:n,monochrome:r}=u.A;return(0,A.jsxs)(S,{id:"event-calendar",gridColumn:["1 / span 12",null,null,null,null,"1 / span 5"],children:[(0,A.jsx)(f.A,{textStyles:"Primary/24_100_-3",mb:"24px",children:o}),(0,A.jsx)(a.A,{children:l.map((e=>{let{eventDay:t}=e;const{heading:o,line_1:l,line_2:s}=t;return(0,A.jsx)(b,{p:"12px 0",borderTop:`1px dashed ${r.six}`,children:(0,A.jsxs)(a.A,{gap:"12px",p:"16px 0",children:[(0,A.jsx)(f.A,{textStyles:"Miscellaneous/14_100_+4",color:n.onyx,children:o}),l&&(0,A.jsx)(f.A,{textStyles:"Secondary/16_140_-3",children:l}),s&&(0,A.jsx)(f.A,{textStyles:"Secondary/16_140_-3",children:s})]},o)})}))})]})},k=(0,r.A)("div")`
    padding: 24px 16px;
    border-radius: 8px;
    background-color: ${e=>{let{theme:t}=e;return t.colors.eggshell}};

    ${n.G1["desktop.sm"]} {
        margin-left: 32px;
        padding: 24px;
    }
`,$=e=>{let{data:t}=e;const{t:o}=(0,i.B)();if(!t)return null;const{monochrome:l}=u.A;return(0,A.jsxs)(k,{gridColumn:["1 / span 12",null,null,null,null,"1 / span 5"],children:[(0,A.jsx)(f.A,{textStyles:"Primary/24_100_-3",mb:"24px",children:o("store_information.exceptional_opening_hours")}),(0,A.jsx)(a.A,{children:t.map(((e,t)=>{let{day:n,from:r,to:s,openRegularHoursOrClosed:i}=e;const d="open"===i,a="closed"===i;return(0,A.jsxs)(c.A,{padding:"12px",gap:"16px",alignItems:"center",justifyContent:"space-between",backgroundColor:t%2===0&&l.two,borderRadius:"6px",children:[(0,A.jsx)(f.A,{textStyles:"Secondary/16_140_-3",children:n}),(0,A.jsx)(f.A,{textStyles:["Miscellaneous/14_100_+4",null,null,null,null,"Miscellaneous/16_100_+4"],flexShrink:"0",children:d?o("store_information.open"):a?o("store_information.closed"):`${r} - ${s}`})]},n)}))})]})};var T=o(59228);const M=(0,r.A)("div")`
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    background-color: ${e=>{let{theme:t}=e;return t.colors.eggshell}};

    ${n.G1["tablet.sm"]} {
        aspect-ratio: unset;
    }

    ${n.G1["desktop.sm"]} {
        grid-row: 1 / span 3;
        aspect-ratio: 5 / 6;
    }
`,D=(0,r.A)(T.A)`
    object-fit: cover;
    border: 1px solid ${e=>{let{theme:t}=e;return t.colors.monochrome.six}};
    border-radius: 8px;
`,L=e=>{let{data:t}=e;if(!t)return null;const{url:o,alt:l}=t;return(0,A.jsx)(M,{gridColumn:["1 / span 12",null,"7 / span 6",null,null,"6 / span 4"],children:(0,A.jsx)(D,{src:o,alt:l,loading:"lazy"})})};var O=o(40662),E=o(2433);const G=(0,r.A)("div")`
    padding: 24px 16px;
    border-radius: 8px;
    background-color: ${e=>{let{theme:t}=e;return t.colors.eggshell}};

    ${n.G1["desktop.sm"]} {
        margin-left: 32px;
        padding: 24px;
    }
`,H=e=>{let{data:t}=e;const{t:o}=(0,i.B)(),{openingHours:l,exceptionalOpeningHours:n}=t,{mondayFriday:r,saturday:s,sunday:d}=l;if([r.from,r.to,s.from,s.to,d.from,d.to].every((e=>""===e||null===e||void 0===e)))return null;const c=[{label:"store_information.today",day:(0,O.A)(n,r,s,d)},{label:"store_information.weekdays",day:r},{label:"store_information.saturdays",day:s},{label:"store_information.sundays",day:d}];return(0,A.jsxs)(G,{gridColumn:["1 / span 12",null,null,null,null,"1 / span 5"],children:[(0,A.jsx)(f.A,{textStyles:"Primary/24_100_-3",mb:"24px",children:o("store_information.opening_hours")}),(0,A.jsx)(a.A,{gap:"24px",children:(0,A.jsx)(a.A,{gap:"12px",children:c.map((e=>{let{label:t,day:o}=e;return(0,A.jsx)(E.A,{label:t,day:o})}))})})]})},P=(0,r.A)(s.A)`
    grid-template-columns: repeat(12, 1fr);
    grid-row-gap: 12px;
    width: 100%;
    margin-top: 32px;

    ${n.G1["desktop.sm"]} {
        grid-template-columns: repeat(9, 1fr);
        margin-top: 48px;
    }
`,B=e=>{var t;let{data:o}=e;const{stores:n}=(0,l.A)((e=>{var t,o;let{application:l}=e;return null===l||void 0===l||null===(t=l.config)||void 0===t||null===(o=t.options)||void 0===o?void 0:o.storesOpeningHours})),r=(0,l.A)((e=>{let{application:t}=e;return t.site.locale})),{title:s}="sv_SE"===r?(0,l.A)((e=>{let{page:t}=e;return null===t||void 0===t?void 0:t.data})):(0,l.A)((e=>{var t,o;let{page:l}=e;return null===l||void 0===l||null===(t=l.data)||void 0===t||null===(o=t.localizations)||void 0===o?void 0:o["1Svse"]})),i=null===n||void 0===n||null===(t=n.find((e=>{var t;return(null===e||void 0===e||null===(t=e.storeLocation)||void 0===t?void 0:t.name)===s})))||void 0===t?void 0:t.storeOpeningHours;if(!i)return null;const{exceptionalOpeningHours:d}=i,{storeContactInformation:a,map:c,storeEventCalendar:p}=o;return(0,A.jsxs)(P,{as:"section",gridColumn:["standard",null,null,null,null,"5 / span 9"],children:[(0,A.jsx)(w,{data:{storeContactInformation:a,storeEventCalendar:p}}),(0,A.jsx)(L,{data:c}),(0,A.jsx)(H,{data:i}),(0,A.jsx)($,{data:d}),(0,A.jsx)(C,{data:p})]})},I=e=>{let{data:t}=e;return(0,A.jsx)(B,{data:null===t||void 0===t?void 0:t.data})}}}]);
//# sourceMappingURL=StoreInformation.83c582e7.chunk.js.map