import{u as f,c as b,j as v}from"./links.574d4fd4.js";import{A,T as y}from"./TitleDescription.b8af6276.js";import{C as S}from"./Card.e9a25031.js";import{C}from"./Tabs.d491c719.js";import{x as i,c,F as T,L as D,o,k as p,l as s,a as l,I as x,t as $,C as m,q as k,T as B}from"./vue.runtime.esm-bundler.78401fbe.js";import{_ as w}from"./_plugin-vue_export-helper.58be9317.js";import"./default-i18n.3881921e.js";import"./isArrayLikeObject.59b68b05.js";import"./JsonValues.870a4901.js";import"./MaxCounts.12b45bab.js";import"./RadioToggle.1b934958.js";import"./index.b1bbc091.js";import"./Caret.89e18339.js";import"./ProBadge.4381f91b.js";import"./RobotsMeta.a83748c0.js";import"./Checkbox.66c1e532.js";import"./Checkmark.68b20c77.js";import"./Row.e7795c3e.js";import"./SettingsRow.3c16cab0.js";import"./tags.58b8cbee.js";import"./Tags.075f39d5.js";import"./postSlug.23dfcba8.js";import"./metabox.5b4ee3cf.js";import"./cleanForSlug.b8be1cc7.js";import"./toString.03aff7e6.js";import"./_baseTrim.8725856f.js";import"./_stringToArray.4de3b1f3.js";import"./deburr.f9ffc34a.js";import"./get.9f392d3b.js";import"./GoogleSearchPreview.871138e6.js";import"./HtmlTagsEditor.884e425c.js";import"./Editor.df2359d9.js";import"./UnfilteredHtml.6760ba7c.js";import"./Tooltip.72f8a160.js";import"./Slide.6b2090d0.js";import"./TruSeoScore.b474bf15.js";import"./Ellipse.c78f1911.js";import"./Information.8541dc5f.js";const L={setup(){return{optionsStore:f(),rootStore:b(),settingsStore:v()}},components:{Advanced:A,CoreCard:S,CoreMainTabs:C,TitleDescription:y},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]}}},O={class:"aioseo-search-appearance-archives"};function j(e,n,P,a,u,r){const h=i("core-main-tabs"),_=i("core-card");return o(),c("div",O,[(o(!0),c(T,null,D(r.getArchives,(t,d)=>(o(),p(_,{key:d,slug:`${t.name}Archives`},{header:s(()=>[l("div",{class:x(["icon dashicons",`${t.icon||"dashicons-admin-post"}`])},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(k(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 ve=w(L,[["render",j]]);export{ve as default};
