import{a as f,u as b,e as v}from"./links.bbde6535.js";import{A,T as y}from"./TitleDescription.d7ade38b.js";import{C as S}from"./Card.3bd391bc.js";import{C}from"./Tabs.45282823.js";import{P as T}from"./PostTypes.e5795f0f.js";import{x as i,c,H as x,I as D,o,k as p,l as s,a as l,E as k,t as $,z as m,q as P,T as B}from"./vue.runtime.esm-bundler.308f2021.js";import{_ as w}from"./_plugin-vue_export-helper.5bcc150c.js";import"./default-i18n.3881921e.js";import"./isArrayLikeObject.965a2149.js";import"./JsonValues.870a4901.js";import"./MaxCounts.12b45bab.js";import"./RadioToggle.3df41deb.js";import"./index.fadde3df.js";import"./Caret.baea7fe0.js";import"./ProBadge.bf5a3f4e.js";import"./RobotsMeta.f21d983b.js";import"./Checkbox.30500119.js";import"./Checkmark.85e83e8c.js";import"./Row.16199427.js";import"./SettingsRow.42f6374c.js";import"./tags.8c7eead3.js";import"./Tags.55c98ce0.js";import"./postSlug.1266810a.js";import"./metabox.300d9f84.js";import"./cleanForSlug.b75b0ef4.js";import"./toString.1bb388e8.js";import"./_baseTrim.8725856f.js";import"./_stringToArray.4de3b1f3.js";import"./get.6473921f.js";import"./GoogleSearchPreview.d5453823.js";import"./HtmlTagsEditor.3f6db819.js";import"./Editor.678bc800.js";import"./UnfilteredHtml.825fcb93.js";import"./Tooltip.432f1167.js";import"./Slide.22dc72dc.js";import"./TruSeoScore.b474bf15.js";import"./Ellipse.bae3329f.js";import"./Information.5dd0922d.js";const O={setup(){return{optionsStore:f(),rootStore:b(),settingsStore:v()}},components:{Advanced:A,CoreCard:S,CoreMainTabs:C,TitleDescription:y},mixins:[T],data(){return{internalDebounce:null,tabs:[{slug:"title-description",name:this.$t.__("Title & Description",this.$td),access:"aioseo_search_appearance_settings",pro:!1},{slug:"advanced",name:this.$t.__("Advanced",this.$td),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]}}},L={class:"aioseo-search-appearance-archives"};function j(e,n,z,a,u,r){const h=i("core-main-tabs"),_=i("core-card");return o(),c("div",L,[(o(!0),c(x,null,D(r.getArchives,(t,d)=>(o(),p(_,{key:d,slug:`${t.name}Archives`},{header:s(()=>[l("div",{class:k(["icon dashicons",e.getPostIconClass(t.icon)])},null,2),l("div",null,$(t.label),1)]),tabs:s(()=>[m(h,{tabs:u.tabs,showSaveButton:!1,active:a.settingsStore.settings.internalTabs[`${t.name}Archives`],internal:"",onChanged:g=>r.processChangeTab(t.name,g)},null,8,["tabs","active","onChanged"])]),default:s(()=>[m(B,{name:"route-fade",mode:"out-in"},{default:s(()=>[(o(),p(P(a.settingsStore.settings.internalTabs[`${t.name}Archives`]),{object:t,separator:a.optionsStore.options.searchAppearance.global.separator,options:r.getOptions(t),type:"archives","show-bulk":!1,"no-meta-box":"","include-keywords":""},null,8,["object","separator","options"]))]),_:2},1024)]),_:2},1032,["slug"]))),128))])}const Ae=w(O,[["render",j]]);export{Ae as default};
