import{a as f,u as b,e as A}from"./links.C572zDFG.js";import{A as v,T as S}from"./TitleDescription.CHFIjZJO.js";import{C as y}from"./Card.CuS1kKeW.js";import{C}from"./Tabs.C-PQxwBC.js";import{P as T}from"./PostTypes.Cef6XkQ_.js";import{_ as D,T as x}from"./_plugin-vue_export-helper.BLXtEB-G.js";import{v as i,c,F as k,ac as $,o,k as p,l as r,a as m,aa as B,t as P,B as l,q as w}from"./runtime-core.esm-bundler.DMBo7TXk.js";import"./default-i18n.Bd0Z306Z.js";import"./helpers.D5tYIqKS.js";import"./JsonValues.D25FTfEu.js";import"./MaxCounts.DHV7qSQX.js";import"./RadioToggle.CODR8har.js";import"./Caret.CGwYaMo_.js";import"./ProBadge.Bm930amZ.js";import"./RobotsMeta.PSz00Srx.js";import"./Checkbox.CxE2HV-P.js";import"./Checkmark.DL3UTTgg.js";import"./Row.CHjKxnPP.js";import"./SettingsRow.BzmNmU2T.js";import"./Editor.DxKrKvK1.js";import"./isEqual.6YJSJDqn.js";import"./_baseIsEqual.8qmZqLuw.js";import"./_getTag.Dxs-K0Yj.js";import"./_baseClone.Zn5yUk9p.js";import"./_arrayEach.Fgt6pfHj.js";import"./index.CdwEuUIl.js";import"./Tags.D1_s1xAA.js";import"./postSlug.CtHxoMEa.js";import"./metabox.CE2B6Dot.js";import"./cleanForSlug.DjsajR64.js";import"./toString.CkyAieyd.js";import"./_baseTrim.BYZhh0MR.js";import"./_stringToArray.DnK4tKcY.js";import"./_baseSet.SHpzr1A5.js";import"./GoogleSearchPreview.DQIVXQEq.js";import"./constants.B6ynd7gz.js";import"./HtmlTagsEditor.BQtOQ8ni.js";import"./UnfilteredHtml.C9zHp9e0.js";import"./Tooltip.CRFjFnpF.js";import"./Slide.D2pWF0rN.js";import"./TruSeoScore.TjofuHRQ.js";import"./Ellipse.CAgnKuMU.js";import"./Information.JAmX9TGg.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,s,u,a){const h=i("core-main-tabs"),d=i("core-card");return o(),c("div",L,[(o(!0),c(k,null,$(a.getArchives,(t,_)=>(o(),p(d,{key:_,slug:`${t.name}Archives`},{header:r(()=>[m("div",{class:B(["icon dashicons",e.getPostIconClass(t.icon)])},null,2),m("div",null,P(t.label),1)]),tabs:r(()=>[l(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(()=>[l(x,{name:"route-fade",mode:"out-in"},{default:r(()=>[(o(),p(w(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 De=D(O,[["render",j]]);export{De as default};
