PageSourceSearch

https://averus-pribor.ru/_nuxt/BCwge4go.js

js averus-pribor.ru collected 2026-10-06 12:28:04 UTC 2,798 bytes, 1 lines download raw bytes

1import{_ as a}from"./DLLs8mBc.js";import{w as s,r as e,B as t,i as l,c as n,o as i,f as o,F as d,j as c,x as r,d as u,b as _,g as h,h as p,t as m,m as g,v,_ as w,k as f}from"./Dhu4hwUy.js";import{u as k}from"./MMZqyNmI.js";const C={class:"dd-catalog__wrapper"},y={class:"dd-catalog__sections"},x=["onMouseenter"],b={class:"dd-catalog__content"},M={key:0,class:"dd-catalog__brands"},j=["src"],B={class:"dd-catalog__menu"},D={key:0},L={__name:"DropdownCatalog",props:{isShow:Boolean},emits:["resizeMenu","ready"],async setup(L,{emit:z}){let S,q;const{data:A,error:E}=([S,q]=s((()=>k("/api/public/catalog/main-menu"))),S=await S,q(),S),F=z,U=e(0);E.value;const G=t("openDropdownMenu"),H=a=>{G(a)};return l((()=>{F("ready");$(".dd-catalog__menu ul").each((function(){const a=$(this),s=a.find("li");if(s.length<=6)return;s.slice(6).hide();const e=$('<span class="dd-catalog__more"><span>Ещё</span><svg width="9" height="6" viewBox="0 0 9 6" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.353516 0.353516L4.35351 4.35352L8.35352 0.353516" stroke="currentColor"></path></svg></span>');e.insertAfter(a);let t=!1;e.on("click",(function(){t?(s.slice(6).slideUp(150),$(this).removeClass("is-open").children("span").text("Ещё")):(s.slideDown(150),$(this).addClass("is-open").children("span").text("Свернуть")),t=!t}))})),$(".dd-catalog__sections li").mouseenter((function(){let a=$(this).index(),s=$(".dd-catalog__section");$(this).addClass("active").siblings().removeClass("active"),s.removeClass("active").eq(a).addClass("active")}));window.matchMedia("(max-width: 991px)").addEventListener("change",(function(a){F("resizeMenu",a.matches)}))})),(s,e)=>{const t=a;return i(),n("div",{class:r(["dd-catalog",{"is-show":L.isShow}])},[o("div",C,[o("div",y,[o("ul",null,[(i(!0),n(d,null,c(u(A),((a,s)=>(i(),n("li",{key:a.id,class:r({active:u(U)===s}),onMouseenter:a=>U.value=s},[_(t,{onClick:H,to:a.url},{default:h((()=>[p(m(a.name),1)])),_:2},1032,["to"])],42,x)))),128))])]),o("div",b,[(i(!0),n(d,null,c(u(A),((a,s)=>g((i(),n("div",{key:a.id,class:"dd-catalog__section active"},[a.all_brands.length>0?(i(),n("div",M,[(i(!0),n(d,null,c(a.all_brands,(a=>(i(),f(t,{onClick:H,to:a.url,key:a.id,href:""},{default:h((()=>[o("img",{src:a.preview_picture,alt:""},null,8,j)])),_:2},1032,["to"])))),128))])):w("",!0),o("div",B,[(i(!0),n(d,null,c(a.children,(a=>(i(),n("div",{key:a.id,class:"dd-catalog__subsection"},[_(t,{onClick:H,to:a.url,class:"dd-catalog__name"},{default:h((()=>[p(m(a.name),1)])),_:2},1032,["to"]),a.children&&a.children.length?(i(),n("ul",D,[(i(!0),n(d,null,c(a.children,(a=>(i(),n("li",{key:a.id},[_(t,{onClick:H,to:a.url},{default:h((()=>[p(m(a.name),1)])),_:2},1032,["to"])])))),128))])):w("",!0)])))),128))])])),[[v,u(U)===s]]))),128))])])],2)}}};export{L 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.