import{c as A,u as v,k as S}from"./index.4fea5b8a.js";import{u as y}from"./PostTypes.dafa8837.js";import{A as C,T}from"./TitleDescription.38684eb7.js";import{C as D}from"./Card.9a64d2e2.js";import{C as k}from"./Tabs.4288f191.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.114e9c35.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.683d2097.js";import"./isEqual.5e2458d5.js";import"./_baseIsEqual.6ad153a3.js";import"./_getTag.423682f1.js";import"./_baseClone.8bb70b4f.js";import"./_arrayEach.6af5abac.js";import"./index.7fee6f1a.js";import"./Caret.7cc96622.js";import"./helpers.da4c5c22.js";import"./metabox.5993e7e8.js";import"./cleanForSlug.2f987c7a.js";import"./toString.bbd66337.js";import"./contentHasAssets.e1428256.js";import"./_baseSet.a1a8944e.js";import"./regex.8a6101c0.js";import"./GoogleSearchPreview.5a163f1c.js";import"./Url.41ca37be.js";import"./HtmlTagsEditor.3190787b.js";import"./UnfilteredHtml.5963c49b.js";import"./Tooltip.70b51a50.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};
