import{a as g,m as b}from"./vuex.esm-bundler.8589b2dd.js";import{A as f,T as A}from"./TitleDescription.9365c463.js";import{C as v}from"./Card.24f1a534.js";import{C as y}from"./Tabs.47b44ac0.js";import{_ as C,c as r,F as T,i as $,r as i,o as t,h as c,w as s,f as p,n as D,t as k,d as l,k as x,T as w}from"./_plugin-vue_export-helper.2d9794a3.js";import"./default-i18n.ab92175e.js";import"./_commonjsHelpers.f84db168.js";import"./WpTable.8adff4c1.js";import"./helpers.de7566d0.js";import"./RequiresUpdate.52f5acf2.js";import"./postContent.741ce73c.js";import"./index.02a5ed9a.js";import"./isArrayLikeObject.c492f682.js";import"./Caret.42a820e0.js";import"./cleanForSlug.1898a430.js";import"./constants.e9426d11.js";import"./html.14f2a8b9.js";import"./Index.1fd8fc42.js";import"./JsonValues.870a4901.js";import"./MaxCounts.12b45bab.js";import"./SaveChanges.bc66cd69.js";import"./RadioToggle.4c888ca1.js";import"./index.fd0fcee8.js";import"./ProBadge.bcf74c08.js";import"./RobotsMeta.61c93b1f.js";import"./Checkbox.b4e8b6fc.js";import"./Checkmark.c5326878.js";import"./Row.5e452de4.js";import"./SettingsRow.09a16661.js";import"./GoogleSearchPreview.6684da45.js";import"./HtmlTagsEditor.f7794300.js";import"./Editor.7fd59f57.js";import"./UnfilteredHtml.47ebc566.js";import"./Tooltip.ae0bcccb.js";import"./Slide.cd756e61.js";import"./TruSeoScore.76897846.js";import"./Information.a08d0ef0.js";const B={components:{Advanced:f,CoreCard:v,CoreMainTabs:y,TitleDescription:A},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:{...g(["options","dynamicOptions","settings"]),getArchives(){return this.archives.concat(this.$aioseo.postData.archives.map(e=>({label:`${e.label} Archives`,name:`${e.name}Archive`,icon:"dashicons-category",singular:e.singular,dynamic:!0})))}},methods:{...b(["changeTab"]),processChangeTab(e,o){this.internalDebounce||(this.internalDebounce=!0,this.changeTab({slug:`${e}Archives`,value:o}),setTimeout(()=>{this.internalDebounce=!1},50))},getOptions(e){return e.dynamic?this.dynamicOptions.searchAppearance.archives[e.name.replace("Archive","")]:this.options.searchAppearance.archives[e.name]}}},S={class:"aioseo-search-appearance-archives"};function O(e,o,L,P,m,n){const u=i("core-main-tabs"),h=i("core-card");return t(),r("div",S,[(t(!0),r(T,null,$(n.getArchives,(a,d)=>(t(),c(h,{key:d,slug:`${a.name}Archives`},{header:s(()=>[p("div",{class:D(["icon dashicons",`${a.icon||"dashicons-admin-post"}`])},null,2),p("div",null,k(a.label),1)]),tabs:s(()=>[l(u,{tabs:m.tabs,showSaveButton:!1,active:e.settings.internalTabs[`${a.name}Archives`],internal:"",onChanged:_=>n.processChangeTab(a.name,_)},null,8,["tabs","active","onChanged"])]),default:s(()=>[l(w,{name:"route-fade",mode:"out-in"},{default:s(()=>[(t(),c(x(e.settings.internalTabs[`${a.name}Archives`]),{object:a,separator:e.options.searchAppearance.global.separator,options:n.getOptions(a),type:"archives","show-bulk":!1,"no-meta-box":"","include-keywords":""},null,8,["object","separator","options"]))]),_:2},1024)]),_:2},1032,["slug"]))),128))])}const be=C(B,[["render",O]]);export{be as default};
