import{a as f,u as b,e as v}from"./links.7c59a081.js";import{A,T as y}from"./TitleDescription.ac53af9f.js";import{C as S}from"./Card.d20cb042.js";import{C}from"./Tabs.0f534f75.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.4a881941.js";import{_ as w}from"./_plugin-vue_export-helper.abeb2ae0.js";import"./default-i18n.3881921e.js";import"./isArrayLikeObject.ab8f4241.js";import"./JsonValues.870a4901.js";import"./MaxCounts.12b45bab.js";import"./RadioToggle.91b7eae7.js";import"./index.43a192b7.js";import"./Caret.02d7c74a.js";import"./ProBadge.07a48e27.js";import"./RobotsMeta.ce9c41a7.js";import"./Checkbox.257a03d8.js";import"./Checkmark.aaedf5f6.js";import"./Row.dbbe567c.js";import"./SettingsRow.f729cdc5.js";import"./tags.18c78302.js";import"./Tags.78b483b3.js";import"./postSlug.12e3366c.js";import"./metabox.09bcc5b8.js";import"./cleanForSlug.cc6d9d47.js";import"./toString.7b877a36.js";import"./_baseTrim.8725856f.js";import"./_stringToArray.4de3b1f3.js";import"./get.038a6445.js";import"./GoogleSearchPreview.5ba90a09.js";import"./HtmlTagsEditor.af161e83.js";import"./Editor.6c1ec6b5.js";import"./UnfilteredHtml.ab883765.js";import"./Tooltip.bcf420d9.js";import"./Slide.7ee1d0f1.js";import"./TruSeoScore.b474bf15.js";import"./Ellipse.f3da1d66.js";import"./Information.8e84b099.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 P(e,n,j,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 be=w(L,[["render",P]]);export{be as default};
