2 lines
4.1 KiB
JavaScript
2 lines
4.1 KiB
JavaScript
import{M as u}from"./MainNavbar-CBx37KIe.js";import{i as f,Z as w,r as a,o as s,c as o,a as r,w as v,b as t,t as l,F as p,d as y,g as k,f as d}from"./app-DmJ8GS-7.js";import{F as C}from"./v3-rkPj73qv.js";import{C as b}from"./ClientScrollTimeline-zadrTdrA.js";import{C as L}from"./ClientFooterDown-D8UuGhzW.js";import{C as F}from"./ClientImageSlider-CnDaATj1.js";import{_ as M}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./SearchModal.vue_vue_type_style_index_0_scoped_a4fc4416_lang-CbsljUTZ.js";/* empty css */const S={name:"Show",components:{ClientImageSlider:F,ClientFooterDown:L,ClientScrollTimeline:b,Link:f,MainNavbar:u,FsLightbox:C,Head:w},data(){return{blocks:this.post.data.content}},props:{post:{type:Array}},methods:{textLimit(i,c){if(i.length>c){let n;return n=i.substring(0,c),n+"..."}return i}}},N=t("meta",{name:"description",content:"Your page description"},null,-1),T={class:"relative mx-auto mt-[67px] max-w-screen-xl px-4 py-10 md:flex md:flex-row md:py-10"},j={class:"max-w-4xl px-4 pt-6 lg:pt-10 pb-12 sm:px-6 lg:px-8 mx-auto"},B={class:"space-y-5 md:space-y-10"},V={class:"space-y-3"},H=t("a",{onclick:"history.back()",class:"inline-flex items-center gap-x-1.5 text-sm text-gray-600 decoration-2 hover:underline dark:text-blue-500",href:"#"},[t("svg",{class:"flex-shrink-0 size-4",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[t("path",{d:"m15 18-6-6 6-6"})]),k(" Назад ")],-1),A={class:"text-brand-primary mb-3 mt-2 text-3xl font-semibold tracking-tight dark:text-white lg:text-[40px] lg:leading-tight"},D={class:"flex space-x-3 text-gray-500"},E={class:"flex items-center gap-3"},I={class:"flex items-center space-x-2 text-sm"},$={class:"inline-flex items-center gap-1.5 py-1.5 px-3 rounded-md text-xs font-medium bg-[#E9F2FE] text-blue-600"},z={key:0},Y={class:"font-bold text-xl"},Z=["innerHTML"],q={key:2},G={key:3},J={class:"flex border rounded-lg px-4 py-2 items-center justify-between"},K={class:"flex items-center"},O=t("div",{class:"w-[35px] h-[35px] bg-black flex justify-center items-center rounded-xl mr-2"},[t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18.375 12.739l-7.693 7.693a4.5 4.5 0 01-6.364-6.364l10.94-10.94A3 3 0 1119.5 7.372L8.552 18.32m.009-.01l-.01.01m5.699-9.941l-7.81 7.81a1.5 1.5 0 002.112 2.13",stroke:"white"})])],-1),P=["href"],Q=t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5M16.5 12L12 16.5m0 0L7.5 12m4.5 4.5V3"})],-1),R=[Q];function U(i,c,n,W,X,tt){const m=a("Head"),h=a("ClientScrollTimeline"),x=a("MainNavbar"),_=a("ClientImageSlider"),g=a("ClientFooterDown");return s(),o(p,null,[r(m,null,{default:v(()=>[t("title",null,l(n.post.data.title),1),N]),_:1}),r(h),r(x,{sections:i.$page.props.navigation},null,8,["sections"]),t("div",T,[t("div",j,[t("div",null,[t("div",B,[t("div",V,[H,t("h1",A,l(n.post.data.title),1)]),t("div",D,[t("div",E,[t("div",null,[t("div",I,[t("p",$,l(n.post.data.category),1)])])])]),(s(!0),o(p,null,y(this.blocks,e=>(s(),o(p,{key:e.id},[e.type==="heading"?(s(),o("div",z,[t("h2",Y,l(e.data.content),1)])):d("",!0),e.type==="paragraph"?(s(),o("div",{key:1,class:"text-[16px] text-[#374151] dark:text-gray-200 leading-8 font-light",innerHTML:e.data.content},null,8,Z)):d("",!0),e.type==="image"?(s(),o("div",q,[r(_,{images:e.data.url},null,8,["images"])])):d("",!0),e.type==="files"?(s(),o("div",G,[t("div",J,[t("div",K,[O,t("div",null,l(e.data.title),1)]),t("a",{href:"/storage/"+e.data.path,download:"",type:"button",class:"w-[35px] h-[35px] flex bg-gray-100 rounded-lg justify-center items-center hover:bg-gray-200 duration-200"},R,8,P)])])):d("",!0)],64))),128))])])])]),r(g)],64)}const ct=M(S,[["render",U]]);export{ct as default};
|