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