import{f as A,a as T,u as j,e as w}from"./links.Byq_3x2e.js";import{A as B,T as D}from"./TitleDescription.Gi4Dar4g.js";import{C as $}from"./Card.D52fee8h.js";import{C as F}from"./Tabs.BKGFcDsj.js";import{C as q}from"./Tooltip.DhkkBQWW.js";import{C as g,S as L}from"./Schema.B-6drJLK.js";import{_ as C}from"./_plugin-vue_export-helper.BN1snXvA.js";import{v as a,o as n,c as b,k as _,b as S,F as P,J as M,l as i,a as c,G as N,C as f,t as l,B as u,q as O,T as V}from"./runtime-dom.esm-bundler.tPRhSV4q.js";import{P as I}from"./PostTypes.Cef6XkQ_.js";import{a as U}from"./index.Dbgw3oZ8.js";import"./default-i18n.DXRQgkn2.js";import"./helpers.CXsRrhc8.js";import"./JsonValues.D25FTfEu.js";import"./MaxCounts.DHV7qSQX.js";import"./RadioToggle.CaTwJt--.js";import"./Caret.Ke5gylGO.js";import"./ProBadge.CVd2ImKm.js";import"./RobotsMeta.DNT5yqf9.js";import"./Checkbox.CmdF-nFt.js";import"./Checkmark.DOG99yeO.js";import"./Row.DRnp1mVs.js";import"./SettingsRow.BwYvQArk.js";import"./Editor.CI-FZyFJ.js";import"./isEqual.DkU1ezAe.js";import"./_baseIsEqual.MNbeg0L2.js";import"./_getTag.BWQxgJie.js";import"./_baseClone.Cq_cqRLS.js";import"./_arrayEach.Fgt6pfHj.js";import"./Tags.DAtAys4G.js";import"./postSlug.D7DEP4-b.js";import"./metabox.BEL0zdkw.js";import"./cleanForSlug.BVGRQ_59.js";import"./toString.zLSwYOtv.js";import"./_baseTrim.BYZhh0MR.js";import"./_stringToArray.DnK4tKcY.js";import"./_baseSet.rYV3oc6X.js";import"./GoogleSearchPreview.buqqHJAY.js";import"./constants.CPpKID74.js";import"./HtmlTagsEditor.DEcLTU4G.js";import"./UnfilteredHtml.CxOkHAWj.js";import"./Slide.fjAuzpC8.js";import"./TruSeoScore.DmC22Awy.js";import"./Ellipse.CMQFf36o.js";import"./Information.Bv8uKEyF.js";import"./Textarea.BItFOv10.js";import"./Blur.CvHKqkVq.js";import"./Index.Cf5ujj4F.js";const z={setup(){return{licenseStore:A()}},components:{CustomFields:g,CustomFieldsLite:g},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=a("custom-fields",!0),h=a("custom-fields-lite");return n(),b("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 G=C(z,[["render",E]]),J={setup(){return{optionsStore:T(),rootStore:j(),settingsStore:w()}},components:{Advanced:B,CoreCard:$,CoreMainTabs:F,CoreTooltip:q,CustomFields:G,Schema:L,SvgCircleQuestionMark:U,TitleDescription:D},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"},H=c("br",null,null,-1),K=c("br",null,null,-1);function X(t,r,o,s,m,p){const d=a("svg-circle-question-mark"),h=a("core-tooltip"),y=a("core-main-tabs"),k=a("core-card");return n(),b("div",Q,[(n(!0),b(P,null,M(p.postTypes,(e,v)=>(n(),_(k,{key:v,slug:`${e.name}SA`},{header:i(()=>[c("div",{class:N(["icon dashicons",p.getPostIconClass(e.icon)])},null,2),f(" "+l(e.label)+" ",1),u(h,{"z-index":"99999"},{tooltip:i(()=>[c("div",W,[f(l(m.strings.label)+" ",1),c("strong",null,l(e.label),1),H,f(" "+l(m.strings.name)+" ",1),c("strong",null,l(e.name),1),K])]),default:i(()=>[u(d)]),_:2},1024)]),tabs:i(()=>[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:i(()=>[u(V,{name:"route-fade",mode:"out-in"},{default:i(()=>[(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 Gt=C(J,[["render",X]]);export{Gt as default};
