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