try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="dfe1027a-83d6-47e3-9bee-6368a63bc83e",e._sentryDebugIdIdentifier="sentry-dbid-dfe1027a-83d6-47e3-9bee-6368a63bc83e")}catch(f){}import{b as e}from"./index.73b14df2.js";import{o as t,E as s,U as d,r,Y as a,Q as i}from"./vendor.4f012c28.js";const o={props:{text:{type:String},limit:{type:Number,default:55},limitByChar:{type:Boolean,default:!1}},data:()=>({isTextAdjusted:!0}),computed:{textAdjusted(){return this.isTextAdjusted?this.getAdjustedText(this.text):this.text}},methods:{getAdjustedText(e){if(!e)return"";const t=this.limitByChar?"":" ";let s;const{limit:d}=this;return s=e.trim().split(t),s.length>d+10&&(s.splice(d,s.length,"..."),e=s.join(t)),e},onClickReadMore(){this.isTextAdjusted=!1}}},n={class:"read-more"},l={key:0,class:"read-more-text"},u={key:1,class:"read-more-text read-more-text-empty"};var c=e(o,[["render",function(e,o,c,f,m,x){return t(),s("div",n,[x.textAdjusted?(t(),s("span",l,d(x.textAdjusted),1)):(t(),s("span",u,[r(e.$slots,"empty")])),o[2]||(o[2]=a("  ",-1)),m.isTextAdjusted&&c.text&&x.textAdjusted.length!==c.text.length?(t(),s("a",{key:2,class:"accent read-more-anchor",onClickPassive:o[0]||(o[0]=(...e)=>x.onClickReadMore&&x.onClickReadMore(...e))},[r(e.$slots,"readMore",{},(()=>[o[1]||(o[1]=a("read more",-1))]))],32)):i("",!0)])}]]);export{c as R}; //# sourceMappingURL=ReadMore.b7126193.js.map