2 lines
1.3 KiB
JavaScript
2 lines
1.3 KiB
JavaScript
import{i,o,c as m,t as s,r as h,e as u,w as x,b as r,j as g}from"./app-lT3z3TR3.js";import"./SearchModal-YI3bdWA9.js";import{_ as a}from"./_plugin-vue_export-helper-DlAUqK2U.js";const k={name:"PostTitle",components:{Link:i},data(){return{}},methods:{textLimit(t,e){if(t.length>e){let n;return n=t.substring(0,e),n+"..."}return t}},props:{header:{type:String}}},f={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 _(t,e,n,c,l,d){return o(),m("h1",f,s(n.header),1)}const v=a(k,[["render",_]]),w={name:"PostBackButton",components:{Link:i},data(){return{}},methods:{textLimit(t,e){if(t.length>e){let n;return n=t.substring(0,e),n+"..."}return t}},props:{title:{type:String},link:{type:String}}};function B(t,e,n,c,l,d){const p=h("Link");return o(),u(p,{href:t.route(this.link),class:"inline-flex items-center gap-x-1.5 text-sm text-gray-600 decoration-2 hover:underline dark:text-blue-500"},{default:x(()=>[e[0]||(e[0]=r("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"},[r("path",{d:"m15 18-6-6 6-6"})],-1)),g(" "+s(n.title),1)]),_:1},8,["href"])}const P=a(w,[["render",B]]);export{P,v as a};
|