var u=Object.defineProperty,m=Object.defineProperties;var h=Object.getOwnPropertyDescriptors;var o=Object.getOwnPropertySymbols;var _=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;var i=(e,t,n)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,r=(e,t)=>{for(var n in t||(t={}))_.call(t,n)&&i(e,n,t[n]);if(o)for(var n of o(t))d.call(t,n)&&i(e,n,t[n]);return e},s=(e,t)=>m(e,h(t));import{d as f,j as g}from"./index.01898232.js";import{A as v,T as b}from"./TitleDescription.bf5cdb8a.js";import{C as A}from"./Card.77d72357.js";import{C as y}from"./Tabs.23386ef9.js";import{n as T}from"./vueComponentNormalizer.87056a83.js";import"./ToolsSettings.cc636f56.js";import"./JsonValues.08065e69.js";import"./MaxCounts.3eed5286.js";import"./RadioToggle.98e1e7ec.js";import"./RobotsMeta.2bc11dc9.js";import"./Checkbox.5873a8d2.js";import"./Checkmark.e7547654.js";import"./Row.13b6f3f1.js";import"./SettingsRow.eb71f07b.js";import"./GoogleSearchPreview.bf413128.js";import"./HtmlTagsEditor.45568624.js";import"./Editor.97935a18.js";import"./client.93f15631.js";import"./index.460e1b4b.js";import"./UnfilteredHtml.13ff0800.js";import"./Index.c7d3532f.js";import"./Tooltip.674a9fb4.js";import"./QuestionMark.83ebd18e.js";import"./Slide.f5d21606.js";import"./TruSeoScore.a520926e.js";import"./Information.f4b75b56.js";var x=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"aioseo-search-appearance-archives"},e._l(e.getArchives,function(a,p){return n("core-card",{key:p,attrs:{slug:a.name+"Archives"},scopedSlots:e._u([{key:"header",fn:function(){return[n("div",{staticClass:"icon dashicons",class:""+(a.icon||"dashicons-admin-post")}),n("div",[e._v(" "+e._s(a.label)+" ")])]},proxy:!0},{key:"tabs",fn:function(){return[n("core-main-tabs",{attrs:{tabs:e.tabs,showSaveButton:!1,active:e.settings.internalTabs[a.name+"Archives"],internal:""},on:{changed:function(l){return e.processChangeTab(a.name,l)}}})]},proxy:!0}],null,!0)},[n("transition",{attrs:{name:"route-fade",mode:"out-in"}},[n(e.settings.internalTabs[a.name+"Archives"],{tag:"component",attrs:{object:a,separator:e.options.searchAppearance.global.separator,options:e.getOptions(a),type:"archives","show-bulk":!1,"no-meta-box":"","include-keywords":""}})],1)],1)}),1)},C=[];const D={components:{Advanced:v,CoreCard:A,CoreMainTabs:y,TitleDescription:b},data(){return{internalDebounce:null,tabs:[{slug:"title-description",name:"Title & Description",access:"aioseo_search_appearance_settings",pro:!1},{slug:"advanced",name:"Advanced",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:s(r({},f(["options","dynamicOptions","settings"])),{getArchives(){return this.archives.concat(this.$aioseo.postData.archives.map(e=>({label:`${e.label} Archives`,name:`${e.name}Archive`,icon:"dashicons-category",singular:e.singular,dynamic:!0})))}}),methods:s(r({},g(["changeTab"])),{processChangeTab(e,t){this.internalDebounce||(this.internalDebounce=!0,this.changeTab({slug:`${e}Archives`,value:t}),setTimeout(()=>{this.internalDebounce=!1},50))},getOptions(e){return e.dynamic?this.dynamicOptions.searchAppearance.archives[e.name.replace("Archive","")]:this.options.searchAppearance.archives[e.name]}})},c={};var S=T(D,x,C,!1,k,null,null,null);function k(e){for(let t in c)this[t]=c[t]}var te=function(){return S.exports}();export{te as default};
