"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[3744,9425],{38319:function(e,t,n){n.r(t),n.d(t,{authorize:function(){return r}});var i=n(44614),u=n(25152),r=function(e){var t=ApiClient.getUrl("/QuickConnect/Authorize?Code="+e);return ApiClient.ajax({type:"POST",url:t},!0).then((function(){(0,u.Z)(i.ZP.translate("QuickConnectAuthorizeSuccess"))})).catch((function(){(0,u.Z)(i.ZP.translate("QuickConnectAuthorizeFail"))})),!1}},20642:function(e,t,n){n.r(t),n.d(t,{default:function(){return c}}),n(52077),n(911);var i=n(38319),u=n(44614),r=n(25152);function c(e){e.addEventListener("viewshow",(function(){var t=e.querySelector("#txtQuickConnectCode");e.querySelector(".quickConnectSettingsContainer").addEventListener("submit",(function(e){if(e.preventDefault(),t.validity.valid){var n=t.value.replace(/\s/g,"");(0,i.authorize)(n)}else(0,r.Z)(u.ZP.translate("QuickConnectInvalidCode"))}))}))}}}]);