!function(t){var e={};function a(o){if(e[o])return e[o].exports;var s=e[o]={i:o,l:!1,exports:{}};return t[o].call(s.exports,s,s.exports,a),s.l=!0,s.exports}a.m=t,a.c=e,a.d=function(t,e,o){a.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:o})},a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="",a(a.s=3)}([function(t,e){t.exports=function(t,e,a,o,s,n){var i,r=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(i=t,r=t.default);var d,c="function"==typeof r?r.options:r;if(e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0),a&&(c.functional=!0),s&&(c._scopeId=s),n?(d=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(n)},c._ssrRegister=d):o&&(d=o),d){var m=c.functional,p=m?c.render:c.beforeCreate;m?(c._injectStyles=d,c.render=function(t,e){return d.call(e),p(t,e)}):c.beforeCreate=p?[].concat(p,d):[d]}return{esModule:i,exports:r,options:c}}},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var a=function(t,e){var a=t[1]||"",o=t[3];if(!o)return a;if(e&&"function"==typeof btoa){var s=(i=o,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),n=o.sources.map(function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"});return[a].concat(n).concat([s]).join("\n")}var i;return[a].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+a+"}":a}).join("")},e.i=function(t,a){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},s=0;s<this.length;s++){var n=this[s][0];"number"==typeof n&&(o[n]=!0)}for(s=0;s<t.length;s++){var i=t[s];"number"==typeof i[0]&&o[i[0]]||(a&&!i[2]?i[2]=a:a&&(i[2]="("+i[2]+") and ("+a+")"),e.push(i))}},e}},function(t,e,a){var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var s=a(10),n={},i=o&&(document.head||document.getElementsByTagName("head")[0]),r=null,l=0,d=!1,c=function(){},m=null,p="data-vue-ssr-id",u="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function b(t){for(var e=0;e<t.length;e++){var a=t[e],o=n[a.id];if(o){o.refs++;for(var s=0;s<o.parts.length;s++)o.parts[s](a.parts[s]);for(;s<a.parts.length;s++)o.parts.push(w(a.parts[s]));o.parts.length>a.parts.length&&(o.parts.length=a.parts.length)}else{var i=[];for(s=0;s<a.parts.length;s++)i.push(w(a.parts[s]));n[a.id]={id:a.id,refs:1,parts:i}}}}function f(){var t=document.createElement("style");return t.type="text/css",i.appendChild(t),t}function w(t){var e,a,o=document.querySelector("style["+p+'~="'+t.id+'"]');if(o){if(d)return c;o.parentNode.removeChild(o)}if(u){var s=l++;o=r||(r=f()),e=v.bind(null,o,s,!1),a=v.bind(null,o,s,!0)}else o=f(),e=function(t,e){var a=e.css,o=e.media,s=e.sourceMap;o&&t.setAttribute("media",o);m.ssrId&&t.setAttribute(p,e.id);s&&(a+="\n/*# sourceURL="+s.sources[0]+" */",a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */");if(t.styleSheet)t.styleSheet.cssText=a;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(a))}}.bind(null,o),a=function(){o.parentNode.removeChild(o)};return e(t),function(o){if(o){if(o.css===t.css&&o.media===t.media&&o.sourceMap===t.sourceMap)return;e(t=o)}else a()}}t.exports=function(t,e,a,o){d=a,m=o||{};var i=s(t,e);return b(i),function(e){for(var a=[],o=0;o<i.length;o++){var r=i[o];(l=n[r.id]).refs--,a.push(l)}e?b(i=s(t,e)):i=[];for(o=0;o<a.length;o++){var l;if(0===(l=a[o]).refs){for(var d=0;d<l.parts.length;d++)l.parts[d]();delete n[l.id]}}}};var h,g=(h=[],function(t,e){return h[t]=e,h.filter(Boolean).join("\n")});function v(t,e,a,o){var s=a?"":o.css;if(t.styleSheet)t.styleSheet.cssText=g(e,s);else{var n=document.createTextNode(s),i=t.childNodes;i[e]&&t.removeChild(i[e]),i.length?t.insertBefore(n,i[e]):t.appendChild(n)}}},function(t,e,a){a(4),t.exports=a(19)},function(t,e,a){Nova.booting(function(t,e){e.addRoutes([{name:"nova-mysql",path:"/nova-mysql",component:a(5)}])})},function(t,e,a){var o=a(0)(a(6),a(18),!1,null,null,null);t.exports=o.exports},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a(7),s=a.n(o),n=a(13),i=a.n(n);e.default={components:{SweetModal:s.a,SweetModalTab:i.a},data:function(){return{databases:[],dbusers:[],success_msg:"",error_msg:"",username:""}},mounted:function(){this.init()},methods:{init:function(){var t=this;Nova.request().get("/nova-vendor/nova-mysql/get_databases").then(function(e){t.databases=e.data.databases}).catch(function(e){t.error("Failed to get databases")}),Nova.request().get("/nova-vendor/nova-mysql/get_users").then(function(e){t.dbusers=e.data.dbusers}).catch(function(e){t.error("Failed to get users")})},createDatabase:function(){var t=this,e=document.getElementById("database_name").value;Nova.request().post("/nova-vendor/nova-mysql/create_database",{name:e}).then(function(e){e.data.error?t.error(e.data.error):(t.success(e.data.success),t.init())}).catch(function(e){t.error("Failed to create database")})},deleteDB:function(t){var e=this;confirm("Are you sure you want to delete this database? All data will be wiped!")&&Nova.request().post("/nova-vendor/nova-mysql/delete_database",{name:t}).then(function(t){t.data.error?e.error(t.data.error):(e.success(t.data.success),e.init())}).catch(function(t){e.error("Failed to delete database")})},repairDB:function(t){var e=this;confirm("Are you sure you want to repair this database?")&&Nova.request().post("/nova-vendor/nova-mysql/repair_database",{name:t}).then(function(t){t.data.error?e.error(t.data.error):(e.success(t.data.success),e.init())}).catch(function(t){e.error("Failed to delete database")})},addUser:function(){var t=this,e=document.getElementById("username").value,a=document.getElementById("password").value;Nova.request().post("/nova-vendor/nova-mysql/add_user",{username:e,password:a}).then(function(e){e.data.error?t.error(e.data.error):(t.success(e.data.success),t.init())}).catch(function(e){t.error("Failed to create user")})},deleteUser:function(t){var e=this;confirm("Are you sure you want to delete this user?")&&Nova.request().post("/nova-vendor/nova-mysql/delete_user",{username:t}).then(function(t){t.data.error?e.error(t.data.error):(e.success(t.data.success),e.init())}).catch(function(t){e.error("Failed to create user")})},addUserToDB:function(){for(var t=this,e=[],a=document.getElementsByName("selected_privileges[]"),o=0,s=a.length;o<s;o++)a[o].checked&&e.push(a[o].value);var n=(n=document.getElementById("addto_user")).options[n.selectedIndex].text,i=(i=document.getElementById("addto_database")).options[i.selectedIndex].text;Nova.request().post("/nova-vendor/nova-mysql/add_user_to_database",{user:n,database:i,privileges:e}).then(function(e){e.data.error?t.error(e.data.error):(t.success(e.data.success),t.init())}).catch(function(e){t.error("Failed to add user to database")})},revokeDatabaseUser:function(t,e){var a=this;confirm("Are you sure you want to revoke access from this user from this database?")&&Nova.request().post("/nova-vendor/nova-mysql/revoke_database_user",{user:e,database:t}).then(function(t){t.data.error?a.error(t.data.error):(a.success(t.data.success),a.init())}).catch(function(t){a.error("Failed to revoke user from this database")})},changePass:function(){var t=this,e=this.username,a=document.getElementById("change_password_pass").value;a!=document.getElementById("change_password_again").value?this.error("Password confirmation does not match!"):Nova.request().post("/nova-vendor/nova-mysql/change_password",{user:e,password:a}).then(function(e){e.data.error?t.error(e.data.error):(t.success(e.data.success),t.init())}).catch(function(e){t.error("Failed to change password!")})},addtoModal:function(){this.$refs.addto_modal.open("tab1")},changePassword:function(t){this.username=t,this.$refs.change_password.open("tab1")},success:function(t){this.success_msg=t,this.$refs.success_modal.open("tab1")},error:function(t){this.error_msg=t,this.$refs.error_modal.open("tab1")}}}},function(t,e,a){var o=a(0)(a(11),a(12),!1,function(t){a(8)},null,null);t.exports=o.exports},function(t,e,a){var o=a(9);"string"==typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);a(2)("53c2cb5a",o,!0,{})},function(t,e,a){(t.exports=a(1)(!1)).push([t.i,'@-webkit-keyframes animateSuccessTip{0%{width:0;left:1px;top:19px}54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}to{width:25px;left:14px;top:45px}}@keyframes animateSuccessTip{0%{width:0;left:1px;top:19px}54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}to{width:25px;left:14px;top:45px}}@-webkit-keyframes animateSuccessLong{0%{width:0;right:46px;top:54px}65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}to{width:47px;right:8px;top:38px}}@keyframes animateSuccessLong{0%{width:0;right:46px;top:54px}65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}to{width:47px;right:8px;top:38px}}@-webkit-keyframes rotatePlaceholder{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}to{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@keyframes rotatePlaceholder{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}to{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}.animateSuccessTip{-webkit-animation:animateSuccessTip .75s;animation:animateSuccessTip .75s}.animateSuccessLong{-webkit-animation:animateSuccessLong .75s;animation:animateSuccessLong .75s}.sweet-modal-icon.sweet-modal-success.animate:after{-webkit-animation:rotatePlaceholder 4.25s ease-in;animation:rotatePlaceholder 4.25s ease-in}@-webkit-keyframes animateErrorIcon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}to{-webkit-transform:rotateX(0deg);transform:rotateX(0deg);opacity:1}}@keyframes animateErrorIcon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}to{-webkit-transform:rotateX(0deg);transform:rotateX(0deg);opacity:1}}.animateErrorIcon{-webkit-animation:animateErrorIcon .5s;animation:animateErrorIcon .5s}@-webkit-keyframes animateXMark{0%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}50%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}80%{-webkit-transform:scale(1.15);transform:scale(1.15);margin-top:-6px}to{-webkit-transform:scale(1);transform:scale(1);margin-top:0;opacity:1}}@keyframes animateXMark{0%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}50%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}80%{-webkit-transform:scale(1.15);transform:scale(1.15);margin-top:-6px}to{-webkit-transform:scale(1);transform:scale(1);margin-top:0;opacity:1}}.animateXMark{-webkit-animation:animateXMark .5s;animation:animateXMark .5s}@-webkit-keyframes pulseWarning{0%{border-color:#f8d486}to{border-color:#f8bb86}}@keyframes pulseWarning{0%{border-color:#f8d486}to{border-color:#f8bb86}}.pulseWarning{-webkit-animation:pulseWarning .75s infinite alternate;animation:pulseWarning .75s infinite alternate}@-webkit-keyframes pulseWarningIns{0%{background-color:#f8d486}to{background-color:#f8bb86}}@keyframes pulseWarningIns{0%{background-color:#f8d486}to{background-color:#f8bb86}}.pulseWarningIns{-webkit-animation:pulseWarningIns .75s infinite alternate;animation:pulseWarningIns .75s infinite alternate}@-webkit-keyframes rotate-loading{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes rotate-loading{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.sweet-modal-icon{position:relative;width:80px;height:80px;border:4px solid gray;border-radius:50%;margin:auto;padding:0;-webkit-box-sizing:content-box;box-sizing:content-box}.sweet-modal-icon.sweet-modal-error{border-color:#f44336}.sweet-modal-icon.sweet-modal-error .sweet-modal-x-mark{position:relative;display:block}.sweet-modal-icon.sweet-modal-error .sweet-modal-line{display:block;position:absolute;top:37px;height:5px;width:47px;background-color:#f44336;border-radius:2px}.sweet-modal-icon.sweet-modal-error .sweet-modal-line.sweet-modal-left{-webkit-transform:rotate(45deg);transform:rotate(45deg);left:17px}.sweet-modal-icon.sweet-modal-error .sweet-modal-line.sweet-modal-right{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);right:16px}.sweet-modal-icon.sweet-modal-warning{border-color:#ff9800}.sweet-modal-icon.sweet-modal-warning .sweet-modal-body{position:absolute;width:5px;height:47px;left:50%;top:10px;margin-left:-2px;border-radius:2px;background-color:#ff9800}.sweet-modal-icon.sweet-modal-warning .sweet-modal-dot{position:absolute;left:50%;bottom:10px;width:7px;height:7px;margin-left:-3px;border-radius:50%;background-color:#ff9800}.sweet-modal-icon.sweet-modal-info{border-color:#039be5}.sweet-modal-icon.sweet-modal-info:before{content:"";position:absolute;width:5px;height:29px;left:50%;bottom:17px;margin-left:-2px;border-radius:2px;background-color:#039be5}.sweet-modal-icon.sweet-modal-info:after{content:"";position:absolute;width:7px;height:7px;top:19px;margin-left:-3px;border-radius:50%;background-color:#039be5}.sweet-modal-icon.sweet-modal-success{border-color:#4caf50}.sweet-modal-icon.sweet-modal-success:after,.sweet-modal-icon.sweet-modal-success:before{content:"";position:absolute;border-radius:40px;width:60px;height:120px;background:#fff;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.sweet-modal-icon.sweet-modal-success:before{border-radius:120px 0 0 120px;top:-7px;left:-33px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:60px 60px;transform-origin:60px 60px}.sweet-modal-icon.sweet-modal-success:after{border-radius:0 120px 120px 0;top:-11px;left:30px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:0 60px;transform-origin:0 60px}.sweet-modal-icon.sweet-modal-success .sweet-modal-placeholder{-webkit-box-sizing:content-box;box-sizing:content-box;position:absolute;left:-4px;top:-4px;z-index:2;width:80px;height:80px;border:4px solid rgba(76,175,80,.2);border-radius:50%}.sweet-modal-icon.sweet-modal-success .sweet-modal-fix{position:absolute;left:28px;top:8px;z-index:1;width:7px;height:90px;background-color:#fff;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.sweet-modal-icon.sweet-modal-success .sweet-modal-line{display:block;position:absolute;z-index:2;height:5px;background-color:#4caf50;border-radius:2px}.sweet-modal-icon.sweet-modal-success .sweet-modal-line.sweet-modal-tip{width:25px;left:14px;top:46px;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.sweet-modal-icon.sweet-modal-success .sweet-modal-line.sweet-modal-long{width:47px;right:8px;top:38px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.sweet-modal-icon.sweet-modal-custom{border-radius:0;border:none;background-size:contain;background-position:50%;background-repeat:no-repeat}.sweet-modal.theme-dark .sweet-modal-icon.sweet-modal-success .sweet-modal-fix,.sweet-modal.theme-dark .sweet-modal-icon.sweet-modal-success:after,.sweet-modal.theme-dark .sweet-modal-icon.sweet-modal-success:before{background-color:#182028}.sweet-modal-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:9001;font-size:14px;-webkit-font-smoothing:antialiased;background:hsla(0,0%,100%,.9);opacity:0;-webkit-transition:opacity .3s;transition:opacity .3s;-webkit-transform:translate3D(0,0,0);transform:translate3D(0,0,0);-webkit-perspective:500px}.sweet-modal-overlay.theme-dark{background:rgba(24,32,40,.94)}.sweet-modal-overlay.is-visible{opacity:1}.sweet-modal{-webkit-box-sizing:border-box;box-sizing:border-box;background:#fff;-webkit-box-shadow:0 8px 46px rgba(0,0,0,.08),0 2px 6px rgba(0,0,0,.03);box-shadow:0 8px 46px rgba(0,0,0,.08),0 2px 6px rgba(0,0,0,.03);position:absolute;top:50%;left:50%;width:80%;max-width:640px;max-height:100vh;overflow-y:auto;border-radius:2px;-webkit-transform:scale(.9) translate(calc(-50% - 32px),-50%);transform:scale(.9) translate(calc(-50% - 32px),-50%);opacity:0;-webkit-transition-property:opacity,-webkit-transform;transition-property:opacity,-webkit-transform;transition-property:transform,opacity;transition-property:transform,opacity,-webkit-transform;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-delay:.05s;transition-delay:.05s;-webkit-transition-timing-function:cubic-bezier(.52,.02,.19,1.02);transition-timing-function:cubic-bezier(.52,.02,.19,1.02)}.sweet-modal .sweet-box-actions{position:absolute;top:12px;right:12px}.sweet-modal .sweet-box-actions .sweet-action-close{display:inline-block;cursor:pointer;color:#222c38;text-align:center;width:42px;height:42px;line-height:42px;border-radius:50%}.sweet-modal .sweet-box-actions .sweet-action-close svg{width:24px;height:24px;vertical-align:middle;margin-top:-2px}.sweet-modal .sweet-box-actions .sweet-action-close svg,.sweet-modal .sweet-box-actions .sweet-action-close svg circle,.sweet-modal .sweet-box-actions .sweet-action-close svg path,.sweet-modal .sweet-box-actions .sweet-action-close svg polygon,.sweet-modal .sweet-box-actions .sweet-action-close svg rect{fill:currentColor}.sweet-modal .sweet-box-actions .sweet-action-close:hover{background:#039be5;color:#fff}.sweet-modal .sweet-title{height:64px;line-height:64px;border-bottom:1px solid #eaeaea;padding-left:32px;padding-right:64px}.sweet-modal .sweet-title,.sweet-modal .sweet-title>h2{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sweet-modal .sweet-title>h2{margin:0;padding:0;font-weight:500;font-size:22px}.sweet-modal ul.sweet-modal-tabs{margin:0;padding:0;list-style-type:none;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:calc(100% + 32px);height:100%;margin-left:-32px;overflow-x:auto}.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab{display:block;height:100%}.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-left:20px;padding-right:20px;color:#222c38;text-decoration:none;text-align:center;height:100%}.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-title{display:block}.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon{display:block;line-height:1}.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon img,.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon svg{width:16px;height:16px}.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon img,.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon img circle,.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon img path,.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon img polygon,.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon img rect,.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon svg,.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon svg circle,.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon svg path,.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon svg polygon,.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon svg rect{fill:currentColor}.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon+span.sweet-modal-tab-title{line-height:1;margin-top:8px}.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab:first-child a{padding-left:32px}.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab.active a{font-weight:600;color:#039be5}.sweet-modal ul.sweet-modal-tabs li.sweet-modal-tab.disabled a{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default;pointer-events:none;color:#999}.sweet-modal.has-tabs:not(.has-title) .sweet-title{height:84px;line-height:84px}.sweet-modal.has-tabs.has-title ul.sweet-modal-tabs{width:100%;height:48px;margin:0;border-bottom:1px solid #eaeaea}.sweet-modal.has-tabs.has-title ul.sweet-modal-tabs li.sweet-modal-tab a{margin-top:-4px}.sweet-modal.has-tabs.has-title ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon{display:inline-block}.sweet-modal.has-tabs.has-title ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon img,.sweet-modal.has-tabs.has-title ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-icon svg{vertical-align:middle;margin-top:-2px;margin-right:8px}.sweet-modal.has-tabs.has-title ul.sweet-modal-tabs li.sweet-modal-tab a span.sweet-modal-tab-title{display:inline-block}.sweet-modal .sweet-content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:24px 32px;line-height:1.5}.sweet-modal .sweet-content .sweet-content-content{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.sweet-modal .sweet-content .sweet-modal-tab:not(.active){display:none}.sweet-modal .sweet-content .sweet-modal-icon{margin-bottom:36px}.sweet-modal .sweet-buttons{text-align:right;padding:12px 20px}.sweet-modal .sweet-content+.sweet-buttons{border-top:1px solid #eaeaea}.sweet-modal.is-alert .sweet-content{display:block;text-align:center;font-size:16px;padding-top:64px;padding-bottom:64px}.sweet-modal.has-tabs.has-icon .sweet-content{padding-top:32px;padding-bottom:32px}.sweet-modal.has-tabs.has-icon .sweet-content .sweet-content-content{padding-left:32px}.sweet-modal.has-tabs.has-icon .sweet-content .sweet-modal-icon,.sweet-modal:not(.has-content) .sweet-modal-icon{margin-bottom:0}.sweet-modal.theme-dark{background:#182028;color:#fff}.sweet-modal.theme-dark .sweet-box-actions .sweet-action-close{color:#fff}.sweet-modal.theme-dark .sweet-title{border-bottom-color:#090c0f;-webkit-box-shadow:0 1px 0 #273442;box-shadow:0 1px 0 #273442}.sweet-modal.theme-dark ul.sweet-modal-tabs li a{color:#fff}.sweet-modal.theme-dark ul.sweet-modal-tabs li.active a{color:#039be5}.sweet-modal.theme-dark ul.sweet-modal-tabs li.disabled a{color:#3e5368}.sweet-modal.theme-dark.has-tabs.has-title ul.sweet-modal-tabs{border-bottom-color:#090c0f;-webkit-box-shadow:0 1px 0 #273442;box-shadow:0 1px 0 #273442}.sweet-modal.theme-dark .sweet-content+.sweet-buttons{border-top-color:#273442;-webkit-box-shadow:0 -1px 0 #090c0f;box-shadow:0 -1px 0 #090c0f}.sweet-modal .sweet-buttons,.sweet-modal .sweet-content{opacity:0;-webkit-transition-property:opacity,-webkit-transform;transition-property:opacity,-webkit-transform;transition-property:transform,opacity;transition-property:transform,opacity,-webkit-transform;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-delay:.09s;transition-delay:.09s;-webkit-transition-timing-function:cubic-bezier(.52,.02,.19,1.02);transition-timing-function:cubic-bezier(.52,.02,.19,1.02)}.sweet-modal .sweet-content{-webkit-transform:translateY(-8px);transform:translateY(-8px)}.sweet-modal .sweet-buttons{-webkit-transform:translateY(16px);transform:translateY(16px)}.sweet-modal.is-visible{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);opacity:1}.sweet-modal.is-visible .sweet-buttons,.sweet-modal.is-visible .sweet-content{-webkit-transform:none;transform:none;opacity:1}.sweet-modal.bounce{-webkit-animation-name:bounce;animation-name:bounce;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-iteration-count:2;animation-iteration-count:2;-webkit-animation-direction:alternate;animation-direction:alternate}@media screen and (min-width:601px){@-webkit-keyframes bounce{0%{-webkit-transform:scale(1) translate(-50%,-50%);transform:scale(1) translate(-50%,-50%)}50%{-webkit-transform:scale(1.02) translate(calc(-50% + 8px),-50%);transform:scale(1.02) translate(calc(-50% + 8px),-50%)}to{-webkit-transform:scale(1) translate(-50%,-50%);transform:scale(1) translate(-50%,-50%)}}@keyframes bounce{0%{-webkit-transform:scale(1) translate(-50%,-50%);transform:scale(1) translate(-50%,-50%)}50%{-webkit-transform:scale(1.02) translate(calc(-50% + 8px),-50%);transform:scale(1.02) translate(calc(-50% + 8px),-50%)}to{-webkit-transform:scale(1) translate(-50%,-50%);transform:scale(1) translate(-50%,-50%)}}}@media screen and (max-width:600px){.sweet-modal.is-mobile-fullscreen{width:100%;height:100vh;left:0;top:0;-webkit-transform:scale(.9);transform:scale(.9)}.sweet-modal.is-mobile-fullscreen.is-visible{-webkit-transform:none;transform:none}.sweet-modal.is-mobile-fullscreen .sweet-buttons{-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;bottom:0;left:0;width:100%}}',""])},function(t,e){t.exports=function(t,e){for(var a=[],o={},s=0;s<e.length;s++){var n=e[s],i=n[0],r={id:t+":"+s,css:n[1],media:n[2],sourceMap:n[3]};o[i]?o[i].parts.push(r):a.push(o[i]={id:i,parts:[r]})}return a}},function(t,e,a){"use strict";function o(t){if(Array.isArray(t)){for(var e=0,a=Array(t.length);e<t.length;e++)a[e]=t[e];return a}return Array.from(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"SweetModal",props:{title:{type:String,required:!1,default:""},overlayTheme:{type:String,required:!1,default:"light"},modalTheme:{type:String,required:!1,default:"light"},blocking:{type:Boolean,required:!1,default:!1},pulseOnBlock:{type:Boolean,required:!1,default:!0},icon:{type:String,required:!1,default:""},hideCloseButton:{type:Boolean,required:!1,default:!1},enableMobileFullscreen:{type:Boolean,required:!1,default:!0},width:{type:[Number,String],required:!1,default:null}},mounted:function(){this.tabs=this.$children.filter(function(t){return t.cmpName&&"tab"==t.cmpName}),this.has_tabs&&(this.currentTab=this._changeTab(this.tabs[0])),document.addEventListener("keyup",this._onDocumentKeyup)},beforeDestroy:function(){document.removeEventListener("keyup",this._onDocumentKeyup)},data:function(){return{visible:!1,is_open:!1,is_bouncing:!1,tabs:[],backups:{body:{height:null,overflow:null}}}},computed:{has_title:function(){return this.title||this.$slots.title},has_tabs:function(){return this.tabs.length>0},has_content:function(){return this.$slots.default},current_tab:function(){return this.tabs.filter(function(t){return!0===t.active})[0]},overlay_classes:function(){return["sweet-modal-overlay","theme-"+this.overlayTheme,"sweet-modal-clickable",{"is-visible":this.visible,blocking:this.blocking}]},modal_classes:function(){return["sweet-modal","theme-"+this.modalTheme,{"has-title":this.has_title,"has-tabs":this.has_tabs,"has-content":this.has_content,"has-icon":this.icon,"is-mobile-fullscreen":this.enableMobileFullscreen,"is-visible":this.visible,"is-alert":this.icon&&!this.has_tabs||!this.icon&&!this.title&&!this.$slots.title,bounce:this.is_bouncing}]},modal_style:function(){var t=this.width,e=null;return null!==t&&(Number(t)==t&&(t+="px"),e="none"),{width:t,maxWidth:e}}},methods:{open:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(e&&this.has_tabs){var a=this.tabs.filter(function(t){return t.id===e});if(a.length>0)this.currentTab=this._changeTab(a[0]);else{var o=this.tabs[e];o&&(this.currentTab=this._changeTab(o))}}this.is_open=!0,this._lockBody(),this._animateIcon(),setTimeout(function(){return t.visible=!0},30),this.$emit("open")},close:function(){var t=this;this.visible=!1,this._unlockBody(),setTimeout(function(){return t.is_open=!1},300),this.$emit("close")},bounce:function(){var t=this;this.is_bouncing=!0,setTimeout(function(){return t.is_bouncing=!1},330)},_lockBody:function(){this.backups.body.height=document.body.style.height,this.backups.body.overflow=document.body.style.overflow,document.body.style.height="100%",document.body.style.overflow="hidden"},_unlockBody:function(){document.body.style.height=this.backups.body.height,document.body.style.overflow=this.backups.body.overflow},_onOverlayClick:function(t){t.target.classList&&!t.target.classList.contains("sweet-modal-clickable")||(this.blocking?this.pulseOnBlock&&this.bounce():this.close())},_onDocumentKeyup:function(t){27==t.keyCode&&(this.blocking?this.pulseOnBlock&&this.bounce():this.close())},_changeTab:function(t){this.tabs.map(function(e){return e.active=e==t}),this.currentTab=t},_getClassesForTab:function(t){return["sweet-modal-tab",{active:t.active,disabled:t.disabled}]},_animateIcon:function(){var t=this;if(this.icon)switch(this.icon){case"success":setTimeout(function(){t._applyClasses(t.$refs.icon_success,{"":["animate"],".sweet-modal-tip":["animateSuccessTip"],".sweet-modal-long":["animateSuccessLong"]})},80);break;case"warning":this._applyClasses(this.$refs.icon_warning,{"":["pulseWarning"],".sweet-modal-body":["pulseWarningIns"],".sweet-modal-dot":["pulseWarningIns"]});break;case"error":setTimeout(function(){t._applyClasses(t.$refs.icon_error,{"":["animateErrorIcon"],".sweet-modal-x-mark":["animateXMark"]})},80)}},_applyClasses:function(t,e){for(var a in e){var s,n,i=e[a],r=void 0;(s=(r=""==a?t:t.querySelector(a)).classList).remove.apply(s,o(i)),(n=r.classList).add.apply(n,o(i))}}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:t.is_open,expression:"is_open"}],class:t.overlay_classes,on:{click:t._onOverlayClick}},[a("div",{class:t.modal_classes,style:t.modal_style},[a("div",{staticClass:"sweet-box-actions"},[t._t("box-action"),t._v(" "),t.hideCloseButton?t._e():a("div",{staticClass:"sweet-action-close",on:{click:t.close}},[a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}},[a("path",{attrs:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"#292c34"}})])])],2),t._v(" "),t.has_title||t.has_tabs?a("div",{staticClass:"sweet-title"},[t.has_tabs&&!t.has_title?[a("ul",{staticClass:"sweet-modal-tabs"},t._l(t.tabs,function(e){return a("li",{class:t._getClassesForTab(e)},[a("a",{attrs:{href:"#"},on:{click:function(a){a.preventDefault(),t._changeTab(e)}}},[a("div",{staticClass:"sweet-modal-valign"},[e.icon?a("span",{staticClass:"sweet-modal-tab-icon",domProps:{innerHTML:t._s(e.icon)}}):t._e(),t._v(" "),a("span",{staticClass:"sweet-modal-tab-title"},[t._v(t._s(e.title))])])])])}))]:t._e(),t._v(" "),t.has_title?[t.title?a("h2",{domProps:{innerHTML:t._s(t.title)}}):t._e(),t._v(" "),t._t("title")]:t._e()],2):t._e(),t._v(" "),t.has_title&&t.has_tabs?a("ul",{staticClass:"sweet-modal-tabs"},t._l(t.tabs,function(e){return a("li",{class:t._getClassesForTab(e)},[a("a",{attrs:{href:"#"},on:{click:function(a){a.preventDefault(),t._changeTab(e)}}},[a("div",{staticClass:"sweet-modal-valign"},[e.icon?a("span",{staticClass:"sweet-modal-tab-icon",domProps:{innerHTML:t._s(e.icon)}}):t._e(),t._v(" "),a("span",{staticClass:"sweet-modal-tab-title"},[t._v(t._s(e.title))])])])])})):t._e(),t._v(" "),a("div",{ref:"content",staticClass:"sweet-content"},["error"==t.icon?a("div",{ref:"icon_error",staticClass:"sweet-modal-icon sweet-modal-error"},[t._m(0)]):t._e(),t._v(" "),"warning"==t.icon?a("div",{ref:"icon_warning",staticClass:"sweet-modal-icon sweet-modal-warning"},[a("span",{staticClass:"sweet-modal-body"}),t._v(" "),a("span",{staticClass:"sweet-modal-dot"})]):t._e(),t._v(" "),"info"==t.icon?a("div",{ref:"icon_info",staticClass:"sweet-modal-icon sweet-modal-info"}):t._e(),t._v(" "),"success"==t.icon?a("div",{ref:"icon_success",staticClass:"sweet-modal-icon sweet-modal-success"},[a("span",{staticClass:"sweet-modal-line sweet-modal-tip"}),t._v(" "),a("span",{staticClass:"sweet-modal-line sweet-modal-long"}),t._v(" "),a("div",{staticClass:"sweet-modal-placeholder"}),t._v(" "),a("div",{staticClass:"sweet-modal-fix"})]):t._e(),t._v(" "),t.$slots.default?a("div",{staticClass:"sweet-content-content"},[t._t("default")],2):t._e()]),t._v(" "),t.$slots.button?a("div",{staticClass:"sweet-buttons"},[t._t("button")],2):t._e()])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("span",{staticClass:"sweet-modal-x-mark"},[e("span",{staticClass:"sweet-modal-line sweet-modal-left"}),this._v(" "),e("span",{staticClass:"sweet-modal-line sweet-modal-right"})])}]}},function(t,e,a){var o=a(0)(a(16),a(17),!1,function(t){a(14)},null,null);t.exports=o.exports},function(t,e,a){var o=a(15);"string"==typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);a(2)("37705fab",o,!0,{})},function(t,e,a){(t.exports=a(1)(!1)).push([t.i,"",""])},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={props:{title:{type:String,required:!0},id:{type:String,required:!0},icon:{type:String,required:!1,default:null},disabled:{type:Boolean,required:!1,default:!1}},data:function(){return{active:!1}},computed:{cmpName:function(){return"tab"}}}},function(t,e){t.exports={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{class:["sweet-modal-tab",{active:this.active}]},[this._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("card",{staticClass:"flex flex-col items-center justify-center",staticStyle:{"min-height":"300px"}},[a("div",{attrs:{align:"center"}},[a("img",{attrs:{src:"https://www.mysql.com/common/logos/logo-mysql-170x115.png"}})]),t._v(" "),a("hr",{staticStyle:{"margin-top":"10px","margin-bottom":"10px"}}),t._v(" "),a("div",{staticStyle:{"margin-top":"20px",width:"500px"}},[a("div",{staticStyle:{color:"#5D8BB9","font-size":"18px","font-weight":"bold","margin-bottom":"10px"}},[t._v("Create New Database ")]),t._v(" "),a("label",{staticClass:"inline-block",attrs:{for:"database_name"}},[a("span",{staticStyle:{color:"#5D8BB9","font-size":"16px","font-weight":"bold"}},[t._v("New Database:")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.database_name,expression:"database_name"}],staticClass:"w-full form-control form-input form-input-bordered",attrs:{type:"text",id:"database_name"},domProps:{value:t.database_name},on:{input:function(e){e.target.composing||(t.database_name=e.target.value)}}})]),t._v(" "),a("br"),a("br"),t._v(" "),a("button",{staticClass:"ml-auto btn btn-default btn-primary mr-3",on:{click:function(e){t.createDatabase()}}},[t._v("Create Database")])]),t._v(" "),a("div",{staticStyle:{"margin-bottom":"20px","margin-top":"30px"},attrs:{align:"left"}},[a("div",{staticStyle:{color:"#5D8BB9","font-size":"18px","font-weight":"bold","margin-bottom":"10px","text-align":"left"}},[t._v("Current Databases")]),t._v(" "),a("table",{staticClass:"table"},[a("tr",[a("td",{staticStyle:{height:"45px","font-size":"14px",color:"#5D8BB9","text-align":"left","font-weight":"bold",width:"20px !important"}},[t._v("Database")]),t._v(" "),a("td",{staticStyle:{height:"45px","font-size":"14px",color:"#5D8BB9","text-align":"center","font-weight":"bold"}},[t._v("Users")]),t._v(" "),a("td",{staticStyle:{height:"45px","font-size":"14px",color:"#5D8BB9","text-align":"center","font-weight":"bold",width:"40px !important"}},[t._v("Repair")]),t._v(" "),a("td",{staticStyle:{height:"45px","font-size":"14px",color:"#5D8BB9","text-align":"center","font-weight":"bold",width:"40px !important"}},[t._v("Delete")])]),t._v(" "),t._l(this.databases,function(e){return a("tr",[a("td",{staticStyle:{height:"45px","text-align":"left",width:"20px !important"}},[t._v(t._s(e.db))]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[a("ul",{staticStyle:{"list-style":"none"}},t._l(e.userlist,function(o){return a("li",[a("div",[a("span",{staticStyle:{"font-size":"20px","font-weight":"bold",color:"red",cursor:"pointer"},on:{click:function(a){t.revokeDatabaseUser(e.db,o.user)}}},[t._v("x")]),t._v(" "+t._s(o.user)+"\n ")])])}))]),t._v(" "),a("td",{staticStyle:{height:"45px","text-align":"center"}},[a("button",{staticStyle:{color:"#5D8BB9 !important",width:"40px !important"},on:{click:function(a){t.repairDB(e.db)}}},[t._v("Repair")])]),t._v(" "),a("td",{staticStyle:{height:"45px","text-align":"center"}},[a("button",{staticStyle:{color:"#5D8BB9 !important",width:"40px !important"},on:{click:function(a){t.deleteDB(e.db)}}},[t._v("Delete")])])])})],2)]),t._v(" "),a("hr"),t._v(" "),a("div",{staticStyle:{"margin-top":"20px","margin-left":"-60px",width:"440px"}},[a("div",{staticStyle:{color:"#5D8BB9","font-size":"18px","font-weight":"bold","margin-bottom":"10px"}},[t._v("MySQL Users")]),t._v(" "),a("label",{staticClass:"inline-block",attrs:{for:"username"}},[a("span",{staticStyle:{color:"#5D8BB9","font-size":"16px","font-weight":"bold"}},[t._v("Username:")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.username,expression:"username"}],staticClass:"w-full form-control form-input form-input-bordered",attrs:{type:"text",id:"username"},domProps:{value:t.username},on:{input:function(e){e.target.composing||(t.username=e.target.value)}}})]),t._v(" "),a("br"),a("br"),t._v(" "),a("label",{staticClass:"inline-block",attrs:{for:"password"}},[a("span",{staticStyle:{color:"#5D8BB9","font-size":"16px","font-weight":"bold"}},[t._v("Password:")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],staticClass:"w-full form-control form-input form-input-bordered",attrs:{type:"text",id:"password"},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}})]),t._v(" "),a("br"),a("br"),t._v(" "),a("button",{staticClass:"ml-auto btn btn-default btn-primary mr-3",on:{click:function(e){t.addUser()}}},[t._v("Create User")])]),t._v(" "),a("div",{staticStyle:{"margin-bottom":"10px","margin-top":"30px"},attrs:{align:"left"}},[a("div",{staticStyle:{color:"#5D8BB9","font-size":"18px","font-weight":"bold","margin-bottom":"10px","text-align":"left"}},[t._v("Current Users")]),t._v(" "),a("table",{staticClass:"table",attrs:{width:"500"}},[a("tr",[a("td",{staticStyle:{height:"45px","font-size":"14px",color:"#5D8BB9","text-align":"left","font-weight":"bold"}},[t._v("User")]),t._v(" "),a("td",{staticStyle:{height:"45px","font-size":"14px",color:"#5D8BB9","text-align":"center","font-weight":"bold"}},[t._v("Change Password")]),t._v(" "),a("td",{staticStyle:{height:"45px","font-size":"14px",color:"#5D8BB9","text-align":"center","font-weight":"bold"}},[t._v("Delete")])]),t._v(" "),t._l(this.dbusers,function(e){return a("tr",[a("td",{staticStyle:{height:"45px","text-align":"left"}},[t._v(t._s(e.user))]),t._v(" "),a("td",{staticStyle:{height:"45px","text-align":"center"}},[a("button",{staticStyle:{color:"#5D8BB9 !important"},on:{click:function(a){t.changePassword(e.user)}}},[t._v("Change Password")])]),t._v(" "),a("td",{staticStyle:{height:"45px","text-align":"center"}},[a("button",{staticStyle:{color:"#5D8BB9 !important"},on:{click:function(a){t.deleteUser(e.user)}}},[t._v("Delete")])])])})],2)]),t._v(" "),a("hr",{staticStyle:{"margin-top":"20px","margin-bottom":"10px"}}),t._v(" "),a("div",{staticStyle:{"margin-top":"20px","margin-bottom":"30px","margin-left":"-60px",width:"430px"}},[a("div",{staticStyle:{color:"#5D8BB9","font-size":"18px","font-weight":"bold","margin-bottom":"10px"}},[t._v("Add User To Database")]),t._v(" "),a("label",{staticClass:"inline-block",attrs:{for:"addto_user"}},[a("span",{staticStyle:{color:"#5D8BB9","font-size":"16px","font-weight":"bold"}},[t._v("User:")]),a("br"),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.addto_user,expression:"addto_user"}],staticClass:"w-full form-control form-input form-input-bordered",staticStyle:{width:"220px"},attrs:{id:"addto_user"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.addto_user=e.target.multiple?a:a[0]}}},t._l(this.dbusers,function(e){return a("option",{attrs:{value:""}},[t._v(t._s(e.user))])}))]),t._v(" "),a("br"),a("br"),t._v(" "),a("label",{staticClass:"inline-block",attrs:{for:"addto_database"}},[a("span",{staticStyle:{color:"#5D8BB9","font-size":"16px","font-weight":"bold"}},[t._v("Database:")]),a("br"),t._v(" "),a("select",{directives:[{name:"model",rawName:"v-model",value:t.addto_database,expression:"addto_database"}],staticClass:"w-full form-control form-input form-input-bordered",staticStyle:{width:"220px"},attrs:{id:"addto_database"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.addto_database=e.target.multiple?a:a[0]}}},t._l(this.databases,function(e){return a("option",{attrs:{value:""}},[t._v(t._s(e.db))])}))]),t._v(" "),a("br"),a("br"),t._v(" "),a("button",{staticClass:"ml-auto btn btn-default btn-primary mr-3",on:{click:function(e){t.addtoModal()}}},[t._v("Add")])]),t._v(" "),a("sweet-modal",{ref:"addto_modal"},[a("div",{staticStyle:{color:"#5D8BB9","font-size":"18px","font-weight":"bold","text-align":"left"}},[t._v("Select User Privileges")]),t._v(" "),a("div",[a("table",{staticClass:"table"},[a("tr",[a("td",{attrs:{align:"left"}},[a("input",{attrs:{type:"checkbox",value:"ALTER",name:"selected_privileges[]"}}),t._v(" ALTER")]),t._v(" "),a("td",{attrs:{align:"left"}},[a("input",{attrs:{type:"checkbox",value:"ALTER ROUTINE",name:"selected_privileges[]"}}),t._v(" ALTER ROUTINE")])]),t._v(" "),a("tr",[a("td",{attrs:{align:"left"}},[a("input",{attrs:{type:"checkbox",value:"CREATE",name:"selected_privileges[]"}}),t._v(" CREATE")]),t._v(" "),a("td",{attrs:{align:"left"}},[a("input",{attrs:{type:"checkbox",value:"CREATE ROUTINE",name:"selected_privileges[]"}}),t._v(" CREATE ROUTINE")])]),t._v(" "),a("tr",[a("td",{attrs:{align:"left"}},[a("input",{attrs:{type:"checkbox",value:"CREATE TEMPORARY TABLES",name:"selected_privileges[]"}}),t._v(" CREATE TEMPORARY TABLES")]),t._v(" "),a("td",{attrs:{align:"left"}},[a("input",{attrs:{type:"checkbox",value:"CREATE VIEW",name:"selected_privileges[]"}}),t._v(" CREATE VIEW")])]),t._v(" "),a("tr",[a("td",{attrs:{align:"left"}},[a("input",{attrs:{type:"checkbox",value:"DELETE",name:"selected_privileges[]"}}),t._v(" DELETE")]),t._v(" "),a("td",{attrs:{align:"left"}},[a("input",{attrs:{type:"checkbox",value:"DROP",name:"selected_privileges[]"}}),t._v(" DROP")])]),t._v(" "),a("tr",[a("td",{attrs:{align:"left"}},[a("input",{attrs:{type:"checkbox",value:"EVENT",name:"selected_privileges[]"}}),t._v(" EVENT")]),t._v(" "),a("td",{attrs:{align:"left"}},[a("input",{attrs:{type:"checkbox",value:"EXECUTE",name:"selected_privileges[]"}}),t._v(" EXECUTE")])]),t._v(" "),a("tr",[a("td",{attrs:{align:"left"}},[a("input",{attrs:{type:"checkbox",value:"INDEX",name:"selected_privileges[]"}}),t._v(" INDEX")]),t._v(" "),a("td",{attrs:{align:"left"}},[a("input",{attrs:{type:"checkbox",value:"INSERT",name:"selected_privileges[]"}}),t._v(" INSERT")])]),t._v(" "),a("tr",[a("td",{attrs:{align:"left"}},[a("input",{attrs:{type:"checkbox",value:"LOCK TABLES",name:"selected_privileges[]"}}),t._v(" LOCK TABLES")]),t._v(" "),a("td",{attrs:{align:"left"}},[a("input",{attrs:{type:"checkbox",value:"REFERENCES",name:"selected_privileges[]"}}),t._v(" REFERENCES")])]),t._v(" "),a("tr",[a("td",{attrs:{align:"left"}},[a("input",{attrs:{type:"checkbox",value:"SELECT",name:"selected_privileges[]"}}),t._v(" SELECT")]),t._v(" "),a("td",{attrs:{align:"left"}},[a("input",{attrs:{type:"checkbox",value:"SHOW VIEW",name:"selected_privileges[]"}}),t._v(" SHOW VIEW")])]),t._v(" "),a("tr",[a("td",{attrs:{align:"left"}},[a("input",{attrs:{type:"checkbox",value:"TRIGGER",name:"selected_privileges[]"}}),t._v(" TRIGGER")]),t._v(" "),a("td",{attrs:{align:"left"}},[a("input",{attrs:{type:"checkbox",value:"UPDATE",name:"selected_privileges[]"}}),t._v(" UPDATE")])])]),t._v(" "),a("div",{staticStyle:{"margin-top":"20px"},attrs:{align:"center"}},[a("button",{staticClass:"ml-auto btn btn-default btn-primary mr-3",on:{click:function(e){t.addUserToDB()}}},[t._v("Make Changes")])])])]),t._v(" "),a("sweet-modal",{ref:"change_password"},[a("div",[a("div",{staticStyle:{color:"#5D8BB9","font-size":"18px","font-weight":"bold","text-align":"left"}},[t._v("Set MySQL User Password")]),t._v(" "),a("div",{staticStyle:{color:"#5D8BB9","font-size":"16px","font-weight":"bold","text-align":"left","margin-top":"20px"},attrs:{align:"left"}},[t._v("Username:")]),t._v(" "),a("div",{attrs:{align:"left"}},[t._v(t._s(this.username))]),t._v(" "),a("div",{staticStyle:{"margin-top":"20px","margin-bottom":"20px"},attrs:{align:"left"}},[a("label",{staticClass:"inline-block",attrs:{for:"change_password_pass"}},[a("span",{staticStyle:{color:"#5D8BB9","font-size":"16px","font-weight":"bold"}},[t._v("Password")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.change_password_pass,expression:"change_password_pass"}],staticClass:"w-full form-control form-input form-input-bordered",attrs:{type:"text",id:"change_password_pass"},domProps:{value:t.change_password_pass},on:{input:function(e){e.target.composing||(t.change_password_pass=e.target.value)}}})]),t._v(" "),a("br"),a("br"),t._v(" "),a("label",{staticClass:"inline-block",attrs:{for:"change_password_again"}},[a("span",{staticStyle:{color:"#5D8BB9","font-size":"16px","font-weight":"bold"}},[t._v("Password (Again)")]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.change_password_again,expression:"change_password_again"}],staticClass:"w-full form-control form-input form-input-bordered",attrs:{type:"text",id:"change_password_again"},domProps:{value:t.change_password_again},on:{input:function(e){e.target.composing||(t.change_password_again=e.target.value)}}})])]),t._v(" "),a("button",{staticClass:"ml-auto btn btn-default btn-primary mr-3",on:{click:function(e){t.changePass()}}},[t._v("Change Password")])])]),t._v(" "),a("sweet-modal",{ref:"success_modal",attrs:{icon:"success"}},[t._v("\n "+t._s(this.success_msg)+"\n ")]),t._v(" "),a("sweet-modal",{ref:"error_modal",attrs:{icon:"error"}},[t._v("\n "+t._s(this.error_msg)+"\n ")])],1)],1)},staticRenderFns:[]}},function(t,e){}]);
|