import{b as h,j as C}from"./index.bd66e758.js";import{B as O}from"./Textarea.1c3d0fb8.js";import{C as B}from"./Blur.4fe4b9a3.js";import{C as T}from"./SettingsRow.8aa99257.js";import{C as w}from"./Index.1a358ca4.js";import"./translations.d159963e.js";import{_ as e,s as y}from"./default-i18n.20001971.js";import{o as u,c as f,H as n,m as a,u as l,a as P,t as m,y as d,x as c,l as k,b as x}from"./runtime-dom.esm-bundler.5d5e6b71.js";import{B as F}from"./RadioToggle.51430965.js";import{_ as j}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 r="all-in-one-seo-pack",t={customFields:e("Custom Fields",r),customFieldsDescription:e("List of custom field names to include as post content for tags and the SEO Page Analysis. Add one per line.",r),ctaDescription:y(e("%1$s %2$s gives you advanced customizations for our page analysis feature, letting you add custom fields to analyze.",r),"AIOSEO","Pro"),ctaButtonText:e("Unlock Custom Fields",r),ctaHeader:y(e("Custom Fields is a %1$s Feature",r),"PRO")};return(p,o)=>(u(),f("div",V,[n(l(B),null,{default:a(()=>[n(l(T),{name:t.customFields,align:""},{content:a(()=>[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":a(()=>[d(m(t.ctaHeader),1)]),description:a(()=>[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(r=>r.value===i)}}},N={class:"aioseo-sa-ct-schema-lite"};function R(i,r,t,p,o,b){const g=c("base-select"),_=c("core-settings-row"),A=c("base-radio-toggle"),U=c("core-blur"),v=c("cta");return u(),f("div",N,[n(U,null,{default:a(()=>[n(_,{name:o.strings.schemaType,align:""},{content:a(()=>[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:a(()=>[n(A,{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":a(()=>[d(m(o.strings.ctaHeader),1)]),description:a(()=>[d(m(o.strings.ctaDescription),1)]),_:1},8,["cta-link","button-text","learn-more-link","feature-list"])])}const S=j(D,[["render",R]]),H={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}},L={class:"aioseo-sa-ct-schema-view"};function E(i,r,t,p,o,b){const g=c("schema",!0),_=c("schema-lite");return u(),f("div",L,[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 $=j(H,[["render",E]]);export{$ as S,Z as _};
