import{a as f,u as b,e as A}from"./links.Byq_3x2e.js";import{A as v,T as S}from"./TitleDescription.Gi4Dar4g.js";import{C as y}from"./Card.D52fee8h.js";import{C}from"./Tabs.BKGFcDsj.js";import{P as T}from"./PostTypes.Cef6XkQ_.js";import{v as i,c,F as D,J as x,o,k as p,l as r,a as m,G as k,t as $,B as l,q as B,T as P}from"./runtime-dom.esm-bundler.tPRhSV4q.js";import{_ as w}from"./_plugin-vue_export-helper.BN1snXvA.js";import"./default-i18n.DXRQgkn2.js";import"./helpers.CXsRrhc8.js";import"./JsonValues.D25FTfEu.js";import"./MaxCounts.DHV7qSQX.js";import"./RadioToggle.CaTwJt--.js";import"./Caret.Ke5gylGO.js";import"./ProBadge.CVd2ImKm.js";import"./RobotsMeta.DNT5yqf9.js";import"./Checkbox.CmdF-nFt.js";import"./Checkmark.DOG99yeO.js";import"./Row.DRnp1mVs.js";import"./SettingsRow.BwYvQArk.js";import"./Editor.CI-FZyFJ.js";import"./isEqual.DkU1ezAe.js";import"./_baseIsEqual.MNbeg0L2.js";import"./_getTag.BWQxgJie.js";import"./_baseClone.Cq_cqRLS.js";import"./_arrayEach.Fgt6pfHj.js";import"./index.Dbgw3oZ8.js";import"./Tags.DAtAys4G.js";import"./postSlug.D7DEP4-b.js";import"./metabox.BEL0zdkw.js";import"./cleanForSlug.BVGRQ_59.js";import"./toString.zLSwYOtv.js";import"./_baseTrim.BYZhh0MR.js";import"./_stringToArray.DnK4tKcY.js";import"./_baseSet.rYV3oc6X.js";import"./GoogleSearchPreview.buqqHJAY.js";import"./constants.CPpKID74.js";import"./HtmlTagsEditor.DEcLTU4G.js";import"./UnfilteredHtml.CxOkHAWj.js";import"./Tooltip.DhkkBQWW.js";import"./Slide.fjAuzpC8.js";import"./TruSeoScore.DmC22Awy.js";import"./Ellipse.CMQFf36o.js";import"./Information.Bv8uKEyF.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(D,null,x(a.getArchives,(t,_)=>(o(),p(d,{key:_,slug:`${t.name}Archives`},{header:r(()=>[m("div",{class:k(["icon dashicons",e.getPostIconClass(t.icon)])},null,2),m("div",null,$(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(P,{name:"route-fade",mode:"out-in"},{default:r(()=>[(o(),p(B(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=w(O,[["render",j]]);export{De as default};
