import{u as A,a as T,C as V,B,_ as G}from"./Cta.e0cf832f.js";import{c as y,a as L}from"./index.bb0afb15.js";import{j as b}from"./helpers.80db7619.js";import{C as I}from"./Caret.7cc96622.js";import{C as w}from"./SettingsRow.70a7af04.js";import{G as D}from"./constants.a8a14dc3.js";import"./translations.d159963e.js";import{_ as N}from"./_plugin-vue_export-helper.eefbdd86.js";import{f as M,v as p,o as u,c as h,a as l,H as e,l as c,x as P,t as _,u as i,k as C,b as R}from"./runtime-dom.esm-bundler.baf35205.js";import{_ as r}from"./default-i18n.20001971.js";import{C as U}from"./Blur.601d8ea8.js";import{C as z}from"./Card.16558ba3.js";import"./datetime.f197aeae.js";import"./Tooltip.78b61f71.js";import"./index.7fee6f1a.js";import"./SchemaStore.37600365.js";import"./metabox.bfa77fbe.js";import"./cleanForSlug.f6cc01d0.js";import"./toString.5aade9aa.js";import"./contentHasAssets.e1428256.js";import"./_baseSet.fcc45203.js";import"./regex.8a6101c0.js";import"./Index.b7e6928e.js";import"./CheckSolid.1941c38f.js";import"./popup.92105c51.js";import"./params.af7ed354.js";import"./Index.9f340035.js";import"./Row.c7b7fb90.js";import"./Slide.1db617da.js";const a="all-in-one-seo-pack",F={setup(){const m=y(),o=M(()=>20<m.aiCreditPercentage?"blue":"red");return{aiStore:A(),optionsStore:y(),aiContent:T(),alertColor:o,GLOBAL_STRINGS:D,links:L}},components:{CoreAlert:I,CoreSettingsRow:w,CreditCounter:V,BuyOrConnectActions:B},data(){return{faqSvg:"faq",keyPointsSvg:"key-points",repurposeContentSvg:"repurpose-content",strings:{description:r("Get advanced AI suggestions for meta tags, social media posts, FAQs, key points, and more — all perfectly tailored to your content.",a),tone:r("Tone",a),toneDescription:r("The default tone that characterizes your content. This can be overridden while using the AI Content Generator.",a),audience:r("Audience",a),audienceDescription:r("The default audience that usually reads your content. This can be overridden while using the AI Content Generator.",a),connect:r("Connect to AI Content",a)}}},methods:{getAssetUrl:b}},H={class:"credit-counter-hero"},q={class:"description"},j=["innerHTML"],E={class:"aioseo-description"},Q={class:"aioseo-description"};function J(m,o,f,t,n,v){const k=p("credit-counter"),x=p("core-alert"),O=p("buy-or-connect-actions"),d=p("core-settings-row"),g=p("base-select");return u(),h("div",null,[l("div",H,[e(x,{type:t.alertColor},{default:c(()=>[e(k,{isSettingsPage:!0})]),_:1},8,["type"]),l("span",q,[P(_(n.strings.description)+" ",1),l("span",{innerHTML:t.links.getDocLink(t.GLOBAL_STRINGS.learnMore,"aiContentGenerator",!0)},null,8,j)])]),e(d,{name:n.strings.connect,class:"aioseo-ai-content-settings__connect"},{content:c(()=>[e(O)]),_:1},8,["name"]),e(d,{name:n.strings.tone},{content:c(()=>[e(g,{size:"medium",options:t.aiContent.toneOptions,modelValue:t.aiContent.toneOptions.find(s=>s.value===t.optionsStore.options.aiContent.tone),"onUpdate:modelValue":o[0]||(o[0]=s=>t.optionsStore.options.aiContent.tone=s.value)},null,8,["options","modelValue"]),l("div",E,_(n.strings.toneDescription),1)]),_:1},8,["name"]),e(d,{name:n.strings.audience},{content:c(()=>[e(g,{size:"medium",options:t.aiContent.audienceOptions,modelValue:t.aiContent.audienceOptions.find(s=>s.value===t.optionsStore.options.aiContent.audience),"onUpdate:modelValue":o[1]||(o[1]=s=>t.optionsStore.options.aiContent.audience=s.value)},null,8,["options","modelValue"]),l("div",Q,_(n.strings.audienceDescription),1)]),_:1},8,["name"])])}const S=N(F,[["render",J]]),K={class:"aioseo-ai-content-settings"},xt={__name:"AiContent",setup(m){const f={aiContentSettings:r("AI Content Settings","all-in-one-seo-pack")},t=A();return(n,v)=>(u(),h("div",K,[e(i(z),{slug:"aiContentSettings","header-text":f.aiContentSettings},{default:c(()=>[i(t).isFreeAndOutOfCredits?(u(),C(i(U),{key:0},{default:c(()=>[e(i(S))]),_:1})):(u(),C(i(S),{key:1})),i(t).isFreeAndOutOfCredits?(u(),C(i(G),{key:2})):R("",!0)]),_:1},8,["header-text"])]))}};export{xt as default};
