import{c as l,a as u,m}from"./vuex.esm.19624049.js";import{A as _,T as d}from"./TitleDescription.c7f893d3.js";import{C as h}from"./Card.efd2e18e.js";import{C as f}from"./Tabs.2c3e6ab7.js";import{C as v}from"./Tooltip.d723c3c3.js";import{C as n,S as b}from"./Schema.b7c74760.js";import{n as a}from"./vueComponentNormalizer.67c9b86e.js";import{S as g}from"./index.81e35b24.js";import"./WpTable.36ecda37.js";import"./helpers.a2b0759e.js";import"./index.7b63dad7.js";import"./isArrayLikeObject.5268a676.js";import"./default-i18n.0e73c33c.js";import"./attachments.e5102eba.js";import"./cleanForSlug.7a45fb51.js";import"./constants.8bff9f56.js";import"./Caret.eeb84d06.js";import"./_commonjsHelpers.10c44588.js";import"./html.bcbe747e.js";import"./Index.cb09fd7a.js";import"./JsonValues.08065e69.js";import"./MaxCounts.5a7ca2fd.js";import"./SaveChanges.68e73792.js";import"./RadioToggle.2a5182bd.js";import"./RobotsMeta.540fd061.js";import"./Checkbox.1903802a.js";import"./Checkmark.cdcd77fe.js";import"./Row.2d17f2cd.js";import"./SettingsRow.d7400549.js";import"./GoogleSearchPreview.357b0813.js";import"./HtmlTagsEditor.b55c95d9.js";import"./Editor.10476612.js";import"./UnfilteredHtml.02869869.js";import"./Slide.9538a421.js";import"./TruSeoScore.98a47fd6.js";import"./Information.be119534.js";import"./Textarea.e385048b.js";import"./Blur.920c6287.js";import"./Index.92416e95.js";import"./client.90beecd8.js";import"./translations.3bc9d58c.js";import"./portal-vue.esm.18ed59c3.js";var y=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"aioseo-sa-ct-custom-fields-view"},[t.isUnlicensed?t._e():e("custom-fields",{attrs:{type:t.type,object:t.object,options:t.options,"show-bulk":t.showBulk}}),t.isUnlicensed?e("custom-fields-lite",{attrs:{type:t.type,object:t.object,options:t.options,"show-bulk":t.showBulk}}):t._e()],1)},$=[];const C={components:{CustomFields:n,CustomFieldsLite:n},props:{type:{type:String,required:!0},object:{type:Object,required:!0},options:{type:Object,required:!0},showBulk:Boolean},computed:{...l(["isUnlicensed"])}},r={};var S=a(C,y,$,!1,A,null,null,null);function A(t){for(let s in r)this[s]=r[s]}const k=function(){return S.exports}();var x=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"aioseo-search-appearance-content-types"},t._l(t.postTypes,function(o,c){return e("core-card",{key:c,attrs:{slug:`${o.name}SA`},scopedSlots:t._u([{key:"header",fn:function(){return[e("div",{staticClass:"icon dashicons",class:`${o.icon||"dashicons-admin-post"}`}),t._v(" "+t._s(o.label)+" "),e("core-tooltip",{scopedSlots:t._u([{key:"tooltip",fn:function(){return[e("div",{staticClass:"aioseo-description"},[t._v(" "+t._s(t.strings.label)+" "),e("strong",[t._v(t._s(o.label))]),e("br"),t._v(" "+t._s(t.strings.name)+" "),e("strong",[t._v(t._s(o.name))]),e("br")])]},proxy:!0}],null,!0)},[e("svg-circle-question-mark")],1)]},proxy:!0},{key:"tabs",fn:function(){return[e("core-main-tabs",{attrs:{tabs:t.tabs,showSaveButton:!1,active:t.settings.internalTabs[`${o.name}SA`],internal:""},on:{changed:function(p){return t.processChangeTab(o.name,p)}}})]},proxy:!0}],null,!0)},[e("transition",{attrs:{name:"route-fade",mode:"out-in"}},[e(t.settings.internalTabs[`${o.name}SA`],{tag:"component",attrs:{object:o,separator:t.options.searchAppearance.global.separator,options:t.dynamicOptions.searchAppearance.postTypes[o.name],type:"postTypes"}})],1)],1)}),1)},j=[];const T={components:{Advanced:_,CoreCard:h,CoreMainTabs:f,CoreTooltip:v,CustomFields:k,Schema:b,SvgCircleQuestionMark:g,TitleDescription:d},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:{...u(["options","dynamicOptions","settings"]),postTypes(){return this.$aioseo.postData.postTypes.filter(t=>t.name!=="attachment")}},methods:{...m(["changeTab"]),processChangeTab(t,s){this.internalDebounce||(this.internalDebounce=!0,this.changeTab({slug:`${t}SA`,value:s}),setTimeout(()=>{this.internalDebounce=!1},50))}}},i={};var w=a(T,x,j,!1,D,null,null,null);function D(t){for(let s in i)this[s]=i[s]}const gt=function(){return w.exports}();export{gt as default};
