import{b,u as f,e as v}from"./links.6d4c0bdb.js";import{A,T as y}from"./TitleDescription.fad211fb.js";import{C as S}from"./Card.9b0c1a15.js";import{C}from"./Tabs.2d98f126.js";import{r as i,c,F as D,h as T,o,b as p,w as s,a as l,n as x,t as $,d as m,D as k,j as w}from"./vue.runtime.esm-bundler.b39e1078.js";import{_ as B}from"./_plugin-vue_export-helper.b97bdf23.js";import"./default-i18n.3881921e.js";import"./isArrayLikeObject.10b615a9.js";import"./index.0eabb636.js";import"./Caret.164d8058.js";/* empty css                                            *//* empty css                                              */import"./constants.1758f66e.js";import"./JsonValues.870a4901.js";import"./MaxCounts.12b45bab.js";import"./TruSeoHighlighter.3c8290a7.js";import"./postContent.37ac0296.js";import"./cleanForSlug.a67f7e84.js";import"./_stringToArray.a4422725.js";import"./Ellipse.f3d45202.js";import"./toFinite.c2274946.js";/* empty css                                              */import"./RadioToggle.334ba6b1.js";import"./ProBadge.34da75c2.js";import"./RobotsMeta.5e9193c1.js";import"./Checkbox.17c05fc5.js";import"./Checkmark.e0bb6305.js";import"./Row.5242dafa.js";import"./SettingsRow.1adac8e2.js";import"./tags.8f5c2702.js";import"./Tags.993eb9a7.js";import"./GoogleSearchPreview.e8c93b1b.js";import"./HtmlTagsEditor.acf1755b.js";import"./Editor.34e7b5eb.js";import"./UnfilteredHtml.c2f2a37a.js";import"./Tooltip.6979830f.js";import"./Slide.cdf6c622.js";import"./TruSeoScore.29220195.js";import"./SaveChanges.64df9080.js";import"./Information.70c6532e.js";const O={setup(){return{optionsStore:b(),rootStore:f(),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]}}},j={class:"aioseo-search-appearance-archives"};function L(e,n,P,r,u,a){const h=i("core-main-tabs"),d=i("core-card");return o(),c("div",j,[(o(!0),c(D,null,T(a.getArchives,(t,_)=>(o(),p(d,{key:_,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:r.settingsStore.settings.internalTabs[`${t.name}Archives`],internal:"",onChanged:g=>a.processChangeTab(t.name,g)},null,8,["tabs","active","onChanged"])]),default:s(()=>[m(w,{name:"route-fade",mode:"out-in"},{default:s(()=>[(o(),p(k(r.settingsStore.settings.internalTabs[`${t.name}Archives`]),{object:t,separator:r.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 ye=B(O,[["render",L]]);export{ye as default};
