1import{j as o,r as m}from"./vendor-core-BOO0Ukja.js";import{c as l}from"./clsx-B-dksMZM.js";import{c as r}from"./array-Oi8mO6wm.js";import"./yandexMapsApi-C0CwaHMv.js";import"./vendor-i18n-BwjFNpZY.js";import{O as a}from"./TitleView-BZJjkwaj.js";import{a1 as g}from"./slice-ConPe7Si.js";const c="_homePageSkeleton_3o7gh_42",i="_homePageSkeleton__topBanner_3o7gh_46",h="_homePageSkeleton__categoryList_3o7gh_56",k="_homePageSkeleton__category_3o7gh_56",P="_homePageSkeleton__content_3o7gh_69",S="_homePageSkeleton__singleBanner_3o7gh_89",d="_homePageSkeleton__banner_3o7gh_99",p="_homePageSkeleton__blockWithTitle_3o7gh_119",u="_homePageSkeleton__blockTitle_3o7gh_124",x="_homePageSkeleton__grid_3o7gh_128",N="_homePageSkeleton__grid_productAndBanners_3o7gh_158",B="_homePageSkeleton__grid_onlyBanners_3o7gh_178",j="_homePageSkeleton__firstBanner_3o7gh_198",v="_homePageSkeleton__product_3o7gh_214",b="_homePageSkeleton__productImage_3o7gh_233",f="_homePageSkeleton__productBrand_3o7gh_247",T="_homePageSkeleton__productName_3o7gh_251",y="_homePageSkeleton__productPrice_3o7gh_255",e={homePageSkeleton:c,homePageSkeleton__topBanner:i,homePageSkeleton__categoryList:h,homePageSkeleton__category:k,homePageSkeleton__content:P,homePageSkeleton__singleBanner:S,homePageSkeleton__banner:d,homePageSkeleton__blockWithTitle:p,homePageSkeleton__blockTitle:u,homePageSkeleton__grid:x,homePageSkeleton__grid_productAndBanners:N,homePageSkeleton__grid_onlyBanners:B,homePageSkeleton__firstBanner:j,homePageSkeleton__product:v,homePageSkeleton__productImage:b,homePageSkeleton__productBrand:f,homePageSkeleton__productName:T,homePageSkeleton__productPrice:y},C=r(7),L=r(3),D=r(4),G=()=>o.jsxs("div",{className:e.homePageSkeleton,children:[o.jsx(a,{variant:"rect",className:e.homePageSkeleton__topBanner}),o.jsx("div",{className:e.homePageSkeleton__categoryList,children:C.map(n=>o.jsx(a,{variant:"textLine",className:e.homePageSkeleton__category},n))}),o.jsxs("div",{className:e.homePageSkeleton__content,children:[o.jsxs("div",{className:e.homePageSkeleton__blockWithTitle,children:[o.jsx(a,{variant:"textLine",className:e.homePageSkeleton__blockTitle}),o.jsxs("div",{className:l(e.homePageSkeleton__grid,e.homePageSkeleton__grid_productAndBanners),children:[o.jsx(a,{variant:"rect",className:e.homePageSkeleton__firstBanner}),L.map(n=>o.jsxs("div",{className:e.homePageSkeleton__product,children:[o.jsx(a,{variant:"rect",className:e.homePageSkeleton__productImage}),o.jsx(a,{variant:"textLine",className:e.homePageSkeleton__productBrand}),o.jsx(a,{variant:"textLine",className:e.homePageSkeleton__productName}),o.jsx(a,{variant:"textLine",className:e.homePageSkeleton__productPrice})]},n))]})]}),o.jsx(a,{variant:"rect",className:e.homePageSkeleton__singleBanner}),o.jsxs("div",{className:e.homePageSkeleton__blockWithTitle,children:[o.jsx(a,{variant:"textLine",className:e.homePageSkeleton__blockTitle}),o.jsx("div",{className:l(e.homePageSkeleton__grid,e.homePageSkeleton__grid_onlyBanners),children:D.map(n=>o.jsx(a,{variant:"rect",className:e.homePageSkeleton__banner},n))})]})]})]}),H=()=>{const{data:n,isLoading:s}=g();return{categories:m.useMemo(()=>n!=null&&n.categories?n.categories.filter(t=>t.productCount>0).map(t=>({id:t.id,name:t.name,urlCode:t.urlCode,children:(t.children||[]).filter(_=>_.productCount>0),priority:t.priority||0,isDeleted:t.isDeleted||!1,createdDate:t.createdDate||new Date,lastModifiedDate:t.lastModifiedDate||new Date,picture:t.picture||null,productCount:t.productCount})).sort((t,_)=>t.priority-_.priority):[],[n]),isLoading:s}};export{G as H,H 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.