import{d as S,a as T,m as j}from"./vuex.esm-bundler.8589b2dd.js";import{A as w,T as B}from"./TitleDescription.041a6561.js";import{C as D}from"./Card.24f1a534.js";import{C as F}from"./Tabs.eb56046b.js";import{C as q}from"./Tooltip.ae0bcccb.js";import{C as f,S as x}from"./Schema.b6a51d04.js";import{_ as y,r as a,o as s,c as b,h as p,a as g,F as L,i as N,w as n,f as i,n as O,e as h,t as r,d as l,k as U,T as V}from"./_plugin-vue_export-helper.2d9794a3.js";import{c as M}from"./index.fd0fcee8.js";import"./default-i18n.ab92175e.js";import"./_commonjsHelpers.f84db168.js";import"./WpTable.4d19dc46.js";import"./helpers.de7566d0.js";import"./RequiresUpdate.52f5acf2.js";import"./postContent.bb42e0a8.js";import"./index.02a5ed9a.js";import"./isArrayLikeObject.c492f682.js";import"./Caret.42a820e0.js";import"./cleanForSlug.62b08993.js";import"./constants.7044c894.js";import"./html.14f2a8b9.js";import"./Index.1fd8fc42.js";import"./JsonValues.870a4901.js";import"./MaxCounts.12b45bab.js";import"./SaveChanges.bc66cd69.js";import"./RadioToggle.4c888ca1.js";import"./ProBadge.bcf74c08.js";import"./RobotsMeta.61c93b1f.js";import"./Checkbox.b4e8b6fc.js";import"./Checkmark.c5326878.js";import"./Row.5e452de4.js";import"./SettingsRow.09a16661.js";import"./GoogleSearchPreview.6684da45.js";import"./HtmlTagsEditor.f7794300.js";import"./Editor.7fd59f57.js";import"./UnfilteredHtml.47ebc566.js";import"./Slide.cd756e61.js";import"./TruSeoScore.76897846.js";import"./Information.a08d0ef0.js";import"./Textarea.33c8fce4.js";import"./Blur.a27209d0.js";import"./Index.a5b2ee90.js";const z={components:{CustomFields:f,CustomFieldsLite:f},props:{type:{type:String,required:!0},object:{type:Object,required:!0},options:{type:Object,required:!0},showBulk:Boolean},computed:{...S(["isUnlicensed"])}},E={class:"aioseo-sa-ct-custom-fields-view"};function G(t,m,o,C,c,u){const _=a("custom-fields",!0),d=a("custom-fields-lite");return s(),b("div",E,[t.isUnlicensed?g("",!0):(s(),p(_,{key:0,type:o.type,object:o.object,options:o.options,"show-bulk":o.showBulk},null,8,["type","object","options","show-bulk"])),t.isUnlicensed?(s(),p(d,{key:1,type:o.type,object:o.object,options:o.options,"show-bulk":o.showBulk},null,8,["type","object","options","show-bulk"])):g("",!0)])}const P=y(z,[["render",G]]);const Q={components:{Advanced:w,CoreCard:D,CoreMainTabs:F,CoreTooltip:q,CustomFields:P,Schema:x,SvgCircleQuestionMark:M,TitleDescription:B},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:{...T(["options","dynamicOptions","settings"]),postTypes(){return this.$aioseo.postData.postTypes.filter(t=>t.name!=="attachment")}},methods:{...j(["changeTab"]),processChangeTab(t,m){this.internalDebounce||(this.internalDebounce=!0,this.changeTab({slug:`${t}SA`,value:m}),setTimeout(()=>{this.internalDebounce=!1},50))}}},R={class:"aioseo-search-appearance-content-types"},H={class:"aioseo-description"},I=i("br",null,null,-1),J=i("br",null,null,-1);function K(t,m,o,C,c,u){const _=a("svg-circle-question-mark"),d=a("core-tooltip"),k=a("core-main-tabs"),v=a("core-card");return s(),b("div",R,[(s(!0),b(L,null,N(u.postTypes,(e,$)=>(s(),p(v,{key:$,slug:`${e.name}SA`},{header:n(()=>[i("div",{class:O(["icon dashicons",`${e.icon||"dashicons-admin-post"}`])},null,2),h(" "+r(e.label)+" ",1),l(d,{"z-index":"99999"},{tooltip:n(()=>[i("div",H,[h(r(c.strings.label)+" ",1),i("strong",null,r(e.label),1),I,h(" "+r(c.strings.name)+" ",1),i("strong",null,r(e.name),1),J])]),default:n(()=>[l(_)]),_:2},1024)]),tabs:n(()=>[l(k,{tabs:c.tabs,showSaveButton:!1,active:t.settings.internalTabs[`${e.name}SA`],internal:"",onChanged:A=>u.processChangeTab(e.name,A)},null,8,["tabs","active","onChanged"])]),default:n(()=>[l(V,{name:"route-fade",mode:"out-in"},{default:n(()=>[(s(),p(U(t.settings.internalTabs[`${e.name}SA`]),{object:e,separator:t.options.searchAppearance.global.separator,options:t.dynamicOptions.searchAppearance.postTypes[e.name],type:"postTypes"},null,8,["object","separator","options"]))]),_:2},1024)]),_:2},1032,["slug"]))),128))])}const Ut=y(Q,[["render",K]]);export{Ut as default};
