import{u as f,c as b,e as A}from"./links.DYfvsp_u.js";import{A as v,T as S}from"./TitleDescription.CN8S4UVL.js";import{C as y}from"./Card.D-184XDc.js";import{C}from"./Tabs.XG-5THDv.js";import{P as T}from"./PostTypes.Cef6XkQ_.js";import{x as i,c,F as D,K as x,o,l as p,m as s,a as l,H as $,t as k,C as m,v as P,T as B}from"./vue.esm-bundler.DqIKZLqK.js";import{_ as w}from"./_plugin-vue_export-helper.BN1snXvA.js";import"./default-i18n.Bd0Z306Z.js";import"./helpers.Ccl21t4W.js";import"./JsonValues.D25FTfEu.js";import"./MaxCounts.DHV7qSQX.js";import"./RadioToggle.olJdJ6Wy.js";import"./Caret.CE8P-qnG.js";import"./ProBadge.CjKJMApR.js";import"./RobotsMeta.RLs2O5Jw.js";import"./Checkbox.DUOJ_PLM.js";import"./Checkmark.CUxYD2Fh.js";import"./Row.DKhn_IWV.js";import"./SettingsRow.BjeXKLX-.js";import"./Editor.gRwsjI93.js";import"./index.sD-vStxq.js";import"./Tags.CKyymmAs.js";import"./postSlug.C0G28UTt.js";import"./metabox.DWiH9FAY.js";import"./cleanForSlug.mq09Rl93.js";import"./toString.C7L0MmPq.js";import"./_baseTrim.BYZhh0MR.js";import"./_stringToArray.DnK4tKcY.js";import"./deburr.CC-JFHJI.js";import"./get.25styALf.js";import"./_baseSet.CNpgKW96.js";import"./GoogleSearchPreview.BJKYSpUS.js";import"./constants.B6ynd7gz.js";import"./HtmlTagsEditor.LH79b9dN.js";import"./UnfilteredHtml.BWtmT_2l.js";import"./Tooltip.zaM0rDUW.js";import"./Slide.Qz9BWVTI.js";import"./TruSeoScore.TjofuHRQ.js";import"./Ellipse.ObmEcohO.js";import"./Information.DFP4LhAC.js";const O={setup(){return{optionsStore:f(),rootStore:b(),settingsStore:A()}},components:{Advanced:v,CoreCard:y,CoreMainTabs:C,TitleDescription:S},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,F,r,u,a){const h=i("core-main-tabs"),d=i("core-card");return o(),c("div",L,[(o(!0),c(D,null,x(a.getArchives,(t,_)=>(o(),p(d,{key:_,slug:`${t.name}Archives`},{header:s(()=>[l("div",{class:$(["icon dashicons",e.getPostIconClass(t.icon)])},null,2),l("div",null,k(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(B,{name:"route-fade",mode:"out-in"},{default:s(()=>[(o(),p(P(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=w(O,[["render",j]]);export{ye as default};
