import{b as h,i as C}from"./index.4b887428.js";import{B as O}from"./Textarea.1045f090.js";import{C as B}from"./Blur.92695742.js";import{C as T}from"./SettingsRow.35256805.js";import{C as w}from"./Index.72794c8a.js";import"./translations.e71e2202.js";import{_ as e,a as y}from"./default-i18n.65d58dd6.js";import{o as u,c as f,l as n,a2 as r,R as l,_ as P,$ as m,a7 as d,a6 as c,a1 as k,a4 as x}from"./runtime-core.esm-bundler.ce5add0b.js";import{B as F}from"./RadioToggle.18655b2f.js";import{_ as A}from"./_plugin-vue_export-helper.eefbdd86.js";const V={class:"aioseo-sa-ct-custom-fields lite"},q={class:"aioseo-description"},Z={__name:"CustomFields",props:{type:{type:String,required:!0},object:{type:Object,required:!0}},setup(i){const a="all-in-one-seo-pack",t={customFields:e("Custom Fields",a),customFieldsDescription:e("List of custom field names to include as post content for tags and the SEO Page Analysis. Add one per line.",a),ctaDescription:y(e("%1$s %2$s gives you advanced customizations for our page analysis feature, letting you add custom fields to analyze.",a),"AIOSEO","Pro"),ctaButtonText:e("Unlock Custom Fields",a),ctaHeader:y(e("Custom Fields is a %1$s Feature",a),"PRO")};return(p,o)=>(u(),f("div",V,[n(l(B),null,{default:r(()=>[n(l(T),{name:t.customFields,align:""},{content:r(()=>[n(l(O),{"min-height":200}),P("div",q,m(t.customFieldsDescription),1)]),_:1},8,["name"])]),_:1}),n(l(w),{"cta-link":l(h).getPricingUrl("custom-fields","custom-fields-upsell",`${i.object.name}-post-type`,"liteUpgrade"),"button-text":t.ctaButtonText,"learn-more-link":l(h).getUpsellUrl("custom-fields",i.object.name,"liteUpgrade")},{"header-text":r(()=>[d(m(t.ctaHeader),1)]),description:r(()=>[d(m(t.ctaDescription),1)]),_:1},8,["cta-link","button-text","learn-more-link"])]))}},s="all-in-one-seo-pack",D={components:{BaseRadioToggle:F,CoreBlur:B,CoreSettingsRow:T,Cta:w},props:{type:{type:String,required:!0},object:{type:Object,required:!0}},data(){return{links:h,schemaTypes:[{value:"none",label:e("None",s)},{value:"Article",label:e("Article",s)}],strings:{schemaType:e("Schema Type",s),articleType:e("Article Type",s),article:e("Article",s),blogPost:e("Blog Post",s),newsArticle:e("News Article",s),ctaDescription:e("Easily generate unlimited schema markup for your content to help you rank higher in search results. Our schema validator ensures your schema works out of the box.",s),ctaButtonText:e("Unlock Schema Markup Generator",s),ctaHeader:y(e("Schema Markup Generator is a %1$s Feature",s),"PRO")},features:[e("Unlimited Schema",s),e("Validate with Google",s),e("Increase Rankings",s),e("Additional Schema Types",s)]}},methods:{getSchemaTypeOption(i){return this.schemaTypes.find(a=>a.value===i)}}},N={class:"aioseo-sa-ct-schema-lite"};function R(i,a,t,p,o,b){const g=c("base-select"),_=c("core-settings-row"),j=c("base-radio-toggle"),U=c("core-blur"),v=c("cta");return u(),f("div",N,[n(U,null,{default:r(()=>[n(_,{name:o.strings.schemaType,align:""},{content:r(()=>[n(g,{size:"medium",class:"schema-type",options:o.schemaTypes,modelValue:b.getSchemaTypeOption("Article")},null,8,["options","modelValue"])]),_:1},8,["name"]),n(_,{name:o.strings.articleType,align:""},{content:r(()=>[n(j,{name:`${t.object.name}articleType`,modelValue:"BlogPosting",options:[{label:o.strings.article,value:"Article"},{label:o.strings.blogPost,value:"BlogPosting"},{label:o.strings.newsArticle,value:"NewsArticle"}]},null,8,["name","options"])]),_:1},8,["name"])]),_:1}),n(v,{"cta-link":o.links.getPricingUrl("schema-markup","schema-markup-upsell",null,"liteUpgrade"),"button-text":o.strings.ctaButtonText,"learn-more-link":o.links.getUpsellUrl("schema-markup",null,"liteUpgrade"),"feature-list":o.features},{"header-text":r(()=>[d(m(o.strings.ctaHeader),1)]),description:r(()=>[d(m(o.strings.ctaDescription),1)]),_:1},8,["cta-link","button-text","learn-more-link","feature-list"])])}const S=A(D,[["render",R]]),L={setup(){return{licenseStore:C()}},components:{Schema:S,SchemaLite:S},props:{type:{type:String,required:!0},object:{type:Object,required:!0},options:{type:Object,required:!0},showBulk:Boolean}},E={class:"aioseo-sa-ct-schema-view"};function H(i,a,t,p,o,b){const g=c("schema",!0),_=c("schema-lite");return u(),f("div",E,[p.licenseStore.isUnlicensed?x("",!0):(u(),k(g,{key:0,type:t.type,object:t.object,options:t.options,"show-bulk":t.showBulk},null,8,["type","object","options","show-bulk"])),p.licenseStore.isUnlicensed?(u(),k(_,{key:1,type:t.type,object:t.object,options:t.options,"show-bulk":t.showBulk},null,8,["type","object","options","show-bulk"])):x("",!0)])}const $=A(L,[["render",H]]);export{$ as S,Z as _};
