import{c as A,u as v,m as S}from"./index.21ff19c6.js";import{u as y}from"./PostTypes.dafa8837.js";import{A as C,T}from"./TitleDescription.cec0e550.js";import{C as D}from"./Card.ca14447d.js";import{C as x}from"./Tabs.646b9550.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 m,K as B,t as w,H as l,v as O,T as L}from"./runtime-dom.esm-bundler.c4caba60.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.fe8bda37.js";import"./JsonValues.3fcfec97.js";import"./RadioToggle.24417291.js";import"./RobotsMeta.d5b83aff.js";import"./Checkbox.475ec1e7.js";import"./Checkmark.34fb32e2.js";import"./Row.d49feaf0.js";import"./SettingsRow.e76e5dcb.js";import"./Editor.9bd1daf6.js";import"./isEqual.34cebf90.js";import"./_baseIsEqual.e5574158.js";import"./_getTag.69d3a807.js";import"./_baseClone.b312b692.js";import"./_arrayEach.6af5abac.js";import"./index.f3c7a985.js";import"./Caret.cc16468c.js";import"./SchemaStore.e1c60a5d.js";import"./metabox.c14c3439.js";import"./cleanForSlug.cacc99d0.js";import"./toString.1e64e8a6.js";import"./contentHasAssets.e1428256.js";import"./_baseSet.ca702273.js";import"./regex.8a6101c0.js";import"./GoogleSearchPreview.bb846430.js";import"./Url.58e6efcb.js";import"./HtmlTagsEditor.481c71d7.js";import"./UnfilteredHtml.765c4abc.js";import"./Tooltip.e12834fc.js";import"./Slide.9bb3b45e.js";import"./vue-router.8d7f8ad9.js";import"./ProBadge.6c04ecdd.js";import"./Information.efebd14c.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(()=>[m("div",{class:B(["icon dashicons",o.getPostIconClass(t.icon)])},null,2),m("div",null,w(t.label),1)]),tabs:r(()=>[l(_,{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(()=>[l(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 xe=N($,[["render",I]]);export{xe as default};
