import{a as A,u as v,g as S}from"./index.ByF2aI-G.js";import{u as y}from"./PostTypes.DQr7JgPS.js";import{A as C,T}from"./TitleDescription.BRSz3uWv.js";import{C as D}from"./Card.Bqq4cvaT.js";import{C as k}from"./Tabs.BGx54iMB.js";import"./translations.Ur07Kmot.js";import{v as i,c,F as x,J as P,o as r,k as p,l as s,a as l,G as B,t as w,C as m,q as O,T as L}from"./runtime-dom.esm-bundler.DKw-RQqs.js";import{_ as j}from"./_plugin-vue_export-helper.BN1snXvA.js";import{_ as u}from"./default-i18n.DvLqo3S3.js";import"./helpers.yjC6K_2A.js";import"./constants.DfsCWbZk.js";import"./JsonValues.CjR5TkFn.js";import"./RadioToggle.Cv8la4G_.js";import"./RobotsMeta.C2jPAXOo.js";import"./Checkbox.BAIONgTE.js";import"./Checkmark.BedAg8BV.js";import"./Row.D0941SYu.js";import"./SettingsRow.Ch1FEDlp.js";import"./Editor.Bq1LihFR.js";import"./isEqual.DPyFnjxk.js";import"./_baseIsEqual.BLPD4oRg.js";import"./_getTag.KnvRqur7.js";import"./_baseClone.B3PqkIxk.js";import"./_arrayEach.Fgt6pfHj.js";import"./index.Olu2afa7.js";import"./Caret.DMa7g0j7.js";import"./Tags.CWcNgqQw.js";import"./postSlug.Bl0Z6T8y.js";import"./metabox.SRNlGbGk.js";import"./cleanForSlug.DaL6KzBn.js";import"./toString.Dc7QMRQR.js";import"./_baseTrim.BYZhh0MR.js";import"./_stringToArray.DnK4tKcY.js";import"./_baseSet.Bbqt6CgN.js";import"./GoogleSearchPreview.CgoMblv2.js";import"./HtmlTagsEditor.CJg9npyw.js";import"./UnfilteredHtml.CeQlPW48.js";import"./Tooltip.B0brI66q.js";import"./Slide.CdVEnD7S.js";import"./vue-router.CGjDmB5N.js";import"./TruSeoScore.D1tEO-2v.js";import"./ProBadge.BJ3spTo5.js";import"./Information.CzCa0jo7.js";import"./Ellipse.Bgc7-2f7.js";const h="all-in-one-seo-pack",F={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",h),access:"aioseo_search_appearance_settings",pro:!1},{slug:"advanced",name:u("Advanced",h),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:"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]}}},I={class:"aioseo-search-appearance-archives"};function N(e,n,R,o,d,a){const g=i("core-main-tabs"),_=i("core-card");return r(),c("div",I,[(r(!0),c(x,null,P(a.getArchives,(t,f)=>(r(),p(_,{key:f,slug:`${t.name}Archives`},{header:s(()=>[l("div",{class:B(["icon dashicons",o.getPostIconClass(t.icon)])},null,2),l("div",null,w(t.label),1)]),tabs:s(()=>[m(g,{tabs:d.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(()=>[m(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"]))),128))])}const Pe=j(F,[["render",N]]);export{Pe as default};
