Files
2026-04-28 15:13:50 +02:00

2 lines
214 KiB
JavaScript

import{cg as te,bF as Z,D as Qt,b as we,d as ve,a5 as Gt,ch as xt,z as Zt,u as Pe,Z as It,P as Xt,a$ as $t,G as Te,N as st,a9 as Ue,aa as ke,ci as eo,cj as to,ck as oo,cl as ao,R as fe,cm as ro,cn as no,co as so,a as Be,cp as Dt,cq as wt,bD as it,cr as Ut,cs as kt,ct as At,bu as at,bv as Et,bx as Nt,bs as _t,bz as St,cu as Pt,V as Mt,f as io,L as lo,b8 as Yt,j as mo}from"./app-core.ae890a3f.js";import{C as lt}from"./Index.ab3bcf62.js";import{S as Jt}from"./Close.098d4b76.js";import{aq as d,f as u,Q as w,R as n,j as h,T as Fe,a0 as o,U as f,ae as N,i as E,S as Ee,B as po,u as W,v as l,ar as co,r as ae,O as Ve,ad as Ne,P as Le,M as k,n as vt,w as yt,o as uo,b as bt,ai as go,Y as ho,ac as fo,g as _o}from"./vendor-vue-ui.de3ab35f.js";import{_ as $}from"./_plugin-vue_export-helper.eefbdd86.js";import{C as De}from"./Index.52399193.js";import{C as K}from"./SettingsRow.0c329e43.js";import{C as ue}from"./Tooltip.ae7a1028.js";import{n as ut,o as So,i as vo,h as yo,p as bo,g as Vo,f as To,j as Co,q as Do,r as wo,s as Uo,e as ko,t as Ao,d as Eo,c as No,b as Po,u as Mo,a as zo,v as Oo,w as Ro,x as Lo,m as Go,S as xo,l as Ft,k as Bt,y as Ht}from"./Input.8918dec2.js";import{_ as a,a as de,c as Io}from"./vendor-other.7b559694.js";import{S as Yo,_ as Jo}from"./Rephrase.a6ab23f4.js";import{C as rt}from"./Tabs.b5aef6dd.js";import{S as mt,C as Fo}from"./CreditCounter.33079ce4.js";import{S as pt}from"./Trash.d35f8063.js";import{B as Bo}from"./Checkbox.79be52ca.js";import{B as Qe}from"./Radio.7b7e6cf4.js";import{B as Ge}from"./Textarea.916c7d34.js";import{c as Ho}from"./vendor-prism-editor.fa0057cb.js";import{S as qo}from"./Caret.a017b70a.js";import{S as Wo}from"./Exclamation.fb17e636.js";import{B as He}from"./RadioToggle.de933e45.js";import{u as xe}from"./JsonValues.a0694556.js";import{B as Ae}from"./DatePicker.0e992fd3.js";import{C as ce}from"./HtmlTagsEditor.f64ea7dd.js";import{C as _e}from"./ImageUploader.fbfb8dc4.js";import{a as ge,C as Ie}from"./Repeater.5797127c.js";import{C as Vt}from"./Blur.5e231db6.js";import{B as gt}from"./Select.32af2da8.js";import{S as $e}from"./Plus.d276bd63.js";import{b as ot}from"./Pencil.405b16d2.js";import{g as jo}from"./postStatus.ff1bf93a.js";import{S as Ko}from"./CheckSolid.7f805a48.js";import{S as qt}from"./Eye.050aa9d8.js";import{C as Qo}from"./Index.43bf246d.js";import"./vendor-lodash.8e35bd59.js";import"./Row.6337df55.js";import"./Button.a549093d.js";import"./ProBadge.fd60f711.js";import"./Information.278772ab.js";import"./Slide.e6618126.js";import"./Checkmark.fac3f231.js";import"./Calendar.b0c46a33.js";import"./vendor-date-picker.d49a8044.js";import"./Editor.10fec9a8.js";import"./vendor-quill.fa67f709.js";import"./Plus.97dee933.js";import"./UnfilteredHtml.8040f29d.js";import"./vendor-emoji.92c96208.js";import"./Img.218d4bc6.js";const Zo={emits:["closeModal","doAction","openModal"],components:{CoreModal:lt,SvgClose:Jt},props:{strings:{type:Object,required:!0},show:Boolean},watch:{show(i){i&&this.$emit("openModal",!0)}}},Xo={class:"aioseo-modal-body"},$o=["innerHTML"];function ea(i,t,p,e,r,v){const y=d("svg-close"),s=d("base-button"),g=d("core-modal");return u(),w(g,{show:p.show,classes:["aioseo-post-schema-confirmation-modal"],"no-header":"",onClose:t[4]||(t[4]=b=>i.$emit("closeModal",!0))},{body:n(()=>[h("div",Xo,[h("button",{class:"close",onClick:t[1]||(t[1]=Fe(b=>i.$emit("closeModal",!0),["stop"]))},[o(y,{onClick:t[0]||(t[0]=b=>i.$emit("closeModal",!0))})]),h("h3",null,f(p.strings.areYouSure),1),h("div",{class:"reset-description",innerHTML:p.strings.actionCannotBeUndone},null,8,$o),o(s,{type:"blue",size:"medium",onClick:t[2]||(t[2]=b=>i.$emit("doAction",b))},{default:n(()=>[N(f(p.strings.confirmation),1)]),_:1}),o(s,{type:"gray",size:"medium",onClick:t[3]||(t[3]=b=>i.$emit("closeModal",!0))},{default:n(()=>[N(f(p.strings.noChangedMind),1)]),_:1})])]),_:1},8,["show"])}const Tt=$(Zo,[["render",ea]]),ta={class:"graph-container"},oa={class:"graph"},aa={class:"left"},ra=["title"],na={class:"right action-buttons"},Oe={__name:"GraphCard",props:{graph:Object,customGraph:Boolean,defaultGraph:String},setup(i){const t="all-in-one-seo-pack",p=i,{childGraphs:e,graphs:r}=te(),v=W(()=>{if(p.customGraph)return a("Custom Schema",t)+" - "+p.graph.graphName;if(p.defaultGraph)return g(p.defaultGraph);if(p.graph?.label)return p.graph.label;const S=p.graph?.slug?.toLowerCase();return r.find(m=>m.slug===S)?.label||a("Parsing Block Data...",t)}),y=W(()=>{if(p.customGraph)return ut;if(p.defaultGraph){const S=s(p.defaultGraph);return S?b(S):ut}return b(p.graph.slug)}),s=S=>{Object.entries(e).forEach(m=>{const c=m[0];m[1].forEach(_=>{S===_.childGraphName&&(S=c)})});let V="";return r.forEach(m=>{m.graphName===S&&(V=m.slug)}),V},g=S=>{let V="",m=S;return Object.entries(e).forEach(c=>{const _=c[0];c[1].forEach(C=>{V||S===C.childGraphName&&(V=_,m=C.label,r.forEach(U=>{U.graphName===_&&(V=U.label)}))})}),V?V+" - "+m+" "+a("(Default)",t):S+" "+a("(Default)",t)},b=S=>{switch(S){case"article":return Lo;case"book":return Ro;case"car":return Oo;case"course":return zo;case"dataset":return Mo;case"event":return Po;case"faq-page":return No;case"fact-check":return Eo;case"how-to":return Ao;case"job-posting":return ko;case"movie":return Uo;case"music":return wo;case"person":return Do;case"product":return Co;case"product-review":return To;case"recipe":return Vo;case"service":return bo;case"software-application":return yo;case"video":return vo;case"web-page":return So;default:return ut}};return(S,V)=>(u(),E("div",ta,[h("div",oa,[h("div",aa,[(u(),w(Ee(y.value))),h("span",{title:v.value},f(v.value),9,ra)]),h("div",na,[po(S.$slots,"buttons")])])]))}},zt="all-in-one-seo-pack",et=()=>{const i=Z(),t=W(()=>{if(i.isEditingDefaultGraph)return!0;switch(i.graph.graphName){case"Event":case"JobPosting":break;default:return!0}const r=i.graph.graphName.replace(new RegExp("(?<!^)([A-Z][a-z]|(?<=[a-z])[A-Z])"),"-$1").toLowerCase();return Qt.hasCoreFeature("schema",r)}),p=W(()=>{const r=we(),v=ve.getPricingUrl("graph-"+i.graph.graphName.toLowerCase(),"schema-generator","graph-"+i.graph.graphName.toLowerCase(),r.isPro?"pricing":"liteUpgrade");return a("This feature is not available in your current plan.",zt)+" "+de('<a href="%1$s" target="_blank">%2$s</a>',v,de(a("Upgrade your plan and unlock %1$s schema",zt),i.graph.graphName.replace(/([A-Z].*?)([A-Z])(?![A-Z])/,"$1 $2")))}),e=W(()=>i.isEditingCustomGraph||i.isEditingCustomTemplate||i.isEditingDefaultGraph||i.isEditingGraph||i.isEditingTemplate);return{hasFeature:t,graphNotIncluded:p,isEditing:e}},sa={class:"aioseo-ai-disclaimer"},ia={class:"aioseo-ai-disclaimer__icon-wrapper"},la=["innerHTML"],ma={__name:"AiDisclaimer",props:{message:{type:String,default:""}},setup(i){const t=i,p=Gt(),e=W(()=>t.message||p.strings.disclaimer);return(r,v)=>(u(),E("div",sa,[h("span",ia,[o(l(mt))]),h("span",{innerHTML:e.value},null,8,la)]))}},pa={emits:["change","paste","blur"],props:{editorId:{type:String,required:!0},language:{type:String,default(){return"json"}},placeholder:{type:String,default(){return""}},value:{type:String,default(){return""}},readonly:{type:Boolean,default(){return!1}},wordWrap:{type:Boolean,default(){return!1}}},data(){return{editorInstance:null}},methods:{getValue(){return this.editorInstance?this.editorInstance.value:""},setValue(i){this.editorInstance&&this.editorInstance.setOptions({value:i})}},mounted(){const i=document.getElementById(this.editorId);if(!i)return;const t=this;this.editorInstance=Ho(i,{language:this.language,value:this.value,readOnly:this.readonly,lineNumbers:!0,wordWrap:this.wordWrap,tabSize:4,insertSpaces:!1,onUpdate(p){t.$emit("change",p)}}),this.placeholder&&(this.editorInstance.textarea.placeholder=this.placeholder),this.editorInstance.textarea.addEventListener("paste",p=>{this.$emit("paste",{event:p})}),this.editorInstance.textarea.addEventListener("blur",p=>{this.$emit("blur",{event:p})})},beforeUnmount(){this.editorInstance&&(this.editorInstance.remove(),this.editorInstance=null)}},da=["id"];function ca(i,t,p,e,r,v){return u(),E("div",{id:p.editorId,class:"aioseo-code-editor"},null,8,da)}const nt=$(pa,[["render",ca]]),ua={class:"schema-rich-results-test",method:"post",action:"https://search.google.com/test/rich-results",target:"_blank"},ga=["value"],Wt={__name:"SchemaRichResultsTest",props:{snippet:{type:String,required:!0},buttonType:{type:String,default:"gray"},buttonSize:{type:String,default:"small"}},setup(i){const p={testWithGoogle:a("Test with Google","aioseo-pro")};return(e,r)=>{const v=d("base-button");return u(),E("form",ua,[h("textarea",{name:"code_snippet",value:i.snippet,hidden:""},null,8,ga),o(v,{"native-type":"submit",type:i.buttonType,size:i.buttonSize},{default:n(()=>[o(l(Go)),N(" "+f(p.testWithGoogle),1)]),_:1},8,["type","size"])])}}},ha={},fa={class:"aioseo-ai-magic-wand",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};function _a(i,t){return u(),E("svg",fa,[...t[0]||(t[0]=[co('<path d="m2.454 13.12 1.072 1.072c.339.34.819.537 1.27.537s.932-.198 1.27-.537l6.651-6.65.339-3.218a.646.646 0 0 0-.65-.733h-.084l-3.217.338-6.651 6.651a1.79 1.79 0 0 0 0 2.54m7.272-7.893 1.89-.197-.197 1.89-3.208 3.237-.875.875L5.615 9.31l.875-.875zM3.413 11.54l1.242-1.27 1.722 1.721-1.27 1.242a.48.48 0 0 1-.31.141.48.48 0 0 1-.311-.141L3.413 12.16a.443.443 0 0 1 0-.621M2.898 1.008c.111-.456.76-.456.87 0l.305 1.256a.45.45 0 0 0 .33.33l1.255.304c.456.11.456.76 0 .87l-1.256.304a.45.45 0 0 0-.33.33l-.304 1.255c-.11.456-.759.456-.87 0l-.304-1.255a.45.45 0 0 0-.33-.33L1.01 3.768c-.456-.11-.456-.76 0-.87l1.255-.305a.45.45 0 0 0 .33-.33z"></path><path fill-rule="evenodd" clip-rule="evenodd" d="m3.333 1.494-.217.896a.99.99 0 0 1-.725.725l-.897.218.897.217a.99.99 0 0 1 .725.725l.217.897.218-.897a.99.99 0 0 1 .725-.725l.896-.217-.896-.218a.99.99 0 0 1-.725-.725zm.435-.486c-.11-.456-.759-.456-.87 0l-.304 1.256a.45.45 0 0 1-.33.33l-1.255.304c-.456.11-.456.76 0 .87l1.255.304c.163.04.29.167.33.33l.304 1.255c.111.456.76.456.87 0l.305-1.255a.45.45 0 0 1 .33-.33l1.255-.304c.456-.11.456-.76 0-.87l-1.256-.305a.45.45 0 0 1-.33-.33z"></path><path d="M13.007 11.59c.083-.343.57-.343.653 0l.228.94c.03.123.125.218.247.248l.942.228c.342.083.342.57 0 .653l-.942.228a.34.34 0 0 0-.247.247l-.228.942c-.083.342-.57.342-.653 0l-.228-.942a.34.34 0 0 0-.247-.247l-.942-.228c-.342-.083-.342-.57 0-.653l.942-.228a.34.34 0 0 0 .247-.247z"></path><path fill-rule="evenodd" clip-rule="evenodd" d="m13.333 11.953-.163.673a.74.74 0 0 1-.543.544l-.673.163.673.163a.74.74 0 0 1 .543.543l.163.673.163-.672a.74.74 0 0 1 .544-.544l.673-.163-.673-.163a.74.74 0 0 1-.543-.544zm.327-.364c-.083-.342-.57-.342-.653 0l-.228.942a.34.34 0 0 1-.247.247l-.942.228c-.342.083-.342.57 0 .653l.942.228c.122.03.217.125.247.247l.228.942c.083.342.57.342.653 0l.228-.942a.34.34 0 0 1 .247-.247l.942-.228c.342-.083.342-.57 0-.653l-.942-.228a.34.34 0 0 1-.247-.247z"></path><path d="M15.333 1.333a.667.667 0 1 1-1.333 0 .667.667 0 0 1 1.333 0m-6.666 0a.667.667 0 1 1-1.334 0 .667.667 0 0 1 1.334 0M2.667 8a.667.667 0 1 1-1.334 0 .667.667 0 0 1 1.334 0"></path>',5)])])}const Sa=$(ha,[["render",_a]]),va={class:"ai-schema"},ya={key:0,class:"ai-schema-settings"},ba={class:"ai-schema-header"},Va={class:"title"},Ta={class:"ai-schema-modes"},Ca=["onClick"],Da={class:"mode-card-left"},wa={class:"mode-card-text"},Ua={class:"mode-name"},ka={class:"mode-description"},Aa={key:0,class:"ai-schema-prompt"},Ea={key:1,class:"ai-schema-results"},Na={class:"results-header"},Pa={class:"title"},Ma={class:"description"},za={class:"results-list"},Oa=["onClick"],Ra={class:"schema-result-left"},La={class:"schema-name"},Ga={class:"schema-tooltip-content"},xa={key:0},Ia={key:0,class:"schema-result-body"},Ya={class:"schema-result-actions"},Ja={class:"ai-schema-footer"},Fa={class:"footer-left"},Ba={class:"footer-right"},Ot=5e3,Ha={__name:"AiSchema",setup(i){const t="aioseo-pro",p=Gt(),e=xt(),r=Zt(),v=Pe(),y=Z(),s=Q=>Q.confidence!==null&&Q.confidence!==void 0,g=Q=>Q.map((B,ye)=>!s(B)||40<=B.confidence?ye:null).filter(B=>B!==null),b=v.currentPost.ai?.schemas||[],S=ae(!1),V=ae(null),m=ae(b),c=ae(g(b));e.currentScreen||(e.currentScreen=b.length?"results":"settings");const _={generateAiSchema:a("Before continuing, please select an option to generate schema with AI:",t),promptLabel:a("Your Prompt",t),promptPlaceholder:a('e.g. "Generate FAQ schema for my article with 5 questions & answer pairs"',t),selectGeneratedSchemas:a("Your schema has been generated!",t),selectSchemasDescription:a("Select the schemas to add to your post. Expand any schema to view details. To edit a schema, add it first then edit it from your schema list. You can also go back to pick a different option or write a new prompt.",t),backToModeSelection:a("Back to Mode Selection",t),simplePrompt:a("Prompt-Based Schema",t),simplePromptDescription:a("Describe any custom schema you want to add and let our AI generate the perfect structured data for your content.",t),smartSchema:a("Smart Schema",t),smartSchemaDescription:de(a("%1$s AI will analyze your page and recommend the ideal schema - no input needed.",t),"AIOSEO"),userPromptMaxlength:a("You have reached the maximum number of allowed characters.",t),schemaDisclaimer:a("AI-generated schema may be inaccurate. Always validate your structured data before publishing.",t)},{getSchemaWarnings:C}=te(),{parseTags:U}=It({separator:void 0}),T=W(()=>p.getFeatureCost("schemas")),A=[{value:"smart",icon:mt,name:_.smartSchema,description:_.smartSchemaDescription},{value:"prompt",icon:Sa,name:_.simplePrompt,description:_.simplePromptDescription}],D=W(()=>de(a("Generate Schema (%1$d credits)",t),T.value)),le=W(()=>Io("Add Schema","Add Schemas",c.value.length||1,t)),Re=W(()=>de(a("Regenerate Schema (%1$d credits)",t),T.value)),Me=W(()=>Ot<=e.userPrompt.length?_.userPromptMaxlength:null),O=W(()=>!(!p.hasEnoughContent()||!p.hasEnoughCredits(T.value)||e.mode==="prompt"&&!e.userPrompt.trim())),P=W(()=>m.value.map(Q=>U(Ze(Q.schemaData)))),X=W(()=>m.value.map(Q=>C(Ze(Q.schemaData)).map(B=>({text:B})))),G=async()=>{V.value=null,S.value=!1,e.generating=!0;try{await r.generateSchemas({mode:e.mode,userPrompt:e.userPrompt,postTitle:($t()||"").trim(),postContent:Xt(),postType:v.currentPost.postType,existingSchemas:y.output?JSON.stringify(JSON.parse(y.output)):""}),m.value=v.currentPost.ai.schemas||[],c.value=g(m.value),e.currentScreen="results"}catch(Q){console.error("Failed to generate:",Q),S.value=!0}e.generating=!1},L=Q=>{V.value=V.value===Q?null:Q},se=Q=>{const B=c.value.indexOf(Q);B===-1?c.value.push(Q):c.value.splice(B,1)},Ze=Q=>{try{return JSON.stringify(typeof Q=="string"?JSON.parse(Q):Q,null," ")}catch{return typeof Q=="string"?Q:JSON.stringify(Q)}},dt=Q=>{try{const B=typeof Q=="string"?JSON.parse(Q):Q;return JSON.stringify({"@context":"https://schema.org",...B},null," ")}catch{return""}},ct=()=>{const Q=c.value.map(B=>{const ye=m.value[B];return y.getCustomObject(ye.schemaType,Ze(ye.schemaData))});y.addCustomAsGraph(Q)};return(Q,B)=>{const ye=d("base-button");return u(),E("div",va,[l(e).currentScreen==="settings"?(u(),E("div",ya,[h("div",ba,[h("span",Va,f(_.generateAiSchema),1)]),h("div",Ta,[(u(),E(Ve,null,Ne(A,ne=>h("div",{key:ne.value,class:Le(["mode-card",{active:l(e).mode===ne.value,disabled:l(e).generating}]),onClick:z=>!l(e).generating&&(l(e).mode=ne.value)},[h("div",Da,[(u(),w(Ee(ne.icon),{class:"mode-icon"})),h("div",wa,[h("span",Ua,f(ne.name),1),h("span",ka,f(ne.description),1)])]),o(l(Qe),{name:"ai-schema-mode",modelValue:l(e).mode===ne.value,"onUpdate:modelValue":z=>l(e).mode=ne.value,type:2,disabled:l(e).generating},null,8,["modelValue","onUpdate:modelValue","disabled"])],10,Ca)),64))]),l(e).mode==="prompt"?(u(),E("div",Aa,[h("label",null,f(_.promptLabel),1),o(l(Ge),{modelValue:l(e).userPrompt,"onUpdate:modelValue":B[0]||(B[0]=ne=>l(e).userPrompt=ne),placeholder:_.promptPlaceholder,rows:4,autosize:!1,maxlength:Ot},null,8,["modelValue","placeholder"]),Me.value?(u(),w(l(De),{key:0,type:"yellow",class:"ai-schema-prompt-warning"},{default:n(()=>[N(f(Me.value),1)]),_:1})):k("",!0)])):k("",!0),l(p).hasEnoughContent()?k("",!0):(u(),w(l(De),{key:1,type:"red"},{default:n(()=>[N(f(l(p).strings.noContentWarning),1)]),_:1})),S.value?(u(),w(l(De),{key:2,type:"red"},{default:n(()=>[N(f(l(p).strings.somethingWrong),1)]),_:1})):k("",!0),o(l(ma),{message:_.schemaDisclaimer},null,8,["message"])])):k("",!0),l(e).currentScreen==="results"?(u(),E("div",Ea,[h("div",Na,[h("div",Pa,f(_.selectGeneratedSchemas),1),h("div",Ma,[N(f(_.selectSchemasDescription)+" ",1),h("a",{class:"back-to-mode-selection",href:"#",onClick:B[1]||(B[1]=Fe(ne=>l(e).currentScreen="settings",["prevent"]))},[B[7]||(B[7]=h("span",{class:"back-arrow"},"← ",-1)),N(f(_.backToModeSelection),1)])])]),h("div",za,[(u(!0),E(Ve,null,Ne(m.value,(ne,z)=>(u(),E("div",{key:z,class:Le(["schema-result-card",{expanded:V.value===z}])},[h("div",{class:"schema-result-header",onClick:M=>!l(e).generating&&L(z)},[h("div",Ra,[o(l(Bo),{modelValue:c.value.includes(z),"onUpdate:modelValue":M=>se(z),onClick:B[2]||(B[2]=Fe(()=>{},["stop"])),disabled:l(e).generating},null,8,["modelValue","onUpdate:modelValue","disabled"]),h("span",La,f(ne.schemaType),1),X.value[z]?.length?(u(),w(l(ue),{key:0,class:"schema-info-tooltip",placement:"right"},{tooltip:n(()=>[h("div",Ga,[(u(!0),E(Ve,null,Ne(X.value[z],(M,me)=>(u(),E("div",{key:me,class:"schema-tooltip-line"},[M.label?(u(),E("strong",xa,f(M.label),1)):k("",!0),h("div",null,f(M.text),1)]))),128))])]),default:n(()=>[o(l(Wo))]),_:2},1024)):k("",!0)]),o(l(qo),{class:Le(["schema-result-caret",{rotated:V.value===z}])},null,8,["class"])],8,Oa),V.value===z?(u(),E("div",Ia,[o(l(nt),{"editor-id":"ai-schema-result-"+z,value:P.value[z],"word-wrap":!0,readonly:!0},null,8,["editor-id","value"]),h("div",Ya,[o(l(Wt),{snippet:l(U)(dt(ne.schemaData))},null,8,["snippet"])])])):k("",!0)],2))),128))])])):k("",!0),h("div",Ja,[h("div",Fa,[o(l(Fo),{"parent-component-context":"modal"})]),h("div",Ba,[l(e).currentScreen==="results"?(u(),w(ye,{key:0,class:"regenerate-button",size:"small",type:"gray",loading:l(e).generating,onClick:B[3]||(B[3]=ne=>G()),disabled:!l(p).hasEnoughCredits(T.value)||!l(p).hasEnoughContent()},{default:n(()=>[o(l(Yo)),N(" "+f(Re.value),1)]),_:1},8,["loading","disabled"])):k("",!0),l(e).currentScreen==="settings"&&m.value.length?(u(),w(ye,{key:1,class:"view-button",size:"small",type:"gray",onClick:B[4]||(B[4]=ne=>l(e).currentScreen="results")},{default:n(()=>[h("span",null,f(l(p).strings.viewPreviousResults),1)]),_:1})):k("",!0),l(e).currentScreen==="settings"?(u(),w(ye,{key:2,class:"generate-button",size:"small",type:"blue",loading:l(e).generating,onClick:B[5]||(B[5]=ne=>G()),disabled:!O.value},{default:n(()=>[N(f(D.value),1)]),_:1},8,["loading","disabled"])):k("",!0),l(e).currentScreen==="results"?(u(),w(ye,{key:3,class:"add-schema-button",size:"small",type:"blue",onClick:B[6]||(B[6]=ne=>ct()),disabled:!c.value.length},{default:n(()=>[N(f(le.value),1)]),_:1},8,["disabled"])):k("",!0)])])])}}},qa={class:"custom-schema"},Wa={class:"main"},ja={class:"header"},Ka=["innerHTML"],Qa={class:"custom-schema-editor-container"},Za={class:"editor-toolbar"},Xa={key:0,class:"buttons add-custom-schema"},$a={class:"right"},er={key:1,class:"buttons edit-custom-schema"},tr={class:"left"},or={class:"right"},ar={key:2,class:"buttons edit-custom-template"},rr={class:"left"},nr={class:"right"},sr={__name:"Custom",setup(i){const t="aioseo-pro",p=Z(),{getSchemaWarnings:e}=te(),{parseTags:r}=It({separator:void 0}),v=ae(""),y=ae(!1),s=ae(null),g=ae(""),b=ae(""),S=ae(0),V=ae("edit"),m={schemaJson:a("Schema (JSON-LD Format)",t),tooltipDescription:de(a("Our custom schema only works with the JSON-LD format. This gives a detailed description of what your page is all about. Search engines can then use this data to understand your site better and provide more relevant search results and rich snippets. %1$s",t),ve.getDocLink(Te.learnMore,"schemaJsonLd",!0)),placeholder:a("Enter a name for your custom schema graph...",t),editorPlaceholder:a("Enter your JSON schema here...",t),edit:a("Edit",t),preview:a("Preview",t),addSchema:a("Add Schema",t),updateSchema:a("Update Schema",t),deleteSchema:a("Delete Schema",t),saveAsTemplate:a("Save as Template",t),deleteTemplate:a("Delete Template",t),updateTemplate:a("Update Template",t),errors:{invalidJson:a("The text you've entered is not valid JSON. Please enter valid JSON schema.",t)},modal:{graphDelete:{areYouSure:a("Are you sure you want to delete this custom schema?",t),actionCannotBeUndone:a("This action cannot be undone.",t),confirmation:a("Yes, I want to delete this custom schema",t),noChangedMind:a("No, I changed my mind",t)},templateDelete:{areYouSure:a("Are you sure you want to delete this template?",t),actionCannotBeUndone:a("This action cannot be undone.",t),confirmation:a("Yes, I want to delete this template",t),noChangedMind:a("No, I changed my mind",t)}}},c=W({get(){return p.isEditingCustomGraph||p.isEditingCustomTemplate?p.graph.graphName:p.custom.graphName},set(O){if(p.isEditingCustomGraph||p.isEditingCustomTemplate){p.graph.graphName=O;return}p.custom.graphName=O}}),_=W({get(){return p.isEditingCustomGraph||p.isEditingCustomTemplate?p.graph.schema:p.custom.schema},set(O){if(p.isEditingCustomGraph||p.isEditingCustomTemplate){p.graph.schema=O;return}p.custom.schema=O}}),C=W(()=>{if(!_.value)return"";try{const O=JSON.stringify(JSON.parse(_.value),null," ");return r(O)}catch{return r(_.value)}}),U=W(()=>{switch(v.value){case"deleteCustomGraph":return m.modal.graphDelete;case"deleteTemplate":return m.modal.templateDelete;default:return{}}}),T=W(()=>(!_.value||!c.value||g.value.length)!==0),A=()=>{if(g.value="",b.value="",!_.value)return;let O=null;try{const P=new RegExp("(<[^>]+>|</[^>]+>)","igm");_.value=_.value.replace(P,""),O=JSON.parse(_.value)}catch{b.value=m.errors.invalidJson;return}O["@context"]&&delete O["@context"],O["@type"]&&!p.custom.graphName&&(p.custom.graphName=O["@type"]),_.value=JSON.stringify(O,null," ").trim(),!(!s.value||s.value.getValue()===_.value)&&s.value.setValue(_.value)};A();const D=()=>{vt(()=>{_.value=s.value.getValue(),A()})},le=()=>{_.value=s.value.getValue(),A(),g.value=b.value},Re=O=>{v.value=O,y.value=!0},Me=()=>{switch(y.value=!1,S.value++,v.value){case"deleteCustomGraph":p.deleteCustomGraph();break;case"deleteTemplate":p.deleteTemplate();break}v.value=""};return(O,P)=>{const X=d("base-input"),G=d("base-button");return u(),E("div",qa,[h("div",Wa,[h("div",ja,[h("span",null,f(m.schemaJson),1),o(l(ue),null,{tooltip:n(()=>[h("span",{innerHTML:m.tooltipDescription},null,8,Ka)]),default:n(()=>[o(l(pt))]),_:1})]),o(X,{class:"template-name",size:"medium",prependIcon:"custom-schema",modelValue:c.value,"onUpdate:modelValue":P[0]||(P[0]=L=>c.value=L),placeholder:m.placeholder},null,8,["modelValue","placeholder"]),h("div",Qa,[h("div",Za,[o(l(He),{modelValue:V.value,"onUpdate:modelValue":P[1]||(P[1]=L=>V.value=L),name:"schema-editor-mode",class:"small",options:[{label:m.edit,value:"edit"},{label:m.preview,value:"preview",disabled:!_.value}]},null,8,["modelValue","options"])]),g.value&&V.value==="edit"?(u(),w(l(De),{key:0,type:"red"},{default:n(()=>[N(f(g.value),1)]),_:1})):k("",!0),l(e)(_.value).length&&V.value==="preview"?(u(),w(l(De),{key:1,type:"yellow",class:"schema-warnings"},{default:n(()=>[(u(!0),E(Ve,null,Ne(l(e)(_.value),(L,se)=>(u(),E("span",{key:se},f(L),1))),128))]),_:1})):k("",!0),V.value==="edit"?(u(),w(l(nt),{key:2,ref_key:"customSchemaEditor",ref:s,editorId:"custom-schema-editor",placeholder:m.editorPlaceholder,value:_.value,"word-wrap":!0,onChange:P[2]||(P[2]=L=>_.value=L),onPaste:D,onBlur:le},null,8,["placeholder","value"])):(u(),w(l(nt),{key:3,editorId:"custom-schema-preview",value:C.value,"word-wrap":!0,readonly:!0},null,8,["value"]))]),!l(p).isEditingCustomGraph&&!l(p).isEditingCustomTemplate?(u(),E("div",Xa,[P[12]||(P[12]=h("div",{class:"left"},null,-1)),h("div",$a,[o(G,{class:"medium",type:"gray",onClick:P[3]||(P[3]=L=>l(p).addCustomAsTemplate()),disabled:T.value},{default:n(()=>[N(f(m.saveAsTemplate),1)]),_:1},8,["disabled"]),o(G,{class:"medium",type:"blue",onClick:P[4]||(P[4]=L=>l(p).addCustomAsGraph()),disabled:T.value},{default:n(()=>[N(f(m.addSchema),1)]),_:1},8,["disabled"])])])):k("",!0),l(p).isEditingCustomGraph?(u(),E("div",er,[h("div",tr,[o(G,{class:"medium",type:"red",onClick:P[5]||(P[5]=L=>Re("deleteCustomGraph"))},{default:n(()=>[N(f(m.deleteSchema),1)]),_:1})]),h("div",or,[o(G,{class:"medium",type:"gray",onClick:P[6]||(P[6]=L=>l(p).addGraphAsTemplate()),disabled:T.value},{default:n(()=>[N(f(m.saveAsTemplate),1)]),_:1},8,["disabled"]),o(G,{class:"medium",type:"blue",onClick:P[7]||(P[7]=L=>l(p).updateCustomGraph()),disabled:T.value},{default:n(()=>[N(f(m.updateSchema),1)]),_:1},8,["disabled"])])])):k("",!0),l(p).isEditingCustomTemplate?(u(),E("div",ar,[h("div",rr,[o(G,{class:"medium",type:"red",onClick:P[8]||(P[8]=L=>Re("deleteTemplate"))},{default:n(()=>[N(f(m.deleteTemplate),1)]),_:1})]),h("div",nr,[o(G,{class:"medium",type:"gray",onClick:P[9]||(P[9]=L=>l(p).updateTemplate()),disabled:T.value},{default:n(()=>[N(f(m.updateTemplate),1)]),_:1},8,["disabled"]),o(G,{class:"medium",type:"blue",onClick:P[10]||(P[10]=L=>l(p).addCustomTemplateAsGraph()),disabled:T.value},{default:n(()=>[N(f(m.addSchema),1)]),_:1},8,["disabled"])])])):k("",!0)]),(u(),w(l(Tt),{show:y.value,strings:U.value,onDoAction:Me,onCloseModal:P[11]||(P[11]=L=>y.value=!1),key:"confirmationModal"+S.value},null,8,["show","strings"]))])}}},pe="aioseo-pro",ir={setup(){const{isEditing:i}=et(),{getJsonValue:t,setJsonValue:p}=xe(),{initSchemaEditor:e}=te();return{GLOBAL_STRINGS:Te,dateJsToLocal:ke,dateStringToLocalJs:Ue,getJsonValue:t,initSchemaEditor:e,isEditing:i,postEditorStore:Pe(),schemaStore:Z(),setJsonValue:p}},components:{BaseDatePicker:Ae,BaseRadio:Qe,BaseRadioToggle:He,CoreHtmlTagsEditor:ce,CoreImageUploader:_e,CoreSettingsRow:K,CoreFieldGroup:ge},data(){return{strings:{type:a("Type",pe),article:a("Article",pe),blogPosting:a("Blog Post",pe),newsArticle:a("News Article",pe),name:a("Name",pe),headline:a("Headline",pe),description:a("Description",pe),author:a("Author",pe),url:a("URL",pe),keywords:a("Keywords",pe),placeholder:a("Type to enter a keyword...",pe),tagPlaceholder:a("Press enter to create a keyword",pe),dates:a("Dates",pe),includeDates:a("Include Dates",pe),includeDatesDescription:a("Disable this setting to prevent search engines from including dates in their search results.",pe),datePublished:a("Date Published",pe),dateModified:a("Date Modified",pe),image:a("Image",pe)}}},beforeMount(){const i={id:"#aioseo-article-"+new Date().getTime().toString(36),slug:"article",graphName:"Article",label:a("Article",pe),properties:{type:this.schemaStore.isEditingDefaultGraph?this.postEditorStore.currentPost.schema.default.graphName:"Article",name:"#post_title",headline:"#post_title",description:"",image:"",keywords:"",author:{name:"#author_name",url:"#author_url"},dates:{include:!0,datePublished:"",dateModified:""}}};this.initSchemaEditor(i)},async mounted(){this.schemaStore.graph.id||await st().then(i=>{this.schemaStore.graph?.properties&&(this.schemaStore.graph.properties.image=i,this.$nextTick(()=>{this.schemaStore.isDirty=!1}))})}},lr={class:"graph-editor-fields graph-article"},mr={class:"aioseo-description"};function pr(i,t,p,e,r,v){const y=d("base-radio"),s=d("core-settings-row"),g=d("core-html-tags-editor"),b=d("core-image-uploader"),S=d("base-select"),V=d("core-field-group"),m=d("base-radio-toggle"),c=d("base-date-picker");return u(),E("div",lr,[e.schemaStore.isEditingDefaultGraph?k("",!0):(u(),w(s,{key:0,name:r.strings.type},{content:n(()=>[o(y,{size:"small",name:"type",modelValue:e.schemaStore.graph.properties.type==="Article","onUpdate:modelValue":t[0]||(t[0]=_=>e.schemaStore.graph.properties.type="Article"),type:2},{default:n(()=>[N(f(r.strings.article),1)]),_:1},8,["modelValue"]),o(y,{size:"small",name:"type",modelValue:e.schemaStore.graph.properties.type==="BlogPosting","onUpdate:modelValue":t[1]||(t[1]=_=>e.schemaStore.graph.properties.type="BlogPosting"),type:2},{default:n(()=>[N(f(r.strings.blogPosting),1)]),_:1},8,["modelValue"]),o(y,{size:"small",name:"type",modelValue:e.schemaStore.graph.properties.type==="NewsArticle","onUpdate:modelValue":t[2]||(t[2]=_=>e.schemaStore.graph.properties.type="NewsArticle"),type:2},{default:n(()=>[N(f(r.strings.newsArticle),1)]),_:1},8,["modelValue"])]),_:1},8,["name"])),o(s,{name:r.strings.name},{content:n(()=>[o(g,{modelValue:e.schemaStore.graph.properties.name,"onUpdate:modelValue":t[3]||(t[3]=_=>e.schemaStore.graph.properties.name=_),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_title","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.headline},{content:n(()=>[o(g,{modelValue:e.schemaStore.graph.properties.headline,"onUpdate:modelValue":t[4]||(t[4]=_=>e.schemaStore.graph.properties.headline=_),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_title","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.description},{content:n(()=>[o(g,{modelValue:e.schemaStore.graph.properties.description,"onUpdate:modelValue":t[5]||(t[5]=_=>e.schemaStore.graph.properties.description=_),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"top","default-tags":["post_excerpt","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{class:"image-field",name:r.strings.image,align:""},{content:n(()=>[o(b,{modelValue:e.schemaStore.graph.properties.image,"onUpdate:modelValue":t[6]||(t[6]=_=>e.schemaStore.graph.properties.image=_)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.keywords,align:""},{content:n(()=>[o(S,{size:"medium",multiple:"",taggable:"",options:e.getJsonValue(e.schemaStore.graph.properties.keywords)||[],modelValue:e.getJsonValue(e.schemaStore.graph.properties.keywords)||[],"onUpdate:modelValue":t[7]||(t[7]=_=>e.schemaStore.graph.properties.keywords=e.setJsonValue(_)),placeholder:r.strings.placeholder,"tag-placeholder":r.strings.tagPlaceholder},null,8,["options","modelValue","placeholder","tag-placeholder"])]),_:1},8,["name"]),o(V,{header:r.strings.author},{default:n(()=>[o(s,{name:r.strings.name},{content:n(()=>[o(g,{modelValue:e.schemaStore.graph.properties.author.name,"onUpdate:modelValue":t[8]||(t[8]=_=>e.schemaStore.graph.properties.author.name=_),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"top","default-tags":["author_name","author_first_name","author_last_name"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.url},{content:n(()=>[o(g,{modelValue:e.schemaStore.graph.properties.author.url,"onUpdate:modelValue":t[9]||(t[9]=_=>e.schemaStore.graph.properties.author.url=_),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"top","default-tags":["author_url"],tagsDescription:"","disable-emoji":""},null,8,["modelValue"])]),_:1},8,["name"])]),_:1},8,["header"]),o(V,{header:r.strings.dates},{default:n(()=>[o(s,{name:r.strings.includeDates,align:""},{content:n(()=>[o(m,{name:"includeDates",modelValue:e.schemaStore.graph.properties.dates.include,"onUpdate:modelValue":t[10]||(t[10]=_=>e.schemaStore.graph.properties.dates.include=_),options:[{label:e.GLOBAL_STRINGS.no,value:!1,activeClass:"dark"},{label:e.GLOBAL_STRINGS.yes,value:!0}]},null,8,["modelValue","options"]),h("div",mr,f(r.strings.includeDatesDescription),1)]),_:1},8,["name"]),e.schemaStore.graph.properties.dates.include?(u(),w(s,{key:0,name:r.strings.datePublished,align:""},{content:n(()=>[o(c,{type:"date",size:"large",dateFormat:"m/d/Y",defaultValue:e.dateStringToLocalJs(e.schemaStore.graph.properties.dates.datePublished),onChange:t[11]||(t[11]=_=>e.schemaStore.graph.properties.dates.datePublished=e.dateJsToLocal(_,"MM/DD/YYYY"))},null,8,["defaultValue"])]),_:1},8,["name"])):k("",!0),e.schemaStore.graph.properties.dates.include?(u(),w(s,{key:1,name:r.strings.dateModified,align:""},{content:n(()=>[o(c,{type:"date",size:"large",dateFormat:"m/d/Y",defaultValue:e.dateStringToLocalJs(e.schemaStore.graph.properties.dates.dateModified),onChange:t[12]||(t[12]=_=>e.schemaStore.graph.properties.dates.dateModified=e.dateJsToLocal(_,"MM/DD/YYYY"))},null,8,["defaultValue"])]),_:1},8,["name"])):k("",!0)]),_:1},8,["header"])])}const dr=$(ir,[["render",pr]]),cr={class:"aioseo-description"},ur={class:"aioseo-description"},qe={__name:"Review",props:{reviewProp:{type:Object,required:!0},multiple:{type:Boolean,default:!0},enableReviewNotes:{type:Boolean,default:!1}},setup(i){const t="aioseo-pro",{getJsonValue:p,setJsonValue:e}=xe(),r={review:a("Review",t),rating:a("Rating",t),headline:a("Headline",t),content:a("Content",t),author:a("Author",t),positiveNotes:a("Positive Notes",t),negativeNotes:a("Negative Notes",t),positiveNotesDescription:a("Enter the positive notes for the review.",t),negativeNotesDescription:a("Enter the negative notes for the review.",t),placeholderPositiveNotes:a("Enter positive notes",t),tagPlaceholderPositiveNotes:a("Add positive note",t),placeholderNegativeNotes:a("Enter negative notes",t),tagPlaceholderNegativeNotes:a("Add negative note",t)};return(v,y)=>{const s=d("base-input"),g=d("base-select");return u(),w(l(ge),{class:Le(["graph-review",{multiple:i.multiple}]),header:r.review},{default:n(()=>[o(l(K),{name:r.rating,align:""},{content:n(()=>[o(s,{size:"medium",type:"number",min:0,step:1,modelValue:i.reviewProp.rating,"onUpdate:modelValue":y[0]||(y[0]=b=>i.reviewProp.rating=b)},null,8,["modelValue"])]),_:1},8,["name"]),o(l(K),{name:r.headline,align:""},{content:n(()=>[o(s,{size:"medium",modelValue:i.reviewProp.headline,"onUpdate:modelValue":y[1]||(y[1]=b=>i.reviewProp.headline=b)},null,8,["modelValue"])]),_:1},8,["name"]),o(l(K),{name:r.content,align:""},{content:n(()=>[o(l(Ge),{size:"medium",modelValue:i.reviewProp.content,"onUpdate:modelValue":y[2]||(y[2]=b=>i.reviewProp.content=b),minHeight:120},null,8,["modelValue"])]),_:1},8,["name"]),o(l(K),{name:r.author},{content:n(()=>[i.multiple?k("",!0):(u(),w(l(ce),{key:0,modelValue:i.reviewProp.author,"onUpdate:modelValue":y[3]||(y[3]=b=>i.reviewProp.author=b),"line-numbers":!1,single:"","tags-context":"schemaReviewAuthor",defaultMenuOrientation:"top","disable-emoji":"",tagsDescription:""},null,8,["modelValue"])),i.multiple?(u(),w(s,{key:1,size:"medium",modelValue:i.reviewProp.author,"onUpdate:modelValue":y[4]||(y[4]=b=>i.reviewProp.author=b)},null,8,["modelValue"])):k("",!0)]),_:1},8,["name"]),i.enableReviewNotes?(u(),w(l(K),{key:0,name:r.positiveNotes},{content:n(()=>[o(g,{size:"medium",multiple:"",taggable:"",options:l(p)(i.reviewProp.positiveNotes)||[],modelValue:l(p)(i.reviewProp.positiveNotes)||[],"onUpdate:modelValue":y[5]||(y[5]=b=>i.reviewProp.positiveNotes=l(e)(b)),placeholder:r.placeholderPositiveNotes,"tag-placeholder":r.tagPlaceholderPositiveNotes},null,8,["options","modelValue","placeholder","tag-placeholder"]),h("div",cr,f(r.positiveNotesDescription),1)]),_:1},8,["name"])):k("",!0),i.enableReviewNotes?(u(),w(l(K),{key:1,name:r.negativeNotes},{content:n(()=>[o(g,{size:"medium",multiple:"",taggable:"",options:l(p)(i.reviewProp.negativeNotes)||[],modelValue:l(p)(i.reviewProp.negativeNotes)||[],"onUpdate:modelValue":y[6]||(y[6]=b=>i.reviewProp.negativeNotes=l(e)(b)),placeholder:r.placeholderNegativeNotes,"tag-placeholder":r.tagPlaceholderNegativeNotes},null,8,["options","modelValue","placeholder","tag-placeholder"]),h("div",ur,f(r.negativeNotesDescription),1)]),_:1},8,["name"])):k("",!0)]),_:1},8,["class","header"])}}},ht="aioseo-pro",gr={setup(){return{schemaStore:Z()}},components:{CoreSettingsRow:K,CoreFieldGroup:ge},data(){return{ratingKey:0,strings:{reviewRating:a("Review Rating",ht),ratingMinimum:a("Rating Minimum",ht),ratingMaximum:a("Rating Maximum",ht)}}},computed:{minimum(){return parseFloat(this.schemaStore.graph.properties.rating.minimum)},maximum(){return parseFloat(this.schemaStore.graph.properties.rating.maximum)}},methods:{updateMinimumRating(i){if(i=parseFloat(i),i>parseFloat(this.schemaStore.graph.properties.rating.maximum)){this.schemaStore.graph.properties.rating.minimum=parseFloat(this.schemaStore.graph.properties.rating.maximum),this.ratingKey++;return}i>this.schemaStore.graph.properties.rating.value&&(this.schemaStore.graph.properties.rating.value=i),this.schemaStore.graph.properties.rating.minimum=i,this.ratingKey++},updateMaximumRating(i){if(i=parseFloat(i),i<parseFloat(this.schemaStore.graph.properties.rating.minimum)){this.schemaStore.graph.properties.rating.maximum=parseFloat(this.schemaStore.graph.properties.rating.minimum),this.ratingKey++;return}i<parseFloat(this.schemaStore.graph.properties.rating.value)&&(this.schemaStore.graph.properties.rating.value=i),this.schemaStore.graph.properties.rating.maximum=i,this.ratingKey++}}};function hr(i,t,p,e,r,v){const y=d("base-input"),s=d("core-settings-row"),g=d("core-field-group");return u(),w(g,{header:r.strings.reviewRating},{default:n(()=>[(u(),w(s,{name:r.strings.ratingMinimum,key:"ratingMinimum"+r.ratingKey,align:""},{content:n(()=>[o(y,{size:"medium",type:"number",min:0,modelValue:e.schemaStore.graph.properties.rating.minimum,step:.1,onBlur:t[0]||(t[0]=b=>v.updateMinimumRating(b))},null,8,["modelValue"])]),_:1},8,["name"])),(u(),w(s,{name:r.strings.ratingMaximum,key:"ratingMaximum"+r.ratingKey,align:""},{content:n(()=>[o(y,{size:"medium",type:"number",min:0,modelValue:e.schemaStore.graph.properties.rating.maximum,step:.1,onBlur:t[1]||(t[1]=b=>v.updateMaximumRating(b))},null,8,["modelValue"])]),_:1},8,["name"]))]),_:1},8,["header"])}const Ye=$(gr,[["render",hr]]),he="aioseo-pro",fr={setup(){const{initSchemaEditor:i}=te();return{dateJsToLocal:ke,dateStringToLocalJs:Ue,initSchemaEditor:i,schemaStore:Z()}},components:{BaseDatePicker:Ae,BaseRadio:Qe,CoreFieldGroupRepeater:Ie,CoreHtmlTagsEditor:ce,CoreImageUploader:_e,CoreSettingsRow:K,Review:qe,ReviewRating:Ye},data(){return{editionDefaults:{name:"",bookEdition:"",author:"",isbn:"",datePublished:"",format:""},strings:{name:a("Title",he),description:a("Description",he),author:a("Author",he),image:a("Image",he),editions:a("Editions",he),edition:a("Edition",he),bookEdition:a("Book Edition",he),isbn:a("ISBN",he),datePublished:a("Date Published",he),bookFormat:a("Book Format",he),paperback:a("Paperback",he),hardcover:a("Hardcover",he),eBook:a("eBook",he),audioBook:a("Audiobook",he)}}},beforeMount(){const i={id:"#aioseo-book-"+new Date().getTime().toString(36),slug:"book",graphName:"Book",label:a("Book",he),properties:{name:"#post_title",description:"",author:"",editions:[JSON.parse(JSON.stringify(this.editionDefaults))],image:"",rating:{minimum:1,maximum:5},review:{rating:"",headline:"",content:"",author:"#author_name"}}};this.initSchemaEditor(i)}},_r={class:"graph-editor-fields graph-book"};function Sr(i,t,p,e,r,v){const y=d("core-html-tags-editor"),s=d("core-settings-row"),g=d("base-input"),b=d("core-image-uploader"),S=d("base-radio"),V=d("base-date-picker"),m=d("core-field-group-repeater"),c=d("review"),_=d("review-rating");return u(),E("div",_r,[o(s,{name:r.strings.name},{content:n(()=>[o(y,{modelValue:e.schemaStore.graph.properties.name,"onUpdate:modelValue":t[0]||(t[0]=C=>e.schemaStore.graph.properties.name=C),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_title","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.description},{content:n(()=>[o(y,{modelValue:e.schemaStore.graph.properties.description,"onUpdate:modelValue":t[1]||(t[1]=C=>e.schemaStore.graph.properties.description=C),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_excerpt","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.author},{content:n(()=>[o(g,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.author,"onUpdate:modelValue":t[2]||(t[2]=C=>e.schemaStore.graph.properties.author=C)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{class:"image-field",name:r.strings.image,align:""},{content:n(()=>[o(b,{modelValue:e.schemaStore.graph.properties.image,"onUpdate:modelValue":t[3]||(t[3]=C=>e.schemaStore.graph.properties.image=C)},null,8,["modelValue"])]),_:1},8,["name"]),o(m,{groupProp:e.schemaStore.graph.properties.editions,defaults:r.editionDefaults,pluralName:r.strings.editions,singularName:r.strings.edition},{"fields-inner":n(({groupIndex:C})=>[o(s,{name:r.strings.name},{content:n(()=>[o(g,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.editions[C].name,"onUpdate:modelValue":U=>e.schemaStore.graph.properties.editions[C].name=U},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["name"]),o(s,{name:r.strings.bookEdition},{content:n(()=>[o(g,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.editions[C].bookEdition,"onUpdate:modelValue":U=>e.schemaStore.graph.properties.editions[C].bookEdition=U},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["name"]),o(s,{name:r.strings.author},{content:n(()=>[o(g,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.editions[C].author,"onUpdate:modelValue":U=>e.schemaStore.graph.properties.editions[C].author=U},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["name"]),o(s,{name:r.strings.isbn},{content:n(()=>[o(g,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.editions[C].isbn,"onUpdate:modelValue":U=>e.schemaStore.graph.properties.editions[C].isbn=U},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["name"]),o(s,{name:r.strings.bookFormat},{content:n(()=>[o(S,{size:"small",name:`book-format-${C}`,modelValue:e.schemaStore.graph.properties.editions[C].bookFormat==="Paperback","onUpdate:modelValue":U=>e.schemaStore.graph.properties.editions[C].bookFormat="Paperback",type:2},{default:n(()=>[N(f(r.strings.paperback),1)]),_:1},8,["name","modelValue","onUpdate:modelValue"]),o(S,{size:"small",name:`book-format-${C}`,modelValue:e.schemaStore.graph.properties.editions[C].bookFormat==="Hardcover","onUpdate:modelValue":U=>e.schemaStore.graph.properties.editions[C].bookFormat="Hardcover",type:2},{default:n(()=>[N(f(r.strings.hardcover),1)]),_:1},8,["name","modelValue","onUpdate:modelValue"]),o(S,{size:"small",name:`book-format-${C}`,modelValue:e.schemaStore.graph.properties.editions[C].bookFormat==="EBook","onUpdate:modelValue":U=>e.schemaStore.graph.properties.editions[C].bookFormat="EBook",type:2},{default:n(()=>[N(f(r.strings.eBook),1)]),_:1},8,["name","modelValue","onUpdate:modelValue"]),o(S,{size:"small",name:`book-format-${C}`,modelValue:e.schemaStore.graph.properties.editions[C].bookFormat==="AudiobookFormat",type:2,"onUpdate:modelValue":U=>e.schemaStore.graph.properties.editions[C].bookFormat="AudiobookFormat"},{default:n(()=>[N(f(r.strings.audioBook),1)]),_:1},8,["name","modelValue","onUpdate:modelValue"])]),_:2},1032,["name"]),o(s,{name:r.strings.datePublished,align:""},{content:n(()=>[o(V,{type:"date",size:"large",dateFormat:"m/d/Y",defaultValue:e.dateStringToLocalJs(e.schemaStore.graph.properties.editions[C].datePublished),onChange:U=>e.schemaStore.graph.properties.editions[C].datePublished=e.dateJsToLocal(U,"MM/DD/YYYY")},null,8,["defaultValue","onChange"])]),_:2},1032,["name"])]),_:1},8,["groupProp","defaults","pluralName","singularName"]),o(c,{reviewProp:e.schemaStore.graph.properties.review,multiple:!1},null,8,["reviewProp"]),o(_)])}const vr=$(fr,[["render",Sr]]),x="all-in-one-seo-pack",yr={setup(){const{initSchemaEditor:i}=te();return{CURRENCY_LIST:fe,SCHEMA_DISTANCE_UNIT:ao,SCHEMA_DRIVE_WHEEL_CONFIGURATION:oo,SCHEMA_VEHICLE_AVAILABILITY:to,SCHEMA_VEHICLE_OFFER_ITEM_CONDITION:eo,dateJsToLocal:ke,dateStringToLocalJs:Ue,initSchemaEditor:i,postEditorStore:Pe(),rootStore:we(),schemaStore:Z()}},components:{BaseDatePicker:Ae,CoreFieldGroup:ge,CoreHtmlTagsEditor:ce,CoreImageUploader:_e,CoreSettingsRow:K},data(){return{strings:{name:a("Name",x),description:a("Description",x),brand:a("Brand",x),image:a("Image",x),identifiers:a("Identifiers",x),vehicleIdentificationNumber:a("Vehicle Identification Number",x),vehicleIdentificationNumberDescription:a("The Vehicle Identification Number (VIN) is a unique serial number used by the automotive industry to identify individual motor vehicles.",x),model:a("Model",x),modelDescription:a("The model of the vehicle.",x),vehicleConfiguration:a("Configuration",x),vehicleConfigurationDescription:a("A short text indicating the configuration of the vehicle, e.g. '5dr hatchback ST 2.5 MT 225 hp' or 'limited edition'.",x),vehicleModelDate:a("Model Year",x),vehicleModelDateDescription:a("The release year of the vehicle's model.",x),offer:a("Offer",x),price:a("Price",x),currency:a("Currency",x),priceValidUntil:a("Price Valid Until",x),priceValidDescription:a("The date until this pricing lasts (optional).",x),availability:a("Availability",x),attributes:a("Attributes",x),color:a("Color",x),vehicleInteriorColor:a("Interior Color",x),vehicleInteriorColorDescription:a("The color or color combination of the interior of the vehicle.",x),vehicleInteriorType:a("Interior Type",x),vehicleInteriorTypeDescription:a("The type or material of the interior of the vehicle (e.g. synthetic fabric, leather, wood, etc.).",x),bodyType:a("Body Type",x),bodyTypeDescription:a("Indicates the design and body style of the vehicle (e.g. station wagon, hatchback, etc.).",x),driveWheelConfiguration:a("Drive Wheel Configuration",x),driveWheelConfigurationDescription:a("The drive wheel configuration, i.e. which roadwheels will receive torque from the vehicle's engine via the drivetrain.",x),vehicleTransmission:a("Transmission",x),vehicleTransmissionDescription:a('The type of component used for transmitting the power from a rotating power source to the wheels or other relevant component(s) ("gearbox" for cars).',x),vehicleSeatingCapacity:a("Seating Capacity",x),vehicleSeatingCapacityDescription:a("The number of passengers that can be seated in the vehicle",x),itemCondition:a("Item Condition",x),vehicleEngineFuelType:a("Fuel Type",x),vehicleEngineFuelTypeDescription:a(`The type of fuel that's suitable for the engine of the vehicle, e.g. "gasoline" or "electric".`,x),numberOfDoors:a("Number of Doors",x),mileageFromOdometer:a("Odometer Mileage",x),mileageFromOdometerValue:a("Amount",x),mileageFromOdometerUnitCode:a("Unit",x)}}},methods:{getAvailability(i){return this.SCHEMA_VEHICLE_AVAILABILITY.find(t=>t.value===i)},saveAvailability(i){this.schemaStore.graph.properties.offer.availability=i},getCurrency(i){return this.CURRENCY_LIST.find(t=>t.value===i)},saveCurrency(i){this.schemaStore.graph.properties.offer.currency=i},getItemCondition(i){return this.SCHEMA_VEHICLE_OFFER_ITEM_CONDITION.find(t=>t.value===i)},saveItemCondition(i){this.schemaStore.graph.properties.attributes.itemCondition=i},getDriveWheelConfiguration(i){return this.SCHEMA_DRIVE_WHEEL_CONFIGURATION.find(t=>t.value===i)},saveDriveWheelConfiguration(i){this.schemaStore.graph.properties.attributes.driveWheelConfiguration=i}},beforeMount(){const i={id:"#aioseo-product-review-"+new Date().getTime().toString(36),slug:"product-review",graphName:"ProductReview",label:a("Product Review",x),properties:{autogenerate:!1,name:"#post_title",description:"#post_excerpt",brand:"",image:"",identifiers:{vehicleIdentificationNumber:"",model:"",vehicleConfiguration:"",vehicleModelDate:""},offer:{price:"",currency:"",availability:"",validUntil:""},attributes:{color:"",vehicleInteriorColor:"",vehicleInteriorType:"",bodyType:"",driveWheelConfiguration:"",vehicleTransmission:"",vehicleSeatingCapacity:"",itemCondition:"",numberOfDoors:"",vehicleEngineFuelType:""},mileageFromOdometer:{value:"",unitCode:""}}};this.initSchemaEditor(i)},async mounted(){this.schemaStore.graph.id||await st().then(i=>{this.schemaStore.graph?.properties&&(this.schemaStore.graph.properties.image=i,this.$nextTick(()=>{this.schemaStore.isDirty=!1}))})}},br={class:"graph-editor-fields graph-car"},Vr={class:"aioseo-description"},Tr={class:"aioseo-description"},Cr={class:"aioseo-description"},Dr={class:"aioseo-description"},wr={class:"aioseo-description"},Ur={class:"aioseo-description"},kr={class:"aioseo-description"},Ar={class:"aioseo-description"},Er={class:"aioseo-description"},Nr={class:"aioseo-description"},Pr={class:"aioseo-description"},Mr={class:"aioseo-description"};function zr(i,t,p,e,r,v){const y=d("core-html-tags-editor"),s=d("core-settings-row"),g=d("base-input"),b=d("core-image-uploader"),S=d("core-field-group"),V=d("base-select"),m=d("base-date-picker");return u(),E("div",br,[o(s,{name:r.strings.name},{content:n(()=>[o(y,{modelValue:e.schemaStore.graph.properties.name,"onUpdate:modelValue":t[0]||(t[0]=c=>e.schemaStore.graph.properties.name=c),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_title","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.description},{content:n(()=>[o(y,{modelValue:e.schemaStore.graph.properties.description,"onUpdate:modelValue":t[1]||(t[1]=c=>e.schemaStore.graph.properties.description=c),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_excerpt","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.brand,align:""},{content:n(()=>[o(g,{size:"medium",modelValue:e.schemaStore.graph.properties.brand,"onUpdate:modelValue":t[2]||(t[2]=c=>e.schemaStore.graph.properties.brand=c)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{class:"image-field",name:r.strings.image,align:""},{content:n(()=>[o(b,{modelValue:e.schemaStore.graph.properties.image,"onUpdate:modelValue":t[3]||(t[3]=c=>e.schemaStore.graph.properties.image=c)},null,8,["modelValue"])]),_:1},8,["name"]),o(S,{header:r.strings.identifiers},{default:n(()=>[o(s,{name:r.strings.vehicleIdentificationNumber,align:""},{content:n(()=>[o(g,{size:"medium",modelValue:e.schemaStore.graph.properties.identifiers.vehicleIdentificationNumber,"onUpdate:modelValue":t[4]||(t[4]=c=>e.schemaStore.graph.properties.identifiers.vehicleIdentificationNumber=c)},null,8,["modelValue"]),h("div",Vr,f(r.strings.vehicleIdentificationNumberDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.vehicleConfiguration,align:""},{content:n(()=>[o(g,{size:"medium",modelValue:e.schemaStore.graph.properties.identifiers.vehicleConfiguration,"onUpdate:modelValue":t[5]||(t[5]=c=>e.schemaStore.graph.properties.identifiers.vehicleConfiguration=c)},null,8,["modelValue"]),h("div",Tr,f(r.strings.vehicleConfigurationDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.model,align:""},{content:n(()=>[o(g,{size:"medium",modelValue:e.schemaStore.graph.properties.identifiers.model,"onUpdate:modelValue":t[6]||(t[6]=c=>e.schemaStore.graph.properties.identifiers.model=c)},null,8,["modelValue"]),h("div",Cr,f(r.strings.modelDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.vehicleModelDate,align:""},{content:n(()=>[o(g,{size:"medium",type:"number",modelValue:e.schemaStore.graph.properties.identifiers.vehicleModelDate,"onUpdate:modelValue":t[7]||(t[7]=c=>e.schemaStore.graph.properties.identifiers.vehicleModelDate=c)},null,8,["modelValue"]),h("div",Dr,f(r.strings.vehicleModelDateDescription),1)]),_:1},8,["name"])]),_:1},8,["header"]),o(S,{header:r.strings.offer},{default:n(()=>[o(s,{name:r.strings.price,align:""},{content:n(()=>[o(g,{size:"medium",type:"number",min:0,step:.01,modelValue:e.schemaStore.graph.properties.offer.price,"onUpdate:modelValue":t[8]||(t[8]=c=>e.schemaStore.graph.properties.offer.price=c)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.currency,align:""},{content:n(()=>[o(V,{size:"medium",options:e.CURRENCY_LIST,modelValue:v.getCurrency(e.schemaStore.graph.properties.offer.currency),"onUpdate:modelValue":t[9]||(t[9]=c=>v.saveCurrency(c.value))},null,8,["options","modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.priceValidUntil,align:""},{content:n(()=>[o(m,{type:"date",size:"large",dateFormat:"m/d/Y",defaultValue:e.dateStringToLocalJs(e.schemaStore.graph.properties.offer.validUntil),onChange:t[10]||(t[10]=c=>e.schemaStore.graph.properties.offer.validUntil=e.dateJsToLocal(c,"MM/DD/YYYY"))},null,8,["defaultValue"]),h("div",wr,f(r.strings.priceValidDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.availability,align:""},{content:n(()=>[o(V,{class:"aioseo-product-availibility",size:"medium",options:e.SCHEMA_VEHICLE_AVAILABILITY,modelValue:v.getAvailability(e.schemaStore.graph.properties.offer.availability),"onUpdate:modelValue":t[11]||(t[11]=c=>v.saveAvailability(c.value))},null,8,["options","modelValue"])]),_:1},8,["name"])]),_:1},8,["header"]),o(S,{header:r.strings.attributes},{default:n(()=>[o(s,{name:r.strings.color,align:""},{content:n(()=>[o(g,{size:"medium",modelValue:e.schemaStore.graph.properties.attributes.color,"onUpdate:modelValue":t[12]||(t[12]=c=>e.schemaStore.graph.properties.attributes.color=c)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.vehicleInteriorColor,align:""},{content:n(()=>[o(g,{size:"medium",modelValue:e.schemaStore.graph.properties.attributes.vehicleInteriorColor,"onUpdate:modelValue":t[13]||(t[13]=c=>e.schemaStore.graph.properties.attributes.vehicleInteriorColor=c)},null,8,["modelValue"]),h("div",Ur,f(r.strings.vehicleInteriorColorDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.vehicleInteriorType,align:""},{content:n(()=>[o(g,{size:"medium",modelValue:e.schemaStore.graph.properties.attributes.vehicleInteriorType,"onUpdate:modelValue":t[14]||(t[14]=c=>e.schemaStore.graph.properties.attributes.vehicleInteriorType=c)},null,8,["modelValue"]),h("div",kr,f(r.strings.vehicleInteriorTypeDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.bodyType,align:""},{content:n(()=>[o(g,{size:"medium",modelValue:e.schemaStore.graph.properties.attributes.bodyType,"onUpdate:modelValue":t[15]||(t[15]=c=>e.schemaStore.graph.properties.attributes.bodyType=c)},null,8,["modelValue"]),h("div",Ar,f(r.strings.bodyTypeDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.driveWheelConfiguration,align:""},{content:n(()=>[o(V,{size:"medium",options:e.SCHEMA_DRIVE_WHEEL_CONFIGURATION,modelValue:v.getDriveWheelConfiguration(e.schemaStore.graph.properties.attributes.driveWheelConfiguration),"onUpdate:modelValue":t[16]||(t[16]=c=>v.saveDriveWheelConfiguration(c.value))},null,8,["options","modelValue"]),h("div",Er,f(r.strings.driveWheelConfigurationDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.vehicleTransmission,align:""},{content:n(()=>[o(g,{size:"medium",modelValue:e.schemaStore.graph.properties.attributes.vehicleTransmission,"onUpdate:modelValue":t[17]||(t[17]=c=>e.schemaStore.graph.properties.attributes.vehicleTransmission=c)},null,8,["modelValue"]),h("div",Nr,f(r.strings.vehicleTransmissionDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.vehicleSeatingCapacity,align:""},{content:n(()=>[o(g,{size:"medium",type:"number",modelValue:e.schemaStore.graph.properties.attributes.vehicleSeatingCapacity,"onUpdate:modelValue":t[18]||(t[18]=c=>e.schemaStore.graph.properties.attributes.vehicleSeatingCapacity=c)},null,8,["modelValue"]),h("div",Pr,f(r.strings.vehicleSeatingCapacityDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.numberOfDoors,align:""},{content:n(()=>[o(g,{size:"medium",type:"number",modelValue:e.schemaStore.graph.properties.attributes.numberOfDoors,"onUpdate:modelValue":t[19]||(t[19]=c=>e.schemaStore.graph.properties.attributes.numberOfDoors=c)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.itemCondition,align:""},{content:n(()=>[o(V,{size:"medium",options:e.SCHEMA_VEHICLE_OFFER_ITEM_CONDITION,modelValue:v.getItemCondition(e.schemaStore.graph.properties.attributes.itemCondition),"onUpdate:modelValue":t[20]||(t[20]=c=>v.saveItemCondition(c.value))},null,8,["options","modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.vehicleEngineFuelType,align:""},{content:n(()=>[o(g,{size:"medium",modelValue:e.schemaStore.graph.properties.attributes.vehicleEngineFuelType,"onUpdate:modelValue":t[21]||(t[21]=c=>e.schemaStore.graph.properties.attributes.vehicleEngineFuelType=c)},null,8,["modelValue"]),h("div",Mr,f(r.strings.vehicleEngineFuelTypeDescription),1)]),_:1},8,["name"])]),_:1},8,["header"]),v.getItemCondition(e.schemaStore.graph.properties.attributes.itemCondition)?.label.toLowerCase()==="used"?(u(),w(S,{key:0,header:r.strings.mileageFromOdometer},{default:n(()=>[o(s,{name:r.strings.mileageFromOdometerValue,align:""},{content:n(()=>[o(g,{type:"number",size:"medium",min:0,step:1,modelValue:e.schemaStore.graph.properties.mileageFromOdometer.value,"onUpdate:modelValue":t[22]||(t[22]=c=>e.schemaStore.graph.properties.mileageFromOdometer.value=c)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.mileageFromOdometerUnitCode,align:""},{content:n(()=>[o(V,{size:"medium",options:e.SCHEMA_DISTANCE_UNIT,modelValue:e.SCHEMA_DISTANCE_UNIT.find(c=>c.value===e.schemaStore.graph.properties.mileageFromOdometer.unitCode),"onUpdate:modelValue":t[23]||(t[23]=c=>e.schemaStore.graph.properties.mileageFromOdometer.unitCode=c.value)},null,8,["options","modelValue"])]),_:1},8,["name"])]),_:1},8,["header"])):k("",!0)])}const Or=$(yr,[["render",zr]]),R="aioseo-pro",Rr={setup(){const{getJsonValue:i,setJsonValue:t}=xe(),{initSchemaEditor:p}=te();return{COURSE_MODE_LIST:so,COURSE_REPEAT_FREQUENCY:no,CURRENCY_LIST:fe,GLOBAL_STRINGS:Te,OFFER_PRICING_CATEGORY_LIST:ro,dateJsToLocal:ke,dateStringToLocalJs:Ue,getJsonValue:i,initSchemaEditor:p,optionsStore:Be(),postEditorStore:Pe(),rootStore:we(),schemaStore:Z(),setJsonValue:t}},components:{BaseDatePicker:Ae,BaseRadioToggle:He,BaseTextarea:Ge,CoreFieldGroup:ge,CoreFieldGroupRepeater:Ie,CoreHtmlTagsEditor:ce,CoreImageUploader:_e,CoreSettingsRow:K,Review:qe,ReviewRating:Ye},data(){return{courseInstanceDefaults:{mode:"Online",location:"",workload:null,schedule:{duration:null,repeatCount:0,repeatFrequency:"",startDate:"",endDate:""},instructor:{name:"",description:"",image:""}},offerDefaults:{category:"Paid",price:"",currency:"USD"},reviewDefaults:{rating:"",headline:"",content:"",author:""},syllabusSectionDefaults:{name:"",description:"",timeRequired:""},strings:{autogenerate:a("Autogenerate",R),name:a("Name",R),description:a("Description",R),about:a("About",R),prerequisites:a("Prerequisites",R),publishDate:a("Publish Date",R),provider:a("Provider",R),url:a("URL",R),image:a("Image",R),organizationDescription:de(a("Leave this empty if you want to use the Organization you've set under %1$s.",R),ve.getPlainLink(a("Search Appearance > Knowledge Graph",R),this.rootStore.aioseo.urls.aio.searchAppearance+"#/global-settings")),offers:a("Offers",R),offer:a("Offer",R),pricingCategory:a("Pricing Category",R),price:a("Price",R),currency:a("Currency",R),courseInstances:a("Course Instances",R),courseInstance:a("Course Instance",R),mode:a("Mode",R),location:a("Location",R),workload:a("Workload",R),schedule:a("Schedule",R),duration:a("Duration",R),repeatCount:a("Repeat Count",R),repeatFrequency:a("Repeat Frequency",R),startDate:a("Start Date",R),endDate:a("End Date",R),instructor:a("Instructor",R),reviews:a("Reviews",R),review:a("Review",R),syllabusSections:a("Syllabus Sections",R),syllabusSection:a("Syllabus Section",R),timeRequired:a("Time Required",R),teaches:a("Teaches",R),totalHistoricalEnrollment:a("Total Historical Enrollment",R),video:a("Video",R),placeholder:a("Type to enter an item...",R),tagPlaceholder:a("Press enter to create an item",R),aboutDescription:a("Describe the skills that the user will develop by taking the course, if applicable.",R),teachesDescription:a("The learning outcomes or specific knowledge the user will learn by taking the course, if applicable.",R),prerequisitesDescription:a("Any prior knowledge that is needed for the course, if applicable. This can be represented by describing the prior knowledge or linking to another course (or both).",R),workloadDescription:a("The total average time (in minutes) it takes for a user to complete the entire course.",R),durationDescription:a('The average time (in minutes) a user can expect to spend during each repeat interval. For example, if the repeat frequency is "Monthly", then the user could expect to spend 2 hours per month on the course.',R),syllabusSectionDescription:a("Information about the different modules that make up the course, if applicable.",R)}}},computed:{isMemberMouseCoursesActive(){return this.rootStore.aioseo.data.isMemberMouseCoursesActive&&this.postEditorStore.currentPost.postType==="mmcs-course"},isMemberPressCoursesActive(){return this.rootStore.aioseo.data.isMemberPressCoursesActive&&this.postEditorStore.currentPost.postType==="mpcs-course"},autogenerateDescription(){let i="";return this.isMemberMouseCoursesActive&&(i="MemberMouse Courses"),this.isMemberPressCoursesActive&&(i="MemberPress Courses"),de(a("Disable this setting if you'd like to edit all fields manually instead of letting %1$s automatically generate them for you based on the course data from %2$s.",R),"AIOSEO",i)},showField(){return!this.isMemberMouseCoursesActive&&!this.isMemberPressCoursesActive?!0:!this.schemaStore.graph.properties.autogenerate}},beforeMount(){const i={id:"#aioseo-course-"+new Date().getTime().toString(36),slug:"course",graphName:"Course",label:a("Course",R),properties:{autogenerate:!0,name:"#post_title",description:"#post_excerpt",publishDate:"",about:"",prerequisites:"",teaches:"",image:"",provider:{name:"",url:"",image:""},offers:[JSON.parse(JSON.stringify(this.offerDefaults))],courseInstances:[JSON.parse(JSON.stringify(this.courseInstanceDefaults))],reviews:[JSON.parse(JSON.stringify(this.reviewDefaults))],rating:{minimum:1,maximum:5},syllabusSections:[JSON.parse(JSON.stringify(this.syllabusSectionDefaults))]}};this.initSchemaEditor(i)}},Lr={class:"graph-editor-fields graph-course"},Gr={class:"aioseo-description"},xr={class:"aioseo-description"},Ir={class:"aioseo-description"},Yr={class:"aioseo-description"},Jr=["innerHTML"],Fr={class:"aioseo-description"},Br={class:"aioseo-description"};function Hr(i,t,p,e,r,v){const y=d("base-radio-toggle"),s=d("core-settings-row"),g=d("core-html-tags-editor"),b=d("base-date-picker"),S=d("base-select"),V=d("core-image-uploader"),m=d("base-input"),c=d("core-field-group"),_=d("core-field-group-repeater"),C=d("base-textarea"),U=d("review"),T=d("review-rating");return u(),E("div",Lr,[v.isMemberMouseCoursesActive||v.isMemberPressCoursesActive?(u(),w(s,{key:0,name:r.strings.autogenerate,align:""},{content:n(()=>[o(y,{name:"autogenerate",modelValue:e.schemaStore.graph.properties.autogenerate,"onUpdate:modelValue":t[0]||(t[0]=A=>e.schemaStore.graph.properties.autogenerate=A),options:[{label:e.GLOBAL_STRINGS.no,value:!1,activeClass:"dark"},{label:e.GLOBAL_STRINGS.yes,value:!0}]},null,8,["modelValue","options"]),h("div",Gr,f(v.autogenerateDescription),1)]),_:1},8,["name"])):k("",!0),o(s,{name:r.strings.name},{content:n(()=>[o(g,{modelValue:e.schemaStore.graph.properties.name,"onUpdate:modelValue":t[1]||(t[1]=A=>e.schemaStore.graph.properties.name=A),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_title","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.description},{content:n(()=>[o(g,{modelValue:e.schemaStore.graph.properties.description,"onUpdate:modelValue":t[2]||(t[2]=A=>e.schemaStore.graph.properties.description=A),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_excerpt","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.publishDate,align:""},{content:n(()=>[o(b,{type:"date",size:"large",dateFormat:"m/d/Y",defaultValue:e.dateStringToLocalJs(e.schemaStore.graph.properties.publishDate),onChange:t[3]||(t[3]=A=>e.schemaStore.graph.properties.publishDate=e.dateJsToLocal(A,"MM/DD/YYYY"))},null,8,["defaultValue"])]),_:1},8,["name"]),o(s,{name:r.strings.about,align:""},{content:n(()=>[o(S,{size:"medium",multiple:"",taggable:"",options:e.getJsonValue(e.schemaStore.graph.properties.about)||[],modelValue:e.getJsonValue(e.schemaStore.graph.properties.about)||[],"onUpdate:modelValue":t[4]||(t[4]=A=>e.schemaStore.graph.properties.about=e.setJsonValue(A)),placeholder:r.strings.placeholder,"tag-placeholder":r.strings.tagPlaceholder},null,8,["options","modelValue","placeholder","tag-placeholder"]),h("div",xr,f(r.strings.aboutDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.teaches,align:""},{content:n(()=>[o(S,{size:"medium",multiple:"",taggable:"",options:e.getJsonValue(e.schemaStore.graph.properties.teaches)||[],modelValue:e.getJsonValue(e.schemaStore.graph.properties.teaches)||[],"onUpdate:modelValue":t[5]||(t[5]=A=>e.schemaStore.graph.properties.teaches=e.setJsonValue(A)),placeholder:r.strings.placeholder,"tag-placeholder":r.strings.tagPlaceholder},null,8,["options","modelValue","placeholder","tag-placeholder"]),h("div",Ir,f(r.strings.teachesDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.prerequisites,align:""},{content:n(()=>[o(S,{size:"medium",multiple:"",taggable:"",options:e.getJsonValue(e.schemaStore.graph.properties.prerequisites)||[],modelValue:e.getJsonValue(e.schemaStore.graph.properties.prerequisites)||[],"onUpdate:modelValue":t[6]||(t[6]=A=>e.schemaStore.graph.properties.prerequisites=e.setJsonValue(A)),placeholder:r.strings.placeholder,"tag-placeholder":r.strings.tagPlaceholder},null,8,["options","modelValue","placeholder","tag-placeholder"]),h("div",Yr,f(r.strings.prerequisitesDescription),1)]),_:1},8,["name"]),o(s,{class:"image-field",name:r.strings.image,align:""},{content:n(()=>[o(V,{modelValue:e.schemaStore.graph.properties.image,"onUpdate:modelValue":t[7]||(t[7]=A=>e.schemaStore.graph.properties.image=A)},null,8,["modelValue"])]),_:1},8,["name"]),o(c,{header:r.strings.provider},{default:n(()=>[o(s,{name:r.strings.name},{content:n(()=>[o(m,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.provider.name,"onUpdate:modelValue":t[8]||(t[8]=A=>e.schemaStore.graph.properties.provider.name=A)},null,8,["modelValue"]),e.optionsStore.options.searchAppearance.global.schema.siteRepresents==="organization"?(u(),E("div",{key:0,class:"aioseo-description",innerHTML:r.strings.organizationDescription},null,8,Jr)):k("",!0)]),_:1},8,["name"]),o(s,{name:r.strings.url},{content:n(()=>[o(m,{type:"text",size:"medium",validation:"url",modelValue:e.schemaStore.graph.properties.provider.url,"onUpdate:modelValue":t[9]||(t[9]=A=>e.schemaStore.graph.properties.provider.url=A)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{class:"image-field",name:r.strings.image,align:""},{content:n(()=>[o(V,{modelValue:e.schemaStore.graph.properties.provider.image,"onUpdate:modelValue":t[10]||(t[10]=A=>e.schemaStore.graph.properties.provider.image=A)},null,8,["modelValue"])]),_:1},8,["name"])]),_:1},8,["header"]),v.showField?(u(),w(_,{key:1,groupProp:e.schemaStore.graph.properties.offers,defaults:r.offerDefaults,pluralName:r.strings.offers,singularName:r.strings.offer},{"fields-inner":n(({groupIndex:A})=>[o(s,{name:r.strings.pricingCategory,align:""},{content:n(()=>[o(S,{size:"medium",options:e.OFFER_PRICING_CATEGORY_LIST,modelValue:e.OFFER_PRICING_CATEGORY_LIST.find(D=>D.value===e.schemaStore.graph.properties.offers[A].category),"onUpdate:modelValue":D=>e.schemaStore.graph.properties.offers[A].category=D.value},null,8,["options","modelValue","onUpdate:modelValue"])]),_:2},1032,["name"]),e.schemaStore.graph.properties.offers[A].category.toLowerCase()!=="free"?(u(),E(Ve,{key:0},[o(s,{name:r.strings.price,align:""},{content:n(()=>[o(m,{size:"medium",type:"number",min:0,step:.01,modelValue:e.schemaStore.graph.properties.offers[A].price,"onUpdate:modelValue":D=>e.schemaStore.graph.properties.offers[A].price=D},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["name"]),o(s,{name:r.strings.currency,align:""},{content:n(()=>[o(S,{size:"medium",options:e.CURRENCY_LIST,modelValue:e.CURRENCY_LIST.find(D=>D.value===e.schemaStore.graph.properties.offers[A].currency),"onUpdate:modelValue":D=>e.schemaStore.graph.properties.offers[A].currency=D.value},null,8,["options","modelValue","onUpdate:modelValue"])]),_:2},1032,["name"])],64)):k("",!0)]),_:1},8,["groupProp","defaults","pluralName","singularName"])):k("",!0),o(_,{groupProp:e.schemaStore.graph.properties.courseInstances,defaults:r.courseInstanceDefaults,pluralName:r.strings.courseInstances,singularName:r.strings.courseInstance},{"fields-inner":n(({groupIndex:A})=>[o(s,{name:r.strings.mode,align:""},{content:n(()=>[o(S,{size:"medium",options:e.COURSE_MODE_LIST,modelValue:e.COURSE_MODE_LIST.find(D=>D.value===e.schemaStore.graph.properties.courseInstances[A].mode),"onUpdate:modelValue":D=>e.schemaStore.graph.properties.courseInstances[A].mode=D.value},null,8,["options","modelValue","onUpdate:modelValue"])]),_:2},1032,["name"]),e.schemaStore.graph.properties.courseInstances[A].mode!=="Online"?(u(),w(s,{key:0,name:r.strings.location},{content:n(()=>[o(m,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.courseInstances[A].location,"onUpdate:modelValue":D=>e.schemaStore.graph.properties.courseInstances[A].location=D},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["name"])):k("",!0),o(s,{name:r.strings.workload},{content:n(()=>[o(m,{type:"number",size:"medium",min:0,step:1,modelValue:e.schemaStore.graph.properties.courseInstances[A].workload,"onUpdate:modelValue":D=>e.schemaStore.graph.properties.courseInstances[A].workload=D},null,8,["modelValue","onUpdate:modelValue"]),h("div",Fr,f(r.strings.workloadDescription),1)]),_:2},1032,["name"]),o(c,{header:r.strings.schedule},{default:n(()=>[o(s,{name:r.strings.duration},{content:n(()=>[o(m,{type:"number",size:"medium",min:0,step:1,modelValue:e.schemaStore.graph.properties.courseInstances[A].schedule.duration,"onUpdate:modelValue":D=>e.schemaStore.graph.properties.courseInstances[A].schedule.duration=D},null,8,["modelValue","onUpdate:modelValue"]),h("div",Br,f(r.strings.durationDescription),1)]),_:2},1032,["name"]),o(s,{name:r.strings.repeatCount,align:""},{content:n(()=>[o(m,{size:"medium",type:"number",min:0,step:1,modelValue:e.schemaStore.graph.properties.courseInstances[A].schedule.repeatCount,"onUpdate:modelValue":D=>e.schemaStore.graph.properties.courseInstances[A].schedule.repeatCount=D},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["name"]),o(s,{name:r.strings.repeatFrequency,align:""},{content:n(()=>[o(S,{size:"medium",options:e.COURSE_REPEAT_FREQUENCY,modelValue:e.COURSE_REPEAT_FREQUENCY.find(D=>D.value===e.schemaStore.graph.properties.courseInstances[A].schedule.repeatFrequency),"onUpdate:modelValue":D=>e.schemaStore.graph.properties.courseInstances[A].schedule.repeatFrequency=D.value},null,8,["options","modelValue","onUpdate:modelValue"])]),_:2},1032,["name"]),o(s,{name:r.strings.startDate,align:""},{content:n(()=>[o(b,{type:"date",size:"large",dateFormat:"m/d/Y",defaultValue:e.dateStringToLocalJs(e.schemaStore.graph.properties.courseInstances[A].schedule.startDate),onChange:D=>e.schemaStore.graph.properties.courseInstances[A].schedule.startDate=e.dateJsToLocal(D,"MM/DD/YYYY")},null,8,["defaultValue","onChange"])]),_:2},1032,["name"]),o(s,{name:r.strings.endDate,align:""},{content:n(()=>[o(b,{type:"date",size:"large",dateFormat:"m/d/Y",defaultValue:e.dateStringToLocalJs(e.schemaStore.graph.properties.courseInstances[A].schedule.endDate),onChange:D=>e.schemaStore.graph.properties.courseInstances[A].schedule.endDate=e.dateJsToLocal(D,"MM/DD/YYYY")},null,8,["defaultValue","onChange"])]),_:2},1032,["name"])]),_:2},1032,["header"]),o(c,{header:r.strings.instructor},{default:n(()=>[o(s,{name:r.strings.name},{content:n(()=>[o(m,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.courseInstances[A].instructor.name,"onUpdate:modelValue":D=>e.schemaStore.graph.properties.courseInstances[A].instructor.name=D},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["name"]),o(s,{name:r.strings.description},{content:n(()=>[o(C,{size:"medium",modelValue:e.schemaStore.graph.properties.courseInstances[A].instructor.description,"onUpdate:modelValue":D=>e.schemaStore.graph.properties.courseInstances[A].instructor.description=D,minHeight:120},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["name"]),o(s,{class:"image-field",name:r.strings.image},{content:n(()=>[o(V,{modelValue:e.schemaStore.graph.properties.courseInstances[A].instructor.image,"onUpdate:modelValue":D=>e.schemaStore.graph.properties.courseInstances[A].instructor.image=D},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["name"])]),_:2},1032,["header"])]),_:1},8,["groupProp","defaults","pluralName","singularName"]),o(_,{groupProp:e.schemaStore.graph.properties.reviews,defaults:r.reviewDefaults,pluralName:r.strings.reviews,singularName:r.strings.review},{"fields-inner":n(({groupIndex:A})=>[o(U,{reviewProp:e.schemaStore.graph.properties.reviews[A]},null,8,["reviewProp"])]),_:1},8,["groupProp","defaults","pluralName","singularName"]),o(T),v.showField?(u(),w(_,{key:2,groupProp:e.schemaStore.graph.properties.syllabusSections,defaults:r.syllabusSectionDefaults,pluralName:r.strings.syllabusSections,singularName:r.strings.syllabusSection,headerTooltip:r.strings.syllabusSectionDescription},{"fields-inner":n(({groupIndex:A})=>[o(s,{name:r.strings.name},{content:n(()=>[o(m,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.syllabusSections[A].name,"onUpdate:modelValue":D=>e.schemaStore.graph.properties.syllabusSections[A].name=D},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["name"]),o(s,{name:r.strings.description},{content:n(()=>[o(C,{size:"medium",modelValue:e.schemaStore.graph.properties.syllabusSections[A].description,"onUpdate:modelValue":D=>e.schemaStore.graph.properties.syllabusSections[A].description=D,minHeight:120},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["name"]),o(s,{name:r.strings.timeRequired},{content:n(()=>[o(m,{type:"number",size:"medium",min:0,step:1,modelValue:e.schemaStore.graph.properties.syllabusSections[A].timeRequired,"onUpdate:modelValue":D=>e.schemaStore.graph.properties.syllabusSections[A].timeRequired=D},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["name"])]),_:1},8,["groupProp","defaults","pluralName","singularName","headerTooltip"])):k("",!0)])}const qr=$(Rr,[["render",Hr]]),j="aioseo-pro",Wr={setup(){const{getJsonValue:i,setJsonValue:t}=xe(),{initSchemaEditor:p}=te();return{GLOBAL_STRINGS:Te,getJsonValue:i,initSchemaEditor:p,schemaStore:Z(),setJsonValue:t}},components:{BaseRadioToggle:He,BaseTextarea:Ge,CoreFieldGroupRepeater:Ie,CoreHtmlTagsEditor:ce,CoreSettingsRow:K},data(){return{subDatasetDefaults:{name:"",description:""},downloadDefaults:{encodingFormat:"",url:""},strings:{name:a("Name",j),description:a("Description",j),descriptionDescription:a("A short summary describing the dataset. The description must be between 50 and 5,000 characters long.",j),url:a("URL",j),sameAs:a("Same As",j),sameAsDescription:a("The URL of a reference web page that unambiguously indicates the dataset's identity.",j),alternateName:a("Alternative Names",j),alternateNamePlaceholder:a("Type to enter an alternative name...",j),alternateNameTagPlaceholder:a("Press enter to create an alternative name",j),author:a("Author",j),type:a("Type",j),organization:a("Organization",j),person:a("Person",j),identifier:a("Identifier",j),isAccessibleForFree:a("Accessible for Free",j),license:a("License",j),version:a("Version",j),keywords:a("Keywords",j),keywordsPlaceholder:a("Type to enter a keyword...",j),keywordsTagPlaceholder:a("Press enter to create a keyword",j),temporalCoverage:a("Temporal Coverage",j),temporalCoverageDescription:a("The specific time interval this dataset covers.",j),spatialCoverage:a("Spatial Coverage",j),spatialCoverageDescription:a("The specific coordinates where the measurements were collected.",j),dataCatalog:a("Data Catalog",j),dataCatalogDescription:a("The name of the larger Data Catalog this dataset is a part of.",j),subDatasets:a("Sub Datasets",j),subDataset:a("Sub Dataset",j),downloads:a("Downloads",j),download:a("Download",j),encodingFormat:a("Encoding Format",j),encodingFormatDescription:a("The file format of the download.",j)}}},beforeMount(){const i={id:"#aioseo-dataset-"+new Date().getTime().toString(36),slug:"dataset",graphName:"Dataset",label:a("Dataset",j),properties:{name:"#post_title",description:"#post_excerpt",sameAs:"",alternateName:"",dataCatalog:"",identifier:"",license:"",free:!0,keywords:"",temporalCoverage:"",spatialCoverage:"",subDatasets:[JSON.parse(JSON.stringify(this.subDatasetDefaults))],downloads:[JSON.parse(JSON.stringify(this.downloadDefaults))]}};this.initSchemaEditor(i)}},jr={class:"graph-editor-fields graph-dataset"},Kr={class:"aioseo-description"},Qr={class:"aioseo-description"},Zr={class:"aioseo-description"},Xr={class:"aioseo-description"},$r={class:"aioseo-description"},en={class:"aioseo-description"};function tn(i,t,p,e,r,v){const y=d("core-html-tags-editor"),s=d("core-settings-row"),g=d("base-input"),b=d("base-select"),S=d("base-radio-toggle"),V=d("base-textarea"),m=d("core-field-group-repeater");return u(),E("div",jr,[o(s,{name:r.strings.name},{content:n(()=>[o(y,{modelValue:e.schemaStore.graph.properties.name,"onUpdate:modelValue":t[0]||(t[0]=c=>e.schemaStore.graph.properties.name=c),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_title","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.description},{content:n(()=>[o(y,{modelValue:e.schemaStore.graph.properties.description,"onUpdate:modelValue":t[1]||(t[1]=c=>e.schemaStore.graph.properties.description=c),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_excerpt","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"]),h("div",Kr,f(r.strings.descriptionDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.sameAs},{content:n(()=>[o(g,{type:"text",size:"medium",validation:"url",modelValue:e.schemaStore.graph.properties.sameAs,"onUpdate:modelValue":t[2]||(t[2]=c=>e.schemaStore.graph.properties.sameAs=c)},null,8,["modelValue"]),h("div",Qr,f(r.strings.sameAsDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.alternateName,align:""},{content:n(()=>[o(b,{size:"medium",multiple:"",taggable:"",options:e.getJsonValue(e.schemaStore.graph.properties.alternateName)||[],modelValue:e.getJsonValue(e.schemaStore.graph.properties.alternateName)||[],"onUpdate:modelValue":t[3]||(t[3]=c=>e.schemaStore.graph.properties.alternateName=e.setJsonValue(c)),placeholder:r.strings.alternateNamePlaceholder,"tag-placeholder":r.strings.alternateNameTagPlaceholder},null,8,["options","modelValue","placeholder","tag-placeholder"])]),_:1},8,["name"]),o(s,{name:r.strings.dataCatalog},{content:n(()=>[o(g,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.dataCatalog,"onUpdate:modelValue":t[4]||(t[4]=c=>e.schemaStore.graph.properties.dataCatalog=c)},null,8,["modelValue"]),h("div",Zr,f(r.strings.dataCatalogDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.identifier},{content:n(()=>[o(g,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.identifier,"onUpdate:modelValue":t[5]||(t[5]=c=>e.schemaStore.graph.properties.identifier=c)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.license},{content:n(()=>[o(g,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.license,"onUpdate:modelValue":t[6]||(t[6]=c=>e.schemaStore.graph.properties.license=c)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.isAccessibleForFree,align:""},{content:n(()=>[o(S,{name:"isAccessibleForFree",modelValue:e.schemaStore.graph.properties.free,"onUpdate:modelValue":t[7]||(t[7]=c=>e.schemaStore.graph.properties.free=c),options:[{label:e.GLOBAL_STRINGS.no,value:!1,activeClass:"dark"},{label:e.GLOBAL_STRINGS.yes,value:!0}]},null,8,["modelValue","options"])]),_:1},8,["name"]),o(s,{name:r.strings.keywords,align:""},{content:n(()=>[o(b,{size:"medium",multiple:"",taggable:"",options:e.getJsonValue(e.schemaStore.graph.properties.keywords)||[],modelValue:e.getJsonValue(e.schemaStore.graph.properties.keywords)||[],"onUpdate:modelValue":t[8]||(t[8]=c=>e.schemaStore.graph.properties.keywords=e.setJsonValue(c)),placeholder:r.strings.keywordsPlaceholder,"tag-placeholder":r.strings.keywordsTagPlaceholder},null,8,["options","modelValue","placeholder","tag-placeholder"])]),_:1},8,["name"]),o(s,{name:r.strings.temporalCoverage},{content:n(()=>[o(g,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.temporalCoverage,"onUpdate:modelValue":t[9]||(t[9]=c=>e.schemaStore.graph.properties.temporalCoverage=c)},null,8,["modelValue"]),h("div",Xr,f(r.strings.temporalCoverageDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.spatialCoverage},{content:n(()=>[o(g,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.spatialCoverage,"onUpdate:modelValue":t[10]||(t[10]=c=>e.schemaStore.graph.properties.spatialCoverage=c)},null,8,["modelValue"]),h("div",$r,f(r.strings.spatialCoverageDescription),1)]),_:1},8,["name"]),o(m,{groupProp:e.schemaStore.graph.properties.subDatasets,defaults:r.subDatasetDefaults,pluralName:r.strings.subDatasets,singularName:r.strings.subDataset},{"fields-inner":n(({groupIndex:c})=>[o(s,{name:r.strings.name},{content:n(()=>[o(g,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.subDatasets[c].name,"onUpdate:modelValue":_=>e.schemaStore.graph.properties.subDatasets[c].name=_},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["name"]),o(s,{name:r.strings.description},{content:n(()=>[o(V,{size:"medium",modelValue:e.schemaStore.graph.properties.subDatasets[c].description,"onUpdate:modelValue":_=>e.schemaStore.graph.properties.subDatasets[c].description=_,minHeight:120},null,8,["modelValue","onUpdate:modelValue"]),h("div",en,f(r.strings.descriptionDescription),1)]),_:2},1032,["name"])]),_:1},8,["groupProp","defaults","pluralName","singularName"]),o(m,{groupProp:e.schemaStore.graph.properties.downloads,defaults:r.downloadDefaults,pluralName:r.strings.downloads,singularName:r.strings.download},{"fields-inner":n(({groupIndex:c})=>[o(s,{name:r.strings.encodingFormat},{content:n(()=>[o(g,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.downloads[c].encodingFormat,"onUpdate:modelValue":_=>e.schemaStore.graph.properties.downloads[c].encodingFormat=_},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["name"]),o(s,{name:r.strings.url},{content:n(()=>[o(g,{type:"text",size:"medium",validation:"url",modelValue:e.schemaStore.graph.properties.downloads[c].url,"onUpdate:modelValue":_=>e.schemaStore.graph.properties.downloads[c].url=_},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["name"])]),_:1},8,["groupProp","defaults","pluralName","singularName"])])}const on=$(Wr,[["render",tn]]),H="aioseo-pro",an={setup(){const{initSchemaEditor:i}=te();return{COUNTRY_LIST:it,CURRENCY_LIST:fe,EVENT_STATUS_LIST:Dt,EVENT_TYPE_LIST:wt,dateJsToLocal:ke,dateStringToLocalJs:Ue,initSchemaEditor:i,optionsStore:Be(),rootStore:we(),schemaStore:Z()}},components:{BaseDatePicker:Ae,BaseRadio:Qe,CoreFieldGroup:ge,CoreFieldGroupRepeater:Ie,CoreHtmlTagsEditor:ce,CoreImageUploader:_e,CoreSettingsRow:K,Review:qe,ReviewRating:Ye},data(){return{imageDefaults:{url:""},strings:{name:a("Name",H),description:a("Description",H),eventType:a("Type",H),status:a("Status",H),attendanceMode:a("Attendance Mode",H),online:a("Online",H),offline:a("Offline",H),onlineAndOffline:a("Online + Offline",H),dates:a("Dates",H),eventDate:a("Event Date",H),url:a("URL",H),location:a("Location",H),streetAddress:a("Street Address",H),locality:a("Locality",H),postalCode:a("Postal Code",H),region:a("Region",H),country:a("Country",H),nameDescription:a("The name of the place or venue where the event is being held. Leave this empty if the event doesn't take place at a physical location.",H),urlDescription:a("A URL for the place or venue where the event is being held.",H),offer:a("Offer",H),price:a("Price",H),priceDescription:a('If the event can be attended for free, set the price to "0".',H),currency:a("Currency",H),validFrom:a("Sale Start Date",H),offerUrlDescription:a("A URL to the page where tickets can be purchased.",H),type:a("Type",H),organizer:a("Organizer",H),person:a("Person",H),organization:a("Organization",H),organizationDescription:de(a("Leave this empty if you want to use the Organization you've set under %1$s.",H),ve.getPlainLink(a("Search Appearance > Knowledge Graph",H),this.rootStore.aioseo.urls.aio.searchAppearance+"#/global-settings")),performer:a("Performer",H),images:a("Images",H),image:a("Image",H)}}},methods:{getEventType(i){return wt.find(t=>t.value===i)},saveEventType(i){this.schemaStore.graph.properties.eventType=i},getEventStatus(i){return Dt.find(t=>t.value===i)},saveEventStatus(i){this.schemaStore.graph.properties.status=i},getCurrency(i){return fe.find(t=>t.value===i)},saveCurrency(i){this.schemaStore.graph.properties.offer.currency=i}},beforeMount(){const i={id:"#aioseo-event-"+new Date().getTime().toString(36),slug:"event",graphName:"Event",label:a("Event",H),properties:{name:"#post_title",description:"#post_excerpt",eventType:"",status:"EventScheduled",attendanceMode:"OfflineEventAttendanceMode",image:"",dates:{startDate:"",endDate:""},location:{name:"",url:"",streetAddress:"",locality:"",postalCode:"",region:"",country:""},offer:{price:"",currency:"",validFrom:"",availablity:"",url:""},organizer:{type:"Organization",name:"",url:""},performer:{type:"Organization",name:"",url:""},images:[JSON.parse(JSON.stringify(this.imageDefaults))],rating:{minimum:1,maximum:5},review:{rating:"",headline:"",content:"",author:"#author_name"}}};this.initSchemaEditor(i)}},rn={class:"graph-editor-fields graph-event"},nn={class:"aioseo-description"},sn={class:"aioseo-description"},ln={class:"aioseo-description"},mn={class:"aioseo-description"},pn=["innerHTML"];function dn(i,t,p,e,r,v){const y=d("core-html-tags-editor"),s=d("core-settings-row"),g=d("base-select"),b=d("base-radio"),S=d("base-date-picker"),V=d("core-field-group"),m=d("base-input"),c=d("core-image-uploader"),_=d("core-field-group-repeater"),C=d("review"),U=d("review-rating");return u(),E("div",rn,[o(s,{name:r.strings.name},{content:n(()=>[o(y,{modelValue:e.schemaStore.graph.properties.name,"onUpdate:modelValue":t[0]||(t[0]=T=>e.schemaStore.graph.properties.name=T),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_title","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.description},{content:n(()=>[o(y,{modelValue:e.schemaStore.graph.properties.description,"onUpdate:modelValue":t[1]||(t[1]=T=>e.schemaStore.graph.properties.description=T),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_excerpt","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.eventType,align:""},{content:n(()=>[o(g,{size:"medium",options:e.EVENT_TYPE_LIST,modelValue:v.getEventType(e.schemaStore.graph.properties.eventType),"onUpdate:modelValue":t[2]||(t[2]=T=>v.saveEventType(T.value))},null,8,["options","modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.status,align:""},{content:n(()=>[o(g,{size:"medium",options:e.EVENT_STATUS_LIST,modelValue:v.getEventStatus(e.schemaStore.graph.properties.status),"onUpdate:modelValue":t[3]||(t[3]=T=>v.saveEventStatus(T.value))},null,8,["options","modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.attendanceMode},{content:n(()=>[o(b,{size:"small",name:"type",modelValue:e.schemaStore.graph.properties.attendanceMode==="OnlineEventAttendanceMode","onUpdate:modelValue":t[4]||(t[4]=T=>e.schemaStore.graph.properties.attendanceMode="OnlineEventAttendanceMode"),type:2},{default:n(()=>[N(f(r.strings.online),1)]),_:1},8,["modelValue"]),o(b,{size:"small",name:"type",modelValue:e.schemaStore.graph.properties.attendanceMode==="OfflineEventAttendanceMode","onUpdate:modelValue":t[5]||(t[5]=T=>e.schemaStore.graph.properties.attendanceMode="OfflineEventAttendanceMode"),type:2},{default:n(()=>[N(f(r.strings.offline),1)]),_:1},8,["modelValue"]),o(b,{size:"small",name:"type",modelValue:e.schemaStore.graph.properties.attendanceMode==="MixedEventAttendanceMode","onUpdate:modelValue":t[6]||(t[6]=T=>e.schemaStore.graph.properties.attendanceMode="MixedEventAttendanceMode"),type:2},{default:n(()=>[N(f(r.strings.onlineAndOffline),1)]),_:1},8,["modelValue"])]),_:1},8,["name"]),o(V,{header:r.strings.dates},{default:n(()=>[o(s,{name:r.strings.eventDate,align:""},{content:n(()=>[o(S,{type:"datetimerange",size:"large",dateFormat:"m/d/Y H:i:s",defaultValue:e.schemaStore.graph.properties.dates.startDate&&e.schemaStore.graph.properties.dates.endDate?[e.dateStringToLocalJs(e.schemaStore.graph.properties.dates.startDate),e.dateStringToLocalJs(e.schemaStore.graph.properties.dates.endDate)]:null,onChange:t[7]||(t[7]=T=>{e.schemaStore.graph.properties.dates.startDate=T?e.dateJsToLocal(T[0],"MM/DD/YYYY HH:mm:ss"):"",e.schemaStore.graph.properties.dates.endDate=T?e.dateJsToLocal(T[1],"MM/DD/YYYY HH:mm:ss"):""})},null,8,["defaultValue"])]),_:1},8,["name"])]),_:1},8,["header"]),o(V,{header:r.strings.location},{default:n(()=>[o(s,{name:r.strings.name},{content:n(()=>[o(m,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.location.name,"onUpdate:modelValue":t[8]||(t[8]=T=>e.schemaStore.graph.properties.location.name=T)},null,8,["modelValue"]),h("div",nn,f(r.strings.nameDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.url},{content:n(()=>[o(m,{type:"text",size:"medium",validation:"url",modelValue:e.schemaStore.graph.properties.location.url,"onUpdate:modelValue":t[9]||(t[9]=T=>e.schemaStore.graph.properties.location.url=T)},null,8,["modelValue"]),h("div",sn,f(r.strings.urlDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.streetAddress},{content:n(()=>[o(m,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.location.streetAddress,"onUpdate:modelValue":t[10]||(t[10]=T=>e.schemaStore.graph.properties.location.streetAddress=T)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.locality},{content:n(()=>[o(m,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.location.locality,"onUpdate:modelValue":t[11]||(t[11]=T=>e.schemaStore.graph.properties.location.locality=T)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.postalCode},{content:n(()=>[o(m,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.location.postalCode,"onUpdate:modelValue":t[12]||(t[12]=T=>e.schemaStore.graph.properties.location.postalCode=T)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.region},{content:n(()=>[o(m,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.location.region,"onUpdate:modelValue":t[13]||(t[13]=T=>e.schemaStore.graph.properties.location.region=T)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.country},{content:n(()=>[o(g,{size:"medium",options:e.COUNTRY_LIST,modelValue:e.COUNTRY_LIST.find(T=>T.value===e.schemaStore.graph.properties.location.country),"onUpdate:modelValue":t[14]||(t[14]=T=>e.schemaStore.graph.properties.location.country=T.value)},null,8,["options","modelValue"])]),_:1},8,["name"])]),_:1},8,["header"]),o(V,{header:r.strings.offer},{default:n(()=>[o(s,{name:r.strings.price,align:""},{content:n(()=>[o(m,{size:"medium",type:"number",min:0,step:.01,modelValue:e.schemaStore.graph.properties.offer.price,"onUpdate:modelValue":t[15]||(t[15]=T=>e.schemaStore.graph.properties.offer.price=T)},null,8,["modelValue"]),h("div",ln,f(r.strings.priceDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.currency,align:""},{content:n(()=>[o(g,{size:"medium",options:e.CURRENCY_LIST,modelValue:v.getCurrency(e.schemaStore.graph.properties.offer.currency),"onUpdate:modelValue":t[16]||(t[16]=T=>v.saveCurrency(T.value))},null,8,["options","modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.validFrom,align:""},{content:n(()=>[o(S,{type:"date",size:"large",dateFormat:"m/d/Y",defaultValue:e.dateStringToLocalJs(e.schemaStore.graph.properties.offer.validFrom),onChange:t[17]||(t[17]=T=>e.schemaStore.graph.properties.offer.validFrom=e.dateJsToLocal(T,"MM/DD/YYYY"))},null,8,["defaultValue"])]),_:1},8,["name"]),o(s,{name:r.strings.url},{content:n(()=>[o(m,{type:"text",size:"medium",validation:"url",modelValue:e.schemaStore.graph.properties.offer.url,"onUpdate:modelValue":t[18]||(t[18]=T=>e.schemaStore.graph.properties.offer.url=T)},null,8,["modelValue"]),h("div",mn,f(r.strings.offerUrlDescription),1)]),_:1},8,["name"])]),_:1},8,["header"]),o(V,{header:r.strings.organizer},{default:n(()=>[o(s,{name:r.strings.type},{content:n(()=>[o(b,{size:"small",name:"organizerType",modelValue:e.schemaStore.graph.properties.organizer.type==="Person","onUpdate:modelValue":t[19]||(t[19]=T=>e.schemaStore.graph.properties.organizer.type="Person"),type:2},{default:n(()=>[N(f(r.strings.person),1)]),_:1},8,["modelValue"]),o(b,{size:"small",name:"organizerType",modelValue:e.schemaStore.graph.properties.organizer.type==="Organization","onUpdate:modelValue":t[20]||(t[20]=T=>e.schemaStore.graph.properties.organizer.type="Organization"),type:2},{default:n(()=>[N(f(r.strings.organization),1)]),_:1},8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.name},{content:n(()=>[o(m,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.organizer.name,"onUpdate:modelValue":t[21]||(t[21]=T=>e.schemaStore.graph.properties.organizer.name=T)},null,8,["modelValue"]),e.schemaStore.graph.properties.organizer.type==="Organization"&&e.optionsStore.options.searchAppearance.global.schema.siteRepresents==="organization"?(u(),E("div",{key:0,class:"aioseo-description",innerHTML:r.strings.organizationDescription},null,8,pn)):k("",!0)]),_:1},8,["name"]),o(s,{name:r.strings.url},{content:n(()=>[o(m,{type:"text",size:"medium",validation:"url",modelValue:e.schemaStore.graph.properties.organizer.url,"onUpdate:modelValue":t[22]||(t[22]=T=>e.schemaStore.graph.properties.organizer.url=T)},null,8,["modelValue"])]),_:1},8,["name"])]),_:1},8,["header"]),o(V,{header:r.strings.performer},{default:n(()=>[o(s,{name:r.strings.type},{content:n(()=>[o(b,{size:"small",name:"performerType",modelValue:e.schemaStore.graph.properties.performer.type==="Person","onUpdate:modelValue":t[23]||(t[23]=T=>e.schemaStore.graph.properties.performer.type="Person"),type:2},{default:n(()=>[N(f(r.strings.person),1)]),_:1},8,["modelValue"]),o(b,{size:"small",name:"performerType",modelValue:e.schemaStore.graph.properties.performer.type==="Organization","onUpdate:modelValue":t[24]||(t[24]=T=>e.schemaStore.graph.properties.performer.type="Organization"),type:2},{default:n(()=>[N(f(r.strings.organization),1)]),_:1},8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.name},{content:n(()=>[o(m,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.performer.name,"onUpdate:modelValue":t[25]||(t[25]=T=>e.schemaStore.graph.properties.performer.name=T)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.url},{content:n(()=>[o(m,{type:"text",size:"medium",validation:"url",modelValue:e.schemaStore.graph.properties.performer.url,"onUpdate:modelValue":t[26]||(t[26]=T=>e.schemaStore.graph.properties.performer.url=T)},null,8,["modelValue"])]),_:1},8,["name"])]),_:1},8,["header"]),o(_,{groupProp:e.schemaStore.graph.properties.images,defaults:r.imageDefaults,pluralName:r.strings.images,singularName:r.strings.image},{"fields-inner":n(({groupIndex:T})=>[o(s,{class:"image-field",name:r.strings.image,align:""},{content:n(()=>[o(c,{modelValue:e.schemaStore.graph.properties.images[T].url,"onUpdate:modelValue":A=>e.schemaStore.graph.properties.images[T].url=A},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["name"])]),_:1},8,["groupProp","defaults","pluralName","singularName"]),o(C,{reviewProp:e.schemaStore.graph.properties.review,multiple:!1},null,8,["reviewProp"]),o(U)])}const Rt=$(an,[["render",dn]]),cn={key:1},un=["innerHTML"],gn={__name:"Event",setup(i){const{hasFeature:t,graphNotIncluded:p}=et();return(e,r)=>(u(),E("div",null,[l(t)?(u(),w(l(Rt),{key:0})):k("",!0),l(t)?k("",!0):(u(),E("div",cn,[o(l(De),{class:"feature-alert",type:"yellow"},{default:n(()=>[h("strong",{innerHTML:l(p)},null,8,un)]),_:1}),o(l(Vt),null,{default:n(()=>[o(l(Rt))]),_:1})]))]))}},We="aioseo-pro",hn={setup(){const{initSchemaEditor:i}=te();return{initSchemaEditor:i,schemaStore:Z()}},components:{BaseTextarea:Ge,CoreFieldGroupRepeater:Ie,CoreHtmlTagsEditor:ce,CoreSettingsRow:K},data(){return{questionDefaults:{question:"",answer:""},strings:{name:a("Name",We),description:a("Description",We),questions:a("Questions",We),question:a("Question",We),answer:a("Answer",We)}}},beforeMount(){const i={id:"#aioseo-faq-page-"+new Date().getTime().toString(36),slug:"faq-page",graphName:"FAQPage",label:a("FAQ Page",We),properties:{name:"#post_title",description:"",questions:[JSON.parse(JSON.stringify(this.questionDefaults))]}};this.initSchemaEditor(i)}},fn={class:"graph-editor-fields graph-faq-page"};function _n(i,t,p,e,r,v){const y=d("core-html-tags-editor"),s=d("core-settings-row"),g=d("base-input"),b=d("base-textarea"),S=d("core-field-group-repeater");return u(),E("div",fn,[o(s,{name:r.strings.name},{content:n(()=>[o(y,{modelValue:e.schemaStore.graph.properties.name,"onUpdate:modelValue":t[0]||(t[0]=V=>e.schemaStore.graph.properties.name=V),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_title","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.description},{content:n(()=>[o(y,{modelValue:e.schemaStore.graph.properties.description,"onUpdate:modelValue":t[1]||(t[1]=V=>e.schemaStore.graph.properties.description=V),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_excerpt","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"]),o(S,{groupProp:e.schemaStore.graph.properties.questions,defaults:r.questionDefaults,pluralName:r.strings.questions,singularName:r.strings.question},{"fields-inner":n(({groupIndex:V})=>[o(s,{name:r.strings.question},{content:n(()=>[o(g,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.questions[V].question,"onUpdate:modelValue":m=>e.schemaStore.graph.properties.questions[V].question=m},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["name"]),o(s,{name:r.strings.answer},{content:n(()=>[o(b,{size:"medium",modelValue:e.schemaStore.graph.properties.questions[V].answer,"onUpdate:modelValue":m=>e.schemaStore.graph.properties.questions[V].answer=m,minHeight:120},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["name"])]),_:1},8,["groupProp","defaults","pluralName","singularName"])])}const Sn=$(hn,[["render",_n]]),ee="aioseo-pro",vn={setup(){const{initSchemaEditor:i}=te();return{dateJsToLocal:ke,dateStringToLocalJs:Ue,initSchemaEditor:i,optionsStore:Be(),rootStore:we(),schemaStore:Z()}},components:{BaseDatePicker:Ae,BaseRadio:Qe,CoreHtmlTagsEditor:ce,CoreSettingsRow:K,CoreFieldGroup:ge},data(){return{graphKey:0,strings:{name:a("Name",ee),description:a("Description",ee),descriptionDescription:a("A short summary of the claim being evaluated. It is recommended to keep this less than 75 characters.",ee),organizationDescription:de(a("Leave this empty if you want to use the Organization you've set under %1$s.",ee),ve.getPlainLink(a("Search Appearance > Knowledge Graph",ee),this.rootStore.aioseo.urls.aio.searchAppearance+"#/global-settings")),claimRating:a("Rating",ee),false:a("False",ee),mostlyFalse:a("Mostly False",ee),halfTrue:a("Half True",ee),mostlyTrue:a("Mostly True",ee),true:a("True",ee),person:a("Person",ee),organization:a("Organization",ee),datePublished:a("Date Published",ee),author:a("Author",ee),authorDescription:a("The name of the author of the fact check",ee),type:a("Type",ee),url:a("URL",ee),authorType:a("Author Type",ee),authorName:a("Author Name",ee),claimAuthorDescription:a("The name of the author who published the claim.",ee),authorUrl:a("Author URL",ee),claim:a("Claim",ee),appearance:a("Appearance",ee),appearanceDescription:a("A link to, or an inline description of, the article or outlet where this claim appears.",ee)}}},beforeMount(){const i={id:"#aioseo-fact-check-"+new Date().getTime().toString(36),slug:"fact-check",graphName:"FactCheck",label:a("Fact Check",ee),properties:{name:"#post_title",claimReviewed:"",claimRating:1,datePublished:"",author:{type:"Person",name:"",url:""},claim:{appearance:"",datePublished:"",author:{type:"Organization",name:"",url:""}}}};this.initSchemaEditor(i)}},yn={class:"graph-editor-fields graph-fact-check"},bn={class:"aioseo-description"},Vn={class:"aioseo-description"},Tn=["innerHTML"],Cn={class:"aioseo-description"},Dn={class:"aioseo-description"};function wn(i,t,p,e,r,v){const y=d("core-html-tags-editor"),s=d("core-settings-row"),g=d("base-radio"),b=d("base-date-picker"),S=d("base-input"),V=d("core-field-group");return u(),E("div",yn,[o(s,{name:r.strings.name},{content:n(()=>[o(y,{modelValue:e.schemaStore.graph.properties.name,"onUpdate:modelValue":t[0]||(t[0]=m=>e.schemaStore.graph.properties.name=m),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_title","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.description},{content:n(()=>[o(y,{modelValue:e.schemaStore.graph.properties.claimReviewed,"onUpdate:modelValue":t[1]||(t[1]=m=>e.schemaStore.graph.properties.claimReviewed=m),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_excerpt","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"]),h("div",bn,f(r.strings.descriptionDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.claimRating},{content:n(()=>[o(g,{size:"small",name:"claimRating",modelValue:e.schemaStore.graph.properties.claimRating===1,"onUpdate:modelValue":t[2]||(t[2]=m=>e.schemaStore.graph.properties.claimRating=1),type:2},{default:n(()=>[N(f(r.strings.false),1)]),_:1},8,["modelValue"]),o(g,{size:"small",name:"claimRating",modelValue:e.schemaStore.graph.properties.claimRating===2,"onUpdate:modelValue":t[3]||(t[3]=m=>e.schemaStore.graph.properties.claimRating=2),type:2},{default:n(()=>[N(f(r.strings.mostlyFalse),1)]),_:1},8,["modelValue"]),o(g,{size:"small",name:"claimRating",modelValue:e.schemaStore.graph.properties.claimRating===3,"onUpdate:modelValue":t[4]||(t[4]=m=>e.schemaStore.graph.properties.claimRating=3),type:2},{default:n(()=>[N(f(r.strings.halfTrue),1)]),_:1},8,["modelValue"]),o(g,{size:"small",name:"claimRating",modelValue:e.schemaStore.graph.properties.claimRating===4,"onUpdate:modelValue":t[5]||(t[5]=m=>e.schemaStore.graph.properties.claimRating=4),type:2},{default:n(()=>[N(f(r.strings.mostlyTrue),1)]),_:1},8,["modelValue"]),o(g,{size:"small",name:"claimRating",modelValue:e.schemaStore.graph.properties.claimRating===5,"onUpdate:modelValue":t[6]||(t[6]=m=>e.schemaStore.graph.properties.claimRating=5),type:2},{default:n(()=>[N(f(r.strings.true),1)]),_:1},8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.datePublished,align:""},{content:n(()=>[o(b,{type:"date",size:"large",dateFormat:"m/d/Y",defaultValue:e.dateStringToLocalJs(e.schemaStore.graph.properties.datePublished),onChange:t[7]||(t[7]=m=>e.schemaStore.graph.properties.datePublished=e.dateJsToLocal(m,"MM/DD/YYYY"))},null,8,["defaultValue"])]),_:1},8,["name"]),o(V,{header:r.strings.author},{default:n(()=>[o(s,{name:r.strings.type},{content:n(()=>[o(g,{size:"small",name:"authorType",modelValue:e.schemaStore.graph.properties.author.type==="Person","onUpdate:modelValue":t[8]||(t[8]=m=>e.schemaStore.graph.properties.author.type="Person"),type:2},{default:n(()=>[N(f(r.strings.person),1)]),_:1},8,["modelValue"]),o(g,{size:"small",name:"authorType",modelValue:e.schemaStore.graph.properties.author.type==="Organization","onUpdate:modelValue":t[9]||(t[9]=m=>e.schemaStore.graph.properties.author.type="Organization"),type:2},{default:n(()=>[N(f(r.strings.organization),1)]),_:1},8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.name},{content:n(()=>[o(S,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.author.name,"onUpdate:modelValue":t[10]||(t[10]=m=>e.schemaStore.graph.properties.author.name=m)},null,8,["modelValue"]),h("div",Vn,f(r.strings.authorDescription),1),e.schemaStore.graph.properties.author.type==="Organization"&&e.optionsStore.options.searchAppearance.global.schema.siteRepresents==="organization"?(u(),E("div",{key:0,class:"aioseo-description",innerHTML:r.strings.organizationDescription},null,8,Tn)):k("",!0)]),_:1},8,["name"]),o(s,{name:r.strings.url},{content:n(()=>[o(S,{type:"text",size:"medium",validation:"url",modelValue:e.schemaStore.graph.properties.author.url,"onUpdate:modelValue":t[11]||(t[11]=m=>e.schemaStore.graph.properties.author.url=m)},null,8,["modelValue"])]),_:1},8,["name"])]),_:1},8,["header"]),o(V,{header:r.strings.claim},{default:n(()=>[o(s,{name:r.strings.appearance},{content:n(()=>[o(S,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.claim.appearance,"onUpdate:modelValue":t[12]||(t[12]=m=>e.schemaStore.graph.properties.claim.appearance=m)},null,8,["modelValue"]),h("div",Cn,f(r.strings.appearanceDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.datePublished,align:""},{content:n(()=>[o(b,{type:"date",size:"large",dateFormat:"m/d/Y",defaultValue:e.dateStringToLocalJs(e.schemaStore.graph.properties.claim.datePublished),onChange:t[13]||(t[13]=m=>e.schemaStore.graph.properties.claim.datePublished=e.dateJsToLocal(m,"MM/DD/YYYY"))},null,8,["defaultValue"])]),_:1},8,["name"]),o(s,{name:r.strings.authorType},{content:n(()=>[o(g,{size:"small",name:"claimAuthorType",modelValue:e.schemaStore.graph.properties.claim.author.type==="Person","onUpdate:modelValue":t[14]||(t[14]=m=>e.schemaStore.graph.properties.claim.author.type="Person"),type:2},{default:n(()=>[N(f(r.strings.person),1)]),_:1},8,["modelValue"]),o(g,{size:"small",name:"claimAuthorType",modelValue:e.schemaStore.graph.properties.claim.author.type==="Organization","onUpdate:modelValue":t[15]||(t[15]=m=>e.schemaStore.graph.properties.claim.author.type="Organization"),type:2},{default:n(()=>[N(f(r.strings.organization),1)]),_:1},8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.authorName},{content:n(()=>[o(S,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.claim.author.name,"onUpdate:modelValue":t[16]||(t[16]=m=>e.schemaStore.graph.properties.claim.author.name=m)},null,8,["modelValue"]),h("div",Dn,f(r.strings.claimAuthorDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.authorUrl},{content:n(()=>[o(S,{type:"text",size:"medium",validation:"url",modelValue:e.schemaStore.graph.properties.claim.author.url,"onUpdate:modelValue":t[17]||(t[17]=m=>e.schemaStore.graph.properties.claim.author.url=m)},null,8,["modelValue"])]),_:1},8,["name"])]),_:1},8,["header"])])}const Un=$(vn,[["render",wn]]),re="aioseo-pro",kn={setup(){const{getJsonValue:i,setJsonValue:t}=xe(),{initSchemaEditor:p}=te();return{CURRENCY_LIST:fe,getJsonValue:i,initSchemaEditor:p,schemaStore:Z(),setJsonValue:t}},components:{BaseTextarea:Ge,CoreHtmlTagsEditor:ce,CoreFieldGroup:ge,CoreFieldGroupRepeater:Ie,CoreImageUploader:_e,CoreSettingsRow:K},data(){return{stepDefaults:{name:"",text:"",image:""},strings:{name:a("Name",re),description:a("Description",re),supplies:a("Supplies",re),tools:a("Tools",re),totalTime:a("Required Time",re),image:a("Image",re),estimatedCost:a("Estimated Cost",re),price:a("Price",re),currency:a("Currency",re),steps:a("Steps",re),step:a("Step",re),title:a("Title",re),details:a("Details",re),url:a("URL",re),urlDescription:a("A URL that directly links to the step (if one is available). For example, an anchor link fragment or a video with a time offset.",re),supplyKeyword:a("Type to enter a supply...",re),supplyTagPlaceholder:a("Press enter to create a supply",re),toolPlaceholder:a("Type to enter a tool...",re),toolTagPlaceholder:a("Press enter to create a tool",re),days:a("Days",re),hours:a("Hours",re),minutes:a("Minutes",re)}}},methods:{getCurrency(i){return fe.find(t=>t.value===i)},saveCurrency(i){this.schemaStore.graph.properties.estimatedCost.currency=i}},beforeMount(){const i={id:"#aioseo-how-to-"+new Date().getTime().toString(36),slug:"how-to",graphName:"HowTo",label:a("How To",re),properties:{name:"#post_title",description:"",supplies:"",tools:"",totalTime:{days:"",hours:"",minutes:""},image:"",estimatedCost:{price:"",currency:""},steps:[JSON.parse(JSON.stringify(this.stepDefaults))]}};this.initSchemaEditor(i)}},An={class:"graph-editor-fields graph-how-to"},En={class:"aioseo-description"};function Nn(i,t,p,e,r,v){const y=d("core-html-tags-editor"),s=d("core-settings-row"),g=d("base-select"),b=d("base-input"),S=d("core-image-uploader"),V=d("core-field-group"),m=d("base-textarea"),c=d("core-field-group-repeater");return u(),E("div",An,[o(s,{name:r.strings.name},{content:n(()=>[o(y,{modelValue:e.schemaStore.graph.properties.name,"onUpdate:modelValue":t[0]||(t[0]=_=>e.schemaStore.graph.properties.name=_),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_title","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.description},{content:n(()=>[o(y,{modelValue:e.schemaStore.graph.properties.description,"onUpdate:modelValue":t[1]||(t[1]=_=>e.schemaStore.graph.properties.description=_),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_excerpt","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.supplies,align:""},{content:n(()=>[o(g,{size:"medium",multiple:"",taggable:"",options:e.getJsonValue(e.schemaStore.graph.properties.supplies)||[],modelValue:e.getJsonValue(e.schemaStore.graph.properties.supplies)||[],"onUpdate:modelValue":t[2]||(t[2]=_=>e.schemaStore.graph.properties.supplies=e.setJsonValue(_)),placeholder:r.strings.supplyKeyword,"tag-placeholder":r.strings.supplyTagPlaceholder},null,8,["options","modelValue","placeholder","tag-placeholder"])]),_:1},8,["name"]),o(s,{name:r.strings.tools,align:""},{content:n(()=>[o(g,{size:"medium",multiple:"",taggable:"",options:e.getJsonValue(e.schemaStore.graph.properties.tools)||[],modelValue:e.getJsonValue(e.schemaStore.graph.properties.tools)||[],"onUpdate:modelValue":t[3]||(t[3]=_=>e.schemaStore.graph.properties.tools=e.setJsonValue(_)),placeholder:r.strings.toolPlaceholder,"tag-placeholder":r.strings.toolTagPlaceholder},null,8,["options","modelValue","placeholder","tag-placeholder"])]),_:1},8,["name"]),o(s,{class:"required-time",name:r.strings.totalTime,align:""},{content:n(()=>[h("div",null,[h("strong",null,f(r.strings.days),1),o(b,{type:"number",size:"medium",min:0,modelValue:e.schemaStore.graph.properties.totalTime.days,"onUpdate:modelValue":t[4]||(t[4]=_=>e.schemaStore.graph.properties.totalTime.days=_)},null,8,["modelValue"])]),h("div",null,[h("strong",null,f(r.strings.hours),1),o(b,{type:"number",size:"medium",min:0,max:24,modelValue:e.schemaStore.graph.properties.totalTime.hours,"onUpdate:modelValue":t[5]||(t[5]=_=>e.schemaStore.graph.properties.totalTime.hours=_)},null,8,["modelValue"])]),h("div",null,[h("strong",null,f(r.strings.minutes),1),o(b,{type:"number",size:"medium",min:0,max:60,modelValue:e.schemaStore.graph.properties.totalTime.minutes,"onUpdate:modelValue":t[6]||(t[6]=_=>e.schemaStore.graph.properties.totalTime.minutes=_)},null,8,["modelValue"])])]),_:1},8,["name"]),o(s,{class:"image-field",name:r.strings.image,align:""},{content:n(()=>[o(S,{modelValue:e.schemaStore.graph.properties.image,"onUpdate:modelValue":t[7]||(t[7]=_=>e.schemaStore.graph.properties.image=_)},null,8,["modelValue"])]),_:1},8,["name"]),o(V,{header:r.strings.estimatedCost},{default:n(()=>[o(s,{name:r.strings.price,align:""},{content:n(()=>[o(b,{size:"medium",type:"number",min:0,step:.01,modelValue:e.schemaStore.graph.properties.estimatedCost.price,"onUpdate:modelValue":t[8]||(t[8]=_=>e.schemaStore.graph.properties.estimatedCost.price=_)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.currency,align:""},{content:n(()=>[o(g,{size:"medium",options:e.CURRENCY_LIST,modelValue:v.getCurrency(e.schemaStore.graph.properties.estimatedCost.currency),"onUpdate:modelValue":t[9]||(t[9]=_=>v.saveCurrency(_.value))},null,8,["options","modelValue"])]),_:1},8,["name"])]),_:1},8,["header"]),o(c,{groupProp:e.schemaStore.graph.properties.steps,defaults:r.stepDefaults,pluralName:r.strings.steps,singularName:r.strings.step},{"fields-inner":n(({groupIndex:_})=>[o(s,{name:r.strings.title,align:""},{content:n(()=>[o(b,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.steps[_].name,"onUpdate:modelValue":C=>e.schemaStore.graph.properties.steps[_].name=C},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["name"]),o(s,{name:r.strings.details,align:""},{content:n(()=>[o(m,{size:"medium",modelValue:e.schemaStore.graph.properties.steps[_].text,"onUpdate:modelValue":C=>e.schemaStore.graph.properties.steps[_].text=C,minHeight:120},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["name"]),o(s,{name:r.strings.url,align:""},{content:n(()=>[o(b,{type:"text",size:"medium",validation:"url",modelValue:e.schemaStore.graph.properties.steps[_].url,"onUpdate:modelValue":C=>e.schemaStore.graph.properties.steps[_].url=C},null,8,["modelValue","onUpdate:modelValue"]),h("div",En,f(r.strings.urlDescription),1)]),_:2},1032,["name"]),o(s,{class:"image-field",name:r.strings.image,align:""},{content:n(()=>[o(S,{modelValue:e.schemaStore.graph.properties.steps[_].image,"onUpdate:modelValue":C=>e.schemaStore.graph.properties.steps[_].image=C},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["name"])]),_:1},8,["groupProp","defaults","pluralName","singularName"])])}const Pn=$(kn,[["render",Nn]]),Y="aioseo-pro",Mn={setup(){const{initSchemaEditor:i}=te();return{COUNTRY_LIST:it,CURRENCY_LIST:fe,GLOBAL_STRINGS:Te,JOBPOSTING_DEGREE_TYPE_LIST:Ut,JOBPOSTING_EMPLOYMENT_TYPE_LIST:At,JOBPOSTING_SALARY_INTERVAL_TYPE_LIST:kt,dateJsToLocal:ke,dateStringToLocalJs:Ue,initSchemaEditor:i,optionsStore:Be(),rootStore:we(),schemaStore:Z()}},components:{BaseDatePicker:Ae,BaseRadioToggle:He,CoreHtmlTagsEditor:ce,CoreImageUploader:_e,CoreSettingsRow:K,CoreFieldGroup:ge},data(){return{locationDefaults:{type:"City",name:""},strings:{title:a("Job Title",Y),description:a("Description",Y),dates:a("Dates",Y),datePosted:a("Publish Date",Y),dateExpires:a("Expiration Date",Y),employmentType:a("Employment Type",Y),remote:a("Work from Home",Y),remoteDescription:a("Enable this if the job is 100% remote.",Y),hiringOrganization:a("Hiring Organization",Y),name:a("Name",Y),url:a("URL",Y),logo:a("Logo",Y),locations:a("Locations",Y),location:a("Location",Y),type:a("Type",Y),city:a("City",Y),state:a("State",Y),streetAddress:a("Street Address",Y),locality:a("Locality",Y),postalCode:a("Postal Code",Y),region:a("Region",Y),country:a("Country",Y),salary:a("Salary",Y),range:a("Pay Range",Y),minimum:a("Minimum",Y),maximum:a("Maximum",Y),interval:a("Pay Interval",Y),currency:a("Currency",Y),requirements:a("Requirements",Y),experienceInsteadOfEducation:a("Experience instead of Education",Y),experienceInsteadOfEducationDescription:a("Whether the organization accepts experience in place of the educational qualifications.",Y),monthsOfExperience:a("Months of Experience",Y),requiredDegree:a("Required Degree",Y),requiredDegreeDescription:a("The specifics of the required degree/certificate should be described in the description field above.",Y),organizationDescription:de(a("Leave this empty if you want to use the Organization you've set under %1$s.",Y),ve.getPlainLink(a("Search Appearance > Knowledge Graph",Y),this.rootStore.aioseo.urls.aio.searchAppearance+"#/global-settings"))}}},methods:{getEmploymentType(i){return At.find(t=>t.value===i)},saveEmploymentType(i){this.schemaStore.graph.properties.employmentType=i},getSalaryIntervalType(i){return kt.find(t=>t.value===i)},saveSalaryIntervalType(i){this.schemaStore.graph.properties.salary.interval=i},getCurrency(i){return fe.find(t=>t.value===i)},saveCurrency(i){this.schemaStore.graph.properties.salary.currency=i},getDegree(i){return Ut.find(t=>t.value===i)},saveDegree(i){this.schemaStore.graph.properties.requirements.degree=i}},beforeMount(){const i={id:"#aioseo-job-posting-"+new Date().getTime().toString(36),slug:"job-posting",graphName:"JobPosting",label:a("Job Posting",Y),properties:{name:"#post_title",description:"#post_excerpt",employmentType:"",remote:!1,dates:{datePosted:"",dateExpires:""},hiringOrganization:{name:"",url:"",image:""},location:{streetAddress:"",locality:"",postalCode:"",region:"",country:""},salary:{minimum:"",maximum:"",interval:"",currency:""},requirements:{experienceInsteadOfEducation:!1,experience:"",degree:""},locations:[JSON.parse(JSON.stringify(this.locationDefaults))]}};this.initSchemaEditor(i)}},zn={class:"graph-editor-fields graph-job-posting"},On=["innerHTML"],Rn={class:"aioseo-description"},Ln={class:"aioseo-description"};function Gn(i,t,p,e,r,v){const y=d("core-html-tags-editor"),s=d("core-settings-row"),g=d("base-select"),b=d("base-input"),S=d("core-field-group"),V=d("core-image-uploader"),m=d("base-radio-toggle"),c=d("base-date-picker");return u(),E("div",zn,[o(s,{name:r.strings.title},{content:n(()=>[o(y,{modelValue:e.schemaStore.graph.properties.name,"onUpdate:modelValue":t[0]||(t[0]=_=>e.schemaStore.graph.properties.name=_),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_title","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.description},{content:n(()=>[o(y,{modelValue:e.schemaStore.graph.properties.description,"onUpdate:modelValue":t[1]||(t[1]=_=>e.schemaStore.graph.properties.description=_),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_excerpt","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.employmentType,align:""},{content:n(()=>[o(g,{size:"medium",options:e.JOBPOSTING_EMPLOYMENT_TYPE_LIST,modelValue:v.getEmploymentType(e.schemaStore.graph.properties.employmentType),"onUpdate:modelValue":t[2]||(t[2]=_=>v.saveEmploymentType(_.value))},null,8,["options","modelValue"])]),_:1},8,["name"]),e.schemaStore.graph.properties.remote?k("",!0):(u(),w(S,{key:0,header:r.strings.location},{default:n(()=>[o(s,{name:r.strings.streetAddress},{content:n(()=>[o(b,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.location.streetAddress,"onUpdate:modelValue":t[3]||(t[3]=_=>e.schemaStore.graph.properties.location.streetAddress=_)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.locality},{content:n(()=>[o(b,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.location.locality,"onUpdate:modelValue":t[4]||(t[4]=_=>e.schemaStore.graph.properties.location.locality=_)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.postalCode},{content:n(()=>[o(b,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.location.postalCode,"onUpdate:modelValue":t[5]||(t[5]=_=>e.schemaStore.graph.properties.location.postalCode=_)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.region},{content:n(()=>[o(b,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.location.region,"onUpdate:modelValue":t[6]||(t[6]=_=>e.schemaStore.graph.properties.location.region=_)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.country},{content:n(()=>[o(g,{size:"medium",options:e.COUNTRY_LIST,modelValue:e.COUNTRY_LIST.find(_=>_.value===e.schemaStore.graph.properties.location.country),"onUpdate:modelValue":t[7]||(t[7]=_=>e.schemaStore.graph.properties.location.country=_.value)},null,8,["options","modelValue"])]),_:1},8,["name"])]),_:1},8,["header"])),o(S,{header:r.strings.hiringOrganization},{default:n(()=>[o(s,{name:r.strings.name},{content:n(()=>[o(b,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.hiringOrganization.name,"onUpdate:modelValue":t[8]||(t[8]=_=>e.schemaStore.graph.properties.hiringOrganization.name=_)},null,8,["modelValue"]),e.optionsStore.options.searchAppearance.global.schema.siteRepresents==="organization"?(u(),E("div",{key:0,class:"aioseo-description",innerHTML:r.strings.organizationDescription},null,8,On)):k("",!0)]),_:1},8,["name"]),o(s,{name:r.strings.url},{content:n(()=>[o(b,{type:"text",size:"medium",validation:"url",modelValue:e.schemaStore.graph.properties.hiringOrganization.url,"onUpdate:modelValue":t[9]||(t[9]=_=>e.schemaStore.graph.properties.hiringOrganization.url=_)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{class:"image-field",name:r.strings.logo,align:""},{content:n(()=>[o(V,{modelValue:e.schemaStore.graph.properties.hiringOrganization.image,"onUpdate:modelValue":t[10]||(t[10]=_=>e.schemaStore.graph.properties.hiringOrganization.image=_)},null,8,["modelValue"])]),_:1},8,["name"])]),_:1},8,["header"]),o(S,{header:r.strings.salary},{default:n(()=>[o(s,{class:"salary-range",name:r.strings.range,align:""},{content:n(()=>[h("div",null,[h("strong",null,f(r.strings.minimum),1),o(b,{type:"number",size:"medium",min:0,modelValue:e.schemaStore.graph.properties.salary.minimum,"onUpdate:modelValue":t[11]||(t[11]=_=>e.schemaStore.graph.properties.salary.minimum=_)},null,8,["modelValue"])]),h("div",null,[h("strong",null,f(r.strings.maximum),1),o(b,{type:"number",size:"medium",min:0,modelValue:e.schemaStore.graph.properties.salary.maximum,"onUpdate:modelValue":t[12]||(t[12]=_=>e.schemaStore.graph.properties.salary.maximum=_)},null,8,["modelValue"])])]),_:1},8,["name"]),o(s,{name:r.strings.interval,align:""},{content:n(()=>[o(g,{size:"medium",options:e.JOBPOSTING_SALARY_INTERVAL_TYPE_LIST,modelValue:v.getSalaryIntervalType(e.schemaStore.graph.properties.salary.interval),"onUpdate:modelValue":t[13]||(t[13]=_=>v.saveSalaryIntervalType(_.value))},null,8,["options","modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.currency,align:""},{content:n(()=>[o(g,{size:"medium",options:e.CURRENCY_LIST,modelValue:v.getCurrency(e.schemaStore.graph.properties.salary.currency),"onUpdate:modelValue":t[14]||(t[14]=_=>v.saveCurrency(_.value))},null,8,["options","modelValue"])]),_:1},8,["name"])]),_:1},8,["header"]),o(S,{header:r.strings.requirements},{default:n(()=>[o(s,{name:r.strings.experienceInsteadOfEducation,align:""},{content:n(()=>[o(m,{name:"experienceInsteadOfEducation",modelValue:e.schemaStore.graph.properties.requirements.experienceInsteadOfEducation,"onUpdate:modelValue":t[15]||(t[15]=_=>e.schemaStore.graph.properties.requirements.experienceInsteadOfEducation=_),options:[{label:e.GLOBAL_STRINGS.no,value:!1,activeClass:"dark"},{label:e.GLOBAL_STRINGS.yes,value:!0}]},null,8,["modelValue","options"]),h("div",Rn,f(r.strings.experienceInsteadOfEducationDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.monthsOfExperience,align:""},{content:n(()=>[h("div",null,[o(b,{type:"number",size:"medium",min:0,modelValue:e.schemaStore.graph.properties.salary.experience,"onUpdate:modelValue":t[16]||(t[16]=_=>e.schemaStore.graph.properties.salary.experience=_)},null,8,["modelValue"])])]),_:1},8,["name"]),o(s,{name:r.strings.requiredDegree,align:""},{content:n(()=>[o(g,{size:"medium",options:e.JOBPOSTING_DEGREE_TYPE_LIST,modelValue:v.getDegree(e.schemaStore.graph.properties.requirements.degree),"onUpdate:modelValue":t[17]||(t[17]=_=>v.saveDegree(_.value))},null,8,["options","modelValue"]),h("div",Ln,f(r.strings.requiredDegreeDescription),1)]),_:1},8,["name"])]),_:1},8,["header"]),o(S,{header:r.strings.dates},{default:n(()=>[o(s,{name:r.strings.datePosted,align:""},{content:n(()=>[o(c,{type:"date",size:"large",dateFormat:"m/d/Y",defaultValue:e.dateStringToLocalJs(e.schemaStore.graph.properties.dates.datePosted),onChange:t[18]||(t[18]=_=>e.schemaStore.graph.properties.dates.datePosted=e.dateJsToLocal(_,"MM/DD/YYYY"))},null,8,["defaultValue"])]),_:1},8,["name"]),o(s,{name:r.strings.dateExpires,align:""},{content:n(()=>[o(c,{type:"date",size:"large",dateFormat:"m/d/Y",defaultValue:e.dateStringToLocalJs(e.schemaStore.graph.properties.dates.dateExpires),onChange:t[19]||(t[19]=_=>e.schemaStore.graph.properties.dates.dateExpires=e.dateJsToLocal(_,"MM/DD/YYYY"))},null,8,["defaultValue"])]),_:1},8,["name"])]),_:1},8,["header"])])}const Lt=$(Mn,[["render",Gn]]),xn={key:1},In=["innerHTML"],Yn={__name:"JobPosting",setup(i){const{hasFeature:t,graphNotIncluded:p}=et();return(e,r)=>(u(),E("div",null,[l(t)?(u(),w(l(Lt),{key:0})):k("",!0),l(t)?k("",!0):(u(),E("div",xn,[o(l(De),{class:"feature-alert",type:"yellow"},{default:n(()=>[h("strong",{innerHTML:l(p)},null,8,In)]),_:1}),o(l(Vt),null,{default:n(()=>[o(l(Lt))]),_:1})]))]))}},je="aioseo-pro",Jn={setup(){const{initSchemaEditor:i}=te();return{dateJsToLocal:ke,dateStringToLocalJs:Ue,initSchemaEditor:i,schemaStore:Z()}},components:{BaseDatePicker:Ae,CoreHtmlTagsEditor:ce,CoreImageUploader:_e,CoreSettingsRow:K,Review:qe,ReviewRating:Ye},data(){return{strings:{name:a("Name",je),description:a("Description",je),director:a("Director",je),releaseDate:a("Release Date",je),image:a("Image",je)}}},beforeMount(){const i={id:"#aioseo-movie-"+new Date().getTime().toString(36),slug:"movie",graphName:"Movie",label:a("Movie",je),properties:{name:"#post_title",description:"",director:"",releaseDate:"",image:"",rating:{minimum:1,maximum:5},review:{rating:"",headline:"",content:"",author:"#author_name"}}};this.initSchemaEditor(i)}},Fn={class:"graph-editor-fields graph-movie"};function Bn(i,t,p,e,r,v){const y=d("core-html-tags-editor"),s=d("core-settings-row"),g=d("base-input"),b=d("base-date-picker"),S=d("core-image-uploader"),V=d("review"),m=d("review-rating");return u(),E("div",Fn,[o(s,{name:r.strings.name},{content:n(()=>[o(y,{modelValue:e.schemaStore.graph.properties.name,"onUpdate:modelValue":t[0]||(t[0]=c=>e.schemaStore.graph.properties.name=c),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_title","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.description},{content:n(()=>[o(y,{modelValue:e.schemaStore.graph.properties.description,"onUpdate:modelValue":t[1]||(t[1]=c=>e.schemaStore.graph.properties.description=c),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_excerpt","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.director},{content:n(()=>[o(g,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.director,"onUpdate:modelValue":t[2]||(t[2]=c=>e.schemaStore.graph.properties.director=c)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.releaseDate,align:""},{content:n(()=>[o(b,{type:"date",size:"large",dateFormat:"m/d/Y",defaultValue:e.dateStringToLocalJs(e.schemaStore.graph.properties.releaseDate),onChange:t[3]||(t[3]=c=>e.schemaStore.graph.properties.releaseDate=e.dateJsToLocal(c,"MM/DD/YYYY"))},null,8,["defaultValue"])]),_:1},8,["name"]),o(s,{class:"image-field",name:r.strings.image,align:""},{content:n(()=>[o(S,{modelValue:e.schemaStore.graph.properties.image,"onUpdate:modelValue":t[4]||(t[4]=c=>e.schemaStore.graph.properties.image=c)},null,8,["modelValue"])]),_:1},8,["name"]),o(V,{reviewProp:e.schemaStore.graph.properties.review,multiple:!1},null,8,["reviewProp"]),o(m)])}const Hn=$(Jn,[["render",Bn]]),Je="aioseo-pro",qn={setup(){const{initSchemaEditor:i}=te();return{initSchemaEditor:i,schemaStore:Z()}},components:{BaseRadio:Qe,BaseTextarea:Ge,CoreImageUploader:_e,CoreSettingsRow:K},data(){return{strings:{type:a("Type",Je),name:a("Name",Je),description:a("Description",Je),musicGroup:a("Music Group",Je),musicAlbum:a("Music Album",Je),image:a("Image",Je)}}},beforeMount(){const i={id:"#aioseo-music-"+new Date().getTime().toString(36),slug:"music",graphName:"Music",label:a("Music",Je),properties:{name:"",description:"",type:"MusicGroup",image:""}};this.initSchemaEditor(i)}},Wn={class:"graph-editor-fields graph-music"};function jn(i,t,p,e,r,v){const y=d("base-radio"),s=d("core-settings-row"),g=d("base-input"),b=d("base-textarea"),S=d("core-image-uploader");return u(),E("div",Wn,[o(s,{name:r.strings.type},{content:n(()=>[o(y,{size:"small",name:"type",modelValue:e.schemaStore.graph.properties.type==="MusicGroup","onUpdate:modelValue":t[0]||(t[0]=V=>e.schemaStore.graph.properties.type="MusicGroup"),type:2},{default:n(()=>[N(f(r.strings.musicGroup),1)]),_:1},8,["modelValue"]),o(y,{size:"small",name:"type",modelValue:e.schemaStore.graph.properties.type==="MusicAlbum","onUpdate:modelValue":t[1]||(t[1]=V=>e.schemaStore.graph.properties.type="MusicAlbum"),type:2},{default:n(()=>[N(f(r.strings.musicAlbum),1)]),_:1},8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.name},{content:n(()=>[o(g,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.name,"onUpdate:modelValue":t[2]||(t[2]=V=>e.schemaStore.graph.properties.name=V)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.description},{content:n(()=>[o(b,{modelValue:e.schemaStore.graph.properties.description,"onUpdate:modelValue":t[3]||(t[3]=V=>e.schemaStore.graph.properties.description=V),minHeight:120},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{class:"image-field",name:r.strings.image,align:""},{content:n(()=>[o(S,{modelValue:e.schemaStore.graph.properties.image,"onUpdate:modelValue":t[4]||(t[4]=V=>e.schemaStore.graph.properties.image=V)},null,8,["modelValue"])]),_:1},8,["name"])])}const Kn=$(qn,[["render",jn]]),be="aioseo-pro",Qn={setup(){const{initSchemaEditor:i}=te();return{initSchemaEditor:i,schemaStore:Z(),COUNTRY_LIST:it}},components:{CoreHtmlTagsEditor:ce,CoreImageUploader:_e,CoreSettingsRow:K,CoreFieldGroup:ge},data(){return{strings:{name:a("Name",be),description:a("Description",be),email:a("Email",be),jobTitle:a("Job Title",be),location:a("Location",be),streetAddress:a("Street Address",be),locality:a("Locality",be),postalCode:a("Postal Code",be),region:a("Region",be),country:a("Country",be),image:a("Image",be)}}},beforeMount(){const i={id:"#aioseo-person-"+new Date().getTime().toString(36),slug:"person",graphName:"Person",label:a("Person",be),properties:{name:"#post_title",description:"",email:"",jobTitle:"",image:"",location:{streetAddress:"",locality:"",postalCode:"",region:"",country:""}}};this.initSchemaEditor(i)}},Zn={class:"graph-editor-fields graph-person"};function Xn(i,t,p,e,r,v){const y=d("core-html-tags-editor"),s=d("core-settings-row"),g=d("base-input"),b=d("core-image-uploader"),S=d("base-select"),V=d("core-field-group");return u(),E("div",Zn,[o(s,{name:r.strings.name},{content:n(()=>[o(y,{modelValue:e.schemaStore.graph.properties.name,"onUpdate:modelValue":t[0]||(t[0]=m=>e.schemaStore.graph.properties.name=m),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_title","author_name"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.description},{content:n(()=>[o(y,{modelValue:e.schemaStore.graph.properties.description,"onUpdate:modelValue":t[1]||(t[1]=m=>e.schemaStore.graph.properties.description=m),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_excerpt","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.email},{content:n(()=>[o(g,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.email,"onUpdate:modelValue":t[2]||(t[2]=m=>e.schemaStore.graph.properties.email=m)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.jobTitle},{content:n(()=>[o(g,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.jobTitle,"onUpdate:modelValue":t[3]||(t[3]=m=>e.schemaStore.graph.properties.jobTitle=m)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{class:"image-field",name:r.strings.image,align:""},{content:n(()=>[o(b,{modelValue:e.schemaStore.graph.properties.image,"onUpdate:modelValue":t[4]||(t[4]=m=>e.schemaStore.graph.properties.image=m)},null,8,["modelValue"])]),_:1},8,["name"]),o(V,{header:r.strings.location},{default:n(()=>[o(s,{name:r.strings.streetAddress},{content:n(()=>[o(g,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.location.streetAddress,"onUpdate:modelValue":t[5]||(t[5]=m=>e.schemaStore.graph.properties.location.streetAddress=m)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.locality},{content:n(()=>[o(g,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.location.locality,"onUpdate:modelValue":t[6]||(t[6]=m=>e.schemaStore.graph.properties.location.locality=m)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.postalCode},{content:n(()=>[o(g,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.location.postalCode,"onUpdate:modelValue":t[7]||(t[7]=m=>e.schemaStore.graph.properties.location.postalCode=m)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.region},{content:n(()=>[o(g,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.location.region,"onUpdate:modelValue":t[8]||(t[8]=m=>e.schemaStore.graph.properties.location.region=m)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.country},{content:n(()=>[o(S,{size:"medium",options:e.COUNTRY_LIST,modelValue:e.COUNTRY_LIST.find(m=>m.value===e.schemaStore.graph.properties.location.country),"onUpdate:modelValue":t[9]||(t[9]=m=>e.schemaStore.graph.properties.location.country=m.value)},null,8,["options","modelValue"])]),_:1},8,["name"])]),_:1},8,["header"])])}const $n=$(Qn,[["render",Xn]]),ze="aioseo-pro",es={components:{CoreFieldGroup:ge,CoreSettingsRow:K},props:{deliveryTime:{type:Object,required:!0,default:()=>({handlingTime:{minValue:"",maxValue:""},transitTime:{minValue:"",maxValue:""}})},onChange:{type:Function,required:!0}},data(){return{strings:{deliveryTime:a("Delivery Time",ze),minimumHandling:a("Minimum Handling Time",ze),minimumHandlingDescription:a("The minimum delay in days between the receipt of the order and the goods leaving the warehouse.",ze),maximumHandling:a("Maximum Handling Time",ze),maximumHandlingDescription:a("The maximum delay in days between the receipt of the order and the goods leaving the warehouse.",ze),minimumTransit:a("Minimum Transit Time",ze),minimumTransitDescription:a("The minimum delay in days between when the order has been sent for delivery and when the goods reach the final customer.",ze),maximumTransit:a("Maximum Transit Time",ze),maximumTransitDescription:a("The maximum delay in days between when the order has been sent for delivery and when the goods reach the final customer.",ze)}}},methods:{updateDeliveryTime(i,t,p){const e={...this.deliveryTime};e[i][t]=!isNaN(p)&&p!==""?parseInt(p):"",this.onChange(e)}}},ts={class:"aioseo-description"},os={class:"aioseo-description"},as={class:"aioseo-description"},rs={class:"aioseo-description"};function ns(i,t,p,e,r,v){const y=d("base-input"),s=d("core-settings-row"),g=d("core-field-group");return u(),w(g,{header:r.strings.deliveryTime},{default:n(()=>[o(s,{name:r.strings.minimumHandling,align:""},{content:n(()=>[o(y,{size:"medium",type:"number",modelValue:p.deliveryTime?.handlingTime?.minValue,"onUpdate:modelValue":t[0]||(t[0]=b=>v.updateDeliveryTime("handlingTime","minValue",b)),min:0,step:1},null,8,["modelValue"]),h("div",ts,f(r.strings.minimumHandlingDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.maximumHandling,align:""},{content:n(()=>[o(y,{size:"medium",type:"number",modelValue:p.deliveryTime?.handlingTime?.maxValue,"onUpdate:modelValue":t[1]||(t[1]=b=>v.updateDeliveryTime("handlingTime","maxValue",b)),min:0,step:1},null,8,["modelValue"]),h("div",os,f(r.strings.maximumHandlingDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.minimumTransit,align:""},{content:n(()=>[o(y,{size:"medium",type:"number",modelValue:p.deliveryTime?.transitTime?.minValue,"onUpdate:modelValue":t[2]||(t[2]=b=>v.updateDeliveryTime("transitTime","minValue",b)),min:0,step:1},null,8,["modelValue"]),h("div",as,f(r.strings.minimumTransitDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.maximumTransit,align:""},{content:n(()=>[o(y,{size:"medium",type:"number",modelValue:p.deliveryTime?.transitTime?.maxValue,"onUpdate:modelValue":t[3]||(t[3]=b=>v.updateDeliveryTime("transitTime","maxValue",b)),min:0,step:1},null,8,["modelValue"]),h("div",rs,f(r.strings.maximumTransitDescription),1)]),_:1},8,["name"])]),_:1},8,["header"])}const ss=$(es,[["render",ns]]),jt={__name:"Audience",setup(i){const t=Z(),p="all-in-one-seo-pack",e={audience:a("Audience",p),gender:a("Gender",p),minimumAge:a("Minimum Age",p),maximumAge:a("Maximum Age",p)},r=m=>at.find(c=>c.value===m),v=m=>{t.graph.properties.audience.gender=m},y=m=>Et.find(c=>parseFloat(c.value)===parseFloat(m)),s=m=>{t.graph.properties.audience.minimumAge=m},g=m=>Nt.find(c=>parseFloat(c.value)===parseFloat(m)),b=m=>{t.graph.properties.audience.maximumAge=m},S=m=>Nt.filter(c=>parseFloat(c.value)>m),V=ae(isNaN(t.graph.properties.audience?.minimumAge)?[]:S(t.graph.properties.audience?.minimumAge));return yt(()=>t.graph.properties.audience.minimumAge,m=>{t.graph.properties.audience.maximumAge="",V.value=S(parseFloat(m))}),(m,c)=>(u(),w(l(ge),{header:e.audience},{default:n(()=>[o(l(K),{name:e.gender,align:""},{content:n(()=>[o(l(gt),{class:"aioseo-product-gender",size:"medium",options:l(at),modelValue:r(l(t).graph.properties.audience.gender),"onUpdate:modelValue":c[0]||(c[0]=_=>v(_.value))},null,8,["options","modelValue"])]),_:1},8,["name"]),o(l(K),{name:e.minimumAge,align:""},{content:n(()=>[o(l(gt),{class:"aioseo-product-min-age",size:"medium",options:l(Et),modelValue:y(l(t).graph.properties.audience.minimumAge),"onUpdate:modelValue":c[1]||(c[1]=_=>s(_.value))},null,8,["options","modelValue"])]),_:1},8,["name"]),V.value.length?(u(),w(l(K),{key:0,name:e.maximumAge,align:""},{content:n(()=>[o(l(gt),{class:"aioseo-product-max-age",size:"medium",options:V.value,modelValue:g(l(t).graph.properties.audience.maximumAge),"onUpdate:modelValue":c[2]||(c[2]=_=>b(_.value))},null,8,["options","modelValue"])]),_:1},8,["name"])):k("",!0)]),_:1},8,["header"]))}},J="aioseo-pro",is={setup(){const{getJsonValue:i,setJsonValue:t}=xe(),{initSchemaEditor:p}=te();return{COUNTRY_LIST:it,CURRENCY_LIST:fe,GLOBAL_STRINGS:Te,SCHEMA_AVAILABILITY:St,SCHEMA_ENERGY_RATING:_t,SCHEMA_GENDER:at,dateJsToLocal:ke,dateStringToLocalJs:Ue,getJsonValue:i,initSchemaEditor:p,postEditorStore:Pe(),rootStore:we(),schemaStore:Z(),setJsonValue:t}},components:{Audience:jt,BaseDatePicker:Ae,BaseRadioToggle:He,CoreHtmlTagsEditor:ce,CoreImageUploader:_e,CoreSettingsRow:K,CoreFieldGroup:ge,CoreFieldGroupRepeater:Ie,DeliveryTime:ss,Review:qe,ReviewRating:Ye},data(){return{energyRatingKey:0,reviewDefaults:{rating:"",headline:"",content:"",author:""},shippingDestinationDefaults:{type:"country",country:"",postalCodes:[],states:[],rate:0,handlingTime:"",deliveryTime:{handlingTime:{minValue:"",maxValue:"",unitCode:"DAY"},transitTime:{minValue:"",maxValue:"",unitCode:"DAY"}}},strings:{autogenerate:a("Autogenerate Fields",J),name:a("Name",J),description:a("Description",J),brand:a("Brand",J),image:a("Image",J),identifiers:a("Identifiers",J),sku:"SKU",mpn:"MPN",gtin:"GTIN",isbn:"ISBN",offer:a("Offer",J),price:a("Price",J),currency:a("Currency",J),priceValidUntil:a("Price Valid Until",J),priceValidDescription:a("The date until this pricing lasts (optional).",J),availability:a("Availability",J),reviews:a("Reviews",J),review:a("Review",J),shippingDestinations:a("Shipping Destinations",J),shippingDestination:a("Shipping Destination",J),destinationType:a("Type",J),country:a("Country",J),states:a("States",J),statesDescription:a('Enter one or multiple ISO 3166-2 subdivision codes for the states that you ship to. Currently, Google only supports the US, Australia, and Japan. Examples: "NY" (for US, state of New York), "NSW" (for Australia, state of New South Wales), or "03" (for Japan, Iwate prefecture).',J),postalCode:a("Postal Code",J),postalCodeDescription:a("You can enter one or multiple postal codes here if you only ship to certain parts of the country or if this rate only applies to specific postal codes. You cannot combine this together with states.",J),placeholderPostalCode:a("Type to enter a postal code...",J),tagPlaceholderPostalCode:a("Press enter to create a postal code",J),placeholderState:a("Type to enter a state...",J),tagPlaceholderState:a("Press enter to create a state",J),priceDescription:a('Enter "0" if you offer free shipping to this destination.',J),attributes:a("Attributes",J),material:a("Material",J),color:a("Color",J),pattern:a("Pattern",J),patternDescription:a('The pattern of the product, such as "polka dots" or "striped", if applicable.',J),size:a("Size",J),sizeDescription:a('A human readable name for the size, such as "XL", if applicable. Do not enter the dimensions of the product.',J),energyRating:a("EU Energy Rating",J)}}},computed:{isEddActive(){return this.rootStore.aioseo.data.isEddActive&&this.postEditorStore.currentPost.postType==="download"},isWooCommerceActive(){return this.rootStore.aioseo.data.isWooCommerceActive&&this.postEditorStore.currentPost.postType==="product"},autogenerateDescription(){return de(a("Disable this setting if you'd like to edit all fields manually instead of letting %1$s automatically generate them for you based on the product data from %2$s.",J),"AIOSEO",this.isEddActive?"Easy Digital Downloads":"WooCommerce")},hideFieldEdd(){return this.schemaStore.graph.properties.autogenerate&&this.isEddActive},hideFieldWooCommerce(){return this.schemaStore.graph.properties.autogenerate&&this.isWooCommerceActive},wooCommerceReviewsEnabled(){return this.isWooCommerceActive&&this.rootStore.aioseo.data?.wooCommerce?.reviewsEnabled}},methods:{getAvailability(i){return St.find(t=>t.value===i)},saveAvailability(i){this.schemaStore.graph.properties.offer.availability=i},getCurrency(i){return fe.find(t=>t.value===i)},saveCurrency(i){this.schemaStore.graph.properties.offer.currency=i},getEnergyRating(i){return _t.find(t=>t.value===i)},saveEnergyRating(i){this.schemaStore.graph.properties.attributes.energyRating=i,this.energyRatingKey++}},beforeMount(){const i={id:"#aioseo-product-"+new Date().getTime().toString(36),slug:"product",graphName:"Product",label:a("Product",J),properties:{autogenerate:!0,name:"#post_title",description:"#post_excerpt",brand:"",image:"",identifiers:{sku:"",gtin:"",mpn:"",isbn:""},offer:{price:"",currency:"",availability:"",validUntil:""},attributes:{material:"",color:"",pattern:"",size:"",energyRating:""},audience:{gender:"Unisex",minimumAge:"",maximumAge:""},rating:{minimum:1,maximum:5},reviews:[JSON.parse(JSON.stringify(this.reviewDefaults))],shippingDestinations:[JSON.parse(JSON.stringify(this.shippingDestinationDefaults))]}};this.initSchemaEditor(i)},async mounted(){this.schemaStore.graph.id||await st().then(i=>{this.schemaStore.graph?.properties&&(this.schemaStore.graph.properties.image=i,this.$nextTick(()=>{this.schemaStore.isDirty=!1}))})}},ls={class:"graph-editor-fields graph-product"},ms={class:"aioseo-description"},ps={class:"aioseo-description"},ds={class:"aioseo-description"},cs={class:"aioseo-description"},us={class:"aioseo-description"},gs={class:"aioseo-description"},hs={class:"aioseo-description"};function fs(i,t,p,e,r,v){const y=d("base-radio-toggle"),s=d("core-settings-row"),g=d("core-html-tags-editor"),b=d("base-input"),S=d("core-image-uploader"),V=d("core-field-group"),m=d("base-select"),c=d("base-date-picker"),_=d("audience"),C=d("review"),U=d("core-field-group-repeater"),T=d("review-rating"),A=d("delivery-time");return u(),E("div",ls,[v.isEddActive||v.isWooCommerceActive?(u(),w(s,{key:0,name:r.strings.autogenerate,align:""},{content:n(()=>[o(y,{name:"autogenerate",modelValue:e.schemaStore.graph.properties.autogenerate,"onUpdate:modelValue":t[0]||(t[0]=D=>e.schemaStore.graph.properties.autogenerate=D),options:[{label:e.GLOBAL_STRINGS.no,value:!1,activeClass:"dark"},{label:e.GLOBAL_STRINGS.yes,value:!0}]},null,8,["modelValue","options"]),h("div",ms,f(v.autogenerateDescription),1)]),_:1},8,["name"])):k("",!0),!v.hideFieldWooCommerce&&!v.hideFieldEdd?(u(),w(s,{key:1,name:r.strings.name},{content:n(()=>[o(g,{modelValue:e.schemaStore.graph.properties.name,"onUpdate:modelValue":t[1]||(t[1]=D=>e.schemaStore.graph.properties.name=D),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_title","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"])):k("",!0),v.hideFieldWooCommerce?k("",!0):(u(),w(s,{key:2,name:r.strings.description},{content:n(()=>[o(g,{modelValue:e.schemaStore.graph.properties.description,"onUpdate:modelValue":t[2]||(t[2]=D=>e.schemaStore.graph.properties.description=D),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_excerpt","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"])),!e.rootStore.aioseo.data.wooCommerce||e.rootStore.aioseo.data.wooCommerce.isWooCommerceBrandsActive&&!e.schemaStore.graph.properties.autogenerate||!e.rootStore.aioseo.data.wooCommerce.isWooCommerceBrandsActive&&!e.rootStore.aioseo.data.wooCommerce.isPerfectBrandsActive?(u(),w(s,{key:3,name:r.strings.brand,align:""},{content:n(()=>[o(b,{size:"medium",modelValue:e.schemaStore.graph.properties.brand,"onUpdate:modelValue":t[3]||(t[3]=D=>e.schemaStore.graph.properties.brand=D)},null,8,["modelValue"])]),_:1},8,["name"])):k("",!0),!v.hideFieldWooCommerce&&!v.hideFieldEdd?(u(),w(s,{key:4,class:"image-field",name:r.strings.image,align:""},{content:n(()=>[o(S,{modelValue:e.schemaStore.graph.properties.image,"onUpdate:modelValue":t[4]||(t[4]=D=>e.schemaStore.graph.properties.image=D)},null,8,["modelValue"])]),_:1},8,["name"])):k("",!0),o(V,{header:r.strings.identifiers},{default:n(()=>[v.hideFieldWooCommerce?k("",!0):(u(),w(s,{key:0,name:r.strings.sku,align:""},{content:n(()=>[o(b,{size:"medium",modelValue:e.schemaStore.graph.properties.identifiers.sku,"onUpdate:modelValue":t[5]||(t[5]=D=>e.schemaStore.graph.properties.identifiers.sku=D)},null,8,["modelValue"])]),_:1},8,["name"])),!e.rootStore.aioseo.data.wooCommerce||!e.rootStore.aioseo.data.wooCommerce.isWooCommerceUpcEanIsbnActive?(u(),w(s,{key:1,name:r.strings.gtin,align:""},{content:n(()=>[o(b,{size:"medium",modelValue:e.schemaStore.graph.properties.identifiers.gtin,"onUpdate:modelValue":t[6]||(t[6]=D=>e.schemaStore.graph.properties.identifiers.gtin=D)},null,8,["modelValue"])]),_:1},8,["name"])):k("",!0),o(s,{name:r.strings.mpn,align:""},{content:n(()=>[o(b,{size:"medium",modelValue:e.schemaStore.graph.properties.identifiers.mpn,"onUpdate:modelValue":t[7]||(t[7]=D=>e.schemaStore.graph.properties.identifiers.mpn=D)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.isbn,align:""},{content:n(()=>[o(b,{size:"medium",modelValue:e.schemaStore.graph.properties.identifiers.isbn,"onUpdate:modelValue":t[8]||(t[8]=D=>e.schemaStore.graph.properties.identifiers.isbn=D)},null,8,["modelValue"])]),_:1},8,["name"])]),_:1},8,["header"]),v.hideFieldWooCommerce?k("",!0):(u(),w(V,{key:5,header:r.strings.offer},{default:n(()=>[v.hideFieldEdd?k("",!0):(u(),w(s,{key:0,name:r.strings.price,align:""},{content:n(()=>[o(b,{size:"medium",type:"number",min:0,step:.01,modelValue:e.schemaStore.graph.properties.offer.price,"onUpdate:modelValue":t[9]||(t[9]=D=>e.schemaStore.graph.properties.offer.price=D)},null,8,["modelValue"])]),_:1},8,["name"])),v.hideFieldEdd?k("",!0):(u(),w(s,{key:1,name:r.strings.currency,align:""},{content:n(()=>[o(m,{size:"medium",options:e.CURRENCY_LIST,modelValue:v.getCurrency(e.schemaStore.graph.properties.offer.currency),"onUpdate:modelValue":t[10]||(t[10]=D=>v.saveCurrency(D.value))},null,8,["options","modelValue"])]),_:1},8,["name"])),o(s,{name:r.strings.priceValidUntil,align:""},{content:n(()=>[o(c,{type:"date",size:"large",dateFormat:"m/d/Y",defaultValue:e.dateStringToLocalJs(e.schemaStore.graph.properties.offer.validUntil),onChange:t[11]||(t[11]=D=>e.schemaStore.graph.properties.offer.validUntil=e.dateJsToLocal(D,"MM/DD/YYYY"))},null,8,["defaultValue"]),h("div",ps,f(r.strings.priceValidDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.availability,align:""},{content:n(()=>[o(m,{class:"aioseo-product-availibility",size:"medium",options:e.SCHEMA_AVAILABILITY,modelValue:v.getAvailability(e.schemaStore.graph.properties.offer.availability),"onUpdate:modelValue":t[12]||(t[12]=D=>v.saveAvailability(D.value))},null,8,["options","modelValue"])]),_:1},8,["name"])]),_:1},8,["header"])),v.hideFieldEdd?k("",!0):(u(),w(V,{key:6,header:r.strings.attributes},{default:n(()=>[o(s,{name:r.strings.material,align:""},{content:n(()=>[o(b,{size:"medium",modelValue:e.schemaStore.graph.properties.attributes.material,"onUpdate:modelValue":t[13]||(t[13]=D=>e.schemaStore.graph.properties.attributes.material=D)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.color,align:""},{content:n(()=>[o(b,{size:"medium",modelValue:e.schemaStore.graph.properties.attributes.color,"onUpdate:modelValue":t[14]||(t[14]=D=>e.schemaStore.graph.properties.attributes.color=D)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.pattern,align:""},{content:n(()=>[o(b,{size:"medium",modelValue:e.schemaStore.graph.properties.attributes.pattern,"onUpdate:modelValue":t[15]||(t[15]=D=>e.schemaStore.graph.properties.attributes.pattern=D)},null,8,["modelValue"]),h("div",ds,f(r.strings.patternDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.size,align:""},{content:n(()=>[o(b,{size:"medium",modelValue:e.schemaStore.graph.properties.attributes.size,"onUpdate:modelValue":t[16]||(t[16]=D=>e.schemaStore.graph.properties.attributes.size=D)},null,8,["modelValue"]),h("div",cs,f(r.strings.sizeDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.energyRating,align:""},{content:n(()=>[(u(),w(m,{key:r.energyRatingKey,class:"aioseo-product-gender",size:"medium",options:e.SCHEMA_ENERGY_RATING,modelValue:v.getEnergyRating(e.schemaStore.graph.properties.attributes.energyRating),"onUpdate:modelValue":t[17]||(t[17]=D=>v.saveEnergyRating(D.value))},null,8,["options","modelValue"]))]),_:1},8,["name"])]),_:1},8,["header"])),o(_),!v.hideFieldWooCommerce||!v.wooCommerceReviewsEnabled?(u(),w(U,{key:7,groupProp:e.schemaStore.graph.properties.reviews,defaults:r.reviewDefaults,pluralName:r.strings.reviews,singularName:r.strings.review},{"fields-inner":n(({groupIndex:D})=>[o(C,{reviewProp:e.schemaStore.graph.properties.reviews[D]},null,8,["reviewProp"])]),_:1},8,["groupProp","defaults","pluralName","singularName"])):k("",!0),(!v.hideFieldWooCommerce||!v.wooCommerceReviewsEnabled)&&(!e.rootStore.aioseo.data.edd||!e.rootStore.aioseo.data.edd.isEddReviewsActive)?(u(),w(T,{key:8})):k("",!0),!v.hideFieldWooCommerce&&!v.isEddActive?(u(),w(U,{key:9,groupProp:e.schemaStore.graph.properties.shippingDestinations,defaults:r.shippingDestinationDefaults,pluralName:r.strings.shippingDestinations,singularName:r.strings.shippingDestination},{"fields-inner":n(({groupIndex:D})=>[o(s,{name:r.strings.country},{content:n(()=>[o(m,{size:"medium",options:e.COUNTRY_LIST,modelValue:e.COUNTRY_LIST.find(le=>le.value===e.schemaStore.graph.properties.shippingDestinations[D].country),"onUpdate:modelValue":le=>e.schemaStore.graph.properties.shippingDestinations[D].country=le.value},null,8,["options","modelValue","onUpdate:modelValue"])]),_:2},1032,["name"]),o(s,{name:r.strings.states,align:""},{content:n(()=>[o(m,{size:"medium",multiple:"",taggable:"",options:e.getJsonValue(e.schemaStore.graph.properties.shippingDestinations[D].states)||[],modelValue:e.getJsonValue(e.schemaStore.graph.properties.shippingDestinations[D].states)||[],"onUpdate:modelValue":le=>e.schemaStore.graph.properties.shippingDestinations[D].states=e.setJsonValue(le),placeholder:r.strings.placeholderState,"tag-placeholder":r.strings.tagPlaceholderState},null,8,["options","modelValue","onUpdate:modelValue","placeholder","tag-placeholder"]),h("div",us,f(r.strings.statesDescription),1)]),_:2},1032,["name"]),o(s,{name:r.strings.postalCode,align:""},{content:n(()=>[o(m,{size:"medium",multiple:"",taggable:"",options:e.getJsonValue(e.schemaStore.graph.properties.shippingDestinations[D].postalCodes)||[],modelValue:e.getJsonValue(e.schemaStore.graph.properties.shippingDestinations[D].postalCodes)||[],"onUpdate:modelValue":le=>e.schemaStore.graph.properties.shippingDestinations[D].postalCodes=e.setJsonValue(le),placeholder:r.strings.placeholderPostalcode,"tag-placeholder":r.strings.tagPlaceholderPostalCode},null,8,["options","modelValue","onUpdate:modelValue","placeholder","tag-placeholder"]),h("div",gs,f(r.strings.postalCodeDescription),1)]),_:2},1032,["name"]),o(s,{name:r.strings.price,align:""},{content:n(()=>[o(b,{modelValue:e.schemaStore.graph.properties.shippingDestinations[D].rate,"onUpdate:modelValue":le=>e.schemaStore.graph.properties.shippingDestinations[D].rate=le,size:"medium",type:"number",min:0,step:1},null,8,["modelValue","onUpdate:modelValue"]),h("div",hs,f(r.strings.priceDescription),1)]),_:2},1032,["name"]),e.schemaStore.graph.properties.shippingDestinations[D]?.country?(u(),w(A,{key:0,deliveryTime:e.schemaStore.graph.properties.shippingDestinations[D].deliveryTime||r.shippingDestinationDefaults.deliveryTime,onChange:le=>e.schemaStore.graph.properties.shippingDestinations[D].deliveryTime=le},null,8,["deliveryTime","onChange"])):k("",!0)]),_:1},8,["groupProp","defaults","pluralName","singularName"])):k("",!0)])}const _s=$(is,[["render",fs]]),ie="aioseo-pro",Ss={setup(){const{initSchemaEditor:i}=te();return{CURRENCY_LIST:fe,SCHEMA_AVAILABILITY:St,SCHEMA_ENERGY_RATING:_t,SCHEMA_GENDER:at,dateJsToLocal:ke,dateStringToLocalJs:Ue,initSchemaEditor:i,postEditorStore:Pe(),rootStore:we(),schemaStore:Z()}},components:{Audience:jt,BaseDatePicker:Ae,CoreFieldGroup:ge,CoreHtmlTagsEditor:ce,CoreImageUploader:_e,CoreSettingsRow:K,Review:qe,ReviewRating:Ye},data(){return{energyRatingKey:0,reviewDefaults:{rating:"",headline:"",content:"",author:"",positiveNotes:[],negativeNotes:[]},strings:{name:a("Name",ie),description:a("Description",ie),brand:a("Brand",ie),image:a("Image",ie),identifiers:a("Identifiers",ie),sku:"SKU",mpn:"MPN",gtin:"GTIN",isbn:"ISBN",availability:a("Availability",ie),review:a("Review",ie),offer:a("Offer",ie),price:a("Price",ie),currency:a("Currency",ie),priceValidUntil:a("Price Valid Until",ie),priceValidDescription:a("The date until this pricing lasts (optional).",ie),attributes:a("Attributes",ie),material:a("Material",ie),color:a("Color",ie),pattern:a("Pattern",ie),patternDescription:a('The pattern of the product, such as "polka dots" or "striped", if applicable.',ie),size:a("Size",ie),sizeDescription:a('A human readable name for the size, such as "XL", if applicable. Do not enter the dimensions of the product.',ie),energyRating:a("EU Energy Rating",ie)}}},methods:{getAvailability(i){return this.SCHEMA_AVAILABILITY.find(t=>t.value===i)},saveAvailability(i){this.schemaStore.graph.properties.offer.availability=i},getCurrency(i){return this.CURRENCY_LIST.find(t=>t.value===i)},saveCurrency(i){this.schemaStore.graph.properties.offer.currency=i},getEnergyRating(i){return this.SCHEMA_ENERGY_RATING.find(t=>t.value===i)},saveEnergyRating(i){this.schemaStore.graph.properties.attributes.energyRating=i,this.energyRatingKey++}},beforeMount(){const i={id:"#aioseo-product-review-"+new Date().getTime().toString(36),slug:"product-review",graphName:"ProductReview",label:a("Product Review",ie),properties:{autogenerate:!1,name:"#post_title",description:"#post_excerpt",brand:"",image:"",identifiers:{sku:"",gtin:"",mpn:"",isbn:""},offer:{price:"",currency:"",availability:"",validUntil:""},attributes:{material:"",color:"",pattern:"",size:"",energyRating:""},audience:{gender:"Unisex",minimumAge:"",maximumAge:""},rating:{minimum:1,maximum:5},reviews:[JSON.parse(JSON.stringify(this.reviewDefaults))]}};this.initSchemaEditor(i)},async mounted(){this.schemaStore.graph.id||await st().then(i=>{this.schemaStore.graph?.properties&&(this.schemaStore.graph.properties.image=i,this.$nextTick(()=>{this.schemaStore.isDirty=!1}))})}},vs={class:"graph-editor-fields graph-product-review"},ys={class:"aioseo-description"},bs={class:"aioseo-description"},Vs={class:"aioseo-description"};function Ts(i,t,p,e,r,v){const y=d("core-html-tags-editor"),s=d("core-settings-row"),g=d("base-input"),b=d("core-image-uploader"),S=d("base-select"),V=d("base-date-picker"),m=d("core-field-group"),c=d("audience"),_=d("review"),C=d("review-rating");return u(),E("div",vs,[o(s,{name:r.strings.name},{content:n(()=>[o(y,{modelValue:e.schemaStore.graph.properties.name,"onUpdate:modelValue":t[0]||(t[0]=U=>e.schemaStore.graph.properties.name=U),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_title","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.description},{content:n(()=>[o(y,{modelValue:e.schemaStore.graph.properties.description,"onUpdate:modelValue":t[1]||(t[1]=U=>e.schemaStore.graph.properties.description=U),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_excerpt","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.brand,align:""},{content:n(()=>[o(g,{size:"medium",modelValue:e.schemaStore.graph.properties.brand,"onUpdate:modelValue":t[2]||(t[2]=U=>e.schemaStore.graph.properties.brand=U)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{class:"image-field",name:r.strings.image,align:""},{content:n(()=>[o(b,{modelValue:e.schemaStore.graph.properties.image,"onUpdate:modelValue":t[3]||(t[3]=U=>e.schemaStore.graph.properties.image=U)},null,8,["modelValue"])]),_:1},8,["name"]),o(m,{header:r.strings.offer},{default:n(()=>[o(s,{name:r.strings.price,align:""},{content:n(()=>[o(g,{size:"medium",type:"number",min:0,step:.01,modelValue:e.schemaStore.graph.properties.offer.price,"onUpdate:modelValue":t[4]||(t[4]=U=>e.schemaStore.graph.properties.offer.price=U)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.currency,align:""},{content:n(()=>[o(S,{size:"medium",options:e.CURRENCY_LIST,modelValue:v.getCurrency(e.schemaStore.graph.properties.offer.currency),"onUpdate:modelValue":t[5]||(t[5]=U=>v.saveCurrency(U.value))},null,8,["options","modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.priceValidUntil,align:""},{content:n(()=>[o(V,{type:"date",size:"large",dateFormat:"m/d/Y",defaultValue:e.dateStringToLocalJs(e.schemaStore.graph.properties.offer.validUntil),onChange:t[6]||(t[6]=U=>e.schemaStore.graph.properties.offer.validUntil=e.dateJsToLocal(U,"MM/DD/YYYY"))},null,8,["defaultValue"]),h("div",ys,f(r.strings.priceValidDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.availability,align:""},{content:n(()=>[o(S,{class:"aioseo-product-availibility",size:"medium",options:e.SCHEMA_AVAILABILITY,modelValue:v.getAvailability(e.schemaStore.graph.properties.offer.availability),"onUpdate:modelValue":t[7]||(t[7]=U=>v.saveAvailability(U.value))},null,8,["options","modelValue"])]),_:1},8,["name"])]),_:1},8,["header"]),o(m,{header:r.strings.identifiers},{default:n(()=>[o(s,{name:r.strings.sku,align:""},{content:n(()=>[o(g,{size:"medium",modelValue:e.schemaStore.graph.properties.identifiers.sku,"onUpdate:modelValue":t[8]||(t[8]=U=>e.schemaStore.graph.properties.identifiers.sku=U)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.gtin,align:""},{content:n(()=>[o(g,{size:"medium",modelValue:e.schemaStore.graph.properties.identifiers.gtin,"onUpdate:modelValue":t[9]||(t[9]=U=>e.schemaStore.graph.properties.identifiers.gtin=U)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.mpn,align:""},{content:n(()=>[o(g,{size:"medium",modelValue:e.schemaStore.graph.properties.identifiers.mpn,"onUpdate:modelValue":t[10]||(t[10]=U=>e.schemaStore.graph.properties.identifiers.mpn=U)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.isbn,align:""},{content:n(()=>[o(g,{size:"medium",modelValue:e.schemaStore.graph.properties.identifiers.isbn,"onUpdate:modelValue":t[11]||(t[11]=U=>e.schemaStore.graph.properties.identifiers.isbn=U)},null,8,["modelValue"])]),_:1},8,["name"])]),_:1},8,["header"]),o(m,{header:r.strings.attributes},{default:n(()=>[o(s,{name:r.strings.material,align:""},{content:n(()=>[o(g,{size:"medium",modelValue:e.schemaStore.graph.properties.attributes.material,"onUpdate:modelValue":t[12]||(t[12]=U=>e.schemaStore.graph.properties.attributes.material=U)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.color,align:""},{content:n(()=>[o(g,{size:"medium",modelValue:e.schemaStore.graph.properties.attributes.color,"onUpdate:modelValue":t[13]||(t[13]=U=>e.schemaStore.graph.properties.attributes.color=U)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.pattern,align:""},{content:n(()=>[o(g,{size:"medium",modelValue:e.schemaStore.graph.properties.attributes.pattern,"onUpdate:modelValue":t[14]||(t[14]=U=>e.schemaStore.graph.properties.attributes.pattern=U)},null,8,["modelValue"]),h("div",bs,f(r.strings.patternDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.size,align:""},{content:n(()=>[o(g,{size:"medium",modelValue:e.schemaStore.graph.properties.attributes.size,"onUpdate:modelValue":t[15]||(t[15]=U=>e.schemaStore.graph.properties.attributes.size=U)},null,8,["modelValue"]),h("div",Vs,f(r.strings.sizeDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.energyRating,align:""},{content:n(()=>[(u(),w(S,{key:r.energyRatingKey,class:"aioseo-product-energy-rating",size:"medium",options:e.SCHEMA_ENERGY_RATING,modelValue:v.getEnergyRating(e.schemaStore.graph.properties.attributes.energyRating),"onUpdate:modelValue":t[16]||(t[16]=U=>v.saveEnergyRating(U.value))},null,8,["options","modelValue"]))]),_:1},8,["name"])]),_:1},8,["header"]),o(c),o(_,{reviewProp:e.schemaStore.graph.properties.reviews[0],multiple:!1,enableReviewNotes:""},null,8,["reviewProp"]),o(C)])}const Cs=$(Ss,[["render",Ts]]),q="aioseo-pro",Ds={setup(){const{getJsonValue:i,setJsonValue:t}=xe(),{initSchemaEditor:p}=te();return{getJsonValue:i,initSchemaEditor:p,schemaStore:Z(),setJsonValue:t}},components:{BaseTextarea:Ge,CoreFieldGroup:ge,CoreFieldGroupRepeater:Ie,CoreHtmlTagsEditor:ce,CoreImageUploader:_e,CoreSettingsRow:K,ReviewRating:Ye},data(){return{instructionDefaults:{name:"",text:"",image:""},reviewDefaults:{rating:"",headline:"",content:"",author:""},strings:{name:a("Name",q),description:a("Description",q),author:a("Author",q),dishType:a("Dish Type",q),dishTypeDescription:a('The type of dish, e.g. "dinner", "main course", "dessert" or "snack".',q),cuisineType:a("Cuisine Type",q),cuisineTypeDescription:a('The region associated with the recipe, e.g. "French" or "Mediterranean" or "American".',q),timeRequired:a("Time Required",q),preparationTime:a("Preparation Time",q),preparationDescription:a("The time (in minutes) it takes to prepare the ingredients.",q),cookingTime:a("Cooking Time",q),cookingDescription:a("The time (in minutes) it takes to cook the ingredients.",q),servings:a("Amount of Servings",q),calories:a("Calories",q),caloriesDescription:a("The total number of calories per serving.",q),ingredients:a("Ingredients",q),ingredientsDescription:a('The ingredients and their amounts, e.g. "3/4 cup sugar".',q),instructions:a("Instructions",q),instruction:a("Instruction",q),keywords:a("Keywords",q),keywordsDescription:a("Other relevant terms for your recipe such as a season, a specific holiday or theme, or other descriptors. Don't enter the dish or cuisine type.",q),image:a("Image",q),nutrition:a("Nutrition",q),instructionTitle:a("Title",q),instructionText:a("Details",q),ratingCount:a("Rating Count",q),reviews:a("Reviews",q),review:a("Review",q),reviewRating:a("Review Rating",q),ratingValue:a("Rating Value",q),ratingMinimum:a("Rating Minimum",q),ratingMaximum:a("Rating Maximum",q),headline:a("Headline",q),content:a("Content",q)}}},beforeMount(){const i={id:"#aioseo-recipe-"+new Date().getTime().toString(36),slug:"recipe",graphName:"Recipe",label:a("Recipe",q),properties:{name:"#post_title",description:"#post_excerpt",author:"#author_name",ingredients:"",dishType:"",cuisineType:"",keywords:"",image:"",nutrition:{servings:1,calories:""},timeRequired:{preparation:"",cooking:""},instructions:[JSON.parse(JSON.stringify(this.instructionDefaults))],rating:{minimum:1,maximum:5},reviews:[JSON.parse(JSON.stringify(this.reviewDefaults))]}};this.initSchemaEditor(i)}},ws={class:"graph-editor-fields graph-recipe"},Us={class:"aioseo-description"},ks={class:"aioseo-description"},As={class:"aioseo-description"},Es={class:"aioseo-description"},Ns={class:"aioseo-description"};function Ps(i,t,p,e,r,v){const y=d("core-html-tags-editor"),s=d("core-settings-row"),g=d("base-select"),b=d("base-input"),S=d("core-image-uploader"),V=d("core-field-group"),m=d("base-textarea"),c=d("core-field-group-repeater"),_=d("review-rating");return u(),E("div",ws,[o(s,{name:r.strings.name},{content:n(()=>[o(y,{modelValue:e.schemaStore.graph.properties.name,"onUpdate:modelValue":t[0]||(t[0]=C=>e.schemaStore.graph.properties.name=C),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_title","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.description},{content:n(()=>[o(y,{modelValue:e.schemaStore.graph.properties.description,"onUpdate:modelValue":t[1]||(t[1]=C=>e.schemaStore.graph.properties.description=C),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_excerpt","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.author},{content:n(()=>[o(y,{modelValue:e.schemaStore.graph.properties.author,"onUpdate:modelValue":t[2]||(t[2]=C=>e.schemaStore.graph.properties.author=C),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"top","default-tags":["author_name","author_first_name","author_last_name"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.ingredients,align:""},{content:n(()=>[o(g,{multiple:"",taggable:"",options:e.getJsonValue(e.schemaStore.graph.properties.ingredients)||[],modelValue:e.getJsonValue(e.schemaStore.graph.properties.ingredients)||[],"onUpdate:modelValue":t[3]||(t[3]=C=>e.schemaStore.graph.properties.ingredients=e.setJsonValue(C))},null,8,["options","modelValue"]),h("div",Us,f(r.strings.ingredientsDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.dishType},{content:n(()=>[o(b,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.dishType,"onUpdate:modelValue":t[4]||(t[4]=C=>e.schemaStore.graph.properties.dishType=C)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.cuisineType},{content:n(()=>[o(b,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.cuisineType,"onUpdate:modelValue":t[5]||(t[5]=C=>e.schemaStore.graph.properties.cuisineType=C)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.keywords,align:""},{content:n(()=>[o(g,{multiple:"",taggable:"",options:e.getJsonValue(e.schemaStore.graph.properties.keywords)||[],modelValue:e.getJsonValue(e.schemaStore.graph.properties.keywords)||[],"onUpdate:modelValue":t[6]||(t[6]=C=>e.schemaStore.graph.properties.keywords=e.setJsonValue(C))},null,8,["options","modelValue"]),h("div",ks,f(r.strings.keywordsDescription),1)]),_:1},8,["name"]),o(s,{class:"image-field",name:r.strings.image,align:""},{content:n(()=>[o(S,{modelValue:e.schemaStore.graph.properties.image,"onUpdate:modelValue":t[7]||(t[7]=C=>e.schemaStore.graph.properties.image=C)},null,8,["modelValue"])]),_:1},8,["name"]),o(V,{header:r.strings.nutrition},{default:n(()=>[o(s,{name:r.strings.servings,align:""},{content:n(()=>[o(b,{type:"number",size:"medium",min:1,modelValue:e.schemaStore.graph.properties.nutrition.servings,"onUpdate:modelValue":t[8]||(t[8]=C=>e.schemaStore.graph.properties.nutrition.servings=C)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.calories,align:""},{content:n(()=>[o(b,{type:"number",size:"medium",min:0,modelValue:e.schemaStore.graph.properties.nutrition.calories,"onUpdate:modelValue":t[9]||(t[9]=C=>e.schemaStore.graph.properties.nutrition.calories=C)},null,8,["modelValue"]),h("div",As,f(r.strings.caloriesDescription),1)]),_:1},8,["name"])]),_:1},8,["header"]),o(V,{header:r.strings.timeRequired},{default:n(()=>[o(s,{name:r.strings.preparationTime,align:""},{content:n(()=>[o(b,{type:"number",size:"medium",min:0,modelValue:e.schemaStore.graph.properties.timeRequired.preparation,"onUpdate:modelValue":t[10]||(t[10]=C=>e.schemaStore.graph.properties.timeRequired.preparation=C)},null,8,["modelValue"]),h("div",Es,f(r.strings.preparationDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.cookingTime,align:""},{content:n(()=>[o(b,{type:"number",size:"medium",min:0,modelValue:e.schemaStore.graph.properties.timeRequired.cooking,"onUpdate:modelValue":t[11]||(t[11]=C=>e.schemaStore.graph.properties.timeRequired.cooking=C)},null,8,["modelValue"]),h("div",Ns,f(r.strings.cookingDescription),1)]),_:1},8,["name"])]),_:1},8,["header"]),o(c,{groupProp:e.schemaStore.graph.properties.instructions,defaults:r.instructionDefaults,pluralName:r.strings.instructions,singularName:r.strings.instruction},{"fields-inner":n(({groupIndex:C})=>[o(s,{name:r.strings.instructionTitle},{content:n(()=>[o(b,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.instructions[C].name,"onUpdate:modelValue":U=>e.schemaStore.graph.properties.instructions[C].name=U},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["name"]),o(s,{name:r.strings.instructionText},{content:n(()=>[o(m,{size:"medium",modelValue:e.schemaStore.graph.properties.instructions[C].text,"onUpdate:modelValue":U=>e.schemaStore.graph.properties.instructions[C].text=U,minHeight:120},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["name"]),o(s,{class:"image-field",name:r.strings.image,align:""},{content:n(()=>[o(S,{modelValue:e.schemaStore.graph.properties.instructions[C].image,"onUpdate:modelValue":U=>e.schemaStore.graph.properties.instructions[C].image=U},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["name"])]),_:1},8,["groupProp","defaults","pluralName","singularName"]),o(c,{groupProp:e.schemaStore.graph.properties.reviews,defaults:r.reviewDefaults,pluralName:r.strings.reviews,singularName:r.strings.review},{"fields-inner":n(({groupIndex:C})=>[o(s,{name:r.strings.ratingValue,align:""},{content:n(()=>[o(b,{size:"medium",type:"number",min:0,step:1,modelValue:e.schemaStore.graph.properties.reviews[C].rating,"onUpdate:modelValue":U=>e.schemaStore.graph.properties.reviews[C].rating=U},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["name"]),o(s,{name:r.strings.headline,align:""},{content:n(()=>[o(b,{size:"medium",modelValue:e.schemaStore.graph.properties.reviews[C].headline,"onUpdate:modelValue":U=>e.schemaStore.graph.properties.reviews[C].headline=U},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["name"]),o(s,{name:r.strings.content,align:""},{content:n(()=>[o(m,{size:"medium",modelValue:e.schemaStore.graph.properties.reviews[C].content,"onUpdate:modelValue":U=>e.schemaStore.graph.properties.reviews[C].content=U,minHeight:120},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["name"]),o(s,{name:r.strings.author},{content:n(()=>[o(b,{size:"medium",modelValue:e.schemaStore.graph.properties.reviews[C].author,"onUpdate:modelValue":U=>e.schemaStore.graph.properties.reviews[C].author=U},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["name"])]),_:1},8,["groupProp","defaults","pluralName","singularName"]),o(_)])}const Ms=$(Ds,[["render",Ps]]),Se="aioseo-pro",zs={setup(){const{initSchemaEditor:i}=te();return{initSchemaEditor:i,optionsStore:Be(),rootStore:we(),schemaStore:Z(),CURRENCY_LIST:fe}},components:{CoreHtmlTagsEditor:ce,CoreImageUploader:_e,CoreSettingsRow:K,CoreFieldGroup:ge},data(){return{strings:{name:a("Name",Se),description:a("Description",Se),type:a("Type",Se),typeDescription:a("The type of service that is being provided, e.g. delivery service, printing services, etc.",Se),image:a("Image",Se),offer:a("Offer",Se),price:a("Price",Se),priceDescription:a('If the service is available for free, set the price to "0".',Se),currency:a("Currency",Se),provider:a("Provider",Se),url:a("URL",Se),organizationDescription:de(a("Leave this empty if you want to use the Organization you've set under %1$s.",Se),ve.getPlainLink(a("Search Appearance > Knowledge Graph",Se),this.rootStore.aioseo.urls.aio.searchAppearance+"#/global-settings"))}}},methods:{getCurrency(i){return fe.find(t=>t.value===i)},saveCurrency(i){this.schemaStore.graph.properties.currency=i}},beforeMount(){const i={id:"#aioseo-service-"+new Date().getTime().toString(36),slug:"service",graphName:"Service",label:a("Service",Se),properties:{name:"#post_title",description:"",serviceType:"",price:"",currency:"",image:"",provider:{name:"",url:"",image:""}}};this.initSchemaEditor(i)}},Os={class:"graph-editor-fields graph-service"},Rs={class:"aioseo-description"},Ls={class:"aioseo-description"},Gs=["innerHTML"];function xs(i,t,p,e,r,v){const y=d("core-html-tags-editor"),s=d("core-settings-row"),g=d("base-input"),b=d("core-image-uploader"),S=d("base-select"),V=d("core-field-group");return u(),E("div",Os,[o(s,{name:r.strings.name},{content:n(()=>[o(y,{modelValue:e.schemaStore.graph.properties.name,"onUpdate:modelValue":t[0]||(t[0]=m=>e.schemaStore.graph.properties.name=m),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_title","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.description},{content:n(()=>[o(y,{modelValue:e.schemaStore.graph.properties.description,"onUpdate:modelValue":t[1]||(t[1]=m=>e.schemaStore.graph.properties.description=m),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_excerpt","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.type,align:""},{content:n(()=>[o(g,{size:"medium",modelValue:e.schemaStore.graph.properties.serviceType,"onUpdate:modelValue":t[2]||(t[2]=m=>e.schemaStore.graph.properties.serviceType=m)},null,8,["modelValue"]),h("div",Rs,f(r.strings.typeDescription),1)]),_:1},8,["name"]),o(s,{class:"image-field",name:r.strings.image,align:""},{content:n(()=>[o(b,{modelValue:e.schemaStore.graph.properties.image,"onUpdate:modelValue":t[3]||(t[3]=m=>e.schemaStore.graph.properties.image=m)},null,8,["modelValue"])]),_:1},8,["name"]),o(V,{header:r.strings.offer},{default:n(()=>[o(s,{name:r.strings.price,align:""},{content:n(()=>[o(g,{size:"medium",type:"number",min:0,step:.01,modelValue:e.schemaStore.graph.properties.price,"onUpdate:modelValue":t[4]||(t[4]=m=>e.schemaStore.graph.properties.price=m)},null,8,["modelValue"]),h("div",Ls,f(r.strings.priceDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.currency,align:""},{content:n(()=>[o(S,{size:"medium",options:e.CURRENCY_LIST,modelValue:v.getCurrency(e.schemaStore.graph.properties.currency),"onUpdate:modelValue":t[5]||(t[5]=m=>v.saveCurrency(m.value))},null,8,["options","modelValue"])]),_:1},8,["name"])]),_:1},8,["header"]),o(V,{header:r.strings.provider},{default:n(()=>[o(s,{name:r.strings.name},{content:n(()=>[o(g,{type:"text",size:"medium",modelValue:e.schemaStore.graph.properties.provider.name,"onUpdate:modelValue":t[6]||(t[6]=m=>e.schemaStore.graph.properties.provider.name=m)},null,8,["modelValue"]),e.optionsStore.options.searchAppearance.global.schema.siteRepresents==="organization"?(u(),E("div",{key:0,class:"aioseo-description",innerHTML:r.strings.organizationDescription},null,8,Gs)):k("",!0)]),_:1},8,["name"]),o(s,{name:r.strings.url},{content:n(()=>[o(g,{type:"text",size:"medium",validation:"url",modelValue:e.schemaStore.graph.properties.provider.url,"onUpdate:modelValue":t[7]||(t[7]=m=>e.schemaStore.graph.properties.provider.url=m)},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{class:"image-field",name:r.strings.image,align:""},{content:n(()=>[o(b,{modelValue:e.schemaStore.graph.properties.provider.image,"onUpdate:modelValue":t[8]||(t[8]=m=>e.schemaStore.graph.properties.provider.image=m)},null,8,["modelValue"])]),_:1},8,["name"])]),_:1},8,["header"])])}const Is=$(zs,[["render",xs]]),F="aioseo-pro",Ys={setup(){const{getJsonValue:i,setJsonValue:t}=xe(),{initSchemaEditor:p}=te();return{CURRENCY_LIST:fe,getJsonValue:i,initSchemaEditor:p,schemaStore:Z(),setJsonValue:t}},components:{CoreHtmlTagsEditor:ce,CoreSettingsRow:K,CoreFieldGroup:ge,Review:qe,ReviewRating:Ye},data(){return{strings:{name:a("Name",F),description:a("Description",F),price:a("Price",F),priceDescription:a('If the software is available for free, set the price to "0".',F),currency:a("Currency",F),operatingSystem:a("Operating System",F),operatingSystemDescription:a('The supported operating systems, e.g. "Windows 10", "OSX 10.6", "Android 9"',F),category:a("Category",F),offer:a("Offer",F),review:a("Review",F),rating:a("Rating",F),headline:a("Headline",F),content:a("Content",F),author:a("Author",F)},categories:[{label:a("Business App",F),value:"BusinessApplication"},{label:a("Entertainment App",F),value:"EntertainmentApplication"},{label:a("Communication App",F),value:"CommunicationApplication"},{label:a("Social Network App",F),value:"SocialNetworkingApplication"},{label:a("Educational App",F),value:"EducationalApplication"},{label:a("Health App",F),value:"HealthApplication"},{label:a("Finance App",F),value:"FinanceApplication"},{label:a("Shopping App",F),value:"ShoppingApplication"},{label:a("Travel App",F),value:"TravelApplication"},{label:a("Sports App",F),value:"SportsApplication"},{label:a("Video Game App",F),value:"GameApplication"},{label:a("Browser App",F),value:"BrowserApplication"},{label:a("Security App",F),value:"SecurityApplication"},{label:a("Design App",F),value:"DesignApplication"},{label:a("Developer App",F),value:"DeveloperApplication"},{label:a("Lifestyle App",F),value:"LifestyleApplication"},{label:a("Driver App",F),value:"DriverApplication"},{label:a("Desktop Enhancement App",F),value:"DesktopEnhancementApplication"},{label:a("Multimedia App",F),value:"MultimediaApplication"},{label:a("Home App",F),value:"HomeApplication"},{label:a("Utilities App",F),value:"UtilitiesApplication"},{label:a("Reference App",F),value:"ReferenceApplication"}]}},methods:{getCurrency(i){return fe.find(t=>t.value===i)},saveCurrency(i){this.schemaStore.graph.properties.currency=i},getCategory(i){return this.categories.find(t=>t.value===i)},saveCategory(i){this.schemaStore.graph.properties.category=i}},beforeMount(){const i={id:"#aioseo-software-application-"+new Date().getTime().toString(36),slug:"software-application",graphName:"SoftwareApplication",label:a("Software",F),properties:{name:"#post_title",description:"",price:"",currency:"",operatingSystem:"",category:"",rating:{minimum:1,maximum:5},review:{rating:"",headline:"",content:"",author:"#author_name"}}};this.initSchemaEditor(i)}},Js={class:"graph-editor-fields graph-software-application"},Fs={class:"aioseo-description"},Bs={class:"aioseo-description"};function Hs(i,t,p,e,r,v){const y=d("core-html-tags-editor"),s=d("core-settings-row"),g=d("base-select"),b=d("base-input"),S=d("core-field-group"),V=d("review"),m=d("review-rating");return u(),E("div",Js,[o(s,{name:r.strings.name},{content:n(()=>[o(y,{modelValue:e.schemaStore.graph.properties.name,"onUpdate:modelValue":t[0]||(t[0]=c=>e.schemaStore.graph.properties.name=c),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_title","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.description},{content:n(()=>[o(y,{modelValue:e.schemaStore.graph.properties.description,"onUpdate:modelValue":t[1]||(t[1]=c=>e.schemaStore.graph.properties.description=c),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_excerpt","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.category,align:""},{content:n(()=>[o(g,{size:"medium",options:r.categories,modelValue:v.getCategory(e.schemaStore.graph.properties.category),"onUpdate:modelValue":t[2]||(t[2]=c=>v.saveCategory(c.value))},null,8,["options","modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.operatingSystem,align:""},{content:n(()=>[o(g,{multiple:"",taggable:"",options:e.getJsonValue(e.schemaStore.graph.properties.operatingSystem)||[],modelValue:e.getJsonValue(e.schemaStore.graph.properties.operatingSystem)||[],"onUpdate:modelValue":t[3]||(t[3]=c=>e.schemaStore.graph.properties.operatingSystem=e.setJsonValue(c))},null,8,["options","modelValue"]),h("div",Fs,f(r.strings.operatingSystemDescription),1)]),_:1},8,["name"]),o(S,{header:r.strings.offer},{default:n(()=>[o(s,{name:r.strings.price,align:""},{content:n(()=>[o(b,{size:"medium",type:"number",min:0,step:.01,modelValue:e.schemaStore.graph.properties.price,"onUpdate:modelValue":t[4]||(t[4]=c=>e.schemaStore.graph.properties.price=c)},null,8,["modelValue"]),h("div",Bs,f(r.strings.priceDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.currency,align:""},{content:n(()=>[o(g,{size:"medium",options:e.CURRENCY_LIST,modelValue:v.getCurrency(e.schemaStore.graph.properties.currency),"onUpdate:modelValue":t[5]||(t[5]=c=>v.saveCurrency(c.value))},null,8,["options","modelValue"])]),_:1},8,["name"])]),_:1},8,["header"]),o(V,{reviewProp:e.schemaStore.graph.properties.review,multiple:!1},null,8,["reviewProp"]),o(m)])}const qs=$(Ys,[["render",Hs]]),Ce="aioseo-pro",Ws={setup(){const{initSchemaEditor:i}=te();return{GLOBAL_STRINGS:Te,dateJsToLocal:ke,dateStringToLocalJs:Ue,initSchemaEditor:i,schemaStore:Z()}},components:{BaseDatePicker:Ae,BaseRadioToggle:He,CoreHtmlTagsEditor:ce,CoreImageUploader:_e,CoreSettingsRow:K},data(){return{strings:{name:a("Name",Ce),description:a("Description",Ce),uploadDate:a("Upload Date",Ce),duration:a("Duration",Ce),contentUrl:a("Content URL",Ce),contentUrlDescription:a("A URL pointing to the video media file (e.g. MP4, MOV, etc.). Search engines prefer the content URL over the embed URL.",Ce),embedUrl:a("Embed URL",Ce),embedUrlDescription:a("A URL pointing to an embeddable player for the video (e.g. a YouTube link).",Ce),thumbnailUrl:a("Thumbnail URL",Ce),familyFriendly:a("Is Family Friendly",Ce)}}},beforeMount(){const i={id:"#aioseo-video-"+new Date().getTime().toString(36),slug:"video",graphName:"Video",label:a("Video",Ce),properties:{name:"#post_title",description:"#post_excerpt",uploadDate:"",contentUrl:"",embedUrl:"",thumbnailUrl:"",duration:"",familyFriendly:!0}};this.initSchemaEditor(i)}},js={class:"graph-editor-fields graph-video"},Ks={class:"aioseo-description"},Qs={class:"aioseo-description"};function Zs(i,t,p,e,r,v){const y=d("core-html-tags-editor"),s=d("core-settings-row"),g=d("base-input"),b=d("base-date-picker"),S=d("base-radio-toggle"),V=d("core-image-uploader");return u(),E("div",js,[o(s,{name:r.strings.name},{content:n(()=>[o(y,{modelValue:e.schemaStore.graph.properties.name,"onUpdate:modelValue":t[0]||(t[0]=m=>e.schemaStore.graph.properties.name=m),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_title","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.description},{content:n(()=>[o(y,{modelValue:e.schemaStore.graph.properties.description,"onUpdate:modelValue":t[1]||(t[1]=m=>e.schemaStore.graph.properties.description=m),"line-numbers":!1,single:"","tags-context":"schema",defaultMenuOrientation:"bottom","default-tags":["post_excerpt","separator_sa","site_title"],tagsDescription:""},null,8,["modelValue"])]),_:1},8,["name"]),o(s,{name:r.strings.contentUrl},{content:n(()=>[o(g,{type:"text",size:"medium",validation:"url",modelValue:e.schemaStore.graph.properties.contentUrl,"onUpdate:modelValue":t[2]||(t[2]=m=>e.schemaStore.graph.properties.contentUrl=m)},null,8,["modelValue"]),h("div",Ks,f(r.strings.contentUrlDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.embedUrl},{content:n(()=>[o(g,{type:"text",size:"medium",validation:"url",modelValue:e.schemaStore.graph.properties.embedUrl,"onUpdate:modelValue":t[3]||(t[3]=m=>e.schemaStore.graph.properties.embedUrl=m)},null,8,["modelValue"]),h("div",Qs,f(r.strings.embedUrlDescription),1)]),_:1},8,["name"]),o(s,{name:r.strings.uploadDate,align:""},{content:n(()=>[o(b,{type:"date",size:"large",dateFormat:"m/d/Y",defaultValue:e.dateStringToLocalJs(e.schemaStore.graph.properties.uploadDate),onChange:t[4]||(t[4]=m=>e.schemaStore.graph.properties.uploadDate=e.dateJsToLocal(m,"MM/DD/YYYY"))},null,8,["defaultValue"])]),_:1},8,["name"]),o(s,{name:r.strings.familyFriendly,align:""},{content:n(()=>[o(S,{name:"includeDates",modelValue:e.schemaStore.graph.properties.familyFriendly,"onUpdate:modelValue":t[5]||(t[5]=m=>e.schemaStore.graph.properties.familyFriendly=m),options:[{label:e.GLOBAL_STRINGS.no,value:!1,activeClass:"dark"},{label:e.GLOBAL_STRINGS.yes,value:!0}]},null,8,["modelValue","options"])]),_:1},8,["name"]),o(s,{class:"image-field",name:r.strings.thumbnailUrl,align:""},{content:n(()=>[o(V,{modelValue:e.schemaStore.graph.properties.thumbnailUrl,"onUpdate:modelValue":t[6]||(t[6]=m=>e.schemaStore.graph.properties.thumbnailUrl=m)},null,8,["modelValue"])]),_:1},8,["name"])])}const Xs=$(Ws,[["render",Zs]]),tt="aioseo-pro",$s={setup(){const{initSchemaEditor:i}=te();return{initSchemaEditor:i,schemaStore:Z(),WEBPAGE_TYPE_LIST:Pt}},components:{CoreSettingsRow:K},data(){return{strings:{type:a("Type",tt),name:a("Name",tt),description:a("Description",tt)}}},methods:{getWebPageType(i){return Pt.find(t=>t.value===i)},saveWebPageType(i){this.schemaStore.graph.properties.type=i}},beforeMount(){const i={id:"#aioseo-web-page-"+new Date().getTime().toString(36),slug:"web-page",graphName:"WebPage",label:a("Web Page",tt),properties:{type:"WebPage",name:"#post_title",description:"#post_excerpt"}};this.initSchemaEditor(i)}},ei={class:"graph-editor-fields graph-web-page"};function ti(i,t,p,e,r,v){const y=d("base-select"),s=d("core-settings-row");return u(),E("div",ei,[o(s,{name:r.strings.type,align:""},{content:n(()=>[o(y,{size:"medium",options:e.WEBPAGE_TYPE_LIST,modelValue:v.getWebPageType(e.schemaStore.graph.properties.type),"onUpdate:modelValue":t[0]||(t[0]=g=>v.saveWebPageType(g.value))},null,8,["options","modelValue"])]),_:1},8,["name"])])}const oi=$($s,[["render",ti]]),ai={emits:["closeModal","doAction","openModal"],setup(){return{schemaStore:Z()}},components:{CoreModal:lt,SvgClose:Jt},props:{strings:{type:Object,required:!0},show:Boolean},watch:{show(i){i&&this.$emit("openModal",!0)}}},ri={class:"aioseo-modal-body"},ni=["innerHTML"],si={class:"action-buttons"};function ii(i,t,p,e,r,v){const y=d("svg-close"),s=d("base-input"),g=d("base-button"),b=d("core-modal");return u(),w(b,{show:p.show,classes:["aioseo-post-schema-naming-modal"],"no-header":"",onClose:t[5]||(t[5]=S=>i.$emit("closeModal",!0))},{body:n(()=>[h("div",ri,[h("button",{class:"close",onClick:t[1]||(t[1]=Fe(S=>i.$emit("closeModal",!0),["stop"]))},[o(y,{onClick:t[0]||(t[0]=S=>i.$emit("closeModal",!0))})]),h("h3",null,f(p.strings.title),1),h("div",{class:"reset-description",innerHTML:p.strings.description},null,8,ni),o(s,{size:"medium",placeholder:p.strings.placeholder,modelValue:e.schemaStore.templateName,"onUpdate:modelValue":t[2]||(t[2]=S=>e.schemaStore.templateName=S)},null,8,["placeholder","modelValue"]),h("div",si,[o(g,{type:"gray",size:"medium",onClick:t[3]||(t[3]=S=>i.$emit("closeModal",!0))},{default:n(()=>[N(f(p.strings.noChangedMind),1)]),_:1}),o(g,{type:"blue",size:"medium",onClick:t[4]||(t[4]=S=>i.$emit("doAction",S)),disabled:!e.schemaStore.templateName},{default:n(()=>[N(f(p.strings.continue),1)]),_:1},8,["disabled"])])])]),_:1},8,["show"])}const li=$(ai,[["render",ii]]),mi={class:"schema-templates"},pi={class:"main"},di={key:1,class:"schema-catalog"},ci={key:0,class:"graphs"},ui={class:"graph"},gi={class:"left"},hi={class:"right action-buttons"},fi={key:2,class:"your-templates"},_i={key:0,class:"graphs"},Si={key:3,class:"graph-editor"},vi={class:"option-label"},yi={class:"option-label"},bi={key:0,class:"buttons new-graph"},Vi={class:"left"},Ti={key:0,class:"right"},Ci={key:1,class:"buttons edit-graph"},Di={class:"left"},wi={key:0,class:"right"},Ui={key:2,class:"buttons edit-graph"},ki={class:"left"},Ai={key:0,class:"right"},Ei={key:3,class:"buttons edit-template"},Ni={class:"left"},Pi={key:0,class:"right"},Mi={__name:"Templates",emits:["sub-modal-toggle","open-new-graph"],setup(i,{emit:t}){const p="aioseo-pro",{graphs:e,getParentGraphName:r}=te(),{hasFeature:v,isEditing:y}=et(),s=Be(),g=Pe(),b=we(),S=Z(),V=ae(""),m=ae(""),c=ae(!1),_=ae(0),C=ae(!1),U=ae(""),T={generateWithAi:a("Generate with AIOSEO AI",p),searchSchema:a("Search Schema",p),searchTemplates:a("Search Templates",p),addSchema:a("Add Schema",p),saveSchemaAsTemplate:a("Save Schema as Template",p),deleteSchema:a("Delete Schema",p),updateSchema:a("Update Schema",p),backToSchemaCatalog:a("Back to Schema Catalog",p),addTemplate:a("Add Template",p),editTemplate:a("Edit Template",p),deleteTemplate:a("Delete Template",p),updateTemplate:a("Update Template",p),placeholder:a("Enter a name for your schema graph...",p),defaultGraphAlert:de(a("You are now editing the default schema graph for this post. You can change the default schema type for %1$s in the %2$sSearch Appearance%3$s settings.",p),b.aioseo.postData.postTypes.find(z=>z.name===g.currentPost.postType).label,`<a href="${b.aioseo.urls.aio.searchAppearance}#/content-types" target="_blank">`,"</a>"),modal:{isDirtyLeaving:{areYouSure:a("Are you sure you want to leave this page?",p),actionCannotBeUndone:a("Any changes you've made will be lost. This action cannot be undone.",p),confirmation:a("Yes, I want to leave this page",p),noChangedMind:a("No, I changed my mind",p)},isDirtySwitching:{areYouSure:a("Are you sure you want to switch to a different schema?",p),actionCannotBeUndone:a("Any changes you've made will be lost. This action cannot be undone.",p),confirmation:a("Yes, I want to switch",p),noChangedMind:a("No, I changed my mind",p)},graphDelete:{areYouSure:a("Are you sure you want to delete this schema?",p),actionCannotBeUndone:a("This action cannot be undone.",p),confirmation:a("Yes, I want to delete this schema",p),noChangedMind:a("No, I changed my mind",p)},namingTemplateNew:{title:a("Enter a name for this template",p),description:a("Before you can save this template, you must first enter a name so that you can easily identify it later.",p),continue:a("Save Template",p),noChangedMind:a("No, I changed my mind",p),placeholder:a("Type to enter a name for your template...",p)},templateDelete:{areYouSure:a("Are you sure you want to delete this template?",p),actionCannotBeUndone:a("This action cannot be undone.",p),confirmation:a("Yes, I want to delete this template",p),noChangedMind:a("No, I changed my mind",p)}}},A=W(()=>{const z=[];return S.isEditingTemplate||z.push({slug:"schema-catalog",name:a("Schema Catalog",p)}),s.internalOptions.internal.schema.templates.length&&!S.graph&&z.push({slug:"your-templates",name:a("Your Templates",p)}),z.length===1&&S.setTabTemplates("schema-catalog"),z}),D=W(()=>{let z=[];if(!U.value)return z=e,z.sort((me,oe)=>me.graphName<oe.graphName?-1:1);const M=new RegExp(Mt(U.value).replace(/\s/g,"\\s"),"i");return z=e.filter(me=>me.graphName.match(M)||me.label.match(M)),z.sort((me,oe)=>me.graphName<oe.graphName?-1:1)}),le=W(()=>{let z=[];if(!U.value)return z=s.internalOptions.internal.schema.templates,z.sort((me,oe)=>me.graphName<oe.graphName?-1:1);const M=new RegExp(Mt(U.value).replace(/\s/g,"\\s"),"i");return z=s.internalOptions.internal.schema.templates.filter(me=>me?.label?.match(M)),z.sort((me,oe)=>me.graphName<oe.graphName?-1:1)}),Re=W(()=>{let z="";return S.isEditingDefaultGraph&&(z=r(g.currentPost.schema.default.graphName)),Me(z||S.graph.graphName)}),Me=z=>{switch(z){case"Article":return dr;case"Book":return vr;case"Car":return Or;case"Course":return qr;case"Dataset":return on;case"Event":return gn;case"FAQPage":return Sn;case"FactCheck":return Un;case"HowTo":return Pn;case"JobPosting":return Yn;case"Movie":return Hn;case"Music":return Kn;case"Person":return $n;case"Product":return _s;case"ProductReview":return Cs;case"Recipe":return Ms;case"Service":return Is;case"SoftwareApplication":return qs;case"Video":return Xs;case"WebPage":return oi;default:return null}},O=W(()=>e.map(z=>(z.value=z.slug,z))),P=W(()=>S.tabs.templates==="schema-catalog"?T.searchSchema:T.searchTemplates),X=W(()=>{switch(V.value){case"backToSchemaCatalog":return T.modal.isDirtyLeaving;case"deleteDefaultGraph":case"deleteGraph":return T.modal.graphDelete;case"deleteTemplate":return T.modal.templateDelete;case"setGraphName":return T.modal.isDirtySwitching;default:return{}}}),G=W(()=>V.value==="addGraphAsTemplate"?T.modal.namingTemplateNew:{}),L=t,se=z=>{z==="namingModalOpen"?C.value=!1:c.value=!1,L("sub-modal-toggle",!1)},Ze=z=>{const M=e.find(me=>me.graphName===z);S.graph=M,L("open-new-graph")},dt=z=>!z&&S.isEditingDefaultGraph?g.currentPost.schema.default.graphName:O.value.find(M=>M.graphName===z.graphName),ct=z=>{S.graph=O.value.find(M=>M.value===z)},Q=z=>{S.setTabTemplates(z),U.value=""},B=(z,M)=>{if(V.value=z,m.value=M,(z==="backToSchemaCatalog"||z==="setGraphName")&&!S.isDirty){ne();return}c.value=!0},ye=z=>{V.value=z,C.value=!0},ne=()=>{switch(V.value){case"backToSchemaCatalog":S.graph=null;break;case"deleteDefaultGraph":S.deleteDefaultGraph();break;case"deleteGraph":S.deleteGraph();break;case"deleteTemplate":S.deleteTemplate();break;case"addGraphAsTemplate":S.addGraphAsTemplate();break;case"setGraphName":ct(m.value);break}L("open-new-graph"),V.value="",m.value="",c.value=!1,C.value=!1,_.value++,L("sub-modal-toggle",!1)};return(z,M)=>{const me=d("base-input"),oe=d("base-button"),Kt=d("base-select");return u(),E("div",mi,[l(y)?k("",!0):(u(),w(l(rt),{key:0,tabs:A.value,active:l(S).tabs.templates,showSaveButton:!1,onChanged:M[0]||(M[0]=I=>Q(I))},{"var-tab-icon":n(({tab:I})=>[(u(),w(Ee(I.icon)))]),_:1},8,["tabs","active"])),h("div",pi,[l(S).graph?k("",!0):(u(),w(me,{key:0,class:"search",size:"medium",prependIcon:"search",modelValue:U.value,"onUpdate:modelValue":M[1]||(M[1]=I=>U.value=I),placeholder:P.value},null,8,["modelValue","placeholder"])),l(S).tabs.templates==="schema-catalog"?(u(),E("div",di,[l(S).graph?k("",!0):(u(),E("div",ci,[h("div",{class:"graph-container ai-generate-card",onClick:M[3]||(M[3]=I=>l(S).tabs.generator="ai-schema")},[h("div",ui,[h("div",gi,[o(l(mt)),h("span",null,f(T.generateWithAi),1)]),h("div",hi,[o(l(ue),{type:"action"},{tooltip:n(()=>[N(f(T.generateWithAi),1)]),default:n(()=>[o(oe,{class:"small",type:"gray",onClick:M[2]||(M[2]=Fe(I=>l(S).tabs.generator="ai-schema",["prevent"]))},{default:n(()=>[o(l($e))]),_:1})]),_:1})])])]),!l(g).currentPost.schema.default.isEnabled&&l(g).currentPost.schema.default.graphName?(u(),w(l(Oe),{key:0,defaultGraph:l(g).currentPost.schema.default.graphName},{buttons:n(()=>[o(l(ue),{type:"action"},{tooltip:n(()=>[N(f(T.addSchema),1)]),default:n(()=>[o(oe,{class:"small",type:"gray",onClick:Fe(l(S).addDefaultGraph,["prevent"])},{default:n(()=>[o(l($e))]),_:1},8,["onClick"])]),_:1})]),_:1},8,["defaultGraph"])):k("",!0),(u(!0),E(Ve,null,Ne(D.value,(I,Xe)=>(u(),w(l(Oe),{key:Xe,graph:I},{buttons:n(()=>[o(l(ue),{type:"action"},{tooltip:n(()=>[N(f(T.addSchema),1)]),default:n(()=>[o(oe,{class:"small",type:"gray",onClick:Fe(Ct=>Ze(I.graphName),["prevent"])},{default:n(()=>[o(l($e))]),_:1},8,["onClick"])]),_:2},1024)]),_:2},1032,["graph"]))),128))]))])):k("",!0),l(S).tabs.templates==="your-templates"?(u(),E("div",fi,[l(S).graph?k("",!0):(u(),E("div",_i,[(u(!0),E(Ve,null,Ne(le.value,(I,Xe)=>(u(),w(l(Oe),{key:Xe,graph:I,customGraph:I.custom},{buttons:n(()=>[o(l(ue),{type:"action"},{tooltip:n(()=>[N(f(T.editTemplate),1)]),default:n(()=>[o(oe,{class:"small",type:"gray",onClick:Ct=>l(S).editTemplate(Xe,U.value)},{default:n(()=>[o(l(ot))]),_:1},8,["onClick"])]),_:2},1024),o(l(ue),{type:"action"},{tooltip:n(()=>[N(f(T.addTemplate),1)]),default:n(()=>[o(oe,{class:"small",type:"gray",onClick:Ct=>l(S).addTemplateAsGraph(Xe,U.value)},{default:n(()=>[o(l($e))]),_:1},8,["onClick"])]),_:2},1024)]),_:2},1032,["graph","customGraph"]))),128))]))])):k("",!0),l(S).graph||l(S).isEditingDefaultGraph?(u(),E("div",Si,[h("div",{class:Le(["graph-editor-fields-container",[{blurred:!l(v)}]])},[l(S).isEditingDefaultGraph?(u(),w(l(De),{key:0,class:"default-graph-alert",type:"blue",innerHTML:T.defaultGraphAlert},null,8,["innerHTML"])):k("",!0),l(y)?k("",!0):(u(),w(Kt,{key:1,class:"graph-selector",size:"medium",options:O.value,modelValue:dt(l(S).graph),"onUpdate:modelValue":M[4]||(M[4]=I=>B("setGraphName",I.value))},{singleLabel:n(({option:I})=>[(u(),w(Ee("svg-"+I.slug))),h("span",vi,f(I.label),1)]),option:n(({option:I})=>[(u(),w(Ee("svg-"+I.slug))),h("span",yi,f(I.label),1)]),_:1},8,["options","modelValue"])),l(S).isEditingTemplate?(u(),w(me,{key:2,class:"template-name",size:"medium",modelValue:l(S).templateName,"onUpdate:modelValue":M[5]||(M[5]=I=>l(S).templateName=I),prependIcon:l(S).graph.slug,placeholder:T.placeholder},null,8,["modelValue","prependIcon","placeholder"])):k("",!0),(u(),w(Ee(Re.value)))],2),l(y)?k("",!0):(u(),E("div",bi,[h("div",Vi,[o(oe,{class:"medium",type:"gray",onClick:M[6]||(M[6]=I=>B("backToSchemaCatalog"))},{default:n(()=>[N(f(T.backToSchemaCatalog),1)]),_:1})]),l(v)?(u(),E("div",Ti,[o(oe,{class:"medium",type:"gray",onClick:M[7]||(M[7]=I=>ye("addGraphAsTemplate"))},{default:n(()=>[N(f(T.saveSchemaAsTemplate),1)]),_:1}),o(oe,{class:"medium",type:"blue",onClick:M[8]||(M[8]=I=>l(S).addGraph())},{default:n(()=>[N(f(T.addSchema),1)]),_:1})])):k("",!0)])),l(S).isEditingDefaultGraph?(u(),E("div",Ci,[h("div",Di,[o(oe,{class:"medium",type:"red",onClick:M[9]||(M[9]=I=>B("deleteDefaultGraph"))},{default:n(()=>[N(f(T.deleteSchema),1)]),_:1})]),l(v)?(u(),E("div",wi,[o(oe,{class:"medium",type:"blue",onClick:M[10]||(M[10]=I=>l(S).updateDefaultGraph())},{default:n(()=>[N(f(T.updateSchema),1)]),_:1})])):k("",!0)])):k("",!0),l(S).isEditingGraph?(u(),E("div",Ui,[h("div",ki,[o(oe,{class:"medium",type:"red",onClick:M[11]||(M[11]=I=>B("deleteGraph"))},{default:n(()=>[N(f(T.deleteSchema),1)]),_:1})]),l(v)?(u(),E("div",Ai,[o(oe,{class:"medium",type:"gray",onClick:M[12]||(M[12]=I=>ye("addGraphAsTemplate"))},{default:n(()=>[N(f(T.saveSchemaAsTemplate),1)]),_:1}),o(oe,{class:"medium",type:"blue",onClick:M[13]||(M[13]=I=>l(S).updateGraph())},{default:n(()=>[N(f(T.updateSchema),1)]),_:1})])):k("",!0)])):k("",!0),l(S).isEditingTemplate?(u(),E("div",Ei,[h("div",Ni,[o(oe,{class:"medium",type:"red",onClick:M[14]||(M[14]=I=>B("deleteTemplate"))},{default:n(()=>[N(f(T.deleteTemplate),1)]),_:1})]),l(v)?(u(),E("div",Pi,[o(oe,{class:"medium",type:"gray",onClick:M[15]||(M[15]=I=>l(S).updateTemplate())},{default:n(()=>[N(f(T.updateTemplate),1)]),_:1}),o(oe,{class:"medium",type:"blue",onClick:M[16]||(M[16]=I=>l(S).addGraph())},{default:n(()=>[N(f(T.addSchema),1)]),_:1})])):k("",!0)])):k("",!0)])):k("",!0)]),(u(),w(l(li),{show:C.value,strings:G.value,onDoAction:ne,onOpenModal:M[17]||(M[17]=I=>L("sub-modal-toggle",!0)),onCloseModal:M[18]||(M[18]=I=>se("namingModalOpen")),key:"namingModal"+_.value},null,8,["show","strings"])),(u(),w(l(Tt),{show:c.value,strings:X.value,onDoAction:ne,onOpenModal:M[19]||(M[19]=I=>L("sub-modal-toggle",!0)),onCloseModal:M[20]||(M[20]=I=>se("confirmationModalOpen")),key:"confirmationModal"+_.value},null,8,["show","strings"]))])}}},zi={class:"schema-validation"},Oi={class:"main"},Ri={class:"header"},Li={class:"title"},Gi=["innerHTML"],xi={class:"action-buttons"},Ii={class:"schema-output"},Yi={__name:"Validation",setup(i){const t="aioseo-pro",p=Z(),e=ae(!1),r=ae(!1),v={schemaJson:a("Schema (JSON-LD Format)",t),tooltipDescription:de(a("Our custom schema only works with the JSON-LD format. This gives a detailed description of what your page is all about. Search engines can then use this data to understand your site better and provide more relevant search results and rich snippets. %1$s",t),ve.getDocLink(Te.learnMore,"schemaJsonLd",!0)),copy:a("Copy",t),copied:a("Copied!",t),postSavedWarning:a("Before the schema can be generated correctly, the post must first be saved as a draft or published.",t)},y=W(()=>e.value?v.copied:v.copy),s=()=>{e.value=!0,setTimeout(()=>{e.value=!1},2e3)};return uo(()=>{const g=jo();r.value=g&&g!=="auto-draft"}),bt(()=>{r.value&&p.updateSchemaOutput()}),(g,b)=>{const S=d("base-button"),V=go("clipboard");return u(),E("div",zi,[h("div",Oi,[h("div",Ri,[h("div",Li,[h("span",null,f(v.schemaJson),1),o(l(ue),null,{tooltip:n(()=>[h("span",{innerHTML:v.tooltipDescription},null,8,Gi)]),default:n(()=>[o(l(pt))]),_:1})]),h("div",xi,[h("div",null,[ho((u(),w(S,{class:"small",type:"gray"},{default:n(()=>[e.value?k("",!0):(u(),w(l(xo),{key:0})),e.value?(u(),w(l(Ko),{key:1})):k("",!0),h("span",null,f(y.value),1)]),_:1})),[[V,l(p).output,"copy"],[V,s,"success"]])]),h("div",null,[o(l(Wt),{snippet:l(p).output,"button-type":"blue"},null,8,["snippet"])])])]),h("div",Ii,[r.value?k("",!0):(u(),w(l(De),{key:0,class:"post-status-alert",type:"yellow"},{default:n(()=>[h("div",null,f(v.postSavedWarning),1)]),_:1})),o(l(nt),{ref:"schemaValidator",editorId:"schema-validator",value:l(p).output,readonly:""},null,8,["value"])])])])}}},Ji={class:"title"},Fi=["innerHTML"],Bi={__name:"SchemaGenerator",props:{allowModalClose:Boolean,show:Boolean},emits:["close","sub-modal-toggle"],setup(i,{emit:t}){const p="aioseo-pro",{isEditing:e}=et(),r=xt(),v=Pe(),y=Z(),s=t,g={schemaGenerator:a("Schema Generator",p),headerTooltip:de(a("Use our powerful Schema Generator to configure Schema Markup for your content. Search Engines use structured data to better understand what your site is about as well as to display rich snippets in search results. %1$s",p),ve.getDocLink(Te.learnMore,"schema",!0))},b=[{slug:"schema",icon:"schema",name:a("Schema",p)}],S=[{slug:"schema-templates",icon:Ft,name:a("Templates",p),component:Mi},{slug:"ai-schema",icon:mt,name:a("AI Schema",p),component:Ha},{slug:"custom-schema",icon:Bt,name:a("Custom",p),component:sr},{slug:"schema-validation",icon:Ht,name:a("Validate",p),component:Yi}];yt(()=>y.graph,T=>{if(T===null){y.isDirty=!1;return}y.isDirty=!0},{deep:!0});const V=W(()=>r.generating?"ai-schema":y.tabs.generator),m=W(()=>S.find(T=>T.slug===V.value)),c=W(()=>{if(e.value){let T="";return y.isEditingDefaultGraph?T=v.currentPost.schema.default.graphName:y.isEditingCustomGraph||y.isEditingCustomTemplate?T=a("Custom Schema",p):T=y.graph.label,de(a("Edit %1$s",p),T)}return g.schemaGenerator}),_=T=>{y.tabs.generator=T,U()},C=()=>{U()},U=async()=>{await vt();const T=document.querySelector("#aioseo-schema-generator-main .graph-editor-fields-container");T&&(T.scrollTop=0)};return bt(()=>{U()}),(T,A)=>(u(),w(l(lt),{show:i.show,classes:["aioseo-post-schema-modal"],onClose:A[1]||(A[1]=D=>s("close")),"modal-name":"schema-generator"},{headerTitle:n(()=>[h("div",Ji,f(c.value),1),l(e)?k("",!0):(u(),w(l(ue),{key:0,flip:""},{tooltip:n(()=>[h("span",{innerHTML:g.headerTooltip},null,8,Fi)]),default:n(()=>[o(l(pt))]),_:1}))]),body:n(()=>[l(r).generating?(u(),w(l(Jo),{key:0,loaders:b})):(u(),E(Ve,{key:1},[l(e)?k("",!0):(u(),w(l(rt),{key:0,tabs:S,active:V.value,showSaveButton:!1,onChanged:_},{"var-tab-icon":n(({tab:D})=>[(u(),w(Ee(D.icon)))]),_:1},8,["active"])),(u(),w(Ee(m.value.component),{id:"aioseo-schema-generator-main",onOpenNewGraph:C,onSubModalToggle:A[0]||(A[0]=D=>s("sub-modal-toggle",D))},null,32))],64))]),_:1},8,["show"]))}},Hi={},qi={viewBox:"0 0 11 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-trash"};function Wi(i,t){return u(),E("svg",qi,[...t[0]||(t[0]=[h("path",{d:"M8.0013 4V10.6667H2.66797V4H8.0013ZM7.0013 0H3.66797L3.0013 0.666667H0.667969V2H10.0013V0.666667H7.66797L7.0013 0ZM9.33463 2.66667H1.33464V10.6667C1.33464 11.4 1.93464 12 2.66797 12H8.0013C8.73464 12 9.33463 11.4 9.33463 10.6667V2.66667Z",fill:"currentColor"},null,-1)])])}const ft=$(Hi,[["render",Wi]]),ji={key:0,class:"sidebar-description"},Ki={class:"description"},Qi=["innerHTML"],Zi={__name:"Schema",setup(i){const t="aioseo-pro",{graphs:p,getGraphObject:e,getParentGraphName:r}=te(),v=Be(),y=Pe(),s=we(),g=Z(),b=ae(!1),S=ae(""),V=ae(null),m=ae(!1),c={sidebarDescription:a("Configure Schema Markup for your content. Search engines use structured data to display rich results in SERPs.",t),noGraphs:a("You have not added any schema yet. You can add any schema graphs you like via the Schema Generator below.",t),schemaInUse:a("Schema In Use",t),generateSchema:a("Generate Schema",t),validateSchema:a("Validate Schema",t),editSchema:a("Edit Schema",t),deleteSchema:a("Delete Schema",t),viewInEditor:a("View in Editor",t),modal:{isDirtyClosing:{areYouSure:a("Are you sure you want to close the Schema Generator?",t),actionCannotBeUndone:a("Any changes you've made will be lost. This action cannot be undone.",t),confirmation:a("Yes, I want to close the Schema Generator",t),noChangedMind:a("No, I changed my mind",t)},graphDelete:{areYouSure:a("Are you sure you want to delete this schema?",t),actionCannotBeUndone:a("This action cannot be undone.",t),confirmation:a("Yes, I want to delete this schema",t),noChangedMind:a("No, I changed my mind",t)}}},_=_o(),C=W(()=>_?.root?.data?.screenContext==="sidebar"),U=W(()=>{let O=y.currentPost.schema.graphs;return O=JSON.parse(JSON.stringify(O)),O=O.reverse().map(P=>{let X=!1,G=!1,L=0;if(O.forEach(se=>{if(se.id===P.id){X=!0;return}se.graphName===P.graphName&&(G=!0,X&&L++)}),P?.properties?.type&&P.properties.type!==P.graphName){const se=e(P);se&&(P.label=P.label+" - "+se.label)}return(0<L||G)&&(P.label=P.label+" - "+(L+1)),P}),O.reverse()}),T=W(()=>{if(lo()||Yt())return[];let O=y.currentPost.schema.blockGraphs;return O=JSON.parse(JSON.stringify(O)),O=O.reverse().map(P=>{let X=!1,G=!1,L=0;return O.forEach(se=>{if(se.schemaBlockId===P.schemaBlockId){X=!0;return}se.graphName===P.graphName&&(G=!0,X&&L++)}),(0<L||G)&&(P.label+=" - "+(L+1)),P}),O.reverse()}),A=W(()=>S.value==="setModalOpen"?c.modal.isDirtyClosing:c.modal.graphDelete),D=(O,P)=>{if(S.value=O,V.value=P,S.value==="setModalOpen"&&!g.isDirty){le();return}vt(()=>{s.modals.all.add("schema-generator")}),m.value=!0},le=()=>{switch(S.value){case"deleteDefaultGraph":g.deleteDefaultGraph();break;case"deleteCustomGraph":g.deleteCustomGraph(V.value);break;case"deleteGraph":g.deleteGraph(V.value);break;case"setModalOpen":g.setModalOpen(V.value);break}S.value="",V.value="",m.value=!1},Re=O=>{let P=window.wp.data.select("core/block-editor").getBlocks();P=io(P);const X=P.find(G=>G?.attributes?.schemaBlockId===O.schemaBlockId);X&&(window.wp.data.dispatch("core/block-editor").selectBlock(X.clientId),window.wp.data.dispatch("core/block-editor").toggleBlockHighlight(X.clientId,!0))},Me=()=>{y.currentPost.schema.blockGraphs.forEach((O,P)=>{const X=O.type.replace(/aioseo\//,"");let G="";X==="faq"?G="faq-page":G=X;const L=p.find(se=>se.slug===G);L&&(O.graphName=L.graphName,O.label=L.label+" ("+a("Block",t)+") ",O.slug=L.slug,y.currentPost.schema.blockGraphs[P]=O)})};return yt(()=>y.currentPost.schema,()=>{Me(),g.updateSchemaOutput()},{deep:!0}),g.parseAndUpdateTemplates(v.internalOptions.internal.schema.templates),bt(()=>{g.updateSchemaOutput()}),fo(()=>{Me()}),(O,P)=>{const X=d("base-button");return u(),E("div",{class:Le(["aioseo-tab-content aioseo-post-schema",[{sidebar:C.value}]])},[o(l(K),{id:"aioseo-post-schema",name:c.schemaInUse},{content:n(()=>[(u(),E("div",{class:"graphs",key:l(g).graphCardsKey},[C.value?(u(),E("div",ji,[h("p",Ki,f(c.sidebarDescription),1),h("p",{class:"description",innerHTML:l(ve).getDocLink(l(Te).learnMore,"schema",!0)},null,8,Qi)])):k("",!0),l(y).currentPost.schema.default.isEnabled&&l(y).currentPost.schema.default.graphName&&l(y).currentPost.schema.default.graphName!=="none"?(u(),w(l(Oe),{key:1,defaultGraph:l(y).currentPost.schema.default.graphName},{buttons:n(()=>[o(l(ue),{type:"action"},{tooltip:n(()=>[N(f(c.editSchema),1)]),default:n(()=>[l(r)(l(y).currentPost.schema.default.graphName)!=="WebPage"?(u(),w(X,{key:0,class:"small",type:"gray",disabled:l(g).modalOpen,onClick:P[0]||(P[0]=G=>l(g).editDefaultGraph({parentGraphName:l(r)(l(y).currentPost.schema.default.graphName),isSidebar:C.value}))},{default:n(()=>[o(l(ot))]),_:1},8,["disabled"])):k("",!0)]),_:1}),o(l(ue),{type:"action",offset:C.value?"-25px,0":"0,0"},{tooltip:n(()=>[N(f(c.deleteSchema),1)]),default:n(()=>[o(X,{class:"small",type:"gray",onClick:P[1]||(P[1]=G=>D("deleteDefaultGraph"))},{default:n(()=>[o(l(ft))]),_:1})]),_:1},8,["offset"])]),_:1},8,["defaultGraph"])):k("",!0),(u(!0),E(Ve,null,Ne(U.value,(G,L)=>(u(),w(l(Oe),{key:G.id,graph:G},{buttons:n(()=>[o(l(ue),{type:"action"},{tooltip:n(()=>[N(f(c.editSchema),1)]),default:n(()=>[o(X,{class:"small",type:"gray",onClick:se=>l(g).editGraph({graphIndex:L,isSidebar:C.value})},{default:n(()=>[o(l(ot))]),_:1},8,["onClick"])]),_:2},1024),o(l(ue),{type:"action",offset:C.value?"-25px,0":"0,0"},{tooltip:n(()=>[N(f(c.deleteSchema),1)]),default:n(()=>[o(X,{class:"small",type:"gray",onClick:se=>D("deleteGraph",L)},{default:n(()=>[o(l(ft))]),_:1},8,["onClick"])]),_:2},1032,["offset"])]),_:2},1032,["graph"]))),128)),(u(!0),E(Ve,null,Ne(l(y).currentPost.schema.customGraphs,(G,L)=>(u(),w(l(Oe),{key:G.id,graph:G,customGraph:""},{buttons:n(()=>[o(l(ue),{type:"action"},{tooltip:n(()=>[N(f(c.editSchema),1)]),default:n(()=>[o(X,{class:"small",type:"gray",onClick:se=>l(g).editCustomGraph({customGraphIndex:L,isSidebar:C.value})},{default:n(()=>[o(l(ot))]),_:1},8,["onClick"])]),_:2},1024),o(l(ue),{type:"action",offset:C.value?"-25px,0":"0,0"},{tooltip:n(()=>[N(f(c.deleteSchema),1)]),default:n(()=>[o(X,{class:"small",type:"gray",onClick:se=>D("deleteCustomGraph",L)},{default:n(()=>[o(l(ft))]),_:1},8,["onClick"])]),_:2},1032,["offset"])]),_:2},1032,["graph"]))),128)),(u(!0),E(Ve,null,Ne(T.value,G=>(u(),w(l(Oe),{key:G.id,graph:G},{buttons:n(()=>[o(l(ue),{type:"action",offset:C.value?"-25px,0":"0,0"},{tooltip:n(()=>[N(f(c.viewInEditor),1)]),default:n(()=>[o(X,{class:"small",type:"gray",onClick:L=>Re(G)},{default:n(()=>[o(l(qt))]),_:1},8,["onClick"])]),_:2},1032,["offset"])]),_:2},1032,["graph"]))),128))])),h("div",{class:Le(["buttons",{"no-margin":!l(y).currentPost.schema.graphs.length&&!l(y).currentPost.schema.customGraphs.length&&!l(y).currentPost.schema.defaultGraph}])},[!l(y).currentPost.schema.graphs.length&&!l(y).currentPost.schema.customGraphs.length&&!l(y).currentPost.schema.blockGraphs.length&&!l(y).currentPost.schema.default.isEnabled?(u(),w(l(De),{key:0,class:"no-graphs",type:"yellow"},{default:n(()=>[N(f(c.noGraphs),1)]),_:1})):k("",!0),o(X,{class:"medium",type:"blue",onClick:P[2]||(P[2]=G=>l(g).setModalOpen({isOpen:!0,initialTab:"schema-templates"}))},{default:n(()=>[N(f(c.generateSchema),1)]),_:1}),o(X,{class:"medium",type:"gray",onClick:P[3]||(P[3]=G=>l(g).setModalOpen({isOpen:!0,initialTab:"schema-validation"}))},{default:n(()=>[N(f(c.validateSchema),1)]),_:1})],2),o(l(Bi),{show:l(g).modalOpen,onClose:P[4]||(P[4]=G=>D("setModalOpen",{isOpen:!1,initialTab:"schema-templates"})),"allow-modal-close":!m.value&&!b.value&&!l(g).isDirty,onSubModalToggle:P[5]||(P[5]=G=>b.value=G)},null,8,["show","allow-modal-close"]),o(l(Tt),{show:m.value,strings:A.value,onDoAction:le,onCloseModal:P[6]||(P[6]=G=>m.value=!1)},null,8,["show","strings"])]),_:1},8,["name"])],2)}}},Xi={class:"title"},$i=["innerHTML"],el={class:"schema-templates"},tl={class:"main"},ol={class:"schema-catalog"},al={class:"graphs"},rl={__name:"CtaModal",setup(i){const t="all-in-one-seo-pack",{graphs:p}=te(),e={schemaGenerator:a("Schema Generator",t),headerTooltip:de(a("Use our powerful Schema Generator to configure Schema Markup for your content. Search Engines use structured data to better understand what your site is about as well as to display rich snippets in search results. %1$s",t),ve.getDocLink(Te.learnMore,"schema",!0)),searchSchema:a("Search Schema",t),ctaDescription:a("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.",t),ctaButtonText:a("Unlock Schema Generator",t),ctaHeader:de(a("Schema Generator is a %1$s Feature",t),"PRO")},r=[a("Unlimited Schema",t),a("Validate with Google",t),a("Increase Rankings",t),a("Additional Schema Types",t)],v=[{slug:"schema-templates",icon:Ft,name:a("Schema Templates",t),component:"templates"},{slug:"custom-schema",icon:Bt,name:a("Custom Schema",t),component:"custom"},{slug:"schema-validation",icon:Ht,name:a("Schema Validation",t),component:"validation"}],y=[{slug:"schema-catalog",name:a("Schema Catalog",t)},{slug:"your-templates",name:a("Your Templates",t)}];return(s,g)=>{const b=d("base-input"),S=d("base-button");return u(),w(l(lt),{classes:["aioseo-post-schema-modal-cta"],onClose:g[0]||(g[0]=V=>s.$emit("close"))},{headerTitle:n(()=>[h("div",Xi,f(e.schemaGenerator),1),o(l(ue),null,{tooltip:n(()=>[h("span",{innerHTML:e.headerTooltip},null,8,$i)]),default:n(()=>[o(l(pt))]),_:1})]),body:n(()=>[o(l(Vt),null,{default:n(()=>[o(l(rt),{tabs:v,active:"schema-templates",showSaveButton:!1},{"var-tab-icon":n(({tab:V})=>[(u(),w(Ee(V.icon)))]),_:1}),h("div",el,[o(l(rt),{tabs:y,active:"schema-catalog",showSaveButton:!1},{"var-tab-icon":n(({tab:V})=>[(u(),w(Ee(V.icon)))]),_:1}),h("div",tl,[o(b,{class:"search",size:"medium",prependIcon:"search",placeholder:e.searchSchema},null,8,["placeholder"]),h("div",ol,[h("div",al,[(u(!0),E(Ve,null,Ne(l(p),(V,m)=>(u(),w(l(Oe),{key:V.graphName+m,graph:V},{buttons:n(()=>[o(S,{class:"small",type:"gray"},{default:n(()=>[o(l($e))]),_:1})]),_:1},8,["graph"]))),128))])])])])]),_:1}),o(l(Qo),{"cta-link":l(ve).getPricingUrl("schema-generator","schema-generator-upsell",null,"liteUpgrade"),"button-text":e.ctaButtonText,"learn-more-link":l(ve).getUpsellUrl("schema-generator",null,"liteUpgrade"),"feature-list":r},{"header-text":n(()=>[N(f(e.ctaHeader),1)]),description:n(()=>[N(f(e.ctaDescription),1)]),_:1},8,["cta-link","button-text","learn-more-link"])]),_:1})}}},Ke="all-in-one-seo-pack",nl={setup(){return{postEditorStore:Pe(),schemaStore:Z(),GLOBAL_STRINGS:Te,links:ve}},components:{CoreAlert:De,CoreSettingsRow:K,CoreTooltip:ue,CtaModal:rl,GraphCard:Oe,SvgEye:qt},props:{parentComponentContext:String},data(){return{strings:{sidebarDescription:a("Configure Schema Markup for your content. Search engines use structured data to display rich results in SERPs.",Ke),noGraphs:a("You have not added any schema yet. You can add any schema graphs you like via the Schema Generator below.",Ke),schemaInUse:a("Schema In Use",Ke),generateSchema:a("Generate Schema",Ke),validateSchema:a("Validate Schema",Ke),defaultGraphTooltip:a("This is the default graph for this post type. All data for this graph will be automatically generated.",Ke)}}},computed:{isSidebar(){return this.$root.$data.screenContext==="sidebar"}},methods:{getDefaultSchemaTooltipOffset(){return Yt()?"-120px,0":this.isSidebar?"-70px,0":"0,0"}}},sl={class:"graphs"},il={key:0,class:"sidebar-description"},ll={class:"description"},ml=["innerHTML"],pl=["innerHTML"],dl={class:"buttons"};function cl(i,t,p,e,r,v){const y=d("svg-eye"),s=d("base-button"),g=d("core-tooltip"),b=d("graph-card"),S=d("core-alert"),V=d("cta-modal"),m=d("core-settings-row");return u(),E("div",{class:Le(["aioseo-tab-content aioseo-post-schema",[{sidebar:v.isSidebar}]])},[o(m,{name:r.strings.schemaInUse},{content:n(()=>[h("div",sl,[v.isSidebar?(u(),E("div",il,[h("p",ll,f(r.strings.sidebarDescription),1),h("p",{class:"description",innerHTML:e.links.getDocLink(e.GLOBAL_STRINGS.learnMore,"schema",!0)},null,8,ml)])):k("",!0),e.postEditorStore.currentPost.schema.default.graphName&&e.postEditorStore.currentPost.schema.default.isEnabled?(u(),w(b,{key:1,defaultGraph:e.postEditorStore.currentPost.schema.default.graphName},{buttons:n(()=>[o(g,{offset:v.getDefaultSchemaTooltipOffset()},{tooltip:n(()=>[h("span",{innerHTML:r.strings.defaultGraphTooltip},null,8,pl)]),default:n(()=>[o(s,{class:"small no-hover",type:"gray"},{default:n(()=>[o(y)]),_:1})]),_:1},8,["offset"])]),_:1},8,["defaultGraph"])):k("",!0)]),h("div",dl,[!e.postEditorStore.currentPost.schema.default.graphName||!e.postEditorStore.currentPost.schema.default.isEnabled?(u(),w(S,{key:0,class:"no-graphs",type:"yellow"},{default:n(()=>[N(f(r.strings.noGraphs),1)]),_:1})):k("",!0),o(s,{class:"medium",type:"blue",onClick:t[0]||(t[0]=c=>e.schemaStore.modalOpen=!0)},{default:n(()=>[N(f(r.strings.generateSchema),1)]),_:1}),o(s,{class:"medium",type:"gray",onClick:t[1]||(t[1]=c=>e.schemaStore.modalOpen=!0)},{default:n(()=>[N(f(r.strings.validateSchema),1)]),_:1})]),o(V,{show:e.schemaStore.modalOpen,onClose:t[2]||(t[2]=c=>e.schemaStore.modalOpen=!1),"modal-name":"schema-cta-modal"},null,8,["show"])]),_:1},8,["name"])],2)}const ul=$(nl,[["render",cl]]),gl={setup(){return{licenseStore:mo()}},components:{Schema:Zi,SchemaLite:ul},props:{parentComponentContext:String}},hl={class:"aioseo-post-schema-view"};function fl(i,t,p,e,r,v){const y=d("schema",!0),s=d("schema-lite");return u(),E("div",hl,[e.licenseStore.isUnlicensed?k("",!0):(u(),w(y,{key:0,parentComponentContext:p.parentComponentContext},null,8,["parentComponentContext"])),e.licenseStore.isUnlicensed?(u(),w(s,{key:1,parentComponentContext:p.parentComponentContext},null,8,["parentComponentContext"])):k("",!0)])}const cm=$(gl,[["render",fl]]);export{cm as default};