PageSourceSearch

https://www.bjornborg.com/us/abdec4d3c5a551ca719b1231d296c089a6acd823-86a1fa0465da152d70dc.js

js bjornborg.com collected 2026-09-24 21:21:40 UTC 24,819 bytes, 1 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[3989],{57358:function(e,t,i){var n=i(6916),o=i(77522),a=i(1620);const r=(0,n.zo)("ul",{display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"center",gap:"4px",margin:"0px",padding:"0px",listStyleType:"none",overflow:"hidden"});t.Z=e=>{let{elevated:t=!0,maxNumberOfBadges:i=1,list:n=[],variant:l="chip",...s}=e;const c=n.slice(0,i);return c.length?(0,a.jsx)(r,{...s,children:c.map((e=>(0,a.jsxs)(o.C,{$as:"li",elevated:t,size:"md",theme:e.colorTheme||"grey",variant:l,children:[e.prefix,e.displayText]},e.internalName)))}):null}},85990:function(e,t,i){i.d(t,{V:function(){return u}});var n=i(13422),o=i(74730),a=i(97439),r=i(94234),l=i(6916),s=i(56764),c=i(1620);const d=(0,l.zo)("div",{display:"flex",flexDirection:"column",gap:"16px",padding:"12px",width:"100%"}),u=e=>{let{open:t,onOpenChange:i,name:l,imageSrc:u,priceProps:p,ratingValue:g,onRatingClick:h,variations:x,selectedVariant:f,onSizeSelect:m,isLoading:v=!1,loadingVariantId:y,purchaseStatus:b,url:C}=e;const{0:S,1:k}
1=(0,s.useState)(null),j=!(!l&&!p);return(0,c.jsxs)(n.Z,{label:"Choose size",open:t,onOpenChange:i,$contentStyle:{overflowY:"auto"},children:[(0,c.jsxs)(d,{children:[j&&(0,c.jsx)(a.Z,{activePrice:null==p?void 0:p.activePrice,image:u?{alt:l||"",src:u}:void 0,imageLayoutSize:"s",label:l||"",originalPrice:null==p?void 0:p.originalPrice,rating:g,size:null==f?void 0:f.name,showDataLabels:!(null==f||!f.name),onRatingClick:h}),(0,c.jsx)(r.Z,{disabled:v,loadingVariantId:null!=y?y:S,selected:f,variations:x,onSelect:e=>null==m?void 0:m(e)})]}),b&&C&&(0,c.jsx)(o.y,{active:t,purchaseStatus:b,url:C,onAddStart:k,onAdded:()=>{k(null),i(!1)},onError:()=>k(null)})]})}},74730:function(e,t,i){i.d(t,{y:function(){return s}});var n=i(47276),o=i(6916),a=i(56764),r=i(92154),l=i(1620);const s=e=>{let{active:t,purchaseStatus:i,url:s,onAddStart:c,onAdded:d,onError:u}=e;const[p]=(0,o.hQ)(),g=(0,a.useRef)(null),h=(0,a.useRef)(void 0),x=(0,r.ix)((e=>{var t;return null===(t=e.product.selectedVariant)||void 0===t?void 0:t.id}));return(0,a.useEffect)((()=>{var e;t?x&&x!==h.current&&(h.current=x,null==c||c(x),null===(e=g.current)||void 0===e||e.click()):h.current=x}),[t,x]),(0,l.jsx)("div",{className:p({display:"none"}),"aria-hidden":"true",children:(0,l.jsx)(n.Z,{ref:g,callback:e=>{200!==(null==e?void 0:e.status)&&201!==(null==e?void 0:e.status)?null==u||u():null==d||d()},onError:u,iconPosition:"none",purchaseStatus:i,showWishlistButton:!1,theme:"solidBlack",url:s})})}},31345:function(e,t,i){i.d(t,{V:function(){return s}});var n=i(72612),o=i(11041),a=i(6916),r=i(49902),l=i(1620);const s=e=>{let{ratingValue:t,$style:i,onClick:s}=e;const[c]=(0,a.hQ)();if(t<=0)return null;const d=s?"button":"div";return(0,l.jsxs)(d,{...s?{type:"button",onClick:s}:{},className:c({display:"flex",flexDirection:"row",alignItems:"center",gap:"2px",margin:0,padding:0,border:"none",background:"none",font:"inherit",color:"inherit",borderBottom:s?"1px solid "+o.O9.black:"none",cursor:s?"pointer":void 0,...i}),title:(0,r.Z)(t,1,"ceil"),children:[(0,l.jsx)(n.Z,{width:"14px",isFilled:!0,id:void 0,$style:{transform:"translateY(-0.5px)"},percentageFill:void 0}),(0,l.jsx)("span",{className:c({display:"inline",fontSize:"14px",lineHeight:1,fontWeight:500,fontFamily:o.Vl.regular}),children:(0,r.Z)(t,1,"ceil")})]})}},74124:function(e,t,i){i.d(t,{Z:function(){return Se}});var n=i(60781),o=i(11041),a=i(6916),r=i(56764),l=i(41370),s=i(65655),c=i(29990),d=i(17800),u=i(5929),p=i(57358),g=i(31345),h=i(72731),x=i(32769),f=i(53142),m=i(78373),v=i(57412),y=i(51537),b=i(24978),C=i(78469);let S=C.rP;const k=new Set,j=e=>{S!==e&&(S=e,k.forEach((e=>e(S))))};var z=()=>{const{0:e,1:t}=(0,r.useState)(S);return(0,r.useEffect)((()=>(t(S),k.add(t),()=>{k.delete(t)})),[]),[e,j]},w=i(15359),I=i(32043),Z=i(22194),O=i(59412),P=i(92154),E=i(55524),B=i(70999),V=i(3975),$=i(44314),L=i(13434),R=i(14516),D=i(71410),A=i(1620);const N=(0,a.zo)("div",{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"8px",justifyContent:"flex-end"}),T=(0,a.zo)("button",{display:"block",padding:0,border:"none",background:"none",color:"inherit",cursor:"pointer",fontSize:12,lineHeight:1});var W=e=>{var t;let{relatedColorVariations:i,maxColors:n,uri:l,onColorHover:s}=e;const[d]=(0,a.hQ)(),u=(0,R.Z)(n),p=(0,L.Z)(o.BC.max.laptop),{0:g,1:h}=(0,r.useState)(!1),x=i.length>u,f=x?u-1:i.length,m=i.length-f,v=null===(t=i.find((e=>e.uri===l)))||void 0===t?void 0:t.id;return(0,A.jsxs)(N,{onMouseLeave:()=>null==s?void 0:s(),children:[i.slice(0,f).map((e=>(0,A.jsx)(c.Z,{"aria-label":"Navigate to color "+e.variationName,to:e.uri,title:e.variationName,onMouseEnter:()=>null==s?void 0:s(e),className:d({width:"16px",height:"16px",display:"flex",justifyContent:"center",alignItems:"center"}),children:(0,A.jsx)(V.Z,{$style:{outlineOffset:"1px"},addExtraBorder:e.addExtraBorder,"aria-label":"Select "+e.variationName,isSelected:e.uri===l,size:e.uri===l?"12px":"14px",title:e.variationName,src:e.imageSrc})},e.id))),x&&(0,A.jsxs)(T,{type:"button","aria-label":"All colors",onClick:e=>{e.preventDefault(),e.stopPropagation(),p?h(!0):D.Z.open($._.COLOR_OVERVIEW,{currentId:v,heading:"All colors",variations:i})},children:["+",m]}),x&&p&&(0,A.jsx)(B.ColorOverviewDrawerOverlay,{currentId:v,keepMounted:!1,open:g,variations:i,onOpenChange:h})]})},_=i(5327),F=i(83106),q=i(20006);const M={display:"none",position:"absolute",top:"50%",cursor:"pointer",zIndex:2,transitionProperty:"opacity, transform",transitionDuration:o.lI.fast,transitionTimingFunction:o.Z5.easeInOutCubic,[o.BC.min.laptop]:{display:"inline-flex"}},H=(e,t)=>({opacity:e?1:0,transform:e?"translate(0, -50%)":"translate("+t+", -50%)",pointerEvents:e?"auto":"none"});var U=e=>{let{isVisible:t}=e;const{scrollPrev:i,scrollNext:n}=(0,F.vr)(),{0:o,1:a}=(0,r.useState)(!1),l=(0,r.useRef)(0),s=()=>{l.current+=1,a(!0)},c=()=>{l.current-=1,window.requestAnimationFrame((()=>{l.current<=0&&(l.current=0,a(!1))}))},d=t||o;return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(u.Z,{icon:"chevron-left",theme:"transparentStrong","aria-label":"Go to the previous slide",onFocus:s,onBlur:c,onClick:e=>{e.stopPropagation(),e.preventDefault(),i()},$style:{...M,left:"8px",...H(d,"4px")}
1}),(0,A.jsx)(u.Z,{icon:"chevron-right",theme:"transparentStrong","aria-label":"Go to the next slide",onFocus:s,onBlur:c,onClick:e=>{e.stopPropagation(),e.preventDefault(),n()},$style:{...M,right:"8px",...H(d,"-4px")}})]})};const Q=e=>"string"==typeof e?e:e.src,G={display:"block",width:"100%",height:"100%"},K=e=>{let{children:t,to:i}=e;return i?(0,A.jsx)(c.Z,{to:i,tabIndex:-1,"aria-hidden":"true",style:G,children:t}):t};var Y=e=>{let{containImage:t=!1,items:i,loading:n="lazy",onVideoActiveChange:o,paused:a=!1,sizes:l,width:s,$style:c,sliderEnabled:d=!1,isHovered:u=!1,to:p}=e;const g=(0,r.useRef)(null),{0:h,1:f}=(0,r.useState)(),m=(0,r.useMemo)((()=>i.filter((e=>"string"!=typeof e&&"video"!==e.type||!C.rP)).slice(0,5)),[i]);(0,r.useEffect)((()=>{if(!h||!o)return;const e=()=>{const e=m[h.selectedScrollSnap()];o(!!e&&(e=>"string"==typeof e||"video"===e.type)(e))};return e(),h.on("select",e),()=>{h.off("select",e)}}),[h,m,o]);if(!(d&&m.length>1)){const e=m[0];if(!e)return null;const i="object"==typeof e&&"image"===e.type;return(0,A.jsx)(K,{to:p,children:i?(0,A.jsx)(x.Z,{alt:e.alt,containImage:t,loading:n,sizes:l,src:e.src,width:s,$style:c}):(0,A.jsx)(_.Z,{src:Q(e),loading:n,paused:a,$style:{zIndex:0,borderRadius:x.a,...c}})})}return(0,A.jsxs)(F.lr,{ref:g,plugins:[(0,q.Y)()],opts:{loop:!0,watchDrag:!0},setApi:f,$style:{width:"100%",height:"100%",userSelect:"none",borderRadius:x.a,overflow:"hidden"},children:[(0,A.jsx)(K,{to:p,children:(0,A.jsx)(F.KI,{$style:{marginLeft:0,height:"100%"},$viewportStyle:{height:"100%"},children:m.map(((e,i)=>{const o="object"==typeof e&&"image"===e.type;return(0,A.jsx)(F.d$,{$style:{paddingLeft:0},children:o?(0,A.jsx)(x.Z,{alt:e.alt,containImage:t,loading:n,rounded:!1,sizes:l,src:e.src,width:s,$style:c}):(0,A.jsx)(_.Z,{src:Q(e),loading:n,paused:a,$style:{zIndex:0,...c}})},i)}))})}),(0,A.jsx)(U,{isVisible:u})]})},J=i(13513),X=i(6692),ee=i(74331),te=i(85990),ie=i(25432),ne=i(53249),oe=i(66328),ae=i(30597),re=function(e){return e.Initial="initial",e.Loading="loading",e.Success="success",e.Warning="warning",e}(re||{});const le=(0,a.zo)("div",{display:["none",null,"block"]}),se=(0,a.zo)("div",{position:"absolute",width:"100%",bottom:0,zIndex:2,padding:"12px 24px",boxSizing:"border-box",transform:"translateY(100%)",transition:"transform "+o.lI.primary}),ce=(0,a.zo)("div",(e=>{let{$numberOfSizes:t}=e;return{backgroundColor:"rgba(255, 255, 255, 0.8)",borderRadius:"6px",padding:"4px",display:"grid",gridTemplateColumns:"repeat(min(6, "+t+"), 1fr)",gridAutoRows:"auto",gap:"4px"}})),de=(0,a.zo)("button",{position:"relative",height:"24px",borderRadius:"3px",backgroundColor:o.O9.white,fontSize:"12px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transitionProperty:"background-color",transitionDuration:o.lI.primary,":disabled":{opacity:"0.5",cursor:"default"},[o.BC.hover]:{":hover:not(:disabled)":{backgroundColor:o.O9.grey.nine}}}),ue=(0,a.zo)("button",{gridColumn:"1 / -1",height:"24px",borderRadius:"3px",backgroundColor:o.O9.white,fontSize:"12px",cursor:"pointer",transitionProperty:"background-color",transitionDuration:o.lI.primary,[o.BC.hover]:{":hover":{backgroundColor:o.O9.grey.nine}}}),pe=(0,a.zo)("div",{position:"absolute",top:0,right:0,width:"12px",height:"12px",display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"});var ge=(0,r.forwardRef)(((e,t)=>{let{addedToBasketData:i,isOpen:n,setIsOpen:a,productName:l,variations:s=[],productCategories:c=[]}=e;const d=(0,P.zL)(),u=(0,ae.Z)(),p=(0,r.useRef)(null),{0:g,1:h}=(0,r.useState)(re.Initial),{0:x,1:f}=(0,r.useState)(null),{0:m,1:v}=(0,r.useState)(!1);(0,r.useImperativeHandle)(t,(()=>({openSizeSelectionOverlay:()=>v(!0)})));const y=(0,oe.Z)("window");(0,r.useEffect)((()=>{let e=null;return n&&(e=y.subscribe("click",(e=>{p.current&&!p.current.contains(e.target)&&a(!1)}))),()=>{e&&y.unsubscribe("click",e)}}),[n]);const b=async(e,t)=>{h(re.Loading),f(e);try{const r=await d((0,ne.zW)(e,1,t));var n,o;if(200===r.status||201===r.status)h(re.Success),a(!1),v(!1),u.push(J.Z,{...i,size:(null===(n=s.filter((t=>t.id===e)))||void 0===n||null===(o=n[0])||void 0===o?void 0:o.name)||""});else 202===r.status&&(h(re.Warning),u.push(X.Z,{label:"There is not enough of this product in stock",message:"Unfortunately at this time there is not enough of this product in stock."},1e4))}catch(r){console.error(r),h(re.Warning)}finally{f(null),setTimeout((()=>h(re.Initial)),2800)}},C=s.length>6;return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(le,{$style:{pointerEvents:n?"auto":"none",visibility:n?"visible":"hidden"},tabIndex:n?0:-1,children:(0,A.jsx)(se,{ref:p,style:{transform:n?"translateY(0)":void 0},children:(0,A.jsx)(ce,{$numberOfSizes:C?6:s.length,children:C?(0,A.jsx)(ue,{type:"button",disabled:g===re.Loading,onClick:e=>{e.preventDefault(),v(!0)},children:"Choose size"}):s.map((e=>(0,A.jsxs)(de,{type:"button","aria-label":"Add size "+e.name+" of product "+l+" to basket",disabled:!e.inStock||g===re.Loading,$style:x===e.id?{opacity:"1"}:void 0,onClick:t=>{t.preventDefault(),b(e.id,{id:e.id,name:l,categories:c,sku:e.sku,size:e.name})},children:[x===e.id?(0,A.jsx)(ie.Z,{id:"quickshop-spinner-"+e.id,width:"14px",height:"14px",color:o.O9.black}):e.name,e.lowStock&&x!==e.id&&(0,A.jsx)(pe,{children:(0,A.jsx)(ee.u,{})})]},e.id)))})})}),(0,A.jsx)(te.V,{isLoading:g===re.Loading,loadingVariantId:x,open:m,onOpenChange:v,variations:s,onSizeSelect:e=>b(e.id,{id:e.id,name:l,categories:c,sku:e.sku,size:e.name})})]})}));const he=(0,a.zo)("article",{width:"100%",margin:"1px 0 4px 0",paddingTop:"10px",position:"relative",contain:"layout style"}),xe=(0,a.zo)(p.Z,{position:"absolute",top:"0px",left:"8px",zIndex:1,maxWidth:"calc(100% - 16px)"}),fe=(0,a.zo)("div",{display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start",ga
1p:"8px"}),me=(0,a.zo)("div",{display:"flex",alignItems:"flex-end",justifyContent:"space-between",width:"100%",height:["28px",null,"24px"],marginBlock:["0 4px",null,"4px"]}),ve=(0,a.zo)("span",{fontSize:14,fontFamily:o.Vl.regular,fontWeight:500,lineHeight:1.1,display:"-webkit-box","-webkit-line-clamp":1,"-webkit-box-orient":"vertical",overflow:"hidden"}),ye={position:"absolute",top:0,right:0,bottom:0,left:0,zIndex:0,pointerEvents:"none",transitionProperty:"opacity",transitionDuration:o.lI.fast,transitionTimingFunction:o.Z5.easeInOutCubic},be=(0,a.zo)("div",{position:"absolute",right:"8px",bottom:"8px",zIndex:1,display:"flex",flexDirection:"column",gap:"8px",[o.BC.min.laptop]:{top:"8px",bottom:"auto"}}),Ce=(0,a.zo)(d.ZP,{display:"none",[o.BC.min.laptop]:{display:"block",position:"absolute",left:"8px",bottom:"100px",zIndex:1,opacity:0,":focus":{opacity:1}}});var Se=e=>{var t,i,a;let{product:d,$style:p,imageSettings:S={},loading:k="lazy",mediaSliderEnabled:j=!1,position:B,showQuickShop:V=!1,showWishlist:$=!1,style:L,trackingList:R}=e;const{aggregateRating:D,categories:N=[],comingSoonTimeStampUTC:T,containImage:_=!1,customAttributes:F={},id:q,image:M="",inStock:H,media:U=[],name:Q,price:G,productType:K,purchaseStatus:J,relatedColorVariations:X=[],relatedProductVariations:ee={},sku:te,trackingMeta:ie={},uri:ne,variations:oe=[],video:ae}=d,re="product"===K,le=(0,r.useRef)(null),se=(0,r.useRef)(null),{0:ce,1:de}=(0,r.useState)(!1),[ue,pe]=z(),{0:Se,1:ke}=(0,r.useState)(),{0:je,1:ze}=(0,r.useState)(),we=(0,r.useMemo)((()=>ae?[ae].concat((0,n.Z)(U)):U),[ae,U]),Ie=!C.rP&&we.some((e=>"string"==typeof e||"video"===e.type)),Ze=(0,E.T)()>1,{livePrice:Oe,isReady:Pe,observe:Ee}=(0,b.Z)(q),Be=(0,P.ix)((e=>e.campaignSite.campaignPricelist)),Ve=Oe||(0,s.NK)(q,Be),$e=!(Be&&!Ve),Le=Ve||G,Re=X.length>0,De=(0,w.ws)(ie);(0,r.useEffect)((()=>{null!=Se&&Se.modelImageSrc&&ze(Se.modelImageSrc)}),[Se]);const Ae=(0,P.ix)((e=>e.application.shopConfig.currency)),{shopConfig:Ne}=(0,P.ix)((e=>e.application)),[Te,We]=(0,y.Z)((e=>{(e.intersectionRatio>0||e.isIntersecting)&&(I.Z.trigger(Z.rE.IMPRESSION,{currencyCode:Ne.currency,products:[{categories:N,sku:oe.length?oe[0].sku:te,name:Q,position:B,price:Le,trackingList:R}]}),I.Z.trigger(Z.rE.DEPICT_IMPRESSION,{trackingMeta:ie}),We())}));(0,r.useEffect)((()=>{Pe&&le.current&&Te(le.current)}),[Pe]);const _e=(0,r.useCallback)((e=>{le.current=e,Ee(e)}),[Ee]),{width:Fe=[200,400,600,800],sizes:qe=["100vw","50vw","33vw"]}=S,{placeholderImage:Me}=(0,O.Z)(),He={imageSrc:M||Me,to:ne,name:Q,priceWithCurrency:null==Le?void 0:Le.priceWithCurrency,salePriceWithCurrency:null==Le?void 0:Le.salePriceWithCurrency},Ue=(0,v.Z)({categories:N,comingSoonTimeStampUTC:T,inStock:!!H,purchaseStatus:J}),Qe=(0,l.hh)({badges:null==F?void 0:F.saBadges,campaignBadges:null==F||null===(t=F.saCampaigns)||void 0===t?void 0:t.saBadgesCampaign,campaignPrice:Ve,defaultPrice:G,productType:K,purchaseStatus:Ue,relatedProductVariations:ee,saleBadgeTheme:null==F||null===(i=F.saCampaigns)||void 0===i?void 0:i.saCampaignSaleBadgeTheme,variantBadges:null==F?void 0:F.saBadgesVariant,variations:oe}),Ge=ce?"Close quick view for product "+Q:"Open quick view for product "+Q,Ke=Ue===s.NJ.AVAILABLE,Ye=Ue===s.NJ.COMING_SOON,Je=Ue===s.NJ.UNAVAILABLE,Xe=V&&re&&!Ye&&!Je;return(0,A.jsxs)(he,{$style:p,ref:_e,"data-testid":"product-card","data-type":K,"data-instock":oe.some((e=>e.inStock)),style:L,"aria-label":Q,onClick:()=>{I.Z.trigger(Z.rE.CLICK,{currencyCode:Ae,product:{categories:N,sku:oe.length?oe[0].sku:te,name:Q,position:B,price:Le,trackingList:R}})},onMouseEnter:()=>Ze?de(!0):null,onMouseLeave:()=>Ze?de(!1):null,...De,children:[(0,A.jsx)(xe,{list:Qe,maxNumberOfBadges:2,variant:"label"}),(0,A.jsxs)(f.Z,{ratio:[m.b.vertical.secondary,m.b.vertical.primary],children:[(0,A.jsx)(Y,{containImage:_,items:we,loading:k,paused:ue,sizes:qe,width:Fe,sliderEnabled:j,isHovered:ce,to:ne,$style:{backgroundColor:o.O9.greyProductBackground,opacity:Ke?1:.4}}),je&&(0,A.jsx)(x.Z,{"aria-hidden":"true",containImage:_,sizes:qe,src:je,width:Fe,$style:{...ye,opacity:Se?1:0}}),Xe&&$e&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(Ce,{"aria-label":Ge,theme:"accessibility",onClick:e=>{e.preventDefault(),de(!ce)},children:ce?"Close quickshop":"Open quickshop"}),(0,A.jsx)(ge,{ref:se,addedToBasketData:He,isOpen:ce,productCategories:N,productName:Q,setIsOpen:de,variations:oe})]}),(Xe&&$e||Ie||$)&&(0,A.jsxs)(be,{children:[Ie&&(0,A.jsx)(u.Z,{theme:"frostedWhite",size:"s",shape:"square","aria-label":ue?"Play video":"Pause video",icon:ue?"play":"pause",$style:{order:[0,null,1]},onClick:e=>{e.preventDefault(),pe(!ue)}}),$&&(0,A.jsx)(u.Z,{theme:"frostedWhite",size:"s",shape:"square","aria-label":"Add product "+Q+" to wishlist",icon:"heart",$style:{order:[1,null,0]},onClick:e=>{e.preventDefault(),e.stopPropagation()}}),Xe&&$e&&(0,A.jsx)(u.Z,{theme:"frostedWhite",size:"s",shape:"square","aria-label":"Open quick view for product "+Q,icon:"basket",$style:{display:["flex",null,"none"],order:2},onClick:e=>{var t;e.preventDefault(),e.stopPropagation(),null===(t=se.current)||void 0===t||t.openSizeSelectionOverlay()}})]})]}),(0,A.jsxs)(fe,{children:[(0,A.jsxs)(me,{children:[Re&&(0,A.jsx)(W,{maxColors:[4,null,6],relatedColorVariations:X,uri:ne,onColorHover:Ze?ke:void 0}
1),D&&D.ratingValue>0&&(0,A.jsx)(g.V,{ratingValue:D.ratingValue})]}),(0,A.jsx)(c.Z,{to:ne,title:Q,children:(0,A.jsx)(ve,{children:Q})}),!Ye&&(0,A.jsx)(h.tA,{$style:{lineHeight:1},activePrice:null==Le?void 0:Le.salePriceWithCurrency,campaignSalePriceColor:null==F||null===(a=F.saCampaigns)||void 0===a?void 0:a.saCampaignSalePriceColor,originalPrice:null==Le?void 0:Le.priceWithCurrency})]})]})}},97439:function(e,t,i){var n=i(57358),o=i(32769),a=i(29990),r=i(87867),l=i(42774),s=i(72731),c=i(31345),d=i(11041),u=i(6916),p=i(1620);const g=(0,u.zo)("article",{display:"flex",alignItems:"flex-start",gap:"12px",position:"relative",width:"100%",":not(:last-of-type)":{marginBottom:"8px",paddingBottom:"8px",borderBottom:"1px solid "+d.O9.grey.nine}}),h={default:{wrapperWidth:"88px",sizes:"88px",width:[96,192]},s:{wrapperWidth:"48px",sizes:"48px",width:[96,144]}},x=(0,u.zo)(a.Z,(e=>{let{$imageLayoutSize:t}=e;return{display:"flex",position:"relative",flexShrink:0,width:h[t].wrapperWidth}})),f=(0,u.zo)("div",{display:"flex",flexDirection:"column",flexGrow:1,alignSelf:"stretch",justifyContent:"space-between",minWidth:0}),m=(0,u.zo)("div",{display:"flex",flexDirection:"column",gap:"8px",width:"100%",marginBottom:"8px",overflow:"hidden"}),v=(0,u.zo)(a.Z,{display:"-webkit-box",maxHeight:"2.2em",overflow:"hidden",fontFamily:d.Vl.regular,fontSize:"14px",fontWeight:500,lineHeight:1.1,"-webkit-box-orient":"vertical","-webkit-line-clamp":2}),y=(0,u.zo)("p",{overflow:"hidden",color:d.O9.grey.ten,fontFamily:d.Vl.regular,fontSize:"12px",fontWeight:500,lineHeight:1,textOverflow:"ellipsis",whiteSpace:"nowrap"}),b=(0,u.zo)("div",{display:"flex",flexShrink:0,alignItems:"center",alignSelf:"flex-start"}),C=(0,u.zo)("div",{display:"flex",justifyContent:"flex-end",width:"100%",gap:"12px"}),S={fontFamily:d.Vl.regular,fontSize:"12px",fontWeight:500};t.Z=e=>{let{$style:t,activePrice:i,badges:a,containImage:d=!1,image:u,imageLayoutSize:k="default",label:j,loading:z,observe:w,onClick:I,onQuantityChange:Z,onQuickshopClick:O,onRatingClick:P,onRemoveClick:E,originalPrice:B,quantity:V,quantityAsText:$,rating:L,color:R,size:D,showDataLabels:A=!1,to:N,...T}=e;const W=Boolean(z),_={cursor:W?"default":void 0,opacity:W?"0.5":"1",pointerEvents:W?"none":void 0},F=void 0!==V&&Boolean(Z),q=[R,D].filter(Boolean).join(", "),M=Boolean(i||B),H=Boolean(O),U=N?{to:N,onClick:I}:{$as:"span"},Q=M?(0,p.jsx)(s.tA,{$style:{...S,...H?{marginRight:"auto"}:{}},activePrice:i||B||"",originalPrice:B,size:"small"}):null;return(0,p.jsxs)(g,{ref:w,$style:t,...T,children:[u&&(0,p.jsx)(x,{$as:"div",$imageLayoutSize:k,$style:_,onClick:I,children:(0,p.jsx)(o.Z,{draggable:!1,alt:u.alt||j,containImage:d,sizes:h[k].sizes,src:u.src,width:h[k].width})}),(0,p.jsxs)(f,{$style:_,children:[(0,p.jsxs)(m,{children:[(0,p.jsx)(v,{...U,children:j}),A?(0,p.jsxs)(p.Fragment,{children:[R&&(0,p.jsx)(y,{children:"Color: "+R}),D&&(0,p.jsx)(y,{children:"Size: "+D})]}):q&&(0,p.jsx)(y,{title:q,children:q}),void 0!==$&&(0,p.jsx)(y,{children:"Qty: "+$}),!H&&Q,a&&a.length>0&&(0,p.jsx)(n.Z,{elevated:!1,list:a,maxNumberOfBadges:a.length,variant:"label"})]}),(F||O||E)&&(0,p.jsxs)(C,{children:[F&&(0,p.jsx)(l.Z,{count:V,disabled:W,loading:"increase"===z||"decrease"===z?z:void 0,onChange:Z,step:1,$style:{marginRight:"auto"}}),H&&Q,O&&(0,p.jsx)(r.Z,{"aria-label":"Open quickshop",disabled:W,icon:"basket",iconShape:"square",label:"Quickshop",onClick:O,theme:"outlinedBlack"}),E&&(0,p.jsx)(r.Z,{"aria-label":"Remove "+j,disabled:W,icon:"remove"===z?"loading":"close",iconShape:"square",label:"Remove",onClick:E,theme:"outlinedBlack"})]})]}),!!L&&(0,p.jsx)(b,{$style:_,children:(0,p.jsx)(c.V,{ratingValue:L,onClick:P})})]})}},57412:function(e,t,i){i.d(t,{Z:function(){return c}});var n=i(65655),o=i(56764),a=i(77164),r=i(32483);var l=()=>{var e;const{application:t}=(0,r.useStaticQuery)("2617153152"),{comingSoonCategories:i}=(null===(e=t.app.config.globalProductConfig)||void 0===e?void 0:e.content)||{};return{comingSoonCategories:i}},s=i(61718);var c=e=>{let{purchaseStatus:t,inStock:i,categories:r,comingSoonTimeStampUTC:c}=e;const{0:d,1:u}=(0,o.useState)(t),{comingSoonCategories:p}=l(),g=(0,a.Z)(),h=c?[{content:[{value:!1}],rules:[{component:"displayRuleTime",min:c}]}]:void 0,x=(0,s.Z)(h);return(0,o.useEffect)((()=>
1{if(c){const e=(0,n.sn)({categories:r,comingSoonCategories:p,comingSoonTimeStampUTC:new Date(c),disableShop:g,inStock:i});u(e)}}),[JSON.stringify(x),c]),d}},24978:function(e,t,i){var n=i(56764),o=i(63441),a=i(44421),r=i(65655),l=i(51537),s=i(92154);t.Z=function(e,t){let{eager:i=!1}=void 0===t?{}:t;const{0:c,1:d}=(0,n.useState)(null),{0:u,1:p}=(0,n.useState)(!1),{0:g,1:h}=(0,n.useState)(i),x=(0,n.useRef)(!1),f=(0,s.ix)((e=>e.application.shopConfig.marketId)),m=(0,s.ix)((e=>e.application.shopConfig.pricelistId)),{campaignMarketId:v,resolved:y}=(0,s.ix)((e=>e.campaignSite)),b=v||f;(0,n.useEffect)((()=>{!x.current&&g&&y&&e&&b&&m&&(x.current=!0,(0,o.U2)("/products/live/"+e,{market:b,pricelist:m},"https://backend-api.bjornborg.com").then((e=>{const t=(0,a.z6)(e.data);d((0,r.Mn)(t)),p(!0)})).catch((t=>{console.error("Failed to fetch live price for product",e,t),p(!0)})))}),[g,y,e,b,m]);const[C,S]=(0,l.Z)((e=>{(e.intersectionRatio>0||e.isIntersecting)&&!g&&(S(),h(!0))}),{rootMargin:"200px 0px 200px 0px"});return{livePrice:c,isReady:u,observe:C}}},14516:function(e,t,i){var n=i(56764),o=i(58307),a=i(72014);t.Z=e=>{const{0:t,1:i}=(0,n.useState)(a.Z),r=(0,n.useCallback)((()=>{i((0,a.Z)())}),[]);if((0,n.useEffect)((()=>{r();const e=o.AV.slice(1).map((e=>window.matchMedia("(min-width: "+e+"px)")));for(const t of e)t.addEventListener("change",r);return()=>{for(const t of e)t.removeEventListener("change",r)}}),[r]),!Array.isArray(e))return e;let l=e[0];for(let n=1;n<=t&&n<e.length;n++)null!==e[n]&&void 0!==e[n]&&(l=e[n]);return l}},42774:function(e,t,i){var n=i(5929),o=i(33274),a=i(6916),r=i(56764),l=i(11041),s=i(1620);const c=(0,a.zo)("div",{display:"flex",alignItems:"center",gap:"8px"}),d=(0,a.zo)("span",{fontSize:14,lineHeight:"1",width:"16px",textAlign:"center",fontFamily:l.Vl.regular,padding:0}),u=e=>{let{count:t,disabled:i,loading:a,step:l,onChange:u,...p}=e;const g=(0,r.useMemo)((()=>(0,o.Z)(u,750)),[u]);return(0,s.jsxs)(c,{...p,children:[(0,s.jsx)(n.Z,{disabled:i,icon:"decrease"===a?"loading":"minus",shape:"square",size:"s",theme:"outlinedBlack",type:"button",onClick:()=>{g(-l)}}),(0,s.jsx)(d,{children:t}),(0,s.jsx)(n.Z,{disabled:i,icon:"increase"===a?"loading":"plus",shape:"square",size:"s",theme:"outlinedBlack",type:"button",onClick:()=>{g(l)}})]})};u.defaultProps={disabled:!1,loading:void 0,onChange:void 0,step:1},t.Z=u},47276:function(e,t,i){var n=i(91741),o=i(92154),a=i(56764),r=i(71410),l=i(44314),s=i(1620);const c=(0,a.forwardRef)(((e,t)=>{var i;let{disabled:c,forceEnabled:d=!1,...u}=e;const p=(0,o.ix)((e=>e.product),((e,t)=>{var i,n;return(null===(i=e.selectedVariant)||void 0===i?void 0:i.id)===(null===(n=t.selectedVariant)||void 0===n?void 0:n.id)})),g=(0,o.ix)((e=>e.basket.items)),h=(0,a.useRef)(!1),x=null===(i=p.selectedVariant)||void 0===i?void 0:i.id,f=p.id;return(0,s.jsx)(n.Z,{ref:t,disabled:d?c:c||!x,item:{productType:"product",...p},getAddPrecheckResult:()=>(f&&x?g.some((e=>e.id===x))?[]:g.filter((e=>e.productId===f&&e.id!==x)):[]).length?h.current?n.O.PREVENT:new Promise((e=>{const t=t=>{h.current=!1,e(t)};h.current=!0,r.Z.open(l._.PRODUCT_SIZE_NUDGE,{onCancel:()=>t(n.O.PREVENT),onConfirm:()=>t(n.O.ALLOW)})})):n.O.ALLOW,...u})}));t.Z=c}}]);

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.