2 lines
2.3 KiB
JavaScript
2 lines
2.3 KiB
JavaScript
import{i as m,o as n,c as a,b as p,g,t as d,l as u,d as B,e as h,k as f,F as x}from"./app-C722ecVx.js";import"./SearchModal-72Hbiqqz.js";import{_ as i}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{F as _,I as b,P as v,H as $,a as P,S as I,V as L,T as w,b as T,c as y,d as C}from"./PostItemBlock-BZ4FcbP2.js";import{C as E}from"./ClientImageSlider-DIxDD91b.js";const S={name:"EventBackButton",components:{Link:m},data(){return{}},methods:{textLimit(t,e){if(t.length>e){let o;return o=t.substring(0,e),o+"..."}return t},back(){this.$page.props.urlPrev!=="empty"&&this.$inertia.visit(this.$page.props.urlPrev)}},props:{title:{type:String}}};function F(t,e,o,l,c,s){return n(),a("a",{onClick:e[0]||(e[0]=u((...r)=>this.back&&this.back(...r),["prevent"])),class:"inline-flex items-center gap-x-1.5 text-sm text-gray-600 decoration-2 hover:underline dark:text-blue-500",href:"#"},[e[1]||(e[1]=p("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"},[p("path",{d:"m15 18-6-6 6-6"})],-1)),g(" "+d(o.title),1)])}const G=i(S,[["render",F]]),V={name:"TitleEvent",components:{Link:m},data(){return{}},methods:{textLimit(t,e){if(t.length>e){let o;return o=t.substring(0,e),o+"..."}return t}},props:{header:{type:String}}},H={class:"text-brand-primary text-2xl mb-3 mt-2 md:text-3xl font-semibold tracking-tight dark:text-white lg:text-[40px] lg:leading-tight"};function M(t,e,o,l,c,s){return n(),a("h1",H,d(o.header),1)}const J=i(V,[["render",M]]),j={name:"EventBuilder",components:{FileBlock:_,ImageBlock:b,ClientImageSlider:E,ParagraphBlock:v,HeadingBlock:$,PersonBlock:P,StepperBlock:I,VideoBlock:L,TabBlock:w,PostListBlock:T,PageItemBlock:y,PostItemBlock:C},methods:{getComponent(t){return{heading:"HeadingBlock",paragraph:"ParagraphBlock",images:"ClientImageSlider",image:"ImageBlock",files:"FileBlock",person:"PersonBlock",stepper:"StepperBlock",video:"VideoBlock",tabs:"TabBlock",postsList:"PostListBlock",postItem:"PostItemBlock",pageItem:"PageItemBlock"}[t]||null}},props:{blocks:{type:Object}}};function D(t,e,o,l,c,s){return n(!0),a(x,null,B(o.blocks,(r,k)=>(n(),h(f(s.getComponent(r.type)),{key:k,block:r},null,8,["block"]))),128)}const K=i(j,[["render",D]]);export{K as E,J as T,G as a};
|