From 17ee54c90200e7c8afe037aed0dbcd2f43ce0e56 Mon Sep 17 00:00:00 2001 From: Zack Spear Date: Wed, 27 Jul 2022 16:47:02 -0400 Subject: [PATCH] fix(upc): v1.4.2 apiVersion check regression --- plugins/dynamix.my.servers/webComps/unraid.min.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/dynamix.my.servers/webComps/unraid.min.js b/plugins/dynamix.my.servers/webComps/unraid.min.js index 3df1b5e21..16f7f6b8a 100644 --- a/plugins/dynamix.my.servers/webComps/unraid.min.js +++ b/plugins/dynamix.my.servers/webComps/unraid.min.js @@ -1,5 +1,5 @@ /*! UPC -* vuejs-regwiz v1.3.0 +* vuejs-regwiz v1.4.2 * Licenses @ licenses.txt * * Unraid is a registered trademark of Lime Technology, Inc. @@ -85,7 +85,7 @@ function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:r});else ${Ct()(e.state.apiVersion,"2.27.0")?"configValid":""} } ${At()(e.state.apiVersion,"2.27.0")?"config { error valid }":""} - ${Ge()(e.state.apiVersion,"2.41.1")?"\n cloud {\n error\n apiKey {\n valid\n error\n }\n relay {\n status\n error\n }\n mothership {\n status\n error\n }\n }":""} + ${Ge()(e.state.apiVersion,"2.41.1")?`\n cloud {\n error\n apiKey {\n valid\n error\n }\n relay {\n status\n error\n }\n ${Ge()(e.state.apiVersion,"2.48.0")?"cloud { status error }":"mothership { status error }"}\n }`:""} }`,r=await In(e).query({errorPolicy:"all",query:t});return Fe.debug("[🪐 serverStateFromApi] response %o",r,e),Ge()(e.state.apiVersion,"2.41.1")&&e.state.cloud&&e.state.cloud.error&&e.commit("SET_MY_SERVERS_ERROR_SHOW_SUPPORT_BTN",!0),e.commit("SET_MY_SERVERS_LOADING",!1),e.commit("SET_FULL_SERVER_STATE",((e,t)=>{const{data:r}=t;if(!r)return Fe.error("[🪐 serverStateFromApi] response %o",t);const n={...r.owner&&"root"!==r.owner.username&&{avatar:r.owner.avatar,username:r.owner.username,registered:!0},...e.state.signOutTriggered&&{username:"",avatar:"",registered:!1},servername:r.info&&r.info.os?r.info.os.hostname:null,guid:r.flash?r.flash.guid:null,keyfile:r.registration&&r.registration.keyFile?r.registration.keyFile.contents:null,flashProduct:r.flash?r.flash.product:null,flashvendor:r.flash?r.flash.vendor:null,sendCrashInfo:r.crashReportingEnabled,reggen:r.vars?r.vars.regGen:null,state:r.vars?r.vars.regState:null,config:r.config?r.config:{error:r.vars?r.vars.configError:null,valid:!r.vars||r.vars.configValid},expiretime:r.registration&&r.registration.expiration?r.registration.expiration:0,...r.cloud&&{cloud:r.cloud}};return Fe.debug("[🪐 serverStateFromApi] mutated response %o",n),n})(e,r)),An(e,r),Fe.debug("[🪐 serverStateFromApi] subscriptions %o",{skip:e.state.graphReconnected}),e.state.graphReconnected||(Fe.debug("[🪐 serverStateFromApi] serverVarsSub"),In(e).subscribe({query:Tt`subscription serverVarsSub { vars { regGen @@ -110,7 +110,7 @@ function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:r});else contents } } - }`}).subscribe({next(t){Fe.debug("[🪐 serverStateFromApi] serverRegistrationSub res %o",t),e.commit("SET_REGISTRATION_SUB",t.data.registration)},error:t=>(e.commit("SET_MY_SERVERS_ERROR",t),e.state.myServersError)}))),Fe.debug("[🪐 serverStateFromApi] DONE %o",r.data),r.data},stopGraphqlClient:(e,t)=>(Fe.debug("[stopGraphqlClient] clients %o",{clients:On,apikey:t}),Object.keys(On).includes(t)?(Fe.debug("[stopGraphqlClient] found existing client & stopping it %o",On[t]),On[t].stop()):Fe.debug("[stopGraphqlClient] client does not exist for apikey %o",t))};o.default.use(b.a),o.default.config.devtools=!0;var di=new b.a.Store({state:_e,getters:Me,mutations:$e,actions:pi});var fi=v({i18n:he,store:di,name:"Authed",props:["propRegistered"],data:()=>({regChanged:!1,popUpClosedTimer:null}),computed:{...Object(b.e)(["state","registered","isPopUpOpen","signOutPayload","wizardWindow"]),...Object(b.c)(["stateData"]),computedReg(){return null===this.registered?!!this.propRegistered:this.registered},buttonPayload(){return this.stateData.error?this.wizardWindow:this.computedReg?this.signOutPayload:this.wizardWindow},buttonText(){return this.stateData.error?this.$t("fixError"):this.isPopUpOpen?this.$t("backToPopUp"):"ENOKEYFILE"===this.state?this.$t("getStarted"):this.computedReg?this.$t("signOut"):this.$t("signIn")},buttonTitle(){return this.$t("upc.opensNewHttpsWindow.base",[this.buttonText])}},watch:{isPopUpOpen(e){!e&&this.regChanged&&(Fe.debug("[REGISTERED CHANGED] 🔥 reload webGUI settings"),window.location.reload())},registered(e,t){null!==t&&e!==this.propRegistered&&(Fe.debug("[REGISTERED CHANGED]",{newVal:e,oldVal:t}),this.regChanged=!0,this.isPopUpOpen||(Fe.debug("[REGISTERED CHANGED] 🔥🔥 reload webGUI settings"),window.location.reload()))}},methods:{...Object(b.b)(["closePopUp","openPopUp"])}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{appear:"",name:"fade",mode:"out-in"}},[r("div",[r("button",{attrs:{type:"button",title:e.buttonTitle},on:{click:function(t){return e.openPopUp(e.buttonPayload)}}},[e._v(e._s(e.buttonText))]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.isPopUpOpen?r("button",{staticClass:"ml-8px",attrs:{type:"button"},on:{click:function(t){return e.closePopUp()}}},[e._v(e._s(e.$t("closePopUp")))]):e._e()])],1)])}),[],!1,(function(e){var t=r("dfd4");t.__inject__&&t.__inject__(e)}),"5e5ba4da",null,!0).exports,hi=(v({name:"keyline",props:{color:{type:String,default:"grey"}},computed:{computedClass(){return"gradient"===this.color?"h-2px bg-gradient-r-red-orange":"h-1px bg-grey"}}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("hr",{staticClass:"w-full shadow-none border-none rounded-none",class:e.computedClass})}),[],!1,null,null,null,!0).exports,function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("svg",{staticClass:"unraid_sc_loader",style:e.styles,attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 133.52 76.97",height:e.height+"px",role:"img"}},[r("title",[e._v(e._s(e.title))]),r("desc",[e._v("Unraid logo animating with a wave like effect")]),r("defs",[r("linearGradient",{attrs:{id:e.random,x1:"23.76",y1:"81.49",x2:"109.76",y2:"-4.51",gradientUnits:"userSpaceOnUse"}},[r("stop",{attrs:{offset:"0","stop-color":e.gradientStart}}),r("stop",{attrs:{offset:"1","stop-color":e.gradientStop}})],1)],1),r("path",{staticClass:"unraid_sc_loader_9",attrs:{d:"m70,19.24zm57,0l6.54,0l0,38.49l-6.54,0l0,-38.49z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_8",attrs:{d:"m70,19.24zm47.65,11.9l-6.55,0l0,-23.79l6.55,0l0,23.79z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_7",attrs:{d:"m70,19.24zm31.77,-4.54l-6.54,0l0,-14.7l6.54,0l0,14.7z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_6",attrs:{d:"m70,19.24zm15.9,11.9l-6.54,0l0,-23.79l6.54,0l0,23.79z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_5",attrs:{d:"m63.49,19.24l6.51,0l0,38.49l-6.51,0l0,-38.49z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_4",attrs:{d:"m70,19.24zm-22.38,26.6l6.54,0l0,23.78l-6.54,0l0,-23.78z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_3",attrs:{d:"m70,19.24zm-38.26,43.03l6.55,0l0,14.73l-6.55,0l0,-14.73z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_2",attrs:{d:"m70,19.24zm-54.13,26.6l6.54,0l0,23.78l-6.54,0l0,-23.78z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_1",attrs:{d:"m70,19.24zm-63.46,38.49l-6.54,0l0,-38.49l6.54,0l0,38.49z",fill:"url(#"+e.random+")"}})])});var mi=v({name:"loading",props:{height:{type:Number,default:64},styles:{type:Object,default:()=>({})},gradientStart:{type:String,default:"#e32929"},gradientStop:{type:String,default:"#ff8d30"},title:{type:String,default:"Loading"}},data:()=>({random:Math.random().toString(36).substring(7)})},hi,[],!1,(function(e){var t=r("ef7a");t.__inject__&&t.__inject__(e)}),null,null,!0).exports,gi=(v({name:"logo",props:{gradientStart:{type:String,default:"#e32929"},gradientStop:{type:String,default:"#ff8d30"}},data:()=>({random:Math.random().toString(36).substring(7)})},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 222.36 39.04"}},[r("defs",[r("linearGradient",{attrs:{id:e.random,x1:"47.53",y1:"79.1",x2:"170.71",y2:"-44.08",gradientUnits:"userSpaceOnUse"}},[r("stop",{attrs:{offset:"0","stop-color":e.gradientStart}}),r("stop",{attrs:{offset:"1","stop-color":e.gradientStop}})],1)],1),r("title",[e._v("Unraid Logo")]),r("path",{attrs:{d:"M146.7,29.47H135l-3,9h-6.49L138.93,0h8l13.41,38.49h-7.09L142.62,6.93l-5.83,16.88h8ZM29.69,0V25.4c0,8.91-5.77,13.64-14.9,13.64S0,34.31,0,25.4V0H6.54V25.4c0,5.17,3.19,7.92,8.25,7.92s8.36-2.75,8.36-7.92V0ZM50.86,12v26.5H44.31V0h6.11l17,26.5V0H74V38.49H67.9ZM171.29,0h6.54V38.49h-6.54Zm51.07,24.69c0,9-5.88,13.8-15.17,13.8H192.67V0H207.3c9.18,0,15.06,4.78,15.06,13.8ZM215.82,13.8c0-5.28-3.3-8.14-8.52-8.14h-8.08V32.77h8c5.33,0,8.63-2.8,8.63-8.08ZM108.31,23.92c4.34-1.6,6.93-5.28,6.93-11.55C115.24,3.68,110.18,0,102.48,0H88.84V38.49h6.55V5.66h6.87c3.8,0,6.21,1.82,6.21,6.71s-2.41,6.76-6.21,6.76H98.88l9.21,19.36h7.53Z",fill:"url(#"+e.random+")"}})])}),[],!1,null,null,null,!0).exports,function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 133.52 76.97"}},[r("title",[e._v("unraid-mark")]),r("defs",[r("linearGradient",{attrs:{id:e.random,x1:"23.76",y1:"81.49",x2:"109.76",y2:"-4.51",gradientUnits:"userSpaceOnUse"}},[r("stop",{attrs:{offset:"0","stop-color":e.gradientStart}}),r("stop",{attrs:{offset:"1","stop-color":e.gradientStop}})],1)],1),r("path",{attrs:{fill:"url(#"+e.random+")",d:"M63.49,19.24H70V57.73H63.49ZM6.54,57.73H0V19.24H6.54Zm25.2,4.54h6.55V77H31.74ZM15.87,45.84h6.54V69.62H15.87Zm31.75,0h6.54V69.62H47.62ZM127,19.24h6.54V57.73H127ZM101.77,14.7H95.23V0h6.54Zm15.88,16.44H111.1V7.35h6.55Zm-31.75,0H79.36V7.35H85.9Z"}})])}),vi=v({name:"logo",props:{gradientStart:{type:String,default:"#e32929"},gradientStop:{type:String,default:"#ff8d30"}},data:()=>({random:Math.random().toString(36).substring(7)})},gi,[],!1,null,null,null,!0).exports,bi=r("5d74"),yi=r.n(bi);o.default.use(yi.a,{url:(Object({VUE_APP_REGWIZ_URL:"https://registration.unraid.net",VUE_APP_PURCHASE_URL:"https://unraid.net/preflight",VUE_APP_MIN_API_VER:"2.37.1",VUE_APP_REC_API_VER:"2.47.1",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_SPRITE_URL_PREFIX?Object({VUE_APP_REGWIZ_URL:"https://registration.unraid.net",VUE_APP_PURCHASE_URL:"https://unraid.net/preflight",VUE_APP_MIN_API_VER:"2.37.1",VUE_APP_REC_API_VER:"2.47.1",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_SPRITE_URL_PREFIX:"")+"/assets/svg/sprite.svg",class:"svg-icon"});var wi=(v({name:"svg-icon",props:{symbol:{type:String,required:!0},symbolClass:String}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("svg",{directives:[{name:"svg",rawName:"v-svg"}],staticClass:"unraid-svg-icon",class:e.symbolClass,attrs:{symbol:e.symbol,title:e.symbol,role:"presentation"}})}),[],!1,(function(e){var t=r("39a1");t.__inject__&&t.__inject__(e)}),"3b60bb54",null,!0).exports,function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"text-center w-full"},[r("header",[r("h2",{staticClass:"text-24px md:text-30px"},[r("span",{domProps:{innerHTML:e._s(e.computedHeading)}}),e.showTrialWelcome?r("ui-beta",{staticClass:"title-beta relative ml-4px"}):e._e()],1),r("div",{staticClass:"text-14px opacity-90 mt-12px mx-auto prose",class:{"text-center":e.stateData.messageCenter||e.showTrialWelcome,"text-left":!e.stateData.messageCenter}},[r("div",{domProps:{innerHTML:e._s(e.computedSubheading)}}),e.showExpiretime?r("HelperTimeConvert",{staticClass:"italic text-center font-semibold mt-16px"}):e._e()],1)]),r("div",{staticClass:"ActionRequired flex flex-col justify-center mt-16px"},[e.isPopUpOpen?[r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{text:e.$t("backToPopUp")},on:{"btn-click":function(t){return e.openPopUp(e.signInPayload)}}}),r("UiButton",{staticClass:"button-fine-error text-grey-mid w-full mt-8px",attrs:{text:e.$t("closePopUp")},on:{"btn-click":function(t){return e.closePopUp()}}})]:[e.hideMyServers&&!e.apiVersion||!e.stateData.actions.includes("register")?e._e():[r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"SignIn":null,text:e.$t("signIn")},on:{"btn-click":function(t){return e.openPopUp(e.signInPayload)}}}),e.guidRegistered||e.forumaccount?e._e():r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"SignUp":null,text:e.$t("signUp")},on:{"btn-click":function(t){return e.openPopUp(e.signUpPayload)}}})],"TRIAL"===e.state&&e.hideMyServers&&!e.CAN_POST_MESSAGE?r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{text:e.$t("upc.enhanceYourExperienceWithMyServers")},on:{"btn-click":function(t){return e.togglePromo()}}}):e._e(),e.stateData.actions.includes("startTrial")&&!e.CAN_POST_MESSAGE?r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{text:e.$t("actions.startTrial")},on:{"btn-click":function(t){return e.startTrial()}}}):e._e(),e.hidePurchaseButtons?e._e():[e.stateData.actions.includes("purchase")?r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{hrefUrl:e.CAN_POST_MESSAGE?e.purchaseWindow.url:null,text:e.$t("actions.purchase")},on:{"btn-click":function(t){return e.openPopUp(e.purchaseWindow)}}}):e._e(),e.stateData.actions.includes("purchase")?r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{hrefUrl:e.CAN_POST_MESSAGE?e.redeemWindow.url:null,text:"Redeem Activation Code"},on:{"btn-click":function(t){return e.openPopUp(e.redeemWindow)}}}):e._e(),e.stateData.actions.includes("upgrade")?r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{hrefUrl:e.CAN_POST_MESSAGE?e.purchaseWindow.url:null,text:e.$t("actions.upgrade")},on:{"btn-click":function(t){return e.openPopUp(e.purchaseWindow)}}}):e._e()],e.stateData.actions.includes("replace")&&e.replaceable?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"ReplaceKey":null,text:e.$t("actions.replace")},on:{"btn-click":function(t){return e.openPopUp(e.replaceKeyPayload)}}}):e._e(),e.stateData.actions.includes("replace")&&!e.replaceable?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{text:e.$t("actions.replaceIneligible"),title:e.$t("stateData.EGUID.error.message.replacementIneligible"),disabled:""},on:{"btn-click":function(t){return e.niceTry()}}}):e._e(),e.stateData.actions.includes("recover")?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"RecoverKey":null,text:e.$t("actions.recover")},on:{"btn-click":function(t){return e.openPopUp(e.recoverKeyPayload)}}}):e._e(),e.stateData.actions.includes("continueTrial")?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{text:e.$t("regWizPopUp.continueTrial")},on:{"btn-click":function(t){e.CAN_POST_MESSAGE?e.closePopUpFromPopUp():e.SET_IS_LAUNCHPAD_OPEN(!1)}}}):e._e(),e.stateData.actions.includes("extend")?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"ExtendTrial":null,text:e.$t("actions.extend")},on:{"btn-click":function(t){return e.openPopUp(e.extendTrialPayload)}}}):e._e(),e.stateData.actions.includes("close")?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{text:e.$t("continueToUnraid")},on:{"btn-click":function(t){e.CAN_POST_MESSAGE?e.closePopUpFromPopUp():e.SET_IS_LAUNCHPAD_OPEN(!1)}}}):e._e(),e.stateData.actions.includes("signOut")&&e.CAN_POST_MESSAGE?r("UiButton",{staticClass:"button-fine-error text-grey-mid w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"SignOut":null,text:e.$t("signOut")},on:{"btn-click":function(t){return e.openPopUp(e.signOutPayload)}}}):e._e()]],2)])}),xi=r("5a0c"),_i=r.n(xi);const Ei=(e,t,r,n,i,o,a)=>({years:e,months:t,days:r,hours:n,minutes:i,seconds:o,firstDateWasLater:a});var Si=(e,t,r)=>{let n,i=_i()(e),o=_i()(t);if(i.isSame(o))return r?Ei(0,0,0,0,0,0,!1):"";if(i.isAfter(o)){const e=i;i=o,o=e,n=!0}else n=!1;let a=o.year()-i.year(),s=o.month()-i.month(),c=o.date()-i.date(),l=o.hour()-i.hour(),u=o.minute()-i.minute(),p=o.second()-i.second();if(p<0&&(p=60+p,u-=1),u<0&&(u=60+u,l-=1),l<0&&(l=24+l,c-=1),c<0){const e=_i()(`${o.year()}-${o.month()+1}`).subtract(1,"M").daysInMonth();c=e{const r=e?_i()(parseInt(e,10)):_i()(),n=t?_i()(parseInt(t,10)):_i()();return Si(r,n,!0)};var Oi=(e,t)=>t?ki(e,""):ki("",e),Ti=r("23ad"),Ii=r.n(Ti);r("e072"),r("6210"),r("e5b7");const Ai=document.getElementsByTagName("unraid-user-profile")[0];if(Ai){const e=Ai.getAttribute("locale").slice(0,2);_i.a.locale(e),Fe.debug("[formatDate] dayjs.locale()",_i.a.locale())}_i.a.extend(Ii.a);var Ri=e=>_i()(parseInt(e,10)).format("llll"),Ci=v({data:()=>({parsedUptime:"",parsedExpireTime:""}),computed:{...Object(b.c)(["showExpiretime"]),...Object(b.e)(["state","expiretime","uptime"]),formattedUptime(){return Ri(this.uptime)},formattedExpireTime(){return Ri(this.expiretime)},timeCopy(){return this.showExpiretime?{title:"EEXPIRED"===this.state?this.$t("upc.meta.trial.expired.date",{date:this.formattedExpireTime}):this.$t("upc.meta.trial.active.date",{date:this.formattedExpireTime}),text:"EEXPIRED"===this.state?this.$t("upc.meta.trial.expired.timeDiff",{timeDiff:this.parsedExpireTime}):this.$t("upc.meta.trial.active.timeDiff",{timeDiff:this.parsedExpireTime})}:{title:this.$t("upc.meta.uptime.date",{date:this.formattedUptime}),text:this.$t("upc.meta.uptime.readable",{timeDiff:this.parsedUptime})}}},methods:{buildStringFromValues({years:e,months:t,days:r,hours:n,minutes:i,seconds:o,firstDateWasLater:a,displaySecondsInStringReturn:s}){const c=[],l={year:this.$t("year"),years:this.$t("years"),month:this.$t("month"),months:this.$t("months"),day:this.$t("day"),days:this.$t("days"),hour:this.$t("hour"),hours:this.$t("hours"),minute:this.$t("minute"),minutes:this.$t("minutes"),second:this.$t("second"),seconds:this.$t("seconds"),firstDateWasLater:this.$t("ago"),delimiter:" "},u=(e,t)=>`${e} ${l[t+(1===e?"":"s")]}`;return e&&c.push(u(e,"year")),t&&c.push(u(t,"month")),r&&c.push(u(r,"day")),n&&c.push(u(n,"hour")),i&&c.push(u(i,"minute")),!o||(e||t||r||n||i)&&!s||c.push(u(o,"second")),a&&c.push(l.firstDateWasLater),c.join(l.delimiter)},runTimeDiff(){this.uptime&&(this.parsedUptime=this.buildStringFromValues(Oi(this.uptime,!0))),this.expiretime&&(this.parsedExpireTime=this.buildStringFromValues(Oi(this.expiretime,!1)))},letsGo(){this.runTimeDiff(),this.interval=setInterval(()=>{this.runTimeDiff()},1e3)}},created(){this.letsGo()},beforeDestroy(){clearInterval(this.interval)}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("p",{staticClass:"select-all",attrs:{title:e.timeCopy.title}},[e._v(e._s(e.timeCopy.text))])}),[],!1,null,null,null,!0).exports,Pi=v({props:{hrefUrl:{type:[Boolean,URL],default:!1},routeName:{type:String},text:{type:String,required:!0}},computed:{}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.routeName?r("router-link",{attrs:{to:{name:e.routeName}}},[e._v(e._s(e.text))]):e.hrefUrl?r("a",{attrs:{href:e.hrefUrl}},[e._v(e._s(e.text))]):r("button",{on:{click:function(t){return e.$emit("btn-click")}}},[e._v(e._s(e.text))])}),[],!1,null,null,null,!0).exports,Ni=v({props:{colorClasses:{type:String,default:"text-grey-mid border-grey-mid"}}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("span",{staticClass:"text-10px uppercase py-4px px-6px border-2 rounded-full",class:e.colorClasses},[e._v(e._s(e.$t("upc.myServers.beta")))])}),[],!1,null,null,null,!0).exports;var Mi=v({components:{HelperTimeConvert:Ci,UiButton:Pi,UiBeta:Ni},props:{hidePurchaseButtons:{type:Boolean,default:!1}},data:()=>({CAN_POST_MESSAGE:Oe}),computed:{...Object(b.c)(["stateData","showExpiretime"]),...Object(b.e)(["apiVersion","extendTrialPayload","forumaccount","guidBlacklisted","guidRegistered","hideMyServers","isPopUpOpen","messages","purchaseWindow","recoverKeyPayload","redeemWindow","registered","replaceable","replaceKeyPayload","signInPayload","signOutPayload","signUpPayload","state","wizardWindow"]),showTrialWelcome(){return this.hidePurchaseButtons&&"ENOKEYFILE"!==this.state&&!this.state.error&&!this.hideMyServers&&!this.registered},computedHeading(){return this.showTrialWelcome?this.$t("upc.thankYouForInstallingMyServers"):this.stateData.heading?this.stateData.heading:this.stateData.error.heading},computedSubheading(){return this.showTrialWelcome?this.$t("upc.connectYourUnraidnetAccountToGetStarted"):this.stateData.message?this.stateData.message:this.stateData.error.message}},methods:{...Object(b.b)(["openPopUp","closePopUp","closePopUpFromPopUp","startTrial","togglePromo"]),...Object(b.d)(["SET_IS_LAUNCHPAD_OPEN"]),niceTry(){alert("❌ Nice try you little sneak ❌")}}},wi,[],!1,(function(e){var t=r("2251");t.__inject__&&t.__inject__(e)}),null,null,!0).exports;var Di=v({i18n:he,store:di,name:"Launchpad",props:["serverstate","webguiTranslations"],components:{UnraidLoading:mi,LaunchpadActionRequired:Mi},computed:{...Object(b.e)(["errorMessage","guid","hideMyServers","isLaunchpadOpen","isPopUpOpen","loading","registered"]),...Object(b.c)(["server"])},methods:{...Object(b.b)(["closePopUp","setStateFromWebComponentProp","validateGuid"]),...Object(b.d)(["SET_IS_LAUNCHPAD_OPEN"])},watch:{signedOutWithKey(e,t){e&&!t&&this.validateGuid()},isPopUpOpen(e,t){!e&&t&&this.registered&&this.SET_IS_LAUNCHPAD_OPEN(!1)}},created(){if(this.serverstate&&this.setStateFromWebComponentProp(this.serverstate),this.guid)this.validateGuid();else{const e=setInterval(()=>{this.guid&&(clearInterval(e),this.validateGuid())},250)}}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{appear:"",name:"fade",mode:"in-out"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isLaunchpadOpen,expression:"isLaunchpadOpen"}],staticClass:"fixed inset-0 z-10 flex flex-col justify-start items-end mt-90px"},[r("transition",{attrs:{appear:"",name:"fade",mode:"in-out"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isLaunchpadOpen,expression:"isLaunchpadOpen"}],staticClass:"absolute inset-0 z-0 bg-beta opacity-70 cursor-pointer",attrs:{title:e.$t("closeLaunchpad")},on:{click:function(t){return e.SET_IS_LAUNCHPAD_OPEN(!1)}}})]),r("transition",{attrs:{appear:"",name:"slideVerticalFade",mode:"in-out"}},[r("main",{directives:[{name:"show",rawName:"v-show",value:e.isLaunchpadOpen,expression:"isLaunchpadOpen"}],staticClass:"TopBlip text-beta bg-alpha border-grey-darkest text-center relative z-10 w-full max-w-4xl mr-8px p-24px md:p-32px lg:px-40px shadow-md rounded-lg"},[e.loading?[r("UnraidLoading",{staticClass:"mx-auto",attrs:{height:64}}),"string"==typeof e.loading?r("h3",{staticClass:"text-20px italic mt-8px mb-0"},[e._v(e._s(e.loading))]):e._e()]:[r("LaunchpadActionRequired",{attrs:{hidePurchaseButtons:!e.hideMyServers&&!e.registered}}),e.errorMessage?r("p",{staticClass:"text-red font-semibold italic mt-16px mb-0",domProps:{innerHTML:e._s(e.errorMessage)}}):e._e()]],2)])],1)])}),[],!1,(function(e){var t=r("f153");t.__inject__&&t.__inject__(e)}),null,null,!0).exports,Ui=r("99c0"),Li=r.n(Ui),ji=r("9f96"),Fi=r.n(ji),$i=r("56c3"),Vi=r.n($i),Gi=r("381c"),zi=r.n(Gi),Bi=r("6788"),Wi=r.n(Bi),Hi=v({name:"Feature",props:["title","copy","svg","center"]},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"text-left relative flex overflow-hidden p-8px",class:{"w-full sm:w-1/2":!e.center,"max-w-640px":e.center}},[e.center?e._e():r("span",{staticClass:"flex-shrink-0"},[e._t("default")],2),r("div",{staticClass:"inline-flex flex-col pl-4 mr-4",class:{"text-center":e.center}},[r("h3",{staticClass:"font-semibold",class:{"mt-0 mb-4px":e.copy,"my-0":!e.copy,"flex flex-row justify-center items-center":e.center}},[e.center?r("span",{staticClass:"flex-shrink-0 mr-8px"},[e._t("default")],2):e._e(),e._v(" "+e._s(e.title)+" ")]),e.copy?r("p",{staticClass:"opacity-90 py-0",class:{"px-8px":e.center},domProps:{innerHTML:e._s(e.copy)}}):e._e()])])}),[],!1,null,null,null,!0).exports;var qi=v({i18n:he,store:di,name:"Promo",components:{Feature:Hi,UnraidSvgUiRemoteAccess:Li.a,UnraidSvgUiDiagnostics:Fi.a,UnraidSvgUiUsb:Vi.a,UnraidSvgUiKey:zi.a,UnraidSvgUtilStar:Wi.a},computed:{...Object(b.e)(["isPromoOpen","devEnv"]),...Object(b.c)(["features"]),heading(){return this.$t("promoHeading").replace("(BETA)",`${he.tc("upc.myServers.beta")}`)}},methods:{...Object(b.d)(["SET_IS_PROMO_OPEN"]),installMyServers(e=""){try{const t="https://s3.amazonaws.com/dnld.lime-technology.com/unraid-api/"+(e||"dynamix.unraid.net.plg");Fe.debug("[installMyServers] %s",t),sessionStorage.setItem("clickedInstallMyServers",Date.now()),this.SET_IS_PROMO_OPEN(!1),"function"==typeof openPlugin?(Fe.debug("[installMyServers] using openPlugin %s",t),openPlugin("plugin install "+t,this.$t("upc.installingMyServers"),"","refresh")):(Fe.debug("[installMyServers] using openBox %s",t),openBox("/plugins/dynamix.plugin.manager/scripts/plugin&arg1=install&arg2="+t,this.$t("upc.installingMyServers"),600,900,!0))}catch(e){Fe.error(e)}}},watch:{isPromoOpen(e,t){t&&!e&&sessionStorage.removeItem("showPromoPostTrialInstall")},isLaunchpadOpen(e,t){t&&!e&&sessionStorage.getItem("showPromoPostTrialInstall")&&this.SET_IS_PROMO_OPEN(!1)}}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{appear:"",name:"fade",mode:"in-out"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isPromoOpen,expression:"isPromoOpen"}],staticClass:"fixed inset-0 z-10 flex flex-col justify-start items-end mt-90px"},[r("transition",{attrs:{appear:"",name:"fade",mode:"in-out"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isPromoOpen,expression:"isPromoOpen"}],staticClass:"fixed inset-0 z-0 bg-beta opacity-70 cursor-pointer",attrs:{title:e.$t("closePromo")},on:{click:function(t){return e.SET_IS_PROMO_OPEN(!1)}}})]),r("transition",{attrs:{appear:"",name:"slideVerticalFade",mode:"in-out"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isPromoOpen,expression:"isPromoOpen"}],staticClass:"Promo TopBlip text-beta bg-alpha border-grey-darkest text-center relative z-10 w-full max-w-800px mr-8px p-24px sm:p-32px lg:px-40px shadow-md rounded-lg"},[r("h2",{staticClass:"text-24px my-0",domProps:{innerHTML:e._s(e.heading)}}),r("div",{staticClass:"text-14px flex flex-wrap justify-center my-16px"},e._l(e.features,(function(t,n){return r("feature",{key:n,attrs:{title:t.title,copy:t.copy,center:t.center||!1}},["ui--remote-access"===t.svg?r("UnraidSvgUiRemoteAccess",{staticClass:"fill-current mt-1 w-28px h-28px"}):e._e(),"ui--diagnostics"===t.svg?r("UnraidSvgUiDiagnostics",{staticClass:"fill-current mt-1 w-28px h-28px"}):e._e(),"ui--usb"===t.svg?r("UnraidSvgUiUsb",{staticClass:"fill-current mt-1 w-28px h-28px"}):e._e(),"ui--key"===t.svg?r("UnraidSvgUiKey",{staticClass:"fill-current mt-1 w-28px h-28px"}):e._e(),"util--star"===t.svg?r("UnraidSvgUtilStar",{staticClass:"fill-current mt-1 w-28px h-28px"}):e._e()],1)})),1),r("div",{staticClass:"w-full max-w-xs flex flex-col mx-auto"},[e.devEnv?r("button",{staticClass:"button mb-8px",on:{click:function(t){return e.installMyServers("dynamix.unraid.net.staging.plg")}}},[e._v("Install Staging")]):e._e(),r("button",{staticClass:"button",on:{click:function(t){return e.installMyServers()}}},[e._v(e._s(e.$t("installPlugin")))]),r("div",[r("a",{staticClass:"text-12px tracking-wide inline-block mx-8px opacity-60 hover:opacity-100 focus:opacity-100 underline mt-16px transition",attrs:{href:"https://wiki.unraid.net/My_Servers",target:"_blank",rel:"noopener noreferrer",title:e.$t("checkoutTheMyServersDocs")}},[e._v(e._s(e.$t("learnMore")))]),r("button",{staticClass:"text-12px tracking-wide inline-block mx-8px opacity-60 hover:opacity-100 focus:opacity-100 underline mt-16px transition",attrs:{title:e.$t("closePromo")},on:{click:function(t){return e.SET_IS_PROMO_OPEN(!1)}}},[e._v(" "+e._s(e.$t("noThanks"))+" ")])])])])])],1)])}),[],!1,(function(e){var t=r("5b71");t.__inject__&&t.__inject__(e)}),null,null,!0).exports;var Yi=v({i18n:he,store:di,name:"UpcTrigger",props:[],data:()=>({}),computed:{...Object(b.c)(["stateData","stateDataKeyActions"]),...Object(b.e)(["isPopUpOpen","state","triggerUPC","wizardWindow"]),copy(){return"BASIC"===this.state||"PLUS"===this.state?this.$t("upcTrigger.upgrade"):this.stateDataKeyActions?this.$t("upcTrigger.default"):""},buttonText(){return this.stateData.error?this.$t("fixError"):this.isPopUpOpen?this.$t("backToPopUp"):"ENOKEYFILE"===this.state?this.$t("getStarted"):this.stateDataKeyActions?this.$t("upcTrigger.open"):""},buttonTitle(){return this.stateDataKeyActions?this.$t("upcTrigger.open"):this.$t("upc.opensNewHttpsWindow.base",[this.buttonText])}},methods:{...Object(b.b)(["jumpToUpc","closePopUp","openPopUp"]),btnClick(){return this.isPopUpOpen?this.openPopUp(this.wizardWindow):this.jumpToUpc()}}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{appear:"",name:"fade",mode:"out-in"}},[e.buttonText?r("div",{staticClass:"flex flex-wrap pl-12px"},[r("p",{staticClass:"w-7/20 pr-12px",domProps:{innerHTML:e._s(e.copy)}}),r("div",{staticClass:"w-13/20 inline-flex flex-row"},[r("button",{attrs:{type:"button",title:e.buttonTitle,disabled:e.triggerUPC},on:{click:function(t){return e.btnClick()}}},[e._v(e._s(e.buttonText))]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.isPopUpOpen?r("button",{staticClass:"ml-8px",attrs:{type:"button"},on:{click:function(t){return e.closePopUp()}}},[e._v(e._s(e.$t("closePopUp")))]):e._e()])],1)]):e._e()])}),[],!1,(function(e){var t=r("22c9");t.__inject__&&t.__inject__(e)}),null,null,!0).exports,Qi=r("ab14"),Ki=r.n(Qi),Xi=r("c7db"),Ji=r("4eb5"),Zi=r.n(Ji),eo=r("b692"),to=r.n(eo),ro=r("a3b3"),no=r.n(ro),io=r("8a86"),oo=r.n(io),ao=r("b2a0"),so=r.n(ao),co=r("b045"),lo=r.n(co),uo=r("45b7"),po=r.n(uo),fo=r("73c6"),ho=r.n(fo),mo=r("94d0"),go=r.n(mo),vo=r("607e"),bo=r.n(vo),yo=v({props:{payload:{type:Object},text:{type:String},emphasize:{type:Boolean,default:!1},external:{type:Boolean,default:!0}},components:{UnraidSvgUiKey:zi.a,UnraidSvgUtilNewWindow:no.a}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("li",[r("button",{staticClass:"group flex flex-row items-center justify-between",class:{"btn-emphasize":e.emphasize},attrs:{title:e.external?""+e.$t("upc.opensNewHttpsWindow.base",[e.text]):null},on:{click:function(t){return e.$emit("click")}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUiKey",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.text)+" ")],1),e.external?r("UnraidSvgUtilNewWindow",{staticClass:"text-white opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"}):e._e()],1)])}),[],!1,null,null,null,!0).exports,wo=r("a190"),xo=r.n(wo),_o=r("a313"),Eo=r.n(_o),So=r("973e"),ko=r.n(So),Oo=r("44f2"),To=r.n(Oo);var Io=v({components:{UnraidLoading:mi,UnraidSvgUiWarningFill:xo.a,UnraidSvgUtilCheck:Eo.a,UnraidSvgUtilDelete:go.a,UnraidSvgUtilHelp:ko.a,UnraidSvgUtilInfo:lo.a,UnraidSvgUtilNewWindow:no.a,UnraidSvgUtilTerminal:To.a,UnraidSvgUtilEdit:so.a},props:["errorStateMessageVisible","hideotherservers","hideMyServers"],data:()=>({offlineTimer:sessionStorage.getItem("offlineTimer")||!1,restartTriggered:!1}),watch:{apikey(e,t){t||!e||this.hideMyServers||(Fe.debug("[watch.apikey] connect to unraid-api",{newVal:e,oldVal:t}),this.serversPlz()),!t||e||this.hideMyServers||(Fe.debug("[apikey removed] disconnect from unraid-api",{newVal:e,oldVal:t}),this.stopGraphqlClient(t))},noRemoteApikeyRegisteredWithPlg(e,t){t||!e||this.hideMyServers||(Fe.debug("[watch.noRemoteApikeyRegisteredWithPlg] connect to unraid-api",{newVal:e,oldVal:t}),this.serversPlz())},registered(e,t){t||!e||this.hideMyServers||(Fe.debug("[watch.apikey] connect to unraid-api",{newVal:e,oldVal:t}),this.serversPlz())},myServersError(e,t){!t||e||this.myServers.length||(Fe.debug("[watch.myServersError] connect to unraid-api",{newVal:e,oldVal:t}),this.serversPlz())},graphOnline(e,t){t&&!1===e&&this.timer("watch.graphOnline")}},computed:{...Object(b.c)(["errorTooManyDisks","hasRemoteApikey","keyTypeForPurchase","myServersOutOfDate","noRemoteApikeyRegisteredWithPlg","plgInstallFailed","stateData","validApiKeyLength"]),...Object(b.e)(["apikey","apiVersion","cloud","deviceCount","graphOnline","guid","locale","myServers","myServersError","myServersErrorShowSupportBtn","myServersLoading","pirateKey","registered","servername","signInPayload","state","wanip"]),currentServer(){return this.myServers?this.myServers.filter(e=>e.guid===this.guid?e:null)[0]:{name:this.servername,status:"offline"}},currentServerStatus(){return this.currentServer?this.currentServer.status:"offline"},filteredServers(){return this.myServers?this.hideotherservers?[]:this.myServers.filter(e=>e.guid!==this.guid?e:null).sort((e,t)=>e.name.localeCompare(t.name,"en",{numeric:!0,sensitivity:"base"})):[]},errorToggleText(){return this.stateData.error.message?"EEXPIRED"===this.state?this.stateData.error.heading:this.$t("fixError"):this.pirateKey||this.myServersError||this.noRemoteApikeyRegisteredWithPlg||this.errorTooManyDisks||this.myServersOutOfDate&&this.myServersOutOfDate.enabled||this.cloud&&this.cloud.error||this.plgInstallFailed?this.computedErrorHeading:""},errorToggleTitle(){if(this.stateData.error||this.stateData.message||this.myServersError||this.myServersOutOfDate&&this.myServersOutOfDate.enabled||this.cloud&&this.cloud.error||this.plgInstallFailed){return`${!this.stateData.error.message&&!this.stateData.message||this.noRemoteApikeyRegisteredWithPlg||this.errorTooManyDisks||!this.cloud||this.cloud.error?this.computedErrorHeading:this.stateData.humanReadable} • ${this.errorStateMessageVisible?this.$t("upc.myServers.closeDetails"):this.$t("learnMore")}`}return""},computedErrorHeading(){return this.noRemoteApikeyRegisteredWithPlg?this.$t("upc.noRemoteApikeyRegisteredWithPlg.heading"):this.stateData.error.heading?this.stateData.error.heading:this.pirateKey?this.$t("keyFileNotValid"):this.myServersLoading&&this.restartTriggered?"Unraid API":this.myServersError?this.myServersError.includes("Network error")?this.$t("upc.myServers.errors.unraidApi.heading"):this.$t("upc.myServers.errors.myServers.heading"):this.errorTooManyDisks?this.$t("upc.errorTooManyDisks.heading"):this.myServersOutOfDate.enabled?this.myServersOutOfDate.heading:this.cloud&&this.cloud.error?this.$t("upc.myServers.errors.unraidApi.heading"):this.plgInstallFailed?this.$t("installFailed.heading"):""},computedError(){if(this.noRemoteApikeyRegisteredWithPlg)return this.$t("upc.noRemoteApikeyRegisteredWithPlg.msg");if(this.stateData.error.message)return this.stateData.error.message;if(this.pirateKey)return this.$t("yargYePirate");if(this.myServersLoading&&this.restartTriggered)return this.$t("upc.myServers.restarting");if(this.myServersError)return this.myServersError.includes("Network error")?this.$t("upc.myServers.errors.unraidApi.message"):this.myServersError;if(this.errorTooManyDisks){const e=this.$t("upc.errorTooManyDisks.msg.base");return"Basic"===this.keyTypeForPurchase?`${this.$t("upc.errorTooManyDisks.msg.basic")} ${e}`:"Plus"===this.keyTypeForPurchase?`${this.$t("upc.errorTooManyDisks.msg.plus")} ${e}`:e}return this.myServersOutOfDate.enabled?this.myServersOutOfDate.message:this.cloud&&this.cloud.error?this.cloud.error:this.plgInstallFailed?this.$t("installFailed.message"):""},myServersOverflow(){return this.filteredServers.length>8},apiEnableRestartButton(){return!!this.apiVersion&&Ge()(this.apiVersion,"2.42.5")&&this.offlineTimer&&!this.hideMyServers&&!this.graphOnline&&!this.myServersLoading&&!this.stateData.error&&this.myServersError&&(this.myServersError.includes("unraid-api is stopped")||this.myServersError.includes("Disconnected from Unraid API"))},forumSupportLink(){return this.myServersError&&this.myServersError.includes("OK")||this.myServersError&&this.myServersError.includes("SERVER_OVERLOAD")||this.cloud&&this.cloud.error&&(this.cloud.error.includes("OK")||this.cloud.error.includes("SERVER_OVERLOAD"))?"https://forums.unraid.net/topic/112073-my-servers-releases/#comment-1121459":"https://forums.unraid.net/forum/94-my-servers-plugin-support/"}},methods:{...Object(b.b)(["executeUnraidApi","fetchServers","openPopUp","stopGraphqlClient"]),serversPlz(){return Fe.debug("[serversPlz]",{apikey:this.apikey,noRemoteApikeyRegisteredWithPlg:this.noRemoteApikeyRegisteredWithPlg,validApiKeyLength:this.validApiKeyLength,myServersOutOfDate:this.myServersOutOfDate}),this.myServersOutOfDate&&this.myServersOutOfDate.enabled&&(this.myServersOutOfDate.error||Fe.warn(this.myServersOutOfDate.message),this.myServersOutOfDate.error)?Fe.error(this.myServersOutOfDate.message):this.noRemoteApikeyRegisteredWithPlg?Fe.error("[MyServers] remote apikey does not exist"):this.plgInstallFailed?Fe.error("[MyServers] plugin failed to install correctly"):this.validApiKeyLength?(this.fetchServers(),this.timer("serversPlz()")):Fe.error("[MyServers] invalid apikey")},timer(e=""){Fe.debug("[timer] %s",e),setTimeout(()=>{!this.graphOnline&&this.registered&&(this.offlineTimer=!0,sessionStorage.setItem("offlineTimer",Date.now()))},3e4)},triggerRestart(){this.executeUnraidApi({command:"start"}),this.offlineTimer=!1,this.restartTriggered=!0,sessionStorage.removeItem("offlineTimer")}},created(){!this.hideMyServers&&this.registered&&this.serversPlz()}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"relative"},[r("ul",{staticClass:"relative"},[e.filteredServers.length&&e.myServersError&&!e.stateData.error?r("li",{staticClass:"text-red text-12px font-semibold px-16px pb-4px"},[r("em",[e._v(e._s(e.$t("upc.myServers.displayingLastKnown")))])]):e._e(),e.computedError?r("li",{key:"current-server-error",staticClass:"w-full"},[r("button",{staticClass:"btn-error group py-8px px-16px flex flex-col",attrs:{title:e.errorToggleTitle},on:{click:function(t){return e.$emit("toggle-error")}}},[r("div",{staticClass:"w-full flex flex-row justify-between items-center"},[r("span",{staticClass:"inline-flex flex-row items-center"},[e.myServersOutOfDate&&e.myServersOutOfDate.enabled&&!e.myServersOutOfDate.error?r("UnraidSvgUtilInfo",{staticClass:"fill-current w-12px h-12px"}):r("UnraidSvgUiWarningFill",{staticClass:"fill-current w-12px h-12px"}),r("span",{staticClass:"font-semibold mx-8px"},[e._v(" "+e._s(e.servername)+" ")])],1),e.computedError&&e.errorStateMessageVisible?r("UnraidSvgUtilDelete",{staticClass:"text-current opacity-100 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"}):r("UnraidSvgUtilInfo",{staticClass:"text-current opacity-100 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.computedError&&e.errorStateMessageVisible?r("div",{staticClass:"UnraidUPC-serverError"},[r("div",{staticClass:"text-14px font-semibold pt-4px"},[r("h3",{staticClass:"text-16px mb-4px"},[e._v(e._s(e.errorToggleText))]),r("p",{domProps:{innerHTML:e._s(e.computedError)}})])]):e._e()])],1)]):e._e(),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.pirateKey&&e.errorStateMessageVisible?r("li",[r("a",{staticClass:"link-error group flex flex-row items-center justify-between",attrs:{href:"zh_CN"===e.locale?"https://unraid.net/zh/%E8%B4%AD%E4%B9%B0-%E6%AD%A3%E7%89%88-unraid-%E8%AE%B8%E5%8F%AF%E8%AF%81":"https://unraid.net/buy-genuine-license",title:e.$t("upc.opensNewHttpsWindow.base",[e.$t("learnMore")]),target:"_blank"}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilHelp",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.$t("learnMore"))+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]):e._e()]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.computedError&&!e.stateData.error&&e.errorStateMessageVisible&&e.myServersOutOfDate&&e.myServersOutOfDate.enabled&&e.myServersOutOfDate.link?r("li",[r("a",{staticClass:"link-error group flex flex-row items-center justify-between",attrs:{href:e.myServersOutOfDate.link,title:e.myServersOutOfDate.linkSameTab?"":e.$t("upc.opensNewHttpsWindow.base",[this.myServersOutOfDate.heading]),target:e.myServersOutOfDate.linkSameTab?"":"_blank",rel:"noopener"}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilEdit",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.myServersOutOfDate.linkSameTab?"Go to Plugins":e.$t("learnMore"))+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]):e._e()]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[(e.myServersError||e.cloud&&e.cloud.error)&&!e.stateData.error&&e.errorStateMessageVisible?r("li",[r("a",{staticClass:"link-error group flex flex-row items-center justify-between",attrs:{href:e.forumSupportLink,title:e.$t("upc.opensNewHttpsWindow.base",["My Servers Support"]),target:"_blank",rel:"noopener"}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilHelp",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s("My Servers Support")+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]):e._e()]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[("EEXPIRED"!==e.state&&e.stateData.error||e.pirateKey)&&e.errorStateMessageVisible?r("li",[r("a",{staticClass:"link-error group flex flex-row items-center justify-between",attrs:{title:e.$t("upc.opensNewHttpsWindow.base",[e.$t("contactSupport")])},on:{click:function(t){return e.$emit("contact-support")}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilHelp",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.$t("contactSupport"))+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]):e._e()]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.noRemoteApikeyRegisteredWithPlg&&e.errorStateMessageVisible?r("li",[r("a",{staticClass:"link-error group flex flex-row items-center justify-between",attrs:{title:e.$t("upc.opensNewHttpsWindow.base",[e.$t("signIn")])},on:{click:function(t){return e.openPopUp(e.signInPayload)}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUiWarningFill",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.$t("upc.signInActions.resolve"))+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]):e._e()]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.apiEnableRestartButton?r("li",[r("button",{staticClass:"group flex flex-row items-center justify-between",attrs:{title:e.$t("upc.myServers.api.startTitle")},on:{click:function(t){return e.triggerRestart()}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilTerminal",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.$t("upc.myServers.api.start"))+" ")],1)])]):e._e()]),e.registered?r("div",{staticClass:"relative z-0",class:{"custom-scrollbar":e.myServersOverflow}},[r("div",{class:{"overflow-y-scroll max-h-310px":e.myServersOverflow}},[r("transition-group",{attrs:{name:"fade",mode:"out-in"}},[e.myServersLoading?r("UnraidLoading",{key:"gql-loading",staticClass:"w-36px my-8px mx-auto",attrs:{height:21,title:e.$t("upc.myServers.loading")}}):e._e(),e.filteredServers?r("div",{key:"filteredServers"},[r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.computedError?e._e():r("li",{key:"current-server",staticClass:"w-full py-8px px-16px flex flex-row items-center",class:{"text-beta":"online"===e.currentServerStatus,"text-orange cursor-not-allowed":"online"!==e.currentServerStatus},attrs:{title:e.$t("upc.myServers.accessLabels.current")+" • "+("online"!==e.currentServerStatus?e.$t("upc.myServers.mothership.notConnected"):e.$t("upc.myServers.mothership.connected"))}},["online"!==e.currentServerStatus?r("UnraidSvgUiWarningFill",{staticClass:"fill-current w-12px h-12px"}):r("UnraidSvgUtilCheck",{staticClass:"fill-current w-12px h-12px"}),r("span",{staticClass:"ml-8px select-all"},[e._v(e._s(e.currentServer?e.currentServer.name:e.servername))])],1)]),e._l(e.filteredServers,(function(t,n){return r("li",{key:"filteredServer_"+n},["online"===t.status&&e.wanip!==t.wanip&&t.remoteurl?r("a",{staticClass:"w-full flex flex-row items-center",attrs:{href:t.remoteurl,tabindex:"0",title:e.$t("upc.myServers.accessLabels.remote")}},[r("span",{staticClass:"block w-12px h-12px mr-8px bg-green rounded-full"}),r("span",{staticClass:"select-all"},[e._v(e._s(t.name))])]):"online"===t.status&&t.localurl?r("a",{staticClass:"w-full flex flex-row items-center",attrs:{href:t.localurl,tabindex:"0",title:e.$t("upc.myServers.accessLabels.local")}},[r("span",{staticClass:"block w-12px h-12px mr-8px bg-green rounded-full"}),r("span",{staticClass:"select-all"},[e._v(e._s(t.name))])]):"never_connected"!==t.status?r("span",{staticClass:"w-full flex flex-row items-center px-16px py-8px opacity-50 cursor-not-allowed",attrs:{title:"online"===t.status?e.$t("upc.myServers.accessLabels.unavailable"):e.$t("upc.myServers.accessLabels.offline")}},[r("span",{staticClass:"text-red text-14px w-12px mr-8px"},[e._v("×")]),r("span",{staticClass:"select-all"},[e._v(e._s(t.name))])]):e._e()])}))],2):e._e()],1)],1)]):e._e()],1)])}),[],!1,(function(e){var t=r("dce8");t.__inject__&&t.__inject__(e)}),null,null,!0).exports,Ao=v({components:{HelperTimeConvert:Ci},computed:{...Object(b.e)(["state"]),...Object(b.c)(["stateData"])}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"text-gamma text-12px text-right font-semibold leading-normal flex flex-row items-baseline justify-end pr-16px pt-4px"},[r("HelperTimeConvert"),r("span",{staticClass:"px-12px"},[e._v("•")]),e.stateData.actions.includes("upgrade")?r("button",{staticClass:"text-12px text-gamma hover:text-alpha focus:text-alpha font-semibold transition-colors duration-150 ease-in-out border-t-0 border-l-0 border-r-0 border-b-2 border-transparent hover:border-orange-dark focus:border-orange-dark focus:outline-none",attrs:{title:e.$t("upc.opensNewHttpsWindow.upgrade")},on:{click:function(t){return e.$emit("upgrade")}}},[r("h5",[e._v("Unraid OS "),r("em",[r("strong",[e._v(e._s(e.stateData.humanReadable))])])])]):r("h5",[e._v("Unraid OS "),r("em",{class:{"text-red":e.stateData.error||"EEXPIRED"===e.state}},[r("strong",[e._v(e._s(e.stateData.humanReadable))])])]),e.stateData.actions.includes("purchase")?r("button",{staticClass:"text-12px text-orange-dark font-semibold hover:text-alpha focus:text-alpha ml-12px transition-colors duration-150 ease-in-out border-t-0 border-l-0 border-r-0 border-b-2 border-transparent hover:border-orange-dark focus:border-orange-dark focus:outline-none",attrs:{title:e.$t("upc.opensNewHttpsWindow.purchase")},on:{click:function(t){return e.$emit("purchase")}}},[e._v(e._s(e.$t("actions.purchase")))]):e._e()],1)}),[],!1,null,null,null,!0).exports;o.default.use(Zi.a);var Ro=v({i18n:he,store:di,name:"UserProfile",mixins:[Xi.mixin],components:{UnraidLoading:mi,UnraidLogoMark:vi,KeyAction:yo,MetaInfo:Ao,MyServers:Io,UnraidSvgUtilLogout:to.a,UnraidSvgUtilNewWindow:no.a,UnraidSvgUtilSelect:oo.a,UnraidSvgUtilEdit:so.a,UnraidSvgUtilInfo:lo.a,UnraidSvgUiWarning:po.a,UnraidSvgUtilGlobe:ho.a,UnraidSvgUtilDelete:go.a,UnraidSvgUtilThumbsUp:bo.a,UiBeta:Ni},props:{serverstate:String,banner:{type:String,default:""},showBannerGradient:{type:String,default:"yes"},bgcolor:[String,Number],displaydesc:{type:String,default:""},locale:String,localeMessages:String,metacolor:String,textcolor:String,theme:{type:String,default:"black"},hideotherservers:{type:String,default:""},apikey:String,apiVersion:String,csrf:String,expiretime:[Number,String],hideMyServers:{type:String,default:null},plgPath:String,regWizTime:String,sendCrashInfo:String,serverdesc:String,servermodel:String,serverupdate:Boolean,uptime:[Number,String]},data:()=>({NODE_ENV:me,avatarFail:!1,copyingIp:!1,copyingIpFailed:!1,dropdownTimeout:"",dropdownVisible:!1,errorStateMessageVisible:!0,showRemoveBtns:!1,removingPlg:!1,hoverImage:!1}),computed:{...Object(b.e)(["avatar","isLaunchpadOpen","isPromoOpen","isPopUpOpen","guid","guidRegistered","popUpWindow","regAtOpen","purchaseWindow","redeemWindow","registered","servername","internalip","state","username","darkTheme","lightTheme","extendTrialPayload","recoverKeyPayload","replaceKeyPayload","signInPayload","signUpPayload","signOutPayload","troubleshootPayload","wizardWindow","messages","myServersEnv","triggerUPC","graphOnline","myServersError","cloud","plgInstalled","signOutTriggered","pirateKey"]),...Object(b.c)(["errorTooManyDisks","noRemoteApikeyRegisteredWithPlg","signedOutWithKey","stateData","myServersOutOfDate","allowedOrigins","server","plgInstallFailed"]),darkMode(){return"black"===this.theme||"azure"===this.theme},usernameButtonText(){return this.stateData.error&&!this.stateData.error.signInToFix&&"EEXPIRED"===!this.state?this.$t("fixError"):this.registered?this.username:""},usernameButtonTitle(){return"ENOKEYFILE"===this.state?this.$t("getStarted"):"EEXPIRED"===this.state?this.$t("upc.trialHasExpiredSeeOptions"):this.stateData.error?this.$t("learnMore"):this.isPopUpOpen&&this.isLaunchpadOpen?this.$t("upc.confirmClosure"):this.cloud&&this.cloud.error?`${this.$t("upc.myServers.errors.unraidApi.heading")}: ${this.cloud.error}`:this.myServersError&&this.registered?`${this.$t("upc.myServers.errors.unraidApi.heading")}: ${this.myServersError}`:this.errorTooManyDisks?this.$t("upc.errorTooManyDisks.heading"):this.isLaunchpadOpen?this.$t("closeLaunchpad"):this.dropdownVisible?this.$t("upc.closeDropdown"):this.$t("upc.openDropdown")},displayKeylineBelowActions(){return!!(this.stateData.actions.includes("startTrial")||this.stateData.actions.includes("purchase")||this.stateData.actions.includes("upgrade")||this.stateData.actions.includes("recover")||this.stateData.actions.includes("replace")||this.stateData.actions.includes("extend"))},extraLinks(){return[...!this.hideMyServers&&this.registered||this.stateData.error.message||this.errorTooManyDisks?[{url:"",text:"",external:!1}]:[],...this.hideMyServers||!this.registered||this.plgInstallFailed?[]:[{url:this.myServersEnv?"https://forums.unraid.net/my-servers-staging/":"https://forums.unraid.net/my-servers/",text:this.$t("upc.extraLinks.myServers"),external:!0,title:this.$t("upc.extraLinks.newTab",[this.$t("upc.extraLinks.myServers")])},{url:"/Settings/ManagementAccess#"+(this.plgPath?"MyServersSettings":"UnraidNetSettings"),text:this.$t("upc.extraLinks.settings.text"),settings:!0,title:this.$t("upc.extraLinks.settings.title")}]]},devEnv(){let e=me;const t="UPC_ENV=",r=document.cookie.split(";");for(let n=0;n{this.showRemoveBtns&&(this.showRemoveBtns=!1)},300),this.dropdownVisible)},...Object(b.b)(["closePopUp","openPopUp","receivePostMessage","setStateFromWebComponentProp","startTrial","stopGraphqlClient","togglePromo","updateServerState","validateGuid"]),...Object(b.d)(["SET_IS_LAUNCHPAD_OPEN","SET_IS_PROMO_OPEN","SET_LOCALE","SET_API_KEY","SET_CSRF","SET_DARK_MODE","SET_EXPIRE_TIME","SET_HIDE_MY_SERVERS","SET_MY_SERVERS_API_VERSION","SET_PLG_PATH","SET_REGWIZ_TIME","SET_SERVERDESC","SET_UPTIME","SET_DEV_MODE","SET_MY_SERVERS_ERROR","SET_MY_SERVERS_ERROR_SHOW_SUPPORT_BTN"]),closeDropdown(){setTimeout(()=>{this.showRemoveBtns&&(this.showRemoveBtns=!1)},300),this.dropdownVisible=!1},dropdownMouseEnter(){return"ENOKEYFILE"!==this.state&&!this.isLaunchpadOpen&&(clearTimeout(this.dropdownTimeout),!0)},dropdownMouseLeave(){return this.dropdownTimeout=setTimeout(()=>"ENOKEYFILE"!==this.state&&(this.dropdownVisible=!1,setTimeout(()=>{this.showRemoveBtns&&(this.showRemoveBtns=!1)},300)),1e3),!0},autoTriggerLaunchpad(){setTimeout(()=>{const e=`${this.servername}_${this.guid?this.guid.slice(-12):"NO_GUID"}`;sessionStorage.getItem(e)||"ENOKEYFILE"!==this.state||(sessionStorage.setItem(e,"またね"),this.isLaunchpadOpen||this.toggleLaunchpad())},100)},toggleLaunchpad(){const e="unraid-launchpad";if(!document.getElementsByTagName(e).length){const t=document.getElementsByTagName("body")[0],r=document.createElement(e);t.appendChild(r)}const t=()=>{this.dropdownVisible&&(this.dropdownVisible=!1),this.isPopUpOpen&&this.closePopUp(),this.SET_IS_LAUNCHPAD_OPEN(!this.isLaunchpadOpen)};this.isPopUpOpen&&this.isLaunchpadOpen?window.confirm(this.$t("upc.pleaseConfirmClosureYouHaveOpenPopUp"))&&t():t()},onAvatarError(){Fe.error("Avatar failed to load %s",this.avatar),this.avatarFail=!0},async initUserProfile(){if(Fe.debug("[initUserProfile]"),this.setStateFromWebComponentProp(this.serverstate),this.apikey&&this.SET_API_KEY(this.apikey),this.apiVersion&&this.SET_MY_SERVERS_API_VERSION(this.apiVersion),this.csrf&&this.SET_CSRF(this.csrf),this.expiretime&&this.SET_EXPIRE_TIME(this.expiretime),this.hideMyServers&&this.SET_HIDE_MY_SERVERS(this.hideMyServers),this.plgPath&&this.SET_PLG_PATH(this.plgPath),this.regWizTime&&this.SET_REGWIZ_TIME(this.regWizTime),this.serverdesc&&this.SET_SERVERDESC(this.serverdesc),this.uptime&&this.SET_UPTIME(this.uptime),this.devEnv&&this.SET_DEV_MODE(this.devEnv),this.hideMyServers){const e=["color: white","background: linear-gradient(to right, #E22828 0%, #FF8C2F 100%)","font-size: 10px","padding: 4px"].join(";");Fe.log(`%c${this.$t("upc.enhanceYourExperienceWithMyServers")} • https://wiki.unraid.net/My_Servers`,e)}if(this.localeMessages){Fe.debug("[this.locale] %o",this.locale);const[e,t]=Re(decodeURIComponent(this.localeMessages));e&&Fe.error("[initUserProfile.localeMessages] %s","Unable to set locale and locale messages"),this.$i18n.locale=this.locale,this.$i18n.setLocaleMessage(this.locale,t[this.locale]),Fe.debug(`[initUserProfile.$i18n] ${this.$i18n.locale} locale & messages set %o`,t[this.locale]),this.SET_LOCALE(this.locale)}this.signedOutWithKey&&this.regWizTime?(Fe.debug("[initUserProfile] %o",{signedOutWithKey:this.signedOutWithKey,regWizTime:this.regWizTime}),await this.validateGuid()):this.autoTriggerLaunchpad(),sessionStorage.getItem("clickedInstallMyServers")&&(Fe.debug("[initUserProfile] sessionStorage clickedInstallMyServers"),this.toggleLaunchpad()),sessionStorage.getItem("showPromoPostTrialInstall")&&(Fe.debug("[initUserProfile] sessionStorage showPromoPostTrialInstall"),this.togglePromo()),window.addEventListener("message",e=>{this.receivePostMessage({inject:!1,event:e})},!1)},copyIpSuccess(){Fe.debug("[copyIpSuccess] %s",this.internalip),this.copyingIp=!this.copyingIp,setTimeout(()=>{this.copyingIp=!this.copyingIp},750)},copyIpError(){return this.copyingIpFailed=!0,clearTimeout(this.copyingFailedTimeout),this.copyingFailedTimeout=setTimeout(()=>{this.copyingIpFailed=!this.copyingIpFailed},2e3),Fe.error("Unable to copy IP: %s",this.internalip)},hoverCopyFailed(){Fe.debug("[hoverCopyFailed] %s",this.internalip),clearTimeout(this.copyingFailedTimeout)},leaveCopyFailed(){Fe.debug("[leaveCopyFailed] %s",this.internalip),clearTimeout(this.copyingFailedTimeout),this.copyingFailedTimeout=setTimeout(()=>{this.copyingIpFailed=!this.copyingIpFailed},1500)},copyFailedClickaway(){Fe.debug("[copyFailedClickaway] %s",this.internalip),clearTimeout(this.copyingFailedTimeout),this.copyingIpFailed=!1},toggleRemovePlgBtns(){Fe.debug("[toggleRemovePlgBtns]"),this.showRemoveBtns=!this.showRemoveBtns},removePlugin(){try{if(Fe.debug("[removePlugin] %s",this.plgInstalled),"function"==typeof openPlugin)Fe.debug("[removePlugin] using openPlugin %s",this.plgInstalled),openPlugin("plugin remove "+this.plgInstalled.replace("_installFailed",""),this.$t("upc.removeMyServersPlugin"),this.plgInstalled.replace("_installFailed","")+":remove","refresh");else{Fe.debug("[removePlugin] using openBox %s",this.plgInstalled),openBox("/plugins/dynamix.plugin.manager/scripts/plugin&arg1=remove&arg2="+this.plgInstalled.replace("_installFailed",""),this.$t("upc.removeMyServersPlugin"),600,900,!0,"loadlist",this.plgInstalled.replace("_installFailed","")+":remove"),this.removingPlg=!0,window.addEventListener("beforeunload",this.preventClose);const e=setInterval(()=>"none"!==document.getElementById("sb-container").style.display?Fe.debug("⏳ still removing My Servers…⏳"):(Fe.debug("❌ My Servers removed ❌"),window.removeEventListener("beforeunload",this.preventClose),clearInterval(e),window.location.reload()),100)}}catch(e){Fe.error(e)}},preventClose(e){this.removingPlg&&(e.preventDefault(),e.returnValue="",alert(this.$t("regWizPopUp.closingPopUpMayLeadToErrors")))}},watch:{signedOutWithKey(e,t){Fe.debug("[signedOutWithKey]",{newVal:e,oldVal:t,regWizTime:this.regWizTime}),e&&!t&&this.regWizTime&&this.validateGuid()},isPopUpOpen(e,t){this.isLaunchpadOpen&&!e&&t&&!this.regAtOpen&&this.registered&&this.SET_IS_LAUNCHPAD_OPEN(!1)},triggerUPC(e){e&&setTimeout(()=>{this.dropdownVisible=!0},150)},graphOnline(e,t){e&&!t&&this.updateServerState()},isPromoOpen(e,t){e&&!t&&(this.dropdownVisible=!1)},signOutTriggered(e,t){e&&this.graphOnline&&(Fe.debug("[watch.signOutTriggered] disconnect from unraid-api",{newVal:e,oldVal:t,apikey:this.apikey}),this.stopGraphqlClient(this.apikey),this.myServersError&&(this.SET_MY_SERVERS_ERROR(""),this.SET_MY_SERVERS_ERROR_SHOW_SUPPORT_BTN(!1)))}},created(){this.initUserProfile()},beforeMount(){const e=document.getElementsByTagName("body")[0],t={darkTheme:{alpha:"#1c1b1b",beta:"#f2f2f2",gamma:"#999999"},lightTheme:{alpha:"#f2f2f2",beta:"#1c1b1b",gamma:"#999999"}};let{alpha:r,beta:n,gamma:i}=this.darkMode?t.darkTheme:t.lightTheme;this.textcolor&&(r=this.textcolor),this.bgcolor&&(n=this.bgcolor,e.style.setProperty("--color-customgradient-start",Ki()(n,0)),e.style.setProperty("--color-customgradient-end",Ki()(n,.9))),this.metacolor&&(i=this.metacolor),e.style.setProperty("--color-alpha",r),e.style.setProperty("--color-beta",n),e.style.setProperty("--color-gamma",i),e.style.setProperty("--shadow-beta","0 25px 50px -12px "+Ki()(n,.15)),e.style.setProperty("--ring-offset-shadow","0 0 "+n),e.style.setProperty("--ring-shadow","0 0 "+n)}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"UnraidUPC",class:{"--hasBanner-default":e.banner&&"no"!==e.showBannerGradient&&!e.bgcolor,"--hasBanner-custom":e.banner&&"no"!==e.showBannerGradient&&e.bgcolor},attrs:{id:"UnraidUPC"}},[e.isPopUpOpen&&!e.isLaunchpadOpen?r("div",{staticClass:"absolute z-10 inset-0 flex flex-col items-end justify-center pr-6"},[r("div",{staticClass:"text-center inline-flex flex-col items-center justify-center"},[r("button",{staticClass:"text-14px button button-alt",on:{click:function(t){return e.openPopUp()}}},[e._v(e._s(e.$t("backToPopUp")))]),r("button",{staticClass:"hover:underline text-12px mt-4px",on:{click:function(t){return e.closePopUp()}}},[e._v(e._s(e.$t("closePopUp")))])])]):e._e(),r("MetaInfo",{class:{"blur opacity-30 pointer-events-none transition-all duration-150 ease-in-out":e.isPopUpOpen&&!e.isLaunchpadOpen},on:{purchase:function(t){return e.openPopUp(e.purchaseWindow)},upgrade:function(t){return e.openPopUp(e.purchaseWindow)},signin:function(t){return e.openPopUp(e.signInPayload)}}}),r("div",{staticClass:"relative z-0 flex flex-row items-center justify-end h-full",class:{"blur opacity-30 pointer-events-none transition-all duration-150 ease-in-out":e.isPopUpOpen&&!e.isLaunchpadOpen}},[r("h1",{staticClass:"relative text-18px border-t-0 border-r-0 border-l-0 border-b-2 border-transparent"},[e.displaydesc?[r("span",{attrs:{title:e.servermodel}},[e._v(e._s(e.serverdesc))]),r("span",{staticClass:"text-grey-mid px-8px"},[e._v("•")])]:e._e(),r("span",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.internalip,expression:"internalip",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:e.copyIpSuccess,expression:"copyIpSuccess",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:e.copyIpError,expression:"copyIpError",arg:"error"}],staticClass:"cursor-pointer",attrs:{title:e.$t("lanIp",[e.internalip])}},[e._v(e._s(e.servername))]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.copyingIp?r("span",{staticClass:"text-12px absolute right-0 bg-gradient-to-r from-red to-orange text-center block w-100px rounded"},[e._v(e._s(e.$t("upc.lanIpCopied")))]):e._e(),e.copyingIpFailed?r("span",{directives:[{name:"on-clickaway",rawName:"v-on-clickaway",value:e.copyFailedClickaway,expression:"copyFailedClickaway"}],staticClass:"text-12px font-semibold px-4px absolute right-0 bg-gradient-to-r from-red to-orange text-center block rounded",on:{mouseenter:e.hoverCopyFailed,mouseleave:e.leaveCopyFailed}},[e._v("LAN IP: "),r("span",{staticClass:"select-all"},[e._v(e._s(e.internalip))])]):e._e()])],2),r("div",{staticClass:"block w-2px h-24px ml-16px bg-grey-mid"}),r("div",{directives:[{name:"on-clickaway",rawName:"v-on-clickaway",value:e.closeDropdown,expression:"closeDropdown"}],staticClass:"relative flex items-center justify-end h-full",on:{mouseenter:function(t){return e.dropdownMouseEnter()},mouseleave:function(t){return e.dropdownMouseLeave()}}},[r("button",{staticClass:"UnraidUPC-username group text-18px hover:text-alpha focus:text-alpha border border-transparent flex flex-row justify-end items-center h-full px-16px outline-none focus:outline-none",class:{"text-orange-dark":e.isLaunchpadOpen||!e.username&&!e.stateData.error,"text-alpha":e.username&&!e.isLaunchpadOpen,"text-red":e.stateData.error},attrs:{title:e.usernameButtonTitle},on:{click:function(t){return e.usernameAvatarButton()}}},[e.myServersOutOfDate&&e.myServersOutOfDate.enabled&&!e.myServersOutOfDate.error?r("UnraidSvgUtilInfo",{staticClass:"text-red fill-current relative w-14px h-14px mr-8px"}):e.showWarningIcon?r("UnraidSvgUiWarning",{staticClass:"text-red fill-current relative w-24px h-24px mr-8px"}):e._e(),e.usernameButtonText?r("span",{staticClass:"inline-flex items-center bg-transparent border-t-0 border-l-0 border-r-0 border-b-2 border-transparent group-hover:border-orange-dark group-focus:border-orange-dark transition-colors duration-150 ease-in-out"},[e._v(" "+e._s(e.usernameButtonText)+" "),e.registered&&!e.isLaunchpadOpen?r("UnraidSvgUtilSelect",{staticClass:"fill-current w-8px h-8px ml-8px"}):e._e()],1):e._e(),r("span",{staticClass:"relative z-0 flex items-center justify-center w-36px h-36px rounded-full",class:{"ml-8px":e.usernameButtonText,"bg-transparent":e.registered&&!e.avatarFail,"bg-gradient-to-r from-red to-orange":!e.registered||e.avatarFail},on:{mouseenter:function(t){e.hoverImage=!0},mouseleave:function(t){e.hoverImage=!1}}},[e.registered&&!e.avatarFail?r("img",{staticClass:"absolute z-10 inset-0 w-36px h-36px rounded-full overflow-hidden",attrs:{src:e.avatar,alt:""+e.$t("upc.avatarAlt",[e.username])},on:{error:e.onAvatarError}}):[e.hoverImage?r("UnraidLoading",{staticClass:"relative z-0 w-28px",attrs:{title:e.usernameButtonTitle,"gradient-start":"#fff","gradient-stop":"#fff",height:28}}):r("UnraidLogoMark",{staticClass:"relative z-0 w-28px",attrs:{title:e.usernameButtonTitle,"gradient-start":"#fff","gradient-stop":"#fff"}})]],2),e.usernameButtonText?e._e():r("UnraidSvgUtilSelect",{staticClass:"fill-current w-8px h-8px ml-8px"})],1),r("transition",{attrs:{name:"slideVerticalFade",mode:"out-in"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.dropdownVisible,expression:"dropdownVisible"}],staticClass:"UnraidUPC-dropdown",class:{"border-grey-darkest":e.darkMode,"border-grey-light":!e.darkMode}},[e.hideMyServers?e._e():r("header",{staticClass:"text-14px pt-16px px-16px rounded-t"},[r("h5",{staticClass:"text-18px leading-none inline-flex flex-row items-center"},[r("span",{staticClass:"font-semibold"},[e._v(e._s(e.$t("upc.myServers.heading")))]),r("ui-beta",{staticClass:"ml-8px"}),e.myServersEnv?r("span",{staticClass:"ml-8px",attrs:{title:"API • "+e.myServersEnv}},[e._v("⚙️")]):e._e(),e.devEnv?r("span",{staticClass:"ml-8px",attrs:{title:e.devEnv}},[e._v("⚠️")]):e._e()],1)]),r("ul",{staticClass:"list-reset my-8px p-0"},[e.hideMyServers||e.registered?e._e():[r("li",[r("button",{staticClass:"group flex flex-row items-center justify-between",attrs:{title:e.$t("upc.opensNewHttpsWindow.base",[e.$t("signInUp")])},on:{click:function(t){return e.openPopUp(e.wizardWindow)}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilGlobe",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.$t("signInUp"))+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"text-white opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]),r("li",{staticClass:"my-8px mx-12px"},[r("hr",{staticClass:"w-full h-2px bg-gradient-to-r from-red to-orange shadow-none border-none rounded-none"})])],e.displayKeylineBelowActions?[e.stateData.actions.includes("startTrial")?r("KeyAction",{attrs:{text:e.$t("actions.startTrial")},on:{click:function(t){return e.startTrial()}}}):e._e(),e.stateData.actions.includes("purchase")?[r("KeyAction",{attrs:{text:e.$t("actions.purchase")},on:{click:function(t){return e.openPopUp(e.purchaseWindow)}}}),r("KeyAction",{attrs:{text:e.$t("actions.redeemActivationCode")},on:{click:function(t){return e.openPopUp(e.redeemWindow)}}})]:e._e(),e.stateData.actions.includes("upgrade")?r("KeyAction",{attrs:{text:e.$t("actions.upgrade")},on:{click:function(t){return e.openPopUp(e.purchaseWindow)}}}):e._e(),e.stateData.actions.includes("recover")?r("KeyAction",{attrs:{text:e.$t("actions.recover")},on:{click:function(t){return e.openPopUp(e.recoverKeyPayload)}}}):e._e(),e.stateData.actions.includes("replace")?r("KeyAction",{attrs:{text:e.$t("actions.replace")},on:{click:function(t){return e.openPopUp(e.replaceKeyPayload)}}}):e._e(),e.stateData.actions.includes("extend")?r("KeyAction",{attrs:{text:e.$t("actions.extend")},on:{click:function(t){return e.openPopUp(e.extendTrialPayload)}}}):e._e(),r("li",{staticClass:"my-8px mx-12px"},[r("hr",{staticClass:"w-full h-2px bg-gradient-to-r from-red to-orange shadow-none border-none rounded-none"})])]:e._e(),!e.hideMyServers&&e.registered||e.pirateKey||e.stateData.error.message||e.errorTooManyDisks||e.myServersOutOfDate.enabled||e.plgInstallFailed?r("MyServers",{attrs:{hideMyServers:e.hideMyServers,errorStateMessageVisible:e.errorStateMessageVisible,hideotherservers:e.hideotherservers},on:{"contact-support":function(t){return e.openPopUp(e.troubleshootPayload)},"toggle-error":function(t){e.errorStateMessageVisible=!e.errorStateMessageVisible}}}):e._e(),e._l(e.extraLinks,(function(t,n){return[t.url?r("li",{key:n},[r("a",{staticClass:"flex flex-row items-center",attrs:{href:t.url,target:t.external?"_blank":"",rel:t.external?"noopener noreferrer":"",title:t.title}},[t.external?r("UnraidSvgUtilNewWindow",{staticClass:"flex-shrink-0 fill-current w-12px h-12px mr-8px"}):e._e(),t.settings?r("UnraidSvgUtilEdit",{staticClass:"flex-shrink-0 fill-current w-12px h-12px mr-8px"}):e._e(),t.info?r("UnraidSvgUtilInfo",{staticClass:"flex-shrink-0 fill-current w-12px h-12px mr-8px"}):e._e(),e._v(" "+e._s(t.text)+" ")],1)]):r("div",{key:n+"_else",staticClass:"mx-12px"},[r("hr",{staticClass:"w-full h-2px my-8px bg-gradient-to-r from-red to-orange shadow-none border-none rounded-none"})])]})),e.hideMyServers?r("li",[r("button",{staticClass:"group flex flex-row items-center justify-between",attrs:{title:e.$t("upc.enhanceYourExperienceWithMyServers")},on:{click:function(t){return e.togglePromo()}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilInfo",{staticClass:"flex-shrink-0 fill-current w-12px h-12px mr-8px"}),r("span",[e._v(" "+e._s(e.$t("upc.enhanceYourExperienceWithMyServers"))+" "),r("ui-beta",{staticClass:"inline-block transform scale-90 opacity-70",attrs:{colorClasses:"text-beta border-beta group-hover:text-white group-focus:text-white group-hover:border-white group-focus:border-white"}})],1)],1)])]):[e.registered&&!e.plgInstallFailed?r("li",[r("button",{staticClass:"group flex flex-row items-center justify-between",attrs:{title:e.$t("upc.opensNewHttpsWindow.base",[e.$t("actions.signOutUnraidNet")])},on:{click:function(t){return e.openPopUp(e.signOutPayload)}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilLogout",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.$t("actions.signOutUnraidNet"))+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"text-white opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]):r("li",{staticClass:"relative"},[e.showRemoveBtns?e.showRemoveBtns&&!e.removingPlg?r("div",{staticClass:"flex flex-col bg-alpha"},[r("p",{staticClass:"text-12px text-center font-semibold px-16px pb-8px"},[r("em",[e._v(e._s(e.$t("upc.confirmMyServersPluginRemoval")))])]),r("div",{staticClass:"flex flex-row"},[r("button",{staticClass:"group relative bg-transparent flex flex-row justify-between items-center",attrs:{title:e.$t("upc.continueUsingMyServers")},on:{click:function(t){return e.toggleRemovePlgBtns()}}},[e._v(" "+e._s(e.$t("regWizPopUp.forms.cancel"))+" "),r("UnraidSvgUtilThumbsUp",{staticClass:"text-white opacity-0 group-hover:opacity-100 group-focus:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px"})],1),r("button",{staticClass:"btn-remove group relative flex flex-row justify-between items-center",attrs:{title:e.$t("upc.confirmMyServersPluginRemoval")},on:{click:function(t){return e.removePlugin()}}},[e._v(" "+e._s(e.$t("regWizPopUp.forms.confirm"))+" "),r("UnraidSvgUtilDelete",{staticClass:"text-white opacity-0 group-hover:opacity-100 group-focus:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px"})],1)])]):r("button",{attrs:{disabled:""}},[e._v(" "+e._s(e.$t("upc.removingMyServersPlugin"))+" ")]):r("button",{staticClass:"text-black flex flex-row items-center justify-between",attrs:{title:e.$t("upc.removeMyServersPlugin")},on:{click:function(t){return e.toggleRemovePlgBtns()}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilDelete",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.$t("upc.removeMyServersPlugin"))+" ")],1)])])]],2)])])],1)])],1)}),[],!1,(function(e){var t=r("e519");t.__inject__&&t.__inject__(e)}),null,null,!0).exports;var Co=v({i18n:he,store:di,name:"WanIpCheck",props:{phpWanIp:{type:String,default:""}},computed:{...Object(b.e)(["wanip","site"]),...Object(b.c)(["isRemoteAccess"]),loading(){return!this.wanip}},methods:{...Object(b.b)(["getWanIp"])},created(){Fe.debug("[🍣 WanIpCheck 🍣]"),this.wanip||this.getWanIp()}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{appear:"",name:"fade",mode:"out-in"}},[e.loading?r("span",{domProps:{innerHTML:e._s(e.$t("wanIpCheck.checking")+"…")}}):[e.phpWanIp?[e.isRemoteAccess?r("span",{domProps:{innerHTML:e._s(e.$t("wanIpCheck.match",[e.phpWanIp]))}}):e.phpWanIp!==e.wanip||e.isRemoteAccess?r("span",{staticClass:"mismatch",domProps:{innerHTML:e._s(e.$t("wanIpCheck.mismatch",[e.phpWanIp,e.wanip]))}}):r("span",{domProps:{innerHTML:e._s(e.$t("wanIpCheck.match",[e.wanip]))}})]:r("span",{staticClass:"error",domProps:{innerHTML:e._s(e.$t("wanIpCheck.resolveError"))}})]],2)}),[],!1,(function(e){var t=r("6e03");t.__inject__&&t.__inject__(e)}),"4ca8352c",null,!0).exports;window.customElements.define("unraid-authed",g(o.default,fi)),window.customElements.define("unraid-launchpad",g(o.default,Di)),window.customElements.define("unraid-promo",g(o.default,qi)),window.customElements.define("unraid-upc-trigger",g(o.default,Yi)),window.customElements.define("unraid-user-profile",g(o.default,Ro)),window.customElements.define("unraid-wan-ip-check",g(o.default,Co))},"5b71":function(e,t,r){"use strict";r.r(t);var n=r("c725");for(var i in n)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(i)},"5d74":function(e,t,r){e.exports={options:{},ssr:function(e,t){var r=e.data,n=r.attrs,i=n.symbol,o=n.size,a=this.getAttributes(o);a&&(r.attrs=Object.assign({},r.attrs,a)),o&&delete r.attrs.size,i&&delete r.attrs.symbol;var s=r.class,c=r.staticClass||"";c+=s?Object.keys(s).join(" "):"",this.hasClass(c)||(r.staticClass=r.staticClass?r.staticClass+" "+this.options.class:this.options.class);var l=e.context.$createElement("use",{attrs:{href:this.getHref(i)}});Array.isArray(e.children)?e.children.push(l):e.children=[l]},install:function(e,t){void 0===t&&(t={}),this.options.class=t.class||"icon",this.options.url=void 0===t.url?"/assets/svg/sprite.svg":t.url;var r=this;e.directive("svg",{bind:function(e,t,n){var i=t.value||n.data.attrs.symbol,o=n.data.attrs&&n.data.attrs.size,a=r.getAttributes(o);a&&(e.setAttribute("viewBox",a.viewBox),e.setAttribute("width",a.width),e.setAttribute("height",a.height)),i&&e.removeAttribute("symbol"),o&&e.removeAttribute("size");var s=e.getAttribute("class");if(r.hasClass(s)||e.setAttribute("class",s?s+" "+r.options.class:r.options.class),!e||null===e.querySelector("use")){var c=document.createElementNS("http://www.w3.org/2000/svg","use"),l=r.getHref(i);c.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l),c.setAttribute("href",l),e.appendChild(c)}},update:function(e,t,n){var i=r.getHref(t.value||n.data.attrs.symbol),o=e&&e.querySelector("use");if(o){if(o.getAttribute("href")===i)return!1;var a=document.createElementNS("http://www.w3.org/2000/svg","use");a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i),a.setAttribute("href",i),e.replaceChild(a,o)}}})},getAttributes:function(e){if(!e)return null;var t=e.toString().replace(/( |, |,)/g," ").split(" "),r=t.length;if(3===r||r>4)return console.warn('[vue-svg-sprite] size: "'+e+'" is not valid'),null;var n=[];n[0]=r<4?0:t[0],n[1]=r<4?0:t[1];var i=n[2]=r<4?t[0]:t[2];return{height:n[3]=t[r-1],viewBox:n.join(" "),width:i}},hasClass:function(e){var t=this.options.class;return!!e&&e.split(" ").some((function(e){var r=e.split(/(-|_)/)[0];return-1!==r.indexOf(t)&&r.length===t.length}))},getHref:function(e){return""===this.options.url?"#"+e:this.options.url+"#"+e}}},"607e":function(e,t){e.exports={functional:!0,render(e,t){const{_c:r,_v:n,data:i,children:o=[]}=t,{class:a,staticClass:s,style:c,staticStyle:l,attrs:u={},...p}=i;return r("svg",{class:[a,s],style:[c,l],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u),...p},o.concat([r("path",{attrs:{"fill-rule":"evenodd",d:"M0 7h2v8l-2 1V7zm3.5 7V7C5 6.7 6.365 4.915 7.595 1.646A1.767 1.767 0 019.25.5c.69 0 1.25.56 1.25 1.25V6h3.09a2 2 0 011.966 2.369l-.75 4A2 2 0 0112.84 14H3.5z"}})]))}}},6210:function(e,t,r){e.exports=function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),r={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function n(e,t,n){var i=r[n];return Array.isArray(i)&&(i=i[t?0:1]),i.replace("%d",e)}var i={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan_Feb_März_Apr_Mai_Juni_Juli_Aug_Sept_Okt_Nov_Dez".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n}};return t.default.locale(i,null,!0),i}(r("5a0c"))},"626e":function(e,t,r){"use strict";var n=[/passw(or)?d/i,/^pw$/,/^pass$/i,/secret/i,/token/i,/api[-._]?key/i,/session[-._]?id/i,/^connect\.sid$/],i=[/^\d{4}[- ]?\d{4}[- ]?\d{4}[- ]?\d{4}$/];t.key=function(e){return n.some((function(t){return t.test(e)}))},t.value=function(e){return i.some((function(t){return t.test(e)}))}},"633a":function(e,t,r){"use strict";(function(e){var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0){var s=t.shift();s&&s.applyMiddleware.apply(i,[e,o])}else r(e)};o()}(a(t.middlewares),t)}))},e.prototype.use=function(e){var t=this;return e.map((function(e){if("function"!=typeof e.applyMiddleware)throw new Error("Middleware must implement the applyMiddleware function.");t.middlewares.push(e)})),this},e.prototype.getConnectionParams=function(e){return function(){return new Promise((function(t,r){if("function"==typeof e)try{return t(e.call(null))}catch(e){return r(e)}t(e)}))}},e.prototype.executeOperation=function(e,t){var r=this;null===this.client&&this.connect();var n=this.generateOperationId();return this.operations[n]={options:e,handler:t},this.applyMiddlewares(e).then((function(e){r.checkOperationOptions(e,t),r.operations[n]&&(r.operations[n]={options:e,handler:t},r.sendMessage(n,b.default.GQL_START,e))})).catch((function(e){r.unsubscribe(n),t(r.formatErrors(e))})),n},e.prototype.getObserver=function(e,t,r){return"function"==typeof e?{next:function(t){return e(t)},error:function(e){return t&&t(e)},complete:function(){return r&&r()}}:e},e.prototype.createMaxConnectTimeGenerator=function(){var e=this.minWsTimeout,t=this.wsTimeout;return new l({min:e,max:t,factor:1.2})},e.prototype.clearCheckConnectionInterval=function(){this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnectionIntervalId=null)},e.prototype.clearMaxConnectTimeout=function(){this.maxConnectTimeoutId&&(clearTimeout(this.maxConnectTimeoutId),this.maxConnectTimeoutId=null)},e.prototype.clearTryReconnectTimeout=function(){this.tryReconnectTimeoutId&&(clearTimeout(this.tryReconnectTimeoutId),this.tryReconnectTimeoutId=null)},e.prototype.clearInactivityTimeout=function(){this.inactivityTimeoutId&&(clearTimeout(this.inactivityTimeoutId),this.inactivityTimeoutId=null)},e.prototype.setInactivityTimeout=function(){var e=this;this.inactivityTimeout>0&&0===Object.keys(this.operations).length&&(this.inactivityTimeoutId=setTimeout((function(){0===Object.keys(e.operations).length&&e.close()}),this.inactivityTimeout))},e.prototype.checkOperationOptions=function(e,t){var r=e.query,n=e.variables,i=e.operationName;if(!r)throw new Error("Must provide a query.");if(!t)throw new Error("Must provide an handler.");if(!p.default(r)&&!h.getOperationAST(r,i)||i&&!p.default(i)||n&&!d.default(n))throw new Error("Incorrect option types. query must be a string or a document,`operationName` must be a string, and `variables` must be an object.")},e.prototype.buildMessage=function(e,t,r){return{id:e,type:t,payload:r&&r.query?n(n({},r),{query:"string"==typeof r.query?r.query:f.print(r.query)}):r}},e.prototype.formatErrors=function(e){return Array.isArray(e)?e:e&&e.errors?this.formatErrors(e.errors):e&&e.message?[e]:[{name:"FormatedError",message:"Unknown error",originalError:e}]},e.prototype.sendMessage=function(e,t,r){this.sendMessageRaw(this.buildMessage(e,t,r))},e.prototype.sendMessageRaw=function(e){switch(this.status){case this.wsImpl.OPEN:var t=JSON.stringify(e);try{JSON.parse(t)}catch(t){this.eventEmitter.emit("error",new Error("Message must be JSON-serializable. Got: "+e))}this.client.send(t);break;case this.wsImpl.CONNECTING:this.unsentMessagesQueue.push(e);break;default:this.reconnecting||this.eventEmitter.emit("error",new Error("A message was not sent because socket is not connected, is closing or is already closed. Message was: "+JSON.stringify(e)))}},e.prototype.generateOperationId=function(){return String(++this.nextOperationId)},e.prototype.tryReconnect=function(){var e=this;if(this.reconnect&&!(this.backoff.attempts>=this.reconnectionAttempts)){this.reconnecting||(Object.keys(this.operations).forEach((function(t){e.unsentMessagesQueue.push(e.buildMessage(t,b.default.GQL_START,e.operations[t].options))})),this.reconnecting=!0),this.clearTryReconnectTimeout();var t=this.backoff.duration();this.tryReconnectTimeoutId=setTimeout((function(){e.connect()}),t)}},e.prototype.flushUnsentMessagesQueue=function(){var e=this;this.unsentMessagesQueue.forEach((function(t){e.sendMessageRaw(t)})),this.unsentMessagesQueue=[]},e.prototype.checkConnection=function(){this.wasKeepAliveReceived?this.wasKeepAliveReceived=!1:this.reconnecting||this.close(!1,!0)},e.prototype.checkMaxConnectTimeout=function(){var e=this;this.clearMaxConnectTimeout(),this.maxConnectTimeoutId=setTimeout((function(){e.status!==e.wsImpl.OPEN&&(e.reconnecting=!0,e.close(!1,!0))}),this.maxConnectTimeGenerator.duration())},e.prototype.connect=function(){var e,t=this;this.client=new((e=this.wsImpl).bind.apply(e,a([void 0,this.url,this.wsProtocols],this.wsOptionArguments))),this.checkMaxConnectTimeout(),this.client.onopen=function(){return i(t,void 0,void 0,(function(){var e,t;return o(this,(function(r){switch(r.label){case 0:if(this.status!==this.wsImpl.OPEN)return[3,4];this.clearMaxConnectTimeout(),this.closedByUser=!1,this.eventEmitter.emit(this.reconnecting?"reconnecting":"connecting"),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.connectionParams()];case 2:return e=r.sent(),this.sendMessage(void 0,b.default.GQL_CONNECTION_INIT,e),this.flushUnsentMessagesQueue(),[3,4];case 3:return t=r.sent(),this.sendMessage(void 0,b.default.GQL_CONNECTION_ERROR,t),this.flushUnsentMessagesQueue(),[3,4];case 4:return[2]}}))}))},this.client.onclose=function(){t.closedByUser||t.close(!1,!1)},this.client.onerror=function(e){t.eventEmitter.emit("error",e)},this.client.onmessage=function(e){var r=e.data;t.processReceivedData(r)}},e.prototype.processReceivedData=function(e){var t,r;try{r=(t=JSON.parse(e)).id}catch(t){throw new Error("Message must be JSON-parseable. Got: "+e)}if(-1===[b.default.GQL_DATA,b.default.GQL_COMPLETE,b.default.GQL_ERROR].indexOf(t.type)||this.operations[r])switch(t.type){case b.default.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(t.payload);break;case b.default.GQL_CONNECTION_ACK:this.eventEmitter.emit(this.reconnecting?"reconnected":"connected",t.payload),this.reconnecting=!1,this.backoff.reset(),this.maxConnectTimeGenerator.reset(),this.connectionCallback&&this.connectionCallback();break;case b.default.GQL_COMPLETE:var i=this.operations[r].handler;delete this.operations[r],i.call(this,null,null);break;case b.default.GQL_ERROR:this.operations[r].handler(this.formatErrors(t.payload),null),delete this.operations[r];break;case b.default.GQL_DATA:var o=t.payload.errors?n(n({},t.payload),{errors:this.formatErrors(t.payload.errors)}):t.payload;this.operations[r].handler(null,o);break;case b.default.GQL_CONNECTION_KEEP_ALIVE:var a=void 0===this.wasKeepAliveReceived;this.wasKeepAliveReceived=!0,a&&this.checkConnection(),this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnection()),this.checkConnectionIntervalId=setInterval(this.checkConnection.bind(this),this.wsTimeout);break;default:throw new Error("Invalid message type!")}else this.unsubscribe(r)},e.prototype.unsubscribe=function(e){this.operations[e]&&(delete this.operations[e],this.setInactivityTimeout(),this.sendMessage(e,b.default.GQL_STOP,void 0))},e}();t.SubscriptionClient=y}).call(this,r("c8ba"))},6788:function(e,t){e.exports={functional:!0,render(e,t){const{_c:r,_v:n,data:i,children:o=[]}=t,{class:a,staticClass:s,style:c,staticStyle:l,attrs:u={},...p}=i;return r("svg",{class:[a,s],style:[c,l],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u),...p},o.concat([r("path",{attrs:{"fill-rule":"evenodd",d:"M0 6l5.584-.5L8 0l2.5 5.5L16 6l-4 4 1 6-5-3.5L3 16l1-6z"}})]))}}},6981:function(e,t,r){ + }`}).subscribe({next(t){Fe.debug("[🪐 serverStateFromApi] serverRegistrationSub res %o",t),e.commit("SET_REGISTRATION_SUB",t.data.registration)},error:t=>(e.commit("SET_MY_SERVERS_ERROR",t),e.state.myServersError)}))),Fe.debug("[🪐 serverStateFromApi] DONE %o",r.data),r.data},stopGraphqlClient:(e,t)=>(Fe.debug("[stopGraphqlClient] clients %o",{clients:On,apikey:t}),Object.keys(On).includes(t)?(Fe.debug("[stopGraphqlClient] found existing client & stopping it %o",On[t]),On[t].stop()):Fe.debug("[stopGraphqlClient] client does not exist for apikey %o",t))};o.default.use(b.a),o.default.config.devtools=!0;var di=new b.a.Store({state:_e,getters:Me,mutations:$e,actions:pi});var fi=v({i18n:he,store:di,name:"Authed",props:["propRegistered"],data:()=>({regChanged:!1,popUpClosedTimer:null}),computed:{...Object(b.e)(["state","registered","isPopUpOpen","signOutPayload","wizardWindow"]),...Object(b.c)(["stateData"]),computedReg(){return null===this.registered?!!this.propRegistered:this.registered},buttonPayload(){return this.stateData.error?this.wizardWindow:this.computedReg?this.signOutPayload:this.wizardWindow},buttonText(){return this.stateData.error?this.$t("fixError"):this.isPopUpOpen?this.$t("backToPopUp"):"ENOKEYFILE"===this.state?this.$t("getStarted"):this.computedReg?this.$t("signOut"):this.$t("signIn")},buttonTitle(){return this.$t("upc.opensNewHttpsWindow.base",[this.buttonText])}},watch:{isPopUpOpen(e){!e&&this.regChanged&&(Fe.debug("[REGISTERED CHANGED] 🔥 reload webGUI settings"),window.location.reload())},registered(e,t){null!==t&&e!==this.propRegistered&&(Fe.debug("[REGISTERED CHANGED]",{newVal:e,oldVal:t}),this.regChanged=!0,this.isPopUpOpen||(Fe.debug("[REGISTERED CHANGED] 🔥🔥 reload webGUI settings"),window.location.reload()))}},methods:{...Object(b.b)(["closePopUp","openPopUp"])}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{appear:"",name:"fade",mode:"out-in"}},[r("div",[r("button",{attrs:{type:"button",title:e.buttonTitle},on:{click:function(t){return e.openPopUp(e.buttonPayload)}}},[e._v(e._s(e.buttonText))]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.isPopUpOpen?r("button",{staticClass:"ml-8px",attrs:{type:"button"},on:{click:function(t){return e.closePopUp()}}},[e._v(e._s(e.$t("closePopUp")))]):e._e()])],1)])}),[],!1,(function(e){var t=r("dfd4");t.__inject__&&t.__inject__(e)}),"5e5ba4da",null,!0).exports,hi=(v({name:"keyline",props:{color:{type:String,default:"grey"}},computed:{computedClass(){return"gradient"===this.color?"h-2px bg-gradient-r-red-orange":"h-1px bg-grey"}}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("hr",{staticClass:"w-full shadow-none border-none rounded-none",class:e.computedClass})}),[],!1,null,null,null,!0).exports,function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("svg",{staticClass:"unraid_sc_loader",style:e.styles,attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 133.52 76.97",height:e.height+"px",role:"img"}},[r("title",[e._v(e._s(e.title))]),r("desc",[e._v("Unraid logo animating with a wave like effect")]),r("defs",[r("linearGradient",{attrs:{id:e.random,x1:"23.76",y1:"81.49",x2:"109.76",y2:"-4.51",gradientUnits:"userSpaceOnUse"}},[r("stop",{attrs:{offset:"0","stop-color":e.gradientStart}}),r("stop",{attrs:{offset:"1","stop-color":e.gradientStop}})],1)],1),r("path",{staticClass:"unraid_sc_loader_9",attrs:{d:"m70,19.24zm57,0l6.54,0l0,38.49l-6.54,0l0,-38.49z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_8",attrs:{d:"m70,19.24zm47.65,11.9l-6.55,0l0,-23.79l6.55,0l0,23.79z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_7",attrs:{d:"m70,19.24zm31.77,-4.54l-6.54,0l0,-14.7l6.54,0l0,14.7z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_6",attrs:{d:"m70,19.24zm15.9,11.9l-6.54,0l0,-23.79l6.54,0l0,23.79z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_5",attrs:{d:"m63.49,19.24l6.51,0l0,38.49l-6.51,0l0,-38.49z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_4",attrs:{d:"m70,19.24zm-22.38,26.6l6.54,0l0,23.78l-6.54,0l0,-23.78z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_3",attrs:{d:"m70,19.24zm-38.26,43.03l6.55,0l0,14.73l-6.55,0l0,-14.73z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_2",attrs:{d:"m70,19.24zm-54.13,26.6l6.54,0l0,23.78l-6.54,0l0,-23.78z",fill:"url(#"+e.random+")"}}),r("path",{staticClass:"unraid_sc_loader_1",attrs:{d:"m70,19.24zm-63.46,38.49l-6.54,0l0,-38.49l6.54,0l0,38.49z",fill:"url(#"+e.random+")"}})])});var mi=v({name:"loading",props:{height:{type:Number,default:64},styles:{type:Object,default:()=>({})},gradientStart:{type:String,default:"#e32929"},gradientStop:{type:String,default:"#ff8d30"},title:{type:String,default:"Loading"}},data:()=>({random:Math.random().toString(36).substring(7)})},hi,[],!1,(function(e){var t=r("ef7a");t.__inject__&&t.__inject__(e)}),null,null,!0).exports,gi=(v({name:"logo",props:{gradientStart:{type:String,default:"#e32929"},gradientStop:{type:String,default:"#ff8d30"}},data:()=>({random:Math.random().toString(36).substring(7)})},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 222.36 39.04"}},[r("defs",[r("linearGradient",{attrs:{id:e.random,x1:"47.53",y1:"79.1",x2:"170.71",y2:"-44.08",gradientUnits:"userSpaceOnUse"}},[r("stop",{attrs:{offset:"0","stop-color":e.gradientStart}}),r("stop",{attrs:{offset:"1","stop-color":e.gradientStop}})],1)],1),r("title",[e._v("Unraid Logo")]),r("path",{attrs:{d:"M146.7,29.47H135l-3,9h-6.49L138.93,0h8l13.41,38.49h-7.09L142.62,6.93l-5.83,16.88h8ZM29.69,0V25.4c0,8.91-5.77,13.64-14.9,13.64S0,34.31,0,25.4V0H6.54V25.4c0,5.17,3.19,7.92,8.25,7.92s8.36-2.75,8.36-7.92V0ZM50.86,12v26.5H44.31V0h6.11l17,26.5V0H74V38.49H67.9ZM171.29,0h6.54V38.49h-6.54Zm51.07,24.69c0,9-5.88,13.8-15.17,13.8H192.67V0H207.3c9.18,0,15.06,4.78,15.06,13.8ZM215.82,13.8c0-5.28-3.3-8.14-8.52-8.14h-8.08V32.77h8c5.33,0,8.63-2.8,8.63-8.08ZM108.31,23.92c4.34-1.6,6.93-5.28,6.93-11.55C115.24,3.68,110.18,0,102.48,0H88.84V38.49h6.55V5.66h6.87c3.8,0,6.21,1.82,6.21,6.71s-2.41,6.76-6.21,6.76H98.88l9.21,19.36h7.53Z",fill:"url(#"+e.random+")"}})])}),[],!1,null,null,null,!0).exports,function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 133.52 76.97"}},[r("title",[e._v("unraid-mark")]),r("defs",[r("linearGradient",{attrs:{id:e.random,x1:"23.76",y1:"81.49",x2:"109.76",y2:"-4.51",gradientUnits:"userSpaceOnUse"}},[r("stop",{attrs:{offset:"0","stop-color":e.gradientStart}}),r("stop",{attrs:{offset:"1","stop-color":e.gradientStop}})],1)],1),r("path",{attrs:{fill:"url(#"+e.random+")",d:"M63.49,19.24H70V57.73H63.49ZM6.54,57.73H0V19.24H6.54Zm25.2,4.54h6.55V77H31.74ZM15.87,45.84h6.54V69.62H15.87Zm31.75,0h6.54V69.62H47.62ZM127,19.24h6.54V57.73H127ZM101.77,14.7H95.23V0h6.54Zm15.88,16.44H111.1V7.35h6.55Zm-31.75,0H79.36V7.35H85.9Z"}})])}),vi=v({name:"logo",props:{gradientStart:{type:String,default:"#e32929"},gradientStop:{type:String,default:"#ff8d30"}},data:()=>({random:Math.random().toString(36).substring(7)})},gi,[],!1,null,null,null,!0).exports,bi=r("5d74"),yi=r.n(bi);o.default.use(yi.a,{url:(Object({VUE_APP_REGWIZ_URL:"https://registration.unraid.net",VUE_APP_PURCHASE_URL:"https://unraid.net/preflight",VUE_APP_MIN_API_VER:"2.37.1",VUE_APP_REC_API_VER:"2.47.1",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_SPRITE_URL_PREFIX?Object({VUE_APP_REGWIZ_URL:"https://registration.unraid.net",VUE_APP_PURCHASE_URL:"https://unraid.net/preflight",VUE_APP_MIN_API_VER:"2.37.1",VUE_APP_REC_API_VER:"2.47.1",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_SPRITE_URL_PREFIX:"")+"/assets/svg/sprite.svg",class:"svg-icon"});var wi=(v({name:"svg-icon",props:{symbol:{type:String,required:!0},symbolClass:String}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("svg",{directives:[{name:"svg",rawName:"v-svg"}],staticClass:"unraid-svg-icon",class:e.symbolClass,attrs:{symbol:e.symbol,title:e.symbol,role:"presentation"}})}),[],!1,(function(e){var t=r("39a1");t.__inject__&&t.__inject__(e)}),"3b60bb54",null,!0).exports,function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"text-center w-full"},[r("header",[r("h2",{staticClass:"text-24px md:text-30px"},[r("span",{domProps:{innerHTML:e._s(e.computedHeading)}}),e.showTrialWelcome?r("ui-beta",{staticClass:"title-beta relative ml-4px"}):e._e()],1),r("div",{staticClass:"text-14px opacity-90 mt-12px mx-auto prose",class:{"text-center":e.stateData.messageCenter||e.showTrialWelcome,"text-left":!e.stateData.messageCenter}},[r("div",{domProps:{innerHTML:e._s(e.computedSubheading)}}),e.showExpiretime?r("HelperTimeConvert",{staticClass:"italic text-center font-semibold mt-16px"}):e._e()],1)]),r("div",{staticClass:"ActionRequired flex flex-col justify-center mt-16px"},[e.isPopUpOpen?[r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{text:e.$t("backToPopUp")},on:{"btn-click":function(t){return e.openPopUp(e.signInPayload)}}}),r("UiButton",{staticClass:"button-fine-error text-grey-mid w-full mt-8px",attrs:{text:e.$t("closePopUp")},on:{"btn-click":function(t){return e.closePopUp()}}})]:[(!e.hideMyServers||e.apiVersion&&"0.0.0"!==e.apiVersion)&&e.stateData.actions.includes("register")?[r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"SignIn":null,text:e.$t("signIn")},on:{"btn-click":function(t){return e.openPopUp(e.signInPayload)}}}),e.guidRegistered||e.forumaccount?e._e():r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"SignUp":null,text:e.$t("signUp")},on:{"btn-click":function(t){return e.openPopUp(e.signUpPayload)}}})]:e._e(),"TRIAL"===e.state&&e.hideMyServers&&!e.CAN_POST_MESSAGE?r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{text:e.$t("upc.enhanceYourExperienceWithMyServers")},on:{"btn-click":function(t){return e.togglePromo()}}}):e._e(),e.stateData.actions.includes("startTrial")&&!e.CAN_POST_MESSAGE?r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{text:e.$t("actions.startTrial")},on:{"btn-click":function(t){return e.startTrial()}}}):e._e(),e.stateData.actions.includes("purchase")?r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{hrefUrl:e.CAN_POST_MESSAGE?e.purchaseWindow.url:null,text:e.$t("actions.purchase")},on:{"btn-click":function(t){return e.openPopUp(e.purchaseWindow)}}}):e._e(),e.stateData.actions.includes("purchase")?r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{hrefUrl:e.CAN_POST_MESSAGE?e.redeemWindow.url:null,text:"Redeem Activation Code"},on:{"btn-click":function(t){return e.openPopUp(e.redeemWindow)}}}):e._e(),e.stateData.actions.includes("upgrade")?r("UiButton",{staticClass:"button button-alt w-full mt-8px",attrs:{hrefUrl:e.CAN_POST_MESSAGE?e.purchaseWindow.url:null,text:e.$t("actions.upgrade")},on:{"btn-click":function(t){return e.openPopUp(e.purchaseWindow)}}}):e._e(),e.stateData.actions.includes("replace")&&e.replaceable?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"ReplaceKey":null,text:e.$t("actions.replace")},on:{"btn-click":function(t){return e.openPopUp(e.replaceKeyPayload)}}}):e._e(),e.stateData.actions.includes("replace")&&!e.replaceable?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{text:e.$t("actions.replaceIneligible"),title:e.$t("stateData.EGUID.error.message.replacementIneligible"),disabled:""},on:{"btn-click":function(t){return e.niceTry()}}}):e._e(),e.stateData.actions.includes("recover")?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"RecoverKey":null,text:e.$t("actions.recover")},on:{"btn-click":function(t){return e.openPopUp(e.recoverKeyPayload)}}}):e._e(),e.stateData.actions.includes("continueTrial")?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{text:e.$t("regWizPopUp.continueTrial")},on:{"btn-click":function(t){e.CAN_POST_MESSAGE?e.closePopUpFromPopUp():e.SET_IS_LAUNCHPAD_OPEN(!1)}}}):e._e(),e.stateData.actions.includes("extend")?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"ExtendTrial":null,text:e.$t("actions.extend")},on:{"btn-click":function(t){return e.openPopUp(e.extendTrialPayload)}}}):e._e(),e.stateData.actions.includes("close")?r("UiButton",{staticClass:"button w-full mt-8px",attrs:{text:e.$t("continueToUnraid")},on:{"btn-click":function(t){e.CAN_POST_MESSAGE?e.closePopUpFromPopUp():e.SET_IS_LAUNCHPAD_OPEN(!1)}}}):e._e(),e.stateData.actions.includes("signOut")&&e.CAN_POST_MESSAGE?r("UiButton",{staticClass:"button-fine-error text-grey-mid w-full mt-8px",attrs:{routeName:e.CAN_POST_MESSAGE?"SignOut":null,text:e.$t("signOut")},on:{"btn-click":function(t){return e.openPopUp(e.signOutPayload)}}}):e._e()]],2)])}),xi=r("5a0c"),_i=r.n(xi);const Ei=(e,t,r,n,i,o,a)=>({years:e,months:t,days:r,hours:n,minutes:i,seconds:o,firstDateWasLater:a});var Si=(e,t,r)=>{let n,i=_i()(e),o=_i()(t);if(i.isSame(o))return r?Ei(0,0,0,0,0,0,!1):"";if(i.isAfter(o)){const e=i;i=o,o=e,n=!0}else n=!1;let a=o.year()-i.year(),s=o.month()-i.month(),c=o.date()-i.date(),l=o.hour()-i.hour(),u=o.minute()-i.minute(),p=o.second()-i.second();if(p<0&&(p=60+p,u-=1),u<0&&(u=60+u,l-=1),l<0&&(l=24+l,c-=1),c<0){const e=_i()(`${o.year()}-${o.month()+1}`).subtract(1,"M").daysInMonth();c=e{const r=e?_i()(parseInt(e,10)):_i()(),n=t?_i()(parseInt(t,10)):_i()();return Si(r,n,!0)};var Oi=(e,t)=>t?ki(e,""):ki("",e),Ti=r("23ad"),Ii=r.n(Ti);r("e072"),r("6210"),r("e5b7");const Ai=document.getElementsByTagName("unraid-user-profile")[0];if(Ai){const e=Ai.getAttribute("locale").slice(0,2);_i.a.locale(e),Fe.debug("[formatDate] dayjs.locale()",_i.a.locale())}_i.a.extend(Ii.a);var Ri=e=>_i()(parseInt(e,10)).format("llll"),Ci=v({data:()=>({parsedUptime:"",parsedExpireTime:""}),computed:{...Object(b.c)(["showExpiretime"]),...Object(b.e)(["state","expiretime","uptime"]),formattedUptime(){return Ri(this.uptime)},formattedExpireTime(){return Ri(this.expiretime)},timeCopy(){return this.showExpiretime?{title:"EEXPIRED"===this.state?this.$t("upc.meta.trial.expired.date",{date:this.formattedExpireTime}):this.$t("upc.meta.trial.active.date",{date:this.formattedExpireTime}),text:"EEXPIRED"===this.state?this.$t("upc.meta.trial.expired.timeDiff",{timeDiff:this.parsedExpireTime}):this.$t("upc.meta.trial.active.timeDiff",{timeDiff:this.parsedExpireTime})}:{title:this.$t("upc.meta.uptime.date",{date:this.formattedUptime}),text:this.$t("upc.meta.uptime.readable",{timeDiff:this.parsedUptime})}}},methods:{buildStringFromValues({years:e,months:t,days:r,hours:n,minutes:i,seconds:o,firstDateWasLater:a,displaySecondsInStringReturn:s}){const c=[],l={year:this.$t("year"),years:this.$t("years"),month:this.$t("month"),months:this.$t("months"),day:this.$t("day"),days:this.$t("days"),hour:this.$t("hour"),hours:this.$t("hours"),minute:this.$t("minute"),minutes:this.$t("minutes"),second:this.$t("second"),seconds:this.$t("seconds"),firstDateWasLater:this.$t("ago"),delimiter:" "},u=(e,t)=>`${e} ${l[t+(1===e?"":"s")]}`;return e&&c.push(u(e,"year")),t&&c.push(u(t,"month")),r&&c.push(u(r,"day")),n&&c.push(u(n,"hour")),i&&c.push(u(i,"minute")),!o||(e||t||r||n||i)&&!s||c.push(u(o,"second")),a&&c.push(l.firstDateWasLater),c.join(l.delimiter)},runTimeDiff(){this.uptime&&(this.parsedUptime=this.buildStringFromValues(Oi(this.uptime,!0))),this.expiretime&&(this.parsedExpireTime=this.buildStringFromValues(Oi(this.expiretime,!1)))},letsGo(){this.runTimeDiff(),this.interval=setInterval(()=>{this.runTimeDiff()},1e3)}},created(){this.letsGo()},beforeDestroy(){clearInterval(this.interval)}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("p",{staticClass:"select-all",attrs:{title:e.timeCopy.title}},[e._v(e._s(e.timeCopy.text))])}),[],!1,null,null,null,!0).exports,Pi=v({props:{hrefUrl:{type:[Boolean,URL],default:!1},routeName:{type:String},text:{type:String,required:!0}},computed:{}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.routeName?r("router-link",{attrs:{to:{name:e.routeName}}},[e._v(e._s(e.text))]):e.hrefUrl?r("a",{attrs:{href:e.hrefUrl}},[e._v(e._s(e.text))]):r("button",{on:{click:function(t){return e.$emit("btn-click")}}},[e._v(e._s(e.text))])}),[],!1,null,null,null,!0).exports,Ni=v({props:{colorClasses:{type:String,default:"text-grey-mid border-grey-mid"}}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("span",{staticClass:"text-10px uppercase py-4px px-6px border-2 rounded-full",class:e.colorClasses},[e._v(e._s(e.$t("upc.myServers.beta")))])}),[],!1,null,null,null,!0).exports;var Mi=v({components:{HelperTimeConvert:Ci,UiButton:Pi,UiBeta:Ni},props:{hidePurchaseButtons:{type:Boolean,default:!1}},data:()=>({CAN_POST_MESSAGE:Oe}),computed:{...Object(b.c)(["stateData","showExpiretime"]),...Object(b.e)(["apiVersion","extendTrialPayload","forumaccount","guidBlacklisted","guidRegistered","hideMyServers","isPopUpOpen","messages","purchaseWindow","recoverKeyPayload","redeemWindow","registered","replaceable","replaceKeyPayload","signInPayload","signOutPayload","signUpPayload","state","wizardWindow"]),showTrialWelcome(){return"ENOKEYFILE"!==this.state&&!this.state.error&&!this.hideMyServers&&!this.registered},computedHeading(){return this.showTrialWelcome?this.$t("upc.thankYouForInstallingMyServers"):this.stateData.heading?this.stateData.heading:this.stateData.error.heading},computedSubheading(){return this.showTrialWelcome?this.$t("upc.connectYourUnraidnetAccountToGetStarted"):this.stateData.message?this.stateData.message:this.stateData.error.message}},methods:{...Object(b.b)(["openPopUp","closePopUp","closePopUpFromPopUp","startTrial","togglePromo"]),...Object(b.d)(["SET_IS_LAUNCHPAD_OPEN"]),niceTry(){alert("❌ Nice try you little sneak ❌")}}},wi,[],!1,(function(e){var t=r("2251");t.__inject__&&t.__inject__(e)}),null,null,!0).exports;var Di=v({i18n:he,store:di,name:"Launchpad",props:["serverstate","webguiTranslations"],components:{UnraidLoading:mi,LaunchpadActionRequired:Mi},computed:{...Object(b.e)(["errorMessage","guid","hideMyServers","isLaunchpadOpen","isPopUpOpen","loading","registered"]),...Object(b.c)(["server"])},methods:{...Object(b.b)(["closePopUp","setStateFromWebComponentProp","validateGuid"]),...Object(b.d)(["SET_IS_LAUNCHPAD_OPEN"])},watch:{signedOutWithKey(e,t){e&&!t&&this.validateGuid()},isPopUpOpen(e,t){!e&&t&&this.registered&&this.SET_IS_LAUNCHPAD_OPEN(!1)}},created(){if(this.serverstate&&this.setStateFromWebComponentProp(this.serverstate),this.guid)this.validateGuid();else{const e=setInterval(()=>{this.guid&&(clearInterval(e),this.validateGuid())},250)}}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{appear:"",name:"fade",mode:"in-out"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isLaunchpadOpen,expression:"isLaunchpadOpen"}],staticClass:"fixed inset-0 z-10 flex flex-col justify-start items-end mt-90px"},[r("transition",{attrs:{appear:"",name:"fade",mode:"in-out"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isLaunchpadOpen,expression:"isLaunchpadOpen"}],staticClass:"absolute inset-0 z-0 bg-beta opacity-70 cursor-pointer",attrs:{title:e.$t("closeLaunchpad")},on:{click:function(t){return e.SET_IS_LAUNCHPAD_OPEN(!1)}}})]),r("transition",{attrs:{appear:"",name:"slideVerticalFade",mode:"in-out"}},[r("main",{directives:[{name:"show",rawName:"v-show",value:e.isLaunchpadOpen,expression:"isLaunchpadOpen"}],staticClass:"TopBlip text-beta bg-alpha border-grey-darkest text-center relative z-10 w-full max-w-4xl mr-8px p-24px md:p-32px lg:px-40px shadow-md rounded-lg"},[e.loading?[r("UnraidLoading",{staticClass:"mx-auto",attrs:{height:64}}),"string"==typeof e.loading?r("h3",{staticClass:"text-20px italic mt-8px mb-0"},[e._v(e._s(e.loading))]):e._e()]:[r("LaunchpadActionRequired",{attrs:{hidePurchaseButtons:!e.hideMyServers&&!e.registered}}),e.errorMessage?r("p",{staticClass:"text-red font-semibold italic mt-16px mb-0",domProps:{innerHTML:e._s(e.errorMessage)}}):e._e()]],2)])],1)])}),[],!1,(function(e){var t=r("f153");t.__inject__&&t.__inject__(e)}),null,null,!0).exports,Ui=r("99c0"),Li=r.n(Ui),ji=r("9f96"),Fi=r.n(ji),$i=r("56c3"),Vi=r.n($i),Gi=r("381c"),zi=r.n(Gi),Bi=r("6788"),Wi=r.n(Bi),Hi=v({name:"Feature",props:["title","copy","svg","center"]},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"text-left relative flex overflow-hidden p-8px",class:{"w-full sm:w-1/2":!e.center,"max-w-640px":e.center}},[e.center?e._e():r("span",{staticClass:"flex-shrink-0"},[e._t("default")],2),r("div",{staticClass:"inline-flex flex-col pl-4 mr-4",class:{"text-center":e.center}},[r("h3",{staticClass:"font-semibold",class:{"mt-0 mb-4px":e.copy,"my-0":!e.copy,"flex flex-row justify-center items-center":e.center}},[e.center?r("span",{staticClass:"flex-shrink-0 mr-8px"},[e._t("default")],2):e._e(),e._v(" "+e._s(e.title)+" ")]),e.copy?r("p",{staticClass:"opacity-90 py-0",class:{"px-8px":e.center},domProps:{innerHTML:e._s(e.copy)}}):e._e()])])}),[],!1,null,null,null,!0).exports;var qi=v({i18n:he,store:di,name:"Promo",components:{Feature:Hi,UnraidSvgUiRemoteAccess:Li.a,UnraidSvgUiDiagnostics:Fi.a,UnraidSvgUiUsb:Vi.a,UnraidSvgUiKey:zi.a,UnraidSvgUtilStar:Wi.a},computed:{...Object(b.e)(["isPromoOpen","devEnv"]),...Object(b.c)(["features"]),heading(){return this.$t("promoHeading").replace("(BETA)",`${he.tc("upc.myServers.beta")}`)}},methods:{...Object(b.d)(["SET_IS_PROMO_OPEN"]),installMyServers(e=""){try{const t="https://s3.amazonaws.com/dnld.lime-technology.com/unraid-api/"+(e||"dynamix.unraid.net.plg");Fe.debug("[installMyServers] %s",t),sessionStorage.setItem("clickedInstallMyServers",Date.now()),this.SET_IS_PROMO_OPEN(!1),"function"==typeof openPlugin?(Fe.debug("[installMyServers] using openPlugin %s",t),openPlugin("plugin install "+t,this.$t("upc.installingMyServers"),"","refresh")):(Fe.debug("[installMyServers] using openBox %s",t),openBox("/plugins/dynamix.plugin.manager/scripts/plugin&arg1=install&arg2="+t,this.$t("upc.installingMyServers"),600,900,!0))}catch(e){Fe.error(e)}}},watch:{isPromoOpen(e,t){t&&!e&&sessionStorage.removeItem("showPromoPostTrialInstall")},isLaunchpadOpen(e,t){t&&!e&&sessionStorage.getItem("showPromoPostTrialInstall")&&this.SET_IS_PROMO_OPEN(!1)}}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{appear:"",name:"fade",mode:"in-out"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isPromoOpen,expression:"isPromoOpen"}],staticClass:"fixed inset-0 z-10 flex flex-col justify-start items-end mt-90px"},[r("transition",{attrs:{appear:"",name:"fade",mode:"in-out"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isPromoOpen,expression:"isPromoOpen"}],staticClass:"fixed inset-0 z-0 bg-beta opacity-70 cursor-pointer",attrs:{title:e.$t("closePromo")},on:{click:function(t){return e.SET_IS_PROMO_OPEN(!1)}}})]),r("transition",{attrs:{appear:"",name:"slideVerticalFade",mode:"in-out"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isPromoOpen,expression:"isPromoOpen"}],staticClass:"Promo TopBlip text-beta bg-alpha border-grey-darkest text-center relative z-10 w-full max-w-800px mr-8px p-24px sm:p-32px lg:px-40px shadow-md rounded-lg"},[r("h2",{staticClass:"text-24px my-0",domProps:{innerHTML:e._s(e.heading)}}),r("div",{staticClass:"text-14px flex flex-wrap justify-center my-16px"},e._l(e.features,(function(t,n){return r("feature",{key:n,attrs:{title:t.title,copy:t.copy,center:t.center||!1}},["ui--remote-access"===t.svg?r("UnraidSvgUiRemoteAccess",{staticClass:"fill-current mt-1 w-28px h-28px"}):e._e(),"ui--diagnostics"===t.svg?r("UnraidSvgUiDiagnostics",{staticClass:"fill-current mt-1 w-28px h-28px"}):e._e(),"ui--usb"===t.svg?r("UnraidSvgUiUsb",{staticClass:"fill-current mt-1 w-28px h-28px"}):e._e(),"ui--key"===t.svg?r("UnraidSvgUiKey",{staticClass:"fill-current mt-1 w-28px h-28px"}):e._e(),"util--star"===t.svg?r("UnraidSvgUtilStar",{staticClass:"fill-current mt-1 w-28px h-28px"}):e._e()],1)})),1),r("div",{staticClass:"w-full max-w-xs flex flex-col mx-auto"},[e.devEnv?r("button",{staticClass:"button mb-8px",on:{click:function(t){return e.installMyServers("dynamix.unraid.net.staging.plg")}}},[e._v("Install Staging")]):e._e(),r("button",{staticClass:"button",on:{click:function(t){return e.installMyServers()}}},[e._v(e._s(e.$t("installPlugin")))]),r("div",[r("a",{staticClass:"text-12px tracking-wide inline-block mx-8px opacity-60 hover:opacity-100 focus:opacity-100 underline mt-16px transition",attrs:{href:"https://wiki.unraid.net/My_Servers",target:"_blank",rel:"noopener noreferrer",title:e.$t("checkoutTheMyServersDocs")}},[e._v(e._s(e.$t("learnMore")))]),r("button",{staticClass:"text-12px tracking-wide inline-block mx-8px opacity-60 hover:opacity-100 focus:opacity-100 underline mt-16px transition",attrs:{title:e.$t("closePromo")},on:{click:function(t){return e.SET_IS_PROMO_OPEN(!1)}}},[e._v(" "+e._s(e.$t("noThanks"))+" ")])])])])])],1)])}),[],!1,(function(e){var t=r("5b71");t.__inject__&&t.__inject__(e)}),null,null,!0).exports;var Yi=v({i18n:he,store:di,name:"UpcTrigger",props:[],data:()=>({}),computed:{...Object(b.c)(["stateData","stateDataKeyActions"]),...Object(b.e)(["isPopUpOpen","state","triggerUPC","wizardWindow"]),copy(){return"BASIC"===this.state||"PLUS"===this.state?this.$t("upcTrigger.upgrade"):this.stateDataKeyActions?this.$t("upcTrigger.default"):""},buttonText(){return this.stateData.error?this.$t("fixError"):this.isPopUpOpen?this.$t("backToPopUp"):"ENOKEYFILE"===this.state?this.$t("getStarted"):this.stateDataKeyActions?this.$t("upcTrigger.open"):""},buttonTitle(){return this.stateDataKeyActions?this.$t("upcTrigger.open"):this.$t("upc.opensNewHttpsWindow.base",[this.buttonText])}},methods:{...Object(b.b)(["jumpToUpc","closePopUp","openPopUp"]),btnClick(){return this.isPopUpOpen?this.openPopUp(this.wizardWindow):this.jumpToUpc()}}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{appear:"",name:"fade",mode:"out-in"}},[e.buttonText?r("div",{staticClass:"flex flex-wrap pl-12px"},[r("p",{staticClass:"w-7/20 pr-12px",domProps:{innerHTML:e._s(e.copy)}}),r("div",{staticClass:"w-13/20 inline-flex flex-row"},[r("button",{attrs:{type:"button",title:e.buttonTitle,disabled:e.triggerUPC},on:{click:function(t){return e.btnClick()}}},[e._v(e._s(e.buttonText))]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.isPopUpOpen?r("button",{staticClass:"ml-8px",attrs:{type:"button"},on:{click:function(t){return e.closePopUp()}}},[e._v(e._s(e.$t("closePopUp")))]):e._e()])],1)]):e._e()])}),[],!1,(function(e){var t=r("22c9");t.__inject__&&t.__inject__(e)}),null,null,!0).exports,Qi=r("ab14"),Ki=r.n(Qi),Xi=r("c7db"),Ji=r("4eb5"),Zi=r.n(Ji),eo=r("b692"),to=r.n(eo),ro=r("a3b3"),no=r.n(ro),io=r("8a86"),oo=r.n(io),ao=r("b2a0"),so=r.n(ao),co=r("b045"),lo=r.n(co),uo=r("45b7"),po=r.n(uo),fo=r("73c6"),ho=r.n(fo),mo=r("94d0"),go=r.n(mo),vo=r("607e"),bo=r.n(vo),yo=v({props:{payload:{type:Object},text:{type:String},emphasize:{type:Boolean,default:!1},external:{type:Boolean,default:!0}},components:{UnraidSvgUiKey:zi.a,UnraidSvgUtilNewWindow:no.a}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("li",[r("button",{staticClass:"group flex flex-row items-center justify-between",class:{"btn-emphasize":e.emphasize},attrs:{title:e.external?""+e.$t("upc.opensNewHttpsWindow.base",[e.text]):null},on:{click:function(t){return e.$emit("click")}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUiKey",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.text)+" ")],1),e.external?r("UnraidSvgUtilNewWindow",{staticClass:"text-white opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"}):e._e()],1)])}),[],!1,null,null,null,!0).exports,wo=r("a190"),xo=r.n(wo),_o=r("a313"),Eo=r.n(_o),So=r("973e"),ko=r.n(So),Oo=r("44f2"),To=r.n(Oo);var Io=v({components:{UnraidLoading:mi,UnraidSvgUiWarningFill:xo.a,UnraidSvgUtilCheck:Eo.a,UnraidSvgUtilDelete:go.a,UnraidSvgUtilHelp:ko.a,UnraidSvgUtilInfo:lo.a,UnraidSvgUtilNewWindow:no.a,UnraidSvgUtilTerminal:To.a,UnraidSvgUtilEdit:so.a},props:["errorStateMessageVisible","hideotherservers","hideMyServers"],data:()=>({offlineTimer:sessionStorage.getItem("offlineTimer")||!1,restartTriggered:!1}),watch:{apikey(e,t){t||!e||this.hideMyServers||(Fe.debug("[watch.apikey] connect to unraid-api",{newVal:e,oldVal:t}),this.serversPlz()),!t||e||this.hideMyServers||(Fe.debug("[apikey removed] disconnect from unraid-api",{newVal:e,oldVal:t}),this.stopGraphqlClient(t))},noRemoteApikeyRegisteredWithPlg(e,t){t||!e||this.hideMyServers||(Fe.debug("[watch.noRemoteApikeyRegisteredWithPlg] connect to unraid-api",{newVal:e,oldVal:t}),this.serversPlz())},registered(e,t){t||!e||this.hideMyServers||(Fe.debug("[watch.apikey] connect to unraid-api",{newVal:e,oldVal:t}),this.serversPlz())},myServersError(e,t){!t||e||this.myServers.length||(Fe.debug("[watch.myServersError] connect to unraid-api",{newVal:e,oldVal:t}),this.serversPlz())},graphOnline(e,t){t&&!1===e&&this.timer("watch.graphOnline")}},computed:{...Object(b.c)(["errorTooManyDisks","hasRemoteApikey","keyTypeForPurchase","myServersOutOfDate","noRemoteApikeyRegisteredWithPlg","plgInstallFailed","stateData","validApiKeyLength"]),...Object(b.e)(["apikey","apiVersion","cloud","deviceCount","graphOnline","guid","locale","myServers","myServersError","myServersErrorShowSupportBtn","myServersLoading","pirateKey","registered","servername","signInPayload","state","wanip"]),currentServer(){return this.myServers?this.myServers.filter(e=>e.guid===this.guid?e:null)[0]:{name:this.servername,status:"offline"}},currentServerStatus(){return this.currentServer?this.currentServer.status:"offline"},filteredServers(){return this.myServers?this.hideotherservers?[]:this.myServers.filter(e=>e.guid!==this.guid?e:null).sort((e,t)=>e.name.localeCompare(t.name,"en",{numeric:!0,sensitivity:"base"})):[]},errorToggleText(){return this.stateData.error.message?"EEXPIRED"===this.state?this.stateData.error.heading:this.$t("fixError"):this.pirateKey||this.myServersError||this.noRemoteApikeyRegisteredWithPlg||this.errorTooManyDisks||this.myServersOutOfDate&&this.myServersOutOfDate.enabled||this.cloud&&this.cloud.error||this.plgInstallFailed?this.computedErrorHeading:""},errorToggleTitle(){if(this.stateData.error||this.stateData.message||this.myServersError||this.myServersOutOfDate&&this.myServersOutOfDate.enabled||this.cloud&&this.cloud.error||this.plgInstallFailed){return`${!this.stateData.error.message&&!this.stateData.message||this.noRemoteApikeyRegisteredWithPlg||this.errorTooManyDisks||!this.cloud||this.cloud.error?this.computedErrorHeading:this.stateData.humanReadable} • ${this.errorStateMessageVisible?this.$t("upc.myServers.closeDetails"):this.$t("learnMore")}`}return""},computedErrorHeading(){return this.noRemoteApikeyRegisteredWithPlg?this.$t("upc.noRemoteApikeyRegisteredWithPlg.heading"):this.stateData.error.heading?this.stateData.error.heading:this.pirateKey?this.$t("keyFileNotValid"):this.myServersLoading&&this.restartTriggered?"Unraid API":this.myServersError?this.myServersError.includes("Network error")?this.$t("upc.myServers.errors.unraidApi.heading"):this.$t("upc.myServers.errors.myServers.heading"):this.errorTooManyDisks?this.$t("upc.errorTooManyDisks.heading"):this.myServersOutOfDate.enabled?this.myServersOutOfDate.heading:this.cloud&&this.cloud.error?this.$t("upc.myServers.errors.unraidApi.heading"):this.plgInstallFailed?this.$t("installFailed.heading"):""},computedError(){if(this.noRemoteApikeyRegisteredWithPlg)return this.$t("upc.noRemoteApikeyRegisteredWithPlg.msg");if(this.stateData.error.message)return this.stateData.error.message;if(this.pirateKey)return this.$t("yargYePirate");if(this.myServersLoading&&this.restartTriggered)return this.$t("upc.myServers.restarting");if(this.myServersError)return this.myServersError.includes("Network error")?this.$t("upc.myServers.errors.unraidApi.message"):this.myServersError;if(this.errorTooManyDisks){const e=this.$t("upc.errorTooManyDisks.msg.base");return"Basic"===this.keyTypeForPurchase?`${this.$t("upc.errorTooManyDisks.msg.basic")} ${e}`:"Plus"===this.keyTypeForPurchase?`${this.$t("upc.errorTooManyDisks.msg.plus")} ${e}`:e}return this.myServersOutOfDate.enabled?this.myServersOutOfDate.message:this.cloud&&this.cloud.error?this.cloud.error:this.plgInstallFailed?this.$t("installFailed.message"):""},myServersOverflow(){return this.filteredServers.length>8},apiEnableRestartButton(){return!!this.apiVersion&&Ge()(this.apiVersion,"2.42.5")&&this.offlineTimer&&!this.hideMyServers&&!this.graphOnline&&!this.myServersLoading&&!this.stateData.error&&this.myServersError&&(this.myServersError.includes("unraid-api is stopped")||this.myServersError.includes("Disconnected from Unraid API"))},forumSupportLink(){return this.myServersError&&this.myServersError.includes("OK")||this.myServersError&&this.myServersError.includes("SERVER_OVERLOAD")||this.cloud&&this.cloud.error&&(this.cloud.error.includes("OK")||this.cloud.error.includes("SERVER_OVERLOAD"))?"https://forums.unraid.net/topic/112073-my-servers-releases/#comment-1121459":"https://forums.unraid.net/forum/94-my-servers-plugin-support/"}},methods:{...Object(b.b)(["executeUnraidApi","fetchServers","openPopUp","stopGraphqlClient"]),serversPlz(){return Fe.debug("[serversPlz]",{apikey:this.apikey,noRemoteApikeyRegisteredWithPlg:this.noRemoteApikeyRegisteredWithPlg,validApiKeyLength:this.validApiKeyLength,myServersOutOfDate:this.myServersOutOfDate}),this.myServersOutOfDate&&this.myServersOutOfDate.enabled&&(this.myServersOutOfDate.error||Fe.warn(this.myServersOutOfDate.message),this.myServersOutOfDate.error)?Fe.error(this.myServersOutOfDate.message):this.noRemoteApikeyRegisteredWithPlg?Fe.error("[MyServers] remote apikey does not exist"):this.plgInstallFailed?Fe.error("[MyServers] plugin failed to install correctly"):this.validApiKeyLength?(this.fetchServers(),this.timer("serversPlz()")):Fe.error("[MyServers] invalid apikey")},timer(e=""){Fe.debug("[timer] %s",e),setTimeout(()=>{!this.graphOnline&&this.registered&&(this.offlineTimer=!0,sessionStorage.setItem("offlineTimer",Date.now()))},3e4)},triggerRestart(){this.executeUnraidApi({command:"start"}),this.offlineTimer=!1,this.restartTriggered=!0,sessionStorage.removeItem("offlineTimer")}},created(){!this.hideMyServers&&this.registered&&this.serversPlz()}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"relative"},[r("ul",{staticClass:"relative"},[e.filteredServers.length&&e.myServersError&&!e.stateData.error?r("li",{staticClass:"text-red text-12px font-semibold px-16px pb-4px"},[r("em",[e._v(e._s(e.$t("upc.myServers.displayingLastKnown")))])]):e._e(),e.computedError?r("li",{key:"current-server-error",staticClass:"w-full"},[r("button",{staticClass:"btn-error group py-8px px-16px flex flex-col",attrs:{title:e.errorToggleTitle},on:{click:function(t){return e.$emit("toggle-error")}}},[r("div",{staticClass:"w-full flex flex-row justify-between items-center"},[r("span",{staticClass:"inline-flex flex-row items-center"},[e.myServersOutOfDate&&e.myServersOutOfDate.enabled&&!e.myServersOutOfDate.error?r("UnraidSvgUtilInfo",{staticClass:"fill-current w-12px h-12px"}):r("UnraidSvgUiWarningFill",{staticClass:"fill-current w-12px h-12px"}),r("span",{staticClass:"font-semibold mx-8px"},[e._v(" "+e._s(e.servername)+" ")])],1),e.computedError&&e.errorStateMessageVisible?r("UnraidSvgUtilDelete",{staticClass:"text-current opacity-100 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"}):r("UnraidSvgUtilInfo",{staticClass:"text-current opacity-100 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.computedError&&e.errorStateMessageVisible?r("div",{staticClass:"UnraidUPC-serverError"},[r("div",{staticClass:"text-14px font-semibold pt-4px"},[r("h3",{staticClass:"text-16px mb-4px"},[e._v(e._s(e.errorToggleText))]),r("p",{domProps:{innerHTML:e._s(e.computedError)}})])]):e._e()])],1)]):e._e(),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.pirateKey&&e.errorStateMessageVisible?r("li",[r("a",{staticClass:"link-error group flex flex-row items-center justify-between",attrs:{href:"zh_CN"===e.locale?"https://unraid.net/zh/%E8%B4%AD%E4%B9%B0-%E6%AD%A3%E7%89%88-unraid-%E8%AE%B8%E5%8F%AF%E8%AF%81":"https://unraid.net/buy-genuine-license",title:e.$t("upc.opensNewHttpsWindow.base",[e.$t("learnMore")]),target:"_blank"}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilHelp",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.$t("learnMore"))+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]):e._e()]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.computedError&&!e.stateData.error&&e.errorStateMessageVisible&&e.myServersOutOfDate&&e.myServersOutOfDate.enabled&&e.myServersOutOfDate.link?r("li",[r("a",{staticClass:"link-error group flex flex-row items-center justify-between",attrs:{href:e.myServersOutOfDate.link,title:e.myServersOutOfDate.linkSameTab?"":e.$t("upc.opensNewHttpsWindow.base",[this.myServersOutOfDate.heading]),target:e.myServersOutOfDate.linkSameTab?"":"_blank",rel:"noopener"}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilEdit",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.myServersOutOfDate.linkSameTab?"Go to Plugins":e.$t("learnMore"))+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]):e._e()]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[(e.myServersError||e.cloud&&e.cloud.error)&&!e.stateData.error&&e.errorStateMessageVisible?r("li",[r("a",{staticClass:"link-error group flex flex-row items-center justify-between",attrs:{href:e.forumSupportLink,title:e.$t("upc.opensNewHttpsWindow.base",["My Servers Support"]),target:"_blank",rel:"noopener"}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilHelp",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s("My Servers Support")+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]):e._e()]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[("EEXPIRED"!==e.state&&e.stateData.error||e.pirateKey)&&e.errorStateMessageVisible?r("li",[r("a",{staticClass:"link-error group flex flex-row items-center justify-between",attrs:{title:e.$t("upc.opensNewHttpsWindow.base",[e.$t("contactSupport")])},on:{click:function(t){return e.$emit("contact-support")}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilHelp",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.$t("contactSupport"))+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]):e._e()]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.noRemoteApikeyRegisteredWithPlg&&e.errorStateMessageVisible?r("li",[r("a",{staticClass:"link-error group flex flex-row items-center justify-between",attrs:{title:e.$t("upc.opensNewHttpsWindow.base",[e.$t("signIn")])},on:{click:function(t){return e.openPopUp(e.signInPayload)}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUiWarningFill",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.$t("upc.signInActions.resolve"))+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]):e._e()]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.apiEnableRestartButton?r("li",[r("button",{staticClass:"group flex flex-row items-center justify-between",attrs:{title:e.$t("upc.myServers.api.startTitle")},on:{click:function(t){return e.triggerRestart()}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilTerminal",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.$t("upc.myServers.api.start"))+" ")],1)])]):e._e()]),e.registered?r("div",{staticClass:"relative z-0",class:{"custom-scrollbar":e.myServersOverflow}},[r("div",{class:{"overflow-y-scroll max-h-310px":e.myServersOverflow}},[r("transition-group",{attrs:{name:"fade",mode:"out-in"}},[e.myServersLoading?r("UnraidLoading",{key:"gql-loading",staticClass:"w-36px my-8px mx-auto",attrs:{height:21,title:e.$t("upc.myServers.loading")}}):e._e(),e.filteredServers?r("div",{key:"filteredServers"},[r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.computedError?e._e():r("li",{key:"current-server",staticClass:"w-full py-8px px-16px flex flex-row items-center",class:{"text-beta":"online"===e.currentServerStatus,"text-orange cursor-not-allowed":"online"!==e.currentServerStatus},attrs:{title:e.$t("upc.myServers.accessLabels.current")+" • "+("online"!==e.currentServerStatus?e.$t("upc.myServers.mothership.notConnected"):e.$t("upc.myServers.mothership.connected"))}},["online"!==e.currentServerStatus?r("UnraidSvgUiWarningFill",{staticClass:"fill-current w-12px h-12px"}):r("UnraidSvgUtilCheck",{staticClass:"fill-current w-12px h-12px"}),r("span",{staticClass:"ml-8px select-all"},[e._v(e._s(e.currentServer?e.currentServer.name:e.servername))])],1)]),e._l(e.filteredServers,(function(t,n){return r("li",{key:"filteredServer_"+n},["online"===t.status&&e.wanip!==t.wanip&&t.remoteurl?r("a",{staticClass:"w-full flex flex-row items-center",attrs:{href:t.remoteurl,tabindex:"0",title:e.$t("upc.myServers.accessLabels.remote")}},[r("span",{staticClass:"block w-12px h-12px mr-8px bg-green rounded-full"}),r("span",{staticClass:"select-all"},[e._v(e._s(t.name))])]):"online"===t.status&&t.localurl?r("a",{staticClass:"w-full flex flex-row items-center",attrs:{href:t.localurl,tabindex:"0",title:e.$t("upc.myServers.accessLabels.local")}},[r("span",{staticClass:"block w-12px h-12px mr-8px bg-green rounded-full"}),r("span",{staticClass:"select-all"},[e._v(e._s(t.name))])]):"never_connected"!==t.status?r("span",{staticClass:"w-full flex flex-row items-center px-16px py-8px opacity-50 cursor-not-allowed",attrs:{title:"online"===t.status?e.$t("upc.myServers.accessLabels.unavailable"):e.$t("upc.myServers.accessLabels.offline")}},[r("span",{staticClass:"text-red text-14px w-12px mr-8px"},[e._v("×")]),r("span",{staticClass:"select-all"},[e._v(e._s(t.name))])]):e._e()])}))],2):e._e()],1)],1)]):e._e()],1)])}),[],!1,(function(e){var t=r("dce8");t.__inject__&&t.__inject__(e)}),null,null,!0).exports,Ao=v({components:{HelperTimeConvert:Ci},computed:{...Object(b.e)(["state"]),...Object(b.c)(["stateData"])}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"text-gamma text-12px text-right font-semibold leading-normal flex flex-row items-baseline justify-end pr-16px pt-4px"},[r("HelperTimeConvert"),r("span",{staticClass:"px-12px"},[e._v("•")]),e.stateData.actions.includes("upgrade")?r("button",{staticClass:"text-12px text-gamma hover:text-alpha focus:text-alpha font-semibold transition-colors duration-150 ease-in-out border-t-0 border-l-0 border-r-0 border-b-2 border-transparent hover:border-orange-dark focus:border-orange-dark focus:outline-none",attrs:{title:e.$t("upc.opensNewHttpsWindow.upgrade")},on:{click:function(t){return e.$emit("upgrade")}}},[r("h5",[e._v("Unraid OS "),r("em",[r("strong",[e._v(e._s(e.stateData.humanReadable))])])])]):r("h5",[e._v("Unraid OS "),r("em",{class:{"text-red":e.stateData.error||"EEXPIRED"===e.state}},[r("strong",[e._v(e._s(e.stateData.humanReadable))])])]),e.stateData.actions.includes("purchase")?r("button",{staticClass:"text-12px text-orange-dark font-semibold hover:text-alpha focus:text-alpha ml-12px transition-colors duration-150 ease-in-out border-t-0 border-l-0 border-r-0 border-b-2 border-transparent hover:border-orange-dark focus:border-orange-dark focus:outline-none",attrs:{title:e.$t("upc.opensNewHttpsWindow.purchase")},on:{click:function(t){return e.$emit("purchase")}}},[e._v(e._s(e.$t("actions.purchase")))]):e._e()],1)}),[],!1,null,null,null,!0).exports;o.default.use(Zi.a);var Ro=v({i18n:he,store:di,name:"UserProfile",mixins:[Xi.mixin],components:{UnraidLoading:mi,UnraidLogoMark:vi,KeyAction:yo,MetaInfo:Ao,MyServers:Io,UnraidSvgUtilLogout:to.a,UnraidSvgUtilNewWindow:no.a,UnraidSvgUtilSelect:oo.a,UnraidSvgUtilEdit:so.a,UnraidSvgUtilInfo:lo.a,UnraidSvgUiWarning:po.a,UnraidSvgUtilGlobe:ho.a,UnraidSvgUtilDelete:go.a,UnraidSvgUtilThumbsUp:bo.a,UiBeta:Ni},props:{serverstate:String,banner:{type:String,default:""},showBannerGradient:{type:String,default:"yes"},bgcolor:[String,Number],displaydesc:{type:String,default:""},locale:String,localeMessages:String,metacolor:String,textcolor:String,theme:{type:String,default:"black"},hideotherservers:{type:String,default:""},apikey:String,apiVersion:String,csrf:String,expiretime:[Number,String],hideMyServers:{type:String,default:null},plgPath:String,regWizTime:String,sendCrashInfo:String,serverdesc:String,servermodel:String,serverupdate:Boolean,uptime:[Number,String]},data:()=>({NODE_ENV:me,avatarFail:!1,copyingIp:!1,copyingIpFailed:!1,dropdownTimeout:"",dropdownVisible:!1,errorStateMessageVisible:!0,showRemoveBtns:!1,removingPlg:!1,hoverImage:!1}),computed:{...Object(b.e)(["avatar","isLaunchpadOpen","isPromoOpen","isPopUpOpen","guid","guidRegistered","popUpWindow","regAtOpen","purchaseWindow","redeemWindow","registered","servername","internalip","state","username","darkTheme","lightTheme","extendTrialPayload","recoverKeyPayload","replaceKeyPayload","signInPayload","signUpPayload","signOutPayload","troubleshootPayload","wizardWindow","messages","myServersEnv","triggerUPC","graphOnline","myServersError","cloud","plgInstalled","signOutTriggered","pirateKey"]),...Object(b.c)(["errorTooManyDisks","noRemoteApikeyRegisteredWithPlg","signedOutWithKey","stateData","myServersOutOfDate","allowedOrigins","server","plgInstallFailed"]),darkMode(){return"black"===this.theme||"azure"===this.theme},usernameButtonText(){return this.stateData.error&&!this.stateData.error.signInToFix&&"EEXPIRED"===!this.state?this.$t("fixError"):this.registered?this.username:""},usernameButtonTitle(){return"ENOKEYFILE"===this.state?this.$t("getStarted"):"EEXPIRED"===this.state?this.$t("upc.trialHasExpiredSeeOptions"):this.stateData.error?this.$t("learnMore"):this.isPopUpOpen&&this.isLaunchpadOpen?this.$t("upc.confirmClosure"):this.cloud&&this.cloud.error?`${this.$t("upc.myServers.errors.unraidApi.heading")}: ${this.cloud.error}`:this.myServersError&&this.registered?`${this.$t("upc.myServers.errors.unraidApi.heading")}: ${this.myServersError}`:this.errorTooManyDisks?this.$t("upc.errorTooManyDisks.heading"):this.isLaunchpadOpen?this.$t("closeLaunchpad"):this.dropdownVisible?this.$t("upc.closeDropdown"):this.$t("upc.openDropdown")},displayKeylineBelowActions(){return!!(this.stateData.actions.includes("startTrial")||this.stateData.actions.includes("purchase")||this.stateData.actions.includes("upgrade")||this.stateData.actions.includes("recover")||this.stateData.actions.includes("replace")||this.stateData.actions.includes("extend"))},extraLinks(){return[...!this.hideMyServers&&this.registered||this.stateData.error.message||this.errorTooManyDisks?[{url:"",text:"",external:!1}]:[],...this.hideMyServers||!this.registered||this.plgInstallFailed?[]:[{url:this.myServersEnv?"https://forums.unraid.net/my-servers-staging/":"https://forums.unraid.net/my-servers/",text:this.$t("upc.extraLinks.myServers"),external:!0,title:this.$t("upc.extraLinks.newTab",[this.$t("upc.extraLinks.myServers")])},{url:"/Settings/ManagementAccess#"+(this.plgPath?"MyServersSettings":"UnraidNetSettings"),text:this.$t("upc.extraLinks.settings.text"),settings:!0,title:this.$t("upc.extraLinks.settings.title")}]]},devEnv(){let e=me;const t="UPC_ENV=",r=document.cookie.split(";");for(let n=0;n{this.showRemoveBtns&&(this.showRemoveBtns=!1)},300),this.dropdownVisible)},...Object(b.b)(["closePopUp","openPopUp","receivePostMessage","setStateFromWebComponentProp","startTrial","stopGraphqlClient","togglePromo","updateServerState","validateGuid"]),...Object(b.d)(["SET_IS_LAUNCHPAD_OPEN","SET_IS_PROMO_OPEN","SET_LOCALE","SET_API_KEY","SET_CSRF","SET_DARK_MODE","SET_EXPIRE_TIME","SET_HIDE_MY_SERVERS","SET_MY_SERVERS_API_VERSION","SET_PLG_PATH","SET_REGWIZ_TIME","SET_SERVERDESC","SET_UPTIME","SET_DEV_MODE","SET_MY_SERVERS_ERROR","SET_MY_SERVERS_ERROR_SHOW_SUPPORT_BTN"]),closeDropdown(){setTimeout(()=>{this.showRemoveBtns&&(this.showRemoveBtns=!1)},300),this.dropdownVisible=!1},dropdownMouseEnter(){return"ENOKEYFILE"!==this.state&&!this.isLaunchpadOpen&&(clearTimeout(this.dropdownTimeout),!0)},dropdownMouseLeave(){return this.dropdownTimeout=setTimeout(()=>"ENOKEYFILE"!==this.state&&(this.dropdownVisible=!1,setTimeout(()=>{this.showRemoveBtns&&(this.showRemoveBtns=!1)},300)),1e3),!0},autoTriggerLaunchpad(){setTimeout(()=>{const e=`${this.servername}_${this.guid?this.guid.slice(-12):"NO_GUID"}`;sessionStorage.getItem(e)||"ENOKEYFILE"!==this.state||(sessionStorage.setItem(e,"またね"),this.isLaunchpadOpen||this.toggleLaunchpad())},100)},toggleLaunchpad(){const e="unraid-launchpad";if(!document.getElementsByTagName(e).length){const t=document.getElementsByTagName("body")[0],r=document.createElement(e);t.appendChild(r)}const t=()=>{this.dropdownVisible&&(this.dropdownVisible=!1),this.isPopUpOpen&&this.closePopUp(),this.SET_IS_LAUNCHPAD_OPEN(!this.isLaunchpadOpen)};this.isPopUpOpen&&this.isLaunchpadOpen?window.confirm(this.$t("upc.pleaseConfirmClosureYouHaveOpenPopUp"))&&t():t()},onAvatarError(){Fe.error("Avatar failed to load %s",this.avatar),this.avatarFail=!0},async initUserProfile(){if(Fe.debug("[initUserProfile]"),this.setStateFromWebComponentProp(this.serverstate),this.apikey&&this.SET_API_KEY(this.apikey),this.apiVersion&&this.SET_MY_SERVERS_API_VERSION(this.apiVersion),this.csrf&&this.SET_CSRF(this.csrf),this.expiretime&&this.SET_EXPIRE_TIME(this.expiretime),this.hideMyServers&&this.SET_HIDE_MY_SERVERS(this.hideMyServers),this.plgPath&&this.SET_PLG_PATH(this.plgPath),this.regWizTime&&this.SET_REGWIZ_TIME(this.regWizTime),this.serverdesc&&this.SET_SERVERDESC(this.serverdesc),this.uptime&&this.SET_UPTIME(this.uptime),this.devEnv&&this.SET_DEV_MODE(this.devEnv),this.hideMyServers){const e=["color: white","background: linear-gradient(to right, #E22828 0%, #FF8C2F 100%)","font-size: 10px","padding: 4px"].join(";");Fe.log(`%c${this.$t("upc.enhanceYourExperienceWithMyServers")} • https://wiki.unraid.net/My_Servers`,e)}if(this.localeMessages){Fe.debug("[this.locale] %o",this.locale);const[e,t]=Re(decodeURIComponent(this.localeMessages));e&&Fe.error("[initUserProfile.localeMessages] %s","Unable to set locale and locale messages"),this.$i18n.locale=this.locale,this.$i18n.setLocaleMessage(this.locale,t[this.locale]),Fe.debug(`[initUserProfile.$i18n] ${this.$i18n.locale} locale & messages set %o`,t[this.locale]),this.SET_LOCALE(this.locale)}this.signedOutWithKey&&this.regWizTime?(Fe.debug("[initUserProfile] %o",{signedOutWithKey:this.signedOutWithKey,regWizTime:this.regWizTime}),await this.validateGuid()):this.autoTriggerLaunchpad(),sessionStorage.getItem("clickedInstallMyServers")&&(Fe.debug("[initUserProfile] sessionStorage clickedInstallMyServers"),this.toggleLaunchpad()),sessionStorage.getItem("showPromoPostTrialInstall")&&(Fe.debug("[initUserProfile] sessionStorage showPromoPostTrialInstall"),this.togglePromo()),window.addEventListener("message",e=>{this.receivePostMessage({inject:!1,event:e})},!1)},copyIpSuccess(){Fe.debug("[copyIpSuccess] %s",this.internalip),this.copyingIp=!this.copyingIp,setTimeout(()=>{this.copyingIp=!this.copyingIp},750)},copyIpError(){return this.copyingIpFailed=!0,clearTimeout(this.copyingFailedTimeout),this.copyingFailedTimeout=setTimeout(()=>{this.copyingIpFailed=!this.copyingIpFailed},2e3),Fe.error("Unable to copy IP: %s",this.internalip)},hoverCopyFailed(){Fe.debug("[hoverCopyFailed] %s",this.internalip),clearTimeout(this.copyingFailedTimeout)},leaveCopyFailed(){Fe.debug("[leaveCopyFailed] %s",this.internalip),clearTimeout(this.copyingFailedTimeout),this.copyingFailedTimeout=setTimeout(()=>{this.copyingIpFailed=!this.copyingIpFailed},1500)},copyFailedClickaway(){Fe.debug("[copyFailedClickaway] %s",this.internalip),clearTimeout(this.copyingFailedTimeout),this.copyingIpFailed=!1},toggleRemovePlgBtns(){Fe.debug("[toggleRemovePlgBtns]"),this.showRemoveBtns=!this.showRemoveBtns},removePlugin(){try{if(Fe.debug("[removePlugin] %s",this.plgInstalled),"function"==typeof openPlugin)Fe.debug("[removePlugin] using openPlugin %s",this.plgInstalled),openPlugin("plugin remove "+this.plgInstalled.replace("_installFailed",""),this.$t("upc.removeMyServersPlugin"),this.plgInstalled.replace("_installFailed","")+":remove","refresh");else{Fe.debug("[removePlugin] using openBox %s",this.plgInstalled),openBox("/plugins/dynamix.plugin.manager/scripts/plugin&arg1=remove&arg2="+this.plgInstalled.replace("_installFailed",""),this.$t("upc.removeMyServersPlugin"),600,900,!0,"loadlist",this.plgInstalled.replace("_installFailed","")+":remove"),this.removingPlg=!0,window.addEventListener("beforeunload",this.preventClose);const e=setInterval(()=>"none"!==document.getElementById("sb-container").style.display?Fe.debug("⏳ still removing My Servers…⏳"):(Fe.debug("❌ My Servers removed ❌"),window.removeEventListener("beforeunload",this.preventClose),clearInterval(e),window.location.reload()),100)}}catch(e){Fe.error(e)}},preventClose(e){this.removingPlg&&(e.preventDefault(),e.returnValue="",alert(this.$t("regWizPopUp.closingPopUpMayLeadToErrors")))}},watch:{signedOutWithKey(e,t){Fe.debug("[signedOutWithKey]",{newVal:e,oldVal:t,regWizTime:this.regWizTime}),e&&!t&&this.regWizTime&&this.validateGuid()},isPopUpOpen(e,t){this.isLaunchpadOpen&&!e&&t&&!this.regAtOpen&&this.registered&&this.SET_IS_LAUNCHPAD_OPEN(!1)},triggerUPC(e){e&&setTimeout(()=>{this.dropdownVisible=!0},150)},graphOnline(e,t){e&&!t&&this.updateServerState()},isPromoOpen(e,t){e&&!t&&(this.dropdownVisible=!1)},signOutTriggered(e,t){e&&this.graphOnline&&(Fe.debug("[watch.signOutTriggered] disconnect from unraid-api",{newVal:e,oldVal:t,apikey:this.apikey}),this.stopGraphqlClient(this.apikey),this.myServersError&&(this.SET_MY_SERVERS_ERROR(""),this.SET_MY_SERVERS_ERROR_SHOW_SUPPORT_BTN(!1)))}},created(){this.initUserProfile()},beforeMount(){const e=document.getElementsByTagName("body")[0],t={darkTheme:{alpha:"#1c1b1b",beta:"#f2f2f2",gamma:"#999999"},lightTheme:{alpha:"#f2f2f2",beta:"#1c1b1b",gamma:"#999999"}};let{alpha:r,beta:n,gamma:i}=this.darkMode?t.darkTheme:t.lightTheme;this.textcolor&&(r=this.textcolor),this.bgcolor&&(n=this.bgcolor,e.style.setProperty("--color-customgradient-start",Ki()(n,0)),e.style.setProperty("--color-customgradient-end",Ki()(n,.9))),this.metacolor&&(i=this.metacolor),e.style.setProperty("--color-alpha",r),e.style.setProperty("--color-beta",n),e.style.setProperty("--color-gamma",i),e.style.setProperty("--shadow-beta","0 25px 50px -12px "+Ki()(n,.15)),e.style.setProperty("--ring-offset-shadow","0 0 "+n),e.style.setProperty("--ring-shadow","0 0 "+n)}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"UnraidUPC",class:{"--hasBanner-default":e.banner&&"no"!==e.showBannerGradient&&!e.bgcolor,"--hasBanner-custom":e.banner&&"no"!==e.showBannerGradient&&e.bgcolor},attrs:{id:"UnraidUPC"}},[e.isPopUpOpen&&!e.isLaunchpadOpen?r("div",{staticClass:"absolute z-10 inset-0 flex flex-col items-end justify-center pr-6"},[r("div",{staticClass:"text-center inline-flex flex-col items-center justify-center"},[r("button",{staticClass:"text-14px button button-alt",on:{click:function(t){return e.openPopUp()}}},[e._v(e._s(e.$t("backToPopUp")))]),r("button",{staticClass:"hover:underline text-12px mt-4px",on:{click:function(t){return e.closePopUp()}}},[e._v(e._s(e.$t("closePopUp")))])])]):e._e(),r("MetaInfo",{class:{"blur opacity-30 pointer-events-none transition-all duration-150 ease-in-out":e.isPopUpOpen&&!e.isLaunchpadOpen},on:{purchase:function(t){return e.openPopUp(e.purchaseWindow)},upgrade:function(t){return e.openPopUp(e.purchaseWindow)},signin:function(t){return e.openPopUp(e.signInPayload)}}}),r("div",{staticClass:"relative z-0 flex flex-row items-center justify-end h-full",class:{"blur opacity-30 pointer-events-none transition-all duration-150 ease-in-out":e.isPopUpOpen&&!e.isLaunchpadOpen}},[r("h1",{staticClass:"relative text-18px border-t-0 border-r-0 border-l-0 border-b-2 border-transparent"},[e.displaydesc?[r("span",{attrs:{title:e.servermodel}},[e._v(e._s(e.serverdesc))]),r("span",{staticClass:"text-grey-mid px-8px"},[e._v("•")])]:e._e(),r("span",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.internalip,expression:"internalip",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:e.copyIpSuccess,expression:"copyIpSuccess",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:e.copyIpError,expression:"copyIpError",arg:"error"}],staticClass:"cursor-pointer",attrs:{title:e.$t("lanIp",[e.internalip])}},[e._v(e._s(e.servername))]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[e.copyingIp?r("span",{staticClass:"text-12px absolute right-0 bg-gradient-to-r from-red to-orange text-center block w-100px rounded"},[e._v(e._s(e.$t("upc.lanIpCopied")))]):e._e(),e.copyingIpFailed?r("span",{directives:[{name:"on-clickaway",rawName:"v-on-clickaway",value:e.copyFailedClickaway,expression:"copyFailedClickaway"}],staticClass:"text-12px font-semibold px-4px absolute right-0 bg-gradient-to-r from-red to-orange text-center block rounded",on:{mouseenter:e.hoverCopyFailed,mouseleave:e.leaveCopyFailed}},[e._v("LAN IP: "),r("span",{staticClass:"select-all"},[e._v(e._s(e.internalip))])]):e._e()])],2),r("div",{staticClass:"block w-2px h-24px ml-16px bg-grey-mid"}),r("div",{directives:[{name:"on-clickaway",rawName:"v-on-clickaway",value:e.closeDropdown,expression:"closeDropdown"}],staticClass:"relative flex items-center justify-end h-full",on:{mouseenter:function(t){return e.dropdownMouseEnter()},mouseleave:function(t){return e.dropdownMouseLeave()}}},[r("button",{staticClass:"UnraidUPC-username group text-18px hover:text-alpha focus:text-alpha border border-transparent flex flex-row justify-end items-center h-full px-16px outline-none focus:outline-none",class:{"text-orange-dark":e.isLaunchpadOpen||!e.username&&!e.stateData.error,"text-alpha":e.username&&!e.isLaunchpadOpen,"text-red":e.stateData.error},attrs:{title:e.usernameButtonTitle},on:{click:function(t){return e.usernameAvatarButton()}}},[e.myServersOutOfDate&&e.myServersOutOfDate.enabled&&!e.myServersOutOfDate.error?r("UnraidSvgUtilInfo",{staticClass:"text-red fill-current relative w-14px h-14px mr-8px"}):e.showWarningIcon?r("UnraidSvgUiWarning",{staticClass:"text-red fill-current relative w-24px h-24px mr-8px"}):e._e(),e.usernameButtonText?r("span",{staticClass:"inline-flex items-center bg-transparent border-t-0 border-l-0 border-r-0 border-b-2 border-transparent group-hover:border-orange-dark group-focus:border-orange-dark transition-colors duration-150 ease-in-out"},[e._v(" "+e._s(e.usernameButtonText)+" "),e.registered&&!e.isLaunchpadOpen?r("UnraidSvgUtilSelect",{staticClass:"fill-current w-8px h-8px ml-8px"}):e._e()],1):e._e(),r("span",{staticClass:"relative z-0 flex items-center justify-center w-36px h-36px rounded-full",class:{"ml-8px":e.usernameButtonText,"bg-transparent":e.registered&&!e.avatarFail,"bg-gradient-to-r from-red to-orange":!e.registered||e.avatarFail},on:{mouseenter:function(t){e.hoverImage=!0},mouseleave:function(t){e.hoverImage=!1}}},[e.registered&&!e.avatarFail?r("img",{staticClass:"absolute z-10 inset-0 w-36px h-36px rounded-full overflow-hidden",attrs:{src:e.avatar,alt:""+e.$t("upc.avatarAlt",[e.username])},on:{error:e.onAvatarError}}):[e.hoverImage?r("UnraidLoading",{staticClass:"relative z-0 w-28px",attrs:{title:e.usernameButtonTitle,"gradient-start":"#fff","gradient-stop":"#fff",height:28}}):r("UnraidLogoMark",{staticClass:"relative z-0 w-28px",attrs:{title:e.usernameButtonTitle,"gradient-start":"#fff","gradient-stop":"#fff"}})]],2),e.usernameButtonText?e._e():r("UnraidSvgUtilSelect",{staticClass:"fill-current w-8px h-8px ml-8px"})],1),r("transition",{attrs:{name:"slideVerticalFade",mode:"out-in"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.dropdownVisible,expression:"dropdownVisible"}],staticClass:"UnraidUPC-dropdown",class:{"border-grey-darkest":e.darkMode,"border-grey-light":!e.darkMode}},[e.hideMyServers?e._e():r("header",{staticClass:"text-14px pt-16px px-16px rounded-t"},[r("h5",{staticClass:"text-18px leading-none inline-flex flex-row items-center"},[r("span",{staticClass:"font-semibold"},[e._v(e._s(e.$t("upc.myServers.heading")))]),r("ui-beta",{staticClass:"ml-8px"}),e.myServersEnv?r("span",{staticClass:"ml-8px",attrs:{title:"API • "+e.myServersEnv}},[e._v("⚙️")]):e._e(),e.devEnv?r("span",{staticClass:"ml-8px",attrs:{title:e.devEnv}},[e._v("⚠️")]):e._e()],1)]),r("ul",{staticClass:"list-reset my-8px p-0"},[e.hideMyServers||e.registered?e._e():[r("li",[r("button",{staticClass:"group flex flex-row items-center justify-between",attrs:{title:e.$t("upc.opensNewHttpsWindow.base",[e.$t("signInUp")])},on:{click:function(t){return e.openPopUp(e.wizardWindow)}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilGlobe",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.$t("signInUp"))+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"text-white opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]),r("li",{staticClass:"my-8px mx-12px"},[r("hr",{staticClass:"w-full h-2px bg-gradient-to-r from-red to-orange shadow-none border-none rounded-none"})])],e.displayKeylineBelowActions?[e.stateData.actions.includes("startTrial")?r("KeyAction",{attrs:{text:e.$t("actions.startTrial")},on:{click:function(t){return e.startTrial()}}}):e._e(),e.stateData.actions.includes("purchase")?[r("KeyAction",{attrs:{text:e.$t("actions.purchase")},on:{click:function(t){return e.openPopUp(e.purchaseWindow)}}}),r("KeyAction",{attrs:{text:e.$t("actions.redeemActivationCode")},on:{click:function(t){return e.openPopUp(e.redeemWindow)}}})]:e._e(),e.stateData.actions.includes("upgrade")?r("KeyAction",{attrs:{text:e.$t("actions.upgrade")},on:{click:function(t){return e.openPopUp(e.purchaseWindow)}}}):e._e(),e.stateData.actions.includes("recover")?r("KeyAction",{attrs:{text:e.$t("actions.recover")},on:{click:function(t){return e.openPopUp(e.recoverKeyPayload)}}}):e._e(),e.stateData.actions.includes("replace")?r("KeyAction",{attrs:{text:e.$t("actions.replace")},on:{click:function(t){return e.openPopUp(e.replaceKeyPayload)}}}):e._e(),e.stateData.actions.includes("extend")?r("KeyAction",{attrs:{text:e.$t("actions.extend")},on:{click:function(t){return e.openPopUp(e.extendTrialPayload)}}}):e._e(),r("li",{staticClass:"my-8px mx-12px"},[r("hr",{staticClass:"w-full h-2px bg-gradient-to-r from-red to-orange shadow-none border-none rounded-none"})])]:e._e(),!e.hideMyServers&&e.registered||e.pirateKey||e.stateData.error.message||e.errorTooManyDisks||e.myServersOutOfDate.enabled||e.plgInstallFailed?r("MyServers",{attrs:{hideMyServers:e.hideMyServers,errorStateMessageVisible:e.errorStateMessageVisible,hideotherservers:e.hideotherservers},on:{"contact-support":function(t){return e.openPopUp(e.troubleshootPayload)},"toggle-error":function(t){e.errorStateMessageVisible=!e.errorStateMessageVisible}}}):e._e(),e._l(e.extraLinks,(function(t,n){return[t.url?r("li",{key:n},[r("a",{staticClass:"flex flex-row items-center",attrs:{href:t.url,target:t.external?"_blank":"",rel:t.external?"noopener noreferrer":"",title:t.title}},[t.external?r("UnraidSvgUtilNewWindow",{staticClass:"flex-shrink-0 fill-current w-12px h-12px mr-8px"}):e._e(),t.settings?r("UnraidSvgUtilEdit",{staticClass:"flex-shrink-0 fill-current w-12px h-12px mr-8px"}):e._e(),t.info?r("UnraidSvgUtilInfo",{staticClass:"flex-shrink-0 fill-current w-12px h-12px mr-8px"}):e._e(),e._v(" "+e._s(t.text)+" ")],1)]):r("div",{key:n+"_else",staticClass:"mx-12px"},[r("hr",{staticClass:"w-full h-2px my-8px bg-gradient-to-r from-red to-orange shadow-none border-none rounded-none"})])]})),e.hideMyServers?r("li",[r("button",{staticClass:"group flex flex-row items-center justify-between",attrs:{title:e.$t("upc.enhanceYourExperienceWithMyServers")},on:{click:function(t){return e.togglePromo()}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilInfo",{staticClass:"flex-shrink-0 fill-current w-12px h-12px mr-8px"}),r("span",[e._v(" "+e._s(e.$t("upc.enhanceYourExperienceWithMyServers"))+" "),r("ui-beta",{staticClass:"inline-block transform scale-90 opacity-70",attrs:{colorClasses:"text-beta border-beta group-hover:text-white group-focus:text-white group-hover:border-white group-focus:border-white"}})],1)],1)])]):[e.registered&&!e.plgInstallFailed?r("li",[r("button",{staticClass:"group flex flex-row items-center justify-between",attrs:{title:e.$t("upc.opensNewHttpsWindow.base",[e.$t("actions.signOutUnraidNet")])},on:{click:function(t){return e.openPopUp(e.signOutPayload)}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilLogout",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.$t("actions.signOutUnraidNet"))+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"text-white opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]):r("li",{staticClass:"relative"},[e.showRemoveBtns?e.showRemoveBtns&&!e.removingPlg?r("div",{staticClass:"flex flex-col bg-alpha"},[r("p",{staticClass:"text-12px text-center font-semibold px-16px pb-8px"},[r("em",[e._v(e._s(e.$t("upc.confirmMyServersPluginRemoval")))])]),r("div",{staticClass:"flex flex-row"},[r("button",{staticClass:"group relative bg-transparent flex flex-row justify-between items-center",attrs:{title:e.$t("upc.continueUsingMyServers")},on:{click:function(t){return e.toggleRemovePlgBtns()}}},[e._v(" "+e._s(e.$t("regWizPopUp.forms.cancel"))+" "),r("UnraidSvgUtilThumbsUp",{staticClass:"text-white opacity-0 group-hover:opacity-100 group-focus:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px"})],1),r("button",{staticClass:"btn-remove group relative flex flex-row justify-between items-center",attrs:{title:e.$t("upc.confirmMyServersPluginRemoval")},on:{click:function(t){return e.removePlugin()}}},[e._v(" "+e._s(e.$t("regWizPopUp.forms.confirm"))+" "),r("UnraidSvgUtilDelete",{staticClass:"text-white opacity-0 group-hover:opacity-100 group-focus:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px"})],1)])]):r("button",{attrs:{disabled:""}},[e._v(" "+e._s(e.$t("upc.removingMyServersPlugin"))+" ")]):r("button",{staticClass:"text-black flex flex-row items-center justify-between",attrs:{title:e.$t("upc.removeMyServersPlugin")},on:{click:function(t){return e.toggleRemovePlgBtns()}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilDelete",{staticClass:"fill-current w-12px h-12px mr-8px"}),e._v(" "+e._s(e.$t("upc.removeMyServersPlugin"))+" ")],1)])])]],2)])])],1)])],1)}),[],!1,(function(e){var t=r("e519");t.__inject__&&t.__inject__(e)}),null,null,!0).exports;var Co=v({i18n:he,store:di,name:"WanIpCheck",props:{phpWanIp:{type:String,default:""}},computed:{...Object(b.e)(["wanip","site"]),...Object(b.c)(["isRemoteAccess"]),loading(){return!this.wanip}},methods:{...Object(b.b)(["getWanIp"])},created(){Fe.debug("[🍣 WanIpCheck 🍣]"),this.wanip||this.getWanIp()}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{appear:"",name:"fade",mode:"out-in"}},[e.loading?r("span",{domProps:{innerHTML:e._s(e.$t("wanIpCheck.checking")+"…")}}):[e.phpWanIp?[e.isRemoteAccess?r("span",{domProps:{innerHTML:e._s(e.$t("wanIpCheck.match",[e.phpWanIp]))}}):e.phpWanIp!==e.wanip||e.isRemoteAccess?r("span",{staticClass:"mismatch",domProps:{innerHTML:e._s(e.$t("wanIpCheck.mismatch",[e.phpWanIp,e.wanip]))}}):r("span",{domProps:{innerHTML:e._s(e.$t("wanIpCheck.match",[e.wanip]))}})]:r("span",{staticClass:"error",domProps:{innerHTML:e._s(e.$t("wanIpCheck.resolveError"))}})]],2)}),[],!1,(function(e){var t=r("6e03");t.__inject__&&t.__inject__(e)}),"4ca8352c",null,!0).exports;window.customElements.define("unraid-authed",g(o.default,fi)),window.customElements.define("unraid-launchpad",g(o.default,Di)),window.customElements.define("unraid-promo",g(o.default,qi)),window.customElements.define("unraid-upc-trigger",g(o.default,Yi)),window.customElements.define("unraid-user-profile",g(o.default,Ro)),window.customElements.define("unraid-wan-ip-check",g(o.default,Co))},"5b71":function(e,t,r){"use strict";r.r(t);var n=r("c725");for(var i in n)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(i)},"5d74":function(e,t,r){e.exports={options:{},ssr:function(e,t){var r=e.data,n=r.attrs,i=n.symbol,o=n.size,a=this.getAttributes(o);a&&(r.attrs=Object.assign({},r.attrs,a)),o&&delete r.attrs.size,i&&delete r.attrs.symbol;var s=r.class,c=r.staticClass||"";c+=s?Object.keys(s).join(" "):"",this.hasClass(c)||(r.staticClass=r.staticClass?r.staticClass+" "+this.options.class:this.options.class);var l=e.context.$createElement("use",{attrs:{href:this.getHref(i)}});Array.isArray(e.children)?e.children.push(l):e.children=[l]},install:function(e,t){void 0===t&&(t={}),this.options.class=t.class||"icon",this.options.url=void 0===t.url?"/assets/svg/sprite.svg":t.url;var r=this;e.directive("svg",{bind:function(e,t,n){var i=t.value||n.data.attrs.symbol,o=n.data.attrs&&n.data.attrs.size,a=r.getAttributes(o);a&&(e.setAttribute("viewBox",a.viewBox),e.setAttribute("width",a.width),e.setAttribute("height",a.height)),i&&e.removeAttribute("symbol"),o&&e.removeAttribute("size");var s=e.getAttribute("class");if(r.hasClass(s)||e.setAttribute("class",s?s+" "+r.options.class:r.options.class),!e||null===e.querySelector("use")){var c=document.createElementNS("http://www.w3.org/2000/svg","use"),l=r.getHref(i);c.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l),c.setAttribute("href",l),e.appendChild(c)}},update:function(e,t,n){var i=r.getHref(t.value||n.data.attrs.symbol),o=e&&e.querySelector("use");if(o){if(o.getAttribute("href")===i)return!1;var a=document.createElementNS("http://www.w3.org/2000/svg","use");a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i),a.setAttribute("href",i),e.replaceChild(a,o)}}})},getAttributes:function(e){if(!e)return null;var t=e.toString().replace(/( |, |,)/g," ").split(" "),r=t.length;if(3===r||r>4)return console.warn('[vue-svg-sprite] size: "'+e+'" is not valid'),null;var n=[];n[0]=r<4?0:t[0],n[1]=r<4?0:t[1];var i=n[2]=r<4?t[0]:t[2];return{height:n[3]=t[r-1],viewBox:n.join(" "),width:i}},hasClass:function(e){var t=this.options.class;return!!e&&e.split(" ").some((function(e){var r=e.split(/(-|_)/)[0];return-1!==r.indexOf(t)&&r.length===t.length}))},getHref:function(e){return""===this.options.url?"#"+e:this.options.url+"#"+e}}},"607e":function(e,t){e.exports={functional:!0,render(e,t){const{_c:r,_v:n,data:i,children:o=[]}=t,{class:a,staticClass:s,style:c,staticStyle:l,attrs:u={},...p}=i;return r("svg",{class:[a,s],style:[c,l],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u),...p},o.concat([r("path",{attrs:{"fill-rule":"evenodd",d:"M0 7h2v8l-2 1V7zm3.5 7V7C5 6.7 6.365 4.915 7.595 1.646A1.767 1.767 0 019.25.5c.69 0 1.25.56 1.25 1.25V6h3.09a2 2 0 011.966 2.369l-.75 4A2 2 0 0112.84 14H3.5z"}})]))}}},6210:function(e,t,r){e.exports=function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e),r={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function n(e,t,n){var i=r[n];return Array.isArray(i)&&(i=i[t?0:1]),i.replace("%d",e)}var i={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan_Feb_März_Apr_Mai_Juni_Juli_Aug_Sept_Okt_Nov_Dez".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n}};return t.default.locale(i,null,!0),i}(r("5a0c"))},"626e":function(e,t,r){"use strict";var n=[/passw(or)?d/i,/^pw$/,/^pass$/i,/secret/i,/token/i,/api[-._]?key/i,/session[-._]?id/i,/^connect\.sid$/],i=[/^\d{4}[- ]?\d{4}[- ]?\d{4}[- ]?\d{4}$/];t.key=function(e){return n.some((function(t){return t.test(e)}))},t.value=function(e){return i.some((function(t){return t.test(e)}))}},"633a":function(e,t,r){"use strict";(function(e){var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0){var s=t.shift();s&&s.applyMiddleware.apply(i,[e,o])}else r(e)};o()}(a(t.middlewares),t)}))},e.prototype.use=function(e){var t=this;return e.map((function(e){if("function"!=typeof e.applyMiddleware)throw new Error("Middleware must implement the applyMiddleware function.");t.middlewares.push(e)})),this},e.prototype.getConnectionParams=function(e){return function(){return new Promise((function(t,r){if("function"==typeof e)try{return t(e.call(null))}catch(e){return r(e)}t(e)}))}},e.prototype.executeOperation=function(e,t){var r=this;null===this.client&&this.connect();var n=this.generateOperationId();return this.operations[n]={options:e,handler:t},this.applyMiddlewares(e).then((function(e){r.checkOperationOptions(e,t),r.operations[n]&&(r.operations[n]={options:e,handler:t},r.sendMessage(n,b.default.GQL_START,e))})).catch((function(e){r.unsubscribe(n),t(r.formatErrors(e))})),n},e.prototype.getObserver=function(e,t,r){return"function"==typeof e?{next:function(t){return e(t)},error:function(e){return t&&t(e)},complete:function(){return r&&r()}}:e},e.prototype.createMaxConnectTimeGenerator=function(){var e=this.minWsTimeout,t=this.wsTimeout;return new l({min:e,max:t,factor:1.2})},e.prototype.clearCheckConnectionInterval=function(){this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnectionIntervalId=null)},e.prototype.clearMaxConnectTimeout=function(){this.maxConnectTimeoutId&&(clearTimeout(this.maxConnectTimeoutId),this.maxConnectTimeoutId=null)},e.prototype.clearTryReconnectTimeout=function(){this.tryReconnectTimeoutId&&(clearTimeout(this.tryReconnectTimeoutId),this.tryReconnectTimeoutId=null)},e.prototype.clearInactivityTimeout=function(){this.inactivityTimeoutId&&(clearTimeout(this.inactivityTimeoutId),this.inactivityTimeoutId=null)},e.prototype.setInactivityTimeout=function(){var e=this;this.inactivityTimeout>0&&0===Object.keys(this.operations).length&&(this.inactivityTimeoutId=setTimeout((function(){0===Object.keys(e.operations).length&&e.close()}),this.inactivityTimeout))},e.prototype.checkOperationOptions=function(e,t){var r=e.query,n=e.variables,i=e.operationName;if(!r)throw new Error("Must provide a query.");if(!t)throw new Error("Must provide an handler.");if(!p.default(r)&&!h.getOperationAST(r,i)||i&&!p.default(i)||n&&!d.default(n))throw new Error("Incorrect option types. query must be a string or a document,`operationName` must be a string, and `variables` must be an object.")},e.prototype.buildMessage=function(e,t,r){return{id:e,type:t,payload:r&&r.query?n(n({},r),{query:"string"==typeof r.query?r.query:f.print(r.query)}):r}},e.prototype.formatErrors=function(e){return Array.isArray(e)?e:e&&e.errors?this.formatErrors(e.errors):e&&e.message?[e]:[{name:"FormatedError",message:"Unknown error",originalError:e}]},e.prototype.sendMessage=function(e,t,r){this.sendMessageRaw(this.buildMessage(e,t,r))},e.prototype.sendMessageRaw=function(e){switch(this.status){case this.wsImpl.OPEN:var t=JSON.stringify(e);try{JSON.parse(t)}catch(t){this.eventEmitter.emit("error",new Error("Message must be JSON-serializable. Got: "+e))}this.client.send(t);break;case this.wsImpl.CONNECTING:this.unsentMessagesQueue.push(e);break;default:this.reconnecting||this.eventEmitter.emit("error",new Error("A message was not sent because socket is not connected, is closing or is already closed. Message was: "+JSON.stringify(e)))}},e.prototype.generateOperationId=function(){return String(++this.nextOperationId)},e.prototype.tryReconnect=function(){var e=this;if(this.reconnect&&!(this.backoff.attempts>=this.reconnectionAttempts)){this.reconnecting||(Object.keys(this.operations).forEach((function(t){e.unsentMessagesQueue.push(e.buildMessage(t,b.default.GQL_START,e.operations[t].options))})),this.reconnecting=!0),this.clearTryReconnectTimeout();var t=this.backoff.duration();this.tryReconnectTimeoutId=setTimeout((function(){e.connect()}),t)}},e.prototype.flushUnsentMessagesQueue=function(){var e=this;this.unsentMessagesQueue.forEach((function(t){e.sendMessageRaw(t)})),this.unsentMessagesQueue=[]},e.prototype.checkConnection=function(){this.wasKeepAliveReceived?this.wasKeepAliveReceived=!1:this.reconnecting||this.close(!1,!0)},e.prototype.checkMaxConnectTimeout=function(){var e=this;this.clearMaxConnectTimeout(),this.maxConnectTimeoutId=setTimeout((function(){e.status!==e.wsImpl.OPEN&&(e.reconnecting=!0,e.close(!1,!0))}),this.maxConnectTimeGenerator.duration())},e.prototype.connect=function(){var e,t=this;this.client=new((e=this.wsImpl).bind.apply(e,a([void 0,this.url,this.wsProtocols],this.wsOptionArguments))),this.checkMaxConnectTimeout(),this.client.onopen=function(){return i(t,void 0,void 0,(function(){var e,t;return o(this,(function(r){switch(r.label){case 0:if(this.status!==this.wsImpl.OPEN)return[3,4];this.clearMaxConnectTimeout(),this.closedByUser=!1,this.eventEmitter.emit(this.reconnecting?"reconnecting":"connecting"),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.connectionParams()];case 2:return e=r.sent(),this.sendMessage(void 0,b.default.GQL_CONNECTION_INIT,e),this.flushUnsentMessagesQueue(),[3,4];case 3:return t=r.sent(),this.sendMessage(void 0,b.default.GQL_CONNECTION_ERROR,t),this.flushUnsentMessagesQueue(),[3,4];case 4:return[2]}}))}))},this.client.onclose=function(){t.closedByUser||t.close(!1,!1)},this.client.onerror=function(e){t.eventEmitter.emit("error",e)},this.client.onmessage=function(e){var r=e.data;t.processReceivedData(r)}},e.prototype.processReceivedData=function(e){var t,r;try{r=(t=JSON.parse(e)).id}catch(t){throw new Error("Message must be JSON-parseable. Got: "+e)}if(-1===[b.default.GQL_DATA,b.default.GQL_COMPLETE,b.default.GQL_ERROR].indexOf(t.type)||this.operations[r])switch(t.type){case b.default.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(t.payload);break;case b.default.GQL_CONNECTION_ACK:this.eventEmitter.emit(this.reconnecting?"reconnected":"connected",t.payload),this.reconnecting=!1,this.backoff.reset(),this.maxConnectTimeGenerator.reset(),this.connectionCallback&&this.connectionCallback();break;case b.default.GQL_COMPLETE:var i=this.operations[r].handler;delete this.operations[r],i.call(this,null,null);break;case b.default.GQL_ERROR:this.operations[r].handler(this.formatErrors(t.payload),null),delete this.operations[r];break;case b.default.GQL_DATA:var o=t.payload.errors?n(n({},t.payload),{errors:this.formatErrors(t.payload.errors)}):t.payload;this.operations[r].handler(null,o);break;case b.default.GQL_CONNECTION_KEEP_ALIVE:var a=void 0===this.wasKeepAliveReceived;this.wasKeepAliveReceived=!0,a&&this.checkConnection(),this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnection()),this.checkConnectionIntervalId=setInterval(this.checkConnection.bind(this),this.wsTimeout);break;default:throw new Error("Invalid message type!")}else this.unsubscribe(r)},e.prototype.unsubscribe=function(e){this.operations[e]&&(delete this.operations[e],this.setInactivityTimeout(),this.sendMessage(e,b.default.GQL_STOP,void 0))},e}();t.SubscriptionClient=y}).call(this,r("c8ba"))},6788:function(e,t){e.exports={functional:!0,render(e,t){const{_c:r,_v:n,data:i,children:o=[]}=t,{class:a,staticClass:s,style:c,staticStyle:l,attrs:u={},...p}=i;return r("svg",{class:[a,s],style:[c,l],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},u),...p},o.concat([r("path",{attrs:{"fill-rule":"evenodd",d:"M0 6l5.584-.5L8 0l2.5 5.5L16 6l-4 4 1 6-5-3.5L3 16l1-6z"}})]))}}},6981:function(e,t,r){ /*! * clipboard.js v2.0.8 * https://clipboardjs.com/