import{f as A,a as T,u as j,e as w}from"./links.C572zDFG.js";import{A as B,T as D}from"./TitleDescription.CHFIjZJO.js";import{C as $}from"./Card.CuS1kKeW.js";import{C as F}from"./Tabs.C-PQxwBC.js";import{C as q}from"./Tooltip.CRFjFnpF.js";import{C as g,S as L}from"./Schema.DIoA0L54.js";import{_ as C,T as P}from"./_plugin-vue_export-helper.BLXtEB-G.js";import{v as i,o as n,c as b,k as _,b as S,F as M,ac as N,l as a,a as c,aa as O,C as f,t as l,B as u,q as V}from"./runtime-core.esm-bundler.DMBo7TXk.js";import{P as I}from"./PostTypes.Cef6XkQ_.js";import{a as U}from"./index.CdwEuUIl.js";import"./default-i18n.Bd0Z306Z.js";import"./helpers.D5tYIqKS.js";import"./JsonValues.D25FTfEu.js";import"./MaxCounts.DHV7qSQX.js";import"./RadioToggle.CODR8har.js";import"./Caret.CGwYaMo_.js";import"./ProBadge.Bm930amZ.js";import"./RobotsMeta.PSz00Srx.js";import"./Checkbox.CxE2HV-P.js";import"./Checkmark.DL3UTTgg.js";import"./Row.CHjKxnPP.js";import"./SettingsRow.BzmNmU2T.js";import"./Editor.DxKrKvK1.js";import"./isEqual.6YJSJDqn.js";import"./_baseIsEqual.8qmZqLuw.js";import"./_getTag.Dxs-K0Yj.js";import"./_baseClone.Zn5yUk9p.js";import"./_arrayEach.Fgt6pfHj.js";import"./Tags.D1_s1xAA.js";import"./postSlug.CtHxoMEa.js";import"./metabox.CE2B6Dot.js";import"./cleanForSlug.DjsajR64.js";import"./toString.CkyAieyd.js";import"./_baseTrim.BYZhh0MR.js";import"./_stringToArray.DnK4tKcY.js";import"./_baseSet.SHpzr1A5.js";import"./GoogleSearchPreview.DQIVXQEq.js";import"./constants.B6ynd7gz.js";import"./HtmlTagsEditor.BQtOQ8ni.js";import"./UnfilteredHtml.C9zHp9e0.js";import"./Slide.D2pWF0rN.js";import"./TruSeoScore.TjofuHRQ.js";import"./Ellipse.CAgnKuMU.js";import"./Information.JAmX9TGg.js";import"./Textarea.Bw5pvWnV.js";import"./Blur.tZiC08Rv.js";import"./Index.fxoyLS1r.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=i("custom-fields",!0),h=i("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 Q=C(z,[["render",E]]),W={setup(){return{optionsStore:T(),rootStore:j(),settingsStore:w()}},components:{Advanced:B,CoreCard:$,CoreMainTabs:F,CoreTooltip:q,CustomFields:Q,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}}},G={class:"aioseo-search-appearance-content-types"},H={class:"aioseo-description"},J=c("br",null,null,-1),K=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(),b("div",G,[(n(!0),b(M,null,N(p.postTypes,(e,v)=>(n(),_(k,{key:v,slug:`${e.name}SA`},{header:a(()=>[c("div",{class:O(["icon dashicons",p.getPostIconClass(e.icon)])},null,2),f(" "+l(e.label)+" ",1),u(h,{"z-index":"99999"},{tooltip:a(()=>[c("div",H,[f(l(m.strings.label)+" ",1),c("strong",null,l(e.label),1),J,f(" "+l(m.strings.name)+" ",1),c("strong",null,l(e.name),1),K])]),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(P,{name:"route-fade",mode:"out-in"},{default:a(()=>[(n(),_(V(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 Qt=C(W,[["render",X]]);export{Qt as default};
