import{f as A,a as T,u as j,e as w}from"./links.DERf9LZO.js";import{A as D,T as B}from"./TitleDescription.CJ1Jn6Ij.js";import{C as $}from"./Card.BKhgt1Jg.js";import{C as F}from"./Tabs.J2_YNjxh.js";import{C as L}from"./Tooltip.DiN2Zjvc.js";import{C as b,S as q}from"./Schema.BYQqJMtk.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.BB7B6rSp.js";import"./default-i18n.Bd0Z306Z.js";import"./helpers.D2xRWOvn.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.yEuMw1JF.js";import"./Tags.Dt1VE4lK.js";import"./postSlug.BUVEZsZg.js";import"./metabox.DfnuksZN.js";import"./cleanForSlug.o2RefBn0.js";import"./toString.XwB3Xa5p.js";import"./_baseTrim.BYZhh0MR.js";import"./_stringToArray.DnK4tKcY.js";import"./get.BT85ybc8.js";import"./_baseSet.DALGekmy.js";import"./GoogleSearchPreview.BLUgMtuH.js";import"./constants.B6ynd7gz.js";import"./HtmlTagsEditor.BeRh_joD.js";import"./UnfilteredHtml.iWH6cS1-.js";import"./Slide.CRIn0kdn.js";import"./TruSeoScore.TjofuHRQ.js";import"./Ellipse.bTucWqGK.js";import"./Information.CESrgQJV.js";import"./Textarea.BgYpy-yd.js";import"./Blur.DNVDismY.js";import"./Index.DUPzmxCE.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 Ut=C(K,[["render",X]]);export{Ut as default};
