tocco-widget-bundle 0.1.112 → 0.1.113

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.
@@ -53,4 +53,4 @@ object-assign
53
53
  *
54
54
  * This source code is licensed under the MIT license found in the
55
55
  * LICENSE file in the root directory of this source tree.
56
- */var r=n(1024),o=n(61688);var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,c=r.useRef,u=r.useEffect,s=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=s((function(){function e(e){if(!u){if(u=!0,a=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,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(a=e,c=n)}var a,c,u=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]}),[t,n,r,o]);var d=a(e,p[0],p[1]);return u((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:()=>s});const r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let o;const i=new Uint8Array(16);function a(){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(i)}const c=[];for(let e=0;e<256;++e)c.push((e+256).toString(16).slice(1));function u(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 s=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();const o=(e=e||{}).random||(e.rng||a)();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 u(o)}},2851:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r;(0,o.default)(e),"object"===i(t)?(n=t.min||0,r=t.max):(n=arguments[1],r=arguments[2]);var a=encodeURI(e).split(/%..|./).length-1;return a>=n&&(void 0===r||a<=r)};var r,o=(r=n(65571))&&r.__esModule?r:{default:r};function i(e){return i="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},i(e)}e.exports=t.default,e.exports.default=t.default},83868:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),(t=(0,o.default)(t,s)).require_display_name||t.allow_display_name){var n=e.match(l);if(n){var u=n[1];if(e=e.replace(u,"").replace(/(^<|>$)/g,""),u.endsWith(" ")&&(u=u.slice(0,-1)),!function(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;if(/[\.";<>]/.test(t)){if(t===e)return!1;if(!(t.split('"').length===t.split('\\"').length))return!1}return!0}(u))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>254)return!1;var g=e.split("@"),v=g.pop(),y=v.toLowerCase();if(t.host_blacklist.includes(y))return!1;if(t.host_whitelist.length>0&&!t.host_whitelist.includes(y))return!1;var b=g.join("@");if(t.domain_specific_validation&&("gmail.com"===y||"googlemail.com"===y)){var w=(b=b.toLowerCase()).split("+")[0];if(!(0,i.default)(w.replace(/\./g,""),{min:6,max:30}))return!1;for(var O=w.split("."),x=0;x<O.length;x++)if(!f.test(O[x]))return!1}if(!(!1!==t.ignore_max_length||(0,i.default)(b,{max:64})&&(0,i.default)(v,{max:254})))return!1;if(!(0,a.default)(v,{require_tld:t.require_tld,ignore_max_length:t.ignore_max_length})){if(!t.allow_ip_domain)return!1;if(!(0,c.default)(v)){if(!v.startsWith("[")||!v.endsWith("]"))return!1;var k=v.slice(1,-1);if(0===k.length||!(0,c.default)(k))return!1}}if('"'===b[0])return b=b.slice(1,b.length-1),t.allow_utf8_local_part?m.test(b):d.test(b);for(var _=t.allow_utf8_local_part?h:p,E=b.split("."),S=0;S<E.length;S++)if(!_.test(E[S]))return!1;if(t.blacklisted_chars&&-1!==b.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g")))return!1;return!0};var r=u(n(65571)),o=u(n(84808)),i=u(n(2851)),a=u(n(10221)),c=u(n(61028));function u(e){return e&&e.__esModule?e:{default:e}}var s={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},l=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,p=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,f=/^[a-z\d]+$/,d=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,h=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,m=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i;e.exports=t.default,e.exports.default=t.default},10221:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),(t=(0,o.default)(t,a)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var n=e.split("."),i=n[n.length-1];if(t.require_tld){if(n.length<2)return!1;if(!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(i))return!1;if(/\s/.test(i))return!1}if(!t.allow_numeric_tld&&/^\d+$/.test(i))return!1;return n.every((function(e){return!(e.length>63&&!t.ignore_max_length)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))}))};var r=i(n(65571)),o=i(n(84808));function i(e){return e&&e.__esModule?e:{default:e}}var a={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};e.exports=t.default,e.exports.default=t.default},61028:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,o.default)(t),!(n=String(n)))return e(t,4)||e(t,6);if("4"===n)return c.test(t);if("6"===n)return s.test(t);return!1};var r,o=(r=n(65571))&&r.__esModule?r:{default:r};var i="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",a="(".concat(i,"[.]){3}").concat(i),c=new RegExp("^".concat(a,"$")),u="(?:[0-9a-fA-F]{1,4})",s=new RegExp("^("+"(?:".concat(u,":){7}(?:").concat(u,"|:)|")+"(?:".concat(u,":){6}(?:").concat(a,"|:").concat(u,"|:)|")+"(?:".concat(u,":){5}(?::").concat(a,"|(:").concat(u,"){1,2}|:)|")+"(?:".concat(u,":){4}(?:(:").concat(u,"){0,1}:").concat(a,"|(:").concat(u,"){1,3}|:)|")+"(?:".concat(u,":){3}(?:(:").concat(u,"){0,2}:").concat(a,"|(:").concat(u,"){1,4}|:)|")+"(?:".concat(u,":){2}(?:(:").concat(u,"){0,3}:").concat(a,"|(:").concat(u,"){1,5}|:)|")+"(?:".concat(u,":){1}(?:(:").concat(u,"){0,4}:").concat(a,"|(:").concat(u,"){1,6}|:)|")+"(?::((?::".concat(u,"){0,5}:").concat(a,"|(?::").concat(u,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default},66823:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if((t=(0,a.default)(t,s)).validate_length&&e.length>=2083)return!1;if(!t.allow_fragments&&e.includes("#"))return!1;if(!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var n,c,f,d,h,m,g,v;if(g=e.split("#"),e=g.shift(),g=e.split("?"),e=g.shift(),(g=e.split("://")).length>1){if(n=g.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(n))return!1}else{if(t.require_protocol)return!1;if("//"===e.slice(0,2)){if(!t.allow_protocol_relative_urls)return!1;g[0]=e.slice(2)}}if(""===(e=g.join("://")))return!1;if(g=e.split("/"),""===(e=g.shift())&&!t.require_host)return!0;if((g=e.split("@")).length>1){if(t.disallow_auth)return!1;if(""===g[0])return!1;if((c=g.shift()).indexOf(":")>=0&&c.split(":").length>2)return!1;var y=c.split(":"),b=(k=2,function(e){if(Array.isArray(e))return e}(x=y)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(x,k)||function(e,t){if(e){if("string"==typeof e)return u(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)?u(e,t):void 0}}(x,k)||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.")}()),w=b[0],O=b[1];if(""===w&&""===O)return!1}var x,k;d=g.join("@"),m=null,v=null;var _=d.match(l);_?(f="",v=_[1],m=_[2]||null):(g=d.split(":"),f=g.shift(),g.length&&(m=g.join(":")));if(null!==m&&m.length>0){if(h=parseInt(m,10),!/^[0-9]+$/.test(m)||h<=0||h>65535)return!1}else if(t.require_port)return!1;if(t.host_whitelist)return p(f,t.host_whitelist);if(""===f&&!t.require_host)return!0;if(!((0,i.default)(f)||(0,o.default)(f,t)||v&&(0,i.default)(v,6)))return!1;if(f=f||v,t.host_blacklist&&p(f,t.host_blacklist))return!1;return!0};var r=c(n(65571)),o=c(n(10221)),i=c(n(61028)),a=c(n(84808));function c(e){return e&&e.__esModule?e:{default:e}}function u(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}var s={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},l=/^\[([^\]]+)\](?::([0-9]+))?$/;function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(e===r||(o=r,"[object RegExp]"===Object.prototype.toString.call(o)&&r.test(e)))return!0}var o;return!1}e.exports=t.default,e.exports.default=t.default},65571:(e,t)=>{"use strict";function n(e){return n="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},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!("string"==typeof e||e instanceof String)){var t=n(e);throw null===e?t="null":"object"===t&&(t=e.constructor.name),new TypeError("Expected a string but received a ".concat(t))}},e.exports=t.default,e.exports.default=t.default},84808:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)void 0===e[n]&&(e[n]=t[n]);return e},e.exports=t.default,e.exports.default=t.default},54545:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var 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};const o=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));var o=void 0===t?"undefined":r(t);if(o!==(void 0===n?"undefined":r(n)))return!1;if("object"===o){var i=t.valueOf(),a=n.valueOf();if(i!==t||a!==n)return e(i,a);var c=Object.keys(t),u=Object.keys(n);return c.length===u.length&&c.every((function(r){return e(t[r],n[r])}))}return!1}},30670:e=>{"use strict";e.exports=function(){}},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})},1165:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(31599);function o(e){if(Array.isArray(e))return(0,r.Z)(e)}},57693:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>r})},84311:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:()=>r})},51144:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{Z:()=>o})},39068:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(40477),o=n(56158),i=n(82884);function a(e){var t=(0,o.Z)();return function(){var n,o=(0,r.Z)(e);if(t){var a=(0,r.Z)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return(0,i.Z)(this,n)}}},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})},40477:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:()=>r})},49027:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(73757);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.Z)(e,t)}},56158:(e,t,n)=>{"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{Z:()=>r})},96092:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:()=>r})},24328:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:()=>r})},33417:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});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 i(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={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},82884:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(62360),o=n(57693);function i(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},73757:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}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,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(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.")}()}},86578:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(1165),o=n(96092),i=n(78001),a=n(24328);function c(e){return(0,r.Z)(e)||(0,o.Z)(e)||(0,i.Z)(e)||(0,a.Z)()}},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}}}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,a),n.loaded=!0,n.exports}a.m=o,a.amdD=function(){throw new Error("define cannot be used indirect")},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[])),a.u=e=>885===e?"chunk-ckeditor.f485d9d93075327af074.js":"chunk-"+({85:"code-editor",107:"actions",141:"docs-actions",198:"vendor-fontawesome",614:"vendor-icons",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"db1126e5f72da427d1ea",107:"11ff8fab03dd306a2631",141:"d06f244121522568aae5",186:"f9455e9baa2e3b9e8470",198:"428fb8a2ead9aced75bc",240:"790acdc302979275135b",378:"63fa4ae0b8a17359e11e",560:"921a930bee3a737bee5c",608:"3f5c2d9d74c51e74c5b0",614:"987afa66953693f91b95",759:"3e178a7310a92d3020c3",817:"2b608f431339a863492a",877:"ee24f52222afe086ba7e"}[e]+".js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.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),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="tocco-:",a.l=(e,t,o,i)=>{if(n[e])n[e].push(t);else{var c,u;if(void 0!==o)for(var s=document.getElementsByTagName("script"),l=0;l<s.length;l++){var p=s[l];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==r+o){c=p;break}}c||(u=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,a.nc&&c.setAttribute("nonce",a.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),u&&document.head.appendChild(c)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),a.j=104,a.p="/",(()=>{var e={104:0};a.f.j=(t,n)=>{var r=a.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 i=a.p+a.u(t),c=new Error;a.l(i,(n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",c.name="ChunkLoadError",c.type=o,c.request=i,r[1](c)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,c,u]=n,s=0;if(i.some((t=>0!==e[t]))){for(r in c)a.o(c,r)&&(a.m[r]=c[r]);if(u)u(a)}for(t&&t(n);s<i.length;s++)o=i[s],a.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))})(),a.nc=void 0;var c={};return(()=>{"use strict";a.r(c),a.d(c,{app:()=>ot});var e,t=a(6966),n=a(59713),r=a.n(n),o=a(45697),i=a.n(o),u=a(19241),s=a(81749),l=a(65378),p=a(23369),f=a(74806),d=a(50558),h=a(63038),m=a.n(h),g=a(1024),v=a.n(g),y=a(52540),b=a(83682),w=a(41609),O=a.n(w),x=a(18446),k=a.n(x),_=a(35937),E=a.n(_),S=a(56746),j=a(50600),P=a(87533),A=a(19743),C=a(82910),D=a(30604),T=a(35997),R=a(47369),I="SET_ENTITY_NAME",Z="SET_FORM_BASE",M="SET_SCROLL_BEHAVIOUR",N="root/SET_APP_ID",F=function(e){return{type:Z,payload:{formBase:e}}},B=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return R.Z.getDispatchActions(e,L,t)},L=[{name:"entityName",action:function(e){return{type:I,payload:{entityName:e}}},mandatory:!0,argsFactory:function(e){return[e.entityName]}},{name:"entityName",action:F,argsFactory:function(e){return[e.formBase||e.entityName]}},{name:"formBase",action:F,argsFactory:function(e){return[e.formBase]}},{name:"scrollBehaviour",action:function(e){return{type:M,payload:{scrollBehaviour:e}}},argsFactory:function(e){return[e.scrollBehaviour]}},{name:"id",action:function(e){return{type:N,payload:{appId:e}}},argsFactory:function(e){return[e.id||(new Date).valueOf()]}}],H=a(58267),U=a(87757),W=a.n(U),V=a(34857),z=a(81770),q=a(6766),Y=(e={},r()(e,q.zg,z.Z.singleTransferReducer("formTouched")),r()(e,q.zJ,z.Z.singleTransferReducer("detailParams")),e),G={detailParams:void 0,formTouched:!1};var K=a(81719);function $(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 X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Q=function(e){var t={};return e.fields.forEach((function(e){t[e.fieldName]=X({},e)})),e.relations.forEach((function(e){t[e.relationName]=X({type:"relation"},e)})),t};function J(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Q;return W().mark((function n(){var r;return W().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,V.RE)(K.Z.requestSaga,"entities/".concat(e,"/model"));case 2:return r=n.sent,n.next=5,(0,V.RE)(t,r.body);case 5:return n.abrupt("return",n.sent);case 6:case"end":return n.stop()}}),n)}))()}var ee={CREATE:"create",UPDATE:"update"};const te=function(e){return void 0===e?ee.CREATE:ee.UPDATE};const ne=function(e){var t=e.split("/").filter((function(e){return!!e})),n=t[t.length-1],r=t.filter((function(e,t){return t>1&&t%2==0}));if(isNaN(n)){return{modelPaths:r,entityId:undefined,parentUrl:"/"+t.slice(0,-1).join("/")}}return{modelPaths:r,entityId:t[t.length-1],parentUrl:"/"+t.slice(0,-2).join("/")}};const re=function(e,t){return 0!==t.length||(!e||isNaN(e))};var oe=W().mark(se),ie=W().mark(le),ae=W().mark(fe),ce=function(e){return e.entityBrowser},ue=function(e){return e.input};function se(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.$6)([(0,V.Fm)(q.tQ,pe),(0,V.Fm)(q.eI,le)]);case 2:case"end":return e.stop()}}),oe)}function le(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.gz)(q.Ek(void 0));case 2:case"end":return e.stop()}}),ie)}function pe(e){var t=e.payload;return W().mark((function e(){var n,r,o,i,a,c,u,s,l,p,f,d,h,m;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.RE)(ne,t.url);case 2:return n=e.sent,r=n.modelPaths,o=n.entityId,i=n.parentUrl,e.next=8,(0,V.Ys)(ce);case 8:return a=e.sent,c=a.entityName,u=a.formBase,e.next=13,(0,V.RE)(te,o);case 13:if(s=e.sent,l=c,p=u,!(r&&r.length>0)){e.next=21;break}return e.next=19,(0,V.RE)(fe,c,r);case 19:l=e.sent,p="".concat(u,"_").concat(l);case 21:return e.next=23,(0,V.Ys)(ue);case 23:return f=e.sent,d=f.initialKey,e.next=27,(0,V.RE)(re,d,r);case 27:return h=e.sent,m={mode:s,entityId:o,entityName:l,formName:p,parentUrl:i,showBackButton:h},e.next=31,(0,V.gz)(q.Ek(m));case 31:case"end":return e.stop()}}),e)}))()}function fe(e,t){var n,r,o,i,a;return W().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return n=e,c.next=3,(0,V.RE)(J,n);case 3:r=c.sent,o=0;case 5:if(!(o<t.length)){c.next=18;break}if(i=t[o],a=r[i]){c.next=10;break}throw new Error("No such path '".concat(i,"' found on entity model '").concat(n,"'"));case 10:if(n=a.targetEntity,!(o+1<t.length)){c.next=15;break}return c.next=14,(0,V.RE)(J,n);case 14:r=c.sent;case 15:o++,c.next=5;break;case 18:return c.abrupt("return",n);case 19:case"end":return c.stop()}}),ae)}var de=W().mark(he);function he(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.$6)([(0,V.rM)(se)]);case 2:case"end":return e.stop()}}),de)}const me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:G,t=arguments.length>1?arguments[1]:void 0,n=Y[t.type];return n?n(e,t):e};var ge;function ve(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 ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var be=(ge={},r()(ge,I,z.Z.singleTransferReducer("entityName")),r()(ge,Z,(function(e,t){var n=t.payload.formBase;return n?ye(ye({},e),{},{formBase:n}):ye({},e)})),r()(ge,M,z.Z.singleTransferReducer("scrollBehaviour")),r()(ge,N,z.Z.singleTransferReducer("appId")),ge),we={entityName:"",formBase:"",scrollBehaviour:"none",appId:""};var Oe=W().mark(ke),xe=W().mark(_e);function ke(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.$6)([(0,V.RE)(_e)]);case 2:case"end":return e.stop()}}),Oe)}function _e(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.qn)(t.Z.INPUT_INITIALIZED);case 2:return e.next=4,(0,V.gz)(C.Z.doSessionCheck());case 4:case"end":return e.stop()}}),xe)}var Ee=W().mark(Se);function Se(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.$6)([(0,V.rM)(ke)]);case 2:case"end":return e.stop()}}),Ee)}const je=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:we,t=arguments.length>1?arguments[1]:void 0,n=be[t.type];return n?n(e,t):e},Pe={detail:me,form:H.Z,entityBrowser:je};var Ae,Ce,De=[Se,he],Te=a(85893);function Re(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 Ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ze="entity-browser",Me=["onVisibilityStatusChange"],Ne=v().lazy((function(){return Promise.all([a.e(186),a.e(141),a.e(240),a.e(378),a.e(614)]).then(a.bind(a,83432))})),Fe=function(){return Ae||(Ae=(0,Te.jsx)(g.Suspense,{fallback:"",children:(0,Te.jsx)(Ne,{})}))},Be=function(e,n,r,o){n=Ie(Ie({},n),{},{id:e}),p.Z.setInputEnvs(n);var i=t.Z.createStore(Pe,De,n,Ze);u.Z.addToStore(i,(function(e){return t.Z.getEvents(Me,e.input)})),j.Z.addToStore(i),P.Z.dynamicActionsAddToStore(i),A.Z.addToStore(i,!0,["console","remote","notification"]),D.Z.addToStore(i,!0),C.Z.addToStore(i);var a=function(e,t){return(t?b.Z:y.Z)({getUserConfirmation:function(t,n){var r,o,i=(r=e.getState(),o="client.common.ok",r.intl.messages[o]||o),a=D.Z.confirm("",t,i,(function(){return n(!0)}),(function(){return n(!1)}));e.dispatch(a)}})}(i,n.memoryHistory);!function(e,t){var n=t.initialKey;if(n&&!isNaN(n)&&!e.location.pathname.match(/\/detail\/[0-9]*/)){var r="/detail/".concat(t.initialKey);e.push(r)}}(a,n);var c=(0,Te.jsx)(S.F0,{history:a,children:Ce||(Ce=(0,Te.jsx)(Fe,{}))});return t.Z.createApp(Ze,c,i,{input:n,actions:B(n),publicPath:o,textResourceModules:["component","common","actions","entity-list","entity-detail"]})},Le=function(e){var n=t.Z.useApp({initApp:Be,props:e,packageName:Ze}),r=n.component,o=n.store,i=T.Z.usePrevious(e);return T.Z.useDidUpdate((function(){var t=E()(e,(function(e,t){return!k()(e,i[t])}));O()(t)||B(t,!1).forEach((function(e){o.dispatch(e)}))}),[e]),r};Le.propTypes=Ie({entityName:i().string.isRequired,searchFormType:s.b,formBase:i().string,limit:i().number,preselectedSearchFields:i().array,searchFilters:i().arrayOf(i().string),simpleSearchFields:i().string,initialKey:i().string,businessUnit:i().string,memoryHistory:i().bool,backendUrl:i().string,scrollBehaviour:i().string,appContext:l.Z.propTypes,modifyFormDefinition:i().func,disableDetailView:i().bool,reportIds:i().arrayOf(i().string),customActionEventHandlers:i().objectOf(i().objectOf(i().func))},u.Z.createPropTypes(Me));const He=Le;t.Z.createBundleableApp(Ze,Be,Le);var Ue="success",We=a(96316),Ve=a(94736),ze=W().mark(qe);function qe(e,t){var n,r,o,i,a,c;return W().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:if(n=t.entityId,r=t.entityName,!n||"Event"!==r){u.next=11;break}return u.next=4,(0,V.RE)(Ve.Z.eventRegistration.getEventRelationshipModulesQuery,n);case 4:return o=u.sent,i=o.query,a=o.entityName,u.next=9,(0,V.RE)(K.Z.fetchEntityCount,a,i);case 9:return c=u.sent,u.abrupt("return",c>0?e:We.Z.removeBoxes(e,["modules"]));case 11:return u.abrupt("return",e);case 12:case"end":return u.stop()}}),ze)}const Ye=function(e){var t=e.formBase,n=e.searchFormType,r=e.reportIds,o=e.searchFilters,i=e.limit,a=e.backendUrl,c=e.businessUnit,u=e.appContext,s=e.fireVisibilityStatusChangeEvent,l=e.onVisibilityStatusChange,p=(0,g.useState)(!1),f=m()(p,2),d=f[0],h=f[1];return!d&&(0,Te.jsx)(He,{entityName:"Event",formBase:t,searchFilters:o,limit:i,backendUrl:a,businessUnit:c,appContext:u,reportIds:r,searchFormType:n,customActionEventHandlers:{"event-registration-action":{onSuccess:function(){s([Ue]),h(!0)}}},onVisibilityStatusChange:l,modifyFormDefinition:qe})};var Ge={fireVisibilityStatusChangeEvent:u.Z.fireVisibilityStatusChangeEvent};const Ke=(0,d.connect)((function(e){return{formBase:e.input.formBase,searchFormType:e.input.searchFormType,searchFilters:e.input.searchFilters,limit:e.input.limit,backendUrl:e.input.backendUrl,businessUnit:e.input.businessUnit,appContext:e.input.appContext,reportIds:e.input.reportIds,onVisibilityStatusChange:e.input.onVisibilityStatusChange}}),Ge)((0,f.ZP)(Ye)),$e={};var Xe,Qe=[];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}var et="event-registration",tt=["onVisibilityStatusChange"],nt=function(e,n,r,o){p.Z.setInputEnvs(n);var i=Xe||(Xe=(0,Te.jsx)(Ke,{})),a=t.Z.createStore($e,Qe,n,et);return u.Z.addToStore(a,(function(e){return t.Z.getEvents(tt,e.input)})),t.Z.createApp(et,i,a,{input:n,events:r,actions:[],publicPath:o,textResourceModules:["component","common",et]})},rt=function(e){return t.Z.useApp({initApp:nt,props:e,packageName:et}).component};rt.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Je(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({formBase:i().string.isRequired,searchFormType:s.b,reportIds:i().arrayOf(i().string).isRequired,searchFilters:i().arrayOf(i().string),limit:i().number,intl:i().object.isRequired,backendUrl:i().string,businessUnit:i().string,appContext:l.Z.propTypes.isRequired},u.Z.createPropTypes(tt));var ot=t.Z.createBundleableApp(et,nt,rt);t.Z.registerAppInRegistry(ot.name,ot.init)})(),c})()));
56
+ */var r=n(1024),o=n(61688);var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,c=r.useRef,u=r.useEffect,s=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=s((function(){function e(e){if(!u){if(u=!0,a=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,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(a=e,c=n)}var a,c,u=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]}),[t,n,r,o]);var d=a(e,p[0],p[1]);return u((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:()=>s});const r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let o;const i=new Uint8Array(16);function a(){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(i)}const c=[];for(let e=0;e<256;++e)c.push((e+256).toString(16).slice(1));function u(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 s=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();const o=(e=e||{}).random||(e.rng||a)();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 u(o)}},2851:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r;(0,o.default)(e),"object"===i(t)?(n=t.min||0,r=t.max):(n=arguments[1],r=arguments[2]);var a=encodeURI(e).split(/%..|./).length-1;return a>=n&&(void 0===r||a<=r)};var r,o=(r=n(65571))&&r.__esModule?r:{default:r};function i(e){return i="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},i(e)}e.exports=t.default,e.exports.default=t.default},83868:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),(t=(0,o.default)(t,s)).require_display_name||t.allow_display_name){var n=e.match(l);if(n){var u=n[1];if(e=e.replace(u,"").replace(/(^<|>$)/g,""),u.endsWith(" ")&&(u=u.slice(0,-1)),!function(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;if(/[\.";<>]/.test(t)){if(t===e)return!1;if(!(t.split('"').length===t.split('\\"').length))return!1}return!0}(u))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>254)return!1;var g=e.split("@"),v=g.pop(),y=v.toLowerCase();if(t.host_blacklist.includes(y))return!1;if(t.host_whitelist.length>0&&!t.host_whitelist.includes(y))return!1;var b=g.join("@");if(t.domain_specific_validation&&("gmail.com"===y||"googlemail.com"===y)){var w=(b=b.toLowerCase()).split("+")[0];if(!(0,i.default)(w.replace(/\./g,""),{min:6,max:30}))return!1;for(var O=w.split("."),x=0;x<O.length;x++)if(!f.test(O[x]))return!1}if(!(!1!==t.ignore_max_length||(0,i.default)(b,{max:64})&&(0,i.default)(v,{max:254})))return!1;if(!(0,a.default)(v,{require_tld:t.require_tld,ignore_max_length:t.ignore_max_length})){if(!t.allow_ip_domain)return!1;if(!(0,c.default)(v)){if(!v.startsWith("[")||!v.endsWith("]"))return!1;var k=v.slice(1,-1);if(0===k.length||!(0,c.default)(k))return!1}}if('"'===b[0])return b=b.slice(1,b.length-1),t.allow_utf8_local_part?m.test(b):d.test(b);for(var _=t.allow_utf8_local_part?h:p,E=b.split("."),S=0;S<E.length;S++)if(!_.test(E[S]))return!1;if(t.blacklisted_chars&&-1!==b.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g")))return!1;return!0};var r=u(n(65571)),o=u(n(84808)),i=u(n(2851)),a=u(n(10221)),c=u(n(61028));function u(e){return e&&e.__esModule?e:{default:e}}var s={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},l=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,p=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,f=/^[a-z\d]+$/,d=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,h=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,m=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i;e.exports=t.default,e.exports.default=t.default},10221:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),(t=(0,o.default)(t,a)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var n=e.split("."),i=n[n.length-1];if(t.require_tld){if(n.length<2)return!1;if(!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(i))return!1;if(/\s/.test(i))return!1}if(!t.allow_numeric_tld&&/^\d+$/.test(i))return!1;return n.every((function(e){return!(e.length>63&&!t.ignore_max_length)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))}))};var r=i(n(65571)),o=i(n(84808));function i(e){return e&&e.__esModule?e:{default:e}}var a={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};e.exports=t.default,e.exports.default=t.default},61028:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,o.default)(t),!(n=String(n)))return e(t,4)||e(t,6);if("4"===n)return c.test(t);if("6"===n)return s.test(t);return!1};var r,o=(r=n(65571))&&r.__esModule?r:{default:r};var i="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",a="(".concat(i,"[.]){3}").concat(i),c=new RegExp("^".concat(a,"$")),u="(?:[0-9a-fA-F]{1,4})",s=new RegExp("^("+"(?:".concat(u,":){7}(?:").concat(u,"|:)|")+"(?:".concat(u,":){6}(?:").concat(a,"|:").concat(u,"|:)|")+"(?:".concat(u,":){5}(?::").concat(a,"|(:").concat(u,"){1,2}|:)|")+"(?:".concat(u,":){4}(?:(:").concat(u,"){0,1}:").concat(a,"|(:").concat(u,"){1,3}|:)|")+"(?:".concat(u,":){3}(?:(:").concat(u,"){0,2}:").concat(a,"|(:").concat(u,"){1,4}|:)|")+"(?:".concat(u,":){2}(?:(:").concat(u,"){0,3}:").concat(a,"|(:").concat(u,"){1,5}|:)|")+"(?:".concat(u,":){1}(?:(:").concat(u,"){0,4}:").concat(a,"|(:").concat(u,"){1,6}|:)|")+"(?::((?::".concat(u,"){0,5}:").concat(a,"|(?::").concat(u,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default},66823:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if((t=(0,a.default)(t,s)).validate_length&&e.length>=2083)return!1;if(!t.allow_fragments&&e.includes("#"))return!1;if(!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var n,c,f,d,h,m,g,v;if(g=e.split("#"),e=g.shift(),g=e.split("?"),e=g.shift(),(g=e.split("://")).length>1){if(n=g.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(n))return!1}else{if(t.require_protocol)return!1;if("//"===e.slice(0,2)){if(!t.allow_protocol_relative_urls)return!1;g[0]=e.slice(2)}}if(""===(e=g.join("://")))return!1;if(g=e.split("/"),""===(e=g.shift())&&!t.require_host)return!0;if((g=e.split("@")).length>1){if(t.disallow_auth)return!1;if(""===g[0])return!1;if((c=g.shift()).indexOf(":")>=0&&c.split(":").length>2)return!1;var y=c.split(":"),b=(k=2,function(e){if(Array.isArray(e))return e}(x=y)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(x,k)||function(e,t){if(e){if("string"==typeof e)return u(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)?u(e,t):void 0}}(x,k)||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.")}()),w=b[0],O=b[1];if(""===w&&""===O)return!1}var x,k;d=g.join("@"),m=null,v=null;var _=d.match(l);_?(f="",v=_[1],m=_[2]||null):(g=d.split(":"),f=g.shift(),g.length&&(m=g.join(":")));if(null!==m&&m.length>0){if(h=parseInt(m,10),!/^[0-9]+$/.test(m)||h<=0||h>65535)return!1}else if(t.require_port)return!1;if(t.host_whitelist)return p(f,t.host_whitelist);if(""===f&&!t.require_host)return!0;if(!((0,i.default)(f)||(0,o.default)(f,t)||v&&(0,i.default)(v,6)))return!1;if(f=f||v,t.host_blacklist&&p(f,t.host_blacklist))return!1;return!0};var r=c(n(65571)),o=c(n(10221)),i=c(n(61028)),a=c(n(84808));function c(e){return e&&e.__esModule?e:{default:e}}function u(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}var s={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},l=/^\[([^\]]+)\](?::([0-9]+))?$/;function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(e===r||(o=r,"[object RegExp]"===Object.prototype.toString.call(o)&&r.test(e)))return!0}var o;return!1}e.exports=t.default,e.exports.default=t.default},65571:(e,t)=>{"use strict";function n(e){return n="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},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!("string"==typeof e||e instanceof String)){var t=n(e);throw null===e?t="null":"object"===t&&(t=e.constructor.name),new TypeError("Expected a string but received a ".concat(t))}},e.exports=t.default,e.exports.default=t.default},84808:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)void 0===e[n]&&(e[n]=t[n]);return e},e.exports=t.default,e.exports.default=t.default},54545:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var 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};const o=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));var o=void 0===t?"undefined":r(t);if(o!==(void 0===n?"undefined":r(n)))return!1;if("object"===o){var i=t.valueOf(),a=n.valueOf();if(i!==t||a!==n)return e(i,a);var c=Object.keys(t),u=Object.keys(n);return c.length===u.length&&c.every((function(r){return e(t[r],n[r])}))}return!1}},30670:e=>{"use strict";e.exports=function(){}},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})},1165:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(31599);function o(e){if(Array.isArray(e))return(0,r.Z)(e)}},57693:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>r})},84311:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:()=>r})},51144:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{Z:()=>o})},39068:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(40477),o=n(56158),i=n(82884);function a(e){var t=(0,o.Z)();return function(){var n,o=(0,r.Z)(e);if(t){var a=(0,r.Z)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return(0,i.Z)(this,n)}}},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})},40477:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:()=>r})},49027:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(73757);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.Z)(e,t)}},56158:(e,t,n)=>{"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{Z:()=>r})},96092:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:()=>r})},24328:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:()=>r})},33417:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});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 i(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={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},82884:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(62360),o=n(57693);function i(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},73757:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}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,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(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.")}()}},86578:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(1165),o=n(96092),i=n(78001),a=n(24328);function c(e){return(0,r.Z)(e)||(0,o.Z)(e)||(0,i.Z)(e)||(0,a.Z)()}},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}}}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,a),n.loaded=!0,n.exports}a.m=o,a.amdD=function(){throw new Error("define cannot be used indirect")},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[])),a.u=e=>885===e?"chunk-ckeditor.f485d9d93075327af074.js":"chunk-"+({85:"code-editor",107:"actions",141:"docs-actions",198:"vendor-fontawesome",614:"vendor-icons",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"db1126e5f72da427d1ea",107:"11ff8fab03dd306a2631",141:"d06f244121522568aae5",186:"f9455e9baa2e3b9e8470",198:"428fb8a2ead9aced75bc",240:"716465bd523677e43285",378:"63fa4ae0b8a17359e11e",560:"921a930bee3a737bee5c",608:"3f5c2d9d74c51e74c5b0",614:"d5dcafaa8f36f73a7bb4",759:"3e178a7310a92d3020c3",817:"2b608f431339a863492a",877:"ee24f52222afe086ba7e"}[e]+".js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.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),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="tocco-:",a.l=(e,t,o,i)=>{if(n[e])n[e].push(t);else{var c,u;if(void 0!==o)for(var s=document.getElementsByTagName("script"),l=0;l<s.length;l++){var p=s[l];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==r+o){c=p;break}}c||(u=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,a.nc&&c.setAttribute("nonce",a.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),u&&document.head.appendChild(c)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),a.j=104,a.p="/",(()=>{var e={104:0};a.f.j=(t,n)=>{var r=a.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 i=a.p+a.u(t),c=new Error;a.l(i,(n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",c.name="ChunkLoadError",c.type=o,c.request=i,r[1](c)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,c,u]=n,s=0;if(i.some((t=>0!==e[t]))){for(r in c)a.o(c,r)&&(a.m[r]=c[r]);if(u)u(a)}for(t&&t(n);s<i.length;s++)o=i[s],a.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))})(),a.nc=void 0;var c={};return(()=>{"use strict";a.r(c),a.d(c,{app:()=>ot});var e,t=a(6966),n=a(59713),r=a.n(n),o=a(45697),i=a.n(o),u=a(19241),s=a(81749),l=a(65378),p=a(23369),f=a(74806),d=a(50558),h=a(63038),m=a.n(h),g=a(1024),v=a.n(g),y=a(52540),b=a(83682),w=a(41609),O=a.n(w),x=a(18446),k=a.n(x),_=a(35937),E=a.n(_),S=a(56746),j=a(50600),P=a(87533),A=a(19743),C=a(82910),D=a(30604),T=a(35997),R=a(47369),I="SET_ENTITY_NAME",Z="SET_FORM_BASE",M="SET_SCROLL_BEHAVIOUR",N="root/SET_APP_ID",F=function(e){return{type:Z,payload:{formBase:e}}},B=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return R.Z.getDispatchActions(e,L,t)},L=[{name:"entityName",action:function(e){return{type:I,payload:{entityName:e}}},mandatory:!0,argsFactory:function(e){return[e.entityName]}},{name:"entityName",action:F,argsFactory:function(e){return[e.formBase||e.entityName]}},{name:"formBase",action:F,argsFactory:function(e){return[e.formBase]}},{name:"scrollBehaviour",action:function(e){return{type:M,payload:{scrollBehaviour:e}}},argsFactory:function(e){return[e.scrollBehaviour]}},{name:"id",action:function(e){return{type:N,payload:{appId:e}}},argsFactory:function(e){return[e.id||(new Date).valueOf()]}}],H=a(58267),U=a(87757),W=a.n(U),V=a(34857),z=a(81770),q=a(6766),Y=(e={},r()(e,q.zg,z.Z.singleTransferReducer("formTouched")),r()(e,q.zJ,z.Z.singleTransferReducer("detailParams")),e),G={detailParams:void 0,formTouched:!1};var K=a(81719);function $(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 X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Q=function(e){var t={};return e.fields.forEach((function(e){t[e.fieldName]=X({},e)})),e.relations.forEach((function(e){t[e.relationName]=X({type:"relation"},e)})),t};function J(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Q;return W().mark((function n(){var r;return W().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,V.RE)(K.Z.requestSaga,"entities/".concat(e,"/model"));case 2:return r=n.sent,n.next=5,(0,V.RE)(t,r.body);case 5:return n.abrupt("return",n.sent);case 6:case"end":return n.stop()}}),n)}))()}var ee={CREATE:"create",UPDATE:"update"};const te=function(e){return void 0===e?ee.CREATE:ee.UPDATE};const ne=function(e){var t=e.split("/").filter((function(e){return!!e})),n=t[t.length-1],r=t.filter((function(e,t){return t>1&&t%2==0}));if(isNaN(n)){return{modelPaths:r,entityId:undefined,parentUrl:"/"+t.slice(0,-1).join("/")}}return{modelPaths:r,entityId:t[t.length-1],parentUrl:"/"+t.slice(0,-2).join("/")}};const re=function(e,t){return 0!==t.length||(!e||isNaN(e))};var oe=W().mark(se),ie=W().mark(le),ae=W().mark(fe),ce=function(e){return e.entityBrowser},ue=function(e){return e.input};function se(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.$6)([(0,V.Fm)(q.tQ,pe),(0,V.Fm)(q.eI,le)]);case 2:case"end":return e.stop()}}),oe)}function le(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.gz)(q.Ek(void 0));case 2:case"end":return e.stop()}}),ie)}function pe(e){var t=e.payload;return W().mark((function e(){var n,r,o,i,a,c,u,s,l,p,f,d,h,m;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.RE)(ne,t.url);case 2:return n=e.sent,r=n.modelPaths,o=n.entityId,i=n.parentUrl,e.next=8,(0,V.Ys)(ce);case 8:return a=e.sent,c=a.entityName,u=a.formBase,e.next=13,(0,V.RE)(te,o);case 13:if(s=e.sent,l=c,p=u,!(r&&r.length>0)){e.next=21;break}return e.next=19,(0,V.RE)(fe,c,r);case 19:l=e.sent,p="".concat(u,"_").concat(l);case 21:return e.next=23,(0,V.Ys)(ue);case 23:return f=e.sent,d=f.initialKey,e.next=27,(0,V.RE)(re,d,r);case 27:return h=e.sent,m={mode:s,entityId:o,entityName:l,formName:p,parentUrl:i,showBackButton:h},e.next=31,(0,V.gz)(q.Ek(m));case 31:case"end":return e.stop()}}),e)}))()}function fe(e,t){var n,r,o,i,a;return W().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return n=e,c.next=3,(0,V.RE)(J,n);case 3:r=c.sent,o=0;case 5:if(!(o<t.length)){c.next=18;break}if(i=t[o],a=r[i]){c.next=10;break}throw new Error("No such path '".concat(i,"' found on entity model '").concat(n,"'"));case 10:if(n=a.targetEntity,!(o+1<t.length)){c.next=15;break}return c.next=14,(0,V.RE)(J,n);case 14:r=c.sent;case 15:o++,c.next=5;break;case 18:return c.abrupt("return",n);case 19:case"end":return c.stop()}}),ae)}var de=W().mark(he);function he(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.$6)([(0,V.rM)(se)]);case 2:case"end":return e.stop()}}),de)}const me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:G,t=arguments.length>1?arguments[1]:void 0,n=Y[t.type];return n?n(e,t):e};var ge;function ve(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 ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var be=(ge={},r()(ge,I,z.Z.singleTransferReducer("entityName")),r()(ge,Z,(function(e,t){var n=t.payload.formBase;return n?ye(ye({},e),{},{formBase:n}):ye({},e)})),r()(ge,M,z.Z.singleTransferReducer("scrollBehaviour")),r()(ge,N,z.Z.singleTransferReducer("appId")),ge),we={entityName:"",formBase:"",scrollBehaviour:"none",appId:""};var Oe=W().mark(ke),xe=W().mark(_e);function ke(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.$6)([(0,V.RE)(_e)]);case 2:case"end":return e.stop()}}),Oe)}function _e(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.qn)(t.Z.INPUT_INITIALIZED);case 2:return e.next=4,(0,V.gz)(C.Z.doSessionCheck());case 4:case"end":return e.stop()}}),xe)}var Ee=W().mark(Se);function Se(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.$6)([(0,V.rM)(ke)]);case 2:case"end":return e.stop()}}),Ee)}const je=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:we,t=arguments.length>1?arguments[1]:void 0,n=be[t.type];return n?n(e,t):e},Pe={detail:me,form:H.Z,entityBrowser:je};var Ae,Ce,De=[Se,he],Te=a(85893);function Re(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 Ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ze="entity-browser",Me=["onVisibilityStatusChange"],Ne=v().lazy((function(){return Promise.all([a.e(186),a.e(141),a.e(240),a.e(378),a.e(614)]).then(a.bind(a,83432))})),Fe=function(){return Ae||(Ae=(0,Te.jsx)(g.Suspense,{fallback:"",children:(0,Te.jsx)(Ne,{})}))},Be=function(e,n,r,o){n=Ie(Ie({},n),{},{id:e}),p.Z.setInputEnvs(n);var i=t.Z.createStore(Pe,De,n,Ze);u.Z.addToStore(i,(function(e){return t.Z.getEvents(Me,e.input)})),j.Z.addToStore(i),P.Z.dynamicActionsAddToStore(i),A.Z.addToStore(i,!0,["console","remote","notification"]),D.Z.addToStore(i,!0),C.Z.addToStore(i);var a=function(e,t){return(t?b.Z:y.Z)({getUserConfirmation:function(t,n){var r,o,i=(r=e.getState(),o="client.common.ok",r.intl.messages[o]||o),a=D.Z.confirm("",t,i,(function(){return n(!0)}),(function(){return n(!1)}));e.dispatch(a)}})}(i,n.memoryHistory);!function(e,t){var n=t.initialKey;if(n&&!isNaN(n)&&!e.location.pathname.match(/\/detail\/[0-9]*/)){var r="/detail/".concat(t.initialKey);e.push(r)}}(a,n);var c=(0,Te.jsx)(S.F0,{history:a,children:Ce||(Ce=(0,Te.jsx)(Fe,{}))});return t.Z.createApp(Ze,c,i,{input:n,actions:B(n),publicPath:o,textResourceModules:["component","common","actions","entity-list","entity-detail"]})},Le=function(e){var n=t.Z.useApp({initApp:Be,props:e,packageName:Ze}),r=n.component,o=n.store,i=T.Z.usePrevious(e);return T.Z.useDidUpdate((function(){var t=E()(e,(function(e,t){return!k()(e,i[t])}));O()(t)||B(t,!1).forEach((function(e){o.dispatch(e)}))}),[e]),r};Le.propTypes=Ie({entityName:i().string.isRequired,searchFormType:s.b,formBase:i().string,limit:i().number,preselectedSearchFields:i().array,searchFilters:i().arrayOf(i().string),simpleSearchFields:i().string,initialKey:i().string,businessUnit:i().string,memoryHistory:i().bool,backendUrl:i().string,scrollBehaviour:i().string,appContext:l.Z.propTypes,modifyFormDefinition:i().func,disableDetailView:i().bool,reportIds:i().arrayOf(i().string),customActionEventHandlers:i().objectOf(i().objectOf(i().func))},u.Z.createPropTypes(Me));const He=Le;t.Z.createBundleableApp(Ze,Be,Le);var Ue="success",We=a(96316),Ve=a(94736),ze=W().mark(qe);function qe(e,t){var n,r,o,i,a,c;return W().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:if(n=t.entityId,r=t.entityName,!n||"Event"!==r){u.next=11;break}return u.next=4,(0,V.RE)(Ve.Z.eventRegistration.getEventRelationshipModulesQuery,n);case 4:return o=u.sent,i=o.query,a=o.entityName,u.next=9,(0,V.RE)(K.Z.fetchEntityCount,a,i);case 9:return c=u.sent,u.abrupt("return",c>0?e:We.Z.removeBoxes(e,["modules"]));case 11:return u.abrupt("return",e);case 12:case"end":return u.stop()}}),ze)}const Ye=function(e){var t=e.formBase,n=e.searchFormType,r=e.reportIds,o=e.searchFilters,i=e.limit,a=e.backendUrl,c=e.businessUnit,u=e.appContext,s=e.fireVisibilityStatusChangeEvent,l=e.onVisibilityStatusChange,p=(0,g.useState)(!1),f=m()(p,2),d=f[0],h=f[1];return!d&&(0,Te.jsx)(He,{entityName:"Event",formBase:t,searchFilters:o,limit:i,backendUrl:a,businessUnit:c,appContext:u,reportIds:r,searchFormType:n,customActionEventHandlers:{"event-registration-action":{onSuccess:function(){s([Ue]),h(!0)}}},onVisibilityStatusChange:l,modifyFormDefinition:qe})};var Ge={fireVisibilityStatusChangeEvent:u.Z.fireVisibilityStatusChangeEvent};const Ke=(0,d.connect)((function(e){return{formBase:e.input.formBase,searchFormType:e.input.searchFormType,searchFilters:e.input.searchFilters,limit:e.input.limit,backendUrl:e.input.backendUrl,businessUnit:e.input.businessUnit,appContext:e.input.appContext,reportIds:e.input.reportIds,onVisibilityStatusChange:e.input.onVisibilityStatusChange}}),Ge)((0,f.ZP)(Ye)),$e={};var Xe,Qe=[];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}var et="event-registration",tt=["onVisibilityStatusChange"],nt=function(e,n,r,o){p.Z.setInputEnvs(n);var i=Xe||(Xe=(0,Te.jsx)(Ke,{})),a=t.Z.createStore($e,Qe,n,et);return u.Z.addToStore(a,(function(e){return t.Z.getEvents(tt,e.input)})),t.Z.createApp(et,i,a,{input:n,events:r,actions:[],publicPath:o,textResourceModules:["component","common",et]})},rt=function(e){return t.Z.useApp({initApp:nt,props:e,packageName:et}).component};rt.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Je(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({formBase:i().string.isRequired,searchFormType:s.b,reportIds:i().arrayOf(i().string).isRequired,searchFilters:i().arrayOf(i().string),limit:i().number,intl:i().object.isRequired,backendUrl:i().string,businessUnit:i().string,appContext:l.Z.propTypes.isRequired},u.Z.createPropTypes(tt));var ot=t.Z.createBundleableApp(et,nt,rt);t.Z.registerAppInRegistry(ot.name,ot.init)})(),c})()));
package/dist/login.js CHANGED
@@ -53,7 +53,7 @@ object-assign
53
53
  *
54
54
  * This source code is licensed under the MIT license found in the
55
55
  * LICENSE file in the root directory of this source tree.
56
- */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:"987afa66953693f91b95",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=535,i.p="/",(()=>{var e={535:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var a=i.p+i.u(t),c=new Error;i.l(a,(n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",c.name="ChunkLoadError",c.type=o,c.request=a,r[1](c)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,c,s]=n,u=0;if(a.some((t=>0!==e[t]))){for(r in c)i.o(c,r)&&(i.m[r]=c[r]);if(s)s(i)}for(t&&t(n);u<a.length;u++)o=a[u],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_=self.webpackChunktocco_||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),i.nc=void 0;var c={};return(()=>{"use strict";i.r(c),i.d(c,{app:()=>Sg});var e=i(6966),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",v=function(e,t,n,r){return{type:h,payload:{username:e,password:t,captchaToken:n,userCode:r}}},y=i(28655),b=i.n(y),w=i(1024),O=i.n(w),k=i(38205),x="USERNAME_FORM",_="LOGIN_FORM",S="PASSWORD_REQUEST",E="TWOSTEPLOGIN",A="PASSWORD_UPDATE",P="TWOSTEPLOGIN_ACTIVATION",j="login/CHANGE_PAGE",C="login/SET_USERNAME",D="login/SET_PASSWORD",T="login/SET_CAPTCHA_KEY",R=function(e){return{type:j,payload:{page:e}}},I=function(e){return{type:C,payload:{username:e}}},M=function(e){return{type:D,payload:{password:e}}},N=i(48926),Z=i.n(N),B=i(63038),L=i.n(B),F=i(87757),U=i.n(F),H=i(99860),W=i.n(H);function z(){return z=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},z.apply(this,arguments)}function Y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var V=function(e){var t,n;function r(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(Y(t)),t.handleErrored=t.handleErrored.bind(Y(t)),t.handleChange=t.handleChange.bind(Y(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(Y(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",z({},t,{ref:this.handleRecaptchaRef}))},r}(O().Component);V.displayName="ReCAPTCHA",V.propTypes={sitekey:W().string.isRequired,onChange:W().func,grecaptcha:W().object,theme:W().oneOf(["dark","light"]),type:W().oneOf(["image","audio"]),tabindex:W().number,onExpired:W().func,onErrored:W().func,size:W().oneOf(["compact","normal","invisible"]),stoken:W().string,hl:W().string,badge:W().oneOf(["bottomright","bottomleft","inline"])},V.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var q=i(9657),G=i.n(q),K=i(8679),X=i.n(K);function $(){return $=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$.apply(this,arguments)}var Q={},J=0;var ee="onloadcallback";const te=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-"+J++),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=Q[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]&&(Q[n]={loaded:!0,observers:{}}),Q[n]){var s=Q[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)},Q[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(Q[n]){var t=Q[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=Q[n];e&&(e.loaded=!0,f((function(t){return!i&&(t(e),!0)})))},l.onerror=function(){var e=Q[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=Q[e];o&&(delete o.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===t.removeOnUnmount&&delete Q[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,$({},e,{forwardedRef:t}))}));return a.displayName="AsyncScriptLoader("+r+")",a.propTypes={asyncScriptOnLoad:G().func},X()(a,n)}}((function(){return"https://"+(("undefined"!=typeof window&&window.recaptchaOptions||{}).useRecaptchaNet?"recaptcha.net":"www.google.com")+"/recaptcha/api.js?onload="+ee+"&render=explicit"}),{callbackName:ee,globalName:"grecaptcha"})(V),ne=te;var re=i(41505),oe=i.n(re),ae=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ie=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},ce=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},se={outline:"none"},ue=function(e){function t(){var n,r;ae(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=ce(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)},ce(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",ie({ref:this.ref,style:se},n),e)},t}(O().Component);ue.propTypes={children:oe().oneOfType([oe().node,oe().func]).isRequired,onBlur:oe().func,onFocus:oe().func},ue.defaultProps={onBlur:function(){},onFocus:function(){}};const le=ue;var pe,fe,de,he,me=i(70696),ge=i(10535),ve=i(78958),ye=i(319),be=i.n(ye),we=i(37188),Oe=i(24875),ke=(pe={},n()(pe,ve.Z.condition.BASE,"inherit"),n()(pe,ve.Z.condition.DANGER,Oe.FS.color("signal.danger")),n()(pe,ve.Z.condition.SUCCESS,Oe.FS.color("signal.success")),n()(pe,ve.Z.condition.WARNING,Oe.FS.color("signal.warning")),n()(pe,ve.Z.condition.INFO,Oe.FS.color("signal.info")),pe),xe=(0,k.ZP)(we.hc).withConfig({displayName:"StyledSignalList"})(fe||(fe=b()(["\n && {\n list-style-type: none;\n }\n"]))),_e=k.ZP.span.withConfig({displayName:"StyledSignalListIcon"})(de||(de=b()(["\n position: absolute;\n left: -1.6rem;\n text-align: left;\n"]))),Se=(0,k.ZP)(we.EF).withConfig({displayName:"StyledSignalListItem"})(he||(he=b()(["\n && {\n color: ",";\n position: relative;\n padding: 0;\n }\n"])),(function(e){return function(e){return ke[e.condition]||"inherit"}(e)})),Ee=i(85893);const Ae=function(e){return(0,Ee.jsx)(xe,{as:"ul",children:O().Children.map(e.children,(function(e){return O().cloneElement(e)}))})};var Pe,je,Ce=i(88162),De=(Pe={},n()(Pe,ve.Z.condition.BASE,!1),n()(Pe,ve.Z.condition.DANGER,"times"),n()(Pe,ve.Z.condition.SUCCESS,"check"),n()(Pe,ve.Z.condition.WARNING,"exclamation-triangle"),n()(Pe,ve.Z.condition.INFO,"info"),Pe),Te=function(e){var t=De[e.condition];return t?(0,Ee.jsx)(Ce.Z,{icon:t,position:ve.Z.position.SOLE}):je||(je=(0,Ee.jsx)("i",{children:"•"}))},Re=function(e){return(0,Ee.jsxs)(Se,{condition:e.condition,children:[(0,Ee.jsx)(_e,{children:Te(e)}),e.label,O().Children.map(e.children,(function(e){return O().cloneElement(e)}))]})};Re.defaultProps={condition:ve.Z.condition.BASE};const Ie={List:Ae,Item:Re};const Me=function(e){if(!e.error)return null;var t=[];return Object.keys(e.error).forEach((function(n){t.push.apply(t,be()(e.error[n]))})),(0,Ee.jsx)(Ie.List,{children:t.map((function(e,t){return(0,Ee.jsx)(Ie.Item,{condition:"danger",label:e},t)}))})};var Ne,Ze,Be,Le,Fe,Ue,He,We,ze=i(79686),Ye=i(7281),Ve=i(30759),qe=i(88601),Ge=i(27361),Ke=i.n(Ge),Xe={base:function(e){var t=e.theme;return Ke()(t,"colors.text")},shade1:function(e){var t=e.theme;return Ke()(t,"colors.textLight")},shade2:function(e){var t=e.theme;return Ke()(t,"colors.textLighter")},signal:function(e){var t=e.theme,n=e.signal;return Ke()(t,"colors.signal.".concat(n))},hasValue:function(e){var t=e.theme;return Ke()(t,"colors.signal.info")}},$e={base:function(e){var t=e.theme;return Ke()(t,"colors.border")},signal:function(e){var t=e.theme,n=e.signal;return Ke()(t,"colors.signal.".concat(n))},isDirty:function(e){var t=e.theme;return Ke()(t,"colors.secondaryLight")},transparent:function(){return"transparent"}},Qe=i(76538),Je="1.1px",et=function(e){var t=e.isDisplay,n=e.immutable;return"cursor: ".concat(!t&&n?"not-allowed":"auto",";")},tt=k.ZP.div.withConfig({displayName:"StyledLabelWrapper"})(Ze||(Ze=b()(["\n width: calc(100% - ",");\n"])),Ye.Z.space(.5)),nt=k.ZP.label.withConfig({displayName:"StyledStatedValueLabel"})(Be||(Be=b()(["\n &&& {\n ","\n background-color: ",";\n color: ",";\n left: ",";\n margin: calc("," / -2) 0 0;\n padding: 0 "," 0 ","; // if immutable remove left padding\n position: absolute;\n width: auto;\n height: calc("," + 1px);\n overflow: hidden;\n top: 0;\n pointer-events: auto;\n ","\n\n span {\n white-space: nowrap;\n }\n }\n"])),(0,Ve.Z)({fontWeight:function(e){return e.dirty?qe.Z.fontWeight("bold"):qe.Z.fontWeight("regular")},lineHeight:qe.Z.lineHeight("dense")}),qe.Z.color("paper"),(function(e){return Xe[function(e){var t=e.isDisplay,n=e.immutable,r=e.signal,o=e.hasValue;return r?"signal":o?"hasValue":t?"shade1":n?"base":"shade1"}(e)](e)}),Ye.Z.space(-2),Ye.Z.font(0),Ye.Z.space(-2),(function(e){return e.immutable&&"0"}),Ye.Z.font(0),(function(e){return et(e)})),rt=k.ZP.div.withConfig({displayName:"StyledStatedValueBox"})(Le||(Le=b()(["\n &&& {\n border: "," solid ",";\n border-radius: ",";\n padding: "," "," "," ",";\n position: relative;\n margin-top: ",";\n padding-left: ",";\n padding-top: ",";\n ","\n ","\n\n * {\n padding-left: ",";\n margin-bottom: 0;\n }\n\n > "," {\n padding-top: ",";\n position: relative;\n top: 5px;\n\n p:first-of-type {\n margin-top: 0;\n }\n }\n }\n"])),Je,(function(e){return $e[function(e){var t=e.immutable,n=e.isDisplay,r=e.signal;return e.isDirty?"isDirty":n||t?"transparent":r?"signal":"base"}(e)](e)}),Oe.FS.radii("form"),Ye.Z.space(-1),Ye.Z.space(-1),Ye.Z.space(-2),Ye.Z.space(-1),(function(e){return e.isDisplay&&Ye.Z.space(-1)}),(function(e){return e.immutable&&Ye.Z.space(-2)}),(function(e){var t=e.isDisplay,n=e.immutable;return t&&n&&Ye.Z.space(-1)}),(function(e){return!e.immutable&&function(e){var t=Ke()(e.theme,"colors.signal.info",ve.Z.fallbackColors.INFO);return(0,k.iv)(Ne||(Ne=b()(["\n transition: border-color ease-in-out 100ms;\n will-change: border-color;\n\n &:focus,\n &:focus-within {\n border-color: ",";\n box-shadow: 0 0 6px ",";\n outline: 0;\n\n /**\n * Disable box-shadow for Safari\n * in order to be able to tab through the form fluently\n */\n @media not all and (min-resolution: 0.001dpcm) {\n @supports (-webkit-appearance: none) {\n box-shadow: none;\n }\n }\n }\n "])),t,(0,Qe.DZ)(.4,t))}(e)}),(function(e){return et(e)}),(function(e){return e.isDisplay&&"0"}),ze.j,(function(e){return e.isDisplay&&Ye.Z.space(-1)})),ot=k.ZP.p.withConfig({displayName:"StyledStatedValueDescription"})(Fe||(Fe=b()(["\n &&& {\n ","\n }\n"])),(0,Ve.Z)({fontSize:Ye.Z.font(-1)})),at=k.ZP.div.withConfig({displayName:"StyledStatedValueError"})(Ue||(Ue=b()([""]))),it=k.ZP.div.withConfig({displayName:"StyledStatedValueWrapper"})(He||(He=b()(["\n &&& {\n margin-bottom: ",";\n padding-top: ",";\n\n ",",\n ",",\n "," {\n margin-bottom: ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n ",",\n "," {\n margin-left: calc("," + ",");\n }\n }\n"])),Ye.Z.space(-1),Ye.Z.space(-1.5),rt,ot,at,Ye.Z.space(-2),ot,at,Ye.Z.space(-1),Je);k.ZP.input.withConfig({displayName:"StyledInput"})(We||(We=b()(["\n border: 0;\n cursor: ",";\n color: ",";\n outline: 0;\n transition: color 200ms;\n width: 100%;\n"])),(function(e){var t=e.args;return t.immutable&&!t.isDisplay?"not-allowed":"auto"}),(function(e){var t=e.args;return t.immutable&&!t.isDisplay?"#545454":"#000"}));function ct(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 st(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ct(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ct(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const ut=function(e){var t,n,r,o=e.children,a=e.description,i=e.dirty,c=e.isDisplay,s=e.error,u=e.hasValue,l=e.id,p=e.label,f=e.mandatory,d=e.mandatoryTitle,h=e.immutable,m=e.touched,g=e.signal,v=!h&&m&&s&&Object.keys(s).length>0,y="".concat(me.Z.adjustedHTMLString(p)).concat(f&&d?", ".concat(d):""),b=g||function(e,t,n,r){return t?ve.Z.condition.DANGER:e?ve.Z.condition.INFO:n&&!r?ve.Z.condition.WARNING:void 0}(i,v,f,u),w={__html:"".concat(ge.Z.sanitizeHtml(p)).concat(f?" *":"")},O=!c&&!h&&{htmlFor:l};return(0,Ee.jsx)(le,{children:function(e){var l=e.getRef;return(0,Ee.jsxs)(it,{ref:l,children:[(0,Ee.jsxs)(rt,{hasValue:u,immutable:h,isDisplay:c,signal:b,children:[o,p&&(0,Ee.jsx)(tt,{children:(0,Ee.jsx)(nt,st(st({},O),{},{hasValue:u,dirty:i,title:y,immutable:h,isDisplay:c,signal:b,children:t||(t=(0,Ee.jsx)("span",{dangerouslySetInnerHTML:w}))}))})]}),a&&(n||(n=(0,Ee.jsx)(ot,{children:a}))),v&&(r||(r=(0,Ee.jsx)(at,{children:(0,Ee.jsx)(Me,{error:s})})))]})}})};var lt=i(35997);const pt=(0,p.ZP)((function(e){var t,n=e.message,r=e.intl;return n&&n.text?(0,Ee.jsx)(Ie.List,{children:(0,Ee.jsx)(Ie.Item,{condition:n.negative?"danger":"base",label:(t=n.text,r.formatMessage({id:t}))})}):null})),ft=pt;var dt,ht=i(6479),mt=i.n(ht),gt=i(65035),vt=(0,k.ZP)(gt.Z).withConfig({displayName:"StyledLoginButton"})(dt||(dt=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"])),Ye.Z.font(1.3),qe.Z.radii("buttonLarge")),yt=["disabled","pending","label"];function bt(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 wt=function(e){var t=e.disabled,r=e.pending,o=e.label,a=mt()(e,yt);return(0,Ee.jsx)(vt,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bt(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))},Ot=wt;var kt=i(44012),xt=i(34206);const _t=function(e){var t=e.title,n=e.subtitle;return(0,Ee.jsxs)(Ee.Fragment,{children:[(0,Ee.jsx)(xt.ZP.H5,{children:(0,Ee.jsx)(kt.Z,{id:t})}),n&&(0,Ee.jsx)(xt.ZP.P,{children:(0,Ee.jsx)(kt.Z,{id:n})})]})},St=_t;const Et=function(e){var t=(0,w.useState)(!1),n=L()(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 At,Pt,jt,Ct,Dt,Tt,Rt,It=(0,k.iv)(At||(At=b()(["\n align-items: center;\n cursor: ",";\n display: flex;\n"])),(function(e){return e.immutable?"not-allowed":"default"})),Mt=k.ZP.label.withConfig({displayName:"StyledEditableWrapper"})(Pt||(Pt=b()(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),It),Nt=(0,k.iv)(jt||(jt=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,Ve.Z)({color:Oe.FS.color("text")})}),Oe.FS.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),Zt=(0,k.iv)(Ct||(Ct=b()(["\n display: flex;\n align-items: center;\n"]))),Bt=k.ZP.div.withConfig({displayName:"StyledEditableControl"})(Dt||(Dt=b()(["\n &&& {\n ","\n }\n"])),Zt),Lt=k.ZP.span.withConfig({displayName:"StyledEditableValue"})(Tt||(Tt=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"])),Oe.FS.color("signal.danger")),Ft=i(58129);const Ut=k.ZP.div.withConfig({displayName:"StyledButtonGroup"})(Rt||(Rt=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"])),Ft.Z);var Ht,Wt,zt,Yt,Vt,qt=k.ZP.input.withConfig({displayName:"StyledLoginFormInput"})(Ht||(Ht=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"])),Nt),Gt=k.ZP.div.withConfig({displayName:"StyledLoginFormInputWrapper"})(Wt||(Wt=b()(["\n &&& {\n ","\n }\n"])),It),Kt=(0,k.ZP)(gt.Z).withConfig({displayName:"StyledTransparentButton"})(zt||(zt=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"])),qe.Z.color("primary")),Xt=k.ZP.div.withConfig({displayName:"StyledLoginFormWrapper"})(Yt||(Yt=b()(["\n "," {\n margin-top: 1.8rem;\n width: auto;\n flex-direction: column;\n\n "," {\n flex-grow: 1;\n }\n }\n"])),Ut,Ft.Z);function $t(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 Qt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$t(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$t(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Jt=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=Et(l),h=L()(d,2),m=h[0],g=h[1],v=Et(u),y=L()(v,2),b=y[0],O=y[1],k=(0,w.useRef)(),x=function(e){return r.formatMessage({id:e})},_=lt.Z.usePrevious(s),E=(0,w.useCallback)(function(){var e=Z()(U().mark((function e(t){var n;return U().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,k.current.executeAsync();case 5:n=e.sent,k.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&&!_&&E()}),[s,_,E]);var A=!!f,P=!A;return(0,Ee.jsxs)(Xt,{children:[p&&(Vt||(Vt=(0,Ee.jsx)(St,{title:"client.login.form.title",subtitle:"client.login.form.introduction"}))),(0,Ee.jsxs)("form",{onSubmit:E,children:[(0,Ee.jsx)(ut,{hasValue:!!f||m,id:"login-username",label:x("client.login.form.userPlaceholder"),children:(0,Ee.jsx)(Gt,{children:(0,Ee.jsx)(qt,Qt({autoFocus:P,name:"user","data-cy":"login-form_user-input",required:!0,type:"text",value:f,onFocus:function(e){return e.target.select()}},g))})}),(0,Ee.jsx)(ut,{hasValue:!!c||b,id:"login-password",label:x("client.login.form.passwordPlaceholder"),children:(0,Ee.jsx)(Gt,{children:(0,Ee.jsx)(qt,Qt({autoFocus:A,name:"password","data-cy":"login-form_password-input",required:!0,type:"password",value:c,onFocus:function(e){return e.target.select()}},O))})}),(0,Ee.jsx)(ft,{message:i}),t&&s&&(0,Ee.jsx)(ne,{ref:k,badge:"bottomright",size:"invisible",sitekey:t,hl:r.locale}),(0,Ee.jsx)(Ot,{disabled:a||""===f&&!m||""===c&&!b,label:x("client.login.form.button"),pending:a,"data-cy":"login-form_login-button"}),(0,Ee.jsx)(Kt,{label:x("client.login.form.forgotLink"),onClick:function(){return n(S)},"data-cy":"login-form_request-button"})]})]})};var en={changePage:R,setUsername:I,setPassword:M,login:v};const tn=(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}}),en)((0,p.ZP)(Jt));var nn,rn;const on=function(e){var t=e.username,n=e.requestPassword,r=e.intl,o=e.showTitle,a=e.pending,i=e.changePage,c=(0,w.useState)(t||""),s=L()(c,2),u=s[0],l=s[1],p=function(e){return r.formatMessage({id:e})};return(0,Ee.jsxs)(Xt,{children:[o&&(nn||(nn=(0,Ee.jsx)(St,{title:"client.login.passwordRequest.title"}))),rn||(rn=(0,Ee.jsx)(xt.ZP.P,{children:(0,Ee.jsx)(kt.Z,{id:"client.login.passwordRequest.introduction"})})),(0,Ee.jsxs)("form",{onSubmit:function(e){e.preventDefault(),n(u)},children:[(0,Ee.jsx)(ut,{hasValue:Boolean(u),id:"login-username",label:p("client.login.form.userPlaceholder"),children:(0,Ee.jsx)(Gt,{children:(0,Ee.jsx)(qt,{name:"user",onChange:function(e){l(e.target.value)},required:!0,type:"text",value:u,"data-cy":"password-request_input"})})}),(0,Ee.jsx)(Ot,{disabled:!u||a,label:p("client.login.passwordRequest.button"),pending:a,"data-cy":"password-request_submit-button"}),(0,Ee.jsx)(Kt,{disabled:a,label:p("client.login.passwordRequest.abortButton"),name:"abort",onClick:function(){return i(_)},"data-cy":"password-request_abort-button"})]})]})};var an={changePage:R,requestPassword:function(e){return{type:m,payload:{username:e}}}};const cn=(0,f.connect)((function(e){return{username:e.login.username,pending:e.loginForm.loginPending}}),an)((0,p.ZP)(on));var sn="INITIALIZED",un="PasswordUpdateDialog/UPDATE_OLD_PASSWORD",ln="PasswordUpdateDialog/UPDATE_NEW_PASSWORD",pn="PasswordUpdateDialog/SET_NEW_PASSWORD",fn="PasswordUpdateDialog/SET_NEW_PASSWORD_VALIDATION_ERRORS",dn="PasswordUpdateDialog/UPDATE_NEW_PASSWORD_REPEAT",hn="PasswordUpdateDialog/SAVE_PASSWORD",mn="PasswordUpdateDialog/SAVE_PASSWORD_SUCCESS",gn="PasswordUpdateDialog/SAVE_PASSWORD_FAILURE",vn="PasswordUpdateDialog/VALIDATE",yn="PasswordUpdateDialog/RESET_PASSWORD_UPDATED_FAILED",bn=function(e){return{type:un,payload:{oldPassword:e}}},wn=function(e){return{type:fn,payload:{errors:e}}},On=function(e,t){return{type:gn,payload:{errorCode:e,validationMessages:t}}},kn="PasswordUpdateDialog/FETCH_VALIDATION_RULES",xn="PasswordUpdateDialog/SET_VALIDATION_RULES",_n=i(50258),Sn={INVALID_CREDENTIALS:"client.login.passwordUpdate.invalidCredentials",UNEXPECTED_ERROR:"client.login.passwordUpdate.unexpectedError"};const En=function(e){return(0,Ee.jsx)(Ie.List,{children:(0,Ee.jsx)(Ie.Item,{condition:ve.Z.condition.DANGER,children:(0,Ee.jsx)(kt.Z,{id:(t=e.errorCode,Sn[t]||"client.login.passwordUpdate.failure")})})});var t};const An=function(e){return(0,Ee.jsx)(Ie.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=ve.Z.condition.DANGER:"string"==typeof a?(r=ve.Z.condition.DANGER,o=a):r=ve.Z.condition.SUCCESS}return(0,Ee.jsx)(Ie.Item,{condition:r,label:o},n)}))})},Pn=An;var jn,Cn,Dn=k.ZP.input.attrs((function(e){return{type:"password"}})).withConfig({displayName:"StyledPasswordInput"})(jn||(jn=b()(["\n &&&& {\n ","\n }\n"])),Nt),Tn=k.ZP.div.withConfig({displayName:"StyledPasswordInputWrapper"})(Cn||(Cn=b()(["\n && {\n ","\n }\n"])),It);const Rn=function(e){return(0,Ee.jsx)(ut,{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?ve.Z.condition.SUCCESS:ve.Z.condition.DANGER:null,children:(0,Ee.jsx)(Tn,{immutable:!0===e.readOnly,children:(0,Ee.jsx)(Dn,{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 In;const Mn=k.ZP.div(In||(In=b()(["\n "," {\n width: 100%;\n }\n"])),Ft.Z);var Nn,Zn,Bn,Ln,Fn;function Un(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 Hn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Un(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Un(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Wn=k.ZP.div.withConfig({displayName:"StyledValidationRulesWrapper"})(Nn||(Nn=b()(["\n margin: 1rem;\n"])));const zn=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=Z()(U().mark((function e(t){var n;return U().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),!0!==g()){e.next=7;break}return e.next=4,h.current.executeAsync();case 4:n=e.sent,h.current.reset(),c(n);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),g=function(){return!!i.newPasswordRepeat&&(i.newPassword===i.newPasswordRepeat&&!i.passwordUpdatePending)},v=function(e){return a.formatMessage({id:e})};if(!d)return Zn||(Zn=(0,Ee.jsx)(_n.Z,{}));var y=i.passwordUpdatePending,b=!i.oldPassword&&s||i.passwordUpdatePending,O=!i.newPassword||i.passwordUpdatePending||i.newPasswordValidationErrors&&Object.keys(i.newPasswordValidationErrors).length>0;return(0,Ee.jsxs)(Mn,{children:[u&&(Bn||(Bn=(0,Ee.jsx)(St,{title:"client.login.passwordUpdate.title"}))),r&&(Ln||(Ln=(0,Ee.jsx)(xt.ZP.P,{children:(0,Ee.jsx)(kt.Z,{id:"client.login.passwordUpdate.introduction"})}))),(0,Ee.jsxs)("form",{onSubmit:m,children:[!0===s&&(0,Ee.jsx)(Rn,Hn({tabIndex:1,label:v("client.login.passwordUpdate.oldPassword"),name:"oldPassword",value:i.oldPassword,onChange:f,readOnly:y,autoFocus:!0},i.passwordUpdateFailed&&"INVALID_CREDENTIALS"===i.passwordUpdateErrorCode&&{valid:!1})),(0,Ee.jsx)(Rn,{tabIndex:2,label:v("client.login.passwordUpdate.newPassword"),name:"newPassword",value:i.newPassword,onChange:l,readOnly:b,autoFocus:!0!==s,valid:!O}),(0,Ee.jsx)(Wn,{children:(0,Ee.jsx)(Pn,{rules:d,errors:i.newPasswordValidationErrors,rulesNeutral:!i.newPassword})}),(0,Ee.jsx)(Rn,{tabIndex:3,label:v("client.login.passwordUpdate.newPasswordRepeat"),name:"newPasswordRepeat",value:i.newPasswordRepeat,onChange:p,readOnly:O,valid:g()}),i.newPasswordRepeat&&i.newPassword!==i.newPasswordRepeat&&(Fn||(Fn=(0,Ee.jsx)(Ie.List,{children:(0,Ee.jsx)(Ie.Item,{condition:"danger",label:(0,Ee.jsx)(kt.Z,{id:"client.login.passwordUpdate.noMatch"})})}))),!0===i.passwordUpdateFailed&&(0,Ee.jsx)(En,{errorCode:i.passwordUpdateErrorCode}),(0,Ee.jsx)(Ot,{pending:i.passwordUpdatePending,disabled:!1===g(),label:v("client.login.passwordUpdate.saveButton")}),t&&(0,Ee.jsx)(ne,{ref:h,badge:"bottomright",size:"invisible",sitekey:t,hl:a.locale})]})]})};var Yn={updateOldPassword:bn,updateNewPassword:function(e){return{type:ln,payload:{newPassword:e}}},updateNewPasswordRepeat:function(e){return{type:dn,payload:{newPasswordRepeat:e}}},fetchValidationRules:function(){return{type:kn}},savePassword:function(e){return{type:hn,payload:{captchaToken:e}}},initialized:function(){return{type:sn}}};const Vn=(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}}),Yn)((0,p.ZP)(zn));var qn,Gn,Kn,Xn,$n,Qn,Jn=i(30604),er="two-factor-connector/INITIALIZE",tr="two-factor-connector/SET_TWO_STEP_ACTIVE",nr="two-factor-connector/SET_SECRET",rr="two-factor-connector/SET_USER_NAME",or="two-factor-connector/REQUEST_SECRET",ar="two-factor-connector/GO_TO_SECRET_VERIFICATION",ir="two-factor-connector/GO_TO_START",cr="two-factor-connector/GO_TO_SECRET",sr="two-factor-connector/VERIFY_CODE",ur="root/SUCCESS",lr="root/SET_SETUP_SUCCESSFUL",pr="root/GO_TO_RESULT",fr=function(){return{type:er}},dr=function(e){return{type:tr,payload:{twoFactorActive:e}}},hr=function(e){return{type:nr,payload:{secret:e}}},mr=function(e){return{type:rr,payload:{username:e}}},gr=function(){return{type:ir}},vr=function(e){return{type:lr,payload:{setupSuccessful:e}}},yr=i(83324),br=k.ZP.div.withConfig({displayName:"StyledButtonWrapper"})(qn||(qn=b()(["\n display: flex;\n justify-content: flex-end;\n margin-top: ",";\n\n > "," {\n margin-right: 0;\n }\n"])),Ye.Z.space(.5),Ft.Z),wr=k.ZP.div.withConfig({displayName:"StyledMessageWrapper"})(Gn||(Gn=b()(["\n display: grid;\n grid-template-columns: 9% 1fr;\n grid-column-gap: ",";\n"])),Ye.Z.space(-.5)),Or=k.ZP.span.withConfig({displayName:"StyledIconWrapper"})(Kn||(Kn=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?Oe.FS.color("signal.success"):Oe.FS.color("signal.danger")}),Ye.Z.font(10)),kr=k.ZP.div.withConfig({displayName:"StyledTextWrapper"})(Xn||(Xn=b()(["\n display: flex;\n align-items: center;\n"])));const xr=function(e){var t=e.success,n=e.goToStart,r=e.setupSuccessful,o=e.intl;(0,yr.z)(t);var a=function(e){return o.formatMessage({id:e})};return r?(0,Ee.jsxs)(Ee.Fragment,{children:[$n||($n=(0,Ee.jsxs)(wr,{children:[(0,Ee.jsx)(Or,{isSuccessful:!0,children:(0,Ee.jsx)(Ce.Z,{icon:"check"})}),(0,Ee.jsx)(kr,{children:(0,Ee.jsx)(xt.ZP.P,{children:(0,Ee.jsx)(kt.Z,{id:"client.two-factor-connector.successfulText"})})})]})),(0,Ee.jsx)(br,{children:(0,Ee.jsx)(gt.Z,{label:a("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:t})})]}):(0,Ee.jsxs)(Ee.Fragment,{children:[Qn||(Qn=(0,Ee.jsxs)(wr,{children:[(0,Ee.jsx)(Or,{isSuccessful:!1,children:(0,Ee.jsx)(Ce.Z,{icon:"times"})}),(0,Ee.jsx)(kr,{children:(0,Ee.jsx)(xt.ZP.P,{children:(0,Ee.jsx)(kt.Z,{id:"client.two-factor-connector.errorText"})})})]})),(0,Ee.jsx)(br,{children:(0,Ee.jsx)(gt.Z,{label:a("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:n})})]})};var _r={success:function(){return{type:ur}},goToStart:gr};const Sr=(0,f.connect)((function(e){return{setupSuccessful:e.twoFactorConnector.setupSuccessful}}),_r)((0,p.ZP)(xr));var Er,Ar=Object.defineProperty,Pr=Object.getOwnPropertySymbols,jr=Object.prototype.hasOwnProperty,Cr=Object.prototype.propertyIsEnumerable,Dr=(e,t,n)=>t in e?Ar(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Tr=(e,t)=>{for(var n in t||(t={}))jr.call(t,n)&&Dr(e,n,t[n]);if(Pr)for(var n of Pr(t))Cr.call(t,n)&&Dr(e,n,t[n]);return e},Rr=(e,t)=>{var n={};for(var r in e)jr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Pr)for(var r of Pr(e))t.indexOf(r)<0&&Cr.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})(Er||(Er={})),(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={}))})(Er||(Er={})),(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={}))})(Er||(Er={}));var Ir=Er,Mr={L:Ir.QrCode.Ecc.LOW,M:Ir.QrCode.Ecc.MEDIUM,Q:Ir.QrCode.Ecc.QUARTILE,H:Ir.QrCode.Ecc.HIGH},Nr=128,Zr="L",Br="#FFFFFF",Lr="#000000",Fr=!1;
56
+ */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:"d5dcafaa8f36f73a7bb4",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=535,i.p="/",(()=>{var e={535:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var a=i.p+i.u(t),c=new Error;i.l(a,(n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",c.name="ChunkLoadError",c.type=o,c.request=a,r[1](c)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,c,s]=n,u=0;if(a.some((t=>0!==e[t]))){for(r in c)i.o(c,r)&&(i.m[r]=c[r]);if(s)s(i)}for(t&&t(n);u<a.length;u++)o=a[u],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_=self.webpackChunktocco_||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),i.nc=void 0;var c={};return(()=>{"use strict";i.r(c),i.d(c,{app:()=>Sg});var e=i(6966),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",v=function(e,t,n,r){return{type:h,payload:{username:e,password:t,captchaToken:n,userCode:r}}},y=i(28655),b=i.n(y),w=i(1024),O=i.n(w),k=i(38205),x="USERNAME_FORM",_="LOGIN_FORM",S="PASSWORD_REQUEST",E="TWOSTEPLOGIN",A="PASSWORD_UPDATE",P="TWOSTEPLOGIN_ACTIVATION",j="login/CHANGE_PAGE",C="login/SET_USERNAME",D="login/SET_PASSWORD",T="login/SET_CAPTCHA_KEY",R=function(e){return{type:j,payload:{page:e}}},I=function(e){return{type:C,payload:{username:e}}},M=function(e){return{type:D,payload:{password:e}}},N=i(48926),Z=i.n(N),B=i(63038),L=i.n(B),F=i(87757),U=i.n(F),H=i(99860),W=i.n(H);function z(){return z=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},z.apply(this,arguments)}function Y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var V=function(e){var t,n;function r(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(Y(t)),t.handleErrored=t.handleErrored.bind(Y(t)),t.handleChange=t.handleChange.bind(Y(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(Y(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",z({},t,{ref:this.handleRecaptchaRef}))},r}(O().Component);V.displayName="ReCAPTCHA",V.propTypes={sitekey:W().string.isRequired,onChange:W().func,grecaptcha:W().object,theme:W().oneOf(["dark","light"]),type:W().oneOf(["image","audio"]),tabindex:W().number,onExpired:W().func,onErrored:W().func,size:W().oneOf(["compact","normal","invisible"]),stoken:W().string,hl:W().string,badge:W().oneOf(["bottomright","bottomleft","inline"])},V.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var q=i(9657),G=i.n(q),K=i(8679),X=i.n(K);function $(){return $=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$.apply(this,arguments)}var Q={},J=0;var ee="onloadcallback";const te=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-"+J++),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=Q[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]&&(Q[n]={loaded:!0,observers:{}}),Q[n]){var s=Q[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)},Q[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(Q[n]){var t=Q[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=Q[n];e&&(e.loaded=!0,f((function(t){return!i&&(t(e),!0)})))},l.onerror=function(){var e=Q[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=Q[e];o&&(delete o.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===t.removeOnUnmount&&delete Q[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,$({},e,{forwardedRef:t}))}));return a.displayName="AsyncScriptLoader("+r+")",a.propTypes={asyncScriptOnLoad:G().func},X()(a,n)}}((function(){return"https://"+(("undefined"!=typeof window&&window.recaptchaOptions||{}).useRecaptchaNet?"recaptcha.net":"www.google.com")+"/recaptcha/api.js?onload="+ee+"&render=explicit"}),{callbackName:ee,globalName:"grecaptcha"})(V),ne=te;var re=i(41505),oe=i.n(re),ae=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ie=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},ce=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},se={outline:"none"},ue=function(e){function t(){var n,r;ae(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=ce(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)},ce(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",ie({ref:this.ref,style:se},n),e)},t}(O().Component);ue.propTypes={children:oe().oneOfType([oe().node,oe().func]).isRequired,onBlur:oe().func,onFocus:oe().func},ue.defaultProps={onBlur:function(){},onFocus:function(){}};const le=ue;var pe,fe,de,he,me=i(70696),ge=i(10535),ve=i(78958),ye=i(319),be=i.n(ye),we=i(37188),Oe=i(24875),ke=(pe={},n()(pe,ve.Z.condition.BASE,"inherit"),n()(pe,ve.Z.condition.DANGER,Oe.FS.color("signal.danger")),n()(pe,ve.Z.condition.SUCCESS,Oe.FS.color("signal.success")),n()(pe,ve.Z.condition.WARNING,Oe.FS.color("signal.warning")),n()(pe,ve.Z.condition.INFO,Oe.FS.color("signal.info")),pe),xe=(0,k.ZP)(we.hc).withConfig({displayName:"StyledSignalList"})(fe||(fe=b()(["\n && {\n list-style-type: none;\n }\n"]))),_e=k.ZP.span.withConfig({displayName:"StyledSignalListIcon"})(de||(de=b()(["\n position: absolute;\n left: -1.6rem;\n text-align: left;\n"]))),Se=(0,k.ZP)(we.EF).withConfig({displayName:"StyledSignalListItem"})(he||(he=b()(["\n && {\n color: ",";\n position: relative;\n padding: 0;\n }\n"])),(function(e){return function(e){return ke[e.condition]||"inherit"}(e)})),Ee=i(85893);const Ae=function(e){return(0,Ee.jsx)(xe,{as:"ul",children:O().Children.map(e.children,(function(e){return O().cloneElement(e)}))})};var Pe,je,Ce=i(88162),De=(Pe={},n()(Pe,ve.Z.condition.BASE,!1),n()(Pe,ve.Z.condition.DANGER,"times"),n()(Pe,ve.Z.condition.SUCCESS,"check"),n()(Pe,ve.Z.condition.WARNING,"exclamation-triangle"),n()(Pe,ve.Z.condition.INFO,"info"),Pe),Te=function(e){var t=De[e.condition];return t?(0,Ee.jsx)(Ce.Z,{icon:t,position:ve.Z.position.SOLE}):je||(je=(0,Ee.jsx)("i",{children:"•"}))},Re=function(e){return(0,Ee.jsxs)(Se,{condition:e.condition,children:[(0,Ee.jsx)(_e,{children:Te(e)}),e.label,O().Children.map(e.children,(function(e){return O().cloneElement(e)}))]})};Re.defaultProps={condition:ve.Z.condition.BASE};const Ie={List:Ae,Item:Re};const Me=function(e){if(!e.error)return null;var t=[];return Object.keys(e.error).forEach((function(n){t.push.apply(t,be()(e.error[n]))})),(0,Ee.jsx)(Ie.List,{children:t.map((function(e,t){return(0,Ee.jsx)(Ie.Item,{condition:"danger",label:e},t)}))})};var Ne,Ze,Be,Le,Fe,Ue,He,We,ze=i(79686),Ye=i(7281),Ve=i(30759),qe=i(88601),Ge=i(27361),Ke=i.n(Ge),Xe={base:function(e){var t=e.theme;return Ke()(t,"colors.text")},shade1:function(e){var t=e.theme;return Ke()(t,"colors.textLight")},shade2:function(e){var t=e.theme;return Ke()(t,"colors.textLighter")},signal:function(e){var t=e.theme,n=e.signal;return Ke()(t,"colors.signal.".concat(n))},hasValue:function(e){var t=e.theme;return Ke()(t,"colors.signal.info")}},$e={base:function(e){var t=e.theme;return Ke()(t,"colors.border")},signal:function(e){var t=e.theme,n=e.signal;return Ke()(t,"colors.signal.".concat(n))},isDirty:function(e){var t=e.theme;return Ke()(t,"colors.secondaryLight")},transparent:function(){return"transparent"}},Qe=i(76538),Je="1.1px",et=function(e){var t=e.isDisplay,n=e.immutable;return"cursor: ".concat(!t&&n?"not-allowed":"auto",";")},tt=k.ZP.div.withConfig({displayName:"StyledLabelWrapper"})(Ze||(Ze=b()(["\n width: calc(100% - ",");\n"])),Ye.Z.space(.5)),nt=k.ZP.label.withConfig({displayName:"StyledStatedValueLabel"})(Be||(Be=b()(["\n &&& {\n ","\n background-color: ",";\n color: ",";\n left: ",";\n margin: calc("," / -2) 0 0;\n padding: 0 "," 0 ","; // if immutable remove left padding\n position: absolute;\n width: auto;\n height: calc("," + 1px);\n overflow: hidden;\n top: 0;\n pointer-events: auto;\n ","\n\n span {\n white-space: nowrap;\n }\n }\n"])),(0,Ve.Z)({fontWeight:function(e){return e.dirty?qe.Z.fontWeight("bold"):qe.Z.fontWeight("regular")},lineHeight:qe.Z.lineHeight("dense")}),qe.Z.color("paper"),(function(e){return Xe[function(e){var t=e.isDisplay,n=e.immutable,r=e.signal,o=e.hasValue;return r?"signal":o?"hasValue":t?"shade1":n?"base":"shade1"}(e)](e)}),Ye.Z.space(-2),Ye.Z.font(0),Ye.Z.space(-2),(function(e){return e.immutable&&"0"}),Ye.Z.font(0),(function(e){return et(e)})),rt=k.ZP.div.withConfig({displayName:"StyledStatedValueBox"})(Le||(Le=b()(["\n &&& {\n border: "," solid ",";\n border-radius: ",";\n padding: "," "," "," ",";\n position: relative;\n margin-top: ",";\n padding-left: ",";\n padding-top: ",";\n ","\n ","\n\n * {\n padding-left: ",";\n margin-bottom: 0;\n }\n\n > "," {\n padding-top: ",";\n position: relative;\n top: 5px;\n\n p:first-of-type {\n margin-top: 0;\n }\n }\n }\n"])),Je,(function(e){return $e[function(e){var t=e.immutable,n=e.isDisplay,r=e.signal;return e.isDirty?"isDirty":n||t?"transparent":r?"signal":"base"}(e)](e)}),Oe.FS.radii("form"),Ye.Z.space(-1),Ye.Z.space(-1),Ye.Z.space(-2),Ye.Z.space(-1),(function(e){return e.isDisplay&&Ye.Z.space(-1)}),(function(e){return e.immutable&&Ye.Z.space(-2)}),(function(e){var t=e.isDisplay,n=e.immutable;return t&&n&&Ye.Z.space(-1)}),(function(e){return!e.immutable&&function(e){var t=Ke()(e.theme,"colors.signal.info",ve.Z.fallbackColors.INFO);return(0,k.iv)(Ne||(Ne=b()(["\n transition: border-color ease-in-out 100ms;\n will-change: border-color;\n\n &:focus,\n &:focus-within {\n border-color: ",";\n box-shadow: 0 0 6px ",";\n outline: 0;\n\n /**\n * Disable box-shadow for Safari\n * in order to be able to tab through the form fluently\n */\n @media not all and (min-resolution: 0.001dpcm) {\n @supports (-webkit-appearance: none) {\n box-shadow: none;\n }\n }\n }\n "])),t,(0,Qe.DZ)(.4,t))}(e)}),(function(e){return et(e)}),(function(e){return e.isDisplay&&"0"}),ze.j,(function(e){return e.isDisplay&&Ye.Z.space(-1)})),ot=k.ZP.p.withConfig({displayName:"StyledStatedValueDescription"})(Fe||(Fe=b()(["\n &&& {\n ","\n }\n"])),(0,Ve.Z)({fontSize:Ye.Z.font(-1)})),at=k.ZP.div.withConfig({displayName:"StyledStatedValueError"})(Ue||(Ue=b()([""]))),it=k.ZP.div.withConfig({displayName:"StyledStatedValueWrapper"})(He||(He=b()(["\n &&& {\n margin-bottom: ",";\n padding-top: ",";\n\n ",",\n ",",\n "," {\n margin-bottom: ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n ",",\n "," {\n margin-left: calc("," + ",");\n }\n }\n"])),Ye.Z.space(-1),Ye.Z.space(-1.5),rt,ot,at,Ye.Z.space(-2),ot,at,Ye.Z.space(-1),Je);k.ZP.input.withConfig({displayName:"StyledInput"})(We||(We=b()(["\n border: 0;\n cursor: ",";\n color: ",";\n outline: 0;\n transition: color 200ms;\n width: 100%;\n"])),(function(e){var t=e.args;return t.immutable&&!t.isDisplay?"not-allowed":"auto"}),(function(e){var t=e.args;return t.immutable&&!t.isDisplay?"#545454":"#000"}));function ct(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 st(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ct(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ct(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const ut=function(e){var t,n,r,o=e.children,a=e.description,i=e.dirty,c=e.isDisplay,s=e.error,u=e.hasValue,l=e.id,p=e.label,f=e.mandatory,d=e.mandatoryTitle,h=e.immutable,m=e.touched,g=e.signal,v=!h&&m&&s&&Object.keys(s).length>0,y="".concat(me.Z.adjustedHTMLString(p)).concat(f&&d?", ".concat(d):""),b=g||function(e,t,n,r){return t?ve.Z.condition.DANGER:e?ve.Z.condition.INFO:n&&!r?ve.Z.condition.WARNING:void 0}(i,v,f,u),w={__html:"".concat(ge.Z.sanitizeHtml(p)).concat(f?" *":"")},O=!c&&!h&&{htmlFor:l};return(0,Ee.jsx)(le,{children:function(e){var l=e.getRef;return(0,Ee.jsxs)(it,{ref:l,children:[(0,Ee.jsxs)(rt,{hasValue:u,immutable:h,isDisplay:c,signal:b,children:[o,p&&(0,Ee.jsx)(tt,{children:(0,Ee.jsx)(nt,st(st({},O),{},{hasValue:u,dirty:i,title:y,immutable:h,isDisplay:c,signal:b,children:t||(t=(0,Ee.jsx)("span",{dangerouslySetInnerHTML:w}))}))})]}),a&&(n||(n=(0,Ee.jsx)(ot,{children:a}))),v&&(r||(r=(0,Ee.jsx)(at,{children:(0,Ee.jsx)(Me,{error:s})})))]})}})};var lt=i(35997);const pt=(0,p.ZP)((function(e){var t,n=e.message,r=e.intl;return n&&n.text?(0,Ee.jsx)(Ie.List,{children:(0,Ee.jsx)(Ie.Item,{condition:n.negative?"danger":"base",label:(t=n.text,r.formatMessage({id:t}))})}):null})),ft=pt;var dt,ht=i(6479),mt=i.n(ht),gt=i(65035),vt=(0,k.ZP)(gt.Z).withConfig({displayName:"StyledLoginButton"})(dt||(dt=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"])),Ye.Z.font(1.3),qe.Z.radii("buttonLarge")),yt=["disabled","pending","label"];function bt(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 wt=function(e){var t=e.disabled,r=e.pending,o=e.label,a=mt()(e,yt);return(0,Ee.jsx)(vt,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bt(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))},Ot=wt;var kt=i(44012),xt=i(34206);const _t=function(e){var t=e.title,n=e.subtitle;return(0,Ee.jsxs)(Ee.Fragment,{children:[(0,Ee.jsx)(xt.ZP.H5,{children:(0,Ee.jsx)(kt.Z,{id:t})}),n&&(0,Ee.jsx)(xt.ZP.P,{children:(0,Ee.jsx)(kt.Z,{id:n})})]})},St=_t;const Et=function(e){var t=(0,w.useState)(!1),n=L()(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 At,Pt,jt,Ct,Dt,Tt,Rt,It=(0,k.iv)(At||(At=b()(["\n align-items: center;\n cursor: ",";\n display: flex;\n"])),(function(e){return e.immutable?"not-allowed":"default"})),Mt=k.ZP.label.withConfig({displayName:"StyledEditableWrapper"})(Pt||(Pt=b()(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),It),Nt=(0,k.iv)(jt||(jt=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,Ve.Z)({color:Oe.FS.color("text")})}),Oe.FS.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),Zt=(0,k.iv)(Ct||(Ct=b()(["\n display: flex;\n align-items: center;\n"]))),Bt=k.ZP.div.withConfig({displayName:"StyledEditableControl"})(Dt||(Dt=b()(["\n &&& {\n ","\n }\n"])),Zt),Lt=k.ZP.span.withConfig({displayName:"StyledEditableValue"})(Tt||(Tt=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"])),Oe.FS.color("signal.danger")),Ft=i(58129);const Ut=k.ZP.div.withConfig({displayName:"StyledButtonGroup"})(Rt||(Rt=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"])),Ft.Z);var Ht,Wt,zt,Yt,Vt,qt=k.ZP.input.withConfig({displayName:"StyledLoginFormInput"})(Ht||(Ht=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"])),Nt),Gt=k.ZP.div.withConfig({displayName:"StyledLoginFormInputWrapper"})(Wt||(Wt=b()(["\n &&& {\n ","\n }\n"])),It),Kt=(0,k.ZP)(gt.Z).withConfig({displayName:"StyledTransparentButton"})(zt||(zt=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"])),qe.Z.color("primary")),Xt=k.ZP.div.withConfig({displayName:"StyledLoginFormWrapper"})(Yt||(Yt=b()(["\n "," {\n margin-top: 1.8rem;\n width: auto;\n flex-direction: column;\n\n "," {\n flex-grow: 1;\n }\n }\n"])),Ut,Ft.Z);function $t(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 Qt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$t(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$t(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Jt=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=Et(l),h=L()(d,2),m=h[0],g=h[1],v=Et(u),y=L()(v,2),b=y[0],O=y[1],k=(0,w.useRef)(),x=function(e){return r.formatMessage({id:e})},_=lt.Z.usePrevious(s),E=(0,w.useCallback)(function(){var e=Z()(U().mark((function e(t){var n;return U().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,k.current.executeAsync();case 5:n=e.sent,k.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&&!_&&E()}),[s,_,E]);var A=!!f,P=!A;return(0,Ee.jsxs)(Xt,{children:[p&&(Vt||(Vt=(0,Ee.jsx)(St,{title:"client.login.form.title",subtitle:"client.login.form.introduction"}))),(0,Ee.jsxs)("form",{onSubmit:E,children:[(0,Ee.jsx)(ut,{hasValue:!!f||m,id:"login-username",label:x("client.login.form.userPlaceholder"),children:(0,Ee.jsx)(Gt,{children:(0,Ee.jsx)(qt,Qt({autoFocus:P,name:"user","data-cy":"login-form_user-input",required:!0,type:"text",value:f,onFocus:function(e){return e.target.select()}},g))})}),(0,Ee.jsx)(ut,{hasValue:!!c||b,id:"login-password",label:x("client.login.form.passwordPlaceholder"),children:(0,Ee.jsx)(Gt,{children:(0,Ee.jsx)(qt,Qt({autoFocus:A,name:"password","data-cy":"login-form_password-input",required:!0,type:"password",value:c,onFocus:function(e){return e.target.select()}},O))})}),(0,Ee.jsx)(ft,{message:i}),t&&s&&(0,Ee.jsx)(ne,{ref:k,badge:"bottomright",size:"invisible",sitekey:t,hl:r.locale}),(0,Ee.jsx)(Ot,{disabled:a||""===f&&!m||""===c&&!b,label:x("client.login.form.button"),pending:a,"data-cy":"login-form_login-button"}),(0,Ee.jsx)(Kt,{label:x("client.login.form.forgotLink"),onClick:function(){return n(S)},"data-cy":"login-form_request-button"})]})]})};var en={changePage:R,setUsername:I,setPassword:M,login:v};const tn=(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}}),en)((0,p.ZP)(Jt));var nn,rn;const on=function(e){var t=e.username,n=e.requestPassword,r=e.intl,o=e.showTitle,a=e.pending,i=e.changePage,c=(0,w.useState)(t||""),s=L()(c,2),u=s[0],l=s[1],p=function(e){return r.formatMessage({id:e})};return(0,Ee.jsxs)(Xt,{children:[o&&(nn||(nn=(0,Ee.jsx)(St,{title:"client.login.passwordRequest.title"}))),rn||(rn=(0,Ee.jsx)(xt.ZP.P,{children:(0,Ee.jsx)(kt.Z,{id:"client.login.passwordRequest.introduction"})})),(0,Ee.jsxs)("form",{onSubmit:function(e){e.preventDefault(),n(u)},children:[(0,Ee.jsx)(ut,{hasValue:Boolean(u),id:"login-username",label:p("client.login.form.userPlaceholder"),children:(0,Ee.jsx)(Gt,{children:(0,Ee.jsx)(qt,{name:"user",onChange:function(e){l(e.target.value)},required:!0,type:"text",value:u,"data-cy":"password-request_input"})})}),(0,Ee.jsx)(Ot,{disabled:!u||a,label:p("client.login.passwordRequest.button"),pending:a,"data-cy":"password-request_submit-button"}),(0,Ee.jsx)(Kt,{disabled:a,label:p("client.login.passwordRequest.abortButton"),name:"abort",onClick:function(){return i(_)},"data-cy":"password-request_abort-button"})]})]})};var an={changePage:R,requestPassword:function(e){return{type:m,payload:{username:e}}}};const cn=(0,f.connect)((function(e){return{username:e.login.username,pending:e.loginForm.loginPending}}),an)((0,p.ZP)(on));var sn="INITIALIZED",un="PasswordUpdateDialog/UPDATE_OLD_PASSWORD",ln="PasswordUpdateDialog/UPDATE_NEW_PASSWORD",pn="PasswordUpdateDialog/SET_NEW_PASSWORD",fn="PasswordUpdateDialog/SET_NEW_PASSWORD_VALIDATION_ERRORS",dn="PasswordUpdateDialog/UPDATE_NEW_PASSWORD_REPEAT",hn="PasswordUpdateDialog/SAVE_PASSWORD",mn="PasswordUpdateDialog/SAVE_PASSWORD_SUCCESS",gn="PasswordUpdateDialog/SAVE_PASSWORD_FAILURE",vn="PasswordUpdateDialog/VALIDATE",yn="PasswordUpdateDialog/RESET_PASSWORD_UPDATED_FAILED",bn=function(e){return{type:un,payload:{oldPassword:e}}},wn=function(e){return{type:fn,payload:{errors:e}}},On=function(e,t){return{type:gn,payload:{errorCode:e,validationMessages:t}}},kn="PasswordUpdateDialog/FETCH_VALIDATION_RULES",xn="PasswordUpdateDialog/SET_VALIDATION_RULES",_n=i(50258),Sn={INVALID_CREDENTIALS:"client.login.passwordUpdate.invalidCredentials",UNEXPECTED_ERROR:"client.login.passwordUpdate.unexpectedError"};const En=function(e){return(0,Ee.jsx)(Ie.List,{children:(0,Ee.jsx)(Ie.Item,{condition:ve.Z.condition.DANGER,children:(0,Ee.jsx)(kt.Z,{id:(t=e.errorCode,Sn[t]||"client.login.passwordUpdate.failure")})})});var t};const An=function(e){return(0,Ee.jsx)(Ie.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=ve.Z.condition.DANGER:"string"==typeof a?(r=ve.Z.condition.DANGER,o=a):r=ve.Z.condition.SUCCESS}return(0,Ee.jsx)(Ie.Item,{condition:r,label:o},n)}))})},Pn=An;var jn,Cn,Dn=k.ZP.input.attrs((function(e){return{type:"password"}})).withConfig({displayName:"StyledPasswordInput"})(jn||(jn=b()(["\n &&&& {\n ","\n }\n"])),Nt),Tn=k.ZP.div.withConfig({displayName:"StyledPasswordInputWrapper"})(Cn||(Cn=b()(["\n && {\n ","\n }\n"])),It);const Rn=function(e){return(0,Ee.jsx)(ut,{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?ve.Z.condition.SUCCESS:ve.Z.condition.DANGER:null,children:(0,Ee.jsx)(Tn,{immutable:!0===e.readOnly,children:(0,Ee.jsx)(Dn,{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 In;const Mn=k.ZP.div(In||(In=b()(["\n "," {\n width: 100%;\n }\n"])),Ft.Z);var Nn,Zn,Bn,Ln,Fn;function Un(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 Hn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Un(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Un(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Wn=k.ZP.div.withConfig({displayName:"StyledValidationRulesWrapper"})(Nn||(Nn=b()(["\n margin: 1rem;\n"])));const zn=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=Z()(U().mark((function e(t){var n;return U().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),!0!==g()){e.next=7;break}return e.next=4,h.current.executeAsync();case 4:n=e.sent,h.current.reset(),c(n);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),g=function(){return!!i.newPasswordRepeat&&(i.newPassword===i.newPasswordRepeat&&!i.passwordUpdatePending)},v=function(e){return a.formatMessage({id:e})};if(!d)return Zn||(Zn=(0,Ee.jsx)(_n.Z,{}));var y=i.passwordUpdatePending,b=!i.oldPassword&&s||i.passwordUpdatePending,O=!i.newPassword||i.passwordUpdatePending||i.newPasswordValidationErrors&&Object.keys(i.newPasswordValidationErrors).length>0;return(0,Ee.jsxs)(Mn,{children:[u&&(Bn||(Bn=(0,Ee.jsx)(St,{title:"client.login.passwordUpdate.title"}))),r&&(Ln||(Ln=(0,Ee.jsx)(xt.ZP.P,{children:(0,Ee.jsx)(kt.Z,{id:"client.login.passwordUpdate.introduction"})}))),(0,Ee.jsxs)("form",{onSubmit:m,children:[!0===s&&(0,Ee.jsx)(Rn,Hn({tabIndex:1,label:v("client.login.passwordUpdate.oldPassword"),name:"oldPassword",value:i.oldPassword,onChange:f,readOnly:y,autoFocus:!0},i.passwordUpdateFailed&&"INVALID_CREDENTIALS"===i.passwordUpdateErrorCode&&{valid:!1})),(0,Ee.jsx)(Rn,{tabIndex:2,label:v("client.login.passwordUpdate.newPassword"),name:"newPassword",value:i.newPassword,onChange:l,readOnly:b,autoFocus:!0!==s,valid:!O}),(0,Ee.jsx)(Wn,{children:(0,Ee.jsx)(Pn,{rules:d,errors:i.newPasswordValidationErrors,rulesNeutral:!i.newPassword})}),(0,Ee.jsx)(Rn,{tabIndex:3,label:v("client.login.passwordUpdate.newPasswordRepeat"),name:"newPasswordRepeat",value:i.newPasswordRepeat,onChange:p,readOnly:O,valid:g()}),i.newPasswordRepeat&&i.newPassword!==i.newPasswordRepeat&&(Fn||(Fn=(0,Ee.jsx)(Ie.List,{children:(0,Ee.jsx)(Ie.Item,{condition:"danger",label:(0,Ee.jsx)(kt.Z,{id:"client.login.passwordUpdate.noMatch"})})}))),!0===i.passwordUpdateFailed&&(0,Ee.jsx)(En,{errorCode:i.passwordUpdateErrorCode}),(0,Ee.jsx)(Ot,{pending:i.passwordUpdatePending,disabled:!1===g(),label:v("client.login.passwordUpdate.saveButton")}),t&&(0,Ee.jsx)(ne,{ref:h,badge:"bottomright",size:"invisible",sitekey:t,hl:a.locale})]})]})};var Yn={updateOldPassword:bn,updateNewPassword:function(e){return{type:ln,payload:{newPassword:e}}},updateNewPasswordRepeat:function(e){return{type:dn,payload:{newPasswordRepeat:e}}},fetchValidationRules:function(){return{type:kn}},savePassword:function(e){return{type:hn,payload:{captchaToken:e}}},initialized:function(){return{type:sn}}};const Vn=(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}}),Yn)((0,p.ZP)(zn));var qn,Gn,Kn,Xn,$n,Qn,Jn=i(30604),er="two-factor-connector/INITIALIZE",tr="two-factor-connector/SET_TWO_STEP_ACTIVE",nr="two-factor-connector/SET_SECRET",rr="two-factor-connector/SET_USER_NAME",or="two-factor-connector/REQUEST_SECRET",ar="two-factor-connector/GO_TO_SECRET_VERIFICATION",ir="two-factor-connector/GO_TO_START",cr="two-factor-connector/GO_TO_SECRET",sr="two-factor-connector/VERIFY_CODE",ur="root/SUCCESS",lr="root/SET_SETUP_SUCCESSFUL",pr="root/GO_TO_RESULT",fr=function(){return{type:er}},dr=function(e){return{type:tr,payload:{twoFactorActive:e}}},hr=function(e){return{type:nr,payload:{secret:e}}},mr=function(e){return{type:rr,payload:{username:e}}},gr=function(){return{type:ir}},vr=function(e){return{type:lr,payload:{setupSuccessful:e}}},yr=i(83324),br=k.ZP.div.withConfig({displayName:"StyledButtonWrapper"})(qn||(qn=b()(["\n display: flex;\n justify-content: flex-end;\n margin-top: ",";\n\n > "," {\n margin-right: 0;\n }\n"])),Ye.Z.space(.5),Ft.Z),wr=k.ZP.div.withConfig({displayName:"StyledMessageWrapper"})(Gn||(Gn=b()(["\n display: grid;\n grid-template-columns: 9% 1fr;\n grid-column-gap: ",";\n"])),Ye.Z.space(-.5)),Or=k.ZP.span.withConfig({displayName:"StyledIconWrapper"})(Kn||(Kn=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?Oe.FS.color("signal.success"):Oe.FS.color("signal.danger")}),Ye.Z.font(10)),kr=k.ZP.div.withConfig({displayName:"StyledTextWrapper"})(Xn||(Xn=b()(["\n display: flex;\n align-items: center;\n"])));const xr=function(e){var t=e.success,n=e.goToStart,r=e.setupSuccessful,o=e.intl;(0,yr.z)(t);var a=function(e){return o.formatMessage({id:e})};return r?(0,Ee.jsxs)(Ee.Fragment,{children:[$n||($n=(0,Ee.jsxs)(wr,{children:[(0,Ee.jsx)(Or,{isSuccessful:!0,children:(0,Ee.jsx)(Ce.Z,{icon:"check"})}),(0,Ee.jsx)(kr,{children:(0,Ee.jsx)(xt.ZP.P,{children:(0,Ee.jsx)(kt.Z,{id:"client.two-factor-connector.successfulText"})})})]})),(0,Ee.jsx)(br,{children:(0,Ee.jsx)(gt.Z,{label:a("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:t})})]}):(0,Ee.jsxs)(Ee.Fragment,{children:[Qn||(Qn=(0,Ee.jsxs)(wr,{children:[(0,Ee.jsx)(Or,{isSuccessful:!1,children:(0,Ee.jsx)(Ce.Z,{icon:"times"})}),(0,Ee.jsx)(kr,{children:(0,Ee.jsx)(xt.ZP.P,{children:(0,Ee.jsx)(kt.Z,{id:"client.two-factor-connector.errorText"})})})]})),(0,Ee.jsx)(br,{children:(0,Ee.jsx)(gt.Z,{label:a("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:n})})]})};var _r={success:function(){return{type:ur}},goToStart:gr};const Sr=(0,f.connect)((function(e){return{setupSuccessful:e.twoFactorConnector.setupSuccessful}}),_r)((0,p.ZP)(xr));var Er,Ar=Object.defineProperty,Pr=Object.getOwnPropertySymbols,jr=Object.prototype.hasOwnProperty,Cr=Object.prototype.propertyIsEnumerable,Dr=(e,t,n)=>t in e?Ar(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Tr=(e,t)=>{for(var n in t||(t={}))jr.call(t,n)&&Dr(e,n,t[n]);if(Pr)for(var n of Pr(t))Cr.call(t,n)&&Dr(e,n,t[n]);return e},Rr=(e,t)=>{var n={};for(var r in e)jr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Pr)for(var r of Pr(e))t.indexOf(r)<0&&Cr.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})(Er||(Er={})),(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={}))})(Er||(Er={})),(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={}))})(Er||(Er={}));var Ir=Er,Mr={L:Ir.QrCode.Ecc.LOW,M:Ir.QrCode.Ecc.MEDIUM,Q:Ir.QrCode.Ecc.QUARTILE,H:Ir.QrCode.Ecc.HIGH},Nr=128,Zr="L",Br="#FFFFFF",Lr="#000000",Fr=!1;
57
57
  /**
58
58
  * @license qrcode.react
59
59
  * Copyright (c) Paul O'Shannessy