(()=>{var e,t,n,i,a,s={3378:(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"},[e.upgradeUrl?t("li",{staticClass:"nav-item"},[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()]}))]},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.isPremiumVersion?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}},[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,"0ac56359",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:()=>s});n(1539),n(8309);var i=n(967),a=n(9575);const s={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,s){return new Promise((function(o,r){i.Z.post("db/savetablerow",{table:e,id:t,row:n,is_new:a,is_structure:s}).then((function(e){return o(e.data)})).catch((function(e){return r(e)}))}))},deleteTableRows:function(e,t,n){return new Promise((function(a,s){i.Z.post("db/deletetablerows",{table:e,ids:t,is_structure:n}).then((function(e){return a(e.data)})).catch((function(e){return s(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),s=n(9071),o=a().create({withCredentials:!0,baseURL:window.WPIDE.ajax_url,headers:{"Content-Type":"application/json"}}),r=0;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: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,s.ConcurrencyManager)(o,5);const l=o},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),s=(n(4916),n(5306),n(8996)),o=n(3378),r=n(5799);const l={name:"App",components:{Loading:s.default,Header:o.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 f=(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,7431))},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,7431))},module:!0,config:"editor"},{path:"/db-manager",name:"db-manager",meta:{title:(0,m.__)("Database Manager","wpide")},icon:"ni-db", /* fs_premium_only */ component:window.WPIDE.premium?function(){return n.e(248).then(n.bind(n,1379))}:null, /* /fs_premium_only */ 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 g=new d.Z({mode:"hash",routes:f});var h=n(3336),p=(n(9753),n(9826),n(9554),n(4747),n(629)),v=n(6486);i.default.use(p.ZP);const w=new p.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,h.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)),_=n(2227),M=n(8898),y={computed:{premium:function(){return!!window.WPIDE.premium},isPremiumVersion:function(){return!!window.WPIDE.is_premium_version},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,t=this;e=this.getConfig("general.dark_mode")?"icon ni bg-primary text-white":"icon ni bg-primary-dim";var n=f.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(){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;i1&&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,s=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:s})},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"],s=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,s)).toFixed(i))+" "+a[s]},formatDate:function(e){return(0,C.Z)((0,_.Z)(e),new Date)},isString:function(e){return"string"==typeof e||e instanceof String},checkUser:function(){var e=this;M.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,h.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,M.Z.updateConfig(n)}}};const F=y;var P=n(9501),S=n.n(P),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(S(),{instances:[{name:window.WPIDE.plugin.slug,storeName:"folder_sizes"}]}),i.default.mixin(F),g.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:g,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),M.Z.getConfig().then((function(t){e.$store.commit("setConfig",t.data.data.config),e.$store.commit("setDefaultConfig",t.data.data.defaults),M.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":[8184,801],"./DbManager/TablesTree.vue":[8184,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":[9262,243],"./FileManager/Download.vue":[9262,243],"./FileManager/Editor":[1965,948],"./FileManager/Editor.vue":[1965,948],"./FileManager/FilesItemActions":[9205,673],"./FileManager/FilesItemActions.vue":[9205,673],"./FileManager/FilesList":[6508,62],"./FileManager/FilesList.vue":[6508,62],"./FileManager/FilesListItem":[8115,744],"./FileManager/FilesListItem.vue":[8115,744],"./FileManager/FilesPreview":[7978,717],"./FileManager/FilesPreview.vue":[7978,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":[8790,622],"./FileManager/Tree.vue":[8790,622],"./FileManager/TreeNode":[6583,434],"./FileManager/TreeNode.vue":[6583,434],"./FileManager/Upload":[499,320],"./FileManager/Upload.vue":[499,320],"./Header":[3378],"./Header.vue":[3378],"./Loading":[8996],"./Loading.vue":[8996],"./Modal/Modal":[5799],"./Modal/Modal.vue":[5799],"./Modal/ModalBody":[8451,768],"./Modal/ModalBody.vue":[8451,768],"./Settings/SettingControl":[4106,144],"./Settings/SettingControl.vue":[4106,144],"./Settings/SettingControlRepeater":[7058,336],"./Settings/SettingControlRepeater.vue":[7058,336],"./Settings/SettingFields":[741,218],"./Settings/SettingFields.vue":[741,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}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,loaded:!1,exports:{}};return s[e].call(n.exports,n,n.exports,r),n.loaded=!0,n.exports}r.m=s,r.amdD=function(){throw new Error("define cannot be used indirect")},e=[],r.O=(t,n,i,a)=>{if(!n){var s=1/0;for(d=0;d=a)&&Object.keys(r.O).every((e=>r.O[e](n[l])))?n.splice(l--,1):(o=!1,a0&&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?_hash=dfc22d34":484===e?"js/chunks/DbManager/DbManager-TableRowForm.js?_hash=fa5e4b5f":801===e?"js/chunks/DbManager/DbManager-TablesTree.js?_hash=ad89080f":850===e?"js/chunks/DbManager/DbManager-easy-table-dark-less.js?_hash=bbf3c491":469===e?"js/chunks/DbManager/DbManager-easy-table-default-less.js?_hash=b1ed223a":252===e?"js/chunks/FileManager/FileManager-AceEditor.js?_hash=2baf099b":243===e?"js/chunks/FileManager/FileManager-Download.js?_hash=7d95b4b7":948===e?"js/chunks/FileManager/FileManager-Editor.js?_hash=ba507bc3":673===e?"js/chunks/FileManager/FileManager-FilesItemActions.js?_hash=06632073":62===e?"js/chunks/FileManager/FileManager-FilesList.js?_hash=3724f83c":744===e?"js/chunks/FileManager/FileManager-FilesListItem.js?_hash=adeb966e":717===e?"js/chunks/FileManager/FileManager-FilesPreview.js?_hash=fba53e2f":632===e?"js/chunks/FileManager/FileManager-Gallery.js?_hash=6a906083":784===e?"js/chunks/FileManager/FileManager-GridView.js?_hash=e51a6de9":600===e?"js/chunks/FileManager/FileManager-GroupView.js?_hash=ba126eec":827===e?"js/chunks/FileManager/FileManager-ImageEditor.js?_hash=84d1c92c":540===e?"js/chunks/FileManager/FileManager-ListView.js?_hash=fa7f631a":689===e?"js/chunks/FileManager/FileManager-MediaPlayer.js?_hash=248e3f6f":622===e?"js/chunks/FileManager/FileManager-Tree.js?_hash=54555986":434===e?"js/chunks/FileManager/FileManager-TreeNode.js?_hash=ee51b686":320===e?"js/chunks/FileManager/FileManager-Upload.js?_hash=08f46b4e":768===e?"js/chunks/Modal/Modal-ModalBody.js?_hash=d3b701d5":144===e?"js/chunks/Settings/Settings-SettingControl.js?_hash=1a0c4da0":336===e?"js/chunks/Settings/Settings-SettingControlRepeater.js?_hash=e461cb98":218===e?"js/chunks/Settings/Settings-SettingFields.js?_hash=c250ee67":298===e?"js/chunks/Settings/Settings-SettingFoldersControl.js?_hash=07d8e0c8":535===e?"js/chunks/FileManager/FileManager.js?_hash=38cc687b":248===e?"js/chunks/DbManager/DbManager.js?_hash=2c3355cb":265===e?"js/chunks/Settings/Settings.js?_hash=f50147cd":211===e?"js/chunks/Premium/Premium.js?_hash=3c4fb85a":187===e?"js/chunks/NotFound/NotFound.js?_hash=01031f9a":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?_hash="+{62:"6b9cd605",218:"b2d1ad3a",265:"c57cd298",320:"85c42595",336:"f7fd33d1",434:"3776734f",469:"4fbf5c3b",484:"61cf92fa",535:"ca494319",540:"9dca0259",577:"8aa9a900",600:"6b9cd605",622:"e0804319",632:"a755946e",689:"f376e2f5",744:"6b9cd605",784:"6b9cd605",801:"412fd19b",827:"8b0e13d6",850:"668f7353",948:"f87bf814"}[e],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,s)=>{if(t[e])t[e].push(i);else{var o,l;if(void 0!==a)for(var c=document.getElementsByTagName("script"),d=0;d{o.onerror=o.onload=null,clearTimeout(f);var a=t[e];if(delete t[e],o.parentNode&&o.parentNode.removeChild(o),a&&a.forEach((e=>e(i))),n)return n(i)},f=setTimeout(m.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=m.bind(null,o.onerror),o.onload=m.bind(null,o.onload),l&&document.head.appendChild(o)}},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{var a=document.createElement("link");a.rel="stylesheet",a.type="text/css",a.onerror=a.onload=s=>{if(a.onerror=a.onload=null,"load"===s.type)n();else{var o=s&&("load"===s.type?"missing":s.type),r=s&&s.target&&s.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=o,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 s=r.p+r.u(t),o=new Error;r.l(s,(n=>{if(r.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;o.message="Loading chunk "+t+" failed.\n("+a+": "+s+")",o.name="ChunkLoadError",o.type=a,o.request=s,i[1](o)}}),"chunk-"+t,t)}},r.O.j=t=>0===e[t];var t=(t,n)=>{var i,a,[s,o,l]=n,c=0;if(s.some((t=>0!==e[t]))){for(i in o)r.o(o,i)&&(r.m[i]=o[i]);if(l)var d=l(r)}for(t&&t(n);cr(9153)));l=r.O(l)})();