PageSourceSearch

https://delta-batt.com/_nuxt/VLTIPIcG.js

js delta-batt.com collected 2026-10-09 22:42:10 UTC 2,498 bytes, 1 lines download raw bytes

1import{b as N,e as V,C as x,_ as B}from"./p7j0WGZt.js";import{a as I}from"./13YhSEq2.js";import{S as L}from"./Bi8nN-xN.js";import{u as Q}from"./Cj7e6CUJ.js";import{u as R}from"./CG6-6GM1.js";import{m as j,i as z,F,af as q,N as i,Q as d,U as p,u as o,a9 as _,S as H,I as h,a7 as C,$ as f,j as b,M as n,p as k}from"./uOatmh1Q.js";const U={class:"mobile-categories"},W={key:0,class:"mobile-categories__dropdown"},X={class:"mobile-categories__group-items"},Y=["onClick"],G={key:0},J={key:0,class:"mobile-categories__empty"},K=j({__name:"AsideCategoriesMobile",props:{categories:{default:()=>[]}},emits:["categoryChanged"],setup(S,{emit:y}){const v=S,m=N(),w=y,{query:A}=Q(),{setNewActiveCode:g}=z(L),t=b(""),c=b(!1),{data:O,refresh:P}=R(()=>I.getServicesDetail(t.value,A.value.search),{immediate:!1},"$QkWkcmXHVu"),l=k(()=>{const s=[];return v.categories.forEach(e=>{e.subCategories&&e.subCategories.length>0&&s.push({name:e.name,code:e.code,items:e.subCategories.map(a=>({name:a.name,code:a.code,fullCode:a.code}))})}),s}),$=s=>s.find(e=>t.value===e.fullCode),D=k(()=>{for(const e of l.value){const a=e.items.find(r=>r.fullCode===t.value);if(a)return a.name}const s=v.categories.find(e=>e.code===t.value);return s?s.name:"Выберите категорию"});async function E(s,e=!1){t.value=s,e?(await m.push({path:`/support/services/${s}/`}),g(t.value)):(await m.push({path:`/support/services/${s}/`}),g(t.value)),w("categoryChanged",O?.value?.data),c.value=!1}const M=()=>{c.value=!1};return F(()=>{const s=m.currentRoute.value.path.split("/"),e=s[s.length-1];e&&e!=="services"&&(t.value=e)}),(s,e)=>{const a=V;return q((n(),i("div",U,[d("div",{class:"mobile-categories__trigger",onClick:e[0]||(e[0]=r=>c.value=!o(c))},[d("span",{class:p({placeholder:!o(t)})},_(o(D)),3),H(a,{name:"ui/arrow-select",class:"mobile-categories__icon",size:22,rotate:o(c)?180:0},null,8,["rotate"])]),o(c)?(n(),i("div",W,[(n(!0),i(h,null,C(o(l),r=>(n(),i("div",{key:r.code,class:"mobile-categories__group"},[d("div",{class:p(["mobile-categories__group-title",{active:$(r.items)}])},_(r.name),3),d("div",X,[(n(!0),i(h,null,C(r.items,u=>(n(),i("div",{key:u.fullCode,class:p(["mobile-categories__option",{active:o(t)===u.fullCode}]),onClick:T=>E(u.fullCode,!1)},_(u.name),11,Y))),128))]),o(l).length>1?(n(),i("hr",G)):f("",!0)]))),128)),o(l).length===0?(n(),i("div",J," Нет доступных категорий ")):f("",!0)])):f("",!0)])),[[x,M]])}}}),ie=B(K,[["__scopeId","data-v-10ef5bcb"]]);export{ie 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.