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