1var R=(p,e,f)=>new Promise((m,l)=>{var d=h=>{try{s(f.next(h))}catch(_){l(_)}},c=h=>{try{s(f.throw(h))}catch(_){l(_)}},s=h=>h.done?m(h.value):Promise.resolve(h.value).then(d,c);s((f=f.apply(p,e)).next())});import{d as L,c as n,a as u,e as a,g as y,t as T,k as B,n as G,F as $,s as E,h as o,f as v,q as J,v as X,w as Q,l as V,r as W,x as j,o as Y,b as g,u as Z,i as ee}from"../chunks/chunk-XxbXtNwf.js";import{D as F,P as H,a as I,i as te,b as ae,c as oe,d as re}from"../chunks/chunk-CiXZas8y.js";import{A as se,b as le}from"../chunks/chunk-ftvJM5OQ.js";import{H as ie}from"../chunks/chunk-D8HtBIwb.js";import{C as ne}from"../chunks/chunk-_HNsnov7.js";import{P as q}from"../chunks/chunk-C9zkd5zQ.js";import{p as de}from"../chunks/chunk-C7rNQ10P.js";import{c as ue}from"../chunks/chunk-DsWp1Iis.js";import{T as pe}from"../chunks/chunk-WuZg3YqD.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"../chunks/chunk-BwgKl_e-.js";/* empty css *//* empty css */import"../chunks/chunk-B72EJHIY.js";/* empty css *//* empty css */import"../chunks/chunk-DUWAqURw.js";/* empty css *//* empty css *//* empty css */import"../chunks/chunk-DA_-Thph.js";/* empty css */import"../chunks/chunk-DBLiJq03.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */const ce={class:"related-posts py-16 md:py-20 bg-gray-50 dark:bg-gray-900"},ge={class:"container-xl mx-auto px-4"},fe={class:"flex items-center justify-between mb-10"},ye={class:"text-2xl md:text-3xl font-bold text-gray-900 dark:text-white"},he={key:0,class:"mt-2 text-gray-500 dark:text-gray-400"},me=["href"],ve={class:"text-center mt-10 sm:hidden"},ke=["href"],be=L({__name:"RelatedPosts",props:{posts:{},currentType:{},title:{default:"ЧиÑайÑе Ñакже"},columns:{default:3}},setup(p){const e=p,f={2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 md:grid-cols-2 lg:grid-cols-4"},m=n(()=>{var d;return(d=e.currentType)!=null&&d.name_plural?"ÐÑе ".concat(e.currentType.name_plural.toLowerCase()):"ÐÑе маÑеÑиалÑ"}),l=n(()=>e.currentType?"/blog/".concat(e.currentType.slug):"/blog");return(d,c)=>(o(),u("section",ce,[a("div",ge,[a("div",fe,[a("div",null,[a("h2",ye,T(d.title),1),d.currentType?(o(),u("p",he," ÐÑÑ Ð¼Ð°ÑеÑÐ¸Ð°Ð»Ñ Ð¸Ð· Ñаздела «"+T(d.currentType.name_plural||d.currentType.name)+"» ",1)):y("v-if",!0)]),a("a",{href:l.value,class:"hidden sm:inline-flex items-center gap-2 px-6 py-3.5 rounded-xl font-semibold text-base transition-all duration-200 no-underline bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700 whitespace-nowrap"},[B(T(m.value)+" ",1),c[0]||(c[0]=a("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M17 8l4 4m0 0l-4 4m4-4H3"})],-1))],8,me)]),a("div",{class:G(["grid gap-6 md:gap-8",f[d.columns]])},[(o(!0),u($,null,E(d.posts,s=>(o(),v(q,{key:s.id,post:s,variant:"compact","show-type":!d.currentType,"show-author":!1},null,8,["post","show-type"]))),128))],2),a("div",ve,[a("a",{href:l.value,class:"inline-flex items-center gap-2 px-6 py-3.5 rounded-xl font-semibold text-base transition-all duration-200 no-underline bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700"},[B(T(m.value)+" ",1),c[1]||(c[1]=a("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M17 8l4 4m0 0l-4 4m4-4H3"})],-1))],8,ke)])])]))}}),xe={class:"post-detail-page min-h-screen flex flex-col"},Te={class:"flex-1"},_e={key:0,class:"flex flex-wrap gap-2 mt-8"},we=["href"],Se={key:2,class:"py-12 md:py-16"},Pe={class:"container-xl px-4"},De={class:"max-w-4xl mx-auto"},$e={key:0,class:"flex flex-wrap gap-2 mt-8"},Ce=["href"],ze=L({__name:"PostDetailPage",props:{post:{},blocksData:{},relatedPosts:{},header:{},headerKey:{},headerMenus:{},footer:{},footerKey:{},footerMenus:{}},setup(p){const e=p,f=n(()=>!e.post.use_custom_hero),m=n(()=>"post-hero-".concat(e.post.id)),l=n(()=>{var t;return((t=e.post.type)==null?void 0:t.name)||void 0}),d=n(()=>
1{if(e.post.excerpt)return'<span style="position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;">TL;DR: </span><span style="font-weight: 600; color: #9333EA; margin-right: 0.5em;">ÐÑаÑко:</span>'.concat(e.post.excerpt)}),c=n(()=>({id:m.value,status:e.post.status,show_breadcrumbs:!0,breadcrumb_title:"РеÑепÑÑ Ð Ð¾ÑÑа / ".concat(e.post.title),overline:l.value,headline:e.post.title,headline_tag:"h1",subheadline:d.value,subheadline_tag:"p",visual_style:"auto",size:"auto",column_proportions:"full-width",container_width:"xl",right_content:"none",background_type:"transparent"})),s=n(()=>e.post.blocks||[]),h=n(()=>(e.post.blocks||[]).filter(i=>i.collection==="block_flexible_content").map(i=>{var P;return(P=e.blocksData)==null?void 0:P[i.item]}).filter(Boolean)),_=n(()=>{const t=[];for(const i of h.value)if(i!=null&&i.content){const k=de(i.content);t.push(...k)}return t}),U=n(()=>{let t=0;for(const i of h.value)if(i!=null&&i.content){const k=ue(i.content);t+=k.minutes}return t}),M=n(()=>s.value.length>0&&(_.value.length>0||U.value>0||e.post.author)),r=n(()=>e.post.author||null),w=n(()=>r.value?"".concat(r.value.first_name," ").concat(r.value.last_name).trim():""),S=n(()=>{var i;if(!((i=r.value)!=null&&i.avatar))return null;const t=typeof r.value.avatar=="string"?r.value.avatar:r.value.avatar.id;return"".concat(se,"/assets/").concat(t,"?width=80&height=80&fit=cover&quality=80")}),C=n(()=>{if(r.value)return{fullName:w.value,title:r.value.title,avatarUrl:S.value}}),z=n(()=>le({headline:e.post.title,description:e.post.excerpt,author:r.value?{name:w.value,jobTitle:r.value.title}:void 0,datePublished:e.post.published_at||e.post.date_created,dateModified:e.post.date_updated,pageUrl:"https://flysk.ru/blog/".concat(e.post.slug)})),A=J();return X(z,t=>{t&&A({Head:W("script",{type:"application/ld+json",innerHTML:JSON.stringify(t)})})},{immediate:!0}),(t,i)=>{var k,P;return o(),u("div",xe,[t.headerKey?(o(),v(F,{key:0,"header-key":t.headerKey,header:t.header,menus:t.headerMenus},null,8,["header-key","header","menus"])):y("v-if",!0),a("main",Te,[f.value?(o(),v(ie,{key:0,id:m.value,"page-id":t.post.id,"block-data":c.value},null,8,["id","page-id","block-data"])):y("v-if",!0),i[0]||(i[0]=a("div",{id:"mobile-toc-target"},null,-1)),s.value.length>0&&M.value?(o(),v(ne,{key:1,"toc-items":_.value,"reading-time":U.value,"cta-block-id":(k=t.blocksData)==null?void 0:k.sidebarCtaId,"blocks-data":t.blocksData,author:C.value,"date-published":t.post.published_at||t.post.date_created,"date-modified":t.post.date_updated},{default:Q(()=>{var b;return[V(H,{blocks:s.value,"blocks-data":t.blocksData,"page-id":t.post.id,"cta-no-container":!0},null,8,["blocks","blocks-data","page-id"]),(b=t.post.tags)!=null&&b.length?(o(),u("div",_e,[(o(!0),u($,null,E(t.post.tags,x=>{var K;return o(),u($,{key:(K=x.tags_id)==null?void 0:K.id},[x.tags_id?(o(),u("a",{key:0,href:"/blog/tag/".concat(x.tags_id.slug),class:"px-3 py-1.5 text-sm font-medium rounded-lg bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700 hover:text-gray-900 dark:hover:text-gray-100 transition-colors"},T(x.tags_id.name),9,we)):y("v-if",!0)],64)}),128))])):y("v-if",!0)]}),_:1},8,["toc-items","reading-time","cta-block-id","blocks-data","author","date-published","date-modified"])):s.value.length>0?(o(),u("div",Se,[a("div",Pe,[a("div",De,[V(H,{blocks:s.value,"blocks-data":t.blocksData,"page-id":t.post.id,"cta-no-container":!0},null,8,["blocks","blocks-data","page-id"]),(P=t.post.tags)!=null&&P.length?(o(),u("div",$e,[(o(!0),u($,null,E(t.post.tags,b=>{var x;return o(),u($,{key:(x=b.tags_id)==null?void 0:x.id},[b.tags_id?(o(),u("a",{key:0,href:"/blog/tag/".concat(b.tags_id.slug),class:"px-3 py-1.5 text-sm font-medium rounded-lg bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700 hover:text-gray-900 dark:hover:text-gray-100 transition-colors"},T(b.tags_id.name),9,Ce)):y("v-if",!0)],64)}),128))])):y("v-if",!0)])])])):y("v-if",!0),t.relatedPosts.length>0?(o(),v(be,{key:3,posts:t.relatedPosts,"current-type":t.post.type},null,8,["posts","current-type"])):y("v-if",!0)]),t.footerKey?(o(),v(I,{key:1,"footer-key":t.footerKey,footer:t.footer,menus:t.footerMenus,"blocks-data":t.blocksData}
1,null,8,["footer-key","footer","menus","blocks-data"])):y("v-if",!0)])}}}),Ae={class:"flex-1"},Ue={class:"pt-16 sm:pt-20"},Me={class:"container-xl"},Be={class:"flex items-center gap-2 text-sm text-gray-500 dark:text-gray-400 mb-4"},Ee={class:"text-gray-900 dark:text-white"},je={class:"text-3xl md:text-4xl lg:text-5xl font-bold text-gray-900 dark:text-white mb-3"},Le={key:0,class:"text-lg text-gray-600 dark:text-gray-300 max-w-2xl"},Ke={class:"py-12 md:py-16"},Re={class:"container-xl"},Ve={key:1,class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6"},He={key:2,class:"text-center py-12"},Oe={class:"text-gray-500 dark:text-gray-400"},Ne={key:3,class:"flex justify-center pt-10"},Fe=["disabled"],Ie=L({__name:"+Page",setup(p){const e=Z(),f=n(()=>e.pageType==="type-listing"),m=n(()=>e.pageType==="post-detail"),l=n(()=>e),d=j([]),c=j(!1),s=j(1);Y(()=>{f.value&&(s.value=l.value.page||1)});const h=n(()=>f.value?[...l.value.posts||[],...d.value]:[]),_=n(()=>f.value?h.value.length<(l.value.total||0):!1);function U(){return R(this,null,function*(){var w;if(c.value||!f.value)return;c.value=!0;const M=s.value+1,r=(w=l.value.currentType)==null?void 0:w.slug;if(!r){c.value=!1;return}try{const S="https://cms.flysk.ru",C=l.value.limit||12,z=s.value*C,A=new URLSearchParams({"filter[status][_eq]":"published","filter[type][slug][_eq]":r,"sort[]":"-published_at",limit:String(C),offset:String(z),fields:["id","slug","status","title","excerpt","cover.id","cover.filename_download","cover.type","cover.width","cover.height","published_at","is_featured","featured_rank","date_created","type.id","type.key","type.name","type.slug","type.icon","type.color","author.id","author.first_name","author.last_name","author.avatar.id","author.avatar.filename_download","tags.tags_id.id","tags.tags_id.name","tags.tags_id.slug"].join(",")}),i=yield(yield fetch("".concat(S,"/items/posts?").concat(A))).json();i.data&&i.data.length>0&&(d.value=[...d.value,...i.data],s.value=M)}catch(S){console.error("[TypePage] Error loading more posts:",S)}finally{c.value=!1}})}return(M,r)=>{var w,S,C,z,A,t,i,k,P,b;return f.value?(o(),u("div",{key:((w=l.value.currentType)==null?void 0:w.slug)||"all",class:"blog-type-page min-h-screen flex flex-col"},[g(e).headerKey?(o(),v(F,{key:0,"header-key":g(e).headerKey,header:g(e).header,menus:g(e).headerMenus},null,8,["header-key","header","menus"])):y("v-if",!0),a("main",Ae,[a("section",Ue,[a("div",Me,[a("nav",Be,[r[0]||(r[0]=a("a",{href:"/",class:"hover:text-gray-900 dark:hover:text-white transition-colors"},"ÐлавнаÑ",-1)),r[1]||(r[1]=a("span",null,"/",-1)),r[2]||(r[2]=a("a",{href:"/blog",class:"hover:text-gray-900 dark:hover:text-white transition-colors"},"РеÑепÑÑ Ð Ð¾ÑÑа",-1)),r[3]||(r[3]=a("span",null,"/",-1)),a("span",Ee,T(((S=l.value.currentType)==null?void 0:S.name_plural)||((C=l.value.currentType)==null?void 0:C.name)),1)]),a("h1",je,T(((z=l.value.currentType)==null?void 0:z.name_plural)||((A=l.value.currentType)==null?void 0:A.name)||"ÐаÑеÑиалÑ"),1),(t=l.value.currentType)!=null&&t.description?(o(),u("p",Le,T(l.value.currentType.description),1)):y("v-if",!0)])]),a("section",Ke,[a("div",Re,[((i=l.value.postTypes)==null?void 0:i.length)>0?(o(),v(pe,{key:0,types:l.value.postTypes,"current-slug":(k=l.value.currentType)==null?void 0:k.slug,class:"mb-10"},null,8,["types","current-slug"])):y("v-if",!0),h.value.length>0?(o(),u("div",Ve,[(o(!0),u($,null,E(h.value,x=>(o(),v(q,{key:x.id,post:x,"show-type":!1,"show-author":!1},null,8,["post"]))),128))])):(o(),u("div",He,[a("p",Oe,' ÐÐµÑ Ð¼Ð°ÑеÑиалов Ñипа "'+T((P=l.value.currentType)==null?void 0:P.name)+'" ',1)])),_.value?(o(),u("div",Ne,[a("button",{type:"button",disabled:c.value,class:"inline-flex items-center gap-2 px-6 py-3.5 rounded-xl font-semibold text-base transition-all duration-200 bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700 disabled:opacity-50 disabled:cursor-not-allowed",onClick:U},[c.value?(o(),u($,{key:0},[r[4]||(r[4]=a("svg",{class:"w-5 h-5 animate-spin",fill:"none",viewBox:"0 0 24 24"},[a("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),a("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)),r[5]||(r[5]=B(" ÐагÑÑзка... ",-1))],64)):(o(),u($,{key:1},[r[6]||(r[6]=B(" ÐагÑÑзиÑÑ ÐµÑÑ ",-1)),r[7]||(r[7]=a("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"})],-1))],64))],8,Fe)])):y("v-if",!0)])])]),g(e).footerKey?(o(),v(I,{key:1,"footer-key":g(e).footerKey,footer:g(e).footer,menus:g(e).footerMenus},null,8,["footer-key","footer","menus"])):y("v-if",!0)])):m.value?(o(),v(ze,{key:(b=g(e).post)==null?void 0:b.slug,post:g(e).post,"blocks-data":g(e).blocksData,"related-posts":g(e).relatedPosts||[],header:g(e).header,"header-key":g(e).headerKey,"header-menus":g(e).headerMenus,footer:g(e).footer,"footer-key":g(e).footerKey,"footer-menus":g(e).footerMenus},null,8,["post","blocks-data","related-posts","header","header-key","header-menus","footer","footer-key","footer-menus"])):y("v-if",!0)}}}),qe=Object.freeze(Object.defineProperty({__proto__:null,default:Ie},Symbol.toStringTag,{value:"Module"})),O=" | РеÑепÑÑ Ð Ð¾ÑÑа";function D(p){return p?p.includes("РеÑепÑÑ Ð Ð¾ÑÑа")?p:"".concat(p).concat(O):"ÐÑÑнал".concat(O)}function N(p){var e;return(e=p.seo)!=null&&e.title?D(p.seo.title):D(p.name_plural||p.name)}function Ge(p){var f,m,l,d,c;const e=p.data;if(!e)return D("ÐÑÑнал");if(e.pageType==="blog-list"&&"blocksData"in e){const s=(m=(f=e.blocksData)==null?void 0:f.pageContext)==null?void 0:m.currentType;return s?N(s):(d=(l=e.page)==null?void 0:l.seo)!=null&&d.title?D(e.page.seo.title):"ÐÑÑнал РеÑепÑÑ Ð Ð¾ÑÑа"}if(e.pageType==="type-listing"){const s=e;return s.currentType?N(s.currentType):"ÐÑÑнал РеÑепÑÑ Ð Ð¾ÑÑа"}if(e.pageType==="post-detail"){const s=e;return s.post?(c=s.post.seo)!=null&&c.title?D(s.post.seo.title):D(s.post.title):D("ÐаÑеÑиал")}return D("ÐÑÑнал")}const Je=Object.freeze(Object.defineProperty({__proto__:null,default:Ge},Symbol.toStringTag,{value:"Module"})),Wt={hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},onRenderClient:{type:"standard",definedAtData:{filePathToShowToUser:"vike-vue/__internal/integration/onRenderClient",fileExportPathToShowToUser:[]},valueSerialized:{type:"pointer-import",value:ee}},onPageTransitionStart:{type:"standard",definedAtData:{filePathToShowToUser:"/pages/+onPageTransitionStart.ts",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:re}},onPageTransitionEnd:{type:"standard",definedAtData:{filePathToShowToUser:"/pages/+onPageTransitionEnd.ts",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:oe}},Page:{type:"standard",definedAtData:{filePathToShowToUser:"/pages/blog/@slug/+Page.vue",f
1ileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:qe}},hydrationCanBeAborted:{type:"standard",definedAtData:{filePathToShowToUser:"vike-vue/config",fileExportPathToShowToUser:["default","hydrationCanBeAborted"]},valueSerialized:{type:"js-serialized",value:!0}},prefetchStaticAssets:{type:"standard",definedAtData:{filePathToShowToUser:"/pages/+config.ts",fileExportPathToShowToUser:["default","prefetchStaticAssets"]},valueSerialized:{type:"js-serialized",value:"viewport"}},Layout:{type:"cumulative",definedAtData:[{filePathToShowToUser:"/pages/+Layout.vue",fileExportPathToShowToUser:[]}],valueSerialized:[{type:"plus-file",exportValues:ae}]},title:{type:"standard",definedAtData:{filePathToShowToUser:"/pages/blog/@slug/+title.ts",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:Je}},lang:{type:"standard",definedAtData:{filePathToShowToUser:"/pages/+config.ts",fileExportPathToShowToUser:["default","lang"]},valueSerialized:{type:"js-serialized",value:"ru"}},onCreateApp:{type:"cumulative",definedAtData:[{filePathToShowToUser:"/pages/+onCreateApp.ts",fileExportPathToShowToUser:[]}],valueSerialized:[{type:"plus-file",exportValues:te}]}};export{Wt as configValuesSerialized};
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.