import{e as u,a as l,m}from"./index.f16c040b.js";import{A as _,T as d}from"./TitleDescription.2098c094.js";import{C as h}from"./Card.1a6f5bab.js";import{C as f}from"./Tabs.6838349b.js";import{C as o,S as v}from"./Schema.a42cc726.js";import{n as i}from"./vueComponentNormalizer.58b0a173.js";import"./isArrayLikeObject.5268a676.js";import"./default-i18n.0e73c33c.js";import"./WpTable.078239fd.js";import"./constants.71b051da.js";import"./attachments.0f69322e.js";import"./cleanForSlug.41bbbaec.js";import"./index.c9bc1c73.js";import"./client.b661b356.js";import"./_commonjsHelpers.10c44588.js";import"./translations.3bc9d58c.js";import"./portal-vue.esm.272b3133.js";import"./JsonValues.08065e69.js";import"./MaxCounts.5a7ca2fd.js";import"./RadioToggle.d0794ab7.js";import"./RobotsMeta.e1358fdf.js";import"./Checkbox.732cf0d4.js";import"./Checkmark.c0183939.js";import"./Row.89c6bb85.js";import"./SettingsRow.0d51ff21.js";import"./GoogleSearchPreview.3cec5179.js";import"./HtmlTagsEditor.b55f3dc8.js";import"./Editor.f11f5d3a.js";import"./UnfilteredHtml.155f6b63.js";import"./Tooltip.a36a3967.js";import"./Slide.01023b2f.js";import"./TruSeoScore.98a47fd6.js";import"./Information.6f7632ab.js";import"./Textarea.92b32df4.js";import"./Blur.945b1b3e.js";import"./Index.28b23aca.js";var b=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"aioseo-sa-ct-custom-fields-view"},[t.isUnlicensed?t._e():s("custom-fields",{attrs:{type:t.type,object:t.object,options:t.options,"show-bulk":t.showBulk}}),t.isUnlicensed?s("custom-fields-lite",{attrs:{type:t.type,object:t.object,options:t.options,"show-bulk":t.showBulk}}):t._e()],1)},y=[];const g={components:{CustomFields:o,CustomFieldsLite:o},props:{type:{type:String,required:!0},object:{type:Object,required:!0},options:{type:Object,required:!0},showBulk:Boolean},computed:{...u(["isUnlicensed"])}},r={};var $=i(g,b,y,!1,C,null,null,null);function C(t){for(let e in r)this[e]=r[e]}const A=function(){return $.exports}();var S=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"aioseo-search-appearance-content-types"},t._l(t.postTypes,function(n,c){return s("core-card",{key:c,attrs:{slug:`${n.name}SA`},scopedSlots:t._u([{key:"header",fn:function(){return[s("div",{staticClass:"icon dashicons",class:`${n.icon||"dashicons-admin-post"}`}),s("div",{domProps:{innerHTML:t._s(n.label)}})]},proxy:!0},{key:"tabs",fn:function(){return[s("core-main-tabs",{attrs:{tabs:t.tabs,showSaveButton:!1,active:t.settings.internalTabs[`${n.name}SA`],internal:""},on:{changed:function(p){return t.processChangeTab(n.name,p)}}})]},proxy:!0}],null,!0)},[s("transition",{attrs:{name:"route-fade",mode:"out-in"}},[s(t.settings.internalTabs[`${n.name}SA`],{tag:"component",attrs:{object:n,separator:t.options.searchAppearance.global.separator,options:t.dynamicOptions.searchAppearance.postTypes[n.name],type:"postTypes"}})],1)],1)}),1)},T=[];const x={components:{Advanced:_,CoreCard:h,CoreMainTabs:f,CustomFields:A,Schema:v,TitleDescription:d},data(){return{internalDebounce:null,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:{...l(["options","dynamicOptions","settings"]),postTypes(){return this.$aioseo.postData.postTypes.filter(t=>t.name!=="attachment")}},methods:{...m(["changeTab"]),processChangeTab(t,e){this.internalDebounce||(this.internalDebounce=!0,this.changeTab({slug:`${t}SA`,value:e}),setTimeout(()=>{this.internalDebounce=!1},50))}}},a={};var j=i(x,S,T,!1,k,null,null,null);function k(t){for(let e in a)this[e]=a[e]}const lt=function(){return j.exports}();export{lt as default};
