import{w as A,b as v,a as S}from"./app-core.a6d808ce.js";import{u as y}from"./PostTypes.21bf7c84.js";import{T as C,A as T}from"./TitleDescription.a94a0a77.js";import{C as D}from"./Card.bced93c3.js";import{C as x}from"./Tabs.c5d4ce83.js";import{aq as i,f as a,i as c,O as k,ad as P,Q as p,R as s,a0 as l,a4 as w,S as B,j as m,P as O,U as j}from"./vendor-vue-ui.de3ab35f.js";import{_ as L}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as u}from"./vendor-other.7b559694.js";import"./vendor-lodash.8e35bd59.js";import"./JsonValues.a0694556.js";import"./RadioToggle.de933e45.js";import"./RobotsMeta.5520df19.js";import"./Checkbox.79be52ca.js";import"./Checkmark.fac3f231.js";import"./Row.6337df55.js";import"./SettingsRow.0c329e43.js";import"./Index.52399193.js";import"./Close.098d4b76.js";import"./GoogleSearchPreview.a4e53c44.js";import"./Caret.a017b70a.js";import"./Url.77200c12.js";import"./HtmlTagsEditor.d79f45b4.js";import"./Editor.a09607dd.js";import"./vendor-quill.fa67f709.js";import"./Input.77b5ee76.js";import"./Pencil.405b16d2.js";import"./Trash.d35f8063.js";import"./Plus.97dee933.js";import"./UnfilteredHtml.ba49791f.js";import"./vendor-emoji.92c96208.js";import"./Tooltip.ae7a1028.js";import"./Slide.e6618126.js";import"./Button.a549093d.js";import"./ProBadge.fd60f711.js";import"./Information.278772ab.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 a(),c("div",$,[(a(!0),c(k,null,P(r.getArchives,(t,f)=>(a(),p(g,{key:f,slug:`${t.name}Archives`,"card-id":`${t.name}Archives`},{header:s(()=>[m("div",{class:O(["icon dashicons",o.getPostIconClass(t.icon)])},null,2),m("div",null,j(t.label),1)]),tabs:s(()=>[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:s(()=>[l(w,{name:"route-fade",mode:"out-in"},{default:s(()=>[(a(),p(B(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};
