PluginProbe
WPIDE – File Manager & Code Editor / 3.5.9
WPIDE – File Manager & Code Editor v3.5.9
3.5.9 3.5.8 3.5.7 2.0.14 2.0.15 2.0.16 2.0.2 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1 2.2 2.3 2.3.1 2.3.2 2.4.0 2.5 2.6 3.0 3.1 3.2 3.3 All 55 releases
← All changes | dist/js/app.js +11 -3 3.33.5.9 View file →
@@ -1,5 +1,13 @@
1 -(()=>{var e,t,n,i,a,o={2380:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});n(8309),n(561);const i={name:"Header",data:function(){return{showSidebar:!1,notices:window.WPIDE.notices}},computed:{accountLinks:function(){return window.WPIDE.account_links}},watch:{"$store.state.config.general.skin":function(e){this.updateSkinLink(e)},"$store.state.config.general.dark_mode":function(e){this.updateWpAdminSkin(e)}},mounted:function(){this.notices.length&&this.toggleNotices(),this.updateWpAdminSkin(),document.body.addEventListener("wpide_notice_removed",this.onNoticeRemoved,!1)},beforeDestroy:function(){document.body.removeEventListener("wpide_notice_removed",this.onNoticeRemoved,!1)},methods:{onNoticeRemoved:function(e){var t=e.detail;this.notices.splice(t,1)},noticeIcon:function(e){return"error"===e?"bg-danger-dim ni-report":"warning"===e?"bg-warning-dim ni-alert":"success"===e?"bg-success-dim ni-check-circle":"bg-primary-dim ni-info"},toggleNotices:function(){this.showSidebar=!this.showSidebar},setSkin:function(e){this.updateConfig("general.skin",e)},updateSkinLink:function(e){var t="wpide-skin-css",n=document.getElementById(t);if("default"!==e){var i=window.WPIDE.skins_url+"theme-"+e+".css";if(n)n.href=i;else{var a=document.createElement("link");a.id=t,a.rel="stylesheet",a.href=i,document.body.appendChild(a)}}else n&&n.remove()},updateWpAdminSkin:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(e=e||this.getConfig("general.dark_mode"))?document.body.classList.add("dark-mode"):document.body.classList.remove("dark-mode")}}};const a=(0,n(1001).Z)(i,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"nk-header nk-header-fixed is-light"},[t("div",{staticClass:"container-fluid"},[t("div",{staticClass:"nk-header-wrap"},[t("div",{staticClass:"nk-header-app-name"},[t("div",{staticClass:"nk-header-app-logo"},[t("a",{staticClass:"navbar-item logo",on:{click:function(t){return e.goTo("file-manager")}}},[t("em",{staticClass:"icon ni",class:e.pageIcon})])]),t("div",{staticClass:"nk-header-app-info"},[t("span",{staticClass:"sub-text",domProps:{textContent:e._s(e.pluginInfo("name"))}}),t("span",{staticClass:"lead-text",domProps:{textContent:e._s(e.pageTitle)}})])]),t("div",{staticClass:"nk-header-tools"},[t("b-nav",{staticClass:"nk-quick-nav"},[t("b-nav-item-dropdown",{staticClass:"list-apps-dropdown",attrs:{"toggle-class":"nk-quick-nav-icon","menu-class":"dropdown-menu-md list-apps",right:""},scopedSlots:e._u([{key:"button-content",fn:function(){return[t("div",{staticClass:"icon-status icon-status-na"},[t("em",{staticClass:"icon ni ni-menu-circled"})])]},proxy:!0},{key:"default",fn:function(){return[e._l(e.$router.options.routes,(function(n){return[n.module?t("b-dropdown-item",{key:n.name,attrs:{to:e.routePath(n.name)}},[t("span",{staticClass:"list-apps-media"},[t("em",{staticClass:"icon ni bg-primary-dim",class:n.icon})]),t("span",{staticClass:"list-apps-title",domProps:{textContent:e._s(n.meta.title||n.name)}})]):e._e()]}))]},proxy:!0}])}),t("li",{staticClass:"nav-item"},[t("b-link",{staticClass:"nk-quick-nav-icon",on:{click:function(t){return t.preventDefault(),e.toggleNotices.apply(null,arguments)}}},[t("div",{staticClass:"d-inline-flex",class:{"icon-status icon-status-danger":e.notices.length>0}},[t("em",{staticClass:"icon ni ni-bell"})])])],1),t("b-nav-item-dropdown",{staticClass:"user-dropdown mr-n1",attrs:{"menu-class":"dropdown-menu-md",right:""},scopedSlots:e._u([{key:"button-content",fn:function(){return[t("div",{staticClass:"user-toggle"},[t("div",{staticClass:"user-avatar sm"},[t("em",{staticClass:"icon ni ni-user-alt"})])])]},proxy:!0},{key:"default",fn:function(){return[t("div",[t("div",{staticClass:"dropdown-inner user-card-wrap bg-lighter d-none d-md-block"},[t("div",{staticClass:"user-card"},[t("div",{staticClass:"user-avatar"},[t("img",{attrs:{src:e.$store.state.user.avatar}})]),t("div",{staticClass:"user-info"},[t("span",{staticClass:"lead-text",domProps:{textContent:e._s(e.$store.state.user.name)}}),t("span",{staticClass:"sub-text",domProps:{textContent:e._s(e.$store.state.user.email)}})])])]),t("div",{staticClass:"dropdown-inner"},[t("ul",{staticClass:"link-list account-links",attrs:{vertical:""}},[t("b-dropdown-item",{on:{click:function(t){return e.goTo("settings")}}},[t("em",{staticClass:"icon ni ni-setting"}),t("span",[e._v(e._s(e.__("Settings","wpide")))])]),e._l(e.accountLinks,(function(n){return t("b-dropdown-item",{key:n.id,attrs:{href:n.url}},[t("em",{staticClass:"icon ni",class:n.icon}),t("span",[e._v(e._s(n.title))])])}))],2)]),t("div",{staticClass:"dropdown-inner"},[t("ul",{staticClass:"link-list",attrs:{vertical:""}},[t("b-dropdown-item",[t("div",{staticClass:"nk-opt-set"},[t("div",{staticClass:"nk-opt-set-title"},[e._v(" "+e._s(e.__("Skin","wpide"))+" ")]),t("div",{staticClass:"nk-opt-list"},[t("div",{staticClass:"nk-opt-item",class:{active:e.configIs("skin","default")},on:{click:function(t){return e.setSkin("default")}}},[t("span",{staticClass:"nk-opt-item-bg"},[t("span",{staticClass:"skin-default"})]),t("span",{staticClass:"nk-opt-item-name"},[e._v("Default")])]),t("div",{staticClass:"nk-opt-item",class:{active:e.configIs("skin","blue")},on:{click:function(t){return e.setSkin("blue")}}},[t("span",{staticClass:"nk-opt-item-bg"},[t("span",{staticClass:"skin-blue"})]),t("span",{staticClass:"nk-opt-item-name"},[e._v("Blue")])]),t("div",{staticClass:"nk-opt-item",class:{active:e.configIs("skin","egyptian")},on:{click:function(t){return e.setSkin("egyptian")}}},[t("span",{staticClass:"nk-opt-item-bg"},[t("span",{staticClass:"skin-egyptian"})]),t("span",{staticClass:"nk-opt-item-name"},[e._v("Egyptian")])]),t("div",{staticClass:"nk-opt-item",class:{active:e.configIs("skin","green")},on:{click:function(t){return e.setSkin("green")}}},[t("span",{staticClass:"nk-opt-item-bg"},[t("span",{staticClass:"skin-green"})]),t("span",{staticClass:"nk-opt-item-name"},[e._v("Green")])]),t("div",{staticClass:"nk-opt-item",class:{active:e.configIs("skin","purple")},on:{click:function(t){return e.setSkin("purple")}}},[t("span",{staticClass:"nk-opt-item-bg"},[t("span",{staticClass:"skin-purple"})]),t("span",{staticClass:"nk-opt-item-name"},[e._v("Purple")])]),t("div",{staticClass:"nk-opt-item",class:{active:e.configIs("skin","red")},on:{click:function(t){return e.setSkin("red")}}},[t("span",{staticClass:"nk-opt-item-bg"},[t("span",{staticClass:"skin-red"})]),t("span",{staticClass:"nk-opt-item-name"},[e._v("Red")])])])])])],1)]),t("div",{staticClass:"dropdown-inner"},[t("ul",{staticClass:"link-list",attrs:{vertical:""}},[t("b-dropdown-item",[t("div",{staticClass:"nk-opt-set"},[t("div",{staticClass:"nk-opt-set-title"},[e._v(" Skin Mode ")]),t("div",{staticClass:"nk-opt-list col-2x"},[t("div",{staticClass:"nk-opt-item",class:{active:!e.getConfig("general.dark_mode")},on:{click:function(t){return e.updateConfig("general.dark_mode",!1)}}},[t("span",{staticClass:"nk-opt-item-bg is-light"},[t("span",{staticClass:"theme-light"})]),t("span",{staticClass:"nk-opt-item-name"},[e._v("Light Skin")])]),t("div",{staticClass:"nk-opt-item",class:{active:e.getConfig("general.dark_mode")},on:{click:function(t){return e.updateConfig("general.dark_mode",!0)}}},[t("span",{staticClass:"nk-opt-item-bg"},[t("span",{staticClass:"theme-dark"})]),t("span",{staticClass:"nk-opt-item-name"},[e._v("Dark Skin")])])])])])],1)])])]},proxy:!0}])})],1)],1)])]),t("b-sidebar",{attrs:{id:"notices",title:"Notices","sidebar-class":"border-left nk-sidebar",width:"30vw",visible:e.showSidebar,"bg-variant":"","header-class":"dropdown-head",right:"",backdrop:"",shadow:""},on:{hidden:function(t){e.showSidebar=!1}}},[e.notices.length?t("div",{ref:"notices",staticClass:"nk-notification"},e._l(e.notices,(function(n,i){return t("div",{key:i,staticClass:"nk-notification-item dropdown-inner"},[t("div",{staticClass:"nk-notification-icon"},[t("em",{staticClass:"icon icon-circle ni",class:e.noticeIcon(n.type)})]),t("div",{staticClass:"nk-notification-content"},[t("div",{staticClass:"nk-notification-text",domProps:{innerHTML:e._s(n.content)}})])])})),0):t("div",{staticClass:"nk-notification"},[t("div",{staticClass:"nk-notification-item dropdown-inner"},[t("div",{staticClass:"nk-notification-icon"},[t("em",{staticClass:"icon icon-circle ni",class:e.noticeIcon("info")})]),t("div",{staticClass:"nk-notification-content"},[t("div",{staticClass:"nk-notification-text",domProps:{textContent:e._s(e.__("Nothing yet!","wpide"))}})])])])])],1)}),[],!1,null,"f3e1fac0",null).exports},8996:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});const i={name:"Loading",props:["show"]};const a=(0,n(1001).Z)(i,(function(){var e=this;return(0,e._self._c)("div",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],staticClass:"loading"},[e._m(0)])}),[function(){var e=this._self._c;return e("div",{staticClass:"center"},[e("div",{staticClass:"spinner-border text-primary",attrs:{role:"status"}})])}],!1,null,"a58d7696",null).exports},5799:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});n(2772),n(1539),n(8783),n(3948);const i={name:"Modal",data:function(){return{cssVars:null,shown:!1}},computed:{modal:function(){return this.$store.state.modal},getComponent:function(){var e=this.modal.component;return function(){return n(3417)("./".concat(e))}},preventClosing:function(){return this.arg("preventClosing",!1)}},watch:{shown:function(){this.setCssVars()},"modal.title":function(){this.setCssVars()}},mounted:function(){this.setCssVars()},methods:{setCssVars:function(){if(this.shown&&this.modal.enabled&&this.$el&&this.$el.querySelector){var e=this.$el.querySelector(".modal-header"),t=this.$el.querySelector(".modal-footer");this.cssVars={"--wpide-modal-header-height":(e?e.clientHeight:0)+"px","--wpide-modal-footer-height":(t?t.clientHeight:0)+"px"};var n=new Event("resize");window.dispatchEvent(n)}},arg:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.modal.args.hasOwnProperty(e)?this.modal.args[e]:t},enterHandler:function(e){this.okHandler(e),this.hideModal()},okHandler:function(e){this.preventClosing&&e.preventDefault(),this.modal.args.ok&&this.modal.args.ok(e)},cancelHandler:function(e){this.modal.args.cancel&&this.modal.args.cancel(e)},hideHandler:function(e){this.modal.args.hide&&this.modal.args.hide(e)},hiddenHandler:function(e){this.preventClosing||(this.modal.enabled=!1,this.shown=!1),this.modal.args.hide&&this.modal.args.hidden(e)},showHandler:function(e){this.modal.args.show&&this.modal.args.show(e)},shownHandler:function(e){if(this.shown=!0,this.$refs.modal.$el){var t=this.$refs.modal.$el.querySelector("input");t&&t.focus()}this.modal.args.shown&&this.modal.args.shown(e)}}};const a=(0,n(1001).Z)(i,(function(){var e=this,t=e._self._c;return e.modal.enabled?t("b-modal",{ref:"modal",staticClass:"modal-outer",style:e.cssVars,attrs:{static:!0,"no-close-on-esc":e.arg("noCloseOnEsc",!0),"no-close-on-backdrop":e.arg("noCloseOnBackdrop",!0),"cancel-variant":"secondary","header-class":"modal-header-sm","footer-class":"modal-footer-sm bg-light",title:e.modal.title,"hide-header":e.arg("hideHeader",!1),"hide-footer":e.arg("hideFooter",!1),"cancel-disabled":e.arg("cancelDisabled"),"cancel-title":e.arg("cancelTitle"),"ok-title":e.arg("okTitle"),"ok-only":e.arg("okOnly"),"ok-variant":e.arg("okOnly")?"secondary":e.arg("okVariant","primary"),"modal-class":e.arg("modalClass"),"dialog-class":e.arg("dialogClass"),"body-class":e.arg("bodyClass"),size:e.arg("size"),scrollable:e.arg("scrollable",!0)},on:{ok:e.okHandler,cancel:e.cancelHandler,hide:e.hideHandler,hidden:e.hiddenHandler,show:e.showHandler,shown:e.shownHandler},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.enterHandler.apply(null,arguments)}},scopedSlots:e._u([{key:"modal-header",fn:function(n){var i=n.close;return[t("h5",{staticClass:"modal-title"},[e.arg("showTitleSpinner")?t("em",{staticClass:"icon ni ni-loader ni-spin-anim mr-1"}):e._e(),e._v(" "+e._s(e.modal.title)+" ")]),t("a",{staticClass:"close",attrs:{href:"#","data-dismiss":"modal","aria-label":"Close"},on:{click:function(e){return i()}}},[t("em",{staticClass:"icon ni ni-cross"})])]}}],null,!1,2412642083),model:{value:e.modal.enabled,callback:function(t){e.$set(e.modal,"enabled",t)},expression:"modal.enabled"}},[e.modal.component?t(e.getComponent,e._b({tag:"component"},"component",e.modal.props,!1)):e._e()],1):e._e()}),[],!1,null,null,null).exports},8898:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});n(1539),n(8309);var i=n(967),a=n(9575);const o={getConfig:function(){return new Promise((function(e,t){i.Z.get("getconfig").then((function(t){return e(t)})).catch((function(e){return t(e)}))}))},getUser:function(){return new Promise((function(e,t){i.Z.get("getuser").then((function(t){i.Z.defaults.headers.common["x-csrf-token"]=t.headers["x-csrf-token"],e(t.data.data)})).catch((function(e){return t(e)}))}))},changeDir:function(e){return new Promise((function(t,n){i.Z.post("changedir",{to:e.to}).then((function(e){return t(e.data.data)})).catch((function(e){return n(e)}))}))},getDir:function(e){return new Promise((function(t,n){i.Z.post("getdir",{dir:e.dir,root:e.root||!1}).then((function(e){return t(e.data.data)})).catch((function(e){return n(e)}))}))},getDirSize:function(e){return new Promise((function(t,n){i.Z.post("getdirsize",{dir:e.dir}).then((function(e){return t(e.data.data)})).catch((function(e){return n(e)}))}))},copyItems:function(e){return new Promise((function(t,n){i.Z.post("copyitems",{destination:e.destination,items:e.items}).then((function(e){return t(e.data.data)})).catch((function(e){return n(e)}))}))},moveItems:function(e){return new Promise((function(t,n){i.Z.post("moveitems",{destination:e.destination,items:e.items}).then((function(e){return t(e.data.data)})).catch((function(e){return n(e)}))}))},renameItem:function(e){return new Promise((function(t,n){i.Z.post("renameitem",{from:e.from,to:e.to,destination:e.destination}).then((function(e){return t(e.data.data)})).catch((function(e){return n(e)}))}))},batchDownload:function(e){return new Promise((function(t,n){i.Z.post("batchdownload",{items:e.items,zipaction:e.zipaction,uniqid:e.uniqid||null,destination:e.destination}).then((function(e){return t(e.data.data)})).catch((function(e){return n(e)}))}))},batchDownloadCancelled:function(e){return new Promise((function(t,n){i.Z.delete("batchdownload",{data:{uniqid:e}}).then((function(e){return t(e.data.data)})).catch((function(e){return n(e)}))}))},zipItems:function(e){return new Promise((function(t,n){i.Z.post("zipitems",{items:e.items,zipaction:e.zipaction,uniqid:e.uniqid||null,name:e.name,destination:e.destination}).then((function(e){return t(e.data.data)})).catch((function(e){return n(e)}))}))},unzipItem:function(e){return new Promise((function(t,n){i.Z.post("unzipitem",{item:e.item,destination:e.destination}).then((function(e){return t(e.data.data)})).catch((function(e){return n(e)}))}))},removeItems:function(e){return new Promise((function(t,n){i.Z.post("deleteitems",{items:e.items}).then((function(e){return t(e.data.data)})).catch((function(e){return n(e)}))}))},createNew:function(e){return new Promise((function(t,n){i.Z.post("createnew",{type:e.type,name:e.name,destination:e.destination}).then((function(e){return t(e.data.data)})).catch((function(e){return n(e)}))}))},downloadItem:function(e){return new Promise((function(t,n){i.Z.get("download&path="+encodeURIComponent(a.Base64.encode(e.path)),{transformResponse:[function(e){return e}]}).then((function(e){return t(e.data)})).catch((function(e){return n(e)}))}))},getImageState:function(e){return new Promise((function(t,n){i.Z.get("getimagestate&id="+e).then((function(e){return t(e.data)})).catch((function(e){return n(e)}))}))},revertImage:function(e){return new Promise((function(t,n){i.Z.post("revertimage",{item:e.item}).then((function(e){return t(e.data)})).catch((function(e){return n(e)}))}))},updateConfig:function(e){return new Promise((function(t,n){i.Z.post("updateconfig",{config:e}).then((function(e){return t(e.data.data)})).catch((function(e){return n(e)}))}))},saveContent:function(e){return new Promise((function(t,n){i.Z.post("savecontent",{item:e.item,content:e.content,state:e.state||null}).then((function(e){return t(e.data)})).catch((function(e){return n(e)}))}))},getTables:function(){return new Promise((function(e,t){i.Z.post("db/gettables").then((function(t){return e(t.data)})).catch((function(e){return t(e)}))}))},getTableRows:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,a){i.Z.post("db/gettablerows",{table:e,page:t.page||1,per_page:t.per_page||20,search_value:t.search_value||null,search_field:t.search_field||null}).then((function(e){return n(e.data)})).catch((function(e){return a(e)}))}))},getTableStructure:function(e){return new Promise((function(t,n){i.Z.post("db/gettablestructure",{table:e}).then((function(e){return t(e.data)})).catch((function(e){return n(e)}))}))},saveTableRow:function(e,t,n,a,o){return new Promise((function(s,r){i.Z.post("db/savetablerow",{table:e,id:t,row:n,is_new:a,is_structure:o}).then((function(e){return s(e.data)})).catch((function(e){return r(e)}))}))},deleteTableRows:function(e,t,n){return new Promise((function(a,o){i.Z.post("db/deletetablerows",{table:e,ids:t,is_structure:n}).then((function(e){return a(e.data)})).catch((function(e){return o(e)}))}))},createTable:function(e){return new Promise((function(t,n){i.Z.post("db/createtable",{table:e}).then((function(e){return t(e.data)})).catch((function(e){return n(e)}))}))},dropTable:function(e){return new Promise((function(t,n){i.Z.post("db/droptable",{table:e}).then((function(e){return t(e.data)})).catch((function(e){return n(e)}))}))},emptyTable:function(e){return new Promise((function(t,n){i.Z.post("db/emptytable",{table:e}).then((function(e){return t(e.data)})).catch((function(e){return n(e)}))}))}}},967:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});n(2564),n(1539);var i=n(9669),a=n.n(i),o=n(9071),s=a().create({withCredentials:!0,baseURL:window.WPIDE.ajax_url,headers:{"Content-Type":"application/json"}}),r=0;s.interceptors.response.use((function(e){return e}),(function(e){switch(e.response.status){case 400:case 401:case 402:case 403:window.location.href=window.WPIDE.admin_url;break;case 422:case 500:if(++r>=2)window.location.reload();else{var t=new CustomEvent("wpide_error",{detail:e});document.body.dispatchEvent(t)}setTimeout((function(){r=0}),500)}return Promise.reject(e)}));(0,o.ConcurrencyManager)(s,5);const l=s},9153:(e,t,n)=>{"use strict";n(6992),n(8674),n(9601),n(7727),n(8309),n(1539),n(2564),n(8131);var i=n(144),a=n(2482),o=(n(4916),n(5306),n(8996)),s=n(2380),r=n(5799);const l={name:"App",components:{Loading:o.default,Header:s.default,Modal:r.default},computed:{appClasses:function(){return(0,a.Z)({"dark-mode":this.getConfig("general.dark_mode"),"modal-enabled":this.$store.state.modal.enabled},(this.$route.name||"").toLowerCase().replace(" ","-"),!0)}}};const c=(0,n(1001).Z)(l,(function(){var e=this,t=e._self._c;return t("div",{ref:"app",staticClass:"nk-app-root",class:e.appClasses},[t("div",{staticClass:"nk-main"},[t("div",{staticClass:"nk-wrap"},[e.$store.state.initialized?t("Header"):e._e(),t("div",{staticClass:"nk-content p-0"},[e.$store.state.initialized?t("Modal"):e._e(),t("Loading",{attrs:{show:e.isLoading}}),e.$store.state.initialized?t("div",{staticClass:"nk-content-inner"},[t("div",{staticClass:"nk-content-body"},[!e.is("guest")||e.can("write")||e.can("read")||e.can("upload")?t("div",{staticClass:"nk-fmg-body"},[t("keep-alive",[t("router-view")],1)],1):t("div",{staticClass:"nk-fmg-body"},[e._v(" "+e._s(e.__("No Permissions","wpide"))+" ")])])]):e._e()],1)],1)])])}),[],!1,null,null,null).exports;n(8783),n(3948);var d=n(8345),u=n(2319),m=n(9696);i.default.use(d.Z);var g=(0,u.O)("wpide_routes",[{path:"/file-manager/",alias:"/",name:"file-manager",meta:{title:(0,m.__)("File Manager","wpide")},icon:"ni-folder",component:function(){return n.e(535).then(n.bind(n,2609))},module:!0,config:"file"},{path:"/file-editor",name:"file-editor",meta:{title:(0,m.__)("File Editor","wpide")},icon:"ni-edit",component:function(){return n.e(535).then(n.bind(n,2609))},module:!0},{path:"/db-manager",name:"db-manager",meta:{title:(0,m.__)("Database Manager","wpide")},icon:"ni-db",
1 +(()=>{var e,t,n,i={15974(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>s});n(62010),n(50113),n(54554),n(18111),n(20116),n(26099);const i={name:"Header",data:function(){return{showSidebar:!1,notices:window.WPIDE.notices}},computed:{accountLinks:function(){return window.WPIDE.account_links},contactUrl:function(){var e;return null===(e=this.accountLinks.find(function(e){return"contact"===e.id}))||void 0===e?void 0:e.url}},watch:{"$store.state.config.general.skin":function(e){this.updateSkinLink(e)},"$store.state.config.general.dark_mode":function(e){this.updateWpAdminSkin(e)}},mounted:function(){this.notices.length&&this.toggleNotices(),this.updateWpAdminSkin(),document.body.addEventListener("wpide_notice_removed",this.onNoticeRemoved,!1)},beforeDestroy:function(){document.body.removeEventListener("wpide_notice_removed",this.onNoticeRemoved,!1)},methods:{onNoticeRemoved:function(e){var t=e.detail;this.notices.splice(t,1)},noticeIcon:function(e){return"error"===e?"bg-danger-dim ni-report":"warning"===e?"bg-warning-dim ni-alert":"success"===e?"bg-success-dim ni-check-circle":"bg-primary-dim ni-info"},toggleNotices:function(){this.showSidebar=!this.showSidebar},setSkin:function(e){this.updateConfig("general.skin",e)},updateSkinLink:function(e){var t="wpide-skin-css",n=document.getElementById(t);if("default"!==e){var i=window.WPIDE.skins_url+"theme-"+e+".css";if(n)n.href=i;else{var a=document.createElement("link");a.id=t,a.rel="stylesheet",a.href=i,document.body.appendChild(a)}}else n&&n.remove()},updateWpAdminSkin:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(e=e||this.getConfig("general.dark_mode"))?document.body.classList.add("dark-mode"):document.body.classList.remove("dark-mode")}}},a=i;var o=(0,n(81656).A)(a,function(){var e=this,t=e._self._c;return t("div",{staticClass:"nk-header nk-header-fixed is-light"},[t("div",{staticClass:"container-fluid"},[t("div",{staticClass:"nk-header-wrap"},[t("div",{staticClass:"nk-header-app-name"},[t("div",{staticClass:"nk-header-app-logo"},[t("a",{staticClass:"navbar-item logo",attrs:{href:"#"},on:{click:function(t){return e.goTo("file-manager")}}},[t("em",{staticClass:"icon ni",class:e.pageIcon})])]),t("div",{staticClass:"nk-header-app-info"},[t("span",{staticClass:"sub-text"},[e._v(e._s(e.pluginInfo("name"))+" - v"+e._s(e.pluginInfo("version")))]),t("span",{staticClass:"lead-text",domProps:{textContent:e._s(e.pageTitle)}})])]),t("div",{staticClass:"nk-header-tools"},[t("b-nav",{staticClass:"nk-quick-nav"},[e.upgradeUrl?t("li",{staticClass:"nav-item d-none d-sm-block"},[t("b-link",{staticClass:"mr-1 btn btn-sm btn-outline-primary",attrs:{href:e.upgradeUrl}},[t("em",{staticClass:"icon ni ni-star mr-1"}),t("strong",[e._v(e._s(e.__("Go Pro","wpide")))]),t("em",{staticClass:"icon ni ni-star ml-1"})])],1):e._e(),t("b-nav-item-dropdown",{staticClass:"list-apps-dropdown",attrs:{"toggle-class":"nk-quick-nav-icon","menu-class":"dropdown-menu-md list-apps",right:""},scopedSlots:e._u([{key:"button-content",fn:function(){return[t("div",{staticClass:"icon-status icon-status-na"},[t("em",{staticClass:"icon ni ni-menu-circled"})])]},proxy:!0},{key:"default",fn:function(){return[e._l(e.$router.options.routes,function(n){return[n.module?t("b-dropdown-item",{key:n.name,attrs:{to:e.routePath(n.name)}},[t("span",{staticClass:"list-apps-media"},[t("em",{staticClass:"icon ni bg-primary-dim",class:n.icon})]),t("span",{staticClass:"list-apps-title",domProps:{textContent:e._s(n.meta.title||n.name)}})]):e._e()]}),t("b-dropdown-item",{attrs:{href:e.contactUrl}},[t("span",{staticClass:"list-apps-media"},[t("em",{staticClass:"icon ni bg-danger-dim icon ni ni-plus"})]),t("span",{staticClass:"list-apps-title",domProps:{textContent:e._s(e.__("Request Module","wpide"))}})])]},proxy:!0}])}),t("li",{staticClass:"nav-item"},[t("b-link",{staticClass:"nk-quick-nav-icon",on:{click:function(t){return t.preventDefault(),e.toggleNotices.apply(null,arguments)}}},[t("div",{staticClass:"d-inline-flex",class:{"icon-status icon-status-danger":e.notices.length>0}},[t("em",{staticClass:"icon ni ni-bell"})])])],1),t("b-nav-item-dropdown",{staticClass:"user-dropdown mr-n1",attrs:{"menu-class":"dropdown-menu-md",right:""},scopedSlots:e._u([{key:"button-content",fn:function(){return[t("div",{staticClass:"user-toggle"},[t("div",{staticClass:"user-avatar sm"},[t("em",{staticClass:"icon ni ni-user-alt"})])])]},proxy:!0},{key:"default",fn:function(){return[t("div",[t("div",{staticClass:"dropdown-inner user-card-wrap bg-lighter d-none d-md-block"},[t("div",{staticClass:"user-card"},[t("div",{staticClass:"user-avatar"},[t("img",{attrs:{src:e.$store.state.user.avatar}})]),t("div",{staticClass:"user-info"},[t("span",{staticClass:"lead-text",domProps:{textContent:e._s(e.$store.state.user.name)}}),t("span",{staticClass:"sub-text",domProps:{textContent:e._s(e.$store.state.user.email)}})])])]),t("div",{staticClass:"dropdown-inner"},[t("ul",{staticClass:"link-list account-links",attrs:{vertical:""}},[t("b-dropdown-item",{on:{click:function(t){return e.goTo("settings")}}},[t("em",{staticClass:"icon ni ni-setting"}),t("span",[e._v(e._s(e.__("Settings","wpide")))])]),e.showLicenseMenu?t("li",[t("span",{staticClass:"activate-license wpide"},[t("a",{staticClass:"dropdown-item",attrs:{href:"#"}},[t("em",{staticClass:"icon ni ni-lock"}),t("span",[e._v(e._s(e.__("License","wpide")))])])])]):e._e(),e._l(e.accountLinks,function(n){return t("b-dropdown-item",{key:n.id,class:n.class?n.class:null,attrs:{href:n.url,target:n.external?"_blank":null}},[t("em",{staticClass:"icon ni",class:n.icon}),t("span",[e._v(e._s(n.title))])])})],2)]),t("div",{staticClass:"dropdown-inner"},[t("ul",{staticClass:"link-list",attrs:{vertical:""}},[t("b-dropdown-item",[t("div",{staticClass:"nk-opt-set"},[t("div",{staticClass:"nk-opt-set-title"},[e._v(" "+e._s(e.__("Skin","wpide"))+" ")]),t("div",{staticClass:"nk-opt-list"},[t("div",{staticClass:"nk-opt-item",class:{active:e.configIs("skin","default")},on:{click:function(t){return e.setSkin("default")}}},[t("span",{staticClass:"nk-opt-item-bg"},[t("span",{staticClass:"skin-default"})]),t("span",{staticClass:"nk-opt-item-name"},[e._v("Default")])]),t("div",{staticClass:"nk-opt-item",class:{active:e.configIs("skin","blue")},on:{click:function(t){return e.setSkin("blue")}}},[t("span",{staticClass:"nk-opt-item-bg"},[t("span",{staticClass:"skin-blue"})]),t("span",{staticClass:"nk-opt-item-name"},[e._v("Blue")])]),t("div",{staticClass:"nk-opt-item",class:{active:e.configIs("skin","egyptian")},on:{click:function(t){return e.setSkin("egyptian")}}},[t("span",{staticClass:"nk-opt-item-bg"},[t("span",{staticClass:"skin-egyptian"})]),t("span",{staticClass:"nk-opt-item-name"},[e._v("Egyptian")])]),t("div",{staticClass:"nk-opt-item",class:{active:e.configIs("skin","green")},on:{click:function(t){return e.setSkin("green")}}},[t("span",{staticClass:"nk-opt-item-bg"},[t("span",{staticClass:"skin-green"})]),t("span",{staticClass:"nk-opt-item-name"},[e._v("Green")])]),t("div",{staticClass:"nk-opt-item",class:{active:e.configIs("skin","purple")},on:{click:function(t){return e.setSkin("purple")}}},[t("span",{staticClass:"nk-opt-item-bg"},[t("span",{staticClass:"skin-purple"})]),t("span",{staticClass:"nk-opt-item-name"},[e._v("Purple")])]),t("div",{staticClass:"nk-opt-item",class:{active:e.configIs("skin","red")},on:{click:function(t){return e.setSkin("red")}}},[t("span",{staticClass:"nk-opt-item-bg"},[t("span",{staticClass:"skin-red"})]),t("span",{staticClass:"nk-opt-item-name"},[e._v("Red")])])])])])],1)]),t("div",{staticClass:"dropdown-inner"},[t("ul",{staticClass:"link-list",attrs:{vertical:""}},[t("b-dropdown-item",[t("div",{staticClass:"nk-opt-set"},[t("div",{staticClass:"nk-opt-set-title"},[e._v(" Skin Mode ")]),t("div",{staticClass:"nk-opt-list col-2x"},[t("div",{staticClass:"nk-opt-item",class:{active:!e.getConfig("general.dark_mode")},on:{click:function(t){return e.updateConfig("general.dark_mode",!1)}}},[t("span",{staticClass:"nk-opt-item-bg is-light"},[t("span",{staticClass:"theme-light"})]),t("span",{staticClass:"nk-opt-item-name"},[e._v("Light Skin")])]),t("div",{staticClass:"nk-opt-item",class:{active:e.getConfig("general.dark_mode")},on:{click:function(t){return e.updateConfig("general.dark_mode",!0)}}},[t("span",{staticClass:"nk-opt-item-bg"},[t("span",{staticClass:"theme-dark"})]),t("span",{staticClass:"nk-opt-item-name"},[e._v("Dark Skin")])])])])])],1)])])]},proxy:!0}])})],1)],1)])]),t("b-sidebar",{attrs:{id:"notices",title:"Notices","sidebar-class":"border-left nk-sidebar",visible:e.showSidebar,"bg-variant":"","header-class":"dropdown-head",right:"",backdrop:"",shadow:""},on:{hidden:function(t){e.showSidebar=!1}}},[e.notices.length?t("div",{ref:"notices",staticClass:"nk-notification"},e._l(e.notices,function(n,i){return t("div",{key:i,staticClass:"nk-notification-item dropdown-inner"},[t("div",{staticClass:"nk-notification-icon"},[t("em",{staticClass:"icon icon-circle ni",class:e.noticeIcon(n.type)})]),t("div",{staticClass:"nk-notification-content"},[t("div",{staticClass:"nk-notification-text",domProps:{innerHTML:e._s(n.content)}})])])}),0):t("div",{staticClass:"nk-notification"},[t("div",{staticClass:"nk-notification-item dropdown-inner"},[t("div",{staticClass:"nk-notification-icon"},[t("em",{staticClass:"icon icon-circle ni",class:e.noticeIcon("info")})]),t("div",{staticClass:"nk-notification-content"},[t("div",{staticClass:"nk-notification-text",domProps:{textContent:e._s(e.__("Nothing yet!","wpide"))}})])])])])],1)},[],!1,null,"64eecba0",null);const s=o.exports},97275(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>a});const i={name:"Loading",props:["show"]};const a=(0,n(81656).A)(i,function(){var e=this;return(0,e._self._c)("div",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],staticClass:"loading"},[e._m(0)])},[function(){var e=this._self._c;return e("div",{staticClass:"center"},[e("div",{staticClass:"spinner-border text-primary",attrs:{role:"status"}})])}],!1,null,"ce322aea",null).exports},68512(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>r});n(25276);var i=n(7180);n(51629),n(62010),n(18111),n(7588),n(26099),n(47764),n(23500),n(62953),n(76031);const a={name:"Modal",data:function(){return{cssVars:null,shown:!1}},computed:{modal:function(){return this.$store.state.modal},getComponent:function(){var e=this.modal.component;return function(){return n(46971)("./".concat(e))}},preventClosing:function(){return this.arg("preventClosing",!1)}},watch:{shown:function(){this.setCssVars()},"modal.title":function(){this.setCssVars()}},mounted:function(){this.setCssVars()},methods:{setCssVars:function(){var e=this,t=this.modal.enabled?0:500;setTimeout(function(){var t={visibility:e.modal.enabled?"visible":"hidden"};if(e.shown&&e.modal.enabled&&e.$el&&e.$el.querySelector){var n=e.$el.querySelector(".modal-header"),a=e.$el.querySelector(".modal-footer");t=(0,i.A)((0,i.A)({},t),{},{"--wpide-modal-header-height":(n?n.clientHeight:0)+"px","--wpide-modal-footer-height":(a?a.clientHeight:0)+"px"});var o=new Event("resize");window.dispatchEvent(o)}e.cssVars=t},t)},initEventListeners:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.arg("events",[]).length&&this.arg("events",[]).forEach(function(n){t?e.$off(n.name,n.handler):e.$on(n.name,function(e){n.handler(e)})})},arg:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.modal.args.hasOwnProperty(e)?this.modal.args[e]:t},enterHandler:function(e){this.okHandler(e)},okHandler:function(e){this.preventClosing&&e.preventDefault(),this.modal.args.ok&&this.modal.args.ok(e)},cancelHandler:function(e){this.modal.args.cancel&&this.modal.args.cancel(e)},closeHandler:function(e){var t=this;this.modal.args.close&&setTimeout(function(){t.modal.args.close(e)},200)},hideHandler:function(e){this.modal.args.hide&&this.modal.args.hide(e)},hiddenHandler:function(e){this.preventClosing||(this.modal.enabled=!1,this.shown=!1),this.modal.args.hidden&&this.modal.args.hidden(e)},showHandler:function(e){this.modal.args.show&&this.modal.args.show(e)},shownHandler:function(e){if(this.shown=!0,this.$refs.modal.$el){var t=this.$refs.modal.$el.querySelector("input");t&&t.focus()}this.modal.args.shown&&this.modal.args.shown(e)}}},o=a;var s=(0,n(81656).A)(o,function(){var e=this,t=e._self._c;return t("b-modal",{ref:"modal",staticClass:"modal-outer",style:e.cssVars,attrs:{static:!0,"no-close-on-esc":e.arg("noCloseOnEsc",!0),"no-close-on-backdrop":e.arg("noCloseOnBackdrop",!0),"cancel-variant":"secondary","header-class":"modal-header-sm","footer-class":"modal-footer-sm bg-light",title:e.modal.title,"hide-header-close":e.arg("hideHeaderClose",!1),"hide-header":e.arg("hideHeader",!1),"hide-footer":e.arg("hideFooter",!1),"cancel-disabled":e.arg("cancelDisabled"),"cancel-title":e.arg("cancelTitle"),"ok-title":e.arg("okTitle"),"ok-only":e.arg("okOnly"),"ok-variant":e.arg("okOnly")?"secondary":e.arg("okVariant","primary"),"modal-class":e.arg("modalClass"),"dialog-class":e.arg("dialogClass"),"body-class":e.arg("bodyClass"),size:e.arg("size"),scrollable:e.arg("scrollable",!0)},on:{ok:e.okHandler,cancel:e.cancelHandler,close:e.closeHandler,hide:e.hideHandler,hidden:e.hiddenHandler,show:e.showHandler,shown:e.shownHandler},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.enterHandler.apply(null,arguments)}},scopedSlots:e._u([{key:"modal-header",fn:function(n){var i=n.close;return[t("h5",{staticClass:"modal-title"},[e.arg("showTitleSpinner")?t("em",{staticClass:"icon ni ni-loader ni-spin-anim mr-1"}):e._e(),e._v(" "+e._s(e.modal.title)+" ")]),e.arg("headerContent")?t("div",{staticClass:"float-md-end",domProps:{innerHTML:e._s(e.arg("headerContent"))}}):e._e(),e.arg("hideHeaderClose")?e._e():t("a",{staticClass:"close",attrs:{href:"#","data-dismiss":"modal","aria-label":"Close"},on:{click:function(e){return i()}}},[t("em",{staticClass:"icon ni ni-cross"})])]}},{key:"modal-footer",fn:function(n){var i=n.cancel,a=n.ok;return[e.arg("cancelTitle")?t("button",{staticClass:"btn btn-secondary",attrs:{type:"button"},domProps:{textContent:e._s(e.arg("cancelTitle"))},on:{click:i}}):e._e(),e._l(e.arg("extraButtons"),function(n,i){return t("button",{key:n.title+"-"+i,staticClass:"btn btn-secondary",attrs:{type:"button"},domProps:{textContent:e._s(n.title)},on:{click:n.handler}})}),e.arg("okTitle")?t("button",{staticClass:"btn btn-primary",attrs:{type:"button"},domProps:{textContent:e._s(e.arg("okTitle"))},on:{click:a}}):e._e()]}}]),model:{value:e.modal.enabled,callback:function(t){e.$set(e.modal,"enabled",t)},expression:"modal.enabled"}},[e.modal.component?t(e.getComponent,e._g(e._b({tag:"component"},"component",e.modal.props,!1),e.arg("events"))):e._e()],1)},[],!1,null,null,null);const r=s.exports},93956(e,t,n){"use strict";n.d(t,{A:()=>s});n(2008),n(62010),n(18111),n(22489),n(26099);var i=n(28781),a=n(8127),o={getConfig:function(){return new Promise(function(e,t){i.A.get("getconfig").then(function(t){return e(t)}).catch(function(e){return t(e)})})},getChangelog:function(){return new Promise(function(e,t){i.A.get("getchangelog").then(function(t){return e(t.data)}).catch(function(e){return t(e)})})},getUser:function(){return new Promise(function(e,t){i.A.get("getuser").then(function(t){i.A.defaults.headers.common["x-csrf-token"]=t.headers["x-csrf-token"],e(t.data.data)}).catch(function(e){return t(e)})})},changeDir:function(e){return new Promise(function(t,n){i.A.post("changedir",{to:e.to}).then(function(e){return t(e.data.data)}).catch(function(e){return n(e)})})},getDir:function(e){return new Promise(function(t,n){i.A.post("getdir",{dir:e.dir,filter:e.filter||null,root:e.root||!1}).then(function(e){return t(e.data.data)}).catch(function(e){return n(e)})})},getDirSize:function(e){return new Promise(function(t,n){i.A.post("getdirsize",{dir:e.dir}).then(function(e){return t(e.data.data)}).catch(function(e){return n(e)})})},copyItems:function(e){return new Promise(function(t,n){i.A.post("copyitems",{destination:e.destination,items:e.items}).then(function(e){return t(e.data.data)}).catch(function(e){return n(e)})})},moveItems:function(e){return new Promise(function(t,n){i.A.post("moveitems",{destination:e.destination,items:e.items}).then(function(e){return t(e.data.data)}).catch(function(e){return n(e)})})},renameItem:function(e){return new Promise(function(t,n){i.A.post("renameitem",{from:e.from,to:e.to,destination:e.destination}).then(function(e){return t(e.data.data)}).catch(function(e){return n(e)})})},batchDownload:function(e){return new Promise(function(t,n){i.A.post("batchdownload",{items:e.items,zipaction:e.zipaction,uniqid:e.uniqid||null,destination:e.destination}).then(function(e){return t(e.data.data)}).catch(function(e){return n(e)})})},batchDownloadCancelled:function(e){return new Promise(function(t,n){i.A.delete("batchdownload",{data:{uniqid:e}}).then(function(e){return t(e.data.data)}).catch(function(e){return n(e)})})},zipItems:function(e){return new Promise(function(t,n){i.A.post("zipitems",{items:e.items,zipaction:e.zipaction,uniqid:e.uniqid||null,name:e.name,destination:e.destination}).then(function(e){return t(e.data.data)}).catch(function(e){return n(e)})})},unzipItem:function(e){return new Promise(function(t,n){i.A.post("unzipitem",{item:e.item,destination:e.destination}).then(function(e){return t(e.data.data)}).catch(function(e){return n(e)})})},removeItems:function(e){return new Promise(function(t,n){i.A.post("deleteitems",{items:e.items}).then(function(e){return t(e.data.data)}).catch(function(e){return n(e)})})},createNew:function(e){return new Promise(function(t,n){i.A.post("createnew",{type:e.type,name:e.name,destination:e.destination}).then(function(e){return t(e.data.data)}).catch(function(e){return n(e)})})},downloadItem:function(e){return new Promise(function(t,n){i.A.get("download&path="+encodeURIComponent(a.Base64.encode(e.path)),{transformResponse:[function(e){return e}]}).then(function(e){return t(e.data)}).catch(function(e){return n(e)})})},getImageState:function(e){return new Promise(function(t,n){i.A.get("getimagestate&id="+e).then(function(e){return t(e.data)}).catch(function(e){return n(e)})})},revertImage:function(e){return new Promise(function(t,n){i.A.post("revertimage",{item:e.item}).then(function(e){return t(e.data)}).catch(function(e){return n(e)})})},updateConfig:function(e,t){return new Promise(function(n,a){i.A.post("updateconfig",{key:e,value:t}).then(function(e){return n(e.data.data)}).catch(function(e){return a(e)})})},saveContent:function(e){return new Promise(function(t,n){i.A.post("savecontent",{item:e.item,content:e.content,state:e.state||null}).then(function(e){return t(e.data.data)}).catch(function(e){return n(e)})})},autoSave:function(e,t){return new Promise(function(n,a){i.A.post("autosave/save",{id:e,content:t}).then(function(e){return n(e.data.data)}).catch(function(e){return a(e)})})},autoSaveGet:function(e){return new Promise(function(t,n){i.A.get("autosave/get&id="+e).then(function(e){return t(e.data.data)}).catch(function(e){return n(e)})})},autoSaveDelete:function(e){return new Promise(function(t,n){i.A.post("autosave/delete",{id:e}).then(function(e){return t(e.data.data)}).catch(function(e){return n(e)})})},getConfigConstants:function(){return new Promise(function(e,t){i.A.get("config/constants").then(function(t){return e(t.data.data)}).catch(function(e){return t(e)})})},deleteConfigConstant:function(e,t,n){return new Promise(function(a,o){i.A.post("config/constants/delete",{name:e,value:t,type:n}).then(function(e){return a(e.data.data)}).catch(function(e){return o(e)})})},saveConfigConstant:function(e,t,n,a,o,s){return new Promise(function(r,l){i.A.post("config/constants/save",{name:e,value:t,oldvalue:n,type:a,oldtype:o,new:s}).then(function(e){return r(e.data.data)}).catch(function(e){return l(e)})})},getTables:function(){return new Promise(function(e,t){i.A.post("db/gettables").then(function(t){return e(t.data)}).catch(function(e){return t(e)})})},getTableRows:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(n,a){i.A.post("db/gettablerows",{table:e,page:t.page||1,per_page:t.per_page||20,search_value:t.search_value||null,search_field:t.search_field||null}).then(function(e){return n(e.data)}).catch(function(e){return a(e)})})},getTableStructure:function(e){return new Promise(function(t,n){i.A.post("db/gettablestructure",{table:e}).then(function(e){return t(e.data)}).catch(function(e){return n(e)})})},saveTableRow:function(e,t,n,a,o){return new Promise(function(s,r){i.A.post("db/savetablerow",{table:e,id:t,row:n,is_new:a,is_structure:o}).then(function(e){return s(e.data)}).catch(function(e){return r(e)})})},deleteTableRows:function(e,t,n){return new Promise(function(a,o){i.A.post("db/deletetablerows",{table:e,ids:t,is_structure:n}).then(function(e){return a(e.data)}).catch(function(e){return o(e)})})},createTable:function(e){return new Promise(function(t,n){i.A.post("db/createtable",{table:e}).then(function(e){return t(e.data)}).catch(function(e){return n(e)})})},dropTable:function(e){return new Promise(function(t,n){i.A.post("db/droptable",{table:e}).then(function(e){return t(e.data)}).catch(function(e){return n(e)})})},emptyTable:function(e){return new Promise(function(t,n){i.A.post("db/emptytable",{table:e}).then(function(e){return t(e.data)}).catch(function(e){return n(e)})})}};const s=o},28781(e,t,n){"use strict";n.d(t,{A:()=>s});n(26099);var i=n(94335),a=n(33959),o=i.A.create({withCredentials:!0,baseURL:window.WPIDE.ajax_url,headers:{"Content-Type":"application/json"}});o.interceptors.response.use(function(e){return e},function(e){switch(e.response.status){case 400:case 401:case 402:case 403:window.location.href=window.WPIDE.admin_url;break;case 422:case 500:document.body.dispatchEvent(new CustomEvent("wpide_error",{detail:e}))}return Promise.reject(e)});(0,a.ConcurrencyManager)(o,5);const s=o},11752(e,t,n){"use strict";var i=n(47135),a=(n(23792),n(3362),n(69085),n(9391),n(76918),n(28706),n(2008),n(51629),n(23288),n(62010),n(18111),n(22489),n(7588),n(26099),n(38781),n(47764),n(11392),n(23500),n(62953),n(3296),n(27208),n(48408),n(14603),n(47566),n(98721),n(87608),n(85471)),o=n(59481),s=(n(27495),n(25440),n(97275)),r=n(15974),l=n(68512);const c={name:"App",components:{Loading:s.default,AppHeader:r.default,Modal:l.default},computed:{appClasses:function(){return(0,o.A)({"dark-mode":this.getConfig("general.dark_mode"),"modal-enabled":this.$store.state.modal.enabled,fullscreen:this.$fullscreen.isFullscreen},(this.$route.name||"").toLowerCase().replace(" ","-"),!0)}}};const d=(0,n(81656).A)(c,function(){var e=this,t=e._self._c;return t("div",{ref:"app",staticClass:"nk-app-root",class:e.appClasses},[t("div",{staticClass:"nk-main"},[t("div",{staticClass:"nk-wrap"},[e.$store.state.initialized?t("AppHeader"):e._e(),t("div",{staticClass:"nk-content p-0"},[e.$store.state.initialized?t("Modal"):e._e(),t("Loading",{attrs:{show:e.isLoading}}),e.$store.state.initialized?t("div",{staticClass:"nk-content-inner"},[t("div",{staticClass:"nk-content-body"},[!e.is("guest")||e.can("write")||e.can("read")||e.can("upload")?t("div",{staticClass:"nk-fmg-body"},[t("router-view")],1):t("div",{staticClass:"nk-fmg-body"},[e._v(" "+e._s(e.__("No Permissions","wpide"))+" ")])])]):e._e()],1)],1)])])},[],!1,null,null,null).exports;var u=n(40173),f=n(32487),m=n(72050);a.default.use(u.Ay);!function(){var e,t=(null===(e=window.WPIDE)||void 0===e||null===(e=e.plugin)||void 0===e?void 0:e.slug)||"wpide",n=new URL(window.location.href),a=n.searchParams.get("page");if(!n.hash&&a){var o=a.split("#"),s=(0,i.A)(o,2),r=s[0],l=s[1];r===t&&l&&(n.searchParams.set("page",r),n.hash=l.startsWith("/")?l:"/".concat(l),window.history.replaceState(window.history.state,document.title,n.toString()))}}();var g=(0,f.W5)("wpide_routes",[{path:"/file-manager/",alias:"/",name:"file-manager",meta:{title:(0,m.__)("File Manager","wpide")},icon:"ni-folder",component:function(){return n.e(910).then(n.bind(n,51377))},module:!0,config:"file"},{path:"/file-editor",name:"file-editor",meta:{title:(0,m.__)("File Editor","wpide")},icon:"ni-edit",component:function(){return n.e(910).then(n.bind(n,51377))},module:!0,config:"editor"},{path:"/image-editor",name:"image-editor",meta:{title:(0,m.__)("Image Editor","wpide")},icon:"ni-img",
2 2 /* fs_premium_only */
3 -component:window.WPIDE.premium?function(){return n.e(248).then(n.bind(n,1379))}:null,
3 +component:window.WPIDE.premium?function(){return n.e(238).then(n.bind(n,77242))}:null,
4 4 /* /fs_premium_only */
5 -redirect:window.WPIDE.premium?null:{name:"premium",query:{name:"db-manager"}},module:!0,config:window.WPIDE.premium?"db":null},{path:"/settings",name:"settings",meta:{title:(0,m.__)("Settings","wpide")},icon:"ni-opt",component:function(){return n.e(265).then(n.bind(n,7671))}},{path:"/account",name:"account",meta:{title:(0,m.__)("Account","wpide")},icon:"user-alt"},{path:"/premium",name:"premium",meta:{title:(0,m.__)("Premium Version Required","wpide")},icon:"ni-lock bg-danger-dim",component:function(){return n.e(211).then(n.bind(n,6082))}},{path:"*",name:"404",meta:{title:(0,m.__)("Not found","wpide")},icon:"ni-sad bg-danger-dim",component:function(){return n.e(187).then(n.bind(n,1973))}}]);const f=new d.Z({mode:"hash",routes:g});var p=n(3336),h=(n(9753),n(9826),n(9554),n(4747),n(629)),v=n(6486);i.default.use(h.ZP);const w=new h.ZP.Store({state:{loading:!1,initialized:!1,config:{},defaultConfig:{},plugin:{},user:{role:"guest",permissions:[],name:"",username:""},cwd:{location:"/",content:[]},tree:{},downloads:[],modal:{enabled:!1,title:"",component:null,props:{},args:{}}},getters:{hasPermissions:function(e){return function(t){return Array.isArray(t)?(0,v.intersection)(e.user.permissions,t).length==t.length:!!e.user.permissions.find((function(e){return e==t}))}}},mutations:{initialize:function(e){this.commit("resetCwd"),this.commit("resetTree"),this.commit("destroyUser"),e.initialized=!0},resetCwd:function(e){e.cwd={location:"/",content:[]}},resetTree:function(e){e.tree={path:"/",name:(0,m.__)("Home","wpide"),children:[]}},setLoading:function(e,t){e.loading=t},setPluginInfo:function(e,t){e.plugin=t},setConfig:function(e,t){e.config=t},setDefaultConfig:function(e,t){e.defaultConfig=t},setUser:function(e,t){e.user=t},destroyUser:function(e){e.user={role:"guest",permissions:[],name:"",username:""}},setCwd:function(e,t){e.cwd.location=t.location,e.cwd.content=[],(0,v.sortBy)(t.content,[function(e){return e.type.toLowerCase()}]).forEach((function(t){e.cwd.content.push(t)}))},updateTreeNode:function(e,t){!function e(n){for(var i in n)if(n.hasOwnProperty(i)){if("path"===i&&n[i]===t.path)return void Object.assign(n,{path:t.path,children:t.children});"object"===(0,p.Z)(n[i])&&e(n[i])}}(e.tree)},setModal:function(e,t){e.modal=t},hideModal:function(e){e.modal.enabled=!1},updateModal:function(e,t){t.title&&(e.modal.title=t.title),t.args&&(e.modal.args=Object.assign({},e.modal.args,t.args))}}});var b=n(2032),k=n(5082),C=(n(2222),n(4678),n(6977),n(3710),n(7042),n(8862),n(3123),n(5827),n(5533)),M=n(2227),y=n(8898),_={computed:{premium:function(){return!!window.WPIDE.premium},appDom:function(){return this.$root.$children[0].$refs.app},pageTitle:function(){return this.$route.meta.title||this.$route.name},pageIcon:function(){var e,t=this;e=this.getConfig("general.dark_mode")?"icon ni bg-primary text-white":"icon ni bg-primary-dim";var n=g.find((function(e){return e.name===t.$route.name}));return n?n.icon+" "+e:null},assetsUrl:function(){return window.WPIDE.assets_url},imagesUrl:function(){return window.WPIDE.images_url},isLoading:function(){return this.$store.state.loading},isModalActive:function(){return this.$store.state.modal.enabled},upgradeUrl:function(){return window.WPIDE.account_links.find((function(e){return"_pricing"===e.id})).url}},methods:{__:function(e,t){return(0,m.__)(e,t)},sprintf:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return m.gB.apply(void 0,[e].concat(n))},loading:function(){this.$store.commit("setLoading",!0)},idle:function(){this.$store.commit("setLoading",!1)},modalPromptArgs:function(e){return{size:"sm",buttonSize:"md",okTitle:e,cancelTitle:(0,m.__)("Cancel","wpide"),footerClass:"modal-footer-sm bg-light"}},showModalPrompt:function(e,t,n,i){var a=this.$createElement,o=a("input",{class:{"form-control":!0},domProps:(0,k.Z)({maxlength:100,required:!1},t),on:{input:function(e){self.value=e.target.value}}}),s=a("div",{class:["form-group"]},[a("label",{class:["form-label"]},[e]),a("div",{class:["form-control-wrap"]},[o])]);this.showModal("","Modal/ModalBody",{node:s},{hideHeader:!0,okTitle:n,okOnly:!1,ok:function(){i(o.elm.value)}})},showModalConfirm:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.showModal((0,m.__)("Confirmation","wpide"),"Modal/ModalBody",{body:(0,m.__)("Are you sure you want to do this?","wpide")},{okVariant:"danger",okTitle:e,okOnly:!1,ok:t})},showModalDialog:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;this.showModal(e,"Modal/ModalBody",{body:t},{okTitle:n,ok:i,okOnly:!a,cancelTitle:a,cancel:o})},showModal:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.$store.commit("setModal",{enabled:!0,title:e,component:t,props:n,args:Object.assign({},{size:"sm",buttonSize:"md",footerClass:"modal-footer-sm bg-light",cancelTitle:(0,m.__)("Cancel","wpide"),okOnly:!0},i)})},hideModal:function(){this.$store.commit("hideModal")},updateModal:function(e,t){this.$store.commit("updateModal",{title:e,args:t})},is:function(e){return this.$store.state.user.role==e},can:function(e){return this.$store.getters.hasPermissions(e)},formatBytes:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(0===e)return"0 Bytes";var n=1024,i=t<0?0:t,a=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,o)).toFixed(i))+" "+a[o]},formatDate:function(e){return(0,C.Z)((0,M.Z)(e),new Date)},isString:function(e){return"string"==typeof e||e instanceof String},checkUser:function(){var e=this;y.Z.getUser().then((function(t){t.username!==w.state.user.username&&e.$store.commit("destroyUser",t)}))},handleError:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.checkUser();var n=(0,m.__)("Something went wrong!","wpide"),i=(0,m.__)("Error","wpide");"string"==typeof e?n=e:e&&e.response&&e.response.data&&e.response.data.data?n=e.response.data.data:i=(0,m.__)("Unknown error","wpide"),this.$bvToast.toast(n,{title:i,variant:"is-danger",toaster:"b-toaster-bottom-right",duration:5e3,appendToast:!0,noAutoHide:!t})},capitalize:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},goTo:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.$router.push(this.routePath(e,t,n)).catch((function(){}))},routePath:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{name:e,query:t,params:n}},pluginInfo:function(e){return w.state.plugin.hasOwnProperty(e)?w.state.plugin[e]:null},clone:function(e){return JSON.parse(JSON.stringify(e))},getConfig:function(e,t){e=Array.isArray(e)?e:e.split(".");for(var n=w.state.config,i=e.shift();void 0!==i;){if("object"!==(0,p.Z)(n))return n;if(!n.hasOwnProperty(i))return t;n=n[i],i=e.shift()}return n},configIs:function(e,t){return this.getConfig(e)===t},updateConfig:function(e,t){var n=w.state.config,i=e.split("."),a=i.pop();i.reduce((function(e,t){return e[t]=e[t]||{}}),n)[a]=t,w.state.config=n,y.Z.updateConfig(n)}}};const F=_;var S=n(9501),P=n.n(S),j=n(1659),E=n.n(j),T=n(7751);n(7024);i.default.config.productionTip=!1,i.default.config.baseURL=window.WPIDE.ajax_url,i.default.use(b.XG7),i.default.use(T.ZP,{preLoad:1.3}),i.default.use(E(),{sessionKey:window.WPIDE.plugin.slug+"SessionKey"}),i.default.use(P(),{instances:[{name:window.WPIDE.plugin.slug,storeName:"folder_sizes"}]}),i.default.mixin(F),f.afterEach((function(e,t){i.default.nextTick((function(){document.title=window.WPIDE.plugin.name+(e.meta.title?" | "+e.meta.title:""),document.body.classList.contains(t.name)&&document.body.classList.remove(t.name),document.body.classList.contains(e.name)||document.body.classList.add(e.name)}))})),new i.default({router:f,store:w,data:function(){return{adminMenuScrolling:!1}},watch:{adminMenuScrolling:function(e){var t=document.getElementById("adminmenuwrap");t&&(e?t.classList.contains("scrolling")||t.classList.add("scrolling"):t.classList.contains("scrolling")&&t.classList.remove("scrolling"))}},created:function(){var e=this;this.loading(),this.$store.commit("setPluginInfo",window.WPIDE.plugin),y.Z.getConfig().then((function(t){e.$store.commit("setConfig",t.data.data.config),e.$store.commit("setDefaultConfig",t.data.data.defaults),y.Z.getUser().then((function(t){e.$store.commit("initialize"),e.$store.commit("setUser",t)})).catch((function(t){console.log(t),e.$bvToast.toast((0,m.__)("Something went wrong!","wpide"),{title:(0,m.__)("Error","wpide"),variant:"danger",toaster:"b-toaster-bottom-right",appendToast:!1})}))})).catch((function(t){console.log(t),e.$bvToast.toast((0,m.__)("Something went wrong!","wpide"),{title:(0,m.__)("Error","wpide"),variant:"danger",toaster:"b-toaster-bottom-right",appendToast:!0})})).finally((function(){e.idle()}))},mounted:function(){var e=this,t=document.getElementById("adminmenuwrap"),n=document.getElementById("wpcontent");t.addEventListener("wheel",(function(){e.adminMenuScrolling||(e.adminMenuScrolling=!0,setTimeout((function(){e.adminMenuScrolling=!1}),2e3))})),n.addEventListener("mouseover",(function(){e.adminMenuScrolling&&(e.adminMenuScrolling=!1)})),document.body.addEventListener("wpide_error",this.onError,!1)},beforeDestroy:function(){document.body.removeEventListener("wpide_error",this.onError,!1)},methods:{onError:function(e){this.handleError(e.detail),this.idle()}},render:function(e){return e(c)}}).$mount("#wpide-app")},8131:(e,t,n)=>{n.p=window.WPIDE.assets_url},3417:(e,t,n)=>{var i={"./DbManager/Table":[2131,577],"./DbManager/Table.vue":[2131,577],"./DbManager/TableRowForm":[7605,484],"./DbManager/TableRowForm.vue":[7605,484],"./DbManager/TablesTree":[5579,801],"./DbManager/TablesTree.vue":[5579,801],"./DbManager/easy-table-dark.less":[207,850],"./DbManager/easy-table-default.less":[3296,469],"./FileManager/AceEditor":[8720,252],"./FileManager/AceEditor.vue":[8720,252],"./FileManager/Download":[1599,243],"./FileManager/Download.vue":[1599,243],"./FileManager/Editor":[2250,948],"./FileManager/Editor.vue":[2250,948],"./FileManager/FilesItemActions":[1387,673],"./FileManager/FilesItemActions.vue":[1387,673],"./FileManager/FilesList":[6508,62],"./FileManager/FilesList.vue":[6508,62],"./FileManager/FilesListItem":[8115,744],"./FileManager/FilesListItem.vue":[8115,744],"./FileManager/FilesPreview":[7562,717],"./FileManager/FilesPreview.vue":[7562,717],"./FileManager/Gallery":[3741,632],"./FileManager/Gallery.vue":[3741,632],"./FileManager/GridView":[3555,784],"./FileManager/GridView.vue":[3555,784],"./FileManager/GroupView":[8595,600],"./FileManager/GroupView.vue":[8595,600],"./FileManager/ImageEditor":[6469,827],"./FileManager/ImageEditor.vue":[6469,827],"./FileManager/ListView":[8346,540],"./FileManager/ListView.vue":[8346,540],"./FileManager/MediaPlayer":[8530,689],"./FileManager/MediaPlayer.vue":[8530,689],"./FileManager/Tree":[8629,622],"./FileManager/Tree.vue":[8629,622],"./FileManager/TreeNode":[5478,434],"./FileManager/TreeNode.vue":[5478,434],"./FileManager/Upload":[499,320],"./FileManager/Upload.vue":[499,320],"./Header":[2380],"./Header.vue":[2380],"./Loading":[8996],"./Loading.vue":[8996],"./Modal/Modal":[5799],"./Modal/Modal.vue":[5799],"./Modal/ModalBody":[8451,768],"./Modal/ModalBody.vue":[8451,768],"./Settings/SettingControl":[8178,144],"./Settings/SettingControl.vue":[8178,144],"./Settings/SettingControlRepeater":[3380,336],"./Settings/SettingControlRepeater.vue":[3380,336],"./Settings/SettingFields":[1800,218],"./Settings/SettingFields.vue":[1800,218],"./Settings/SettingFoldersControl":[8535,298],"./Settings/SettingFoldersControl.vue":[8535,298]};function a(e){if(!n.o(i,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=i[e],a=t[0];return Promise.all(t.slice(1).map(n.e)).then((()=>n(a)))}a.keys=()=>Object.keys(i),a.id=3417,e.exports=a}},s={};function r(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,r),n.loaded=!0,n.exports}r.m=o,r.amdD=function(){throw new Error("define cannot be used indirect")},e=[],r.O=(t,n,i,a)=>{if(!n){var o=1/0;for(d=0;d<e.length;d++){for(var[n,i,a]=e[d],s=!0,l=0;l<n.length;l++)(!1&a||o>=a)&&Object.keys(r.O).every((e=>r.O[e](n[l])))?n.splice(l--,1):(s=!1,a<o&&(o=a));if(s){e.splice(d--,1);var c=i();void 0!==c&&(t=c)}}return t}a=a||0;for(var d=e.length;d>0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[n,i,a]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[])),r.u=e=>577===e?"js/chunks/DbManager/DbManager-Table.js":484===e?"js/chunks/DbManager/DbManager-TableRowForm.js":801===e?"js/chunks/DbManager/DbManager-TablesTree.js":850===e?"js/chunks/DbManager/DbManager-easy-table-dark-less.js":469===e?"js/chunks/DbManager/DbManager-easy-table-default-less.js":252===e?"js/chunks/FileManager/FileManager-AceEditor.js":243===e?"js/chunks/FileManager/FileManager-Download.js":948===e?"js/chunks/FileManager/FileManager-Editor.js":673===e?"js/chunks/FileManager/FileManager-FilesItemActions.js":62===e?"js/chunks/FileManager/FileManager-FilesList.js":744===e?"js/chunks/FileManager/FileManager-FilesListItem.js":717===e?"js/chunks/FileManager/FileManager-FilesPreview.js":632===e?"js/chunks/FileManager/FileManager-Gallery.js":784===e?"js/chunks/FileManager/FileManager-GridView.js":600===e?"js/chunks/FileManager/FileManager-GroupView.js":827===e?"js/chunks/FileManager/FileManager-ImageEditor.js":540===e?"js/chunks/FileManager/FileManager-ListView.js":689===e?"js/chunks/FileManager/FileManager-MediaPlayer.js":622===e?"js/chunks/FileManager/FileManager-Tree.js":434===e?"js/chunks/FileManager/FileManager-TreeNode.js":320===e?"js/chunks/FileManager/FileManager-Upload.js":768===e?"js/chunks/Modal/Modal-ModalBody.js":144===e?"js/chunks/Settings/Settings-SettingControl.js":336===e?"js/chunks/Settings/Settings-SettingControlRepeater.js":218===e?"js/chunks/Settings/Settings-SettingFields.js":298===e?"js/chunks/Settings/Settings-SettingFoldersControl.js":535===e?"js/chunks/FileManager/FileManager.js":248===e?"js/chunks/DbManager/DbManager.js":265===e?"js/chunks/Settings/Settings.js":211===e?"js/chunks/Premium/Premium.js":187===e?"js/chunks/NotFound/NotFound.js":void 0,r.miniCssF=e=>"css/"+{62:"FileManager-FilesList",218:"Settings-SettingFields",265:"Settings",320:"FileManager-Upload",336:"Settings-SettingControlRepeater",434:"FileManager-TreeNode",469:"DbManager-easy-table-default-less",484:"DbManager-TableRowForm",535:"FileManager",540:"FileManager-ListView",577:"DbManager-Table",600:"FileManager-GroupView",622:"FileManager-Tree",632:"FileManager-Gallery",689:"FileManager-MediaPlayer",744:"FileManager-FilesListItem",784:"FileManager-GridView",801:"DbManager-TablesTree",827:"FileManager-ImageEditor",850:"DbManager-easy-table-dark-less",948:"FileManager-Editor"}[e]+".css",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),t={},n="wpide:",r.l=(e,i,a,o)=>{if(t[e])t[e].push(i);else{var s,l;if(void 0!==a)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var u=c[d];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==n+a){s=u;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,r.nc&&s.setAttribute("nonce",r.nc),s.setAttribute("data-webpack",n+a),s.src=e),t[e]=[i];var m=(n,i)=>{s.onerror=s.onload=null,clearTimeout(g);var a=t[e];if(delete t[e],s.parentNode&&s.parentNode.removeChild(s),a&&a.forEach((e=>e(i))),n)return n(i)},g=setTimeout(m.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=m.bind(null,s.onerror),s.onload=m.bind(null,s.onload),l&&document.head.appendChild(s)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.p="",i=e=>new Promise(((t,n)=>{var i=r.miniCssF(e),a=r.p+i;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),i=0;i<n.length;i++){var a=(s=n[i]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(a===e||a===t))return s}var o=document.getElementsByTagName("style");for(i=0;i<o.length;i++){var s;if((a=(s=o[i]).getAttribute("data-href"))===e||a===t)return s}})(i,a))return t();((e,t,n,i)=>{var a=document.createElement("link");a.rel="stylesheet",a.type="text/css",a.onerror=a.onload=o=>{if(a.onerror=a.onload=null,"load"===o.type)n();else{var s=o&&("load"===o.type?"missing":o.type),r=o&&o.target&&o.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=s,l.request=r,a.parentNode.removeChild(a),i(l)}},a.href=t,document.head.appendChild(a)})(e,a,t,n)})),a={143:0},r.f.miniCss=(e,t)=>{a[e]?t.push(a[e]):0!==a[e]&&{62:1,218:1,265:1,320:1,336:1,434:1,469:1,484:1,535:1,540:1,577:1,600:1,622:1,632:1,689:1,744:1,784:1,801:1,827:1,850:1,948:1}[e]&&t.push(a[e]=i(e).then((()=>{a[e]=0}),(t=>{throw delete a[e],t})))},(()=>{var e={143:0};r.f.j=(t,n)=>{var i=r.o(e,t)?e[t]:void 0;if(0!==i)if(i)n.push(i[2]);else{var a=new Promise(((n,a)=>i=e[t]=[n,a]));n.push(i[2]=a);var o=r.p+r.u(t),s=new Error;r.l(o,(n=>{if(r.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var a=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+a+": "+o+")",s.name="ChunkLoadError",s.type=a,s.request=o,i[1](s)}}),"chunk-"+t,t)}},r.O.j=t=>0===e[t];var t=(t,n)=>{var i,a,[o,s,l]=n,c=0;if(o.some((t=>0!==e[t]))){for(i in s)r.o(s,i)&&(r.m[i]=s[i]);if(l)var d=l(r)}for(t&&t(n);c<o.length;c++)a=o[c],r.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return r.O(d)},n=self.webpackChunkwpide=self.webpackChunkwpide||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var l=r.O(void 0,[998],(()=>r(9153)));l=r.O(l)})();
5 +redirect:window.WPIDE.premium?null:{name:"premium",query:{name:"image-editor"}},module:!0,config:null,premium:!0},{path:"/db-manager",name:"db-manager",meta:{title:(0,m.__)("Database Manager","wpide")},icon:"ni-db",
6 +/* fs_premium_only */
7 +component:window.WPIDE.premium?function(){return n.e(606).then(n.bind(n,26552))}:null,
8 +/* /fs_premium_only */
9 +redirect:window.WPIDE.premium?null:{name:"premium",query:{name:"db-manager"}},module:!0,config:window.WPIDE.premium?"db":null,premium:!0},{path:"/config-manager",name:"config-manager",meta:{title:(0,m.__)("Config Manager","wpide")},icon:"ni-setting-alt",
10 +/* fs_premium_only */
11 +component:window.WPIDE.premium?function(){return n.e(154).then(n.bind(n,13680))}:null,
12 +/* /fs_premium_only */
13 +redirect:window.WPIDE.premium?null:{name:"premium",query:{name:"config-manager"}},module:!0,config:null,premium:!0},{path:"/settings",name:"settings",meta:{title:(0,m.__)("Settings","wpide")},icon:"ni-setting",component:function(){return n.e(248).then(n.bind(n,94073))}},{path:"/changelog",name:"changelog",meta:{title:(0,m.__)("Changelog","wpide")},icon:"ni-notes-alt",component:function(){return n.e(451).then(n.bind(n,95860))}},{path:"/account",name:"account",meta:{title:(0,m.__)("Account","wpide")},icon:"user-alt"},{path:"/premium",name:"premium",meta:{title:(0,m.__)("Premium Version Required","wpide")},icon:"ni-lock bg-danger-dim",component:function(){return n.e(106).then(n.bind(n,99707))}},{path:"*",name:"404",meta:{title:(0,m.__)("Not found","wpide")},icon:"ni-sad bg-danger-dim",component:function(){return n.e(810).then(n.bind(n,83921))}}]);const h=new u.Ay({mode:"hash",routes:g});var p=n(45929),v=(n(50113),n(64346),n(44114),n(20116),n(95353)),w=n(2543),b=n(7180),C=(n(25276),n(48598),n(72712),n(94490),n(34782),n(60739),n(18237),n(69112),n(33110),n(9868),n(79432),n(78459),n(13611),n(13531)),k=n(40001),_=n(93956),y={computed:{premium:function(){return!!window.WPIDE.premium},isPremiumVersion:function(){return!!window.WPIDE.is_premium_version},showFreemiusMenus:function(){return window.WPIDE.show_freemius_menus},showLicenseMenu:function(){return this.showFreemiusMenus&&this.isPremiumVersion},isLicenseActive:function(){return!!window.WPIDE.is_license_active},appDom:function(){return this.$root.$children[0].$refs.app},pageTitle:function(){return this.$route.meta.title||this.$route.name},pageIcon:function(){var e;e=this.getConfig("general.dark_mode")?"icon ni bg-primary text-white":"icon ni bg-primary-dim";var t=this.findRoute(this.$route.name);return t?t.icon+" "+e:null},assetsUrl:function(){return window.WPIDE.assets_url},imagesUrl:function(){return window.WPIDE.images_url},isLoading:function(){return this.$store.state.loading},isModalActive:function(){return this.$store.state.modal.enabled},upgradeUrl:function(){var e=window.WPIDE.account_links.find(function(e){return"_pricing"===e.id});return e?e.url:null}},methods:{__:function(e,t){return(0,m.__)(e,t)},sprintf:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return m.nv.apply(void 0,[e].concat(n))},loading:function(){this.$store.commit("setLoading",!0)},idle:function(){this.$store.commit("setLoading",!1)},findRoute:function(e){var t=g.find(function(t){return t.name===e});return t||null},getPremiumMessageData:function(){var e=this,t={title:(0,m.__)("Premium Version Required","wpide"),message:(0,m.__)("It looks like you’re trying to access a feature that requires the Premium Version.","wpide"),button:this.upgradeUrl?this.isPremiumVersion?(0,m.__)("Buy License","wpide"):(0,m.__)("Unlock Access","wpide"):null,buttonCallback:this.upgradeUrl?function(){location.href=e.upgradeUrl}:null,secondaryButton:(0,m.__)("More info","wpide"),secondaryButtonCallback:function(){location.href="https://wpide.com"}};return this.isPremiumVersion&&document.querySelector(".activate-license.wpide a")&&(t.message+=" "+(0,m.__)("If you already have a license key, please activate it.","wpide"),t.secondaryButton=(0,m.__)("Activate License","wpide"),t.secondaryButtonCallback=function(){document.querySelector(".activate-license.wpide a").click()}),t},showModalPrompt:function(e,t,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=this.$createElement,s=o("input",{class:{"form-control":!0},domProps:(0,b.A)({maxlength:100,required:!1},t),on:{input:function(e){self.value=e.target.value}}}),r=o("div",{class:["form-group"]},[o("label",{class:["form-label"]},[e]),o("div",{class:["form-control-wrap"]},[s])]);this.showModal("","Modal/ModalBody",{node:r},(0,b.A)({hideHeader:!0,okTitle:n,okOnly:!1,ok:function(){i(s.elm.value)}},a))},showModalConfirm:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.showModal((0,m.__)("Confirmation","wpide"),"Modal/ModalBody",{body:(0,m.__)("Are you sure you want to do this?","wpide")},(0,b.A)({okVariant:"danger",okTitle:e,okOnly:!1,ok:t},n))},showModalDialog:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{};this.showModal(e,"Modal/ModalBody",{body:t},(0,b.A)({okTitle:n,ok:i,okOnly:!a,cancelTitle:a,cancel:o},s))},showPremiumFeatureModal:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.getPremiumMessageData();this.showModalDialog(t.title,t.message,t.button,t.buttonCallback,t.secondaryButton,t.secondaryButtonCallback,e)},showModal:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.$store.commit("setModal",{enabled:!0,title:e,component:t,props:n,args:(0,b.A)({size:"sm",buttonSize:"md",footerClass:"modal-footer-sm bg-light",cancelTitle:(0,m.__)("Cancel","wpide"),okOnly:!0},i)})},showExistingModal:function(){this.$store.commit("showModal")},componentModalExists:function(e){return this.$store.state.modal.component===e},hideModal:function(){this.$store.commit("hideModal")},updateModal:function(e,t){this.$store.commit("updateModal",{title:e,args:t})},is:function(e){return this.$store.state.user.role==e},can:function(e){return this.$store.getters.hasPermissions(e)},formatBytes:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(0===e)return"0 Bytes";var n=t<0?0:t,i=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,i)).toFixed(n))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][i]},formatDate:function(e){return(0,C.A)((0,k.A)(e),new Date)},isString:function(e){return"string"==typeof e||e instanceof String},isNumeric:function(e){var t=[" ","\n","\r","\t","\f","\v"," "," "," "," "," "," "," "," "," "," "," "," ","​","\u2028","\u2029"," "].join("");return("number"==typeof e||"string"==typeof e&&-1===t.indexOf(e.slice(-1)))&&""!==e&&!isNaN(e)},checkUser:function(){var e=this;return _.A.getUser().then(function(t){t&&t.username!==F.state.user.username&&e.$store.commit("destroyUser",t)})},handleError:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=(0,m.__)("Something went wrong!","wpide");e&&"string"==typeof e?i=e:e&&e.response&&e.response.data&&e.response.data.data&&(i=e.response.data.data),this.$bvToast.toast(i,{title:null,variant:"is-danger",toaster:"b-toaster-bottom-right",duration:5e3,appendToast:n,noAutoHide:!t})},handleSuccess:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.$bvToast.hide(),this.$bvToast.toast(e,{title:null,variant:"is-success",toaster:"b-toaster-bottom-right",bodyClass:"",duration:5e3,appendToast:n,noAutoHide:!t})},capitalize:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},goTo:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.$router.push(this.routePath(e,t,n)).catch(function(){})},routePath:function(e){return{name:e,query:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},params:arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}}},pluginInfo:function(e){return F.state.plugin.hasOwnProperty(e)?F.state.plugin[e]:null},cloneObj:function(e){return JSON.parse(JSON.stringify(e))},isFullscreen:function(){return this.$fullscreen.isFullscreen},toggleFullscreen:function(){this.$fullscreen.toggle()},getRootFolderName:function(){return"/"===this.getConfig("file.root","/")?window.WPIDE.fm_wp_dir:this.getConfig("file.root").split("/").reverse()[0]},getConfigField:function(e){e=Array.isArray(e)?e:e.split(".");for(var t=window.WPIDE.config_fields,n=e.shift();void 0!==n;){if("object"!==(0,p.A)(t))return t;if(!t.hasOwnProperty(n))return null;t=t[n],n=e.shift()}return t},getDefaultConfig:function(e){e=Array.isArray(e)?e:e.split(".");for(var t=F.state.defaultConfig,n=e.shift();void 0!==n;){if("object"!==(0,p.A)(t))return t;if(!t.hasOwnProperty(n))return null;t=t[n],n=e.shift()}return t},getConfig:function(e,t){t=void 0!==t?t:this.getDefaultConfig(e);var n=this.getConfigField(e);if(n&&n.hasOwnProperty("premium")&&!this.premium)return t;e=Array.isArray(e)?e:e.split(".");for(var i=F.state.config,a=e.shift();void 0!==a;){if("object"!==(0,p.A)(i))return i;if(!i.hasOwnProperty(a))return t;i=i[a],a=e.shift()}return i},configIs:function(e,t){return this.getConfig(e)===t},updateConfig:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=F.state.config,a=e.split("."),o=a.pop();if(a.reduce(function(e,t){return e[t]=e[t]||{}},i)[o]=t,this.$store.commit("setConfig",i),n)return _.A.updateConfig(e,t)}}};const M=y;a.default.use(v.Ay);const F=new v.Ay.Store({state:{loading:!1,initialized:!1,config:{},defaultConfig:{},plugin:{},user:{role:"guest",permissions:[],name:"",username:""},cwd:{location:"/",content:[]},tree:{},downloads:[],modal:{enabled:!1,title:"",component:null,props:{},args:{}},imageEditorEnabled:!1},getters:{hasPermissions:function(e){return function(t){return Array.isArray(t)?(0,w.intersection)(e.user.permissions,t).length==t.length:!!e.user.permissions.find(function(e){return e==t})}}},mutations:{initialize:function(e){this.commit("resetCwd"),this.commit("resetTree"),this.commit("destroyUser"),e.initialized=!0},resetCwd:function(e){e.cwd={location:"/",content:[]}},resetTree:function(e){e.tree={path:"/",name:M.methods.getRootFolderName(),children:[],type:"dir"}},setLoading:function(e,t){e.loading=t},setPluginInfo:function(e,t){e.plugin=t},setConfig:function(e,t){e.config=t},setDefaultConfig:function(e,t){e.defaultConfig=t},setUser:function(e,t){e.user=t},destroyUser:function(e){e.user={role:"guest",permissions:[],name:"",username:""}},setCwd:function(e,t){e.cwd.location=t.location,e.cwd.content=[],(0,w.sortBy)(t.content,[function(e){return e.type.toLowerCase()}]).forEach(function(t){e.cwd.content.push(t)})},updateTreeNode:function(e,t){var n=function(e){for(var i in e)if(e.hasOwnProperty(i)){if("path"===i&&e[i]===t.path)return void Object.assign(e,{path:t.path,children:t.children});"object"===(0,p.A)(e[i])&&n(e[i])}};n(e.tree)},setModal:function(e,t){e.modal=t},showModal:function(e){e.modal.title&&e.modal.component&&(e.modal.enabled=!0)},hideModal:function(e){e.modal.enabled=!1},updateModal:function(e,t){t.title&&(e.modal.title=t.title),t.args&&(e.modal.args=Object.assign({},e.modal.args,t.args))},setImageEditorEnabled:function(e,t){e.imageEditorEnabled=t}}});var P=n(38292),A=n(55448),S=n.n(A),E=n(18418),j=n.n(E),D=n(17318),I=n(12206),T=n.n(I);n(59313);a.default.config.productionTip=!1,a.default.config.baseURL=window.WPIDE.ajax_url;var L=function(e){return document.querySelector('#toplevel_page_wpide li a[href*="page='.concat(window.WPIDE.plugin.slug,"#").concat(e,'"]'))};a.default.use(P.vGs),a.default.use(D.Ay,{preLoad:1.3}),a.default.use(j(),{sessionKey:window.WPIDE.plugin.slug+"SessionKey"}),a.default.use(S(),{instances:[{name:window.WPIDE.plugin.slug,storeName:"folder_sizes"}]}),a.default.use(T()),a.default.mixin(M),h.afterEach(function(e,t){a.default.nextTick(function(){document.title=window.WPIDE.plugin.name+(e.meta.title?" | "+e.meta.title:"");var n=L(e.path),i=t&&t.path?L(t.path):null;n&&t&&t.name&&document.body.classList.contains(t.name)&&(document.body.classList.remove(t.name),i&&i.closest("li").classList.remove("current")),n&&e.name&&!document.body.classList.contains(e.name)&&(document.body.classList.add(e.name),n.closest("li").classList.add("current"))})}),new a.default({router:h,store:F,data:function(){return{adminMenuScrolling:!1}},watch:{"$route.name":function(e,t){var n=this;"settings"===t&&"settings"!==e&&_.A.getConfig().then(function(e){n.updateConfig("file.root",e.data.data.config.file.root,!1)}).catch(function(){})}},created:function(){this.init()},mounted:function(){document.body.addEventListener("wpide_error",this.onError,!1)},beforeDestroy:function(){document.body.removeEventListener("wpide_error",this.onError,!1)},methods:{init:function(){this.loading(),this.$store.commit("setPluginInfo",window.WPIDE.plugin),this.loadConfig(),this.fixWpMenu()},loadConfig:function(){var e=this;return _.A.getConfig().then(function(t){e.$store.commit("setConfig",t.data.data.config),e.$store.commit("setDefaultConfig",t.data.data.defaults),_.A.getUser().then(function(t){e.$store.commit("initialize"),e.$store.commit("setUser",t)}).catch(function(t){console.log(t),e.$bvToast.toast((0,m.__)("Something went wrong!","wpide"),{title:(0,m.__)("Error","wpide"),variant:"danger",toaster:"b-toaster-bottom-right",appendToast:!1})})}).catch(function(t){console.log(t),e.$bvToast.toast((0,m.__)("Something went wrong!","wpide"),{title:(0,m.__)("Error","wpide"),variant:"danger",toaster:"b-toaster-bottom-right",appendToast:!0})}).finally(function(){e.idle()})},fixWpMenu:function(){var e=document.getElementById("adminmenuwrap"),t=document.getElementById("adminmenu"),n=document.getElementById("wpcontent"),a=document.querySelector('#toplevel_page_wpide li a[href="#divider"]');a&&!a.closest("li").nextSibling&&a.remove(),document.querySelectorAll('#toplevel_page_wpide li a[href*="page="]').forEach(function(e){try{var t=new URL(e.href,window.location.origin),n=t.searchParams.get("page");if(!n)return;var a=n.split("#"),o=(0,i.A)(a,2),s=o[0],r=o[1];if(s!==window.WPIDE.plugin.slug||!r)return;t.searchParams.set("page",s),t.hash=r.startsWith("/")?r:"/".concat(r),e.href=t.toString()}catch(e){console.log(e)}}),t.addEventListener("mouseover",function(){e.classList.add("hover")}),t.addEventListener("mouseleave",function(){e.classList.remove("hover")}),n.addEventListener("mouseover",function(){e.classList.remove("hover")}),this.premium||g.filter(function(e){return e.hasOwnProperty("premium")&&e.premium}).forEach(function(e){var t=L(e.path);t&&t.closest("li").classList.add("premium")})},onError:function(e){this.handleError(e.detail),this.idle()}},render:function(e){return e(d)}}).$mount("#wpide-app")},87608(e,t,n){n.p=window.WPIDE.assets_url},46971(e,t,n){var i={"./ConfigManager/ConstantForm":[3908,[729]],"./ConfigManager/ConstantForm.vue":[3908,[729]],"./ConfigManager/ListItem":[24809,[890]],"./ConfigManager/ListItem.vue":[24809,[890]],"./DbManager/Table":[82994,[653]],"./DbManager/Table.vue":[82994,[653]],"./DbManager/TableRowForm":[63219,[869]],"./DbManager/TableRowForm.vue":[63219,[869]],"./DbManager/TablesTree":[334,[444]],"./DbManager/TablesTree.vue":[334,[444]],"./DbManager/easy-table-dark.less":[38113,[119]],"./DbManager/easy-table-default.less":[83528,[888]],"./FileManager/AceEditor":[60967,[139]],"./FileManager/AceEditor.vue":[60967,[139]],"./FileManager/CodeDiff":[12829,[641]],"./FileManager/CodeDiff.vue":[12829,[641]],"./FileManager/Download":[11794,[979]],"./FileManager/Download.vue":[11794,[979]],"./FileManager/Editor":[96074,[632]],"./FileManager/Editor.vue":[96074,[632]],"./FileManager/FilesItemActions":[84267,[574]],"./FileManager/FilesItemActions.vue":[84267,[574]],"./FileManager/FilesList":[204,[776]],"./FileManager/FilesList.vue":[204,[776]],"./FileManager/FilesListItem":[95421,[250]],"./FileManager/FilesListItem.vue":[95421,[250]],"./FileManager/FilesPreview":[61781,[228]],"./FileManager/FilesPreview.vue":[61781,[228]],"./FileManager/Gallery":[54386,[559]],"./FileManager/Gallery.vue":[54386,[559]],"./FileManager/GridView":[47799,[388]],"./FileManager/GridView.vue":[47799,[388]],"./FileManager/GroupView":[94372,[111]],"./FileManager/GroupView.vue":[94372,[111]],"./FileManager/ImageEditor":[48337,[857]],"./FileManager/ImageEditor.vue":[48337,[857]],"./FileManager/ListView":[80573,[100]],"./FileManager/ListView.vue":[80573,[100]],"./FileManager/MediaPlayer":[98090,[582]],"./FileManager/MediaPlayer.vue":[98090,[582]],"./FileManager/SortDropdown":[36565,[404]],"./FileManager/SortDropdown.vue":[36565,[404]],"./FileManager/Tree":[2591,[287]],"./FileManager/Tree.vue":[2591,[287]],"./FileManager/TreeNode":[41322,[351]],"./FileManager/TreeNode.vue":[41322,[351]],"./FileManager/Upload":[79002,[940]],"./FileManager/Upload.vue":[79002,[940]],"./Header":[15974,[]],"./Header.vue":[15974,[]],"./Loading":[97275,[]],"./Loading.vue":[97275,[]],"./Modal/Modal":[68512,[]],"./Modal/Modal.vue":[68512,[]],"./Modal/ModalBody":[46307,[914]],"./Modal/ModalBody.vue":[46307,[914]],"./Settings/SettingControl":[64132,[962]],"./Settings/SettingControl.vue":[64132,[962]],"./Settings/SettingControlRepeater":[53027,[766]],"./Settings/SettingControlRepeater.vue":[53027,[766]],"./Settings/SettingFields":[80793,[148]],"./Settings/SettingFields.vue":[80793,[148]],"./Settings/SettingFoldersControl":[74024,[109]],"./Settings/SettingFoldersControl.vue":[74024,[109]]};function a(e){try{if(!n.o(i,e))return Promise.resolve().then(()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}catch(e){return Promise.reject(e)}var t=i[e],a=t[0];return Promise.all(t[1].map(n.e)).then(()=>n(a))}a.keys=()=>Object.keys(i),a.id=46971,e.exports=a}},a={};function o(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return i[e].call(n.exports,n,n.exports,o),n.loaded=!0,n.exports}o.m=i,o.amdD=function(){throw new Error("define cannot be used indirect")},e=[],o.O=(t,n,i,a)=>{if(!n){var s=1/0;for(d=0;d<e.length;d++){for(var[n,i,a]=e[d],r=!0,l=0;l<n.length;l++)(!1&a||s>=a)&&Object.keys(o.O).every(e=>o.O[e](n[l]))?n.splice(l--,1):(r=!1,a<s&&(s=a));if(r){e.splice(d--,1);var c=i();void 0!==c&&(t=c)}}return t}a=a||0;for(var d=e.length;d>0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[n,i,a]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((t,n)=>(o.f[n](e,t),t),[])),o.u=e=>729===e?"js/chunks/ConfigManager/ConfigManager-ConstantForm.js?_hash=a1468ed6":890===e?"js/chunks/ConfigManager/ConfigManager-ListItem.js?_hash=0a2cbf9a":653===e?"js/chunks/DbManager/DbManager-Table.js?_hash=0b14a070":869===e?"js/chunks/DbManager/DbManager-TableRowForm.js?_hash=4cca7bf0":444===e?"js/chunks/DbManager/DbManager-TablesTree.js?_hash=9fb59edc":119===e?"js/chunks/DbManager/DbManager-easy-table-dark-less.js?_hash=6ffbb3ee":888===e?"js/chunks/DbManager/DbManager-easy-table-default-less.js?_hash=f9194622":139===e?"js/chunks/FileManager/FileManager-AceEditor.js?_hash=9487dff7":641===e?"js/chunks/FileManager/FileManager-CodeDiff.js?_hash=f3fed5d9":979===e?"js/chunks/FileManager/FileManager-Download.js?_hash=646b3e94":632===e?"js/chunks/FileManager/FileManager-Editor.js?_hash=7f47d165":574===e?"js/chunks/FileManager/FileManager-FilesItemActions.js?_hash=fb51cb00":776===e?"js/chunks/FileManager/FileManager-FilesList.js?_hash=66b6dd33":250===e?"js/chunks/FileManager/FileManager-FilesListItem.js?_hash=2066b485":228===e?"js/chunks/FileManager/FileManager-FilesPreview.js?_hash=b909c9ea":559===e?"js/chunks/FileManager/FileManager-Gallery.js?_hash=53940de6":388===e?"js/chunks/FileManager/FileManager-GridView.js?_hash=abf33a5e":111===e?"js/chunks/FileManager/FileManager-GroupView.js?_hash=2149f2b3":857===e?"js/chunks/FileManager/FileManager-ImageEditor.js?_hash=b7ae244e":100===e?"js/chunks/FileManager/FileManager-ListView.js?_hash=824ff8b4":582===e?"js/chunks/FileManager/FileManager-MediaPlayer.js?_hash=90836149":404===e?"js/chunks/FileManager/FileManager-SortDropdown.js?_hash=be631ffe":287===e?"js/chunks/FileManager/FileManager-Tree.js?_hash=ec130faa":351===e?"js/chunks/FileManager/FileManager-TreeNode.js?_hash=87d60e4d":940===e?"js/chunks/FileManager/FileManager-Upload.js?_hash=17afbb2a":914===e?"js/chunks/Modal/Modal-ModalBody.js?_hash=f0ea09b2":962===e?"js/chunks/Settings/Settings-SettingControl.js?_hash=985aead8":766===e?"js/chunks/Settings/Settings-SettingControlRepeater.js?_hash=81596e7f":148===e?"js/chunks/Settings/Settings-SettingFields.js?_hash=0ae3202d":109===e?"js/chunks/Settings/Settings-SettingFoldersControl.js?_hash=69070469":910===e?"js/chunks/FileManager/FileManager.js?_hash=170c1bb4":238===e?"js/chunks/ImageEditor/ImageEditor.js?_hash=700636fc":606===e?"js/chunks/DbManager/DbManager.js?_hash=42383ce2":154===e?"js/chunks/ConfigManager/ConfigManager.js?_hash=3ae11caf":248===e?"js/chunks/Settings/Settings.js?_hash=795a9ed8":451===e?"js/chunks/Changelog/Changelog.js?_hash=5e5ca022":106===e?"js/chunks/Premium/Premium.js?_hash=235200de":810===e?"js/chunks/NotFound/NotFound.js?_hash=ab75647a":void 0,o.miniCssF=e=>"css/"+{100:"FileManager-ListView",111:"FileManager-GroupView",119:"DbManager-easy-table-dark-less",148:"Settings-SettingFields",154:"ConfigManager",238:"ImageEditor",248:"Settings",250:"FileManager-FilesListItem",287:"FileManager-Tree",351:"FileManager-TreeNode",388:"FileManager-GridView",444:"DbManager-TablesTree",451:"Changelog",559:"FileManager-Gallery",582:"FileManager-MediaPlayer",632:"FileManager-Editor",641:"FileManager-CodeDiff",653:"DbManager-Table",766:"Settings-SettingControlRepeater",776:"FileManager-FilesList",857:"FileManager-ImageEditor",869:"DbManager-TableRowForm",888:"DbManager-easy-table-default-less",890:"ConfigManager-ListItem",910:"FileManager",940:"FileManager-Upload"}[e]+".css?_hash="+{100:"6fd13d4a",111:"213dc083",119:"e73dfc75",148:"eee5afa1",154:"47f12098",238:"0af54435",248:"2e2c63bd",250:"213dc083",287:"a07fed27",351:"72f4e5dd",388:"213dc083",444:"dbd48afc",451:"aa0b8006",559:"2e74ee9c",582:"c9be88aa",632:"8b83adbb",641:"4c56bde8",653:"953bfce9",766:"b441f6ed",776:"213dc083",857:"3ec2db87",869:"086fcc61",888:"add0baeb",890:"47f12098",910:"f89f40e4",940:"0fca59a8"}[e],o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),t={},n="wpide:",o.l=(e,i,a,s)=>{if(t[e])t[e].push(i);else{var r,l;if(void 0!==a)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var u=c[d];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==n+a){r=u;break}}r||(l=!0,(r=document.createElement("script")).charset="utf-8",o.nc&&r.setAttribute("nonce",o.nc),r.setAttribute("data-webpack",n+a),r.src=e),t[e]=[i];var f=(n,i)=>{r.onerror=r.onload=null,clearTimeout(m);var a=t[e];if(delete t[e],r.parentNode&&r.parentNode.removeChild(r),a&&a.forEach(e=>e(i)),n)return n(i)},m=setTimeout(f.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=f.bind(null,r.onerror),r.onload=f.bind(null,r.onload),l&&document.head.appendChild(r)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),o.p="",(()=>{if("undefined"!=typeof document){var e=e=>new Promise((t,n)=>{var i=o.miniCssF(e),a=o.p+i;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),i=0;i<n.length;i++){var a=(s=n[i]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(a===e||a===t))return s}var o=document.getElementsByTagName("style");for(i=0;i<o.length;i++){var s;if((a=(s=o[i]).getAttribute("data-href"))===e||a===t)return s}})(i,a))return t();((e,t,n,i,a)=>{var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",o.nc&&(s.nonce=o.nc),s.onerror=s.onload=n=>{if(s.onerror=s.onload=null,"load"===n.type)i();else{var o=n&&n.type,r=n&&n.target&&n.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+o+": "+r+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=o,l.request=r,s.parentNode&&s.parentNode.removeChild(s),a(l)}},s.href=t,n?n.parentNode.insertBefore(s,n.nextSibling):document.head.appendChild(s)})(e,a,null,t,n)}),t={524:0};o.f.miniCss=(n,i)=>{t[n]?i.push(t[n]):0!==t[n]&&{100:1,111:1,119:1,148:1,154:1,238:1,248:1,250:1,287:1,351:1,388:1,444:1,451:1,559:1,582:1,632:1,641:1,653:1,766:1,776:1,857:1,869:1,888:1,890:1,910:1,940:1}[n]&&i.push(t[n]=e(n).then(()=>{t[n]=0},e=>{throw delete t[n],e}))}}})(),(()=>{var e={524:0};o.f.j=(t,n)=>{var i=o.o(e,t)?e[t]:void 0;if(0!==i)if(i)n.push(i[2]);else{var a=new Promise((n,a)=>i=e[t]=[n,a]);n.push(i[2]=a);var s=o.p+o.u(t),r=new Error;o.l(s,n=>{if(o.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var a=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;r.message="Loading chunk "+t+" failed.\n("+a+": "+s+")",r.name="ChunkLoadError",r.type=a,r.request=s,i[1](r)}},"chunk-"+t,t)}},o.O.j=t=>0===e[t];var t=(t,n)=>{var i,a,[s,r,l]=n,c=0;if(s.some(t=>0!==e[t])){for(i in r)o.o(r,i)&&(o.m[i]=r[i]);if(l)var d=l(o)}for(t&&t(n);c<s.length;c++)a=s[c],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return o.O(d)},n=self.webpackChunkwpide=self.webpackChunkwpide||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var s=o.O(void 0,[504],()=>o(11752));s=o.O(s)})();