import{h as A,b as v,x as S}from"./app-core.82d0a9b8.js";import{u as y}from"./PostTypes.b1cb8150.js";import{T as C,A as T}from"./TitleDescription.b791e2b4.js";import{C as D}from"./Card.2051539b.js";import{C as x}from"./Tabs.8e508d9e.js";import{as 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.02763c14.js";import{_ as L}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as u}from"./vendor-other.2cdd5822.js";import"./vendor-datetime.430013a3.js";import"./vendor-lodash.f9514987.js";import"./JsonValues.a0694556.js";import"./RadioToggle.51982cf9.js";import"./RobotsMeta.b24d5530.js";import"./Checkbox.e9c7109b.js";import"./Checkmark.27028b68.js";import"./Row.42f1b009.js";import"./SettingsRow.b0f20d96.js";import"./Index.ab3a7ebe.js";import"./Close.ed64f0a2.js";import"./GoogleSearchPreview.d41069ca.js";import"./Caret.1dd03f59.js";import"./Url.98506653.js";import"./HtmlTagsEditor.9105e4cd.js";import"./Editor.c9158054.js";import"./vendor-quill.d8afd3e5.js";import"./Input.07427c66.js";import"./Pencil.b091de6b.js";import"./Trash.9c01fca5.js";import"./UnfilteredHtml.14aa63b3.js";import"./vendor-emoji.92c96208.js";import"./Tooltip.16bec62e.js";import"./Slide.59825bf3.js";import"./Button.b03184b6.js";import"./ProBadge.e8abb23c.js";import"./Information.994a9b26.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 I(e,n,N,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 Ae=L(R,[["render",I]]);export{Ae as default};
