import{e as b,u as f,d as v}from"./links.23796d97.js";import{A,T as y}from"./TitleDescription.6798b858.js";import{C as S}from"./Card.79fe964d.js";import{C}from"./Tabs.8ec856a5.js";import{r as i,c,F as D,h as T,o,b as p,w as r,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.22a096cb.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";/* 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.1952ae10.js";import"./Tags.49706f1a.js";import"./postContent.dbf3451c.js";import"./cleanForSlug.383040f4.js";import"./toString.0891eb3e.js";import"./_baseTrim.8725856f.js";import"./_stringToArray.4de3b1f3.js";import"./html.e224f763.js";import"./get.ebf1fee6.js";import"./GoogleSearchPreview.104cd74f.js";import"./HtmlTagsEditor.b31d68d2.js";import"./Editor.5c187525.js";import"./UnfilteredHtml.2e4271be.js";import"./Tooltip.6979830f.js";import"./Slide.cdf6c622.js";import"./TruSeoScore.29220195.js";import"./Ellipse.1be120e0.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,s,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:r(()=>[l("div",{class:x(["icon dashicons",`${t.icon||"dashicons-admin-post"}`])},null,2),l("div",null,$(t.label),1)]),tabs:r(()=>[m(h,{tabs:u.tabs,showSaveButton:!1,active:s.settingsStore.settings.internalTabs[`${t.name}Archives`],internal:"",onChanged:g=>a.processChangeTab(t.name,g)},null,8,["tabs","active","onChanged"])]),default:r(()=>[m(w,{name:"route-fade",mode:"out-in"},{default:r(()=>[(o(),p(k(s.settingsStore.settings.internalTabs[`${t.name}Archives`]),{object:t,separator:s.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 Se=B(O,[["render",L]]);export{Se as default};
