import{c as A,u as v,m as S}from"./index.bb0afb15.js";import{u as y}from"./PostTypes.dafa8837.js";import{A as C,T}from"./TitleDescription.4a9085a9.js";import{C as D}from"./Card.16558ba3.js";import{C as k}from"./Tabs.9fff5d3c.js";import"./translations.d159963e.js";import{c as i,G as x,N as P,v as c,o as s,k as p,l as r,a as l,K as B,t as w,H as m,q as O,T as L}from"./runtime-dom.esm-bundler.baf35205.js";import{_ as N}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as u}from"./default-i18n.20001971.js";import"./helpers.80db7619.js";import"./constants.a8a14dc3.js";import"./JsonValues.3fcfec97.js";import"./RadioToggle.c3ae1828.js";import"./RobotsMeta.5e8ee147.js";import"./Checkbox.d4a94670.js";import"./Checkmark.b35299d3.js";import"./Row.c7b7fb90.js";import"./SettingsRow.70a7af04.js";import"./Editor.b6ccd99c.js";import"./isEqual.94420b7f.js";import"./_baseIsEqual.282df3d7.js";import"./_getTag.986c60ac.js";import"./_baseClone.e7c09cb6.js";import"./_arrayEach.6af5abac.js";import"./index.7fee6f1a.js";import"./Caret.7cc96622.js";import"./SchemaStore.37600365.js";import"./metabox.bfa77fbe.js";import"./cleanForSlug.f6cc01d0.js";import"./toString.5aade9aa.js";import"./contentHasAssets.e1428256.js";import"./_baseSet.fcc45203.js";import"./regex.8a6101c0.js";import"./GoogleSearchPreview.6c64667c.js";import"./Url.bb544e92.js";import"./HtmlTagsEditor.c1e2b62f.js";import"./UnfilteredHtml.66be5719.js";import"./Tooltip.78b61f71.js";import"./Slide.1db617da.js";import"./vue-router.fd2bb90e.js";import"./ProBadge.2e262a91.js";import"./Information.8cb16b63.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:k,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(x,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 ke=N($,[["render",I]]);export{ke as default};
