OwlCyberSecurity - MANAGER
Edit File: Archives.BEcziFxx.js
import{a as f,u as b,f as A}from"./links.w575jfOL.js";import{A as v,T as S}from"./TitleDescription.Cw8MyNq6.js";import{C as y}from"./Card.DcyLIJc9.js";import{C}from"./Tabs.qjdtP0a-.js";import{P as T}from"./PostTypes.Cef6XkQ_.js";import{v as i,c,F as D,J as x,o,k as p,l as r,a as m,G as k,t as $,C as l,q as P,T as B}from"./runtime-dom.esm-bundler.CWn9hmRK.js";import{_ as w}from"./_plugin-vue_export-helper.BN1snXvA.js";import"./default-i18n.DXRQgkn2.js";import"./helpers.CXsRrhc8.js";import"./JsonValues.D25FTfEu.js";import"./MaxCounts.DHV7qSQX.js";import"./RadioToggle.wKAtzkuu.js";import"./Caret.B8YmKvEY.js";import"./ProBadge.CeTQI5Mm.js";import"./RobotsMeta.BQAAu1Tp.js";import"./Checkbox.dOnSakMX.js";import"./Checkmark.CZaciSER.js";import"./Row.Depn1REx.js";import"./SettingsRow.CSjiqnfy.js";import"./Editor.Cvkhfn-n.js";import"./isEqual.DkU1ezAe.js";import"./_baseIsEqual.MNbeg0L2.js";import"./_getTag.BWQxgJie.js";import"./_baseClone.BiVlRo9x.js";import"./_arrayEach.Fgt6pfHj.js";import"./index.vo0_cz49.js";import"./Tags.BU74BX7Y.js";import"./postSlug.DR-r-K_I.js";import"./metabox.C_lvn8R-.js";import"./cleanForSlug.BVGRQ_59.js";import"./toString.zLSwYOtv.js";import"./_baseTrim.BYZhh0MR.js";import"./_stringToArray.DnK4tKcY.js";import"./_baseSet.rYV3oc6X.js";import"./GoogleSearchPreview.BT7aiH-w.js";import"./constants.Ct0G2N2t.js";import"./HtmlTagsEditor.CEWHUS3E.js";import"./UnfilteredHtml.yVY9HwFR.js";import"./Tooltip.u2Cos2P_.js";import"./Slide.DwUOEoDg.js";import"./TruSeoScore.DmC22Awy.js";import"./Ellipse.Br8hAdqt.js";import"./Information.DOYCSlH5.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,s,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:r(()=>[m("div",{class:k(["icon dashicons",e.getPostIconClass(t.icon)])},null,2),m("div",null,$(t.label),1)]),tabs:r(()=>[l(h,{tabs:u.tabs,showSaveButton:!1,active:s.settingsStore.settings.internalTabs[`${t.name}Archives`],internal:"",onChanged:g=>a.processChangeTab(t.name,g)},null,8,["tabs","active","onChanged"])]),default:r(()=>[l(B,{name:"route-fade",mode:"out-in"},{default:r(()=>[(o(),p(P(s.settingsStore.settings.internalTabs[`${t.name}Archives`]),{object:t,separator:s.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 De=w(O,[["render",j]]);export{De as default};