import{L as C,ae as M,M as o,j as e,T as w,N as i,aW as S,af as b}from"./main-fine-mails-rush.js";import{$ as v}from"./useSocialTemplates-CALaJ7Id.js";import{u as j,a as L}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 l}from"./platformsLimitations-BpHu19Pc.js";import{p as $}from"./optionsHelper-C5kZneVU.js";import{s as D}from"./index-CFr-oYcN.js";import{R as F,C as p}from"./row-DS7Wtzse.js";import{C as a}from"./index-CYdJlGpp.js";import{F as m}from"./index-DvXnyFAQ.js";import{S as W}from"./Input-DqvQHhaj.js";import{S as N}from"./index-_4I6v-bI.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:R}=w;function ie(){const{token:r}=C.useToken(),[s,c]=M(v),{isTemplatesUpdateSuccessfully:h,updateSocialTemplates:d}=x(),[g,f]=D.useMessage();j(async()=>{const{status:t}=await d(s);h&&t&&L(g,t)},400,[s]);const n=(t,u)=>{c(y=>b(y,T=>{T.line[t]=u}))};return o(a,{style:{backgroundColor:r.colorFillAlter},children:[f,o(F,{gutter:20,children:[o(p,{span:14,children:[o(R,{level:4,children:[i("Line Template Settings")," "]}),e(A,{platform:"Line"}),o(a,{children:[e(a.Meta,{description:i("Custom message settings."),title:i("Custom Message")}),e("div",{children:e(P,{onChange:t=>n("content",t),rows:5,style:{minWidth:200},value:s.line.content,wordCount:l.line.content.length})})]}),e(a,{style:{marginTop:10},children:o(m,{gap:20,justify:"space-between",children:[e(a.Meta,{description:i("Post styling and type setup."),title:i("Posting type")}),e("div",{children:e(W,{onChange:t=>n("postingType",t),options:$,style:{minWidth:200},value:s.line.postingType})})]})}),e(a,{style:{marginTop:10},children:o(m,{gap:20,justify:"space-between",children:[e(a.Meta,{description:S(i("Line 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"),l.line.content.length),title:i("Trim Message")}),e("div",{children:e(N,{checked:s.line.trimMessage,onChange:t=>n("trimMessage",t)})})]})})]}),e(p,{span:10,children:e(k,{})})]})]})}export{ie as default};
