import{c as A,a as v,j as S}from"./index.ed1fc0db.js";import{u as y}from"./PostTypes.dafa8837.js";import{A as C,T}from"./TitleDescription.30d7b0ab.js";import{C as D}from"./Card.17b56f9a.js";import{C as x}from"./Tabs.fefb55da.js";import"./translations.d159963e.js";import{T as k}from"./runtime-dom.esm-bundler.f6259c83.js";import{_ as P}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as i}from"./default-i18n.20001971.js";import{c,F as B,af as w,a6 as p,o as s,a1 as m,a2 as a,a as l,ae as O,$,m as u,a5 as j}from"./runtime-core.esm-bundler.4f558f23.js";import"./helpers.2a6f0df7.js";import"./constants.fe8bda37.js";import"./JsonValues.a0694556.js";import"./RadioToggle.4b8823f8.js";import"./RobotsMeta.da772d1f.js";import"./Checkbox.b57a023c.js";import"./Checkmark.8c62b4d7.js";import"./Row.29b591ed.js";import"./SettingsRow.d3933378.js";import"./Editor.5d9775d6.js";import"./isEqual.78f19070.js";import"./_baseIsEqual.51c85fd4.js";import"./_getTag.325cf680.js";import"./_baseClone.48b8a4d3.js";import"./_arrayEach.6af5abac.js";import"./Input.d9e61fc6.js";import"./Index.504e4ac6.js";import"./Close.8fb798f7.js";import"./Pencil.b89246dd.js";import"./Trash.263ee9c7.js";import"./Caret.b694929e.js";import"./GoogleSearchPreview.9c280f08.js";import"./Url.5bd27f81.js";import"./HtmlTagsEditor.5a420477.js";import"./UnfilteredHtml.2722d3bc.js";import"./Tooltip.447e44bb.js";import"./Slide.3e3dec13.js";import"./vue-router.97a610ed.js";import"./Button.e237bb50.js";import"./ProBadge.e183057c.js";import"./Information.2e3d122e.js";const d="all-in-one-seo-pack",L={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: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,r){const _=p("core-main-tabs"),g=p("core-card");return s(),c("div",F,[(s(!0),c(B,null,w(r.getArchives,(t,f)=>(s(),m(g,{key:f,slug:`${t.name}Archives`,"card-id":`${t.name}Archives`},{header:a(()=>[l("div",{class:O(["icon dashicons",o.getPostIconClass(t.icon)])},null,2),l("div",null,$(t.label),1)]),tabs:a(()=>[u(_,{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(()=>[u(k,{name:"route-fade",mode:"out-in"},{default:a(()=>[(s(),m(j(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 De=P(L,[["render",I]]);export{De as default};
