import{f as A,a as T,u as j,e as w}from"./links.C7Z9vJvv.js";import{A as D,T as B}from"./TitleDescription.D9kbqLc8.js";import{C as $}from"./Card.CGaKNDqF.js";import{C as F}from"./Tabs.C3JBuhlY.js";import{C as L}from"./Tooltip.Jp05nfCy.js";import{C as b,S as q}from"./Schema.gcUF_VN4.js";import{x as i,o as n,c as g,l as _,d as S,F as P,K as M,m as a,a as c,H as N,D as f,t as l,C as u,v as O,T as V}from"./vue.esm-bundler.CWQFYt9y.js";import{_ as C}from"./_plugin-vue_export-helper.BN1snXvA.js";import{P as I}from"./PostTypes.Cef6XkQ_.js";import{a as U}from"./index.B8uZtLiV.js";import"./default-i18n.Bd0Z306Z.js";import"./helpers.DkJd815A.js";import"./JsonValues.D25FTfEu.js";import"./MaxCounts.DHV7qSQX.js";import"./RadioToggle.BLVmJ7Zx.js";import"./Caret.iRBf3wcH.js";import"./ProBadge.WwPkDor4.js";import"./RobotsMeta.DaT5Emc8.js";import"./Checkbox.D2dfpbIi.js";import"./Checkmark.pCOnqh_g.js";import"./Row.CzuhYwfs.js";import"./SettingsRow.DQldd-1Z.js";import"./Editor.1dGlgGI2.js";import"./Tags._MnIS4My.js";import"./postSlug.CDiVL5bV.js";import"./metabox.DB93Mij9.js";import"./cleanForSlug.DjSHNZs8.js";import"./toString.24fN1xMd.js";import"./_baseTrim.BYZhh0MR.js";import"./_stringToArray.DnK4tKcY.js";import"./get.QVQdoK-Q.js";import"./GoogleSearchPreview.CKT_8j71.js";import"./strings.DHEzgTA5.js";import"./isString.DH_10e2z.js";import"./constants.DpuIWwJ9.js";import"./HtmlTagsEditor.BXdm28ie.js";import"./UnfilteredHtml.DjdQRb-s.js";import"./Slide.CRIn0kdn.js";import"./TruSeoScore.TjofuHRQ.js";import"./Ellipse.DLIy0Fhb.js";import"./Information.CESrgQJV.js";import"./Textarea.BgYpy-yd.js";import"./Blur.DNVDismY.js";import"./Index.XNbBlAFo.js";const z={setup(){return{licenseStore:A()}},components:{CustomFields:b,CustomFieldsLite:b},props:{type:{type:String,required:!0},object:{type:Object,required:!0},options:{type:Object,required:!0},showBulk:Boolean}},R={class:"aioseo-sa-ct-custom-fields-view"};function E(t,r,o,s,m,p){const d=i("custom-fields",!0),h=i("custom-fields-lite");return n(),g("div",R,[s.licenseStore.isUnlicensed?S("",!0):(n(),_(d,{key:0,type:o.type,object:o.object,options:o.options,"show-bulk":o.showBulk},null,8,["type","object","options","show-bulk"])),s.licenseStore.isUnlicensed?(n(),_(h,{key:1,type:o.type,object:o.object,options:o.options,"show-bulk":o.showBulk},null,8,["type","object","options","show-bulk"])):S("",!0)])}const H=C(z,[["render",E]]),K={setup(){return{optionsStore:T(),rootStore:j(),settingsStore:w()}},components:{Advanced:D,CoreCard:$,CoreMainTabs:F,CoreTooltip:L,CustomFields:H,Schema:q,SvgCircleQuestionMark:U,TitleDescription:B},mixins:[I],data(){return{internalDebounce:null,strings:{label:this.$t.__("Label:",this.$td),name:this.$t.__("Slug:",this.$td)},tabs:[{slug:"title-description",name:this.$t.__("Title & Description",this.$td),access:"aioseo_search_appearance_settings",pro:!1},{slug:"schema",name:this.$t.__("Schema Markup",this.$td),access:"aioseo_search_appearance_settings",pro:!0},{slug:"custom-fields",name:this.$t.__("Custom Fields",this.$td),access:"aioseo_search_appearance_settings",pro:!0},{slug:"advanced",name:this.$t.__("Advanced",this.$td),access:"aioseo_search_appearance_settings",pro:!1}]}},computed:{postTypes(){return this.rootStore.aioseo.postData.postTypes.filter(t=>t.name!=="attachment")}},methods:{processChangeTab(t,r){this.internalDebounce||(this.internalDebounce=!0,this.settingsStore.changeTab({slug:`${t}SA`,value:r}),setTimeout(()=>{this.internalDebounce=!1},50))},getPostIconClass(t){const r="dashicons-admin-post";return t!=null&&t.startsWith("dashicons-awb-")?r:t||r}}},Q={class:"aioseo-search-appearance-content-types"},W={class:"aioseo-description"},G=c("br",null,null,-1),J=c("br",null,null,-1);function X(t,r,o,s,m,p){const d=i("svg-circle-question-mark"),h=i("core-tooltip"),y=i("core-main-tabs"),k=i("core-card");return n(),g("div",Q,[(n(!0),g(P,null,M(p.postTypes,(e,v)=>(n(),_(k,{key:v,slug:`${e.name}SA`},{header:a(()=>[c("div",{class:N(["icon dashicons",p.getPostIconClass(e.icon)])},null,2),f(" "+l(e.label)+" ",1),u(h,{"z-index":"99999"},{tooltip:a(()=>[c("div",W,[f(l(m.strings.label)+" ",1),c("strong",null,l(e.label),1),G,f(" "+l(m.strings.name)+" ",1),c("strong",null,l(e.name),1),J])]),default:a(()=>[u(d)]),_:2},1024)]),tabs:a(()=>[u(y,{tabs:m.tabs,showSaveButton:!1,active:s.settingsStore.settings.internalTabs[`${e.name}SA`],internal:"",onChanged:x=>p.processChangeTab(e.name,x)},null,8,["tabs","active","onChanged"])]),default:a(()=>[u(V,{name:"route-fade",mode:"out-in"},{default:a(()=>[(n(),_(O(s.settingsStore.settings.internalTabs[`${e.name}SA`]),{object:e,separator:s.optionsStore.options.searchAppearance.global.separator,options:s.optionsStore.dynamicOptions.searchAppearance.postTypes[e.name],type:"postTypes"},null,8,["object","separator","options"]))]),_:2},1024)]),_:2},1032,["slug"]))),128))])}const zt=C(K,[["render",X]]);export{zt as default};
