import{c as A,a as v,j as S}from"./index.e0fdfdc6.js";import{u as y}from"./PostTypes.762fce6d.js";import{A as C,T}from"./TitleDescription.fe9d719c.js";import{C as D}from"./Card.a415c187.js";import{C as x}from"./Tabs.9cad5d60.js";import"./translations.5e539ab1.js";import{T as k}from"./runtime-dom.esm-bundler.dc49ee3e.js";import{_ as P}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as i}from"./default-i18n.368c2d5c.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 j}from"./runtime-core.esm-bundler.ce5add0b.js";import"./helpers.b1696305.js";import"./constants.cb29e214.js";import"./JsonValues.a0694556.js";import"./RadioToggle.18655b2f.js";import"./RobotsMeta.9954dafa.js";import"./Checkbox.e1f30786.js";import"./Checkmark.762f711e.js";import"./Row.bb9acf3f.js";import"./SettingsRow.fd3e214f.js";import"./Editor.4dffd9f5.js";import"./isEqual.657ec1c5.js";import"./_baseIsEqual.bda31e23.js";import"./_getTag.e070317d.js";import"./_baseClone.4457226b.js";import"./_arrayEach.6af5abac.js";import"./Input.94feb999.js";import"./Index.2a391835.js";import"./Close.ccd53ef3.js";import"./Pencil.d82df6a1.js";import"./Trash.87a7d946.js";import"./Caret.cd869c5d.js";import"./GoogleSearchPreview.bbe31655.js";import"./Url.1c574b17.js";import"./HtmlTagsEditor.dd1ba47c.js";import"./UnfilteredHtml.e9a239ad.js";import"./Tooltip.23c7170d.js";import"./Slide.3003ef51.js";import"./vue-router.53cc8f39.js";import"./Button.277f0e3d.js";import"./ProBadge.e6ec5f9a.js";import"./Information.98ebb530.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,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(k,{name:"route-fade",mode:"out-in"},{default:r(()=>[(s(),l(j(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(L,[["render",I]]);export{De as default};
