import{L as c,U as h,V as g,Y as d,M as r,j as e,T as f,N as t,aW as u}from"./main-fine-mails-rush.js";import{$ as T}from"./useSocialTemplates-CALaJ7Id.js";import{M as y,p as n}from"./platformsLimitations-BpHu19Pc.js";import{p as C}from"./optionsHelper-C5kZneVU.js";import{T as M}from"./TemplateDocLink-DZ7n7_Zf.js";import{P as w}from"./PreviewDummy-B4JEjQhp.js";import{C as s}from"./index-CYdJlGpp.js";import{F as l}from"./index-DvXnyFAQ.js";import{S as b}from"./Input-DqvQHhaj.js";import{S as v}from"./index-_4I6v-bI.js";import{C as m,R as j}from"./row-DS7Wtzse.js";import"./index-CzEr1K2Q.js";import"./index-C4jBXdje.js";import"./EyeOutlined-BwUAwdeL.js";import"./EllipsisOutlined-Bu1rzp5h.js";import"./Dropdown-4_vtvAKA.js";import"./move-DlKUsITS.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(a,o){return this.cache.has(a)?this.cache.get(a):(this.cache.set(a,o),o)}};const{Title:S}=f;function U(){const{token:a}=c.useToken(),o=h(T),p=g(d),i=()=>{p(!0)};return r(j,{gutter:20,children:[e(m,{span:14,children:r(s,{size:"small",style:{backgroundColor:a.colorFillAlter},children:[r(S,{level:4,children:[" ",t("Telegram Template Settings")," "]}),e(M,{platform:"Telegram"}),r(s,{children:[e(s.Meta,{description:t("Custom message settings."),title:t("Custom Message")}),e("div",{children:e(y,{onChange:i,rows:5,style:{minWidth:200},value:o.telegram.content,wordCount:n.telegram.content.length})})]}),e(s,{style:{marginTop:10},children:r(l,{gap:20,justify:"space-between",children:[e(s.Meta,{description:t("Post styling and type setup."),title:t("Posting type")}),e("div",{children:e(b,{onChange:i,options:C,style:{minWidth:200},value:o.telegram.postingType})})]})}),e(s,{style:{marginTop:10},children:r(l,{gap:20,justify:"space-between",children:[e(s.Meta,{description:u(t("Telegram restricts the length of a post to %1$d characters. If you enable this option, the first %1$d characters of your personalized message will be shared; if not, the limit prevents the post from being shared"),n.telegram.content.length),title:t("Trim Message")}),e("div",{children:e(v,{checked:o.telegram.trimMessage,onChange:i})})]})})]})}),e(m,{span:10,children:e(w,{})})]})}export{U as default};
