import{A as u,H as y,I as T,M as f,D as t,B as s,j as e,T as v}from"./main-crazy-owls-work.js";import{$ as w}from"./useSocialTemplates-Dcb3t5jQ.js";import{T as C,p as c}from"./TemplateDocLink-C5Om0X4f.js";import{M as O}from"./AiPromptConfigModal-BrZd34tw.js";import{T as b}from"./TiktokPreview-CrJnkWdj.js";import{C as i}from"./index-9x8aFyWV.js";import{F as n}from"./index-DLeF0Q26.js";import{S as p}from"./index-CV7ZrOqa.js";import{S as l}from"./index-Uj_IJMNj.js";import{C as h,R as M}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(a,o){return this.cache.has(a)?this.cache.get(a):(this.cache.set(a,o),o)}};const{Title:d}=v;function G(){const{token:a}=u.useToken(),o=y(w),m=T(f),r=()=>{m(!0)},g=[{label:t("Only Message"),value:"onlyMessage"}],k=[{label:t("PUBLIC TO EVERYONE"),value:"PUBLIC_TO_EVERYONE"},{label:t("MUTUAL FOLLOW FRIENDS"),value:"MUTUAL_FOLLOW_FRIENDS"},{label:t("FOLLOWER OF CREATOR"),value:"FOLLOWER_OF_CREATOR"},{label:t("SELF ONLY"),value:"SELF_ONLY"}];return s(M,{gutter:20,children:[e(h,{span:14,children:s(i,{size:"small",style:{backgroundColor:a.colorFillAlter},children:[s(d,{level:4,children:[" ",t("Tiktok Template Settings")," "]}),e(C,{platform:"Tiktok"}),s(i,{children:[e(i.Meta,{description:t("Custom message settings."),title:t("Custom Message")}),e("div",{children:e(O,{onChange:r,rows:5,style:{minWidth:200},value:o.tiktok.content,wordCount:c.tiktok.description.length})})]}),e(i,{style:{marginTop:10},children:s(n,{gap:20,justify:"space-between",children:[e(i.Meta,{description:t("Post styling and type setup."),title:t("Posting type")}),e("div",{children:e(p,{onChange:r,options:g,style:{minWidth:200},value:o.tiktok.postingType})})]})}),e(i,{style:{marginTop:10},children:s(n,{gap:20,justify:"space-between",children:[e(i.Meta,{description:t("Who can see your post"),title:t("Privacy settings")}),e("div",{children:e(p,{onChange:r,options:k,style:{minWidth:200},value:o.tiktok.privacyLevel})})]})}),e(i,{style:{marginTop:10},children:s(n,{gap:20,justify:"space-between",children:[e(i.Meta,{description:t("Turn this on to let viewers share feedback or engage with your post through comments."),title:t("Allow comments")}),e("div",{children:e(l,{checked:o.tiktok.allowComment,onChange:r})})]})}),e(i,{style:{marginTop:10},children:s(n,{gap:20,justify:"space-between",children:[e(i.Meta,{description:t("Enable this to let others create side-by-side reaction or collaboration videos with your post"),title:t("Allow Duet")}),e("div",{children:e(l,{checked:o.tiktok.duet,onChange:r})})]})}),e(i,{style:{marginTop:10},children:s(n,{gap:20,justify:"space-between",children:[e(i.Meta,{description:t("Allow others to clip up to 5 seconds of your post for their own content"),title:t("Allow Stitch")}),e("div",{children:e(l,{checked:o.tiktok.stitch,onChange:r})})]})}),e(i,{style:{marginTop:10},children:s(n,{gap:20,justify:"space-between",children:[e(i.Meta,{description:`Tiktok restricts the length of a post to ${c.tiktok.description.length} characters. If you enable this option, the first ${c.tiktok.description.length} characters of your personalized message will be shared; if not, the limit prevents the post from being shared.`,title:t("Trim Message")}),e("div",{children:e(l,{checked:o.tiktok.trimMessage,onChange:r})})]})})]})}),s(h,{span:10,children:[s(d,{level:5,children:[" ",t("Preview")," "]}),e(b,{message:o.tiktok.content,type:o.tiktok.postingType})]})]})}export{G as default};
