1import{k as l}from"./components-tbqp4LHE.js";function p(t){return t.replace(/http(s)?:/,"")}function h(t="",n,i){const e=new RegExp("([?&])"+n+"=.*?(&|$)","i"),c=t.indexOf("?")!==-1?"&":"?";return t.match(e)?t.replace(e,"$1"+n+"="+encodeURIComponent(i)+"$2"):t+c+n+"="+encodeURIComponent(i)}function g(t,n){if(!t||!(t!=null&&t.match(/cdn\.shopify\.com/))||!n)return t;if(n==="master")return p(t);const i=t.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);if(i){const e=t.split(i[0]),c=i[3],s=n.match("x")?n:`${n}x`;return p(`${e[0]}_${s}${c}`)}return null}function d(t){if(!t)return t;const n=[100,200,400,800,1200,1600,2e3];if(t.match(/builder\.io/)){let i=t;const e=Number(t.split("?width=")[1]);return isNaN(e)||(i=`${i} ${e}w`),n.filter(c=>c!==e).map(c=>`${h(t,"width",c)} ${c}w`).concat([i]).join(", ")}return t.match(/cdn\.shopify\.com/)?n.map(i=>[g(t,`${i}x${i}`),i]).filter(([i])=>!!i).map(([i,e])=>`${i} ${e}w`).concat([t]).join(", "):t}function b(t){var n,i,e,c,s,u;function a(){var r;const o=t.image||t.src;if(!o||!(o.match(/builder\.io/)||o.match(/cdn\.shopify\.com/)))return t.srcset;if(t.srcset&&(r=t.image)!=null&&r.includes("builder.io/api/v1/image")){if(!t.srcset.includes(t.image.split("?")[0]))return console.debug("Removed given srcset"),d(o)}else if(t.image&&!t.srcset)return d(o);return d(o)}function m(){var r;return(r=a?.())!=null&&r.match(/builder\.io/)&&!t.noWebp?a().replace(/\?/g,"?format=webp&"):""}function f(){const r={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return t.aspectRatio?r:void 0}return l.jsxs(l.Fragment,{children:[l.jsxs(l.Fragment,{children:[l.jsxs("picture",{children:[m()?l.jsx("source",{type:"image/webp",srcSet:m()}):null,l.jsx("img",{loading:"lazy",alt:t.altText,role:t.altText?void 0:"presentation",style:{objectPosition:t.backgroundPosition||"center",objectFit:t.backgroundSize||"cover",...f()},className:"builder-image"+(t.className?" "+t.className:"")+" img-3ac67dd4",src:t.image,srcSet:a(),sizes:t.sizes})]}),t.aspectRatio&&!((i=(n=t.builderBlock)==null?void 0:n.children)!=null&&i.length&&t.fitContent)?l.jsx("div",{className:"builder-image-sizer div-3ac67dd4",style:{paddingTop:t.aspectRatio*100+"%"}}):null,(c=(e=t.builderBlock)==null?void 0:e.children)!=null&&c.length&&t.fitContent?l.jsx(l.Fragment,{children:t.children}):null,!t.fitContent&&(u=(s=t.builderBlock)==null?void 0:s.children)!=null&&u.length?l.jsx("div",{className:"div-3ac67dd4-2",children:t.children}):null]}),l.jsx("style",{children:`.img-3ac67dd4 { 2 opacity: 1; 3 transition: opacity 0.2s ease-in-out; 4}.div-3ac67dd4 { 5 width: 100%; 6 pointer-events: none; 7 font-size: 0; 8}.div-3ac67dd4-2 { 9 display: flex; 10 flex-direction: column; 11 align-items: stretch; 12 position: absolute; 13 top: 0; 14 left: 0; 15 width: 100%; 16 height: 100%; 17}`})]})}export{b as default};
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.