import{b as A,u as v,j as S}from"./index.66ecdd60.js";import{u as y}from"./PostTypes.dafa8837.js";import{A as C,T}from"./TitleDescription.d8d2a4f3.js";import{C as D}from"./Card.a31a0c5f.js";import{C as k}from"./Tabs.31818911.js";import"./translations.d159963e.js";import{c as i,F as x,J as P,v as c,o as r,k as p,l as s,a as l,G as B,t as w,C as m,q as O,T as j}from"./runtime-dom.esm-bundler.5c3c7d72.js";import{_ as L}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as u}from"./default-i18n.20001971.js";import"./helpers.53868b98.js";import"./constants.a8a14dc3.js";import"./JsonValues.3fcfec97.js";import"./RadioToggle.333e7750.js";import"./RobotsMeta.12cd00ab.js";import"./Checkbox.6db0b9ed.js";import"./Checkmark.e40641dd.js";import"./Row.df38a5f6.js";import"./SettingsRow.9f92e269.js";import"./Editor.2ca7f2e1.js";import"./isEqual.96d3394c.js";import"./_baseIsEqual.aba7ca44.js";import"./_getTag.1e50d0c4.js";import"./_baseClone.369b15e9.js";import"./_arrayEach.6af5abac.js";import"./index.d0745c42.js";import"./Caret.a21d4ca8.js";import"./helpers.7350cd15.js";import"./metabox.ee51de75.js";import"./cleanForSlug.97664b33.js";import"./toString.f0787db8.js";import"./_baseTrim.11b89ad9.js";import"./_stringToArray.f9ddb970.js";import"./_baseSet.9f9da1bd.js";import"./regex.8a6101c0.js";import"./GoogleSearchPreview.921a7163.js";import"./Url.24529655.js";import"./HtmlTagsEditor.736c95a6.js";import"./UnfilteredHtml.c28a5349.js";import"./Tooltip.73441134.js";import"./Slide.39c07c03.js";import"./vue-router.2f910c93.js";import"./ProBadge.751e0b85.js";import"./Information.13e8cece.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:k,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]}}},F={class:"aioseo-search-appearance-archives"};function I(e,n,N,o,h,a){const _=c("core-main-tabs"),g=c("core-card");return r(),i("div",F,[(r(!0),i(x,null,P(a.getArchives,(t,f)=>(r(),p(g,{key:f,slug:`${t.name}Archives`,"card-id":`${t.name}Archives`},{header:s(()=>[l("div",{class:B(["icon dashicons",o.getPostIconClass(t.icon)])},null,2),l("div",null,w(t.label),1)]),tabs:s(()=>[m(_,{tabs:h.tabs,showSaveButton:!1,active:o.settingsStore.settings.internalTabs[`${t.name}Archives`],internal:"",onChanged:b=>a.processChangeTab(t.name,b)},null,8,["tabs","active","onChanged"])]),default:s(()=>[m(j,{name:"route-fade",mode:"out-in"},{default:s(()=>[(r(),p(O(o.settingsStore.settings.internalTabs[`${t.name}Archives`]),{object:t,separator:o.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","card-id"]))),128))])}const xe=L($,[["render",I]]);export{xe as default};
