1import{_ as u}from"./BdgnVm8D.js";import{_ as p}from"./C2J1si7b.js";import{b as _}from"./Db4TCE2o.js";import{b}from"./Dewr0LFl.js";import{_ as f}from"./C8Qm0rk6.js";import{R as h,Z as v,a6 as k,G as a,z as s,Y as c,ad as g,a0 as x,$ as y,Q as w,ag as z,c as C,U as o}from"./Cfgn0zXN.js";import"./Ddik8O1X.js";import"./CzemHChE.js";const B={class:"swatch"},$={key:0,class:"swatch-inner"},D={__name:"Swatch",props:{blok:{type:Object,default:()=>({})},componentType:{type:String,default:"button",validator:e=>["button","div"].includes(e)},active:{type:Boolean,default:!1}},setup(e){const i=e,n=`(min-width: ${_?.md}px) 172px, 104px`,r=[104,172,344],t=C(()=>b(i.blok?.image?.[0],{sizes:n,widths:r}));return(S,N)=>{const l=u,m=p,d=z("editable");return o(),h(w(e.componentType),{class:y(["swatch-container",{active:e.active}]),"aria-pressed":e.active?"true":null},{default:v(()=>[k((o(),a("div",B,[s(t)?.img?.src?(o(),a("div",$,[c(l,{"image-src":s(t).img.src,alt:s(t).img.alt,sizes:s(t).img.sizes,srcset:s(t).img.srcset},null,8,["image-src","alt","sizes","srcset"])])):e.blok?.hexcode?.color?(o(),a("div",{key:1,class:"swatch-inner",style:g({backgroundColor:e.blok.hexcode.color})},null,4)):x("",!0)])),[[d,e.blok]]),c(m,{document:e.blok.description},null,8,["document"])]),_:1},8,["class","aria-pressed"])}}},Q=f(D,[["__scopeId","data-v-3405d93f"]]);export{Q 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.