import{A as h,H as g,I as d,M as f,B as o,j as e,T as u,D as s,au as T}from"./main-crazy-owls-work.js";import{$ as y}from"./useSocialTemplates-Dcb3t5jQ.js";import{T as C,p as n}from"./TemplateDocLink-C5Om0X4f.js";import{M}from"./AiPromptConfigModal-BrZd34tw.js";import{p as v}from"./optionsHelper-B_8X5Dll.js";import{T as w}from"./TelegramPreview-C44W4UcU.js";import{C as r}from"./index-9x8aFyWV.js";import{F as l}from"./index-DLeF0Q26.js";import{S as b}from"./index-CV7ZrOqa.js";import{S as j}from"./index-Uj_IJMNj.js";import{C as m,R as S}from"./row-DAt4Bs0l.js";import"./AntIconWrapper-CV4oO3YH.js";import"./index-DbMzUBXN.js";import"./index-D66C40IV.js";import"./Input-DrlF5Epd.js";import"./EyeOutlined-BpDfhdMV.js";import"./PreviewCard-DAT49Z9x.js";import"./emotion-react.browser.esm-Y_LRzwGN.js";import"./index-B1hhaeCD.js";import"./EllipsisOutlined-7nGPDvd9.js";import"./Dropdown-D0863Mnh.js";import"./move-ULSkkuK6.js";import"./mediaQueryUtil-BSyvLspT.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(i,t){return this.cache.has(i)?this.cache.get(i):(this.cache.set(i,t),t)}};const{Title:p}=u;function Q(){const{token:i}=h.useToken(),t=g(y),c=d(f),a=()=>{c(!0)};return o(S,{gutter:20,children:[e(m,{span:14,children:o(r,{size:"small",style:{backgroundColor:i.colorFillAlter},children:[o(p,{level:4,children:[" ",s("Telegram Template Settings")," "]}),e(C,{platform:"Telegram"}),o(r,{children:[e(r.Meta,{description:s("Custom message settings."),title:s("Custom Message")}),e("div",{children:e(M,{onChange:a,rows:5,style:{minWidth:200},value:t.telegram.content,wordCount:n.telegram.content.length})})]}),e(r,{style:{marginTop:10},children:o(l,{gap:20,justify:"space-between",children:[e(r.Meta,{description:s("Post styling and type setup."),title:s("Posting type")}),e("div",{children:e(b,{onChange:a,options:v,style:{minWidth:200},value:t.telegram.postingType})})]})}),e(r,{style:{marginTop:10},children:o(l,{gap:20,justify:"space-between",children:[e(r.Meta,{description:T(s("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:s("Trim Message")}),e("div",{children:e(j,{checked:t.telegram.trimMessage,onChange:a})})]})})]})}),o(m,{span:10,children:[o(p,{level:5,children:[" ",s("Preview")," "]}),e(w,{message:t.telegram.content,type:t.telegram.postingType})]})]})}export{Q as default};
