PageSourceSearch

https://nikeabooks.ru/_nuxt/BuoIVnpa.js

js nikeabooks.ru collected 2026-09-24 22:07:40 UTC 12,653 bytes, 1 lines download raw bytes

1import _e from"./LqOT5zyH.js";import{_ as fe}from"./COXSLSlb.js";import{_ as he}from"./DVg5SavT.js";import{_ as ge}from"./DBKR9Oh7.js";import{d as K,g as l,q as z,j as e,F as _,r as w,k as r,t as p,n as C,f as t,p as b,A as v,C as W,T as ve,J as k,b7 as xe,bn as be,K as ye,o as we,Q as ke,l as $e,h,m as $,y as P,w as j,B as g,N as Ce,z as Be,bv as Le,bp as Te}from"./CT5bnZVn.js";import{_ as Me}from"./CLi9NpqK.js";import{_ as Ve}from"./CjIr9Ndr.js";import{_ as Ae}from"./CnIWnVoR.js";import{_ as Ue}from"./BnMjJsLX.js";import{_ as De}from"./CD0g_28T.js";import{_ as Se}from"./D7BOLTHm.js";import{u as qe}from"./CoHq_REF.js";import{u as B}from"./1aU9hW5e.js";import{f as Ne,a as je}from"./DKmstR7k.js";import{u as H}from"./BEx0xS7t.js";import{u as ze}from"./BeQgZq7-.js";import{u as Ee}from"./338o--IA.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"./BdwQtYcx.js";import"./DB7qaAl7.js";const Re={key:0,class:"flex justify-center mt-section-sm"},Ie=["disabled"],Je=K({__name:"BookGrid",props:{books:{default:()=>[]},hasMore:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},cols:{default:4},skeleton:{type:Boolean,default:!1},skeletonCount:{default:8}},emits:["addToCart","loadMore"],setup(x){const u=x,d=v(()=>`book-grid--${u.cols}`);return(L,c)=>{const T=Ve,M=Ae;return t(),l("div",null,[x.skeleton?(t(),l("div",{key:0,class:z(["grid gap-card-gap book-grid",e(d)])},[(t(!0),l(_,null,w(x.skeletonCount,n=>(t(),b(T,{key:`skel-${n}`,fluid:""}))),128))],2)):(t(),l(_,{key:1},[r("div",{class:z(["grid gap-card-gap book-grid",e(d)])},[(t(!0),l(_,null,w(x.books,n=>(t(),b(M,{key:n.id,slug:n.slug,"cover-thumbnail":n.cover_thumbnail,"cover-webp":n.cover_webp,"cover-thumbnail-webp":n.cover_thumbnail_webp,"cover-image":n.cover_image,title:n.title,authors:n.authors,"min-price":n.min_price,"is-preorder":n.is_preorder===!0,"available-formats":n.available_formats,"ebook-formats":n.ebook_formats,"age-rating":n.age_rating,"is-new":n.is_new,"is-bestseller":n.is_bestseller,"in-stock":n.in_stock!==!1,rating:n.rating,"reviews-count":n.reviews_count,fluid:"",onAddToCart:i=>L.$emit("addToCart",n)},null,8,["slug","cover-thumbnail","cover-webp","cover-thumbnail-webp","cover-image","title","authors","min-price","is-preorder","available-formats","ebook-formats","age-rating","is-new","is-bestseller","in-stock","rating","reviews-count","onAddToCart"]))),128))],2),x.hasMore?(t(),l("div",Re,[r("button",{class:"bg-nikea-dark text-white rounded-btn px-8 py-3 hover:bg-[#333] transition-colors font-medium text-btn-lg disabled:opacity-50",disabled:x.loading,onClick:c[0]||(c[0]=n=>L.$emit("loadMore"))},p(x.loading?"загрузка...":"загрузить ещё"),9,Ie)])):C("",!0)],64))])}}}),Qe=W(Je,[["__scopeId","data-v-05747929"]]),Fe={class:"max-w-container mx-auto px-4 lg:px-[30px] pt-[clamp(16px,2.5vw,30px)]"},Ge={class:"relative overflow-hidden rounded-card bg-gradient-twilight text-white"},Oe={class:"relative z-10 flex flex-col sm:flex-row items-center gap-6 lg:gap-10 p-6 sm:p-8 lg:p-10"},Pe={class:"w-[130px] h-[130px] lg:w-[176px] lg:h-[176px] rounded-full overflow-hidden bg-white/15 ring-4 ring-white/25 shrink-0"},He=["src","alt"],Ke={key:1,class:"w-full h-full flex items-center justify-center text-6xl font-bold text-white/50"}
1,We={class:"flex-1 min-w-0 w-full text-center sm:text-left"},Xe={class:"text-white/70 text-[12px] sm:text-[13px] uppercase tracking-[0.16em] font-semibold mb-2"},Ye={class:"text-white font-bold leading-[1.08] text-[clamp(28px,3.4vw,48px)]"},Ze={class:"text-white/85 mt-3 leading-relaxed line-clamp-3 max-w-[640px] mx-auto sm:mx-0 text-[clamp(15px,1.3vw,18px)]"},et={class:"flex items-center justify-center sm:justify-between gap-4 mt-6 flex-wrap"},tt={class:"inline-flex items-center gap-1.5 bg-white/15 rounded-pill px-4 py-1.5 text-sm font-medium"},st={class:"mt-section-sm"},ot={class:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 mb-6"},at={class:"flex items-center gap-3 flex-wrap"},lt={class:"mt-6"},nt={key:0,class:"author-questions"},it={class:"author-question__title"},rt={key:0,class:"author-question__text"},ut={key:1,class:"text-center py-10 text-brand-text-secondary"},ct={class:"mt-6"},dt={key:2,class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-card-gap"},pt={key:3,class:"prose max-w-none text-[16px] lg:text-[18px] leading-relaxed whitespace-pre-line text-nikea-dark"},mt=["href"],_t={key:0,class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-card-gap"},ft={key:1,class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-card-gap"},ht={key:2,class:"text-center py-12 text-brand-text-secondary"},gt={key:1,class:"max-w-container mx-auto px-4 lg:px-[30px] pt-[clamp(16px,2.5vw,30px)]"},vt=K({__name:"[slug]",async setup(x){let u,d;const c=ve().params.slug,{fetchAuthor:T,fetchBooks:M}=qe(),{data:n}=([u,d]=k(()=>B(`author-${c}`,()=>Ne(()=>T(c)),{default:()=>({entity:null,movedTo:null})})),u=await u,d(),u);if([u,d]=k(()=>je(n.value?.movedTo,s=>`/authors/${s}`)),await u,d(),!n.value?.entity)throw xe({statusCode:404,statusMessage:"Автор не найден"});const i=v(()=>n.value?.entity??null),V=g([]),m=g("books"),{data:X}=([u,d]=k(()=>B(`author-diary-${c}`,()=>H().fetchArticles({content_type:"diary",author:c,page_size:10,ordering:"-published_at"}).catch(()=>null),{default:()=>null})),u=await u,d(),u),A=v(()=>X.value?.results??[]),{data:Y}=([u,d]=k(()=>B(`author-media-${c}`,()=>H().fetchArticles({content_type:"podcast,video",author:c,page_size:12,ordering:"-published_at"}).catch(()=>null),{default:()=>null})),u=await u,d(),u),E=v(()=>Y.value?.results??[]),{data:Z}=([u,d]=k(()=>B(`author-questions-${c}`,()=>i.value?.accepts_questions?ze().fetchQuestions({answering_author:c,page:1}).catch(()=>null):Promise.resolve(null),{default:()=>null})),u=await u,d(),u),R=v(()=>Z.value?.results??[]);A.value.length&&(m.value="diary");const y=g("newest"),I=g(1),J=g(!1),U=g(!1),D=g([]),S=g(!1),Q=g(null),ee=v(()=>{const s=[];return A.value.length&&s.push({label:"дневник",value:"diary"}),i.value?.accepts_questions&&s.push({label:"вопросы",value:"questions"}),s.push({label:"книги",value:"books"}),E.value.length&&s.push({label:"подкасты/видео",value:"media"}),i.value?.bio&&s.push({label:"об авторе",value:"about"}),s.push({label:"мероприятия",value:"events"}),s}),te=[{value:"newest",label:"Новинки"},{value:"popularity",label:"Популярные"},{value:"price_asc",label:"Цена ↑"},{value:"price_desc",label:"Цена ↓"}],se={author:"Автор",translator:"Переводчик",editor:"Редактор",narrator:"Чтец"},oe=v(()=>se[i.value?.author_type??"author"]??"Автор"),F=v(()=>D.value.filter(s=>s.kind==="event").map(s=>s.data)),G=v(()=>{const s=i.value;if(!s)return"";const a=(s.bio||"").replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim();return a||`${s.full_name} — книги автора в православном издательстве «Никея».`});Ee({title:()=>i.value?.full_name||"Автор",description:G,path:()=>`/authors/${c}`,image:()=>i.value?.photo||void 0,type:"profile"}),be(()=>{const s=i.value;if(!s)return[];const a=`/authors/${c}`;return[Le({name:s.full_name,path:a,description:G.value,image:s.photo}),Te([{name:"Главная",path:"/"},{name:"Авторы",path:"/authors"},{name:s.full_name,path:a}])]});async function q(s=1){U.value=!0;try{const a={author:c,page:s};y.value!=="newest"&&(a.ordering=y.value);const f=await M(a);s===1?V.value=f.results:V.value.push(...f.results),J.value=!!f.next,I.value=s}finally{U.value=!1}}function ae(){q(I.value+1)}function le(){m.value="about",Ce(()=>Q.value?.scrollIntoView({behavior:"smooth",block:"start"}))}function ne(s){const a=s%10,f=s%100;return a===1&&f!==11?"книга":a>=2&&a<=4&&(f<12||f>14)?"книги":"книг"}return ye(y,()=>q(1)),we(async()=>
1{if(await q(),i.value){S.value=!0;try{const s=await $fetch(`/api/v1/catalog/authors/${c}/feed/`,{baseURL:ke()});D.value=s.items??[]}catch{D.value=[]}finally{S.value=!1}}}),(s,a)=>{const f=_e,ie=fe,re=he,ue=ge,N=Be,ce=Me,de=Qe,pe=Ue,O=De,me=Se;return t(),l("div",null,[e(i)?(t(),l(_,{key:0},[r("div",Fe,[r("section",Ge,[a[3]||(a[3]=$e('<div aria-hidden="true" class="absolute inset-0 pointer-events-none overflow-hidden" data-v-4ac6fe13><svg class="absolute inset-0 w-full h-full" data-v-4ac6fe13><circle cx="80%" cy="48%" r="150" fill="white" opacity="0.10" data-v-4ac6fe13></circle><circle cx="94%" cy="14%" r="120" fill="white" opacity="0.08" data-v-4ac6fe13></circle><circle cx="68%" cy="118%" r="170" fill="white" opacity="0.07" data-v-4ac6fe13></circle></svg></div>',1)),r("div",Oe,[r("div",Pe,[e(i).photo?(t(),l("img",{key:0,src:e(i).photo,alt:e(i).full_name,class:"w-full h-full object-cover"},null,8,He)):(t(),l("div",Ke,p(e(i).full_name[0]),1))]),r("div",We,[r("p",Xe,p(e(oe)),1),r("h1",Ye,p(e(i).full_name),1),r("p",Ze,p(e(i).bio||"Книги автора в каталоге издательства «Никея»"),1),r("div",et,[r("span",tt,[h(f,{name:"lucide:book-open",size:"15"}),$(" "+p(e(i).books_count)+" "+p(ne(e(i).books_count)),1)]),e(i).bio?(t(),l("button",{key:0,type:"button",class:"inline-flex items-center gap-1.5 text-white/90 hover:text-white text-sm font-medium transition-colors",onClick:le},[a[2]||(a[2]=$(" Полное описание ",-1)),h(f,{name:"lucide:arrow-down",size:"16"})])):C("",!0)])])])]),r("section",st,[r("div",ot,[r("div",at,[a[4]||(a[4]=r("h2",{class:"font-bold text-nikea-dark text-[clamp(22px,2.4vw,32px)]"},"от этого автора",-1)),h(ie,{modelValue:e(m),"onUpdate:modelValue":a[0]||(a[0]=o=>P(m)?m.value=o:null),tabs:e(ee)},null,8,["modelValue","tabs"])]),e(m)==="books"?(t(),b(re,{key:0,modelValue:e(y),"onUpdate:modelValue":a[1]||(a[1]=o=>P(y)?y.value=o:null),options:te},null,8,["modelValue"])):C("",!0)]),e(m)==="diary"?(t(),l(_,{key:0},[h(ue,{entries:e(A)},null,8,["entries"]),r("div",lt,[h(N,{to:"/authors/diaries",class:"text-nikea-blue hover:underline font-medium"},{default:j(()=>[...a[5]||(a[5]=[$(" все записи → ",-1)])]),_:1})])],64)):e(m)==="questions"?(t(),l(_,{key:1},[e(R).length?(t(),l("div",nt,[(t(!0),l(_,null,w(e(R),o=>(t(),b(N,{key:o.id,to:`/community/${o.slug}`,class:"author-question"},{default:j(()=>[r("span",it,p(o.title),1),o.body?(t(),l("span",rt,p(o.body),1)):C("",!0),r("span",{class:z(["author-question__answers",{"author-question__answers--none":!o.answers_count}])},p(o.answers_count?"есть ответ":"ждёт ответа"),3)]),_:2},1032,["to"]))),128))])):(t(),l("p",ut," Вопросов пока нет — задайте первый. ")),r("div",ct,[h(N,{to:{path:"/community",query:{ask:e(i).slug}},class:"text-nikea-blue hover:underline font-medium"},{default:j(()=>[...a[6]||(a[6]=[$(" задать вопрос автору → ",-1)])]),_:1},8,["to"])])],64)):e(m)==="media"?(t(),l("div",dt,[(t(!0),l(_,null,w(e(E),o=>(t(),b(ce,{key:o.id,slug:o.slug,title:o.title,excerpt:o.excerpt,"cover-image":o.cover_image,"published-at":o.published_at,"content-type":o.content_type,href:`/blog/${o.slug}`,layout:"tile",fluid:""},null,8,["slug","title","excerpt","cover-image","published-at","content-type","href"]))),128))])):e(m)==="about"?(t(),l("div",pt,[$(p(e(i).bio)+" ",1),e(i).website?(t(),l("a",{key:0,href:e(i).website,target:"_blank",rel:"noopener noreferrer",class:"block mt-5 text-nikea-blue hover:underline"},p(e(i).website),9,mt)):C("",!0)])):e(m)==="books"?(t(),b(de,{key:4,books:e(V),"has-more":e(J),loading:e(U),onLoadMore:ae},null,8,["books","has-more","loading"])):(t(),l(_,{key:5},[e(F).length?(t(),l("div",_t,[(t(!0),l(_,null,w(e(F),o=>(t(),b(pe,{key:o.id,slug:o.id,title:o.title,"cover-image":o.cover_image,speaker:o.speaker,"scheduled-at":o.scheduled_at,"location-name":o.location_name,status:o.status,href:o.url,fluid:""},null,8,["slug","title","cover-image","speaker","scheduled-at","location-name","status","href"]))),128))])):e(S)?(t(),l("div",ft,[(t(),l(_,null,w(3,o=>r("div",{key:o,class:"bg-nikea-light rounded-card p-4"},[h(O,{class:"aspect-[3/4] w-full rounded-card mb-3"}),h(O,{class:"h-4 w-3/4"})])),64))])):(t(),l("div",ht," У автора пока нет мероприятий. "))],64))]),r("span",{ref_key:"bioRef",ref:Q,class:"block scroll-mt-[80px]","aria-hidden":"true"},null,512)]),h(me)],64)):(t(),l("div",gt,[...a[7]||(a[7]=[r("div",{class:"rounded-card bg-nikea-light animate-pulse",style:{height:"clamp(220px, 24vw, 300px)"}},null,-1)])]))])}}}
1),Ot=W(vt,[["__scopeId","data-v-4ac6fe13"]]);export{Ot 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.