import{a as f,u as b,e as A}from"./links.rndHrQjc.js";import{A as v,T as S}from"./TitleDescription.DKD7xm71.js";import{C as y}from"./Card.DD8bdJAp.js";import{C}from"./Tabs.DAwM7Jx9.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.CWQFYt9y.js";import{_ as w}from"./_plugin-vue_export-helper.BN1snXvA.js";import"./default-i18n.Bd0Z306Z.js";import"./helpers.BYd0a-KO.js";import"./JsonValues.D25FTfEu.js";import"./MaxCounts.DHV7qSQX.js";import"./RadioToggle.BLVmJ7Zx.js";import"./Caret.iRBf3wcH.js";import"./ProBadge.WwPkDor4.js";import"./RobotsMeta.DaT5Emc8.js";import"./Checkbox.D2dfpbIi.js";import"./Checkmark.pCOnqh_g.js";import"./Row.CzuhYwfs.js";import"./SettingsRow.DQldd-1Z.js";import"./Editor.XgOGwjMW.js";import"./index.BQgiQQKQ.js";import"./Tags.CClbM7yB.js";import"./postSlug.DxjFndk_.js";import"./metabox.CX8rIsNV.js";import"./cleanForSlug.b1Tz1r1N.js";import"./toString.CPCYjjV1.js";import"./_baseTrim.BYZhh0MR.js";import"./_stringToArray.DnK4tKcY.js";import"./get.DIB3XzO8.js";import"./_baseSet.C_DjH_qS.js";import"./GoogleSearchPreview.DeMLqAU8.js";import"./constants.DpuIWwJ9.js";import"./HtmlTagsEditor.DwFvarWx.js";import"./UnfilteredHtml.DGcofKZV.js";import"./Tooltip.Jp05nfCy.js";import"./Slide.CRIn0kdn.js";import"./TruSeoScore.TjofuHRQ.js";import"./Ellipse.BbMe4Rtx.js";import"./Information.CESrgQJV.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 Se=w(O,[["render",j]]);export{Se as default};
