import{A as u,H as f,I as y,M as C,D as t,B as r,j as e,T}from"./main-crazy-owls-work.js";import{$ as P}from"./useSocialTemplates-Dcb3t5jQ.js";import{M as l}from"./AiPromptConfigModal-BrZd34tw.js";import{T as v,p}from"./TemplateDocLink-C5Om0X4f.js";import{P as M}from"./PinterestPreview-3pCr3dFc.js";import{C as i}from"./index-9x8aFyWV.js";import{F as n}from"./index-DLeF0Q26.js";import{S as b}from"./index-CV7ZrOqa.js";import{S as m}from"./index-Uj_IJMNj.js";import{C as c,R as w}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:h}=T;function J(){const{token:o}=u.useToken(),s=f(P),d=y(C),a=()=>{d(!0)},g=[{label:t("Feature image"),value:"isFeaturedImage"},{label:t("Product Image"),value:"isProductImage"},{label:t("All images"),value:"isAllImages"}];return r(w,{gutter:20,children:[e(c,{span:14,children:r(i,{size:"small",style:{backgroundColor:o.colorFillAlter},children:[r(h,{level:4,children:[" ",t("Pinterest Template Settings")," "]}),e(v,{platform:"Pinterest"}),r(i,{children:[e(i.Meta,{description:t("Custom message settings."),title:t("Custom Message")}),e("div",{children:e(l,{onChange:a,rows:5,style:{minWidth:200},value:s.pinterest.content})})]}),e(i,{style:{marginTop:10},children:r(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(b,{onChange:a,options:g,style:{minWidth:200},value:s.pinterest.postingType})})]})}),e(i,{style:{marginTop:10},children:r(n,{gap:20,justify:"space-between",children:[e(i.Meta,{description:`Pinterest restricts the length of a post to ${p.pinterest.description.length} characters. If you enable this option, the first ${p.pinterest.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(m,{checked:s.pinterest.trimMessage,onChange:a})})]})}),r(i,{children:[e(i.Meta,{description:t("Custom post title."),title:t("Post Title")}),e("div",{children:e(l,{onChange:a,rows:1,style:{minWidth:200},value:s.pinterest.title,wrapperClassName:"-mt-6"})})]}),e(i,{style:{marginTop:10},children:r(n,{gap:20,justify:"space-between",children:[e(i.Meta,{description:"Share the post link on Pinterest.",title:t("Post link")}),e("div",{children:e(m,{checked:s.pinterest.isLinkCard,onChange:a})})]})})]})}),r(c,{span:10,children:[r(h,{level:5,children:[" ",t("Preview")," "]}),e(M,{message:s.pinterest.content,type:s.pinterest.postingType})]})]})}export{J as default};
