import{q as A,b as v,y as S}from"./app-core.3e3b5f4b.js";import{u as y}from"./PostTypes.5abc8141.js";import{T as C,A as T}from"./TitleDescription.6bf49c4f.js";import{C as D}from"./Card.3492d277.js";import{C as x}from"./Tabs.9d0d873c.js";import{aq as i,f as s,i as c,O as k,ad as P,Q as p,R as a,a0 as l,a4 as B,S as O,j as m,P as w,U as j}from"./vendor-vue-ui.65fbb3e9.js";import{_ as L}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as u}from"./vendor-other.ac1169a2.js";import"./vendor-lodash.a7229f96.js";import"./JsonValues.a0694556.js";import"./RadioToggle.a8e18a94.js";import"./RobotsMeta.29b83768.js";import"./Checkbox.6b6a136d.js";import"./Checkmark.429c2d8c.js";import"./Row.35464476.js";import"./SettingsRow.d1734943.js";import"./Index.792b437f.js";import"./Close.3dad5b8a.js";import"./GoogleSearchPreview.2cecef7e.js";import"./Caret.bc946270.js";import"./Url.1735e9b5.js";import"./HtmlTagsEditor.47d8abe4.js";import"./Editor.44b793c8.js";import"./vendor-quill.6939af0e.js";import"./Input.32b40815.js";import"./Pencil.b9e32152.js";import"./Trash.c607f240.js";import"./UnfilteredHtml.91062b48.js";import"./vendor-emoji.92c96208.js";import"./Tooltip.83c2998c.js";import"./Slide.1fe27f7c.js";import"./Button.60477c93.js";import"./ProBadge.b0e426b0.js";import"./Information.ba20a904.js";const d="all-in-one-seo-pack",R={setup(){const{getPostIconClass:e}=y();return{getPostIconClass:e,optionsStore:S(),rootStore:v(),settingsStore:A()}},components:{Advanced:T,CoreCard:D,CoreMainTabs:x,TitleDescription:C},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?.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]}}},$={class:"aioseo-search-appearance-archives"};function q(e,n,I,o,h,r){const _=i("core-main-tabs"),g=i("core-card");return s(),c("div",$,[(s(!0),c(k,null,P(r.getArchives,(t,f)=>(s(),p(g,{key:f,slug:`${t.name}Archives`,"card-id":`${t.name}Archives`},{header:a(()=>[m("div",{class:w(["icon dashicons",o.getPostIconClass(t.icon)])},null,2),m("div",null,j(t.label),1)]),tabs:a(()=>[l(_,{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(()=>[l(B,{name:"route-fade",mode:"out-in"},{default:a(()=>[(s(),p(O(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 be=L(R,[["render",q]]);export{be as default};
