import{e as A,u as v,m as S}from"./index.bd66e758.js";import{u as y}from"./PostTypes.dafa8837.js";import{A as C,T}from"./TitleDescription.3d2632bf.js";import{C as D}from"./Card.88a70537.js";import{C as x}from"./Tabs.38c9ba5c.js";import"./translations.d159963e.js";import{c as i,G as k,N as P,x as c,o as s,l as p,m as a,a as l,K as B,t as w,H as m,v as O,T as L}from"./runtime-dom.esm-bundler.5d5e6b71.js";import{_ as N}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as u}from"./default-i18n.20001971.js";import"./helpers.bf0d86e6.js";import"./constants.fe8bda37.js";import"./JsonValues.3fcfec97.js";import"./RadioToggle.51430965.js";import"./RobotsMeta.950709bd.js";import"./Checkbox.28e8400d.js";import"./Checkmark.43d7168a.js";import"./Row.aff98451.js";import"./SettingsRow.8aa99257.js";import"./Editor.81f3911b.js";import"./isEqual.5cc76a57.js";import"./_baseIsEqual.6ce4f4be.js";import"./_getTag.591de94f.js";import"./_baseClone.1a97e0e2.js";import"./_arrayEach.6af5abac.js";import"./index.eb92a2a8.js";import"./Caret.382b7591.js";import"./GoogleSearchPreview.d0cab464.js";import"./Url.47c8a1c7.js";import"./HtmlTagsEditor.e6c04a8d.js";import"./UnfilteredHtml.15c70aa8.js";import"./Tooltip.418c677c.js";import"./Slide.a525748d.js";import"./vue-router.ad00dfec.js";import"./ProBadge.aeac9858.js";import"./Information.3b2ed489.js";const d="all-in-one-seo-pack",$={setup(){const{getPostIconClass:e}=y();return{getPostIconClass:e,optionsStore:A(),rootStore:v(),settingsStore:S()}},components:{Advanced:C,CoreCard:D,CoreMainTabs:x,TitleDescription:T},data(){return{internalDebounce:null,tabs:[{slug:"title-description",name:u("Title & Description",d),access:"aioseo_search_appearance_settings",pro:!1},{slug:"advanced",name:u("Advanced",d),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:(e==null?void 0:e.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]}}},j={class:"aioseo-search-appearance-archives"};function I(e,n,R,o,h,r){const _=c("core-main-tabs"),g=c("core-card");return s(),i("div",j,[(s(!0),i(k,null,P(r.getArchives,(t,f)=>(s(),p(g,{key:f,slug:`${t.name}Archives`,"card-id":`${t.name}Archives`},{header:a(()=>[l("div",{class:B(["icon dashicons",o.getPostIconClass(t.icon)])},null,2),l("div",null,w(t.label),1)]),tabs:a(()=>[m(_,{tabs:h.tabs,showSaveButton:!1,active:o.settingsStore.settings.internalTabs[`${t.name}Archives`],internal:"",onChanged:b=>r.processChangeTab(t.name,b)},null,8,["tabs","active","onChanged"])]),default:a(()=>[m(L,{name:"route-fade",mode:"out-in"},{default:a(()=>[(s(),p(O(o.settingsStore.settings.internalTabs[`${t.name}Archives`]),{object:t,separator:o.optionsStore.options.searchAppearance.global.separator,options:r.getOptions(t),type:"archives","show-bulk":!1,"no-meta-box":"","include-keywords":""},null,8,["object","separator","options"]))]),_:2},1024)]),_:2},1032,["slug","card-id"]))),128))])}const Ae=N($,[["render",I]]);export{Ae as default};
