https://outcast-clothing.us/cdn/shop/t/224/assets/the-wishlist-swa…?v=174329858611812462061789966910
1import{u as c}from"./jsxRuntime.module.D9TjCUQ-.min.js";import{d as f}from"./hooks.module.DJeX4gow.min.js";import{c as x,f as C}from"./fetch.CdShnmFX.min.js";import{T as $}from"./the-wishlst-dropdown.D8LHRe_4.min.js";import"./preact.module.BDqgTlPx.min.js";import"./global-notice.BEj_sUun.min.js";import"./global-events.spCyEkW_.min.js";import"./icon.Bce98KO9.min.js";function G({swatches:o,currentProduct:u,setCurrentProduct:g,wishlistProduct:n}){var e;if(!o)return;const[v,t]=f(!1),[i,S]=f(((e=o==null?void 0:o[0])==null?void 0:e.color)||""),T=async(r,p)=>{if(p===i)return;S(p);const b=`/products/${r}?view=ajax`,l=x("GET");l.headers.Accept="text/html";const m=await C(b,l),k={...m,matchedVariants:m.variants.map(d=>{var a;return{...d,isActive:d.id.toString()===String((a=n==null?void 0:n.variants[0])==null?void 0:a.id)}})};g(k),t(!1)};return c($,{isOpen:v,setIsOpen:t,product:u,title:i||"",children:o==null?void 0:o.map(r=>c("div",{className:`cursor-pointer p-3 body-core hover:background-light ${r.available?"":"text-faint line-through"} ${(r==null?void 0:r.color)===i?"background-light":""}`,onClick:()=>T(r.handle,r.color),children:r.color},r.handle))})}export{G as 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.