import{r as s,c as e,o as a,b as n,F as t,d as l,w as m,O as r,P as o,Q as i,L as d,n as c}from"./vendor.js?ver=3.1.0";import{_ as p,I as _}from"./fc-bits-ui.js?ver=3.1.0";import{k as g}from"./vendor-element-plus.js?ver=3.1.0";const u={class:"fcrm_page_header_top_nav_wrapper"},f={class:"fcrm_page_header_top_nav"},v={class:"fcrm_page_header_top_nav_links"};const x=p({name:"SmsTabNav"},[["render",function(i,d,c,p,_,g){const x=s("router-link");return a(),e("div",u,[n("div",f,[n("ul",v,[n("li",null,[l(x,{to:"/sms/campaigns",class:"fcrm_top_nav_link"},{default:m(()=>[r(o(i.$t("SMS Campaign")),1)],void 0),_:1})]),n("li",null,[l(x,{to:"/sms/all-sms",class:"fcrm_top_nav_link"},{default:m(()=>[r(o(i.$t("SMS Activities")),1)],void 0),_:1})])])]),t(i.$slots,"actions")])}]]),h={class:"fcrm_sms_message_cell"},S={key:0,class:"fcrm_sms_message_toggle"};const k=p({name:"SmsMessageCell",components:{Icons:_},props:{message:{type:String,default:""},maxLen:{type:Number,default:160}},data:()=>({expanded:!1}),computed:{displayedText(){return this.message?this.expanded||this.message.length<=this.maxLen?this.message:String(this.message).trim().slice(0,this.maxLen)+"…":""}}},[["render",function(t,p,_,u,f,v){const x=s("Icons"),k=g;return a(),e("div",h,[_.message?(a(),e(i,{key:1},[n("span",{class:c({fcrm_sms_message_cell_full:f.expanded})},o(v.displayedText),3),_.message.length>_.maxLen?(a(),e("span",S,[l(k,{link:"",onClick:p[0]||(p[0]=s=>f.expanded=!f.expanded)},{default:m(()=>[r(o(f.expanded?t.$t("See less"):t.$t("See more"))+" ",1),l(x,{"icon-name":f.expanded?"arrow-up":"arrow-down"},null,8,["icon-name"])],void 0),_:1})])):d("",!0)],64)):(a(),e(i,{key:0},[r("—")],64))])}]]);export{k as S,x as a};
