import{e as A,a as v,k as S}from"./index.4b887428.js";import{u as y}from"./PostTypes.4e006733.js";import{A as C,T}from"./TitleDescription.cdc340c2.js";import{C as D}from"./Card.597c7ae2.js";import{C as k}from"./Tabs.13bb57b9.js";import"./translations.e71e2202.js";import{T as x}from"./runtime-dom.esm-bundler.dc49ee3e.js";import{_ as P}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as i}from"./default-i18n.65d58dd6.js";import{c,F as B,af as w,a6 as p,o as s,a1 as l,a2 as r,_ as m,ae as O,$,l as u,a5 as L}from"./runtime-core.esm-bundler.ce5add0b.js";import"./helpers.633a054c.js";import"./constants.bc5863fe.js";import"./JsonValues.a0694556.js";import"./RadioToggle.18655b2f.js";import"./RobotsMeta.759bfeb1.js";import"./Checkbox.6a913600.js";import"./Checkmark.762f711e.js";import"./Row.bb9acf3f.js";import"./SettingsRow.35256805.js";import"./Editor.179f32d8.js";import"./isEqual.59768dc1.js";import"./_baseIsEqual.c0ca09f7.js";import"./_getTag.6fb74b2e.js";import"./_baseClone.e7cb118a.js";import"./_arrayEach.6af5abac.js";import"./Input.f04bee4d.js";import"./Index.2a391835.js";import"./Close.ccd53ef3.js";import"./Pencil.d82df6a1.js";import"./Trash.87a7d946.js";import"./Caret.cd869c5d.js";import"./GoogleSearchPreview.ea4e7828.js";import"./Url.9f0afcb2.js";import"./HtmlTagsEditor.a6c3be1f.js";import"./UnfilteredHtml.ac78585e.js";import"./Tooltip.23c7170d.js";import"./Slide.3003ef51.js";import"./vue-router.41e9d860.js";import"./Button.9a301412.js";import"./ProBadge.e6ec5f9a.js";import"./Information.98ebb530.js";const d="all-in-one-seo-pack",j={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:i("Title & Description",d),access:"aioseo_search_appearance_settings",pro:!1},{slug:"advanced",name:i("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 _=p("core-main-tabs"),g=p("core-card");return s(),c("div",F,[(s(!0),c(B,null,w(a.getArchives,(t,f)=>(s(),l(g,{key:f,slug:`${t.name}Archives`,"card-id":`${t.name}Archives`},{header:r(()=>[m("div",{class:O(["icon dashicons",o.getPostIconClass(t.icon)])},null,2),m("div",null,$(t.label),1)]),tabs:r(()=>[u(_,{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:r(()=>[u(x,{name:"route-fade",mode:"out-in"},{default:r(()=>[(s(),l(L(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 De=P(j,[["render",I]]);export{De as default};
