import{c as A,u as v,m as S}from"./index.a13799ab.js";import{u as y}from"./PostTypes.dafa8837.js";import{A as C,T}from"./TitleDescription.fe6edb60.js";import{C as D}from"./Card.b4864217.js";import{C as k}from"./Tabs.4788ba43.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.a0b389be.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.67d94513.js";import"./Editor.cb52ad98.js";import"./isEqual.34cebf90.js";import"./_baseIsEqual.e5574158.js";import"./_getTag.69d3a807.js";import"./_baseClone.475f8e3d.js";import"./_arrayEach.6af5abac.js";import"./index.d63536bd.js";import"./Caret.7cc96622.js";import"./SchemaStore.93bb47b2.js";import"./metabox.e4ccf554.js";import"./cleanForSlug.cacc99d0.js";import"./toString.1e64e8a6.js";import"./contentHasAssets.e1428256.js";import"./_baseSet.ca702273.js";import"./regex.8a6101c0.js";import"./GoogleSearchPreview.ed1b5a5f.js";import"./Url.772412e1.js";import"./HtmlTagsEditor.795b77e2.js";import"./UnfilteredHtml.c5e8e521.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};
