OwlCyberSecurity - MANAGER
Edit File: Archives.BiNy51Zv.js
import{a as f,u as b,e as A}from"./links.DERf9LZO.js";import{A as v,T as S}from"./TitleDescription.CJ1Jn6Ij.js";import{C as y}from"./Card.BKhgt1Jg.js";import{C}from"./Tabs.J2_YNjxh.js";import{P as T}from"./PostTypes.Cef6XkQ_.js";import{x as i,c,F as D,K as x,o,l as p,m as s,a as l,H as $,t as k,C as m,v as P,T as B}from"./vue.esm-bundler.CWQFYt9y.js";import{_ as w}from"./_plugin-vue_export-helper.BN1snXvA.js";import"./default-i18n.Bd0Z306Z.js";import"./helpers.D2xRWOvn.js";import"./JsonValues.D25FTfEu.js";import"./MaxCounts.DHV7qSQX.js";import"./RadioToggle.BLVmJ7Zx.js";import"./Caret.iRBf3wcH.js";import"./ProBadge.WwPkDor4.js";import"./RobotsMeta.DaT5Emc8.js";import"./Checkbox.D2dfpbIi.js";import"./Checkmark.pCOnqh_g.js";import"./Row.CzuhYwfs.js";import"./SettingsRow.DQldd-1Z.js";import"./Editor.yEuMw1JF.js";import"./index.BB7B6rSp.js";import"./Tags.Dt1VE4lK.js";import"./postSlug.BUVEZsZg.js";import"./metabox.DfnuksZN.js";import"./cleanForSlug.o2RefBn0.js";import"./toString.XwB3Xa5p.js";import"./_baseTrim.BYZhh0MR.js";import"./_stringToArray.DnK4tKcY.js";import"./get.BT85ybc8.js";import"./_baseSet.DALGekmy.js";import"./GoogleSearchPreview.BLUgMtuH.js";import"./constants.B6ynd7gz.js";import"./HtmlTagsEditor.BeRh_joD.js";import"./UnfilteredHtml.iWH6cS1-.js";import"./Tooltip.DiN2Zjvc.js";import"./Slide.CRIn0kdn.js";import"./TruSeoScore.TjofuHRQ.js";import"./Ellipse.bTucWqGK.js";import"./Information.CESrgQJV.js";const O={setup(){return{optionsStore:f(),rootStore:b(),settingsStore:A()}},components:{Advanced:v,CoreCard:y,CoreMainTabs:C,TitleDescription:S},mixins:[T],data(){return{internalDebounce:null,tabs:[{slug:"title-description",name:this.$t.__("Title & Description",this.$td),access:"aioseo_search_appearance_settings",pro:!1},{slug:"advanced",name:this.$t.__("Advanced",this.$td),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]}}},L={class:"aioseo-search-appearance-archives"};function j(e,n,F,r,u,a){const h=i("core-main-tabs"),d=i("core-card");return o(),c("div",L,[(o(!0),c(D,null,x(a.getArchives,(t,_)=>(o(),p(d,{key:_,slug:`${t.name}Archives`},{header:s(()=>[l("div",{class:$(["icon dashicons",e.getPostIconClass(t.icon)])},null,2),l("div",null,k(t.label),1)]),tabs:s(()=>[m(h,{tabs:u.tabs,showSaveButton:!1,active:r.settingsStore.settings.internalTabs[`${t.name}Archives`],internal:"",onChanged:g=>a.processChangeTab(t.name,g)},null,8,["tabs","active","onChanged"])]),default:s(()=>[m(B,{name:"route-fade",mode:"out-in"},{default:s(()=>[(o(),p(P(r.settingsStore.settings.internalTabs[`${t.name}Archives`]),{object:t,separator:r.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 Se=w(O,[["render",j]]);export{Se as default};