PageSourceSearch

https://www.kazanlak.bg/_nuxt/CkC9lluM.js

js kazanlak.bg collected 2026-09-25 06:29:50 UTC 2,825 bytes, 1 lines download raw bytes

1import{_ as I}from"./BIbF9o0N.js";import{s as d,c as a,o as t,b as _,h as m,w as f,d as S,t as b,n as h,i as r,F as p,k as v,z as C,a as n}from"./DYFFyC10.js";import{u as q}from"./SHNV3zlB.js";const w={key:0,class:"lsvr-icon-chevron-compact-right"},B={key:0,class:"category-sidenav expanded"},x={__name:"BaseSidebarNavItem",props:{category:{type:Object,required:!0},currentCategoryId:{type:Number,required:!0},expandedPath:{type:Array,required:!0},isSubcategory:{type:Boolean,required:!0}},setup(e){const c=d(()=>e.category.id===e.currentCategoryId),s=d(()=>e.expandedPath.includes(e.category.id));return(o,l)=>{const u=I,i=x;return t(),a("li",{class:h(["lsvr_service-list-widget__item",e.isSubcategory?"subcategory":""])},[_(u,{to:e.category.slug==="https://app.eop.bg/buyer/2394"?"https://app.eop.bg/buyer/2394":`/${e.category.slug}`,class:h(["lsvr-post-list-widget__item-category",r(c)&&r(s)?"active":"",!r(c)&&r(s)?"highlighted":""])},{default:f(()=>[e.isSubcategory?(t(),a("span",w)):m("",!0),S(" "+b(e.category.bgname),1)]),_:1},8,["to","class"]),r(s)?(t(),a("ul",B,[(t(!0),a(p,null,v(e.category.children,g=>(t(),C(i,{key:g.id,category:g,currentCategoryId:e.currentCategoryId,expandedPath:e.expandedPath,"is-subcategory":!0},null,8,["category","currentCategoryId","expandedPath"]))),128))])):m("",!0)],2)}}},k={class:"widget lsvr_service-featured-widget"},$={class:"widget__inner"},P={class:"widget__title sidebar-nav"},A={class:"lsvr_service-list-widget__list category-sidenav"},V={__name:"BaseSidebarNav",props:{parents:{type:Array,required:!0},currentCategoryId:{type:Number,required:!0},currentCategoryName:{type:String,required:!0}},setup(e){const{getAllChildren:c,getAllTopCategories:s}=q(),o=[...e.parents.map(i=>i.id),e.currentCategoryId],l=d(()=>e.parents.length>0?e.parents[0]:{id:e.currentCategoryId,bgname:currentCategoryName}),u=d(()=>e.parents.length>0?c(e.parents[0].id):s());return(i,g)=>{const N=x;return t(),a("div",k,[n("div",$,[n("h3",P,b(e.parents.length>0?r(l).bgname:"Община Казанлък"),1),n("nav",null,[n("ul",A,[(t(!0),a(p,null,v(r(u),y=>(t(),C(N,{key:y.id,category:y,currentCategoryId:e.currentCategoryId,expandedPath:o,"is-subcategory":!1},null,8,["category","currentCategoryId"]))),128))])])])])}}},L={class:"core__columns-col core__columns-col--right core__columns-col--sidebar"},T={id:"sidebar"},z={class:"sidebar__wrapper"},E={class:"sidebar__inner"},O={__name:"LayoutSidebar",props:{parents:{type:Array,required:!0},categoryId:{type:Number,required:!0},categoryName:{type:String,required:!0}},setup(e){return(c,s)=>{const o=V;return t(),a("div",L,[n("aside",T,[n("div",z,[n("div",E,[_(o,{parents:e.parents,"current-category-id":e.categoryId,"current-category-name":e.categoryName},null,8,["parents","current-category-id","current-category-name"])])])])])}}};export{O as _};

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.