diff --git a/HomeUI/dist/css/3192.css b/HomeUI/dist/css/1012.css similarity index 100% rename from HomeUI/dist/css/3192.css rename to HomeUI/dist/css/1012.css diff --git a/HomeUI/dist/css/3729.css b/HomeUI/dist/css/2072.css similarity index 89% rename from HomeUI/dist/css/3729.css rename to HomeUI/dist/css/2072.css index f3fa1960d..9500d7559 100644 --- a/HomeUI/dist/css/3729.css +++ b/HomeUI/dist/css/2072.css @@ -1 +1 @@ -.toastification-close-icon[data-v-22d964ca],.toastification-title[data-v-22d964ca]{line-height:26px}.toastification-title[data-v-22d964ca]{color:inherit}.popover{max-width:400px}.confirm-dialog-250{width:250px}.confirm-dialog-275{width:275px}.confirm-dialog-300{width:300px}.confirm-dialog-350{width:350px}.confirm-dialog-400{width:400px}.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm .xterm-cursor-pointer,.xterm.xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;z-index:10;color:#0000}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:.5}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{-webkit-text-decoration:double underline;text-decoration:double underline}.xterm-underline-3{-webkit-text-decoration:wavy underline;text-decoration:wavy underline}.xterm-underline-4{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}.xterm-underline-5{-webkit-text-decoration:dashed underline;text-decoration:dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-decoration-overview-ruler{z-index:7;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.no-wrap{white-space:nowrap!important}.custom-button{width:15px!important;height:25px!important}.button-cell{display:flex;align-items:center;min-width:150px}[dir] .xterm{padding:10px}[dir=ltr] .spin-icon{animation:spin-ltr 2s linear infinite}[dir=rtl] .spin-icon{animation:spin-rtl 2s linear infinite}@keyframes spin-ltr{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spin-rtl{0%{transform:rotate(0deg)}to{transform:rotate(-1turn)}}[dir=ltr] .app-instances-table td:first-child{padding:0 0 0 5px}[dir=rtl] .app-instances-table td:first-child{padding:0 5px 0 0}[dir=ltr] .app-instances-table th:first-child{padding:0 0 0 5px}[dir=rtl] .app-instances-table th:first-child{padding:0 5px 0 0}.app-instances-table td:nth-child(5),.app-instances-table th:nth-child(5){width:105px}.loginRow{display:flex;flex-direction:row;justify-content:space-around;align-items:center}[dir] .loginRow{margin-bottom:10px}.zelidLogin{height:90px}[dir] .zelidLogin{padding:10px}[dir=ltr] .zelidLogin{margin-left:5px}[dir=rtl] .zelidLogin{margin-right:5px}.zelidLogin img{-webkit-app-region:no-drag;transition:.1s}.walletconnectLogin{height:100px}[dir] .walletconnectLogin{padding:10px}.walletconnectLogin img{-webkit-app-region:no-drag;transition:.1s}.metamaskLogin{height:80px}[dir] .metamaskLogin{padding:10px}.metamaskLogin img{-webkit-app-region:no-drag;transition:.1s}.sspLogin{height:90px}[dir] .sspLogin{padding:10px}[dir=ltr] .sspLogin{margin-left:5px}[dir=rtl] .sspLogin{margin-right:5px}.sspLogin img{-webkit-app-region:no-drag;transition:.1s}a img{transition:all .05s ease-in-out}a:hover img{filter:opacity(70%)}[dir] a:hover img{transform:scale(1.1)}.flex{display:flex}.anchor{display:block;height:100px;visibility:hidden}[dir] .anchor{margin-top:-100px}.v-toast__text{font-family:Roboto,sans-serif!important}.jv-dark{white-space:nowrap;font-size:14px;font-family:Consolas,Menlo,Courier,monospace}[dir] .jv-dark{background:none;margin-bottom:25px}.jv-button{color:#49b3ff!important}.jv-dark .jv-array,.jv-dark .jv-key{color:#999!important}.jv-boolean{color:#fc1e70!important}.jv-function{color:#067bca!important}.jv-number,.jv-number-float,.jv-number-integer{color:#fc1e70!important}.jv-dark .jv-object{color:#999!important}.jv-undefined{color:#e08331!important}.jv-string{color:#42b983!important;word-break:break-word;white-space:normal}[dir=ltr] .apps-available-table td:first-child{padding:0 0 0 5px}[dir=rtl] .apps-available-table td:first-child{padding:0 5px 0 0}[dir=ltr] .apps-available-table th:first-child{padding:0 0 0 5px}[dir=rtl] .apps-available-table th:first-child{padding:0 5px 0 0}.locations-table td:first-child,.locations-table th:first-child{width:105px} \ No newline at end of file +.toastification-close-icon[data-v-22d964ca],.toastification-title[data-v-22d964ca]{line-height:26px}.toastification-title[data-v-22d964ca]{color:inherit}.popover{max-width:400px}.confirm-dialog-250{width:250px}.confirm-dialog-275{width:275px}.confirm-dialog-300{width:300px}.confirm-dialog-350{width:350px}.confirm-dialog-400{width:400px}.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm .xterm-cursor-pointer,.xterm.xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;z-index:10;color:#0000}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:.5}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{-webkit-text-decoration:double underline;text-decoration:double underline}.xterm-underline-3{-webkit-text-decoration:wavy underline;text-decoration:wavy underline}.xterm-underline-4{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}.xterm-underline-5{-webkit-text-decoration:dashed underline;text-decoration:dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-decoration-overview-ruler{z-index:7;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.no-wrap{white-space:nowrap!important}.custom-button{width:15px!important;height:25px!important}.button-cell{display:flex;align-items:center;min-width:150px}[dir] .xterm{padding:10px}[dir=ltr] .spin-icon{animation:spin-ltr 2s linear infinite}[dir=rtl] .spin-icon{animation:spin-rtl 2s linear infinite}@keyframes spin-ltr{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spin-rtl{0%{transform:rotate(0deg)}to{transform:rotate(-1turn)}}[dir=ltr] .app-instances-table td:first-child{padding:0 0 0 5px}[dir=rtl] .app-instances-table td:first-child{padding:0 5px 0 0}[dir=ltr] .app-instances-table th:first-child{padding:0 0 0 5px}[dir=rtl] .app-instances-table th:first-child{padding:0 5px 0 0}.app-instances-table td:nth-child(5),.app-instances-table th:nth-child(5){width:105px}.loginRow{display:flex;flex-direction:row;justify-content:space-around;align-items:center}[dir] .loginRow{margin-bottom:10px}.zelidLogin{height:90px}[dir] .zelidLogin{padding:10px}[dir=ltr] .zelidLogin{margin-left:5px}[dir=rtl] .zelidLogin{margin-right:5px}.zelidLogin img{-webkit-app-region:no-drag;transition:.1s}.walletconnectLogin{height:100px}[dir] .walletconnectLogin{padding:10px}.walletconnectLogin img{-webkit-app-region:no-drag;transition:.1s}.metamaskLogin{height:80px}[dir] .metamaskLogin{padding:10px}.metamaskLogin img{-webkit-app-region:no-drag;transition:.1s}.sspLogin{height:90px}[dir] .sspLogin{padding:10px}[dir=ltr] .sspLogin{margin-left:5px}[dir=rtl] .sspLogin{margin-right:5px}.sspLogin img{-webkit-app-region:no-drag;transition:.1s}a img{transition:all .05s ease-in-out}a:hover img{filter:opacity(70%)}[dir] a:hover img{transform:scale(1.1)}.flex{display:flex}.anchor{display:block;height:100px;visibility:hidden}[dir] .anchor{margin-top:-100px}.v-toast__text{font-family:Roboto,sans-serif!important}.jv-dark{white-space:nowrap;font-size:14px;font-family:Consolas,Menlo,Courier,monospace}[dir] .jv-dark{background:none;margin-bottom:25px}.jv-button{color:#49b3ff!important}.jv-dark .jv-array,.jv-dark .jv-key{color:#999!important}.jv-boolean{color:#fc1e70!important}.jv-function{color:#067bca!important}.jv-number,.jv-number-float,.jv-number-integer{color:#fc1e70!important}.jv-dark .jv-object{color:#999!important}.jv-undefined{color:#e08331!important}.jv-string{color:#42b983!important;word-break:break-word;white-space:normal}[dir] .card-body{padding:1rem}.adjustMaxWidth{width:calc(100vw - 585px)}@media(max-width:1199px){.adjustMaxWidth{width:calc(100vw - 310px)}}@media(max-width:860px){.adjustMaxWidth{width:unset;max-width:unset}}[dir=ltr] .apps-available-table td:first-child{padding:0 0 0 5px}[dir=rtl] .apps-available-table td:first-child{padding:0 5px 0 0}[dir=ltr] .apps-available-table th:first-child{padding:0 0 0 5px}[dir=rtl] .apps-available-table th:first-child{padding:0 5px 0 0}.locations-table td:first-child,.locations-table th:first-child{width:105px} \ No newline at end of file diff --git a/HomeUI/dist/css/6961.css b/HomeUI/dist/css/3515.css similarity index 100% rename from HomeUI/dist/css/6961.css rename to HomeUI/dist/css/3515.css diff --git a/HomeUI/dist/css/6669.css b/HomeUI/dist/css/6345.css similarity index 83% rename from HomeUI/dist/css/6669.css rename to HomeUI/dist/css/6345.css index de0062d0c..21f9325dc 100644 --- a/HomeUI/dist/css/6669.css +++ b/HomeUI/dist/css/6345.css @@ -1 +1 @@ -.toastification-close-icon[data-v-22d964ca],.toastification-title[data-v-22d964ca]{line-height:26px}.toastification-title[data-v-22d964ca]{color:inherit}.popover{max-width:400px}.confirm-dialog-250{width:250px}.confirm-dialog-275{width:275px}.confirm-dialog-300{width:300px}.confirm-dialog-350{width:350px}.confirm-dialog-400{width:400px}.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm .xterm-cursor-pointer,.xterm.xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;z-index:10;color:#0000}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:.5}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{-webkit-text-decoration:double underline;text-decoration:double underline}.xterm-underline-3{-webkit-text-decoration:wavy underline;text-decoration:wavy underline}.xterm-underline-4{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}.xterm-underline-5{-webkit-text-decoration:dashed underline;text-decoration:dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-decoration-overview-ruler{z-index:7;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.no-wrap{white-space:nowrap!important}.custom-button{width:15px!important;height:25px!important}.button-cell{display:flex;align-items:center;min-width:150px}[dir] .xterm{padding:10px}[dir=ltr] .spin-icon{animation:spin-ltr 2s linear infinite}[dir=rtl] .spin-icon{animation:spin-rtl 2s linear infinite}@keyframes spin-ltr{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spin-rtl{0%{transform:rotate(0deg)}to{transform:rotate(-1turn)}}[dir=ltr] .app-instances-table td:first-child{padding:0 0 0 5px}[dir=rtl] .app-instances-table td:first-child{padding:0 5px 0 0}[dir=ltr] .app-instances-table th:first-child{padding:0 0 0 5px}[dir=rtl] .app-instances-table th:first-child{padding:0 5px 0 0}.app-instances-table td:nth-child(5),.app-instances-table th:nth-child(5){width:105px}.loginRow{display:flex;flex-direction:row;justify-content:space-around;align-items:center}[dir] .loginRow{margin-bottom:10px}.zelidLogin{height:90px}[dir] .zelidLogin{padding:10px}[dir=ltr] .zelidLogin{margin-left:5px}[dir=rtl] .zelidLogin{margin-right:5px}.zelidLogin img{-webkit-app-region:no-drag;transition:.1s}.walletconnectLogin{height:100px}[dir] .walletconnectLogin{padding:10px}.walletconnectLogin img{-webkit-app-region:no-drag;transition:.1s}.metamaskLogin{height:80px}[dir] .metamaskLogin{padding:10px}.metamaskLogin img{-webkit-app-region:no-drag;transition:.1s}.sspLogin{height:90px}[dir] .sspLogin{padding:10px}[dir=ltr] .sspLogin{margin-left:5px}[dir=rtl] .sspLogin{margin-right:5px}.sspLogin img{-webkit-app-region:no-drag;transition:.1s}a img{transition:all .05s ease-in-out}a:hover img{filter:opacity(70%)}[dir] a:hover img{transform:scale(1.1)}.flex{display:flex}.anchor{display:block;height:100px;visibility:hidden}[dir] .anchor{margin-top:-100px}.v-toast__text{font-family:Roboto,sans-serif!important}.jv-dark{white-space:nowrap;font-size:14px;font-family:Consolas,Menlo,Courier,monospace}[dir] .jv-dark{background:none;margin-bottom:25px}.jv-button{color:#49b3ff!important}.jv-dark .jv-array,.jv-dark .jv-key{color:#999!important}.jv-boolean{color:#fc1e70!important}.jv-function{color:#067bca!important}.jv-number,.jv-number-float,.jv-number-integer{color:#fc1e70!important}.jv-dark .jv-object{color:#999!important}.jv-undefined{color:#e08331!important}.jv-string{color:#42b983!important;word-break:break-word;white-space:normal}[dir=ltr] .apps-active-table td:first-child{padding:0 0 0 5px}[dir=rtl] .apps-active-table td:first-child{padding:0 5px 0 0}[dir=ltr] .apps-active-table th:first-child{padding:0 0 0 5px}[dir=rtl] .apps-active-table th:first-child{padding:0 5px 0 0}[dir=ltr] .myapps-table td:first-child{padding:0 0 0 5px}[dir=rtl] .myapps-table td:first-child{padding:0 5px 0 0}[dir=ltr] .myapps-table th:first-child{padding:0 0 0 5px}[dir=rtl] .myapps-table th:first-child{padding:0 5px 0 0}.locations-table td:first-child,.locations-table th:first-child,.myapps-table td:nth-child(5),.myapps-table td:nth-child(6),.myapps-table th:nth-child(5),.myapps-table th:nth-child(6){width:105px} \ No newline at end of file +.toastification-close-icon[data-v-22d964ca],.toastification-title[data-v-22d964ca]{line-height:26px}.toastification-title[data-v-22d964ca]{color:inherit}.popover{max-width:400px}.confirm-dialog-250{width:250px}.confirm-dialog-275{width:275px}.confirm-dialog-300{width:300px}.confirm-dialog-350{width:350px}.confirm-dialog-400{width:400px}.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm .xterm-cursor-pointer,.xterm.xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;z-index:10;color:#0000}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:.5}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{-webkit-text-decoration:double underline;text-decoration:double underline}.xterm-underline-3{-webkit-text-decoration:wavy underline;text-decoration:wavy underline}.xterm-underline-4{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}.xterm-underline-5{-webkit-text-decoration:dashed underline;text-decoration:dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-decoration-overview-ruler{z-index:7;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.no-wrap{white-space:nowrap!important}.custom-button{width:15px!important;height:25px!important}.button-cell{display:flex;align-items:center;min-width:150px}[dir] .xterm{padding:10px}[dir=ltr] .spin-icon{animation:spin-ltr 2s linear infinite}[dir=rtl] .spin-icon{animation:spin-rtl 2s linear infinite}@keyframes spin-ltr{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spin-rtl{0%{transform:rotate(0deg)}to{transform:rotate(-1turn)}}[dir=ltr] .app-instances-table td:first-child{padding:0 0 0 5px}[dir=rtl] .app-instances-table td:first-child{padding:0 5px 0 0}[dir=ltr] .app-instances-table th:first-child{padding:0 0 0 5px}[dir=rtl] .app-instances-table th:first-child{padding:0 5px 0 0}.app-instances-table td:nth-child(5),.app-instances-table th:nth-child(5){width:105px}.loginRow{display:flex;flex-direction:row;justify-content:space-around;align-items:center}[dir] .loginRow{margin-bottom:10px}.zelidLogin{height:90px}[dir] .zelidLogin{padding:10px}[dir=ltr] .zelidLogin{margin-left:5px}[dir=rtl] .zelidLogin{margin-right:5px}.zelidLogin img{-webkit-app-region:no-drag;transition:.1s}.walletconnectLogin{height:100px}[dir] .walletconnectLogin{padding:10px}.walletconnectLogin img{-webkit-app-region:no-drag;transition:.1s}.metamaskLogin{height:80px}[dir] .metamaskLogin{padding:10px}.metamaskLogin img{-webkit-app-region:no-drag;transition:.1s}.sspLogin{height:90px}[dir] .sspLogin{padding:10px}[dir=ltr] .sspLogin{margin-left:5px}[dir=rtl] .sspLogin{margin-right:5px}.sspLogin img{-webkit-app-region:no-drag;transition:.1s}a img{transition:all .05s ease-in-out}a:hover img{filter:opacity(70%)}[dir] a:hover img{transform:scale(1.1)}.flex{display:flex}.anchor{display:block;height:100px;visibility:hidden}[dir] .anchor{margin-top:-100px}.v-toast__text{font-family:Roboto,sans-serif!important}.jv-dark{white-space:nowrap;font-size:14px;font-family:Consolas,Menlo,Courier,monospace}[dir] .jv-dark{background:none;margin-bottom:25px}.jv-button{color:#49b3ff!important}.jv-dark .jv-array,.jv-dark .jv-key{color:#999!important}.jv-boolean{color:#fc1e70!important}.jv-function{color:#067bca!important}.jv-number,.jv-number-float,.jv-number-integer{color:#fc1e70!important}.jv-dark .jv-object{color:#999!important}.jv-undefined{color:#e08331!important}.jv-string{color:#42b983!important;word-break:break-word;white-space:normal}[dir] .card-body{padding:1rem}.adjustMaxWidth{width:calc(100vw - 585px)}@media(max-width:1199px){.adjustMaxWidth{width:calc(100vw - 310px)}}@media(max-width:860px){.adjustMaxWidth{width:unset;max-width:unset}}[dir=ltr] .apps-active-table td:first-child{padding:0 0 0 5px}[dir=rtl] .apps-active-table td:first-child{padding:0 5px 0 0}[dir=ltr] .apps-active-table th:first-child{padding:0 0 0 5px}[dir=rtl] .apps-active-table th:first-child{padding:0 5px 0 0}[dir=ltr] .myapps-table td:first-child{padding:0 0 0 5px}[dir=rtl] .myapps-table td:first-child{padding:0 5px 0 0}[dir=ltr] .myapps-table th:first-child{padding:0 0 0 5px}[dir=rtl] .myapps-table th:first-child{padding:0 5px 0 0}.locations-table td:first-child,.locations-table th:first-child,.myapps-table td:nth-child(5),.myapps-table td:nth-child(6),.myapps-table th:nth-child(5),.myapps-table th:nth-child(6){width:105px} \ No newline at end of file diff --git a/HomeUI/dist/css/9957.css b/HomeUI/dist/css/9957.css new file mode 100644 index 000000000..21f9325dc --- /dev/null +++ b/HomeUI/dist/css/9957.css @@ -0,0 +1 @@ +.toastification-close-icon[data-v-22d964ca],.toastification-title[data-v-22d964ca]{line-height:26px}.toastification-title[data-v-22d964ca]{color:inherit}.popover{max-width:400px}.confirm-dialog-250{width:250px}.confirm-dialog-275{width:275px}.confirm-dialog-300{width:300px}.confirm-dialog-350{width:350px}.confirm-dialog-400{width:400px}.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm .xterm-cursor-pointer,.xterm.xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;z-index:10;color:#0000}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:.5}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{-webkit-text-decoration:double underline;text-decoration:double underline}.xterm-underline-3{-webkit-text-decoration:wavy underline;text-decoration:wavy underline}.xterm-underline-4{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}.xterm-underline-5{-webkit-text-decoration:dashed underline;text-decoration:dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-decoration-overview-ruler{z-index:7;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.no-wrap{white-space:nowrap!important}.custom-button{width:15px!important;height:25px!important}.button-cell{display:flex;align-items:center;min-width:150px}[dir] .xterm{padding:10px}[dir=ltr] .spin-icon{animation:spin-ltr 2s linear infinite}[dir=rtl] .spin-icon{animation:spin-rtl 2s linear infinite}@keyframes spin-ltr{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spin-rtl{0%{transform:rotate(0deg)}to{transform:rotate(-1turn)}}[dir=ltr] .app-instances-table td:first-child{padding:0 0 0 5px}[dir=rtl] .app-instances-table td:first-child{padding:0 5px 0 0}[dir=ltr] .app-instances-table th:first-child{padding:0 0 0 5px}[dir=rtl] .app-instances-table th:first-child{padding:0 5px 0 0}.app-instances-table td:nth-child(5),.app-instances-table th:nth-child(5){width:105px}.loginRow{display:flex;flex-direction:row;justify-content:space-around;align-items:center}[dir] .loginRow{margin-bottom:10px}.zelidLogin{height:90px}[dir] .zelidLogin{padding:10px}[dir=ltr] .zelidLogin{margin-left:5px}[dir=rtl] .zelidLogin{margin-right:5px}.zelidLogin img{-webkit-app-region:no-drag;transition:.1s}.walletconnectLogin{height:100px}[dir] .walletconnectLogin{padding:10px}.walletconnectLogin img{-webkit-app-region:no-drag;transition:.1s}.metamaskLogin{height:80px}[dir] .metamaskLogin{padding:10px}.metamaskLogin img{-webkit-app-region:no-drag;transition:.1s}.sspLogin{height:90px}[dir] .sspLogin{padding:10px}[dir=ltr] .sspLogin{margin-left:5px}[dir=rtl] .sspLogin{margin-right:5px}.sspLogin img{-webkit-app-region:no-drag;transition:.1s}a img{transition:all .05s ease-in-out}a:hover img{filter:opacity(70%)}[dir] a:hover img{transform:scale(1.1)}.flex{display:flex}.anchor{display:block;height:100px;visibility:hidden}[dir] .anchor{margin-top:-100px}.v-toast__text{font-family:Roboto,sans-serif!important}.jv-dark{white-space:nowrap;font-size:14px;font-family:Consolas,Menlo,Courier,monospace}[dir] .jv-dark{background:none;margin-bottom:25px}.jv-button{color:#49b3ff!important}.jv-dark .jv-array,.jv-dark .jv-key{color:#999!important}.jv-boolean{color:#fc1e70!important}.jv-function{color:#067bca!important}.jv-number,.jv-number-float,.jv-number-integer{color:#fc1e70!important}.jv-dark .jv-object{color:#999!important}.jv-undefined{color:#e08331!important}.jv-string{color:#42b983!important;word-break:break-word;white-space:normal}[dir] .card-body{padding:1rem}.adjustMaxWidth{width:calc(100vw - 585px)}@media(max-width:1199px){.adjustMaxWidth{width:calc(100vw - 310px)}}@media(max-width:860px){.adjustMaxWidth{width:unset;max-width:unset}}[dir=ltr] .apps-active-table td:first-child{padding:0 0 0 5px}[dir=rtl] .apps-active-table td:first-child{padding:0 5px 0 0}[dir=ltr] .apps-active-table th:first-child{padding:0 0 0 5px}[dir=rtl] .apps-active-table th:first-child{padding:0 5px 0 0}[dir=ltr] .myapps-table td:first-child{padding:0 0 0 5px}[dir=rtl] .myapps-table td:first-child{padding:0 5px 0 0}[dir=ltr] .myapps-table th:first-child{padding:0 0 0 5px}[dir=rtl] .myapps-table th:first-child{padding:0 5px 0 0}.locations-table td:first-child,.locations-table th:first-child,.myapps-table td:nth-child(5),.myapps-table td:nth-child(6),.myapps-table th:nth-child(5),.myapps-table th:nth-child(6){width:105px} \ No newline at end of file diff --git a/HomeUI/dist/js/1012.js b/HomeUI/dist/js/1012.js new file mode 100644 index 000000000..a0823d356 --- /dev/null +++ b/HomeUI/dist/js/1012.js @@ -0,0 +1 @@ +"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[1012],{34547:(e,t,a)=>{a.d(t,{Z:()=>u});var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"toastification"},[t("div",{staticClass:"d-flex align-items-start"},[t("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:e.variant,size:"1.8rem"}},[t("feather-icon",{attrs:{icon:e.icon,size:"15"}})],1),t("div",{staticClass:"d-flex flex-grow-1"},[t("div",[e.title?t("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${e.variant}`,domProps:{textContent:e._s(e.title)}}):e._e(),e.text?t("small",{staticClass:"d-inline-block text-body",domProps:{textContent:e._s(e.text)}}):e._e()]),t("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(t){return e.$emit("close-toast")}}},[e.hideClose?e._e():t("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],o=a(47389);const i={components:{BAvatar:o.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},s=i;var l=a(1001),c=(0,l.Z)(s,n,r,!1,null,"22d964ca",null);const u=c.exports},71012:(e,t,a)=>{a.r(t),a.d(t,{default:()=>ua});var n={};a.r(n),a.d(n,{_:()=>Ue,t:()=>Ee});var r=function(){var e=this,t=e._self._c;return t("layout-vertical",{scopedSlots:e._u([{key:"navbar",fn:function({toggleVerticalMenuActive:e}){return[t("navbar",{attrs:{"toggle-vertical-menu-active":e}})]}}])},[t("router-view")],1)},o=[],i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"vertical-layout h-100",class:[e.layoutClasses],attrs:{"data-col":e.isNavMenuHidden?"1-column":null}},[t("b-navbar",{staticClass:"header-navbar navbar navbar-shadow align-items-center",class:[e.navbarTypeClass],attrs:{toggleable:!1,variant:e.navbarBackgroundColor}},[e._t("navbar",(function(){return[t("app-navbar-vertical-layout",{attrs:{"toggle-vertical-menu-active":e.toggleVerticalMenuActive}})]}),{toggleVerticalMenuActive:e.toggleVerticalMenuActive,navbarBackgroundColor:e.navbarBackgroundColor,navbarTypeClass:[...e.navbarTypeClass,"header-navbar navbar navbar-shadow align-items-center"]})],2),e.isNavMenuHidden?e._e():t("vertical-nav-menu",{attrs:{"is-vertical-menu-active":e.isVerticalMenuActive,"toggle-vertical-menu-active":e.toggleVerticalMenuActive},scopedSlots:e._u([{key:"header",fn:function(t){return[e._t("vertical-menu-header",null,null,t)]}}],null,!0)}),t("div",{staticClass:"sidenav-overlay",class:e.overlayClasses,on:{click:function(t){e.isVerticalMenuActive=!1}}}),t("transition",{attrs:{name:e.routerTransition,mode:"out-in"}},[t(e.layoutContentRenderer,{key:"layout-content-renderer-left"===e.layoutContentRenderer?e.$route.meta.navActiveLink||e.$route.name:null,tag:"component",scopedSlots:e._u([e._l(e.$scopedSlots,(function(t,a){return{key:a,fn:function(t){return[e._t(a,null,null,t)]}}}))],null,!0)})],1),t("footer",{staticClass:"footer footer-light",class:[e.footerTypeClass]},[e._t("footer",(function(){return[t("app-footer")]}))],2),e._t("customizer")],2)},s=[],l=a(20144),c=function(){var e=this,t=e._self._c;return t("p",{staticClass:"clearfix mb-0"},[t("span",{staticClass:"float-md-left d-block d-md-inline-block mt-25"},[t("b-link",{staticClass:"ml-25",attrs:{href:"https://github.com/runonflux/flux",target:"_blank",rel:"noopener noreferrer"}},[e._v("Flux, Your Gateway to a Decentralized World")])],1),t("span",{staticClass:"float-md-right d-none d-md-block"},[e._v("FluxOS "+e._s(`v${e.fluxVersion}`)+" ")])])},u=[],d=a(20629),p=a(67347),m=a(9669),v=a.n(m),g=a(34547),h=a(39055);const f={components:{BLink:p.we,ToastificationContent:g.Z},computed:{...(0,d.rn)("flux",["fluxVersion"])},mounted(){const e=this;h.Z.getFluxVersion().then((t=>{const a=t.data.data;this.$store.commit("flux/setFluxVersion",a),e.getLatestFluxVersion()})).catch((e=>{console.log(e),console.log(e.code),this.showToast("danger",e.toString())}))},methods:{getLatestFluxVersion(){const e=this;v().get("https://raw.githubusercontent.com/runonflux/flux/master/package.json").then((t=>{t.data.version!==e.fluxVersion?this.showToast("danger","Flux needs to be updated!"):this.showToast("success","Flux is up to date")})).catch((e=>{console.log(e),this.showToast("danger","Error verifying recent version")}))},showToast(e,t){this.$toast({component:g.Z,props:{title:t,icon:"BellIcon",variant:e}})}}},b=f;var x=a(1001),k=(0,x.Z)(b,c,u,!1,null,null,null);const C=k.exports;var w=a(37307),y=a(71603),M=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-content content",class:[{"show-overlay":e.$store.state.app.shallShowOverlay},e.$route.meta.contentClass]},[t("div",{staticClass:"content-overlay"}),t("div",{staticClass:"header-navbar-shadow"}),t("div",{staticClass:"content-wrapper",class:"boxed"===e.contentWidth?"container p-0":null},[e._t("breadcrumb",(function(){return[t("app-breadcrumb")]})),t("div",{staticClass:"content-body"},[t("transition",{attrs:{name:e.routerTransition,mode:"out-in"}},[e._t("default")],2)],1)],2)])},_=[],I=function(){var e=this,t=e._self._c;return e.$route.meta.breadcrumb||e.$route.meta.pageTitle?t("b-row",{staticClass:"content-header"},[t("b-col",{staticClass:"content-header-left mb-2",attrs:{cols:"12",md:"9"}},[t("b-row",{staticClass:"breadcrumbs-top"},[t("b-col",{attrs:{cols:"12"}},[t("h2",{staticClass:"content-header-title float-left pr-1 mb-0"},[e._v(" "+e._s(e.$route.meta.pageTitle)+" ")]),t("div",{staticClass:"breadcrumb-wrapper"},[t("b-breadcrumb",[t("b-breadcrumb-item",{attrs:{to:"/"}},[t("feather-icon",{staticClass:"align-text-top",attrs:{icon:"HomeIcon",size:"16"}})],1),e._l(e.$route.meta.breadcrumb,(function(a){return t("b-breadcrumb-item",{key:a.text,attrs:{active:a.active,to:a.to}},[e._v(" "+e._s(a.text)+" ")])}))],2)],1)])],1)],1)],1):e._e()},Z=[],B=a(74825),A=a(90854),T=a(26253),L=a(50725),S=a(20266);const V={directives:{Ripple:S.Z},components:{BBreadcrumb:B.P,BBreadcrumbItem:A.g,BRow:T.T,BCol:L.l}},N=V;var O=(0,x.Z)(N,I,Z,!1,null,null,null);const P=O.exports,$={components:{AppBreadcrumb:P},setup(){const{routerTransition:e,contentWidth:t}=(0,w.Z)();return{routerTransition:e,contentWidth:t}}},z=$;var D=(0,x.Z)(z,M,_,!1,null,null,null);const R=D.exports;var F=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-content content",class:[{"show-overlay":e.$store.state.app.shallShowOverlay},e.$route.meta.contentClass]},[t("div",{staticClass:"content-overlay"}),t("div",{staticClass:"header-navbar-shadow"}),t("transition",{attrs:{name:e.routerTransition,mode:"out-in"}},[t("div",{staticClass:"content-area-wrapper",class:"boxed"===e.contentWidth?"container p-0":null},[e._t("breadcrumb",(function(){return[t("app-breadcrumb")]})),t("portal-target",{attrs:{name:"content-renderer-sidebar-left",slim:""}}),t("div",{staticClass:"content-right"},[t("div",{staticClass:"content-wrapper"},[t("div",{staticClass:"content-body"},[e._t("default")],2)])])],2)])],1)},H=[];const j={components:{AppBreadcrumb:P},setup(){const{routerTransition:e,contentWidth:t}=(0,w.Z)();return{routerTransition:e,contentWidth:t}}},G=j;var E=(0,x.Z)(G,F,H,!1,null,null,null);const U=E.exports;var W=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-content content",class:[{"show-overlay":e.$store.state.app.shallShowOverlay},e.$route.meta.contentClass]},[t("div",{staticClass:"content-overlay"}),t("div",{staticClass:"header-navbar-shadow"}),t("transition",{attrs:{name:e.routerTransition,mode:"out-in"}},[t("div",{staticClass:"content-wrapper clearfix",class:"boxed"===e.contentWidth?"container p-0":null},[e._t("breadcrumb",(function(){return[t("app-breadcrumb")]})),t("div",{staticClass:"content-detached content-right"},[t("div",{staticClass:"content-wrapper"},[t("div",{staticClass:"content-body"},[e._t("default")],2)])]),t("portal-target",{attrs:{name:"content-renderer-sidebar-detached-left",slim:""}})],2)])],1)},q=[];const X={components:{AppBreadcrumb:P},setup(){const{routerTransition:e,contentWidth:t}=(0,w.Z)();return{routerTransition:e,contentWidth:t}}},K=X;var J=(0,x.Z)(K,W,q,!1,null,null,null);const Y=J.exports;var Q=function(){var e=this,t=e._self._c;return t("div",{staticClass:"main-menu menu-fixed menu-accordion menu-shadow",class:[{expanded:!e.isVerticalMenuCollapsed||e.isVerticalMenuCollapsed&&e.isMouseHovered},"semi-dark"===e.skin?"menu-dark":"menu-light"],on:{mouseenter:function(t){return e.updateMouseHovered(!0)},mouseleave:function(t){return e.updateMouseHovered(!1)},focus:function(t){return e.updateMouseHovered(!0)},blur:function(t){return e.updateMouseHovered(!1)}}},[t("div",{staticClass:"navbar-header expanded"},[e._t("header",(function(){return[t("ul",{staticClass:"nav navbar-nav flex-row"},[t("li",{staticClass:"nav-item mr-auto"},[t("b-link",{staticClass:"navbar-brand",attrs:{to:"/"}},[t("span",{staticClass:"brand-logo"},[t("b-img",{class:e.isVerticalMenuCollapsed?"collapsed-logo":"",attrs:{src:"dark"===e.skin?e.appLogoImageDark:e.appLogoImage,alt:"logo"}})],1)])],1),t("li",{staticClass:"nav-item nav-toggle"},[t("b-link",{staticClass:"nav-link modern-nav-toggle"},[t("feather-icon",{staticClass:"d-block d-xl-none",attrs:{icon:"XIcon",size:"20"},on:{click:e.toggleVerticalMenuActive}}),t("feather-icon",{staticClass:"d-none d-xl-block collapse-toggle-icon",attrs:{icon:e.collapseTogglerIconFeather,size:"20"},on:{click:e.toggleCollapsed}})],1)],1)])]}),{toggleVerticalMenuActive:e.toggleVerticalMenuActive,toggleCollapsed:e.toggleCollapsed,collapseTogglerIcon:e.collapseTogglerIcon})],2),t("div",{staticClass:"shadow-bottom",class:{"d-block":e.shallShadowBottom}}),t("vue-perfect-scrollbar",{staticClass:"main-menu-content scroll-area",attrs:{settings:e.perfectScrollbarSettings,tagname:"ul"},on:{"ps-scroll-y":t=>{e.shallShadowBottom=t.srcElement.scrollTop>0}}},[t("vertical-nav-menu-items",{key:e.isNavMenuCollapsed,staticClass:"navigation navigation-main",attrs:{items:e.isNavMenuCollapsed?e.navMenuItemsCollapsed:e.navMenuItems}})],1)],1)},ee=[],te=a(91040),ae=a.n(te),ne=a(98156),re=a(68934);const oe=[{header:"Dashboard"},{title:"Overview",icon:"chart-pie",route:"dashboard-overview"},{title:"Resources",icon:"server",route:"dashboard-resources"},{title:"Map",icon:"map-marker-alt",route:"dashboard-map"},{title:"Rewards",icon:"coins",route:"dashboard-rewards"},{title:"List",icon:"list-ul",route:"dashboard-list"}],ie=[{header:"Applications"},{title:"Management",icon:"cogs",route:"apps-myapps"},{title:"Global Apps",icon:"globe",route:"apps-globalapps"},{title:"Register New App",icon:"regular/plus-square",route:"apps-registerapp"},{title:"Marketplace",icon:"shopping-basket",route:"apps-marketplace"}],se=[{title:"Control",icon:"tools",id:"benchmark-control",children:[{title:"Help",icon:"question",route:"benchmark-control-help"},{title:"Start",icon:"play",route:"benchmark-control-start",privilege:["admin","fluxteam"]},{title:"Stop",icon:"power-off",route:"benchmark-control-stop",privilege:["admin"]},{title:"Restart",icon:"redo",route:"benchmark-control-restart",privilege:["admin","fluxteam"]}]}],le=[{title:"FluxNode",icon:"dice-d20",id:"benchmark-fluxnode",children:[{title:"Get Benchmarks",icon:"calculator",route:"benchmark-fluxnode-getbenchmarks"},{title:"Get Info",icon:"info",route:"benchmark-fluxnode-getinfo"}]}],ce=[{title:"Benchmarks",icon:"microchip",children:[{title:"Get Status",icon:"tachometer-alt",route:"benchmark-benchmarks-getstatus"},{title:"Restart Benchmarks",icon:"redo",route:"benchmark-benchmarks-restartbenchmarks",privilege:["admin","fluxteam"]},{title:"Sign Transaction",icon:"bolt",route:"benchmark-benchmarks-signtransaction",privilege:["admin"]}]}],ue=[{header:"Benchmark"},...se,...le,...ce,{title:"Debug",icon:"bug",route:"benchmark-debug",id:"benchmark-debug",privilege:["admin","fluxteam"]}],de=[{title:"Control",icon:"tools",children:[{title:"Get Info",icon:"info",route:"daemon-control-getinfo"},{title:"Help",icon:"question",route:"daemon-control-help"},{title:"Rescan Blockchain",icon:"search-plus",route:"daemon-control-rescanblockchain",privilege:["admin"]},{title:"Reindex Blockchain",icon:"address-book",route:"daemon-control-reindexblockchain",privilege:["admin"]},{title:"Start",icon:"play",route:"daemon-control-start",privilege:["admin","fluxteam"]},{title:"Stop",icon:"power-off",route:"daemon-control-stop",privilege:["admin"]},{title:"Restart",icon:"redo",route:"daemon-control-restart",privilege:["admin","fluxteam"]}]}],pe=[{title:"FluxNode",icon:"dice-d20",children:[{title:"Get FluxNode Status",icon:"info",route:"daemon-fluxnode-getstatus"},{title:"List FluxNodes",icon:"list-ul",route:"daemon-fluxnode-listfluxnodes"},{title:"View FluxNode List",icon:"regular/list-alt",route:"daemon-fluxnode-viewfluxnodelist"},{title:"Get FluxNode Count",icon:"layer-group",route:"daemon-fluxnode-getfluxnodecount"},{title:"Get Start List",icon:"play",route:"daemon-fluxnode-getstartlist"},{title:"Get DOS List",icon:"hammer",route:"daemon-fluxnode-getdoslist"},{title:"Current Winner",icon:"trophy",route:"daemon-fluxnode-currentwinner"}]}],me=[{title:"Benchmarks",icon:"microchip",id:"daemon-benchmarks",children:[{title:"Get Benchmarks",icon:"calculator",route:"daemon-benchmarks-getbenchmarks"},{title:"Get Bench Status",icon:"tachometer-alt",route:"daemon-benchmarks-getstatus"},{title:"Start Benchmark",icon:"play",route:"daemon-benchmarks-start",privilege:["admin","fluxteam"]},{title:"Stop Benchmark",icon:"power-off",route:"daemon-benchmarks-stop",privilege:["admin","fluxteam"]}]}],ve=[{title:"Get Blockchain Info",icon:"link",route:"daemon-blockchain-getchaininfo"}],ge=[{title:"Get Mining Info",icon:"gem",route:"daemon-mining-getmininginfo"}],he=[{title:"Get Network Info",icon:"network-wired",route:"daemon-network-getnetworkinfo"}],fe=[{title:"Get Raw Transaction",icon:"code",route:"daemon-transaction-getrawtransaction"}],be=[{title:"Validate Address",icon:"check-double",route:"daemon-util-validateaddress"}],xe=[{title:"Get Wallet Info",icon:"wallet",route:"daemon-wallet-getwalletinfo",privilege:["user","admin","fluxteam"]}],ke=[{header:"Daemon"},...de,...pe,...me,...ve,...ge,...he,...fe,...be,...xe,{title:"Debug",icon:"bug",route:"daemon-debug",id:"daemon-debug",privilege:["admin","fluxteam"]}],Ce=[{header:"Flux"},{title:"Node Status",icon:"heartbeat",route:"flux-nodestatus"},{title:"Flux Network",icon:"network-wired",route:"flux-fluxnetwork"},{title:"Debug",icon:"bug",route:"flux-debug",privilege:["admin","fluxteam"]}],we=[{header:"Administration"},{title:"Explorer",route:"explorer",icon:"search"},...ke,...ue,...Ce,{title:"Local Apps",icon:"upload",route:"apps-localapps"},{title:"Logged Sessions",icon:"regular/id-badge",route:"fluxadmin-loggedsessions",privilege:["admin","fluxteam"]},{title:"Manage Flux",icon:"dice-d20",route:"fluxadmin-manageflux",privilege:["admin","fluxteam"]},{title:"Manage Daemon",icon:"cog",route:"fluxadmin-managedaemon",privilege:["admin","fluxteam"]},{title:"Manage Benchmark",icon:"microchip",route:"fluxadmin-managebenchmark",privilege:["admin","fluxteam"]},{title:"Manage Users",icon:"fingerprint",route:"fluxadmin-manageusers",privilege:["admin","fluxteam"]},{title:"My FluxShare",icon:"regular/hdd",route:"apps-fluxsharestorage",privilege:["admin"]}],{xdaoOpenProposals:ye}=(0,w.Z)(),Me=[{header:"XDAO"},{title:"XDAO ",icon:"clipboard-list",tag:ye,route:"xdao-app"}],_e=[{title:"Home",route:"home",icon:"home"},...oe,...ie,...Me,...we],Ie=[{title:"Dashboard",icon:"desktop",spacing:!0,children:[{title:"Overview",icon:"chart-pie",route:"dashboard-overview"},{title:"Resources",icon:"server",route:"dashboard-resources"},{title:"Map",icon:"map-marker-alt",route:"dashboard-map"},{title:"Rewards",icon:"coins",route:"dashboard-rewards"},{title:"List",icon:"list-ul",route:"dashboard-list"}]}],Ze=[{title:"Applications",icon:"laptop-code",spacing:!0,children:[{title:"Management",icon:"cogs",route:"apps-myapps"},{title:"Global Apps",icon:"globe",route:"apps-globalapps"},{title:"Register New App",icon:"regular/plus-square",route:"apps-registerapp"},{title:"Marketplace",icon:"shopping-basket",route:"apps-marketplace"}]}],Be=[{title:"Benchmark",icon:"wrench",spacing:!0,children:[...se,...le,...ce,{title:"Debug",icon:"bug",route:"benchmark-debug",id:"benchmark-debug",privilege:["admin","fluxteam"]}]}],Ae=[{title:"Daemon",icon:"bolt",spacing:!0,children:[...de,...pe,...me,...ve,...ge,...he,...fe,...be,...xe,{title:"Debug",icon:"bug",route:"daemon-debug",id:"daemon-debug",privilege:["admin","fluxteam"]}]}],Te=a(25448),Le=[{title:"Flux",image:Te,spacing:!0,children:[{title:"Node Status",icon:"heartbeat",route:"flux-nodestatus"},{title:"Flux Network",icon:"network-wired",route:"flux-fluxnetwork"},{title:"Debug",icon:"bug",route:"flux-debug",privilege:["admin","fluxteam"]}]}],Se=[{title:"Administration",icon:"clipboard-list",spacing:!0,children:[{title:"Explorer",route:"explorer",icon:"search"},...Ae,...Be,...Le,{title:"Local Apps",icon:"upload",route:"apps-localapps"},{title:"Logged Sessions",icon:"regular/id-badge",route:"fluxadmin-loggedsessions",privilege:["admin","fluxteam"]},{title:"Manage Flux",icon:"dice-d20",route:"fluxadmin-manageflux",privilege:["admin","fluxteam"]},{title:"Manage Daemon",icon:"cog",route:"fluxadmin-managedaemon",privilege:["admin","fluxteam"]},{title:"Manage Benchmark",icon:"microchip",route:"fluxadmin-managebenchmark",privilege:["admin","fluxteam"]},{title:"Manage Users",icon:"fingerprint",route:"fluxadmin-manageusers",privilege:["admin","fluxteam"]},{title:"My FluxShare",icon:"regular/hdd",route:"apps-fluxsharestorage",privilege:["admin"]}]}],{xdaoOpenProposals:Ve}=(0,w.Z)(),Ne=[{title:"XDAO",icon:"id-card",tag:Ve,spacing:!0,children:[{title:"XDAO ",icon:"clipboard-list",route:"xdao-app"}]}],Oe=[{title:"Home",route:"home",icon:"home"},...Ie,...Ze,...Ne,...Se];var Pe=function(){var e=this,t=e._self._c;return t("ul",e._l(e.items,(function(a){return t(e.resolveNavItemComponent(a),{key:a.id||a.header||a.title,tag:"component",attrs:{item:a}})})),1)},$e=[],ze=a(23646),De=a(24019);const Re=e=>e.header?"vertical-nav-menu-header":e.children?"vertical-nav-menu-group":"vertical-nav-menu-link",Fe=e=>{if((0,ze.Kn)(e.route)){const{route:t}=De.Z.resolve(e.route);return t.name}return e.route},He=e=>{const t=De.Z.currentRoute.matched,a=Fe(e);return!!a&&t.some((e=>e.name===a||e.meta.navActiveLink===a))},je=e=>{const t=De.Z.currentRoute.matched;return e.some((e=>e.children?je(e.children):He(e,t)))},Ge=e=>(0,l.computed)((()=>{const t={};return e.route?t.to="string"===typeof e.route?{name:e.route}:e.route:(t.href=e.href,t.target="_blank",t.rel="nofollow"),t.target||(t.target=e.target||null),t})),Ee=e=>{const t=(0,l.getCurrentInstance)().proxy;return t.$t?t.$t(e):e},Ue=null,We=()=>({...n}),{t:qe}=We(),Xe={props:{item:{type:Object,required:!0}},computed:{...(0,d.rn)("flux",["privilege"])},methods:{hasPrivilegeLevel(e){return!e.privilege||e.privilege.some((e=>e===this.privilege))}},render(e){if(this.hasPrivilegeLevel(this.item)){const t=e("span",{},qe(this.item.header));return e("li",{class:"navigation-header text-truncate"},[t])}return e()}};var Ke=function(){var e=this,t=e._self._c;return e.hasPrivilegeLevel(e.item)?t("li",{staticClass:"nav-item",class:{active:e.isActive,disabled:e.item.disabled}},[t("b-link",e._b({staticClass:"d-flex align-items-center"},"b-link",e.linkProps,!1),[t("v-icon",{attrs:{name:e.item.icon||"regular/circle"}}),t("span",{staticClass:"menu-title text-truncate"},[e._v(e._s(e.t(e.item.title)))]),e.item.tag&&e.item.tag.value>0?t("b-badge",{staticClass:"mr-1 ml-auto",attrs:{pill:"",variant:e.item.tagVariant||"primary"}},[e._v(" "+e._s(e.item.tag.value)+" ")]):e._e()],1)],1):e._e()},Je=[],Ye=a(26034);function Qe(e){const t=(0,l.ref)(!1),a=Ge(e),n=()=>{t.value=He(e)};return{isActive:t,linkProps:a,updateIsActive:n}}const et={watch:{$route:{immediate:!0,handler(){this.updateIsActive()}}}},tt={components:{BLink:p.we,BBadge:Ye.k},mixins:[et],props:{item:{type:Object,required:!0}},setup(e){const{isActive:t,linkProps:a,updateIsActive:n}=Qe(e.item),{t:r}=We();return{isActive:t,linkProps:a,updateIsActive:n,t:r}},computed:{...(0,d.rn)("flux",["privilege"])},methods:{hasPrivilegeLevel(e){return!e.privilege||e.privilege.some((e=>e===this.privilege))}}},at=tt;var nt=(0,x.Z)(at,Ke,Je,!1,null,null,null);const rt=nt.exports;var ot=function(){var e=this,t=e._self._c;return e.hasPrivilegeLevel(e.item)?t("li",{staticClass:"nav-item has-sub",class:{open:e.isOpen,disabled:e.item.disabled,"sidebar-group-active":e.isActive,"sidebar-group-spacing":e.item.spacing}},[t("b-link",{staticClass:"d-flex align-items-center",on:{click:()=>e.updateGroupOpen(!e.isOpen)}},[e.item.icon?t("v-icon",{attrs:{name:e.item.icon||"regular/circle"}}):e._e(),e.item.image?t("b-img",{staticClass:"sidebar-menu-image",attrs:{src:e.item.image}}):e._e(),t("span",{staticClass:"menu-title text-truncate"},[e._v(e._s(e.t(e.item.title)))]),e.item.tag&&e.item.tag.value>0?t("b-badge",{staticClass:"mr-1 ml-auto",attrs:{pill:"",variant:e.item.tagVariant||"primary"}},[e._v(" "+e._s(e.item.tag.value)+" ")]):e._e()],1),t("b-collapse",{staticClass:"menu-content",attrs:{tag:"ul"},model:{value:e.isOpen,callback:function(t){e.isOpen=t},expression:"isOpen"}},e._l(e.item.children,(function(a){return t(e.resolveNavItemComponent(a),{key:a.header||a.title,ref:"groupChild",refInFor:!0,tag:"component",attrs:{item:a}})})),1)],1):e._e()},it=[],st=a(11688),lt=(a(70560),a(73507));function ct(e){const t=(0,l.computed)((()=>lt.Z.state.verticalMenu.isVerticalMenuCollapsed));(0,l.watch)(t,(e=>{a.value||(e?r.value=!1:!e&&i.value&&(r.value=!0))}));const a=(0,l.inject)("isMouseHovered");(0,l.watch)(a,(e=>{t.value&&(r.value=e&&i.value)}));const n=(0,l.inject)("openGroups");(0,l.watch)(n,(t=>{const a=t[t.length-1];a===e.title||i.value||c(a)||(r.value=!1)}));const r=(0,l.ref)(!1);(0,l.watch)(r,(t=>{t&&n.value.push(e.title)}));const o=e=>{r.value=e},i=(0,l.ref)(!1);(0,l.watch)(i,(e=>{e&&t.value||(r.value=e)}));const s=()=>{i.value=je(e.children)},c=t=>e.children.some((e=>e.title===t));return{isOpen:r,isActive:i,updateGroupOpen:o,openGroups:n,isMouseHovered:a,updateIsActive:s}}const ut={watch:{$route:{immediate:!0,handler(){this.updateIsActive()}}}},dt={name:"VerticalNavMenuGroup",components:{VerticalNavMenuHeader:Xe,VerticalNavMenuLink:rt,BLink:p.we,BBadge:Ye.k,BCollapse:st.k,BImg:ne.s},mixins:[ut],props:{item:{type:Object,required:!0}},setup(e){const{isOpen:t,isActive:a,updateGroupOpen:n,updateIsActive:r}=ct(e.item),{t:o}=We();return{resolveNavItemComponent:Re,isOpen:t,isActive:a,updateGroupOpen:n,updateIsActive:r,t:o}},computed:{...(0,d.rn)("flux",["privilege"])},methods:{hasPrivilegeLevel(e){return!e.privilege||e.privilege.some((e=>e===this.privilege))}}},pt=dt;var mt=(0,x.Z)(pt,ot,it,!1,null,null,null);const vt=mt.exports,gt={components:{VerticalNavMenuHeader:Xe,VerticalNavMenuLink:rt,VerticalNavMenuGroup:vt},props:{items:{type:Array,required:!0}},setup(){return(0,l.provide)("openGroups",(0,l.ref)([])),{resolveNavItemComponent:Re}}},ht=gt;var ft=(0,x.Z)(ht,Pe,$e,!1,null,null,null);const bt=ft.exports;function xt(e){const t=(0,l.computed)({get:()=>lt.Z.state.verticalMenu.isVerticalMenuCollapsed,set:e=>{lt.Z.commit("verticalMenu/UPDATE_VERTICAL_MENU_COLLAPSED",e)}}),a=(0,l.computed)((()=>e.isVerticalMenuActive?t.value?"unpinned":"pinned":"close")),n=(0,l.ref)(!1),r=e=>{n.value=e},o=()=>{t.value=!t.value};return{isMouseHovered:n,isVerticalMenuCollapsed:t,collapseTogglerIcon:a,toggleCollapsed:o,updateMouseHovered:r}}const kt=a(80129),Ct=a(9669),wt={components:{VuePerfectScrollbar:ae(),VerticalNavMenuItems:bt,BLink:p.we,BImg:ne.s},props:{isVerticalMenuActive:{type:Boolean,required:!0},toggleVerticalMenuActive:{type:Function,required:!0}},setup(e){const{isMouseHovered:t,isVerticalMenuCollapsed:a,collapseTogglerIcon:n,toggleCollapsed:r,updateMouseHovered:o}=xt(e),i=(0,l.ref)(null);(0,l.onBeforeMount)((()=>{const e=localStorage.getItem("zelidauth"),t=kt.parse(e);i.value=t.zelid}));const{isNavMenuCollapsed:s,xdaoOpenProposals:c,skin:u}=(0,w.Z)(),d=async e=>{const t=await Ct.get(`https://stats.runonflux.io/proposals/voteInformation?hash=${e.hash}&zelid=${i.value}`);return t.data},p=async()=>{let e=0;Ct.get("https://stats.runonflux.io/proposals/listProposals").then((t=>{if("success"===t.data.status){const a=t.data.data.filter((e=>"Open"===e.status));a.forEach((async t=>{const a=await d(t);"success"!==a.status||null!=a.data&&0!==a.data.length||(e+=1,c.value=e)}))}}))};setInterval((()=>{p()}),6e5),p();const m=(0,l.ref)(!1);(0,l.provide)("isMouseHovered",t);const v={maxScrollbarLength:60,wheelPropagation:!1},g=(0,l.computed)((()=>"unpinned"===n.value?"CircleIcon":"DiscIcon")),{appName:h,appLogoImageDark:f,appLogoImage:b}=re.$themeConfig.app;return{navMenuItems:_e,navMenuItemsCollapsed:Oe,perfectScrollbarSettings:v,isVerticalMenuCollapsed:a,collapseTogglerIcon:n,toggleCollapsed:r,isMouseHovered:t,updateMouseHovered:o,collapseTogglerIconFeather:g,shallShadowBottom:m,skin:u,isNavMenuCollapsed:s,appName:h,appLogoImage:b,appLogoImageDark:f}}},yt=wt;var Mt=(0,x.Z)(yt,Q,ee,!1,null,null,null);const _t=Mt.exports;function It(e,t){const a=(0,l.ref)(!0),n=()=>{a.value=!a.value},r=(0,l.ref)("xl"),o=(0,l.computed)((()=>lt.Z.state.verticalMenu.isVerticalMenuCollapsed)),i=(0,l.computed)((()=>{const n=[];return"xl"===r.value||"xxl"===r.value?(n.push("vertical-menu-modern"),n.push(o.value?"menu-collapsed":"menu-expanded")):(n.push("vertical-overlay-menu"),n.push(a.value?"menu-open":"menu-hide")),n.push(`navbar-${e.value}`),"sticky"===t.value&&n.push("footer-fixed"),"static"===t.value&&n.push("footer-static"),"hidden"===t.value&&n.push("footer-hidden"),n}));(0,l.watch)(r,(e=>{a.value="xxl"===e||"xl"===e}));const s=()=>{window.innerWidth>=1600?r.value="xxl":window.innerWidth>=1200?r.value="xl":window.innerWidth>=992?r.value="lg":window.innerWidth>=768?r.value="md":window.innerWidth>=576?r.value="sm":r.value="xs"},c=(0,l.computed)((()=>"xxl"!==r.value&&"xl"!==r.value&&a.value?"show":null)),u=(0,l.computed)((()=>"sticky"===e.value?"fixed-top":"static"===e.value?"navbar-static-top":"hidden"===e.value?"d-none":"floating-nav")),d=(0,l.computed)((()=>"static"===t.value?"footer-static":"hidden"===t.value?"d-none":""));return{isVerticalMenuActive:a,toggleVerticalMenuActive:n,isVerticalMenuCollapsed:o,layoutClasses:i,overlayClasses:c,navbarTypeClass:u,footerTypeClass:d,resizeHandler:s}}const Zt={watch:{$route(){this.$store.state.app.windowWidth{window.removeEventListener("resize",d)})),{isVerticalMenuActive:o,toggleVerticalMenuActive:i,isVerticalMenuCollapsed:s,overlayClasses:u,layoutClasses:c,navbarTypeClass:p,footerTypeClass:m,routerTransition:e,navbarBackgroundColor:t,isNavMenuHidden:r}},computed:{layoutContentRenderer(){const e=this.$route.meta.contentRenderer;return"sidebar-left"===e?"layout-content-renderer-left":"sidebar-left-detached"===e?"layout-content-renderer-left-detached":"layout-content-renderer-default"}}},At=Bt;var Tt=(0,x.Z)(At,i,s,!1,null,null,null);const Lt=Tt.exports;var St=function(){var e=this,t=e._self._c;return t("div",{staticClass:"navbar-container d-flex content align-items-center"},[t("ul",{staticClass:"nav navbar-nav d-xl-none"},[t("li",{staticClass:"nav-item"},[t("b-link",{staticClass:"nav-link",on:{click:e.toggleVerticalMenuActive}},[t("feather-icon",{attrs:{icon:"MenuIcon",size:"21"}})],1)],1)]),t("div",{staticClass:"bookmark-wrapper align-items-center flex-grow-1 d-none d-md-flex"},[t("b-dropdown",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(113, 102, 240, 0.15)",expression:"'rgba(113, 102, 240, 0.15)'",modifiers:{400:!0}}],attrs:{text:e.backendURL,variant:"outline-primary",size:"sm"}},[t("b-dropdown-item-button",{on:{click:function(t){return e.changeBackendURL(`http://${e.userconfig.externalip}:${e.config.apiPort}`)}}},[e._v(" http://"+e._s(e.userconfig.externalip)+":"+e._s(e.config.apiPort)+" ")]),t("b-dropdown-divider"),t("b-dropdown-item-button",{on:{click:function(t){return e.changeBackendURL("https://api.runonflux.io")}}},[e._v(" https://api.runonflux.io ")]),t("b-dropdown-divider"),t("b-form-input",{attrs:{id:"dropdown-form-custom",type:"text",size:"sm",placeholder:"Custom Backend"},on:{input:function(t){return e.changeBackendURL(e.customBackend)}},model:{value:e.customBackend,callback:function(t){e.customBackend=t},expression:"customBackend"}})],1)],1),t("b-navbar-nav",{staticClass:"nav align-items-center ml-auto"},[e._v(" "+e._s(e.zelid)+" "),t("dark-Toggler",{staticClass:"d-block"}),t("menu-Collapse-Toggler",{staticClass:"d-block"}),"none"!==e.privilege?t("b-button",{attrs:{variant:"outline-primary",size:"sm"},on:{click:e.logout}},[e._v(" Logout ")]):e._e()],1)],1)},Vt=[],Nt=a(29852),Ot=a(31642),Pt=a(2332),$t=a(41294),zt=a(15193),Dt=a(22183),Rt=function(){var e=this,t=e._self._c;return t("b-nav-item",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],attrs:{title:"Toggle Dark Mode"},on:{click:function(t){e.skin=e.isDark?"light":"dark"}}},[t("feather-icon",{attrs:{size:"21",icon:(e.isDark?"Sun":"Moon")+"Icon"}})],1)},Ft=[],Ht=a(32450),jt=a(5870);const Gt={components:{BNavItem:Ht.r},directives:{"b-tooltip":jt.o},setup(){const{skin:e}=(0,w.Z)(),t=(0,l.computed)((()=>"dark"===e.value));return{skin:e,isDark:t}}},Et=Gt;var Ut=(0,x.Z)(Et,Rt,Ft,!1,null,null,null);const Wt=Ut.exports;var qt=function(){var e=this,t=e._self._c;return t("b-nav-item",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"menu-toggler",attrs:{title:"Toggle Menu Style"},on:{click:function(t){e.isNavMenuCollapsed=!e.isCollapsed}}},[t("v-icon",{attrs:{size:"21",name:""+(e.isCollapsed?"bars":"align-left")}})],1)},Xt=[];const Kt={components:{BNavItem:Ht.r},directives:{"b-tooltip":jt.o},setup(){const{isNavMenuCollapsed:e}=(0,w.Z)(),t=(0,l.computed)((()=>!0===e.value));return{isNavMenuCollapsed:e,isCollapsed:t}}},Jt=Kt;var Yt=(0,x.Z)(Jt,qt,Xt,!1,null,"2ed358b2",null);const Qt=Yt.exports;var ea=a(34369);const ta=a(80129),aa=a(58971),na={components:{BLink:p.we,BNavbarNav:Nt.o,BDropdown:Ot.R,BDropdownItemButton:Pt.t,BDropdownDivider:$t.a,BButton:zt.T,BFormInput:Dt.e,DarkToggler:Wt,MenuCollapseToggler:Qt,ToastificationContent:g.Z},directives:{Ripple:S.Z},props:{toggleVerticalMenuActive:{type:Function,default:()=>{}}},data(){return{backendURL:"",customBackend:""}},computed:{...(0,d.rn)("flux",["userconfig","config","privilege","zelid"])},mounted(){const{protocol:e,hostname:t,port:a}=window.location;let n="";n+=e,n+="//";const r=/[A-Za-z]/g;if(t.match(r)){const e=t.split(".");e[0]="api",n+=e.join(".")}else{if("string"===typeof t&&this.$store.commit("flux/setUserIp",t),+a>16100){const e=+a+1;this.$store.commit("flux/setFluxPort",e)}n+=t,n+=":",n+=this.config.apiPort}this.backendURL=aa.get("backendURL")||n},methods:{changeBackendURL(e){console.log(e),aa.set("backendURL",e),this.backendURL=e},showToast(e,t){this.$toast({component:g.Z,props:{title:t,icon:"BellIcon",variant:e}})},logout(){const e=localStorage.getItem("zelidauth"),t=ta.parse(e);localStorage.removeItem("zelidauth"),this.$store.commit("flux/setPrivilege","none"),this.$store.commit("flux/setZelid",""),console.log(t),ea.Z.logoutCurrentSession(e).then((e=>{console.log(e),"error"===e.data.status?console.log(e.data.data.message):(this.showToast("success",e.data.data.message),this.$router.push({name:"home"}))})).catch((e=>{console.log(e),this.showToast("danger",e.toString())}))}}},ra=na;var oa=(0,x.Z)(ra,St,Vt,!1,null,null,null);const ia=oa.exports,sa={components:{LayoutVertical:Lt,Navbar:ia},data(){return{}}},la=sa;var ca=(0,x.Z)(la,r,o,!1,null,null,null);const ua=ca.exports},39055:(e,t,a)=>{a.d(t,{Z:()=>r});var n=a(80914);const r={softUpdateFlux(e){return(0,n.Z)().get("/flux/softupdateflux",{headers:{zelidauth:e}})},softUpdateInstallFlux(e){return(0,n.Z)().get("/flux/softupdatefluxinstall",{headers:{zelidauth:e}})},updateFlux(e){return(0,n.Z)().get("/flux/updateflux",{headers:{zelidauth:e}})},hardUpdateFlux(e){return(0,n.Z)().get("/flux/hardupdateflux",{headers:{zelidauth:e}})},rebuildHome(e){return(0,n.Z)().get("/flux/rebuildhome",{headers:{zelidauth:e}})},updateDaemon(e){return(0,n.Z)().get("/flux/updatedaemon",{headers:{zelidauth:e}})},reindexDaemon(e){return(0,n.Z)().get("/flux/reindexdaemon",{headers:{zelidauth:e}})},updateBenchmark(e){return(0,n.Z)().get("/flux/updatebenchmark",{headers:{zelidauth:e}})},getFluxVersion(){return(0,n.Z)().get("/flux/version")},broadcastMessage(e,t){const a=t,r={headers:{zelidauth:e}};return(0,n.Z)().post("/flux/broadcastmessage",JSON.stringify(a),r)},connectedPeers(){return(0,n.Z)().get(`/flux/connectedpeers?timestamp=${Date.now()}`)},connectedPeersInfo(){return(0,n.Z)().get(`/flux/connectedpeersinfo?timestamp=${Date.now()}`)},incomingConnections(){return(0,n.Z)().get(`/flux/incomingconnections?timestamp=${Date.now()}`)},incomingConnectionsInfo(){return(0,n.Z)().get(`/flux/incomingconnectionsinfo?timestamp=${Date.now()}`)},addPeer(e,t){return(0,n.Z)().get(`/flux/addpeer/${t}`,{headers:{zelidauth:e}})},removePeer(e,t){return(0,n.Z)().get(`/flux/removepeer/${t}`,{headers:{zelidauth:e}})},removeIncomingPeer(e,t){return(0,n.Z)().get(`/flux/removeincomingpeer/${t}`,{headers:{zelidauth:e}})},adjustCruxID(e,t){return(0,n.Z)().get(`/flux/adjustcruxid/${t}`,{headers:{zelidauth:e}})},adjustKadena(e,t,a){return(0,n.Z)().get(`/flux/adjustkadena/${t}/${a}`,{headers:{zelidauth:e}})},adjustRouterIP(e,t){return(0,n.Z)().get(`/flux/adjustrouterip/${t}`,{headers:{zelidauth:e}})},adjustBlockedPorts(e,t){const a={blockedPorts:t},r={headers:{zelidauth:e}};return(0,n.Z)().post("/flux/adjustblockedports",JSON.stringify(a),r)},adjustAPIPort(e,t){return(0,n.Z)().get(`/flux/adjustapiport/${t}`,{headers:{zelidauth:e}})},adjustBlockedRepositories(e,t){const a={blockedRepositories:t},r={headers:{zelidauth:e}};return(0,n.Z)().post("/flux/adjustblockedrepositories",JSON.stringify(a),r)},getCruxID(){const e={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/cruxid",e)},getKadenaAccount(){const e={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/kadena",e)},getRouterIP(){const e={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/routerip",e)},getBlockedPorts(){const e={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/blockedports",e)},getAPIPort(){const e={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/apiport",e)},getBlockedRepositories(){const e={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/blockedrepositories",e)},getMarketPlaceURL(){return(0,n.Z)().get("/flux/marketplaceurl")},getZelid(){const e={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/zelid",e)},getStaticIpInfo(){return(0,n.Z)().get("/flux/staticip")},restartFluxOS(e){const t={headers:{zelidauth:e,"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/restart",t)},tailFluxLog(e,t){return(0,n.Z)().get(`/flux/tail${e}log`,{headers:{zelidauth:t}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}},25448:(e,t,a)=>{e.exports=a.p+"img/logo.png"},84328:(e,t,a)=>{var n=a(65290),r=a(27578),o=a(6310),i=function(e){return function(t,a,i){var s,l=n(t),c=o(l),u=r(i,c);if(e&&a!==a){while(c>u)if(s=l[u++],s!==s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===a)return e||u||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},5649:(e,t,a)=>{var n=a(67697),r=a(92297),o=TypeError,i=Object.getOwnPropertyDescriptor,s=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(r(e)&&!i(e,"length").writable)throw new o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},8758:(e,t,a)=>{var n=a(36812),r=a(19152),o=a(82474),i=a(72560);e.exports=function(e,t,a){for(var s=r(t),l=i.f,c=o.f,u=0;u{var t=TypeError,a=9007199254740991;e.exports=function(e){if(e>a)throw t("Maximum allowed index exceeded");return e}},72739:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},79989:(e,t,a)=>{var n=a(19037),r=a(82474).f,o=a(75773),i=a(11880),s=a(95014),l=a(8758),c=a(35266);e.exports=function(e,t){var a,u,d,p,m,v,g=e.target,h=e.global,f=e.stat;if(u=h?n:f?n[g]||s(g,{}):(n[g]||{}).prototype,u)for(d in t){if(m=t[d],e.dontCallGetSet?(v=r(u,d),p=v&&v.value):p=u[d],a=c(h?d:g+(f?".":"#")+d,e.forced),!a&&void 0!==p){if(typeof m==typeof p)continue;l(m,p)}(e.sham||p&&p.sham)&&o(m,"sham",!0),i(u,d,m,e)}}},94413:(e,t,a)=>{var n=a(68844),r=a(3689),o=a(6648),i=Object,s=n("".split);e.exports=r((function(){return!i("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?s(e,""):i(e)}:i},92297:(e,t,a)=>{var n=a(6648);e.exports=Array.isArray||function(e){return"Array"===n(e)}},35266:(e,t,a)=>{var n=a(3689),r=a(69985),o=/#|\.prototype\./,i=function(e,t){var a=l[s(e)];return a===u||a!==c&&(r(t)?n(t):!!t)},s=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=i.data={},c=i.NATIVE="N",u=i.POLYFILL="P";e.exports=i},6310:(e,t,a)=>{var n=a(43126);e.exports=function(e){return n(e.length)}},58828:e=>{var t=Math.ceil,a=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?a:t)(n)}},82474:(e,t,a)=>{var n=a(67697),r=a(22615),o=a(49556),i=a(75684),s=a(65290),l=a(18360),c=a(36812),u=a(68506),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=s(e),t=l(t),u)try{return d(e,t)}catch(a){}if(c(e,t))return i(!r(o.f,e,t),e[t])}},72741:(e,t,a)=>{var n=a(54948),r=a(72739),o=r.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},7518:(e,t)=>{t.f=Object.getOwnPropertySymbols},54948:(e,t,a)=>{var n=a(68844),r=a(36812),o=a(65290),i=a(84328).indexOf,s=a(57248),l=n([].push);e.exports=function(e,t){var a,n=o(e),c=0,u=[];for(a in n)!r(s,a)&&r(n,a)&&l(u,a);while(t.length>c)r(n,a=t[c++])&&(~i(u,a)||l(u,a));return u}},49556:(e,t)=>{var a={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r=n&&!a.call({1:2},1);t.f=r?function(e){var t=n(this,e);return!!t&&t.enumerable}:a},19152:(e,t,a)=>{var n=a(76058),r=a(68844),o=a(72741),i=a(7518),s=a(85027),l=r([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(s(e)),a=i.f;return a?l(t,a(e)):t}},27578:(e,t,a)=>{var n=a(68700),r=Math.max,o=Math.min;e.exports=function(e,t){var a=n(e);return a<0?r(a+t,0):o(a,t)}},65290:(e,t,a)=>{var n=a(94413),r=a(74684);e.exports=function(e){return n(r(e))}},68700:(e,t,a)=>{var n=a(58828);e.exports=function(e){var t=+e;return t!==t||0===t?0:n(t)}},43126:(e,t,a)=>{var n=a(68700),r=Math.min;e.exports=function(e){return e>0?r(n(e),9007199254740991):0}},70560:(e,t,a)=>{var n=a(79989),r=a(90690),o=a(6310),i=a(5649),s=a(55565),l=a(3689),c=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},d=c||!u();n({target:"Array",proto:!0,arity:1,forced:d},{push:function(e){var t=r(this),a=o(t),n=arguments.length;s(a+n);for(var l=0;l{e.r(a),e.d(a,{default:()=>T});var i=function(){var t=this,a=t._self._c;return a("div",[a("div",{class:t.managedApplication?"d-none":""},[a("b-tabs",{on:{"activate-tab":function(a){t.output="",t.downloading=!1}}},[a("b-tab",{attrs:{active:"",title:"Running"}},[a("b-overlay",{attrs:{show:t.tableconfig.running.loading,variant:"transparent",blur:"5px"}},[a("b-card",[a("b-row",[a("b-col",{attrs:{cols:"12"}},[a("b-table",{staticClass:"apps-running-table",attrs:{striped:"",hover:"",responsive:"",items:t.tableconfig.running.apps,fields:t.isLoggedIn()?t.tableconfig.running.loggedInFields:t.tableconfig.running.fields,"show-empty":"","empty-text":"No Flux Apps running"},scopedSlots:t._u([{key:"cell(show_details)",fn:function(e){return[a("a",{on:{click:function(a){return t.showLocations(e,t.tableconfig.installed.apps)}}},[e.detailsShowing?t._e():a("v-icon",{attrs:{name:"chevron-down"}}),e.detailsShowing?a("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(e){return[a("b-card",{staticClass:"mx-2"},[a("list-entry",{attrs:{title:"Description",data:e.item.description}}),a("list-entry",{attrs:{title:"Owner",data:e.item.owner}}),a("list-entry",{attrs:{title:"Hash",data:e.item.hash}}),e.item.version>=5?a("div",[e.item.geolocation.length?a("div",t._l(e.item.geolocation,(function(e){return a("div",{key:e},[a("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(e)}})],1)})),0):a("div",[a("list-entry",{attrs:{title:"Continent",data:"All"}}),a("list-entry",{attrs:{title:"Country",data:"All"}}),a("list-entry",{attrs:{title:"Region",data:"All"}})],1)]):t._e(),e.item.instances?a("list-entry",{attrs:{title:"Instances",data:e.item.instances.toString()}}):t._e(),a("list-entry",{attrs:{title:"Expires in",data:t.labelForExpire(e.item.expire,e.item.height)}}),a("list-entry",{attrs:{title:"Enterprise Nodes",data:e.item.nodes?e.item.nodes.toString():"Not scoped"}}),a("list-entry",{attrs:{title:"Static IP",data:e.item.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}}),a("h4",[t._v("Composition")]),e.item.version<=3?a("div",[a("b-card",[a("list-entry",{attrs:{title:"Repository",data:e.item.repotag}}),a("list-entry",{attrs:{title:"Custom Domains",data:e.item.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(e.item.ports,void 0,e.item.name).toString()}}),a("list-entry",{attrs:{title:"Ports",data:e.item.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:e.item.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:e.item.containerData}}),a("list-entry",{attrs:{title:"Environment Parameters",data:e.item.enviromentParameters.length>0?e.item.enviromentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:e.item.commands.length>0?e.item.commands.toString():"none"}}),e.item.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${e.item.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${e.item.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${e.item.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${e.item.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${e.item.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${e.item.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${e.item.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${e.item.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${e.item.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${e.item.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${e.item.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${e.item.hdd} GB`}})],1)],1)],1):a("div",t._l(e.item.compose,(function(i,s){return a("b-card",{key:s},[a("b-card-title",[t._v(" Component "+t._s(i.name)+" ")]),a("list-entry",{attrs:{title:"Name",data:i.name}}),a("list-entry",{attrs:{title:"Description",data:i.description}}),a("list-entry",{attrs:{title:"Repository",data:i.repotag}}),a("list-entry",{attrs:{title:"Repository Authentication",data:i.repoauth?"Content Encrypted":"Public"}}),a("list-entry",{attrs:{title:"Custom Domains",data:i.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(i.ports,i.name,e.item.name,s).toString()}}),a("list-entry",{attrs:{title:"Ports",data:i.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:i.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:i.containerData}}),a("list-entry",{attrs:{title:"Environment Parameters",data:i.environmentParameters.length>0?i.environmentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:i.commands.length>0?i.commands.toString():"none"}}),a("list-entry",{attrs:{title:"Secret Environment Parameters",data:i.secrets?"Content Encrypted":"none"}}),i.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${i.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${i.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${i.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${i.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${i.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${i.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${i.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${i.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${i.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${i.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${i.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${i.hdd} GB`}})],1)],1)})),1)],1)]}},{key:"cell(Name)",fn:function(a){return[t._v(" "+t._s(a.item.name)+" ")]}},{key:"cell(Description)",fn:function(a){return[t._v(" "+t._s(a.item.description)+" ")]}},{key:"cell(visit)",fn:function(e){return[a("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"danger"},on:{click:function(a){return t.openApp(e.item.name)}}},[t._v(" Visit ")])]}},{key:"cell(actions)",fn:function(e){return[a("b-button",{staticClass:"mr-0",attrs:{id:`stop-running-app-${e.item.name}`,size:"sm",variant:"danger"}},[t._v(" Stop ")]),a("confirm-dialog",{attrs:{target:`stop-running-app-${e.item.name}`,"confirm-button":"Stop App"},on:{confirm:function(a){return t.stopApp(e.item.name)}}})]}}])})],1)],1)],1)],1)],1),a("b-tab",{attrs:{title:"Installed"}},[a("b-overlay",{attrs:{show:t.tableconfig.installed.loading,variant:"transparent",blur:"5px"}},[a("b-card",[a("b-row",[a("b-col",{attrs:{cols:"12"}},[a("b-table",{staticClass:"apps-installed-table",attrs:{striped:"",hover:"",responsive:"",items:t.tableconfig.installed.apps,fields:t.isLoggedIn()?t.tableconfig.installed.loggedInFields:t.tableconfig.installed.fields,"show-empty":"","empty-text":"No Flux Apps installed"},scopedSlots:t._u([{key:"cell(show_details)",fn:function(e){return[a("a",{on:{click:function(a){return t.showLocations(e,t.tableconfig.installed.apps)}}},[e.detailsShowing?t._e():a("v-icon",{attrs:{name:"chevron-down"}}),e.detailsShowing?a("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(e){return[a("b-card",{staticClass:"mx-2"},[e.item.description?a("list-entry",{attrs:{title:"Description",data:e.item.description}}):t._e(),e.item.owner?a("list-entry",{attrs:{title:"Owner",data:e.item.owner}}):t._e(),e.item.hash?a("list-entry",{attrs:{title:"Hash",data:e.item.hash}}):t._e(),e.item.version>=5?a("div",[e.item.geolocation.length?a("div",t._l(e.item.geolocation,(function(e){return a("div",{key:e},[a("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(e)}})],1)})),0):a("div",[a("list-entry",{attrs:{title:"Continent",data:"All"}}),a("list-entry",{attrs:{title:"Country",data:"All"}}),a("list-entry",{attrs:{title:"Region",data:"All"}})],1)]):t._e(),e.item.instances?a("list-entry",{attrs:{title:"Instances",data:e.item.instances.toString()}}):t._e(),a("list-entry",{attrs:{title:"Expires in",data:t.labelForExpire(e.item.expire,e.item.height)}}),a("list-entry",{attrs:{title:"Enterprise Nodes",data:e.item.nodes?e.item.nodes.toString():"Not scoped"}}),a("list-entry",{attrs:{title:"Static IP",data:e.item.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}}),a("h4",[t._v("Composition")]),e.item.version<=3?a("div",[a("b-card",[a("list-entry",{attrs:{title:"Repository",data:e.item.repotag}}),a("list-entry",{attrs:{title:"Custom Domains",data:e.item.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(e.item.ports,void 0,e.item.name).toString()}}),a("list-entry",{attrs:{title:"Ports",data:e.item.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:e.item.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:e.item.containerData}}),a("list-entry",{attrs:{title:"Environment Parameters",data:e.item.enviromentParameters.length>0?e.item.enviromentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:e.item.commands.length>0?e.item.commands.toString():"none"}}),a("list-entry",{attrs:{title:"Secret Environment Parameters",data:e.item.secrets||"none"}}),e.item.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${e.item.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${e.item.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${e.item.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${e.item.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${e.item.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${e.item.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${e.item.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${e.item.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${e.item.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${e.item.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${e.item.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${e.item.hdd} GB`}})],1)],1)],1):a("div",t._l(e.item.compose,(function(i,s){return a("b-card",{key:s},[a("b-card-title",[t._v(" Component "+t._s(i.name)+" ")]),a("list-entry",{attrs:{title:"Name",data:i.name}}),a("list-entry",{attrs:{title:"Description",data:i.description}}),a("list-entry",{attrs:{title:"Repository",data:i.repotag}}),a("list-entry",{attrs:{title:"Repository Authentication",data:i.repoauth?"Content Encrypted":"Public"}}),a("list-entry",{attrs:{title:"Custom Domains",data:i.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(i.ports,i.name,e.item.name,s).toString()}}),a("list-entry",{attrs:{title:"Ports",data:i.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:i.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:i.containerData}}),a("list-entry",{attrs:{title:"Environment Parameters",data:i.environmentParameters.length>0?i.environmentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:i.commands.length>0?i.commands.toString():"none"}}),a("list-entry",{attrs:{title:"Secret Environment Parameters",data:i.secrets?"Content Encrypted":"none"}}),i.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${i.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${i.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${i.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${i.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${i.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${i.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${i.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${i.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${i.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${i.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${i.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${i.hdd} GB`}})],1)],1)})),1),a("h4",[t._v("Locations")]),a("b-row",[a("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[a("b-form-group",{staticClass:"mb-0"},[a("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),a("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.appLocationOptions.pageOptions},model:{value:t.appLocationOptions.perPage,callback:function(a){t.$set(t.appLocationOptions,"perPage",a)},expression:"appLocationOptions.perPage"}})],1)],1),a("b-col",{staticClass:"my-1",attrs:{md:"8"}},[a("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[a("b-input-group",{attrs:{size:"sm"}},[a("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.appLocationOptions.filter,callback:function(a){t.$set(t.appLocationOptions,"filter",a)},expression:"appLocationOptions.filter"}}),a("b-input-group-append",[a("b-button",{attrs:{disabled:!t.appLocationOptions.filter},on:{click:function(a){t.appLocationOptions.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),a("b-col",{attrs:{cols:"12"}},[a("b-table",{staticClass:"locations-table",attrs:{striped:"",hover:"","per-page":t.appLocationOptions.perPage,"current-page":t.appLocationOptions.currentPage,items:t.appLocations,fields:t.appLocationFields},scopedSlots:t._u([{key:"cell(visit)",fn:function(i){return[a("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"danger"},on:{click:function(a){t.openApp(e.item.name,i.item.ip.split(":")[0],t.getProperPort(e.item))}}},[t._v(" Visit ")])]}}],null,!0)})],1),a("b-col",{attrs:{cols:"12"}},[a("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.appLocationOptions.totalRows,"per-page":t.appLocationOptions.perPage,align:"center",size:"sm"},model:{value:t.appLocationOptions.currentPage,callback:function(a){t.$set(t.appLocationOptions,"currentPage",a)},expression:"appLocationOptions.currentPage"}}),a("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.appLocationOptions.totalRows))])],1)],1)],1)]}},{key:"cell(Name)",fn:function(a){return[t._v(" "+t._s(t.getAppName(a.item.name))+" ")]}},{key:"cell(Description)",fn:function(a){return[t._v(" "+t._s(a.item.description)+" ")]}},{key:"cell(actions)",fn:function(e){return[a("b-button",{staticClass:"w-100 mr-1",staticStyle:{"margin-bottom":"2px"},attrs:{id:`start-installed-app-${e.item.name}`,size:"sm",variant:"danger"}},[t._v(" Start ")]),a("confirm-dialog",{attrs:{target:`start-installed-app-${e.item.name}`,"confirm-button":"Start App"},on:{confirm:function(a){return t.startApp(e.item.name)}}}),a("b-button",{staticClass:"w-100 mr-1",attrs:{id:`restart-installed-app-${e.item.name}`,size:"sm",variant:"danger"}},[t._v(" Restart ")]),a("confirm-dialog",{attrs:{target:`restart-installed-app-${e.item.name}`,"confirm-button":"Restart App"},on:{confirm:function(a){return t.restartApp(e.item.name)}}})]}},{key:"cell(remove)",fn:function(e){return[a("b-button",{staticClass:"mr-0",attrs:{id:`remove-installed-app-${e.item.name}`,size:"sm",variant:"danger"}},[t._v(" Remove ")]),a("confirm-dialog",{attrs:{target:`remove-installed-app-${e.item.name}`,"confirm-button":"Remove App"},on:{confirm:function(a){return t.removeApp(e.item.name)}}})]}},{key:"cell(manage)",fn:function(e){return[a("b-button",{staticClass:"mr-0",attrs:{id:`manage-installed-app-${e.item.name}`,size:"sm",variant:"danger"}},[t._v(" Manage ")]),a("confirm-dialog",{attrs:{target:`manage-installed-app-${e.item.name}`,"confirm-button":"Manage App"},on:{confirm:function(a){return t.openAppManagement(e.item.name)}}})]}}])})],1)],1)],1)],1)],1),a("b-tab",{attrs:{title:"Available"}},[a("b-overlay",{attrs:{show:t.tableconfig.available.loading,variant:"transparent",blur:"5px"}},[a("b-card",[t._v(" Prebuilt applications to install "),a("b-row",[a("b-col",{attrs:{cols:"12"}},[a("b-table",{staticClass:"apps-available-table",attrs:{striped:"",hover:"",responsive:"",items:t.tableconfig.available.apps,fields:t.isLoggedIn()?t.tableconfig.available.loggedInFields:t.tableconfig.available.fields,"show-empty":"","empty-text":"No Flux Apps available"},scopedSlots:t._u([{key:"cell(show_details)",fn:function(e){return[a("a",{on:{click:function(a){return t.showLocations(e,t.tableconfig.available.apps)}}},[e.detailsShowing?t._e():a("v-icon",{attrs:{name:"chevron-down"}}),e.detailsShowing?a("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(e){return[a("b-card",{staticClass:"mx-2"},[a("list-entry",{attrs:{title:"Description",data:e.item.description}}),a("list-entry",{attrs:{title:"Owner",data:e.item.owner}}),a("list-entry",{attrs:{title:"Hash",data:e.item.hash}}),e.item.version>=5?a("div",[a("list-entry",{attrs:{title:"Contacts",data:JSON.stringify(e.item.contacts)}}),e.item.geolocation.length?a("div",t._l(e.item.geolocation,(function(e){return a("div",{key:e},[a("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(e)}})],1)})),0):a("div",[a("list-entry",{attrs:{title:"Continent",data:"All"}}),a("list-entry",{attrs:{title:"Country",data:"All"}}),a("list-entry",{attrs:{title:"Region",data:"All"}})],1)],1):t._e(),e.item.instances?a("list-entry",{attrs:{title:"Instances",data:e.item.instances.toString()}}):t._e(),a("list-entry",{attrs:{title:"Expires in",data:t.labelForExpire(e.item.expire,e.item.height)}}),a("list-entry",{attrs:{title:"Enterprise Nodes",data:e.item.nodes?e.item.nodes.toString():"Not scoped"}}),a("list-entry",{attrs:{title:"Static IP",data:e.item.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}}),a("h4",[t._v("Composition")]),e.item.version<=3?a("div",[a("b-card",[a("list-entry",{attrs:{title:"Repository",data:e.item.repotag}}),a("list-entry",{attrs:{title:"Custom Domains",data:e.item.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(e.item.ports,void 0,e.item.name).toString()}}),a("list-entry",{attrs:{title:"Ports",data:e.item.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:e.item.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:e.item.containerData}}),a("list-entry",{attrs:{title:"Environment Parameters",data:e.item.enviromentParameters.length>0?e.item.enviromentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:e.item.commands.length>0?e.item.commands.toString():"none"}}),e.item.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${e.item.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${e.item.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${e.item.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${e.item.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${e.item.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${e.item.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${e.item.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${e.item.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${e.item.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${e.item.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${e.item.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${e.item.hdd} GB`}})],1)],1)],1):a("div",t._l(e.item.compose,(function(i,s){return a("b-card",{key:s},[a("b-card-title",[t._v(" Component "+t._s(i.name)+" ")]),a("list-entry",{attrs:{title:"Name",data:i.name}}),a("list-entry",{attrs:{title:"Description",data:i.description}}),a("list-entry",{attrs:{title:"Repository",data:i.repotag}}),a("list-entry",{attrs:{title:"Repository Authentication",data:i.repoauth?"Content Encrypted":"Public"}}),a("list-entry",{attrs:{title:"Custom Domains",data:i.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(i.ports,i.name,e.item.name,s).toString()}}),a("list-entry",{attrs:{title:"Ports",data:i.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:i.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:i.containerData}}),a("list-entry",{attrs:{title:"Environment Parameters",data:i.environmentParameters.length>0?i.environmentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:i.commands.length>0?i.commands.toString():"none"}}),a("list-entry",{attrs:{title:"Secret Environment Parameters",data:i.secrets?"Content Encrypted":"none"}}),i.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${i.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${i.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${i.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${i.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${i.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${i.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${i.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${i.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${i.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${i.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${i.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${i.hdd} GB`}})],1)],1)})),1),a("h4",[t._v("Locations")]),a("b-row",[a("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[a("b-form-group",{staticClass:"mb-0"},[a("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),a("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.appLocationOptions.pageOptions},model:{value:t.appLocationOptions.perPage,callback:function(a){t.$set(t.appLocationOptions,"perPage",a)},expression:"appLocationOptions.perPage"}})],1)],1),a("b-col",{staticClass:"my-1",attrs:{md:"8"}},[a("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[a("b-input-group",{attrs:{size:"sm"}},[a("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.appLocationOptions.filter,callback:function(a){t.$set(t.appLocationOptions,"filter",a)},expression:"appLocationOptions.filter"}}),a("b-input-group-append",[a("b-button",{attrs:{disabled:!t.appLocationOptions.filter},on:{click:function(a){t.appLocationOptions.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),a("b-col",{attrs:{cols:"12"}},[a("b-table",{staticClass:"locations-table",attrs:{striped:"",hover:"","per-page":t.appLocationOptions.perPage,"current-page":t.appLocationOptions.currentPage,items:t.appLocations,fields:t.appLocationFields},scopedSlots:t._u([{key:"cell(visit)",fn:function(i){return[a("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"danger"},on:{click:function(a){t.openApp(e.item.name,i.item.ip.split(":")[0],t.getProperPort(e.item))}}},[t._v(" Visit ")])]}}],null,!0)})],1),a("b-col",{attrs:{cols:"12"}},[a("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.appLocationOptions.totalRows,"per-page":t.appLocationOptions.perPage,align:"center",size:"sm"},model:{value:t.appLocationOptions.currentPage,callback:function(a){t.$set(t.appLocationOptions,"currentPage",a)},expression:"appLocationOptions.currentPage"}}),a("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.appLocationOptions.totalRows))])],1)],1)],1)]}},{key:"cell(Name)",fn:function(a){return[t._v(" "+t._s(t.getAppName(a.item.name))+" ")]}},{key:"cell(Description)",fn:function(a){return[t._v(" "+t._s(a.item.description)+" ")]}},{key:"cell(install)",fn:function(e){return[a("b-button",{staticClass:"mr-0",attrs:{id:`install-app-${e.item.name}`,size:"sm",variant:"danger"}},[t._v(" Install ")]),a("confirm-dialog",{attrs:{target:`install-app-${e.item.name}`,"confirm-button":"Install App"},on:{confirm:function(a){return t.installAppLocally(e.item.name)}}})]}}])})],1)],1)],1),a("b-card",[t._v(" Global Applications to install "),a("b-row",[a("b-col",{attrs:{cols:"12"}},[a("b-table",{staticClass:"apps-globalAvailable-table",attrs:{striped:"",hover:"",responsive:"",items:t.tableconfig.globalAvailable.apps,fields:t.isLoggedIn()?t.tableconfig.globalAvailable.loggedInFields:t.tableconfig.globalAvailable.fields,"show-empty":"","empty-text":"No Flux Apps Globally Available"},scopedSlots:t._u([{key:"cell(show_details)",fn:function(e){return[a("a",{on:{click:function(a){return t.showLocations(e,t.tableconfig.globalAvailable.apps)}}},[e.detailsShowing?t._e():a("v-icon",{attrs:{name:"chevron-down"}}),e.detailsShowing?a("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(e){return[a("b-card",{staticClass:"mx-2"},[a("list-entry",{attrs:{title:"Description",data:e.item.description}}),a("list-entry",{attrs:{title:"Owner",data:e.item.owner}}),a("list-entry",{attrs:{title:"Hash",data:e.item.hash}}),e.item.version>=5?a("div",[a("list-entry",{attrs:{title:"Contacts",data:JSON.stringify(e.item.contacts)}}),e.item.geolocation.length?a("div",t._l(e.item.geolocation,(function(e){return a("div",{key:e},[a("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(e)}})],1)})),0):a("div",[a("list-entry",{attrs:{title:"Continent",data:"All"}}),a("list-entry",{attrs:{title:"Country",data:"All"}}),a("list-entry",{attrs:{title:"Region",data:"All"}})],1)],1):t._e(),e.item.instances?a("list-entry",{attrs:{title:"Instances",data:e.item.instances.toString()}}):t._e(),a("list-entry",{attrs:{title:"Expires in",data:t.labelForExpire(e.item.expire,e.item.height)}}),a("list-entry",{attrs:{title:"Enterprise Nodes",data:e.item.nodes?e.item.nodes.toString():"Not scoped"}}),a("list-entry",{attrs:{title:"Static IP",data:e.item.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}}),a("h4",[t._v("Composition")]),e.item.version<=3?a("div",[a("b-card",[a("list-entry",{attrs:{title:"Repository",data:e.item.repotag}}),a("list-entry",{attrs:{title:"Custom Domains",data:e.item.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(e.item.ports,void 0,e.item.name).toString()}}),a("list-entry",{attrs:{title:"Ports",data:e.item.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:e.item.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:e.item.containerData}}),a("list-entry",{attrs:{title:"Environment Parameters",data:e.item.enviromentParameters.length>0?e.item.enviromentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:e.item.commands.length>0?e.item.commands.toString():"none"}}),e.item.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${e.item.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${e.item.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${e.item.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${e.item.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${e.item.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${e.item.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${e.item.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${e.item.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${e.item.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${e.item.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${e.item.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${e.item.hdd} GB`}})],1)],1)],1):a("div",t._l(e.item.compose,(function(i,s){return a("b-card",{key:s},[a("b-card-title",[t._v(" Component "+t._s(i.name)+" ")]),a("list-entry",{attrs:{title:"Name",data:i.name}}),a("list-entry",{attrs:{title:"Description",data:i.description}}),a("list-entry",{attrs:{title:"Repository",data:i.repotag}}),a("list-entry",{attrs:{title:"Repository Authentication",data:i.repoauth?"Content Encrypted":"Public"}}),a("list-entry",{attrs:{title:"Custom Domains",data:i.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(i.ports,i.name,e.item.name,s).toString()}}),a("list-entry",{attrs:{title:"Ports",data:i.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:i.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:i.containerData}}),a("list-entry",{attrs:{title:"Environment Parameters",data:i.environmentParameters.length>0?i.environmentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:i.commands.length>0?i.commands.toString():"none"}}),a("list-entry",{attrs:{title:"Secret Environment Parameters",data:i.secrets?"Content Encrypted":"none"}}),i.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${i.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${i.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${i.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${i.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${i.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${i.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${i.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${i.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${i.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${i.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${i.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${i.hdd} GB`}})],1)],1)})),1),a("h4",[t._v("Locations")]),a("b-row",[a("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[a("b-form-group",{staticClass:"mb-0"},[a("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),a("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.appLocationOptions.pageOptions},model:{value:t.appLocationOptions.perPage,callback:function(a){t.$set(t.appLocationOptions,"perPage",a)},expression:"appLocationOptions.perPage"}})],1)],1),a("b-col",{staticClass:"my-1",attrs:{md:"8"}},[a("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[a("b-input-group",{attrs:{size:"sm"}},[a("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.appLocationOptions.filter,callback:function(a){t.$set(t.appLocationOptions,"filter",a)},expression:"appLocationOptions.filter"}}),a("b-input-group-append",[a("b-button",{attrs:{disabled:!t.appLocationOptions.filter},on:{click:function(a){t.appLocationOptions.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),a("b-col",{attrs:{cols:"12"}},[a("b-table",{staticClass:"locations-table",attrs:{striped:"",hover:"","per-page":t.appLocationOptions.perPage,"current-page":t.appLocationOptions.currentPage,items:t.appLocations,fields:t.appLocationFields},scopedSlots:t._u([{key:"cell(visit)",fn:function(i){return[a("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"danger"},on:{click:function(a){t.openApp(e.item.name,i.item.ip.split(":")[0],t.getProperPort(e.item))}}},[t._v(" Visit ")])]}}],null,!0)})],1),a("b-col",{attrs:{cols:"12"}},[a("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.appLocationOptions.totalRows,"per-page":t.appLocationOptions.perPage,align:"center",size:"sm"},model:{value:t.appLocationOptions.currentPage,callback:function(a){t.$set(t.appLocationOptions,"currentPage",a)},expression:"appLocationOptions.currentPage"}}),a("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.appLocationOptions.totalRows))])],1)],1)],1)]}},{key:"cell(Name)",fn:function(a){return[t._v(" "+t._s(t.getAppName(a.item.name))+" ")]}},{key:"cell(Description)",fn:function(a){return[t._v(" "+t._s(a.item.description)+" ")]}},{key:"cell(install)",fn:function(e){return[a("b-button",{staticClass:"mr-0",attrs:{id:`install-app-${e.item.name}`,size:"sm",variant:"danger"}},[t._v(" Install ")]),a("confirm-dialog",{attrs:{target:`install-app-${e.item.name}`,"confirm-button":"Install App"},on:{confirm:function(a){return t.installAppLocally(e.item.name)}}})]}}])})],1)],1)],1)],1)],1),a("b-tab",{attrs:{title:"My Local Apps"}},[a("b-overlay",{attrs:{show:t.tableconfig.installed.loading,variant:"transparent",blur:"5px"}},[a("b-card",[a("b-row",[a("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[a("b-form-group",{staticClass:"mb-0"},[a("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),a("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.tableconfig.local.pageOptions},model:{value:t.tableconfig.local.perPage,callback:function(a){t.$set(t.tableconfig.local,"perPage",a)},expression:"tableconfig.local.perPage"}})],1)],1),a("b-col",{staticClass:"my-1",attrs:{md:"8"}},[a("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[a("b-input-group",{attrs:{size:"sm"}},[a("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.tableconfig.local.filter,callback:function(a){t.$set(t.tableconfig.local,"filter",a)},expression:"tableconfig.local.filter"}}),a("b-input-group-append",[a("b-button",{attrs:{disabled:!t.tableconfig.local.filter},on:{click:function(a){t.tableconfig.local.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),a("b-col",{attrs:{cols:"12"}},[a("b-table",{staticClass:"apps-local-table",attrs:{striped:"",hover:"",responsive:"","per-page":t.tableconfig.local.perPage,"current-page":t.tableconfig.local.currentPage,items:t.tableconfig.local.apps,fields:t.tableconfig.local.fields,"sort-by":t.tableconfig.local.sortBy,"sort-desc":t.tableconfig.local.sortDesc,"sort-direction":t.tableconfig.local.sortDirection,filter:t.tableconfig.local.filter,"filter-included-fields":t.tableconfig.local.filterOn,"show-empty":"","empty-text":"No Local Apps owned"},on:{"update:sortBy":function(a){return t.$set(t.tableconfig.local,"sortBy",a)},"update:sort-by":function(a){return t.$set(t.tableconfig.local,"sortBy",a)},"update:sortDesc":function(a){return t.$set(t.tableconfig.local,"sortDesc",a)},"update:sort-desc":function(a){return t.$set(t.tableconfig.local,"sortDesc",a)},filtered:t.onFilteredLocal},scopedSlots:t._u([{key:"cell(show_details)",fn:function(e){return[a("a",{on:{click:function(a){return t.showLocations(e,t.tableconfig.local.apps)}}},[e.detailsShowing?t._e():a("v-icon",{attrs:{name:"chevron-down"}}),e.detailsShowing?a("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(e){return[a("b-card",{staticClass:"mx-2"},[e.item.description?a("list-entry",{attrs:{title:"Description",data:e.item.description}}):t._e(),e.item.owner?a("list-entry",{attrs:{title:"Owner",data:e.item.owner}}):t._e(),e.item.hash?a("list-entry",{attrs:{title:"Hash",data:e.item.hash}}):t._e(),e.item.version>=5?a("div",[a("list-entry",{attrs:{title:"Contacts",data:JSON.stringify(e.item.contacts)}}),e.item.geolocation.length?a("div",t._l(e.item.geolocation,(function(e){return a("div",{key:e},[a("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(e)}})],1)})),0):a("div",[a("list-entry",{attrs:{title:"Continent",data:"All"}}),a("list-entry",{attrs:{title:"Country",data:"All"}}),a("list-entry",{attrs:{title:"Region",data:"All"}})],1)],1):t._e(),e.item.instances?a("list-entry",{attrs:{title:"Instances",data:e.item.instances.toString()}}):t._e(),a("list-entry",{attrs:{title:"Expires in",data:t.labelForExpire(e.item.expire,e.item.height)}}),a("list-entry",{attrs:{title:"Enterprise Nodes",data:e.item.nodes?e.item.nodes.toString():"Not scoped"}}),a("list-entry",{attrs:{title:"Static IP",data:e.item.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}}),a("h4",[t._v("Composition")]),e.item.version<=3?a("div",[a("b-card",[a("list-entry",{attrs:{title:"Repository",data:e.item.repotag}}),a("list-entry",{attrs:{title:"Custom Domains",data:e.item.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(e.item.ports,void 0,e.item.name).toString()}}),a("list-entry",{attrs:{title:"Ports",data:e.item.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:e.item.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:e.item.containerData}}),a("list-entry",{attrs:{title:"Enviroment Parameters",data:e.item.enviromentParameters.length>0?e.item.enviromentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:e.item.commands.length>0?e.item.commands.toString():"none"}}),e.item.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${e.item.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${e.item.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${e.item.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${e.item.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${e.item.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${e.item.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${e.item.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${e.item.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${e.item.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${e.item.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${e.item.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${e.item.hdd} GB`}})],1)],1)],1):a("div",t._l(e.item.compose,(function(i,s){return a("b-card",{key:s},[a("b-card-title",[t._v(" Component "+t._s(i.name)+" ")]),a("list-entry",{attrs:{title:"Name",data:i.name}}),a("list-entry",{attrs:{title:"Description",data:i.description}}),a("list-entry",{attrs:{title:"Repository",data:i.repotag}}),a("list-entry",{attrs:{title:"Repository Authentication",data:i.repoauth?"Content Encrypted":"Public"}}),a("list-entry",{attrs:{title:"Custom Domains",data:i.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(i.ports,i.name,e.item.name,s).toString()}}),a("list-entry",{attrs:{title:"Ports",data:i.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:i.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:i.containerData}}),a("list-entry",{attrs:{title:"Environment Parameters",data:i.environmentParameters.length>0?i.environmentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:i.commands.length>0?i.commands.toString():"none"}}),a("list-entry",{attrs:{title:"Secret Environment Parameters",data:i.secrets?"Content Encrypted":"none"}}),i.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${i.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${i.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${i.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${i.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${i.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${i.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${i.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${i.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${i.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${i.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${i.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${i.hdd} GB`}})],1)],1)})),1),a("h4",[t._v("Locations")]),a("b-row",[a("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[a("b-form-group",{staticClass:"mb-0"},[a("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),a("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.appLocationOptions.pageOptions},model:{value:t.appLocationOptions.perPage,callback:function(a){t.$set(t.appLocationOptions,"perPage",a)},expression:"appLocationOptions.perPage"}})],1)],1),a("b-col",{staticClass:"my-1",attrs:{md:"8"}},[a("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[a("b-input-group",{attrs:{size:"sm"}},[a("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.appLocationOptions.filter,callback:function(a){t.$set(t.appLocationOptions,"filter",a)},expression:"appLocationOptions.filter"}}),a("b-input-group-append",[a("b-button",{attrs:{disabled:!t.appLocationOptions.filter},on:{click:function(a){t.appLocationOptions.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),a("b-col",{attrs:{cols:"12"}},[a("b-table",{staticClass:"locations-table",attrs:{striped:"",hover:"","per-page":t.appLocationOptions.perPage,"current-page":t.appLocationOptions.currentPage,items:t.appLocations,fields:t.appLocationFields},scopedSlots:t._u([{key:"cell(visit)",fn:function(i){return[a("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"danger"},on:{click:function(a){t.openApp(e.item.name,i.item.ip.split(":")[0],t.getProperPort(e.item))}}},[t._v(" Visit ")])]}}],null,!0)})],1),a("b-col",{attrs:{cols:"12"}},[a("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.appLocationOptions.totalRows,"per-page":t.appLocationOptions.perPage,align:"center",size:"sm"},model:{value:t.appLocationOptions.currentPage,callback:function(a){t.$set(t.appLocationOptions,"currentPage",a)},expression:"appLocationOptions.currentPage"}}),a("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.appLocationOptions.totalRows))])],1)],1)],1)]}},{key:"cell(Name)",fn:function(a){return[t._v(" "+t._s(t.getAppName(a.item.name))+" ")]}},{key:"cell(Description)",fn:function(a){return[t._v(" "+t._s(a.item.description)+" ")]}},{key:"cell(actions)",fn:function(e){return[a("b-button",{staticClass:"w-100 mr-1",staticStyle:{"margin-bottom":"2px"},attrs:{id:`start-local-app-${e.item.name}`,size:"sm",variant:"danger"}},[t._v(" Start ")]),a("confirm-dialog",{attrs:{target:`start-local-app-${e.item.name}`,"confirm-button":"Start App"},on:{confirm:function(a){return t.startApp(e.item.name)}}}),a("b-button",{staticClass:"w-100 mr-1",attrs:{id:`restart-local-app-${e.item.name}`,size:"sm",variant:"danger"}},[t._v(" Restart ")]),a("confirm-dialog",{attrs:{target:`restart-local-app-${e.item.name}`,"confirm-button":"Restart App"},on:{confirm:function(a){return t.restartApp(e.item.name)}}})]}},{key:"cell(remove)",fn:function(e){return[a("b-button",{staticClass:"mr-0",attrs:{id:`remove-local-app-${e.item.name}`,size:"sm",variant:"danger"}},[t._v(" Remove ")]),a("confirm-dialog",{attrs:{target:`remove-local-app-${e.item.name}`,"confirm-button":"Remove App"},on:{confirm:function(a){return t.removeApp(e.item.name)}}})]}},{key:"cell(manage)",fn:function(e){return[a("b-button",{staticClass:"mr-0",attrs:{id:`manage-local-app-${e.item.name}`,size:"sm",variant:"danger"}},[t._v(" Manage ")]),a("confirm-dialog",{attrs:{target:`manage-local-app-${e.item.name}`,"confirm-button":"Manage App"},on:{confirm:function(a){return t.openAppManagement(e.item.name)}}})]}}])})],1),a("b-col",{attrs:{cols:"12"}},[a("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.tableconfig.local.totalRows,"per-page":t.tableconfig.local.perPage,align:"center",size:"sm"},model:{value:t.tableconfig.local.currentPage,callback:function(a){t.$set(t.tableconfig.local,"currentPage",a)},expression:"tableconfig.local.currentPage"}}),a("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.tableconfig.local.totalRows))])],1)],1)],1)],1)],1)],1),t.output.length>0?a("div",{staticClass:"actionCenter"},[a("br"),a("b-row",[a("b-col",{attrs:{cols:"9"}},[a("b-form-textarea",{staticClass:"mt-1",attrs:{plaintext:"","no-resize":"",rows:t.output.length+1,value:t.stringOutput()}})],1),t.downloading?a("b-col",{attrs:{cols:"3"}},[a("h3",[t._v("Downloads")]),t._l(t.downloadOutput,(function(e){return a("div",{key:e.id},[a("h4",[t._v(" "+t._s(e.id))]),a("b-progress",{attrs:{value:e.detail.current/e.detail.total*100,max:"100",striped:"",height:"1rem",variant:e.variant}}),a("br")],1)}))],2):t._e()],1)],1):t._e()],1),t.managedApplication?a("div",[a("management",{attrs:{"app-name":t.managedApplication,global:!1,"installed-apps":t.tableconfig.installed.apps},on:{back:function(a){return t.clearManagedApplication()}}})],1):t._e()])},s=[],n=(e(70560),e(58887)),o=e(51015),r=e(16521),l=e(50725),p=e(86855),c=e(49379),d=e(26253),m=e(15193),u=e(46709),g=e(22183),b=e(8051),h=e(4060),y=e(22418),f=e(333),v=e(66126),C=e(10962),S=e(45752),A=e(20266),$=e(20629),P=e(34547),w=e(87156),_=e(51748),k=e(4596),L=e(43672),D=e(27616);const R=e(58971),B=e(80129),O=e(63005),N=e(57306),M={components:{BTabs:n.M,BTab:o.L,BTable:r.h,BCol:l.l,BCard:p._,BCardTitle:c._,BRow:d.T,BButton:m.T,BFormGroup:u.x,BFormInput:g.e,BFormSelect:b.K,BInputGroup:h.w,BInputGroupAppend:y.B,BFormTextarea:f.y,BOverlay:v.X,BPagination:C.c,BProgress:S.D,ConfirmDialog:w.Z,ListEntry:_.Z,Management:k.Z,ToastificationContent:P.Z},directives:{Ripple:A.Z},data(){return{timeoptions:O,output:[],downloading:!1,downloadOutput:{},managedApplication:"",daemonBlockCount:-1,tableconfig:{running:{apps:[],status:"",loggedInFields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description",sortable:!0},{key:"visit",label:"Visit"},{key:"actions",label:"Actions"}],fields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description",sortable:!0},{key:"visit",label:"Visit"}],loading:!0},installed:{apps:[],status:"",loggedInFields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description",sortable:!0},{key:"actions",label:"Actions"},{key:"remove",label:"Remove"},{key:"manage",label:"Manage"}],fields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description",sortable:!0}],loading:!0},available:{apps:[],status:"",loggedInFields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description",sortable:!0},{key:"install",label:"Install"}],fields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description",sortable:!0}],loading:!0},globalAvailable:{apps:[],status:"",loggedInFields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description",sortable:!0},{key:"install",label:"Install"}],fields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description",sortable:!0}],loading:!0},local:{apps:[],status:"",fields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description",sortable:!0},{key:"actions",label:"Actions"},{key:"remove",label:"Remove"},{key:"manage",label:"Manage"}],perPage:10,pageOptions:[10,25,50,100],sortBy:"",sortDesc:!1,sortDirection:"asc",connectedPeers:[],filter:"",filterOn:[],currentPage:1,totalRows:1}},tier:"",appLocations:[],appLocationFields:[{key:"ip",label:"IP Address",sortable:!0},{key:"visit",label:""}],appLocationOptions:{perPage:10,pageOptions:[10,25,50,100],currentPage:1,totalRows:1},callResponse:{status:"",data:""}}},computed:{...(0,$.rn)("flux",["config","userconfig","privilege"]),isApplicationInstalledLocally(){if(this.tableconfig.installed.apps){const t=this.tableconfig.installed.apps.find((t=>t.name===this.managedApplication));return!!t}return!1}},mounted(){this.getFluxNodeStatus(),this.appsGetAvailableApps(),this.appsGetListRunningApps(),this.appsGetInstalledApps(),this.appsGetListGlobalApps();const{hostname:t,port:a}=window.location,e=/[A-Za-z]/g;if(!t.match(e)&&("string"===typeof t&&this.$store.commit("flux/setUserIp",t),+a>16100)){const t=+a+1;this.$store.commit("flux/setFluxPort",t)}this.getDaemonBlockCount()},methods:{minutesToString(t){let a=60*t;const e={day:86400,hour:3600,minute:60,second:1},i=[];for(const s in e){const t=Math.floor(a/e[s]);1===t&&i.push(` ${t} ${s}`),t>=2&&i.push(` ${t} ${s}s`),a%=e[s]}return i},labelForExpire(t,a){if(-1===this.daemonBlockCount)return"Not possible to calculate expiration";const e=t||22e3,i=a+e-this.daemonBlockCount;if(i<1)return"Application Expired";const s=2*i,n=this.minutesToString(s);return`${n[0]}, ${n[1]}, ${n[2]}`},async appsGetListGlobalApps(){this.tableconfig.globalAvailable.loading=!0;const t=await L.Z.globalAppSpecifications();console.log(t);const a=t.data.data.sort(((t,a)=>t.name.toLowerCase()>a.name.toLowerCase()?1:-1));this.tableconfig.globalAvailable.apps=a,this.tableconfig.globalAvailable.loading=!1,this.tableconfig.globalAvailable.status=t.data.status},async getDaemonBlockCount(){const t=await D.Z.getBlockCount();"success"===t.data.status&&(this.daemonBlockCount=t.data.data)},async getFluxNodeStatus(){const t=await D.Z.getFluxNodeStatus();"success"===t.data.status&&(this.tier=t.data.data.tier)},async appsGetInstalledApps(){this.tableconfig.installed.loading=!0;const t=await L.Z.installedApps();console.log(t),this.tableconfig.installed.status=t.data.status,this.tableconfig.installed.apps=t.data.data,this.tableconfig.installed.loading=!1;const a=localStorage.getItem("zelidauth"),e=B.parse(a);this.tableconfig.local.apps=this.tableconfig.installed.apps.filter((t=>t.owner===e.zelid)),this.tableconfig.local.totalRows=this.tableconfig.local.apps.length},async appsGetListRunningApps(t=0){this.tableconfig.running.loading=!0;const a=this;setTimeout((async()=>{const t=await L.Z.listRunningApps(),e=t.data.data,i=[],s=[];e.forEach((t=>{const a=t.Names[0].startsWith("/flux")?t.Names[0].slice(5):t.Names[0].slice(4);a.includes("_")?i.push(a.split("_")[1]):i.push(a)}));const n=[...new Set(i)];for(const a of n){const t=await L.Z.getAppSpecifics(a);"success"===t.data.status&&s.push(t.data.data)}console.log(t),a.tableconfig.running.status=t.data.status,a.tableconfig.running.apps=s,a.tableconfig.running.loading=!1}),t)},async appsGetAvailableApps(){this.tableconfig.available.loading=!0;const t=await L.Z.availableApps();console.log(t),this.tableconfig.available.status=t.data.status,this.tableconfig.available.apps=t.data.data,this.tableconfig.available.loading=!1},openApp(t,a,e){if(e&&a){console.log(t,a,e);const i=`http://${a}:${e}`;this.openSite(i)}else{const a=this.installedApp(t),e=R.get("backendURL")||`http://${this.userconfig.externalip}:${this.config.apiPort}`,i=e.split(":")[1].split("//")[1],s=a.port||a.ports?a?.ports[0]:a?.compose[0].ports[0];if(console.log(t,i,s),""===s)return void this.showToast("danger","Unable to open App :(, App does not have a port.");const n=`http://${i}:${s}`;this.openSite(n)}},getProperPort(t){if(t.port)return t.port;if(t.ports)return t.ports[0];for(let a=0;aa.name===t))},openSite(t){const a=window.open(t,"_blank");a.focus()},async stopApp(t){this.output="",this.showToast("warning",`Stopping ${this.getAppName(t)}`);const a=localStorage.getItem("zelidauth"),e=await L.Z.stopApp(a,t);"success"===e.data.status?this.showToast("success",e.data.data.message||e.data.data):this.showToast("danger",e.data.data.message||e.data.data),this.appsGetListRunningApps(8e3),console.log(e)},async startApp(t){this.output="",this.showToast("warning",`Starting ${this.getAppName(t)}`);const a=localStorage.getItem("zelidauth"),e=await L.Z.startApp(a,t);"success"===e.data.status?this.showToast("success",e.data.data.message||e.data.data):this.showToast("danger",e.data.data.message||e.data.data),this.appsGetListRunningApps(15e3),console.log(e)},async restartApp(t){this.output="",this.showToast("warning",`Restarting ${this.getAppName(t)}`);const a=localStorage.getItem("zelidauth"),e=await L.Z.restartApp(a,t);"success"===e.data.status?this.showToast("success",e.data.data.message||e.data.data):this.showToast("danger",e.data.data.message||e.data.data),this.appsGetListRunningApps(15e3),console.log(e)},async pauseApp(t){this.output="",this.showToast("warning",`Pausing ${this.getAppName(t)}`);const a=localStorage.getItem("zelidauth"),e=await L.Z.pauseApp(a,t);"success"===e.data.status?this.showToast("success",e.data.data.message||e.data.data):this.showToast("danger",e.data.data.message||e.data.data),console.log(e)},async unpauseApp(t){this.output="",this.showToast("warning",`Unpausing ${this.getAppName(t)}`);const a=localStorage.getItem("zelidauth"),e=await L.Z.unpauseApp(a,t);"success"===e.data.status?this.showToast("success",e.data.data.message||e.data.data):this.showToast("danger",e.data.data.message||e.data.data),console.log(e)},redeployAppSoft(t){this.redeployApp(t,!1)},redeployAppHard(t){this.redeployApp(t,!0)},async redeployApp(t,a){const e=this;this.output="",this.showToast("warning",`Redeploying ${this.getAppName(t)}`);const i=localStorage.getItem("zelidauth"),s={headers:{zelidauth:i},onDownloadProgress(t){console.log(t.target.response),e.output=JSON.parse(`[${t.target.response.replace(/}{/g,"},{")}]`)}},n=await L.Z.justAPI().get(`/apps/redeploy/${t}/${a}`,s);"error"===n.data.status?this.showToast("danger",n.data.data.message||n.data.data):(this.output=JSON.parse(`[${n.data.replace(/}{/g,"},{")}]`),"error"===this.output[this.output.length-1].status?this.showToast("danger",this.output[this.output.length-1].status):"warning"===this.output[this.output.length-1].status?this.showToast("warning",this.output[this.output.length-1].status):this.showToast("success",this.output[this.output.length-1].status))},async removeApp(t){const a=this.getAppName(t),e=this;this.output="",this.showToast("warning",`Removing ${a}`);const i=localStorage.getItem("zelidauth"),s={headers:{zelidauth:i},onDownloadProgress(t){console.log(t.target.response),e.output=JSON.parse(`[${t.target.response.replace(/}{/g,"},{")}]`)}},n=await L.Z.justAPI().get(`/apps/appremove/${t}`,s);"error"===n.data.status?this.showToast("danger",n.data.data.message||n.data.data):(this.output=JSON.parse(`[${n.data.replace(/}{/g,"},{")}]`),"error"===this.output[this.output.length-1].status?this.showToast("danger",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data):"warning"===this.output[this.output.length-1].status?this.showToast("warning",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data):this.showToast("success",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data),setTimeout((()=>{this.appsGetInstalledApps(),this.appsGetListRunningApps(),e.managedApplication=""}),5e3))},async installAppLocally(t){const a=this.getAppName(t),e=this;this.output=[],this.downloadOutput={},this.downloading=!0,this.showToast("warning",`Installing ${a}`);const i=localStorage.getItem("zelidauth"),s={headers:{zelidauth:i},onDownloadProgress(t){console.log(t.target.response),e.output=JSON.parse(`[${t.target.response.replace(/}{/g,"},{")}]`)}},n=await L.Z.justAPI().get(`/apps/installapplocally/${t}`,s);if("error"===n.data.status)this.showToast("danger",n.data.data.message||n.data.data);else{console.log(n),this.output=JSON.parse(`[${n.data.replace(/}{/g,"},{")}]`),console.log(this.output);for(let t=0;t{this.$set(t,"_showDetails",!1)})),this.$nextTick((()=>{t.toggleDetails(),this.loadLocations(t)})))},async loadLocations(t){console.log(t),this.appLocations=[];const a=await L.Z.getAppLocation(t.item.name).catch((t=>{this.showToast("danger",t.message||t)}));if(console.log(a),"success"===a.data.status){const t=a.data.data;this.appLocations=t,this.appLocationOptions.totalRows=this.appLocations.length}},openAppManagement(t){const a=this.getAppName(t);this.managedApplication=a},clearManagedApplication(){this.managedApplication="",this.appsGetInstalledApps(),this.appsGetListRunningApps()},onFilteredLocal(t){this.tableconfig.local.totalRows=t.length,this.tableconfig.local.currentPage=1},stringOutput(){let t="";return this.output.forEach((a=>{"success"===a.status?t+=`${a.data.message||a.data}\r\n`:"Downloading"===a.status?this.downloadOutput[a.id]={id:a.id,detail:a.progressDetail,variant:"danger"}:"Verifying Checksum"===a.status?this.downloadOutput[a.id]={id:a.id,detail:{current:1,total:1},variant:"warning"}:"Download complete"===a.status?this.downloadOutput[a.id]={id:a.id,detail:{current:1,total:1},variant:"info"}:"Extracting"===a.status?this.downloadOutput[a.id]={id:a.id,detail:a.progressDetail,variant:"primary"}:"Pull complete"===a.status?this.downloadOutput[a.id]={id:a.id,detail:{current:1,total:1},variant:"success"}:t+=`${a.status}\r\n`})),t},showToast(t,a,e="InfoIcon"){this.$toast({component:P.Z,props:{title:a,icon:e,variant:t}})},constructAutomaticDomains(t,a="",e,i=0){const s=e.toLowerCase(),n=a.toLowerCase();if(!n){const a=[];0===i&&a.push(`${s}.app.runonflux.io`);for(let e=0;et.code===a))||{name:"ALL"};return`Continent: ${e.name||"Unkown"}`}if(t.startsWith("b")){const a=t.slice(1),e=N.countries.find((t=>t.code===a))||{name:"ALL"};return`Country: ${e.name||"Unkown"}`}if(t.startsWith("ac")){const a=t.slice(2),e=a.split("_"),i=e[0],s=e[1],n=e[2],o=N.continents.find((t=>t.code===i))||{name:"ALL"},r=N.countries.find((t=>t.code===s))||{name:"ALL"};let l=`Allowed location: Continent: ${o.name}`;return s&&(l+=`, Country: ${r.name}`),n&&(l+=`, Region: ${n}`),l}if(t.startsWith("a!c")){const a=t.slice(3),e=a.split("_"),i=e[0],s=e[1],n=e[2],o=N.continents.find((t=>t.code===i))||{name:"ALL"},r=N.countries.find((t=>t.code===s))||{name:"ALL"};let l=`Forbidden location: Continent: ${o.name}`;return s&&(l+=`, Country: ${r.name}`),n&&(l+=`, Region: ${n}`),l}return"All locations allowed"}}},x=M;var G=e(1001),I=(0,G.Z)(x,i,s,!1,null,null,null);const T=I.exports}}]); \ No newline at end of file +"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[2072],{39217:(t,a,e)=>{e.r(a),e.d(a,{default:()=>T});var i=function(){var t=this,a=t._self._c;return a("div",[a("div",{class:t.managedApplication?"d-none":""},[a("b-tabs",{on:{"activate-tab":function(a){t.output="",t.downloading=!1}}},[a("b-tab",{attrs:{active:"",title:"Running"}},[a("b-overlay",{attrs:{show:t.tableconfig.running.loading,variant:"transparent",blur:"5px"}},[a("b-card",[a("b-row",[a("b-col",{attrs:{cols:"12"}},[a("b-table",{staticClass:"apps-running-table",attrs:{striped:"",hover:"",responsive:"",items:t.tableconfig.running.apps,fields:t.isLoggedIn()?t.tableconfig.running.loggedInFields:t.tableconfig.running.fields,"show-empty":"","empty-text":"No Flux Apps running"},scopedSlots:t._u([{key:"cell(show_details)",fn:function(e){return[a("a",{on:{click:function(a){return t.showLocations(e,t.tableconfig.installed.apps)}}},[e.detailsShowing?t._e():a("v-icon",{attrs:{name:"chevron-down"}}),e.detailsShowing?a("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(e){return[a("b-card",{staticClass:"mx-2"},[a("list-entry",{attrs:{title:"Description",data:e.item.description}}),a("list-entry",{attrs:{title:"Owner",data:e.item.owner}}),a("list-entry",{attrs:{title:"Hash",data:e.item.hash}}),e.item.version>=5?a("div",[e.item.geolocation.length?a("div",t._l(e.item.geolocation,(function(e){return a("div",{key:e},[a("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(e)}})],1)})),0):a("div",[a("list-entry",{attrs:{title:"Continent",data:"All"}}),a("list-entry",{attrs:{title:"Country",data:"All"}}),a("list-entry",{attrs:{title:"Region",data:"All"}})],1)]):t._e(),e.item.instances?a("list-entry",{attrs:{title:"Instances",data:e.item.instances.toString()}}):t._e(),a("list-entry",{attrs:{title:"Expires in",data:t.labelForExpire(e.item.expire,e.item.height)}}),a("list-entry",{attrs:{title:"Enterprise Nodes",data:e.item.nodes?e.item.nodes.toString():"Not scoped"}}),a("list-entry",{attrs:{title:"Static IP",data:e.item.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}}),a("h4",[t._v("Composition")]),e.item.version<=3?a("div",[a("b-card",[a("list-entry",{attrs:{title:"Repository",data:e.item.repotag}}),a("list-entry",{attrs:{title:"Custom Domains",data:e.item.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(e.item.ports,void 0,e.item.name).toString()}}),a("list-entry",{attrs:{title:"Ports",data:e.item.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:e.item.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:e.item.containerData}}),a("list-entry",{attrs:{title:"Environment Parameters",data:e.item.enviromentParameters.length>0?e.item.enviromentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:e.item.commands.length>0?e.item.commands.toString():"none"}}),e.item.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${e.item.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${e.item.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${e.item.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${e.item.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${e.item.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${e.item.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${e.item.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${e.item.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${e.item.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${e.item.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${e.item.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${e.item.hdd} GB`}})],1)],1)],1):a("div",t._l(e.item.compose,(function(i,s){return a("b-card",{key:s},[a("b-card-title",[t._v(" Component "+t._s(i.name)+" ")]),a("list-entry",{attrs:{title:"Name",data:i.name}}),a("list-entry",{attrs:{title:"Description",data:i.description}}),a("list-entry",{attrs:{title:"Repository",data:i.repotag}}),a("list-entry",{attrs:{title:"Repository Authentication",data:i.repoauth?"Content Encrypted":"Public"}}),a("list-entry",{attrs:{title:"Custom Domains",data:i.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(i.ports,i.name,e.item.name,s).toString()}}),a("list-entry",{attrs:{title:"Ports",data:i.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:i.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:i.containerData}}),a("list-entry",{attrs:{title:"Environment Parameters",data:i.environmentParameters.length>0?i.environmentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:i.commands.length>0?i.commands.toString():"none"}}),a("list-entry",{attrs:{title:"Secret Environment Parameters",data:i.secrets?"Content Encrypted":"none"}}),i.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${i.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${i.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${i.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${i.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${i.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${i.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${i.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${i.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${i.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${i.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${i.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${i.hdd} GB`}})],1)],1)})),1)],1)]}},{key:"cell(Name)",fn:function(a){return[t._v(" "+t._s(a.item.name)+" ")]}},{key:"cell(Description)",fn:function(a){return[t._v(" "+t._s(a.item.description)+" ")]}},{key:"cell(visit)",fn:function(e){return[a("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"danger"},on:{click:function(a){return t.openApp(e.item.name)}}},[t._v(" Visit ")])]}},{key:"cell(actions)",fn:function(e){return[a("b-button",{staticClass:"mr-0",attrs:{id:`stop-running-app-${e.item.name}`,size:"sm",variant:"danger"}},[t._v(" Stop ")]),a("confirm-dialog",{attrs:{target:`stop-running-app-${e.item.name}`,"confirm-button":"Stop App"},on:{confirm:function(a){return t.stopApp(e.item.name)}}})]}}])})],1)],1)],1)],1)],1),a("b-tab",{attrs:{title:"Installed"}},[a("b-overlay",{attrs:{show:t.tableconfig.installed.loading,variant:"transparent",blur:"5px"}},[a("b-card",[a("b-row",[a("b-col",{attrs:{cols:"12"}},[a("b-table",{staticClass:"apps-installed-table",attrs:{striped:"",hover:"",responsive:"",items:t.tableconfig.installed.apps,fields:t.isLoggedIn()?t.tableconfig.installed.loggedInFields:t.tableconfig.installed.fields,"show-empty":"","empty-text":"No Flux Apps installed"},scopedSlots:t._u([{key:"cell(show_details)",fn:function(e){return[a("a",{on:{click:function(a){return t.showLocations(e,t.tableconfig.installed.apps)}}},[e.detailsShowing?t._e():a("v-icon",{attrs:{name:"chevron-down"}}),e.detailsShowing?a("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(e){return[a("b-card",{staticClass:"mx-2"},[e.item.description?a("list-entry",{attrs:{title:"Description",data:e.item.description}}):t._e(),e.item.owner?a("list-entry",{attrs:{title:"Owner",data:e.item.owner}}):t._e(),e.item.hash?a("list-entry",{attrs:{title:"Hash",data:e.item.hash}}):t._e(),e.item.version>=5?a("div",[e.item.geolocation.length?a("div",t._l(e.item.geolocation,(function(e){return a("div",{key:e},[a("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(e)}})],1)})),0):a("div",[a("list-entry",{attrs:{title:"Continent",data:"All"}}),a("list-entry",{attrs:{title:"Country",data:"All"}}),a("list-entry",{attrs:{title:"Region",data:"All"}})],1)]):t._e(),e.item.instances?a("list-entry",{attrs:{title:"Instances",data:e.item.instances.toString()}}):t._e(),a("list-entry",{attrs:{title:"Expires in",data:t.labelForExpire(e.item.expire,e.item.height)}}),a("list-entry",{attrs:{title:"Enterprise Nodes",data:e.item.nodes?e.item.nodes.toString():"Not scoped"}}),a("list-entry",{attrs:{title:"Static IP",data:e.item.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}}),a("h4",[t._v("Composition")]),e.item.version<=3?a("div",[a("b-card",[a("list-entry",{attrs:{title:"Repository",data:e.item.repotag}}),a("list-entry",{attrs:{title:"Custom Domains",data:e.item.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(e.item.ports,void 0,e.item.name).toString()}}),a("list-entry",{attrs:{title:"Ports",data:e.item.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:e.item.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:e.item.containerData}}),a("list-entry",{attrs:{title:"Environment Parameters",data:e.item.enviromentParameters.length>0?e.item.enviromentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:e.item.commands.length>0?e.item.commands.toString():"none"}}),a("list-entry",{attrs:{title:"Secret Environment Parameters",data:e.item.secrets||"none"}}),e.item.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${e.item.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${e.item.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${e.item.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${e.item.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${e.item.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${e.item.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${e.item.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${e.item.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${e.item.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${e.item.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${e.item.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${e.item.hdd} GB`}})],1)],1)],1):a("div",t._l(e.item.compose,(function(i,s){return a("b-card",{key:s},[a("b-card-title",[t._v(" Component "+t._s(i.name)+" ")]),a("list-entry",{attrs:{title:"Name",data:i.name}}),a("list-entry",{attrs:{title:"Description",data:i.description}}),a("list-entry",{attrs:{title:"Repository",data:i.repotag}}),a("list-entry",{attrs:{title:"Repository Authentication",data:i.repoauth?"Content Encrypted":"Public"}}),a("list-entry",{attrs:{title:"Custom Domains",data:i.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(i.ports,i.name,e.item.name,s).toString()}}),a("list-entry",{attrs:{title:"Ports",data:i.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:i.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:i.containerData}}),a("list-entry",{attrs:{title:"Environment Parameters",data:i.environmentParameters.length>0?i.environmentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:i.commands.length>0?i.commands.toString():"none"}}),a("list-entry",{attrs:{title:"Secret Environment Parameters",data:i.secrets?"Content Encrypted":"none"}}),i.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${i.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${i.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${i.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${i.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${i.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${i.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${i.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${i.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${i.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${i.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${i.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${i.hdd} GB`}})],1)],1)})),1),a("h4",[t._v("Locations")]),a("b-row",[a("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[a("b-form-group",{staticClass:"mb-0"},[a("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),a("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.appLocationOptions.pageOptions},model:{value:t.appLocationOptions.perPage,callback:function(a){t.$set(t.appLocationOptions,"perPage",a)},expression:"appLocationOptions.perPage"}})],1)],1),a("b-col",{staticClass:"my-1",attrs:{md:"8"}},[a("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[a("b-input-group",{attrs:{size:"sm"}},[a("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.appLocationOptions.filter,callback:function(a){t.$set(t.appLocationOptions,"filter",a)},expression:"appLocationOptions.filter"}}),a("b-input-group-append",[a("b-button",{attrs:{disabled:!t.appLocationOptions.filter},on:{click:function(a){t.appLocationOptions.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),a("b-col",{attrs:{cols:"12"}},[a("b-table",{staticClass:"locations-table",attrs:{striped:"",hover:"","per-page":t.appLocationOptions.perPage,"current-page":t.appLocationOptions.currentPage,items:t.appLocations,fields:t.appLocationFields},scopedSlots:t._u([{key:"cell(visit)",fn:function(i){return[a("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"danger"},on:{click:function(a){t.openApp(e.item.name,i.item.ip.split(":")[0],t.getProperPort(e.item))}}},[t._v(" Visit ")])]}}],null,!0)})],1),a("b-col",{attrs:{cols:"12"}},[a("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.appLocationOptions.totalRows,"per-page":t.appLocationOptions.perPage,align:"center",size:"sm"},model:{value:t.appLocationOptions.currentPage,callback:function(a){t.$set(t.appLocationOptions,"currentPage",a)},expression:"appLocationOptions.currentPage"}}),a("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.appLocationOptions.totalRows))])],1)],1)],1)]}},{key:"cell(Name)",fn:function(a){return[t._v(" "+t._s(t.getAppName(a.item.name))+" ")]}},{key:"cell(Description)",fn:function(a){return[t._v(" "+t._s(a.item.description)+" ")]}},{key:"cell(actions)",fn:function(e){return[a("b-button",{staticClass:"w-100 mr-1",staticStyle:{"margin-bottom":"2px"},attrs:{id:`start-installed-app-${e.item.name}`,size:"sm",variant:"danger"}},[t._v(" Start ")]),a("confirm-dialog",{attrs:{target:`start-installed-app-${e.item.name}`,"confirm-button":"Start App"},on:{confirm:function(a){return t.startApp(e.item.name)}}}),a("b-button",{staticClass:"w-100 mr-1",attrs:{id:`restart-installed-app-${e.item.name}`,size:"sm",variant:"danger"}},[t._v(" Restart ")]),a("confirm-dialog",{attrs:{target:`restart-installed-app-${e.item.name}`,"confirm-button":"Restart App"},on:{confirm:function(a){return t.restartApp(e.item.name)}}})]}},{key:"cell(remove)",fn:function(e){return[a("b-button",{staticClass:"mr-0",attrs:{id:`remove-installed-app-${e.item.name}`,size:"sm",variant:"danger"}},[t._v(" Remove ")]),a("confirm-dialog",{attrs:{target:`remove-installed-app-${e.item.name}`,"confirm-button":"Remove App"},on:{confirm:function(a){return t.removeApp(e.item.name)}}})]}},{key:"cell(manage)",fn:function(e){return[a("b-button",{staticClass:"mr-0",attrs:{id:`manage-installed-app-${e.item.name}`,size:"sm",variant:"danger"}},[t._v(" Manage ")]),a("confirm-dialog",{attrs:{target:`manage-installed-app-${e.item.name}`,"confirm-button":"Manage App"},on:{confirm:function(a){return t.openAppManagement(e.item.name)}}})]}}])})],1)],1)],1)],1)],1),a("b-tab",{attrs:{title:"Available"}},[a("b-overlay",{attrs:{show:t.tableconfig.available.loading,variant:"transparent",blur:"5px"}},[a("b-card",[t._v(" Prebuilt applications to install "),a("b-row",[a("b-col",{attrs:{cols:"12"}},[a("b-table",{staticClass:"apps-available-table",attrs:{striped:"",hover:"",responsive:"",items:t.tableconfig.available.apps,fields:t.isLoggedIn()?t.tableconfig.available.loggedInFields:t.tableconfig.available.fields,"show-empty":"","empty-text":"No Flux Apps available"},scopedSlots:t._u([{key:"cell(show_details)",fn:function(e){return[a("a",{on:{click:function(a){return t.showLocations(e,t.tableconfig.available.apps)}}},[e.detailsShowing?t._e():a("v-icon",{attrs:{name:"chevron-down"}}),e.detailsShowing?a("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(e){return[a("b-card",{staticClass:"mx-2"},[a("list-entry",{attrs:{title:"Description",data:e.item.description}}),a("list-entry",{attrs:{title:"Owner",data:e.item.owner}}),a("list-entry",{attrs:{title:"Hash",data:e.item.hash}}),e.item.version>=5?a("div",[a("list-entry",{attrs:{title:"Contacts",data:JSON.stringify(e.item.contacts)}}),e.item.geolocation.length?a("div",t._l(e.item.geolocation,(function(e){return a("div",{key:e},[a("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(e)}})],1)})),0):a("div",[a("list-entry",{attrs:{title:"Continent",data:"All"}}),a("list-entry",{attrs:{title:"Country",data:"All"}}),a("list-entry",{attrs:{title:"Region",data:"All"}})],1)],1):t._e(),e.item.instances?a("list-entry",{attrs:{title:"Instances",data:e.item.instances.toString()}}):t._e(),a("list-entry",{attrs:{title:"Expires in",data:t.labelForExpire(e.item.expire,e.item.height)}}),a("list-entry",{attrs:{title:"Enterprise Nodes",data:e.item.nodes?e.item.nodes.toString():"Not scoped"}}),a("list-entry",{attrs:{title:"Static IP",data:e.item.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}}),a("h4",[t._v("Composition")]),e.item.version<=3?a("div",[a("b-card",[a("list-entry",{attrs:{title:"Repository",data:e.item.repotag}}),a("list-entry",{attrs:{title:"Custom Domains",data:e.item.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(e.item.ports,void 0,e.item.name).toString()}}),a("list-entry",{attrs:{title:"Ports",data:e.item.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:e.item.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:e.item.containerData}}),a("list-entry",{attrs:{title:"Environment Parameters",data:e.item.enviromentParameters.length>0?e.item.enviromentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:e.item.commands.length>0?e.item.commands.toString():"none"}}),e.item.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${e.item.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${e.item.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${e.item.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${e.item.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${e.item.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${e.item.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${e.item.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${e.item.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${e.item.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${e.item.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${e.item.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${e.item.hdd} GB`}})],1)],1)],1):a("div",t._l(e.item.compose,(function(i,s){return a("b-card",{key:s},[a("b-card-title",[t._v(" Component "+t._s(i.name)+" ")]),a("list-entry",{attrs:{title:"Name",data:i.name}}),a("list-entry",{attrs:{title:"Description",data:i.description}}),a("list-entry",{attrs:{title:"Repository",data:i.repotag}}),a("list-entry",{attrs:{title:"Repository Authentication",data:i.repoauth?"Content Encrypted":"Public"}}),a("list-entry",{attrs:{title:"Custom Domains",data:i.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(i.ports,i.name,e.item.name,s).toString()}}),a("list-entry",{attrs:{title:"Ports",data:i.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:i.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:i.containerData}}),a("list-entry",{attrs:{title:"Environment Parameters",data:i.environmentParameters.length>0?i.environmentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:i.commands.length>0?i.commands.toString():"none"}}),a("list-entry",{attrs:{title:"Secret Environment Parameters",data:i.secrets?"Content Encrypted":"none"}}),i.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${i.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${i.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${i.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${i.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${i.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${i.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${i.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${i.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${i.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${i.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${i.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${i.hdd} GB`}})],1)],1)})),1),a("h4",[t._v("Locations")]),a("b-row",[a("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[a("b-form-group",{staticClass:"mb-0"},[a("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),a("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.appLocationOptions.pageOptions},model:{value:t.appLocationOptions.perPage,callback:function(a){t.$set(t.appLocationOptions,"perPage",a)},expression:"appLocationOptions.perPage"}})],1)],1),a("b-col",{staticClass:"my-1",attrs:{md:"8"}},[a("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[a("b-input-group",{attrs:{size:"sm"}},[a("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.appLocationOptions.filter,callback:function(a){t.$set(t.appLocationOptions,"filter",a)},expression:"appLocationOptions.filter"}}),a("b-input-group-append",[a("b-button",{attrs:{disabled:!t.appLocationOptions.filter},on:{click:function(a){t.appLocationOptions.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),a("b-col",{attrs:{cols:"12"}},[a("b-table",{staticClass:"locations-table",attrs:{striped:"",hover:"","per-page":t.appLocationOptions.perPage,"current-page":t.appLocationOptions.currentPage,items:t.appLocations,fields:t.appLocationFields},scopedSlots:t._u([{key:"cell(visit)",fn:function(i){return[a("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"danger"},on:{click:function(a){t.openApp(e.item.name,i.item.ip.split(":")[0],t.getProperPort(e.item))}}},[t._v(" Visit ")])]}}],null,!0)})],1),a("b-col",{attrs:{cols:"12"}},[a("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.appLocationOptions.totalRows,"per-page":t.appLocationOptions.perPage,align:"center",size:"sm"},model:{value:t.appLocationOptions.currentPage,callback:function(a){t.$set(t.appLocationOptions,"currentPage",a)},expression:"appLocationOptions.currentPage"}}),a("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.appLocationOptions.totalRows))])],1)],1)],1)]}},{key:"cell(Name)",fn:function(a){return[t._v(" "+t._s(t.getAppName(a.item.name))+" ")]}},{key:"cell(Description)",fn:function(a){return[t._v(" "+t._s(a.item.description)+" ")]}},{key:"cell(install)",fn:function(e){return[a("b-button",{staticClass:"mr-0",attrs:{id:`install-app-${e.item.name}`,size:"sm",variant:"danger"}},[t._v(" Install ")]),a("confirm-dialog",{attrs:{target:`install-app-${e.item.name}`,"confirm-button":"Install App"},on:{confirm:function(a){return t.installAppLocally(e.item.name)}}})]}}])})],1)],1)],1),a("b-card",[t._v(" Global Applications to install "),a("b-row",[a("b-col",{attrs:{cols:"12"}},[a("b-table",{staticClass:"apps-globalAvailable-table",attrs:{striped:"",hover:"",responsive:"",items:t.tableconfig.globalAvailable.apps,fields:t.isLoggedIn()?t.tableconfig.globalAvailable.loggedInFields:t.tableconfig.globalAvailable.fields,"show-empty":"","empty-text":"No Flux Apps Globally Available"},scopedSlots:t._u([{key:"cell(show_details)",fn:function(e){return[a("a",{on:{click:function(a){return t.showLocations(e,t.tableconfig.globalAvailable.apps)}}},[e.detailsShowing?t._e():a("v-icon",{attrs:{name:"chevron-down"}}),e.detailsShowing?a("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(e){return[a("b-card",{staticClass:"mx-2"},[a("list-entry",{attrs:{title:"Description",data:e.item.description}}),a("list-entry",{attrs:{title:"Owner",data:e.item.owner}}),a("list-entry",{attrs:{title:"Hash",data:e.item.hash}}),e.item.version>=5?a("div",[a("list-entry",{attrs:{title:"Contacts",data:JSON.stringify(e.item.contacts)}}),e.item.geolocation.length?a("div",t._l(e.item.geolocation,(function(e){return a("div",{key:e},[a("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(e)}})],1)})),0):a("div",[a("list-entry",{attrs:{title:"Continent",data:"All"}}),a("list-entry",{attrs:{title:"Country",data:"All"}}),a("list-entry",{attrs:{title:"Region",data:"All"}})],1)],1):t._e(),e.item.instances?a("list-entry",{attrs:{title:"Instances",data:e.item.instances.toString()}}):t._e(),a("list-entry",{attrs:{title:"Expires in",data:t.labelForExpire(e.item.expire,e.item.height)}}),a("list-entry",{attrs:{title:"Enterprise Nodes",data:e.item.nodes?e.item.nodes.toString():"Not scoped"}}),a("list-entry",{attrs:{title:"Static IP",data:e.item.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}}),a("h4",[t._v("Composition")]),e.item.version<=3?a("div",[a("b-card",[a("list-entry",{attrs:{title:"Repository",data:e.item.repotag}}),a("list-entry",{attrs:{title:"Custom Domains",data:e.item.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(e.item.ports,void 0,e.item.name).toString()}}),a("list-entry",{attrs:{title:"Ports",data:e.item.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:e.item.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:e.item.containerData}}),a("list-entry",{attrs:{title:"Environment Parameters",data:e.item.enviromentParameters.length>0?e.item.enviromentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:e.item.commands.length>0?e.item.commands.toString():"none"}}),e.item.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${e.item.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${e.item.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${e.item.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${e.item.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${e.item.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${e.item.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${e.item.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${e.item.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${e.item.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${e.item.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${e.item.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${e.item.hdd} GB`}})],1)],1)],1):a("div",t._l(e.item.compose,(function(i,s){return a("b-card",{key:s},[a("b-card-title",[t._v(" Component "+t._s(i.name)+" ")]),a("list-entry",{attrs:{title:"Name",data:i.name}}),a("list-entry",{attrs:{title:"Description",data:i.description}}),a("list-entry",{attrs:{title:"Repository",data:i.repotag}}),a("list-entry",{attrs:{title:"Repository Authentication",data:i.repoauth?"Content Encrypted":"Public"}}),a("list-entry",{attrs:{title:"Custom Domains",data:i.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(i.ports,i.name,e.item.name,s).toString()}}),a("list-entry",{attrs:{title:"Ports",data:i.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:i.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:i.containerData}}),a("list-entry",{attrs:{title:"Environment Parameters",data:i.environmentParameters.length>0?i.environmentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:i.commands.length>0?i.commands.toString():"none"}}),a("list-entry",{attrs:{title:"Secret Environment Parameters",data:i.secrets?"Content Encrypted":"none"}}),i.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${i.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${i.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${i.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${i.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${i.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${i.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${i.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${i.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${i.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${i.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${i.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${i.hdd} GB`}})],1)],1)})),1),a("h4",[t._v("Locations")]),a("b-row",[a("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[a("b-form-group",{staticClass:"mb-0"},[a("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),a("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.appLocationOptions.pageOptions},model:{value:t.appLocationOptions.perPage,callback:function(a){t.$set(t.appLocationOptions,"perPage",a)},expression:"appLocationOptions.perPage"}})],1)],1),a("b-col",{staticClass:"my-1",attrs:{md:"8"}},[a("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[a("b-input-group",{attrs:{size:"sm"}},[a("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.appLocationOptions.filter,callback:function(a){t.$set(t.appLocationOptions,"filter",a)},expression:"appLocationOptions.filter"}}),a("b-input-group-append",[a("b-button",{attrs:{disabled:!t.appLocationOptions.filter},on:{click:function(a){t.appLocationOptions.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),a("b-col",{attrs:{cols:"12"}},[a("b-table",{staticClass:"locations-table",attrs:{striped:"",hover:"","per-page":t.appLocationOptions.perPage,"current-page":t.appLocationOptions.currentPage,items:t.appLocations,fields:t.appLocationFields},scopedSlots:t._u([{key:"cell(visit)",fn:function(i){return[a("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"danger"},on:{click:function(a){t.openApp(e.item.name,i.item.ip.split(":")[0],t.getProperPort(e.item))}}},[t._v(" Visit ")])]}}],null,!0)})],1),a("b-col",{attrs:{cols:"12"}},[a("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.appLocationOptions.totalRows,"per-page":t.appLocationOptions.perPage,align:"center",size:"sm"},model:{value:t.appLocationOptions.currentPage,callback:function(a){t.$set(t.appLocationOptions,"currentPage",a)},expression:"appLocationOptions.currentPage"}}),a("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.appLocationOptions.totalRows))])],1)],1)],1)]}},{key:"cell(Name)",fn:function(a){return[t._v(" "+t._s(t.getAppName(a.item.name))+" ")]}},{key:"cell(Description)",fn:function(a){return[t._v(" "+t._s(a.item.description)+" ")]}},{key:"cell(install)",fn:function(e){return[a("b-button",{staticClass:"mr-0",attrs:{id:`install-app-${e.item.name}`,size:"sm",variant:"danger"}},[t._v(" Install ")]),a("confirm-dialog",{attrs:{target:`install-app-${e.item.name}`,"confirm-button":"Install App"},on:{confirm:function(a){return t.installAppLocally(e.item.name)}}})]}}])})],1)],1)],1)],1)],1),a("b-tab",{attrs:{title:"My Local Apps"}},[a("b-overlay",{attrs:{show:t.tableconfig.installed.loading,variant:"transparent",blur:"5px"}},[a("b-card",[a("b-row",[a("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[a("b-form-group",{staticClass:"mb-0"},[a("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),a("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.tableconfig.local.pageOptions},model:{value:t.tableconfig.local.perPage,callback:function(a){t.$set(t.tableconfig.local,"perPage",a)},expression:"tableconfig.local.perPage"}})],1)],1),a("b-col",{staticClass:"my-1",attrs:{md:"8"}},[a("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[a("b-input-group",{attrs:{size:"sm"}},[a("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.tableconfig.local.filter,callback:function(a){t.$set(t.tableconfig.local,"filter",a)},expression:"tableconfig.local.filter"}}),a("b-input-group-append",[a("b-button",{attrs:{disabled:!t.tableconfig.local.filter},on:{click:function(a){t.tableconfig.local.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),a("b-col",{attrs:{cols:"12"}},[a("b-table",{staticClass:"apps-local-table",attrs:{striped:"",hover:"",responsive:"","per-page":t.tableconfig.local.perPage,"current-page":t.tableconfig.local.currentPage,items:t.tableconfig.local.apps,fields:t.tableconfig.local.fields,"sort-by":t.tableconfig.local.sortBy,"sort-desc":t.tableconfig.local.sortDesc,"sort-direction":t.tableconfig.local.sortDirection,filter:t.tableconfig.local.filter,"filter-included-fields":t.tableconfig.local.filterOn,"show-empty":"","empty-text":"No Local Apps owned"},on:{"update:sortBy":function(a){return t.$set(t.tableconfig.local,"sortBy",a)},"update:sort-by":function(a){return t.$set(t.tableconfig.local,"sortBy",a)},"update:sortDesc":function(a){return t.$set(t.tableconfig.local,"sortDesc",a)},"update:sort-desc":function(a){return t.$set(t.tableconfig.local,"sortDesc",a)},filtered:t.onFilteredLocal},scopedSlots:t._u([{key:"cell(show_details)",fn:function(e){return[a("a",{on:{click:function(a){return t.showLocations(e,t.tableconfig.local.apps)}}},[e.detailsShowing?t._e():a("v-icon",{attrs:{name:"chevron-down"}}),e.detailsShowing?a("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(e){return[a("b-card",{staticClass:"mx-2"},[e.item.description?a("list-entry",{attrs:{title:"Description",data:e.item.description}}):t._e(),e.item.owner?a("list-entry",{attrs:{title:"Owner",data:e.item.owner}}):t._e(),e.item.hash?a("list-entry",{attrs:{title:"Hash",data:e.item.hash}}):t._e(),e.item.version>=5?a("div",[a("list-entry",{attrs:{title:"Contacts",data:JSON.stringify(e.item.contacts)}}),e.item.geolocation.length?a("div",t._l(e.item.geolocation,(function(e){return a("div",{key:e},[a("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(e)}})],1)})),0):a("div",[a("list-entry",{attrs:{title:"Continent",data:"All"}}),a("list-entry",{attrs:{title:"Country",data:"All"}}),a("list-entry",{attrs:{title:"Region",data:"All"}})],1)],1):t._e(),e.item.instances?a("list-entry",{attrs:{title:"Instances",data:e.item.instances.toString()}}):t._e(),a("list-entry",{attrs:{title:"Expires in",data:t.labelForExpire(e.item.expire,e.item.height)}}),a("list-entry",{attrs:{title:"Enterprise Nodes",data:e.item.nodes?e.item.nodes.toString():"Not scoped"}}),a("list-entry",{attrs:{title:"Static IP",data:e.item.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}}),a("h4",[t._v("Composition")]),e.item.version<=3?a("div",[a("b-card",[a("list-entry",{attrs:{title:"Repository",data:e.item.repotag}}),a("list-entry",{attrs:{title:"Custom Domains",data:e.item.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(e.item.ports,void 0,e.item.name).toString()}}),a("list-entry",{attrs:{title:"Ports",data:e.item.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:e.item.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:e.item.containerData}}),a("list-entry",{attrs:{title:"Enviroment Parameters",data:e.item.enviromentParameters.length>0?e.item.enviromentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:e.item.commands.length>0?e.item.commands.toString():"none"}}),e.item.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${e.item.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${e.item.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${e.item.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${e.item.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${e.item.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${e.item.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${e.item.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${e.item.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${e.item.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${e.item.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${e.item.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${e.item.hdd} GB`}})],1)],1)],1):a("div",t._l(e.item.compose,(function(i,s){return a("b-card",{key:s},[a("b-card-title",[t._v(" Component "+t._s(i.name)+" ")]),a("list-entry",{attrs:{title:"Name",data:i.name}}),a("list-entry",{attrs:{title:"Description",data:i.description}}),a("list-entry",{attrs:{title:"Repository",data:i.repotag}}),a("list-entry",{attrs:{title:"Repository Authentication",data:i.repoauth?"Content Encrypted":"Public"}}),a("list-entry",{attrs:{title:"Custom Domains",data:i.domains.toString()||"none"}}),a("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(i.ports,i.name,e.item.name,s).toString()}}),a("list-entry",{attrs:{title:"Ports",data:i.ports.toString()}}),a("list-entry",{attrs:{title:"Container Ports",data:i.containerPorts.toString()}}),a("list-entry",{attrs:{title:"Container Data",data:i.containerData}}),a("list-entry",{attrs:{title:"Environment Parameters",data:i.environmentParameters.length>0?i.environmentParameters.toString():"none"}}),a("list-entry",{attrs:{title:"Commands",data:i.commands.length>0?i.commands.toString():"none"}}),a("list-entry",{attrs:{title:"Secret Environment Parameters",data:i.secrets?"Content Encrypted":"none"}}),i.tiered?a("div",[a("list-entry",{attrs:{title:"CPU Cumulus",data:`${i.cpubasic} vCore`}}),a("list-entry",{attrs:{title:"CPU Nimbus",data:`${i.cpusuper} vCore`}}),a("list-entry",{attrs:{title:"CPU Stratus",data:`${i.cpubamf} vCore`}}),a("list-entry",{attrs:{title:"RAM Cumulus",data:`${i.rambasic} MB`}}),a("list-entry",{attrs:{title:"RAM Nimbus",data:`${i.ramsuper} MB`}}),a("list-entry",{attrs:{title:"RAM Stratus",data:`${i.rambamf} MB`}}),a("list-entry",{attrs:{title:"SSD Cumulus",data:`${i.hddbasic} GB`}}),a("list-entry",{attrs:{title:"SSD Nimbus",data:`${i.hddsuper} GB`}}),a("list-entry",{attrs:{title:"SSD Stratus",data:`${i.hddbamf} GB`}})],1):a("div",[a("list-entry",{attrs:{title:"CPU",data:`${i.cpu} vCore`}}),a("list-entry",{attrs:{title:"RAM",data:`${i.ram} MB`}}),a("list-entry",{attrs:{title:"SSD",data:`${i.hdd} GB`}})],1)],1)})),1),a("h4",[t._v("Locations")]),a("b-row",[a("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[a("b-form-group",{staticClass:"mb-0"},[a("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),a("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.appLocationOptions.pageOptions},model:{value:t.appLocationOptions.perPage,callback:function(a){t.$set(t.appLocationOptions,"perPage",a)},expression:"appLocationOptions.perPage"}})],1)],1),a("b-col",{staticClass:"my-1",attrs:{md:"8"}},[a("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[a("b-input-group",{attrs:{size:"sm"}},[a("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.appLocationOptions.filter,callback:function(a){t.$set(t.appLocationOptions,"filter",a)},expression:"appLocationOptions.filter"}}),a("b-input-group-append",[a("b-button",{attrs:{disabled:!t.appLocationOptions.filter},on:{click:function(a){t.appLocationOptions.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),a("b-col",{attrs:{cols:"12"}},[a("b-table",{staticClass:"locations-table",attrs:{striped:"",hover:"","per-page":t.appLocationOptions.perPage,"current-page":t.appLocationOptions.currentPage,items:t.appLocations,fields:t.appLocationFields},scopedSlots:t._u([{key:"cell(visit)",fn:function(i){return[a("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"danger"},on:{click:function(a){t.openApp(e.item.name,i.item.ip.split(":")[0],t.getProperPort(e.item))}}},[t._v(" Visit ")])]}}],null,!0)})],1),a("b-col",{attrs:{cols:"12"}},[a("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.appLocationOptions.totalRows,"per-page":t.appLocationOptions.perPage,align:"center",size:"sm"},model:{value:t.appLocationOptions.currentPage,callback:function(a){t.$set(t.appLocationOptions,"currentPage",a)},expression:"appLocationOptions.currentPage"}}),a("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.appLocationOptions.totalRows))])],1)],1)],1)]}},{key:"cell(Name)",fn:function(a){return[t._v(" "+t._s(t.getAppName(a.item.name))+" ")]}},{key:"cell(Description)",fn:function(a){return[t._v(" "+t._s(a.item.description)+" ")]}},{key:"cell(actions)",fn:function(e){return[a("b-button",{staticClass:"w-100 mr-1",staticStyle:{"margin-bottom":"2px"},attrs:{id:`start-local-app-${e.item.name}`,size:"sm",variant:"danger"}},[t._v(" Start ")]),a("confirm-dialog",{attrs:{target:`start-local-app-${e.item.name}`,"confirm-button":"Start App"},on:{confirm:function(a){return t.startApp(e.item.name)}}}),a("b-button",{staticClass:"w-100 mr-1",attrs:{id:`restart-local-app-${e.item.name}`,size:"sm",variant:"danger"}},[t._v(" Restart ")]),a("confirm-dialog",{attrs:{target:`restart-local-app-${e.item.name}`,"confirm-button":"Restart App"},on:{confirm:function(a){return t.restartApp(e.item.name)}}})]}},{key:"cell(remove)",fn:function(e){return[a("b-button",{staticClass:"mr-0",attrs:{id:`remove-local-app-${e.item.name}`,size:"sm",variant:"danger"}},[t._v(" Remove ")]),a("confirm-dialog",{attrs:{target:`remove-local-app-${e.item.name}`,"confirm-button":"Remove App"},on:{confirm:function(a){return t.removeApp(e.item.name)}}})]}},{key:"cell(manage)",fn:function(e){return[a("b-button",{staticClass:"mr-0",attrs:{id:`manage-local-app-${e.item.name}`,size:"sm",variant:"danger"}},[t._v(" Manage ")]),a("confirm-dialog",{attrs:{target:`manage-local-app-${e.item.name}`,"confirm-button":"Manage App"},on:{confirm:function(a){return t.openAppManagement(e.item.name)}}})]}}])})],1),a("b-col",{attrs:{cols:"12"}},[a("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.tableconfig.local.totalRows,"per-page":t.tableconfig.local.perPage,align:"center",size:"sm"},model:{value:t.tableconfig.local.currentPage,callback:function(a){t.$set(t.tableconfig.local,"currentPage",a)},expression:"tableconfig.local.currentPage"}}),a("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.tableconfig.local.totalRows))])],1)],1)],1)],1)],1)],1),t.output.length>0?a("div",{staticClass:"actionCenter"},[a("br"),a("b-row",[a("b-col",{attrs:{cols:"9"}},[a("b-form-textarea",{staticClass:"mt-1",attrs:{plaintext:"","no-resize":"",rows:t.output.length+1,value:t.stringOutput()}})],1),t.downloading?a("b-col",{attrs:{cols:"3"}},[a("h3",[t._v("Downloads")]),t._l(t.downloadOutput,(function(e){return a("div",{key:e.id},[a("h4",[t._v(" "+t._s(e.id))]),a("b-progress",{attrs:{value:e.detail.current/e.detail.total*100,max:"100",striped:"",height:"1rem",variant:e.variant}}),a("br")],1)}))],2):t._e()],1)],1):t._e()],1),t.managedApplication?a("div",[a("management",{attrs:{"app-name":t.managedApplication,global:!1,"installed-apps":t.tableconfig.installed.apps},on:{back:function(a){return t.clearManagedApplication()}}})],1):t._e()])},s=[],n=(e(70560),e(58887)),o=e(51015),r=e(16521),l=e(50725),p=e(86855),c=e(49379),d=e(26253),m=e(15193),u=e(46709),g=e(22183),b=e(8051),h=e(4060),y=e(22418),f=e(333),v=e(66126),C=e(10962),S=e(45752),A=e(20266),$=e(20629),P=e(34547),w=e(87156),_=e(51748),k=e(86981),L=e(43672),D=e(27616);const R=e(58971),B=e(80129),O=e(63005),N=e(57306),M={components:{BTabs:n.M,BTab:o.L,BTable:r.h,BCol:l.l,BCard:p._,BCardTitle:c._,BRow:d.T,BButton:m.T,BFormGroup:u.x,BFormInput:g.e,BFormSelect:b.K,BInputGroup:h.w,BInputGroupAppend:y.B,BFormTextarea:f.y,BOverlay:v.X,BPagination:C.c,BProgress:S.D,ConfirmDialog:w.Z,ListEntry:_.Z,Management:k.Z,ToastificationContent:P.Z},directives:{Ripple:A.Z},data(){return{timeoptions:O,output:[],downloading:!1,downloadOutput:{},managedApplication:"",daemonBlockCount:-1,tableconfig:{running:{apps:[],status:"",loggedInFields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description",sortable:!0},{key:"visit",label:"Visit"},{key:"actions",label:"Actions"}],fields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description",sortable:!0},{key:"visit",label:"Visit"}],loading:!0},installed:{apps:[],status:"",loggedInFields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description",sortable:!0},{key:"actions",label:"Actions"},{key:"remove",label:"Remove"},{key:"manage",label:"Manage"}],fields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description",sortable:!0}],loading:!0},available:{apps:[],status:"",loggedInFields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description",sortable:!0},{key:"install",label:"Install"}],fields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description",sortable:!0}],loading:!0},globalAvailable:{apps:[],status:"",loggedInFields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description",sortable:!0},{key:"install",label:"Install"}],fields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description",sortable:!0}],loading:!0},local:{apps:[],status:"",fields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description",sortable:!0},{key:"actions",label:"Actions"},{key:"remove",label:"Remove"},{key:"manage",label:"Manage"}],perPage:10,pageOptions:[10,25,50,100],sortBy:"",sortDesc:!1,sortDirection:"asc",connectedPeers:[],filter:"",filterOn:[],currentPage:1,totalRows:1}},tier:"",appLocations:[],appLocationFields:[{key:"ip",label:"IP Address",sortable:!0},{key:"visit",label:""}],appLocationOptions:{perPage:10,pageOptions:[10,25,50,100],currentPage:1,totalRows:1},callResponse:{status:"",data:""}}},computed:{...(0,$.rn)("flux",["config","userconfig","privilege"]),isApplicationInstalledLocally(){if(this.tableconfig.installed.apps){const t=this.tableconfig.installed.apps.find((t=>t.name===this.managedApplication));return!!t}return!1}},mounted(){this.getFluxNodeStatus(),this.appsGetAvailableApps(),this.appsGetListRunningApps(),this.appsGetInstalledApps(),this.appsGetListGlobalApps();const{hostname:t,port:a}=window.location,e=/[A-Za-z]/g;if(!t.match(e)&&("string"===typeof t&&this.$store.commit("flux/setUserIp",t),+a>16100)){const t=+a+1;this.$store.commit("flux/setFluxPort",t)}this.getDaemonBlockCount()},methods:{minutesToString(t){let a=60*t;const e={day:86400,hour:3600,minute:60,second:1},i=[];for(const s in e){const t=Math.floor(a/e[s]);1===t&&i.push(` ${t} ${s}`),t>=2&&i.push(` ${t} ${s}s`),a%=e[s]}return i},labelForExpire(t,a){if(-1===this.daemonBlockCount)return"Not possible to calculate expiration";const e=t||22e3,i=a+e-this.daemonBlockCount;if(i<1)return"Application Expired";const s=2*i,n=this.minutesToString(s);return n.length>2?`${n[0]}, ${n[1]}, ${n[2]}`:n.length>1?`${n[0]}, ${n[1]}`:`${n[0]}`},async appsGetListGlobalApps(){this.tableconfig.globalAvailable.loading=!0;const t=await L.Z.globalAppSpecifications();console.log(t);const a=t.data.data.sort(((t,a)=>t.name.toLowerCase()>a.name.toLowerCase()?1:-1));this.tableconfig.globalAvailable.apps=a,this.tableconfig.globalAvailable.loading=!1,this.tableconfig.globalAvailable.status=t.data.status},async getDaemonBlockCount(){const t=await D.Z.getBlockCount();"success"===t.data.status&&(this.daemonBlockCount=t.data.data)},async getFluxNodeStatus(){const t=await D.Z.getFluxNodeStatus();"success"===t.data.status&&(this.tier=t.data.data.tier)},async appsGetInstalledApps(){this.tableconfig.installed.loading=!0;const t=await L.Z.installedApps();console.log(t),this.tableconfig.installed.status=t.data.status,this.tableconfig.installed.apps=t.data.data,this.tableconfig.installed.loading=!1;const a=localStorage.getItem("zelidauth"),e=B.parse(a);this.tableconfig.local.apps=this.tableconfig.installed.apps.filter((t=>t.owner===e.zelid)),this.tableconfig.local.totalRows=this.tableconfig.local.apps.length},async appsGetListRunningApps(t=0){this.tableconfig.running.loading=!0;const a=this;setTimeout((async()=>{const t=await L.Z.listRunningApps(),e=t.data.data,i=[],s=[];e.forEach((t=>{const a=t.Names[0].startsWith("/flux")?t.Names[0].slice(5):t.Names[0].slice(4);a.includes("_")?i.push(a.split("_")[1]):i.push(a)}));const n=[...new Set(i)];for(const a of n){const t=await L.Z.getAppSpecifics(a);"success"===t.data.status&&s.push(t.data.data)}console.log(t),a.tableconfig.running.status=t.data.status,a.tableconfig.running.apps=s,a.tableconfig.running.loading=!1}),t)},async appsGetAvailableApps(){this.tableconfig.available.loading=!0;const t=await L.Z.availableApps();console.log(t),this.tableconfig.available.status=t.data.status,this.tableconfig.available.apps=t.data.data,this.tableconfig.available.loading=!1},openApp(t,a,e){if(e&&a){console.log(t,a,e);const i=`http://${a}:${e}`;this.openSite(i)}else{const a=this.installedApp(t),e=R.get("backendURL")||`http://${this.userconfig.externalip}:${this.config.apiPort}`,i=e.split(":")[1].split("//")[1],s=a.port||a.ports?a?.ports[0]:a?.compose[0].ports[0];if(console.log(t,i,s),""===s)return void this.showToast("danger","Unable to open App :(, App does not have a port.");const n=`http://${i}:${s}`;this.openSite(n)}},getProperPort(t){if(t.port)return t.port;if(t.ports)return t.ports[0];for(let a=0;aa.name===t))},openSite(t){const a=window.open(t,"_blank");a.focus()},async stopApp(t){this.output="",this.showToast("warning",`Stopping ${this.getAppName(t)}`);const a=localStorage.getItem("zelidauth"),e=await L.Z.stopApp(a,t);"success"===e.data.status?this.showToast("success",e.data.data.message||e.data.data):this.showToast("danger",e.data.data.message||e.data.data),this.appsGetListRunningApps(8e3),console.log(e)},async startApp(t){this.output="",this.showToast("warning",`Starting ${this.getAppName(t)}`);const a=localStorage.getItem("zelidauth"),e=await L.Z.startApp(a,t);"success"===e.data.status?this.showToast("success",e.data.data.message||e.data.data):this.showToast("danger",e.data.data.message||e.data.data),this.appsGetListRunningApps(15e3),console.log(e)},async restartApp(t){this.output="",this.showToast("warning",`Restarting ${this.getAppName(t)}`);const a=localStorage.getItem("zelidauth"),e=await L.Z.restartApp(a,t);"success"===e.data.status?this.showToast("success",e.data.data.message||e.data.data):this.showToast("danger",e.data.data.message||e.data.data),this.appsGetListRunningApps(15e3),console.log(e)},async pauseApp(t){this.output="",this.showToast("warning",`Pausing ${this.getAppName(t)}`);const a=localStorage.getItem("zelidauth"),e=await L.Z.pauseApp(a,t);"success"===e.data.status?this.showToast("success",e.data.data.message||e.data.data):this.showToast("danger",e.data.data.message||e.data.data),console.log(e)},async unpauseApp(t){this.output="",this.showToast("warning",`Unpausing ${this.getAppName(t)}`);const a=localStorage.getItem("zelidauth"),e=await L.Z.unpauseApp(a,t);"success"===e.data.status?this.showToast("success",e.data.data.message||e.data.data):this.showToast("danger",e.data.data.message||e.data.data),console.log(e)},redeployAppSoft(t){this.redeployApp(t,!1)},redeployAppHard(t){this.redeployApp(t,!0)},async redeployApp(t,a){const e=this;this.output="",this.showToast("warning",`Redeploying ${this.getAppName(t)}`);const i=localStorage.getItem("zelidauth"),s={headers:{zelidauth:i},onDownloadProgress(t){console.log(t.target.response),e.output=JSON.parse(`[${t.target.response.replace(/}{/g,"},{")}]`)}},n=await L.Z.justAPI().get(`/apps/redeploy/${t}/${a}`,s);"error"===n.data.status?this.showToast("danger",n.data.data.message||n.data.data):(this.output=JSON.parse(`[${n.data.replace(/}{/g,"},{")}]`),"error"===this.output[this.output.length-1].status?this.showToast("danger",this.output[this.output.length-1].status):"warning"===this.output[this.output.length-1].status?this.showToast("warning",this.output[this.output.length-1].status):this.showToast("success",this.output[this.output.length-1].status))},async removeApp(t){const a=this.getAppName(t),e=this;this.output="",this.showToast("warning",`Removing ${a}`);const i=localStorage.getItem("zelidauth"),s={headers:{zelidauth:i},onDownloadProgress(t){console.log(t.target.response),e.output=JSON.parse(`[${t.target.response.replace(/}{/g,"},{")}]`)}},n=await L.Z.justAPI().get(`/apps/appremove/${t}`,s);"error"===n.data.status?this.showToast("danger",n.data.data.message||n.data.data):(this.output=JSON.parse(`[${n.data.replace(/}{/g,"},{")}]`),"error"===this.output[this.output.length-1].status?this.showToast("danger",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data):"warning"===this.output[this.output.length-1].status?this.showToast("warning",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data):this.showToast("success",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data),setTimeout((()=>{this.appsGetInstalledApps(),this.appsGetListRunningApps(),e.managedApplication=""}),5e3))},async installAppLocally(t){const a=this.getAppName(t),e=this;this.output=[],this.downloadOutput={},this.downloading=!0,this.showToast("warning",`Installing ${a}`);const i=localStorage.getItem("zelidauth"),s={headers:{zelidauth:i},onDownloadProgress(t){console.log(t.target.response),e.output=JSON.parse(`[${t.target.response.replace(/}{/g,"},{")}]`)}},n=await L.Z.justAPI().get(`/apps/installapplocally/${t}`,s);if("error"===n.data.status)this.showToast("danger",n.data.data.message||n.data.data);else{console.log(n),this.output=JSON.parse(`[${n.data.replace(/}{/g,"},{")}]`),console.log(this.output);for(let t=0;t{this.$set(t,"_showDetails",!1)})),this.$nextTick((()=>{t.toggleDetails(),this.loadLocations(t)})))},async loadLocations(t){console.log(t),this.appLocations=[];const a=await L.Z.getAppLocation(t.item.name).catch((t=>{this.showToast("danger",t.message||t)}));if(console.log(a),"success"===a.data.status){const t=a.data.data;this.appLocations=t,this.appLocationOptions.totalRows=this.appLocations.length}},openAppManagement(t){const a=this.getAppName(t);this.managedApplication=a},clearManagedApplication(){this.managedApplication="",this.appsGetInstalledApps(),this.appsGetListRunningApps()},onFilteredLocal(t){this.tableconfig.local.totalRows=t.length,this.tableconfig.local.currentPage=1},stringOutput(){let t="";return this.output.forEach((a=>{"success"===a.status?t+=`${a.data.message||a.data}\r\n`:"Downloading"===a.status?this.downloadOutput[a.id]={id:a.id,detail:a.progressDetail,variant:"danger"}:"Verifying Checksum"===a.status?this.downloadOutput[a.id]={id:a.id,detail:{current:1,total:1},variant:"warning"}:"Download complete"===a.status?this.downloadOutput[a.id]={id:a.id,detail:{current:1,total:1},variant:"info"}:"Extracting"===a.status?this.downloadOutput[a.id]={id:a.id,detail:a.progressDetail,variant:"primary"}:"Pull complete"===a.status?this.downloadOutput[a.id]={id:a.id,detail:{current:1,total:1},variant:"success"}:t+=`${a.status}\r\n`})),t},showToast(t,a,e="InfoIcon"){this.$toast({component:P.Z,props:{title:a,icon:e,variant:t}})},constructAutomaticDomains(t,a="",e,i=0){const s=e.toLowerCase(),n=a.toLowerCase();if(!n){const a=[];0===i&&a.push(`${s}.app.runonflux.io`);for(let e=0;et.code===a))||{name:"ALL"};return`Continent: ${e.name||"Unkown"}`}if(t.startsWith("b")){const a=t.slice(1),e=N.countries.find((t=>t.code===a))||{name:"ALL"};return`Country: ${e.name||"Unkown"}`}if(t.startsWith("ac")){const a=t.slice(2),e=a.split("_"),i=e[0],s=e[1],n=e[2],o=N.continents.find((t=>t.code===i))||{name:"ALL"},r=N.countries.find((t=>t.code===s))||{name:"ALL"};let l=`Allowed location: Continent: ${o.name}`;return s&&(l+=`, Country: ${r.name}`),n&&(l+=`, Region: ${n}`),l}if(t.startsWith("a!c")){const a=t.slice(3),e=a.split("_"),i=e[0],s=e[1],n=e[2],o=N.continents.find((t=>t.code===i))||{name:"ALL"},r=N.countries.find((t=>t.code===s))||{name:"ALL"};let l=`Forbidden location: Continent: ${o.name}`;return s&&(l+=`, Country: ${r.name}`),n&&(l+=`, Region: ${n}`),l}return"All locations allowed"}}},x=M;var G=e(1001),I=(0,G.Z)(x,i,s,!1,null,null,null);const T=I.exports}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/2252.js b/HomeUI/dist/js/2252.js index d64e9a21b..f01082317 100644 --- a/HomeUI/dist/js/2252.js +++ b/HomeUI/dist/js/2252.js @@ -1 +1 @@ -(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[2252],{87131:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>Jt});var s=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{height:"inherit"}},[e("div",{staticClass:"body-content-overlay",class:{show:t.showDetailSidebar},on:{click:function(e){t.showDetailSidebar=!1}}}),e("div",{staticClass:"marketplace-app-list"},[e("div",{staticClass:"app-fixed-search d-flex align-items-center"},[e("div",{staticClass:"sidebar-toggle d-block d-lg-none ml-1"},[e("feather-icon",{staticClass:"cursor-pointer",attrs:{icon:"MenuIcon",size:"21"},on:{click:function(e){t.showDetailSidebar=!0}}})],1),e("div",{staticClass:"d-flex align-content-center justify-content-between w-100"},[e("b-input-group",{staticClass:"input-group-merge"},[e("b-input-group-prepend",{attrs:{"is-text":""}},[e("feather-icon",{staticClass:"text-muted",attrs:{icon:"SearchIcon"}})],1),e("b-form-input",{attrs:{value:t.searchQuery,placeholder:"Search Marketplace Apps"},on:{input:t.updateRouteQuery}})],1)],1),e("div",{staticClass:"dropdown"},[e("b-dropdown",{attrs:{variant:"link","no-caret":"","toggle-class":"p-0 mr-1",right:""},scopedSlots:t._u([{key:"button-content",fn:function(){return[e("feather-icon",{staticClass:"align-middle text-body",attrs:{icon:"MoreVerticalIcon",size:"16"}})]},proxy:!0}])},[e("b-dropdown-item",{on:{click:t.resetSortAndNavigate}},[t._v(" Reset Sort ")]),e("b-dropdown-item",{attrs:{to:{name:t.$route.name,query:{...t.$route.query,sort:"title-asc"}}}},[t._v(" Sort A-Z ")]),e("b-dropdown-item",{attrs:{to:{name:t.$route.name,query:{...t.$route.query,sort:"title-desc"}}}},[t._v(" Sort Z-A ")]),e("b-dropdown-item",{attrs:{to:{name:t.$route.name,query:{...t.$route.query,sort:"cpu"}}}},[t._v(" Sort by CPU ")]),e("b-dropdown-item",{attrs:{to:{name:t.$route.name,query:{...t.$route.query,sort:"ram"}}}},[t._v(" Sort by RAM ")]),e("b-dropdown-item",{attrs:{to:{name:t.$route.name,query:{...t.$route.query,sort:"hdd"}}}},[t._v(" Sort by HDD ")]),e("b-dropdown-item",{attrs:{to:{name:t.$route.name,query:{...t.$route.query,sort:"price"}}}},[t._v(" Sort by price ")])],1)],1)]),e("vue-perfect-scrollbar",{ref:"appListRef",staticClass:"marketplace-app-list scroll-area",attrs:{settings:t.perfectScrollbarSettings}},[e("ul",{staticClass:"marketplace-media-list"},t._l(t.filteredApps,(function(a){return e("b-media",{key:a.hash,attrs:{tag:"li","no-body":""},on:{click:function(e){return t.handleAppClick(a)}}},[e("b-media-body",{staticClass:"app-media-body"},[e("div",{staticClass:"app-title-wrapper"},[e("div",{staticClass:"app-title-area"},[e("div",{staticClass:"title-wrapper"},[e("span",{staticClass:"app-title"},[e("h4",[t._v(t._s(a.name))])])])]),e("div",{staticClass:"app-item-action"},[e("div",{staticClass:"badge-wrapper mr-1"},[a.extraDetail.name?e("b-badge",{staticClass:"text-capitalize",attrs:{pill:"",variant:`light-${t.resolveTagVariant(a.extraDetail)}`}},[t._v(" "+t._s(a.extraDetail.name)+" ")]):t._e()],1),e("div",[a.extraDetail?e("b-avatar",{attrs:{size:"48",variant:`light-${t.resolveAvatarVariant(a.extraDetail)}`}},[e("v-icon",{attrs:{scale:"1.75",name:`${t.resolveAvatarIcon(a.extraDetail)}`}})],1):t._e()],1)])]),e("div",{staticClass:"app-title-area"},[e("div",{staticClass:"title-wrapper"},[e("h6",{staticClass:"text-nowrap text-muted mr-1 app-description"},[t._v(" "+t._s(a.description)+" ")])])]),e("div",{staticClass:"app-title-area"},[e("div",{staticClass:"title-wrapper"},[e("h6",{staticClass:"text-nowrap text-muted mr-1 app-description"},[t._v(" CPU: "+t._s(t.resolveCpu(a))+" cores - RAM: "+t._s(t.resolveRam(a))+" MB - HDD: "+t._s(t.resolveHdd(a))+" GB ")])])]),e("div",{staticClass:"app-title-area"},[e("div",{staticClass:"title-wrapper"},[e("h5",{staticClass:"text-nowrap mr-1 app-description"},[t._v(" Price: "+t._s(a.price)+" Flux / "+t._s(t.adjustPeriod(a))+" ")])])])])],1)})),1),e("div",{staticClass:"no-results",class:{show:0===t.filteredApps.length}},[e("h5",[t._v("No Marketplace Apps Found")])])])],1),e("app-view",{class:{show:t.isAppViewActive},attrs:{"app-data":t.app,zelid:t.zelid,tier:t.tier},on:{"close-app-view":function(e){t.isAppViewActive=!1}}}),e("shared-nodes-view",{class:{show:t.isSharedNodesViewActive},attrs:{"app-data":t.app,zelid:t.zelid,tier:t.tier},on:{"close-sharednode-view":function(e){t.isSharedNodesViewActive=!1}}}),e("portal",{attrs:{to:"content-renderer-sidebar-left"}},[e("category-sidebar",{class:{show:t.showDetailSidebar},attrs:{zelid:t.zelid},on:{"close-left-sidebar":function(e){t.showDetailSidebar=!1},"close-app-view":function(e){t.isAppViewActive=!1,t.isSharedNodesViewActive=!1}}})],1)],1)},i=[],r=a(22183),o=a(4060),n=a(27754),l=a(31642),c=a(87379),d=a(72775),u=a(68361),p=a(26034),m=a(47389),g=a(20144),v=a(1923),h=a(23646),f=a(6044),b=a(20266),x=a(41905),C=a(34547),w=a(91040),S=a.n(w),k=a(27616),y=a(39055),_=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-details"},[e("div",{staticClass:"app-detail-header"},[e("div",{staticClass:"app-header-left d-flex align-items-center"},[e("span",{staticClass:"go-back mr-1"},[e("feather-icon",{staticClass:"align-bottom",attrs:{icon:t.$store.state.appConfig.isRTL?"ChevronRightIcon":"ChevronLeftIcon",size:"20"},on:{click:function(e){return t.$emit("close-app-view")}}})],1),e("h4",{staticClass:"app-name mb-0"},[t._v(" "+t._s(t.appData.name)+" ")])])]),e("vue-perfect-scrollbar",{staticClass:"app-scroll-area scroll-area",attrs:{settings:t.perfectScrollbarSettings}},[e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xxl:"9",xl:"8",lg:"8",md:"12"}},[e("b-card",{attrs:{title:"Details"}},[e("b-form-textarea",{staticClass:"description-text",attrs:{id:"textarea-rows",rows:"2",readonly:"",value:t.appData.description}}),e("br"),t.appData.contacts?e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Contact "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Add your email contact to get notifications ex. app about to expire, app spawns. Your contact will be uploaded to Flux Storage to not be public visible",expression:"'Add your email contact to get notifications ex. app about to expire, app spawns. Your contact will be uploaded to Flux Storage to not be public visible'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"contact"},model:{value:t.contact,callback:function(e){t.contact=e},expression:"contact"}})],1)]):t._e(),e("br"),t.appData.geolocationOptions?e("div",[e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"20",label:"Deployment Location","label-for":"geolocation"}},[e("b-form-select",{attrs:{id:"geolocation",options:t.appData.geolocationOptions},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:null,disabled:""}},[t._v(" Worldwide ")])]},proxy:!0}],null,!1,2073871109),model:{value:t.selectedGeolocation,callback:function(e){t.selectedGeolocation=e},expression:"selectedGeolocation"}})],1)],1):t._e(),e("b-card",{staticClass:"mt-1",attrs:{"no-body":""}},[e("b-tabs",{on:{"activate-tab":t.componentSelected}},t._l(t.appData.compose,(function(a,s){return e("b-tab",{key:s,attrs:{title:a.name}},[e("list-entry",{attrs:{title:"Description",data:a.description}}),e("list-entry",{attrs:{title:"Repository",data:a.repotag}}),a.userEnvironmentParameters?e("b-card",{attrs:{title:"Parameters","border-variant":"primary"}},[a.userEnvironmentParameters?e("b-tabs",t._l(a.userEnvironmentParameters,(function(a,s){return e("b-tab",{key:s,attrs:{title:a.name}},[e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-2 col-form-label"},[t._v(" Value "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:a.description,expression:"parameter.description",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"enviromentParameters",placeholder:a.placeholder},model:{value:a.value,callback:function(e){t.$set(a,"value",e)},expression:"parameter.value"}})],1)])])})),1):t._e()],1):t._e(),a.userSecrets?e("b-card",{attrs:{title:"Secrets","border-variant":"primary"}},[a.userSecrets?e("b-tabs",t._l(a.userSecrets,(function(a,s){return e("b-tab",{key:s,attrs:{title:a.name}},[e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-2 col-form-label"},[t._v(" Value "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:a.description,expression:"parameter.description",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"secrets",placeholder:a.placeholder},model:{value:a.value,callback:function(e){t.$set(a,"value",e)},expression:"parameter.value"}})],1)])])})),1):t._e()],1):t._e(),t.userZelid?e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mb-2",attrs:{variant:"outline-warning","aria-label":"View Additional Details"},on:{click:function(e){t.componentParamsModalShowing=!0}}},[t._v(" View Additional Details ")]):t._e()],1)})),1)],1)],1)],1),e("b-col",{staticClass:"d-lg-flex d-none",attrs:{xxl:"3",xl:"4",lg:"4"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h4",{staticClass:"mb-0"},[t._v(" CPU ")])]),e("vue-apex-charts",{staticClass:"mt-1",attrs:{type:"radialBar",height:"200",options:t.cpuRadialBar,series:t.cpu.series}})],1),e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h4",{staticClass:"mb-0"},[t._v(" RAM ")])]),e("vue-apex-charts",{staticClass:"mt-1",attrs:{type:"radialBar",height:"200",options:t.ramRadialBar,series:t.ram.series}})],1),e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h4",{staticClass:"mb-0"},[t._v(" HDD ")])]),e("vue-apex-charts",{staticClass:"mt-1",attrs:{type:"radialBar",height:"200",options:t.hddRadialBar,series:t.hdd.series}})],1)],1),e("b-row",{staticClass:"d-lg-none d-sm-none d-md-flex d-none"},[e("b-col",{attrs:{md:"4"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h5",{staticClass:"mb-0"},[t._v(" CPU ")])]),e("vue-apex-charts",{staticClass:"mt-1",attrs:{type:"radialBar",height:"200",options:t.cpuRadialBar,series:t.cpu.series}})],1)],1),e("b-col",{attrs:{md:"4"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h5",{staticClass:"mb-0"},[t._v(" RAM ")])]),e("vue-apex-charts",{staticClass:"mt-1",attrs:{type:"radialBar",height:"200",options:t.ramRadialBar,series:t.ram.series}})],1)],1),e("b-col",{attrs:{md:"4"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h5",{staticClass:"mb-0"},[t._v(" HDD ")])]),e("vue-apex-charts",{staticClass:"mt-1",attrs:{type:"radialBar",height:"200",options:t.hddRadialBar,series:t.hdd.series}})],1)],1)],1),e("b-row",{staticClass:"d-md-none"},[e("b-col",{attrs:{cols:"4"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h6",{staticClass:"mb-0"},[t._v(" CPU ")])]),e("vue-apex-charts",{staticClass:"mt-3",attrs:{type:"radialBar",height:"130",options:t.cpuRadialBarSmall,series:t.cpu.series}})],1)],1),e("b-col",{attrs:{cols:"4"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h6",{staticClass:"mb-0"},[t._v(" RAM ")])]),e("vue-apex-charts",{staticClass:"mt-3",attrs:{type:"radialBar",height:"130",options:t.ramRadialBarSmall,series:t.ram.series}})],1)],1),e("b-col",{attrs:{cols:"4"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h6",{staticClass:"mb-0"},[t._v(" HDD ")])]),e("vue-apex-charts",{staticClass:"mt-3",attrs:{type:"radialBar",height:"130",options:t.hddRadialBarSmall,series:t.hdd.series}})],1)],1)],1)],1),t.appData.enabled?e("div",{staticClass:"text-center"},[t.userZelid?e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mb-2",attrs:{variant:"success","aria-label":"Launch Marketplace App"},on:{click:t.checkFluxSpecificationsAndFormatMessage}},[t._v(" Start Launching Marketplace App ")]):e("h4",[t._v(" Please login using your ZelID to deploy Marketplace Apps ")])],1):e("div",{staticClass:"text-center"},[e("h4",[t._v(" This app is temporarily disabled ")])])],1),e("b-modal",{attrs:{title:"Extra Component Parameters",size:"lg",centered:"","button-size":"sm","ok-only":"","ok-title":"Close"},model:{value:t.componentParamsModalShowing,callback:function(e){t.componentParamsModalShowing=e},expression:"componentParamsModalShowing"}},[t.currentComponent?e("div",[e("list-entry",{attrs:{title:"Static Parameters",data:t.currentComponent.environmentParameters.join(", ")}}),e("list-entry",{attrs:{title:"Custom Domains",data:t.currentComponent.domains.join(", ")||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(t.appData.name).join(", ")}}),e("list-entry",{attrs:{title:"Ports",data:t.currentComponent.ports.join(", ")}}),e("list-entry",{attrs:{title:"Container Ports",data:t.currentComponent.containerPorts.join(", ")}}),e("list-entry",{attrs:{title:"Container Data",data:t.currentComponent.containerData}}),e("list-entry",{attrs:{title:"Commands",data:t.currentComponent.commands.length>0?t.currentComponent.commands.join(", "):"none"}})],1):t._e()]),e("b-modal",{attrs:{title:"Finish Launching App?",size:"sm",centered:"","button-size":"sm","ok-title":"Yes","cancel-title":"No"},on:{ok:function(e){t.confirmLaunchDialogCloseShowing=!1,t.launchModalShowing=!1}},model:{value:t.confirmLaunchDialogCloseShowing,callback:function(e){t.confirmLaunchDialogCloseShowing=e},expression:"confirmLaunchDialogCloseShowing"}},[e("h3",{staticClass:"text-center"},[t._v(" Please ensure that you have paid for your app, or saved the payment details for later. ")]),e("br"),e("h4",{staticClass:"text-center"},[t._v(" Close the Launch App dialog? ")])]),e("b-modal",{attrs:{title:"Launching Marketplace App",size:"xlg",centered:"","no-close-on-backdrop":"","no-close-on-esc":"","button-size":"sm","ok-only":"","ok-title":"Cancel"},on:{ok:t.confirmLaunchDialogCancel},model:{value:t.launchModalShowing,callback:function(e){t.launchModalShowing=e},expression:"launchModalShowing"}},[e("form-wizard",{staticClass:"wizard-vertical mb-3",attrs:{color:t.tierColors.cumulus,title:null,subtitle:null,layout:"vertical","back-button-text":"Previous"},on:{"on-complete":function(e){return t.confirmLaunchDialogFinish()}}},[e("tab-content",{attrs:{title:"Check Registration"}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Registration Message"}},[e("b-form-textarea",{attrs:{id:"registrationmessage",rows:"6",readonly:""},model:{value:t.dataToSign,callback:function(e){t.dataToSign=e},expression:"dataToSign"}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"my-1",attrs:{variant:"success","aria-label":"Copy Message to Sign to Clipboard"},on:{click:t.copyMessageToSign}},[t._v(" Copy ")])],1)],1),e("tab-content",{attrs:{title:"Sign App Message","before-change":()=>null!==t.signature}},[e("b-card",{attrs:{title:"Sign Message with same method you have used for login"}},[e("div",{staticClass:"loginRow"},[e("a",{on:{click:t.initiateSignWS}},[e("img",{staticClass:"zelidLogin",attrs:{src:a(94452),alt:"Zel ID",height:"100%",width:"100%"}})]),e("a",{on:{click:t.initSSP}},[e("img",{staticClass:"sspLogin",attrs:{src:t.isDark?a(56070):a(58962),alt:"SSP",height:"100%",width:"100%"}})])]),e("div",{staticClass:"loginRow"},[e("a",{on:{click:t.initWalletConnect}},[e("img",{staticClass:"walletconnectLogin",attrs:{src:a(47622),alt:"WalletConnect",height:"100%",width:"100%"}})]),e("a",{on:{click:t.initMetamask}},[e("img",{staticClass:"metamaskLogin",attrs:{src:a(28125),alt:"Metamask",height:"100%",width:"100%"}})])]),e("b-form-input",{attrs:{id:"signature"},model:{value:t.signature,callback:function(e){t.signature=e},expression:"signature"}})],1)],1),e("tab-content",{attrs:{title:"Register App","before-change":()=>null!==t.registrationHash}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Register App"}},[e("b-card-text",[t._v(" Price: "+t._s(t.appPricePerDeployment)+" FLUX ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"my-1",attrs:{variant:"success","aria-label":"Register Flux App",disabled:t.registrationHash&&t.registrationHash.length>0},on:{click:t.register}},[t._v(" Register Flux App ")]),t.registrationHash?e("b-card-text",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip"}],staticClass:"mt-1",attrs:{title:t.registrationHash}},[t._v(" Registration Hash received ")]):t._e()],1)],1),e("tab-content",{attrs:{title:"Send Payment"}},[e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{lg:"8"}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Send Payment"}},[e("b-card-text",[t._v(" To finish the application update, please make a transaction of "+t._s(t.appPricePerDeployment)+" FLUX to address"),e("br"),t._v(" '"+t._s(t.deploymentAddress)+"'"),e("br"),t._v(" with the following message"),e("br"),t._v(" '"+t._s(t.registrationHash)+"' ")]),e("br"),t._v(" The transaction must be mined by "+t._s(new Date(t.validTill).toLocaleString("en-GB",t.timeoptions.shortDate))+" "),e("br"),e("br"),t._v(" The application will be subscribed until "+t._s(new Date(t.subscribedTill).toLocaleString("en-GB",t.timeoptions.shortDate))+" ")],1)],1),e("b-col",{attrs:{lg:"4"}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Pay with Zelcore"}},[e("div",{staticClass:"loginRow"},[e("a",{attrs:{href:`zel:?action=pay&coin=zelcash&address=${t.deploymentAddress}&amount=${t.appPricePerDeployment}&message=${t.registrationHash}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2Fflux_banner.png`}},[e("img",{staticClass:"zelidLogin",attrs:{src:a(94452),alt:"Zel ID",height:"100%",width:"100%"}})]),e("a",{on:{click:t.initSSPpay}},[e("img",{staticClass:"sspLogin",attrs:{src:t.isDark?a(56070):a(58962),alt:"SSP",height:"100%",width:"100%"}})])])])],1)],1)],1)],1)],1)],1)},F=[],R=(a(70560),a(15193)),T=a(86855),z=a(87047),D=a(64206),A=a(50725),$=a(333),P=a(31220),I=a(26253),M=a(58887),L=a(51015),Z=a(8051),B=a(78959),N=a(46709),E=a(82653),O=a(43028),j=a(5870),q=a(85498),V=a(67166),W=a.n(V),U=a(68934),H=a(51748),Y=a(43672),J=a(72918),G=a(38511),K=a(94145),X=a(37307),Q=a(48764)["lW"];const tt="df787edc6839c7de49d527bba9199eaa",et={projectId:tt,metadata:{name:"Flux Cloud",description:"Flux, Your Gateway to a Decentralized World",url:"https://home.runonflux.io",icons:["https://home.runonflux.io/img/logo.png"]}},at={enableDebug:!0},st=new K.MetaMaskSDK(at);let it;const rt=a(80129),ot=a(9669),nt=a(58971),lt=a(79650),ct=a(63005),dt={components:{BButton:R.T,BCard:T._,BCardHeader:z.p,BCardText:D.j,BCol:A.l,BFormInput:r.e,BFormTextarea:$.y,BModal:P.N,BRow:I.T,BTabs:M.M,BTab:L.L,BFormSelect:Z.K,BFormSelectOption:B.c,BFormGroup:N.x,FormWizard:q.FormWizard,TabContent:q.TabContent,ToastificationContent:C.Z,ListEntry:H.Z,VuePerfectScrollbar:S(),VueApexCharts:W()},directives:{Ripple:b.Z,"b-modal":E.T,"b-toggle":O.M,"b-tooltip":j.o},props:{appData:{type:Object,required:!0},zelid:{type:String,required:!1,default:""},tier:{type:String,required:!0,default:""}},setup(t){const e=(0,g.getCurrentInstance)().proxy,a=(0,x.useToast)(),{skin:s}=(0,X.Z)(),i=(0,g.computed)((()=>"dark"===s.value)),r=t=>"Open"===t?"warning":"Passed"===t?"success":"Unpaid"===t?"info":t&&t.startsWith("Rejected")?"danger":"primary",o=(t,e,s="InfoIcon")=>{a({component:C.Z,props:{title:e,icon:s,variant:t}})},n=(0,g.ref)("");n.value=t.tier;const l=(0,g.ref)("");l.value=t.zelid;const c=(0,g.ref)(!1),d=(0,g.ref)(!1),u=(0,g.ref)(!1),p=(0,g.ref)(null),m=(0,g.ref)(1),v=(0,g.ref)("fluxappregister"),h=(0,g.ref)(null),f=(0,g.ref)(null),b=(0,g.ref)(null),w=(0,g.ref)(null),S=(0,g.ref)(null),k=(0,g.ref)(0),y=(0,g.ref)(null),_=(0,g.ref)(null),F=(0,g.ref)([]),R=(0,g.ref)([]),T=(0,g.ref)(null),z=(0,g.ref)(null),D=(0,g.computed)((()=>e.$store.state.flux.config)),A=(0,g.computed)((()=>S.value+36e5)),$=(0,g.computed)((()=>S.value+2592e6+36e5)),P=()=>{const{protocol:t,hostname:a,port:s}=window.location;let i="";i+=t,i+="//";const r=/[A-Za-z]/g;if(a.match(r)){const t=a.split(".");t[0]="api",i+=t.join(".")}else{if("string"===typeof a&&e.$store.commit("flux/setUserIp",a),+s>16100){const t=+s+1;e.$store.commit("flux/setFluxPort",t)}i+=a,i+=":",i+=D.value.apiPort}const o=nt.get("backendURL")||i,n=`${o}/id/providesign`;return encodeURI(n)},I=t=>{console.log(t)},M=t=>{const e=rt.parse(t.data);"success"===e.status&&e.data&&(f.value=e.data.signature),console.log(e),console.log(t)},L=t=>{console.log(t)},Z=t=>{console.log(t)},B=async()=>{if(h.value.length>1800){const t=h.value,e={publicid:Math.floor(999999999999999*Math.random()).toString(),public:t};await ot.post("https://storage.runonflux.io/v1/public",e);const a=`zel:?action=sign&message=FLUX_URL=https://storage.runonflux.io/v1/public/${e.publicid}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${P()}`;window.location.href=a}else window.location.href=`zel:?action=sign&message=${h.value}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${P()}`;const{protocol:t,hostname:a,port:s}=window.location;let i="";i+=t,i+="//";const r=/[A-Za-z]/g;if(a.match(r)){const t=a.split(".");t[0]="api",i+=t.join(".")}else{if("string"===typeof a&&e.$store.commit("flux/setUserIp",a),+s>16100){const t=+s+1;e.$store.commit("flux/setFluxPort",t)}i+=a,i+=":",i+=D.value.apiPort}let o=nt.get("backendURL")||i;o=o.replace("https://","wss://"),o=o.replace("http://","ws://");const n=l.value+S.value;console.log(`signatureMessage: ${n}`);const c=`${o}/ws/sign/${n}`,d=new WebSocket(c);_.value=d,d.onopen=t=>{Z(t)},d.onclose=t=>{L(t)},d.onmessage=t=>{M(t)},d.onerror=t=>{I(t)}},N=async()=>{try{await st.init(),it=st.getProvider()}catch(t){console.log(t)}};N();const E=async(t,e)=>{try{const a=`0x${Q.from(t,"utf8").toString("hex")}`,s=await it.request({method:"personal_sign",params:[a,e]});console.log(s),f.value=s}catch(a){console.error(a),o("danger",a.message)}},O=async()=>{try{if(!it)return void o("danger","Metamask not detected");let t;if(it&&!it.selectedAddress){const e=await it.request({method:"eth_requestAccounts",params:[]});console.log(e),t=e[0]}else t=it.selectedAddress;E(h.value,t)}catch(t){o("danger",t.message)}},j=async()=>{try{if(!window.ssp)return void o("danger","SSP Wallet not installed");const t=await window.ssp.request("sspwid_sign_message",{message:h.value});if("ERROR"===t.status)throw new Error(t.data||t.result);f.value=t.signature}catch(t){o("danger",t.message)}},q=async()=>{try{if(!window.ssp)return void this.showToast("danger","SSP Wallet not installed");const t={message:this.registrationHash,amount:(+this.appPricePerDeployment||0).toString(),address:this.deploymentAddress,chain:"flux"},e=await window.ssp.request("pay",t);if("ERROR"===e.status)throw new Error(e.data||e.result);this.showToast("success",`${e.data}: ${e.txid}`)}catch(t){o("danger",t.message)}},V=async t=>{console.log(t);const e=await b.value.request({topic:t.topic,chainId:"eip155:1",request:{method:"personal_sign",params:[h.value,t.namespaces.eip155.accounts[0].split(":")[2]]}});console.log(e),f.value=e},W=async()=>{try{const t=await G.ZP.init(et);b.value=t;const e=t.session.getAll().length-1,a=t.session.getAll()[e];if(!a)throw new Error("WalletConnect session expired. Please log into FluxOS again");V(a)}catch(t){console.error(t),o("danger",t.message)}},H={maxScrollbarLength:150},K=t=>t.compose.reduce(((t,e)=>t+e.cpu),0),tt=t=>t.compose.reduce(((t,e)=>t+e.ram),0),at=t=>t.compose.reduce(((t,e)=>t+e.hdd),0),dt=(0,g.ref)({series:[]}),ut=(0,g.ref)({series:[]}),pt=(0,g.ref)({series:[]}),mt=async t=>{try{const e=t.split(":")[0],a=Number(t.split(":")[1]||16127),s=await ot.get(`https://${e.replace(/\./g,"-")}-${a}.node.api.runonflux.io/flux/pgp`);if("error"!==s.data.status){const t=s.data.data;return t}return o("danger",s.data.data.message||s.data.data),null}catch(e){return console.log(e),null}},gt=async()=>{const t=sessionStorage.getItem("flux_enterprise_nodes");if(t)return JSON.parse(t);try{const t=await Y.Z.getEnterpriseNodes();if("error"!==t.data.status)return sessionStorage.setItem("flux_enterprise_nodes",JSON.stringify(t.data.data)),t.data.data;o("danger",t.data.data.message||t.data.data)}catch(e){console.log(e)}return[]},vt=async(t,e)=>{try{const a=e.map((t=>t.nodekey)),s=await Promise.all(a.map((t=>lt.readKey({armoredKey:t})))),i=await lt.createMessage({text:t.replace("\\“",'\\"')}),r=await lt.encrypt({message:i,encryptionKeys:s});return r}catch(a){return o("danger","Data encryption failed"),null}},ht=async()=>{const{instances:e}=t.appData,a=+e+3,s=+e+Math.ceil(Math.max(7,.15*+e)),i=await gt(),r=[],o=[],n=i.filter((t=>t.enterprisePoints>0&&t.score>1e3));for(let t=0;te.pubkey===n[t].pubkey)).length,i=r.filter((e=>e.pubkey===n[t].pubkey)).length;if(e+i=s)break}if(r.length{const e=o.find((e=>e.ip===t.ip));if(!e){o.push(t);const e=R.value.find((e=>e.nodeip===t.ip));if(!e){const e=await mt(t.ip);if(e){const a={nodeip:t.ip,nodekey:e},s=R.value.find((e=>e.nodeip===t.ip));s||R.value.push(a)}}}})),console.log(o),console.log(R.value),o.map((t=>t.ip))};(0,g.watch)((()=>t.appData),(()=>{null!==_.value&&(_.value.close(),_.value=null),dt.value={series:[K(t.appData)/15*100]},ut.value={series:[tt(t.appData)/59e3*100]},pt.value={series:[at(t.appData)/820*100]},t.appData.compose.forEach((t=>{const e=t.userEnvironmentParameters||[];e.forEach((e=>{Object.prototype.hasOwnProperty.call(e,"port")&&(e.value=t.ports[e.port])}))})),p.value=t.appData.compose[0],t.appData.isAutoEnterprise&&ht().then((t=>{F.value=t,console.log("auto selected nodes",t)})).catch(console.log)}));const ft=t=>`${t}${Date.now()}`,bt=t=>{if(!l.value)return["No ZelID"];const e=ft(t),a=e.toLowerCase(),s=[`${a}.app.runonflux.io`];return s},xt=(0,g.ref)(null),Ct=async()=>{const t=await Y.Z.appsDeploymentInformation(),{data:e}=t.data;"success"===t.data.status?xt.value=e.address:o("danger",t.data.data.message||t.data.data)};Ct();const wt=async()=>{try{const e=ft(t.appData.name),a={version:t.appData.version,name:e,description:t.appData.description,owner:l.value,instances:t.appData.instances,compose:[]};if(t.appData.version>=5&&(a.contacts=[],a.geolocation=[],T.value&&a.geolocation.push(T.value),z.value)){const t=[z.value],e=Math.floor(999999999999999*Math.random()).toString(),s={contactsid:e,contacts:t},i=await ot.post("https://storage.runonflux.io/v1/contacts",s);if("error"===i.data.status)throw new Error(i.data.message||i.data);o("success","Successful upload of Contact Parameter to Flux Storage"),a.contacts=[`F_S_CONTACTS==https://storage.runonflux.io/v1/contacts/${e}`]}if(t.appData.version>=6&&(a.expire=t.appData.expire||22e3),t.appData.version>=7)if(a.staticip=t.appData.staticip,t.appData.isAutoEnterprise){if(0===F.value.length){const t=await ht();F.value=t}a.nodes=F.value}else a.nodes=t.appData.nodes||[];for(let n=0;n{s.push(`${t.name}=${t.value}`)})),e.envFluxStorage){const t=Math.floor(999999999999999*Math.random()).toString(),e={envid:t,env:s},a=await ot.post("https://storage.runonflux.io/v1/env",e);if("error"===a.data.status)throw new Error(a.data.message||a.data);o("success","Successful upload of Environment Parameters to Flux Storage"),s=[`F_S_ENV=https://storage.runonflux.io/v1/env/${t}`]}let{ports:r}=e;if(e.portSpecs){r=[];for(let t=0;t=7){l.secrets=t.appData.secrets||"",l.repoauth=t.appData.repoauth||"";const a=[],s=e.userSecrets||[];if(s.forEach((t=>{a.push(`${t.name}=${t.value}`)})),a.length>0){const t=await vt(JSON.stringify(a),R.value);if(!t)throw new Error("Secrets failed to encrypt");l.secrets=t}}a.compose.push(l)}const s=await Y.Z.appRegistrationVerificaiton(a);if(console.log(s),"error"===s.data.status)throw new Error(s.data.data.message||s.data.data);const i=s.data.data,r=await Y.Z.appPrice(i);if("error"===r.data.status)throw new Error(r.data.data.message||r.data.data);if(r.data.data>t.appData.price)throw new Error("Marketplace App Price is too low");null!==_.value&&(_.value.close(),_.value=null),S.value=Date.now(),w.value=i,k.value=t.appData.price,h.value=`${v.value}${m.value}${JSON.stringify(i)}${Date.now()}`,y.value=null,f.value=null,c.value=!0}catch(e){console.log(e),o("danger",e.message||e)}},St={height:100,type:"radialBar",sparkline:{enabled:!0},dropShadow:{enabled:!0,blur:3,left:1,top:1,opacity:.1}},kt={height:200,type:"radialBar",sparkline:{enabled:!0},dropShadow:{enabled:!0,blur:3,left:1,top:1,opacity:.1}},yt={chart:kt,colors:[U.j.primary],labels:["Cores"],plotOptions:{radialBar:{offsetY:-10,startAngle:-150,endAngle:150,hollow:{size:"77%"},track:{background:U.j.dark,strokeWidth:"50%"},dataLabels:{name:{offsetY:-15,color:U.j.light,fontSize:"1.5rem"},value:{formatter:t=>(15*parseFloat(t)/100).toFixed(1),offsetY:10,color:U.j.light,fontSize:"2.86rem",fontWeight:"600"}}}},fill:{type:"gradient",gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:[U.j.success],inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,100]}},stroke:{lineCap:"round"},grid:{padding:{bottom:30}}},_t={chart:St,colors:[U.j.primary],labels:["Cores"],plotOptions:{radialBar:{offsetY:-10,startAngle:-150,endAngle:150,hollow:{size:"70%"},track:{background:U.j.dark,strokeWidth:"50%"},dataLabels:{name:{offsetY:-15,color:U.j.light,fontSize:"1.2rem"},value:{formatter:t=>(15*parseFloat(t)/100).toFixed(1),offsetY:10,color:U.j.light,fontSize:"2rem",fontWeight:"400"}}}},fill:{type:"gradient",gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:[U.j.success],inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,100]}},stroke:{lineCap:"round"},grid:{padding:{bottom:10}}},Ft={chart:kt,colors:[U.j.primary],labels:["MB"],plotOptions:{radialBar:{offsetY:-10,startAngle:-150,endAngle:150,hollow:{size:"77%"},track:{background:U.j.dark,strokeWidth:"50%"},dataLabels:{name:{offsetY:-15,color:U.j.light,fontSize:"1.5rem"},value:{formatter:t=>(59e3*parseFloat(t)/100).toFixed(0),offsetY:10,color:U.j.light,fontSize:"2.86rem",fontWeight:"600"}}}},fill:{type:"gradient",gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:[U.j.success],inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,100]}},stroke:{lineCap:"round"},grid:{padding:{bottom:30}}},Rt={chart:St,colors:[U.j.primary],labels:["MB"],plotOptions:{radialBar:{offsetY:-10,startAngle:-150,endAngle:150,hollow:{size:"70%"},track:{background:U.j.dark,strokeWidth:"50%"},dataLabels:{name:{offsetY:-15,color:U.j.light,fontSize:"1.2rem"},value:{formatter:t=>(59e3*parseFloat(t)/100).toFixed(0),offsetY:10,color:U.j.light,fontSize:"2rem",fontWeight:"400"}}}},fill:{type:"gradient",gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:[U.j.success],inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,100]}},stroke:{lineCap:"round"},grid:{padding:{bottom:10}}},Tt={chart:kt,colors:[U.j.primary],labels:["GB"],plotOptions:{radialBar:{offsetY:-10,startAngle:-150,endAngle:150,hollow:{size:"77%"},track:{background:U.j.dark,strokeWidth:"50%"},dataLabels:{name:{offsetY:-15,color:U.j.light,fontSize:"1.5rem"},value:{formatter:t=>(820*parseFloat(t)/100).toFixed(0),offsetY:10,color:U.j.light,fontSize:"2.86rem",fontWeight:"600"}}}},fill:{type:"gradient",gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:[U.j.success],inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,100]}},stroke:{lineCap:"round"},grid:{padding:{bottom:30}}},zt={chart:St,colors:[U.j.primary],labels:["GB"],plotOptions:{radialBar:{offsetY:-10,startAngle:-150,endAngle:150,hollow:{size:"70%"},track:{background:U.j.dark,strokeWidth:"50%"},dataLabels:{name:{offsetY:-15,color:U.j.light,fontSize:"1.2rem"},value:{formatter:t=>(820*parseFloat(t)/100).toFixed(0),offsetY:10,color:U.j.light,fontSize:"2rem",fontWeight:"400"}}}},fill:{type:"gradient",gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:[U.j.success],inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,100]}},stroke:{lineCap:"round"},grid:{padding:{bottom:10}}},Dt=async()=>{try{await navigator.clipboard.writeText(h.value),o("success","Copied to clipboard")}catch(t){o("danger","Failed to Copy to clipboard")}},At=async()=>{const t=localStorage.getItem("zelidauth"),e={type:v.value,version:m.value,appSpecification:w.value,timestamp:S.value,signature:f.value};o("info","Propagating message accross Flux network...");const a=await Y.Z.registerApp(t,e).catch((t=>{o("danger",t.message||t)}));console.log(a),"success"===a.data.status?(y.value=a.data.data,o("success",a.data.data.message||a.data.data)):o("danger",a.data.data.message||a.data.data)},$t=e=>{p.value=t.appData.compose[e]},Pt=()=>{u.value=!0},It=t=>{null!==y.value&&(t.preventDefault(),u.value=!0)};return{perfectScrollbarSettings:H,resolveTagVariant:r,resolveCpu:K,resolveRam:tt,resolveHdd:at,constructAutomaticDomains:bt,checkFluxSpecificationsAndFormatMessage:wt,timeoptions:ct,cpuRadialBar:yt,cpuRadialBarSmall:_t,cpu:dt,ramRadialBar:Ft,ramRadialBarSmall:Rt,ram:ut,hddRadialBar:Tt,hddRadialBarSmall:zt,hdd:pt,userZelid:l,dataToSign:h,selectedGeolocation:T,contact:z,signClient:b,signature:f,appPricePerDeployment:k,registrationHash:y,deploymentAddress:xt,validTill:A,subscribedTill:$,register:At,callbackValue:P,initiateSignWS:B,initMetamask:O,initSSP:j,initSSPpay:q,initWalletConnect:W,onSessionConnect:V,siwe:E,copyMessageToSign:Dt,launchModalShowing:c,componentParamsModalShowing:d,confirmLaunchDialogCloseShowing:u,confirmLaunchDialogFinish:Pt,confirmLaunchDialogCancel:It,currentComponent:p,componentSelected:$t,tierColors:J.Z,skin:s,isDark:i}}},ut=dt;var pt=a(1001),mt=(0,pt.Z)(ut,_,F,!1,null,"c280066e",null);const gt=mt.exports;var vt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-details"},[e("div",{staticClass:"app-detail-header"},[e("div",{staticClass:"app-header-left d-flex align-items-center flex-grow-1"},[e("span",{staticClass:"go-back mr-1"},[e("feather-icon",{staticClass:"align-bottom",attrs:{icon:t.$store.state.appConfig.isRTL?"ChevronRightIcon":"ChevronLeftIcon",size:"20"},on:{click:function(e){return t.$emit("close-sharednode-view")}}})],1),e("h4",{staticClass:"app-name mb-0 flex-grow-1"},[t._v(" Titan Shared Nodes (Beta) ")]),e("a",{attrs:{href:"https://fluxofficial.medium.com/flux-titan-nodes-guide-useful-staking-e527278b1a2a",target:"_blank",rel:"noopener noreferrer"}},[t._v(" Titan Guide ")])])]),e("vue-perfect-scrollbar",{staticClass:"marketplace-app-list scroll-area",attrs:{settings:t.perfectScrollbarSettings}},[e("b-overlay",{attrs:{variant:"transparent",opacity:"0.95",blur:"5px","no-center":"",show:t.showOverlay()},scopedSlots:t._u([{key:"overlay",fn:function(){return[e("div",{staticClass:"mt-5"},[e("div",{staticClass:"text-center"},[t.titanConfig&&t.titanConfig.maintenanceMessage?e("b-card",{staticClass:"mx-auto",staticStyle:{"max-width":"50rem"},attrs:{"border-variant":"primary",title:"Titan Maintenance"}},[e("h1",[t._v(" "+t._s(t.titanConfig.maintenanceMessage)+" ")])]):e("b-spinner",{staticStyle:{width:"10rem",height:"10rem"},attrs:{type:"border",variant:"danger"}})],1)])]},proxy:!0}])},[e("b-card",{attrs:{"bg-variant":"transparent"}},[e("b-row",{staticClass:"match-height d-xxl-flex d-none"},[e("b-col",{attrs:{xl:"4"}},[e("b-card",{attrs:{"border-variant":"primary","no-body":""}},[e("b-card-title",{staticClass:"text-white text-uppercase shared-node-info-title"},[t._v(" Active Nodes ")]),e("b-card-body",{staticClass:"shared-node-info-body"},[e("h1",{staticClass:"active-node-value"},[t._v(" "+t._s(t.nodes.length)+" ")]),e("div",{staticClass:"d-flex"},[e("h4",{staticClass:"flex-grow-1"},[t._v(" Total: "+t._s(t.totalCollateral.toLocaleString())+" Flux ")]),e("b-avatar",{attrs:{size:"24",variant:"primary",button:""},on:{click:function(e){return t.showNodeInfoDialog()}}},[e("v-icon",{attrs:{scale:"0.9",name:"info"}})],1)],1)])],1)],1),e("b-col",{attrs:{xl:"4"}},[e("b-card",{attrs:{"border-variant":"primary","no-body":""}},[e("b-card-title",{staticClass:"text-white text-uppercase shared-node-info-title"},[t._v(" Titan Stats ")]),e("b-card-body",{staticClass:"shared-node-info-body"},[e("div",{staticClass:"d-flex flex-column"},[e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" My Flux Total ")]),e("h4",[t._v(" "+t._s(t.myStakes?t.toFixedLocaleString(t.myStakes.reduce(((t,e)=>t+e.collateral),0),0):0)+" ")])]),e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Titan Flux Total ")]),e("h4",[t._v(" "+t._s(t.titanStats?t.toFixedLocaleString(t.titanStats.total):"...")+" ")])]),e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Current Supply ")]),e("h4",[t._v(" "+t._s(t.titanStats?t.toFixedLocaleString(t.titanStats.currentsupply):"...")+" ")])]),e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Max Supply ")]),e("h4",[t._v(" "+t._s(t.titanStats?t.toFixedLocaleString(t.titanStats.maxsupply):"...")+" ")])]),e("div",[e("hr")]),e("div",{staticClass:"d-flex flex-row"},[e("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:t.tooMuchStaked?t.titanConfig?t.titanConfig.stakeDisabledMessage:t.defaultStakeDisabledMessage:"",expression:"tooMuchStaked ? (titanConfig ? titanConfig.stakeDisabledMessage : defaultStakeDisabledMessage) : ''",modifiers:{hover:!0,bottom:!0}}],staticClass:"d-flex flex-row flex-grow-1"},[t.userZelid?e("b-button",{staticClass:"flex-grow-1 .btn-relief-primary",attrs:{variant:"gradient-primary",disabled:t.tooMuchStaked},on:{click:function(e){return t.showStakeDialog(!1)}}},[t._v(" Activate Titan ")]):t._e()],1)])])])],1)],1),e("b-col",{attrs:{xl:"4"}},[e("b-card",{attrs:{"border-variant":"primary","no-body":""}},[e("b-card-title",{staticClass:"text-white text-uppercase shared-node-info-title"},[t._v(" Estimated % Lockup in Flux ")]),t.titanConfig?e("b-card-body",{staticClass:"shared-node-info-body"},[t._l(t.titanConfig.lockups,(function(a){return e("div",{key:a.time,staticClass:"lockup"},[e("div",{staticClass:"d-flex flex-row"},[e("h2",{staticClass:"flex-grow-1"},[t._v(" "+t._s(a.name)+" ")]),e("h1",[t._v(" ~"+t._s((100*a.apr).toFixed(2))+"% ")])])])})),e("div",{staticClass:"float-right"},[e("b-avatar",{attrs:{size:"24",variant:"primary",button:""},on:{click:function(e){return t.showAPRInfoDialog()}}},[e("v-icon",{attrs:{scale:"0.9",name:"info"}})],1)],1)],2):t._e()],1)],1)],1),e("b-row",{staticClass:"match-height d-xxl-none d-xl-flex d-lg-flex d-md-flex d-sm-flex"},[e("b-col",{attrs:{sm:"12"}},[e("b-card",{attrs:{"border-variant":"primary","no-body":""}},[e("b-card-title",{staticClass:"text-white text-uppercase",staticStyle:{"padding-left":"1.5rem","padding-top":"1rem","margin-bottom":"0"}},[t._v(" Active Nodes ")]),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{cols:"6"}},[e("h1",{staticClass:"active-node-value-xl"},[t._v(" "+t._s(t.nodes.length)+" ")])]),e("b-col",{attrs:{cols:"6"}},[e("h4",{staticClass:"text-center",staticStyle:{"padding-top":"2rem"}},[t._v(" Total: "+t._s(t.totalCollateral.toLocaleString())+" Flux ")]),e("h4",{staticClass:"text-center"},[e("b-avatar",{attrs:{size:"24",variant:"primary",button:""},on:{click:function(e){return t.showNodeInfoDialog()}}},[e("v-icon",{attrs:{scale:"0.9",name:"info"}})],1)],1)])],1)],1)],1),e("b-col",{attrs:{sm:"12"}},[e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{sm:"6"}},[e("b-card",{attrs:{"border-variant":"primary","no-body":""}},[e("b-card-title",{staticClass:"text-white text-uppercase shared-node-info-title-xl"},[t._v(" Titan Stats ")]),e("b-card-body",{staticClass:"shared-node-info-body-xl"},[e("div",{staticClass:"d-flex flex-column"},[e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" My Flux Total ")]),e("h4",[t._v(" "+t._s(t.myStakes?t.toFixedLocaleString(t.myStakes.reduce(((t,e)=>t+e.collateral),0),0):0)+" ")])]),e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Titan Flux Total ")]),e("h4",[t._v(" "+t._s(t.titanStats?t.toFixedLocaleString(t.titanStats.total):"...")+" ")])]),e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Current Supply ")]),e("h4",[t._v(" "+t._s(t.titanStats?t.toFixedLocaleString(t.titanStats.currentsupply):"...")+" ")])]),e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Max Supply ")]),e("h4",[t._v(" "+t._s(t.titanStats?t.toFixedLocaleString(t.titanStats.maxsupply):"...")+" ")])]),e("div",[e("hr")]),e("div",{staticClass:"d-flex flex-row"},[e("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:t.tooMuchStaked?t.titanConfig?t.titanConfig.stakeDisabledMessage:t.defaultStakeDisabledMessage:"",expression:"tooMuchStaked ? (titanConfig ? titanConfig.stakeDisabledMessage : defaultStakeDisabledMessage) : ''",modifiers:{hover:!0,bottom:!0}}],staticClass:"d-flex flex-row flex-grow-1"},[t.userZelid?e("b-button",{staticClass:"flex-grow-1 .btn-relief-primary",attrs:{variant:"gradient-primary",disabled:t.tooMuchStaked},on:{click:function(e){return t.showStakeDialog(!1)}}},[t._v(" Activate Titan ")]):t._e()],1)])])])],1)],1),e("b-col",{attrs:{sm:"6"}},[e("b-card",{attrs:{"border-variant":"primary","no-body":""}},[e("b-card-title",{staticClass:"text-white text-uppercase shared-node-info-title-xl"},[t._v(" Lockup Period APR ")]),t.titanConfig?e("b-card-body",{staticClass:"shared-node-info-body-xl"},[t._l(t.titanConfig.lockups,(function(a){return e("div",{key:a.time,staticClass:"lockup"},[e("div",{staticClass:"d-flex flex-row"},[e("h4",{staticClass:"flex-grow-1"},[t._v(" "+t._s(a.name)+" ")]),e("h4",[t._v(" ~"+t._s((100*a.apr).toFixed(2))+"% ")])])])})),e("div",{staticClass:"float-right"},[e("b-avatar",{attrs:{size:"24",variant:"primary",button:""},on:{click:function(e){return t.showAPRInfoDialog()}}},[e("v-icon",{attrs:{scale:"0.9",name:"info"}})],1)],1)],2):t._e()],1)],1)],1)],1)],1)],1),t.userZelid?e("b-row",{},[e("b-col",{staticClass:"d-xxl-none d-xl-flex d-lg-flex d-md-flex d-sm-flex"},[e("b-card",{staticClass:"flex-grow-1",attrs:{"no-body":""}},[e("b-card-title",{staticClass:"stakes-title"},[t._v(" Redeem Flux ")]),e("b-card-body",[e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Paid: ")]),e("h4",[t._v(" "+t._s(t.calculatePaidRewards())+" Flux ")])]),e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Available: ")]),e("h4",[t._v(" "+t._s(t.toFixedLocaleString(t.totalReward,2))+" Flux ")])]),e("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:t.totalReward<=(t.titanConfig?t.titanConfig.redeemFee:0)?"Available balance is less than the redeem fee":"",expression:"totalReward <= (titanConfig ? titanConfig.redeemFee : 0) ? 'Available balance is less than the redeem fee' : ''",modifiers:{hover:!0,bottom:!0}}],staticClass:"float-right",staticStyle:{display:"inline-block"}},[t.totalReward>t.minStakeAmount?e("b-button",{staticClass:"mt-2 mr-1",attrs:{disabled:t.totalReward>=t.totalCollateral-t.titanStats.total,variant:"danger",size:"sm",pill:""},on:{click:function(e){return t.showStakeDialog(!0)}}},[t._v(" Re-invest Funds ")]):t._e(),e("b-button",{staticClass:"float-right mt-2",attrs:{id:"redeemButton",variant:"danger",size:"sm",pill:"",disabled:t.totalReward<=(t.titanConfig?t.titanConfig.redeemFee:0)},on:{click:function(e){return t.showRedeemDialog()}}},[t._v(" Redeem ")])],1)])],1)],1),e("b-col",{attrs:{xxl:"9"}},[e("b-card",{staticClass:"sharednodes-container",attrs:{"no-body":""}},[e("b-card-body",[e("b-tabs",[e("b-tab",{attrs:{active:"",title:"Active"}},[e("ul",{staticClass:"marketplace-media-list"},t._l(t.myStakes,(function(a){return e("b-media",{key:a.uuid,attrs:{tag:"li","no-body":""},on:{click:function(e){return t.showActiveStakeInfoDialog(a)}}},[e("b-media-body",{staticClass:"app-media-body",staticStyle:{overflow:"inherit"}},[e("div",{staticClass:"d-flex flex-row row"},[-1===a.confirmations?e("b-avatar",{staticClass:"node-status mt-auto mb-auto",attrs:{size:"48",variant:"danger",button:""},on:{click:[function(e){return t.showPaymentDetailsDialog(a)},function(t){t.stopPropagation()}]}},[e("v-icon",{attrs:{scale:"1.75",name:"hourglass-half"}})],1):t.titanConfig&&a.confirmations>=t.titanConfig.confirms?e("b-avatar",{staticClass:"node-status mt-auto mb-auto",attrs:{size:"48",variant:"light-success"}},[e("v-icon",{attrs:{scale:"1.75",name:"check"}})],1):e("b-avatar",{staticClass:"node-status mt-auto mb-auto",attrs:{size:"48",variant:"light-warning"}},[t._v(" "+t._s(a.confirmations)+"/"+t._s(t.titanConfig?t.titanConfig.confirms:0)+" ")]),e("div",{staticClass:"d-flex flex-column seat-column col",staticStyle:{"flex-grow":"0.8"}},[e("h3",{staticClass:"mr-auto ml-auto mt-auto mb-auto"},[t._v(" "+t._s(a.collateral.toLocaleString())+" Flux ")])]),e("div",{staticClass:"d-flex flex-column seat-column col"},[e("h4",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:new Date(1e3*a.timestamp).toLocaleString(t.timeoptions),expression:"new Date(stake.timestamp * 1000).toLocaleString(timeoptions)",modifiers:{hover:!0,top:!0}}],staticClass:"mr-auto ml-auto text-center"},[t._v(" Start Date: "+t._s(new Date(1e3*a.timestamp).toLocaleDateString())+" ")]),e("h5",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:new Date(1e3*a.expiry).toLocaleString(t.timeoptions),expression:"new Date(stake.expiry * 1000).toLocaleString(timeoptions)",modifiers:{hover:!0,top:!0}}],staticClass:"mr-auto ml-auto text-center"},[t._v(" End Date: "+t._s(new Date(1e3*a.expiry).toLocaleDateString())+" ")])]),e("div",{staticClass:"d-flex flex-column seat-column col"},[e("h4",{staticClass:"mr-auto ml-auto"},[t._v(" Paid: "+t._s(t.toFixedLocaleString(a.paid,2))+" Flux ")]),e("h5",{staticClass:"mr-auto ml-auto"},[t._v(" Pending: "+t._s(t.toFixedLocaleString(a.reward,2))+" Flux ")])]),e("div",{staticClass:"d-flex flex-column seat-column col"},[e("h4",{staticClass:"mr-auto ml-auto text-center"},[t._v(" Monthly Flux ")]),t.titanConfig?e("h5",{staticClass:"mr-auto ml-auto"},[t._v(" ~"+t._s(t.toFixedLocaleString(t.calcMonthlyReward(a),2))+" Flux "),a.autoreinvest?e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Stake will auto-reinvest",expression:"'Stake will auto-reinvest'",modifiers:{hover:!0,top:!0}}],attrs:{name:"sync"}}):t._e()],1):e("h5",{staticClass:"mr-auto ml-auto"},[t._v(" ... Flux ")])])],1),a.message?e("div",[e("div",{domProps:{innerHTML:t._s(a.message)}})]):t._e()])],1)})),1)]),t.myExpiredStakes.length>0?e("b-tab",{attrs:{title:"Expired"}},[e("ul",{staticClass:"marketplace-media-list"},t._l(t.myExpiredStakes,(function(a){return e("b-media",{key:a.uuid,attrs:{tag:"li","no-body":""}},[e("b-media-body",{staticClass:"app-media-body",staticStyle:{overflow:"inherit"}},[e("div",{staticClass:"d-flex flex-row row"},[e("b-avatar",{staticClass:"node-status mt-auto mb-auto",attrs:{size:"48",variant:"light-warning"}},[e("v-icon",{attrs:{scale:"1.75",name:"calendar-times"}})],1),e("div",{staticClass:"d-flex flex-column seat-column col",staticStyle:{"flex-grow":"0.8"}},[e("h3",{staticClass:"mr-auto ml-auto mt-auto mb-auto"},[t._v(" "+t._s(a.collateral.toLocaleString())+" Flux ")])]),e("div",{staticClass:"d-flex flex-column seat-column col"},[e("h4",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:new Date(1e3*a.timestamp).toLocaleString(t.timeoptions),expression:"new Date(stake.timestamp * 1000).toLocaleString(timeoptions)",modifiers:{hover:!0,top:!0}}],staticClass:"mr-auto ml-auto"},[t._v(" Start Date: "+t._s(new Date(1e3*a.timestamp).toLocaleDateString())+" ")]),e("h5",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:new Date(1e3*a.expiry).toLocaleString(t.timeoptions),expression:"new Date(stake.expiry * 1000).toLocaleString(timeoptions)",modifiers:{hover:!0,top:!0}}],staticClass:"mr-auto ml-auto"},[t._v(" End Date: "+t._s(new Date(1e3*a.expiry).toLocaleDateString())+" ")])]),e("div",{staticClass:"d-flex flex-column seat-column col"},[e("h4",{staticClass:"mr-auto ml-auto"},[t._v(" Paid: "+t._s(5===a.state?t.toFixedLocaleString(a.paid-a.collateral,2):t.toFixedLocaleString(a.paid,2))+" Flux ")]),e("h5",{staticClass:"mr-auto ml-auto"},[t._v(" Pending: "+t._s(t.toFixedLocaleString(a.reward,2))+" Flux ")])]),e("div",{staticClass:"d-flex"},[e("b-button",{staticClass:"float-right mt-1 mb-1",staticStyle:{width:"100px"},attrs:{variant:a.state>=5?"outline-secondary":"danger",size:"sm",disabled:a.state>=5||t.totalReward>=t.totalCollateral-t.titanStats.total,pill:""},on:{click:function(e){return t.showReinvestDialog(a)}}},[t._v(" "+t._s(a.state>=5?"Complete":"Reinvest")+" ")])],1)],1)])],1)})),1)]):t._e(),e("b-tab",{attrs:{title:"Payments"}},[e("ul",{staticClass:"marketplace-media-list"},[e("b-table",{staticClass:"payments-table",attrs:{striped:"",hover:"",responsive:"",items:t.myPayments,fields:t.paymentFields,"show-empty":"","empty-text":"No Payments"},scopedSlots:t._u([{key:"cell(timestamp)",fn:function(e){return[t._v(" "+t._s(new Date(e.item.timestamp).toLocaleString(t.timeoptions))+" ")]}},{key:"cell(total)",fn:function(a){return[e("p",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.right",value:`Amount = ${t.toFixedLocaleString(a.item.total,2)} Flux - ${a.item.fee} Flux redeem fee`,expression:"`Amount = ${toFixedLocaleString(data.item.total, 2)} Flux - ${data.item.fee} Flux redeem fee`",modifiers:{hover:!0,right:!0}}],staticStyle:{"margin-bottom":"0"}},[t._v(" "+t._s(t.toFixedLocaleString(a.item.total-a.item.fee,2))+" Flux ")])]}},{key:"cell(address)",fn:function(a){return[e("a",{attrs:{href:`https://explorer.runonflux.io/address/${a.item.address}`,target:"_blank",rel:"noopener noreferrer"}},[t._v(" "+t._s(a.item.address)+" ")])]}},{key:"cell(txid)",fn:function(a){return[a.item.txid?e("a",{attrs:{href:`https://explorer.runonflux.io/tx/${a.item.txid}`,target:"_blank",rel:"noopener noreferrer"}},[t._v(" View on Explorer ")]):e("h5",[t._v(" "+t._s(a.item.state||"Processing")+" ")])]}}])})],1)])],1)],1)],1)],1),e("b-col",{staticClass:"d-xxl-flex d-xl-none d-lg-none d-md-none d-sm-none",attrs:{xxl:"3"}},[e("b-card",{staticClass:"flex-grow-1",attrs:{"no-body":""}},[e("b-card-title",{staticClass:"stakes-title"},[t._v(" Redeem Flux ")]),e("b-card-body",[e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Paid: ")]),e("h4",[t._v(" "+t._s(t.calculatePaidRewards())+" Flux ")])]),e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Available: ")]),e("h4",[t._v(" "+t._s(t.toFixedLocaleString(t.totalReward,2))+" Flux ")])]),e("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:t.totalReward<=(t.titanConfig?t.titanConfig.minimumRedeem:50)?`Available balance is less than the minimum redeem amount (${t.titanConfig?t.titanConfig.minimumRedeem:50} Flux)`:"",expression:"totalReward <= (titanConfig ? titanConfig.minimumRedeem : 50) ? `Available balance is less than the minimum redeem amount (${(titanConfig ? titanConfig.minimumRedeem : 50)} Flux)` : ''",modifiers:{hover:!0,bottom:!0}}],staticClass:"float-right",staticStyle:{display:"inline-block"}},[t.totalReward>t.minStakeAmount?e("b-button",{staticClass:"mt-2 mr-1",attrs:{disabled:t.totalReward>=t.totalCollateral-t.titanStats.total,variant:"danger",size:"sm",pill:""},on:{click:function(e){return t.showStakeDialog(!0)}}},[t._v(" Re-invest Funds ")]):t._e(),e("b-button",{staticClass:"float-right mt-2",attrs:{id:"redeemButton",variant:"danger",size:"sm",pill:"",disabled:t.totalReward<=(t.titanConfig?t.titanConfig.redeemFee:0)||t.totalReward<=(t.titanConfig?t.titanConfig.minimumRedeem:50)},on:{click:function(e){return t.showRedeemDialog()}}},[t._v(" Redeem ")])],1)])],1)],1)],1):e("b-card",{attrs:{title:"My Active Flux"}},[e("h5",[t._v(" Please login using your ZelID to view your active Flux ")])])],1)],1),e("b-modal",{attrs:{title:"Titan Nodes",size:"lg",centered:"","button-size":"sm","ok-only":""},on:{ok:()=>t.nodeModalShowing=!1},model:{value:t.nodeModalShowing,callback:function(e){t.nodeModalShowing=e},expression:"nodeModalShowing"}},t._l(t.nodes,(function(a){return e("b-card",{key:a.uuid,attrs:{title:a.name}},[e("b-row",[e("b-col",[e("h5",[t._v(" Location: "+t._s(a.location)+" ")])]),e("b-col",[e("h5",[t._v(" Collateral: "+t._s(t.toFixedLocaleString(a.collateral,0))+" ")])])],1),e("b-row",[e("b-col",[e("h5",[t._v(" Created: "+t._s(new Date(a.created).toLocaleDateString())+" ")])]),e("b-col",[e("b-button",{attrs:{pill:"",size:"sm",variant:"primary"},on:{click:function(e){return t.visitNode(a)}}},[t._v(" Visit ")])],1)],1)],1)})),1),e("b-modal",{attrs:{title:"Lockup APR",size:"md",centered:"","button-size":"sm","ok-only":""},on:{ok:()=>t.aprModalShowing=!1},model:{value:t.aprModalShowing,callback:function(e){t.aprModalShowing=e},expression:"aprModalShowing"}},[e("b-card",{attrs:{title:"APR Calculations"}},[e("p",{staticClass:"text-center"},[t._v(" The APR for a Titan Shared Nodes lockup is dependent on the number of active Stratus nodes on the Flux network and the current block reward. ")]),e("p",{staticClass:"text-center"},[t._v(" APR is calculated using this basic formula: ")]),e("p",{staticClass:"text-center"},[t._v(" Per block reward (11.25) x Blocks per day (720) x 365 /"),e("br"),t._v("  (Number of Stratus nodes * 40,000) ")]),e("p",{staticClass:"text-center"},[e("br"),e("b-avatar",{attrs:{size:"24",variant:"warning",button:""}},[e("v-icon",{attrs:{scale:"0.9",name:"info"}})],1),t._v(" APR does not mean the actual or predicted returns in fiat currency or Flux. ")],1)])],1),e("b-modal",{attrs:{title:"Redeem Rewards",size:"lg",centered:"","button-size":"sm","ok-only":"","no-close-on-backdrop":"","no-close-on-esc":"","ok-title":"Cancel"},on:{ok:function(e){t.redeemModalShowing=!1,t.getMyPayments(!0)}},model:{value:t.redeemModalShowing,callback:function(e){t.redeemModalShowing=e},expression:"redeemModalShowing"}},[e("form-wizard",{staticClass:"wizard-vertical mb-3",attrs:{color:t.tierColors.cumulus,title:null,subtitle:null,layout:"vertical","back-button-text":"Previous"},on:{"on-complete":function(e){return t.confirmRedeemDialogFinish()}}},[e("tab-content",{attrs:{title:"Redeem Amount"}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Redeem Amount"}},[e("h4",[t._v(" Available: "+t._s(t.toFixedLocaleString(t.totalReward,2))+" Flux ")]),e("h4",{staticStyle:{"margin-top":"10px"}},[t._v(" You will receive ")]),e("h3",[t._v(" "+t._s(t.toFixedLocaleString(t.totalReward-t.calculateRedeemFee(),2))+" Flux ")]),e("h6",[t._v(" ("),e("span",{staticClass:"text-warning"},[t._v("Redeem Fee:")]),t.titanConfig&&t.titanConfig.maxRedeemFee?e("span",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:`Fee of ${t.titanConfig.redeemFee}% of your rewards, capped at ${t.titanConfig.maxRedeemFee} Flux`,expression:"`Fee of ${titanConfig.redeemFee}% of your rewards, capped at ${titanConfig.maxRedeemFee} Flux`",modifiers:{hover:!0,bottom:!0}}],staticClass:"text-danger"},[t._v(" "+t._s(t.toFixedLocaleString(t.calculateRedeemFee(),8))+" Flux ")]):e("span",{staticClass:"text-danger"},[t._v(" "+t._s(t.titanConfig?t.titanConfig.redeemFee:"...")+" Flux ")]),t._v(") ")])])],1),e("tab-content",{attrs:{title:"Redeem Address","before-change":()=>t.checkRedeemAddress()}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Choose Redeem Address"}},[e("b-form-select",{attrs:{options:t.redeemAddresses,disabled:t.sendingRequest||t.requestSent||t.requestFailed},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:null,disabled:""}},[t._v(" -- Please select an address -- ")])]},proxy:!0}]),model:{value:t.redeemAddress,callback:function(e){t.redeemAddress=e},expression:"redeemAddress"}})],1)],1),e("tab-content",{attrs:{title:"Sign Request","before-change":()=>null!==t.signature}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Sign Redeem Request with Zelcore"}},[e("a",{attrs:{href:t.sendingRequest||t.requestSent||t.requestFailed?"#":`zel:?action=sign&message=${t.dataToSign}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${t.callbackValue()}`},on:{click:t.initiateSignWS}},[e("img",{staticClass:"zelidLogin mb-2",attrs:{src:a(94452),alt:"Zel ID",height:"100%",width:"100%"}})]),e("b-form-input",{staticClass:"mb-1",attrs:{id:"data",disabled:!0},model:{value:t.dataToSign,callback:function(e){t.dataToSign=e},expression:"dataToSign"}}),e("b-form-input",{attrs:{id:"signature",disabled:t.sendingRequest||t.requestSent||t.requestFailed},model:{value:t.signature,callback:function(e){t.signature=e},expression:"signature"}})],1)],1),e("tab-content",{attrs:{title:"Request Redeem","before-change":()=>!0===t.requestSent}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Submit Redeem Request"}},[e("div",{staticClass:"mt-3 mb-auto"},[e("b-button",{attrs:{size:"lg",disabled:t.sendingRequest||t.requestSent,variant:"warning"},on:{click:t.requestRedeem}},[t._v(" Submit Request ")]),t.requestSent?e("h4",{staticClass:"mt-3 text-success"},[t._v(" Redeem request has been received and will be processed within 24 hours ")]):t._e(),t.requestFailed?e("h4",{staticClass:"mt-3 text-danger"},[t._v(" Redeem request failed ")]):t._e()],1)])],1)],1)],1),e("b-modal",{attrs:{title:"Pending Payment",size:"md",centered:"","button-size":"sm","ok-only":"","ok-title":"OK"},on:{ok:function(e){t.paymentDetailsDialogShowing=!1}},model:{value:t.paymentDetailsDialogShowing,callback:function(e){t.paymentDetailsDialogShowing=e},expression:"paymentDetailsDialogShowing"}},[t.selectedStake?e("b-card",{staticClass:"text-center payment-details-card",attrs:{title:"Send Funds"}},[e("b-card-text",[t._v(" To complete activation, send "),e("span",{staticClass:"text-success"},[t._v(t._s(t.toFixedLocaleString(t.selectedStake.collateral)))]),t._v(" FLUX to address"),e("br"),e("h5",{staticClass:"text-wrap ml-auto mr-auto text-warning mt-1",staticStyle:{width:"25rem"}},[t._v(" "+t._s(t.titanConfig.fundingAddress)+" ")]),t._v(" with the following message"),e("br"),e("h5",{staticClass:"text-wrap ml-auto mr-auto text-warning mt-1",staticStyle:{width:"25rem"}},[t._v(" "+t._s(t.selectedStake.signatureHash)+" ")]),e("div",{staticClass:"d-flex flex-row mt-2"},[e("h3",{staticClass:"col text-center mt-2"},[t._v(" Pay with"),e("br"),t._v("Zelcore ")]),e("a",{staticClass:"col",attrs:{href:`zel:?action=pay&coin=zelcash&address=${t.titanConfig.fundingAddress}&amount=${t.selectedStake.collateral}&message=${t.selectedStake.signatureHash}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2Fflux_banner.png`}},[e("img",{staticClass:"zelidLogin",attrs:{src:a(94452),alt:"Zel ID",height:"100%",width:"100%"}})])]),e("h5",{staticClass:"mt-1"},[t._v(" This activation will expire if the transaction is not on the blockchain before "),e("span",{staticClass:"text-danger"},[t._v(t._s(new Date(1e3*t.selectedStake.expiry).toLocaleString()))])])])],1):t._e()],1),e("b-modal",{attrs:{title:"Cancel Activation?",size:"sm",centered:"","button-size":"sm","ok-title":"Yes","cancel-title":"No"},on:{ok:function(e){t.confirmStakeDialogCloseShowing=!1,t.stakeModalShowing=!1}},model:{value:t.confirmStakeDialogCloseShowing,callback:function(e){t.confirmStakeDialogCloseShowing=e},expression:"confirmStakeDialogCloseShowing"}},[e("h3",{staticClass:"text-center"},[t._v(" Are you sure you want to cancel activating with Titan? ")])]),e("b-modal",{attrs:{title:"Finish Activation?",size:"sm",centered:"","button-size":"sm","ok-title":"Yes","cancel-title":"No"},on:{ok:function(e){t.confirmStakeDialogFinishShowing=!1,t.stakeModalShowing=!1}},model:{value:t.confirmStakeDialogFinishShowing,callback:function(e){t.confirmStakeDialogFinishShowing=e},expression:"confirmStakeDialogFinishShowing"}},[e("h3",{staticClass:"text-center"},[t._v(" Please ensure that you have sent payment for your activation, or saved the payment details for later. ")]),e("br"),e("h4",{staticClass:"text-center"},[t._v(" Close the dialog? ")])]),e("b-modal",{attrs:{title:"Re-invest Expired",size:"lg",centered:"","no-close-on-backdrop":"","no-close-on-esc":"","button-size":"sm","ok-only":"","ok-title":"Cancel"},on:{ok:function(e){t.reinvestModalShowing=!1}},model:{value:t.reinvestModalShowing,callback:function(e){t.reinvestModalShowing=e},expression:"reinvestModalShowing"}},[e("form-wizard",{staticClass:"wizard-vertical mb-3",attrs:{color:t.tierColors.cumulus,title:null,subtitle:null,layout:"vertical","back-button-text":"Previous"},on:{"on-complete":function(e){return t.reinvestDialogFinish()}}},[e("tab-content",{attrs:{title:"Update"}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Update"}},[t.selectedStake?e("div",{staticClass:"d-flex flex-column"},[e("b-form-checkbox",{staticClass:"ml-auto mr-auto",staticStyle:{float:"left"},attrs:{disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},model:{value:t.selectedStake.autoreinvest,callback:function(e){t.$set(t.selectedStake,"autoreinvest",e)},expression:"selectedStake.autoreinvest"}},[t._v(" Auto-reinvest this Flux after expiry ")]),t.titanConfig&&t.titanConfig.reinvestFee>0&&t.titanConfig.maxReinvestFee?e("div",{staticClass:"mt-2"},[e("h6",[e("span",{staticClass:"text-warning"},[t._v("Re-invest Fee:")]),e("span",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:`Fee of ${t.titanConfig.reinvestFee}% of your rewards, capped at ${t.titanConfig.maxReinvestFee} Flux`,expression:"`Fee of ${titanConfig.reinvestFee}% of your rewards, capped at ${titanConfig.maxReinvestFee} Flux`",modifiers:{hover:!0,bottom:!0}}],staticClass:"text-danger"},[t._v(" "+t._s(t.toFixedLocaleString(t.calculateReinvestFee(),8))+" Flux ")])])]):t._e()],1):t._e()])],1),e("tab-content",{attrs:{title:"Choose Duration","before-change":()=>t.checkReinvestDuration()}},[t.titanConfig?e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Select Lockup Period"}},t._l(t.titanConfig.lockups,(function(a,s){return e("div",{key:a.time,staticClass:"mb-1"},[e("div",{staticClass:"ml-auto mr-auto"},[e("b-button",{class:s===t.selectedLockupIndex?"selectedLockupButton":"unselectedLockupButton",style:`background-color: ${t.indexedTierColors[s]} !important;`,attrs:{disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},on:{click:function(e){return t.selectLockup(s)}}},[t._v(" "+t._s(a.name)+" - ~"+t._s((100*a.apr).toFixed(2))+"% ")])],1)])})),0):t._e()],1),e("tab-content",{attrs:{title:"Signing","before-change":()=>null!==t.signature}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Sign with Zelcore"}},[e("a",{attrs:{href:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed?"#":`zel:?action=sign&message=${t.dataToSign}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${t.callbackValue()}`},on:{click:t.initiateSignWS}},[e("img",{staticClass:"zelidLogin mb-2",attrs:{src:a(94452),alt:"Zel ID",height:"100%",width:"100%"}})]),e("b-form-input",{staticClass:"mb-1",attrs:{id:"data",disabled:!0},model:{value:t.dataToSign,callback:function(e){t.dataToSign=e},expression:"dataToSign"}}),e("b-form-input",{attrs:{id:"signature",disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},model:{value:t.signature,callback:function(e){t.signature=e},expression:"signature"}})],1)],1),e("tab-content",{attrs:{title:"Re-invest Flux","before-change":()=>!0===t.stakeRegistered}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Re-invest Stake with Titan"}},[e("div",{staticClass:"mt-3 mb-auto"},[e("b-button",{attrs:{size:"lg",disabled:t.registeringStake||t.stakeRegistered,variant:"success"},on:{click:t.reinvestStake}},[t._v(" Re-invest Flux ")]),t.stakeRegistered?e("h4",{staticClass:"mt-3 text-success"},[t._v(" Registration received ")]):t._e(),t.stakeRegisterFailed?e("h4",{staticClass:"mt-3 text-danger"},[t._v(" Registration failed ")]):t._e()],1)])],1)],1)],1),e("b-modal",{attrs:{title:"Active Flux Details",size:"sm",centered:"","button-size":"sm","cancel-title":"Close","ok-title":"Edit"},on:{ok:t.editActiveStake},model:{value:t.activeStakeInfoModalShowing,callback:function(e){t.activeStakeInfoModalShowing=e},expression:"activeStakeInfoModalShowing"}},[t.selectedStake?e("b-card",[e("div",{staticClass:"d-flex"},[e("b-form-checkbox",{staticClass:"ml-auto mr-auto",staticStyle:{float:"left"},attrs:{disabled:""},model:{value:t.selectedStake.autoreinvest,callback:function(e){t.$set(t.selectedStake,"autoreinvest",e)},expression:"selectedStake.autoreinvest"}},[t._v(" Auto-reinvest this Flux after expiry ")])],1)]):t._e()],1),e("b-modal",{attrs:{title:"Edit Active Flux",size:"lg",centered:"","no-close-on-backdrop":"","no-close-on-esc":"","button-size":"sm","ok-only":"","ok-title":"Cancel"},on:{ok:function(e){t.editStakeModalShowing=!1}},model:{value:t.editStakeModalShowing,callback:function(e){t.editStakeModalShowing=e},expression:"editStakeModalShowing"}},[e("form-wizard",{staticClass:"wizard-vertical mb-3",attrs:{color:t.tierColors.cumulus,title:null,subtitle:null,layout:"vertical","back-button-text":"Previous"},on:{"on-complete":function(e){t.editStakeModalShowing=!1,t.getMyStakes(!0)}}},[e("tab-content",{attrs:{title:"Update"}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Update"}},[t.selectedStake?e("div",{staticClass:"d-flex"},[e("b-form-checkbox",{staticClass:"ml-auto mr-auto",staticStyle:{float:"left"},attrs:{disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},model:{value:t.selectedStake.autoreinvest,callback:function(e){t.$set(t.selectedStake,"autoreinvest",e)},expression:"selectedStake.autoreinvest"}},[t._v(" Auto-reinvest this Flux after expiry ")])],1):t._e()])],1),e("tab-content",{attrs:{title:"Signing","before-change":()=>null!==t.signature}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Sign with Zelcore"}},[e("a",{attrs:{href:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed?"#":`zel:?action=sign&message=${t.dataToSign}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${t.callbackValue()}`},on:{click:t.initiateSignWS}},[e("img",{staticClass:"zelidLogin mb-2",attrs:{src:a(94452),alt:"Zel ID",height:"100%",width:"100%"}})]),e("b-form-input",{staticClass:"mb-1",attrs:{id:"data",disabled:!0},model:{value:t.dataToSign,callback:function(e){t.dataToSign=e},expression:"dataToSign"}}),e("b-form-input",{attrs:{id:"signature",disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},model:{value:t.signature,callback:function(e){t.signature=e},expression:"signature"}})],1)],1),e("tab-content",{attrs:{title:"Send to Titan","before-change":()=>!0===t.stakeRegistered}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Send to Titan"}},[e("div",{staticClass:"mt-3 mb-auto"},[e("b-button",{attrs:{size:"lg",disabled:t.registeringStake||t.stakeRegistered,variant:"success"},on:{click:t.sendModifiedStake}},[t._v(" Send ")]),t.stakeRegistered?e("h4",{staticClass:"mt-3 text-success"},[t._v(" Edits received by Titan ")]):t._e(),t.stakeRegisterFailed?e("h4",{staticClass:"mt-3 text-danger"},[t._v(" Editing failed ")]):t._e()],1)])],1)],1)],1),e("b-modal",{attrs:{title:"Activate Titan",size:"lg",centered:"","no-close-on-backdrop":"","no-close-on-esc":"","button-size":"sm","ok-only":"","ok-title":"Cancel"},on:{ok:t.confirmStakeDialogCancel},model:{value:t.stakeModalShowing,callback:function(e){t.stakeModalShowing=e},expression:"stakeModalShowing"}},[e("form-wizard",{staticClass:"wizard-vertical mb-3",attrs:{color:t.tierColors.cumulus,title:null,subtitle:null,layout:"vertical","back-button-text":"Previous"},on:{"on-complete":function(e){return t.confirmStakeDialogFinish()}}},[e("tab-content",{attrs:{title:"Flux Amount"}},[t.reinvestingNewStake?e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Re-investing Funds"}},[e("div",[e("h5",{staticClass:"mt-3"},[t._v(" A new Titan slot will be created using your available rewards: ")]),e("h2",{staticClass:"mt-3"},[t._v(" "+t._s(t.toFixedLocaleString(t.totalReward,2))+" Flux ")]),t.titanConfig&&t.titanConfig.reinvestFee>0&&t.titanConfig.maxReinvestFee?e("div",{staticClass:"mt-2"},[e("h6",[e("span",{staticClass:"text-warning"},[t._v("Re-invest Fee:")]),e("span",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:`Fee of ${t.titanConfig.reinvestFee}% of your rewards, capped at ${t.titanConfig.maxReinvestFee} Flux`,expression:"`Fee of ${titanConfig.reinvestFee}% of your rewards, capped at ${titanConfig.maxReinvestFee} Flux`",modifiers:{hover:!0,bottom:!0}}],staticClass:"text-danger"},[t._v(" "+t._s(t.toFixedLocaleString(t.calculateNewStakeReinvestFee(),8))+" Flux ")])])]):t._e()])]):e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Choose Flux Amount"}},[e("div",[e("h3",{staticClass:"float-left"},[t._v(" "+t._s(t.toFixedLocaleString(t.minStakeAmount))+" ")]),e("h3",{staticClass:"float-right"},[t._v(" "+t._s(t.toFixedLocaleString(t.maxStakeAmount))+" ")])]),e("b-form-input",{attrs:{id:"stakeamount",type:"range",min:t.minStakeAmount,max:t.maxStakeAmount,step:"5",number:"",disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},model:{value:t.stakeAmount,callback:function(e){t.stakeAmount=e},expression:"stakeAmount"}}),e("b-form-spinbutton",{staticClass:"stakeAmountSpinner",attrs:{id:"stakeamount-spnner",min:t.minStakeAmount,max:t.maxStakeAmount,size:"lg","formatter-fn":t.toFixedLocaleString,disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},model:{value:t.stakeAmount,callback:function(e){t.stakeAmount=e},expression:"stakeAmount"}})],1)],1),e("tab-content",{attrs:{title:"Choose Duration","before-change":()=>t.checkDuration()}},[t.titanConfig?e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Select Lockup Period"}},[t._l(t.titanConfig.lockups,(function(a,s){return e("div",{key:a.time,staticClass:"mb-1"},[e("div",{staticClass:"ml-auto mr-auto"},[e("b-button",{class:(s===t.selectedLockupIndex?"selectedLockupButton":"unselectedLockupButton")+(t.reinvestingNewStake?"Small":""),style:`background-color: ${t.indexedTierColors[s]} !important;`,attrs:{disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},on:{click:function(e){return t.selectLockup(s)}}},[t._v(" "+t._s(a.name)+" - ~"+t._s((100*a.apr).toFixed(2))+"% ")])],1)])})),e("div",{staticClass:"d-flex"},[e("b-form-checkbox",{staticClass:"ml-auto mr-auto",staticStyle:{float:"left"},attrs:{disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},model:{value:t.autoReinvestStake,callback:function(e){t.autoReinvestStake=e},expression:"autoReinvestStake"}},[t._v(" Auto-reinvest this Flux after expiry ")])],1)],2):t._e()],1),e("tab-content",{attrs:{title:"Signing","before-change":()=>null!==t.signature}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Sign with Zelcore"}},[e("a",{attrs:{href:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed?"#":`zel:?action=sign&message=${t.dataToSign}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${t.callbackValue()}`},on:{click:t.initiateSignWS}},[e("img",{staticClass:"zelidLogin mb-2",attrs:{src:a(94452),alt:"Zel ID",height:"100%",width:"100%"}})]),e("b-form-input",{staticClass:"mb-1",attrs:{id:"data",disabled:!0},model:{value:t.dataToSign,callback:function(e){t.dataToSign=e},expression:"dataToSign"}}),e("b-form-input",{attrs:{id:"signature",disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},model:{value:t.signature,callback:function(e){t.signature=e},expression:"signature"}})],1)],1),e("tab-content",{attrs:{title:"Register with Titan","before-change":()=>!0===t.stakeRegistered}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Register with Titan"}},[e("div",{staticClass:"mt-3 mb-auto"},[e("h5",[e("span",{staticClass:"text-danger"},[t._v("IMPORTANT:")]),t._v(" Your funds will be locked until ")]),e("h5",[e("span",{staticClass:"text-warning"},[t._v(t._s(new Date(Date.now()+1e3*t.getLockupDuration()).toLocaleString()))])]),e("h5",{staticClass:"mb-2"},[t._v(" You will not be able to withdraw your Flux until the time has passed. ")]),e("b-button",{attrs:{size:"lg",disabled:t.registeringStake||t.stakeRegistered,variant:"success"},on:{click:t.registerStake}},[t._v(" Register with Titan ")]),t.stakeRegistered?e("h4",{staticClass:"mt-3 text-success"},[t._v(" Registration received ")]):t._e(),t.stakeRegisterFailed?e("h4",{staticClass:"mt-3 text-danger"},[t._v(" Registration failed ")]):t._e()],1)])],1),t.reinvestingNewStake?t._e():e("tab-content",{attrs:{title:"Send Funds"}},[t.titanConfig&&t.signatureHash?e("div",[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Send Funds"}},[e("b-card-text",[t._v(" To finish activation, make a transaction of "),e("span",{staticClass:"text-success"},[t._v(t._s(t.toFixedLocaleString(t.stakeAmount)))]),t._v(" FLUX to address"),e("br"),e("h5",{staticClass:"text-wrap ml-auto mr-auto text-warning",staticStyle:{width:"25rem"}},[t._v(" "+t._s(t.titanConfig.fundingAddress)+" ")]),t._v(" with the following message"),e("br")]),e("h5",{staticClass:"text-wrap ml-auto mr-auto text-warning",staticStyle:{width:"25rem"}},[t._v(" "+t._s(t.signatureHash)+" ")]),e("div",{staticClass:"d-flex flex-row mt-2"},[e("h3",{staticClass:"col text-center mt-2"},[t._v(" Pay with"),e("br"),t._v("Zelcore ")]),e("a",{staticClass:"col",attrs:{href:`zel:?action=pay&coin=zelcash&address=${t.titanConfig.fundingAddress}&amount=${t.stakeAmount}&message=${t.signatureHash}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2Fflux_banner.png`}},[e("img",{staticClass:"zelidLogin",attrs:{src:a(94452),alt:"Zel ID",height:"100%",width:"100%"}})])])],1)],1):t._e()])],1)],1)],1)},ht=[],ft=a(19279),bt=a(49379),xt=a(19692),Ct=a(44390),wt=a(66126),St=a(1759),kt=a(16521),yt=a(9669),_t=a.n(yt),Ft=a(51136);const Rt=a(80129),Tt=a(58971),zt=a(63005),Dt={components:{BAvatar:m.SH,BButton:R.T,BCard:T._,BCardBody:ft.O,BCardText:D.j,BCardTitle:bt._,BCol:A.l,BFormCheckbox:xt.l,BFormInput:r.e,BFormSelect:Z.K,BFormSelectOption:B.c,BFormSpinbutton:Ct.G,BMedia:d.P,BMediaBody:u.D,BModal:P.N,BOverlay:wt.X,BRow:I.T,BSpinner:St.X,BTabs:M.M,BTab:L.L,BTable:kt.h,FormWizard:q.FormWizard,TabContent:q.TabContent,ToastificationContent:C.Z,VuePerfectScrollbar:S()},directives:{Ripple:b.Z,"b-modal":E.T,"b-toggle":O.M,"b-tooltip":j.o},props:{zelid:{type:String,required:!1,default:""}},setup(t){const e=(0,g.getCurrentInstance)().proxy,a=(0,x.useToast)(),s=(t,e,s="InfoIcon")=>{a({component:C.Z,props:{title:e,icon:s,variant:t},position:"bottom-right"})},i=(0,g.ref)("");i.value=t.tier;const r=(0,g.ref)("");r.value=t.zelid;const o="https://api.titan.runonflux.io",n=(0,g.ref)(0),l=(0,g.ref)(0),c=(0,g.ref)(50),d=(0,g.ref)(50),u=(0,g.ref)(1e3),p=(0,g.ref)(0),m=(0,g.ref)(null),v=(0,g.ref)(null),h=(0,g.ref)(null),f=(0,g.ref)(null),b=(0,g.ref)(null),w=(0,g.ref)(!1),S=(0,g.ref)(!1),k=(0,g.ref)(!1),y=(0,g.computed)((()=>e.$store.state.flux.config)),_=(0,g.ref)(null),F=(0,g.ref)(!0),R=(0,g.ref)(!1),T=(0,g.ref)(!0),z=(0,g.ref)("Too much Flux has registered with Titan, please wait for more Nodes to be made available"),D=(0,g.ref)(0),A=(0,g.ref)(null),$=(0,g.ref)(null),P=(0,g.ref)(!1),I=(0,g.ref)(!1),M=(0,g.ref)(!1),L=(0,g.ref)([J.Z.cumulus,J.Z.nimbus,J.Z.stratus]),Z=()=>{const{protocol:t,hostname:a}=window.location;let s="";s+=t,s+="//";const i=/[A-Za-z]/g;if(a.match(i)){const t=a.split(".");t[0]="api",s+=t.join(".")}else"string"===typeof a&&e.$store.commit("flux/setUserIp",a),s+=a,s+=":",s+=y.value.apiPort;const r=Tt.get("backendURL")||s;return r},B=()=>{const t=Z(),e=`${t}/id/providesign`;return encodeURI(e)},N=t=>{console.log(t)},E=t=>{const e=Rt.parse(t.data);"success"===e.status&&e.data&&(v.value=e.data.signature),console.log(e),console.log(t)},O=t=>{console.log(t)},j=t=>{console.log(t)},q=()=>{if(w.value||k.value||S.value)return;const{protocol:t,hostname:a}=window.location;let s="";s+=t,s+="//";const i=/[A-Za-z]/g;if(a.match(i)){const t=a.split(".");t[0]="api",s+=t.join(".")}else"string"===typeof a&&e.$store.commit("flux/setUserIp",a),s+=a,s+=":",s+=y.value.apiPort;let o=Tt.get("backendURL")||s;o=o.replace("https://","wss://"),o=o.replace("http://","ws://");const n=r.value+f.value;console.log(`signatureMessage: ${n}`);const l=`${o}/ws/sign/${n}`;console.log(l);const c=new WebSocket(l);b.value=c,c.onopen=t=>{j(t)},c.onclose=t=>{O(t)},c.onmessage=t=>{E(t)},c.onerror=t=>{N(t)}},V=(0,g.ref)(!1),W=(0,g.ref)(!1),U=(0,g.ref)(!1),H=(0,g.ref)(!1),Y=(0,g.ref)(!1),G=(0,g.ref)(!1),K=(0,g.ref)(!1),X=(0,g.ref)(!1),Q=(0,g.ref)(!1),tt=(0,g.ref)(!1),et={maxScrollbarLength:150},at=(0,g.ref)([]),st=(0,g.ref)(0),it=(0,g.ref)([]),rt=(0,g.ref)([]),ot=(0,g.ref)([]),nt=(0,g.ref)([{key:"timestamp",label:"Date"},{key:"total",label:"Amount"},{key:"address",label:"Address"},{key:"txid",label:"Transaction"}]),lt=(0,g.ref)(),ct=(0,g.ref)(),dt=(0,g.ref)(0),ut=(0,g.ref)(0),pt=async()=>{const t=await _t().get(`${o}/registermessage`);m.value=t.data,f.value=t.data.substring(t.data.length-13)},mt=async()=>{const t=await _t().get(`${o}/redeemmessage`);m.value=t.data,f.value=t.data.substring(t.data.length-13)},gt=async()=>{const t=await _t().get(`${o}/modifymessage`);m.value=t.data,f.value=t.data.substring(t.data.length-13)},vt=async()=>!!A.value&&(await mt(),!0),ht=async()=>{const t=await _t().get(`${o}/stats`);ct.value=t.data,T.value=st.value<=ct.value.total+lt.value.minStake},ft=(t,e,a,s)=>{const i=e*(100-t.fee)/100,r=720,o=r/s,n=30*o*i,l=n/a,c=12*l,d=(1+c/12)**12-1;return d},bt=t=>{if(0===at.value.length)return 0;const e=ft(t,11.25,4e4,dt.value),a=ft(t,4.6875,12500,ut.value),s=at.value.reduce(((t,e)=>t+(4e4===e.collateral?1:0)),0),i=at.value.reduce(((t,e)=>t+(12500===e.collateral?1:0)),0);return(e*s+a*i)/(s+i)},xt=async()=>{const t=await _t().get(`${o}/nodes`),e=[];st.value=0,t.data.forEach((t=>{const a=t;e.push(a),st.value+=a.collateral})),at.value=e.sort(((t,e)=>t.name.toLowerCase()>e.name.toLowerCase()?1:-1)),lt.value.lockups.forEach((t=>{t.apr=bt(t)}))},Ct=async(t=!1)=>{try{if(r.value.length>0){const e=await _t().get(`${o}/stakes/${r.value}${t?`?timestamp=${Date.now()}`:""}`);if(e.data&&"error"===e.data.status)return;const a=[],s=[],i=Date.now()/1e3;n.value=0,l.value=0,console.log(e.data),e.data.forEach((t=>{t.expiry=4&&(s.push(t),4===t.state&&(l.value+=t.reward-t.collateral)):(a.push(t),l.value+=t.reward),n.value+=t.reward})),it.value=a,rt.value=s}}catch(e){s("danger",e.message||e),console.log(e)}},wt=async(t=!1)=>{if(r.value.length>0){const e=await _t().get(`${o}/payments/${r.value}${t?`?timestamp=${Date.now()}`:""}`);ot.value=e.data}},St=async()=>{const t=await Ft.Z.fluxnodeCount();if("error"===t.data.status)return s({component:C.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}}),0;const e=t.data.data;return e},kt=()=>!(!lt.value||!lt.value.maintenanceMode),yt=async()=>{try{const t=await St();dt.value=t["stratus-enabled"],ut.value=t["nimbus-enabled"];const e=await _t().get(`${o}/config`);lt.value=e.data,lt.value.lockups.sort(((t,e)=>t.blocks-e.blocks)),lt.value.lockups.forEach((t=>{t.apr=bt(t)})),e.data.minStake>0&&(d.value=e.data.minStake),e.data.maxStake>0&&(u.value=e.data.maxStake),await xt(),await ht(),Ct(),wt(),st.value-ct.value.total{yt()}),12e4);const Dt=(t=!1)=>{lt.value&<.value.maintenanceMode||(R.value=t,V.value=!0,w.value=!1,S.value=!1,k.value=!1,c.value=d.value,p.value=0,v.value=null,h.value=null)},At=()=>{R.value?V.value=!1:U.value=!0,Ct(!0)},$t=t=>{t.preventDefault(),W.value=!0},Pt=t=>{lt.value&<.value.maintenanceMode||(_.value=JSON.parse(JSON.stringify(t)),Q.value=!0)},It=async()=>{lt.value&<.value.maintenanceMode||(Q.value=!1,await gt(),w.value=!1,S.value=!1,k.value=!1,v.value=null,h.value=null,tt.value=!0)},Mt=async()=>{k.value=!0;const t=localStorage.getItem("zelidauth"),e={stake:_.value.uuid,timestamp:f.value,signature:v.value,data:m.value,autoreinvest:_.value.autoreinvest,reinvest:!1};s("info","Sending modifications to Titan...");const a={headers:{zelidauth:t,backend:Z()}},i=await _t().post(`${o}/modifystake`,e,a).catch((t=>{console.log(t),S.value=!0,s("danger",t.message||t)}));console.log(i.data),i&&i.data&&"success"===i.data.status?(w.value=!0,s("success",i.data.message||i.data)):(S.value=!0,s("danger",(i.data.data?i.data.data.message:i.data.message)||i.data))},Lt=t=>{lt.value&<.value.maintenanceMode||(w.value=!1,S.value=!1,k.value=!1,p.value=0,v.value=null,h.value=null,_.value=JSON.parse(JSON.stringify(t)),gt(),X.value=!0)},Zt=()=>{Ct(!0),X.value=!1},Bt=()=>{const t=_.value.reward-_.value.collateral;let e=t*(lt.value.reinvestFee/100);return e>lt.value.maxReinvestFee&&(e=lt.value.maxReinvestFee),e},Nt=()=>{const t=l.value;let e=t*(lt.value.reinvestFee/100);return e>lt.value.maxReinvestFee&&(e=lt.value.maxReinvestFee),e},Et=()=>{if(!lt.value)return 0;if(!lt.value.maxRedeemFee)return lt.value.redeemFee;const t=l.value;let e=t*(lt.value.redeemFee/100);return e>lt.value.maxRedeemFee&&(e=lt.value.maxRedeemFee),e},Ot=t=>{p.value=t},jt=()=>{lt.value&<.value.maintenanceMode||(Y.value=!0)},qt=()=>{lt.value&<.value.maintenanceMode||(G.value=!0)},Vt=()=>{if(lt.value&<.value.maintenanceMode)return;const t=[];it.value.forEach((e=>{e.address&&!t.some((t=>t.text===e.address))&&t.push({value:e.uuid,text:e.address})})),rt.value.forEach((e=>{e.address&&!t.some((t=>t.text===e.address))&&t.push({value:e.uuid,text:e.address})})),D.value=lt.value.redeemFee,A.value=null,$.value=t,m.value=null,v.value=null,M.value=!1,P.value=!1,I.value=!1,K.value=!0},Wt=()=>{lt.value&<.value.maintenanceMode||(K.value=!1,Ct(!0),wt(!0))},Ut=t=>{lt.value&<.value.maintenanceMode||(_.value=JSON.parse(JSON.stringify(t)),H.value=!0)},Ht=async()=>{k.value=!0;const t=localStorage.getItem("zelidauth"),e={stake:_.value.uuid,timestamp:f.value,signature:v.value,data:m.value,autoreinvest:_.value.autoreinvest,reinvest:!0,lockup:lt.value.lockups[p.value]};s("info","Re-investing with Titan...");const a={headers:{zelidauth:t,backend:Z()}},i=await _t().post(`${o}/modifystake`,e,a).catch((t=>{console.log(t),S.value=!0,s("danger",t.message||t)}));console.log(i.data),i&&i.data&&"success"===i.data.status?(w.value=!0,s("success",i.data.message||i.data)):(S.value=!0,s("danger",(i.data.data?i.data.data.message:i.data.message)||i.data))},Yt=async()=>{k.value=!0;const t=localStorage.getItem("zelidauth"),e={amount:R.value?0:c.value,lockup:lt.value.lockups[p.value],timestamp:f.value,signature:v.value,data:m.value,autoreinvest:F.value,stakefromrewards:R.value};s("info","Registering with Titan...");const a={headers:{zelidauth:t,backend:Z()}},i=await _t().post(`${o}/register`,e,a).catch((t=>{console.log(t),S.value=!0,s("danger",t.message||t)}));console.log(i.data),i&&i.data&&"success"===i.data.status?(w.value=!0,h.value=i.data.hash,s("success",i.data.message||i.data)):(S.value=!0,s("danger",(i.data.data?i.data.data.message:i.data.message)||i.data))},Jt=(t,e=0)=>{const a=Math.floor(t*10**e)/10**e;return e<4?a.toLocaleString():`${a}`},Gt=async()=>{M.value=!0;const t=localStorage.getItem("zelidauth"),e={amount:n.value,stake:A.value,timestamp:f.value,signature:v.value,data:m.value};console.log(e),s("info","Sending redeem request to Titan...");const a={headers:{zelidauth:t,backend:Z()}},i=await _t().post(`${o}/redeem`,e,a).catch((t=>{console.log(t),I.value=!0,s("danger",t.message||t)}));console.log(i.data),i&&i.data&&"success"===i.data.status?(P.value=!0,s("success",i.data.message||i.data),yt()):(I.value=!0,s("danger",(i.data.data?i.data.data.message:i.data.message)||i.data))},Kt=t=>{const e=lt.value.lockups.find((e=>e.fee===t.fee));return e?t.collateral*e.apr/12:0},Xt=()=>{let t=it.value?it.value.reduce(((t,e)=>t+e.paid-(e.feePaid??0)),0):0;return t+=rt.value?rt.value.reduce(((t,e)=>t+e.paid-(e.feePaid??0)-(5===e.state?e.collateral:0)),0):0,Jt(t,2)},Qt=t=>{window.open(`http://${t.address}`,"_blank")},te=async()=>(await pt(),p.value>=0&&p.valuelt.value?lt.value.lockups[p.value].time:0,ae=async()=>p.value>=0&&p.value{console.log(D.value);const t=parseFloat(D.value);return console.log(t),console.log(n.value),t>lt.value.redeemFee&&t<=parseFloat(Jt(n.value,2))},ie=t=>`Send a payment of ${t.collateral} Flux to
${lt.value.nodeAddress}
with a message
${t.signatureHash}`;return{perfectScrollbarSettings:et,timeoptions:zt,nodes:at,totalCollateral:st,myStakes:it,myExpiredStakes:rt,myPayments:ot,paymentFields:nt,totalReward:n,titanConfig:lt,titanStats:ct,tooMuchStaked:T,defaultStakeDisabledMessage:z,userZelid:r,signature:v,signatureHash:h,dataToSign:m,callbackValue:B,initiateSignWS:q,timestamp:f,getMyStakes:Ct,getMyPayments:wt,calcAPR:bt,calcMonthlyReward:Kt,calculatePaidRewards:Xt,toFixedLocaleString:Jt,formatPaymentTooltip:ie,showNodeInfoDialog:jt,nodeModalShowing:Y,visitNode:Qt,showAPRInfoDialog:qt,aprModalShowing:G,stakeModalShowing:V,showStakeDialog:Dt,reinvestingNewStake:R,stakeAmount:c,minStakeAmount:d,maxStakeAmount:u,stakeRegistered:w,stakeRegisterFailed:S,selectedLockupIndex:p,selectLockup:Ot,autoReinvestStake:F,registeringStake:k,registerStake:Yt,checkDuration:te,getLockupDuration:ee,getRegistrationMessage:pt,confirmStakeDialogCancel:$t,confirmStakeDialogCloseShowing:W,confirmStakeDialogFinish:At,confirmStakeDialogFinishShowing:U,showActiveStakeInfoDialog:Pt,activeStakeInfoModalShowing:Q,editActiveStake:It,editStakeModalShowing:tt,sendModifiedStake:Mt,showReinvestDialog:Lt,getModifyMessage:gt,reinvestModalShowing:X,reinvestStake:Ht,checkReinvestDuration:ae,reinvestDialogFinish:Zt,calculateReinvestFee:Bt,calculateNewStakeReinvestFee:Nt,showPaymentDetailsDialog:Ut,paymentDetailsDialogShowing:H,selectedStake:_,showOverlay:kt,showRedeemDialog:Vt,redeemModalShowing:K,redeemAmount:D,redeemAddress:A,redeemAddresses:$,redeemAmountState:se,getRedeemMessage:mt,checkRedeemAddress:vt,sendingRequest:M,requestSent:P,requestFailed:I,requestRedeem:Gt,confirmRedeemDialogFinish:Wt,calculateRedeemFee:Et,tierColors:J.Z,indexedTierColors:L}}},At=Dt;var $t=(0,pt.Z)(At,vt,ht,!1,null,"46b6fc5e",null);const Pt=$t.exports;var It=function(){var t=this,e=t._self._c;return e("div",{staticClass:"sidebar-left"},[e("div",{staticClass:"sidebar"},[e("div",{staticClass:"sidebar-content marketplace-sidebar"},[e("div",{staticClass:"marketplace-app-menu"},[e("div",{staticClass:"add-task"}),e("vue-perfect-scrollbar",{staticClass:"sidebar-menu-list scroll-area",attrs:{settings:t.perfectScrollbarSettings}},[e("b-list-group",{staticClass:"list-group-filters"},t._l(t.taskFilters,(function(a){return e("b-list-group-item",{key:a.title+t.$route.path,attrs:{to:a.route,active:t.isDynamicRouteActive(a.route)},on:{click:function(e){t.$emit("close-app-view"),t.$emit("close-left-sidebar")}}},[e("v-icon",{staticClass:"mr-75 icon-spacing",attrs:{name:a.icon,scale:"1.55"}}),e("span",{staticClass:"line-height-2"},[t._v(t._s(a.title))])],1)})),1),e("hr"),e("b-list-group",{staticClass:"list-group-filters"},t._l(t.nodeActions,(function(a){return e("b-list-group-item",{key:a.title+t.$route.path,attrs:{to:a.route,active:t.isDynamicRouteActive(a.route),target:"_blank",rel:"noopener noreferrer"},on:{click:function(e){t.$emit("close-app-view"),t.$emit("close-left-sidebar"),t.$emit(a.event)}}},[e("v-icon",{staticClass:"mr-75 icon-spacing",attrs:{name:a.icon,scale:"1.55"}}),e("span",{staticClass:"line-height-2"},[t._v(t._s(a.title))])],1)})),1)],1)],1)])])])},Mt=[],Lt=a(70322),Zt=a(88367),Bt=a(82162);const Nt={directives:{Ripple:b.Z},components:{BListGroup:Lt.N,BListGroupItem:Zt.f,VuePerfectScrollbar:S()},props:{zelid:{type:String,required:!1,default:""}},setup(t){const e={maxScrollbarLength:60},a=(0,g.ref)("");a.value=t.zelid;const s=[{title:"All Categories",icon:"inbox",route:{name:"apps-marketplace"}}];Bt.categories.forEach((t=>{s.push({title:t.name,icon:t.icon,route:{name:"apps-marketplace-filter",params:{filter:t.name.toLowerCase()}}})}));const i=[{title:"Shared Nodes",icon:"inbox",event:"open-shared-nodes",route:{name:"apps-marketplace-sharednodes"}}];return{perfectScrollbarSettings:e,taskFilters:s,nodeActions:i,isDynamicRouteActive:h._d}}},Et=Nt;var Ot=(0,pt.Z)(Et,It,Mt,!1,null,null,null);const jt=Ot.exports,qt=a(80129),Vt=a(9669),Wt=a(63005),Ut={components:{BFormInput:r.e,BInputGroup:o.w,BInputGroupPrepend:n.P,BDropdown:l.R,BDropdownItem:c.E,BMedia:d.P,BMediaBody:u.D,BBadge:p.k,BAvatar:m.SH,AppView:gt,SharedNodesView:Pt,CategorySidebar:jt,VuePerfectScrollbar:S(),ToastificationContent:C.Z},directives:{Ripple:b.Z},setup(){const t=(0,g.ref)(null),e=(0,g.ref)(null),a=(0,g.ref)(""),{route:s,router:i}=(0,h.tv)(),r=(0,g.ref)(!1),o=(0,g.ref)(!1),n=(0,x.useToast)();(0,g.onBeforeMount)((()=>{const t=localStorage.getItem("zelidauth"),a=qt.parse(t);e.value=a.zelid,o.value="/apps/shared-nodes"===s.value.path}));const l=t=>t.compose.reduce(((t,e)=>t+e.cpu),0),c=t=>t.compose.reduce(((t,e)=>t+e.ram),0),d=t=>t.compose.reduce(((t,e)=>t+e.hdd),0),u=t=>264e3===t.expire?"1 year":66e3===t.expire?"3 months":132e3===t.expire?"6 months":"1 month",{showDetailSidebar:p}=(0,f.w)(),m=(0,g.computed)((()=>s.value.query.sort)),b=(0,g.computed)((()=>s.value.query.q)),w=(0,g.computed)((()=>s.value.params)),S=(0,g.ref)([]),_=["latest","title-asc","title-desc","end-date","cpu","ram","hdd"],F=(0,g.ref)(m.value);(0,g.watch)(m,(t=>{_.includes(t),F.value=t}));const R=()=>{const t=JSON.parse(JSON.stringify(s.value.query));delete t.sort,i.replace({name:s.name,query:t}).catch((()=>{}))},T=(0,g.ref)({}),z=(t,e,a="InfoIcon")=>{n({component:C.Z,props:{title:e,icon:a,variant:t}})},D=t=>{const e=Bt.categories.filter((e=>e.name===t.name));return 0===e.length?Bt.defaultCategory.variant:e[0].variant},A=t=>{const e=Bt.categories.filter((e=>e.name===t.name));return 0===e.length?Bt.defaultCategory.variant:e[0].variant},$=t=>{const e=Bt.categories.filter((e=>e.name===t.name));return 0===e.length?Bt.defaultCategory.icon:e[0].icon},P=(0,g.ref)(b.value);(0,g.watch)(b,(t=>{P.value=t}));const I=t=>{const e=JSON.parse(JSON.stringify(s.value.query));t?e.q=t:delete e.q,i.replace({name:s.name,query:e})},M=t=>{const e=Bt.categories.find((e=>e.name===t));return e||Bt.defaultCategory},L=async()=>{const t=await y.Z.getMarketPlaceURL();if("success"===t.data.status&&t.data.data){const e=await Vt.get(t.data.data);console.log(e),"success"===e.data.status?(S.value=e.data.data.filter((t=>t.visible)),S.value.forEach((t=>{t.extraDetail=M(t.category)})),i.currentRoute.params.filter&&(S.value=S.value.filter((t=>t.extraDetail.name.toLowerCase()===i.currentRoute.params.filter.toLowerCase()))),P.value&&(S.value=S.value.filter((t=>!!t.name.toLowerCase().includes(P.value)||!!t.description.toLowerCase().includes(P.value)))),F.value&&S.value.sort(((t,e)=>"title-asc"===F.value?t.name.localeCompare(e.name):"title-desc"===F.value?e.name.localeCompare(t.name):"cpu"===F.value?l(t)-l(e):"ram"===F.value?c(t)-c(e):"hdd"===F.value?d(t)-d(e):"price"===F.value?t.price-e.price:0))):z("danger",e.data.data.message||e.data.data)}else z("danger",t.data.data.message||t.data.data)};(0,g.watch)([P,F],(()=>L())),(0,g.watch)(w,(()=>{L()}));const Z=async()=>{const t=await k.Z.getFluxNodeStatus();"success"===t.data.status&&(a.value=t.data.data.tier),L()};Z();const B=t=>{T.value=t,r.value=!0},N={maxScrollbarLength:150};return{zelid:e,tier:a,appListRef:t,timeoptions:Wt,app:T,handleAppClick:B,updateRouteQuery:I,searchQuery:P,filteredApps:S,sortOptions:_,resetSortAndNavigate:R,perfectScrollbarSettings:N,resolveTagVariant:D,resolveAvatarVariant:A,resolveAvatarIcon:$,avatarText:v.k3,isAppViewActive:r,isSharedNodesViewActive:o,showDetailSidebar:p,resolveHdd:d,resolveCpu:l,resolveRam:c,adjustPeriod:u}}},Ht=Ut;var Yt=(0,pt.Z)(Ht,s,i,!1,null,null,null);const Jt=Yt.exports},6044:(t,e,a)=>{"use strict";a.d(e,{w:()=>r});var s=a(20144),i=a(73507);const r=()=>{const t=(0,s.ref)(!1),e=(0,s.computed)((()=>i.Z.getters["app/currentBreakPoint"]));return(0,s.watch)(e,((e,a)=>{"md"===a&&"lg"===e&&(t.value=!1)})),{mqShallShowLeftSidebar:t}}},1923:(t,e,a)=>{"use strict";a.d(e,{k3:()=>s});a(70560),a(23646);const s=t=>{if(!t)return"";const e=t.split(" ");return e.map((t=>t.charAt(0).toUpperCase())).join("")}},72918:(t,e,a)=>{"use strict";a.d(e,{Z:()=>i});const s={cumulus:"#2B61D1",nimbus:"#ff9f43",stratus:"#ea5455"},i=s},63005:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>r});const s={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},i={year:"numeric",month:"short",day:"numeric"},r={shortDate:s,date:i}},43672:(t,e,a)=>{"use strict";a.d(e,{Z:()=>i});var s=a(80914);const i={listRunningApps(){return(0,s.Z)().get("/apps/listrunningapps")},listAllApps(){return(0,s.Z)().get("/apps/listallapps")},installedApps(){return(0,s.Z)().get("/apps/installedapps")},availableApps(){return(0,s.Z)().get("/apps/availableapps")},getEnterpriseNodes(){return(0,s.Z)().get("/apps/enterprisenodes")},stopApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appstop/${e}`,a)},startApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appstart/${e}`,a)},pauseApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/apppause/${e}`,a)},unpauseApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appunpause/${e}`,a)},restartApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/apprestart/${e}`,a)},removeApp(t,e){const a={headers:{zelidauth:t},onDownloadProgress(t){console.log(t)}};return(0,s.Z)().get(`/apps/appremove/${e}`,a)},registerApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().post("/apps/appregister",JSON.stringify(e),a)},updateApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().post("/apps/appupdate",JSON.stringify(e),a)},checkCommunication(){return(0,s.Z)().get("/flux/checkcommunication")},checkDockerExistance(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().post("/apps/checkdockerexistance",JSON.stringify(e),a)},appsRegInformation(){return(0,s.Z)().get("/apps/registrationinformation")},appsDeploymentInformation(){return(0,s.Z)().get("/apps/deploymentinformation")},getAppLocation(t){return(0,s.Z)().get(`/apps/location/${t}`)},globalAppSpecifications(){return(0,s.Z)().get("/apps/globalappsspecifications")},permanentMessagesOwner(t){return(0,s.Z)().get(`/apps/permanentmessages?owner=${t}`)},getInstalledAppSpecifics(t){return(0,s.Z)().get(`/apps/installedapps/${t}`)},getAppSpecifics(t){return(0,s.Z)().get(`/apps/appspecifications/${t}`)},getAppOwner(t){return(0,s.Z)().get(`/apps/appowner/${t}`)},getAppLogsTail(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/applog/${e}/100`,a)},getAppTop(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/apptop/${e}`,a)},getAppInspect(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appinspect/${e}`,a)},getAppStats(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appstats/${e}`,a)},getAppChanges(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appchanges/${e}`,a)},getAppExec(t,e,a,i){const r={headers:{zelidauth:t}},o={appname:e,cmd:a,env:JSON.parse(i)};return(0,s.Z)().post("/apps/appexec",JSON.stringify(o),r)},reindexGlobalApps(t){return(0,s.Z)().get("/apps/reindexglobalappsinformation",{headers:{zelidauth:t}})},reindexLocations(t){return(0,s.Z)().get("/apps/reindexglobalappslocation",{headers:{zelidauth:t}})},rescanGlobalApps(t,e,a){return(0,s.Z)().get(`/apps/rescanglobalappsinformation/${e}/${a}`,{headers:{zelidauth:t}})},getAppPirce(t){return(0,s.Z)().post("/apps/calculateprice",JSON.stringify(t))},getFolder(t,e){return(0,s.Z)().get(`/apps/fluxshare/getfolder/${e}`,{headers:{zelidauth:t}})},createFolder(t,e){return(0,s.Z)().get(`/apps/fluxshare/createfolder/${e}`,{headers:{zelidauth:t}})},getFile(t,e){return(0,s.Z)().get(`/apps/fluxshare/getfile/${e}`,{headers:{zelidauth:t}})},removeFile(t,e){return(0,s.Z)().get(`/apps/fluxshare/removefile/${e}`,{headers:{zelidauth:t}})},shareFile(t,e){return(0,s.Z)().get(`/apps/fluxshare/sharefile/${e}`,{headers:{zelidauth:t}})},unshareFile(t,e){return(0,s.Z)().get(`/apps/fluxshare/unsharefile/${e}`,{headers:{zelidauth:t}})},removeFolder(t,e){return(0,s.Z)().get(`/apps/fluxshare/removefolder/${e}`,{headers:{zelidauth:t}})},fileExists(t,e){return(0,s.Z)().get(`/apps/fluxshare/fileexists/${e}`,{headers:{zelidauth:t}})},storageStats(t){return(0,s.Z)().get("/apps/fluxshare/stats",{headers:{zelidauth:t}})},renameFileFolder(t,e,a){return(0,s.Z)().get(`/apps/fluxshare/rename/${e}/${a}`,{headers:{zelidauth:t}})},appPrice(t){return(0,s.Z)().post("/apps/calculateprice",JSON.stringify(t))},appRegistrationVerificaiton(t){return(0,s.Z)().post("/apps/verifyappregistrationspecifications",JSON.stringify(t))},appUpdateVerification(t){return(0,s.Z)().post("/apps/verifyappupdatespecifications",JSON.stringify(t))},getAppMonitoring(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appmonitor/${e}`,a)},startAppMonitoring(t,e){const a={headers:{zelidauth:t}};return e?(0,s.Z)().get(`/apps/startmonitoring/${e}`,a):(0,s.Z)().get("/apps/startmonitoring",a)},stopAppMonitoring(t,e,a){const i={headers:{zelidauth:t}};return e&&a?(0,s.Z)().get(`/apps/stopmonitoring/${e}/${a}`,i):e?(0,s.Z)().get(`/apps/stopmonitoring/${e}`,i):a?(0,s.Z)().get(`/apps/stopmonitoring?deletedata=${a}`,i):(0,s.Z)().get("/apps/stopmonitoring",i)},justAPI(){return(0,s.Z)()}}},51136:(t,e,a)=>{"use strict";a.d(e,{Z:()=>i});var s=a(80914);const i={listFluxNodes(){return(0,s.Z)().get("/daemon/listzelnodes")},fluxnodeCount(){return(0,s.Z)().get("/daemon/getzelnodecount")},blockReward(){return(0,s.Z)().get("/daemon/getblocksubsidy")}}},39055:(t,e,a)=>{"use strict";a.d(e,{Z:()=>i});var s=a(80914);const i={softUpdateFlux(t){return(0,s.Z)().get("/flux/softupdateflux",{headers:{zelidauth:t}})},softUpdateInstallFlux(t){return(0,s.Z)().get("/flux/softupdatefluxinstall",{headers:{zelidauth:t}})},updateFlux(t){return(0,s.Z)().get("/flux/updateflux",{headers:{zelidauth:t}})},hardUpdateFlux(t){return(0,s.Z)().get("/flux/hardupdateflux",{headers:{zelidauth:t}})},rebuildHome(t){return(0,s.Z)().get("/flux/rebuildhome",{headers:{zelidauth:t}})},updateDaemon(t){return(0,s.Z)().get("/flux/updatedaemon",{headers:{zelidauth:t}})},reindexDaemon(t){return(0,s.Z)().get("/flux/reindexdaemon",{headers:{zelidauth:t}})},updateBenchmark(t){return(0,s.Z)().get("/flux/updatebenchmark",{headers:{zelidauth:t}})},getFluxVersion(){return(0,s.Z)().get("/flux/version")},broadcastMessage(t,e){const a=e,i={headers:{zelidauth:t}};return(0,s.Z)().post("/flux/broadcastmessage",JSON.stringify(a),i)},connectedPeers(){return(0,s.Z)().get(`/flux/connectedpeers?timestamp=${Date.now()}`)},connectedPeersInfo(){return(0,s.Z)().get(`/flux/connectedpeersinfo?timestamp=${Date.now()}`)},incomingConnections(){return(0,s.Z)().get(`/flux/incomingconnections?timestamp=${Date.now()}`)},incomingConnectionsInfo(){return(0,s.Z)().get(`/flux/incomingconnectionsinfo?timestamp=${Date.now()}`)},addPeer(t,e){return(0,s.Z)().get(`/flux/addpeer/${e}`,{headers:{zelidauth:t}})},removePeer(t,e){return(0,s.Z)().get(`/flux/removepeer/${e}`,{headers:{zelidauth:t}})},removeIncomingPeer(t,e){return(0,s.Z)().get(`/flux/removeincomingpeer/${e}`,{headers:{zelidauth:t}})},adjustCruxID(t,e){return(0,s.Z)().get(`/flux/adjustcruxid/${e}`,{headers:{zelidauth:t}})},adjustKadena(t,e,a){return(0,s.Z)().get(`/flux/adjustkadena/${e}/${a}`,{headers:{zelidauth:t}})},adjustRouterIP(t,e){return(0,s.Z)().get(`/flux/adjustrouterip/${e}`,{headers:{zelidauth:t}})},adjustBlockedPorts(t,e){const a={blockedPorts:e},i={headers:{zelidauth:t}};return(0,s.Z)().post("/flux/adjustblockedports",JSON.stringify(a),i)},adjustAPIPort(t,e){return(0,s.Z)().get(`/flux/adjustapiport/${e}`,{headers:{zelidauth:t}})},adjustBlockedRepositories(t,e){const a={blockedRepositories:e},i={headers:{zelidauth:t}};return(0,s.Z)().post("/flux/adjustblockedrepositories",JSON.stringify(a),i)},getCruxID(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/cruxid",t)},getKadenaAccount(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/kadena",t)},getRouterIP(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/routerip",t)},getBlockedPorts(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/blockedports",t)},getAPIPort(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/apiport",t)},getBlockedRepositories(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/blockedrepositories",t)},getMarketPlaceURL(){return(0,s.Z)().get("/flux/marketplaceurl")},getZelid(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/zelid",t)},getStaticIpInfo(){return(0,s.Z)().get("/flux/staticip")},restartFluxOS(t){const e={headers:{zelidauth:t,"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/restart",e)},tailFluxLog(t,e){return(0,s.Z)().get(`/flux/tail${t}log`,{headers:{zelidauth:e}})},justAPI(){return(0,s.Z)()},cancelToken(){return s.S}}},85498:function(t){!function(e,a){t.exports=a()}("undefined"!=typeof self&&self,(function(){return function(t){function e(s){if(a[s])return a[s].exports;var i=a[s]={i:s,l:!1,exports:{}};return t[s].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var a={};return e.m=t,e.c=a,e.d=function(t,a,s){e.o(t,a)||Object.defineProperty(t,a,{configurable:!1,enumerable:!0,get:s})},e.n=function(t){var a=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(a,"a",a),a},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=7)}([function(t,e){t.exports=function(t,e,a,s,i,r){var o,n=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(o=t,n=t.default);var c,d="function"==typeof n?n.options:n;if(e&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0),a&&(d.functional=!0),i&&(d._scopeId=i),r?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},d._ssrRegister=c):s&&(c=s),c){var u=d.functional,p=u?d.render:d.beforeCreate;u?(d._injectStyles=c,d.render=function(t,e){return c.call(e),p(t,e)}):d.beforeCreate=p?[].concat(p,c):[c]}return{esModule:o,exports:n,options:d}}},function(t,e,a){"use strict";var s=a(2),i=a(4),r=a(14);e.a={name:"form-wizard",components:{WizardButton:s.a,WizardStep:i.a},props:{title:{type:String,default:"Awesome Wizard"},subtitle:{type:String,default:"Split a complicated flow in multiple steps"},nextButtonText:{type:String,default:"Next"},backButtonText:{type:String,default:"Back"},finishButtonText:{type:String,default:"Finish"},hideButtons:{type:Boolean,default:!1},validateOnBack:Boolean,color:{type:String,default:"#e74c3c"},errorColor:{type:String,default:"#8b0000"},shape:{type:String,default:"circle"},layout:{type:String,default:"horizontal"},stepsClasses:{type:[String,Array],default:""},stepSize:{type:String,default:"md",validator:function(t){return-1!==["xs","sm","md","lg"].indexOf(t)}},transition:{type:String,default:""},startIndex:{type:Number,default:0,validator:function(t){return t>=0}}},provide:function(){return{addTab:this.addTab,removeTab:this.removeTab}},data:function(){return{activeTabIndex:0,currentPercentage:0,maxStep:0,loading:!1,tabs:[]}},computed:{slotProps:function(){return{nextTab:this.nextTab,prevTab:this.prevTab,activeTabIndex:this.activeTabIndex,isLastStep:this.isLastStep,fillButtonStyle:this.fillButtonStyle}},tabCount:function(){return this.tabs.length},isLastStep:function(){return this.activeTabIndex===this.tabCount-1},isVertical:function(){return"vertical"===this.layout},displayPrevButton:function(){return 0!==this.activeTabIndex},stepPercentage:function(){return 1/(2*this.tabCount)*100},progressBarStyle:function(){return{backgroundColor:this.color,width:this.progress+"%",color:this.color}},fillButtonStyle:function(){return{backgroundColor:this.color,borderColor:this.color,color:"white"}},progress:function(){return this.activeTabIndex>0?this.stepPercentage*(2*this.activeTabIndex+1):this.stepPercentage}},methods:{emitTabChange:function(t,e){this.$emit("on-change",t,e),this.$emit("update:startIndex",e)},addTab:function(t){var e=this.$slots.default.indexOf(t.$vnode);t.tabId=""+t.title.replace(/ /g,"")+e,this.tabs.splice(e,0,t),e-1&&(a===this.activeTabIndex&&(this.maxStep=this.activeTabIndex-1,this.changeTab(this.activeTabIndex,this.activeTabIndex-1)),athis.activeTabIndex;if(t<=this.maxStep){var s=function s(){a&&t-e.activeTabIndex>1?(e.changeTab(e.activeTabIndex,e.activeTabIndex+1),e.beforeTabChange(e.activeTabIndex,s)):(e.changeTab(e.activeTabIndex,t),e.afterTabChange(e.activeTabIndex))};a?this.beforeTabChange(this.activeTabIndex,s):(this.setValidationError(null),s())}return t<=this.maxStep},nextTab:function(){var t=this,e=function(){t.activeTabIndex0&&(t.setValidationError(null),t.changeTab(t.activeTabIndex,t.activeTabIndex-1))};this.validateOnBack?this.beforeTabChange(this.activeTabIndex,e):e()},focusNextTab:function(){var t=Object(r.b)(this.tabs);if(-1!==t&&t0){var e=this.tabs[t-1].tabId;Object(r.a)(e)}},setLoading:function(t){this.loading=t,this.$emit("on-loading",t)},setValidationError:function(t){this.tabs[this.activeTabIndex].validationError=t,this.$emit("on-error",t)},validateBeforeChange:function(t,e){var a=this;if(this.setValidationError(null),Object(r.c)(t))this.setLoading(!0),t.then((function(t){a.setLoading(!1);var s=!0===t;a.executeBeforeChange(s,e)})).catch((function(t){a.setLoading(!1),a.setValidationError(t)}));else{var s=!0===t;this.executeBeforeChange(s,e)}},executeBeforeChange:function(t,e){this.$emit("on-validate",t,this.activeTabIndex),t?e():this.tabs[this.activeTabIndex].validationError="error"},beforeTabChange:function(t,e){if(!this.loading){var a=this.tabs[t];if(a&&void 0!==a.beforeChange){var s=a.beforeChange();this.validateBeforeChange(s,e)}else e()}},afterTabChange:function(t){if(!this.loading){var e=this.tabs[t];e&&void 0!==e.afterChange&&e.afterChange()}},changeTab:function(t,e){var a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=this.tabs[t],i=this.tabs[e];return s&&(s.active=!1),i&&(i.active=!0),a&&this.activeTabIndex!==e&&this.emitTabChange(t,e),this.activeTabIndex=e,this.activateTabAndCheckStep(this.activeTabIndex),!0},tryChangeRoute:function(t){this.$router&&t.route&&this.$router.push(t.route)},checkRouteChange:function(t){var e=-1,a=this.tabs.find((function(a,s){var i=a.route===t;return i&&(e=s),i}));if(a&&!a.active){var s=e>this.activeTabIndex;this.navigateToTab(e,s)}},deactivateTabs:function(){this.tabs.forEach((function(t){t.active=!1}))},activateTab:function(t){this.deactivateTabs();var e=this.tabs[t];e&&(e.active=!0,e.checked=!0,this.tryChangeRoute(e))},activateTabAndCheckStep:function(t){this.activateTab(t),t>this.maxStep&&(this.maxStep=t),this.activeTabIndex=t},initializeTabs:function(){this.tabs.length>0&&0===this.startIndex&&this.activateTab(this.activeTabIndex),this.startIndex0&&void 0!==arguments[0]?arguments[0]:[],e=s();return t.findIndex((function(t){return t.tabId===e}))}function r(t){document.getElementById(t).focus()}function o(t){return t.then&&"function"==typeof t.then}e.b=i,e.a=r,e.c=o},function(t,e,a){"use strict";var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"vue-form-wizard",class:[t.stepSize,{vertical:t.isVertical}],on:{keyup:[function(e){return"button"in e||!t._k(e.keyCode,"right",39,e.key)?"button"in e&&2!==e.button?null:void t.focusNextTab(e):null},function(e){return"button"in e||!t._k(e.keyCode,"left",37,e.key)?"button"in e&&0!==e.button?null:void t.focusPrevTab(e):null}]}},[a("div",{staticClass:"wizard-header"},[t._t("title",[a("h4",{staticClass:"wizard-title"},[t._v(t._s(t.title))]),t._v(" "),a("p",{staticClass:"category"},[t._v(t._s(t.subtitle))])])],2),t._v(" "),a("div",{staticClass:"wizard-navigation"},[t.isVertical?t._e():a("div",{staticClass:"wizard-progress-with-circle"},[a("div",{staticClass:"wizard-progress-bar",style:t.progressBarStyle})]),t._v(" "),a("ul",{staticClass:"wizard-nav wizard-nav-pills",class:t.stepsClasses,attrs:{role:"tablist"}},[t._l(t.tabs,(function(e,s){return t._t("step",[a("wizard-step",{attrs:{tab:e,"step-size":t.stepSize,transition:t.transition,index:s},nativeOn:{click:function(e){t.navigateToTab(s)},keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.navigateToTab(s)}}})],{tab:e,index:s,navigateToTab:t.navigateToTab,stepSize:t.stepSize,transition:t.transition})}))],2),t._v(" "),a("div",{staticClass:"wizard-tab-content"},[t._t("default",null,null,t.slotProps)],2)]),t._v(" "),t.hideButtons?t._e():a("div",{staticClass:"wizard-card-footer clearfix"},[t._t("footer",[a("div",{staticClass:"wizard-footer-left"},[t.displayPrevButton?a("span",{attrs:{role:"button",tabindex:"0"},on:{click:t.prevTab,keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.prevTab(e)}}},[t._t("prev",[a("wizard-button",{style:t.fillButtonStyle,attrs:{disabled:t.loading}},[t._v("\n "+t._s(t.backButtonText)+"\n ")])],null,t.slotProps)],2):t._e(),t._v(" "),t._t("custom-buttons-left",null,null,t.slotProps)],2),t._v(" "),a("div",{staticClass:"wizard-footer-right"},[t._t("custom-buttons-right",null,null,t.slotProps),t._v(" "),t.isLastStep?a("span",{attrs:{role:"button",tabindex:"0"},on:{click:t.nextTab,keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.nextTab(e)}}},[t._t("finish",[a("wizard-button",{style:t.fillButtonStyle},[t._v("\n "+t._s(t.finishButtonText)+"\n ")])],null,t.slotProps)],2):a("span",{attrs:{role:"button",tabindex:"0"},on:{click:t.nextTab,keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.nextTab(e)}}},[t._t("next",[a("wizard-button",{style:t.fillButtonStyle,attrs:{disabled:t.loading}},[t._v("\n "+t._s(t.nextButtonText)+"\n ")])],null,t.slotProps)],2)],2)],null,t.slotProps)],2)])},i=[],r={render:s,staticRenderFns:i};e.a=r},function(t,e,a){"use strict";var s=a(6),i=a(17),r=a(0),o=r(s.a,i.a,!1,null,null,null);e.a=o.exports},function(t,e,a){"use strict";var s=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{directives:[{name:"show",rawName:"v-show",value:t.active,expression:"active"}],staticClass:"wizard-tab-container",attrs:{role:"tabpanel",id:t.tabId,"aria-hidden":!t.active,"aria-labelledby":"step-"+t.tabId}},[t._t("default",null,{active:t.active})],2)},i=[],r={render:s,staticRenderFns:i};e.a=r}])}))}}]); \ No newline at end of file +(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[2252],{87131:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>Jt});var s=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{height:"inherit"}},[e("div",{staticClass:"body-content-overlay",class:{show:t.showDetailSidebar},on:{click:function(e){t.showDetailSidebar=!1}}}),e("div",{staticClass:"marketplace-app-list"},[e("div",{staticClass:"app-fixed-search d-flex align-items-center"},[e("div",{staticClass:"sidebar-toggle d-block d-lg-none ml-1"},[e("feather-icon",{staticClass:"cursor-pointer",attrs:{icon:"MenuIcon",size:"21"},on:{click:function(e){t.showDetailSidebar=!0}}})],1),e("div",{staticClass:"d-flex align-content-center justify-content-between w-100"},[e("b-input-group",{staticClass:"input-group-merge"},[e("b-input-group-prepend",{attrs:{"is-text":""}},[e("feather-icon",{staticClass:"text-muted",attrs:{icon:"SearchIcon"}})],1),e("b-form-input",{attrs:{value:t.searchQuery,placeholder:"Search Marketplace Apps"},on:{input:t.updateRouteQuery}})],1)],1),e("div",{staticClass:"dropdown"},[e("b-dropdown",{attrs:{variant:"link","no-caret":"","toggle-class":"p-0 mr-1",right:""},scopedSlots:t._u([{key:"button-content",fn:function(){return[e("feather-icon",{staticClass:"align-middle text-body",attrs:{icon:"MoreVerticalIcon",size:"16"}})]},proxy:!0}])},[e("b-dropdown-item",{on:{click:t.resetSortAndNavigate}},[t._v(" Reset Sort ")]),e("b-dropdown-item",{attrs:{to:{name:t.$route.name,query:{...t.$route.query,sort:"title-asc"}}}},[t._v(" Sort A-Z ")]),e("b-dropdown-item",{attrs:{to:{name:t.$route.name,query:{...t.$route.query,sort:"title-desc"}}}},[t._v(" Sort Z-A ")]),e("b-dropdown-item",{attrs:{to:{name:t.$route.name,query:{...t.$route.query,sort:"cpu"}}}},[t._v(" Sort by CPU ")]),e("b-dropdown-item",{attrs:{to:{name:t.$route.name,query:{...t.$route.query,sort:"ram"}}}},[t._v(" Sort by RAM ")]),e("b-dropdown-item",{attrs:{to:{name:t.$route.name,query:{...t.$route.query,sort:"hdd"}}}},[t._v(" Sort by HDD ")]),e("b-dropdown-item",{attrs:{to:{name:t.$route.name,query:{...t.$route.query,sort:"price"}}}},[t._v(" Sort by price ")])],1)],1)]),e("vue-perfect-scrollbar",{ref:"appListRef",staticClass:"marketplace-app-list scroll-area",attrs:{settings:t.perfectScrollbarSettings}},[e("ul",{staticClass:"marketplace-media-list"},t._l(t.filteredApps,(function(a){return e("b-media",{key:a.hash,attrs:{tag:"li","no-body":""},on:{click:function(e){return t.handleAppClick(a)}}},[e("b-media-body",{staticClass:"app-media-body"},[e("div",{staticClass:"app-title-wrapper"},[e("div",{staticClass:"app-title-area"},[e("div",{staticClass:"title-wrapper"},[e("span",{staticClass:"app-title"},[e("h4",[t._v(t._s(a.name))])])])]),e("div",{staticClass:"app-item-action"},[e("div",{staticClass:"badge-wrapper mr-1"},[a.extraDetail.name?e("b-badge",{staticClass:"text-capitalize",attrs:{pill:"",variant:`light-${t.resolveTagVariant(a.extraDetail)}`}},[t._v(" "+t._s(a.extraDetail.name)+" ")]):t._e()],1),e("div",[a.extraDetail?e("b-avatar",{attrs:{size:"48",variant:`light-${t.resolveAvatarVariant(a.extraDetail)}`}},[e("v-icon",{attrs:{scale:"1.75",name:`${t.resolveAvatarIcon(a.extraDetail)}`}})],1):t._e()],1)])]),e("div",{staticClass:"app-title-area"},[e("div",{staticClass:"title-wrapper"},[e("h6",{staticClass:"text-nowrap text-muted mr-1 app-description"},[t._v(" "+t._s(a.description)+" ")])])]),e("div",{staticClass:"app-title-area"},[e("div",{staticClass:"title-wrapper"},[e("h6",{staticClass:"text-nowrap text-muted mr-1 app-description"},[t._v(" CPU: "+t._s(t.resolveCpu(a))+" cores - RAM: "+t._s(t.resolveRam(a))+" MB - HDD: "+t._s(t.resolveHdd(a))+" GB ")])])]),e("div",{staticClass:"app-title-area"},[e("div",{staticClass:"title-wrapper"},[e("h5",{staticClass:"text-nowrap mr-1 app-description"},[t._v(" Price: "+t._s(a.price)+" Flux / "+t._s(t.adjustPeriod(a))+" ")])])])])],1)})),1),e("div",{staticClass:"no-results",class:{show:0===t.filteredApps.length}},[e("h5",[t._v("No Marketplace Apps Found")])])])],1),e("app-view",{class:{show:t.isAppViewActive},attrs:{"app-data":t.app,zelid:t.zelid,tier:t.tier},on:{"close-app-view":function(e){t.isAppViewActive=!1}}}),e("shared-nodes-view",{class:{show:t.isSharedNodesViewActive},attrs:{"app-data":t.app,zelid:t.zelid,tier:t.tier},on:{"close-sharednode-view":function(e){t.isSharedNodesViewActive=!1}}}),e("portal",{attrs:{to:"content-renderer-sidebar-left"}},[e("category-sidebar",{class:{show:t.showDetailSidebar},attrs:{zelid:t.zelid},on:{"close-left-sidebar":function(e){t.showDetailSidebar=!1},"close-app-view":function(e){t.isAppViewActive=!1,t.isSharedNodesViewActive=!1}}})],1)],1)},i=[],r=a(22183),o=a(4060),n=a(27754),l=a(31642),c=a(87379),d=a(72775),u=a(68361),p=a(26034),m=a(47389),g=a(20144),v=a(1923),h=a(23646),f=a(6044),b=a(20266),x=a(41905),C=a(34547),w=a(91040),S=a.n(w),k=a(27616),y=a(39055),_=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-details"},[e("div",{staticClass:"app-detail-header"},[e("div",{staticClass:"app-header-left d-flex align-items-center"},[e("span",{staticClass:"go-back mr-1"},[e("feather-icon",{staticClass:"align-bottom",attrs:{icon:t.$store.state.appConfig.isRTL?"ChevronRightIcon":"ChevronLeftIcon",size:"20"},on:{click:function(e){return t.$emit("close-app-view")}}})],1),e("h4",{staticClass:"app-name mb-0"},[t._v(" "+t._s(t.appData.name)+" ")])])]),e("vue-perfect-scrollbar",{staticClass:"app-scroll-area scroll-area",attrs:{settings:t.perfectScrollbarSettings}},[e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xxl:"9",xl:"8",lg:"8",md:"12"}},[e("b-card",{attrs:{title:"Details"}},[e("b-form-textarea",{staticClass:"description-text",attrs:{id:"textarea-rows",rows:"2",readonly:"",value:t.appData.description}}),e("br"),t.appData.contacts?e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Contact "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Add your email contact to get notifications ex. app about to expire, app spawns. Your contact will be uploaded to Flux Storage to not be public visible",expression:"'Add your email contact to get notifications ex. app about to expire, app spawns. Your contact will be uploaded to Flux Storage to not be public visible'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"contact"},model:{value:t.contact,callback:function(e){t.contact=e},expression:"contact"}})],1)]):t._e(),e("br"),t.appData.geolocationOptions?e("div",[e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"20",label:"Deployment Location","label-for":"geolocation"}},[e("b-form-select",{attrs:{id:"geolocation",options:t.appData.geolocationOptions},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:null,disabled:""}},[t._v(" Worldwide ")])]},proxy:!0}],null,!1,2073871109),model:{value:t.selectedGeolocation,callback:function(e){t.selectedGeolocation=e},expression:"selectedGeolocation"}})],1)],1):t._e(),e("b-card",{staticClass:"mt-1",attrs:{"no-body":""}},[e("b-tabs",{on:{"activate-tab":t.componentSelected}},t._l(t.appData.compose,(function(a,s){return e("b-tab",{key:s,attrs:{title:a.name}},[e("list-entry",{attrs:{title:"Description",data:a.description}}),e("list-entry",{attrs:{title:"Repository",data:a.repotag}}),a.userEnvironmentParameters?e("b-card",{attrs:{title:"Parameters","border-variant":"primary"}},[a.userEnvironmentParameters?e("b-tabs",t._l(a.userEnvironmentParameters,(function(a,s){return e("b-tab",{key:s,attrs:{title:a.name}},[e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-2 col-form-label"},[t._v(" Value "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:a.description,expression:"parameter.description",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"enviromentParameters",placeholder:a.placeholder},model:{value:a.value,callback:function(e){t.$set(a,"value",e)},expression:"parameter.value"}})],1)])])})),1):t._e()],1):t._e(),a.userSecrets?e("b-card",{attrs:{title:"Secrets","border-variant":"primary"}},[a.userSecrets?e("b-tabs",t._l(a.userSecrets,(function(a,s){return e("b-tab",{key:s,attrs:{title:a.name}},[e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-2 col-form-label"},[t._v(" Value "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:a.description,expression:"parameter.description",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"secrets",placeholder:a.placeholder},model:{value:a.value,callback:function(e){t.$set(a,"value",e)},expression:"parameter.value"}})],1)])])})),1):t._e()],1):t._e(),t.userZelid?e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mb-2",attrs:{variant:"outline-warning","aria-label":"View Additional Details"},on:{click:function(e){t.componentParamsModalShowing=!0}}},[t._v(" View Additional Details ")]):t._e()],1)})),1)],1)],1)],1),e("b-col",{staticClass:"d-lg-flex d-none",attrs:{xxl:"3",xl:"4",lg:"4"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h4",{staticClass:"mb-0"},[t._v(" CPU ")])]),e("vue-apex-charts",{staticClass:"mt-1",attrs:{type:"radialBar",height:"200",options:t.cpuRadialBar,series:t.cpu.series}})],1),e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h4",{staticClass:"mb-0"},[t._v(" RAM ")])]),e("vue-apex-charts",{staticClass:"mt-1",attrs:{type:"radialBar",height:"200",options:t.ramRadialBar,series:t.ram.series}})],1),e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h4",{staticClass:"mb-0"},[t._v(" HDD ")])]),e("vue-apex-charts",{staticClass:"mt-1",attrs:{type:"radialBar",height:"200",options:t.hddRadialBar,series:t.hdd.series}})],1)],1),e("b-row",{staticClass:"d-lg-none d-sm-none d-md-flex d-none"},[e("b-col",{attrs:{md:"4"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h5",{staticClass:"mb-0"},[t._v(" CPU ")])]),e("vue-apex-charts",{staticClass:"mt-1",attrs:{type:"radialBar",height:"200",options:t.cpuRadialBar,series:t.cpu.series}})],1)],1),e("b-col",{attrs:{md:"4"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h5",{staticClass:"mb-0"},[t._v(" RAM ")])]),e("vue-apex-charts",{staticClass:"mt-1",attrs:{type:"radialBar",height:"200",options:t.ramRadialBar,series:t.ram.series}})],1)],1),e("b-col",{attrs:{md:"4"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h5",{staticClass:"mb-0"},[t._v(" HDD ")])]),e("vue-apex-charts",{staticClass:"mt-1",attrs:{type:"radialBar",height:"200",options:t.hddRadialBar,series:t.hdd.series}})],1)],1)],1),e("b-row",{staticClass:"d-md-none"},[e("b-col",{attrs:{cols:"4"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h6",{staticClass:"mb-0"},[t._v(" CPU ")])]),e("vue-apex-charts",{staticClass:"mt-3",attrs:{type:"radialBar",height:"130",options:t.cpuRadialBarSmall,series:t.cpu.series}})],1)],1),e("b-col",{attrs:{cols:"4"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h6",{staticClass:"mb-0"},[t._v(" RAM ")])]),e("vue-apex-charts",{staticClass:"mt-3",attrs:{type:"radialBar",height:"130",options:t.ramRadialBarSmall,series:t.ram.series}})],1)],1),e("b-col",{attrs:{cols:"4"}},[e("b-card",{attrs:{"no-body":""}},[e("b-card-header",{staticClass:"app-requirements-header"},[e("h6",{staticClass:"mb-0"},[t._v(" HDD ")])]),e("vue-apex-charts",{staticClass:"mt-3",attrs:{type:"radialBar",height:"130",options:t.hddRadialBarSmall,series:t.hdd.series}})],1)],1)],1)],1),t.appData.enabled?e("div",{staticClass:"text-center"},[t.userZelid?e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mb-2",attrs:{variant:"success","aria-label":"Launch Marketplace App"},on:{click:t.checkFluxSpecificationsAndFormatMessage}},[t._v(" Start Launching Marketplace App ")]):e("h4",[t._v(" Please login using your ZelID to deploy Marketplace Apps ")])],1):e("div",{staticClass:"text-center"},[e("h4",[t._v(" This app is temporarily disabled ")])])],1),e("b-modal",{attrs:{title:"Extra Component Parameters",size:"lg",centered:"","button-size":"sm","ok-only":"","ok-title":"Close"},model:{value:t.componentParamsModalShowing,callback:function(e){t.componentParamsModalShowing=e},expression:"componentParamsModalShowing"}},[t.currentComponent?e("div",[e("list-entry",{attrs:{title:"Static Parameters",data:t.currentComponent.environmentParameters.join(", ")}}),e("list-entry",{attrs:{title:"Custom Domains",data:t.currentComponent.domains.join(", ")||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(t.appData.name).join(", ")}}),e("list-entry",{attrs:{title:"Ports",data:t.currentComponent.ports.join(", ")}}),e("list-entry",{attrs:{title:"Container Ports",data:t.currentComponent.containerPorts.join(", ")}}),e("list-entry",{attrs:{title:"Container Data",data:t.currentComponent.containerData}}),e("list-entry",{attrs:{title:"Commands",data:t.currentComponent.commands.length>0?t.currentComponent.commands.join(", "):"none"}})],1):t._e()]),e("b-modal",{attrs:{title:"Finish Launching App?",size:"sm",centered:"","button-size":"sm","ok-title":"Yes","cancel-title":"No"},on:{ok:function(e){t.confirmLaunchDialogCloseShowing=!1,t.launchModalShowing=!1}},model:{value:t.confirmLaunchDialogCloseShowing,callback:function(e){t.confirmLaunchDialogCloseShowing=e},expression:"confirmLaunchDialogCloseShowing"}},[e("h3",{staticClass:"text-center"},[t._v(" Please ensure that you have paid for your app, or saved the payment details for later. ")]),e("br"),e("h4",{staticClass:"text-center"},[t._v(" Close the Launch App dialog? ")])]),e("b-modal",{attrs:{title:"Launching Marketplace App",size:"xlg",centered:"","no-close-on-backdrop":"","no-close-on-esc":"","button-size":"sm","ok-only":"","ok-title":"Cancel"},on:{ok:t.confirmLaunchDialogCancel},model:{value:t.launchModalShowing,callback:function(e){t.launchModalShowing=e},expression:"launchModalShowing"}},[e("form-wizard",{staticClass:"wizard-vertical mb-3",attrs:{color:t.tierColors.cumulus,title:null,subtitle:null,layout:"vertical","back-button-text":"Previous"},on:{"on-complete":function(e){return t.confirmLaunchDialogFinish()}}},[e("tab-content",{attrs:{title:"Check Registration"}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Registration Message"}},[e("b-form-textarea",{attrs:{id:"registrationmessage",rows:"6",readonly:""},model:{value:t.dataToSign,callback:function(e){t.dataToSign=e},expression:"dataToSign"}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"my-1",attrs:{variant:"success","aria-label":"Copy Message to Sign to Clipboard"},on:{click:t.copyMessageToSign}},[t._v(" Copy ")])],1)],1),e("tab-content",{attrs:{title:"Sign App Message","before-change":()=>null!==t.signature}},[e("b-card",{attrs:{title:"Sign Message with same method you have used for login"}},[e("div",{staticClass:"loginRow"},[e("a",{on:{click:t.initiateSignWS}},[e("img",{staticClass:"zelidLogin",attrs:{src:a(94452),alt:"Zel ID",height:"100%",width:"100%"}})]),e("a",{on:{click:t.initSSP}},[e("img",{staticClass:"sspLogin",attrs:{src:t.isDark?a(56070):a(58962),alt:"SSP",height:"100%",width:"100%"}})])]),e("div",{staticClass:"loginRow"},[e("a",{on:{click:t.initWalletConnect}},[e("img",{staticClass:"walletconnectLogin",attrs:{src:a(47622),alt:"WalletConnect",height:"100%",width:"100%"}})]),e("a",{on:{click:t.initMetamask}},[e("img",{staticClass:"metamaskLogin",attrs:{src:a(28125),alt:"Metamask",height:"100%",width:"100%"}})])]),e("b-form-input",{attrs:{id:"signature"},model:{value:t.signature,callback:function(e){t.signature=e},expression:"signature"}})],1)],1),e("tab-content",{attrs:{title:"Register App","before-change":()=>null!==t.registrationHash}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Register App"}},[e("b-card-text",[t._v(" Price: "+t._s(t.appPricePerDeployment)+" FLUX ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"my-1",attrs:{variant:"success","aria-label":"Register Flux App",disabled:t.registrationHash&&t.registrationHash.length>0},on:{click:t.register}},[t._v(" Register Flux App ")]),t.registrationHash?e("b-card-text",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip"}],staticClass:"mt-1",attrs:{title:t.registrationHash}},[t._v(" Registration Hash received ")]):t._e()],1)],1),e("tab-content",{attrs:{title:"Send Payment"}},[e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{lg:"8"}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Send Payment"}},[e("b-card-text",[t._v(" To finish the application update, please make a transaction of "+t._s(t.appPricePerDeployment)+" FLUX to address"),e("br"),t._v(" '"+t._s(t.deploymentAddress)+"'"),e("br"),t._v(" with the following message"),e("br"),t._v(" '"+t._s(t.registrationHash)+"' ")]),e("br"),t._v(" The transaction must be mined by "+t._s(new Date(t.validTill).toLocaleString("en-GB",t.timeoptions.shortDate))+" "),e("br"),e("br"),t._v(" The application will be subscribed until "+t._s(new Date(t.subscribedTill).toLocaleString("en-GB",t.timeoptions.shortDate))+" ")],1)],1),e("b-col",{attrs:{lg:"4"}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Pay with Zelcore"}},[e("div",{staticClass:"loginRow"},[e("a",{attrs:{href:`zel:?action=pay&coin=zelcash&address=${t.deploymentAddress}&amount=${t.appPricePerDeployment}&message=${t.registrationHash}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2Fflux_banner.png`}},[e("img",{staticClass:"zelidLogin",attrs:{src:a(94452),alt:"Zel ID",height:"100%",width:"100%"}})]),e("a",{on:{click:t.initSSPpay}},[e("img",{staticClass:"sspLogin",attrs:{src:t.isDark?a(56070):a(58962),alt:"SSP",height:"100%",width:"100%"}})])])])],1)],1)],1)],1)],1)],1)},F=[],R=(a(70560),a(15193)),z=a(86855),T=a(87047),D=a(64206),A=a(50725),$=a(333),Z=a(31220),P=a(26253),I=a(58887),M=a(51015),L=a(8051),B=a(78959),N=a(46709),E=a(82653),O=a(43028),j=a(5870),q=a(85498),V=a(67166),W=a.n(V),U=a(68934),H=a(51748),Y=a(43672),J=a(72918),G=a(38511),K=a(94145),X=a(37307),Q=a(48764)["lW"];const tt="df787edc6839c7de49d527bba9199eaa",et={projectId:tt,metadata:{name:"Flux Cloud",description:"Flux, Your Gateway to a Decentralized World",url:"https://home.runonflux.io",icons:["https://home.runonflux.io/img/logo.png"]}},at={enableDebug:!0},st=new K.MetaMaskSDK(at);let it;const rt=a(80129),ot=a(9669),nt=a(58971),lt=a(79650),ct=a(63005),dt={components:{BButton:R.T,BCard:z._,BCardHeader:T.p,BCardText:D.j,BCol:A.l,BFormInput:r.e,BFormTextarea:$.y,BModal:Z.N,BRow:P.T,BTabs:I.M,BTab:M.L,BFormSelect:L.K,BFormSelectOption:B.c,BFormGroup:N.x,FormWizard:q.FormWizard,TabContent:q.TabContent,ToastificationContent:C.Z,ListEntry:H.Z,VuePerfectScrollbar:S(),VueApexCharts:W()},directives:{Ripple:b.Z,"b-modal":E.T,"b-toggle":O.M,"b-tooltip":j.o},props:{appData:{type:Object,required:!0},zelid:{type:String,required:!1,default:""},tier:{type:String,required:!0,default:""}},setup(t){const e=(0,g.getCurrentInstance)().proxy,a=(0,x.useToast)(),{skin:s}=(0,X.Z)(),i=(0,g.computed)((()=>"dark"===s.value)),r=t=>"Open"===t?"warning":"Passed"===t?"success":"Unpaid"===t?"info":t&&t.startsWith("Rejected")?"danger":"primary",o=(t,e,s="InfoIcon")=>{a({component:C.Z,props:{title:e,icon:s,variant:t}})},n=(0,g.ref)("");n.value=t.tier;const l=(0,g.ref)("");l.value=t.zelid;const c=(0,g.ref)(!1),d=(0,g.ref)(!1),u=(0,g.ref)(!1),p=(0,g.ref)(null),m=(0,g.ref)(1),v=(0,g.ref)("fluxappregister"),h=(0,g.ref)(null),f=(0,g.ref)(null),b=(0,g.ref)(null),w=(0,g.ref)(null),S=(0,g.ref)(null),k=(0,g.ref)(0),y=(0,g.ref)(null),_=(0,g.ref)(null),F=(0,g.ref)([]),R=(0,g.ref)([]),z=(0,g.ref)(null),T=(0,g.ref)(null),D=(0,g.computed)((()=>e.$store.state.flux.config)),A=(0,g.computed)((()=>S.value+36e5)),$=(0,g.computed)((()=>S.value+2592e6+36e5)),Z=()=>{const{protocol:t,hostname:a,port:s}=window.location;let i="";i+=t,i+="//";const r=/[A-Za-z]/g;if(a.match(r)){const t=a.split(".");t[0]="api",i+=t.join(".")}else{if("string"===typeof a&&e.$store.commit("flux/setUserIp",a),+s>16100){const t=+s+1;e.$store.commit("flux/setFluxPort",t)}i+=a,i+=":",i+=D.value.apiPort}const o=nt.get("backendURL")||i,n=`${o}/id/providesign`;return encodeURI(n)},P=t=>{console.log(t)},I=t=>{const e=rt.parse(t.data);"success"===e.status&&e.data&&(f.value=e.data.signature),console.log(e),console.log(t)},M=t=>{console.log(t)},L=t=>{console.log(t)},B=async()=>{if(h.value.length>1800){const t=h.value,e={publicid:Math.floor(999999999999999*Math.random()).toString(),public:t};await ot.post("https://storage.runonflux.io/v1/public",e);const a=`zel:?action=sign&message=FLUX_URL=https://storage.runonflux.io/v1/public/${e.publicid}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${Z()}`;window.location.href=a}else window.location.href=`zel:?action=sign&message=${h.value}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${Z()}`;const{protocol:t,hostname:a,port:s}=window.location;let i="";i+=t,i+="//";const r=/[A-Za-z]/g;if(a.match(r)){const t=a.split(".");t[0]="api",i+=t.join(".")}else{if("string"===typeof a&&e.$store.commit("flux/setUserIp",a),+s>16100){const t=+s+1;e.$store.commit("flux/setFluxPort",t)}i+=a,i+=":",i+=D.value.apiPort}let o=nt.get("backendURL")||i;o=o.replace("https://","wss://"),o=o.replace("http://","ws://");const n=l.value+S.value;console.log(`signatureMessage: ${n}`);const c=`${o}/ws/sign/${n}`,d=new WebSocket(c);_.value=d,d.onopen=t=>{L(t)},d.onclose=t=>{M(t)},d.onmessage=t=>{I(t)},d.onerror=t=>{P(t)}},N=async()=>{try{await st.init(),it=st.getProvider()}catch(t){console.log(t)}};N();const E=async(t,e)=>{try{const a=`0x${Q.from(t,"utf8").toString("hex")}`,s=await it.request({method:"personal_sign",params:[a,e]});console.log(s),f.value=s}catch(a){console.error(a),o("danger",a.message)}},O=async()=>{try{if(!it)return void o("danger","Metamask not detected");let t;if(it&&!it.selectedAddress){const e=await it.request({method:"eth_requestAccounts",params:[]});console.log(e),t=e[0]}else t=it.selectedAddress;E(h.value,t)}catch(t){o("danger",t.message)}},j=async()=>{try{if(!window.ssp)return void o("danger","SSP Wallet not installed");const t=await window.ssp.request("sspwid_sign_message",{message:h.value});if("ERROR"===t.status)throw new Error(t.data||t.result);f.value=t.signature}catch(t){o("danger",t.message)}},q=async()=>{try{if(!window.ssp)return void this.showToast("danger","SSP Wallet not installed");const t={message:this.registrationHash,amount:(+this.appPricePerDeployment||0).toString(),address:this.deploymentAddress,chain:"flux"},e=await window.ssp.request("pay",t);if("ERROR"===e.status)throw new Error(e.data||e.result);this.showToast("success",`${e.data}: ${e.txid}`)}catch(t){o("danger",t.message)}},V=async t=>{console.log(t);const e=await b.value.request({topic:t.topic,chainId:"eip155:1",request:{method:"personal_sign",params:[h.value,t.namespaces.eip155.accounts[0].split(":")[2]]}});console.log(e),f.value=e},W=async()=>{try{const t=await G.ZP.init(et);b.value=t;const e=t.session.getAll().length-1,a=t.session.getAll()[e];if(!a)throw new Error("WalletConnect session expired. Please log into FluxOS again");V(a)}catch(t){console.error(t),o("danger",t.message)}},H={maxScrollbarLength:150},K=t=>t.compose.reduce(((t,e)=>t+e.cpu),0),tt=t=>t.compose.reduce(((t,e)=>t+e.ram),0),at=t=>t.compose.reduce(((t,e)=>t+e.hdd),0),dt=(0,g.ref)({series:[]}),ut=(0,g.ref)({series:[]}),pt=(0,g.ref)({series:[]}),mt=async t=>{try{const e=t.split(":")[0],a=Number(t.split(":")[1]||16127),s=await ot.get(`https://${e.replace(/\./g,"-")}-${a}.node.api.runonflux.io/flux/pgp`);if("error"!==s.data.status){const t=s.data.data;return t}return o("danger",s.data.data.message||s.data.data),null}catch(e){return console.log(e),null}},gt=async()=>{const t=sessionStorage.getItem("flux_enterprise_nodes");if(t)return JSON.parse(t);try{const t=await Y.Z.getEnterpriseNodes();if("error"!==t.data.status)return sessionStorage.setItem("flux_enterprise_nodes",JSON.stringify(t.data.data)),t.data.data;o("danger",t.data.data.message||t.data.data)}catch(e){console.log(e)}return[]},vt=async(t,e)=>{try{const a=e.map((t=>t.nodekey)),s=await Promise.all(a.map((t=>lt.readKey({armoredKey:t})))),i=await lt.createMessage({text:t.replace("\\“",'\\"')}),r=await lt.encrypt({message:i,encryptionKeys:s});return r}catch(a){return o("danger","Data encryption failed"),null}},ht=async()=>{const{instances:e}=t.appData,a=+e+3,s=+e+Math.ceil(Math.max(7,.15*+e)),i=await gt(),r=[],o=[],n=i.filter((t=>t.enterprisePoints>0&&t.score>1e3));for(let t=0;te.pubkey===n[t].pubkey)).length,i=r.filter((e=>e.pubkey===n[t].pubkey)).length;if(e+i=s)break}if(r.length{const e=o.find((e=>e.ip===t.ip));if(!e){o.push(t);const e=R.value.find((e=>e.nodeip===t.ip));if(!e){const e=await mt(t.ip);if(e){const a={nodeip:t.ip,nodekey:e},s=R.value.find((e=>e.nodeip===t.ip));s||R.value.push(a)}}}})),console.log(o),console.log(R.value),o.map((t=>t.ip))};(0,g.watch)((()=>t.appData),(()=>{null!==_.value&&(_.value.close(),_.value=null),dt.value={series:[K(t.appData)/15*100]},ut.value={series:[tt(t.appData)/59e3*100]},pt.value={series:[at(t.appData)/820*100]},t.appData.compose.forEach((t=>{const e=t.userEnvironmentParameters||[];e.forEach((e=>{Object.prototype.hasOwnProperty.call(e,"port")&&(e.value=t.ports[e.port])}))})),p.value=t.appData.compose[0],t.appData.isAutoEnterprise&&ht().then((t=>{F.value=t,console.log("auto selected nodes",t)})).catch(console.log)}));const ft=t=>`${t}${Date.now()}`,bt=t=>{if(!l.value)return["No ZelID"];const e=ft(t),a=e.toLowerCase(),s=[`${a}.app.runonflux.io`];return s},xt=(0,g.ref)(null),Ct=async()=>{const t=await Y.Z.appsDeploymentInformation(),{data:e}=t.data;"success"===t.data.status?xt.value=e.address:o("danger",t.data.data.message||t.data.data)};Ct();const wt=async()=>{try{const e=ft(t.appData.name),a={version:t.appData.version,name:e,description:t.appData.description,owner:l.value,instances:t.appData.instances,compose:[]};if(t.appData.version>=5&&(a.contacts=[],a.geolocation=[],z.value&&a.geolocation.push(z.value),T.value)){const t=[T.value],e=Math.floor(999999999999999*Math.random()).toString(),s={contactsid:e,contacts:t},i=await ot.post("https://storage.runonflux.io/v1/contacts",s);if("error"===i.data.status)throw new Error(i.data.message||i.data);o("success","Successful upload of Contact Parameter to Flux Storage"),a.contacts=[`F_S_CONTACTS==https://storage.runonflux.io/v1/contacts/${e}`]}if(t.appData.version>=6&&(a.expire=t.appData.expire||22e3),t.appData.version>=7)if(a.staticip=t.appData.staticip,t.appData.isAutoEnterprise){if(0===F.value.length){const t=await ht();F.value=t}a.nodes=F.value}else a.nodes=t.appData.nodes||[];for(let n=0;n{s.push(`${t.name}=${t.value}`)})),e.envFluxStorage){const t=Math.floor(999999999999999*Math.random()).toString(),e={envid:t,env:s},a=await ot.post("https://storage.runonflux.io/v1/env",e);if("error"===a.data.status)throw new Error(a.data.message||a.data);o("success","Successful upload of Environment Parameters to Flux Storage"),s=[`F_S_ENV=https://storage.runonflux.io/v1/env/${t}`]}let{ports:r}=e;if(e.portSpecs){r=[];for(let t=0;t=7){l.secrets=t.appData.secrets||"",l.repoauth=t.appData.repoauth||"";const a=[],s=e.userSecrets||[];if(s.forEach((t=>{a.push(`${t.name}=${t.value}`)})),a.length>0){const t=await vt(JSON.stringify(a),R.value);if(!t)throw new Error("Secrets failed to encrypt");l.secrets=t}}a.compose.push(l)}const s=await Y.Z.appRegistrationVerificaiton(a);if(console.log(s),"error"===s.data.status)throw new Error(s.data.data.message||s.data.data);const i=s.data.data,r=await Y.Z.appPrice(i);if("error"===r.data.status)throw new Error(r.data.data.message||r.data.data);if(r.data.data>t.appData.price)throw new Error("Marketplace App Price is too low");null!==_.value&&(_.value.close(),_.value=null),S.value=Date.now(),w.value=i,k.value=t.appData.price,h.value=`${v.value}${m.value}${JSON.stringify(i)}${Date.now()}`,y.value=null,f.value=null,c.value=!0}catch(e){console.log(e),o("danger",e.message||e)}},St={height:100,type:"radialBar",sparkline:{enabled:!0},dropShadow:{enabled:!0,blur:3,left:1,top:1,opacity:.1}},kt={height:200,type:"radialBar",sparkline:{enabled:!0},dropShadow:{enabled:!0,blur:3,left:1,top:1,opacity:.1}},yt={chart:kt,colors:[U.j.primary],labels:["Cores"],plotOptions:{radialBar:{offsetY:-10,startAngle:-150,endAngle:150,hollow:{size:"77%"},track:{background:U.j.dark,strokeWidth:"50%"},dataLabels:{name:{offsetY:-15,color:U.j.light,fontSize:"1.5rem"},value:{formatter:t=>(15*parseFloat(t)/100).toFixed(1),offsetY:10,color:U.j.light,fontSize:"2.86rem",fontWeight:"600"}}}},fill:{type:"gradient",gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:[U.j.success],inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,100]}},stroke:{lineCap:"round"},grid:{padding:{bottom:30}}},_t={chart:St,colors:[U.j.primary],labels:["Cores"],plotOptions:{radialBar:{offsetY:-10,startAngle:-150,endAngle:150,hollow:{size:"70%"},track:{background:U.j.dark,strokeWidth:"50%"},dataLabels:{name:{offsetY:-15,color:U.j.light,fontSize:"1.2rem"},value:{formatter:t=>(15*parseFloat(t)/100).toFixed(1),offsetY:10,color:U.j.light,fontSize:"2rem",fontWeight:"400"}}}},fill:{type:"gradient",gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:[U.j.success],inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,100]}},stroke:{lineCap:"round"},grid:{padding:{bottom:10}}},Ft={chart:kt,colors:[U.j.primary],labels:["MB"],plotOptions:{radialBar:{offsetY:-10,startAngle:-150,endAngle:150,hollow:{size:"77%"},track:{background:U.j.dark,strokeWidth:"50%"},dataLabels:{name:{offsetY:-15,color:U.j.light,fontSize:"1.5rem"},value:{formatter:t=>(59e3*parseFloat(t)/100).toFixed(0),offsetY:10,color:U.j.light,fontSize:"2.86rem",fontWeight:"600"}}}},fill:{type:"gradient",gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:[U.j.success],inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,100]}},stroke:{lineCap:"round"},grid:{padding:{bottom:30}}},Rt={chart:St,colors:[U.j.primary],labels:["MB"],plotOptions:{radialBar:{offsetY:-10,startAngle:-150,endAngle:150,hollow:{size:"70%"},track:{background:U.j.dark,strokeWidth:"50%"},dataLabels:{name:{offsetY:-15,color:U.j.light,fontSize:"1.2rem"},value:{formatter:t=>(59e3*parseFloat(t)/100).toFixed(0),offsetY:10,color:U.j.light,fontSize:"2rem",fontWeight:"400"}}}},fill:{type:"gradient",gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:[U.j.success],inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,100]}},stroke:{lineCap:"round"},grid:{padding:{bottom:10}}},zt={chart:kt,colors:[U.j.primary],labels:["GB"],plotOptions:{radialBar:{offsetY:-10,startAngle:-150,endAngle:150,hollow:{size:"77%"},track:{background:U.j.dark,strokeWidth:"50%"},dataLabels:{name:{offsetY:-15,color:U.j.light,fontSize:"1.5rem"},value:{formatter:t=>(820*parseFloat(t)/100).toFixed(0),offsetY:10,color:U.j.light,fontSize:"2.86rem",fontWeight:"600"}}}},fill:{type:"gradient",gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:[U.j.success],inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,100]}},stroke:{lineCap:"round"},grid:{padding:{bottom:30}}},Tt={chart:St,colors:[U.j.primary],labels:["GB"],plotOptions:{radialBar:{offsetY:-10,startAngle:-150,endAngle:150,hollow:{size:"70%"},track:{background:U.j.dark,strokeWidth:"50%"},dataLabels:{name:{offsetY:-15,color:U.j.light,fontSize:"1.2rem"},value:{formatter:t=>(820*parseFloat(t)/100).toFixed(0),offsetY:10,color:U.j.light,fontSize:"2rem",fontWeight:"400"}}}},fill:{type:"gradient",gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:[U.j.success],inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,100]}},stroke:{lineCap:"round"},grid:{padding:{bottom:10}}},Dt=async()=>{try{await navigator.clipboard.writeText(h.value),o("success","Copied to clipboard")}catch(t){o("danger","Failed to Copy to clipboard")}},At=async()=>{const t=localStorage.getItem("zelidauth"),e={type:v.value,version:m.value,appSpecification:w.value,timestamp:S.value,signature:f.value};o("info","Propagating message accross Flux network...");const a=await Y.Z.registerApp(t,e).catch((t=>{o("danger",t.message||t)}));console.log(a),"success"===a.data.status?(y.value=a.data.data,o("success",a.data.data.message||a.data.data)):o("danger",a.data.data.message||a.data.data)},$t=e=>{p.value=t.appData.compose[e]},Zt=()=>{u.value=!0},Pt=t=>{null!==y.value&&(t.preventDefault(),u.value=!0)};return{perfectScrollbarSettings:H,resolveTagVariant:r,resolveCpu:K,resolveRam:tt,resolveHdd:at,constructAutomaticDomains:bt,checkFluxSpecificationsAndFormatMessage:wt,timeoptions:ct,cpuRadialBar:yt,cpuRadialBarSmall:_t,cpu:dt,ramRadialBar:Ft,ramRadialBarSmall:Rt,ram:ut,hddRadialBar:zt,hddRadialBarSmall:Tt,hdd:pt,userZelid:l,dataToSign:h,selectedGeolocation:z,contact:T,signClient:b,signature:f,appPricePerDeployment:k,registrationHash:y,deploymentAddress:xt,validTill:A,subscribedTill:$,register:At,callbackValue:Z,initiateSignWS:B,initMetamask:O,initSSP:j,initSSPpay:q,initWalletConnect:W,onSessionConnect:V,siwe:E,copyMessageToSign:Dt,launchModalShowing:c,componentParamsModalShowing:d,confirmLaunchDialogCloseShowing:u,confirmLaunchDialogFinish:Zt,confirmLaunchDialogCancel:Pt,currentComponent:p,componentSelected:$t,tierColors:J.Z,skin:s,isDark:i}}},ut=dt;var pt=a(1001),mt=(0,pt.Z)(ut,_,F,!1,null,"c280066e",null);const gt=mt.exports;var vt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-details"},[e("div",{staticClass:"app-detail-header"},[e("div",{staticClass:"app-header-left d-flex align-items-center flex-grow-1"},[e("span",{staticClass:"go-back mr-1"},[e("feather-icon",{staticClass:"align-bottom",attrs:{icon:t.$store.state.appConfig.isRTL?"ChevronRightIcon":"ChevronLeftIcon",size:"20"},on:{click:function(e){return t.$emit("close-sharednode-view")}}})],1),e("h4",{staticClass:"app-name mb-0 flex-grow-1"},[t._v(" Titan Shared Nodes (Beta) ")]),e("a",{attrs:{href:"https://fluxofficial.medium.com/flux-titan-nodes-guide-useful-staking-e527278b1a2a",target:"_blank",rel:"noopener noreferrer"}},[t._v(" Titan Guide ")])])]),e("vue-perfect-scrollbar",{staticClass:"marketplace-app-list scroll-area",attrs:{settings:t.perfectScrollbarSettings}},[e("b-overlay",{attrs:{variant:"transparent",opacity:"0.95",blur:"5px","no-center":"",show:t.showOverlay()},scopedSlots:t._u([{key:"overlay",fn:function(){return[e("div",{staticClass:"mt-5"},[e("div",{staticClass:"text-center"},[t.titanConfig&&t.titanConfig.maintenanceMessage?e("b-card",{staticClass:"mx-auto",staticStyle:{"max-width":"50rem"},attrs:{"border-variant":"primary",title:"Titan Maintenance"}},[e("h1",[t._v(" "+t._s(t.titanConfig.maintenanceMessage)+" ")])]):e("b-spinner",{staticStyle:{width:"10rem",height:"10rem"},attrs:{type:"border",variant:"danger"}})],1)])]},proxy:!0}])},[e("b-card",{attrs:{"bg-variant":"transparent"}},[e("b-row",{staticClass:"match-height d-xxl-flex d-none"},[e("b-col",{attrs:{xl:"4"}},[e("b-card",{attrs:{"border-variant":"primary","no-body":""}},[e("b-card-title",{staticClass:"text-white text-uppercase shared-node-info-title"},[t._v(" Active Nodes ")]),e("b-card-body",{staticClass:"shared-node-info-body"},[e("h1",{staticClass:"active-node-value"},[t._v(" "+t._s(t.nodes.length)+" ")]),e("div",{staticClass:"d-flex"},[e("h4",{staticClass:"flex-grow-1"},[t._v(" Total: "+t._s(t.totalCollateral.toLocaleString())+" Flux ")]),e("b-avatar",{attrs:{size:"24",variant:"primary",button:""},on:{click:function(e){return t.showNodeInfoDialog()}}},[e("v-icon",{attrs:{scale:"0.9",name:"info"}})],1)],1)])],1)],1),e("b-col",{attrs:{xl:"4"}},[e("b-card",{attrs:{"border-variant":"primary","no-body":""}},[e("b-card-title",{staticClass:"text-white text-uppercase shared-node-info-title"},[t._v(" Titan Stats ")]),e("b-card-body",{staticClass:"shared-node-info-body"},[e("div",{staticClass:"d-flex flex-column"},[e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" My Flux Total ")]),e("h4",[t._v(" "+t._s(t.myStakes?t.toFixedLocaleString(t.myStakes.reduce(((t,e)=>t+e.collateral),0),0):0)+" ")])]),e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Titan Flux Total ")]),e("h4",[t._v(" "+t._s(t.titanStats?t.toFixedLocaleString(t.titanStats.total):"...")+" ")])]),e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Current Supply ")]),e("h4",[t._v(" "+t._s(t.titanStats?t.toFixedLocaleString(t.titanStats.currentsupply):"...")+" ")])]),e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Max Supply ")]),e("h4",[t._v(" "+t._s(t.titanStats?t.toFixedLocaleString(t.titanStats.maxsupply):"...")+" ")])]),e("div",[e("hr")]),e("div",{staticClass:"d-flex flex-row"},[e("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:t.tooMuchStaked?t.titanConfig?t.titanConfig.stakeDisabledMessage:t.defaultStakeDisabledMessage:"",expression:"tooMuchStaked ? (titanConfig ? titanConfig.stakeDisabledMessage : defaultStakeDisabledMessage) : ''",modifiers:{hover:!0,bottom:!0}}],staticClass:"d-flex flex-row flex-grow-1"},[t.userZelid?e("b-button",{staticClass:"flex-grow-1 .btn-relief-primary",attrs:{variant:"gradient-primary",disabled:t.tooMuchStaked},on:{click:function(e){return t.showStakeDialog(!1)}}},[t._v(" Activate Titan ")]):t._e()],1)])])])],1)],1),e("b-col",{attrs:{xl:"4"}},[e("b-card",{attrs:{"border-variant":"primary","no-body":""}},[e("b-card-title",{staticClass:"text-white text-uppercase shared-node-info-title"},[t._v(" Estimated % Lockup in Flux ")]),t.titanConfig?e("b-card-body",{staticClass:"shared-node-info-body"},[t._l(t.titanConfig.lockups,(function(a){return e("div",{key:a.time,staticClass:"lockup"},[e("div",{staticClass:"d-flex flex-row"},[e("h2",{staticClass:"flex-grow-1"},[t._v(" "+t._s(a.name)+" ")]),e("h1",[t._v(" ~"+t._s((100*a.apr).toFixed(2))+"% ")])])])})),e("div",{staticClass:"float-right"},[e("b-avatar",{attrs:{size:"24",variant:"primary",button:""},on:{click:function(e){return t.showAPRInfoDialog()}}},[e("v-icon",{attrs:{scale:"0.9",name:"info"}})],1)],1)],2):t._e()],1)],1)],1),e("b-row",{staticClass:"match-height d-xxl-none d-xl-flex d-lg-flex d-md-flex d-sm-flex"},[e("b-col",{attrs:{sm:"12"}},[e("b-card",{attrs:{"border-variant":"primary","no-body":""}},[e("b-card-title",{staticClass:"text-white text-uppercase",staticStyle:{"padding-left":"1.5rem","padding-top":"1rem","margin-bottom":"0"}},[t._v(" Active Nodes ")]),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{cols:"6"}},[e("h1",{staticClass:"active-node-value-xl"},[t._v(" "+t._s(t.nodes.length)+" ")])]),e("b-col",{attrs:{cols:"6"}},[e("h4",{staticClass:"text-center",staticStyle:{"padding-top":"2rem"}},[t._v(" Total: "+t._s(t.totalCollateral.toLocaleString())+" Flux ")]),e("h4",{staticClass:"text-center"},[e("b-avatar",{attrs:{size:"24",variant:"primary",button:""},on:{click:function(e){return t.showNodeInfoDialog()}}},[e("v-icon",{attrs:{scale:"0.9",name:"info"}})],1)],1)])],1)],1)],1),e("b-col",{attrs:{sm:"12"}},[e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{sm:"6"}},[e("b-card",{attrs:{"border-variant":"primary","no-body":""}},[e("b-card-title",{staticClass:"text-white text-uppercase shared-node-info-title-xl"},[t._v(" Titan Stats ")]),e("b-card-body",{staticClass:"shared-node-info-body-xl"},[e("div",{staticClass:"d-flex flex-column"},[e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" My Flux Total ")]),e("h4",[t._v(" "+t._s(t.myStakes?t.toFixedLocaleString(t.myStakes.reduce(((t,e)=>t+e.collateral),0),0):0)+" ")])]),e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Titan Flux Total ")]),e("h4",[t._v(" "+t._s(t.titanStats?t.toFixedLocaleString(t.titanStats.total):"...")+" ")])]),e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Current Supply ")]),e("h4",[t._v(" "+t._s(t.titanStats?t.toFixedLocaleString(t.titanStats.currentsupply):"...")+" ")])]),e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Max Supply ")]),e("h4",[t._v(" "+t._s(t.titanStats?t.toFixedLocaleString(t.titanStats.maxsupply):"...")+" ")])]),e("div",[e("hr")]),e("div",{staticClass:"d-flex flex-row"},[e("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:t.tooMuchStaked?t.titanConfig?t.titanConfig.stakeDisabledMessage:t.defaultStakeDisabledMessage:"",expression:"tooMuchStaked ? (titanConfig ? titanConfig.stakeDisabledMessage : defaultStakeDisabledMessage) : ''",modifiers:{hover:!0,bottom:!0}}],staticClass:"d-flex flex-row flex-grow-1"},[t.userZelid?e("b-button",{staticClass:"flex-grow-1 .btn-relief-primary",attrs:{variant:"gradient-primary",disabled:t.tooMuchStaked},on:{click:function(e){return t.showStakeDialog(!1)}}},[t._v(" Activate Titan ")]):t._e()],1)])])])],1)],1),e("b-col",{attrs:{sm:"6"}},[e("b-card",{attrs:{"border-variant":"primary","no-body":""}},[e("b-card-title",{staticClass:"text-white text-uppercase shared-node-info-title-xl"},[t._v(" Lockup Period APR ")]),t.titanConfig?e("b-card-body",{staticClass:"shared-node-info-body-xl"},[t._l(t.titanConfig.lockups,(function(a){return e("div",{key:a.time,staticClass:"lockup"},[e("div",{staticClass:"d-flex flex-row"},[e("h4",{staticClass:"flex-grow-1"},[t._v(" "+t._s(a.name)+" ")]),e("h4",[t._v(" ~"+t._s((100*a.apr).toFixed(2))+"% ")])])])})),e("div",{staticClass:"float-right"},[e("b-avatar",{attrs:{size:"24",variant:"primary",button:""},on:{click:function(e){return t.showAPRInfoDialog()}}},[e("v-icon",{attrs:{scale:"0.9",name:"info"}})],1)],1)],2):t._e()],1)],1)],1)],1)],1)],1),t.userZelid?e("b-row",{},[e("b-col",{staticClass:"d-xxl-none d-xl-flex d-lg-flex d-md-flex d-sm-flex"},[e("b-card",{staticClass:"flex-grow-1",attrs:{"no-body":""}},[e("b-card-title",{staticClass:"stakes-title"},[t._v(" Redeem Flux ")]),e("b-card-body",[e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Paid: ")]),e("h4",[t._v(" "+t._s(t.calculatePaidRewards())+" Flux ")])]),e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Available: ")]),e("h4",[t._v(" "+t._s(t.toFixedLocaleString(t.totalReward,2))+" Flux ")])]),e("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:t.totalReward<=(t.titanConfig?t.titanConfig.redeemFee:0)?"Available balance is less than the redeem fee":"",expression:"totalReward <= (titanConfig ? titanConfig.redeemFee : 0) ? 'Available balance is less than the redeem fee' : ''",modifiers:{hover:!0,bottom:!0}}],staticClass:"float-right",staticStyle:{display:"inline-block"}},[t.totalReward>t.minStakeAmount?e("b-button",{staticClass:"mt-2 mr-1",attrs:{disabled:t.totalReward>=t.totalCollateral-t.titanStats.total,variant:"danger",size:"sm",pill:""},on:{click:function(e){return t.showStakeDialog(!0)}}},[t._v(" Re-invest Funds ")]):t._e(),e("b-button",{staticClass:"float-right mt-2",attrs:{id:"redeemButton",variant:"danger",size:"sm",pill:"",disabled:t.totalReward<=(t.titanConfig?t.titanConfig.redeemFee:0)},on:{click:function(e){return t.showRedeemDialog()}}},[t._v(" Redeem ")])],1)])],1)],1),e("b-col",{attrs:{xxl:"9"}},[e("b-card",{staticClass:"sharednodes-container",attrs:{"no-body":""}},[e("b-card-body",[e("b-tabs",[e("b-tab",{attrs:{active:"",title:"Active"}},[e("ul",{staticClass:"marketplace-media-list"},t._l(t.myStakes,(function(a){return e("b-media",{key:a.uuid,attrs:{tag:"li","no-body":""},on:{click:function(e){return t.showActiveStakeInfoDialog(a)}}},[e("b-media-body",{staticClass:"app-media-body",staticStyle:{overflow:"inherit"}},[e("div",{staticClass:"d-flex flex-row row"},[-1===a.confirmations?e("b-avatar",{staticClass:"node-status mt-auto mb-auto",attrs:{size:"48",variant:"danger",button:""},on:{click:[function(e){return t.showPaymentDetailsDialog(a)},function(t){t.stopPropagation()}]}},[e("v-icon",{attrs:{scale:"1.75",name:"hourglass-half"}})],1):t.titanConfig&&a.confirmations>=t.titanConfig.confirms?e("b-avatar",{staticClass:"node-status mt-auto mb-auto",attrs:{size:"48",variant:"light-success"}},[e("v-icon",{attrs:{scale:"1.75",name:"check"}})],1):e("b-avatar",{staticClass:"node-status mt-auto mb-auto",attrs:{size:"48",variant:"light-warning"}},[t._v(" "+t._s(a.confirmations)+"/"+t._s(t.titanConfig?t.titanConfig.confirms:0)+" ")]),e("div",{staticClass:"d-flex flex-column seat-column col",staticStyle:{"flex-grow":"0.8"}},[e("h3",{staticClass:"mr-auto ml-auto mt-auto mb-auto"},[t._v(" "+t._s(a.collateral.toLocaleString())+" Flux ")])]),e("div",{staticClass:"d-flex flex-column seat-column col"},[e("h4",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:new Date(1e3*a.timestamp).toLocaleString(t.timeoptions),expression:"new Date(stake.timestamp * 1000).toLocaleString(timeoptions)",modifiers:{hover:!0,top:!0}}],staticClass:"mr-auto ml-auto text-center"},[t._v(" Start Date: "+t._s(new Date(1e3*a.timestamp).toLocaleDateString())+" ")]),e("h5",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:new Date(1e3*a.expiry).toLocaleString(t.timeoptions),expression:"new Date(stake.expiry * 1000).toLocaleString(timeoptions)",modifiers:{hover:!0,top:!0}}],staticClass:"mr-auto ml-auto text-center"},[t._v(" End Date: "+t._s(new Date(1e3*a.expiry).toLocaleDateString())+" ")])]),e("div",{staticClass:"d-flex flex-column seat-column col"},[e("h4",{staticClass:"mr-auto ml-auto"},[t._v(" Paid: "+t._s(t.toFixedLocaleString(a.paid,2))+" Flux ")]),e("h5",{staticClass:"mr-auto ml-auto"},[t._v(" Pending: "+t._s(t.toFixedLocaleString(a.reward,2))+" Flux ")])]),e("div",{staticClass:"d-flex flex-column seat-column col"},[e("h4",{staticClass:"mr-auto ml-auto text-center"},[t._v(" Monthly Flux ")]),t.titanConfig?e("h5",{staticClass:"mr-auto ml-auto"},[t._v(" ~"+t._s(t.toFixedLocaleString(t.calcMonthlyReward(a),2))+" Flux "),a.autoreinvest?e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Stake will auto-reinvest",expression:"'Stake will auto-reinvest'",modifiers:{hover:!0,top:!0}}],attrs:{name:"sync"}}):t._e()],1):e("h5",{staticClass:"mr-auto ml-auto"},[t._v(" ... Flux ")])])],1),a.message?e("div",[e("div",{domProps:{innerHTML:t._s(a.message)}})]):t._e()])],1)})),1)]),t.myExpiredStakes.length>0?e("b-tab",{attrs:{title:"Expired"}},[e("ul",{staticClass:"marketplace-media-list"},t._l(t.myExpiredStakes,(function(a){return e("b-media",{key:a.uuid,attrs:{tag:"li","no-body":""}},[e("b-media-body",{staticClass:"app-media-body",staticStyle:{overflow:"inherit"}},[e("div",{staticClass:"d-flex flex-row row"},[e("b-avatar",{staticClass:"node-status mt-auto mb-auto",attrs:{size:"48",variant:"light-warning"}},[e("v-icon",{attrs:{scale:"1.75",name:"calendar-times"}})],1),e("div",{staticClass:"d-flex flex-column seat-column col",staticStyle:{"flex-grow":"0.8"}},[e("h3",{staticClass:"mr-auto ml-auto mt-auto mb-auto"},[t._v(" "+t._s(a.collateral.toLocaleString())+" Flux ")])]),e("div",{staticClass:"d-flex flex-column seat-column col"},[e("h4",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:new Date(1e3*a.timestamp).toLocaleString(t.timeoptions),expression:"new Date(stake.timestamp * 1000).toLocaleString(timeoptions)",modifiers:{hover:!0,top:!0}}],staticClass:"mr-auto ml-auto"},[t._v(" Start Date: "+t._s(new Date(1e3*a.timestamp).toLocaleDateString())+" ")]),e("h5",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:new Date(1e3*a.expiry).toLocaleString(t.timeoptions),expression:"new Date(stake.expiry * 1000).toLocaleString(timeoptions)",modifiers:{hover:!0,top:!0}}],staticClass:"mr-auto ml-auto"},[t._v(" End Date: "+t._s(new Date(1e3*a.expiry).toLocaleDateString())+" ")])]),e("div",{staticClass:"d-flex flex-column seat-column col"},[e("h4",{staticClass:"mr-auto ml-auto"},[t._v(" Paid: "+t._s(5===a.state?t.toFixedLocaleString(a.paid-a.collateral,2):t.toFixedLocaleString(a.paid,2))+" Flux ")]),e("h5",{staticClass:"mr-auto ml-auto"},[t._v(" Pending: "+t._s(t.toFixedLocaleString(a.reward,2))+" Flux ")])]),e("div",{staticClass:"d-flex"},[e("b-button",{staticClass:"float-right mt-1 mb-1",staticStyle:{width:"100px"},attrs:{variant:a.state>=5?"outline-secondary":"danger",size:"sm",disabled:a.state>=5||t.totalReward>=t.totalCollateral-t.titanStats.total,pill:""},on:{click:function(e){return t.showReinvestDialog(a)}}},[t._v(" "+t._s(a.state>=5?"Complete":"Reinvest")+" ")])],1)],1)])],1)})),1)]):t._e(),e("b-tab",{attrs:{title:"Payments"}},[e("ul",{staticClass:"marketplace-media-list"},[e("b-table",{staticClass:"payments-table",attrs:{striped:"",hover:"",responsive:"",items:t.myPayments,fields:t.paymentFields,"show-empty":"","empty-text":"No Payments"},scopedSlots:t._u([{key:"cell(timestamp)",fn:function(e){return[t._v(" "+t._s(new Date(e.item.timestamp).toLocaleString(t.timeoptions))+" ")]}},{key:"cell(total)",fn:function(a){return[e("p",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.right",value:`Amount = ${t.toFixedLocaleString(a.item.total,2)} Flux - ${a.item.fee} Flux redeem fee`,expression:"`Amount = ${toFixedLocaleString(data.item.total, 2)} Flux - ${data.item.fee} Flux redeem fee`",modifiers:{hover:!0,right:!0}}],staticStyle:{"margin-bottom":"0"}},[t._v(" "+t._s(t.toFixedLocaleString(a.item.total-a.item.fee,2))+" Flux ")])]}},{key:"cell(address)",fn:function(a){return[e("a",{attrs:{href:`https://explorer.runonflux.io/address/${a.item.address}`,target:"_blank",rel:"noopener noreferrer"}},[t._v(" "+t._s(a.item.address)+" ")])]}},{key:"cell(txid)",fn:function(a){return[a.item.txid?e("a",{attrs:{href:`https://explorer.runonflux.io/tx/${a.item.txid}`,target:"_blank",rel:"noopener noreferrer"}},[t._v(" View on Explorer ")]):e("h5",[t._v(" "+t._s(a.item.state||"Processing")+" ")])]}}])})],1)])],1)],1)],1)],1),e("b-col",{staticClass:"d-xxl-flex d-xl-none d-lg-none d-md-none d-sm-none",attrs:{xxl:"3"}},[e("b-card",{staticClass:"flex-grow-1",attrs:{"no-body":""}},[e("b-card-title",{staticClass:"stakes-title"},[t._v(" Redeem Flux ")]),e("b-card-body",[e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Paid: ")]),e("h4",[t._v(" "+t._s(t.calculatePaidRewards())+" Flux ")])]),e("div",{staticClass:"d-flex flex-row"},[e("h5",{staticClass:"flex-grow-1"},[t._v(" Available: ")]),e("h4",[t._v(" "+t._s(t.toFixedLocaleString(t.totalReward,2))+" Flux ")])]),e("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:t.totalReward<=(t.titanConfig?t.titanConfig.minimumRedeem:50)?`Available balance is less than the minimum redeem amount (${t.titanConfig?t.titanConfig.minimumRedeem:50} Flux)`:"",expression:"totalReward <= (titanConfig ? titanConfig.minimumRedeem : 50) ? `Available balance is less than the minimum redeem amount (${(titanConfig ? titanConfig.minimumRedeem : 50)} Flux)` : ''",modifiers:{hover:!0,bottom:!0}}],staticClass:"float-right",staticStyle:{display:"inline-block"}},[t.totalReward>t.minStakeAmount?e("b-button",{staticClass:"mt-2 mr-1",attrs:{disabled:t.totalReward>=t.totalCollateral-t.titanStats.total,variant:"danger",size:"sm",pill:""},on:{click:function(e){return t.showStakeDialog(!0)}}},[t._v(" Re-invest Funds ")]):t._e(),e("b-button",{staticClass:"float-right mt-2",attrs:{id:"redeemButton",variant:"danger",size:"sm",pill:"",disabled:t.totalReward<=(t.titanConfig?t.titanConfig.redeemFee:0)||t.totalReward<=(t.titanConfig?t.titanConfig.minimumRedeem:50)},on:{click:function(e){return t.showRedeemDialog()}}},[t._v(" Redeem ")])],1)])],1)],1)],1):e("b-card",{attrs:{title:"My Active Flux"}},[e("h5",[t._v(" Please login using your ZelID to view your active Flux ")])])],1)],1),e("b-modal",{attrs:{title:"Titan Nodes",size:"lg",centered:"","button-size":"sm","ok-only":""},on:{ok:()=>t.nodeModalShowing=!1},model:{value:t.nodeModalShowing,callback:function(e){t.nodeModalShowing=e},expression:"nodeModalShowing"}},t._l(t.nodes,(function(a){return e("b-card",{key:a.uuid,attrs:{title:a.name}},[e("b-row",[e("b-col",[e("h5",[t._v(" Location: "+t._s(a.location)+" ")])]),e("b-col",[e("h5",[t._v(" Collateral: "+t._s(t.toFixedLocaleString(a.collateral,0))+" ")])])],1),e("b-row",[e("b-col",[e("h5",[t._v(" Created: "+t._s(new Date(a.created).toLocaleDateString())+" ")])]),e("b-col",[e("b-button",{attrs:{pill:"",size:"sm",variant:"primary"},on:{click:function(e){return t.visitNode(a)}}},[t._v(" Visit ")])],1)],1)],1)})),1),e("b-modal",{attrs:{title:"Lockup APR",size:"md",centered:"","button-size":"sm","ok-only":""},on:{ok:()=>t.aprModalShowing=!1},model:{value:t.aprModalShowing,callback:function(e){t.aprModalShowing=e},expression:"aprModalShowing"}},[e("b-card",{attrs:{title:"APR Calculations"}},[e("p",{staticClass:"text-center"},[t._v(" The APR for a Titan Shared Nodes lockup is dependent on the number of active Stratus nodes on the Flux network and the current block reward. ")]),e("p",{staticClass:"text-center"},[t._v(" APR is calculated using this basic formula: ")]),e("p",{staticClass:"text-center"},[t._v(" Per block reward (11.25) x Blocks per day (720) x 365 /"),e("br"),t._v("  (Number of Stratus nodes * 40,000) ")]),e("p",{staticClass:"text-center"},[e("br"),e("b-avatar",{attrs:{size:"24",variant:"warning",button:""}},[e("v-icon",{attrs:{scale:"0.9",name:"info"}})],1),t._v(" APR does not mean the actual or predicted returns in fiat currency or Flux. ")],1)])],1),e("b-modal",{attrs:{title:"Redeem Rewards",size:"lg",centered:"","button-size":"sm","ok-only":"","no-close-on-backdrop":"","no-close-on-esc":"","ok-title":"Cancel"},on:{ok:function(e){t.redeemModalShowing=!1,t.getMyPayments(!0)}},model:{value:t.redeemModalShowing,callback:function(e){t.redeemModalShowing=e},expression:"redeemModalShowing"}},[e("form-wizard",{staticClass:"wizard-vertical mb-3",attrs:{color:t.tierColors.cumulus,title:null,subtitle:null,layout:"vertical","back-button-text":"Previous"},on:{"on-complete":function(e){return t.confirmRedeemDialogFinish()}}},[e("tab-content",{attrs:{title:"Redeem Amount"}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Redeem Amount"}},[e("h4",[t._v(" Available: "+t._s(t.toFixedLocaleString(t.totalReward,2))+" Flux ")]),e("h4",{staticStyle:{"margin-top":"10px"}},[t._v(" You will receive ")]),e("h3",[t._v(" "+t._s(t.toFixedLocaleString(t.totalReward-t.calculateRedeemFee(),2))+" Flux ")]),e("h6",[t._v(" ("),e("span",{staticClass:"text-warning"},[t._v("Redeem Fee:")]),t.titanConfig&&t.titanConfig.maxRedeemFee?e("span",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:`Fee of ${t.titanConfig.redeemFee}% of your rewards, capped at ${t.titanConfig.maxRedeemFee} Flux`,expression:"`Fee of ${titanConfig.redeemFee}% of your rewards, capped at ${titanConfig.maxRedeemFee} Flux`",modifiers:{hover:!0,bottom:!0}}],staticClass:"text-danger"},[t._v(" "+t._s(t.toFixedLocaleString(t.calculateRedeemFee(),8))+" Flux ")]):e("span",{staticClass:"text-danger"},[t._v(" "+t._s(t.titanConfig?t.titanConfig.redeemFee:"...")+" Flux ")]),t._v(") ")])])],1),e("tab-content",{attrs:{title:"Redeem Address","before-change":()=>t.checkRedeemAddress()}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Choose Redeem Address"}},[e("b-form-select",{attrs:{options:t.redeemAddresses,disabled:t.sendingRequest||t.requestSent||t.requestFailed},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:null,disabled:""}},[t._v(" -- Please select an address -- ")])]},proxy:!0}]),model:{value:t.redeemAddress,callback:function(e){t.redeemAddress=e},expression:"redeemAddress"}})],1)],1),e("tab-content",{attrs:{title:"Sign Request","before-change":()=>null!==t.signature}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Sign Redeem Request with Zelcore"}},[e("a",{attrs:{href:t.sendingRequest||t.requestSent||t.requestFailed?"#":`zel:?action=sign&message=${t.dataToSign}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${t.callbackValue()}`},on:{click:t.initiateSignWS}},[e("img",{staticClass:"zelidLogin mb-2",attrs:{src:a(94452),alt:"Zel ID",height:"100%",width:"100%"}})]),e("b-form-input",{staticClass:"mb-1",attrs:{id:"data",disabled:!0},model:{value:t.dataToSign,callback:function(e){t.dataToSign=e},expression:"dataToSign"}}),e("b-form-input",{attrs:{id:"signature",disabled:t.sendingRequest||t.requestSent||t.requestFailed},model:{value:t.signature,callback:function(e){t.signature=e},expression:"signature"}})],1)],1),e("tab-content",{attrs:{title:"Request Redeem","before-change":()=>!0===t.requestSent}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Submit Redeem Request"}},[e("div",{staticClass:"mt-3 mb-auto"},[e("b-button",{attrs:{size:"lg",disabled:t.sendingRequest||t.requestSent,variant:"warning"},on:{click:t.requestRedeem}},[t._v(" Submit Request ")]),t.requestSent?e("h4",{staticClass:"mt-3 text-success"},[t._v(" Redeem request has been received and will be processed within 24 hours ")]):t._e(),t.requestFailed?e("h4",{staticClass:"mt-3 text-danger"},[t._v(" Redeem request failed ")]):t._e()],1)])],1)],1)],1),e("b-modal",{attrs:{title:"Pending Payment",size:"md",centered:"","button-size":"sm","ok-only":"","ok-title":"OK"},on:{ok:function(e){t.paymentDetailsDialogShowing=!1}},model:{value:t.paymentDetailsDialogShowing,callback:function(e){t.paymentDetailsDialogShowing=e},expression:"paymentDetailsDialogShowing"}},[t.selectedStake?e("b-card",{staticClass:"text-center payment-details-card",attrs:{title:"Send Funds"}},[e("b-card-text",[t._v(" To complete activation, send "),e("span",{staticClass:"text-success"},[t._v(t._s(t.toFixedLocaleString(t.selectedStake.collateral)))]),t._v(" FLUX to address"),e("br"),e("h5",{staticClass:"text-wrap ml-auto mr-auto text-warning mt-1",staticStyle:{width:"25rem"}},[t._v(" "+t._s(t.titanConfig.fundingAddress)+" ")]),t._v(" with the following message"),e("br"),e("h5",{staticClass:"text-wrap ml-auto mr-auto text-warning mt-1",staticStyle:{width:"25rem"}},[t._v(" "+t._s(t.selectedStake.signatureHash)+" ")]),e("div",{staticClass:"d-flex flex-row mt-2"},[e("h3",{staticClass:"col text-center mt-2"},[t._v(" Pay with"),e("br"),t._v("Zelcore ")]),e("a",{staticClass:"col",attrs:{href:`zel:?action=pay&coin=zelcash&address=${t.titanConfig.fundingAddress}&amount=${t.selectedStake.collateral}&message=${t.selectedStake.signatureHash}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2Fflux_banner.png`}},[e("img",{staticClass:"zelidLogin",attrs:{src:a(94452),alt:"Zel ID",height:"100%",width:"100%"}})])]),e("h5",{staticClass:"mt-1"},[t._v(" This activation will expire if the transaction is not on the blockchain before "),e("span",{staticClass:"text-danger"},[t._v(t._s(new Date(1e3*t.selectedStake.expiry).toLocaleString()))])])])],1):t._e()],1),e("b-modal",{attrs:{title:"Cancel Activation?",size:"sm",centered:"","button-size":"sm","ok-title":"Yes","cancel-title":"No"},on:{ok:function(e){t.confirmStakeDialogCloseShowing=!1,t.stakeModalShowing=!1}},model:{value:t.confirmStakeDialogCloseShowing,callback:function(e){t.confirmStakeDialogCloseShowing=e},expression:"confirmStakeDialogCloseShowing"}},[e("h3",{staticClass:"text-center"},[t._v(" Are you sure you want to cancel activating with Titan? ")])]),e("b-modal",{attrs:{title:"Finish Activation?",size:"sm",centered:"","button-size":"sm","ok-title":"Yes","cancel-title":"No"},on:{ok:function(e){t.confirmStakeDialogFinishShowing=!1,t.stakeModalShowing=!1}},model:{value:t.confirmStakeDialogFinishShowing,callback:function(e){t.confirmStakeDialogFinishShowing=e},expression:"confirmStakeDialogFinishShowing"}},[e("h3",{staticClass:"text-center"},[t._v(" Please ensure that you have sent payment for your activation, or saved the payment details for later. ")]),e("br"),e("h4",{staticClass:"text-center"},[t._v(" Close the dialog? ")])]),e("b-modal",{attrs:{title:"Re-invest Expired",size:"lg",centered:"","no-close-on-backdrop":"","no-close-on-esc":"","button-size":"sm","ok-only":"","ok-title":"Cancel"},on:{ok:function(e){t.reinvestModalShowing=!1}},model:{value:t.reinvestModalShowing,callback:function(e){t.reinvestModalShowing=e},expression:"reinvestModalShowing"}},[e("form-wizard",{staticClass:"wizard-vertical mb-3",attrs:{color:t.tierColors.cumulus,title:null,subtitle:null,layout:"vertical","back-button-text":"Previous"},on:{"on-complete":function(e){return t.reinvestDialogFinish()}}},[e("tab-content",{attrs:{title:"Update"}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Update"}},[t.selectedStake?e("div",{staticClass:"d-flex flex-column"},[e("b-form-checkbox",{staticClass:"ml-auto mr-auto",staticStyle:{float:"left"},attrs:{disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},model:{value:t.selectedStake.autoreinvest,callback:function(e){t.$set(t.selectedStake,"autoreinvest",e)},expression:"selectedStake.autoreinvest"}},[t._v(" Auto-reinvest this Flux after expiry ")]),t.titanConfig&&t.titanConfig.reinvestFee>0&&t.titanConfig.maxReinvestFee?e("div",{staticClass:"mt-2"},[e("h6",[e("span",{staticClass:"text-warning"},[t._v("Re-invest Fee:")]),e("span",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:`Fee of ${t.titanConfig.reinvestFee}% of your rewards, capped at ${t.titanConfig.maxReinvestFee} Flux`,expression:"`Fee of ${titanConfig.reinvestFee}% of your rewards, capped at ${titanConfig.maxReinvestFee} Flux`",modifiers:{hover:!0,bottom:!0}}],staticClass:"text-danger"},[t._v(" "+t._s(t.toFixedLocaleString(t.calculateReinvestFee(),8))+" Flux ")])])]):t._e()],1):t._e()])],1),e("tab-content",{attrs:{title:"Choose Duration","before-change":()=>t.checkReinvestDuration()}},[t.titanConfig?e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Select Lockup Period"}},t._l(t.titanConfig.lockups,(function(a,s){return e("div",{key:a.time,staticClass:"mb-1"},[e("div",{staticClass:"ml-auto mr-auto"},[e("b-button",{class:s===t.selectedLockupIndex?"selectedLockupButton":"unselectedLockupButton",style:`background-color: ${t.indexedTierColors[s]} !important;`,attrs:{disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},on:{click:function(e){return t.selectLockup(s)}}},[t._v(" "+t._s(a.name)+" - ~"+t._s((100*a.apr).toFixed(2))+"% ")])],1)])})),0):t._e()],1),e("tab-content",{attrs:{title:"Signing","before-change":()=>null!==t.signature}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Sign with Zelcore"}},[e("a",{attrs:{href:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed?"#":`zel:?action=sign&message=${t.dataToSign}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${t.callbackValue()}`},on:{click:t.initiateSignWS}},[e("img",{staticClass:"zelidLogin mb-2",attrs:{src:a(94452),alt:"Zel ID",height:"100%",width:"100%"}})]),e("b-form-input",{staticClass:"mb-1",attrs:{id:"data",disabled:!0},model:{value:t.dataToSign,callback:function(e){t.dataToSign=e},expression:"dataToSign"}}),e("b-form-input",{attrs:{id:"signature",disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},model:{value:t.signature,callback:function(e){t.signature=e},expression:"signature"}})],1)],1),e("tab-content",{attrs:{title:"Re-invest Flux","before-change":()=>!0===t.stakeRegistered}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Re-invest Stake with Titan"}},[e("div",{staticClass:"mt-3 mb-auto"},[e("b-button",{attrs:{size:"lg",disabled:t.registeringStake||t.stakeRegistered,variant:"success"},on:{click:t.reinvestStake}},[t._v(" Re-invest Flux ")]),t.stakeRegistered?e("h4",{staticClass:"mt-3 text-success"},[t._v(" Registration received ")]):t._e(),t.stakeRegisterFailed?e("h4",{staticClass:"mt-3 text-danger"},[t._v(" Registration failed ")]):t._e()],1)])],1)],1)],1),e("b-modal",{attrs:{title:"Active Flux Details",size:"sm",centered:"","button-size":"sm","cancel-title":"Close","ok-title":"Edit"},on:{ok:t.editActiveStake},model:{value:t.activeStakeInfoModalShowing,callback:function(e){t.activeStakeInfoModalShowing=e},expression:"activeStakeInfoModalShowing"}},[t.selectedStake?e("b-card",[e("div",{staticClass:"d-flex"},[e("b-form-checkbox",{staticClass:"ml-auto mr-auto",staticStyle:{float:"left"},attrs:{disabled:""},model:{value:t.selectedStake.autoreinvest,callback:function(e){t.$set(t.selectedStake,"autoreinvest",e)},expression:"selectedStake.autoreinvest"}},[t._v(" Auto-reinvest this Flux after expiry ")])],1)]):t._e()],1),e("b-modal",{attrs:{title:"Edit Active Flux",size:"lg",centered:"","no-close-on-backdrop":"","no-close-on-esc":"","button-size":"sm","ok-only":"","ok-title":"Cancel"},on:{ok:function(e){t.editStakeModalShowing=!1}},model:{value:t.editStakeModalShowing,callback:function(e){t.editStakeModalShowing=e},expression:"editStakeModalShowing"}},[e("form-wizard",{staticClass:"wizard-vertical mb-3",attrs:{color:t.tierColors.cumulus,title:null,subtitle:null,layout:"vertical","back-button-text":"Previous"},on:{"on-complete":function(e){t.editStakeModalShowing=!1,t.getMyStakes(!0)}}},[e("tab-content",{attrs:{title:"Update"}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Update"}},[t.selectedStake?e("div",{staticClass:"d-flex"},[e("b-form-checkbox",{staticClass:"ml-auto mr-auto",staticStyle:{float:"left"},attrs:{disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},model:{value:t.selectedStake.autoreinvest,callback:function(e){t.$set(t.selectedStake,"autoreinvest",e)},expression:"selectedStake.autoreinvest"}},[t._v(" Auto-reinvest this Flux after expiry ")])],1):t._e()])],1),e("tab-content",{attrs:{title:"Signing","before-change":()=>null!==t.signature}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Sign with Zelcore"}},[e("a",{attrs:{href:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed?"#":`zel:?action=sign&message=${t.dataToSign}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${t.callbackValue()}`},on:{click:t.initiateSignWS}},[e("img",{staticClass:"zelidLogin mb-2",attrs:{src:a(94452),alt:"Zel ID",height:"100%",width:"100%"}})]),e("b-form-input",{staticClass:"mb-1",attrs:{id:"data",disabled:!0},model:{value:t.dataToSign,callback:function(e){t.dataToSign=e},expression:"dataToSign"}}),e("b-form-input",{attrs:{id:"signature",disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},model:{value:t.signature,callback:function(e){t.signature=e},expression:"signature"}})],1)],1),e("tab-content",{attrs:{title:"Send to Titan","before-change":()=>!0===t.stakeRegistered}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Send to Titan"}},[e("div",{staticClass:"mt-3 mb-auto"},[e("b-button",{attrs:{size:"lg",disabled:t.registeringStake||t.stakeRegistered,variant:"success"},on:{click:t.sendModifiedStake}},[t._v(" Send ")]),t.stakeRegistered?e("h4",{staticClass:"mt-3 text-success"},[t._v(" Edits received by Titan ")]):t._e(),t.stakeRegisterFailed?e("h4",{staticClass:"mt-3 text-danger"},[t._v(" Editing failed ")]):t._e()],1)])],1)],1)],1),e("b-modal",{attrs:{title:"Activate Titan",size:"lg",centered:"","no-close-on-backdrop":"","no-close-on-esc":"","button-size":"sm","ok-only":"","ok-title":"Cancel"},on:{ok:t.confirmStakeDialogCancel},model:{value:t.stakeModalShowing,callback:function(e){t.stakeModalShowing=e},expression:"stakeModalShowing"}},[e("form-wizard",{staticClass:"wizard-vertical mb-3",attrs:{color:t.tierColors.cumulus,title:null,subtitle:null,layout:"vertical","back-button-text":"Previous"},on:{"on-complete":function(e){return t.confirmStakeDialogFinish()}}},[e("tab-content",{attrs:{title:"Flux Amount"}},[t.reinvestingNewStake?e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Re-investing Funds"}},[e("div",[e("h5",{staticClass:"mt-3"},[t._v(" A new Titan slot will be created using your available rewards: ")]),e("h2",{staticClass:"mt-3"},[t._v(" "+t._s(t.toFixedLocaleString(t.totalReward,2))+" Flux ")]),t.titanConfig&&t.titanConfig.reinvestFee>0&&t.titanConfig.maxReinvestFee?e("div",{staticClass:"mt-2"},[e("h6",[e("span",{staticClass:"text-warning"},[t._v("Re-invest Fee:")]),e("span",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:`Fee of ${t.titanConfig.reinvestFee}% of your rewards, capped at ${t.titanConfig.maxReinvestFee} Flux`,expression:"`Fee of ${titanConfig.reinvestFee}% of your rewards, capped at ${titanConfig.maxReinvestFee} Flux`",modifiers:{hover:!0,bottom:!0}}],staticClass:"text-danger"},[t._v(" "+t._s(t.toFixedLocaleString(t.calculateNewStakeReinvestFee(),8))+" Flux ")])])]):t._e()])]):e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Choose Flux Amount"}},[e("div",[e("h3",{staticClass:"float-left"},[t._v(" "+t._s(t.toFixedLocaleString(t.minStakeAmount))+" ")]),e("h3",{staticClass:"float-right"},[t._v(" "+t._s(t.toFixedLocaleString(t.maxStakeAmount))+" ")])]),e("b-form-input",{attrs:{id:"stakeamount",type:"range",min:t.minStakeAmount,max:t.maxStakeAmount,step:"5",number:"",disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},model:{value:t.stakeAmount,callback:function(e){t.stakeAmount=e},expression:"stakeAmount"}}),e("b-form-spinbutton",{staticClass:"stakeAmountSpinner",attrs:{id:"stakeamount-spnner",min:t.minStakeAmount,max:t.maxStakeAmount,size:"lg","formatter-fn":t.toFixedLocaleString,disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},model:{value:t.stakeAmount,callback:function(e){t.stakeAmount=e},expression:"stakeAmount"}})],1)],1),e("tab-content",{attrs:{title:"Choose Duration","before-change":()=>t.checkDuration()}},[t.titanConfig?e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Select Lockup Period"}},[t._l(t.titanConfig.lockups,(function(a,s){return e("div",{key:a.time,staticClass:"mb-1"},[e("div",{staticClass:"ml-auto mr-auto"},[e("b-button",{class:(s===t.selectedLockupIndex?"selectedLockupButton":"unselectedLockupButton")+(t.reinvestingNewStake?"Small":""),style:`background-color: ${t.indexedTierColors[s]} !important;`,attrs:{disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},on:{click:function(e){return t.selectLockup(s)}}},[t._v(" "+t._s(a.name)+" - ~"+t._s((100*a.apr).toFixed(2))+"% ")])],1)])})),e("div",{staticClass:"d-flex"},[e("b-form-checkbox",{staticClass:"ml-auto mr-auto",staticStyle:{float:"left"},attrs:{disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},model:{value:t.autoReinvestStake,callback:function(e){t.autoReinvestStake=e},expression:"autoReinvestStake"}},[t._v(" Auto-reinvest this Flux after expiry ")])],1)],2):t._e()],1),e("tab-content",{attrs:{title:"Signing","before-change":()=>null!==t.signature}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Sign with Zelcore"}},[e("a",{attrs:{href:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed?"#":`zel:?action=sign&message=${t.dataToSign}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${t.callbackValue()}`},on:{click:t.initiateSignWS}},[e("img",{staticClass:"zelidLogin mb-2",attrs:{src:a(94452),alt:"Zel ID",height:"100%",width:"100%"}})]),e("b-form-input",{staticClass:"mb-1",attrs:{id:"data",disabled:!0},model:{value:t.dataToSign,callback:function(e){t.dataToSign=e},expression:"dataToSign"}}),e("b-form-input",{attrs:{id:"signature",disabled:t.stakeRegistered||t.registeringStake||t.stakeRegisterFailed},model:{value:t.signature,callback:function(e){t.signature=e},expression:"signature"}})],1)],1),e("tab-content",{attrs:{title:"Register with Titan","before-change":()=>!0===t.stakeRegistered}},[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Register with Titan"}},[e("div",{staticClass:"mt-3 mb-auto"},[e("h5",[e("span",{staticClass:"text-danger"},[t._v("IMPORTANT:")]),t._v(" Your funds will be locked until ")]),e("h5",[e("span",{staticClass:"text-warning"},[t._v(t._s(new Date(Date.now()+1e3*t.getLockupDuration()).toLocaleString()))])]),e("h5",{staticClass:"mb-2"},[t._v(" You will not be able to withdraw your Flux until the time has passed. ")]),e("b-button",{attrs:{size:"lg",disabled:t.registeringStake||t.stakeRegistered,variant:"success"},on:{click:t.registerStake}},[t._v(" Register with Titan ")]),t.stakeRegistered?e("h4",{staticClass:"mt-3 text-success"},[t._v(" Registration received ")]):t._e(),t.stakeRegisterFailed?e("h4",{staticClass:"mt-3 text-danger"},[t._v(" Registration failed ")]):t._e()],1)])],1),t.reinvestingNewStake?t._e():e("tab-content",{attrs:{title:"Send Funds"}},[t.titanConfig&&t.signatureHash?e("div",[e("b-card",{staticClass:"text-center wizard-card",attrs:{title:"Send Funds"}},[e("b-card-text",[t._v(" To finish activation, make a transaction of "),e("span",{staticClass:"text-success"},[t._v(t._s(t.toFixedLocaleString(t.stakeAmount)))]),t._v(" FLUX to address"),e("br"),e("h5",{staticClass:"text-wrap ml-auto mr-auto text-warning",staticStyle:{width:"25rem"}},[t._v(" "+t._s(t.titanConfig.fundingAddress)+" ")]),t._v(" with the following message"),e("br")]),e("h5",{staticClass:"text-wrap ml-auto mr-auto text-warning",staticStyle:{width:"25rem"}},[t._v(" "+t._s(t.signatureHash)+" ")]),e("div",{staticClass:"d-flex flex-row mt-2"},[e("h3",{staticClass:"col text-center mt-2"},[t._v(" Pay with"),e("br"),t._v("Zelcore ")]),e("a",{staticClass:"col",attrs:{href:`zel:?action=pay&coin=zelcash&address=${t.titanConfig.fundingAddress}&amount=${t.stakeAmount}&message=${t.signatureHash}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2Fflux_banner.png`}},[e("img",{staticClass:"zelidLogin",attrs:{src:a(94452),alt:"Zel ID",height:"100%",width:"100%"}})])])],1)],1):t._e()])],1)],1)],1)},ht=[],ft=a(19279),bt=a(49379),xt=a(19692),Ct=a(44390),wt=a(66126),St=a(1759),kt=a(16521),yt=a(9669),_t=a.n(yt),Ft=a(51136);const Rt=a(80129),zt=a(58971),Tt=a(63005),Dt={components:{BAvatar:m.SH,BButton:R.T,BCard:z._,BCardBody:ft.O,BCardText:D.j,BCardTitle:bt._,BCol:A.l,BFormCheckbox:xt.l,BFormInput:r.e,BFormSelect:L.K,BFormSelectOption:B.c,BFormSpinbutton:Ct.G,BMedia:d.P,BMediaBody:u.D,BModal:Z.N,BOverlay:wt.X,BRow:P.T,BSpinner:St.X,BTabs:I.M,BTab:M.L,BTable:kt.h,FormWizard:q.FormWizard,TabContent:q.TabContent,ToastificationContent:C.Z,VuePerfectScrollbar:S()},directives:{Ripple:b.Z,"b-modal":E.T,"b-toggle":O.M,"b-tooltip":j.o},props:{zelid:{type:String,required:!1,default:""}},setup(t){const e=(0,g.getCurrentInstance)().proxy,a=(0,x.useToast)(),s=(t,e,s="InfoIcon")=>{a({component:C.Z,props:{title:e,icon:s,variant:t},position:"bottom-right"})},i=(0,g.ref)("");i.value=t.tier;const r=(0,g.ref)("");r.value=t.zelid;const o="https://api.titan.runonflux.io",n=(0,g.ref)(0),l=(0,g.ref)(0),c=(0,g.ref)(50),d=(0,g.ref)(50),u=(0,g.ref)(1e3),p=(0,g.ref)(0),m=(0,g.ref)(null),v=(0,g.ref)(null),h=(0,g.ref)(null),f=(0,g.ref)(null),b=(0,g.ref)(null),w=(0,g.ref)(!1),S=(0,g.ref)(!1),k=(0,g.ref)(!1),y=(0,g.computed)((()=>e.$store.state.flux.config)),_=(0,g.ref)(null),F=(0,g.ref)(!0),R=(0,g.ref)(!1),z=(0,g.ref)(!0),T=(0,g.ref)("Too much Flux has registered with Titan, please wait for more Nodes to be made available"),D=(0,g.ref)(0),A=(0,g.ref)(null),$=(0,g.ref)(null),Z=(0,g.ref)(!1),P=(0,g.ref)(!1),I=(0,g.ref)(!1),M=(0,g.ref)([J.Z.cumulus,J.Z.nimbus,J.Z.stratus]),L=()=>{const{protocol:t,hostname:a}=window.location;let s="";s+=t,s+="//";const i=/[A-Za-z]/g;if(a.match(i)){const t=a.split(".");t[0]="api",s+=t.join(".")}else"string"===typeof a&&e.$store.commit("flux/setUserIp",a),s+=a,s+=":",s+=y.value.apiPort;const r=zt.get("backendURL")||s;return r},B=()=>{const t=L(),e=`${t}/id/providesign`;return encodeURI(e)},N=t=>{console.log(t)},E=t=>{const e=Rt.parse(t.data);"success"===e.status&&e.data&&(v.value=e.data.signature),console.log(e),console.log(t)},O=t=>{console.log(t)},j=t=>{console.log(t)},q=()=>{if(w.value||k.value||S.value)return;const{protocol:t,hostname:a}=window.location;let s="";s+=t,s+="//";const i=/[A-Za-z]/g;if(a.match(i)){const t=a.split(".");t[0]="api",s+=t.join(".")}else"string"===typeof a&&e.$store.commit("flux/setUserIp",a),s+=a,s+=":",s+=y.value.apiPort;let o=zt.get("backendURL")||s;o=o.replace("https://","wss://"),o=o.replace("http://","ws://");const n=r.value+f.value;console.log(`signatureMessage: ${n}`);const l=`${o}/ws/sign/${n}`;console.log(l);const c=new WebSocket(l);b.value=c,c.onopen=t=>{j(t)},c.onclose=t=>{O(t)},c.onmessage=t=>{E(t)},c.onerror=t=>{N(t)}},V=(0,g.ref)(!1),W=(0,g.ref)(!1),U=(0,g.ref)(!1),H=(0,g.ref)(!1),Y=(0,g.ref)(!1),G=(0,g.ref)(!1),K=(0,g.ref)(!1),X=(0,g.ref)(!1),Q=(0,g.ref)(!1),tt=(0,g.ref)(!1),et={maxScrollbarLength:150},at=(0,g.ref)([]),st=(0,g.ref)(0),it=(0,g.ref)([]),rt=(0,g.ref)([]),ot=(0,g.ref)([]),nt=(0,g.ref)([{key:"timestamp",label:"Date"},{key:"total",label:"Amount"},{key:"address",label:"Address"},{key:"txid",label:"Transaction"}]),lt=(0,g.ref)(),ct=(0,g.ref)(),dt=(0,g.ref)(0),ut=(0,g.ref)(0),pt=async()=>{const t=await _t().get(`${o}/registermessage`);m.value=t.data,f.value=t.data.substring(t.data.length-13)},mt=async()=>{const t=await _t().get(`${o}/redeemmessage`);m.value=t.data,f.value=t.data.substring(t.data.length-13)},gt=async()=>{const t=await _t().get(`${o}/modifymessage`);m.value=t.data,f.value=t.data.substring(t.data.length-13)},vt=async()=>!!A.value&&(await mt(),!0),ht=async()=>{const t=await _t().get(`${o}/stats`);ct.value=t.data,z.value=st.value<=ct.value.total+lt.value.minStake},ft=(t,e,a,s)=>{const i=e*(100-t.fee)/100,r=720,o=r/s,n=30*o*i,l=n/a,c=12*l,d=(1+c/12)**12-1;return d},bt=t=>{if(0===at.value.length)return 0;const e=ft(t,11.25,4e4,dt.value),a=ft(t,4.6875,12500,ut.value),s=at.value.reduce(((t,e)=>t+(4e4===e.collateral?1:0)),0),i=at.value.reduce(((t,e)=>t+(12500===e.collateral?1:0)),0);return(e*s+a*i)/(s+i)},xt=async()=>{const t=await _t().get(`${o}/nodes`),e=[];st.value=0,t.data.forEach((t=>{const a=t;e.push(a),st.value+=a.collateral})),at.value=e.sort(((t,e)=>t.name.toLowerCase()>e.name.toLowerCase()?1:-1)),lt.value.lockups.forEach((t=>{t.apr=bt(t)}))},Ct=async(t=!1)=>{try{if(r.value.length>0){const e=await _t().get(`${o}/stakes/${r.value}${t?`?timestamp=${Date.now()}`:""}`);if(e.data&&"error"===e.data.status)return;const a=[],s=[],i=Date.now()/1e3;n.value=0,l.value=0,console.log(e.data),e.data.forEach((t=>{t.expiry=4&&(s.push(t),4===t.state&&(l.value+=t.reward-t.collateral)):(a.push(t),l.value+=t.reward),n.value+=t.reward})),it.value=a,rt.value=s}}catch(e){s("danger",e.message||e),console.log(e)}},wt=async(t=!1)=>{if(r.value.length>0){const e=await _t().get(`${o}/payments/${r.value}${t?`?timestamp=${Date.now()}`:""}`);ot.value=e.data}},St=async()=>{const t=await Ft.Z.fluxnodeCount();if("error"===t.data.status)return s({component:C.Z,props:{title:t.data.data.message||t.data.data,icon:"InfoIcon",variant:"danger"}}),0;const e=t.data.data;return e},kt=()=>!(!lt.value||!lt.value.maintenanceMode),yt=async()=>{try{const t=await St();dt.value=t["stratus-enabled"],ut.value=t["nimbus-enabled"];const e=await _t().get(`${o}/config`);lt.value=e.data,lt.value.lockups.sort(((t,e)=>t.blocks-e.blocks)),lt.value.lockups.forEach((t=>{t.apr=bt(t)})),e.data.minStake>0&&(d.value=e.data.minStake),e.data.maxStake>0&&(u.value=e.data.maxStake),await xt(),await ht(),Ct(),wt(),st.value-ct.value.total{yt()}),12e4);const Dt=(t=!1)=>{lt.value&<.value.maintenanceMode||(R.value=t,V.value=!0,w.value=!1,S.value=!1,k.value=!1,c.value=d.value,p.value=0,v.value=null,h.value=null)},At=()=>{R.value?V.value=!1:U.value=!0,Ct(!0)},$t=t=>{t.preventDefault(),W.value=!0},Zt=t=>{lt.value&<.value.maintenanceMode||(_.value=JSON.parse(JSON.stringify(t)),Q.value=!0)},Pt=async()=>{lt.value&<.value.maintenanceMode||(Q.value=!1,await gt(),w.value=!1,S.value=!1,k.value=!1,v.value=null,h.value=null,tt.value=!0)},It=async()=>{k.value=!0;const t=localStorage.getItem("zelidauth"),e={stake:_.value.uuid,timestamp:f.value,signature:v.value,data:m.value,autoreinvest:_.value.autoreinvest,reinvest:!1};s("info","Sending modifications to Titan...");const a={headers:{zelidauth:t,backend:L()}},i=await _t().post(`${o}/modifystake`,e,a).catch((t=>{console.log(t),S.value=!0,s("danger",t.message||t)}));console.log(i.data),i&&i.data&&"success"===i.data.status?(w.value=!0,s("success",i.data.message||i.data)):(S.value=!0,s("danger",(i.data.data?i.data.data.message:i.data.message)||i.data))},Mt=t=>{lt.value&<.value.maintenanceMode||(w.value=!1,S.value=!1,k.value=!1,p.value=0,v.value=null,h.value=null,_.value=JSON.parse(JSON.stringify(t)),gt(),X.value=!0)},Lt=()=>{Ct(!0),X.value=!1},Bt=()=>{const t=_.value.reward-_.value.collateral;let e=t*(lt.value.reinvestFee/100);return e>lt.value.maxReinvestFee&&(e=lt.value.maxReinvestFee),e},Nt=()=>{const t=l.value;let e=t*(lt.value.reinvestFee/100);return e>lt.value.maxReinvestFee&&(e=lt.value.maxReinvestFee),e},Et=()=>{if(!lt.value)return 0;if(!lt.value.maxRedeemFee)return lt.value.redeemFee;const t=l.value;let e=t*(lt.value.redeemFee/100);return e>lt.value.maxRedeemFee&&(e=lt.value.maxRedeemFee),e},Ot=t=>{p.value=t},jt=()=>{lt.value&<.value.maintenanceMode||(Y.value=!0)},qt=()=>{lt.value&<.value.maintenanceMode||(G.value=!0)},Vt=()=>{if(lt.value&<.value.maintenanceMode)return;const t=[];it.value.forEach((e=>{e.address&&!t.some((t=>t.text===e.address))&&t.push({value:e.uuid,text:e.address})})),rt.value.forEach((e=>{e.address&&!t.some((t=>t.text===e.address))&&t.push({value:e.uuid,text:e.address})})),D.value=lt.value.redeemFee,A.value=null,$.value=t,m.value=null,v.value=null,I.value=!1,Z.value=!1,P.value=!1,K.value=!0},Wt=()=>{lt.value&<.value.maintenanceMode||(K.value=!1,Ct(!0),wt(!0))},Ut=t=>{lt.value&<.value.maintenanceMode||(_.value=JSON.parse(JSON.stringify(t)),H.value=!0)},Ht=async()=>{k.value=!0;const t=localStorage.getItem("zelidauth"),e={stake:_.value.uuid,timestamp:f.value,signature:v.value,data:m.value,autoreinvest:_.value.autoreinvest,reinvest:!0,lockup:lt.value.lockups[p.value]};s("info","Re-investing with Titan...");const a={headers:{zelidauth:t,backend:L()}},i=await _t().post(`${o}/modifystake`,e,a).catch((t=>{console.log(t),S.value=!0,s("danger",t.message||t)}));console.log(i.data),i&&i.data&&"success"===i.data.status?(w.value=!0,s("success",i.data.message||i.data)):(S.value=!0,s("danger",(i.data.data?i.data.data.message:i.data.message)||i.data))},Yt=async()=>{k.value=!0;const t=localStorage.getItem("zelidauth"),e={amount:R.value?0:c.value,lockup:lt.value.lockups[p.value],timestamp:f.value,signature:v.value,data:m.value,autoreinvest:F.value,stakefromrewards:R.value};s("info","Registering with Titan...");const a={headers:{zelidauth:t,backend:L()}},i=await _t().post(`${o}/register`,e,a).catch((t=>{console.log(t),S.value=!0,s("danger",t.message||t)}));console.log(i.data),i&&i.data&&"success"===i.data.status?(w.value=!0,h.value=i.data.hash,s("success",i.data.message||i.data)):(S.value=!0,s("danger",(i.data.data?i.data.data.message:i.data.message)||i.data))},Jt=(t,e=0)=>{const a=Math.floor(t*10**e)/10**e;return e<4?a.toLocaleString():`${a}`},Gt=async()=>{I.value=!0;const t=localStorage.getItem("zelidauth"),e={amount:n.value,stake:A.value,timestamp:f.value,signature:v.value,data:m.value};console.log(e),s("info","Sending redeem request to Titan...");const a={headers:{zelidauth:t,backend:L()}},i=await _t().post(`${o}/redeem`,e,a).catch((t=>{console.log(t),P.value=!0,s("danger",t.message||t)}));console.log(i.data),i&&i.data&&"success"===i.data.status?(Z.value=!0,s("success",i.data.message||i.data),yt()):(P.value=!0,s("danger",(i.data.data?i.data.data.message:i.data.message)||i.data))},Kt=t=>{const e=lt.value.lockups.find((e=>e.fee===t.fee));return e?t.collateral*e.apr/12:0},Xt=()=>{let t=it.value?it.value.reduce(((t,e)=>t+e.paid-(e.feePaid??0)),0):0;return t+=rt.value?rt.value.reduce(((t,e)=>t+e.paid-(e.feePaid??0)-(5===e.state?e.collateral:0)),0):0,Jt(t,2)},Qt=t=>{window.open(`http://${t.address}`,"_blank")},te=async()=>(await pt(),p.value>=0&&p.valuelt.value?lt.value.lockups[p.value].time:0,ae=async()=>p.value>=0&&p.value{console.log(D.value);const t=parseFloat(D.value);return console.log(t),console.log(n.value),t>lt.value.redeemFee&&t<=parseFloat(Jt(n.value,2))},ie=t=>`Send a payment of ${t.collateral} Flux to
${lt.value.nodeAddress}
with a message
${t.signatureHash}`;return{perfectScrollbarSettings:et,timeoptions:Tt,nodes:at,totalCollateral:st,myStakes:it,myExpiredStakes:rt,myPayments:ot,paymentFields:nt,totalReward:n,titanConfig:lt,titanStats:ct,tooMuchStaked:z,defaultStakeDisabledMessage:T,userZelid:r,signature:v,signatureHash:h,dataToSign:m,callbackValue:B,initiateSignWS:q,timestamp:f,getMyStakes:Ct,getMyPayments:wt,calcAPR:bt,calcMonthlyReward:Kt,calculatePaidRewards:Xt,toFixedLocaleString:Jt,formatPaymentTooltip:ie,showNodeInfoDialog:jt,nodeModalShowing:Y,visitNode:Qt,showAPRInfoDialog:qt,aprModalShowing:G,stakeModalShowing:V,showStakeDialog:Dt,reinvestingNewStake:R,stakeAmount:c,minStakeAmount:d,maxStakeAmount:u,stakeRegistered:w,stakeRegisterFailed:S,selectedLockupIndex:p,selectLockup:Ot,autoReinvestStake:F,registeringStake:k,registerStake:Yt,checkDuration:te,getLockupDuration:ee,getRegistrationMessage:pt,confirmStakeDialogCancel:$t,confirmStakeDialogCloseShowing:W,confirmStakeDialogFinish:At,confirmStakeDialogFinishShowing:U,showActiveStakeInfoDialog:Zt,activeStakeInfoModalShowing:Q,editActiveStake:Pt,editStakeModalShowing:tt,sendModifiedStake:It,showReinvestDialog:Mt,getModifyMessage:gt,reinvestModalShowing:X,reinvestStake:Ht,checkReinvestDuration:ae,reinvestDialogFinish:Lt,calculateReinvestFee:Bt,calculateNewStakeReinvestFee:Nt,showPaymentDetailsDialog:Ut,paymentDetailsDialogShowing:H,selectedStake:_,showOverlay:kt,showRedeemDialog:Vt,redeemModalShowing:K,redeemAmount:D,redeemAddress:A,redeemAddresses:$,redeemAmountState:se,getRedeemMessage:mt,checkRedeemAddress:vt,sendingRequest:I,requestSent:Z,requestFailed:P,requestRedeem:Gt,confirmRedeemDialogFinish:Wt,calculateRedeemFee:Et,tierColors:J.Z,indexedTierColors:M}}},At=Dt;var $t=(0,pt.Z)(At,vt,ht,!1,null,"46b6fc5e",null);const Zt=$t.exports;var Pt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"sidebar-left"},[e("div",{staticClass:"sidebar"},[e("div",{staticClass:"sidebar-content marketplace-sidebar"},[e("div",{staticClass:"marketplace-app-menu"},[e("div",{staticClass:"add-task"}),e("vue-perfect-scrollbar",{staticClass:"sidebar-menu-list scroll-area",attrs:{settings:t.perfectScrollbarSettings}},[e("b-list-group",{staticClass:"list-group-filters"},t._l(t.taskFilters,(function(a){return e("b-list-group-item",{key:a.title+t.$route.path,attrs:{to:a.route,active:t.isDynamicRouteActive(a.route)},on:{click:function(e){t.$emit("close-app-view"),t.$emit("close-left-sidebar")}}},[e("v-icon",{staticClass:"mr-75 icon-spacing",attrs:{name:a.icon,scale:"1.55"}}),e("span",{staticClass:"line-height-2"},[t._v(t._s(a.title))])],1)})),1),e("hr"),e("b-list-group",{staticClass:"list-group-filters"},t._l(t.nodeActions,(function(a){return e("b-list-group-item",{key:a.title+t.$route.path,attrs:{to:a.route,active:t.isDynamicRouteActive(a.route),target:"_blank",rel:"noopener noreferrer"},on:{click:function(e){t.$emit("close-app-view"),t.$emit("close-left-sidebar"),t.$emit(a.event)}}},[e("v-icon",{staticClass:"mr-75 icon-spacing",attrs:{name:a.icon,scale:"1.55"}}),e("span",{staticClass:"line-height-2"},[t._v(t._s(a.title))])],1)})),1)],1)],1)])])])},It=[],Mt=a(70322),Lt=a(88367),Bt=a(82162);const Nt={directives:{Ripple:b.Z},components:{BListGroup:Mt.N,BListGroupItem:Lt.f,VuePerfectScrollbar:S()},props:{zelid:{type:String,required:!1,default:""}},setup(t){const e={maxScrollbarLength:60},a=(0,g.ref)("");a.value=t.zelid;const s=[{title:"All Categories",icon:"inbox",route:{name:"apps-marketplace"}}];Bt.categories.forEach((t=>{s.push({title:t.name,icon:t.icon,route:{name:"apps-marketplace-filter",params:{filter:t.name.toLowerCase()}}})}));const i=[{title:"Shared Nodes",icon:"inbox",event:"open-shared-nodes",route:{name:"apps-marketplace-sharednodes"}}];return{perfectScrollbarSettings:e,taskFilters:s,nodeActions:i,isDynamicRouteActive:h._d}}},Et=Nt;var Ot=(0,pt.Z)(Et,Pt,It,!1,null,null,null);const jt=Ot.exports,qt=a(80129),Vt=a(9669),Wt=a(63005),Ut={components:{BFormInput:r.e,BInputGroup:o.w,BInputGroupPrepend:n.P,BDropdown:l.R,BDropdownItem:c.E,BMedia:d.P,BMediaBody:u.D,BBadge:p.k,BAvatar:m.SH,AppView:gt,SharedNodesView:Zt,CategorySidebar:jt,VuePerfectScrollbar:S(),ToastificationContent:C.Z},directives:{Ripple:b.Z},setup(){const t=(0,g.ref)(null),e=(0,g.ref)(null),a=(0,g.ref)(""),{route:s,router:i}=(0,h.tv)(),r=(0,g.ref)(!1),o=(0,g.ref)(!1),n=(0,x.useToast)();(0,g.onBeforeMount)((()=>{const t=localStorage.getItem("zelidauth"),a=qt.parse(t);e.value=a.zelid,o.value="/apps/shared-nodes"===s.value.path}));const l=t=>t.compose.reduce(((t,e)=>t+e.cpu),0),c=t=>t.compose.reduce(((t,e)=>t+e.ram),0),d=t=>t.compose.reduce(((t,e)=>t+e.hdd),0),u=t=>264e3===t.expire?"1 year":66e3===t.expire?"3 months":132e3===t.expire?"6 months":"1 month",{showDetailSidebar:p}=(0,f.w)(),m=(0,g.computed)((()=>s.value.query.sort)),b=(0,g.computed)((()=>s.value.query.q)),w=(0,g.computed)((()=>s.value.params)),S=(0,g.ref)([]),_=["latest","title-asc","title-desc","end-date","cpu","ram","hdd"],F=(0,g.ref)(m.value);(0,g.watch)(m,(t=>{_.includes(t),F.value=t}));const R=()=>{const t=JSON.parse(JSON.stringify(s.value.query));delete t.sort,i.replace({name:s.name,query:t}).catch((()=>{}))},z=(0,g.ref)({}),T=(t,e,a="InfoIcon")=>{n({component:C.Z,props:{title:e,icon:a,variant:t}})},D=t=>{const e=Bt.categories.filter((e=>e.name===t.name));return 0===e.length?Bt.defaultCategory.variant:e[0].variant},A=t=>{const e=Bt.categories.filter((e=>e.name===t.name));return 0===e.length?Bt.defaultCategory.variant:e[0].variant},$=t=>{const e=Bt.categories.filter((e=>e.name===t.name));return 0===e.length?Bt.defaultCategory.icon:e[0].icon},Z=(0,g.ref)(b.value);(0,g.watch)(b,(t=>{Z.value=t}));const P=t=>{const e=JSON.parse(JSON.stringify(s.value.query));t?e.q=t:delete e.q,i.replace({name:s.name,query:e})},I=t=>{const e=Bt.categories.find((e=>e.name===t));return e||Bt.defaultCategory},M=async()=>{const t=await y.Z.getMarketPlaceURL();if("success"===t.data.status&&t.data.data){const e=await Vt.get(t.data.data);console.log(e),"success"===e.data.status?(S.value=e.data.data.filter((t=>t.visible)),S.value.forEach((t=>{t.extraDetail=I(t.category)})),i.currentRoute.params.filter&&(S.value=S.value.filter((t=>t.extraDetail.name.toLowerCase()===i.currentRoute.params.filter.toLowerCase()))),Z.value&&(S.value=S.value.filter((t=>!!t.name.toLowerCase().includes(Z.value)||!!t.description.toLowerCase().includes(Z.value)))),F.value&&S.value.sort(((t,e)=>"title-asc"===F.value?t.name.localeCompare(e.name):"title-desc"===F.value?e.name.localeCompare(t.name):"cpu"===F.value?l(t)-l(e):"ram"===F.value?c(t)-c(e):"hdd"===F.value?d(t)-d(e):"price"===F.value?t.price-e.price:0))):T("danger",e.data.data.message||e.data.data)}else T("danger",t.data.data.message||t.data.data)};(0,g.watch)([Z,F],(()=>M())),(0,g.watch)(w,(()=>{M()}));const L=async()=>{const t=await k.Z.getFluxNodeStatus();"success"===t.data.status&&(a.value=t.data.data.tier),M()};L();const B=t=>{z.value=t,r.value=!0},N={maxScrollbarLength:150};return{zelid:e,tier:a,appListRef:t,timeoptions:Wt,app:z,handleAppClick:B,updateRouteQuery:P,searchQuery:Z,filteredApps:S,sortOptions:_,resetSortAndNavigate:R,perfectScrollbarSettings:N,resolveTagVariant:D,resolveAvatarVariant:A,resolveAvatarIcon:$,avatarText:v.k3,isAppViewActive:r,isSharedNodesViewActive:o,showDetailSidebar:p,resolveHdd:d,resolveCpu:l,resolveRam:c,adjustPeriod:u}}},Ht=Ut;var Yt=(0,pt.Z)(Ht,s,i,!1,null,null,null);const Jt=Yt.exports},6044:(t,e,a)=>{"use strict";a.d(e,{w:()=>r});var s=a(20144),i=a(73507);const r=()=>{const t=(0,s.ref)(!1),e=(0,s.computed)((()=>i.Z.getters["app/currentBreakPoint"]));return(0,s.watch)(e,((e,a)=>{"md"===a&&"lg"===e&&(t.value=!1)})),{mqShallShowLeftSidebar:t}}},1923:(t,e,a)=>{"use strict";a.d(e,{k3:()=>s});a(70560),a(23646);const s=t=>{if(!t)return"";const e=t.split(" ");return e.map((t=>t.charAt(0).toUpperCase())).join("")}},72918:(t,e,a)=>{"use strict";a.d(e,{Z:()=>i});const s={cumulus:"#2B61D1",nimbus:"#ff9f43",stratus:"#ea5455"},i=s},63005:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>r});const s={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},i={year:"numeric",month:"short",day:"numeric"},r={shortDate:s,date:i}},43672:(t,e,a)=>{"use strict";a.d(e,{Z:()=>i});var s=a(80914);const i={listRunningApps(){return(0,s.Z)().get("/apps/listrunningapps")},listAllApps(){return(0,s.Z)().get("/apps/listallapps")},installedApps(){return(0,s.Z)().get("/apps/installedapps")},availableApps(){return(0,s.Z)().get("/apps/availableapps")},getEnterpriseNodes(){return(0,s.Z)().get("/apps/enterprisenodes")},stopApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appstop/${e}`,a)},startApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appstart/${e}`,a)},pauseApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/apppause/${e}`,a)},unpauseApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appunpause/${e}`,a)},restartApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/apprestart/${e}`,a)},removeApp(t,e){const a={headers:{zelidauth:t},onDownloadProgress(t){console.log(t)}};return(0,s.Z)().get(`/apps/appremove/${e}`,a)},registerApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().post("/apps/appregister",JSON.stringify(e),a)},updateApp(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().post("/apps/appupdate",JSON.stringify(e),a)},checkCommunication(){return(0,s.Z)().get("/flux/checkcommunication")},checkDockerExistance(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().post("/apps/checkdockerexistance",JSON.stringify(e),a)},appsRegInformation(){return(0,s.Z)().get("/apps/registrationinformation")},appsDeploymentInformation(){return(0,s.Z)().get("/apps/deploymentinformation")},getAppLocation(t){return(0,s.Z)().get(`/apps/location/${t}`)},globalAppSpecifications(){return(0,s.Z)().get("/apps/globalappsspecifications")},permanentMessagesOwner(t){return(0,s.Z)().get(`/apps/permanentmessages?owner=${t}`)},getInstalledAppSpecifics(t){return(0,s.Z)().get(`/apps/installedapps/${t}`)},getAppSpecifics(t){return(0,s.Z)().get(`/apps/appspecifications/${t}`)},getAppOwner(t){return(0,s.Z)().get(`/apps/appowner/${t}`)},getAppLogsTail(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/applog/${e}/100`,a)},getAppTop(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/apptop/${e}`,a)},getAppInspect(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appinspect/${e}`,a)},getAppStats(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appstats/${e}`,a)},getAppChanges(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appchanges/${e}`,a)},getAppExec(t,e,a,i){const r={headers:{zelidauth:t}},o={appname:e,cmd:a,env:JSON.parse(i)};return(0,s.Z)().post("/apps/appexec",JSON.stringify(o),r)},reindexGlobalApps(t){return(0,s.Z)().get("/apps/reindexglobalappsinformation",{headers:{zelidauth:t}})},reindexLocations(t){return(0,s.Z)().get("/apps/reindexglobalappslocation",{headers:{zelidauth:t}})},rescanGlobalApps(t,e,a){return(0,s.Z)().get(`/apps/rescanglobalappsinformation/${e}/${a}`,{headers:{zelidauth:t}})},getAppPirce(t){return(0,s.Z)().post("/apps/calculateprice",JSON.stringify(t))},getFolder(t,e){return(0,s.Z)().get(`/apps/fluxshare/getfolder/${e}`,{headers:{zelidauth:t}})},createFolder(t,e){return(0,s.Z)().get(`/apps/fluxshare/createfolder/${e}`,{headers:{zelidauth:t}})},getFile(t,e){return(0,s.Z)().get(`/apps/fluxshare/getfile/${e}`,{headers:{zelidauth:t}})},removeFile(t,e){return(0,s.Z)().get(`/apps/fluxshare/removefile/${e}`,{headers:{zelidauth:t}})},shareFile(t,e){return(0,s.Z)().get(`/apps/fluxshare/sharefile/${e}`,{headers:{zelidauth:t}})},unshareFile(t,e){return(0,s.Z)().get(`/apps/fluxshare/unsharefile/${e}`,{headers:{zelidauth:t}})},removeFolder(t,e){return(0,s.Z)().get(`/apps/fluxshare/removefolder/${e}`,{headers:{zelidauth:t}})},fileExists(t,e){return(0,s.Z)().get(`/apps/fluxshare/fileexists/${e}`,{headers:{zelidauth:t}})},storageStats(t){return(0,s.Z)().get("/apps/fluxshare/stats",{headers:{zelidauth:t}})},renameFileFolder(t,e,a){return(0,s.Z)().get(`/apps/fluxshare/rename/${e}/${a}`,{headers:{zelidauth:t}})},appPrice(t){return(0,s.Z)().post("/apps/calculateprice",JSON.stringify(t))},appRegistrationVerificaiton(t){return(0,s.Z)().post("/apps/verifyappregistrationspecifications",JSON.stringify(t))},appUpdateVerification(t){return(0,s.Z)().post("/apps/verifyappupdatespecifications",JSON.stringify(t))},getAppMonitoring(t,e){const a={headers:{zelidauth:t}};return(0,s.Z)().get(`/apps/appmonitor/${e}`,a)},startAppMonitoring(t,e){const a={headers:{zelidauth:t}};return e?(0,s.Z)().get(`/apps/startmonitoring/${e}`,a):(0,s.Z)().get("/apps/startmonitoring",a)},stopAppMonitoring(t,e,a){const i={headers:{zelidauth:t}};return e&&a?(0,s.Z)().get(`/apps/stopmonitoring/${e}/${a}`,i):e?(0,s.Z)().get(`/apps/stopmonitoring/${e}`,i):a?(0,s.Z)().get(`/apps/stopmonitoring?deletedata=${a}`,i):(0,s.Z)().get("/apps/stopmonitoring",i)},justAPI(){return(0,s.Z)()}}},27616:(t,e,a)=>{"use strict";a.d(e,{Z:()=>i});var s=a(80914);const i={help(){return(0,s.Z)().get("/daemon/help")},helpSpecific(t){return(0,s.Z)().get(`/daemon/help/${t}`)},getInfo(){return(0,s.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,s.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(t,e){return(0,s.Z)().get(`/daemon/getrawtransaction/${t}/${e}`)},listFluxNodes(){return(0,s.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,s.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,s.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,s.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,s.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,s.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,s.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,s.Z)().get("/daemon/getbenchstatus")},startBenchmark(t){return(0,s.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:t}})},stopBenchmark(t){return(0,s.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:t}})},getBlockCount(){return(0,s.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,s.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,s.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,s.Z)().get("/daemon/getnetworkinfo")},validateAddress(t,e){return(0,s.Z)().get(`/daemon/validateaddress/${e}`,{headers:{zelidauth:t}})},getWalletInfo(t){return(0,s.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:t}})},listFluxNodeConf(t){return(0,s.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:t}})},start(t){return(0,s.Z)().get("/daemon/start",{headers:{zelidauth:t}})},restart(t){return(0,s.Z)().get("/daemon/restart",{headers:{zelidauth:t}})},stopDaemon(t){return(0,s.Z)().get("/daemon/stop",{headers:{zelidauth:t}})},rescanDaemon(t,e){return(0,s.Z)().get(`/daemon/rescanblockchain/${e}`,{headers:{zelidauth:t}})},getBlock(t,e){return(0,s.Z)().get(`/daemon/getblock/${t}/${e}`)},tailDaemonDebug(t){return(0,s.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:t}})},justAPI(){return(0,s.Z)()},cancelToken(){return s.S}}},51136:(t,e,a)=>{"use strict";a.d(e,{Z:()=>i});var s=a(80914);const i={listFluxNodes(){return(0,s.Z)().get("/daemon/listzelnodes")},fluxnodeCount(){return(0,s.Z)().get("/daemon/getzelnodecount")},blockReward(){return(0,s.Z)().get("/daemon/getblocksubsidy")}}},39055:(t,e,a)=>{"use strict";a.d(e,{Z:()=>i});var s=a(80914);const i={softUpdateFlux(t){return(0,s.Z)().get("/flux/softupdateflux",{headers:{zelidauth:t}})},softUpdateInstallFlux(t){return(0,s.Z)().get("/flux/softupdatefluxinstall",{headers:{zelidauth:t}})},updateFlux(t){return(0,s.Z)().get("/flux/updateflux",{headers:{zelidauth:t}})},hardUpdateFlux(t){return(0,s.Z)().get("/flux/hardupdateflux",{headers:{zelidauth:t}})},rebuildHome(t){return(0,s.Z)().get("/flux/rebuildhome",{headers:{zelidauth:t}})},updateDaemon(t){return(0,s.Z)().get("/flux/updatedaemon",{headers:{zelidauth:t}})},reindexDaemon(t){return(0,s.Z)().get("/flux/reindexdaemon",{headers:{zelidauth:t}})},updateBenchmark(t){return(0,s.Z)().get("/flux/updatebenchmark",{headers:{zelidauth:t}})},getFluxVersion(){return(0,s.Z)().get("/flux/version")},broadcastMessage(t,e){const a=e,i={headers:{zelidauth:t}};return(0,s.Z)().post("/flux/broadcastmessage",JSON.stringify(a),i)},connectedPeers(){return(0,s.Z)().get(`/flux/connectedpeers?timestamp=${Date.now()}`)},connectedPeersInfo(){return(0,s.Z)().get(`/flux/connectedpeersinfo?timestamp=${Date.now()}`)},incomingConnections(){return(0,s.Z)().get(`/flux/incomingconnections?timestamp=${Date.now()}`)},incomingConnectionsInfo(){return(0,s.Z)().get(`/flux/incomingconnectionsinfo?timestamp=${Date.now()}`)},addPeer(t,e){return(0,s.Z)().get(`/flux/addpeer/${e}`,{headers:{zelidauth:t}})},removePeer(t,e){return(0,s.Z)().get(`/flux/removepeer/${e}`,{headers:{zelidauth:t}})},removeIncomingPeer(t,e){return(0,s.Z)().get(`/flux/removeincomingpeer/${e}`,{headers:{zelidauth:t}})},adjustCruxID(t,e){return(0,s.Z)().get(`/flux/adjustcruxid/${e}`,{headers:{zelidauth:t}})},adjustKadena(t,e,a){return(0,s.Z)().get(`/flux/adjustkadena/${e}/${a}`,{headers:{zelidauth:t}})},adjustRouterIP(t,e){return(0,s.Z)().get(`/flux/adjustrouterip/${e}`,{headers:{zelidauth:t}})},adjustBlockedPorts(t,e){const a={blockedPorts:e},i={headers:{zelidauth:t}};return(0,s.Z)().post("/flux/adjustblockedports",JSON.stringify(a),i)},adjustAPIPort(t,e){return(0,s.Z)().get(`/flux/adjustapiport/${e}`,{headers:{zelidauth:t}})},adjustBlockedRepositories(t,e){const a={blockedRepositories:e},i={headers:{zelidauth:t}};return(0,s.Z)().post("/flux/adjustblockedrepositories",JSON.stringify(a),i)},getCruxID(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/cruxid",t)},getKadenaAccount(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/kadena",t)},getRouterIP(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/routerip",t)},getBlockedPorts(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/blockedports",t)},getAPIPort(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/apiport",t)},getBlockedRepositories(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/blockedrepositories",t)},getMarketPlaceURL(){return(0,s.Z)().get("/flux/marketplaceurl")},getZelid(){const t={headers:{"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/zelid",t)},getStaticIpInfo(){return(0,s.Z)().get("/flux/staticip")},restartFluxOS(t){const e={headers:{zelidauth:t,"x-apicache-bypass":!0}};return(0,s.Z)().get("/flux/restart",e)},tailFluxLog(t,e){return(0,s.Z)().get(`/flux/tail${t}log`,{headers:{zelidauth:e}})},justAPI(){return(0,s.Z)()},cancelToken(){return s.S}}},85498:function(t){!function(e,a){t.exports=a()}("undefined"!=typeof self&&self,(function(){return function(t){function e(s){if(a[s])return a[s].exports;var i=a[s]={i:s,l:!1,exports:{}};return t[s].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var a={};return e.m=t,e.c=a,e.d=function(t,a,s){e.o(t,a)||Object.defineProperty(t,a,{configurable:!1,enumerable:!0,get:s})},e.n=function(t){var a=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(a,"a",a),a},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=7)}([function(t,e){t.exports=function(t,e,a,s,i,r){var o,n=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(o=t,n=t.default);var c,d="function"==typeof n?n.options:n;if(e&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0),a&&(d.functional=!0),i&&(d._scopeId=i),r?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},d._ssrRegister=c):s&&(c=s),c){var u=d.functional,p=u?d.render:d.beforeCreate;u?(d._injectStyles=c,d.render=function(t,e){return c.call(e),p(t,e)}):d.beforeCreate=p?[].concat(p,c):[c]}return{esModule:o,exports:n,options:d}}},function(t,e,a){"use strict";var s=a(2),i=a(4),r=a(14);e.a={name:"form-wizard",components:{WizardButton:s.a,WizardStep:i.a},props:{title:{type:String,default:"Awesome Wizard"},subtitle:{type:String,default:"Split a complicated flow in multiple steps"},nextButtonText:{type:String,default:"Next"},backButtonText:{type:String,default:"Back"},finishButtonText:{type:String,default:"Finish"},hideButtons:{type:Boolean,default:!1},validateOnBack:Boolean,color:{type:String,default:"#e74c3c"},errorColor:{type:String,default:"#8b0000"},shape:{type:String,default:"circle"},layout:{type:String,default:"horizontal"},stepsClasses:{type:[String,Array],default:""},stepSize:{type:String,default:"md",validator:function(t){return-1!==["xs","sm","md","lg"].indexOf(t)}},transition:{type:String,default:""},startIndex:{type:Number,default:0,validator:function(t){return t>=0}}},provide:function(){return{addTab:this.addTab,removeTab:this.removeTab}},data:function(){return{activeTabIndex:0,currentPercentage:0,maxStep:0,loading:!1,tabs:[]}},computed:{slotProps:function(){return{nextTab:this.nextTab,prevTab:this.prevTab,activeTabIndex:this.activeTabIndex,isLastStep:this.isLastStep,fillButtonStyle:this.fillButtonStyle}},tabCount:function(){return this.tabs.length},isLastStep:function(){return this.activeTabIndex===this.tabCount-1},isVertical:function(){return"vertical"===this.layout},displayPrevButton:function(){return 0!==this.activeTabIndex},stepPercentage:function(){return 1/(2*this.tabCount)*100},progressBarStyle:function(){return{backgroundColor:this.color,width:this.progress+"%",color:this.color}},fillButtonStyle:function(){return{backgroundColor:this.color,borderColor:this.color,color:"white"}},progress:function(){return this.activeTabIndex>0?this.stepPercentage*(2*this.activeTabIndex+1):this.stepPercentage}},methods:{emitTabChange:function(t,e){this.$emit("on-change",t,e),this.$emit("update:startIndex",e)},addTab:function(t){var e=this.$slots.default.indexOf(t.$vnode);t.tabId=""+t.title.replace(/ /g,"")+e,this.tabs.splice(e,0,t),e-1&&(a===this.activeTabIndex&&(this.maxStep=this.activeTabIndex-1,this.changeTab(this.activeTabIndex,this.activeTabIndex-1)),athis.activeTabIndex;if(t<=this.maxStep){var s=function s(){a&&t-e.activeTabIndex>1?(e.changeTab(e.activeTabIndex,e.activeTabIndex+1),e.beforeTabChange(e.activeTabIndex,s)):(e.changeTab(e.activeTabIndex,t),e.afterTabChange(e.activeTabIndex))};a?this.beforeTabChange(this.activeTabIndex,s):(this.setValidationError(null),s())}return t<=this.maxStep},nextTab:function(){var t=this,e=function(){t.activeTabIndex0&&(t.setValidationError(null),t.changeTab(t.activeTabIndex,t.activeTabIndex-1))};this.validateOnBack?this.beforeTabChange(this.activeTabIndex,e):e()},focusNextTab:function(){var t=Object(r.b)(this.tabs);if(-1!==t&&t0){var e=this.tabs[t-1].tabId;Object(r.a)(e)}},setLoading:function(t){this.loading=t,this.$emit("on-loading",t)},setValidationError:function(t){this.tabs[this.activeTabIndex].validationError=t,this.$emit("on-error",t)},validateBeforeChange:function(t,e){var a=this;if(this.setValidationError(null),Object(r.c)(t))this.setLoading(!0),t.then((function(t){a.setLoading(!1);var s=!0===t;a.executeBeforeChange(s,e)})).catch((function(t){a.setLoading(!1),a.setValidationError(t)}));else{var s=!0===t;this.executeBeforeChange(s,e)}},executeBeforeChange:function(t,e){this.$emit("on-validate",t,this.activeTabIndex),t?e():this.tabs[this.activeTabIndex].validationError="error"},beforeTabChange:function(t,e){if(!this.loading){var a=this.tabs[t];if(a&&void 0!==a.beforeChange){var s=a.beforeChange();this.validateBeforeChange(s,e)}else e()}},afterTabChange:function(t){if(!this.loading){var e=this.tabs[t];e&&void 0!==e.afterChange&&e.afterChange()}},changeTab:function(t,e){var a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=this.tabs[t],i=this.tabs[e];return s&&(s.active=!1),i&&(i.active=!0),a&&this.activeTabIndex!==e&&this.emitTabChange(t,e),this.activeTabIndex=e,this.activateTabAndCheckStep(this.activeTabIndex),!0},tryChangeRoute:function(t){this.$router&&t.route&&this.$router.push(t.route)},checkRouteChange:function(t){var e=-1,a=this.tabs.find((function(a,s){var i=a.route===t;return i&&(e=s),i}));if(a&&!a.active){var s=e>this.activeTabIndex;this.navigateToTab(e,s)}},deactivateTabs:function(){this.tabs.forEach((function(t){t.active=!1}))},activateTab:function(t){this.deactivateTabs();var e=this.tabs[t];e&&(e.active=!0,e.checked=!0,this.tryChangeRoute(e))},activateTabAndCheckStep:function(t){this.activateTab(t),t>this.maxStep&&(this.maxStep=t),this.activeTabIndex=t},initializeTabs:function(){this.tabs.length>0&&0===this.startIndex&&this.activateTab(this.activeTabIndex),this.startIndex0&&void 0!==arguments[0]?arguments[0]:[],e=s();return t.findIndex((function(t){return t.tabId===e}))}function r(t){document.getElementById(t).focus()}function o(t){return t.then&&"function"==typeof t.then}e.b=i,e.a=r,e.c=o},function(t,e,a){"use strict";var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"vue-form-wizard",class:[t.stepSize,{vertical:t.isVertical}],on:{keyup:[function(e){return"button"in e||!t._k(e.keyCode,"right",39,e.key)?"button"in e&&2!==e.button?null:void t.focusNextTab(e):null},function(e){return"button"in e||!t._k(e.keyCode,"left",37,e.key)?"button"in e&&0!==e.button?null:void t.focusPrevTab(e):null}]}},[a("div",{staticClass:"wizard-header"},[t._t("title",[a("h4",{staticClass:"wizard-title"},[t._v(t._s(t.title))]),t._v(" "),a("p",{staticClass:"category"},[t._v(t._s(t.subtitle))])])],2),t._v(" "),a("div",{staticClass:"wizard-navigation"},[t.isVertical?t._e():a("div",{staticClass:"wizard-progress-with-circle"},[a("div",{staticClass:"wizard-progress-bar",style:t.progressBarStyle})]),t._v(" "),a("ul",{staticClass:"wizard-nav wizard-nav-pills",class:t.stepsClasses,attrs:{role:"tablist"}},[t._l(t.tabs,(function(e,s){return t._t("step",[a("wizard-step",{attrs:{tab:e,"step-size":t.stepSize,transition:t.transition,index:s},nativeOn:{click:function(e){t.navigateToTab(s)},keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.navigateToTab(s)}}})],{tab:e,index:s,navigateToTab:t.navigateToTab,stepSize:t.stepSize,transition:t.transition})}))],2),t._v(" "),a("div",{staticClass:"wizard-tab-content"},[t._t("default",null,null,t.slotProps)],2)]),t._v(" "),t.hideButtons?t._e():a("div",{staticClass:"wizard-card-footer clearfix"},[t._t("footer",[a("div",{staticClass:"wizard-footer-left"},[t.displayPrevButton?a("span",{attrs:{role:"button",tabindex:"0"},on:{click:t.prevTab,keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.prevTab(e)}}},[t._t("prev",[a("wizard-button",{style:t.fillButtonStyle,attrs:{disabled:t.loading}},[t._v("\n "+t._s(t.backButtonText)+"\n ")])],null,t.slotProps)],2):t._e(),t._v(" "),t._t("custom-buttons-left",null,null,t.slotProps)],2),t._v(" "),a("div",{staticClass:"wizard-footer-right"},[t._t("custom-buttons-right",null,null,t.slotProps),t._v(" "),t.isLastStep?a("span",{attrs:{role:"button",tabindex:"0"},on:{click:t.nextTab,keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.nextTab(e)}}},[t._t("finish",[a("wizard-button",{style:t.fillButtonStyle},[t._v("\n "+t._s(t.finishButtonText)+"\n ")])],null,t.slotProps)],2):a("span",{attrs:{role:"button",tabindex:"0"},on:{click:t.nextTab,keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.nextTab(e)}}},[t._t("next",[a("wizard-button",{style:t.fillButtonStyle,attrs:{disabled:t.loading}},[t._v("\n "+t._s(t.nextButtonText)+"\n ")])],null,t.slotProps)],2)],2)],null,t.slotProps)],2)])},i=[],r={render:s,staticRenderFns:i};e.a=r},function(t,e,a){"use strict";var s=a(6),i=a(17),r=a(0),o=r(s.a,i.a,!1,null,null,null);e.a=o.exports},function(t,e,a){"use strict";var s=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{directives:[{name:"show",rawName:"v-show",value:t.active,expression:"active"}],staticClass:"wizard-tab-container",attrs:{role:"tabpanel",id:t.tabId,"aria-hidden":!t.active,"aria-labelledby":"step-"+t.tabId}},[t._t("default",null,{active:t.active})],2)},i=[],r={render:s,staticRenderFns:i};e.a=r}])}))}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/3192.js b/HomeUI/dist/js/3192.js deleted file mode 100644 index f6dc3f8b4..000000000 --- a/HomeUI/dist/js/3192.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[3192],{34547:(e,t,a)=>{a.d(t,{Z:()=>u});var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"toastification"},[t("div",{staticClass:"d-flex align-items-start"},[t("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:e.variant,size:"1.8rem"}},[t("feather-icon",{attrs:{icon:e.icon,size:"15"}})],1),t("div",{staticClass:"d-flex flex-grow-1"},[t("div",[e.title?t("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${e.variant}`,domProps:{textContent:e._s(e.title)}}):e._e(),e.text?t("small",{staticClass:"d-inline-block text-body",domProps:{textContent:e._s(e.text)}}):e._e()]),t("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(t){return e.$emit("close-toast")}}},[e.hideClose?e._e():t("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},r=[],o=a(47389);const i={components:{BAvatar:o.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},l=i;var s=a(1001),c=(0,s.Z)(l,n,r,!1,null,"22d964ca",null);const u=c.exports},43192:(e,t,a)=>{a.r(t),a.d(t,{default:()=>pa});var n={};a.r(n),a.d(n,{_:()=>qe,t:()=>We});var r=function(){var e=this,t=e._self._c;return t("layout-vertical",{scopedSlots:e._u([{key:"navbar",fn:function({toggleVerticalMenuActive:e}){return[t("navbar",{attrs:{"toggle-vertical-menu-active":e}})]}}])},[t("router-view")],1)},o=[],i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"vertical-layout h-100",class:[e.layoutClasses],attrs:{"data-col":e.isNavMenuHidden?"1-column":null}},[t("b-navbar",{staticClass:"header-navbar navbar navbar-shadow align-items-center",class:[e.navbarTypeClass],attrs:{toggleable:!1,variant:e.navbarBackgroundColor}},[e._t("navbar",(function(){return[t("app-navbar-vertical-layout",{attrs:{"toggle-vertical-menu-active":e.toggleVerticalMenuActive}})]}),{toggleVerticalMenuActive:e.toggleVerticalMenuActive,navbarBackgroundColor:e.navbarBackgroundColor,navbarTypeClass:[...e.navbarTypeClass,"header-navbar navbar navbar-shadow align-items-center"]})],2),e.isNavMenuHidden?e._e():t("vertical-nav-menu",{attrs:{"is-vertical-menu-active":e.isVerticalMenuActive,"toggle-vertical-menu-active":e.toggleVerticalMenuActive},scopedSlots:e._u([{key:"header",fn:function(t){return[e._t("vertical-menu-header",null,null,t)]}}],null,!0)}),t("div",{staticClass:"sidenav-overlay",class:e.overlayClasses,on:{click:function(t){e.isVerticalMenuActive=!1}}}),t("transition",{attrs:{name:e.routerTransition,mode:"out-in"}},[t(e.layoutContentRenderer,{key:"layout-content-renderer-left"===e.layoutContentRenderer?e.$route.meta.navActiveLink||e.$route.name:null,tag:"component",scopedSlots:e._u([e._l(e.$scopedSlots,(function(t,a){return{key:a,fn:function(t){return[e._t(a,null,null,t)]}}}))],null,!0)})],1),t("footer",{staticClass:"footer footer-light",class:[e.footerTypeClass]},[e._t("footer",(function(){return[t("app-footer")]}))],2),e._t("customizer")],2)},l=[],s=a(20144),c=function(){var e=this,t=e._self._c;return t("p",{staticClass:"clearfix mb-0"},[t("span",{staticClass:"float-md-left d-block d-md-inline-block mt-25"},[t("b-link",{staticClass:"ml-25",attrs:{href:"https://github.com/runonflux/flux",target:"_blank",rel:"noopener noreferrer"}},[e._v("Flux, Your Gateway to a Decentralized World")])],1),t("span",{staticClass:"float-md-right d-none d-md-block"},[e._v("FluxOS "+e._s(`v${e.fluxVersion}`)+" ")])])},u=[],d=a(20629),p=a(67347),m=a(9669),v=a.n(m),g=a(34547),h=a(39055);const f={components:{BLink:p.we,ToastificationContent:g.Z},computed:{...(0,d.rn)("flux",["fluxVersion"])},mounted(){const e=this;h.Z.getFluxVersion().then((t=>{const a=t.data.data;this.$store.commit("flux/setFluxVersion",a),e.getLatestFluxVersion()})).catch((e=>{console.log(e),console.log(e.code),this.showToast("danger",e.toString())}))},methods:{getLatestFluxVersion(){const e=this;v().get("https://raw.githubusercontent.com/runonflux/flux/master/package.json").then((t=>{t.data.version!==e.fluxVersion?this.showToast("danger","Flux needs to be updated!"):this.showToast("success","Flux is up to date")})).catch((e=>{console.log(e),this.showToast("danger","Error verifying recent version")}))},showToast(e,t){this.$toast({component:g.Z,props:{title:t,icon:"BellIcon",variant:e}})}}},b=f;var x=a(1001),k=(0,x.Z)(b,c,u,!1,null,null,null);const C=k.exports;var w=a(37307),y=a(71603),M=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-content content",class:[{"show-overlay":e.$store.state.app.shallShowOverlay},e.$route.meta.contentClass]},[t("div",{staticClass:"content-overlay"}),t("div",{staticClass:"header-navbar-shadow"}),t("div",{staticClass:"content-wrapper",class:"boxed"===e.contentWidth?"container p-0":null},[e._t("breadcrumb",(function(){return[t("app-breadcrumb")]})),t("div",{staticClass:"content-body"},[t("transition",{attrs:{name:e.routerTransition,mode:"out-in"}},[e._t("default")],2)],1)],2)])},_=[],I=function(){var e=this,t=e._self._c;return e.$route.meta.breadcrumb||e.$route.meta.pageTitle?t("b-row",{staticClass:"content-header"},[t("b-col",{staticClass:"content-header-left mb-2",attrs:{cols:"12",md:"9"}},[t("b-row",{staticClass:"breadcrumbs-top"},[t("b-col",{attrs:{cols:"12"}},[t("h2",{staticClass:"content-header-title float-left pr-1 mb-0"},[e._v(" "+e._s(e.$route.meta.pageTitle)+" ")]),t("div",{staticClass:"breadcrumb-wrapper"},[t("b-breadcrumb",[t("b-breadcrumb-item",{attrs:{to:"/"}},[t("feather-icon",{staticClass:"align-text-top",attrs:{icon:"HomeIcon",size:"16"}})],1),e._l(e.$route.meta.breadcrumb,(function(a){return t("b-breadcrumb-item",{key:a.text,attrs:{active:a.active,to:a.to}},[e._v(" "+e._s(a.text)+" ")])}))],2)],1)])],1)],1)],1):e._e()},Z=[],B=a(74825),A=a(90854),T=a(26253),L=a(50725),S=a(20266);const V={directives:{Ripple:S.Z},components:{BBreadcrumb:B.P,BBreadcrumbItem:A.g,BRow:T.T,BCol:L.l}},O=V;var P=(0,x.Z)(O,I,Z,!1,null,null,null);const N=P.exports,$={components:{AppBreadcrumb:N},setup(){const{routerTransition:e,contentWidth:t}=(0,w.Z)();return{routerTransition:e,contentWidth:t}}},z=$;var D=(0,x.Z)(z,M,_,!1,null,null,null);const R=D.exports;var F=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-content content",class:[{"show-overlay":e.$store.state.app.shallShowOverlay},e.$route.meta.contentClass]},[t("div",{staticClass:"content-overlay"}),t("div",{staticClass:"header-navbar-shadow"}),t("transition",{attrs:{name:e.routerTransition,mode:"out-in"}},[t("div",{staticClass:"content-area-wrapper",class:"boxed"===e.contentWidth?"container p-0":null},[e._t("breadcrumb",(function(){return[t("app-breadcrumb")]})),t("portal-target",{attrs:{name:"content-renderer-sidebar-left",slim:""}}),t("div",{staticClass:"content-right"},[t("div",{staticClass:"content-wrapper"},[t("div",{staticClass:"content-body"},[e._t("default")],2)])])],2)])],1)},H=[];const j={components:{AppBreadcrumb:N},setup(){const{routerTransition:e,contentWidth:t}=(0,w.Z)();return{routerTransition:e,contentWidth:t}}},G=j;var E=(0,x.Z)(G,F,H,!1,null,null,null);const U=E.exports;var W=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-content content",class:[{"show-overlay":e.$store.state.app.shallShowOverlay},e.$route.meta.contentClass]},[t("div",{staticClass:"content-overlay"}),t("div",{staticClass:"header-navbar-shadow"}),t("transition",{attrs:{name:e.routerTransition,mode:"out-in"}},[t("div",{staticClass:"content-wrapper clearfix",class:"boxed"===e.contentWidth?"container p-0":null},[e._t("breadcrumb",(function(){return[t("app-breadcrumb")]})),t("div",{staticClass:"content-detached content-right"},[t("div",{staticClass:"content-wrapper"},[t("div",{staticClass:"content-body"},[e._t("default")],2)])]),t("portal-target",{attrs:{name:"content-renderer-sidebar-detached-left",slim:""}})],2)])],1)},q=[];const X={components:{AppBreadcrumb:N},setup(){const{routerTransition:e,contentWidth:t}=(0,w.Z)();return{routerTransition:e,contentWidth:t}}},K=X;var J=(0,x.Z)(K,W,q,!1,null,null,null);const Y=J.exports;var Q=function(){var e=this,t=e._self._c;return t("div",{staticClass:"main-menu menu-fixed menu-accordion menu-shadow",class:[{expanded:!e.isVerticalMenuCollapsed||e.isVerticalMenuCollapsed&&e.isMouseHovered},"semi-dark"===e.skin?"menu-dark":"menu-light"],on:{mouseenter:function(t){return e.updateMouseHovered(!0)},mouseleave:function(t){return e.updateMouseHovered(!1)},focus:function(t){return e.updateMouseHovered(!0)},blur:function(t){return e.updateMouseHovered(!1)}}},[t("div",{staticClass:"navbar-header expanded"},[e._t("header",(function(){return[t("ul",{staticClass:"nav navbar-nav flex-row"},[t("li",{staticClass:"nav-item mr-auto"},[t("b-link",{staticClass:"navbar-brand",attrs:{to:"/"}},[t("span",{staticClass:"brand-logo"},[t("b-img",{class:e.isVerticalMenuCollapsed?"collapsed-logo":"",attrs:{src:"dark"===e.skin?e.appLogoImageDark:e.appLogoImage,alt:"logo"}})],1)])],1),t("li",{staticClass:"nav-item nav-toggle"},[t("b-link",{staticClass:"nav-link modern-nav-toggle"},[t("feather-icon",{staticClass:"d-block d-xl-none",attrs:{icon:"XIcon",size:"20"},on:{click:e.toggleVerticalMenuActive}}),t("feather-icon",{staticClass:"d-none d-xl-block collapse-toggle-icon",attrs:{icon:e.collapseTogglerIconFeather,size:"20"},on:{click:e.toggleCollapsed}})],1)],1)])]}),{toggleVerticalMenuActive:e.toggleVerticalMenuActive,toggleCollapsed:e.toggleCollapsed,collapseTogglerIcon:e.collapseTogglerIcon})],2),t("div",{staticClass:"shadow-bottom",class:{"d-block":e.shallShadowBottom}}),t("vue-perfect-scrollbar",{staticClass:"main-menu-content scroll-area",attrs:{settings:e.perfectScrollbarSettings,tagname:"ul"},on:{"ps-scroll-y":t=>{e.shallShadowBottom=t.srcElement.scrollTop>0}}},[t("vertical-nav-menu-items",{key:e.isNavMenuCollapsed,staticClass:"navigation navigation-main",attrs:{items:e.isNavMenuCollapsed?e.navMenuItemsCollapsed:e.navMenuItems}})],1)],1)},ee=[],te=a(91040),ae=a.n(te),ne=a(98156),re=a(68934);const oe=[{header:"Dashboard"},{title:"Overview",icon:"chart-pie",route:"dashboard-overview"},{title:"Resources",icon:"server",route:"dashboard-resources"},{title:"Map",icon:"map-marker-alt",route:"dashboard-map"},{title:"Rewards",icon:"coins",route:"dashboard-rewards"},{title:"List",icon:"list-ul",route:"dashboard-list"}],ie=[{title:"Control",icon:"tools",children:[{title:"Get Info",icon:"info",route:"daemon-control-getinfo"},{title:"Help",icon:"question",route:"daemon-control-help"},{title:"Rescan Blockchain",icon:"search-plus",route:"daemon-control-rescanblockchain",privilege:["admin"]},{title:"Reindex Blockchain",icon:"address-book",route:"daemon-control-reindexblockchain",privilege:["admin"]},{title:"Start",icon:"play",route:"daemon-control-start",privilege:["admin","fluxteam"]},{title:"Stop",icon:"power-off",route:"daemon-control-stop",privilege:["admin"]},{title:"Restart",icon:"redo",route:"daemon-control-restart",privilege:["admin","fluxteam"]}]}],le=[{title:"FluxNode",icon:"dice-d20",children:[{title:"Get FluxNode Status",icon:"info",route:"daemon-fluxnode-getstatus"},{title:"List FluxNodes",icon:"list-ul",route:"daemon-fluxnode-listfluxnodes"},{title:"View FluxNode List",icon:"regular/list-alt",route:"daemon-fluxnode-viewfluxnodelist"},{title:"Get FluxNode Count",icon:"layer-group",route:"daemon-fluxnode-getfluxnodecount"},{title:"Get Start List",icon:"play",route:"daemon-fluxnode-getstartlist"},{title:"Get DOS List",icon:"hammer",route:"daemon-fluxnode-getdoslist"},{title:"Current Winner",icon:"trophy",route:"daemon-fluxnode-currentwinner"}]}],se=[{title:"Benchmarks",icon:"microchip",id:"daemon-benchmarks",children:[{title:"Get Benchmarks",icon:"calculator",route:"daemon-benchmarks-getbenchmarks"},{title:"Get Bench Status",icon:"tachometer-alt",route:"daemon-benchmarks-getstatus"},{title:"Start Benchmark",icon:"play",route:"daemon-benchmarks-start",privilege:["admin","fluxteam"]},{title:"Stop Benchmark",icon:"power-off",route:"daemon-benchmarks-stop",privilege:["admin","fluxteam"]}]}],ce=[{title:"Get Blockchain Info",icon:"link",route:"daemon-blockchain-getchaininfo"}],ue=[{title:"Get Mining Info",icon:"gem",route:"daemon-mining-getmininginfo"}],de=[{title:"Get Network Info",icon:"network-wired",route:"daemon-network-getnetworkinfo"}],pe=[{title:"Get Raw Transaction",icon:"code",route:"daemon-transaction-getrawtransaction"}],me=[{title:"Validate Address",icon:"check-double",route:"daemon-util-validateaddress"}],ve=[{title:"Get Wallet Info",icon:"wallet",route:"daemon-wallet-getwalletinfo",privilege:["user","admin","fluxteam"]}],ge=[{header:"Daemon"},...ie,...le,...se,...ce,...ue,...de,...pe,...me,...ve,{title:"Debug",icon:"bug",route:"daemon-debug",id:"daemon-debug",privilege:["admin","fluxteam"]}],he=[{title:"Control",icon:"tools",id:"benchmark-control",children:[{title:"Help",icon:"question",route:"benchmark-control-help"},{title:"Start",icon:"play",route:"benchmark-control-start",privilege:["admin","fluxteam"]},{title:"Stop",icon:"power-off",route:"benchmark-control-stop",privilege:["admin"]},{title:"Restart",icon:"redo",route:"benchmark-control-restart",privilege:["admin","fluxteam"]}]}],fe=[{title:"FluxNode",icon:"dice-d20",id:"benchmark-fluxnode",children:[{title:"Get Benchmarks",icon:"calculator",route:"benchmark-fluxnode-getbenchmarks"},{title:"Get Info",icon:"info",route:"benchmark-fluxnode-getinfo"}]}],be=[{title:"Benchmarks",icon:"microchip",children:[{title:"Get Status",icon:"tachometer-alt",route:"benchmark-benchmarks-getstatus"},{title:"Restart Benchmarks",icon:"redo",route:"benchmark-benchmarks-restartbenchmarks",privilege:["admin","fluxteam"]},{title:"Sign Transaction",icon:"bolt",route:"benchmark-benchmarks-signtransaction",privilege:["admin"]}]}],xe=[{header:"Benchmark"},...he,...fe,...be,{title:"Debug",icon:"bug",route:"benchmark-debug",id:"benchmark-debug",privilege:["admin","fluxteam"]}],ke=[{header:"Flux"},{title:"Node Status",icon:"heartbeat",route:"flux-nodestatus"},{title:"Flux Network",icon:"network-wired",route:"flux-fluxnetwork"},{title:"Debug",icon:"bug",route:"flux-debug",privilege:["admin","fluxteam"]}],Ce=[{header:"Apps"},{title:"Local Apps",icon:"upload",route:"apps-localapps"},{title:"Global Apps",icon:"globe",route:"apps-globalapps"},{title:"Register Flux App",icon:"regular/plus-square",route:"apps-registerapp"},{title:"My FluxShare",icon:"regular/hdd",route:"apps-fluxsharestorage",privilege:["admin"]}],we=[{header:"Flux Admin",privilege:["user","admin","fluxteam"]},{title:"Logged Sessions",icon:"regular/id-badge",route:"fluxadmin-loggedsessions",privilege:["admin","fluxteam"]},{title:"Manage Flux",icon:"dice-d20",route:"fluxadmin-manageflux",privilege:["admin","fluxteam"]},{title:"Manage Daemon",icon:"cog",route:"fluxadmin-managedaemon",privilege:["admin","fluxteam"]},{title:"Manage Benchmark",icon:"microchip",route:"fluxadmin-managebenchmark",privilege:["admin","fluxteam"]},{title:"Manage Users",icon:"fingerprint",route:"fluxadmin-manageusers",privilege:["admin","fluxteam"]}],{xdaoOpenProposals:ye}=(0,w.Z)(),Me=[{header:"XDAO"},{title:"XDAO ",icon:"clipboard-list",tag:ye,route:"xdao-app"}],_e=[{header:"Marketplace"},{title:"Marketplace",icon:"shopping-basket",route:"apps-marketplace"}],Ie=[{title:"Home",route:"home",icon:"home"},{title:"Explorer",route:"explorer",icon:"search"},...oe,...ge,...xe,...ke,...Ce,..._e,...we,...Me],Ze=[{title:"Dashboard",icon:"desktop",spacing:!0,children:[{title:"Overview",icon:"chart-pie",route:"dashboard-overview"},{title:"Resources",icon:"server",route:"dashboard-resources"},{title:"Map",icon:"map-marker-alt",route:"dashboard-map"},{title:"Rewards",icon:"coins",route:"dashboard-rewards"},{title:"List",icon:"list-ul",route:"dashboard-list"}]}],Be=[{title:"Daemon",icon:"bolt",spacing:!0,children:[...ie,...le,...se,...ce,...ue,...de,...pe,...me,...ve,{title:"Debug",icon:"bug",route:"daemon-debug",id:"daemon-debug",privilege:["admin","fluxteam"]}]}],Ae=[{title:"Benchmark",icon:"wrench",spacing:!0,children:[...he,...fe,...be,{title:"Debug",icon:"bug",route:"benchmark-debug",id:"benchmark-debug",privilege:["admin","fluxteam"]}]}],Te=a(25448),Le=[{title:"Flux",image:Te,spacing:!0,children:[{title:"Node Status",icon:"heartbeat",route:"flux-nodestatus"},{title:"Flux Network",icon:"network-wired",route:"flux-fluxnetwork"},{title:"Debug",icon:"bug",route:"flux-debug",privilege:["admin","fluxteam"]}]}],Se=[{title:"Apps",icon:"laptop-code",spacing:!0,children:[{title:"Local Apps",icon:"upload",route:"apps-localapps"},{title:"Global Apps",icon:"globe",route:"apps-globalapps"},{title:"Register Flux App",icon:"regular/plus-square",route:"apps-registerapp"},{title:"My FluxShare",icon:"regular/hdd",route:"apps-fluxsharestorage",privilege:["admin"]}]}],Ve=[{title:"Marketplace",icon:"shopping-basket",spacing:!0,children:[{title:"Marketplace",icon:"shopping-basket",route:"apps-marketplace"}]}],Oe=[{title:"Flux Admin",icon:"clipboard-list",spacing:!0,privilege:["user","admin","fluxteam"],children:[{title:"Logged Sessions",icon:"regular/id-badge",route:"fluxadmin-loggedsessions",privilege:["admin","fluxteam"]},{title:"Manage Flux",icon:"dice-d20",route:"fluxadmin-manageflux",privilege:["admin","fluxteam"]},{title:"Manage Daemon",icon:"cog",route:"fluxadmin-managedaemon",privilege:["admin","fluxteam"]},{title:"Manage Benchmark",icon:"microchip",route:"fluxadmin-managebenchmark",privilege:["admin","fluxteam"]},{title:"Manage Users",icon:"fingerprint",route:"fluxadmin-manageusers",privilege:["admin","fluxteam"]}]}],{xdaoOpenProposals:Pe}=(0,w.Z)(),Ne=[{title:"XDAO",icon:"id-card",tag:Pe,spacing:!0,children:[{title:"XDAO ",icon:"clipboard-list",route:"xdao-app"}]}],$e=[{title:"Home",route:"home",icon:"home"},{title:"Explorer",route:"explorer",icon:"search"},...Ze,...Be,...Ae,...Le,...Se,...Ve,...Oe,...Ne];var ze=function(){var e=this,t=e._self._c;return t("ul",e._l(e.items,(function(a){return t(e.resolveNavItemComponent(a),{key:a.id||a.header||a.title,tag:"component",attrs:{item:a}})})),1)},De=[],Re=a(23646),Fe=a(24019);const He=e=>e.header?"vertical-nav-menu-header":e.children?"vertical-nav-menu-group":"vertical-nav-menu-link",je=e=>{if((0,Re.Kn)(e.route)){const{route:t}=Fe.Z.resolve(e.route);return t.name}return e.route},Ge=e=>{const t=Fe.Z.currentRoute.matched,a=je(e);return!!a&&t.some((e=>e.name===a||e.meta.navActiveLink===a))},Ee=e=>{const t=Fe.Z.currentRoute.matched;return e.some((e=>e.children?Ee(e.children):Ge(e,t)))},Ue=e=>(0,s.computed)((()=>{const t={};return e.route?t.to="string"===typeof e.route?{name:e.route}:e.route:(t.href=e.href,t.target="_blank",t.rel="nofollow"),t.target||(t.target=e.target||null),t})),We=e=>{const t=(0,s.getCurrentInstance)().proxy;return t.$t?t.$t(e):e},qe=null,Xe=()=>({...n}),{t:Ke}=Xe(),Je={props:{item:{type:Object,required:!0}},computed:{...(0,d.rn)("flux",["privilege"])},methods:{hasPrivilegeLevel(e){return!e.privilege||e.privilege.some((e=>e===this.privilege))}},render(e){if(this.hasPrivilegeLevel(this.item)){const t=e("span",{},Ke(this.item.header));return e("li",{class:"navigation-header text-truncate"},[t])}return e()}};var Ye=function(){var e=this,t=e._self._c;return e.hasPrivilegeLevel(e.item)?t("li",{staticClass:"nav-item",class:{active:e.isActive,disabled:e.item.disabled}},[t("b-link",e._b({staticClass:"d-flex align-items-center"},"b-link",e.linkProps,!1),[t("v-icon",{attrs:{name:e.item.icon||"regular/circle"}}),t("span",{staticClass:"menu-title text-truncate"},[e._v(e._s(e.t(e.item.title)))]),e.item.tag&&e.item.tag.value>0?t("b-badge",{staticClass:"mr-1 ml-auto",attrs:{pill:"",variant:e.item.tagVariant||"primary"}},[e._v(" "+e._s(e.item.tag.value)+" ")]):e._e()],1)],1):e._e()},Qe=[],et=a(26034);function tt(e){const t=(0,s.ref)(!1),a=Ue(e),n=()=>{t.value=Ge(e)};return{isActive:t,linkProps:a,updateIsActive:n}}const at={watch:{$route:{immediate:!0,handler(){this.updateIsActive()}}}},nt={components:{BLink:p.we,BBadge:et.k},mixins:[at],props:{item:{type:Object,required:!0}},setup(e){const{isActive:t,linkProps:a,updateIsActive:n}=tt(e.item),{t:r}=Xe();return{isActive:t,linkProps:a,updateIsActive:n,t:r}},computed:{...(0,d.rn)("flux",["privilege"])},methods:{hasPrivilegeLevel(e){return!e.privilege||e.privilege.some((e=>e===this.privilege))}}},rt=nt;var ot=(0,x.Z)(rt,Ye,Qe,!1,null,null,null);const it=ot.exports;var lt=function(){var e=this,t=e._self._c;return e.hasPrivilegeLevel(e.item)?t("li",{staticClass:"nav-item has-sub",class:{open:e.isOpen,disabled:e.item.disabled,"sidebar-group-active":e.isActive,"sidebar-group-spacing":e.item.spacing}},[t("b-link",{staticClass:"d-flex align-items-center",on:{click:()=>e.updateGroupOpen(!e.isOpen)}},[e.item.icon?t("v-icon",{attrs:{name:e.item.icon||"regular/circle"}}):e._e(),e.item.image?t("b-img",{staticClass:"sidebar-menu-image",attrs:{src:e.item.image}}):e._e(),t("span",{staticClass:"menu-title text-truncate"},[e._v(e._s(e.t(e.item.title)))]),e.item.tag&&e.item.tag.value>0?t("b-badge",{staticClass:"mr-1 ml-auto",attrs:{pill:"",variant:e.item.tagVariant||"primary"}},[e._v(" "+e._s(e.item.tag.value)+" ")]):e._e()],1),t("b-collapse",{staticClass:"menu-content",attrs:{tag:"ul"},model:{value:e.isOpen,callback:function(t){e.isOpen=t},expression:"isOpen"}},e._l(e.item.children,(function(a){return t(e.resolveNavItemComponent(a),{key:a.header||a.title,ref:"groupChild",refInFor:!0,tag:"component",attrs:{item:a}})})),1)],1):e._e()},st=[],ct=a(11688),ut=(a(70560),a(73507));function dt(e){const t=(0,s.computed)((()=>ut.Z.state.verticalMenu.isVerticalMenuCollapsed));(0,s.watch)(t,(e=>{a.value||(e?r.value=!1:!e&&i.value&&(r.value=!0))}));const a=(0,s.inject)("isMouseHovered");(0,s.watch)(a,(e=>{t.value&&(r.value=e&&i.value)}));const n=(0,s.inject)("openGroups");(0,s.watch)(n,(t=>{const a=t[t.length-1];a===e.title||i.value||c(a)||(r.value=!1)}));const r=(0,s.ref)(!1);(0,s.watch)(r,(t=>{t&&n.value.push(e.title)}));const o=e=>{r.value=e},i=(0,s.ref)(!1);(0,s.watch)(i,(e=>{e&&t.value||(r.value=e)}));const l=()=>{i.value=Ee(e.children)},c=t=>e.children.some((e=>e.title===t));return{isOpen:r,isActive:i,updateGroupOpen:o,openGroups:n,isMouseHovered:a,updateIsActive:l}}const pt={watch:{$route:{immediate:!0,handler(){this.updateIsActive()}}}},mt={name:"VerticalNavMenuGroup",components:{VerticalNavMenuHeader:Je,VerticalNavMenuLink:it,BLink:p.we,BBadge:et.k,BCollapse:ct.k,BImg:ne.s},mixins:[pt],props:{item:{type:Object,required:!0}},setup(e){const{isOpen:t,isActive:a,updateGroupOpen:n,updateIsActive:r}=dt(e.item),{t:o}=Xe();return{resolveNavItemComponent:He,isOpen:t,isActive:a,updateGroupOpen:n,updateIsActive:r,t:o}},computed:{...(0,d.rn)("flux",["privilege"])},methods:{hasPrivilegeLevel(e){return!e.privilege||e.privilege.some((e=>e===this.privilege))}}},vt=mt;var gt=(0,x.Z)(vt,lt,st,!1,null,null,null);const ht=gt.exports,ft={components:{VerticalNavMenuHeader:Je,VerticalNavMenuLink:it,VerticalNavMenuGroup:ht},props:{items:{type:Array,required:!0}},setup(){return(0,s.provide)("openGroups",(0,s.ref)([])),{resolveNavItemComponent:He}}},bt=ft;var xt=(0,x.Z)(bt,ze,De,!1,null,null,null);const kt=xt.exports;function Ct(e){const t=(0,s.computed)({get:()=>ut.Z.state.verticalMenu.isVerticalMenuCollapsed,set:e=>{ut.Z.commit("verticalMenu/UPDATE_VERTICAL_MENU_COLLAPSED",e)}}),a=(0,s.computed)((()=>e.isVerticalMenuActive?t.value?"unpinned":"pinned":"close")),n=(0,s.ref)(!1),r=e=>{n.value=e},o=()=>{t.value=!t.value};return{isMouseHovered:n,isVerticalMenuCollapsed:t,collapseTogglerIcon:a,toggleCollapsed:o,updateMouseHovered:r}}const wt=a(80129),yt=a(9669),Mt={components:{VuePerfectScrollbar:ae(),VerticalNavMenuItems:kt,BLink:p.we,BImg:ne.s},props:{isVerticalMenuActive:{type:Boolean,required:!0},toggleVerticalMenuActive:{type:Function,required:!0}},setup(e){const{isMouseHovered:t,isVerticalMenuCollapsed:a,collapseTogglerIcon:n,toggleCollapsed:r,updateMouseHovered:o}=Ct(e),i=(0,s.ref)(null);(0,s.onBeforeMount)((()=>{const e=localStorage.getItem("zelidauth"),t=wt.parse(e);i.value=t.zelid}));const{isNavMenuCollapsed:l,xdaoOpenProposals:c,skin:u}=(0,w.Z)(),d=async e=>{const t=await yt.get(`https://stats.runonflux.io/proposals/voteInformation?hash=${e.hash}&zelid=${i.value}`);return t.data},p=async()=>{let e=0;yt.get("https://stats.runonflux.io/proposals/listProposals").then((t=>{if("success"===t.data.status){const a=t.data.data.filter((e=>"Open"===e.status));a.forEach((async t=>{const a=await d(t);"success"!==a.status||null!=a.data&&0!==a.data.length||(e+=1,c.value=e)}))}}))};setInterval((()=>{p()}),6e5),p();const m=(0,s.ref)(!1);(0,s.provide)("isMouseHovered",t);const v={maxScrollbarLength:60,wheelPropagation:!1},g=(0,s.computed)((()=>"unpinned"===n.value?"CircleIcon":"DiscIcon")),{appName:h,appLogoImageDark:f,appLogoImage:b}=re.$themeConfig.app;return{navMenuItems:Ie,navMenuItemsCollapsed:$e,perfectScrollbarSettings:v,isVerticalMenuCollapsed:a,collapseTogglerIcon:n,toggleCollapsed:r,isMouseHovered:t,updateMouseHovered:o,collapseTogglerIconFeather:g,shallShadowBottom:m,skin:u,isNavMenuCollapsed:l,appName:h,appLogoImage:b,appLogoImageDark:f}}},_t=Mt;var It=(0,x.Z)(_t,Q,ee,!1,null,null,null);const Zt=It.exports;function Bt(e,t){const a=(0,s.ref)(!0),n=()=>{a.value=!a.value},r=(0,s.ref)("xl"),o=(0,s.computed)((()=>ut.Z.state.verticalMenu.isVerticalMenuCollapsed)),i=(0,s.computed)((()=>{const n=[];return"xl"===r.value||"xxl"===r.value?(n.push("vertical-menu-modern"),n.push(o.value?"menu-collapsed":"menu-expanded")):(n.push("vertical-overlay-menu"),n.push(a.value?"menu-open":"menu-hide")),n.push(`navbar-${e.value}`),"sticky"===t.value&&n.push("footer-fixed"),"static"===t.value&&n.push("footer-static"),"hidden"===t.value&&n.push("footer-hidden"),n}));(0,s.watch)(r,(e=>{a.value="xxl"===e||"xl"===e}));const l=()=>{window.innerWidth>=1600?r.value="xxl":window.innerWidth>=1200?r.value="xl":window.innerWidth>=992?r.value="lg":window.innerWidth>=768?r.value="md":window.innerWidth>=576?r.value="sm":r.value="xs"},c=(0,s.computed)((()=>"xxl"!==r.value&&"xl"!==r.value&&a.value?"show":null)),u=(0,s.computed)((()=>"sticky"===e.value?"fixed-top":"static"===e.value?"navbar-static-top":"hidden"===e.value?"d-none":"floating-nav")),d=(0,s.computed)((()=>"static"===t.value?"footer-static":"hidden"===t.value?"d-none":""));return{isVerticalMenuActive:a,toggleVerticalMenuActive:n,isVerticalMenuCollapsed:o,layoutClasses:i,overlayClasses:c,navbarTypeClass:u,footerTypeClass:d,resizeHandler:l}}const At={watch:{$route(){this.$store.state.app.windowWidth{window.removeEventListener("resize",d)})),{isVerticalMenuActive:o,toggleVerticalMenuActive:i,isVerticalMenuCollapsed:l,overlayClasses:u,layoutClasses:c,navbarTypeClass:p,footerTypeClass:m,routerTransition:e,navbarBackgroundColor:t,isNavMenuHidden:r}},computed:{layoutContentRenderer(){const e=this.$route.meta.contentRenderer;return"sidebar-left"===e?"layout-content-renderer-left":"sidebar-left-detached"===e?"layout-content-renderer-left-detached":"layout-content-renderer-default"}}},Lt=Tt;var St=(0,x.Z)(Lt,i,l,!1,null,null,null);const Vt=St.exports;var Ot=function(){var e=this,t=e._self._c;return t("div",{staticClass:"navbar-container d-flex content align-items-center"},[t("ul",{staticClass:"nav navbar-nav d-xl-none"},[t("li",{staticClass:"nav-item"},[t("b-link",{staticClass:"nav-link",on:{click:e.toggleVerticalMenuActive}},[t("feather-icon",{attrs:{icon:"MenuIcon",size:"21"}})],1)],1)]),t("div",{staticClass:"bookmark-wrapper align-items-center flex-grow-1 d-none d-md-flex"},[t("b-dropdown",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(113, 102, 240, 0.15)",expression:"'rgba(113, 102, 240, 0.15)'",modifiers:{400:!0}}],attrs:{text:e.backendURL,variant:"outline-primary",size:"sm"}},[t("b-dropdown-item-button",{on:{click:function(t){return e.changeBackendURL(`http://${e.userconfig.externalip}:${e.config.apiPort}`)}}},[e._v(" http://"+e._s(e.userconfig.externalip)+":"+e._s(e.config.apiPort)+" ")]),t("b-dropdown-divider"),t("b-dropdown-item-button",{on:{click:function(t){return e.changeBackendURL("https://api.runonflux.io")}}},[e._v(" https://api.runonflux.io ")]),t("b-dropdown-divider"),t("b-form-input",{attrs:{id:"dropdown-form-custom",type:"text",size:"sm",placeholder:"Custom Backend"},on:{input:function(t){return e.changeBackendURL(e.customBackend)}},model:{value:e.customBackend,callback:function(t){e.customBackend=t},expression:"customBackend"}})],1)],1),t("b-navbar-nav",{staticClass:"nav align-items-center ml-auto"},[e._v(" "+e._s(e.zelid)+" "),t("dark-Toggler",{staticClass:"d-block"}),t("menu-Collapse-Toggler",{staticClass:"d-block"}),"none"!==e.privilege?t("b-button",{attrs:{variant:"outline-primary",size:"sm"},on:{click:e.logout}},[e._v(" Logout ")]):e._e()],1)],1)},Pt=[],Nt=a(29852),$t=a(31642),zt=a(2332),Dt=a(41294),Rt=a(15193),Ft=a(22183),Ht=function(){var e=this,t=e._self._c;return t("b-nav-item",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],attrs:{title:"Toggle Dark Mode"},on:{click:function(t){e.skin=e.isDark?"light":"dark"}}},[t("feather-icon",{attrs:{size:"21",icon:(e.isDark?"Sun":"Moon")+"Icon"}})],1)},jt=[],Gt=a(32450),Et=a(5870);const Ut={components:{BNavItem:Gt.r},directives:{"b-tooltip":Et.o},setup(){const{skin:e}=(0,w.Z)(),t=(0,s.computed)((()=>"dark"===e.value));return{skin:e,isDark:t}}},Wt=Ut;var qt=(0,x.Z)(Wt,Ht,jt,!1,null,null,null);const Xt=qt.exports;var Kt=function(){var e=this,t=e._self._c;return t("b-nav-item",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"menu-toggler",attrs:{title:"Toggle Menu Style"},on:{click:function(t){e.isNavMenuCollapsed=!e.isCollapsed}}},[t("v-icon",{attrs:{size:"21",name:""+(e.isCollapsed?"bars":"align-left")}})],1)},Jt=[];const Yt={components:{BNavItem:Gt.r},directives:{"b-tooltip":Et.o},setup(){const{isNavMenuCollapsed:e}=(0,w.Z)(),t=(0,s.computed)((()=>!0===e.value));return{isNavMenuCollapsed:e,isCollapsed:t}}},Qt=Yt;var ea=(0,x.Z)(Qt,Kt,Jt,!1,null,"2ed358b2",null);const ta=ea.exports;var aa=a(34369);const na=a(80129),ra=a(58971),oa={components:{BLink:p.we,BNavbarNav:Nt.o,BDropdown:$t.R,BDropdownItemButton:zt.t,BDropdownDivider:Dt.a,BButton:Rt.T,BFormInput:Ft.e,DarkToggler:Xt,MenuCollapseToggler:ta,ToastificationContent:g.Z},directives:{Ripple:S.Z},props:{toggleVerticalMenuActive:{type:Function,default:()=>{}}},data(){return{backendURL:"",customBackend:""}},computed:{...(0,d.rn)("flux",["userconfig","config","privilege","zelid"])},mounted(){const{protocol:e,hostname:t,port:a}=window.location;let n="";n+=e,n+="//";const r=/[A-Za-z]/g;if(t.match(r)){const e=t.split(".");e[0]="api",n+=e.join(".")}else{if("string"===typeof t&&this.$store.commit("flux/setUserIp",t),+a>16100){const e=+a+1;this.$store.commit("flux/setFluxPort",e)}n+=t,n+=":",n+=this.config.apiPort}this.backendURL=ra.get("backendURL")||n},methods:{changeBackendURL(e){console.log(e),ra.set("backendURL",e),this.backendURL=e},showToast(e,t){this.$toast({component:g.Z,props:{title:t,icon:"BellIcon",variant:e}})},logout(){const e=localStorage.getItem("zelidauth"),t=na.parse(e);localStorage.removeItem("zelidauth"),this.$store.commit("flux/setPrivilege","none"),this.$store.commit("flux/setZelid",""),console.log(t),aa.Z.logoutCurrentSession(e).then((e=>{console.log(e),"error"===e.data.status?console.log(e.data.data.message):(this.showToast("success",e.data.data.message),this.$router.push({name:"home"}))})).catch((e=>{console.log(e),this.showToast("danger",e.toString())}))}}},ia=oa;var la=(0,x.Z)(ia,Ot,Pt,!1,null,null,null);const sa=la.exports,ca={components:{LayoutVertical:Vt,Navbar:sa},data(){return{}}},ua=ca;var da=(0,x.Z)(ua,r,o,!1,null,null,null);const pa=da.exports},39055:(e,t,a)=>{a.d(t,{Z:()=>r});var n=a(80914);const r={softUpdateFlux(e){return(0,n.Z)().get("/flux/softupdateflux",{headers:{zelidauth:e}})},softUpdateInstallFlux(e){return(0,n.Z)().get("/flux/softupdatefluxinstall",{headers:{zelidauth:e}})},updateFlux(e){return(0,n.Z)().get("/flux/updateflux",{headers:{zelidauth:e}})},hardUpdateFlux(e){return(0,n.Z)().get("/flux/hardupdateflux",{headers:{zelidauth:e}})},rebuildHome(e){return(0,n.Z)().get("/flux/rebuildhome",{headers:{zelidauth:e}})},updateDaemon(e){return(0,n.Z)().get("/flux/updatedaemon",{headers:{zelidauth:e}})},reindexDaemon(e){return(0,n.Z)().get("/flux/reindexdaemon",{headers:{zelidauth:e}})},updateBenchmark(e){return(0,n.Z)().get("/flux/updatebenchmark",{headers:{zelidauth:e}})},getFluxVersion(){return(0,n.Z)().get("/flux/version")},broadcastMessage(e,t){const a=t,r={headers:{zelidauth:e}};return(0,n.Z)().post("/flux/broadcastmessage",JSON.stringify(a),r)},connectedPeers(){return(0,n.Z)().get(`/flux/connectedpeers?timestamp=${Date.now()}`)},connectedPeersInfo(){return(0,n.Z)().get(`/flux/connectedpeersinfo?timestamp=${Date.now()}`)},incomingConnections(){return(0,n.Z)().get(`/flux/incomingconnections?timestamp=${Date.now()}`)},incomingConnectionsInfo(){return(0,n.Z)().get(`/flux/incomingconnectionsinfo?timestamp=${Date.now()}`)},addPeer(e,t){return(0,n.Z)().get(`/flux/addpeer/${t}`,{headers:{zelidauth:e}})},removePeer(e,t){return(0,n.Z)().get(`/flux/removepeer/${t}`,{headers:{zelidauth:e}})},removeIncomingPeer(e,t){return(0,n.Z)().get(`/flux/removeincomingpeer/${t}`,{headers:{zelidauth:e}})},adjustCruxID(e,t){return(0,n.Z)().get(`/flux/adjustcruxid/${t}`,{headers:{zelidauth:e}})},adjustKadena(e,t,a){return(0,n.Z)().get(`/flux/adjustkadena/${t}/${a}`,{headers:{zelidauth:e}})},adjustRouterIP(e,t){return(0,n.Z)().get(`/flux/adjustrouterip/${t}`,{headers:{zelidauth:e}})},adjustBlockedPorts(e,t){const a={blockedPorts:t},r={headers:{zelidauth:e}};return(0,n.Z)().post("/flux/adjustblockedports",JSON.stringify(a),r)},adjustAPIPort(e,t){return(0,n.Z)().get(`/flux/adjustapiport/${t}`,{headers:{zelidauth:e}})},adjustBlockedRepositories(e,t){const a={blockedRepositories:t},r={headers:{zelidauth:e}};return(0,n.Z)().post("/flux/adjustblockedrepositories",JSON.stringify(a),r)},getCruxID(){const e={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/cruxid",e)},getKadenaAccount(){const e={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/kadena",e)},getRouterIP(){const e={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/routerip",e)},getBlockedPorts(){const e={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/blockedports",e)},getAPIPort(){const e={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/apiport",e)},getBlockedRepositories(){const e={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/blockedrepositories",e)},getMarketPlaceURL(){return(0,n.Z)().get("/flux/marketplaceurl")},getZelid(){const e={headers:{"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/zelid",e)},getStaticIpInfo(){return(0,n.Z)().get("/flux/staticip")},restartFluxOS(e){const t={headers:{zelidauth:e,"x-apicache-bypass":!0}};return(0,n.Z)().get("/flux/restart",t)},tailFluxLog(e,t){return(0,n.Z)().get(`/flux/tail${e}log`,{headers:{zelidauth:t}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}},25448:(e,t,a)=>{e.exports=a.p+"img/logo.png"},84328:(e,t,a)=>{var n=a(65290),r=a(27578),o=a(6310),i=function(e){return function(t,a,i){var l,s=n(t),c=o(s),u=r(i,c);if(e&&a!==a){while(c>u)if(l=s[u++],l!==l)return!0}else for(;c>u;u++)if((e||u in s)&&s[u]===a)return e||u||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},5649:(e,t,a)=>{var n=a(67697),r=a(92297),o=TypeError,i=Object.getOwnPropertyDescriptor,l=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=l?function(e,t){if(r(e)&&!i(e,"length").writable)throw new o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},8758:(e,t,a)=>{var n=a(36812),r=a(19152),o=a(82474),i=a(72560);e.exports=function(e,t,a){for(var l=r(t),s=i.f,c=o.f,u=0;u{var t=TypeError,a=9007199254740991;e.exports=function(e){if(e>a)throw t("Maximum allowed index exceeded");return e}},72739:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},79989:(e,t,a)=>{var n=a(19037),r=a(82474).f,o=a(75773),i=a(11880),l=a(95014),s=a(8758),c=a(35266);e.exports=function(e,t){var a,u,d,p,m,v,g=e.target,h=e.global,f=e.stat;if(u=h?n:f?n[g]||l(g,{}):(n[g]||{}).prototype,u)for(d in t){if(m=t[d],e.dontCallGetSet?(v=r(u,d),p=v&&v.value):p=u[d],a=c(h?d:g+(f?".":"#")+d,e.forced),!a&&void 0!==p){if(typeof m==typeof p)continue;s(m,p)}(e.sham||p&&p.sham)&&o(m,"sham",!0),i(u,d,m,e)}}},94413:(e,t,a)=>{var n=a(68844),r=a(3689),o=a(6648),i=Object,l=n("".split);e.exports=r((function(){return!i("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?l(e,""):i(e)}:i},92297:(e,t,a)=>{var n=a(6648);e.exports=Array.isArray||function(e){return"Array"===n(e)}},35266:(e,t,a)=>{var n=a(3689),r=a(69985),o=/#|\.prototype\./,i=function(e,t){var a=s[l(e)];return a===u||a!==c&&(r(t)?n(t):!!t)},l=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=i.data={},c=i.NATIVE="N",u=i.POLYFILL="P";e.exports=i},6310:(e,t,a)=>{var n=a(43126);e.exports=function(e){return n(e.length)}},58828:e=>{var t=Math.ceil,a=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?a:t)(n)}},82474:(e,t,a)=>{var n=a(67697),r=a(22615),o=a(49556),i=a(75684),l=a(65290),s=a(18360),c=a(36812),u=a(68506),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=l(e),t=s(t),u)try{return d(e,t)}catch(a){}if(c(e,t))return i(!r(o.f,e,t),e[t])}},72741:(e,t,a)=>{var n=a(54948),r=a(72739),o=r.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},7518:(e,t)=>{t.f=Object.getOwnPropertySymbols},54948:(e,t,a)=>{var n=a(68844),r=a(36812),o=a(65290),i=a(84328).indexOf,l=a(57248),s=n([].push);e.exports=function(e,t){var a,n=o(e),c=0,u=[];for(a in n)!r(l,a)&&r(n,a)&&s(u,a);while(t.length>c)r(n,a=t[c++])&&(~i(u,a)||s(u,a));return u}},49556:(e,t)=>{var a={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r=n&&!a.call({1:2},1);t.f=r?function(e){var t=n(this,e);return!!t&&t.enumerable}:a},19152:(e,t,a)=>{var n=a(76058),r=a(68844),o=a(72741),i=a(7518),l=a(85027),s=r([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(l(e)),a=i.f;return a?s(t,a(e)):t}},27578:(e,t,a)=>{var n=a(68700),r=Math.max,o=Math.min;e.exports=function(e,t){var a=n(e);return a<0?r(a+t,0):o(a,t)}},65290:(e,t,a)=>{var n=a(94413),r=a(74684);e.exports=function(e){return n(r(e))}},68700:(e,t,a)=>{var n=a(58828);e.exports=function(e){var t=+e;return t!==t||0===t?0:n(t)}},43126:(e,t,a)=>{var n=a(68700),r=Math.min;e.exports=function(e){return e>0?r(n(e),9007199254740991):0}},70560:(e,t,a)=>{var n=a(79989),r=a(90690),o=a(6310),i=a(5649),l=a(55565),s=a(3689),c=s((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},d=c||!u();n({target:"Array",proto:!0,arity:1,forced:d},{push:function(e){var t=r(this),a=o(t),n=arguments.length;l(a+n);for(var s=0;s{s.r(e),s.d(e,{default:()=>Z});var a=function(){var t=this,e=t._self._c;return e("div",[e("b-card",{attrs:{title:"Welcome to Flux - The biggest decentralyzed computational network"}},[e("list-entry",{attrs:{title:"Dasboard",data:t.dashboard}}),e("list-entry",{attrs:{title:"Applications",data:t.applications}}),e("list-entry",{attrs:{title:"XDAO",data:t.xdao}}),e("list-entry",{attrs:{title:"Administration",data:t.administration}})],1),"none"===t.privilege?e("b-card",[e("b-card-title",[t._v("Log In")]),e("dl",{staticClass:"row"},[e("dd",{staticClass:"col-sm-4"},[e("b-card-text",{staticClass:"text-center"},[t._v(" Please log in using ")]),e("div",{staticClass:"loginRow"},[e("a",{attrs:{href:`zel:?action=sign&message=${t.loginPhrase}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${t.callbackValue}`},on:{click:t.initiateLoginWS}},[e("img",{staticClass:"zelidLogin",attrs:{src:s(94452),alt:"Zel ID",height:"100%",width:"100%"}})]),e("a",{on:{click:t.initSSP}},[e("img",{staticClass:"sspLogin",attrs:{src:"dark"===t.skin?s(56070):s(58962),alt:"SSP",height:"100%",width:"100%"}})])]),e("div",{staticClass:"loginRow"},[e("a",{on:{click:t.initWalletConnect}},[e("img",{staticClass:"walletconnectLogin",attrs:{src:s(47622),alt:"WalletConnect",height:"100%",width:"100%"}})]),e("a",{on:{click:t.initMetamask}},[e("img",{staticClass:"metamaskLogin",attrs:{src:s(28125),alt:"Metamask",height:"100%",width:"100%"}})])])],1),e("dd",{staticClass:"col-sm-8"},[e("b-card-text",{staticClass:"text-center"},[t._v(" or sign the following message with any ZelID / SSP Wallet ID / Bitcoin / Ethereum address ")]),e("br"),e("br"),e("b-form",{staticClass:"mx-5",on:{submit:function(t){t.preventDefault()}}},[e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-form-group",{attrs:{label:"Message","label-for":"h-message","label-cols-md":"3"}},[e("b-form-input",{attrs:{id:"h-message",placeholder:"Insert Login Phrase"},model:{value:t.loginForm.loginPhrase,callback:function(e){t.$set(t.loginForm,"loginPhrase",e)},expression:"loginForm.loginPhrase"}})],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-form-group",{attrs:{label:"Address","label-for":"h-address","label-cols-md":"3"}},[e("b-form-input",{attrs:{id:"h-address",placeholder:"Insert ZelID or Bitcoin address"},model:{value:t.loginForm.zelid,callback:function(e){t.$set(t.loginForm,"zelid",e)},expression:"loginForm.zelid"}})],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-form-group",{attrs:{label:"Signature","label-for":"h-signature","label-cols-md":"3"}},[e("b-form-input",{attrs:{id:"h-signature",placeholder:"Insert Signature"},model:{value:t.loginForm.signature,callback:function(e){t.$set(t.loginForm,"signature",e)},expression:"loginForm.signature"}})],1)],1),e("b-col",{attrs:{"offset-md":"5"}},[e("b-button",{staticClass:"mr-1",attrs:{type:"submit",variant:"primary"},on:{click:t.login}},[t._v(" Login ")])],1)],1)],1)],1)])],1):t._e()],1)},o=[],r=s(86855),n=s(64206),i=s(49379),l=s(15193),c=s(54909),g=s(50725),d=s(26253),u=s(22183),h=s(46709),f=s(20629),p=s(38511),m=s(62693),w=s(94145),y=s(34547),b=s(51748),v=s(37307),P=s(34369),x=s(48764)["lW"];const k="df787edc6839c7de49d527bba9199eaa",S={projectId:k,metadata:{name:"Flux Cloud",description:"Flux, Your Gateway to a Decentralized World",url:"https://home.runonflux.io",icons:["https://home.runonflux.io/img/logo.png"]}},O=new m.u(S),C={enableDebug:!0},T=new w.MetaMaskSDK(C);let z;const F=s(80129),j=s(58971),L={components:{BCard:r._,BCardText:n.j,BCardTitle:i._,BButton:l.T,BForm:c.e,BCol:g.l,BRow:d.T,BFormInput:u.e,BFormGroup:h.x,ListEntry:b.Z,ToastificationContent:y.Z},data(){return{dashboard:"Check Flux network information, resources available or a map with server locations.",xdao:"See the list of changes proposed to Flux network, create new ones and vote.",applications:"Buy on marketplace, register your own app, manage your active apps.",administration:"Tools for the infrastructe administrators, node operators.",websocket:null,errorMessage:"",loginPhrase:"",loginForm:{zelid:"",signature:"",loginPhrase:""},signClient:null}},computed:{...(0,f.rn)("flux",["userconfig","config","privilege"]),skin(){return(0,v.Z)().skin.value},callbackValue(){const t=this.backendURL(),e=`${t}/id/verifylogin`;return encodeURI(e)}},mounted(){this.getZelIdLoginPhrase(),this.initMMSDK()},methods:{async initMMSDK(){try{await T.init(),z=T.getProvider()}catch(t){console.log(t)}},backendURL(){const{protocol:t,hostname:e,port:s}=window.location;let a="";a+=t,a+="//";const o=/[A-Za-z]/g;if(e.match(o)){const t=e.split(".");t[0]="api",a+=t.join(".")}else{if("string"===typeof e&&this.$store.commit("flux/setUserIp",e),+s>16100){const t=+s+1;this.$store.commit("flux/setFluxPort",t)}a+=e,a+=":",a+=this.config.apiPort}return j.get("backendURL")||a},initiateLoginWS(){const t=this;let e=this.backendURL();e=e.replace("https://","wss://"),e=e.replace("http://","ws://");const s=`${e}/ws/id/${this.loginPhrase}`,a=new WebSocket(s);this.websocket=a,a.onopen=e=>{t.onOpen(e)},a.onclose=e=>{t.onClose(e)},a.onmessage=e=>{t.onMessage(e)},a.onerror=e=>{t.onError(e)}},onError(t){console.log(t)},onMessage(t){const e=F.parse(t.data);if(console.log(e),"success"===e.status&&e.data){const t={zelid:e.data.zelid,signature:e.data.signature,loginPhrase:e.data.loginPhrase};this.$store.commit("flux/setPrivilege",e.data.privilage),this.$store.commit("flux/setZelid",t.zelid),localStorage.setItem("zelidauth",F.stringify(t)),this.showToast("success",e.data.message)}console.log(e),console.log(t)},onClose(t){console.log(t)},onOpen(t){console.log(t)},showToast(t,e){this.$toast({component:y.Z,props:{title:e,icon:"BellIcon",variant:t}})},getZelIdLoginPhrase(){P.Z.loginPhrase().then((t=>{console.log(t),"error"===t.data.status?this.getEmergencyLoginPhrase():(this.loginPhrase=t.data.data,this.loginForm.loginPhrase=t.data.data)})).catch((t=>{console.log(t),this.showToast("danger",t)}))},getEmergencyLoginPhrase(){P.Z.emergencyLoginPhrase().then((t=>{console.log(t),"error"===t.data.status?this.showToast("danger",t.data.data.message):(this.loginPhrase=t.data.data,this.loginForm.loginPhrase=t.data.data)})).catch((t=>{console.log(t),this.showToast("danger",t)}))},getVariant(t){return"error"===t?"danger":"message"===t?"info":t},login(){console.log(this.loginForm),P.Z.verifyLogin(this.loginForm).then((t=>{if(console.log(t),"success"===t.data.status){const e={zelid:this.loginForm.zelid,signature:this.loginForm.signature,loginPhrase:this.loginForm.loginPhrase};this.$store.commit("flux/setPrivilege",t.data.data.privilage),this.$store.commit("flux/setZelid",e.zelid),localStorage.setItem("zelidauth",F.stringify(e)),this.showToast("success",t.data.data.message)}else this.showToast(this.getVariant(t.data.status),t.data.data.message||t.data.data)})).catch((t=>{console.log(t),this.showToast("danger",t.toString())}))},async onSessionConnect(t){console.log(t);const e=await this.signClient.request({topic:t.topic,chainId:"eip155:1",request:{method:"personal_sign",params:[this.loginPhrase,t.namespaces.eip155.accounts[0].split(":")[2]]}});console.log(e);const s={zelid:t.namespaces.eip155.accounts[0].split(":")[2],signature:e,loginPhrase:this.loginPhrase},a=await P.Z.verifyLogin(s);if(console.log(a),"success"===a.data.status){const t=s;this.$store.commit("flux/setPrivilege",a.data.data.privilage),this.$store.commit("flux/setZelid",t.zelid),localStorage.setItem("zelidauth",F.stringify(t)),this.showToast("success",a.data.data.message)}else this.showToast(this.getVariant(a.data.status),a.data.data.message||a.data.data)},onSessionUpdate(t){console.log(t)},async initWalletConnect(){const t=this;try{const e=await p.ZP.init(S);this.signClient=e,e.on("session_event",(({event:t})=>{console.log(t)})),e.on("session_update",(({topic:s,params:a})=>{const{namespaces:o}=a,r=e.session.get(s),n={...r,namespaces:o};t.onSessionUpdate(n)})),e.on("session_delete",(()=>{}));const{uri:s,approval:a}=await e.connect({requiredNamespaces:{eip155:{methods:["personal_sign"],chains:["eip155:1"],events:["chainChanged","accountsChanged"]}}});if(s){O.openModal({uri:s});const t=await a();this.onSessionConnect(t),O.closeModal()}}catch(e){console.error(e),this.showToast("danger",e.message)}},async siwe(t,e){try{const s=`0x${x.from(t,"utf8").toString("hex")}`,a=await z.request({method:"personal_sign",params:[s,e]});console.log(a);const o={zelid:e,signature:a,loginPhrase:this.loginPhrase},r=await P.Z.verifyLogin(o);if(console.log(r),"success"===r.data.status){const t=o;this.$store.commit("flux/setPrivilege",r.data.data.privilage),this.$store.commit("flux/setZelid",t.zelid),localStorage.setItem("zelidauth",F.stringify(t)),this.showToast("success",r.data.data.message)}else this.showToast(this.getVariant(r.data.status),r.data.data.message||r.data.data)}catch(s){console.error(s),this.showToast("danger",s.message)}},async initMetamask(){try{if(!z)return void this.showToast("danger","Metamask not detected");let t;if(z&&!z.selectedAddress){const e=await z.request({method:"eth_requestAccounts",params:[]});console.log(e),t=e[0]}else t=z.selectedAddress;this.siwe(this.loginPhrase,t)}catch(t){this.showToast("danger",t.message)}},async initSSP(){try{if(!window.ssp)return void this.showToast("danger","SSP Wallet not installed");const t=await window.ssp.request("sspwid_sign_message",{message:this.loginPhrase});if("ERROR"===t.status)throw new Error(t.data||t.result);const e={zelid:t.address,signature:t.signature,loginPhrase:this.loginPhrase},s=await P.Z.verifyLogin(e);if(console.log(s),"success"===s.data.status){const t=e;this.$store.commit("flux/setPrivilege",s.data.data.privilage),this.$store.commit("flux/setZelid",t.zelid),localStorage.setItem("zelidauth",F.stringify(t)),this.showToast("success",s.data.data.message)}else this.showToast(this.getVariant(s.data.status),s.data.data.message||s.data.data)}catch(t){this.showToast("danger",t.message)}}}},M=L;var E=s(1001),I=(0,E.Z)(M,a,o,!1,null,null,null);const Z=I.exports},84328:(t,e,s)=>{var a=s(65290),o=s(27578),r=s(6310),n=function(t){return function(e,s,n){var i,l=a(e),c=r(l),g=o(n,c);if(t&&s!==s){while(c>g)if(i=l[g++],i!==i)return!0}else for(;c>g;g++)if((t||g in l)&&l[g]===s)return t||g||0;return!t&&-1}};t.exports={includes:n(!0),indexOf:n(!1)}},5649:(t,e,s)=>{var a=s(67697),o=s(92297),r=TypeError,n=Object.getOwnPropertyDescriptor,i=a&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=i?function(t,e){if(o(t)&&!n(t,"length").writable)throw new r("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},8758:(t,e,s)=>{var a=s(36812),o=s(19152),r=s(82474),n=s(72560);t.exports=function(t,e,s){for(var i=o(e),l=n.f,c=r.f,g=0;g{var e=TypeError,s=9007199254740991;t.exports=function(t){if(t>s)throw e("Maximum allowed index exceeded");return t}},72739:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},79989:(t,e,s)=>{var a=s(19037),o=s(82474).f,r=s(75773),n=s(11880),i=s(95014),l=s(8758),c=s(35266);t.exports=function(t,e){var s,g,d,u,h,f,p=t.target,m=t.global,w=t.stat;if(g=m?a:w?a[p]||i(p,{}):(a[p]||{}).prototype,g)for(d in e){if(h=e[d],t.dontCallGetSet?(f=o(g,d),u=f&&f.value):u=g[d],s=c(m?d:p+(w?".":"#")+d,t.forced),!s&&void 0!==u){if(typeof h==typeof u)continue;l(h,u)}(t.sham||u&&u.sham)&&r(h,"sham",!0),n(g,d,h,t)}}},94413:(t,e,s)=>{var a=s(68844),o=s(3689),r=s(6648),n=Object,i=a("".split);t.exports=o((function(){return!n("z").propertyIsEnumerable(0)}))?function(t){return"String"===r(t)?i(t,""):n(t)}:n},92297:(t,e,s)=>{var a=s(6648);t.exports=Array.isArray||function(t){return"Array"===a(t)}},35266:(t,e,s)=>{var a=s(3689),o=s(69985),r=/#|\.prototype\./,n=function(t,e){var s=l[i(t)];return s===g||s!==c&&(o(e)?a(e):!!e)},i=n.normalize=function(t){return String(t).replace(r,".").toLowerCase()},l=n.data={},c=n.NATIVE="N",g=n.POLYFILL="P";t.exports=n},6310:(t,e,s)=>{var a=s(43126);t.exports=function(t){return a(t.length)}},58828:t=>{var e=Math.ceil,s=Math.floor;t.exports=Math.trunc||function(t){var a=+t;return(a>0?s:e)(a)}},82474:(t,e,s)=>{var a=s(67697),o=s(22615),r=s(49556),n=s(75684),i=s(65290),l=s(18360),c=s(36812),g=s(68506),d=Object.getOwnPropertyDescriptor;e.f=a?d:function(t,e){if(t=i(t),e=l(e),g)try{return d(t,e)}catch(s){}if(c(t,e))return n(!o(r.f,t,e),t[e])}},72741:(t,e,s)=>{var a=s(54948),o=s(72739),r=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return a(t,r)}},7518:(t,e)=>{e.f=Object.getOwnPropertySymbols},54948:(t,e,s)=>{var a=s(68844),o=s(36812),r=s(65290),n=s(84328).indexOf,i=s(57248),l=a([].push);t.exports=function(t,e){var s,a=r(t),c=0,g=[];for(s in a)!o(i,s)&&o(a,s)&&l(g,s);while(e.length>c)o(a,s=e[c++])&&(~n(g,s)||l(g,s));return g}},49556:(t,e)=>{var s={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,o=a&&!s.call({1:2},1);e.f=o?function(t){var e=a(this,t);return!!e&&e.enumerable}:s},19152:(t,e,s)=>{var a=s(76058),o=s(68844),r=s(72741),n=s(7518),i=s(85027),l=o([].concat);t.exports=a("Reflect","ownKeys")||function(t){var e=r.f(i(t)),s=n.f;return s?l(e,s(t)):e}},27578:(t,e,s)=>{var a=s(68700),o=Math.max,r=Math.min;t.exports=function(t,e){var s=a(t);return s<0?o(s+e,0):r(s,e)}},65290:(t,e,s)=>{var a=s(94413),o=s(74684);t.exports=function(t){return a(o(t))}},68700:(t,e,s)=>{var a=s(58828);t.exports=function(t){var e=+t;return e!==e||0===e?0:a(e)}},43126:(t,e,s)=>{var a=s(68700),o=Math.min;t.exports=function(t){return t>0?o(a(t),9007199254740991):0}},70560:(t,e,s)=>{var a=s(79989),o=s(90690),r=s(6310),n=s(5649),i=s(55565),l=s(3689),c=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),g=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},d=c||!g();a({target:"Array",proto:!0,arity:1,forced:d},{push:function(t){var e=o(this),s=r(e),a=arguments.length;i(s+a);for(var l=0;l{s.d(e,{sj:()=>f,CO:()=>m,Ld:()=>p});Symbol();const a=Symbol();const o=Object.getPrototypeOf,r=new WeakMap,n=t=>t&&(r.has(t)?r.get(t):o(t)===Object.prototype||o(t)===Array.prototype),i=t=>n(t)&&t[a]||null,l=(t,e=!0)=>{r.set(t,e)},c=t=>"object"===typeof t&&null!==t,g=new WeakMap,d=new WeakSet,u=(t=Object.is,e=((t,e)=>new Proxy(t,e)),s=(t=>c(t)&&!d.has(t)&&(Array.isArray(t)||!(Symbol.iterator in t))&&!(t instanceof WeakMap)&&!(t instanceof WeakSet)&&!(t instanceof Error)&&!(t instanceof Number)&&!(t instanceof Date)&&!(t instanceof String)&&!(t instanceof RegExp)&&!(t instanceof ArrayBuffer)),a=(t=>{switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:throw t}}),o=new WeakMap,r=((t,e,s=a)=>{const n=o.get(t);if((null==n?void 0:n[0])===e)return n[1];const i=Array.isArray(t)?[]:Object.create(Object.getPrototypeOf(t));return l(i,!0),o.set(t,[e,i]),Reflect.ownKeys(t).forEach((e=>{if(Object.getOwnPropertyDescriptor(i,e))return;const a=Reflect.get(t,e),o={value:a,enumerable:!0,configurable:!0};if(d.has(a))l(a,!1);else if(a instanceof Promise)delete o.value,o.get=()=>s(a);else if(g.has(a)){const[t,e]=g.get(a);o.value=r(t,e(),s)}Object.defineProperty(i,e,o)})),Object.preventExtensions(i)}),n=new WeakMap,u=[1,1],h=(a=>{if(!c(a))throw new Error("object required");const o=n.get(a);if(o)return o;let l=u[0];const f=new Set,p=(t,e=++u[0])=>{l!==e&&(l=e,f.forEach((s=>s(t,e))))};let m=u[1];const w=(t=++u[1])=>(m===t||f.size||(m=t,b.forEach((([e])=>{const s=e[1](t);s>l&&(l=s)}))),l),y=t=>(e,s)=>{const a=[...e];a[1]=[t,...a[1]],p(a,s)},b=new Map,v=(t,e)=>{if(b.has(t))throw new Error("prop listener already exists");if(f.size){const s=e[3](y(t));b.set(t,[e,s])}else b.set(t,[e])},P=t=>{var e;const s=b.get(t);s&&(b.delete(t),null==(e=s[1])||e.call(s))},x=t=>{f.add(t),1===f.size&&b.forEach((([t,e],s)=>{if(e)throw new Error("remove already exists");const a=t[3](y(s));b.set(s,[t,a])}));const e=()=>{f.delete(t),0===f.size&&b.forEach((([t,e],s)=>{e&&(e(),b.set(s,[t]))}))};return e},k=Array.isArray(a)?[]:Object.create(Object.getPrototypeOf(a)),S={deleteProperty(t,e){const s=Reflect.get(t,e);P(e);const a=Reflect.deleteProperty(t,e);return a&&p(["delete",[e],s]),a},set(e,a,o,r){const l=Reflect.has(e,a),u=Reflect.get(e,a,r);if(l&&(t(u,o)||n.has(o)&&t(u,n.get(o))))return!0;P(a),c(o)&&(o=i(o)||o);let f=o;if(o instanceof Promise)o.then((t=>{o.status="fulfilled",o.value=t,p(["resolve",[a],t])})).catch((t=>{o.status="rejected",o.reason=t,p(["reject",[a],t])}));else{!g.has(o)&&s(o)&&(f=h(o));const t=!d.has(f)&&g.get(f);t&&v(a,t)}return Reflect.set(e,a,f,r),p(["set",[a],o,u]),!0}},O=e(k,S);n.set(a,O);const C=[k,w,r,x];return g.set(O,C),Reflect.ownKeys(a).forEach((t=>{const e=Object.getOwnPropertyDescriptor(a,t);"value"in e&&(O[t]=a[t],delete e.value,delete e.writable),Object.defineProperty(k,t,e)})),O}))=>[h,g,d,t,e,s,a,o,r,n,u],[h]=u();function f(t={}){return h(t)}function p(t,e,s){const a=g.get(t);let o;a||console.warn("Please use proxy object");const r=[],n=a[3];let i=!1;const l=t=>{r.push(t),s?e(r.splice(0)):o||(o=Promise.resolve().then((()=>{o=void 0,i&&e(r.splice(0))})))},c=n(l);return i=!0,()=>{i=!1,c()}}function m(t,e){const s=g.get(t);s||console.warn("Please use proxy object");const[a,o,r]=s;return r(a,o(),e)}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/4596.js b/HomeUI/dist/js/4596.js deleted file mode 100644 index 01f2499ce..000000000 --- a/HomeUI/dist/js/4596.js +++ /dev/null @@ -1 +0,0 @@ -(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[4596],{4596:(t,e,s)=>{"use strict";s.d(e,{Z:()=>ms});var a={};s.r(a),s.d(a,{Decoder:()=>ze,Encoder:()=>Oe,PacketType:()=>Ee,protocol:()=>Le});var i=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-2",attrs:{variant:"outline-primary",pill:""},on:{click:t.goBackToApps}},[e("v-icon",{attrs:{name:"chevron-left"}}),t._v(" Back ")],1),t._v(" "+t._s(t.applicationManagementAndStatus)+" ")],1),e("b-tabs",{staticClass:"mt-2",attrs:{pills:"",vertical:"",lazy:""},on:{input:e=>t.updateManagementTab(e)}},[e("b-tab",{attrs:{title:"Local App Management",disabled:""}}),e("b-tab",{attrs:{title:"Specifications",active:!t.global,disabled:!t.isApplicationInstalledLocally}},[t.callBResponse.data&&t.callResponse.data?e("div",[t.callBResponse.data.hash!==t.callResponse.data.hash?e("div",[e("h1",[t._v("Locally running application does not match global specifications! Update needed")]),e("br"),e("br")]):e("div",[t._v(" Application is synced with Global network "),e("br"),e("br")])]):t._e(),e("h2",[t._v("Installed Specifications")]),t.callResponse.data?e("div",{staticStyle:{"text-align":"left"}},[e("b-card",{staticClass:"mx-2"},[e("list-entry",{attrs:{title:"Description",data:t.callResponse.data.name}}),e("list-entry",{attrs:{title:"Description",data:t.callResponse.data.description}}),e("list-entry",{attrs:{title:"Owner",data:t.callResponse.data.owner}}),e("list-entry",{attrs:{title:"Hash",data:t.callResponse.data.hash}}),t.callResponse.data.version>=5?e("div",[t.callResponse.data.geolocation.length?e("div",t._l(t.callResponse.data.geolocation,(function(s){return e("div",{key:s},[e("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(s)}})],1)})),0):e("div",[e("list-entry",{attrs:{title:"Continent",data:"All"}}),e("list-entry",{attrs:{title:"Country",data:"All"}}),e("list-entry",{attrs:{title:"Region",data:"All"}})],1)]):t._e(),t.callResponse.data.instances?e("list-entry",{attrs:{title:"Instances",data:t.callResponse.data.instances.toString()}}):t._e(),e("list-entry",{attrs:{title:"Specifications version",number:t.callResponse.data.version}}),e("list-entry",{attrs:{title:"Registered on Blockheight",number:t.callResponse.data.height}}),t.callResponse.data.hash&&64===t.callResponse.data.hash.length?e("list-entry",{attrs:{title:"Expires on Blockheight",number:t.callResponse.data.height+(t.callResponse.data.expire||22e3)}}):t._e(),e("list-entry",{attrs:{title:"Period",data:t.getExpireLabel||(t.callResponse.data.expire?`${t.callResponse.data.expire} blocks`:"1 month")}}),e("list-entry",{attrs:{title:"Enterprise Nodes",data:t.callResponse.data.nodes?t.callResponse.data.nodes.toString():"Not scoped"}}),e("list-entry",{attrs:{title:"Static IP",data:t.callResponse.data.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}}),e("h4",[t._v("Composition")]),t.callResponse.data.version<=3?e("div",[e("b-card",[e("list-entry",{attrs:{title:"Repository",data:t.callResponse.data.repotag}}),e("list-entry",{attrs:{title:"Custom Domains",data:t.callResponse.data.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(t.callResponse.data.ports,t.callResponse.data.name).toString()||"none"}}),e("list-entry",{attrs:{title:"Ports",data:t.callResponse.data.ports.toString()||"none"}}),e("list-entry",{attrs:{title:"Container Ports",data:t.callResponse.data.containerPorts.toString()||"none"}}),e("list-entry",{attrs:{title:"Container Data",data:t.callResponse.data.containerData.toString()||"none"}}),e("list-entry",{attrs:{title:"Environment Parameters",data:t.callResponse.data.enviromentParameters.length>0?t.callResponse.data.enviromentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:t.callResponse.data.commands.length>0?t.callResponse.data.commands.toString():"none"}}),t.callResponse.data.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${t.callResponse.data.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${t.callResponse.data.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${t.callResponse.data.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${t.callResponse.data.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${t.callResponse.data.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${t.callResponse.data.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${t.callResponse.data.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${t.callResponse.data.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${t.callResponse.data.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${t.callResponse.data.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${t.callResponse.data.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${t.callResponse.data.hdd} GB`}})],1)],1)],1):e("div",t._l(t.callResponse.data.compose,(function(s,a){return e("b-card",{key:a},[e("b-card-title",[t._v(" Component "+t._s(s.name)+" ")]),e("list-entry",{attrs:{title:"Name",data:s.name}}),e("list-entry",{attrs:{title:"Description",data:s.description}}),e("list-entry",{attrs:{title:"Repository",data:s.repotag}}),e("list-entry",{attrs:{title:"Repository Authentication",data:s.repoauth?"Content Encrypted":"Public"}}),e("list-entry",{attrs:{title:"Custom Domains",data:s.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(s.ports,t.callResponse.data.name,a).toString()||"none"}}),e("list-entry",{attrs:{title:"Ports",data:s.ports.toString()||"none"}}),e("list-entry",{attrs:{title:"Container Ports",data:s.containerPorts.toString()||"none"}}),e("list-entry",{attrs:{title:"Container Data",data:s.containerData}}),e("list-entry",{attrs:{title:"Environment Parameters",data:s.environmentParameters.length>0?s.environmentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:s.commands.length>0?s.commands.toString():"none"}}),e("list-entry",{attrs:{title:"Secret Environment Parameters",data:s.secrets?"Content Encrypted":"none"}}),s.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${s.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${s.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${s.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${s.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${s.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${s.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${s.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${s.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${s.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${s.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${s.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${s.hdd} GB`}})],1)],1)})),1)],1)],1):e("div",[t._v(" Local Specifications loading... ")]),e("h2",{staticClass:"mt-2"},[t._v(" Global Specifications ")]),t.callBResponse.data?e("div",{staticStyle:{"text-align":"left"}},[e("b-card",{staticClass:"mx-2"},[e("list-entry",{attrs:{title:"Description",data:t.callBResponse.data.name}}),e("list-entry",{attrs:{title:"Description",data:t.callBResponse.data.description}}),e("list-entry",{attrs:{title:"Owner",data:t.callBResponse.data.owner}}),e("list-entry",{attrs:{title:"Hash",data:t.callBResponse.data.hash}}),t.callBResponse.data.version>=5?e("div",[t.callBResponse.data.geolocation.length?e("div",t._l(t.callBResponse.data.geolocation,(function(s){return e("div",{key:s},[e("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(s)}})],1)})),0):e("div",[e("list-entry",{attrs:{title:"Continent",data:"All"}}),e("list-entry",{attrs:{title:"Country",data:"All"}}),e("list-entry",{attrs:{title:"Region",data:"All"}})],1)]):t._e(),t.callBResponse.data.instances?e("list-entry",{attrs:{title:"Instances",data:t.callBResponse.data.instances.toString()}}):t._e(),e("list-entry",{attrs:{title:"Specifications version",number:t.callBResponse.data.version}}),e("list-entry",{attrs:{title:"Registered on Blockheight",number:t.callBResponse.data.height}}),t.callBResponse.data.hash&&64===t.callBResponse.data.hash.length?e("list-entry",{attrs:{title:"Expires on Blockheight",number:t.callBResponse.data.height+(t.callBResponse.data.expire||22e3)}}):t._e(),e("list-entry",{attrs:{title:"Period",data:t.getExpireLabel||(t.callBResponse.data.expire?`${t.callBResponse.data.expire} blocks`:"1 month")}}),e("list-entry",{attrs:{title:"Enterprise Nodes",data:t.callBResponse.data.nodes?t.callBResponse.data.nodes.toString():"Not scoped"}}),e("list-entry",{attrs:{title:"Static IP",data:t.callBResponse.data.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}}),e("h4",[t._v("Composition")]),t.callBResponse.data.version<=3?e("div",[e("b-card",[e("list-entry",{attrs:{title:"Repository",data:t.callBResponse.data.repotag}}),e("list-entry",{attrs:{title:"Custom Domains",data:t.callBResponse.data.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomainsGlobal.toString()||"none"}}),e("list-entry",{attrs:{title:"Ports",data:t.callBResponse.data.ports.toString()||"none"}}),e("list-entry",{attrs:{title:"Container Ports",data:t.callBResponse.data.containerPorts.toString()||"none"}}),e("list-entry",{attrs:{title:"Container Data",data:t.callBResponse.data.containerData}}),e("list-entry",{attrs:{title:"Environment Parameters",data:t.callBResponse.data.enviromentParameters.length>0?t.callBResponse.data.enviromentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:t.callBResponse.data.commands.length>0?t.callBResponse.data.commands.toString():"none"}}),t.callBResponse.data.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${t.callBResponse.data.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${t.callBResponse.data.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${t.callBResponse.data.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${t.callBResponse.data.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${t.callBResponse.data.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${t.callBResponse.data.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${t.callBResponse.data.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${t.callBResponse.data.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${t.callBResponse.data.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${t.callBResponse.data.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${t.callBResponse.data.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${t.callBResponse.data.hdd} GB`}})],1)],1)],1):e("div",t._l(t.callBResponse.data.compose,(function(s,a){return e("b-card",{key:a},[e("b-card-title",[t._v(" Component "+t._s(s.name)+" ")]),e("list-entry",{attrs:{title:"Name",data:s.name}}),e("list-entry",{attrs:{title:"Description",data:s.description}}),e("list-entry",{attrs:{title:"Repository",data:s.repotag}}),e("list-entry",{attrs:{title:"Repository Authentication",data:s.repoauth?"Content Encrypted":"Public"}}),e("list-entry",{attrs:{title:"Custom Domains",data:s.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(s.ports,t.callBResponse.data.name,a).toString()||"none"}}),e("list-entry",{attrs:{title:"Ports",data:s.ports.toString()||"none"}}),e("list-entry",{attrs:{title:"Container Ports",data:s.containerPorts.toString()||"none"}}),e("list-entry",{attrs:{title:"Container Data",data:s.containerData}}),e("list-entry",{attrs:{title:"Environment Parameters",data:s.environmentParameters.length>0?s.environmentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:s.commands.length>0?s.commands.toString():"none"}}),e("list-entry",{attrs:{title:"Secret Environment Parameters",data:s.secrets?"Content Encrypted":"none"}}),s.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${s.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${s.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${s.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${s.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${s.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${s.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${s.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${s.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${s.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${s.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${s.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${s.hdd} GB`}})],1)],1)})),1)],1)],1):"error"===t.callBResponse.status?e("div",[t._v(" Global specifications not found! ")]):e("div",[t._v(" Global Specifications loading... ")])]),e("b-tab",{attrs:{title:"Information",disabled:!t.isApplicationInstalledLocally}},[e("h3",[t._v("Application: "+t._s(t.appSpecification.name))]),t.appSpecification.version>=4?e("div",t._l(t.callResponse.data,(function(s,a){return e("div",{key:a},[e("h4",[t._v("Component: "+t._s(s.name))]),s.callData?e("div",[e("json-viewer",{attrs:{value:s.callData,"expand-depth":5,copyable:"",boxed:"",theme:"jv-dark"}})],1):t._e()])})),0):e("div",[t.callResponse.data&&t.callResponse.data[0]?e("div",[e("json-viewer",{attrs:{value:t.callResponse.data[0].callData,"expand-depth":5,copyable:"",boxed:"",theme:"jv-dark"}})],1):t._e()])]),e("b-tab",{attrs:{title:"Resources",disabled:!t.isApplicationInstalledLocally}},[e("h3",[t._v("Application: "+t._s(t.appSpecification.name))]),t.commandExecuting?e("div",[e("v-icon",{staticClass:"spin-icon",attrs:{name:"spinner"}})],1):t._e(),t.appSpecification.version>=4?e("div",t._l(t.callResponse.data,(function(s,a){return e("div",{key:a},[e("h4",[t._v("Component: "+t._s(s.name))]),s.callData?e("div",[e("json-viewer",{attrs:{value:s.callData,"expand-depth":5,copyable:"",boxed:"",theme:"jv-dark"}})],1):t._e()])})),0):e("div",[t.callResponse.data&&t.callResponse.data[0]?e("div",[e("json-viewer",{attrs:{value:t.callResponse.data[0].callData,"expand-depth":5,copyable:"",boxed:"",theme:"jv-dark"}})],1):t._e()])]),e("b-tab",{attrs:{title:"Monitoring",disabled:!t.isApplicationInstalledLocally}},[e("h3",[t._v("History Statistics 1 hour")]),t.appSpecification.version>=4?e("div",t._l(t.callResponse.data,(function(s,a){return e("div",{key:a},[e("h4",[t._v("Component: "+t._s(s.name))]),s.callData?e("b-table",{staticClass:"stats-table",attrs:{items:t.generateStatsTableItems(s.callData.lastHour,t.appSpecification.compose.find((t=>t.name===s.name))),fields:t.statsFields}}):e("div",[t._v(" Loading... ")])],1)})),0):e("div",[t.callResponse.data&&t.callResponse.data[0]?e("b-table",{staticClass:"stats-table",attrs:{items:t.generateStatsTableItems(t.callResponse.data[0].callData.lastHour,t.appSpecification),fields:t.statsFields}}):e("div",[t._v(" Loading... ")])],1),e("br"),e("br"),e("h3",[t._v("History Statistics 24 hours")]),t.appSpecification.version>=4?e("div",t._l(t.callResponse.data,(function(s,a){return e("div",{key:a},[e("h4",[t._v("Component: "+t._s(s.name))]),s.callData?e("b-table",{staticClass:"stats-table",attrs:{items:t.generateStatsTableItems(s.callData.lastDay,t.appSpecification.compose.find((t=>t.name===s.name))),fields:t.statsFields}}):e("div",[t._v(" Loading... ")])],1)})),0):e("div",[t.callResponse.data&&t.callResponse.data[0]?e("b-table",{staticClass:"stats-table",attrs:{items:t.generateStatsTableItems(t.callResponse.data[0].callData.lastDay,t.appSpecification),fields:t.statsFields}}):e("div",[t._v(" Loading... ")])],1)]),e("b-tab",{attrs:{title:"File Changes",disabled:!t.isApplicationInstalledLocally}},[e("h3",[t._v("Application: "+t._s(t.appSpecification.name))]),t.commandExecuting?e("div",[e("v-icon",{staticClass:"spin-icon",attrs:{name:"spinner"}})],1):t._e(),t.appSpecification.version>=4?e("div",t._l(t.callResponse.data,(function(s,a){return e("div",{key:a},[e("h4",[t._v("Component: "+t._s(s.name))]),s.callData?e("div",[e("json-viewer",{attrs:{value:s.callData,"expand-depth":5,copyable:"",boxed:"",theme:"jv-dark"}})],1):t._e()])})),0):e("div",[t.callResponse.data&&t.callResponse.data[0]?e("div",[e("json-viewer",{attrs:{value:t.callResponse.data[0].callData,"expand-depth":5,copyable:"",boxed:"",theme:"jv-dark"}})],1):t._e()])]),e("b-tab",{attrs:{title:"Processes",disabled:!t.isApplicationInstalledLocally}},[e("h3",[t._v("Application: "+t._s(t.appSpecification.name))]),t.commandExecuting?e("div",[e("v-icon",{staticClass:"spin-icon",attrs:{name:"spinner"}})],1):t._e(),t.appSpecification.version>=4?e("div",t._l(t.callResponse.data,(function(s,a){return e("div",{key:a},[e("h4",[t._v("Component: "+t._s(s.name))]),s.callData?e("div",[e("json-viewer",{attrs:{value:s.callData,"expand-depth":5,copyable:"",boxed:"",theme:"jv-dark"}})],1):t._e()])})),0):e("div",[t.callResponse.data&&t.callResponse.data[0]?e("div",[e("json-viewer",{attrs:{value:t.callResponse.data[0].callData,"expand-depth":5,copyable:"",boxed:"",theme:"jv-dark"}})],1):t._e()])]),e("b-tab",{attrs:{title:"Log File",disabled:!t.isApplicationInstalledLocally}},[e("h3",[t._v("Application: "+t._s(t.appSpecification.name))]),t.appSpecification.version>=4?e("div",t._l(t.callResponse.data,(function(s,a){return e("div",{key:a},[e("h4",[t._v("Component: "+t._s(s.name))]),e("div",{staticClass:"text-center"},[e("h6",[t._v(" Click the 'Download Log File' button to download the Log file from your Application debug file. This may take a few minutes depending on file size. ")]),e("div",[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mt-2",attrs:{id:`start-download-log-${s.name}_${t.appSpecification.name}`,variant:"outline-primary",size:"md"}},[t._v(" Download Debug File ")]),e("confirm-dialog",{attrs:{target:`start-download-log-${s.name}_${t.appSpecification.name}`,"confirm-button":"Download Log"},on:{confirm:function(e){return t.downloadApplicationLog(`${s.name}_${t.appSpecification.name}`)}}})],1),e("div",[t.total&&t.downloaded?e("b-card-text",[t._v(" "+t._s(`${(t.downloaded/1e6).toFixed(2)} / ${(t.total/1e6).toFixed(2)}`)+" MB - "+t._s(`${(t.downloaded/t.total*100).toFixed(2)}%`)+" ")]):t._e(),e("h6",{staticClass:"mb-1 mt-2"},[t._v(" Last 100 lines of the log file ")]),s.callData?e("b-form-textarea",{staticClass:"mt-1",staticStyle:{"background-color":"black",color:"white",padding:"20px","font-family":"monospace","margin-bottom":"25px"},attrs:{plaintext:"","no-resize":"",rows:"15",value:t.decodeAsciiResponse(s.callData)}}):t._e()],1)])])})),0):e("div",[e("div",{staticClass:"text-center"},[e("h6",[t._v(" Click the 'Download Log File' button to download the Log file from your Application debug file. This may take a few minutes depending on file size. ")]),e("div",[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mt-2",attrs:{id:"start-download-log",variant:"outline-primary",size:"md"}},[t._v(" Download Debug File ")]),e("confirm-dialog",{attrs:{target:"start-download-log","confirm-button":"Download Log"},on:{confirm:function(e){return t.downloadApplicationLog(t.appSpecification.name)}}})],1),e("div",[t.total&&t.downloaded?e("b-card-text",[t._v(" "+t._s(`${(t.downloaded/1e6).toFixed(2)} / ${(t.total/1e6).toFixed(2)}`)+" MB - "+t._s(`${(t.downloaded/t.total*100).toFixed(2)}%`)+" ")]):t._e(),e("h6",{staticClass:"mb-1 mt-2"},[t._v(" Last 100 lines of the log file ")]),t.callResponse.data&&t.callResponse.data[0]?e("b-form-textarea",{staticClass:"mt-1",staticStyle:{"background-color":"black",color:"white",padding:"20px","font-family":"monospace","margin-bottom":"25px"},attrs:{plaintext:"","no-resize":"",rows:"15",value:t.decodeAsciiResponse(t.callResponse.data[0].callData)}}):t._e()],1)])])]),e("b-tab",{attrs:{title:"Control",disabled:!t.isApplicationInstalledLocally}},[e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Control"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" General options to control running status of App. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"start-app",variant:"success","aria-label":"Start App"}},[t._v(" Start App ")]),e("confirm-dialog",{attrs:{target:"start-app","confirm-button":"Start App"},on:{confirm:function(e){return t.startApp(t.appName)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"stop-app",variant:"success","aria-label":"Stop App"}},[t._v(" Stop App ")]),e("confirm-dialog",{attrs:{target:"stop-app","confirm-button":"Stop App"},on:{confirm:function(e){return t.stopApp(t.appName)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"restart-app",variant:"success","aria-label":"Restart App"}},[t._v(" Restart App ")]),e("confirm-dialog",{attrs:{target:"restart-app","confirm-button":"Restart App"},on:{confirm:function(e){return t.restartApp(t.appName)}}})],1)],1)],1),e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Pause"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" The Pause command suspends all processes in the specified App. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"pause-app",variant:"success","aria-label":"Pause App"}},[t._v(" Pause App ")]),e("confirm-dialog",{attrs:{target:"pause-app","confirm-button":"Pause App"},on:{confirm:function(e){return t.pauseApp(t.appName)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"unpause-app",variant:"success","aria-label":"Unpause App"}},[t._v(" Unpause App ")]),e("confirm-dialog",{attrs:{target:"unpause-app","confirm-button":"Unpause App"},on:{confirm:function(e){return t.unpauseApp(t.appName)}}})],1)],1)],1),e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Monitoring"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" Controls Application Monitoring ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"start-monitoring",variant:"success","aria-label":"Start Monitoring"}},[t._v(" Start Monitoring ")]),e("confirm-dialog",{attrs:{target:"start-monitoring","confirm-button":"Start Monitoring"},on:{confirm:function(e){return t.startMonitoring(t.appName)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"stop-monitoring",variant:"success","aria-label":"Stop Monitoring"}},[t._v(" Stop Monitoring ")]),e("confirm-dialog",{attrs:{target:"stop-monitoring","confirm-button":"Stop Monitoring"},on:{confirm:function(e){return t.stopMonitoring(t.appName,!1)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"stop-monitoring-delete",variant:"success","aria-label":"Stop Monitoring and Delete Monitored Data"}},[t._v(" Stop Monitoring and Delete Monitored Data ")]),e("confirm-dialog",{attrs:{target:"stop-monitoring-delete","confirm-button":"Stop Monitoring"},on:{confirm:function(e){return t.stopMonitoring(t.appName,!0)}}})],1)],1)],1)],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Redeploy"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" Redeployes your application. Hard redeploy removes persistant data storage. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"redeploy-app-soft",variant:"success","aria-label":"Soft Redeploy App"}},[t._v(" Soft Redeploy App ")]),e("confirm-dialog",{attrs:{target:"redeploy-app-soft","confirm-button":"Redeploy"},on:{confirm:function(e){return t.redeployAppSoft(t.appName)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"redeploy-app-hard",variant:"success","aria-label":"Hard Redeploy App"}},[t._v(" Hard Redeploy App ")]),e("confirm-dialog",{attrs:{target:"redeploy-app-hard","confirm-button":"Redeploy"},on:{confirm:function(e){return t.redeployAppHard(t.appName)}}})],1)],1)],1),e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Remove"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" Stops, uninstalls and removes all App data from this Flux node. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"remove-app",variant:"success","aria-label":"Remove App"}},[t._v(" Remove App ")]),e("confirm-dialog",{attrs:{target:"remove-app","confirm-button":"Remove App"},on:{confirm:function(e){return t.removeApp(t.appName)}}})],1)],1)],1)],1)],1),e("b-tab",{attrs:{title:"Component Control",disabled:!t.isApplicationInstalledLocally||t.appSpecification.version<=3}},t._l(t.appSpecification.compose,(function(s,a){return e("b-card",{key:a},[e("h4",[t._v(t._s(s.name)+" Component")]),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Control"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" General options to control running status of Component. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:`start-app-${s.name}_${t.appSpecification.name}`,variant:"success","aria-label":"Start Component"}},[t._v(" Start Component ")]),e("confirm-dialog",{attrs:{target:`start-app-${s.name}_${t.appSpecification.name}`,"confirm-button":"Start Component"},on:{confirm:function(e){return t.startApp(`${s.name}_${t.appSpecification.name}`)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:`stop-app-${s.name}_${t.appSpecification.name}`,variant:"success","aria-label":"Stop Component"}},[t._v(" Stop Component ")]),e("confirm-dialog",{attrs:{target:`stop-app-${s.name}_${t.appSpecification.name}`,"confirm-button":"Stop App"},on:{confirm:function(e){return t.stopApp(`${s.name}_${t.appSpecification.name}`)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:`restart-app-${s.name}_${t.appSpecification.name}`,variant:"success","aria-label":"Restart Component"}},[t._v(" Restart Component ")]),e("confirm-dialog",{attrs:{target:`restart-app-${s.name}_${t.appSpecification.name}`,"confirm-button":"Restart Component"},on:{confirm:function(e){return t.restartApp(`${s.name}_${t.appSpecification.name}`)}}})],1)],1)],1),e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Pause"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" The Pause command suspends all processes in the specified Component. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:`pause-app-${s.name}_${t.appSpecification.name}`,variant:"success","aria-label":"Pause Component"}},[t._v(" Pause Component ")]),e("confirm-dialog",{attrs:{target:`pause-app-${s.name}_${t.appSpecification.name}`,"confirm-button":"Pause Component"},on:{confirm:function(e){return t.pauseApp(`${s.name}_${t.appSpecification.name}`)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:`unpause-app-${s.name}_${t.appSpecification.name}`,variant:"success","aria-label":"Unpause Component"}},[t._v(" Unpause Component ")]),e("confirm-dialog",{attrs:{target:`unpause-app-${s.name}_${t.appSpecification.name}`,"confirm-button":"Unpause Component"},on:{confirm:function(e){return t.unpauseApp(`${s.name}_${t.appSpecification.name}`)}}})],1)],1)],1),e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Monitoring"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" Controls Component Monitoring ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:`start-monitoring-${s.name}_${t.appSpecification.name}`,variant:"success","aria-label":"Start Monitoring"}},[t._v(" Start Monitoring ")]),e("confirm-dialog",{attrs:{target:`start-monitoring-${s.name}_${t.appSpecification.name}`,"confirm-button":"Start Monitoring"},on:{confirm:function(e){return t.startMonitoring(`${s.name}_${t.appSpecification.name}`)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:`stop-monitoring-${s.name}_${t.appSpecification.name}`,variant:"success","aria-label":"Stop Monitoring"}},[t._v(" Stop Monitoring ")]),e("confirm-dialog",{attrs:{target:`stop-monitoring-${s.name}_${t.appSpecification.name}`,"confirm-button":"Stop Monitoring"},on:{confirm:function(e){return t.stopMonitoring(`${s.name}_${t.appSpecification.name}`,!1)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:`stop-monitoring-delete-${s.name}_${t.appSpecification.name}`,variant:"success","aria-label":"Stop Monitoring and Delete Monitored Data"}},[t._v(" Stop Monitoring and Delete Monitored Data ")]),e("confirm-dialog",{attrs:{target:`stop-monitoring-delete-${s.name}_${t.appSpecification.name}`,"confirm-button":"Stop Monitoring"},on:{confirm:function(e){return t.stopMonitoring(`${s.name}_${t.appSpecification.name}`,!0)}}})],1)],1)],1)],1)],1)})),1),e("b-tab",{attrs:{title:"Backup/Restore",disabled:!t.isApplicationInstalledLocally}},[e("div",[e("b-card",{attrs:{"no-body":""}},[e("b-tabs",{attrs:{pills:"",card:""}},[e("b-tab",{staticStyle:{margin:"0","padding-top":"0px"},attrs:{title:"Backup"}},[e("div",{staticClass:"mb-2",staticStyle:{border:"1px solid #ccc","border-radius":"8px",height:"45px",padding:"12px","line-height":"0px"}},[e("h5",[e("b-icon",{staticClass:"mr-1",attrs:{icon:"back"}}),t._v(" Manual Backup Container Data")],1)]),e("div",{staticClass:"mb-2"},[e("b-form-group",[e("b-form-tags",{attrs:{id:"tags-component-select",size:"lg","add-on-change":"","no-outer-focus":""},scopedSlots:t._u([{key:"default",fn:function({tags:s,inputAttrs:a,inputHandlers:i,disabled:o,removeTag:n}){return[s.length>0?e("ul",{staticClass:"list-inline d-inline-block mb-2"},t._l(s,(function(s){return e("li",{key:s,staticClass:"list-inline-item"},[e("b-form-tag",{attrs:{title:s,disabled:o,variant:"primary"},on:{remove:function(t){return n(s)}}},[t._v(" "+t._s(s)+" ")])],1)})),0):t._e(),e("b-form-select",t._g(t._b({attrs:{disabled:o||0===t.componentAvailableOptions?.length||1===t.components?.length,options:t.componentAvailableOptions},scopedSlots:t._u([{key:"first",fn:function(){return[e("option",{attrs:{disabled:"",value:""}},[t._v(" Select the application component(s) you would like to backup ")])]},proxy:!0}],null,!0)},"b-form-select",a,!1),i))]}}]),model:{value:t.selectedBackupComponents,callback:function(e){t.selectedBackupComponents=e},expression:"selectedBackupComponents"}})],1)],1),t.components?.length>1?e("b-button",{staticClass:"mr-1",attrs:{variant:"outline-primary"},on:{click:t.addAllTags}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"0.9",icon:"check2-square"}}),t._v(" Select all ")],1):t._e(),e("b-button",{staticStyle:{"white-space":"nowrap"},attrs:{disabled:0===t.selectedBackupComponents.length||!0===t.backupProgress,variant:"outline-primary"},on:{click:function(e){return t.createBackup(t.appName,t.selectedBackupComponents)}}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"0.9",icon:"back"}}),t._v(" Create backup ")],1),e("br"),e("div",{staticClass:"mt-1"},[!0===t.backupProgress?e("div",{staticClass:"mb-2 mt-2 w-100",staticStyle:{margin:"0 auto",padding:"12px",border:"1px solid #eaeaea","border-radius":"8px","box-shadow":"0 4px 8px rgba(0, 0, 0, 0.1)","text-align":"center"}},[e("h5",{staticStyle:{"font-size":"16px","margin-bottom":"5px"}},[!0===t.backupProgress?e("span",[e("b-spinner",{attrs:{small:""}}),t._v(" "+t._s(t.tarProgress)+" ")],1):t._e()]),t._l(t.computedFileProgress,(function(s,a){return s.progress>0?e("b-progress",{key:a,staticClass:"mt-1",staticStyle:{height:"16px"},attrs:{max:100}},[e("b-progress-bar",{staticStyle:{"font-size":"14px"},attrs:{value:s.progress,label:`${s.fileName} - ${s.progress.toFixed(2)}%`}})],1):t._e()}))],2):t._e()]),t.backupList?.length>0&&!1===t.backupProgress?e("div",[e("div",{staticClass:"mb-1 text-right"},[e("b-dropdown",{staticClass:"mr-1",staticStyle:{"max-height":"38px","min-width":"100px","white-space":"nowrap"},attrs:{text:"Select",variant:"outline-primary"},scopedSlots:t._u([{key:"button-content",fn:function(){return[e("b-icon",{staticClass:"mr-1",attrs:{scale:"0.9",icon:"check2-square"}}),t._v(" Select ")]},proxy:!0}],null,!1,1960591975)},[e("b-dropdown-item",{attrs:{disabled:t.backupToUpload?.length===t.backupList?.length},on:{click:t.selectAllRows}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"0.9",icon:"check2-circle"}}),t._v(" Select all ")],1),e("b-dropdown-item",{attrs:{disabled:0===t.backupToUpload?.length},on:{click:t.clearSelected}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"0.7",icon:"square"}}),t._v(" Select none ")],1)],1),e("b-dropdown",{staticClass:"mr-1",staticStyle:{"max-height":"38px","min-width":"100px","white-space":"nowrap"},attrs:{text:"Download",variant:"outline-primary"},scopedSlots:t._u([{key:"button-content",fn:function(){return[e("b-icon",{staticClass:"mr-1",attrs:{scale:"0.9",icon:"download"}}),t._v(" Download ")]},proxy:!0}],null,!1,2545655511)},[e("b-dropdown-item",{attrs:{disabled:0===t.backupToUpload?.length},on:{click:function(e){return t.downloadAllBackupFiles(t.backupToUpload)}}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"0.7",icon:"download"}}),t._v(" Download selected ")],1),e("b-dropdown-item",{on:{click:function(e){return t.downloadAllBackupFiles(t.backupList)}}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"0.7",icon:"download"}}),t._v(" Download all ")],1)],1),e("b-button",{staticStyle:{"max-height":"38px","min-width":"100px","white-space":"nowrap"},attrs:{variant:"outline-danger"},on:{click:function(e){return t.deleteLocalBackup(null,t.backupList)}}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"0.9",icon:"trash"}}),t._v(" Remove all ")],1)],1),t.backupList?.length>0?e("b-table",{ref:"selectableTable",staticClass:"mb-0",attrs:{items:t.backupList,fields:[...t.localBackupTableFields,{key:"actions",label:"Actions",thStyle:{width:"5%"},class:"text-center"}],stacked:"md","show-empty":"",bordered:"","select-mode":"multi",selectable:"","selected-variant":"outline-dark",hover:"",small:""},on:{"row-selected":t.onRowSelected},scopedSlots:t._u([{key:"thead-top",fn:function(){return[e("b-tr",[e("b-td",{staticClass:"text-center",attrs:{colspan:"6"}},[e("b",[t._v(" List of available backups on the local machine (backups are automatically deleted 24 hours after creation) ")])])],1)]},proxy:!0},{key:"cell(create)",fn:function(e){return[t._v(" "+t._s(t.formatDateTime(e.item.create))+" ")]}},{key:"cell(expire)",fn:function(e){return[t._v(" "+t._s(t.formatDateTime(e.item.create,!0))+" ")]}},{key:"cell(isActive)",fn:function({rowSelected:s}){return[s?[e("span",{staticStyle:{color:"green"},attrs:{"aria-hidden":"true"}},[e("b-icon",{attrs:{icon:"calendar2-check-fill",scale:"1",variant:"success"}})],1),e("span",{staticClass:"sr-only"},[t._v("Selected")])]:[e("span",{attrs:{"aria-hidden":"true"}},[t._v(" ")]),e("span",{staticClass:"sr-only"},[t._v("Not selected")])]]}},{key:"cell(file_size)",fn:function(e){return[t._v(" "+t._s(t.addAndConvertFileSizes(e.item.file_size))+" ")]}},{key:"cell(actions)",fn:function(s){return[e("div",{staticClass:"d-flex justify-content-center align-items-center"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Remove file",expression:"'Remove file'",modifiers:{hover:!0,top:!0}}],staticClass:"d-flex justify-content-center align-items-center mr-1 custom-button",attrs:{variant:"outline-danger"},on:{click:function(e){return t.deleteLocalBackup(s.item.component,t.backupList,t.backupList[s.index].file)}}},[e("b-icon",{staticClass:"d-flex justify-content-center align-items-center",attrs:{scale:"0.9",icon:"trash"}})],1),e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Download file",expression:"'Download file'",modifiers:{hover:!0,top:!0}}],staticClass:"d-flex justify-content-center align-items-center custom-button",attrs:{variant:"outline-primary"},on:{click:function(e){return t.downloadAllBackupFiles([{component:s.item.component,file:t.backupList[s.index].file}])}}},[e("b-icon",{staticClass:"d-flex justify-content-center align-items-center",attrs:{scale:"1",icon:"cloud-arrow-down"}})],1)],1)]}}],null,!1,3111279885)}):t._e(),t.showProgressBar?e("b-card-text",[e("div",{staticClass:"mt-1"},[t.fileProgress.length>0?e("div",{staticClass:"mb-2 mt-2 w-100",staticStyle:{margin:"0 auto",padding:"12px",border:"1px solid #eaeaea","border-radius":"8px","box-shadow":"0 4px 8px rgba(0, 0, 0, 0.1)","text-align":"center"}},[e("h5",{staticStyle:{"font-size":"16px","margin-bottom":"5px"}},[t.allDownloadsCompleted()?e("span",[t._v(" Download Completed ")]):e("span",[e("b-spinner",{attrs:{small:""}}),t._v(" Downloading... ")],1)]),t._l(t.computedFileProgress,(function(s,a){return s.progress>0?e("b-progress",{key:a,staticClass:"mt-1",staticStyle:{height:"16px"},attrs:{max:100}},[e("b-progress-bar",{staticStyle:{"font-size":"14px"},attrs:{value:s.progress,label:`${s.fileName} - ${s.progress.toFixed(2)}%`}})],1):t._e()}))],2):t._e()])]):t._e(),t.backupToUpload.length>0?e("div",{staticClass:"mt-2"},[e("div",{staticClass:"mb-2 mt-3",staticStyle:{border:"1px solid #ccc","border-radius":"8px",height:"45px",padding:"12px","line-height":"0px"}},[e("h5",[e("b-icon",{attrs:{icon:"gear-fill"}}),t._v(" Choose your storage method (coming soon)")],1)]),e("b-form-radio-group",{attrs:{id:"btn-radios-2",options:t.storageMethod,"button-variant":"outline-primary",name:"radio-btn-outline",disable:t.storageMethod,buttons:""},model:{value:t.selectedStorageMethod,callback:function(e){t.selectedStorageMethod=e},expression:"selectedStorageMethod"}}),"flux"===t.selectedStorageMethod?e("div",[!0===t.sigInPrivilage?e("b-card",{staticClass:"mb-2 justify-content-center align-items-center"},[e("b-card-text",[e("div",{staticClass:"mb-2 mt-1",staticStyle:{"max-width":"500px",margin:"0 auto",padding:"12px",border:"1px solid #eaeaea","border-radius":"8px","box-shadow":"0 4px 8px rgba(0, 0, 0, 0.1)","text-align":"center"}},[e("h5",{staticStyle:{"font-size":"16px","margin-bottom":"5px"}},[t._v(" Sign in to enable FluxDrive functionality ")])])]),e("dl",{staticClass:"row"},[e("dd",{staticClass:"col-sm-4"},[e("b-card-text",{staticClass:"text-center"},[t._v(" Please log in using ")]),e("div",{staticStyle:{display:"flex","flex-direction":"row","justify-content":"space-around","align-items":"center","margin-bottom":"10px"}},[e("a",{attrs:{href:""},on:{click:t.removeAllBackup}},[e("img",{staticStyle:{"margin-left":"5px",height:"90px",padding:"10px"},attrs:{src:"https://home.runonflux.io/img/zelID.svg",alt:"Zel ID",height:"100%",width:"100%"}})]),e("a",{on:{click:t.removeAllBackup}},[e("img",{staticStyle:{height:"100px",padding:"10px"},attrs:{src:"https://home.runonflux.io/img/ssp-logo-white.svg",alt:"SSP",height:"100%",width:"100%"}})])]),e("div",{staticStyle:{display:"flex","flex-direction":"row","justify-content":"space-around","align-items":"center","margin-bottom":"10px"}},[e("a",{on:{click:t.removeAllBackup}},[e("img",{staticStyle:{height:"100px",padding:"10px"},attrs:{src:"https://home.runonflux.io/img/walletconnect.svg",alt:"WalletConnect",height:"100%",width:"100%"}})]),e("a",{on:{click:t.removeAllBackup}},[e("img",{staticStyle:{height:"80px",padding:"10px"},attrs:{src:"https://home.runonflux.io/img/metamask.svg",alt:"Metamask",height:"100%",width:"100%"}})])])],1),e("dd",{staticClass:"col-sm-8"},[e("b-card-text",{staticClass:"text-center"},[t._v(" or sign the following message with any ZelID / SSP Wallet ID / Bitcoin address / Ethereum address ")]),e("br"),e("br"),e("b-form",{staticClass:"mx-5"},[e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-form-group",{attrs:{label:"Message","label-for":"h-message","label-cols-md":"3"}},[e("b-form-input",{attrs:{id:"h-message",placeholder:"Insert Login Phrase"}})],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-form-group",{attrs:{label:"Address","label-for":"h-address","label-cols-md":"3"}},[e("b-form-input",{attrs:{id:"h-address",placeholder:"Insert ZelID / SSP Wallet ID / Bitcoin address / Ethereum address"}})],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-form-group",{attrs:{label:"Signature","label-for":"h-signature","label-cols-md":"3"}},[e("b-form-input",{attrs:{id:"h-signature",placeholder:"Insert Signature"}})],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-form-group",{attrs:{"label-cols-md":"3"}},[e("b-button",{staticClass:"w-100",attrs:{type:"submit",variant:"primary"}},[t._v(" Login ")])],1)],1)],1)],1)],1)])],1):t._e(),!1===t.sigInPrivilage?e("b-button",{staticClass:"mt-1 w-100",attrs:{variant:"outline-primary"},on:{click:t.removeAllBackup}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.5",icon:"cloud-arrow-up"}}),t._v(" Export ")],1):t._e()],1):t._e(),"google"===t.selectedStorageMethod?e("div",[e("b-button",{staticClass:"mt-1 w-100",attrs:{variant:"outline-primary"},on:{click:t.removeAllBackup}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.5",icon:"cloud-arrow-up"}}),t._v(" Export ")],1)],1):t._e()],1):t._e()],1):t._e()],1),e("b-tab",{staticStyle:{margin:"0","padding-top":"0px"},attrs:{title:"Restore"}},[e("div",{staticClass:"mb-2",staticStyle:{border:"1px solid #ccc","border-radius":"8px",height:"45px",padding:"12px","line-height":"0px"}},[e("h5",[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.4",icon:"cloud-download"}}),t._v(" Select restore method")],1)]),e("b-form-group",{staticClass:"mb-2"},[e("b-row",[e("b-col",{staticClass:"d-flex align-items-center",staticStyle:{height:"38px"}},[e("b-form-radio-group",{staticStyle:{"max-height":"38px","min-width":"100px","white-space":"nowrap"},attrs:{id:"btn-radios-2",options:t.restoreOptions,disable:t.restoreOptions,"button-variant":"outline-primary",name:"radio-btn-outline",buttons:""},on:{change:t.handleRadioClick},model:{value:t.selectedRestoreOption,callback:function(e){t.selectedRestoreOption=e},expression:"selectedRestoreOption"}})],1),e("b-col",{staticClass:"text-right",staticStyle:{height:"38px"}},["FluxDrive"===t.selectedRestoreOption?e("b-button",{staticStyle:{"max-height":"38px","min-width":"100px","white-space":"nowrap"},attrs:{variant:"outline-success"}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.2",icon:"arrow-repeat"}}),t._v("Refresh ")],1):t._e()],1)],1)],1),"FluxDrive"===t.selectedRestoreOption?e("div",[!1===t.sigInPrivilage?e("b-card",{staticClass:"mb-2 justify-content-center align-items-center"},[e("b-card-text",[e("div",{staticStyle:{"max-width":"500px",margin:"0 auto",padding:"10px",border:"1px solid #eaeaea","border-radius":"8px","box-shadow":"0 4px 8px rgba(0, 0, 0, 0.1)","text-align":"center"}},[e("h5",{staticStyle:{color:"#333","font-size":"16px","margin-bottom":"5px"}},[t._v(" Sig in to enable FluxDrive functionality ")])])]),e("dl",{staticClass:"row"},[e("dd",{staticClass:"col-sm-4"},[e("b-card-text",{staticClass:"text-center"},[t._v(" Please log in using ")]),e("div",{staticStyle:{display:"flex","flex-direction":"row","justify-content":"space-around","align-items":"center","margin-bottom":"10px"}},[e("a",{attrs:{href:""},on:{click:t.removeAllBackup}},[e("img",{staticStyle:{"margin-left":"5px",height:"90px",padding:"10px"},attrs:{src:"https://home.runonflux.io/img/zelID.svg",alt:"Zel ID",height:"100%",width:"100%"}})]),e("a",{on:{click:t.removeAllBackup}},[e("img",{staticStyle:{height:"100px",padding:"10px"},attrs:{src:"https://home.runonflux.io/img/ssp-logo-white.svg",alt:"SSP",height:"100%",width:"100%"}})])]),e("div",{staticStyle:{display:"flex","flex-direction":"row","justify-content":"space-around","align-items":"center","margin-bottom":"10px"}},[e("a",{on:{click:t.removeAllBackup}},[e("img",{staticStyle:{height:"100px",padding:"10px"},attrs:{src:"https://home.runonflux.io/img/walletconnect.svg",alt:"WalletConnect",height:"100%",width:"100%"}})]),e("a",{on:{click:t.removeAllBackup}},[e("img",{staticStyle:{height:"80px",padding:"10px"},attrs:{src:"https://home.runonflux.io/img/metamask.svg",alt:"Metamask",height:"100%",width:"100%"}})])])],1),e("dd",{staticClass:"col-sm-8"},[e("b-card-text",{staticClass:"text-center"},[t._v(" or sign the following message with any ZelID / SSP Wallet ID / Bitcoin address / Ethereum address ")]),e("br"),e("br"),e("b-form",{staticClass:"mx-5"},[e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-form-group",{attrs:{label:"Message","label-for":"h-message","label-cols-md":"3"}},[e("b-form-input",{attrs:{id:"h-message",placeholder:"Insert Login Phrase"}})],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-form-group",{attrs:{label:"Address","label-for":"h-address","label-cols-md":"3"}},[e("b-form-input",{attrs:{id:"h-address",placeholder:"Insert ZelID / SSP Wallet ID / Bitcoin address / Ethereum address"}})],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-form-group",{attrs:{label:"Signature","label-for":"h-signature","label-cols-md":"3"}},[e("b-form-input",{attrs:{id:"h-signature",placeholder:"Insert Signature"}})],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-form-group",{attrs:{"label-cols-md":"3"}},[e("b-button",{attrs:{type:"submit",variant:"primary",block:""}},[t._v(" Login ")])],1)],1)],1)],1)],1)])],1):t._e(),!0===t.sigInPrivilage?e("div",[e("div",[e("b-input-group",{staticClass:"mb-2"},[e("b-input-group-prepend",{attrs:{"is-text":""}},[e("b-icon",{attrs:{icon:"funnel-fill"}})],1),e("b-form-select",{attrs:{options:t.restoreComponents},model:{value:t.nestedTableFilter,callback:function(e){t.nestedTableFilter=e},expression:"nestedTableFilter"}})],1)],1),e("b-table",{attrs:{items:t.checkpoints,fields:t.backupTableFields,stacked:"md","show-empty":"",bordered:"",small:"","empty-text":"No records available. Please export your backup to FluxDrive.","sort-by":t.sortbackupTableKey,"sort-desc":t.sortbackupTableDesc},on:{"update:sortBy":function(e){t.sortbackupTableKey=e},"update:sort-by":function(e){t.sortbackupTableKey=e},"update:sortDesc":function(e){t.sortbackupTableDesc=e},"update:sort-desc":function(e){t.sortbackupTableDesc=e},filtered:t.onFilteredBackup},scopedSlots:t._u([{key:"thead-top",fn:function(){return[e("b-tr",[e("b-td",{staticClass:"text-center",attrs:{colspan:"6",variant:"dark"}},[e("b-icon",{staticClass:"mr-2",attrs:{scale:"1.2",icon:"back"}}),e("b",[t._v("Backups Inventory")])],1)],1)]},proxy:!0},{key:"cell(actions)",fn:function(s){return[e("div",{staticClass:"d-flex justify-content-center align-items-center"},[e("b-button",{staticClass:"d-flex justify-content-center align-items-center mr-1",staticStyle:{width:"15px",height:"25px"},attrs:{variant:"outline-danger"},on:{click:function(e){return t.deleteRestoreBackup(s.item.component,t.checkpoints,s.item.timestamp)}}},[e("b-icon",{staticClass:"d-flex justify-content-center align-items-center",attrs:{scale:"0.9",icon:"trash"}})],1),e("b-button",{staticClass:"d-flex justify-content-center align-items-center",staticStyle:{width:"15px",height:"25px"},attrs:{variant:"outline-primary"},on:{click:function(e){return t.addAllBackupComponents(s.item.timestamp)}}},[e("b-icon",{staticClass:"d-flex justify-content-center align-items-center",attrs:{scale:"0.9",icon:"save"}})],1)],1)]}},{key:"cell(timestamp)",fn:function(s){return[e("kbd",[t._v("backup_"+t._s(s.item.timestamp))])]}},{key:"cell(time)",fn:function(e){return[t._v(" "+t._s(t.formatDateTime(e.item.timestamp))+" ")]}},{key:"row-details",fn:function(s){return[e("b-table",{attrs:{stacked:"md","show-empty":"",bordered:"",hover:"",small:"",items:s.item.components.filter((e=>Object.values(e).some((e=>String(e).toLowerCase().includes(t.nestedTableFilter.toLowerCase()))))),fields:t.componentsTable1},scopedSlots:t._u([{key:"cell(actions)",fn:function(a){return[e("b-button",{staticClass:"d-flex justify-content-center align-items-center",staticStyle:{margin:"auto",width:"95px",height:"25px",display:"flex"},attrs:{variant:"outline-primary"},on:{click:function(e){return t.addComponent(a.item,s.item.timestamp)}}},[e("b-icon",{staticClass:"d-flex justify-content-center align-items-center",attrs:{scale:"0.7",icon:"plus-lg"}})],1)]}}],null,!0)})]}}],null,!1,85419062)}),t.newComponents.length>0?e("b-table",{attrs:{items:t.newComponents,fields:[...t.newComponentsTableFields,{key:"actions",label:"Actions",thStyle:{width:"20%"},class:"text-center"}],stacked:"md","show-empty":"",bordered:"",hover:"",small:""},scopedSlots:t._u([{key:"thead-top",fn:function(){return[e("b-tr",[e("b-td",{staticClass:"text-center",attrs:{colspan:"6",variant:"dark"}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.2",icon:"life-preserver"}}),e("b",[t._v("Restore Overview")])],1)],1)]},proxy:!0},{key:"cell(actions)",fn:function(s){return[e("div",{staticClass:"d-flex justify-content-center align-items-center"},[e("b-button",{staticClass:"d-flex justify-content-center align-items-center",staticStyle:{width:"95px",height:"25px"},attrs:{variant:"outline-danger"},on:{click:function(e){return t.deleteItem(s.index,t.newComponents)}}},[e("b-icon",{staticClass:"d-flex justify-content-center align-items-center",attrs:{scale:"0.9",icon:"trash"}})],1)],1)]}},{key:"custom-foot",fn:function(){return[e("b-tr",[e("b-td",{staticClass:"text-right",attrs:{colspan:"3",variant:"dark"}}),e("b-td",{staticStyle:{"text-align":"center","vertical-align":"middle"},attrs:{colspan:"2",variant:"dark"}},[e("b-icon",{staticClass:"mr-2",attrs:{icon:"hdd",scale:"1.4"}}),t._v(" "+t._s(t.totalArchiveFileSize(t.newComponents).toFixed(2))+" MB ")],1)],1)]},proxy:!0}],null,!1,121118200)}):t._e(),t.newComponents?.length>0?e("b-button",{staticClass:"mt-2",attrs:{block:"",variant:"outline-primary"}},[e("b-icon",{staticClass:"mr-1",attrs:{icon:"arrow-clockwise",scale:"1.2"}}),t._v("Restore ")],1):t._e()],1):t._e()],1):t._e(),"Upload File"===t.selectedRestoreOption?e("div",[e("div",[e("b-input-group",{staticClass:"mb-0"},[e("b-input-group-prepend",{attrs:{"is-text":""}},[e("b-icon",{attrs:{icon:"folder-plus"}})],1),e("b-form-select",{staticStyle:{"border-radius":"0"},attrs:{options:t.components,disabled:t.remoteFileComponents},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:null,disabled:""}},[t._v(" - Select component - ")])]},proxy:!0}],null,!1,2230972607),model:{value:t.restoreRemoteFile,callback:function(e){t.restoreRemoteFile=e},expression:"restoreRemoteFile"}}),e("b-input-group-append",[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Choose file to upload",expression:"'Choose file to upload'",modifiers:{hover:!0,top:!0}}],attrs:{disabled:null===t.restoreRemoteFile,text:"Button",size:"sm",variant:"outline-primary"},on:{click:t.addRemoteFile}},[e("b-icon",{attrs:{icon:"cloud-arrow-up",scale:"1.5"}})],1)],1)],1)],1),e("div",[e("input",{ref:"fileselector",staticClass:"flux-share-upload-input",staticStyle:{display:"none"},attrs:{id:"file-selector",type:"file"},on:{input:t.handleFiles}})]),e("b-alert",{staticClass:"mt-1 rounded-0 d-flex align-items-center justify-content-center",staticStyle:{"z-index":"1000"},attrs:{variant:t.alertVariant,solid:"true",dismissible:""},model:{value:t.showTopUpload,callback:function(e){t.showTopUpload=e},expression:"showTopUpload"}},[e("h5",{staticClass:"mt-1 mb-1"},[t._v(" "+t._s(t.alertMessage)+" ")])]),t.files?.length>0?e("div",{staticClass:"d-flex justify-content-between mt-2"},[e("b-table",{staticClass:"b-table",attrs:{small:"",bordered:"",size:"sm",items:t.files,fields:t.computedRestoreUploadFileFields},scopedSlots:t._u([{key:"thead-top",fn:function(){return[e("b-tr",[e("b-td",{staticClass:"text-center",attrs:{colspan:"6",variant:"dark"}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.2",icon:"life-preserver"}}),e("b",[t._v("Restore Overview")])],1)],1)]},proxy:!0},{key:"cell(file)",fn:function(s){return[e("div",{staticClass:"table-cell"},[t._v(" "+t._s(s.value)+" ")])]}},{key:"cell(file_size)",fn:function(s){return[e("div",{staticClass:"table-cell no-wrap"},[t._v(" "+t._s(t.addAndConvertFileSizes(s.value))+" ")])]}},{key:"cell(actions)",fn:function(s){return[e("div",{staticClass:"d-flex justify-content-center align-items-center"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Remove restore job",expression:"'Remove restore job'",modifiers:{hover:!0,top:!0}}],staticClass:"d-flex justify-content-center align-items-center",staticStyle:{width:"15px",height:"25px"},attrs:{variant:"outline-danger"},on:{click:function(e){return t.deleteItem(s.index,t.files,s.item.file,"upload")}}},[e("b-icon",{staticClass:"d-flex justify-content-center align-items-center",attrs:{scale:"0.9",icon:"trash"}})],1)],1)]}},{key:"custom-foot",fn:function(){return[e("b-tr",[e("b-td",{staticClass:"text-right",attrs:{colspan:"2",variant:"dark"}}),e("b-td",{staticStyle:{"text-align":"center","vertical-align":"middle"},attrs:{colspan:"2",variant:"dark"}},[e("b-icon",{staticClass:"mr-1",attrs:{icon:"hdd",scale:"1.4"}}),t._v(t._s(t.addAndConvertFileSizes(t.files))+" ")],1)],1)]},proxy:!0}],null,!1,1264712967)})],1):t._e(),e("div",{staticClass:"mt-2"},[t.restoreFromUpload?e("div",{staticClass:"mb-2 mt-2 w-100",staticStyle:{margin:"0 auto",padding:"12px",border:"1px solid #eaeaea","border-radius":"8px","box-shadow":"0 4px 8px rgba(0, 0, 0, 0.1)"}},[e("h5",{staticStyle:{"font-size":"16px","margin-bottom":"5px","text-align":"center"}},[t.restoreFromUpload?e("span",[e("b-spinner",{attrs:{small:""}}),t._v(" "+t._s(t.restoreFromUploadStatus)+" ")],1):t._e()]),t._l(t.files,(function(s){return s.uploading?e("div",{key:s.file_name,staticClass:"upload-item mb-1"},[e("div",{class:s.uploading?"":"hidden"},[t._v(" "+t._s(s.file_name)+" ")]),e("b-progress",{attrs:{max:"100",height:"15px"}},[e("b-progress-bar",{class:s.uploading?"":"hidden",attrs:{value:s.progress,label:`${s.progress.toFixed(2)}%`}})],1)],1):t._e()}))],2):t._e()]),t.files?.length>0&&""===t.restoreFromUploadStatus?e("b-button",{staticClass:"mt-2",attrs:{block:"",variant:"outline-primary"},on:{click:function(e){return t.startUpload()}}},[e("b-icon",{staticClass:"mr-1",attrs:{icon:"arrow-clockwise",scale:"1.1"}}),t._v("Restore ")],1):t._e()],1):t._e(),"Remote URL"===t.selectedRestoreOption?e("div",[e("div",[e("b-input-group",{staticClass:"mb-0"},[e("b-input-group-prepend",{attrs:{"is-text":""}},[e("b-icon",{attrs:{icon:"globe"}})],1),e("b-form-input",{attrs:{state:t.urlValidationState,type:"url",placeholder:"Enter the URL for your remote backup archive",required:""},model:{value:t.restoreRemoteUrl,callback:function(e){t.restoreRemoteUrl=e},expression:"restoreRemoteUrl"}}),e("b-input-group-append",[e("b-form-select",{staticStyle:{"border-radius":"0"},attrs:{options:t.components,disabled:t.remoteUrlComponents},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:null,disabled:""}},[t._v(" - Select component - ")])]},proxy:!0}],null,!1,2230972607),model:{value:t.restoreRemoteUrlComponent,callback:function(e){t.restoreRemoteUrlComponent=e},expression:"restoreRemoteUrlComponent"}})],1),e("b-input-group-append",[e("b-button",{attrs:{disabled:null===t.restoreRemoteUrlComponent,size:"sm",variant:"outline-primary"},on:{click:function(e){return t.addRemoteUrlItem(t.appName,t.restoreRemoteUrlComponent)}}},[e("b-icon",{attrs:{scale:"0.8",icon:"plus-lg"}})],1)],1)],1),e("b-form-invalid-feedback",{staticClass:"mb-2",attrs:{state:t.urlValidationState}},[t._v(" "+t._s(t.urlValidationMessage)+" ")])],1),e("b-alert",{staticClass:"mt-1 rounded-0 d-flex align-items-center justify-content-center",staticStyle:{"z-index":"1000"},attrs:{variant:t.alertVariant,solid:"true",dismissible:""},model:{value:t.showTopRemote,callback:function(e){t.showTopRemote=e},expression:"showTopRemote"}},[e("h5",{staticClass:"mt-1 mb-1"},[t._v(" "+t._s(t.alertMessage)+" ")])]),t.restoreRemoteUrlItems?.length>0?e("div",{staticClass:"d-flex justify-content-between mt-2"},[e("b-table",{staticClass:"b-table",attrs:{small:"",bordered:"",size:"sm",items:t.restoreRemoteUrlItems,fields:t.computedRestoreRemoteURLFields},scopedSlots:t._u([{key:"thead-top",fn:function(){return[e("b-tr",[e("b-td",{staticClass:"text-center",attrs:{colspan:"6",variant:"dark"}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.2",icon:"life-preserver"}}),e("b",[t._v("Restore Overview")])],1)],1)]},proxy:!0},{key:"cell(url)",fn:function(s){return[e("div",{staticClass:"table-cell no"},[t._v(" "+t._s(s.value)+" ")])]}},{key:"cell(component)",fn:function(s){return[e("div",{staticClass:"table-cell"},[t._v(" "+t._s(s.value)+" ")])]}},{key:"cell(file_size)",fn:function(s){return[e("div",{staticClass:"table-cell no-wrap"},[t._v(" "+t._s(t.addAndConvertFileSizes(s.value))+" ")])]}},{key:"cell(actions)",fn:function(s){return[e("div",{staticClass:"d-flex justify-content-center align-items-center"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Remove restore job",expression:"'Remove restore job'",modifiers:{hover:!0,top:!0}}],staticClass:"d-flex justify-content-center align-items-center",staticStyle:{width:"15px",height:"25px"},attrs:{variant:"outline-danger"},on:{click:function(e){return t.deleteItem(s.index,t.restoreRemoteUrlItems)}}},[e("b-icon",{staticClass:"d-flex justify-content-center align-items-center",attrs:{scale:"0.9",icon:"trash"}})],1)],1)]}},{key:"custom-foot",fn:function(){return[e("b-tr",[e("b-td",{staticClass:"text-right",attrs:{colspan:"2",variant:"dark"}}),e("b-td",{staticStyle:{"text-align":"center","vertical-align":"middle"},attrs:{colspan:"2",variant:"dark"}},[e("b-icon",{staticClass:"mr-1",attrs:{icon:"hdd",scale:"1.4"}}),t._v(t._s(t.addAndConvertFileSizes(t.restoreRemoteUrlItems))+" ")],1)],1)]},proxy:!0}],null,!1,2584524300)})],1):t._e(),e("div",{staticClass:"mt-2"},[!0===t.downloadingFromUrl?e("div",{staticClass:"mb-2 mt-2 w-100",staticStyle:{margin:"0 auto",padding:"12px",border:"1px solid #eaeaea","border-radius":"8px","box-shadow":"0 4px 8px rgba(0, 0, 0, 0.1)","text-align":"center"}},[e("h5",{staticStyle:{"font-size":"16px","margin-bottom":"5px"}},[!0===t.downloadingFromUrl?e("span",[e("b-spinner",{attrs:{small:""}}),t._v(" "+t._s(t.restoreFromRemoteURLStatus)+" ")],1):t._e()])]):t._e()]),t.restoreRemoteUrlItems?.length>0&&""===t.restoreFromRemoteURLStatus?e("b-button",{staticClass:"mt-2",attrs:{block:"",variant:"outline-primary"},on:{click:function(e){return t.restoreFromRemoteFile(t.appName)}}},[e("b-icon",{staticClass:"mr-1",attrs:{icon:"arrow-clockwise",scale:"1.1"}}),t._v("Restore ")],1):t._e()],1):t._e()],1)],1)],1)],1)]),e("b-tab",{attrs:{title:"Interactive Terminal",disabled:!t.isApplicationInstalledLocally}},[e("div",{staticClass:"text-center"},[e("div",[e("b-card-group",{attrs:{deck:""}},[e("b-card",{attrs:{"header-tag":"header"}},[e("div",{staticClass:"mb-2",staticStyle:{border:"1px solid #ccc","border-radius":"8px",height:"45px",padding:"12px","text-align":"left","line-height":"0px"}},[e("h5",[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.2",icon:"terminal"}}),t._v(" Browser-based Interactive Terminal")],1)]),e("div",{staticClass:"d-flex align-items-center"},[e("div",{staticClass:"mr-4"},[e("b-form-select",{attrs:{options:null,disabled:!!t.isVisible||t.isComposeSingle},model:{value:t.selectedApp,callback:function(e){t.selectedApp=e},expression:"selectedApp"}},[e("b-form-select-option",{attrs:{value:"null",disabled:""}},[t._v(" -- Please select component -- ")]),t._l(t.appSpecification.compose,(function(s){return e("b-form-select-option",{key:s.name,attrs:{value:s.name}},[t._v(" "+t._s(s.name)+" ")])}))],2)],1),e("div",{staticClass:"mr-4"},[e("b-form-select",{attrs:{options:t.options,disabled:!!t.isVisible},on:{input:t.onSelectChangeCmd},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{option:null,value:null,disabled:""}},[t._v(" -- Please select command -- ")])]},proxy:!0}]),model:{value:t.selectedCmd,callback:function(e){t.selectedCmd=e},expression:"selectedCmd"}})],1),t.isVisible||t.isConnecting?t._e():e("b-button",{staticClass:"col-2",attrs:{href:"#",variant:"outline-primary"},on:{click:function(e){return t.connectTerminal(t.selectedApp?`${t.selectedApp}_${t.appSpecification.name}`:t.appSpecification.name)}}},[t._v(" Connect ")]),t.isVisible?e("b-button",{staticClass:"col-2",attrs:{variant:"outline-danger"},on:{click:t.disconnectTerminal}},[t._v(" Disconnect ")]):t._e(),t.isConnecting?e("b-button",{staticClass:"col-2",attrs:{variant:"outline-primary",disabled:""}},[e("b-spinner",{attrs:{small:""}}),t._v(" Connecting... ")],1):t._e(),e("div",{staticClass:"ml-auto mt-1"},[e("div",{staticClass:"ml-auto d-flex"},[e("b-form-checkbox",{staticClass:"ml-4 mr-2 d-flex align-items-center justify-content-center",attrs:{switch:"",disabled:!!t.isVisible},on:{input:t.onSelectChangeUser},model:{value:t.enableUser,callback:function(e){t.enableUser=e},expression:"enableUser"}},[e("div",{staticClass:"d-flex",staticStyle:{"font-size":"14px"}},[t._v(" Custom User ")])]),e("b-form-checkbox",{staticClass:"ml-2 d-flex align-items-center justify-content-center",attrs:{switch:"",disabled:!!t.isVisible},on:{input:t.onSelectChangeEnv},model:{value:t.enableEnvironment,callback:function(e){t.enableEnvironment=e},expression:"enableEnvironment"}},[e("div",{staticClass:"d-flex",staticStyle:{"font-size":"14px"}},[t._v(" Enable Environment ")])])],1)])],1),"Custom"!==t.selectedCmd||t.isVisible?t._e():e("div",{staticClass:"d-flex mt-1"},[e("b-form-input",{style:{width:"100%"},attrs:{placeholder:"Enter custom command (string)"},model:{value:t.customValue,callback:function(e){t.customValue=e},expression:"customValue"}})],1),t.enableUser&&!t.isVisible?e("div",{staticClass:"d-flex mt-1"},[e("b-form-input",{style:{width:"100%"},attrs:{placeholder:"Enter user. Format is one of: user, user:group, uid, or uid:gid."},model:{value:t.userInputValue,callback:function(e){t.userInputValue=e},expression:"userInputValue"}})],1):t._e(),t.enableEnvironment&&!t.isVisible?e("div",{staticClass:"d-flex mt-1"},[e("b-form-input",{style:{width:"100%"},attrs:{placeholder:"Enter environment parameters (string)"},model:{value:t.envInputValue,callback:function(e){t.envInputValue=e},expression:"envInputValue"}})],1):t._e(),e("div",{staticClass:"d-flex align-items-center mb-1"},[t.isVisible?e("div",{staticClass:"mt-2"},["Custom"!==t.selectedCmd?[e("span",{staticStyle:{"font-weight":"bold"}},[t._v("Exec into container")]),e("span",{style:t.selectedOptionTextStyle},[t._v(t._s(t.selectedApp||t.appSpecification.name))]),e("span",{staticStyle:{"font-weight":"bold"}},[t._v("using command")]),e("span",{style:t.selectedOptionTextStyle},[t._v(t._s(t.selectedOptionText))]),e("span",{staticStyle:{"font-weight":"bold"}},[t._v("as")]),e("span",{style:t.selectedOptionTextStyle},[t._v(t._s(t.userInputValue?t.userInputValue:"default user"))])]:[e("span",{staticStyle:{"font-weight":"bold"}},[t._v("Exec into container")]),e("span",{style:t.selectedOptionTextStyle},[t._v(t._s(t.selectedApp||t.appSpecification.name))]),e("span",{staticStyle:{"font-weight":"bold"}},[t._v("using custom command")]),e("span",{style:t.selectedOptionTextStyle},[t._v(t._s(t.customValue))]),e("span",{staticStyle:{"font-weight":"bold"}},[t._v("as")]),e("span",{style:t.selectedOptionTextStyle},[t._v(t._s(t.userInputValue?t.userInputValue:"default user"))])]],2):t._e()])])],1),e("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],ref:"terminalElement",staticStyle:{"text-align":"left"}})],1)])]),e("b-tab",{attrs:{title:"Global App Management",disabled:""}}),e("b-tab",{attrs:{title:"Global Specifications",active:t.global}},[e("h2",{staticClass:"mt-2"},[t._v(" Global Specifications ")]),t.callBResponse.data?e("div",{staticStyle:{"text-align":"left"}},[e("b-card",{staticClass:"mx-2"},[e("list-entry",{attrs:{title:"Description",data:t.callBResponse.data.name}}),e("list-entry",{attrs:{title:"Description",data:t.callBResponse.data.description}}),e("list-entry",{attrs:{title:"Owner",data:t.callBResponse.data.owner}}),e("list-entry",{attrs:{title:"Hash",data:t.callBResponse.data.hash}}),t.callBResponse.data.version>=5?e("div",[e("list-entry",{attrs:{title:"Contacts",data:t.callBResponse.data.contacts.toString()||"none"}}),t.callBResponse.data.geolocation.length?e("div",t._l(t.callBResponse.data.geolocation,(function(s){return e("div",{key:s},[e("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(s)}})],1)})),0):e("div",[e("list-entry",{attrs:{title:"Continent",data:"All"}}),e("list-entry",{attrs:{title:"Country",data:"All"}}),e("list-entry",{attrs:{title:"Region",data:"All"}})],1)],1):t._e(),t.callBResponse.data.instances?e("list-entry",{attrs:{title:"Instances",data:t.callBResponse.data.instances.toString()}}):t._e(),e("list-entry",{attrs:{title:"Specifications version",number:t.callBResponse.data.version}}),e("list-entry",{attrs:{title:"Registered on Blockheight",number:t.callBResponse.data.height}}),t.callBResponse.data.hash&&64===t.callBResponse.data.hash.length?e("list-entry",{attrs:{title:"Expires on Blockheight",number:t.callBResponse.data.height+(t.callBResponse.data.expire||22e3)}}):t._e(),e("list-entry",{attrs:{title:"Period",data:t.getExpireLabel||(t.callBResponse.data.expire?`${t.callBResponse.data.expire} blocks`:"1 month")}}),e("list-entry",{attrs:{title:"Enterprise Nodes",data:t.callBResponse.data.nodes?t.callBResponse.data.nodes.toString():"Not scoped"}}),e("list-entry",{attrs:{title:"Static IP",data:t.callBResponse.data.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}}),e("h4",[t._v("Composition")]),t.callBResponse.data.version<=3?e("b-card",[e("list-entry",{attrs:{title:"Repository",data:t.callBResponse.data.repotag}}),e("list-entry",{attrs:{title:"Custom Domains",data:t.callBResponse.data.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomainsGlobal.toString()||"none"}}),e("list-entry",{attrs:{title:"Ports",data:t.callBResponse.data.ports.toString()||"none"}}),e("list-entry",{attrs:{title:"Container Ports",data:t.callBResponse.data.containerPorts.toString()||"none"}}),e("list-entry",{attrs:{title:"Container Data",data:t.callBResponse.data.containerData}}),e("list-entry",{attrs:{title:"Environment Parameters",data:t.callBResponse.data.enviromentParameters.length>0?t.callBResponse.data.enviromentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:t.callBResponse.data.commands.length>0?t.callBResponse.data.commands.toString():"none"}}),t.callBResponse.data.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${t.callBResponse.data.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${t.callBResponse.data.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${t.callBResponse.data.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${t.callBResponse.data.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${t.callBResponse.data.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${t.callBResponse.data.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${t.callBResponse.data.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${t.callBResponse.data.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${t.callBResponse.data.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${t.callBResponse.data.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${t.callBResponse.data.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${t.callBResponse.data.hdd} GB`}})],1)],1):t._e(),t._l(t.callBResponse.data.compose,(function(s,a){return t.callBResponse.data.version>=4?e("b-card",{key:a},[e("b-card-title",[t._v(" Component "+t._s(s.name)+" ")]),e("list-entry",{attrs:{title:"Name",data:s.name}}),e("list-entry",{attrs:{title:"Description",data:s.description}}),e("list-entry",{attrs:{title:"Repository",data:s.repotag}}),e("list-entry",{attrs:{title:"Repository Authentication",data:s.repoauth?"Content Encrypted":"Public"}}),e("list-entry",{attrs:{title:"Custom Domains",data:s.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(s.ports,t.callBResponse.data.name,a).toString()||"none"}}),e("list-entry",{attrs:{title:"Ports",data:s.ports.toString()||"none"}}),e("list-entry",{attrs:{title:"Container Ports",data:s.containerPorts.toString()||"none"}}),e("list-entry",{attrs:{title:"Container Data",data:s.containerData}}),e("list-entry",{attrs:{title:"Environment Parameters",data:s.environmentParameters.length>0?s.environmentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:s.commands.length>0?s.commands.toString():"none"}}),e("list-entry",{attrs:{title:"Secret Environment Parameters",data:s.secrets?"Content Encrypted":"none"}}),s.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${s.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${s.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${s.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${s.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${s.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${s.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${s.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${s.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${s.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${s.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${s.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${s.hdd} GB`}})],1)],1):t._e()}))],2)],1):"error"===t.callBResponse.status?e("div",[t._v(" Global specifications not found! ")]):e("div",[t._v(" Global Specifications loading... ")])]),e("b-tab",{attrs:{title:"Global Control"}},[t.globalZelidAuthorized?e("div",[e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Control"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" "+t._s(t.isAppOwner?"General options to control all instances of your application":"General options to control instances of selected application running on all nodes that you own")+" ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"start-app-global",variant:"success","aria-label":"Start App"}},[t._v(" Start App ")]),e("confirm-dialog",{attrs:{target:"start-app-global","confirm-button":"Start App"},on:{confirm:function(e){return t.startAppGlobally(t.appName)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"stop-app-global",variant:"success","aria-label":"Stop App"}},[t._v(" Stop App ")]),e("confirm-dialog",{attrs:{target:"stop-app-global","confirm-button":"Stop App"},on:{confirm:function(e){return t.stopAppGlobally(t.appName)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"restart-app-global",variant:"success","aria-label":"Restart App"}},[t._v(" Restart App ")]),e("confirm-dialog",{attrs:{target:"restart-app-global","confirm-button":"Restart App"},on:{confirm:function(e){return t.restartAppGlobally(t.appName)}}})],1)],1)],1),e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Pause"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" "+t._s(t.isAppOwner?"The Pause command suspends all processes of all instances of your app":"The Pause command suspends all processes of selected application on all of nodes that you own")+" ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"pause-app-global",variant:"success","aria-label":"Pause App"}},[t._v(" Pause App ")]),e("confirm-dialog",{attrs:{target:"pause-app-global","confirm-button":"Pause App"},on:{confirm:function(e){return t.pauseAppGlobally(t.appName)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"unpause-app-global",variant:"success","aria-label":"Unpause App"}},[t._v(" Unpause App ")]),e("confirm-dialog",{attrs:{target:"unpause-app-global","confirm-button":"Unpause App"},on:{confirm:function(e){return t.unpauseAppGlobally(t.appName)}}})],1)],1)],1)],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Redeploy"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" "+t._s(t.isAppOwner?"Redeployes all instances of your application. Hard redeploy removes persistant data storage.":"Redeployes instances of selected application running on all of your nodes. Hard redeploy removes persistant data storage.")+" ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"redeploy-app-soft-global",variant:"success","aria-label":"Soft Redeploy App"}},[t._v(" Soft Redeploy App ")]),e("confirm-dialog",{attrs:{target:"redeploy-app-soft-global","confirm-button":"Redeploy"},on:{confirm:function(e){return t.redeployAppSoftGlobally(t.appName)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"redeploy-app-hard-global",variant:"success","aria-label":"Hard Redeploy App"}},[t._v(" Hard Redeploy App ")]),e("confirm-dialog",{attrs:{target:"redeploy-app-hard-global","confirm-button":"Redeploy"},on:{confirm:function(e){return t.redeployAppHardGlobally(t.appName)}}})],1)],1)],1),e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Reinstall"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" "+t._s(t.isAppOwner?"Removes all instances of your App forcing an installation on different nodes.":"Removes all instances of selected App on all of your nodes forcing installation on different nodes.")+" ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"remove-app-global",variant:"success","aria-label":"Reinstall App"}},[t._v(" Reinstall App ")]),e("confirm-dialog",{attrs:{target:"remove-app-global","confirm-button":"Reinstall App"},on:{confirm:function(e){return t.removeAppGlobally(t.appName)}}})],1)],1)],1)],1)],1):e("div",[t._v(" Global management session expired. Please log out and back into FluxOS. ")])]),e("b-tab",{attrs:{title:"Running Instances"}},[t.masterSlaveApp?e("div",[e("b-card",{attrs:{title:"Primary/Standby App Information"}},[e("list-entry",{attrs:{title:"Current IP selected as Primary running your application",data:t.masterIP}})],1)],1):t._e(),e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.instances.pageOptions},model:{value:t.instances.perPage,callback:function(e){t.$set(t.instances,"perPage",e)},expression:"instances.perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.instances.filter,callback:function(e){t.$set(t.instances,"filter",e)},expression:"instances.filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.instances.filter},on:{click:function(e){t.instances.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"app-instances-table",attrs:{striped:"",hover:"",responsive:"","per-page":t.instances.perPage,"current-page":t.instances.currentPage,items:t.instances.data,fields:t.instances.fields,"sort-by":t.instances.sortBy,"sort-desc":t.instances.sortDesc,"sort-direction":t.instances.sortDirection,filter:t.instances.filter,"filter-included-fields":t.instances.filterOn,"show-empty":"","empty-text":`No instances of ${t.appName}`},on:{"update:sortBy":function(e){return t.$set(t.instances,"sortBy",e)},"update:sort-by":function(e){return t.$set(t.instances,"sortBy",e)},"update:sortDesc":function(e){return t.$set(t.instances,"sortDesc",e)},"update:sort-desc":function(e){return t.$set(t.instances,"sortDesc",e)}},scopedSlots:t._u([{key:"cell(show_details)",fn:function(s){return[e("a",{on:{click:s.toggleDetails}},[s.detailsShowing?t._e():e("v-icon",{attrs:{name:"chevron-down"}}),s.detailsShowing?e("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(s){return[e("b-card",{staticClass:"mx-2"},[s.item.broadcastedAt?e("list-entry",{attrs:{title:"Broadcast",data:new Date(s.item.broadcastedAt).toLocaleString("en-GB",t.timeoptions.shortDate)}}):t._e(),s.item.expireAt?e("list-entry",{attrs:{title:"Expires",data:new Date(s.item.expireAt).toLocaleString("en-GB",t.timeoptions.shortDate)}}):t._e()],1)]}},{key:"cell(visit)",fn:function(s){return[e("div",{staticClass:"button-cell"},[e("b-button",{staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:function(e){t.openApp(s.item.name,s.item.ip.split(":")[0],t.getProperPort())}}},[t._v(" Visit App ")]),e("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"danger"},on:{click:function(e){t.openNodeFluxOS(s.item.ip.split(":")[0],s.item.ip.split(":")[1]?+s.item.ip.split(":")[1]-1:16126)}}},[t._v(" Visit FluxNode ")])],1)]}}])})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.instances.totalRows,"per-page":t.instances.perPage,align:"center",size:"sm"},model:{value:t.instances.currentPage,callback:function(e){t.$set(t.instances,"currentPage",e)},expression:"instances.currentPage"}}),e("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.instances.totalRows))])],1)],1)],1),e("b-tab",{attrs:{title:"Update Specifications",disabled:!t.isAppOwner}},[t.fluxCommunication?t._e():e("div",{staticClass:"text-danger"},[t._v(" Warning: Connected Flux is not communicating properly with Flux network ")]),e("h2",{staticClass:"mb-2"},[t._v(" Update Application Specifications ")]),t.appUpdateSpecification.version>=4?e("div",[e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Details"}},[e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Version","label-for":"version"}},[e("b-form-input",{attrs:{id:"version",placeholder:t.appUpdateSpecification.version.toString(),readonly:""},model:{value:t.appUpdateSpecification.version,callback:function(e){t.$set(t.appUpdateSpecification,"version",e)},expression:"appUpdateSpecification.version"}})],1),e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Name","label-for":"name"}},[e("b-form-input",{attrs:{id:"name",placeholder:"Application Name",readonly:""},model:{value:t.appUpdateSpecification.name,callback:function(e){t.$set(t.appUpdateSpecification,"name",e)},expression:"appUpdateSpecification.name"}})],1),e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Desc.","label-for":"desc"}},[e("b-form-textarea",{attrs:{id:"desc",placeholder:"Description",rows:"3"},model:{value:t.appUpdateSpecification.description,callback:function(e){t.$set(t.appUpdateSpecification,"description",e)},expression:"appUpdateSpecification.description"}})],1),e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Owner","label-for":"owner"}},[e("b-form-input",{attrs:{id:"owner",placeholder:"ZelID of Application Owner"},model:{value:t.appUpdateSpecification.owner,callback:function(e){t.$set(t.appUpdateSpecification,"owner",e)},expression:"appUpdateSpecification.owner"}})],1),t.appUpdateSpecification.version>=5&&!t.isPrivateApp?e("div",[e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-1 col-form-label"},[t._v(" Contacts "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of emails Contacts to get notifications ex. app about to expire, app spawns. Contacts are also PUBLIC information.",expression:"'Array of strings of emails Contacts to get notifications ex. app about to expire, app spawns. Contacts are also PUBLIC information.'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"contacs"},model:{value:t.appUpdateSpecification.contacts,callback:function(e){t.$set(t.appUpdateSpecification,"contacts",e)},expression:"appUpdateSpecification.contacts"}})],1),e("div",{staticClass:"col-0"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Uploads Contacts to Flux Storage. Contacts will be replaced with a link to Flux Storage instead. This increases maximum allowed contacts while adding enhanced privacy - nobody except FluxOS Team maintaining notifications system has access to contacts.",expression:"\n 'Uploads Contacts to Flux Storage. Contacts will be replaced with a link to Flux Storage instead. This increases maximum allowed contacts while adding enhanced privacy - nobody except FluxOS Team maintaining notifications system has access to contacts.'\n ",modifiers:{hover:!0,top:!0}}],attrs:{id:"upload-contacts",variant:"outline-primary"}},[e("v-icon",{attrs:{name:"cloud-upload-alt"}})],1),e("confirm-dialog",{attrs:{target:"upload-contacts","confirm-button":"Upload Contacts",width:600},on:{confirm:function(e){return t.uploadContactsToFluxStorage()}}})],1)])]):t._e(),t.appUpdateSpecification.version>=5&&!t.isPrivateApp?e("div",[e("h4",[t._v("Allowed Geolocation")]),t._l(t.numberOfGeolocations,(function(s){return e("div",{key:`${s}pos`},[e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Continent - ${s}`,"label-for":"Continent"}},[e("b-form-select",{attrs:{id:"Continent",options:t.continentsOptions(!1)},on:{change:function(e){return t.adjustMaxInstancesPossible()}},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:void 0,disabled:""}},[t._v(" -- Select to restrict Continent -- ")])]},proxy:!0}],null,!0),model:{value:t.allowedGeolocations[`selectedContinent${s}`],callback:function(e){t.$set(t.allowedGeolocations,`selectedContinent${s}`,e)},expression:"allowedGeolocations[`selectedContinent${n}`]"}})],1),t.allowedGeolocations[`selectedContinent${s}`]&&"ALL"!==t.allowedGeolocations[`selectedContinent${s}`]?e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Country - ${s}`,"label-for":"Country"}},[e("b-form-select",{attrs:{id:"country",options:t.countriesOptions(t.allowedGeolocations[`selectedContinent${s}`],!1)},on:{change:function(e){return t.adjustMaxInstancesPossible()}},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:void 0,disabled:""}},[t._v(" -- Select to restrict Country -- ")])]},proxy:!0}],null,!0),model:{value:t.allowedGeolocations[`selectedCountry${s}`],callback:function(e){t.$set(t.allowedGeolocations,`selectedCountry${s}`,e)},expression:"allowedGeolocations[`selectedCountry${n}`]"}})],1):t._e(),t.allowedGeolocations[`selectedContinent${s}`]&&"ALL"!==t.allowedGeolocations[`selectedContinent${s}`]&&t.allowedGeolocations[`selectedCountry${s}`]&&"ALL"!==t.allowedGeolocations[`selectedCountry${s}`]?e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Region - ${s}`,"label-for":"Region"}},[e("b-form-select",{attrs:{id:"Region",options:t.regionsOptions(t.allowedGeolocations[`selectedContinent${s}`],t.allowedGeolocations[`selectedCountry${s}`],!1)},on:{change:function(e){return t.adjustMaxInstancesPossible()}},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:void 0,disabled:""}},[t._v(" -- Select to restrict Region -- ")])]},proxy:!0}],null,!0),model:{value:t.allowedGeolocations[`selectedRegion${s}`],callback:function(e){t.$set(t.allowedGeolocations,`selectedRegion${s}`,e)},expression:"allowedGeolocations[`selectedRegion${n}`]"}})],1):t._e()],1)})),e("div",{staticClass:"text-center"},[t.numberOfGeolocations>1?e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:"Remove Allowed Geolocation Restriction",expression:"'Remove Allowed Geolocation Restriction'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"m-1",attrs:{variant:"outline-secondary",size:"sm"},on:{click:function(e){t.numberOfGeolocations=t.numberOfGeolocations-1,t.adjustMaxInstancesPossible()}}},[e("v-icon",{attrs:{name:"minus"}})],1):t._e(),t.numberOfGeolocations<5?e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:"Add Allowed Geolocation Restriction",expression:"'Add Allowed Geolocation Restriction'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"m-1",attrs:{variant:"outline-secondary",size:"sm"},on:{click:function(e){t.numberOfGeolocations=t.numberOfGeolocations+1,t.adjustMaxInstancesPossible()}}},[e("v-icon",{attrs:{name:"plus"}})],1):t._e()],1)],2):t._e(),e("br"),e("br"),t.appUpdateSpecification.version>=5?e("div",[e("h4",[t._v("Forbidden Geolocation")]),t._l(t.numberOfNegativeGeolocations,(function(s){return e("div",{key:`${s}posB`},[e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Continent - ${s}`,"label-for":"Continent"}},[e("b-form-select",{attrs:{id:"Continent",options:t.continentsOptions(!0)},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:void 0,disabled:""}},[t._v(" -- Select to ban Continent -- ")])]},proxy:!0}],null,!0),model:{value:t.forbiddenGeolocations[`selectedContinent${s}`],callback:function(e){t.$set(t.forbiddenGeolocations,`selectedContinent${s}`,e)},expression:"forbiddenGeolocations[`selectedContinent${n}`]"}})],1),t.forbiddenGeolocations[`selectedContinent${s}`]&&"NONE"!==t.forbiddenGeolocations[`selectedContinent${s}`]?e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Country - ${s}`,"label-for":"Country"}},[e("b-form-select",{attrs:{id:"country",options:t.countriesOptions(t.forbiddenGeolocations[`selectedContinent${s}`],!0)},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:void 0,disabled:""}},[t._v(" -- Select to ban Country -- ")])]},proxy:!0}],null,!0),model:{value:t.forbiddenGeolocations[`selectedCountry${s}`],callback:function(e){t.$set(t.forbiddenGeolocations,`selectedCountry${s}`,e)},expression:"forbiddenGeolocations[`selectedCountry${n}`]"}})],1):t._e(),t.forbiddenGeolocations[`selectedContinent${s}`]&&"NONE"!==t.forbiddenGeolocations[`selectedContinent${s}`]&&t.forbiddenGeolocations[`selectedCountry${s}`]&&"ALL"!==t.forbiddenGeolocations[`selectedCountry${s}`]?e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Region - ${s}`,"label-for":"Region"}},[e("b-form-select",{attrs:{id:"Region",options:t.regionsOptions(t.forbiddenGeolocations[`selectedContinent${s}`],t.forbiddenGeolocations[`selectedCountry${s}`],!0)},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:void 0,disabled:""}},[t._v(" -- Select to ban Region -- ")])]},proxy:!0}],null,!0),model:{value:t.forbiddenGeolocations[`selectedRegion${s}`],callback:function(e){t.$set(t.forbiddenGeolocations,`selectedRegion${s}`,e)},expression:"forbiddenGeolocations[`selectedRegion${n}`]"}})],1):t._e()],1)})),e("div",{staticClass:"text-center"},[t.numberOfNegativeGeolocations>1?e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:"Remove Forbidden Geolocation Restriction",expression:"'Remove Forbidden Geolocation Restriction'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"m-1",attrs:{variant:"outline-secondary",size:"sm"},on:{click:function(e){t.numberOfNegativeGeolocations=t.numberOfNegativeGeolocations-1}}},[e("v-icon",{attrs:{name:"minus"}})],1):t._e(),t.numberOfNegativeGeolocations<5?e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:"Add Forbidden Geolocation Restriction",expression:"'Add Forbidden Geolocation Restriction'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"m-1",attrs:{variant:"outline-secondary",size:"sm"},on:{click:function(e){t.numberOfNegativeGeolocations=t.numberOfNegativeGeolocations+1}}},[e("v-icon",{attrs:{name:"plus"}})],1):t._e()],1)],2):t._e(),e("br"),t.appUpdateSpecification.version>=3?e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Instances","label-for":"instances"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(t.appUpdateSpecification.instances)+" ")]),e("b-form-input",{attrs:{id:"instances",placeholder:"Minimum number of application instances to be spawned",type:"range",min:"3",max:t.maxInstances,step:"1"},model:{value:t.appUpdateSpecification.instances,callback:function(e){t.$set(t.appUpdateSpecification,"instances",e)},expression:"appUpdateSpecification.instances"}})],1):t._e(),e("br"),t.appUpdateSpecification.version>=6?e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Period","label-for":"period"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(t.getExpireLabel||(t.appUpdateSpecification.expire?`${t.appUpdateSpecification.expire} blocks`:"1 month"))+" ")]),e("b-form-input",{attrs:{id:"period",placeholder:"How long an application will live on Flux network",type:"range",min:0,max:5,step:1},model:{value:t.expirePosition,callback:function(e){t.expirePosition=e},expression:"expirePosition"}})],1):t._e(),e("br"),t.appUpdateSpecification.version>=7?e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-form-label"},[t._v(" Static IP "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Select if your application strictly requires static IP address",expression:"'Select if your application strictly requires static IP address'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-checkbox",{staticClass:"custom-control-primary inline",attrs:{id:"staticip",switch:""},model:{value:t.appUpdateSpecification.staticip,callback:function(e){t.$set(t.appUpdateSpecification,"staticip",e)},expression:"appUpdateSpecification.staticip"}})],1)]):t._e(),e("br"),t.appUpdateSpecification.version>=7?e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-form-label"},[t._v(" Enterprise Application "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Select if your application requires private image, secrets or if you want to target specific nodes on which application can run. Geolocation targetting is not possible in this case.",expression:"'Select if your application requires private image, secrets or if you want to target specific nodes on which application can run. Geolocation targetting is not possible in this case.'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-checkbox",{staticClass:"custom-control-primary inline",attrs:{id:"enterpriseapp",switch:""},model:{value:t.isPrivateApp,callback:function(e){t.isPrivateApp=e},expression:"isPrivateApp"}})],1)]):t._e()],1)],1)],1),t._l(t.appUpdateSpecification.compose,(function(s,a){return e("b-card",{key:a},[e("b-card-title",[t._v(" Component "+t._s(s.name)+" ")]),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"12",xl:"6"}},[e("b-card",[e("b-card-title",[t._v(" General ")]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Name "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Name of Application Component",expression:"'Name of Application Component'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:`repo-${s.name}_${t.appUpdateSpecification.name}`,placeholder:"Component name",readonly:""},model:{value:s.name,callback:function(e){t.$set(s,"name",e)},expression:"component.name"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Description "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Description of Application Component",expression:"'Description of Application Component'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:`repo-${s.name}_${t.appUpdateSpecification.name}`,placeholder:"Component description"},model:{value:s.description,callback:function(e){t.$set(s,"description",e)},expression:"component.description"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Repository "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Docker image namespace/repository:tag for component",expression:"'Docker image namespace/repository:tag for component'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:`repo-${s.name}_${t.appUpdateSpecification.name}`,placeholder:"Docker image namespace/repository:tag"},model:{value:s.repotag,callback:function(e){t.$set(s,"repotag",e)},expression:"component.repotag"}})],1)]),t.appUpdateSpecification.version>=7&&t.isPrivateApp?e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Repository Authentication "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Docker image authentication for private images in the format of username:apikey. This field will be encrypted and accessible to selected enterprise nodes only.",expression:"'Docker image authentication for private images in the format of username:apikey. This field will be encrypted and accessible to selected enterprise nodes only.'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:`repoauth-${s.name}_${t.appUpdateSpecification.name}`,placeholder:"Docker authentication username:apikey"},model:{value:s.repoauth,callback:function(e){t.$set(s,"repoauth",e)},expression:"component.repoauth"}})],1)]):t._e(),e("br"),e("b-card-title",[t._v(" Connectivity ")]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Ports "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of Ports on which application will be available",expression:"'Array of Ports on which application will be available'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:`ports-${s.name}_${t.appUpdateSpecification.name}`},model:{value:s.ports,callback:function(e){t.$set(s,"ports",e)},expression:"component.ports"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Domains "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Domains managed by Flux Domain Manager (FDM). Length must correspond to available ports. Use empty strings for no domains",expression:"'Array of strings of Domains managed by Flux Domain Manager (FDM). Length must correspond to available ports. Use empty strings for no domains'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:`domains-${s.name}_${t.appUpdateSpecification.name}`},model:{value:s.domains,callback:function(e){t.$set(s,"domains",e)},expression:"component.domains"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Cont. Ports "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Container Ports - Array of ports which your container has",expression:"'Container Ports - Array of ports which your container has'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:`containerPorts-${s.name}_${t.appUpdateSpecification.name}`},model:{value:s.containerPorts,callback:function(e){t.$set(s,"containerPorts",e)},expression:"component.containerPorts"}})],1)])],1)],1),e("b-col",{attrs:{xs:"12",xl:"6"}},[e("b-card",[e("b-card-title",[t._v(" Environment ")]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Environment "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Environmental Parameters",expression:"'Array of strings of Environmental Parameters'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:`environmentParameters-${s.name}_${t.appUpdateSpecification.name}`},model:{value:s.environmentParameters,callback:function(e){t.$set(s,"environmentParameters",e)},expression:"component.environmentParameters"}})],1),e("div",{staticClass:"col-0"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Uploads Enviornment to Flux Storage. Environment parameters will be replaced with a link to Flux Storage instead. This increases maximum allowed size of Env. parameters while adding basic privacy - instead of parameters, link to Flux Storage will be visible.",expression:"\n 'Uploads Enviornment to Flux Storage. Environment parameters will be replaced with a link to Flux Storage instead. This increases maximum allowed size of Env. parameters while adding basic privacy - instead of parameters, link to Flux Storage will be visible.'\n ",modifiers:{hover:!0,top:!0}}],attrs:{id:"upload-env",variant:"outline-primary"}},[e("v-icon",{attrs:{name:"cloud-upload-alt"}})],1),e("confirm-dialog",{attrs:{target:"upload-env","confirm-button":"Upload Environment Parameters",width:600},on:{confirm:function(e){return t.uploadEnvToFluxStorage(a)}}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Commands "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Commands",expression:"'Array of strings of Commands'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:`commands-${s.name}_${t.appUpdateSpecification.name}`},model:{value:s.commands,callback:function(e){t.$set(s,"commands",e)},expression:"component.commands"}})],1),e("div",{staticClass:"col-0"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Uploads Commands to Flux Storage. Commands will be replaced with a link to Flux Storage instead. This increases maximum allowed size of Commands while adding basic privacy - instead of commands, link to Flux Storage will be visible.",expression:"'Uploads Commands to Flux Storage. Commands will be replaced with a link to Flux Storage instead. This increases maximum allowed size of Commands while adding basic privacy - instead of commands, link to Flux Storage will be visible.'",modifiers:{hover:!0,top:!0}}],attrs:{id:"upload-cmd",variant:"outline-primary"}},[e("v-icon",{attrs:{name:"cloud-upload-alt"}})],1),e("confirm-dialog",{attrs:{target:"upload-cmd","confirm-button":"Upload Commands",width:600},on:{confirm:function(e){return t.uploadCmdToFluxStorage(a)}}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Cont. Data "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Data folder that is shared by application to App volume. Prepend with r: for synced data between instances. Eg. r:/data",expression:"'Data folder that is shared by application to App volume. Prepend with r: for synced data between instances. Eg. r:/data'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:`containerData-${s.name}_${t.appUpdateSpecification.name}`},model:{value:s.containerData,callback:function(e){t.$set(s,"containerData",e)},expression:"component.containerData"}})],1)]),t.appUpdateSpecification.version>=7&&t.isPrivateApp?e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Secrets "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Secret Environmental Parameters. This will be encrypted and accessible to selected Enterprise Nodes only",expression:"'Array of strings of Secret Environmental Parameters. This will be encrypted and accessible to selected Enterprise Nodes only'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:`secrets-${s.name}_${t.appUpdateSpecification.name}`,placeholder:"[]"},model:{value:s.secrets,callback:function(e){t.$set(s,"secrets",e)},expression:"component.secrets"}})],1)]):t._e(),e("br"),e("b-card-title",[t._v(" Resources    "),e("h6",{staticClass:"inline text-small"},[t._v(" Tiered: "),e("b-form-checkbox",{staticClass:"custom-control-primary inline",attrs:{id:"tiered",switch:""},model:{value:s.tiered,callback:function(e){t.$set(s,"tiered",e)},expression:"component.tiered"}})],1)]),s.tiered?t._e():e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"2",label:"CPU","label-for":"cpu"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(s.cpu)+" ")]),e("b-form-input",{attrs:{id:`cpu-${s.name}_${t.appUpdateSpecification.name}`,placeholder:"CPU cores to use by default",type:"range",min:"0.1",max:"15",step:"0.1"},model:{value:s.cpu,callback:function(e){t.$set(s,"cpu",e)},expression:"component.cpu"}})],1),s.tiered?t._e():e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"2",label:"RAM","label-for":"ram"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(s.ram)+" ")]),e("b-form-input",{attrs:{id:`ram-${s.name}_${t.appUpdateSpecification.name}`,placeholder:"RAM in MB value to use by default",type:"range",min:"100",max:"59000",step:"100"},model:{value:s.ram,callback:function(e){t.$set(s,"ram",e)},expression:"component.ram"}})],1),s.tiered?t._e():e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"2",label:"SSD","label-for":"ssd"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(s.hdd)+" ")]),e("b-form-input",{attrs:{id:`ssd-${s.name}_${t.appUpdateSpecification.name}`,placeholder:"SSD in GB value to use by default",type:"range",min:"1",max:"820",step:"1"},model:{value:s.hdd,callback:function(e){t.$set(s,"hdd",e)},expression:"component.hdd"}})],1)],1)],1)],1),s.tiered?e("b-row",[e("b-col",{attrs:{xs:"12",md:"6",lg:"4"}},[e("b-card",{attrs:{title:"Cumulus"}},[e("div",[t._v(" CPU: "+t._s(s.cpubasic)+" ")]),e("b-form-input",{attrs:{type:"range",min:"0.1",max:"3",step:"0.1"},model:{value:s.cpubasic,callback:function(e){t.$set(s,"cpubasic",e)},expression:"component.cpubasic"}}),e("div",[t._v(" RAM: "+t._s(s.rambasic)+" ")]),e("b-form-input",{attrs:{type:"range",min:"100",max:"5000",step:"100"},model:{value:s.rambasic,callback:function(e){t.$set(s,"rambasic",e)},expression:"component.rambasic"}}),e("div",[t._v(" SSD: "+t._s(s.hddbasic)+" ")]),e("b-form-input",{attrs:{type:"range",min:"1",max:"180",step:"1"},model:{value:s.hddbasic,callback:function(e){t.$set(s,"hddbasic",e)},expression:"component.hddbasic"}})],1)],1),e("b-col",{attrs:{xs:"12",md:"6",lg:"4"}},[e("b-card",{attrs:{title:"Nimbus"}},[e("div",[t._v(" CPU: "+t._s(s.cpusuper)+" ")]),e("b-form-input",{attrs:{type:"range",min:"0.1",max:"7",step:"0.1"},model:{value:s.cpusuper,callback:function(e){t.$set(s,"cpusuper",e)},expression:"component.cpusuper"}}),e("div",[t._v(" RAM: "+t._s(s.ramsuper)+" ")]),e("b-form-input",{attrs:{type:"range",min:"100",max:"28000",step:"100"},model:{value:s.ramsuper,callback:function(e){t.$set(s,"ramsuper",e)},expression:"component.ramsuper"}}),e("div",[t._v(" SSD: "+t._s(s.hddsuper)+" ")]),e("b-form-input",{attrs:{type:"range",min:"1",max:"400",step:"1"},model:{value:s.hddsuper,callback:function(e){t.$set(s,"hddsuper",e)},expression:"component.hddsuper"}})],1)],1),e("b-col",{attrs:{xs:"12",lg:"4"}},[e("b-card",{attrs:{title:"Stratus"}},[e("div",[t._v(" CPU: "+t._s(s.cpubamf)+" ")]),e("b-form-input",{attrs:{type:"range",min:"0.1",max:"15",step:"0.1"},model:{value:s.cpubamf,callback:function(e){t.$set(s,"cpubamf",e)},expression:"component.cpubamf"}}),e("div",[t._v(" RAM: "+t._s(s.rambamf)+" ")]),e("b-form-input",{attrs:{type:"range",min:"100",max:"59000",step:"100"},model:{value:s.rambamf,callback:function(e){t.$set(s,"rambamf",e)},expression:"component.rambamf"}}),e("div",[t._v(" SSD: "+t._s(s.hddbamf)+" ")]),e("b-form-input",{attrs:{type:"range",min:"1",max:"820",step:"1"},model:{value:s.hddbamf,callback:function(e){t.$set(s,"hddbamf",e)},expression:"component.hddbamf"}})],1)],1)],1):t._e()],1)})),t.appUpdateSpecification.version>=7&&t.isPrivateApp?e("b-card",{attrs:{title:"Enterprise Nodes"}},[t._v(" Only these selected enterprise nodes will be able to run your application and are used for encryption. Only these nodes are able to access your private image and secrets."),e("br"),t._v(" Changing the node list after the message is computed and encrypted will result in a failure to run. Secrets and Repository Authentication would need to be adjusted again."),e("br"),t._v(" The score determines how reputable a node and node operator are. The higher the score, the higher the reputation on the network."),e("br"),t._v(" Secrets and Repository Authentication need to be set again if this node list changes."),e("br"),t._v(" The more nodes can run your application, the more stable it is. On the other hand, more nodes will have access to your private data!"),e("br"),e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.entNodesTable.pageOptions},model:{value:t.entNodesTable.perPage,callback:function(e){t.$set(t.entNodesTable,"perPage",e)},expression:"entNodesTable.perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.entNodesTable.filter,callback:function(e){t.$set(t.entNodesTable,"filter",e)},expression:"entNodesTable.filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.entNodesTable.filter},on:{click:function(e){t.entNodesTable.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"app-enterprise-nodes-table",attrs:{striped:"",hover:"",responsive:"","per-page":t.entNodesTable.perPage,"current-page":t.entNodesTable.currentPage,items:t.selectedEnterpriseNodes,fields:t.entNodesTable.fields,"sort-by":t.entNodesTable.sortBy,"sort-desc":t.entNodesTable.sortDesc,"sort-direction":t.entNodesTable.sortDirection,filter:t.entNodesTable.filter,"filter-included-fields":t.entNodesTable.filterOn,"show-empty":"","empty-text":"No Enterprise Nodes selected"},on:{"update:sortBy":function(e){return t.$set(t.entNodesTable,"sortBy",e)},"update:sort-by":function(e){return t.$set(t.entNodesTable,"sortBy",e)},"update:sortDesc":function(e){return t.$set(t.entNodesTable,"sortDesc",e)},"update:sort-desc":function(e){return t.$set(t.entNodesTable,"sortDesc",e)}},scopedSlots:t._u([{key:"cell(show_details)",fn:function(s){return[e("a",{on:{click:s.toggleDetails}},[s.detailsShowing?t._e():e("v-icon",{attrs:{name:"chevron-down"}}),s.detailsShowing?e("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(s){return[e("b-card",{staticClass:"mx-2"},[s.item.ip?e("list-entry",{attrs:{title:"IP Address",data:s.item.ip}}):t._e(),e("list-entry",{attrs:{title:"Public Key",data:s.item.pubkey}}),e("list-entry",{attrs:{title:"Node Address",data:s.item.payment_address}}),e("list-entry",{attrs:{title:"Collateral",data:`${s.item.txhash}:${s.item.outidx}`}}),e("list-entry",{attrs:{title:"Tier",data:s.item.tier}}),e("list-entry",{attrs:{title:"Overall Score",data:s.item.score.toString()}}),e("list-entry",{attrs:{title:"Collateral Score",data:s.item.collateralPoints.toString()}}),e("list-entry",{attrs:{title:"Maturity Score",data:s.item.maturityPoints.toString()}}),e("list-entry",{attrs:{title:"Public Key Score",data:s.item.pubKeyPoints.toString()}}),e("list-entry",{attrs:{title:"Enterprise Apps Assigned",data:s.item.enterpriseApps.toString()}}),e("div",[e("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"primary"},on:{click:function(e){t.openNodeFluxOS(s.item.ip.split(":")[0],s.item.ip.split(":")[1]?+s.item.ip.split(":")[1]-1:16126)}}},[t._v(" Visit FluxNode ")])],1)],1)]}},{key:"cell(ip)",fn:function(e){return[t._v(" "+t._s(e.item.ip)+" ")]}},{key:"cell(payment_address)",fn:function(e){return[t._v(" "+t._s(e.item.payment_address.slice(0,8))+"..."+t._s(e.item.payment_address.slice(e.item.payment_address.length-8,e.item.payment_address.length))+" ")]}},{key:"cell(tier)",fn:function(e){return[t._v(" "+t._s(e.item.tier)+" ")]}},{key:"cell(score)",fn:function(e){return[t._v(" "+t._s(e.item.score)+" ")]}},{key:"cell(actions)",fn:function(s){return[e("b-button",{staticClass:"mr-1 mb-1",attrs:{id:`remove-${s.item.ip}`,size:"sm",variant:"danger"}},[t._v(" Remove ")]),e("confirm-dialog",{attrs:{target:`remove-${s.item.ip}`,"confirm-button":"Remove FluxNode"},on:{confirm:function(e){return t.removeFluxNode(s.item.ip)}}}),e("b-button",{staticClass:"mr-1 mb-1",attrs:{size:"sm",variant:"primary"},on:{click:function(e){t.openNodeFluxOS(s.item.ip.split(":")[0],s.item.ip.split(":")[1]?+s.item.ip.split(":")[1]-1:16126)}}},[t._v(" Visit ")])]}}],null,!1,557002130)})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.selectedEnterpriseNodes.length,"per-page":t.entNodesTable.perPage,align:"center",size:"sm"},model:{value:t.entNodesTable.currentPage,callback:function(e){t.$set(t.entNodesTable,"currentPage",e)},expression:"entNodesTable.currentPage"}}),e("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.selectedEnterpriseNodes.length))])],1)],1),e("br"),e("br"),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mb-2 mr-2",attrs:{variant:"primary","aria-label":"Auto Select Enterprise Nodes"},on:{click:t.autoSelectNodes}},[t._v(" Auto Select Enterprise Nodes ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mb-2 mr-2",attrs:{variant:"primary","aria-label":"Choose Enterprise Nodes"},on:{click:function(e){t.chooseEnterpriseDialog=!0}}},[t._v(" Choose Enterprise Nodes ")])],1)],1):t._e()],2):e("div",[e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"12",xl:"6"}},[e("b-card",{attrs:{title:"Details"}},[e("b-form-group",{attrs:{"label-cols":"2",label:"Version","label-for":"version"}},[e("b-form-input",{attrs:{id:"version",placeholder:t.appUpdateSpecification.version.toString(),readonly:""},model:{value:t.appUpdateSpecification.version,callback:function(e){t.$set(t.appUpdateSpecification,"version",e)},expression:"appUpdateSpecification.version"}})],1),e("b-form-group",{attrs:{"label-cols":"2",label:"Name","label-for":"name"}},[e("b-form-input",{attrs:{id:"name",placeholder:"App Name",readonly:""},model:{value:t.appUpdateSpecification.name,callback:function(e){t.$set(t.appUpdateSpecification,"name",e)},expression:"appUpdateSpecification.name"}})],1),e("b-form-group",{attrs:{"label-cols":"2",label:"Desc.","label-for":"desc"}},[e("b-form-textarea",{attrs:{id:"desc",placeholder:"Description",rows:"3"},model:{value:t.appUpdateSpecification.description,callback:function(e){t.$set(t.appUpdateSpecification,"description",e)},expression:"appUpdateSpecification.description"}})],1),e("b-form-group",{attrs:{"label-cols":"2",label:"Repo","label-for":"repo"}},[e("b-form-input",{attrs:{id:"repo",placeholder:"Docker image namespace/repository:tag",readonly:""},model:{value:t.appUpdateSpecification.repotag,callback:function(e){t.$set(t.appUpdateSpecification,"repotag",e)},expression:"appUpdateSpecification.repotag"}})],1),e("b-form-group",{attrs:{"label-cols":"2",label:"Owner","label-for":"owner"}},[e("b-form-input",{attrs:{id:"owner",placeholder:"ZelID of Application Owner"},model:{value:t.appUpdateSpecification.owner,callback:function(e){t.$set(t.appUpdateSpecification,"owner",e)},expression:"appUpdateSpecification.owner"}})],1),e("br"),t.appUpdateSpecification.version>=3?e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Instances","label-for":"instances"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(t.appUpdateSpecification.instances)+" ")]),e("b-form-input",{attrs:{id:"instances",placeholder:"Minimum number of application instances to be spawned",type:"range",min:"3",max:t.maxInstances,step:"1"},model:{value:t.appUpdateSpecification.instances,callback:function(e){t.$set(t.appUpdateSpecification,"instances",e)},expression:"appUpdateSpecification.instances"}})],1):t._e(),e("br"),t.appUpdateSpecification.version>=6?e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Period","label-for":"period"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(t.getExpireLabel||(t.appUpdateSpecification.expire?`${t.appUpdateSpecification.expire} blocks`:"1 month"))+" ")]),e("b-form-input",{attrs:{id:"period",placeholder:"How long an application will live on Flux network",type:"range",min:0,max:5,step:1},model:{value:t.expirePosition,callback:function(e){t.expirePosition=e},expression:"expirePosition"}})],1):t._e()],1)],1),e("b-col",{attrs:{xs:"12",xl:"6"}},[e("b-card",{attrs:{title:"Environment"}},[e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Ports "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of Ports on which application will be available",expression:"'Array of Ports on which application will be available'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"ports"},model:{value:t.appUpdateSpecification.ports,callback:function(e){t.$set(t.appUpdateSpecification,"ports",e)},expression:"appUpdateSpecification.ports"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Domains "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Domains managed by Flux Domain Manager (FDM). Length must correspond to available ports. Use empty strings for no domains",expression:"'Array of strings of Domains managed by Flux Domain Manager (FDM). Length must correspond to available ports. Use empty strings for no domains'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"domains"},model:{value:t.appUpdateSpecification.domains,callback:function(e){t.$set(t.appUpdateSpecification,"domains",e)},expression:"appUpdateSpecification.domains"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Environment "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Environmental Parameters",expression:"'Array of strings of Environmental Parameters'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"environmentParameters"},model:{value:t.appUpdateSpecification.enviromentParameters,callback:function(e){t.$set(t.appUpdateSpecification,"enviromentParameters",e)},expression:"appUpdateSpecification.enviromentParameters"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Commands "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Commands",expression:"'Array of strings of Commands'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"commands"},model:{value:t.appUpdateSpecification.commands,callback:function(e){t.$set(t.appUpdateSpecification,"commands",e)},expression:"appUpdateSpecification.commands"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Cont. Ports "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Container Ports - Array of ports which your container has",expression:"'Container Ports - Array of ports which your container has'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"containerPorts"},model:{value:t.appUpdateSpecification.containerPorts,callback:function(e){t.$set(t.appUpdateSpecification,"containerPorts",e)},expression:"appUpdateSpecification.containerPorts"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Cont. Data "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Data folder that is shared by application to App volume. Prepend with r: for synced data between instances. Eg. r:/data",expression:"'Data folder that is shared by application to App volume. Prepend with r: for synced data between instances. Eg. r:/data'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"containerData"},model:{value:t.appUpdateSpecification.containerData,callback:function(e){t.$set(t.appUpdateSpecification,"containerData",e)},expression:"appUpdateSpecification.containerData"}})],1)])])],1)],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"12"}},[e("b-card",[e("b-card-title",[t._v(" Resources    "),e("h6",{staticClass:"inline etext-small"},[t._v(" Tiered: "),e("b-form-checkbox",{staticClass:"custom-control-primary inline",attrs:{id:"tiered",switch:""},model:{value:t.appUpdateSpecification.tiered,callback:function(e){t.$set(t.appUpdateSpecification,"tiered",e)},expression:"appUpdateSpecification.tiered"}})],1)]),t.appUpdateSpecification.tiered?t._e():e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"CPU","label-for":"cpu"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(t.appUpdateSpecification.cpu)+" ")]),e("b-form-input",{attrs:{id:"cpu",placeholder:"CPU cores to use by default",type:"range",min:"0.1",max:"15",step:"0.1"},model:{value:t.appUpdateSpecification.cpu,callback:function(e){t.$set(t.appUpdateSpecification,"cpu",e)},expression:"appUpdateSpecification.cpu"}})],1),t.appUpdateSpecification.tiered?t._e():e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"RAM","label-for":"ram"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(t.appUpdateSpecification.ram)+" ")]),e("b-form-input",{attrs:{id:"ram",placeholder:"RAM in MB value to use by default",type:"range",min:"100",max:"59000",step:"100"},model:{value:t.appUpdateSpecification.ram,callback:function(e){t.$set(t.appUpdateSpecification,"ram",e)},expression:"appUpdateSpecification.ram"}})],1),t.appUpdateSpecification.tiered?t._e():e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"SSD","label-for":"ssd"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(t.appUpdateSpecification.hdd)+" ")]),e("b-form-input",{attrs:{id:"ssd",placeholder:"SSD in GB value to use by default",type:"range",min:"1",max:"820",step:"1"},model:{value:t.appUpdateSpecification.hdd,callback:function(e){t.$set(t.appUpdateSpecification,"hdd",e)},expression:"appUpdateSpecification.hdd"}})],1)],1)],1)],1),t.appUpdateSpecification.tiered?e("b-row",[e("b-col",{attrs:{xs:"12",md:"6",lg:"4"}},[e("b-card",{attrs:{title:"Cumulus"}},[e("div",[t._v(" CPU: "+t._s(t.appUpdateSpecification.cpubasic)+" ")]),e("b-form-input",{attrs:{type:"range",min:"0.1",max:"3",step:"0.1"},model:{value:t.appUpdateSpecification.cpubasic,callback:function(e){t.$set(t.appUpdateSpecification,"cpubasic",e)},expression:"appUpdateSpecification.cpubasic"}}),e("div",[t._v(" RAM: "+t._s(t.appUpdateSpecification.rambasic)+" ")]),e("b-form-input",{attrs:{type:"range",min:"100",max:"5000",step:"100"},model:{value:t.appUpdateSpecification.rambasic,callback:function(e){t.$set(t.appUpdateSpecification,"rambasic",e)},expression:"appUpdateSpecification.rambasic"}}),e("div",[t._v(" SSD: "+t._s(t.appUpdateSpecification.hddbasic)+" ")]),e("b-form-input",{attrs:{type:"range",min:"1",max:"180",step:"1"},model:{value:t.appUpdateSpecification.hddbasic,callback:function(e){t.$set(t.appUpdateSpecification,"hddbasic",e)},expression:"appUpdateSpecification.hddbasic"}})],1)],1),e("b-col",{attrs:{xs:"12",md:"6",lg:"4"}},[e("b-card",{attrs:{title:"Nimbus"}},[e("div",[t._v(" CPU: "+t._s(t.appUpdateSpecification.cpusuper)+" ")]),e("b-form-input",{attrs:{type:"range",min:"0.1",max:"7",step:"0.1"},model:{value:t.appUpdateSpecification.cpusuper,callback:function(e){t.$set(t.appUpdateSpecification,"cpusuper",e)},expression:"appUpdateSpecification.cpusuper"}}),e("div",[t._v(" RAM: "+t._s(t.appUpdateSpecification.ramsuper)+" ")]),e("b-form-input",{attrs:{type:"range",min:"100",max:"28000",step:"100"},model:{value:t.appUpdateSpecification.ramsuper,callback:function(e){t.$set(t.appUpdateSpecification,"ramsuper",e)},expression:"appUpdateSpecification.ramsuper"}}),e("div",[t._v(" SSD: "+t._s(t.appUpdateSpecification.hddsuper)+" ")]),e("b-form-input",{attrs:{type:"range",min:"1",max:"400",step:"1"},model:{value:t.appUpdateSpecification.hddsuper,callback:function(e){t.$set(t.appUpdateSpecification,"hddsuper",e)},expression:"appUpdateSpecification.hddsuper"}})],1)],1),e("b-col",{attrs:{xs:"12",lg:"4"}},[e("b-card",{attrs:{title:"Stratus"}},[e("div",[t._v(" CPU: "+t._s(t.appUpdateSpecification.cpubamf)+" ")]),e("b-form-input",{attrs:{type:"range",min:"0.1",max:"15",step:"0.1"},model:{value:t.appUpdateSpecification.cpubamf,callback:function(e){t.$set(t.appUpdateSpecification,"cpubamf",e)},expression:"appUpdateSpecification.cpubamf"}}),e("div",[t._v(" RAM: "+t._s(t.appUpdateSpecification.rambamf)+" ")]),e("b-form-input",{attrs:{type:"range",min:"100",max:"59000",step:"100"},model:{value:t.appUpdateSpecification.rambamf,callback:function(e){t.$set(t.appUpdateSpecification,"rambamf",e)},expression:"appUpdateSpecification.rambamf"}}),e("div",[t._v(" SSD: "+t._s(t.appUpdateSpecification.hddbamf)+" ")]),e("b-form-input",{attrs:{type:"range",min:"1",max:"820",step:"1"},model:{value:t.appUpdateSpecification.hddbamf,callback:function(e){t.$set(t.appUpdateSpecification,"hddbamf",e)},expression:"appUpdateSpecification.hddbamf"}})],1)],1)],1):t._e()],1),e("div",{staticClass:"flex"},[e("b-form-checkbox",{staticClass:"custom-control-primary inline",attrs:{id:"tos",switch:""},model:{value:t.tosAgreed,callback:function(e){t.tosAgreed=e},expression:"tosAgreed"}}),t._v(" I agree with "),e("a",{attrs:{href:"https://cdn.runonflux.io/Flux_Terms_of_Service.pdf",target:"_blank",rel:"noopener noreferrer"}},[t._v(" Terms of Service ")]),e("br"),e("br")],1),e("div",[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mb-2",attrs:{variant:"success","aria-label":"Compute Update Message"},on:{click:t.checkFluxUpdateSpecificationsAndFormatMessage}},[t._v(" Compute Update Message ")])],1),t.dataToSign?e("div",[e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"2",label:"Update Message","label-for":"updatemessage"}},[e("b-form-textarea",{attrs:{id:"updatemessage",rows:"6",readonly:""},model:{value:t.dataToSign,callback:function(e){t.dataToSign=e},expression:"dataToSign"}})],1),e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"2",label:"Signature","label-for":"updatesignature"}},[e("b-form-input",{attrs:{id:"updatesignature"},model:{value:t.signature,callback:function(e){t.signature=e},expression:"signature"}})],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"6",lg:"8"}},[e("b-card",[e("h4",[t._v(" Note: Data has to be signed by the last application owner ")]),e("b-card-text",[t._v(" Price: "+t._s(t.appPricePerSpecs)+" FLUX ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"my-1",attrs:{variant:"success","aria-label":"Update Flux App"},on:{click:t.update}},[t._v(" Update Flux App ")])],1)],1),e("b-col",{attrs:{xs:"6",lg:"4"}},[e("b-card",{attrs:{title:"Sign with"}},[e("div",{staticClass:"loginRow"},[e("a",{attrs:{href:`zel:?action=sign&message=${t.dataToSign}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${t.callbackValue}`},on:{click:t.initiateSignWSUpdate}},[e("img",{staticClass:"zelidLogin",attrs:{src:s(94452),alt:"Zel ID",height:"100%",width:"100%"}})]),e("a",{on:{click:t.initSSP}},[e("img",{staticClass:"sspLogin",attrs:{src:"dark"===t.skin?s(56070):s(58962),alt:"SSP",height:"100%",width:"100%"}})])]),e("div",{staticClass:"loginRow"},[e("a",{on:{click:t.initWalletConnect}},[e("img",{staticClass:"walletconnectLogin",attrs:{src:s(47622),alt:"WalletConnect",height:"100%",width:"100%"}})]),e("a",{on:{click:t.initMetamask}},[e("img",{staticClass:"metamaskLogin",attrs:{src:s(28125),alt:"Metamask",height:"100%",width:"100%"}})])])])],1)],1),t.updateHash?e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"6",lg:"8"}},[e("b-card",[e("b-card-text",[t._v(" To finish the application update, please make a transaction of "+t._s(t.appPricePerSpecs)+" FLUX to address '"+t._s(t.deploymentAddress)+"' with the following message: '"+t._s(t.updateHash)+"' ")]),e("br"),t._v(" The transaction must be mined by "+t._s(new Date(t.validTill).toLocaleString("en-GB",t.timeoptions.shortDate))+" "),e("br"),e("br"),t._v(" The application will be subscribed until "+t._s(new Date(t.subscribedTill).toLocaleString("en-GB",t.timeoptions.shortDate))+" ")],1)],1),e("b-col",{attrs:{xs:"6",lg:"4"}},[e("b-card",{attrs:{title:"Pay with Zelcore"}},[e("div",{staticClass:"loginRow"},[e("a",{attrs:{href:`zel:?action=pay&coin=zelcash&address=${t.deploymentAddress}&amount=${t.appPricePerSpecs}&message=${t.updateHash}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2Fflux_banner.png`}},[e("img",{staticClass:"zelidLogin",attrs:{src:s(94452),alt:"Zel ID",height:"100%",width:"100%"}})]),e("a",{on:{click:t.initSSPpay}},[e("img",{staticClass:"sspLogin",attrs:{src:"dark"===t.skin?s(56070):s(58962),alt:"SSP",height:"100%",width:"100%"}})])])])],1)],1):t._e()],1):t._e()])],1),t.output?e("div",{staticClass:"actionCenter"},[e("br"),e("b-form-textarea",{staticClass:"mt-1",attrs:{plaintext:"","no-resize":"",rows:t.output.length,value:t.stringOutput()}})],1):t._e(),t._m(0),e("b-modal",{attrs:{title:"Select Enterprise Nodes",size:"xl",centered:"","button-size":"sm","ok-only":"","ok-title":"Done"},model:{value:t.chooseEnterpriseDialog,callback:function(e){t.chooseEnterpriseDialog=e},expression:"chooseEnterpriseDialog"}},[e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.entNodesSelectTable.pageOptions},model:{value:t.entNodesSelectTable.perPage,callback:function(e){t.$set(t.entNodesSelectTable,"perPage",e)},expression:"entNodesSelectTable.perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.entNodesSelectTable.filter,callback:function(e){t.$set(t.entNodesSelectTable,"filter",e)},expression:"entNodesSelectTable.filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.entNodesSelectTable.filter},on:{click:function(e){t.entNodesSelectTable.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"app-enterprise-nodes-table",attrs:{striped:"",hover:"",responsive:"","per-page":t.entNodesSelectTable.perPage,"current-page":t.entNodesSelectTable.currentPage,items:t.enterpriseNodes,fields:t.entNodesSelectTable.fields,"sort-by":t.entNodesSelectTable.sortBy,"sort-desc":t.entNodesSelectTable.sortDesc,"sort-direction":t.entNodesSelectTable.sortDirection,filter:t.entNodesSelectTable.filter,"filter-included-fields":t.entNodesSelectTable.filterOn,"show-empty":"","empty-text":"No Enterprise Nodes For Addition Found"},on:{"update:sortBy":function(e){return t.$set(t.entNodesSelectTable,"sortBy",e)},"update:sort-by":function(e){return t.$set(t.entNodesSelectTable,"sortBy",e)},"update:sortDesc":function(e){return t.$set(t.entNodesSelectTable,"sortDesc",e)},"update:sort-desc":function(e){return t.$set(t.entNodesSelectTable,"sortDesc",e)}},scopedSlots:t._u([{key:"cell(show_details)",fn:function(s){return[e("a",{on:{click:s.toggleDetails}},[s.detailsShowing?t._e():e("v-icon",{attrs:{name:"chevron-down"}}),s.detailsShowing?e("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(s){return[e("b-card",{staticClass:"mx-2"},[e("list-entry",{attrs:{title:"IP Address",data:s.item.ip}}),e("list-entry",{attrs:{title:"Public Key",data:s.item.pubkey}}),e("list-entry",{attrs:{title:"Node Address",data:s.item.payment_address}}),e("list-entry",{attrs:{title:"Collateral",data:`${s.item.txhash}:${s.item.outidx}`}}),e("list-entry",{attrs:{title:"Tier",data:s.item.tier}}),e("list-entry",{attrs:{title:"Overall Score",data:s.item.score.toString()}}),e("list-entry",{attrs:{title:"Collateral Score",data:s.item.collateralPoints.toString()}}),e("list-entry",{attrs:{title:"Maturity Score",data:s.item.maturityPoints.toString()}}),e("list-entry",{attrs:{title:"Public Key Score",data:s.item.pubKeyPoints.toString()}}),e("list-entry",{attrs:{title:"Enterprise Apps Assigned",data:s.item.enterpriseApps.toString()}}),e("div",[e("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"primary"},on:{click:function(e){t.openNodeFluxOS(t.locationRow.item.ip.split(":")[0],t.locationRow.item.ip.split(":")[1]?+t.locationRow.item.ip.split(":")[1]-1:16126)}}},[t._v(" Visit FluxNode ")])],1)],1)]}},{key:"cell(ip)",fn:function(e){return[t._v(" "+t._s(e.item.ip)+" ")]}},{key:"cell(payment_address)",fn:function(e){return[t._v(" "+t._s(e.item.payment_address.slice(0,8))+"..."+t._s(e.item.payment_address.slice(e.item.payment_address.length-8,e.item.payment_address.length))+" ")]}},{key:"cell(tier)",fn:function(e){return[t._v(" "+t._s(e.item.tier)+" ")]}},{key:"cell(score)",fn:function(e){return[t._v(" "+t._s(e.item.score)+" ")]}},{key:"cell(actions)",fn:function(s){return[e("b-button",{staticClass:"mr-1 mb-1",attrs:{size:"sm",variant:"primary"},on:{click:function(e){t.openNodeFluxOS(s.item.ip.split(":")[0],s.item.ip.split(":")[1]?+s.item.ip.split(":")[1]-1:16126)}}},[t._v(" Visit ")]),t.selectedEnterpriseNodes.find((t=>t.ip===s.item.ip))?t._e():e("b-button",{staticClass:"mr-1 mb-1",attrs:{id:`add-${s.item.ip}`,size:"sm",variant:"success"},on:{click:function(e){return t.addFluxNode(s.item.ip)}}},[t._v(" Add ")]),t.selectedEnterpriseNodes.find((t=>t.ip===s.item.ip))?e("b-button",{staticClass:"mr-1 mb-1",attrs:{id:`add-${s.item.ip}`,size:"sm",variant:"danger"},on:{click:function(e){return t.removeFluxNode(s.item.ip)}}},[t._v(" Remove ")]):t._e()]}}])})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.entNodesSelectTable.totalRows,"per-page":t.entNodesSelectTable.perPage,align:"center",size:"sm"},model:{value:t.entNodesSelectTable.currentPage,callback:function(e){t.$set(t.entNodesSelectTable,"currentPage",e)},expression:"entNodesSelectTable.currentPage"}}),e("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.entNodesSelectTable.totalRows))])],1)],1)],1)],1)},o=[function(){var t=this,e=t._self._c;return e("div",[e("br"),t._v(" By managing an application I agree with "),e("a",{attrs:{href:"https://cdn.runonflux.io/Flux_Terms_of_Service.pdf",target:"_blank",rel:"noopener noreferrer"}},[t._v(" Terms of Service ")])])}],n=(s(70560),s(98858),s(61318),s(33228),s(73106)),r=s(58887),l=s(51015),c=s(16521),p=s(66456),d=s(92095),u=s(31642),h=s(87379),m=s(51909),f=s(71605),g=s(43022),b=s(4060),v=s(27754),y=s(22418),S=s(50725),_=s(86855),C=s(64206),w=s(49379),x=s(97794),k=s(26253),R=s(15193),A=s(1759),$=s(87167),T=s(333),U=s(46709),P=s(22183),N=s(19692),B=s(8051),D=s(78959),I=s(10962),F=s(45752),L=s(22981),E=s(5870),O=s(67166),M=s.n(O),z=s(20266),G=s(20629),j=s(34547),V=s(87156),W=s(51748),q=s(90699),H=s.n(q),Z=s(43672),K=s(27616),J=s(80914);const Y={getVolumeDataOfComponent(t,e,s,a,i,o){const n={headers:{zelidauth:t}};return(0,J.Z)().get(`/backup/getvolumedataofcomponent/${e}/${s}/${a}/${i}/${o}`,n)},getRemoteFileSize(t,e,s,a,i,o){const n={headers:{zelidauth:t}};return(0,J.Z)().get(`/backup/getremotefilesize/${e}/${s}/${a}/${i}/${o}`,n)},getBackupList(t,e,s,a,i,o){const n={headers:{zelidauth:t}};return(0,J.Z)().get(`/backup/getlocalbackuplist/${e}/${s}/${a}/${i}/${o}`,n)},removeBackupFile(t,e,s){const a={headers:{zelidauth:t}};return(0,J.Z)().get(`/backup/removebackupfile/${e}/${s}`,a)},justAPI(){return(0,J.Z)()}};var X=s(38511),Q=s(94145),tt=s(12320),et=s(12617),st=s(67511),at=s(32993),it=s(12286);const ot=Object.create(null);ot["open"]="0",ot["close"]="1",ot["ping"]="2",ot["pong"]="3",ot["message"]="4",ot["upgrade"]="5",ot["noop"]="6";const nt=Object.create(null);Object.keys(ot).forEach((t=>{nt[ot[t]]=t}));const rt={type:"error",data:"parser error"},lt="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),ct="function"===typeof ArrayBuffer,pt=t=>"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,dt=({type:t,data:e},s,a)=>lt&&e instanceof Blob?s?a(e):ut(e,a):ct&&(e instanceof ArrayBuffer||pt(e))?s?a(e):ut(new Blob([e]),a):a(ot[t]+(e||"")),ut=(t,e)=>{const s=new FileReader;return s.onload=function(){const t=s.result.split(",")[1];e("b"+(t||""))},s.readAsDataURL(t)};function ht(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let mt;function ft(t,e){return lt&&t.data instanceof Blob?t.data.arrayBuffer().then(ht).then(e):ct&&(t.data instanceof ArrayBuffer||pt(t.data))?e(ht(t.data)):void dt(t,!1,(t=>{mt||(mt=new TextEncoder),e(mt.encode(t))}))}const gt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bt="undefined"===typeof Uint8Array?[]:new Uint8Array(256);for(let gs=0;gs{let e,s,a,i,o,n=.75*t.length,r=t.length,l=0;"="===t[t.length-1]&&(n--,"="===t[t.length-2]&&n--);const c=new ArrayBuffer(n),p=new Uint8Array(c);for(e=0;e>4,p[l++]=(15&a)<<4|i>>2,p[l++]=(3&i)<<6|63&o;return c},yt="function"===typeof ArrayBuffer,St=(t,e)=>{if("string"!==typeof t)return{type:"message",data:Ct(t,e)};const s=t.charAt(0);if("b"===s)return{type:"message",data:_t(t.substring(1),e)};const a=nt[s];return a?t.length>1?{type:nt[s],data:t.substring(1)}:{type:nt[s]}:rt},_t=(t,e)=>{if(yt){const s=vt(t);return Ct(s,e)}return{base64:!0,data:t}},Ct=(t,e)=>{switch(e){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},wt=String.fromCharCode(30),xt=(t,e)=>{const s=t.length,a=new Array(s);let i=0;t.forEach(((t,o)=>{dt(t,!1,(t=>{a[o]=t,++i===s&&e(a.join(wt))}))}))},kt=(t,e)=>{const s=t.split(wt),a=[];for(let i=0;i{const a=s.length;let i;if(a<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,a);else if(a<65536){i=new Uint8Array(3);const t=new DataView(i.buffer);t.setUint8(0,126),t.setUint16(1,a)}else{i=new Uint8Array(9);const t=new DataView(i.buffer);t.setUint8(0,127),t.setBigUint64(1,BigInt(a))}t.data&&"string"!==typeof t.data&&(i[0]|=128),e.enqueue(i),e.enqueue(s)}))}})}let At;function $t(t){return t.reduce(((t,e)=>t+e.length),0)}function Tt(t,e){if(t[0].length===e)return t.shift();const s=new Uint8Array(e);let a=0;for(let i=0;iMath.pow(2,21)-1){r.enqueue(rt);break}i=o*Math.pow(2,32)+e.getUint32(4),a=3}else{if($t(s)t){r.enqueue(rt);break}}}})}const Pt=4;function Nt(t){if(t)return Bt(t)}function Bt(t){for(var e in Nt.prototype)t[e]=Nt.prototype[e];return t}Nt.prototype.on=Nt.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},Nt.prototype.once=function(t,e){function s(){this.off(t,s),e.apply(this,arguments)}return s.fn=e,this.on(t,s),this},Nt.prototype.off=Nt.prototype.removeListener=Nt.prototype.removeAllListeners=Nt.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var s,a=this._callbacks["$"+t];if(!a)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i"undefined"!==typeof self?self:"undefined"!==typeof window?window:Function("return this")())();function It(t,...e){return e.reduce(((e,s)=>(t.hasOwnProperty(s)&&(e[s]=t[s]),e)),{})}const Ft=Dt.setTimeout,Lt=Dt.clearTimeout;function Et(t,e){e.useNativeTimers?(t.setTimeoutFn=Ft.bind(Dt),t.clearTimeoutFn=Lt.bind(Dt)):(t.setTimeoutFn=Dt.setTimeout.bind(Dt),t.clearTimeoutFn=Dt.clearTimeout.bind(Dt))}const Ot=1.33;function Mt(t){return"string"===typeof t?zt(t):Math.ceil((t.byteLength||t.size)*Ot)}function zt(t){let e=0,s=0;for(let a=0,i=t.length;a=57344?s+=3:(a++,s+=4);return s}function Gt(t){let e="";for(let s in t)t.hasOwnProperty(s)&&(e.length&&(e+="&"),e+=encodeURIComponent(s)+"="+encodeURIComponent(t[s]));return e}function jt(t){let e={},s=t.split("&");for(let a=0,i=s.length;a0);return e}function Qt(){const t=Xt(+new Date);return t!==Kt?(Jt=0,Kt=t):t+"."+Xt(Jt++)}for(;Yt{this.readyState="paused",t()};if(this.polling||!this.writable){let t=0;this.polling&&(t++,this.once("pollComplete",(function(){--t||e()}))),this.writable||(t++,this.once("drain",(function(){--t||e()})))}else e()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const e=t=>{if("opening"===this.readyState&&"open"===t.type&&this.onOpen(),"close"===t.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(t)};kt(t,this.socket.binaryType).forEach(e),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};"open"===this.readyState?t():this.once("open",t)}write(t){this.writable=!1,xt(t,(t=>{this.doWrite(t,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const t=this.opts.secure?"https":"http",e=this.query||{};return!1!==this.opts.timestampRequests&&(e[this.opts.timestampParam]=Qt()),this.supportsBinary||e.sid||(e.b64=1),this.createUri(t,e)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new re(this.uri(),t)}doWrite(t,e){const s=this.request({method:"POST",data:t});s.on("success",e),s.on("error",((t,e)=>{this.onError("xhr post error",t,e)}))}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",((t,e)=>{this.onError("xhr poll error",t,e)})),this.pollXhr=t}}class re extends Nt{constructor(t,e){super(),Et(this,e),this.opts=e,this.method=e.method||"GET",this.uri=t,this.data=void 0!==e.data?e.data:null,this.create()}create(){var t;const e=It(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this.opts.xd;const s=this.xhr=new se(e);try{s.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let t in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(t)&&s.setRequestHeader(t,this.opts.extraHeaders[t])}}catch(a){}if("POST"===this.method)try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(a){}try{s.setRequestHeader("Accept","*/*")}catch(a){}null===(t=this.opts.cookieJar)||void 0===t||t.addCookies(s),"withCredentials"in s&&(s.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(s.timeout=this.opts.requestTimeout),s.onreadystatechange=()=>{var t;3===s.readyState&&(null===(t=this.opts.cookieJar)||void 0===t||t.parseCookies(s)),4===s.readyState&&(200===s.status||1223===s.status?this.onLoad():this.setTimeoutFn((()=>{this.onError("number"===typeof s.status?s.status:0)}),0))},s.send(this.data)}catch(a){return void this.setTimeoutFn((()=>{this.onError(a)}),0)}"undefined"!==typeof document&&(this.index=re.requestsCount++,re.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if("undefined"!==typeof this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=ie,t)try{this.xhr.abort()}catch(e){}"undefined"!==typeof document&&delete re.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;null!==t&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(re.requestsCount=0,re.requests={},"undefined"!==typeof document)if("function"===typeof attachEvent)attachEvent("onunload",le);else if("function"===typeof addEventListener){const t="onpagehide"in Dt?"pagehide":"unload";addEventListener(t,le,!1)}function le(){for(let t in re.requests)re.requests.hasOwnProperty(t)&&re.requests[t].abort()}const ce=(()=>{const t="function"===typeof Promise&&"function"===typeof Promise.resolve;return t?t=>Promise.resolve().then(t):(t,e)=>e(t,0)})(),pe=Dt.WebSocket||Dt.MozWebSocket,de=!0,ue="arraybuffer";var he=s(48764)["lW"];const me="undefined"!==typeof navigator&&"string"===typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class fe extends Wt{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),e=this.opts.protocols,s=me?{}:It(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=de&&!me?e?new pe(t,e):new pe(t):new pe(t,e,s)}catch(fs){return this.emitReserved("error",fs)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let e=0;e{const e={};if(!de&&(s.options&&(e.compress=s.options.compress),this.opts.perMessageDeflate)){const s="string"===typeof t?he.byteLength(t):t.length;s{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){"undefined"!==typeof this.ws&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",e=this.query||{};return this.opts.timestampRequests&&(e[this.opts.timestampParam]=Qt()),this.supportsBinary||(e.b64=1),this.createUri(t,e)}check(){return!!pe}}class ge extends Wt{get name(){return"webtransport"}doOpen(){"function"===typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then((()=>{this.onClose()})).catch((t=>{this.onError("webtransport error",t)})),this.transport.ready.then((()=>{this.transport.createBidirectionalStream().then((t=>{const e=Ut(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=t.readable.pipeThrough(e).getReader(),a=Rt();a.readable.pipeTo(t.writable),this.writer=a.writable.getWriter();const i=()=>{s.read().then((({done:t,value:e})=>{t||(this.onPacket(e),i())})).catch((t=>{}))};i();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this.writer.write(o).then((()=>this.onOpen()))}))})))}write(t){this.writable=!1;for(let e=0;e{a&&ce((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var t;null===(t=this.transport)||void 0===t||t.close()}}const be={websocket:fe,webtransport:ge,polling:ne},ve=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,ye=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Se(t){if(t.length>2e3)throw"URI too long";const e=t,s=t.indexOf("["),a=t.indexOf("]");-1!=s&&-1!=a&&(t=t.substring(0,s)+t.substring(s,a).replace(/:/g,";")+t.substring(a,t.length));let i=ve.exec(t||""),o={},n=14;while(n--)o[ye[n]]=i[n]||"";return-1!=s&&-1!=a&&(o.source=e,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=_e(o,o["path"]),o.queryKey=Ce(o,o["query"]),o}function _e(t,e){const s=/\/{2,9}/g,a=e.replace(s,"/").split("/");return"/"!=e.slice(0,1)&&0!==e.length||a.splice(0,1),"/"==e.slice(-1)&&a.splice(a.length-1,1),a}function Ce(t,e){const s={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(t,e,a){e&&(s[e]=a)})),s}class we extends Nt{constructor(t,e={}){super(),this.binaryType=ue,this.writeBuffer=[],t&&"object"===typeof t&&(e=t,t=null),t?(t=Se(t),e.hostname=t.host,e.secure="https"===t.protocol||"wss"===t.protocol,e.port=t.port,t.query&&(e.query=t.query)):e.host&&(e.hostname=Se(e.host).host),Et(this,e),this.secure=null!=e.secure?e.secure:"undefined"!==typeof location&&"https:"===location.protocol,e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.hostname=e.hostname||("undefined"!==typeof location?location.hostname:"localhost"),this.port=e.port||("undefined"!==typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=e.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},e),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"===typeof this.opts.query&&(this.opts.query=jt(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"===typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const e=Object.assign({},this.opts.query);e.EIO=Pt,e.transport=t,this.id&&(e.sid=this.id);const s=Object.assign({},this.opts,{query:e,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new be[t](s)}open(){let t;if(this.opts.rememberUpgrade&&we.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(e){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(t=>this.onClose("transport close",t)))}probe(t){let e=this.createTransport(t),s=!1;we.priorWebsocketSuccess=!1;const a=()=>{s||(e.send([{type:"ping",data:"probe"}]),e.once("packet",(t=>{if(!s)if("pong"===t.type&&"probe"===t.data){if(this.upgrading=!0,this.emitReserved("upgrading",e),!e)return;we.priorWebsocketSuccess="websocket"===e.name,this.transport.pause((()=>{s||"closed"!==this.readyState&&(c(),this.setTransport(e),e.send([{type:"upgrade"}]),this.emitReserved("upgrade",e),e=null,this.upgrading=!1,this.flush())}))}else{const t=new Error("probe error");t.transport=e.name,this.emitReserved("upgradeError",t)}})))};function i(){s||(s=!0,c(),e.close(),e=null)}const o=t=>{const s=new Error("probe error: "+t);s.transport=e.name,i(),this.emitReserved("upgradeError",s)};function n(){o("transport closed")}function r(){o("socket closed")}function l(t){e&&t.name!==e.name&&i()}const c=()=>{e.removeListener("open",a),e.removeListener("error",o),e.removeListener("close",n),this.off("close",r),this.off("upgrading",l)};e.once("open",a),e.once("error",o),e.once("close",n),this.once("close",r),this.once("upgrading",l),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==t?this.setTimeoutFn((()=>{s||e.open()}),200):e.open()}onOpen(){if(this.readyState="open",we.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let t=0;const e=this.upgrades.length;for(;t{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){const t=this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1;if(!t)return this.writeBuffer;let e=1;for(let s=0;s0&&e>this.maxPayload)return this.writeBuffer.slice(0,s);e+=2}return this.writeBuffer}write(t,e,s){return this.sendPacket("message",t,e,s),this}send(t,e,s){return this.sendPacket("message",t,e,s),this}sendPacket(t,e,s,a){if("function"===typeof e&&(a=e,e=void 0),"function"===typeof s&&(a=s,s=null),"closing"===this.readyState||"closed"===this.readyState)return;s=s||{},s.compress=!1!==s.compress;const i={type:t,data:e,options:s};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),a&&this.once("flush",a),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},e=()=>{this.off("upgrade",e),this.off("upgradeError",e),t()},s=()=>{this.once("upgrade",e),this.once("upgradeError",e)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?s():t()})):this.upgrading?s():t()),this}onError(t){we.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,e){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"===typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,e),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const e=[];let s=0;const a=t.length;for(;s"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,Ae=Object.prototype.toString,$e="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===Ae.call(Blob),Te="function"===typeof File||"undefined"!==typeof File&&"[object FileConstructor]"===Ae.call(File);function Ue(t){return ke&&(t instanceof ArrayBuffer||Re(t))||$e&&t instanceof Blob||Te&&t instanceof File}function Pe(t,e){if(!t||"object"!==typeof t)return!1;if(Array.isArray(t)){for(let e=0,s=t.length;e=0&&t.num{delete this.acks[t];for(let e=0;e{this.io.clearTimeoutFn(i),e.apply(this,[null,...t])}}emitWithAck(t,...e){const s=void 0!==this.flags.timeout||void 0!==this._opts.ackTimeout;return new Promise(((a,i)=>{e.push(((t,e)=>s?t?i(t):a(e):a(t))),this.emit(t,...e)}))}_addToQueue(t){let e;"function"===typeof t[t.length-1]&&(e=t.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push(((t,...a)=>{if(s!==this._queue[0])return;const i=null!==t;return i?s.tryCount>this._opts.retries&&(this._queue.shift(),e&&e(t)):(this._queue.shift(),e&&e(null,...a)),s.pending=!1,this._drainQueue()})),this._queue.push(s),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||0===this._queue.length)return;const e=this._queue[0];e.pending&&!t||(e.pending=!0,e.tryCount++,this.flags=e.flags,this.emit.apply(this,e.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){"function"==typeof this.auth?this.auth((t=>{this._sendConnectPacket(t)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Ee.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,e)}onpacket(t){const e=t.nsp===this.nsp;if(e)switch(t.type){case Ee.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ee.EVENT:case Ee.BINARY_EVENT:this.onevent(t);break;case Ee.ACK:case Ee.BINARY_ACK:this.onack(t);break;case Ee.DISCONNECT:this.ondisconnect();break;case Ee.CONNECT_ERROR:this.destroy();const e=new Error(t.data.message);e.data=t.data.data,this.emitReserved("connect_error",e);break}}onevent(t){const e=t.data||[];null!=t.id&&e.push(this.ack(t.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const e=this._anyListeners.slice();for(const s of e)s.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&"string"===typeof t[t.length-1]&&(this._lastOffset=t[t.length-1])}ack(t){const e=this;let s=!1;return function(...a){s||(s=!0,e.packet({type:Ee.ACK,id:t,data:a}))}}onack(t){const e=this.acks[t.id];"function"===typeof e&&(e.apply(this,t.data),delete this.acks[t.id])}onconnect(t,e){this.id=t,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((t=>this.emitEvent(t))),this.receiveBuffer=[],this.sendBuffer.forEach((t=>{this.notifyOutgoingListeners(t),this.packet(t)})),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((t=>t())),this.subs=void 0),this.io["_destroy"](this)}disconnect(){return this.connected&&this.packet({type:Ee.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const e=this._anyListeners;for(let s=0;s0&&t.jitter<=1?t.jitter:0,this.attempts=0}qe.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),s=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-s:t+s}return 0|Math.min(t,this.max)},qe.prototype.reset=function(){this.attempts=0},qe.prototype.setMin=function(t){this.ms=t},qe.prototype.setMax=function(t){this.max=t},qe.prototype.setJitter=function(t){this.jitter=t};class He extends Nt{constructor(t,e){var s;super(),this.nsps={},this.subs=[],t&&"object"===typeof t&&(e=t,t=void 0),e=e||{},e.path=e.path||"/socket.io",this.opts=e,Et(this,e),this.reconnection(!1!==e.reconnection),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(s=e.randomizationFactor)&&void 0!==s?s:.5),this.backoff=new qe({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this._readyState="closed",this.uri=t;const i=e.parser||a;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=!1!==e.autoConnect,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return void 0===t?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var e;return void 0===t?this._reconnectionDelay:(this._reconnectionDelay=t,null===(e=this.backoff)||void 0===e||e.setMin(t),this)}randomizationFactor(t){var e;return void 0===t?this._randomizationFactor:(this._randomizationFactor=t,null===(e=this.backoff)||void 0===e||e.setJitter(t),this)}reconnectionDelayMax(t){var e;return void 0===t?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,null===(e=this.backoff)||void 0===e||e.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new we(this.uri,this.opts);const e=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const a=je(e,"open",(function(){s.onopen(),t&&t()})),i=e=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",e),t?t(e):this.maybeReconnectOnOpen()},o=je(e,"error",i);if(!1!==this._timeout){const t=this._timeout,s=this.setTimeoutFn((()=>{a(),i(new Error("timeout")),e.close()}),t);this.opts.autoUnref&&s.unref(),this.subs.push((()=>{this.clearTimeoutFn(s)}))}return this.subs.push(a),this.subs.push(o),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(je(t,"ping",this.onping.bind(this)),je(t,"data",this.ondata.bind(this)),je(t,"error",this.onerror.bind(this)),je(t,"close",this.onclose.bind(this)),je(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(e){this.onclose("parse error",e)}}ondecoded(t){ce((()=>{this.emitReserved("packet",t)}),this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,e){let s=this.nsps[t];return s?this._autoConnect&&!s.active&&s.connect():(s=new We(this,t,e),this.nsps[t]=s),s}_destroy(t){const e=Object.keys(this.nsps);for(const s of e){const t=this.nsps[s];if(t.active)return}this._close()}_packet(t){const e=this.encoder.encode(t);for(let s=0;st())),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,e){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const e=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn((()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),t.skipReconnect||t.open((e=>{e?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",e)):t.onreconnect()})))}),e);this.opts.autoUnref&&s.unref(),this.subs.push((()=>{this.clearTimeoutFn(s)}))}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Ze={};function Ke(t,e){"object"===typeof t&&(e=t,t=void 0),e=e||{};const s=xe(t,e.path||"/socket.io"),a=s.source,i=s.id,o=s.path,n=Ze[i]&&o in Ze[i]["nsps"],r=e.forceNew||e["force new connection"]||!1===e.multiplex||n;let l;return r?l=new He(a,e):(Ze[i]||(Ze[i]=new He(a,e)),l=Ze[i]),s.query&&!e.query&&(e.query=s.queryKey),l.socket(s.path,e)}Object.assign(Ke,{Manager:He,Socket:We,io:Ke,connect:Ke});var Je=s(37307),Ye=s(48764)["lW"];const Xe="df787edc6839c7de49d527bba9199eaa",Qe={projectId:Xe,metadata:{name:"Flux Cloud",description:"Flux, Your Gateway to a Decentralized World",url:"https://home.runonflux.io",icons:["https://home.runonflux.io/img/logo.png"]}},ts={enableDebug:!0},es=new Q.MetaMaskSDK(ts);let ss;const as=s(9669),is=s(80129),os=s(58971),ns=s(79650),rs=s(63005),ls=s(56761),cs=s(57306),ps={components:{JsonViewer:H(),BAlert:n.F,BTabs:r.M,BTab:l.L,BTable:c.h,BTd:p.S,BTr:d.G,BDropdown:u.R,BDropdownItem:h.E,BFormTag:m.d,BFormTags:f.D,BIcon:g.H,BInputGroup:b.w,BInputGroupPrepend:v.P,BInputGroupAppend:y.B,BCol:S.l,BCard:_._,BCardText:C.j,BCardTitle:w._,BCardGroup:x.o,BRow:k.T,BButton:R.T,BSpinner:A.X,BFormRadioGroup:$.Q,BFormTextarea:T.y,BFormGroup:U.x,BFormInput:P.e,BFormCheckbox:N.l,BFormSelect:B.K,BFormSelectOption:D.c,BPagination:I.c,BProgress:F.D,BProgressBar:L.Q,ConfirmDialog:V.Z,ListEntry:W.Z,ToastificationContent:j.Z,VueApexCharts:M()},directives:{"b-tooltip":E.o,Ripple:z.Z},props:{appName:{type:String,required:!0},global:{type:Boolean,required:!0},installedApps:{type:Array,required:!0}},data(){return{showTopUpload:!1,showTopRemote:!1,alertMessage:"",alertVariant:"",restoreFromUpload:!1,restoreFromUploadStatus:"",restoreFromRemoteURLStatus:"",downloadingFromUrl:!1,files:[],backupProgress:!1,tarProgress:"",fileProgress:[],showProgressBar:!1,restoreOptions:[{value:"FluxDrive",text:"FluxDrive",disabled:!0},{value:"Remote URL",text:"Remote URL",disabled:!1},{value:"Upload File",text:"Upload File",disabled:!1}],storageMethod:[{value:"flux",disabled:!0,text:"FluxDrive"},{value:"google",disabled:!0,text:"GoogleDrive"},{value:"as3",disabled:!0,text:"AS3Storage"}],components:[],selectedRestoreOption:null,selectedStorageMethod:null,selectedBackupComponents:[],items:[],items1:[],checkpoints:[{timestamp:1705483856,components:[{component:"lime",file_url:"http//...",file_size:"133"},{component:"orange",file_url:"http//...",file_size:"123"}]},{timestamp:1705485856,components:[{component:"lime",file_url:"http//...",file_size:"143"},{component:"orange",file_url:"http//...",file_size:"123"}]}],sigInPrivilage:!0,backupList:[],backupToUpload:[],restoreRemoteUrl:"",restoreRemoteFile:null,restoreRemoteUrlComponent:null,restoreRemoteUrlItems:[],newComponents:[],itemKey:[],expandedDetails:[],itemValue:[],sortbackupTableKey:"timestamp",sortbackupTableDesc:!0,nestedTableFilter:"",backupTableFields:[{key:"timestamp",label:"Name",thStyle:{width:"65%"}},{key:"time",label:"Time",thStyle:{width:"25%"}},{key:"actions",label:"Actions",thStyle:{width:"5%"},class:"text-center"}],restoreComponents:[{value:"",text:"all"},{value:"lime",text:"lime"},{value:"orange",text:"orange"}],localBackupTableFields:[{key:"isActive",label:"",thStyle:{width:"5%"},class:"text-center"},{key:"component",label:"Component Name",thStyle:{width:"40%"}},{key:"create",label:"CreateAt",thStyle:{width:"17%"}},{key:"expire",label:"ExpireAt",thStyle:{width:"17%"}},{key:"file_size",label:"Size",thStyle:{width:"8%"}}],newComponentsTableFields:[{key:"component",label:"Component Name",thStyle:{width:"25%"}},{key:"file_url",label:"URL",thStyle:{width:"55%"}},{key:"timestamp",label:"Timestamp",thStyle:{width:"6%"}},{key:"file_size",label:"Size",thStyle:{width:"9%"}}],componentsTable(){return[{key:"component",label:"Component Name",thStyle:{width:"30%"}},{key:"file_url",label:"URL",thStyle:{width:"55%"}},{key:"file_size",label:"Size",thStyle:{width:"10%"}},{key:"actions",label:"Actions",thStyle:{width:"5%"},class:"text-center"}]},socket:null,terminal:null,selectedCmd:null,selectedApp:null,enableUser:!1,userInputValue:"",customValue:"",envInputValue:"",enableEnvironment:!1,isVisible:!1,isConnecting:!1,options:[{label:"Linux",options:["/bin/bash","/bin/ash","/bin/sh"]},{label:"Other",options:["Custom"]}],timeoptions:rs,output:"",fluxCommunication:!1,commandExecuting:!1,getAllAppsResponse:{status:"",data:[]},updatetype:"fluxappupdate",version:1,dataForAppUpdate:{},dataToSign:"",timestamp:"",signature:"",updateHash:"",websocket:null,selectedAppOwner:"",appSpecification:{},callResponse:{status:"",data:""},callBResponse:{status:"",data:[]},appExec:{cmd:"",env:""},appUpdateSpecification:{version:3,name:"",description:"",repotag:"",owner:"",ports:"",domains:"",enviromentParameters:"",commands:"",containerPorts:"",containerData:"",instances:3,cpu:null,ram:null,hdd:null,tiered:!1,cpubasic:null,rambasic:null,hddbasic:null,cpusuper:null,ramsuper:null,hddsuper:null,cpubamf:null,rambamf:null,hddbamf:null},instances:{data:[],fields:[{key:"show_details",label:""},{key:"ip",label:"IP Address",sortable:!0},{key:"continent",label:"Continent",sortable:!0},{key:"country",label:"Country",sortable:!0},{key:"region",label:"Region",sortable:!0},{key:"visit",label:"Visit"}],perPage:10,pageOptions:[10,25,50,100],sortBy:"",sortDesc:!1,sortDirection:"asc",filter:"",filterOn:[],totalRows:1,currentPage:1},total:"",downloaded:"",downloadedSize:"",abortToken:{},deploymentAddress:"",appPricePerSpecs:0,maxInstances:100,minInstances:3,globalZelidAuthorized:!1,monitoringStream:{},statsFields:[{key:"timestamp",label:"Date"},{key:"cpu",label:"CPU"},{key:"memory",label:"RAM"},{key:"disk",label:"DISK"},{key:"net",label:"NET I/O"},{key:"block",label:"BLOCK I/O"},{key:"pids",label:"PIDS"}],possibleLocations:[],allowedGeolocations:{},forbiddenGeolocations:{},numberOfGeolocations:1,numberOfNegativeGeolocations:1,minExpire:5e3,maxExpire:264e3,extendSubscription:!0,daemonBlockCount:-1,expirePosition:2,expireOptions:[{value:5e3,label:"1 week",time:6048e5},{value:11e3,label:"2 weeks",time:12096e5},{value:22e3,label:"1 month",time:2592e6},{value:66e3,label:"3 months",time:7776e6},{value:132e3,label:"6 months",time:15552e6},{value:264e3,label:"1 year",time:31536e6}],tosAgreed:!1,marketPlaceApps:[],generalMultiplier:1,enterpriseNodes:[],selectedEnterpriseNodes:[],enterprisePublicKeys:[],maximumEnterpriseNodes:120,entNodesTable:{fields:[{key:"show_details",label:""},{key:"ip",label:"IP Address",sortable:!0},{key:"payment_address",label:"Node Address",sortable:!0},{key:"tier",label:"Tier",sortable:!0},{key:"score",label:"Score",sortable:!0},{key:"actions",label:"Actions"}],perPage:10,pageOptions:[5,10,25,50,100],sortBy:"",sortDesc:!1,sortDirection:"asc",filter:"",filterOn:[],currentPage:1},entNodesSelectTable:{fields:[{key:"show_details",label:""},{key:"ip",label:"IP Address",sortable:!0},{key:"payment_address",label:"Node Address",sortable:!0},{key:"tier",label:"Tier",sortable:!0},{key:"score",label:"Enterprise Score",sortable:!0},{key:"actions",label:"Actions"}],perPage:25,pageOptions:[5,10,25,50,100],sortBy:"",sortDesc:!1,sortDirection:"asc",filter:"",filterOn:[],currentPage:1,totalRows:1},chooseEnterpriseDialog:!1,isPrivateApp:!1,signClient:null,masterIP:"",masterSlaveApp:!1}},computed:{skin(){return(0,Je.Z)().skin.value},zelidHeader(){const t=localStorage.getItem("zelidauth"),e={zelidauth:t};return e},ipAddress(){const t=os.get("backendURL");if(t)return`${os.get("backendURL").split(":")[0]}:${os.get("backendURL").split(":")[1]}`;const{hostname:e}=window.location;return`http://${e}`},filesToUpload(){return this.files.length>0&&this.files.some((t=>!t.uploading&&!t.uploaded&&0===t.progress))},computedFileProgress(){return this.fileProgress},downloadLabel(){this.totalMB=this.backupList.reduce(((t,e)=>t+parseFloat(e.file_size)),2);const t=(this.downloadedSize/1048576).toFixed(2);return t===this.totalMB&&setTimeout((()=>{this.showProgressBar=!1}),5e3),`${t} / ${this.totalMB} MB`},isValidUrl(){const t=/^(http|https):\/\/[^\s]+$/,e=this.restoreRemoteUrl.split("?"),s=e[0];return""===this.restoreRemoteUrl||s.endsWith(".tar.gz")&&t.test(s)},urlValidationState(){return!!this.isValidUrl&&null},urlValidationMessage(){return this.isValidUrl?null:"Please enter a valid URL ending with .tar.gz"},computedRestoreRemoteURLFields(){return this.RestoreTableBuilder("URL")},computedRestoreUploadFileFields(){return this.RestoreTableBuilder("File_name")},checkpointsTable(){return[{key:"name",label:"Name",thStyle:{width:"70%"}},{key:"date",label:"Date",thStyle:{width:"20%"}},{key:"action",label:"Action",thStyle:{width:"5%"}}]},componentsTable1(){return[{key:"component",label:"Component Name",thStyle:{width:"30%"}},{key:"file_url",label:"URL",thStyle:{width:"55%"}},{key:"file_size",label:"Size",thStyle:{width:"10%"}},{key:"actions",label:"Actions",thStyle:{width:"5%"},class:"text-center"}]},componentAvailableOptions(){return 1===this.components.length&&(this.selectedBackupComponents=this.components),this.components.filter((t=>-1===this.selectedBackupComponents.indexOf(t)))},remoteFileComponents(){return 1===this.components.length&&(this.restoreRemoteFile=this.components[0],!0)},remoteUrlComponents(){return 1===this.components.length&&(this.restoreRemoteUrlComponent=this.components[0],!0)},isComposeSingle(){return this.appSpecification.version<=3||1===this.appSpecification.compose?.length},selectedOptionText(){const t=this.options.flatMap((t=>t.options)).find((t=>t===this.selectedCmd));return t||""},selectedOptionTextStyle(){return{color:"red",backgroundColor:"rgba(128, 128, 128, 0.1)",fontWeight:"bold",padding:"4px 8px",borderRadius:"4px",marginRight:"10px",marginLeft:"10px"}},...(0,G.rn)("flux",["config","privilege"]),instancesLocked(){try{if(this.appUpdateSpecification.name&&this.marketPlaceApps.length){const t=this.marketPlaceApps.find((t=>this.appUpdateSpecification.name.toLowerCase().startsWith(t.name.toLowerCase())));if(t&&t.lockedValues&&t.lockedValues.includes("instances"))return!0}return!1}catch(t){return console.log(t),!1}},priceMultiplier(){try{if(this.appUpdateSpecification.name&&this.marketPlaceApps.length){const t=this.marketPlaceApps.find((t=>this.appUpdateSpecification.name.toLowerCase().startsWith(t.name.toLowerCase())));if(t&&t.multiplier>1)return t.multiplier*this.generalMultiplier}return this.generalMultiplier}catch(t){return console.log(t),this.generalMultiplier}},callbackValue(){const{protocol:t,hostname:e,port:s}=window.location;let a="";a+=t,a+="//";const i=/[A-Za-z]/g;if(e.match(i)){const t=e.split(".");t[0]="api",a+=t.join(".")}else{if("string"===typeof e&&this.$store.commit("flux/setUserIp",e),+s>16100){const t=+s+1;this.$store.commit("flux/setFluxPort",t)}a+=e,a+=":",a+=this.config.apiPort}const o=os.get("backendURL")||a,n=`${o}/id/providesign`;return encodeURI(n)},isAppOwner(){const t=localStorage.getItem("zelidauth"),e=is.parse(t);return!!(t&&e&&e.zelid&&this.selectedAppOwner===e.zelid)},validTill(){const t=this.timestamp+36e5;return t},subscribedTill(){if(this.appUpdateSpecification.expire){const t=this.expireOptions.find((t=>t.value===this.appUpdateSpecification.expire));if(t){const e=this.timestamp+t.time;return e}const e=this.appUpdateSpecification.expire,s=12e4,a=e*s,i=this.timestamp+a;return i}const t=this.timestamp+2592e6;return t},isApplicationInstalledLocally(){if(this.installedApps){const t=this.installedApps.find((t=>t.name===this.appName));return!!t}return!1},applicationManagementAndStatus(){console.log(this.getAllAppsResponse);const t=this.getAllAppsResponse.data.find((t=>t.Names[0]===this.getAppDockerNameIdentifier()))||{},e={name:this.appName,state:t.State||"Unknown state",status:t.Status||"Unknown status"};e.state=e.state.charAt(0).toUpperCase()+e.state.slice(1),e.status=e.status.charAt(0).toUpperCase()+e.status.slice(1);let s=`${e.name} - ${e.state} - ${e.status}`;if(this.appSpecification&&this.appSpecification.version>=4){s=`${this.appSpecification.name}:`;for(const t of this.appSpecification.compose){const e=this.getAllAppsResponse.data.find((e=>e.Names[0]===this.getAppDockerNameIdentifier(`${t.name}_${this.appSpecification.name}`)))||{},a={name:t.name,state:e.State||"Unknown state",status:e.Status||"Unknown status"};a.state=a.state.charAt(0).toUpperCase()+a.state.slice(1),a.status=a.status.charAt(0).toUpperCase()+a.status.slice(1);const i=` ${a.name} - ${a.state} - ${a.status},`;s+=i}s=s.substring(0,s.length-1)}return s},constructAutomaticDomainsGlobal(){if(!this.callBResponse.data)return"loading...";if(console.log(this.callBResponse.data),!this.callBResponse.data.name)return"loading...";const t=this.callBResponse.data.name,e=t.toLowerCase();if(!this.callBResponse.data.compose){const t=JSON.parse(JSON.stringify(this.callBResponse.data.ports)),s=[`${e}.app.runonflux.io`];for(let a=0;a{for(let a=0;a=2&&s.push(` ${i} ${a}s`),t%=e[a]}return s},getNewExpireLabel(){if(-1===this.daemonBlockCount)return"Not possible to calculate expiration";const t=this.callBResponse.data.expire||22e3,e=this.callBResponse.data.height+t-this.daemonBlockCount;if(e<1)return"Application Expired";this.minutesRemaining=2*e;const s=this.minutesToString;return`${s[0]}, ${s[1]}, ${s[2]}`}},watch:{isComposeSingle(t){t&&this.appSpecification.version>=4&&(this.selectedApp=this.appSpecification.compose[0].name)},appUpdateSpecification:{handler(){this.dataToSign="",this.signature="",this.timestamp=null,this.dataForAppUpdate={},this.updateHash="",null!==this.websocket&&(this.websocket.close(),this.websocket=null)},deep:!0},expirePosition:{handler(){this.dataToSign="",this.signature="",this.timestamp=null,this.dataForAppUpdate={},this.updateHash="",null!==this.websocket&&(this.websocket.close(),this.websocket=null)}},isPrivateApp(t){this.appUpdateSpecification.version>=7&&!1===t&&(this.appUpdateSpecification.nodes=[],this.appUpdateSpecification.compose.forEach((t=>{t.secrets="",t.repoauth=""})),this.selectedEnterpriseNodes=[]),this.allowedGeolocations={},this.forbiddenGeolocations={},this.dataToSign="",this.signature="",this.timestamp=null,this.dataForAppUpdate={},this.updateHash="",null!==this.websocket&&(this.websocket.close(),this.websocket=null)}},mounted(){this.initMMSDK(),this.callBResponse.data="",this.callBResponse.status="",this.appSpecification={},this.callResponse.data="",this.callResponse.status="",this.monitoringStream={},this.appExec.cmd="",this.appExec.env="",this.checkFluxCommunication(),this.getAppOwner(),this.getGlobalApplicationSpecifics(),this.appsGetListAllApps(),s.g||this.getInstalledApplicationSpecifics(),this.appsDeploymentInformation(),this.getGeolocationData(),this.getMarketPlace(),this.getMultiplier(),this.getEnterpriseNodes()},methods:{handleRadioClick(){"Upload File"===this.selectedRestoreOption&&this.loadBackupList(this.appName,"upload","files"),console.log("Radio button clicked. Selected option:",this.selectedOption)},getUploadFolder(t,e){const s=this.config.apiPort,a=encodeURIComponent(t),i=encodeURIComponent(e);return`${this.ipAddress}:${s}/ioutils/fileupload/${a}/${i}/${this.appName}`},addAndConvertFileSizes(t,e="auto",s=2){const a={B:1,KB:1024,MB:1048576,GB:1073741824},i=(t,e)=>t/a[e.toUpperCase()],o=(t,e)=>{const a="B"===e?t.toFixed(0):t.toFixed(s);return`${a} ${e}`};let n;if(Array.isArray(t)&&t.length>0)n=+t.reduce(((t,e)=>t+(e.file_size||0)),0);else{if("number"!==typeof+t)return console.error("Invalid sizes parameter"),"N/A";n=+t}if(isNaN(n))return console.error("Total size is not a valid number"),"N/A";if("auto"===e){let t,e=n;return Object.keys(a).forEach((s=>{const a=i(n,s);a>=1&&(void 0===e||ae.file_name===t[0].name&&e.component!==this.restoreRemoteFile));if(-1!==a)return this.showToast("warning",`'${s.name}' is already in the upload queue for other component.`),!1;const i=this.files.findIndex((t=>t.component===this.restoreRemoteFile));-1!==i?this.$set(this.files,i,{selected_file:s,uploading:!1,uploaded:!1,progress:0,path:`${this.volumePath}/backup/upload`,component:this.restoreRemoteFile,file_name:`backup_${this.restoreRemoteFile.toLowerCase()}.tar.gz`,file_size:s.size}):this.files.push({selected_file:s,uploading:!1,uploaded:!1,progress:0,path:`${this.volumePath}/backup/upload`,component:this.restoreRemoteFile,file_name:`backup_${this.restoreRemoteFile.toLowerCase()}.tar.gz`,file_size:s.size})}return!0},removeFile(t){this.files=this.files.filter((e=>e.selected_file.name!==t.selected_file.name))},async processChunks(t,e){const s={restore_upload:"restoreFromUploadStatus",restore_remote:"restoreFromRemoteURLStatus",backup:"tarProgress"};for(const a of t)if(""!==a){const t=s[e];t&&(this[t]=a,"restore_upload"===e&&a.includes("Error:")?(console.log(a),this.changeAlert("danger",a,"showTopUpload",!0)):"restore_upload"===e&&a.includes("Finalizing")?setTimeout((()=>{this.changeAlert("success","Restore completed successfully","showTopUpload",!0)}),5e3):"restore_remote"===e&&a.includes("Error:")?this.changeAlert("danger",a,"showTopRemote",!0):"restore_remote"===e&&a.includes("Finalizing")&&setTimeout((()=>{this.changeAlert("success","Restore completed successfully","showTopRemote",!0),this.restoreRemoteUrlItems=[]}),5e3))}},changeAlert(t,e,s,a){this.alertVariant=t,this.alertMessage=e,this[s]=a},startUpload(){this.showTopUpload=!1;const t=this;return new Promise((async(e,s)=>{try{this.restoreFromUpload=!0,this.restoreFromUploadStatus="Uploading...";const s=this.files.map((t=>new Promise((async(e,s)=>{if(t.uploaded||t.uploading||!t.selected_file)e();else try{await this.upload(t),e()}catch(a){s(a)}}))));await Promise.all(s),this.files.forEach((t=>{t.uploading=!1,t.uploaded=!1,t.progress=0})),this.restoreFromUploadStatus="Initializing restore jobs...";const a=this.buildPostBody(this.appSpecification,"restore","upload");let i;for(const t of this.files)i=this.updateJobStatus(a,t.component,"restore");const o=this.config.apiPort,n=localStorage.getItem("zelidauth"),r={zelidauth:n,"Content-Type":"application/json","Access-Control-Allow-Origin":"*",Connection:"keep-alive"},l=await fetch(`${this.ipAddress}:${o}/apps/appendrestoretask`,{method:"POST",body:JSON.stringify(i),headers:r}),c=l.body.getReader();await new Promise(((e,s)=>{function a(){c.read().then((async({done:s,value:i})=>{if(s)return void e();const o=new TextDecoder("utf-8").decode(i),n=o.split("\n");await t.processChunks(n,"restore_upload"),a()}))}a()})),this.restoreFromUpload=!1,this.restoreFromUploadStatus="",this.loadBackupList(this.appName,"upload","files"),e()}catch(a){s(a)}}))},upload(t){return new Promise(((e,s)=>{const a=this;if("undefined"===typeof XMLHttpRequest)return void s("XMLHttpRequest is not supported.");const i=new XMLHttpRequest,o=this.getUploadFolder(t.path,t.file_name);i.upload&&(i.upload.onprogress=function(e){e.total>0&&(e.percent=e.loaded/e.total*100),t.progress=e.percent});const n=new FormData;n.append(t.selected_file.name,t.selected_file),t.uploading=!0,i.onerror=function(e){a.restoreFromUpload=!1,a.restoreFromUploadStatus="",a.files.forEach((t=>{t.uploading=!1,t.uploaded=!1,t.progress=0})),a.showToast("danger",`An error occurred while uploading ${t.selected_file.name}, try to relogin`),s(e)},i.onload=function(){if(i.status<200||i.status>=300)return console.error(i.status),a.restoreFromUpload=!1,a.restoreFromUploadStatus="",a.files.forEach((t=>{t.uploading=!1,t.uploaded=!1,t.progress=0})),a.showToast("danger",`An error occurred while uploading '${t.selected_file.name}' - Status code: ${i.status}`),void s(i.status);t.uploaded=!0,t.uploading=!1,a.$emit("complete"),e()},i.open("post",o,!0);const r=this.zelidHeader||{},l=Object.keys(r);for(let t=0;tt+parseFloat(e.file_size)),0)},RestoreTableBuilder(t){const e=t.toString(),s=e.split("_")[0];return[{key:"component",label:"Component Name",thStyle:{width:"25%"}},{key:t.toString().toLowerCase(),label:s,thStyle:{width:"70%"}},{key:"file_size",label:"Size",thStyle:{width:"10%"}},{key:"actions",label:"Action",thStyle:{width:"5%"}}]},addAllTags(){this.selectedBackupComponents=[...this.selectedBackupComponents,...this.components]},clearSelected(){this.$refs.selectableTable.clearSelected()},selectAllRows(){this.$refs.selectableTable.selectAllRows()},selectStorageOption(t){this.selectedStorageMethod=t},buildPostBody(t,e,s=""){const a={appname:t.name,..."restore"===e?{type:s}:{},[e]:t.compose.map((t=>({component:t.name,[e]:!1,..."restore"===e&&"remote"===s?{url:""}:{}})))};return a},updateJobStatus(t,e,s,a=[]){const i=t[s].find((t=>t.component===e));if(i){if(i[s]=!0,"restore"===s&&"remote"===t?.type){const t=a.find((t=>t.component===e));t?(i.url=t.url||"",console.log(`${t.url}`)):console.log(`URL info not found for component ${e}.`)}console.log(`Status for ${e} set to true for ${s}.`)}else console.log(`Component ${e} not found in the ${s} array.`);return t},async createBackup(t,e){if(0===this.selectedBackupComponents?.length)return;this.backupProgress=!0,this.tarProgress="Initializing backup jobs...";const s=localStorage.getItem("zelidauth"),a=this.config.apiPort,i={zelidauth:s,"Content-Type":"application/json","Access-Control-Allow-Origin":"*",Connection:"keep-alive"},o=this.buildPostBody(this.appSpecification,"backup");let n;for(const p of e)n=this.updateJobStatus(o,p,"backup");const r=await fetch(`${this.ipAddress}:${a}/apps/appendbackuptask`,{method:"POST",body:JSON.stringify(n),headers:i}),l=this,c=r.body.getReader();await new Promise(((t,e)=>{function s(){c.read().then((async({done:e,value:a})=>{if(e)return void t();const i=new TextDecoder("utf-8").decode(a),o=i.split("\n");await l.processChunks(o,"backup"),s()}))}s()})),setTimeout((()=>{this.backupProgress=!1}),5e3),this.loadBackupList()},onRowSelected(t){this.backupToUpload=t.map((t=>{const e=t.component,s=this.backupList.find((t=>t.component===e));return{component:e,file:s?s.file:null}})).filter((t=>null!==t.file))},applyFilter(){this.$nextTick((()=>{this.checkpoints.forEach((t=>{t._showDetails=!0}))})),console.log(this.appSpecification.compose),this.components=this.appSpecification.compose.map((t=>t.name))},onFilteredBackup(t){this.totalRows=t.length,this.currentPage=1},addAllBackupComponents(t){const e=this.checkpoints.find((e=>e.timestamp===t)),s=e.components.map((t=>({component:t.component,file_url:t.file_url,timestamp:e.timestamp,file_size:t.file_size})));this.newComponents=s},addComponent(t,e){const s=this.newComponents.findIndex((e=>e.component===t.component));-1!==s?this.$set(this.newComponents,s,{timestamp:e,component:t.component,file_url:t.file_url,file_size:t.file_size}):this.newComponents.push({component:t.component,timestamp:e,file_url:t.file_url,file_size:t.file_size})},formatName(t){return`backup_${t.timestamp}`},formatDateTime(t,e=!1){const s=t>1e12,a=s?new Date(t):new Date(1e3*t);return e&&a.setHours(a.getHours()+24),a.toLocaleString()},addRemoteFile(){this.selectFiles()},async restoreFromRemoteFile(){const t=localStorage.getItem("zelidauth");this.showTopRemote=!1,this.downloadingFromUrl=!0,this.restoreFromRemoteURLStatus="Initializing restore jobs...";const e=this.config.apiPort,s={zelidauth:t,"Content-Type":"application/json","Access-Control-Allow-Origin":"*",Connection:"keep-alive"},a=this.buildPostBody(this.appSpecification,"restore","remote");let i;for(const l of this.restoreRemoteUrlItems)i=this.updateJobStatus(a,l.component,"restore",this.restoreRemoteUrlItems);const o=await fetch(`${this.ipAddress}:${e}/apps/appendrestoretask`,{method:"POST",body:JSON.stringify(i),headers:s}),n=this,r=o.body.getReader();await new Promise(((t,e)=>{function s(){r.read().then((async({done:e,value:a})=>{if(e)return void t();const i=new TextDecoder("utf-8").decode(a),o=i.split("\n");await n.processChunks(o,"restore_remote"),s()}))}s()})),this.downloadingFromUrl=!1,this.restoreFromRemoteURLStatus=""},async addRemoteUrlItem(t,e){if(this.isValidUrl&&""!==this.restoreRemoteUrl.trim()&&null!==this.restoreRemoteUrlComponent){const s=localStorage.getItem("zelidauth");if(this.remoteFileSizeResponse=await Y.getRemoteFileSize(s,encodeURIComponent(this.restoreRemoteUrl.trim()),"B",0,!0,this.appName),"success"!==this.remoteFileSizeResponse.data?.status)return void this.showToast("danger",this.remoteFileSizeResponse.data?.data.message||this.remoteFileSizeResponse.data?.massage);if(this.volumeInfoResponse=await Y.getVolumeDataOfComponent(s,t,e,"B",0,"size,available,mount"),"success"!==this.volumeInfoResponse.data?.status)return void this.showToast("danger",this.volumeInfoResponse.data?.data.message||this.volumeInfoResponse.data?.data);if(this.remoteFileSizeResponse.data.data>this.volumeInfoResponse.data.data.available)return void this.showToast("danger",`File is too large (${this.addAndConvertFileSizes(this.remoteFileSizeResponse.data.data)})...`);const a=this.restoreRemoteUrlItems.findIndex((t=>t.url===this.restoreRemoteUrl));if(-1!==a)return void this.showToast("warning",`'${this.restoreRemoteUrl}' is already in the download queue for other component.`);const i=this.restoreRemoteUrlItems.findIndex((t=>t.component===this.restoreRemoteUrlComponent));if(0===this.remoteFileSizeResponse.data.data||null===this.remoteFileSizeResponse.data.data)return;-1!==i?(this.restoreRemoteUrlItems[i].url=this.restoreRemoteUrl,this.restoreRemoteUrlItems[i].file_size=this.remoteFileSizeResponse.data.data):this.restoreRemoteUrlItems.push({url:this.restoreRemoteUrl,component:this.restoreRemoteUrlComponent,file_size:this.remoteFileSizeResponse.data.data})}},async deleteItem(t,e,s="",a=""){const i=e.findIndex((t=>t.file===s));if(-1!==i&&!e[i]?.selected_file&&"upload"===a){console.log(e[i].file);const t=localStorage.getItem("zelidauth");await Y.removeBackupFile(t,encodeURIComponent(e[i].file),this.appName)}e.splice(t,1)},async loadBackupList(t=this.appName,e="local",s="backupList"){const a=localStorage.getItem("zelidauth"),i=[];for(const o of this.components)this.volumeInfo=await Y.getVolumeDataOfComponent(a,t,o,"B",0,"mount"),this.volumePath=this.volumeInfo.data?.data,this.backupFile=await Y.getBackupList(a,encodeURIComponent(`${this.volumePath.mount}/backup/${e}`),"B",0,!0,t),this.backupItem=this.backupFile.data?.data,Array.isArray(this.backupItem)&&(this.BackupItem={isActive:!1,component:o,create:+this.backupItem[0].create,file_size:this.backupItem[0].size,file:`${this.volumePath.mount}/backup/${e}/${this.backupItem[0].name}`,file_name:`${this.backupItem[0].name}`},i.push(this.BackupItem));console.log(JSON.stringify(s)),this[s]=i},allDownloadsCompleted(){return this.computedFileProgress.every((t=>100===t.progress))},updateFileProgress(t,e,s,a,i){this.$nextTick((()=>{const t=this.fileProgress.findIndex((t=>t.fileName===i));-1!==t?this.$set(this.fileProgress,t,{fileName:i,progress:e}):this.fileProgress.push({fileName:i,progress:e})}))},deleteRestoreBackup(t,e,s=0){const a=e.findIndex((t=>t.timestamp===s));e.splice(a,1),0!==s&&(this.newComponents=this.newComponents.filter((t=>t.timestamp!==s)))},async deleteLocalBackup(t,e,s=0){const a=localStorage.getItem("zelidauth");if(0===s){for(const t of e){const e=t.file;await Y.removeBackupFile(a,encodeURIComponent(e),this.appName)}this.backupList=[],this.backupToUpload=[]}else{this.status=await Y.removeBackupFile(a,encodeURIComponent(s),this.appName);const i=e.findIndex((e=>e.component===t));e.splice(i,1)}},async downloadAllBackupFiles(t){try{this.showProgressBar=!0;const e=localStorage.getItem("zelidauth"),s=this,a={headers:{zelidauth:e},responseType:"blob",onDownloadProgress(t){const{loaded:e,total:a,target:i}=t,o=decodeURIComponent(i.responseURL),n=o.lastIndexOf("/"),r=-1!==n?o.slice(0,n):o,l=r.split("/").pop(),c=e/a*100,p=s.backupList.find((t=>t.file.endsWith(l)));s.updateFileProgress(l,c,e,a,p.component)}},i=t.map((async t=>{try{const{file:e}=t,i=e.split("/"),o=i[i.length-1],n=await Y.justAPI().get(`/backup/downloadlocalfile/${encodeURIComponent(e)}/${s.appName}`,a),r=new Blob([n.data]),l=window.URL.createObjectURL(r),c=document.createElement("a");return c.href=l,c.setAttribute("download",o),document.body.appendChild(c),c.click(),document.body.removeChild(c),window.URL.revokeObjectURL(l),!0}catch(e){return console.error("Error downloading file:",e),!1}})),o=await Promise.all(i);o.every((t=>t))?console.log("All downloads completed successfully"):console.error("Some downloads failed. Check the console for details.")}catch(e){console.error("Error downloading files:",e)}finally{setTimeout((()=>{this.showProgressBar=!1,this.fileProgress=[]}),5e3)}},async initMMSDK(){try{await es.init(),ss=es.getProvider()}catch(t){console.log(t)}},connectTerminal(t){if(this.appSpecification.version>=4){const t=Object.values(this.appSpecification.compose),e=t.some((t=>t.name===this.selectedApp));if(!e)return void this.showToast("danger","Please select an container app before connecting.")}const{protocol:e,hostname:s,port:a}=window.location;let i="",o=0;i+=e,i+="//";const n=/[A-Za-z]/g;if(s.match(n)){const t=s.split(".");t[0]="api",i+=t.join(".")}else i+=s,i+=":",i+=+a+1||this.config.apiPort;const r=os.get("backendURL")||i;if(!(this.selectedApp||this.appSpecification.version<=3))return void this.showToast("danger","Please select an container app before connecting.");if(null===this.selectedCmd)return void this.showToast("danger","No command selected.");if("Custom"===this.selectedCmd){if(!this.customValue)return void this.showToast("danger","Please enter a custom command.");console.log(`Custom command: ${this.customValue}`),console.log(`App name: ${t}`)}else console.log(`Selected command: ${this.selectedCmd}`),console.log(`App name: ${t}`);this.isConnecting=!0,this.terminal=new tt.Terminal({allowProposedApi:!0,cursorBlink:!0,theme:{foreground:"white",background:"black"}});const l=localStorage.getItem("zelidauth");this.socket=Ke.connect(r);let c="";this.enableUser&&(c=this.userInputValue),this.customValue?this.socket.emit("exec",l,t,this.customValue,this.envInputValue,c):this.socket.emit("exec",l,t,this.selectedCmd,this.envInputValue,c),this.terminal.open(this.$refs.terminalElement);const p=new et.FitAddon;this.terminal.loadAddon(p);const d=new st.WebLinksAddon;this.terminal.loadAddon(d);const u=new at.Unicode11Addon;this.terminal.loadAddon(u);const h=new it.SerializeAddon;this.terminal.loadAddon(h),this.terminal._initialized=!0,this.terminal.onResize((t=>{const{cols:e,rows:s}=t;console.log("Resizing to",{cols:e,rows:s}),this.socket.emit("resize",{cols:e,rows:s})})),this.terminal.onTitleChange((t=>{console.log(t)})),window.onresize=()=>{p.fit()},this.terminal.onData((t=>{this.socket.emit("cmd",t)})),this.socket.on("error",(t=>{this.showToast("danger",t),this.disconnectTerminal()})),this.socket.on("show",(t=>{0===o&&(o=1,this.customValue||(this.socket.emit("cmd","export TERM=xterm\n"),"/bin/bash"===this.selectedCmd&&this.socket.emit("cmd",'PS1="\\[\\033[01;31m\\]\\u\\[\\033[01;33m\\]@\\[\\033[01;36m\\]\\h \\[\\033[01;33m\\]\\w \\[\\033[01;35m\\]\\$ \\[\\033[00m\\]"\n'),this.socket.emit("cmd","alias ls='ls --color'\n"),this.socket.emit("cmd","alias ll='ls -alF'\n"),this.socket.emit("cmd","clear\n")),setTimeout((()=>{this.isConnecting=!1,this.isVisible=!0,this.$nextTick((()=>{setTimeout((()=>{this.terminal.focus(),p.fit()}),500)}))}),1400)),this.terminal.write(t)})),this.socket.on("end",(()=>{this.disconnectTerminal()}))},disconnectTerminal(){this.socket&&this.socket.disconnect(),this.terminal&&this.terminal.dispose(),this.isVisible=!1,this.isConnecting=!1},onSelectChangeCmd(){"Custom"!==this.selectedCmd&&(this.customValue="")},onSelectChangeEnv(){this.enableEnvironment||(this.envInputValue="")},onSelectChangeUser(){this.enableUser||(this.userInputValue="")},onFilteredSelection(t){this.entNodesSelectTable.totalRows=t.length,this.entNodesSelectTable.currentPage=1},async getMarketPlace(){try{const t=await as.get("https://stats.runonflux.io/marketplace/listapps");"success"===t.data.status&&(this.marketPlaceApps=t.data.data)}catch(t){console.log(t)}},async getMultiplier(){try{const t=await as.get("https://stats.runonflux.io/apps/multiplier");"success"===t.data.status&&"number"===typeof t.data.data&&t.data.data>=1&&(this.generalMultiplier=t.data.data)}catch(t){console.log(t)}},async appsDeploymentInformation(){const t=await Z.Z.appsDeploymentInformation(),{data:e}=t.data;"success"===t.data.status?this.deploymentAddress=e.address:this.showToast("danger",t.data.data.message||t.data.data)},updateManagementTab(t){switch(this.callResponse.data="",this.callResponse.status="",this.appExec.cmd="",this.appExec.env="",this.output="",this.backupToUpload=[],11!==t&&this.disconnectTerminal(),t){case 1:this.getInstalledApplicationSpecifics(),this.getGlobalApplicationSpecifics();break;case 2:this.getApplicationInspect();break;case 3:this.getApplicationStats();break;case 4:this.getApplicationMonitoring();break;case 5:this.getApplicationChanges();break;case 6:this.getApplicationProcesses();break;case 7:this.getApplicationLogs();break;case 10:this.applyFilter(),this.loadBackupList();break;case 13:this.getGlobalApplicationSpecifics();break;case 14:this.getZelidAuthority();break;case 15:this.getApplicationLocations();break;case 16:this.getGlobalApplicationSpecifics();break;default:break}},async appsGetListAllApps(){const t=await Z.Z.listAllApps();console.log(t),this.getAllAppsResponse.status=t.data.status,this.getAllAppsResponse.data=t.data.data},goBackToApps(){this.$emit("back")},async initiateSignWSUpdate(){if(this.dataToSign.length>1800){const t=this.dataToSign,e={publicid:Math.floor(999999999999999*Math.random()).toString(),public:t};await as.post("https://storage.runonflux.io/v1/public",e);const s=`zel:?action=sign&message=FLUX_URL=https://storage.runonflux.io/v1/public/${e.publicid}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${this.callbackValue}`;window.location.href=s}else window.location.href=`zel:?action=sign&message=${this.dataToSign}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${this.callbackValue}`;const t=this,{protocol:e,hostname:s,port:a}=window.location;let i="";i+=e,i+="//";const o=/[A-Za-z]/g;if(s.match(o)){const t=s.split(".");t[0]="api",i+=t.join(".")}else{if("string"===typeof s&&this.$store.commit("flux/setUserIp",s),+a>16100){const t=+a+1;this.$store.commit("flux/setFluxPort",t)}i+=s,i+=":",i+=this.config.apiPort}let n=os.get("backendURL")||i;n=n.replace("https://","wss://"),n=n.replace("http://","ws://");const r=this.appUpdateSpecification.owner+this.timestamp,l=`${n}/ws/sign/${r}`,c=new WebSocket(l);this.websocket=c,c.onopen=e=>{t.onOpen(e)},c.onclose=e=>{t.onClose(e)},c.onmessage=e=>{t.onMessage(e)},c.onerror=e=>{t.onError(e)}},onError(t){console.log(t)},onMessage(t){const e=is.parse(t.data);"success"===e.status&&e.data&&(this.signature=e.data.signature),console.log(e),console.log(t)},onClose(t){console.log(t)},onOpen(t){console.log(t)},async getInstalledApplicationSpecifics(){const t=await Z.Z.getInstalledAppSpecifics(this.appName);console.log(t),"error"!==t.data.status&&t.data.data[0]?(this.callResponse.status=t.data.status,this.callResponse.data=t.data.data[0],this.appSpecification=t.data.data[0]):this.showToast("danger",t.data.data.message||t.data.data)},getExpirePosition(t){const e=this.expireOptions.findIndex((e=>e.value===t));return e||0===e?e:2},async getGlobalApplicationSpecifics(){const t=await Z.Z.getAppSpecifics(this.appName);if(console.log(t),"error"===t.data.status)this.showToast("danger",t.data.data.message||t.data.data),this.callBResponse.status=t.data.status;else{this.callBResponse.status=t.data.status,this.callBResponse.data=t.data.data;const s=t.data.data;if(console.log(s),this.appUpdateSpecification=JSON.parse(JSON.stringify(s)),this.appUpdateSpecification.instances=s.instances||3,this.instancesLocked&&(this.maxInstances=this.appUpdateSpecification.instances),this.appUpdateSpecification.version<=3)this.appUpdateSpecification.version=3,this.appUpdateSpecification.ports=s.port||this.ensureString(s.ports),this.appUpdateSpecification.domains=this.ensureString(s.domains),this.appUpdateSpecification.enviromentParameters=this.ensureString(s.enviromentParameters),this.appUpdateSpecification.commands=this.ensureString(s.commands),this.appUpdateSpecification.containerPorts=s.containerPort||this.ensureString(s.containerPorts);else{if(this.appUpdateSpecification.version>3&&this.appUpdateSpecification.compose.find((t=>t.containerData.includes("g:")))&&(this.masterSlaveApp=!0),this.appUpdateSpecification.version<=7&&(this.appUpdateSpecification.version=7),this.appUpdateSpecification.contacts=this.ensureString([]),this.appUpdateSpecification.geolocation=this.ensureString([]),this.appUpdateSpecification.version>=5){this.appUpdateSpecification.contacts=this.ensureString(s.contacts||[]),this.appUpdateSpecification.geolocation=this.ensureString(s.geolocation||[]);try{this.decodeGeolocation(s.geolocation||[])}catch(e){console.log(e),this.appUpdateSpecification.geolocation=this.ensureString([])}}this.appUpdateSpecification.compose.forEach((t=>{t.ports=this.ensureString(t.ports),t.domains=this.ensureString(t.domains),t.environmentParameters=this.ensureString(t.environmentParameters),t.commands=this.ensureString(t.commands),t.containerPorts=this.ensureString(t.containerPorts),t.secrets=this.ensureString(t.secrets||""),t.repoauth=this.ensureString(t.repoauth||"")})),this.appUpdateSpecification.version>=6&&(this.appUpdateSpecification.expire=this.ensureNumber(s.expire||22e3),this.expirePosition=this.getExpirePosition(this.appUpdateSpecification.expire)),this.appUpdateSpecification.version>=7&&(this.appUpdateSpecification.staticip=this.appUpdateSpecification.staticip??!1,this.appUpdateSpecification.nodes=this.appUpdateSpecification.nodes||[],this.appUpdateSpecification.nodes&&this.appUpdateSpecification.nodes.length&&(this.isPrivateApp=!0),this.appUpdateSpecification.nodes.forEach((async t=>{const e=this.enterprisePublicKeys.find((e=>e.nodeip===t));if(!e){const e=await this.fetchEnterpriseKey(t);if(e){const s={nodeip:t.ip,nodekey:e},a=this.enterprisePublicKeys.find((e=>e.nodeip===t));a||this.enterprisePublicKeys.push(s)}}})),this.enterpriseNodes||await this.getEnterpriseNodes(),this.selectedEnterpriseNodes=[],this.appUpdateSpecification.nodes.forEach((t=>{if(this.enterpriseNodes){const e=this.enterpriseNodes.find((e=>e.ip===t||t===`${e.txhash}:${e.outidx}`));e&&this.selectedEnterpriseNodes.push(e)}else this.showToast("danger","Failed to load Enterprise Node List")})))}}},async update(){const t=localStorage.getItem("zelidauth"),e={type:this.updatetype,version:this.version,appSpecification:this.dataForAppUpdate,timestamp:this.timestamp,signature:this.signature};this.showToast("info","Propagating message accross Flux network...");const s=await Z.Z.updateApp(t,e).catch((t=>{this.showToast("danger",t.message||t)}));console.log(s),"success"===s.data.status?(this.updateHash=s.data.data,console.log(this.updateHash),this.showToast("success",s.data.data.message||s.data.data)):this.showToast("danger",s.data.data.message||s.data.data)},async checkFluxCommunication(){const t=await Z.Z.checkCommunication();"success"===t.data.status?this.fluxCommunication=!0:this.showToast("danger",t.data.data.message||t.data.data)},convertExpire(){return this.expireOptions[this.expirePosition]?this.expireOptions[this.expirePosition].value:22e3},async checkFluxUpdateSpecificationsAndFormatMessage(){try{if(!this.tosAgreed)throw new Error("Please agree to Terms of Service");const t=this.appUpdateSpecification;let e=!1;if(t.version>=7&&(this.constructNodes(),this.appUpdateSpecification.compose.forEach((t=>{if((t.repoauth||t.secrets)&&(e=!0,!this.appUpdateSpecification.nodes.length))throw new Error("Private repositories and secrets can only run on Enterprise Nodes")}))),e){this.showToast("info","Encrypting specifications, this will take a while...");const t=[];for(const e of this.appUpdateSpecification.nodes){const s=this.enterprisePublicKeys.find((t=>t.nodeip===e));if(s)t.push(s.nodekey);else{const s=await this.fetchEnterpriseKey(e);if(s){const a={nodeip:e.ip,nodekey:s},i=this.enterprisePublicKeys.find((t=>t.nodeip===e.ip));i||this.enterprisePublicKeys.push(a),t.push(s)}}}for(const e of this.appUpdateSpecification.compose){if(e.secrets&&!e.secrets.startsWith("-----BEGIN PGP MESSAGE")){const s=await this.encryptMessage(e.secrets,t);if(!s)return;e.secrets=s}if(e.repoauth&&!e.repoauth.startsWith("-----BEGIN PGP MESSAGE")){const s=await this.encryptMessage(e.repoauth,t);if(!s)return;e.repoauth=s}}}e&&this.appUpdateSpecification.compose.forEach((t=>{if(t.secrets&&!t.secrets.startsWith("-----BEGIN PGP MESSAGE"))throw new Error("Encryption failed");if(t.repoauth&&!t.repoauth.startsWith("-----BEGIN PGP MESSAGE"))throw new Error("Encryption failed")})),t.version>=5&&(t.geolocation=this.generateGeolocations()),t.version>=6&&(t.expire=this.convertExpire());const s=await Z.Z.appUpdateVerification(t);if("error"===s.data.status)throw new Error(s.data.data.message||s.data.data);const a=s.data.data,i=await Z.Z.appPrice(a);if(this.appPricePerSpecs=0,"error"===i.data.status)throw new Error(i.data.data.message||i.data.data);this.appPricePerSpecs=Math.ceil(+i.data.data*this.priceMultiplier*100)/100,this.timestamp=Date.now(),this.dataForAppUpdate=a,this.dataToSign=this.updatetype+this.version+JSON.stringify(a)+this.timestamp}catch(t){console.log(t.message),console.error(t),this.showToast("danger",t.message||t)}},async appExecute(t=this.appSpecification.name){try{const e=localStorage.getItem("zelidauth");if(!this.appExec.cmd)return void this.showToast("danger","No commands specified");const s=this.appExec.env?this.appExec.env:"[]",{cmd:a}=this.appExec;this.commandExecuting=!0,console.log("here");const i=await Z.Z.getAppExec(e,t,ls(a),s);console.log(i),"error"===i.data.status?this.showToast("danger",i.data.data.message||i.data.data):(this.commandExecuting=!1,this.callResponse.status=i.status,t.includes("_")?(this.callResponse.data&&Array.isArray(this.callResponse.data)||(this.callResponse.data=[]),this.callResponse.data.unshift({name:t,data:i.data})):this.callResponse.data=i.data)}catch(e){this.commandExecuting=!1,console.log(e),this.showToast("danger",e.message||e)}},cancelDownload(){this.abortToken.cancel("User download cancelled"),this.downloaded="",this.total=""},async downloadApplicationLog(t){const e=this;this.downloaded="",this.total="",this.abortToken=K.Z.cancelToken();const s=localStorage.getItem("zelidauth"),a={headers:{zelidauth:s},responseType:"blob",onDownloadProgress(t){e.downloaded=t.loaded,e.total=t.total}},i=await K.Z.justAPI().get(`/apps/applog/${t}`,a),o=window.URL.createObjectURL(new Blob([i.data])),n=document.createElement("a");n.href=o,n.setAttribute("download","app.log"),document.body.appendChild(n),n.click()},getAppIdentifier(t=this.appName){return t&&t.startsWith("zel")||t&&t.startsWith("flux")?t:"KadenaChainWebNode"===t||"FoldingAtHomeB"===t?`zel${t}`:`flux${t}`},getAppDockerNameIdentifier(t){const e=this.getAppIdentifier(t);return e&&e.startsWith("/")?e:`/${e}`},async getApplicationInspect(){const t=localStorage.getItem("zelidauth"),e=[];if(this.commandExecuting=!0,this.appSpecification.version>=4)for(const s of this.appSpecification.compose){const a=await Z.Z.getAppInspect(t,`${s.name}_${this.appSpecification.name}`);if("error"===a.data.status)this.showToast("danger",a.data.data.message||a.data.data);else{const t={name:s.name,callData:a.data.data};e.push(t)}}else{const s=await Z.Z.getAppInspect(t,this.appName);if("error"===s.data.status)this.showToast("danger",s.data.data.message||s.data.data);else{const t={name:this.appSpecification.name,callData:s.data.data};e.push(t)}console.log(s)}this.commandExecuting=!1,this.callResponse.status="success",this.callResponse.data=e},async getApplicationStats(){const t=localStorage.getItem("zelidauth"),e=[];if(this.commandExecuting=!0,this.appSpecification.version>=4)for(const s of this.appSpecification.compose){const a=await Z.Z.getAppStats(t,`${s.name}_${this.appSpecification.name}`);if("error"===a.data.status)this.showToast("danger",a.data.data.message||a.data.data);else{const t={name:s.name,callData:a.data.data};e.push(t)}}else{const s=await Z.Z.getAppStats(t,this.appName);if("error"===s.data.status)this.showToast("danger",s.data.data.message||s.data.data);else{const t={name:this.appSpecification.name,callData:s.data.data};e.push(t)}console.log(s)}this.commandExecuting=!1,this.callResponse.status="success",this.callResponse.data=e},async getApplicationMonitoring(){const t=localStorage.getItem("zelidauth"),e=[];if(this.appSpecification.version>=4)for(const s of this.appSpecification.compose){const a=await Z.Z.getAppMonitoring(t,`${s.name}_${this.appSpecification.name}`);if("error"===a.data.status)this.showToast("danger",a.data.data.message||a.data.data);else{const t={name:s.name,callData:a.data.data};e.push(t)}}else{const s=await Z.Z.getAppMonitoring(t,this.appName);if("error"===s.data.status)this.showToast("danger",s.data.data.message||s.data.data);else{const t={name:this.appSpecification.name,callData:s.data.data};e.push(t)}console.log(s)}this.callResponse.status="success",this.callResponse.data=e},async getApplicationMonitoringStream(){const t=this,e=localStorage.getItem("zelidauth");if(this.appSpecification.version>=4)for(const s of this.appSpecification.compose){const a={headers:{zelidauth:e},onDownloadProgress(e){t.monitoringStream[`${s.name}_${t.appSpecification.name}`]=JSON.parse(`[${e.target.response.replace(/}{"read/g,'},{"read')}]`)}},i=await Z.Z.justAPI().get(`/apps/appmonitorstream/${s.name}_${this.appSpecification.name}`,a);"error"===i.data.status&&this.showToast("danger",i.data.data.message||i.data.data)}else{const s={headers:{zelidauth:e},onDownloadProgress(e){console.log(e.target.response),t.monitoringStream[t.appName]=JSON.parse(`[${e.target.response.replace(/}{/g,"},{")}]`)}},a=await Z.Z.justAPI().get(`/apps/appmonitorstream/${this.appName}`,s);"error"===a.data.status&&this.showToast("danger",a.data.data.message||a.data.data)}},async stopMonitoring(t,e=!1){this.output="",this.showToast("warning",`Stopping Monitoring of ${t}`);const s=localStorage.getItem("zelidauth"),a=await Z.Z.stopAppMonitoring(s,t,e);"success"===a.data.status?this.showToast("success",a.data.data.message||a.data.data):this.showToast("danger",a.data.data.message||a.data.data),console.log(a)},async startMonitoring(t){this.output="",this.showToast("warning",`Starting Monitoring of ${t}`);const e=localStorage.getItem("zelidauth"),s=await Z.Z.startAppMonitoring(e,t);"success"===s.data.status?this.showToast("success",s.data.data.message||s.data.data):this.showToast("danger",s.data.data.message||s.data.data),console.log(s)},async getApplicationChanges(){const t=localStorage.getItem("zelidauth"),e=[];if(this.commandExecuting=!0,this.appSpecification.version>=4)for(const s of this.appSpecification.compose){const a=await Z.Z.getAppChanges(t,`${s.name}_${this.appSpecification.name}`);if("error"===a.data.status)this.showToast("danger",a.data.data.message||a.data.data);else{const t={name:s.name,callData:a.data.data};e.push(t)}}else{const s=await Z.Z.getAppChanges(t,this.appName);if("error"===s.data.status)this.showToast("danger",s.data.data.message||s.data.data);else{const t={name:this.appSpecification.name,callData:s.data.data};e.push(t)}console.log(s)}this.commandExecuting=!1,this.callResponse.status="success",this.callResponse.data=e},async getApplicationProcesses(){const t=localStorage.getItem("zelidauth"),e=[];if(this.commandExecuting=!0,this.appSpecification.version>=4)for(const s of this.appSpecification.compose){const a=await Z.Z.getAppTop(t,`${s.name}_${this.appSpecification.name}`);if("error"===a.data.status)this.showToast("danger",a.data.data.message||a.data.data);else{const t={name:s.name,callData:a.data.data};e.push(t)}}else{const s=await Z.Z.getAppTop(t,this.appName);if("error"===s.data.status)this.showToast("danger",s.data.data.message||s.data.data);else{const t={name:this.appSpecification.name,callData:s.data.data};e.push(t)}console.log(s)}this.commandExecuting=!1,this.callResponse.status="success",this.callResponse.data=e},async getApplicationLogs(){const t=localStorage.getItem("zelidauth"),e=[];if(this.appSpecification.version>=4)for(const s of this.appSpecification.compose){const a=await Z.Z.getAppLogsTail(t,`${s.name}_${this.appSpecification.name}`);if("error"===a.data.status)this.showToast("danger",a.data.data.message||a.data.data);else{const t={name:s.name,callData:a.data.data};e.push(t)}}else{const s=await Z.Z.getAppLogsTail(t,this.appName);if("error"===s.data.status)this.showToast("danger",s.data.data.message||s.data.data);else{const t={name:this.appSpecification.name,callData:s.data.data};e.push(t)}console.log(s)}this.callResponse.status="success",this.callResponse.data=e},async getApplicationLocations(){const t=await Z.Z.getAppLocation(this.appName);if(console.log(t),"error"===t.data.status)this.showToast("danger",t.data.data.message||t.data.data);else{this.masterIP=null,this.instances.data=[],this.instances.data=t.data.data;for(const t of this.instances.data){const e=t.ip.split(":")[0],s=t.ip.split(":")[1]||16127,a=`https://${e.replace(/\./g,"-")}-${s}.node.api.runonflux.io/flux/geolocation`;let i=!1;const o=await as.get(a).catch((a=>{i=!0,console.log(`Error geting geolocation from ${e}:${s} : ${a}`),t.continent="N/A",t.country="N/A",t.region="N/A"}));!i&&"success"===o.data.status&&o.data.data.continent?(t.continent=o.data.data.continent,t.country=o.data.data.country,t.region=o.data.data.regionName):(t.continent="N/A",t.country="N/A",t.region="N/A")}if(this.instances.totalRows=this.instances.data.length,this.masterSlaveApp){const t=`https://${this.appName}.app.runonflux.io/fluxstatistics?scope=${this.appName};json;norefresh`;let e=!1,s=await as.get(t).catch((t=>{e=!0,console.log(`UImasterSlave: Failed to reach FDM with error: ${t}`),this.masterIP="Failed to Check"}));if(e)return;if(s=s.data,s&&s.length>0){console.log("FDM_Data_Received");const t=s[0].find((t=>1===t.id&&"Server"===t.objType&&"svname"===t.field.name));if(t)return void(this.masterIP=t.value.value.split(":")[0])}this.masterIP="Defining New Primary In Progress"}}},async getAppOwner(){const t=await Z.Z.getAppOwner(this.appName);console.log(t),"error"===t.data.status&&this.showToast("danger",t.data.data.message||t.data.data),this.selectedAppOwner=t.data.data},async stopApp(t){this.output="",this.showToast("warning",`Stopping ${t}`);const e=localStorage.getItem("zelidauth"),s=await Z.Z.stopApp(e,t);"success"===s.data.status?this.showToast("success",s.data.data.message||s.data.data):this.showToast("danger",s.data.data.message||s.data.data),this.appsGetListAllApps(),console.log(s)},async startApp(t){this.output="",this.showToast("warning",`Starting ${t}`);const e=localStorage.getItem("zelidauth"),s=await Z.Z.startApp(e,t);"success"===s.data.status?this.showToast("success",s.data.data.message||s.data.data):this.showToast("danger",s.data.data.message||s.data.data),this.appsGetListAllApps(),console.log(s)},async restartApp(t){this.output="",this.showToast("warning",`Restarting ${t}`);const e=localStorage.getItem("zelidauth"),s=await Z.Z.restartApp(e,t);"success"===s.data.status?this.showToast("success",s.data.data.message||s.data.data):this.showToast("danger",s.data.data.message||s.data.data),this.appsGetListAllApps(),console.log(s)},async pauseApp(t){this.output="",this.showToast("warning",`Pausing ${t}`);const e=localStorage.getItem("zelidauth"),s=await Z.Z.pauseApp(e,t);"success"===s.data.status?this.showToast("success",s.data.data.message||s.data.data):this.showToast("danger",s.data.data.message||s.data.data),this.appsGetListAllApps(),console.log(s)},async unpauseApp(t){this.output="",this.showToast("warning",`Unpausing ${t}`);const e=localStorage.getItem("zelidauth"),s=await Z.Z.unpauseApp(e,t);"success"===s.data.status?this.showToast("success",s.data.data.message||s.data.data):this.showToast("danger",s.data.data.message||s.data.data),this.appsGetListAllApps(),console.log(s)},redeployAppSoft(t){this.redeployApp(t,!1)},redeployAppHard(t){this.redeployApp(t,!0)},async redeployApp(t,e){const s=this;this.output="",this.showToast("warning",`Redeploying ${t}`);const a=localStorage.getItem("zelidauth"),i={headers:{zelidauth:a},onDownloadProgress(t){console.log(t.target.response),s.output=JSON.parse(`[${t.target.response.replace(/}{/g,"},{")}]`)}},o=await Z.Z.justAPI().get(`/apps/redeploy/${t}/${e}`,i);"error"===o.data.status?this.showToast("danger",o.data.data.message||o.data.data):(this.output=JSON.parse(`[${o.data.replace(/}{/g,"},{")}]`),"error"===this.output[this.output.length-1].status?this.showToast("danger",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data):"warning"===this.output[this.output.length-1].status?this.showToast("warning",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data):this.showToast("success",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data))},async removeApp(t){const e=this;this.output="",this.showToast("warning",`Removing ${t}`);const s=localStorage.getItem("zelidauth"),a={headers:{zelidauth:s},onDownloadProgress(t){console.log(t.target.response),e.output=JSON.parse(`[${t.target.response.replace(/}{/g,"},{")}]`)}},i=await Z.Z.justAPI().get(`/apps/appremove/${t}`,a);"error"===i.data.status?this.showToast("danger",i.data.data.message||i.data.data):(this.output=JSON.parse(`[${i.data.replace(/}{/g,"},{")}]`),"error"===this.output[this.output.length-1].status?this.showToast("danger",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data):"warning"===this.output[this.output.length-1].status?this.showToast("warning",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data):this.showToast("success",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data),setTimeout((()=>{e.managedApplication=""}),5e3))},getZelidAuthority(){const t=localStorage.getItem("zelidauth");this.globalZelidAuthorized=!1;const e=is.parse(t),s=Date.now(),a=54e5,i=e.loginPhrase.substring(0,13);this.globalZelidAuthorized=!(+i{setTimeout(e,t)}))},async executeCommand(t,e,s,a){try{const i=localStorage.getItem("zelidauth"),o={headers:{zelidauth:i}};if(this.getZelidAuthority(),!this.globalZelidAuthorized)throw new Error("Session expired. Please log into FluxOS again");this.showToast("warning",s);let n=`/apps/${e}/${t}`;a&&(n+=`/${a}`),n+="/true";const r=await Z.Z.justAPI().get(n,o);await this.delay(500),"success"===r.data.status?this.showToast("success",r.data.data.message||r.data.data):this.showToast("danger",r.data.data.message||r.data.data)}catch(i){this.showToast("danger",i.message||i)}},async stopAppGlobally(t){this.executeCommand(t,"appstop",`Stopping ${t} globally. This will take a while...`)},async startAppGlobally(t){this.executeCommand(t,"appstart",`Starting ${t} globally. This will take a while...`)},async restartAppGlobally(t){this.executeCommand(t,"apprestart",`Restarting ${t} globally. This will take a while...`)},async pauseAppGlobally(t){this.executeCommand(t,"apppause",`Pausing ${t} globally. This will take a while...`)},async unpauseAppGlobally(t){this.executeCommand(t,"appunpause",`Unpausing ${t} globally. This will take a while...`)},async redeployAppSoftGlobally(t){this.executeCommand(t,"redeploy",`Soft redeploying ${t} globally. This will take a while...`,"false")},async redeployAppHardGlobally(t){this.executeCommand(t,"redeploy",`Hard redeploying ${t} globally. This will take a while...`,"true")},async removeAppGlobally(t){this.executeCommand(t,"appremove",`Reinstalling ${t} globally. This will take a while...`,"true")},openApp(t,e,s){if(console.log(t,e,s),s&&e){const t=e,a=s,i=`http://${t}:${a}`;this.openSite(i)}else this.showToast("danger","Unable to open App :(, App does not have a port.")},getProperPort(t=this.appUpdateSpecification){if(t.port)return t.port;if(t.ports){const e="string"===typeof t.ports?JSON.parse(t.ports):t.ports;return e[0]}for(let e=0;e{t+=`${JSON.stringify(e)}\r\n`})),t},showToast(t,e,s="InfoIcon"){this.$toast({component:j.Z,props:{title:e,icon:s,variant:t}})},decodeAsciiResponse(t){return"string"===typeof t?t.replace(/[^\x20-\x7E\t\r\n\v\f]/g,""):""},getContinent(t){const e=this.ensureObject(t),s=e.find((t=>t.startsWith("a")));if(s){const t=this.continentsOptions.find((t=>t.value===s.slice(1)));return t?t.text:"All"}return"All"},getCountry(t){const e=this.ensureObject(t),s=e.find((t=>t.startsWith("b")));if(s){const t=this.countriesOptions.find((t=>t.value===s.slice(1)));return t?t.text:"All"}return"All"},continentChanged(){if(this.selectedCountry=null,this.selectedContinent){const t=this.continentsOptions.find((t=>t.value===this.selectedContinent));this.maxInstances=t.maxInstances,this.appUpdateSpecification.instances>this.maxInstances&&(this.appUpdateSpecification.instances=this.maxInstances),this.showToast("warning",`The node type may fluctuate based upon system requirements for your application. For better results in ${t.text}, please consider specifications more suited to ${t.nodeTier} hardware.`)}else this.maxInstances=this.appUpdateSpecificationv5template.maxInstances,this.showToast("info","No geolocation set you can define up to maximum of 100 instances and up to the maximum hardware specs available on Flux network to your app.");this.instancesLocked&&(this.maxInstances=this.appUpdateSpecification.instances)},countryChanged(){if(this.selectedCountry){const t=this.countriesOptions.find((t=>t.value===this.selectedCountry));this.maxInstances=t.maxInstances,this.appUpdateSpecification.instances>this.maxInstances&&(this.appUpdateSpecification.instances=this.maxInstances),this.showToast("warning",`The node type may fluctuate based upon system requirements for your application. For better results in ${t.text}, please consider specifications more suited to ${t.nodeTier} hardware.`)}else{const t=this.continentsOptions.find((t=>t.value===this.selectedContinent));this.maxInstances=t.maxInstances,this.appUpdateSpecification.instances>this.maxInstances&&(this.appUpdateSpecification.instances=this.maxInstances),this.showToast("warning",`The node type may fluctuate based upon system requirements for your application. For better results in ${t.text}, please consider specifications more suited to ${t.nodeTier} hardware.`)}this.instancesLocked&&(this.maxInstances=this.appUpdateSpecification.instances)},generateStatsTableItems(t,e){if(console.log(t),!t||!Array.isArray(t))return[];const s=[];return t.forEach((t=>{const a=t.data.cpu_stats.online_cpus/e.cpu,i=`${((t.data.cpu_stats.cpu_usage.total_usage-t.data.precpu_stats.cpu_usage.total_usage)/(t.data.cpu_stats.system_cpu_usage-t.data.precpu_stats.system_cpu_usage)*100*a).toFixed(2)}%`,o=`${(t.data.memory_stats.usage/1e9).toFixed(2)} / ${(e.ram/1e3).toFixed(2)} GB, ${(t.data.memory_stats.usage/(1e6*e.ram)*100).toFixed(2)}%`;let n="0 / 0 GB";t.data.networks.eth0&&(n=`${(t.data.networks.eth0.rx_bytes/1e9).toFixed(2)} / ${(t.data.networks.eth0.tx_bytes/1e9).toFixed(2)} GB`);const r=`${(t.data.blkio_stats.io_service_bytes_recursive.find((t=>"read"===t.op.toLowerCase())).value/1e9).toFixed(2)} / ${(t.data.blkio_stats.io_service_bytes_recursive.find((t=>"write"===t.op.toLowerCase())).value/1e9).toFixed(2)} GB`;let l="0 / 0 GB";t.data.disk_stats&&(l=`${(t.data.disk_stats.used/1e9).toFixed(2)} / ${e.hdd.toFixed(2)} GB, ${(t.data.disk_stats.used/(1e9*e.hdd)*100).toFixed(2)}%`);const c=t.data.pids_stats.current,p={timestamp:new Date(t.timestamp).toLocaleString("en-GB",rs.shortDate),cpu:i,memory:o,net:n,block:r,disk:l,pids:c};s.push(p)})),s},getCpuPercentage(t){console.log(t);const e=[];return t.forEach((t=>{const s=`${(t.data.cpu_stats.cpu_usage.total_usage/t.data.cpu_stats.cpu_usage.system_cpu_usage*100).toFixed(2)}%`;e.push(s)})),e},getTimestamps(t){const e=[];return t.forEach((t=>{e.push(t.timestamp)})),e},chartOptions(t){const e={chart:{height:350,type:"area"},dataLabels:{enabled:!1},stroke:{curve:"smooth"},xaxis:{type:"timestamp",categories:t},tooltip:{x:{format:"dd/MM/yy HH:mm"}}};return e},decodeGeolocation(t){let e=!1;t.forEach((t=>{t.startsWith("b")&&(e=!0),t.startsWith("a")&&t.startsWith("ac")&&t.startsWith("a!c")&&(e=!0)}));let s=t;if(e){const e=t.find((t=>t.startsWith("a")&&t.startsWith("ac")&&t.startsWith("a!c"))),a=t.find((t=>t.startsWith("b")));let i=`ac${e.slice(1)}`;a&&(i+=`_${a.slice(1)}`),s=[i]}const a=s.filter((t=>t.startsWith("ac"))),i=s.filter((t=>t.startsWith("a!c")));for(let o=1;o{t.push({value:e.code,instances:e.available?100:0})})),cs.countries.forEach((e=>{t.push({value:`${e.continent}_${e.code}`,instances:e.available?100:0})}));const e=await as.get("https://stats.runonflux.io/fluxinfo?projection=geolocation");if("success"===e.data.status){const s=e.data.data;s.length>5e3&&(t=[],s.forEach((e=>{if(e.geolocation&&e.geolocation.continentCode&&e.geolocation.regionName&&e.geolocation.countryCode){const s=e.geolocation.continentCode,a=`${s}_${e.geolocation.countryCode}`,i=`${a}_${e.geolocation.regionName}`,o=t.find((t=>t.value===s));o?o.instances+=1:t.push({value:s,instances:1});const n=t.find((t=>t.value===a));n?n.instances+=1:t.push({value:a,instances:1});const r=t.find((t=>t.value===i));r?r.instances+=1:t.push({value:i,instances:1})}})))}else this.showToast("info","Failed to get geolocation data from FluxStats, Using stored locations")}catch(e){console.log(e),this.showToast("info","Failed to get geolocation data from FluxStats, Using stored locations")}this.possibleLocations=t},continentsOptions(t){const e=[{value:t?"NONE":"ALL",text:t?"NONE":"ALL"}];return this.possibleLocations.filter((e=>e.instances>(t?-1:3))).forEach((t=>{if(!t.value.includes("_")){const s=cs.continents.find((e=>e.code===t.value));e.push({value:t.value,text:s?s.name:t.value})}})),e},countriesOptions(t,e){const s=[{value:"ALL",text:"ALL"}];return this.possibleLocations.filter((t=>t.instances>(e?-1:3))).forEach((e=>{if(!e.value.split("_")[2]&&e.value.startsWith(`${t}_`)){const t=cs.countries.find((t=>t.code===e.value.split("_")[1]));s.push({value:e.value.split("_")[1],text:t?t.name:e.value.split("_")[1]})}})),s},regionsOptions(t,e,s){const a=[{value:"ALL",text:"ALL"}];return this.possibleLocations.filter((t=>t.instances>(s?-1:3))).forEach((s=>{s.value.startsWith(`${t}_${e}_`)&&a.push({value:s.value.split("_")[2],text:s.value.split("_")[2]})})),a},generateGeolocations(){const t=[];for(let e=1;et.code===e))||{name:"ALL"};return`Continent: ${s.name||"Unkown"}`}if(t.startsWith("b")){const e=t.slice(1),s=cs.countries.find((t=>t.code===e))||{name:"ALL"};return`Country: ${s.name||"Unkown"}`}if(t.startsWith("ac")){const e=t.slice(2),s=e.split("_"),a=s[0],i=s[1],o=s[2],n=cs.continents.find((t=>t.code===a))||{name:"ALL"},r=cs.countries.find((t=>t.code===i))||{name:"ALL"};let l=`Allowed location: Continent: ${n.name}`;return i&&(l+=`, Country: ${r.name}`),o&&(l+=`, Region: ${o}`),l}if(t.startsWith("a!c")){const e=t.slice(3),s=e.split("_"),a=s[0],i=s[1],o=s[2],n=cs.continents.find((t=>t.code===a))||{name:"ALL"},r=cs.countries.find((t=>t.code===i))||{name:"ALL"};let l=`Forbidden location: Continent: ${n.name}`;return i&&(l+=`, Country: ${r.name}`),o&&(l+=`, Region: ${o}`),l}return"All locations allowed"},adjustMaxInstancesPossible(){const t=this.generateGeolocations(),e=t.filter((t=>t.startsWith("ac")));console.log(t);let s=0;e.forEach((t=>{const e=this.possibleLocations.find((e=>e.value===t.slice(2)));e&&(s+=e.instances),"ALL"===t&&(s+=100)})),e.length||(s+=100),console.log(s),s=s>3?s:3;const a=s>100?100:s;this.maxInstances=a,this.instancesLocked&&(this.maxInstances=this.appUpdateSpecification.instances)},constructAutomaticDomains(t,e,s=0){const a=JSON.parse(JSON.stringify(t)),i=e.toLowerCase();if(0===s){const t=[`${i}.app.runonflux.io`];for(let e=0;ee.ip===t));e>-1&&this.selectedEnterpriseNodes.splice(e,1)},async addFluxNode(t){try{const e=this.selectedEnterpriseNodes.find((e=>e.ip===t));if(console.log(t),!e){const e=this.enterpriseNodes.find((e=>e.ip===t));this.selectedEnterpriseNodes.push(e),console.log(this.selectedEnterpriseNodes);const s=this.enterprisePublicKeys.find((e=>e.nodeip===t));if(!s){const e=await this.fetchEnterpriseKey(t);if(e){const s={nodeip:t,nodekey:e},a=this.enterprisePublicKeys.find((e=>e.nodeip===t));a||this.enterprisePublicKeys.push(s)}}}}catch(e){console.log(e)}},async autoSelectNodes(){const{instances:t}=this.appUpdateSpecification,e=+t+3,s=+t+Math.ceil(Math.max(7,.15*+t)),a=this.enterpriseNodes.filter((t=>!this.selectedEnterpriseNodes.includes(t))),i=[],o=a.filter((t=>t.enterprisePoints>0&&t.score>1e3));for(let n=0;nt.pubkey===o[n].pubkey)).length,a=i.filter((t=>t.pubkey===o[n].pubkey)).length;if(t+a=s)break}if(i.length{const e=this.selectedEnterpriseNodes.find((e=>e.ip===t.ip));if(!e){this.selectedEnterpriseNodes.push(t);const e=this.enterprisePublicKeys.find((e=>e.nodeip===t.ip));if(!e){const e=await this.fetchEnterpriseKey(t.ip);if(e){const s={nodeip:t.ip,nodekey:e},a=this.enterprisePublicKeys.find((e=>e.nodeip===t.ip));a||this.enterprisePublicKeys.push(s)}}}}))},constructNodes(){if(this.appUpdateSpecification.nodes=[],this.selectedEnterpriseNodes.forEach((t=>{this.appUpdateSpecification.nodes.push(t.ip)})),this.appUpdateSpecification.nodes.length>this.maximumEnterpriseNodes)throw new Error("Maximum of 120 Enterprise Nodes allowed")},async getEnterpriseNodes(){const t=sessionStorage.getItem("flux_enterprise_nodes");t&&(this.enterpriseNodes=JSON.parse(t),this.entNodesSelectTable.totalRows=this.enterpriseNodes.length);try{const t=await Z.Z.getEnterpriseNodes();"error"===t.data.status?this.showToast("danger",t.data.data.message||t.data.data):(this.enterpriseNodes=t.data.data,this.entNodesSelectTable.totalRows=this.enterpriseNodes.length,sessionStorage.setItem("flux_enterprise_nodes",JSON.stringify(this.enterpriseNodes)))}catch(e){console.log(e)}},async fetchEnterpriseKey(t){try{const e=t.split(":")[0],s=Number(t.split(":")[1]||16127),a=await as.get(`https://${e.replace(/\./g,"-")}-${s}.node.api.runonflux.io/flux/pgp`);if("error"!==a.data.status){const t=a.data.data;return t}return this.showToast("danger",a.data.data.message||a.data.data),null}catch(e){return console.log(e),null}},async encryptMessage(t,e){try{const s=await Promise.all(e.map((t=>ns.readKey({armoredKey:t}))));console.log(e),console.log(t);const a=await ns.createMessage({text:t}),i=await ns.encrypt({message:a,encryptionKeys:s});return i}catch(s){return this.showToast("danger","Data encryption failed"),null}},async onSessionConnect(t){console.log(t);const e=await this.signClient.request({topic:t.topic,chainId:"eip155:1",request:{method:"personal_sign",params:[this.dataToSign,t.namespaces.eip155.accounts[0].split(":")[2]]}});console.log(e),this.signature=e},async initWalletConnect(){try{const t=await X.ZP.init(Qe);this.signClient=t;const e=t.session.getAll().length-1,s=t.session.getAll()[e];if(!s)throw new Error("WalletConnect session expired. Please log into FluxOS again");this.onSessionConnect(s)}catch(t){console.error(t),this.showToast("danger",t.message)}},async siwe(t,e){try{const s=`0x${Ye.from(t,"utf8").toString("hex")}`,a=await ss.request({method:"personal_sign",params:[s,e]});console.log(a),this.signature=a}catch(s){console.error(s),this.showToast("danger",s.message)}},async initMetamask(){try{if(!ss)return void this.showToast("danger","Metamask not detected");let t;if(ss&&!ss.selectedAddress){const e=await ss.request({method:"eth_requestAccounts",params:[]});console.log(e),t=e[0]}else t=ss.selectedAddress;this.siwe(this.dataToSign,t)}catch(t){this.showToast("danger",t.message)}},async initSSP(){try{if(!window.ssp)return void this.showToast("danger","SSP Wallet not installed");const t=await window.ssp.request("sspwid_sign_message",{message:this.dataToSign});if("ERROR"===t.status)throw new Error(t.data||t.result);this.signature=t.signature}catch(t){this.showToast("danger",t.message)}},async initSSPpay(){try{if(!window.ssp)return void this.showToast("danger","SSP Wallet not installed");const t={message:this.updateHash,amount:(+this.appPricePerSpecs||0).toString(),address:this.deploymentAddress,chain:"flux"},e=await window.ssp.request("pay",t);if("ERROR"===e.status)throw new Error(e.data||e.result);this.showToast("success",`${e.data}: ${e.txid}`)}catch(t){this.showToast("danger",t.message)}}}},ds=ps;var us=s(1001),hs=(0,us.Z)(ds,i,o,!1,null,null,null);const ms=hs.exports},56761:t=>{(function(){"use strict";t.exports=function(t,e,s){for(var a=e||/\s/g,i=!1,o=!1,n=[],r=[],l=t.split(""),c=0;c0?(r.push(n.join("")),n=[]):e&&r.push(p):(!0===s&&n.push(p),o=!o):(!0===s&&n.push(p),i=!i)}return n.length>0?r.push(n.join("")):e&&r.push(""),r}})()},12617:t=>{!function(e,s){t.exports=s()}(self,(()=>(()=>{"use strict";var t={};return(()=>{var e=t;Object.defineProperty(e,"__esModule",{value:!0}),e.FitAddon=void 0,e.FitAddon=class{activate(t){this._terminal=t}dispose(){}fit(){const t=this.proposeDimensions();if(!t||!this._terminal||isNaN(t.cols)||isNaN(t.rows))return;const e=this._terminal._core;this._terminal.rows===t.rows&&this._terminal.cols===t.cols||(e._renderService.clear(),this._terminal.resize(t.cols,t.rows))}proposeDimensions(){if(!this._terminal)return;if(!this._terminal.element||!this._terminal.element.parentElement)return;const t=this._terminal._core,e=t._renderService.dimensions;if(0===e.css.cell.width||0===e.css.cell.height)return;const s=0===this._terminal.options.scrollback?0:t.viewport.scrollBarWidth,a=window.getComputedStyle(this._terminal.element.parentElement),i=parseInt(a.getPropertyValue("height")),o=Math.max(0,parseInt(a.getPropertyValue("width"))),n=window.getComputedStyle(this._terminal.element),r=i-(parseInt(n.getPropertyValue("padding-top"))+parseInt(n.getPropertyValue("padding-bottom"))),l=o-(parseInt(n.getPropertyValue("padding-right"))+parseInt(n.getPropertyValue("padding-left")))-s;return{cols:Math.max(2,Math.floor(l/e.css.cell.width)),rows:Math.max(1,Math.floor(r/e.css.cell.height))}}}})(),t})()))},12286:function(t){!function(e,s){t.exports=s()}(0,(()=>(()=>{"use strict";var t={930:(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ColorContrastCache=void 0;const a=s(485);e.ColorContrastCache=class{constructor(){this._color=new a.TwoKeyMap,this._css=new a.TwoKeyMap}setCss(t,e,s){this._css.set(t,e,s)}getCss(t,e){return this._css.get(t,e)}setColor(t,e,s){this._color.set(t,e,s)}getColor(t,e){return this._color.get(t,e)}clear(){this._color.clear(),this._css.clear()}}},997:function(t,e,s){var a=this&&this.__decorate||function(t,e,s,a){var i,o=arguments.length,n=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,a);else for(var r=t.length-1;r>=0;r--)(i=t[r])&&(n=(o<3?i(n):o>3?i(e,s,n):i(e,s))||n);return o>3&&n&&Object.defineProperty(e,s,n),n},i=this&&this.__param||function(t,e){return function(s,a){e(s,a,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ThemeService=e.DEFAULT_ANSI_COLORS=void 0;const o=s(930),n=s(160),r=s(345),l=s(859),c=s(97),p=n.css.toColor("#ffffff"),d=n.css.toColor("#000000"),u=n.css.toColor("#ffffff"),h=n.css.toColor("#000000"),m={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};e.DEFAULT_ANSI_COLORS=Object.freeze((()=>{const t=[n.css.toColor("#2e3436"),n.css.toColor("#cc0000"),n.css.toColor("#4e9a06"),n.css.toColor("#c4a000"),n.css.toColor("#3465a4"),n.css.toColor("#75507b"),n.css.toColor("#06989a"),n.css.toColor("#d3d7cf"),n.css.toColor("#555753"),n.css.toColor("#ef2929"),n.css.toColor("#8ae234"),n.css.toColor("#fce94f"),n.css.toColor("#729fcf"),n.css.toColor("#ad7fa8"),n.css.toColor("#34e2e2"),n.css.toColor("#eeeeec")],e=[0,95,135,175,215,255];for(let s=0;s<216;s++){const a=e[s/36%6|0],i=e[s/6%6|0],o=e[s%6];t.push({css:n.channels.toCss(a,i,o),rgba:n.channels.toRgba(a,i,o)})}for(let s=0;s<24;s++){const e=8+10*s;t.push({css:n.channels.toCss(e,e,e),rgba:n.channels.toRgba(e,e,e)})}return t})());let f=e.ThemeService=class extends l.Disposable{get colors(){return this._colors}constructor(t){super(),this._optionsService=t,this._contrastCache=new o.ColorContrastCache,this._halfContrastCache=new o.ColorContrastCache,this._onChangeColors=this.register(new r.EventEmitter),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:p,background:d,cursor:u,cursorAccent:h,selectionForeground:void 0,selectionBackgroundTransparent:m,selectionBackgroundOpaque:n.color.blend(d,m),selectionInactiveBackgroundTransparent:m,selectionInactiveBackgroundOpaque:n.color.blend(d,m),ansi:e.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache,halfContrastCache:this._halfContrastCache},this._updateRestoreColors(),this._setTheme(this._optionsService.rawOptions.theme),this.register(this._optionsService.onSpecificOptionChange("minimumContrastRatio",(()=>this._contrastCache.clear()))),this.register(this._optionsService.onSpecificOptionChange("theme",(()=>this._setTheme(this._optionsService.rawOptions.theme))))}_setTheme(t={}){const s=this._colors;if(s.foreground=g(t.foreground,p),s.background=g(t.background,d),s.cursor=g(t.cursor,u),s.cursorAccent=g(t.cursorAccent,h),s.selectionBackgroundTransparent=g(t.selectionBackground,m),s.selectionBackgroundOpaque=n.color.blend(s.background,s.selectionBackgroundTransparent),s.selectionInactiveBackgroundTransparent=g(t.selectionInactiveBackground,s.selectionBackgroundTransparent),s.selectionInactiveBackgroundOpaque=n.color.blend(s.background,s.selectionInactiveBackgroundTransparent),s.selectionForeground=t.selectionForeground?g(t.selectionForeground,n.NULL_COLOR):void 0,s.selectionForeground===n.NULL_COLOR&&(s.selectionForeground=void 0),n.color.isOpaque(s.selectionBackgroundTransparent)){const t=.3;s.selectionBackgroundTransparent=n.color.opacity(s.selectionBackgroundTransparent,t)}if(n.color.isOpaque(s.selectionInactiveBackgroundTransparent)){const t=.3;s.selectionInactiveBackgroundTransparent=n.color.opacity(s.selectionInactiveBackgroundTransparent,t)}if(s.ansi=e.DEFAULT_ANSI_COLORS.slice(),s.ansi[0]=g(t.black,e.DEFAULT_ANSI_COLORS[0]),s.ansi[1]=g(t.red,e.DEFAULT_ANSI_COLORS[1]),s.ansi[2]=g(t.green,e.DEFAULT_ANSI_COLORS[2]),s.ansi[3]=g(t.yellow,e.DEFAULT_ANSI_COLORS[3]),s.ansi[4]=g(t.blue,e.DEFAULT_ANSI_COLORS[4]),s.ansi[5]=g(t.magenta,e.DEFAULT_ANSI_COLORS[5]),s.ansi[6]=g(t.cyan,e.DEFAULT_ANSI_COLORS[6]),s.ansi[7]=g(t.white,e.DEFAULT_ANSI_COLORS[7]),s.ansi[8]=g(t.brightBlack,e.DEFAULT_ANSI_COLORS[8]),s.ansi[9]=g(t.brightRed,e.DEFAULT_ANSI_COLORS[9]),s.ansi[10]=g(t.brightGreen,e.DEFAULT_ANSI_COLORS[10]),s.ansi[11]=g(t.brightYellow,e.DEFAULT_ANSI_COLORS[11]),s.ansi[12]=g(t.brightBlue,e.DEFAULT_ANSI_COLORS[12]),s.ansi[13]=g(t.brightMagenta,e.DEFAULT_ANSI_COLORS[13]),s.ansi[14]=g(t.brightCyan,e.DEFAULT_ANSI_COLORS[14]),s.ansi[15]=g(t.brightWhite,e.DEFAULT_ANSI_COLORS[15]),t.extendedAnsi){const a=Math.min(s.ansi.length-16,t.extendedAnsi.length);for(let i=0;i{Object.defineProperty(e,"__esModule",{value:!0}),e.contrastRatio=e.toPaddedHex=e.rgba=e.rgb=e.css=e.color=e.channels=e.NULL_COLOR=void 0;const a=s(399);let i=0,o=0,n=0,r=0;var l,c,p,d,u;function h(t){const e=t.toString(16);return e.length<2?"0"+e:e}function m(t,e){return t>>0}}(l||(e.channels=l={})),function(t){function e(t,e){return r=Math.round(255*e),[i,o,n]=u.toChannels(t.rgba),{css:l.toCss(i,o,n,r),rgba:l.toRgba(i,o,n,r)}}t.blend=function(t,e){if(r=(255&e.rgba)/255,1===r)return{css:e.css,rgba:e.rgba};const s=e.rgba>>24&255,a=e.rgba>>16&255,c=e.rgba>>8&255,p=t.rgba>>24&255,d=t.rgba>>16&255,u=t.rgba>>8&255;return i=p+Math.round((s-p)*r),o=d+Math.round((a-d)*r),n=u+Math.round((c-u)*r),{css:l.toCss(i,o,n),rgba:l.toRgba(i,o,n)}},t.isOpaque=function(t){return 255==(255&t.rgba)},t.ensureContrastRatio=function(t,e,s){const a=u.ensureContrastRatio(t.rgba,e.rgba,s);if(a)return u.toColor(a>>24&255,a>>16&255,a>>8&255)},t.opaque=function(t){const e=(255|t.rgba)>>>0;return[i,o,n]=u.toChannels(e),{css:l.toCss(i,o,n),rgba:e}},t.opacity=e,t.multiplyOpacity=function(t,s){return r=255&t.rgba,e(t,r*s/255)},t.toColorRGB=function(t){return[t.rgba>>24&255,t.rgba>>16&255,t.rgba>>8&255]}}(c||(e.color=c={})),function(t){let e,s;if(!a.isNode){const t=document.createElement("canvas");t.width=1,t.height=1;const a=t.getContext("2d",{willReadFrequently:!0});a&&(e=a,e.globalCompositeOperation="copy",s=e.createLinearGradient(0,0,1,1))}t.toColor=function(t){if(t.match(/#[\da-f]{3,8}/i))switch(t.length){case 4:return i=parseInt(t.slice(1,2).repeat(2),16),o=parseInt(t.slice(2,3).repeat(2),16),n=parseInt(t.slice(3,4).repeat(2),16),u.toColor(i,o,n);case 5:return i=parseInt(t.slice(1,2).repeat(2),16),o=parseInt(t.slice(2,3).repeat(2),16),n=parseInt(t.slice(3,4).repeat(2),16),r=parseInt(t.slice(4,5).repeat(2),16),u.toColor(i,o,n,r);case 7:return{css:t,rgba:(parseInt(t.slice(1),16)<<8|255)>>>0};case 9:return{css:t,rgba:parseInt(t.slice(1),16)>>>0}}const a=t.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(a)return i=parseInt(a[1]),o=parseInt(a[2]),n=parseInt(a[3]),r=Math.round(255*(void 0===a[5]?1:parseFloat(a[5]))),u.toColor(i,o,n,r);if(!e||!s)throw new Error("css.toColor: Unsupported css format");if(e.fillStyle=s,e.fillStyle=t,"string"!=typeof e.fillStyle)throw new Error("css.toColor: Unsupported css format");if(e.fillRect(0,0,1,1),[i,o,n,r]=e.getImageData(0,0,1,1).data,255!==r)throw new Error("css.toColor: Unsupported css format");return{rgba:l.toRgba(i,o,n,r),css:t}}}(p||(e.css=p={})),function(t){function e(t,e,s){const a=t/255,i=e/255,o=s/255;return.2126*(a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))+.7152*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))}t.relativeLuminance=function(t){return e(t>>16&255,t>>8&255,255&t)},t.relativeLuminance2=e}(d||(e.rgb=d={})),function(t){function e(t,e,s){const a=t>>24&255,i=t>>16&255,o=t>>8&255;let n=e>>24&255,r=e>>16&255,l=e>>8&255,c=m(d.relativeLuminance2(n,r,l),d.relativeLuminance2(a,i,o));for(;c0||r>0||l>0);)n-=Math.max(0,Math.ceil(.1*n)),r-=Math.max(0,Math.ceil(.1*r)),l-=Math.max(0,Math.ceil(.1*l)),c=m(d.relativeLuminance2(n,r,l),d.relativeLuminance2(a,i,o));return(n<<24|r<<16|l<<8|255)>>>0}function s(t,e,s){const a=t>>24&255,i=t>>16&255,o=t>>8&255;let n=e>>24&255,r=e>>16&255,l=e>>8&255,c=m(d.relativeLuminance2(n,r,l),d.relativeLuminance2(a,i,o));for(;c>>0}t.ensureContrastRatio=function(t,a,i){const o=d.relativeLuminance(t>>8),n=d.relativeLuminance(a>>8);if(m(o,n)>8));if(rm(o,d.relativeLuminance(e>>8))?n:e}return n}const r=s(t,a,i),l=m(o,d.relativeLuminance(r>>8));if(lm(o,d.relativeLuminance(s>>8))?r:s}return r}},t.reduceLuminance=e,t.increaseLuminance=s,t.toChannels=function(t){return[t>>24&255,t>>16&255,t>>8&255,255&t]},t.toColor=function(t,e,s,a){return{css:l.toCss(t,e,s,a),rgba:l.toRgba(t,e,s,a)}}}(u||(e.rgba=u={})),e.toPaddedHex=h,e.contrastRatio=m},345:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.forwardEvent=e.EventEmitter=void 0,e.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=t=>(this._listeners.push(t),{dispose:()=>{if(!this._disposed)for(let e=0;ee.fire(t)))}},859:(t,e)=>{function s(t){for(const e of t)e.dispose();t.length=0}Object.defineProperty(e,"__esModule",{value:!0}),e.getDisposeArrayDisposable=e.disposeArray=e.toDisposable=e.MutableDisposable=e.Disposable=void 0,e.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(const t of this._disposables)t.dispose();this._disposables.length=0}register(t){return this._disposables.push(t),t}unregister(t){const e=this._disposables.indexOf(t);-1!==e&&this._disposables.splice(e,1)}},e.MutableDisposable=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(t){var e;this._isDisposed||t===this._value||(null===(e=this._value)||void 0===e||e.dispose(),this._value=t)}clear(){this.value=void 0}dispose(){var t;this._isDisposed=!0,null===(t=this._value)||void 0===t||t.dispose(),this._value=void 0}},e.toDisposable=function(t){return{dispose:t}},e.disposeArray=s,e.getDisposeArrayDisposable=function(t){return{dispose:()=>s(t)}}},485:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.FourKeyMap=e.TwoKeyMap=void 0;class s{constructor(){this._data={}}set(t,e,s){this._data[t]||(this._data[t]={}),this._data[t][e]=s}get(t,e){return this._data[t]?this._data[t][e]:void 0}clear(){this._data={}}}e.TwoKeyMap=s,e.FourKeyMap=class{constructor(){this._data=new s}set(t,e,a,i,o){this._data.get(t,e)||this._data.set(t,e,new s),this._data.get(t,e).set(a,i,o)}get(t,e,s,a){var i;return null===(i=this._data.get(t,e))||void 0===i?void 0:i.get(s,a)}clear(){this._data.clear()}}},399:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isChromeOS=e.isLinux=e.isWindows=e.isIphone=e.isIpad=e.isMac=e.getSafariVersion=e.isSafari=e.isLegacyEdge=e.isFirefox=e.isNode=void 0,e.isNode="undefined"==typeof navigator;const s=e.isNode?"node":navigator.userAgent,a=e.isNode?"node":navigator.platform;e.isFirefox=s.includes("Firefox"),e.isLegacyEdge=s.includes("Edge"),e.isSafari=/^((?!chrome|android).)*safari/i.test(s),e.getSafariVersion=function(){if(!e.isSafari)return 0;const t=s.match(/Version\/(\d+)/);return null===t||t.length<2?0:parseInt(t[1])},e.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(a),e.isIpad="iPad"===a,e.isIphone="iPhone"===a,e.isWindows=["Windows","Win16","Win32","WinCE"].includes(a),e.isLinux=a.indexOf("Linux")>=0,e.isChromeOS=/\bCrOS\b/.test(s)},726:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createDecorator=e.getServiceDependencies=e.serviceRegistry=void 0;const s="di$target",a="di$dependencies";e.serviceRegistry=new Map,e.getServiceDependencies=function(t){return t[a]||[]},e.createDecorator=function(t){if(e.serviceRegistry.has(t))return e.serviceRegistry.get(t);const i=function(t,e,o){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(t,e,i){e[s]===e?e[a].push({id:t,index:i}):(e[a]=[{id:t,index:i}],e[s]=e)}(i,t,o)};return i.toString=()=>t,e.serviceRegistry.set(t,i),i}},97:(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IDecorationService=e.IUnicodeService=e.IOscLinkService=e.IOptionsService=e.ILogService=e.LogLevelEnum=e.IInstantiationService=e.ICharsetService=e.ICoreService=e.ICoreMouseService=e.IBufferService=void 0;const a=s(726);var i;e.IBufferService=(0,a.createDecorator)("BufferService"),e.ICoreMouseService=(0,a.createDecorator)("CoreMouseService"),e.ICoreService=(0,a.createDecorator)("CoreService"),e.ICharsetService=(0,a.createDecorator)("CharsetService"),e.IInstantiationService=(0,a.createDecorator)("InstantiationService"),function(t){t[t.TRACE=0]="TRACE",t[t.DEBUG=1]="DEBUG",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.OFF=5]="OFF"}(i||(e.LogLevelEnum=i={})),e.ILogService=(0,a.createDecorator)("LogService"),e.IOptionsService=(0,a.createDecorator)("OptionsService"),e.IOscLinkService=(0,a.createDecorator)("OscLinkService"),e.IUnicodeService=(0,a.createDecorator)("UnicodeService"),e.IDecorationService=(0,a.createDecorator)("DecorationService")}},e={};function s(a){var i=e[a];if(void 0!==i)return i.exports;var o=e[a]={exports:{}};return t[a].call(o.exports,o,o.exports,s),o.exports}var a={};return(()=>{var t=a;Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLSerializeHandler=t.SerializeAddon=void 0;const e=s(997);function i(t,e,s){return Math.max(e,Math.min(t,s))}class o{constructor(t){this._buffer=t}serialize(t){const e=this._buffer.getNullCell(),s=this._buffer.getNullCell();let a=e;const i=t.start.x,o=t.end.x,n=t.start.y,r=t.end.y;this._beforeSerialize(o-i,i,o);for(let l=i;l<=o;l++){const i=this._buffer.getLine(l);if(i){const o=l!==t.start.x?0:n,c=l!==t.end.x?i.length:r;for(let t=o;t0&&!r(this._cursorStyle,this._backgroundCell)&&(this._currentRow+=`[${this._nullCellCount}X`);let a="";if(!e){t-this._firstRow>=this._terminal.rows&&(null===(s=this._buffer.getLine(this._cursorStyleRow))||void 0===s||s.getCell(this._cursorStyleCol,this._backgroundCell));const e=this._buffer.getLine(t),i=this._buffer.getLine(t+1);if(i.isWrapped){a="";const s=e.getCell(e.length-1,this._thisRowLastChar),o=e.getCell(e.length-2,this._thisRowLastSecondChar),n=i.getCell(0,this._nextRowFirstChar),l=n.getWidth()>1;let c=!1;(n.getChars()&&l?this._nullCellCount<=1:this._nullCellCount<=0)&&((s.getChars()||0===s.getWidth())&&r(s,n)&&(c=!0),l&&(o.getChars()||0===o.getWidth())&&r(s,n)&&r(o,n)&&(c=!0)),c||(a="-".repeat(this._nullCellCount+1),a+="",this._nullCellCount>0&&(a+="",a+=`[${e.length-this._nullCellCount}C`,a+=`[${this._nullCellCount}X`,a+=`[${e.length-this._nullCellCount}D`,a+=""),this._lastContentCursorRow=t+1,this._lastContentCursorCol=0,this._lastCursorRow=t+1,this._lastCursorCol=0)}else a="\r\n",this._lastCursorRow=t+1,this._lastCursorCol=0}this._allRows[this._rowIndex]=this._currentRow,this._allRowSeparators[this._rowIndex++]=a,this._currentRow="",this._nullCellCount=0}_diffStyle(t,e){const s=[],a=!n(t,e),i=!r(t,e),o=!l(t,e);if(a||i||o)if(t.isAttributeDefault())e.isAttributeDefault()||s.push(0);else{if(a){const e=t.getFgColor();t.isFgRGB()?s.push(38,2,e>>>16&255,e>>>8&255,255&e):t.isFgPalette()?e>=16?s.push(38,5,e):s.push(8&e?90+(7&e):30+(7&e)):s.push(39)}if(i){const e=t.getBgColor();t.isBgRGB()?s.push(48,2,e>>>16&255,e>>>8&255,255&e):t.isBgPalette()?e>=16?s.push(48,5,e):s.push(8&e?100+(7&e):40+(7&e)):s.push(49)}o&&(t.isInverse()!==e.isInverse()&&s.push(t.isInverse()?7:27),t.isBold()!==e.isBold()&&s.push(t.isBold()?1:22),t.isUnderline()!==e.isUnderline()&&s.push(t.isUnderline()?4:24),t.isOverline()!==e.isOverline()&&s.push(t.isOverline()?53:55),t.isBlink()!==e.isBlink()&&s.push(t.isBlink()?5:25),t.isInvisible()!==e.isInvisible()&&s.push(t.isInvisible()?8:28),t.isItalic()!==e.isItalic()&&s.push(t.isItalic()?3:23),t.isDim()!==e.isDim()&&s.push(t.isDim()?2:22),t.isStrikethrough()!==e.isStrikethrough()&&s.push(t.isStrikethrough()?9:29))}return s}_nextCell(t,e,s,a){if(0===t.getWidth())return;const i=""===t.getChars(),o=this._diffStyle(t,this._cursorStyle);if(i?!r(this._cursorStyle,t):o.length>0){this._nullCellCount>0&&(r(this._cursorStyle,this._backgroundCell)||(this._currentRow+=`[${this._nullCellCount}X`),this._currentRow+=`[${this._nullCellCount}C`,this._nullCellCount=0),this._lastContentCursorRow=this._lastCursorRow=s,this._lastContentCursorCol=this._lastCursorCol=a,this._currentRow+=`[${o.join(";")}m`;const t=this._buffer.getLine(s);void 0!==t&&(t.getCell(a,this._cursorStyle),this._cursorStyleRow=s,this._cursorStyleCol=a)}i?this._nullCellCount+=t.getWidth():(this._nullCellCount>0&&(r(this._cursorStyle,this._backgroundCell)||(this._currentRow+=`[${this._nullCellCount}X`),this._currentRow+=`[${this._nullCellCount}C`,this._nullCellCount=0),this._currentRow+=t.getChars(),this._lastContentCursorRow=this._lastCursorRow=s,this._lastContentCursorCol=this._lastCursorCol=a+t.getWidth())}_serializeString(){let t=this._allRows.length;this._buffer.length-this._firstRow<=this._terminal.rows&&(t=this._lastContentCursorRow+1-this._firstRow,this._lastCursorCol=this._lastContentCursorCol,this._lastCursorRow=this._lastContentCursorRow);let e="";for(let r=0;r0?e+=`[${i}B`:i<0&&(e+=`[${-i}A`),(t=>{t>0?e+=`[${t}C`:t<0&&(e+=`[${-t}D`)})(a-this._lastCursorCol));const o=this._terminal._core._inputHandler._curAttrData,n=this._diffStyle(o,this._cursorStyle);return n.length>0&&(e+=`[${n.join(";")}m`),e}}t.SerializeAddon=class{activate(t){this._terminal=t}_serializeBuffer(t,e,s){const a=e.length,o=new c(e,t),n=void 0===s?a:i(s+t.rows,0,a);return o.serialize({start:{x:a-n,y:0},end:{x:a-1,y:t.cols}})}_serializeBufferAsHTML(t,e){var s,a;const o=t.buffer.active,n=new p(o,t,e);if(null===(s=e.onlySelection)||void 0===s||!s){const s=o.length,a=e.scrollback,r=void 0===a?s:i(a+t.rows,0,s);return n.serialize({start:{x:s-r,y:0},end:{x:s-1,y:t.cols}})}const r=null===(a=this._terminal)||void 0===a?void 0:a.getSelectionPosition();return void 0!==r?n.serialize({start:{x:r.start.y,y:r.start.x},end:{x:r.end.y,y:r.end.x}}):""}_serializeModes(t){let e="";const s=t.modes;if(s.applicationCursorKeysMode&&(e+="[?1h"),s.applicationKeypadMode&&(e+="[?66h"),s.bracketedPasteMode&&(e+="[?2004h"),s.insertMode&&(e+=""),s.originMode&&(e+="[?6h"),s.reverseWraparoundMode&&(e+="[?45h"),s.sendFocusMode&&(e+="[?1004h"),!1===s.wraparoundMode&&(e+="[?7l"),"none"!==s.mouseTrackingMode)switch(s.mouseTrackingMode){case"x10":e+="[?9h";break;case"vt200":e+="[?1000h";break;case"drag":e+="[?1002h";break;case"any":e+="[?1003h"}return e}serialize(t){if(!this._terminal)throw new Error("Cannot use addon until it has been loaded");let e=this._serializeBuffer(this._terminal,this._terminal.buffer.normal,null==t?void 0:t.scrollback);return(null==t?void 0:t.excludeAltBuffer)||"alternate"!==this._terminal.buffer.active.type||(e+=`[?1049h${this._serializeBuffer(this._terminal,this._terminal.buffer.alternate,void 0)}`),(null==t?void 0:t.excludeModes)||(e+=this._serializeModes(this._terminal)),e}serializeAsHTML(t){if(!this._terminal)throw new Error("Cannot use addon until it has been loaded");return this._serializeBufferAsHTML(this._terminal,t||{})}dispose(){}};class p extends o{constructor(t,s,a){super(t),this._terminal=s,this._options=a,this._currentRow="",this._htmlContent="",s._core._themeService?this._ansiColors=s._core._themeService.colors.ansi:this._ansiColors=e.DEFAULT_ANSI_COLORS}_padStart(t,e,s){return e>>=0,s=null!=s?s:" ",t.length>e?t:((e-=t.length)>s.length&&(s+=s.repeat(e/s.length)),s.slice(0,e)+t)}_beforeSerialize(t,e,s){var a,i,o,n,r;this._htmlContent+="\x3c!--StartFragment--\x3e
";let l="#000000",c="#ffffff";null!==(a=this._options.includeGlobalBackground)&&void 0!==a&&a&&(l=null!==(o=null===(i=this._terminal.options.theme)||void 0===i?void 0:i.foreground)&&void 0!==o?o:"#ffffff",c=null!==(r=null===(n=this._terminal.options.theme)||void 0===n?void 0:n.background)&&void 0!==r?r:"#000000");const p=[];p.push("color: "+l+";"),p.push("background-color: "+c+";"),p.push("font-family: "+this._terminal.options.fontFamily+";"),p.push("font-size: "+this._terminal.options.fontSize+"px;"),this._htmlContent+="
"}_afterSerialize(){this._htmlContent+="
",this._htmlContent+="
\x3c!--EndFragment--\x3e"}_rowEnd(t,e){this._htmlContent+="
"+this._currentRow+"
",this._currentRow=""}_getHexColor(t,e){const s=e?t.getFgColor():t.getBgColor();return(e?t.isFgRGB():t.isBgRGB())?[s>>16&255,s>>8&255,255&s].map((t=>this._padStart(t.toString(16),2,"0"))).join(""):(e?t.isFgPalette():t.isBgPalette())?this._ansiColors[s].css:void 0}_diffStyle(t,e){const s=[],a=!n(t,e),i=!r(t,e),o=!l(t,e);if(a||i||o){const e=this._getHexColor(t,!0);e&&s.push("color: "+e+";");const a=this._getHexColor(t,!1);return a&&s.push("background-color: "+a+";"),t.isInverse()&&s.push("color: #000000; background-color: #BFBFBF;"),t.isBold()&&s.push("font-weight: bold;"),t.isUnderline()&&t.isOverline()?s.push("text-decoration: overline underline;"):t.isUnderline()?s.push("text-decoration: underline;"):t.isOverline()&&s.push("text-decoration: overline;"),t.isBlink()&&s.push("text-decoration: blink;"),t.isInvisible()&&s.push("visibility: hidden;"),t.isItalic()&&s.push("font-style: italic;"),t.isDim()&&s.push("opacity: 0.5;"),t.isStrikethrough()&&s.push("text-decoration: line-through;"),s}}_nextCell(t,e,s,a){if(0===t.getWidth())return;const i=""===t.getChars(),o=this._diffStyle(t,e);o&&(this._currentRow+=0===o.length?"":""),this._currentRow+=i?" ":t.getChars()}_serializeString(){return this._htmlContent}}t.HTMLSerializeHandler=p})(),a})()))},32993:function(t){!function(e,s){t.exports=s()}(0,(()=>(()=>{"use strict";var t={433:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.UnicodeV11=void 0;const s=[[768,879],[1155,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1541],[1552,1562],[1564,1564],[1611,1631],[1648,1648],[1750,1757],[1759,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2045,2045],[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2259,2306],[2362,2362],[2364,2364],[2369,2376],[2381,2381],[2385,2391],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2558,2558],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2641,2641],[2672,2673],[2677,2677],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2810,2815],[2817,2817],[2876,2876],[2879,2879],[2881,2884],[2893,2893],[2902,2902],[2914,2915],[2946,2946],[3008,3008],[3021,3021],[3072,3072],[3076,3076],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3170,3171],[3201,3201],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3328,3329],[3387,3388],[3393,3396],[3405,3405],[3426,3427],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4151],[4153,4154],[4157,4158],[4184,4185],[4190,4192],[4209,4212],[4226,4226],[4229,4230],[4237,4237],[4253,4253],[4448,4607],[4957,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6158],[6277,6278],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6683,6683],[6742,6742],[6744,6750],[6752,6752],[6754,6754],[6757,6764],[6771,6780],[6783,6783],[6832,6846],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7040,7041],[7074,7077],[7080,7081],[7083,7085],[7142,7142],[7144,7145],[7149,7149],[7151,7153],[7212,7219],[7222,7223],[7376,7378],[7380,7392],[7394,7400],[7405,7405],[7412,7412],[7416,7417],[7616,7673],[7675,7679],[8203,8207],[8234,8238],[8288,8292],[8294,8303],[8400,8432],[11503,11505],[11647,11647],[11744,11775],[12330,12333],[12441,12442],[42607,42610],[42612,42621],[42654,42655],[42736,42737],[43010,43010],[43014,43014],[43019,43019],[43045,43046],[43204,43205],[43232,43249],[43263,43263],[43302,43309],[43335,43345],[43392,43394],[43443,43443],[43446,43449],[43452,43453],[43493,43493],[43561,43566],[43569,43570],[43573,43574],[43587,43587],[43596,43596],[43644,43644],[43696,43696],[43698,43700],[43703,43704],[43710,43711],[43713,43713],[43756,43757],[43766,43766],[44005,44005],[44008,44008],[44013,44013],[64286,64286],[65024,65039],[65056,65071],[65279,65279],[65529,65531]],a=[[66045,66045],[66272,66272],[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[68325,68326],[68900,68903],[69446,69456],[69633,69633],[69688,69702],[69759,69761],[69811,69814],[69817,69818],[69821,69821],[69837,69837],[69888,69890],[69927,69931],[69933,69940],[70003,70003],[70016,70017],[70070,70078],[70089,70092],[70191,70193],[70196,70196],[70198,70199],[70206,70206],[70367,70367],[70371,70378],[70400,70401],[70459,70460],[70464,70464],[70502,70508],[70512,70516],[70712,70719],[70722,70724],[70726,70726],[70750,70750],[70835,70840],[70842,70842],[70847,70848],[70850,70851],[71090,71093],[71100,71101],[71103,71104],[71132,71133],[71219,71226],[71229,71229],[71231,71232],[71339,71339],[71341,71341],[71344,71349],[71351,71351],[71453,71455],[71458,71461],[71463,71467],[71727,71735],[71737,71738],[72148,72151],[72154,72155],[72160,72160],[72193,72202],[72243,72248],[72251,72254],[72263,72263],[72273,72278],[72281,72283],[72330,72342],[72344,72345],[72752,72758],[72760,72765],[72767,72767],[72850,72871],[72874,72880],[72882,72883],[72885,72886],[73009,73014],[73018,73018],[73020,73021],[73023,73029],[73031,73031],[73104,73105],[73109,73109],[73111,73111],[73459,73460],[78896,78904],[92912,92916],[92976,92982],[94031,94031],[94095,94098],[113821,113822],[113824,113827],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],[121461,121461],[121476,121476],[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],[123184,123190],[123628,123631],[125136,125142],[125252,125258],[917505,917505],[917536,917631],[917760,917999]],i=[[4352,4447],[8986,8987],[9001,9002],[9193,9196],[9200,9200],[9203,9203],[9725,9726],[9748,9749],[9800,9811],[9855,9855],[9875,9875],[9889,9889],[9898,9899],[9917,9918],[9924,9925],[9934,9934],[9940,9940],[9962,9962],[9970,9971],[9973,9973],[9978,9978],[9981,9981],[9989,9989],[9994,9995],[10024,10024],[10060,10060],[10062,10062],[10067,10069],[10071,10071],[10133,10135],[10160,10160],[10175,10175],[11035,11036],[11088,11088],[11093,11093],[11904,11929],[11931,12019],[12032,12245],[12272,12283],[12288,12329],[12334,12350],[12353,12438],[12443,12543],[12549,12591],[12593,12686],[12688,12730],[12736,12771],[12784,12830],[12832,12871],[12880,19903],[19968,42124],[42128,42182],[43360,43388],[44032,55203],[63744,64255],[65040,65049],[65072,65106],[65108,65126],[65128,65131],[65281,65376],[65504,65510]],o=[[94176,94179],[94208,100343],[100352,101106],[110592,110878],[110928,110930],[110948,110951],[110960,111355],[126980,126980],[127183,127183],[127374,127374],[127377,127386],[127488,127490],[127504,127547],[127552,127560],[127568,127569],[127584,127589],[127744,127776],[127789,127797],[127799,127868],[127870,127891],[127904,127946],[127951,127955],[127968,127984],[127988,127988],[127992,128062],[128064,128064],[128066,128252],[128255,128317],[128331,128334],[128336,128359],[128378,128378],[128405,128406],[128420,128420],[128507,128591],[128640,128709],[128716,128716],[128720,128722],[128725,128725],[128747,128748],[128756,128762],[128992,129003],[129293,129393],[129395,129398],[129402,129442],[129445,129450],[129454,129482],[129485,129535],[129648,129651],[129656,129658],[129664,129666],[129680,129685],[131072,196605],[196608,262141]];let n;function r(t,e){let s,a=0,i=e.length-1;if(te[i][1])return!1;for(;i>=a;)if(s=a+i>>1,t>e[s][1])a=s+1;else{if(!(t{var t=a;Object.defineProperty(t,"__esModule",{value:!0}),t.Unicode11Addon=void 0;const e=s(433);t.Unicode11Addon=class{activate(t){t.unicode.register(new e.UnicodeV11)}dispose(){}}})(),a})()))},67511:t=>{!function(e,s){t.exports=s()}(self,(()=>(()=>{"use strict";var t={6:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LinkComputer=e.WebLinkProvider=void 0,e.WebLinkProvider=class{constructor(t,e,s,a={}){this._terminal=t,this._regex=e,this._handler=s,this._options=a}provideLinks(t,e){const a=s.computeLink(t,this._regex,this._terminal,this._handler);e(this._addCallbacks(a))}_addCallbacks(t){return t.map((t=>(t.leave=this._options.leave,t.hover=(e,s)=>{if(this._options.hover){const{range:a}=t;this._options.hover(e,s,a)}},t)))}};class s{static computeLink(t,e,a,i){const o=new RegExp(e.source,(e.flags||"")+"g"),[n,r]=s._getWindowedLineStrings(t-1,a),l=n.join("");let c;const p=[];for(;c=o.exec(l);){const e=c[0];try{const t=new URL(e),s=decodeURI(t.toString());if(e!==s&&e+"/"!==s)continue}catch(t){continue}const[o,n]=s._mapStrIdx(a,r,0,c.index),[l,d]=s._mapStrIdx(a,o,n,e.length);if(-1===o||-1===n||-1===l||-1===d)continue;const u={start:{x:n+1,y:o+1},end:{x:d,y:l+1}};p.push({range:u,text:e,activate:i})}return p}static _getWindowedLineStrings(t,e){let s,a=t,i=t,o=0,n="";const r=[];if(s=e.buffer.active.getLine(t)){const t=s.translateToString(!0);if(s.isWrapped&&" "!==t[0]){for(o=0;(s=e.buffer.active.getLine(--a))&&o<2048&&(n=s.translateToString(!0),o+=n.length,r.push(n),s.isWrapped&&-1===n.indexOf(" ")););r.reverse()}for(r.push(t),o=0;(s=e.buffer.active.getLine(++i))&&s.isWrapped&&o<2048&&(n=s.translateToString(!0),o+=n.length,r.push(n),-1===n.indexOf(" ")););}return[r,a]}static _mapStrIdx(t,e,s,a){const i=t.buffer.active,o=i.getNullCell();let n=s;for(;a;){const t=i.getLine(e);if(!t)return[-1,-1];for(let s=n;s{var t=a;Object.defineProperty(t,"__esModule",{value:!0}),t.WebLinksAddon=void 0;const e=s(6),i=/https?:[/]{2}[^\s"'!*(){}|\\\^<>`]*[^\s"':,.!?{}|\\\^~\[\]`()<>]/;function o(t,e){const s=window.open();if(s){try{s.opener=null}catch(t){}s.location.href=e}else console.warn("Opening link blocked as opener could not be cleared")}t.WebLinksAddon=class{constructor(t=o,e={}){this._handler=t,this._options=e}activate(t){this._terminal=t;const s=this._options,a=s.urlRegex||i;this._linkProvider=this._terminal.registerLinkProvider(new e.WebLinkProvider(this._terminal,a,this._handler,s))}dispose(){var t;null===(t=this._linkProvider)||void 0===t||t.dispose()}}})(),a})()))}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/7046.js b/HomeUI/dist/js/4940.js similarity index 50% rename from HomeUI/dist/js/7046.js rename to HomeUI/dist/js/4940.js index e4bf9dc92..fe420f270 100644 --- a/HomeUI/dist/js/7046.js +++ b/HomeUI/dist/js/4940.js @@ -1,4 +1,4 @@ -(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[7046],{34547:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"toastification"},[t("div",{staticClass:"d-flex align-items-start"},[t("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:e.variant,size:"1.8rem"}},[t("feather-icon",{attrs:{icon:e.icon,size:"15"}})],1),t("div",{staticClass:"d-flex flex-grow-1"},[t("div",[e.title?t("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${e.variant}`,domProps:{textContent:e._s(e.title)}}):e._e(),e.text?t("small",{staticClass:"d-inline-block text-body",domProps:{textContent:e._s(e.text)}}):e._e()]),t("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(t){return e.$emit("close-toast")}}},[e.hideClose?e._e():t("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},o=[],i=r(47389);const a={components:{BAvatar:i.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},s=a;var u=r(1001),c=(0,u.Z)(s,n,o,!1,null,"22d964ca",null);const l=c.exports},51748:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=function(){var e=this,t=e._self._c;return t("dl",{staticClass:"row",class:e.classes},[t("dt",{staticClass:"col-sm-3"},[e._v(" "+e._s(e.title)+" ")]),e.href.length>0?t("dd",{staticClass:"col-sm-9 mb-0",class:`text-${e.variant}`},[e.href.length>0?t("b-link",{attrs:{href:e.href,target:"_blank",rel:"noopener noreferrer"}},[e._v(" "+e._s(e.data.length>0?e.data:e.number!==Number.MAX_VALUE?e.number:"")+" ")]):e._e()],1):e.click?t("dd",{staticClass:"col-sm-9 mb-0",class:`text-${e.variant}`,on:{click:function(t){return e.$emit("click")}}},[t("b-link",[e._v(" "+e._s(e.data.length>0?e.data:e.number!==Number.MAX_VALUE?e.number:"")+" ")])],1):t("dd",{staticClass:"col-sm-9 mb-0",class:`text-${e.variant}`},[e._v(" "+e._s(e.data.length>0?e.data:e.number!==Number.MAX_VALUE?e.number:"")+" ")])])},o=[],i=r(67347);const a={components:{BLink:i.we},props:{title:{type:String,required:!0},classes:{type:String,required:!1,default:"mb-1"},data:{type:String,required:!1,default:""},number:{type:Number,required:!1,default:Number.MAX_VALUE},variant:{type:String,required:!1,default:"secondary"},href:{type:String,required:!1,default:""},click:{type:Boolean,required:!1,default:!1}}},s=a;var u=r(1001),c=(0,u.Z)(s,n,o,!1,null,null,null);const l=c.exports},44020:e=>{"use strict";var t="%[a-f0-9]{2}",r=new RegExp("("+t+")|([^%]+?)","gi"),n=new RegExp("("+t+")+","gi");function o(e,t){try{return[decodeURIComponent(e.join(""))]}catch(i){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],o(r),o(n))}function i(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(r)||[],n=1;n{"use strict";r.d(t,{qY:()=>h});var n=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o{"use strict";var t,r="object"===typeof Reflect?Reflect:null,n=r&&"function"===typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};function o(e){console&&console.warn&&console.warn(e)}t=r&&"function"===typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!==e};function a(){a.init.call(this)}e.exports=a,e.exports.once=b,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var s=10;function u(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function l(e,t,r,n){var i,a,s;if(u(r),a=e._events,void 0===a?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),s=a[t]),void 0===s)s=a[t]=r,++e._eventsCount;else if("function"===typeof s?s=a[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),i=c(e),i>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,o(l)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=f.bind(n);return o.listener=r,n.wrapFn=o,o}function d(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"===typeof o?r?[o.listener||o]:[o]:r?m(o):y(o,o.length)}function h(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"===typeof r)return 1;if(void 0!==r)return r.length}return 0}function y(e,t){for(var r=new Array(t),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"===typeof u)n(u,this,t);else{var c=u.length,l=y(u,c);for(r=0;r=0;i--)if(r[i]===t||r[i].listener===t){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():v(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,r,n;if(r=this._events,void 0===r)return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var o,i=Object.keys(r);for(n=0;n=0;n--)this.removeListener(e,t[n]);return this},a.prototype.listeners=function(e){return d(this,e,!0)},a.prototype.rawListeners=function(e){return d(this,e,!1)},a.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},a.prototype.listenerCount=h,a.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},92806:e=>{"use strict";e.exports=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),i=0;i{e.exports=self.fetch||(self.fetch=r(25869)["default"]||r(25869))},72307:(e,t,r)=>{e=r.nmd(e);var n=200,o="__lodash_hash_undefined__",i=1,a=2,s=9007199254740991,u="[object Arguments]",c="[object Array]",l="[object AsyncFunction]",f="[object Boolean]",p="[object Date]",d="[object Error]",h="[object Function]",y="[object GeneratorFunction]",v="[object Map]",m="[object Number]",b="[object Null]",g="[object Object]",w="[object Promise]",_="[object Proxy]",x="[object RegExp]",O="[object Set]",A="[object String]",j="[object Symbol]",S="[object Undefined]",k="[object WeakMap]",E="[object ArrayBuffer]",P="[object DataView]",C="[object Float32Array]",I="[object Float64Array]",T="[object Int8Array]",L="[object Int16Array]",z="[object Int32Array]",N="[object Uint8Array]",M="[object Uint8ClampedArray]",B="[object Uint16Array]",U="[object Uint32Array]",F=/[\\^$.*+?()[\]{}|]/g,R=/^\[object .+?Constructor\]$/,$=/^(?:0|[1-9]\d*)$/,W={};W[C]=W[I]=W[T]=W[L]=W[z]=W[N]=W[M]=W[B]=W[U]=!0,W[u]=W[c]=W[E]=W[f]=W[P]=W[p]=W[d]=W[h]=W[v]=W[m]=W[g]=W[x]=W[O]=W[A]=W[k]=!1;var Z="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,D="object"==typeof self&&self&&self.Object===Object&&self,K=Z||D||Function("return this")(),V=t&&!t.nodeType&&t,q=V&&e&&!e.nodeType&&e,J=q&&q.exports===V,G=J&&Z.process,X=function(){try{return G&&G.binding&&G.binding("util")}catch(e){}}(),H=X&&X.isTypedArray;function Y(e,t){var r=-1,n=null==e?0:e.length,o=0,i=[];while(++r-1}function Xe(e,t){var r=this.__data__,n=dt(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function He(e){var t=-1,r=null==e?0:e.length;this.clear();while(++tc))return!1;var f=s.get(e);if(f&&s.get(t))return f==t;var p=-1,d=!0,h=r&a?new nt:void 0;s.set(e,t),s.set(t,e);while(++p-1&&e%1==0&&e-1&&e%1==0&&e<=s}function Kt(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Vt(e){return null!=e&&"object"==typeof e}var qt=H?re(H):wt;function Jt(e){return Rt(e)?pt(e):_t(e)}function Gt(){return[]}function Xt(){return!1}e.exports=Wt},17563:(e,t,r)=>{"use strict";const n=r(70610),o=r(44020),i=r(80500),a=r(92806),s=e=>null===e||void 0===e,u=Symbol("encodeFragmentIdentifier");function c(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const o=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[p(t,e),"[",o,"]"].join("")]:[...r,[p(t,e),"[",p(o,e),"]=",p(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[p(t,e),"[]"].join("")]:[...r,[p(t,e),"[]=",p(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[p(t,e),":list="].join("")]:[...r,[p(t,e),":list=",p(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?n:(o=null===o?"":o,0===n.length?[[p(r,e),t,p(o,e)].join("")]:[[n,p(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,p(t,e)]:[...r,[p(t,e),"=",p(n,e)].join("")]}}function l(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"colon-list-separator":return(e,r,n)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const o="string"===typeof r&&r.includes(e.arrayFormatSeparator),i="string"===typeof r&&!o&&d(r,e).includes(e.arrayFormatSeparator);r=i?d(r,e):r;const a=o||i?r.split(e.arrayFormatSeparator).map((t=>d(t,e))):null===r?r:d(r,e);n[t]=a};case"bracket-separator":return(t,r,n)=>{const o=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!o)return void(n[t]=r?d(r,e):r);const i=null===r?[]:r.split(e.arrayFormatSeparator).map((t=>d(t,e)));void 0!==n[t]?n[t]=[].concat(n[t],i):n[t]=i};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}function f(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function p(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function d(e,t){return t.decode?o(e):e}function h(e){return Array.isArray(e)?e.sort():"object"===typeof e?h(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function y(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function v(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}function m(e){e=y(e);const t=e.indexOf("?");return-1===t?"":e.slice(t+1)}function b(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function g(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),f(t.arrayFormatSeparator);const r=l(t),n=Object.create(null);if("string"!==typeof e)return n;if(e=e.trim().replace(/^[?#&]/,""),!e)return n;for(const o of e.split("&")){if(""===o)continue;let[e,a]=i(t.decode?o.replace(/\+/g," "):o,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:d(a,t),r(d(e,t),a,n)}for(const o of Object.keys(n)){const e=n[o];if("object"===typeof e&&null!==e)for(const r of Object.keys(e))e[r]=b(e[r],t);else n[o]=b(e,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce(((e,t)=>{const r=n[t];return Boolean(r)&&"object"===typeof r&&!Array.isArray(r)?e[t]=h(r):e[t]=r,e}),Object.create(null))}t.extract=m,t.parse=g,t.stringify=(e,t)=>{if(!e)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),f(t.arrayFormatSeparator);const r=r=>t.skipNull&&s(e[r])||t.skipEmptyString&&""===e[r],n=c(t),o={};for(const a of Object.keys(e))r(a)||(o[a]=e[a]);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map((r=>{const o=e[r];return void 0===o?"":null===o?p(r,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?p(r,t)+"[]":o.reduce(n(r),[]).join("&"):p(r,t)+"="+p(o,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[r,n]=i(e,"#");return Object.assign({url:r.split("?")[0]||"",query:g(m(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:d(n,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[u]:!0},r);const n=y(e.url).split("?")[0]||"",o=t.extract(e.url),i=t.parse(o,{sort:!1}),a=Object.assign(i,e.query);let s=t.stringify(a,r);s&&(s=`?${s}`);let c=v(e.url);return e.fragmentIdentifier&&(c=`#${r[u]?p(e.fragmentIdentifier,r):e.fragmentIdentifier}`),`${n}${s}${c}`},t.pick=(e,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[u]:!1},n);const{url:o,query:i,fragmentIdentifier:s}=t.parseUrl(e,n);return t.stringifyUrl({url:o,query:a(i,r),fragmentIdentifier:s},n)},t.exclude=(e,r,n)=>{const o=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,o,n)}},85346:e=>{"use strict";function t(e){try{return JSON.stringify(e)}catch(t){return'"[Circular]"'}}function r(e,r,n){var o=n&&n.stringify||t,i=1;if("object"===typeof e&&null!==e){var a=r.length+i;if(1===a)return e;var s=new Array(a);s[0]=o(e);for(var u=1;u-1?p:0,e.charCodeAt(h+1)){case 100:case 102:if(f>=c)break;if(null==r[f])break;p=c)break;if(null==r[f])break;p=c)break;if(void 0===r[f])break;p",p=h+2,h++;break}l+=o(r[f]),p=h+2,h++;break;case 115:if(f>=c)break;p{"use strict";e.exports=(e,t)=>{if("string"!==typeof e||"string"!==typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},70610:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},27616:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(80914);const o={help(){return(0,n.Z)().get("/daemon/help")},helpSpecific(e){return(0,n.Z)().get(`/daemon/help/${e}`)},getInfo(){return(0,n.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,n.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(e,t){return(0,n.Z)().get(`/daemon/getrawtransaction/${e}/${t}`)},listFluxNodes(){return(0,n.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,n.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,n.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,n.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,n.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,n.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,n.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,n.Z)().get("/daemon/getbenchstatus")},startBenchmark(e){return(0,n.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:e}})},stopBenchmark(e){return(0,n.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:e}})},getBlockCount(){return(0,n.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,n.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,n.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,n.Z)().get("/daemon/getnetworkinfo")},validateAddress(e,t){return(0,n.Z)().get(`/daemon/validateaddress/${t}`,{headers:{zelidauth:e}})},getWalletInfo(e){return(0,n.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:e}})},listFluxNodeConf(e){return(0,n.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:e}})},start(e){return(0,n.Z)().get("/daemon/start",{headers:{zelidauth:e}})},restart(e){return(0,n.Z)().get("/daemon/restart",{headers:{zelidauth:e}})},stopDaemon(e){return(0,n.Z)().get("/daemon/stop",{headers:{zelidauth:e}})},rescanDaemon(e,t){return(0,n.Z)().get(`/daemon/rescanblockchain/${t}`,{headers:{zelidauth:e}})},getBlock(e,t){return(0,n.Z)().get(`/daemon/getblock/${e}/${t}`)},tailDaemonDebug(e){return(0,n.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:e}})},justAPI(){return(0,n.Z)()},cancelToken(){return n.S}}},70655:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__assign:()=>i,__asyncDelegator:()=>w,__asyncGenerator:()=>g,__asyncValues:()=>_,__await:()=>b,__awaiter:()=>l,__classPrivateFieldGet:()=>j,__classPrivateFieldSet:()=>S,__createBinding:()=>p,__decorate:()=>s,__exportStar:()=>d,__extends:()=>o,__generator:()=>f,__importDefault:()=>A,__importStar:()=>O,__makeTemplateObject:()=>x,__metadata:()=>c,__param:()=>u,__read:()=>y,__rest:()=>a,__spread:()=>v,__spreadArrays:()=>m,__values:()=>h}); +(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[4940],{34547:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"toastification"},[t("div",{staticClass:"d-flex align-items-start"},[t("b-avatar",{staticClass:"mr-75 flex-shrink-0",attrs:{variant:e.variant,size:"1.8rem"}},[t("feather-icon",{attrs:{icon:e.icon,size:"15"}})],1),t("div",{staticClass:"d-flex flex-grow-1"},[t("div",[e.title?t("h5",{staticClass:"mb-0 font-weight-bolder toastification-title",class:`text-${e.variant}`,domProps:{textContent:e._s(e.title)}}):e._e(),e.text?t("small",{staticClass:"d-inline-block text-body",domProps:{textContent:e._s(e.text)}}):e._e()]),t("span",{staticClass:"cursor-pointer toastification-close-icon ml-auto",on:{click:function(t){return e.$emit("close-toast")}}},[e.hideClose?e._e():t("feather-icon",{staticClass:"text-body",attrs:{icon:"XIcon"}})],1)])],1)])},o=[],i=r(47389);const s={components:{BAvatar:i.SH},props:{variant:{type:String,default:"primary"},icon:{type:String,default:null},title:{type:String,default:null},text:{type:String,default:null},hideClose:{type:Boolean,default:!1}}},a=s;var c=r(1001),u=(0,c.Z)(a,n,o,!1,null,"22d964ca",null);const l=u.exports},51748:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=function(){var e=this,t=e._self._c;return t("dl",{staticClass:"row",class:e.classes},[t("dt",{staticClass:"col-sm-3"},[e._v(" "+e._s(e.title)+" ")]),e.href.length>0?t("dd",{staticClass:"col-sm-9 mb-0",class:`text-${e.variant}`},[e.href.length>0?t("b-link",{attrs:{href:e.href,target:"_blank",rel:"noopener noreferrer"}},[e._v(" "+e._s(e.data.length>0?e.data:e.number!==Number.MAX_VALUE?e.number:"")+" ")]):e._e()],1):e.click?t("dd",{staticClass:"col-sm-9 mb-0",class:`text-${e.variant}`,on:{click:function(t){return e.$emit("click")}}},[t("b-link",[e._v(" "+e._s(e.data.length>0?e.data:e.number!==Number.MAX_VALUE?e.number:"")+" ")])],1):t("dd",{staticClass:"col-sm-9 mb-0",class:`text-${e.variant}`},[e._v(" "+e._s(e.data.length>0?e.data:e.number!==Number.MAX_VALUE?e.number:"")+" ")])])},o=[],i=r(67347);const s={components:{BLink:i.we},props:{title:{type:String,required:!0},classes:{type:String,required:!1,default:"mb-1"},data:{type:String,required:!1,default:""},number:{type:Number,required:!1,default:Number.MAX_VALUE},variant:{type:String,required:!1,default:"secondary"},href:{type:String,required:!1,default:""},click:{type:Boolean,required:!1,default:!1}}},a=s;var c=r(1001),u=(0,c.Z)(a,n,o,!1,null,null,null);const l=u.exports},44020:e=>{"use strict";var t="%[a-f0-9]{2}",r=new RegExp("("+t+")|([^%]+?)","gi"),n=new RegExp("("+t+")+","gi");function o(e,t){try{return[decodeURIComponent(e.join(""))]}catch(i){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],o(r),o(n))}function i(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(r)||[],n=1;n{"use strict";r.d(t,{qY:()=>d});var n=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o{"use strict";var t,r="object"===typeof Reflect?Reflect:null,n=r&&"function"===typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};function o(e){console&&console.warn&&console.warn(e)}t=r&&"function"===typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!==e};function s(){s.init.call(this)}e.exports=s,e.exports.once=m,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var a=10;function c(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function l(e,t,r,n){var i,s,a;if(c(r),s=e._events,void 0===s?(s=e._events=Object.create(null),e._eventsCount=0):(void 0!==s.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),s=e._events),a=s[t]),void 0===a)a=s[t]=r,++e._eventsCount;else if("function"===typeof a?a=s[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),i=u(e),i>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,o(l)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=f.bind(n);return o.listener=r,n.wrapFn=o,o}function h(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"===typeof o?r?[o.listener||o]:[o]:r?b(o):y(o,o.length)}function d(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"===typeof r)return 1;if(void 0!==r)return r.length}return 0}function y(e,t){for(var r=new Array(t),n=0;n0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var c=i[e];if(void 0===c)return!1;if("function"===typeof c)n(c,this,t);else{var u=c.length,l=y(c,u);for(r=0;r=0;i--)if(r[i]===t||r[i].listener===t){s=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():v(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,s||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,r,n;if(r=this._events,void 0===r)return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var o,i=Object.keys(r);for(n=0;n=0;n--)this.removeListener(e,t[n]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},s.prototype.listenerCount=d,s.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},92806:e=>{"use strict";e.exports=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),i=0;i{e.exports=self.fetch||(self.fetch=r(25869)["default"]||r(25869))},72307:(e,t,r)=>{e=r.nmd(e);var n=200,o="__lodash_hash_undefined__",i=1,s=2,a=9007199254740991,c="[object Arguments]",u="[object Array]",l="[object AsyncFunction]",f="[object Boolean]",p="[object Date]",h="[object Error]",d="[object Function]",y="[object GeneratorFunction]",v="[object Map]",b="[object Number]",m="[object Null]",g="[object Object]",w="[object Promise]",_="[object Proxy]",x="[object RegExp]",O="[object Set]",A="[object String]",j="[object Symbol]",S="[object Undefined]",E="[object WeakMap]",k="[object ArrayBuffer]",P="[object DataView]",T="[object Float32Array]",C="[object Float64Array]",I="[object Int8Array]",L="[object Int16Array]",z="[object Int32Array]",M="[object Uint8Array]",N="[object Uint8ClampedArray]",U="[object Uint16Array]",B="[object Uint32Array]",R=/[\\^$.*+?()[\]{}|]/g,F=/^\[object .+?Constructor\]$/,$=/^(?:0|[1-9]\d*)$/,W={};W[T]=W[C]=W[I]=W[L]=W[z]=W[M]=W[N]=W[U]=W[B]=!0,W[c]=W[u]=W[k]=W[f]=W[P]=W[p]=W[h]=W[d]=W[v]=W[b]=W[g]=W[x]=W[O]=W[A]=W[E]=!1;var D="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,K="object"==typeof self&&self&&self.Object===Object&&self,V=D||K||Function("return this")(),q=t&&!t.nodeType&&t,J=q&&e&&!e.nodeType&&e,G=J&&J.exports===q,X=G&&D.process,H=function(){try{return X&&X.binding&&X.binding("util")}catch(e){}}(),Y=H&&H.isTypedArray;function Z(e,t){var r=-1,n=null==e?0:e.length,o=0,i=[];while(++r-1}function He(e,t){var r=this.__data__,n=ht(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Ye(e){var t=-1,r=null==e?0:e.length;this.clear();while(++tu))return!1;var f=a.get(e);if(f&&a.get(t))return f==t;var p=-1,h=!0,d=r&s?new nt:void 0;a.set(e,t),a.set(t,e);while(++p-1&&e%1==0&&e-1&&e%1==0&&e<=a}function Vt(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function qt(e){return null!=e&&"object"==typeof e}var Jt=Y?re(Y):wt;function Gt(e){return Ft(e)?pt(e):_t(e)}function Xt(){return[]}function Ht(){return!1}e.exports=Wt},17563:(e,t,r)=>{"use strict";const n=r(70610),o=r(44020),i=r(80500),s=r(92806),a=e=>null===e||void 0===e,c=Symbol("encodeFragmentIdentifier");function u(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const o=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[p(t,e),"[",o,"]"].join("")]:[...r,[p(t,e),"[",p(o,e),"]=",p(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[p(t,e),"[]"].join("")]:[...r,[p(t,e),"[]=",p(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[p(t,e),":list="].join("")]:[...r,[p(t,e),":list=",p(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?n:(o=null===o?"":o,0===n.length?[[p(r,e),t,p(o,e)].join("")]:[[n,p(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,p(t,e)]:[...r,[p(t,e),"=",p(n,e)].join("")]}}function l(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"colon-list-separator":return(e,r,n)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const o="string"===typeof r&&r.includes(e.arrayFormatSeparator),i="string"===typeof r&&!o&&h(r,e).includes(e.arrayFormatSeparator);r=i?h(r,e):r;const s=o||i?r.split(e.arrayFormatSeparator).map((t=>h(t,e))):null===r?r:h(r,e);n[t]=s};case"bracket-separator":return(t,r,n)=>{const o=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!o)return void(n[t]=r?h(r,e):r);const i=null===r?[]:r.split(e.arrayFormatSeparator).map((t=>h(t,e)));void 0!==n[t]?n[t]=[].concat(n[t],i):n[t]=i};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}function f(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function p(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function h(e,t){return t.decode?o(e):e}function d(e){return Array.isArray(e)?e.sort():"object"===typeof e?d(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function y(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function v(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}function b(e){e=y(e);const t=e.indexOf("?");return-1===t?"":e.slice(t+1)}function m(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function g(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),f(t.arrayFormatSeparator);const r=l(t),n=Object.create(null);if("string"!==typeof e)return n;if(e=e.trim().replace(/^[?#&]/,""),!e)return n;for(const o of e.split("&")){if(""===o)continue;let[e,s]=i(t.decode?o.replace(/\+/g," "):o,"=");s=void 0===s?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:h(s,t),r(h(e,t),s,n)}for(const o of Object.keys(n)){const e=n[o];if("object"===typeof e&&null!==e)for(const r of Object.keys(e))e[r]=m(e[r],t);else n[o]=m(e,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce(((e,t)=>{const r=n[t];return Boolean(r)&&"object"===typeof r&&!Array.isArray(r)?e[t]=d(r):e[t]=r,e}),Object.create(null))}t.extract=b,t.parse=g,t.stringify=(e,t)=>{if(!e)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),f(t.arrayFormatSeparator);const r=r=>t.skipNull&&a(e[r])||t.skipEmptyString&&""===e[r],n=u(t),o={};for(const s of Object.keys(e))r(s)||(o[s]=e[s]);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map((r=>{const o=e[r];return void 0===o?"":null===o?p(r,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?p(r,t)+"[]":o.reduce(n(r),[]).join("&"):p(r,t)+"="+p(o,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[r,n]=i(e,"#");return Object.assign({url:r.split("?")[0]||"",query:g(b(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:h(n,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[c]:!0},r);const n=y(e.url).split("?")[0]||"",o=t.extract(e.url),i=t.parse(o,{sort:!1}),s=Object.assign(i,e.query);let a=t.stringify(s,r);a&&(a=`?${a}`);let u=v(e.url);return e.fragmentIdentifier&&(u=`#${r[c]?p(e.fragmentIdentifier,r):e.fragmentIdentifier}`),`${n}${a}${u}`},t.pick=(e,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[c]:!1},n);const{url:o,query:i,fragmentIdentifier:a}=t.parseUrl(e,n);return t.stringifyUrl({url:o,query:s(i,r),fragmentIdentifier:a},n)},t.exclude=(e,r,n)=>{const o=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,o,n)}},85346:e=>{"use strict";function t(e){try{return JSON.stringify(e)}catch(t){return'"[Circular]"'}}function r(e,r,n){var o=n&&n.stringify||t,i=1;if("object"===typeof e&&null!==e){var s=r.length+i;if(1===s)return e;var a=new Array(s);a[0]=o(e);for(var c=1;c-1?p:0,e.charCodeAt(d+1)){case 100:case 102:if(f>=u)break;if(null==r[f])break;p=u)break;if(null==r[f])break;p=u)break;if(void 0===r[f])break;p",p=d+2,d++;break}l+=o(r[f]),p=d+2,d++;break;case 115:if(f>=u)break;p{"use strict";e.exports=(e,t)=>{if("string"!==typeof e||"string"!==typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},70610:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},70655:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__assign:()=>i,__asyncDelegator:()=>w,__asyncGenerator:()=>g,__asyncValues:()=>_,__await:()=>m,__awaiter:()=>l,__classPrivateFieldGet:()=>j,__classPrivateFieldSet:()=>S,__createBinding:()=>p,__decorate:()=>a,__exportStar:()=>h,__extends:()=>o,__generator:()=>f,__importDefault:()=>A,__importStar:()=>O,__makeTemplateObject:()=>x,__metadata:()=>u,__param:()=>c,__read:()=>y,__rest:()=>s,__spread:()=>v,__spreadArrays:()=>b,__values:()=>d}); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. @@ -13,4 +13,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ -var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},n(e,t)};function o(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function u(e,t){return function(r,n){t(r,n,e)}}function c(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){function o(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function a(e){try{u(n.next(e))}catch(t){i(t)}}function s(e){try{u(n["throw"](e))}catch(t){i(t)}}function u(e){e.done?r(e.value):o(e.value).then(a,s)}u((n=n.apply(e,t||[])).next())}))}function f(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return u([e,t])}}function u(i){if(r)throw new TypeError("Generator is already executing.");while(a)try{if(r=1,n&&(o=2&i[0]?n["return"]:i[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(e,t){var r="function"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{while((void 0===t||t-- >0)&&!(n=i.next()).done)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(r=i["return"])&&r.call(i)}finally{if(o)throw o.error}}return a}function v(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{u(o[e](t))}catch(r){f(i[0][3],r)}}function u(e){e.value instanceof b?Promise.resolve(e.value.v).then(c,l):f(i[0][2],e)}function c(e){s("next",e)}function l(e){s("throw",e)}function f(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function w(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:b(e[n](t)),done:"return"===n}:o?o(t):t}:o}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"===typeof h?h(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){t=e[r](t),o(n,i,t.done,t.value)}))}}function o(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function O(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function A(e){return e&&e.__esModule?e:{default:e}}function j(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function S(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},25869:(e,t,r)=>{"use strict";function n(e,t){return t=t||{},new Promise((function(r,n){var o=new XMLHttpRequest,i=[],a=[],s={},u=function(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(o.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:u,headers:{keys:function(){return i},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var c in o.open(t.method||"get",e,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,r){i.push(t=t.toLowerCase()),a.push([t,r]),s[t]=s[t]?s[t]+","+r:r})),r(u())},o.onerror=n,o.withCredentials="include"==t.credentials,t.headers)o.setRequestHeader(c,t.headers[c]);o.send(t.body||null)}))}r.r(t),r.d(t,{default:()=>n})},57026:e=>{"use strict";e.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},28125:(e,t,r)=>{"use strict";e.exports=r.p+"img/metamask.svg"},58962:(e,t,r)=>{"use strict";e.exports=r.p+"img/ssp-logo-black.svg"},56070:(e,t,r)=>{"use strict";e.exports=r.p+"img/ssp-logo-white.svg"},47622:(e,t,r)=>{"use strict";e.exports=r.p+"img/walletconnect.svg"},94452:(e,t,r)=>{"use strict";e.exports=r.p+"img/zelID.svg"},35883:()=>{},23550:(e,t,r)=>{"use strict";var n=r(60598),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i("Can't set "+o(e)+" as a prototype")}},37075:e=>{"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},54872:(e,t,r)=>{"use strict";var n,o,i,a=r(37075),s=r(67697),u=r(19037),c=r(69985),l=r(48999),f=r(36812),p=r(50926),d=r(23691),h=r(75773),y=r(11880),v=r(62148),m=r(23622),b=r(61868),g=r(49385),w=r(44201),_=r(14630),x=r(618),O=x.enforce,A=x.get,j=u.Int8Array,S=j&&j.prototype,k=u.Uint8ClampedArray,E=k&&k.prototype,P=j&&b(j),C=S&&b(S),I=Object.prototype,T=u.TypeError,L=w("toStringTag"),z=_("TYPED_ARRAY_TAG"),N="TypedArrayConstructor",M=a&&!!g&&"Opera"!==p(u.opera),B=!1,U={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},F={BigInt64Array:8,BigUint64Array:8},R=function(e){if(!l(e))return!1;var t=p(e);return"DataView"===t||f(U,t)||f(F,t)},$=function(e){var t=b(e);if(l(t)){var r=A(t);return r&&f(r,N)?r[N]:$(t)}},W=function(e){if(!l(e))return!1;var t=p(e);return f(U,t)||f(F,t)},Z=function(e){if(W(e))return e;throw new T("Target is not a typed array")},D=function(e){if(c(e)&&(!g||m(P,e)))return e;throw new T(d(e)+" is not a typed array constructor")},K=function(e,t,r,n){if(s){if(r)for(var o in U){var i=u[o];if(i&&f(i.prototype,e))try{delete i.prototype[e]}catch(a){try{i.prototype[e]=t}catch(c){}}}C[e]&&!r||y(C,e,r?t:M&&S[e]||t,n)}},V=function(e,t,r){var n,o;if(s){if(g){if(r)for(n in U)if(o=u[n],o&&f(o,e))try{delete o[e]}catch(i){}if(P[e]&&!r)return;try{return y(P,e,r?t:M&&P[e]||t)}catch(i){}}for(n in U)o=u[n],!o||o[e]&&!r||y(o,e,t)}};for(n in U)o=u[n],i=o&&o.prototype,i?O(i)[N]=o:M=!1;for(n in F)o=u[n],i=o&&o.prototype,i&&(O(i)[N]=o);if((!M||!c(P)||P===Function.prototype)&&(P=function(){throw new T("Incorrect invocation")},M))for(n in U)u[n]&&g(u[n],P);if((!M||!C||C===I)&&(C=P.prototype,M))for(n in U)u[n]&&g(u[n].prototype,C);if(M&&b(E)!==C&&g(E,C),s&&!f(C,L))for(n in B=!0,v(C,L,{configurable:!0,get:function(){return l(this)?this[z]:void 0}}),U)u[n]&&h(u[n],z,n);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_TAG:B&&z,aTypedArray:Z,aTypedArrayConstructor:D,exportTypedArrayMethod:K,exportTypedArrayStaticMethod:V,getTypedArrayConstructor:$,isView:R,isTypedArray:W,TypedArray:P,TypedArrayPrototype:C}},59976:(e,t,r)=>{"use strict";var n=r(6310);e.exports=function(e,t,r){var o=0,i=arguments.length>2?r:n(t),a=new e(i);while(i>o)a[o]=t[o++];return a}},26166:(e,t,r)=>{"use strict";var n=r(6310);e.exports=function(e,t){for(var r=n(e),o=new t(r),i=0;i{"use strict";var n=r(6310),o=r(68700),i=RangeError;e.exports=function(e,t,r,a){var s=n(e),u=o(r),c=u<0?s+u:u;if(c>=s||c<0)throw new i("Incorrect index");for(var l=new t(s),f=0;f{"use strict";var n=r(23043),o=r(69985),i=r(6648),a=r(44201),s=a("toStringTag"),u=Object,c="Arguments"===i(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(r){}};e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=l(t=u(e),s))?r:c?i(t):"Object"===(n=i(t))&&o(t.callee)?"Arguments":n}},81748:(e,t,r)=>{"use strict";var n=r(3689);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},62148:(e,t,r)=>{"use strict";var n=r(98702),o=r(72560);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),o.f(e,t,r)}},52743:(e,t,r)=>{"use strict";var n=r(68844),o=r(10509);e.exports=function(e,t,r){try{return n(o(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(i){}}},9401:(e,t,r)=>{"use strict";var n=r(50926);e.exports=function(e){var t=n(e);return"BigInt64Array"===t||"BigUint64Array"===t}},60598:(e,t,r)=>{"use strict";var n=r(48999);e.exports=function(e){return n(e)||null===e}},61868:(e,t,r)=>{"use strict";var n=r(36812),o=r(69985),i=r(90690),a=r(2713),s=r(81748),u=a("IE_PROTO"),c=Object,l=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=i(e);if(n(t,u))return t[u];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof c?l:null}},49385:(e,t,r)=>{"use strict";var n=r(52743),o=r(85027),i=r(23550);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{e=n(Object.prototype,"__proto__","set"),e(r,[]),t=r instanceof Array}catch(a){}return function(r,n){return o(r),i(n),t?e(r,n):r.__proto__=n,r}}():void 0)},71530:(e,t,r)=>{"use strict";var n=r(88732),o=TypeError;e.exports=function(e){var t=n(e,"number");if("number"==typeof t)throw new o("Can't convert number to bigint");return BigInt(t)}},23043:(e,t,r)=>{"use strict";var n=r(44201),o=n("toStringTag"),i={};i[o]="z",e.exports="[object z]"===String(i)},34327:(e,t,r)=>{"use strict";var n=r(50926),o=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},21500:e=>{"use strict";var t=TypeError;e.exports=function(e,r){if(e{"use strict";var n=r(26166),o=r(54872),i=o.aTypedArray,a=o.exportTypedArrayMethod,s=o.getTypedArrayConstructor;a("toReversed",(function(){return n(i(this),s(this))}))},61121:(e,t,r)=>{"use strict";var n=r(54872),o=r(68844),i=r(10509),a=r(59976),s=n.aTypedArray,u=n.getTypedArrayConstructor,c=n.exportTypedArrayMethod,l=o(n.TypedArrayPrototype.sort);c("toSorted",(function(e){void 0!==e&&i(e);var t=s(this),r=a(u(t),t);return l(r,e)}))},37133:(e,t,r)=>{"use strict";var n=r(16134),o=r(54872),i=r(9401),a=r(68700),s=r(71530),u=o.aTypedArray,c=o.getTypedArrayConstructor,l=o.exportTypedArrayMethod,f=!!function(){try{new Int8Array(1)["with"](2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}();l("with",{with:function(e,t){var r=u(this),o=a(e),l=i(r)?s(t):+t;return n(r,c(r),o,l)}}["with"],!f)},98858:(e,t,r)=>{"use strict";var n=r(11880),o=r(68844),i=r(34327),a=r(21500),s=URLSearchParams,u=s.prototype,c=o(u.append),l=o(u["delete"]),f=o(u.forEach),p=o([].push),d=new s("a=1&a=2&b=3");d["delete"]("a",1),d["delete"]("b",void 0),d+""!=="a=2"&&n(u,"delete",(function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return l(this,e);var n=[];f(this,(function(e,t){p(n,{key:t,value:e})})),a(t,1);var o,s=i(e),u=i(r),d=0,h=0,y=!1,v=n.length;while(d{"use strict";var n=r(11880),o=r(68844),i=r(34327),a=r(21500),s=URLSearchParams,u=s.prototype,c=o(u.getAll),l=o(u.has),f=new s("a=1");!f.has("a",2)&&f.has("a",void 0)||n(u,"has",(function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return l(this,e);var n=c(this,e);a(t,1);var o=i(r),s=0;while(s{"use strict";var n=r(67697),o=r(68844),i=r(62148),a=URLSearchParams.prototype,s=o(a.forEach);n&&!("size"in a)&&i(a,"size",{get:function(){var e=0;return s(this,(function(){e++})),e},configurable:!0,enumerable:!0})},36559:(e,t,r)=>{"use strict";const n=r(85346);e.exports=s;const o=A().console||{},i={mapHttpRequest:m,mapHttpResponse:m,wrapRequestSerializer:b,wrapResponseSerializer:b,wrapErrorSerializer:b,req:m,res:m,err:y};function a(e,t){if(Array.isArray(e)){const t=e.filter((function(e){return"!stdSerializers.err"!==e}));return t}return!0===e&&Object.keys(t)}function s(e){e=e||{},e.browser=e.browser||{};const t=e.browser.transmit;if(t&&"function"!==typeof t.send)throw Error("pino: transmit option must have a send function");const r=e.browser.write||o;e.browser.write&&(e.browser.asObject=!0);const n=e.serializers||{},i=a(e.browser.serialize,n);let c=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(c=!1);const l=["error","fatal","warn","info","debug","trace"];"function"===typeof r&&(r.error=r.fatal=r.warn=r.info=r.debug=r.trace=r),!1===e.enabled&&(e.level="silent");const d=e.level||"info",y=Object.create(r);y.log||(y.log=g),Object.defineProperty(y,"levelVal",{get:b}),Object.defineProperty(y,"level",{get:w,set:_});const m={transmit:t,serialize:i,asObject:e.browser.asObject,levels:l,timestamp:v(e)};function b(){return"silent"===this.level?1/0:this.levels.values[this.level]}function w(){return this._level}function _(e){if("silent"!==e&&!this.levels.values[e])throw Error("unknown level "+e);this._level=e,u(m,y,"error","log"),u(m,y,"fatal","error"),u(m,y,"warn","error"),u(m,y,"info","log"),u(m,y,"debug","log"),u(m,y,"trace","log")}function x(r,o){if(!r)throw new Error("missing bindings for child Pino");o=o||{},i&&r.serializers&&(o.serializers=r.serializers);const a=o.serializers;if(i&&a){var s=Object.assign({},n,a),u=!0===e.browser.serialize?Object.keys(s):i;delete r.serializers,f([r],u,s,this._stdErrSerialize)}function c(e){this._childLevel=1+(0|e._childLevel),this.error=p(e,r,"error"),this.fatal=p(e,r,"fatal"),this.warn=p(e,r,"warn"),this.info=p(e,r,"info"),this.debug=p(e,r,"debug"),this.trace=p(e,r,"trace"),s&&(this.serializers=s,this._serialize=u),t&&(this._logEvent=h([].concat(e._logEvent.bindings,r)))}return c.prototype=this,new c(this)}return y.levels=s.levels,y.level=d,y.setMaxListeners=y.getMaxListeners=y.emit=y.addListener=y.on=y.prependListener=y.once=y.prependOnceListener=y.removeListener=y.removeAllListeners=y.listeners=y.listenerCount=y.eventNames=y.write=y.flush=g,y.serializers=n,y._serialize=i,y._stdErrSerialize=c,y.child=x,t&&(y._logEvent=h()),y}function u(e,t,r,n){const i=Object.getPrototypeOf(t);t[r]=t.levelVal>t.levels.values[r]?g:i[r]?i[r]:o[r]||o[n]||g,c(e,t,r)}function c(e,t,r){(e.transmit||t[r]!==g)&&(t[r]=function(n){return function(){const i=e.timestamp(),a=new Array(arguments.length),u=Object.getPrototypeOf&&Object.getPrototypeOf(this)===o?o:this;for(var c=0;c-1&&n in r&&(e[o][n]=r[n](e[o][n]))}function p(e,t,r){return function(){const n=new Array(1+arguments.length);n[0]=t;for(var o=1;o{"use strict";r.d(t,{o6:()=>j});r(70560);const n=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,o=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,i=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function a(e,t){if(!("__proto__"===e||"constructor"===e&&t&&"object"===typeof t&&"prototype"in t))return t;s(e)}function s(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function u(e,t={}){if("string"!==typeof e)return e;const r=e.trim();if('"'===e[0]&&'"'===e.at(-1)&&!e.includes("\\"))return r.slice(1,-1);if(r.length<=9){const e=r.toLowerCase();if("true"===e)return!0;if("false"===e)return!1;if("undefined"===e)return;if("null"===e)return null;if("nan"===e)return Number.NaN;if("infinity"===e)return Number.POSITIVE_INFINITY;if("-infinity"===e)return Number.NEGATIVE_INFINITY}if(!i.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(n.test(e)||o.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,a)}return JSON.parse(e)}catch(s){if(t.strict)throw s;return e}}var c=r(48764)["lW"];function l(e){return e&&"function"===typeof e.then?e:Promise.resolve(e)}function f(e,...t){try{return l(e(...t))}catch(r){return Promise.reject(r)}}function p(e){const t=typeof e;return null===e||"object"!==t&&"function"!==t}function d(e){const t=Object.getPrototypeOf(e);return!t||t.isPrototypeOf(Object)}function h(e){if(p(e))return String(e);if(d(e)||Array.isArray(e))return JSON.stringify(e);if("function"===typeof e.toJSON)return h(e.toJSON());throw new Error("[unstorage] Cannot stringify value!")}function y(){if(void 0===typeof c)throw new TypeError("[unstorage] Buffer is not supported!")}const v="base64:";function m(e){if("string"===typeof e)return e;y();const t=c.from(e).toString("base64");return v+t}function b(e){return"string"!==typeof e?e:e.startsWith(v)?(y(),c.from(e.slice(v.length),"base64")):e}function g(e){return e?e.split("?")[0].replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""):""}function w(...e){return g(e.join(":"))}function _(e){return e=g(e),e?e+":":""}function x(e){return e}const O="memory",A=x((()=>{const e=new Map;return{name:O,options:{},hasItem(t){return e.has(t)},getItem(t){return e.get(t)??null},getItemRaw(t){return e.get(t)??null},setItem(t,r){e.set(t,r)},setItemRaw(t,r){e.set(t,r)},removeItem(t){e.delete(t)},getKeys(){return Array.from(e.keys())},clear(){e.clear()},dispose(){e.clear()}}}));function j(e={}){const t={mounts:{"":e.driver||A()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},r=e=>{for(const r of t.mountpoints)if(e.startsWith(r))return{base:r,relativeKey:e.slice(r.length),driver:t.mounts[r]};return{base:"",relativeKey:e,driver:t.mounts[""]}},n=(e,r)=>t.mountpoints.filter((t=>t.startsWith(e)||r&&e.startsWith(t))).map((r=>({relativeBase:e.length>r.length?e.slice(r.length):void 0,mountpoint:r,driver:t.mounts[r]}))),o=(e,r)=>{if(t.watching){r=g(r);for(const n of t.watchListeners)n(e,r)}},i=async()=>{if(!t.watching){t.watching=!0;for(const e in t.mounts)t.unwatch[e]=await S(t.mounts[e],o,e)}},a=async()=>{if(t.watching){for(const e in t.unwatch)await t.unwatch[e]();t.unwatch={},t.watching=!1}},s=(e,t,n)=>{const o=new Map,i=e=>{let t=o.get(e.base);return t||(t={driver:e.driver,base:e.base,items:[]},o.set(e.base,t)),t};for(const a of e){const e="string"===typeof a,n=g(e?a:a.key),o=e?void 0:a.value,s=e||!a.options?t:{...t,...a.options},u=r(n);i(u).items.push({key:n,value:o,relativeKey:u.relativeKey,options:s})}return Promise.all([...o.values()].map((e=>n(e)))).then((e=>e.flat()))},c={hasItem(e,t={}){e=g(e);const{relativeKey:n,driver:o}=r(e);return f(o.hasItem,n,t)},getItem(e,t={}){e=g(e);const{relativeKey:n,driver:o}=r(e);return f(o.getItem,n,t).then((e=>u(e)))},getItems(e,t){return s(e,t,(e=>e.driver.getItems?f(e.driver.getItems,e.items.map((e=>({key:e.relativeKey,options:e.options}))),t).then((t=>t.map((t=>({key:w(e.base,t.key),value:u(t.value)}))))):Promise.all(e.items.map((t=>f(e.driver.getItem,t.relativeKey,t.options).then((e=>({key:t.key,value:u(e)}))))))))},getItemRaw(e,t={}){e=g(e);const{relativeKey:n,driver:o}=r(e);return o.getItemRaw?f(o.getItemRaw,n,t):f(o.getItem,n,t).then((e=>b(e)))},async setItem(e,t,n={}){if(void 0===t)return c.removeItem(e);e=g(e);const{relativeKey:i,driver:a}=r(e);a.setItem&&(await f(a.setItem,i,h(t),n),a.watch||o("update",e))},async setItems(e,t){await s(e,t,(async e=>{e.driver.setItems&&await f(e.driver.setItems,e.items.map((e=>({key:e.relativeKey,value:h(e.value),options:e.options}))),t),e.driver.setItem&&await Promise.all(e.items.map((t=>f(e.driver.setItem,t.relativeKey,h(t.value),t.options))))}))},async setItemRaw(e,t,n={}){if(void 0===t)return c.removeItem(e,n);e=g(e);const{relativeKey:i,driver:a}=r(e);if(a.setItemRaw)await f(a.setItemRaw,i,t,n);else{if(!a.setItem)return;await f(a.setItem,i,m(t),n)}a.watch||o("update",e)},async removeItem(e,t={}){"boolean"===typeof t&&(t={removeMeta:t}),e=g(e);const{relativeKey:n,driver:i}=r(e);i.removeItem&&(await f(i.removeItem,n,t),(t.removeMeta||t.removeMata)&&await f(i.removeItem,n+"$",t),i.watch||o("remove",e))},async getMeta(e,t={}){"boolean"===typeof t&&(t={nativeOnly:t}),e=g(e);const{relativeKey:n,driver:o}=r(e),i=Object.create(null);if(o.getMeta&&Object.assign(i,await f(o.getMeta,n,t)),!t.nativeOnly){const e=await f(o.getItem,n+"$",t).then((e=>u(e)));e&&"object"===typeof e&&("string"===typeof e.atime&&(e.atime=new Date(e.atime)),"string"===typeof e.mtime&&(e.mtime=new Date(e.mtime)),Object.assign(i,e))}return i},setMeta(e,t,r={}){return this.setItem(e+"$",t,r)},removeMeta(e,t={}){return this.removeItem(e+"$",t)},async getKeys(e,t={}){e=_(e);const r=n(e,!0);let o=[];const i=[];for(const n of r){const e=await f(n.driver.getKeys,n.relativeBase,t),r=e.map((e=>n.mountpoint+g(e))).filter((e=>!o.some((t=>e.startsWith(t)))));i.push(...r),o=[n.mountpoint,...o.filter((e=>!e.startsWith(n.mountpoint)))]}return e?i.filter((t=>t.startsWith(e)&&!t.endsWith("$"))):i.filter((e=>!e.endsWith("$")))},async clear(e,t={}){e=_(e),await Promise.all(n(e,!1).map((async e=>{if(e.driver.clear)return f(e.driver.clear,e.relativeBase,t);if(e.driver.removeItem){const r=await e.driver.getKeys(e.relativeBase||"",t);return Promise.all(r.map((r=>e.driver.removeItem(r,t))))}})))},async dispose(){await Promise.all(Object.values(t.mounts).map((e=>k(e))))},async watch(e){return await i(),t.watchListeners.push(e),async()=>{t.watchListeners=t.watchListeners.filter((t=>t!==e)),0===t.watchListeners.length&&await a()}},async unwatch(){t.watchListeners=[],await a()},mount(e,r){if(e=_(e),e&&t.mounts[e])throw new Error(`already mounted at ${e}`);return e&&(t.mountpoints.push(e),t.mountpoints.sort(((e,t)=>t.length-e.length))),t.mounts[e]=r,t.watching&&Promise.resolve(S(r,o,e)).then((r=>{t.unwatch[e]=r})).catch(console.error),c},async unmount(e,r=!0){e=_(e),e&&t.mounts[e]&&(t.watching&&e in t.unwatch&&(t.unwatch[e](),delete t.unwatch[e]),r&&await k(t.mounts[e]),t.mountpoints=t.mountpoints.filter((t=>t!==e)),delete t.mounts[e])},getMount(e=""){e=g(e)+":";const t=r(e);return{driver:t.driver,base:t.base}},getMounts(e="",t={}){e=g(e);const r=n(e,t.parents);return r.map((e=>({driver:e.driver,base:e.mountpoint})))}};return c}function S(e,t,r){return e.watch?e.watch(((e,n)=>t(e,r+n))):()=>{}}async function k(e){"function"===typeof e.dispose&&await f(e.dispose)}},24678:(e,t,r)=>{"use strict";function n(e){return new Promise(((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)}))}function o(e,t){const r=indexedDB.open(e);r.onupgradeneeded=()=>r.result.createObjectStore(t);const o=n(r);return(e,r)=>o.then((n=>r(n.transaction(t,e).objectStore(t))))}let i;function a(){return i||(i=o("keyval-store","keyval")),i}function s(e,t=a()){return t("readonly",(t=>n(t.get(e))))}function u(e,t,r=a()){return r("readwrite",(r=>(r.put(t,e),n(r.transaction))))}function c(e,t=a()){return t("readwrite",(t=>(t.delete(e),n(t.transaction))))}function l(e=a()){return e("readwrite",(e=>(e.clear(),n(e.transaction))))}function f(e,t){return e.openCursor().onsuccess=function(){this.result&&(t(this.result),this.result.continue())},n(e.transaction)}function p(e=a()){return e("readonly",(e=>{if(e.getAllKeys)return n(e.getAllKeys());const t=[];return f(e,(e=>t.push(e.key))).then((()=>t))}))}r.d(t,{IV:()=>c,MT:()=>o,U2:()=>s,XP:()=>p,ZH:()=>l,t8:()=>u})},53160:(e,t,r)=>{"use strict";r.d(t,{E:()=>o});var n=r(16867);function o(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?(0,n.P)(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}},20605:(e,t,r)=>{"use strict";r.d(t,{z:()=>i});var n=r(53160),o=r(16867);function i(e,t){t||(t=e.reduce(((e,t)=>e+t.length),0));const r=(0,n.E)(t);let i=0;for(const n of e)r.set(n,i),i+=n.length;return(0,o.P)(r)}},52217:(e,t,r)=>{"use strict";r.d(t,{m:()=>i});var n=r(73149),o=r(16867);function i(e,t="utf8"){const r=n.Z[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return"utf8"!==t&&"utf-8"!==t||null==globalThis.Buffer||null==globalThis.Buffer.from?r.decoder.decode(`${r.prefix}${e}`):(0,o.P)(globalThis.Buffer.from(e,"utf-8"))}},37466:(e,t,r)=>{"use strict";r.d(t,{BB:()=>i.B,mL:()=>o.m,zo:()=>n.z});var n=r(20605),o=r(52217),i=r(92263)},92263:(e,t,r)=>{"use strict";r.d(t,{B:()=>o});var n=r(73149);function o(e,t="utf8"){const r=n.Z[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return"utf8"!==t&&"utf-8"!==t||null==globalThis.Buffer||null==globalThis.Buffer.from?r.encoder.encode(e).substring(1):globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8")}},16867:(e,t,r)=>{"use strict";function n(e){return null!=globalThis.Buffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}r.d(t,{P:()=>n})},73149:(e,t,r)=>{"use strict";r.d(t,{Z:()=>ut});var n={};r.r(n),r.d(n,{identity:()=>z});var o={};r.r(o),r.d(o,{base2:()=>N});var i={};r.r(i),r.d(i,{base8:()=>M});var a={};r.r(a),r.d(a,{base10:()=>B});var s={};r.r(s),r.d(s,{base16:()=>U,base16upper:()=>F});var u={};r.r(u),r.d(u,{base32:()=>R,base32hex:()=>D,base32hexpad:()=>V,base32hexpadupper:()=>q,base32hexupper:()=>K,base32pad:()=>W,base32padupper:()=>Z,base32upper:()=>$,base32z:()=>J});var c={};r.r(c),r.d(c,{base36:()=>G,base36upper:()=>X});var l={};r.r(l),r.d(l,{base58btc:()=>H,base58flickr:()=>Y});var f={};r.r(f),r.d(f,{base64:()=>Q,base64pad:()=>ee,base64url:()=>te,base64urlpad:()=>re});var p={};r.r(p),r.d(p,{base256emoji:()=>ue});var d={};r.r(d),r.d(d,{sha256:()=>Fe,sha512:()=>Re});var h={};r.r(h),r.d(h,{identity:()=>Ke});var y={};r.r(y),r.d(y,{code:()=>qe,decode:()=>Ge,encode:()=>Je,name:()=>Ve});var v={};function m(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n>>0,c=new Uint8Array(a);while(o!==i){for(var f=t[o],p=0,d=a-1;(0!==f||p>>0,c[d]=f%s>>>0,f=f/s>>>0;if(0!==f)throw new Error("Non-zero carry");n=p,o++}var h=a-n;while(h!==a&&0===c[h])h++;for(var y=u.repeat(r);h>>0,a=new Uint8Array(i);while(e[t]){var l=r[e.charCodeAt(t)];if(255===l)return;for(var f=0,p=i-1;(0!==l||f>>0,a[p]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");o=f,t++}if(" "!==e[t]){var d=i-o;while(d!==i&&0===a[d])d++;var h=new Uint8Array(n+(i-d)),y=n;while(d!==i)h[y++]=a[d++];return h}}}function d(e){var r=p(e);if(r)return r;throw new Error(`Non-${t} character`)}return{encode:f,decodeUnsafe:p,decode:d}}r.r(v),r.d(v,{code:()=>Qe,decode:()=>tt,encode:()=>et,name:()=>Ye});var b=m,g=b;const w=g,_=(new Uint8Array(0),e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")}),x=e=>(new TextEncoder).encode(e),O=e=>(new TextDecoder).decode(e);class A{constructor(e,t,r){this.name=e,this.prefix=t,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class j{constructor(e,t,r){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=r}decode(e){if("string"===typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return k(this,e)}}class S{constructor(e){this.decoders=e}or(e){return k(this,e)}decode(e){const t=e[0],r=this.decoders[t];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const k=(e,t)=>new S({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class E{constructor(e,t,r,n){this.name=e,this.prefix=t,this.baseEncode=r,this.baseDecode=n,this.encoder=new A(e,t,r),this.decoder=new j(e,t,n)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const P=({name:e,prefix:t,encode:r,decode:n})=>new E(e,t,r,n),C=({prefix:e,name:t,alphabet:r})=>{const{encode:n,decode:o}=w(r,t);return P({prefix:e,name:t,encode:n,decode:e=>_(o(e))})},I=(e,t,r,n)=>{const o={};for(let l=0;l=8&&(s-=8,a[c++]=255&u>>s)}if(s>=r||255&u<<8-s)throw new SyntaxError("Unexpected end of data");return a},T=(e,t,r)=>{const n="="===t[t.length-1],o=(1<r)a-=r,i+=t[o&s>>a]}if(a&&(i+=t[o&s<P({prefix:t,name:e,encode(e){return T(e,n,r)},decode(t){return I(t,n,r,e)}}),z=P({prefix:"\0",name:"identity",encode:e=>O(e),decode:e=>x(e)}),N=L({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),M=L({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),B=C({prefix:"9",name:"base10",alphabet:"0123456789"}),U=L({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),F=L({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),R=L({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),$=L({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),W=L({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),Z=L({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),D=L({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),K=L({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),V=L({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),q=L({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),J=L({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),G=C({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),X=C({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),H=C({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Y=C({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),Q=L({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),ee=L({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),te=L({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),re=L({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),ne=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),oe=ne.reduce(((e,t,r)=>(e[r]=t,e)),[]),ie=ne.reduce(((e,t,r)=>(e[t.codePointAt(0)]=r,e)),[]);function ae(e){return e.reduce(((e,t)=>(e+=oe[t],e)),"")}function se(e){const t=[];for(const r of e){const e=ie[r.codePointAt(0)];if(void 0===e)throw new Error(`Non-base256emoji character: ${r}`);t.push(e)}return new Uint8Array(t)}const ue=P({prefix:"🚀",name:"base256emoji",encode:ae,decode:se});var ce=he,le=128,fe=127,pe=~fe,de=Math.pow(2,31);function he(e,t,r){t=t||[],r=r||0;var n=r;while(e>=de)t[r++]=255&e|le,e/=128;while(e&pe)t[r++]=255&e|le,e>>>=7;return t[r]=0|e,he.bytes=r-n+1,t}var ye=be,ve=128,me=127;function be(e,t){var r,n=0,o=(t=t||0,0),i=t,a=e.length;do{if(i>=a)throw be.bytes=0,new RangeError("Could not decode varint");r=e[i++],n+=o<28?(r&me)<=ve);return be.bytes=i-t,n}var ge=Math.pow(2,7),we=Math.pow(2,14),_e=Math.pow(2,21),xe=Math.pow(2,28),Oe=Math.pow(2,35),Ae=Math.pow(2,42),je=Math.pow(2,49),Se=Math.pow(2,56),ke=Math.pow(2,63),Ee=function(e){return e(Ie.encode(e,t,r),t),Le=e=>Ie.encodingLength(e),ze=(e,t)=>{const r=t.byteLength,n=Le(e),o=n+Le(r),i=new Uint8Array(o+r);return Te(e,i,0),Te(r,i,n),i.set(t,o),new Ne(e,r,t,i)};class Ne{constructor(e,t,r,n){this.code=e,this.size=t,this.digest=r,this.bytes=n}}const Me=({name:e,code:t,encode:r})=>new Be(e,t,r);class Be{constructor(e,t,r){this.name=e,this.code=t,this.encode=r}digest(e){if(e instanceof Uint8Array){const t=this.encode(e);return t instanceof Uint8Array?ze(this.code,t):t.then((e=>ze(this.code,e)))}throw Error("Unknown type, must be binary type")}}const Ue=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),Fe=Me({name:"sha2-256",code:18,encode:Ue("SHA-256")}),Re=Me({name:"sha2-512",code:19,encode:Ue("SHA-512")}),$e=0,We="identity",Ze=_,De=e=>ze($e,Ze(e)),Ke={code:$e,name:We,encode:Ze,digest:De},Ve="raw",qe=85,Je=e=>_(e),Ge=e=>_(e),Xe=new TextEncoder,He=new TextDecoder,Ye="json",Qe=512,et=e=>Xe.encode(JSON.stringify(e)),tt=e=>JSON.parse(He.decode(e));Symbol.toStringTag,Symbol.for("nodejs.util.inspect.custom");Symbol.for("@ipld/js-cid/CID");const rt={...n,...o,...i,...a,...s,...u,...c,...l,...f,...p};var nt=r(53160);function ot(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}const it=ot("utf8","u",(e=>{const t=new TextDecoder("utf8");return"u"+t.decode(e)}),(e=>{const t=new TextEncoder;return t.encode(e.substring(1))})),at=ot("ascii","a",(e=>{let t="a";for(let r=0;r{e=e.substring(1);const t=(0,nt.E)(e.length);for(let r=0;r=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}function c(e,t){return function(r,n){t(r,n,e)}}function u(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){function o(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function s(e){try{c(n.next(e))}catch(t){i(t)}}function a(e){try{c(n["throw"](e))}catch(t){i(t)}}function c(e){e.done?r(e.value):o(e.value).then(s,a)}c((n=n.apply(e,t||[])).next())}))}function f(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(e){return function(t){return c([e,t])}}function c(i){if(r)throw new TypeError("Generator is already executing.");while(s)try{if(r=1,n&&(o=2&i[0]?n["return"]:i[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(e,t){var r="function"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{while((void 0===t||t-- >0)&&!(n=i.next()).done)s.push(n.value)}catch(a){o={error:a}}finally{try{n&&!n.done&&(r=i["return"])&&r.call(i)}finally{if(o)throw o.error}}return s}function v(){for(var e=[],t=0;t1||a(e,t)}))})}function a(e,t){try{c(o[e](t))}catch(r){f(i[0][3],r)}}function c(e){e.value instanceof m?Promise.resolve(e.value.v).then(u,l):f(i[0][2],e)}function u(e){a("next",e)}function l(e){a("throw",e)}function f(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function w(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:m(e[n](t)),done:"return"===n}:o?o(t):t}:o}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"===typeof d?d(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){t=e[r](t),o(n,i,t.done,t.value)}))}}function o(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function O(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function A(e){return e&&e.__esModule?e:{default:e}}function j(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function S(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},25869:(e,t,r)=>{"use strict";function n(e,t){return t=t||{},new Promise((function(r,n){var o=new XMLHttpRequest,i=[],s=[],a={},c=function(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(o.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:c,headers:{keys:function(){return i},entries:function(){return s},get:function(e){return a[e.toLowerCase()]},has:function(e){return e.toLowerCase()in a}}}};for(var u in o.open(t.method||"get",e,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,r){i.push(t=t.toLowerCase()),s.push([t,r]),a[t]=a[t]?a[t]+","+r:r})),r(c())},o.onerror=n,o.withCredentials="include"==t.credentials,t.headers)o.setRequestHeader(u,t.headers[u]);o.send(t.body||null)}))}r.r(t),r.d(t,{default:()=>n})},57026:e=>{"use strict";e.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},28125:(e,t,r)=>{"use strict";e.exports=r.p+"img/metamask.svg"},58962:(e,t,r)=>{"use strict";e.exports=r.p+"img/ssp-logo-black.svg"},56070:(e,t,r)=>{"use strict";e.exports=r.p+"img/ssp-logo-white.svg"},47622:(e,t,r)=>{"use strict";e.exports=r.p+"img/walletconnect.svg"},94452:(e,t,r)=>{"use strict";e.exports=r.p+"img/zelID.svg"},35883:()=>{},23550:(e,t,r)=>{"use strict";var n=r(60598),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i("Can't set "+o(e)+" as a prototype")}},37075:e=>{"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},54872:(e,t,r)=>{"use strict";var n,o,i,s=r(37075),a=r(67697),c=r(19037),u=r(69985),l=r(48999),f=r(36812),p=r(50926),h=r(23691),d=r(75773),y=r(11880),v=r(62148),b=r(23622),m=r(61868),g=r(49385),w=r(44201),_=r(14630),x=r(618),O=x.enforce,A=x.get,j=c.Int8Array,S=j&&j.prototype,E=c.Uint8ClampedArray,k=E&&E.prototype,P=j&&m(j),T=S&&m(S),C=Object.prototype,I=c.TypeError,L=w("toStringTag"),z=_("TYPED_ARRAY_TAG"),M="TypedArrayConstructor",N=s&&!!g&&"Opera"!==p(c.opera),U=!1,B={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},R={BigInt64Array:8,BigUint64Array:8},F=function(e){if(!l(e))return!1;var t=p(e);return"DataView"===t||f(B,t)||f(R,t)},$=function(e){var t=m(e);if(l(t)){var r=A(t);return r&&f(r,M)?r[M]:$(t)}},W=function(e){if(!l(e))return!1;var t=p(e);return f(B,t)||f(R,t)},D=function(e){if(W(e))return e;throw new I("Target is not a typed array")},K=function(e){if(u(e)&&(!g||b(P,e)))return e;throw new I(h(e)+" is not a typed array constructor")},V=function(e,t,r,n){if(a){if(r)for(var o in B){var i=c[o];if(i&&f(i.prototype,e))try{delete i.prototype[e]}catch(s){try{i.prototype[e]=t}catch(u){}}}T[e]&&!r||y(T,e,r?t:N&&S[e]||t,n)}},q=function(e,t,r){var n,o;if(a){if(g){if(r)for(n in B)if(o=c[n],o&&f(o,e))try{delete o[e]}catch(i){}if(P[e]&&!r)return;try{return y(P,e,r?t:N&&P[e]||t)}catch(i){}}for(n in B)o=c[n],!o||o[e]&&!r||y(o,e,t)}};for(n in B)o=c[n],i=o&&o.prototype,i?O(i)[M]=o:N=!1;for(n in R)o=c[n],i=o&&o.prototype,i&&(O(i)[M]=o);if((!N||!u(P)||P===Function.prototype)&&(P=function(){throw new I("Incorrect invocation")},N))for(n in B)c[n]&&g(c[n],P);if((!N||!T||T===C)&&(T=P.prototype,N))for(n in B)c[n]&&g(c[n].prototype,T);if(N&&m(k)!==T&&g(k,T),a&&!f(T,L))for(n in U=!0,v(T,L,{configurable:!0,get:function(){return l(this)?this[z]:void 0}}),B)c[n]&&d(c[n],z,n);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:U&&z,aTypedArray:D,aTypedArrayConstructor:K,exportTypedArrayMethod:V,exportTypedArrayStaticMethod:q,getTypedArrayConstructor:$,isView:F,isTypedArray:W,TypedArray:P,TypedArrayPrototype:T}},59976:(e,t,r)=>{"use strict";var n=r(6310);e.exports=function(e,t,r){var o=0,i=arguments.length>2?r:n(t),s=new e(i);while(i>o)s[o]=t[o++];return s}},26166:(e,t,r)=>{"use strict";var n=r(6310);e.exports=function(e,t){for(var r=n(e),o=new t(r),i=0;i{"use strict";var n=r(6310),o=r(68700),i=RangeError;e.exports=function(e,t,r,s){var a=n(e),c=o(r),u=c<0?a+c:c;if(u>=a||u<0)throw new i("Incorrect index");for(var l=new t(a),f=0;f{"use strict";var n=r(23043),o=r(69985),i=r(6648),s=r(44201),a=s("toStringTag"),c=Object,u="Arguments"===i(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(r){}};e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=l(t=c(e),a))?r:u?i(t):"Object"===(n=i(t))&&o(t.callee)?"Arguments":n}},81748:(e,t,r)=>{"use strict";var n=r(3689);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},62148:(e,t,r)=>{"use strict";var n=r(98702),o=r(72560);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),o.f(e,t,r)}},52743:(e,t,r)=>{"use strict";var n=r(68844),o=r(10509);e.exports=function(e,t,r){try{return n(o(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(i){}}},9401:(e,t,r)=>{"use strict";var n=r(50926);e.exports=function(e){var t=n(e);return"BigInt64Array"===t||"BigUint64Array"===t}},60598:(e,t,r)=>{"use strict";var n=r(48999);e.exports=function(e){return n(e)||null===e}},61868:(e,t,r)=>{"use strict";var n=r(36812),o=r(69985),i=r(90690),s=r(2713),a=r(81748),c=s("IE_PROTO"),u=Object,l=u.prototype;e.exports=a?u.getPrototypeOf:function(e){var t=i(e);if(n(t,c))return t[c];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof u?l:null}},49385:(e,t,r)=>{"use strict";var n=r(52743),o=r(85027),i=r(23550);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{e=n(Object.prototype,"__proto__","set"),e(r,[]),t=r instanceof Array}catch(s){}return function(r,n){return o(r),i(n),t?e(r,n):r.__proto__=n,r}}():void 0)},71530:(e,t,r)=>{"use strict";var n=r(88732),o=TypeError;e.exports=function(e){var t=n(e,"number");if("number"==typeof t)throw new o("Can't convert number to bigint");return BigInt(t)}},23043:(e,t,r)=>{"use strict";var n=r(44201),o=n("toStringTag"),i={};i[o]="z",e.exports="[object z]"===String(i)},34327:(e,t,r)=>{"use strict";var n=r(50926),o=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},21500:e=>{"use strict";var t=TypeError;e.exports=function(e,r){if(e{"use strict";var n=r(26166),o=r(54872),i=o.aTypedArray,s=o.exportTypedArrayMethod,a=o.getTypedArrayConstructor;s("toReversed",(function(){return n(i(this),a(this))}))},61121:(e,t,r)=>{"use strict";var n=r(54872),o=r(68844),i=r(10509),s=r(59976),a=n.aTypedArray,c=n.getTypedArrayConstructor,u=n.exportTypedArrayMethod,l=o(n.TypedArrayPrototype.sort);u("toSorted",(function(e){void 0!==e&&i(e);var t=a(this),r=s(c(t),t);return l(r,e)}))},37133:(e,t,r)=>{"use strict";var n=r(16134),o=r(54872),i=r(9401),s=r(68700),a=r(71530),c=o.aTypedArray,u=o.getTypedArrayConstructor,l=o.exportTypedArrayMethod,f=!!function(){try{new Int8Array(1)["with"](2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}();l("with",{with:function(e,t){var r=c(this),o=s(e),l=i(r)?a(t):+t;return n(r,u(r),o,l)}}["with"],!f)},98858:(e,t,r)=>{"use strict";var n=r(11880),o=r(68844),i=r(34327),s=r(21500),a=URLSearchParams,c=a.prototype,u=o(c.append),l=o(c["delete"]),f=o(c.forEach),p=o([].push),h=new a("a=1&a=2&b=3");h["delete"]("a",1),h["delete"]("b",void 0),h+""!=="a=2"&&n(c,"delete",(function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return l(this,e);var n=[];f(this,(function(e,t){p(n,{key:t,value:e})})),s(t,1);var o,a=i(e),c=i(r),h=0,d=0,y=!1,v=n.length;while(h{"use strict";var n=r(11880),o=r(68844),i=r(34327),s=r(21500),a=URLSearchParams,c=a.prototype,u=o(c.getAll),l=o(c.has),f=new a("a=1");!f.has("a",2)&&f.has("a",void 0)||n(c,"has",(function(e){var t=arguments.length,r=t<2?void 0:arguments[1];if(t&&void 0===r)return l(this,e);var n=u(this,e);s(t,1);var o=i(r),a=0;while(a{"use strict";var n=r(67697),o=r(68844),i=r(62148),s=URLSearchParams.prototype,a=o(s.forEach);n&&!("size"in s)&&i(s,"size",{get:function(){var e=0;return a(this,(function(){e++})),e},configurable:!0,enumerable:!0})},36559:(e,t,r)=>{"use strict";const n=r(85346);e.exports=a;const o=A().console||{},i={mapHttpRequest:b,mapHttpResponse:b,wrapRequestSerializer:m,wrapResponseSerializer:m,wrapErrorSerializer:m,req:b,res:b,err:y};function s(e,t){if(Array.isArray(e)){const t=e.filter((function(e){return"!stdSerializers.err"!==e}));return t}return!0===e&&Object.keys(t)}function a(e){e=e||{},e.browser=e.browser||{};const t=e.browser.transmit;if(t&&"function"!==typeof t.send)throw Error("pino: transmit option must have a send function");const r=e.browser.write||o;e.browser.write&&(e.browser.asObject=!0);const n=e.serializers||{},i=s(e.browser.serialize,n);let u=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(u=!1);const l=["error","fatal","warn","info","debug","trace"];"function"===typeof r&&(r.error=r.fatal=r.warn=r.info=r.debug=r.trace=r),!1===e.enabled&&(e.level="silent");const h=e.level||"info",y=Object.create(r);y.log||(y.log=g),Object.defineProperty(y,"levelVal",{get:m}),Object.defineProperty(y,"level",{get:w,set:_});const b={transmit:t,serialize:i,asObject:e.browser.asObject,levels:l,timestamp:v(e)};function m(){return"silent"===this.level?1/0:this.levels.values[this.level]}function w(){return this._level}function _(e){if("silent"!==e&&!this.levels.values[e])throw Error("unknown level "+e);this._level=e,c(b,y,"error","log"),c(b,y,"fatal","error"),c(b,y,"warn","error"),c(b,y,"info","log"),c(b,y,"debug","log"),c(b,y,"trace","log")}function x(r,o){if(!r)throw new Error("missing bindings for child Pino");o=o||{},i&&r.serializers&&(o.serializers=r.serializers);const s=o.serializers;if(i&&s){var a=Object.assign({},n,s),c=!0===e.browser.serialize?Object.keys(a):i;delete r.serializers,f([r],c,a,this._stdErrSerialize)}function u(e){this._childLevel=1+(0|e._childLevel),this.error=p(e,r,"error"),this.fatal=p(e,r,"fatal"),this.warn=p(e,r,"warn"),this.info=p(e,r,"info"),this.debug=p(e,r,"debug"),this.trace=p(e,r,"trace"),a&&(this.serializers=a,this._serialize=c),t&&(this._logEvent=d([].concat(e._logEvent.bindings,r)))}return u.prototype=this,new u(this)}return y.levels=a.levels,y.level=h,y.setMaxListeners=y.getMaxListeners=y.emit=y.addListener=y.on=y.prependListener=y.once=y.prependOnceListener=y.removeListener=y.removeAllListeners=y.listeners=y.listenerCount=y.eventNames=y.write=y.flush=g,y.serializers=n,y._serialize=i,y._stdErrSerialize=u,y.child=x,t&&(y._logEvent=d()),y}function c(e,t,r,n){const i=Object.getPrototypeOf(t);t[r]=t.levelVal>t.levels.values[r]?g:i[r]?i[r]:o[r]||o[n]||g,u(e,t,r)}function u(e,t,r){(e.transmit||t[r]!==g)&&(t[r]=function(n){return function(){const i=e.timestamp(),s=new Array(arguments.length),c=Object.getPrototypeOf&&Object.getPrototypeOf(this)===o?o:this;for(var u=0;u-1&&n in r&&(e[o][n]=r[n](e[o][n]))}function p(e,t,r){return function(){const n=new Array(1+arguments.length);n[0]=t;for(var o=1;o{"use strict";r.d(t,{o6:()=>j});r(70560);const n=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,o=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,i=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function s(e,t){if(!("__proto__"===e||"constructor"===e&&t&&"object"===typeof t&&"prototype"in t))return t;a(e)}function a(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function c(e,t={}){if("string"!==typeof e)return e;const r=e.trim();if('"'===e[0]&&'"'===e.at(-1)&&!e.includes("\\"))return r.slice(1,-1);if(r.length<=9){const e=r.toLowerCase();if("true"===e)return!0;if("false"===e)return!1;if("undefined"===e)return;if("null"===e)return null;if("nan"===e)return Number.NaN;if("infinity"===e)return Number.POSITIVE_INFINITY;if("-infinity"===e)return Number.NEGATIVE_INFINITY}if(!i.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(n.test(e)||o.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,s)}return JSON.parse(e)}catch(a){if(t.strict)throw a;return e}}var u=r(48764)["lW"];function l(e){return e&&"function"===typeof e.then?e:Promise.resolve(e)}function f(e,...t){try{return l(e(...t))}catch(r){return Promise.reject(r)}}function p(e){const t=typeof e;return null===e||"object"!==t&&"function"!==t}function h(e){const t=Object.getPrototypeOf(e);return!t||t.isPrototypeOf(Object)}function d(e){if(p(e))return String(e);if(h(e)||Array.isArray(e))return JSON.stringify(e);if("function"===typeof e.toJSON)return d(e.toJSON());throw new Error("[unstorage] Cannot stringify value!")}function y(){if(void 0===typeof u)throw new TypeError("[unstorage] Buffer is not supported!")}const v="base64:";function b(e){if("string"===typeof e)return e;y();const t=u.from(e).toString("base64");return v+t}function m(e){return"string"!==typeof e?e:e.startsWith(v)?(y(),u.from(e.slice(v.length),"base64")):e}function g(e){return e?e.split("?")[0].replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""):""}function w(...e){return g(e.join(":"))}function _(e){return e=g(e),e?e+":":""}function x(e){return e}const O="memory",A=x((()=>{const e=new Map;return{name:O,options:{},hasItem(t){return e.has(t)},getItem(t){return e.get(t)??null},getItemRaw(t){return e.get(t)??null},setItem(t,r){e.set(t,r)},setItemRaw(t,r){e.set(t,r)},removeItem(t){e.delete(t)},getKeys(){return Array.from(e.keys())},clear(){e.clear()},dispose(){e.clear()}}}));function j(e={}){const t={mounts:{"":e.driver||A()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},r=e=>{for(const r of t.mountpoints)if(e.startsWith(r))return{base:r,relativeKey:e.slice(r.length),driver:t.mounts[r]};return{base:"",relativeKey:e,driver:t.mounts[""]}},n=(e,r)=>t.mountpoints.filter((t=>t.startsWith(e)||r&&e.startsWith(t))).map((r=>({relativeBase:e.length>r.length?e.slice(r.length):void 0,mountpoint:r,driver:t.mounts[r]}))),o=(e,r)=>{if(t.watching){r=g(r);for(const n of t.watchListeners)n(e,r)}},i=async()=>{if(!t.watching){t.watching=!0;for(const e in t.mounts)t.unwatch[e]=await S(t.mounts[e],o,e)}},s=async()=>{if(t.watching){for(const e in t.unwatch)await t.unwatch[e]();t.unwatch={},t.watching=!1}},a=(e,t,n)=>{const o=new Map,i=e=>{let t=o.get(e.base);return t||(t={driver:e.driver,base:e.base,items:[]},o.set(e.base,t)),t};for(const s of e){const e="string"===typeof s,n=g(e?s:s.key),o=e?void 0:s.value,a=e||!s.options?t:{...t,...s.options},c=r(n);i(c).items.push({key:n,value:o,relativeKey:c.relativeKey,options:a})}return Promise.all([...o.values()].map((e=>n(e)))).then((e=>e.flat()))},u={hasItem(e,t={}){e=g(e);const{relativeKey:n,driver:o}=r(e);return f(o.hasItem,n,t)},getItem(e,t={}){e=g(e);const{relativeKey:n,driver:o}=r(e);return f(o.getItem,n,t).then((e=>c(e)))},getItems(e,t){return a(e,t,(e=>e.driver.getItems?f(e.driver.getItems,e.items.map((e=>({key:e.relativeKey,options:e.options}))),t).then((t=>t.map((t=>({key:w(e.base,t.key),value:c(t.value)}))))):Promise.all(e.items.map((t=>f(e.driver.getItem,t.relativeKey,t.options).then((e=>({key:t.key,value:c(e)}))))))))},getItemRaw(e,t={}){e=g(e);const{relativeKey:n,driver:o}=r(e);return o.getItemRaw?f(o.getItemRaw,n,t):f(o.getItem,n,t).then((e=>m(e)))},async setItem(e,t,n={}){if(void 0===t)return u.removeItem(e);e=g(e);const{relativeKey:i,driver:s}=r(e);s.setItem&&(await f(s.setItem,i,d(t),n),s.watch||o("update",e))},async setItems(e,t){await a(e,t,(async e=>{e.driver.setItems&&await f(e.driver.setItems,e.items.map((e=>({key:e.relativeKey,value:d(e.value),options:e.options}))),t),e.driver.setItem&&await Promise.all(e.items.map((t=>f(e.driver.setItem,t.relativeKey,d(t.value),t.options))))}))},async setItemRaw(e,t,n={}){if(void 0===t)return u.removeItem(e,n);e=g(e);const{relativeKey:i,driver:s}=r(e);if(s.setItemRaw)await f(s.setItemRaw,i,t,n);else{if(!s.setItem)return;await f(s.setItem,i,b(t),n)}s.watch||o("update",e)},async removeItem(e,t={}){"boolean"===typeof t&&(t={removeMeta:t}),e=g(e);const{relativeKey:n,driver:i}=r(e);i.removeItem&&(await f(i.removeItem,n,t),(t.removeMeta||t.removeMata)&&await f(i.removeItem,n+"$",t),i.watch||o("remove",e))},async getMeta(e,t={}){"boolean"===typeof t&&(t={nativeOnly:t}),e=g(e);const{relativeKey:n,driver:o}=r(e),i=Object.create(null);if(o.getMeta&&Object.assign(i,await f(o.getMeta,n,t)),!t.nativeOnly){const e=await f(o.getItem,n+"$",t).then((e=>c(e)));e&&"object"===typeof e&&("string"===typeof e.atime&&(e.atime=new Date(e.atime)),"string"===typeof e.mtime&&(e.mtime=new Date(e.mtime)),Object.assign(i,e))}return i},setMeta(e,t,r={}){return this.setItem(e+"$",t,r)},removeMeta(e,t={}){return this.removeItem(e+"$",t)},async getKeys(e,t={}){e=_(e);const r=n(e,!0);let o=[];const i=[];for(const n of r){const e=await f(n.driver.getKeys,n.relativeBase,t),r=e.map((e=>n.mountpoint+g(e))).filter((e=>!o.some((t=>e.startsWith(t)))));i.push(...r),o=[n.mountpoint,...o.filter((e=>!e.startsWith(n.mountpoint)))]}return e?i.filter((t=>t.startsWith(e)&&!t.endsWith("$"))):i.filter((e=>!e.endsWith("$")))},async clear(e,t={}){e=_(e),await Promise.all(n(e,!1).map((async e=>{if(e.driver.clear)return f(e.driver.clear,e.relativeBase,t);if(e.driver.removeItem){const r=await e.driver.getKeys(e.relativeBase||"",t);return Promise.all(r.map((r=>e.driver.removeItem(r,t))))}})))},async dispose(){await Promise.all(Object.values(t.mounts).map((e=>E(e))))},async watch(e){return await i(),t.watchListeners.push(e),async()=>{t.watchListeners=t.watchListeners.filter((t=>t!==e)),0===t.watchListeners.length&&await s()}},async unwatch(){t.watchListeners=[],await s()},mount(e,r){if(e=_(e),e&&t.mounts[e])throw new Error(`already mounted at ${e}`);return e&&(t.mountpoints.push(e),t.mountpoints.sort(((e,t)=>t.length-e.length))),t.mounts[e]=r,t.watching&&Promise.resolve(S(r,o,e)).then((r=>{t.unwatch[e]=r})).catch(console.error),u},async unmount(e,r=!0){e=_(e),e&&t.mounts[e]&&(t.watching&&e in t.unwatch&&(t.unwatch[e](),delete t.unwatch[e]),r&&await E(t.mounts[e]),t.mountpoints=t.mountpoints.filter((t=>t!==e)),delete t.mounts[e])},getMount(e=""){e=g(e)+":";const t=r(e);return{driver:t.driver,base:t.base}},getMounts(e="",t={}){e=g(e);const r=n(e,t.parents);return r.map((e=>({driver:e.driver,base:e.mountpoint})))}};return u}function S(e,t,r){return e.watch?e.watch(((e,n)=>t(e,r+n))):()=>{}}async function E(e){"function"===typeof e.dispose&&await f(e.dispose)}},24678:(e,t,r)=>{"use strict";function n(e){return new Promise(((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)}))}function o(e,t){const r=indexedDB.open(e);r.onupgradeneeded=()=>r.result.createObjectStore(t);const o=n(r);return(e,r)=>o.then((n=>r(n.transaction(t,e).objectStore(t))))}let i;function s(){return i||(i=o("keyval-store","keyval")),i}function a(e,t=s()){return t("readonly",(t=>n(t.get(e))))}function c(e,t,r=s()){return r("readwrite",(r=>(r.put(t,e),n(r.transaction))))}function u(e,t=s()){return t("readwrite",(t=>(t.delete(e),n(t.transaction))))}function l(e=s()){return e("readwrite",(e=>(e.clear(),n(e.transaction))))}function f(e,t){return e.openCursor().onsuccess=function(){this.result&&(t(this.result),this.result.continue())},n(e.transaction)}function p(e=s()){return e("readonly",(e=>{if(e.getAllKeys)return n(e.getAllKeys());const t=[];return f(e,(e=>t.push(e.key))).then((()=>t))}))}r.d(t,{IV:()=>u,MT:()=>o,U2:()=>a,XP:()=>p,ZH:()=>l,t8:()=>c})},53160:(e,t,r)=>{"use strict";r.d(t,{E:()=>o});var n=r(16867);function o(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?(0,n.P)(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}},20605:(e,t,r)=>{"use strict";r.d(t,{z:()=>i});var n=r(53160),o=r(16867);function i(e,t){t||(t=e.reduce(((e,t)=>e+t.length),0));const r=(0,n.E)(t);let i=0;for(const n of e)r.set(n,i),i+=n.length;return(0,o.P)(r)}},52217:(e,t,r)=>{"use strict";r.d(t,{m:()=>i});var n=r(73149),o=r(16867);function i(e,t="utf8"){const r=n.Z[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return"utf8"!==t&&"utf-8"!==t||null==globalThis.Buffer||null==globalThis.Buffer.from?r.decoder.decode(`${r.prefix}${e}`):(0,o.P)(globalThis.Buffer.from(e,"utf-8"))}},37466:(e,t,r)=>{"use strict";r.d(t,{BB:()=>i.B,mL:()=>o.m,zo:()=>n.z});var n=r(20605),o=r(52217),i=r(92263)},92263:(e,t,r)=>{"use strict";r.d(t,{B:()=>o});var n=r(73149);function o(e,t="utf8"){const r=n.Z[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return"utf8"!==t&&"utf-8"!==t||null==globalThis.Buffer||null==globalThis.Buffer.from?r.encoder.encode(e).substring(1):globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8")}},16867:(e,t,r)=>{"use strict";function n(e){return null!=globalThis.Buffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}r.d(t,{P:()=>n})},73149:(e,t,r)=>{"use strict";r.d(t,{Z:()=>ct});var n={};r.r(n),r.d(n,{identity:()=>z});var o={};r.r(o),r.d(o,{base2:()=>M});var i={};r.r(i),r.d(i,{base8:()=>N});var s={};r.r(s),r.d(s,{base10:()=>U});var a={};r.r(a),r.d(a,{base16:()=>B,base16upper:()=>R});var c={};r.r(c),r.d(c,{base32:()=>F,base32hex:()=>K,base32hexpad:()=>q,base32hexpadupper:()=>J,base32hexupper:()=>V,base32pad:()=>W,base32padupper:()=>D,base32upper:()=>$,base32z:()=>G});var u={};r.r(u),r.d(u,{base36:()=>X,base36upper:()=>H});var l={};r.r(l),r.d(l,{base58btc:()=>Y,base58flickr:()=>Z});var f={};r.r(f),r.d(f,{base64:()=>Q,base64pad:()=>ee,base64url:()=>te,base64urlpad:()=>re});var p={};r.r(p),r.d(p,{base256emoji:()=>ce});var h={};r.r(h),r.d(h,{sha256:()=>Re,sha512:()=>Fe});var d={};r.r(d),r.d(d,{identity:()=>Ve});var y={};r.r(y),r.d(y,{code:()=>Je,decode:()=>Xe,encode:()=>Ge,name:()=>qe});var v={};function b(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n>>0,u=new Uint8Array(s);while(o!==i){for(var f=t[o],p=0,h=s-1;(0!==f||p>>0,u[h]=f%a>>>0,f=f/a>>>0;if(0!==f)throw new Error("Non-zero carry");n=p,o++}var d=s-n;while(d!==s&&0===u[d])d++;for(var y=c.repeat(r);d>>0,s=new Uint8Array(i);while(e[t]){var l=r[e.charCodeAt(t)];if(255===l)return;for(var f=0,p=i-1;(0!==l||f>>0,s[p]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");o=f,t++}if(" "!==e[t]){var h=i-o;while(h!==i&&0===s[h])h++;var d=new Uint8Array(n+(i-h)),y=n;while(h!==i)d[y++]=s[h++];return d}}}function h(e){var r=p(e);if(r)return r;throw new Error(`Non-${t} character`)}return{encode:f,decodeUnsafe:p,decode:h}}r.r(v),r.d(v,{code:()=>Qe,decode:()=>tt,encode:()=>et,name:()=>Ze});var m=b,g=m;const w=g,_=(new Uint8Array(0),e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")}),x=e=>(new TextEncoder).encode(e),O=e=>(new TextDecoder).decode(e);class A{constructor(e,t,r){this.name=e,this.prefix=t,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class j{constructor(e,t,r){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=r}decode(e){if("string"===typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return E(this,e)}}class S{constructor(e){this.decoders=e}or(e){return E(this,e)}decode(e){const t=e[0],r=this.decoders[t];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const E=(e,t)=>new S({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class k{constructor(e,t,r,n){this.name=e,this.prefix=t,this.baseEncode=r,this.baseDecode=n,this.encoder=new A(e,t,r),this.decoder=new j(e,t,n)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const P=({name:e,prefix:t,encode:r,decode:n})=>new k(e,t,r,n),T=({prefix:e,name:t,alphabet:r})=>{const{encode:n,decode:o}=w(r,t);return P({prefix:e,name:t,encode:n,decode:e=>_(o(e))})},C=(e,t,r,n)=>{const o={};for(let l=0;l=8&&(a-=8,s[u++]=255&c>>a)}if(a>=r||255&c<<8-a)throw new SyntaxError("Unexpected end of data");return s},I=(e,t,r)=>{const n="="===t[t.length-1],o=(1<r)s-=r,i+=t[o&a>>s]}if(s&&(i+=t[o&a<P({prefix:t,name:e,encode(e){return I(e,n,r)},decode(t){return C(t,n,r,e)}}),z=P({prefix:"\0",name:"identity",encode:e=>O(e),decode:e=>x(e)}),M=L({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),N=L({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),U=T({prefix:"9",name:"base10",alphabet:"0123456789"}),B=L({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),R=L({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),F=L({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),$=L({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),W=L({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),D=L({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),K=L({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),V=L({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),q=L({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),J=L({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),G=L({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),X=T({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),H=T({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),Y=T({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Z=T({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),Q=L({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),ee=L({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),te=L({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),re=L({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),ne=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),oe=ne.reduce(((e,t,r)=>(e[r]=t,e)),[]),ie=ne.reduce(((e,t,r)=>(e[t.codePointAt(0)]=r,e)),[]);function se(e){return e.reduce(((e,t)=>(e+=oe[t],e)),"")}function ae(e){const t=[];for(const r of e){const e=ie[r.codePointAt(0)];if(void 0===e)throw new Error(`Non-base256emoji character: ${r}`);t.push(e)}return new Uint8Array(t)}const ce=P({prefix:"🚀",name:"base256emoji",encode:se,decode:ae});var ue=de,le=128,fe=127,pe=~fe,he=Math.pow(2,31);function de(e,t,r){t=t||[],r=r||0;var n=r;while(e>=he)t[r++]=255&e|le,e/=128;while(e&pe)t[r++]=255&e|le,e>>>=7;return t[r]=0|e,de.bytes=r-n+1,t}var ye=me,ve=128,be=127;function me(e,t){var r,n=0,o=(t=t||0,0),i=t,s=e.length;do{if(i>=s)throw me.bytes=0,new RangeError("Could not decode varint");r=e[i++],n+=o<28?(r&be)<=ve);return me.bytes=i-t,n}var ge=Math.pow(2,7),we=Math.pow(2,14),_e=Math.pow(2,21),xe=Math.pow(2,28),Oe=Math.pow(2,35),Ae=Math.pow(2,42),je=Math.pow(2,49),Se=Math.pow(2,56),Ee=Math.pow(2,63),ke=function(e){return e(Ce.encode(e,t,r),t),Le=e=>Ce.encodingLength(e),ze=(e,t)=>{const r=t.byteLength,n=Le(e),o=n+Le(r),i=new Uint8Array(o+r);return Ie(e,i,0),Ie(r,i,n),i.set(t,o),new Me(e,r,t,i)};class Me{constructor(e,t,r,n){this.code=e,this.size=t,this.digest=r,this.bytes=n}}const Ne=({name:e,code:t,encode:r})=>new Ue(e,t,r);class Ue{constructor(e,t,r){this.name=e,this.code=t,this.encode=r}digest(e){if(e instanceof Uint8Array){const t=this.encode(e);return t instanceof Uint8Array?ze(this.code,t):t.then((e=>ze(this.code,e)))}throw Error("Unknown type, must be binary type")}}const Be=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),Re=Ne({name:"sha2-256",code:18,encode:Be("SHA-256")}),Fe=Ne({name:"sha2-512",code:19,encode:Be("SHA-512")}),$e=0,We="identity",De=_,Ke=e=>ze($e,De(e)),Ve={code:$e,name:We,encode:De,digest:Ke},qe="raw",Je=85,Ge=e=>_(e),Xe=e=>_(e),He=new TextEncoder,Ye=new TextDecoder,Ze="json",Qe=512,et=e=>He.encode(JSON.stringify(e)),tt=e=>JSON.parse(Ye.decode(e));Symbol.toStringTag,Symbol.for("nodejs.util.inspect.custom");Symbol.for("@ipld/js-cid/CID");const rt={...n,...o,...i,...s,...a,...c,...u,...l,...f,...p};var nt=r(53160);function ot(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}const it=ot("utf8","u",(e=>{const t=new TextDecoder("utf8");return"u"+t.decode(e)}),(e=>{const t=new TextEncoder;return t.encode(e.substring(1))})),st=ot("ascii","a",(e=>{let t="a";for(let r=0;r{e=e.substring(1);const t=(0,nt.E)(e.length);for(let r=0;r{"use strict";a.d(n,{Z:()=>p});var o=function(){var e=this,n=e._self._c;return n("b-popover",{ref:"popover",attrs:{target:`${e.target}`,triggers:"click blur",show:e.show,placement:"auto",container:"my-container","custom-class":`confirm-dialog-${e.width}`},on:{"update:show":function(n){e.show=n}},scopedSlots:e._u([{key:"title",fn:function(){return[n("div",{staticClass:"d-flex justify-content-between align-items-center"},[n("span",[e._v(e._s(e.title))]),n("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:function(n){e.show=!1}}},[n("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[e._v("×")])])],1)]},proxy:!0}])},[n("div",{staticClass:"text-center"},[n("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:function(n){e.show=!1}}},[e._v(" "+e._s(e.cancelButton)+" ")]),n("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:function(n){return e.confirm()}}},[e._v(" "+e._s(e.confirmButton)+" ")])],1)])},t=[],i=a(15193),d=a(53862),c=a(20266);const l={components:{BButton:i.T,BPopover:d.x},directives:{Ripple:c.Z},props:{target:{type:String,required:!0},title:{type:String,required:!1,default:"Are You Sure?"},cancelButton:{type:String,required:!1,default:"Cancel"},confirmButton:{type:String,required:!0},width:{type:Number,required:!1,default:300}},data(){return{show:!1}},methods:{confirm(){this.show=!1,this.$emit("confirm")}}},r=l;var s=a(1001),m=(0,s.Z)(r,o,t,!1,null,null,null);const p=m.exports},63005:(e,n,a)=>{"use strict";a.r(n),a.d(n,{default:()=>i});const o={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},t={year:"numeric",month:"short",day:"numeric"},i={shortDate:o,date:t}},57306:e=>{const n=[{name:"Afghanistan",dial_code:"+93",code:"AF",continent:"AS"},{name:"Aland Islands",dial_code:"+358",code:"AX"},{name:"Albania",dial_code:"+355",code:"AL",continent:"EU"},{name:"Algeria",dial_code:"+213",code:"DZ",continent:"AF"},{name:"American Samoa",dial_code:"+1684",code:"AS",continent:"OC"},{name:"Andorra",dial_code:"+376",code:"AD",continent:"EU"},{name:"Angola",dial_code:"+244",code:"AO",continent:"AF"},{name:"Anguilla",dial_code:"+1264",code:"AI",continent:"NA"},{name:"Antarctica",dial_code:"+672",code:"AQ",continent:"AN"},{name:"Antigua and Barbuda",dial_code:"+1268",code:"AG",continent:"NA"},{name:"Argentina",dial_code:"+54",code:"AR",continent:"SA"},{name:"Armenia",dial_code:"+374",code:"AM",continent:"AS"},{name:"Aruba",dial_code:"+297",code:"AW",continent:"NA"},{name:"Australia",dial_code:"+61",code:"AU",continent:"OC"},{name:"Austria",dial_code:"+43",code:"AT",continent:"EU"},{name:"Azerbaijan",dial_code:"+994",code:"AZ",continent:"AS"},{name:"Bahamas",dial_code:"+1242",code:"BS",continent:"NA"},{name:"Bahrain",dial_code:"+973",code:"BH",continent:"AS"},{name:"Bangladesh",dial_code:"+880",code:"BD",continent:"AS"},{name:"Barbados",dial_code:"+1246",code:"BB",continent:"NA"},{name:"Belarus",dial_code:"+375",code:"BY",continent:"EU"},{name:"Belgium",dial_code:"+32",code:"BE",continent:"EU"},{name:"Belize",dial_code:"+501",code:"BZ",continent:"NA"},{name:"Benin",dial_code:"+229",code:"BJ",continent:"AF"},{name:"Bermuda",dial_code:"+1441",code:"BM",continent:"NA"},{name:"Bhutan",dial_code:"+975",code:"BT",continent:"AS"},{name:"Bolivia, Plurinational State of",dial_code:"+591",code:"BO"},{name:"Bosnia and Herzegovina",dial_code:"+387",code:"BA",continent:"EU"},{name:"Botswana",dial_code:"+267",code:"BW",continent:"AF"},{name:"Brazil",dial_code:"+55",code:"BR",continent:"SA"},{name:"British Indian Ocean Territory",dial_code:"+246",code:"IO",continent:"AF"},{name:"Brunei Darussalam",dial_code:"+673",code:"BN"},{name:"Bulgaria",dial_code:"+359",code:"BG",continent:"EU"},{name:"Burkina Faso",dial_code:"+226",code:"BF",continent:"AF"},{name:"Burundi",dial_code:"+257",code:"BI",continent:"AF"},{name:"Cambodia",dial_code:"+855",code:"KH",continent:"AS"},{name:"Cameroon",dial_code:"+237",code:"CM",continent:"AF"},{name:"Canada",dial_code:"+1",code:"CA",available:!0,continent:"NA"},{name:"Cape Verde",dial_code:"+238",code:"CV",continent:"AF"},{name:"Cayman Islands",dial_code:"+ 345",code:"KY",continent:"NA"},{name:"Central African Republic",dial_code:"+236",code:"CF",continent:"AF"},{name:"Chad",dial_code:"+235",code:"TD",continent:"AF"},{name:"Chile",dial_code:"+56",code:"CL",continent:"SA"},{name:"China",dial_code:"+86",code:"CN",available:!0,continent:"AS"},{name:"Christmas Island",dial_code:"+61",code:"CX",continent:"OC"},{name:"Cocos (Keeling) Islands",dial_code:"+61",code:"CC",continent:"OC"},{name:"Colombia",dial_code:"+57",code:"CO",continent:"SA"},{name:"Comoros",dial_code:"+269",code:"KM",continent:"AF"},{name:"Congo",dial_code:"+242",code:"CG",continent:"AF"},{name:"Congo, The Democratic Republic of the Congo",dial_code:"+243",code:"CD"},{name:"Cook Islands",dial_code:"+682",code:"CK",continent:"OC"},{name:"Costa Rica",dial_code:"+506",code:"CR",continent:"NA"},{name:"Cote d'Ivoire",dial_code:"+225",code:"CI"},{name:"Croatia",dial_code:"+385",code:"HR",continent:"EU"},{name:"Cuba",dial_code:"+53",code:"CU",continent:"NA"},{name:"Cyprus",dial_code:"+357",code:"CY",continent:"AS"},{name:"Czech Republic",dial_code:"+420",code:"CZ",continent:"EU"},{name:"Denmark",dial_code:"+45",code:"DK",continent:"EU"},{name:"Djibouti",dial_code:"+253",code:"DJ",continent:"AF"},{name:"Dominica",dial_code:"+1767",code:"DM",continent:"NA"},{name:"Dominican Republic",dial_code:"+1849",code:"DO",continent:"NA"},{name:"Ecuador",dial_code:"+593",code:"EC",continent:"SA"},{name:"Egypt",dial_code:"+20",code:"EG",continent:"AF"},{name:"El Salvador",dial_code:"+503",code:"SV",continent:"NA"},{name:"Equatorial Guinea",dial_code:"+240",code:"GQ",continent:"AF"},{name:"Eritrea",dial_code:"+291",code:"ER",continent:"AF"},{name:"Estonia",dial_code:"+372",code:"EE",continent:"EU"},{name:"Ethiopia",dial_code:"+251",code:"ET",continent:"AF"},{name:"Falkland Islands (Malvinas)",dial_code:"+500",code:"FK"},{name:"Faroe Islands",dial_code:"+298",code:"FO",continent:"EU"},{name:"Fiji Islands",dial_code:"+679",code:"FJ",continent:"OC"},{name:"Finland",dial_code:"+358",code:"FI",available:!0,continent:"EU"},{name:"France",dial_code:"+33",code:"FR",available:!0,continent:"EU"},{name:"French Guiana",dial_code:"+594",code:"GF",continent:"SA"},{name:"French Polynesia",dial_code:"+689",code:"PF",continent:"OC"},{name:"Gabon",dial_code:"+241",code:"GA",continent:"AF"},{name:"Gambia",dial_code:"+220",code:"GM",continent:"AF"},{name:"Georgia",dial_code:"+995",code:"GE",continent:"AS"},{name:"Germany",dial_code:"+49",code:"DE",available:!0,continent:"EU"},{name:"Ghana",dial_code:"+233",code:"GH",continent:"AF"},{name:"Gibraltar",dial_code:"+350",code:"GI",continent:"EU"},{name:"Greece",dial_code:"+30",code:"GR",continent:"EU"},{name:"Greenland",dial_code:"+299",code:"GL",continent:"NA"},{name:"Grenada",dial_code:"+1473",code:"GD",continent:"NA"},{name:"Guadeloupe",dial_code:"+590",code:"GP",continent:"NA"},{name:"Guam",dial_code:"+1671",code:"GU",continent:"OC"},{name:"Guatemala",dial_code:"+502",code:"GT",continent:"NA"},{name:"Guernsey",dial_code:"+44",code:"GG"},{name:"Guinea",dial_code:"+224",code:"GN",continent:"AF"},{name:"Guinea-Bissau",dial_code:"+245",code:"GW",continent:"AF"},{name:"Guyana",dial_code:"+595",code:"GY",continent:"SA"},{name:"Haiti",dial_code:"+509",code:"HT",continent:"NA"},{name:"Holy See (Vatican City State)",dial_code:"+379",code:"VA",continent:"EU"},{name:"Honduras",dial_code:"+504",code:"HN",continent:"NA"},{name:"Hong Kong",dial_code:"+852",code:"HK",continent:"AS"},{name:"Hungary",dial_code:"+36",code:"HU",continent:"EU"},{name:"Iceland",dial_code:"+354",code:"IS",continent:"EU"},{name:"India",dial_code:"+91",code:"IN",continent:"AS"},{name:"Indonesia",dial_code:"+62",code:"ID",continent:"AS"},{name:"Iran",dial_code:"+98",code:"IR",continent:"AS"},{name:"Iraq",dial_code:"+964",code:"IQ",continent:"AS"},{name:"Ireland",dial_code:"+353",code:"IE",continent:"EU"},{name:"Isle of Man",dial_code:"+44",code:"IM"},{name:"Israel",dial_code:"+972",code:"IL",continent:"AS"},{name:"Italy",dial_code:"+39",code:"IT",continent:"EU"},{name:"Jamaica",dial_code:"+1876",code:"JM",continent:"NA"},{name:"Japan",dial_code:"+81",code:"JP",continent:"AS"},{name:"Jersey",dial_code:"+44",code:"JE"},{name:"Jordan",dial_code:"+962",code:"JO",continent:"AS"},{name:"Kazakhstan",dial_code:"+77",code:"KZ",continent:"AS"},{name:"Kenya",dial_code:"+254",code:"KE",continent:"AF"},{name:"Kiribati",dial_code:"+686",code:"KI",continent:"OC"},{name:"North Korea",dial_code:"+850",code:"KP",continent:"AS"},{name:"South Korea",dial_code:"+82",code:"KR",continent:"AS"},{name:"Kuwait",dial_code:"+965",code:"KW",continent:"AS"},{name:"Kyrgyzstan",dial_code:"+996",code:"KG",continent:"AS"},{name:"Laos",dial_code:"+856",code:"LA",continent:"AS"},{name:"Latvia",dial_code:"+371",code:"LV",continent:"EU"},{name:"Lebanon",dial_code:"+961",code:"LB",continent:"AS"},{name:"Lesotho",dial_code:"+266",code:"LS",continent:"AF"},{name:"Liberia",dial_code:"+231",code:"LR",continent:"AF"},{name:"Libyan Arab Jamahiriya",dial_code:"+218",code:"LY",continent:"AF"},{name:"Liechtenstein",dial_code:"+423",code:"LI",continent:"EU"},{name:"Lithuania",dial_code:"+370",code:"LT",available:!0,continent:"EU"},{name:"Luxembourg",dial_code:"+352",code:"LU",continent:"EU"},{name:"Macao",dial_code:"+853",code:"MO",continent:"AS"},{name:"Macedonia",dial_code:"+389",code:"MK",continent:"EU"},{name:"Madagascar",dial_code:"+261",code:"MG",continent:"AF"},{name:"Malawi",dial_code:"+265",code:"MW",continent:"AF"},{name:"Malaysia",dial_code:"+60",code:"MY",continent:"AS"},{name:"Maldives",dial_code:"+960",code:"MV",continent:"AS"},{name:"Mali",dial_code:"+223",code:"ML",continent:"AF"},{name:"Malta",dial_code:"+356",code:"MT",continent:"EU"},{name:"Marshall Islands",dial_code:"+692",code:"MH",continent:"OC"},{name:"Martinique",dial_code:"+596",code:"MQ",continent:"NA"},{name:"Mauritania",dial_code:"+222",code:"MR",continent:"AF"},{name:"Mauritius",dial_code:"+230",code:"MU",continent:"AF"},{name:"Mayotte",dial_code:"+262",code:"YT",continent:"AF"},{name:"Mexico",dial_code:"+52",code:"MX",continent:"NA"},{name:"Micronesia, Federated States of Micronesia",dial_code:"+691",code:"FM",continent:"OC"},{name:"Moldova",dial_code:"+373",code:"MD",continent:"EU"},{name:"Monaco",dial_code:"+377",code:"MC",continent:"EU"},{name:"Mongolia",dial_code:"+976",code:"MN",continent:"AS"},{name:"Montenegro",dial_code:"+382",code:"ME",continent:"EU"},{name:"Montserrat",dial_code:"+1664",code:"MS",continent:"NA"},{name:"Morocco",dial_code:"+212",code:"MA",continent:"AF"},{name:"Mozambique",dial_code:"+258",code:"MZ",continent:"AF"},{name:"Myanmar",dial_code:"+95",code:"MM",continent:"AS"},{name:"Namibia",dial_code:"+264",code:"NA",continent:"AF"},{name:"Nauru",dial_code:"+674",code:"NR",continent:"OC"},{name:"Nepal",dial_code:"+977",code:"NP",continent:"AS"},{name:"Netherlands",dial_code:"+31",code:"NL",available:!0,continent:"EU"},{name:"Netherlands Antilles",dial_code:"+599",code:"AN",continent:"NA"},{name:"New Caledonia",dial_code:"+687",code:"NC",continent:"OC"},{name:"New Zealand",dial_code:"+64",code:"NZ",continent:"OC"},{name:"Nicaragua",dial_code:"+505",code:"NI",continent:"NA"},{name:"Niger",dial_code:"+227",code:"NE",continent:"AF"},{name:"Nigeria",dial_code:"+234",code:"NG",continent:"AF"},{name:"Niue",dial_code:"+683",code:"NU",continent:"OC"},{name:"Norfolk Island",dial_code:"+672",code:"NF",continent:"OC"},{name:"Northern Mariana Islands",dial_code:"+1670",code:"MP",continent:"OC"},{name:"Norway",dial_code:"+47",code:"NO",continent:"EU"},{name:"Oman",dial_code:"+968",code:"OM",continent:"AS"},{name:"Pakistan",dial_code:"+92",code:"PK",continent:"AS"},{name:"Palau",dial_code:"+680",code:"PW",continent:"OC"},{name:"Palestinian Territory, Occupied",dial_code:"+970",code:"PS"},{name:"Panama",dial_code:"+507",code:"PA",continent:"NA"},{name:"Papua New Guinea",dial_code:"+675",code:"PG",continent:"OC"},{name:"Paraguay",dial_code:"+595",code:"PY",continent:"SA"},{name:"Peru",dial_code:"+51",code:"PE",continent:"SA"},{name:"Philippines",dial_code:"+63",code:"PH",continent:"AS"},{name:"Pitcairn",dial_code:"+872",code:"PN",continent:"OC"},{name:"Poland",dial_code:"+48",code:"PL",available:!0,continent:"EU"},{name:"Portugal",dial_code:"+351",code:"PT",available:!0,continent:"EU"},{name:"Puerto Rico",dial_code:"+1939",code:"PR",continent:"NA"},{name:"Qatar",dial_code:"+974",code:"QA",continent:"AS"},{name:"Romania",dial_code:"+40",code:"RO",continent:"EU"},{name:"Russia",dial_code:"+7",code:"RU",available:!0,continent:"EU"},{name:"Rwanda",dial_code:"+250",code:"RW",continent:"AF"},{name:"Reunion",dial_code:"+262",code:"RE",continent:"AF"},{name:"Saint Barthelemy",dial_code:"+590",code:"BL"},{name:"Saint Helena",dial_code:"+290",code:"SH",continent:"AF"},{name:"Saint Kitts and Nevis",dial_code:"+1869",code:"KN",continent:"NA"},{name:"Saint Lucia",dial_code:"+1758",code:"LC",continent:"NA"},{name:"Saint Martin",dial_code:"+590",code:"MF"},{name:"Saint Pierre and Miquelon",dial_code:"+508",code:"PM",continent:"NA"},{name:"Saint Vincent and the Grenadines",dial_code:"+1784",code:"VC",continent:"NA"},{name:"Samoa",dial_code:"+685",code:"WS",continent:"OC"},{name:"San Marino",dial_code:"+378",code:"SM",continent:"EU"},{name:"Sao Tome and Principe",dial_code:"+239",code:"ST",continent:"AF"},{name:"Saudi Arabia",dial_code:"+966",code:"SA",continent:"AS"},{name:"Senegal",dial_code:"+221",code:"SN",continent:"AF"},{name:"Serbia",dial_code:"+381",code:"RS",continent:"EU"},{name:"Seychelles",dial_code:"+248",code:"SC",continent:"AF"},{name:"Sierra Leone",dial_code:"+232",code:"SL",continent:"AF"},{name:"Singapore",dial_code:"+65",code:"SG",continent:"AS"},{name:"Slovakia",dial_code:"+421",code:"SK",continent:"EU"},{name:"Slovenia",dial_code:"+386",code:"SI",available:!0,continent:"EU"},{name:"Solomon Islands",dial_code:"+677",code:"SB",continent:"OC"},{name:"Somalia",dial_code:"+252",code:"SO",continent:"AF"},{name:"South Africa",dial_code:"+27",code:"ZA",continent:"AF"},{name:"South Sudan",dial_code:"+211",code:"SS",continent:"AF"},{name:"South Georgia and the South Sandwich Islands",dial_code:"+500",code:"GS",continent:"AN"},{name:"Spain",dial_code:"+34",code:"ES",available:!0,continent:"EU"},{name:"Sri Lanka",dial_code:"+94",code:"LK",continent:"AS"},{name:"Sudan",dial_code:"+249",code:"SD",continent:"AF"},{name:"Suriname",dial_code:"+597",code:"SR",continent:"SA"},{name:"Svalbard and Jan Mayen",dial_code:"+47",code:"SJ",continent:"EU"},{name:"Swaziland",dial_code:"+268",code:"SZ",continent:"AF"},{name:"Sweden",dial_code:"+46",code:"SE",continent:"EU"},{name:"Switzerland",dial_code:"+41",code:"CH",continent:"EU"},{name:"Syrian Arab Republic",dial_code:"+963",code:"SY"},{name:"Taiwan",dial_code:"+886",code:"TW"},{name:"Tajikistan",dial_code:"+992",code:"TJ",continent:"AS"},{name:"Tanzania, United Republic of Tanzania",dial_code:"+255",code:"TZ"},{name:"Thailand",dial_code:"+66",code:"TH",continent:"AS"},{name:"Timor-Leste",dial_code:"+670",code:"TL"},{name:"Togo",dial_code:"+228",code:"TG",continent:"AF"},{name:"Tokelau",dial_code:"+690",code:"TK",continent:"OC"},{name:"Tonga",dial_code:"+676",code:"TO",continent:"OC"},{name:"Trinidad and Tobago",dial_code:"+1868",code:"TT",continent:"NA"},{name:"Tunisia",dial_code:"+216",code:"TN",continent:"AF"},{name:"Turkey",dial_code:"+90",code:"TR",continent:"AS"},{name:"Turkmenistan",dial_code:"+993",code:"TM",continent:"AS"},{name:"Turks and Caicos Islands",dial_code:"+1649",code:"TC",continent:"NA"},{name:"Tuvalu",dial_code:"+688",code:"TV",continent:"OC"},{name:"Uganda",dial_code:"+256",code:"UG",continent:"AF"},{name:"Ukraine",dial_code:"+380",code:"UA",continent:"EU"},{name:"United Arab Emirates",dial_code:"+971",code:"AE",continent:"AS"},{name:"United Kingdom",dial_code:"+44",code:"GB",available:!0,continent:"EU"},{name:"United States",dial_code:"+1",code:"US",available:!0,continent:"NA"},{name:"Uruguay",dial_code:"+598",code:"UY",continent:"SA"},{name:"Uzbekistan",dial_code:"+998",code:"UZ",continent:"AS"},{name:"Vanuatu",dial_code:"+678",code:"VU",continent:"OC"},{name:"Venezuela, Bolivarian Republic of Venezuela",dial_code:"+58",code:"VE"},{name:"Vietnam",dial_code:"+84",code:"VN",continent:"AS"},{name:"Virgin Islands, British",dial_code:"+1284",code:"VG",continent:"NA"},{name:"Virgin Islands, U.S.",dial_code:"+1340",code:"VI",continent:"NA"},{name:"Wallis and Futuna",dial_code:"+681",code:"WF",continent:"OC"},{name:"Yemen",dial_code:"+967",code:"YE",continent:"AS"},{name:"Zambia",dial_code:"+260",code:"ZM",continent:"AF"},{name:"Zimbabwe",dial_code:"+263",code:"ZW",continent:"AF"}],a=[{name:"Africa",code:"AF"},{name:"North America",code:"NA",available:!0},{name:"Oceania",code:"OC",available:!0},{name:"Asia",code:"AS",available:!0},{name:"Europe",code:"EU",available:!0},{name:"South America",code:"SA"},{name:"Antarctica",code:"AN"}];e.exports={countries:n,continents:a}},43672:(e,n,a)=>{"use strict";a.d(n,{Z:()=>t});var o=a(80914);const t={listRunningApps(){return(0,o.Z)().get("/apps/listrunningapps")},listAllApps(){return(0,o.Z)().get("/apps/listallapps")},installedApps(){return(0,o.Z)().get("/apps/installedapps")},availableApps(){return(0,o.Z)().get("/apps/availableapps")},getEnterpriseNodes(){return(0,o.Z)().get("/apps/enterprisenodes")},stopApp(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().get(`/apps/appstop/${n}`,a)},startApp(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().get(`/apps/appstart/${n}`,a)},pauseApp(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().get(`/apps/apppause/${n}`,a)},unpauseApp(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().get(`/apps/appunpause/${n}`,a)},restartApp(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().get(`/apps/apprestart/${n}`,a)},removeApp(e,n){const a={headers:{zelidauth:e},onDownloadProgress(e){console.log(e)}};return(0,o.Z)().get(`/apps/appremove/${n}`,a)},registerApp(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().post("/apps/appregister",JSON.stringify(n),a)},updateApp(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().post("/apps/appupdate",JSON.stringify(n),a)},checkCommunication(){return(0,o.Z)().get("/flux/checkcommunication")},checkDockerExistance(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().post("/apps/checkdockerexistance",JSON.stringify(n),a)},appsRegInformation(){return(0,o.Z)().get("/apps/registrationinformation")},appsDeploymentInformation(){return(0,o.Z)().get("/apps/deploymentinformation")},getAppLocation(e){return(0,o.Z)().get(`/apps/location/${e}`)},globalAppSpecifications(){return(0,o.Z)().get("/apps/globalappsspecifications")},permanentMessagesOwner(e){return(0,o.Z)().get(`/apps/permanentmessages?owner=${e}`)},getInstalledAppSpecifics(e){return(0,o.Z)().get(`/apps/installedapps/${e}`)},getAppSpecifics(e){return(0,o.Z)().get(`/apps/appspecifications/${e}`)},getAppOwner(e){return(0,o.Z)().get(`/apps/appowner/${e}`)},getAppLogsTail(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().get(`/apps/applog/${n}/100`,a)},getAppTop(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().get(`/apps/apptop/${n}`,a)},getAppInspect(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().get(`/apps/appinspect/${n}`,a)},getAppStats(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().get(`/apps/appstats/${n}`,a)},getAppChanges(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().get(`/apps/appchanges/${n}`,a)},getAppExec(e,n,a,t){const i={headers:{zelidauth:e}},d={appname:n,cmd:a,env:JSON.parse(t)};return(0,o.Z)().post("/apps/appexec",JSON.stringify(d),i)},reindexGlobalApps(e){return(0,o.Z)().get("/apps/reindexglobalappsinformation",{headers:{zelidauth:e}})},reindexLocations(e){return(0,o.Z)().get("/apps/reindexglobalappslocation",{headers:{zelidauth:e}})},rescanGlobalApps(e,n,a){return(0,o.Z)().get(`/apps/rescanglobalappsinformation/${n}/${a}`,{headers:{zelidauth:e}})},getAppPirce(e){return(0,o.Z)().post("/apps/calculateprice",JSON.stringify(e))},getFolder(e,n){return(0,o.Z)().get(`/apps/fluxshare/getfolder/${n}`,{headers:{zelidauth:e}})},createFolder(e,n){return(0,o.Z)().get(`/apps/fluxshare/createfolder/${n}`,{headers:{zelidauth:e}})},getFile(e,n){return(0,o.Z)().get(`/apps/fluxshare/getfile/${n}`,{headers:{zelidauth:e}})},removeFile(e,n){return(0,o.Z)().get(`/apps/fluxshare/removefile/${n}`,{headers:{zelidauth:e}})},shareFile(e,n){return(0,o.Z)().get(`/apps/fluxshare/sharefile/${n}`,{headers:{zelidauth:e}})},unshareFile(e,n){return(0,o.Z)().get(`/apps/fluxshare/unsharefile/${n}`,{headers:{zelidauth:e}})},removeFolder(e,n){return(0,o.Z)().get(`/apps/fluxshare/removefolder/${n}`,{headers:{zelidauth:e}})},fileExists(e,n){return(0,o.Z)().get(`/apps/fluxshare/fileexists/${n}`,{headers:{zelidauth:e}})},storageStats(e){return(0,o.Z)().get("/apps/fluxshare/stats",{headers:{zelidauth:e}})},renameFileFolder(e,n,a){return(0,o.Z)().get(`/apps/fluxshare/rename/${n}/${a}`,{headers:{zelidauth:e}})},appPrice(e){return(0,o.Z)().post("/apps/calculateprice",JSON.stringify(e))},appRegistrationVerificaiton(e){return(0,o.Z)().post("/apps/verifyappregistrationspecifications",JSON.stringify(e))},appUpdateVerification(e){return(0,o.Z)().post("/apps/verifyappupdatespecifications",JSON.stringify(e))},getAppMonitoring(e,n){const a={headers:{zelidauth:e}};return(0,o.Z)().get(`/apps/appmonitor/${n}`,a)},startAppMonitoring(e,n){const a={headers:{zelidauth:e}};return n?(0,o.Z)().get(`/apps/startmonitoring/${n}`,a):(0,o.Z)().get("/apps/startmonitoring",a)},stopAppMonitoring(e,n,a){const t={headers:{zelidauth:e}};return n&&a?(0,o.Z)().get(`/apps/stopmonitoring/${n}/${a}`,t):n?(0,o.Z)().get(`/apps/stopmonitoring/${n}`,t):a?(0,o.Z)().get(`/apps/stopmonitoring?deletedata=${a}`,t):(0,o.Z)().get("/apps/stopmonitoring",t)},justAPI(){return(0,o.Z)()}}}}]); \ No newline at end of file +(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[5121],{87156:(e,n,a)=>{"use strict";a.d(n,{Z:()=>p});var t=function(){var e=this,n=e._self._c;return n("b-popover",{ref:"popover",attrs:{target:`${e.target}`,triggers:"click blur",show:e.show,placement:"auto",container:"my-container","custom-class":`confirm-dialog-${e.width}`},on:{"update:show":function(n){e.show=n}},scopedSlots:e._u([{key:"title",fn:function(){return[n("div",{staticClass:"d-flex justify-content-between align-items-center"},[n("span",[e._v(e._s(e.title))]),n("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"close",attrs:{variant:"transparent","aria-label":"Close"},on:{click:function(n){e.show=!1}}},[n("span",{staticClass:"d-inline-block text-white",attrs:{"aria-hidden":"true"}},[e._v("×")])])],1)]},proxy:!0}])},[n("div",{staticClass:"text-center"},[n("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:function(n){e.show=!1}}},[e._v(" "+e._s(e.cancelButton)+" ")]),n("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],attrs:{size:"sm",variant:"primary"},on:{click:function(n){return e.confirm()}}},[e._v(" "+e._s(e.confirmButton)+" ")])],1)])},o=[],d=a(15193),i=a(53862),c=a(20266);const l={components:{BButton:d.T,BPopover:i.x},directives:{Ripple:c.Z},props:{target:{type:String,required:!0},title:{type:String,required:!1,default:"Are You Sure?"},cancelButton:{type:String,required:!1,default:"Cancel"},confirmButton:{type:String,required:!0},width:{type:Number,required:!1,default:300}},data(){return{show:!1}},methods:{confirm(){this.show=!1,this.$emit("confirm")}}},r=l;var s=a(1001),m=(0,s.Z)(r,t,o,!1,null,null,null);const p=m.exports},63005:(e,n,a)=>{"use strict";a.r(n),a.d(n,{default:()=>d});const t={year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},o={year:"numeric",month:"short",day:"numeric"},d={shortDate:t,date:o}},57306:e=>{const n=[{name:"Afghanistan",dial_code:"+93",code:"AF",continent:"AS"},{name:"Aland Islands",dial_code:"+358",code:"AX"},{name:"Albania",dial_code:"+355",code:"AL",continent:"EU"},{name:"Algeria",dial_code:"+213",code:"DZ",continent:"AF"},{name:"American Samoa",dial_code:"+1684",code:"AS",continent:"OC"},{name:"Andorra",dial_code:"+376",code:"AD",continent:"EU"},{name:"Angola",dial_code:"+244",code:"AO",continent:"AF"},{name:"Anguilla",dial_code:"+1264",code:"AI",continent:"NA"},{name:"Antarctica",dial_code:"+672",code:"AQ",continent:"AN"},{name:"Antigua and Barbuda",dial_code:"+1268",code:"AG",continent:"NA"},{name:"Argentina",dial_code:"+54",code:"AR",continent:"SA"},{name:"Armenia",dial_code:"+374",code:"AM",continent:"AS"},{name:"Aruba",dial_code:"+297",code:"AW",continent:"NA"},{name:"Australia",dial_code:"+61",code:"AU",continent:"OC"},{name:"Austria",dial_code:"+43",code:"AT",continent:"EU"},{name:"Azerbaijan",dial_code:"+994",code:"AZ",continent:"AS"},{name:"Bahamas",dial_code:"+1242",code:"BS",continent:"NA"},{name:"Bahrain",dial_code:"+973",code:"BH",continent:"AS"},{name:"Bangladesh",dial_code:"+880",code:"BD",continent:"AS"},{name:"Barbados",dial_code:"+1246",code:"BB",continent:"NA"},{name:"Belarus",dial_code:"+375",code:"BY",continent:"EU"},{name:"Belgium",dial_code:"+32",code:"BE",continent:"EU"},{name:"Belize",dial_code:"+501",code:"BZ",continent:"NA"},{name:"Benin",dial_code:"+229",code:"BJ",continent:"AF"},{name:"Bermuda",dial_code:"+1441",code:"BM",continent:"NA"},{name:"Bhutan",dial_code:"+975",code:"BT",continent:"AS"},{name:"Bolivia, Plurinational State of",dial_code:"+591",code:"BO"},{name:"Bosnia and Herzegovina",dial_code:"+387",code:"BA",continent:"EU"},{name:"Botswana",dial_code:"+267",code:"BW",continent:"AF"},{name:"Brazil",dial_code:"+55",code:"BR",continent:"SA"},{name:"British Indian Ocean Territory",dial_code:"+246",code:"IO",continent:"AF"},{name:"Brunei Darussalam",dial_code:"+673",code:"BN"},{name:"Bulgaria",dial_code:"+359",code:"BG",continent:"EU"},{name:"Burkina Faso",dial_code:"+226",code:"BF",continent:"AF"},{name:"Burundi",dial_code:"+257",code:"BI",continent:"AF"},{name:"Cambodia",dial_code:"+855",code:"KH",continent:"AS"},{name:"Cameroon",dial_code:"+237",code:"CM",continent:"AF"},{name:"Canada",dial_code:"+1",code:"CA",available:!0,continent:"NA"},{name:"Cape Verde",dial_code:"+238",code:"CV",continent:"AF"},{name:"Cayman Islands",dial_code:"+ 345",code:"KY",continent:"NA"},{name:"Central African Republic",dial_code:"+236",code:"CF",continent:"AF"},{name:"Chad",dial_code:"+235",code:"TD",continent:"AF"},{name:"Chile",dial_code:"+56",code:"CL",continent:"SA"},{name:"China",dial_code:"+86",code:"CN",available:!0,continent:"AS"},{name:"Christmas Island",dial_code:"+61",code:"CX",continent:"OC"},{name:"Cocos (Keeling) Islands",dial_code:"+61",code:"CC",continent:"OC"},{name:"Colombia",dial_code:"+57",code:"CO",continent:"SA"},{name:"Comoros",dial_code:"+269",code:"KM",continent:"AF"},{name:"Congo",dial_code:"+242",code:"CG",continent:"AF"},{name:"Congo, The Democratic Republic of the Congo",dial_code:"+243",code:"CD"},{name:"Cook Islands",dial_code:"+682",code:"CK",continent:"OC"},{name:"Costa Rica",dial_code:"+506",code:"CR",continent:"NA"},{name:"Cote d'Ivoire",dial_code:"+225",code:"CI"},{name:"Croatia",dial_code:"+385",code:"HR",continent:"EU"},{name:"Cuba",dial_code:"+53",code:"CU",continent:"NA"},{name:"Cyprus",dial_code:"+357",code:"CY",continent:"AS"},{name:"Czech Republic",dial_code:"+420",code:"CZ",continent:"EU"},{name:"Denmark",dial_code:"+45",code:"DK",continent:"EU"},{name:"Djibouti",dial_code:"+253",code:"DJ",continent:"AF"},{name:"Dominica",dial_code:"+1767",code:"DM",continent:"NA"},{name:"Dominican Republic",dial_code:"+1849",code:"DO",continent:"NA"},{name:"Ecuador",dial_code:"+593",code:"EC",continent:"SA"},{name:"Egypt",dial_code:"+20",code:"EG",continent:"AF"},{name:"El Salvador",dial_code:"+503",code:"SV",continent:"NA"},{name:"Equatorial Guinea",dial_code:"+240",code:"GQ",continent:"AF"},{name:"Eritrea",dial_code:"+291",code:"ER",continent:"AF"},{name:"Estonia",dial_code:"+372",code:"EE",continent:"EU"},{name:"Ethiopia",dial_code:"+251",code:"ET",continent:"AF"},{name:"Falkland Islands (Malvinas)",dial_code:"+500",code:"FK"},{name:"Faroe Islands",dial_code:"+298",code:"FO",continent:"EU"},{name:"Fiji Islands",dial_code:"+679",code:"FJ",continent:"OC"},{name:"Finland",dial_code:"+358",code:"FI",available:!0,continent:"EU"},{name:"France",dial_code:"+33",code:"FR",available:!0,continent:"EU"},{name:"French Guiana",dial_code:"+594",code:"GF",continent:"SA"},{name:"French Polynesia",dial_code:"+689",code:"PF",continent:"OC"},{name:"Gabon",dial_code:"+241",code:"GA",continent:"AF"},{name:"Gambia",dial_code:"+220",code:"GM",continent:"AF"},{name:"Georgia",dial_code:"+995",code:"GE",continent:"AS"},{name:"Germany",dial_code:"+49",code:"DE",available:!0,continent:"EU"},{name:"Ghana",dial_code:"+233",code:"GH",continent:"AF"},{name:"Gibraltar",dial_code:"+350",code:"GI",continent:"EU"},{name:"Greece",dial_code:"+30",code:"GR",continent:"EU"},{name:"Greenland",dial_code:"+299",code:"GL",continent:"NA"},{name:"Grenada",dial_code:"+1473",code:"GD",continent:"NA"},{name:"Guadeloupe",dial_code:"+590",code:"GP",continent:"NA"},{name:"Guam",dial_code:"+1671",code:"GU",continent:"OC"},{name:"Guatemala",dial_code:"+502",code:"GT",continent:"NA"},{name:"Guernsey",dial_code:"+44",code:"GG"},{name:"Guinea",dial_code:"+224",code:"GN",continent:"AF"},{name:"Guinea-Bissau",dial_code:"+245",code:"GW",continent:"AF"},{name:"Guyana",dial_code:"+595",code:"GY",continent:"SA"},{name:"Haiti",dial_code:"+509",code:"HT",continent:"NA"},{name:"Holy See (Vatican City State)",dial_code:"+379",code:"VA",continent:"EU"},{name:"Honduras",dial_code:"+504",code:"HN",continent:"NA"},{name:"Hong Kong",dial_code:"+852",code:"HK",continent:"AS"},{name:"Hungary",dial_code:"+36",code:"HU",continent:"EU"},{name:"Iceland",dial_code:"+354",code:"IS",continent:"EU"},{name:"India",dial_code:"+91",code:"IN",continent:"AS"},{name:"Indonesia",dial_code:"+62",code:"ID",continent:"AS"},{name:"Iran",dial_code:"+98",code:"IR",continent:"AS"},{name:"Iraq",dial_code:"+964",code:"IQ",continent:"AS"},{name:"Ireland",dial_code:"+353",code:"IE",continent:"EU"},{name:"Isle of Man",dial_code:"+44",code:"IM"},{name:"Israel",dial_code:"+972",code:"IL",continent:"AS"},{name:"Italy",dial_code:"+39",code:"IT",continent:"EU"},{name:"Jamaica",dial_code:"+1876",code:"JM",continent:"NA"},{name:"Japan",dial_code:"+81",code:"JP",continent:"AS"},{name:"Jersey",dial_code:"+44",code:"JE"},{name:"Jordan",dial_code:"+962",code:"JO",continent:"AS"},{name:"Kazakhstan",dial_code:"+77",code:"KZ",continent:"AS"},{name:"Kenya",dial_code:"+254",code:"KE",continent:"AF"},{name:"Kiribati",dial_code:"+686",code:"KI",continent:"OC"},{name:"North Korea",dial_code:"+850",code:"KP",continent:"AS"},{name:"South Korea",dial_code:"+82",code:"KR",continent:"AS"},{name:"Kuwait",dial_code:"+965",code:"KW",continent:"AS"},{name:"Kyrgyzstan",dial_code:"+996",code:"KG",continent:"AS"},{name:"Laos",dial_code:"+856",code:"LA",continent:"AS"},{name:"Latvia",dial_code:"+371",code:"LV",continent:"EU"},{name:"Lebanon",dial_code:"+961",code:"LB",continent:"AS"},{name:"Lesotho",dial_code:"+266",code:"LS",continent:"AF"},{name:"Liberia",dial_code:"+231",code:"LR",continent:"AF"},{name:"Libyan Arab Jamahiriya",dial_code:"+218",code:"LY",continent:"AF"},{name:"Liechtenstein",dial_code:"+423",code:"LI",continent:"EU"},{name:"Lithuania",dial_code:"+370",code:"LT",available:!0,continent:"EU"},{name:"Luxembourg",dial_code:"+352",code:"LU",continent:"EU"},{name:"Macao",dial_code:"+853",code:"MO",continent:"AS"},{name:"Macedonia",dial_code:"+389",code:"MK",continent:"EU"},{name:"Madagascar",dial_code:"+261",code:"MG",continent:"AF"},{name:"Malawi",dial_code:"+265",code:"MW",continent:"AF"},{name:"Malaysia",dial_code:"+60",code:"MY",continent:"AS"},{name:"Maldives",dial_code:"+960",code:"MV",continent:"AS"},{name:"Mali",dial_code:"+223",code:"ML",continent:"AF"},{name:"Malta",dial_code:"+356",code:"MT",continent:"EU"},{name:"Marshall Islands",dial_code:"+692",code:"MH",continent:"OC"},{name:"Martinique",dial_code:"+596",code:"MQ",continent:"NA"},{name:"Mauritania",dial_code:"+222",code:"MR",continent:"AF"},{name:"Mauritius",dial_code:"+230",code:"MU",continent:"AF"},{name:"Mayotte",dial_code:"+262",code:"YT",continent:"AF"},{name:"Mexico",dial_code:"+52",code:"MX",continent:"NA"},{name:"Micronesia, Federated States of Micronesia",dial_code:"+691",code:"FM",continent:"OC"},{name:"Moldova",dial_code:"+373",code:"MD",continent:"EU"},{name:"Monaco",dial_code:"+377",code:"MC",continent:"EU"},{name:"Mongolia",dial_code:"+976",code:"MN",continent:"AS"},{name:"Montenegro",dial_code:"+382",code:"ME",continent:"EU"},{name:"Montserrat",dial_code:"+1664",code:"MS",continent:"NA"},{name:"Morocco",dial_code:"+212",code:"MA",continent:"AF"},{name:"Mozambique",dial_code:"+258",code:"MZ",continent:"AF"},{name:"Myanmar",dial_code:"+95",code:"MM",continent:"AS"},{name:"Namibia",dial_code:"+264",code:"NA",continent:"AF"},{name:"Nauru",dial_code:"+674",code:"NR",continent:"OC"},{name:"Nepal",dial_code:"+977",code:"NP",continent:"AS"},{name:"Netherlands",dial_code:"+31",code:"NL",available:!0,continent:"EU"},{name:"Netherlands Antilles",dial_code:"+599",code:"AN",continent:"NA"},{name:"New Caledonia",dial_code:"+687",code:"NC",continent:"OC"},{name:"New Zealand",dial_code:"+64",code:"NZ",continent:"OC"},{name:"Nicaragua",dial_code:"+505",code:"NI",continent:"NA"},{name:"Niger",dial_code:"+227",code:"NE",continent:"AF"},{name:"Nigeria",dial_code:"+234",code:"NG",continent:"AF"},{name:"Niue",dial_code:"+683",code:"NU",continent:"OC"},{name:"Norfolk Island",dial_code:"+672",code:"NF",continent:"OC"},{name:"Northern Mariana Islands",dial_code:"+1670",code:"MP",continent:"OC"},{name:"Norway",dial_code:"+47",code:"NO",continent:"EU"},{name:"Oman",dial_code:"+968",code:"OM",continent:"AS"},{name:"Pakistan",dial_code:"+92",code:"PK",continent:"AS"},{name:"Palau",dial_code:"+680",code:"PW",continent:"OC"},{name:"Palestinian Territory, Occupied",dial_code:"+970",code:"PS"},{name:"Panama",dial_code:"+507",code:"PA",continent:"NA"},{name:"Papua New Guinea",dial_code:"+675",code:"PG",continent:"OC"},{name:"Paraguay",dial_code:"+595",code:"PY",continent:"SA"},{name:"Peru",dial_code:"+51",code:"PE",continent:"SA"},{name:"Philippines",dial_code:"+63",code:"PH",continent:"AS"},{name:"Pitcairn",dial_code:"+872",code:"PN",continent:"OC"},{name:"Poland",dial_code:"+48",code:"PL",available:!0,continent:"EU"},{name:"Portugal",dial_code:"+351",code:"PT",available:!0,continent:"EU"},{name:"Puerto Rico",dial_code:"+1939",code:"PR",continent:"NA"},{name:"Qatar",dial_code:"+974",code:"QA",continent:"AS"},{name:"Romania",dial_code:"+40",code:"RO",continent:"EU"},{name:"Russia",dial_code:"+7",code:"RU",available:!0,continent:"EU"},{name:"Rwanda",dial_code:"+250",code:"RW",continent:"AF"},{name:"Reunion",dial_code:"+262",code:"RE",continent:"AF"},{name:"Saint Barthelemy",dial_code:"+590",code:"BL"},{name:"Saint Helena",dial_code:"+290",code:"SH",continent:"AF"},{name:"Saint Kitts and Nevis",dial_code:"+1869",code:"KN",continent:"NA"},{name:"Saint Lucia",dial_code:"+1758",code:"LC",continent:"NA"},{name:"Saint Martin",dial_code:"+590",code:"MF"},{name:"Saint Pierre and Miquelon",dial_code:"+508",code:"PM",continent:"NA"},{name:"Saint Vincent and the Grenadines",dial_code:"+1784",code:"VC",continent:"NA"},{name:"Samoa",dial_code:"+685",code:"WS",continent:"OC"},{name:"San Marino",dial_code:"+378",code:"SM",continent:"EU"},{name:"Sao Tome and Principe",dial_code:"+239",code:"ST",continent:"AF"},{name:"Saudi Arabia",dial_code:"+966",code:"SA",continent:"AS"},{name:"Senegal",dial_code:"+221",code:"SN",continent:"AF"},{name:"Serbia",dial_code:"+381",code:"RS",continent:"EU"},{name:"Seychelles",dial_code:"+248",code:"SC",continent:"AF"},{name:"Sierra Leone",dial_code:"+232",code:"SL",continent:"AF"},{name:"Singapore",dial_code:"+65",code:"SG",continent:"AS"},{name:"Slovakia",dial_code:"+421",code:"SK",continent:"EU"},{name:"Slovenia",dial_code:"+386",code:"SI",available:!0,continent:"EU"},{name:"Solomon Islands",dial_code:"+677",code:"SB",continent:"OC"},{name:"Somalia",dial_code:"+252",code:"SO",continent:"AF"},{name:"South Africa",dial_code:"+27",code:"ZA",continent:"AF"},{name:"South Sudan",dial_code:"+211",code:"SS",continent:"AF"},{name:"South Georgia and the South Sandwich Islands",dial_code:"+500",code:"GS",continent:"AN"},{name:"Spain",dial_code:"+34",code:"ES",available:!0,continent:"EU"},{name:"Sri Lanka",dial_code:"+94",code:"LK",continent:"AS"},{name:"Sudan",dial_code:"+249",code:"SD",continent:"AF"},{name:"Suriname",dial_code:"+597",code:"SR",continent:"SA"},{name:"Svalbard and Jan Mayen",dial_code:"+47",code:"SJ",continent:"EU"},{name:"Swaziland",dial_code:"+268",code:"SZ",continent:"AF"},{name:"Sweden",dial_code:"+46",code:"SE",continent:"EU"},{name:"Switzerland",dial_code:"+41",code:"CH",continent:"EU"},{name:"Syrian Arab Republic",dial_code:"+963",code:"SY"},{name:"Taiwan",dial_code:"+886",code:"TW"},{name:"Tajikistan",dial_code:"+992",code:"TJ",continent:"AS"},{name:"Tanzania, United Republic of Tanzania",dial_code:"+255",code:"TZ"},{name:"Thailand",dial_code:"+66",code:"TH",continent:"AS"},{name:"Timor-Leste",dial_code:"+670",code:"TL"},{name:"Togo",dial_code:"+228",code:"TG",continent:"AF"},{name:"Tokelau",dial_code:"+690",code:"TK",continent:"OC"},{name:"Tonga",dial_code:"+676",code:"TO",continent:"OC"},{name:"Trinidad and Tobago",dial_code:"+1868",code:"TT",continent:"NA"},{name:"Tunisia",dial_code:"+216",code:"TN",continent:"AF"},{name:"Turkey",dial_code:"+90",code:"TR",continent:"AS"},{name:"Turkmenistan",dial_code:"+993",code:"TM",continent:"AS"},{name:"Turks and Caicos Islands",dial_code:"+1649",code:"TC",continent:"NA"},{name:"Tuvalu",dial_code:"+688",code:"TV",continent:"OC"},{name:"Uganda",dial_code:"+256",code:"UG",continent:"AF"},{name:"Ukraine",dial_code:"+380",code:"UA",continent:"EU"},{name:"United Arab Emirates",dial_code:"+971",code:"AE",continent:"AS"},{name:"United Kingdom",dial_code:"+44",code:"GB",available:!0,continent:"EU"},{name:"United States",dial_code:"+1",code:"US",available:!0,continent:"NA"},{name:"Uruguay",dial_code:"+598",code:"UY",continent:"SA"},{name:"Uzbekistan",dial_code:"+998",code:"UZ",continent:"AS"},{name:"Vanuatu",dial_code:"+678",code:"VU",continent:"OC"},{name:"Venezuela, Bolivarian Republic of Venezuela",dial_code:"+58",code:"VE"},{name:"Vietnam",dial_code:"+84",code:"VN",continent:"AS"},{name:"Virgin Islands, British",dial_code:"+1284",code:"VG",continent:"NA"},{name:"Virgin Islands, U.S.",dial_code:"+1340",code:"VI",continent:"NA"},{name:"Wallis and Futuna",dial_code:"+681",code:"WF",continent:"OC"},{name:"Yemen",dial_code:"+967",code:"YE",continent:"AS"},{name:"Zambia",dial_code:"+260",code:"ZM",continent:"AF"},{name:"Zimbabwe",dial_code:"+263",code:"ZW",continent:"AF"}],a=[{name:"Africa",code:"AF"},{name:"North America",code:"NA",available:!0},{name:"Oceania",code:"OC",available:!0},{name:"Asia",code:"AS",available:!0},{name:"Europe",code:"EU",available:!0},{name:"South America",code:"SA"},{name:"Antarctica",code:"AN"}];e.exports={countries:n,continents:a}},43672:(e,n,a)=>{"use strict";a.d(n,{Z:()=>o});var t=a(80914);const o={listRunningApps(){return(0,t.Z)().get("/apps/listrunningapps")},listAllApps(){return(0,t.Z)().get("/apps/listallapps")},installedApps(){return(0,t.Z)().get("/apps/installedapps")},availableApps(){return(0,t.Z)().get("/apps/availableapps")},getEnterpriseNodes(){return(0,t.Z)().get("/apps/enterprisenodes")},stopApp(e,n){const a={headers:{zelidauth:e}};return(0,t.Z)().get(`/apps/appstop/${n}`,a)},startApp(e,n){const a={headers:{zelidauth:e}};return(0,t.Z)().get(`/apps/appstart/${n}`,a)},pauseApp(e,n){const a={headers:{zelidauth:e}};return(0,t.Z)().get(`/apps/apppause/${n}`,a)},unpauseApp(e,n){const a={headers:{zelidauth:e}};return(0,t.Z)().get(`/apps/appunpause/${n}`,a)},restartApp(e,n){const a={headers:{zelidauth:e}};return(0,t.Z)().get(`/apps/apprestart/${n}`,a)},removeApp(e,n){const a={headers:{zelidauth:e},onDownloadProgress(e){console.log(e)}};return(0,t.Z)().get(`/apps/appremove/${n}`,a)},registerApp(e,n){const a={headers:{zelidauth:e}};return(0,t.Z)().post("/apps/appregister",JSON.stringify(n),a)},updateApp(e,n){const a={headers:{zelidauth:e}};return(0,t.Z)().post("/apps/appupdate",JSON.stringify(n),a)},checkCommunication(){return(0,t.Z)().get("/flux/checkcommunication")},checkDockerExistance(e,n){const a={headers:{zelidauth:e}};return(0,t.Z)().post("/apps/checkdockerexistance",JSON.stringify(n),a)},appsRegInformation(){return(0,t.Z)().get("/apps/registrationinformation")},appsDeploymentInformation(){return(0,t.Z)().get("/apps/deploymentinformation")},getAppLocation(e){return(0,t.Z)().get(`/apps/location/${e}`)},globalAppSpecifications(){return(0,t.Z)().get("/apps/globalappsspecifications")},permanentMessagesOwner(e){return(0,t.Z)().get(`/apps/permanentmessages?owner=${e}`)},getInstalledAppSpecifics(e){return(0,t.Z)().get(`/apps/installedapps/${e}`)},getAppSpecifics(e){return(0,t.Z)().get(`/apps/appspecifications/${e}`)},getAppOwner(e){return(0,t.Z)().get(`/apps/appowner/${e}`)},getAppLogsTail(e,n){const a={headers:{zelidauth:e}};return(0,t.Z)().get(`/apps/applog/${n}/100`,a)},getAppTop(e,n){const a={headers:{zelidauth:e}};return(0,t.Z)().get(`/apps/apptop/${n}`,a)},getAppInspect(e,n){const a={headers:{zelidauth:e}};return(0,t.Z)().get(`/apps/appinspect/${n}`,a)},getAppStats(e,n){const a={headers:{zelidauth:e}};return(0,t.Z)().get(`/apps/appstats/${n}`,a)},getAppChanges(e,n){const a={headers:{zelidauth:e}};return(0,t.Z)().get(`/apps/appchanges/${n}`,a)},getAppExec(e,n,a,o){const d={headers:{zelidauth:e}},i={appname:n,cmd:a,env:JSON.parse(o)};return(0,t.Z)().post("/apps/appexec",JSON.stringify(i),d)},reindexGlobalApps(e){return(0,t.Z)().get("/apps/reindexglobalappsinformation",{headers:{zelidauth:e}})},reindexLocations(e){return(0,t.Z)().get("/apps/reindexglobalappslocation",{headers:{zelidauth:e}})},rescanGlobalApps(e,n,a){return(0,t.Z)().get(`/apps/rescanglobalappsinformation/${n}/${a}`,{headers:{zelidauth:e}})},getAppPirce(e){return(0,t.Z)().post("/apps/calculateprice",JSON.stringify(e))},getFolder(e,n){return(0,t.Z)().get(`/apps/fluxshare/getfolder/${n}`,{headers:{zelidauth:e}})},createFolder(e,n){return(0,t.Z)().get(`/apps/fluxshare/createfolder/${n}`,{headers:{zelidauth:e}})},getFile(e,n){return(0,t.Z)().get(`/apps/fluxshare/getfile/${n}`,{headers:{zelidauth:e}})},removeFile(e,n){return(0,t.Z)().get(`/apps/fluxshare/removefile/${n}`,{headers:{zelidauth:e}})},shareFile(e,n){return(0,t.Z)().get(`/apps/fluxshare/sharefile/${n}`,{headers:{zelidauth:e}})},unshareFile(e,n){return(0,t.Z)().get(`/apps/fluxshare/unsharefile/${n}`,{headers:{zelidauth:e}})},removeFolder(e,n){return(0,t.Z)().get(`/apps/fluxshare/removefolder/${n}`,{headers:{zelidauth:e}})},fileExists(e,n){return(0,t.Z)().get(`/apps/fluxshare/fileexists/${n}`,{headers:{zelidauth:e}})},storageStats(e){return(0,t.Z)().get("/apps/fluxshare/stats",{headers:{zelidauth:e}})},renameFileFolder(e,n,a){return(0,t.Z)().get(`/apps/fluxshare/rename/${n}/${a}`,{headers:{zelidauth:e}})},appPrice(e){return(0,t.Z)().post("/apps/calculateprice",JSON.stringify(e))},appRegistrationVerificaiton(e){return(0,t.Z)().post("/apps/verifyappregistrationspecifications",JSON.stringify(e))},appUpdateVerification(e){return(0,t.Z)().post("/apps/verifyappupdatespecifications",JSON.stringify(e))},getAppMonitoring(e,n){const a={headers:{zelidauth:e}};return(0,t.Z)().get(`/apps/appmonitor/${n}`,a)},startAppMonitoring(e,n){const a={headers:{zelidauth:e}};return n?(0,t.Z)().get(`/apps/startmonitoring/${n}`,a):(0,t.Z)().get("/apps/startmonitoring",a)},stopAppMonitoring(e,n,a){const o={headers:{zelidauth:e}};return n&&a?(0,t.Z)().get(`/apps/stopmonitoring/${n}/${a}`,o):n?(0,t.Z)().get(`/apps/stopmonitoring/${n}`,o):a?(0,t.Z)().get(`/apps/stopmonitoring?deletedata=${a}`,o):(0,t.Z)().get("/apps/stopmonitoring",o)},justAPI(){return(0,t.Z)()}}},27616:(e,n,a)=>{"use strict";a.d(n,{Z:()=>o});var t=a(80914);const o={help(){return(0,t.Z)().get("/daemon/help")},helpSpecific(e){return(0,t.Z)().get(`/daemon/help/${e}`)},getInfo(){return(0,t.Z)().get("/daemon/getinfo")},getFluxNodeStatus(){return(0,t.Z)().get("/daemon/getzelnodestatus")},getRawTransaction(e,n){return(0,t.Z)().get(`/daemon/getrawtransaction/${e}/${n}`)},listFluxNodes(){return(0,t.Z)().get("/daemon/listzelnodes")},viewDeterministicFluxNodeList(){return(0,t.Z)().get("/daemon/viewdeterministiczelnodelist")},getFluxNodeCount(){return(0,t.Z)().get("/daemon/getzelnodecount")},getStartList(){return(0,t.Z)().get("/daemon/getstartlist")},getDOSList(){return(0,t.Z)().get("/daemon/getdoslist")},fluxCurrentWinner(){return(0,t.Z)().get("/daemon/fluxcurrentwinner")},getBenchmarks(){return(0,t.Z)().get("/daemon/getbenchmarks")},getBenchStatus(){return(0,t.Z)().get("/daemon/getbenchstatus")},startBenchmark(e){return(0,t.Z)().get("/daemon/startbenchmark",{headers:{zelidauth:e}})},stopBenchmark(e){return(0,t.Z)().get("/daemon/stopbenchmark",{headers:{zelidauth:e}})},getBlockCount(){return(0,t.Z)().get("/daemon/getBlockCount")},getBlockchainInfo(){return(0,t.Z)().get("/daemon/getblockchaininfo")},getMiningInfo(){return(0,t.Z)().get("/daemon/getmininginfo")},getNetworkInfo(){return(0,t.Z)().get("/daemon/getnetworkinfo")},validateAddress(e,n){return(0,t.Z)().get(`/daemon/validateaddress/${n}`,{headers:{zelidauth:e}})},getWalletInfo(e){return(0,t.Z)().get("/daemon/getwalletinfo",{headers:{zelidauth:e}})},listFluxNodeConf(e){return(0,t.Z)().get("/daemon/listzelnodeconf",{headers:{zelidauth:e}})},start(e){return(0,t.Z)().get("/daemon/start",{headers:{zelidauth:e}})},restart(e){return(0,t.Z)().get("/daemon/restart",{headers:{zelidauth:e}})},stopDaemon(e){return(0,t.Z)().get("/daemon/stop",{headers:{zelidauth:e}})},rescanDaemon(e,n){return(0,t.Z)().get(`/daemon/rescanblockchain/${n}`,{headers:{zelidauth:e}})},getBlock(e,n){return(0,t.Z)().get(`/daemon/getblock/${e}/${n}`)},tailDaemonDebug(e){return(0,t.Z)().get("/flux/taildaemondebug",{headers:{zelidauth:e}})},justAPI(){return(0,t.Z)()},cancelToken(){return t.S}}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/6345.js b/HomeUI/dist/js/6345.js new file mode 100644 index 000000000..64bcb10e7 --- /dev/null +++ b/HomeUI/dist/js/6345.js @@ -0,0 +1 @@ +"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[6345],{67741:(t,e,a)=>{a.r(e),a.d(e,{default:()=>k});var i=function(){var t=this,e=t._self._c;return e("div",[t.managedApplication?t._e():e("b-tabs",{on:{"activate-tab":function(e){return t.tabChanged()}}},[e("b-tab",{attrs:{title:"Active Apps"}},[e("b-overlay",{attrs:{show:t.tableconfig.active.loading,variant:"transparent",blur:"5px"}},[e("b-card",[e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"apps-active-table",attrs:{striped:"",hover:"",responsive:"",items:t.tableconfig.active.apps,fields:t.tableconfig.active.fields,"show-empty":"","empty-text":"No Flux Apps are active"},scopedSlots:t._u([{key:"cell(show_details)",fn:function(a){return[e("a",{on:{click:function(e){return t.showLocations(a,t.tableconfig.active.apps)}}},[a.detailsShowing?t._e():e("v-icon",{attrs:{name:"chevron-down"}}),a.detailsShowing?e("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(a){return[e("b-card",{staticClass:"mx-2"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Copy to Clipboard",expression:"'Copy to Clipboard'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-2",attrs:{id:`copy-active-app-${a.item.name}`,size:"sm",variant:"danger"},on:{click:function(e){t.copyToClipboard(JSON.stringify(a.item))}}},[t._v(" Copy Specifications ")]),e("b-button",{staticClass:"mr-2",attrs:{id:`deploy-active-app-${a.item.name}`,size:"sm",variant:"danger"}},[t._v(" Deploy Myself ")]),e("confirm-dialog",{attrs:{target:`deploy-active-app-${a.item.name}`,"confirm-button":"Deploy App"},on:{confirm:function(e){return t.redeployApp(a.item,!0)}}})],1),e("b-card",{staticClass:"mx-2"},[e("list-entry",{attrs:{title:"Description",data:a.item.description}}),e("list-entry",{attrs:{title:"Owner",data:a.item.owner}}),e("list-entry",{attrs:{title:"Hash",data:a.item.hash}}),a.item.version>=5?e("div",[a.item.geolocation.length?e("div",t._l(a.item.geolocation,(function(a){return e("div",{key:a},[e("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(a)}})],1)})),0):e("div",[e("list-entry",{attrs:{title:"Continent",data:"All"}}),e("list-entry",{attrs:{title:"Country",data:"All"}}),e("list-entry",{attrs:{title:"Region",data:"All"}})],1)]):t._e(),a.item.instances?e("list-entry",{attrs:{title:"Instances",data:a.item.instances.toString()}}):t._e(),e("list-entry",{attrs:{title:"Expires in",data:t.labelForExpire(a.item.expire,a.item.height)}}),e("list-entry",{attrs:{title:"Enterprise Nodes",data:a.item.nodes?a.item.nodes.toString():"Not scoped"}}),e("list-entry",{attrs:{title:"Static IP",data:a.item.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}}),e("h4",[t._v("Composition")]),a.item.version<=3?e("div",[e("b-card",[e("list-entry",{attrs:{title:"Repository",data:a.item.repotag}}),e("list-entry",{attrs:{title:"Custom Domains",data:a.item.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(a.item.ports,void 0,a.item.name).toString()}}),e("list-entry",{attrs:{title:"Ports",data:a.item.ports.toString()}}),e("list-entry",{attrs:{title:"Container Ports",data:a.item.containerPorts.toString()}}),e("list-entry",{attrs:{title:"Container Data",data:a.item.containerData}}),e("list-entry",{attrs:{title:"Environment Parameters",data:a.item.enviromentParameters.length>0?a.item.enviromentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:a.item.commands.length>0?a.item.commands.toString():"none"}}),a.item.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${a.item.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${a.item.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${a.item.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${a.item.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${a.item.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${a.item.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${a.item.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${a.item.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${a.item.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${a.item.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${a.item.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${a.item.hdd} GB`}})],1)],1)],1):e("div",t._l(a.item.compose,(function(i,s){return e("b-card",{key:s},[e("b-card-title",[t._v(" Component "+t._s(i.name)+" ")]),e("list-entry",{attrs:{title:"Name",data:i.name}}),e("list-entry",{attrs:{title:"Description",data:i.description}}),e("list-entry",{attrs:{title:"Repository",data:i.repotag}}),e("list-entry",{attrs:{title:"Repository Authentication",data:i.repoauth?"Content Encrypted":"Public"}}),e("list-entry",{attrs:{title:"Custom Domains",data:i.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(i.ports,i.name,a.item.name,s).toString()}}),e("list-entry",{attrs:{title:"Ports",data:i.ports.toString()}}),e("list-entry",{attrs:{title:"Container Ports",data:i.containerPorts.toString()}}),e("list-entry",{attrs:{title:"Container Data",data:i.containerData}}),e("list-entry",{attrs:{title:"Environment Parameters",data:i.environmentParameters.length>0?i.environmentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:i.commands.length>0?i.commands.toString():"none"}}),e("list-entry",{attrs:{title:"Secret Environment Parameters",data:i.secrets?"Content Encrypted":"none"}}),i.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${i.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${i.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${i.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${i.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${i.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${i.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${i.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${i.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${i.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${i.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${i.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${i.hdd} GB`}})],1)],1)})),1),e("h4",[t._v("Locations")]),e("b-table",{staticClass:"locations-table",attrs:{striped:"",hover:"",items:t.appLocations,fields:t.appLocationFields},scopedSlots:t._u([{key:"cell(visit)",fn:function(i){return[e("b-button",{staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:function(e){t.openApp(a.item.name,i.item.ip.split(":")[0],t.getProperPort(a.item))}}},[t._v(" Visit App ")]),e("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"danger"},on:{click:function(e){t.openNodeFluxOS(i.item.ip.split(":")[0],i.item.ip.split(":")[1]?+i.item.ip.split(":")[1]-1:16126)}}},[t._v(" Visit FluxNode ")])]}}],null,!0)})],1)]}},{key:"cell(visit)",fn:function(a){return[e("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"danger"},on:{click:function(e){return t.openGlobalApp(a.item.name)}}},[t._v(" Visit ")])]}}],null,!1,4233128261)})],1)],1)],1)],1)],1),e("b-tab",{attrs:{title:"Marketplace Deployments"}},[e("b-overlay",{attrs:{show:t.tableconfig.active.loading,variant:"transparent",blur:"5px"}},[e("b-card",[e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"apps-active-table",attrs:{striped:"",hover:"",responsive:"",items:t.tableconfig.active_marketplace.apps,fields:t.tableconfig.active_marketplace.fields,"show-empty":"","empty-text":"No Flux Marketplace Apps are active"},scopedSlots:t._u([{key:"cell(show_details)",fn:function(a){return[e("a",{on:{click:function(e){return t.showLocations(a,t.tableconfig.active.apps)}}},[a.detailsShowing?t._e():e("v-icon",{attrs:{name:"chevron-down"}}),a.detailsShowing?e("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(a){return[e("b-card",{staticClass:"mx-2"},[e("list-entry",{attrs:{title:"Description",data:a.item.description}}),e("list-entry",{attrs:{title:"Owner",data:a.item.owner}}),e("list-entry",{attrs:{title:"Hash",data:a.item.hash}}),a.item.version>=5?e("div",[a.item.geolocation.length?e("div",t._l(a.item.geolocation,(function(a){return e("div",{key:a},[e("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(a)}})],1)})),0):e("div",[e("list-entry",{attrs:{title:"Continent",data:"All"}}),e("list-entry",{attrs:{title:"Country",data:"All"}}),e("list-entry",{attrs:{title:"Region",data:"All"}})],1)]):t._e(),a.item.instances?e("list-entry",{attrs:{title:"Instances",data:a.item.instances.toString()}}):t._e(),e("list-entry",{attrs:{title:"Expires in",data:t.labelForExpire(a.item.expire,a.item.height)}}),e("list-entry",{attrs:{title:"Enterprise Nodes",data:a.item.nodes?a.item.nodes.toString():"Not scoped"}}),e("list-entry",{attrs:{title:"Static IP",data:a.item.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}}),e("h4",[t._v("Composition")]),a.item.version<=3?e("div",[e("b-card",[e("list-entry",{attrs:{title:"Repository",data:a.item.repotag}}),e("list-entry",{attrs:{title:"Custom Domains",data:a.item.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(a.item.ports,void 0,a.item.name).toString()}}),e("list-entry",{attrs:{title:"Ports",data:a.item.ports.toString()}}),e("list-entry",{attrs:{title:"Container Ports",data:a.item.containerPorts.toString()}}),e("list-entry",{attrs:{title:"Container Data",data:a.item.containerData}}),e("list-entry",{attrs:{title:"Environment Parameters",data:a.item.enviromentParameters.length>0?a.item.enviromentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:a.item.commands.length>0?a.item.commands.toString():"none"}}),a.item.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${a.item.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${a.item.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${a.item.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${a.item.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${a.item.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${a.item.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${a.item.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${a.item.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${a.item.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${a.item.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${a.item.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${a.item.hdd} GB`}})],1)],1)],1):e("div",t._l(a.item.compose,(function(i,s){return e("b-card",{key:s},[e("b-card-title",[t._v(" Component "+t._s(i.name)+" ")]),e("list-entry",{attrs:{title:"Name",data:i.name}}),e("list-entry",{attrs:{title:"Description",data:i.description}}),e("list-entry",{attrs:{title:"Repository",data:i.repotag}}),e("list-entry",{attrs:{title:"Repository Authentication",data:i.repoauth?"Content Encrypted":"Public"}}),e("list-entry",{attrs:{title:"Custom Domains",data:i.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(i.ports,i.name,a.item.name,s).toString()}}),e("list-entry",{attrs:{title:"Ports",data:i.ports.toString()}}),e("list-entry",{attrs:{title:"Container Ports",data:i.containerPorts.toString()}}),e("list-entry",{attrs:{title:"Container Data",data:i.containerData}}),e("list-entry",{attrs:{title:"Environment Parameters",data:i.environmentParameters.length>0?i.environmentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:i.commands.length>0?i.commands.toString():"none"}}),e("list-entry",{attrs:{title:"Secret Environment Parameters",data:i.secrets?"Content Encrypted":"none"}}),i.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${i.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${i.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${i.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${i.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${i.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${i.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${i.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${i.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${i.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${i.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${i.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${i.hdd} GB`}})],1)],1)})),1),e("h4",[t._v("Locations")]),e("b-table",{staticClass:"locations-table",attrs:{striped:"",hover:"",items:t.appLocations,fields:t.appLocationFields},scopedSlots:t._u([{key:"cell(visit)",fn:function(i){return[e("b-button",{staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:function(e){t.openApp(a.item.name,i.item.ip.split(":")[0],t.getProperPort(a.item))}}},[t._v(" Visit App ")]),e("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"danger"},on:{click:function(e){t.openNodeFluxOS(i.item.ip.split(":")[0],i.item.ip.split(":")[1]?+i.item.ip.split(":")[1]-1:16126)}}},[t._v(" Visit FluxNode ")])]}}],null,!0)})],1)]}},{key:"cell(visit)",fn:function(a){return[e("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"danger"},on:{click:function(e){return t.openGlobalApp(a.item.name)}}},[t._v(" Visit ")])]}}],null,!1,1173132119)})],1)],1)],1)],1)],1)],1),t.managedApplication?e("div",[e("management",{attrs:{"app-name":t.managedApplication,global:!0,"installed-apps":[]},on:{back:function(e){return t.clearManagedApplication()}}})],1):t._e()],1)},s=[],n=(a(70560),a(58887)),o=a(51015),r=a(16521),l=a(50725),c=a(86855),p=a(49379),m=a(26253),d=a(15193),u=a(66126),y=a(5870),g=a(20266),h=a(34547),b=a(51748),f=a(87156),v=a(86981),C=a(43672),S=a(27616);const $=a(80129),A=a(57306),w={components:{BTabs:n.M,BTab:o.L,BTable:r.h,BCol:l.l,BCard:c._,BCardTitle:p._,BRow:m.T,BButton:d.T,BOverlay:u.X,ListEntry:b.Z,ConfirmDialog:f.Z,Management:v.Z,ToastificationContent:h.Z},directives:{"b-tooltip":y.o,Ripple:g.Z},data(){return{managedApplication:"",daemonBlockCount:-1,appLocations:[],appLocationFields:[{key:"ip",label:"IP Address"},{key:"visit",label:""}],myappLocations:[],myappLocationFields:[{key:"ip",label:"IP Address"},{key:"visit",label:""}],tableconfig:{active:{apps:[],fields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description",sortable:!0},{key:"visit",label:"Visit"}],loading:!0},active_marketplace:{apps:[],fields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description",sortable:!0},{key:"visit",label:"Visit"}]}},allApps:[]}},computed:{myGlobalApps(){const t=localStorage.getItem("zelidauth"),e=$.parse(t);return this.allApps?this.allApps.filter((t=>t.owner===e.zelid)):[]},isLoggedIn(){const t=localStorage.getItem("zelidauth"),e=$.parse(t);return!!e.zelid}},mounted(){this.appsGetListGlobalApps(),this.getDaemonBlockCount()},methods:{minutesToString(t){let e=60*t;const a={day:86400,hour:3600,minute:60,second:1},i=[];for(const s in a){const t=Math.floor(e/a[s]);1===t&&i.push(` ${t} ${s}`),t>=2&&i.push(` ${t} ${s}s`),e%=a[s]}return i},labelForExpire(t,e){if(-1===this.daemonBlockCount)return"Not possible to calculate expiration";const a=t||22e3,i=e+a-this.daemonBlockCount;if(i<1)return"Application Expired";const s=2*i,n=this.minutesToString(s);return n.length>2?`${n[0]}, ${n[1]}, ${n[2]}`:n.length>1?`${n[0]}, ${n[1]}`:`${n[0]}`},async getDaemonBlockCount(){const t=await S.Z.getBlockCount();"success"===t.data.status&&(this.daemonBlockCount=t.data.data)},openAppManagement(t){this.managedApplication=t},clearManagedApplication(){this.managedApplication=""},async appsGetListGlobalApps(){this.tableconfig.active.loading=!0;const t=await C.Z.globalAppSpecifications();console.log(t),this.allApps=t.data.data,this.tableconfig.active.apps=this.allApps.filter((t=>{if(t.name.length>=14){const e=t.name.substring(t.name.length-13,t.name.length),a=Number(e);if(!Number.isNaN(a))return!1}return!0})),this.tableconfig.active_marketplace.apps=this.allApps.filter((t=>{if(t.name.length>=14){const e=t.name.substring(t.name.length-13,t.name.length),a=Number(e);if(!Number.isNaN(a))return!0}return!1})),this.tableconfig.active.loading=!1,this.loadPermanentMessages()},async loadPermanentMessages(){try{const t=localStorage.getItem("zelidauth"),e=$.parse(t);if(!e.zelid)return void(this.tableconfig.my_expired.loading=!1);const a=await C.Z.permanentMessagesOwner(e.zelid),i=[];for(const n of a.data.data){const t=i.find((t=>t.appSpecifications.name===n.appSpecifications.name));if(t){if(n.height>t.height){const t=i.findIndex((t=>t.appSpecifications.name===n.appSpecifications.name));t>-1&&(i.splice(t,1),i.push(n))}}else i.push(n)}const s=[];for(const n of i){const t=this.allApps.find((t=>t.name.toLowerCase()===n.appSpecifications.name.toLowerCase()));if(!t){const t=n.appSpecifications;s.push(t)}}this.tableconfig.my_expired.apps=s,this.tableconfig.my_expired.loading=!1}catch(t){console.log(t)}},redeployApp(t,e=!1){const a=t;e&&(a.name+="XXX",a.name+=Date.now().toString().slice(-5));const i=localStorage.getItem("zelidauth"),s=$.parse(i);s?a.owner=s.zelid:e&&(a.owner=""),this.$router.replace({name:"apps-registerapp",params:{appspecs:JSON.stringify(t)}})},copyToClipboard(t){const e=JSON.parse(t);delete e._showDetails;const a=JSON.stringify(e),i=document.createElement("textarea");i.value=a,i.setAttribute("readonly",""),i.style.position="absolute",i.style.left="-9999px",document.body.appendChild(i),i.select(),document.execCommand("copy"),document.body.removeChild(i),this.showToast("success","Application Specifications copied to Clipboard")},openApp(t,e,a){if(console.log(t,e,a),a&&e){const t=e,i=a,s=`http://${t}:${i}`;this.openSite(s)}else this.showToast("danger","Unable to open App :(, App does not have a port.")},getProperPort(t){if(t.port)return t.port;if(t.ports)return t.ports[0];for(let e=0;e{this.showToast("danger",t.message||t)}));if(console.log(e),"success"===e.data.status){const a=e.data.data,i=a[0];if(i){const e=`https://${t}.app.runonflux.io`;this.openSite(e)}else this.showToast("danger","Application is awaiting launching...")}else this.showToast("danger",e.data.data.message||e.data.data)},openSite(t){const e=window.open(t,"_blank");e.focus()},tabChanged(){this.tableconfig.active.apps.forEach((t=>{this.$set(t,"_showDetails",!1)})),this.appLocations=[]},showLocations(t,e){t.detailsShowing?t.toggleDetails():(e.forEach((t=>{this.$set(t,"_showDetails",!1)})),this.$nextTick((()=>{t.toggleDetails(),this.loadLocations(t)})))},async loadLocations(t){console.log(t),this.appLocations=[];const e=await C.Z.getAppLocation(t.item.name).catch((t=>{this.showToast("danger",t.message||t)}));if(console.log(e),"success"===e.data.status){const t=e.data.data;this.appLocations=t}},showToast(t,e,a="InfoIcon"){this.$toast({component:h.Z,props:{title:e,icon:a,variant:t}})},constructAutomaticDomains(t,e="",a,i=0){const s=a.toLowerCase(),n=e.toLowerCase();if(!n){const e=[];0===i&&e.push(`${s}.app.runonflux.io`);for(let a=0;at.code===e))||{name:"ALL"};return`Continent: ${a.name||"Unkown"}`}if(t.startsWith("b")){const e=t.slice(1),a=A.countries.find((t=>t.code===e))||{name:"ALL"};return`Country: ${a.name||"Unkown"}`}if(t.startsWith("ac")){const e=t.slice(2),a=e.split("_"),i=a[0],s=a[1],n=a[2],o=A.continents.find((t=>t.code===i))||{name:"ALL"},r=A.countries.find((t=>t.code===s))||{name:"ALL"};let l=`Allowed location: Continent: ${o.name}`;return s&&(l+=`, Country: ${r.name}`),n&&(l+=`, Region: ${n}`),l}if(t.startsWith("a!c")){const e=t.slice(3),a=e.split("_"),i=a[0],s=a[1],n=a[2],o=A.continents.find((t=>t.code===i))||{name:"ALL"},r=A.countries.find((t=>t.code===s))||{name:"ALL"};let l=`Forbidden location: Continent: ${o.name}`;return s&&(l+=`, Country: ${r.name}`),n&&(l+=`, Region: ${n}`),l}return"All locations allowed"}}},P=w;var D=a(1001),_=(0,D.Z)(P,i,s,!1,null,null,null);const k=_.exports}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/6669.js b/HomeUI/dist/js/6669.js deleted file mode 100644 index eb62bca90..000000000 --- a/HomeUI/dist/js/6669.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[6669],{36365:(t,e,a)=>{a.r(e),a.d(e,{default:()=>k});var i=function(){var t=this,e=t._self._c;return e("div",[t.managedApplication?t._e():e("b-tabs",{on:{"activate-tab":function(e){return t.tabChanged()}}},[e("b-tab",{attrs:{active:"",title:"Active Apps"}},[e("b-overlay",{attrs:{show:t.tableconfig.active.loading,variant:"transparent",blur:"5px"}},[e("b-card",[e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"apps-active-table",attrs:{striped:"",hover:"",responsive:"",items:t.tableconfig.active.apps,fields:t.tableconfig.active.fields,"show-empty":"","empty-text":"No Flux Apps are active"},scopedSlots:t._u([{key:"cell(show_details)",fn:function(a){return[e("a",{on:{click:function(e){return t.showLocations(a,t.tableconfig.active.apps)}}},[a.detailsShowing?t._e():e("v-icon",{attrs:{name:"chevron-down"}}),a.detailsShowing?e("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(a){return[e("b-card",{staticClass:"mx-2"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Copy to Clipboard",expression:"'Copy to Clipboard'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-2",attrs:{id:`copy-active-app-${a.item.name}`,size:"sm",variant:"danger"},on:{click:function(e){t.copyToClipboard(JSON.stringify(a.item))}}},[t._v(" Copy Specifications ")]),e("b-button",{staticClass:"mr-2",attrs:{id:`deploy-active-app-${a.item.name}`,size:"sm",variant:"danger"}},[t._v(" Deploy Myself ")]),e("confirm-dialog",{attrs:{target:`deploy-active-app-${a.item.name}`,"confirm-button":"Deploy App"},on:{confirm:function(e){return t.redeployApp(a.item,!0)}}})],1),e("b-card",{staticClass:"mx-2"},[e("list-entry",{attrs:{title:"Description",data:a.item.description}}),e("list-entry",{attrs:{title:"Owner",data:a.item.owner}}),e("list-entry",{attrs:{title:"Hash",data:a.item.hash}}),a.item.version>=5?e("div",[a.item.geolocation.length?e("div",t._l(a.item.geolocation,(function(a){return e("div",{key:a},[e("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(a)}})],1)})),0):e("div",[e("list-entry",{attrs:{title:"Continent",data:"All"}}),e("list-entry",{attrs:{title:"Country",data:"All"}}),e("list-entry",{attrs:{title:"Region",data:"All"}})],1)]):t._e(),a.item.instances?e("list-entry",{attrs:{title:"Instances",data:a.item.instances.toString()}}):t._e(),e("list-entry",{attrs:{title:"Expires in",data:t.labelForExpire(a.item.expire,a.item.height)}}),e("list-entry",{attrs:{title:"Enterprise Nodes",data:a.item.nodes?a.item.nodes.toString():"Not scoped"}}),e("list-entry",{attrs:{title:"Static IP",data:a.item.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}}),e("h4",[t._v("Composition")]),a.item.version<=3?e("div",[e("b-card",[e("list-entry",{attrs:{title:"Repository",data:a.item.repotag}}),e("list-entry",{attrs:{title:"Custom Domains",data:a.item.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(a.item.ports,void 0,a.item.name).toString()}}),e("list-entry",{attrs:{title:"Ports",data:a.item.ports.toString()}}),e("list-entry",{attrs:{title:"Container Ports",data:a.item.containerPorts.toString()}}),e("list-entry",{attrs:{title:"Container Data",data:a.item.containerData}}),e("list-entry",{attrs:{title:"Environment Parameters",data:a.item.enviromentParameters.length>0?a.item.enviromentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:a.item.commands.length>0?a.item.commands.toString():"none"}}),a.item.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${a.item.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${a.item.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${a.item.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${a.item.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${a.item.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${a.item.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${a.item.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${a.item.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${a.item.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${a.item.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${a.item.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${a.item.hdd} GB`}})],1)],1)],1):e("div",t._l(a.item.compose,(function(i,s){return e("b-card",{key:s},[e("b-card-title",[t._v(" Component "+t._s(i.name)+" ")]),e("list-entry",{attrs:{title:"Name",data:i.name}}),e("list-entry",{attrs:{title:"Description",data:i.description}}),e("list-entry",{attrs:{title:"Repository",data:i.repotag}}),e("list-entry",{attrs:{title:"Repository Authentication",data:i.repoauth?"Content Encrypted":"Public"}}),e("list-entry",{attrs:{title:"Custom Domains",data:i.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(i.ports,i.name,a.item.name,s).toString()}}),e("list-entry",{attrs:{title:"Ports",data:i.ports.toString()}}),e("list-entry",{attrs:{title:"Container Ports",data:i.containerPorts.toString()}}),e("list-entry",{attrs:{title:"Container Data",data:i.containerData}}),e("list-entry",{attrs:{title:"Environment Parameters",data:i.environmentParameters.length>0?i.environmentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:i.commands.length>0?i.commands.toString():"none"}}),e("list-entry",{attrs:{title:"Secret Environment Parameters",data:i.secrets?"Content Encrypted":"none"}}),i.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${i.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${i.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${i.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${i.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${i.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${i.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${i.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${i.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${i.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${i.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${i.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${i.hdd} GB`}})],1)],1)})),1),e("h4",[t._v("Locations")]),e("b-table",{staticClass:"locations-table",attrs:{striped:"",hover:"",items:t.appLocations,fields:t.appLocationFields},scopedSlots:t._u([{key:"cell(visit)",fn:function(i){return[e("b-button",{staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:function(e){t.openApp(a.item.name,i.item.ip.split(":")[0],t.getProperPort(a.item))}}},[t._v(" Visit App ")]),e("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"danger"},on:{click:function(e){t.openNodeFluxOS(i.item.ip.split(":")[0],i.item.ip.split(":")[1]?+i.item.ip.split(":")[1]-1:16126)}}},[t._v(" Visit FluxNode ")])]}}],null,!0)})],1)]}},{key:"cell(visit)",fn:function(a){return[e("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"danger"},on:{click:function(e){return t.openGlobalApp(a.item.name)}}},[t._v(" Visit ")])]}}],null,!1,4233128261)})],1)],1)],1)],1)],1),e("b-tab",{attrs:{title:"Marketplace Deployments"}},[e("b-overlay",{attrs:{show:t.tableconfig.active.loading,variant:"transparent",blur:"5px"}},[e("b-card",[e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"apps-active-table",attrs:{striped:"",hover:"",responsive:"",items:t.tableconfig.active_marketplace.apps,fields:t.tableconfig.active_marketplace.fields,"show-empty":"","empty-text":"No Flux Marketplace Apps are active"},scopedSlots:t._u([{key:"cell(show_details)",fn:function(a){return[e("a",{on:{click:function(e){return t.showLocations(a,t.tableconfig.active.apps)}}},[a.detailsShowing?t._e():e("v-icon",{attrs:{name:"chevron-down"}}),a.detailsShowing?e("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(a){return[e("b-card",{staticClass:"mx-2"},[e("list-entry",{attrs:{title:"Description",data:a.item.description}}),e("list-entry",{attrs:{title:"Owner",data:a.item.owner}}),e("list-entry",{attrs:{title:"Hash",data:a.item.hash}}),a.item.version>=5?e("div",[a.item.geolocation.length?e("div",t._l(a.item.geolocation,(function(a){return e("div",{key:a},[e("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(a)}})],1)})),0):e("div",[e("list-entry",{attrs:{title:"Continent",data:"All"}}),e("list-entry",{attrs:{title:"Country",data:"All"}}),e("list-entry",{attrs:{title:"Region",data:"All"}})],1)]):t._e(),a.item.instances?e("list-entry",{attrs:{title:"Instances",data:a.item.instances.toString()}}):t._e(),e("list-entry",{attrs:{title:"Expires in",data:t.labelForExpire(a.item.expire,a.item.height)}}),e("list-entry",{attrs:{title:"Enterprise Nodes",data:a.item.nodes?a.item.nodes.toString():"Not scoped"}}),e("list-entry",{attrs:{title:"Static IP",data:a.item.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}}),e("h4",[t._v("Composition")]),a.item.version<=3?e("div",[e("b-card",[e("list-entry",{attrs:{title:"Repository",data:a.item.repotag}}),e("list-entry",{attrs:{title:"Custom Domains",data:a.item.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(a.item.ports,void 0,a.item.name).toString()}}),e("list-entry",{attrs:{title:"Ports",data:a.item.ports.toString()}}),e("list-entry",{attrs:{title:"Container Ports",data:a.item.containerPorts.toString()}}),e("list-entry",{attrs:{title:"Container Data",data:a.item.containerData}}),e("list-entry",{attrs:{title:"Environment Parameters",data:a.item.enviromentParameters.length>0?a.item.enviromentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:a.item.commands.length>0?a.item.commands.toString():"none"}}),a.item.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${a.item.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${a.item.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${a.item.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${a.item.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${a.item.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${a.item.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${a.item.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${a.item.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${a.item.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${a.item.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${a.item.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${a.item.hdd} GB`}})],1)],1)],1):e("div",t._l(a.item.compose,(function(i,s){return e("b-card",{key:s},[e("b-card-title",[t._v(" Component "+t._s(i.name)+" ")]),e("list-entry",{attrs:{title:"Name",data:i.name}}),e("list-entry",{attrs:{title:"Description",data:i.description}}),e("list-entry",{attrs:{title:"Repository",data:i.repotag}}),e("list-entry",{attrs:{title:"Repository Authentication",data:i.repoauth?"Content Encrypted":"Public"}}),e("list-entry",{attrs:{title:"Custom Domains",data:i.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(i.ports,i.name,a.item.name,s).toString()}}),e("list-entry",{attrs:{title:"Ports",data:i.ports.toString()}}),e("list-entry",{attrs:{title:"Container Ports",data:i.containerPorts.toString()}}),e("list-entry",{attrs:{title:"Container Data",data:i.containerData}}),e("list-entry",{attrs:{title:"Environment Parameters",data:i.environmentParameters.length>0?i.environmentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:i.commands.length>0?i.commands.toString():"none"}}),e("list-entry",{attrs:{title:"Secret Environment Parameters",data:i.secrets?"Content Encrypted":"none"}}),i.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${i.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${i.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${i.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${i.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${i.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${i.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${i.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${i.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${i.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${i.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${i.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${i.hdd} GB`}})],1)],1)})),1),e("h4",[t._v("Locations")]),e("b-table",{staticClass:"locations-table",attrs:{striped:"",hover:"",items:t.appLocations,fields:t.appLocationFields},scopedSlots:t._u([{key:"cell(visit)",fn:function(i){return[e("b-button",{staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:function(e){t.openApp(a.item.name,i.item.ip.split(":")[0],t.getProperPort(a.item))}}},[t._v(" Visit App ")]),e("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"danger"},on:{click:function(e){t.openNodeFluxOS(i.item.ip.split(":")[0],i.item.ip.split(":")[1]?+i.item.ip.split(":")[1]-1:16126)}}},[t._v(" Visit FluxNode ")])]}}],null,!0)})],1)]}},{key:"cell(visit)",fn:function(a){return[e("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"danger"},on:{click:function(e){return t.openGlobalApp(a.item.name)}}},[t._v(" Visit ")])]}}],null,!1,1173132119)})],1)],1)],1)],1)],1),e("b-tab",{attrs:{title:"My Active Apps"}},[e("b-overlay",{attrs:{show:t.tableconfig.active.loading,variant:"transparent",blur:"5px"}},[e("b-card",[e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"myapps-table",attrs:{striped:"",hover:"",responsive:"",items:t.myGlobalApps,fields:t.tableconfig.my.fields,"show-empty":"","empty-text":"No Global Apps are owned"},scopedSlots:t._u([{key:"cell(show_details)",fn:function(a){return[e("a",{on:{click:function(e){return t.showLocations(a,t.myGlobalApps)}}},[a.detailsShowing?t._e():e("v-icon",{attrs:{name:"chevron-down"}}),a.detailsShowing?e("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(a){return[e("b-card",{staticClass:"mx-2"},[e("list-entry",{attrs:{title:"Description",data:a.item.description}}),e("list-entry",{attrs:{title:"Owner",data:a.item.owner}}),e("list-entry",{attrs:{title:"Hash",data:a.item.hash}}),a.item.version>=5?e("div",[e("list-entry",{attrs:{title:"Contacts",data:JSON.stringify(a.item.contacts)}}),a.item.geolocation.length?e("div",t._l(a.item.geolocation,(function(a){return e("div",{key:a},[e("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(a)}})],1)})),0):e("div",[e("list-entry",{attrs:{title:"Continent",data:"All"}}),e("list-entry",{attrs:{title:"Country",data:"All"}}),e("list-entry",{attrs:{title:"Region",data:"All"}})],1)],1):t._e(),a.item.instances?e("list-entry",{attrs:{title:"Instances",data:a.item.instances.toString()}}):t._e(),e("list-entry",{attrs:{title:"Expires in",data:t.labelForExpire(a.item.expire,a.item.height)}}),e("list-entry",{attrs:{title:"Enterprise Nodes",data:a.item.nodes?a.item.nodes.toString():"Not scoped"}}),e("list-entry",{attrs:{title:"Static IP",data:a.item.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}}),e("h4",[t._v("Composition")]),a.item.version<=3?e("div",[e("b-card",[e("list-entry",{attrs:{title:"Repository",data:a.item.repotag}}),e("list-entry",{attrs:{title:"Custom Domains",data:a.item.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(a.item.ports,void 0,a.item.name).toString()}}),e("list-entry",{attrs:{title:"Ports",data:a.item.ports.toString()}}),e("list-entry",{attrs:{title:"Container Ports",data:a.item.containerPorts.toString()}}),e("list-entry",{attrs:{title:"Container Data",data:a.item.containerData}}),e("list-entry",{attrs:{title:"Environment Parameters",data:a.item.enviromentParameters.length>0?a.item.enviromentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:a.item.commands.length>0?a.item.commands.toString():"none"}}),a.item.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${a.item.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${a.item.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${a.item.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${a.item.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${a.item.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${a.item.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${a.item.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${a.item.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${a.item.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${a.item.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${a.item.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${a.item.hdd} GB`}})],1)],1)],1):e("div",t._l(a.item.compose,(function(i,s){return e("b-card",{key:s},[e("b-card-title",[t._v(" Component "+t._s(i.name)+" ")]),e("list-entry",{attrs:{title:"Name",data:i.name}}),e("list-entry",{attrs:{title:"Description",data:i.description}}),e("list-entry",{attrs:{title:"Repository",data:i.repotag}}),e("list-entry",{attrs:{title:"Repository Authentication",data:i.repoauth?"Content Encrypted":"Public"}}),e("list-entry",{attrs:{title:"Custom Domains",data:i.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(i.ports,i.name,a.item.name,s).toString()}}),e("list-entry",{attrs:{title:"Ports",data:i.ports.toString()}}),e("list-entry",{attrs:{title:"Container Ports",data:i.containerPorts.toString()}}),e("list-entry",{attrs:{title:"Container Data",data:i.containerData}}),e("list-entry",{attrs:{title:"Environment Parameters",data:i.environmentParameters.length>0?i.environmentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:i.commands.length>0?i.commands.toString():"none"}}),e("list-entry",{attrs:{title:"Secret Environment Parameters",data:i.secrets?"Content Encrypted":"none"}}),i.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${i.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${i.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${i.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${i.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${i.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${i.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${i.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${i.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${i.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${i.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${i.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${i.hdd} GB`}})],1)],1)})),1),e("h4",[t._v("Locations")]),e("b-table",{staticClass:"locations-table",attrs:{striped:"",hover:"",items:t.appLocations,fields:t.appLocationFields},scopedSlots:t._u([{key:"cell(visit)",fn:function(i){return[e("b-button",{staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:function(e){t.openApp(a.item.name,i.item.ip.split(":")[0],t.getProperPort(a.item))}}},[t._v(" Visit App ")]),e("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"danger"},on:{click:function(e){t.openNodeFluxOS(i.item.ip.split(":")[0],i.item.ip.split(":")[1]?+i.item.ip.split(":")[1]-1:16126)}}},[t._v(" Visit FluxNode ")])]}}],null,!0)})],1)]}},{key:"cell(name)",fn:function(e){return[t._v(" "+t._s(t.getDisplayName(e.item.name))+" ")]}},{key:"cell(visit)",fn:function(a){return[e("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"danger"},on:{click:function(e){return t.openGlobalApp(a.item.name)}}},[t._v(" Visit ")])]}},{key:"cell(manage)",fn:function(a){return[e("b-button",{staticClass:"mr-0",attrs:{id:`manage-installed-app-${a.item.name}`,size:"sm",variant:"danger"}},[t._v(" Manage ")]),e("confirm-dialog",{attrs:{target:`manage-installed-app-${a.item.name}`,"confirm-button":"Manage App"},on:{confirm:function(e){return t.openAppManagement(a.item.name)}}})]}}],null,!1,3316055105)})],1)],1)],1)],1)],1),e("b-tab",{attrs:{title:"My Expired Apps"}},[e("b-overlay",{attrs:{show:t.tableconfig.my_expired.loading,variant:"transparent",blur:"5px"}},[e("b-card",[e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"myapps-table",attrs:{striped:"",hover:"",responsive:"",items:t.tableconfig.my_expired.apps,fields:t.tableconfig.my_expired.fields,"show-empty":"","empty-text":"None of your owed Apps are expired"},scopedSlots:t._u([{key:"cell(show_details)",fn:function(a){return[e("a",{on:{click:function(t){return a.toggleDetails()}}},[a.detailsShowing?t._e():e("v-icon",{attrs:{name:"chevron-down"}}),a.detailsShowing?e("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(a){return[e("b-card",{staticClass:"mx-2"},[e("list-entry",{attrs:{title:"Description",data:a.item.description}}),e("list-entry",{attrs:{title:"Owner",data:a.item.owner}}),e("list-entry",{attrs:{title:"Hash",data:a.item.hash}}),a.item.version>=5?e("div",[e("list-entry",{attrs:{title:"Contacts",data:JSON.stringify(a.item.contacts)}}),a.item.geolocation.length?e("div",t._l(a.item.geolocation,(function(a){return e("div",{key:a},[e("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(a)}})],1)})),0):e("div",[e("list-entry",{attrs:{title:"Continent",data:"All"}}),e("list-entry",{attrs:{title:"Country",data:"All"}}),e("list-entry",{attrs:{title:"Region",data:"All"}})],1)],1):t._e(),a.item.instances?e("list-entry",{attrs:{title:"Instances",data:a.item.instances.toString()}}):t._e(),e("list-entry",{attrs:{title:"Expires in",data:t.labelForExpire(a.item.expire,a.item.height)}}),e("list-entry",{attrs:{title:"Enterprise Nodes",data:a.item.nodes?a.item.nodes.toString():"Not scoped"}}),e("list-entry",{attrs:{title:"Static IP",data:a.item.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}}),e("h4",[t._v("Composition")]),a.item.version<=3?e("div",[e("b-card",[e("list-entry",{attrs:{title:"Repository",data:a.item.repotag}}),e("list-entry",{attrs:{title:"Custom Domains",data:a.item.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(a.item.ports,void 0,a.item.name).toString()}}),e("list-entry",{attrs:{title:"Ports",data:a.item.ports.toString()}}),e("list-entry",{attrs:{title:"Container Ports",data:a.item.containerPorts.toString()}}),e("list-entry",{attrs:{title:"Container Data",data:a.item.containerData}}),e("list-entry",{attrs:{title:"Environment Parameters",data:a.item.enviromentParameters.length>0?a.item.enviromentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:a.item.commands.length>0?a.item.commands.toString():"none"}}),a.item.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${a.item.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${a.item.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${a.item.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${a.item.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${a.item.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${a.item.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${a.item.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${a.item.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${a.item.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${a.item.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${a.item.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${a.item.hdd} GB`}})],1)],1)],1):e("div",t._l(a.item.compose,(function(i,s){return e("b-card",{key:s},[e("b-card-title",[t._v(" Component "+t._s(i.name)+" ")]),e("list-entry",{attrs:{title:"Name",data:i.name}}),e("list-entry",{attrs:{title:"Description",data:i.description}}),e("list-entry",{attrs:{title:"Repository",data:i.repotag}}),e("list-entry",{attrs:{title:"Repository Authentication",data:i.repoauth?"Content Encrypted":"Public"}}),e("list-entry",{attrs:{title:"Custom Domains",data:i.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(i.ports,i.name,a.item.name,s).toString()}}),e("list-entry",{attrs:{title:"Ports",data:i.ports.toString()}}),e("list-entry",{attrs:{title:"Container Ports",data:i.containerPorts.toString()}}),e("list-entry",{attrs:{title:"Container Data",data:i.containerData}}),e("list-entry",{attrs:{title:"Environment Parameters",data:i.environmentParameters.length>0?i.environmentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:i.commands.length>0?i.commands.toString():"none"}}),e("list-entry",{attrs:{title:"Secret Environment Parameters",data:i.secrets?"Content Encrypted":"none"}}),i.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${i.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${i.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${i.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${i.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${i.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${i.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${i.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${i.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${i.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${i.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${i.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${i.hdd} GB`}})],1)],1)})),1)],1)]}},{key:"cell(name)",fn:function(e){return[t._v(" "+t._s(t.getDisplayName(e.item.name))+" ")]}},{key:"cell(redeploy)",fn:function(a){return[e("b-button",{staticClass:"mr-0",attrs:{id:`redeploy-installed-app-${a.item.name}`,size:"sm",variant:"danger"}},[t._v(" Redeploy ")]),e("confirm-dialog",{attrs:{target:`redeploy-installed-app-${a.item.name}`,"confirm-button":"Redeploy App"},on:{confirm:function(e){return t.redeployApp(a.item)}}})]}}],null,!1,4229378380)})],1)],1)],1)],1)],1)],1),t.managedApplication?e("div",[e("management",{attrs:{"app-name":t.managedApplication,global:!0,"installed-apps":[]},on:{back:function(e){return t.clearManagedApplication()}}})],1):t._e()],1)},s=[],n=(a(70560),a(58887)),r=a(51015),o=a(16521),l=a(50725),m=a(86855),d=a(49379),c=a(26253),p=a(15193),u=a(66126),y=a(5870),b=a(20266),g=a(34547),h=a(51748),v=a(87156),f=a(4596),C=a(43672),S=a(27616);const $=a(80129),A=a(57306),P={components:{BTabs:n.M,BTab:r.L,BTable:o.h,BCol:l.l,BCard:m._,BCardTitle:d._,BRow:c.T,BButton:p.T,BOverlay:u.X,ListEntry:h.Z,ConfirmDialog:v.Z,Management:f.Z,ToastificationContent:g.Z},directives:{"b-tooltip":y.o,Ripple:b.Z},data(){return{managedApplication:"",daemonBlockCount:-1,appLocations:[],appLocationFields:[{key:"ip",label:"IP Address"},{key:"visit",label:""}],myappLocations:[],myappLocationFields:[{key:"ip",label:"IP Address"},{key:"visit",label:""}],tableconfig:{active:{apps:[],fields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description",sortable:!0},{key:"visit",label:"Visit"}],loading:!0},active_marketplace:{apps:[],fields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description",sortable:!0},{key:"visit",label:"Visit"}]},my:{apps:[],fields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description",sortable:!0},{key:"visit",label:"Visit"},{key:"manage",label:"Manage"}]},my_expired:{loading:!0,apps:[],fields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description",sortable:!0},{key:"redeploy",label:"Redeploy"}]}},allApps:[]}},computed:{myGlobalApps(){const t=localStorage.getItem("zelidauth"),e=$.parse(t);return this.allApps?this.allApps.filter((t=>t.owner===e.zelid)):[]},isLoggedIn(){const t=localStorage.getItem("zelidauth"),e=$.parse(t);return!!e.zelid}},mounted(){this.appsGetListGlobalApps(),this.getDaemonBlockCount()},methods:{minutesToString(t){let e=60*t;const a={day:86400,hour:3600,minute:60,second:1},i=[];for(const s in a){const t=Math.floor(e/a[s]);1===t&&i.push(` ${t} ${s}`),t>=2&&i.push(` ${t} ${s}s`),e%=a[s]}return i},labelForExpire(t,e){if(-1===this.daemonBlockCount)return"Not possible to calculate expiration";const a=t||22e3,i=e+a-this.daemonBlockCount;if(i<1)return"Application Expired";const s=2*i,n=this.minutesToString(s);return`${n[0]}, ${n[1]}, ${n[2]}`},async getDaemonBlockCount(){const t=await S.Z.getBlockCount();"success"===t.data.status&&(this.daemonBlockCount=t.data.data)},openAppManagement(t){this.managedApplication=t},clearManagedApplication(){this.managedApplication=""},async appsGetListGlobalApps(){this.tableconfig.active.loading=!0;const t=await C.Z.globalAppSpecifications();console.log(t),this.allApps=t.data.data,this.tableconfig.active.apps=this.allApps.filter((t=>{if(t.name.length>=14){const e=t.name.substring(t.name.length-13,t.name.length),a=Number(e);if(!Number.isNaN(a))return!1}return!0})),this.tableconfig.active_marketplace.apps=this.allApps.filter((t=>{if(t.name.length>=14){const e=t.name.substring(t.name.length-13,t.name.length),a=Number(e);if(!Number.isNaN(a))return!0}return!1})),this.tableconfig.active.loading=!1,this.loadPermanentMessages()},async loadPermanentMessages(){try{const t=localStorage.getItem("zelidauth"),e=$.parse(t);if(!e.zelid)return void(this.tableconfig.my_expired.loading=!1);const a=await C.Z.permanentMessagesOwner(e.zelid),i=[];for(const n of a.data.data){const t=i.find((t=>t.appSpecifications.name===n.appSpecifications.name));if(t){if(n.height>t.height){const t=i.findIndex((t=>t.appSpecifications.name===n.appSpecifications.name));t>-1&&(i.splice(t,1),i.push(n))}}else i.push(n)}const s=[];for(const n of i){const t=this.allApps.find((t=>t.name.toLowerCase()===n.appSpecifications.name.toLowerCase()));if(!t){const t=n.appSpecifications;s.push(t)}}this.tableconfig.my_expired.apps=s,this.tableconfig.my_expired.loading=!1}catch(t){console.log(t)}},redeployApp(t,e=!1){const a=t;e&&(a.name+="XXX",a.name+=Date.now().toString().slice(-5));const i=localStorage.getItem("zelidauth"),s=$.parse(i);s?a.owner=s.zelid:e&&(a.owner=""),this.$router.replace({name:"apps-registerapp",params:{appspecs:JSON.stringify(t)}})},copyToClipboard(t){const e=JSON.parse(t);delete e._showDetails;const a=JSON.stringify(e),i=document.createElement("textarea");i.value=a,i.setAttribute("readonly",""),i.style.position="absolute",i.style.left="-9999px",document.body.appendChild(i),i.select(),document.execCommand("copy"),document.body.removeChild(i),this.showToast("success","Application Specifications copied to Clipboard")},openApp(t,e,a){if(console.log(t,e,a),a&&e){const t=e,i=a,s=`http://${t}:${i}`;this.openSite(s)}else this.showToast("danger","Unable to open App :(, App does not have a port.")},getProperPort(t){if(t.port)return t.port;if(t.ports)return t.ports[0];for(let e=0;e{this.showToast("danger",t.message||t)}));if(console.log(e),"success"===e.data.status){const a=e.data.data,i=a[0];if(i){const e=`https://${t}.app.runonflux.io`;this.openSite(e)}else this.showToast("danger","Application is awaiting launching...")}else this.showToast("danger",e.data.data.message||e.data.data)},openSite(t){const e=window.open(t,"_blank");e.focus()},tabChanged(){this.tableconfig.active.apps.forEach((t=>{this.$set(t,"_showDetails",!1)})),this.appLocations=[]},showLocations(t,e){t.detailsShowing?t.toggleDetails():(e.forEach((t=>{this.$set(t,"_showDetails",!1)})),this.$nextTick((()=>{t.toggleDetails(),this.loadLocations(t)})))},async loadLocations(t){console.log(t),this.appLocations=[];const e=await C.Z.getAppLocation(t.item.name).catch((t=>{this.showToast("danger",t.message||t)}));if(console.log(e),"success"===e.data.status){const t=e.data.data;this.appLocations=t}},showToast(t,e,a="InfoIcon"){this.$toast({component:g.Z,props:{title:e,icon:a,variant:t}})},constructAutomaticDomains(t,e="",a,i=0){const s=a.toLowerCase(),n=e.toLowerCase();if(!n){const e=[];0===i&&e.push(`${s}.app.runonflux.io`);for(let a=0;at.code===e))||{name:"ALL"};return`Continent: ${a.name||"Unkown"}`}if(t.startsWith("b")){const e=t.slice(1),a=A.countries.find((t=>t.code===e))||{name:"ALL"};return`Country: ${a.name||"Unkown"}`}if(t.startsWith("ac")){const e=t.slice(2),a=e.split("_"),i=a[0],s=a[1],n=a[2],r=A.continents.find((t=>t.code===i))||{name:"ALL"},o=A.countries.find((t=>t.code===s))||{name:"ALL"};let l=`Allowed location: Continent: ${r.name}`;return s&&(l+=`, Country: ${o.name}`),n&&(l+=`, Region: ${n}`),l}if(t.startsWith("a!c")){const e=t.slice(3),a=e.split("_"),i=a[0],s=a[1],n=a[2],r=A.continents.find((t=>t.code===i))||{name:"ALL"},o=A.countries.find((t=>t.code===s))||{name:"ALL"};let l=`Forbidden location: Continent: ${r.name}`;return s&&(l+=`, Country: ${o.name}`),n&&(l+=`, Region: ${n}`),l}return"All locations allowed"}}},D=P;var _=a(1001),w=(0,_.Z)(D,i,s,!1,null,null,null);const k=w.exports}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/6961.js b/HomeUI/dist/js/6961.js deleted file mode 100644 index cfcdfe3ed..000000000 --- a/HomeUI/dist/js/6961.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[6961],{45873:(e,t,s)=>{s.r(t),s.d(t,{default:()=>D});var a=function(){var e=this,t=e._self._c;return t("div",[t("b-card",{attrs:{title:"FluxOS - Node Details"}},[t("list-entry",{attrs:{title:"Flux owner ZelID",data:e.userconfig.zelid}}),t("list-entry",{attrs:{title:"Status",data:e.getNodeStatusResponse.nodeStatus,variant:e.getNodeStatusResponse.class}}),t("list-entry",{attrs:{title:"Static Ip ISP/Org",data:e.staticIp?"Yes":"No"}}),""!==e.getInfoResponse.message?t("list-entry",{attrs:{title:"Daemon Version",data:e.getInfoResponse.message.version.toString()}}):e._e(),""!==e.getInfoResponse.message?t("list-entry",{attrs:{title:"Protocol Version",data:e.getInfoResponse.message.protocolversion.toString()}}):e._e(),""!==e.getInfoResponse.message?t("list-entry",{attrs:{title:"Current Blockchain Height",data:e.getInfoResponse.message.blocks.toString()}}):e._e(),e.getInfoResponse.status.length>0&&""!==e.getInfoResponse.message.errors?t("list-entry",{attrs:{title:"Error",data:e.getInfoResponse.message.errors,variant:"danger"}}):e._e()],1),"none"===e.privilege?t("b-card",[t("b-card-title",[e._v("Log In")]),t("dl",{staticClass:"row"},[t("dd",{staticClass:"col-sm-4"},[t("b-card-text",{staticClass:"text-center"},[e._v(" Please log in using ")]),t("div",{staticClass:"loginRow"},[t("a",{attrs:{href:`zel:?action=sign&message=${e.loginPhrase}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${e.callbackValue}`},on:{click:e.initiateLoginWS}},[t("img",{staticClass:"zelidLogin",attrs:{src:s(94452),alt:"Zel ID",height:"100%",width:"100%"}})]),t("a",{on:{click:e.initSSP}},[t("img",{staticClass:"sspLogin",attrs:{src:"dark"===e.skin?s(56070):s(58962),alt:"SSP",height:"100%",width:"100%"}})])]),t("div",{staticClass:"loginRow"},[t("a",{on:{click:e.initWalletConnect}},[t("img",{staticClass:"walletconnectLogin",attrs:{src:s(47622),alt:"WalletConnect",height:"100%",width:"100%"}})]),t("a",{on:{click:e.initMetamask}},[t("img",{staticClass:"metamaskLogin",attrs:{src:s(28125),alt:"Metamask",height:"100%",width:"100%"}})])])],1),t("dd",{staticClass:"col-sm-8"},[t("b-card-text",{staticClass:"text-center"},[e._v(" or sign the following message with any ZelID / SSP Wallet ID / Bitcoin / Ethereum address ")]),t("br"),t("br"),t("b-form",{staticClass:"mx-5",on:{submit:function(e){e.preventDefault()}}},[t("b-row",[t("b-col",{attrs:{cols:"12"}},[t("b-form-group",{attrs:{label:"Message","label-for":"h-message","label-cols-md":"3"}},[t("b-form-input",{attrs:{id:"h-message",placeholder:"Insert Login Phrase"},model:{value:e.loginForm.loginPhrase,callback:function(t){e.$set(e.loginForm,"loginPhrase",t)},expression:"loginForm.loginPhrase"}})],1)],1),t("b-col",{attrs:{cols:"12"}},[t("b-form-group",{attrs:{label:"Address","label-for":"h-address","label-cols-md":"3"}},[t("b-form-input",{attrs:{id:"h-address",placeholder:"Insert ZelID or Bitcoin address"},model:{value:e.loginForm.zelid,callback:function(t){e.$set(e.loginForm,"zelid",t)},expression:"loginForm.zelid"}})],1)],1),t("b-col",{attrs:{cols:"12"}},[t("b-form-group",{attrs:{label:"Signature","label-for":"h-signature","label-cols-md":"3"}},[t("b-form-input",{attrs:{id:"h-signature",placeholder:"Insert Signature"},model:{value:e.loginForm.signature,callback:function(t){e.$set(e.loginForm,"signature",t)},expression:"loginForm.signature"}})],1)],1),t("b-col",{attrs:{"offset-md":"5"}},[t("b-button",{staticClass:"mr-1",attrs:{type:"submit",variant:"primary"},on:{click:e.login}},[e._v(" Login ")])],1)],1)],1)],1)])],1):e._e()],1)},o=[],r=s(86855),n=s(64206),i=s(49379),l=s(15193),c=s(54909),u=s(50725),d=s(26253),g=s(22183),h=s(46709),p=s(20629),f=s(38511),m=s(62693),x=s(94145),w=s(34547),b=s(51748),y=s(37307),v=s(27616),P=s(34369),S=s(39055),I=s(48764)["lW"];const Z="df787edc6839c7de49d527bba9199eaa",k={projectId:Z,metadata:{name:"Flux Cloud",description:"Flux, Your Gateway to a Decentralized World",url:"https://home.runonflux.io",icons:["https://home.runonflux.io/img/logo.png"]}},R=new m.u(k),z={enableDebug:!0},O=new x.MetaMaskSDK(z);let F;const j=s(80129),C=s(58971),T={components:{BCard:r._,BCardText:n.j,BCardTitle:i._,BButton:l.T,BForm:c.e,BCol:u.l,BRow:d.T,BFormInput:g.e,BFormGroup:h.x,ListEntry:b.Z,ToastificationContent:w.Z},data(){return{getInfoResponse:{status:"",message:""},getNodeStatusResponse:{class:"text-success",status:"",data:"",nodeStatus:"Checking status..."},websocket:null,errorMessage:"",loginPhrase:"",loginForm:{zelid:"",signature:"",loginPhrase:""},staticIp:!1,signClient:null}},computed:{...(0,p.rn)("flux",["userconfig","config","privilege"]),skin(){return(0,y.Z)().skin.value},callbackValue(){const e=this.backendURL(),t=`${e}/id/verifylogin`;return encodeURI(t)}},mounted(){this.daemonGetInfo(),this.daemonWelcomeGetFluxNodeStatus(),this.getZelIdLoginPhrase(),this.getOwnerZelid(),this.getStaticIpInfo(),this.initMMSDK()},methods:{async initMMSDK(){try{await O.init(),F=O.getProvider()}catch(e){console.log(e)}},backendURL(){const{protocol:e,hostname:t,port:s}=window.location;let a="";a+=e,a+="//";const o=/[A-Za-z]/g;if(t.match(o)){const e=t.split(".");e[0]="api",a+=e.join(".")}else{if("string"===typeof t&&this.$store.commit("flux/setUserIp",t),+s>16100){const e=+s+1;this.$store.commit("flux/setFluxPort",e)}a+=t,a+=":",a+=this.config.apiPort}return C.get("backendURL")||a},async getOwnerZelid(){const e=await S.Z.getZelid(),t=e.data.data;"success"===e.data.status&&"string"===typeof t&&this.$store.commit("flux/setUserZelid",t)},async getStaticIpInfo(){const e=await S.Z.getStaticIpInfo();console.log(e),"success"===e.data.status&&(this.staticIp=e.data.data)},async daemonGetInfo(){const e=await v.Z.getInfo();this.getInfoResponse.status=e.data.status,this.getInfoResponse.message=e.data.data},async daemonWelcomeGetFluxNodeStatus(){const e=await v.Z.getFluxNodeStatus();this.getNodeStatusResponse.status=e.data.status,this.getNodeStatusResponse.data=e.data.data,this.getNodeStatusResponse.data&&("CONFIRMED"===this.getNodeStatusResponse.data.status||"CONFIRMED"===this.getNodeStatusResponse.data.location?(this.getNodeStatusResponse.nodeStatus="Flux is working correctly",this.getNodeStatusResponse.class="success"):"STARTED"===this.getNodeStatusResponse.data.status||"STARTED"===this.getNodeStatusResponse.data.location?(this.getNodeStatusResponse.nodeStatus="Flux has just been started. Flux is running with limited capabilities.",this.getNodeStatusResponse.class="warning"):(this.getNodeStatusResponse.nodeStatus="Flux is not confirmed. Flux is running with limited capabilities.",this.getNodeStatusResponse.class="danger"))},initiateLoginWS(){const e=this;let t=this.backendURL();t=t.replace("https://","wss://"),t=t.replace("http://","ws://");const s=`${t}/ws/id/${this.loginPhrase}`,a=new WebSocket(s);this.websocket=a,a.onopen=t=>{e.onOpen(t)},a.onclose=t=>{e.onClose(t)},a.onmessage=t=>{e.onMessage(t)},a.onerror=t=>{e.onError(t)}},onError(e){console.log(e)},onMessage(e){const t=j.parse(e.data);if(console.log(t),"success"===t.status&&t.data){const e={zelid:t.data.zelid,signature:t.data.signature,loginPhrase:t.data.loginPhrase};this.$store.commit("flux/setPrivilege",t.data.privilage),this.$store.commit("flux/setZelid",e.zelid),localStorage.setItem("zelidauth",j.stringify(e)),this.showToast("success",t.data.message)}console.log(t),console.log(e)},onClose(e){console.log(e)},onOpen(e){console.log(e)},showToast(e,t){this.$toast({component:w.Z,props:{title:t,icon:"BellIcon",variant:e}})},getZelIdLoginPhrase(){P.Z.loginPhrase().then((e=>{console.log(e),"error"===e.data.status?this.getEmergencyLoginPhrase():(this.loginPhrase=e.data.data,this.loginForm.loginPhrase=e.data.data)})).catch((e=>{console.log(e),this.showToast("danger",e)}))},getEmergencyLoginPhrase(){P.Z.emergencyLoginPhrase().then((e=>{console.log(e),"error"===e.data.status?this.showToast("danger",e.data.data.message):(this.loginPhrase=e.data.data,this.loginForm.loginPhrase=e.data.data)})).catch((e=>{console.log(e),this.showToast("danger",e)}))},getVariant(e){return"error"===e?"danger":"message"===e?"info":e},login(){console.log(this.loginForm),P.Z.verifyLogin(this.loginForm).then((e=>{if(console.log(e),"success"===e.data.status){const t={zelid:this.loginForm.zelid,signature:this.loginForm.signature,loginPhrase:this.loginForm.loginPhrase};this.$store.commit("flux/setPrivilege",e.data.data.privilage),this.$store.commit("flux/setZelid",t.zelid),localStorage.setItem("zelidauth",j.stringify(t)),this.showToast("success",e.data.data.message)}else this.showToast(this.getVariant(e.data.status),e.data.data.message||e.data.data)})).catch((e=>{console.log(e),this.showToast("danger",e.toString())}))},async onSessionConnect(e){console.log(e);const t=await this.signClient.request({topic:e.topic,chainId:"eip155:1",request:{method:"personal_sign",params:[this.loginPhrase,e.namespaces.eip155.accounts[0].split(":")[2]]}});console.log(t);const s={zelid:e.namespaces.eip155.accounts[0].split(":")[2],signature:t,loginPhrase:this.loginPhrase},a=await P.Z.verifyLogin(s);if(console.log(a),"success"===a.data.status){const e=s;this.$store.commit("flux/setPrivilege",a.data.data.privilage),this.$store.commit("flux/setZelid",e.zelid),localStorage.setItem("zelidauth",j.stringify(e)),this.showToast("success",a.data.data.message)}else this.showToast(this.getVariant(a.data.status),a.data.data.message||a.data.data)},onSessionUpdate(e){console.log(e)},async initWalletConnect(){const e=this;try{const t=await f.ZP.init(k);this.signClient=t,t.on("session_event",(({event:e})=>{console.log(e)})),t.on("session_update",(({topic:s,params:a})=>{const{namespaces:o}=a,r=t.session.get(s),n={...r,namespaces:o};e.onSessionUpdate(n)})),t.on("session_delete",(()=>{}));const{uri:s,approval:a}=await t.connect({requiredNamespaces:{eip155:{methods:["personal_sign"],chains:["eip155:1"],events:["chainChanged","accountsChanged"]}}});if(s){R.openModal({uri:s});const e=await a();this.onSessionConnect(e),R.closeModal()}}catch(t){console.error(t),this.showToast("danger",t.message)}},async siwe(e,t){try{const s=`0x${I.from(e,"utf8").toString("hex")}`,a=await F.request({method:"personal_sign",params:[s,t]});console.log(a);const o={zelid:t,signature:a,loginPhrase:this.loginPhrase},r=await P.Z.verifyLogin(o);if(console.log(r),"success"===r.data.status){const e=o;this.$store.commit("flux/setPrivilege",r.data.data.privilage),this.$store.commit("flux/setZelid",e.zelid),localStorage.setItem("zelidauth",j.stringify(e)),this.showToast("success",r.data.data.message)}else this.showToast(this.getVariant(r.data.status),r.data.data.message||r.data.data)}catch(s){console.error(s),this.showToast("danger",s.message)}},async initMetamask(){try{if(!F)return void this.showToast("danger","Metamask not detected");let e;if(F&&!F.selectedAddress){const t=await F.request({method:"eth_requestAccounts",params:[]});console.log(t),e=t[0]}else e=F.selectedAddress;this.siwe(this.loginPhrase,e)}catch(e){this.showToast("danger",e.message)}},async initSSP(){try{if(!window.ssp)return void this.showToast("danger","SSP Wallet not installed");const e=await window.ssp.request("sspwid_sign_message",{message:this.loginPhrase});if("ERROR"===e.status)throw new Error(e.data||e.result);const t={zelid:e.address,signature:e.signature,loginPhrase:this.loginPhrase},s=await P.Z.verifyLogin(t);if(console.log(s),"success"===s.data.status){const e=t;this.$store.commit("flux/setPrivilege",s.data.data.privilage),this.$store.commit("flux/setZelid",e.zelid),localStorage.setItem("zelidauth",j.stringify(e)),this.showToast("success",s.data.data.message)}else this.showToast(this.getVariant(s.data.status),s.data.data.message||s.data.data)}catch(e){this.showToast("danger",e.message)}}}},$=T;var E=s(1001),M=(0,E.Z)($,a,o,!1,null,null,null);const D=M.exports},39055:(e,t,s)=>{s.d(t,{Z:()=>o});var a=s(80914);const o={softUpdateFlux(e){return(0,a.Z)().get("/flux/softupdateflux",{headers:{zelidauth:e}})},softUpdateInstallFlux(e){return(0,a.Z)().get("/flux/softupdatefluxinstall",{headers:{zelidauth:e}})},updateFlux(e){return(0,a.Z)().get("/flux/updateflux",{headers:{zelidauth:e}})},hardUpdateFlux(e){return(0,a.Z)().get("/flux/hardupdateflux",{headers:{zelidauth:e}})},rebuildHome(e){return(0,a.Z)().get("/flux/rebuildhome",{headers:{zelidauth:e}})},updateDaemon(e){return(0,a.Z)().get("/flux/updatedaemon",{headers:{zelidauth:e}})},reindexDaemon(e){return(0,a.Z)().get("/flux/reindexdaemon",{headers:{zelidauth:e}})},updateBenchmark(e){return(0,a.Z)().get("/flux/updatebenchmark",{headers:{zelidauth:e}})},getFluxVersion(){return(0,a.Z)().get("/flux/version")},broadcastMessage(e,t){const s=t,o={headers:{zelidauth:e}};return(0,a.Z)().post("/flux/broadcastmessage",JSON.stringify(s),o)},connectedPeers(){return(0,a.Z)().get(`/flux/connectedpeers?timestamp=${Date.now()}`)},connectedPeersInfo(){return(0,a.Z)().get(`/flux/connectedpeersinfo?timestamp=${Date.now()}`)},incomingConnections(){return(0,a.Z)().get(`/flux/incomingconnections?timestamp=${Date.now()}`)},incomingConnectionsInfo(){return(0,a.Z)().get(`/flux/incomingconnectionsinfo?timestamp=${Date.now()}`)},addPeer(e,t){return(0,a.Z)().get(`/flux/addpeer/${t}`,{headers:{zelidauth:e}})},removePeer(e,t){return(0,a.Z)().get(`/flux/removepeer/${t}`,{headers:{zelidauth:e}})},removeIncomingPeer(e,t){return(0,a.Z)().get(`/flux/removeincomingpeer/${t}`,{headers:{zelidauth:e}})},adjustCruxID(e,t){return(0,a.Z)().get(`/flux/adjustcruxid/${t}`,{headers:{zelidauth:e}})},adjustKadena(e,t,s){return(0,a.Z)().get(`/flux/adjustkadena/${t}/${s}`,{headers:{zelidauth:e}})},adjustRouterIP(e,t){return(0,a.Z)().get(`/flux/adjustrouterip/${t}`,{headers:{zelidauth:e}})},adjustBlockedPorts(e,t){const s={blockedPorts:t},o={headers:{zelidauth:e}};return(0,a.Z)().post("/flux/adjustblockedports",JSON.stringify(s),o)},adjustAPIPort(e,t){return(0,a.Z)().get(`/flux/adjustapiport/${t}`,{headers:{zelidauth:e}})},adjustBlockedRepositories(e,t){const s={blockedRepositories:t},o={headers:{zelidauth:e}};return(0,a.Z)().post("/flux/adjustblockedrepositories",JSON.stringify(s),o)},getCruxID(){const e={headers:{"x-apicache-bypass":!0}};return(0,a.Z)().get("/flux/cruxid",e)},getKadenaAccount(){const e={headers:{"x-apicache-bypass":!0}};return(0,a.Z)().get("/flux/kadena",e)},getRouterIP(){const e={headers:{"x-apicache-bypass":!0}};return(0,a.Z)().get("/flux/routerip",e)},getBlockedPorts(){const e={headers:{"x-apicache-bypass":!0}};return(0,a.Z)().get("/flux/blockedports",e)},getAPIPort(){const e={headers:{"x-apicache-bypass":!0}};return(0,a.Z)().get("/flux/apiport",e)},getBlockedRepositories(){const e={headers:{"x-apicache-bypass":!0}};return(0,a.Z)().get("/flux/blockedrepositories",e)},getMarketPlaceURL(){return(0,a.Z)().get("/flux/marketplaceurl")},getZelid(){const e={headers:{"x-apicache-bypass":!0}};return(0,a.Z)().get("/flux/zelid",e)},getStaticIpInfo(){return(0,a.Z)().get("/flux/staticip")},restartFluxOS(e){const t={headers:{zelidauth:e,"x-apicache-bypass":!0}};return(0,a.Z)().get("/flux/restart",t)},tailFluxLog(e,t){return(0,a.Z)().get(`/flux/tail${e}log`,{headers:{zelidauth:t}})},justAPI(){return(0,a.Z)()},cancelToken(){return a.S}}},84328:(e,t,s)=>{var a=s(65290),o=s(27578),r=s(6310),n=function(e){return function(t,s,n){var i,l=a(t),c=r(l),u=o(n,c);if(e&&s!==s){while(c>u)if(i=l[u++],i!==i)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===s)return e||u||0;return!e&&-1}};e.exports={includes:n(!0),indexOf:n(!1)}},5649:(e,t,s)=>{var a=s(67697),o=s(92297),r=TypeError,n=Object.getOwnPropertyDescriptor,i=a&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=i?function(e,t){if(o(e)&&!n(e,"length").writable)throw new r("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},8758:(e,t,s)=>{var a=s(36812),o=s(19152),r=s(82474),n=s(72560);e.exports=function(e,t,s){for(var i=o(t),l=n.f,c=r.f,u=0;u{var t=TypeError,s=9007199254740991;e.exports=function(e){if(e>s)throw t("Maximum allowed index exceeded");return e}},72739:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},79989:(e,t,s)=>{var a=s(19037),o=s(82474).f,r=s(75773),n=s(11880),i=s(95014),l=s(8758),c=s(35266);e.exports=function(e,t){var s,u,d,g,h,p,f=e.target,m=e.global,x=e.stat;if(u=m?a:x?a[f]||i(f,{}):(a[f]||{}).prototype,u)for(d in t){if(h=t[d],e.dontCallGetSet?(p=o(u,d),g=p&&p.value):g=u[d],s=c(m?d:f+(x?".":"#")+d,e.forced),!s&&void 0!==g){if(typeof h==typeof g)continue;l(h,g)}(e.sham||g&&g.sham)&&r(h,"sham",!0),n(u,d,h,e)}}},94413:(e,t,s)=>{var a=s(68844),o=s(3689),r=s(6648),n=Object,i=a("".split);e.exports=o((function(){return!n("z").propertyIsEnumerable(0)}))?function(e){return"String"===r(e)?i(e,""):n(e)}:n},92297:(e,t,s)=>{var a=s(6648);e.exports=Array.isArray||function(e){return"Array"===a(e)}},35266:(e,t,s)=>{var a=s(3689),o=s(69985),r=/#|\.prototype\./,n=function(e,t){var s=l[i(e)];return s===u||s!==c&&(o(t)?a(t):!!t)},i=n.normalize=function(e){return String(e).replace(r,".").toLowerCase()},l=n.data={},c=n.NATIVE="N",u=n.POLYFILL="P";e.exports=n},6310:(e,t,s)=>{var a=s(43126);e.exports=function(e){return a(e.length)}},58828:e=>{var t=Math.ceil,s=Math.floor;e.exports=Math.trunc||function(e){var a=+e;return(a>0?s:t)(a)}},82474:(e,t,s)=>{var a=s(67697),o=s(22615),r=s(49556),n=s(75684),i=s(65290),l=s(18360),c=s(36812),u=s(68506),d=Object.getOwnPropertyDescriptor;t.f=a?d:function(e,t){if(e=i(e),t=l(t),u)try{return d(e,t)}catch(s){}if(c(e,t))return n(!o(r.f,e,t),e[t])}},72741:(e,t,s)=>{var a=s(54948),o=s(72739),r=o.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return a(e,r)}},7518:(e,t)=>{t.f=Object.getOwnPropertySymbols},54948:(e,t,s)=>{var a=s(68844),o=s(36812),r=s(65290),n=s(84328).indexOf,i=s(57248),l=a([].push);e.exports=function(e,t){var s,a=r(e),c=0,u=[];for(s in a)!o(i,s)&&o(a,s)&&l(u,s);while(t.length>c)o(a,s=t[c++])&&(~n(u,s)||l(u,s));return u}},49556:(e,t)=>{var s={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,o=a&&!s.call({1:2},1);t.f=o?function(e){var t=a(this,e);return!!t&&t.enumerable}:s},19152:(e,t,s)=>{var a=s(76058),o=s(68844),r=s(72741),n=s(7518),i=s(85027),l=o([].concat);e.exports=a("Reflect","ownKeys")||function(e){var t=r.f(i(e)),s=n.f;return s?l(t,s(e)):t}},27578:(e,t,s)=>{var a=s(68700),o=Math.max,r=Math.min;e.exports=function(e,t){var s=a(e);return s<0?o(s+t,0):r(s,t)}},65290:(e,t,s)=>{var a=s(94413),o=s(74684);e.exports=function(e){return a(o(e))}},68700:(e,t,s)=>{var a=s(58828);e.exports=function(e){var t=+e;return t!==t||0===t?0:a(t)}},43126:(e,t,s)=>{var a=s(68700),o=Math.min;e.exports=function(e){return e>0?o(a(e),9007199254740991):0}},70560:(e,t,s)=>{var a=s(79989),o=s(90690),r=s(6310),n=s(5649),i=s(55565),l=s(3689),c=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},d=c||!u();a({target:"Array",proto:!0,arity:1,forced:d},{push:function(e){var t=o(this),s=r(t),a=arguments.length;i(s+a);for(var l=0;l{s.d(t,{sj:()=>p,CO:()=>m,Ld:()=>f});Symbol();const a=Symbol();const o=Object.getPrototypeOf,r=new WeakMap,n=e=>e&&(r.has(e)?r.get(e):o(e)===Object.prototype||o(e)===Array.prototype),i=e=>n(e)&&e[a]||null,l=(e,t=!0)=>{r.set(e,t)},c=e=>"object"===typeof e&&null!==e,u=new WeakMap,d=new WeakSet,g=(e=Object.is,t=((e,t)=>new Proxy(e,t)),s=(e=>c(e)&&!d.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer)),a=(e=>{switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e}}),o=new WeakMap,r=((e,t,s=a)=>{const n=o.get(e);if((null==n?void 0:n[0])===t)return n[1];const i=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return l(i,!0),o.set(e,[t,i]),Reflect.ownKeys(e).forEach((t=>{if(Object.getOwnPropertyDescriptor(i,t))return;const a=Reflect.get(e,t),o={value:a,enumerable:!0,configurable:!0};if(d.has(a))l(a,!1);else if(a instanceof Promise)delete o.value,o.get=()=>s(a);else if(u.has(a)){const[e,t]=u.get(a);o.value=r(e,t(),s)}Object.defineProperty(i,t,o)})),Object.preventExtensions(i)}),n=new WeakMap,g=[1,1],h=(a=>{if(!c(a))throw new Error("object required");const o=n.get(a);if(o)return o;let l=g[0];const p=new Set,f=(e,t=++g[0])=>{l!==t&&(l=t,p.forEach((s=>s(e,t))))};let m=g[1];const x=(e=++g[1])=>(m===e||p.size||(m=e,b.forEach((([t])=>{const s=t[1](e);s>l&&(l=s)}))),l),w=e=>(t,s)=>{const a=[...t];a[1]=[e,...a[1]],f(a,s)},b=new Map,y=(e,t)=>{if(b.has(e))throw new Error("prop listener already exists");if(p.size){const s=t[3](w(e));b.set(e,[t,s])}else b.set(e,[t])},v=e=>{var t;const s=b.get(e);s&&(b.delete(e),null==(t=s[1])||t.call(s))},P=e=>{p.add(e),1===p.size&&b.forEach((([e,t],s)=>{if(t)throw new Error("remove already exists");const a=e[3](w(s));b.set(s,[e,a])}));const t=()=>{p.delete(e),0===p.size&&b.forEach((([e,t],s)=>{t&&(t(),b.set(s,[e]))}))};return t},S=Array.isArray(a)?[]:Object.create(Object.getPrototypeOf(a)),I={deleteProperty(e,t){const s=Reflect.get(e,t);v(t);const a=Reflect.deleteProperty(e,t);return a&&f(["delete",[t],s]),a},set(t,a,o,r){const l=Reflect.has(t,a),g=Reflect.get(t,a,r);if(l&&(e(g,o)||n.has(o)&&e(g,n.get(o))))return!0;v(a),c(o)&&(o=i(o)||o);let p=o;if(o instanceof Promise)o.then((e=>{o.status="fulfilled",o.value=e,f(["resolve",[a],e])})).catch((e=>{o.status="rejected",o.reason=e,f(["reject",[a],e])}));else{!u.has(o)&&s(o)&&(p=h(o));const e=!d.has(p)&&u.get(p);e&&y(a,e)}return Reflect.set(t,a,p,r),f(["set",[a],o,g]),!0}},Z=t(S,I);n.set(a,Z);const k=[S,x,r,P];return u.set(Z,k),Reflect.ownKeys(a).forEach((e=>{const t=Object.getOwnPropertyDescriptor(a,e);"value"in t&&(Z[e]=a[e],delete t.value,delete t.writable),Object.defineProperty(S,e,t)})),Z}))=>[h,u,d,e,t,s,a,o,r,n,g],[h]=g();function p(e={}){return h(e)}function f(e,t,s){const a=u.get(e);let o;a||console.warn("Please use proxy object");const r=[],n=a[3];let i=!1;const l=e=>{r.push(e),s?t(r.splice(0)):o||(o=Promise.resolve().then((()=>{o=void 0,i&&t(r.splice(0))})))},c=n(l);return i=!0,()=>{i=!1,c()}}function m(e,t){const s=u.get(e);s||console.warn("Please use proxy object");const[a,o,r]=s;return r(a,o(),t)}}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/6981.js b/HomeUI/dist/js/6981.js new file mode 100644 index 000000000..33ec08ff2 --- /dev/null +++ b/HomeUI/dist/js/6981.js @@ -0,0 +1 @@ +(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[6981],{86981:(t,e,s)=>{"use strict";s.d(e,{Z:()=>us});var a={};s.r(a),s.d(a,{Decoder:()=>De,Encoder:()=>Ie,PacketType:()=>Fe,protocol:()=>Ee});var i=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mr-2",attrs:{variant:"outline-primary",pill:""},on:{click:t.goBackToApps}},[e("v-icon",{attrs:{name:"chevron-left"}}),t._v(" Back ")],1),t._v(" "+t._s(t.applicationManagementAndStatus)+" ")],1),e("b-tabs",{staticClass:"mt-2",attrs:{pills:"",vertical:t.windowWidth>860,lazy:""},on:{input:e=>t.updateManagementTab(e)}},[t.windowWidth>860?e("b-tab",{attrs:{title:"Local App Management",disabled:""}}):t._e(),e("b-tab",{attrs:{active:"",title:"Specifications"}},[e("div",{staticClass:"adjustMaxWidth"},[e("b-card",{attrs:{title:"Local application management"}},[e("b-col",{staticClass:"my-1"},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Select IP to run local application management:")]),e("b-form-select",{staticStyle:{width:"200px"},attrs:{options:null},model:{value:t.selectedIp,callback:function(e){t.selectedIp=e},expression:"selectedIp"}},t._l(t.instances.data,(function(s){return e("b-form-select-option",{key:s.ip,attrs:{value:s.ip}},[t._v(" "+t._s(s.ip)+" ")])})),1)],1)],1)],1)],1),e("div",{staticClass:"adjustMaxWidth"},[e("b-card",[t.callBResponse.data&&t.callResponse.data?e("div",[t.callBResponse.data.hash!==t.callResponse.data.hash?e("div",[e("h1",[t._v("Locally running application does not match global specifications! Update needed")]),e("br"),e("br")]):e("div",[t._v(" Application is synced with Global network "),e("br"),e("br")])]):t._e(),e("h2",[t._v("Installed Specifications")]),t.callResponse.data?e("div",{staticStyle:{"text-align":"left"}},[e("b-card",{},[e("list-entry",{attrs:{title:"Description",data:t.callResponse.data.name}}),e("list-entry",{attrs:{title:"Description",data:t.callResponse.data.description}}),e("list-entry",{attrs:{title:"Owner",data:t.callResponse.data.owner}}),e("list-entry",{attrs:{title:"Hash",data:t.callResponse.data.hash}}),t.callResponse.data.version>=5?e("div",[t.callResponse.data.geolocation.length?e("div",t._l(t.callResponse.data.geolocation,(function(s){return e("div",{key:s},[e("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(s)}})],1)})),0):e("div",[e("list-entry",{attrs:{title:"Continent",data:"All"}}),e("list-entry",{attrs:{title:"Country",data:"All"}}),e("list-entry",{attrs:{title:"Region",data:"All"}})],1)]):t._e(),t.callResponse.data.instances?e("list-entry",{attrs:{title:"Instances",data:t.callResponse.data.instances.toString()}}):t._e(),e("list-entry",{attrs:{title:"Specifications version",number:t.callResponse.data.version}}),e("list-entry",{attrs:{title:"Registered on Blockheight",number:t.callResponse.data.height}}),t.callResponse.data.hash&&64===t.callResponse.data.hash.length?e("list-entry",{attrs:{title:"Expires on Blockheight",number:t.callResponse.data.height+(t.callResponse.data.expire||22e3)}}):t._e(),e("list-entry",{attrs:{title:"Expires in",data:t.getNewExpireLabel}}),e("list-entry",{attrs:{title:"Enterprise Nodes",data:t.callResponse.data.nodes?t.callResponse.data.nodes.toString():"Not scoped"}}),e("list-entry",{attrs:{title:"Static IP",data:t.callResponse.data.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}}),e("h4",[t._v("Composition")]),t.callResponse.data.version<=3?e("div",[e("b-card",[e("list-entry",{attrs:{title:"Repository",data:t.callResponse.data.repotag}}),e("list-entry",{attrs:{title:"Custom Domains",data:t.callResponse.data.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(t.callResponse.data.ports,t.callResponse.data.name).toString()||"none"}}),e("list-entry",{attrs:{title:"Ports",data:t.callResponse.data.ports.toString()||"none"}}),e("list-entry",{attrs:{title:"Container Ports",data:t.callResponse.data.containerPorts.toString()||"none"}}),e("list-entry",{attrs:{title:"Container Data",data:t.callResponse.data.containerData.toString()||"none"}}),e("list-entry",{attrs:{title:"Environment Parameters",data:t.callResponse.data.enviromentParameters.length>0?t.callResponse.data.enviromentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:t.callResponse.data.commands.length>0?t.callResponse.data.commands.toString():"none"}}),t.callResponse.data.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${t.callResponse.data.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${t.callResponse.data.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${t.callResponse.data.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${t.callResponse.data.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${t.callResponse.data.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${t.callResponse.data.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${t.callResponse.data.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${t.callResponse.data.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${t.callResponse.data.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${t.callResponse.data.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${t.callResponse.data.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${t.callResponse.data.hdd} GB`}})],1)],1)],1):e("div",t._l(t.callResponse.data.compose,(function(s,a){return e("b-card",{key:a},[e("b-card-title",[t._v(" Component "+t._s(s.name)+" ")]),e("list-entry",{attrs:{title:"Name",data:s.name}}),e("list-entry",{attrs:{title:"Description",data:s.description}}),e("list-entry",{attrs:{title:"Repository",data:s.repotag}}),e("list-entry",{attrs:{title:"Repository Authentication",data:s.repoauth?"Content Encrypted":"Public"}}),e("list-entry",{attrs:{title:"Custom Domains",data:s.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(s.ports,t.callResponse.data.name,a).toString()||"none"}}),e("list-entry",{attrs:{title:"Ports",data:s.ports.toString()||"none"}}),e("list-entry",{attrs:{title:"Container Ports",data:s.containerPorts.toString()||"none"}}),e("list-entry",{attrs:{title:"Container Data",data:s.containerData}}),e("list-entry",{attrs:{title:"Environment Parameters",data:s.environmentParameters.length>0?s.environmentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:s.commands.length>0?s.commands.toString():"none"}}),e("list-entry",{attrs:{title:"Secret Environment Parameters",data:s.secrets?"Content Encrypted":"none"}}),s.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${s.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${s.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${s.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${s.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${s.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${s.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${s.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${s.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${s.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${s.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${s.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${s.hdd} GB`}})],1)],1)})),1)],1)],1):e("div",[t._v(" Local Specifications loading... ")]),e("h2",{staticClass:"mt-2"},[t._v(" Global Specifications ")]),t.callBResponse.data?e("div",{staticStyle:{"text-align":"left"}},[e("b-card",{},[e("list-entry",{attrs:{title:"Description",data:t.callBResponse.data.name}}),e("list-entry",{attrs:{title:"Description",data:t.callBResponse.data.description}}),e("list-entry",{attrs:{title:"Owner",data:t.callBResponse.data.owner}}),e("list-entry",{attrs:{title:"Hash",data:t.callBResponse.data.hash}}),t.callBResponse.data.version>=5?e("div",[t.callBResponse.data.geolocation.length?e("div",t._l(t.callBResponse.data.geolocation,(function(s){return e("div",{key:s},[e("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(s)}})],1)})),0):e("div",[e("list-entry",{attrs:{title:"Continent",data:"All"}}),e("list-entry",{attrs:{title:"Country",data:"All"}}),e("list-entry",{attrs:{title:"Region",data:"All"}})],1)]):t._e(),t.callBResponse.data.instances?e("list-entry",{attrs:{title:"Instances",data:t.callBResponse.data.instances.toString()}}):t._e(),e("list-entry",{attrs:{title:"Specifications version",number:t.callBResponse.data.version}}),e("list-entry",{attrs:{title:"Registered on Blockheight",number:t.callBResponse.data.height}}),t.callBResponse.data.hash&&64===t.callBResponse.data.hash.length?e("list-entry",{attrs:{title:"Expires on Blockheight",number:t.callBResponse.data.height+(t.callBResponse.data.expire||22e3)}}):t._e(),e("list-entry",{attrs:{title:"Expires in",data:t.getNewExpireLabel}}),e("list-entry",{attrs:{title:"Enterprise Nodes",data:t.callBResponse.data.nodes?t.callBResponse.data.nodes.toString():"Not scoped"}}),e("list-entry",{attrs:{title:"Static IP",data:t.callBResponse.data.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}}),e("h4",[t._v("Composition")]),t.callBResponse.data.version<=3?e("div",[e("b-card",[e("list-entry",{attrs:{title:"Repository",data:t.callBResponse.data.repotag}}),e("list-entry",{attrs:{title:"Custom Domains",data:t.callBResponse.data.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomainsGlobal.toString()||"none"}}),e("list-entry",{attrs:{title:"Ports",data:t.callBResponse.data.ports.toString()||"none"}}),e("list-entry",{attrs:{title:"Container Ports",data:t.callBResponse.data.containerPorts.toString()||"none"}}),e("list-entry",{attrs:{title:"Container Data",data:t.callBResponse.data.containerData}}),e("list-entry",{attrs:{title:"Environment Parameters",data:t.callBResponse.data.enviromentParameters.length>0?t.callBResponse.data.enviromentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:t.callBResponse.data.commands.length>0?t.callBResponse.data.commands.toString():"none"}}),t.callBResponse.data.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${t.callBResponse.data.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${t.callBResponse.data.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${t.callBResponse.data.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${t.callBResponse.data.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${t.callBResponse.data.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${t.callBResponse.data.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${t.callBResponse.data.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${t.callBResponse.data.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${t.callBResponse.data.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${t.callBResponse.data.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${t.callBResponse.data.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${t.callBResponse.data.hdd} GB`}})],1)],1)],1):e("div",t._l(t.callBResponse.data.compose,(function(s,a){return e("b-card",{key:a},[e("b-card-title",[t._v(" Component "+t._s(s.name)+" ")]),e("list-entry",{attrs:{title:"Name",data:s.name}}),e("list-entry",{attrs:{title:"Description",data:s.description}}),e("list-entry",{attrs:{title:"Repository",data:s.repotag}}),e("list-entry",{attrs:{title:"Repository Authentication",data:s.repoauth?"Content Encrypted":"Public"}}),e("list-entry",{attrs:{title:"Custom Domains",data:s.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(s.ports,t.callBResponse.data.name,a).toString()||"none"}}),e("list-entry",{attrs:{title:"Ports",data:s.ports.toString()||"none"}}),e("list-entry",{attrs:{title:"Container Ports",data:s.containerPorts.toString()||"none"}}),e("list-entry",{attrs:{title:"Container Data",data:s.containerData}}),e("list-entry",{attrs:{title:"Environment Parameters",data:s.environmentParameters.length>0?s.environmentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:s.commands.length>0?s.commands.toString():"none"}}),e("list-entry",{attrs:{title:"Secret Environment Parameters",data:s.secrets?"Content Encrypted":"none"}}),s.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${s.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${s.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${s.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${s.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${s.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${s.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${s.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${s.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${s.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${s.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${s.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${s.hdd} GB`}})],1)],1)})),1)],1)],1):"error"===t.callBResponse.status?e("div",[t._v(" Global specifications not found! ")]):e("div",[t._v(" Global Specifications loading... ")])])],1)]),e("b-tab",{attrs:{title:"Information"}},[e("h3",[t._v("Application: "+t._s(t.appSpecification.name))]),t.appSpecification.version>=4?e("div",{staticClass:"adjustMaxWidth"},t._l(t.callResponse.data,(function(s,a){return e("div",{key:a},[e("h4",[t._v("Component: "+t._s(s.name))]),s.callData?e("div",[e("json-viewer",{attrs:{value:s.callData,"expand-depth":5,copyable:"",boxed:"",theme:"jv-dark"}})],1):t._e()])})),0):e("div",{staticClass:"adjustMaxWidth"},[t.callResponse.data&&t.callResponse.data[0]?e("div",[e("json-viewer",{attrs:{value:t.callResponse.data[0].callData,"expand-depth":5,copyable:"",boxed:"",theme:"jv-dark"}})],1):t._e()])]),e("b-tab",{attrs:{title:"Resources"}},[e("h3",[t._v("Application: "+t._s(t.appSpecification.name))]),t.commandExecuting?e("div",{staticClass:"adjustMaxWidth"},[e("v-icon",{staticClass:"spin-icon",attrs:{name:"spinner"}})],1):t._e(),t.appSpecification.version>=4?e("div",{staticClass:"adjustMaxWidth"},t._l(t.callResponse.data,(function(s,a){return e("div",{key:a},[e("h4",[t._v("Component: "+t._s(s.name))]),s.callData?e("div",[e("json-viewer",{attrs:{value:s.callData,"expand-depth":5,copyable:"",boxed:"",theme:"jv-dark"}})],1):t._e()])})),0):e("div",{staticClass:"adjustMaxWidth"},[t.callResponse.data&&t.callResponse.data[0]?e("div",[e("json-viewer",{attrs:{value:t.callResponse.data[0].callData,"expand-depth":5,copyable:"",boxed:"",theme:"jv-dark"}})],1):t._e()])]),e("b-tab",{attrs:{title:"Monitoring"}},[e("h3",[t._v("History Statistics 1 hour")]),t.appSpecification.version>=4?e("div",{staticClass:"adjustMaxWidth"},t._l(t.callResponse.data,(function(s,a){return e("div",{key:a},[e("h4",[t._v("Component: "+t._s(s.name))]),s.callData?e("b-table",{staticClass:"stats-table",attrs:{items:t.generateStatsTableItems(s.callData.lastHour,t.appSpecification.compose.find((t=>t.name===s.name))),fields:t.statsFields}}):e("div",[t._v(" Loading... ")])],1)})),0):e("div",{staticClass:"adjustMaxWidth"},[t.callResponse.data&&t.callResponse.data[0]?e("b-table",{staticClass:"stats-table",attrs:{items:t.generateStatsTableItems(t.callResponse.data[0].callData.lastHour,t.appSpecification),fields:t.statsFields}}):e("div",[t._v(" Loading... ")])],1),e("br"),e("br"),e("h3",[t._v("History Statistics 24 hours")]),t.appSpecification.version>=4?e("div",{staticClass:"adjustMaxWidth"},t._l(t.callResponse.data,(function(s,a){return e("div",{key:a},[e("h4",[t._v("Component: "+t._s(s.name))]),s.callData?e("b-table",{staticClass:"stats-table",attrs:{items:t.generateStatsTableItems(s.callData.lastDay,t.appSpecification.compose.find((t=>t.name===s.name))),fields:t.statsFields}}):e("div",[t._v(" Loading... ")])],1)})),0):e("div",{staticClass:"adjustMaxWidth"},[t.callResponse.data&&t.callResponse.data[0]?e("b-table",{staticClass:"stats-table",attrs:{items:t.generateStatsTableItems(t.callResponse.data[0].callData.lastDay,t.appSpecification),fields:t.statsFields}}):e("div",[t._v(" Loading... ")])],1)]),e("b-tab",{attrs:{title:"File Changes"}},[e("h3",[t._v("Application: "+t._s(t.appSpecification.name))]),t.commandExecuting?e("div",{staticClass:"adjustMaxWidth"},[e("v-icon",{staticClass:"spin-icon",attrs:{name:"spinner"}})],1):t._e(),t.appSpecification.version>=4?e("div",{staticClass:"adjustMaxWidth"},t._l(t.callResponse.data,(function(s,a){return e("div",{key:a},[e("h4",[t._v("Component: "+t._s(s.name))]),s.callData?e("div",[e("json-viewer",{attrs:{value:s.callData,"expand-depth":5,copyable:"",boxed:"",theme:"jv-dark"}})],1):t._e()])})),0):e("div",{staticClass:"adjustMaxWidth"},[t.callResponse.data&&t.callResponse.data[0]?e("div",[e("json-viewer",{attrs:{value:t.callResponse.data[0].callData,"expand-depth":5,copyable:"",boxed:"",theme:"jv-dark"}})],1):t._e()])]),e("b-tab",{attrs:{title:"Processes"}},[e("h3",[t._v("Application: "+t._s(t.appSpecification.name))]),t.commandExecuting?e("div",{staticClass:"adjustMaxWidth"},[e("v-icon",{staticClass:"spin-icon",attrs:{name:"spinner"}})],1):t._e(),t.appSpecification.version>=4?e("div",{staticClass:"adjustMaxWidth"},t._l(t.callResponse.data,(function(s,a){return e("div",{key:a},[e("h4",[t._v("Component: "+t._s(s.name))]),s.callData?e("div",[e("json-viewer",{attrs:{value:s.callData,"expand-depth":5,copyable:"",boxed:"",theme:"jv-dark"}})],1):t._e()])})),0):e("div",{staticClass:"adjustMaxWidth"},[t.callResponse.data&&t.callResponse.data[0]?e("div",[e("json-viewer",{attrs:{value:t.callResponse.data[0].callData,"expand-depth":5,copyable:"",boxed:"",theme:"jv-dark"}})],1):t._e()])]),e("b-tab",{attrs:{title:"Log File"}},[e("h3",[t._v("Application: "+t._s(t.appSpecification.name))]),t.appSpecification.version>=4?e("div",{staticClass:"adjustMaxWidth"},t._l(t.callResponse.data,(function(s,a){return e("div",{key:a},[e("h4",[t._v("Component: "+t._s(s.name))]),e("div",{staticClass:"text-center"},[e("h6",[t._v(" Click the 'Download Log File' button to download the Log file from your Application debug file. This may take a few minutes depending on file size. ")]),e("div",[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mt-2",attrs:{id:`start-download-log-${s.name}_${t.appSpecification.name}`,variant:"outline-primary",size:"md"}},[t._v(" Download Debug File ")]),e("confirm-dialog",{attrs:{target:`start-download-log-${s.name}_${t.appSpecification.name}`,"confirm-button":"Download Log"},on:{confirm:function(e){return t.downloadApplicationLog(`${s.name}_${t.appSpecification.name}`)}}})],1),e("div",[t.total&&t.downloaded?e("b-card-text",[t._v(" "+t._s(`${(t.downloaded/1e6).toFixed(2)} / ${(t.total/1e6).toFixed(2)}`)+" MB - "+t._s(`${(t.downloaded/t.total*100).toFixed(2)}%`)+" ")]):t._e(),e("h6",{staticClass:"mb-1 mt-2"},[t._v(" Last 100 lines of the log file ")]),s.callData?e("b-form-textarea",{staticClass:"mt-1",staticStyle:{"background-color":"black",color:"white",padding:"20px","font-family":"monospace","margin-bottom":"25px"},attrs:{plaintext:"","no-resize":"",rows:"15",value:t.decodeAsciiResponse(s.callData)}}):t._e()],1)])])})),0):e("div",{staticClass:"adjustMaxWidth"},[e("div",{staticClass:"text-center"},[e("h6",[t._v(" Click the 'Download Log File' button to download the Log file from your Application debug file. This may take a few minutes depending on file size. ")]),e("div",[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mt-2",attrs:{id:"start-download-log",variant:"outline-primary",size:"md"}},[t._v(" Download Debug File ")]),e("confirm-dialog",{attrs:{target:"start-download-log","confirm-button":"Download Log"},on:{confirm:function(e){return t.downloadApplicationLog(t.appSpecification.name)}}})],1),e("div",[t.total&&t.downloaded?e("b-card-text",[t._v(" "+t._s(`${(t.downloaded/1e6).toFixed(2)} / ${(t.total/1e6).toFixed(2)}`)+" MB - "+t._s(`${(t.downloaded/t.total*100).toFixed(2)}%`)+" ")]):t._e(),e("h6",{staticClass:"mb-1 mt-2"},[t._v(" Last 100 lines of the log file ")]),t.callResponse.data&&t.callResponse.data[0]?e("b-form-textarea",{staticClass:"mt-1",staticStyle:{"background-color":"black",color:"white",padding:"20px","font-family":"monospace","margin-bottom":"25px"},attrs:{plaintext:"","no-resize":"",rows:"15",value:t.decodeAsciiResponse(t.callResponse.data[0].callData)}}):t._e()],1)])])]),e("b-tab",{attrs:{title:"Control"}},[e("b-row",{staticClass:"match-height adjustMaxWidth"},[e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Control"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" General options to control running status of App. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"start-app",variant:"success","aria-label":"Start App"}},[t._v(" Start App ")]),e("confirm-dialog",{attrs:{target:"start-app","confirm-button":"Start App"},on:{confirm:function(e){return t.startApp(t.appName)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"stop-app",variant:"success","aria-label":"Stop App"}},[t._v(" Stop App ")]),e("confirm-dialog",{attrs:{target:"stop-app","confirm-button":"Stop App"},on:{confirm:function(e){return t.stopApp(t.appName)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"restart-app",variant:"success","aria-label":"Restart App"}},[t._v(" Restart App ")]),e("confirm-dialog",{attrs:{target:"restart-app","confirm-button":"Restart App"},on:{confirm:function(e){return t.restartApp(t.appName)}}})],1)],1)],1),e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Pause"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" The Pause command suspends all processes in the specified App. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"pause-app",variant:"success","aria-label":"Pause App"}},[t._v(" Pause App ")]),e("confirm-dialog",{attrs:{target:"pause-app","confirm-button":"Pause App"},on:{confirm:function(e){return t.pauseApp(t.appName)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"unpause-app",variant:"success","aria-label":"Unpause App"}},[t._v(" Unpause App ")]),e("confirm-dialog",{attrs:{target:"unpause-app","confirm-button":"Unpause App"},on:{confirm:function(e){return t.unpauseApp(t.appName)}}})],1)],1)],1),e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Monitoring"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" Controls Application Monitoring ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"start-monitoring",variant:"success","aria-label":"Start Monitoring"}},[t._v(" Start Monitoring ")]),e("confirm-dialog",{attrs:{target:"start-monitoring","confirm-button":"Start Monitoring"},on:{confirm:function(e){return t.startMonitoring(t.appName)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"stop-monitoring",variant:"success","aria-label":"Stop Monitoring"}},[t._v(" Stop Monitoring ")]),e("confirm-dialog",{attrs:{target:"stop-monitoring","confirm-button":"Stop Monitoring"},on:{confirm:function(e){return t.stopMonitoring(t.appName,!1)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"stop-monitoring-delete",variant:"success","aria-label":"Stop Monitoring and Delete Monitored Data"}},[t._v(" Stop Monitoring and Delete Monitored Data ")]),e("confirm-dialog",{attrs:{target:"stop-monitoring-delete","confirm-button":"Stop Monitoring"},on:{confirm:function(e){return t.stopMonitoring(t.appName,!0)}}})],1)],1)],1)],1),e("b-row",{staticClass:"match-height adjustMaxWidth"},[e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Redeploy"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" Redeployes your application. Hard redeploy removes persistant data storage. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"redeploy-app-soft",variant:"success","aria-label":"Soft Redeploy App"}},[t._v(" Soft Redeploy App ")]),e("confirm-dialog",{attrs:{target:"redeploy-app-soft","confirm-button":"Redeploy"},on:{confirm:function(e){return t.redeployAppSoft(t.appName)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"redeploy-app-hard",variant:"success","aria-label":"Hard Redeploy App"}},[t._v(" Hard Redeploy App ")]),e("confirm-dialog",{attrs:{target:"redeploy-app-hard","confirm-button":"Redeploy"},on:{confirm:function(e){return t.redeployAppHard(t.appName)}}})],1)],1)],1),e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Remove"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" Stops, uninstalls and removes all App data from this Flux node. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"remove-app",variant:"success","aria-label":"Remove App"}},[t._v(" Remove App ")]),e("confirm-dialog",{attrs:{target:"remove-app","confirm-button":"Remove App"},on:{confirm:function(e){return t.removeApp(t.appName)}}})],1)],1)],1)],1)],1),t.windowWidth>860?e("b-tab",{attrs:{title:"Component Control",disabled:!t.isApplicationInstalledLocally||t.appSpecification.version<=3}},t._l(t.appSpecification.compose,(function(s,a){return e("b-card",{key:a,staticClass:"adjustMaxWidth"},[e("h4",[t._v(t._s(s.name)+" Component")]),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Control"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" General options to control running status of Component. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:`start-app-${s.name}_${t.appSpecification.name}`,variant:"success","aria-label":"Start Component"}},[t._v(" Start Component ")]),e("confirm-dialog",{attrs:{target:`start-app-${s.name}_${t.appSpecification.name}`,"confirm-button":"Start Component"},on:{confirm:function(e){return t.startApp(`${s.name}_${t.appSpecification.name}`)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:`stop-app-${s.name}_${t.appSpecification.name}`,variant:"success","aria-label":"Stop Component"}},[t._v(" Stop Component ")]),e("confirm-dialog",{attrs:{target:`stop-app-${s.name}_${t.appSpecification.name}`,"confirm-button":"Stop App"},on:{confirm:function(e){return t.stopApp(`${s.name}_${t.appSpecification.name}`)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:`restart-app-${s.name}_${t.appSpecification.name}`,variant:"success","aria-label":"Restart Component"}},[t._v(" Restart Component ")]),e("confirm-dialog",{attrs:{target:`restart-app-${s.name}_${t.appSpecification.name}`,"confirm-button":"Restart Component"},on:{confirm:function(e){return t.restartApp(`${s.name}_${t.appSpecification.name}`)}}})],1)],1)],1),e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Pause"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" The Pause command suspends all processes in the specified Component. ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:`pause-app-${s.name}_${t.appSpecification.name}`,variant:"success","aria-label":"Pause Component"}},[t._v(" Pause Component ")]),e("confirm-dialog",{attrs:{target:`pause-app-${s.name}_${t.appSpecification.name}`,"confirm-button":"Pause Component"},on:{confirm:function(e){return t.pauseApp(`${s.name}_${t.appSpecification.name}`)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:`unpause-app-${s.name}_${t.appSpecification.name}`,variant:"success","aria-label":"Unpause Component"}},[t._v(" Unpause Component ")]),e("confirm-dialog",{attrs:{target:`unpause-app-${s.name}_${t.appSpecification.name}`,"confirm-button":"Unpause Component"},on:{confirm:function(e){return t.unpauseApp(`${s.name}_${t.appSpecification.name}`)}}})],1)],1)],1),e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Monitoring"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" Controls Component Monitoring ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:`start-monitoring-${s.name}_${t.appSpecification.name}`,variant:"success","aria-label":"Start Monitoring"}},[t._v(" Start Monitoring ")]),e("confirm-dialog",{attrs:{target:`start-monitoring-${s.name}_${t.appSpecification.name}`,"confirm-button":"Start Monitoring"},on:{confirm:function(e){return t.startMonitoring(`${s.name}_${t.appSpecification.name}`)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:`stop-monitoring-${s.name}_${t.appSpecification.name}`,variant:"success","aria-label":"Stop Monitoring"}},[t._v(" Stop Monitoring ")]),e("confirm-dialog",{attrs:{target:`stop-monitoring-${s.name}_${t.appSpecification.name}`,"confirm-button":"Stop Monitoring"},on:{confirm:function(e){return t.stopMonitoring(`${s.name}_${t.appSpecification.name}`,!1)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:`stop-monitoring-delete-${s.name}_${t.appSpecification.name}`,variant:"success","aria-label":"Stop Monitoring and Delete Monitored Data"}},[t._v(" Stop Monitoring and Delete Monitored Data ")]),e("confirm-dialog",{attrs:{target:`stop-monitoring-delete-${s.name}_${t.appSpecification.name}`,"confirm-button":"Stop Monitoring"},on:{confirm:function(e){return t.stopMonitoring(`${s.name}_${t.appSpecification.name}`,!0)}}})],1)],1)],1)],1)],1)})),1):t._e(),e("b-tab",{attrs:{title:"Backup/Restore"}},[e("div",{staticClass:"adjustMaxWidth"},[e("b-card",{attrs:{"no-body":""}},[e("b-tabs",{attrs:{pills:"",card:""}},[e("b-tab",{staticStyle:{margin:"0","padding-top":"0px"},attrs:{title:"Backup"}},[e("div",{staticClass:"mb-2",staticStyle:{border:"1px solid #ccc","border-radius":"8px",height:"45px",padding:"12px","line-height":"0px"}},[e("h5",[e("b-icon",{staticClass:"mr-1",attrs:{icon:"back"}}),t._v(" Manual Backup Container Data")],1)]),e("div",{staticClass:"mb-2"},[e("b-form-group",[e("b-form-tags",{attrs:{id:"tags-component-select",size:"lg","add-on-change":"","no-outer-focus":""},scopedSlots:t._u([{key:"default",fn:function({tags:s,inputAttrs:a,inputHandlers:i,disabled:o,removeTag:n}){return[s.length>0?e("ul",{staticClass:"list-inline d-inline-block mb-2"},t._l(s,(function(s){return e("li",{key:s,staticClass:"list-inline-item"},[e("b-form-tag",{attrs:{title:s,disabled:o,variant:"primary"},on:{remove:function(t){return n(s)}}},[t._v(" "+t._s(s)+" ")])],1)})),0):t._e(),e("b-form-select",t._g(t._b({attrs:{disabled:o||0===t.componentAvailableOptions?.length||1===t.components?.length,options:t.componentAvailableOptions},scopedSlots:t._u([{key:"first",fn:function(){return[e("option",{attrs:{disabled:"",value:""}},[t._v(" Select the application component(s) you would like to backup ")])]},proxy:!0}],null,!0)},"b-form-select",a,!1),i))]}}]),model:{value:t.selectedBackupComponents,callback:function(e){t.selectedBackupComponents=e},expression:"selectedBackupComponents"}})],1)],1),t.components?.length>1?e("b-button",{staticClass:"mr-1",attrs:{variant:"outline-primary"},on:{click:t.addAllTags}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"0.9",icon:"check2-square"}}),t._v(" Select all ")],1):t._e(),e("b-button",{staticStyle:{"white-space":"nowrap"},attrs:{disabled:0===t.selectedBackupComponents.length||!0===t.backupProgress,variant:"outline-primary"},on:{click:function(e){return t.createBackup(t.appName,t.selectedBackupComponents)}}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"0.9",icon:"back"}}),t._v(" Create backup ")],1),e("br"),e("div",{staticClass:"mt-1"},[!0===t.backupProgress?e("div",{staticClass:"mb-2 mt-2 w-100",staticStyle:{margin:"0 auto",padding:"12px",border:"1px solid #eaeaea","border-radius":"8px","box-shadow":"0 4px 8px rgba(0, 0, 0, 0.1)","text-align":"center"}},[e("h5",{staticStyle:{"font-size":"16px","margin-bottom":"5px"}},[!0===t.backupProgress?e("span",[e("b-spinner",{attrs:{small:""}}),t._v(" "+t._s(t.tarProgress)+" ")],1):t._e()]),t._l(t.computedFileProgress,(function(s,a){return s.progress>0?e("b-progress",{key:a,staticClass:"mt-1",staticStyle:{height:"16px"},attrs:{max:100}},[e("b-progress-bar",{staticStyle:{"font-size":"14px"},attrs:{value:s.progress,label:`${s.fileName} - ${s.progress.toFixed(2)}%`}})],1):t._e()}))],2):t._e()]),t.backupList?.length>0&&!1===t.backupProgress?e("div",[e("div",{staticClass:"mb-1 text-right"},[e("b-dropdown",{staticClass:"mr-1",staticStyle:{"max-height":"38px","min-width":"100px","white-space":"nowrap"},attrs:{text:"Select",variant:"outline-primary"},scopedSlots:t._u([{key:"button-content",fn:function(){return[e("b-icon",{staticClass:"mr-1",attrs:{scale:"0.9",icon:"check2-square"}}),t._v(" Select ")]},proxy:!0}],null,!1,1960591975)},[e("b-dropdown-item",{attrs:{disabled:t.backupToUpload?.length===t.backupList?.length},on:{click:t.selectAllRows}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"0.9",icon:"check2-circle"}}),t._v(" Select all ")],1),e("b-dropdown-item",{attrs:{disabled:0===t.backupToUpload?.length},on:{click:t.clearSelected}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"0.7",icon:"square"}}),t._v(" Select none ")],1)],1),e("b-dropdown",{staticClass:"mr-1",staticStyle:{"max-height":"38px","min-width":"100px","white-space":"nowrap"},attrs:{text:"Download",variant:"outline-primary"},scopedSlots:t._u([{key:"button-content",fn:function(){return[e("b-icon",{staticClass:"mr-1",attrs:{scale:"0.9",icon:"download"}}),t._v(" Download ")]},proxy:!0}],null,!1,2545655511)},[e("b-dropdown-item",{attrs:{disabled:0===t.backupToUpload?.length},on:{click:function(e){return t.downloadAllBackupFiles(t.backupToUpload)}}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"0.7",icon:"download"}}),t._v(" Download selected ")],1),e("b-dropdown-item",{on:{click:function(e){return t.downloadAllBackupFiles(t.backupList)}}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"0.7",icon:"download"}}),t._v(" Download all ")],1)],1),e("b-button",{staticStyle:{"max-height":"38px","min-width":"100px","white-space":"nowrap"},attrs:{variant:"outline-danger"},on:{click:function(e){return t.deleteLocalBackup(null,t.backupList)}}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"0.9",icon:"trash"}}),t._v(" Remove all ")],1)],1),t.backupList?.length>0?e("b-table",{ref:"selectableTable",staticClass:"mb-0",attrs:{items:t.backupList,fields:[...t.localBackupTableFields,{key:"actions",label:"Actions",thStyle:{width:"5%"},class:"text-center"}],stacked:"md","show-empty":"",bordered:"","select-mode":"multi",selectable:"","selected-variant":"outline-dark",hover:"",small:""},on:{"row-selected":t.onRowSelected},scopedSlots:t._u([{key:"thead-top",fn:function(){return[e("b-tr",[e("b-td",{staticClass:"text-center",attrs:{colspan:"6"}},[e("b",[t._v(" List of available backups on the local machine (backups are automatically deleted 24 hours after creation) ")])])],1)]},proxy:!0},{key:"cell(create)",fn:function(e){return[t._v(" "+t._s(t.formatDateTime(e.item.create))+" ")]}},{key:"cell(expire)",fn:function(e){return[t._v(" "+t._s(t.formatDateTime(e.item.create,!0))+" ")]}},{key:"cell(isActive)",fn:function({rowSelected:s}){return[s?[e("span",{staticStyle:{color:"green"},attrs:{"aria-hidden":"true"}},[e("b-icon",{attrs:{icon:"calendar2-check-fill",scale:"1",variant:"success"}})],1),e("span",{staticClass:"sr-only"},[t._v("Selected")])]:[e("span",{attrs:{"aria-hidden":"true"}},[t._v(" ")]),e("span",{staticClass:"sr-only"},[t._v("Not selected")])]]}},{key:"cell(file_size)",fn:function(e){return[t._v(" "+t._s(t.addAndConvertFileSizes(e.item.file_size))+" ")]}},{key:"cell(actions)",fn:function(s){return[e("div",{staticClass:"d-flex justify-content-center align-items-center"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Remove file",expression:"'Remove file'",modifiers:{hover:!0,top:!0}}],staticClass:"d-flex justify-content-center align-items-center mr-1 custom-button",attrs:{variant:"outline-danger"},on:{click:function(e){return t.deleteLocalBackup(s.item.component,t.backupList,t.backupList[s.index].file)}}},[e("b-icon",{staticClass:"d-flex justify-content-center align-items-center",attrs:{scale:"0.9",icon:"trash"}})],1),e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Download file",expression:"'Download file'",modifiers:{hover:!0,top:!0}}],staticClass:"d-flex justify-content-center align-items-center custom-button",attrs:{variant:"outline-primary"},on:{click:function(e){return t.downloadAllBackupFiles([{component:s.item.component,file:t.backupList[s.index].file}])}}},[e("b-icon",{staticClass:"d-flex justify-content-center align-items-center",attrs:{scale:"1",icon:"cloud-arrow-down"}})],1)],1)]}}],null,!1,3111279885)}):t._e(),t.showProgressBar?e("b-card-text",[e("div",{staticClass:"mt-1"},[t.fileProgress.length>0?e("div",{staticClass:"mb-2 mt-2 w-100",staticStyle:{margin:"0 auto",padding:"12px",border:"1px solid #eaeaea","border-radius":"8px","box-shadow":"0 4px 8px rgba(0, 0, 0, 0.1)","text-align":"center"}},[e("h5",{staticStyle:{"font-size":"16px","margin-bottom":"5px"}},[t.allDownloadsCompleted()?e("span",[t._v(" Download Completed ")]):e("span",[e("b-spinner",{attrs:{small:""}}),t._v(" Downloading... ")],1)]),t._l(t.computedFileProgress,(function(s,a){return s.progress>0?e("b-progress",{key:a,staticClass:"mt-1",staticStyle:{height:"16px"},attrs:{max:100}},[e("b-progress-bar",{staticStyle:{"font-size":"14px"},attrs:{value:s.progress,label:`${s.fileName} - ${s.progress.toFixed(2)}%`}})],1):t._e()}))],2):t._e()])]):t._e(),t.backupToUpload.length>0?e("div",{staticClass:"mt-2"},[e("div",{staticClass:"mb-2 mt-3",staticStyle:{border:"1px solid #ccc","border-radius":"8px",height:"45px",padding:"12px","line-height":"0px"}},[e("h5",[e("b-icon",{attrs:{icon:"gear-fill"}}),t._v(" Choose your storage method (coming soon)")],1)]),e("b-form-radio-group",{attrs:{id:"btn-radios-2",options:t.storageMethod,"button-variant":"outline-primary",name:"radio-btn-outline",disable:t.storageMethod,buttons:""},model:{value:t.selectedStorageMethod,callback:function(e){t.selectedStorageMethod=e},expression:"selectedStorageMethod"}}),"flux"===t.selectedStorageMethod?e("div",[!0===t.sigInPrivilage?e("b-card",{staticClass:"mb-2 justify-content-center align-items-center"},[e("b-card-text",[e("div",{staticClass:"mb-2 mt-1",staticStyle:{"max-width":"500px",margin:"0 auto",padding:"12px",border:"1px solid #eaeaea","border-radius":"8px","box-shadow":"0 4px 8px rgba(0, 0, 0, 0.1)","text-align":"center"}},[e("h5",{staticStyle:{"font-size":"16px","margin-bottom":"5px"}},[t._v(" Sign in to enable FluxDrive functionality ")])])]),e("dl",{staticClass:"row"},[e("dd",{staticClass:"col-sm-4"},[e("b-card-text",{staticClass:"text-center"},[t._v(" Please log in using ")]),e("div",{staticStyle:{display:"flex","flex-direction":"row","justify-content":"space-around","align-items":"center","margin-bottom":"10px"}},[e("a",{attrs:{href:""},on:{click:t.removeAllBackup}},[e("img",{staticStyle:{"margin-left":"5px",height:"90px",padding:"10px"},attrs:{src:"https://home.runonflux.io/img/zelID.svg",alt:"Zel ID",height:"100%",width:"100%"}})]),e("a",{on:{click:t.removeAllBackup}},[e("img",{staticStyle:{height:"100px",padding:"10px"},attrs:{src:"https://home.runonflux.io/img/ssp-logo-white.svg",alt:"SSP",height:"100%",width:"100%"}})])]),e("div",{staticStyle:{display:"flex","flex-direction":"row","justify-content":"space-around","align-items":"center","margin-bottom":"10px"}},[e("a",{on:{click:t.removeAllBackup}},[e("img",{staticStyle:{height:"100px",padding:"10px"},attrs:{src:"https://home.runonflux.io/img/walletconnect.svg",alt:"WalletConnect",height:"100%",width:"100%"}})]),e("a",{on:{click:t.removeAllBackup}},[e("img",{staticStyle:{height:"80px",padding:"10px"},attrs:{src:"https://home.runonflux.io/img/metamask.svg",alt:"Metamask",height:"100%",width:"100%"}})])])],1),e("dd",{staticClass:"col-sm-8"},[e("b-card-text",{staticClass:"text-center"},[t._v(" or sign the following message with any ZelID / SSP Wallet ID / Bitcoin address / Ethereum address ")]),e("br"),e("br"),e("b-form",{staticClass:"mx-5"},[e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-form-group",{attrs:{label:"Message","label-for":"h-message","label-cols-md":"3"}},[e("b-form-input",{attrs:{id:"h-message",placeholder:"Insert Login Phrase"}})],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-form-group",{attrs:{label:"Address","label-for":"h-address","label-cols-md":"3"}},[e("b-form-input",{attrs:{id:"h-address",placeholder:"Insert ZelID / SSP Wallet ID / Bitcoin address / Ethereum address"}})],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-form-group",{attrs:{label:"Signature","label-for":"h-signature","label-cols-md":"3"}},[e("b-form-input",{attrs:{id:"h-signature",placeholder:"Insert Signature"}})],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-form-group",{attrs:{"label-cols-md":"3"}},[e("b-button",{staticClass:"w-100",attrs:{type:"submit",variant:"primary"}},[t._v(" Login ")])],1)],1)],1)],1)],1)])],1):t._e(),!1===t.sigInPrivilage?e("b-button",{staticClass:"mt-1 w-100",attrs:{variant:"outline-primary"},on:{click:t.removeAllBackup}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.5",icon:"cloud-arrow-up"}}),t._v(" Export ")],1):t._e()],1):t._e(),"google"===t.selectedStorageMethod?e("div",[e("b-button",{staticClass:"mt-1 w-100",attrs:{variant:"outline-primary"},on:{click:t.removeAllBackup}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.5",icon:"cloud-arrow-up"}}),t._v(" Export ")],1)],1):t._e()],1):t._e()],1):t._e()],1),e("b-tab",{staticStyle:{margin:"0","padding-top":"0px"},attrs:{title:"Restore"}},[e("div",{staticClass:"mb-2",staticStyle:{border:"1px solid #ccc","border-radius":"8px",height:"45px",padding:"12px","line-height":"0px"}},[e("h5",[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.4",icon:"cloud-download"}}),t._v(" Select restore method")],1)]),e("b-form-group",{staticClass:"mb-2"},[e("b-row",[e("b-col",{staticClass:"d-flex align-items-center",staticStyle:{height:"38px"}},[e("b-form-radio-group",{staticStyle:{"max-height":"38px","min-width":"100px","white-space":"nowrap"},attrs:{id:"btn-radios-2",options:t.restoreOptions,disable:t.restoreOptions,"button-variant":"outline-primary",name:"radio-btn-outline",buttons:""},on:{change:t.handleRadioClick},model:{value:t.selectedRestoreOption,callback:function(e){t.selectedRestoreOption=e},expression:"selectedRestoreOption"}})],1),e("b-col",{staticClass:"text-right",staticStyle:{height:"38px"}},["FluxDrive"===t.selectedRestoreOption?e("b-button",{staticStyle:{"max-height":"38px","min-width":"100px","white-space":"nowrap"},attrs:{variant:"outline-success"}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.2",icon:"arrow-repeat"}}),t._v("Refresh ")],1):t._e()],1)],1)],1),"FluxDrive"===t.selectedRestoreOption?e("div",[!1===t.sigInPrivilage?e("b-card",{staticClass:"mb-2 justify-content-center align-items-center"},[e("b-card-text",[e("div",{staticStyle:{"max-width":"500px",margin:"0 auto",padding:"10px",border:"1px solid #eaeaea","border-radius":"8px","box-shadow":"0 4px 8px rgba(0, 0, 0, 0.1)","text-align":"center"}},[e("h5",{staticStyle:{color:"#333","font-size":"16px","margin-bottom":"5px"}},[t._v(" Sig in to enable FluxDrive functionality ")])])]),e("dl",{staticClass:"row"},[e("dd",{staticClass:"col-sm-4"},[e("b-card-text",{staticClass:"text-center"},[t._v(" Please log in using ")]),e("div",{staticStyle:{display:"flex","flex-direction":"row","justify-content":"space-around","align-items":"center","margin-bottom":"10px"}},[e("a",{attrs:{href:""},on:{click:t.removeAllBackup}},[e("img",{staticStyle:{"margin-left":"5px",height:"90px",padding:"10px"},attrs:{src:"https://home.runonflux.io/img/zelID.svg",alt:"Zel ID",height:"100%",width:"100%"}})]),e("a",{on:{click:t.removeAllBackup}},[e("img",{staticStyle:{height:"100px",padding:"10px"},attrs:{src:"https://home.runonflux.io/img/ssp-logo-white.svg",alt:"SSP",height:"100%",width:"100%"}})])]),e("div",{staticStyle:{display:"flex","flex-direction":"row","justify-content":"space-around","align-items":"center","margin-bottom":"10px"}},[e("a",{on:{click:t.removeAllBackup}},[e("img",{staticStyle:{height:"100px",padding:"10px"},attrs:{src:"https://home.runonflux.io/img/walletconnect.svg",alt:"WalletConnect",height:"100%",width:"100%"}})]),e("a",{on:{click:t.removeAllBackup}},[e("img",{staticStyle:{height:"80px",padding:"10px"},attrs:{src:"https://home.runonflux.io/img/metamask.svg",alt:"Metamask",height:"100%",width:"100%"}})])])],1),e("dd",{staticClass:"col-sm-8"},[e("b-card-text",{staticClass:"text-center"},[t._v(" or sign the following message with any ZelID / SSP Wallet ID / Bitcoin address / Ethereum address ")]),e("br"),e("br"),e("b-form",{staticClass:"mx-5"},[e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-form-group",{attrs:{label:"Message","label-for":"h-message","label-cols-md":"3"}},[e("b-form-input",{attrs:{id:"h-message",placeholder:"Insert Login Phrase"}})],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-form-group",{attrs:{label:"Address","label-for":"h-address","label-cols-md":"3"}},[e("b-form-input",{attrs:{id:"h-address",placeholder:"Insert ZelID / SSP Wallet ID / Bitcoin address / Ethereum address"}})],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-form-group",{attrs:{label:"Signature","label-for":"h-signature","label-cols-md":"3"}},[e("b-form-input",{attrs:{id:"h-signature",placeholder:"Insert Signature"}})],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-form-group",{attrs:{"label-cols-md":"3"}},[e("b-button",{attrs:{type:"submit",variant:"primary",block:""}},[t._v(" Login ")])],1)],1)],1)],1)],1)])],1):t._e(),!0===t.sigInPrivilage?e("div",[e("div",[e("b-input-group",{staticClass:"mb-2"},[e("b-input-group-prepend",{attrs:{"is-text":""}},[e("b-icon",{attrs:{icon:"funnel-fill"}})],1),e("b-form-select",{attrs:{options:t.restoreComponents},model:{value:t.nestedTableFilter,callback:function(e){t.nestedTableFilter=e},expression:"nestedTableFilter"}})],1)],1),e("b-table",{attrs:{items:t.checkpoints,fields:t.backupTableFields,stacked:"md","show-empty":"",bordered:"",small:"","empty-text":"No records available. Please export your backup to FluxDrive.","sort-by":t.sortbackupTableKey,"sort-desc":t.sortbackupTableDesc},on:{"update:sortBy":function(e){t.sortbackupTableKey=e},"update:sort-by":function(e){t.sortbackupTableKey=e},"update:sortDesc":function(e){t.sortbackupTableDesc=e},"update:sort-desc":function(e){t.sortbackupTableDesc=e},filtered:t.onFilteredBackup},scopedSlots:t._u([{key:"thead-top",fn:function(){return[e("b-tr",[e("b-td",{staticClass:"text-center",attrs:{colspan:"6",variant:"dark"}},[e("b-icon",{staticClass:"mr-2",attrs:{scale:"1.2",icon:"back"}}),e("b",[t._v("Backups Inventory")])],1)],1)]},proxy:!0},{key:"cell(actions)",fn:function(s){return[e("div",{staticClass:"d-flex justify-content-center align-items-center"},[e("b-button",{staticClass:"d-flex justify-content-center align-items-center mr-1",staticStyle:{width:"15px",height:"25px"},attrs:{variant:"outline-danger"},on:{click:function(e){return t.deleteRestoreBackup(s.item.component,t.checkpoints,s.item.timestamp)}}},[e("b-icon",{staticClass:"d-flex justify-content-center align-items-center",attrs:{scale:"0.9",icon:"trash"}})],1),e("b-button",{staticClass:"d-flex justify-content-center align-items-center",staticStyle:{width:"15px",height:"25px"},attrs:{variant:"outline-primary"},on:{click:function(e){return t.addAllBackupComponents(s.item.timestamp)}}},[e("b-icon",{staticClass:"d-flex justify-content-center align-items-center",attrs:{scale:"0.9",icon:"save"}})],1)],1)]}},{key:"cell(timestamp)",fn:function(s){return[e("kbd",[t._v("backup_"+t._s(s.item.timestamp))])]}},{key:"cell(time)",fn:function(e){return[t._v(" "+t._s(t.formatDateTime(e.item.timestamp))+" ")]}},{key:"row-details",fn:function(s){return[e("b-table",{attrs:{stacked:"md","show-empty":"",bordered:"",hover:"",small:"",items:s.item.components.filter((e=>Object.values(e).some((e=>String(e).toLowerCase().includes(t.nestedTableFilter.toLowerCase()))))),fields:t.componentsTable1},scopedSlots:t._u([{key:"cell(actions)",fn:function(a){return[e("b-button",{staticClass:"d-flex justify-content-center align-items-center",staticStyle:{margin:"auto",width:"95px",height:"25px",display:"flex"},attrs:{variant:"outline-primary"},on:{click:function(e){return t.addComponent(a.item,s.item.timestamp)}}},[e("b-icon",{staticClass:"d-flex justify-content-center align-items-center",attrs:{scale:"0.7",icon:"plus-lg"}})],1)]}}],null,!0)})]}}],null,!1,85419062)}),t.newComponents.length>0?e("b-table",{attrs:{items:t.newComponents,fields:[...t.newComponentsTableFields,{key:"actions",label:"Actions",thStyle:{width:"20%"},class:"text-center"}],stacked:"md","show-empty":"",bordered:"",hover:"",small:""},scopedSlots:t._u([{key:"thead-top",fn:function(){return[e("b-tr",[e("b-td",{staticClass:"text-center",attrs:{colspan:"6",variant:"dark"}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.2",icon:"life-preserver"}}),e("b",[t._v("Restore Overview")])],1)],1)]},proxy:!0},{key:"cell(actions)",fn:function(s){return[e("div",{staticClass:"d-flex justify-content-center align-items-center"},[e("b-button",{staticClass:"d-flex justify-content-center align-items-center",staticStyle:{width:"95px",height:"25px"},attrs:{variant:"outline-danger"},on:{click:function(e){return t.deleteItem(s.index,t.newComponents)}}},[e("b-icon",{staticClass:"d-flex justify-content-center align-items-center",attrs:{scale:"0.9",icon:"trash"}})],1)],1)]}},{key:"custom-foot",fn:function(){return[e("b-tr",[e("b-td",{staticClass:"text-right",attrs:{colspan:"3",variant:"dark"}}),e("b-td",{staticStyle:{"text-align":"center","vertical-align":"middle"},attrs:{colspan:"2",variant:"dark"}},[e("b-icon",{staticClass:"mr-2",attrs:{icon:"hdd",scale:"1.4"}}),t._v(" "+t._s(t.totalArchiveFileSize(t.newComponents).toFixed(2))+" MB ")],1)],1)]},proxy:!0}],null,!1,121118200)}):t._e(),t.newComponents?.length>0?e("b-button",{staticClass:"mt-2",attrs:{block:"",variant:"outline-primary"}},[e("b-icon",{staticClass:"mr-1",attrs:{icon:"arrow-clockwise",scale:"1.2"}}),t._v("Restore ")],1):t._e()],1):t._e()],1):t._e(),"Upload File"===t.selectedRestoreOption?e("div",[e("div",[e("b-input-group",{staticClass:"mb-0"},[e("b-input-group-prepend",{attrs:{"is-text":""}},[e("b-icon",{attrs:{icon:"folder-plus"}})],1),e("b-form-select",{staticStyle:{"border-radius":"0"},attrs:{options:t.components,disabled:t.remoteFileComponents},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:null,disabled:""}},[t._v(" - Select component - ")])]},proxy:!0}],null,!1,2230972607),model:{value:t.restoreRemoteFile,callback:function(e){t.restoreRemoteFile=e},expression:"restoreRemoteFile"}}),e("b-input-group-append",[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Choose file to upload",expression:"'Choose file to upload'",modifiers:{hover:!0,top:!0}}],attrs:{disabled:null===t.restoreRemoteFile,text:"Button",size:"sm",variant:"outline-primary"},on:{click:t.addRemoteFile}},[e("b-icon",{attrs:{icon:"cloud-arrow-up",scale:"1.5"}})],1)],1)],1)],1),e("div",[e("input",{ref:"fileselector",staticClass:"flux-share-upload-input",staticStyle:{display:"none"},attrs:{id:"file-selector",type:"file"},on:{input:t.handleFiles}})]),e("b-alert",{staticClass:"mt-1 rounded-0 d-flex align-items-center justify-content-center",staticStyle:{"z-index":"1000"},attrs:{variant:t.alertVariant,solid:"true",dismissible:""},model:{value:t.showTopUpload,callback:function(e){t.showTopUpload=e},expression:"showTopUpload"}},[e("h5",{staticClass:"mt-1 mb-1"},[t._v(" "+t._s(t.alertMessage)+" ")])]),t.files?.length>0?e("div",{staticClass:"d-flex justify-content-between mt-2"},[e("b-table",{staticClass:"b-table",attrs:{small:"",bordered:"",size:"sm",items:t.files,fields:t.computedRestoreUploadFileFields},scopedSlots:t._u([{key:"thead-top",fn:function(){return[e("b-tr",[e("b-td",{staticClass:"text-center",attrs:{colspan:"6",variant:"dark"}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.2",icon:"life-preserver"}}),e("b",[t._v("Restore Overview")])],1)],1)]},proxy:!0},{key:"cell(file)",fn:function(s){return[e("div",{staticClass:"table-cell"},[t._v(" "+t._s(s.value)+" ")])]}},{key:"cell(file_size)",fn:function(s){return[e("div",{staticClass:"table-cell no-wrap"},[t._v(" "+t._s(t.addAndConvertFileSizes(s.value))+" ")])]}},{key:"cell(actions)",fn:function(s){return[e("div",{staticClass:"d-flex justify-content-center align-items-center"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Remove restore job",expression:"'Remove restore job'",modifiers:{hover:!0,top:!0}}],staticClass:"d-flex justify-content-center align-items-center",staticStyle:{width:"15px",height:"25px"},attrs:{variant:"outline-danger"},on:{click:function(e){return t.deleteItem(s.index,t.files,s.item.file,"upload")}}},[e("b-icon",{staticClass:"d-flex justify-content-center align-items-center",attrs:{scale:"0.9",icon:"trash"}})],1)],1)]}},{key:"custom-foot",fn:function(){return[e("b-tr",[e("b-td",{staticClass:"text-right",attrs:{colspan:"2",variant:"dark"}}),e("b-td",{staticStyle:{"text-align":"center","vertical-align":"middle"},attrs:{colspan:"2",variant:"dark"}},[e("b-icon",{staticClass:"mr-1",attrs:{icon:"hdd",scale:"1.4"}}),t._v(t._s(t.addAndConvertFileSizes(t.files))+" ")],1)],1)]},proxy:!0}],null,!1,1264712967)})],1):t._e(),e("div",{staticClass:"mt-2"},[t.restoreFromUpload?e("div",{staticClass:"mb-2 mt-2 w-100",staticStyle:{margin:"0 auto",padding:"12px",border:"1px solid #eaeaea","border-radius":"8px","box-shadow":"0 4px 8px rgba(0, 0, 0, 0.1)"}},[e("h5",{staticStyle:{"font-size":"16px","margin-bottom":"5px","text-align":"center"}},[t.restoreFromUpload?e("span",[e("b-spinner",{attrs:{small:""}}),t._v(" "+t._s(t.restoreFromUploadStatus)+" ")],1):t._e()]),t._l(t.files,(function(s){return s.uploading?e("div",{key:s.file_name,staticClass:"upload-item mb-1"},[e("div",{class:s.uploading?"":"hidden"},[t._v(" "+t._s(s.file_name)+" ")]),e("b-progress",{attrs:{max:"100",height:"15px"}},[e("b-progress-bar",{class:s.uploading?"":"hidden",attrs:{value:s.progress,label:`${s.progress.toFixed(2)}%`}})],1)],1):t._e()}))],2):t._e()]),t.files?.length>0&&""===t.restoreFromUploadStatus?e("b-button",{staticClass:"mt-2",attrs:{block:"",variant:"outline-primary"},on:{click:function(e){return t.startUpload()}}},[e("b-icon",{staticClass:"mr-1",attrs:{icon:"arrow-clockwise",scale:"1.1"}}),t._v("Restore ")],1):t._e()],1):t._e(),"Remote URL"===t.selectedRestoreOption?e("div",[e("div",[e("b-input-group",{staticClass:"mb-0"},[e("b-input-group-prepend",{attrs:{"is-text":""}},[e("b-icon",{attrs:{icon:"globe"}})],1),e("b-form-input",{attrs:{state:t.urlValidationState,type:"url",placeholder:"Enter the URL for your remote backup archive",required:""},model:{value:t.restoreRemoteUrl,callback:function(e){t.restoreRemoteUrl=e},expression:"restoreRemoteUrl"}}),e("b-input-group-append",[e("b-form-select",{staticStyle:{"border-radius":"0"},attrs:{options:t.components,disabled:t.remoteUrlComponents},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:null,disabled:""}},[t._v(" - Select component - ")])]},proxy:!0}],null,!1,2230972607),model:{value:t.restoreRemoteUrlComponent,callback:function(e){t.restoreRemoteUrlComponent=e},expression:"restoreRemoteUrlComponent"}})],1),e("b-input-group-append",[e("b-button",{attrs:{disabled:null===t.restoreRemoteUrlComponent,size:"sm",variant:"outline-primary"},on:{click:function(e){return t.addRemoteUrlItem(t.appName,t.restoreRemoteUrlComponent)}}},[e("b-icon",{attrs:{scale:"0.8",icon:"plus-lg"}})],1)],1)],1),e("b-form-invalid-feedback",{staticClass:"mb-2",attrs:{state:t.urlValidationState}},[t._v(" "+t._s(t.urlValidationMessage)+" ")])],1),e("b-alert",{staticClass:"mt-1 rounded-0 d-flex align-items-center justify-content-center",staticStyle:{"z-index":"1000"},attrs:{variant:t.alertVariant,solid:"true",dismissible:""},model:{value:t.showTopRemote,callback:function(e){t.showTopRemote=e},expression:"showTopRemote"}},[e("h5",{staticClass:"mt-1 mb-1"},[t._v(" "+t._s(t.alertMessage)+" ")])]),t.restoreRemoteUrlItems?.length>0?e("div",{staticClass:"d-flex justify-content-between mt-2"},[e("b-table",{staticClass:"b-table",attrs:{small:"",bordered:"",size:"sm",items:t.restoreRemoteUrlItems,fields:t.computedRestoreRemoteURLFields},scopedSlots:t._u([{key:"thead-top",fn:function(){return[e("b-tr",[e("b-td",{staticClass:"text-center",attrs:{colspan:"6",variant:"dark"}},[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.2",icon:"life-preserver"}}),e("b",[t._v("Restore Overview")])],1)],1)]},proxy:!0},{key:"cell(url)",fn:function(s){return[e("div",{staticClass:"table-cell no"},[t._v(" "+t._s(s.value)+" ")])]}},{key:"cell(component)",fn:function(s){return[e("div",{staticClass:"table-cell"},[t._v(" "+t._s(s.value)+" ")])]}},{key:"cell(file_size)",fn:function(s){return[e("div",{staticClass:"table-cell no-wrap"},[t._v(" "+t._s(t.addAndConvertFileSizes(s.value))+" ")])]}},{key:"cell(actions)",fn:function(s){return[e("div",{staticClass:"d-flex justify-content-center align-items-center"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Remove restore job",expression:"'Remove restore job'",modifiers:{hover:!0,top:!0}}],staticClass:"d-flex justify-content-center align-items-center",staticStyle:{width:"15px",height:"25px"},attrs:{variant:"outline-danger"},on:{click:function(e){return t.deleteItem(s.index,t.restoreRemoteUrlItems)}}},[e("b-icon",{staticClass:"d-flex justify-content-center align-items-center",attrs:{scale:"0.9",icon:"trash"}})],1)],1)]}},{key:"custom-foot",fn:function(){return[e("b-tr",[e("b-td",{staticClass:"text-right",attrs:{colspan:"2",variant:"dark"}}),e("b-td",{staticStyle:{"text-align":"center","vertical-align":"middle"},attrs:{colspan:"2",variant:"dark"}},[e("b-icon",{staticClass:"mr-1",attrs:{icon:"hdd",scale:"1.4"}}),t._v(t._s(t.addAndConvertFileSizes(t.restoreRemoteUrlItems))+" ")],1)],1)]},proxy:!0}],null,!1,2584524300)})],1):t._e(),e("div",{staticClass:"mt-2"},[!0===t.downloadingFromUrl?e("div",{staticClass:"mb-2 mt-2 w-100",staticStyle:{margin:"0 auto",padding:"12px",border:"1px solid #eaeaea","border-radius":"8px","box-shadow":"0 4px 8px rgba(0, 0, 0, 0.1)","text-align":"center"}},[e("h5",{staticStyle:{"font-size":"16px","margin-bottom":"5px"}},[!0===t.downloadingFromUrl?e("span",[e("b-spinner",{attrs:{small:""}}),t._v(" "+t._s(t.restoreFromRemoteURLStatus)+" ")],1):t._e()])]):t._e()]),t.restoreRemoteUrlItems?.length>0&&""===t.restoreFromRemoteURLStatus?e("b-button",{staticClass:"mt-2",attrs:{block:"",variant:"outline-primary"},on:{click:function(e){return t.restoreFromRemoteFile(t.appName)}}},[e("b-icon",{staticClass:"mr-1",attrs:{icon:"arrow-clockwise",scale:"1.1"}}),t._v("Restore ")],1):t._e()],1):t._e()],1)],1)],1)],1)]),e("b-tab",{attrs:{title:"Interactive Terminal"}},[e("div",{staticClass:"text-center adjustMaxWidth"},[e("div",[e("b-card-group",{attrs:{deck:""}},[e("b-card",{attrs:{"header-tag":"header"}},[e("div",{staticClass:"mb-2",staticStyle:{border:"1px solid #ccc","border-radius":"8px",height:"45px",padding:"12px","text-align":"left","line-height":"0px"}},[e("h5",[e("b-icon",{staticClass:"mr-1",attrs:{scale:"1.2",icon:"terminal"}}),t._v(" Browser-based Interactive Terminal")],1)]),e("div",{staticClass:"d-flex align-items-center"},[e("div",{staticClass:"mr-4"},[e("b-form-select",{attrs:{options:null,disabled:!!t.isVisible||t.isComposeSingle},model:{value:t.selectedApp,callback:function(e){t.selectedApp=e},expression:"selectedApp"}},[e("b-form-select-option",{attrs:{value:"null",disabled:""}},[t._v(" -- Please select component -- ")]),t._l(t.appSpecification.compose,(function(s){return e("b-form-select-option",{key:s.name,attrs:{value:s.name}},[t._v(" "+t._s(s.name)+" ")])}))],2)],1),e("div",{staticClass:"mr-4"},[e("b-form-select",{attrs:{options:t.options,disabled:!!t.isVisible},on:{input:t.onSelectChangeCmd},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{option:null,value:null,disabled:""}},[t._v(" -- Please select command -- ")])]},proxy:!0}]),model:{value:t.selectedCmd,callback:function(e){t.selectedCmd=e},expression:"selectedCmd"}})],1),t.isVisible||t.isConnecting?t._e():e("b-button",{staticClass:"col-2",attrs:{href:"#",variant:"outline-primary"},on:{click:function(e){return t.connectTerminal(t.selectedApp?`${t.selectedApp}_${t.appSpecification.name}`:t.appSpecification.name)}}},[t._v(" Connect ")]),t.isVisible?e("b-button",{staticClass:"col-2",attrs:{variant:"outline-danger"},on:{click:t.disconnectTerminal}},[t._v(" Disconnect ")]):t._e(),t.isConnecting?e("b-button",{staticClass:"col-2",attrs:{variant:"outline-primary",disabled:""}},[e("b-spinner",{attrs:{small:""}}),t._v(" Connecting... ")],1):t._e(),e("div",{staticClass:"ml-auto mt-1"},[e("div",{staticClass:"ml-auto d-flex"},[e("b-form-checkbox",{staticClass:"ml-4 mr-2 d-flex align-items-center justify-content-center",attrs:{switch:"",disabled:!!t.isVisible},on:{input:t.onSelectChangeUser},model:{value:t.enableUser,callback:function(e){t.enableUser=e},expression:"enableUser"}},[e("div",{staticClass:"d-flex",staticStyle:{"font-size":"14px"}},[t._v(" Custom User ")])]),e("b-form-checkbox",{staticClass:"ml-2 d-flex align-items-center justify-content-center",attrs:{switch:"",disabled:!!t.isVisible},on:{input:t.onSelectChangeEnv},model:{value:t.enableEnvironment,callback:function(e){t.enableEnvironment=e},expression:"enableEnvironment"}},[e("div",{staticClass:"d-flex",staticStyle:{"font-size":"14px"}},[t._v(" Enable Environment ")])])],1)])],1),"Custom"!==t.selectedCmd||t.isVisible?t._e():e("div",{staticClass:"d-flex mt-1"},[e("b-form-input",{style:{width:"100%"},attrs:{placeholder:"Enter custom command (string)"},model:{value:t.customValue,callback:function(e){t.customValue=e},expression:"customValue"}})],1),t.enableUser&&!t.isVisible?e("div",{staticClass:"d-flex mt-1"},[e("b-form-input",{style:{width:"100%"},attrs:{placeholder:"Enter user. Format is one of: user, user:group, uid, or uid:gid."},model:{value:t.userInputValue,callback:function(e){t.userInputValue=e},expression:"userInputValue"}})],1):t._e(),t.enableEnvironment&&!t.isVisible?e("div",{staticClass:"d-flex mt-1"},[e("b-form-input",{style:{width:"100%"},attrs:{placeholder:"Enter environment parameters (string)"},model:{value:t.envInputValue,callback:function(e){t.envInputValue=e},expression:"envInputValue"}})],1):t._e(),e("div",{staticClass:"d-flex align-items-center mb-1"},[t.isVisible?e("div",{staticClass:"mt-2"},["Custom"!==t.selectedCmd?[e("span",{staticStyle:{"font-weight":"bold"}},[t._v("Exec into container")]),e("span",{style:t.selectedOptionTextStyle},[t._v(t._s(t.selectedApp||t.appSpecification.name))]),e("span",{staticStyle:{"font-weight":"bold"}},[t._v("using command")]),e("span",{style:t.selectedOptionTextStyle},[t._v(t._s(t.selectedOptionText))]),e("span",{staticStyle:{"font-weight":"bold"}},[t._v("as")]),e("span",{style:t.selectedOptionTextStyle},[t._v(t._s(t.userInputValue?t.userInputValue:"default user"))])]:[e("span",{staticStyle:{"font-weight":"bold"}},[t._v("Exec into container")]),e("span",{style:t.selectedOptionTextStyle},[t._v(t._s(t.selectedApp||t.appSpecification.name))]),e("span",{staticStyle:{"font-weight":"bold"}},[t._v("using custom command")]),e("span",{style:t.selectedOptionTextStyle},[t._v(t._s(t.customValue))]),e("span",{staticStyle:{"font-weight":"bold"}},[t._v("as")]),e("span",{style:t.selectedOptionTextStyle},[t._v(t._s(t.userInputValue?t.userInputValue:"default user"))])]],2):t._e()])])],1),e("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],ref:"terminalElement",staticStyle:{"text-align":"left"}})],1)])]),t.windowWidth>860?e("b-tab",{attrs:{title:"Global App Management",disabled:""}}):t._e(),e("b-tab",{attrs:{title:"Global Control"}},[t.globalZelidAuthorized?e("div",[e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Control"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" "+t._s(t.isAppOwner?"General options to control all instances of your application":"General options to control instances of selected application running on all nodes that you own")+" ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"start-app-global",variant:"success","aria-label":"Start App"}},[t._v(" Start App ")]),e("confirm-dialog",{attrs:{target:"start-app-global","confirm-button":"Start App"},on:{confirm:function(e){return t.startAppGlobally(t.appName)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"stop-app-global",variant:"success","aria-label":"Stop App"}},[t._v(" Stop App ")]),e("confirm-dialog",{attrs:{target:"stop-app-global","confirm-button":"Stop App"},on:{confirm:function(e){return t.stopAppGlobally(t.appName)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"restart-app-global",variant:"success","aria-label":"Restart App"}},[t._v(" Restart App ")]),e("confirm-dialog",{attrs:{target:"restart-app-global","confirm-button":"Restart App"},on:{confirm:function(e){return t.restartAppGlobally(t.appName)}}})],1)],1)],1),e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Pause"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" "+t._s(t.isAppOwner?"The Pause command suspends all processes of all instances of your app":"The Pause command suspends all processes of selected application on all of nodes that you own")+" ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"pause-app-global",variant:"success","aria-label":"Pause App"}},[t._v(" Pause App ")]),e("confirm-dialog",{attrs:{target:"pause-app-global","confirm-button":"Pause App"},on:{confirm:function(e){return t.pauseAppGlobally(t.appName)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"unpause-app-global",variant:"success","aria-label":"Unpause App"}},[t._v(" Unpause App ")]),e("confirm-dialog",{attrs:{target:"unpause-app-global","confirm-button":"Unpause App"},on:{confirm:function(e){return t.unpauseAppGlobally(t.appName)}}})],1)],1)],1)],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Redeploy"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" "+t._s(t.isAppOwner?"Redeployes all instances of your application.Hard redeploy removes persistant data storage. If app uses syncthing it can takes up to 30 to be up and running.":"Redeployes instances of selected application running on all of your nodes. Hard redeploy removes persistant data storage.")+" ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"redeploy-app-soft-global",variant:"success","aria-label":"Soft Redeploy App"}},[t._v(" Soft Redeploy App ")]),e("confirm-dialog",{attrs:{target:"redeploy-app-soft-global","confirm-button":"Redeploy"},on:{confirm:function(e){return t.redeployAppSoftGlobally(t.appName)}}}),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"redeploy-app-hard-global",variant:"success","aria-label":"Hard Redeploy App"}},[t._v(" Hard Redeploy App ")]),e("confirm-dialog",{attrs:{target:"redeploy-app-hard-global","confirm-button":"Redeploy"},on:{confirm:function(e){return t.redeployAppHardGlobally(t.appName)}}})],1)],1)],1),e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Reinstall"}},[e("b-card-text",{staticClass:"mb-2"},[t._v(" "+t._s(t.isAppOwner?"Removes all instances of your App forcing an installation on different nodes.":"Removes all instances of selected App on all of your nodes forcing installation on different nodes.")+" ")]),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mx-1 my-1",attrs:{id:"remove-app-global",variant:"success","aria-label":"Reinstall App"}},[t._v(" Reinstall App ")]),e("confirm-dialog",{attrs:{target:"remove-app-global","confirm-button":"Reinstall App"},on:{confirm:function(e){return t.removeAppGlobally(t.appName)}}})],1)],1)],1)],1)],1):e("div",[t._v(" Global management session expired. Please log out and back into FluxOS. ")])]),e("b-tab",{attrs:{title:"Running Instances"}},[t.masterSlaveApp?e("div",{staticClass:"adjustMaxWidth"},[e("b-card",{attrs:{title:"Primary/Standby App Information"}},[e("list-entry",{attrs:{title:"Current IP selected as Primary running your application",data:t.masterIP}})],1)],1):t._e(),e("b-row",{staticClass:"adjustMaxWidth"},[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.instances.pageOptions},model:{value:t.instances.perPage,callback:function(e){t.$set(t.instances,"perPage",e)},expression:"instances.perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.instances.filter,callback:function(e){t.$set(t.instances,"filter",e)},expression:"instances.filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.instances.filter},on:{click:function(e){t.instances.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"app-instances-table",attrs:{striped:"",hover:"",responsive:"","per-page":t.instances.perPage,"current-page":t.instances.currentPage,items:t.instances.data,fields:t.instances.fields,"sort-by":t.instances.sortBy,"sort-desc":t.instances.sortDesc,"sort-direction":t.instances.sortDirection,filter:t.instances.filter,"filter-included-fields":t.instances.filterOn,"show-empty":"","empty-text":`No instances of ${t.appName}`},on:{"update:sortBy":function(e){return t.$set(t.instances,"sortBy",e)},"update:sort-by":function(e){return t.$set(t.instances,"sortBy",e)},"update:sortDesc":function(e){return t.$set(t.instances,"sortDesc",e)},"update:sort-desc":function(e){return t.$set(t.instances,"sortDesc",e)}},scopedSlots:t._u([{key:"cell(show_details)",fn:function(s){return[e("a",{on:{click:s.toggleDetails}},[s.detailsShowing?t._e():e("v-icon",{attrs:{name:"chevron-down"}}),s.detailsShowing?e("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(s){return[e("b-card",{},[s.item.broadcastedAt?e("list-entry",{attrs:{title:"Broadcast",data:new Date(s.item.broadcastedAt).toLocaleString("en-GB",t.timeoptions.shortDate)}}):t._e(),s.item.expireAt?e("list-entry",{attrs:{title:"Expires",data:new Date(s.item.expireAt).toLocaleString("en-GB",t.timeoptions.shortDate)}}):t._e()],1)]}},{key:"cell(visit)",fn:function(s){return[e("div",{staticClass:"button-cell"},[e("b-button",{staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:function(e){t.openApp(s.item.name,s.item.ip.split(":")[0],t.getProperPort())}}},[t._v(" Visit App ")]),e("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"danger"},on:{click:function(e){t.openNodeFluxOS(s.item.ip.split(":")[0],s.item.ip.split(":")[1]?+s.item.ip.split(":")[1]-1:16126)}}},[t._v(" Visit FluxNode ")])],1)]}}])})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.instances.totalRows,"per-page":t.instances.perPage,align:"center",size:"sm"},model:{value:t.instances.currentPage,callback:function(e){t.$set(t.instances,"currentPage",e)},expression:"instances.currentPage"}}),e("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.instances.totalRows))])],1)],1)],1),e("b-tab",{attrs:{title:"Update Specifications",disabled:!t.isAppOwner}},[t.fluxCommunication?t._e():e("div",{staticClass:"text-danger adjustMaxWidth"},[t._v(" Warning: Connected Flux is not communicating properly with Flux network ")]),e("h2",{staticClass:"mb-2"},[t._v(" Update Application Specifications ")]),t.appUpdateSpecification.version>=4?e("div",{staticClass:"adjustMaxWidth"},[e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"6"}},[e("b-card",{attrs:{title:"Details"}},[e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Version","label-for":"version"}},[e("b-form-input",{attrs:{id:"version",placeholder:t.appUpdateSpecification.version.toString(),readonly:""},model:{value:t.appUpdateSpecification.version,callback:function(e){t.$set(t.appUpdateSpecification,"version",e)},expression:"appUpdateSpecification.version"}})],1),e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Name","label-for":"name"}},[e("b-form-input",{attrs:{id:"name",placeholder:"Application Name",readonly:""},model:{value:t.appUpdateSpecification.name,callback:function(e){t.$set(t.appUpdateSpecification,"name",e)},expression:"appUpdateSpecification.name"}})],1),e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Desc.","label-for":"desc"}},[e("b-form-textarea",{attrs:{id:"desc",placeholder:"Description",rows:"3"},model:{value:t.appUpdateSpecification.description,callback:function(e){t.$set(t.appUpdateSpecification,"description",e)},expression:"appUpdateSpecification.description"}})],1),e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Owner","label-for":"owner"}},[e("b-form-input",{attrs:{id:"owner",placeholder:"ZelID of Application Owner"},model:{value:t.appUpdateSpecification.owner,callback:function(e){t.$set(t.appUpdateSpecification,"owner",e)},expression:"appUpdateSpecification.owner"}})],1),t.appUpdateSpecification.version>=5&&!t.isPrivateApp?e("div",[e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-1 col-form-label"},[t._v(" Contacts "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of emails Contacts to get notifications ex. app about to expire, app spawns. Contacts are also PUBLIC information.",expression:"'Array of strings of emails Contacts to get notifications ex. app about to expire, app spawns. Contacts are also PUBLIC information.'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"contacs"},model:{value:t.appUpdateSpecification.contacts,callback:function(e){t.$set(t.appUpdateSpecification,"contacts",e)},expression:"appUpdateSpecification.contacts"}})],1),e("div",{staticClass:"col-0"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Uploads Contacts to Flux Storage. Contacts will be replaced with a link to Flux Storage instead. This increases maximum allowed contacts while adding enhanced privacy - nobody except FluxOS Team maintaining notifications system has access to contacts.",expression:"\n 'Uploads Contacts to Flux Storage. Contacts will be replaced with a link to Flux Storage instead. This increases maximum allowed contacts while adding enhanced privacy - nobody except FluxOS Team maintaining notifications system has access to contacts.'\n ",modifiers:{hover:!0,top:!0}}],attrs:{id:"upload-contacts",variant:"outline-primary"}},[e("v-icon",{attrs:{name:"cloud-upload-alt"}})],1),e("confirm-dialog",{attrs:{target:"upload-contacts","confirm-button":"Upload Contacts",width:600},on:{confirm:function(e){return t.uploadContactsToFluxStorage()}}})],1)])]):t._e(),t.appUpdateSpecification.version>=5&&!t.isPrivateApp?e("div",[e("h4",[t._v("Allowed Geolocation")]),t._l(t.numberOfGeolocations,(function(s){return e("div",{key:`${s}pos`},[e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Continent - ${s}`,"label-for":"Continent"}},[e("b-form-select",{attrs:{id:"Continent",options:t.continentsOptions(!1)},on:{change:function(e){return t.adjustMaxInstancesPossible()}},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:void 0,disabled:""}},[t._v(" -- Select to restrict Continent -- ")])]},proxy:!0}],null,!0),model:{value:t.allowedGeolocations[`selectedContinent${s}`],callback:function(e){t.$set(t.allowedGeolocations,`selectedContinent${s}`,e)},expression:"allowedGeolocations[`selectedContinent${n}`]"}})],1),t.allowedGeolocations[`selectedContinent${s}`]&&"ALL"!==t.allowedGeolocations[`selectedContinent${s}`]?e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Country - ${s}`,"label-for":"Country"}},[e("b-form-select",{attrs:{id:"country",options:t.countriesOptions(t.allowedGeolocations[`selectedContinent${s}`],!1)},on:{change:function(e){return t.adjustMaxInstancesPossible()}},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:void 0,disabled:""}},[t._v(" -- Select to restrict Country -- ")])]},proxy:!0}],null,!0),model:{value:t.allowedGeolocations[`selectedCountry${s}`],callback:function(e){t.$set(t.allowedGeolocations,`selectedCountry${s}`,e)},expression:"allowedGeolocations[`selectedCountry${n}`]"}})],1):t._e(),t.allowedGeolocations[`selectedContinent${s}`]&&"ALL"!==t.allowedGeolocations[`selectedContinent${s}`]&&t.allowedGeolocations[`selectedCountry${s}`]&&"ALL"!==t.allowedGeolocations[`selectedCountry${s}`]?e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Region - ${s}`,"label-for":"Region"}},[e("b-form-select",{attrs:{id:"Region",options:t.regionsOptions(t.allowedGeolocations[`selectedContinent${s}`],t.allowedGeolocations[`selectedCountry${s}`],!1)},on:{change:function(e){return t.adjustMaxInstancesPossible()}},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:void 0,disabled:""}},[t._v(" -- Select to restrict Region -- ")])]},proxy:!0}],null,!0),model:{value:t.allowedGeolocations[`selectedRegion${s}`],callback:function(e){t.$set(t.allowedGeolocations,`selectedRegion${s}`,e)},expression:"allowedGeolocations[`selectedRegion${n}`]"}})],1):t._e()],1)})),e("div",{staticClass:"text-center"},[t.numberOfGeolocations>1?e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:"Remove Allowed Geolocation Restriction",expression:"'Remove Allowed Geolocation Restriction'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"m-1",attrs:{variant:"outline-secondary",size:"sm"},on:{click:function(e){t.numberOfGeolocations=t.numberOfGeolocations-1,t.adjustMaxInstancesPossible()}}},[e("v-icon",{attrs:{name:"minus"}})],1):t._e(),t.numberOfGeolocations<5?e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:"Add Allowed Geolocation Restriction",expression:"'Add Allowed Geolocation Restriction'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"m-1",attrs:{variant:"outline-secondary",size:"sm"},on:{click:function(e){t.numberOfGeolocations=t.numberOfGeolocations+1,t.adjustMaxInstancesPossible()}}},[e("v-icon",{attrs:{name:"plus"}})],1):t._e()],1)],2):t._e(),e("br"),e("br"),t.appUpdateSpecification.version>=5?e("div",[e("h4",[t._v("Forbidden Geolocation")]),t._l(t.numberOfNegativeGeolocations,(function(s){return e("div",{key:`${s}posB`},[e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Continent - ${s}`,"label-for":"Continent"}},[e("b-form-select",{attrs:{id:"Continent",options:t.continentsOptions(!0)},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:void 0,disabled:""}},[t._v(" -- Select to ban Continent -- ")])]},proxy:!0}],null,!0),model:{value:t.forbiddenGeolocations[`selectedContinent${s}`],callback:function(e){t.$set(t.forbiddenGeolocations,`selectedContinent${s}`,e)},expression:"forbiddenGeolocations[`selectedContinent${n}`]"}})],1),t.forbiddenGeolocations[`selectedContinent${s}`]&&"NONE"!==t.forbiddenGeolocations[`selectedContinent${s}`]?e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Country - ${s}`,"label-for":"Country"}},[e("b-form-select",{attrs:{id:"country",options:t.countriesOptions(t.forbiddenGeolocations[`selectedContinent${s}`],!0)},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:void 0,disabled:""}},[t._v(" -- Select to ban Country -- ")])]},proxy:!0}],null,!0),model:{value:t.forbiddenGeolocations[`selectedCountry${s}`],callback:function(e){t.$set(t.forbiddenGeolocations,`selectedCountry${s}`,e)},expression:"forbiddenGeolocations[`selectedCountry${n}`]"}})],1):t._e(),t.forbiddenGeolocations[`selectedContinent${s}`]&&"NONE"!==t.forbiddenGeolocations[`selectedContinent${s}`]&&t.forbiddenGeolocations[`selectedCountry${s}`]&&"ALL"!==t.forbiddenGeolocations[`selectedCountry${s}`]?e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"1",label:`Region - ${s}`,"label-for":"Region"}},[e("b-form-select",{attrs:{id:"Region",options:t.regionsOptions(t.forbiddenGeolocations[`selectedContinent${s}`],t.forbiddenGeolocations[`selectedCountry${s}`],!0)},scopedSlots:t._u([{key:"first",fn:function(){return[e("b-form-select-option",{attrs:{value:void 0,disabled:""}},[t._v(" -- Select to ban Region -- ")])]},proxy:!0}],null,!0),model:{value:t.forbiddenGeolocations[`selectedRegion${s}`],callback:function(e){t.$set(t.forbiddenGeolocations,`selectedRegion${s}`,e)},expression:"forbiddenGeolocations[`selectedRegion${n}`]"}})],1):t._e()],1)})),e("div",{staticClass:"text-center"},[t.numberOfNegativeGeolocations>1?e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:"Remove Forbidden Geolocation Restriction",expression:"'Remove Forbidden Geolocation Restriction'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"m-1",attrs:{variant:"outline-secondary",size:"sm"},on:{click:function(e){t.numberOfNegativeGeolocations=t.numberOfNegativeGeolocations-1}}},[e("v-icon",{attrs:{name:"minus"}})],1):t._e(),t.numberOfNegativeGeolocations<5?e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.bottom",value:"Add Forbidden Geolocation Restriction",expression:"'Add Forbidden Geolocation Restriction'",modifiers:{hover:!0,bottom:!0}},{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"m-1",attrs:{variant:"outline-secondary",size:"sm"},on:{click:function(e){t.numberOfNegativeGeolocations=t.numberOfNegativeGeolocations+1}}},[e("v-icon",{attrs:{name:"plus"}})],1):t._e()],1)],2):t._e(),e("br"),t.appUpdateSpecification.version>=3?e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Instances","label-for":"instances"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(t.appUpdateSpecification.instances)+" ")]),e("b-form-input",{attrs:{id:"instances",placeholder:"Minimum number of application instances to be spawned",type:"range",min:"3",max:t.maxInstances,step:"1"},model:{value:t.appUpdateSpecification.instances,callback:function(e){t.$set(t.appUpdateSpecification,"instances",e)},expression:"appUpdateSpecification.instances"}})],1):t._e(),e("br"),t.appUpdateSpecification.version>=6?e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-form-label"},[t._v(" Extend Subscription "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Select if you want to extend your subscription period",expression:"'Select if you want to extend your subscription period'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-checkbox",{staticClass:"custom-control-primary inline",attrs:{id:"extendSubscription",switch:""},model:{value:t.extendSubscription,callback:function(e){t.extendSubscription=e},expression:"extendSubscription"}})],1)]):t._e(),e("br"),t.extendSubscription?e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-form-label"},[t._v(" Period "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Time you want to extend your subscription from today",expression:"'Time you want to extend your subscription from today'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"mx-1"},[t._v(" "+t._s(t.getExpireLabel||(t.appUpdateSpecification.expire?`${t.appUpdateSpecification.expire} blocks`:"1 month"))+" ")]),e("b-form-input",{attrs:{id:"period",placeholder:"How long an application will live on Flux network",type:"range",min:0,max:5,step:1},model:{value:t.expirePosition,callback:function(e){t.expirePosition=e},expression:"expirePosition"}})],1):t._e(),e("br"),t.appUpdateSpecification.version>=7?e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-form-label"},[t._v(" Static IP "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Select if your application strictly requires static IP address",expression:"'Select if your application strictly requires static IP address'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-checkbox",{staticClass:"custom-control-primary inline",attrs:{id:"staticip",switch:""},model:{value:t.appUpdateSpecification.staticip,callback:function(e){t.$set(t.appUpdateSpecification,"staticip",e)},expression:"appUpdateSpecification.staticip"}})],1)]):t._e(),e("br"),t.appUpdateSpecification.version>=7?e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-form-label"},[t._v(" Enterprise Application "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Select if your application requires private image, secrets or if you want to target specific nodes on which application can run. Geolocation targetting is not possible in this case.",expression:"'Select if your application requires private image, secrets or if you want to target specific nodes on which application can run. Geolocation targetting is not possible in this case.'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-checkbox",{staticClass:"custom-control-primary inline",attrs:{id:"enterpriseapp",switch:""},model:{value:t.isPrivateApp,callback:function(e){t.isPrivateApp=e},expression:"isPrivateApp"}})],1)]):t._e()],1)],1)],1),t._l(t.appUpdateSpecification.compose,(function(s,a){return e("b-card",{key:a},[e("b-card-title",[t._v(" Component "+t._s(s.name)+" ")]),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"12",xl:"6"}},[e("b-card",[e("b-card-title",[t._v(" General ")]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Name "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Name of Application Component",expression:"'Name of Application Component'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:`repo-${s.name}_${t.appUpdateSpecification.name}`,placeholder:"Component name",readonly:""},model:{value:s.name,callback:function(e){t.$set(s,"name",e)},expression:"component.name"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Description "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Description of Application Component",expression:"'Description of Application Component'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:`repo-${s.name}_${t.appUpdateSpecification.name}`,placeholder:"Component description"},model:{value:s.description,callback:function(e){t.$set(s,"description",e)},expression:"component.description"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Repository "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Docker image namespace/repository:tag for component",expression:"'Docker image namespace/repository:tag for component'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:`repo-${s.name}_${t.appUpdateSpecification.name}`,placeholder:"Docker image namespace/repository:tag"},model:{value:s.repotag,callback:function(e){t.$set(s,"repotag",e)},expression:"component.repotag"}})],1)]),t.appUpdateSpecification.version>=7&&t.isPrivateApp?e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Repository Authentication "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Docker image authentication for private images in the format of username:apikey. This field will be encrypted and accessible to selected enterprise nodes only.",expression:"'Docker image authentication for private images in the format of username:apikey. This field will be encrypted and accessible to selected enterprise nodes only.'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:`repoauth-${s.name}_${t.appUpdateSpecification.name}`,placeholder:"Docker authentication username:apikey"},model:{value:s.repoauth,callback:function(e){t.$set(s,"repoauth",e)},expression:"component.repoauth"}})],1)]):t._e(),e("br"),e("b-card-title",[t._v(" Connectivity ")]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Ports "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of Ports on which application will be available",expression:"'Array of Ports on which application will be available'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:`ports-${s.name}_${t.appUpdateSpecification.name}`},model:{value:s.ports,callback:function(e){t.$set(s,"ports",e)},expression:"component.ports"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Domains "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Domains managed by Flux Domain Manager (FDM). Length must correspond to available ports. Use empty strings for no domains",expression:"'Array of strings of Domains managed by Flux Domain Manager (FDM). Length must correspond to available ports. Use empty strings for no domains'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:`domains-${s.name}_${t.appUpdateSpecification.name}`},model:{value:s.domains,callback:function(e){t.$set(s,"domains",e)},expression:"component.domains"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Cont. Ports "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Container Ports - Array of ports which your container has",expression:"'Container Ports - Array of ports which your container has'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:`containerPorts-${s.name}_${t.appUpdateSpecification.name}`},model:{value:s.containerPorts,callback:function(e){t.$set(s,"containerPorts",e)},expression:"component.containerPorts"}})],1)])],1)],1),e("b-col",{attrs:{xs:"12",xl:"6"}},[e("b-card",[e("b-card-title",[t._v(" Environment ")]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Environment "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Environmental Parameters",expression:"'Array of strings of Environmental Parameters'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:`environmentParameters-${s.name}_${t.appUpdateSpecification.name}`},model:{value:s.environmentParameters,callback:function(e){t.$set(s,"environmentParameters",e)},expression:"component.environmentParameters"}})],1),e("div",{staticClass:"col-0"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Uploads Enviornment to Flux Storage. Environment parameters will be replaced with a link to Flux Storage instead. This increases maximum allowed size of Env. parameters while adding basic privacy - instead of parameters, link to Flux Storage will be visible.",expression:"\n 'Uploads Enviornment to Flux Storage. Environment parameters will be replaced with a link to Flux Storage instead. This increases maximum allowed size of Env. parameters while adding basic privacy - instead of parameters, link to Flux Storage will be visible.'\n ",modifiers:{hover:!0,top:!0}}],attrs:{id:"upload-env",variant:"outline-primary"}},[e("v-icon",{attrs:{name:"cloud-upload-alt"}})],1),e("confirm-dialog",{attrs:{target:"upload-env","confirm-button":"Upload Environment Parameters",width:600},on:{confirm:function(e){return t.uploadEnvToFluxStorage(a)}}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Commands "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Commands",expression:"'Array of strings of Commands'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:`commands-${s.name}_${t.appUpdateSpecification.name}`},model:{value:s.commands,callback:function(e){t.$set(s,"commands",e)},expression:"component.commands"}})],1),e("div",{staticClass:"col-0"},[e("b-button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Uploads Commands to Flux Storage. Commands will be replaced with a link to Flux Storage instead. This increases maximum allowed size of Commands while adding basic privacy - instead of commands, link to Flux Storage will be visible.",expression:"'Uploads Commands to Flux Storage. Commands will be replaced with a link to Flux Storage instead. This increases maximum allowed size of Commands while adding basic privacy - instead of commands, link to Flux Storage will be visible.'",modifiers:{hover:!0,top:!0}}],attrs:{id:"upload-cmd",variant:"outline-primary"}},[e("v-icon",{attrs:{name:"cloud-upload-alt"}})],1),e("confirm-dialog",{attrs:{target:"upload-cmd","confirm-button":"Upload Commands",width:600},on:{confirm:function(e){return t.uploadCmdToFluxStorage(a)}}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Cont. Data "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Data folder that is shared by application to App volume. Prepend with r: for synced data between instances. Ex. r:/data. Prepend with g: for synced data and primary/standby solution. Ex. g:/data",expression:"'Data folder that is shared by application to App volume. Prepend with r: for synced data between instances. Ex. r:/data. Prepend with g: for synced data and primary/standby solution. Ex. g:/data'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:`containerData-${s.name}_${t.appUpdateSpecification.name}`},model:{value:s.containerData,callback:function(e){t.$set(s,"containerData",e)},expression:"component.containerData"}})],1)]),t.appUpdateSpecification.version>=7&&t.isPrivateApp?e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Secrets "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Secret Environmental Parameters. This will be encrypted and accessible to selected Enterprise Nodes only",expression:"'Array of strings of Secret Environmental Parameters. This will be encrypted and accessible to selected Enterprise Nodes only'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:`secrets-${s.name}_${t.appUpdateSpecification.name}`,placeholder:"[]"},model:{value:s.secrets,callback:function(e){t.$set(s,"secrets",e)},expression:"component.secrets"}})],1)]):t._e(),e("br"),e("b-card-title",[t._v(" Resources    "),e("h6",{staticClass:"inline text-small"},[t._v(" Tiered: "),e("b-form-checkbox",{staticClass:"custom-control-primary inline",attrs:{id:"tiered",switch:""},model:{value:s.tiered,callback:function(e){t.$set(s,"tiered",e)},expression:"component.tiered"}})],1)]),s.tiered?t._e():e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"2",label:"CPU","label-for":"cpu"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(s.cpu)+" ")]),e("b-form-input",{attrs:{id:`cpu-${s.name}_${t.appUpdateSpecification.name}`,placeholder:"CPU cores to use by default",type:"range",min:"0.1",max:"15",step:"0.1"},model:{value:s.cpu,callback:function(e){t.$set(s,"cpu",e)},expression:"component.cpu"}})],1),s.tiered?t._e():e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"2",label:"RAM","label-for":"ram"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(s.ram)+" ")]),e("b-form-input",{attrs:{id:`ram-${s.name}_${t.appUpdateSpecification.name}`,placeholder:"RAM in MB value to use by default",type:"range",min:"100",max:"59000",step:"100"},model:{value:s.ram,callback:function(e){t.$set(s,"ram",e)},expression:"component.ram"}})],1),s.tiered?t._e():e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"2",label:"SSD","label-for":"ssd"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(s.hdd)+" ")]),e("b-form-input",{attrs:{id:`ssd-${s.name}_${t.appUpdateSpecification.name}`,placeholder:"SSD in GB value to use by default",type:"range",min:"1",max:"820",step:"1"},model:{value:s.hdd,callback:function(e){t.$set(s,"hdd",e)},expression:"component.hdd"}})],1)],1)],1)],1),s.tiered?e("b-row",[e("b-col",{attrs:{xs:"12",md:"6",lg:"4"}},[e("b-card",{attrs:{title:"Cumulus"}},[e("div",[t._v(" CPU: "+t._s(s.cpubasic)+" ")]),e("b-form-input",{attrs:{type:"range",min:"0.1",max:"3",step:"0.1"},model:{value:s.cpubasic,callback:function(e){t.$set(s,"cpubasic",e)},expression:"component.cpubasic"}}),e("div",[t._v(" RAM: "+t._s(s.rambasic)+" ")]),e("b-form-input",{attrs:{type:"range",min:"100",max:"5000",step:"100"},model:{value:s.rambasic,callback:function(e){t.$set(s,"rambasic",e)},expression:"component.rambasic"}}),e("div",[t._v(" SSD: "+t._s(s.hddbasic)+" ")]),e("b-form-input",{attrs:{type:"range",min:"1",max:"180",step:"1"},model:{value:s.hddbasic,callback:function(e){t.$set(s,"hddbasic",e)},expression:"component.hddbasic"}})],1)],1),e("b-col",{attrs:{xs:"12",md:"6",lg:"4"}},[e("b-card",{attrs:{title:"Nimbus"}},[e("div",[t._v(" CPU: "+t._s(s.cpusuper)+" ")]),e("b-form-input",{attrs:{type:"range",min:"0.1",max:"7",step:"0.1"},model:{value:s.cpusuper,callback:function(e){t.$set(s,"cpusuper",e)},expression:"component.cpusuper"}}),e("div",[t._v(" RAM: "+t._s(s.ramsuper)+" ")]),e("b-form-input",{attrs:{type:"range",min:"100",max:"28000",step:"100"},model:{value:s.ramsuper,callback:function(e){t.$set(s,"ramsuper",e)},expression:"component.ramsuper"}}),e("div",[t._v(" SSD: "+t._s(s.hddsuper)+" ")]),e("b-form-input",{attrs:{type:"range",min:"1",max:"400",step:"1"},model:{value:s.hddsuper,callback:function(e){t.$set(s,"hddsuper",e)},expression:"component.hddsuper"}})],1)],1),e("b-col",{attrs:{xs:"12",lg:"4"}},[e("b-card",{attrs:{title:"Stratus"}},[e("div",[t._v(" CPU: "+t._s(s.cpubamf)+" ")]),e("b-form-input",{attrs:{type:"range",min:"0.1",max:"15",step:"0.1"},model:{value:s.cpubamf,callback:function(e){t.$set(s,"cpubamf",e)},expression:"component.cpubamf"}}),e("div",[t._v(" RAM: "+t._s(s.rambamf)+" ")]),e("b-form-input",{attrs:{type:"range",min:"100",max:"59000",step:"100"},model:{value:s.rambamf,callback:function(e){t.$set(s,"rambamf",e)},expression:"component.rambamf"}}),e("div",[t._v(" SSD: "+t._s(s.hddbamf)+" ")]),e("b-form-input",{attrs:{type:"range",min:"1",max:"820",step:"1"},model:{value:s.hddbamf,callback:function(e){t.$set(s,"hddbamf",e)},expression:"component.hddbamf"}})],1)],1)],1):t._e()],1)})),t.appUpdateSpecification.version>=7&&t.isPrivateApp?e("b-card",{attrs:{title:"Enterprise Nodes"}},[t._v(" Only these selected enterprise nodes will be able to run your application and are used for encryption. Only these nodes are able to access your private image and secrets."),e("br"),t._v(" Changing the node list after the message is computed and encrypted will result in a failure to run. Secrets and Repository Authentication would need to be adjusted again."),e("br"),t._v(" The score determines how reputable a node and node operator are. The higher the score, the higher the reputation on the network."),e("br"),t._v(" Secrets and Repository Authentication need to be set again if this node list changes."),e("br"),t._v(" The more nodes can run your application, the more stable it is. On the other hand, more nodes will have access to your private data!"),e("br"),e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.entNodesTable.pageOptions},model:{value:t.entNodesTable.perPage,callback:function(e){t.$set(t.entNodesTable,"perPage",e)},expression:"entNodesTable.perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.entNodesTable.filter,callback:function(e){t.$set(t.entNodesTable,"filter",e)},expression:"entNodesTable.filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.entNodesTable.filter},on:{click:function(e){t.entNodesTable.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"app-enterprise-nodes-table",attrs:{striped:"",hover:"",responsive:"","per-page":t.entNodesTable.perPage,"current-page":t.entNodesTable.currentPage,items:t.selectedEnterpriseNodes,fields:t.entNodesTable.fields,"sort-by":t.entNodesTable.sortBy,"sort-desc":t.entNodesTable.sortDesc,"sort-direction":t.entNodesTable.sortDirection,filter:t.entNodesTable.filter,"filter-included-fields":t.entNodesTable.filterOn,"show-empty":"","empty-text":"No Enterprise Nodes selected"},on:{"update:sortBy":function(e){return t.$set(t.entNodesTable,"sortBy",e)},"update:sort-by":function(e){return t.$set(t.entNodesTable,"sortBy",e)},"update:sortDesc":function(e){return t.$set(t.entNodesTable,"sortDesc",e)},"update:sort-desc":function(e){return t.$set(t.entNodesTable,"sortDesc",e)}},scopedSlots:t._u([{key:"cell(show_details)",fn:function(s){return[e("a",{on:{click:s.toggleDetails}},[s.detailsShowing?t._e():e("v-icon",{attrs:{name:"chevron-down"}}),s.detailsShowing?e("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(s){return[e("b-card",{},[s.item.ip?e("list-entry",{attrs:{title:"IP Address",data:s.item.ip}}):t._e(),e("list-entry",{attrs:{title:"Public Key",data:s.item.pubkey}}),e("list-entry",{attrs:{title:"Node Address",data:s.item.payment_address}}),e("list-entry",{attrs:{title:"Collateral",data:`${s.item.txhash}:${s.item.outidx}`}}),e("list-entry",{attrs:{title:"Tier",data:s.item.tier}}),e("list-entry",{attrs:{title:"Overall Score",data:s.item.score.toString()}}),e("list-entry",{attrs:{title:"Collateral Score",data:s.item.collateralPoints.toString()}}),e("list-entry",{attrs:{title:"Maturity Score",data:s.item.maturityPoints.toString()}}),e("list-entry",{attrs:{title:"Public Key Score",data:s.item.pubKeyPoints.toString()}}),e("list-entry",{attrs:{title:"Enterprise Apps Assigned",data:s.item.enterpriseApps.toString()}}),e("div",[e("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"primary"},on:{click:function(e){t.openNodeFluxOS(s.item.ip.split(":")[0],s.item.ip.split(":")[1]?+s.item.ip.split(":")[1]-1:16126)}}},[t._v(" Visit FluxNode ")])],1)],1)]}},{key:"cell(ip)",fn:function(e){return[t._v(" "+t._s(e.item.ip)+" ")]}},{key:"cell(payment_address)",fn:function(e){return[t._v(" "+t._s(e.item.payment_address.slice(0,8))+"..."+t._s(e.item.payment_address.slice(e.item.payment_address.length-8,e.item.payment_address.length))+" ")]}},{key:"cell(tier)",fn:function(e){return[t._v(" "+t._s(e.item.tier)+" ")]}},{key:"cell(score)",fn:function(e){return[t._v(" "+t._s(e.item.score)+" ")]}},{key:"cell(actions)",fn:function(s){return[e("b-button",{staticClass:"mr-1 mb-1",attrs:{id:`remove-${s.item.ip}`,size:"sm",variant:"danger"}},[t._v(" Remove ")]),e("confirm-dialog",{attrs:{target:`remove-${s.item.ip}`,"confirm-button":"Remove FluxNode"},on:{confirm:function(e){return t.removeFluxNode(s.item.ip)}}}),e("b-button",{staticClass:"mr-1 mb-1",attrs:{size:"sm",variant:"primary"},on:{click:function(e){t.openNodeFluxOS(s.item.ip.split(":")[0],s.item.ip.split(":")[1]?+s.item.ip.split(":")[1]-1:16126)}}},[t._v(" Visit ")])]}}],null,!1,2861207668)})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.selectedEnterpriseNodes.length,"per-page":t.entNodesTable.perPage,align:"center",size:"sm"},model:{value:t.entNodesTable.currentPage,callback:function(e){t.$set(t.entNodesTable,"currentPage",e)},expression:"entNodesTable.currentPage"}}),e("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.selectedEnterpriseNodes.length))])],1)],1),e("br"),e("br"),e("div",{staticClass:"text-center"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mb-2 mr-2",attrs:{variant:"primary","aria-label":"Auto Select Enterprise Nodes"},on:{click:t.autoSelectNodes}},[t._v(" Auto Select Enterprise Nodes ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mb-2 mr-2",attrs:{variant:"primary","aria-label":"Choose Enterprise Nodes"},on:{click:function(e){t.chooseEnterpriseDialog=!0}}},[t._v(" Choose Enterprise Nodes ")])],1)],1):t._e()],2):e("div",{staticClass:"adjustMaxWidth"},[e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"12",xl:"6"}},[e("b-card",{attrs:{title:"Details"}},[e("b-form-group",{attrs:{"label-cols":"2",label:"Version","label-for":"version"}},[e("b-form-input",{attrs:{id:"version",placeholder:t.appUpdateSpecification.version.toString(),readonly:""},model:{value:t.appUpdateSpecification.version,callback:function(e){t.$set(t.appUpdateSpecification,"version",e)},expression:"appUpdateSpecification.version"}})],1),e("b-form-group",{attrs:{"label-cols":"2",label:"Name","label-for":"name"}},[e("b-form-input",{attrs:{id:"name",placeholder:"App Name",readonly:""},model:{value:t.appUpdateSpecification.name,callback:function(e){t.$set(t.appUpdateSpecification,"name",e)},expression:"appUpdateSpecification.name"}})],1),e("b-form-group",{attrs:{"label-cols":"2",label:"Desc.","label-for":"desc"}},[e("b-form-textarea",{attrs:{id:"desc",placeholder:"Description",rows:"3"},model:{value:t.appUpdateSpecification.description,callback:function(e){t.$set(t.appUpdateSpecification,"description",e)},expression:"appUpdateSpecification.description"}})],1),e("b-form-group",{attrs:{"label-cols":"2",label:"Repo","label-for":"repo"}},[e("b-form-input",{attrs:{id:"repo",placeholder:"Docker image namespace/repository:tag",readonly:""},model:{value:t.appUpdateSpecification.repotag,callback:function(e){t.$set(t.appUpdateSpecification,"repotag",e)},expression:"appUpdateSpecification.repotag"}})],1),e("b-form-group",{attrs:{"label-cols":"2",label:"Owner","label-for":"owner"}},[e("b-form-input",{attrs:{id:"owner",placeholder:"ZelID of Application Owner"},model:{value:t.appUpdateSpecification.owner,callback:function(e){t.$set(t.appUpdateSpecification,"owner",e)},expression:"appUpdateSpecification.owner"}})],1),e("br"),t.appUpdateSpecification.version>=3?e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Instances","label-for":"instances"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(t.appUpdateSpecification.instances)+" ")]),e("b-form-input",{attrs:{id:"instances",placeholder:"Minimum number of application instances to be spawned",type:"range",min:"3",max:t.maxInstances,step:"1"},model:{value:t.appUpdateSpecification.instances,callback:function(e){t.$set(t.appUpdateSpecification,"instances",e)},expression:"appUpdateSpecification.instances"}})],1):t._e(),e("br"),t.appUpdateSpecification.version>=6?e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"Period","label-for":"period"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(t.getExpireLabel||(t.appUpdateSpecification.expire?`${t.appUpdateSpecification.expire} blocks`:"1 month"))+" ")]),e("b-form-input",{attrs:{id:"period",placeholder:"How long an application will live on Flux network",type:"range",min:0,max:5,step:1},model:{value:t.expirePosition,callback:function(e){t.expirePosition=e},expression:"expirePosition"}})],1):t._e()],1)],1),e("b-col",{attrs:{xs:"12",xl:"6"}},[e("b-card",{attrs:{title:"Environment"}},[e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Ports "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of Ports on which application will be available",expression:"'Array of Ports on which application will be available'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"ports"},model:{value:t.appUpdateSpecification.ports,callback:function(e){t.$set(t.appUpdateSpecification,"ports",e)},expression:"appUpdateSpecification.ports"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Domains "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Domains managed by Flux Domain Manager (FDM). Length must correspond to available ports. Use empty strings for no domains",expression:"'Array of strings of Domains managed by Flux Domain Manager (FDM). Length must correspond to available ports. Use empty strings for no domains'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"domains"},model:{value:t.appUpdateSpecification.domains,callback:function(e){t.$set(t.appUpdateSpecification,"domains",e)},expression:"appUpdateSpecification.domains"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Environment "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Environmental Parameters",expression:"'Array of strings of Environmental Parameters'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"environmentParameters"},model:{value:t.appUpdateSpecification.enviromentParameters,callback:function(e){t.$set(t.appUpdateSpecification,"enviromentParameters",e)},expression:"appUpdateSpecification.enviromentParameters"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Commands "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Array of strings of Commands",expression:"'Array of strings of Commands'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"commands"},model:{value:t.appUpdateSpecification.commands,callback:function(e){t.$set(t.appUpdateSpecification,"commands",e)},expression:"appUpdateSpecification.commands"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Cont. Ports "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Container Ports - Array of ports which your container has",expression:"'Container Ports - Array of ports which your container has'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"containerPorts"},model:{value:t.appUpdateSpecification.containerPorts,callback:function(e){t.$set(t.appUpdateSpecification,"containerPorts",e)},expression:"appUpdateSpecification.containerPorts"}})],1)]),e("div",{staticClass:"form-row form-group"},[e("label",{staticClass:"col-3 col-form-label"},[t._v(" Cont. Data "),e("v-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover.top",value:"Data folder that is shared by application to App volume. Prepend with r: for synced data between instances. Ex. r:/data. Prepend with g: for synced data and primary/standby solution. Ex. g:/data",expression:"'Data folder that is shared by application to App volume. Prepend with r: for synced data between instances. Ex. r:/data. Prepend with g: for synced data and primary/standby solution. Ex. g:/data'",modifiers:{hover:!0,top:!0}}],staticClass:"mr-1",attrs:{name:"info-circle"}})],1),e("div",{staticClass:"col"},[e("b-form-input",{attrs:{id:"containerData"},model:{value:t.appUpdateSpecification.containerData,callback:function(e){t.$set(t.appUpdateSpecification,"containerData",e)},expression:"appUpdateSpecification.containerData"}})],1)])])],1)],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"12"}},[e("b-card",[e("b-card-title",[t._v(" Resources    "),e("h6",{staticClass:"inline etext-small"},[t._v(" Tiered: "),e("b-form-checkbox",{staticClass:"custom-control-primary inline",attrs:{id:"tiered",switch:""},model:{value:t.appUpdateSpecification.tiered,callback:function(e){t.$set(t.appUpdateSpecification,"tiered",e)},expression:"appUpdateSpecification.tiered"}})],1)]),t.appUpdateSpecification.tiered?t._e():e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"CPU","label-for":"cpu"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(t.appUpdateSpecification.cpu)+" ")]),e("b-form-input",{attrs:{id:"cpu",placeholder:"CPU cores to use by default",type:"range",min:"0.1",max:"15",step:"0.1"},model:{value:t.appUpdateSpecification.cpu,callback:function(e){t.$set(t.appUpdateSpecification,"cpu",e)},expression:"appUpdateSpecification.cpu"}})],1),t.appUpdateSpecification.tiered?t._e():e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"RAM","label-for":"ram"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(t.appUpdateSpecification.ram)+" ")]),e("b-form-input",{attrs:{id:"ram",placeholder:"RAM in MB value to use by default",type:"range",min:"100",max:"59000",step:"100"},model:{value:t.appUpdateSpecification.ram,callback:function(e){t.$set(t.appUpdateSpecification,"ram",e)},expression:"appUpdateSpecification.ram"}})],1),t.appUpdateSpecification.tiered?t._e():e("b-form-group",{attrs:{"label-cols":"2","label-cols-lg":"1",label:"SSD","label-for":"ssd"}},[e("div",{staticClass:"mx-1"},[t._v(" "+t._s(t.appUpdateSpecification.hdd)+" ")]),e("b-form-input",{attrs:{id:"ssd",placeholder:"SSD in GB value to use by default",type:"range",min:"1",max:"820",step:"1"},model:{value:t.appUpdateSpecification.hdd,callback:function(e){t.$set(t.appUpdateSpecification,"hdd",e)},expression:"appUpdateSpecification.hdd"}})],1)],1)],1)],1),t.appUpdateSpecification.tiered?e("b-row",[e("b-col",{attrs:{xs:"12",md:"6",lg:"4"}},[e("b-card",{attrs:{title:"Cumulus"}},[e("div",[t._v(" CPU: "+t._s(t.appUpdateSpecification.cpubasic)+" ")]),e("b-form-input",{attrs:{type:"range",min:"0.1",max:"3",step:"0.1"},model:{value:t.appUpdateSpecification.cpubasic,callback:function(e){t.$set(t.appUpdateSpecification,"cpubasic",e)},expression:"appUpdateSpecification.cpubasic"}}),e("div",[t._v(" RAM: "+t._s(t.appUpdateSpecification.rambasic)+" ")]),e("b-form-input",{attrs:{type:"range",min:"100",max:"5000",step:"100"},model:{value:t.appUpdateSpecification.rambasic,callback:function(e){t.$set(t.appUpdateSpecification,"rambasic",e)},expression:"appUpdateSpecification.rambasic"}}),e("div",[t._v(" SSD: "+t._s(t.appUpdateSpecification.hddbasic)+" ")]),e("b-form-input",{attrs:{type:"range",min:"1",max:"180",step:"1"},model:{value:t.appUpdateSpecification.hddbasic,callback:function(e){t.$set(t.appUpdateSpecification,"hddbasic",e)},expression:"appUpdateSpecification.hddbasic"}})],1)],1),e("b-col",{attrs:{xs:"12",md:"6",lg:"4"}},[e("b-card",{attrs:{title:"Nimbus"}},[e("div",[t._v(" CPU: "+t._s(t.appUpdateSpecification.cpusuper)+" ")]),e("b-form-input",{attrs:{type:"range",min:"0.1",max:"7",step:"0.1"},model:{value:t.appUpdateSpecification.cpusuper,callback:function(e){t.$set(t.appUpdateSpecification,"cpusuper",e)},expression:"appUpdateSpecification.cpusuper"}}),e("div",[t._v(" RAM: "+t._s(t.appUpdateSpecification.ramsuper)+" ")]),e("b-form-input",{attrs:{type:"range",min:"100",max:"28000",step:"100"},model:{value:t.appUpdateSpecification.ramsuper,callback:function(e){t.$set(t.appUpdateSpecification,"ramsuper",e)},expression:"appUpdateSpecification.ramsuper"}}),e("div",[t._v(" SSD: "+t._s(t.appUpdateSpecification.hddsuper)+" ")]),e("b-form-input",{attrs:{type:"range",min:"1",max:"400",step:"1"},model:{value:t.appUpdateSpecification.hddsuper,callback:function(e){t.$set(t.appUpdateSpecification,"hddsuper",e)},expression:"appUpdateSpecification.hddsuper"}})],1)],1),e("b-col",{attrs:{xs:"12",lg:"4"}},[e("b-card",{attrs:{title:"Stratus"}},[e("div",[t._v(" CPU: "+t._s(t.appUpdateSpecification.cpubamf)+" ")]),e("b-form-input",{attrs:{type:"range",min:"0.1",max:"15",step:"0.1"},model:{value:t.appUpdateSpecification.cpubamf,callback:function(e){t.$set(t.appUpdateSpecification,"cpubamf",e)},expression:"appUpdateSpecification.cpubamf"}}),e("div",[t._v(" RAM: "+t._s(t.appUpdateSpecification.rambamf)+" ")]),e("b-form-input",{attrs:{type:"range",min:"100",max:"59000",step:"100"},model:{value:t.appUpdateSpecification.rambamf,callback:function(e){t.$set(t.appUpdateSpecification,"rambamf",e)},expression:"appUpdateSpecification.rambamf"}}),e("div",[t._v(" SSD: "+t._s(t.appUpdateSpecification.hddbamf)+" ")]),e("b-form-input",{attrs:{type:"range",min:"1",max:"820",step:"1"},model:{value:t.appUpdateSpecification.hddbamf,callback:function(e){t.$set(t.appUpdateSpecification,"hddbamf",e)},expression:"appUpdateSpecification.hddbamf"}})],1)],1)],1):t._e()],1),e("div",{staticClass:"flex adjustMaxWidth"},[e("b-form-checkbox",{staticClass:"custom-control-primary inline",attrs:{id:"tos",switch:""},model:{value:t.tosAgreed,callback:function(e){t.tosAgreed=e},expression:"tosAgreed"}}),t._v(" I agree with "),e("a",{attrs:{href:"https://cdn.runonflux.io/Flux_Terms_of_Service.pdf",target:"_blank",rel:"noopener noreferrer"}},[t._v(" Terms of Service ")]),e("br"),e("br")],1),e("div",{staticClass:"adjustMaxWidth"},[e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"mb-2",attrs:{variant:"success","aria-label":"Compute Update Message"},on:{click:t.checkFluxUpdateSpecificationsAndFormatMessage}},[t._v(" Compute Update Message ")])],1),t.dataToSign?e("div",{staticClass:"adjustMaxWidth"},[e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"2",label:"Update Message","label-for":"updatemessage"}},[e("b-form-textarea",{attrs:{id:"updatemessage",rows:"6",readonly:""},model:{value:t.dataToSign,callback:function(e){t.dataToSign=e},expression:"dataToSign"}})],1),e("b-form-group",{attrs:{"label-cols":"3","label-cols-lg":"2",label:"Signature","label-for":"updatesignature"}},[e("b-form-input",{attrs:{id:"updatesignature"},model:{value:t.signature,callback:function(e){t.signature=e},expression:"signature"}})],1),e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"6",lg:"8"}},[e("b-card",[e("h4",[t._v(" Note: Data has to be signed by the last application owner ")]),e("b-card-text",[t._v(" Price: "+t._s(t.appPricePerSpecs)+" FLUX ")]),e("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"my-1",attrs:{variant:"success","aria-label":"Update Flux App"},on:{click:t.update}},[t._v(" Update Flux App ")])],1)],1),e("b-col",{attrs:{xs:"6",lg:"4"}},[e("b-card",{attrs:{title:"Sign with"}},[e("div",{staticClass:"loginRow"},[e("a",{attrs:{href:`zel:?action=sign&message=${t.dataToSign}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${t.callbackValue}`},on:{click:t.initiateSignWSUpdate}},[e("img",{staticClass:"zelidLogin",attrs:{src:s(94452),alt:"Zel ID",height:"100%",width:"100%"}})]),e("a",{on:{click:t.initSSP}},[e("img",{staticClass:"sspLogin",attrs:{src:"dark"===t.skin?s(56070):s(58962),alt:"SSP",height:"100%",width:"100%"}})])]),e("div",{staticClass:"loginRow"},[e("a",{on:{click:t.initWalletConnect}},[e("img",{staticClass:"walletconnectLogin",attrs:{src:s(47622),alt:"WalletConnect",height:"100%",width:"100%"}})]),e("a",{on:{click:t.initMetamask}},[e("img",{staticClass:"metamaskLogin",attrs:{src:s(28125),alt:"Metamask",height:"100%",width:"100%"}})])])])],1)],1),t.updateHash?e("b-row",{staticClass:"match-height"},[e("b-col",{attrs:{xs:"6",lg:"8"}},[e("b-card",[e("b-card-text",[t._v(" To finish the application update, please make a transaction of "+t._s(t.appPricePerSpecs)+" FLUX to address '"+t._s(t.deploymentAddress)+"' with the following message: '"+t._s(t.updateHash)+"' ")]),e("br"),t._v(" The transaction must be mined by "+t._s(new Date(t.validTill).toLocaleString("en-GB",t.timeoptions.shortDate))+" "),e("br"),e("br"),t._v(" The application will be subscribed until "+t._s(new Date(t.subscribedTill).toLocaleString("en-GB",t.timeoptions.shortDate))+" ")],1)],1),e("b-col",{attrs:{xs:"6",lg:"4"}},[e("b-card",{attrs:{title:"Pay with Zelcore"}},[e("div",{staticClass:"loginRow"},[e("a",{attrs:{href:`zel:?action=pay&coin=zelcash&address=${t.deploymentAddress}&amount=${t.appPricePerSpecs}&message=${t.updateHash}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2Fflux_banner.png`}},[e("img",{staticClass:"zelidLogin",attrs:{src:s(94452),alt:"Zel ID",height:"100%",width:"100%"}})]),e("a",{on:{click:t.initSSPpay}},[e("img",{staticClass:"sspLogin",attrs:{src:"dark"===t.skin?s(56070):s(58962),alt:"SSP",height:"100%",width:"100%"}})])])])],1)],1):t._e()],1):t._e()])],1),t.output?e("div",{staticClass:"actionCenter"},[e("br"),e("b-form-textarea",{staticClass:"mt-1",attrs:{plaintext:"","no-resize":"",rows:t.output.length,value:t.stringOutput()}})],1):t._e(),t._m(0),e("b-modal",{attrs:{title:"Select Enterprise Nodes",size:"xl",centered:"","button-size":"sm","ok-only":"","ok-title":"Done"},model:{value:t.chooseEnterpriseDialog,callback:function(e){t.chooseEnterpriseDialog=e},expression:"chooseEnterpriseDialog"}},[e("b-row",[e("b-col",{staticClass:"my-1",attrs:{md:"4",sm:"4"}},[e("b-form-group",{staticClass:"mb-0"},[e("label",{staticClass:"d-inline-block text-left mr-50"},[t._v("Per page")]),e("b-form-select",{staticClass:"w-50",attrs:{id:"perPageSelect",size:"sm",options:t.entNodesSelectTable.pageOptions},model:{value:t.entNodesSelectTable.perPage,callback:function(e){t.$set(t.entNodesSelectTable,"perPage",e)},expression:"entNodesSelectTable.perPage"}})],1)],1),e("b-col",{staticClass:"my-1",attrs:{md:"8"}},[e("b-form-group",{staticClass:"mb-0",attrs:{label:"Filter","label-cols-sm":"1","label-align-sm":"right","label-for":"filterInput"}},[e("b-input-group",{attrs:{size:"sm"}},[e("b-form-input",{attrs:{id:"filterInput",type:"search",placeholder:"Type to Search"},model:{value:t.entNodesSelectTable.filter,callback:function(e){t.$set(t.entNodesSelectTable,"filter",e)},expression:"entNodesSelectTable.filter"}}),e("b-input-group-append",[e("b-button",{attrs:{disabled:!t.entNodesSelectTable.filter},on:{click:function(e){t.entNodesSelectTable.filter=""}}},[t._v(" Clear ")])],1)],1)],1)],1),e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"app-enterprise-nodes-table",attrs:{striped:"",hover:"",responsive:"","per-page":t.entNodesSelectTable.perPage,"current-page":t.entNodesSelectTable.currentPage,items:t.enterpriseNodes,fields:t.entNodesSelectTable.fields,"sort-by":t.entNodesSelectTable.sortBy,"sort-desc":t.entNodesSelectTable.sortDesc,"sort-direction":t.entNodesSelectTable.sortDirection,filter:t.entNodesSelectTable.filter,"filter-included-fields":t.entNodesSelectTable.filterOn,"show-empty":"","empty-text":"No Enterprise Nodes For Addition Found"},on:{"update:sortBy":function(e){return t.$set(t.entNodesSelectTable,"sortBy",e)},"update:sort-by":function(e){return t.$set(t.entNodesSelectTable,"sortBy",e)},"update:sortDesc":function(e){return t.$set(t.entNodesSelectTable,"sortDesc",e)},"update:sort-desc":function(e){return t.$set(t.entNodesSelectTable,"sortDesc",e)}},scopedSlots:t._u([{key:"cell(show_details)",fn:function(s){return[e("a",{on:{click:s.toggleDetails}},[s.detailsShowing?t._e():e("v-icon",{attrs:{name:"chevron-down"}}),s.detailsShowing?e("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(s){return[e("b-card",{},[e("list-entry",{attrs:{title:"IP Address",data:s.item.ip}}),e("list-entry",{attrs:{title:"Public Key",data:s.item.pubkey}}),e("list-entry",{attrs:{title:"Node Address",data:s.item.payment_address}}),e("list-entry",{attrs:{title:"Collateral",data:`${s.item.txhash}:${s.item.outidx}`}}),e("list-entry",{attrs:{title:"Tier",data:s.item.tier}}),e("list-entry",{attrs:{title:"Overall Score",data:s.item.score.toString()}}),e("list-entry",{attrs:{title:"Collateral Score",data:s.item.collateralPoints.toString()}}),e("list-entry",{attrs:{title:"Maturity Score",data:s.item.maturityPoints.toString()}}),e("list-entry",{attrs:{title:"Public Key Score",data:s.item.pubKeyPoints.toString()}}),e("list-entry",{attrs:{title:"Enterprise Apps Assigned",data:s.item.enterpriseApps.toString()}}),e("div",[e("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"primary"},on:{click:function(e){t.openNodeFluxOS(t.locationRow.item.ip.split(":")[0],t.locationRow.item.ip.split(":")[1]?+t.locationRow.item.ip.split(":")[1]-1:16126)}}},[t._v(" Visit FluxNode ")])],1)],1)]}},{key:"cell(ip)",fn:function(e){return[t._v(" "+t._s(e.item.ip)+" ")]}},{key:"cell(payment_address)",fn:function(e){return[t._v(" "+t._s(e.item.payment_address.slice(0,8))+"..."+t._s(e.item.payment_address.slice(e.item.payment_address.length-8,e.item.payment_address.length))+" ")]}},{key:"cell(tier)",fn:function(e){return[t._v(" "+t._s(e.item.tier)+" ")]}},{key:"cell(score)",fn:function(e){return[t._v(" "+t._s(e.item.score)+" ")]}},{key:"cell(actions)",fn:function(s){return[e("b-button",{staticClass:"mr-1 mb-1",attrs:{size:"sm",variant:"primary"},on:{click:function(e){t.openNodeFluxOS(s.item.ip.split(":")[0],s.item.ip.split(":")[1]?+s.item.ip.split(":")[1]-1:16126)}}},[t._v(" Visit ")]),t.selectedEnterpriseNodes.find((t=>t.ip===s.item.ip))?t._e():e("b-button",{staticClass:"mr-1 mb-1",attrs:{id:`add-${s.item.ip}`,size:"sm",variant:"success"},on:{click:function(e){return t.addFluxNode(s.item.ip)}}},[t._v(" Add ")]),t.selectedEnterpriseNodes.find((t=>t.ip===s.item.ip))?e("b-button",{staticClass:"mr-1 mb-1",attrs:{id:`add-${s.item.ip}`,size:"sm",variant:"danger"},on:{click:function(e){return t.removeFluxNode(s.item.ip)}}},[t._v(" Remove ")]):t._e()]}}])})],1),e("b-col",{attrs:{cols:"12"}},[e("b-pagination",{staticClass:"my-0",attrs:{"total-rows":t.entNodesSelectTable.totalRows,"per-page":t.entNodesSelectTable.perPage,align:"center",size:"sm"},model:{value:t.entNodesSelectTable.currentPage,callback:function(e){t.$set(t.entNodesSelectTable,"currentPage",e)},expression:"entNodesSelectTable.currentPage"}}),e("span",{staticClass:"table-total"},[t._v("Total: "+t._s(t.entNodesSelectTable.totalRows))])],1)],1)],1)],1)},o=[function(){var t=this,e=t._self._c;return e("div",[e("br"),t._v(" By managing an application I agree with "),e("a",{attrs:{href:"https://cdn.runonflux.io/Flux_Terms_of_Service.pdf",target:"_blank",rel:"noopener noreferrer"}},[t._v(" Terms of Service ")])])}],n=(s(70560),s(98858),s(61318),s(33228),s(73106)),r=s(58887),l=s(51015),c=s(16521),p=s(66456),d=s(92095),u=s(31642),h=s(87379),m=s(51909),f=s(71605),g=s(43022),b=s(4060),v=s(27754),y=s(22418),w=s(50725),C=s(86855),_=s(64206),S=s(49379),x=s(97794),k=s(26253),R=s(15193),A=s(1759),$=s(87167),T=s(333),U=s(46709),N=s(22183),P=s(19692),L=s(8051),B=s(78959),E=s(10962),F=s(45752),I=s(22981),O=s(5870),D=s(67166),M=s.n(D),z=s(20266),G=s(20629),j=s(34547),W=s(87156),V=s(51748),q=s(90699),H=s.n(q),K=s(43672),Z=s(27616),J=s(38511),Y=s(94145),X=s(12320),Q=s(12617),tt=s(67511),et=s(32993),st=s(12286);const at=Object.create(null);at["open"]="0",at["close"]="1",at["ping"]="2",at["pong"]="3",at["message"]="4",at["upgrade"]="5",at["noop"]="6";const it=Object.create(null);Object.keys(at).forEach((t=>{it[at[t]]=t}));const ot={type:"error",data:"parser error"},nt="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),rt="function"===typeof ArrayBuffer,lt=t=>"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,ct=({type:t,data:e},s,a)=>nt&&e instanceof Blob?s?a(e):pt(e,a):rt&&(e instanceof ArrayBuffer||lt(e))?s?a(e):pt(new Blob([e]),a):a(at[t]+(e||"")),pt=(t,e)=>{const s=new FileReader;return s.onload=function(){const t=s.result.split(",")[1];e("b"+(t||""))},s.readAsDataURL(t)};function dt(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let ut;function ht(t,e){return nt&&t.data instanceof Blob?t.data.arrayBuffer().then(dt).then(e):rt&&(t.data instanceof ArrayBuffer||lt(t.data))?e(dt(t.data)):void ct(t,!1,(t=>{ut||(ut=new TextEncoder),e(ut.encode(t))}))}const mt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ft="undefined"===typeof Uint8Array?[]:new Uint8Array(256);for(let ms=0;ms{let e,s,a,i,o,n=.75*t.length,r=t.length,l=0;"="===t[t.length-1]&&(n--,"="===t[t.length-2]&&n--);const c=new ArrayBuffer(n),p=new Uint8Array(c);for(e=0;e>4,p[l++]=(15&a)<<4|i>>2,p[l++]=(3&i)<<6|63&o;return c},bt="function"===typeof ArrayBuffer,vt=(t,e)=>{if("string"!==typeof t)return{type:"message",data:wt(t,e)};const s=t.charAt(0);if("b"===s)return{type:"message",data:yt(t.substring(1),e)};const a=it[s];return a?t.length>1?{type:it[s],data:t.substring(1)}:{type:it[s]}:ot},yt=(t,e)=>{if(bt){const s=gt(t);return wt(s,e)}return{base64:!0,data:t}},wt=(t,e)=>{switch(e){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},Ct=String.fromCharCode(30),_t=(t,e)=>{const s=t.length,a=new Array(s);let i=0;t.forEach(((t,o)=>{ct(t,!1,(t=>{a[o]=t,++i===s&&e(a.join(Ct))}))}))},St=(t,e)=>{const s=t.split(Ct),a=[];for(let i=0;i{const a=s.length;let i;if(a<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,a);else if(a<65536){i=new Uint8Array(3);const t=new DataView(i.buffer);t.setUint8(0,126),t.setUint16(1,a)}else{i=new Uint8Array(9);const t=new DataView(i.buffer);t.setUint8(0,127),t.setBigUint64(1,BigInt(a))}t.data&&"string"!==typeof t.data&&(i[0]|=128),e.enqueue(i),e.enqueue(s)}))}})}let kt;function Rt(t){return t.reduce(((t,e)=>t+e.length),0)}function At(t,e){if(t[0].length===e)return t.shift();const s=new Uint8Array(e);let a=0;for(let i=0;iMath.pow(2,21)-1){r.enqueue(ot);break}i=o*Math.pow(2,32)+e.getUint32(4),a=3}else{if(Rt(s)t){r.enqueue(ot);break}}}})}const Tt=4;function Ut(t){if(t)return Nt(t)}function Nt(t){for(var e in Ut.prototype)t[e]=Ut.prototype[e];return t}Ut.prototype.on=Ut.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},Ut.prototype.once=function(t,e){function s(){this.off(t,s),e.apply(this,arguments)}return s.fn=e,this.on(t,s),this},Ut.prototype.off=Ut.prototype.removeListener=Ut.prototype.removeAllListeners=Ut.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var s,a=this._callbacks["$"+t];if(!a)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i"undefined"!==typeof self?self:"undefined"!==typeof window?window:Function("return this")())();function Lt(t,...e){return e.reduce(((e,s)=>(t.hasOwnProperty(s)&&(e[s]=t[s]),e)),{})}const Bt=Pt.setTimeout,Et=Pt.clearTimeout;function Ft(t,e){e.useNativeTimers?(t.setTimeoutFn=Bt.bind(Pt),t.clearTimeoutFn=Et.bind(Pt)):(t.setTimeoutFn=Pt.setTimeout.bind(Pt),t.clearTimeoutFn=Pt.clearTimeout.bind(Pt))}const It=1.33;function Ot(t){return"string"===typeof t?Dt(t):Math.ceil((t.byteLength||t.size)*It)}function Dt(t){let e=0,s=0;for(let a=0,i=t.length;a=57344?s+=3:(a++,s+=4);return s}function Mt(t){let e="";for(let s in t)t.hasOwnProperty(s)&&(e.length&&(e+="&"),e+=encodeURIComponent(s)+"="+encodeURIComponent(t[s]));return e}function zt(t){let e={},s=t.split("&");for(let a=0,i=s.length;a0);return e}function Yt(){const t=Jt(+new Date);return t!==Ht?(Kt=0,Ht=t):t+"."+Jt(Kt++)}for(;Zt{this.readyState="paused",t()};if(this.polling||!this.writable){let t=0;this.polling&&(t++,this.once("pollComplete",(function(){--t||e()}))),this.writable||(t++,this.once("drain",(function(){--t||e()})))}else e()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const e=t=>{if("opening"===this.readyState&&"open"===t.type&&this.onOpen(),"close"===t.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(t)};St(t,this.socket.binaryType).forEach(e),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};"open"===this.readyState?t():this.once("open",t)}write(t){this.writable=!1,_t(t,(t=>{this.doWrite(t,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const t=this.opts.secure?"https":"http",e=this.query||{};return!1!==this.opts.timestampRequests&&(e[this.opts.timestampParam]=Yt()),this.supportsBinary||e.sid||(e.b64=1),this.createUri(t,e)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new oe(this.uri(),t)}doWrite(t,e){const s=this.request({method:"POST",data:t});s.on("success",e),s.on("error",((t,e)=>{this.onError("xhr post error",t,e)}))}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",((t,e)=>{this.onError("xhr poll error",t,e)})),this.pollXhr=t}}class oe extends Ut{constructor(t,e){super(),Ft(this,e),this.opts=e,this.method=e.method||"GET",this.uri=t,this.data=void 0!==e.data?e.data:null,this.create()}create(){var t;const e=Lt(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this.opts.xd;const s=this.xhr=new te(e);try{s.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let t in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(t)&&s.setRequestHeader(t,this.opts.extraHeaders[t])}}catch(a){}if("POST"===this.method)try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(a){}try{s.setRequestHeader("Accept","*/*")}catch(a){}null===(t=this.opts.cookieJar)||void 0===t||t.addCookies(s),"withCredentials"in s&&(s.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(s.timeout=this.opts.requestTimeout),s.onreadystatechange=()=>{var t;3===s.readyState&&(null===(t=this.opts.cookieJar)||void 0===t||t.parseCookies(s)),4===s.readyState&&(200===s.status||1223===s.status?this.onLoad():this.setTimeoutFn((()=>{this.onError("number"===typeof s.status?s.status:0)}),0))},s.send(this.data)}catch(a){return void this.setTimeoutFn((()=>{this.onError(a)}),0)}"undefined"!==typeof document&&(this.index=oe.requestsCount++,oe.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if("undefined"!==typeof this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=se,t)try{this.xhr.abort()}catch(e){}"undefined"!==typeof document&&delete oe.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;null!==t&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(oe.requestsCount=0,oe.requests={},"undefined"!==typeof document)if("function"===typeof attachEvent)attachEvent("onunload",ne);else if("function"===typeof addEventListener){const t="onpagehide"in Pt?"pagehide":"unload";addEventListener(t,ne,!1)}function ne(){for(let t in oe.requests)oe.requests.hasOwnProperty(t)&&oe.requests[t].abort()}const re=(()=>{const t="function"===typeof Promise&&"function"===typeof Promise.resolve;return t?t=>Promise.resolve().then(t):(t,e)=>e(t,0)})(),le=Pt.WebSocket||Pt.MozWebSocket,ce=!0,pe="arraybuffer";var de=s(48764)["lW"];const ue="undefined"!==typeof navigator&&"string"===typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class he extends jt{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),e=this.opts.protocols,s=ue?{}:Lt(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=ce&&!ue?e?new le(t,e):new le(t):new le(t,e,s)}catch(hs){return this.emitReserved("error",hs)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let e=0;e{const e={};if(!ce&&(s.options&&(e.compress=s.options.compress),this.opts.perMessageDeflate)){const s="string"===typeof t?de.byteLength(t):t.length;s{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){"undefined"!==typeof this.ws&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",e=this.query||{};return this.opts.timestampRequests&&(e[this.opts.timestampParam]=Yt()),this.supportsBinary||(e.b64=1),this.createUri(t,e)}check(){return!!le}}class me extends jt{get name(){return"webtransport"}doOpen(){"function"===typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then((()=>{this.onClose()})).catch((t=>{this.onError("webtransport error",t)})),this.transport.ready.then((()=>{this.transport.createBidirectionalStream().then((t=>{const e=$t(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=t.readable.pipeThrough(e).getReader(),a=xt();a.readable.pipeTo(t.writable),this.writer=a.writable.getWriter();const i=()=>{s.read().then((({done:t,value:e})=>{t||(this.onPacket(e),i())})).catch((t=>{}))};i();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this.writer.write(o).then((()=>this.onOpen()))}))})))}write(t){this.writable=!1;for(let e=0;e{a&&re((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var t;null===(t=this.transport)||void 0===t||t.close()}}const fe={websocket:he,webtransport:me,polling:ie},ge=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,be=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ve(t){if(t.length>2e3)throw"URI too long";const e=t,s=t.indexOf("["),a=t.indexOf("]");-1!=s&&-1!=a&&(t=t.substring(0,s)+t.substring(s,a).replace(/:/g,";")+t.substring(a,t.length));let i=ge.exec(t||""),o={},n=14;while(n--)o[be[n]]=i[n]||"";return-1!=s&&-1!=a&&(o.source=e,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=ye(o,o["path"]),o.queryKey=we(o,o["query"]),o}function ye(t,e){const s=/\/{2,9}/g,a=e.replace(s,"/").split("/");return"/"!=e.slice(0,1)&&0!==e.length||a.splice(0,1),"/"==e.slice(-1)&&a.splice(a.length-1,1),a}function we(t,e){const s={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(t,e,a){e&&(s[e]=a)})),s}class Ce extends Ut{constructor(t,e={}){super(),this.binaryType=pe,this.writeBuffer=[],t&&"object"===typeof t&&(e=t,t=null),t?(t=ve(t),e.hostname=t.host,e.secure="https"===t.protocol||"wss"===t.protocol,e.port=t.port,t.query&&(e.query=t.query)):e.host&&(e.hostname=ve(e.host).host),Ft(this,e),this.secure=null!=e.secure?e.secure:"undefined"!==typeof location&&"https:"===location.protocol,e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.hostname=e.hostname||("undefined"!==typeof location?location.hostname:"localhost"),this.port=e.port||("undefined"!==typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=e.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},e),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"===typeof this.opts.query&&(this.opts.query=zt(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"===typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const e=Object.assign({},this.opts.query);e.EIO=Tt,e.transport=t,this.id&&(e.sid=this.id);const s=Object.assign({},this.opts,{query:e,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new fe[t](s)}open(){let t;if(this.opts.rememberUpgrade&&Ce.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(e){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(t=>this.onClose("transport close",t)))}probe(t){let e=this.createTransport(t),s=!1;Ce.priorWebsocketSuccess=!1;const a=()=>{s||(e.send([{type:"ping",data:"probe"}]),e.once("packet",(t=>{if(!s)if("pong"===t.type&&"probe"===t.data){if(this.upgrading=!0,this.emitReserved("upgrading",e),!e)return;Ce.priorWebsocketSuccess="websocket"===e.name,this.transport.pause((()=>{s||"closed"!==this.readyState&&(c(),this.setTransport(e),e.send([{type:"upgrade"}]),this.emitReserved("upgrade",e),e=null,this.upgrading=!1,this.flush())}))}else{const t=new Error("probe error");t.transport=e.name,this.emitReserved("upgradeError",t)}})))};function i(){s||(s=!0,c(),e.close(),e=null)}const o=t=>{const s=new Error("probe error: "+t);s.transport=e.name,i(),this.emitReserved("upgradeError",s)};function n(){o("transport closed")}function r(){o("socket closed")}function l(t){e&&t.name!==e.name&&i()}const c=()=>{e.removeListener("open",a),e.removeListener("error",o),e.removeListener("close",n),this.off("close",r),this.off("upgrading",l)};e.once("open",a),e.once("error",o),e.once("close",n),this.once("close",r),this.once("upgrading",l),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==t?this.setTimeoutFn((()=>{s||e.open()}),200):e.open()}onOpen(){if(this.readyState="open",Ce.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let t=0;const e=this.upgrades.length;for(;t{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){const t=this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1;if(!t)return this.writeBuffer;let e=1;for(let s=0;s0&&e>this.maxPayload)return this.writeBuffer.slice(0,s);e+=2}return this.writeBuffer}write(t,e,s){return this.sendPacket("message",t,e,s),this}send(t,e,s){return this.sendPacket("message",t,e,s),this}sendPacket(t,e,s,a){if("function"===typeof e&&(a=e,e=void 0),"function"===typeof s&&(a=s,s=null),"closing"===this.readyState||"closed"===this.readyState)return;s=s||{},s.compress=!1!==s.compress;const i={type:t,data:e,options:s};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),a&&this.once("flush",a),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},e=()=>{this.off("upgrade",e),this.off("upgradeError",e),t()},s=()=>{this.once("upgrade",e),this.once("upgradeError",e)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?s():t()})):this.upgrading?s():t()),this}onError(t){Ce.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,e){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"===typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,e),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const e=[];let s=0;const a=t.length;for(;s"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,ke=Object.prototype.toString,Re="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===ke.call(Blob),Ae="function"===typeof File||"undefined"!==typeof File&&"[object FileConstructor]"===ke.call(File);function $e(t){return Se&&(t instanceof ArrayBuffer||xe(t))||Re&&t instanceof Blob||Ae&&t instanceof File}function Te(t,e){if(!t||"object"!==typeof t)return!1;if(Array.isArray(t)){for(let e=0,s=t.length;e=0&&t.num{delete this.acks[t];for(let e=0;e{this.io.clearTimeoutFn(i),e.apply(this,[null,...t])}}emitWithAck(t,...e){const s=void 0!==this.flags.timeout||void 0!==this._opts.ackTimeout;return new Promise(((a,i)=>{e.push(((t,e)=>s?t?i(t):a(e):a(t))),this.emit(t,...e)}))}_addToQueue(t){let e;"function"===typeof t[t.length-1]&&(e=t.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push(((t,...a)=>{if(s!==this._queue[0])return;const i=null!==t;return i?s.tryCount>this._opts.retries&&(this._queue.shift(),e&&e(t)):(this._queue.shift(),e&&e(null,...a)),s.pending=!1,this._drainQueue()})),this._queue.push(s),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||0===this._queue.length)return;const e=this._queue[0];e.pending&&!t||(e.pending=!0,e.tryCount++,this.flags=e.flags,this.emit.apply(this,e.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){"function"==typeof this.auth?this.auth((t=>{this._sendConnectPacket(t)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Fe.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,e)}onpacket(t){const e=t.nsp===this.nsp;if(e)switch(t.type){case Fe.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Fe.EVENT:case Fe.BINARY_EVENT:this.onevent(t);break;case Fe.ACK:case Fe.BINARY_ACK:this.onack(t);break;case Fe.DISCONNECT:this.ondisconnect();break;case Fe.CONNECT_ERROR:this.destroy();const e=new Error(t.data.message);e.data=t.data.data,this.emitReserved("connect_error",e);break}}onevent(t){const e=t.data||[];null!=t.id&&e.push(this.ack(t.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const e=this._anyListeners.slice();for(const s of e)s.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&"string"===typeof t[t.length-1]&&(this._lastOffset=t[t.length-1])}ack(t){const e=this;let s=!1;return function(...a){s||(s=!0,e.packet({type:Fe.ACK,id:t,data:a}))}}onack(t){const e=this.acks[t.id];"function"===typeof e&&(e.apply(this,t.data),delete this.acks[t.id])}onconnect(t,e){this.id=t,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((t=>this.emitEvent(t))),this.receiveBuffer=[],this.sendBuffer.forEach((t=>{this.notifyOutgoingListeners(t),this.packet(t)})),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((t=>t())),this.subs=void 0),this.io["_destroy"](this)}disconnect(){return this.connected&&this.packet({type:Fe.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const e=this._anyListeners;for(let s=0;s0&&t.jitter<=1?t.jitter:0,this.attempts=0}We.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),s=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-s:t+s}return 0|Math.min(t,this.max)},We.prototype.reset=function(){this.attempts=0},We.prototype.setMin=function(t){this.ms=t},We.prototype.setMax=function(t){this.max=t},We.prototype.setJitter=function(t){this.jitter=t};class Ve extends Ut{constructor(t,e){var s;super(),this.nsps={},this.subs=[],t&&"object"===typeof t&&(e=t,t=void 0),e=e||{},e.path=e.path||"/socket.io",this.opts=e,Ft(this,e),this.reconnection(!1!==e.reconnection),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(s=e.randomizationFactor)&&void 0!==s?s:.5),this.backoff=new We({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this._readyState="closed",this.uri=t;const i=e.parser||a;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=!1!==e.autoConnect,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return void 0===t?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var e;return void 0===t?this._reconnectionDelay:(this._reconnectionDelay=t,null===(e=this.backoff)||void 0===e||e.setMin(t),this)}randomizationFactor(t){var e;return void 0===t?this._randomizationFactor:(this._randomizationFactor=t,null===(e=this.backoff)||void 0===e||e.setJitter(t),this)}reconnectionDelayMax(t){var e;return void 0===t?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,null===(e=this.backoff)||void 0===e||e.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new Ce(this.uri,this.opts);const e=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const a=ze(e,"open",(function(){s.onopen(),t&&t()})),i=e=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",e),t?t(e):this.maybeReconnectOnOpen()},o=ze(e,"error",i);if(!1!==this._timeout){const t=this._timeout,s=this.setTimeoutFn((()=>{a(),i(new Error("timeout")),e.close()}),t);this.opts.autoUnref&&s.unref(),this.subs.push((()=>{this.clearTimeoutFn(s)}))}return this.subs.push(a),this.subs.push(o),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(ze(t,"ping",this.onping.bind(this)),ze(t,"data",this.ondata.bind(this)),ze(t,"error",this.onerror.bind(this)),ze(t,"close",this.onclose.bind(this)),ze(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(e){this.onclose("parse error",e)}}ondecoded(t){re((()=>{this.emitReserved("packet",t)}),this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,e){let s=this.nsps[t];return s?this._autoConnect&&!s.active&&s.connect():(s=new je(this,t,e),this.nsps[t]=s),s}_destroy(t){const e=Object.keys(this.nsps);for(const s of e){const t=this.nsps[s];if(t.active)return}this._close()}_packet(t){const e=this.encoder.encode(t);for(let s=0;st())),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,e){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const e=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn((()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),t.skipReconnect||t.open((e=>{e?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",e)):t.onreconnect()})))}),e);this.opts.autoUnref&&s.unref(),this.subs.push((()=>{this.clearTimeoutFn(s)}))}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const qe={};function He(t,e){"object"===typeof t&&(e=t,t=void 0),e=e||{};const s=_e(t,e.path||"/socket.io"),a=s.source,i=s.id,o=s.path,n=qe[i]&&o in qe[i]["nsps"],r=e.forceNew||e["force new connection"]||!1===e.multiplex||n;let l;return r?l=new Ve(a,e):(qe[i]||(qe[i]=new Ve(a,e)),l=qe[i]),s.query&&!e.query&&(e.query=s.queryKey),l.socket(s.path,e)}Object.assign(He,{Manager:Ve,Socket:je,io:He,connect:He});var Ke=s(37307),Ze=s(48764)["lW"];const Je="df787edc6839c7de49d527bba9199eaa",Ye={projectId:Je,metadata:{name:"Flux Cloud",description:"Flux, Your Gateway to a Decentralized World",url:"https://home.runonflux.io",icons:["https://home.runonflux.io/img/logo.png"]}},Xe={enableDebug:!0},Qe=new Y.MetaMaskSDK(Xe);let ts;const es=s(9669),ss=s(80129),as=s(58971),is=s(79650),os=s(63005),ns=s(56761),rs=s(57306),ls={components:{JsonViewer:H(),BAlert:n.F,BTabs:r.M,BTab:l.L,BTable:c.h,BTd:p.S,BTr:d.G,BDropdown:u.R,BDropdownItem:h.E,BFormTag:m.d,BFormTags:f.D,BIcon:g.H,BInputGroup:b.w,BInputGroupPrepend:v.P,BInputGroupAppend:y.B,BCol:w.l,BCard:C._,BCardText:_.j,BCardTitle:S._,BCardGroup:x.o,BRow:k.T,BButton:R.T,BSpinner:A.X,BFormRadioGroup:$.Q,BFormTextarea:T.y,BFormGroup:U.x,BFormInput:N.e,BFormCheckbox:P.l,BFormSelect:L.K,BFormSelectOption:B.c,BPagination:E.c,BProgress:F.D,BProgressBar:I.Q,ConfirmDialog:W.Z,ListEntry:V.Z,ToastificationContent:j.Z,VueApexCharts:M()},directives:{"b-tooltip":O.o,Ripple:z.Z},props:{appName:{type:String,required:!0},global:{type:Boolean,required:!0},installedApps:{type:Array,required:!0}},data(){return{windowWidth:window.innerWidth,showTopUpload:!1,showTopRemote:!1,alertMessage:"",alertVariant:"",restoreFromUpload:!1,restoreFromUploadStatus:"",restoreFromRemoteURLStatus:"",downloadingFromUrl:!1,files:[],backupProgress:!1,tarProgress:"",fileProgress:[],showProgressBar:!1,restoreOptions:[{value:"FluxDrive",text:"FluxDrive",disabled:!0},{value:"Remote URL",text:"Remote URL",disabled:!1},{value:"Upload File",text:"Upload File",disabled:!1}],storageMethod:[{value:"flux",disabled:!0,text:"FluxDrive"},{value:"google",disabled:!0,text:"GoogleDrive"},{value:"as3",disabled:!0,text:"AS3Storage"}],components:[],selectedRestoreOption:null,selectedStorageMethod:null,selectedBackupComponents:[],items:[],items1:[],checkpoints:[{timestamp:1705483856,components:[{component:"lime",file_url:"http//...",file_size:"133"},{component:"orange",file_url:"http//...",file_size:"123"}]},{timestamp:1705485856,components:[{component:"lime",file_url:"http//...",file_size:"143"},{component:"orange",file_url:"http//...",file_size:"123"}]}],sigInPrivilage:!0,backupList:[],backupToUpload:[],restoreRemoteUrl:"",restoreRemoteFile:null,restoreRemoteUrlComponent:null,restoreRemoteUrlItems:[],newComponents:[],itemKey:[],expandedDetails:[],itemValue:[],sortbackupTableKey:"timestamp",sortbackupTableDesc:!0,nestedTableFilter:"",backupTableFields:[{key:"timestamp",label:"Name",thStyle:{width:"65%"}},{key:"time",label:"Time",thStyle:{width:"25%"}},{key:"actions",label:"Actions",thStyle:{width:"5%"},class:"text-center"}],restoreComponents:[{value:"",text:"all"},{value:"lime",text:"lime"},{value:"orange",text:"orange"}],localBackupTableFields:[{key:"isActive",label:"",thStyle:{width:"5%"},class:"text-center"},{key:"component",label:"Component Name",thStyle:{width:"40%"}},{key:"create",label:"CreateAt",thStyle:{width:"17%"}},{key:"expire",label:"ExpireAt",thStyle:{width:"17%"}},{key:"file_size",label:"Size",thStyle:{width:"8%"}}],newComponentsTableFields:[{key:"component",label:"Component Name",thStyle:{width:"25%"}},{key:"file_url",label:"URL",thStyle:{width:"55%"}},{key:"timestamp",label:"Timestamp",thStyle:{width:"6%"}},{key:"file_size",label:"Size",thStyle:{width:"9%"}}],componentsTable(){return[{key:"component",label:"Component Name",thStyle:{width:"30%"}},{key:"file_url",label:"URL",thStyle:{width:"55%"}},{key:"file_size",label:"Size",thStyle:{width:"10%"}},{key:"actions",label:"Actions",thStyle:{width:"5%"},class:"text-center"}]},socket:null,terminal:null,selectedCmd:null,selectedApp:null,enableUser:!1,userInputValue:"",customValue:"",envInputValue:"",enableEnvironment:!1,isVisible:!1,isConnecting:!1,options:[{label:"Linux",options:["/bin/bash","/bin/ash","/bin/sh"]},{label:"Other",options:["Custom"]}],timeoptions:os,output:"",fluxCommunication:!1,commandExecuting:!1,getAllAppsResponse:{status:"",data:[]},updatetype:"fluxappupdate",version:1,dataForAppUpdate:{},dataToSign:"",timestamp:"",signature:"",updateHash:"",websocket:null,selectedAppOwner:"",appSpecification:{},callResponse:{status:"",data:""},callBResponse:{status:"",data:[]},appExec:{cmd:"",env:""},appUpdateSpecification:{version:3,name:"",description:"",repotag:"",owner:"",ports:"",domains:"",enviromentParameters:"",commands:"",containerPorts:"",containerData:"",instances:3,cpu:null,ram:null,hdd:null,tiered:!1,cpubasic:null,rambasic:null,hddbasic:null,cpusuper:null,ramsuper:null,hddsuper:null,cpubamf:null,rambamf:null,hddbamf:null},instances:{data:[],fields:[{key:"show_details",label:""},{key:"ip",label:"IP Address",sortable:!0},{key:"continent",label:"Continent",sortable:!0},{key:"country",label:"Country",sortable:!0},{key:"region",label:"Region",sortable:!0},{key:"visit",label:"Visit"}],perPage:10,pageOptions:[10,25,50,100],sortBy:"",sortDesc:!1,sortDirection:"asc",filter:"",filterOn:[],totalRows:1,currentPage:1},total:"",downloaded:"",downloadedSize:"",abortToken:{},deploymentAddress:"",appPricePerSpecs:0,maxInstances:100,minInstances:3,globalZelidAuthorized:!1,monitoringStream:{},statsFields:[{key:"timestamp",label:"Date"},{key:"cpu",label:"CPU"},{key:"memory",label:"RAM"},{key:"disk",label:"DISK"},{key:"net",label:"NET I/O"},{key:"block",label:"BLOCK I/O"},{key:"pids",label:"PIDS"}],possibleLocations:[],allowedGeolocations:{},forbiddenGeolocations:{},numberOfGeolocations:1,numberOfNegativeGeolocations:1,minExpire:5e3,maxExpire:264e3,extendSubscription:!0,daemonBlockCount:-1,expirePosition:2,minutesRemaining:0,expireOptions:[{value:5e3,label:"1 week",time:6048e5},{value:11e3,label:"2 weeks",time:12096e5},{value:22e3,label:"1 month",time:2592e6},{value:66e3,label:"3 months",time:7776e6},{value:132e3,label:"6 months",time:15552e6},{value:264e3,label:"1 year",time:31536e6}],tosAgreed:!1,marketPlaceApps:[],generalMultiplier:1,enterpriseNodes:[],selectedEnterpriseNodes:[],enterprisePublicKeys:[],maximumEnterpriseNodes:120,entNodesTable:{fields:[{key:"show_details",label:""},{key:"ip",label:"IP Address",sortable:!0},{key:"payment_address",label:"Node Address",sortable:!0},{key:"tier",label:"Tier",sortable:!0},{key:"score",label:"Score",sortable:!0},{key:"actions",label:"Actions"}],perPage:10,pageOptions:[5,10,25,50,100],sortBy:"",sortDesc:!1,sortDirection:"asc",filter:"",filterOn:[],currentPage:1},entNodesSelectTable:{fields:[{key:"show_details",label:""},{key:"ip",label:"IP Address",sortable:!0},{key:"payment_address",label:"Node Address",sortable:!0},{key:"tier",label:"Tier",sortable:!0},{key:"score",label:"Enterprise Score",sortable:!0},{key:"actions",label:"Actions"}],perPage:25,pageOptions:[5,10,25,50,100],sortBy:"",sortDesc:!1,sortDirection:"asc",filter:"",filterOn:[],currentPage:1,totalRows:1},chooseEnterpriseDialog:!1,isPrivateApp:!1,signClient:null,masterIP:"",selectedIp:null,masterSlaveApp:!1,applicationManagementAndStatus:""}},computed:{skin(){return(0,Ke.Z)().skin.value},zelidHeader(){const t=localStorage.getItem("zelidauth"),e={zelidauth:t};return e},ipAddress(){const t=as.get("backendURL");if(t)return`${as.get("backendURL").split(":")[0]}:${as.get("backendURL").split(":")[1]}`;const{hostname:e}=window.location;return`http://${e}`},filesToUpload(){return this.files.length>0&&this.files.some((t=>!t.uploading&&!t.uploaded&&0===t.progress))},computedFileProgress(){return this.fileProgress},downloadLabel(){this.totalMB=this.backupList.reduce(((t,e)=>t+parseFloat(e.file_size)),2);const t=(this.downloadedSize/1048576).toFixed(2);return t===this.totalMB&&setTimeout((()=>{this.showProgressBar=!1}),5e3),`${t} / ${this.totalMB} MB`},isValidUrl(){const t=/^(http|https):\/\/[^\s]+$/,e=this.restoreRemoteUrl.split("?"),s=e[0];return""===this.restoreRemoteUrl||s.endsWith(".tar.gz")&&t.test(s)},urlValidationState(){return!!this.isValidUrl&&null},urlValidationMessage(){return this.isValidUrl?null:"Please enter a valid URL ending with .tar.gz"},computedRestoreRemoteURLFields(){return this.RestoreTableBuilder("URL")},computedRestoreUploadFileFields(){return this.RestoreTableBuilder("File_name")},checkpointsTable(){return[{key:"name",label:"Name",thStyle:{width:"70%"}},{key:"date",label:"Date",thStyle:{width:"20%"}},{key:"action",label:"Action",thStyle:{width:"5%"}}]},componentsTable1(){return[{key:"component",label:"Component Name",thStyle:{width:"30%"}},{key:"file_url",label:"URL",thStyle:{width:"55%"}},{key:"file_size",label:"Size",thStyle:{width:"10%"}},{key:"actions",label:"Actions",thStyle:{width:"5%"},class:"text-center"}]},componentAvailableOptions(){return 1===this.components.length&&(this.selectedBackupComponents=this.components),this.components.filter((t=>-1===this.selectedBackupComponents.indexOf(t)))},remoteFileComponents(){return 1===this.components.length&&(this.restoreRemoteFile=this.components[0],!0)},remoteUrlComponents(){return 1===this.components.length&&(this.restoreRemoteUrlComponent=this.components[0],!0)},isComposeSingle(){return this.appSpecification.version<=3||1===this.appSpecification.compose?.length},selectedOptionText(){const t=this.options.flatMap((t=>t.options)).find((t=>t===this.selectedCmd));return t||""},selectedOptionTextStyle(){return{color:"red",backgroundColor:"rgba(128, 128, 128, 0.1)",fontWeight:"bold",padding:"4px 8px",borderRadius:"4px",marginRight:"10px",marginLeft:"10px"}},...(0,G.rn)("flux",["config","privilege"]),instancesLocked(){try{if(this.appUpdateSpecification.name&&this.marketPlaceApps.length){const t=this.marketPlaceApps.find((t=>this.appUpdateSpecification.name.toLowerCase().startsWith(t.name.toLowerCase())));if(t&&t.lockedValues&&t.lockedValues.includes("instances"))return!0}return!1}catch(t){return console.log(t),!1}},priceMultiplier(){try{if(this.appUpdateSpecification.name&&this.marketPlaceApps.length){const t=this.marketPlaceApps.find((t=>this.appUpdateSpecification.name.toLowerCase().startsWith(t.name.toLowerCase())));if(t&&t.multiplier>1)return t.multiplier*this.generalMultiplier}return this.generalMultiplier}catch(t){return console.log(t),this.generalMultiplier}},callbackValue(){const{protocol:t,hostname:e,port:s}=window.location;let a="";a+=t,a+="//";const i=/[A-Za-z]/g;if(e.match(i)){const t=e.split(".");t[0]="api",a+=t.join(".")}else{if("string"===typeof e&&this.$store.commit("flux/setUserIp",e),+s>16100){const t=+s+1;this.$store.commit("flux/setFluxPort",t)}a+=e,a+=":",a+=this.config.apiPort}const o=as.get("backendURL")||a,n=`${o}/id/providesign`;return encodeURI(n)},isAppOwner(){const t=localStorage.getItem("zelidauth"),e=ss.parse(t);return!!(t&&e&&e.zelid&&this.selectedAppOwner===e.zelid)},validTill(){const t=this.timestamp+36e5;return t},subscribedTill(){if(this.appUpdateSpecification.expire){const t=this.expireOptions.find((t=>t.value===this.appUpdateSpecification.expire));if(t){const e=this.timestamp+t.time;return e}const e=this.appUpdateSpecification.expire,s=12e4,a=e*s,i=this.timestamp+a;return i}const t=this.timestamp+2592e6;return t},isApplicationInstalledLocally(){if(this.installedApps){const t=this.installedApps.find((t=>t.name===this.appName));return!!t}return!1},constructAutomaticDomainsGlobal(){if(!this.callBResponse.data)return"loading...";if(console.log(this.callBResponse.data),!this.callBResponse.data.name)return"loading...";const t=this.callBResponse.data.name,e=t.toLowerCase();if(!this.callBResponse.data.compose){const t=JSON.parse(JSON.stringify(this.callBResponse.data.ports)),s=[`${e}.app.runonflux.io`];for(let a=0;a{for(let a=0;a=2&&s.push(` ${i} ${a}s`),t%=e[a]}return s},getNewExpireLabel(){if(-1===this.daemonBlockCount)return"Not possible to calculate expiration";const t=this.callBResponse.data.expire||22e3,e=this.callBResponse.data.height+t-this.daemonBlockCount;if(e<1)return"Application Expired";this.minutesRemaining=2*e;const s=this.minutesToString;return s.length>2?`${s[0]}, ${s[1]}, ${s[2]}`:s.length>1?`${s[0]}, ${s[1]}`:`${s[0]}`}},watch:{isComposeSingle(t){t&&this.appSpecification.version>=4&&(this.selectedApp=this.appSpecification.compose[0].name)},appUpdateSpecification:{handler(){this.dataToSign="",this.signature="",this.timestamp=null,this.dataForAppUpdate={},this.updateHash="",null!==this.websocket&&(this.websocket.close(),this.websocket=null)},deep:!0},expirePosition:{handler(){this.dataToSign="",this.signature="",this.timestamp=null,this.dataForAppUpdate={},this.updateHash="",null!==this.websocket&&(this.websocket.close(),this.websocket=null)}},isPrivateApp(t){this.appUpdateSpecification.version>=7&&!1===t&&(this.appUpdateSpecification.nodes=[],this.appUpdateSpecification.compose.forEach((t=>{t.secrets="",t.repoauth=""})),this.selectedEnterpriseNodes=[]),this.allowedGeolocations={},this.forbiddenGeolocations={},this.dataToSign="",this.signature="",this.timestamp=null,this.dataForAppUpdate={},this.updateHash="",null!==this.websocket&&(this.websocket.close(),this.websocket=null)}},async mounted(){const t=this;this.$nextTick((()=>{window.addEventListener("resize",t.onResize)})),this.initMMSDK(),this.callBResponse.data="",this.callBResponse.status="",this.appSpecification={},this.callResponse.data="",this.callResponse.status="",this.monitoringStream={},this.appExec.cmd="",this.appExec.env="",this.checkFluxCommunication(),this.getAppOwner(),this.getGlobalApplicationSpecifics(),this.appsDeploymentInformation(),this.getGeolocationData(),this.getMarketPlace(),this.getMultiplier(),this.getEnterpriseNodes(),this.getDaemonBlockCount(),await this.getApplicationLocations().catch((()=>{this.showToast("danger","Error loading application locations")}))},beforeDestroy(){window.removeEventListener("resize",this.onResize)},methods:{onResize(){this.windowWidth=window.innerWidth},handleRadioClick(){"Upload File"===this.selectedRestoreOption&&this.loadBackupList(this.appName,"upload","files"),console.log("Radio button clicked. Selected option:",this.selectedOption)},getUploadFolder(t,e){const s=this.selectedIp.split(":")[0],a=this.selectedIp.split(":")[1]||16127,i=encodeURIComponent(t),o=encodeURIComponent(e);return`http://${s}:${a}/ioutils/fileupload/${i}/${o}/${this.appName}`},addAndConvertFileSizes(t,e="auto",s=2){const a={B:1,KB:1024,MB:1048576,GB:1073741824},i=(t,e)=>t/a[e.toUpperCase()],o=(t,e)=>{const a="B"===e?t.toFixed(0):t.toFixed(s);return`${a} ${e}`};let n;if(Array.isArray(t)&&t.length>0)n=+t.reduce(((t,e)=>t+(e.file_size||0)),0);else{if("number"!==typeof+t)return console.error("Invalid sizes parameter"),"N/A";n=+t}if(isNaN(n))return console.error("Total size is not a valid number"),"N/A";if("auto"===e){let t,e=n;return Object.keys(a).forEach((s=>{const a=i(n,s);a>=1&&(void 0===e||ae.file_name===t[0].name&&e.component!==this.restoreRemoteFile));if(-1!==s)return this.showToast("warning",`'${e.name}' is already in the upload queue for other component.`),!1;const a=this.files.findIndex((t=>t.component===this.restoreRemoteFile));-1!==a?this.$set(this.files,a,{selected_file:e,uploading:!1,uploaded:!1,progress:0,path:`${this.volumePath}/backup/upload`,component:this.restoreRemoteFile,file_name:`backup_${this.restoreRemoteFile.toLowerCase()}.tar.gz`,file_size:e.size}):this.files.push({selected_file:e,uploading:!1,uploaded:!1,progress:0,path:`${this.volumePath}/backup/upload`,component:this.restoreRemoteFile,file_name:`backup_${this.restoreRemoteFile.toLowerCase()}.tar.gz`,file_size:e.size})}return!0},removeFile(t){this.files=this.files.filter((e=>e.selected_file.name!==t.selected_file.name))},async processChunks(t,e){const s={restore_upload:"restoreFromUploadStatus",restore_remote:"restoreFromRemoteURLStatus",backup:"tarProgress"};for(const a of t)if(""!==a){const t=s[e];t&&(this[t]=a,"restore_upload"===e&&a.includes("Error:")?(console.log(a),this.changeAlert("danger",a,"showTopUpload",!0)):"restore_upload"===e&&a.includes("Finalizing")?setTimeout((()=>{this.changeAlert("success","Restore completed successfully","showTopUpload",!0)}),5e3):"restore_remote"===e&&a.includes("Error:")?this.changeAlert("danger",a,"showTopRemote",!0):"restore_remote"===e&&a.includes("Finalizing")&&setTimeout((()=>{this.changeAlert("success","Restore completed successfully","showTopRemote",!0),this.restoreRemoteUrlItems=[]}),5e3))}},changeAlert(t,e,s,a){this.alertVariant=t,this.alertMessage=e,this[s]=a},startUpload(){this.showTopUpload=!1;const t=this;return new Promise((async(e,s)=>{try{this.restoreFromUpload=!0,this.restoreFromUploadStatus="Uploading...";const s=this.files.map((t=>new Promise((async(e,s)=>{if(t.uploaded||t.uploading||!t.selected_file)e();else try{await this.upload(t),e()}catch(a){s(a)}}))));await Promise.all(s),this.files.forEach((t=>{t.uploading=!1,t.uploaded=!1,t.progress=0})),this.restoreFromUploadStatus="Initializing restore jobs...";const a=this.buildPostBody(this.appSpecification,"restore","upload");let i;for(const t of this.files)i=this.updateJobStatus(a,t.component,"restore");const o=localStorage.getItem("zelidauth"),n={zelidauth:o,"Content-Type":"application/json","Access-Control-Allow-Origin":"*",Connection:"keep-alive"},r=this.selectedIp.split(":")[0],l=this.selectedIp.split(":")[1]||16127,c=await fetch(`http://${r}:${l}/apps/appendrestoretask`,{method:"POST",body:JSON.stringify(i),headers:n}),p=c.body.getReader();await new Promise(((e,s)=>{function a(){p.read().then((async({done:s,value:i})=>{if(s)return void e();const o=new TextDecoder("utf-8").decode(i),n=o.split("\n");await t.processChunks(n,"restore_upload"),a()}))}a()})),this.restoreFromUpload=!1,this.restoreFromUploadStatus="",this.loadBackupList(this.appName,"upload","files"),e()}catch(a){s(a)}}))},upload(t){return new Promise(((e,s)=>{const a=this;if("undefined"===typeof XMLHttpRequest)return void s("XMLHttpRequest is not supported.");const i=new XMLHttpRequest,o=this.getUploadFolder(t.path,t.file_name);i.upload&&(i.upload.onprogress=function(e){e.total>0&&(e.percent=e.loaded/e.total*100),t.progress=e.percent});const n=new FormData;n.append(t.selected_file.name,t.selected_file),t.uploading=!0,i.onerror=function(e){a.restoreFromUpload=!1,a.restoreFromUploadStatus="",a.files.forEach((t=>{t.uploading=!1,t.uploaded=!1,t.progress=0})),a.showToast("danger",`An error occurred while uploading ${t.selected_file.name}, try to relogin`),s(e)},i.onload=function(){if(i.status<200||i.status>=300)return console.error(i.status),a.restoreFromUpload=!1,a.restoreFromUploadStatus="",a.files.forEach((t=>{t.uploading=!1,t.uploaded=!1,t.progress=0})),a.showToast("danger",`An error occurred while uploading '${t.selected_file.name}' - Status code: ${i.status}`),void s(i.status);t.uploaded=!0,t.uploading=!1,a.$emit("complete"),e()},i.open("post",o,!0);const r=this.zelidHeader||{},l=Object.keys(r);for(let t=0;tt+parseFloat(e.file_size)),0)},RestoreTableBuilder(t){const e=t.toString(),s=e.split("_")[0];return[{key:"component",label:"Component Name",thStyle:{width:"25%"}},{key:t.toString().toLowerCase(),label:s,thStyle:{width:"70%"}},{key:"file_size",label:"Size",thStyle:{width:"10%"}},{key:"actions",label:"Action",thStyle:{width:"5%"}}]},addAllTags(){this.selectedBackupComponents=[...this.selectedBackupComponents,...this.components]},clearSelected(){this.$refs.selectableTable.clearSelected()},selectAllRows(){this.$refs.selectableTable.selectAllRows()},selectStorageOption(t){this.selectedStorageMethod=t},buildPostBody(t,e,s=""){const a={appname:t.name,..."restore"===e?{type:s}:{},[e]:t.compose.map((t=>({component:t.name,[e]:!1,..."restore"===e&&"remote"===s?{url:""}:{}})))};return a},updateJobStatus(t,e,s,a=[]){const i=t[s].find((t=>t.component===e));if(i){if(i[s]=!0,"restore"===s&&"remote"===t?.type){const t=a.find((t=>t.component===e));t?(i.url=t.url||"",console.log(`${t.url}`)):console.log(`URL info not found for component ${e}.`)}console.log(`Status for ${e} set to true for ${s}.`)}else console.log(`Component ${e} not found in the ${s} array.`);return t},async createBackup(t,e){if(0===this.selectedBackupComponents?.length)return;this.backupProgress=!0,this.tarProgress="Initializing backup jobs...";const s=localStorage.getItem("zelidauth"),a={zelidauth:s,"Content-Type":"application/json","Access-Control-Allow-Origin":"*",Connection:"keep-alive"},i=this.buildPostBody(this.appSpecification,"backup");let o;for(const d of e)o=this.updateJobStatus(i,d,"backup");const n=this.selectedIp.split(":")[0],r=this.selectedIp.split(":")[1]||16127,l=await fetch(`http://${n}:${r}/apps/appendbackuptask`,{method:"POST",body:JSON.stringify(o),headers:a}),c=this,p=l.body.getReader();await new Promise(((t,e)=>{function s(){p.read().then((async({done:e,value:a})=>{if(e)return void t();const i=new TextDecoder("utf-8").decode(a),o=i.split("\n");await c.processChunks(o,"backup"),s()}))}s()})),setTimeout((()=>{this.backupProgress=!1}),5e3),this.loadBackupList()},onRowSelected(t){this.backupToUpload=t.map((t=>{const e=t.component,s=this.backupList.find((t=>t.component===e));return{component:e,file:s?s.file:null}})).filter((t=>null!==t.file))},applyFilter(){this.$nextTick((()=>{this.checkpoints.forEach((t=>{t._showDetails=!0}))})),console.log(this.appSpecification.compose),this.components=this.appSpecification.compose.map((t=>t.name))},onFilteredBackup(t){this.totalRows=t.length,this.currentPage=1},addAllBackupComponents(t){const e=this.checkpoints.find((e=>e.timestamp===t)),s=e.components.map((t=>({component:t.component,file_url:t.file_url,timestamp:e.timestamp,file_size:t.file_size})));this.newComponents=s},addComponent(t,e){const s=this.newComponents.findIndex((e=>e.component===t.component));-1!==s?this.$set(this.newComponents,s,{timestamp:e,component:t.component,file_url:t.file_url,file_size:t.file_size}):this.newComponents.push({component:t.component,timestamp:e,file_url:t.file_url,file_size:t.file_size})},formatName(t){return`backup_${t.timestamp}`},formatDateTime(t,e=!1){const s=t>1e12,a=s?new Date(t):new Date(1e3*t);return e&&a.setHours(a.getHours()+24),a.toLocaleString()},addRemoteFile(){this.selectFiles()},async restoreFromRemoteFile(){const t=localStorage.getItem("zelidauth");this.showTopRemote=!1,this.downloadingFromUrl=!0,this.restoreFromRemoteURLStatus="Initializing restore jobs...";const e={zelidauth:t,"Content-Type":"application/json","Access-Control-Allow-Origin":"*",Connection:"keep-alive"},s=this.buildPostBody(this.appSpecification,"restore","remote");let a;for(const c of this.restoreRemoteUrlItems)a=this.updateJobStatus(s,c.component,"restore",this.restoreRemoteUrlItems);const i=this.selectedIp.split(":")[0],o=this.selectedIp.split(":")[1]||16127,n=await fetch(`http://${i}:${o}/apps/appendrestoretask`,{method:"POST",body:JSON.stringify(a),headers:e}),r=this,l=n.body.getReader();await new Promise(((t,e)=>{function s(){l.read().then((async({done:e,value:a})=>{if(e)return void t();const i=new TextDecoder("utf-8").decode(a),o=i.split("\n");await r.processChunks(o,"restore_remote"),s()}))}s()})),this.downloadingFromUrl=!1,this.restoreFromRemoteURLStatus=""},async addRemoteUrlItem(t,e){if(this.isValidUrl&&""!==this.restoreRemoteUrl.trim()&&null!==this.restoreRemoteUrlComponent){if(this.remoteFileSizeResponse=await this.executeLocalCommand(`/backup/getremotefilesize/${encodeURIComponent(this.restoreRemoteUrl.trim())}/B/0/true/${this.appName}`),"success"!==this.remoteFileSizeResponse.data?.status)return void this.showToast("danger",this.remoteFileSizeResponse.data?.data.message||this.remoteFileSizeResponse.data?.massage);if(this.volumeInfoResponse=await this.executeLocalCommand(`/backup/getvolumedataofcomponent/${t}/${e}/B/0/size,available,mount`),"success"!==this.volumeInfoResponse.data?.status)return void this.showToast("danger",this.volumeInfoResponse.data?.data.message||this.volumeInfoResponse.data?.data);if(this.remoteFileSizeResponse.data.data>this.volumeInfoResponse.data.data.available)return void this.showToast("danger",`File is too large (${this.addAndConvertFileSizes(this.remoteFileSizeResponse.data.data)})...`);const s=this.restoreRemoteUrlItems.findIndex((t=>t.url===this.restoreRemoteUrl));if(-1!==s)return void this.showToast("warning",`'${this.restoreRemoteUrl}' is already in the download queue for other component.`);const a=this.restoreRemoteUrlItems.findIndex((t=>t.component===this.restoreRemoteUrlComponent));if(0===this.remoteFileSizeResponse.data.data||null===this.remoteFileSizeResponse.data.data)return;-1!==a?(this.restoreRemoteUrlItems[a].url=this.restoreRemoteUrl,this.restoreRemoteUrlItems[a].file_size=this.remoteFileSizeResponse.data.data):this.restoreRemoteUrlItems.push({url:this.restoreRemoteUrl,component:this.restoreRemoteUrlComponent,file_size:this.remoteFileSizeResponse.data.data})}},async deleteItem(t,e,s="",a=""){const i=e.findIndex((t=>t.file===s));-1!==i&&(e[i]?.selected_file||"upload"!==a||(console.log(e[i].file),await this.executeLocalCommand(`/backup/removebackupfile/${encodeURIComponent(e[i].file)}/${this.appName}`))),e.splice(t,1)},async loadBackupList(t=this.appName,e="local",s="backupList"){const a=[];for(const i of this.components)this.volumeInfo=await this.executeLocalCommand(`/backup/getvolumedataofcomponent/${t}/${i}/B/0/mount`),this.volumePath=this.volumeInfo.data?.data,this.backupFile=await this.executeLocalCommand(`/backup/getlocalbackuplist/${encodeURIComponent(`${this.volumePath.mount}/backup/${e}`)}/B/0/true/${t}`),this.backupItem=this.backupFile.data?.data,Array.isArray(this.backupItem)&&(this.BackupItem={isActive:!1,component:i,create:+this.backupItem[0].create,file_size:this.backupItem[0].size,file:`${this.volumePath.mount}/backup/${e}/${this.backupItem[0].name}`,file_name:`${this.backupItem[0].name}`},a.push(this.BackupItem));console.log(JSON.stringify(s)),this[s]=a},allDownloadsCompleted(){return this.computedFileProgress.every((t=>100===t.progress))},updateFileProgress(t,e,s,a,i){this.$nextTick((()=>{const t=this.fileProgress.findIndex((t=>t.fileName===i));-1!==t?this.$set(this.fileProgress,t,{fileName:i,progress:e}):this.fileProgress.push({fileName:i,progress:e})}))},deleteRestoreBackup(t,e,s=0){const a=e.findIndex((t=>t.timestamp===s));e.splice(a,1),0!==s&&(this.newComponents=this.newComponents.filter((t=>t.timestamp!==s)))},async deleteLocalBackup(t,e,s=0){if(0===s){for(const t of e){const e=t.file;await this.executeLocalCommand(`/backup/removebackupfile/${encodeURIComponent(e)}/${this.appName}`)}this.backupList=[],this.backupToUpload=[]}else{this.status=await this.executeLocalCommand(`/backup/removebackupfile/${encodeURIComponent(s)}/${this.appName}`);const a=e.findIndex((e=>e.component===t));e.splice(a,1)}},async downloadAllBackupFiles(t){try{this.showProgressBar=!0;const e=localStorage.getItem("zelidauth"),s=this,a={headers:{zelidauth:e},responseType:"blob",onDownloadProgress(t){const{loaded:e,total:a,target:i}=t,o=decodeURIComponent(i.responseURL),n=o.lastIndexOf("/"),r=-1!==n?o.slice(0,n):o,l=r.split("/").pop(),c=e/a*100,p=s.backupList.find((t=>t.file.endsWith(l)));s.updateFileProgress(l,c,e,a,p.component)}},i=t.map((async t=>{try{const{file:e}=t,i=e.split("/"),o=i[i.length-1],n=await this.executeLocalCommand(`/backup/downloadlocalfile/${encodeURIComponent(e)}/${s.appName}`,null,a),r=new Blob([n.data]),l=window.URL.createObjectURL(r),c=document.createElement("a");return c.href=l,c.setAttribute("download",o),document.body.appendChild(c),c.click(),document.body.removeChild(c),window.URL.revokeObjectURL(l),!0}catch(e){return console.error("Error downloading file:",e),!1}})),o=await Promise.all(i);o.every((t=>t))?console.log("All downloads completed successfully"):console.error("Some downloads failed. Check the console for details.")}catch(e){console.error("Error downloading files:",e)}finally{setTimeout((()=>{this.showProgressBar=!1,this.fileProgress=[]}),5e3)}},async initMMSDK(){try{await Qe.init(),ts=Qe.getProvider()}catch(t){console.log(t)}},connectTerminal(t){if(this.appSpecification.version>=4){const t=Object.values(this.appSpecification.compose),e=t.some((t=>t.name===this.selectedApp));if(!e)return void this.showToast("danger","Please select an container app before connecting.")}let e=0;if(!(this.selectedApp||this.appSpecification.version<=3))return void this.showToast("danger","Please select an container app before connecting.");if(null===this.selectedCmd)return void this.showToast("danger","No command selected.");if("Custom"===this.selectedCmd){if(!this.customValue)return void this.showToast("danger","Please enter a custom command.");console.log(`Custom command: ${this.customValue}`),console.log(`App name: ${t}`)}else console.log(`Selected command: ${this.selectedCmd}`),console.log(`App name: ${t}`);this.isConnecting=!0,this.terminal=new X.Terminal({allowProposedApi:!0,cursorBlink:!0,theme:{foreground:"white",background:"black"}});const s=this.selectedIp.split(":")[0],a=this.selectedIp.split(":")[1]||16127,i=localStorage.getItem("zelidauth");this.socket=He.connect(`http://${s}:${a}`);let o="";this.enableUser&&(o=this.userInputValue),this.customValue?this.socket.emit("exec",i,t,this.customValue,this.envInputValue,o):this.socket.emit("exec",i,t,this.selectedCmd,this.envInputValue,o),this.terminal.open(this.$refs.terminalElement);const n=new Q.FitAddon;this.terminal.loadAddon(n);const r=new tt.WebLinksAddon;this.terminal.loadAddon(r);const l=new et.Unicode11Addon;this.terminal.loadAddon(l);const c=new st.SerializeAddon;this.terminal.loadAddon(c),this.terminal._initialized=!0,this.terminal.onResize((t=>{const{cols:e,rows:s}=t;console.log("Resizing to",{cols:e,rows:s}),this.socket.emit("resize",{cols:e,rows:s})})),this.terminal.onTitleChange((t=>{console.log(t)})),window.onresize=()=>{n.fit()},this.terminal.onData((t=>{this.socket.emit("cmd",t)})),this.socket.on("error",(t=>{this.showToast("danger",t),this.disconnectTerminal()})),this.socket.on("show",(t=>{0===e&&(e=1,this.customValue||(this.socket.emit("cmd","export TERM=xterm\n"),"/bin/bash"===this.selectedCmd&&this.socket.emit("cmd",'PS1="\\[\\033[01;31m\\]\\u\\[\\033[01;33m\\]@\\[\\033[01;36m\\]\\h \\[\\033[01;33m\\]\\w \\[\\033[01;35m\\]\\$ \\[\\033[00m\\]"\n'),this.socket.emit("cmd","alias ls='ls --color'\n"),this.socket.emit("cmd","alias ll='ls -alF'\n"),this.socket.emit("cmd","clear\n")),setTimeout((()=>{this.isConnecting=!1,this.isVisible=!0,this.$nextTick((()=>{setTimeout((()=>{this.terminal.focus(),n.fit()}),500)}))}),1400)),this.terminal.write(t)})),this.socket.on("end",(()=>{this.disconnectTerminal()}))},disconnectTerminal(){this.socket&&this.socket.disconnect(),this.terminal&&this.terminal.dispose(),this.isVisible=!1,this.isConnecting=!1},onSelectChangeCmd(){"Custom"!==this.selectedCmd&&(this.customValue="")},onSelectChangeEnv(){this.enableEnvironment||(this.envInputValue="")},onSelectChangeUser(){this.enableUser||(this.userInputValue="")},onFilteredSelection(t){this.entNodesSelectTable.totalRows=t.length,this.entNodesSelectTable.currentPage=1},async getMarketPlace(){try{const t=await es.get("https://stats.runonflux.io/marketplace/listapps");"success"===t.data.status&&(this.marketPlaceApps=t.data.data)}catch(t){console.log(t)}},async getMultiplier(){try{const t=await es.get("https://stats.runonflux.io/apps/multiplier");"success"===t.data.status&&"number"===typeof t.data.data&&t.data.data>=1&&(this.generalMultiplier=t.data.data)}catch(t){console.log(t)}},async appsDeploymentInformation(){const t=await K.Z.appsDeploymentInformation(),{data:e}=t.data;"success"===t.data.status?this.deploymentAddress=e.address:this.showToast("danger",t.data.data.message||t.data.data)},async updateManagementTab(t){switch(this.callResponse.data="",this.callResponse.status="",this.appExec.cmd="",this.appExec.env="",this.output="",this.backupToUpload=[],11!==t&&this.disconnectTerminal(),this.selectedIp||await this.getApplicationLocations(),this.getApplicationManagementAndStatus(),t){case 1:this.getInstalledApplicationSpecifics(),this.getGlobalApplicationSpecifics();break;case 2:this.getApplicationInspect();break;case 3:this.getApplicationStats();break;case 4:this.getApplicationMonitoring();break;case 5:this.getApplicationChanges();break;case 6:this.getApplicationProcesses();break;case 7:this.getApplicationLogs();break;case 10:this.applyFilter(),this.loadBackupList();break;case 14:this.getApplicationLocations();break;case 15:this.getZelidAuthority();break;default:break}},async appsGetListAllApps(){const t=await this.executeLocalCommand("/apps/listallapps");console.log(t),this.getAllAppsResponse.status=t.data.status,this.getAllAppsResponse.data=t.data.data},goBackToApps(){this.$emit("back")},async initiateSignWSUpdate(){if(this.dataToSign.length>1800){const t=this.dataToSign,e={publicid:Math.floor(999999999999999*Math.random()).toString(),public:t};await es.post("https://storage.runonflux.io/v1/public",e);const s=`zel:?action=sign&message=FLUX_URL=https://storage.runonflux.io/v1/public/${e.publicid}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${this.callbackValue}`;window.location.href=s}else window.location.href=`zel:?action=sign&message=${this.dataToSign}&icon=https%3A%2F%2Fraw.githubusercontent.com%2Frunonflux%2Fflux%2Fmaster%2FzelID.svg&callback=${this.callbackValue}`;const t=this,{protocol:e,hostname:s,port:a}=window.location;let i="";i+=e,i+="//";const o=/[A-Za-z]/g;if(s.match(o)){const t=s.split(".");t[0]="api",i+=t.join(".")}else{if("string"===typeof s&&this.$store.commit("flux/setUserIp",s),+a>16100){const t=+a+1;this.$store.commit("flux/setFluxPort",t)}i+=s,i+=":",i+=this.config.apiPort}let n=as.get("backendURL")||i;n=n.replace("https://","wss://"),n=n.replace("http://","ws://");const r=this.appUpdateSpecification.owner+this.timestamp,l=`${n}/ws/sign/${r}`,c=new WebSocket(l);this.websocket=c,c.onopen=e=>{t.onOpen(e)},c.onclose=e=>{t.onClose(e)},c.onmessage=e=>{t.onMessage(e)},c.onerror=e=>{t.onError(e)}},onError(t){console.log(t)},onMessage(t){const e=ss.parse(t.data);"success"===e.status&&e.data&&(this.signature=e.data.signature),console.log(e),console.log(t)},onClose(t){console.log(t)},onOpen(t){console.log(t)},async getInstalledApplicationSpecifics(){const t=await this.executeLocalCommand(`/apps/installedapps/${this.appName}`);console.log(t),t&&("error"!==t.data.status&&t.data.data[0]?(this.callResponse.status=t.data.status,this.callResponse.data=t.data.data[0],this.appSpecification=t.data.data[0]):this.showToast("danger",t.data.data.message||t.data.data))},getExpirePosition(t){const e=this.expireOptions.findIndex((e=>e.value===t));return e||0===e?e:2},async getGlobalApplicationSpecifics(){const t=await K.Z.getAppSpecifics(this.appName);if(console.log(t),"error"===t.data.status)this.showToast("danger",t.data.data.message||t.data.data),this.callBResponse.status=t.data.status;else{this.callBResponse.status=t.data.status,this.callBResponse.data=t.data.data;const s=t.data.data;if(console.log(s),this.appUpdateSpecification=JSON.parse(JSON.stringify(s)),this.appUpdateSpecification.instances=s.instances||3,this.instancesLocked&&(this.maxInstances=this.appUpdateSpecification.instances),this.appUpdateSpecification.version<=3)this.appUpdateSpecification.version=3,this.appUpdateSpecification.ports=s.port||this.ensureString(s.ports),this.appUpdateSpecification.domains=this.ensureString(s.domains),this.appUpdateSpecification.enviromentParameters=this.ensureString(s.enviromentParameters),this.appUpdateSpecification.commands=this.ensureString(s.commands),this.appUpdateSpecification.containerPorts=s.containerPort||this.ensureString(s.containerPorts);else{if(this.appUpdateSpecification.version>3&&this.appUpdateSpecification.compose.find((t=>t.containerData.includes("g:")))&&(this.masterSlaveApp=!0),this.appUpdateSpecification.version<=7&&(this.appUpdateSpecification.version=7),this.appUpdateSpecification.contacts=this.ensureString([]),this.appUpdateSpecification.geolocation=this.ensureString([]),this.appUpdateSpecification.version>=5){this.appUpdateSpecification.contacts=this.ensureString(s.contacts||[]),this.appUpdateSpecification.geolocation=this.ensureString(s.geolocation||[]);try{this.decodeGeolocation(s.geolocation||[])}catch(e){console.log(e),this.appUpdateSpecification.geolocation=this.ensureString([])}}this.appUpdateSpecification.compose.forEach((t=>{t.ports=this.ensureString(t.ports),t.domains=this.ensureString(t.domains),t.environmentParameters=this.ensureString(t.environmentParameters),t.commands=this.ensureString(t.commands),t.containerPorts=this.ensureString(t.containerPorts),t.secrets=this.ensureString(t.secrets||""),t.repoauth=this.ensureString(t.repoauth||"")})),this.appUpdateSpecification.version>=6&&(this.appUpdateSpecification.expire=this.ensureNumber(s.expire||22e3),this.expirePosition=this.getExpirePosition(this.appUpdateSpecification.expire)),this.appUpdateSpecification.version>=7&&(this.appUpdateSpecification.staticip=this.appUpdateSpecification.staticip??!1,this.appUpdateSpecification.nodes=this.appUpdateSpecification.nodes||[],this.appUpdateSpecification.nodes&&this.appUpdateSpecification.nodes.length&&(this.isPrivateApp=!0),this.appUpdateSpecification.nodes.forEach((async t=>{const e=this.enterprisePublicKeys.find((e=>e.nodeip===t));if(!e){const e=await this.fetchEnterpriseKey(t);if(e){const s={nodeip:t.ip,nodekey:e},a=this.enterprisePublicKeys.find((e=>e.nodeip===t));a||this.enterprisePublicKeys.push(s)}}})),this.enterpriseNodes||await this.getEnterpriseNodes(),this.selectedEnterpriseNodes=[],this.appUpdateSpecification.nodes.forEach((t=>{if(this.enterpriseNodes){const e=this.enterpriseNodes.find((e=>e.ip===t||t===`${e.txhash}:${e.outidx}`));e&&this.selectedEnterpriseNodes.push(e)}else this.showToast("danger","Failed to load Enterprise Node List")})))}}},async update(){const t=localStorage.getItem("zelidauth"),e={type:this.updatetype,version:this.version,appSpecification:this.dataForAppUpdate,timestamp:this.timestamp,signature:this.signature};this.showToast("info","Propagating message accross Flux network...");const s=await K.Z.updateApp(t,e).catch((t=>{this.showToast("danger",t.message||t)}));console.log(s),"success"===s.data.status?(this.updateHash=s.data.data,console.log(this.updateHash),this.showToast("success",s.data.data.message||s.data.data)):this.showToast("danger",s.data.data.message||s.data.data)},async checkFluxCommunication(){const t=await K.Z.checkCommunication();"success"===t.data.status?this.fluxCommunication=!0:this.showToast("danger",t.data.data.message||t.data.data)},convertExpire(){if(!this.extendSubscription){const t=this.callBResponse.data.expire||22e3,e=this.callBResponse.data.height+t-this.daemonBlockCount;if(e<5e3)throw new Error("Your application will expire in less than one week, you need to extend subscription to be able to update specifications");return 1e3*Math.ceil(e/1e3)}return this.expireOptions[this.expirePosition]?this.expireOptions[this.expirePosition].value:22e3},async checkFluxUpdateSpecificationsAndFormatMessage(){try{if(!this.tosAgreed)throw new Error("Please agree to Terms of Service");const t=this.appUpdateSpecification;let e=!1;if(t.version>=7&&(this.constructNodes(),this.appUpdateSpecification.compose.forEach((t=>{if((t.repoauth||t.secrets)&&(e=!0,!this.appUpdateSpecification.nodes.length))throw new Error("Private repositories and secrets can only run on Enterprise Nodes")}))),e){this.showToast("info","Encrypting specifications, this will take a while...");const t=[];for(const e of this.appUpdateSpecification.nodes){const s=this.enterprisePublicKeys.find((t=>t.nodeip===e));if(s)t.push(s.nodekey);else{const s=await this.fetchEnterpriseKey(e);if(s){const a={nodeip:e.ip,nodekey:s},i=this.enterprisePublicKeys.find((t=>t.nodeip===e.ip));i||this.enterprisePublicKeys.push(a),t.push(s)}}}for(const e of this.appUpdateSpecification.compose){if(e.environmentParameters=e.environmentParameters.replace("\\“",'\\"'),e.commands=e.commands.replace("\\“",'\\"'),e.domains=e.domains.replace("\\“",'\\"'),e.secrets&&!e.secrets.startsWith("-----BEGIN PGP MESSAGE")){const s=await this.encryptMessage(e.secrets,t);if(!s)return;e.secrets=s}if(e.repoauth&&!e.repoauth.startsWith("-----BEGIN PGP MESSAGE")){const s=await this.encryptMessage(e.repoauth,t);if(!s)return;e.repoauth=s}}}e&&this.appUpdateSpecification.compose.forEach((t=>{if(t.secrets&&!t.secrets.startsWith("-----BEGIN PGP MESSAGE"))throw new Error("Encryption failed");if(t.repoauth&&!t.repoauth.startsWith("-----BEGIN PGP MESSAGE"))throw new Error("Encryption failed")})),t.version>=5&&(t.geolocation=this.generateGeolocations()),t.version>=6&&(await this.getDaemonBlockCount(),t.expire=this.convertExpire());const s=await K.Z.appUpdateVerification(t);if("error"===s.data.status)throw new Error(s.data.data.message||s.data.data);const a=s.data.data,i=await K.Z.appPrice(a);if(this.appPricePerSpecs=0,"error"===i.data.status)throw new Error(i.data.data.message||i.data.data);this.appPricePerSpecs=Math.ceil(+i.data.data*this.priceMultiplier*100)/100,this.timestamp=Date.now(),this.dataForAppUpdate=a,this.dataToSign=this.updatetype+this.version+JSON.stringify(a)+this.timestamp}catch(t){console.log(t.message),console.error(t),this.showToast("danger",t.message||t)}},async appExecute(t=this.appSpecification.name){try{if(!this.appExec.cmd)return void this.showToast("danger","No commands specified");const e=this.appExec.env?this.appExec.env:"[]",{cmd:s}=this.appExec;this.commandExecuting=!0,console.log("here");const a={appname:t,cmd:ns(s),env:JSON.parse(e)},i=await this.executeLocalCommand("/apps/appexec/",a);console.log(i),"error"===i.data.status?this.showToast("danger",i.data.data.message||i.data.data):(this.commandExecuting=!1,this.callResponse.status=i.status,t.includes("_")?(this.callResponse.data&&Array.isArray(this.callResponse.data)||(this.callResponse.data=[]),this.callResponse.data.unshift({name:t,data:i.data})):this.callResponse.data=i.data)}catch(e){this.commandExecuting=!1,console.log(e),this.showToast("danger",e.message||e)}},cancelDownload(){this.abortToken.cancel("User download cancelled"),this.downloaded="",this.total=""},async downloadApplicationLog(t){const e=this;this.downloaded="",this.total="",this.abortToken=Z.Z.cancelToken();const s=localStorage.getItem("zelidauth"),a={headers:{zelidauth:s},responseType:"blob",onDownloadProgress(t){e.downloaded=t.loaded,e.total=t.total}},i=await Z.Z.justAPI().get(`/apps/applog/${t}`,a),o=window.URL.createObjectURL(new Blob([i.data])),n=document.createElement("a");n.href=o,n.setAttribute("download","app.log"),document.body.appendChild(n),n.click()},getAppIdentifier(t=this.appName){return t&&t.startsWith("zel")||t&&t.startsWith("flux")?t:"KadenaChainWebNode"===t||"FoldingAtHomeB"===t?`zel${t}`:`flux${t}`},getAppDockerNameIdentifier(t){const e=this.getAppIdentifier(t);return e&&e.startsWith("/")?e:`/${e}`},async getApplicationInspect(){const t=[];if(this.commandExecuting=!0,this.appSpecification.version>=4)for(const e of this.appSpecification.compose){const s=await this.executeLocalCommand(`/apps/appinspect/${e.name}_${this.appSpecification.name}`);if("error"===s.data.status)this.showToast("danger",s.data.data.message||s.data.data);else{const a={name:e.name,callData:s.data.data};t.push(a)}}else{const e=await this.executeLocalCommand(`/apps/appinspect/${this.appName}`);if("error"===e.data.status)this.showToast("danger",e.data.data.message||e.data.data);else{const s={name:this.appSpecification.name,callData:e.data.data};t.push(s)}console.log(e)}this.commandExecuting=!1,this.callResponse.status="success",this.callResponse.data=t},async getApplicationStats(){const t=[];if(this.commandExecuting=!0,this.appSpecification.version>=4)for(const e of this.appSpecification.compose){const s=await this.executeLocalCommand(`/apps/appstats/${e.name}_${this.appSpecification.name}`);if("error"===s.data.status)this.showToast("danger",s.data.data.message||s.data.data);else{const a={name:e.name,callData:s.data.data};t.push(a)}}else{const e=await this.executeLocalCommand(`/apps/appstats/${this.appName}`);if("error"===e.data.status)this.showToast("danger",e.data.data.message||e.data.data);else{const s={name:this.appSpecification.name,callData:e.data.data};t.push(s)}console.log(e)}this.commandExecuting=!1,this.callResponse.status="success",this.callResponse.data=t},async getApplicationMonitoring(){const t=[];if(this.appSpecification.version>=4)for(const e of this.appSpecification.compose){const s=await this.executeLocalCommand(`/apps/appmonitor/${e.name}_${this.appSpecification.name}`);if("error"===s.data.status)this.showToast("danger",s.data.data.message||s.data.data);else{const a={name:e.name,callData:s.data.data};t.push(a)}}else{const e=await this.executeLocalCommand(`/apps/appmonitor/${this.appName}`);if("error"===e.data.status)this.showToast("danger",e.data.data.message||e.data.data);else{const s={name:this.appSpecification.name,callData:e.data.data};t.push(s)}console.log(e)}this.callResponse.status="success",this.callResponse.data=t},async getApplicationMonitoringStream(){const t=this,e=localStorage.getItem("zelidauth");if(this.appSpecification.version>=4)for(const s of this.appSpecification.compose){const a={headers:{zelidauth:e},onDownloadProgress(e){t.monitoringStream[`${s.name}_${t.appSpecification.name}`]=JSON.parse(`[${e.target.response.replace(/}{"read/g,'},{"read')}]`)}},i=await K.Z.justAPI().get(`/apps/appmonitorstream/${s.name}_${this.appSpecification.name}`,a);"error"===i.data.status&&this.showToast("danger",i.data.data.message||i.data.data)}else{const s={headers:{zelidauth:e},onDownloadProgress(e){console.log(e.target.response),t.monitoringStream[t.appName]=JSON.parse(`[${e.target.response.replace(/}{/g,"},{")}]`)}},a=await K.Z.justAPI().get(`/apps/appmonitorstream/${this.appName}`,s);"error"===a.data.status&&this.showToast("danger",a.data.data.message||a.data.data)}},async stopMonitoring(t,e=!1){let s;this.output="",this.showToast("warning",`Stopping Monitoring of ${t}`),s=e?await this.executeLocalCommand(`/apps/stopmonitoring/${t}/true`):await this.executeLocalCommand(`/apps/stopmonitoring/${t}`),"success"===s.data.status?this.showToast("success",s.data.data.message||s.data.data):this.showToast("danger",s.data.data.message||s.data.data),console.log(s)},async startMonitoring(t){this.output="",this.showToast("warning",`Starting Monitoring of ${t}`);const e=await this.executeLocalCommand(`/apps/startmonitoring/${t}`);"success"===e.data.status?this.showToast("success",e.data.data.message||e.data.data):this.showToast("danger",e.data.data.message||e.data.data),console.log(e)},async getApplicationChanges(){const t=[];if(this.commandExecuting=!0,this.appSpecification.version>=4)for(const e of this.appSpecification.compose){const s=await this.executeLocalCommand(`/apps/appchanges/${e.name}_${this.appSpecification.name}`);if("error"===s.data.status)this.showToast("danger",s.data.data.message||s.data.data);else{const a={name:e.name,callData:s.data.data};t.push(a)}}else{const e=await this.executeLocalCommand(`/apps/appchanges/${this.appName}`);if("error"===e.data.status)this.showToast("danger",e.data.data.message||e.data.data);else{const s={name:this.appSpecification.name,callData:e.data.data};t.push(s)}console.log(e)}this.commandExecuting=!1,this.callResponse.status="success",this.callResponse.data=t},async getApplicationProcesses(){const t=[];if(this.commandExecuting=!0,this.appSpecification.version>=4)for(const e of this.appSpecification.compose){const s=await this.executeLocalCommand(`/apps/apptop/${e.name}_${this.appSpecification.name}`);if("error"===s.data.status)this.showToast("danger",s.data.data.message||s.data.data);else{const a={name:e.name,callData:s.data.data};t.push(a)}}else{const e=await this.executeLocalCommand(`/apps/apptop/${this.appName}`);if("error"===e.data.status)this.showToast("danger",e.data.data.message||e.data.data);else{const s={name:this.appSpecification.name,callData:e.data.data};t.push(s)}console.log(e)}this.commandExecuting=!1,this.callResponse.status="success",this.callResponse.data=t},async getApplicationLogs(){const t=[];if(this.appSpecification.version>=4)for(const e of this.appSpecification.compose){const s=await this.executeLocalCommand(`/apps/applog/${e.name}_${this.appSpecification.name}/100`);if("error"===s.data.status)this.showToast("danger",s.data.data.message||s.data.data);else{const a={name:e.name,callData:s.data.data};t.push(a)}}else{const e=await this.executeLocalCommand(`/apps/applog/${this.appName}/100`);if("error"===e.data.status)this.showToast("danger",e.data.data.message||e.data.data);else{const s={name:this.appSpecification.name,callData:e.data.data};t.push(s)}console.log(e)}this.callResponse.status="success",this.callResponse.data=t},async getApplicationLocations(){const t=await K.Z.getAppLocation(this.appName);if(console.log(t),"error"===t.data.status)this.showToast("danger",t.data.data.message||t.data.data);else{this.masterIP=null,this.instances.data=[],this.instances.data=t.data.data;for(const t of this.instances.data){const e=t.ip.split(":")[0],s=t.ip.split(":")[1]||16127,a=`https://${e.replace(/\./g,"-")}-${s}.node.api.runonflux.io/flux/geolocation`;let i=!1;const o=await es.get(a).catch((a=>{i=!0,console.log(`Error geting geolocation from ${e}:${s} : ${a}`),t.continent="N/A",t.country="N/A",t.region="N/A"}));!i&&"success"===o.data.status&&o.data.data.continent?(t.continent=o.data.data.continent,t.country=o.data.data.country,t.region=o.data.data.regionName):(t.continent="N/A",t.country="N/A",t.region="N/A")}if(this.instances.totalRows=this.instances.data.length,this.masterSlaveApp){const t=`https://${this.appName}.app.runonflux.io/fluxstatistics?scope=${this.appName};json;norefresh`;let e=!1,s=await es.get(t).catch((t=>{e=!0,console.log(`UImasterSlave: Failed to reach FDM with error: ${t}`),this.masterIP="Failed to Check"}));if(e)return;if(s=s.data,s&&s.length>0){console.log("FDM_Data_Received");const t=s[0].find((t=>1===t.id&&"Server"===t.objType&&"svname"===t.field.name));if(t)return this.masterIP=t.value.value.split(":")[0],void(this.selectedIp||("16127"===t.value.value.split(":")[1]?this.selectedIp=t.value.value.split(":")[0]:this.selectedIp=t.value.value,console.log(this.selectedIp)))}this.selectedIp||(this.selectedIp=this.instances.data[0].ip),this.masterIP="Defining New Primary In Progress"}else this.selectedIp||(this.selectedIp=this.instances.data[0].ip);console.log(this.selectedIp)}},async getAppOwner(){const t=await K.Z.getAppOwner(this.appName);console.log(t),"error"===t.data.status&&this.showToast("danger",t.data.data.message||t.data.data),this.selectedAppOwner=t.data.data},async stopApp(t){this.output="",this.showToast("warning",`Stopping ${t}`);const e=await this.executeLocalCommand(`/apps/appstop/${t}`);"success"===e.data.status?this.showToast("success",e.data.data.message||e.data.data):this.showToast("danger",e.data.data.message||e.data.data),this.appsGetListAllApps(),console.log(e)},async startApp(t){this.output="",this.showToast("warning",`Starting ${t}`);const e=await this.executeLocalCommand(`/apps/appstart/${t}`);"success"===e.data.status?this.showToast("success",e.data.data.message||e.data.data):this.showToast("danger",e.data.data.message||e.data.data),this.appsGetListAllApps(),console.log(e)},async restartApp(t){this.output="",this.showToast("warning",`Restarting ${t}`);const e=await this.executeLocalCommand(`/apps/apprestart/${t}`);"success"===e.data.status?this.showToast("success",e.data.data.message||e.data.data):this.showToast("danger",e.data.data.message||e.data.data),this.appsGetListAllApps(),console.log(e)},async pauseApp(t){this.output="",this.showToast("warning",`Pausing ${t}`);const e=await this.executeLocalCommand(`/apps/apppause/${t}`);"success"===e.data.status?this.showToast("success",e.data.data.message||e.data.data):this.showToast("danger",e.data.data.message||e.data.data),this.appsGetListAllApps(),console.log(e)},async unpauseApp(t){this.output="",this.showToast("warning",`Unpausing ${t}`);const e=await this.executeLocalCommand(`/apps/appunpause/${t}`);"success"===e.data.status?this.showToast("success",e.data.data.message||e.data.data):this.showToast("danger",e.data.data.message||e.data.data),this.appsGetListAllApps(),console.log(e)},redeployAppSoft(t){this.redeployApp(t,!1)},redeployAppHard(t){this.redeployApp(t,!0)},async redeployApp(t,e){const s=this;this.output="",this.showToast("warning",`Redeploying ${t}`);const a=localStorage.getItem("zelidauth"),i={headers:{zelidauth:a},onDownloadProgress(t){console.log(t.target.response),s.output=JSON.parse(`[${t.target.response.replace(/}{/g,"},{")}]`)}},o=await this.executeLocalCommand(`/apps/redeploy/${t}/${e}`,null,i);"error"===o.data.status?this.showToast("danger",o.data.data.message||o.data.data):(this.output=JSON.parse(`[${o.data.replace(/}{/g,"},{")}]`),"error"===this.output[this.output.length-1].status?this.showToast("danger",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data):"warning"===this.output[this.output.length-1].status?this.showToast("warning",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data):this.showToast("success",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data))},async removeApp(t){const e=this;this.output="",this.showToast("warning",`Removing ${t}`);const s=localStorage.getItem("zelidauth"),a={headers:{zelidauth:s},onDownloadProgress(t){console.log(t.target.response),e.output=JSON.parse(`[${t.target.response.replace(/}{/g,"},{")}]`)}},i=await this.executeLocalCommand(`/apps/appremove/${t}`,null,a);"error"===i.data.status?this.showToast("danger",i.data.data.message||i.data.data):(this.output=JSON.parse(`[${i.data.replace(/}{/g,"},{")}]`),"error"===this.output[this.output.length-1].status?this.showToast("danger",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data):"warning"===this.output[this.output.length-1].status?this.showToast("warning",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data):this.showToast("success",this.output[this.output.length-1].data.message||this.output[this.output.length-1].data),setTimeout((()=>{e.managedApplication=""}),5e3))},getZelidAuthority(){const t=localStorage.getItem("zelidauth");this.globalZelidAuthorized=!1;const e=ss.parse(t),s=Date.now(),a=54e5,i=e.loginPhrase.substring(0,13);this.globalZelidAuthorized=!(+i{setTimeout(e,t)}))},async executeLocalCommand(t,e,s){try{const a=localStorage.getItem("zelidauth");let i=s;if(i||(i={headers:{zelidauth:a}}),this.getZelidAuthority(),!this.globalZelidAuthorized)throw new Error("Session expired. Please log into FluxOS again");const o=this.selectedIp.split(":")[0],n=this.selectedIp.split(":")[1]||16127;let r=null;return r=e?await es.post(`http://${o}:${n}${t}`,e,i):await es.get(`http://${o}:${n}${t}`,i),r}catch(a){return this.showToast("danger",t),this.showToast("danger",a.message||a),null}},async executeCommand(t,e,s,a){try{const i=localStorage.getItem("zelidauth"),o={headers:{zelidauth:i}};if(this.getZelidAuthority(),!this.globalZelidAuthorized)throw new Error("Session expired. Please log into FluxOS again");this.showToast("warning",s);let n=`/apps/${e}/${t}`;a&&(n+=`/${a}`),n+="/true";const r=await K.Z.justAPI().get(n,o);await this.delay(500),"success"===r.data.status?this.showToast("success",r.data.data.message||r.data.data):this.showToast("danger",r.data.data.message||r.data.data)}catch(i){this.showToast("danger",i.message||i)}},async stopAppGlobally(t){this.executeCommand(t,"appstop",`Stopping ${t} globally. This will take a while...`)},async startAppGlobally(t){this.executeCommand(t,"appstart",`Starting ${t} globally. This will take a while...`)},async restartAppGlobally(t){this.executeCommand(t,"apprestart",`Restarting ${t} globally. This will take a while...`)},async pauseAppGlobally(t){this.executeCommand(t,"apppause",`Pausing ${t} globally. This will take a while...`)},async unpauseAppGlobally(t){this.executeCommand(t,"appunpause",`Unpausing ${t} globally. This will take a while...`)},async redeployAppSoftGlobally(t){this.executeCommand(t,"redeploy",`Soft redeploying ${t} globally. This will take a while...`,"false")},async redeployAppHardGlobally(t){this.executeCommand(t,"redeploy",`Hard redeploying ${t} globally. This will take a while...`,"true")},async removeAppGlobally(t){this.executeCommand(t,"appremove",`Reinstalling ${t} globally. This will take a while...`,"true")},openApp(t,e,s){if(console.log(t,e,s),s&&e){const t=e,a=s,i=`http://${t}:${a}`;this.openSite(i)}else this.showToast("danger","Unable to open App :(, App does not have a port.")},getProperPort(t=this.appUpdateSpecification){if(t.port)return t.port;if(t.ports){const e="string"===typeof t.ports?JSON.parse(t.ports):t.ports;return e[0]}for(let e=0;e{t+=`${JSON.stringify(e)}\r\n`})),t},showToast(t,e,s="InfoIcon"){this.$toast({component:j.Z,props:{title:e,icon:s,variant:t}})},decodeAsciiResponse(t){return"string"===typeof t?t.replace(/[^\x20-\x7E\t\r\n\v\f]/g,""):""},getContinent(t){const e=this.ensureObject(t),s=e.find((t=>t.startsWith("a")));if(s){const t=this.continentsOptions.find((t=>t.value===s.slice(1)));return t?t.text:"All"}return"All"},getCountry(t){const e=this.ensureObject(t),s=e.find((t=>t.startsWith("b")));if(s){const t=this.countriesOptions.find((t=>t.value===s.slice(1)));return t?t.text:"All"}return"All"},continentChanged(){if(this.selectedCountry=null,this.selectedContinent){const t=this.continentsOptions.find((t=>t.value===this.selectedContinent));this.maxInstances=t.maxInstances,this.appUpdateSpecification.instances>this.maxInstances&&(this.appUpdateSpecification.instances=this.maxInstances),this.showToast("warning",`The node type may fluctuate based upon system requirements for your application. For better results in ${t.text}, please consider specifications more suited to ${t.nodeTier} hardware.`)}else this.maxInstances=this.appUpdateSpecificationv5template.maxInstances,this.showToast("info","No geolocation set you can define up to maximum of 100 instances and up to the maximum hardware specs available on Flux network to your app.");this.instancesLocked&&(this.maxInstances=this.appUpdateSpecification.instances)},countryChanged(){if(this.selectedCountry){const t=this.countriesOptions.find((t=>t.value===this.selectedCountry));this.maxInstances=t.maxInstances,this.appUpdateSpecification.instances>this.maxInstances&&(this.appUpdateSpecification.instances=this.maxInstances),this.showToast("warning",`The node type may fluctuate based upon system requirements for your application. For better results in ${t.text}, please consider specifications more suited to ${t.nodeTier} hardware.`)}else{const t=this.continentsOptions.find((t=>t.value===this.selectedContinent));this.maxInstances=t.maxInstances,this.appUpdateSpecification.instances>this.maxInstances&&(this.appUpdateSpecification.instances=this.maxInstances),this.showToast("warning",`The node type may fluctuate based upon system requirements for your application. For better results in ${t.text}, please consider specifications more suited to ${t.nodeTier} hardware.`)}this.instancesLocked&&(this.maxInstances=this.appUpdateSpecification.instances)},generateStatsTableItems(t,e){if(console.log(t),!t||!Array.isArray(t))return[];const s=[];return t.forEach((t=>{const a=t.data.cpu_stats.online_cpus/e.cpu,i=`${((t.data.cpu_stats.cpu_usage.total_usage-t.data.precpu_stats.cpu_usage.total_usage)/(t.data.cpu_stats.system_cpu_usage-t.data.precpu_stats.system_cpu_usage)*100*a).toFixed(2)}%`,o=`${(t.data.memory_stats.usage/1e9).toFixed(2)} / ${(e.ram/1e3).toFixed(2)} GB, ${(t.data.memory_stats.usage/(1e6*e.ram)*100).toFixed(2)}%`;let n="0 / 0 GB";t.data.networks.eth0&&(n=`${(t.data.networks.eth0.rx_bytes/1e9).toFixed(2)} / ${(t.data.networks.eth0.tx_bytes/1e9).toFixed(2)} GB`);const r=`${(t.data.blkio_stats.io_service_bytes_recursive.find((t=>"read"===t.op.toLowerCase())).value/1e9).toFixed(2)} / ${(t.data.blkio_stats.io_service_bytes_recursive.find((t=>"write"===t.op.toLowerCase())).value/1e9).toFixed(2)} GB`;let l="0 / 0 GB";t.data.disk_stats&&(l=`${(t.data.disk_stats.used/1e9).toFixed(2)} / ${e.hdd.toFixed(2)} GB, ${(t.data.disk_stats.used/(1e9*e.hdd)*100).toFixed(2)}%`);const c=t.data.pids_stats.current,p={timestamp:new Date(t.timestamp).toLocaleString("en-GB",os.shortDate),cpu:i,memory:o,net:n,block:r,disk:l,pids:c};s.push(p)})),s},getCpuPercentage(t){console.log(t);const e=[];return t.forEach((t=>{const s=`${(t.data.cpu_stats.cpu_usage.total_usage/t.data.cpu_stats.cpu_usage.system_cpu_usage*100).toFixed(2)}%`;e.push(s)})),e},getTimestamps(t){const e=[];return t.forEach((t=>{e.push(t.timestamp)})),e},chartOptions(t){const e={chart:{height:350,type:"area"},dataLabels:{enabled:!1},stroke:{curve:"smooth"},xaxis:{type:"timestamp",categories:t},tooltip:{x:{format:"dd/MM/yy HH:mm"}}};return e},decodeGeolocation(t){let e=!1;t.forEach((t=>{t.startsWith("b")&&(e=!0),t.startsWith("a")&&t.startsWith("ac")&&t.startsWith("a!c")&&(e=!0)}));let s=t;if(e){const e=t.find((t=>t.startsWith("a")&&t.startsWith("ac")&&t.startsWith("a!c"))),a=t.find((t=>t.startsWith("b")));let i=`ac${e.slice(1)}`;a&&(i+=`_${a.slice(1)}`),s=[i]}const a=s.filter((t=>t.startsWith("ac"))),i=s.filter((t=>t.startsWith("a!c")));for(let o=1;o{t.push({value:e.code,instances:e.available?100:0})})),rs.countries.forEach((e=>{t.push({value:`${e.continent}_${e.code}`,instances:e.available?100:0})}));const e=await es.get("https://stats.runonflux.io/fluxinfo?projection=geolocation");if("success"===e.data.status){const s=e.data.data;s.length>5e3&&(t=[],s.forEach((e=>{if(e.geolocation&&e.geolocation.continentCode&&e.geolocation.regionName&&e.geolocation.countryCode){const s=e.geolocation.continentCode,a=`${s}_${e.geolocation.countryCode}`,i=`${a}_${e.geolocation.regionName}`,o=t.find((t=>t.value===s));o?o.instances+=1:t.push({value:s,instances:1});const n=t.find((t=>t.value===a));n?n.instances+=1:t.push({value:a,instances:1});const r=t.find((t=>t.value===i));r?r.instances+=1:t.push({value:i,instances:1})}})))}else this.showToast("info","Failed to get geolocation data from FluxStats, Using stored locations")}catch(e){console.log(e),this.showToast("info","Failed to get geolocation data from FluxStats, Using stored locations")}this.possibleLocations=t},continentsOptions(t){const e=[{value:t?"NONE":"ALL",text:t?"NONE":"ALL"}];return this.possibleLocations.filter((e=>e.instances>(t?-1:3))).forEach((t=>{if(!t.value.includes("_")){const s=rs.continents.find((e=>e.code===t.value));e.push({value:t.value,text:s?s.name:t.value})}})),e},countriesOptions(t,e){const s=[{value:"ALL",text:"ALL"}];return this.possibleLocations.filter((t=>t.instances>(e?-1:3))).forEach((e=>{if(!e.value.split("_")[2]&&e.value.startsWith(`${t}_`)){const t=rs.countries.find((t=>t.code===e.value.split("_")[1]));s.push({value:e.value.split("_")[1],text:t?t.name:e.value.split("_")[1]})}})),s},regionsOptions(t,e,s){const a=[{value:"ALL",text:"ALL"}];return this.possibleLocations.filter((t=>t.instances>(s?-1:3))).forEach((s=>{s.value.startsWith(`${t}_${e}_`)&&a.push({value:s.value.split("_")[2],text:s.value.split("_")[2]})})),a},generateGeolocations(){const t=[];for(let e=1;et.code===e))||{name:"ALL"};return`Continent: ${s.name||"Unkown"}`}if(t.startsWith("b")){const e=t.slice(1),s=rs.countries.find((t=>t.code===e))||{name:"ALL"};return`Country: ${s.name||"Unkown"}`}if(t.startsWith("ac")){const e=t.slice(2),s=e.split("_"),a=s[0],i=s[1],o=s[2],n=rs.continents.find((t=>t.code===a))||{name:"ALL"},r=rs.countries.find((t=>t.code===i))||{name:"ALL"};let l=`Allowed location: Continent: ${n.name}`;return i&&(l+=`, Country: ${r.name}`),o&&(l+=`, Region: ${o}`),l}if(t.startsWith("a!c")){const e=t.slice(3),s=e.split("_"),a=s[0],i=s[1],o=s[2],n=rs.continents.find((t=>t.code===a))||{name:"ALL"},r=rs.countries.find((t=>t.code===i))||{name:"ALL"};let l=`Forbidden location: Continent: ${n.name}`;return i&&(l+=`, Country: ${r.name}`),o&&(l+=`, Region: ${o}`),l}return"All locations allowed"},adjustMaxInstancesPossible(){const t=this.generateGeolocations(),e=t.filter((t=>t.startsWith("ac")));console.log(t);let s=0;e.forEach((t=>{const e=this.possibleLocations.find((e=>e.value===t.slice(2)));e&&(s+=e.instances),"ALL"===t&&(s+=100)})),e.length||(s+=100),console.log(s),s=s>3?s:3;const a=s>100?100:s;this.maxInstances=a,this.instancesLocked&&(this.maxInstances=this.appUpdateSpecification.instances)},constructAutomaticDomains(t,e,s=0){const a=JSON.parse(JSON.stringify(t)),i=e.toLowerCase();if(0===s){const t=[`${i}.app.runonflux.io`];for(let e=0;ee.ip===t));e>-1&&this.selectedEnterpriseNodes.splice(e,1)},async addFluxNode(t){try{const e=this.selectedEnterpriseNodes.find((e=>e.ip===t));if(console.log(t),!e){const e=this.enterpriseNodes.find((e=>e.ip===t));this.selectedEnterpriseNodes.push(e),console.log(this.selectedEnterpriseNodes);const s=this.enterprisePublicKeys.find((e=>e.nodeip===t));if(!s){const e=await this.fetchEnterpriseKey(t);if(e){const s={nodeip:t,nodekey:e},a=this.enterprisePublicKeys.find((e=>e.nodeip===t));a||this.enterprisePublicKeys.push(s)}}}}catch(e){console.log(e)}},async autoSelectNodes(){const{instances:t}=this.appUpdateSpecification,e=+t+3,s=+t+Math.ceil(Math.max(7,.15*+t)),a=this.enterpriseNodes.filter((t=>!this.selectedEnterpriseNodes.includes(t))),i=[],o=a.filter((t=>t.enterprisePoints>0&&t.score>1e3));for(let n=0;nt.pubkey===o[n].pubkey)).length,a=i.filter((t=>t.pubkey===o[n].pubkey)).length;if(t+a=s)break}if(i.length{const e=this.selectedEnterpriseNodes.find((e=>e.ip===t.ip));if(!e){this.selectedEnterpriseNodes.push(t);const e=this.enterprisePublicKeys.find((e=>e.nodeip===t.ip));if(!e){const e=await this.fetchEnterpriseKey(t.ip);if(e){const s={nodeip:t.ip,nodekey:e},a=this.enterprisePublicKeys.find((e=>e.nodeip===t.ip));a||this.enterprisePublicKeys.push(s)}}}}))},constructNodes(){if(this.appUpdateSpecification.nodes=[],this.selectedEnterpriseNodes.forEach((t=>{this.appUpdateSpecification.nodes.push(t.ip)})),this.appUpdateSpecification.nodes.length>this.maximumEnterpriseNodes)throw new Error("Maximum of 120 Enterprise Nodes allowed")},async getEnterpriseNodes(){const t=sessionStorage.getItem("flux_enterprise_nodes");t&&(this.enterpriseNodes=JSON.parse(t),this.entNodesSelectTable.totalRows=this.enterpriseNodes.length);try{const t=await K.Z.getEnterpriseNodes();"error"===t.data.status?this.showToast("danger",t.data.data.message||t.data.data):(this.enterpriseNodes=t.data.data,this.entNodesSelectTable.totalRows=this.enterpriseNodes.length,sessionStorage.setItem("flux_enterprise_nodes",JSON.stringify(this.enterpriseNodes)))}catch(e){console.log(e)}},async getDaemonBlockCount(){const t=await Z.Z.getBlockCount();"success"===t.data.status&&(this.daemonBlockCount=t.data.data)},async fetchEnterpriseKey(t){try{const e=t.split(":")[0],s=Number(t.split(":")[1]||16127),a=await es.get(`https://${e.replace(/\./g,"-")}-${s}.node.api.runonflux.io/flux/pgp`);if("error"!==a.data.status){const t=a.data.data;return t}return this.showToast("danger",a.data.data.message||a.data.data),null}catch(e){return console.log(e),null}},async encryptMessage(t,e){try{const s=await Promise.all(e.map((t=>is.readKey({armoredKey:t}))));console.log(e),console.log(t);const a=await is.createMessage({text:t}),i=await is.encrypt({message:a,encryptionKeys:s});return i}catch(s){return this.showToast("danger","Data encryption failed"),null}},async onSessionConnect(t){console.log(t);const e=await this.signClient.request({topic:t.topic,chainId:"eip155:1",request:{method:"personal_sign",params:[this.dataToSign,t.namespaces.eip155.accounts[0].split(":")[2]]}});console.log(e),this.signature=e},async initWalletConnect(){try{const t=await J.ZP.init(Ye);this.signClient=t;const e=t.session.getAll().length-1,s=t.session.getAll()[e];if(!s)throw new Error("WalletConnect session expired. Please log into FluxOS again");this.onSessionConnect(s)}catch(t){console.error(t),this.showToast("danger",t.message)}},async siwe(t,e){try{const s=`0x${Ze.from(t,"utf8").toString("hex")}`,a=await ts.request({method:"personal_sign",params:[s,e]});console.log(a),this.signature=a}catch(s){console.error(s),this.showToast("danger",s.message)}},async initMetamask(){try{if(!ts)return void this.showToast("danger","Metamask not detected");let t;if(ts&&!ts.selectedAddress){const e=await ts.request({method:"eth_requestAccounts",params:[]});console.log(e),t=e[0]}else t=ts.selectedAddress;this.siwe(this.dataToSign,t)}catch(t){this.showToast("danger",t.message)}},async initSSP(){try{if(!window.ssp)return void this.showToast("danger","SSP Wallet not installed");const t=await window.ssp.request("sspwid_sign_message",{message:this.dataToSign});if("ERROR"===t.status)throw new Error(t.data||t.result);this.signature=t.signature}catch(t){this.showToast("danger",t.message)}},async initSSPpay(){try{if(!window.ssp)return void this.showToast("danger","SSP Wallet not installed");const t={message:this.updateHash,amount:(+this.appPricePerSpecs||0).toString(),address:this.deploymentAddress,chain:"flux"},e=await window.ssp.request("pay",t);if("ERROR"===e.status)throw new Error(e.data||e.result);this.showToast("success",`${e.data}: ${e.txid}`)}catch(t){this.showToast("danger",t.message)}},async getApplicationManagementAndStatus(){if(this.selectedIp){await this.appsGetListAllApps(),console.log(this.getAllAppsResponse);const t=this.getAllAppsResponse.data.find((t=>t.Names[0]===this.getAppDockerNameIdentifier()))||{},e={name:this.appName,state:t.State||"Unknown state",status:t.Status||"Unknown status"};e.state=e.state.charAt(0).toUpperCase()+e.state.slice(1),e.status=e.status.charAt(0).toUpperCase()+e.status.slice(1);let s=`${e.name} - ${e.state} - ${e.status}`;if(this.appSpecification&&this.appSpecification.version>=4){s=`${this.appSpecification.name}:`;for(const t of this.appSpecification.compose){const e=this.getAllAppsResponse.data.find((e=>e.Names[0]===this.getAppDockerNameIdentifier(`${t.name}_${this.appSpecification.name}`)))||{},a={name:t.name,state:e.State||"Unknown state",status:e.Status||"Unknown status"};a.state=a.state.charAt(0).toUpperCase()+a.state.slice(1),a.status=a.status.charAt(0).toUpperCase()+a.status.slice(1);const i=` ${a.name} - ${a.state} - ${a.status},`;s+=i}s=s.substring(0,s.length-1)}this.applicationManagementAndStatus=s}}}},cs=ls;var ps=s(1001),ds=(0,ps.Z)(cs,i,o,!1,null,null,null);const us=ds.exports},56761:t=>{(function(){"use strict";t.exports=function(t,e,s){for(var a=e||/\s/g,i=!1,o=!1,n=[],r=[],l=t.split(""),c=0;c0?(r.push(n.join("")),n=[]):e&&r.push(p):(!0===s&&n.push(p),o=!o):(!0===s&&n.push(p),i=!i)}return n.length>0?r.push(n.join("")):e&&r.push(""),r}})()},12617:t=>{!function(e,s){t.exports=s()}(self,(()=>(()=>{"use strict";var t={};return(()=>{var e=t;Object.defineProperty(e,"__esModule",{value:!0}),e.FitAddon=void 0,e.FitAddon=class{activate(t){this._terminal=t}dispose(){}fit(){const t=this.proposeDimensions();if(!t||!this._terminal||isNaN(t.cols)||isNaN(t.rows))return;const e=this._terminal._core;this._terminal.rows===t.rows&&this._terminal.cols===t.cols||(e._renderService.clear(),this._terminal.resize(t.cols,t.rows))}proposeDimensions(){if(!this._terminal)return;if(!this._terminal.element||!this._terminal.element.parentElement)return;const t=this._terminal._core,e=t._renderService.dimensions;if(0===e.css.cell.width||0===e.css.cell.height)return;const s=0===this._terminal.options.scrollback?0:t.viewport.scrollBarWidth,a=window.getComputedStyle(this._terminal.element.parentElement),i=parseInt(a.getPropertyValue("height")),o=Math.max(0,parseInt(a.getPropertyValue("width"))),n=window.getComputedStyle(this._terminal.element),r=i-(parseInt(n.getPropertyValue("padding-top"))+parseInt(n.getPropertyValue("padding-bottom"))),l=o-(parseInt(n.getPropertyValue("padding-right"))+parseInt(n.getPropertyValue("padding-left")))-s;return{cols:Math.max(2,Math.floor(l/e.css.cell.width)),rows:Math.max(1,Math.floor(r/e.css.cell.height))}}}})(),t})()))},12286:function(t){!function(e,s){t.exports=s()}(0,(()=>(()=>{"use strict";var t={930:(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ColorContrastCache=void 0;const a=s(485);e.ColorContrastCache=class{constructor(){this._color=new a.TwoKeyMap,this._css=new a.TwoKeyMap}setCss(t,e,s){this._css.set(t,e,s)}getCss(t,e){return this._css.get(t,e)}setColor(t,e,s){this._color.set(t,e,s)}getColor(t,e){return this._color.get(t,e)}clear(){this._color.clear(),this._css.clear()}}},997:function(t,e,s){var a=this&&this.__decorate||function(t,e,s,a){var i,o=arguments.length,n=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,a);else for(var r=t.length-1;r>=0;r--)(i=t[r])&&(n=(o<3?i(n):o>3?i(e,s,n):i(e,s))||n);return o>3&&n&&Object.defineProperty(e,s,n),n},i=this&&this.__param||function(t,e){return function(s,a){e(s,a,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ThemeService=e.DEFAULT_ANSI_COLORS=void 0;const o=s(930),n=s(160),r=s(345),l=s(859),c=s(97),p=n.css.toColor("#ffffff"),d=n.css.toColor("#000000"),u=n.css.toColor("#ffffff"),h=n.css.toColor("#000000"),m={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};e.DEFAULT_ANSI_COLORS=Object.freeze((()=>{const t=[n.css.toColor("#2e3436"),n.css.toColor("#cc0000"),n.css.toColor("#4e9a06"),n.css.toColor("#c4a000"),n.css.toColor("#3465a4"),n.css.toColor("#75507b"),n.css.toColor("#06989a"),n.css.toColor("#d3d7cf"),n.css.toColor("#555753"),n.css.toColor("#ef2929"),n.css.toColor("#8ae234"),n.css.toColor("#fce94f"),n.css.toColor("#729fcf"),n.css.toColor("#ad7fa8"),n.css.toColor("#34e2e2"),n.css.toColor("#eeeeec")],e=[0,95,135,175,215,255];for(let s=0;s<216;s++){const a=e[s/36%6|0],i=e[s/6%6|0],o=e[s%6];t.push({css:n.channels.toCss(a,i,o),rgba:n.channels.toRgba(a,i,o)})}for(let s=0;s<24;s++){const e=8+10*s;t.push({css:n.channels.toCss(e,e,e),rgba:n.channels.toRgba(e,e,e)})}return t})());let f=e.ThemeService=class extends l.Disposable{get colors(){return this._colors}constructor(t){super(),this._optionsService=t,this._contrastCache=new o.ColorContrastCache,this._halfContrastCache=new o.ColorContrastCache,this._onChangeColors=this.register(new r.EventEmitter),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:p,background:d,cursor:u,cursorAccent:h,selectionForeground:void 0,selectionBackgroundTransparent:m,selectionBackgroundOpaque:n.color.blend(d,m),selectionInactiveBackgroundTransparent:m,selectionInactiveBackgroundOpaque:n.color.blend(d,m),ansi:e.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache,halfContrastCache:this._halfContrastCache},this._updateRestoreColors(),this._setTheme(this._optionsService.rawOptions.theme),this.register(this._optionsService.onSpecificOptionChange("minimumContrastRatio",(()=>this._contrastCache.clear()))),this.register(this._optionsService.onSpecificOptionChange("theme",(()=>this._setTheme(this._optionsService.rawOptions.theme))))}_setTheme(t={}){const s=this._colors;if(s.foreground=g(t.foreground,p),s.background=g(t.background,d),s.cursor=g(t.cursor,u),s.cursorAccent=g(t.cursorAccent,h),s.selectionBackgroundTransparent=g(t.selectionBackground,m),s.selectionBackgroundOpaque=n.color.blend(s.background,s.selectionBackgroundTransparent),s.selectionInactiveBackgroundTransparent=g(t.selectionInactiveBackground,s.selectionBackgroundTransparent),s.selectionInactiveBackgroundOpaque=n.color.blend(s.background,s.selectionInactiveBackgroundTransparent),s.selectionForeground=t.selectionForeground?g(t.selectionForeground,n.NULL_COLOR):void 0,s.selectionForeground===n.NULL_COLOR&&(s.selectionForeground=void 0),n.color.isOpaque(s.selectionBackgroundTransparent)){const t=.3;s.selectionBackgroundTransparent=n.color.opacity(s.selectionBackgroundTransparent,t)}if(n.color.isOpaque(s.selectionInactiveBackgroundTransparent)){const t=.3;s.selectionInactiveBackgroundTransparent=n.color.opacity(s.selectionInactiveBackgroundTransparent,t)}if(s.ansi=e.DEFAULT_ANSI_COLORS.slice(),s.ansi[0]=g(t.black,e.DEFAULT_ANSI_COLORS[0]),s.ansi[1]=g(t.red,e.DEFAULT_ANSI_COLORS[1]),s.ansi[2]=g(t.green,e.DEFAULT_ANSI_COLORS[2]),s.ansi[3]=g(t.yellow,e.DEFAULT_ANSI_COLORS[3]),s.ansi[4]=g(t.blue,e.DEFAULT_ANSI_COLORS[4]),s.ansi[5]=g(t.magenta,e.DEFAULT_ANSI_COLORS[5]),s.ansi[6]=g(t.cyan,e.DEFAULT_ANSI_COLORS[6]),s.ansi[7]=g(t.white,e.DEFAULT_ANSI_COLORS[7]),s.ansi[8]=g(t.brightBlack,e.DEFAULT_ANSI_COLORS[8]),s.ansi[9]=g(t.brightRed,e.DEFAULT_ANSI_COLORS[9]),s.ansi[10]=g(t.brightGreen,e.DEFAULT_ANSI_COLORS[10]),s.ansi[11]=g(t.brightYellow,e.DEFAULT_ANSI_COLORS[11]),s.ansi[12]=g(t.brightBlue,e.DEFAULT_ANSI_COLORS[12]),s.ansi[13]=g(t.brightMagenta,e.DEFAULT_ANSI_COLORS[13]),s.ansi[14]=g(t.brightCyan,e.DEFAULT_ANSI_COLORS[14]),s.ansi[15]=g(t.brightWhite,e.DEFAULT_ANSI_COLORS[15]),t.extendedAnsi){const a=Math.min(s.ansi.length-16,t.extendedAnsi.length);for(let i=0;i{Object.defineProperty(e,"__esModule",{value:!0}),e.contrastRatio=e.toPaddedHex=e.rgba=e.rgb=e.css=e.color=e.channels=e.NULL_COLOR=void 0;const a=s(399);let i=0,o=0,n=0,r=0;var l,c,p,d,u;function h(t){const e=t.toString(16);return e.length<2?"0"+e:e}function m(t,e){return t>>0}}(l||(e.channels=l={})),function(t){function e(t,e){return r=Math.round(255*e),[i,o,n]=u.toChannels(t.rgba),{css:l.toCss(i,o,n,r),rgba:l.toRgba(i,o,n,r)}}t.blend=function(t,e){if(r=(255&e.rgba)/255,1===r)return{css:e.css,rgba:e.rgba};const s=e.rgba>>24&255,a=e.rgba>>16&255,c=e.rgba>>8&255,p=t.rgba>>24&255,d=t.rgba>>16&255,u=t.rgba>>8&255;return i=p+Math.round((s-p)*r),o=d+Math.round((a-d)*r),n=u+Math.round((c-u)*r),{css:l.toCss(i,o,n),rgba:l.toRgba(i,o,n)}},t.isOpaque=function(t){return 255==(255&t.rgba)},t.ensureContrastRatio=function(t,e,s){const a=u.ensureContrastRatio(t.rgba,e.rgba,s);if(a)return u.toColor(a>>24&255,a>>16&255,a>>8&255)},t.opaque=function(t){const e=(255|t.rgba)>>>0;return[i,o,n]=u.toChannels(e),{css:l.toCss(i,o,n),rgba:e}},t.opacity=e,t.multiplyOpacity=function(t,s){return r=255&t.rgba,e(t,r*s/255)},t.toColorRGB=function(t){return[t.rgba>>24&255,t.rgba>>16&255,t.rgba>>8&255]}}(c||(e.color=c={})),function(t){let e,s;if(!a.isNode){const t=document.createElement("canvas");t.width=1,t.height=1;const a=t.getContext("2d",{willReadFrequently:!0});a&&(e=a,e.globalCompositeOperation="copy",s=e.createLinearGradient(0,0,1,1))}t.toColor=function(t){if(t.match(/#[\da-f]{3,8}/i))switch(t.length){case 4:return i=parseInt(t.slice(1,2).repeat(2),16),o=parseInt(t.slice(2,3).repeat(2),16),n=parseInt(t.slice(3,4).repeat(2),16),u.toColor(i,o,n);case 5:return i=parseInt(t.slice(1,2).repeat(2),16),o=parseInt(t.slice(2,3).repeat(2),16),n=parseInt(t.slice(3,4).repeat(2),16),r=parseInt(t.slice(4,5).repeat(2),16),u.toColor(i,o,n,r);case 7:return{css:t,rgba:(parseInt(t.slice(1),16)<<8|255)>>>0};case 9:return{css:t,rgba:parseInt(t.slice(1),16)>>>0}}const a=t.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(a)return i=parseInt(a[1]),o=parseInt(a[2]),n=parseInt(a[3]),r=Math.round(255*(void 0===a[5]?1:parseFloat(a[5]))),u.toColor(i,o,n,r);if(!e||!s)throw new Error("css.toColor: Unsupported css format");if(e.fillStyle=s,e.fillStyle=t,"string"!=typeof e.fillStyle)throw new Error("css.toColor: Unsupported css format");if(e.fillRect(0,0,1,1),[i,o,n,r]=e.getImageData(0,0,1,1).data,255!==r)throw new Error("css.toColor: Unsupported css format");return{rgba:l.toRgba(i,o,n,r),css:t}}}(p||(e.css=p={})),function(t){function e(t,e,s){const a=t/255,i=e/255,o=s/255;return.2126*(a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))+.7152*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))}t.relativeLuminance=function(t){return e(t>>16&255,t>>8&255,255&t)},t.relativeLuminance2=e}(d||(e.rgb=d={})),function(t){function e(t,e,s){const a=t>>24&255,i=t>>16&255,o=t>>8&255;let n=e>>24&255,r=e>>16&255,l=e>>8&255,c=m(d.relativeLuminance2(n,r,l),d.relativeLuminance2(a,i,o));for(;c0||r>0||l>0);)n-=Math.max(0,Math.ceil(.1*n)),r-=Math.max(0,Math.ceil(.1*r)),l-=Math.max(0,Math.ceil(.1*l)),c=m(d.relativeLuminance2(n,r,l),d.relativeLuminance2(a,i,o));return(n<<24|r<<16|l<<8|255)>>>0}function s(t,e,s){const a=t>>24&255,i=t>>16&255,o=t>>8&255;let n=e>>24&255,r=e>>16&255,l=e>>8&255,c=m(d.relativeLuminance2(n,r,l),d.relativeLuminance2(a,i,o));for(;c>>0}t.ensureContrastRatio=function(t,a,i){const o=d.relativeLuminance(t>>8),n=d.relativeLuminance(a>>8);if(m(o,n)>8));if(rm(o,d.relativeLuminance(e>>8))?n:e}return n}const r=s(t,a,i),l=m(o,d.relativeLuminance(r>>8));if(lm(o,d.relativeLuminance(s>>8))?r:s}return r}},t.reduceLuminance=e,t.increaseLuminance=s,t.toChannels=function(t){return[t>>24&255,t>>16&255,t>>8&255,255&t]},t.toColor=function(t,e,s,a){return{css:l.toCss(t,e,s,a),rgba:l.toRgba(t,e,s,a)}}}(u||(e.rgba=u={})),e.toPaddedHex=h,e.contrastRatio=m},345:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.forwardEvent=e.EventEmitter=void 0,e.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=t=>(this._listeners.push(t),{dispose:()=>{if(!this._disposed)for(let e=0;ee.fire(t)))}},859:(t,e)=>{function s(t){for(const e of t)e.dispose();t.length=0}Object.defineProperty(e,"__esModule",{value:!0}),e.getDisposeArrayDisposable=e.disposeArray=e.toDisposable=e.MutableDisposable=e.Disposable=void 0,e.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(const t of this._disposables)t.dispose();this._disposables.length=0}register(t){return this._disposables.push(t),t}unregister(t){const e=this._disposables.indexOf(t);-1!==e&&this._disposables.splice(e,1)}},e.MutableDisposable=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(t){var e;this._isDisposed||t===this._value||(null===(e=this._value)||void 0===e||e.dispose(),this._value=t)}clear(){this.value=void 0}dispose(){var t;this._isDisposed=!0,null===(t=this._value)||void 0===t||t.dispose(),this._value=void 0}},e.toDisposable=function(t){return{dispose:t}},e.disposeArray=s,e.getDisposeArrayDisposable=function(t){return{dispose:()=>s(t)}}},485:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.FourKeyMap=e.TwoKeyMap=void 0;class s{constructor(){this._data={}}set(t,e,s){this._data[t]||(this._data[t]={}),this._data[t][e]=s}get(t,e){return this._data[t]?this._data[t][e]:void 0}clear(){this._data={}}}e.TwoKeyMap=s,e.FourKeyMap=class{constructor(){this._data=new s}set(t,e,a,i,o){this._data.get(t,e)||this._data.set(t,e,new s),this._data.get(t,e).set(a,i,o)}get(t,e,s,a){var i;return null===(i=this._data.get(t,e))||void 0===i?void 0:i.get(s,a)}clear(){this._data.clear()}}},399:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isChromeOS=e.isLinux=e.isWindows=e.isIphone=e.isIpad=e.isMac=e.getSafariVersion=e.isSafari=e.isLegacyEdge=e.isFirefox=e.isNode=void 0,e.isNode="undefined"==typeof navigator;const s=e.isNode?"node":navigator.userAgent,a=e.isNode?"node":navigator.platform;e.isFirefox=s.includes("Firefox"),e.isLegacyEdge=s.includes("Edge"),e.isSafari=/^((?!chrome|android).)*safari/i.test(s),e.getSafariVersion=function(){if(!e.isSafari)return 0;const t=s.match(/Version\/(\d+)/);return null===t||t.length<2?0:parseInt(t[1])},e.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(a),e.isIpad="iPad"===a,e.isIphone="iPhone"===a,e.isWindows=["Windows","Win16","Win32","WinCE"].includes(a),e.isLinux=a.indexOf("Linux")>=0,e.isChromeOS=/\bCrOS\b/.test(s)},726:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createDecorator=e.getServiceDependencies=e.serviceRegistry=void 0;const s="di$target",a="di$dependencies";e.serviceRegistry=new Map,e.getServiceDependencies=function(t){return t[a]||[]},e.createDecorator=function(t){if(e.serviceRegistry.has(t))return e.serviceRegistry.get(t);const i=function(t,e,o){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(t,e,i){e[s]===e?e[a].push({id:t,index:i}):(e[a]=[{id:t,index:i}],e[s]=e)}(i,t,o)};return i.toString=()=>t,e.serviceRegistry.set(t,i),i}},97:(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IDecorationService=e.IUnicodeService=e.IOscLinkService=e.IOptionsService=e.ILogService=e.LogLevelEnum=e.IInstantiationService=e.ICharsetService=e.ICoreService=e.ICoreMouseService=e.IBufferService=void 0;const a=s(726);var i;e.IBufferService=(0,a.createDecorator)("BufferService"),e.ICoreMouseService=(0,a.createDecorator)("CoreMouseService"),e.ICoreService=(0,a.createDecorator)("CoreService"),e.ICharsetService=(0,a.createDecorator)("CharsetService"),e.IInstantiationService=(0,a.createDecorator)("InstantiationService"),function(t){t[t.TRACE=0]="TRACE",t[t.DEBUG=1]="DEBUG",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.OFF=5]="OFF"}(i||(e.LogLevelEnum=i={})),e.ILogService=(0,a.createDecorator)("LogService"),e.IOptionsService=(0,a.createDecorator)("OptionsService"),e.IOscLinkService=(0,a.createDecorator)("OscLinkService"),e.IUnicodeService=(0,a.createDecorator)("UnicodeService"),e.IDecorationService=(0,a.createDecorator)("DecorationService")}},e={};function s(a){var i=e[a];if(void 0!==i)return i.exports;var o=e[a]={exports:{}};return t[a].call(o.exports,o,o.exports,s),o.exports}var a={};return(()=>{var t=a;Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLSerializeHandler=t.SerializeAddon=void 0;const e=s(997);function i(t,e,s){return Math.max(e,Math.min(t,s))}class o{constructor(t){this._buffer=t}serialize(t){const e=this._buffer.getNullCell(),s=this._buffer.getNullCell();let a=e;const i=t.start.x,o=t.end.x,n=t.start.y,r=t.end.y;this._beforeSerialize(o-i,i,o);for(let l=i;l<=o;l++){const i=this._buffer.getLine(l);if(i){const o=l!==t.start.x?0:n,c=l!==t.end.x?i.length:r;for(let t=o;t0&&!r(this._cursorStyle,this._backgroundCell)&&(this._currentRow+=`[${this._nullCellCount}X`);let a="";if(!e){t-this._firstRow>=this._terminal.rows&&(null===(s=this._buffer.getLine(this._cursorStyleRow))||void 0===s||s.getCell(this._cursorStyleCol,this._backgroundCell));const e=this._buffer.getLine(t),i=this._buffer.getLine(t+1);if(i.isWrapped){a="";const s=e.getCell(e.length-1,this._thisRowLastChar),o=e.getCell(e.length-2,this._thisRowLastSecondChar),n=i.getCell(0,this._nextRowFirstChar),l=n.getWidth()>1;let c=!1;(n.getChars()&&l?this._nullCellCount<=1:this._nullCellCount<=0)&&((s.getChars()||0===s.getWidth())&&r(s,n)&&(c=!0),l&&(o.getChars()||0===o.getWidth())&&r(s,n)&&r(o,n)&&(c=!0)),c||(a="-".repeat(this._nullCellCount+1),a+="",this._nullCellCount>0&&(a+="",a+=`[${e.length-this._nullCellCount}C`,a+=`[${this._nullCellCount}X`,a+=`[${e.length-this._nullCellCount}D`,a+=""),this._lastContentCursorRow=t+1,this._lastContentCursorCol=0,this._lastCursorRow=t+1,this._lastCursorCol=0)}else a="\r\n",this._lastCursorRow=t+1,this._lastCursorCol=0}this._allRows[this._rowIndex]=this._currentRow,this._allRowSeparators[this._rowIndex++]=a,this._currentRow="",this._nullCellCount=0}_diffStyle(t,e){const s=[],a=!n(t,e),i=!r(t,e),o=!l(t,e);if(a||i||o)if(t.isAttributeDefault())e.isAttributeDefault()||s.push(0);else{if(a){const e=t.getFgColor();t.isFgRGB()?s.push(38,2,e>>>16&255,e>>>8&255,255&e):t.isFgPalette()?e>=16?s.push(38,5,e):s.push(8&e?90+(7&e):30+(7&e)):s.push(39)}if(i){const e=t.getBgColor();t.isBgRGB()?s.push(48,2,e>>>16&255,e>>>8&255,255&e):t.isBgPalette()?e>=16?s.push(48,5,e):s.push(8&e?100+(7&e):40+(7&e)):s.push(49)}o&&(t.isInverse()!==e.isInverse()&&s.push(t.isInverse()?7:27),t.isBold()!==e.isBold()&&s.push(t.isBold()?1:22),t.isUnderline()!==e.isUnderline()&&s.push(t.isUnderline()?4:24),t.isOverline()!==e.isOverline()&&s.push(t.isOverline()?53:55),t.isBlink()!==e.isBlink()&&s.push(t.isBlink()?5:25),t.isInvisible()!==e.isInvisible()&&s.push(t.isInvisible()?8:28),t.isItalic()!==e.isItalic()&&s.push(t.isItalic()?3:23),t.isDim()!==e.isDim()&&s.push(t.isDim()?2:22),t.isStrikethrough()!==e.isStrikethrough()&&s.push(t.isStrikethrough()?9:29))}return s}_nextCell(t,e,s,a){if(0===t.getWidth())return;const i=""===t.getChars(),o=this._diffStyle(t,this._cursorStyle);if(i?!r(this._cursorStyle,t):o.length>0){this._nullCellCount>0&&(r(this._cursorStyle,this._backgroundCell)||(this._currentRow+=`[${this._nullCellCount}X`),this._currentRow+=`[${this._nullCellCount}C`,this._nullCellCount=0),this._lastContentCursorRow=this._lastCursorRow=s,this._lastContentCursorCol=this._lastCursorCol=a,this._currentRow+=`[${o.join(";")}m`;const t=this._buffer.getLine(s);void 0!==t&&(t.getCell(a,this._cursorStyle),this._cursorStyleRow=s,this._cursorStyleCol=a)}i?this._nullCellCount+=t.getWidth():(this._nullCellCount>0&&(r(this._cursorStyle,this._backgroundCell)||(this._currentRow+=`[${this._nullCellCount}X`),this._currentRow+=`[${this._nullCellCount}C`,this._nullCellCount=0),this._currentRow+=t.getChars(),this._lastContentCursorRow=this._lastCursorRow=s,this._lastContentCursorCol=this._lastCursorCol=a+t.getWidth())}_serializeString(){let t=this._allRows.length;this._buffer.length-this._firstRow<=this._terminal.rows&&(t=this._lastContentCursorRow+1-this._firstRow,this._lastCursorCol=this._lastContentCursorCol,this._lastCursorRow=this._lastContentCursorRow);let e="";for(let r=0;r0?e+=`[${i}B`:i<0&&(e+=`[${-i}A`),(t=>{t>0?e+=`[${t}C`:t<0&&(e+=`[${-t}D`)})(a-this._lastCursorCol));const o=this._terminal._core._inputHandler._curAttrData,n=this._diffStyle(o,this._cursorStyle);return n.length>0&&(e+=`[${n.join(";")}m`),e}}t.SerializeAddon=class{activate(t){this._terminal=t}_serializeBuffer(t,e,s){const a=e.length,o=new c(e,t),n=void 0===s?a:i(s+t.rows,0,a);return o.serialize({start:{x:a-n,y:0},end:{x:a-1,y:t.cols}})}_serializeBufferAsHTML(t,e){var s,a;const o=t.buffer.active,n=new p(o,t,e);if(null===(s=e.onlySelection)||void 0===s||!s){const s=o.length,a=e.scrollback,r=void 0===a?s:i(a+t.rows,0,s);return n.serialize({start:{x:s-r,y:0},end:{x:s-1,y:t.cols}})}const r=null===(a=this._terminal)||void 0===a?void 0:a.getSelectionPosition();return void 0!==r?n.serialize({start:{x:r.start.y,y:r.start.x},end:{x:r.end.y,y:r.end.x}}):""}_serializeModes(t){let e="";const s=t.modes;if(s.applicationCursorKeysMode&&(e+="[?1h"),s.applicationKeypadMode&&(e+="[?66h"),s.bracketedPasteMode&&(e+="[?2004h"),s.insertMode&&(e+=""),s.originMode&&(e+="[?6h"),s.reverseWraparoundMode&&(e+="[?45h"),s.sendFocusMode&&(e+="[?1004h"),!1===s.wraparoundMode&&(e+="[?7l"),"none"!==s.mouseTrackingMode)switch(s.mouseTrackingMode){case"x10":e+="[?9h";break;case"vt200":e+="[?1000h";break;case"drag":e+="[?1002h";break;case"any":e+="[?1003h"}return e}serialize(t){if(!this._terminal)throw new Error("Cannot use addon until it has been loaded");let e=this._serializeBuffer(this._terminal,this._terminal.buffer.normal,null==t?void 0:t.scrollback);return(null==t?void 0:t.excludeAltBuffer)||"alternate"!==this._terminal.buffer.active.type||(e+=`[?1049h${this._serializeBuffer(this._terminal,this._terminal.buffer.alternate,void 0)}`),(null==t?void 0:t.excludeModes)||(e+=this._serializeModes(this._terminal)),e}serializeAsHTML(t){if(!this._terminal)throw new Error("Cannot use addon until it has been loaded");return this._serializeBufferAsHTML(this._terminal,t||{})}dispose(){}};class p extends o{constructor(t,s,a){super(t),this._terminal=s,this._options=a,this._currentRow="",this._htmlContent="",s._core._themeService?this._ansiColors=s._core._themeService.colors.ansi:this._ansiColors=e.DEFAULT_ANSI_COLORS}_padStart(t,e,s){return e>>=0,s=null!=s?s:" ",t.length>e?t:((e-=t.length)>s.length&&(s+=s.repeat(e/s.length)),s.slice(0,e)+t)}_beforeSerialize(t,e,s){var a,i,o,n,r;this._htmlContent+="\x3c!--StartFragment--\x3e
";let l="#000000",c="#ffffff";null!==(a=this._options.includeGlobalBackground)&&void 0!==a&&a&&(l=null!==(o=null===(i=this._terminal.options.theme)||void 0===i?void 0:i.foreground)&&void 0!==o?o:"#ffffff",c=null!==(r=null===(n=this._terminal.options.theme)||void 0===n?void 0:n.background)&&void 0!==r?r:"#000000");const p=[];p.push("color: "+l+";"),p.push("background-color: "+c+";"),p.push("font-family: "+this._terminal.options.fontFamily+";"),p.push("font-size: "+this._terminal.options.fontSize+"px;"),this._htmlContent+="
"}_afterSerialize(){this._htmlContent+="
",this._htmlContent+="
\x3c!--EndFragment--\x3e"}_rowEnd(t,e){this._htmlContent+="
"+this._currentRow+"
",this._currentRow=""}_getHexColor(t,e){const s=e?t.getFgColor():t.getBgColor();return(e?t.isFgRGB():t.isBgRGB())?[s>>16&255,s>>8&255,255&s].map((t=>this._padStart(t.toString(16),2,"0"))).join(""):(e?t.isFgPalette():t.isBgPalette())?this._ansiColors[s].css:void 0}_diffStyle(t,e){const s=[],a=!n(t,e),i=!r(t,e),o=!l(t,e);if(a||i||o){const e=this._getHexColor(t,!0);e&&s.push("color: "+e+";");const a=this._getHexColor(t,!1);return a&&s.push("background-color: "+a+";"),t.isInverse()&&s.push("color: #000000; background-color: #BFBFBF;"),t.isBold()&&s.push("font-weight: bold;"),t.isUnderline()&&t.isOverline()?s.push("text-decoration: overline underline;"):t.isUnderline()?s.push("text-decoration: underline;"):t.isOverline()&&s.push("text-decoration: overline;"),t.isBlink()&&s.push("text-decoration: blink;"),t.isInvisible()&&s.push("visibility: hidden;"),t.isItalic()&&s.push("font-style: italic;"),t.isDim()&&s.push("opacity: 0.5;"),t.isStrikethrough()&&s.push("text-decoration: line-through;"),s}}_nextCell(t,e,s,a){if(0===t.getWidth())return;const i=""===t.getChars(),o=this._diffStyle(t,e);o&&(this._currentRow+=0===o.length?"
":""),this._currentRow+=i?" ":t.getChars()}_serializeString(){return this._htmlContent}}t.HTMLSerializeHandler=p})(),a})()))},32993:function(t){!function(e,s){t.exports=s()}(0,(()=>(()=>{"use strict";var t={433:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.UnicodeV11=void 0;const s=[[768,879],[1155,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1541],[1552,1562],[1564,1564],[1611,1631],[1648,1648],[1750,1757],[1759,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2045,2045],[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2259,2306],[2362,2362],[2364,2364],[2369,2376],[2381,2381],[2385,2391],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2558,2558],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2641,2641],[2672,2673],[2677,2677],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2810,2815],[2817,2817],[2876,2876],[2879,2879],[2881,2884],[2893,2893],[2902,2902],[2914,2915],[2946,2946],[3008,3008],[3021,3021],[3072,3072],[3076,3076],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3170,3171],[3201,3201],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3328,3329],[3387,3388],[3393,3396],[3405,3405],[3426,3427],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4151],[4153,4154],[4157,4158],[4184,4185],[4190,4192],[4209,4212],[4226,4226],[4229,4230],[4237,4237],[4253,4253],[4448,4607],[4957,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6158],[6277,6278],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6683,6683],[6742,6742],[6744,6750],[6752,6752],[6754,6754],[6757,6764],[6771,6780],[6783,6783],[6832,6846],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7040,7041],[7074,7077],[7080,7081],[7083,7085],[7142,7142],[7144,7145],[7149,7149],[7151,7153],[7212,7219],[7222,7223],[7376,7378],[7380,7392],[7394,7400],[7405,7405],[7412,7412],[7416,7417],[7616,7673],[7675,7679],[8203,8207],[8234,8238],[8288,8292],[8294,8303],[8400,8432],[11503,11505],[11647,11647],[11744,11775],[12330,12333],[12441,12442],[42607,42610],[42612,42621],[42654,42655],[42736,42737],[43010,43010],[43014,43014],[43019,43019],[43045,43046],[43204,43205],[43232,43249],[43263,43263],[43302,43309],[43335,43345],[43392,43394],[43443,43443],[43446,43449],[43452,43453],[43493,43493],[43561,43566],[43569,43570],[43573,43574],[43587,43587],[43596,43596],[43644,43644],[43696,43696],[43698,43700],[43703,43704],[43710,43711],[43713,43713],[43756,43757],[43766,43766],[44005,44005],[44008,44008],[44013,44013],[64286,64286],[65024,65039],[65056,65071],[65279,65279],[65529,65531]],a=[[66045,66045],[66272,66272],[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[68325,68326],[68900,68903],[69446,69456],[69633,69633],[69688,69702],[69759,69761],[69811,69814],[69817,69818],[69821,69821],[69837,69837],[69888,69890],[69927,69931],[69933,69940],[70003,70003],[70016,70017],[70070,70078],[70089,70092],[70191,70193],[70196,70196],[70198,70199],[70206,70206],[70367,70367],[70371,70378],[70400,70401],[70459,70460],[70464,70464],[70502,70508],[70512,70516],[70712,70719],[70722,70724],[70726,70726],[70750,70750],[70835,70840],[70842,70842],[70847,70848],[70850,70851],[71090,71093],[71100,71101],[71103,71104],[71132,71133],[71219,71226],[71229,71229],[71231,71232],[71339,71339],[71341,71341],[71344,71349],[71351,71351],[71453,71455],[71458,71461],[71463,71467],[71727,71735],[71737,71738],[72148,72151],[72154,72155],[72160,72160],[72193,72202],[72243,72248],[72251,72254],[72263,72263],[72273,72278],[72281,72283],[72330,72342],[72344,72345],[72752,72758],[72760,72765],[72767,72767],[72850,72871],[72874,72880],[72882,72883],[72885,72886],[73009,73014],[73018,73018],[73020,73021],[73023,73029],[73031,73031],[73104,73105],[73109,73109],[73111,73111],[73459,73460],[78896,78904],[92912,92916],[92976,92982],[94031,94031],[94095,94098],[113821,113822],[113824,113827],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],[121461,121461],[121476,121476],[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],[123184,123190],[123628,123631],[125136,125142],[125252,125258],[917505,917505],[917536,917631],[917760,917999]],i=[[4352,4447],[8986,8987],[9001,9002],[9193,9196],[9200,9200],[9203,9203],[9725,9726],[9748,9749],[9800,9811],[9855,9855],[9875,9875],[9889,9889],[9898,9899],[9917,9918],[9924,9925],[9934,9934],[9940,9940],[9962,9962],[9970,9971],[9973,9973],[9978,9978],[9981,9981],[9989,9989],[9994,9995],[10024,10024],[10060,10060],[10062,10062],[10067,10069],[10071,10071],[10133,10135],[10160,10160],[10175,10175],[11035,11036],[11088,11088],[11093,11093],[11904,11929],[11931,12019],[12032,12245],[12272,12283],[12288,12329],[12334,12350],[12353,12438],[12443,12543],[12549,12591],[12593,12686],[12688,12730],[12736,12771],[12784,12830],[12832,12871],[12880,19903],[19968,42124],[42128,42182],[43360,43388],[44032,55203],[63744,64255],[65040,65049],[65072,65106],[65108,65126],[65128,65131],[65281,65376],[65504,65510]],o=[[94176,94179],[94208,100343],[100352,101106],[110592,110878],[110928,110930],[110948,110951],[110960,111355],[126980,126980],[127183,127183],[127374,127374],[127377,127386],[127488,127490],[127504,127547],[127552,127560],[127568,127569],[127584,127589],[127744,127776],[127789,127797],[127799,127868],[127870,127891],[127904,127946],[127951,127955],[127968,127984],[127988,127988],[127992,128062],[128064,128064],[128066,128252],[128255,128317],[128331,128334],[128336,128359],[128378,128378],[128405,128406],[128420,128420],[128507,128591],[128640,128709],[128716,128716],[128720,128722],[128725,128725],[128747,128748],[128756,128762],[128992,129003],[129293,129393],[129395,129398],[129402,129442],[129445,129450],[129454,129482],[129485,129535],[129648,129651],[129656,129658],[129664,129666],[129680,129685],[131072,196605],[196608,262141]];let n;function r(t,e){let s,a=0,i=e.length-1;if(te[i][1])return!1;for(;i>=a;)if(s=a+i>>1,t>e[s][1])a=s+1;else{if(!(t{var t=a;Object.defineProperty(t,"__esModule",{value:!0}),t.Unicode11Addon=void 0;const e=s(433);t.Unicode11Addon=class{activate(t){t.unicode.register(new e.UnicodeV11)}dispose(){}}})(),a})()))},67511:t=>{!function(e,s){t.exports=s()}(self,(()=>(()=>{"use strict";var t={6:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LinkComputer=e.WebLinkProvider=void 0,e.WebLinkProvider=class{constructor(t,e,s,a={}){this._terminal=t,this._regex=e,this._handler=s,this._options=a}provideLinks(t,e){const a=s.computeLink(t,this._regex,this._terminal,this._handler);e(this._addCallbacks(a))}_addCallbacks(t){return t.map((t=>(t.leave=this._options.leave,t.hover=(e,s)=>{if(this._options.hover){const{range:a}=t;this._options.hover(e,s,a)}},t)))}};class s{static computeLink(t,e,a,i){const o=new RegExp(e.source,(e.flags||"")+"g"),[n,r]=s._getWindowedLineStrings(t-1,a),l=n.join("");let c;const p=[];for(;c=o.exec(l);){const e=c[0];try{const t=new URL(e),s=decodeURI(t.toString());if(e!==s&&e+"/"!==s)continue}catch(t){continue}const[o,n]=s._mapStrIdx(a,r,0,c.index),[l,d]=s._mapStrIdx(a,o,n,e.length);if(-1===o||-1===n||-1===l||-1===d)continue;const u={start:{x:n+1,y:o+1},end:{x:d,y:l+1}};p.push({range:u,text:e,activate:i})}return p}static _getWindowedLineStrings(t,e){let s,a=t,i=t,o=0,n="";const r=[];if(s=e.buffer.active.getLine(t)){const t=s.translateToString(!0);if(s.isWrapped&&" "!==t[0]){for(o=0;(s=e.buffer.active.getLine(--a))&&o<2048&&(n=s.translateToString(!0),o+=n.length,r.push(n),s.isWrapped&&-1===n.indexOf(" ")););r.reverse()}for(r.push(t),o=0;(s=e.buffer.active.getLine(++i))&&s.isWrapped&&o<2048&&(n=s.translateToString(!0),o+=n.length,r.push(n),-1===n.indexOf(" ")););}return[r,a]}static _mapStrIdx(t,e,s,a){const i=t.buffer.active,o=i.getNullCell();let n=s;for(;a;){const t=i.getLine(e);if(!t)return[-1,-1];for(let s=n;s{var t=a;Object.defineProperty(t,"__esModule",{value:!0}),t.WebLinksAddon=void 0;const e=s(6),i=/https?:[/]{2}[^\s"'!*(){}|\\\^<>`]*[^\s"':,.!?{}|\\\^~\[\]`()<>]/;function o(t,e){const s=window.open();if(s){try{s.opener=null}catch(t){}s.location.href=e}else console.warn("Opening link blocked as opener could not be cleared")}t.WebLinksAddon=class{constructor(t=o,e={}){this._handler=t,this._options=e}activate(t){this._terminal=t;const s=this._options,a=s.urlRegex||i;this._linkProvider=this._terminal.registerLinkProvider(new e.WebLinkProvider(this._terminal,a,this._handler,s))}dispose(){var t;null===(t=this._linkProvider)||void 0===t||t.dispose()}}})(),a})()))}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/9957.js b/HomeUI/dist/js/9957.js new file mode 100644 index 000000000..f4f6882a3 --- /dev/null +++ b/HomeUI/dist/js/9957.js @@ -0,0 +1 @@ +"use strict";(globalThis["webpackChunkflux"]=globalThis["webpackChunkflux"]||[]).push([[9957],{43082:(t,e,a)=>{a.r(e),a.d(e,{default:()=>P});var i=function(){var t=this,e=t._self._c;return e("div",[t.managedApplication?t._e():e("b-tabs",{on:{"activate-tab":function(e){return t.tabChanged()}}},[e("b-tab",{attrs:{active:"",title:"My Active Apps"}},[e("b-overlay",{attrs:{show:t.tableconfig.active.loading,variant:"transparent",blur:"5px"}},[e("b-card",[e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"myapps-table",attrs:{striped:"",hover:"",responsive:"",items:t.myGlobalApps,fields:t.tableconfig.my.fields,"show-empty":"","empty-text":"No Global Apps are owned"},scopedSlots:t._u([{key:"cell(show_details)",fn:function(a){return[e("a",{on:{click:function(e){return t.showLocations(a,t.myGlobalApps)}}},[a.detailsShowing?t._e():e("v-icon",{attrs:{name:"chevron-down"}}),a.detailsShowing?e("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(a){return[e("b-card",{staticClass:"mx-2"},[e("list-entry",{attrs:{title:"Description",data:a.item.description}}),e("list-entry",{attrs:{title:"Owner",data:a.item.owner}}),e("list-entry",{attrs:{title:"Hash",data:a.item.hash}}),a.item.version>=5?e("div",[e("list-entry",{attrs:{title:"Contacts",data:JSON.stringify(a.item.contacts)}}),a.item.geolocation.length?e("div",t._l(a.item.geolocation,(function(a){return e("div",{key:a},[e("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(a)}})],1)})),0):e("div",[e("list-entry",{attrs:{title:"Continent",data:"All"}}),e("list-entry",{attrs:{title:"Country",data:"All"}}),e("list-entry",{attrs:{title:"Region",data:"All"}})],1)],1):t._e(),a.item.instances?e("list-entry",{attrs:{title:"Instances",data:a.item.instances.toString()}}):t._e(),e("list-entry",{attrs:{title:"Expires in",data:t.labelForExpire(a.item.expire,a.item.height)}}),e("list-entry",{attrs:{title:"Enterprise Nodes",data:a.item.nodes?a.item.nodes.toString():"Not scoped"}}),e("list-entry",{attrs:{title:"Static IP",data:a.item.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}}),e("h4",[t._v("Composition")]),a.item.version<=3?e("div",[e("b-card",[e("list-entry",{attrs:{title:"Repository",data:a.item.repotag}}),e("list-entry",{attrs:{title:"Custom Domains",data:a.item.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(a.item.ports,void 0,a.item.name).toString()}}),e("list-entry",{attrs:{title:"Ports",data:a.item.ports.toString()}}),e("list-entry",{attrs:{title:"Container Ports",data:a.item.containerPorts.toString()}}),e("list-entry",{attrs:{title:"Container Data",data:a.item.containerData}}),e("list-entry",{attrs:{title:"Environment Parameters",data:a.item.enviromentParameters.length>0?a.item.enviromentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:a.item.commands.length>0?a.item.commands.toString():"none"}}),a.item.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${a.item.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${a.item.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${a.item.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${a.item.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${a.item.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${a.item.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${a.item.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${a.item.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${a.item.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${a.item.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${a.item.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${a.item.hdd} GB`}})],1)],1)],1):e("div",t._l(a.item.compose,(function(i,n){return e("b-card",{key:n},[e("b-card-title",[t._v(" Component "+t._s(i.name)+" ")]),e("list-entry",{attrs:{title:"Name",data:i.name}}),e("list-entry",{attrs:{title:"Description",data:i.description}}),e("list-entry",{attrs:{title:"Repository",data:i.repotag}}),e("list-entry",{attrs:{title:"Repository Authentication",data:i.repoauth?"Content Encrypted":"Public"}}),e("list-entry",{attrs:{title:"Custom Domains",data:i.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(i.ports,i.name,a.item.name,n).toString()}}),e("list-entry",{attrs:{title:"Ports",data:i.ports.toString()}}),e("list-entry",{attrs:{title:"Container Ports",data:i.containerPorts.toString()}}),e("list-entry",{attrs:{title:"Container Data",data:i.containerData}}),e("list-entry",{attrs:{title:"Environment Parameters",data:i.environmentParameters.length>0?i.environmentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:i.commands.length>0?i.commands.toString():"none"}}),e("list-entry",{attrs:{title:"Secret Environment Parameters",data:i.secrets?"Content Encrypted":"none"}}),i.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${i.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${i.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${i.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${i.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${i.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${i.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${i.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${i.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${i.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${i.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${i.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${i.hdd} GB`}})],1)],1)})),1),e("h4",[t._v("Locations")]),e("b-table",{staticClass:"locations-table",attrs:{striped:"",hover:"",items:t.appLocations,fields:t.appLocationFields},scopedSlots:t._u([{key:"cell(visit)",fn:function(i){return[e("b-button",{staticClass:"mr-1",attrs:{size:"sm",variant:"danger"},on:{click:function(e){t.openApp(a.item.name,i.item.ip.split(":")[0],t.getProperPort(a.item))}}},[t._v(" Visit App ")]),e("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"danger"},on:{click:function(e){t.openNodeFluxOS(i.item.ip.split(":")[0],i.item.ip.split(":")[1]?+i.item.ip.split(":")[1]-1:16126)}}},[t._v(" Visit FluxNode ")])]}}],null,!0)})],1)]}},{key:"cell(name)",fn:function(e){return[t._v(" "+t._s(t.getDisplayName(e.item.name))+" ")]}},{key:"cell(visit)",fn:function(a){return[e("b-button",{staticClass:"mr-0",attrs:{size:"sm",variant:"danger"},on:{click:function(e){return t.openGlobalApp(a.item.name)}}},[t._v(" Visit ")])]}},{key:"cell(manage)",fn:function(a){return[e("b-button",{staticClass:"mr-0",attrs:{id:`manage-installed-app-${a.item.name}`,size:"sm",variant:"danger"}},[t._v(" Manage ")]),e("confirm-dialog",{attrs:{target:`manage-installed-app-${a.item.name}`,"confirm-button":"Manage App"},on:{confirm:function(e){return t.openAppManagement(a.item.name)}}})]}}],null,!1,3316055105)})],1)],1)],1)],1)],1),e("b-tab",{attrs:{title:"My Expired Apps"}},[e("b-overlay",{attrs:{show:t.tableconfig.my_expired.loading,variant:"transparent",blur:"5px"}},[e("b-card",[e("b-row",[e("b-col",{attrs:{cols:"12"}},[e("b-table",{staticClass:"myapps-table",attrs:{striped:"",hover:"",responsive:"",items:t.tableconfig.my_expired.apps,fields:t.tableconfig.my_expired.fields,"show-empty":"","empty-text":"None of your owed Apps are expired"},scopedSlots:t._u([{key:"cell(show_details)",fn:function(a){return[e("a",{on:{click:function(t){return a.toggleDetails()}}},[a.detailsShowing?t._e():e("v-icon",{attrs:{name:"chevron-down"}}),a.detailsShowing?e("v-icon",{attrs:{name:"chevron-up"}}):t._e()],1)]}},{key:"row-details",fn:function(a){return[e("b-card",{staticClass:"mx-2"},[e("list-entry",{attrs:{title:"Description",data:a.item.description}}),e("list-entry",{attrs:{title:"Owner",data:a.item.owner}}),e("list-entry",{attrs:{title:"Hash",data:a.item.hash}}),a.item.version>=5?e("div",[e("list-entry",{attrs:{title:"Contacts",data:JSON.stringify(a.item.contacts)}}),a.item.geolocation.length?e("div",t._l(a.item.geolocation,(function(a){return e("div",{key:a},[e("list-entry",{attrs:{title:"Geolocation",data:t.getGeolocation(a)}})],1)})),0):e("div",[e("list-entry",{attrs:{title:"Continent",data:"All"}}),e("list-entry",{attrs:{title:"Country",data:"All"}}),e("list-entry",{attrs:{title:"Region",data:"All"}})],1)],1):t._e(),a.item.instances?e("list-entry",{attrs:{title:"Instances",data:a.item.instances.toString()}}):t._e(),e("list-entry",{attrs:{title:"Expires in",data:t.labelForExpire(a.item.expire,a.item.height)}}),e("list-entry",{attrs:{title:"Enterprise Nodes",data:a.item.nodes?a.item.nodes.toString():"Not scoped"}}),e("list-entry",{attrs:{title:"Static IP",data:a.item.staticip?"Yes, Running only on Static IP nodes":"No, Running on all nodes"}}),e("h4",[t._v("Composition")]),a.item.version<=3?e("div",[e("b-card",[e("list-entry",{attrs:{title:"Repository",data:a.item.repotag}}),e("list-entry",{attrs:{title:"Custom Domains",data:a.item.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(a.item.ports,void 0,a.item.name).toString()}}),e("list-entry",{attrs:{title:"Ports",data:a.item.ports.toString()}}),e("list-entry",{attrs:{title:"Container Ports",data:a.item.containerPorts.toString()}}),e("list-entry",{attrs:{title:"Container Data",data:a.item.containerData}}),e("list-entry",{attrs:{title:"Environment Parameters",data:a.item.enviromentParameters.length>0?a.item.enviromentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:a.item.commands.length>0?a.item.commands.toString():"none"}}),a.item.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${a.item.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${a.item.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${a.item.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${a.item.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${a.item.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${a.item.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${a.item.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${a.item.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${a.item.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${a.item.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${a.item.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${a.item.hdd} GB`}})],1)],1)],1):e("div",t._l(a.item.compose,(function(i,n){return e("b-card",{key:n},[e("b-card-title",[t._v(" Component "+t._s(i.name)+" ")]),e("list-entry",{attrs:{title:"Name",data:i.name}}),e("list-entry",{attrs:{title:"Description",data:i.description}}),e("list-entry",{attrs:{title:"Repository",data:i.repotag}}),e("list-entry",{attrs:{title:"Repository Authentication",data:i.repoauth?"Content Encrypted":"Public"}}),e("list-entry",{attrs:{title:"Custom Domains",data:i.domains.toString()||"none"}}),e("list-entry",{attrs:{title:"Automatic Domains",data:t.constructAutomaticDomains(i.ports,i.name,a.item.name,n).toString()}}),e("list-entry",{attrs:{title:"Ports",data:i.ports.toString()}}),e("list-entry",{attrs:{title:"Container Ports",data:i.containerPorts.toString()}}),e("list-entry",{attrs:{title:"Container Data",data:i.containerData}}),e("list-entry",{attrs:{title:"Environment Parameters",data:i.environmentParameters.length>0?i.environmentParameters.toString():"none"}}),e("list-entry",{attrs:{title:"Commands",data:i.commands.length>0?i.commands.toString():"none"}}),e("list-entry",{attrs:{title:"Secret Environment Parameters",data:i.secrets?"Content Encrypted":"none"}}),i.tiered?e("div",[e("list-entry",{attrs:{title:"CPU Cumulus",data:`${i.cpubasic} vCore`}}),e("list-entry",{attrs:{title:"CPU Nimbus",data:`${i.cpusuper} vCore`}}),e("list-entry",{attrs:{title:"CPU Stratus",data:`${i.cpubamf} vCore`}}),e("list-entry",{attrs:{title:"RAM Cumulus",data:`${i.rambasic} MB`}}),e("list-entry",{attrs:{title:"RAM Nimbus",data:`${i.ramsuper} MB`}}),e("list-entry",{attrs:{title:"RAM Stratus",data:`${i.rambamf} MB`}}),e("list-entry",{attrs:{title:"SSD Cumulus",data:`${i.hddbasic} GB`}}),e("list-entry",{attrs:{title:"SSD Nimbus",data:`${i.hddsuper} GB`}}),e("list-entry",{attrs:{title:"SSD Stratus",data:`${i.hddbamf} GB`}})],1):e("div",[e("list-entry",{attrs:{title:"CPU",data:`${i.cpu} vCore`}}),e("list-entry",{attrs:{title:"RAM",data:`${i.ram} MB`}}),e("list-entry",{attrs:{title:"SSD",data:`${i.hdd} GB`}})],1)],1)})),1)],1)]}},{key:"cell(name)",fn:function(e){return[t._v(" "+t._s(t.getDisplayName(e.item.name))+" ")]}},{key:"cell(redeploy)",fn:function(a){return[e("b-button",{staticClass:"mr-0",attrs:{id:`redeploy-installed-app-${a.item.name}`,size:"sm",variant:"danger"}},[t._v(" Redeploy ")]),e("confirm-dialog",{attrs:{target:`redeploy-installed-app-${a.item.name}`,"confirm-button":"Redeploy App"},on:{confirm:function(e){return t.redeployApp(a.item)}}})]}}],null,!1,4229378380)})],1)],1)],1)],1)],1)],1),t.managedApplication?e("div",[e("management",{attrs:{"app-name":t.managedApplication,global:!0,"installed-apps":[]},on:{back:function(e){return t.clearManagedApplication()}}})],1):t._e()],1)},n=[],s=(a(70560),a(58887)),r=a(51015),o=a(16521),l=a(50725),c=a(86855),m=a(49379),d=a(26253),p=a(15193),u=a(66126),y=a(5870),g=a(20266),h=a(34547),b=a(51748),f=a(87156),v=a(86981),C=a(43672),S=a(27616);const A=a(80129),$=a(57306),w={components:{BTabs:s.M,BTab:r.L,BTable:o.h,BCol:l.l,BCard:c._,BCardTitle:m._,BRow:d.T,BButton:p.T,BOverlay:u.X,ListEntry:b.Z,ConfirmDialog:f.Z,Management:v.Z,ToastificationContent:h.Z},directives:{"b-tooltip":y.o,Ripple:g.Z},data(){return{managedApplication:"",daemonBlockCount:-1,appLocations:[],appLocationFields:[{key:"ip",label:"IP Address"},{key:"visit",label:""}],myappLocations:[],myappLocationFields:[{key:"ip",label:"IP Address"},{key:"visit",label:""}],tableconfig:{active:{apps:[],fields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description",sortable:!0},{key:"visit",label:"Visit"}],loading:!0},active_marketplace:{apps:[],fields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description",sortable:!0},{key:"visit",label:"Visit"}]},my:{apps:[],fields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description",sortable:!0},{key:"visit",label:"Visit"},{key:"manage",label:"Manage"}]},my_expired:{loading:!0,apps:[],fields:[{key:"show_details",label:""},{key:"name",label:"Name",sortable:!0},{key:"description",label:"Description",sortable:!0},{key:"redeploy",label:"Redeploy"}]}},allApps:[]}},computed:{myGlobalApps(){const t=localStorage.getItem("zelidauth"),e=A.parse(t);return this.allApps?this.allApps.filter((t=>t.owner===e.zelid)):[]},isLoggedIn(){const t=localStorage.getItem("zelidauth"),e=A.parse(t);return!!e.zelid}},mounted(){this.appsGetListGlobalApps(),this.getDaemonBlockCount()},methods:{minutesToString(t){let e=60*t;const a={day:86400,hour:3600,minute:60,second:1},i=[];for(const n in a){const t=Math.floor(e/a[n]);1===t&&i.push(` ${t} ${n}`),t>=2&&i.push(` ${t} ${n}s`),e%=a[n]}return i},labelForExpire(t,e){if(-1===this.daemonBlockCount)return"Not possible to calculate expiration";const a=t||22e3,i=e+a-this.daemonBlockCount;if(i<1)return"Application Expired";const n=2*i,s=this.minutesToString(n);return s.length>2?`${s[0]}, ${s[1]}, ${s[2]}`:s.length>1?`${s[0]}, ${s[1]}`:`${s[0]}`},async getDaemonBlockCount(){const t=await S.Z.getBlockCount();"success"===t.data.status&&(this.daemonBlockCount=t.data.data)},openAppManagement(t){this.managedApplication=t},clearManagedApplication(){this.managedApplication=""},async appsGetListGlobalApps(){this.tableconfig.active.loading=!0;const t=await C.Z.globalAppSpecifications();console.log(t),this.allApps=t.data.data,this.tableconfig.active.apps=this.allApps.filter((t=>{if(t.name.length>=14){const e=t.name.substring(t.name.length-13,t.name.length),a=Number(e);if(!Number.isNaN(a))return!1}return!0})),this.tableconfig.active_marketplace.apps=this.allApps.filter((t=>{if(t.name.length>=14){const e=t.name.substring(t.name.length-13,t.name.length),a=Number(e);if(!Number.isNaN(a))return!0}return!1})),this.tableconfig.active.loading=!1,this.loadPermanentMessages()},async loadPermanentMessages(){try{const t=localStorage.getItem("zelidauth"),e=A.parse(t);if(!e.zelid)return void(this.tableconfig.my_expired.loading=!1);const a=await C.Z.permanentMessagesOwner(e.zelid),i=[];for(const s of a.data.data){const t=i.find((t=>t.appSpecifications.name===s.appSpecifications.name));if(t){if(s.height>t.height){const t=i.findIndex((t=>t.appSpecifications.name===s.appSpecifications.name));t>-1&&(i.splice(t,1),i.push(s))}}else i.push(s)}const n=[];for(const s of i){const t=this.allApps.find((t=>t.name.toLowerCase()===s.appSpecifications.name.toLowerCase()));if(!t){const t=s.appSpecifications;n.push(t)}}this.tableconfig.my_expired.apps=n,this.tableconfig.my_expired.loading=!1}catch(t){console.log(t)}},redeployApp(t,e=!1){const a=t;e&&(a.name+="XXX",a.name+=Date.now().toString().slice(-5));const i=localStorage.getItem("zelidauth"),n=A.parse(i);n?a.owner=n.zelid:e&&(a.owner=""),this.$router.replace({name:"apps-registerapp",params:{appspecs:JSON.stringify(t)}})},copyToClipboard(t){const e=JSON.parse(t);delete e._showDetails;const a=JSON.stringify(e),i=document.createElement("textarea");i.value=a,i.setAttribute("readonly",""),i.style.position="absolute",i.style.left="-9999px",document.body.appendChild(i),i.select(),document.execCommand("copy"),document.body.removeChild(i),this.showToast("success","Application Specifications copied to Clipboard")},openApp(t,e,a){if(console.log(t,e,a),a&&e){const t=e,i=a,n=`http://${t}:${i}`;this.openSite(n)}else this.showToast("danger","Unable to open App :(, App does not have a port.")},getProperPort(t){if(t.port)return t.port;if(t.ports)return t.ports[0];for(let e=0;e{this.showToast("danger",t.message||t)}));if(console.log(e),"success"===e.data.status){const a=e.data.data,i=a[0];if(i){const e=`https://${t}.app.runonflux.io`;this.openSite(e)}else this.showToast("danger","Application is awaiting launching...")}else this.showToast("danger",e.data.data.message||e.data.data)},openSite(t){const e=window.open(t,"_blank");e.focus()},tabChanged(){this.tableconfig.active.apps.forEach((t=>{this.$set(t,"_showDetails",!1)})),this.appLocations=[]},showLocations(t,e){t.detailsShowing?t.toggleDetails():(e.forEach((t=>{this.$set(t,"_showDetails",!1)})),this.$nextTick((()=>{t.toggleDetails(),this.loadLocations(t)})))},async loadLocations(t){console.log(t),this.appLocations=[];const e=await C.Z.getAppLocation(t.item.name).catch((t=>{this.showToast("danger",t.message||t)}));if(console.log(e),"success"===e.data.status){const t=e.data.data;this.appLocations=t}},showToast(t,e,a="InfoIcon"){this.$toast({component:h.Z,props:{title:e,icon:a,variant:t}})},constructAutomaticDomains(t,e="",a,i=0){const n=a.toLowerCase(),s=e.toLowerCase();if(!s){const e=[];0===i&&e.push(`${n}.app.runonflux.io`);for(let a=0;at.code===e))||{name:"ALL"};return`Continent: ${a.name||"Unkown"}`}if(t.startsWith("b")){const e=t.slice(1),a=$.countries.find((t=>t.code===e))||{name:"ALL"};return`Country: ${a.name||"Unkown"}`}if(t.startsWith("ac")){const e=t.slice(2),a=e.split("_"),i=a[0],n=a[1],s=a[2],r=$.continents.find((t=>t.code===i))||{name:"ALL"},o=$.countries.find((t=>t.code===n))||{name:"ALL"};let l=`Allowed location: Continent: ${r.name}`;return n&&(l+=`, Country: ${o.name}`),s&&(l+=`, Region: ${s}`),l}if(t.startsWith("a!c")){const e=t.slice(3),a=e.split("_"),i=a[0],n=a[1],s=a[2],r=$.continents.find((t=>t.code===i))||{name:"ALL"},o=$.countries.find((t=>t.code===n))||{name:"ALL"};let l=`Forbidden location: Continent: ${r.name}`;return n&&(l+=`, Country: ${o.name}`),s&&(l+=`, Region: ${s}`),l}return"All locations allowed"}}},_=w;var D=a(1001),k=(0,D.Z)(_,i,n,!1,null,null,null);const P=k.exports}}]); \ No newline at end of file diff --git a/HomeUI/dist/js/index.js b/HomeUI/dist/js/index.js index c4beb2a4f..73a094335 100644 --- a/HomeUI/dist/js/index.js +++ b/HomeUI/dist/js/index.js @@ -1 +1 @@ -(()=>{var e={86713:(e,t,a)=>{"use strict";a.r(t)},49630:(e,t,a)=>{"use strict";a.r(t)},37307:(e,t,a)=>{"use strict";a.d(t,{Z:()=>r});var n=a(20144),o=a(73507);function r(){const e=(0,n.computed)({get:()=>o.Z.state.verticalMenu.isVerticalMenuCollapsed,set:e=>{o.Z.commit("verticalMenu/UPDATE_VERTICAL_MENU_COLLAPSED",e)}}),t=(0,n.computed)({get:()=>o.Z.state.flux.xdaoOpen,set:e=>{o.Z.commit("flux/setXDAOOpen",e)}}),a=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.isRTL,set:e=>{o.Z.commit("appConfig/TOGGLE_RTL",e)}}),r=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.skin,set:e=>{o.Z.commit("appConfig/UPDATE_SKIN",e)}}),i=(0,n.computed)((()=>"bordered"===r.value?"bordered-layout":"semi-dark"===r.value?"semi-dark-layout":null)),s=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.routerTransition,set:e=>{o.Z.commit("appConfig/UPDATE_ROUTER_TRANSITION",e)}}),l=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.type,set:e=>{o.Z.commit("appConfig/UPDATE_LAYOUT_TYPE",e)}});(0,n.watch)(l,(e=>{"horizontal"===e&&"semi-dark"===r.value&&(r.value="light")}));const c=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.contentWidth,set:e=>{o.Z.commit("appConfig/UPDATE_CONTENT_WIDTH",e)}}),d=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.menu.hidden,set:e=>{o.Z.commit("appConfig/UPDATE_NAV_MENU_HIDDEN",e)}}),m=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.menu.collapsed,set:e=>{o.Z.commit("appConfig/UPDATE_MENU_COLLAPSED",e)}}),p=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.navbar.backgroundColor,set:e=>{o.Z.commit("appConfig/UPDATE_NAVBAR_CONFIG",{backgroundColor:e})}}),u=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.navbar.type,set:e=>{o.Z.commit("appConfig/UPDATE_NAVBAR_CONFIG",{type:e})}}),b=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.footer.type,set:e=>{o.Z.commit("appConfig/UPDATE_FOOTER_CONFIG",{type:e})}});return{isVerticalMenuCollapsed:e,isRTL:a,skin:r,skinClasses:i,routerTransition:s,navbarBackgroundColor:p,navbarType:u,footerType:b,layoutType:l,contentWidth:c,isNavMenuHidden:d,isNavMenuCollapsed:m,xdaoOpenProposals:t}}},82162:e=>{const t=[{name:"Games",variant:"success",icon:"gamepad"},{name:"Productivity",variant:"danger",icon:"file-alt"},{name:"Hosting",variant:"success",icon:"server"},{name:"Blockchain",variant:"success",icon:"coins"},{name:"Blockbook",variant:"success",icon:"book"},{name:"Front-end",variant:"success",icon:"desktop"},{name:"RPC Node",variant:"success",icon:"satellite-dish"},{name:"Masternode",variant:"success",icon:"wallet"}],a={name:"App",variant:"success",icon:"cog"};e.exports={categories:t,defaultCategory:a}},69699:(e,t,a)=>{"use strict";var n=a(20144),o=a(77354),r=a(48648),i=a(68793),s=a(54016),l=a(51205),c=a(33017),d=a(24019),m=a(73507),p=function(){var e=this,t=e._self._c;return t("div",{staticClass:"h-100",class:[e.skinClasses],attrs:{id:"app"}},[t(e.layout,{tag:"component"},[t("router-view")],1),e.enableScrollToTop?t("scroll-to-top"):e._e()],1)},u=[],b=function(){var e=this,t=e._self._c;return t("div",{staticClass:"btn-scroll-to-top",class:{show:e.y>250}},[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"btn-icon",attrs:{variant:"primary"},on:{click:e.scrollToTop}},[t("feather-icon",{attrs:{icon:"ArrowUpIcon",size:"16"}})],1)],1)},g=[],h=a(52829),f=a(15193),x=a(20266);const v={directives:{Ripple:x.Z},components:{BButton:f.T},setup(){const{y:e}=(0,h.baj)(),t=()=>{const e=document.documentElement;e.scrollTo({top:0,behavior:"smooth"})};return{y:e,scrollToTop:t}}},k=v;var T=a(1001),y=(0,T.Z)(k,b,g,!1,null,"4d172cb1",null);const A=y.exports;var C=a(68934),P=a(41905),D=a(37307),B=a(34369);const E=a(80129),w=()=>Promise.all([a.e(6301),a.e(460),a.e(3192)]).then(a.bind(a,43192)),N=()=>a.e(2791).then(a.bind(a,82791)),S={components:{LayoutVertical:w,LayoutFull:N,ScrollToTop:A},setup(){const{skin:e,skinClasses:t}=(0,D.Z)(),{enableScrollToTop:a}=C.$themeConfig.layout;"dark"===e.value&&document.body.classList.add("dark-layout"),(0,P.provideToast)({hideProgressBar:!0,closeOnClick:!1,closeButton:!1,icon:!1,timeout:3e3,transition:"Vue-Toastification__fade"}),m.Z.commit("app/UPDATE_WINDOW_WIDTH",window.innerWidth);const{width:o}=(0,h.iPe)();return(0,n.watch)(o,(e=>{m.Z.commit("app/UPDATE_WINDOW_WIDTH",e)})),{skinClasses:t,enableScrollToTop:a}},computed:{layout(){return"full"===this.$route.meta.layout?"layout-full":`layout-${this.contentLayoutType}`},contentLayoutType(){return this.$store.state.appConfig.layout.type}},beforeCreate(){const e=["primary","secondary","success","info","warning","danger","light","dark"];for(let n=0,o=e.length;n16100)){const e=+t+1;this.$store.commit("flux/setFluxPort",e)}},getZelIdLoginPhrase(){B.Z.loginPhrase().then((e=>{console.log(e),"error"===e.data.status?"MongoNetworkError"===e.data.data.name?this.errorMessage="Failed to connect to MongoDB.":JSON.stringify(e.data.data).includes("CONN")?this.getEmergencyLoginPhrase():this.errorMessage=e.data.data.message:this.loginPhrase=e.data.data})).catch((e=>{console.log(e),this.errorMessage="Error connecting to Flux Backend"}))},getEmergencyLoginPhrase(){B.Z.emergencyLoginPhrase().then((e=>{console.log(e),"error"===e.data.status?this.errorMessage=e.data.data.message:this.loginPhrase=e.data.data})).catch((e=>{console.log(e),this.errorMessage="Error connecting to Flux Backend"}))},activeLoginPhrases(){const e=localStorage.getItem("zelidauth"),t=E.parse(e);console.log(t),B.Z.activeLoginPhrases(e).then((e=>{console.log(e),e.data.status})).catch((e=>{console.log(e),console.log(e.code)}))}}},Z=S;var O=(0,T.Z)(Z,p,u,!1,null,null,null);const L=O.exports;var I=a(9101);const M={name:"FeatherIcon",functional:!0,props:{icon:{required:!0,type:[String,Object]},size:{type:String,default:"14"},badge:{type:[String,Object,Number],default:null},badgeClasses:{type:[String,Object,Array],default:"badge-primary"}},render(e,{props:t,data:a}){const n=e(I[t.icon],{props:{size:t.size},...a});if(!t.badge)return n;const o=e("span",{staticClass:"badge badge-up badge-pill",class:t.badgeClasses},[t.badge]);return e("span",{staticClass:"feather-icon position-relative"},[n,o])}},R=M;var F,z,G=(0,T.Z)(R,F,z,!1,null,null,null);const U=G.exports;var _=a(97754);a(44784);n["default"].component(U.name,U),n["default"].component("VIcon",_.Z);var V=a(9669),W=a.n(V);const Y=W().create({});n["default"].prototype.$http=Y;var j=a(72433);n["default"].use(j.ZP);var H=a(41151);n["default"].use(H["default"],{hideProgressBar:!0,closeOnClick:!1,closeButton:!1,icon:!1,timeout:3e3,transition:"Vue-Toastification__fade"}),n["default"].use(o.R,{breakpoints:["xs","sm","md","lg","xl","xxl"]}),n["default"].use(r.A6),n["default"].use(i.m$),n["default"].use(s.k),n["default"].use(l.XG7),n["default"].use(c.A7),a(86713),a(49630),n["default"].config.productionTip=!1,new n["default"]({router:d.Z,store:m.Z,render:e=>e(L)}).$mount("#app")},24019:(e,t,a)=>{"use strict";a.d(t,{Z:()=>w});var n=a(20144),o=a(78345),r=a(73507),i=a(34369);const s=[{path:"/dashboard/overview",name:"dashboard-overview",component:()=>Promise.all([a.e(5434),a.e(6301),a.e(4393),a.e(5988)]).then(a.bind(a,35988)),meta:{pageTitle:"Overview",breadcrumb:[{text:"Dashboard"},{text:"Overview",active:!0}]}},{path:"/dashboard/resources",name:"dashboard-resources",component:()=>Promise.all([a.e(5434),a.e(6301),a.e(4393),a.e(5216)]).then(a.bind(a,25216)),meta:{pageTitle:"Resources",breadcrumb:[{text:"Dashboard"},{text:"Resources",active:!0}]}},{path:"/dashboard/map",name:"dashboard-map",component:()=>Promise.all([a.e(5434),a.e(6567),a.e(6301),a.e(4393),a.e(8628)]).then(a.bind(a,8628)),meta:{pageTitle:"Map",breadcrumb:[{text:"Dashboard"},{text:"Map",active:!0}]}},{path:"/dashboard/rewards",name:"dashboard-rewards",component:()=>Promise.all([a.e(5434),a.e(6301),a.e(4393),a.e(8755)]).then(a.bind(a,68755)),meta:{pageTitle:"Rewards",breadcrumb:[{text:"Dashboard"},{text:"Rewards",active:!0}]}},{path:"/dashboard/economics",name:"dashboard-economics",component:()=>Promise.all([a.e(5434),a.e(6301),a.e(4393),a.e(8755)]).then(a.bind(a,68755)),meta:{pageTitle:"Rewards",breadcrumb:[{text:"Dashboard"},{text:"Rewards",active:!0}]}},{path:"/dashboard/list",name:"dashboard-list",component:()=>Promise.all([a.e(6301),a.e(4316)]).then(a.bind(a,24316)),meta:{pageTitle:"List",breadcrumb:[{text:"Dashboard"},{text:"List",active:!0}]}}],l=[{path:"/daemon/control/getinfo",name:"daemon-control-getinfo",component:()=>a.e(5213).then(a.bind(a,35213)),meta:{pageTitle:"Get Info",breadcrumb:[{text:"Daemon"},{text:"Control"},{text:"Get Info",active:!0}]}},{path:"/daemon/control/help",name:"daemon-control-help",component:()=>Promise.all([a.e(6301),a.e(4156),a.e(1966)]).then(a.bind(a,67647)),meta:{pageTitle:"Help",breadcrumb:[{text:"Daemon"},{text:"Control"},{text:"Help",active:!0}]}},{path:"/daemon/control/rescanblockchain",name:"daemon-control-rescanblockchain",component:()=>a.e(6626).then(a.bind(a,86626)),meta:{pageTitle:"Rescan Blockchain",breadcrumb:[{text:"Daemon"},{text:"Control"},{text:"Rescan Blockchain",active:!0}],privilege:["admin"]}},{path:"/daemon/control/reindexblockchain",name:"daemon-control-reindexblockchain",component:()=>a.e(6223).then(a.bind(a,16223)),meta:{pageTitle:"Reindex Blockchain",breadcrumb:[{text:"Daemon"},{text:"Control"},{text:"Reindex Blockchain",active:!0}],privilege:["admin"]}},{path:"/daemon/control/start",name:"daemon-control-start",component:()=>a.e(3404).then(a.bind(a,43404)),meta:{pageTitle:"Start",breadcrumb:[{text:"Daemon"},{text:"Control"},{text:"Start",active:!0}],privilege:["admin","fluxteam"]}},{path:"/daemon/control/stop",name:"daemon-control-stop",component:()=>a.e(1313).then(a.bind(a,91313)),meta:{pageTitle:"Stop",breadcrumb:[{text:"Daemon"},{text:"Control"},{text:"Stop",active:!0}],privilege:["admin"]}},{path:"/daemon/control/restart",name:"daemon-control-restart",component:()=>a.e(9389).then(a.bind(a,39389)),meta:{pageTitle:"Restart",breadcrumb:[{text:"Daemon"},{text:"Control"},{text:"Restart",active:!0}],privilege:["admin","fluxteam"]}}],c=[{path:"/daemon/fluxnode/getnodestatus",name:"daemon-fluxnode-getstatus",component:()=>a.e(1145).then(a.bind(a,81145)),meta:{pageTitle:"Node Status",breadcrumb:[{text:"Daemon"},{text:"FluxNode"},{text:"Get Node Status",active:!0}]}},{path:"/daemon/fluxnode/listfluxnodes",name:"daemon-fluxnode-listfluxnodes",component:()=>Promise.all([a.e(6301),a.e(7365)]).then(a.bind(a,67365)),meta:{pageTitle:"List FluxNodes",breadcrumb:[{text:"Daemon"},{text:"FluxNode"},{text:"List FluxNodes",active:!0}]}},{path:"/daemon/fluxnode/viewfluxnodelist",name:"daemon-fluxnode-viewfluxnodelist",component:()=>Promise.all([a.e(6301),a.e(7249)]).then(a.bind(a,77249)),meta:{pageTitle:"View Deterministic FluxNodes",breadcrumb:[{text:"Daemon"},{text:"FluxNode"},{text:"View FluxNode List",active:!0}]}},{path:"/daemon/fluxnode/getfluxnodecount",name:"daemon-fluxnode-getfluxnodecount",component:()=>a.e(4671).then(a.bind(a,14671)),meta:{pageTitle:"Get FluxNode Count",breadcrumb:[{text:"Daemon"},{text:"FluxNode"},{text:"Get FluxNode Count",active:!0}]}},{path:"/daemon/fluxnode/getstartlist",name:"daemon-fluxnode-getstartlist",component:()=>Promise.all([a.e(6301),a.e(2743)]).then(a.bind(a,32743)),meta:{pageTitle:"Get Start List",breadcrumb:[{text:"Daemon"},{text:"FluxNode"},{text:"Get Start List",active:!0}]}},{path:"/daemon/fluxnode/getdoslist",name:"daemon-fluxnode-getdoslist",component:()=>Promise.all([a.e(6301),a.e(3196)]).then(a.bind(a,43196)),meta:{pageTitle:"Get DOS List",breadcrumb:[{text:"Daemon"},{text:"FluxNode"},{text:"Get DOS List",active:!0}]}},{path:"/daemon/fluxnode/currentwinner",name:"daemon-fluxnode-currentwinner",component:()=>Promise.all([a.e(6301),a.e(4156),a.e(8390)]).then(a.bind(a,81403)),meta:{pageTitle:"Current Winner",breadcrumb:[{text:"Daemon"},{text:"FluxNode"},{text:"Current Winner",active:!0}]}}],d=[{path:"/daemon/benchmarks/getbenchmarks",name:"daemon-benchmarks-getbenchmarks",component:()=>a.e(7463).then(a.bind(a,7463)),meta:{pageTitle:"Get Benchmarks",breadcrumb:[{text:"Daemon"},{text:"Benchmarks"},{text:"Get Benchmarks",active:!0}]}},{path:"/daemon/benchmarks/getstatus",name:"daemon-benchmarks-getstatus",component:()=>a.e(6147).then(a.bind(a,96147)),meta:{pageTitle:"Get Bench Status",breadcrumb:[{text:"Daemon"},{text:"Benchmarks"},{text:"Get Status",active:!0}]}},{path:"/daemon/benchmarks/startbenchmark",name:"daemon-benchmarks-start",component:()=>a.e(9816).then(a.bind(a,59816)),meta:{pageTitle:"Start Benchmark",breadcrumb:[{text:"Daemon"},{text:"Benchmarks"},{text:"Start Benchmark",active:!0}],privilege:["admin","fluxteam"]}},{path:"/daemon/benchmarks/stopbenchmark",name:"daemon-benchmarks-stop",component:()=>a.e(9353).then(a.bind(a,39353)),meta:{pageTitle:"Stop Benchmark",breadcrumb:[{text:"Daemon"},{text:"Benchmarks"},{text:"Stop Benchmark",active:!0}],privilege:["admin","fluxteam"]}}],m=[{path:"/daemon/blockchain/getblockchaininfo",name:"daemon-blockchain-getchaininfo",component:()=>a.e(1115).then(a.bind(a,61115)),meta:{pageTitle:"Get Blockchain Info",breadcrumb:[{text:"Daemon"},{text:"Get Blockchain Info",active:!0}]}}],p=[{path:"/daemon/mining/getmininginfo",name:"daemon-mining-getmininginfo",component:()=>a.e(5497).then(a.bind(a,85497)),meta:{pageTitle:"Get Mining Info",breadcrumb:[{text:"Daemon"},{text:"Get Mining Info",active:!0}]}}],u=[{path:"/daemon/network/getnetworkinfo",name:"daemon-network-getnetworkinfo",component:()=>a.e(4764).then(a.bind(a,84764)),meta:{pageTitle:"Get Network Info",breadcrumb:[{text:"Daemon"},{text:"Get Network Info",active:!0}]}}],b=[{path:"/daemon/transaction/getrawtransaction",name:"daemon-transaction-getrawtransaction",component:()=>a.e(8910).then(a.bind(a,28910)),meta:{pageTitle:"Get Raw Transaction",breadcrumb:[{text:"Daemon"},{text:"Get Raw Transaction",active:!0}]}}],g=[{path:"/daemon/validateaddress",name:"daemon-util-validateaddress",component:()=>a.e(237).then(a.bind(a,60237)),meta:{pageTitle:"Validate Address",breadcrumb:[{text:"Daemon"},{text:"Validate Address",active:!0}]}}],h=[{path:"/daemon/getwalletinfo",name:"daemon-wallet-getwalletinfo",component:()=>a.e(5528).then(a.bind(a,95528)),meta:{pageTitle:"Get Wallet Info",breadcrumb:[{text:"Daemon"},{text:"Get Wallet Info",active:!0}],privilege:["user","admin","fluxteam"]}}],f=[...l,...c,...d,...m,...p,...u,...b,...g,...h,{path:"/daemon/debug",name:"daemon-debug",component:()=>Promise.all([a.e(6301),a.e(9853)]).then(a.bind(a,59853)),meta:{pageTitle:"Debug",breadcrumb:[{text:"Daemon"},{text:"Debug",active:!0}],privilege:["admin","fluxteam"]}}],x=[{path:"/benchmark/control/help",name:"benchmark-control-help",component:()=>Promise.all([a.e(6301),a.e(4156),a.e(7966)]).then(a.bind(a,34917)),meta:{pageTitle:"Help",breadcrumb:[{text:"Benchmark"},{text:"Control"},{text:"Help",active:!0}]}},{path:"/benchmark/control/start",name:"benchmark-control-start",component:()=>a.e(5038).then(a.bind(a,45038)),meta:{pageTitle:"Start",breadcrumb:[{text:"Benchmark"},{text:"Control"},{text:"Start",active:!0}],privilege:["admin","fluxteam"]}},{path:"/benchmark/control/stop",name:"benchmark-control-stop",component:()=>a.e(6518).then(a.bind(a,36518)),meta:{pageTitle:"Stop",breadcrumb:[{text:"Benchmark"},{text:"Control"},{text:"Stop",active:!0}],privilege:["admin"]}},{path:"/benchmark/control/restart",name:"benchmark-control-restart",component:()=>a.e(7031).then(a.bind(a,7031)),meta:{pageTitle:"Restart",breadcrumb:[{text:"Benchmark"},{text:"Control"},{text:"Restart",active:!0}],privilege:["admin","fluxteam"]}}],v=[{path:"/benchmark/fluxnode/getbenchmarks",name:"benchmark-fluxnode-getbenchmarks",component:()=>a.e(1573).then(a.bind(a,1573)),meta:{pageTitle:"Get Benchmarks",breadcrumb:[{text:"Benchmark"},{text:"FluxNode"},{text:"Get Benchmarks",active:!0}]}},{path:"/benchmark/fluxnode/getinfo",name:"benchmark-fluxnode-getinfo",component:()=>a.e(6262).then(a.bind(a,16262)),meta:{pageTitle:"Get Info",breadcrumb:[{text:"Benchmark"},{text:"FluxNode"},{text:"Get Info",active:!0}]}}],k=[{path:"/benchmark/benchmarks/getstatus",name:"benchmark-benchmarks-getstatus",component:()=>a.e(9875).then(a.bind(a,59875)),meta:{pageTitle:"Get Status",breadcrumb:[{text:"Benchmark"},{text:"Benchmarks"},{text:"Get Status",active:!0}]}},{path:"/benchmark/benchmarks/restartbenchmarks",name:"benchmark-benchmarks-restartbenchmarks",component:()=>a.e(3678).then(a.bind(a,63678)),meta:{pageTitle:"Restart Node Benchmarks",breadcrumb:[{text:"Benchmark"},{text:"Benchmarks"},{text:"Restart Node Benchmarks",active:!0}],privilege:["admin","fluxteam"]}},{path:"/benchmark/benchmarks/signtransaction",name:"benchmark-benchmarks-signtransaction",component:()=>a.e(62).then(a.bind(a,20062)),meta:{pageTitle:"Sign FluxNode Transaction",breadcrumb:[{text:"Benchmark"},{text:"Benchmarks"},{text:"Sign Transaction",active:!0}],privilege:["admin"]}}],T=[...x,...v,...k,{path:"/benchmark/debug",name:"benchmark-debug",component:()=>Promise.all([a.e(6301),a.e(7550)]).then(a.bind(a,37550)),meta:{pageTitle:"Debug",breadcrumb:[{text:"Benchmark"},{text:"Debug",active:!0}],privilege:["admin","fluxteam"]}}],y=[{path:"/flux/nodestatus",name:"flux-nodestatus",component:()=>a.e(5624).then(a.bind(a,35624)),meta:{pageTitle:"Node Status",breadcrumb:[{text:"Flux"},{text:"Node Status",active:!0}]}},{path:"/flux/fluxnetwork",name:"flux-fluxnetwork",component:()=>a.e(3904).then(a.bind(a,63904)),meta:{pageTitle:"Flux Network",breadcrumb:[{text:"Flux"},{text:"Flux Network",active:!0}]}},{path:"/flux/debug",name:"flux-debug",component:()=>Promise.all([a.e(6301),a.e(76)]).then(a.bind(a,50076)),meta:{pageTitle:"Debug",breadcrumb:[{text:"Flux"},{text:"Debug",active:!0}],privilege:["admin","fluxteam"]}}];var A=a(82162);const C=[{path:"/apps/localapps",name:"apps-localapps",component:()=>Promise.all([a.e(5434),a.e(601),a.e(4884),a.e(1601),a.e(8749),a.e(1973),a.e(2137),a.e(5997),a.e(6301),a.e(4393),a.e(7046),a.e(4233),a.e(4596),a.e(3729)]).then(a.bind(a,29209)),meta:{pageTitle:"Local Apps",breadcrumb:[{text:"Apps"},{text:"Local Apps",active:!0}]}},{path:"/apps/globalapps",name:"apps-globalapps",component:()=>Promise.all([a.e(5434),a.e(601),a.e(4884),a.e(1601),a.e(8749),a.e(1973),a.e(2137),a.e(5997),a.e(6301),a.e(4393),a.e(7046),a.e(4233),a.e(4596),a.e(6669)]).then(a.bind(a,36365)),meta:{pageTitle:"Global Apps",breadcrumb:[{text:"Apps"},{text:"Global Apps",active:!0}]}},{path:"/apps/registerapp/:appspecs?",name:"apps-registerapp",component:()=>Promise.all([a.e(601),a.e(4884),a.e(1601),a.e(8749),a.e(6301),a.e(7046),a.e(4233),a.e(5439)]).then(a.bind(a,29943)),meta:{pageTitle:"Register Flux App",breadcrumb:[{text:"Apps"},{text:"Register Flux App",active:!0}]}},{path:"/apps/marketplace",name:"apps-marketplace",component:()=>Promise.all([a.e(5434),a.e(601),a.e(4884),a.e(1601),a.e(8749),a.e(6301),a.e(4393),a.e(7046),a.e(460),a.e(2252)]).then(a.bind(a,87131)),meta:{contentRenderer:"sidebar-left",contentClass:"marketplace-application"}},{path:"/apps/marketplace/:filter",name:"apps-marketplace-filter",component:()=>Promise.all([a.e(5434),a.e(601),a.e(4884),a.e(1601),a.e(8749),a.e(6301),a.e(4393),a.e(7046),a.e(460),a.e(2252)]).then(a.bind(a,87131)),meta:{contentRenderer:"sidebar-left",contentClass:"marketplace-application",navActiveLink:"apps-marketplace"},beforeEnter(e,t,a){const n=A.categories.map((e=>e.name.toLowerCase()));n.includes(e.params.filter)?a():a({name:"error-404"})}},{path:"https://titan.runonflux.io",name:"apps-marketplace-sharednodes",component:()=>Promise.all([a.e(5434),a.e(601),a.e(4884),a.e(1601),a.e(8749),a.e(6301),a.e(4393),a.e(7046),a.e(460),a.e(2252)]).then(a.bind(a,87131)),meta:{contentRenderer:"sidebar-left",contentClass:"marketplace-application",navActiveLink:"apps-marketplace"}},{path:"/apps/fluxsharestorage",name:"apps-fluxsharestorage",component:()=>Promise.all([a.e(6301),a.e(9593)]).then(a.bind(a,29593)),meta:{pageTitle:"My FluxShare Storage",breadcrumb:[{text:"Apps"},{text:"My FluxShare Storage",active:!0}],privilege:["admin"]}}],P=[{path:"/fluxadmin/loggedsessions",name:"fluxadmin-loggedsessions",component:()=>a.e(8904).then(a.bind(a,48904)),meta:{pageTitle:"Logged Sessions",breadcrumb:[{text:"Flux Admin"},{text:"Logged Sessions",active:!0}],privilege:["admin","fluxteam"]}},{path:"/fluxadmin/manageflux",name:"fluxadmin-manageflux",component:()=>a.e(6475).then(a.bind(a,36475)),meta:{pageTitle:"Manage Flux",breadcrumb:[{text:"Flux Admin"},{text:"Manage Flux",active:!0}],privilege:["admin","fluxteam"]}},{path:"/fluxadmin/managedaemon",name:"fluxadmin-managedaemon",component:()=>a.e(6481).then(a.bind(a,56481)),meta:{pageTitle:"Manage Daemon",breadcrumb:[{text:"Flux Admin"},{text:"Manage Daemon",active:!0}],privilege:["admin","fluxteam"]}},{path:"/fluxadmin/managebenchmark",name:"fluxadmin-managebenchmark",component:()=>a.e(1994).then(a.bind(a,71994)),meta:{pageTitle:"Manage Benchmark",breadcrumb:[{text:"Flux Admin"},{text:"Manage Benchmark",active:!0}],privilege:["admin","fluxteam"]}},{path:"/fluxadmin/manageusers",name:"fluxadmin-manageusers",component:()=>a.e(8478).then(a.bind(a,38478)),meta:{pageTitle:"Manage Users",breadcrumb:[{text:"Flux Admin"},{text:"Manage Users",active:!0}],privilege:["admin","fluxteam"]}}],D=[{path:"/xdao-app",name:"xdao-app",component:()=>Promise.all([a.e(5434),a.e(6301),a.e(4393),a.e(460),a.e(2158)]).then(a.bind(a,22158)),meta:{contentRenderer:"sidebar-left",contentClass:"xdao-application"}},{path:"/xdao-app/:filter",name:"xdao-app-filter",component:()=>Promise.all([a.e(5434),a.e(6301),a.e(4393),a.e(460),a.e(2158)]).then(a.bind(a,22158)),meta:{contentRenderer:"sidebar-left",contentClass:"xdao-application",navActiveLink:"xdao-app"},beforeEnter(e,t,a){["open","passed","unpaid","rejected"].includes(e.params.filter)?a():a({name:"error-404"})}},{path:"/xdao-app/tag/:tag",name:"xdao-app-tag",component:()=>Promise.all([a.e(5434),a.e(6301),a.e(4393),a.e(460),a.e(2158)]).then(a.bind(a,22158)),meta:{contentRenderer:"sidebar-left",contentClass:"xdao-application",navActiveLink:"xdao-app"},beforeEnter(e,t,a){["team","low","medium","high","update"].includes(e.params.tag)?a():a({name:"error-404"})}}],B=a(80129);n["default"].use(o.ZP);const E=new o.ZP({mode:"history",base:"/",scrollBehavior(){return{x:0,y:0}},routes:[{path:"/",name:"home",component:()=>Promise.all([a.e(601),a.e(4884),a.e(1601),a.e(6301),a.e(7046),a.e(6961)]).then(a.bind(a,45873)),meta:{pageTitle:"Home",breadcrumb:[{text:"Home",active:!0}]}},{path:"/explorer",name:"explorer",component:()=>Promise.all([a.e(6301),a.e(4156),a.e(3155)]).then(a.bind(a,1941)),meta:{pageTitle:"Explorer",breadcrumb:[{text:"Explorer",active:!0}]}},...s,...f,...T,...y,...C,...P,...D,{path:"/error-404",name:"error-404",component:()=>a.e(1671).then(a.bind(a,21671)),meta:{layout:"full"}},{path:"*",redirect:"error-404"}]});E.beforeEach((async(e,t,a)=>{const n=localStorage.getItem("zelidauth"),o=B.parse(n);if(r.Z.commit("flux/setPrivilege","none"),o&&o.zelid&&o.signature&&o.loginPhrase)try{const e=await i.Z.checkUserLogged(o.zelid,o.signature,o.loginPhrase),t=e.data.data.message;r.Z.commit("flux/setPrivilege",t),"none"===t&&localStorage.removeItem("zelidauth")}catch(s){console.log(s)}e.meta&&e.meta.privilege?e.meta.privilege.some((e=>e===r.Z.state.flux.privilege))?a():a("/"):a()})),E.afterEach((()=>{const e=document.getElementById("loading-bg");e&&(e.style.display="none")}));const w=E},80914:(e,t,a)=>{"use strict";a.d(t,{S:()=>m,Z:()=>p});var n=a(9669),o=a.n(n);const r=a(58971),{protocol:i,hostname:s,port:l}=window.location;let c="";c+=i,c+="//";const d=/[A-Za-z]/g;if(s.match(d)){const e=s.split(".");e[0]="api",c+=e.join(".")}else c+=s,c+=":",c+=+l+1;const m=o().CancelToken.source(),p=()=>o().create({baseURL:r.get("backendURL")||c})},34369:(e,t,a)=>{"use strict";a.d(t,{Z:()=>r});var n=a(80914);const o=a(80129),r={loginPhrase(){return(0,n.Z)().get("/id/loginphrase")},emergencyLoginPhrase(){return(0,n.Z)().get("/id/emergencyphrase")},verifyLogin(e){return(0,n.Z)().post("/id/verifylogin",o.stringify(e))},loggedSessions(e){return(0,n.Z)().get(`/id/loggedsessions?timestamp=${Date.now()}`,{headers:{zelidauth:e}})},loggedUsers(e){return(0,n.Z)().get(`/id/loggedusers?timestamp=${Date.now()}`,{headers:{zelidauth:e}})},activeLoginPhrases(e){return(0,n.Z)().get("/id/activeloginphrases",{headers:{zelidauth:e}})},logoutCurrentSession(e){return(0,n.Z)().get("/id/logoutcurrentsession",{headers:{zelidauth:e}})},logoutSpecificSession(e,t){const a={loginPhrase:t},r={headers:{zelidauth:e}};return(0,n.Z)().post("/id/logoutspecificsession",o.stringify(a),r)},logoutAllSessions(e){return(0,n.Z)().get("/id/logoutallsessions",{headers:{zelidauth:e}})},logoutAllUsers(e){return(0,n.Z)().get("/id/logoutallusers",{headers:{zelidauth:e}})},checkUserLogged(e,t,a){const r={zelid:e,signature:t,loginPhrase:a};return(0,n.Z)().post("/id/checkprivilege",o.stringify(r))}}},73507:(e,t,a)=>{"use strict";a.d(t,{Z:()=>p});var n=a(20144),o=a(20629),r=a(68934);const i={namespaced:!0,state:{windowWidth:0,shallShowOverlay:!1},getters:{currentBreakPoint:e=>{const{windowWidth:t}=e;return t>=r.n.xl?"xl":t>=r.n.lg?"lg":t>=r.n.md?"md":t>=r.n.sm?"sm":"xs"}},mutations:{UPDATE_WINDOW_WIDTH(e,t){e.windowWidth=t},TOGGLE_OVERLAY(e,t){e.shallShowOverlay=void 0!==t?t:!e.shallShowOverlay}},actions:{}},s={namespaced:!0,state:{layout:{isRTL:r.$themeConfig.layout.isRTL,skin:localStorage.getItem("vuexy-skin")||r.$themeConfig.layout.skin,routerTransition:r.$themeConfig.layout.routerTransition,type:r.$themeConfig.layout.type,contentWidth:r.$themeConfig.layout.contentWidth,menu:{hidden:r.$themeConfig.layout.menu.hidden,collapsed:"true"===localStorage.getItem("menu-itemsCollapsed")||r.$themeConfig.layout.menu.itemsCollapsed},navbar:{type:r.$themeConfig.layout.navbar.type,backgroundColor:r.$themeConfig.layout.navbar.backgroundColor},footer:{type:r.$themeConfig.layout.footer.type}}},getters:{},mutations:{TOGGLE_RTL(e){e.layout.isRTL=!e.layout.isRTL,document.documentElement.setAttribute("dir",e.layout.isRTL?"rtl":"ltr")},UPDATE_SKIN(e,t){e.layout.skin=t,localStorage.setItem("vuexy-skin",t),"dark"===t?document.body.classList.add("dark-layout"):document.body.className.match("dark-layout")&&document.body.classList.remove("dark-layout")},UPDATE_ROUTER_TRANSITION(e,t){e.layout.routerTransition=t},UPDATE_LAYOUT_TYPE(e,t){e.layout.type=t},UPDATE_CONTENT_WIDTH(e,t){e.layout.contentWidth=t},UPDATE_NAV_MENU_HIDDEN(e,t){e.layout.menu.hidden=t},UPDATE_NAVBAR_CONFIG(e,t){Object.assign(e.layout.navbar,t)},UPDATE_FOOTER_CONFIG(e,t){Object.assign(e.layout.footer,t)},UPDATE_MENU_COLLAPSED(e,t){e.layout.menu.collapsed=t,localStorage.setItem("menu-itemsCollapsed",t)}},actions:{}},l={namespaced:!0,state:{isVerticalMenuCollapsed:"true"===localStorage.getItem("menu-isCollapsed")||r.$themeConfig.layout.menu.isCollapsed},getters:{},mutations:{UPDATE_VERTICAL_MENU_COLLAPSED(e,t){e.isVerticalMenuCollapsed=t,localStorage.setItem("menu-isCollapsed",t)}},actions:{}};var c=a(90325),d=a.n(c);const m={namespaced:!0,state:{userconfig:{zelid:"",externalip:""},config:{apiPort:d().server.apiport,fluxTeamZelId:d().fluxTeamZelId},privilege:"none",zelid:"",fluxVersion:"",xdaoOpen:0},getters:{xdaoOpen(e){return e.xdaoOpen}},mutations:{setPrivilege(e,t){e.privilege=t},setZelid(e,t){e.zelid=t},setFluxVersion(e,t){e.fluxVersion=t},setUserZelid(e,t){e.userconfig.zelid=t},setUserIp(e,t){e.userconfig.externalip=t},setFluxPort(e,t){e.config.apiPort=t},setXDAOOpen(e,t){e.xdaoOpen=t}},actions:{}};n["default"].use(o.ZP);const p=new o.ZP.Store({modules:{app:i,appConfig:s,verticalMenu:l,flux:m},strict:{NODE_ENV:"production",BASE_URL:"/"}.DEV})},68934:(e,t,a)=>{"use strict";a.d(t,{$themeConfig:()=>r,j:()=>n,n:()=>o});const n={},o={},r={app:{appName:"FluxOS",appLogoImageDark:a(98927),appLogoImage:a(62606)},layout:{isRTL:!1,skin:"dark",routerTransition:"zoom-fade",type:"vertical",contentWidth:"full",menu:{hidden:!1,isCollapsed:!1,itemsCollapsed:!0},navbar:{type:"sticky",backgroundColor:""},footer:{type:"static"},customizer:!0,enableScrollToTop:!0}}},90325:(e,t,a)=>{let n=a(65796);const o=n.initial.development||!1;e.exports={development:o,loglevel:"debug",server:{allowedPorts:[16127,16137,16147,16157,16167,16177,16187,16197],apiport:16127},database:{url:"127.0.0.1",port:27017,local:{database:"zelfluxlocal",collections:{loggedUsers:"loggedusers",activeLoginPhrases:"activeloginphrases",activeSignatures:"activesignatures"}},daemon:{database:"zelcashdata",collections:{scannedHeight:"scannedheight",utxoIndex:"utxoindex",addressTransactionIndex:"addresstransactionindex",fluxTransactions:"zelnodetransactions",appsHashes:"zelappshashes",coinbaseFusionIndex:"coinbasefusionindex"}},appslocal:{database:"localzelapps",collections:{appsInformation:"zelappsinformation"}},appsglobal:{database:"globalzelapps",collections:{appsMessages:"zelappsmessages",appsInformation:"zelappsinformation",appsTemporaryMessages:"zelappstemporarymessages",appsLocations:"zelappslocation"}},chainparams:{database:"chainparams",collections:{chainMessages:"chainmessages"}},fluxshare:{database:"zelshare",collections:{shared:"shared"}}},benchmark:{port:16225,rpcport:16224,porttestnet:26225,rpcporttestnet:26224},daemon:{chainValidHeight:1062e3,port:16125,rpcport:16124,porttestnet:26125,rpcporttestnet:26124},minimumFluxBenchAllowedVersion:"3.9.0",minimumFluxOSAllowedVersion:"4.5.0",fluxTeamZelId:"1hjy4bCYBJr4mny4zCE85J94RXa8W6q37",deterministicNodesStart:558e3,fluxapps:{price:[{height:-1,cpu:3,ram:1,hdd:.5,minPrice:1,port:2,scope:6,staticip:3},{height:983e3,cpu:.3,ram:.1,hdd:.05,minPrice:.1,port:2,scope:6,staticip:3},{height:1004e3,cpu:.06,ram:.02,hdd:.01,minPrice:.01,port:2,scope:6,staticip:3},{height:1288e3,cpu:.15,ram:.05,hdd:.02,minPrice:.01,port:2,scope:6,staticip:3}],appSpecsEnforcementHeights:{1:0,2:0,3:983e3,4:1004e3,5:1142e3,6:13e5,7:o?139e4:142e4},address:"t1LUs6quf7TB2zVZmexqPQdnqmrFMGZGjV6",addressMultisig:"t3aGJvdtd8NR6GrnqnRuVEzH6MbrXuJFLUX",addressDevelopment:"t1Mzja9iJcEYeW5B4m4s1tJG8M42odFZ16A",epochstart:694e3,publicepochstart:705e3,portMin:31e3,portMax:39999,portBlockheightChange:o?139e4:142e4,portMinNew:1,portMaxNew:65535,bannedPorts:["16100-16299","26100-26299","30000-30099",8384,27017,22,23,25,3389,5900,5800,161,512,513,5901,3388,4444,123,53],enterprisePorts:["0-1023",8080,8081,8443,25565,6667],upnpBannedPorts:[],maxImageSize:2e9,minimumInstances:3,maximumInstances:100,minOutgoing:8,minUniqueIpsOutgoing:7,minIncoming:4,minUniqueIpsIncoming:3,minUpTime:1800,installation:{probability:100,delay:120},removal:{probability:25,delay:300},redeploy:{probability:2,delay:30,composedDelay:5},blocksLasting:22e3,minBlocksAllowance:5e3,maxBlocksAllowance:264e3,blocksAllowanceInterval:1e3,ownerAppAllowance:1e3,temporaryAppAllowance:200,expireFluxAppsPeriod:100,updateFluxAppsPeriod:9,removeFluxAppsPeriod:11,reconstructAppMessagesHashPeriod:3600,benchUpnpPeriod:6480,hddFileSystemMinimum:10,defaultSwap:2},lockedSystemResources:{cpu:10,ram:2e3,hdd:40,extrahdd:20},fluxSpecifics:{cpu:{cumulus:40,nimbus:80,stratus:160},ram:{cumulus:7e3,nimbus:3e4,stratus:61e3},hdd:{cumulus:220,nimbus:440,stratus:880},collateral:{cumulusold:1e4,nimbusold:25e3,stratusold:1e5,cumulus:1e3,nimbus:12500,stratus:4e4}},syncthing:{ip:"127.0.0.1",port:8384},enterprisePublicKeys:["045bd4f81d7bda582141793463edb58e0f3228a873bd6b6680b78586db2969f51dfeda672eae65e64ca814316f77557012d02c73db7876764f5eddb6b6d9d02b5b","042ebcb3a94fe66b9ded6e456871346d6984502bbadf14ed07644e0eb91f8cc0b1f07632c428e1e6793f372d9c303d680de80ae0499d51095676cabf68599e9591","040a0f94fdbd670a4514a7366e8b5f7fbfb264c6ca6ea7d3f37147410b62a50525d1ed1ac83dac029de9203b9cabcf18a01b82e499ba36ea51594fd799999b2a26","04092edca3ed2d2b744a1d93e504568e9d861f38232023835202c155afa9f74e3779c926745a4157a7897ca6dca30aa78aa26e4ee11101ce20db9fc79b686de5f0","045964031bb8818521b99f16d2614f1bc8a9968184c9c38dc09cf95b744dae0f603ff3bbecc7845d952901ebabeb343cdcde3c4325274901768dfb102b9a34f5d6","0459f5c058481d557fb63580bfbf21f3791a2f3a62a62c99b435fd8db1d59e21353bdae35cfe00adaf7c4f2f0d400afc698e9c58ee6a3894c20706b3db7da83750","040ecac42ff4468fa8ae094e125fb8ae67c1a588e7b218ac0a9d270bba882c19db656b7b5d99b1af0fe96c34475545088a5bd87efb9a771174bcdd7fb499dd7ca3","04a52af6e9688fcb9d47096f8a15db67131f9b0bbfb50c28fd22028d9fba18f4e9bd3293b43ed64634dbba11688b4e37f1f8e65629b6a204df352d3ecfb174b9f5","04ce029f9d17da47809cbde46e0ea2eace185f79f98e5718cb4ddc3d84bfd742cd3e3951388fcd2771238ab323fe22d53c3dced2a30326ead0447b10f7db0a829b","04dbbf2ba07d28b0010f4faa0537d963b3481b5d8e7ec0de29f311264a4ab074d4d579aca1c2aa3eb31e96f439a6d6bbf72393584049923f342ed4762f13fe7be4","043c4fe1606c543ca28f107245166321fae026300747a608db94deecbcd2d945f86b29c52a33416464e7823a6c2e3e45c26733f6378be973959cbf9ee4bff79e66","04a898a0bc768ad0b8456b4da7c1e653a715477926fefb47ef20d8bd841854ddf4e1f59c1c3d55f0088eaca53b850e6ab03d0bd00d0b5a70d17ffbc0554b6188d5","0455a20efde6a0685fa15b020e694674170376bc7c23d203e96fb927717db38011b87c36b2f81c5cf68123c5567abf2b29788231966ea4c43c4f5cb759e4c5cdbb","04c765d054bcded999c404145c7396725df81973fe803b3da5e9455173410743f43e20294e17bb41adff8b4ff1ab5540b8bcd98521b438840b6a38e904eb0b247f","03cf1d8b708ca7f5979accb4d0dba35a90391e3dfc4422cf12670c929bb58d16ac","03e29783936a36b396c28706494dbfd35f3d087f2addeb3df32e451f71bf9a53f3"]}},65796:e=>{e.exports={initial:{ipaddress:"94.16.104.218",zelid:"1K6nyw2VjV6jEN1f1CkbKn9htWnYkQabbR",kadena:"kadena:k:b3d922d1a57793651a1e0d951ef1671a10833e170810d3520388628cdc082fce?chainid=0",testnet:!1,development:!1,apiport:NaN,pgpPrivateKey:"-----BEGIN PGP PRIVATE KEY BLOCK-----\n\nxVgEZHmg8RYJKwYBBAHaRw8BAQdAvezm7p0lvhM4yOpOSre0cB9W7LCVQ/dM\nzISJD+qJNM8AAP9aHyinNqZkJt6F4siUloUVJt6rOgGCn0e/D3icC2Yisg73\nzXQzMWE5ZjY0ZDNmYzRlZmFlZTQzNzYxM2UzN2NiMmYxZDYzYjRjOTA5N2U5\nZDhlZDhjODFmOTkzNzllM2RkNDY0OjAgPDFLNm55dzJWalY2akVOMWYxQ2ti\nS245aHRXbllrUWFiYlJAcnVub25mbHV4LmlvPsKMBBAWCgA+BYJkeaDxBAsJ\nBwgJkLG9++fl7XbxAxUICgQWAAIBAhkBApsDAh4BFiEEtOdwyqWbs8NNu6s0\nsb375+XtdvEAAEnoAQD2BWD7do+fMVeBbV82fIOhz2qdnDaYAprrihDz6vwb\nTwEAnPMIC4p9iaptWru9Qa2uu3rJsnNmKoiEl1wfFQe+BwfHXQRkeaDxEgor\nBgEEAZdVAQUBAQdA8E0WJLyldJfrFik2vBRQe6kaukdzzTEn7pdoxsd98RUD\nAQgHAAD/ShBVjfSyN5gHdY7AuJaAfqqERyTSkc+hCcSc07cY6zgRYMJ4BBgW\nCAAqBYJkeaDxCZCxvfvn5e128QKbDBYhBLTncMqlm7PDTburNLG9++fl7Xbx\nAADU2QD/TGxJcV7wrgHSJtXxl7ySaYKS/SFgIhF2uQzeS3CwIoYBANyqyX+C\nda2lr4gzAcmnyJGGAK9U60WK4Ppw50lxPP8G\n=A9AK\n-----END PGP PRIVATE KEY BLOCK-----\n",pgpPublicKey:"-----BEGIN PGP PUBLIC KEY BLOCK-----\n\nxjMEZHmg8RYJKwYBBAHaRw8BAQdAvezm7p0lvhM4yOpOSre0cB9W7LCVQ/dM\nzISJD+qJNM/NdDMxYTlmNjRkM2ZjNGVmYWVlNDM3NjEzZTM3Y2IyZjFkNjNi\nNGM5MDk3ZTlkOGVkOGM4MWY5OTM3OWUzZGQ0NjQ6MCA8MUs2bnl3MlZqVjZq\nRU4xZjFDa2JLbjlodFduWWtRYWJiUkBydW5vbmZsdXguaW8+wowEEBYKAD4F\ngmR5oPEECwkHCAmQsb375+XtdvEDFQgKBBYAAgECGQECmwMCHgEWIQS053DK\npZuzw027qzSxvfvn5e128QAASegBAPYFYPt2j58xV4FtXzZ8g6HPap2cNpgC\nmuuKEPPq/BtPAQCc8wgLin2Jqm1au71Bra67esmyc2YqiISXXB8VB74HB844\nBGR5oPESCisGAQQBl1UBBQEBB0DwTRYkvKV0l+sWKTa8FFB7qRq6R3PNMSfu\nl2jGx33xFQMBCAfCeAQYFggAKgWCZHmg8QmQsb375+XtdvECmwwWIQS053DK\npZuzw027qzSxvfvn5e128QAA1NkA/0xsSXFe8K4B0ibV8Ze8kmmCkv0hYCIR\ndrkM3ktwsCKGAQDcqsl/gnWtpa+IMwHJp8iRhgCvVOtFiuD6cOdJcTz/Bg==\n=V9QD\n-----END PGP PUBLIC KEY BLOCK-----\n"}}},98927:(e,t,a)=>{"use strict";e.exports=a.p+"img/logo.svg"},62606:(e,t,a)=>{"use strict";e.exports=a.p+"img/logo_light.svg"},24654:()=>{}},t={};function a(n){var o=t[n];if(void 0!==o)return o.exports;var r=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(r.exports,r,r.exports,a),r.loaded=!0,r.exports}a.m=e,(()=>{var e=[];a.O=(t,n,o,r)=>{if(!n){var i=1/0;for(d=0;d=r)&&Object.keys(a.O).every((e=>a.O[e](n[l])))?n.splice(l--,1):(s=!1,r0&&e[d-1][2]>r;d--)e[d]=e[d-1];e[d]=[n,o,r]}})(),(()=>{a.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;return a.d(t,{a:t}),t}})(),(()=>{a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),(()=>{a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[]))})(),(()=>{a.u=e=>"js/"+({601:"walletconnect",1601:"stablelib",1973:"xterm",2137:"vueJsonViewer",4884:"metamask",5434:"apexcharts",5997:"clipboard",6567:"leaflet",8749:"openpgp"}[e]||e)+".js"})(),(()=>{a.miniCssF=e=>"css/"+e+".css"})(),(()=>{a.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()})(),(()=>{a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{var e={},t="flux:";a.l=(n,o,r,i)=>{if(e[n])e[n].push(o);else{var s,l;if(void 0!==r)for(var c=document.getElementsByTagName("script"),d=0;d{s.onerror=s.onload=null,clearTimeout(u);var o=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(a))),t)return t(a)},u=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),l&&document.head.appendChild(s)}}})(),(()=>{a.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e)})(),(()=>{a.p="/"})(),(()=>{if("undefined"!==typeof document){var e=(e,t,a,n,o)=>{var r=document.createElement("link");r.rel="stylesheet",r.type="text/css";var i=a=>{if(r.onerror=r.onload=null,"load"===a.type)n();else{var i=a&&("load"===a.type?"missing":a.type),s=a&&a.target&&a.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+s+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=i,l.request=s,r.parentNode&&r.parentNode.removeChild(r),o(l)}};return r.onerror=r.onload=i,r.href=t,a?a.parentNode.insertBefore(r,a.nextSibling):document.head.appendChild(r),r},t=(e,t)=>{for(var a=document.getElementsByTagName("link"),n=0;nnew Promise(((o,r)=>{var i=a.miniCssF(n),s=a.p+i;if(t(i,s))return o();e(n,s,null,o,r)})),o={4826:0};a.f.miniCss=(e,t)=>{var a={62:1,76:1,237:1,1115:1,1145:1,1313:1,1573:1,1671:1,1966:1,1994:1,2158:1,2252:1,2743:1,3155:1,3192:1,3196:1,3404:1,3678:1,3729:1,3904:1,4671:1,4764:1,5038:1,5213:1,5216:1,5439:1,5497:1,5528:1,5624:1,5988:1,6147:1,6223:1,6262:1,6475:1,6481:1,6518:1,6626:1,6669:1,6961:1,7031:1,7249:1,7365:1,7463:1,7550:1,7966:1,8390:1,8478:1,8628:1,8755:1,8904:1,8910:1,9353:1,9389:1,9593:1,9816:1,9853:1,9875:1};o[e]?t.push(o[e]):0!==o[e]&&a[e]&&t.push(o[e]=n(e).then((()=>{o[e]=0}),(t=>{throw delete o[e],t})))}}})(),(()=>{var e={4826:0};a.f.j=(t,n)=>{var o=a.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else{var r=new Promise(((a,n)=>o=e[t]=[a,n]));n.push(o[2]=r);var i=a.p+a.u(t),s=new Error,l=n=>{if(a.o(e,t)&&(o=e[t],0!==o&&(e[t]=void 0),o)){var r=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+r+": "+i+")",s.name="ChunkLoadError",s.type=r,s.request=i,o[1](s)}};a.l(i,l,"chunk-"+t,t)}},a.O.j=t=>0===e[t];var t=(t,n)=>{var o,r,[i,s,l]=n,c=0;if(i.some((t=>0!==e[t]))){for(o in s)a.o(s,o)&&(a.m[o]=s[o]);if(l)var d=l(a)}for(t&&t(n);ca(69699)));n=a.O(n)})(); \ No newline at end of file +(()=>{var e={86713:(e,t,a)=>{"use strict";a.r(t)},49630:(e,t,a)=>{"use strict";a.r(t)},37307:(e,t,a)=>{"use strict";a.d(t,{Z:()=>i});var n=a(20144),o=a(73507);function i(){const e=(0,n.computed)({get:()=>o.Z.state.verticalMenu.isVerticalMenuCollapsed,set:e=>{o.Z.commit("verticalMenu/UPDATE_VERTICAL_MENU_COLLAPSED",e)}}),t=(0,n.computed)({get:()=>o.Z.state.flux.xdaoOpen,set:e=>{o.Z.commit("flux/setXDAOOpen",e)}}),a=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.isRTL,set:e=>{o.Z.commit("appConfig/TOGGLE_RTL",e)}}),i=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.skin,set:e=>{o.Z.commit("appConfig/UPDATE_SKIN",e)}}),r=(0,n.computed)((()=>"bordered"===i.value?"bordered-layout":"semi-dark"===i.value?"semi-dark-layout":null)),s=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.routerTransition,set:e=>{o.Z.commit("appConfig/UPDATE_ROUTER_TRANSITION",e)}}),l=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.type,set:e=>{o.Z.commit("appConfig/UPDATE_LAYOUT_TYPE",e)}});(0,n.watch)(l,(e=>{"horizontal"===e&&"semi-dark"===i.value&&(i.value="light")}));const d=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.contentWidth,set:e=>{o.Z.commit("appConfig/UPDATE_CONTENT_WIDTH",e)}}),c=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.menu.hidden,set:e=>{o.Z.commit("appConfig/UPDATE_NAV_MENU_HIDDEN",e)}}),m=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.menu.collapsed,set:e=>{o.Z.commit("appConfig/UPDATE_MENU_COLLAPSED",e)}}),p=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.navbar.backgroundColor,set:e=>{o.Z.commit("appConfig/UPDATE_NAVBAR_CONFIG",{backgroundColor:e})}}),u=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.navbar.type,set:e=>{o.Z.commit("appConfig/UPDATE_NAVBAR_CONFIG",{type:e})}}),b=(0,n.computed)({get:()=>o.Z.state.appConfig.layout.footer.type,set:e=>{o.Z.commit("appConfig/UPDATE_FOOTER_CONFIG",{type:e})}});return{isVerticalMenuCollapsed:e,isRTL:a,skin:i,skinClasses:r,routerTransition:s,navbarBackgroundColor:p,navbarType:u,footerType:b,layoutType:l,contentWidth:d,isNavMenuHidden:c,isNavMenuCollapsed:m,xdaoOpenProposals:t}}},82162:e=>{const t=[{name:"Games",variant:"success",icon:"gamepad"},{name:"Productivity",variant:"danger",icon:"file-alt"},{name:"Hosting",variant:"success",icon:"server"},{name:"Blockchain",variant:"success",icon:"coins"},{name:"Blockbook",variant:"success",icon:"book"},{name:"Front-end",variant:"success",icon:"desktop"},{name:"RPC Node",variant:"success",icon:"satellite-dish"},{name:"Masternode",variant:"success",icon:"wallet"}],a={name:"App",variant:"success",icon:"cog"};e.exports={categories:t,defaultCategory:a}},69699:(e,t,a)=>{"use strict";var n=a(20144),o=a(77354),i=a(48648),r=a(68793),s=a(54016),l=a(51205),d=a(33017),c=a(24019),m=a(73507),p=function(){var e=this,t=e._self._c;return t("div",{staticClass:"h-100",class:[e.skinClasses],attrs:{id:"app"}},[t(e.layout,{tag:"component"},[t("router-view")],1),e.enableScrollToTop?t("scroll-to-top"):e._e()],1)},u=[],b=function(){var e=this,t=e._self._c;return t("div",{staticClass:"btn-scroll-to-top",class:{show:e.y>250}},[t("b-button",{directives:[{name:"ripple",rawName:"v-ripple.400",value:"rgba(255, 255, 255, 0.15)",expression:"'rgba(255, 255, 255, 0.15)'",modifiers:{400:!0}}],staticClass:"btn-icon",attrs:{variant:"primary"},on:{click:e.scrollToTop}},[t("feather-icon",{attrs:{icon:"ArrowUpIcon",size:"16"}})],1)],1)},g=[],h=a(52829),f=a(15193),x=a(20266);const v={directives:{Ripple:x.Z},components:{BButton:f.T},setup(){const{y:e}=(0,h.baj)(),t=()=>{const e=document.documentElement;e.scrollTo({top:0,behavior:"smooth"})};return{y:e,scrollToTop:t}}},k=v;var A=a(1001),y=(0,A.Z)(k,b,g,!1,null,"4d172cb1",null);const T=y.exports;var C=a(68934),P=a(41905),D=a(37307),B=a(34369);const E=a(80129),w=()=>Promise.all([a.e(6301),a.e(460),a.e(1012)]).then(a.bind(a,71012)),N=()=>a.e(2791).then(a.bind(a,82791)),S={components:{LayoutVertical:w,LayoutFull:N,ScrollToTop:T},setup(){const{skin:e,skinClasses:t}=(0,D.Z)(),{enableScrollToTop:a}=C.$themeConfig.layout;"dark"===e.value&&document.body.classList.add("dark-layout"),(0,P.provideToast)({hideProgressBar:!0,closeOnClick:!1,closeButton:!1,icon:!1,timeout:3e3,transition:"Vue-Toastification__fade"}),m.Z.commit("app/UPDATE_WINDOW_WIDTH",window.innerWidth);const{width:o}=(0,h.iPe)();return(0,n.watch)(o,(e=>{m.Z.commit("app/UPDATE_WINDOW_WIDTH",e)})),{skinClasses:t,enableScrollToTop:a}},computed:{layout(){return"full"===this.$route.meta.layout?"layout-full":`layout-${this.contentLayoutType}`},contentLayoutType(){return this.$store.state.appConfig.layout.type}},beforeCreate(){const e=["primary","secondary","success","info","warning","danger","light","dark"];for(let n=0,o=e.length;n16100)){const e=+t+1;this.$store.commit("flux/setFluxPort",e)}},getZelIdLoginPhrase(){B.Z.loginPhrase().then((e=>{console.log(e),"error"===e.data.status?"MongoNetworkError"===e.data.data.name?this.errorMessage="Failed to connect to MongoDB.":JSON.stringify(e.data.data).includes("CONN")?this.getEmergencyLoginPhrase():this.errorMessage=e.data.data.message:this.loginPhrase=e.data.data})).catch((e=>{console.log(e),this.errorMessage="Error connecting to Flux Backend"}))},getEmergencyLoginPhrase(){B.Z.emergencyLoginPhrase().then((e=>{console.log(e),"error"===e.data.status?this.errorMessage=e.data.data.message:this.loginPhrase=e.data.data})).catch((e=>{console.log(e),this.errorMessage="Error connecting to Flux Backend"}))},activeLoginPhrases(){const e=localStorage.getItem("zelidauth"),t=E.parse(e);console.log(t),B.Z.activeLoginPhrases(e).then((e=>{console.log(e),e.data.status})).catch((e=>{console.log(e),console.log(e.code)}))}}},Z=S;var O=(0,A.Z)(Z,p,u,!1,null,null,null);const L=O.exports;var I=a(9101);const M={name:"FeatherIcon",functional:!0,props:{icon:{required:!0,type:[String,Object]},size:{type:String,default:"14"},badge:{type:[String,Object,Number],default:null},badgeClasses:{type:[String,Object,Array],default:"badge-primary"}},render(e,{props:t,data:a}){const n=e(I[t.icon],{props:{size:t.size},...a});if(!t.badge)return n;const o=e("span",{staticClass:"badge badge-up badge-pill",class:t.badgeClasses},[t.badge]);return e("span",{staticClass:"feather-icon position-relative"},[n,o])}},R=M;var F,z,G=(0,A.Z)(R,F,z,!1,null,null,null);const U=G.exports;var _=a(97754);a(44784);n["default"].component(U.name,U),n["default"].component("VIcon",_.Z);var V=a(9669),W=a.n(V);const Y=W().create({});n["default"].prototype.$http=Y;var j=a(72433);n["default"].use(j.ZP);var H=a(41151);n["default"].use(H["default"],{hideProgressBar:!0,closeOnClick:!1,closeButton:!1,icon:!1,timeout:3e3,transition:"Vue-Toastification__fade"}),n["default"].use(o.R,{breakpoints:["xs","sm","md","lg","xl","xxl"]}),n["default"].use(i.A6),n["default"].use(r.m$),n["default"].use(s.k),n["default"].use(l.XG7),n["default"].use(d.A7),a(86713),a(49630),n["default"].config.productionTip=!1,new n["default"]({router:c.Z,store:m.Z,render:e=>e(L)}).$mount("#app")},24019:(e,t,a)=>{"use strict";a.d(t,{Z:()=>w});var n=a(20144),o=a(78345),i=a(73507),r=a(34369);const s=[{path:"/dashboard/overview",name:"dashboard-overview",component:()=>Promise.all([a.e(5434),a.e(6301),a.e(4393),a.e(5988)]).then(a.bind(a,35988)),meta:{pageTitle:"Overview",breadcrumb:[{text:"Dashboard"},{text:"Overview",active:!0}]}},{path:"/dashboard/resources",name:"dashboard-resources",component:()=>Promise.all([a.e(5434),a.e(6301),a.e(4393),a.e(5216)]).then(a.bind(a,25216)),meta:{pageTitle:"Resources",breadcrumb:[{text:"Dashboard"},{text:"Resources",active:!0}]}},{path:"/dashboard/map",name:"dashboard-map",component:()=>Promise.all([a.e(5434),a.e(6567),a.e(6301),a.e(4393),a.e(8628)]).then(a.bind(a,8628)),meta:{pageTitle:"Map",breadcrumb:[{text:"Dashboard"},{text:"Map",active:!0}]}},{path:"/dashboard/rewards",name:"dashboard-rewards",component:()=>Promise.all([a.e(5434),a.e(6301),a.e(4393),a.e(8755)]).then(a.bind(a,68755)),meta:{pageTitle:"Rewards",breadcrumb:[{text:"Dashboard"},{text:"Rewards",active:!0}]}},{path:"/dashboard/economics",name:"dashboard-economics",component:()=>Promise.all([a.e(5434),a.e(6301),a.e(4393),a.e(8755)]).then(a.bind(a,68755)),meta:{pageTitle:"Rewards",breadcrumb:[{text:"Dashboard"},{text:"Rewards",active:!0}]}},{path:"/dashboard/list",name:"dashboard-list",component:()=>Promise.all([a.e(6301),a.e(4316)]).then(a.bind(a,24316)),meta:{pageTitle:"List",breadcrumb:[{text:"Dashboard"},{text:"List",active:!0}]}}],l=[{path:"/daemon/control/getinfo",name:"daemon-control-getinfo",component:()=>a.e(5213).then(a.bind(a,35213)),meta:{pageTitle:"Get Info",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Control"},{text:"Get Info",active:!0}]}},{path:"/daemon/control/help",name:"daemon-control-help",component:()=>Promise.all([a.e(6301),a.e(4156),a.e(1966)]).then(a.bind(a,67647)),meta:{pageTitle:"Help",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Control"},{text:"Help",active:!0}]}},{path:"/daemon/control/rescanblockchain",name:"daemon-control-rescanblockchain",component:()=>a.e(6626).then(a.bind(a,86626)),meta:{pageTitle:"Rescan Blockchain",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Control"},{text:"Rescan Blockchain",active:!0}],privilege:["admin"]}},{path:"/daemon/control/reindexblockchain",name:"daemon-control-reindexblockchain",component:()=>a.e(6223).then(a.bind(a,16223)),meta:{pageTitle:"Reindex Blockchain",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Control"},{text:"Reindex Blockchain",active:!0}],privilege:["admin"]}},{path:"/daemon/control/start",name:"daemon-control-start",component:()=>a.e(3404).then(a.bind(a,43404)),meta:{pageTitle:"Start",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Control"},{text:"Start",active:!0}],privilege:["admin","fluxteam"]}},{path:"/daemon/control/stop",name:"daemon-control-stop",component:()=>a.e(1313).then(a.bind(a,91313)),meta:{pageTitle:"Stop",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Control"},{text:"Stop",active:!0}],privilege:["admin"]}},{path:"/daemon/control/restart",name:"daemon-control-restart",component:()=>a.e(9389).then(a.bind(a,39389)),meta:{pageTitle:"Restart",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Control"},{text:"Restart",active:!0}],privilege:["admin","fluxteam"]}}],d=[{path:"/daemon/fluxnode/getnodestatus",name:"daemon-fluxnode-getstatus",component:()=>a.e(1145).then(a.bind(a,81145)),meta:{pageTitle:"Node Status",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"FluxNode"},{text:"Get Node Status",active:!0}]}},{path:"/daemon/fluxnode/listfluxnodes",name:"daemon-fluxnode-listfluxnodes",component:()=>Promise.all([a.e(6301),a.e(7365)]).then(a.bind(a,67365)),meta:{pageTitle:"List FluxNodes",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"FluxNode"},{text:"List FluxNodes",active:!0}]}},{path:"/daemon/fluxnode/viewfluxnodelist",name:"daemon-fluxnode-viewfluxnodelist",component:()=>Promise.all([a.e(6301),a.e(7249)]).then(a.bind(a,77249)),meta:{pageTitle:"View Deterministic FluxNodes",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"FluxNode"},{text:"View FluxNode List",active:!0}]}},{path:"/daemon/fluxnode/getfluxnodecount",name:"daemon-fluxnode-getfluxnodecount",component:()=>a.e(4671).then(a.bind(a,14671)),meta:{pageTitle:"Get FluxNode Count",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"FluxNode"},{text:"Get FluxNode Count",active:!0}]}},{path:"/daemon/fluxnode/getstartlist",name:"daemon-fluxnode-getstartlist",component:()=>Promise.all([a.e(6301),a.e(2743)]).then(a.bind(a,32743)),meta:{pageTitle:"Get Start List",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"FluxNode"},{text:"Get Start List",active:!0}]}},{path:"/daemon/fluxnode/getdoslist",name:"daemon-fluxnode-getdoslist",component:()=>Promise.all([a.e(6301),a.e(3196)]).then(a.bind(a,43196)),meta:{pageTitle:"Get DOS List",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"FluxNode"},{text:"Get DOS List",active:!0}]}},{path:"/daemon/fluxnode/currentwinner",name:"daemon-fluxnode-currentwinner",component:()=>Promise.all([a.e(6301),a.e(4156),a.e(8390)]).then(a.bind(a,81403)),meta:{pageTitle:"Current Winner",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"FluxNode"},{text:"Current Winner",active:!0}]}}],c=[{path:"/daemon/benchmarks/getbenchmarks",name:"daemon-benchmarks-getbenchmarks",component:()=>a.e(7463).then(a.bind(a,7463)),meta:{pageTitle:"Get Benchmarks",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Benchmarks"},{text:"Get Benchmarks",active:!0}]}},{path:"/daemon/benchmarks/getstatus",name:"daemon-benchmarks-getstatus",component:()=>a.e(6147).then(a.bind(a,96147)),meta:{pageTitle:"Get Bench Status",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Benchmarks"},{text:"Get Status",active:!0}]}},{path:"/daemon/benchmarks/startbenchmark",name:"daemon-benchmarks-start",component:()=>a.e(9816).then(a.bind(a,59816)),meta:{pageTitle:"Start Benchmark",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Benchmarks"},{text:"Start Benchmark",active:!0}],privilege:["admin","fluxteam"]}},{path:"/daemon/benchmarks/stopbenchmark",name:"daemon-benchmarks-stop",component:()=>a.e(9353).then(a.bind(a,39353)),meta:{pageTitle:"Stop Benchmark",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Benchmarks"},{text:"Stop Benchmark",active:!0}],privilege:["admin","fluxteam"]}}],m=[{path:"/daemon/blockchain/getblockchaininfo",name:"daemon-blockchain-getchaininfo",component:()=>a.e(1115).then(a.bind(a,61115)),meta:{pageTitle:"Get Blockchain Info",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Get Blockchain Info",active:!0}]}}],p=[{path:"/daemon/mining/getmininginfo",name:"daemon-mining-getmininginfo",component:()=>a.e(5497).then(a.bind(a,85497)),meta:{pageTitle:"Get Mining Info",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Get Mining Info",active:!0}]}}],u=[{path:"/daemon/network/getnetworkinfo",name:"daemon-network-getnetworkinfo",component:()=>a.e(4764).then(a.bind(a,84764)),meta:{pageTitle:"Get Network Info",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Get Network Info",active:!0}]}}],b=[{path:"/daemon/transaction/getrawtransaction",name:"daemon-transaction-getrawtransaction",component:()=>a.e(8910).then(a.bind(a,28910)),meta:{pageTitle:"Get Raw Transaction",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Get Raw Transaction",active:!0}]}}],g=[{path:"/daemon/validateaddress",name:"daemon-util-validateaddress",component:()=>a.e(237).then(a.bind(a,60237)),meta:{pageTitle:"Validate Address",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Validate Address",active:!0}]}}],h=[{path:"/daemon/getwalletinfo",name:"daemon-wallet-getwalletinfo",component:()=>a.e(5528).then(a.bind(a,95528)),meta:{pageTitle:"Get Wallet Info",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Get Wallet Info",active:!0}],privilege:["user","admin","fluxteam"]}}],f=[...l,...d,...c,...m,...p,...u,...b,...g,...h,{path:"/daemon/debug",name:"daemon-debug",component:()=>Promise.all([a.e(6301),a.e(9853)]).then(a.bind(a,59853)),meta:{pageTitle:"Debug",breadcrumb:[{text:"Administration"},{text:"Daemon"},{text:"Debug",active:!0}],privilege:["admin","fluxteam"]}}],x=[{path:"/benchmark/control/help",name:"benchmark-control-help",component:()=>Promise.all([a.e(6301),a.e(4156),a.e(7966)]).then(a.bind(a,34917)),meta:{pageTitle:"Help",breadcrumb:[{text:"Administration"},{text:"Benchmark"},{text:"Control"},{text:"Help",active:!0}]}},{path:"/benchmark/control/start",name:"benchmark-control-start",component:()=>a.e(5038).then(a.bind(a,45038)),meta:{pageTitle:"Start",breadcrumb:[{text:"Administration"},{text:"Benchmark"},{text:"Control"},{text:"Start",active:!0}],privilege:["admin","fluxteam"]}},{path:"/benchmark/control/stop",name:"benchmark-control-stop",component:()=>a.e(6518).then(a.bind(a,36518)),meta:{pageTitle:"Stop",breadcrumb:[{text:"Administration"},{text:"Benchmark"},{text:"Control"},{text:"Stop",active:!0}],privilege:["admin"]}},{path:"/benchmark/control/restart",name:"benchmark-control-restart",component:()=>a.e(7031).then(a.bind(a,7031)),meta:{pageTitle:"Restart",breadcrumb:[{text:"Administration"},{text:"Benchmark"},{text:"Control"},{text:"Restart",active:!0}],privilege:["admin","fluxteam"]}}],v=[{path:"/benchmark/fluxnode/getbenchmarks",name:"benchmark-fluxnode-getbenchmarks",component:()=>a.e(1573).then(a.bind(a,1573)),meta:{pageTitle:"Get Benchmarks",breadcrumb:[{text:"Administration"},{text:"Benchmark"},{text:"FluxNode"},{text:"Get Benchmarks",active:!0}]}},{path:"/benchmark/fluxnode/getinfo",name:"benchmark-fluxnode-getinfo",component:()=>a.e(6262).then(a.bind(a,16262)),meta:{pageTitle:"Get Info",breadcrumb:[{text:"Administration"},{text:"Benchmark"},{text:"FluxNode"},{text:"Get Info",active:!0}]}}],k=[{path:"/benchmark/benchmarks/getstatus",name:"benchmark-benchmarks-getstatus",component:()=>a.e(9875).then(a.bind(a,59875)),meta:{pageTitle:"Get Status",breadcrumb:[{text:"Administration"},{text:"Benchmark"},{text:"Benchmarks"},{text:"Get Status",active:!0}]}},{path:"/benchmark/benchmarks/restartbenchmarks",name:"benchmark-benchmarks-restartbenchmarks",component:()=>a.e(3678).then(a.bind(a,63678)),meta:{pageTitle:"Restart Node Benchmarks",breadcrumb:[{text:"Administration"},{text:"Benchmark"},{text:"Benchmarks"},{text:"Restart Node Benchmarks",active:!0}],privilege:["admin","fluxteam"]}},{path:"/benchmark/benchmarks/signtransaction",name:"benchmark-benchmarks-signtransaction",component:()=>a.e(62).then(a.bind(a,20062)),meta:{pageTitle:"Sign FluxNode Transaction",breadcrumb:[{text:"Administration"},{text:"Benchmark"},{text:"Benchmarks"},{text:"Sign Transaction",active:!0}],privilege:["admin"]}}],A=[...x,...v,...k,{path:"/benchmark/debug",name:"benchmark-debug",component:()=>Promise.all([a.e(6301),a.e(7550)]).then(a.bind(a,37550)),meta:{pageTitle:"Debug",breadcrumb:[{text:"Administration"},{text:"Benchmark"},{text:"Debug",active:!0}],privilege:["admin","fluxteam"]}}],y=[{path:"/flux/nodestatus",name:"flux-nodestatus",component:()=>a.e(5624).then(a.bind(a,35624)),meta:{pageTitle:"Node Status",breadcrumb:[{text:"Administration"},{text:"Flux"},{text:"Node Status",active:!0}]}},{path:"/flux/fluxnetwork",name:"flux-fluxnetwork",component:()=>a.e(3904).then(a.bind(a,63904)),meta:{pageTitle:"Flux Network",breadcrumb:[{text:"Administration"},{text:"Flux"},{text:"Flux Network",active:!0}]}},{path:"/flux/debug",name:"flux-debug",component:()=>Promise.all([a.e(6301),a.e(76)]).then(a.bind(a,50076)),meta:{pageTitle:"Debug",breadcrumb:[{text:"Administration"},{text:"Flux"},{text:"Debug",active:!0}],privilege:["admin","fluxteam"]}}];var T=a(82162);const C=[{path:"/apps/myapps",name:"apps-myapps",component:()=>Promise.all([a.e(5434),a.e(601),a.e(4884),a.e(1601),a.e(8749),a.e(1973),a.e(2137),a.e(5997),a.e(6301),a.e(4393),a.e(4940),a.e(5121),a.e(6981),a.e(9957)]).then(a.bind(a,43082)),meta:{pageTitle:"Applications",breadcrumb:[{text:"Applications"},{text:"Management",active:!0}]}},{path:"/apps/globalapps",name:"apps-globalapps",component:()=>Promise.all([a.e(5434),a.e(601),a.e(4884),a.e(1601),a.e(8749),a.e(1973),a.e(2137),a.e(5997),a.e(6301),a.e(4393),a.e(4940),a.e(5121),a.e(6981),a.e(6345)]).then(a.bind(a,67741)),meta:{pageTitle:"Applications",breadcrumb:[{text:"Applications"},{text:"Global Apps",active:!0}]}},{path:"/apps/registerapp/:appspecs?",name:"apps-registerapp",component:()=>Promise.all([a.e(601),a.e(4884),a.e(1601),a.e(8749),a.e(6301),a.e(4940),a.e(5121),a.e(5439)]).then(a.bind(a,29943)),meta:{pageTitle:"Register New App",breadcrumb:[{text:"Applications"},{text:"Register New App",active:!0}]}},{path:"/apps/marketplace",name:"apps-marketplace",component:()=>Promise.all([a.e(5434),a.e(601),a.e(4884),a.e(1601),a.e(8749),a.e(6301),a.e(4393),a.e(4940),a.e(460),a.e(2252)]).then(a.bind(a,87131)),meta:{contentRenderer:"sidebar-left",contentClass:"marketplace-application"}},{path:"/apps/marketplace/:filter",name:"apps-marketplace-filter",component:()=>Promise.all([a.e(5434),a.e(601),a.e(4884),a.e(1601),a.e(8749),a.e(6301),a.e(4393),a.e(4940),a.e(460),a.e(2252)]).then(a.bind(a,87131)),meta:{contentRenderer:"sidebar-left",contentClass:"marketplace-application",navActiveLink:"apps-marketplace"},beforeEnter(e,t,a){const n=T.categories.map((e=>e.name.toLowerCase()));n.includes(e.params.filter)?a():a({name:"error-404"})}},{path:"https://titan.runonflux.io",name:"apps-marketplace-sharednodes",component:()=>Promise.all([a.e(5434),a.e(601),a.e(4884),a.e(1601),a.e(8749),a.e(6301),a.e(4393),a.e(4940),a.e(460),a.e(2252)]).then(a.bind(a,87131)),meta:{contentRenderer:"sidebar-left",contentClass:"marketplace-application",navActiveLink:"apps-marketplace"}}],P=[{path:"/apps/localapps",name:"apps-localapps",component:()=>Promise.all([a.e(5434),a.e(601),a.e(4884),a.e(1601),a.e(8749),a.e(1973),a.e(2137),a.e(5997),a.e(6301),a.e(4393),a.e(4940),a.e(5121),a.e(6981),a.e(2072)]).then(a.bind(a,39217)),meta:{pageTitle:"Local Apps",breadcrumb:[{text:"Administration"},{text:"Local Apps",active:!0}]}},{path:"/fluxadmin/loggedsessions",name:"fluxadmin-loggedsessions",component:()=>a.e(8904).then(a.bind(a,48904)),meta:{pageTitle:"Logged Sessions",breadcrumb:[{text:"Administration"},{text:"Logged Sessions",active:!0}],privilege:["admin","fluxteam"]}},{path:"/fluxadmin/manageflux",name:"fluxadmin-manageflux",component:()=>a.e(6475).then(a.bind(a,36475)),meta:{pageTitle:"Manage Flux",breadcrumb:[{text:"Administration"},{text:"Manage Flux",active:!0}],privilege:["admin","fluxteam"]}},{path:"/fluxadmin/managedaemon",name:"fluxadmin-managedaemon",component:()=>a.e(6481).then(a.bind(a,56481)),meta:{pageTitle:"Manage Daemon",breadcrumb:[{text:"Administration"},{text:"Manage Daemon",active:!0}],privilege:["admin","fluxteam"]}},{path:"/fluxadmin/managebenchmark",name:"fluxadmin-managebenchmark",component:()=>a.e(1994).then(a.bind(a,71994)),meta:{pageTitle:"Manage Benchmark",breadcrumb:[{text:"Administration"},{text:"Manage Benchmark",active:!0}],privilege:["admin","fluxteam"]}},{path:"/fluxadmin/manageusers",name:"fluxadmin-manageusers",component:()=>a.e(8478).then(a.bind(a,38478)),meta:{pageTitle:"Manage Users",breadcrumb:[{text:"Administration"},{text:"Manage Users",active:!0}],privilege:["admin","fluxteam"]}},{path:"/apps/fluxsharestorage",name:"apps-fluxsharestorage",component:()=>Promise.all([a.e(6301),a.e(9593)]).then(a.bind(a,29593)),meta:{pageTitle:"My FluxShare Storage",breadcrumb:[{text:"Administration"},{text:"My FluxShare Storage",active:!0}],privilege:["admin"]}}],D=[{path:"/xdao-app",name:"xdao-app",component:()=>Promise.all([a.e(5434),a.e(6301),a.e(4393),a.e(460),a.e(2158)]).then(a.bind(a,22158)),meta:{contentRenderer:"sidebar-left",contentClass:"xdao-application"}},{path:"/xdao-app/:filter",name:"xdao-app-filter",component:()=>Promise.all([a.e(5434),a.e(6301),a.e(4393),a.e(460),a.e(2158)]).then(a.bind(a,22158)),meta:{contentRenderer:"sidebar-left",contentClass:"xdao-application",navActiveLink:"xdao-app"},beforeEnter(e,t,a){["open","passed","unpaid","rejected"].includes(e.params.filter)?a():a({name:"error-404"})}},{path:"/xdao-app/tag/:tag",name:"xdao-app-tag",component:()=>Promise.all([a.e(5434),a.e(6301),a.e(4393),a.e(460),a.e(2158)]).then(a.bind(a,22158)),meta:{contentRenderer:"sidebar-left",contentClass:"xdao-application",navActiveLink:"xdao-app"},beforeEnter(e,t,a){["team","low","medium","high","update"].includes(e.params.tag)?a():a({name:"error-404"})}}],B=a(80129);n["default"].use(o.ZP);const E=new o.ZP({mode:"history",base:"/",scrollBehavior(){return{x:0,y:0}},routes:[{path:"/",name:"home",component:()=>Promise.all([a.e(601),a.e(4884),a.e(1601),a.e(6301),a.e(4940),a.e(3515)]).then(a.bind(a,47353)),meta:{pageTitle:"Home",breadcrumb:[{text:"Home",active:!0}]}},{path:"/explorer",name:"explorer",component:()=>Promise.all([a.e(6301),a.e(4156),a.e(3155)]).then(a.bind(a,1941)),meta:{pageTitle:"Explorer",breadcrumb:[{text:"Administration"},{text:"Explorer",active:!0}]}},...s,...f,...A,...y,...C,...P,...D,{path:"/error-404",name:"error-404",component:()=>a.e(1671).then(a.bind(a,21671)),meta:{layout:"full"}},{path:"*",redirect:"error-404"}]});E.beforeEach((async(e,t,a)=>{const n=localStorage.getItem("zelidauth"),o=B.parse(n);if(i.Z.commit("flux/setPrivilege","none"),o&&o.zelid&&o.signature&&o.loginPhrase)try{const e=await r.Z.checkUserLogged(o.zelid,o.signature,o.loginPhrase),t=e.data.data.message;i.Z.commit("flux/setPrivilege",t),"none"===t&&localStorage.removeItem("zelidauth")}catch(s){console.log(s)}e.meta&&e.meta.privilege?e.meta.privilege.some((e=>e===i.Z.state.flux.privilege))?a():a("/"):a()})),E.afterEach((()=>{const e=document.getElementById("loading-bg");e&&(e.style.display="none")}));const w=E},80914:(e,t,a)=>{"use strict";a.d(t,{S:()=>m,Z:()=>p});var n=a(9669),o=a.n(n);const i=a(58971),{protocol:r,hostname:s,port:l}=window.location;let d="";d+=r,d+="//";const c=/[A-Za-z]/g;if(s.match(c)){const e=s.split(".");e[0]="api",d+=e.join(".")}else d+=s,d+=":",d+=+l+1;const m=o().CancelToken.source(),p=()=>o().create({baseURL:i.get("backendURL")||d})},34369:(e,t,a)=>{"use strict";a.d(t,{Z:()=>i});var n=a(80914);const o=a(80129),i={loginPhrase(){return(0,n.Z)().get("/id/loginphrase")},emergencyLoginPhrase(){return(0,n.Z)().get("/id/emergencyphrase")},verifyLogin(e){return(0,n.Z)().post("/id/verifylogin",o.stringify(e))},loggedSessions(e){return(0,n.Z)().get(`/id/loggedsessions?timestamp=${Date.now()}`,{headers:{zelidauth:e}})},loggedUsers(e){return(0,n.Z)().get(`/id/loggedusers?timestamp=${Date.now()}`,{headers:{zelidauth:e}})},activeLoginPhrases(e){return(0,n.Z)().get("/id/activeloginphrases",{headers:{zelidauth:e}})},logoutCurrentSession(e){return(0,n.Z)().get("/id/logoutcurrentsession",{headers:{zelidauth:e}})},logoutSpecificSession(e,t){const a={loginPhrase:t},i={headers:{zelidauth:e}};return(0,n.Z)().post("/id/logoutspecificsession",o.stringify(a),i)},logoutAllSessions(e){return(0,n.Z)().get("/id/logoutallsessions",{headers:{zelidauth:e}})},logoutAllUsers(e){return(0,n.Z)().get("/id/logoutallusers",{headers:{zelidauth:e}})},checkUserLogged(e,t,a){const i={zelid:e,signature:t,loginPhrase:a};return(0,n.Z)().post("/id/checkprivilege",o.stringify(i))}}},73507:(e,t,a)=>{"use strict";a.d(t,{Z:()=>p});var n=a(20144),o=a(20629),i=a(68934);const r={namespaced:!0,state:{windowWidth:0,shallShowOverlay:!1},getters:{currentBreakPoint:e=>{const{windowWidth:t}=e;return t>=i.n.xl?"xl":t>=i.n.lg?"lg":t>=i.n.md?"md":t>=i.n.sm?"sm":"xs"}},mutations:{UPDATE_WINDOW_WIDTH(e,t){e.windowWidth=t},TOGGLE_OVERLAY(e,t){e.shallShowOverlay=void 0!==t?t:!e.shallShowOverlay}},actions:{}},s={namespaced:!0,state:{layout:{isRTL:i.$themeConfig.layout.isRTL,skin:localStorage.getItem("vuexy-skin")||i.$themeConfig.layout.skin,routerTransition:i.$themeConfig.layout.routerTransition,type:i.$themeConfig.layout.type,contentWidth:i.$themeConfig.layout.contentWidth,menu:{hidden:i.$themeConfig.layout.menu.hidden,collapsed:"true"===localStorage.getItem("menu-itemsCollapsed")||i.$themeConfig.layout.menu.itemsCollapsed},navbar:{type:i.$themeConfig.layout.navbar.type,backgroundColor:i.$themeConfig.layout.navbar.backgroundColor},footer:{type:i.$themeConfig.layout.footer.type}}},getters:{},mutations:{TOGGLE_RTL(e){e.layout.isRTL=!e.layout.isRTL,document.documentElement.setAttribute("dir",e.layout.isRTL?"rtl":"ltr")},UPDATE_SKIN(e,t){e.layout.skin=t,localStorage.setItem("vuexy-skin",t),"dark"===t?document.body.classList.add("dark-layout"):document.body.className.match("dark-layout")&&document.body.classList.remove("dark-layout")},UPDATE_ROUTER_TRANSITION(e,t){e.layout.routerTransition=t},UPDATE_LAYOUT_TYPE(e,t){e.layout.type=t},UPDATE_CONTENT_WIDTH(e,t){e.layout.contentWidth=t},UPDATE_NAV_MENU_HIDDEN(e,t){e.layout.menu.hidden=t},UPDATE_NAVBAR_CONFIG(e,t){Object.assign(e.layout.navbar,t)},UPDATE_FOOTER_CONFIG(e,t){Object.assign(e.layout.footer,t)},UPDATE_MENU_COLLAPSED(e,t){e.layout.menu.collapsed=t,localStorage.setItem("menu-itemsCollapsed",t)}},actions:{}},l={namespaced:!0,state:{isVerticalMenuCollapsed:"true"===localStorage.getItem("menu-isCollapsed")||i.$themeConfig.layout.menu.isCollapsed},getters:{},mutations:{UPDATE_VERTICAL_MENU_COLLAPSED(e,t){e.isVerticalMenuCollapsed=t,localStorage.setItem("menu-isCollapsed",t)}},actions:{}};var d=a(90325),c=a.n(d);const m={namespaced:!0,state:{userconfig:{zelid:"",externalip:""},config:{apiPort:c().server.apiport,fluxTeamZelId:c().fluxTeamZelId},privilege:"none",zelid:"",fluxVersion:"",xdaoOpen:0},getters:{xdaoOpen(e){return e.xdaoOpen}},mutations:{setPrivilege(e,t){e.privilege=t},setZelid(e,t){e.zelid=t},setFluxVersion(e,t){e.fluxVersion=t},setUserZelid(e,t){e.userconfig.zelid=t},setUserIp(e,t){e.userconfig.externalip=t},setFluxPort(e,t){e.config.apiPort=t},setXDAOOpen(e,t){e.xdaoOpen=t}},actions:{}};n["default"].use(o.ZP);const p=new o.ZP.Store({modules:{app:r,appConfig:s,verticalMenu:l,flux:m},strict:{NODE_ENV:"production",BASE_URL:"/"}.DEV})},68934:(e,t,a)=>{"use strict";a.d(t,{$themeConfig:()=>i,j:()=>n,n:()=>o});const n={},o={},i={app:{appName:"FluxOS",appLogoImageDark:a(98927),appLogoImage:a(62606)},layout:{isRTL:!1,skin:"dark",routerTransition:"zoom-fade",type:"vertical",contentWidth:"full",menu:{hidden:!1,isCollapsed:!1,itemsCollapsed:!0},navbar:{type:"sticky",backgroundColor:""},footer:{type:"static"},customizer:!0,enableScrollToTop:!0}}},90325:(e,t,a)=>{let n=a(65796);const o=n.initial.development||!1;e.exports={development:o,loglevel:"debug",server:{allowedPorts:[16127,16137,16147,16157,16167,16177,16187,16197],apiport:16127},database:{url:"127.0.0.1",port:27017,local:{database:"zelfluxlocal",collections:{loggedUsers:"loggedusers",activeLoginPhrases:"activeloginphrases",activeSignatures:"activesignatures"}},daemon:{database:"zelcashdata",collections:{scannedHeight:"scannedheight",utxoIndex:"utxoindex",addressTransactionIndex:"addresstransactionindex",fluxTransactions:"zelnodetransactions",appsHashes:"zelappshashes",coinbaseFusionIndex:"coinbasefusionindex"}},appslocal:{database:"localzelapps",collections:{appsInformation:"zelappsinformation"}},appsglobal:{database:"globalzelapps",collections:{appsMessages:"zelappsmessages",appsInformation:"zelappsinformation",appsTemporaryMessages:"zelappstemporarymessages",appsLocations:"zelappslocation"}},chainparams:{database:"chainparams",collections:{chainMessages:"chainmessages"}},fluxshare:{database:"zelshare",collections:{shared:"shared"}}},benchmark:{port:16225,rpcport:16224,porttestnet:26225,rpcporttestnet:26224},daemon:{chainValidHeight:1062e3,port:16125,rpcport:16124,porttestnet:26125,rpcporttestnet:26124},minimumFluxBenchAllowedVersion:"3.9.0",minimumFluxOSAllowedVersion:"4.5.0",fluxTeamZelId:"1hjy4bCYBJr4mny4zCE85J94RXa8W6q37",deterministicNodesStart:558e3,fluxapps:{price:[{height:-1,cpu:3,ram:1,hdd:.5,minPrice:1,port:2,scope:6,staticip:3},{height:983e3,cpu:.3,ram:.1,hdd:.05,minPrice:.1,port:2,scope:6,staticip:3},{height:1004e3,cpu:.06,ram:.02,hdd:.01,minPrice:.01,port:2,scope:6,staticip:3},{height:1288e3,cpu:.15,ram:.05,hdd:.02,minPrice:.01,port:2,scope:6,staticip:3}],appSpecsEnforcementHeights:{1:0,2:0,3:983e3,4:1004e3,5:1142e3,6:13e5,7:o?139e4:142e4},address:"t1LUs6quf7TB2zVZmexqPQdnqmrFMGZGjV6",addressMultisig:"t3aGJvdtd8NR6GrnqnRuVEzH6MbrXuJFLUX",addressDevelopment:"t1Mzja9iJcEYeW5B4m4s1tJG8M42odFZ16A",epochstart:694e3,publicepochstart:705e3,portMin:31e3,portMax:39999,portBlockheightChange:o?139e4:142e4,portMinNew:1,portMaxNew:65535,bannedPorts:["16100-16299","26100-26299","30000-30099",8384,27017,22,23,25,3389,5900,5800,161,512,513,5901,3388,4444,123,53],enterprisePorts:["0-1023",8080,8081,8443,25565,6667],upnpBannedPorts:[],maxImageSize:2e9,minimumInstances:3,maximumInstances:100,minOutgoing:8,minUniqueIpsOutgoing:7,minIncoming:4,minUniqueIpsIncoming:3,minUpTime:1800,installation:{probability:100,delay:120},removal:{probability:25,delay:300},redeploy:{probability:2,delay:30,composedDelay:5},blocksLasting:22e3,minBlocksAllowance:5e3,maxBlocksAllowance:264e3,blocksAllowanceInterval:1e3,ownerAppAllowance:1e3,temporaryAppAllowance:200,expireFluxAppsPeriod:100,updateFluxAppsPeriod:9,removeFluxAppsPeriod:11,reconstructAppMessagesHashPeriod:3600,benchUpnpPeriod:6480,hddFileSystemMinimum:10,defaultSwap:2},lockedSystemResources:{cpu:10,ram:2e3,hdd:40,extrahdd:20},fluxSpecifics:{cpu:{cumulus:40,nimbus:80,stratus:160},ram:{cumulus:7e3,nimbus:3e4,stratus:61e3},hdd:{cumulus:220,nimbus:440,stratus:880},collateral:{cumulusold:1e4,nimbusold:25e3,stratusold:1e5,cumulus:1e3,nimbus:12500,stratus:4e4}},syncthing:{ip:"127.0.0.1",port:8384},enterprisePublicKeys:["045bd4f81d7bda582141793463edb58e0f3228a873bd6b6680b78586db2969f51dfeda672eae65e64ca814316f77557012d02c73db7876764f5eddb6b6d9d02b5b","042ebcb3a94fe66b9ded6e456871346d6984502bbadf14ed07644e0eb91f8cc0b1f07632c428e1e6793f372d9c303d680de80ae0499d51095676cabf68599e9591","040a0f94fdbd670a4514a7366e8b5f7fbfb264c6ca6ea7d3f37147410b62a50525d1ed1ac83dac029de9203b9cabcf18a01b82e499ba36ea51594fd799999b2a26","04092edca3ed2d2b744a1d93e504568e9d861f38232023835202c155afa9f74e3779c926745a4157a7897ca6dca30aa78aa26e4ee11101ce20db9fc79b686de5f0","045964031bb8818521b99f16d2614f1bc8a9968184c9c38dc09cf95b744dae0f603ff3bbecc7845d952901ebabeb343cdcde3c4325274901768dfb102b9a34f5d6","0459f5c058481d557fb63580bfbf21f3791a2f3a62a62c99b435fd8db1d59e21353bdae35cfe00adaf7c4f2f0d400afc698e9c58ee6a3894c20706b3db7da83750","040ecac42ff4468fa8ae094e125fb8ae67c1a588e7b218ac0a9d270bba882c19db656b7b5d99b1af0fe96c34475545088a5bd87efb9a771174bcdd7fb499dd7ca3","04a52af6e9688fcb9d47096f8a15db67131f9b0bbfb50c28fd22028d9fba18f4e9bd3293b43ed64634dbba11688b4e37f1f8e65629b6a204df352d3ecfb174b9f5","04ce029f9d17da47809cbde46e0ea2eace185f79f98e5718cb4ddc3d84bfd742cd3e3951388fcd2771238ab323fe22d53c3dced2a30326ead0447b10f7db0a829b","04dbbf2ba07d28b0010f4faa0537d963b3481b5d8e7ec0de29f311264a4ab074d4d579aca1c2aa3eb31e96f439a6d6bbf72393584049923f342ed4762f13fe7be4","043c4fe1606c543ca28f107245166321fae026300747a608db94deecbcd2d945f86b29c52a33416464e7823a6c2e3e45c26733f6378be973959cbf9ee4bff79e66","04a898a0bc768ad0b8456b4da7c1e653a715477926fefb47ef20d8bd841854ddf4e1f59c1c3d55f0088eaca53b850e6ab03d0bd00d0b5a70d17ffbc0554b6188d5","0455a20efde6a0685fa15b020e694674170376bc7c23d203e96fb927717db38011b87c36b2f81c5cf68123c5567abf2b29788231966ea4c43c4f5cb759e4c5cdbb","04c765d054bcded999c404145c7396725df81973fe803b3da5e9455173410743f43e20294e17bb41adff8b4ff1ab5540b8bcd98521b438840b6a38e904eb0b247f","03cf1d8b708ca7f5979accb4d0dba35a90391e3dfc4422cf12670c929bb58d16ac","03e29783936a36b396c28706494dbfd35f3d087f2addeb3df32e451f71bf9a53f3"]}},65796:e=>{e.exports={initial:{ipaddress:"94.16.104.218",zelid:"1K6nyw2VjV6jEN1f1CkbKn9htWnYkQabbR",kadena:"kadena:k:b3d922d1a57793651a1e0d951ef1671a10833e170810d3520388628cdc082fce?chainid=0",testnet:!1,development:!1,apiport:NaN,pgpPrivateKey:"-----BEGIN PGP PRIVATE KEY BLOCK-----\n\nxVgEZHmg8RYJKwYBBAHaRw8BAQdAvezm7p0lvhM4yOpOSre0cB9W7LCVQ/dM\nzISJD+qJNM8AAP9aHyinNqZkJt6F4siUloUVJt6rOgGCn0e/D3icC2Yisg73\nzXQzMWE5ZjY0ZDNmYzRlZmFlZTQzNzYxM2UzN2NiMmYxZDYzYjRjOTA5N2U5\nZDhlZDhjODFmOTkzNzllM2RkNDY0OjAgPDFLNm55dzJWalY2akVOMWYxQ2ti\nS245aHRXbllrUWFiYlJAcnVub25mbHV4LmlvPsKMBBAWCgA+BYJkeaDxBAsJ\nBwgJkLG9++fl7XbxAxUICgQWAAIBAhkBApsDAh4BFiEEtOdwyqWbs8NNu6s0\nsb375+XtdvEAAEnoAQD2BWD7do+fMVeBbV82fIOhz2qdnDaYAprrihDz6vwb\nTwEAnPMIC4p9iaptWru9Qa2uu3rJsnNmKoiEl1wfFQe+BwfHXQRkeaDxEgor\nBgEEAZdVAQUBAQdA8E0WJLyldJfrFik2vBRQe6kaukdzzTEn7pdoxsd98RUD\nAQgHAAD/ShBVjfSyN5gHdY7AuJaAfqqERyTSkc+hCcSc07cY6zgRYMJ4BBgW\nCAAqBYJkeaDxCZCxvfvn5e128QKbDBYhBLTncMqlm7PDTburNLG9++fl7Xbx\nAADU2QD/TGxJcV7wrgHSJtXxl7ySaYKS/SFgIhF2uQzeS3CwIoYBANyqyX+C\nda2lr4gzAcmnyJGGAK9U60WK4Ppw50lxPP8G\n=A9AK\n-----END PGP PRIVATE KEY BLOCK-----\n",pgpPublicKey:"-----BEGIN PGP PUBLIC KEY BLOCK-----\n\nxjMEZHmg8RYJKwYBBAHaRw8BAQdAvezm7p0lvhM4yOpOSre0cB9W7LCVQ/dM\nzISJD+qJNM/NdDMxYTlmNjRkM2ZjNGVmYWVlNDM3NjEzZTM3Y2IyZjFkNjNi\nNGM5MDk3ZTlkOGVkOGM4MWY5OTM3OWUzZGQ0NjQ6MCA8MUs2bnl3MlZqVjZq\nRU4xZjFDa2JLbjlodFduWWtRYWJiUkBydW5vbmZsdXguaW8+wowEEBYKAD4F\ngmR5oPEECwkHCAmQsb375+XtdvEDFQgKBBYAAgECGQECmwMCHgEWIQS053DK\npZuzw027qzSxvfvn5e128QAASegBAPYFYPt2j58xV4FtXzZ8g6HPap2cNpgC\nmuuKEPPq/BtPAQCc8wgLin2Jqm1au71Bra67esmyc2YqiISXXB8VB74HB844\nBGR5oPESCisGAQQBl1UBBQEBB0DwTRYkvKV0l+sWKTa8FFB7qRq6R3PNMSfu\nl2jGx33xFQMBCAfCeAQYFggAKgWCZHmg8QmQsb375+XtdvECmwwWIQS053DK\npZuzw027qzSxvfvn5e128QAA1NkA/0xsSXFe8K4B0ibV8Ze8kmmCkv0hYCIR\ndrkM3ktwsCKGAQDcqsl/gnWtpa+IMwHJp8iRhgCvVOtFiuD6cOdJcTz/Bg==\n=V9QD\n-----END PGP PUBLIC KEY BLOCK-----\n"}}},98927:(e,t,a)=>{"use strict";e.exports=a.p+"img/logo.svg"},62606:(e,t,a)=>{"use strict";e.exports=a.p+"img/logo_light.svg"},24654:()=>{}},t={};function a(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,a),i.loaded=!0,i.exports}a.m=e,(()=>{var e=[];a.O=(t,n,o,i)=>{if(!n){var r=1/0;for(c=0;c=i)&&Object.keys(a.O).every((e=>a.O[e](n[l])))?n.splice(l--,1):(s=!1,i0&&e[c-1][2]>i;c--)e[c]=e[c-1];e[c]=[n,o,i]}})(),(()=>{a.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;return a.d(t,{a:t}),t}})(),(()=>{a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),(()=>{a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[]))})(),(()=>{a.u=e=>"js/"+({601:"walletconnect",1601:"stablelib",1973:"xterm",2137:"vueJsonViewer",4884:"metamask",5434:"apexcharts",5997:"clipboard",6567:"leaflet",8749:"openpgp"}[e]||e)+".js"})(),(()=>{a.miniCssF=e=>"css/"+e+".css"})(),(()=>{a.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()})(),(()=>{a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{var e={},t="flux:";a.l=(n,o,i,r)=>{if(e[n])e[n].push(o);else{var s,l;if(void 0!==i)for(var d=document.getElementsByTagName("script"),c=0;c{s.onerror=s.onload=null,clearTimeout(u);var o=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(a))),t)return t(a)},u=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),l&&document.head.appendChild(s)}}})(),(()=>{a.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e)})(),(()=>{a.p="/"})(),(()=>{if("undefined"!==typeof document){var e=(e,t,a,n,o)=>{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css";var r=a=>{if(i.onerror=i.onload=null,"load"===a.type)n();else{var r=a&&("load"===a.type?"missing":a.type),s=a&&a.target&&a.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+s+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=r,l.request=s,i.parentNode&&i.parentNode.removeChild(i),o(l)}};return i.onerror=i.onload=r,i.href=t,a?a.parentNode.insertBefore(i,a.nextSibling):document.head.appendChild(i),i},t=(e,t)=>{for(var a=document.getElementsByTagName("link"),n=0;nnew Promise(((o,i)=>{var r=a.miniCssF(n),s=a.p+r;if(t(r,s))return o();e(n,s,null,o,i)})),o={4826:0};a.f.miniCss=(e,t)=>{var a={62:1,76:1,237:1,1012:1,1115:1,1145:1,1313:1,1573:1,1671:1,1966:1,1994:1,2072:1,2158:1,2252:1,2743:1,3155:1,3196:1,3404:1,3515:1,3678:1,3904:1,4671:1,4764:1,5038:1,5213:1,5216:1,5439:1,5497:1,5528:1,5624:1,5988:1,6147:1,6223:1,6262:1,6345:1,6475:1,6481:1,6518:1,6626:1,7031:1,7249:1,7365:1,7463:1,7550:1,7966:1,8390:1,8478:1,8628:1,8755:1,8904:1,8910:1,9353:1,9389:1,9593:1,9816:1,9853:1,9875:1,9957:1};o[e]?t.push(o[e]):0!==o[e]&&a[e]&&t.push(o[e]=n(e).then((()=>{o[e]=0}),(t=>{throw delete o[e],t})))}}})(),(()=>{var e={4826:0};a.f.j=(t,n)=>{var o=a.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else{var i=new Promise(((a,n)=>o=e[t]=[a,n]));n.push(o[2]=i);var r=a.p+a.u(t),s=new Error,l=n=>{if(a.o(e,t)&&(o=e[t],0!==o&&(e[t]=void 0),o)){var i=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+r+")",s.name="ChunkLoadError",s.type=i,s.request=r,o[1](s)}};a.l(r,l,"chunk-"+t,t)}},a.O.j=t=>0===e[t];var t=(t,n)=>{var o,i,[r,s,l]=n,d=0;if(r.some((t=>0!==e[t]))){for(o in s)a.o(s,o)&&(a.m[o]=s[o]);if(l)var c=l(a)}for(t&&t(n);da(69699)));n=a.O(n)})(); \ No newline at end of file diff --git a/HomeUI/src/navigation/vertical/apps.js b/HomeUI/src/navigation/vertical/apps.js index 71d9de0f7..3a6e4c9fb 100644 --- a/HomeUI/src/navigation/vertical/apps.js +++ b/HomeUI/src/navigation/vertical/apps.js @@ -1,11 +1,11 @@ export default [ { - header: 'Apps', + header: 'Applications', }, { - title: 'Local Apps', - icon: 'upload', - route: 'apps-localapps', + title: 'Management', + icon: 'cogs', + route: 'apps-myapps', }, { title: 'Global Apps', @@ -13,14 +13,13 @@ export default [ route: 'apps-globalapps', }, { - title: 'Register Flux App', + title: 'Register New App', icon: 'regular/plus-square', route: 'apps-registerapp', }, { - title: 'My FluxShare', - icon: 'regular/hdd', - route: 'apps-fluxsharestorage', - privilege: ['admin'], + title: 'Marketplace', + icon: 'shopping-basket', + route: 'apps-marketplace', }, ]; diff --git a/HomeUI/src/navigation/vertical/apps_collapsed.js b/HomeUI/src/navigation/vertical/apps_collapsed.js index 41b5995d5..03e426945 100644 --- a/HomeUI/src/navigation/vertical/apps_collapsed.js +++ b/HomeUI/src/navigation/vertical/apps_collapsed.js @@ -1,13 +1,13 @@ export default [ { - title: 'Apps', + title: 'Applications', icon: 'laptop-code', spacing: true, children: [ { - title: 'Local Apps', - icon: 'upload', - route: 'apps-localapps', + title: 'Management', + icon: 'cogs', + route: 'apps-myapps', }, { title: 'Global Apps', @@ -15,15 +15,14 @@ export default [ route: 'apps-globalapps', }, { - title: 'Register Flux App', + title: 'Register New App', icon: 'regular/plus-square', route: 'apps-registerapp', }, { - title: 'My FluxShare', - icon: 'regular/hdd', - route: 'apps-fluxsharestorage', - privilege: ['admin'], + title: 'Marketplace', + icon: 'shopping-basket', + route: 'apps-marketplace', }, ], }, diff --git a/HomeUI/src/navigation/vertical/fluxadmin.js b/HomeUI/src/navigation/vertical/fluxadmin.js index 947e020be..37e2d6206 100644 --- a/HomeUI/src/navigation/vertical/fluxadmin.js +++ b/HomeUI/src/navigation/vertical/fluxadmin.js @@ -1,7 +1,23 @@ +import benchmarks from './benchmark'; +import daemon from './daemon'; +import flux from './flux'; + export default [ { - header: 'Flux Admin', - privilege: ['user', 'admin', 'fluxteam'], + header: 'Administration', + }, + { + title: 'Explorer', + route: 'explorer', + icon: 'search', + }, + ...daemon, + ...benchmarks, + ...flux, + { + title: 'Local Apps', + icon: 'upload', + route: 'apps-localapps', }, { title: 'Logged Sessions', @@ -33,4 +49,10 @@ export default [ route: 'fluxadmin-manageusers', privilege: ['admin', 'fluxteam'], }, + { + title: 'My FluxShare', + icon: 'regular/hdd', + route: 'apps-fluxsharestorage', + privilege: ['admin'], + }, ]; diff --git a/HomeUI/src/navigation/vertical/fluxadmin_collapsed.js b/HomeUI/src/navigation/vertical/fluxadmin_collapsed.js index b1d561f9b..cad998942 100644 --- a/HomeUI/src/navigation/vertical/fluxadmin_collapsed.js +++ b/HomeUI/src/navigation/vertical/fluxadmin_collapsed.js @@ -1,10 +1,26 @@ +import benchmarks from './benchmark_collapsed'; +import daemon from './daemon_collapsed'; +import flux from './flux_collapsed'; + export default [ { - title: 'Flux Admin', + title: 'Administration', icon: 'clipboard-list', spacing: true, - privilege: ['user', 'admin', 'fluxteam'], children: [ + { + title: 'Explorer', + route: 'explorer', + icon: 'search', + }, + ...daemon, + ...benchmarks, + ...flux, + { + title: 'Local Apps', + icon: 'upload', + route: 'apps-localapps', + }, { title: 'Logged Sessions', icon: 'regular/id-badge', @@ -35,6 +51,12 @@ export default [ route: 'fluxadmin-manageusers', privilege: ['admin', 'fluxteam'], }, + { + title: 'My FluxShare', + icon: 'regular/hdd', + route: 'apps-fluxsharestorage', + privilege: ['admin'], + }, ], }, ]; diff --git a/HomeUI/src/navigation/vertical/index.js b/HomeUI/src/navigation/vertical/index.js index a55fef0c9..e8101b9f5 100644 --- a/HomeUI/src/navigation/vertical/index.js +++ b/HomeUI/src/navigation/vertical/index.js @@ -1,11 +1,7 @@ import dashboard from './dashboard'; -import daemon from './daemon'; -import benchmark from './benchmark'; -import flux from './flux'; import apps from './apps'; import fluxadmin from './fluxadmin'; import xdao from './xdao'; -import marketplace from './marketplace'; export default [ { @@ -13,17 +9,8 @@ export default [ route: 'home', icon: 'home', }, - { - title: 'Explorer', - route: 'explorer', - icon: 'search', - }, ...dashboard, - ...daemon, - ...benchmark, - ...flux, ...apps, - ...marketplace, - ...fluxadmin, ...xdao, + ...fluxadmin, ]; diff --git a/HomeUI/src/navigation/vertical/index_collapsed.js b/HomeUI/src/navigation/vertical/index_collapsed.js index 7d29d934e..7806f8dac 100644 --- a/HomeUI/src/navigation/vertical/index_collapsed.js +++ b/HomeUI/src/navigation/vertical/index_collapsed.js @@ -1,9 +1,5 @@ import collapsedDashboard from './dashboard_collapsed'; -import collapsedDaemon from './daemon_collapsed'; -import collapsedBenchmark from './benchmark_collapsed'; -import collapsedFlux from './flux_collapsed'; import collapsedApps from './apps_collapsed'; -import collapsedMarketplace from './marketplace_collapsed'; import collapsedFluxadmin from './fluxadmin_collapsed'; import collapsedXdao from './xdao_collapsed'; @@ -13,17 +9,8 @@ export default [ route: 'home', icon: 'home', }, - { - title: 'Explorer', - route: 'explorer', - icon: 'search', - }, ...collapsedDashboard, - ...collapsedDaemon, - ...collapsedBenchmark, - ...collapsedFlux, ...collapsedApps, - ...collapsedMarketplace, - ...collapsedFluxadmin, ...collapsedXdao, + ...collapsedFluxadmin, ]; diff --git a/HomeUI/src/router/index.js b/HomeUI/src/router/index.js index d1ce4ff6a..a15ee89d2 100644 --- a/HomeUI/src/router/index.js +++ b/HomeUI/src/router/index.js @@ -44,6 +44,9 @@ const router = new VueRouter({ meta: { pageTitle: 'Explorer', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Explorer', active: true, diff --git a/HomeUI/src/router/routes/apps/apps.js b/HomeUI/src/router/routes/apps/apps.js index a2463032d..d39ffd1d2 100644 --- a/HomeUI/src/router/routes/apps/apps.js +++ b/HomeUI/src/router/routes/apps/apps.js @@ -2,17 +2,17 @@ import { categories } from '../../../libs/marketplaceCategories'; export default [ { - path: '/apps/localapps', - name: 'apps-localapps', - component: () => import('@/views/apps/LocalApps.vue'), + path: '/apps/myapps', + name: 'apps-myapps', + component: () => import('@/views/apps/MyApps.vue'), meta: { - pageTitle: 'Local Apps', + pageTitle: 'Applications', breadcrumb: [ { - text: 'Apps', + text: 'Applications', }, { - text: 'Local Apps', + text: 'Management', active: true, }, ], @@ -23,10 +23,10 @@ export default [ name: 'apps-globalapps', component: () => import('@/views/apps/GlobalApps.vue'), meta: { - pageTitle: 'Global Apps', + pageTitle: 'Applications', breadcrumb: [ { - text: 'Apps', + text: 'Applications', }, { text: 'Global Apps', @@ -40,13 +40,13 @@ export default [ name: 'apps-registerapp', component: () => import('@/views/apps/RegisterFluxApp.vue'), meta: { - pageTitle: 'Register Flux App', + pageTitle: 'Register New App', breadcrumb: [ { - text: 'Apps', + text: 'Applications', }, { - text: 'Register Flux App', + text: 'Register New App', active: true, }, ], @@ -86,22 +86,4 @@ export default [ navActiveLink: 'apps-marketplace', }, }, - { - path: '/apps/fluxsharestorage', - name: 'apps-fluxsharestorage', - component: () => import('@/views/apps/MyFluxShare.vue'), - meta: { - pageTitle: 'My FluxShare Storage', - breadcrumb: [ - { - text: 'Apps', - }, - { - text: 'My FluxShare Storage', - active: true, - }, - ], - privilege: ['admin'], - }, - }, ]; diff --git a/HomeUI/src/router/routes/benchmark/benchmark.js b/HomeUI/src/router/routes/benchmark/benchmark.js index b6ad01663..416ab7bed 100644 --- a/HomeUI/src/router/routes/benchmark/benchmark.js +++ b/HomeUI/src/router/routes/benchmark/benchmark.js @@ -13,6 +13,9 @@ export default [ meta: { pageTitle: 'Debug', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Benchmark', }, diff --git a/HomeUI/src/router/routes/benchmark/benchmarks.js b/HomeUI/src/router/routes/benchmark/benchmarks.js index 1aeea49a3..9a0525567 100644 --- a/HomeUI/src/router/routes/benchmark/benchmarks.js +++ b/HomeUI/src/router/routes/benchmark/benchmarks.js @@ -6,6 +6,9 @@ export default [ meta: { pageTitle: 'Get Status', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Benchmark', }, @@ -26,6 +29,9 @@ export default [ meta: { pageTitle: 'Restart Node Benchmarks', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Benchmark', }, @@ -47,6 +53,9 @@ export default [ meta: { pageTitle: 'Sign FluxNode Transaction', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Benchmark', }, diff --git a/HomeUI/src/router/routes/benchmark/control.js b/HomeUI/src/router/routes/benchmark/control.js index 0a5f0c784..b7b3a9c81 100644 --- a/HomeUI/src/router/routes/benchmark/control.js +++ b/HomeUI/src/router/routes/benchmark/control.js @@ -6,6 +6,9 @@ export default [ meta: { pageTitle: 'Help', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Benchmark', }, @@ -26,6 +29,9 @@ export default [ meta: { pageTitle: 'Start', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Benchmark', }, @@ -47,6 +53,9 @@ export default [ meta: { pageTitle: 'Stop', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Benchmark', }, @@ -68,6 +77,9 @@ export default [ meta: { pageTitle: 'Restart', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Benchmark', }, diff --git a/HomeUI/src/router/routes/benchmark/fluxnode.js b/HomeUI/src/router/routes/benchmark/fluxnode.js index 8b1ff05d0..e68d0702b 100644 --- a/HomeUI/src/router/routes/benchmark/fluxnode.js +++ b/HomeUI/src/router/routes/benchmark/fluxnode.js @@ -6,6 +6,9 @@ export default [ meta: { pageTitle: 'Get Benchmarks', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Benchmark', }, @@ -26,6 +29,9 @@ export default [ meta: { pageTitle: 'Get Info', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Benchmark', }, diff --git a/HomeUI/src/router/routes/daemon/benchmarks.js b/HomeUI/src/router/routes/daemon/benchmarks.js index ca9740029..ec3cd8daa 100644 --- a/HomeUI/src/router/routes/daemon/benchmarks.js +++ b/HomeUI/src/router/routes/daemon/benchmarks.js @@ -6,6 +6,9 @@ export default [ meta: { pageTitle: 'Get Benchmarks', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Daemon', }, @@ -26,6 +29,9 @@ export default [ meta: { pageTitle: 'Get Bench Status', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Daemon', }, @@ -46,6 +52,9 @@ export default [ meta: { pageTitle: 'Start Benchmark', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Daemon', }, @@ -67,6 +76,9 @@ export default [ meta: { pageTitle: 'Stop Benchmark', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Daemon', }, diff --git a/HomeUI/src/router/routes/daemon/blockchain.js b/HomeUI/src/router/routes/daemon/blockchain.js index 37fbeb45a..98c3996e9 100644 --- a/HomeUI/src/router/routes/daemon/blockchain.js +++ b/HomeUI/src/router/routes/daemon/blockchain.js @@ -6,6 +6,9 @@ export default [ meta: { pageTitle: 'Get Blockchain Info', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Daemon', }, diff --git a/HomeUI/src/router/routes/daemon/control.js b/HomeUI/src/router/routes/daemon/control.js index a31b6a791..9d416d2ca 100644 --- a/HomeUI/src/router/routes/daemon/control.js +++ b/HomeUI/src/router/routes/daemon/control.js @@ -6,6 +6,9 @@ export default [ meta: { pageTitle: 'Get Info', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Daemon', }, @@ -26,6 +29,9 @@ export default [ meta: { pageTitle: 'Help', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Daemon', }, @@ -46,6 +52,9 @@ export default [ meta: { pageTitle: 'Rescan Blockchain', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Daemon', }, @@ -67,6 +76,9 @@ export default [ meta: { pageTitle: 'Reindex Blockchain', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Daemon', }, @@ -88,6 +100,9 @@ export default [ meta: { pageTitle: 'Start', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Daemon', }, @@ -109,6 +124,9 @@ export default [ meta: { pageTitle: 'Stop', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Daemon', }, @@ -130,6 +148,9 @@ export default [ meta: { pageTitle: 'Restart', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Daemon', }, diff --git a/HomeUI/src/router/routes/daemon/daemon.js b/HomeUI/src/router/routes/daemon/daemon.js index 7aec98f7d..bfa6c4dc6 100644 --- a/HomeUI/src/router/routes/daemon/daemon.js +++ b/HomeUI/src/router/routes/daemon/daemon.js @@ -25,6 +25,9 @@ export default [ meta: { pageTitle: 'Debug', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Daemon', }, diff --git a/HomeUI/src/router/routes/daemon/fluxnode.js b/HomeUI/src/router/routes/daemon/fluxnode.js index 29a807857..f79fe5c12 100644 --- a/HomeUI/src/router/routes/daemon/fluxnode.js +++ b/HomeUI/src/router/routes/daemon/fluxnode.js @@ -6,6 +6,9 @@ export default [ meta: { pageTitle: 'Node Status', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Daemon', }, @@ -26,6 +29,9 @@ export default [ meta: { pageTitle: 'List FluxNodes', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Daemon', }, @@ -46,6 +52,9 @@ export default [ meta: { pageTitle: 'View Deterministic FluxNodes', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Daemon', }, @@ -66,6 +75,9 @@ export default [ meta: { pageTitle: 'Get FluxNode Count', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Daemon', }, @@ -86,6 +98,9 @@ export default [ meta: { pageTitle: 'Get Start List', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Daemon', }, @@ -106,6 +121,9 @@ export default [ meta: { pageTitle: 'Get DOS List', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Daemon', }, @@ -126,6 +144,9 @@ export default [ meta: { pageTitle: 'Current Winner', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Daemon', }, diff --git a/HomeUI/src/router/routes/daemon/mining.js b/HomeUI/src/router/routes/daemon/mining.js index c9e2dada3..54ab0f42d 100644 --- a/HomeUI/src/router/routes/daemon/mining.js +++ b/HomeUI/src/router/routes/daemon/mining.js @@ -6,6 +6,9 @@ export default [ meta: { pageTitle: 'Get Mining Info', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Daemon', }, diff --git a/HomeUI/src/router/routes/daemon/network.js b/HomeUI/src/router/routes/daemon/network.js index cf9373a7f..226cfaf1a 100644 --- a/HomeUI/src/router/routes/daemon/network.js +++ b/HomeUI/src/router/routes/daemon/network.js @@ -6,6 +6,9 @@ export default [ meta: { pageTitle: 'Get Network Info', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Daemon', }, diff --git a/HomeUI/src/router/routes/daemon/transactions.js b/HomeUI/src/router/routes/daemon/transactions.js index e1b25ef43..69ae38bf6 100644 --- a/HomeUI/src/router/routes/daemon/transactions.js +++ b/HomeUI/src/router/routes/daemon/transactions.js @@ -6,6 +6,9 @@ export default [ meta: { pageTitle: 'Get Raw Transaction', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Daemon', }, diff --git a/HomeUI/src/router/routes/daemon/util.js b/HomeUI/src/router/routes/daemon/util.js index 083818553..dac0069cb 100644 --- a/HomeUI/src/router/routes/daemon/util.js +++ b/HomeUI/src/router/routes/daemon/util.js @@ -6,6 +6,9 @@ export default [ meta: { pageTitle: 'Validate Address', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Daemon', }, diff --git a/HomeUI/src/router/routes/daemon/wallet.js b/HomeUI/src/router/routes/daemon/wallet.js index 9243d34ea..f018841ef 100644 --- a/HomeUI/src/router/routes/daemon/wallet.js +++ b/HomeUI/src/router/routes/daemon/wallet.js @@ -6,6 +6,9 @@ export default [ meta: { pageTitle: 'Get Wallet Info', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Daemon', }, diff --git a/HomeUI/src/router/routes/flux/flux.js b/HomeUI/src/router/routes/flux/flux.js index 6cb31eea2..2616ea9a7 100644 --- a/HomeUI/src/router/routes/flux/flux.js +++ b/HomeUI/src/router/routes/flux/flux.js @@ -6,6 +6,9 @@ export default [ meta: { pageTitle: 'Node Status', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Flux', }, @@ -23,6 +26,9 @@ export default [ meta: { pageTitle: 'Flux Network', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Flux', }, @@ -40,6 +46,9 @@ export default [ meta: { pageTitle: 'Debug', breadcrumb: [ + { + text: 'Administration', + }, { text: 'Flux', }, diff --git a/HomeUI/src/router/routes/fluxadmin/fluxadmin.js b/HomeUI/src/router/routes/fluxadmin/fluxadmin.js index 8df9c2f52..8d6e3dda3 100644 --- a/HomeUI/src/router/routes/fluxadmin/fluxadmin.js +++ b/HomeUI/src/router/routes/fluxadmin/fluxadmin.js @@ -1,4 +1,21 @@ export default [ + { + path: '/apps/localapps', + name: 'apps-localapps', + component: () => import('@/views/apps/LocalApps.vue'), + meta: { + pageTitle: 'Local Apps', + breadcrumb: [ + { + text: 'Administration', + }, + { + text: 'Local Apps', + active: true, + }, + ], + }, + }, { path: '/fluxadmin/loggedsessions', name: 'fluxadmin-loggedsessions', @@ -7,7 +24,7 @@ export default [ pageTitle: 'Logged Sessions', breadcrumb: [ { - text: 'Flux Admin', + text: 'Administration', }, { text: 'Logged Sessions', @@ -25,7 +42,7 @@ export default [ pageTitle: 'Manage Flux', breadcrumb: [ { - text: 'Flux Admin', + text: 'Administration', }, { text: 'Manage Flux', @@ -43,7 +60,7 @@ export default [ pageTitle: 'Manage Daemon', breadcrumb: [ { - text: 'Flux Admin', + text: 'Administration', }, { text: 'Manage Daemon', @@ -61,7 +78,7 @@ export default [ pageTitle: 'Manage Benchmark', breadcrumb: [ { - text: 'Flux Admin', + text: 'Administration', }, { text: 'Manage Benchmark', @@ -79,7 +96,7 @@ export default [ pageTitle: 'Manage Users', breadcrumb: [ { - text: 'Flux Admin', + text: 'Administration', }, { text: 'Manage Users', @@ -89,4 +106,22 @@ export default [ privilege: ['admin', 'fluxteam'], }, }, + { + path: '/apps/fluxsharestorage', + name: 'apps-fluxsharestorage', + component: () => import('@/views/apps/MyFluxShare.vue'), + meta: { + pageTitle: 'My FluxShare Storage', + breadcrumb: [ + { + text: 'Administration', + }, + { + text: 'My FluxShare Storage', + active: true, + }, + ], + privilege: ['admin'], + }, + }, ]; diff --git a/HomeUI/src/views/Home.vue b/HomeUI/src/views/Home.vue index 89d5009a0..76099d2d0 100644 --- a/HomeUI/src/views/Home.vue +++ b/HomeUI/src/views/Home.vue @@ -1,39 +1,21 @@