PageSourceSearch

https://akvilon.kz/_nuxt/B3DHXDWT.js

js akvilon.kz collected 2026-10-05 03:58:02 UTC 2,573 bytes, 1 lines download raw bytes

1import{f as p,W as R,U as y,n as C,d as $,r as n,b as F,X as O}from"#entry";function h(o,r,c){return p(r,c)}const U=o=>R(y.sets,"/api/v2/sets/",{server:!0,key:`sets-list-${o}`}),b=()=>h(y.sets,"/api/v2/sets/"),A=o=>{const r=C();return h(y.setsInfo,"/api/v2/sets/info/",{query:{cityCode:r.selectedCity.code,codeOfSet:o}})},L=o=>{const r=C();return p("/api/v2/sets/sections/",{query:{cityCode:r.selectedCity.code,codeOfSet:o}})},j=$("sets-sections-store",()=>{const o=C(),r=n([]),c=n({}),S=n({}),I=n(""),i=n(!1),l=n({}),d=n({}),u=new Map,E=async()=>{const{locale:e}=O();try{const{data:t}=await U(e.value);t.value?.data&&(r.value=t.value.data,i.value=!0)}catch(t){let s="Error: fetchSets()";t instanceof Error&&(s=t.message),console.error("Ошибка получения списка подборок - /api/v2/sets/",s)}},f=(e,t)=>{const s=u.get(e);if(s)return s;const a=t().finally(()=>{u.delete(e)});return u.set(e,a),a},m=async()=>{try{const e=await b();e?.data&&(r.value=e.data,i.value=!0)}catch(e){let t="Error: loadSets()";e instanceof Error&&(t=e.message),console.error("Ошибка получения списка подборок - /api/v2/sets/",t)}},w=async e=>{const t=o.selectedCity.code;try{const s=await A(e);s?.data&&t===o.selectedCity.code&&(c.value[e]=s.data,l.value[e]=t)}catch(s){let a="Error: loadSetsInfo()";s instanceof Error&&(a=s.message),console.error("Ошибка получения информации о подборках - /api/v2/sets/info/",a)}},M=async e=>{const t=o.selectedCity.code;try{const s=await L(e);s?.data&&t===o.selectedCity.code&&(S.value[e]=s.data,d.value[e]=t)}catch(s){let a="Error: loadSetsCategoryTree()";s instanceof Error&&(a=s.message),console.error("Ошибка получения дерева подборок - /api/v2/sets/sections/",a)}},v=()=>i.value?Promise.resolve():f("sets",m),g=e=>{const t=o.selectedCity.code;return l.value[e]===t?Promise.resolve():f(`info-${t}-${e}`,()=>w(e))},T=e=>{const t=o.selectedCity.code;return d.value[e]===t?Promise.resolve():f(`tree-${t}-${e}`,()=>M(e))},q=async()=>{await v(),await Promise.all(r.value.map(({code:e})=>g(e)))},P=F(()=>{const e=o.selectedCity.code;return Object.entries(c.value).filter(([t])=>l.value[t]===e).map(([,{name:t,code:s,children:a}])=>({name:t,code:s,children:a}))});return{setsInfo:r,isSetsLoaded:i,loadedInfoCity:l,loadedTreeCity:d,selectedSetsCodeSection:I,sectionsInfo:c,sectionsCategoryTree:S,transformSectionsInfoForCommonMenu:P,fetchSets:E,ensureSets:v,ensureSetsInfo:g,ensureSetsCategoryTree:T,ensureSetsMenuInfo:q}});export{h as a,j 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.