1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[2004],{29810:function(t,e,n){var i=n(6916),o=n(56764),s=n(10762),l=n(11041),r=n(1620);const a=(0,i.zo)("span",{fontSize:10,lineHeight:"1",fontWeight:500,letterSpacing:"0.4px",fontStyle:"normal",fontFamily:l.Vl.extended,textTransform:"uppercase",whiteSpace:"nowrap"}),c=(0,i.zo)("span",{display:"inline-block",width:"4px",height:"4px",borderRadius:"50%",backgroundColor:"currentColor",flexShrink:0});e.Z=t=>{let{tags:e,$style:n,withFade:i=!0}=t;return(0,r.jsx)(s.Z,{withFade:i,scrolldirection:"horizontal",$style:{display:"flex",gap:"4px",alignItems:"center",flexWrap:"nowrap",width:"100%",maxWidth:"100%",...n},children:e.map(((t,e)=>{const n=t.onClick?{as:"button",$style:{cursor:"pointer"},type:"button",onClick:t.onClick}:{$style:{cursor:"default"}};return(0,r.jsxs)(o.Fragment,{children:[e>0&&(0,r.jsx)(c,{}),(0,r.jsx)(a,{...n,children:t.name},t.id)]},t.id)}))})}},20117:function(t,e,n){n.d(e,{T:function(){return f}});var i=n(60781),o=n(6916),s=n(11041),l=n(53142),r=n(17507),a=n(29990),c=n(14345),d=n(58307),p=n(56764),u=n(29810),h=n(87867),g=n(1620);const x=(0,o.zo)("div",{display:"flex",flexDirection:"column",justifyContent:"center",gap:"16px"}),y=(0,o.zo)("div",{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",gap:"14px",width:"100%",height:"100%"}),f=t=>{let{$style:e,background:n,hasResponsiveDesignFrom:f,headingType:m="h3",label:v,linkLabel:b,loading:w="lazy",tags:j,to:C,...S}=t;const[k]=(0,o.hQ)(),{0:R,1:Z}=(0,p.useState)(!1);b=b||"Go to article";const H=!!f,E=H?d.p8.findIndex((t=>t===f))-1:0,$=Array(E).fill(null);return(0,g.jsxs)(x,{$style:{flexDirection:H?["row"].concat((0,i.Z)($),["column"]):"column",overflow:"hidden",textOverflow:"ellipsis",...e},onMouseEnter:()=>Z(!0),onMouseLeave:()=>Z(!1),...S,children:[(0,g.jsx)(a.Z,{isVolatile:!0,to:C,className:k({display:"block",flexShrink:0,width:H?["104px"].concat((0,i.Z)($),["100%"]):"100%"}),children:(0,g.jsx)(l.Z,{ratio:1,$style:{width:H?["104px"].concat((0,i.Z)($),["100%"]):"100%",backgroundColor:s.O9.greyProductBackground,borderRadius:"4px"},children:(0,g.jsx)(c.Z,{media:n,loading:w,$style:{zIndex:1}})})}),(0,g.jsxs)(y,{$style:{padding:H?["12px 0px"].concat((0,i.Z)($),["0px"]):"0px",overflow:"hidden",textOverflow:"ellipsis"},children:[!!j&&j.length>0&&(0,g.jsx)(u.Z,{tags:j}),(0,g.jsx)(a.Z,{isVolatile:!0,to:C,className:k({width:"100%",display:"block",minWidth:0}),children:(0,g.jsx)(r.Z,{as:m,styleAs:void 0,$style:{fontSize:18,lineHeight:"1.1",fontWeight:500,fontFamily:s.Vl.regular,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",maxWidth:"100%"},children:v})}),C&&(0,g.jsx)(h.Z,{label:b,to:C,theme:"solidWhiteOutlined",$style:{marginTop:"auto"},forceHover:R})]})]})}},82817:function(t,e,n){var i=n(6916),o=(n(56764),n(10762)),s=n(59608),l=n(1620);const r=(0,i.zo)(o.Z,{width:"100%",display:"flex",flexWrap:"nowrap"});e.Z=t=>{let{$itemStyle:e,current:n,items:i,...o}=t;return null!=i&&i.length?(0,l.jsx)(r,{withFade:!0,scrolldirection:"horizontal",...o,children:i.map((t=>(0,l.jsx)(s.Z,{isActive:n===t.id,$style:{flexShrink:0,marginRight:"1px",whiteSpace:"nowrap",...e},theme:"pill",disabled:t.disabled,onClick:()=>t.onClick(t.id),children:t.label},t.id)))}):null}},94607:function(t,e,n){n.d(e,{Z:function(){return j}});var i=n(20117),o=n(40435),s=n(56764),l=n(60781),r=n(6916),a=n(58307),c=n(29990),d=n(11041),p=n(87867),u=n(17507),h=n(9234),g=n(1620);const x=(0,r.zo)("div",{display:"flex",justifyContent:"center",overflow:"hidden",gap:"16px"}),y=(0,r.zo)("div",{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",gap:"14px",width:"100%",height:"100%",minWidth:0}),f=(t,e)=>{let{label:n,to:i,headingType:o="h3",hasResponsiveDesignFrom:s="tablet",$style:f,...m}=t;const[v]=(0,r.hQ)(),b=!!s,w=b?a.p8.findIndex((t=>t===s))-1:0,j=Array(w).fill(null);return(0,g.jsxs)(x,{ref:e,$style:{flexDirection:b?["row"].concat((0,l.Z)(j),["column"]):"column",...f},...m,children:[(0,g.jsx)(c.Z,{isVolatile:!0,to:i,className:v({display:"block",flexShrink:0,width:b?["104px"].concat((0,l.Z)(j),["100%"]):"100%"}),children:(0,g.jsx)(h.Z,{type:"rectangle",ratio:1,$style:{borderRadius:"4px"}})}),(0,g.jsxs)(y,{$style:{padding:b?["12px 0px"].concat((0,l.Z)(j),["0px"]):"0px"},children:[(0,g.jsx)(h.Z,{type:"rectangle",width:"75px",height:"10px",$style:{borderRadius:"4px"}}),(0,g.jsx)(c.Z,{isVolatile:!0,to:i,className:v({width:"100%",display:"block",minWidth:0}),children:(0,g.jsx)(u.Z,{as:o,styleAs:void 0,$style:{fontSize:18,lineHeight:"1.1",fontWeight:500,fontFamily:d.Vl.regular,textOverflow:"ellipsis",overflow:"hidden",
1whiteSpace:"nowrap",maxWidth:"100%"},children:n})}),i&&(0,g.jsx)(p.Z,{label:"Go to article",to:i,theme:"solidWhiteOutlined",$style:{marginTop:"auto"}})]})]})},m=(0,s.forwardRef)(f);var v=n(15359),b=n(51537),w=n(26659);var j=t=>{let{hasResponsiveDesignFrom:e="tablet",imgSizes:n=[.5,null,.16],label:l,to:r,trackingMeta:a={},...c}=t;const d=r.replace("https://www.bjornborg.com","").replace("/us",""),{0:p,1:u}=(0,s.useState)({loading:!0,data:null}),[h,x]=(0,b.Z)((t=>{(t.intersectionRatio>0||t.isIntersecting)&&((async()=>{try{if(!p.data){u((t=>({...t,loading:!0})));const t=await(0,w.kH)(d);if(200===t.status&&t.data){const e=t.data.data.data,i={...e.content,path:d,id:e.id},s=(0,o.S)(i,n);return void u({loading:!1,data:{type:i.component,background:s.background,id:s.id,tags:s.tags,label:s.label,to:s.to}})}throw t}}catch(t){console.error("DepictArticleSearchItem",t),u((t=>({...t,loading:!1})))}})(),x())}),{rootMargin:"200px"}),y=(0,v.ws)(a);if(p.data){const t="workoutPage"===p.data.type;return(0,g.jsx)(i.T,{hasResponsiveDesignFrom:e,loading:"eager",linkLabel:t?"Go to workout":"Go to article",...y,...c,...p.data},p.data.id)}return(0,g.jsx)(m,{ref:h,hasResponsiveDesignFrom:e,to:r,label:l,...y,...c})}},65221:function(t,e){e.Z=function(t){if(void 0===t&&(t=[]),!t)return[];return t.filter((t=>t)).map((t=>"string"==typeof t?{id:t,name:t}:{name:t.name,id:t.id}))}},40435:function(t,e,n){n.d(e,{S:function(){return s}});var i=n(65221),o=n(26415);const s=function(t,e){void 0===e&&(e=[.5,null,.33]);const n={...t},{backgroundMobile:s,categories:l,firstPublishedAt:r,mediaVertical:a,path:c,priority:d="0",title:p}=n,u=(0,i.Z)(l),h=(null==a?void 0:a[0])||(null==s?void 0:s[0])||null;return{background:h?(0,o.Z)([h],e):null,categories:l,firstPublishedAt:r,label:p,maxRows:2,priority:d,tags:u,to:c}}},19685:function(t,e,n){n.r(e),n.d(e,{default:function(){return F}});var i=n(98375),o=n(56764),s=n(6916),l=n(11041),r=n(57354),a=n(69864),c=n(79429),d=n(1620);const p=(0,s.zo)("input",{width:"100%",padding:"3px 120px 3px 0px",border:"none",borderBottom:"1px solid "+l.O9.grey.three,background:"none",color:l.O9.black,outline:"none",fontSize:16,fontFamily:l.Vl.extended,lineHeight:1,borderRadius:0,[l.BC.min.laptop]:{fontSize:24}}),u=(0,s.zo)("button",{position:"absolute",top:"50%",right:0,color:l.O9.grey.four,fontSize:14,lineHeight:1,transform:"translateY(-50%)",":hover":{color:l.O9.black}});var h=t=>{let{$style:e,placeholder:n,onChange:i,onSubmit:l,...h}=t;const[g]=(0,s.hQ)(),x=(0,o.createRef)(),y=(0,c.useLocation)();return(0,o.useEffect)((()=>{const t=(0,r.w_)(null==y?void 0:y.search)[a.y.SEARCH.SEARCH_QUERY];x.current&&t&&(x.current.value=t),x.current&&x.current.focus()}),[]),(0,d.jsxs)("form",{onSubmit:l,...h,className:g({width:"100%",position:"relative",...e}),children:[(0,d.jsx)(p,{ref:x,placeholder:n,maxLength:100,onChange:i}),(0,d.jsx)(u,{type:"button",onClick:()=>{var t;return null===(t=x.current)||void 0===t?void 0:t.focus()},children:"Edit search"})]})},g=n(94607),x=n(33123),y=n(48217);var f=t=>{var e;let{noHitsButtons:n=[],noHitsContent:o=[],noHitsTitle:r}=t;const{posts:a,loading:c,waitingForInitialRequest:p}=(0,i.Jp)(),[u]=(0,s.hQ)();return p?(0,d.jsx)("div",{}):c?(0,d.jsx)(x.Z,{id:"search-posts-listing-loading",$style:{minHeight:"380px"}}):(null===(e=a.hits)||void 0===e?void 0:e.length)>0?(0,d.jsx)("div",{className:u({display:"grid",gridTemplateColumns:["repeat(1, 1fr)",null,"repeat(3, 1fr)"],columnGap:"16px",rowGap:["0px",null,"32px"]}),children:a.hits.map((t=>(0,d.jsx)(g.Z,{hasResponsiveDesignFrom:"tablet",to:t.url,label:t.title,id:t.id,imgSizes:["104px",.33,.16],$style:{minWidth:0,padding:["16px 0px",null,"0px"],borderBottom:["1px solid "+l.O9.grey.one,null,"none"]}},t.id)))}):(0,d.jsx)(y.Z,{$style:{margin:"64px auto"},heading:r,links:n,content:o})},m=n(5593),v=n(3106),b=n(42970),w=n(73965),j=n(78958),C=n(74408);var S=()=>{const t=l.ew.map((t=>t?"-"+t:null));return{contentMarginsStyles:{paddingLeft:l.ew,paddingRight:l.ew},negateContentMargins:{marginLeft:t,marginRight:t}}};var k=t=>{let{$style:e,gridContent:n=[],hideFacets:o,noHitsButtons:l,noHitsContent:r=[],noHitsTitle:a}=t;const[c]=(0,s.hQ)(),{pages:p,products:u,loading:h,waitingForInitialRequest:g}=(0,i.Jp)(),{negateContentMargins:f}=S();return(0,d.jsx)("div",{id:"pagination-top",className:c({position:"relative",...f,...e}),children:(0,d.jsxs)(b.k,{children:[(0,d.jsx)(v.Z,{activateDepict:!0,hideFacets:o,type:"search"}),(0,d.jsxs)(w.Z,{children:[(0,d.jsx)(j.Z,{activateDepict:!0,hideFacets:o,type:"search"}),(0,d.jsx)("div",{className:c({minWidth:0}),children:(0,d.jsx)("div",{className:c({padding:["12px 12px 32px",null,"20p
1x 24px"],minHeight:[null,null,"380px"]}),children:g?(0,d.jsx)("div",{}):h?(0,d.jsx)(x.Z,{id:"search-products-listing-loading",$style:{minHeight:"380px"}}):u.hits.length?(0,d.jsx)(m.Z,{products:u.hits,gridContent:n,page:p.current,pageCount:p.total,trackingList:C.V.PRODUCT_GRID_SEARCH}):(0,d.jsx)(y.Z,{$style:{margin:["64px auto 200px",null,"80px auto 200px"]},heading:a,links:l,content:r})})})]})]})})},R=n(82817),Z=n(97985),H=n(24682),E=n(2514),$=n(38758);const A=(0,s.zo)("h1",{color:l.O9.grey.ten,fontFamily:l.Vl.regular,fontSize:12,fontWeight:"normal",lineHeight:1,"::after":{content:'" (" attr(data-totalhits) ")"'}});var T=t=>{var e;let{pageContext:n,previewDataOverride:c,location:p}=t;const[u]=(0,s.hQ)(),{loading:g,products:{totalHits:x},posts:{totalHits:y}}=(0,i.Jp)(),m=(0,Z.Z)(),{searchPage:v}=(0,$.Z)(),{0:b,1:w}=(0,o.useState)({searchstring:"",type:"products"});let j;const C=c||(null==n||null===(e=n.page)||void 0===e?void 0:e.data)||{},{girdContent:S,hideFacets:T,noResultButtons:F,noResultTitle:O,noHitsContent:z,noSearchButtons:D,noSearchTitle:_,otherHitsTitle:B,placeholder:W,switchCategoryButtonTitle:Q}=C.content||{};(0,o.useEffect)((()=>{const t=(0,r.w_)((null==p?void 0:p.search)||""),e=t[a.y.SEARCH.SEARCH_QUERY],n="posts"===t[a.y.SEARCH.TYPE_QUERY]?"posts":"products",i=e?decodeURI(e):"";i===b.searchstring&&n===b.type||w({searchstring:i,type:n})}),[null==p?void 0:p.search,b]);const L=t=>{let{searchstring:e,type:n}=t;const i=(0,r.w_)((null==p?void 0:p.search)||"");e?i[a.y.SEARCH.SEARCH_QUERY]=e:""===e&&delete i[a.y.SEARCH.SEARCH_QUERY],"posts"===n?i[a.y.SEARCH.TYPE_QUERY]="posts":"products"===n&&delete i[a.y.SEARCH.TYPE_QUERY],b.searchstring===e&&n===b.type||delete i[a.y.SEARCH.PAGE_QUERY],(0,r.Vb)(i,{basePath:v})},P=t=>{L({searchstring:b.searchstring,type:t})};(0,o.useEffect)((()=>{!g&&b.searchstring&&("products"===b.type&&0===x&&y>0?P("posts"):"posts"===b.type&&0===y&&x>0&&P("products"))}),[g,x,y,b.searchstring]),(0,o.useEffect)((()=>()=>{clearTimeout(j)}));const I=[{label:"Products ("+x+")",id:"products",onClick:()=>P("products")},{label:"Stories ("+y+")",id:"posts",onClick:()=>P("posts")}],V=1===y?"Story":"Stories",N=1===x?"Product":"Products",U={"{activeType}":"posts"===b.type?V:N,"{otherType}":"posts"===b.type?N:V,"{searchstring}":b.searchstring,"{otherHits}":String("posts"===b.type?x:y)},Y=y+x,G=!b.searchstring;let M=G?(0,H.S9)(_,U):(0,H.S9)(O,U);const J=G?(0,E.Z)(D,"clay"):(0,E.Z)(F,"clay"),q="posts"===b.type?x:y,K="posts"===b.type?"products":"posts",X={label:(0,H.S9)(Q,U),onClick:()=>P(K)},tt=(0,s.zo)("button",{backgroundColor:"transparent",border:"1px solid "+l.O9.black,color:l.O9.black,display:"block",fontFamily:l.Vl.extended,fontSize:"14px",lineHeight:"1",margin:"30px auto",padding:"12px 24px",textAlign:"center",transitionDuration:l.lI.secondary,transitionTimingFunction:l.Z5.ease,":hover":{color:l.O9.white,backgroundColor:l.O9.grey.six,borderColor:l.O9.grey.six},":disabled":{borderColor:l.O9.grey.two,color:l.O9.grey.two,cursor:"not-allowed"}}),et=!g&&!G&&("posts"===b.type&&0===y&&q>0||"products"===b.type&&0===x&&q>0);return et&&(M=(0,H.S9)(B,U)),(0,d.jsxs)("div",{className:u({...m,paddingBottom:"112px"}),children:[(0,d.jsx)(A,{"data-totalhits":Y,$style:{marginTop:["12px",null,"80px"],marginBottom:["32px",null,"36px"]},children:"Search results"}),(0,d.jsx)(h,{$style:{marginBottom:["28px",null,"48px"]},placeholder:W,onChange:t=>{clearTimeout(j),j=setTimeout((()=>{L({searchstring:t.target.value,type:b.type})}),500)},onSubmit:t=>{t.preventDefault(),clearTimeout(j);const e=t.target.children[0];L({searchstring:e.value,type:b.type})}}),(0,d.jsx)(R.Z,{current:b.type,items:I,$style:{marginBottom:["36px",null,"48px"]}}),"posts"===b.type?(0,d.jsx)(f,{noHitsButtons:et?[]:J,noHitsContent:z,noHitsTitle:(0,d.jsxs)(d.Fragment,{children:[M,et&&(0,d.jsx)(tt,{type:"button",onClick:X.onClick,children:X.label})]})}):(0,d.jsx)(k,{gridContent:S,hideFacets:T,noHitsButtons:et?[]:J,noHitsContent:z,noHitsTitle:(0,d.jsxs)(d.Fragment,{children:[M,et&&(0,d.jsx)(tt,{type:"button",onClick:X.onClick,children:X.label})]})})]})};var F=t=>(0,d.jsx)(i.QX,{children:(0,d.jsx)(T,{...t})})}}]);
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.