import{u as A,a as v,n as y}from"./index.684c656d.js";import{u as S}from"./PostTypes.dafa8837.js";import{A as C,T}from"./TitleDescription.f82f8747.js";import{C as D}from"./Card.bf13def3.js";import{C as x}from"./Tabs.e0ecfe82.js";import"./translations.d159963e.js";import{d as i,G as k,N as P,y as c,o as r,c as p,w as s,e as m,K as w,t as B,H as l,r as O,T as L}from"./runtime-dom.esm-bundler.d8b05b6d.js";import{_ as N}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as u}from"./default-i18n.20001971.js";import"./helpers.2304d5ee.js";import"./constants.ee441da2.js";import"./JsonValues.3fcfec97.js";import"./RadioToggle.55ee1e6d.js";import"./RobotsMeta.7540e24e.js";import"./Checkbox.a4e60e91.js";import"./Checkmark.39dd9d2f.js";import"./Row.755a571f.js";import"./SettingsRow.892a6d38.js";import"./tags.4b35a532.js";import"./helpers.aece81b9.js";import"./Caret.2e43336b.js";import"./metabox.9787fdb7.js";import"./cleanForSlug.fc011207.js";import"./deburr.ef08c7b4.js";import"./toString.ddc58e67.js";import"./html.7cb59739.js";import"./contentHasAssets.e1428256.js";import"./_baseSet.a2dfaed5.js";import"./regex.8a6101c0.js";import"./GoogleSearchPreview.110cab87.js";import"./Url.ee93195e.js";import"./HtmlTagsEditor.2e99bf40.js";import"./Editor.2e93bf84.js";import"./isEqual.4ddce6d4.js";import"./_baseIsEqual.fbe0f200.js";import"./_getTag.f48446e8.js";import"./_baseClone.72ffba34.js";import"./_arrayEach.6af5abac.js";import"./_getAllKeysIn.4f27d7aa.js";import"./index.62c20ef8.js";import"./UnfilteredHtml.66a6b8ca.js";import"./Tooltip.f699c54b.js";import"./Slide.53cdbff7.js";import"./vue-router.21860d65.js";import"./ProBadge.e29f5c16.js";import"./Information.5f425594.js";const d="all-in-one-seo-pack",$={setup(){const{getPostIconClass:e}=S();return{getPostIconClass:e,optionsStore:A(),rootStore:v(),settingsStore:y()}},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,a){const _=c("core-main-tabs"),g=c("core-card");return r(),i("div",j,[(r(!0),i(k,null,P(a.getArchives,(t,f)=>(r(),p(g,{key:f,slug:`${t.name}Archives`,"card-id":`${t.name}Archives`},{header:s(()=>[m("div",{class:w(["icon dashicons",o.getPostIconClass(t.icon)])},null,2),m("div",null,B(t.label),1)]),tabs:s(()=>[l(_,{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(()=>[l(L,{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 Be=N($,[["render",I]]);export{Be as default};
