import{a as A,u as v,m as S}from"./index.681f720c.js";import{u as y}from"./PostTypes.dafa8837.js";import{A as C,T}from"./TitleDescription.338df2b7.js";import{C as D}from"./Card.9816f16f.js";import{C as x}from"./Tabs.6e7f902f.js";import"./translations.d159963e.js";import{c as i,G as k,N as P,x as c,o as s,l as p,m as r,a as l,K as B,t as w,H as m,v as O,T as L}from"./runtime-dom.esm-bundler.5d5e6b71.js";import{_ as N}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as u}from"./default-i18n.20001971.js";import"./helpers.e8ba8937.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.d6666f4b.js";import"./isEqual.1eea7163.js";import"./_baseIsEqual.654f234d.js";import"./_getTag.dfa26aea.js";import"./_baseClone.4aac6d9c.js";import"./_arrayEach.6af5abac.js";import"./index.e5bcd650.js";import"./Caret.202f7c21.js";import"./SchemaStore.3c45ce4c.js";import"./metabox.4ef08012.js";import"./contentHasAssets.394bde62.js";import"./toString.6346a2b4.js";import"./_baseSet.4599153a.js";import"./regex.8a6101c0.js";import"./GoogleSearchPreview.ff5a08b3.js";import"./Url.b0b6e9e3.js";import"./HtmlTagsEditor.e11ea183.js";import"./UnfilteredHtml.a66aed1b.js";import"./Tooltip.418c677c.js";import"./Slide.a525748d.js";import"./vue-router.ad00dfec.js";import"./ProBadge.aeac9858.js";import"./Information.3b2ed489.js";const d="all-in-one-seo-pack",$={setup(){const{getPostIconClass:e}=y();return{getPostIconClass:e,optionsStore:A(),rootStore:v(),settingsStore:S()}},components:{Advanced:C,CoreCard:D,CoreMainTabs:x,TitleDescription:T},data(){return{internalDebounce:null,tabs:[{slug:"title-description",name:u("Title & Description",d),access:"aioseo_search_appearance_settings",pro:!1},{slug:"advanced",name:u("Advanced",d),access:"aioseo_search_appearance_settings",pro:!1}],archives:[{label:"Author Archives",name:"author",singular:"Author",icon:"dashicons-admin-users"},{label:"Date Archives",name:"date",singular:"Date",icon:"dashicons-calendar-alt"},{label:"Search Page",name:"search",singular:"Search Page",icon:"dashicons-search"}]}},computed:{getArchives(){return this.archives.concat(this.rootStore.aioseo.postData.archives.map(e=>({label:`${e.label} Archives`,name:`${e.name}Archive`,icon:(e==null?void 0:e.icon)||"dashicons-category",singular:e.singular,dynamic:!0})))}},methods:{processChangeTab(e,n){this.internalDebounce||(this.internalDebounce=!0,this.settingsStore.changeTab({slug:`${e}Archives`,value:n}),setTimeout(()=>{this.internalDebounce=!1},50))},getOptions(e){return e.dynamic?this.optionsStore.dynamicOptions.searchAppearance.archives[e.name.replace("Archive","")]:this.optionsStore.options.searchAppearance.archives[e.name]}}},j={class:"aioseo-search-appearance-archives"};function I(e,n,R,o,h,a){const _=c("core-main-tabs"),g=c("core-card");return s(),i("div",j,[(s(!0),i(k,null,P(a.getArchives,(t,f)=>(s(),p(g,{key:f,slug:`${t.name}Archives`,"card-id":`${t.name}Archives`},{header:r(()=>[l("div",{class:B(["icon dashicons",o.getPostIconClass(t.icon)])},null,2),l("div",null,w(t.label),1)]),tabs:r(()=>[m(_,{tabs:h.tabs,showSaveButton:!1,active:o.settingsStore.settings.internalTabs[`${t.name}Archives`],internal:"",onChanged:b=>a.processChangeTab(t.name,b)},null,8,["tabs","active","onChanged"])]),default:r(()=>[m(L,{name:"route-fade",mode:"out-in"},{default:r(()=>[(s(),p(O(o.settingsStore.settings.internalTabs[`${t.name}Archives`]),{object:t,separator:o.optionsStore.options.searchAppearance.global.separator,options:a.getOptions(t),type:"archives","show-bulk":!1,"no-meta-box":"","include-keywords":""},null,8,["object","separator","options"]))]),_:2},1024)]),_:2},1032,["slug","card-id"]))),128))])}const De=N($,[["render",I]]);export{De as default};
