import{L as b,ae as M,M as i,j as e,T as C,N as a,af as w}from"./main-fine-mails-rush.js";import{$ as S}from"./useSocialTemplates-CALaJ7Id.js";import{u as v,a as j}from"./useMemoDebounce-Bwtl1ukJ.js";import{u as x}from"./useUpdateSocialTemplates-CGdlKwjv.js";import{P as k}from"./PreviewDummy-B4JEjQhp.js";import{T as A}from"./TemplateDocLink-DZ7n7_Zf.js";import{M as P,p as m}from"./platformsLimitations-BpHu19Pc.js";import{p as $}from"./optionsHelper-C5kZneVU.js";import{s as D}from"./index-CFr-oYcN.js";import{C as o}from"./index-CYdJlGpp.js";import{F as n}from"./index-DvXnyFAQ.js";import{S as F}from"./Input-DqvQHhaj.js";import{S as L}from"./index-_4I6v-bI.js";import{C as p,R as z}from"./row-DS7Wtzse.js";import"./index-CzEr1K2Q.js";import"./index-C4jBXdje.js";import"./EyeOutlined-BwUAwdeL.js";import"./context-BHbH7wco.js";import"./EllipsisOutlined-Bu1rzp5h.js";import"./Dropdown-4_vtvAKA.js";import"./move-DlKUsITS.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(r,s){return this.cache.has(r)?this.cache.get(r):(this.cache.set(r,s),s)}};const{Title:N}=C;function oe(){const{token:r}=b.useToken(),[s,c]=M(S),{isTemplatesUpdateSuccessfully:h,updateSocialTemplates:u}=x(),[d,g]=D.useMessage();v(async()=>{const{status:t}=await u(s);h&&t&&j(d,t)},400,[s]);const l=(t,f)=>{c(T=>w(T,y=>{y.tumblr[t]=f}))};return i(z,{gutter:20,children:[g,e(p,{span:14,children:i(o,{size:"small",style:{backgroundColor:r.colorFillAlter},children:[i(N,{level:4,children:[" ",a("Tumblr Template Settings")]}),e(A,{platform:"Tumblr"}),i(o,{children:[e(o.Meta,{description:a("Custom message settings."),title:a("Custom Message")}),e("div",{children:e(P,{onChange:t=>l("content",t),rows:5,style:{minWidth:200},value:s.tumblr.content})})]}),e(o,{style:{marginTop:10},children:i(n,{gap:20,justify:"space-between",children:[e(o.Meta,{description:a("Post styling and type setup."),title:a("Posting type")}),e("div",{children:e(F,{onChange:t=>l("postingType",t),options:$,style:{minWidth:200},value:s.tumblr.postingType})})]})}),e(o,{style:{marginTop:10},children:i(n,{gap:20,justify:"space-between",children:[e(o.Meta,{description:`Tumblr restricts the length of a tweet to ${m.tumblr.description.length} characters. If you enable this option, the first ${m.tumblr.description.length} characters of your personalized message will be shared; if not, the limit prevents the tweet from being shared.`,title:a("Trim Message")}),e("div",{children:e(L,{checked:s.tumblr.trimMessage,onChange:t=>l("trimMessage",t)})})]})})]})}),e(p,{span:10,children:e(k,{})})]})}export{oe as default};
