tocco-widget-bundle 0.1.85 → 0.1.86

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 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,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,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,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=i(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 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 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||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 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"===a(t)?(n=t.min||0,r=t.max):(n=arguments[1],r=arguments[2]);var i=encodeURI(e).split(/%..|./).length-1;return i>=n&&(void 0===r||i<=r)};var r,o=(r=n(65571))&&r.__esModule?r:{default:r};function a(e){return a="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},a(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.substr(0,u.length-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("@"),y=g.pop(),v=y.toLowerCase();if(t.host_blacklist.includes(v))return!1;var b=g.join("@");if(t.domain_specific_validation&&("gmail.com"===v||"googlemail.com"===v)){var w=(b=b.toLowerCase()).split("+")[0];if(!(0,a.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,a.default)(b,{max:64})&&(0,a.default)(y,{max:254})))return!1;if(!(0,i.default)(y,{require_tld:t.require_tld})){if(!t.allow_ip_domain)return!1;if(!(0,c.default)(y)){if(!y.startsWith("[")||!y.endsWith("]"))return!1;var k=y.substr(1,y.length-2);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)),a=u(n(2851)),i=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:[]},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,i)).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("."),a=n[n.length-1];if(t.require_tld){if(n.length<2)return!1;if(!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(a))return!1;if(/\s/.test(a))return!1}if(!t.allow_numeric_tld&&/^\d+$/.test(a))return!1;return n.every((function(e){return!(e.length>63)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))}))};var r=a(n(65571)),o=a(n(84808));function a(e){return e&&e.__esModule?e:{default:e}}var i={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!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){if(!c.test(t))return!1;var r=t.split(".").sort((function(e,t){return e-t}));return r[3]<=255}if("6"===n)return!!s.test(t);return!1};var r,o=(r=n(65571))&&r.__esModule?r:{default:r};var a="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",i="(".concat(a,"[.]){3}").concat(a),c=new RegExp("^".concat(i,"$")),u="(?:[0-9a-fA-F]{1,4})",s=new RegExp("^("+"(?:".concat(u,":){7}(?:").concat(u,"|:)|")+"(?:".concat(u,":){6}(?:").concat(i,"|:").concat(u,"|:)|")+"(?:".concat(u,":){5}(?::").concat(i,"|(:").concat(u,"){1,2}|:)|")+"(?:".concat(u,":){4}(?:(:").concat(u,"){0,1}:").concat(i,"|(:").concat(u,"){1,3}|:)|")+"(?:".concat(u,":){3}(?:(:").concat(u,"){0,2}:").concat(i,"|(:").concat(u,"){1,4}|:)|")+"(?:".concat(u,":){2}(?:(:").concat(u,"){0,3}:").concat(i,"|(:").concat(u,"){1,5}|:)|")+"(?:".concat(u,":){1}(?:(:").concat(u,"){0,4}:").concat(i,"|(:").concat(u,"){1,6}|:)|")+"(?::((?::".concat(u,"){0,5}:").concat(i,"|(?::").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,i.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,y;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.substr(0,2)){if(!t.allow_protocol_relative_urls)return!1;g[0]=e.substr(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 v=c.split(":"),b=(k=2,function(e){if(Array.isArray(e))return e}(x=v)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}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,y=null;var _=d.match(l);_?(f="",y=_[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(!((0,a.default)(f)||(0,o.default)(f,t)||y&&(0,a.default)(y,6)))return!1;if(f=f||y,t.host_blacklist&&p(f,t.host_blacklist))return!1;return!0};var r=c(n(65571)),o=c(n(10221)),a=c(n(61028)),i=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 a=t.valueOf(),i=n.valueOf();if(a!==t||i!==n)return e(a,i);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})},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=>288===e?"chunk-ckeditor.bbf2fa9f117b3f02ab7f.js":"chunk-"+({85:"code-editor",107:"actions",141:"docs-actions",198:"vendor-fontawesome",614:"vendor-icons",877:"vendor-libphonenumber-js"}[e]||e)+"."+{81:"1d9af81de5e3c4382bb7",85:"53f87324a9cdf768c2d6",107:"7d77eac49a0693393a04",141:"31a2d8dfe1361565593e",198:"a0cda93a7c309e205cee",344:"5fb085e77cd785f062a2",560:"1167aa643a37224ff6eb",608:"2ceca36ebad2214cefa4",614:"48645669f4231a6ea98e",759:"9337b4e21a78c273072d",817:"5758e51444b678849e3d",877:"04702eeaaa7a6d567205"}[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-widget-bundle:",i.l=(e,t,o,a)=>{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,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),u&&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=243,i.p="/",(()=>{var e={243: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,u]=n,s=0;if(a.some((t=>0!==e[t]))){for(r in c)i.o(c,r)&&(i.m[r]=c[r]);if(u)u(i)}for(t&&t(n);s<a.length;s++)o=a[s],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_widget_bundle=self.webpackChunktocco_widget_bundle||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),i.nc=void 0;var c={};return(()=>{"use strict";i.r(c);var e,t=i(79013),n=i(45697),r=i.n(n),o=i(81749),a=i(23369),u=i(44362),s=i(74806),l=i(50558),p=i(59713),f=i.n(p),d=i(87757),h=i.n(d),m=i(27361),g=i.n(m),y=i(81719),v=i(47488),b=i(52540),w=i(83682),O=i(41609),x=i.n(O),k=i(18446),_=i.n(k),E=i(35937),S=i.n(E),j=i(1024),P=i.n(j),A=i(56746),C=i(50600),D=i(87533),T=i(22731),R=i(19743),Z=i(19241),I="login/SET_LOGGED_IN",M="login/SET_ADMIN_ALLOWED",N="login/DO_SESSION_CHECK",B=function(e){return{type:I,payload:{loggedIn:e}}},F=function(e){return{type:M,payload:{adminAllowed:e}}},L=i(81770),H=(e={},f()(e,I,L.Z.singleTransferReducer("loggedIn")),f()(e,M,L.Z.singleTransferReducer("adminAllowed")),e),U={loggedIn:void 0,adminAllowed:void 0};function W(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:U,t=arguments.length>1?arguments[1]:void 0,n=H[t.type];return n?n(e,t):e}var V=i(34857),z=i(44759),q=i(54159),Y=i(21913),G=i(27023),K=h().mark(J),$=h().mark(ee),X=h().mark(te);function Q(e,t){return q.Z.executeRequest(e,t).then(q.Z.extractBody).catch((function(e){return z.Z.logError("Failed to execute request",e),{success:!1}}))}function J(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.RE)(Q,"session",{method:"POST"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),K)}function ee(){var e,t,n,r,o;return h().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,V.RE)(J);case 2:if(e=a.sent,t=e.success,n=e.businessUnit,r=e.adminAllowed,!(o=Y.Z.getLongTerm("session","principal"))||o.currentBusinessUnit.id===n){a.next=10;break}return a.next=10,(0,V.RE)(Y.Z.clearAll);case 10:return a.next=12,(0,V.gz)(F(r));case 12:return a.next=14,(0,V.gz)(B(t));case 14:return a.next=16,(0,V.gz)(G.Z.connectSocket());case 16:case"end":return a.stop()}}),$)}function te(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.$6)([(0,V.Fm)(N,ee)]);case 2:case"end":return e.stop()}}),X)}const ne=function(e){L.Z.injectReducers(e,{login:W}),e.sagaMiddleware.run(te)},re=function(){return{type:N}};var oe,ae=i(99376),ie=i(35997),ce=i(41654),ue="SET_ENTITY_NAME",se="SET_FORM_BASE",le="SET_SCROLL_BEHAVIOUR",pe="root/SET_APP_ID",fe=function(e){return{type:se,payload:{formBase:e}}},de=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return ce.Z.getDispatchActions(e,he,t)},he=[{name:"entityName",action:function(e){return{type:ue,payload:{entityName:e}}},mandatory:!0,argsFactory:function(e){return[e.entityName]}},{name:"entityName",action:fe,argsFactory:function(e){return[e.formBase||e.entityName]}},{name:"formBase",action:fe,argsFactory:function(e){return[e.formBase]}},{name:"scrollBehaviour",action:function(e){return{type:le,payload:{scrollBehaviour:e}}},argsFactory:function(e){return[e.scrollBehaviour]}},{name:"id",action:function(e){return{type:pe,payload:{appId:e}}},argsFactory:function(e){return[e.id||(new Date).valueOf()]}}],me=i(85300),ge=i(6766),ye=(oe={},f()(oe,ge.zg,L.Z.singleTransferReducer("formTouched")),f()(oe,ge.zJ,L.Z.singleTransferReducer("detailParams")),oe),ve={detailParams:void 0,formTouched:!1};var be=h().mark(ke);function we(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 Oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?we(Object(n),!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xe=function(e){var t={};return e.fields.forEach((function(e){t[e.fieldName]=Oe({},e)})),e.relations.forEach((function(e){t[e.relationName]=Oe({type:"relation"},e)})),t};function ke(e){var t,n,r=arguments;return h().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return t=r.length>1&&void 0!==r[1]?r[1]:xe,o.next=3,(0,V.RE)(y.Z.requestSaga,"entities/".concat(e,"/model"));case 3:return n=o.sent,o.next=6,(0,V.RE)(t,n.body);case 6:return o.abrupt("return",o.sent);case 7:case"end":return o.stop()}}),be)}var _e={CREATE:"create",UPDATE:"update"};const Ee=function(e){return void 0===e?_e.CREATE:_e.UPDATE};const Se=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 je=function(e,t){return 0!==t.length||(!e||isNaN(e))};var Pe=h().mark(Ze),Ae=h().mark(Ie),Ce=h().mark(Me),De=h().mark(Ne),Te=function(e){return e.entityBrowser},Re=function(e){return e.input};function Ze(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.$6)([(0,V.Fm)(ge.tQ,Me),(0,V.Fm)(ge.eI,Ie)]);case 2:case"end":return e.stop()}}),Pe)}function Ie(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.gz)(ge.Ek(void 0));case 2:case"end":return e.stop()}}),Ae)}function Me(e){var t,n,r,o,a,i,c,u,s,l,p,f,d,m,g;return h().wrap((function(h){for(;;)switch(h.prev=h.next){case 0:return t=e.payload,h.next=3,(0,V.RE)(Se,t.url);case 3:return n=h.sent,r=n.modelPaths,o=n.entityId,a=n.parentUrl,h.next=9,(0,V.Ys)(Te);case 9:return i=h.sent,c=i.entityName,u=i.formBase,h.next=14,(0,V.RE)(Ee,o);case 14:if(s=h.sent,l=c,p=u,!(r&&r.length>0)){h.next=22;break}return h.next=20,(0,V.RE)(Ne,c,r);case 20:l=h.sent,p="".concat(u,"_").concat(l);case 22:return h.next=24,(0,V.Ys)(Re);case 24:return f=h.sent,d=f.initialKey,h.next=28,(0,V.RE)(je,d,r);case 28:return m=h.sent,g={mode:s,entityId:o,entityName:l,formName:p,parentUrl:a,showBackButton:m},h.next=32,(0,V.gz)(ge.Ek(g));case 32:case"end":return h.stop()}}),Ce)}function Ne(e,t){var n,r,o,a,i;return h().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return n=e,c.next=3,(0,V.RE)(ke,n);case 3:r=c.sent,o=0;case 5:if(!(o<t.length)){c.next=18;break}if(a=t[o],i=r[a]){c.next=10;break}throw new Error("No such path '".concat(a,"' found on entity model '").concat(n,"'"));case 10:if(n=i.targetEntity,!(o+1<t.length)){c.next=15;break}return c.next=14,(0,V.RE)(ke,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()}}),De)}var Be=h().mark(Fe);function Fe(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.$6)([(0,V.rM)(Ze)]);case 2:case"end":return e.stop()}}),Be)}const Le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ve,t=arguments.length>1?arguments[1]:void 0,n=ye[t.type];return n?n(e,t):e};var He;function Ue(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 We(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ue(Object(n),!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ve=(He={},f()(He,ue,L.Z.singleTransferReducer("entityName")),f()(He,se,(function(e,t){var n=t.payload.formBase;return n?We(We({},e),{},{formBase:n}):We({},e)})),f()(He,le,L.Z.singleTransferReducer("scrollBehaviour")),f()(He,pe,L.Z.singleTransferReducer("appId")),He),ze={entityName:"",formBase:"",scrollBehaviour:"none",appId:""};var qe=h().mark(Ge),Ye=h().mark(Ke);function Ge(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.$6)([(0,V.RE)(Ke)]);case 2:case"end":return e.stop()}}),qe)}function Ke(){return h().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)(re());case 4:case"end":return e.stop()}}),Ye)}var $e=h().mark(Xe);function Xe(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.$6)([(0,V.rM)(Ge)]);case 2:case"end":return e.stop()}}),$e)}const Qe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ze,t=arguments.length>1?arguments[1]:void 0,n=Ve[t.type];return n?n(e,t):e},Je={detail:Le,form:me.Z,entityBrowser:Qe};var et,tt,nt,rt=[Xe,Fe],ot=i(85893);function at(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 it(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?at(Object(n),!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ct="entity-browser",ut=["onVisibilityStatusChange"],st=P().lazy((function(){return Promise.all([i.e(81),i.e(141),i.e(614),i.e(198),i.e(344)]).then(i.bind(i,27344))})),lt=function(){return et||(et=(0,ot.jsx)(j.Suspense,{fallback:"",children:(0,ot.jsx)(st,{})}))},pt=function(e,t){return e.intl.messages[t]||t},ft=function(e,n,r,o){n=it(it({},n),{},{id:e}),a.Z.setInputEnvs(n);var i=t.Z.createStore(Je,rt,n,ct);Z.Z.addToStore(i,(function(e){return t.Z.getEvents(ut,e.input)})),C.Z.addToStore(i),D.Z.dynamicActionsAddToStore(i),R.Z.addToStore(i,!0,["console","remote","notification"]),G.Z.addToStore(i,!0),ne(i),T.Z.addToStore(i);var c=function(e,t){return(t?w.Z:b.Z)({getUserConfirmation:function(t,n){var r=e.getState(),o=pt(r,"client.common.ok"),a=pt(r,"client.common.cancel"),i=G.Z.confirm("",t,o,a,(function(){return n(!0)}),(function(){return n(!1)}));e.dispatch(i)}})}(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)}}(c,n);var u=(0,ot.jsxs)(A.F0,{history:c,children:[tt||(tt=(0,ot.jsx)(ae.Z,{})),nt||(nt=(0,ot.jsx)(lt,{}))]});return t.Z.createApp(ct,u,i,{input:n,actions:de(n),publicPath:o,textResourceModules:["component","common","actions","entity-list","entity-detail"]})},dt=function(e){var n=t.Z.useApp({initApp:ft,props:e,packageName:ct}),r=n.component,o=n.store,a=ie.Z.usePrevious(e);return ie.Z.useDidUpdate((function(){var t=S()(e,(function(e,t){return!_()(e,a[t])}));x()(t)||de(t,!1).forEach((function(e){o.dispatch(e)}))}),[e]),r};dt.propTypes=it({entityName:r().string.isRequired,searchFormType:o.b,formBase:r().string,limit:r().number,preselectedSearchFields:r().array,searchFilters:r().arrayOf(r().string),simpleSearchFields:r().string,initialKey:r().string,businessUnit:r().string,memoryHistory:r().bool,backendUrl:r().string,scrollBehaviour:r().string,appContext:u.Z.propTypes,modifyFormDefinition:r().func,disableDetailView:r().bool,reportIds:r().arrayOf(r().string)},Z.Z.createPropTypes(ut));const ht=dt;t.Z.createBundleableApp(ct,ft,dt);var mt=h().mark(vt);function gt(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 yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gt(Object(n),!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vt(e,t,n){var r,o,a,i,c,u,s;return h().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(r=t.parent,o=t.entityName,a=t.entityId,i=n.showEmailAction,c=n.appContext,"Mailing_list_detail_relUser_list"!==e.id){l.next=6;break}return u=e,u=i?v.Z.adjustActions(u,"mailing-list-mail-action",(function(e){return yt(yt({},e),{},{properties:yt(yt({},e.properties),{},{widgetKey:c.widgetConfigKey,eventKey:r.key})})})):v.Z.removeActions(u,["mailing-list-mail-action"]),l.abrupt("return",u);case 6:if("Mailing_list_User_detail"!==e.id||!a){l.next=13;break}return l.next=9,y.Z.fetchEntity(o,a,{paths:["publish_detail"]});case 9:if(s=l.sent,g()(s,["paths","publish_detail","value"])){l.next=13;break}return l.abrupt("return",v.Z.removeBoxes(e,["address_information","communication_information"]));case 13:return l.abrupt("return",e);case 14:case"end":return l.stop()}}),mt)}const bt=function(e){var t=e.searchFilters,n=e.searchFormType,r=e.limit,o=e.backendUrl,a=e.businessUnit,i=e.appContext,c=e.reportIds;return(0,ot.jsx)(ht,{entityName:"Event",formBase:"Mailing_list",searchFilters:t,limit:r,modifyFormDefinition:function(t,n){return vt(t,n,e)},backendUrl:o,businessUnit:a,appContext:i,searchFormType:n,reportIds:c})};const wt=(0,l.connect)((function(e){return{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,showEmailAction:e.input.allowEmail}}),{})((0,s.ZP)(bt));var Ot,xt="mailing-list",kt=function(e,n,r,o){a.Z.setInputEnvs(n);var i=Ot||(Ot=(0,ot.jsx)(wt,{})),c=t.Z.createStore({},null,n,xt);return t.Z.createApp(xt,i,c,{input:n,events:r,actions:[],publicPath:o,textResourceModules:["component","common","actions",xt]})},_t=function(e){return t.Z.useApp({initApp:kt,props:e,packageName:xt}).component};_t.propTypes={searchFormType:o.b,searchFilters:r().arrayOf(r().string),limit:r().number,backendUrl:r().string,businessUnit:r().string,appContext:u.Z.propTypes.isRequired,reportIds:r().arrayOf(r().string),allowEmail:r().bool};var Et=t.Z.createBundleableApp(xt,kt,_t);t.Z.registerAppInRegistry(Et.name,Et.init)})(),c})()));
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,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,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,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=i(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 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 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||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 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"===a(t)?(n=t.min||0,r=t.max):(n=arguments[1],r=arguments[2]);var i=encodeURI(e).split(/%..|./).length-1;return i>=n&&(void 0===r||i<=r)};var r,o=(r=n(65571))&&r.__esModule?r:{default:r};function a(e){return a="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},a(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.substr(0,u.length-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("@"),y=g.pop(),v=y.toLowerCase();if(t.host_blacklist.includes(v))return!1;var b=g.join("@");if(t.domain_specific_validation&&("gmail.com"===v||"googlemail.com"===v)){var w=(b=b.toLowerCase()).split("+")[0];if(!(0,a.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,a.default)(b,{max:64})&&(0,a.default)(y,{max:254})))return!1;if(!(0,i.default)(y,{require_tld:t.require_tld})){if(!t.allow_ip_domain)return!1;if(!(0,c.default)(y)){if(!y.startsWith("[")||!y.endsWith("]"))return!1;var k=y.substr(1,y.length-2);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)),a=u(n(2851)),i=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:[]},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,i)).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("."),a=n[n.length-1];if(t.require_tld){if(n.length<2)return!1;if(!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(a))return!1;if(/\s/.test(a))return!1}if(!t.allow_numeric_tld&&/^\d+$/.test(a))return!1;return n.every((function(e){return!(e.length>63)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))}))};var r=a(n(65571)),o=a(n(84808));function a(e){return e&&e.__esModule?e:{default:e}}var i={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!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){if(!c.test(t))return!1;var r=t.split(".").sort((function(e,t){return e-t}));return r[3]<=255}if("6"===n)return!!s.test(t);return!1};var r,o=(r=n(65571))&&r.__esModule?r:{default:r};var a="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",i="(".concat(a,"[.]){3}").concat(a),c=new RegExp("^".concat(i,"$")),u="(?:[0-9a-fA-F]{1,4})",s=new RegExp("^("+"(?:".concat(u,":){7}(?:").concat(u,"|:)|")+"(?:".concat(u,":){6}(?:").concat(i,"|:").concat(u,"|:)|")+"(?:".concat(u,":){5}(?::").concat(i,"|(:").concat(u,"){1,2}|:)|")+"(?:".concat(u,":){4}(?:(:").concat(u,"){0,1}:").concat(i,"|(:").concat(u,"){1,3}|:)|")+"(?:".concat(u,":){3}(?:(:").concat(u,"){0,2}:").concat(i,"|(:").concat(u,"){1,4}|:)|")+"(?:".concat(u,":){2}(?:(:").concat(u,"){0,3}:").concat(i,"|(:").concat(u,"){1,5}|:)|")+"(?:".concat(u,":){1}(?:(:").concat(u,"){0,4}:").concat(i,"|(:").concat(u,"){1,6}|:)|")+"(?::((?::".concat(u,"){0,5}:").concat(i,"|(?::").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,i.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,y;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.substr(0,2)){if(!t.allow_protocol_relative_urls)return!1;g[0]=e.substr(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 v=c.split(":"),b=(k=2,function(e){if(Array.isArray(e))return e}(x=v)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}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,y=null;var _=d.match(l);_?(f="",y=_[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(!((0,a.default)(f)||(0,o.default)(f,t)||y&&(0,a.default)(y,6)))return!1;if(f=f||y,t.host_blacklist&&p(f,t.host_blacklist))return!1;return!0};var r=c(n(65571)),o=c(n(10221)),a=c(n(61028)),i=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 a=t.valueOf(),i=n.valueOf();if(a!==t||i!==n)return e(a,i);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})},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=>288===e?"chunk-ckeditor.bbf2fa9f117b3f02ab7f.js":"chunk-"+({85:"code-editor",107:"actions",141:"docs-actions",198:"vendor-fontawesome",614:"vendor-icons",877:"vendor-libphonenumber-js"}[e]||e)+"."+{81:"1d9af81de5e3c4382bb7",85:"53f87324a9cdf768c2d6",107:"7d77eac49a0693393a04",141:"31a2d8dfe1361565593e",198:"a0cda93a7c309e205cee",344:"5fb085e77cd785f062a2",560:"1167aa643a37224ff6eb",608:"7974d74d5f0d2607fd90",614:"ff9f89de3217436dd727",759:"9337b4e21a78c273072d",817:"5758e51444b678849e3d",877:"04702eeaaa7a6d567205"}[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-widget-bundle:",i.l=(e,t,o,a)=>{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,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),u&&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=243,i.p="/",(()=>{var e={243: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,u]=n,s=0;if(a.some((t=>0!==e[t]))){for(r in c)i.o(c,r)&&(i.m[r]=c[r]);if(u)u(i)}for(t&&t(n);s<a.length;s++)o=a[s],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_widget_bundle=self.webpackChunktocco_widget_bundle||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),i.nc=void 0;var c={};return(()=>{"use strict";i.r(c);var e,t=i(79013),n=i(45697),r=i.n(n),o=i(81749),a=i(23369),u=i(44362),s=i(74806),l=i(50558),p=i(59713),f=i.n(p),d=i(87757),h=i.n(d),m=i(27361),g=i.n(m),y=i(81719),v=i(47488),b=i(52540),w=i(83682),O=i(41609),x=i.n(O),k=i(18446),_=i.n(k),E=i(35937),S=i.n(E),j=i(1024),P=i.n(j),A=i(56746),C=i(50600),D=i(87533),T=i(22731),R=i(19743),Z=i(19241),I="login/SET_LOGGED_IN",M="login/SET_ADMIN_ALLOWED",N="login/DO_SESSION_CHECK",B=function(e){return{type:I,payload:{loggedIn:e}}},F=function(e){return{type:M,payload:{adminAllowed:e}}},L=i(81770),H=(e={},f()(e,I,L.Z.singleTransferReducer("loggedIn")),f()(e,M,L.Z.singleTransferReducer("adminAllowed")),e),U={loggedIn:void 0,adminAllowed:void 0};function W(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:U,t=arguments.length>1?arguments[1]:void 0,n=H[t.type];return n?n(e,t):e}var V=i(34857),z=i(44759),q=i(54159),Y=i(21913),G=i(27023),K=h().mark(J),$=h().mark(ee),X=h().mark(te);function Q(e,t){return q.Z.executeRequest(e,t).then(q.Z.extractBody).catch((function(e){return z.Z.logError("Failed to execute request",e),{success:!1}}))}function J(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.RE)(Q,"session",{method:"POST"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),K)}function ee(){var e,t,n,r,o;return h().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,V.RE)(J);case 2:if(e=a.sent,t=e.success,n=e.businessUnit,r=e.adminAllowed,!(o=Y.Z.getLongTerm("session","principal"))||o.currentBusinessUnit.id===n){a.next=10;break}return a.next=10,(0,V.RE)(Y.Z.clearAll);case 10:return a.next=12,(0,V.gz)(F(r));case 12:return a.next=14,(0,V.gz)(B(t));case 14:return a.next=16,(0,V.gz)(G.Z.connectSocket());case 16:case"end":return a.stop()}}),$)}function te(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.$6)([(0,V.Fm)(N,ee)]);case 2:case"end":return e.stop()}}),X)}const ne=function(e){L.Z.injectReducers(e,{login:W}),e.sagaMiddleware.run(te)},re=function(){return{type:N}};var oe,ae=i(99376),ie=i(35997),ce=i(41654),ue="SET_ENTITY_NAME",se="SET_FORM_BASE",le="SET_SCROLL_BEHAVIOUR",pe="root/SET_APP_ID",fe=function(e){return{type:se,payload:{formBase:e}}},de=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return ce.Z.getDispatchActions(e,he,t)},he=[{name:"entityName",action:function(e){return{type:ue,payload:{entityName:e}}},mandatory:!0,argsFactory:function(e){return[e.entityName]}},{name:"entityName",action:fe,argsFactory:function(e){return[e.formBase||e.entityName]}},{name:"formBase",action:fe,argsFactory:function(e){return[e.formBase]}},{name:"scrollBehaviour",action:function(e){return{type:le,payload:{scrollBehaviour:e}}},argsFactory:function(e){return[e.scrollBehaviour]}},{name:"id",action:function(e){return{type:pe,payload:{appId:e}}},argsFactory:function(e){return[e.id||(new Date).valueOf()]}}],me=i(85300),ge=i(6766),ye=(oe={},f()(oe,ge.zg,L.Z.singleTransferReducer("formTouched")),f()(oe,ge.zJ,L.Z.singleTransferReducer("detailParams")),oe),ve={detailParams:void 0,formTouched:!1};var be=h().mark(ke);function we(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 Oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?we(Object(n),!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xe=function(e){var t={};return e.fields.forEach((function(e){t[e.fieldName]=Oe({},e)})),e.relations.forEach((function(e){t[e.relationName]=Oe({type:"relation"},e)})),t};function ke(e){var t,n,r=arguments;return h().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return t=r.length>1&&void 0!==r[1]?r[1]:xe,o.next=3,(0,V.RE)(y.Z.requestSaga,"entities/".concat(e,"/model"));case 3:return n=o.sent,o.next=6,(0,V.RE)(t,n.body);case 6:return o.abrupt("return",o.sent);case 7:case"end":return o.stop()}}),be)}var _e={CREATE:"create",UPDATE:"update"};const Ee=function(e){return void 0===e?_e.CREATE:_e.UPDATE};const Se=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 je=function(e,t){return 0!==t.length||(!e||isNaN(e))};var Pe=h().mark(Ze),Ae=h().mark(Ie),Ce=h().mark(Me),De=h().mark(Ne),Te=function(e){return e.entityBrowser},Re=function(e){return e.input};function Ze(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.$6)([(0,V.Fm)(ge.tQ,Me),(0,V.Fm)(ge.eI,Ie)]);case 2:case"end":return e.stop()}}),Pe)}function Ie(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.gz)(ge.Ek(void 0));case 2:case"end":return e.stop()}}),Ae)}function Me(e){var t,n,r,o,a,i,c,u,s,l,p,f,d,m,g;return h().wrap((function(h){for(;;)switch(h.prev=h.next){case 0:return t=e.payload,h.next=3,(0,V.RE)(Se,t.url);case 3:return n=h.sent,r=n.modelPaths,o=n.entityId,a=n.parentUrl,h.next=9,(0,V.Ys)(Te);case 9:return i=h.sent,c=i.entityName,u=i.formBase,h.next=14,(0,V.RE)(Ee,o);case 14:if(s=h.sent,l=c,p=u,!(r&&r.length>0)){h.next=22;break}return h.next=20,(0,V.RE)(Ne,c,r);case 20:l=h.sent,p="".concat(u,"_").concat(l);case 22:return h.next=24,(0,V.Ys)(Re);case 24:return f=h.sent,d=f.initialKey,h.next=28,(0,V.RE)(je,d,r);case 28:return m=h.sent,g={mode:s,entityId:o,entityName:l,formName:p,parentUrl:a,showBackButton:m},h.next=32,(0,V.gz)(ge.Ek(g));case 32:case"end":return h.stop()}}),Ce)}function Ne(e,t){var n,r,o,a,i;return h().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return n=e,c.next=3,(0,V.RE)(ke,n);case 3:r=c.sent,o=0;case 5:if(!(o<t.length)){c.next=18;break}if(a=t[o],i=r[a]){c.next=10;break}throw new Error("No such path '".concat(a,"' found on entity model '").concat(n,"'"));case 10:if(n=i.targetEntity,!(o+1<t.length)){c.next=15;break}return c.next=14,(0,V.RE)(ke,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()}}),De)}var Be=h().mark(Fe);function Fe(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.$6)([(0,V.rM)(Ze)]);case 2:case"end":return e.stop()}}),Be)}const Le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ve,t=arguments.length>1?arguments[1]:void 0,n=ye[t.type];return n?n(e,t):e};var He;function Ue(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 We(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ue(Object(n),!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ve=(He={},f()(He,ue,L.Z.singleTransferReducer("entityName")),f()(He,se,(function(e,t){var n=t.payload.formBase;return n?We(We({},e),{},{formBase:n}):We({},e)})),f()(He,le,L.Z.singleTransferReducer("scrollBehaviour")),f()(He,pe,L.Z.singleTransferReducer("appId")),He),ze={entityName:"",formBase:"",scrollBehaviour:"none",appId:""};var qe=h().mark(Ge),Ye=h().mark(Ke);function Ge(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.$6)([(0,V.RE)(Ke)]);case 2:case"end":return e.stop()}}),qe)}function Ke(){return h().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)(re());case 4:case"end":return e.stop()}}),Ye)}var $e=h().mark(Xe);function Xe(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.$6)([(0,V.rM)(Ge)]);case 2:case"end":return e.stop()}}),$e)}const Qe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ze,t=arguments.length>1?arguments[1]:void 0,n=Ve[t.type];return n?n(e,t):e},Je={detail:Le,form:me.Z,entityBrowser:Qe};var et,tt,nt,rt=[Xe,Fe],ot=i(85893);function at(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 it(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?at(Object(n),!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ct="entity-browser",ut=["onVisibilityStatusChange"],st=P().lazy((function(){return Promise.all([i.e(81),i.e(141),i.e(614),i.e(198),i.e(344)]).then(i.bind(i,27344))})),lt=function(){return et||(et=(0,ot.jsx)(j.Suspense,{fallback:"",children:(0,ot.jsx)(st,{})}))},pt=function(e,t){return e.intl.messages[t]||t},ft=function(e,n,r,o){n=it(it({},n),{},{id:e}),a.Z.setInputEnvs(n);var i=t.Z.createStore(Je,rt,n,ct);Z.Z.addToStore(i,(function(e){return t.Z.getEvents(ut,e.input)})),C.Z.addToStore(i),D.Z.dynamicActionsAddToStore(i),R.Z.addToStore(i,!0,["console","remote","notification"]),G.Z.addToStore(i,!0),ne(i),T.Z.addToStore(i);var c=function(e,t){return(t?w.Z:b.Z)({getUserConfirmation:function(t,n){var r=e.getState(),o=pt(r,"client.common.ok"),a=pt(r,"client.common.cancel"),i=G.Z.confirm("",t,o,a,(function(){return n(!0)}),(function(){return n(!1)}));e.dispatch(i)}})}(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)}}(c,n);var u=(0,ot.jsxs)(A.F0,{history:c,children:[tt||(tt=(0,ot.jsx)(ae.Z,{})),nt||(nt=(0,ot.jsx)(lt,{}))]});return t.Z.createApp(ct,u,i,{input:n,actions:de(n),publicPath:o,textResourceModules:["component","common","actions","entity-list","entity-detail"]})},dt=function(e){var n=t.Z.useApp({initApp:ft,props:e,packageName:ct}),r=n.component,o=n.store,a=ie.Z.usePrevious(e);return ie.Z.useDidUpdate((function(){var t=S()(e,(function(e,t){return!_()(e,a[t])}));x()(t)||de(t,!1).forEach((function(e){o.dispatch(e)}))}),[e]),r};dt.propTypes=it({entityName:r().string.isRequired,searchFormType:o.b,formBase:r().string,limit:r().number,preselectedSearchFields:r().array,searchFilters:r().arrayOf(r().string),simpleSearchFields:r().string,initialKey:r().string,businessUnit:r().string,memoryHistory:r().bool,backendUrl:r().string,scrollBehaviour:r().string,appContext:u.Z.propTypes,modifyFormDefinition:r().func,disableDetailView:r().bool,reportIds:r().arrayOf(r().string)},Z.Z.createPropTypes(ut));const ht=dt;t.Z.createBundleableApp(ct,ft,dt);var mt=h().mark(vt);function gt(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 yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gt(Object(n),!0).forEach((function(t){f()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vt(e,t,n){var r,o,a,i,c,u,s;return h().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(r=t.parent,o=t.entityName,a=t.entityId,i=n.showEmailAction,c=n.appContext,"Mailing_list_detail_relUser_list"!==e.id){l.next=6;break}return u=e,u=i?v.Z.adjustActions(u,"mailing-list-mail-action",(function(e){return yt(yt({},e),{},{properties:yt(yt({},e.properties),{},{widgetKey:c.widgetConfigKey,eventKey:r.key})})})):v.Z.removeActions(u,["mailing-list-mail-action"]),l.abrupt("return",u);case 6:if("Mailing_list_User_detail"!==e.id||!a){l.next=13;break}return l.next=9,y.Z.fetchEntity(o,a,{paths:["publish_detail"]});case 9:if(s=l.sent,g()(s,["paths","publish_detail","value"])){l.next=13;break}return l.abrupt("return",v.Z.removeBoxes(e,["address_information","communication_information"]));case 13:return l.abrupt("return",e);case 14:case"end":return l.stop()}}),mt)}const bt=function(e){var t=e.searchFilters,n=e.searchFormType,r=e.limit,o=e.backendUrl,a=e.businessUnit,i=e.appContext,c=e.reportIds;return(0,ot.jsx)(ht,{entityName:"Event",formBase:"Mailing_list",searchFilters:t,limit:r,modifyFormDefinition:function(t,n){return vt(t,n,e)},backendUrl:o,businessUnit:a,appContext:i,searchFormType:n,reportIds:c})};const wt=(0,l.connect)((function(e){return{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,showEmailAction:e.input.allowEmail}}),{})((0,s.ZP)(bt));var Ot,xt="mailing-list",kt=function(e,n,r,o){a.Z.setInputEnvs(n);var i=Ot||(Ot=(0,ot.jsx)(wt,{})),c=t.Z.createStore({},null,n,xt);return t.Z.createApp(xt,i,c,{input:n,events:r,actions:[],publicPath:o,textResourceModules:["component","common","actions",xt]})},_t=function(e){return t.Z.useApp({initApp:kt,props:e,packageName:xt}).component};_t.propTypes={searchFormType:o.b,searchFilters:r().arrayOf(r().string),limit:r().number,backendUrl:r().string,businessUnit:r().string,appContext:u.Z.propTypes.isRequired,reportIds:r().arrayOf(r().string),allowEmail:r().bool};var Et=t.Z.createBundleableApp(xt,kt,_t);t.Z.registerAppInRegistry(Et.name,Et.init)})(),c})()));
@@ -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=>288===e?"chunk-ckeditor.bbf2fa9f117b3f02ab7f.js":"chunk-"+({85:"code-editor",198:"vendor-fontawesome",614:"vendor-icons",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"53f87324a9cdf768c2d6",198:"a0cda93a7c309e205cee",560:"1167aa643a37224ff6eb",608:"2ceca36ebad2214cefa4",614:"48645669f4231a6ea98e",759:"9337b4e21a78c273072d",817:"5758e51444b678849e3d",877:"04702eeaaa7a6d567205"}[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-widget-bundle:",i.l=(e,t,o,a)=>{if(n[e])n[e].push(t);else{var c,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var p=u[l];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==r+o){c=p;break}}c||(s=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.setAttribute("data-webpack",r+o),c.src=e),n[e]=[t];var f=(t,r)=>{c.onerror=c.onload=null,clearTimeout(d);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(r))),t)return t(r)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=f.bind(null,c.onerror),c.onload=f.bind(null,c.onload),s&&document.head.appendChild(c)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.j=201,i.p="/",(()=>{var e={201:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var a=i.p+i.u(t),c=new Error;i.l(a,(n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",c.name="ChunkLoadError",c.type=o,c.request=a,r[1](c)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,c,s]=n,u=0;if(a.some((t=>0!==e[t]))){for(r in c)i.o(c,r)&&(i.m[r]=c[r]);if(s)s(i)}for(t&&t(n);u<a.length;u++)o=a[u],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_widget_bundle=self.webpackChunktocco_widget_bundle||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),i.nc=void 0;var c={};return(()=>{"use strict";i.r(c);var e=i(79013),t=i(59713),n=i.n(t),r=i(45697),o=i.n(r),a=i(22731),s=i(19743),u=i(19241),l=i(23369),p=i(98773);const f={propTypes:o().shape({embedType:o().oneOf(p.Nc),widgetConfigKey:function(e,t,n){if("widget"===e.embedType&&!e[t])return new Error("Prop `"+t+"` is missing for `"+n+"`. Validation failed.")}})};var d=i(74806),h=i(50558),m=i(28655),g=i.n(m),v=i(1024),y=i.n(v),b=i(38205),w=i(48926),O=i.n(w),x=i(63038),k=i.n(x),_=i(87757),S=i.n(_),E=i(99860),A=i.n(E);function P(){return P=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},P.apply(this,arguments)}function C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var j=function(e){var t,n;function r(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(C(t)),t.handleErrored=t.handleErrored.bind(C(t)),t.handleChange=t.handleChange.bind(C(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(C(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 y().createElement("div",P({},t,{ref:this.handleRecaptchaRef}))},r}(y().Component);j.displayName="ReCAPTCHA",j.propTypes={sitekey:A().string.isRequired,onChange:A().func,grecaptcha:A().object,theme:A().oneOf(["dark","light"]),type:A().oneOf(["image","audio"]),tabindex:A().number,onExpired:A().func,onErrored:A().func,size:A().oneOf(["compact","normal","invisible"]),stoken:A().string,hl:A().string,badge:A().oneOf(["bottomright","bottomleft","inline"])},j.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var D=i(9657),T=i.n(D),R=i(8679),I=i.n(R);function M(){return M=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},M.apply(this,arguments)}var N={},Z=0;var B="onloadcallback";const L=(F=function(){return"https://"+(("undefined"!=typeof window&&window.recaptchaOptions||{}).useRecaptchaNet?"recaptcha.net":"www.google.com")+"/recaptcha/api.js?onload="+B+"&render=explicit"},H=(H={callbackName:B,globalName:"grecaptcha"})||{},function(e){var t=e.displayName||e.name||"Component",n=function(t){var n,r;function o(e,n){var r;return(r=t.call(this,e,n)||this).state={},r.__scriptURL="",r}r=t,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r;var a=o.prototype;return a.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+Z++),this.__scriptLoaderID},a.setupScriptURL=function(){return this.__scriptURL="function"==typeof F?F():F,this.__scriptURL},a.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,(function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)}))},a.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=N[this.__scriptURL];if(!e||!e.loaded)throw new Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[H.callbackName]},a.componentDidMount=function(){var e=this,t=this.setupScriptURL(),n=this.asyncScriptLoaderGetScriptLoaderID(),r=H,o=r.globalName,a=r.callbackName,i=r.scriptId;if(o&&void 0!==window[o]&&(N[t]={loaded:!0,observers:{}}),N[t]){var c=N[t];return c&&(c.loaded||c.errored)?void this.asyncScriptLoaderHandleLoad(c):void(c.observers[n]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var s={};s[n]=function(t){return e.asyncScriptLoaderHandleLoad(t)},N[t]={loaded:!1,observers:s};var u=document.createElement("script");for(var l in u.src=t,u.async=!0,H.attributes)u.setAttribute(l,H.attributes[l]);i&&(u.id=i);var p=function(e){if(N[t]){var n=N[t].observers;for(var r in n)e(n[r])&&delete n[r]}};a&&"undefined"!=typeof window&&(window[a]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),u.onload=function(){var e=N[t];e&&(e.loaded=!0,p((function(t){return!a&&(t(e),!0)})))},u.onerror=function(){var e=N[t];e&&(e.errored=!0,p((function(t){return t(e),!0})))},document.body.appendChild(u)},a.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===H.removeOnUnmount)for(var t=document.getElementsByTagName("script"),n=0;n<t.length;n+=1)t[n].src.indexOf(e)>-1&&t[n].parentNode&&t[n].parentNode.removeChild(t[n]);var r=N[e];r&&(delete r.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===H.removeOnUnmount&&delete N[e])},a.render=function(){var t=H.globalName,n=this.props,r=(n.asyncScriptOnLoad,n.forwardedRef),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}(n,["asyncScriptOnLoad","forwardedRef"]);return t&&"undefined"!=typeof window&&(o[t]=void 0!==window[t]?window[t]:void 0),o.ref=r,(0,v.createElement)(e,o)},o}(v.Component),r=(0,v.forwardRef)((function(e,t){return(0,v.createElement)(n,M({},e,{forwardedRef:t}))}));return r.displayName="AsyncScriptLoader("+t+")",r.propTypes={asyncScriptOnLoad:T().func},I()(r,e)})(j);var F,H;const U=L;var W,z=i(44012),V=i(34206),Y=i(21934),q=i(26069),G=i(35997),K="LOGIN_FORM",$="PASSWORD_REQUEST",X="TWOSTEPLOGIN",Q="PASSWORD_UPDATE",J="TWOSTEPLOGIN_ACTIVATION",ee=i(51032),te=i(65035),ne=i(7281),re=i(88601),oe=i(58129);const ae=b.ZP.div.withConfig({displayName:"StyledButtonGroup"})(W||(W=g()(["\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"])),oe.Z);var ie,ce,se,ue,le,pe,fe=b.ZP.input.withConfig({displayName:"StyledLoginFormInput"})(ie||(ie=g()(["\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"])),ee.k9),de=b.ZP.div.withConfig({displayName:"StyledLoginFormInputWrapper"})(ce||(ce=g()(["\n &&& {\n ","\n }\n"])),ee.yP),he=(0,b.ZP)(te.Z).withConfig({displayName:"StyledLoginButton"})(se||(se=g()(["\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"])),ne.Z.font(1.3),re.Z.radii("large")),me=(0,b.ZP)(te.Z).withConfig({displayName:"StyledTransparentButton"})(ue||(ue=g()(["\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"])),re.Z.color("primary")),ge=b.ZP.div.withConfig({displayName:"StyledLoginFormWrapper"})(le||(le=g()(["\n "," {\n margin-top: 1.8rem;\n width: auto;\n flex-direction: column;\n\n "," {\n flex-grow: 1;\n }\n }\n"])),ae,oe.Z),ve=i(85893);const ye=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=(0,v.useState)(!1),h=k()(d,2),m=h[0],g=h[1],b=(0,v.useRef)(),w=function(e){return r.formatMessage({id:e})},x=G.Z.usePrevious(s),_=(0,v.useCallback)(function(){var e=O()(S().mark((function e(t){var n;return S().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,b.current.executeAsync();case 5:n=e.sent,b.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]),E=function(e){"onAutoFillStart"===e.animationName&&g(!0)};(0,v.useEffect)((function(){s&&!x&&_()}),[s,x,_]);var A=!!f,P=!A;return(0,ve.jsxs)(ge,{children:[p&&(pe||(pe=(0,ve.jsxs)(y().Fragment,{children:[(0,ve.jsx)(V.ZP.H5,{children:(0,ve.jsx)(z.Z,{id:"client.login.form.title"})}),(0,ve.jsx)(V.ZP.P,{children:(0,ve.jsx)(z.Z,{id:"client.login.form.introduction"})})]}))),(0,ve.jsxs)("form",{onSubmit:_,children:[(0,ve.jsx)(Y.Z,{hasValue:!!f||m,id:"login-username",label:w("client.login.form.userPlaceholder"),children:(0,ve.jsx)(de,{children:(0,ve.jsx)(fe,{autoFocus:P,name:"user","data-cy":"login-form_user-input",onChange:function(e){l(e.target.value),g(!1)},required:!0,type:"text",value:f,onAnimationStart:E,onFocus:function(e){return e.target.select()}})})}),(0,ve.jsx)(Y.Z,{hasValue:!!c||m,id:"login-password",label:w("client.login.form.passwordPlaceholder"),children:(0,ve.jsx)(de,{children:(0,ve.jsx)(fe,{autoFocus:A,name:"password","data-cy":"login-form_password-input",onChange:function(e){u(e.target.value),g(!1)},required:!0,type:"password",value:c,onAnimationStart:E,onFocus:function(e){return e.target.select()}})})}),i&&i.text&&(0,ve.jsx)(q.ZP.List,{children:(0,ve.jsx)(q.ZP.Item,{condition:i.negative?"danger":"base",label:i.text})}),t&&s&&(0,ve.jsx)(U,{ref:b,badge:"bottomright",size:"invisible",sitekey:t,hl:r.locale}),(0,ve.jsx)(he,{disabled:!m&&(a||""===f||""===c),ink:"primary",look:"raised",label:w("client.login.form.button"),pending:a,type:"submit","data-cy":"login-form_login-button"}),(0,ve.jsx)(me,{label:w("client.login.form.forgotLink"),onClick:function(){return n($)},"data-cy":"login-form_request-button"})]})]})},be=ye;var we="login/INITIALIZE",Oe="Login/LOGIN",xe="Login/CHANGE_PAGE",ke="Login/SET_USERNAME",_e="Login/SET_PASSWORD",Se="login/SET_CAPTCHA_KEY",Ee=function(e){return{type:xe,payload:{page:e}}},Ae=function(e){return{type:ke,payload:{username:e}}},Pe=function(e){return{type:_e,payload:{password:e}}},Ce={changePage:Ee,setUsername:Ae,setPassword:Pe,login:function(e,t,n){return{type:Oe,payload:{username:e,password:t,captchaToken:n}}}};const je=(0,h.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}}),Ce)((0,d.ZP)(be));var De,Te;const Re=function(e){var t=e.username,n=e.requestPassword,r=e.intl,o=e.showTitle,a=e.pending,i=e.changePage,c=(0,v.useState)(t||""),s=k()(c,2),u=s[0],l=s[1],p=function(e){return r.formatMessage({id:e})};return(0,ve.jsxs)(ge,{children:[o&&(De||(De=(0,ve.jsx)(V.ZP.H5,{children:(0,ve.jsx)(z.Z,{id:"client.login.passwordRequest.title"})}))),Te||(Te=(0,ve.jsx)(V.ZP.P,{children:(0,ve.jsx)(z.Z,{id:"client.login.passwordRequest.introduction"})})),(0,ve.jsxs)("form",{onSubmit:function(e){e.preventDefault(),n(u)},children:[(0,ve.jsx)(Y.Z,{hasValue:Boolean(u),id:"login-username",label:p("client.login.form.userPlaceholder"),children:(0,ve.jsx)(de,{children:(0,ve.jsx)(fe,{name:"user",onChange:function(e){l(e.target.value)},required:!0,type:"text",value:u,"data-cy":"password-request_input"})})}),(0,ve.jsx)(he,{look:"raised",disabled:!u||a,ink:"primary",label:p("client.login.passwordRequest.button"),pending:a,type:"submit","data-cy":"password-request_submit-button"}),(0,ve.jsx)(me,{disabled:a,label:p("client.login.passwordRequest.abortButton"),name:"abort",onClick:function(){return i(K)},"data-cy":"password-request_abort-button"})]})]})};var Ie="Login/REQUEST_PASSWORD",Me="Login/PASSWORD_REQUEST",Ne="Login/SET_USERNAME",Ze=function(e){return{type:Me,payload:{passwordRequest:e}}},Be={changePage:Ee,requestPassword:function(e){return{type:Ie,payload:{username:e}}}};const Le=(0,h.connect)((function(e){return{username:e.login.username,pending:e.loginForm.loginPending}}),Be)((0,d.ZP)(Re));var Fe=i(50258),He=i(78958),Ue={INVALID_CREDENTIALS:"client.login.passwordUpdate.invalidCredentials",UNEXPECTED_ERROR:"client.login.passwordUpdate.unexpectedError"};const We=function(e){return(0,ve.jsx)(q.ZP.List,{children:(0,ve.jsx)(q.ZP.Item,{condition:He.Z.condition.DANGER,children:(0,ve.jsx)(z.Z,{id:(t=e.errorCode,Ue[t]||"client.login.passwordUpdate.failure")})})});var t};const ze=function(e){return(0,ve.jsx)(q.ZP.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=He.Z.condition.DANGER:"string"==typeof a?(r=He.Z.condition.DANGER,o=a):r=He.Z.condition.SUCCESS}return(0,ve.jsx)(q.ZP.Item,{condition:r,label:o},n)}))})};var Ve,Ye,qe=b.ZP.input.attrs((function(e){return{type:"password"}})).withConfig({displayName:"StyledPasswordInput"})(Ve||(Ve=g()(["\n &&&& {\n ","\n }\n"])),ee.k9),Ge=b.ZP.div.withConfig({displayName:"StyledPasswordInputWrapper"})(Ye||(Ye=g()(["\n && {\n ","\n }\n"])),ee.yP);const Ke=function(e){return(0,ve.jsx)(Y.Z,{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?He.Z.condition.SUCCESS:He.Z.condition.DANGER:null,children:(0,ve.jsx)(Ge,{immutable:!0===e.readOnly,children:(0,ve.jsx)(qe,{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 $e;const Xe=b.ZP.div($e||($e=g()(["\n "," {\n width: 100%;\n }\n"])),oe.Z);var Qe,Je,et,tt,nt;function rt(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 ot(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rt(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var at=b.ZP.div.withConfig({displayName:"StyledValidationRulesWrapper"})(Qe||(Qe=g()(["\n margin: 1rem;\n"])));const it=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,v.useRef)();(0,v.useEffect)((function(){n()}),[n]),(0,v.useEffect)((function(){d&&o()}),[d,o]);var m=function(){var e=O()(S().mark((function e(t){var n;return S().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),!0!==g()){e.next=7;break}return e.next=4,h.current.executeAsync();case 4:n=e.sent,h.current.reset(),c(n);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),g=function(){return!!i.newPasswordRepeat&&(i.newPassword===i.newPasswordRepeat&&!i.passwordUpdatePending)},y=function(e){return a.formatMessage({id:e})};if(!d)return Je||(Je=(0,ve.jsx)(Fe.Z,{}));var b=i.passwordUpdatePending,w=!i.oldPassword&&s||i.passwordUpdatePending,x=!i.newPassword||i.passwordUpdatePending||i.newPasswordValidationErrors&&Object.keys(i.newPasswordValidationErrors).length>0;return(0,ve.jsxs)(Xe,{children:[u&&(et||(et=(0,ve.jsx)(V.ZP.H5,{children:(0,ve.jsx)(z.Z,{id:"client.login.passwordUpdate.title"})}))),r&&(tt||(tt=(0,ve.jsx)(V.ZP.P,{children:(0,ve.jsx)(z.Z,{id:"client.login.passwordUpdate.introduction"})}))),(0,ve.jsxs)("form",{onSubmit:m,children:[!0===s&&(0,ve.jsx)(Ke,ot({tabIndex:1,label:y("client.login.passwordUpdate.oldPassword"),name:"oldPassword",value:i.oldPassword,onChange:f,readOnly:b,autoFocus:!0},i.passwordUpdateFailed&&"INVALID_CREDENTIALS"===i.passwordUpdateErrorCode&&{valid:!1})),(0,ve.jsx)(Ke,{tabIndex:2,label:y("client.login.passwordUpdate.newPassword"),name:"newPassword",value:i.newPassword,onChange:l,readOnly:w,autoFocus:!0!==s,valid:!x}),(0,ve.jsx)(at,{children:(0,ve.jsx)(ze,{rules:d,errors:i.newPasswordValidationErrors,rulesNeutral:!i.newPassword})}),(0,ve.jsx)(Ke,{tabIndex:3,label:y("client.login.passwordUpdate.newPasswordRepeat"),name:"newPasswordRepeat",value:i.newPasswordRepeat,onChange:p,readOnly:x,valid:g()}),i.newPasswordRepeat&&i.newPassword!==i.newPasswordRepeat&&(nt||(nt=(0,ve.jsx)(q.ZP.List,{children:(0,ve.jsx)(q.ZP.Item,{condition:"danger",label:(0,ve.jsx)(z.Z,{id:"client.login.passwordUpdate.noMatch"})})}))),!0===i.passwordUpdateFailed&&(0,ve.jsx)(We,{errorCode:i.passwordUpdateErrorCode}),(0,ve.jsx)(he,{pending:i.passwordUpdatePending,disabled:!1===g(),ink:"primary",label:y("client.login.passwordUpdate.saveButton"),look:"raised",type:"submit"}),t&&(0,ve.jsx)(U,{ref:h,badge:"bottomright",size:"invisible",sitekey:t,hl:a.locale})]})]})},ct=it;var st="INITIALIZED",ut="PasswordUpdateDialog/UPDATE_OLD_PASSWORD",lt="PasswordUpdateDialog/UPDATE_NEW_PASSWORD",pt="PasswordUpdateDialog/SET_NEW_PASSWORD",ft="PasswordUpdateDialog/SET_NEW_PASSWORD_VALIDATION_ERRORS",dt="PasswordUpdateDialog/UPDATE_NEW_PASSWORD_REPEAT",ht="PasswordUpdateDialog/SAVE_PASSWORD",mt="PasswordUpdateDialog/SAVE_PASSWORD_SUCCESS",gt="PasswordUpdateDialog/SAVE_PASSWORD_FAILURE",vt="PasswordUpdateDialog/VALIDATE",yt="PasswordUpdateDialog/RESET_PASSWORD_UPDATED_FAILED",bt=function(e){return{type:ut,payload:{oldPassword:e}}},wt=function(e){return{type:ft,payload:{errors:e}}},Ot=function(e,t){return{type:gt,payload:{errorCode:e,validationMessages:t}}},xt="PasswordUpdateDialog/FETCH_VALIDATION_RULES",kt="PasswordUpdateDialog/SET_VALIDATION_RULES",_t={updateOldPassword:bt,updateNewPassword:function(e){return{type:lt,payload:{newPassword:e}}},updateNewPasswordRepeat:function(e){return{type:dt,payload:{newPasswordRepeat:e}}},fetchValidationRules:function(){return{type:xt}},savePassword:function(e){return{type:ht,payload:{captchaToken:e}}},initialized:function(){return{type:st}}};const St=(0,h.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}}),_t)((0,d.ZP)(ct));var Et,At,Pt,Ct,jt,Dt,Tt=i(27023),Rt="two-factor-connector/INITIALIZE",It="two-factor-connector/SET_TWO_STEP_ACTIVE",Mt="two-factor-connector/SET_SECRET",Nt="two-factor-connector/SET_USER_NAME",Zt="two-factor-connector/REQUEST_SECRET",Bt="two-factor-connector/GO_TO_SECRET_VERIFICATION",Lt="two-factor-connector/GO_TO_START",Ft="two-factor-connector/GO_TO_SECRET",Ht="two-factor-connector/VERIFY_CODE",Ut="root/SUCCESS",Wt="root/SET_SETUP_SUCCESSFUL",zt="root/GO_TO_RESULT",Vt=function(){return{type:Rt}},Yt=function(e){return{type:It,payload:{twoFactorActive:e}}},qt=function(e){return{type:Mt,payload:{secret:e}}},Gt=function(e){return{type:Nt,payload:{username:e}}},Kt=function(){return{type:Lt}},$t=function(e){return{type:Wt,payload:{setupSuccessful:e}}},Xt=i(88162),Qt=b.ZP.div.withConfig({displayName:"StyledButtonWrapper"})(Et||(Et=g()(["\n display: flex;\n justify-content: flex-end;\n margin-top: ",";\n\n > "," {\n margin-right: 0;\n }\n"])),ne.Z.space(.5),oe.Z),Jt=b.ZP.div.withConfig({displayName:"StyledMessageWrapper"})(At||(At=g()(["\n display: grid;\n grid-template-columns: 9% 1fr;\n grid-column-gap: ",";\n"])),ne.Z.space(-.5)),en=b.ZP.span.withConfig({displayName:"StyledIconWrapper"})(Pt||(Pt=g()(["\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?re.Z.color("signal.success.text"):re.Z.color("signal.danger.text")}),ne.Z.font(10)),tn=b.ZP.div.withConfig({displayName:"StyledTextWrapper"})(Ct||(Ct=g()(["\n display: flex;\n align-items: center;\n"])));const nn=function(e){var t=e.success,n=e.goToStart,r=e.setupSuccessful,o=e.intl,a=function(e){return o.formatMessage({id:e})};return r?(0,ve.jsxs)(ve.Fragment,{children:[jt||(jt=(0,ve.jsxs)(Jt,{children:[(0,ve.jsx)(en,{isSuccessful:!0,children:(0,ve.jsx)(Xt.Z,{icon:"check"})}),(0,ve.jsx)(tn,{children:(0,ve.jsx)(V.ZP.P,{children:(0,ve.jsx)(z.Z,{id:"client.two-factor-connector.successfulText"})})})]})),(0,ve.jsx)(Qt,{children:(0,ve.jsx)(te.Z,{label:a("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:t})})]}):(0,ve.jsxs)(ve.Fragment,{children:[Dt||(Dt=(0,ve.jsxs)(Jt,{children:[(0,ve.jsx)(en,{isSuccessful:!1,children:(0,ve.jsx)(Xt.Z,{icon:"times"})}),(0,ve.jsx)(tn,{children:(0,ve.jsx)(V.ZP.P,{children:(0,ve.jsx)(z.Z,{id:"client.two-factor-connector.errorText"})})})]})),(0,ve.jsx)(Qt,{children:(0,ve.jsx)(te.Z,{label:a("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:n})})]})};var rn={success:function(){return{type:Ut}},goToStart:Kt};const on=(0,h.connect)((function(e){return{setupSuccessful:e.twoFactorConnector.setupSuccessful}}),rn)((0,d.ZP)(nn));var an,cn=Object.defineProperty,sn=Object.getOwnPropertySymbols,un=Object.prototype.hasOwnProperty,ln=Object.prototype.propertyIsEnumerable,pn=(e,t,n)=>t in e?cn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fn=(e,t)=>{for(var n in t||(t={}))un.call(t,n)&&pn(e,n,t[n]);if(sn)for(var n of sn(t))ln.call(t,n)&&pn(e,n,t[n]);return e},dn=(e,t)=>{var n={};for(var r in e)un.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&sn)for(var r of sn(e))t.indexOf(r)<0&&ln.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})(an||(an={})),(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={}))})(an||(an={})),(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={}))})(an||(an={}));var hn=an,mn={L:hn.QrCode.Ecc.LOW,M:hn.QrCode.Ecc.MEDIUM,Q:hn.QrCode.Ecc.QUARTILE,H:hn.QrCode.Ecc.HIGH},gn=128,vn="L",yn="#FFFFFF",bn="#000000",wn=!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=>288===e?"chunk-ckeditor.bbf2fa9f117b3f02ab7f.js":"chunk-"+({85:"code-editor",198:"vendor-fontawesome",614:"vendor-icons",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"53f87324a9cdf768c2d6",198:"a0cda93a7c309e205cee",560:"1167aa643a37224ff6eb",608:"7974d74d5f0d2607fd90",614:"ff9f89de3217436dd727",759:"9337b4e21a78c273072d",817:"5758e51444b678849e3d",877:"04702eeaaa7a6d567205"}[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-widget-bundle:",i.l=(e,t,o,a)=>{if(n[e])n[e].push(t);else{var c,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var p=u[l];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==r+o){c=p;break}}c||(s=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.setAttribute("data-webpack",r+o),c.src=e),n[e]=[t];var f=(t,r)=>{c.onerror=c.onload=null,clearTimeout(d);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(r))),t)return t(r)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=f.bind(null,c.onerror),c.onload=f.bind(null,c.onload),s&&document.head.appendChild(c)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.j=201,i.p="/",(()=>{var e={201:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var a=i.p+i.u(t),c=new Error;i.l(a,(n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",c.name="ChunkLoadError",c.type=o,c.request=a,r[1](c)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,c,s]=n,u=0;if(a.some((t=>0!==e[t]))){for(r in c)i.o(c,r)&&(i.m[r]=c[r]);if(s)s(i)}for(t&&t(n);u<a.length;u++)o=a[u],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_widget_bundle=self.webpackChunktocco_widget_bundle||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),i.nc=void 0;var c={};return(()=>{"use strict";i.r(c);var e=i(79013),t=i(59713),n=i.n(t),r=i(45697),o=i.n(r),a=i(22731),s=i(19743),u=i(19241),l=i(23369),p=i(98773);const f={propTypes:o().shape({embedType:o().oneOf(p.Nc),widgetConfigKey:function(e,t,n){if("widget"===e.embedType&&!e[t])return new Error("Prop `"+t+"` is missing for `"+n+"`. Validation failed.")}})};var d=i(74806),h=i(50558),m=i(28655),g=i.n(m),v=i(1024),y=i.n(v),b=i(38205),w=i(48926),O=i.n(w),x=i(63038),k=i.n(x),_=i(87757),S=i.n(_),E=i(99860),A=i.n(E);function P(){return P=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},P.apply(this,arguments)}function C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var j=function(e){var t,n;function r(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(C(t)),t.handleErrored=t.handleErrored.bind(C(t)),t.handleChange=t.handleChange.bind(C(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(C(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 y().createElement("div",P({},t,{ref:this.handleRecaptchaRef}))},r}(y().Component);j.displayName="ReCAPTCHA",j.propTypes={sitekey:A().string.isRequired,onChange:A().func,grecaptcha:A().object,theme:A().oneOf(["dark","light"]),type:A().oneOf(["image","audio"]),tabindex:A().number,onExpired:A().func,onErrored:A().func,size:A().oneOf(["compact","normal","invisible"]),stoken:A().string,hl:A().string,badge:A().oneOf(["bottomright","bottomleft","inline"])},j.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var D=i(9657),T=i.n(D),R=i(8679),I=i.n(R);function M(){return M=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},M.apply(this,arguments)}var N={},Z=0;var B="onloadcallback";const L=(F=function(){return"https://"+(("undefined"!=typeof window&&window.recaptchaOptions||{}).useRecaptchaNet?"recaptcha.net":"www.google.com")+"/recaptcha/api.js?onload="+B+"&render=explicit"},H=(H={callbackName:B,globalName:"grecaptcha"})||{},function(e){var t=e.displayName||e.name||"Component",n=function(t){var n,r;function o(e,n){var r;return(r=t.call(this,e,n)||this).state={},r.__scriptURL="",r}r=t,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r;var a=o.prototype;return a.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+Z++),this.__scriptLoaderID},a.setupScriptURL=function(){return this.__scriptURL="function"==typeof F?F():F,this.__scriptURL},a.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,(function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)}))},a.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=N[this.__scriptURL];if(!e||!e.loaded)throw new Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[H.callbackName]},a.componentDidMount=function(){var e=this,t=this.setupScriptURL(),n=this.asyncScriptLoaderGetScriptLoaderID(),r=H,o=r.globalName,a=r.callbackName,i=r.scriptId;if(o&&void 0!==window[o]&&(N[t]={loaded:!0,observers:{}}),N[t]){var c=N[t];return c&&(c.loaded||c.errored)?void this.asyncScriptLoaderHandleLoad(c):void(c.observers[n]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var s={};s[n]=function(t){return e.asyncScriptLoaderHandleLoad(t)},N[t]={loaded:!1,observers:s};var u=document.createElement("script");for(var l in u.src=t,u.async=!0,H.attributes)u.setAttribute(l,H.attributes[l]);i&&(u.id=i);var p=function(e){if(N[t]){var n=N[t].observers;for(var r in n)e(n[r])&&delete n[r]}};a&&"undefined"!=typeof window&&(window[a]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),u.onload=function(){var e=N[t];e&&(e.loaded=!0,p((function(t){return!a&&(t(e),!0)})))},u.onerror=function(){var e=N[t];e&&(e.errored=!0,p((function(t){return t(e),!0})))},document.body.appendChild(u)},a.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===H.removeOnUnmount)for(var t=document.getElementsByTagName("script"),n=0;n<t.length;n+=1)t[n].src.indexOf(e)>-1&&t[n].parentNode&&t[n].parentNode.removeChild(t[n]);var r=N[e];r&&(delete r.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===H.removeOnUnmount&&delete N[e])},a.render=function(){var t=H.globalName,n=this.props,r=(n.asyncScriptOnLoad,n.forwardedRef),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}(n,["asyncScriptOnLoad","forwardedRef"]);return t&&"undefined"!=typeof window&&(o[t]=void 0!==window[t]?window[t]:void 0),o.ref=r,(0,v.createElement)(e,o)},o}(v.Component),r=(0,v.forwardRef)((function(e,t){return(0,v.createElement)(n,M({},e,{forwardedRef:t}))}));return r.displayName="AsyncScriptLoader("+t+")",r.propTypes={asyncScriptOnLoad:T().func},I()(r,e)})(j);var F,H;const U=L;var W,z=i(44012),V=i(34206),Y=i(21934),q=i(26069),G=i(35997),K="LOGIN_FORM",$="PASSWORD_REQUEST",X="TWOSTEPLOGIN",Q="PASSWORD_UPDATE",J="TWOSTEPLOGIN_ACTIVATION",ee=i(51032),te=i(65035),ne=i(7281),re=i(88601),oe=i(58129);const ae=b.ZP.div.withConfig({displayName:"StyledButtonGroup"})(W||(W=g()(["\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"])),oe.Z);var ie,ce,se,ue,le,pe,fe=b.ZP.input.withConfig({displayName:"StyledLoginFormInput"})(ie||(ie=g()(["\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"])),ee.k9),de=b.ZP.div.withConfig({displayName:"StyledLoginFormInputWrapper"})(ce||(ce=g()(["\n &&& {\n ","\n }\n"])),ee.yP),he=(0,b.ZP)(te.Z).withConfig({displayName:"StyledLoginButton"})(se||(se=g()(["\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"])),ne.Z.font(1.3),re.Z.radii("large")),me=(0,b.ZP)(te.Z).withConfig({displayName:"StyledTransparentButton"})(ue||(ue=g()(["\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"])),re.Z.color("primary")),ge=b.ZP.div.withConfig({displayName:"StyledLoginFormWrapper"})(le||(le=g()(["\n "," {\n margin-top: 1.8rem;\n width: auto;\n flex-direction: column;\n\n "," {\n flex-grow: 1;\n }\n }\n"])),ae,oe.Z),ve=i(85893);const ye=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=(0,v.useState)(!1),h=k()(d,2),m=h[0],g=h[1],b=(0,v.useRef)(),w=function(e){return r.formatMessage({id:e})},x=G.Z.usePrevious(s),_=(0,v.useCallback)(function(){var e=O()(S().mark((function e(t){var n;return S().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,b.current.executeAsync();case 5:n=e.sent,b.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]),E=function(e){"onAutoFillStart"===e.animationName&&g(!0)};(0,v.useEffect)((function(){s&&!x&&_()}),[s,x,_]);var A=!!f,P=!A;return(0,ve.jsxs)(ge,{children:[p&&(pe||(pe=(0,ve.jsxs)(y().Fragment,{children:[(0,ve.jsx)(V.ZP.H5,{children:(0,ve.jsx)(z.Z,{id:"client.login.form.title"})}),(0,ve.jsx)(V.ZP.P,{children:(0,ve.jsx)(z.Z,{id:"client.login.form.introduction"})})]}))),(0,ve.jsxs)("form",{onSubmit:_,children:[(0,ve.jsx)(Y.Z,{hasValue:!!f||m,id:"login-username",label:w("client.login.form.userPlaceholder"),children:(0,ve.jsx)(de,{children:(0,ve.jsx)(fe,{autoFocus:P,name:"user","data-cy":"login-form_user-input",onChange:function(e){l(e.target.value),g(!1)},required:!0,type:"text",value:f,onAnimationStart:E,onFocus:function(e){return e.target.select()}})})}),(0,ve.jsx)(Y.Z,{hasValue:!!c||m,id:"login-password",label:w("client.login.form.passwordPlaceholder"),children:(0,ve.jsx)(de,{children:(0,ve.jsx)(fe,{autoFocus:A,name:"password","data-cy":"login-form_password-input",onChange:function(e){u(e.target.value),g(!1)},required:!0,type:"password",value:c,onAnimationStart:E,onFocus:function(e){return e.target.select()}})})}),i&&i.text&&(0,ve.jsx)(q.ZP.List,{children:(0,ve.jsx)(q.ZP.Item,{condition:i.negative?"danger":"base",label:i.text})}),t&&s&&(0,ve.jsx)(U,{ref:b,badge:"bottomright",size:"invisible",sitekey:t,hl:r.locale}),(0,ve.jsx)(he,{disabled:!m&&(a||""===f||""===c),ink:"primary",look:"raised",label:w("client.login.form.button"),pending:a,type:"submit","data-cy":"login-form_login-button"}),(0,ve.jsx)(me,{label:w("client.login.form.forgotLink"),onClick:function(){return n($)},"data-cy":"login-form_request-button"})]})]})},be=ye;var we="login/INITIALIZE",Oe="Login/LOGIN",xe="Login/CHANGE_PAGE",ke="Login/SET_USERNAME",_e="Login/SET_PASSWORD",Se="login/SET_CAPTCHA_KEY",Ee=function(e){return{type:xe,payload:{page:e}}},Ae=function(e){return{type:ke,payload:{username:e}}},Pe=function(e){return{type:_e,payload:{password:e}}},Ce={changePage:Ee,setUsername:Ae,setPassword:Pe,login:function(e,t,n){return{type:Oe,payload:{username:e,password:t,captchaToken:n}}}};const je=(0,h.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}}),Ce)((0,d.ZP)(be));var De,Te;const Re=function(e){var t=e.username,n=e.requestPassword,r=e.intl,o=e.showTitle,a=e.pending,i=e.changePage,c=(0,v.useState)(t||""),s=k()(c,2),u=s[0],l=s[1],p=function(e){return r.formatMessage({id:e})};return(0,ve.jsxs)(ge,{children:[o&&(De||(De=(0,ve.jsx)(V.ZP.H5,{children:(0,ve.jsx)(z.Z,{id:"client.login.passwordRequest.title"})}))),Te||(Te=(0,ve.jsx)(V.ZP.P,{children:(0,ve.jsx)(z.Z,{id:"client.login.passwordRequest.introduction"})})),(0,ve.jsxs)("form",{onSubmit:function(e){e.preventDefault(),n(u)},children:[(0,ve.jsx)(Y.Z,{hasValue:Boolean(u),id:"login-username",label:p("client.login.form.userPlaceholder"),children:(0,ve.jsx)(de,{children:(0,ve.jsx)(fe,{name:"user",onChange:function(e){l(e.target.value)},required:!0,type:"text",value:u,"data-cy":"password-request_input"})})}),(0,ve.jsx)(he,{look:"raised",disabled:!u||a,ink:"primary",label:p("client.login.passwordRequest.button"),pending:a,type:"submit","data-cy":"password-request_submit-button"}),(0,ve.jsx)(me,{disabled:a,label:p("client.login.passwordRequest.abortButton"),name:"abort",onClick:function(){return i(K)},"data-cy":"password-request_abort-button"})]})]})};var Ie="Login/REQUEST_PASSWORD",Me="Login/PASSWORD_REQUEST",Ne="Login/SET_USERNAME",Ze=function(e){return{type:Me,payload:{passwordRequest:e}}},Be={changePage:Ee,requestPassword:function(e){return{type:Ie,payload:{username:e}}}};const Le=(0,h.connect)((function(e){return{username:e.login.username,pending:e.loginForm.loginPending}}),Be)((0,d.ZP)(Re));var Fe=i(50258),He=i(78958),Ue={INVALID_CREDENTIALS:"client.login.passwordUpdate.invalidCredentials",UNEXPECTED_ERROR:"client.login.passwordUpdate.unexpectedError"};const We=function(e){return(0,ve.jsx)(q.ZP.List,{children:(0,ve.jsx)(q.ZP.Item,{condition:He.Z.condition.DANGER,children:(0,ve.jsx)(z.Z,{id:(t=e.errorCode,Ue[t]||"client.login.passwordUpdate.failure")})})});var t};const ze=function(e){return(0,ve.jsx)(q.ZP.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=He.Z.condition.DANGER:"string"==typeof a?(r=He.Z.condition.DANGER,o=a):r=He.Z.condition.SUCCESS}return(0,ve.jsx)(q.ZP.Item,{condition:r,label:o},n)}))})};var Ve,Ye,qe=b.ZP.input.attrs((function(e){return{type:"password"}})).withConfig({displayName:"StyledPasswordInput"})(Ve||(Ve=g()(["\n &&&& {\n ","\n }\n"])),ee.k9),Ge=b.ZP.div.withConfig({displayName:"StyledPasswordInputWrapper"})(Ye||(Ye=g()(["\n && {\n ","\n }\n"])),ee.yP);const Ke=function(e){return(0,ve.jsx)(Y.Z,{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?He.Z.condition.SUCCESS:He.Z.condition.DANGER:null,children:(0,ve.jsx)(Ge,{immutable:!0===e.readOnly,children:(0,ve.jsx)(qe,{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 $e;const Xe=b.ZP.div($e||($e=g()(["\n "," {\n width: 100%;\n }\n"])),oe.Z);var Qe,Je,et,tt,nt;function rt(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 ot(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rt(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var at=b.ZP.div.withConfig({displayName:"StyledValidationRulesWrapper"})(Qe||(Qe=g()(["\n margin: 1rem;\n"])));const it=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,v.useRef)();(0,v.useEffect)((function(){n()}),[n]),(0,v.useEffect)((function(){d&&o()}),[d,o]);var m=function(){var e=O()(S().mark((function e(t){var n;return S().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),!0!==g()){e.next=7;break}return e.next=4,h.current.executeAsync();case 4:n=e.sent,h.current.reset(),c(n);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),g=function(){return!!i.newPasswordRepeat&&(i.newPassword===i.newPasswordRepeat&&!i.passwordUpdatePending)},y=function(e){return a.formatMessage({id:e})};if(!d)return Je||(Je=(0,ve.jsx)(Fe.Z,{}));var b=i.passwordUpdatePending,w=!i.oldPassword&&s||i.passwordUpdatePending,x=!i.newPassword||i.passwordUpdatePending||i.newPasswordValidationErrors&&Object.keys(i.newPasswordValidationErrors).length>0;return(0,ve.jsxs)(Xe,{children:[u&&(et||(et=(0,ve.jsx)(V.ZP.H5,{children:(0,ve.jsx)(z.Z,{id:"client.login.passwordUpdate.title"})}))),r&&(tt||(tt=(0,ve.jsx)(V.ZP.P,{children:(0,ve.jsx)(z.Z,{id:"client.login.passwordUpdate.introduction"})}))),(0,ve.jsxs)("form",{onSubmit:m,children:[!0===s&&(0,ve.jsx)(Ke,ot({tabIndex:1,label:y("client.login.passwordUpdate.oldPassword"),name:"oldPassword",value:i.oldPassword,onChange:f,readOnly:b,autoFocus:!0},i.passwordUpdateFailed&&"INVALID_CREDENTIALS"===i.passwordUpdateErrorCode&&{valid:!1})),(0,ve.jsx)(Ke,{tabIndex:2,label:y("client.login.passwordUpdate.newPassword"),name:"newPassword",value:i.newPassword,onChange:l,readOnly:w,autoFocus:!0!==s,valid:!x}),(0,ve.jsx)(at,{children:(0,ve.jsx)(ze,{rules:d,errors:i.newPasswordValidationErrors,rulesNeutral:!i.newPassword})}),(0,ve.jsx)(Ke,{tabIndex:3,label:y("client.login.passwordUpdate.newPasswordRepeat"),name:"newPasswordRepeat",value:i.newPasswordRepeat,onChange:p,readOnly:x,valid:g()}),i.newPasswordRepeat&&i.newPassword!==i.newPasswordRepeat&&(nt||(nt=(0,ve.jsx)(q.ZP.List,{children:(0,ve.jsx)(q.ZP.Item,{condition:"danger",label:(0,ve.jsx)(z.Z,{id:"client.login.passwordUpdate.noMatch"})})}))),!0===i.passwordUpdateFailed&&(0,ve.jsx)(We,{errorCode:i.passwordUpdateErrorCode}),(0,ve.jsx)(he,{pending:i.passwordUpdatePending,disabled:!1===g(),ink:"primary",label:y("client.login.passwordUpdate.saveButton"),look:"raised",type:"submit"}),t&&(0,ve.jsx)(U,{ref:h,badge:"bottomright",size:"invisible",sitekey:t,hl:a.locale})]})]})},ct=it;var st="INITIALIZED",ut="PasswordUpdateDialog/UPDATE_OLD_PASSWORD",lt="PasswordUpdateDialog/UPDATE_NEW_PASSWORD",pt="PasswordUpdateDialog/SET_NEW_PASSWORD",ft="PasswordUpdateDialog/SET_NEW_PASSWORD_VALIDATION_ERRORS",dt="PasswordUpdateDialog/UPDATE_NEW_PASSWORD_REPEAT",ht="PasswordUpdateDialog/SAVE_PASSWORD",mt="PasswordUpdateDialog/SAVE_PASSWORD_SUCCESS",gt="PasswordUpdateDialog/SAVE_PASSWORD_FAILURE",vt="PasswordUpdateDialog/VALIDATE",yt="PasswordUpdateDialog/RESET_PASSWORD_UPDATED_FAILED",bt=function(e){return{type:ut,payload:{oldPassword:e}}},wt=function(e){return{type:ft,payload:{errors:e}}},Ot=function(e,t){return{type:gt,payload:{errorCode:e,validationMessages:t}}},xt="PasswordUpdateDialog/FETCH_VALIDATION_RULES",kt="PasswordUpdateDialog/SET_VALIDATION_RULES",_t={updateOldPassword:bt,updateNewPassword:function(e){return{type:lt,payload:{newPassword:e}}},updateNewPasswordRepeat:function(e){return{type:dt,payload:{newPasswordRepeat:e}}},fetchValidationRules:function(){return{type:xt}},savePassword:function(e){return{type:ht,payload:{captchaToken:e}}},initialized:function(){return{type:st}}};const St=(0,h.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}}),_t)((0,d.ZP)(ct));var Et,At,Pt,Ct,jt,Dt,Tt=i(27023),Rt="two-factor-connector/INITIALIZE",It="two-factor-connector/SET_TWO_STEP_ACTIVE",Mt="two-factor-connector/SET_SECRET",Nt="two-factor-connector/SET_USER_NAME",Zt="two-factor-connector/REQUEST_SECRET",Bt="two-factor-connector/GO_TO_SECRET_VERIFICATION",Lt="two-factor-connector/GO_TO_START",Ft="two-factor-connector/GO_TO_SECRET",Ht="two-factor-connector/VERIFY_CODE",Ut="root/SUCCESS",Wt="root/SET_SETUP_SUCCESSFUL",zt="root/GO_TO_RESULT",Vt=function(){return{type:Rt}},Yt=function(e){return{type:It,payload:{twoFactorActive:e}}},qt=function(e){return{type:Mt,payload:{secret:e}}},Gt=function(e){return{type:Nt,payload:{username:e}}},Kt=function(){return{type:Lt}},$t=function(e){return{type:Wt,payload:{setupSuccessful:e}}},Xt=i(88162),Qt=b.ZP.div.withConfig({displayName:"StyledButtonWrapper"})(Et||(Et=g()(["\n display: flex;\n justify-content: flex-end;\n margin-top: ",";\n\n > "," {\n margin-right: 0;\n }\n"])),ne.Z.space(.5),oe.Z),Jt=b.ZP.div.withConfig({displayName:"StyledMessageWrapper"})(At||(At=g()(["\n display: grid;\n grid-template-columns: 9% 1fr;\n grid-column-gap: ",";\n"])),ne.Z.space(-.5)),en=b.ZP.span.withConfig({displayName:"StyledIconWrapper"})(Pt||(Pt=g()(["\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?re.Z.color("signal.success.text"):re.Z.color("signal.danger.text")}),ne.Z.font(10)),tn=b.ZP.div.withConfig({displayName:"StyledTextWrapper"})(Ct||(Ct=g()(["\n display: flex;\n align-items: center;\n"])));const nn=function(e){var t=e.success,n=e.goToStart,r=e.setupSuccessful,o=e.intl,a=function(e){return o.formatMessage({id:e})};return r?(0,ve.jsxs)(ve.Fragment,{children:[jt||(jt=(0,ve.jsxs)(Jt,{children:[(0,ve.jsx)(en,{isSuccessful:!0,children:(0,ve.jsx)(Xt.Z,{icon:"check"})}),(0,ve.jsx)(tn,{children:(0,ve.jsx)(V.ZP.P,{children:(0,ve.jsx)(z.Z,{id:"client.two-factor-connector.successfulText"})})})]})),(0,ve.jsx)(Qt,{children:(0,ve.jsx)(te.Z,{label:a("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:t})})]}):(0,ve.jsxs)(ve.Fragment,{children:[Dt||(Dt=(0,ve.jsxs)(Jt,{children:[(0,ve.jsx)(en,{isSuccessful:!1,children:(0,ve.jsx)(Xt.Z,{icon:"times"})}),(0,ve.jsx)(tn,{children:(0,ve.jsx)(V.ZP.P,{children:(0,ve.jsx)(z.Z,{id:"client.two-factor-connector.errorText"})})})]})),(0,ve.jsx)(Qt,{children:(0,ve.jsx)(te.Z,{label:a("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:n})})]})};var rn={success:function(){return{type:Ut}},goToStart:Kt};const on=(0,h.connect)((function(e){return{setupSuccessful:e.twoFactorConnector.setupSuccessful}}),rn)((0,d.ZP)(nn));var an,cn=Object.defineProperty,sn=Object.getOwnPropertySymbols,un=Object.prototype.hasOwnProperty,ln=Object.prototype.propertyIsEnumerable,pn=(e,t,n)=>t in e?cn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fn=(e,t)=>{for(var n in t||(t={}))un.call(t,n)&&pn(e,n,t[n]);if(sn)for(var n of sn(t))ln.call(t,n)&&pn(e,n,t[n]);return e},dn=(e,t)=>{var n={};for(var r in e)un.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&sn)for(var r of sn(e))t.indexOf(r)<0&&ln.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})(an||(an={})),(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={}))})(an||(an={})),(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={}))})(an||(an={}));var hn=an,mn={L:hn.QrCode.Ecc.LOW,M:hn.QrCode.Ecc.MEDIUM,Q:hn.QrCode.Ecc.QUARTILE,H:hn.QrCode.Ecc.HIGH},gn=128,vn="L",yn="#FFFFFF",bn="#000000",wn=!1;
57
57
  /**
58
58
  * @license qrcode.react
59
59
  * Copyright (c) Paul O'Shannessy
@@ -48,4 +48,4 @@ object-assign
48
48
  *
49
49
  * This source code is licensed under the MIT license found in the
50
50
  * LICENSE file in the root directory of this source tree.
51
- */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,s=r.useEffect,u=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var f=c(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=u((function(){function e(e){if(!s){if(s=!0,a=e,e=r(e),void 0!==o&&d.hasValue){var t=d.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,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 p=a(e,f[0],f[1]);return s((function(){d.hasValue=!0,d.value=p}),[p]),l(p),p}},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 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 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||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 s(o)}},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),s=Object.keys(n);return c.length===s.length&&c.every((function(r){return e(t[r],n[r])}))}return!1}},30670:e=>{"use strict";e.exports=function(){}},90655:(e,t,n)=>{"use strict";function r(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var o=1,i="";if("?"===e[c=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(c));for(;c<e.length;)if("\\"!==e[c]){if(")"===e[c]){if(0==--o){c++;break}}else if("("===e[c]&&(o++,"?"!==e[c+1]))throw new TypeError("Capturing groups are not allowed at ".concat(c));i+=e[c++]}else i+=e[c++]+e[c++];if(o)throw new TypeError("Unbalanced pattern at ".concat(n));if(!i)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:i}),n=c}else{for(var a="",c=n+1;c<e.length;){var s=e.charCodeAt(c);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||95===s))break;a+=e[c++]}if(!a)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:a}),n=c}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,i=void 0===r?"./":r,a="[^".concat(o(t.delimiter||"/#?"),"]+?"),c=[],s=0,u=0,l="",f=function(e){if(u<n.length&&n[u].type===e)return n[u++].value},d=function(e){var t=f(e);if(void 0!==t)return t;var r=n[u],o=r.type,i=r.index;throw new TypeError("Unexpected ".concat(o," at ").concat(i,", expected ").concat(e))},p=function(){for(var e,t="";e=f("CHAR")||f("ESCAPED_CHAR");)t+=e;return t};u<n.length;){var h=f("CHAR"),m=f("NAME"),v=f("PATTERN");if(m||v){var g=h||"";-1===i.indexOf(g)&&(l+=g,g=""),l&&(c.push(l),l=""),c.push({name:m||s++,prefix:g,suffix:"",pattern:v||a,modifier:f("MODIFIER")||""})}else{var y=h||f("ESCAPED_CHAR");if(y)l+=y;else if(l&&(c.push(l),l=""),f("OPEN")){g=p();var b=f("NAME")||"",w=f("PATTERN")||"",x=p();d("CLOSE"),c.push({name:b||(w?s++:""),pattern:b&&!w?a:w,prefix:g,suffix:x,modifier:f("MODIFIER")||""})}else d("END")}}return c}function o(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function i(e){return e&&e.sensitive?"":"i"}function a(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var r=n.strict,a=void 0!==r&&r,c=n.start,s=void 0===c||c,u=n.end,l=void 0===u||u,f=n.encode,d=void 0===f?function(e){return e}:f,p=n.delimiter,h=void 0===p?"/#?":p,m=n.endsWith,v="[".concat(o(void 0===m?"":m),"]|$"),g="[".concat(o(h),"]"),y=s?"^":"",b=0,w=e;b<w.length;b++){var x=w[b];if("string"==typeof x)y+=o(d(x));else{var O=o(d(x.prefix)),E=o(d(x.suffix));if(x.pattern)if(t&&t.push(x),O||E)if("+"===x.modifier||"*"===x.modifier){var P="*"===x.modifier?"?":"";y+="(?:".concat(O,"((?:").concat(x.pattern,")(?:").concat(E).concat(O,"(?:").concat(x.pattern,"))*)").concat(E,")").concat(P)}else y+="(?:".concat(O,"(").concat(x.pattern,")").concat(E,")").concat(x.modifier);else"+"===x.modifier||"*"===x.modifier?y+="((?:".concat(x.pattern,")").concat(x.modifier,")"):y+="(".concat(x.pattern,")").concat(x.modifier);else y+="(?:".concat(O).concat(E,")").concat(x.modifier)}}if(l)a||(y+="".concat(g,"?")),y+=n.endsWith?"(?=".concat(v,")"):"$";else{var j=e[e.length-1],k="string"==typeof j?g.indexOf(j[j.length-1])>-1:void 0===j;a||(y+="(?:".concat(g,"(?=").concat(v,"))?")),k||(y+="(?=".concat(g,"|").concat(v,")"))}return new RegExp(y,i(n))}(r(e,n),t,n)}function c(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,o=n.exec(e.source);o;)t.push({name:o[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),o=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map((function(e){return c(e,t,n).source}));return new RegExp("(?:".concat(r.join("|"),")"),i(n))}(e,t,n):a(e,t,n)}n.d(t,{Bo:()=>c})},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:()=>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})},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.")}()}},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=>288===e?"chunk-ckeditor.bbf2fa9f117b3f02ab7f.js":"chunk-"+({85:"code-editor",141:"docs-actions",198:"vendor-fontawesome",614:"vendor-icons",877:"vendor-libphonenumber-js"}[e]||e)+"."+{81:"1d9af81de5e3c4382bb7",85:"53f87324a9cdf768c2d6",141:"31a2d8dfe1361565593e",198:"a0cda93a7c309e205cee",560:"1167aa643a37224ff6eb",608:"2ceca36ebad2214cefa4",614:"48645669f4231a6ea98e",759:"9337b4e21a78c273072d",817:"5758e51444b678849e3d",877:"04702eeaaa7a6d567205"}[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-widget-bundle:",a.l=(e,t,o,i)=>{if(n[e])n[e].push(t);else{var c,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var f=u[l];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==r+o){c=f;break}}c||(s=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,a.nc&&c.setAttribute("nonce",a.nc),c.setAttribute("data-webpack",r+o),c.src=e),n[e]=[t];var d=(t,r)=>{c.onerror=c.onload=null,clearTimeout(p);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(r))),t)return t(r)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=d.bind(null,c.onerror),c.onload=d.bind(null,c.onload),s&&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=325,a.p="/",(()=>{var e={325: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,s]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in c)a.o(c,r)&&(a.m[r]=c[r]);if(s)s(a)}for(t&&t(n);u<i.length;u++)o=i[u],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_widget_bundle=self.webpackChunktocco_widget_bundle||[];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);var e=a(79013),t=a(45697),n=a.n(t),r=a(44362),o=a(23369),i=a(74806),s=a(50558),u=a(78125),l=a(50258),f=a(85893);const d=function(e){var t=e.personalFolderKey,n=e.listLimit,r=e.backendUrl,o=e.businessUnit,i=e.appContext,a=t?[{entityName:"Folder",key:"".concat(t)}]:[];return(0,f.jsx)(l.Z,{required:[t],children:(0,f.jsx)(u.ZP,{searchFormType:"none",embedded:!0,documentDetailFormName:"PersonalDmsResource",domainDetailFormName:"PersonalDmsDomain",folderDetailFormName:"PersonalDmsFolder",getListFormName:function(e,t){return null!==e?"PersonalDms_docs_list_item":null!==t?"PersonalDms_root_docs_list_item_specific":"PersonalDms_root_docs_list_item"},scrollBehaviour:"none",sortable:!1,rootNodes:a,listLimit:n,backendUrl:r,businessUnit:o,appContext:i})})};const p=(0,s.connect)((function(e){return{personalFolderKey:e.personalDms.personalFolderKey,listLimit:e.input.listLimit,backendUrl:e.input.backendUrl,businessUnit:e.input.businessUnit,appContext:e.input.appContext}}),{})((0,i.ZP)(d));var h="personalDms/LOAD_PERSONAL_FOLDER_KEY",m="personalDms/SET_PERSONAL_FOLDER_KEY",v=a(59713),g=a.n(v),y=a(81770),b=g()({},m,y.Z.singleTransferReducer("personalFolderKey")),w={personalFolderKey:void 0};const x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w,t=arguments.length>1?arguments[1]:void 0,n=b[t.type];return n?n(e,t):e};var O=a(87757),E=a.n(O),P=a(34857),j=a(81719),k=a(44759),S=E().mark(_),T=E().mark(N),C=E().mark(R),A=E().mark(Z);function _(){return E().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,P.$6)([(0,P.Fm)(h,N)]);case 2:case"end":return e.stop()}}),S)}function N(){var e,t;return E().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,R();case 2:return e=n.sent,n.next=5,Z(e);case 5:return t=n.sent,n.next=8,(0,P.gz)({type:m,payload:{personalFolderKey:t}});case 8:case"end":return n.stop()}}),T)}function R(){var e;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,P.RE)(j.Z.fetchEntities,"User",{where:"pk == :currentUser"},{method:"GET"});case 2:return 1!==(e=t.sent).length&&k.Z.logError("Exactly one user is expected during loading of the current user"),t.abrupt("return",e[0].key);case 5:case"end":return t.stop()}}),C)}function Z(e){var t,n,r;return E().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return t="entities/2.0/User/".concat(e,"/entitydocs/folder"),n={method:"GET"},o.next=4,(0,P.RE)(j.Z.requestSaga,t,n);case 4:return r=o.sent,o.abrupt("return",r.body.key);case 6:case"end":return o.stop()}}),A)}const D={personalDms:x};var M,I=[_],L="personal-dms",F=function(t,n,r,i){var a=M||(M=(0,f.jsx)(p,{}));o.Z.setInputEnvs(n);var c=e.Z.createStore(D,I,n,L);return e.Z.createApp(L,a,c,{input:n,events:r,actions:[{type:h}],publicPath:i,textResourceModules:["component","common",L]})},H=function(t){return e.Z.useApp({initApp:F,props:t,packageName:L}).component};H.propTypes={listLimit:n().number,businessUnit:n().string,backendUrl:n().string,appContext:r.Z.propTypes.isRequired};var U=e.Z.createBundleableApp(L,F,H);e.Z.registerAppInRegistry(U.name,U.init)})(),c})()));
51
+ */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,s=r.useEffect,u=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var f=c(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=u((function(){function e(e){if(!s){if(s=!0,a=e,e=r(e),void 0!==o&&d.hasValue){var t=d.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,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 p=a(e,f[0],f[1]);return s((function(){d.hasValue=!0,d.value=p}),[p]),l(p),p}},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 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 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||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 s(o)}},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),s=Object.keys(n);return c.length===s.length&&c.every((function(r){return e(t[r],n[r])}))}return!1}},30670:e=>{"use strict";e.exports=function(){}},90655:(e,t,n)=>{"use strict";function r(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var o=1,i="";if("?"===e[c=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(c));for(;c<e.length;)if("\\"!==e[c]){if(")"===e[c]){if(0==--o){c++;break}}else if("("===e[c]&&(o++,"?"!==e[c+1]))throw new TypeError("Capturing groups are not allowed at ".concat(c));i+=e[c++]}else i+=e[c++]+e[c++];if(o)throw new TypeError("Unbalanced pattern at ".concat(n));if(!i)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:i}),n=c}else{for(var a="",c=n+1;c<e.length;){var s=e.charCodeAt(c);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||95===s))break;a+=e[c++]}if(!a)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:a}),n=c}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,i=void 0===r?"./":r,a="[^".concat(o(t.delimiter||"/#?"),"]+?"),c=[],s=0,u=0,l="",f=function(e){if(u<n.length&&n[u].type===e)return n[u++].value},d=function(e){var t=f(e);if(void 0!==t)return t;var r=n[u],o=r.type,i=r.index;throw new TypeError("Unexpected ".concat(o," at ").concat(i,", expected ").concat(e))},p=function(){for(var e,t="";e=f("CHAR")||f("ESCAPED_CHAR");)t+=e;return t};u<n.length;){var h=f("CHAR"),m=f("NAME"),v=f("PATTERN");if(m||v){var g=h||"";-1===i.indexOf(g)&&(l+=g,g=""),l&&(c.push(l),l=""),c.push({name:m||s++,prefix:g,suffix:"",pattern:v||a,modifier:f("MODIFIER")||""})}else{var y=h||f("ESCAPED_CHAR");if(y)l+=y;else if(l&&(c.push(l),l=""),f("OPEN")){g=p();var b=f("NAME")||"",w=f("PATTERN")||"",x=p();d("CLOSE"),c.push({name:b||(w?s++:""),pattern:b&&!w?a:w,prefix:g,suffix:x,modifier:f("MODIFIER")||""})}else d("END")}}return c}function o(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function i(e){return e&&e.sensitive?"":"i"}function a(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var r=n.strict,a=void 0!==r&&r,c=n.start,s=void 0===c||c,u=n.end,l=void 0===u||u,f=n.encode,d=void 0===f?function(e){return e}:f,p=n.delimiter,h=void 0===p?"/#?":p,m=n.endsWith,v="[".concat(o(void 0===m?"":m),"]|$"),g="[".concat(o(h),"]"),y=s?"^":"",b=0,w=e;b<w.length;b++){var x=w[b];if("string"==typeof x)y+=o(d(x));else{var O=o(d(x.prefix)),E=o(d(x.suffix));if(x.pattern)if(t&&t.push(x),O||E)if("+"===x.modifier||"*"===x.modifier){var P="*"===x.modifier?"?":"";y+="(?:".concat(O,"((?:").concat(x.pattern,")(?:").concat(E).concat(O,"(?:").concat(x.pattern,"))*)").concat(E,")").concat(P)}else y+="(?:".concat(O,"(").concat(x.pattern,")").concat(E,")").concat(x.modifier);else"+"===x.modifier||"*"===x.modifier?y+="((?:".concat(x.pattern,")").concat(x.modifier,")"):y+="(".concat(x.pattern,")").concat(x.modifier);else y+="(?:".concat(O).concat(E,")").concat(x.modifier)}}if(l)a||(y+="".concat(g,"?")),y+=n.endsWith?"(?=".concat(v,")"):"$";else{var j=e[e.length-1],k="string"==typeof j?g.indexOf(j[j.length-1])>-1:void 0===j;a||(y+="(?:".concat(g,"(?=").concat(v,"))?")),k||(y+="(?=".concat(g,"|").concat(v,")"))}return new RegExp(y,i(n))}(r(e,n),t,n)}function c(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,o=n.exec(e.source);o;)t.push({name:o[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),o=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map((function(e){return c(e,t,n).source}));return new RegExp("(?:".concat(r.join("|"),")"),i(n))}(e,t,n):a(e,t,n)}n.d(t,{Bo:()=>c})},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:()=>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})},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.")}()}},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=>288===e?"chunk-ckeditor.bbf2fa9f117b3f02ab7f.js":"chunk-"+({85:"code-editor",141:"docs-actions",198:"vendor-fontawesome",614:"vendor-icons",877:"vendor-libphonenumber-js"}[e]||e)+"."+{81:"1d9af81de5e3c4382bb7",85:"53f87324a9cdf768c2d6",141:"31a2d8dfe1361565593e",198:"a0cda93a7c309e205cee",560:"1167aa643a37224ff6eb",608:"7974d74d5f0d2607fd90",614:"ff9f89de3217436dd727",759:"9337b4e21a78c273072d",817:"5758e51444b678849e3d",877:"04702eeaaa7a6d567205"}[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-widget-bundle:",a.l=(e,t,o,i)=>{if(n[e])n[e].push(t);else{var c,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var f=u[l];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==r+o){c=f;break}}c||(s=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,a.nc&&c.setAttribute("nonce",a.nc),c.setAttribute("data-webpack",r+o),c.src=e),n[e]=[t];var d=(t,r)=>{c.onerror=c.onload=null,clearTimeout(p);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(r))),t)return t(r)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=d.bind(null,c.onerror),c.onload=d.bind(null,c.onload),s&&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=325,a.p="/",(()=>{var e={325: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,s]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in c)a.o(c,r)&&(a.m[r]=c[r]);if(s)s(a)}for(t&&t(n);u<i.length;u++)o=i[u],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_widget_bundle=self.webpackChunktocco_widget_bundle||[];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);var e=a(79013),t=a(45697),n=a.n(t),r=a(44362),o=a(23369),i=a(74806),s=a(50558),u=a(78125),l=a(50258),f=a(85893);const d=function(e){var t=e.personalFolderKey,n=e.listLimit,r=e.backendUrl,o=e.businessUnit,i=e.appContext,a=t?[{entityName:"Folder",key:"".concat(t)}]:[];return(0,f.jsx)(l.Z,{required:[t],children:(0,f.jsx)(u.ZP,{searchFormType:"none",embedded:!0,documentDetailFormName:"PersonalDmsResource",domainDetailFormName:"PersonalDmsDomain",folderDetailFormName:"PersonalDmsFolder",getListFormName:function(e,t){return null!==e?"PersonalDms_docs_list_item":null!==t?"PersonalDms_root_docs_list_item_specific":"PersonalDms_root_docs_list_item"},scrollBehaviour:"none",sortable:!1,rootNodes:a,listLimit:n,backendUrl:r,businessUnit:o,appContext:i})})};const p=(0,s.connect)((function(e){return{personalFolderKey:e.personalDms.personalFolderKey,listLimit:e.input.listLimit,backendUrl:e.input.backendUrl,businessUnit:e.input.businessUnit,appContext:e.input.appContext}}),{})((0,i.ZP)(d));var h="personalDms/LOAD_PERSONAL_FOLDER_KEY",m="personalDms/SET_PERSONAL_FOLDER_KEY",v=a(59713),g=a.n(v),y=a(81770),b=g()({},m,y.Z.singleTransferReducer("personalFolderKey")),w={personalFolderKey:void 0};const x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w,t=arguments.length>1?arguments[1]:void 0,n=b[t.type];return n?n(e,t):e};var O=a(87757),E=a.n(O),P=a(34857),j=a(81719),k=a(44759),S=E().mark(_),T=E().mark(N),C=E().mark(R),A=E().mark(Z);function _(){return E().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,P.$6)([(0,P.Fm)(h,N)]);case 2:case"end":return e.stop()}}),S)}function N(){var e,t;return E().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,R();case 2:return e=n.sent,n.next=5,Z(e);case 5:return t=n.sent,n.next=8,(0,P.gz)({type:m,payload:{personalFolderKey:t}});case 8:case"end":return n.stop()}}),T)}function R(){var e;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,P.RE)(j.Z.fetchEntities,"User",{where:"pk == :currentUser"},{method:"GET"});case 2:return 1!==(e=t.sent).length&&k.Z.logError("Exactly one user is expected during loading of the current user"),t.abrupt("return",e[0].key);case 5:case"end":return t.stop()}}),C)}function Z(e){var t,n,r;return E().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return t="entities/2.0/User/".concat(e,"/entitydocs/folder"),n={method:"GET"},o.next=4,(0,P.RE)(j.Z.requestSaga,t,n);case 4:return r=o.sent,o.abrupt("return",r.body.key);case 6:case"end":return o.stop()}}),A)}const D={personalDms:x};var M,I=[_],L="personal-dms",F=function(t,n,r,i){var a=M||(M=(0,f.jsx)(p,{}));o.Z.setInputEnvs(n);var c=e.Z.createStore(D,I,n,L);return e.Z.createApp(L,a,c,{input:n,events:r,actions:[{type:h}],publicPath:i,textResourceModules:["component","common",L]})},H=function(t){return e.Z.useApp({initApp:F,props:t,packageName:L}).component};H.propTypes={listLimit:n().number,businessUnit:n().string,backendUrl:n().string,appContext:r.Z.propTypes.isRequired};var U=e.Z.createBundleableApp(L,F,H);e.Z.registerAppInRegistry(U.name,U.init)})(),c})()));