2 lines
4.1 KiB
JavaScript
2 lines
4.1 KiB
JavaScript
import{M as g}from"./MainNavbar-CBx37KIe.js";import{i as u,Z as f,r,o as s,c as o,a as l,w,b as t,t as a,F as m,d as v,g as y,f as d}from"./app-DmJ8GS-7.js";import{F as k}from"./v3-rkPj73qv.js";import{C as b}from"./ClientScrollTimeline-zadrTdrA.js";import{C}from"./ClientFooterDown-D8UuGhzW.js";import{C as L}from"./ClientImageSlider-CnDaATj1.js";import{_ as F}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./SearchModal.vue_vue_type_style_index_0_scoped_a4fc4416_lang-CbsljUTZ.js";/* empty css */const M={name:"Show",components:{ClientImageSlider:L,ClientFooterDown:C,ClientScrollTimeline:b,Link:u,MainNavbar:g,FsLightbox:k,Head:f},data(){return{blocks:this.exhibition.data.content}},props:{exhibition:{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),S={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"})]),y(" Назад ")],-1),T={class:"text-brand-primary mb-3 mt-2 text-3xl font-semibold tracking-tight dark:text-white lg:text-[40px] lg:leading-tight"},A={class:"flex space-x-3 text-gray-500"},D={class:"flex items-center gap-3"},E={class:"flex items-center space-x-2 text-sm"},I={class:"inline-flex items-center gap-1.5 py-1.5 px-3 rounded-md text-xs font-medium bg-[#E9F2FE] text-blue-600"},$={key:0},z={class:"font-bold text-xl"},Y=["innerHTML"],Z={key:2},q={key:3},G={class:"flex border rounded-lg px-4 py-2 items-center justify-between"},J={class:"flex items-center"},K=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),O=["href"],P=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),Q=[P];function R(i,c,n,U,W,X){const p=r("Head"),h=r("MainNavbar"),x=r("ClientImageSlider"),_=r("ClientFooterDown");return s(),o(m,null,[l(p,null,{default:w(()=>[t("title",null,a(n.exhibition.data.title),1),N]),_:1}),l(h,{sections:i.$page.props.navigation},null,8,["sections"]),t("div",S,[t("div",j,[t("div",null,[t("div",B,[t("div",V,[H,t("h1",T,a(n.exhibition.data.title),1)]),t("div",A,[t("div",D,[t("div",null,[t("div",E,[t("p",I,a(n.exhibition.data.category),1)])])])]),(s(!0),o(m,null,v(this.blocks,e=>(s(),o(m,{key:e.id},[e.type==="heading"?(s(),o("div",$,[t("h2",z,a(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,Y)):d("",!0),e.type==="image"?(s(),o("div",Z,[l(x,{images:e.data.url},null,8,["images"])])):d("",!0),e.type==="files"?(s(),o("div",q,[t("div",G,[t("div",J,[K,t("div",null,a(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"},Q,8,O)])])):d("",!0)],64))),128))])])])]),l(_)],64)}const dt=F(M,[["render",R]]);export{dt as default};
|