관리-도구
편집 파일: Archives.ju5417k7.js
import{a as A,u as v,g as S}from"./index.jlplx4ex.js";import{u as y}from"./PostTypes.pd67gy5m.js";import{A as C,T}from"./TitleDescription.efvmzdkp.js";import{C as D}from"./Card.m3lmtg1o.js";import{C as k}from"./Tabs.jvzsqe7o.js";import"./translations.b896ab1m.js";import{c as i,F as x,J as P,v as c,o as r,k as p,l as s,a as l,G as B,t as w,C as m,q as O,T as L}from"./runtime-dom.esm-bundler.h3clfjuw.js";import{_ as j}from"./_plugin-vue_export-helper.oebm7xum.js";import{_ as u}from"./default-i18n.hohxoesu.js";import"./helpers.cti0cl6i.js";import"./constants.hcfrsngk.js";import"./JsonValues.g6ep3o3z.js";import"./RadioToggle.h9afcyfi.js";import"./RobotsMeta.edcih9ko.js";import"./Checkbox.fww0datn.js";import"./Checkmark.d5kkjaf5.js";import"./Row.o0q8mn7y.js";import"./SettingsRow.1l1umqn0.js";import"./Editor.fji40euo.js";import"./isEqual.czpd1uhn.js";import"./_baseIsEqual.h4qr0q1d.js";import"./_getTag.fj45ivwn.js";import"./_baseClone.j5qc2kco.js";import"./_arrayEach.n8ou32wp.js";import"./index.npoectbv.js";import"./Caret.hnvbzqgq.js";import"./Tags.bchklxw9.js";import"./postSlug.iva7u65b.js";import"./metabox.imp54zfh.js";import"./cleanForSlug.i05mvw2m.js";import"./toString.fflnj7pf.js";import"./_baseTrim.ohbpllmu.js";import"./_stringToArray.mpukyt2g.js";import"./_baseSet.c1i96bqt.js";import"./GoogleSearchPreview.j1gqkkrz.js";import"./HtmlTagsEditor.lf2fbwqe.js";import"./UnfilteredHtml.d5n2qgzt.js";import"./Tooltip.jx4casvt.js";import"./Slide.dop8j51m.js";import"./vue-router.eypfdvl5.js";import"./TruSeoScore.kirz7zix.js";import"./ProBadge.ab6jhp8x.js";import"./Information.djrr3pec.js";import"./Ellipse.mhzh8c2h.js";const h="all-in-one-seo-pack",F={setup(){const{getPostIconClass:e}=y();return{getPostIconClass:e,optionsStore:A(),rootStore:v(),settingsStore:S()}},components:{Advanced:C,CoreCard:D,CoreMainTabs:k,TitleDescription:T},data(){return{internalDebounce:null,tabs:[{slug:"title-description",name:u("Title & Description",h),access:"aioseo_search_appearance_settings",pro:!1},{slug:"advanced",name:u("Advanced",h),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]}}},I={class:"aioseo-search-appearance-archives"};function N(e,n,R,o,d,a){const g=c("core-main-tabs"),_=c("core-card");return r(),i("div",I,[(r(!0),i(x,null,P(a.getArchives,(t,f)=>(r(),p(_,{key:f,slug:`${t.name}Archives`},{header:s(()=>[l("div",{class:B(["icon dashicons",o.getPostIconClass(t.icon)])},null,2),l("div",null,w(t.label),1)]),tabs:s(()=>[m(g,{tabs:d.tabs,showSaveButton:!1,active:o.settingsStore.settings.internalTabs[`${t.name}Archives`],internal:"",onChanged:b=>a.processChangeTab(t.name,b)},null,8,["tabs","active","onChanged"])]),default:s(()=>[m(L,{name:"route-fade",mode:"out-in"},{default:s(()=>[(r(),p(O(o.settingsStore.settings.internalTabs[`${t.name}Archives`]),{object:t,separator:o.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 Pe=j(F,[["render",N]]);export{Pe as default};