1import{u as P,_ as S}from"./ccEpzwLy.js";import{C as h}from"./D6y4X149.js";import{u as w}from"./338o--IA.js";import{u as B}from"./shNNSiX3.js";import{u as M}from"./C5d3vjq3.js";import{d as O,J as x,g as I,h as p,j as t,y as N,F as T,B as A,f as D,A as n,aQ as E}from"./CT5bnZVn.js";import"./CoHq_REF.js";import"./LqOT5zyH.js";import"./CL5iutR3.js";import"./C2U5ePl3.js";import"./DeDsAOiM.js";import"./CYNzpMEt.js";import"./fosP2mMz.js";import"./CyCYo6JB.js";import"./rp3yVq09.js";import"./BeQgZq7-.js";import"./1aU9hW5e.js";import"./CnIWnVoR.js";import"./DhjjRT9a.js";import"./C8WB95lv.js";import"./dt6sUNTV.js";import"./DYLMbqMH.js";import"./D6F5wEEV.js";import"./Cpj98o6Y.js";import"./DxMG7k4I.js";import"./DX4cwHFX.js";import"./CLi9NpqK.js";import"./BnMjJsLX.js";const uo=O({__name:"ebooks",async setup(H){let a,i;w({title:"ÐлекÑÑоннÑе книги",description:"ÐлекÑÑоннÑе книги издаÑелÑÑÑва «ÐикеÑ»: ÑÑение на лÑбом ÑÑÑÑойÑÑве, покÑпка оÑделÑнÑÑ
изданий и доÑÑÑп по подпиÑке."});const{categories:l}=B(),r=P();E("catalogFilters",r);const s=A(!1),c=n(()=>(l.value||[]).map(o=>({slug:o.slug,name:o.name,count:o.books_count,children:(o.children||[]).map(e=>({slug:e.slug,name:e.name,count:e.books_count}))}))),u=n(()=>(l.value||[]).reduce((o,e)=>o+(e.books_count||0),0)||null);function d(o){r.setCategory(o==="all"?null:o)}const f=[{value:"newest",label:"Ðовинки"},{value:"price_asc",label:"СнаÑала деÑевле"},{value:"price_desc",label:"СнаÑала доÑоже"},{value:"rating",label:"Ðо ÑейÑингÑ"}],g=n(()=>({...r.filterParams.value,formats:"ebook"})),{items:_,pending:v,hasMore:b,loadingMore:k,loadMore:C,total:y}=([a,i]=x(()=>M("/api/v1/catalog/feed/",g,{key:"catalog-ebooks",limit:24})),a=await a,i(),a);return(o,e)=>{const F=S;return D(),I(T,null,[p(h,{items:t(_),loading:t(v),"has-more":t(b),"loading-more":t(k),"skeleton-count":12,crumbs:[{label:"ÐаÑалог",to:"/catalog"}],title:"ÐлекÑÑоннÑе книги",count:t(y),description:"ЧиÑайÑе в лÑбом меÑÑе â EPUB и PDF, Ð¼Ð³Ð½Ð¾Ð²ÐµÐ½Ð½Ð°Ñ Ð´Ð¾ÑÑавка.",sections:t(c),"active-section":t(r).activeCategory.value||"all","total-books":t(u),"sort-options":f,"search-placeholder":"ÐÑкаÑÑ ÑÑеди ÑлекÑÑоннÑÑ
книг",onLoadMore:t(C),onSelectSection:d,onOpenFilters:e[0]||(e[0]=m=>s.value=!0)},null,8,["items","loading","has-more","loading-more","count","sections","active-section","total-books","onLoadMore"]),p(F,{open:t(s),"onUpdate:open":e[1]||(e[1]=m=>N(s)?s.value=m:null),"drawer-only":"","hide-format":"","show-category-picker":!1},null,8,["open"])],64)}}});export{uo 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.