Your IP : 216.73.216.162


Current Path : /home/x/b/o/xbodynamge/namtation/wp-content/
Upload File :
Current File : /home/x/b/o/xbodynamge/namtation/wp-content/Main.23fb3b7e.js.tar

home/xbodynamge/dev/wp-content/plugins/all-in-one-seo-pack/dist/Lite/assets/js/Main.23fb3b7e.js000064400000040005151143241720026034 0ustar00import{u as $}from"./vue-router.fd2bb90e.js";import{u as C,f as H,c as Y,a as z}from"./index.4fea5b8a.js";import{C as W}from"./Index.ca647dcc.js";import K from"./DatabaseTools.5f312c02.js";import{B as N}from"./Checkbox.d4a94670.js";import"./translations.d159963e.js";import{_ as y}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as A,s as k}from"./default-i18n.20001971.js";import{v as a,o as n,c as l,G as S,N as M,H as g,l as u,x as w,t as m,a as p,k as b,b as D,u as L,q as O,J as G,f as V}from"./runtime-dom.esm-bundler.baf35205.js";import{C as P,S as q}from"./Caret.7cc96622.js";import{C as F}from"./Card.9a64d2e2.js";import{C as j}from"./Tabs.4288f191.js";import{C as J}from"./Index.6b9f2f83.js";import{C as Q}from"./Upload.db608241.js";import{C as X}from"./SettingsRow.70a7af04.js";import{G as Z,a as ee}from"./Row.c7b7fb90.js";import{D as te}from"./datetime.f197aeae.js";import{u as E}from"./ToolsStore.81d292fb.js";import oe from"./HtaccessEditor.60478a24.js";import se from"./ImportExport.2f7b546c.js";import ne from"./RobotsEditor.81782e1c.js";import ie from"./SystemStatus.43166121.js";import re from"./WpCode.7f8118a6.js";import{u as ae}from"./RobotsTxt.5899f1cb.js";import"./helpers.114e9c35.js";import"./license.ae04185d.js";import"./upperFirst.eafa5318.js";import"./toString.bbd66337.js";import"./allowed.269a2007.js";/* empty css             */import"./params.af7ed354.js";import"./Header.4306fee2.js";import"./addons.e13ca687.js";import"./LicenseKeyBar.3caf4ec6.js";import"./ScrollTo.81bea8a7.js";import"./LogoGear.383c5312.js";import"./AnimatedNumber.572be72b.js";import"./numbers.9fc174f3.js";import"./Logo.a16dfa01.js";import"./index.7fee6f1a.js";import"./Support.8462f1d2.js";import"./date.a0d85d51.js";import"./constants.a8a14dc3.js";import"./Url.41ca37be.js";import"./Exclamation.a4801e64.js";import"./Gear.9759526d.js";import"./Slide.1db617da.js";import"./Network.eb4407d5.js";import"./ToolsSettings.9dc45d4f.js";import"./Checkmark.b35299d3.js";import"./Blur.601d8ea8.js";import"./Index.a6ae6538.js";import"./RequiredPlans.8c29f2e8.js";import"./Tooltip.70b51a50.js";import"./ProBadge.2e262a91.js";import"./Information.8cb16b63.js";import"./Editor.683d2097.js";import"./isEqual.5e2458d5.js";import"./_baseIsEqual.6ad153a3.js";import"./_getTag.423682f1.js";import"./_baseClone.8bb70b4f.js";import"./_arrayEach.6af5abac.js";import"./Plus.d91e5f23.js";import"./History.e25227b5.js";import"./Refresh.4b0d6fa0.js";import"./Radio.2d9be588.js";import"./Download.7a5bbc25.js";import"./regex.8a6101c0.js";import"./vuedraggable.umd.724fe865.js";import"./UnwantedBots.cd10ba6c.js";import"./RadioToggle.c3ae1828.js";import"./Ellipse.14cb5809.js";import"./External.49bc8f29.js";import"./Row.8ed26877.js";const R="all-in-one-seo-pack",le={emits:["update"],setup(){return{rootStore:C(),addonsStore:H()}},components:{BaseCheckbox:N},props:{loading:Boolean,disabled:Boolean},data(){return{selectedAddons:{},strings:{runAction:A("Run Action",R),noAddons:A("There are no active addons at the moment.",R)}}},computed:{activeAddons(){return this.addonsStore.addons.filter(t=>t.isActive)},selectedSkus(){return Object.keys(this.selectedAddons).filter(t=>this.selectedAddons[t])}}},ce={class:"aioseo-addons-list"},de={key:1};function ue(t,o,s,c,e,r){const d=a("base-checkbox"),_=a("base-button");return n(),l("div",ce,[r.activeAddons.length>0?(n(),l(S,{key:0},[(n(!0),l(S,null,M(r.activeAddons,(h,v)=>(n(),l("div",{key:v},[g(d,{size:"medium",modelValue:e.selectedAddons[h.sku],"onUpdate:modelValue":f=>e.selectedAddons[h.sku]=f,disabled:s.disabled},{default:u(()=>[w(m(h.name),1)]),_:2},1032,["modelValue","onUpdate:modelValue","disabled"])]))),128)),p("div",null,[g(_,{type:"blue",size:"medium",onClick:o[0]||(o[0]=h=>t.$emit("update",r.selectedSkus)),loading:s.loading,disabled:s.disabled||r.selectedSkus.length===0},{default:u(()=>[w(m(e.strings.runAction),1)]),_:1},8,["loading","disabled"])])],64)):(n(),l("b",de,m(e.strings.noAddons),1))])}const pe=y(le,[["render",ue],["__scopeId","data-v-fbb0de3d"]]),me="all-in-one-seo-pack",ge={emits:["update"],setup(){return{rootStore:C()}},components:{BaseCheckbox:N,GridColumn:Z,GridRow:ee},props:{loading:Boolean,disabled:Boolean},data(){return{options:{},strings:{updateOptions:A("Update Options",me)}}},mounted(){this.rootStore.aioseo.deprecatedOptions.forEach(t=>{t.enabled&&(this.options[t.value]=!0)})}},he={class:"aioseo-deprecated-options"},_e=p("br",null,null,-1),be=p("br",null,null,-1),fe=p("br",null,null,-1);function Ae(t,o,s,c,e,r){const d=a("base-checkbox"),_=a("grid-column"),h=a("grid-row"),v=a("base-button");return n(),l("div",he,[g(h,{class:"settings"},{default:u(()=>[(n(!0),l(S,null,M(c.rootStore.aioseo.deprecatedOptions,(f,T)=>(n(),b(_,{key:T,xl:"6",sm:"12"},{default:u(()=>[g(d,{size:"medium",modelValue:e.options[f.value],"onUpdate:modelValue":x=>e.options[f.value]=x,disabled:s.disabled},{default:u(()=>[w(m(f.label),1)]),_:2},1032,["modelValue","onUpdate:modelValue","disabled"])]),_:2},1024))),128))]),_:1}),_e,g(v,{type:"blue",size:"medium",onClick:o[0]||(o[0]=f=>t.$emit("update",e.options)),loading:s.loading,disabled:s.disabled},{default:u(()=>[w(m(e.strings.updateOptions),1)]),_:1},8,["loading","disabled"]),be,fe])}const we=y(ge,[["render",Ae]]),ve={setup(){return{optionsStore:Y()}},computed:{infoItems(){return[{label:"Migrated Version",value:this.optionsStore.internalOptions.internal.migratedVersion},{label:"First Activated",value:this.optionsStore.internalOptions.internal.firstActivated!==0?te.fromMillis(this.optionsStore.internalOptions.internal.firstActivated*1e3).toFormat("MMMM d, yyyy"):!1}]}}},ke={class:"v3-migration-info aioseo-description"},Se={class:"info-items"},ye={key:0},De={key:1};function Ce(t,o,s,c,e,r){return n(),l("div",ke,[p("ul",Se,[(n(!0),l(S,null,M(r.infoItems,(d,_)=>(n(),l("li",{key:_},[d.value?(n(),l("span",ye,m(d.label),1)):D("",!0),d.value?(n(),l("span",De,m(d.value),1)):D("",!0)]))),128))])])}const Me=y(ve,[["render",Ce]]),Te={class:"aioseo-writing-assistant"},xe={__name:"WritingAssistant",setup(t){const o=E(),s="all-in-one-seo-pack",c={resetLogins:A("Reset SEOBoost Logins",s)};let e=!1;const r=()=>{confirm(A("Are you sure you want to reset SEOBoost logins?",s))&&(e=!0,o.doTask({action:"aioseo-reset-seoboost-logins"}).finally(()=>{alert(A("SEOBoost logins have been reset.",s)),e=!1}))};return(d,_)=>{const h=a("base-button");return n(),l("div",Te,[g(h,{type:"blue",size:"medium",onClick:r,loading:L(e),disabled:L(e)},{default:u(()=>[w(m(c.resetLogins),1)]),_:1},8,["loading","disabled"])])}}},Le={setup(){return{rootStore:C(),toolsStore:E()}},components:{AddonsList:pe,CoreAlert:P,CoreCard:F,CoreMainTabs:j,CoreModal:J,CoreNetworkSiteSelector:Q,CoreSettingsRow:X,DeprecatedOptions:we,MigrationInfo:Me,SvgClose:q,WritingAssistant:xe},props:{extraActions:{type:Array,required:!1}},data(){return{site:{},tabsKey:0,doingActionKey:0,activeTab:"general",currentAction:"",currentData:{},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:z.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 t=k('<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>":"",s=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.${s}`,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:k("To speed up the image scan, go to %1$s and run the <code>aioseo_image_sitemap_scan</code> action.",t),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},{label:"Rerun Migrations for Active Addons",slug:"rerun-addon-migrations",shortDescription:"This action will rerun all update migrations for the selected addons.",longDescription:"",showModal:!0,component:"addons-list"}]},{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:k("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.",t),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"}]},{slug:"writing-assistant",name:"Writing Assistant",actions:[{label:"Writing Assistant",slug:"writing-assistant",shortDescription:"Resets all users SEOBoost logins.",longDescription:"",showModal:!1,component:"writing-assistant"}]}]},activeTabObject(){return this.tabs.find(t=>t.slug===this.activeTab)}},methods:{isActionDisabled(t){return this.rootStore.aioseo.data.isNetworkAdmin?this.site.blog_id?this.site.blog_id==="network"&&t.network?!1:this.site.blog_id==="network"&&!t.network:!0:!1},isLoading(t){return!!this.doingAction[t.slug]},getSelectedActionObject(t){let o=null;return this.actions.forEach(s=>{const c=s.options.find(e=>e.value===t);c&&(o=c)}),o},maybeDoAction(t,o){if(this.currentAction=t,this.currentData=o,t.showModal){this.showAreYouSureModal=!0;return}this.doAction(o)},doAction(t){this.doingAction[this.currentAction.slug]=!0,this.showAreYouSureModal=!1,this.doingActionKey++,this.toolsStore.doTask({action:this.currentAction.slug,siteId:this.site.blog_id||this.rootStore.aioseo.data.currentBlogId,data:t}).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 t=-1;if(this.rootStore.aioseo.data.v3Options&&(t=this.tabs.findIndex(s=>s.slug.toLowerCase()==="migrations"),t!==-1)){const s=k('<a href="%1$s" target="_blank">Scheduled Actions</a>',this.rootStore.aioseo.urls.admin.scheduledActions);this.tabs[t].actions.push({label:"Rerun V3 Migration",slug:"restart-v3-migration",shortDescription:"This action restarts the migration from V3 to V4.",longDescription:k("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.",s),infoComponent:"MigrationInfo",showModal:!0})}(o=this.extraActions)!=null&&o.length&&this.extraActions.forEach(s=>{if(t=this.tabs.findIndex(c=>c.slug.toLowerCase()===s.slug.toLowerCase()),t!==-1){this.tabs[t].actions=this.tabs[t].actions.concat(s.actions);return}this.tabs.push(s)})}},Oe={class:"aioseo-tools-debug"},Be={key:0,class:"aioseo-settings-row"},Ve={class:"select-site"},Re=["innerHTML"],Ne=["innerHTML"],Ee=["innerHTML"],Ie={class:"aioseo-modal-body"},Ue=["innerHTML"];function $e(t,o,s,c,e,r){const d=a("core-network-site-selector"),_=a("core-alert"),h=a("core-main-tabs"),v=a("base-button"),f=a("core-settings-row"),T=a("svg-close"),x=a("core-modal"),I=a("core-card");return n(),l("div",Oe,[g(I,{slug:"debug","header-text":e.strings.cardLabel},{default:u(()=>[c.rootStore.aioseo.data.isNetworkAdmin?(n(),l("div",Be,[p("div",Ve,m(e.strings.selectSite),1),g(d,{onSelectedSite:o[0]||(o[0]=i=>e.site=i),"show-network":""})])):D("",!0),g(_,{type:"yellow"},{default:u(()=>[p("div",null,m(e.strings.alertWarning),1),p("div",{innerHTML:e.alertLink},null,8,Re)]),_:1}),(n(),b(h,{internal:"",key:e.tabsKey,tabs:r.tabs,active:e.activeTab,showSaveButton:!1,onChanged:o[1]||(o[1]=i=>e.activeTab=i)},null,8,["tabs","active"])),(n(!0),l(S,null,M(r.activeTabObject.actions,(i,U)=>(n(),b(f,{key:e.activeTab+U,name:i.label,align:""},{content:u(()=>[i.component?(n(),b(O(i.component),{key:0,onUpdate:B=>r.maybeDoAction(i,B),loading:e.doingAction[i.slug],disabled:r.isActionDisabled(i)},null,40,["onUpdate","loading","disabled"])):(n(),b(v,{type:"blue",size:"medium",onClick:B=>r.maybeDoAction(i),loading:e.doingAction[i.slug],key:e.doingActionKey,disabled:r.isActionDisabled(i)},{default:u(()=>[w(m(e.strings.buttonLabel),1)]),_:2},1032,["onClick","loading","disabled"])),p("div",{class:"aioseo-description",innerHTML:i.shortDescription},null,8,Ne),p("div",{class:"aioseo-description",innerHTML:i.longDescription},null,8,Ee),i.infoComponent?(n(),b(O(i.infoComponent),{key:2})):D("",!0)]),_:2},1032,["name"]))),128)),g(x,{show:e.showAreYouSureModal,"no-header":"",onClose:o[6]||(o[6]=i=>e.showAreYouSureModal=!1),classes:["aioseo-debug-modal"]},{body:u(()=>[p("div",Ie,[p("button",{class:"close",onClick:o[3]||(o[3]=G(i=>e.showAreYouSureModal=!1,["stop"]))},[g(T,{onClick:o[2]||(o[2]=i=>e.showAreYouSureModal=!1)})]),p("h3",null,m(r.areYouSureTitle),1),p("div",{class:"description",innerHTML:e.strings.cannotBeUndone},null,8,Ue),g(v,{type:"blue",size:"medium",onClick:o[4]||(o[4]=i=>r.doAction(e.currentData))},{default:u(()=>[w(m(e.strings.yesDoAction),1)]),_:1}),g(v,{type:"gray",size:"medium",onClick:o[5]||(o[5]=i=>e.showAreYouSureModal=!1)},{default:u(()=>[w(m(e.strings.noChangedMind),1)]),_:1})])]),_:1},8,["show"])]),_:1},8,["header-text"])])}const He=y(Le,[["render",$e]]),Ye={components:{Debug:He}};function ze(t,o,s,c,e,r){const d=a("debug",!0);return n(),b(d)}const We=y(Ye,[["render",ze]]),uo={__name:"Main",setup(t){const o=C(),s=$(),c=V(()=>{switch(s.name){case"database-tools":return K;case"debug":return We;case"htaccess-editor":return oe;case"import-export":return se;case"system-status":return ie;case"wp-code":return re;default:return ne}});ae();const e="all-in-one-seo-pack",r=V(()=>s.name!=="system-status"&&s.name!=="import-export"&&s.name!=="database-tools"&&s.name!=="debug"&&s.name!=="wp-code"),d={pageName:o.aioseo.data.isNetworkAdmin?A("Network Tools",e):A("Tools",e)};return(_,h)=>(n(),b(L(W),{"page-name":d.pageName,"show-save-button":r.value},{default:u(()=>[(n(),b(O(c.value)))]),_:1},8,["page-name","show-save-button"]))}};export{uo as default};
xbodynamge/namtation/wp-content/plugins/all-in-one-seo-pack/dist/Lite/assets/js/Main.23fb3b7e.js000064400000040005151144361350027174 0ustar00homeimport{u as $}from"./vue-router.fd2bb90e.js";import{u as C,f as H,c as Y,a as z}from"./index.4fea5b8a.js";import{C as W}from"./Index.ca647dcc.js";import K from"./DatabaseTools.5f312c02.js";import{B as N}from"./Checkbox.d4a94670.js";import"./translations.d159963e.js";import{_ as y}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as A,s as k}from"./default-i18n.20001971.js";import{v as a,o as n,c as l,G as S,N as M,H as g,l as u,x as w,t as m,a as p,k as b,b as D,u as L,q as O,J as G,f as V}from"./runtime-dom.esm-bundler.baf35205.js";import{C as P,S as q}from"./Caret.7cc96622.js";import{C as F}from"./Card.9a64d2e2.js";import{C as j}from"./Tabs.4288f191.js";import{C as J}from"./Index.6b9f2f83.js";import{C as Q}from"./Upload.db608241.js";import{C as X}from"./SettingsRow.70a7af04.js";import{G as Z,a as ee}from"./Row.c7b7fb90.js";import{D as te}from"./datetime.f197aeae.js";import{u as E}from"./ToolsStore.81d292fb.js";import oe from"./HtaccessEditor.60478a24.js";import se from"./ImportExport.2f7b546c.js";import ne from"./RobotsEditor.81782e1c.js";import ie from"./SystemStatus.43166121.js";import re from"./WpCode.7f8118a6.js";import{u as ae}from"./RobotsTxt.5899f1cb.js";import"./helpers.114e9c35.js";import"./license.ae04185d.js";import"./upperFirst.eafa5318.js";import"./toString.bbd66337.js";import"./allowed.269a2007.js";/* empty css             */import"./params.af7ed354.js";import"./Header.4306fee2.js";import"./addons.e13ca687.js";import"./LicenseKeyBar.3caf4ec6.js";import"./ScrollTo.81bea8a7.js";import"./LogoGear.383c5312.js";import"./AnimatedNumber.572be72b.js";import"./numbers.9fc174f3.js";import"./Logo.a16dfa01.js";import"./index.7fee6f1a.js";import"./Support.8462f1d2.js";import"./date.a0d85d51.js";import"./constants.a8a14dc3.js";import"./Url.41ca37be.js";import"./Exclamation.a4801e64.js";import"./Gear.9759526d.js";import"./Slide.1db617da.js";import"./Network.eb4407d5.js";import"./ToolsSettings.9dc45d4f.js";import"./Checkmark.b35299d3.js";import"./Blur.601d8ea8.js";import"./Index.a6ae6538.js";import"./RequiredPlans.8c29f2e8.js";import"./Tooltip.70b51a50.js";import"./ProBadge.2e262a91.js";import"./Information.8cb16b63.js";import"./Editor.683d2097.js";import"./isEqual.5e2458d5.js";import"./_baseIsEqual.6ad153a3.js";import"./_getTag.423682f1.js";import"./_baseClone.8bb70b4f.js";import"./_arrayEach.6af5abac.js";import"./Plus.d91e5f23.js";import"./History.e25227b5.js";import"./Refresh.4b0d6fa0.js";import"./Radio.2d9be588.js";import"./Download.7a5bbc25.js";import"./regex.8a6101c0.js";import"./vuedraggable.umd.724fe865.js";import"./UnwantedBots.cd10ba6c.js";import"./RadioToggle.c3ae1828.js";import"./Ellipse.14cb5809.js";import"./External.49bc8f29.js";import"./Row.8ed26877.js";const R="all-in-one-seo-pack",le={emits:["update"],setup(){return{rootStore:C(),addonsStore:H()}},components:{BaseCheckbox:N},props:{loading:Boolean,disabled:Boolean},data(){return{selectedAddons:{},strings:{runAction:A("Run Action",R),noAddons:A("There are no active addons at the moment.",R)}}},computed:{activeAddons(){return this.addonsStore.addons.filter(t=>t.isActive)},selectedSkus(){return Object.keys(this.selectedAddons).filter(t=>this.selectedAddons[t])}}},ce={class:"aioseo-addons-list"},de={key:1};function ue(t,o,s,c,e,r){const d=a("base-checkbox"),_=a("base-button");return n(),l("div",ce,[r.activeAddons.length>0?(n(),l(S,{key:0},[(n(!0),l(S,null,M(r.activeAddons,(h,v)=>(n(),l("div",{key:v},[g(d,{size:"medium",modelValue:e.selectedAddons[h.sku],"onUpdate:modelValue":f=>e.selectedAddons[h.sku]=f,disabled:s.disabled},{default:u(()=>[w(m(h.name),1)]),_:2},1032,["modelValue","onUpdate:modelValue","disabled"])]))),128)),p("div",null,[g(_,{type:"blue",size:"medium",onClick:o[0]||(o[0]=h=>t.$emit("update",r.selectedSkus)),loading:s.loading,disabled:s.disabled||r.selectedSkus.length===0},{default:u(()=>[w(m(e.strings.runAction),1)]),_:1},8,["loading","disabled"])])],64)):(n(),l("b",de,m(e.strings.noAddons),1))])}const pe=y(le,[["render",ue],["__scopeId","data-v-fbb0de3d"]]),me="all-in-one-seo-pack",ge={emits:["update"],setup(){return{rootStore:C()}},components:{BaseCheckbox:N,GridColumn:Z,GridRow:ee},props:{loading:Boolean,disabled:Boolean},data(){return{options:{},strings:{updateOptions:A("Update Options",me)}}},mounted(){this.rootStore.aioseo.deprecatedOptions.forEach(t=>{t.enabled&&(this.options[t.value]=!0)})}},he={class:"aioseo-deprecated-options"},_e=p("br",null,null,-1),be=p("br",null,null,-1),fe=p("br",null,null,-1);function Ae(t,o,s,c,e,r){const d=a("base-checkbox"),_=a("grid-column"),h=a("grid-row"),v=a("base-button");return n(),l("div",he,[g(h,{class:"settings"},{default:u(()=>[(n(!0),l(S,null,M(c.rootStore.aioseo.deprecatedOptions,(f,T)=>(n(),b(_,{key:T,xl:"6",sm:"12"},{default:u(()=>[g(d,{size:"medium",modelValue:e.options[f.value],"onUpdate:modelValue":x=>e.options[f.value]=x,disabled:s.disabled},{default:u(()=>[w(m(f.label),1)]),_:2},1032,["modelValue","onUpdate:modelValue","disabled"])]),_:2},1024))),128))]),_:1}),_e,g(v,{type:"blue",size:"medium",onClick:o[0]||(o[0]=f=>t.$emit("update",e.options)),loading:s.loading,disabled:s.disabled},{default:u(()=>[w(m(e.strings.updateOptions),1)]),_:1},8,["loading","disabled"]),be,fe])}const we=y(ge,[["render",Ae]]),ve={setup(){return{optionsStore:Y()}},computed:{infoItems(){return[{label:"Migrated Version",value:this.optionsStore.internalOptions.internal.migratedVersion},{label:"First Activated",value:this.optionsStore.internalOptions.internal.firstActivated!==0?te.fromMillis(this.optionsStore.internalOptions.internal.firstActivated*1e3).toFormat("MMMM d, yyyy"):!1}]}}},ke={class:"v3-migration-info aioseo-description"},Se={class:"info-items"},ye={key:0},De={key:1};function Ce(t,o,s,c,e,r){return n(),l("div",ke,[p("ul",Se,[(n(!0),l(S,null,M(r.infoItems,(d,_)=>(n(),l("li",{key:_},[d.value?(n(),l("span",ye,m(d.label),1)):D("",!0),d.value?(n(),l("span",De,m(d.value),1)):D("",!0)]))),128))])])}const Me=y(ve,[["render",Ce]]),Te={class:"aioseo-writing-assistant"},xe={__name:"WritingAssistant",setup(t){const o=E(),s="all-in-one-seo-pack",c={resetLogins:A("Reset SEOBoost Logins",s)};let e=!1;const r=()=>{confirm(A("Are you sure you want to reset SEOBoost logins?",s))&&(e=!0,o.doTask({action:"aioseo-reset-seoboost-logins"}).finally(()=>{alert(A("SEOBoost logins have been reset.",s)),e=!1}))};return(d,_)=>{const h=a("base-button");return n(),l("div",Te,[g(h,{type:"blue",size:"medium",onClick:r,loading:L(e),disabled:L(e)},{default:u(()=>[w(m(c.resetLogins),1)]),_:1},8,["loading","disabled"])])}}},Le={setup(){return{rootStore:C(),toolsStore:E()}},components:{AddonsList:pe,CoreAlert:P,CoreCard:F,CoreMainTabs:j,CoreModal:J,CoreNetworkSiteSelector:Q,CoreSettingsRow:X,DeprecatedOptions:we,MigrationInfo:Me,SvgClose:q,WritingAssistant:xe},props:{extraActions:{type:Array,required:!1}},data(){return{site:{},tabsKey:0,doingActionKey:0,activeTab:"general",currentAction:"",currentData:{},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:z.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 t=k('<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>":"",s=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.${s}`,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:k("To speed up the image scan, go to %1$s and run the <code>aioseo_image_sitemap_scan</code> action.",t),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},{label:"Rerun Migrations for Active Addons",slug:"rerun-addon-migrations",shortDescription:"This action will rerun all update migrations for the selected addons.",longDescription:"",showModal:!0,component:"addons-list"}]},{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:k("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.",t),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"}]},{slug:"writing-assistant",name:"Writing Assistant",actions:[{label:"Writing Assistant",slug:"writing-assistant",shortDescription:"Resets all users SEOBoost logins.",longDescription:"",showModal:!1,component:"writing-assistant"}]}]},activeTabObject(){return this.tabs.find(t=>t.slug===this.activeTab)}},methods:{isActionDisabled(t){return this.rootStore.aioseo.data.isNetworkAdmin?this.site.blog_id?this.site.blog_id==="network"&&t.network?!1:this.site.blog_id==="network"&&!t.network:!0:!1},isLoading(t){return!!this.doingAction[t.slug]},getSelectedActionObject(t){let o=null;return this.actions.forEach(s=>{const c=s.options.find(e=>e.value===t);c&&(o=c)}),o},maybeDoAction(t,o){if(this.currentAction=t,this.currentData=o,t.showModal){this.showAreYouSureModal=!0;return}this.doAction(o)},doAction(t){this.doingAction[this.currentAction.slug]=!0,this.showAreYouSureModal=!1,this.doingActionKey++,this.toolsStore.doTask({action:this.currentAction.slug,siteId:this.site.blog_id||this.rootStore.aioseo.data.currentBlogId,data:t}).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 t=-1;if(this.rootStore.aioseo.data.v3Options&&(t=this.tabs.findIndex(s=>s.slug.toLowerCase()==="migrations"),t!==-1)){const s=k('<a href="%1$s" target="_blank">Scheduled Actions</a>',this.rootStore.aioseo.urls.admin.scheduledActions);this.tabs[t].actions.push({label:"Rerun V3 Migration",slug:"restart-v3-migration",shortDescription:"This action restarts the migration from V3 to V4.",longDescription:k("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.",s),infoComponent:"MigrationInfo",showModal:!0})}(o=this.extraActions)!=null&&o.length&&this.extraActions.forEach(s=>{if(t=this.tabs.findIndex(c=>c.slug.toLowerCase()===s.slug.toLowerCase()),t!==-1){this.tabs[t].actions=this.tabs[t].actions.concat(s.actions);return}this.tabs.push(s)})}},Oe={class:"aioseo-tools-debug"},Be={key:0,class:"aioseo-settings-row"},Ve={class:"select-site"},Re=["innerHTML"],Ne=["innerHTML"],Ee=["innerHTML"],Ie={class:"aioseo-modal-body"},Ue=["innerHTML"];function $e(t,o,s,c,e,r){const d=a("core-network-site-selector"),_=a("core-alert"),h=a("core-main-tabs"),v=a("base-button"),f=a("core-settings-row"),T=a("svg-close"),x=a("core-modal"),I=a("core-card");return n(),l("div",Oe,[g(I,{slug:"debug","header-text":e.strings.cardLabel},{default:u(()=>[c.rootStore.aioseo.data.isNetworkAdmin?(n(),l("div",Be,[p("div",Ve,m(e.strings.selectSite),1),g(d,{onSelectedSite:o[0]||(o[0]=i=>e.site=i),"show-network":""})])):D("",!0),g(_,{type:"yellow"},{default:u(()=>[p("div",null,m(e.strings.alertWarning),1),p("div",{innerHTML:e.alertLink},null,8,Re)]),_:1}),(n(),b(h,{internal:"",key:e.tabsKey,tabs:r.tabs,active:e.activeTab,showSaveButton:!1,onChanged:o[1]||(o[1]=i=>e.activeTab=i)},null,8,["tabs","active"])),(n(!0),l(S,null,M(r.activeTabObject.actions,(i,U)=>(n(),b(f,{key:e.activeTab+U,name:i.label,align:""},{content:u(()=>[i.component?(n(),b(O(i.component),{key:0,onUpdate:B=>r.maybeDoAction(i,B),loading:e.doingAction[i.slug],disabled:r.isActionDisabled(i)},null,40,["onUpdate","loading","disabled"])):(n(),b(v,{type:"blue",size:"medium",onClick:B=>r.maybeDoAction(i),loading:e.doingAction[i.slug],key:e.doingActionKey,disabled:r.isActionDisabled(i)},{default:u(()=>[w(m(e.strings.buttonLabel),1)]),_:2},1032,["onClick","loading","disabled"])),p("div",{class:"aioseo-description",innerHTML:i.shortDescription},null,8,Ne),p("div",{class:"aioseo-description",innerHTML:i.longDescription},null,8,Ee),i.infoComponent?(n(),b(O(i.infoComponent),{key:2})):D("",!0)]),_:2},1032,["name"]))),128)),g(x,{show:e.showAreYouSureModal,"no-header":"",onClose:o[6]||(o[6]=i=>e.showAreYouSureModal=!1),classes:["aioseo-debug-modal"]},{body:u(()=>[p("div",Ie,[p("button",{class:"close",onClick:o[3]||(o[3]=G(i=>e.showAreYouSureModal=!1,["stop"]))},[g(T,{onClick:o[2]||(o[2]=i=>e.showAreYouSureModal=!1)})]),p("h3",null,m(r.areYouSureTitle),1),p("div",{class:"description",innerHTML:e.strings.cannotBeUndone},null,8,Ue),g(v,{type:"blue",size:"medium",onClick:o[4]||(o[4]=i=>r.doAction(e.currentData))},{default:u(()=>[w(m(e.strings.yesDoAction),1)]),_:1}),g(v,{type:"gray",size:"medium",onClick:o[5]||(o[5]=i=>e.showAreYouSureModal=!1)},{default:u(()=>[w(m(e.strings.noChangedMind),1)]),_:1})])]),_:1},8,["show"])]),_:1},8,["header-text"])])}const He=y(Le,[["render",$e]]),Ye={components:{Debug:He}};function ze(t,o,s,c,e,r){const d=a("debug",!0);return n(),b(d)}const We=y(Ye,[["render",ze]]),uo={__name:"Main",setup(t){const o=C(),s=$(),c=V(()=>{switch(s.name){case"database-tools":return K;case"debug":return We;case"htaccess-editor":return oe;case"import-export":return se;case"system-status":return ie;case"wp-code":return re;default:return ne}});ae();const e="all-in-one-seo-pack",r=V(()=>s.name!=="system-status"&&s.name!=="import-export"&&s.name!=="database-tools"&&s.name!=="debug"&&s.name!=="wp-code"),d={pageName:o.aioseo.data.isNetworkAdmin?A("Network Tools",e):A("Tools",e)};return(_,h)=>(n(),b(L(W),{"page-name":d.pageName,"show-save-button":r.value},{default:u(()=>[(n(),b(O(c.value)))]),_:1},8,["page-name","show-save-button"]))}};export{uo as default};