import{m as g,b}from"./vuex.esm-bundler.55d3d5b3.js";import{A as f,T as A}from"./TitleDescription.8ae9e95f.js";import{C as v}from"./Card.0a3b54f8.js";import{C as y}from"./Tabs.5bdc95fd.js";import{_ as C,r,c as i,F as T,G as $,o as t,b as c,w as s,a as p,B as D,t as x,d as l,x as k,C as B}from"./_plugin-vue_export-helper.a81c6319.js";import"./default-i18n.0e8bc810.js";import"./_commonjsHelpers.f84db168.js";import"./helpers.51e5fd9c.js";import"./WpTable.3e09f0c1.js";import"./index.fae5bbc8.js";import"./Caret.19bf2275.js";import"./Index.3662e61b.js";import"./Row.d42459be.js";import"./RequiresUpdate.52f5acf2.js";import"./postContent.f08c6962.js";import"./index.4dbecc01.js";import"./cleanForSlug.d16f1e3a.js";import"./constants.e56e1512.js";import"./html.a669733f.js";import"./Index.048705a6.js";import"./JsonValues.870a4901.js";import"./MaxCounts.12b45bab.js";import"./SaveChanges.c85e9ba4.js";import"./RadioToggle.cfd7da6d.js";import"./ProBadge.c7f4f378.js";import"./RobotsMeta.b9d9406e.js";import"./Checkbox.ec732dfe.js";import"./Checkmark.36fbf255.js";import"./SettingsRow.bc3a4ca9.js";import"./GoogleSearchPreview.170d666f.js";import"./HtmlTagsEditor.5ebef317.js";import"./Editor.5cedc7bc.js";import"./UnfilteredHtml.ceff4936.js";import"./Tooltip.c4cc47a2.js";import"./Slide.4392623f.js";import"./TruSeoScore.1eab6bb1.js";import"./Information.050096cc.js";const w={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=r("core-main-tabs"),h=r("core-card");return t(),i("div",S,[(t(!0),i(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,x(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(B,{name:"route-fade",mode:"out-in"},{default:s(()=>[(t(),c(k(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(w,[["render",O]]);export{be as default};
