Sid Gifari File Manager
🏠 Root
/
home
/
caldereriajp
/
public_html
/
wp-content
/
plugins
/
all-in-one-seo-pack
/
dist
/
Lite
/
assets
/
js
/
Editing: Main.8caad48d.js
import{u as D,c as O,D as B,p as N}from"./links.96235554.js";import V from"./BadBotBlocker.94a636ac.js";import{C as I}from"./Index.c60e4c98.js";import E from"./DatabaseTools.3703bb03.js";import{C as R}from"./index.c885ab17.js";import{C as U}from"./Card.02715b2c.js";import{C as Y}from"./Tabs.b92dcfbe.js";import{C as H}from"./Index.9d3d0eb4.js";import{C as K}from"./NetworkSiteSelector.1ff61dec.js";import{C as z}from"./SettingsRow.5de01aba.js";import{B as P}from"./Checkbox.fc67f607.js";import{G as F,a as G}from"./Row.85168b37.js";import{r as a,o as i,c as h,e as g,w as d,F as M,h as T,d as p,g as w,t as m,a as l,b as A,C,i as W}from"./vue.runtime.esm-bundler.a49acf4f.js";import{_ as v}from"./_plugin-vue_export-helper.bd508f36.js";import{a as q}from"./Caret.7f04b0aa.js";import j from"./HtaccessEditor.ba7f4c82.js";import J from"./ImportExport.e03fd1ba.js";import Q from"./RobotsEditor.a0eec111.js";import X from"./SystemStatus.ed794d45.js";import Z from"./WpCode.010a425f.js";import"./default-i18n.cc9dbff0.js";import"./isArrayLikeObject.3ade28da.js";import"./Textarea.0fbcf1ab.js";import"./Tooltip.c031cb66.js";import"./Slide.f53bd663.js";/* empty css */import"./license.2537a586.js";import"./upperFirst.0bd33a97.js";import"./_stringToArray.4de3b1f3.js";import"./toString.d05e92a1.js";import"./allowed.d054e5c0.js";/* empty css */import"./params.597cd0f5.js";/* empty css */import"./constants.c7984802.js";import"./SaveChanges.dad94bb3.js";/* empty css */import"./Header.2ececb24.js";import"./addons.8f1a852a.js";import"./LicenseKeyBar.42b79cab.js";import"./LogoGear.8c7ffea6.js";import"./AnimatedNumber.63a7d070.js";import"./numbers.8fa607e7.js";import"./Logo.915b1600.js";import"./Support.55e5d0c8.js";import"./Date.08bca440.js";import"./Exclamation.cce5234f.js";import"./Url.7a58a648.js";import"./Gear.7e798dc4.js";import"./Network.7c9fa9d4.js";import"./ToolsSettings.496d7348.js";import"./Checkmark.1b968f7a.js";import"./Index.86dc50d3.js";import"./Blur.f2dbe3c4.js";import"./TruSeoScore.25c11e71.js";import"./Information.73bebac2.js";import"./Editor.29931065.js";import"./tags.7148445d.js";import"./Plus.aa60dda7.js";import"./History.127afce8.js";import"./Refresh.05907165.js";import"./Download.6b2fd7cd.js";import"./Radio.385a6e11.js";import"./External.db175325.js";import"./Row.dabd8e5a.js";const ee={setup(){return{rootStore:D()}},emits:["update"],components:{BaseCheckbox:P,GridColumn:F,GridRow:G},props:{loading:Boolean,disabled:Boolean},data(){return{options:{},strings:{updateOptions:this.$t.__("Update Options",this.$td)}}},mounted(){this.rootStore.aioseo.deprecatedOptions.forEach(e=>{e.enabled&&(this.options[e.value]=!0)})}},te={class:"aioseo-deprecated-options"},oe=l("br",null,null,-1),se=l("br",null,null,-1),ie=l("br",null,null,-1);function ne(e,o,n,u,t,r){const c=a("base-checkbox"),b=a("grid-column"),y=a("grid-row"),f=a("base-button");return i(),h("div",te,[g(y,{class:"settings"},{default:d(()=>[(i(!0),h(M,null,T(u.rootStore.aioseo.deprecatedOptions,(_,k)=>(i(),p(b,{key:k,xl:"6",sm:"12"},{default:d(()=>[g(c,{size:"medium",modelValue:t.options[_.value],"onUpdate:modelValue":S=>t.options[_.value]=S,disabled:n.disabled},{default:d(()=>[w(m(_.label),1)]),_:2},1032,["modelValue","onUpdate:modelValue","disabled"])]),_:2},1024))),128))]),_:1}),oe,g(f,{type:"blue",size:"medium",onClick:o[0]||(o[0]=_=>e.$emit("update",t.options)),loading:n.loading,disabled:n.disabled},{default:d(()=>[w(m(t.strings.updateOptions),1)]),_:1},8,["loading","disabled"]),se,ie])}const re=v(ee,[["render",ne]]);const ae={setup(){return{optionsStore:O()}},computed:{infoItems(){return[{label:"Migrated Version",value:this.optionsStore.internalOptions.internal.migratedVersion},{label:"First Activated",value:this.optionsStore.internalOptions.internal.firstActivated!==0?B.fromMillis(this.optionsStore.internalOptions.internal.firstActivated*1e3).toFormat("MMMM d, yyyy"):!1}]}}},le={class:"v3-migration-info aioseo-description"},ce={class:"info-items"},de={key:0},ue={key:1};function pe(e,o,n,u,t,r){return i(),h("div",le,[l("ul",ce,[(i(!0),h(M,null,T(r.infoItems,(c,b)=>(i(),h("li",{key:b},[c.value?(i(),h("span",de,m(c.label),1)):A("",!0),c.value?(i(),h("span",ue,m(c.value),1)):A("",!0)]))),128))])])}const me=v(ae,[["render",pe]]);const he={setup(){return{rootStore:D(),toolsStore:N()}},components:{CoreAlert:R,CoreCard:U,CoreMainTabs:Y,CoreModal:H,CoreNetworkSiteSelector:K,CoreSettingsRow:z,DeprecatedOptions:re,MigrationInfo:me,SvgClose:q},props:{extraActions:{type:Array,required:!1}},data(){return{site:{},tabsKey:0,doingActionKey:0,activeTab:"general",currentAction:"",showAreYouSureModal:!1,doingAction:[],strings:{selectSite:"Select Site",cardLabel:"Debug",selectLabel:"Select a Debug Action:",buttonLabel:"Run Action",alertWarning:"Before you run any action, please make sure that you have fully read the description and understand the consequences as these cannot be reverted.",cannotBeUndone:"This action cannot be undone.",yesDoAction:"Yes, run this action",noChangedMind:"No, I changed my mind"},alertLink:this.$links.getPlainLink("Click here to open to the Scheduled Actions panel",this.rootStore.aioseo.urls.admin.scheduledActions,!0)}},computed:{areYouSureTitle(){return`Are you sure you want to run the "${this.currentAction.label}" action?`},tabs(){const e=this.$t.sprintf('<a href="%1$s" target="_blank">Scheduled Actions</a>',this.rootStore.aioseo.urls.admin.scheduledActions),o=this.rootStore.aioseo.data.isNetworkAdmin?"<br><strong>NOTE: If no site is selected, this will clear the network cache.</strong>":"",n=this.rootStore.aioseo.data.isNetworkAdmin?"<br><strong>NOTE: If no site is selected, this will clear the network plugin updates transient.</strong>":"";return[{slug:"general",name:"General",actions:[{label:"Clear Cache",slug:"clear-cache",shortDescription:`This action deletes all records of the <code>aioseo_cache</code> table in the database.${o}`,longDescription:"",showModal:!1,network:!0},{label:"Clear Plugin Updates Transient",slug:"clear-plugin-updates-transient",shortDescription:`This action clears the plugin updates transient, which forces WordPress Core to check for plugin updates.${n}`,longDescription:"",showModal:!1,network:!0},{label:"Readd Capabilities",slug:"readd-capabilities",shortDescription:"This action will readd our capabilities (access permissions) for all users.",longDescription:"",showModal:!1},{label:"Reset Data",slug:"reset-data",shortDescription:"This action will <strong>delete</strong> all our custom tables and options.",longDescription:"",showModal:!0}]},{slug:"sitemap",name:"Sitemap",actions:[{label:"Clear Image Data",slug:"clear-image-data",shortDescription:"This action removes all image data from the database, forcing a site-wide rescan via Action Scheduler.",longDescription:this.$t.sprintf("To speed up the image scan, go to %1$s and run the <code>aioseo_image_sitemap_scan</code> action.",e),showModal:!1}]},{slug:"migrations",name:"Migrations",actions:[{label:"Rerun V4+ Migrations",slug:"rerun-migrations",shortDescription:"This action will rerun all update migrations since 4.0.0, excluding the V3 migration.",longDescription:"",showModal:!0}]},{slug:"old-issues",name:"Old Issues",actions:[{label:"Remove Duplicates",slug:"remove-duplicates",shortDescription:"This action will delete any duplicate records that are found in the <code>aioseo_posts</code> and <code>aioseo_terms</code> tables.",longDescription:"",showModal:!1},{label:"Unescape Data",slug:"unescape-data",shortDescription:"This action will clean <code>aioseo_posts</code> and <code>aioseo_term</code> records whose data is corrupted.",longDescription:this.$t.sprintf("The action will trigger a routine which runs in batches via Action Scheduler. It may take some time for this routine to complete, To speed up this process, go to %1$s and run the <code>aioseo_unslash_escaped_data_posts</code> or <code>aioseo_unslash_escaped_data_terms</code> action.",e),showModal:!1}]},{slug:"deprecated-options",name:"Deprecated Options",actions:[{label:"Deprecated Options",slug:"deprecated-options",shortDescription:"Enable or disable any options that have been deprecated in AIOSEO.",longDescription:"<strong>These options are not guaranteed to work and all support has been dropped.</strong>",showModal:!1,component:"deprecated-options"}]}]},activeTabObject(){return this.tabs.find(e=>e.slug===this.activeTab)}},methods:{isActionDisabled(e){return this.rootStore.aioseo.data.isNetworkAdmin?this.site.blog_id?this.site.blog_id==="network"&&e.network?!1:this.site.blog_id==="network"&&!e.network:!0:!1},isLoading(e){return!!this.doingAction[e.slug]},getSelectedActionObject(e){let o=null;return this.actions.forEach(n=>{const u=n.options.find(t=>t.value===e);u&&(o=u)}),o},maybeDoAction(e,o){if(this.currentAction=e,e.showModal){this.showAreYouSureModal=!0;return}this.doAction(o)},doAction(e){this.doingAction[this.currentAction.slug]=!0,this.showAreYouSureModal=!1,this.doingActionKey++,this.toolsStore.doTask({action:this.currentAction.slug,siteId:this.site.blog_id,data:e}).then(()=>{console.log(`Action "${this.currentAction.label}" has been completed.`)}).catch(o=>{console.error(`Action "${this.currentAction.label}" could not be completed: `,o)}).finally(()=>{this.doingAction[this.currentAction.slug]=!1,this.doingActionKey++})}},beforeMount(){var o;let e=-1;if(this.rootStore.aioseo.data.v3Options&&(e=this.tabs.findIndex(n=>n.slug.toLowerCase()==="migrations"),e!==-1)){const n=this.$t.sprintf('<a href="%1$s" target="_blank">Scheduled Actions</a>',this.rootStore.aioseo.urls.admin.scheduledActions);this.tabs[e].actions.push({label:"Rerun V3 Migration",slug:"restart-v3-migration",shortDescription:"This action restarts the migration from V3 to V4.",longDescription:this.$t.sprintf("All settings will be migrated immediately. However, the post/term meta needs to be migrated via a routine which runs in batches via Action Scheduler. To speed up the post/term meta migration, go to %1$s and run the <code>aioseo_migrate_post_meta</code> or <code>aioseo_migrate_term_meta</code> action.",n),infoComponent:"MigrationInfo",showModal:!0})}(o=this.extraActions)!=null&&o.length&&this.extraActions.forEach(n=>{if(e=this.tabs.findIndex(u=>u.slug.toLowerCase()===n.slug.toLowerCase()),e!==-1){this.tabs[e].actions=this.tabs[e].actions.concat(n.actions);return}this.tabs.push(n)})}},ge={class:"aioseo-tools-debug"},_e={key:0,class:"aioseo-settings-row"},be={class:"select-site"},fe=["innerHTML"],we=["innerHTML"],Ae=["innerHTML"],ve={class:"aioseo-modal-body"},ye=["innerHTML"];function ke(e,o,n,u,t,r){const c=a("core-network-site-selector"),b=a("core-alert"),y=a("core-main-tabs"),f=a("base-button"),_=a("core-settings-row"),k=a("svg-close"),S=a("core-modal"),x=a("core-card");return i(),h("div",ge,[g(x,{slug:"debug","header-text":t.strings.cardLabel},{default:d(()=>[u.rootStore.aioseo.data.isNetworkAdmin?(i(),h("div",_e,[l("div",be,m(t.strings.selectSite),1),g(c,{onSelectedSite:o[0]||(o[0]=s=>t.site=s),"show-network":""})])):A("",!0),g(b,{type:"yellow"},{default:d(()=>[l("div",null,m(t.strings.alertWarning),1),l("div",{innerHTML:t.alertLink},null,8,fe)]),_:1}),(i(),p(y,{internal:"",key:t.tabsKey,tabs:r.tabs,active:t.activeTab,showSaveButton:!1,onChanged:o[1]||(o[1]=s=>t.activeTab=s)},null,8,["tabs","active"])),(i(!0),h(M,null,T(r.activeTabObject.actions,(s,L)=>(i(),p(_,{key:t.activeTab+L,name:s.label,align:""},{content:d(()=>[s.component?(i(),p(C(s.component),{key:0,onUpdate:$=>r.maybeDoAction(s,$),loading:t.doingAction[s.slug],disabled:r.isActionDisabled(s)},null,40,["onUpdate","loading","disabled"])):(i(),p(f,{type:"blue",size:"medium",onClick:$=>r.maybeDoAction(s),loading:t.doingAction[s.slug],key:t.doingActionKey,disabled:r.isActionDisabled(s)},{default:d(()=>[w(m(t.strings.buttonLabel),1)]),_:2},1032,["onClick","loading","disabled"])),l("div",{class:"aioseo-description",innerHTML:s.shortDescription},null,8,we),l("div",{class:"aioseo-description",innerHTML:s.longDescription},null,8,Ae),s.infoComponent?(i(),p(C(s.infoComponent),{key:2})):A("",!0)]),_:2},1032,["name"]))),128)),t.showAreYouSureModal?(i(),p(S,{key:1,"no-header":"",onClose:o[5]||(o[5]=s=>t.showAreYouSureModal=!1)},{body:d(()=>[l("div",ve,[l("button",{class:"close",onClick:o[3]||(o[3]=W(s=>t.showAreYouSureModal=!1,["stop"]))},[g(k,{onClick:o[2]||(o[2]=s=>t.showAreYouSureModal=!1)})]),l("h3",null,m(r.areYouSureTitle),1),l("div",{class:"description",innerHTML:t.strings.cannotBeUndone},null,8,ye),g(f,{type:"blue",size:"medium",onClick:r.doAction},{default:d(()=>[w(m(t.strings.yesDoAction),1)]),_:1},8,["onClick"]),g(f,{type:"gray",size:"medium",onClick:o[4]||(o[4]=s=>t.showAreYouSureModal=!1)},{default:d(()=>[w(m(t.strings.noChangedMind),1)]),_:1})])]),_:1})):A("",!0)]),_:1},8,["header-text"])])}const Se=v(he,[["render",ke]]),Ce={components:{Debug:Se}};function De(e,o,n,u,t,r){const c=a("debug",!0);return i(),p(c)}const Me=v(Ce,[["render",De]]),Te={setup(){return{rootStore:D()}},components:{BadBotBlocker:V,CoreMain:I,DatabaseTools:E,Debug:Me,HtaccessEditor:j,ImportExport:J,RobotsEditor:Q,SystemStatus:X,WpCode:Z},data(){return{strings:{pageName:this.rootStore.aioseo.data.isNetworkAdmin?this.$t.__("Network Tools",this.$td):this.$t.__("Tools",this.$td)}}},computed:{showSaveButton(){return this.$route.name!=="system-status"&&this.$route.name!=="import-export"&&this.$route.name!=="database-tools"&&this.$route.name!=="debug"&&this.$route.name!=="wp-code"}}};function $e(e,o,n,u,t,r){const c=a("core-main");return i(),p(c,{"page-name":t.strings.pageName,"show-save-button":r.showSaveButton},{default:d(()=>[(i(),p(C(e.$route.name)))]),_:1},8,["page-name","show-save-button"])}const Ht=v(Te,[["render",$e]]);export{Ht as default};
Save
Cancel