1import{b3 as d,r as s,y as l}from"./DxL57_PK.js";const f=d("product-store",()=>{const o=s(),r=s(),n=l(()=>{let t=o.value?.options.optionGroups.map(e=>({...e,products:e.products.map(u=>({...u,selected:u.required,activeChoice:u?.choices[0]?.sku??""}))}));return t=t?.filter(e=>e.products.length>0),t??[]}),c=s();function a(t){o.value=r.value=t,p()}function i(t){r.value=t}function p(){c.value={totalProducts:o.value?.options.totalProducts??0,optionGroups:n.value??[]}}return{mainProduct:o,activeProduct:r,options:c,setMainProduct:a,setActiveProduct:i}});export{f as u};
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.