PageSourceSearch

https://www.bjornborg.com/us/components-overlays-SiteSelectorOverlay-92ed748fb00a828e2858.js

js bjornborg.com collected 2026-10-02 08:01:29 UTC 4,776 bytes, 1 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[6582],{32411:function(e,t,i){i.r(t),i.d(t,{default:function(){return E}});var l=i(93779),n=i(11041),s=i(56764),o=i(6916),r=i(74534),a=i(25161),d=i(29990),g=i(1620);const u=(0,o.zo)(d.Z,{display:"flex",width:"100%",padding:"16px",fontSize:14,lineHeight:1,fontFamily:n.Vl.regular}),c=(0,o.zo)("span",{padding:"0 8px",textDecoration:"underline",lineHeight:"1",":not(:last-of-type)":{borderRight:"1px solid "+n.O9.grey.four}}),h=(0,o.zo)("div",{display:"flex",width:"100%",padding:"16px",fontSize:14,lineHeight:1,fontFamily:n.Vl.regular});var p=e=>{var t;let{$style:i={},showLanguage:l=!1,item:n,...s}=e;const[r]=(0,o.hQ)();if((null===(t=n.sites)||void 0===t?void 0:t.length)<1)return null;const d=1===n.sites.length,p=d?u:h;return(0,g.jsxs)(p,{$style:i,...s,children:[n.countryCode&&(0,g.jsx)(a.Z,{countryCode:n.countryCode,$style:{marginRight:"16px"}}),n.label,(d||l)&&(0,g.jsx)("div",{className:r({display:"flex",height:"100%",marginLeft:"auto"}),children:(0,g.jsx)(c,{children:n.sites[0].languageLabel})})]})};const x=(0,o.zo)(d.Z,{position:"relative",display:"flex",alignItems:"center",padding:"0 8px",textDecoration:"underline",height:"100%",lineHeight:"1",fontSize:14,fontFamily:n.Vl.regular,":last-of-type":{padding:"0 24px 0 8px"},":not(:last-of-type)::after":{content:"''",position:"absolute",right:"0",height:"14px",borderRight:"1px solid "+n.O9.grey.four}});var y=e=>{let{sites:t=[]}=e;const[i]=(0,o.hQ)();return(null==t?void 0:t.length)<1?null:(0,g.jsx)("div",{className:i({display:"flex",height:"auto",alignItems:"center"}),children:t.map(((e,t)=>(0,g.jsx)(x,{to:e.uri,target:"_self",children:e.languageLabel},"countryLink-"+t)))})},f=i(17800);var m=e=>{let{sites:t}=e;const[i]=(0,o.hQ)();return(null==t?void 0:t.length)<1?null:(0,g.jsx)("div",{className:i({display:"flex",padding:"0 8px",gap:"16px"}),children:t.map(((e,t)=>(0,g.jsx)(f.ZP,{as:d.Z,$style:{flexGrow:"1"},to:e.uri,target:"_self",children:e.languageLabel},"language-"+t)))})};const v=(0,o.zo)("div",{borderBottom:"1px solid "+n.O9.sand.one,fontSize:16,lineHeight:1,fontFamily:n.Vl.extended}),j=(0,o.zo)("button",{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",textAlign:"left",cursor:"pointer"}),S=(0,r.Z)((0,o.zo)("div",{position:"relative",height:"0",overflow:"hidden",paddingLeft:"8px",paddingRight:"8px",transitionDuration:n.lI.primary,transitionProperty:"height",transitionTimingFunction:n.Z5.ease,"::after":{content:'""',display:"block",marginTop:"16px"}}));var b=e=>{let{$style:t={},$toggleStyle:i={},$collapseStyle:l={},siteSelectorItem:n}=e;const{0:r,1:a}=(0,s.useState)(!1),[d]=(0,o.hQ)();return(0,g.jsxs)(v,{$style:t,children:[(0,g.jsxs)("div",{className:d({width:"100%",height:"100%",display:"flex"}),children:[(0,g.jsx)(j,{$style:i,type:"button",onClick:()=>{a(!r)},children:(0,g.jsx)(p,{item:n})}),(0,g.jsx)(y,{sites:n.sites})]}),(0,g.jsx)(S,{$style:l,height:r?"auto":0,children:(0,g.jsx)(m,{sites:n.sites})})]})},_=i(42382),L=i(71410),z=i(2157),C=i(44314),Z=i(61165),O=i(5929);const $=(0,o.zo)("div",{position:"sticky",top:0,zIndex:2,display:"flex",height:"64px",minHeight:"64px",alignItems:"center",padding:"0 16px",backgroundColor:n.O9.grey.one,borderBottom:"1px solid "+n.O9.grey.tw
1o});var H=e=>{let{currentSite:t}=e;const[i]=(0,o.hQ)();return(0,g.jsxs)($,{$style:{display:["flex",null,t?"flex":"none"]},children:[t&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(a.Z,{countryCode:t.countryCode,$style:{marginRight:"16px"}}),(0,g.jsxs)("span",{className:i({fontFamily:n.Vl.regular,fontSize:14,lineHeight:1.4,fontWeight:400}),children:["Shipping to: ",null==t?void 0:t.label]})]}),(0,g.jsx)(O.Z,{icon:"close",theme:"solidWhite",className:i({marginLeft:"auto",cursor:"pointer"}),"aria-label":"Close",type:"button",onClick:()=>L.Z.close(C._.SITE_SELECTOR)})]})};var E=e=>{var t;let{alternateHrefs:i=[]}=e;const s=(0,L.A)(C._.SITE_SELECTOR),o=(0,_.Z)(),r=null==o||null===(t=o.app)||void 0===t?void 0:t.path,{siteSelectorSiteLinks:a}=(0,z.Z)(i),d=null==a?void 0:a.find((e=>{var t;return null===(t=e.sites)||void 0===t?void 0:t.some((e=>e.path===r))}));return a.length?(0,g.jsxs)(Z.Z,{className:"site-selector-overlay",overlayHeight:"auto",isOpen:s,children:[(0,g.jsx)(H,{currentSite:d}),(0,g.jsx)(l.Z,{children:(0,g.jsx)("nav",{children:a.map(((e,t)=>{var i,l;if((null===(i=e.sites)||void 0===i?void 0:i.length)<1)return null;if(d&&d.label===e.label&&(null===(l=e.sites)||void 0===l?void 0:l.length)<2)return null;if(1===e.sites.length){const i=e.sites[0].uri;return(0,g.jsx)(p,{$style:{borderBottom:"1px solid "+n.O9.sand.one},to:i,target:"_self",item:e},"country-"+t)}return(0,g.jsx)(b,{name:"country-accordion-"+t,siteSelectorItem:e},"country-"+t)}))})})]}):null}}}]);

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.