1import{m as n,a,g as o,aa as m,d as c}from"./theme.cmJUN555.min.js";import{m as p}from"./module.esm.DUd3sQ38.min.js";import{h as i,s as d}from"./combo-set-visibility.Cb0EKxyb.min.js";import"./modulepreload-polyfill.BCYanipZ.min.js";import"./just-validate.es.K-8qVy6Y.min.js";n.plugin(p);n.data("jamarSetsDescription",({sku:s})=>({expanded:!1,itsSet:!0,productSets:[],currentDepartmentId:null,currentDepartamment:null,comboIsOwner:!1,async init(){this.comboIsOwner=i(),d(t=>{if(this.comboIsOwner=i(),t.visible){this.productSets=[];return}if(t.sku===s&&t.data){this.setProductSets(t.data.components);return}this.getInfoSets()});const r=a();r&&(this.currentDepartmentId=r,this.currentDepartamment=o(),this.comboIsOwner||await this.getInfoSets()),window.addEventListener("region-change",async()=>{const t=a();t!==this.currentDepartmentId&&(this.currentDepartmentId=t,this.currentDepartamment=o(),!this.comboIsOwner&&await this.getInfoSets())})},setProductSets(r){const t=(r||[]).filter(e=>e.component_sku!==s);if(t.length<=1){this.productSets=[];return}this.productSets=t.map(e=>({sku:e.component_sku,titulo:e.component_name,cantidad:e.component_quantity,imagen:e.component_image,url:`https://www.jamar.com/products/${e.component_sku}`}))},async getInfoSets(){var r;try{const e=await(await fetch(m({sku:s,departmentId:this.currentDepartmentId,departamment:this.currentDepartamment}),{headers:{"x-api-key":c()}})).json();this.setProductSets((r=e==null?void 0:e.data)==null?void 0:r.components)}catch(t){console.error("Error fetching infoSets",t)}}}));class u extends window.HTMLElement{constructor(){super(),n.initTree(this)}}window.customElements.define("jamar-sets-description",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.