1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8372bd05-aca1-4f05-a83b-b1d95c3b55f3",e._sentryDebugIdIdentifier="sentry-dbid-8372bd05-aca1-4f05-a83b-b1d95c3b55f3")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[276],{94061:function(e,n,a){"use strict";var r=a(85893);a(67294);var t=a(42930),l=a.n(t);n.Z=e=>{let{children:n}=e;return(0,r.jsx)("article",{className:l().root,children:(0,r.jsx)("span",{className:l().inner,children:n})})}},20357:function(e,n,a){"use strict";var r=a(85893);a(67294);var t=a(70655),l=a.n(t);n.Z=e=>{let{children:n}=e;return(0,r.jsx)("section",{className:l().scroller,children:(0,r.jsx)("ul",{className:l().cards,children:n})})}},60276:function(e,n,a){"use strict";a.r(n),a.d(n,{StoreLandingPage:function(){return V},__N_SSP:function(){return q},default:function(){return X}});var r=a(85893),t=a(67294),l=a(65014),i=a(5152),o=a.n(i),s=a(9008),c=a.n(s),d=a(11163),_=a(2484),m=a(43285),p=a(75197),u=a(51648),h=a(97718),g=a(27008),x=a(44218);let f=e=>{let{children:n}=e.content;return{...e,content:{...e.content,children:Array.isArray(n)?n.map(e=>({...e,type:"application/menu-card",content:{...e.content,children:[]}})).slice(0,4):n}}},j=e=>{let n=Array.isArray(e.content.children)?e.content.children.filter(e=>e.content.children).map(f):[];return{...e,content:{...e.content,children:n}}};var v=a(9863),b=a(56954),S=a(15490),y=a.n(S),C=e=>{var n,a;let{contact:l}=e,i=null==l?void 0:null===(n=l.image)||void 0===n?void 0:n[0],o=function(){let[e,n]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{n(!0)},[]),e}(),{image_fallback_dark:s}=(0,b.AG)(),c=null===(a=l.name.split(" "))||void 0===a?void 0:a[0];return(0,r.jsx)(v.Z,{component:"article","aria-label":"Personalinformation om ".concat(l.name),children:(0,r.jsxs)("section",{className:y().root,itemProp:"employee",itemScope:!0,itemType:"https://schema.org/employee",children:[(0,r.jsx)("span",{className:y().image,children:(0,r.jsx)("img",{alt:"Portr\xe4ttbild av ".concat(l.name),src:(null==i?void 0:i.src)||(0,b.K3)(s)})}),(0,r.jsxs)("section",{className:y().info,"aria-label":"Kontaktinformation",children:[(0,r.jsx)(h.Z,{itemProp:"name",className:y().name,"aria-label":"Namn",children:l.name}),(0,r.jsx)(h.Z,{itemProp:"jobTitle",className:y().title,"aria-label":"Titel",children:l.title}),l.phone&&(0,r.jsx)("a",{className:y().phone,href:"tel:".concat(l.phone),"aria-label":"Telefon",children:(0,r.jsx)(h.Z,{itemProp:"telephone",children:l.phone})}),l.email&&(0,r.jsx)("a",{className:y().email,href:o?"mailto:".concat(l.email):"#","aria-label":"Eâpost",children:(0,r.jsxs)(h.Z,{itemProp:"email",children:["Mejla ",c]})})]})]})})},N=a(84775),Z=a(98081),k=a(20357),L=a(347),w=a(67892),A=a.n(w);let P=t.createContext({}),T=e=>{var n,a;let{nav:l,page:i}=e,o=t.useContext(P),{makeLink:s}=(0,L.o)(),c="string"==typeof i&&(null===(a=o[i])||void 0===a?void 0:null===(n=a.thumbnails[0])||void 0===n?void 0:n.url),{image_fallback_dark:d}=(0,b.AG)();return(0,r.jsx)(Z.Z,{title:l.label,url:s(l.href),image:c||(0,b.K3)(d)})},E=e=>{let{sub:n,nav:a,blockProps:l,images:i}=e,{makeLink:o}=(0,L.o)(),s=(0,t.useId)();return(0,r.jsxs)(p.Z,{...l,component:"article","aria-labelledby":s,children:[(0,r.jsxs)(u.Z,{className:A().header,children:[(0,r.jsx)(h.Z,{component:"h2",variant:"heading",id:s,children:a.label}),!!((null==n?void 0:n.length)!==void 0&&(null==n?void 0:n.length)>4)&&(0,r.jsx)(N.Z,{href:o(a.href),className:A().showAll,children:"Visa alla"})]}),(0,r.jsx)(u.Z,{padding:"none",children:(0,r.jsx)(k.Z,{children:(0,r.jsx)(P.Provider,{value:i,children:Array.isArray(n)&&n?n.map((e,n)=>{let{content:a}=e;return(0,r.jsx)(T,{...a,nav:a.nav},n)}):null})})})]})};var G=a(44388),K=a(26832),O=a(58605),B=a(83717),R=a(87554),H=a(68243),I=a.n(H),M=a(89127),Y=a(10432);let F=(0,b.OS)(x.ORG_SETTINGS.xlbygg.organization),D=o()(()=>Promise.all([a.e(2634),a.e(9059)]).then(a.bind(a,39059)),{loadableGenerated:{webpack:()=>[39059]},loading:()=>(0,r.jsx)(R.Z,{loading:!0}),ssr:!1}),W={bolist:"Allt till ditt byggprojekt. Handla tryggt online hos Bolist. Fri frakt till butik. Snabba leveranser. Sveriges st\xf6rsta bygg- & j\xe4rnhandel med 200 anknutna butiker.",xlbygg:"XL-BYGG \xe4r en kedja av n\xe4rmare 100 frist\xe5ende bygghandlare \xf6ver hela Sverige. Handla ditt byggmaterial hos oss!"};var q=!0;let V=e=>{var n;let{store:a,campaigns:i}=e,{menu:o}=(0,L.o)(),{isProffsAuthenticated:s}=(0,K.rb)(),x=(0,d.useRouter)();(0,Y.Pe)((0,Y.oe)(a),a.external_id);let f=(0,t.useRef)(null),[v,S]=(0,t.useState)({}),y=(0,t.useCallback)(e=>"l10n://".concat(a.external_id,"@").concat(e),[a.external_id]),N=a.contacts?Object.entries((0,b.Xt)(a.contacts)):void 0,Z=(0,t.useMemo)(()=>o?j(o.values):void 0,[o]),k=(0,t.useMemo)(()=>{var e,n;return null!==(n=null==Z?void 0:null===(e=Z.content)||void 0===e?void 0:e.children)&&void 0!==n?n:[]},[null==Z?void 0:null===(n=Z.content)||void 0===n?void 0:n.children]);(0,t.useEffect)(()=>{let e=async()=>{try{let e=k.flatMap(e=>{var n,a;return null!==(a=null===(n=e.content.children)||void 0===n?void 0:n.filter(e=>e.content.page).map(e=>y(e.content.page)))&&void 0!==a?a:[]}).filter((e,n,a)=>a.indexOf(e)===n),{data:n}=await (0,m.Ai)({nodes:e});S(Object.fromEntries(n.map(e=>[e.uri,e.values])))}catch(e){}};f.current!==a.external_id&&(f.current=a.external_id,e())},[a.external_id,y,k]);let{organization:w}=(0,b.AG)(),A=0,P=()=>({component:"div",key:A++}),T=(0,t.useMemo)(()=>(0,r.jsx)(l.NB,{uri:"seo/store-".concat(a.external_id,"/description"),children:W[w]}),[null==a?void 0:a.external_id,w]),G=null==a?void 0:a.svg_url;return(0,t.useEffect)(()=>{s&&a.proffs_enabled&&x.push({pathname:_.ZP.STORE_PROFFS_ROOT,query:{[g.pj.STORE]:a.slug}})},[s,x,a.slug,a.proffs_enabled]),(0,r.jsxs)(r.Fragment,{children:[(0,t.cloneElement)(T,{edit:!1,render:function(e){var n;let a="success"===e.type&&null!==(n=e.content.trim())&&void 0!==n?n:"";return a?(0,r.jsxs)(c(),{children:[(0,r.jsx)("meta",{name:"description",content:a}),(0,r.jsx)("meta",{property:"og:description",content:a})]}):null}}),G&&(0,r.jsx)("meta",{itemProp:"logo",content:G}),(0,r.jsx)("meta",{itemProp:"latitude",content:a.location.lat}),(0,r.jsx)("meta",{itemProp:"longitude",content:a.location.lon}),(0,r.jsxs)(p.Z,{...P(),background:F?"offblack":"primary",component:"article","aria-label":"Kampanjer",children:[(0,r.jsx)(u.Z,{children:(null==i?void 0:i.length)>0&&(0,r.jsx)(B.Z,{campaign:i[0],big:!0})}),(0,r.jsx)(u.Z,{className:I().mt,children:(null==i?void 0:i.length)>1&&(0,r.jsx)("section",{className:I().threeGrid,children:i.slice(1).map((e,n)=>(0,r.jsx)(B.Z,{campaign:e,color:"white",contained:!0,hover:!0},n))})})]}),k.map((e,n)=>{let a=Array.isArray(e.content.children)?e.content.children.reduce((e,n)=>{var a,r;return"string"!=typeof n.content.page||(e[n.content.page]=null===(r=v[y(n.content.page)])||void 0===r?void 0:null===(a=r.content)||void 0===a?void 0:a.featured_image),e},{}):{};return(0,r.jsx)(E,{blockProps:{...P(),background:F?"secondary":"white"},nav:e.content.nav,sub:e.content.children,images:a},n)}),(0,r.jsxs)(p.Z,{...P(),background:F?"white":"primary",padding:"extra",component:"article","aria-label":"Butiksinformation",children:[(0,r.jsx)("span",{className:I().scrollTarget,id:_.py.FIND_US,role:"presentation"}),(0,r.jsx)(u.Z,{children:(0,r.jsxs)("section",{className:I().mapAndContact,children:[(0,r.jsxs)("section",{className:I().contact,itemType:"https://schema.org/LocalBusiness","aria-label":"Hitta hit",children:[(0,r.jsx)(h.Z,{raw:!0,component:"h2",variant:"heading",children:"Hitta hit"}),(0,r.jsxs)("section",{children:[(0,r.jsx)(h.Z,{variant:"strong","aria-label":"Butiksnamn",children:a.name}),(0,r.jsx)(M.kL,{store:a})]}),(0,r.jsx)("section",{"aria-label":"\xd6ppettider",children:(0,r.jsx)(M.Lh,{hours:a.hours})}),(0,r.jsx)(M.Pi,{store:a,vertical:!0,"aria-label":"Kontakt"})]}),(0,r.jsx)(D,{store:a})]})})]}),(0,r.jsx)("span",{className:I().scrollTarget,id:_.py.STAFF,role:"presentation"}),!!(N&&N.length>0)&&(0,r.jsx)(p.Z,{...P(),background:F?"white":"primary",component:"article",children:(0,r.jsxs)(u.Z,{children:[(0,r.jsx)(h.Z,{component:"h2",variant:"heading",children:t.cloneElement(O.Z.EMPLOYEES_HEADER,{name:"p\xe5 ".concat(a.name)})}),null==N?void 0:N.map((e,n)=>{let[a,l]=e;return(0,t.createElement)(p.Z,{...P(),key:n,padding:"bottom-only",component:"section",children:[null!=a&&(0,r.jsx)(h.Z,{component:"h3",variant:"smallheading",children:a}),(0,r.jsx)(p.Z,{className:I().fourGrid,component:"ul",padding:"none",children:l.map((e,n)=>(0,r.jsx)("li",{children:(0,r.jsx)(C,{contact:e})},n))})]})})]})}),(0,r.jsx)(l.qB,{children:O.Z})]})};var X=(0,G.oT)(V)},83717:function(e,n,a){"use strict";var r=a(85893),t=a(67294),l=a(93967),i=a.n(l),o=a(30860),s=a(11163),c=a(2484),d=a(75197),_=a(94061),m=a(9863),p=a(86588),u=a(97718),h=a(347),g=a(38739),x=a(85155),f=a(93169),j=a(88358),v=a(85587),b=a.n(v);let S=e=>{let{contained:n=!1,text:a}=e;return(0,r.jsxs)("span",{className:i()(b().link,{[b().contained]:n}),role:"presentation",children:[null!=a?a:g.Z.CAMPAIGN_LINK_TEXT_FALLBACK,(0,r.jsx)(j.Z,{fill:"currentColor"})]})},y=(0,o.d)("CAMPAIGN_SPLASHES");
1n.Z=e=>{let{campaign:n,big:a=!1,linked:l=!0,contained:g=!1,reverse:j=!1,round:v=!1,color:C="none",...N}=e,{title:Z,bannerline1:k,bannerline2:L,image_node:w,image_url:A,image_alt_text:P,subtitle:T,url:E,url_b2b:G,splash:K}=n,{store:O}=(0,h.o)(),{asPath:B}=(0,s.useRouter)(),R=(0,f.Z)(B)?G:E,H=null;if(R){var I;let e=(0,x.KI)(R,O);H=e!==R?e:!O||R.startsWith("/")||R.startsWith("http")?null!==(I=(0,x.v7)(R,!1))&&void 0!==I?I:R:"".concat(c.aV).concat(O.slug,"/").concat((0,x.v7)(R,!1))}let M=(0,r.jsxs)(m.Z,{component:"a",color:C,className:i()(a?b().big:b().campaign,{[b().reverse]:j,[b()["color-white"]]:"white"===C,[b().round]:v}),"aria-label":Z,...N,children:[(0,r.jsxs)("section",{className:b().wrapper,children:[!!(a&&n.sticker||!a&&n.title)&&(0,r.jsx)("h3",{className:b().tagline,children:(0,r.jsx)("span",{children:a?n.sticker:n.title})}),!!(k&&L&&y)&&(0,r.jsx)("section",{className:b().badge,children:(0,r.jsxs)(_.Z,{children:[(0,r.jsx)("p",{className:b().upTo,children:k}),(0,r.jsx)("p",{className:b().percentage,children:L})]})}),y&&K&&(null==K?void 0:K.trim())&&(0,r.jsx)("section",{className:b().badge,children:(0,r.jsx)(_.Z,{children:(0,r.jsx)("span",{className:"djedi",dangerouslySetInnerHTML:{__html:K}})})}),(0,r.jsx)("figure",{className:b().imageWrapper,children:w||("string"==typeof A?(0,r.jsx)("img",{src:A,alt:null!=P?P:"Kampanjbild"}):null)})]}),a?(0,r.jsxs)(d.Z,{className:b().info,"aria-label":"Kampanjinformation",children:[(0,r.jsx)(u.Z,{variant:"superheading",component:"h2",className:b().heading,"aria-label":"Kampanjnamn",children:Z}),(0,r.jsx)(u.Z,{variant:"p","aria-label":"Kampanjbeskrivning",children:T}),l&&(0,r.jsx)(S,{contained:g,text:n.cta_label})]}):(0,r.jsx)(S,{contained:g,text:n.cta_label})]});return l&&H?(0,o.d)("LOCAL_STORE_ONLY")?(0,r.jsx)("a",{href:H,className:b().linkwrap,children:M}):"string"==typeof H?(0,r.jsx)(p.Z,{href:H,passHref:!0,className:b().linkwrap,legacyBehavior:!0,children:M}):(0,t.cloneElement)(H,{render:e=>{let{content:n,type:a}=e;return"success"===a?(0,r.jsx)(p.Z,{href:n,passHref:!0,legacyBehavior:!0,children:M}):null}}):M}},42930:function(e){e.exports={root:"CampaignBadge_root__z4DGO",inner:"CampaignBadge_inner__fVphM"}},70655:function(e){e.exports={cards:"SideScrollCardContainer_cards__fJv_L",scroller:"SideScrollCardContainer_scroller__ufv2o"}},15490:function(e){e.exports={root:"StaffCard_root__htXLB",name:"StaffCard_name__kOvjq",title:"StaffCard_title__Lh2Z_",info:"StaffCard_info__qmpYb",image:"StaffCard_image__e9mn9",email:"StaffCard_email__p7dPm",phone:"StaffCard_phone__usUlE"}},67892:function(e){e.exports={header:"StoreCardMenu_header__yChQC",showAll:"StoreCardMenu_showAll__QKYqy",hidden:"StoreCardMenu_hidden__4k3J_"}},85587:function(e){e.exports={upTo:"Campaign_upTo__2Ci5e",percentage:"Campaign_percentage__fQxae",badge:"Campaign_badge__SNvBD",campaign:"Campaign_campaign__R6wjA",big:"Campaign_big__8pWp2",reverse:"Campaign_reverse__41ohH",link:"Campaign_link___wgzR",heading:"Campaign_heading__4_FPb","color-white":"Campaign_color-white__uTtPF",contained:"Campaign_contained__ddQuX",wrapper:"Campaign_wrapper__BYKp7",info:"Campaign_info__5fKKY",imageWrapper:"Campaign_imageWrapper__1rmYk",round:"Campaign_round__Jr00s",tagline:"Campaign_tagline__Jnb7_",discountTag:"Campaign_discountTag__YIbJv"}},68243:function(e){e.exports={grid:"LocalStores_grid__cGdNZ",threeGrid:"LocalStores_threeGrid__aKqHs LocalStores_grid__cGdNZ",fourGrid:"LocalStores_fourGrid__VkK7Y LocalStores_grid__cGdNZ",scrollContainersWrapper:"LocalStores_scrollContainersWrapper__e_0US",scrollContainer:"LocalStores_scrollContainer__Rdsx9",fourGridSwipe:"LocalStores_fourGridSwipe__xEu_P LocalStores_grid__cGdNZ",swipe:"LocalStores_swipe____l36",scrollTarget:"LocalStores_scrollTarget___9rX4",contact:"LocalStores_contact__t07Vs",mapAndContact:"LocalStores_mapAndContact__UeliU",storeName:"LocalStores_storeName__Y60eT",mt:"LocalStores_mt__VQRyd",rowHeader:"LocalStores_rowHeader__v_g_C",link:"LocalStores_link__DdHRu"}}}]); 2//# sourceMappingURL=276-8e7abf45e9825ac9.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.