import{a as A,u as v,g as S}from"./index.nsvc8vqf.js";import{u as y}from"./PostTypes.d1dx9z99.js";import{A as C,T}from"./TitleDescription.dk0kv9uw.js";import{C as D}from"./Card.n68aovsj.js";import{C as k}from"./Tabs.4r8l6r8o.js";import"./translations.lf9cwm9a.js";import{v as i,c,F as x,J as P,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 L}from"./runtime-dom.esm-bundler.h3clfjuw.js";import{_ as j}from"./_plugin-vue_export-helper.oebm7xum.js";import{_ as u}from"./default-i18n.hohxoesu.js";import"./helpers.fdpg7vgg.js";import"./constants.fxxegv78.js";import"./JsonValues.g6ep3o3z.js";import"./RadioToggle.h9afcyfi.js";import"./RobotsMeta.g6i1lggl.js";import"./Checkbox.fww0datn.js";import"./Checkmark.d5kkjaf5.js";import"./Row.o0q8mn7y.js";import"./SettingsRow.1l1umqn0.js";import"./Editor.k6y9ox0q.js";import"./isEqual.gulmggc8.js";import"./_baseIsEqual.hstd7xe6.js";import"./_getTag.h6v5trhq.js";import"./_baseClone.nbrz7zdx.js";import"./_arrayEach.n8ou32wp.js";import"./index.h076fivy.js";import"./Caret.hnvbzqgq.js";import"./Tags.oypvqhpf.js";import"./postSlug.cemx0kwk.js";import"./metabox.ncz5ucbq.js";import"./cleanForSlug.ncex5ar8.js";import"./toString.g0kcp64r.js";import"./_baseTrim.ohbpllmu.js";import"./_stringToArray.mpukyt2g.js";import"./_baseSet.lqwmtpeb.js";import"./GoogleSearchPreview.o1cj6y7p.js";import"./HtmlTagsEditor.k0zlm7pg.js";import"./UnfilteredHtml.erapx69a.js";import"./Tooltip.jx4casvt.js";import"./Slide.dop8j51m.js";import"./vue-router.mwhkjjlr.js";import"./TruSeoScore.oj10wjxw.js";import"./ProBadge.ab6jhp8x.js";import"./Information.djrr3pec.js";import"./Ellipse.mhzh8c2h.js";const h="all-in-one-seo-pack",F={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",h),access:"aioseo_search_appearance_settings",pro:!1},{slug:"advanced",name:u("Advanced",h),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:"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]}}},I={class:"aioseo-search-appearance-archives"};function N(e,n,R,o,d,a){const g=i("core-main-tabs"),_=i("core-card");return r(),c("div",I,[(r(!0),c(x,null,P(a.getArchives,(t,f)=>(r(),p(_,{key:f,slug:`${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(g,{tabs:d.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(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"]))),128))])}const Pe=j(F,[["render",N]]);export{Pe as default};
