import{A as d,H as f,I as P,M as y,D as t,B as s,j as e,T as b}from"./main-crazy-owls-work.js";import{$ as v}from"./useSocialTemplates-Dcb3t5jQ.js";import{M as B}from"./AiPromptConfigModal-BrZd34tw.js";import{T,p as n}from"./TemplateDocLink-C5Om0X4f.js";import{G as M}from"./GoogleBusinessProfilePreview-BZliv6yV.js";import{C as i}from"./index-9x8aFyWV.js";import{F as r}from"./index-DLeF0Q26.js";import{S as p}from"./index-CV7ZrOqa.js";import{S as O}from"./index-Uj_IJMNj.js";import{C as g,R as C}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(l,o){return this.cache.has(l)?this.cache.get(l):(this.cache.set(l,o),o)}};const{Title:m}=b;function q(){const{token:l}=d.useToken(),o=f(v),c=P(y),a=()=>{c(!0)},u=[{label:t("Only custom message"),value:"onlyMessage"},{label:t("Feature image"),value:"isFeaturedImage"},{label:t("Product Image"),value:"isProductImage"}],h=[{label:"No Button",value:"none"},{label:"SIGN UP",value:"SIGN_UP"},{label:"LEARN MORE",value:"LEARN_MORE"},{label:"SHOP",value:"SHOP"},{label:"ORDER",value:"ORDER"},{label:"BOOK",value:"BOOK"}];return s(C,{gutter:20,children:[e(g,{span:14,children:s(i,{size:"small",style:{backgroundColor:l.colorFillAlter},children:[s(m,{level:4,children:[" ",t("Google Business Profile Template Settings")," "]}),e(T,{platform:"Google Business Profile"}),s(i,{children:[e(i.Meta,{description:t("Custom message settings."),title:t("Custom Message")}),e("div",{children:e(B,{onChange:a,rows:5,style:{minWidth:200},value:o.googleBusinessProfile.content})})]}),e(i,{style:{marginTop:10},children:s(r,{gap:20,justify:"space-between",children:[e(i.Meta,{description:t("Post styling and type setup."),title:t("Posting type")}),e("div",{children:e(p,{onChange:a,options:u,style:{minWidth:200},value:o.googleBusinessProfile.postingType})})]})}),e(i,{style:{marginTop:10},children:s(r,{gap:20,justify:"space-between",children:[e(i.Meta,{description:t("Select a post link button."),title:t("Add a button")}),e("div",{children:e(p,{onChange:a,options:h,style:{minWidth:200},value:o.googleBusinessProfile.button})})]})}),e(i,{style:{marginTop:10},children:s(r,{gap:20,justify:"space-between",children:[e(i.Meta,{description:`Google Business Profile restricts the length of a post to ${n.googleBusinessProfile.description.length} characters. If you enable this option, the first ${n.googleBusinessProfile.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(O,{checked:o.googleBusinessProfile.trimMessage,onChange:a})})]})})]})}),s(g,{span:10,children:[s(m,{level:5,children:[" ",t("Preview")," "]}),e(M,{message:o.googleBusinessProfile.content,type:o.googleBusinessProfile.postingType})]})]})}export{q as default};
