import{f as A,a as T,u as j,e as w}from"./links.bbde6535.js";import{A as B,T as D}from"./TitleDescription.d7ade38b.js";import{C as $}from"./Card.3bd391bc.js";import{C as q}from"./Tabs.45282823.js";import{C as F}from"./Tooltip.432f1167.js";import{C as b,S as L}from"./Schema.eb371a32.js";import{x as i,o as n,c as g,k as _,b as S,H as P,I,l as a,a as c,E as M,A as f,t as l,z as u,q as N,T as O}from"./vue.runtime.esm-bundler.308f2021.js";import{_ as C}from"./_plugin-vue_export-helper.5bcc150c.js";import{P as V}from"./PostTypes.e5795f0f.js";import{a as z}from"./index.fadde3df.js";import"./default-i18n.3881921e.js";import"./isArrayLikeObject.965a2149.js";import"./JsonValues.870a4901.js";import"./MaxCounts.12b45bab.js";import"./RadioToggle.3df41deb.js";import"./ProBadge.bf5a3f4e.js";import"./RobotsMeta.f21d983b.js";import"./Checkbox.30500119.js";import"./Checkmark.85e83e8c.js";import"./Row.16199427.js";import"./SettingsRow.42f6374c.js";import"./tags.8c7eead3.js";import"./Tags.55c98ce0.js";import"./postSlug.1266810a.js";import"./Caret.baea7fe0.js";import"./metabox.300d9f84.js";import"./cleanForSlug.b75b0ef4.js";import"./toString.1bb388e8.js";import"./_baseTrim.8725856f.js";import"./_stringToArray.4de3b1f3.js";import"./get.6473921f.js";import"./GoogleSearchPreview.d5453823.js";import"./HtmlTagsEditor.3f6db819.js";import"./Editor.678bc800.js";import"./UnfilteredHtml.825fcb93.js";import"./Slide.22dc72dc.js";import"./TruSeoScore.b474bf15.js";import"./Ellipse.bae3329f.js";import"./Information.5dd0922d.js";import"./Textarea.f85090b4.js";import"./Blur.d6d433b6.js";import"./Index.6f50ed01.js";import"./constants.b87c371e.js";const U={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}},E={class:"aioseo-sa-ct-custom-fields-view"};function R(t,r,o,s,m,p){const d=i("custom-fields",!0),h=i("custom-fields-lite");return n(),g("div",E,[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(U,[["render",R]]);const Q={setup(){return{optionsStore:T(),rootStore:j(),settingsStore:w()}},components:{Advanced:B,CoreCard:$,CoreMainTabs:q,CoreTooltip:F,CustomFields:H,Schema:L,SvgCircleQuestionMark:z,TitleDescription:D},mixins:[V],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}}},W={class:"aioseo-search-appearance-content-types"},G={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(),g("div",W,[(n(!0),g(P,null,I(p.postTypes,(e,v)=>(n(),_(k,{key:v,slug:`${e.name}SA`},{header:a(()=>[c("div",{class:M(["icon dashicons",p.getPostIconClass(e.icon)])},null,2),f(" "+l(e.label)+" ",1),u(h,{"z-index":"99999"},{tooltip:a(()=>[c("div",G,[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(O,{name:"route-fade",mode:"out-in"},{default:a(()=>[(n(),_(N(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(Q,[["render",X]]);export{zt as default};
