tocco-widget-bundle 0.1.141 → 0.1.142
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 +7 -0
- package/dist/address-update.js +2 -2
- package/dist/chunk-240.a97880f6a7aac4fe4169.js +1 -0
- package/dist/{chunk-378.d8612113ca3b0f0fcd90.js → chunk-577.af80ebb1e57dfaddeb38.js} +1 -1
- package/dist/chunk-695.423d154ab50fab8c8ce1.js +6 -0
- package/dist/{chunk-actions.e81aa907fb19d3d52846.js → chunk-actions.f10a20db9c431b2d0659.js} +1 -1
- package/dist/chunk-docs-actions.a930f43e5ab1f6c2a9cf.js +6 -0
- package/dist/chunk-vendor-icons.027f72eab0114f68c0d4.js +1 -0
- package/dist/docs-browser.js +2 -2
- package/dist/entity-browser.js +6 -6
- package/dist/entity-dms.js +2 -2
- package/dist/evaluation-execution-participation.js +2 -2
- package/dist/event-registration.js +7 -7
- package/dist/job-application.js +6 -6
- package/dist/login.js +1 -1
- package/dist/mailing-list.js +7 -7
- 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 +7 -7
- package/dist/user-availability.js +7 -7
- package/dist/user-grades.js +5 -5
- package/dist/user-menu.js +1 -1
- package/dist/wage-view.js +7 -7
- package/package.json +1 -1
- package/dist/chunk-240.0d6083158f44c091b614.js +0 -1
- package/dist/chunk-695.52ee2ba9d026de490861.js +0 -6
- package/dist/chunk-docs-actions.3cc66f796855900e14a4.js +0 -6
- package/dist/chunk-vendor-icons.8f091af620f8fd67cad8.js +0 -1
package/dist/password-update.js
CHANGED
|
@@ -49,7 +49,7 @@ e.exports=function(){"use strict";function e(t){return e="function"==typeof Symb
|
|
|
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 p=c(null);if(null===p.current){var f={hasValue:!1,value:null};p.current=f}else f=p.current;p=u((function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==o&&f.hasValue){var t=f.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,p[0],p[1]);return s((function(){f.hasValue=!0,f.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},r.apply(this,arguments)}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},r.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},r(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=>885===e?"chunk-ckeditor.f485d9d93075327af074.js":"chunk-"+({85:"code-editor",198:"vendor-fontawesome",614:"vendor-icons",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"db1126e5f72da427d1ea",198:"428fb8a2ead9aced75bc",560:"921a930bee3a737bee5c",608:"3f5c2d9d74c51e74c5b0",614:"8f091af620f8fd67cad8",759:"3e178a7310a92d3020c3",817:"2b608f431339a863492a",877:"ee24f52222afe086ba7e"}[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 p=u[l];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==r+o){c=p;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 f=(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(f.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=f.bind(null,c.onerror),c.onload=f.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=201,i.p="/",(()=>{var e={201: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);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),p=i(74806),f=i(50558),d="login/INITIALIZE",h="login/LOGIN",m="login/REQUEST_PASSWORD",g="login/CHECK_USERNAME",y=function(e,t,n,r){return{type:h,payload:{username:e,password:t,captchaToken:n,userCode:r}}},v=i(28655),b=i.n(v),w=i(1024),O=i.n(w),x=i(38205),k="USERNAME_FORM",_="LOGIN_FORM",S="PASSWORD_REQUEST",E="TWOSTEPLOGIN",A="PASSWORD_UPDATE",P="TWOSTEPLOGIN_ACTIVATION",j="login/CHANGE_PAGE",C="login/SET_ENTRY_PAGE",D="login/SET_USERNAME",T="login/SET_PASSWORD",R="login/SET_CAPTCHA_KEY",I=function(e){return{type:C,payload:{entryPage:e}}},M=function(e){return{type:j,payload:{currentPage:e}}},N=function(e){return{type:D,payload:{username:e}}},Z=function(e){return{type:T,payload:{password:e}}},B=i(48926),L=i.n(B),F=i(63038),U=i.n(F),H=i(87757),W=i.n(H),z=i(99860),V=i.n(z);function Y(){return Y=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},Y.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",Y({},t,{ref:this.handleRecaptchaRef}))},r}(O().Component);G.displayName="ReCAPTCHA",G.propTypes={sitekey:V().string.isRequired,onChange:V().func,grecaptcha:V().object,theme:V().oneOf(["dark","light"]),type:V().oneOf(["image","audio"]),tabindex:V().number,onExpired:V().func,onErrored:V().func,size:V().oneOf(["compact","normal","invisible"]),stoken:V().string,hl:V().string,badge:V().oneOf(["bottomright","bottomleft","inline"])},G.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var K=i(9657),$=i.n(K),X=i(8679),Q=i.n(X);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},J.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 p in l.src=n,l.async=!0,t.attributes)l.setAttribute(p,t.attributes[p]);c&&(l.id=c);var f=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,f((function(t){return!i&&(t(e),!0)})))},l.onerror=function(){var e=ee[n];e&&(e.errored=!0,f((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:$().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),oe=re;var ae=i(41505),ie=i.n(ae),ce=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},se=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},ue=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},le={outline:"none"},pe=function(e){function t(){var n,r;ce(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=ue(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)},ue(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",se({ref:this.ref,style:le},n),e)},t}(O().Component);pe.propTypes={children:ie().oneOfType([ie().node,ie().func]).isRequired,onBlur:ie().func,onFocus:ie().func},pe.defaultProps={onBlur:function(){},onFocus:function(){}};const fe=pe;var de,he,me,ge,ye=i(70696),ve=i(10535),be=i(78958),we=i(319),Oe=i.n(we),xe=i(37188),ke=i(24875),_e=(de={},n()(de,be.Z.condition.BASE,"inherit"),n()(de,be.Z.condition.DANGER,ke.FS.color("signal.danger")),n()(de,be.Z.condition.SUCCESS,ke.FS.color("signal.success")),n()(de,be.Z.condition.WARNING,ke.FS.color("signal.warning")),n()(de,be.Z.condition.INFO,ke.FS.color("signal.info")),de),Se=(0,x.ZP)(xe.hc).withConfig({displayName:"StyledSignalList"})(he||(he=b()(["\n && {\n list-style-type: none;\n }\n"]))),Ee=x.ZP.span.withConfig({displayName:"StyledSignalListIcon"})(me||(me=b()(["\n position: absolute;\n left: -1.6rem;\n text-align: left;\n"]))),Ae=(0,x.ZP)(xe.EF).withConfig({displayName:"StyledSignalListItem"})(ge||(ge=b()(["\n && {\n color: ",";\n position: relative;\n padding: 0;\n }\n"])),(function(e){return function(e){return _e[e.condition]||"inherit"}(e)})),Pe=i(85893);const je=function(e){return(0,Pe.jsx)(Se,{as:"ul",children:O().Children.map(e.children,(function(e){return O().cloneElement(e)}))})};var Ce,De,Te=i(88162),Re=(Ce={},n()(Ce,be.Z.condition.BASE,!1),n()(Ce,be.Z.condition.DANGER,"times"),n()(Ce,be.Z.condition.SUCCESS,"check"),n()(Ce,be.Z.condition.WARNING,"exclamation-triangle"),n()(Ce,be.Z.condition.INFO,"info"),Ce),Ie=function(e){var t=Re[e.condition];return t?(0,Pe.jsx)(Te.Z,{icon:t,position:be.Z.position.SOLE}):De||(De=(0,Pe.jsx)("i",{children:"•"}))},Me=function(e){return(0,Pe.jsxs)(Ae,{condition:e.condition,children:[(0,Pe.jsx)(Ee,{children:Ie(e)}),e.label,O().Children.map(e.children,(function(e){return O().cloneElement(e)}))]})};Me.defaultProps={condition:be.Z.condition.BASE};const Ne={List:je,Item:Me};const Ze=function(e){if(!e.error)return null;var t=[];return Object.keys(e.error).forEach((function(n){t.push.apply(t,Oe()(e.error[n]))})),(0,Pe.jsx)(Ne.List,{children:t.map((function(e,t){return(0,Pe.jsx)(Ne.Item,{condition:"danger",label:e},t)}))})};var Be=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,p=e.hasValue,f=e.id,d=e.label,h=e.mandatory,m=e.mandatoryTitle,g=e.immutable,y=e.touched,v=e.signal,b=!g&&y&&l&&Object.keys(l).length>0,w="".concat(ye.Z.adjustedHTMLString(d)).concat(h&&m?", ".concat(m):""),O=v||function(e,t,n,r){return t?be.Z.condition.DANGER:e?be.Z.condition.INFO:n&&!r?be.Z.condition.WARNING:void 0}(c,b,h,p),x={__html:"".concat(ve.Z.sanitizeHtml(d)).concat(h?" *":"")},k=!s&&!g&&{htmlFor:f},_=u.Z.getEmbedType(),S=["admin","legacy-admin"].includes(_);return(0,Pe.jsx)(fe,{children:function(e){var u=e.getRef;return(0,Pe.jsx)(Be.T3,{children:(0,Pe.jsxs)(Be.QZ,{ref:u,label:d,isAdmin:S,children:[d&&(0,Pe.jsx)(Be.yr,Fe(Fe({},k),{},{hasValue:p,dirty:c,title:w,immutable:g,isDisplay:s,signal:O,isAdmin:S,children:t||(t=(0,Pe.jsx)("span",{dangerouslySetInnerHTML:x}))})),(0,Pe.jsxs)(Be.m9,{isAdmin:S,children:[n||(n=(0,Pe.jsx)(Be.if,{hasValue:p,immutable:g,isDisplay:s,signal:O,children:a})),b&&(r||(r=(0,Pe.jsx)(Be.gi,{children:(0,Pe.jsx)(Ze,{error:l})}))),i&&(o||(o=(0,Pe.jsx)(Be.Mp,{children:i})))]})]})})}})};var He=i(35997);const We=(0,p.ZP)((function(e){var t,n=e.message,r=e.intl;return n&&n.text?(0,Pe.jsx)(Ne.List,{children:(0,Pe.jsx)(Ne.Item,{condition:n.negative?"danger":"base",label:(t=n.text,r.formatMessage({id:t}))})}):null})),ze=We;var Ve,Ye=i(6479),qe=i.n(Ye),Ge=i(65035),Ke=i(7281),$e=i(88601),Xe=(0,x.ZP)(Ge.Z).withConfig({displayName:"StyledLoginButton"})(Ve||(Ve=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"])),Ke.Z.font(1.3),$e.Z.radii("buttonLarge")),Qe=["disabled","pending","label"];function Je(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 et=function(e){var t=e.disabled,r=e.pending,o=e.label,a=qe()(e,Qe);return(0,Pe.jsx)(Xe,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Je(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Je(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"},a))},tt=et;var nt=i(44012),rt=i(34206);const ot=function(e){var t=e.title,n=e.subtitle;return(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(rt.ZP.H5,{children:(0,Pe.jsx)(nt.Z,{id:t})}),n&&(0,Pe.jsx)(rt.ZP.P,{children:(0,Pe.jsx)(nt.Z,{id:n})})]})},at=ot;const it=function(e){var t=(0,w.useState)(!1),n=U()(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 ct,st,ut,lt,pt,ft,dt,ht=i(30759),mt=(0,x.iv)(ct||(ct=b()(["\n align-items: center;\n cursor: ",";\n display: flex;\n"])),(function(e){return e.immutable?"not-allowed":"default"})),gt=x.ZP.label.withConfig({displayName:"StyledEditableWrapper"})(st||(st=b()(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),mt),yt=(0,x.iv)(ut||(ut=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,ht.Z)({color:ke.FS.color("text")})}),ke.FS.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),vt=(0,x.iv)(lt||(lt=b()(["\n display: flex;\n align-items: center;\n"]))),bt=x.ZP.div.withConfig({displayName:"StyledEditableControl"})(pt||(pt=b()(["\n &&& {\n ","\n }\n"])),vt),wt=x.ZP.span.withConfig({displayName:"StyledEditableValue"})(ft||(ft=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"])),ke.FS.color("signal.danger")),Ot=i(58129);const xt=x.ZP.div.withConfig({displayName:"StyledButtonGroup"})(dt||(dt=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"])),Ot.Z);var kt,_t,St,Et,At,Pt=x.ZP.input.withConfig({displayName:"StyledLoginFormInput"})(kt||(kt=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: 0.7rem;\n padding-bottom: 0.7rem;\n }\n"])),yt),jt=x.ZP.div.withConfig({displayName:"StyledLoginFormInputWrapper"})(_t||(_t=b()(["\n &&& {\n ","\n }\n"])),mt),Ct=(0,x.ZP)(Ge.Z).withConfig({displayName:"StyledTransparentButton"})(St||(St=b()(["\n &&& {\n margin-right: 0;\n background-color: transparent;\n color: ",";\n padding: 1.25rem 0;\n width: 100%;\n justify-content: center;\n\n &:hover {\n background-color: transparent;\n }\n }\n"])),$e.Z.color("primary")),Dt=x.ZP.div.withConfig({displayName:"StyledLoginFormWrapper"})(Et||(Et=b()(["\n "," {\n margin-top: 1.8rem;\n width: auto;\n flex-direction: column;\n\n "," {\n flex-grow: 1;\n }\n }\n"])),xt,Ot.Z);function Tt(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 Rt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Tt(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const It=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,p=e.showTitle,f=e.username,d=e.entryPage,h=it(l),m=U()(h,2),g=m[0],y=m[1],v=it(u),b=U()(v,2),O=b[0],x=b[1],_=(0,w.useRef)(),E=d===k,A=function(e){return r.formatMessage({id:e})},P=He.Z.usePrevious(s),j=(0,w.useCallback)(function(){var e=L()(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,_.current.executeAsync();case 5:n=e.sent,_.current.reset();case 7:o(f,c,n);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[o,f,c,s]);(0,w.useEffect)((function(){s&&!P&&j()}),[s,P,j]);var C=!!f,D=!C;return(0,Pe.jsxs)(Dt,{children:[p&&(At||(At=(0,Pe.jsx)(at,{title:"client.login.form.title",subtitle:"client.login.form.introduction"}))),(0,Pe.jsxs)("form",{onSubmit:j,children:[(0,Pe.jsx)(Ue,{hasValue:!!f||g,id:"login-username",label:A("client.login.form.userPlaceholder"),immutable:E,children:(0,Pe.jsx)(jt,{children:(0,Pe.jsx)(Pt,Rt({autoFocus:D,name:"user","data-cy":"login-form_user-input",required:!0,type:"text",value:f,disabled:E,onFocus:function(e){return e.target.select()}},y))})}),(0,Pe.jsx)(Ue,{hasValue:!!c||O,id:"login-password",label:A("client.login.form.passwordPlaceholder"),children:(0,Pe.jsx)(jt,{children:(0,Pe.jsx)(Pt,Rt({autoFocus:C,name:"password","data-cy":"login-form_password-input",required:!0,type:"password",value:c,onFocus:function(e){return e.target.select()}},x))})}),(0,Pe.jsx)(ze,{message:i}),t&&s&&(0,Pe.jsx)(oe,{ref:_,badge:"bottomright",size:"invisible",sitekey:t,hl:r.locale}),(0,Pe.jsx)(tt,{disabled:a||""===f&&!g||""===c&&!O,label:A("client.login.form.button"),pending:a,"data-cy":"login-form_login-button"}),(0,Pe.jsx)(Ct,{label:A("client.login.form.forgotLink"),onClick:function(){return n(S)},"data-cy":"login-form_request-button"}),E&&(0,Pe.jsx)(Ct,{label:A("client.login.form.backLink"),onClick:function(){return n(k)}})]})]})};var Mt={changePage:M,setUsername:N,setPassword:Z,login:y};const Nt=(0,f.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}}),Mt)((0,p.ZP)(It));var Zt,Bt;const Lt=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=U()(s,2),l=u[0],p=u[1],f=t===k,d=function(e){return o.formatMessage({id:e})};return(0,Pe.jsxs)(Dt,{children:[a&&(Zt||(Zt=(0,Pe.jsx)(at,{title:"client.login.passwordRequest.title"}))),!f&&(Bt||(Bt=(0,Pe.jsx)(rt.ZP.P,{children:(0,Pe.jsx)(nt.Z,{id:"client.login.passwordRequest.introduction"})}))),(0,Pe.jsxs)("form",{onSubmit:function(e){e.preventDefault(),r(l)},children:[(0,Pe.jsx)(Ue,{hasValue:Boolean(l),id:"login-username",label:d("client.login.form.userPlaceholder"),immutable:f,children:(0,Pe.jsx)(jt,{children:(0,Pe.jsx)(Pt,{name:"user",onChange:function(e){p(e.target.value)},required:!0,type:"text",value:l,disabled:f,"data-cy":"password-request_input"})})}),(0,Pe.jsx)(tt,{disabled:!l||i,label:d("client.login.passwordRequest.button"),pending:i,"data-cy":"password-request_submit-button"}),(0,Pe.jsx)(Ct,{disabled:i,label:d("client.login.passwordRequest.abortButton"),name:"abort",onClick:function(){return c(_)},"data-cy":"password-request_abort-button"})]})]})};var Ft={changePage:M,requestPassword:function(e){return{type:m,payload:{username:e}}}};const Ut=(0,f.connect)((function(e){return{username:e.login.username,pending:e.loginForm.loginPending,entryPage:e.login.entryPage}}),Ft)((0,p.ZP)(Lt));var Ht="INITIALIZED",Wt="PasswordUpdateDialog/UPDATE_OLD_PASSWORD",zt="PasswordUpdateDialog/UPDATE_NEW_PASSWORD",Vt="PasswordUpdateDialog/SET_NEW_PASSWORD",Yt="PasswordUpdateDialog/SET_NEW_PASSWORD_VALIDATION_ERRORS",qt="PasswordUpdateDialog/UPDATE_NEW_PASSWORD_REPEAT",Gt="PasswordUpdateDialog/SAVE_PASSWORD",Kt="PasswordUpdateDialog/SAVE_PASSWORD_SUCCESS",$t="PasswordUpdateDialog/SAVE_PASSWORD_FAILURE",Xt="PasswordUpdateDialog/VALIDATE",Qt="PasswordUpdateDialog/RESET_PASSWORD_UPDATED_FAILED",Jt=function(e){return{type:Wt,payload:{oldPassword:e}}},en=function(e){return{type:Yt,payload:{errors:e}}},tn=function(e,t){return{type:$t,payload:{errorCode:e,validationMessages:t}}},nn="PasswordUpdateDialog/FETCH_VALIDATION_RULES",rn="PasswordUpdateDialog/SET_VALIDATION_RULES",on=i(35728),an={INVALID_CREDENTIALS:"client.login.passwordUpdate.invalidCredentials",UNEXPECTED_ERROR:"client.login.passwordUpdate.unexpectedError"};const cn=function(e){return(0,Pe.jsx)(Ne.List,{children:(0,Pe.jsx)(Ne.Item,{condition:be.Z.condition.DANGER,children:(0,Pe.jsx)(nt.Z,{id:(t=e.errorCode,an[t]||"client.login.passwordUpdate.failure")})})});var t};const sn=function(e){return(0,Pe.jsx)(Ne.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=be.Z.condition.DANGER:"string"==typeof a?(r=be.Z.condition.DANGER,o=a):r=be.Z.condition.SUCCESS}return(0,Pe.jsx)(Ne.Item,{condition:r,label:o},n)}))})},un=sn;var ln,pn,fn=x.ZP.input.attrs((function(e){return{type:"password"}})).withConfig({displayName:"StyledPasswordInput"})(ln||(ln=b()(["\n &&&& {\n ","\n }\n"])),yt),dn=x.ZP.div.withConfig({displayName:"StyledPasswordInputWrapper"})(pn||(pn=b()(["\n && {\n ","\n }\n"])),mt);const hn=function(e){return(0,Pe.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?be.Z.condition.SUCCESS:be.Z.condition.DANGER:null,children:(0,Pe.jsx)(dn,{immutable:!0===e.readOnly,children:(0,Pe.jsx)(fn,{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 mn;const gn=x.ZP.div(mn||(mn=b()(["\n "," {\n width: 100%;\n }\n"])),Ot.Z);var yn,vn,bn,wn,On;function xn(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 kn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xn(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var _n=x.ZP.div.withConfig({displayName:"StyledValidationRulesWrapper"})(yn||(yn=b()(["\n margin: 1rem;\n"])));const Sn=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,p=e.updateNewPasswordRepeat,f=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=L()(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)},y=function(e){return a.formatMessage({id:e})};if(!d)return vn||(vn=(0,Pe.jsx)(on.Z,{}));var v=i.passwordUpdatePending,b=!i.oldPassword&&s||i.passwordUpdatePending,O=!i.newPassword||i.passwordUpdatePending||i.newPasswordValidationErrors&&Object.keys(i.newPasswordValidationErrors).length>0;return(0,Pe.jsxs)(gn,{children:[u&&(bn||(bn=(0,Pe.jsx)(at,{title:"client.login.passwordUpdate.title"}))),r&&(wn||(wn=(0,Pe.jsx)(rt.ZP.P,{children:(0,Pe.jsx)(nt.Z,{id:"client.login.passwordUpdate.introduction"})}))),(0,Pe.jsxs)("form",{onSubmit:m,children:[!0===s&&(0,Pe.jsx)(hn,kn({tabIndex:1,label:y("client.login.passwordUpdate.oldPassword"),name:"oldPassword",value:i.oldPassword,onChange:f,readOnly:v,autoFocus:!0},i.passwordUpdateFailed&&"INVALID_CREDENTIALS"===i.passwordUpdateErrorCode&&{valid:!1})),(0,Pe.jsx)(hn,{tabIndex:2,label:y("client.login.passwordUpdate.newPassword"),name:"newPassword",value:i.newPassword,onChange:l,readOnly:b,autoFocus:!0!==s,valid:!O}),(0,Pe.jsx)(_n,{children:(0,Pe.jsx)(un,{rules:d,errors:i.newPasswordValidationErrors,rulesNeutral:!i.newPassword})}),(0,Pe.jsx)(hn,{tabIndex:3,label:y("client.login.passwordUpdate.newPasswordRepeat"),name:"newPasswordRepeat",value:i.newPasswordRepeat,onChange:p,readOnly:O,valid:g()}),i.newPasswordRepeat&&i.newPassword!==i.newPasswordRepeat&&(On||(On=(0,Pe.jsx)(Ne.List,{children:(0,Pe.jsx)(Ne.Item,{condition:"danger",label:(0,Pe.jsx)(nt.Z,{id:"client.login.passwordUpdate.noMatch"})})}))),!0===i.passwordUpdateFailed&&(0,Pe.jsx)(cn,{errorCode:i.passwordUpdateErrorCode}),(0,Pe.jsx)(tt,{pending:i.passwordUpdatePending,disabled:!1===g(),label:y("client.login.passwordUpdate.saveButton")}),t&&(0,Pe.jsx)(oe,{ref:h,badge:"bottomright",size:"invisible",sitekey:t,hl:a.locale})]})]})};var En={updateOldPassword:Jt,updateNewPassword:function(e){return{type:zt,payload:{newPassword:e}}},updateNewPasswordRepeat:function(e){return{type:qt,payload:{newPasswordRepeat:e}}},fetchValidationRules:function(){return{type:nn}},savePassword:function(e){return{type:Gt,payload:{captchaToken:e}}},initialized:function(){return{type:Ht}}};const An=(0,f.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}}),En)((0,p.ZP)(Sn));var Pn,jn,Cn,Dn,Tn,Rn,In=i(30604),Mn="two-factor-connector/INITIALIZE",Nn="two-factor-connector/SET_TWO_STEP_ACTIVE",Zn="two-factor-connector/SET_SECRET",Bn="two-factor-connector/SET_USER_NAME",Ln="two-factor-connector/REQUEST_SECRET",Fn="two-factor-connector/GO_TO_SECRET_VERIFICATION",Un="two-factor-connector/GO_TO_START",Hn="two-factor-connector/GO_TO_SECRET",Wn="two-factor-connector/VERIFY_CODE",zn="root/SUCCESS",Vn="root/SET_SETUP_SUCCESSFUL",Yn="root/GO_TO_RESULT",qn=function(){return{type:Mn}},Gn=function(e){return{type:Nn,payload:{twoFactorActive:e}}},Kn=function(e){return{type:Zn,payload:{secret:e}}},$n=function(e){return{type:Bn,payload:{username:e}}},Xn=function(){return{type:Un}},Qn=function(e){return{type:Vn,payload:{setupSuccessful:e}}},Jn=i(83324),er=x.ZP.div.withConfig({displayName:"StyledButtonWrapper"})(Pn||(Pn=b()(["\n display: flex;\n justify-content: flex-end;\n margin-top: ",";\n\n > "," {\n margin-right: 0;\n }\n"])),Ke.Z.space(.5),Ot.Z),tr=x.ZP.div.withConfig({displayName:"StyledMessageWrapper"})(jn||(jn=b()(["\n display: grid;\n grid-template-columns: 9% 1fr;\n grid-column-gap: ",";\n"])),Ke.Z.space(-.5)),nr=x.ZP.span.withConfig({displayName:"StyledIconWrapper"})(Cn||(Cn=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?ke.FS.color("signal.success"):ke.FS.color("signal.danger")}),Ke.Z.font(10)),rr=x.ZP.div.withConfig({displayName:"StyledTextWrapper"})(Dn||(Dn=b()(["\n display: flex;\n align-items: center;\n"])));const or=function(e){var t=e.success,n=e.goToStart,r=e.setupSuccessful,o=e.intl;(0,Jn.z)(t);var a=function(e){return o.formatMessage({id:e})};return r?(0,Pe.jsxs)(Pe.Fragment,{children:[Tn||(Tn=(0,Pe.jsxs)(tr,{children:[(0,Pe.jsx)(nr,{isSuccessful:!0,children:(0,Pe.jsx)(Te.Z,{icon:"check"})}),(0,Pe.jsx)(rr,{children:(0,Pe.jsx)(rt.ZP.P,{children:(0,Pe.jsx)(nt.Z,{id:"client.two-factor-connector.successfulText"})})})]})),(0,Pe.jsx)(er,{children:(0,Pe.jsx)(Ge.Z,{label:a("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:t})})]}):(0,Pe.jsxs)(Pe.Fragment,{children:[Rn||(Rn=(0,Pe.jsxs)(tr,{children:[(0,Pe.jsx)(nr,{isSuccessful:!1,children:(0,Pe.jsx)(Te.Z,{icon:"times"})}),(0,Pe.jsx)(rr,{children:(0,Pe.jsx)(rt.ZP.P,{children:(0,Pe.jsx)(nt.Z,{id:"client.two-factor-connector.errorText"})})})]})),(0,Pe.jsx)(er,{children:(0,Pe.jsx)(Ge.Z,{label:a("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:n})})]})};var ar={success:function(){return{type:zn}},goToStart:Xn};const ir=(0,f.connect)((function(e){return{setupSuccessful:e.twoFactorConnector.setupSuccessful}}),ar)((0,p.ZP)(or));var cr,sr=Object.defineProperty,ur=Object.getOwnPropertySymbols,lr=Object.prototype.hasOwnProperty,pr=Object.prototype.propertyIsEnumerable,fr=(e,t,n)=>t in e?sr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dr=(e,t)=>{for(var n in t||(t={}))lr.call(t,n)&&fr(e,n,t[n]);if(ur)for(var n of ur(t))pr.call(t,n)&&fr(e,n,t[n]);return e},hr=(e,t)=>{var n={};for(var r in e)lr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ur)for(var r of ur(e))t.indexOf(r)<0&&pr.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,p;for(l=o;;l++){const r=8*t.getNumDataCodewords(l,n),o=c.getTotalBits(e,l);if(o<=r){p=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&&p<=8*t.getNumDataCodewords(l,e)&&(n=e);let f=[];for(const t of e){r(t.mode.modeBits,4,f),r(t.numChars,t.mode.numCharCountBits(l),f);for(const e of t.getData())f.push(e)}a(f.length==p);const d=8*t.getNumDataCodewords(l,n);a(f.length<=d),r(0,Math.min(4,d-f.length),f),r(0,(8-f.length%8)%8,f),a(f.length%8==0);for(let e=236;f.length<d;e^=253)r(e,8,f);let h=[];for(;8*h.length<f.length;)h.push(0);return f.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 p=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,p);n<s&&o.push(0),l.push(o.concat(a))}let f=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,n)=>{(e!=u-i||n>=s)&&f.push(t[e])}));return a(f.length==c),f}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})(cr||(cr={})),(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={}))})(cr||(cr={})),(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={}))})(cr||(cr={}));var mr=cr,gr={L:mr.QrCode.Ecc.LOW,M:mr.QrCode.Ecc.MEDIUM,Q:mr.QrCode.Ecc.QUARTILE,H:mr.QrCode.Ecc.HIGH},yr=128,vr="L",br="#FFFFFF",wr="#000000",Or=!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 p=c(null);if(null===p.current){var f={hasValue:!1,value:null};p.current=f}else f=p.current;p=u((function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==o&&f.hasValue){var t=f.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,p[0],p[1]);return s((function(){f.hasValue=!0,f.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},r.apply(this,arguments)}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},r.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},r(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=>885===e?"chunk-ckeditor.f485d9d93075327af074.js":"chunk-"+({85:"code-editor",198:"vendor-fontawesome",614:"vendor-icons",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"db1126e5f72da427d1ea",198:"428fb8a2ead9aced75bc",560:"921a930bee3a737bee5c",608:"3f5c2d9d74c51e74c5b0",614:"027f72eab0114f68c0d4",759:"3e178a7310a92d3020c3",817:"2b608f431339a863492a",877:"ee24f52222afe086ba7e"}[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 p=u[l];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==r+o){c=p;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 f=(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(f.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=f.bind(null,c.onerror),c.onload=f.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=201,i.p="/",(()=>{var e={201: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);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),p=i(74806),f=i(50558),d="login/INITIALIZE",h="login/LOGIN",m="login/REQUEST_PASSWORD",g="login/CHECK_USERNAME",y=function(e,t,n,r){return{type:h,payload:{username:e,password:t,captchaToken:n,userCode:r}}},v=i(28655),b=i.n(v),w=i(1024),O=i.n(w),x=i(38205),k="USERNAME_FORM",_="LOGIN_FORM",S="PASSWORD_REQUEST",E="TWOSTEPLOGIN",A="PASSWORD_UPDATE",P="TWOSTEPLOGIN_ACTIVATION",j="login/CHANGE_PAGE",C="login/SET_ENTRY_PAGE",D="login/SET_USERNAME",T="login/SET_PASSWORD",R="login/SET_CAPTCHA_KEY",I=function(e){return{type:C,payload:{entryPage:e}}},M=function(e){return{type:j,payload:{currentPage:e}}},N=function(e){return{type:D,payload:{username:e}}},Z=function(e){return{type:T,payload:{password:e}}},B=i(48926),L=i.n(B),F=i(63038),U=i.n(F),H=i(87757),W=i.n(H),z=i(99860),V=i.n(z);function Y(){return Y=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},Y.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",Y({},t,{ref:this.handleRecaptchaRef}))},r}(O().Component);G.displayName="ReCAPTCHA",G.propTypes={sitekey:V().string.isRequired,onChange:V().func,grecaptcha:V().object,theme:V().oneOf(["dark","light"]),type:V().oneOf(["image","audio"]),tabindex:V().number,onExpired:V().func,onErrored:V().func,size:V().oneOf(["compact","normal","invisible"]),stoken:V().string,hl:V().string,badge:V().oneOf(["bottomright","bottomleft","inline"])},G.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var K=i(9657),$=i.n(K),X=i(8679),Q=i.n(X);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},J.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 p in l.src=n,l.async=!0,t.attributes)l.setAttribute(p,t.attributes[p]);c&&(l.id=c);var f=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,f((function(t){return!i&&(t(e),!0)})))},l.onerror=function(){var e=ee[n];e&&(e.errored=!0,f((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:$().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),oe=re;var ae=i(41505),ie=i.n(ae),ce=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},se=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},ue=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},le={outline:"none"},pe=function(e){function t(){var n,r;ce(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=ue(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)},ue(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",se({ref:this.ref,style:le},n),e)},t}(O().Component);pe.propTypes={children:ie().oneOfType([ie().node,ie().func]).isRequired,onBlur:ie().func,onFocus:ie().func},pe.defaultProps={onBlur:function(){},onFocus:function(){}};const fe=pe;var de,he,me,ge,ye=i(70696),ve=i(10535),be=i(78958),we=i(319),Oe=i.n(we),xe=i(37188),ke=i(24875),_e=(de={},n()(de,be.Z.condition.BASE,"inherit"),n()(de,be.Z.condition.DANGER,ke.FS.color("signal.danger")),n()(de,be.Z.condition.SUCCESS,ke.FS.color("signal.success")),n()(de,be.Z.condition.WARNING,ke.FS.color("signal.warning")),n()(de,be.Z.condition.INFO,ke.FS.color("signal.info")),de),Se=(0,x.ZP)(xe.hc).withConfig({displayName:"StyledSignalList"})(he||(he=b()(["\n && {\n list-style-type: none;\n }\n"]))),Ee=x.ZP.span.withConfig({displayName:"StyledSignalListIcon"})(me||(me=b()(["\n position: absolute;\n left: -1.6rem;\n text-align: left;\n"]))),Ae=(0,x.ZP)(xe.EF).withConfig({displayName:"StyledSignalListItem"})(ge||(ge=b()(["\n && {\n color: ",";\n position: relative;\n padding: 0;\n }\n"])),(function(e){return function(e){return _e[e.condition]||"inherit"}(e)})),Pe=i(85893);const je=function(e){return(0,Pe.jsx)(Se,{as:"ul",children:O().Children.map(e.children,(function(e){return O().cloneElement(e)}))})};var Ce,De,Te=i(88162),Re=(Ce={},n()(Ce,be.Z.condition.BASE,!1),n()(Ce,be.Z.condition.DANGER,"times"),n()(Ce,be.Z.condition.SUCCESS,"check"),n()(Ce,be.Z.condition.WARNING,"exclamation-triangle"),n()(Ce,be.Z.condition.INFO,"info"),Ce),Ie=function(e){var t=Re[e.condition];return t?(0,Pe.jsx)(Te.Z,{icon:t,position:be.Z.position.SOLE}):De||(De=(0,Pe.jsx)("i",{children:"•"}))},Me=function(e){return(0,Pe.jsxs)(Ae,{condition:e.condition,children:[(0,Pe.jsx)(Ee,{children:Ie(e)}),e.label,O().Children.map(e.children,(function(e){return O().cloneElement(e)}))]})};Me.defaultProps={condition:be.Z.condition.BASE};const Ne={List:je,Item:Me};const Ze=function(e){if(!e.error)return null;var t=[];return Object.keys(e.error).forEach((function(n){t.push.apply(t,Oe()(e.error[n]))})),(0,Pe.jsx)(Ne.List,{children:t.map((function(e,t){return(0,Pe.jsx)(Ne.Item,{condition:"danger",label:e},t)}))})};var Be=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,p=e.hasValue,f=e.id,d=e.label,h=e.mandatory,m=e.mandatoryTitle,g=e.immutable,y=e.touched,v=e.signal,b=!g&&y&&l&&Object.keys(l).length>0,w="".concat(ye.Z.adjustedHTMLString(d)).concat(h&&m?", ".concat(m):""),O=v||function(e,t,n,r){return t?be.Z.condition.DANGER:e?be.Z.condition.INFO:n&&!r?be.Z.condition.WARNING:void 0}(c,b,h,p),x={__html:"".concat(ve.Z.sanitizeHtml(d)).concat(h?" *":"")},k=!s&&!g&&{htmlFor:f},_=u.Z.getEmbedType(),S=["admin","legacy-admin"].includes(_);return(0,Pe.jsx)(fe,{children:function(e){var u=e.getRef;return(0,Pe.jsx)(Be.T3,{children:(0,Pe.jsxs)(Be.QZ,{ref:u,label:d,isAdmin:S,children:[d&&(0,Pe.jsx)(Be.yr,Fe(Fe({},k),{},{hasValue:p,dirty:c,title:w,immutable:g,isDisplay:s,signal:O,isAdmin:S,children:t||(t=(0,Pe.jsx)("span",{dangerouslySetInnerHTML:x}))})),(0,Pe.jsxs)(Be.m9,{isAdmin:S,children:[n||(n=(0,Pe.jsx)(Be.if,{hasValue:p,immutable:g,isDisplay:s,signal:O,children:a})),b&&(r||(r=(0,Pe.jsx)(Be.gi,{children:(0,Pe.jsx)(Ze,{error:l})}))),i&&(o||(o=(0,Pe.jsx)(Be.Mp,{children:i})))]})]})})}})};var He=i(35997);const We=(0,p.ZP)((function(e){var t,n=e.message,r=e.intl;return n&&n.text?(0,Pe.jsx)(Ne.List,{children:(0,Pe.jsx)(Ne.Item,{condition:n.negative?"danger":"base",label:(t=n.text,r.formatMessage({id:t}))})}):null})),ze=We;var Ve,Ye=i(6479),qe=i.n(Ye),Ge=i(65035),Ke=i(7281),$e=i(88601),Xe=(0,x.ZP)(Ge.Z).withConfig({displayName:"StyledLoginButton"})(Ve||(Ve=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"])),Ke.Z.font(1.3),$e.Z.radii("buttonLarge")),Qe=["disabled","pending","label"];function Je(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 et=function(e){var t=e.disabled,r=e.pending,o=e.label,a=qe()(e,Qe);return(0,Pe.jsx)(Xe,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Je(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Je(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"},a))},tt=et;var nt=i(44012),rt=i(34206);const ot=function(e){var t=e.title,n=e.subtitle;return(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(rt.ZP.H5,{children:(0,Pe.jsx)(nt.Z,{id:t})}),n&&(0,Pe.jsx)(rt.ZP.P,{children:(0,Pe.jsx)(nt.Z,{id:n})})]})},at=ot;const it=function(e){var t=(0,w.useState)(!1),n=U()(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 ct,st,ut,lt,pt,ft,dt,ht=i(30759),mt=(0,x.iv)(ct||(ct=b()(["\n align-items: center;\n cursor: ",";\n display: flex;\n"])),(function(e){return e.immutable?"not-allowed":"default"})),gt=x.ZP.label.withConfig({displayName:"StyledEditableWrapper"})(st||(st=b()(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),mt),yt=(0,x.iv)(ut||(ut=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,ht.Z)({color:ke.FS.color("text")})}),ke.FS.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),vt=(0,x.iv)(lt||(lt=b()(["\n display: flex;\n align-items: center;\n"]))),bt=x.ZP.div.withConfig({displayName:"StyledEditableControl"})(pt||(pt=b()(["\n &&& {\n ","\n }\n"])),vt),wt=x.ZP.span.withConfig({displayName:"StyledEditableValue"})(ft||(ft=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"])),ke.FS.color("signal.danger")),Ot=i(58129);const xt=x.ZP.div.withConfig({displayName:"StyledButtonGroup"})(dt||(dt=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"])),Ot.Z);var kt,_t,St,Et,At,Pt=x.ZP.input.withConfig({displayName:"StyledLoginFormInput"})(kt||(kt=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: 0.7rem;\n padding-bottom: 0.7rem;\n }\n"])),yt),jt=x.ZP.div.withConfig({displayName:"StyledLoginFormInputWrapper"})(_t||(_t=b()(["\n &&& {\n ","\n }\n"])),mt),Ct=(0,x.ZP)(Ge.Z).withConfig({displayName:"StyledTransparentButton"})(St||(St=b()(["\n &&& {\n margin-right: 0;\n background-color: transparent;\n color: ",";\n padding: 1.25rem 0;\n width: 100%;\n justify-content: center;\n\n &:hover {\n background-color: transparent;\n }\n }\n"])),$e.Z.color("primary")),Dt=x.ZP.div.withConfig({displayName:"StyledLoginFormWrapper"})(Et||(Et=b()(["\n "," {\n margin-top: 1.8rem;\n width: auto;\n flex-direction: column;\n\n "," {\n flex-grow: 1;\n }\n }\n"])),xt,Ot.Z);function Tt(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 Rt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Tt(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const It=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,p=e.showTitle,f=e.username,d=e.entryPage,h=it(l),m=U()(h,2),g=m[0],y=m[1],v=it(u),b=U()(v,2),O=b[0],x=b[1],_=(0,w.useRef)(),E=d===k,A=function(e){return r.formatMessage({id:e})},P=He.Z.usePrevious(s),j=(0,w.useCallback)(function(){var e=L()(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,_.current.executeAsync();case 5:n=e.sent,_.current.reset();case 7:o(f,c,n);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[o,f,c,s]);(0,w.useEffect)((function(){s&&!P&&j()}),[s,P,j]);var C=!!f,D=!C;return(0,Pe.jsxs)(Dt,{children:[p&&(At||(At=(0,Pe.jsx)(at,{title:"client.login.form.title",subtitle:"client.login.form.introduction"}))),(0,Pe.jsxs)("form",{onSubmit:j,children:[(0,Pe.jsx)(Ue,{hasValue:!!f||g,id:"login-username",label:A("client.login.form.userPlaceholder"),immutable:E,children:(0,Pe.jsx)(jt,{children:(0,Pe.jsx)(Pt,Rt({autoFocus:D,name:"user","data-cy":"login-form_user-input",required:!0,type:"text",value:f,disabled:E,onFocus:function(e){return e.target.select()}},y))})}),(0,Pe.jsx)(Ue,{hasValue:!!c||O,id:"login-password",label:A("client.login.form.passwordPlaceholder"),children:(0,Pe.jsx)(jt,{children:(0,Pe.jsx)(Pt,Rt({autoFocus:C,name:"password","data-cy":"login-form_password-input",required:!0,type:"password",value:c,onFocus:function(e){return e.target.select()}},x))})}),(0,Pe.jsx)(ze,{message:i}),t&&s&&(0,Pe.jsx)(oe,{ref:_,badge:"bottomright",size:"invisible",sitekey:t,hl:r.locale}),(0,Pe.jsx)(tt,{disabled:a||""===f&&!g||""===c&&!O,label:A("client.login.form.button"),pending:a,"data-cy":"login-form_login-button"}),(0,Pe.jsx)(Ct,{label:A("client.login.form.forgotLink"),onClick:function(){return n(S)},"data-cy":"login-form_request-button"}),E&&(0,Pe.jsx)(Ct,{label:A("client.login.form.backLink"),onClick:function(){return n(k)}})]})]})};var Mt={changePage:M,setUsername:N,setPassword:Z,login:y};const Nt=(0,f.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}}),Mt)((0,p.ZP)(It));var Zt,Bt;const Lt=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=U()(s,2),l=u[0],p=u[1],f=t===k,d=function(e){return o.formatMessage({id:e})};return(0,Pe.jsxs)(Dt,{children:[a&&(Zt||(Zt=(0,Pe.jsx)(at,{title:"client.login.passwordRequest.title"}))),!f&&(Bt||(Bt=(0,Pe.jsx)(rt.ZP.P,{children:(0,Pe.jsx)(nt.Z,{id:"client.login.passwordRequest.introduction"})}))),(0,Pe.jsxs)("form",{onSubmit:function(e){e.preventDefault(),r(l)},children:[(0,Pe.jsx)(Ue,{hasValue:Boolean(l),id:"login-username",label:d("client.login.form.userPlaceholder"),immutable:f,children:(0,Pe.jsx)(jt,{children:(0,Pe.jsx)(Pt,{name:"user",onChange:function(e){p(e.target.value)},required:!0,type:"text",value:l,disabled:f,"data-cy":"password-request_input"})})}),(0,Pe.jsx)(tt,{disabled:!l||i,label:d("client.login.passwordRequest.button"),pending:i,"data-cy":"password-request_submit-button"}),(0,Pe.jsx)(Ct,{disabled:i,label:d("client.login.passwordRequest.abortButton"),name:"abort",onClick:function(){return c(_)},"data-cy":"password-request_abort-button"})]})]})};var Ft={changePage:M,requestPassword:function(e){return{type:m,payload:{username:e}}}};const Ut=(0,f.connect)((function(e){return{username:e.login.username,pending:e.loginForm.loginPending,entryPage:e.login.entryPage}}),Ft)((0,p.ZP)(Lt));var Ht="INITIALIZED",Wt="PasswordUpdateDialog/UPDATE_OLD_PASSWORD",zt="PasswordUpdateDialog/UPDATE_NEW_PASSWORD",Vt="PasswordUpdateDialog/SET_NEW_PASSWORD",Yt="PasswordUpdateDialog/SET_NEW_PASSWORD_VALIDATION_ERRORS",qt="PasswordUpdateDialog/UPDATE_NEW_PASSWORD_REPEAT",Gt="PasswordUpdateDialog/SAVE_PASSWORD",Kt="PasswordUpdateDialog/SAVE_PASSWORD_SUCCESS",$t="PasswordUpdateDialog/SAVE_PASSWORD_FAILURE",Xt="PasswordUpdateDialog/VALIDATE",Qt="PasswordUpdateDialog/RESET_PASSWORD_UPDATED_FAILED",Jt=function(e){return{type:Wt,payload:{oldPassword:e}}},en=function(e){return{type:Yt,payload:{errors:e}}},tn=function(e,t){return{type:$t,payload:{errorCode:e,validationMessages:t}}},nn="PasswordUpdateDialog/FETCH_VALIDATION_RULES",rn="PasswordUpdateDialog/SET_VALIDATION_RULES",on=i(35728),an={INVALID_CREDENTIALS:"client.login.passwordUpdate.invalidCredentials",UNEXPECTED_ERROR:"client.login.passwordUpdate.unexpectedError"};const cn=function(e){return(0,Pe.jsx)(Ne.List,{children:(0,Pe.jsx)(Ne.Item,{condition:be.Z.condition.DANGER,children:(0,Pe.jsx)(nt.Z,{id:(t=e.errorCode,an[t]||"client.login.passwordUpdate.failure")})})});var t};const sn=function(e){return(0,Pe.jsx)(Ne.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=be.Z.condition.DANGER:"string"==typeof a?(r=be.Z.condition.DANGER,o=a):r=be.Z.condition.SUCCESS}return(0,Pe.jsx)(Ne.Item,{condition:r,label:o},n)}))})},un=sn;var ln,pn,fn=x.ZP.input.attrs((function(e){return{type:"password"}})).withConfig({displayName:"StyledPasswordInput"})(ln||(ln=b()(["\n &&&& {\n ","\n }\n"])),yt),dn=x.ZP.div.withConfig({displayName:"StyledPasswordInputWrapper"})(pn||(pn=b()(["\n && {\n ","\n }\n"])),mt);const hn=function(e){return(0,Pe.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?be.Z.condition.SUCCESS:be.Z.condition.DANGER:null,children:(0,Pe.jsx)(dn,{immutable:!0===e.readOnly,children:(0,Pe.jsx)(fn,{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 mn;const gn=x.ZP.div(mn||(mn=b()(["\n "," {\n width: 100%;\n }\n"])),Ot.Z);var yn,vn,bn,wn,On;function xn(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 kn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xn(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var _n=x.ZP.div.withConfig({displayName:"StyledValidationRulesWrapper"})(yn||(yn=b()(["\n margin: 1rem;\n"])));const Sn=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,p=e.updateNewPasswordRepeat,f=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=L()(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)},y=function(e){return a.formatMessage({id:e})};if(!d)return vn||(vn=(0,Pe.jsx)(on.Z,{}));var v=i.passwordUpdatePending,b=!i.oldPassword&&s||i.passwordUpdatePending,O=!i.newPassword||i.passwordUpdatePending||i.newPasswordValidationErrors&&Object.keys(i.newPasswordValidationErrors).length>0;return(0,Pe.jsxs)(gn,{children:[u&&(bn||(bn=(0,Pe.jsx)(at,{title:"client.login.passwordUpdate.title"}))),r&&(wn||(wn=(0,Pe.jsx)(rt.ZP.P,{children:(0,Pe.jsx)(nt.Z,{id:"client.login.passwordUpdate.introduction"})}))),(0,Pe.jsxs)("form",{onSubmit:m,children:[!0===s&&(0,Pe.jsx)(hn,kn({tabIndex:1,label:y("client.login.passwordUpdate.oldPassword"),name:"oldPassword",value:i.oldPassword,onChange:f,readOnly:v,autoFocus:!0},i.passwordUpdateFailed&&"INVALID_CREDENTIALS"===i.passwordUpdateErrorCode&&{valid:!1})),(0,Pe.jsx)(hn,{tabIndex:2,label:y("client.login.passwordUpdate.newPassword"),name:"newPassword",value:i.newPassword,onChange:l,readOnly:b,autoFocus:!0!==s,valid:!O}),(0,Pe.jsx)(_n,{children:(0,Pe.jsx)(un,{rules:d,errors:i.newPasswordValidationErrors,rulesNeutral:!i.newPassword})}),(0,Pe.jsx)(hn,{tabIndex:3,label:y("client.login.passwordUpdate.newPasswordRepeat"),name:"newPasswordRepeat",value:i.newPasswordRepeat,onChange:p,readOnly:O,valid:g()}),i.newPasswordRepeat&&i.newPassword!==i.newPasswordRepeat&&(On||(On=(0,Pe.jsx)(Ne.List,{children:(0,Pe.jsx)(Ne.Item,{condition:"danger",label:(0,Pe.jsx)(nt.Z,{id:"client.login.passwordUpdate.noMatch"})})}))),!0===i.passwordUpdateFailed&&(0,Pe.jsx)(cn,{errorCode:i.passwordUpdateErrorCode}),(0,Pe.jsx)(tt,{pending:i.passwordUpdatePending,disabled:!1===g(),label:y("client.login.passwordUpdate.saveButton")}),t&&(0,Pe.jsx)(oe,{ref:h,badge:"bottomright",size:"invisible",sitekey:t,hl:a.locale})]})]})};var En={updateOldPassword:Jt,updateNewPassword:function(e){return{type:zt,payload:{newPassword:e}}},updateNewPasswordRepeat:function(e){return{type:qt,payload:{newPasswordRepeat:e}}},fetchValidationRules:function(){return{type:nn}},savePassword:function(e){return{type:Gt,payload:{captchaToken:e}}},initialized:function(){return{type:Ht}}};const An=(0,f.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}}),En)((0,p.ZP)(Sn));var Pn,jn,Cn,Dn,Tn,Rn,In=i(30604),Mn="two-factor-connector/INITIALIZE",Nn="two-factor-connector/SET_TWO_STEP_ACTIVE",Zn="two-factor-connector/SET_SECRET",Bn="two-factor-connector/SET_USER_NAME",Ln="two-factor-connector/REQUEST_SECRET",Fn="two-factor-connector/GO_TO_SECRET_VERIFICATION",Un="two-factor-connector/GO_TO_START",Hn="two-factor-connector/GO_TO_SECRET",Wn="two-factor-connector/VERIFY_CODE",zn="root/SUCCESS",Vn="root/SET_SETUP_SUCCESSFUL",Yn="root/GO_TO_RESULT",qn=function(){return{type:Mn}},Gn=function(e){return{type:Nn,payload:{twoFactorActive:e}}},Kn=function(e){return{type:Zn,payload:{secret:e}}},$n=function(e){return{type:Bn,payload:{username:e}}},Xn=function(){return{type:Un}},Qn=function(e){return{type:Vn,payload:{setupSuccessful:e}}},Jn=i(83324),er=x.ZP.div.withConfig({displayName:"StyledButtonWrapper"})(Pn||(Pn=b()(["\n display: flex;\n justify-content: flex-end;\n margin-top: ",";\n\n > "," {\n margin-right: 0;\n }\n"])),Ke.Z.space(.5),Ot.Z),tr=x.ZP.div.withConfig({displayName:"StyledMessageWrapper"})(jn||(jn=b()(["\n display: grid;\n grid-template-columns: 9% 1fr;\n grid-column-gap: ",";\n"])),Ke.Z.space(-.5)),nr=x.ZP.span.withConfig({displayName:"StyledIconWrapper"})(Cn||(Cn=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?ke.FS.color("signal.success"):ke.FS.color("signal.danger")}),Ke.Z.font(10)),rr=x.ZP.div.withConfig({displayName:"StyledTextWrapper"})(Dn||(Dn=b()(["\n display: flex;\n align-items: center;\n"])));const or=function(e){var t=e.success,n=e.goToStart,r=e.setupSuccessful,o=e.intl;(0,Jn.z)(t);var a=function(e){return o.formatMessage({id:e})};return r?(0,Pe.jsxs)(Pe.Fragment,{children:[Tn||(Tn=(0,Pe.jsxs)(tr,{children:[(0,Pe.jsx)(nr,{isSuccessful:!0,children:(0,Pe.jsx)(Te.Z,{icon:"check"})}),(0,Pe.jsx)(rr,{children:(0,Pe.jsx)(rt.ZP.P,{children:(0,Pe.jsx)(nt.Z,{id:"client.two-factor-connector.successfulText"})})})]})),(0,Pe.jsx)(er,{children:(0,Pe.jsx)(Ge.Z,{label:a("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:t})})]}):(0,Pe.jsxs)(Pe.Fragment,{children:[Rn||(Rn=(0,Pe.jsxs)(tr,{children:[(0,Pe.jsx)(nr,{isSuccessful:!1,children:(0,Pe.jsx)(Te.Z,{icon:"times"})}),(0,Pe.jsx)(rr,{children:(0,Pe.jsx)(rt.ZP.P,{children:(0,Pe.jsx)(nt.Z,{id:"client.two-factor-connector.errorText"})})})]})),(0,Pe.jsx)(er,{children:(0,Pe.jsx)(Ge.Z,{label:a("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:n})})]})};var ar={success:function(){return{type:zn}},goToStart:Xn};const ir=(0,f.connect)((function(e){return{setupSuccessful:e.twoFactorConnector.setupSuccessful}}),ar)((0,p.ZP)(or));var cr,sr=Object.defineProperty,ur=Object.getOwnPropertySymbols,lr=Object.prototype.hasOwnProperty,pr=Object.prototype.propertyIsEnumerable,fr=(e,t,n)=>t in e?sr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dr=(e,t)=>{for(var n in t||(t={}))lr.call(t,n)&&fr(e,n,t[n]);if(ur)for(var n of ur(t))pr.call(t,n)&&fr(e,n,t[n]);return e},hr=(e,t)=>{var n={};for(var r in e)lr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ur)for(var r of ur(e))t.indexOf(r)<0&&pr.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,p;for(l=o;;l++){const r=8*t.getNumDataCodewords(l,n),o=c.getTotalBits(e,l);if(o<=r){p=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&&p<=8*t.getNumDataCodewords(l,e)&&(n=e);let f=[];for(const t of e){r(t.mode.modeBits,4,f),r(t.numChars,t.mode.numCharCountBits(l),f);for(const e of t.getData())f.push(e)}a(f.length==p);const d=8*t.getNumDataCodewords(l,n);a(f.length<=d),r(0,Math.min(4,d-f.length),f),r(0,(8-f.length%8)%8,f),a(f.length%8==0);for(let e=236;f.length<d;e^=253)r(e,8,f);let h=[];for(;8*h.length<f.length;)h.push(0);return f.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 p=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,p);n<s&&o.push(0),l.push(o.concat(a))}let f=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,n)=>{(e!=u-i||n>=s)&&f.push(t[e])}));return a(f.length==c),f}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})(cr||(cr={})),(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={}))})(cr||(cr={})),(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={}))})(cr||(cr={}));var mr=cr,gr={L:mr.QrCode.Ecc.LOW,M:mr.QrCode.Ecc.MEDIUM,Q:mr.QrCode.Ecc.QUARTILE,H:mr.QrCode.Ecc.HIGH},yr=128,vr="L",br="#FFFFFF",wr="#000000",Or=!1;
|
|
53
53
|
/**
|
|
54
54
|
* @license qrcode.react
|
|
55
55
|
* Copyright (c) Paul O'Shannessy
|