관리-도구
편집 파일: Archives.062d6900.js
import{b as A,u as v,k as S}from"./index.5a710757.js";import{u as y}from"./PostTypes.d6c1987b.js";import{A as C,T}from"./TitleDescription.0fc59fae.js";import{C as D}from"./Card.5b602127.js";import{C as k}from"./Tabs.08a4fd23.js";import"./translations.12335a6a.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.6789c400.js";import{_ as j}from"./_plugin-vue_export-helper.249dac1d.js";import{_ as u}from"./default-i18n.54b5d8cd.js";import"./helpers.f95d5840.js";import"./constants.2019bcb3.js";import"./JsonValues.892a7505.js";import"./RadioToggle.64619d6b.js";import"./RobotsMeta.923dd147.js";import"./Checkbox.e983780b.js";import"./Checkmark.32f79576.js";import"./Row.f01f32cd.js";import"./SettingsRow.1934f141.js";import"./Editor.e5877fb8.js";import"./isEqual.51bf23f5.js";import"./_baseIsEqual.6bc92395.js";import"./_getTag.8dc22eac.js";import"./_baseClone.50c6045c.js";import"./_arrayEach.f4f00336.js";import"./index.ee8124c6.js";import"./Caret.662da1f3.js";import"./Tags.3157574f.js";import"./helpers.b97d7047.js";import"./metabox.1128ddb8.js";import"./cleanForSlug.f9ffe7db.js";import"./toString.1401d490.js";import"./_baseTrim.940c51cf.js";import"./_stringToArray.08127ca9.js";import"./_baseSet.32e7a763.js";import"./regex.f8017116.js";import"./GoogleSearchPreview.805aa110.js";import"./Url.cc9d8d5e.js";import"./HtmlTagsEditor.b85e0cfa.js";import"./UnfilteredHtml.559aa5ad.js";import"./Tooltip.b6b45c85.js";import"./Slide.d0517fb0.js";import"./vue-router.fc4966b9.js";import"./ProBadge.7733ac87.js";import"./Information.82968754.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 _=c("core-main-tabs"),g=c("core-card");return r(),i("div",I,[(r(!0),i(x,null,P(a.getArchives,(t,f)=>(r(),p(g,{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(_,{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};