import{b as A,u as v,k as S}from"./index.62477ee8.js";import{u as y}from"./PostTypes.dafa8837.js";import{A as C,T}from"./TitleDescription.34a39984.js";import{C as D}from"./Card.da4d4921.js";import{C as k}from"./Tabs.7a016195.js";import"./translations.d159963e.js";import{c as i,F as x,J as P,v as c,o as r,k as p,l as s,a as m,G as B,t as w,C as l,q as O,T as L}from"./runtime-dom.esm-bundler.5c3c7d72.js";import{_ as $}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as u}from"./default-i18n.20001971.js";import"./helpers.c7282833.js";import"./constants.24c44c43.js";import"./JsonValues.3fcfec97.js";import"./RadioToggle.333e7750.js";import"./RobotsMeta.12cd00ab.js";import"./Checkbox.6db0b9ed.js";import"./Checkmark.e40641dd.js";import"./Row.df38a5f6.js";import"./SettingsRow.9f92e269.js";import"./Editor.34061631.js";import"./isEqual.4981d166.js";import"./_baseIsEqual.44a599a3.js";import"./_getTag.805e37e1.js";import"./_baseClone.04585615.js";import"./_arrayEach.6af5abac.js";import"./index.8c70464a.js";import"./Caret.d9cc70ba.js";import"./Tags.103f5786.js";import"./helpers.9b039fd1.js";import"./metabox.8dab9766.js";import"./cleanForSlug.c4a9e111.js";import"./toString.a2dfb892.js";import"./_baseTrim.11b89ad9.js";import"./_stringToArray.f9ddb970.js";import"./_baseSet.ab668497.js";import"./regex.8a6101c0.js";import"./GoogleSearchPreview.7b5bf30a.js";import"./Url.3a754ef4.js";import"./HtmlTagsEditor.744f9f96.js";import"./UnfilteredHtml.8cfccf1f.js";import"./Tooltip.73441134.js";import"./Slide.39c07c03.js";import"./vue-router.2f910c93.js";import"./ProBadge.751e0b85.js";import"./Information.13e8cece.js";const d="all-in-one-seo-pack",j={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]}}},F={class:"aioseo-search-appearance-archives"};function I(e,n,N,o,h,a){const _=c("core-main-tabs"),g=c("core-card");return r(),i("div",F,[(r(!0),i(x,null,P(a.getArchives,(t,f)=>(r(),p(g,{key:f,slug:`${t.name}Archives`,"card-id":`${t.name}Archives`},{header:s(()=>[m("div",{class:B(["icon dashicons",o.getPostIconClass(t.icon)])},null,2),m("div",null,w(t.label),1)]),tabs:s(()=>[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:s(()=>[l(L,{name:"route-fade",mode:"out-in"},{default:s(()=>[(r(),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 Pe=$(j,[["render",I]]);export{Pe as default};
