관리-도구
편집 파일: Archives.nk6ypur4.js
import{b as A,u as v,j as S}from"./index.ba51ghj9.js";import{u as y}from"./PostTypes.pd67gy5m.js";import{A as C,T}from"./TitleDescription.lzx9mbqe.js";import{C as D}from"./Card.0q0mr1wq.js";import{C as k}from"./Tabs.opo0ypfq.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 m,G as B,t as w,C as l,q as O,T as j}from"./runtime-dom.esm-bundler.h3clfjuw.js";import{_ as L}from"./_plugin-vue_export-helper.oebm7xum.js";import{_ as u}from"./default-i18n.hohxoesu.js";import"./helpers.lwqbledo.js";import"./constants.hcfrsngk.js";import"./JsonValues.g6ep3o3z.js";import"./RadioToggle.cler7vn3.js";import"./RobotsMeta.nthz6djw.js";import"./Checkbox.cv4w58s0.js";import"./Checkmark.d5kkjaf5.js";import"./Row.h4gujlzc.js";import"./SettingsRow.d9u0swi1.js";import"./Editor.ipgvvrs0.js";import"./isEqual.dwjbg1yu.js";import"./_baseIsEqual.j7gru8tk.js";import"./_getTag.fx9iqlmr.js";import"./_baseClone.n1l9l19s.js";import"./_arrayEach.n8ou32wp.js";import"./index.kaabvvzj.js";import"./Caret.dwp6xpza.js";import"./Tags.mkuonlme.js";import"./postSlug.ms4f44w2.js";import"./metabox.y83zoorm.js";import"./cleanForSlug.dzbbaoug.js";import"./toString.oppn28a8.js";import"./_baseTrim.ohbpllmu.js";import"./_stringToArray.mpukyt2g.js";import"./_baseSet.ipousrvi.js";import"./regex.bekpgw04.js";import"./GoogleSearchPreview.mmblg2b4.js";import"./HtmlTagsEditor.irue4ytl.js";import"./UnfilteredHtml.o4azp64h.js";import"./Tooltip.i4md1nj9.js";import"./Slide.dop8j51m.js";import"./vue-router.eypfdvl5.js";import"./TruSeoScore.das28gz4.js";import"./ProBadge.e32os6n3.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 _=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(()=>[m("div",{class:B(["icon dashicons",o.getPostIconClass(t.icon)])},null,2),m("div",null,w(t.label),1)]),tabs:s(()=>[l(_,{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(()=>[l(j,{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 Be=L(F,[["render",N]]);export{Be as default};