import"./SkuList.vue_vue_type_script_setup_true_lang-ae564d4e.js";import"./PcComponents.css_vue_type_style_index_0_src_5455114c_scoped_5455114c_lang-b90f3eba.js";const l=p=>{var a;const e=[];return p.specType&&((a=p.skus)==null||a.forEach(m=>{var s;(s=m.properties)==null||s.forEach(({propertyId:o,propertyName:n,valueId:d,valueName:c})=>{var t,u;e!=null&&e.some(r=>r.id===o)||e.push({id:o,name:n,values:[]});const i=e==null?void 0:e.findIndex(r=>r.id===o);(t=e[i].values)!=null&&t.some(r=>r.id===d)||((u=e[i].values)==null||u.push({id:d,name:c}))})})),e};export{l as g};