import{A as u,H as f,I as y,M as T,D as t,B as a,j as e,T as g}from"./main-crazy-owls-work.js";import{$ as v}from"./useSocialTemplates-Dcb3t5jQ.js";import{T as C,p as n}from"./TemplateDocLink-C5Om0X4f.js";import{M as m}from"./AiPromptConfigModal-BrZd34tw.js";import{I as M}from"./InstagramPreview-DO9elVxn.js";import{C as i}from"./index-9x8aFyWV.js";import{F as l}from"./index-DLeF0Q26.js";import{S as I}from"./index-CV7ZrOqa.js";import{S as b}from"./index-Uj_IJMNj.js";import{C as p,R as w}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(r,s){return this.cache.has(r)?this.cache.get(r):(this.cache.set(r,s),s)}};const{Title:c}=g;function G(){const{token:r}=u.useToken(),s=f(v),h=y(T),o=()=>{h(!0)},d=[{label:t("Feature image"),value:"isFeaturedImage"},{label:t("Product Image"),value:"isProductImage"},{label:t("All images"),value:"isAllImages"}];return a(w,{gutter:20,children:[e(p,{span:14,children:a(i,{size:"small",style:{backgroundColor:r.colorFillAlter},children:[a(c,{level:4,children:[" ",t("Instagram Template Settings")," "]}),e(C,{platform:"Instagram"}),a(i,{children:[e(i.Meta,{description:t("Custom message settings."),title:t("Custom Message")}),e("div",{children:e(m,{onChange:o,rows:5,style:{minWidth:200},value:s.instagram.content,wordCount:n.instagram.description.length})})]}),a(i,{style:{marginTop:10},children:[a(l,{gap:20,justify:"space-between",children:[e(i.Meta,{description:t("Post styling and type setup."),title:t("Posting type")}),e("div",{children:e(I,{onChange:o,options:d,style:{minWidth:200},value:s.instagram.postingType})})]}),e("div",{className:"pt-2",children:e(g.Text,{type:"secondary",children:t("Instagram media images must be 1.91:1 to 4:5 aspect ratio, 320-1440px resolution (recommended 1080px), and under 8MB.")})})]}),a(i,{style:{marginTop:10},children:[e(i.Meta,{description:t("Your comment"),title:t("First comment")}),e("div",{children:e(m,{onChange:o,rows:2,style:{minWidth:200},value:s.instagram.comment,wordCount:n.instagram.comment.length})})]}),e(i,{style:{marginTop:10},children:a(l,{gap:20,justify:"space-between",children:[e(i.Meta,{description:`Instagram restricts the length of a post to ${n.instagram.description.length} characters. If you enable this option, the first ${n.instagram.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(b,{checked:s.instagram.trimMessage,onChange:o})})]})})]})}),a(p,{span:10,children:[a(c,{level:5,children:[" ",t("Preview")," "]}),e(M,{message:s.instagram.content,type:s.instagram.postingType})]})]})}export{G as default};
