import{j as x,e as B,u as D,m as T}from"./index.bd66e758.js";import{u as L}from"./PostTypes.dafa8837.js";import{A as q,T as F}from"./TitleDescription.3d2632bf.js";import{C as N}from"./Card.88a70537.js";import{C as P}from"./Tabs.38c9ba5c.js";import{C as O}from"./Tooltip.418c677c.js";import{_ as C,S as V}from"./Schema.45378e15.js";import{_ as k}from"./_plugin-vue_export-helper.eefbdd86.js";import{x as l,o as n,c as S,l as d,b as y,G as M,N as U,m as a,a as m,K as z,y as h,t as u,H as _,v as E,T as I}from"./runtime-dom.esm-bundler.5d5e6b71.js";import{S as R}from"./index.eb92a2a8.js";import"./translations.d159963e.js";import{_ as i}from"./default-i18n.20001971.js";import"./helpers.bf0d86e6.js";import"./constants.fe8bda37.js";import"./JsonValues.3fcfec97.js";import"./RadioToggle.51430965.js";import"./RobotsMeta.950709bd.js";import"./Checkbox.28e8400d.js";import"./Checkmark.43d7168a.js";import"./Row.aff98451.js";import"./SettingsRow.8aa99257.js";import"./Editor.81f3911b.js";import"./isEqual.5cc76a57.js";import"./_baseIsEqual.6ce4f4be.js";import"./_getTag.591de94f.js";import"./_baseClone.1a97e0e2.js";import"./_arrayEach.6af5abac.js";import"./Caret.382b7591.js";import"./GoogleSearchPreview.d0cab464.js";import"./Url.47c8a1c7.js";import"./HtmlTagsEditor.e6c04a8d.js";import"./UnfilteredHtml.15c70aa8.js";import"./Slide.a525748d.js";import"./vue-router.ad00dfec.js";import"./ProBadge.aeac9858.js";import"./Information.3b2ed489.js";import"./Textarea.1c3d0fb8.js";import"./Blur.4fe4b9a3.js";import"./Index.1a358ca4.js";const G={setup(){return{licenseStore:x()}},components:{CustomFields:C,CustomFieldsLite:C},props:{type:{type:String,required:!0},object:{type:Object,required:!0},options:{type:Object,required:!0},showBulk:Boolean}},H={class:"aioseo-sa-ct-custom-fields-view"};function K(t,r,e,s,f,p){const b=l("custom-fields",!0),g=l("custom-fields-lite");return n(),S("div",H,[s.licenseStore.isUnlicensed?y("",!0):(n(),d(b,{key:0,type:e.type,object:e.object,options:e.options,"show-bulk":e.showBulk},null,8,["type","object","options","show-bulk"])),s.licenseStore.isUnlicensed?(n(),d(g,{key:1,type:e.type,object:e.object,options:e.options,"show-bulk":e.showBulk},null,8,["type","object","options","show-bulk"])):y("",!0)])}const Q=k(G,[["render",K]]),c="all-in-one-seo-pack",J={setup(){const{getPostIconClass:t}=L();return{getPostIconClass:t,optionsStore:B(),rootStore:D(),settingsStore:T()}},components:{Advanced:q,CoreCard:N,CoreMainTabs:P,CoreTooltip:O,CustomFields:Q,Schema:V,SvgCircleQuestionMark:R,TitleDescription:F},data(){return{internalDebounce:null,strings:{label:i("Label:",c),name:i("Slug:",c)},tabs:[{slug:"title-description",name:i("Title & Description",c),access:"aioseo_search_appearance_settings",pro:!1},{slug:"schema",name:i("Schema Markup",c),access:"aioseo_search_appearance_settings",pro:!0},{slug:"custom-fields",name:i("Custom Fields",c),access:"aioseo_search_appearance_settings",pro:!0},{slug:"advanced",name:i("Advanced",c),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))},filteredTabs(t){const r=[];return this.tabs.forEach(e=>{t!=null&&t.buddyPress&&e.slug==="custom-fields"||t.name==="web-story"&&e.slug==="custom-fields"||r.push(e)}),r}}},W={class:"aioseo-search-appearance-content-types"},X={class:"aioseo-description"},Y=m("br",null,null,-1),Z=m("br",null,null,-1);function $(t,r,e,s,f,p){const b=l("svg-circle-question-mark"),g=l("core-tooltip"),v=l("core-main-tabs"),A=l("core-card");return n(),S("div",W,[(n(!0),S(M,null,U(p.postTypes,(o,j)=>(n(),d(A,{key:j,slug:`${o.name}SA`,"card-id":`${o.name}SA`},{header:a(()=>[m("div",{class:z(["icon dashicons",s.getPostIconClass(o.icon)])},null,2),h(" "+u(o.label)+" ",1),_(g,{"z-index":"99999"},{tooltip:a(()=>[m("div",X,[h(u(f.strings.label)+" ",1),m("strong",null,u(o.label),1),Y,h(" "+u(f.strings.name)+" ",1),m("strong",null,u(o.name),1),Z])]),default:a(()=>[_(b)]),_:2},1024)]),tabs:a(()=>[_(v,{tabs:p.filteredTabs(o),showSaveButton:!1,active:s.settingsStore.settings.internalTabs[`${o.name}SA`],internal:"",onChanged:w=>p.processChangeTab(o.name,w)},null,8,["tabs","active","onChanged"])]),default:a(()=>[_(I,{name:"route-fade",mode:"out-in"},{default:a(()=>[(n(),d(E(s.settingsStore.settings.internalTabs[`${o.name}SA`]),{object:o,separator:s.optionsStore.options.searchAppearance.global.separator,options:s.optionsStore.dynamicOptions.searchAppearance.postTypes[o.name],type:"postTypes"},null,8,["object","separator","options"]))]),_:2},1024)]),_:2},1032,["slug","card-id"]))),128))])}const Ue=k(J,[["render",$]]);export{Ue as default};
