import{aQ as s,W as e,X as a,Z as n,ab as t,a5 as l,a9 as m,aa as r,_ as o,J as i,a0 as d,a8 as c}from"./vendor.js?ver=3.1.10";import{_ as p,I as _}from"./fc-bits-ui.js?ver=3.1.10";import{k as g}from"./vendor-element-plus.js?ver=3.1.10";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 e(),a("div",u,[n("div",f,[n("ul",v,[n("li",null,[t(x,{to:"/sms/campaigns",class:"fcrm_top_nav_link"},{default:l(()=>[m(r(i.$t("SMS Campaign")),1)],void 0),_:1})]),n("li",null,[t(x,{to:"/sms/all-sms",class:"fcrm_top_nav_link"},{default:l(()=>[m(r(i.$t("SMS Activities")),1)],void 0),_:1})])])]),o(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(o,p,_,u,f,v){const x=s("Icons"),k=g;return e(),a("div",h,[_.message?(e(),a(i,{key:1},[n("span",{class:d({fcrm_sms_message_cell_full:f.expanded})},r(v.displayedText),3),_.message.length>_.maxLen?(e(),a("span",S,[t(k,{link:"",onClick:p[0]||(p[0]=s=>f.expanded=!f.expanded)},{default:l(()=>[m(r(f.expanded?o.$t("See less"):o.$t("See more"))+" ",1),t(x,{"icon-name":f.expanded?"arrow-up":"arrow-down"},null,8,["icon-name"])],void 0),_:1})])):c("",!0)],64)):(e(),a(i,{key:0},[m("—")],64))])}]]);export{k as S,x as a};
