1import{_ as B}from"./Dc9osrfK.js";import{O as R,_ as V}from"./DSkQwH5H.js";import{M as D}from"./B4x-9Oq6.js";import{S as M}from"./Fa5wGPmM.js";import{P as O}from"./UnVZp4II.js";import{u as T,F as _,d as C}from"./BV6Pkiit.js";import{A as E,E as H,w as N,$ as c,P as f,W as q,X as d,z as t,a5 as h,G as z,S as g,b as A,f as l,r as y}from"./CLFN9GXV.js";import"./DWIpDVu5.js";import"./Cz6OMdp7.js";import"./Ch67Kx3h.js";import"./DlPjNlyc.js";import"./BAQENnRB.js";import"./Bl4XKtnr.js";import"./CiNQPwFm.js";import"./DNS0fxPA.js";import"./DiGEXaoV.js";import"./BKQU8jRm.js";import"./u9az16KE.js";import"./DOEOSNPB.js";import"./kp0iZPJI.js";import"./DvTPxB_2.js";import"./aoyVAZYF.js";const G={class:"barcode mx-4 pt-5 d-flex justify-center"},L={key:1,class:"bg-color-white px-4 pt-4 pb-2 rounded-3"},j=["innerHTML"],I={key:0,class:"my-4"},U=E({__name:"barcode",setup($){const a=T(),v=R.PRODUCT,r=a.params.id.split("-")[0],S=a.params.id,n=l(!0),u=l(!1),p=l(""),s=y([]),o=y({size:0,id:null}),w={key:"product",value:r};H(async()=>{await b(),P(),s.length&&s[0].size!==0&&(u.value=!0),await m(),N(o,()=>{m()})});const P=()=>{if(a.query.size&&+a.query.size&&s.length){const e=s.find(i=>i.size===+a.query.size);e&&Object.assign(o,e)}},b=async()=>{const e=await _().getSizes(r);e.isSuccess()&&e.getData().length&&s.push(...e.getData())},m=async()=>{n.value=!0;const e=await _().getBarcode(r,o.size||void 0);e.isSuccess()&&(p.value=e.getRawResponse()),n.value=!1};return(e,i)=>{const k=B;return c(),f(V,{"seo-params":w,"open-graph-type":t(v)},{default:q(()=>[d(D,{title:"ШÑÑиÑ
код","hide-search":"",class:"pa-4"}),d(O,{"product-path":t(S),"product-id":t(r),"is-short":""},null,8,["product-path","product-id"]),h("div",G,[t(n)?(c(),f(M,{key:0,width:"100%",height:93})):t(p)?(c(),z("div",L,[h("div",{innerHTML:t(p)},null,8,j)])):g("",!0)]),t(u)?(c(),z("div",I,[d(k,{modelValue:t(o),"onUpdate:modelValue":i[0]||(i[0]=x=>A(o)?o.value=x:null),sizes:t(s),"scroll-to-end-by-initiated":"","scroll-to-active":""},null,8,["modelValue","sizes"])])):g("",!0)]),_:1},8,["open-graph-type"])}}}),_e=C(U,[["__scopeId","data-v-f8e4291e"]]);export{_e 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.