tocco-widget-bundle 0.1.165 → 0.1.166
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +8 -0
- package/dist/address-update.js +7 -7
- package/dist/chunk-240.c622e5d61d890ca24ef8.js +1 -0
- package/dist/chunk-690.80218421a3b423214941.js +1 -0
- package/dist/{chunk-vendor-icons.675f59f30b0ab2ec2841.js → chunk-vendor-icons.c42c48040a43892f6dbd.js} +1 -1
- package/dist/docs-browser.js +2 -2
- package/dist/entity-browser.js +2 -2
- package/dist/entity-dms.js +2 -2
- package/dist/evaluation-execution-participation.js +2 -2
- package/dist/event-registration.js +2 -2
- package/dist/job-application.js +2 -2
- package/dist/login.js +1 -1
- package/dist/mailing-list.js +2 -2
- package/dist/password-update.js +1 -1
- package/dist/personal-dms.js +2 -2
- package/dist/public-dms.js +2 -2
- package/dist/sso-login.js +1 -1
- package/dist/stint-auction.js +2 -2
- package/dist/user-availability.js +2 -2
- package/dist/user-grades.js +2 -2
- package/dist/user-menu.js +1 -1
- package/dist/wage-view.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-240.c590ba9ee84cd8211f38.js +0 -1
- package/dist/chunk-690.dcb12ce0d3d2c60e2a2b.js +0 -1
package/dist/login.js
CHANGED
|
@@ -49,7 +49,7 @@ e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,ge
|
|
|
49
49
|
*
|
|
50
50
|
* This source code is licensed under the MIT license found in the
|
|
51
51
|
* LICENSE file in the root directory of this source tree.
|
|
52
|
-
*/var r=n(1024),o=n(61688);var a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useSyncExternalStore,c=r.useRef,s=r.useEffect,u=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var f=c(null);if(null===f.current){var p={hasValue:!1,value:null};f.current=p}else p=f.current;f=u((function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==o&&p.hasValue){var t=p.value;if(o(t,e))return c=t}return c=e}if(t=c,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,c=n)}var i,c,s=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,n,r,o]);var d=i(e,f[0],f[1]);return s((function(){p.hasValue=!0,p.value=d}),[d]),l(d),d}},61688:(e,t,n)=>{"use strict";e.exports=n(53250)},52798:(e,t,n)=>{"use strict";e.exports=n(50139)},28721:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});const r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let o;const a=new Uint8Array(16);function i(){if(!o&&(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!o))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(a)}const c=[];for(let e=0;e<256;++e)c.push((e+256).toString(16).slice(1));function s(e,t=0){return(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase()}const u=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();const o=(e=e||{}).random||(e.rng||i)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return s(o)}},1024:e=>{"use strict";e.exports=t},30314:t=>{"use strict";t.exports=e},71298:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},38088:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},87462:(e,t,n)=>{"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Z:()=>r})},86:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:()=>r})},31599:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},28549:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},2717:(e,t,n)=>{"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Z:()=>r})},33417:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(28549);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},32924:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},1972:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(78001);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},62360:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:()=>r})},78001:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(31599);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}i.m=o,i.amdD=function(){throw new Error("define cannot be used indirect")},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>"chunk-"+({85:"code-editor",198:"vendor-fontawesome",614:"vendor-icons",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"90043e6c234758127b6c",198:"ab9f2eea50d01a3a62a9",560:"e3d5772311dd2d78dc20",608:"c3b57ad1736c5780e353",614:"675f59f30b0ab2ec2841",631:"8d55ab629611cf584826",877:"a7f934130ec5ac7a8cff"}[e]+".js",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="tocco-:",i.l=(e,t,o,a)=>{if(n[e])n[e].push(t);else{var c,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var f=u[l];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==r+o){c=f;break}}c||(s=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.setAttribute("data-webpack",r+o),c.src=e),n[e]=[t];var p=(t,r)=>{c.onerror=c.onload=null,clearTimeout(d);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(r))),t)return t(r)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=p.bind(null,c.onerror),c.onload=p.bind(null,c.onload),s&&document.head.appendChild(c)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.j=535,i.p="/",(()=>{var e={535:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var a=i.p+i.u(t),c=new Error;i.l(a,(n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",c.name="ChunkLoadError",c.type=o,c.request=a,r[1](c)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,c,s]=n,u=0;if(a.some((t=>0!==e[t]))){for(r in c)i.o(c,r)&&(i.m[r]=c[r]);if(s)s(i)}for(t&&t(n);u<a.length;u++)o=a[u],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_=self.webpackChunktocco_||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),i.nc=void 0;var c={};return(()=>{"use strict";i.r(c),i.d(c,{app:()=>ib});var e=i(18882),t=i(59713),n=i.n(t),r=i(45697),o=i.n(r),a=i(19743),s=i(19241),u=i(23369),l=i(65378),f=i(74806),p=i(50558),d="login/INITIALIZE",h="login/LOGIN",m="login/REQUEST_PASSWORD",g="login/CHECK_USERNAME",v=function(e,t,n,r){return{type:h,payload:{username:e,password:t,captchaToken:n,userCode:r}}},y=i(28655),b=i.n(y),w=i(1024),O=i.n(w),x=i(38205),k="USERNAME_FORM",S="LOGIN_FORM",P="PASSWORD_REQUEST",j="TWOSTEPLOGIN",_="PASSWORD_UPDATE",E="TWOSTEPLOGIN_ACTIVATION",C="login/CHANGE_PAGE",T="login/SET_ENTRY_PAGE",D="login/SET_USERNAME",R="login/SET_PASSWORD",M="login/SET_CAPTCHA_KEY",I=function(e){return{type:T,payload:{entryPage:e}}},A=function(e){return{type:C,payload:{currentPage:e}}},N=function(e){return{type:D,payload:{username:e}}},Z=function(e){return{type:R,payload:{password:e}}},L=i(48926),F=i.n(L),U=i(63038),H=i.n(U),B=i(87757),W=i.n(B),z=i(99860),Y=i.n(z);function V(){return(V=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function q(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var G=function(e){var t,n;function r(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(q(t)),t.handleErrored=t.handleErrored.bind(q(t)),t.handleChange=t.handleChange.bind(q(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(q(t)),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getValue=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this.props.grecaptcha.getResponse(this._widgetId):null},o.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},o.execute=function(){var e=this.props.grecaptcha;if(e&&void 0!==this._widgetId)return e.execute(this._widgetId);this._executeRequested=!0},o.executeAsync=function(){var e=this;return new Promise((function(t,n){e.executionResolve=t,e.executionReject=n,e.execute()}))},o.reset=function(){this.props.grecaptcha&&void 0!==this._widgetId&&this.props.grecaptcha.reset(this._widgetId)},o.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},o.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},o.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},o.explicitRender=function(){if(this.props.grecaptcha&&this.props.grecaptcha.render&&void 0===this._widgetId){var e=document.createElement("div");this._widgetId=this.props.grecaptcha.render(e,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge}),this.captcha.appendChild(e)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},o.componentDidMount=function(){this.explicitRender()},o.componentDidUpdate=function(){this.explicitRender()},o.componentWillUnmount=function(){void 0!==this._widgetId&&(this.delayOfCaptchaIframeRemoving(),this.reset())},o.delayOfCaptchaIframeRemoving=function(){var e=document.createElement("div");for(document.body.appendChild(e),e.style.display="none";this.captcha.firstChild;)e.appendChild(this.captcha.firstChild);setTimeout((function(){document.body.removeChild(e)}),5e3)},o.handleRecaptchaRef=function(e){this.captcha=e},o.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl"]));return O().createElement("div",V({},t,{ref:this.handleRecaptchaRef}))},r}(O().Component);G.displayName="ReCAPTCHA",G.propTypes={sitekey:Y().string.isRequired,onChange:Y().func,grecaptcha:Y().object,theme:Y().oneOf(["dark","light"]),type:Y().oneOf(["image","audio"]),tabindex:Y().number,onExpired:Y().func,onErrored:Y().func,size:Y().oneOf(["compact","normal","invisible"]),stoken:Y().string,hl:Y().string,badge:Y().oneOf(["bottomright","bottomleft","inline"])},G.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var K=i(9657),X=i.n(K),$=i(8679),Q=i.n($);function J(){return(J=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ee={},te=0;var ne="onloadcallback";const re=function(e,t){return t=t||{},function(n){var r=n.displayName||n.name||"Component",o=function(r){var o,a;function i(e,t){var n;return(n=r.call(this,e,t)||this).state={},n.__scriptURL="",n}a=r,(o=i).prototype=Object.create(a.prototype),o.prototype.constructor=o,o.__proto__=a;var c=i.prototype;return c.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+te++),this.__scriptLoaderID},c.setupScriptURL=function(){return this.__scriptURL="function"==typeof e?e():e,this.__scriptURL},c.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,(function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)}))},c.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=ee[this.__scriptURL];if(!e||!e.loaded)throw new Error("Script is not loaded.");for(var n in e.observers)e.observers[n](e);delete window[t.callbackName]},c.componentDidMount=function(){var e=this,n=this.setupScriptURL(),r=this.asyncScriptLoaderGetScriptLoaderID(),o=t,a=o.globalName,i=o.callbackName,c=o.scriptId;if(a&&void 0!==window[a]&&(ee[n]={loaded:!0,observers:{}}),ee[n]){var s=ee[n];return s&&(s.loaded||s.errored)?void this.asyncScriptLoaderHandleLoad(s):void(s.observers[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var u={};u[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)},ee[n]={loaded:!1,observers:u};var l=document.createElement("script");for(var f in l.src=n,l.async=!0,t.attributes)l.setAttribute(f,t.attributes[f]);c&&(l.id=c);var p=function(e){if(ee[n]){var t=ee[n].observers;for(var r in t)e(t[r])&&delete t[r]}};i&&"undefined"!=typeof window&&(window[i]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),l.onload=function(){var e=ee[n];e&&(e.loaded=!0,p((function(t){return!i&&(t(e),!0)})))},l.onerror=function(){var e=ee[n];e&&(e.errored=!0,p((function(t){return t(e),!0})))},document.body.appendChild(l)},c.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===t.removeOnUnmount)for(var n=document.getElementsByTagName("script"),r=0;r<n.length;r+=1)n[r].src.indexOf(e)>-1&&n[r].parentNode&&n[r].parentNode.removeChild(n[r]);var o=ee[e];o&&(delete o.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===t.removeOnUnmount&&delete ee[e])},c.render=function(){var e=t.globalName,r=this.props,o=(r.asyncScriptOnLoad,r.forwardedRef),a=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,["asyncScriptOnLoad","forwardedRef"]);return e&&"undefined"!=typeof window&&(a[e]=void 0!==window[e]?window[e]:void 0),a.ref=o,(0,w.createElement)(n,a)},i}(w.Component),a=(0,w.forwardRef)((function(e,t){return(0,w.createElement)(o,J({},e,{forwardedRef:t}))}));return a.displayName="AsyncScriptLoader("+r+")",a.propTypes={asyncScriptOnLoad:X().func},Q()(a,n)}}((function(){return"https://"+(("undefined"!=typeof window&&window.recaptchaOptions||{}).useRecaptchaNet?"recaptcha.net":"www.google.com")+"/recaptcha/api.js?onload="+ne+"&render=explicit"}),{callbackName:ne,globalName:"grecaptcha"})(G);var oe=i(41505),ae=i.n(oe),ie=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ce=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},se=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},ue={outline:"none"},le=function(e){function t(){var n,r;ie(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=se(this,e.call.apply(e,[this].concat(a))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=O().createRef(),r._onFocusIn=function(){r._isMounted&&r._lastBlurEvent&&r.isInsideNode(r.ref.current,r._lastBlurEvent.target)&&!r.isInsideNode(r.ref.current,document.activeElement)&&r.setState({focused:!1},(function(){document.removeEventListener("focusin",r._onFocusIn),r.props.onBlur(r._lastBlurEvent)}))},r.onFocus=function(e){var t=r.props.onFocus;r.state.focused||r.setState({focused:!0},(function(){document.addEventListener("focusin",r._onFocusIn),t(e)}))},r.onBlur=function(e){e.persist(),r._lastBlurEvent=e},r.isInsideNode=function(e,t){return null!=e&&e.contains(t)},se(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){null!=document&&document.querySelector("body").setAttribute("tabindex","-1"),this._isMounted=!0},t.prototype.componentWillUnmount=function(){this._isMounted=!1,document.removeEventListener("focusin",this._onFocusIn)},t.prototype.focus=function(){var e=this.ref.current;null!=e&&"function"==typeof e.focus&&e.focus()},t.prototype.render=function(){var e=this.props.children,t=this.state.focused,n={onFocus:this.onFocus,onBlur:this.onBlur};return"function"==typeof e?O().cloneElement(e({focused:t,getRef:this.ref}),n):O().createElement("div",ce({ref:this.ref,style:ue},n),e)},t}(O().Component);le.propTypes={children:ae().oneOfType([ae().node,ae().func]).isRequired,onBlur:ae().func,onFocus:ae().func},le.defaultProps={onBlur:function(){},onFocus:function(){}};const fe=le;var pe,de,he,me,ge=i(70696),ve=i(10535),ye=i(23427),be=i(319),we=i.n(be),Oe=i(37188),xe=i(24875),ke=(pe={},n()(pe,ye.Z.condition.BASE,"inherit"),n()(pe,ye.Z.condition.DANGER,xe.FS.color("signal.danger")),n()(pe,ye.Z.condition.SUCCESS,xe.FS.color("signal.success")),n()(pe,ye.Z.condition.WARNING,xe.FS.color("signal.warning")),n()(pe,ye.Z.condition.INFO,xe.FS.color("signal.info")),pe),Se=(0,x.ZP)(Oe.hc).withConfig({displayName:"StyledSignalList"})(de||(de=b()(["\n && {\n list-style-type: none;\n }\n"]))),Pe=x.ZP.span.withConfig({displayName:"StyledSignalListIcon"})(he||(he=b()(["\n position: absolute;\n left: -1.6rem;\n text-align: left;\n"]))),je=(0,x.ZP)(Oe.EF).withConfig({displayName:"StyledSignalListItem"})(me||(me=b()(["\n && {\n color: ",";\n position: relative;\n padding: 0;\n }\n"])),(function(e){return function(e){return ke[e.condition]||"inherit"}(e)})),_e=i(85893);const Ee=function(e){return(0,_e.jsx)(Se,{as:"ul",children:O().Children.map(e.children,(function(e){return O().cloneElement(e)}))})};var Ce,Te,De=i(88162),Re=(Ce={},n()(Ce,ye.Z.condition.BASE,!1),n()(Ce,ye.Z.condition.DANGER,"times"),n()(Ce,ye.Z.condition.SUCCESS,"check"),n()(Ce,ye.Z.condition.WARNING,"exclamation-triangle"),n()(Ce,ye.Z.condition.INFO,"info"),Ce),Me=function(e){var t=Re[e.condition];return t?(0,_e.jsx)(De.Z,{icon:t,position:ye.Z.position.SOLE}):Te||(Te=(0,_e.jsx)("i",{children:"•"}))},Ie=function(e){return(0,_e.jsxs)(je,{condition:e.condition,children:[(0,_e.jsx)(Pe,{children:Me(e)}),e.label,O().Children.map(e.children,(function(e){return O().cloneElement(e)}))]})};Ie.defaultProps={condition:ye.Z.condition.BASE};const Ae={List:Ee,Item:Ie};const Ne=function(e){if(!e.error)return null;var t=[];return Object.keys(e.error).forEach((function(n){t.push.apply(t,we()(e.error[n]))})),(0,_e.jsx)(Ae.List,{children:t.map((function(e,t){return(0,_e.jsx)(Ae.Item,{condition:"danger",label:e},t)}))})};var Ze=i(87585);function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Le(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Ue=function(e){var t,n,r,o,a=e.children,i=e.description,c=e.dirty,s=e.isDisplay,l=e.error,f=e.hasValue,p=e.id,d=e.label,h=e.mandatory,m=e.mandatoryTitle,g=e.immutable,v=e.touched,y=e.signal,b=!g&&v&&l&&Object.keys(l).length>0,w=h&&m?", ".concat(m):"",O="".concat(ge.Z.adjustedHTMLString(d)).concat(w),x=y||function(e,t,n,r){return t?ye.Z.condition.DANGER:e?ye.Z.condition.INFO:n&&!r?ye.Z.condition.WARNING:void 0}(c,b,h,f),k={__html:"".concat(ve.Z.sanitizeHtml(d)).concat(h?" *":"")},S=!s&&!g&&{htmlFor:p},P=u.Z.getEmbedType(),j=["admin","legacy-admin"].includes(P);return(0,_e.jsx)(fe,{children:function(e){var u=e.getRef;return(0,_e.jsx)(Ze.T3,{children:(0,_e.jsxs)(Ze.QZ,{ref:u,label:d,isAdmin:j,children:[d&&(0,_e.jsx)(Ze.yr,Fe(Fe({},S),{},{hasValue:f,dirty:c,title:O,immutable:g,isDisplay:s,signal:x,isAdmin:j,children:t||(t=(0,_e.jsx)("span",{dangerouslySetInnerHTML:k}))})),(0,_e.jsxs)(Ze.m9,{isAdmin:j,children:[n||(n=(0,_e.jsx)(Ze.if,{hasValue:f,immutable:g,isDisplay:s,signal:x,children:a})),b&&(r||(r=(0,_e.jsx)(Ze.gi,{children:(0,_e.jsx)(Ne,{error:l})}))),i&&(o||(o=(0,_e.jsx)(Ze.Mp,{children:i})))]})]})})}})};var He=i(35997);const Be=(0,f.ZP)((function(e){var t,n=e.message,r=e.intl;return n&&n.text?(0,_e.jsx)(Ae.List,{children:(0,_e.jsx)(Ae.Item,{condition:n.negative?"danger":"base",label:(t=n.text,r.formatMessage({id:t}))})}):null}));var We,ze=i(6479),Ye=i.n(ze),Ve=i(65035),qe=i(7281),Ge=i(88601),Ke=(0,x.ZP)(Ve.Z).withConfig({displayName:"StyledLoginButton"})(We||(We=b()(["\n &&& {\n font-size: ",";\n border-radius: ",";\n display: flex;\n justify-content: center;\n padding: 1.25rem 0;\n width: 100%;\n margin-top: 20px;\n margin-bottom: 10px;\n\n &:not(:last-child) {\n margin-right: 0;\n }\n }\n"])),qe.Z.font(1.3),Ge.Z.radii("buttonLarge")),Xe=["disabled","pending","label"];function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Qe=function(e){var t=e.disabled,r=e.pending,o=e.label,a=Ye()(e,Xe);return(0,_e.jsx)(Ke,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$e(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({disabled:t,pending:r,label:o,ink:"primary",look:"raised",type:"submit","data-cy":"btn-submit"},a))};var Je=i(44012),et=i(34206);const tt=function(e){var t=e.title,n=e.subtitle;return(0,_e.jsxs)(_e.Fragment,{children:[(0,_e.jsx)(et.ZP.H5,{children:(0,_e.jsx)(Je.Z,{id:t})}),n&&(0,_e.jsx)(et.ZP.P,{children:(0,_e.jsx)(Je.Z,{id:n})})]})};const nt=function(e){var t=(0,w.useState)(!1),n=H()(t,2),r=n[0],o=n[1];return[r,{onAnimationStart:function(e){"onAutoFillStart"===e.animationName&&o(!0)},onChange:function(t){e(t.target.value),o(!1)}}]};var rt,ot,at,it,ct,st,ut,lt=i(30759),ft=(0,x.iv)(rt||(rt=b()(["\n align-items: center;\n cursor: ",";\n display: flex;\n"])),(function(e){return e.immutable?"not-allowed":"default"})),pt=x.ZP.label.withConfig({displayName:"StyledEditableWrapper"})(ot||(ot=b()(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),ft),dt=(0,x.iv)(at||(at=b()(["\n background-color: transparent;\n border: 0;\n cursor: ",";\n flex-grow: 1;\n min-height: 2.6rem;\n min-width: 0;\n outline: 0;\n padding: 0;\n ","\n &::-ms-clear {\n display: none;\n }\n\n &::-webkit-clear-button {\n display: none;\n }\n\n &::-webkit-inner-spin-button {\n display: none;\n }\n\n &[type='number'] {\n appearance: textfield;\n }\n\n &[type='search'] {\n appearance: none;\n }\n\n &:disabled {\n -webkit-text-fill-color: ","; // Safari fix\n opacity: 1; // iOS fix\n }\n\n /* remove indicators */\n &[type='date'],\n &[type='datetime-local'],\n &[type='month'],\n &[type='time'],\n &[type='week'] {\n appearance: none;\n display: flex;\n\n /* reset margin on smaller screens */\n ::-webkit-date-and-time-value {\n ","\n }\n }\n\n // allow pointer event only on touch devices\n @media (pointer: coarse) {\n pointer-events: ",";\n }\n"])),(function(e){return e.immutable?"not-allowed":"default"}),(function(){return(0,lt.Z)({color:xe.FS.color("text")})}),xe.FS.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),ht=(0,x.iv)(it||(it=b()(["\n display: flex;\n align-items: center;\n"]))),mt=x.ZP.div.withConfig({displayName:"StyledEditableControl"})(ct||(ct=b()(["\n &&& {\n ","\n }\n"])),ht),gt=x.ZP.span.withConfig({displayName:"StyledEditableValue"})(st||(st=b()(["\n width: 100%;\n\n && {\n //url\n [type='url'] + .input-group-addon > a {\n color: inherit; // reset bootstrap default\n }\n\n //url\n [type='tel'] + .input-group-addon > a {\n color: inherit; // reset bootstrap default\n }\n\n //date\n .date-edit {\n .input-group-addon {\n cursor: pointer;\n }\n\n input {\n z-index: 0;\n }\n\n &.disabled {\n input {\n cursor: not-allowed;\n }\n }\n\n .right-addon {\n position: relative;\n }\n\n .right-addon input {\n padding-right: 30px;\n }\n\n .reset {\n position: absolute;\n padding-right: 10px;\n padding-top: 5px;\n right: 0;\n color: #999;\n font-size: 18px;\n font-style: normal;\n cursor: pointer;\n }\n\n .reset:hover {\n color: ",";\n }\n }\n }\n"])),xe.FS.color("signal.danger")),vt=i(58129);const yt=x.ZP.div.withConfig({displayName:"StyledButtonGroup"})(ut||(ut=b()(["\n display: flex;\n\n &&& > "," {\n :not(:first-child) {\n margin-left: -1px;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n\n :not(:last-child) {\n margin-right: 0;\n border-right: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n }\n"])),vt.Z);var bt,wt,Ot,xt,kt,St=x.ZP.input.withConfig({displayName:"StyledLoginFormInput"})(bt||(bt=b()(["\n /* stylelint-disable-next-line block-no-empty */\n @keyframes onAutoFillStart {\n from {\n }\n }\n\n &&&& {\n ","\n transition: background-color 50000s, color 50000s, filter 50000s;\n\n &:-webkit-autofill {\n animation-duration: 50000s;\n animation-name: onAutoFillStart;\n }\n padding-top: ",";\n padding-bottom: ",";\n }\n"])),dt,qe.Z.space(-.9),qe.Z.space(-.9)),Pt=x.ZP.div.withConfig({displayName:"StyledLoginFormInputWrapper"})(wt||(wt=b()(["\n &&& {\n ","\n }\n"])),ft),jt=(0,x.ZP)(Ve.Z).withConfig({displayName:"StyledTransparentButton"})(Ot||(Ot=b()(["\n &&& {\n margin-right: 0;\n background-color: transparent;\n padding: "," 0;\n width: 100%;\n justify-content: center;\n\n &:hover {\n background-color: transparent;\n }\n }\n"])),qe.Z.space(-.1)),_t=x.ZP.div.withConfig({displayName:"StyledLoginFormWrapper"})(xt||(xt=b()(["\n "," {\n margin-top: ",";\n width: auto;\n flex-direction: column;\n\n "," {\n flex-grow: 1;\n }\n }\n"])),yt,qe.Z.space(.47),vt.Z);function Et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ct(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Et(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Et(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Tt=function(e){var t=e.captchaKey,n=e.changePage,r=e.intl,o=e.login,a=e.loginPending,i=e.message,c=e.password,s=e.recaptchaActivated,u=e.setPassword,l=e.setUsername,f=e.showTitle,p=e.username,d=e.entryPage,h=nt(l),m=H()(h,2),g=m[0],v=m[1],y=nt(u),b=H()(y,2),O=b[0],x=b[1],S=(0,w.useRef)(),j=d===k,_=function(e){return r.formatMessage({id:e})},E=He.Z.usePrevious(s),C=(0,w.useCallback)(function(){var e=F()(W().mark((function e(t){var n;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&t.preventDefault(),n=null,!s){e.next=7;break}return e.next=5,S.current.executeAsync();case 5:n=e.sent,S.current.reset();case 7:o(p,c,n);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[o,p,c,s]);(0,w.useEffect)((function(){s&&!E&&C()}),[s,E,C]);var T=!!p,D=!T;return(0,_e.jsxs)(_t,{children:[f&&(kt||(kt=(0,_e.jsx)(tt,{title:"client.login.form.title",subtitle:"client.login.form.introduction"}))),(0,_e.jsxs)("form",{onSubmit:C,children:[(0,_e.jsx)(Ue,{hasValue:!!p||g,id:"login-username",label:_("client.login.form.userPlaceholder"),immutable:j,children:(0,_e.jsx)(Pt,{children:(0,_e.jsx)(St,Ct({autoFocus:D,name:"user","data-cy":"login-form_user-input",required:!0,type:"text",value:p,disabled:j,onFocus:function(e){return e.target.select()}},v))})}),(0,_e.jsx)(Ue,{hasValue:!!c||O,id:"login-password",label:_("client.login.form.passwordPlaceholder"),children:(0,_e.jsx)(Pt,{children:(0,_e.jsx)(St,Ct({autoFocus:T,name:"password","data-cy":"login-form_password-input",required:!0,type:"password",value:c,onFocus:function(e){return e.target.select()}},x))})}),(0,_e.jsx)(Be,{message:i}),t&&s&&(0,_e.jsx)(re,{ref:S,badge:"bottomright",size:"invisible",sitekey:t,hl:r.locale}),(0,_e.jsx)(Qe,{disabled:a||""===p&&!g||""===c&&!O,label:_("client.login.form.button"),pending:a,"data-cy":"login-form_login-button"}),(0,_e.jsx)(jt,{label:_("client.login.form.forgotLink"),onClick:function(){return n(P)},"data-cy":"login-form_request-button"}),j&&(0,_e.jsx)(jt,{label:_("client.login.form.backLink"),onClick:function(){return n(k)}})]})]})};var Dt={changePage:A,setUsername:N,setPassword:Z,login:v};const Rt=(0,p.connect)((function(e){return{username:e.login.username,password:e.login.password,message:e.loginForm.message,loginPending:e.loginForm.loginPending,captchaKey:e.login.captchaKey,recaptchaActivated:e.loginForm.recaptchaActivated,entryPage:e.login.entryPage}}),Dt)((0,f.ZP)(Tt));var Mt,It;const At=function(e){var t=e.entryPage,n=e.username,r=e.requestPassword,o=e.intl,a=e.showTitle,i=e.pending,c=e.changePage,s=(0,w.useState)(n||""),u=H()(s,2),l=u[0],f=u[1],p=t===k,d=function(e){return o.formatMessage({id:e})};return(0,_e.jsxs)(_t,{children:[a&&(Mt||(Mt=(0,_e.jsx)(tt,{title:"client.login.passwordRequest.title"}))),!p&&(It||(It=(0,_e.jsx)(et.ZP.P,{children:(0,_e.jsx)(Je.Z,{id:"client.login.passwordRequest.introduction"})}))),(0,_e.jsxs)("form",{onSubmit:function(e){e.preventDefault(),r(l)},children:[(0,_e.jsx)(Ue,{hasValue:Boolean(l),id:"login-username",label:d("client.login.form.userPlaceholder"),immutable:p,children:(0,_e.jsx)(Pt,{children:(0,_e.jsx)(St,{name:"user",onChange:function(e){f(e.target.value)},required:!0,type:"text",value:l,disabled:p,"data-cy":"password-request_input"})})}),(0,_e.jsx)(Qe,{disabled:!l||i,label:d("client.login.passwordRequest.button"),pending:i,"data-cy":"password-request_submit-button"}),(0,_e.jsx)(jt,{disabled:i,label:d("client.login.passwordRequest.abortButton"),name:"abort",onClick:function(){return c(S)},"data-cy":"password-request_abort-button"})]})]})};var Nt={changePage:A,requestPassword:function(e){return{type:m,payload:{username:e}}}};const Zt=(0,p.connect)((function(e){return{username:e.login.username,pending:e.loginForm.loginPending,entryPage:e.login.entryPage}}),Nt)((0,f.ZP)(At));var Lt="INITIALIZED",Ft="PasswordUpdateDialog/UPDATE_OLD_PASSWORD",Ut="PasswordUpdateDialog/UPDATE_NEW_PASSWORD",Ht="PasswordUpdateDialog/SET_NEW_PASSWORD",Bt="PasswordUpdateDialog/SET_NEW_PASSWORD_VALIDATION_ERRORS",Wt="PasswordUpdateDialog/UPDATE_NEW_PASSWORD_REPEAT",zt="PasswordUpdateDialog/SAVE_PASSWORD",Yt="PasswordUpdateDialog/SAVE_PASSWORD_SUCCESS",Vt="PasswordUpdateDialog/SAVE_PASSWORD_FAILURE",qt="PasswordUpdateDialog/VALIDATE",Gt="PasswordUpdateDialog/RESET_PASSWORD_UPDATED_FAILED",Kt=function(e){return{type:Ft,payload:{oldPassword:e}}},Xt=function(e){return{type:Bt,payload:{errors:e}}},$t=function(e,t){return{type:Vt,payload:{errorCode:e,validationMessages:t}}},Qt="PasswordUpdateDialog/FETCH_VALIDATION_RULES",Jt="PasswordUpdateDialog/SET_VALIDATION_RULES",en=i(35728),tn={INVALID_CREDENTIALS:"client.login.passwordUpdate.invalidCredentials",UNEXPECTED_ERROR:"client.login.passwordUpdate.unexpectedError"};const nn=function(e){return(0,_e.jsx)(Ae.List,{children:(0,_e.jsx)(Ae.Item,{condition:ye.Z.condition.DANGER,children:(0,_e.jsx)(Je.Z,{id:(t=e.errorCode,tn[t]||"client.login.passwordUpdate.failure")})})});var t};const rn=function(e){return(0,_e.jsx)(Ae.List,{children:e.rules.map((function(t,n){var r=null,o=t.message;if(e.errors){var a=e.errors[t.name];!0===a?r=ye.Z.condition.DANGER:"string"==typeof a?(r=ye.Z.condition.DANGER,o=a):r=ye.Z.condition.SUCCESS}return(0,_e.jsx)(Ae.Item,{condition:r,label:o},n)}))})};var on,an,cn=x.ZP.input.attrs((function(e){return{type:"password"}})).withConfig({displayName:"StyledPasswordInput"})(on||(on=b()(["\n &&&& {\n ","\n }\n"])),dt),sn=x.ZP.div.withConfig({displayName:"StyledPasswordInputWrapper"})(an||(an=b()(["\n && {\n ","\n }\n"])),ft);const un=function(e){return(0,_e.jsx)(Ue,{hasValue:!!e.value,id:"".concat(e.name,"-input"),immutable:!0===e.readOnly,label:e.label,signal:e.value?void 0===e.valid?null:e.valid?ye.Z.condition.SUCCESS:ye.Z.condition.DANGER:null,children:(0,_e.jsx)(sn,{immutable:!0===e.readOnly,children:(0,_e.jsx)(cn,{id:"".concat(e.name,"-input"),value:e.value,onChange:function(t){return e.onChange(t.target.value)},disabled:!0===e.readOnly,immutable:!0===e.readOnly,onKeyDown:e.onKeyDown,autoFocus:e.autoFocus})})})};var ln;const fn=x.ZP.div(ln||(ln=b()(["\n "," {\n width: 100%;\n }\n"])),vt.Z);var pn,dn,hn,mn,gn;function vn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vn(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var bn=x.ZP.div.withConfig({displayName:"StyledValidationRulesWrapper"})(pn||(pn=b()(["\n margin: 1rem;\n"])));const wn=function(e){var t=e.captchaKey,n=e.fetchValidationRules,r=e.forcedUpdate,o=e.initialized,a=e.intl,i=e.password,c=e.savePassword,s=e.showOldPasswordField,u=e.showTitle,l=e.updateNewPassword,f=e.updateNewPasswordRepeat,p=e.updateOldPassword,d=e.validationRules,h=(0,w.useRef)();(0,w.useEffect)((function(){n()}),[n]),(0,w.useEffect)((function(){d&&o()}),[d,o]);var m=function(){var e=F()(W().mark((function e(t){var n;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),!0!==g()){e.next=7;break}return e.next=4,h.current.executeAsync();case 4:n=e.sent,h.current.reset(),c(n);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),g=function(){return!!i.newPasswordRepeat&&(i.newPassword===i.newPasswordRepeat&&!i.passwordUpdatePending)},v=function(e){return a.formatMessage({id:e})};if(!d)return dn||(dn=(0,_e.jsx)(en.Z,{}));var y=i.passwordUpdatePending,b=!i.oldPassword&&s||i.passwordUpdatePending,O=!i.newPassword||i.passwordUpdatePending||i.newPasswordValidationErrors&&Object.keys(i.newPasswordValidationErrors).length>0;return(0,_e.jsxs)(fn,{children:[u&&(hn||(hn=(0,_e.jsx)(tt,{title:"client.login.passwordUpdate.title"}))),r&&(mn||(mn=(0,_e.jsx)(et.ZP.P,{children:(0,_e.jsx)(Je.Z,{id:"client.login.passwordUpdate.introduction"})}))),(0,_e.jsxs)("form",{onSubmit:m,children:[!0===s&&(0,_e.jsx)(un,yn({tabIndex:1,label:v("client.login.passwordUpdate.oldPassword"),name:"oldPassword",value:i.oldPassword,onChange:p,readOnly:y,autoFocus:!0},i.passwordUpdateFailed&&"INVALID_CREDENTIALS"===i.passwordUpdateErrorCode&&{valid:!1})),(0,_e.jsx)(un,{tabIndex:2,label:v("client.login.passwordUpdate.newPassword"),name:"newPassword",value:i.newPassword,onChange:l,readOnly:b,autoFocus:!0!==s,valid:!O}),(0,_e.jsx)(bn,{children:(0,_e.jsx)(rn,{rules:d,errors:i.newPasswordValidationErrors,rulesNeutral:!i.newPassword})}),(0,_e.jsx)(un,{tabIndex:3,label:v("client.login.passwordUpdate.newPasswordRepeat"),name:"newPasswordRepeat",value:i.newPasswordRepeat,onChange:f,readOnly:O,valid:g()}),i.newPasswordRepeat&&i.newPassword!==i.newPasswordRepeat&&(gn||(gn=(0,_e.jsx)(Ae.List,{children:(0,_e.jsx)(Ae.Item,{condition:"danger",label:(0,_e.jsx)(Je.Z,{id:"client.login.passwordUpdate.noMatch"})})}))),!0===i.passwordUpdateFailed&&(0,_e.jsx)(nn,{errorCode:i.passwordUpdateErrorCode}),(0,_e.jsx)(Qe,{pending:i.passwordUpdatePending,disabled:!1===g(),label:v("client.login.passwordUpdate.saveButton")}),t&&(0,_e.jsx)(re,{ref:h,badge:"bottomright",size:"invisible",sitekey:t,hl:a.locale})]})]})};var On={updateOldPassword:Kt,updateNewPassword:function(e){return{type:Ut,payload:{newPassword:e}}},updateNewPasswordRepeat:function(e){return{type:Wt,payload:{newPasswordRepeat:e}}},fetchValidationRules:function(){return{type:Qt}},savePassword:function(e){return{type:zt,payload:{captchaToken:e}}},initialized:function(){return{type:Lt}}};const xn=(0,p.connect)((function(e){return{password:e.passwordUpdate.password,validationRules:e.passwordUpdate.validationRules,showOldPasswordField:e.passwordUpdate.dialog.showOldPasswordField,forcedUpdate:e.passwordUpdate.dialog.forcedUpdate,captchaKey:e.login.captchaKey}}),On)((0,f.ZP)(wn));var kn,Sn,Pn,jn,_n,En,Cn=i(30604),Tn="two-factor-connector/INITIALIZE",Dn="two-factor-connector/SET_TWO_STEP_ACTIVE",Rn="two-factor-connector/SET_SECRET",Mn="two-factor-connector/SET_USER_NAME",In="two-factor-connector/REQUEST_SECRET",An="two-factor-connector/GO_TO_SECRET_VERIFICATION",Nn="two-factor-connector/GO_TO_START",Zn="two-factor-connector/GO_TO_SECRET",Ln="two-factor-connector/VERIFY_CODE",Fn="root/SUCCESS",Un="root/SET_SETUP_SUCCESSFUL",Hn="root/GO_TO_RESULT",Bn=function(){return{type:Tn}},Wn=function(e){return{type:Dn,payload:{twoFactorActive:e}}},zn=function(e){return{type:Rn,payload:{secret:e}}},Yn=function(e){return{type:Mn,payload:{username:e}}},Vn=function(){return{type:Nn}},qn=function(e){return{type:Un,payload:{setupSuccessful:e}}},Gn=i(83324),Kn=x.ZP.div.withConfig({displayName:"StyledButtonWrapper"})(kn||(kn=b()(["\n display: flex;\n justify-content: flex-end;\n margin-top: ",";\n\n > "," {\n margin-right: 0;\n }\n"])),qe.Z.space(.5),vt.Z),Xn=x.ZP.div.withConfig({displayName:"StyledMessageWrapper"})(Sn||(Sn=b()(["\n display: grid;\n grid-template-columns: 9% 1fr;\n grid-column-gap: ",";\n"])),qe.Z.space(-.5)),$n=x.ZP.span.withConfig({displayName:"StyledIconWrapper"})(Pn||(Pn=b()(["\n display: flex;\n align-items: center;\n color: ",";\n font-size: ",";\n\n > * {\n max-width: 100%;\n }\n"])),(function(e){return e.isSuccessful?xe.FS.color("signal.success"):xe.FS.color("signal.danger")}),qe.Z.font(10)),Qn=x.ZP.div.withConfig({displayName:"StyledTextWrapper"})(jn||(jn=b()(["\n display: flex;\n align-items: center;\n"])));const Jn=function(e){var t=e.success,n=e.goToStart,r=e.setupSuccessful,o=e.intl;(0,Gn.z)(t);var a=function(e){return o.formatMessage({id:e})};return r?(0,_e.jsxs)(_e.Fragment,{children:[_n||(_n=(0,_e.jsxs)(Xn,{children:[(0,_e.jsx)($n,{isSuccessful:!0,children:(0,_e.jsx)(De.Z,{icon:"check"})}),(0,_e.jsx)(Qn,{children:(0,_e.jsx)(et.ZP.P,{children:(0,_e.jsx)(Je.Z,{id:"client.two-factor-connector.successfulText"})})})]})),(0,_e.jsx)(Kn,{children:(0,_e.jsx)(Ve.Z,{label:a("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:t})})]}):(0,_e.jsxs)(_e.Fragment,{children:[En||(En=(0,_e.jsxs)(Xn,{children:[(0,_e.jsx)($n,{isSuccessful:!1,children:(0,_e.jsx)(De.Z,{icon:"times"})}),(0,_e.jsx)(Qn,{children:(0,_e.jsx)(et.ZP.P,{children:(0,_e.jsx)(Je.Z,{id:"client.two-factor-connector.errorText"})})})]})),(0,_e.jsx)(Kn,{children:(0,_e.jsx)(Ve.Z,{label:a("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:n})})]})};var er={success:function(){return{type:Fn}},goToStart:Vn};const tr=(0,p.connect)((function(e){return{setupSuccessful:e.twoFactorConnector.setupSuccessful}}),er)((0,f.ZP)(Jn));var nr,rr=Object.defineProperty,or=Object.getOwnPropertySymbols,ar=Object.prototype.hasOwnProperty,ir=Object.prototype.propertyIsEnumerable,cr=(e,t,n)=>t in e?rr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sr=(e,t)=>{for(var n in t||(t={}))ar.call(t,n)&&cr(e,n,t[n]);if(or)for(var n of or(t))ir.call(t,n)&&cr(e,n,t[n]);return e},ur=(e,t)=>{var n={};for(var r in e)ar.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&or)for(var r of or(e))t.indexOf(r)<0&&ir.call(e,r)&&(n[r]=e[r]);return n};(e=>{const t=class{constructor(e,n,r,o){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let i=[];for(let e=0;e<this.size;e++)i.push(!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();const c=this.addEccAndInterleave(r);if(this.drawCodewords(c),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(o=t,e=n),this.applyMask(t)}}a(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,n,o=1,i=40,s=-1,u=!0){if(!(t.MIN_VERSION<=o&&o<=i&&i<=t.MAX_VERSION)||s<-1||s>7)throw new RangeError("Invalid value");let l,f;for(l=o;;l++){const r=8*t.getNumDataCodewords(l,n),o=c.getTotalBits(e,l);if(o<=r){f=o;break}if(l>=i)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])u&&f<=8*t.getNumDataCodewords(l,e)&&(n=e);let p=[];for(const t of e){r(t.mode.modeBits,4,p),r(t.numChars,t.mode.numCharCountBits(l),p);for(const e of t.getData())p.push(e)}a(p.length==f);const d=8*t.getNumDataCodewords(l,n);a(p.length<=d),r(0,Math.min(4,d-p.length),p),r(0,(8-p.length%8)%8,p),a(p.length%8==0);for(let e=236;p.length<d;e^=253)r(e,8,p);let h=[];for(;8*h.length<p.length;)h.push(0);return p.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(l,n,h,s)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const r=21522^(t<<10|n);a(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,o(r,e));this.setFunctionModule(8,7,o(r,6)),this.setFunctionModule(8,8,o(r,7)),this.setFunctionModule(7,8,o(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,o(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,o(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,o(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;a(t>>>18==0);for(let e=0;e<18;e++){const n=o(t,e),r=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(r,a,n),this.setFunctionModule(a,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),a=e+r,i=t+n;0<=a&&a<this.size&&0<=i&&i<this.size&&this.setFunctionModule(a,i,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const o=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],i=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],c=Math.floor(t.getNumRawDataModules(n)/8),s=o-c%o,u=Math.floor(c/o);let l=[];const f=t.reedSolomonComputeDivisor(i);for(let n=0,r=0;n<o;n++){let o=e.slice(r,r+u-i+(n<s?0:1));r+=o.length;const a=t.reedSolomonComputeRemainder(o,f);n<s&&o.push(0),l.push(o.concat(a))}let p=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,n)=>{(e!=u-i||n>=s)&&p.push(t[e])}));return a(p.length==c),p}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let a=0;a<2;a++){const i=t-a,c=0==(t+1&2)?this.size-1-r:r;!this.isFunction[c][i]&&n<8*e.length&&(this.modules[c][i]=o(e[n>>>3],7-(7&n)),n++)}}a(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[n][i]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][i],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[i][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[i][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,o=Math.ceil(Math.abs(20*n-10*r)/r)-1;return a(0<=o&&o<=9),e+=o*t.PENALTY_N4,a(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return a(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const o of e){const e=o^r.shift();r.push(0),n.forEach(((n,o)=>r[o]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return a(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];a(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function o(e,t){return 0!=(e>>>t&1)}function a(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const i=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new i(i.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!i.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const o=Math.min(e.length-n,3);r(parseInt(e.substr(n,o),10),3*o+1,t),n+=o}return new i(i.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!i.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let o=45*i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new i(i.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:i.isNumeric(e)?[i.makeNumeric(e)]:i.isAlphanumeric(e)?[i.makeAlphanumeric(e)]:[i.makeBytes(i.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new i(i.Mode.ECI,0,t)}static isNumeric(e){return i.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return i.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let c=i;c.NUMERIC_REGEX=/^[0-9]*$/,c.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,c.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=c})(nr||(nr={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})(t=e.QrCode||(e.QrCode={}))})(nr||(nr={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(t=e.QrSegment||(e.QrSegment={}))})(nr||(nr={}));var lr=nr,fr={L:lr.QrCode.Ecc.LOW,M:lr.QrCode.Ecc.MEDIUM,Q:lr.QrCode.Ecc.QUARTILE,H:lr.QrCode.Ecc.HIGH},pr=128,dr="L",hr="#FFFFFF",mr="#000000",gr=!1;
|
|
52
|
+
*/var r=n(1024),o=n(61688);var a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useSyncExternalStore,c=r.useRef,s=r.useEffect,u=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var f=c(null);if(null===f.current){var p={hasValue:!1,value:null};f.current=p}else p=f.current;f=u((function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==o&&p.hasValue){var t=p.value;if(o(t,e))return c=t}return c=e}if(t=c,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,c=n)}var i,c,s=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,n,r,o]);var d=i(e,f[0],f[1]);return s((function(){p.hasValue=!0,p.value=d}),[d]),l(d),d}},61688:(e,t,n)=>{"use strict";e.exports=n(53250)},52798:(e,t,n)=>{"use strict";e.exports=n(50139)},28721:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});const r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let o;const a=new Uint8Array(16);function i(){if(!o&&(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!o))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(a)}const c=[];for(let e=0;e<256;++e)c.push((e+256).toString(16).slice(1));function s(e,t=0){return(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase()}const u=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();const o=(e=e||{}).random||(e.rng||i)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return s(o)}},1024:e=>{"use strict";e.exports=t},30314:t=>{"use strict";t.exports=e},71298:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},38088:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},87462:(e,t,n)=>{"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Z:()=>r})},86:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:()=>r})},31599:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},28549:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},2717:(e,t,n)=>{"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Z:()=>r})},33417:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(28549);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},32924:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},1972:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(78001);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},62360:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:()=>r})},78001:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(31599);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}i.m=o,i.amdD=function(){throw new Error("define cannot be used indirect")},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>"chunk-"+({85:"code-editor",198:"vendor-fontawesome",614:"vendor-icons",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"90043e6c234758127b6c",198:"ab9f2eea50d01a3a62a9",560:"e3d5772311dd2d78dc20",608:"c3b57ad1736c5780e353",614:"c42c48040a43892f6dbd",631:"8d55ab629611cf584826",877:"a7f934130ec5ac7a8cff"}[e]+".js",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="tocco-:",i.l=(e,t,o,a)=>{if(n[e])n[e].push(t);else{var c,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var f=u[l];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==r+o){c=f;break}}c||(s=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.setAttribute("data-webpack",r+o),c.src=e),n[e]=[t];var p=(t,r)=>{c.onerror=c.onload=null,clearTimeout(d);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(r))),t)return t(r)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=p.bind(null,c.onerror),c.onload=p.bind(null,c.onload),s&&document.head.appendChild(c)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.j=535,i.p="/",(()=>{var e={535:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var a=i.p+i.u(t),c=new Error;i.l(a,(n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",c.name="ChunkLoadError",c.type=o,c.request=a,r[1](c)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,c,s]=n,u=0;if(a.some((t=>0!==e[t]))){for(r in c)i.o(c,r)&&(i.m[r]=c[r]);if(s)s(i)}for(t&&t(n);u<a.length;u++)o=a[u],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_=self.webpackChunktocco_||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),i.nc=void 0;var c={};return(()=>{"use strict";i.r(c),i.d(c,{app:()=>ib});var e=i(18882),t=i(59713),n=i.n(t),r=i(45697),o=i.n(r),a=i(19743),s=i(19241),u=i(23369),l=i(65378),f=i(74806),p=i(50558),d="login/INITIALIZE",h="login/LOGIN",m="login/REQUEST_PASSWORD",g="login/CHECK_USERNAME",v=function(e,t,n,r){return{type:h,payload:{username:e,password:t,captchaToken:n,userCode:r}}},y=i(28655),b=i.n(y),w=i(1024),O=i.n(w),x=i(38205),k="USERNAME_FORM",S="LOGIN_FORM",P="PASSWORD_REQUEST",j="TWOSTEPLOGIN",_="PASSWORD_UPDATE",E="TWOSTEPLOGIN_ACTIVATION",C="login/CHANGE_PAGE",T="login/SET_ENTRY_PAGE",D="login/SET_USERNAME",R="login/SET_PASSWORD",M="login/SET_CAPTCHA_KEY",I=function(e){return{type:T,payload:{entryPage:e}}},A=function(e){return{type:C,payload:{currentPage:e}}},N=function(e){return{type:D,payload:{username:e}}},Z=function(e){return{type:R,payload:{password:e}}},L=i(48926),F=i.n(L),U=i(63038),H=i.n(U),B=i(87757),W=i.n(B),z=i(99860),Y=i.n(z);function V(){return(V=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function q(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var G=function(e){var t,n;function r(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(q(t)),t.handleErrored=t.handleErrored.bind(q(t)),t.handleChange=t.handleChange.bind(q(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(q(t)),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getValue=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this.props.grecaptcha.getResponse(this._widgetId):null},o.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},o.execute=function(){var e=this.props.grecaptcha;if(e&&void 0!==this._widgetId)return e.execute(this._widgetId);this._executeRequested=!0},o.executeAsync=function(){var e=this;return new Promise((function(t,n){e.executionResolve=t,e.executionReject=n,e.execute()}))},o.reset=function(){this.props.grecaptcha&&void 0!==this._widgetId&&this.props.grecaptcha.reset(this._widgetId)},o.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},o.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},o.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},o.explicitRender=function(){if(this.props.grecaptcha&&this.props.grecaptcha.render&&void 0===this._widgetId){var e=document.createElement("div");this._widgetId=this.props.grecaptcha.render(e,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge}),this.captcha.appendChild(e)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},o.componentDidMount=function(){this.explicitRender()},o.componentDidUpdate=function(){this.explicitRender()},o.componentWillUnmount=function(){void 0!==this._widgetId&&(this.delayOfCaptchaIframeRemoving(),this.reset())},o.delayOfCaptchaIframeRemoving=function(){var e=document.createElement("div");for(document.body.appendChild(e),e.style.display="none";this.captcha.firstChild;)e.appendChild(this.captcha.firstChild);setTimeout((function(){document.body.removeChild(e)}),5e3)},o.handleRecaptchaRef=function(e){this.captcha=e},o.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl"]));return O().createElement("div",V({},t,{ref:this.handleRecaptchaRef}))},r}(O().Component);G.displayName="ReCAPTCHA",G.propTypes={sitekey:Y().string.isRequired,onChange:Y().func,grecaptcha:Y().object,theme:Y().oneOf(["dark","light"]),type:Y().oneOf(["image","audio"]),tabindex:Y().number,onExpired:Y().func,onErrored:Y().func,size:Y().oneOf(["compact","normal","invisible"]),stoken:Y().string,hl:Y().string,badge:Y().oneOf(["bottomright","bottomleft","inline"])},G.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var K=i(9657),X=i.n(K),$=i(8679),Q=i.n($);function J(){return(J=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ee={},te=0;var ne="onloadcallback";const re=function(e,t){return t=t||{},function(n){var r=n.displayName||n.name||"Component",o=function(r){var o,a;function i(e,t){var n;return(n=r.call(this,e,t)||this).state={},n.__scriptURL="",n}a=r,(o=i).prototype=Object.create(a.prototype),o.prototype.constructor=o,o.__proto__=a;var c=i.prototype;return c.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+te++),this.__scriptLoaderID},c.setupScriptURL=function(){return this.__scriptURL="function"==typeof e?e():e,this.__scriptURL},c.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,(function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)}))},c.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=ee[this.__scriptURL];if(!e||!e.loaded)throw new Error("Script is not loaded.");for(var n in e.observers)e.observers[n](e);delete window[t.callbackName]},c.componentDidMount=function(){var e=this,n=this.setupScriptURL(),r=this.asyncScriptLoaderGetScriptLoaderID(),o=t,a=o.globalName,i=o.callbackName,c=o.scriptId;if(a&&void 0!==window[a]&&(ee[n]={loaded:!0,observers:{}}),ee[n]){var s=ee[n];return s&&(s.loaded||s.errored)?void this.asyncScriptLoaderHandleLoad(s):void(s.observers[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var u={};u[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)},ee[n]={loaded:!1,observers:u};var l=document.createElement("script");for(var f in l.src=n,l.async=!0,t.attributes)l.setAttribute(f,t.attributes[f]);c&&(l.id=c);var p=function(e){if(ee[n]){var t=ee[n].observers;for(var r in t)e(t[r])&&delete t[r]}};i&&"undefined"!=typeof window&&(window[i]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),l.onload=function(){var e=ee[n];e&&(e.loaded=!0,p((function(t){return!i&&(t(e),!0)})))},l.onerror=function(){var e=ee[n];e&&(e.errored=!0,p((function(t){return t(e),!0})))},document.body.appendChild(l)},c.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===t.removeOnUnmount)for(var n=document.getElementsByTagName("script"),r=0;r<n.length;r+=1)n[r].src.indexOf(e)>-1&&n[r].parentNode&&n[r].parentNode.removeChild(n[r]);var o=ee[e];o&&(delete o.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===t.removeOnUnmount&&delete ee[e])},c.render=function(){var e=t.globalName,r=this.props,o=(r.asyncScriptOnLoad,r.forwardedRef),a=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,["asyncScriptOnLoad","forwardedRef"]);return e&&"undefined"!=typeof window&&(a[e]=void 0!==window[e]?window[e]:void 0),a.ref=o,(0,w.createElement)(n,a)},i}(w.Component),a=(0,w.forwardRef)((function(e,t){return(0,w.createElement)(o,J({},e,{forwardedRef:t}))}));return a.displayName="AsyncScriptLoader("+r+")",a.propTypes={asyncScriptOnLoad:X().func},Q()(a,n)}}((function(){return"https://"+(("undefined"!=typeof window&&window.recaptchaOptions||{}).useRecaptchaNet?"recaptcha.net":"www.google.com")+"/recaptcha/api.js?onload="+ne+"&render=explicit"}),{callbackName:ne,globalName:"grecaptcha"})(G);var oe=i(41505),ae=i.n(oe),ie=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ce=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},se=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},ue={outline:"none"},le=function(e){function t(){var n,r;ie(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=se(this,e.call.apply(e,[this].concat(a))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=O().createRef(),r._onFocusIn=function(){r._isMounted&&r._lastBlurEvent&&r.isInsideNode(r.ref.current,r._lastBlurEvent.target)&&!r.isInsideNode(r.ref.current,document.activeElement)&&r.setState({focused:!1},(function(){document.removeEventListener("focusin",r._onFocusIn),r.props.onBlur(r._lastBlurEvent)}))},r.onFocus=function(e){var t=r.props.onFocus;r.state.focused||r.setState({focused:!0},(function(){document.addEventListener("focusin",r._onFocusIn),t(e)}))},r.onBlur=function(e){e.persist(),r._lastBlurEvent=e},r.isInsideNode=function(e,t){return null!=e&&e.contains(t)},se(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){null!=document&&document.querySelector("body").setAttribute("tabindex","-1"),this._isMounted=!0},t.prototype.componentWillUnmount=function(){this._isMounted=!1,document.removeEventListener("focusin",this._onFocusIn)},t.prototype.focus=function(){var e=this.ref.current;null!=e&&"function"==typeof e.focus&&e.focus()},t.prototype.render=function(){var e=this.props.children,t=this.state.focused,n={onFocus:this.onFocus,onBlur:this.onBlur};return"function"==typeof e?O().cloneElement(e({focused:t,getRef:this.ref}),n):O().createElement("div",ce({ref:this.ref,style:ue},n),e)},t}(O().Component);le.propTypes={children:ae().oneOfType([ae().node,ae().func]).isRequired,onBlur:ae().func,onFocus:ae().func},le.defaultProps={onBlur:function(){},onFocus:function(){}};const fe=le;var pe,de,he,me,ge=i(70696),ve=i(10535),ye=i(23427),be=i(319),we=i.n(be),Oe=i(37188),xe=i(24875),ke=(pe={},n()(pe,ye.Z.condition.BASE,"inherit"),n()(pe,ye.Z.condition.DANGER,xe.FS.color("signal.danger")),n()(pe,ye.Z.condition.SUCCESS,xe.FS.color("signal.success")),n()(pe,ye.Z.condition.WARNING,xe.FS.color("signal.warning")),n()(pe,ye.Z.condition.INFO,xe.FS.color("signal.info")),pe),Se=(0,x.ZP)(Oe.hc).withConfig({displayName:"StyledSignalList"})(de||(de=b()(["\n && {\n list-style-type: none;\n }\n"]))),Pe=x.ZP.span.withConfig({displayName:"StyledSignalListIcon"})(he||(he=b()(["\n position: absolute;\n left: -1.6rem;\n text-align: left;\n"]))),je=(0,x.ZP)(Oe.EF).withConfig({displayName:"StyledSignalListItem"})(me||(me=b()(["\n && {\n color: ",";\n position: relative;\n padding: 0;\n }\n"])),(function(e){return function(e){return ke[e.condition]||"inherit"}(e)})),_e=i(85893);const Ee=function(e){return(0,_e.jsx)(Se,{as:"ul",children:O().Children.map(e.children,(function(e){return O().cloneElement(e)}))})};var Ce,Te,De=i(88162),Re=(Ce={},n()(Ce,ye.Z.condition.BASE,!1),n()(Ce,ye.Z.condition.DANGER,"times"),n()(Ce,ye.Z.condition.SUCCESS,"check"),n()(Ce,ye.Z.condition.WARNING,"exclamation-triangle"),n()(Ce,ye.Z.condition.INFO,"info"),Ce),Me=function(e){var t=Re[e.condition];return t?(0,_e.jsx)(De.Z,{icon:t,position:ye.Z.position.SOLE}):Te||(Te=(0,_e.jsx)("i",{children:"•"}))},Ie=function(e){return(0,_e.jsxs)(je,{condition:e.condition,children:[(0,_e.jsx)(Pe,{children:Me(e)}),e.label,O().Children.map(e.children,(function(e){return O().cloneElement(e)}))]})};Ie.defaultProps={condition:ye.Z.condition.BASE};const Ae={List:Ee,Item:Ie};const Ne=function(e){if(!e.error)return null;var t=[];return Object.keys(e.error).forEach((function(n){t.push.apply(t,we()(e.error[n]))})),(0,_e.jsx)(Ae.List,{children:t.map((function(e,t){return(0,_e.jsx)(Ae.Item,{condition:"danger",label:e},t)}))})};var Ze=i(87585);function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Le(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Ue=function(e){var t,n,r,o,a=e.children,i=e.description,c=e.dirty,s=e.isDisplay,l=e.error,f=e.hasValue,p=e.id,d=e.label,h=e.mandatory,m=e.mandatoryTitle,g=e.immutable,v=e.touched,y=e.signal,b=!g&&v&&l&&Object.keys(l).length>0,w=h&&m?", ".concat(m):"",O="".concat(ge.Z.adjustedHTMLString(d)).concat(w),x=y||function(e,t,n,r){return t?ye.Z.condition.DANGER:e?ye.Z.condition.INFO:n&&!r?ye.Z.condition.WARNING:void 0}(c,b,h,f),k={__html:"".concat(ve.Z.sanitizeHtml(d)).concat(h?" *":"")},S=!s&&!g&&{htmlFor:p},P=u.Z.getEmbedType(),j=["admin","legacy-admin"].includes(P);return(0,_e.jsx)(fe,{children:function(e){var u=e.getRef;return(0,_e.jsx)(Ze.T3,{children:(0,_e.jsxs)(Ze.QZ,{ref:u,label:d,isAdmin:j,children:[d&&(0,_e.jsx)(Ze.yr,Fe(Fe({},S),{},{hasValue:f,dirty:c,title:O,immutable:g,isDisplay:s,signal:x,isAdmin:j,children:t||(t=(0,_e.jsx)("span",{dangerouslySetInnerHTML:k}))})),(0,_e.jsxs)(Ze.m9,{isAdmin:j,children:[n||(n=(0,_e.jsx)(Ze.if,{hasValue:f,immutable:g,isDisplay:s,signal:x,children:a})),b&&(r||(r=(0,_e.jsx)(Ze.gi,{children:(0,_e.jsx)(Ne,{error:l})}))),i&&(o||(o=(0,_e.jsx)(Ze.Mp,{children:i})))]})]})})}})};var He=i(35997);const Be=(0,f.ZP)((function(e){var t,n=e.message,r=e.intl;return n&&n.text?(0,_e.jsx)(Ae.List,{children:(0,_e.jsx)(Ae.Item,{condition:n.negative?"danger":"base",label:(t=n.text,r.formatMessage({id:t}))})}):null}));var We,ze=i(6479),Ye=i.n(ze),Ve=i(65035),qe=i(7281),Ge=i(88601),Ke=(0,x.ZP)(Ve.Z).withConfig({displayName:"StyledLoginButton"})(We||(We=b()(["\n &&& {\n font-size: ",";\n border-radius: ",";\n display: flex;\n justify-content: center;\n padding: 1.25rem 0;\n width: 100%;\n margin-top: 20px;\n margin-bottom: 10px;\n\n &:not(:last-child) {\n margin-right: 0;\n }\n }\n"])),qe.Z.font(1.3),Ge.Z.radii("buttonLarge")),Xe=["disabled","pending","label"];function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Qe=function(e){var t=e.disabled,r=e.pending,o=e.label,a=Ye()(e,Xe);return(0,_e.jsx)(Ke,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$e(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({disabled:t,pending:r,label:o,ink:"primary",look:"raised",type:"submit","data-cy":"btn-submit"},a))};var Je=i(44012),et=i(34206);const tt=function(e){var t=e.title,n=e.subtitle;return(0,_e.jsxs)(_e.Fragment,{children:[(0,_e.jsx)(et.ZP.H5,{children:(0,_e.jsx)(Je.Z,{id:t})}),n&&(0,_e.jsx)(et.ZP.P,{children:(0,_e.jsx)(Je.Z,{id:n})})]})};const nt=function(e){var t=(0,w.useState)(!1),n=H()(t,2),r=n[0],o=n[1];return[r,{onAnimationStart:function(e){"onAutoFillStart"===e.animationName&&o(!0)},onChange:function(t){e(t.target.value),o(!1)}}]};var rt,ot,at,it,ct,st,ut,lt=i(30759),ft=(0,x.iv)(rt||(rt=b()(["\n align-items: center;\n cursor: ",";\n display: flex;\n"])),(function(e){return e.immutable?"not-allowed":"default"})),pt=x.ZP.label.withConfig({displayName:"StyledEditableWrapper"})(ot||(ot=b()(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),ft),dt=(0,x.iv)(at||(at=b()(["\n background-color: transparent;\n border: 0;\n cursor: ",";\n flex-grow: 1;\n min-height: 2.6rem;\n min-width: 0;\n outline: 0;\n padding: 0;\n ","\n &::-ms-clear {\n display: none;\n }\n\n &::-webkit-clear-button {\n display: none;\n }\n\n &::-webkit-inner-spin-button {\n display: none;\n }\n\n &[type='number'] {\n appearance: textfield;\n }\n\n &[type='search'] {\n appearance: none;\n }\n\n &:disabled {\n -webkit-text-fill-color: ","; // Safari fix\n opacity: 1; // iOS fix\n }\n\n /* remove indicators */\n &[type='date'],\n &[type='datetime-local'],\n &[type='month'],\n &[type='time'],\n &[type='week'] {\n appearance: none;\n display: flex;\n\n /* reset margin on smaller screens */\n ::-webkit-date-and-time-value {\n ","\n }\n }\n\n // allow pointer event only on touch devices\n @media (pointer: coarse) {\n pointer-events: ",";\n }\n"])),(function(e){return e.immutable?"not-allowed":"default"}),(function(){return(0,lt.Z)({color:xe.FS.color("text")})}),xe.FS.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),ht=(0,x.iv)(it||(it=b()(["\n display: flex;\n align-items: center;\n"]))),mt=x.ZP.div.withConfig({displayName:"StyledEditableControl"})(ct||(ct=b()(["\n &&& {\n ","\n }\n"])),ht),gt=x.ZP.span.withConfig({displayName:"StyledEditableValue"})(st||(st=b()(["\n width: 100%;\n\n && {\n //url\n [type='url'] + .input-group-addon > a {\n color: inherit; // reset bootstrap default\n }\n\n //url\n [type='tel'] + .input-group-addon > a {\n color: inherit; // reset bootstrap default\n }\n\n //date\n .date-edit {\n .input-group-addon {\n cursor: pointer;\n }\n\n input {\n z-index: 0;\n }\n\n &.disabled {\n input {\n cursor: not-allowed;\n }\n }\n\n .right-addon {\n position: relative;\n }\n\n .right-addon input {\n padding-right: 30px;\n }\n\n .reset {\n position: absolute;\n padding-right: 10px;\n padding-top: 5px;\n right: 0;\n color: #999;\n font-size: 18px;\n font-style: normal;\n cursor: pointer;\n }\n\n .reset:hover {\n color: ",";\n }\n }\n }\n"])),xe.FS.color("signal.danger")),vt=i(58129);const yt=x.ZP.div.withConfig({displayName:"StyledButtonGroup"})(ut||(ut=b()(["\n display: flex;\n\n &&& > "," {\n :not(:first-child) {\n margin-left: -1px;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n\n :not(:last-child) {\n margin-right: 0;\n border-right: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n }\n"])),vt.Z);var bt,wt,Ot,xt,kt,St=x.ZP.input.withConfig({displayName:"StyledLoginFormInput"})(bt||(bt=b()(["\n /* stylelint-disable-next-line block-no-empty */\n @keyframes onAutoFillStart {\n from {\n }\n }\n\n &&&& {\n ","\n transition: background-color 50000s, color 50000s, filter 50000s;\n\n &:-webkit-autofill {\n animation-duration: 50000s;\n animation-name: onAutoFillStart;\n }\n padding-top: ",";\n padding-bottom: ",";\n }\n"])),dt,qe.Z.space(-.9),qe.Z.space(-.9)),Pt=x.ZP.div.withConfig({displayName:"StyledLoginFormInputWrapper"})(wt||(wt=b()(["\n &&& {\n ","\n }\n"])),ft),jt=(0,x.ZP)(Ve.Z).withConfig({displayName:"StyledTransparentButton"})(Ot||(Ot=b()(["\n &&& {\n margin-right: 0;\n background-color: transparent;\n padding: "," 0;\n width: 100%;\n justify-content: center;\n\n &:hover {\n background-color: transparent;\n }\n }\n"])),qe.Z.space(-.1)),_t=x.ZP.div.withConfig({displayName:"StyledLoginFormWrapper"})(xt||(xt=b()(["\n "," {\n margin-top: ",";\n width: auto;\n flex-direction: column;\n\n "," {\n flex-grow: 1;\n }\n }\n"])),yt,qe.Z.space(.47),vt.Z);function Et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ct(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Et(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Et(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Tt=function(e){var t=e.captchaKey,n=e.changePage,r=e.intl,o=e.login,a=e.loginPending,i=e.message,c=e.password,s=e.recaptchaActivated,u=e.setPassword,l=e.setUsername,f=e.showTitle,p=e.username,d=e.entryPage,h=nt(l),m=H()(h,2),g=m[0],v=m[1],y=nt(u),b=H()(y,2),O=b[0],x=b[1],S=(0,w.useRef)(),j=d===k,_=function(e){return r.formatMessage({id:e})},E=He.Z.usePrevious(s),C=(0,w.useCallback)(function(){var e=F()(W().mark((function e(t){var n;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&t.preventDefault(),n=null,!s){e.next=7;break}return e.next=5,S.current.executeAsync();case 5:n=e.sent,S.current.reset();case 7:o(p,c,n);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[o,p,c,s]);(0,w.useEffect)((function(){s&&!E&&C()}),[s,E,C]);var T=!!p,D=!T;return(0,_e.jsxs)(_t,{children:[f&&(kt||(kt=(0,_e.jsx)(tt,{title:"client.login.form.title",subtitle:"client.login.form.introduction"}))),(0,_e.jsxs)("form",{onSubmit:C,children:[(0,_e.jsx)(Ue,{hasValue:!!p||g,id:"login-username",label:_("client.login.form.userPlaceholder"),immutable:j,children:(0,_e.jsx)(Pt,{children:(0,_e.jsx)(St,Ct({autoFocus:D,name:"user","data-cy":"login-form_user-input",required:!0,type:"text",value:p,disabled:j,onFocus:function(e){return e.target.select()}},v))})}),(0,_e.jsx)(Ue,{hasValue:!!c||O,id:"login-password",label:_("client.login.form.passwordPlaceholder"),children:(0,_e.jsx)(Pt,{children:(0,_e.jsx)(St,Ct({autoFocus:T,name:"password","data-cy":"login-form_password-input",required:!0,type:"password",value:c,onFocus:function(e){return e.target.select()}},x))})}),(0,_e.jsx)(Be,{message:i}),t&&s&&(0,_e.jsx)(re,{ref:S,badge:"bottomright",size:"invisible",sitekey:t,hl:r.locale}),(0,_e.jsx)(Qe,{disabled:a||""===p&&!g||""===c&&!O,label:_("client.login.form.button"),pending:a,"data-cy":"login-form_login-button"}),(0,_e.jsx)(jt,{label:_("client.login.form.forgotLink"),onClick:function(){return n(P)},"data-cy":"login-form_request-button"}),j&&(0,_e.jsx)(jt,{label:_("client.login.form.backLink"),onClick:function(){return n(k)}})]})]})};var Dt={changePage:A,setUsername:N,setPassword:Z,login:v};const Rt=(0,p.connect)((function(e){return{username:e.login.username,password:e.login.password,message:e.loginForm.message,loginPending:e.loginForm.loginPending,captchaKey:e.login.captchaKey,recaptchaActivated:e.loginForm.recaptchaActivated,entryPage:e.login.entryPage}}),Dt)((0,f.ZP)(Tt));var Mt,It;const At=function(e){var t=e.entryPage,n=e.username,r=e.requestPassword,o=e.intl,a=e.showTitle,i=e.pending,c=e.changePage,s=(0,w.useState)(n||""),u=H()(s,2),l=u[0],f=u[1],p=t===k,d=function(e){return o.formatMessage({id:e})};return(0,_e.jsxs)(_t,{children:[a&&(Mt||(Mt=(0,_e.jsx)(tt,{title:"client.login.passwordRequest.title"}))),!p&&(It||(It=(0,_e.jsx)(et.ZP.P,{children:(0,_e.jsx)(Je.Z,{id:"client.login.passwordRequest.introduction"})}))),(0,_e.jsxs)("form",{onSubmit:function(e){e.preventDefault(),r(l)},children:[(0,_e.jsx)(Ue,{hasValue:Boolean(l),id:"login-username",label:d("client.login.form.userPlaceholder"),immutable:p,children:(0,_e.jsx)(Pt,{children:(0,_e.jsx)(St,{name:"user",onChange:function(e){f(e.target.value)},required:!0,type:"text",value:l,disabled:p,"data-cy":"password-request_input"})})}),(0,_e.jsx)(Qe,{disabled:!l||i,label:d("client.login.passwordRequest.button"),pending:i,"data-cy":"password-request_submit-button"}),(0,_e.jsx)(jt,{disabled:i,label:d("client.login.passwordRequest.abortButton"),name:"abort",onClick:function(){return c(S)},"data-cy":"password-request_abort-button"})]})]})};var Nt={changePage:A,requestPassword:function(e){return{type:m,payload:{username:e}}}};const Zt=(0,p.connect)((function(e){return{username:e.login.username,pending:e.loginForm.loginPending,entryPage:e.login.entryPage}}),Nt)((0,f.ZP)(At));var Lt="INITIALIZED",Ft="PasswordUpdateDialog/UPDATE_OLD_PASSWORD",Ut="PasswordUpdateDialog/UPDATE_NEW_PASSWORD",Ht="PasswordUpdateDialog/SET_NEW_PASSWORD",Bt="PasswordUpdateDialog/SET_NEW_PASSWORD_VALIDATION_ERRORS",Wt="PasswordUpdateDialog/UPDATE_NEW_PASSWORD_REPEAT",zt="PasswordUpdateDialog/SAVE_PASSWORD",Yt="PasswordUpdateDialog/SAVE_PASSWORD_SUCCESS",Vt="PasswordUpdateDialog/SAVE_PASSWORD_FAILURE",qt="PasswordUpdateDialog/VALIDATE",Gt="PasswordUpdateDialog/RESET_PASSWORD_UPDATED_FAILED",Kt=function(e){return{type:Ft,payload:{oldPassword:e}}},Xt=function(e){return{type:Bt,payload:{errors:e}}},$t=function(e,t){return{type:Vt,payload:{errorCode:e,validationMessages:t}}},Qt="PasswordUpdateDialog/FETCH_VALIDATION_RULES",Jt="PasswordUpdateDialog/SET_VALIDATION_RULES",en=i(35728),tn={INVALID_CREDENTIALS:"client.login.passwordUpdate.invalidCredentials",UNEXPECTED_ERROR:"client.login.passwordUpdate.unexpectedError"};const nn=function(e){return(0,_e.jsx)(Ae.List,{children:(0,_e.jsx)(Ae.Item,{condition:ye.Z.condition.DANGER,children:(0,_e.jsx)(Je.Z,{id:(t=e.errorCode,tn[t]||"client.login.passwordUpdate.failure")})})});var t};const rn=function(e){return(0,_e.jsx)(Ae.List,{children:e.rules.map((function(t,n){var r=null,o=t.message;if(e.errors){var a=e.errors[t.name];!0===a?r=ye.Z.condition.DANGER:"string"==typeof a?(r=ye.Z.condition.DANGER,o=a):r=ye.Z.condition.SUCCESS}return(0,_e.jsx)(Ae.Item,{condition:r,label:o},n)}))})};var on,an,cn=x.ZP.input.attrs((function(e){return{type:"password"}})).withConfig({displayName:"StyledPasswordInput"})(on||(on=b()(["\n &&&& {\n ","\n }\n"])),dt),sn=x.ZP.div.withConfig({displayName:"StyledPasswordInputWrapper"})(an||(an=b()(["\n && {\n ","\n }\n"])),ft);const un=function(e){return(0,_e.jsx)(Ue,{hasValue:!!e.value,id:"".concat(e.name,"-input"),immutable:!0===e.readOnly,label:e.label,signal:e.value?void 0===e.valid?null:e.valid?ye.Z.condition.SUCCESS:ye.Z.condition.DANGER:null,children:(0,_e.jsx)(sn,{immutable:!0===e.readOnly,children:(0,_e.jsx)(cn,{id:"".concat(e.name,"-input"),value:e.value,onChange:function(t){return e.onChange(t.target.value)},disabled:!0===e.readOnly,immutable:!0===e.readOnly,onKeyDown:e.onKeyDown,autoFocus:e.autoFocus})})})};var ln;const fn=x.ZP.div(ln||(ln=b()(["\n "," {\n width: 100%;\n }\n"])),vt.Z);var pn,dn,hn,mn,gn;function vn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vn(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var bn=x.ZP.div.withConfig({displayName:"StyledValidationRulesWrapper"})(pn||(pn=b()(["\n margin: 1rem;\n"])));const wn=function(e){var t=e.captchaKey,n=e.fetchValidationRules,r=e.forcedUpdate,o=e.initialized,a=e.intl,i=e.password,c=e.savePassword,s=e.showOldPasswordField,u=e.showTitle,l=e.updateNewPassword,f=e.updateNewPasswordRepeat,p=e.updateOldPassword,d=e.validationRules,h=(0,w.useRef)();(0,w.useEffect)((function(){n()}),[n]),(0,w.useEffect)((function(){d&&o()}),[d,o]);var m=function(){var e=F()(W().mark((function e(t){var n;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),!0!==g()){e.next=7;break}return e.next=4,h.current.executeAsync();case 4:n=e.sent,h.current.reset(),c(n);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),g=function(){return!!i.newPasswordRepeat&&(i.newPassword===i.newPasswordRepeat&&!i.passwordUpdatePending)},v=function(e){return a.formatMessage({id:e})};if(!d)return dn||(dn=(0,_e.jsx)(en.Z,{}));var y=i.passwordUpdatePending,b=!i.oldPassword&&s||i.passwordUpdatePending,O=!i.newPassword||i.passwordUpdatePending||i.newPasswordValidationErrors&&Object.keys(i.newPasswordValidationErrors).length>0;return(0,_e.jsxs)(fn,{children:[u&&(hn||(hn=(0,_e.jsx)(tt,{title:"client.login.passwordUpdate.title"}))),r&&(mn||(mn=(0,_e.jsx)(et.ZP.P,{children:(0,_e.jsx)(Je.Z,{id:"client.login.passwordUpdate.introduction"})}))),(0,_e.jsxs)("form",{onSubmit:m,children:[!0===s&&(0,_e.jsx)(un,yn({tabIndex:1,label:v("client.login.passwordUpdate.oldPassword"),name:"oldPassword",value:i.oldPassword,onChange:p,readOnly:y,autoFocus:!0},i.passwordUpdateFailed&&"INVALID_CREDENTIALS"===i.passwordUpdateErrorCode&&{valid:!1})),(0,_e.jsx)(un,{tabIndex:2,label:v("client.login.passwordUpdate.newPassword"),name:"newPassword",value:i.newPassword,onChange:l,readOnly:b,autoFocus:!0!==s,valid:!O}),(0,_e.jsx)(bn,{children:(0,_e.jsx)(rn,{rules:d,errors:i.newPasswordValidationErrors,rulesNeutral:!i.newPassword})}),(0,_e.jsx)(un,{tabIndex:3,label:v("client.login.passwordUpdate.newPasswordRepeat"),name:"newPasswordRepeat",value:i.newPasswordRepeat,onChange:f,readOnly:O,valid:g()}),i.newPasswordRepeat&&i.newPassword!==i.newPasswordRepeat&&(gn||(gn=(0,_e.jsx)(Ae.List,{children:(0,_e.jsx)(Ae.Item,{condition:"danger",label:(0,_e.jsx)(Je.Z,{id:"client.login.passwordUpdate.noMatch"})})}))),!0===i.passwordUpdateFailed&&(0,_e.jsx)(nn,{errorCode:i.passwordUpdateErrorCode}),(0,_e.jsx)(Qe,{pending:i.passwordUpdatePending,disabled:!1===g(),label:v("client.login.passwordUpdate.saveButton")}),t&&(0,_e.jsx)(re,{ref:h,badge:"bottomright",size:"invisible",sitekey:t,hl:a.locale})]})]})};var On={updateOldPassword:Kt,updateNewPassword:function(e){return{type:Ut,payload:{newPassword:e}}},updateNewPasswordRepeat:function(e){return{type:Wt,payload:{newPasswordRepeat:e}}},fetchValidationRules:function(){return{type:Qt}},savePassword:function(e){return{type:zt,payload:{captchaToken:e}}},initialized:function(){return{type:Lt}}};const xn=(0,p.connect)((function(e){return{password:e.passwordUpdate.password,validationRules:e.passwordUpdate.validationRules,showOldPasswordField:e.passwordUpdate.dialog.showOldPasswordField,forcedUpdate:e.passwordUpdate.dialog.forcedUpdate,captchaKey:e.login.captchaKey}}),On)((0,f.ZP)(wn));var kn,Sn,Pn,jn,_n,En,Cn=i(30604),Tn="two-factor-connector/INITIALIZE",Dn="two-factor-connector/SET_TWO_STEP_ACTIVE",Rn="two-factor-connector/SET_SECRET",Mn="two-factor-connector/SET_USER_NAME",In="two-factor-connector/REQUEST_SECRET",An="two-factor-connector/GO_TO_SECRET_VERIFICATION",Nn="two-factor-connector/GO_TO_START",Zn="two-factor-connector/GO_TO_SECRET",Ln="two-factor-connector/VERIFY_CODE",Fn="root/SUCCESS",Un="root/SET_SETUP_SUCCESSFUL",Hn="root/GO_TO_RESULT",Bn=function(){return{type:Tn}},Wn=function(e){return{type:Dn,payload:{twoFactorActive:e}}},zn=function(e){return{type:Rn,payload:{secret:e}}},Yn=function(e){return{type:Mn,payload:{username:e}}},Vn=function(){return{type:Nn}},qn=function(e){return{type:Un,payload:{setupSuccessful:e}}},Gn=i(83324),Kn=x.ZP.div.withConfig({displayName:"StyledButtonWrapper"})(kn||(kn=b()(["\n display: flex;\n justify-content: flex-end;\n margin-top: ",";\n\n > "," {\n margin-right: 0;\n }\n"])),qe.Z.space(.5),vt.Z),Xn=x.ZP.div.withConfig({displayName:"StyledMessageWrapper"})(Sn||(Sn=b()(["\n display: grid;\n grid-template-columns: 9% 1fr;\n grid-column-gap: ",";\n"])),qe.Z.space(-.5)),$n=x.ZP.span.withConfig({displayName:"StyledIconWrapper"})(Pn||(Pn=b()(["\n display: flex;\n align-items: center;\n color: ",";\n font-size: ",";\n\n > * {\n max-width: 100%;\n }\n"])),(function(e){return e.isSuccessful?xe.FS.color("signal.success"):xe.FS.color("signal.danger")}),qe.Z.font(10)),Qn=x.ZP.div.withConfig({displayName:"StyledTextWrapper"})(jn||(jn=b()(["\n display: flex;\n align-items: center;\n"])));const Jn=function(e){var t=e.success,n=e.goToStart,r=e.setupSuccessful,o=e.intl;(0,Gn.z)(t);var a=function(e){return o.formatMessage({id:e})};return r?(0,_e.jsxs)(_e.Fragment,{children:[_n||(_n=(0,_e.jsxs)(Xn,{children:[(0,_e.jsx)($n,{isSuccessful:!0,children:(0,_e.jsx)(De.Z,{icon:"check"})}),(0,_e.jsx)(Qn,{children:(0,_e.jsx)(et.ZP.P,{children:(0,_e.jsx)(Je.Z,{id:"client.two-factor-connector.successfulText"})})})]})),(0,_e.jsx)(Kn,{children:(0,_e.jsx)(Ve.Z,{label:a("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:t})})]}):(0,_e.jsxs)(_e.Fragment,{children:[En||(En=(0,_e.jsxs)(Xn,{children:[(0,_e.jsx)($n,{isSuccessful:!1,children:(0,_e.jsx)(De.Z,{icon:"times"})}),(0,_e.jsx)(Qn,{children:(0,_e.jsx)(et.ZP.P,{children:(0,_e.jsx)(Je.Z,{id:"client.two-factor-connector.errorText"})})})]})),(0,_e.jsx)(Kn,{children:(0,_e.jsx)(Ve.Z,{label:a("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:n})})]})};var er={success:function(){return{type:Fn}},goToStart:Vn};const tr=(0,p.connect)((function(e){return{setupSuccessful:e.twoFactorConnector.setupSuccessful}}),er)((0,f.ZP)(Jn));var nr,rr=Object.defineProperty,or=Object.getOwnPropertySymbols,ar=Object.prototype.hasOwnProperty,ir=Object.prototype.propertyIsEnumerable,cr=(e,t,n)=>t in e?rr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sr=(e,t)=>{for(var n in t||(t={}))ar.call(t,n)&&cr(e,n,t[n]);if(or)for(var n of or(t))ir.call(t,n)&&cr(e,n,t[n]);return e},ur=(e,t)=>{var n={};for(var r in e)ar.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&or)for(var r of or(e))t.indexOf(r)<0&&ir.call(e,r)&&(n[r]=e[r]);return n};(e=>{const t=class{constructor(e,n,r,o){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let i=[];for(let e=0;e<this.size;e++)i.push(!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();const c=this.addEccAndInterleave(r);if(this.drawCodewords(c),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(o=t,e=n),this.applyMask(t)}}a(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,n,o=1,i=40,s=-1,u=!0){if(!(t.MIN_VERSION<=o&&o<=i&&i<=t.MAX_VERSION)||s<-1||s>7)throw new RangeError("Invalid value");let l,f;for(l=o;;l++){const r=8*t.getNumDataCodewords(l,n),o=c.getTotalBits(e,l);if(o<=r){f=o;break}if(l>=i)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])u&&f<=8*t.getNumDataCodewords(l,e)&&(n=e);let p=[];for(const t of e){r(t.mode.modeBits,4,p),r(t.numChars,t.mode.numCharCountBits(l),p);for(const e of t.getData())p.push(e)}a(p.length==f);const d=8*t.getNumDataCodewords(l,n);a(p.length<=d),r(0,Math.min(4,d-p.length),p),r(0,(8-p.length%8)%8,p),a(p.length%8==0);for(let e=236;p.length<d;e^=253)r(e,8,p);let h=[];for(;8*h.length<p.length;)h.push(0);return p.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(l,n,h,s)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const r=21522^(t<<10|n);a(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,o(r,e));this.setFunctionModule(8,7,o(r,6)),this.setFunctionModule(8,8,o(r,7)),this.setFunctionModule(7,8,o(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,o(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,o(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,o(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;a(t>>>18==0);for(let e=0;e<18;e++){const n=o(t,e),r=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(r,a,n),this.setFunctionModule(a,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),a=e+r,i=t+n;0<=a&&a<this.size&&0<=i&&i<this.size&&this.setFunctionModule(a,i,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const o=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],i=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],c=Math.floor(t.getNumRawDataModules(n)/8),s=o-c%o,u=Math.floor(c/o);let l=[];const f=t.reedSolomonComputeDivisor(i);for(let n=0,r=0;n<o;n++){let o=e.slice(r,r+u-i+(n<s?0:1));r+=o.length;const a=t.reedSolomonComputeRemainder(o,f);n<s&&o.push(0),l.push(o.concat(a))}let p=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,n)=>{(e!=u-i||n>=s)&&p.push(t[e])}));return a(p.length==c),p}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let a=0;a<2;a++){const i=t-a,c=0==(t+1&2)?this.size-1-r:r;!this.isFunction[c][i]&&n<8*e.length&&(this.modules[c][i]=o(e[n>>>3],7-(7&n)),n++)}}a(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[n][i]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][i],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[i][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[i][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,o=Math.ceil(Math.abs(20*n-10*r)/r)-1;return a(0<=o&&o<=9),e+=o*t.PENALTY_N4,a(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return a(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const o of e){const e=o^r.shift();r.push(0),n.forEach(((n,o)=>r[o]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return a(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];a(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function o(e,t){return 0!=(e>>>t&1)}function a(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const i=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new i(i.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!i.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const o=Math.min(e.length-n,3);r(parseInt(e.substr(n,o),10),3*o+1,t),n+=o}return new i(i.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!i.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let o=45*i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new i(i.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:i.isNumeric(e)?[i.makeNumeric(e)]:i.isAlphanumeric(e)?[i.makeAlphanumeric(e)]:[i.makeBytes(i.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new i(i.Mode.ECI,0,t)}static isNumeric(e){return i.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return i.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let c=i;c.NUMERIC_REGEX=/^[0-9]*$/,c.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,c.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=c})(nr||(nr={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})(t=e.QrCode||(e.QrCode={}))})(nr||(nr={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(t=e.QrSegment||(e.QrSegment={}))})(nr||(nr={}));var lr=nr,fr={L:lr.QrCode.Ecc.LOW,M:lr.QrCode.Ecc.MEDIUM,Q:lr.QrCode.Ecc.QUARTILE,H:lr.QrCode.Ecc.HIGH},pr=128,dr="L",hr="#FFFFFF",mr="#000000",gr=!1;
|
|
53
53
|
/**
|
|
54
54
|
* @license qrcode.react
|
|
55
55
|
* Copyright (c) Paul O'Shannessy
|