import{A as h,H as d,I as g,M as f,B as i,j as t,T as w,D as r}from"./main-crazy-owls-work.js";import{$ as u}from"./useSocialTemplates-Dcb3t5jQ.js";import{M as T}from"./AiPromptConfigModal-BrZd34tw.js";import{T as y,p as n}from"./TemplateDocLink-C5Om0X4f.js";import{p as C}from"./optionsHelper-B_8X5Dll.js";import{T as M}from"./TwitterPreview-D78I6Y8z.js";import{C as s}from"./index-9x8aFyWV.js";import{F as p}from"./index-DLeF0Q26.js";import{S as v}from"./index-CV7ZrOqa.js";import{S as b}from"./index-Uj_IJMNj.js";import{C as l,R as j}from"./row-DAt4Bs0l.js";import"./index-DbMzUBXN.js";import"./index-D66C40IV.js";import"./Input-DrlF5Epd.js";import"./EyeOutlined-BpDfhdMV.js";import"./AntIconWrapper-CV4oO3YH.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(o,e){return this.cache.has(o)?this.cache.get(o):(this.cache.set(o,e),e)}};const{Title:m}=w;function K(){const{token:o}=h.useToken(),e=d(u),c=g(f),a=()=>{c(!0)};return i(j,{gutter:20,children:[t(l,{span:14,children:i(s,{size:"small",style:{backgroundColor:o.colorFillAlter},children:[i(m,{level:4,children:[" ",r("X (Twitter) Template Settings")," "]}),t(y,{platform:"X (Twitter)"}),i(s,{children:[t(s.Meta,{description:r("Custom message settings."),title:r("Custom Message")}),t("div",{children:t(T,{onChange:a,rows:5,style:{minWidth:200},value:e.twitter.content})})]}),t(s,{style:{marginTop:10},children:i(p,{gap:20,justify:"space-between",children:[t(s.Meta,{description:r("Post styling and type setup."),title:r("Posting type")}),t("div",{children:t(v,{onChange:a,options:C,style:{minWidth:200},value:e.twitter.postingType})})]})}),t(s,{style:{marginTop:10},children:i(p,{gap:20,justify:"space-between",children:[t(s.Meta,{description:`Twitter restricts the length of a tweet to ${n.twitter.description.length} characters. If you enable this option, the first ${n.twitter.description.length} characters of your personalized message will be shared; if not, the limit prevents the tweet from being shared.`,title:r("Trim Message")}),t("div",{children:t(b,{checked:e.twitter.trimMessage,onChange:a})})]})})]})}),i(l,{span:10,children:[i(m,{level:5,children:[" ",r("Preview")," "]}),t(M,{message:e.twitter.content,type:e.twitter.postingType})]})]})}export{K as default};
