tocco-widget-bundle 0.1.153 → 0.1.154
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +3 -0
- package/dist/address-update.js +1 -1
- package/dist/{chunk-240.74330c97246ec1338680.js → chunk-240.0a14ed0ee3695a81da29.js} +1 -1
- package/dist/docs-browser.js +1 -1
- package/dist/entity-browser.js +1 -1
- package/dist/entity-dms.js +1 -1
- package/dist/evaluation-execution-participation.js +2 -2
- package/dist/event-registration.js +2 -2
- package/dist/job-application.js +1 -1
- package/dist/login.js +2 -2
- package/dist/mailing-list.js +2 -2
- package/dist/password-update.js +1 -1
- package/dist/personal-dms.js +1 -1
- package/dist/public-dms.js +1 -1
- package/dist/stint-auction.js +2 -2
- package/dist/user-availability.js +2 -2
- package/dist/user-grades.js +2 -2
- package/dist/wage-view.js +2 -2
- package/package.json +1 -1
package/dist/login.js
CHANGED
|
@@ -49,9 +49,9 @@ e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,ge
|
|
|
49
49
|
*
|
|
50
50
|
* This source code is licensed under the MIT license found in the
|
|
51
51
|
* LICENSE file in the root directory of this source tree.
|
|
52
|
-
*/var r=n(1024),o=n(61688);var a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useSyncExternalStore,c=r.useRef,s=r.useEffect,u=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var f=c(null);if(null===f.current){var p={hasValue:!1,value:null};f.current=p}else p=f.current;f=u((function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==o&&p.hasValue){var t=p.value;if(o(t,e))return c=t}return c=e}if(t=c,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,c=n)}var i,c,s=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,n,r,o]);var d=i(e,f[0],f[1]);return s((function(){p.hasValue=!0,p.value=d}),[d]),l(d),d}},61688:(e,t,n)=>{"use strict";e.exports=n(53250)},52798:(e,t,n)=>{"use strict";e.exports=n(50139)},28721:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});const r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let o;const a=new Uint8Array(16);function i(){if(!o&&(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!o))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(a)}const c=[];for(let e=0;e<256;++e)c.push((e+256).toString(16).slice(1));function s(e,t=0){return(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase()}const u=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();const o=(e=e||{}).random||(e.rng||i)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return s(o)}},1024:e=>{"use strict";e.exports=t},30314:t=>{"use strict";t.exports=e},71298:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},38088:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},87462:(e,t,n)=>{"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Z:()=>r})},86:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:()=>r})},31599:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},28549:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},2717:(e,t,n)=>{"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Z:()=>r})},33417:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(28549);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},32924:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},1972:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(78001);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},62360:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:()=>r})},78001:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(31599);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}i.m=o,i.amdD=function(){throw new Error("define cannot be used indirect")},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>"chunk-"+({85:"code-editor",198:"vendor-fontawesome",614:"vendor-icons",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"90043e6c234758127b6c",198:"ab9f2eea50d01a3a62a9",560:"e3d5772311dd2d78dc20",608:"c3b57ad1736c5780e353",614:"46a81a2af023c95e2006",631:"8d55ab629611cf584826",877:"a7f934130ec5ac7a8cff"}[e]+".js",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="tocco-:",i.l=(e,t,o,a)=>{if(n[e])n[e].push(t);else{var c,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var f=u[l];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==r+o){c=f;break}}c||(s=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.setAttribute("data-webpack",r+o),c.src=e),n[e]=[t];var p=(t,r)=>{c.onerror=c.onload=null,clearTimeout(d);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(r))),t)return t(r)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=p.bind(null,c.onerror),c.onload=p.bind(null,c.onload),s&&document.head.appendChild(c)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.j=535,i.p="/",(()=>{var e={535:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var a=i.p+i.u(t),c=new Error;i.l(a,(n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",c.name="ChunkLoadError",c.type=o,c.request=a,r[1](c)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,c,s]=n,u=0;if(a.some((t=>0!==e[t]))){for(r in c)i.o(c,r)&&(i.m[r]=c[r]);if(s)s(i)}for(t&&t(n);u<a.length;u++)o=a[u],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_=self.webpackChunktocco_||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),i.nc=void 0;var c={};return(()=>{"use strict";i.r(c),i.d(c,{app:()=>Ky});var e=i(18882),t=i(59713),n=i.n(t),r=i(45697),o=i.n(r),a=i(19743),s=i(19241),u=i(23369),l=i(65378),f=i(74806),p=i(50558),d="login/INITIALIZE",h="login/LOGIN",m="login/REQUEST_PASSWORD",g="login/CHECK_USERNAME",v=function(e,t,n,r){return{type:h,payload:{username:e,password:t,captchaToken:n,userCode:r}}},y=i(28655),b=i.n(y),w=i(1024),O=i.n(w),x=i(38205),k="USERNAME_FORM",S="LOGIN_FORM",P="PASSWORD_REQUEST",j="TWOSTEPLOGIN",_="PASSWORD_UPDATE",E="TWOSTEPLOGIN_ACTIVATION",C="login/CHANGE_PAGE",T="login/SET_ENTRY_PAGE",D="login/SET_USERNAME",R="login/SET_PASSWORD",M="login/SET_CAPTCHA_KEY",I=function(e){return{type:T,payload:{entryPage:e}}},A=function(e){return{type:C,payload:{currentPage:e}}},N=function(e){return{type:D,payload:{username:e}}},Z=function(e){return{type:R,payload:{password:e}}},L=i(48926),F=i.n(L),U=i(63038),H=i.n(U),B=i(87757),W=i.n(B),z=i(99860),Y=i.n(z);function V(){return(V=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function q(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var G=function(e){var t,n;function r(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(q(t)),t.handleErrored=t.handleErrored.bind(q(t)),t.handleChange=t.handleChange.bind(q(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(q(t)),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getValue=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this.props.grecaptcha.getResponse(this._widgetId):null},o.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},o.execute=function(){var e=this.props.grecaptcha;if(e&&void 0!==this._widgetId)return e.execute(this._widgetId);this._executeRequested=!0},o.executeAsync=function(){var e=this;return new Promise((function(t,n){e.executionResolve=t,e.executionReject=n,e.execute()}))},o.reset=function(){this.props.grecaptcha&&void 0!==this._widgetId&&this.props.grecaptcha.reset(this._widgetId)},o.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},o.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},o.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},o.explicitRender=function(){if(this.props.grecaptcha&&this.props.grecaptcha.render&&void 0===this._widgetId){var e=document.createElement("div");this._widgetId=this.props.grecaptcha.render(e,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge}),this.captcha.appendChild(e)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},o.componentDidMount=function(){this.explicitRender()},o.componentDidUpdate=function(){this.explicitRender()},o.componentWillUnmount=function(){void 0!==this._widgetId&&(this.delayOfCaptchaIframeRemoving(),this.reset())},o.delayOfCaptchaIframeRemoving=function(){var e=document.createElement("div");for(document.body.appendChild(e),e.style.display="none";this.captcha.firstChild;)e.appendChild(this.captcha.firstChild);setTimeout((function(){document.body.removeChild(e)}),5e3)},o.handleRecaptchaRef=function(e){this.captcha=e},o.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl"]));return O().createElement("div",V({},t,{ref:this.handleRecaptchaRef}))},r}(O().Component);G.displayName="ReCAPTCHA",G.propTypes={sitekey:Y().string.isRequired,onChange:Y().func,grecaptcha:Y().object,theme:Y().oneOf(["dark","light"]),type:Y().oneOf(["image","audio"]),tabindex:Y().number,onExpired:Y().func,onErrored:Y().func,size:Y().oneOf(["compact","normal","invisible"]),stoken:Y().string,hl:Y().string,badge:Y().oneOf(["bottomright","bottomleft","inline"])},G.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var K=i(9657),X=i.n(K),$=i(8679),Q=i.n($);function J(){return(J=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ee={},te=0;var ne="onloadcallback";const re=function(e,t){return t=t||{},function(n){var r=n.displayName||n.name||"Component",o=function(r){var o,a;function i(e,t){var n;return(n=r.call(this,e,t)||this).state={},n.__scriptURL="",n}a=r,(o=i).prototype=Object.create(a.prototype),o.prototype.constructor=o,o.__proto__=a;var c=i.prototype;return c.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+te++),this.__scriptLoaderID},c.setupScriptURL=function(){return this.__scriptURL="function"==typeof e?e():e,this.__scriptURL},c.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,(function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)}))},c.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=ee[this.__scriptURL];if(!e||!e.loaded)throw new Error("Script is not loaded.");for(var n in e.observers)e.observers[n](e);delete window[t.callbackName]},c.componentDidMount=function(){var e=this,n=this.setupScriptURL(),r=this.asyncScriptLoaderGetScriptLoaderID(),o=t,a=o.globalName,i=o.callbackName,c=o.scriptId;if(a&&void 0!==window[a]&&(ee[n]={loaded:!0,observers:{}}),ee[n]){var s=ee[n];return s&&(s.loaded||s.errored)?void this.asyncScriptLoaderHandleLoad(s):void(s.observers[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var u={};u[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)},ee[n]={loaded:!1,observers:u};var l=document.createElement("script");for(var f in l.src=n,l.async=!0,t.attributes)l.setAttribute(f,t.attributes[f]);c&&(l.id=c);var p=function(e){if(ee[n]){var t=ee[n].observers;for(var r in t)e(t[r])&&delete t[r]}};i&&"undefined"!=typeof window&&(window[i]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),l.onload=function(){var e=ee[n];e&&(e.loaded=!0,p((function(t){return!i&&(t(e),!0)})))},l.onerror=function(){var e=ee[n];e&&(e.errored=!0,p((function(t){return t(e),!0})))},document.body.appendChild(l)},c.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===t.removeOnUnmount)for(var n=document.getElementsByTagName("script"),r=0;r<n.length;r+=1)n[r].src.indexOf(e)>-1&&n[r].parentNode&&n[r].parentNode.removeChild(n[r]);var o=ee[e];o&&(delete o.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===t.removeOnUnmount&&delete ee[e])},c.render=function(){var e=t.globalName,r=this.props,o=(r.asyncScriptOnLoad,r.forwardedRef),a=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,["asyncScriptOnLoad","forwardedRef"]);return e&&"undefined"!=typeof window&&(a[e]=void 0!==window[e]?window[e]:void 0),a.ref=o,(0,w.createElement)(n,a)},i}(w.Component),a=(0,w.forwardRef)((function(e,t){return(0,w.createElement)(o,J({},e,{forwardedRef:t}))}));return a.displayName="AsyncScriptLoader("+r+")",a.propTypes={asyncScriptOnLoad:X().func},Q()(a,n)}}((function(){return"https://"+(("undefined"!=typeof window&&window.recaptchaOptions||{}).useRecaptchaNet?"recaptcha.net":"www.google.com")+"/recaptcha/api.js?onload="+ne+"&render=explicit"}),{callbackName:ne,globalName:"grecaptcha"})(G);var oe=i(41505),ae=i.n(oe),ie=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ce=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},se=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},ue={outline:"none"},le=function(e){function t(){var n,r;ie(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=se(this,e.call.apply(e,[this].concat(a))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=O().createRef(),r._onFocusIn=function(){r._isMounted&&r._lastBlurEvent&&r.isInsideNode(r.ref.current,r._lastBlurEvent.target)&&!r.isInsideNode(r.ref.current,document.activeElement)&&r.setState({focused:!1},(function(){document.removeEventListener("focusin",r._onFocusIn),r.props.onBlur(r._lastBlurEvent)}))},r.onFocus=function(e){var t=r.props.onFocus;r.state.focused||r.setState({focused:!0},(function(){document.addEventListener("focusin",r._onFocusIn),t(e)}))},r.onBlur=function(e){e.persist(),r._lastBlurEvent=e},r.isInsideNode=function(e,t){return null!=e&&e.contains(t)},se(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){null!=document&&document.querySelector("body").setAttribute("tabindex","-1"),this._isMounted=!0},t.prototype.componentWillUnmount=function(){this._isMounted=!1,document.removeEventListener("focusin",this._onFocusIn)},t.prototype.focus=function(){var e=this.ref.current;null!=e&&"function"==typeof e.focus&&e.focus()},t.prototype.render=function(){var e=this.props.children,t=this.state.focused,n={onFocus:this.onFocus,onBlur:this.onBlur};return"function"==typeof e?O().cloneElement(e({focused:t,getRef:this.ref}),n):O().createElement("div",ce({ref:this.ref,style:ue},n),e)},t}(O().Component);le.propTypes={children:ae().oneOfType([ae().node,ae().func]).isRequired,onBlur:ae().func,onFocus:ae().func},le.defaultProps={onBlur:function(){},onFocus:function(){}};const fe=le;var pe,de,he,me,ge=i(70696),ve=i(10535),ye=i(23427),be=i(319),we=i.n(be),Oe=i(37188),xe=i(24875),ke=(pe={},n()(pe,ye.Z.condition.BASE,"inherit"),n()(pe,ye.Z.condition.DANGER,xe.FS.color("signal.danger")),n()(pe,ye.Z.condition.SUCCESS,xe.FS.color("signal.success")),n()(pe,ye.Z.condition.WARNING,xe.FS.color("signal.warning")),n()(pe,ye.Z.condition.INFO,xe.FS.color("signal.info")),pe),Se=(0,x.ZP)(Oe.hc).withConfig({displayName:"StyledSignalList"})(de||(de=b()(["\n && {\n list-style-type: none;\n }\n"]))),Pe=x.ZP.span.withConfig({displayName:"StyledSignalListIcon"})(he||(he=b()(["\n position: absolute;\n left: -1.6rem;\n text-align: left;\n"]))),je=(0,x.ZP)(Oe.EF).withConfig({displayName:"StyledSignalListItem"})(me||(me=b()(["\n && {\n color: ",";\n position: relative;\n padding: 0;\n }\n"])),(function(e){return function(e){return ke[e.condition]||"inherit"}(e)})),_e=i(85893);const Ee=function(e){return(0,_e.jsx)(Se,{as:"ul",children:O().Children.map(e.children,(function(e){return O().cloneElement(e)}))})};var Ce,Te,De=i(88162),Re=(Ce={},n()(Ce,ye.Z.condition.BASE,!1),n()(Ce,ye.Z.condition.DANGER,"times"),n()(Ce,ye.Z.condition.SUCCESS,"check"),n()(Ce,ye.Z.condition.WARNING,"exclamation-triangle"),n()(Ce,ye.Z.condition.INFO,"info"),Ce),Me=function(e){var t=Re[e.condition];return t?(0,_e.jsx)(De.Z,{icon:t,position:ye.Z.position.SOLE}):Te||(Te=(0,_e.jsx)("i",{children:"•"}))},Ie=function(e){return(0,_e.jsxs)(je,{condition:e.condition,children:[(0,_e.jsx)(Pe,{children:Me(e)}),e.label,O().Children.map(e.children,(function(e){return O().cloneElement(e)}))]})};Ie.defaultProps={condition:ye.Z.condition.BASE};const Ae={List:Ee,Item:Ie};const Ne=function(e){if(!e.error)return null;var t=[];return Object.keys(e.error).forEach((function(n){t.push.apply(t,we()(e.error[n]))})),(0,_e.jsx)(Ae.List,{children:t.map((function(e,t){return(0,_e.jsx)(Ae.Item,{condition:"danger",label:e},t)}))})};var Ze=i(87585);function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Le(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Ue=function(e){var t,n,r,o,a=e.children,i=e.description,c=e.dirty,s=e.isDisplay,l=e.error,f=e.hasValue,p=e.id,d=e.label,h=e.mandatory,m=e.mandatoryTitle,g=e.immutable,v=e.touched,y=e.signal,b=!g&&v&&l&&Object.keys(l).length>0,w=h&&m?", ".concat(m):"",O="".concat(ge.Z.adjustedHTMLString(d)).concat(w),x=y||function(e,t,n,r){return t?ye.Z.condition.DANGER:e?ye.Z.condition.INFO:n&&!r?ye.Z.condition.WARNING:void 0}(c,b,h,f),k={__html:"".concat(ve.Z.sanitizeHtml(d)).concat(h?" *":"")},S=!s&&!g&&{htmlFor:p},P=u.Z.getEmbedType(),j=["admin","legacy-admin"].includes(P);return(0,_e.jsx)(fe,{children:function(e){var u=e.getRef;return(0,_e.jsx)(Ze.T3,{children:(0,_e.jsxs)(Ze.QZ,{ref:u,label:d,isAdmin:j,children:[d&&(0,_e.jsx)(Ze.yr,Fe(Fe({},S),{},{hasValue:f,dirty:c,title:O,immutable:g,isDisplay:s,signal:x,isAdmin:j,children:t||(t=(0,_e.jsx)("span",{dangerouslySetInnerHTML:k}))})),(0,_e.jsxs)(Ze.m9,{isAdmin:j,children:[n||(n=(0,_e.jsx)(Ze.if,{hasValue:f,immutable:g,isDisplay:s,signal:x,children:a})),b&&(r||(r=(0,_e.jsx)(Ze.gi,{children:(0,_e.jsx)(Ne,{error:l})}))),i&&(o||(o=(0,_e.jsx)(Ze.Mp,{children:i})))]})]})})}})};var He=i(35997);const Be=(0,f.ZP)((function(e){var t,n=e.message,r=e.intl;return n&&n.text?(0,_e.jsx)(Ae.List,{children:(0,_e.jsx)(Ae.Item,{condition:n.negative?"danger":"base",label:(t=n.text,r.formatMessage({id:t}))})}):null}));var We,ze=i(6479),Ye=i.n(ze),Ve=i(65035),qe=i(7281),Ge=i(88601),Ke=(0,x.ZP)(Ve.Z).withConfig({displayName:"StyledLoginButton"})(We||(We=b()(["\n &&& {\n font-size: ",";\n border-radius: ",";\n display: flex;\n justify-content: center;\n padding: 1.25rem 0;\n width: 100%;\n margin-top: 20px;\n margin-bottom: 10px;\n\n &:not(:last-child) {\n margin-right: 0;\n }\n }\n"])),qe.Z.font(1.3),Ge.Z.radii("buttonLarge")),Xe=["disabled","pending","label"];function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Qe=function(e){var t=e.disabled,r=e.pending,o=e.label,a=Ye()(e,Xe);return(0,_e.jsx)(Ke,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$e(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({disabled:t,pending:r,label:o,ink:"primary",look:"raised",type:"submit","data-cy":"btn-submit"},a))};var Je=i(44012),et=i(34206);const tt=function(e){var t=e.title,n=e.subtitle;return(0,_e.jsxs)(_e.Fragment,{children:[(0,_e.jsx)(et.ZP.H5,{children:(0,_e.jsx)(Je.Z,{id:t})}),n&&(0,_e.jsx)(et.ZP.P,{children:(0,_e.jsx)(Je.Z,{id:n})})]})};const nt=function(e){var t=(0,w.useState)(!1),n=H()(t,2),r=n[0],o=n[1];return[r,{onAnimationStart:function(e){"onAutoFillStart"===e.animationName&&o(!0)},onChange:function(t){e(t.target.value),o(!1)}}]};var rt,ot,at,it,ct,st,ut,lt=i(30759),ft=(0,x.iv)(rt||(rt=b()(["\n align-items: center;\n cursor: ",";\n display: flex;\n"])),(function(e){return e.immutable?"not-allowed":"default"})),pt=x.ZP.label.withConfig({displayName:"StyledEditableWrapper"})(ot||(ot=b()(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),ft),dt=(0,x.iv)(at||(at=b()(["\n background-color: transparent;\n border: 0;\n cursor: ",";\n flex-grow: 1;\n min-height: 2.6rem;\n min-width: 0;\n outline: 0;\n padding: 0;\n ","\n &::-ms-clear {\n display: none;\n }\n\n &::-webkit-clear-button {\n display: none;\n }\n\n &::-webkit-inner-spin-button {\n display: none;\n }\n\n &[type='number'] {\n appearance: textfield;\n }\n\n &[type='search'] {\n appearance: none;\n }\n\n &:disabled {\n -webkit-text-fill-color: ","; // Safari fix\n opacity: 1; // iOS fix\n }\n\n /* remove indicators */\n &[type='date'],\n &[type='datetime-local'],\n &[type='month'],\n &[type='time'],\n &[type='week'] {\n appearance: none;\n display: flex;\n\n /* reset margin on smaller screens */\n ::-webkit-date-and-time-value {\n ","\n }\n }\n\n // allow pointer event only on touch devices\n @media (pointer: coarse) {\n pointer-events: ",";\n }\n"])),(function(e){return e.immutable?"not-allowed":"default"}),(function(){return(0,lt.Z)({color:xe.FS.color("text")})}),xe.FS.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),ht=(0,x.iv)(it||(it=b()(["\n display: flex;\n align-items: center;\n"]))),mt=x.ZP.div.withConfig({displayName:"StyledEditableControl"})(ct||(ct=b()(["\n &&& {\n ","\n }\n"])),ht),gt=x.ZP.span.withConfig({displayName:"StyledEditableValue"})(st||(st=b()(["\n width: 100%;\n\n && {\n //url\n [type='url'] + .input-group-addon > a {\n color: inherit; // reset bootstrap default\n }\n\n //url\n [type='tel'] + .input-group-addon > a {\n color: inherit; // reset bootstrap default\n }\n\n //date\n .date-edit {\n .input-group-addon {\n cursor: pointer;\n }\n\n input {\n z-index: 0;\n }\n\n &.disabled {\n input {\n cursor: not-allowed;\n }\n }\n\n .right-addon {\n position: relative;\n }\n\n .right-addon input {\n padding-right: 30px;\n }\n\n .reset {\n position: absolute;\n padding-right: 10px;\n padding-top: 5px;\n right: 0;\n color: #999;\n font-size: 18px;\n font-style: normal;\n cursor: pointer;\n }\n\n .reset:hover {\n color: ",";\n }\n }\n }\n"])),xe.FS.color("signal.danger")),vt=i(58129);const yt=x.ZP.div.withConfig({displayName:"StyledButtonGroup"})(ut||(ut=b()(["\n display: flex;\n\n &&& > "," {\n :not(:first-child) {\n margin-left: -1px;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n\n :not(:last-child) {\n margin-right: 0;\n border-right: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n }\n"])),vt.Z);var bt,wt,Ot,xt,kt,St=x.ZP.input.withConfig({displayName:"StyledLoginFormInput"})(bt||(bt=b()(["\n /* stylelint-disable-next-line block-no-empty */\n @keyframes onAutoFillStart {\n from {\n }\n }\n\n &&&& {\n ","\n transition: background-color 50000s, color 50000s, filter 50000s;\n\n &:-webkit-autofill {\n animation-duration: 50000s;\n animation-name: onAutoFillStart;\n }\n padding-top: 0.7rem;\n padding-bottom: 0.7rem;\n }\n"])),dt),Pt=x.ZP.div.withConfig({displayName:"StyledLoginFormInputWrapper"})(wt||(wt=b()(["\n &&& {\n ","\n }\n"])),ft),jt=(0,x.ZP)(Ve.Z).withConfig({displayName:"StyledTransparentButton"})(Ot||(Ot=b()(["\n &&& {\n margin-right: 0;\n background-color: transparent;\n color: ",";\n padding: 1.25rem 0;\n width: 100%;\n justify-content: center;\n\n &:hover {\n background-color: transparent;\n }\n }\n"])),Ge.Z.color("primary")),_t=x.ZP.div.withConfig({displayName:"StyledLoginFormWrapper"})(xt||(xt=b()(["\n "," {\n margin-top: 1.8rem;\n width: auto;\n flex-direction: column;\n\n "," {\n flex-grow: 1;\n }\n }\n"])),yt,vt.Z);function Et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ct(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Et(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Et(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Tt=function(e){var t=e.captchaKey,n=e.changePage,r=e.intl,o=e.login,a=e.loginPending,i=e.message,c=e.password,s=e.recaptchaActivated,u=e.setPassword,l=e.setUsername,f=e.showTitle,p=e.username,d=e.entryPage,h=nt(l),m=H()(h,2),g=m[0],v=m[1],y=nt(u),b=H()(y,2),O=b[0],x=b[1],S=(0,w.useRef)(),j=d===k,_=function(e){return r.formatMessage({id:e})},E=He.Z.usePrevious(s),C=(0,w.useCallback)(function(){var e=F()(W().mark((function e(t){var n;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&t.preventDefault(),n=null,!s){e.next=7;break}return e.next=5,S.current.executeAsync();case 5:n=e.sent,S.current.reset();case 7:o(p,c,n);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[o,p,c,s]);(0,w.useEffect)((function(){s&&!E&&C()}),[s,E,C]);var T=!!p,D=!T;return(0,_e.jsxs)(_t,{children:[f&&(kt||(kt=(0,_e.jsx)(tt,{title:"client.login.form.title",subtitle:"client.login.form.introduction"}))),(0,_e.jsxs)("form",{onSubmit:C,children:[(0,_e.jsx)(Ue,{hasValue:!!p||g,id:"login-username",label:_("client.login.form.userPlaceholder"),immutable:j,children:(0,_e.jsx)(Pt,{children:(0,_e.jsx)(St,Ct({autoFocus:D,name:"user","data-cy":"login-form_user-input",required:!0,type:"text",value:p,disabled:j,onFocus:function(e){return e.target.select()}},v))})}),(0,_e.jsx)(Ue,{hasValue:!!c||O,id:"login-password",label:_("client.login.form.passwordPlaceholder"),children:(0,_e.jsx)(Pt,{children:(0,_e.jsx)(St,Ct({autoFocus:T,name:"password","data-cy":"login-form_password-input",required:!0,type:"password",value:c,onFocus:function(e){return e.target.select()}},x))})}),(0,_e.jsx)(Be,{message:i}),t&&s&&(0,_e.jsx)(re,{ref:S,badge:"bottomright",size:"invisible",sitekey:t,hl:r.locale}),(0,_e.jsx)(Qe,{disabled:a||""===p&&!g||""===c&&!O,label:_("client.login.form.button"),pending:a,"data-cy":"login-form_login-button"}),(0,_e.jsx)(jt,{label:_("client.login.form.forgotLink"),onClick:function(){return n(P)},"data-cy":"login-form_request-button"}),j&&(0,_e.jsx)(jt,{label:_("client.login.form.backLink"),onClick:function(){return n(k)}})]})]})};var Dt={changePage:A,setUsername:N,setPassword:Z,login:v};const Rt=(0,p.connect)((function(e){return{username:e.login.username,password:e.login.password,message:e.loginForm.message,loginPending:e.loginForm.loginPending,captchaKey:e.login.captchaKey,recaptchaActivated:e.loginForm.recaptchaActivated,entryPage:e.login.entryPage}}),Dt)((0,f.ZP)(Tt));var Mt,It;const At=function(e){var t=e.entryPage,n=e.username,r=e.requestPassword,o=e.intl,a=e.showTitle,i=e.pending,c=e.changePage,s=(0,w.useState)(n||""),u=H()(s,2),l=u[0],f=u[1],p=t===k,d=function(e){return o.formatMessage({id:e})};return(0,_e.jsxs)(_t,{children:[a&&(Mt||(Mt=(0,_e.jsx)(tt,{title:"client.login.passwordRequest.title"}))),!p&&(It||(It=(0,_e.jsx)(et.ZP.P,{children:(0,_e.jsx)(Je.Z,{id:"client.login.passwordRequest.introduction"})}))),(0,_e.jsxs)("form",{onSubmit:function(e){e.preventDefault(),r(l)},children:[(0,_e.jsx)(Ue,{hasValue:Boolean(l),id:"login-username",label:d("client.login.form.userPlaceholder"),immutable:p,children:(0,_e.jsx)(Pt,{children:(0,_e.jsx)(St,{name:"user",onChange:function(e){f(e.target.value)},required:!0,type:"text",value:l,disabled:p,"data-cy":"password-request_input"})})}),(0,_e.jsx)(Qe,{disabled:!l||i,label:d("client.login.passwordRequest.button"),pending:i,"data-cy":"password-request_submit-button"}),(0,_e.jsx)(jt,{disabled:i,label:d("client.login.passwordRequest.abortButton"),name:"abort",onClick:function(){return c(S)},"data-cy":"password-request_abort-button"})]})]})};var Nt={changePage:A,requestPassword:function(e){return{type:m,payload:{username:e}}}};const Zt=(0,p.connect)((function(e){return{username:e.login.username,pending:e.loginForm.loginPending,entryPage:e.login.entryPage}}),Nt)((0,f.ZP)(At));var Lt="INITIALIZED",Ft="PasswordUpdateDialog/UPDATE_OLD_PASSWORD",Ut="PasswordUpdateDialog/UPDATE_NEW_PASSWORD",Ht="PasswordUpdateDialog/SET_NEW_PASSWORD",Bt="PasswordUpdateDialog/SET_NEW_PASSWORD_VALIDATION_ERRORS",Wt="PasswordUpdateDialog/UPDATE_NEW_PASSWORD_REPEAT",zt="PasswordUpdateDialog/SAVE_PASSWORD",Yt="PasswordUpdateDialog/SAVE_PASSWORD_SUCCESS",Vt="PasswordUpdateDialog/SAVE_PASSWORD_FAILURE",qt="PasswordUpdateDialog/VALIDATE",Gt="PasswordUpdateDialog/RESET_PASSWORD_UPDATED_FAILED",Kt=function(e){return{type:Ft,payload:{oldPassword:e}}},Xt=function(e){return{type:Bt,payload:{errors:e}}},$t=function(e,t){return{type:Vt,payload:{errorCode:e,validationMessages:t}}},Qt="PasswordUpdateDialog/FETCH_VALIDATION_RULES",Jt="PasswordUpdateDialog/SET_VALIDATION_RULES",en=i(35728),tn={INVALID_CREDENTIALS:"client.login.passwordUpdate.invalidCredentials",UNEXPECTED_ERROR:"client.login.passwordUpdate.unexpectedError"};const nn=function(e){return(0,_e.jsx)(Ae.List,{children:(0,_e.jsx)(Ae.Item,{condition:ye.Z.condition.DANGER,children:(0,_e.jsx)(Je.Z,{id:(t=e.errorCode,tn[t]||"client.login.passwordUpdate.failure")})})});var t};const rn=function(e){return(0,_e.jsx)(Ae.List,{children:e.rules.map((function(t,n){var r=null,o=t.message;if(e.errors){var a=e.errors[t.name];!0===a?r=ye.Z.condition.DANGER:"string"==typeof a?(r=ye.Z.condition.DANGER,o=a):r=ye.Z.condition.SUCCESS}return(0,_e.jsx)(Ae.Item,{condition:r,label:o},n)}))})};var on,an,cn=x.ZP.input.attrs((function(e){return{type:"password"}})).withConfig({displayName:"StyledPasswordInput"})(on||(on=b()(["\n &&&& {\n ","\n }\n"])),dt),sn=x.ZP.div.withConfig({displayName:"StyledPasswordInputWrapper"})(an||(an=b()(["\n && {\n ","\n }\n"])),ft);const un=function(e){return(0,_e.jsx)(Ue,{hasValue:!!e.value,id:"".concat(e.name,"-input"),immutable:!0===e.readOnly,label:e.label,signal:e.value?void 0===e.valid?null:e.valid?ye.Z.condition.SUCCESS:ye.Z.condition.DANGER:null,children:(0,_e.jsx)(sn,{immutable:!0===e.readOnly,children:(0,_e.jsx)(cn,{id:"".concat(e.name,"-input"),value:e.value,onChange:function(t){return e.onChange(t.target.value)},disabled:!0===e.readOnly,immutable:!0===e.readOnly,onKeyDown:e.onKeyDown,autoFocus:e.autoFocus})})})};var ln;const fn=x.ZP.div(ln||(ln=b()(["\n "," {\n width: 100%;\n }\n"])),vt.Z);var pn,dn,hn,mn,gn;function vn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vn(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var bn=x.ZP.div.withConfig({displayName:"StyledValidationRulesWrapper"})(pn||(pn=b()(["\n margin: 1rem;\n"])));const wn=function(e){var t=e.captchaKey,n=e.fetchValidationRules,r=e.forcedUpdate,o=e.initialized,a=e.intl,i=e.password,c=e.savePassword,s=e.showOldPasswordField,u=e.showTitle,l=e.updateNewPassword,f=e.updateNewPasswordRepeat,p=e.updateOldPassword,d=e.validationRules,h=(0,w.useRef)();(0,w.useEffect)((function(){n()}),[n]),(0,w.useEffect)((function(){d&&o()}),[d,o]);var m=function(){var e=F()(W().mark((function e(t){var n;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),!0!==g()){e.next=7;break}return e.next=4,h.current.executeAsync();case 4:n=e.sent,h.current.reset(),c(n);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),g=function(){return!!i.newPasswordRepeat&&(i.newPassword===i.newPasswordRepeat&&!i.passwordUpdatePending)},v=function(e){return a.formatMessage({id:e})};if(!d)return dn||(dn=(0,_e.jsx)(en.Z,{}));var y=i.passwordUpdatePending,b=!i.oldPassword&&s||i.passwordUpdatePending,O=!i.newPassword||i.passwordUpdatePending||i.newPasswordValidationErrors&&Object.keys(i.newPasswordValidationErrors).length>0;return(0,_e.jsxs)(fn,{children:[u&&(hn||(hn=(0,_e.jsx)(tt,{title:"client.login.passwordUpdate.title"}))),r&&(mn||(mn=(0,_e.jsx)(et.ZP.P,{children:(0,_e.jsx)(Je.Z,{id:"client.login.passwordUpdate.introduction"})}))),(0,_e.jsxs)("form",{onSubmit:m,children:[!0===s&&(0,_e.jsx)(un,yn({tabIndex:1,label:v("client.login.passwordUpdate.oldPassword"),name:"oldPassword",value:i.oldPassword,onChange:p,readOnly:y,autoFocus:!0},i.passwordUpdateFailed&&"INVALID_CREDENTIALS"===i.passwordUpdateErrorCode&&{valid:!1})),(0,_e.jsx)(un,{tabIndex:2,label:v("client.login.passwordUpdate.newPassword"),name:"newPassword",value:i.newPassword,onChange:l,readOnly:b,autoFocus:!0!==s,valid:!O}),(0,_e.jsx)(bn,{children:(0,_e.jsx)(rn,{rules:d,errors:i.newPasswordValidationErrors,rulesNeutral:!i.newPassword})}),(0,_e.jsx)(un,{tabIndex:3,label:v("client.login.passwordUpdate.newPasswordRepeat"),name:"newPasswordRepeat",value:i.newPasswordRepeat,onChange:f,readOnly:O,valid:g()}),i.newPasswordRepeat&&i.newPassword!==i.newPasswordRepeat&&(gn||(gn=(0,_e.jsx)(Ae.List,{children:(0,_e.jsx)(Ae.Item,{condition:"danger",label:(0,_e.jsx)(Je.Z,{id:"client.login.passwordUpdate.noMatch"})})}))),!0===i.passwordUpdateFailed&&(0,_e.jsx)(nn,{errorCode:i.passwordUpdateErrorCode}),(0,_e.jsx)(Qe,{pending:i.passwordUpdatePending,disabled:!1===g(),label:v("client.login.passwordUpdate.saveButton")}),t&&(0,_e.jsx)(re,{ref:h,badge:"bottomright",size:"invisible",sitekey:t,hl:a.locale})]})]})};var On={updateOldPassword:Kt,updateNewPassword:function(e){return{type:Ut,payload:{newPassword:e}}},updateNewPasswordRepeat:function(e){return{type:Wt,payload:{newPasswordRepeat:e}}},fetchValidationRules:function(){return{type:Qt}},savePassword:function(e){return{type:zt,payload:{captchaToken:e}}},initialized:function(){return{type:Lt}}};const xn=(0,p.connect)((function(e){return{password:e.passwordUpdate.password,validationRules:e.passwordUpdate.validationRules,showOldPasswordField:e.passwordUpdate.dialog.showOldPasswordField,forcedUpdate:e.passwordUpdate.dialog.forcedUpdate,captchaKey:e.login.captchaKey}}),On)((0,f.ZP)(wn));var kn,Sn,Pn,jn,_n,En,Cn=i(30604),Tn="two-factor-connector/INITIALIZE",Dn="two-factor-connector/SET_TWO_STEP_ACTIVE",Rn="two-factor-connector/SET_SECRET",Mn="two-factor-connector/SET_USER_NAME",In="two-factor-connector/REQUEST_SECRET",An="two-factor-connector/GO_TO_SECRET_VERIFICATION",Nn="two-factor-connector/GO_TO_START",Zn="two-factor-connector/GO_TO_SECRET",Ln="two-factor-connector/VERIFY_CODE",Fn="root/SUCCESS",Un="root/SET_SETUP_SUCCESSFUL",Hn="root/GO_TO_RESULT",Bn=function(){return{type:Tn}},Wn=function(e){return{type:Dn,payload:{twoFactorActive:e}}},zn=function(e){return{type:Rn,payload:{secret:e}}},Yn=function(e){return{type:Mn,payload:{username:e}}},Vn=function(){return{type:Nn}},qn=function(e){return{type:Un,payload:{setupSuccessful:e}}},Gn=i(83324),Kn=x.ZP.div.withConfig({displayName:"StyledButtonWrapper"})(kn||(kn=b()(["\n display: flex;\n justify-content: flex-end;\n margin-top: ",";\n\n > "," {\n margin-right: 0;\n }\n"])),qe.Z.space(.5),vt.Z),Xn=x.ZP.div.withConfig({displayName:"StyledMessageWrapper"})(Sn||(Sn=b()(["\n display: grid;\n grid-template-columns: 9% 1fr;\n grid-column-gap: ",";\n"])),qe.Z.space(-.5)),$n=x.ZP.span.withConfig({displayName:"StyledIconWrapper"})(Pn||(Pn=b()(["\n display: flex;\n align-items: center;\n color: ",";\n font-size: ",";\n\n > * {\n max-width: 100%;\n }\n"])),(function(e){return e.isSuccessful?xe.FS.color("signal.success"):xe.FS.color("signal.danger")}),qe.Z.font(10)),Qn=x.ZP.div.withConfig({displayName:"StyledTextWrapper"})(jn||(jn=b()(["\n display: flex;\n align-items: center;\n"])));const Jn=function(e){var t=e.success,n=e.goToStart,r=e.setupSuccessful,o=e.intl;(0,Gn.z)(t);var a=function(e){return o.formatMessage({id:e})};return r?(0,_e.jsxs)(_e.Fragment,{children:[_n||(_n=(0,_e.jsxs)(Xn,{children:[(0,_e.jsx)($n,{isSuccessful:!0,children:(0,_e.jsx)(De.Z,{icon:"check"})}),(0,_e.jsx)(Qn,{children:(0,_e.jsx)(et.ZP.P,{children:(0,_e.jsx)(Je.Z,{id:"client.two-factor-connector.successfulText"})})})]})),(0,_e.jsx)(Kn,{children:(0,_e.jsx)(Ve.Z,{label:a("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:t})})]}):(0,_e.jsxs)(_e.Fragment,{children:[En||(En=(0,_e.jsxs)(Xn,{children:[(0,_e.jsx)($n,{isSuccessful:!1,children:(0,_e.jsx)(De.Z,{icon:"times"})}),(0,_e.jsx)(Qn,{children:(0,_e.jsx)(et.ZP.P,{children:(0,_e.jsx)(Je.Z,{id:"client.two-factor-connector.errorText"})})})]})),(0,_e.jsx)(Kn,{children:(0,_e.jsx)(Ve.Z,{label:a("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:n})})]})};var er={success:function(){return{type:Fn}},goToStart:Vn};const tr=(0,p.connect)((function(e){return{setupSuccessful:e.twoFactorConnector.setupSuccessful}}),er)((0,f.ZP)(Jn));var nr,rr=Object.defineProperty,or=Object.getOwnPropertySymbols,ar=Object.prototype.hasOwnProperty,ir=Object.prototype.propertyIsEnumerable,cr=(e,t,n)=>t in e?rr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sr=(e,t)=>{for(var n in t||(t={}))ar.call(t,n)&&cr(e,n,t[n]);if(or)for(var n of or(t))ir.call(t,n)&&cr(e,n,t[n]);return e},ur=(e,t)=>{var n={};for(var r in e)ar.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&or)for(var r of or(e))t.indexOf(r)<0&&ir.call(e,r)&&(n[r]=e[r]);return n};(e=>{const t=class{constructor(e,n,r,o){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let i=[];for(let e=0;e<this.size;e++)i.push(!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();const c=this.addEccAndInterleave(r);if(this.drawCodewords(c),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(o=t,e=n),this.applyMask(t)}}a(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,n,o=1,i=40,s=-1,u=!0){if(!(t.MIN_VERSION<=o&&o<=i&&i<=t.MAX_VERSION)||s<-1||s>7)throw new RangeError("Invalid value");let l,f;for(l=o;;l++){const r=8*t.getNumDataCodewords(l,n),o=c.getTotalBits(e,l);if(o<=r){f=o;break}if(l>=i)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])u&&f<=8*t.getNumDataCodewords(l,e)&&(n=e);let p=[];for(const t of e){r(t.mode.modeBits,4,p),r(t.numChars,t.mode.numCharCountBits(l),p);for(const e of t.getData())p.push(e)}a(p.length==f);const d=8*t.getNumDataCodewords(l,n);a(p.length<=d),r(0,Math.min(4,d-p.length),p),r(0,(8-p.length%8)%8,p),a(p.length%8==0);for(let e=236;p.length<d;e^=253)r(e,8,p);let h=[];for(;8*h.length<p.length;)h.push(0);return p.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(l,n,h,s)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const r=21522^(t<<10|n);a(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,o(r,e));this.setFunctionModule(8,7,o(r,6)),this.setFunctionModule(8,8,o(r,7)),this.setFunctionModule(7,8,o(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,o(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,o(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,o(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;a(t>>>18==0);for(let e=0;e<18;e++){const n=o(t,e),r=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(r,a,n),this.setFunctionModule(a,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),a=e+r,i=t+n;0<=a&&a<this.size&&0<=i&&i<this.size&&this.setFunctionModule(a,i,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const o=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],i=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],c=Math.floor(t.getNumRawDataModules(n)/8),s=o-c%o,u=Math.floor(c/o);let l=[];const f=t.reedSolomonComputeDivisor(i);for(let n=0,r=0;n<o;n++){let o=e.slice(r,r+u-i+(n<s?0:1));r+=o.length;const a=t.reedSolomonComputeRemainder(o,f);n<s&&o.push(0),l.push(o.concat(a))}let p=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,n)=>{(e!=u-i||n>=s)&&p.push(t[e])}));return a(p.length==c),p}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let a=0;a<2;a++){const i=t-a,c=0==(t+1&2)?this.size-1-r:r;!this.isFunction[c][i]&&n<8*e.length&&(this.modules[c][i]=o(e[n>>>3],7-(7&n)),n++)}}a(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[n][i]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][i],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[i][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[i][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,o=Math.ceil(Math.abs(20*n-10*r)/r)-1;return a(0<=o&&o<=9),e+=o*t.PENALTY_N4,a(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return a(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const o of e){const e=o^r.shift();r.push(0),n.forEach(((n,o)=>r[o]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return a(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];a(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function o(e,t){return 0!=(e>>>t&1)}function a(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const i=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new i(i.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!i.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const o=Math.min(e.length-n,3);r(parseInt(e.substr(n,o),10),3*o+1,t),n+=o}return new i(i.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!i.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let o=45*i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new i(i.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:i.isNumeric(e)?[i.makeNumeric(e)]:i.isAlphanumeric(e)?[i.makeAlphanumeric(e)]:[i.makeBytes(i.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new i(i.Mode.ECI,0,t)}static isNumeric(e){return i.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return i.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let c=i;c.NUMERIC_REGEX=/^[0-9]*$/,c.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,c.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=c})(nr||(nr={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})(t=e.QrCode||(e.QrCode={}))})(nr||(nr={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(t=e.QrSegment||(e.QrSegment={}))})(nr||(nr={}));var lr=nr,fr={L:lr.QrCode.Ecc.LOW,M:lr.QrCode.Ecc.MEDIUM,Q:lr.QrCode.Ecc.QUARTILE,H:lr.QrCode.Ecc.HIGH},pr=128,dr="L",hr="#FFFFFF",mr="#000000",gr=!1;
|
|
52
|
+
*/var r=n(1024),o=n(61688);var a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useSyncExternalStore,c=r.useRef,s=r.useEffect,u=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var f=c(null);if(null===f.current){var p={hasValue:!1,value:null};f.current=p}else p=f.current;f=u((function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==o&&p.hasValue){var t=p.value;if(o(t,e))return c=t}return c=e}if(t=c,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,c=n)}var i,c,s=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,n,r,o]);var d=i(e,f[0],f[1]);return s((function(){p.hasValue=!0,p.value=d}),[d]),l(d),d}},61688:(e,t,n)=>{"use strict";e.exports=n(53250)},52798:(e,t,n)=>{"use strict";e.exports=n(50139)},28721:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});const r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let o;const a=new Uint8Array(16);function i(){if(!o&&(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!o))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(a)}const c=[];for(let e=0;e<256;++e)c.push((e+256).toString(16).slice(1));function s(e,t=0){return(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase()}const u=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();const o=(e=e||{}).random||(e.rng||i)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return s(o)}},1024:e=>{"use strict";e.exports=t},30314:t=>{"use strict";t.exports=e},71298:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},38088:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},87462:(e,t,n)=>{"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Z:()=>r})},86:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:()=>r})},31599:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},28549:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},2717:(e,t,n)=>{"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Z:()=>r})},33417:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(28549);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},32924:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},1972:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(78001);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},62360:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:()=>r})},78001:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(31599);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}i.m=o,i.amdD=function(){throw new Error("define cannot be used indirect")},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>"chunk-"+({85:"code-editor",198:"vendor-fontawesome",614:"vendor-icons",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"90043e6c234758127b6c",198:"ab9f2eea50d01a3a62a9",560:"e3d5772311dd2d78dc20",608:"c3b57ad1736c5780e353",614:"46a81a2af023c95e2006",631:"8d55ab629611cf584826",877:"a7f934130ec5ac7a8cff"}[e]+".js",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="tocco-:",i.l=(e,t,o,a)=>{if(n[e])n[e].push(t);else{var c,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var f=u[l];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==r+o){c=f;break}}c||(s=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.setAttribute("data-webpack",r+o),c.src=e),n[e]=[t];var p=(t,r)=>{c.onerror=c.onload=null,clearTimeout(d);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(r))),t)return t(r)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=p.bind(null,c.onerror),c.onload=p.bind(null,c.onload),s&&document.head.appendChild(c)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.j=535,i.p="/",(()=>{var e={535:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var a=i.p+i.u(t),c=new Error;i.l(a,(n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",c.name="ChunkLoadError",c.type=o,c.request=a,r[1](c)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,c,s]=n,u=0;if(a.some((t=>0!==e[t]))){for(r in c)i.o(c,r)&&(i.m[r]=c[r]);if(s)s(i)}for(t&&t(n);u<a.length;u++)o=a[u],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_=self.webpackChunktocco_||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),i.nc=void 0;var c={};return(()=>{"use strict";i.r(c),i.d(c,{app:()=>Qy});var e=i(18882),t=i(59713),n=i.n(t),r=i(45697),o=i.n(r),a=i(19743),s=i(19241),u=i(23369),l=i(65378),f=i(74806),p=i(50558),d="login/INITIALIZE",h="login/LOGIN",m="login/REQUEST_PASSWORD",g="login/CHECK_USERNAME",v=function(e,t,n,r){return{type:h,payload:{username:e,password:t,captchaToken:n,userCode:r}}},y=i(28655),b=i.n(y),w=i(1024),O=i.n(w),x=i(38205),k="USERNAME_FORM",S="LOGIN_FORM",P="PASSWORD_REQUEST",j="TWOSTEPLOGIN",_="PASSWORD_UPDATE",E="TWOSTEPLOGIN_ACTIVATION",C="login/CHANGE_PAGE",T="login/SET_ENTRY_PAGE",D="login/SET_USERNAME",R="login/SET_PASSWORD",M="login/SET_CAPTCHA_KEY",I=function(e){return{type:T,payload:{entryPage:e}}},A=function(e){return{type:C,payload:{currentPage:e}}},N=function(e){return{type:D,payload:{username:e}}},Z=function(e){return{type:R,payload:{password:e}}},L=i(48926),F=i.n(L),U=i(63038),H=i.n(U),B=i(87757),W=i.n(B),z=i(99860),Y=i.n(z);function V(){return(V=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function q(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var G=function(e){var t,n;function r(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(q(t)),t.handleErrored=t.handleErrored.bind(q(t)),t.handleChange=t.handleChange.bind(q(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(q(t)),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getValue=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this.props.grecaptcha.getResponse(this._widgetId):null},o.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},o.execute=function(){var e=this.props.grecaptcha;if(e&&void 0!==this._widgetId)return e.execute(this._widgetId);this._executeRequested=!0},o.executeAsync=function(){var e=this;return new Promise((function(t,n){e.executionResolve=t,e.executionReject=n,e.execute()}))},o.reset=function(){this.props.grecaptcha&&void 0!==this._widgetId&&this.props.grecaptcha.reset(this._widgetId)},o.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},o.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},o.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},o.explicitRender=function(){if(this.props.grecaptcha&&this.props.grecaptcha.render&&void 0===this._widgetId){var e=document.createElement("div");this._widgetId=this.props.grecaptcha.render(e,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge}),this.captcha.appendChild(e)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},o.componentDidMount=function(){this.explicitRender()},o.componentDidUpdate=function(){this.explicitRender()},o.componentWillUnmount=function(){void 0!==this._widgetId&&(this.delayOfCaptchaIframeRemoving(),this.reset())},o.delayOfCaptchaIframeRemoving=function(){var e=document.createElement("div");for(document.body.appendChild(e),e.style.display="none";this.captcha.firstChild;)e.appendChild(this.captcha.firstChild);setTimeout((function(){document.body.removeChild(e)}),5e3)},o.handleRecaptchaRef=function(e){this.captcha=e},o.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl"]));return O().createElement("div",V({},t,{ref:this.handleRecaptchaRef}))},r}(O().Component);G.displayName="ReCAPTCHA",G.propTypes={sitekey:Y().string.isRequired,onChange:Y().func,grecaptcha:Y().object,theme:Y().oneOf(["dark","light"]),type:Y().oneOf(["image","audio"]),tabindex:Y().number,onExpired:Y().func,onErrored:Y().func,size:Y().oneOf(["compact","normal","invisible"]),stoken:Y().string,hl:Y().string,badge:Y().oneOf(["bottomright","bottomleft","inline"])},G.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var K=i(9657),X=i.n(K),$=i(8679),Q=i.n($);function J(){return(J=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ee={},te=0;var ne="onloadcallback";const re=function(e,t){return t=t||{},function(n){var r=n.displayName||n.name||"Component",o=function(r){var o,a;function i(e,t){var n;return(n=r.call(this,e,t)||this).state={},n.__scriptURL="",n}a=r,(o=i).prototype=Object.create(a.prototype),o.prototype.constructor=o,o.__proto__=a;var c=i.prototype;return c.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+te++),this.__scriptLoaderID},c.setupScriptURL=function(){return this.__scriptURL="function"==typeof e?e():e,this.__scriptURL},c.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,(function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)}))},c.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=ee[this.__scriptURL];if(!e||!e.loaded)throw new Error("Script is not loaded.");for(var n in e.observers)e.observers[n](e);delete window[t.callbackName]},c.componentDidMount=function(){var e=this,n=this.setupScriptURL(),r=this.asyncScriptLoaderGetScriptLoaderID(),o=t,a=o.globalName,i=o.callbackName,c=o.scriptId;if(a&&void 0!==window[a]&&(ee[n]={loaded:!0,observers:{}}),ee[n]){var s=ee[n];return s&&(s.loaded||s.errored)?void this.asyncScriptLoaderHandleLoad(s):void(s.observers[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var u={};u[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)},ee[n]={loaded:!1,observers:u};var l=document.createElement("script");for(var f in l.src=n,l.async=!0,t.attributes)l.setAttribute(f,t.attributes[f]);c&&(l.id=c);var p=function(e){if(ee[n]){var t=ee[n].observers;for(var r in t)e(t[r])&&delete t[r]}};i&&"undefined"!=typeof window&&(window[i]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),l.onload=function(){var e=ee[n];e&&(e.loaded=!0,p((function(t){return!i&&(t(e),!0)})))},l.onerror=function(){var e=ee[n];e&&(e.errored=!0,p((function(t){return t(e),!0})))},document.body.appendChild(l)},c.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===t.removeOnUnmount)for(var n=document.getElementsByTagName("script"),r=0;r<n.length;r+=1)n[r].src.indexOf(e)>-1&&n[r].parentNode&&n[r].parentNode.removeChild(n[r]);var o=ee[e];o&&(delete o.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===t.removeOnUnmount&&delete ee[e])},c.render=function(){var e=t.globalName,r=this.props,o=(r.asyncScriptOnLoad,r.forwardedRef),a=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,["asyncScriptOnLoad","forwardedRef"]);return e&&"undefined"!=typeof window&&(a[e]=void 0!==window[e]?window[e]:void 0),a.ref=o,(0,w.createElement)(n,a)},i}(w.Component),a=(0,w.forwardRef)((function(e,t){return(0,w.createElement)(o,J({},e,{forwardedRef:t}))}));return a.displayName="AsyncScriptLoader("+r+")",a.propTypes={asyncScriptOnLoad:X().func},Q()(a,n)}}((function(){return"https://"+(("undefined"!=typeof window&&window.recaptchaOptions||{}).useRecaptchaNet?"recaptcha.net":"www.google.com")+"/recaptcha/api.js?onload="+ne+"&render=explicit"}),{callbackName:ne,globalName:"grecaptcha"})(G);var oe=i(41505),ae=i.n(oe),ie=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ce=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},se=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},ue={outline:"none"},le=function(e){function t(){var n,r;ie(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=se(this,e.call.apply(e,[this].concat(a))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=O().createRef(),r._onFocusIn=function(){r._isMounted&&r._lastBlurEvent&&r.isInsideNode(r.ref.current,r._lastBlurEvent.target)&&!r.isInsideNode(r.ref.current,document.activeElement)&&r.setState({focused:!1},(function(){document.removeEventListener("focusin",r._onFocusIn),r.props.onBlur(r._lastBlurEvent)}))},r.onFocus=function(e){var t=r.props.onFocus;r.state.focused||r.setState({focused:!0},(function(){document.addEventListener("focusin",r._onFocusIn),t(e)}))},r.onBlur=function(e){e.persist(),r._lastBlurEvent=e},r.isInsideNode=function(e,t){return null!=e&&e.contains(t)},se(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){null!=document&&document.querySelector("body").setAttribute("tabindex","-1"),this._isMounted=!0},t.prototype.componentWillUnmount=function(){this._isMounted=!1,document.removeEventListener("focusin",this._onFocusIn)},t.prototype.focus=function(){var e=this.ref.current;null!=e&&"function"==typeof e.focus&&e.focus()},t.prototype.render=function(){var e=this.props.children,t=this.state.focused,n={onFocus:this.onFocus,onBlur:this.onBlur};return"function"==typeof e?O().cloneElement(e({focused:t,getRef:this.ref}),n):O().createElement("div",ce({ref:this.ref,style:ue},n),e)},t}(O().Component);le.propTypes={children:ae().oneOfType([ae().node,ae().func]).isRequired,onBlur:ae().func,onFocus:ae().func},le.defaultProps={onBlur:function(){},onFocus:function(){}};const fe=le;var pe,de,he,me,ge=i(70696),ve=i(10535),ye=i(23427),be=i(319),we=i.n(be),Oe=i(37188),xe=i(24875),ke=(pe={},n()(pe,ye.Z.condition.BASE,"inherit"),n()(pe,ye.Z.condition.DANGER,xe.FS.color("signal.danger")),n()(pe,ye.Z.condition.SUCCESS,xe.FS.color("signal.success")),n()(pe,ye.Z.condition.WARNING,xe.FS.color("signal.warning")),n()(pe,ye.Z.condition.INFO,xe.FS.color("signal.info")),pe),Se=(0,x.ZP)(Oe.hc).withConfig({displayName:"StyledSignalList"})(de||(de=b()(["\n && {\n list-style-type: none;\n }\n"]))),Pe=x.ZP.span.withConfig({displayName:"StyledSignalListIcon"})(he||(he=b()(["\n position: absolute;\n left: -1.6rem;\n text-align: left;\n"]))),je=(0,x.ZP)(Oe.EF).withConfig({displayName:"StyledSignalListItem"})(me||(me=b()(["\n && {\n color: ",";\n position: relative;\n padding: 0;\n }\n"])),(function(e){return function(e){return ke[e.condition]||"inherit"}(e)})),_e=i(85893);const Ee=function(e){return(0,_e.jsx)(Se,{as:"ul",children:O().Children.map(e.children,(function(e){return O().cloneElement(e)}))})};var Ce,Te,De=i(88162),Re=(Ce={},n()(Ce,ye.Z.condition.BASE,!1),n()(Ce,ye.Z.condition.DANGER,"times"),n()(Ce,ye.Z.condition.SUCCESS,"check"),n()(Ce,ye.Z.condition.WARNING,"exclamation-triangle"),n()(Ce,ye.Z.condition.INFO,"info"),Ce),Me=function(e){var t=Re[e.condition];return t?(0,_e.jsx)(De.Z,{icon:t,position:ye.Z.position.SOLE}):Te||(Te=(0,_e.jsx)("i",{children:"•"}))},Ie=function(e){return(0,_e.jsxs)(je,{condition:e.condition,children:[(0,_e.jsx)(Pe,{children:Me(e)}),e.label,O().Children.map(e.children,(function(e){return O().cloneElement(e)}))]})};Ie.defaultProps={condition:ye.Z.condition.BASE};const Ae={List:Ee,Item:Ie};const Ne=function(e){if(!e.error)return null;var t=[];return Object.keys(e.error).forEach((function(n){t.push.apply(t,we()(e.error[n]))})),(0,_e.jsx)(Ae.List,{children:t.map((function(e,t){return(0,_e.jsx)(Ae.Item,{condition:"danger",label:e},t)}))})};var Ze=i(87585);function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Le(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Ue=function(e){var t,n,r,o,a=e.children,i=e.description,c=e.dirty,s=e.isDisplay,l=e.error,f=e.hasValue,p=e.id,d=e.label,h=e.mandatory,m=e.mandatoryTitle,g=e.immutable,v=e.touched,y=e.signal,b=!g&&v&&l&&Object.keys(l).length>0,w=h&&m?", ".concat(m):"",O="".concat(ge.Z.adjustedHTMLString(d)).concat(w),x=y||function(e,t,n,r){return t?ye.Z.condition.DANGER:e?ye.Z.condition.INFO:n&&!r?ye.Z.condition.WARNING:void 0}(c,b,h,f),k={__html:"".concat(ve.Z.sanitizeHtml(d)).concat(h?" *":"")},S=!s&&!g&&{htmlFor:p},P=u.Z.getEmbedType(),j=["admin","legacy-admin"].includes(P);return(0,_e.jsx)(fe,{children:function(e){var u=e.getRef;return(0,_e.jsx)(Ze.T3,{children:(0,_e.jsxs)(Ze.QZ,{ref:u,label:d,isAdmin:j,children:[d&&(0,_e.jsx)(Ze.yr,Fe(Fe({},S),{},{hasValue:f,dirty:c,title:O,immutable:g,isDisplay:s,signal:x,isAdmin:j,children:t||(t=(0,_e.jsx)("span",{dangerouslySetInnerHTML:k}))})),(0,_e.jsxs)(Ze.m9,{isAdmin:j,children:[n||(n=(0,_e.jsx)(Ze.if,{hasValue:f,immutable:g,isDisplay:s,signal:x,children:a})),b&&(r||(r=(0,_e.jsx)(Ze.gi,{children:(0,_e.jsx)(Ne,{error:l})}))),i&&(o||(o=(0,_e.jsx)(Ze.Mp,{children:i})))]})]})})}})};var He=i(35997);const Be=(0,f.ZP)((function(e){var t,n=e.message,r=e.intl;return n&&n.text?(0,_e.jsx)(Ae.List,{children:(0,_e.jsx)(Ae.Item,{condition:n.negative?"danger":"base",label:(t=n.text,r.formatMessage({id:t}))})}):null}));var We,ze=i(6479),Ye=i.n(ze),Ve=i(65035),qe=i(7281),Ge=i(88601),Ke=(0,x.ZP)(Ve.Z).withConfig({displayName:"StyledLoginButton"})(We||(We=b()(["\n &&& {\n font-size: ",";\n border-radius: ",";\n display: flex;\n justify-content: center;\n padding: 1.25rem 0;\n width: 100%;\n margin-top: 20px;\n margin-bottom: 10px;\n\n &:not(:last-child) {\n margin-right: 0;\n }\n }\n"])),qe.Z.font(1.3),Ge.Z.radii("buttonLarge")),Xe=["disabled","pending","label"];function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Qe=function(e){var t=e.disabled,r=e.pending,o=e.label,a=Ye()(e,Xe);return(0,_e.jsx)(Ke,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$e(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({disabled:t,pending:r,label:o,ink:"primary",look:"raised",type:"submit","data-cy":"btn-submit"},a))};var Je=i(44012),et=i(34206);const tt=function(e){var t=e.title,n=e.subtitle;return(0,_e.jsxs)(_e.Fragment,{children:[(0,_e.jsx)(et.ZP.H5,{children:(0,_e.jsx)(Je.Z,{id:t})}),n&&(0,_e.jsx)(et.ZP.P,{children:(0,_e.jsx)(Je.Z,{id:n})})]})};const nt=function(e){var t=(0,w.useState)(!1),n=H()(t,2),r=n[0],o=n[1];return[r,{onAnimationStart:function(e){"onAutoFillStart"===e.animationName&&o(!0)},onChange:function(t){e(t.target.value),o(!1)}}]};var rt,ot,at,it,ct,st,ut,lt=i(30759),ft=(0,x.iv)(rt||(rt=b()(["\n align-items: center;\n cursor: ",";\n display: flex;\n"])),(function(e){return e.immutable?"not-allowed":"default"})),pt=x.ZP.label.withConfig({displayName:"StyledEditableWrapper"})(ot||(ot=b()(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),ft),dt=(0,x.iv)(at||(at=b()(["\n background-color: transparent;\n border: 0;\n cursor: ",";\n flex-grow: 1;\n min-height: 2.6rem;\n min-width: 0;\n outline: 0;\n padding: 0;\n ","\n &::-ms-clear {\n display: none;\n }\n\n &::-webkit-clear-button {\n display: none;\n }\n\n &::-webkit-inner-spin-button {\n display: none;\n }\n\n &[type='number'] {\n appearance: textfield;\n }\n\n &[type='search'] {\n appearance: none;\n }\n\n &:disabled {\n -webkit-text-fill-color: ","; // Safari fix\n opacity: 1; // iOS fix\n }\n\n /* remove indicators */\n &[type='date'],\n &[type='datetime-local'],\n &[type='month'],\n &[type='time'],\n &[type='week'] {\n appearance: none;\n display: flex;\n\n /* reset margin on smaller screens */\n ::-webkit-date-and-time-value {\n ","\n }\n }\n\n // allow pointer event only on touch devices\n @media (pointer: coarse) {\n pointer-events: ",";\n }\n"])),(function(e){return e.immutable?"not-allowed":"default"}),(function(){return(0,lt.Z)({color:xe.FS.color("text")})}),xe.FS.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),ht=(0,x.iv)(it||(it=b()(["\n display: flex;\n align-items: center;\n"]))),mt=x.ZP.div.withConfig({displayName:"StyledEditableControl"})(ct||(ct=b()(["\n &&& {\n ","\n }\n"])),ht),gt=x.ZP.span.withConfig({displayName:"StyledEditableValue"})(st||(st=b()(["\n width: 100%;\n\n && {\n //url\n [type='url'] + .input-group-addon > a {\n color: inherit; // reset bootstrap default\n }\n\n //url\n [type='tel'] + .input-group-addon > a {\n color: inherit; // reset bootstrap default\n }\n\n //date\n .date-edit {\n .input-group-addon {\n cursor: pointer;\n }\n\n input {\n z-index: 0;\n }\n\n &.disabled {\n input {\n cursor: not-allowed;\n }\n }\n\n .right-addon {\n position: relative;\n }\n\n .right-addon input {\n padding-right: 30px;\n }\n\n .reset {\n position: absolute;\n padding-right: 10px;\n padding-top: 5px;\n right: 0;\n color: #999;\n font-size: 18px;\n font-style: normal;\n cursor: pointer;\n }\n\n .reset:hover {\n color: ",";\n }\n }\n }\n"])),xe.FS.color("signal.danger")),vt=i(58129);const yt=x.ZP.div.withConfig({displayName:"StyledButtonGroup"})(ut||(ut=b()(["\n display: flex;\n\n &&& > "," {\n :not(:first-child) {\n margin-left: -1px;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n\n :not(:last-child) {\n margin-right: 0;\n border-right: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n }\n"])),vt.Z);var bt,wt,Ot,xt,kt,St=x.ZP.input.withConfig({displayName:"StyledLoginFormInput"})(bt||(bt=b()(["\n /* stylelint-disable-next-line block-no-empty */\n @keyframes onAutoFillStart {\n from {\n }\n }\n\n &&&& {\n ","\n transition: background-color 50000s, color 50000s, filter 50000s;\n\n &:-webkit-autofill {\n animation-duration: 50000s;\n animation-name: onAutoFillStart;\n }\n padding-top: 0.7rem;\n padding-bottom: 0.7rem;\n }\n"])),dt),Pt=x.ZP.div.withConfig({displayName:"StyledLoginFormInputWrapper"})(wt||(wt=b()(["\n &&& {\n ","\n }\n"])),ft),jt=(0,x.ZP)(Ve.Z).withConfig({displayName:"StyledTransparentButton"})(Ot||(Ot=b()(["\n &&& {\n margin-right: 0;\n background-color: transparent;\n color: ",";\n padding: 1.25rem 0;\n width: 100%;\n justify-content: center;\n\n &:hover {\n background-color: transparent;\n }\n }\n"])),Ge.Z.color("primary")),_t=x.ZP.div.withConfig({displayName:"StyledLoginFormWrapper"})(xt||(xt=b()(["\n "," {\n margin-top: 1.8rem;\n width: auto;\n flex-direction: column;\n\n "," {\n flex-grow: 1;\n }\n }\n"])),yt,vt.Z);function Et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ct(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Et(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Et(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Tt=function(e){var t=e.captchaKey,n=e.changePage,r=e.intl,o=e.login,a=e.loginPending,i=e.message,c=e.password,s=e.recaptchaActivated,u=e.setPassword,l=e.setUsername,f=e.showTitle,p=e.username,d=e.entryPage,h=nt(l),m=H()(h,2),g=m[0],v=m[1],y=nt(u),b=H()(y,2),O=b[0],x=b[1],S=(0,w.useRef)(),j=d===k,_=function(e){return r.formatMessage({id:e})},E=He.Z.usePrevious(s),C=(0,w.useCallback)(function(){var e=F()(W().mark((function e(t){var n;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&t.preventDefault(),n=null,!s){e.next=7;break}return e.next=5,S.current.executeAsync();case 5:n=e.sent,S.current.reset();case 7:o(p,c,n);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[o,p,c,s]);(0,w.useEffect)((function(){s&&!E&&C()}),[s,E,C]);var T=!!p,D=!T;return(0,_e.jsxs)(_t,{children:[f&&(kt||(kt=(0,_e.jsx)(tt,{title:"client.login.form.title",subtitle:"client.login.form.introduction"}))),(0,_e.jsxs)("form",{onSubmit:C,children:[(0,_e.jsx)(Ue,{hasValue:!!p||g,id:"login-username",label:_("client.login.form.userPlaceholder"),immutable:j,children:(0,_e.jsx)(Pt,{children:(0,_e.jsx)(St,Ct({autoFocus:D,name:"user","data-cy":"login-form_user-input",required:!0,type:"text",value:p,disabled:j,onFocus:function(e){return e.target.select()}},v))})}),(0,_e.jsx)(Ue,{hasValue:!!c||O,id:"login-password",label:_("client.login.form.passwordPlaceholder"),children:(0,_e.jsx)(Pt,{children:(0,_e.jsx)(St,Ct({autoFocus:T,name:"password","data-cy":"login-form_password-input",required:!0,type:"password",value:c,onFocus:function(e){return e.target.select()}},x))})}),(0,_e.jsx)(Be,{message:i}),t&&s&&(0,_e.jsx)(re,{ref:S,badge:"bottomright",size:"invisible",sitekey:t,hl:r.locale}),(0,_e.jsx)(Qe,{disabled:a||""===p&&!g||""===c&&!O,label:_("client.login.form.button"),pending:a,"data-cy":"login-form_login-button"}),(0,_e.jsx)(jt,{label:_("client.login.form.forgotLink"),onClick:function(){return n(P)},"data-cy":"login-form_request-button"}),j&&(0,_e.jsx)(jt,{label:_("client.login.form.backLink"),onClick:function(){return n(k)}})]})]})};var Dt={changePage:A,setUsername:N,setPassword:Z,login:v};const Rt=(0,p.connect)((function(e){return{username:e.login.username,password:e.login.password,message:e.loginForm.message,loginPending:e.loginForm.loginPending,captchaKey:e.login.captchaKey,recaptchaActivated:e.loginForm.recaptchaActivated,entryPage:e.login.entryPage}}),Dt)((0,f.ZP)(Tt));var Mt,It;const At=function(e){var t=e.entryPage,n=e.username,r=e.requestPassword,o=e.intl,a=e.showTitle,i=e.pending,c=e.changePage,s=(0,w.useState)(n||""),u=H()(s,2),l=u[0],f=u[1],p=t===k,d=function(e){return o.formatMessage({id:e})};return(0,_e.jsxs)(_t,{children:[a&&(Mt||(Mt=(0,_e.jsx)(tt,{title:"client.login.passwordRequest.title"}))),!p&&(It||(It=(0,_e.jsx)(et.ZP.P,{children:(0,_e.jsx)(Je.Z,{id:"client.login.passwordRequest.introduction"})}))),(0,_e.jsxs)("form",{onSubmit:function(e){e.preventDefault(),r(l)},children:[(0,_e.jsx)(Ue,{hasValue:Boolean(l),id:"login-username",label:d("client.login.form.userPlaceholder"),immutable:p,children:(0,_e.jsx)(Pt,{children:(0,_e.jsx)(St,{name:"user",onChange:function(e){f(e.target.value)},required:!0,type:"text",value:l,disabled:p,"data-cy":"password-request_input"})})}),(0,_e.jsx)(Qe,{disabled:!l||i,label:d("client.login.passwordRequest.button"),pending:i,"data-cy":"password-request_submit-button"}),(0,_e.jsx)(jt,{disabled:i,label:d("client.login.passwordRequest.abortButton"),name:"abort",onClick:function(){return c(S)},"data-cy":"password-request_abort-button"})]})]})};var Nt={changePage:A,requestPassword:function(e){return{type:m,payload:{username:e}}}};const Zt=(0,p.connect)((function(e){return{username:e.login.username,pending:e.loginForm.loginPending,entryPage:e.login.entryPage}}),Nt)((0,f.ZP)(At));var Lt="INITIALIZED",Ft="PasswordUpdateDialog/UPDATE_OLD_PASSWORD",Ut="PasswordUpdateDialog/UPDATE_NEW_PASSWORD",Ht="PasswordUpdateDialog/SET_NEW_PASSWORD",Bt="PasswordUpdateDialog/SET_NEW_PASSWORD_VALIDATION_ERRORS",Wt="PasswordUpdateDialog/UPDATE_NEW_PASSWORD_REPEAT",zt="PasswordUpdateDialog/SAVE_PASSWORD",Yt="PasswordUpdateDialog/SAVE_PASSWORD_SUCCESS",Vt="PasswordUpdateDialog/SAVE_PASSWORD_FAILURE",qt="PasswordUpdateDialog/VALIDATE",Gt="PasswordUpdateDialog/RESET_PASSWORD_UPDATED_FAILED",Kt=function(e){return{type:Ft,payload:{oldPassword:e}}},Xt=function(e){return{type:Bt,payload:{errors:e}}},$t=function(e,t){return{type:Vt,payload:{errorCode:e,validationMessages:t}}},Qt="PasswordUpdateDialog/FETCH_VALIDATION_RULES",Jt="PasswordUpdateDialog/SET_VALIDATION_RULES",en=i(35728),tn={INVALID_CREDENTIALS:"client.login.passwordUpdate.invalidCredentials",UNEXPECTED_ERROR:"client.login.passwordUpdate.unexpectedError"};const nn=function(e){return(0,_e.jsx)(Ae.List,{children:(0,_e.jsx)(Ae.Item,{condition:ye.Z.condition.DANGER,children:(0,_e.jsx)(Je.Z,{id:(t=e.errorCode,tn[t]||"client.login.passwordUpdate.failure")})})});var t};const rn=function(e){return(0,_e.jsx)(Ae.List,{children:e.rules.map((function(t,n){var r=null,o=t.message;if(e.errors){var a=e.errors[t.name];!0===a?r=ye.Z.condition.DANGER:"string"==typeof a?(r=ye.Z.condition.DANGER,o=a):r=ye.Z.condition.SUCCESS}return(0,_e.jsx)(Ae.Item,{condition:r,label:o},n)}))})};var on,an,cn=x.ZP.input.attrs((function(e){return{type:"password"}})).withConfig({displayName:"StyledPasswordInput"})(on||(on=b()(["\n &&&& {\n ","\n }\n"])),dt),sn=x.ZP.div.withConfig({displayName:"StyledPasswordInputWrapper"})(an||(an=b()(["\n && {\n ","\n }\n"])),ft);const un=function(e){return(0,_e.jsx)(Ue,{hasValue:!!e.value,id:"".concat(e.name,"-input"),immutable:!0===e.readOnly,label:e.label,signal:e.value?void 0===e.valid?null:e.valid?ye.Z.condition.SUCCESS:ye.Z.condition.DANGER:null,children:(0,_e.jsx)(sn,{immutable:!0===e.readOnly,children:(0,_e.jsx)(cn,{id:"".concat(e.name,"-input"),value:e.value,onChange:function(t){return e.onChange(t.target.value)},disabled:!0===e.readOnly,immutable:!0===e.readOnly,onKeyDown:e.onKeyDown,autoFocus:e.autoFocus})})})};var ln;const fn=x.ZP.div(ln||(ln=b()(["\n "," {\n width: 100%;\n }\n"])),vt.Z);var pn,dn,hn,mn,gn;function vn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vn(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var bn=x.ZP.div.withConfig({displayName:"StyledValidationRulesWrapper"})(pn||(pn=b()(["\n margin: 1rem;\n"])));const wn=function(e){var t=e.captchaKey,n=e.fetchValidationRules,r=e.forcedUpdate,o=e.initialized,a=e.intl,i=e.password,c=e.savePassword,s=e.showOldPasswordField,u=e.showTitle,l=e.updateNewPassword,f=e.updateNewPasswordRepeat,p=e.updateOldPassword,d=e.validationRules,h=(0,w.useRef)();(0,w.useEffect)((function(){n()}),[n]),(0,w.useEffect)((function(){d&&o()}),[d,o]);var m=function(){var e=F()(W().mark((function e(t){var n;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),!0!==g()){e.next=7;break}return e.next=4,h.current.executeAsync();case 4:n=e.sent,h.current.reset(),c(n);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),g=function(){return!!i.newPasswordRepeat&&(i.newPassword===i.newPasswordRepeat&&!i.passwordUpdatePending)},v=function(e){return a.formatMessage({id:e})};if(!d)return dn||(dn=(0,_e.jsx)(en.Z,{}));var y=i.passwordUpdatePending,b=!i.oldPassword&&s||i.passwordUpdatePending,O=!i.newPassword||i.passwordUpdatePending||i.newPasswordValidationErrors&&Object.keys(i.newPasswordValidationErrors).length>0;return(0,_e.jsxs)(fn,{children:[u&&(hn||(hn=(0,_e.jsx)(tt,{title:"client.login.passwordUpdate.title"}))),r&&(mn||(mn=(0,_e.jsx)(et.ZP.P,{children:(0,_e.jsx)(Je.Z,{id:"client.login.passwordUpdate.introduction"})}))),(0,_e.jsxs)("form",{onSubmit:m,children:[!0===s&&(0,_e.jsx)(un,yn({tabIndex:1,label:v("client.login.passwordUpdate.oldPassword"),name:"oldPassword",value:i.oldPassword,onChange:p,readOnly:y,autoFocus:!0},i.passwordUpdateFailed&&"INVALID_CREDENTIALS"===i.passwordUpdateErrorCode&&{valid:!1})),(0,_e.jsx)(un,{tabIndex:2,label:v("client.login.passwordUpdate.newPassword"),name:"newPassword",value:i.newPassword,onChange:l,readOnly:b,autoFocus:!0!==s,valid:!O}),(0,_e.jsx)(bn,{children:(0,_e.jsx)(rn,{rules:d,errors:i.newPasswordValidationErrors,rulesNeutral:!i.newPassword})}),(0,_e.jsx)(un,{tabIndex:3,label:v("client.login.passwordUpdate.newPasswordRepeat"),name:"newPasswordRepeat",value:i.newPasswordRepeat,onChange:f,readOnly:O,valid:g()}),i.newPasswordRepeat&&i.newPassword!==i.newPasswordRepeat&&(gn||(gn=(0,_e.jsx)(Ae.List,{children:(0,_e.jsx)(Ae.Item,{condition:"danger",label:(0,_e.jsx)(Je.Z,{id:"client.login.passwordUpdate.noMatch"})})}))),!0===i.passwordUpdateFailed&&(0,_e.jsx)(nn,{errorCode:i.passwordUpdateErrorCode}),(0,_e.jsx)(Qe,{pending:i.passwordUpdatePending,disabled:!1===g(),label:v("client.login.passwordUpdate.saveButton")}),t&&(0,_e.jsx)(re,{ref:h,badge:"bottomright",size:"invisible",sitekey:t,hl:a.locale})]})]})};var On={updateOldPassword:Kt,updateNewPassword:function(e){return{type:Ut,payload:{newPassword:e}}},updateNewPasswordRepeat:function(e){return{type:Wt,payload:{newPasswordRepeat:e}}},fetchValidationRules:function(){return{type:Qt}},savePassword:function(e){return{type:zt,payload:{captchaToken:e}}},initialized:function(){return{type:Lt}}};const xn=(0,p.connect)((function(e){return{password:e.passwordUpdate.password,validationRules:e.passwordUpdate.validationRules,showOldPasswordField:e.passwordUpdate.dialog.showOldPasswordField,forcedUpdate:e.passwordUpdate.dialog.forcedUpdate,captchaKey:e.login.captchaKey}}),On)((0,f.ZP)(wn));var kn,Sn,Pn,jn,_n,En,Cn=i(30604),Tn="two-factor-connector/INITIALIZE",Dn="two-factor-connector/SET_TWO_STEP_ACTIVE",Rn="two-factor-connector/SET_SECRET",Mn="two-factor-connector/SET_USER_NAME",In="two-factor-connector/REQUEST_SECRET",An="two-factor-connector/GO_TO_SECRET_VERIFICATION",Nn="two-factor-connector/GO_TO_START",Zn="two-factor-connector/GO_TO_SECRET",Ln="two-factor-connector/VERIFY_CODE",Fn="root/SUCCESS",Un="root/SET_SETUP_SUCCESSFUL",Hn="root/GO_TO_RESULT",Bn=function(){return{type:Tn}},Wn=function(e){return{type:Dn,payload:{twoFactorActive:e}}},zn=function(e){return{type:Rn,payload:{secret:e}}},Yn=function(e){return{type:Mn,payload:{username:e}}},Vn=function(){return{type:Nn}},qn=function(e){return{type:Un,payload:{setupSuccessful:e}}},Gn=i(83324),Kn=x.ZP.div.withConfig({displayName:"StyledButtonWrapper"})(kn||(kn=b()(["\n display: flex;\n justify-content: flex-end;\n margin-top: ",";\n\n > "," {\n margin-right: 0;\n }\n"])),qe.Z.space(.5),vt.Z),Xn=x.ZP.div.withConfig({displayName:"StyledMessageWrapper"})(Sn||(Sn=b()(["\n display: grid;\n grid-template-columns: 9% 1fr;\n grid-column-gap: ",";\n"])),qe.Z.space(-.5)),$n=x.ZP.span.withConfig({displayName:"StyledIconWrapper"})(Pn||(Pn=b()(["\n display: flex;\n align-items: center;\n color: ",";\n font-size: ",";\n\n > * {\n max-width: 100%;\n }\n"])),(function(e){return e.isSuccessful?xe.FS.color("signal.success"):xe.FS.color("signal.danger")}),qe.Z.font(10)),Qn=x.ZP.div.withConfig({displayName:"StyledTextWrapper"})(jn||(jn=b()(["\n display: flex;\n align-items: center;\n"])));const Jn=function(e){var t=e.success,n=e.goToStart,r=e.setupSuccessful,o=e.intl;(0,Gn.z)(t);var a=function(e){return o.formatMessage({id:e})};return r?(0,_e.jsxs)(_e.Fragment,{children:[_n||(_n=(0,_e.jsxs)(Xn,{children:[(0,_e.jsx)($n,{isSuccessful:!0,children:(0,_e.jsx)(De.Z,{icon:"check"})}),(0,_e.jsx)(Qn,{children:(0,_e.jsx)(et.ZP.P,{children:(0,_e.jsx)(Je.Z,{id:"client.two-factor-connector.successfulText"})})})]})),(0,_e.jsx)(Kn,{children:(0,_e.jsx)(Ve.Z,{label:a("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:t})})]}):(0,_e.jsxs)(_e.Fragment,{children:[En||(En=(0,_e.jsxs)(Xn,{children:[(0,_e.jsx)($n,{isSuccessful:!1,children:(0,_e.jsx)(De.Z,{icon:"times"})}),(0,_e.jsx)(Qn,{children:(0,_e.jsx)(et.ZP.P,{children:(0,_e.jsx)(Je.Z,{id:"client.two-factor-connector.errorText"})})})]})),(0,_e.jsx)(Kn,{children:(0,_e.jsx)(Ve.Z,{label:a("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:n})})]})};var er={success:function(){return{type:Fn}},goToStart:Vn};const tr=(0,p.connect)((function(e){return{setupSuccessful:e.twoFactorConnector.setupSuccessful}}),er)((0,f.ZP)(Jn));var nr,rr=Object.defineProperty,or=Object.getOwnPropertySymbols,ar=Object.prototype.hasOwnProperty,ir=Object.prototype.propertyIsEnumerable,cr=(e,t,n)=>t in e?rr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sr=(e,t)=>{for(var n in t||(t={}))ar.call(t,n)&&cr(e,n,t[n]);if(or)for(var n of or(t))ir.call(t,n)&&cr(e,n,t[n]);return e},ur=(e,t)=>{var n={};for(var r in e)ar.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&or)for(var r of or(e))t.indexOf(r)<0&&ir.call(e,r)&&(n[r]=e[r]);return n};(e=>{const t=class{constructor(e,n,r,o){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let i=[];for(let e=0;e<this.size;e++)i.push(!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();const c=this.addEccAndInterleave(r);if(this.drawCodewords(c),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(o=t,e=n),this.applyMask(t)}}a(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,n,o=1,i=40,s=-1,u=!0){if(!(t.MIN_VERSION<=o&&o<=i&&i<=t.MAX_VERSION)||s<-1||s>7)throw new RangeError("Invalid value");let l,f;for(l=o;;l++){const r=8*t.getNumDataCodewords(l,n),o=c.getTotalBits(e,l);if(o<=r){f=o;break}if(l>=i)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])u&&f<=8*t.getNumDataCodewords(l,e)&&(n=e);let p=[];for(const t of e){r(t.mode.modeBits,4,p),r(t.numChars,t.mode.numCharCountBits(l),p);for(const e of t.getData())p.push(e)}a(p.length==f);const d=8*t.getNumDataCodewords(l,n);a(p.length<=d),r(0,Math.min(4,d-p.length),p),r(0,(8-p.length%8)%8,p),a(p.length%8==0);for(let e=236;p.length<d;e^=253)r(e,8,p);let h=[];for(;8*h.length<p.length;)h.push(0);return p.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(l,n,h,s)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const r=21522^(t<<10|n);a(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,o(r,e));this.setFunctionModule(8,7,o(r,6)),this.setFunctionModule(8,8,o(r,7)),this.setFunctionModule(7,8,o(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,o(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,o(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,o(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;a(t>>>18==0);for(let e=0;e<18;e++){const n=o(t,e),r=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(r,a,n),this.setFunctionModule(a,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),a=e+r,i=t+n;0<=a&&a<this.size&&0<=i&&i<this.size&&this.setFunctionModule(a,i,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const o=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],i=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],c=Math.floor(t.getNumRawDataModules(n)/8),s=o-c%o,u=Math.floor(c/o);let l=[];const f=t.reedSolomonComputeDivisor(i);for(let n=0,r=0;n<o;n++){let o=e.slice(r,r+u-i+(n<s?0:1));r+=o.length;const a=t.reedSolomonComputeRemainder(o,f);n<s&&o.push(0),l.push(o.concat(a))}let p=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,n)=>{(e!=u-i||n>=s)&&p.push(t[e])}));return a(p.length==c),p}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let a=0;a<2;a++){const i=t-a,c=0==(t+1&2)?this.size-1-r:r;!this.isFunction[c][i]&&n<8*e.length&&(this.modules[c][i]=o(e[n>>>3],7-(7&n)),n++)}}a(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[n][i]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][i],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[i][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[i][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,o=Math.ceil(Math.abs(20*n-10*r)/r)-1;return a(0<=o&&o<=9),e+=o*t.PENALTY_N4,a(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return a(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const o of e){const e=o^r.shift();r.push(0),n.forEach(((n,o)=>r[o]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return a(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];a(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function o(e,t){return 0!=(e>>>t&1)}function a(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const i=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new i(i.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!i.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const o=Math.min(e.length-n,3);r(parseInt(e.substr(n,o),10),3*o+1,t),n+=o}return new i(i.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!i.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let o=45*i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new i(i.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:i.isNumeric(e)?[i.makeNumeric(e)]:i.isAlphanumeric(e)?[i.makeAlphanumeric(e)]:[i.makeBytes(i.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new i(i.Mode.ECI,0,t)}static isNumeric(e){return i.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return i.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let c=i;c.NUMERIC_REGEX=/^[0-9]*$/,c.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,c.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=c})(nr||(nr={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})(t=e.QrCode||(e.QrCode={}))})(nr||(nr={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(t=e.QrSegment||(e.QrSegment={}))})(nr||(nr={}));var lr=nr,fr={L:lr.QrCode.Ecc.LOW,M:lr.QrCode.Ecc.MEDIUM,Q:lr.QrCode.Ecc.QUARTILE,H:lr.QrCode.Ecc.HIGH},pr=128,dr="L",hr="#FFFFFF",mr="#000000",gr=!1;
|
|
53
53
|
/**
|
|
54
54
|
* @license qrcode.react
|
|
55
55
|
* Copyright (c) Paul O'Shannessy
|
|
56
56
|
* SPDX-License-Identifier: ISC
|
|
57
|
-
*/function vr(e,t=0){const n=[];return e.forEach((function(e,r){let o=null;e.forEach((function(a,i){if(!a&&null!==o)return n.push(`M${o+t} ${r+t}h${i-o}v1H${o+t}z`),void(o=null);if(i!==e.length-1)a&&null===o&&(o=i);else{if(!a)return;null===o?n.push(`M${i+t},${r+t} h1v1H${i+t}z`):n.push(`M${o+t},${r+t} h${i+1-o}v1H${o+t}z`)}}))})),n.join("")}function yr(e,t){return e.slice().map(((e,n)=>n<t.y||n>=t.y+t.h?e:e.map(((e,n)=>(n<t.x||n>=t.x+t.w)&&e))))}function br(e,t,n,r){if(null==r)return null;const o=n?4:0,a=e.length+2*o,i=Math.floor(.1*t),c=a/t,s=(r.width||i)*c,u=(r.height||i)*c,l=null==r.x?e.length/2-s/2:r.x*c,f=null==r.y?e.length/2-u/2:r.y*c;let p=null;if(r.excavate){let e=Math.floor(l),t=Math.floor(f);p={x:e,y:t,w:Math.ceil(s+l-e),h:Math.ceil(u+f-t)}}return{x:l,y:f,h:u,w:s,excavation:p}}var wr=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}();function Or(e){const t=e,{value:n,size:r=pr,level:o=dr,bgColor:a=hr,fgColor:i=mr,includeMargin:c=gr,style:s,imageSettings:u}=t,l=ur(t,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),f=null==u?void 0:u.src,p=(0,w.useRef)(null),d=(0,w.useRef)(null),[h,m]=(0,w.useState)(!1);(0,w.useEffect)((()=>{if(null!=p.current){const e=p.current,t=e.getContext("2d");if(!t)return;let s=lr.QrCode.encodeText(n,fr[o]).getModules();const l=c?4:0,f=s.length+2*l,h=br(s,r,c,u),m=d.current,g=null!=h&&null!==m&&m.complete&&0!==m.naturalHeight&&0!==m.naturalWidth;g&&null!=h.excavation&&(s=yr(s,h.excavation));const v=window.devicePixelRatio||1;e.height=e.width=r*v;const y=r/f*v;t.scale(y,y),t.fillStyle=a,t.fillRect(0,0,f,f),t.fillStyle=i,wr?t.fill(new Path2D(vr(s,l))):s.forEach((function(e,n){e.forEach((function(e,r){e&&t.fillRect(r+l,n+l,1,1)}))})),g&&t.drawImage(m,h.x+l,h.y+l,h.w,h.h)}})),(0,w.useEffect)((()=>{m(!1)}),[f]);const g=sr({height:r,width:r},s);let v=null;return null!=f&&(v=O().createElement("img",{src:f,key:f,style:{display:"none"},onLoad:()=>{m(!0)},ref:d})),O().createElement(O().Fragment,null,O().createElement("canvas",sr({style:g,height:r,width:r,ref:p},l)),v)}function xr(e){const t=e,{value:n,size:r=pr,level:o=dr,bgColor:a=hr,fgColor:i=mr,includeMargin:c=gr,imageSettings:s}=t,u=ur(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let l=lr.QrCode.encodeText(n,fr[o]).getModules();const f=c?4:0,p=l.length+2*f,d=br(l,r,c,s);let h=null;null!=s&&null!=d&&(null!=d.excavation&&(l=yr(l,d.excavation)),h=O().createElement("image",{xlinkHref:s.src,height:d.h,width:d.w,x:d.x+f,y:d.y+f,preserveAspectRatio:"none"}));const m=vr(l,f);return O().createElement("svg",sr({height:r,width:r,viewBox:`0 0 ${p} ${p}`},u),O().createElement("path",{fill:a,d:`M0,0 h${p}v${p}H0z`,shapeRendering:"crispEdges"}),O().createElement("path",{fill:i,d:m,shapeRendering:"crispEdges"}),h)}var kr=e=>{const t=e,{renderAs:n}=t,r=ur(t,["renderAs"]);return"svg"===n?O().createElement(xr,sr({},r)):O().createElement(Or,sr({},r))};const Sr=function(e){var t=e.value;return(0,_e.jsx)(kr,{value:t,renderAs:"svg"})};var Pr,jr,_r,Er,Cr,Tr,Dr=x.ZP.div.withConfig({displayName:"StyledQRCodeWrapper"})(Pr||(Pr=b()(["\n display: flex;\n justify-content: center;\n margin: "," "," "," ",";\n"])),qe.Z.space(1.2),qe.Z.space(1),qe.Z.space(1.5),qe.Z.space(1)),Rr=x.ZP.div.withConfig({displayName:"StyledParagraph"})(jr||(jr=b()(["\n display: flex;\n justify-content: center;\n margin-top: ",";\n margin-bottom: ",";\n"])),qe.Z.space(-1),qe.Z.space(-.9));const Mr=function(e){var t=e.secret,n=e.goToSecretVerification;return(0,Gn.z)(n),(0,_e.jsxs)(_e.Fragment,{children:[_r||(_r=(0,_e.jsx)(et.ZP.P,{children:(0,_e.jsx)(Je.Z,{id:"client.two-factor-connector.qrCodeInfo"})})),(0,_e.jsx)(Dr,{children:(0,_e.jsx)(Sr,{value:t.uri})}),Er||(Er=(0,_e.jsx)(et.ZP.P,{children:(0,_e.jsx)(Je.Z,{id:"client.two-factor-connector.secretInfo"})})),(0,_e.jsx)(Rr,{children:(0,_e.jsx)(et.ZP.B,{children:t.secret})}),Cr||(Cr=(0,_e.jsx)(et.ZP.P,{children:(0,_e.jsx)(Je.Z,{id:"client.two-factor-connector.backupInfo"})})),(0,_e.jsx)(Kn,{children:(0,_e.jsx)(Ve.Z,{ink:"primary",look:"raised",onClick:n,children:Tr||(Tr=(0,_e.jsx)(Je.Z,{id:"client.two-factor-connector.nextButton"}))})})]})};var Ir={goToSecretVerification:function(){return{type:An}}};const Ar=(0,p.connect)((function(e){return{secret:e.twoFactorConnector.secret}}),Ir)((0,f.ZP)(Mr));var Nr;const Zr=function(e){var t=e.twoFactorActive,n=e.forced,r=e.requestSecret,o=e.intl;(0,Gn.z)(r);var a=function(e){return o.formatMessage({id:e})};return(0,_e.jsxs)(_e.Fragment,{children:[(0,_e.jsx)(et.ZP.P,{children:function(){if(t)return Nr||(Nr=(0,_e.jsx)(Je.Z,{id:"client.two-factor-connector.overwriteInfo"}));var e=a(n?"client.two-factor-connector.forcedInfo":"client.two-factor-connector.info");return(0,_e.jsx)("span",{dangerouslySetInnerHTML:{__html:e}})}()}),(0,_e.jsx)(Kn,{children:(0,_e.jsx)(Ve.Z,{label:a("client.two-factor-connector.nextButton"),ink:"primary",look:"raised",onClick:r})})]})};var Lr={initialize:Bn,requestSecret:function(){return{type:In}}};const Fr=(0,p.connect)((function(e){return{twoFactorActive:e.twoFactorConnector.twoFactorActive,secret:e.twoFactorConnector.secret,forced:e.input.forced}}),Lr)((0,f.ZP)(Zr));var Ur=i(57557),Hr=i.n(Ur),Br=i(41609),Wr=i.n(Br),zr=i(14293),Yr=i.n(zr),Vr=i(23493),qr=i.n(Vr),Gr=i(33417),Kr=i(1972),Xr=i(32924),$r=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];var Qr=i(2717);function Jr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function eo(e,t){return(eo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function to(e){return(to=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var no=i(62360);function ro(e,t){if(t&&("object"===(0,no.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function oo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=to(e);if(t){var o=to(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ro(this,n)}}var ao=i(31599);var io=i(78001);function co(e){return function(e){if(Array.isArray(e))return(0,ao.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,io.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var so=i(29382),uo=i(1537),lo=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function fo(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||lo(r)&&lo(o)))return!1;var r,o;return!0}for(var po={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},ho=function(e){return(0,uo.tZ)("span",(0,Qr.Z)({css:po},e))},mo={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,o=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,a=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,a?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,a=void 0===o?"":o,i=e.selectValue,c=e.isDisabled,s=e.isSelected,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&i)return"value ".concat(a," focused, ").concat(u(i,n),".");if("menu"===t){var l=c?" disabled":"",f="".concat(s?"selected":"focused").concat(l);return"option ".concat(a," ").concat(f,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},go=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,a=e.isFocused,i=e.selectValue,c=e.selectProps,s=e.id,u=c.ariaLiveMessages,l=c.getOptionLabel,f=c.inputValue,p=c.isMulti,d=c.isOptionDisabled,h=c.isSearchable,m=c.menuIsOpen,g=c.options,v=c.screenReaderStatus,y=c.tabSelectsValue,b=c["aria-label"],O=c["aria-live"],x=(0,w.useMemo)((function(){return(0,Gr.Z)((0,Gr.Z)({},mo),u||{})}),[u]),k=(0,w.useMemo)((function(){var e,n="";if(t&&x.onChange){var r=t.option,o=t.options,a=t.removedValue,c=t.removedValues,s=t.value,u=a||r||(e=s,Array.isArray(e)?null:e),f=u?l(u):"",p=o||c||void 0,h=p?p.map(l):[],m=(0,Gr.Z)({isDisabled:u&&d(u,i),label:f,labels:h},t);n=x.onChange(m)}return n}),[t,x,d,i,l]),S=(0,w.useMemo)((function(){var e="",t=n||r,a=!!(n&&i&&i.includes(n));if(t&&x.onFocus){var c={focused:t,label:l(t),isDisabled:d(t,i),isSelected:a,options:o,context:t===n?"menu":"value",selectValue:i};e=x.onFocus(c)}return e}),[n,r,l,d,x,o,i]),P=(0,w.useMemo)((function(){var e="";if(m&&g.length&&x.onFilter){var t=v({count:o.length});e=x.onFilter({inputValue:f,resultsMessage:t})}return e}),[o,f,m,x,g,v]),j=(0,w.useMemo)((function(){var e="";if(x.guidance){var t=r?"value":m?"menu":"input";e=x.guidance({"aria-label":b,context:t,isDisabled:n&&d(n,i),isMulti:p,isSearchable:h,tabSelectsValue:y})}return e}),[b,n,r,p,d,h,m,x,i,y]),_="".concat(S," ").concat(P," ").concat(j),E=(0,uo.tZ)(w.Fragment,null,(0,uo.tZ)("span",{id:"aria-selection"},k),(0,uo.tZ)("span",{id:"aria-context"},_)),C="initial-input-focus"===(null==t?void 0:t.action);return(0,uo.tZ)(w.Fragment,null,(0,uo.tZ)(ho,{id:s},C&&E),(0,uo.tZ)(ho,{"aria-live":O,"aria-atomic":"false","aria-relevant":"additions text"},a&&!C&&E))},vo=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],yo=new RegExp("["+vo.map((function(e){return e.letters})).join("")+"]","g"),bo={},wo=0;wo<vo.length;wo++)for(var Oo=vo[wo],xo=0;xo<Oo.letters.length;xo++)bo[Oo.letters[xo]]=Oo.base;var ko=function(e){return e.replace(yo,(function(e){return bo[e]}))},So=function(e,t){void 0===t&&(t=fo);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var a=e.apply(this,r);return n={lastResult:a,lastArgs:r,lastThis:this},a}return r.clear=function(){n=null},r}(ko),Po=function(e){return e.replace(/^\s+|\s+$/g,"")},jo=function(e){return"".concat(e.label," ").concat(e.value)},_o=["innerRef"];function Eo(e){var t=e.innerRef,n=(0,Xr.Z)(e,_o),r=(0,so.r)(n,"onExited","in","enter","exit","appear");return(0,uo.tZ)("input",(0,Qr.Z)({ref:t},r,{css:(0,uo.iv)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Co=["boxSizing","height","overflow","paddingRight","position"],To={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Do(e){e.preventDefault()}function Ro(e){e.stopPropagation()}function Mo(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Io(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ao=!("undefined"==typeof window||!window.document||!window.document.createElement),No=0,Zo={capture:!1,passive:!1};var Lo=function(){return document.activeElement&&document.activeElement.blur()},Fo={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Uo(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,a=e.onTopLeave,i=(0,w.useRef)(!1),c=(0,w.useRef)(!1),s=(0,w.useRef)(0),u=(0,w.useRef)(null),l=(0,w.useCallback)((function(e,t){if(null!==u.current){var s=u.current,l=s.scrollTop,f=s.scrollHeight,p=s.clientHeight,d=u.current,h=t>0,m=f-p-l,g=!1;m>t&&i.current&&(r&&r(e),i.current=!1),h&&c.current&&(a&&a(e),c.current=!1),h&&t>m?(n&&!i.current&&n(e),d.scrollTop=f,g=!0,i.current=!0):!h&&-t>l&&(o&&!c.current&&o(e),d.scrollTop=0,g=!0,c.current=!0),g&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,o,a]),f=(0,w.useCallback)((function(e){l(e,e.deltaY)}),[l]),p=(0,w.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),d=(0,w.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;l(e,t)}),[l]),h=(0,w.useCallback)((function(e){if(e){var t=!!so.s&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",d,t)}}),[d,p,f]),m=(0,w.useCallback)((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",d,!1))}),[d,p,f]);return(0,w.useEffect)((function(){if(t){var e=u.current;return h(e),function(){m(e)}}}),[t,h,m]),function(e){u.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,w.useRef)({}),a=(0,w.useRef)(null),i=(0,w.useCallback)((function(e){if(Ao){var t=document.body,n=t&&t.style;if(r&&Co.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&No<1){var a=parseInt(o.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,c=window.innerWidth-i+a||0;Object.keys(To).forEach((function(e){var t=To[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(c,"px"))}t&&Io()&&(t.addEventListener("touchmove",Do,Zo),e&&(e.addEventListener("touchstart",Mo,Zo),e.addEventListener("touchmove",Ro,Zo))),No+=1}}),[r]),c=(0,w.useCallback)((function(e){if(Ao){var t=document.body,n=t&&t.style;No=Math.max(No-1,0),r&&No<1&&Co.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&Io()&&(t.removeEventListener("touchmove",Do,Zo),e&&(e.removeEventListener("touchstart",Mo,Zo),e.removeEventListener("touchmove",Ro,Zo)))}}),[r]);return(0,w.useEffect)((function(){if(t){var e=a.current;return i(e),function(){c(e)}}}),[t,i,c]),function(e){a.current=e}}({isEnabled:n});return(0,uo.tZ)(w.Fragment,null,n&&(0,uo.tZ)("div",{onClick:Lo,css:Fo}),t((function(e){o(e),a(e)})))}var Ho={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Bo=function(e){var t=e.name,n=e.onFocus;return(0,uo.tZ)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Ho,value:"",onChange:function(){}})},Wo={clearIndicator:so.a,container:so.b,control:so.d,dropdownIndicator:so.e,group:so.g,groupHeading:so.f,indicatorsContainer:so.i,indicatorSeparator:so.h,input:so.j,loadingIndicator:so.l,loadingMessage:so.k,menu:so.m,menuList:so.n,menuPortal:so.o,multiValue:so.p,multiValueLabel:so.q,multiValueRemove:so.t,noOptionsMessage:so.u,option:so.v,placeholder:so.w,singleValue:so.x,valueContainer:so.y};var zo,Yo={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Vo={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,so.z)(),captureMenuScroll:!(0,so.z)(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,Gr.Z)({ignoreCase:!0,ignoreAccents:!0,stringify:jo,trim:!0,matchFrom:"any"},zo),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,c=n.matchFrom,s=i?Po(t):t,u=i?Po(a(e)):a(e);return r&&(s=s.toLowerCase(),u=u.toLowerCase()),o&&(s=So(s),u=ko(u)),"start"===c?u.substr(0,s.length)===s:u.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!(0,so.A)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function qo(e,t,n,r){return{type:"option",data:t,isDisabled:Jo(e,t,n),isSelected:ea(e,t,n),label:$o(e,t),value:Qo(e,t),index:r}}function Go(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return qo(e,n,t,r)})).filter((function(t){return Xo(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=qo(e,n,t,r);return Xo(e,a)?a:void 0})).filter(so.K)}function Ko(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,co(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Xo(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,c=t.value;return(!na(e)||!a)&&ta(e,{label:i,value:c,data:o},r)}var $o=function(e,t){return e.getOptionLabel(t)},Qo=function(e,t){return e.getOptionValue(t)};function Jo(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ea(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Qo(e,t);return n.some((function(t){return Qo(e,t)===r}))}function ta(e,t,n){return!e.filterOption||e.filterOption(t,n)}var na=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ra=1,oa=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eo(e,t)}(a,e);var t,n,r,o=oo(a);function a(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,a=r.name;n.name=a,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,a=o.closeMenuOnSelect,i=o.isMulti,c=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:c}),a&&(t.setState({inputIsHiddenAfterUpdate:!i}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,a=n.name,i=t.state.selectValue,c=o&&t.isOptionSelected(e,i),s=t.isOptionDisabled(e,i);if(c){var u=t.getOptionValue(e);t.setValue((0,so.B)(i.filter((function(e){return t.getOptionValue(e)!==u}))),"deselect-option",e)}else{if(s)return void t.ariaOnChange((0,so.C)(e),{action:"select-option",option:e,name:a});o?t.setValue((0,so.B)([].concat(co(i),[e])),"select-option",e):t.setValue((0,so.C)(e),"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),a=r.filter((function(e){return t.getOptionValue(e)!==o})),i=(0,so.D)(n,a,a[0]||null);t.onChange(i,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange((0,so.D)(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),a=(0,so.D)(e,o,o[0]||null);t.onChange(a,{action:"pop-value",removedValue:r})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return so.E.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return $o(t.props,e)},t.getOptionValue=function(e){return Qo(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=Wo[e](n,r);o.boxSizing="border-box";var a=t.props.styles[e];return a?a(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){return(0,so.F)(t.props)},t.buildCategorizedOptions=function(){return Go(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Ko(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:(0,Gr.Z)({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&(0,so.G)(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),a=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||a>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return na(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,a=n.escapeClearsValue,i=n.inputValue,c=n.isClearable,s=n.isDisabled,u=n.menuIsOpen,l=n.onKeyDown,f=n.tabSelectsValue,p=n.openMenuOnFocus,d=t.state,h=d.focusedOption,m=d.focusedValue,g=d.selectValue;if(!(s||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||i)return;t.focusValue("previous");break;case"ArrowRight":if(!r||i)return;t.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():c&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!u||!f||!h||p&&t.isOptionSelected(h,g))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":u?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:i}),t.onMenuClose()):c&&a&&t.clearValue();break;case" ":if(i)return;if(!u){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++ra),t.state.selectValue=(0,so.H)(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.buildFocusableOptions(),r=n.indexOf(t.state.selectValue[0]);t.state.focusedOption=n[r]}return t}return t=a,r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,i=t.isFocused,c=t.prevWasFocused,s=e.options,u=e.value,l=e.menuIsOpen,f=e.inputValue,p=e.isMulti,d=(0,so.H)(u),h={};if(n&&(u!==n.value||s!==n.options||l!==n.menuIsOpen||f!==n.inputValue)){var m=l?function(e,t){return Ko(Go(e,t))}(e,d):[],g=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,d):null;h={selectValue:d,focusedOption:function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,m),focusedValue:g,clearFocusValueOnUpdate:!1}}var v=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},y=a,b=i&&c;return i&&!b&&(y={value:(0,so.D)(p,d,d[0]||null),options:d,action:"initial-input-focus"},b=!c),"initial-input-focus"===(null==a?void 0:a.action)&&(y=null),(0,Gr.Z)((0,Gr.Z)((0,Gr.Z)({},h),v),{},{prevProps:e,ariaSelection:y,prevWasFocused:b})}}],(n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&(0,so.I)(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&((0,so.I)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildFocusableOptions(),i="first"===e?0:a.length-1;if(!this.props.isMulti){var c=a.indexOf(r[0]);c>-1&&(i=c)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[i]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var a=n.length-1,i=-1;if(n.length){switch(e){case"previous":i=0===o?0:-1===o?a:o-1;break;case"next":o>-1&&o<a&&(i=o+1)}this.setState({inputIsHidden:-1!==i,focusedValue:n[i]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,a=r.indexOf(n);n||(a=-1),"up"===e?o=a>0?a-1:r.length-1:"down"===e?o=(a+1)%r.length:"pageup"===e?(o=a-t)<0&&(o=0):"pagedown"===e?(o=a+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Yo):(0,Gr.Z)((0,Gr.Z)({},Yo),this.props.theme):Yo}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,a=this.selectOption,i=this.setValue,c=this.props,s=c.isMulti,u=c.isRtl,l=c.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:s,isRtl:u,options:l,selectOption:a,selectProps:c,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Jo(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ea(this.props,e,t)}},{key:"filterOption",value:function(e,t){return ta(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,a=e.tabIndex,i=e.form,c=e.menuIsOpen,s=e.required,u=this.getComponents().Input,l=this.state,f=l.inputIsHidden,p=l.ariaSelection,d=this.commonProps,h=r||this.getElementId("input"),m=(0,Gr.Z)((0,Gr.Z)((0,Gr.Z)({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":s,role:"combobox"},c&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?w.createElement(u,(0,Qr.Z)({},d,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:f,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:i,type:"text",value:o},m)):w.createElement(Eo,(0,Qr.Z)({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:so.J,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:i,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,i=t.SingleValue,c=t.Placeholder,s=this.commonProps,u=this.props,l=u.controlShouldRenderValue,f=u.isDisabled,p=u.isMulti,d=u.inputValue,h=u.placeholder,m=this.state,g=m.selectValue,v=m.focusedValue,y=m.isFocused;if(!this.hasValue()||!l)return d?null:w.createElement(c,(0,Qr.Z)({},s,{key:"placeholder",isDisabled:f,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(p)return g.map((function(t,i){var c=t===v,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return w.createElement(n,(0,Qr.Z)({},s,{components:{Container:r,Label:o,Remove:a},isFocused:c,isDisabled:f,key:u,index:i,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(d)return null;var b=g[0];return w.createElement(i,(0,Qr.Z)({},s,{data:b,isDisabled:f}),this.formatOptionLabel(b,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var i={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return w.createElement(e,(0,Qr.Z)({},t,{innerProps:i,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;return e&&o?w.createElement(e,(0,Qr.Z)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return w.createElement(n,(0,Qr.Z)({},r,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return w.createElement(e,(0,Qr.Z)({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,a=t.MenuList,i=t.MenuPortal,c=t.LoadingMessage,s=t.NoOptionsMessage,u=t.Option,l=this.commonProps,f=this.state.focusedOption,p=this.props,d=p.captureMenuScroll,h=p.inputValue,m=p.isLoading,g=p.loadingMessage,v=p.minMenuHeight,y=p.maxMenuHeight,b=p.menuIsOpen,O=p.menuPlacement,x=p.menuPosition,k=p.menuPortalTarget,S=p.menuShouldBlockScroll,P=p.menuShouldScrollIntoView,j=p.noOptionsMessage,_=p.onMenuScrollToTop,E=p.onMenuScrollToBottom;if(!b)return null;var C,T=function(t,n){var r=t.type,o=t.data,a=t.isDisabled,i=t.isSelected,c=t.label,s=t.value,p=f===o,d=a?void 0:function(){return e.onOptionHover(o)},h=a?void 0:function(){return e.selectOption(o)},m="".concat(e.getElementId("option"),"-").concat(n),g={id:m,onClick:h,onMouseMove:d,onMouseOver:d,tabIndex:-1};return w.createElement(u,(0,Qr.Z)({},l,{innerProps:g,data:o,isDisabled:a,isSelected:i,key:m,label:c,type:r,value:s,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())C=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,a=t.options,i=t.index,c="".concat(e.getElementId("group"),"-").concat(i),s="".concat(c,"-heading");return w.createElement(n,(0,Qr.Z)({},l,{key:c,data:o,options:a,Heading:r,headingProps:{id:s,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return T(e,"".concat(i,"-").concat(e.index))})))}if("option"===t.type)return T(t,"".concat(t.index))}));else if(m){var D=g({inputValue:h});if(null===D)return null;C=w.createElement(c,l,D)}else{var R=j({inputValue:h});if(null===R)return null;C=w.createElement(s,l,R)}var M={minMenuHeight:v,maxMenuHeight:y,menuPlacement:O,menuPosition:x,menuShouldScrollIntoView:P},I=w.createElement(so.M,(0,Qr.Z)({},l,M),(function(t){var n=t.ref,r=t.placerProps,i=r.placement,c=r.maxHeight;return w.createElement(o,(0,Qr.Z)({},l,M,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:m,placement:i}),w.createElement(Uo,{captureEnabled:d,onTopArrive:_,onBottomArrive:E,lockEnabled:S},(function(t){return w.createElement(a,(0,Qr.Z)({},l,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:m,maxHeight:c,focusedOption:f}),C)})))}));return k||"fixed"===x?w.createElement(i,(0,Qr.Z)({},l,{appendTo:k,controlElement:this.controlRef,menuPlacement:O,menuPosition:x}),I):I}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,a=t.name,i=t.required,c=this.state.selectValue;if(i&&!this.hasValue()&&!r)return w.createElement(Bo,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(o){if(n){var s=c.map((function(t){return e.getOptionValue(t)})).join(n);return w.createElement("input",{name:a,type:"hidden",value:s})}var u=c.length>0?c.map((function(t,n){return w.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):w.createElement("input",{name:a,type:"hidden",value:""});return w.createElement("div",null,u)}var l=c[0]?this.getOptionValue(c[0]):"";return w.createElement("input",{name:a,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,a=t.isFocused,i=t.selectValue,c=this.getFocusableOptions();return w.createElement(go,(0,Qr.Z)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:a,selectValue:i,focusableOptions:c}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,a=this.props,i=a.className,c=a.id,s=a.isDisabled,u=a.menuIsOpen,l=this.state.isFocused,f=this.commonProps=this.getCommonProps();return w.createElement(r,(0,Qr.Z)({},f,{className:i,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:l}),this.renderLiveRegion(),w.createElement(t,(0,Qr.Z)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:l,menuIsOpen:u}),w.createElement(o,(0,Qr.Z)({},f,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),w.createElement(n,(0,Qr.Z)({},f,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}])&&Jr(t.prototype,n),r&&Jr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(w.Component);oa.defaultProps=Vo;i(66751),i(30314),i(73469);var aa=(0,w.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,a=e.defaultValue,i=void 0===a?null:a,c=e.inputValue,s=e.menuIsOpen,u=e.onChange,l=e.onInputChange,f=e.onMenuClose,p=e.onMenuOpen,d=e.value,h=(0,Xr.Z)(e,$r),m=(0,w.useState)(void 0!==c?c:n),g=(0,Kr.Z)(m,2),v=g[0],y=g[1],b=(0,w.useState)(void 0!==s?s:o),O=(0,Kr.Z)(b,2),x=O[0],k=O[1],S=(0,w.useState)(void 0!==d?d:i),P=(0,Kr.Z)(S,2),j=P[0],_=P[1],E=(0,w.useCallback)((function(e,t){"function"==typeof u&&u(e,t),_(e)}),[u]),C=(0,w.useCallback)((function(e,t){var n;"function"==typeof l&&(n=l(e,t)),y(void 0!==n?n:e)}),[l]),T=(0,w.useCallback)((function(){"function"==typeof p&&p(),k(!0)}),[p]),D=(0,w.useCallback)((function(){"function"==typeof f&&f(),k(!1)}),[f]),R=void 0!==c?c:v,M=void 0!==s?s:x,I=void 0!==d?d:j;return(0,Gr.Z)((0,Gr.Z)({},h),{},{inputValue:R,menuIsOpen:M,onChange:E,onInputChange:C,onMenuClose:D,onMenuOpen:T,value:I})}(e);return w.createElement(oa,(0,Qr.Z)({ref:t},n))})),ia=i(80470);function ca(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 sa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ca(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ca(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const ua=(0,f.ZP)((function(e){var t;return(0,_e.jsx)("span",sa(sa({},e.innerProps),{},{children:(0,_e.jsx)(ia.Z,{icon:"times",tabIndex:-1,"aria-label":(t="client.component.select.clearFieldLabel",e.intl.formatMessage({id:t}))})}))}));var la=i(95497);function fa(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 pa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fa(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const da=function(e){var t=e.selectProps,n=t.isDisabled,r=t.menuIsOpen;return n?null:(0,_e.jsx)(so.c.DropdownIndicator,pa(pa({},e),{},{children:(0,_e.jsx)(la.M6,{children:(0,_e.jsx)(ia.Z,{icon:r?"chevron-up":"chevron-down",visible:!0,tabIndex:-1})})}))};var ha,ma,ga;function va(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 ya(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?va(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):va(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ba=function(e,t,n){return function(r){r.stopPropagation(),e(t,n)}},wa=function(e,t){return function(n){n.stopPropagation(),e(t)}},Oa=function(e,t){return function(n){n.stopPropagation(),e(t)}},xa=function(e){e.stopPropagation()};const ka=function(e){var t=e.selectProps,n=t.openDocsTreeSearch,r=t.openAdvancedSearch,o=t.openRemoteCreate,a=t.isDisabled,i=t.hasDocsTreeSearch,c=t.hasAdvancedSearch,s=t.createPermission,u=t.value,l=t.isMulti,f=t.inputValue,p=l&&(c||i);return(0,_e.jsx)(la.HO,{isTopAligned:p,children:(0,_e.jsxs)(so.c.IndicatorsContainer,ya(ya({},e),{},{children:[e.children,n&&!a&&(0,_e.jsx)("span",{onTouchEnd:xa,onMouseDown:wa(n,u),children:ha||(ha=(0,_e.jsx)(ia.Z,{icon:"folder",tabIndex:-1}))}),r&&!a&&(0,_e.jsx)("span",{onTouchEnd:xa,onMouseDown:ba(r,f,u),children:ma||(ma=(0,_e.jsx)(ia.Z,{icon:"search",tabIndex:-1}))}),s&&!a&&(0,_e.jsx)("span",{onTouchEnd:xa,onMouseDown:Oa(o,u),children:ga||(ga=(0,_e.jsx)(ia.Z,{icon:"plus",tabIndex:-1}))})]}))})};var Sa,Pa=i(93235);const ja=function(){return Sa||(Sa=(0,_e.jsx)("span",{children:(0,_e.jsx)(Pa.Z,{size:"1.8rem"})}))};var _a=i(15315);function Ea(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 Ca(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ea(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ea(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Ta=function(e){var t=e.selectProps,n=e.children;return(0,_e.jsx)(la._M,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"window",attachment:"together"}],renderTarget:function(e){return(0,_e.jsx)("div",{ref:e})},renderElement:function(r){return(0,_e.jsx)("div",{ref:r,className:_a.c,children:(0,_e.jsx)(la.l2,Ca(Ca({},Hr()(e,["innerRef"])),{},{wrapperWidth:t.wrapperWidth,wrapperHeight:t.wrapperHeight,children:n}))})}})};function Da(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 Ra(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Da(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Da(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Ma=function(e){var t=e.selectProps,n=e.children,r=t.moreOptionsAvailable,o=t.moreOptionsAvailableText;return(0,_e.jsxs)(so.c.MenuList,Ra(Ra({},e),{},{className:"MenuList",children:[n,r&&(0,_e.jsx)(la.OA,{children:o})]}))};var Ia=i(27361),Aa=i.n(Ia),Na=i(76791);function Za(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 La(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Za(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Za(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Fa=function(e){var t=e.data,n=e.innerProps,r=e.children,o=e.selectProps,a=o.tooltips,i=o.loadTooltip,c=o.DetailLink,s=Aa()(a,t.key,null),u=(0,_e.jsx)("span",La(La({},n),{},{children:r})),l=c?(0,_e.jsx)(la.vR,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,_e.jsx)(c,{entityKey:t.key,tabIndex:-1,children:(0,_e.jsx)(Na.Z,{content:s?(0,_e.jsx)("div",{dangerouslySetInnerHTML:{__html:ve.Z.sanitizeHtml(s)}}):null,children:(0,_e.jsx)("span",{onMouseOver:function(){return i&&!s&&i(t.key)},children:u})})})}):u;return(0,_e.jsx)(la.B1,{children:l})};var Ua=i(47037),Ha=i.n(Ua),Ba=i(14176),Wa=i.n(Ba);function za(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 Ya(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?za(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):za(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Va=["linkComp"],qa=function(e,t){var n=ge.Z.difference(e,t),r=Wa()(Hr()(n,Va),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length},Ga=(0,w.memo)((function(e){var t=e.linkComp,n=e.entityKey,r=e.children;return t&&Ha()(n)?(0,_e.jsx)(la.vR,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,_e.jsx)(t,{entityKey:n,children:r})}):r}),qa);Ga.propTypes={children:o().node,entityKey:o().any,linkComp:o().func};const Ka=function(e){var t=e.data,n=e.selectProps,r=e.isDisabled,o=e.children,a=n.tooltips,i=n.loadTooltip,c=n.DetailLink,s=Aa()(a,t.key,null);return(0,_e.jsx)(so.c.SingleValue,Ya(Ya({},e),{},{children:(0,_e.jsx)(la.xq,{onMouseOver:function(){return i&&!s&&i(t.key)},isDisabled:r,children:(0,_e.jsx)(Na.Z,{content:s?(0,_e.jsx)("div",{dangerouslySetInnerHTML:{__html:ve.Z.sanitizeHtml(s)}}):null,children:(0,_e.jsx)(Ga,{linkComp:c,entityKey:t.key,children:o})})})}))};function Xa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var $a=function(e){var t;return"Input"===(null==e||null===(t=e.type)||void 0===t?void 0:t.name)};const Qa=function(e){var t=e.selectProps,r=e.hasValue,o=e.children,a=t.isMulti,i=t.hasAdvancedSearch,c=t.hasDocsTreeSearch,s=t.isDisabled;if(!(a&&(i||c)))return(0,_e.jsx)(so.c.ValueContainer,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xa(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e));var u=w.Children.map(o,(function(e){return $a(e)?e:null})),l=w.Children.map(o,(function(e){return $a(e)?null:e})),f=s&&r;return(0,_e.jsxs)(_e.Fragment,{children:[!f&&(0,_e.jsx)(_e.Fragment,{children:u}),(0,_e.jsx)(la.eQ,{children:l})]})};function Ja(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 ei(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ja(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ja(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const ti=(0,x.Zz)((function(e){var t=e.fetchOptions,n=e.id,r=e.immutable,o=e.isLoading,a=e.isMulti,i=e.loadTooltip,c=e.moreOptionsAvailable,s=e.moreOptionsAvailableText,u=e.noResultsText,l=e.noResultsComp,f=e.onChange,p=e.openDocsTreeSearch,d=e.openAdvancedSearch,h=e.options,m=e.searchOptions,g=e.theme,v=e.tooltips,y=e.value,b=e.DetailLink,O=e.createPermission,x=e.openRemoteCreate,k=(0,w.useRef)(null),S=(0,w.useRef)(null),P=function(){var e;return(null===(e=S.current)||void 0===e?void 0:e.clientWidth)||300},j=function(){var e;return(null===(e=S.current)||void 0===e?void 0:e.clientHeight)||35},_=(0,w.useState)(P()),E=H()(_,2),C=E[0],T=E[1],D=(0,w.useState)(j()),R=H()(D,2),M=R[0],I=R[1],A=(0,w.useState)(!1),N=H()(A,2),Z=N[0],L=N[1],F=function(e){t&&t(e)},U=(0,w.useCallback)(m||function(){},[]),B=(0,w.useCallback)(qr()(U,800,{trailing:!0}),[]),W=Boolean(d),z=Boolean(p),Y=Boolean(O);return(0,_e.jsx)(la.sP,{tabIndex:"-1",id:n,onFocus:function(){k.current.focus(),setTimeout((function(){T(P()),I(j())}),0)},children:(0,_e.jsx)(la.RU,{ref:S,children:(0,_e.jsx)(aa,ei(ei({getOptionLabel:function(e){return e.display},getOptionValue:function(e){return e.key},wrapperWidth:C,wrapperHeight:M,components:{ClearIndicator:ua,LoadingIndicator:ja,DropdownIndicator:da,IndicatorsContainer:ka,IndicatorSeparator:null,Menu:Ta,MenuList:Ma,MultiValueLabel:Fa,SingleValue:Ka,ValueContainer:Qa},noOptionsMessage:function(e){return u||("function"==typeof l?(0,_e.jsx)(l,ei({},e)):" - ")},isMulti:a,closeMenuOnSelect:!a,isSearchable:!0},m?{filterOption:function(){return!0}}:{}),{},{isClearable:!0,loadingMessage:function(){return null},placeholder:"",menuShouldScrollIntoView:!1,autoFocus:!1,value:y||null,onChange:function(e){f(e),F(e)},onInputChange:function(e,t){var n=t.action;m&&e&&B(e,y),""===e&&"input-change"===n&&F(y)},options:we()(h||[]),onKeyDown:function(e){"Enter"===e.key&&Z?e.stopPropagation():"Tab"===e.key&&(e.preventDefault=function(){})},isLoading:o,isDisabled:r,ref:k,onMenuOpen:function(){F(y),L(!0)},onMenuClose:function(){L(!1)},styles:(0,la.i4)(g),loadTooltip:i,tooltips:v,DetailLink:b,hasDocsTreeSearch:z,openDocsTreeSearch:p,hasAdvancedSearch:W,openAdvancedSearch:d,moreOptionsAvailable:c,moreOptionsAvailableText:s,blurInputOnSelect:!1,hasCreatePermission:Y,createPermission:O,openRemoteCreate:x,closeMenuOnScroll:function(e){var t;return!(null!==(t=e.target.classList)&&void 0!==t&&t.contains("MenuList"))}}))})})}));const ni=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.options,a=o.trueLabel,i=o.falseLabel,c=e.onChange;return(0,_e.jsx)(ti,{id:t,immutable:n,isMulti:!1,onChange:function(e){return c(e?e.key:null)},value:Yr()(r)?r:{key:r,display:r?a:i},openMenuOnClick:!0,options:[{key:!0,display:a},{key:!1,display:i}]})};var ri,oi=x.ZP.div.withConfig({displayName:"StyledBoolEdit"})(ri||(ri=b()(["\n margin: 5px 0;\n"])));const ai=function(e){return(0,_e.jsx)(oi,{children:(0,_e.jsx)("input",{type:"checkbox",checked:e.value||!1,name:e.name,onChange:function(t){e.onChange&&e.onChange(t.target.checked)},id:e.id,disabled:e.immutable})})};var ii,ci;function si(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 ui(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?si(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):si(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var li=x.ZP.div.withConfig({displayName:"StyledOption"})(ii||(ii=b()(["\n margin: "," 0;\n"])),qe.Z.space(-1.4)),fi=x.ZP.span.withConfig({displayName:"StyledLabel"})(ci||(ci=b()(["\n ","\n display: inline-block;\n margin-left: ",";\n"])),(0,lt.Z)(),qe.Z.space(-1.5)),pi={single:"radio",multiple:"checkbox"},di={single:{checked:!1},multiple:{}},hi=function(e){var t=e.groupName,n=e.id,r=e.label,o=e.checked,a=e.immutable,i=e.selectionType,c=e.renderHtmlInOptions,s=e.handleChange;return(0,_e.jsxs)(li,{children:[(0,_e.jsx)("input",{name:t,type:pi[i],checked:o||!1,onChange:s,id:n,disabled:a}),(0,_e.jsx)(fi,{children:c?(0,_e.jsx)("span",{dangerouslySetInnerHTML:{__html:ve.Z.sanitizeHtml(r)}}):r})]})};const mi=function(e){var t=function(t){if(e.onChange){var n=e.value.options.map((function(n){return ui(ui({},n),n.id===t.target.id?{checked:t.target.checked}:di[e.options.selectionType])}));e.onChange({options:n})}};return(0,_e.jsx)(_e.Fragment,{children:e.value.options.map((function(n){return(0,_e.jsx)(hi,{groupName:e.id,id:n.id,label:n.label,checked:n.checked,immutable:e.immutable,selectionType:e.options.selectionType,renderHtmlInOptions:e.options.renderHtmlInOptions,handleChange:t},n.id)}))})};var gi=i(23279),vi=i.n(gi);function yi(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 bi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yi(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var wi=(0,w.lazy)((function(){return Promise.all([i.e(560),i.e(85)]).then(i.bind(i,30919))}));const Oi=function(e){return(0,_e.jsx)(w.Suspense,{fallback:(t=e.value,(0,_e.jsx)("div",{children:(0,_e.jsx)("p",{children:t})})),children:(0,_e.jsx)(wi,bi({},e))});var t};var xi,ki=x.ZP.div.withConfig({displayName:"StyledEditorWrapper"})(xi||(xi=b()(["\n margin-top: ",";\n"])),qe.Z.space(-1.5));const Si=function(e){var t=e.value,n=e.onChange,r=e.immutable,o=e.options;return(0,_e.jsx)(ki,{children:(0,_e.jsx)(Oi,{value:t,onChange:vi()(n,1e3),autoFocusOnMount:o.autoFocusOnMount,mode:o.mode,theme:"textmate",showGutter:!0,editorOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,minLines:5,maxLines:50,readOnly:r,wrap:!0,indentedSoftWrap:!1},implicitModel:o.implicitModel})})};var Pi=i(86896),ji=i(23842),_i=i(93379),Ei=i.n(_i),Ci=i(7795),Ti=i.n(Ci),Di=i(90569),Ri=i.n(Di),Mi=i(3565),Ii=i.n(Mi),Ai=i(19216),Ni=i.n(Ai),Zi=i(44589),Li=i.n(Zi),Fi=i(16721),Ui={};Ui.styleTagTransform=Li(),Ui.setAttributes=Ii(),Ui.insert=Ri().bind(null,"head"),Ui.domAPI=Ti(),Ui.insertStyleElement=Ni();Ei()(Fi.Z,Ui);Fi.Z&&Fi.Z.locals&&Fi.Z.locals;var Hi=i(9198),Bi=i.n(Hi),Wi=(Math.pow(10,8),6e4),zi=36e5,Yi=i(13882),Vi=i(83946);var qi={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Gi=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Ki=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Xi=/^([+-])(\d{2})(?::?(\d{2}))?$/;function $i(e){var t,n={},r=e.split(qi.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],qi.timeZoneDelimiter.test(n.date)&&(n.date=e.split(qi.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var o=qi.timezone.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}function Qi(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?o:100*a,restDateString:e.slice((r[1]||r[2]).length)}}function Ji(e,t){if(null===t)return new Date(NaN);var n=e.match(Gi);if(!n)return new Date(NaN);var r=!!n[4],o=ec(n[1]),a=ec(n[2])-1,i=ec(n[3]),c=ec(n[4]),s=ec(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,c,s)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,a=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}(t,c,s):new Date(NaN);var u=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(oc[t]||(ac(e)?29:28))}(t,a,i)&&function(e,t){return t>=1&&t<=(ac(e)?366:365)}(t,o)?(u.setUTCFullYear(t,a,Math.max(o,i)),u):new Date(NaN)}function ec(e){return e?parseInt(e):1}function tc(e){var t=e.match(Ki);if(!t)return NaN;var n=nc(t[1]),r=nc(t[2]),o=nc(t[3]);return function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,o)?n*zi+r*Wi+1e3*o:NaN}function nc(e){return e&&parseFloat(e.replace(",","."))||0}function rc(e){if("Z"===e)return 0;var t=e.match(Xi);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,o)?n*(r*zi+o*Wi):NaN}var oc=[31,null,31,30,31,30,31,31,30,31,30,31];function ac(e){return e%400==0||e%4==0&&e%100!=0}var ic,cc,sc,uc=x.ZP.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(ic||(ic=b()(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),lc=x.ZP.div.withConfig({displayName:"StyledDatePickerWrapper"})(cc||(cc=b()(["\n &&&& {\n ","\n\n & .react-datepicker__input-container {\n & input {\n ","\n width: calc(100% - 5px);\n }\n }\n\n & .react-datepicker {\n & .react-datepicker__today-button {\n ","\n }\n }\n }\n"])),ft,dt,(function(e){return e.hasTime&&"border-bottom: 1px solid #aeaeae;"})),fc=x.ZP.input.withConfig({displayName:"StyledTimeInput"})(sc||(sc=b()(["\n &&&& {\n ","\n }\n"])),dt),pc=i(37042),dc=i(4543),hc=i(39880),mc=i(85817),gc=i(39159),vc=i(19013);function yc(e){(0,Yi.Z)(1,arguments);var t=(0,vc.Z)(e),n=t.getSeconds();return n}var bc=i(86);function wc(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}function Oc(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return wc(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)?wc(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw a}}}}var xc=i(44941),kc=i(29558);function Sc(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}var Pc=i(97621),jc=i(24262),_c=i(5267);function Ec(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cc(e,t){return(Cc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Tc(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cc(e,t)}function Dc(e){return(Dc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Rc(e,t){if(t&&("object"===(0,bc.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ec(e)}function Mc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Dc(e);if(t){var o=Dc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Rc(this,n)}}function Ic(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ac(e){var t=function(e,t){if("object"!==(0,bc.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==(0,bc.Z)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,bc.Z)(t)?t:String(t)}function Nc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ac(r.key),r)}}function Zc(e,t,n){return t&&Nc(e.prototype,t),n&&Nc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lc(e,t,n){return(t=Ac(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fc=function(){function e(){Ic(this,e),Lc(this,"priority",void 0),Lc(this,"subPriority",0)}return Zc(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),Uc=function(e){Tc(n,e);var t=Mc(n);function n(e,r,o,a,i){var c;return Ic(this,n),(c=t.call(this)).value=e,c.validateValue=r,c.setValue=o,c.priority=a,i&&(c.subPriority=i),c}return Zc(n,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,n){return this.setValue(e,t,this.value,n)}}]),n}(Fc),Hc=function(e){Tc(n,e);var t=Mc(n);function n(){var e;Ic(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Lc(Ec(e=t.call.apply(t,[this].concat(o))),"priority",10),Lc(Ec(e),"subPriority",-1),e}return Zc(n,[{key:"set",value:function(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}}]),n}(Fc),Bc=function(){function e(){Ic(this,e),Lc(this,"incompatibleTokens",void 0),Lc(this,"priority",void 0),Lc(this,"subPriority",void 0)}return Zc(e,[{key:"run",value:function(e,t,n,r){var o=this.parse(e,t,n,r);return o?{setter:new Uc(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(e,t,n){return!0}}]),e}(),Wc=function(e){Tc(n,e);var t=Mc(n);function n(){var e;Ic(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Lc(Ec(e=t.call.apply(t,[this].concat(o))),"priority",140),Lc(Ec(e),"incompatibleTokens",["R","u","t","T"]),e}return Zc(n,[{key:"parse",value:function(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(Bc),zc=/^(1[0-2]|0?\d)/,Yc=/^(3[0-1]|[0-2]?\d)/,Vc=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,qc=/^(5[0-3]|[0-4]?\d)/,Gc=/^(2[0-3]|[0-1]?\d)/,Kc=/^(2[0-4]|[0-1]?\d)/,Xc=/^(1[0-1]|0?\d)/,$c=/^(1[0-2]|0?\d)/,Qc=/^[0-5]?\d/,Jc=/^[0-5]?\d/,es=/^\d/,ts=/^\d{1,2}/,ns=/^\d{1,3}/,rs=/^\d{1,4}/,os=/^-?\d+/,as=/^-?\d/,is=/^-?\d{1,2}/,cs=/^-?\d{1,3}/,ss=/^-?\d{1,4}/,us=/^([+-])(\d{2})(\d{2})?|Z/,ls=/^([+-])(\d{2})(\d{2})|Z/,fs=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,ps=/^([+-])(\d{2}):(\d{2})|Z/,ds=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function hs(e,t){return e?{value:t(e.value),rest:e.rest}:e}function ms(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function gs(e,t){var n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};var r="+"===n[1]?1:-1,o=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,i=n[5]?parseInt(n[5],10):0;return{value:r*(o*zi+a*Wi+1e3*i),rest:t.slice(n[0].length)}}function vs(e){return ms(os,e)}function ys(e,t){switch(e){case 1:return ms(es,t);case 2:return ms(ts,t);case 3:return ms(ns,t);case 4:return ms(rs,t);default:return ms(new RegExp("^\\d{1,"+e+"}"),t)}}function bs(e,t){switch(e){case 1:return ms(as,t);case 2:return ms(is,t);case 3:return ms(cs,t);case 4:return ms(ss,t);default:return ms(new RegExp("^-?\\d{1,"+e+"}"),t)}}function ws(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Os(e,t){var n,r=t>0,o=r?t:1-t;if(o<=50)n=e||100;else{var a=o+50;n=e+100*Math.floor(a/100)-(e>=a%100?100:0)}return r?n:1-n}function xs(e){return e%400==0||e%4==0&&e%100!=0}var ks=function(e){Tc(n,e);var t=Mc(n);function n(){var e;Ic(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Lc(Ec(e=t.call.apply(t,[this].concat(o))),"priority",130),Lc(Ec(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return Zc(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return hs(ys(4,e),r);case"yo":return hs(n.ordinalNumber(e,{unit:"year"}),r);default:return hs(ys(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var o=Os(n.year,r);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(Bc),Ss=i(7651),Ps=i(59025),js=function(e){Tc(n,e);var t=Mc(n);function n(){var e;Ic(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Lc(Ec(e=t.call.apply(t,[this].concat(o))),"priority",130),Lc(Ec(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return Zc(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return hs(ys(4,e),r);case"Yo":return hs(n.ordinalNumber(e,{unit:"year"}),r);default:return hs(ys(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n,r){var o=(0,Ss.Z)(e,r);if(n.isTwoDigitYear){var a=Os(n.year,o);return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,Ps.Z)(e,r)}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,Ps.Z)(e,r)}}]),n}(Bc),_s=i(66979),Es=function(e){Tc(n,e);var t=Mc(n);function n(){var e;Ic(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Lc(Ec(e=t.call.apply(t,[this].concat(o))),"priority",130),Lc(Ec(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return Zc(n,[{key:"parse",value:function(e,t){return bs("R"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),(0,_s.Z)(r)}}]),n}(Bc),Cs=function(e){Tc(n,e);var t=Mc(n);function n(){var e;Ic(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Lc(Ec(e=t.call.apply(t,[this].concat(o))),"priority",130),Lc(Ec(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return Zc(n,[{key:"parse",value:function(e,t){return bs("u"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(Bc),Ts=function(e){Tc(n,e);var t=Mc(n);function n(){var e;Ic(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Lc(Ec(e=t.call.apply(t,[this].concat(o))),"priority",120),Lc(Ec(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return Zc(n,[{key:"parse",value:function(e,t,n){switch(t){case"Q":case"QQ":return ys(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(Bc),Ds=function(e){Tc(n,e);var t=Mc(n);function n(){var e;Ic(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Lc(Ec(e=t.call.apply(t,[this].concat(o))),"priority",120),Lc(Ec(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return Zc(n,[{key:"parse",value:function(e,t,n){switch(t){case"q":case"qq":return ys(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(Bc),Rs=function(e){Tc(n,e);var t=Mc(n);function n(){var e;Ic(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Lc(Ec(e=t.call.apply(t,[this].concat(o))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Lc(Ec(e),"priority",110),e}return Zc(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"M":return hs(ms(zc,e),r);case"MM":return hs(ys(2,e),r);case"Mo":return hs(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(Bc),Ms=function(e){Tc(n,e);var t=Mc(n);function n(){var e;Ic(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Lc(Ec(e=t.call.apply(t,[this].concat(o))),"priority",110),Lc(Ec(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return Zc(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"L":return hs(ms(zc,e),r);case"LL":return hs(ys(2,e),r);case"Lo":return hs(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(Bc),Is=i(23324);var As=function(e){Tc(n,e);var t=Mc(n);function n(){var e;Ic(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Lc(Ec(e=t.call.apply(t,[this].concat(o))),"priority",100),Lc(Ec(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return Zc(n,[{key:"parse",value:function(e,t,n){switch(t){case"w":return ms(qc,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return ys(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n,r){return(0,Ps.Z)(function(e,t,n){(0,Yi.Z)(2,arguments);var r=(0,vc.Z)(e),o=(0,Vi.Z)(t),a=(0,Is.Z)(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*a),r}(e,n,r),r)}}]),n}(Bc),Ns=i(49702);var Zs=function(e){Tc(n,e);var t=Mc(n);function n(){var e;Ic(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Lc(Ec(e=t.call.apply(t,[this].concat(o))),"priority",100),Lc(Ec(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return Zc(n,[{key:"parse",value:function(e,t,n){switch(t){case"I":return ms(qc,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return ys(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n){return(0,_s.Z)(function(e,t){(0,Yi.Z)(2,arguments);var n=(0,vc.Z)(e),r=(0,Vi.Z)(t),o=(0,Ns.Z)(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(e,n))}}]),n}(Bc),Ls=[31,28,31,30,31,30,31,31,30,31,30,31],Fs=[31,29,31,30,31,30,31,31,30,31,30,31],Us=function(e){Tc(n,e);var t=Mc(n);function n(){var e;Ic(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Lc(Ec(e=t.call.apply(t,[this].concat(o))),"priority",90),Lc(Ec(e),"subPriority",1),Lc(Ec(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return Zc(n,[{key:"parse",value:function(e,t,n){switch(t){case"d":return ms(Yc,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return ys(t.length,e)}}},{key:"validate",value:function(e,t){var n=xs(e.getUTCFullYear()),r=e.getUTCMonth();return n?t>=1&&t<=Fs[r]:t>=1&&t<=Ls[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(Bc),Hs=function(e){Tc(n,e);var t=Mc(n);function n(){var e;Ic(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Lc(Ec(e=t.call.apply(t,[this].concat(o))),"priority",90),Lc(Ec(e),"subpriority",1),Lc(Ec(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return Zc(n,[{key:"parse",value:function(e,t,n){switch(t){case"D":case"DD":return ms(Vc,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return ys(t.length,e)}}},{key:"validate",value:function(e,t){return xs(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),n}(Bc),Bs=i(84314);function Ws(e,t,n){var r,o,a,i,c,s,u,l;(0,Yi.Z)(2,arguments);var f=(0,Bs.j)(),p=(0,Vi.Z)(null!==(r=null!==(o=null!==(a=null!==(i=null==n?void 0:n.weekStartsOn)&&void 0!==i?i:null==n||null===(c=n.locale)||void 0===c||null===(s=c.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==a?a:f.weekStartsOn)&&void 0!==o?o:null===(u=f.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=(0,vc.Z)(e),h=(0,Vi.Z)(t),m=d.getUTCDay(),g=h%7,v=(g+7)%7,y=(v<p?7:0)+h-m;return d.setUTCDate(d.getUTCDate()+y),d}var zs=function(e){Tc(n,e);var t=Mc(n);function n(){var e;Ic(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Lc(Ec(e=t.call.apply(t,[this].concat(o))),"priority",90),Lc(Ec(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return Zc(n,[{key:"parse",value:function(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Ws(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(Bc),Ys=function(e){Tc(n,e);var t=Mc(n);function n(){var e;Ic(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Lc(Ec(e=t.call.apply(t,[this].concat(o))),"priority",90),Lc(Ec(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return Zc(n,[{key:"parse",value:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return hs(ys(t.length,e),o);case"eo":return hs(n.ordinalNumber(e,{unit:"day"}),o);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Ws(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(Bc),Vs=function(e){Tc(n,e);var t=Mc(n);function n(){var e;Ic(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Lc(Ec(e=t.call.apply(t,[this].concat(o))),"priority",90),Lc(Ec(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return Zc(n,[{key:"parse",value:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return hs(ys(t.length,e),o);case"co":return hs(n.ordinalNumber(e,{unit:"day"}),o);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Ws(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(Bc);var qs=function(e){Tc(n,e);var t=Mc(n);function n(){var e;Ic(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Lc(Ec(e=t.call.apply(t,[this].concat(o))),"priority",90),Lc(Ec(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return Zc(n,[{key:"parse",value:function(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return ys(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return hs(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return hs(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return hs(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiii":default:return hs(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function(e,t){return t>=1&&t<=7}},{key:"set",value:function(e,t,n){return(e=function(e,t){(0,Yi.Z)(2,arguments);var n=(0,Vi.Z)(t);n%7==0&&(n-=7);var r=1,o=(0,vc.Z)(e),a=o.getUTCDay(),i=((n%7+7)%7<r?7:0)+n-a;return o.setUTCDate(o.getUTCDate()+i),o}(e,n)).setUTCHours(0,0,0,0),e}}]),n}(Bc),Gs=function(e){Tc(n,e);var t=Mc(n);function n(){var e;Ic(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Lc(Ec(e=t.call.apply(t,[this].concat(o))),"priority",80),Lc(Ec(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return Zc(n,[{key:"parse",value:function(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(ws(n),0,0,0),e}}]),n}(Bc),Ks=function(e){Tc(n,e);var t=Mc(n);function n(){var e;Ic(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Lc(Ec(e=t.call.apply(t,[this].concat(o))),"priority",80),Lc(Ec(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return Zc(n,[{key:"parse",value:function(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(ws(n),0,0,0),e}}]),n}(Bc),Xs=function(e){Tc(n,e);var t=Mc(n);function n(){var e;Ic(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Lc(Ec(e=t.call.apply(t,[this].concat(o))),"priority",80),Lc(Ec(e),"incompatibleTokens",["a","b","t","T"]),e}return Zc(n,[{key:"parse",value:function(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(ws(n),0,0,0),e}}]),n}(Bc),$s=function(e){Tc(n,e);var t=Mc(n);function n(){var e;Ic(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Lc(Ec(e=t.call.apply(t,[this].concat(o))),"priority",70),Lc(Ec(e),"incompatibleTokens",["H","K","k","t","T"]),e}return Zc(n,[{key:"parse",value:function(e,t,n){switch(t){case"h":return ms($c,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return ys(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}]),n}(Bc),Qs=function(e){Tc(n,e);var t=Mc(n);function n(){var e;Ic(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Lc(Ec(e=t.call.apply(t,[this].concat(o))),"priority",70),Lc(Ec(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return Zc(n,[{key:"parse",value:function(e,t,n){switch(t){case"H":return ms(Gc,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return ys(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),n}(Bc),Js=function(e){Tc(n,e);var t=Mc(n);function n(){var e;Ic(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Lc(Ec(e=t.call.apply(t,[this].concat(o))),"priority",70),Lc(Ec(e),"incompatibleTokens",["h","H","k","t","T"]),e}return Zc(n,[{key:"parse",value:function(e,t,n){switch(t){case"K":return ms(Xc,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return ys(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),n}(Bc),eu=function(e){Tc(n,e);var t=Mc(n);function n(){var e;Ic(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Lc(Ec(e=t.call.apply(t,[this].concat(o))),"priority",70),Lc(Ec(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return Zc(n,[{key:"parse",value:function(e,t,n){switch(t){case"k":return ms(Kc,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return ys(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=24}},{key:"set",value:function(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}}]),n}(Bc),tu=function(e){Tc(n,e);var t=Mc(n);function n(){var e;Ic(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Lc(Ec(e=t.call.apply(t,[this].concat(o))),"priority",60),Lc(Ec(e),"incompatibleTokens",["t","T"]),e}return Zc(n,[{key:"parse",value:function(e,t,n){switch(t){case"m":return ms(Qc,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return ys(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),n}(Bc),nu=function(e){Tc(n,e);var t=Mc(n);function n(){var e;Ic(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Lc(Ec(e=t.call.apply(t,[this].concat(o))),"priority",50),Lc(Ec(e),"incompatibleTokens",["t","T"]),e}return Zc(n,[{key:"parse",value:function(e,t,n){switch(t){case"s":return ms(Jc,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return ys(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),n}(Bc),ru=function(e){Tc(n,e);var t=Mc(n);function n(){var e;Ic(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Lc(Ec(e=t.call.apply(t,[this].concat(o))),"priority",30),Lc(Ec(e),"incompatibleTokens",["t","T"]),e}return Zc(n,[{key:"parse",value:function(e,t){return hs(ys(t.length,e),(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))}},{key:"set",value:function(e,t,n){return e.setUTCMilliseconds(n),e}}]),n}(Bc),ou=function(e){Tc(n,e);var t=Mc(n);function n(){var e;Ic(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Lc(Ec(e=t.call.apply(t,[this].concat(o))),"priority",10),Lc(Ec(e),"incompatibleTokens",["t","T","x"]),e}return Zc(n,[{key:"parse",value:function(e,t){switch(t){case"X":return gs(us,e);case"XX":return gs(ls,e);case"XXXX":return gs(fs,e);case"XXXXX":return gs(ds,e);case"XXX":default:return gs(ps,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(Bc),au=function(e){Tc(n,e);var t=Mc(n);function n(){var e;Ic(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Lc(Ec(e=t.call.apply(t,[this].concat(o))),"priority",10),Lc(Ec(e),"incompatibleTokens",["t","T","X"]),e}return Zc(n,[{key:"parse",value:function(e,t){switch(t){case"x":return gs(us,e);case"xx":return gs(ls,e);case"xxxx":return gs(fs,e);case"xxxxx":return gs(ds,e);case"xxx":default:return gs(ps,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(Bc),iu=function(e){Tc(n,e);var t=Mc(n);function n(){var e;Ic(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Lc(Ec(e=t.call.apply(t,[this].concat(o))),"priority",40),Lc(Ec(e),"incompatibleTokens","*"),e}return Zc(n,[{key:"parse",value:function(e){return vs(e)}},{key:"set",value:function(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),n}(Bc),cu=function(e){Tc(n,e);var t=Mc(n);function n(){var e;Ic(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Lc(Ec(e=t.call.apply(t,[this].concat(o))),"priority",20),Lc(Ec(e),"incompatibleTokens","*"),e}return Zc(n,[{key:"parse",value:function(e){return vs(e)}},{key:"set",value:function(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}]),n}(Bc),su={G:new Wc,y:new ks,Y:new js,R:new Es,u:new Cs,Q:new Ts,q:new Ds,M:new Rs,L:new Ms,w:new As,I:new Zs,d:new Us,D:new Hs,E:new zs,e:new Ys,c:new Vs,i:new qs,a:new Gs,b:new Ks,B:new Xs,h:new $s,H:new Qs,K:new Js,k:new eu,m:new tu,s:new nu,S:new ru,X:new ou,x:new au,t:new iu,T:new cu},uu=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,lu=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,fu=/^'([^]*?)'?$/,pu=/''/g,du=/\S/,hu=/[a-zA-Z]/;function mu(e,t,n,r){var o,a,i,c,s,u,l,f,p,d,h,m,g,v,y,b,w,O;(0,Yi.Z)(3,arguments);var x=String(e),k=String(t),S=(0,Bs.j)(),P=null!==(o=null!==(a=null==r?void 0:r.locale)&&void 0!==a?a:S.locale)&&void 0!==o?o:xc.Z;if(!P.match)throw new RangeError("locale must contain match property");var j=(0,Vi.Z)(null!==(i=null!==(c=null!==(s=null!==(u=null==r?void 0:r.firstWeekContainsDate)&&void 0!==u?u:null==r||null===(l=r.locale)||void 0===l||null===(f=l.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==s?s:S.firstWeekContainsDate)&&void 0!==c?c:null===(p=S.locale)||void 0===p||null===(d=p.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==i?i:1);if(!(j>=1&&j<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var _=(0,Vi.Z)(null!==(h=null!==(m=null!==(g=null!==(v=null==r?void 0:r.weekStartsOn)&&void 0!==v?v:null==r||null===(y=r.locale)||void 0===y||null===(b=y.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==g?g:S.weekStartsOn)&&void 0!==m?m:null===(w=S.locale)||void 0===w||null===(O=w.options)||void 0===O?void 0:O.weekStartsOn)&&void 0!==h?h:0);if(!(_>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===k)return""===x?(0,vc.Z)(n):new Date(NaN);var E,C={firstWeekContainsDate:j,weekStartsOn:_,locale:P},T=[new Hc],D=k.match(lu).map((function(e){var t=e[0];return t in Pc.Z?(0,Pc.Z[t])(e,P.formatLong):e})).join("").match(uu),R=[],M=Oc(D);try{var I=function(){var t=E.value;null!=r&&r.useAdditionalWeekYearTokens||!(0,_c.Do)(t)||(0,_c.qp)(t,k,e),null!=r&&r.useAdditionalDayOfYearTokens||!(0,_c.Iu)(t)||(0,_c.qp)(t,k,e);var n=t[0],o=su[n];if(o){var a=o.incompatibleTokens;if(Array.isArray(a)){var i=R.find((function(e){return a.includes(e.token)||e.token===n}));if(i)throw new RangeError("The format string mustn't contain `".concat(i.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===o.incompatibleTokens&&R.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));R.push({token:n,fullToken:t});var c=o.run(x,t,P.match,C);if(!c)return{v:new Date(NaN)};T.push(c.setter),x=c.rest}else{if(n.match(hu))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=gu(t)),0!==x.indexOf(t))return{v:new Date(NaN)};x=x.slice(t.length)}};for(M.s();!(E=M.n()).done;){var A=I();if("object"===(0,bc.Z)(A))return A.v}}catch(e){M.e(e)}finally{M.f()}if(x.length>0&&du.test(x))return new Date(NaN);var N=T.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return T.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),Z=(0,vc.Z)(n);if(isNaN(Z.getTime()))return new Date(NaN);var L,F=(0,kc.Z)(Z,(0,jc.Z)(Z)),U={},H=Oc(N);try{for(H.s();!(L=H.n()).done;){var B=L.value;if(!B.validate(F,C))return new Date(NaN);var W=B.set(F,U,C);Array.isArray(W)?(F=W[0],Sc(U,W[1])):F=W}}catch(e){H.e(e)}finally{H.f()}return F}function gu(e){return e.match(fu)[1].replace(pu,"'")}var vu=i(49599);function yu(e,t,n){return(0,Yi.Z)(2,arguments),(0,vu.Z)(mu(e,t,new Date,n))}var bu="react-datepicker-time__input",wu="react-datepicker__day",Ou="react-datepicker__input",xu=function(e){return e.classList.contains(wu)},ku=function(e){return e.classList.contains(bu)},Su=function(e){return e.classList.contains(Ou)},Pu=function(e,t){var n=t.hour,r=void 0===n?0:n,o=t.minute,a=void 0===o?0:o,i=t.second,c=void 0===i?0:i;return(0,pc.Z)((0,dc.Z)((0,hc.Z)(e,c),a),r)},ju=function(e){setTimeout((function(){if(e){var t=e.querySelector(".".concat(wu,'[tabindex="0"]'));t&&t.focus({preventScroll:!0})}}),0)},_u=function(e){setTimeout((function(){e&&e.focus({preventScroll:!0})}),0)},Eu=function(e){var t=function(e,t){var n;(0,Yi.Z)(1,arguments);var r=(0,Vi.Z)(null!==(n=null==t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o,a=$i(e);if(a.date){var i=Qi(a.date,r);o=Ji(i.restDateString,i.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var c,s=o.getTime(),u=0;if(a.time&&(u=tc(a.time),isNaN(u)))return new Date(NaN);if(!a.timezone){var l=new Date(s+u),f=new Date(0);return f.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),f.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),f}return c=rc(a.timezone),isNaN(c)?new Date(NaN):new Date(s+u+c)}(e);return isNaN(t)?null:t},Cu=function(e){return e?e.toISOString():null};const Tu=function(e,t,n){var r=n.dateFormats,o=void 0===r?[]:r,a=n.minDate,i=n.maxDate,c=n.hasTime,s=n.valueToDate,u=void 0===s?Eu:s,l=n.dateToValue,f=void 0===l?Cu:l,p=(0,w.useRef)(null),d=(0,w.useState)(!1),h=H()(d,2),m=h[0],g=h[1],v=(0,w.useState)(!1),y=H()(v,2),b=y[0],O=y[1],x=u(e),k=a?u(a):void 0,S=i?u(i):void 0;(0,w.useEffect)((function(){(p.current&&"function"==typeof p.current.setOpen&&p.current.setOpen(m),m)&&document.querySelectorAll("button.react-datepicker__navigation").forEach((function(e){return e.setAttribute("tabindex","-1")}))}),[m]);var P=function(){return g(!1)},j=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(p.current&&"function"==typeof p.current.getPreSelection){var t,n=e?p.current.getPreSelection():null;return(null===(t=p.current.state)||void 0===t?void 0:t.preSelection)||n}return null},_=function(e){p.current&&"function"==typeof p.current.setPreSelection&&p.current.setPreSelection(e)},E=function(){t(null),_(null)},C=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=j(!1);if(n){var r=x||new Date,o=t?Pu(n,{hour:(0,mc.Z)(r),minute:(0,gc.Z)(r),second:yc(r)}):n;T(o,e)}},T=function(n,r){if(n){var a,i=!e&&Boolean(n),s=null==r||null===(a=r.target)||void 0===a?void 0:a.value,u=!!s&&o.some((function(e){return yu(s,e)})),l=function(e){(0,Yi.Z)(1,arguments);var t=(0,vc.Z)(e);return t.setHours(0,0,0,0),t}(n),d=(0,mc.Z)(n)!==(0,mc.Z)(l)||(0,gc.Z)(n)!==(0,gc.Z)(l);(i&&!d||u)&&c&&(n=ji.Z.setCurrentTime(n)),t(f(n))}else E();var h;c||"click"!==(null==r?void 0:r.type)||(P(),_u(null===(h=p.current)||void 0===h?void 0:h.input))},D=function(e){if("Tab"===e.key)if(e.shiftKey)if(Su(e.target))setTimeout((function(){return P()}),0);else if(ku(e.target)){var t,n;_(x||j(!0)),ju(null===(t=p.current)||void 0===t||null===(n=t.calendar)||void 0===n?void 0:n.componentNode)}else xu(e.target)&&P();else Su(e.target)&&m?(C(e),setTimeout((function(){return P()}),0)):ku(e.target)?P():xu(e.target)&&(c?(C(e,!0),_(null),O(!0),setTimeout((function(){var e,t,n;n=null===(e=p.current)||void 0===e||null===(t=e.calendar)||void 0===t?void 0:t.componentNode,setTimeout((function(){if(n){var e=n.querySelector("input.".concat(bu));e&&e.focus({preventScroll:!0})}}),0),O(!1)}),0)):(C(e),P()));var r;"Enter"===e.key&&(P(),e.preventDefault(),e.stopPropagation(),_u(null===(r=p.current)||void 0===r?void 0:r.input));if(["ArrowDown","ArrowUp","Enter"].includes(e.key))if(m){if(m&&null===j(!1)){var o,a;_(x||j(!0)),ju(null===(o=p.current)||void 0===o||null===(a=o.calendar)||void 0===a?void 0:a.componentNode)}}else g(!0),e.key="Handled".concat(e.key)},R=function(){var e;g((function(e){return!e})),_(null),_u(null===(e=p.current)||void 0===e?void 0:e.input)};return{reactDatePickerProps:{closeOnScroll:function(){return P(),!0},onClickOutside:P,onInputClick:R,onKeyDown:D,onChange:T,onCalendarOpen:function(){_(null)},onBlur:function(){p.current&&p.current.setState({inputValue:null})},preventOpenOnFocus:!0,enableTabLoop:!1,shouldCloseOnSelect:!1,open:m,selected:x,showTimeInput:c,minDate:k,maxDate:S,ref:p,className:Ou},timeInputProps:{onKeyDown:D,className:bu,tabIndex:b?void 0:"-1"},clearButtonProps:{onMouseDown:function(e){e.preventDefault(),E()}},calendarButtonProps:{onClick:R,className:m?"react-datepicker-ignore-onclickoutside":""}}};var Du=i(49546),Ru="HH:mm:ss",Mu="HH:mm",Iu=function(e){return yu(e,Mu)},Au=function(e){var t=function(e){return yu(e,Ru)?mu(e,Ru,new Date):yu(e,Mu)?mu(e,Mu,new Date):yu(e,"HH:")?mu(e,"HH:",new Date):yu(e,"H")?mu(e,"H",new Date):null}(e);return t&&!isNaN(t)?function(e){return(0,Du.Z)(e,Mu)}(t):""};const Nu=function(e,t){var n=Au(e),r=(0,w.useState)(n),o=H()(r,2),a=o[0],i=o[1],c=(0,w.useRef)(a),s=He.Z.usePrevious(n);(0,w.useEffect)((function(){s!==n&&a===s&&i(n)}),[n,a,s]);return{inputProps:{onChange:function(e){if(e.target.value!==a&&function(e){return/^(\d{0,2}|\d{1,2}:\d{0,2})$/.test(e)}(e.target.value)){var n=function(e,t){return e&&t?2!==e.length||3===t.length||e.includes(":")?e.length+1===t.length&&t.indexOf(":")===t.length-1?e.slice(0,-1):e:"".concat(e,":"):e}(e.target.value,c.current),r=n.indexOf(":"),o=n.substring(0,r),s=n.substring(r+1),u=parseInt(o,10),l=parseInt(s,10),f=!o||!Number.isNaN(u)&&u<24,p=!s||!Number.isNaN(l)&&l<60;if(!f||!p)return!1;c.current=n,i(n),n&&!Iu(n)||t(n)}},onBlur:function(){if(a!==n){var e=Au(a);e&&Iu(e)?(c.current=e,i(e),t(e)):i(n)}},onFocus:function(e){a&&"function"==typeof e.target.select&&e.target.select()},value:a||""},clearButtonProps:{onClick:function(){t(""),i("")}}}};var Zu=["value","onChange","onKeyDown"];function Lu(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 Fu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Lu(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}(0,Hi.registerLocale)("en",ji.Z.getDateFnsLocale("en")),(0,Hi.registerLocale)("en-US",ji.Z.getDateFnsLocale("en")),(0,Hi.registerLocale)("de-CH",ji.Z.getDateFnsLocale("de-CH")),(0,Hi.registerLocale)("de",ji.Z.getDateFnsLocale("de")),(0,Hi.registerLocale)("fr",ji.Z.getDateFnsLocale("fr")),(0,Hi.registerLocale)("fr-CH",ji.Z.getDateFnsLocale("fr")),(0,Hi.registerLocale)("it",ji.Z.getDateFnsLocale("it")),(0,Hi.registerLocale)("it-CH",ji.Z.getDateFnsLocale("it")),(0,Hi.setDefaultLocale)("de");var Uu=function(e){var t=e.onChange,n=e.label;return(0,_e.jsx)(Ve.Z,{onMouseDown:function(e){e.preventDefault(),t(null)},tabIndex:-1,children:n})},Hu=function(e){var t=e.value,n=e.onChange,r=e.onKeyDown,o=Ye()(e,Zu),a=Nu(t,(function(e){n&&n(e||"00:00")})).inputProps;return(0,_e.jsx)(fc,Fu(Fu(Fu({},a),o),{},{type:"text",onKeyDown:r,onClick:function(e){e.target.focus()}}))},Bu={strategy:"fixed"};const Wu=(0,x.Zz)((0,f.ZP)((function(e){var t=e.immutable,n=e.id,r=e.value,o=e.minDate,a=e.maxDate,i=e.valueToDate,c=e.dateToValue,s=e.onChange,u=e.intl,l=e.placeholder,f=e.hasTime,p=e.dateFormats,d=void 0===p?[]:p,h=e.dateTimeFormats,m=void 0===h?[]:h,g=e.events,v=(0,w.useRef)(void 0),y=u.locale,b=function(e){return u.formatMessage({id:e})},O=(0,w.useRef)(null),x=Boolean(r),k=!t&&x,S=function(e){v.current=e,s(e)},P=Tu(r,S,{dateFormats:d,dateTimeFormats:m,minDate:o,maxDate:a,valueToDate:i,dateToValue:c,hasTime:f}),j=P.reactDatePickerProps,_=P.timeInputProps,E=P.clearButtonProps,C=P.calendarButtonProps;return(0,_e.jsx)(uc,{immutable:t,id:n,tabIndex:"-1",children:(0,_e.jsxs)(lc,{immutable:t,ref:O,hasTime:f,onBlur:function(e){if("function"==typeof(null==g?void 0:g.onBlur)){var t=void 0!==v.current?v.current:r;g.onBlur(t)}e.stopPropagation()},children:[(0,_e.jsx)(Bi(),Fu(Fu({},j),{},{disabled:t,dateFormat:[].concat(we()(m),we()(d)),placeholderText:l,showMonthDropdown:!0,showYearDropdown:!0,scrollableYearDropdown:!1,fixedHeight:!0,showPopperArrow:!1,locale:y,customTimeInput:(0,_e.jsx)(Hu,Fu({},_)),timeInputLabel:"",popperProps:Bu,todayButton:(0,_e.jsx)(Uu,{onChange:S,label:b("client.component.datePicker.todayLabel")})})),k&&(0,_e.jsx)(ia.Z,Fu({icon:"times",tabIndex:-1,"aria-label":b("client.component.datePicker.clearDateLabel")},E)),!t&&(0,_e.jsx)(ia.Z,Fu({icon:"calendar",tabIndex:-1},C))]})})})));function zu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Yu=function(e){var t=e.onChange,r=e.options,o=e.id,a=e.value,i=e.immutable,c=e.events,s=e.placeholder,u=(0,Pi.Z)(),l=(null==r?void 0:r.datePickerOptions)||{},f="".concat(ji.Z.getLocalizedDateFormat(u.locale)),p=ji.Z.getLocalizedDateFormatWithoutPunctuation(u.locale),d=[f,p,ji.Z.useTwoDigitYear(f),ji.Z.useTwoDigitYear(p)];return(0,_e.jsx)(Wu,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zu(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({id:o,value:a,onChange:t,dateFormats:d,hasTime:!1,immutable:i,placeholder:s,events:c},l))};function Vu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const qu=(0,f.ZP)((function(e){var t=e.onChange,r=e.options,o=e.value,a=e.immutable,i=e.placeholder,c=(0,Pi.Z)(),s=(null==r?void 0:r.datePickerOptions)||{},u="".concat(ji.Z.getLocalizedDateTimeFormat(c.locale)),l="".concat(ji.Z.getLocalizedDateFormat(c.locale)),f=ji.Z.getLocalizedDateTimeFormatWithoutPunctuation(c.locale),p=[u,f,ji.Z.useTwoDigitYear(u),ji.Z.useTwoDigitYear(f)],d=ji.Z.getLocalizedDateFormatWithoutPunctuation(c.locale),h=[l,d,ji.Z.useTwoDigitYear(l),ji.Z.useTwoDigitYear(d)];return(0,_e.jsx)(Wu,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vu(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({value:o,onChange:t,dateTimeFormats:p,dateFormats:h,hasTime:!0,immutable:a,placeholder:i},s))}));var Gu=i(18446),Ku=i.n(Gu);function Xu(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{s(r.next(e))}catch(e){a(e)}}function c(e){try{s(r.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,c)}s((r=r.apply(e,t||[])).next())}))}function $u(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(s){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}}Object.create;function Qu(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function Ju(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;var el=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function tl(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=el.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var nl=[".DS_Store","Thumbs.db"];function rl(e){return"object"==typeof e&&null!==e}function ol(e){return sl(e.target.files).map((function(e){return tl(e)}))}function al(e){return Xu(this,void 0,void 0,(function(){return $u(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return tl(e)}))]}}))}))}function il(e,t){return Xu(this,void 0,void 0,(function(){var n;return $u(this,(function(r){switch(r.label){case 0:return e.items?(n=sl(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(ul))]):[3,2];case 1:return[2,cl(ll(r.sent()))];case 2:return[2,cl(sl(e.files).map((function(e){return tl(e)})))]}}))}))}function cl(e){return e.filter((function(e){return-1===nl.indexOf(e.name)}))}function sl(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function ul(e){if("function"!=typeof e.webkitGetAsEntry)return fl(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?dl(t):fl(e)}function ll(e){return e.reduce((function(e,t){return Ju(Ju([],Qu(e),!1),Qu(Array.isArray(t)?ll(t):[t]),!1)}),[])}function fl(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=tl(t);return Promise.resolve(n)}function pl(e){return Xu(this,void 0,void 0,(function(){return $u(this,(function(t){return[2,e.isDirectory?dl(e):hl(e)]}))}))}function dl(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var a=this;t.readEntries((function(t){return Xu(a,void 0,void 0,(function(){var a,i,c;return $u(this,(function(s){switch(s.label){case 0:if(t.length)return[3,5];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return a=s.sent(),e(a),[3,4];case 3:return i=s.sent(),n(i),[3,4];case 4:return[3,6];case 5:c=Promise.all(t.map(pl)),r.push(c),o(),s.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function hl(e){return Xu(this,void 0,void 0,(function(){return $u(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=tl(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var ml=i(58363);function gl(e){return function(e){if(Array.isArray(e))return xl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ol(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vl(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 yl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vl(Object(n),!0).forEach((function(t){bl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wl(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)return;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)||Ol(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.")}()}function Ol(e,t){if(e){if("string"==typeof e)return xl(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)?xl(e,t):void 0}}function xl(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 kl="file-invalid-type",Sl="file-too-large",Pl="file-too-small",jl="too-many-files",_l=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:kl,message:"File type must be ".concat(t)}},El=function(e){return{code:Sl,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},Cl=function(e){return{code:Pl,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},Tl={code:jl,message:"Too many files"};function Dl(e,t){var n="application/x-moz-file"===e.type||(0,ml.Z)(e,t);return[n,n?null:_l(t)]}function Rl(e,t,n){if(Ml(e.size))if(Ml(t)&&Ml(n)){if(e.size>n)return[!1,El(n)];if(e.size<t)return[!1,Cl(t)]}else{if(Ml(t)&&e.size<t)return[!1,Cl(t)];if(Ml(n)&&e.size>n)return[!1,El(n)]}return[!0,null]}function Ml(e){return null!=e}function Il(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,a=e.multiple,i=e.maxFiles,c=e.validator;return!(!a&&t.length>1||a&&i>=1&&t.length>i)&&t.every((function(e){var t=wl(Dl(e,n),1)[0],a=wl(Rl(e,r,o),1)[0],i=c?c(e):null;return t&&a&&!i}))}function Al(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function Nl(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function Zl(e){e.preventDefault()}function Ll(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function Fl(e){return-1!==e.indexOf("Edge/")}function Ul(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return Ll(e)||Fl(e)}function Hl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return!Al(e)&&t&&t.apply(void 0,[e].concat(r)),Al(e)}))}}function Bl(){return"showOpenFilePicker"in window}function Wl(e){return Ml(e)?[{description:"Files",accept:Object.entries(e).filter((function(e){var t=wl(e,2),n=t[0],r=t[1],o=!0;return ql(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),Array.isArray(r)&&r.every(Gl)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(e,t){var n=wl(t,2),r=n[0],o=n[1];return yl(yl({},e),{},bl({},r,o))}),{})}]:e}function zl(e){if(Ml(e))return Object.entries(e).reduce((function(e,t){var n=wl(t,2),r=n[0],o=n[1];return[].concat(gl(e),[r],gl(o))}),[]).filter((function(e){return ql(e)||Gl(e)})).join(",")}function Yl(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}function Vl(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}function ql(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function Gl(e){return/^.*\.[\w]+$/.test(e)}var Kl=["children"],Xl=["open"],$l=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Ql=["refKey","onChange","onClick"];function Jl(e){return function(e){if(Array.isArray(e))return nf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||tf(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ef(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)return;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)||tf(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.")}()}function tf(e,t){if(e){if("string"==typeof e)return nf(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)?nf(e,t):void 0}}function nf(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}function rf(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 of(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rf(Object(n),!0).forEach((function(t){af(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function af(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cf(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}var sf=(0,w.forwardRef)((function(e,t){var n=e.children,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=of(of({},uf),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,a=t.maxSize,i=t.minSize,c=t.multiple,s=t.maxFiles,u=t.onDragEnter,l=t.onDragLeave,f=t.onDragOver,p=t.onDrop,d=t.onDropAccepted,h=t.onDropRejected,m=t.onFileDialogCancel,g=t.onFileDialogOpen,v=t.useFsAccessApi,y=t.autoFocus,b=t.preventDropOnDocument,O=t.noClick,x=t.noKeyboard,k=t.noDrag,S=t.noDragEventsBubbling,P=t.onError,j=t.validator,_=(0,w.useMemo)((function(){return zl(n)}),[n]),E=(0,w.useMemo)((function(){return Wl(n)}),[n]),C=(0,w.useMemo)((function(){return"function"==typeof g?g:df}),[g]),T=(0,w.useMemo)((function(){return"function"==typeof m?m:df}),[m]),D=(0,w.useRef)(null),R=(0,w.useRef)(null),M=ef((0,w.useReducer)(pf,ff),2),I=M[0],A=M[1],N=I.isFocused,Z=I.isFileDialogActive,L=(0,w.useRef)("undefined"!=typeof window&&window.isSecureContext&&v&&Bl()),F=function(){!L.current&&Z&&setTimeout((function(){R.current&&(R.current.files.length||(A({type:"closeDialog"}),T()))}),300)};(0,w.useEffect)((function(){return window.addEventListener("focus",F,!1),function(){window.removeEventListener("focus",F,!1)}}),[R,Z,T,L]);var U=(0,w.useRef)([]),H=function(e){D.current&&D.current.contains(e.target)||(e.preventDefault(),U.current=[])};(0,w.useEffect)((function(){return b&&(document.addEventListener("dragover",Zl,!1),document.addEventListener("drop",H,!1)),function(){b&&(document.removeEventListener("dragover",Zl),document.removeEventListener("drop",H))}}),[D,b]),(0,w.useEffect)((function(){return!r&&y&&D.current&&D.current.focus(),function(){}}),[D,y,r]);var B=(0,w.useCallback)((function(e){P?P(e):console.error(e)}),[P]),W=(0,w.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),U.current=[].concat(Jl(U.current),[e.target]),Nl(e)&&Promise.resolve(o(e)).then((function(t){if(!Al(e)||S){var n=t.length,r=n>0&&Il({files:t,accept:_,minSize:i,maxSize:a,multiple:c,maxFiles:s,validator:j});A({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}})).catch((function(e){return B(e)}))}),[o,u,B,S,_,i,a,c,s,j]),z=(0,w.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=Nl(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&f&&f(e),!1}),[f,S]),Y=(0,w.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=U.current.filter((function(e){return D.current&&D.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),U.current=t,t.length>0||(A({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Nl(e)&&l&&l(e))}),[D,l,S]),V=(0,w.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=ef(Dl(e,_),2),o=t[0],c=t[1],s=ef(Rl(e,i,a),2),u=s[0],l=s[1],f=j?j(e):null;if(o&&u&&!f)n.push(e);else{var p=[c,l];f&&(p=p.concat(f)),r.push({file:e,errors:p.filter((function(e){return e}))})}})),(!c&&n.length>1||c&&s>=1&&n.length>s)&&(n.forEach((function(e){r.push({file:e,errors:[Tl]})})),n.splice(0)),A({acceptedFiles:n,fileRejections:r,type:"setFiles"}),p&&p(n,r,t),r.length>0&&h&&h(r,t),n.length>0&&d&&d(n,t)}),[A,c,_,i,a,s,p,d,h,j]),q=(0,w.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),U.current=[],Nl(e)&&Promise.resolve(o(e)).then((function(t){Al(e)&&!S||V(t,e)})).catch((function(e){return B(e)})),A({type:"reset"})}),[o,V,B,S]),G=(0,w.useCallback)((function(){if(L.current){A({type:"openDialog"}),C();var e={multiple:c,types:E};window.showOpenFilePicker(e).then((function(e){return o(e)})).then((function(e){V(e,null),A({type:"closeDialog"})})).catch((function(e){Yl(e)?(T(e),A({type:"closeDialog"})):Vl(e)?(L.current=!1,R.current?(R.current.value=null,R.current.click()):B(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):B(e)}))}else R.current&&(A({type:"openDialog"}),C(),R.current.value=null,R.current.click())}),[A,C,T,v,V,B,E,c]),K=(0,w.useCallback)((function(e){D.current&&D.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),G()))}),[D,G]),X=(0,w.useCallback)((function(){A({type:"focus"})}),[]),$=(0,w.useCallback)((function(){A({type:"blur"})}),[]),Q=(0,w.useCallback)((function(){O||(Ul()?setTimeout(G,0):G())}),[O,G]),J=function(e){return r?null:e},ee=function(e){return x?null:J(e)},te=function(e){return k?null:J(e)},ne=function(e){S&&e.stopPropagation()},re=(0,w.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,o=e.role,a=e.onKeyDown,i=e.onFocus,c=e.onBlur,s=e.onClick,u=e.onDragEnter,l=e.onDragOver,f=e.onDragLeave,p=e.onDrop,d=cf(e,$l);return of(of(af({onKeyDown:ee(Hl(a,K)),onFocus:ee(Hl(i,X)),onBlur:ee(Hl(c,$)),onClick:J(Hl(s,Q)),onDragEnter:te(Hl(u,W)),onDragOver:te(Hl(l,z)),onDragLeave:te(Hl(f,Y)),onDrop:te(Hl(p,q)),role:"string"==typeof o&&""!==o?o:"presentation"},n,D),r||x?{}:{tabIndex:0}),d)}}),[D,K,X,$,Q,W,z,Y,q,x,k,r]),oe=(0,w.useCallback)((function(e){e.stopPropagation()}),[]),ae=(0,w.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,o=e.onClick,a=cf(e,Ql);return of(of({},af({accept:_,multiple:c,type:"file",style:{display:"none"},onChange:J(Hl(r,q)),onClick:J(Hl(o,oe)),tabIndex:-1},n,R)),a)}}),[R,n,c,q,r]);return of(of({},I),{},{isFocused:N&&!r,getRootProps:re,getInputProps:ae,rootRef:D,inputRef:R,open:J(G)})}(cf(e,Kl)),o=r.open,a=cf(r,Xl);return(0,w.useImperativeHandle)(t,(function(){return{open:o}}),[o]),O().createElement(w.Fragment,null,n(of(of({},a),{},{open:o})))}));sf.displayName="Dropzone";var uf={disabled:!1,getFilesFromEvent:function(e){return Xu(this,void 0,void 0,(function(){return $u(this,(function(t){return rl(e)&&rl(e.dataTransfer)?[2,il(e.dataTransfer,e.type)]:function(e){return rl(e)&&rl(e.target)}(e)?[2,ol(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,al(e)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};sf.defaultProps=uf,sf.propTypes={children:o().func,accept:o().objectOf(o().arrayOf(o().string)),multiple:o().bool,preventDropOnDocument:o().bool,noClick:o().bool,noKeyboard:o().bool,noDrag:o().bool,noDragEventsBubbling:o().bool,minSize:o().number,maxSize:o().number,maxFiles:o().number,disabled:o().bool,getFilesFromEvent:o().func,onFileDialogCancel:o().func,onFileDialogOpen:o().func,useFsAccessApi:o().bool,autoFocus:o().bool,onDragEnter:o().func,onDragLeave:o().func,onDragOver:o().func,onDrop:o().func,onDropAccepted:o().func,onDropRejected:o().func,onError:o().func,validator:o().func};const lf=sf;var ff={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function pf(e,t){switch(t.type){case"focus":return of(of({},e),{},{isFocused:!0});case"blur":return of(of({},e),{},{isFocused:!1});case"openDialog":return of(of({},ff),{},{isFileDialogActive:!0});case"closeDialog":return of(of({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return of(of({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return of(of({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return of({},ff);default:return e}}function df(){}var hf,mf,gf,vf,yf,bf,wf,Of,xf,kf,Sf,Pf=i(69829),jf=i(40953),_f=x.ZP.section.withConfig({displayName:"StyledSection"})(hf||(hf=b()(["\n flex: 1;\n display: flex;\n justify-content: flex-end;\n"]))),Ef=x.ZP.div.withConfig({displayName:"StyledButtonsWrapper"})(mf||(mf=b()(["\n display: flex;\n align-items: center;\n\n "," {\n margin: 0;\n border-radius: 50%;\n padding: ",";\n\n a:hover {\n color: unset;\n }\n }\n"])),vt.Z,qe.Z.space(-2)),Cf=x.ZP.span.withConfig({displayName:"StyledDropzoneBaseline"})(gf||(gf=b()(["\n opacity: 0;\n"]))),Tf=x.ZP.div.withConfig({displayName:"StyledDropzone"})(vf||(vf=b()(["\n width: 100%;\n\n &:hover {\n "," {\n background-color: ",";\n }\n }\n"])),vt.Z,xe.FS.color("backgroundItemHover")),Df=x.ZP.div.withConfig({displayName:"StyledUploadInput"})(yf||(yf=b()(["\n ","\n cursor: ",";\n background-color: ",";\n color: ",";\n padding: "," 0 0 0;\n display: flex;\n\n "," {\n float: right;\n position: relative;\n top: -",";\n margin: 0;\n border-radius: 50%;\n padding: ",";\n }\n"])),(0,lt.Z)(),(function(e){return e.immutable?"not-allowed":"pointer"}),xe.FS.color("paper"),(function(e){return e.immutable?jf.v.shade2(e):jf.v.base(e)}),qe.Z.space(-2),vt.Z,qe.Z.space(-3.1),qe.Z.space(-1.5)),Rf=x.ZP.div.withConfig({displayName:"StyledUploadProgress"})(bf||(bf=b()(["\n && {\n padding-top: ",";\n text-align: center;\n display: inline-block;\n }\n"])),qe.Z.space(-2)),Mf=(0,x.ZP)(Pf.Fe).withConfig({displayName:"StyledUploadProgressText"})(wf||(wf=b()(["\n && {\n ","\n }\n"])),(0,lt.Z)({fontSize:qe.Z.font(-1)})),If=x.ZP.div.withConfig({displayName:"StyledUploadProgressIconAndText"})(Of||(Of=b()(["\n && {\n display: flex;\n justify-content: center;\n align-items: center;\n\n span {\n margin-left: ",";\n }\n }\n"])),qe.Z.space(-2)),Af=x.ZP.div.withConfig({displayName:"StyledView"})(xf||(xf=b()(["\n display: flex;\n justify-content: space-between;\n padding-top: ",";\n"])),qe.Z.space(-2));function Nf(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 Zf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Nf(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nf(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Lf=function(e){var t=e.onDrop,n=e.immutable,r=e.text,o=e.onChoose;return(0,_e.jsxs)(Df,{immutable:n,children:[(0,_e.jsx)(lf,{onDrop:function(e){var n=e.map((function(e){return Object.assign(e,{preview:URL.createObjectURL(e)})}));t(n[0])},multiple:!1,disabled:n,title:r||"drag and drop or click",children:function(e){var t=e.getRootProps,n=e.getInputProps;return(0,_e.jsx)(_f,{children:(0,_e.jsxs)(Tf,Zf(Zf({},t()),{},{children:[(0,_e.jsx)("input",Zf({},n())),kf||(kf=(0,_e.jsx)(Ve.Z,{icon:"arrow-to-top"})),Sf||(Sf=(0,_e.jsx)(Cf,{children:"Dropzone"}))]}))})}}),o&&(0,_e.jsx)(Ve.Z,{onClick:function(e){o(),e.stopPropagation()},icon:"folder",label:"browse docs",iconOnly:!0})]})};var Ff=i(73906),Uf=function(e){var t=Math.floor(Math.log(e)/Math.log(1024));return"".concat(1*(e/Math.pow(1024,t)).toFixed(2)," ").concat(["Bytes","KB","MB","GB","TB"][t])};const Hf=function(e){var t=e.file,n=e.text;return(0,_e.jsxs)(Rf,{children:[(0,_e.jsx)(Ff.Z,{alt:t.name,caption:t.name,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:t.preview,thumbnailUrl:t.type.startsWith("image")?t.preview:null}),(0,_e.jsxs)(If,{children:[(0,_e.jsx)(Pa.Z,{position:ye.Z.position.PREPEND}),(0,_e.jsxs)(Mf,{children:[n||"uploading"," (",Uf(t.size),")"]})]})]})};var Bf=i(28247),Wf=i(41291);function zf(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 Yf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zf(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zf(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Vf=function(e){var t,n=e.value,r=e.downloadTitle,o=e.immutable,a=e.onUpload,i=e.deleteTitle,c=null===(t=n.binaryLink)||void 0===t?void 0:t.startsWith("blob:");return(0,_e.jsxs)(Af,{className:"StyledView",children:[(0,_e.jsx)(Ff.Z,Yf(Yf({alt:n.fileName},c&&{caption:n.fileName}),{},{fileName:n.fileName,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:n.binaryLink,thumbnailUrl:n.thumbnailLink})),(0,_e.jsxs)(Ef,{children:[!o&&(0,_e.jsx)(Ve.Z,{icon:"trash",onClick:function(){return a(null)},tabIndex:-1,title:i||"delete"}),(0,_e.jsx)(Ve.Z,{children:(0,_e.jsx)(Wf.Z,{neutral:!0,icon:"arrow-to-bottom",target:"_blank",href:Bf.Z.getDownloadUrl(n.binaryLink),tabIndex:-1,title:r||"download"})})]})]})};function qf(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 Gf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qf(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qf(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Kf=function(e){var t=e.value,n=e.textResources,r=e.onUpload,o=e.onChoose,a=(0,w.useRef)(t),i=(0,w.useState)({isUploading:!1,previewFile:null}),c=H()(i,2),s=c[0],u=c[1];return(0,w.useEffect)((function(){Ku()(a.current,t)||u({isUploading:!1,previewFile:null}),a.current=t}),[t]),null!=t&&t.binaryLink?(0,_e.jsx)(Vf,Gf(Gf({},e),{},{deleteTitle:n.delete,downloadTitle:n.download})):s.isUploading?(0,_e.jsx)(Hf,Gf({file:s.previewFile,text:n.uploading},e)):(0,_e.jsx)(Lf,Gf(Gf({},e),{},{onDrop:function(e){!function(e){u({isUploading:!0,previewFile:e})}(e),r(e)},onChoose:o}))};Kf.defaultProps={textResources:{}};const Xf=Kf;var $f=function(e){return(0,_e.jsx)(Xf,{onUpload:function(t){null===t?e.onChange&&e.onChange(null):e.options.upload&&e.options.upload(t)},onChoose:e.options.choose,immutable:e.immutable,textResources:{upload:e.options.uploadText,uploading:e.options.uploadingText,delete:e.options.deleteText,download:e.options.downloadText},value:e.value?e.value:null})};$f.defaultProps={options:{}};const Qf=$f;var Jf,ep,tp=function(e){return-1*Math.abs(e)},np=x.ZP.input.withConfig({displayName:"StyledDurationEdit"})(Jf||(Jf=b()(["\n &&&& {\n ","\n flex-grow: 0;\n width: ","px;\n min-width: 2.5ch;\n }\n"])),dt,(function(e){return e.width})),rp=x.ZP.label.withConfig({displayName:"StyledDurationEditFocusable"})(ep||(ep=b()(["\n &&& {\n align-items: center;\n display: flex;\n flex-wrap: nowrap;\n margin-bottom: 0; /* reset bootstrap */\n margin-left: ",";\n\n &:first-child {\n margin-left: 0;\n }\n\n > span {\n color: ",";\n cursor: ",";\n }\n }\n"])),qe.Z.space(1),(function(e){return e.immutable?xe.FS.color("textDisabled"):xe.FS.color("text")}),(function(e){return e.immutable?"not-allowed":"default"})),op=function(e){var t=e.value,n=e.immutable,r=e.onChange,o=e.options,a=ji.Z.millisecondsToDuration(t),i=(0,w.useState)(!1),c=H()(i,2),s=c[0],u=c[1],l=function(e,t){var n,o,i=null!==t?t:a.minutes,c=null!==e?e:a.hours;""!==i||""!==c?(i>=60&&(c=0),r((o=i,(n=c)||o?((n<0||o<0)&&(n=tp(n),o=tp(o)),60*(n||0)*6e4+6e4*(o||0)):null))):r(null)},f=function(){u(!0)},p=function(e){e.charCode>=48&&e.charCode<=57||45===e.charCode&&!0===o.allowNegative||e.preventDefault()},d=function(){return!0===o.allowNegative?"-?d+":"d+"},h=function(){return s||"number"==typeof t},m=function(e){return 9*(e+"").length},g=n&&Boolean(a.seconds);return(0,_e.jsxs)(pt,{onBlur:function(){u(!1)},immutable:n,children:[(0,_e.jsxs)(rp,{immutable:n,children:[(0,_e.jsx)(np,{disabled:n,immutable:n,min:!0===o.allowNegative?void 0:0,onChange:function(){},onFocus:f,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");l(t,null)},onKeyPress:p,pattern:d(),step:1,width:m(a.hours),type:"number",value:"number"!=typeof a.hours||0===a.hours&&!n?"":a.hours+""}),h()&&(0,_e.jsx)(et.ZP.Span,{children:o.hoursLabel})]}),(0,_e.jsxs)(rp,{immutable:n,children:[(0,_e.jsx)(np,{disabled:n,immutable:n,min:!0!==o.allowNegative||null!==a.hours&&0!==a.hours?0:void 0,onChange:function(){},onFocus:f,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");l(null,t)},onKeyPress:p,pattern:d(),step:1,width:m(a.minutes),type:"number",value:a.minutes+""}),h()&&(0,_e.jsx)(et.ZP.Span,{children:o.minutesLabel})]}),g&&(0,_e.jsxs)(rp,{immutable:n,children:[(0,_e.jsx)(np,{disabled:n,immutable:n,onChange:function(){},width:m(a.seconds),type:"number",value:a.seconds+""}),h()&&(0,_e.jsx)(et.ZP.Span,{children:o.secondsLabel})]})]})};op.defaultProps={options:{hoursLabel:"hrs",minutesLabel:"min",secondsLabel:"s"}};const ap=op;var ip;const cp=x.ZP.input.attrs((function(e){return{type:"text"}})).withConfig({displayName:"StyledStringEdit"})(ip||(ip=b()(["\n &&&& {\n ","\n }\n"])),dt);const sp=He.Z.Debouncer((function(e){return(0,_e.jsxs)(pt,{immutable:e.immutable,children:[(0,_e.jsx)(cp,{disabled:e.immutable,id:e.id,name:e.name,onChange:function(t){return e.onChange(t.target.value)},immutable:e.immutable,value:e.value||""}),e.value&&(0,_e.jsx)(mt,{children:(0,_e.jsx)(Wf.Z,{href:"mailto:".concat(e.value.toString()),icon:"envelope",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));var up=i(50008),lp=i.n(up),fp=i(2205),pp=i.n(fp),dp=i(99489),hp=i.n(dp),mp=i(78718),gp=i.n(mp);function vp(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 yp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vp(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function bp(){bp=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var a=new RegExp(e,r);return t.set(a,o||t.get(e)),hp()(a,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var a=0;void 0===e[o[a]]&&a+1<o.length;)a++;t[n]=e[o[a]]}return t}),Object.create(null))}return pp()(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var o=n.indices;o&&(o.groups=r(o,this))}return n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var a=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(e,t){var n=a[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var i=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=lp()(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,i)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},bp.apply(this,arguments)}var wp,Op=["key","display","postcode","city","country","latitude","longitude"],xp=function(e){return e*Math.PI/180},kp=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,a=e.latitude,i=e.longitude,c=t?"- ".concat(t):"",s=n?"/ ".concat(n.display):"";return{key:r,display:"".concat(r," ").concat(o," ").concat(c," ").concat(s),postcode:r,city:o,country:n,latitude:xp(a),longitude:xp(i)}};function Sp(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Pp(){}function jp(e){return!!(e||"").match(/\d/)}function _p(e){return null==e}function Ep(e){return"number"==typeof e&&isNaN(e)}function Cp(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Tp(e,t){void 0===t&&(t=!0);var n="-"===e[0],r=n&&t,o=(e=e.replace("-","")).split(".");return{beforeDecimal:o[0],afterDecimal:o[1]||"",hasNegation:n,addNegation:r}}function Dp(e,t,n){for(var r="",o=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||o;return r}function Rp(e,t){return Array(t+1).join(e)}function Mp(e){var t=e+"",n="-"===t[0]?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),o=r[0],a=r[1];if(!(a=Number(a)))return n+o;var i=1+a,c=(o=o.replace(".","")).length;return i<0?o="0."+Rp("0",Math.abs(i))+o:i>=c?o+=Rp("0",i-c):o=(o.substring(0,i)||"0")+"."+o.substring(i),n+o}function Ip(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,o=Tp(e),a=o.beforeDecimal,i=o.afterDecimal,c=o.hasNegation,s=parseFloat("0."+(i||"0")),u=(i.length<=t?"0."+i:s.toFixed(t)).split(".");return""+(c?"-":"")+a.split("").reverse().reduce((function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e}),u[0])+(r?".":"")+Dp(u[1]||"",t,n)}function Ap(e,t){if(e.value=e.value,null!==e){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}function Np(e){return Math.max(e.selectionStart,e.selectionEnd)}function Zp(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function Lp(e,t,n,r){var o,a,i,c=e.length;if(o=t,a=0,i=c,t=Math.min(Math.max(o,a),i),"left"===r){for(;t>=0&&!n[t];)t--;-1===t&&(t=n.indexOf(!0))}else{for(;t<=c&&!n[t];)t++;t>c&&(t=n.lastIndexOf(!0))}return-1===t&&(t=c),t}function Fp(e){for(var t=Array.from({length:e.length+1}).map((function(){return!0})),n=0,r=t.length;n<r;n++)t[n]=Boolean(jp(e[n])||jp(e[n-1]));return t}function Up(e,t,n,r,o,a){void 0===a&&(a=Pp);var i,c,s=(0,w.useRef)(),u=(i=function(e){var t,a;return _p(e)||Ep(e)?(a="",t=""):"number"==typeof e||n?(a="number"==typeof e?Mp(e):e,t=r(a)):(a=o(e,void 0),t=e),{formattedValue:t,numAsString:a}},(c=(0,w.useRef)(i)).current=i,(0,w.useRef)((function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return c.current.apply(c,e)})).current),l=(0,w.useState)((function(){return u(t)})),f=l[0],p=l[1];return(0,w.useMemo)((function(){_p(e)?s.current=void 0:(s.current=u(e),p(s.current))}),[e,u]),[f,function(e,t){p({formattedValue:e.formattedValue,numAsString:e.value}),a(e,t)}]}function Hp(e){return e.replace(/[^0-9]/g,"")}function Bp(e){return e}function Wp(e){var t=e.type;void 0===t&&(t="text");var n=e.displayType;void 0===n&&(n="input");var r=e.customInput,o=e.renderText,a=e.getInputRef,i=e.format;void 0===i&&(i=Bp);var c=e.removeFormatting;void 0===c&&(c=Hp);var s=e.defaultValue,u=e.valueIsNumericString,l=e.onValueChange,f=e.isAllowed,p=e.onChange;void 0===p&&(p=Pp);var d=e.onKeyDown;void 0===d&&(d=Pp);var h=e.onMouseUp;void 0===h&&(h=Pp);var m=e.onFocus;void 0===m&&(m=Pp);var g=e.onBlur;void 0===g&&(g=Pp);var v=e.value,y=e.getCaretBoundary;void 0===y&&(y=Fp);var b=e.isValidInputCharacter;void 0===b&&(b=jp);var x=Sp(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter"]),k=Up(v,s,Boolean(u),i,c,l),S=k[0],P=S.formattedValue,j=S.numAsString,_=k[1],E=(0,w.useRef)();(0,w.useEffect)((function(){var e=i(j);if(void 0===E.current||e!==E.current){var t=R.current,n=c(e,void 0);F({formattedValue:e,numAsString:n,input:t,setCaretPosition:!0,source:wp.props,event:void 0})}}));var C=(0,w.useState)(!1),T=C[0],D=C[1],R=(0,w.useRef)(null),M=(0,w.useRef)({setCaretTimeout:null,focusTimeout:null});(0,w.useEffect)((function(){return D(!0),function(){clearTimeout(M.current.setCaretTimeout),clearTimeout(M.current.focusTimeout)}}),[]);var I=i,A=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},N=function(e,t,n){Ap(e,t),M.current.setCaretTimeout=setTimeout((function(){e.value===n&&Ap(e,t)}),0)},Z=function(e,t,n){return Lp(e,t,y(e),n)},L=function(e,t,n){var r=y(t),o=function(e,t,n,r,o,a){var i=o.findIndex((function(e){return e})),c=e.slice(0,i);t||n.startsWith(c)||(n=c+n,r+=c.length);for(var s=n.length,u=e.length,l={},f=new Array(s),p=0;p<s;p++){f[p]=-1;for(var d=0,h=u;d<h;d++)if(n[p]===e[d]&&!0!==l[d]){f[p]=d,l[d]=!0;break}}for(var m=r;m<s&&(-1===f[m]||!a(n[m]));)m++;var g=m===s||-1===f[m]?u:f[m];for(m=r-1;m>0&&-1===f[m];)m--;var v=-1===m||-1===f[m]?0:f[m]+1;return v>g?g:r-v<g-r?v:g}(t,P,e,n,r,b);return o=Lp(t,o,r)},F=function(e){var t=e.formattedValue;void 0===t&&(t="");var n=e.input,r=e.setCaretPosition;void 0===r&&(r=!0);var o=e.source,a=e.event,i=e.numAsString,c=e.caretPos;if(n){if(void 0===c&&r){var s=e.inputValue||n.value,u=Np(n);n.value=t,c=L(s,t,u)}n.value=t,r&&void 0!==c&&N(n,c,t)}t!==P&&function(e,t){E.current=e.formattedValue,_(e,t)}(A(t,i),{event:a,source:o})},U=!T||"undefined"==typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",H=Object.assign({inputMode:U},x,{type:t,value:P,onChange:function(e){(function(e,t,n){var r=function(e,t){for(var n=0,r=0,o=e.length,a=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[a-1-r]&&a-r>n&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:a-r}}}(P,e),o=Object.assign(Object.assign({},r),{lastValue:P}),a=c(e,o),i=I(a);if(a=c(i,void 0),f&&!f(A(i,a))){var s=t.target,u=Np(s),l=L(e,P,u);return N(s,l,P),!1}return F({formattedValue:i,numAsString:a,inputValue:e,event:t,source:n,setCaretPosition:!0,input:t.target}),!0})(e.target.value,e,wp.event)&&p(e)},onKeyDown:function(e){var t,n=e.target,r=e.key,o=n.selectionStart,a=n.selectionEnd,i=n.value;if(void 0===i&&(i=""),"ArrowLeft"===r||"Backspace"===r?t=Math.max(o-1,0):"ArrowRight"===r?t=Math.min(o+1,i.length):"Delete"===r&&(t=o),void 0!==t&&o===a){var c=t;if("ArrowLeft"===r||"ArrowRight"===r)c=Z(i,t,"ArrowLeft"===r?"left":"right");else"Delete"!==r||b(i[t])?"Backspace"!==r||b(i[t])||(c=Z(i,t,"left")):c=Z(i,t,"right");c!==t&&N(n,c,i),e.isUnitTestRun&&N(n,c,i),d(e)}else d(e)},onMouseUp:function(e){var t=e.target,n=t.selectionStart,r=t.selectionEnd,o=t.value;if(void 0===o&&(o=""),n===r){var a=Z(o,n);a!==n&&N(t,a,o)}h(e)},onFocus:function(e){e.persist&&e.persist();var t=e.target;R.current=t,M.current.focusTimeout=setTimeout((function(){var n=t.selectionStart,r=t.selectionEnd,o=t.value;void 0===o&&(o="");var a=Z(o,n);a===n||0===n&&r===o.length||N(t,a,o),m(e)}),0)},onBlur:function(e){R.current=null,clearTimeout(M.current.focusTimeout),clearTimeout(M.current.setCaretTimeout),g(e)}});if("text"===n)return o?O().createElement(O().Fragment,null,o(P,x)||null):O().createElement("span",Object.assign({},x,{ref:a}),P);if(r){var B=r;return O().createElement(B,Object.assign({},H,{ref:a}))}return O().createElement("input",Object.assign({},H,{ref:a}))}function zp(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix;void 0===o&&(o="");var a=t.suffix;void 0===a&&(a="");var i=t.allowNegative,c=t.thousandsGroupStyle;if(void 0===c&&(c="thousand"),""===e||"-"===e)return e;var s=Yp(t),u=s.thousandSeparator,l=s.decimalSeparator,f=0!==n&&-1!==e.indexOf(".")||n&&r,p=Tp(e,i),d=p.beforeDecimal,h=p.afterDecimal,m=p.addNegation;return void 0!==n&&(h=Dp(h,n,!!r)),u&&(d=function(e,t,n){var r=function(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}(n),o=e.search(/[1-9]/);return o=-1===o?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(r,"$1"+t)}(d,u,c)),o&&(d=o+d),a&&(h+=a),m&&(d="-"+d),e=d+(f&&l||"")+h}function Yp(e){var t=e.decimalSeparator;void 0===t&&(t=".");var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return!0===n&&(n=","),r||(r=[t,"."]),{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function Vp(e,t,n){var r;void 0===t&&(t=Zp(e));var o=n.allowNegative,a=n.prefix;void 0===a&&(a="");var i=n.suffix;void 0===i&&(i="");var c=n.decimalScale,s=t.from,u=t.to,l=u.start,f=u.end,p=Yp(n),d=p.allowedDecimalSeparators,h=p.decimalSeparator,m=e[f]===h;if(jp(e)&&(e===a||e===i)&&""===t.lastValue)return e;if(f-l==1&&-1!==d.indexOf(e[l])){var g=0===c?"":h;e=e.substring(0,l)+g+e.substring(l+1,e.length)}var v=function(e,t,n){var r=!1,o=!1;a.startsWith("-")?r=!1:e.startsWith("--")?(r=!1,o=!0):i.startsWith("-")&&e.length===i.length?r=!1:"-"===e[0]&&(r=!0);var c=r?1:0;return o&&(c=2),c&&(e=e.substring(c),t-=c,n-=c),{value:e,start:t,end:n,hasNegation:r}},y=v(e,l,f),b=y.hasNegation;e=(r=y).value,l=r.start,f=r.end;var w=v(t.lastValue,s.start,s.end),O=w.start,x=w.end,k=w.value,S=e.substring(l,f);!(e.length&&k.length&&(O>k.length-i.length||x<a.length))||S&&i.startsWith(S)||(e=k);var P=0;e.startsWith(a)?P+=a.length:l<a.length&&(P=l),f-=P;var j=(e=e.substring(P)).length,_=e.length-i.length;e.endsWith(i)?j=_:(f>_||f>e.length-i.length)&&(j=f),e=e.substring(0,j);var E=(e=((e=function(e,t){void 0===e&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),a=r.test(e);return e=e.replace(/-/g,""),o&&!a&&t&&(e="-"+e),e}(b?"-"+e:e,o)).match(function(e,t){return new RegExp("(^-)|[0-9]|"+Cp(e),t?"g":void 0)}(h,!0))||[]).join("")).indexOf(h),C=Tp(e=e.replace(new RegExp(Cp(h),"g"),(function(e,t){return t===E?".":""})),o),T=C.beforeDecimal,D=C.afterDecimal,R=C.addNegation;return u.end-u.start<s.end-s.start&&""===T&&m&&!parseFloat(D)&&(e=R?"-":""),e}function qp(e){var t=(e=function(e){var t=Yp(e),n=t.thousandSeparator,r=t.decimalSeparator,o=e.prefix;void 0===o&&(o="");var a=e.allowNegative;if(void 0===a&&(a=!0),n===r)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+n+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+r+" (default value for decimalSeparator is .)\n ");return o.startsWith("-")&&a&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+o+"\n allowNegative: "+a+"\n "),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}(e)).decimalSeparator;void 0===t&&(t=".");e.allowedDecimalSeparators,e.thousandsGroupStyle,e.suffix;var n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;void 0===o&&(o=Pp);var a=e.onBlur;void 0===a&&(a=Pp);var i=e.thousandSeparator,c=e.decimalScale,s=e.fixedDecimalScale,u=e.prefix;void 0===u&&(u="");var l=e.defaultValue,f=e.value,p=e.valueIsNumericString,d=e.onValueChange,h=Sp(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=function(t){return zp(t,e)},g=function(t,n){return Vp(t,n,e)},v=p;_p(f)?_p(l)||(v=null!=p?p:"number"==typeof l):v=null!=p?p:"number"==typeof f;var y=function(e){return _p(e)||Ep(e)?e:("number"==typeof e&&(e=Mp(e)),v&&"number"==typeof c?Ip(e,c,Boolean(s)):e)},b=Up(y(f),y(l),Boolean(v),m,g,d),w=b[0],O=w.numAsString,x=w.formattedValue,k=b[1];return Object.assign(Object.assign({},h),{value:x,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===t||jp(e)},onValueChange:k,format:m,removeFormatting:g,getCaretBoundary:function(t){return function(e,t){var n=t.prefix;void 0===n&&(n="");var r=t.suffix;void 0===r&&(r="");var o=Array.from({length:e.length+1}).map((function(){return!0})),a="-"===e[0];o.fill(!1,0,n.length+(a?1:0));var i=e.length;return o.fill(!1,i-r.length+1,i+1),o}(t,e)},onKeyDown:function(t){var r=t.target,a=t.key,l=r.selectionStart,f=r.selectionEnd,p=r.value;if(void 0===p&&(p=""),l===f){"Backspace"===a&&"-"===p[0]&&l===u.length+1&&n&&Ap(r,1);var d=Yp(e),h=d.decimalSeparator,m=d.allowedDecimalSeparators;"Backspace"===a&&p[l-1]===h&&c&&s&&(Ap(r,l-1),t.preventDefault()),(null==m?void 0:m.includes(a))&&p[l]===h&&Ap(r,l+1);var g=!0===i?",":i;"Backspace"===a&&p[l-1]===g&&Ap(r,l-1),"Delete"===a&&p[l]===g&&Ap(r,l+1),o(t)}else o(t)},onBlur:function(t){var n=O;if(n.match(/\d/g)||(n=""),r||(n=function(e){if(!e)return e;var t="-"===e[0];t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",o=n[1]||"";return(t?"-":"")+r+(o?"."+o:"")}(n)),s&&c&&(n=Ip(n,c,s)),n!==O){var o=zp(n,e);k({formattedValue:o,value:n,floatValue:parseFloat(n)},{event:t,source:wp.event})}a(t)}})}function Gp(e){var t=qp(e);return O().createElement(Wp,Object.assign({},t))}!function(e){e.event="event",e.props="prop"}(wp||(wp={}));var Kp,Xp=["immutable"];function $p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Qp=(0,x.ZP)((function(e){e.immutable;var t=Ye()(e,Xp);return(0,_e.jsx)(Gp,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$p(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t))})).withConfig({displayName:"StyledNumberEdit"})(Kp||(Kp=b()(["\n &&&& {\n ","\n }\n"])),dt);function Jp(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 ed(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Jp(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var td=function(e){return 0!==e?Math.ceil(Math.log10(Math.abs(e)+1)):1},nd=function(e){return null!=e&&!isNaN(parseFloat(e))},rd=function(e,t,n){return!nd(n)||!(nd(t)&&n>t)&&!(nd(e)&&n<e)},od=function(e,t){return function(n){var r=n.floatValue;return td(r)<td(e)||rd(e,t,r)}};const ad=(0,f.ZP)(He.Z.Debouncer((function(e){var t,n=(t=e.intl.locale,{thousandSeparator:1111..toLocaleString(t).replace(/1/g,""),decimalSeparator:1.1.toLocaleString(t).replace(/1/g,"")}),r=n.thousandSeparator,o=n.decimalSeparator,a=e.options||{},i=a.prePointDigits,c=a.postPointDigits,s=a.minValue,u=a.maxValue,l=a.allowNegative,f=a.fixedDecimalScale,p=a.suffix,d=a.prefix,h=a.format,m=function(e,t,n){if(e){var r=Math.pow(10,e)-(t?1/Math.pow(10,t):1);return n&&n>r?n:r}return n}(i,c,u),g=ed(ed({isAllowed:od(s,m),allowNegative:!!l},isNaN(c)?{}:{decimalScale:c}),{},{fixedDecimalScale:!!f});return(0,_e.jsx)(pt,{immutable:e.immutable,children:(0,_e.jsx)(Qp,ed(ed({decimalSeparator:o,disabled:e.immutable,id:e.id,valueIsNumericString:!0,name:e.name,onValueChange:function(t){e.onChange&&rd(s,m,t.floatValue)&&e.onChange(void 0!==t.floatValue?t.floatValue:null)},immutable:e.immutable,thousandSeparator:r,value:e.value,suffix:p,prefix:d},g),{},{format:h,placeholder:e.placeholder,onBlur:function(t){var n,r=!(n=t.target.value)||isNaN(n)?null:parseFloat(n);e.onChange&&!rd(s,m,r)&&(t.target.value=null)}}))})}),800));const id=He.Z.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.options,o=e.immutable,a=e.name,i=e.id,c=e.placeholder,s=r||{},u=s.minValue,l=s.maxValue,f=s.format,p=s.allowLeadingZeros,d=s.suffix;return(0,_e.jsx)(pt,{immutable:o,children:(0,_e.jsx)(Qp,{isAllowed:od(u,l),allowNegative:!0,decimalScale:0,disabled:o,id:i,name:a,onValueChange:function(e){var t=e.value,r=e.floatValue,o=p?t:r;void 0===o&&(o=null),rd(u,l,r)&&n(o)},value:t,allowLeadingZeros:p,suffix:d,format:f,placeholder:c})})}),800);var cd,sd,ud,ld=x.ZP.div.withConfig({displayName:"StyledWrapper"})(cd||(cd=b()(["\n display: flex;\n justify-content: stretch;\n"]))),fd=x.ZP.div.withConfig({displayName:"StyledLocationWrapper"})(sd||(sd=b()(["\n flex-grow: 1;\n"]))),pd=x.ZP.div.withConfig({displayName:"StyledDistanceWrapper"})(ud||(ud=b()(["\n width: 50px;\n border-left: 1px solid ",";\n margin-left: ",";\n padding-left: ",";\n"])),xe.FS.color("border"),qe.Z.space(-.8),qe.Z.space(.5));function dd(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 hd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dd(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const md=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.onChange,a=e.options,i=void 0===a?{}:a,c=i.suggestions,s=i.isLoading,u=i.fetchSuggestions,l=i.latitudeField,f=i.longitudeField,p=i.emptySearchText,d=i.noResultsText,h=i.kmSuffixText,m=r?r.distance:0,g=function(e){return null!=e&&e.latitude&&null!=e&&e.longitude?gp()(e,Op):void 0}(r),v=function(e){return e?e.map(kp):[]}(c);return(0,_e.jsxs)(ld,{children:[(0,_e.jsx)(fd,{children:(0,_e.jsx)(ti,{id:t,immutable:n,onChange:function(e){o(hd(hd({},function(e,t){return t?yp(yp({},e),gp()(t,Op)):Hr()(e,Op)}(r,e)),{},{latitudeField:l,longitudeField:f}))},isLoading:s,options:v,searchOptions:function(e){var t=function(e){if(!e)return null;var t=we()(e.matchAll(bp(/([\d]*)([^\d\s]*)/g,{postcode:1,city:2}))).map((function(e){return e.groups})),n=t.find((function(e){return e.postcode})),r=t.find((function(e){return e.city}));return yp(yp({},r?{city:r.city}:{}),n?{postcode:n.postcode}:{})}(e);u(t,null)},fetchOptions:function(e){e||u(null,null)},value:g,noResultsComp:function(e){return e.inputValue?d:p}})}),(0,_e.jsx)(pd,{children:(0,_e.jsx)(id,{value:m,onChange:function(e){o(hd(hd({},r),{},{distance:e}))},immutable:n,options:{minValue:0,maxValue:100,suffix:" ".concat(h)}})})]})};var gd,vd=(0,w.lazy)((function(){return i.e(85).then(i.bind(i,17676))})),yd=function(e){var t=e.onChange,n=e.immutable,r=e.value,o=e.options;if(n)return(0,_e.jsx)(et.ZP.Span,{children:(0,_e.jsx)("div",{dangerouslySetInnerHTML:{__html:r}})});var a=o||{},i=a.contentLang,c=a.ckEditorConfig;return(0,_e.jsx)(w.Suspense,{fallback:gd||(gd=(0,_e.jsx)("i",{})),children:(0,_e.jsx)(vd,{onChange:function(e){t&&t(e)},value:r,contentLang:i,ckEditorConfig:c})})};yd.defaultProps={value:""};const bd=yd;var wd,Od,xd,kd=i(58808),Sd=i.n(kd),Pd=x.ZP.div.withConfig({displayName:"StyledLocationEdit"})(wd||(wd=b()(["\n && {\n ","\n position: relative;\n\n div {\n :nth-of-type(1) {\n flex: 0 0 13ch;\n margin-right: ",";\n }\n\n :nth-of-type(2) {\n flex: 1 1 auto;\n }\n }\n\n > span {\n flex: 0 0 auto;\n margin-right: ",";\n color: ",";\n }\n\n .react-autosuggest__input {\n ","\n width: 100%;\n }\n\n .react-autosuggest__suggestions-container--open {\n width: calc(100% + 17.5px);\n background-color: ",";\n box-shadow: 0 0 6px ",";\n border: 1px solid ",";\n bottom: -9px;\n left: -10px;\n max-height: 300px;\n overflow-y: auto;\n position: absolute;\n transform: translateY(100%);\n z-index: 2; // higher than StyledIndicatorsContainerWrapper\n }\n\n .react-autosuggest__suggestions-list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n\n .react-autosuggest__suggestion {\n cursor: pointer;\n padding: 8px 12px;\n }\n\n .react-autosuggest__suggestion--highlighted {\n background-color: ",";\n }\n }\n"])),ft,qe.Z.space(-2),qe.Z.space(-2),(function(e){var t=e.immutable,n=e.theme;return t?Aa()(n,"colors.textDisabled"):Aa()(n,"colors.text")}),dt,xe.FS.color("paper"),xe.FS.color("signal.info"),xe.FS.color("secondaryLight"),xe.FS.color("backgroundItemHover"));function jd(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 _d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jd(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Ed=function(e){var t=e.onChange,r=e.options,o=e.value,a=e.id,i=e.immutable,c=e.name,s=function(e){return function(t){return t[e]}},u=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,a=t?"- ".concat(t):"",i=n?"/ ".concat(n.display):"";return(0,_e.jsxs)(et.ZP.Span,{children:[r," ",o," ",a," ",i]})},l=function(e){return function(r,a){var i=a.newValue;t(_d(_d({},o),{},n()({},e,i)))}},f=function(e,n){var r=n.suggestion;t(r)},p=function(e){return function(t){var o=t.value;r.fetchSuggestions(n()({},e,o),r.locationValues.country)}},d={id:a,value:o.postcode||"",onChange:l("postcode"),disabled:i},h={value:o.city||"",onChange:l("city"),disabled:i};return(0,_e.jsx)(fe,{children:function(e){var t,n,a,l=e.focused,m=e.getRef;return(0,_e.jsxs)(Pd,{immutable:i,name:c,ref:m,children:[(0,_e.jsx)(Sd(),{suggestions:r.suggestions||[],onSuggestionsFetchRequested:p("postcode"),getSuggestionValue:s("postcode"),renderSuggestion:u,onSuggestionsClearRequested:function(){},inputProps:d,onSuggestionSelected:f,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!i}}),(l||o.city||o.postcode)&&(Od||(Od=(0,_e.jsx)(et.ZP.Span,{children:"/"}))),(0,_e.jsx)(Sd(),{suggestions:r.suggestions||[],onSuggestionsFetchRequested:p("city"),getSuggestionValue:s("city"),renderSuggestion:u,onSuggestionsClearRequested:function(){},inputProps:h,onSuggestionSelected:f,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!i}}),(0,_e.jsxs)(mt,{children:[r.isLoading&&(xd||(xd=(0,_e.jsx)(Pa.Z,{size:"1.8rem"}))),(a=r.locationValues,Boolean(a.city||a.postcode)&&(0,_e.jsx)(Wf.Z,{href:(t=r.locationValues,n=t?Object.values(t).filter(Boolean).map((function(e){return"object"===lp()(e)&&e.display?e.display:e})).join("+"):"","".concat("https://www.google.com/maps/search/?api=1&query=").concat(n)),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:r.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};function Cd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Td=function(e){return(0,_e.jsx)(ti,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Cd(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({id:e.id,isMulti:!0,immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function Dd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Rd=function(e){return(0,_e.jsx)(ti,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Dd(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({id:e.id,isMulti:!0,immutable:e.immutable,onChange:e.onChange,value:e.value,openMenuOnClick:!0},e.options))};var Md;const Id=x.ZP.input.attrs((function(e){return{type:"tel"}})).withConfig({displayName:"StyledPhoneEdit"})(Md||(Md=b()(["\n &&&& {\n ","\n }\n"])),dt);const Ad=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,a=e.onLibLoaded,c=Aa()(e,"options.defaultCountry")||"CH",s=(0,w.useState)(null),u=H()(s,2),l=u[0],f=u[1],p=O().createRef();(0,w.useEffect)((function(){(function(){var e=F()(W().mark((function e(){var t;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([i.e(631),i.e(877)]).then(i.bind(i,41866));case 2:t=e.sent,f(t),a&&a();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[a]);var d=function(e,t){var n=e.substring(0,t-1).match(/\s/g);return(null==n?void 0:n.length)||0},h=n&&null!=l&&l.AsYouType?new l.AsYouType(c).input(n):n||"";return(0,_e.jsxs)(pt,{immutable:r,children:[(0,_e.jsx)(Id,{disabled:r||!l,id:o,name,onChange:function(e){var r=e.target.value,o=l?l.parseNumber(r,c):r,a=Wr()(o)?new l.AsYouType(c).input(r).replace(/\s/g,""):l.formatNumber(o,"E.164");t(a);var i=e.target.selectionStart;!function(e,t,n){if(n&&e.length!==n){var r=new l.AsYouType(c).input(t),o=new l.AsYouType(c).input(e),a=d(r,n),i=d(o,n)-a;window.requestAnimationFrame(function(){var e=n+i;this.setSelectionRange(e,e)}.bind(p.current))}}(r,n,i)},immutable:r||!l,ref:p,value:h}),h&&(0,_e.jsx)(mt,{children:(0,_e.jsx)(Wf.Z,{href:"tel:".concat(n),icon:"phone",tabIndex:-1,target:"_blank",neutral:!0})})]})};function Nd(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 Zd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Nd(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ld=function(e){return e.map((function(e){return gp()(e,["key","display"])}))};const Fd=function(e){var t=e.id,n=e.immutable,r=e.onChange,o=e.options.isMulti,a=e.value;return(0,_e.jsx)(ti,{id:t,immutable:n,isMulti:o,onChange:function(e){var t=o?e.map((function(e){return e.key})):[null==e?void 0:e.key],n=a.options.map((function(e){return Zd(Zd({},e),t.includes(e.key)?{selected:!0}:{selected:!1})}));r({options:n})},value:Ld(a.options.filter((function(e){return e.selected}))),openMenuOnClick:!0,options:Ld(a.options)})};function Ud(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Hd=function(e){return(0,_e.jsx)(ti,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ud(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ud(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({id:e.id,isMulti:!1,immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Wd=function(e){return(0,_e.jsx)(ti,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bd(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function zd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Yd=function(e){return(0,_e.jsx)(ti,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zd(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({id:e.id,immutable:e.immutable,isMulti:!1,onChange:e.onChange,value:e.value,openMenuOnClick:!0},e.options))};const Vd=He.Z.Debouncer((function(e){return(0,_e.jsx)(pt,{immutable:e.immutable,children:(0,_e.jsx)(cp,{disabled:e.immutable,id:e.id,name:e.name,onChange:function(t){return e.onChange(t.target.value)},immutable:e.immutable,value:e.value||""})})}));const qd=function(){var e,t=(null===(e=navigator)||void 0===e?void 0:e.userAgent)||"";return/^((?!chrome|android).)*safari/i.test(t)};var Gd,Kd,Xd,$d=(0,x.iv)(Gd||(Gd=b()(["\n ","\n width: 100%;\n grid-area: 1 / 1 / 2 / 2;\n max-height: 25rem;\n box-sizing: border-box;\n"])),dt),Qd=x.ZP.div.withConfig({displayName:"StyledSizeWrapper"})(Kd||(Kd=b()(["\n display: grid;\n width: 100%;\n\n &:after {\n content: attr(data-replicated-value) ' ';\n white-space: pre-wrap;\n word-break: break-all;\n visibility: hidden;\n ","\n\n /* prevent scrollbar on Firefox */\n padding-right: 15px;\n }\n"])),$d),Jd=x.ZP.textarea.withConfig({displayName:"StyledTextarea"})(Xd||(Xd=b()(["\n &&&& {\n ","\n resize: none;\n margin: 0;\n min-height: 4em;\n }\n"])),$d);function eh(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 th(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eh(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const nh=function(e){var t=e.value,n=e.onChange,r=e.name,o=e.id,a=e.disabled,i=e.immutable,c=(0,w.useState)(t),s=H()(c,2),u=s[0],l=s[1],f=!qd(),p=(0,w.useCallback)(qr()(l,500,{trailing:!0}),[]);return(0,w.useEffect)((function(){f&&p(t)}),[t,f,p]),(0,_e.jsx)(Qd,th(th({"data-testid":"replicated-test"},f?{"data-replicated-value":u}:{}),{},{children:(0,_e.jsx)(Jd,{value:t,name:r,id:o,onChange:n,disabled:a,immutable:i,rows:"1"})}))};const rh=He.Z.Debouncer((function(e){return(0,_e.jsx)(pt,{immutable:e.immutable,children:(0,_e.jsx)(nh,{id:e.id,immutable:e.immutable,maxRows:20,name:e.name,onChange:function(t){return e.onChange(t.target.value)},disabled:e.immutable,rows:2,value:e.value})})}));var oh;const ah=x.ZP.input.withConfig({displayName:"StyledTimeEdit"})(oh||(oh=b()(["\n &&&& {\n ","\n }\n"])),dt);function ih(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 ch(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ih(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ih(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const sh=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,a=e.name,i=Nu(n,t),c=i.inputProps,s=i.clearButtonProps,u=n&&!r;return(0,_e.jsxs)(pt,{immutable:r,children:[(0,_e.jsx)(ah,ch({type:"text",disabled:r,id:o,immutable:r,name:a},c)),u&&(0,_e.jsx)(mt,{children:(0,_e.jsx)(ia.Z,ch(ch({icon:"times"},s),{},{tabIndex:-1}))})]})};var uh;const lh=x.ZP.input.attrs((function(e){return{type:"url"}})).withConfig({displayName:"StyledUrlEdit"})(uh||(uh=b()(["\n &&&& {\n ","\n }\n"])),dt);const fh=He.Z.Debouncer((function(e){return(0,_e.jsxs)(pt,{immutable:e.immutable,children:[(0,_e.jsx)(lh,{disabled:e.immutable,id:e.id,immutable:e.immutable,name:e.name,onChange:function(t){return e.onChange((n=t.target.value,r=/^[a-zA-Z0-9]+:\/\//.test(n),n.indexOf(".")>0&&!r?"https://".concat(n):n));var n,r},value:e.value}),e.value&&(0,_e.jsx)(mt,{children:(0,_e.jsx)(Wf.Z,{href:e.value,icon:"external-link",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));function ph(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 dh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ph(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ph(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var hh={boolean:ai,"boolean-select":ni,choice:mi,code:Si,date:Yu,datetime:qu,document:Qf,duration:ap,email:sp,geosearch:md,html:bd,integer:id,location:Ed,"multi-remote":Td,"multi-select":Rd,number:ad,phone:Ad,"pseudo-select":Fd,remote:Hd,"search-filter":Wd,"single-select":Yd,string:Vd,text:rh,url:fh,time:sh};const mh=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.id,a=e.events,i=e.placeholder,c=e.readOnly,s=void 0!==c&&c;if(hh[t]){var u=hh[t],l=dh(dh({},Hr()(a,"onChange")),{},{onBlur:function(){"function"==typeof(null==a?void 0:a.onBlur)&&a.onBlur(n)}});return(0,_e.jsx)("div",dh(dh({},l),{},{"data-cy":"form-field",children:(0,_e.jsx)(u,dh(dh({value:n,onChange:null==a?void 0:a.onChange},Wr()(r)?{}:{options:r}),{},{id:o,immutable:s,placeholder:i,events:a}))}))}return console.log("No type-editor defined for component type",t),null};function gh(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 vh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gh(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const yh=function(e){return(0,_e.jsx)(gt,{children:(0,_e.jsx)(mh,vh({componentType:e.type},Hr()(e,"type")))})};var bh,wh,Oh=x.ZP.div.withConfig({displayName:"StyledLoginFormInputWrapper"})(bh||(bh=b()(["\n && {\n ","\n }\n"])),ft);const xh=function(e){var t=e.verifyCode,n=e.intl,r=(0,w.useState)(null),o=H()(r,2),a=o[0],i=o[1],c=function(e){return n.formatMessage({id:e})},s=a&&a.toString().length>=6,u=function(e){e&&(e.preventDefault(),e.stopPropagation()),s&&t(a)};return(0,Gn.z)(u),(0,_e.jsxs)(_e.Fragment,{children:[wh||(wh=(0,_e.jsx)(et.ZP.P,{children:(0,_e.jsx)(Je.Z,{id:"client.two-factor-connector.verificationText"})})),(0,_e.jsxs)("form",{onSubmit:u,children:[(0,_e.jsx)(Ue,{hasValue:Boolean(a),id:"verification-input",label:c("client.two-factor-connector.verificationInputLabel"),children:(0,_e.jsx)(Oh,{children:(0,_e.jsx)(yh,{type:"integer",value:a,events:{onChange:i},options:{format:"### ###",allowLeadingZeros:!0}})})}),(0,_e.jsx)(Kn,{children:(0,_e.jsx)(Ve.Z,{label:c("client.two-factor-connector.okButton"),ink:"primary",look:"raised",type:"submit",disabled:!s})})]})]})};var kh={verifyCode:function(e){return{type:Ln,payload:{userCode:e}}}};const Sh=(0,p.connect)((function(e,t){return{}}),kh)((0,f.ZP)(xh));var Ph,jh,_h,Eh,Ch,Th,Dh=0,Rh=1,Mh=2,Ih=3;const Ah=function(e){var t=e.initialize,n=e.stage;(0,w.useEffect)((function(){t()}),[t]);return(0,_e.jsxs)(_e.Fragment,{children:[Th||(Th=(0,_e.jsx)(Cn.Z.Notifications,{})),function(){switch(n){case Dh:return Ph||(Ph=(0,_e.jsx)(Fr,{}));case Rh:return jh||(jh=(0,_e.jsx)(Ar,{}));case Mh:return _h||(_h=(0,_e.jsx)(Sh,{}));case Ih:return Eh||(Eh=(0,_e.jsx)(tr,{}));default:return Ch||(Ch=(0,_e.jsx)(en.Z,{}))}}()]})};var Nh={initialize:Bn};const Zh=(0,p.connect)((function(e){return{stage:e.twoFactorConnector.stage}}),Nh)((0,f.ZP)(Ah));var Lh,Fh=i(81770);function Uh(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 Hh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Uh(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Bh=function(e){return function(t){return Hh(Hh({},t),{},{stage:e})}},Wh=(Lh={},n()(Lh,Dn,Fh.Z.singleTransferReducer("twoFactorActive")),n()(Lh,Rn,Fh.Z.singleTransferReducer("secret")),n()(Lh,Mn,Fh.Z.singleTransferReducer("username")),n()(Lh,Un,Fh.Z.singleTransferReducer("setupSuccessful")),n()(Lh,Nn,Bh(0)),n()(Lh,Zn,Bh(1)),n()(Lh,An,Bh(2)),n()(Lh,Hn,Bh(3)),Lh),zh={stage:null,twoFactorActive:null,secret:null,username:null,setupSuccessful:null};var Yh=i(34857),Vh=i(81719),qh=i(54159),Gh=W().mark(cm),Kh=W().mark(um),Xh=W().mark(lm),$h=W().mark(pm),Qh=W().mark(dm),Jh=W().mark(hm),em=W().mark(mm),tm=W().mark(gm),nm=W().mark(vm),rm="relTwo_step_login_status",om=function(e){return e.twoFactorConnector.username},am=function(e){return e.twoFactorConnector.secret},im=function(e){return e.input};function cm(){var e,t,n,r,o,a;return W().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,Yh.Ys)(im);case 2:if(e=i.sent,e.secret){i.next=14;break}return i.next=7,(0,Yh.Ys)(om);case 7:return t=i.sent,i.next=10,(0,Yh.RE)(Vh.Z.requestSaga,"principals/".concat(t,"/two-factor"),{method:"GET"});case 10:return n=i.sent,r=n.body,o=r.secret,a=r.totpUri,i.next=14,(0,Yh.gz)(zn({secret:o,uri:a}));case 14:return i.next=16,(0,Yh.gz)({type:Zn});case 16:case"end":return i.stop()}}),Gh)}function sm(e,t){return qh.Z.executeRequest(e,t).then(qh.Z.extractBody)}function um(e,t,n,r){var o,a;return W().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o={secret:e,userCode:t,username:n,password:r},i.next=3,(0,Yh.RE)(sm,"login",{method:"POST",headers:new Headers({"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"}),body:Object.keys(o).filter((function(e){return!!o[e]})).sort().map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(o[e]))})).join("&")});case 3:return a=i.sent,i.next=6,(0,Yh.gz)(qn(Aa()(a,"TWOSTEPLOGIN_ACTIVATION.success",!1)));case 6:case"end":return i.stop()}}),Kh)}function lm(e,t,n){var r;return W().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,Yh.RE)(Vh.Z.requestSaga,"principals/".concat(e,"/two-factor"),{method:"POST",body:{secret:t,code:n},acceptedStatusCodes:[400]});case 2:return r=o.sent,o.next=5,(0,Yh.gz)(qn(204===r.status));case 5:case"end":return o.stop()}}),Xh)}function fm(e){var t=e.payload.userCode;return W().mark((function e(){var n,r,o,a,i;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Yh.Ys)(om);case 2:return n=e.sent,e.next=5,(0,Yh.Ys)(am);case 5:return r=e.sent,o=r.secret,e.next=9,(0,Yh.Ys)(im);case 9:if(a=e.sent,i=a.password,!a.forced){e.next=17;break}return e.next=15,(0,Yh.RE)(um,o,t,n,i);case 15:e.next=19;break;case 17:return e.next=19,(0,Yh.RE)(lm,n,o,t);case 19:return e.next=21,(0,Yh.gz)({type:Hn});case 21:case"end":return e.stop()}}),e)}))()}function pm(){var e,t;return W().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Yh.RE)(hm);case 2:return n.next=4,(0,Yh.Ys)(im);case 4:if(e=n.sent,!(t=e.secret)){n.next=9;break}return n.next=9,(0,Yh.gz)(zn(t));case 9:return n.next=11,(0,Yh.gz)(Vn());case 11:case"end":return n.stop()}}),$h)}function dm(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Yh.gz)(s.Z.fireExternalEvent("onSuccess"));case 2:case"end":return e.stop()}}),Qh)}function hm(){var e,t,n,r,o;return W().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,Yh.RE)(mm);case 2:return e=a.sent,a.next=5,(0,Yh.gz)(Yn(e));case 5:return t='username === "'.concat(e,'"'),a.next=8,(0,Yh.RE)(Vh.Z.fetchEntitiesPage,"Principal",{where:t,paths:[rm]});case 8:if(!((n=a.sent).length>1)){a.next=11;break}throw new Error("More than one user found for username ".concat(e));case 11:return r=Aa()(n,"[0].paths.".concat(rm,".value.key")),o="1"===r,a.next=15,(0,Yh.gz)(Wn(o));case 15:case"end":return a.stop()}}),Jh)}function mm(){var e,t,n;return W().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,Yh.Ys)(im);case 2:if(e=r.sent,!(t=e.username)){r.next=8;break}return r.abrupt("return",t);case 8:return r.next=10,(0,Yh.RE)(Vh.Z.requestSaga,"principals");case 10:return n=r.sent,r.abrupt("return",n.body.username);case 12:case"end":return r.stop()}}),em)}function gm(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Yh.gz)(s.Z.fireExternalEvent("onResize"));case 2:case"end":return e.stop()}}),tm)}function vm(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Yh.$6)([(0,Yh.Fm)(In,cm),(0,Yh.Fm)(Ln,fm),(0,Yh.Fm)(Tn,pm),(0,Yh.Fm)(Fn,dm),(0,Yh.Fm)(Nn,gm),(0,Yh.Fm)(Zn,gm),(0,Yh.Fm)(An,gm),(0,Yh.Fm)(Hn,gm)]);case 2:case"end":return e.stop()}}),nm)}const ym={twoFactorConnector:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zh,t=arguments.length>1?arguments[1]:void 0,n=Wh[t.type];return n?n(e,t):e}};var bm,wm=[vm];function Om(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 xm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Om(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Om(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var km="two-factor-connector",Sm=function(t,n,r,o){var i=bm||(bm=(0,_e.jsx)(Zh,{})),c=e.Z.createStore(ym,wm,n,km);return Cn.Z.addToStore(c,!0),a.Z.addToStore(c,!0,["console","remote","notification"]),s.Z.addToStore(c,(function(t){return e.Z.getEvents(Pm,t.input)})),e.Z.createApp(km,i,c,{input:n,events:r,actions:[],publicPath:o,textResourceModules:["component","common",km]})},Pm=["onSuccess","onCancel","onResize"],jm=function(t){return e.Z.useApp({initApp:Sm,props:t,packageName:km,externalEvents:Pm}).component};jm.propTypes=xm(xm({},Pm.reduce((function(e,t){return xm(xm({},e),{},n()({},t,o().func))}),{})),{},{username:o().string,password:o().string,secret:o().shape({secret:o().string.isRequired,uri:o().string.isRequired}),forced:o().bool});const _m=jm;var Em;e.Z.createBundleableApp(km,Sm,jm);const Cm=function(e){var t=e.locale,n=e.username,r=e.password,o=e.secret,a=e.showTitle,i=e.changePage;return(0,_e.jsxs)("div",{children:[a&&(Em||(Em=(0,_e.jsx)(tt,{title:"client.login.form.title"}))),(0,_e.jsx)(_m,{locale:t,username:n,password:r,secret:o,forced:!0,onSuccess:function(){i(S)}})]})};var Tm={changePage:A};const Dm=(0,p.connect)((function(e){return{username:e.login.username,password:e.login.password,secret:e.twoStepLogin.secret,locale:e.intl.locale}}),Tm)(Cm);var Rm,Mm,Im,Am=x.ZP.div.withConfig({displayName:"StyledTwoStepLogin"})(Rm||(Rm=b()(["\n "," {\n width: 100%;\n }\n\n "," {\n ","\n padding-top: .7rem;\n padding-bottom: 0.7rem;\n }\n"])),vt.Z,gt,dt);const Nm=function(e){var t=e.username,n=e.password,r=e.showTitle,o=e.loginPending,a=e.login,i=e.intl,c=(0,w.useState)(null),s=H()(c,2),u=s[0],l=s[1],f=(0,w.useRef)();(0,w.useLayoutEffect)((function(){f.current.querySelector("input").focus()}),[]);var p=function(e){return i.formatMessage({id:e})};return(0,_e.jsxs)(Am,{children:[r&&(Mm||(Mm=(0,_e.jsx)(tt,{title:"client.login.form.title"}))),(0,_e.jsxs)("form",{onSubmit:function(e){e.preventDefault(),a(t,n,null,u)},ref:f,children:[Im||(Im=(0,_e.jsx)(et.ZP.P,{children:(0,_e.jsx)(Je.Z,{id:"client.login.twoStepLogin.introduction"})})),(0,_e.jsx)(Ue,{hasValue:!!u,id:"twoFactorCode-label",label:p("client.login.twoStepLogin.codePlaceholder"),children:(0,_e.jsx)(Pt,{children:(0,_e.jsx)(yh,{type:"integer",value:u,events:{onChange:l},options:{format:"### ###",allowLeadingZeros:!0}})})}),(0,_e.jsx)(Qe,{disabled:!u||u.toString().length<6||o,label:p("client.login.form.button"),pending:o})]})]})};var Zm={login:v};const Lm=(0,p.connect)((function(e){return{username:e.login.username,password:e.login.password,loginPending:e.loginForm.loginPending}}),Zm)((0,f.ZP)(Nm));var Fm;function Um(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 Hm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Um(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Um(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Bm=function(e){var t=e.intl,n=e.checkUsername,r=e.loginPending,o=e.message,a=e.setUsername,i=e.showTitle,c=e.username,s=nt(a),u=H()(s,2),l=u[0],f=u[1],p=function(e){return t.formatMessage({id:e})},d=(0,w.useCallback)(function(){var e=F()(W().mark((function e(t){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t&&t.preventDefault(),n(c);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[n,c]);return(0,_e.jsxs)(_t,{children:[i&&(Fm||(Fm=(0,_e.jsx)(tt,{title:"client.login.form.title",subtitle:"client.login.form.introduction"}))),(0,_e.jsxs)("form",{onSubmit:d,children:[(0,_e.jsx)(Ue,{hasValue:!!c||l,id:"login-username",label:p("client.login.form.userEmailPlaceholder"),children:(0,_e.jsx)(Pt,{children:(0,_e.jsx)(St,Hm({autoFocus:!0,name:"user",required:!0,type:"text",value:c,onFocus:function(e){return e.target.select()}},f))})}),(0,_e.jsx)(Be,{message:o}),(0,_e.jsx)(Qe,{disabled:!l&&(r||""===c),label:p("client.login.form.next"),pending:r})]})]})};var Wm={setUsername:N,checkUsername:function(e){return{type:g,payload:{username:e}}}};const zm=(0,p.connect)((function(e){return{username:e.login.username,message:e.loginForm.message,loginPending:e.loginForm.loginPending}}),Wm)((0,f.ZP)(Bm));var Ym,Vm,qm,Gm=(0,x.vJ)(Ym||(Ym=b()(["\n .grecaptcha-badge {\n z-index: 9999999;\n opacity: .8;\n }\n"])));const Km=function(e){var t,n,r,o,a,i=e.initialize,c=e.showTitle,s=e.currentPage;return(0,w.useEffect)((function(){i()}),[i]),(0,_e.jsxs)(_e.Fragment,{children:[Vm||(Vm=(0,_e.jsx)(Gm,{})),function(){switch(s){case _:return t||(t=(0,_e.jsx)(xn,{showTitle:c}));case P:return n||(n=(0,_e.jsx)(Zt,{showTitle:c}));case j:return r||(r=(0,_e.jsx)(Lm,{showTitle:c}));case E:return qm||(qm=(0,_e.jsx)(Dm,{}));case k:return o||(o=(0,_e.jsx)(zm,{showTitle:c}));default:return a||(a=(0,_e.jsx)(Rt,{showTitle:c}))}}()]})};var Xm={initialize:function(){return{type:d}}};const $m=(0,p.connect)((function(e,t){return{currentPage:t.currentPage||e.login.currentPage,showTitle:t.showTitle}}),Xm)((0,f.ZP)(Km));var Qm,Jm="PasswordUpdateDialog/SET_SHOW_OLD_PASSWORD",eg="PasswordUpdateDialog/SET_STANDALONE",tg="PasswordUpdateDialog/SET_FORCED_UPDATE",ng="PasswordUpdateDialog/SET_USERNAME_OR_PK",rg="PasswordUpdateDialog/SET_CURRENT_USERNAME",og=function(e){return{type:Jm,payload:{showOldPasswordField:e}}},ag=function(e){return{type:tg,payload:{forcedUpdate:e}}},ig=function(e){return{type:ng,payload:{usernameOrPk:e}}},cg=i(15857),sg=(Qm={},n()(Qm,T,Fh.Z.singleTransferReducer("entryPage")),n()(Qm,C,Fh.Z.singleTransferReducer("currentPage")),n()(Qm,D,Fh.Z.singleTransferReducer("username")),n()(Qm,R,Fh.Z.singleTransferReducer("password")),n()(Qm,M,Fh.Z.singleTransferReducer("captchaKey")),Qm),ug={entryPage:void 0,currentPage:void 0,username:"",password:"",captchaKey:null};const lg=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ug,t=arguments.length>1?arguments[1]:void 0,n=sg[t.type];return n?n(e,t):e};var fg,pg="loginForm/SET_MESSAGE",dg="loginForm/CLEAR_MESSAGE",hg="loginForm/SET_PENDING",mg="loginForm/ACTIVATE_RECAPTCHA",gg=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{type:pg,payload:{text:e,negative:t}}},vg=function(){return{type:dg}},yg=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{type:hg,payload:{pending:e}}};function bg(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 wg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bg(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bg(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Og=(fg={},n()(fg,pg,(function(e,t){var n=t.payload,r=n.text,o=n.negative;return wg(wg({},e),{},{message:{text:r,negative:o}})})),n()(fg,dg,(function(e){return wg(wg({},e),{},{message:{}})})),n()(fg,hg,(function(e,t){var n=t.payload;return wg(wg({},e),{},{loginPending:n.pending})})),n()(fg,mg,(function(e){return wg(wg({},e),{},{recaptchaActivated:!0})})),fg),xg={message:{},loginPending:!1,recaptchaActivated:!1};const kg=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xg,t=arguments.length>1?arguments[1]:void 0,n=Og[t.type];return n?n(e,t):e};var Sg;function Pg(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 jg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pg(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pg(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var _g={showOldPasswordField:!0,forcedUpdate:!1,standalone:!0,usernameOrPk:""},Eg=function(e){return function(t,r){var o=r.payload[e];return jg(jg({},t),{},n()({},e,o))}},Cg=(Sg={},n()(Sg,Jm,Eg("showOldPasswordField")),n()(Sg,tg,Eg("forcedUpdate")),n()(Sg,eg,Eg("standalone")),n()(Sg,ng,Eg("usernameOrPk")),Sg);const Tg=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_g,t=arguments.length>1?arguments[1]:void 0,n=Cg[t.type];return n?n(e,t):e};var Dg,Rg=i(44759),Mg=W().mark(Ag),Ig=W().mark(Ng);function Ag(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Yh.$6)([(0,Yh.Fm)(rg,Ng)]);case 2:case"end":return e.stop()}}),Mg)}function Ng(){var e,t,n;return W().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e={acceptedStatusCodes:[403]},r.next=3,(0,Yh.RE)(Vh.Z.requestSaga,"principals",e);case 3:if(403!==(t=r.sent).status){r.next=8;break}Rg.Z.logError('input "username" on password-update is mandatory if no user is logged in'),r.next=11;break;case 8:return n=t.body.username,r.next=11,(0,Yh.gz)(ig(n));case 11:case"end":return r.stop()}}),Ig)}function Zg(e){return 0===Object.keys(e).length&&e.constructor===Object}function Lg(e){var t={};return e.forEach((function(e){t[e.ruleName]=e.message})),t}function Fg(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 Ug(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fg(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fg(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Hg={oldPassword:"",newPassword:"",newPasswordRepeat:"",newPasswordValidationErrors:null,passwordUpdatePending:!1,passwordUpdateFailed:!1,passwordUpdateErrorCode:null},Bg=(Dg={},n()(Dg,Ft,(function(e,t){var n=t.payload;return Ug(Ug({},e),{},{oldPassword:n.oldPassword})})),n()(Dg,Ht,(function(e,t){var n=t.payload;return Ug(Ug({},e),{},{newPassword:n.newPassword})})),n()(Dg,Bt,(function(e,t){var n=t.payload;return Ug(Ug({},e),{},{newPasswordValidationErrors:n.errors})})),n()(Dg,Wt,(function(e,t){var n=t.payload;return Ug(Ug({},e),{},{newPasswordRepeat:n.newPasswordRepeat})})),n()(Dg,zt,(function(e){return Ug(Ug({},e),{},{passwordUpdatePending:!0,passwordUpdateFailed:!1})})),n()(Dg,Yt,(function(e){return Hg})),n()(Dg,Vt,(function(e,t){var n=t.payload;if(n.validationMessages){var r=Lg(n.validationMessages);return Ug(Ug({},e),{},{passwordUpdatePending:!1,newPasswordValidationErrors:r})}return Ug(Ug({},e),{},{passwordUpdatePending:!1,passwordUpdateFailed:!0,passwordUpdateErrorCode:n.errorCode})})),n()(Dg,Gt,(function(e,t){t.payload;return Ug(Ug({},e),{},{passwordUpdateFailed:!1})})),Dg);const Wg=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Hg,t=arguments.length>1?arguments[1]:void 0,n=Bg[t.type];return n?n(e,t):e};var zg="password_update_success",Yg="password_update_failed",Vg=(i(13218),i(66604)),qg=i.n(Vg),Gg=i(17563),Kg=function(e){if("string"!=typeof e)return!1;try{var t=JSON.parse(e);return"[object Object]"===Object.prototype.toString.call(t)}catch(e){return!1}};const Xg=function(e){var t=Gg.parse(e);return qg()(t,(function(e){return Kg(e)?JSON.parse(e):e}))};var $g="login/SET_SECRET";function Qg(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 Jg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qg(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qg(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ev,tv=W().mark(Ov),nv=W().mark(xv),rv=W().mark(Sv),ov=W().mark(Pv),av=W().mark(jv),iv=W().mark(_v),cv=W().mark(Ev),sv=W().mark(Cv),uv=W().mark(Tv),lv=W().mark(Dv),fv=W().mark(Rv),pv=W().mark(Av),dv=W().mark(Nv),hv=W().mark(Zv),mv=W().mark(Lv),gv=W().mark(Fv),vv=function(e){return e.login},yv=function(e){return e.input};function bv(e){var t=e.payload;return W().mark((function e(){var n,r,o;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Yh.Ys)(vv);case 2:return n=e.sent,r=n.entryPage,e.next=6,(0,Yh.gz)(yg(!0));case 6:return e.next=8,(0,Yh.RE)(Vh.Z.requestSaga,"principals/".concat(t.username,"/password-reset"),{method:"POST"});case 8:return e.next=10,(0,Yh.gz)(N(t.username));case 10:return e.next=12,(0,Yh.gz)(A(S));case 12:return o=r===k?"client.login.from.passwordRequestedWithValidUsername":"client.login.from.passwordRequested",e.next=16,(0,Yh.gz)(gg(o));case 16:return e.next=18,(0,Yh.gz)(yg(!1));case 18:case"end":return e.stop()}}),e)}))()}function wv(e,t){return new Promise((function(n){qh.Z.executeRequest(e,t).then(qh.Z.extractBody).then((function(e){return n(e)})).catch((function(e){Rg.Z.logError("Failed to execute request",e),n({success:!1})}))}))}function Ov(e){return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Yh.RE)(wv,"login",kv(e));case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),tv)}function xv(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Yh.RE)(wv,"session",{method:"POST"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),nv)}function kv(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{method:"POST",headers:new Headers({"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"}),body:Object.keys(e).filter((function(t){return!!e[t]})).sort().map((function(t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t]))})).join("&")}}function Sv(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Yh.gz)(A(j));case 2:case"end":return e.stop()}}),rv)}function Pv(e){var t;return W().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e[E],n.next=3,(0,Yh.gz)({type:$g,payload:{secret:t}});case 3:return n.next=5,(0,Yh.gz)(A(E));case 5:case"end":return n.stop()}}),ov)}function jv(){var e;return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Yh.Ys)(vv);case 2:return e=t.sent,t.next=5,(0,Yh.gz)(Kt(e.password));case 5:return t.next=7,(0,Yh.gz)(ig(e.username));case 7:return t.next=9,(0,Yh.gz)(ag(!0));case 9:return t.next=11,(0,Yh.gz)(A(_));case 11:case"end":return t.stop()}}),av)}function _v(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Yh.gz)(gg("client.login.form.blocked",!0));case 2:case"end":return e.stop()}}),iv)}function Ev(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Yh.gz)(gg("client.login.form.failed",!0));case 2:case"end":return e.stop()}}),cv)}function Cv(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Yh.gz)(gg("client.login.form.invalidUsernameEmail",!0));case 2:case"end":return e.stop()}}),sv)}function Tv(){var e;return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Dv();case 2:(e=t.sent)&&(window.location.href=e);case 4:case"end":return t.stop()}}),uv)}function Dv(){var e,t,n,r;return W().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(e=Xg(window.location.search),!(t=e._redirect_url)){o.next=5;break}return o.abrupt("return",t);case 5:return o.next=7,(0,Yh.Ys)(yv);case 7:return n=o.sent,r=n.redirectUrl,o.abrupt("return",r);case 10:case"end":return o.stop()}}),lv)}function Rv(t){var n;return W().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,Yh.RE)(e.Z.reinitialiseCache);case 2:return r.next=4,(0,Yh.gz)(Z(""));case 4:return n=t.timeout||30,r.next=7,(0,Yh.gz)(s.Z.fireExternalEvent("loginSuccess",{timeout:n}));case 7:case"end":return r.stop()}}),fv)}function Mv(e){var t=e.payload;return W().mark((function e(){var n,r,o,a,i;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.username,e.next=3,(0,Yh.gz)(vg());case 3:return e.next=5,(0,Yh.gz)(yg(!0));case 5:return e.next=7,(0,Yh.RE)(Vh.Z.requestSaga,"client/username/check/".concat(n),{method:"GET"});case 7:if(r=e.sent,o=r.body,a=o.existingUser,i=o.validEmail,!a){e.next=14;break}return e.next=12,(0,Yh.gz)(A(S));case 12:e.next=21;break;case 14:if(!i){e.next=19;break}return e.next=17,(0,Yh.gz)(s.Z.fireExternalEvent("register",{username:n}));case 17:e.next=21;break;case 19:return e.next=21,(0,Yh.RE)(Cv);case 21:return e.next=23,(0,Yh.gz)(yg(!1));case 23:case"end":return e.stop()}}),e)}))()}function Iv(e){var t=e.payload;return W().mark((function e(){var n,r,o,a,i,c;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.username,r=t.password,o=t.captchaToken,a=t.userCode,i=Jg(Jg({username:n,password:r},o&&{captchaToken:o}),a&&{userCode:a}),e.next=4,(0,Yh.gz)(yg(!0));case 4:return e.next=6,(0,Yh.RE)(Ov,i);case 6:if(!(c=e.sent).success){e.next=14;break}return e.next=10,(0,Yh.RE)(Rv,c);case 10:return e.next=12,(0,Yh.RE)(Tv);case 12:e.next=45;break;case 14:return e.next=16,(0,Yh.gz)(A(S));case 16:if(!c.CAPTCHA){e.next=21;break}return e.next=19,(0,Yh.gz)({type:mg});case 19:e.next=43;break;case 21:if(!c.TWOSTEPLOGIN){e.next=26;break}return e.next=24,(0,Yh.RE)(Sv,c);case 24:e.next=43;break;case 26:if(!c.RESET_PASSWORD_REQUIRED){e.next=31;break}return e.next=29,(0,Yh.RE)(jv);case 29:e.next=43;break;case 31:if(!c.LOGIN_BLOCKED){e.next=36;break}return e.next=34,(0,Yh.RE)(_v);case 34:e.next=43;break;case 36:if(!c.TWOSTEPLOGIN_ACTIVATION){e.next=41;break}return e.next=39,(0,Yh.RE)(Pv,c);case 39:e.next=43;break;case 41:return e.next=43,(0,Yh.RE)(Ev);case 43:return e.next=45,(0,Yh.gz)(yg(!1));case 45:case"end":return e.stop()}}),e)}))()}function Av(){var e;return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Yh.RE)(xv);case 2:if(!(e=t.sent).success){t.next=6;break}return t.next=6,(0,Yh.RE)(Rv,e);case 6:return t.abrupt("return",e.success);case 7:case"end":return t.stop()}}),pv)}function Nv(){var e;return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Yh.RE)(Vh.Z.fetchServerSettings);case 2:return e=t.sent,t.next=5,(0,Yh.gz)((n=e.captchaKey,{type:M,payload:{captchaKey:n}}));case 5:case"end":return t.stop()}var n}),dv)}function Zv(){var e;return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Yh.RE)(Av);case 2:return e=t.sent,t.next=5,(0,Yh.RE)(Nv);case 5:if(!e){t.next=8;break}return t.next=8,(0,Yh.RE)(Tv);case 8:case"end":return t.stop()}}),hv)}function Lv(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Yh.gz)(vg());case 2:case"end":return e.stop()}}),mv)}function Fv(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Yh.$6)([(0,Yh.Fm)(C,Lv),(0,Yh.Fm)(h,Iv),(0,Yh.Fm)(g,Mv),(0,Yh.Fm)(m,bv),(0,Yh.Fm)(d,Zv)]);case 2:case"end":return e.stop()}}),gv)}function Uv(e,t,n,r){if("string"!=typeof e)return!1;var o=e.length-e.replace(t,"").length;return(null==n||o>=n)&&(null==r||o<=r)}var Hv=(ev={},n()(ev,"PASSWORD_NOT_CHANGED",(function(e,t){return"string"==typeof e&&"string"==typeof t&&e!==t})),n()(ev,"LENGTH",(function(e,t,n){return"string"==typeof e&&(void 0===n.params.min||null===n.params.min||e.length>=n.params.min)&&(void 0===n.params.max||null===n.params.max||e.length<=n.params.max)})),n()(ev,"CHARACTER_INSUFFICIENT_LOWERCASE",(function(e,t,n){return Uv(e,/[a-z]/g,n.params.min,n.params.max)})),n()(ev,"CHARACTER_INSUFFICIENT_UPPERCASE",(function(e,t,n){return Uv(e,/[A-Z]/g,n.params.min,n.params.max)})),n()(ev,"CHARACTER_INSUFFICIENT_DIGIT",(function(e,t,n){return Uv(e,/[0-9]/g,n.params.min,n.params.max)})),ev);const Bv=function(e,t,n){var r={};return n&&n.forEach((function(n){var o=Hv[n.name];o&&(!0!==o(e,t,n)&&(r[n.name]=!0))})),r};var Wv=W().mark(ay),zv=W().mark(iy),Yv=W().mark(cy),Vv=W().mark(sy),qv=W().mark(ly),Gv=W().mark(fy),Kv=W().mark(py),Xv=W().mark(dy);function $v(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 Qv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$v(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Jv=function(e){return e.passwordUpdate.validationRules},ey=function(e){return e.input},ty=function(e){return e.passwordUpdate.dialog.usernameOrPk},ny=function(e){return e.passwordUpdate.password},ry=function(e){return e.passwordUpdate.dialog.standalone},oy=function(e){return e.intl};function ay(e,t,n){var r,o;return W().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r={method:"POST",acceptedStatusCodes:[400],body:Qv(Qv({},t),{},{captchaToken:n})},a.prev=1,a.next=4,(0,Yh.RE)(Vh.Z.requestSaga,"principals/".concat(e,"/password-update"),r);case 4:return o=a.sent,a.abrupt("return",o.ok?{error:null}:{error:o.body});case 8:return a.prev=8,a.t0=a.catch(1),a.abrupt("return",{error:{errorCode:"UNEXPECTED_ERROR",exception:a.t0}});case 11:case"end":return a.stop()}}),Wv,null,[[1,8]])}function iy(e,t){var n,r,o,a;return W().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,Yh.Ys)(oy);case 2:return n=i.sent,r=n.locale,o={method:"POST",body:t,queryParams:{locale:r}},i.prev=5,i.next=8,(0,Yh.RE)(Vh.Z.requestSaga,"principals/".concat(e,"/password-validation"),o);case 8:return a=i.sent,i.abrupt("return",a.body);case 12:return i.prev=12,i.t0=i.catch(5),i.abrupt("return",{valid:!0,exception:i.t0});case 15:case"end":return i.stop()}}),zv,null,[[5,12]])}function cy(e){return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Yh.gz)((n=e.payload.newPassword,{type:Ht,payload:{newPassword:n}}));case 2:return t.next=4,(0,Yh.gz)({type:qt});case 4:case"end":return t.stop()}var n}),Yv)}function sy(){var e,t,n,r,o,a,i;return W().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,(0,Yh.Ys)(Jv);case 2:return e=c.sent,c.next=5,(0,Yh.Ys)(ny);case 5:if(t=c.sent,Zg(n=Bv(t.newPassword,t.oldPassword,e))){c.next=12;break}return c.next=10,(0,Yh.gz)(Xt(n));case 10:c.next=29;break;case 12:return c.next=14,(0,Yh.Ys)(ty);case 14:return r=c.sent,c.next=17,(0,Yh.RE)(ly);case 17:return o=c.sent,c.next=20,(0,Yh.RE)(iy,r,o);case 20:if(!0!==(a=c.sent).valid){c.next=26;break}return c.next=24,(0,Yh.gz)(Xt({}));case 24:c.next=29;break;case 26:return i=Lg(a.validationMessages),c.next=29,(0,Yh.gz)(Xt(i));case 29:case"end":return c.stop()}}),Vv)}function uy(e){var t=e.payload.captchaToken;return W().mark((function e(){var n,r,o,a;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Yh.Ys)(ty);case 2:return n=e.sent,e.next=5,(0,Yh.RE)(ly);case 5:return r=e.sent,e.next=8,(0,Yh.RE)(ay,n,r,t);case 8:if(!(o=e.sent).error){e.next=21;break}if(!1!==o.error.valid){e.next=15;break}return e.next=13,(0,Yh.gz)($t(null,o.error.validationMessages));case 13:e.next=17;break;case 15:return e.next=17,(0,Yh.gz)($t(o.error.errorCode));case 17:return e.next=19,(0,Yh.gz)(s.Z.fireVisibilityStatusChangeEvent([Yg]));case 19:e.next=40;break;case 21:return e.next=23,(0,Yh.Ys)(ry);case 23:if(!e.sent){e.next=29;break}return e.next=27,(0,Yh.gz)(s.Z.fireExternalEvent("success",{newPassword:r.newPassword}));case 27:e.next=36;break;case 29:return e.next=31,(0,Yh.RE)(fy);case 31:return a=e.sent,e.next=34,(0,Yh.gz)(Z(a.payload.password));case 34:return e.next=36,(0,Yh.RE)(Iv,a);case 36:return e.next=38,(0,Yh.gz)({type:Yt});case 38:return e.next=40,(0,Yh.gz)(s.Z.fireVisibilityStatusChangeEvent([zg]));case 40:case"end":return e.stop()}}),e)}))()}function ly(){var e,t;return W().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Yh.Ys)(ey);case 2:return e=n.sent,n.next=5,(0,Yh.Ys)(ny);case 5:return t=n.sent,n.abrupt("return",{oldPassword:e.oldPassword?e.oldPassword:t.oldPassword,newPassword:t.newPassword});case 7:case"end":return n.stop()}}),qv)}function fy(){var e,t;return W().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Yh.Ys)(ny);case 2:return e=n.sent,n.next=5,(0,Yh.Ys)(ty);case 5:return t=n.sent,n.abrupt("return",{payload:{username:t,password:e.newPasswordRepeat}});case 7:case"end":return n.stop()}}),Gv)}function py(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Yh.gz)({type:Gt});case 2:case"end":return e.stop()}}),Kv)}function dy(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Yh.$6)([(0,Yh.Fm)(Ut,cy),(0,Yh.Fm)(qt,sy),(0,Yh.Fm)(zt,uy),(0,Yh.Fm)(Ut,py),(0,Yh.Fm)(Ft,py),(0,Yh.Fm)(Wt,py)]);case 2:case"end":return e.stop()}}),Xv)}var hy=W().mark(gy),my=W().mark(vy);function gy(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Yh.gz)(s.Z.fireExternalEvent("resize"));case 2:case"end":return e.stop()}}),hy)}function vy(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Yh.$6)([(0,Yh.Fm)(Lt,gy)]);case 2:case"end":return e.stop()}}),my)}var yy=n()({},Jt,(function(e,t){return t.payload.rules}));const by=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=yy[t.type];return n?n(e,t):e};var wy=W().mark(Py),Oy=W().mark(jy),xy=function(e){return e.passwordUpdate.dialog.usernameOrPk},ky=function(e){return e.intl};function Sy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return W().mark((function n(){var r,o;return W().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r="principals/".concat(e,"/password-rules"),n.next=3,(0,Yh.RE)(Vh.Z.requestSaga,r,{queryParams:{locale:t}});case 3:return o=n.sent,n.abrupt("return",o.body);case 5:case"end":return n.stop()}}),n)}))()}function Py(){var e,t,n,r;return W().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,Yh.Ys)(xy);case 2:return e=o.sent,o.next=5,(0,Yh.Ys)(ky);case 5:return t=o.sent,n=t.locale,o.next=9,(0,Yh.RE)(Sy,e,n);case 9:return r=o.sent,o.next=12,(0,Yh.gz)((a=r.rules,{type:Jt,payload:{rules:a}}));case 12:case"end":return o.stop()}var a}),wy)}function jy(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Yh.$6)([(0,Yh.Fm)(Qt,Py)]);case 2:case"end":return e.stop()}}),Oy)}const _y={dialog:Tg,password:Wg,validationRules:by};var Ey=[Ag,vy,dy,jy],Cy=n()({},$g,Fh.Z.singleTransferReducer("secret")),Ty={secret:null};const Dy=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ty,t=arguments.length>1?arguments[1]:void 0,n=Cy[t.type];return n?n(e,t):e},Ry={login:lg,loginForm:kg,passwordUpdate:(0,cg.UY)(_y),twoStepLogin:Dy};var My=[Fv].concat(we()(Ey));function Iy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ay="login",Ny=["loginSuccess","register","resize"],Zy={username:k,"password-request":P,login:S},Ly=function(t,n,r,o,i){var c,l=Zy[n.entryPage]||S,f=[og(!1),(c=!1,{type:eg,payload:{standalone:c}}),N(n.username||""),I(l),A(l)],p=!!n.showTitle,d=(0,_e.jsx)($m,{showTitle:p}),h=e.Z.createStore(Ry,My,n,Ay);return u.Z.setInputEnvs(n),s.Z.addToStore(h,(function(t){return e.Z.getEvents(Ny,t.input)})),a.Z.addToStore(h,!0,["console","remote"]),e.Z.createApp(Ay,d,h,{input:n,actions:f,publicPath:o,textResourceModules:["login"],customTheme:i})},Fy=function(t){return e.Z.useApp({initApp:Ly,props:t,packageName:Ay,externalEvents:Ny}).component};Fy.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Iy(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Iy(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({showTitle:o().bool,locale:o().string,entryPage:o().oneOf(["username","login","password-request"]),username:o().string,setLocale:o().func,backendUrl:o().string,redirectUrl:o().string,appContext:l.Z.propTypes},Ny.reduce((function(e,t){return e[t]=o().func,e}),{}));const Uy=function(e){var t=e.usernameOrPk,n=e.showTitle;return(0,_e.jsx)(en.Z,{required:[t],children:(0,_e.jsx)($m,{currentPage:"PASSWORD_UPDATE",showTitle:n})})};const Hy=(0,p.connect)((function(e,t){return{usernameOrPk:e.passwordUpdate.dialog.usernameOrPk}}),{})((0,f.ZP)(Uy));function By(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 Wy(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?By(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):By(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var zy="password-update",Yy=["success","resize","onVisibilityStatusChange"],Vy=function(t,n,r,o,i){var c=!!n.showTitle,l=!!n.forcedUpdate,f=(0,_e.jsx)(Hy,{showTitle:c}),p=[ag(l)];"string"!=typeof n.username||0===n.username.length?p.push({type:rg}):p.push(ig(n.username)),"boolean"==typeof n.showOldPasswordField&&p.push(og(n.showOldPasswordField));var d=e.Z.createStore(Ry,My,n,zy);return u.Z.setInputEnvs(n),s.Z.addToStore(d,(function(t){return e.Z.getEvents(Yy,t.input)})),a.Z.addToStore(d,!0,["console","remote"]),e.Z.createApp(zy,f,d,{input:n,actions:p,publicPath:o,textResourceModules:["login"],customTheme:i})},qy=function(t){return e.Z.useApp({initApp:Vy,props:t,packageName:zy,externalEvents:Yy}).component};qy.propTypes=Wy({username:o().string,showTitle:o().bool,showOldPasswordField:o().bool,oldPassword:o().string,backendUrl:o().string,appContext:l.Z.propTypes},Yy.reduce((function(e,t){return Wy(Wy({},e),{},n()({},t,o().func))}),{}));var Gy="login";var Ky=e.Z.createBundleableApp(Gy,Ly,Fy);e.Z.createBundleableApp("password-update",Vy,qy);e.Z.registerAppInRegistry(Ky.name,Ky.init)})(),c})()));
|
|
57
|
+
*/function vr(e,t=0){const n=[];return e.forEach((function(e,r){let o=null;e.forEach((function(a,i){if(!a&&null!==o)return n.push(`M${o+t} ${r+t}h${i-o}v1H${o+t}z`),void(o=null);if(i!==e.length-1)a&&null===o&&(o=i);else{if(!a)return;null===o?n.push(`M${i+t},${r+t} h1v1H${i+t}z`):n.push(`M${o+t},${r+t} h${i+1-o}v1H${o+t}z`)}}))})),n.join("")}function yr(e,t){return e.slice().map(((e,n)=>n<t.y||n>=t.y+t.h?e:e.map(((e,n)=>(n<t.x||n>=t.x+t.w)&&e))))}function br(e,t,n,r){if(null==r)return null;const o=n?4:0,a=e.length+2*o,i=Math.floor(.1*t),c=a/t,s=(r.width||i)*c,u=(r.height||i)*c,l=null==r.x?e.length/2-s/2:r.x*c,f=null==r.y?e.length/2-u/2:r.y*c;let p=null;if(r.excavate){let e=Math.floor(l),t=Math.floor(f);p={x:e,y:t,w:Math.ceil(s+l-e),h:Math.ceil(u+f-t)}}return{x:l,y:f,h:u,w:s,excavation:p}}var wr=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}();function Or(e){const t=e,{value:n,size:r=pr,level:o=dr,bgColor:a=hr,fgColor:i=mr,includeMargin:c=gr,style:s,imageSettings:u}=t,l=ur(t,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),f=null==u?void 0:u.src,p=(0,w.useRef)(null),d=(0,w.useRef)(null),[h,m]=(0,w.useState)(!1);(0,w.useEffect)((()=>{if(null!=p.current){const e=p.current,t=e.getContext("2d");if(!t)return;let s=lr.QrCode.encodeText(n,fr[o]).getModules();const l=c?4:0,f=s.length+2*l,h=br(s,r,c,u),m=d.current,g=null!=h&&null!==m&&m.complete&&0!==m.naturalHeight&&0!==m.naturalWidth;g&&null!=h.excavation&&(s=yr(s,h.excavation));const v=window.devicePixelRatio||1;e.height=e.width=r*v;const y=r/f*v;t.scale(y,y),t.fillStyle=a,t.fillRect(0,0,f,f),t.fillStyle=i,wr?t.fill(new Path2D(vr(s,l))):s.forEach((function(e,n){e.forEach((function(e,r){e&&t.fillRect(r+l,n+l,1,1)}))})),g&&t.drawImage(m,h.x+l,h.y+l,h.w,h.h)}})),(0,w.useEffect)((()=>{m(!1)}),[f]);const g=sr({height:r,width:r},s);let v=null;return null!=f&&(v=O().createElement("img",{src:f,key:f,style:{display:"none"},onLoad:()=>{m(!0)},ref:d})),O().createElement(O().Fragment,null,O().createElement("canvas",sr({style:g,height:r,width:r,ref:p},l)),v)}function xr(e){const t=e,{value:n,size:r=pr,level:o=dr,bgColor:a=hr,fgColor:i=mr,includeMargin:c=gr,imageSettings:s}=t,u=ur(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let l=lr.QrCode.encodeText(n,fr[o]).getModules();const f=c?4:0,p=l.length+2*f,d=br(l,r,c,s);let h=null;null!=s&&null!=d&&(null!=d.excavation&&(l=yr(l,d.excavation)),h=O().createElement("image",{xlinkHref:s.src,height:d.h,width:d.w,x:d.x+f,y:d.y+f,preserveAspectRatio:"none"}));const m=vr(l,f);return O().createElement("svg",sr({height:r,width:r,viewBox:`0 0 ${p} ${p}`},u),O().createElement("path",{fill:a,d:`M0,0 h${p}v${p}H0z`,shapeRendering:"crispEdges"}),O().createElement("path",{fill:i,d:m,shapeRendering:"crispEdges"}),h)}var kr=e=>{const t=e,{renderAs:n}=t,r=ur(t,["renderAs"]);return"svg"===n?O().createElement(xr,sr({},r)):O().createElement(Or,sr({},r))};const Sr=function(e){var t=e.value;return(0,_e.jsx)(kr,{value:t,renderAs:"svg"})};var Pr,jr,_r,Er,Cr,Tr,Dr=x.ZP.div.withConfig({displayName:"StyledQRCodeWrapper"})(Pr||(Pr=b()(["\n display: flex;\n justify-content: center;\n margin: "," "," "," ",";\n"])),qe.Z.space(1.2),qe.Z.space(1),qe.Z.space(1.5),qe.Z.space(1)),Rr=x.ZP.div.withConfig({displayName:"StyledParagraph"})(jr||(jr=b()(["\n display: flex;\n justify-content: center;\n margin-top: ",";\n margin-bottom: ",";\n"])),qe.Z.space(-1),qe.Z.space(-.9));const Mr=function(e){var t=e.secret,n=e.goToSecretVerification;return(0,Gn.z)(n),(0,_e.jsxs)(_e.Fragment,{children:[_r||(_r=(0,_e.jsx)(et.ZP.P,{children:(0,_e.jsx)(Je.Z,{id:"client.two-factor-connector.qrCodeInfo"})})),(0,_e.jsx)(Dr,{children:(0,_e.jsx)(Sr,{value:t.uri})}),Er||(Er=(0,_e.jsx)(et.ZP.P,{children:(0,_e.jsx)(Je.Z,{id:"client.two-factor-connector.secretInfo"})})),(0,_e.jsx)(Rr,{children:(0,_e.jsx)(et.ZP.B,{children:t.secret})}),Cr||(Cr=(0,_e.jsx)(et.ZP.P,{children:(0,_e.jsx)(Je.Z,{id:"client.two-factor-connector.backupInfo"})})),(0,_e.jsx)(Kn,{children:(0,_e.jsx)(Ve.Z,{ink:"primary",look:"raised",onClick:n,children:Tr||(Tr=(0,_e.jsx)(Je.Z,{id:"client.two-factor-connector.nextButton"}))})})]})};var Ir={goToSecretVerification:function(){return{type:An}}};const Ar=(0,p.connect)((function(e){return{secret:e.twoFactorConnector.secret}}),Ir)((0,f.ZP)(Mr));var Nr;const Zr=function(e){var t=e.twoFactorActive,n=e.forced,r=e.requestSecret,o=e.intl;(0,Gn.z)(r);var a=function(e){return o.formatMessage({id:e})};return(0,_e.jsxs)(_e.Fragment,{children:[(0,_e.jsx)(et.ZP.P,{children:function(){if(t)return Nr||(Nr=(0,_e.jsx)(Je.Z,{id:"client.two-factor-connector.overwriteInfo"}));var e=a(n?"client.two-factor-connector.forcedInfo":"client.two-factor-connector.info");return(0,_e.jsx)("span",{dangerouslySetInnerHTML:{__html:e}})}()}),(0,_e.jsx)(Kn,{children:(0,_e.jsx)(Ve.Z,{label:a("client.two-factor-connector.nextButton"),ink:"primary",look:"raised",onClick:r})})]})};var Lr={initialize:Bn,requestSecret:function(){return{type:In}}};const Fr=(0,p.connect)((function(e){return{twoFactorActive:e.twoFactorConnector.twoFactorActive,secret:e.twoFactorConnector.secret,forced:e.input.forced}}),Lr)((0,f.ZP)(Zr));var Ur=i(57557),Hr=i.n(Ur),Br=i(41609),Wr=i.n(Br),zr=i(14293),Yr=i.n(zr),Vr=i(23493),qr=i.n(Vr),Gr=i(33417),Kr=i(1972),Xr=i(32924),$r=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];var Qr=i(2717);function Jr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function eo(e,t){return(eo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function to(e){return(to=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var no=i(62360);function ro(e,t){if(t&&("object"===(0,no.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function oo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=to(e);if(t){var o=to(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ro(this,n)}}var ao=i(31599);var io=i(78001);function co(e){return function(e){if(Array.isArray(e))return(0,ao.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,io.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var so=i(29382),uo=i(1537),lo=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function fo(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||lo(r)&&lo(o)))return!1;var r,o;return!0}for(var po={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},ho=function(e){return(0,uo.tZ)("span",(0,Qr.Z)({css:po},e))},mo={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,o=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,a=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,a?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,a=void 0===o?"":o,i=e.selectValue,c=e.isDisabled,s=e.isSelected,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&i)return"value ".concat(a," focused, ").concat(u(i,n),".");if("menu"===t){var l=c?" disabled":"",f="".concat(s?"selected":"focused").concat(l);return"option ".concat(a," ").concat(f,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},go=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,a=e.isFocused,i=e.selectValue,c=e.selectProps,s=e.id,u=c.ariaLiveMessages,l=c.getOptionLabel,f=c.inputValue,p=c.isMulti,d=c.isOptionDisabled,h=c.isSearchable,m=c.menuIsOpen,g=c.options,v=c.screenReaderStatus,y=c.tabSelectsValue,b=c["aria-label"],O=c["aria-live"],x=(0,w.useMemo)((function(){return(0,Gr.Z)((0,Gr.Z)({},mo),u||{})}),[u]),k=(0,w.useMemo)((function(){var e,n="";if(t&&x.onChange){var r=t.option,o=t.options,a=t.removedValue,c=t.removedValues,s=t.value,u=a||r||(e=s,Array.isArray(e)?null:e),f=u?l(u):"",p=o||c||void 0,h=p?p.map(l):[],m=(0,Gr.Z)({isDisabled:u&&d(u,i),label:f,labels:h},t);n=x.onChange(m)}return n}),[t,x,d,i,l]),S=(0,w.useMemo)((function(){var e="",t=n||r,a=!!(n&&i&&i.includes(n));if(t&&x.onFocus){var c={focused:t,label:l(t),isDisabled:d(t,i),isSelected:a,options:o,context:t===n?"menu":"value",selectValue:i};e=x.onFocus(c)}return e}),[n,r,l,d,x,o,i]),P=(0,w.useMemo)((function(){var e="";if(m&&g.length&&x.onFilter){var t=v({count:o.length});e=x.onFilter({inputValue:f,resultsMessage:t})}return e}),[o,f,m,x,g,v]),j=(0,w.useMemo)((function(){var e="";if(x.guidance){var t=r?"value":m?"menu":"input";e=x.guidance({"aria-label":b,context:t,isDisabled:n&&d(n,i),isMulti:p,isSearchable:h,tabSelectsValue:y})}return e}),[b,n,r,p,d,h,m,x,i,y]),_="".concat(S," ").concat(P," ").concat(j),E=(0,uo.tZ)(w.Fragment,null,(0,uo.tZ)("span",{id:"aria-selection"},k),(0,uo.tZ)("span",{id:"aria-context"},_)),C="initial-input-focus"===(null==t?void 0:t.action);return(0,uo.tZ)(w.Fragment,null,(0,uo.tZ)(ho,{id:s},C&&E),(0,uo.tZ)(ho,{"aria-live":O,"aria-atomic":"false","aria-relevant":"additions text"},a&&!C&&E))},vo=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],yo=new RegExp("["+vo.map((function(e){return e.letters})).join("")+"]","g"),bo={},wo=0;wo<vo.length;wo++)for(var Oo=vo[wo],xo=0;xo<Oo.letters.length;xo++)bo[Oo.letters[xo]]=Oo.base;var ko=function(e){return e.replace(yo,(function(e){return bo[e]}))},So=function(e,t){void 0===t&&(t=fo);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var a=e.apply(this,r);return n={lastResult:a,lastArgs:r,lastThis:this},a}return r.clear=function(){n=null},r}(ko),Po=function(e){return e.replace(/^\s+|\s+$/g,"")},jo=function(e){return"".concat(e.label," ").concat(e.value)},_o=["innerRef"];function Eo(e){var t=e.innerRef,n=(0,Xr.Z)(e,_o),r=(0,so.r)(n,"onExited","in","enter","exit","appear");return(0,uo.tZ)("input",(0,Qr.Z)({ref:t},r,{css:(0,uo.iv)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Co=["boxSizing","height","overflow","paddingRight","position"],To={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Do(e){e.preventDefault()}function Ro(e){e.stopPropagation()}function Mo(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Io(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ao=!("undefined"==typeof window||!window.document||!window.document.createElement),No=0,Zo={capture:!1,passive:!1};var Lo=function(){return document.activeElement&&document.activeElement.blur()},Fo={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Uo(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,a=e.onTopLeave,i=(0,w.useRef)(!1),c=(0,w.useRef)(!1),s=(0,w.useRef)(0),u=(0,w.useRef)(null),l=(0,w.useCallback)((function(e,t){if(null!==u.current){var s=u.current,l=s.scrollTop,f=s.scrollHeight,p=s.clientHeight,d=u.current,h=t>0,m=f-p-l,g=!1;m>t&&i.current&&(r&&r(e),i.current=!1),h&&c.current&&(a&&a(e),c.current=!1),h&&t>m?(n&&!i.current&&n(e),d.scrollTop=f,g=!0,i.current=!0):!h&&-t>l&&(o&&!c.current&&o(e),d.scrollTop=0,g=!0,c.current=!0),g&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,o,a]),f=(0,w.useCallback)((function(e){l(e,e.deltaY)}),[l]),p=(0,w.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),d=(0,w.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;l(e,t)}),[l]),h=(0,w.useCallback)((function(e){if(e){var t=!!so.s&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",d,t)}}),[d,p,f]),m=(0,w.useCallback)((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",d,!1))}),[d,p,f]);return(0,w.useEffect)((function(){if(t){var e=u.current;return h(e),function(){m(e)}}}),[t,h,m]),function(e){u.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,w.useRef)({}),a=(0,w.useRef)(null),i=(0,w.useCallback)((function(e){if(Ao){var t=document.body,n=t&&t.style;if(r&&Co.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&No<1){var a=parseInt(o.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,c=window.innerWidth-i+a||0;Object.keys(To).forEach((function(e){var t=To[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(c,"px"))}t&&Io()&&(t.addEventListener("touchmove",Do,Zo),e&&(e.addEventListener("touchstart",Mo,Zo),e.addEventListener("touchmove",Ro,Zo))),No+=1}}),[r]),c=(0,w.useCallback)((function(e){if(Ao){var t=document.body,n=t&&t.style;No=Math.max(No-1,0),r&&No<1&&Co.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&Io()&&(t.removeEventListener("touchmove",Do,Zo),e&&(e.removeEventListener("touchstart",Mo,Zo),e.removeEventListener("touchmove",Ro,Zo)))}}),[r]);return(0,w.useEffect)((function(){if(t){var e=a.current;return i(e),function(){c(e)}}}),[t,i,c]),function(e){a.current=e}}({isEnabled:n});return(0,uo.tZ)(w.Fragment,null,n&&(0,uo.tZ)("div",{onClick:Lo,css:Fo}),t((function(e){o(e),a(e)})))}var Ho={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Bo=function(e){var t=e.name,n=e.onFocus;return(0,uo.tZ)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Ho,value:"",onChange:function(){}})},Wo={clearIndicator:so.a,container:so.b,control:so.d,dropdownIndicator:so.e,group:so.g,groupHeading:so.f,indicatorsContainer:so.i,indicatorSeparator:so.h,input:so.j,loadingIndicator:so.l,loadingMessage:so.k,menu:so.m,menuList:so.n,menuPortal:so.o,multiValue:so.p,multiValueLabel:so.q,multiValueRemove:so.t,noOptionsMessage:so.u,option:so.v,placeholder:so.w,singleValue:so.x,valueContainer:so.y};var zo,Yo={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Vo={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,so.z)(),captureMenuScroll:!(0,so.z)(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,Gr.Z)({ignoreCase:!0,ignoreAccents:!0,stringify:jo,trim:!0,matchFrom:"any"},zo),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,c=n.matchFrom,s=i?Po(t):t,u=i?Po(a(e)):a(e);return r&&(s=s.toLowerCase(),u=u.toLowerCase()),o&&(s=So(s),u=ko(u)),"start"===c?u.substr(0,s.length)===s:u.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!(0,so.A)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function qo(e,t,n,r){return{type:"option",data:t,isDisabled:Jo(e,t,n),isSelected:ea(e,t,n),label:$o(e,t),value:Qo(e,t),index:r}}function Go(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return qo(e,n,t,r)})).filter((function(t){return Xo(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=qo(e,n,t,r);return Xo(e,a)?a:void 0})).filter(so.K)}function Ko(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,co(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Xo(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,c=t.value;return(!na(e)||!a)&&ta(e,{label:i,value:c,data:o},r)}var $o=function(e,t){return e.getOptionLabel(t)},Qo=function(e,t){return e.getOptionValue(t)};function Jo(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ea(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Qo(e,t);return n.some((function(t){return Qo(e,t)===r}))}function ta(e,t,n){return!e.filterOption||e.filterOption(t,n)}var na=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ra=1,oa=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eo(e,t)}(a,e);var t,n,r,o=oo(a);function a(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,a=r.name;n.name=a,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,a=o.closeMenuOnSelect,i=o.isMulti,c=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:c}),a&&(t.setState({inputIsHiddenAfterUpdate:!i}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,a=n.name,i=t.state.selectValue,c=o&&t.isOptionSelected(e,i),s=t.isOptionDisabled(e,i);if(c){var u=t.getOptionValue(e);t.setValue((0,so.B)(i.filter((function(e){return t.getOptionValue(e)!==u}))),"deselect-option",e)}else{if(s)return void t.ariaOnChange((0,so.C)(e),{action:"select-option",option:e,name:a});o?t.setValue((0,so.B)([].concat(co(i),[e])),"select-option",e):t.setValue((0,so.C)(e),"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),a=r.filter((function(e){return t.getOptionValue(e)!==o})),i=(0,so.D)(n,a,a[0]||null);t.onChange(i,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange((0,so.D)(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),a=(0,so.D)(e,o,o[0]||null);t.onChange(a,{action:"pop-value",removedValue:r})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return so.E.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return $o(t.props,e)},t.getOptionValue=function(e){return Qo(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=Wo[e](n,r);o.boxSizing="border-box";var a=t.props.styles[e];return a?a(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){return(0,so.F)(t.props)},t.buildCategorizedOptions=function(){return Go(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Ko(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:(0,Gr.Z)({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&(0,so.G)(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),a=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||a>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return na(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,a=n.escapeClearsValue,i=n.inputValue,c=n.isClearable,s=n.isDisabled,u=n.menuIsOpen,l=n.onKeyDown,f=n.tabSelectsValue,p=n.openMenuOnFocus,d=t.state,h=d.focusedOption,m=d.focusedValue,g=d.selectValue;if(!(s||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||i)return;t.focusValue("previous");break;case"ArrowRight":if(!r||i)return;t.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():c&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!u||!f||!h||p&&t.isOptionSelected(h,g))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":u?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:i}),t.onMenuClose()):c&&a&&t.clearValue();break;case" ":if(i)return;if(!u){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++ra),t.state.selectValue=(0,so.H)(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.buildFocusableOptions(),r=n.indexOf(t.state.selectValue[0]);t.state.focusedOption=n[r]}return t}return t=a,r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,i=t.isFocused,c=t.prevWasFocused,s=e.options,u=e.value,l=e.menuIsOpen,f=e.inputValue,p=e.isMulti,d=(0,so.H)(u),h={};if(n&&(u!==n.value||s!==n.options||l!==n.menuIsOpen||f!==n.inputValue)){var m=l?function(e,t){return Ko(Go(e,t))}(e,d):[],g=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,d):null;h={selectValue:d,focusedOption:function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,m),focusedValue:g,clearFocusValueOnUpdate:!1}}var v=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},y=a,b=i&&c;return i&&!b&&(y={value:(0,so.D)(p,d,d[0]||null),options:d,action:"initial-input-focus"},b=!c),"initial-input-focus"===(null==a?void 0:a.action)&&(y=null),(0,Gr.Z)((0,Gr.Z)((0,Gr.Z)({},h),v),{},{prevProps:e,ariaSelection:y,prevWasFocused:b})}}],(n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&(0,so.I)(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&((0,so.I)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildFocusableOptions(),i="first"===e?0:a.length-1;if(!this.props.isMulti){var c=a.indexOf(r[0]);c>-1&&(i=c)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[i]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var a=n.length-1,i=-1;if(n.length){switch(e){case"previous":i=0===o?0:-1===o?a:o-1;break;case"next":o>-1&&o<a&&(i=o+1)}this.setState({inputIsHidden:-1!==i,focusedValue:n[i]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,a=r.indexOf(n);n||(a=-1),"up"===e?o=a>0?a-1:r.length-1:"down"===e?o=(a+1)%r.length:"pageup"===e?(o=a-t)<0&&(o=0):"pagedown"===e?(o=a+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Yo):(0,Gr.Z)((0,Gr.Z)({},Yo),this.props.theme):Yo}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,a=this.selectOption,i=this.setValue,c=this.props,s=c.isMulti,u=c.isRtl,l=c.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:s,isRtl:u,options:l,selectOption:a,selectProps:c,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Jo(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ea(this.props,e,t)}},{key:"filterOption",value:function(e,t){return ta(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,a=e.tabIndex,i=e.form,c=e.menuIsOpen,s=e.required,u=this.getComponents().Input,l=this.state,f=l.inputIsHidden,p=l.ariaSelection,d=this.commonProps,h=r||this.getElementId("input"),m=(0,Gr.Z)((0,Gr.Z)((0,Gr.Z)({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":s,role:"combobox"},c&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?w.createElement(u,(0,Qr.Z)({},d,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:f,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:i,type:"text",value:o},m)):w.createElement(Eo,(0,Qr.Z)({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:so.J,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:i,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,i=t.SingleValue,c=t.Placeholder,s=this.commonProps,u=this.props,l=u.controlShouldRenderValue,f=u.isDisabled,p=u.isMulti,d=u.inputValue,h=u.placeholder,m=this.state,g=m.selectValue,v=m.focusedValue,y=m.isFocused;if(!this.hasValue()||!l)return d?null:w.createElement(c,(0,Qr.Z)({},s,{key:"placeholder",isDisabled:f,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(p)return g.map((function(t,i){var c=t===v,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return w.createElement(n,(0,Qr.Z)({},s,{components:{Container:r,Label:o,Remove:a},isFocused:c,isDisabled:f,key:u,index:i,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(d)return null;var b=g[0];return w.createElement(i,(0,Qr.Z)({},s,{data:b,isDisabled:f}),this.formatOptionLabel(b,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var i={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return w.createElement(e,(0,Qr.Z)({},t,{innerProps:i,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;return e&&o?w.createElement(e,(0,Qr.Z)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return w.createElement(n,(0,Qr.Z)({},r,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return w.createElement(e,(0,Qr.Z)({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,a=t.MenuList,i=t.MenuPortal,c=t.LoadingMessage,s=t.NoOptionsMessage,u=t.Option,l=this.commonProps,f=this.state.focusedOption,p=this.props,d=p.captureMenuScroll,h=p.inputValue,m=p.isLoading,g=p.loadingMessage,v=p.minMenuHeight,y=p.maxMenuHeight,b=p.menuIsOpen,O=p.menuPlacement,x=p.menuPosition,k=p.menuPortalTarget,S=p.menuShouldBlockScroll,P=p.menuShouldScrollIntoView,j=p.noOptionsMessage,_=p.onMenuScrollToTop,E=p.onMenuScrollToBottom;if(!b)return null;var C,T=function(t,n){var r=t.type,o=t.data,a=t.isDisabled,i=t.isSelected,c=t.label,s=t.value,p=f===o,d=a?void 0:function(){return e.onOptionHover(o)},h=a?void 0:function(){return e.selectOption(o)},m="".concat(e.getElementId("option"),"-").concat(n),g={id:m,onClick:h,onMouseMove:d,onMouseOver:d,tabIndex:-1};return w.createElement(u,(0,Qr.Z)({},l,{innerProps:g,data:o,isDisabled:a,isSelected:i,key:m,label:c,type:r,value:s,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())C=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,a=t.options,i=t.index,c="".concat(e.getElementId("group"),"-").concat(i),s="".concat(c,"-heading");return w.createElement(n,(0,Qr.Z)({},l,{key:c,data:o,options:a,Heading:r,headingProps:{id:s,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return T(e,"".concat(i,"-").concat(e.index))})))}if("option"===t.type)return T(t,"".concat(t.index))}));else if(m){var D=g({inputValue:h});if(null===D)return null;C=w.createElement(c,l,D)}else{var R=j({inputValue:h});if(null===R)return null;C=w.createElement(s,l,R)}var M={minMenuHeight:v,maxMenuHeight:y,menuPlacement:O,menuPosition:x,menuShouldScrollIntoView:P},I=w.createElement(so.M,(0,Qr.Z)({},l,M),(function(t){var n=t.ref,r=t.placerProps,i=r.placement,c=r.maxHeight;return w.createElement(o,(0,Qr.Z)({},l,M,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:m,placement:i}),w.createElement(Uo,{captureEnabled:d,onTopArrive:_,onBottomArrive:E,lockEnabled:S},(function(t){return w.createElement(a,(0,Qr.Z)({},l,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:m,maxHeight:c,focusedOption:f}),C)})))}));return k||"fixed"===x?w.createElement(i,(0,Qr.Z)({},l,{appendTo:k,controlElement:this.controlRef,menuPlacement:O,menuPosition:x}),I):I}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,a=t.name,i=t.required,c=this.state.selectValue;if(i&&!this.hasValue()&&!r)return w.createElement(Bo,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(o){if(n){var s=c.map((function(t){return e.getOptionValue(t)})).join(n);return w.createElement("input",{name:a,type:"hidden",value:s})}var u=c.length>0?c.map((function(t,n){return w.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):w.createElement("input",{name:a,type:"hidden",value:""});return w.createElement("div",null,u)}var l=c[0]?this.getOptionValue(c[0]):"";return w.createElement("input",{name:a,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,a=t.isFocused,i=t.selectValue,c=this.getFocusableOptions();return w.createElement(go,(0,Qr.Z)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:a,selectValue:i,focusableOptions:c}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,a=this.props,i=a.className,c=a.id,s=a.isDisabled,u=a.menuIsOpen,l=this.state.isFocused,f=this.commonProps=this.getCommonProps();return w.createElement(r,(0,Qr.Z)({},f,{className:i,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:l}),this.renderLiveRegion(),w.createElement(t,(0,Qr.Z)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:l,menuIsOpen:u}),w.createElement(o,(0,Qr.Z)({},f,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),w.createElement(n,(0,Qr.Z)({},f,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}])&&Jr(t.prototype,n),r&&Jr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(w.Component);oa.defaultProps=Vo;i(66751),i(30314),i(73469);var aa=(0,w.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,a=e.defaultValue,i=void 0===a?null:a,c=e.inputValue,s=e.menuIsOpen,u=e.onChange,l=e.onInputChange,f=e.onMenuClose,p=e.onMenuOpen,d=e.value,h=(0,Xr.Z)(e,$r),m=(0,w.useState)(void 0!==c?c:n),g=(0,Kr.Z)(m,2),v=g[0],y=g[1],b=(0,w.useState)(void 0!==s?s:o),O=(0,Kr.Z)(b,2),x=O[0],k=O[1],S=(0,w.useState)(void 0!==d?d:i),P=(0,Kr.Z)(S,2),j=P[0],_=P[1],E=(0,w.useCallback)((function(e,t){"function"==typeof u&&u(e,t),_(e)}),[u]),C=(0,w.useCallback)((function(e,t){var n;"function"==typeof l&&(n=l(e,t)),y(void 0!==n?n:e)}),[l]),T=(0,w.useCallback)((function(){"function"==typeof p&&p(),k(!0)}),[p]),D=(0,w.useCallback)((function(){"function"==typeof f&&f(),k(!1)}),[f]),R=void 0!==c?c:v,M=void 0!==s?s:x,I=void 0!==d?d:j;return(0,Gr.Z)((0,Gr.Z)({},h),{},{inputValue:R,menuIsOpen:M,onChange:E,onInputChange:C,onMenuClose:D,onMenuOpen:T,value:I})}(e);return w.createElement(oa,(0,Qr.Z)({ref:t},n))})),ia=i(80470);function ca(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 sa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ca(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ca(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const ua=(0,f.ZP)((function(e){var t;return(0,_e.jsx)("span",sa(sa({},e.innerProps),{},{children:(0,_e.jsx)(ia.Z,{icon:"times",tabIndex:-1,"aria-label":(t="client.component.select.clearFieldLabel",e.intl.formatMessage({id:t}))})}))}));var la=i(95497);function fa(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 pa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fa(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const da=function(e){var t=e.selectProps,n=t.isDisabled,r=t.menuIsOpen;return n?null:(0,_e.jsx)(so.c.DropdownIndicator,pa(pa({},e),{},{children:(0,_e.jsx)(la.M6,{children:(0,_e.jsx)(ia.Z,{icon:r?"chevron-up":"chevron-down",visible:!0,tabIndex:-1})})}))};var ha,ma,ga;function va(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 ya(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?va(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):va(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ba=function(e,t,n){return function(r){r.stopPropagation(),e(t,n)}},wa=function(e,t){return function(n){n.stopPropagation(),e(t)}},Oa=function(e,t){return function(n){n.stopPropagation(),e(t)}},xa=function(e){e.stopPropagation()};const ka=function(e){var t=e.selectProps,n=t.openDocsTreeSearch,r=t.openAdvancedSearch,o=t.openRemoteCreate,a=t.isDisabled,i=t.hasDocsTreeSearch,c=t.hasAdvancedSearch,s=t.createPermission,u=t.value,l=t.isMulti,f=t.inputValue,p=l&&(c||i);return(0,_e.jsx)(la.HO,{isTopAligned:p,children:(0,_e.jsxs)(so.c.IndicatorsContainer,ya(ya({},e),{},{children:[e.children,n&&!a&&(0,_e.jsx)("span",{onTouchEnd:xa,onMouseDown:wa(n,u),children:ha||(ha=(0,_e.jsx)(ia.Z,{icon:"folder",tabIndex:-1}))}),r&&!a&&(0,_e.jsx)("span",{onTouchEnd:xa,onMouseDown:ba(r,f,u),children:ma||(ma=(0,_e.jsx)(ia.Z,{icon:"search",tabIndex:-1}))}),s&&!a&&(0,_e.jsx)("span",{onTouchEnd:xa,onMouseDown:Oa(o,u),children:ga||(ga=(0,_e.jsx)(ia.Z,{icon:"plus",tabIndex:-1}))})]}))})};var Sa,Pa=i(93235);const ja=function(){return Sa||(Sa=(0,_e.jsx)("span",{children:(0,_e.jsx)(Pa.Z,{size:"1.8rem"})}))};var _a=i(15315);function Ea(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 Ca(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ea(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ea(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Ta=function(e){var t=e.selectProps,n=e.children;return(0,_e.jsx)(la._M,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"window",attachment:"together"}],renderTarget:function(e){return(0,_e.jsx)("div",{ref:e})},renderElement:function(r){return(0,_e.jsx)("div",{ref:r,className:_a.c,children:(0,_e.jsx)(la.l2,Ca(Ca({},Hr()(e,["innerRef"])),{},{wrapperWidth:t.wrapperWidth,wrapperHeight:t.wrapperHeight,children:n}))})}})};function Da(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 Ra(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Da(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Da(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Ma=function(e){var t=e.selectProps,n=e.children,r=t.moreOptionsAvailable,o=t.moreOptionsAvailableText;return(0,_e.jsxs)(so.c.MenuList,Ra(Ra({},e),{},{className:"MenuList",children:[n,r&&(0,_e.jsx)(la.OA,{children:o})]}))};var Ia=i(27361),Aa=i.n(Ia),Na=i(76791);function Za(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 La(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Za(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Za(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Fa=function(e){var t=e.data,n=e.innerProps,r=e.children,o=e.selectProps,a=o.tooltips,i=o.loadTooltip,c=o.DetailLink,s=Aa()(a,t.key,null),u=(0,_e.jsx)("span",La(La({},n),{},{children:r})),l=c?(0,_e.jsx)(la.vR,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,_e.jsx)(c,{entityKey:t.key,tabIndex:-1,children:(0,_e.jsx)(Na.Z,{content:s?(0,_e.jsx)("div",{dangerouslySetInnerHTML:{__html:ve.Z.sanitizeHtml(s)}}):null,children:(0,_e.jsx)("span",{onMouseOver:function(){return i&&!s&&i(t.key)},children:u})})})}):u;return(0,_e.jsx)(la.B1,{children:l})};var Ua=i(47037),Ha=i.n(Ua),Ba=i(14176),Wa=i.n(Ba);function za(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 Ya(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?za(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):za(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Va=["linkComp"],qa=function(e,t){var n=ge.Z.difference(e,t),r=Wa()(Hr()(n,Va),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length},Ga=(0,w.memo)((function(e){var t=e.linkComp,n=e.entityKey,r=e.children;return t&&Ha()(n)?(0,_e.jsx)(la.vR,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,_e.jsx)(t,{entityKey:n,children:r})}):r}),qa);Ga.propTypes={children:o().node,entityKey:o().any,linkComp:o().func};const Ka=function(e){var t=e.data,n=e.selectProps,r=e.isDisabled,o=e.children,a=n.tooltips,i=n.loadTooltip,c=n.DetailLink,s=Aa()(a,t.key,null);return(0,_e.jsx)(so.c.SingleValue,Ya(Ya({},e),{},{children:(0,_e.jsx)(la.xq,{onMouseOver:function(){return i&&!s&&i(t.key)},isDisabled:r,children:(0,_e.jsx)(Na.Z,{content:s?(0,_e.jsx)("div",{dangerouslySetInnerHTML:{__html:ve.Z.sanitizeHtml(s)}}):null,children:(0,_e.jsx)(Ga,{linkComp:c,entityKey:t.key,children:o})})})}))};function Xa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var $a=function(e){var t;return"Input"===(null==e||null===(t=e.type)||void 0===t?void 0:t.name)};const Qa=function(e){var t=e.selectProps,r=e.hasValue,o=e.children,a=t.isMulti,i=t.hasAdvancedSearch,c=t.hasDocsTreeSearch,s=t.isDisabled;if(!(a&&(i||c)))return(0,_e.jsx)(so.c.ValueContainer,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xa(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e));var u=w.Children.map(o,(function(e){return $a(e)?e:null})),l=w.Children.map(o,(function(e){return $a(e)?null:e})),f=s&&r;return(0,_e.jsxs)(_e.Fragment,{children:[!f&&(0,_e.jsx)(_e.Fragment,{children:u}),(0,_e.jsx)(la.eQ,{children:l})]})};function Ja(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 ei(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ja(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ja(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const ti=(0,x.Zz)((function(e){var t=e.fetchOptions,n=e.id,r=e.immutable,o=e.isLoading,a=e.isMulti,i=e.loadTooltip,c=e.moreOptionsAvailable,s=e.moreOptionsAvailableText,u=e.noResultsText,l=e.noResultsComp,f=e.onChange,p=e.openDocsTreeSearch,d=e.openAdvancedSearch,h=e.options,m=e.searchOptions,g=e.theme,v=e.tooltips,y=e.value,b=e.DetailLink,O=e.createPermission,x=e.openRemoteCreate,k=(0,w.useRef)(null),S=(0,w.useRef)(null),P=function(){var e;return(null===(e=S.current)||void 0===e?void 0:e.clientWidth)||300},j=function(){var e;return(null===(e=S.current)||void 0===e?void 0:e.clientHeight)||35},_=(0,w.useState)(P()),E=H()(_,2),C=E[0],T=E[1],D=(0,w.useState)(j()),R=H()(D,2),M=R[0],I=R[1],A=(0,w.useState)(!1),N=H()(A,2),Z=N[0],L=N[1],F=function(e){t&&t(e)},U=(0,w.useCallback)(m||function(){},[]),B=(0,w.useCallback)(qr()(U,800,{trailing:!0}),[]),W=Boolean(d),z=Boolean(p),Y=Boolean(O);return(0,_e.jsx)(la.sP,{tabIndex:"-1",id:n,onFocus:function(){k.current.focus(),setTimeout((function(){T(P()),I(j())}),0)},children:(0,_e.jsx)(la.RU,{ref:S,children:(0,_e.jsx)(aa,ei(ei({getOptionLabel:function(e){return e.display},getOptionValue:function(e){return e.key},wrapperWidth:C,wrapperHeight:M,components:{ClearIndicator:ua,LoadingIndicator:ja,DropdownIndicator:da,IndicatorsContainer:ka,IndicatorSeparator:null,Menu:Ta,MenuList:Ma,MultiValueLabel:Fa,SingleValue:Ka,ValueContainer:Qa},noOptionsMessage:function(e){return u||("function"==typeof l?(0,_e.jsx)(l,ei({},e)):" - ")},isMulti:a,closeMenuOnSelect:!a,isSearchable:!0},m?{filterOption:function(){return!0}}:{}),{},{isClearable:!0,loadingMessage:function(){return null},placeholder:"",menuShouldScrollIntoView:!1,autoFocus:!1,value:y||null,onChange:function(e){f(e),F(e)},onInputChange:function(e,t){var n=t.action;m&&e&&B(e,y),""===e&&"input-change"===n&&F(y)},options:we()(h||[]),onKeyDown:function(e){"Enter"===e.key&&Z?e.stopPropagation():"Tab"===e.key&&(e.preventDefault=function(){})},isLoading:o,isDisabled:r,ref:k,onMenuOpen:function(){F(y),L(!0)},onMenuClose:function(){L(!1)},styles:(0,la.i4)(g),loadTooltip:i,tooltips:v,DetailLink:b,hasDocsTreeSearch:z,openDocsTreeSearch:p,hasAdvancedSearch:W,openAdvancedSearch:d,moreOptionsAvailable:c,moreOptionsAvailableText:s,blurInputOnSelect:!1,hasCreatePermission:Y,createPermission:O,openRemoteCreate:x,closeMenuOnScroll:function(e){var t;return!(null!==(t=e.target.classList)&&void 0!==t&&t.contains("MenuList"))}}))})})}));const ni=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.options,a=o.trueLabel,i=o.falseLabel,c=e.onChange;return(0,_e.jsx)(ti,{id:t,immutable:n,isMulti:!1,onChange:function(e){return c(e?e.key:null)},value:Yr()(r)?r:{key:r,display:r?a:i},openMenuOnClick:!0,options:[{key:!0,display:a},{key:!1,display:i}]})};var ri,oi=x.ZP.div.withConfig({displayName:"StyledBoolEdit"})(ri||(ri=b()(["\n margin: 5px 0;\n"])));const ai=function(e){return(0,_e.jsx)(oi,{children:(0,_e.jsx)("input",{type:"checkbox",checked:e.value||!1,name:e.name,onChange:function(t){e.onChange&&e.onChange(t.target.checked)},id:e.id,disabled:e.immutable})})};var ii,ci;function si(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 ui(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?si(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):si(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var li=x.ZP.div.withConfig({displayName:"StyledOption"})(ii||(ii=b()(["\n margin: "," 0;\n"])),qe.Z.space(-1.4)),fi=x.ZP.span.withConfig({displayName:"StyledLabel"})(ci||(ci=b()(["\n ","\n display: inline-block;\n margin-left: ",";\n"])),(0,lt.Z)(),qe.Z.space(-1.5)),pi={single:"radio",multiple:"checkbox"},di={single:{checked:!1},multiple:{}},hi=function(e){var t=e.groupName,n=e.id,r=e.label,o=e.checked,a=e.immutable,i=e.selectionType,c=e.renderHtmlInOptions,s=e.handleChange;return(0,_e.jsxs)(li,{children:[(0,_e.jsx)("input",{name:t,type:pi[i],checked:o||!1,onChange:s,id:n,disabled:a}),(0,_e.jsx)(fi,{children:c?(0,_e.jsx)("span",{dangerouslySetInnerHTML:{__html:ve.Z.sanitizeHtml(r)}}):r})]})};const mi=function(e){var t=function(t){if(e.onChange){var n=e.value.options.map((function(n){return ui(ui({},n),n.id===t.target.id?{checked:t.target.checked}:di[e.options.selectionType])}));e.onChange({options:n})}};return(0,_e.jsx)(_e.Fragment,{children:e.value.options.map((function(n){return(0,_e.jsx)(hi,{groupName:e.id,id:n.id,label:n.label,checked:n.checked,immutable:e.immutable,selectionType:e.options.selectionType,renderHtmlInOptions:e.options.renderHtmlInOptions,handleChange:t},n.id)}))})};var gi=i(23279),vi=i.n(gi);function yi(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 bi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yi(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var wi=(0,w.lazy)((function(){return Promise.all([i.e(560),i.e(85)]).then(i.bind(i,30919))}));const Oi=function(e){return(0,_e.jsx)(w.Suspense,{fallback:(t=e.value,(0,_e.jsx)("div",{children:(0,_e.jsx)("p",{children:t})})),children:(0,_e.jsx)(wi,bi({},e))});var t};var xi,ki,Si,Pi=x.ZP.div.withConfig({displayName:"StyledEditorWrapper"})(xi||(xi=b()(["\n margin-top: ",";\n"])),qe.Z.space(-1.5)),ji=x.ZP.div.withConfig({displayName:"StyledEditorBaseline"})(ki||(ki=b()(["\n height: 0;\n"])));const _i=function(e){var t=e.value,n=e.onChange,r=e.immutable,o=e.options;return(0,_e.jsxs)(Pi,{children:[Si||(Si=(0,_e.jsx)(ji,{children:"StyledEditorBaseline"})),(0,_e.jsx)(Oi,{value:t,onChange:vi()(n,1e3),autoFocusOnMount:o.autoFocusOnMount,mode:o.mode,theme:"textmate",showGutter:!0,editorOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,minLines:5,maxLines:50,readOnly:r,wrap:!0,indentedSoftWrap:!1},implicitModel:o.implicitModel})]})};var Ei=i(86896),Ci=i(23842),Ti=i(93379),Di=i.n(Ti),Ri=i(7795),Mi=i.n(Ri),Ii=i(90569),Ai=i.n(Ii),Ni=i(3565),Zi=i.n(Ni),Li=i(19216),Fi=i.n(Li),Ui=i(44589),Hi=i.n(Ui),Bi=i(16721),Wi={};Wi.styleTagTransform=Hi(),Wi.setAttributes=Zi(),Wi.insert=Ai().bind(null,"head"),Wi.domAPI=Mi(),Wi.insertStyleElement=Fi();Di()(Bi.Z,Wi);Bi.Z&&Bi.Z.locals&&Bi.Z.locals;var zi=i(9198),Yi=i.n(zi),Vi=(Math.pow(10,8),6e4),qi=36e5,Gi=i(13882),Ki=i(83946);var Xi={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},$i=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Qi=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Ji=/^([+-])(\d{2})(?::?(\d{2}))?$/;function ec(e){var t,n={},r=e.split(Xi.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],Xi.timeZoneDelimiter.test(n.date)&&(n.date=e.split(Xi.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var o=Xi.timezone.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}function tc(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?o:100*a,restDateString:e.slice((r[1]||r[2]).length)}}function nc(e,t){if(null===t)return new Date(NaN);var n=e.match($i);if(!n)return new Date(NaN);var r=!!n[4],o=rc(n[1]),a=rc(n[2])-1,i=rc(n[3]),c=rc(n[4]),s=rc(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,c,s)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,a=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}(t,c,s):new Date(NaN);var u=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(cc[t]||(sc(e)?29:28))}(t,a,i)&&function(e,t){return t>=1&&t<=(sc(e)?366:365)}(t,o)?(u.setUTCFullYear(t,a,Math.max(o,i)),u):new Date(NaN)}function rc(e){return e?parseInt(e):1}function oc(e){var t=e.match(Qi);if(!t)return NaN;var n=ac(t[1]),r=ac(t[2]),o=ac(t[3]);return function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,o)?n*qi+r*Vi+1e3*o:NaN}function ac(e){return e&&parseFloat(e.replace(",","."))||0}function ic(e){if("Z"===e)return 0;var t=e.match(Ji);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,o)?n*(r*qi+o*Vi):NaN}var cc=[31,null,31,30,31,30,31,31,30,31,30,31];function sc(e){return e%400==0||e%4==0&&e%100!=0}var uc,lc,fc,pc=x.ZP.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(uc||(uc=b()(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),dc=x.ZP.div.withConfig({displayName:"StyledDatePickerWrapper"})(lc||(lc=b()(["\n &&&& {\n ","\n\n & .react-datepicker__input-container {\n & input {\n ","\n width: calc(100% - 5px);\n }\n }\n\n & .react-datepicker {\n & .react-datepicker__today-button {\n ","\n }\n }\n }\n"])),ft,dt,(function(e){return e.hasTime&&"border-bottom: 1px solid #aeaeae;"})),hc=x.ZP.input.withConfig({displayName:"StyledTimeInput"})(fc||(fc=b()(["\n &&&& {\n ","\n }\n"])),dt),mc=i(37042),gc=i(4543),vc=i(39880),yc=i(85817),bc=i(39159),wc=i(19013);function Oc(e){(0,Gi.Z)(1,arguments);var t=(0,wc.Z)(e),n=t.getSeconds();return n}var xc=i(86);function kc(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}function Sc(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return kc(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)?kc(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw a}}}}var Pc=i(44941),jc=i(29558);function _c(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}var Ec=i(97621),Cc=i(24262),Tc=i(5267);function Dc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rc(e,t){return(Rc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Mc(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rc(e,t)}function Ic(e){return(Ic=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ac(e,t){if(t&&("object"===(0,xc.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Dc(e)}function Nc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ic(e);if(t){var o=Ic(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ac(this,n)}}function Zc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lc(e){var t=function(e,t){if("object"!==(0,xc.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==(0,xc.Z)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,xc.Z)(t)?t:String(t)}function Fc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Lc(r.key),r)}}function Uc(e,t,n){return t&&Fc(e.prototype,t),n&&Fc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hc(e,t,n){return(t=Lc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bc=function(){function e(){Zc(this,e),Hc(this,"priority",void 0),Hc(this,"subPriority",0)}return Uc(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),Wc=function(e){Mc(n,e);var t=Nc(n);function n(e,r,o,a,i){var c;return Zc(this,n),(c=t.call(this)).value=e,c.validateValue=r,c.setValue=o,c.priority=a,i&&(c.subPriority=i),c}return Uc(n,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,n){return this.setValue(e,t,this.value,n)}}]),n}(Bc),zc=function(e){Mc(n,e);var t=Nc(n);function n(){var e;Zc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Hc(Dc(e=t.call.apply(t,[this].concat(o))),"priority",10),Hc(Dc(e),"subPriority",-1),e}return Uc(n,[{key:"set",value:function(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}}]),n}(Bc),Yc=function(){function e(){Zc(this,e),Hc(this,"incompatibleTokens",void 0),Hc(this,"priority",void 0),Hc(this,"subPriority",void 0)}return Uc(e,[{key:"run",value:function(e,t,n,r){var o=this.parse(e,t,n,r);return o?{setter:new Wc(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(e,t,n){return!0}}]),e}(),Vc=function(e){Mc(n,e);var t=Nc(n);function n(){var e;Zc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Hc(Dc(e=t.call.apply(t,[this].concat(o))),"priority",140),Hc(Dc(e),"incompatibleTokens",["R","u","t","T"]),e}return Uc(n,[{key:"parse",value:function(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(Yc),qc=/^(1[0-2]|0?\d)/,Gc=/^(3[0-1]|[0-2]?\d)/,Kc=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Xc=/^(5[0-3]|[0-4]?\d)/,$c=/^(2[0-3]|[0-1]?\d)/,Qc=/^(2[0-4]|[0-1]?\d)/,Jc=/^(1[0-1]|0?\d)/,es=/^(1[0-2]|0?\d)/,ts=/^[0-5]?\d/,ns=/^[0-5]?\d/,rs=/^\d/,os=/^\d{1,2}/,as=/^\d{1,3}/,is=/^\d{1,4}/,cs=/^-?\d+/,ss=/^-?\d/,us=/^-?\d{1,2}/,ls=/^-?\d{1,3}/,fs=/^-?\d{1,4}/,ps=/^([+-])(\d{2})(\d{2})?|Z/,ds=/^([+-])(\d{2})(\d{2})|Z/,hs=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,ms=/^([+-])(\d{2}):(\d{2})|Z/,gs=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function vs(e,t){return e?{value:t(e.value),rest:e.rest}:e}function ys(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function bs(e,t){var n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};var r="+"===n[1]?1:-1,o=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,i=n[5]?parseInt(n[5],10):0;return{value:r*(o*qi+a*Vi+1e3*i),rest:t.slice(n[0].length)}}function ws(e){return ys(cs,e)}function Os(e,t){switch(e){case 1:return ys(rs,t);case 2:return ys(os,t);case 3:return ys(as,t);case 4:return ys(is,t);default:return ys(new RegExp("^\\d{1,"+e+"}"),t)}}function xs(e,t){switch(e){case 1:return ys(ss,t);case 2:return ys(us,t);case 3:return ys(ls,t);case 4:return ys(fs,t);default:return ys(new RegExp("^-?\\d{1,"+e+"}"),t)}}function ks(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Ss(e,t){var n,r=t>0,o=r?t:1-t;if(o<=50)n=e||100;else{var a=o+50;n=e+100*Math.floor(a/100)-(e>=a%100?100:0)}return r?n:1-n}function Ps(e){return e%400==0||e%4==0&&e%100!=0}var js=function(e){Mc(n,e);var t=Nc(n);function n(){var e;Zc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Hc(Dc(e=t.call.apply(t,[this].concat(o))),"priority",130),Hc(Dc(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return Uc(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return vs(Os(4,e),r);case"yo":return vs(n.ordinalNumber(e,{unit:"year"}),r);default:return vs(Os(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var o=Ss(n.year,r);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(Yc),_s=i(7651),Es=i(59025),Cs=function(e){Mc(n,e);var t=Nc(n);function n(){var e;Zc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Hc(Dc(e=t.call.apply(t,[this].concat(o))),"priority",130),Hc(Dc(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return Uc(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return vs(Os(4,e),r);case"Yo":return vs(n.ordinalNumber(e,{unit:"year"}),r);default:return vs(Os(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n,r){var o=(0,_s.Z)(e,r);if(n.isTwoDigitYear){var a=Ss(n.year,o);return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,Es.Z)(e,r)}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,Es.Z)(e,r)}}]),n}(Yc),Ts=i(66979),Ds=function(e){Mc(n,e);var t=Nc(n);function n(){var e;Zc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Hc(Dc(e=t.call.apply(t,[this].concat(o))),"priority",130),Hc(Dc(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return Uc(n,[{key:"parse",value:function(e,t){return xs("R"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),(0,Ts.Z)(r)}}]),n}(Yc),Rs=function(e){Mc(n,e);var t=Nc(n);function n(){var e;Zc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Hc(Dc(e=t.call.apply(t,[this].concat(o))),"priority",130),Hc(Dc(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return Uc(n,[{key:"parse",value:function(e,t){return xs("u"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(Yc),Ms=function(e){Mc(n,e);var t=Nc(n);function n(){var e;Zc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Hc(Dc(e=t.call.apply(t,[this].concat(o))),"priority",120),Hc(Dc(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return Uc(n,[{key:"parse",value:function(e,t,n){switch(t){case"Q":case"QQ":return Os(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(Yc),Is=function(e){Mc(n,e);var t=Nc(n);function n(){var e;Zc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Hc(Dc(e=t.call.apply(t,[this].concat(o))),"priority",120),Hc(Dc(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return Uc(n,[{key:"parse",value:function(e,t,n){switch(t){case"q":case"qq":return Os(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(Yc),As=function(e){Mc(n,e);var t=Nc(n);function n(){var e;Zc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Hc(Dc(e=t.call.apply(t,[this].concat(o))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Hc(Dc(e),"priority",110),e}return Uc(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"M":return vs(ys(qc,e),r);case"MM":return vs(Os(2,e),r);case"Mo":return vs(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(Yc),Ns=function(e){Mc(n,e);var t=Nc(n);function n(){var e;Zc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Hc(Dc(e=t.call.apply(t,[this].concat(o))),"priority",110),Hc(Dc(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return Uc(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"L":return vs(ys(qc,e),r);case"LL":return vs(Os(2,e),r);case"Lo":return vs(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(Yc),Zs=i(23324);var Ls=function(e){Mc(n,e);var t=Nc(n);function n(){var e;Zc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Hc(Dc(e=t.call.apply(t,[this].concat(o))),"priority",100),Hc(Dc(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return Uc(n,[{key:"parse",value:function(e,t,n){switch(t){case"w":return ys(Xc,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return Os(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n,r){return(0,Es.Z)(function(e,t,n){(0,Gi.Z)(2,arguments);var r=(0,wc.Z)(e),o=(0,Ki.Z)(t),a=(0,Zs.Z)(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*a),r}(e,n,r),r)}}]),n}(Yc),Fs=i(49702);var Us=function(e){Mc(n,e);var t=Nc(n);function n(){var e;Zc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Hc(Dc(e=t.call.apply(t,[this].concat(o))),"priority",100),Hc(Dc(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return Uc(n,[{key:"parse",value:function(e,t,n){switch(t){case"I":return ys(Xc,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return Os(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n){return(0,Ts.Z)(function(e,t){(0,Gi.Z)(2,arguments);var n=(0,wc.Z)(e),r=(0,Ki.Z)(t),o=(0,Fs.Z)(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(e,n))}}]),n}(Yc),Hs=[31,28,31,30,31,30,31,31,30,31,30,31],Bs=[31,29,31,30,31,30,31,31,30,31,30,31],Ws=function(e){Mc(n,e);var t=Nc(n);function n(){var e;Zc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Hc(Dc(e=t.call.apply(t,[this].concat(o))),"priority",90),Hc(Dc(e),"subPriority",1),Hc(Dc(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return Uc(n,[{key:"parse",value:function(e,t,n){switch(t){case"d":return ys(Gc,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return Os(t.length,e)}}},{key:"validate",value:function(e,t){var n=Ps(e.getUTCFullYear()),r=e.getUTCMonth();return n?t>=1&&t<=Bs[r]:t>=1&&t<=Hs[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(Yc),zs=function(e){Mc(n,e);var t=Nc(n);function n(){var e;Zc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Hc(Dc(e=t.call.apply(t,[this].concat(o))),"priority",90),Hc(Dc(e),"subpriority",1),Hc(Dc(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return Uc(n,[{key:"parse",value:function(e,t,n){switch(t){case"D":case"DD":return ys(Kc,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return Os(t.length,e)}}},{key:"validate",value:function(e,t){return Ps(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),n}(Yc),Ys=i(84314);function Vs(e,t,n){var r,o,a,i,c,s,u,l;(0,Gi.Z)(2,arguments);var f=(0,Ys.j)(),p=(0,Ki.Z)(null!==(r=null!==(o=null!==(a=null!==(i=null==n?void 0:n.weekStartsOn)&&void 0!==i?i:null==n||null===(c=n.locale)||void 0===c||null===(s=c.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==a?a:f.weekStartsOn)&&void 0!==o?o:null===(u=f.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=(0,wc.Z)(e),h=(0,Ki.Z)(t),m=d.getUTCDay(),g=h%7,v=(g+7)%7,y=(v<p?7:0)+h-m;return d.setUTCDate(d.getUTCDate()+y),d}var qs=function(e){Mc(n,e);var t=Nc(n);function n(){var e;Zc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Hc(Dc(e=t.call.apply(t,[this].concat(o))),"priority",90),Hc(Dc(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return Uc(n,[{key:"parse",value:function(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Vs(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(Yc),Gs=function(e){Mc(n,e);var t=Nc(n);function n(){var e;Zc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Hc(Dc(e=t.call.apply(t,[this].concat(o))),"priority",90),Hc(Dc(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return Uc(n,[{key:"parse",value:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return vs(Os(t.length,e),o);case"eo":return vs(n.ordinalNumber(e,{unit:"day"}),o);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Vs(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(Yc),Ks=function(e){Mc(n,e);var t=Nc(n);function n(){var e;Zc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Hc(Dc(e=t.call.apply(t,[this].concat(o))),"priority",90),Hc(Dc(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return Uc(n,[{key:"parse",value:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return vs(Os(t.length,e),o);case"co":return vs(n.ordinalNumber(e,{unit:"day"}),o);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Vs(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(Yc);var Xs=function(e){Mc(n,e);var t=Nc(n);function n(){var e;Zc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Hc(Dc(e=t.call.apply(t,[this].concat(o))),"priority",90),Hc(Dc(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return Uc(n,[{key:"parse",value:function(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return Os(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return vs(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return vs(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return vs(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiii":default:return vs(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function(e,t){return t>=1&&t<=7}},{key:"set",value:function(e,t,n){return(e=function(e,t){(0,Gi.Z)(2,arguments);var n=(0,Ki.Z)(t);n%7==0&&(n-=7);var r=1,o=(0,wc.Z)(e),a=o.getUTCDay(),i=((n%7+7)%7<r?7:0)+n-a;return o.setUTCDate(o.getUTCDate()+i),o}(e,n)).setUTCHours(0,0,0,0),e}}]),n}(Yc),$s=function(e){Mc(n,e);var t=Nc(n);function n(){var e;Zc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Hc(Dc(e=t.call.apply(t,[this].concat(o))),"priority",80),Hc(Dc(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return Uc(n,[{key:"parse",value:function(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(ks(n),0,0,0),e}}]),n}(Yc),Qs=function(e){Mc(n,e);var t=Nc(n);function n(){var e;Zc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Hc(Dc(e=t.call.apply(t,[this].concat(o))),"priority",80),Hc(Dc(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return Uc(n,[{key:"parse",value:function(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(ks(n),0,0,0),e}}]),n}(Yc),Js=function(e){Mc(n,e);var t=Nc(n);function n(){var e;Zc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Hc(Dc(e=t.call.apply(t,[this].concat(o))),"priority",80),Hc(Dc(e),"incompatibleTokens",["a","b","t","T"]),e}return Uc(n,[{key:"parse",value:function(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(ks(n),0,0,0),e}}]),n}(Yc),eu=function(e){Mc(n,e);var t=Nc(n);function n(){var e;Zc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Hc(Dc(e=t.call.apply(t,[this].concat(o))),"priority",70),Hc(Dc(e),"incompatibleTokens",["H","K","k","t","T"]),e}return Uc(n,[{key:"parse",value:function(e,t,n){switch(t){case"h":return ys(es,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return Os(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}]),n}(Yc),tu=function(e){Mc(n,e);var t=Nc(n);function n(){var e;Zc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Hc(Dc(e=t.call.apply(t,[this].concat(o))),"priority",70),Hc(Dc(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return Uc(n,[{key:"parse",value:function(e,t,n){switch(t){case"H":return ys($c,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return Os(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),n}(Yc),nu=function(e){Mc(n,e);var t=Nc(n);function n(){var e;Zc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Hc(Dc(e=t.call.apply(t,[this].concat(o))),"priority",70),Hc(Dc(e),"incompatibleTokens",["h","H","k","t","T"]),e}return Uc(n,[{key:"parse",value:function(e,t,n){switch(t){case"K":return ys(Jc,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return Os(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),n}(Yc),ru=function(e){Mc(n,e);var t=Nc(n);function n(){var e;Zc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Hc(Dc(e=t.call.apply(t,[this].concat(o))),"priority",70),Hc(Dc(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return Uc(n,[{key:"parse",value:function(e,t,n){switch(t){case"k":return ys(Qc,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return Os(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=24}},{key:"set",value:function(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}}]),n}(Yc),ou=function(e){Mc(n,e);var t=Nc(n);function n(){var e;Zc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Hc(Dc(e=t.call.apply(t,[this].concat(o))),"priority",60),Hc(Dc(e),"incompatibleTokens",["t","T"]),e}return Uc(n,[{key:"parse",value:function(e,t,n){switch(t){case"m":return ys(ts,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return Os(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),n}(Yc),au=function(e){Mc(n,e);var t=Nc(n);function n(){var e;Zc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Hc(Dc(e=t.call.apply(t,[this].concat(o))),"priority",50),Hc(Dc(e),"incompatibleTokens",["t","T"]),e}return Uc(n,[{key:"parse",value:function(e,t,n){switch(t){case"s":return ys(ns,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return Os(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),n}(Yc),iu=function(e){Mc(n,e);var t=Nc(n);function n(){var e;Zc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Hc(Dc(e=t.call.apply(t,[this].concat(o))),"priority",30),Hc(Dc(e),"incompatibleTokens",["t","T"]),e}return Uc(n,[{key:"parse",value:function(e,t){return vs(Os(t.length,e),(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))}},{key:"set",value:function(e,t,n){return e.setUTCMilliseconds(n),e}}]),n}(Yc),cu=function(e){Mc(n,e);var t=Nc(n);function n(){var e;Zc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Hc(Dc(e=t.call.apply(t,[this].concat(o))),"priority",10),Hc(Dc(e),"incompatibleTokens",["t","T","x"]),e}return Uc(n,[{key:"parse",value:function(e,t){switch(t){case"X":return bs(ps,e);case"XX":return bs(ds,e);case"XXXX":return bs(hs,e);case"XXXXX":return bs(gs,e);case"XXX":default:return bs(ms,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(Yc),su=function(e){Mc(n,e);var t=Nc(n);function n(){var e;Zc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Hc(Dc(e=t.call.apply(t,[this].concat(o))),"priority",10),Hc(Dc(e),"incompatibleTokens",["t","T","X"]),e}return Uc(n,[{key:"parse",value:function(e,t){switch(t){case"x":return bs(ps,e);case"xx":return bs(ds,e);case"xxxx":return bs(hs,e);case"xxxxx":return bs(gs,e);case"xxx":default:return bs(ms,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(Yc),uu=function(e){Mc(n,e);var t=Nc(n);function n(){var e;Zc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Hc(Dc(e=t.call.apply(t,[this].concat(o))),"priority",40),Hc(Dc(e),"incompatibleTokens","*"),e}return Uc(n,[{key:"parse",value:function(e){return ws(e)}},{key:"set",value:function(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),n}(Yc),lu=function(e){Mc(n,e);var t=Nc(n);function n(){var e;Zc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return Hc(Dc(e=t.call.apply(t,[this].concat(o))),"priority",20),Hc(Dc(e),"incompatibleTokens","*"),e}return Uc(n,[{key:"parse",value:function(e){return ws(e)}},{key:"set",value:function(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}]),n}(Yc),fu={G:new Vc,y:new js,Y:new Cs,R:new Ds,u:new Rs,Q:new Ms,q:new Is,M:new As,L:new Ns,w:new Ls,I:new Us,d:new Ws,D:new zs,E:new qs,e:new Gs,c:new Ks,i:new Xs,a:new $s,b:new Qs,B:new Js,h:new eu,H:new tu,K:new nu,k:new ru,m:new ou,s:new au,S:new iu,X:new cu,x:new su,t:new uu,T:new lu},pu=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,du=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,hu=/^'([^]*?)'?$/,mu=/''/g,gu=/\S/,vu=/[a-zA-Z]/;function yu(e,t,n,r){var o,a,i,c,s,u,l,f,p,d,h,m,g,v,y,b,w,O;(0,Gi.Z)(3,arguments);var x=String(e),k=String(t),S=(0,Ys.j)(),P=null!==(o=null!==(a=null==r?void 0:r.locale)&&void 0!==a?a:S.locale)&&void 0!==o?o:Pc.Z;if(!P.match)throw new RangeError("locale must contain match property");var j=(0,Ki.Z)(null!==(i=null!==(c=null!==(s=null!==(u=null==r?void 0:r.firstWeekContainsDate)&&void 0!==u?u:null==r||null===(l=r.locale)||void 0===l||null===(f=l.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==s?s:S.firstWeekContainsDate)&&void 0!==c?c:null===(p=S.locale)||void 0===p||null===(d=p.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==i?i:1);if(!(j>=1&&j<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var _=(0,Ki.Z)(null!==(h=null!==(m=null!==(g=null!==(v=null==r?void 0:r.weekStartsOn)&&void 0!==v?v:null==r||null===(y=r.locale)||void 0===y||null===(b=y.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==g?g:S.weekStartsOn)&&void 0!==m?m:null===(w=S.locale)||void 0===w||null===(O=w.options)||void 0===O?void 0:O.weekStartsOn)&&void 0!==h?h:0);if(!(_>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===k)return""===x?(0,wc.Z)(n):new Date(NaN);var E,C={firstWeekContainsDate:j,weekStartsOn:_,locale:P},T=[new zc],D=k.match(du).map((function(e){var t=e[0];return t in Ec.Z?(0,Ec.Z[t])(e,P.formatLong):e})).join("").match(pu),R=[],M=Sc(D);try{var I=function(){var t=E.value;null!=r&&r.useAdditionalWeekYearTokens||!(0,Tc.Do)(t)||(0,Tc.qp)(t,k,e),null!=r&&r.useAdditionalDayOfYearTokens||!(0,Tc.Iu)(t)||(0,Tc.qp)(t,k,e);var n=t[0],o=fu[n];if(o){var a=o.incompatibleTokens;if(Array.isArray(a)){var i=R.find((function(e){return a.includes(e.token)||e.token===n}));if(i)throw new RangeError("The format string mustn't contain `".concat(i.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===o.incompatibleTokens&&R.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));R.push({token:n,fullToken:t});var c=o.run(x,t,P.match,C);if(!c)return{v:new Date(NaN)};T.push(c.setter),x=c.rest}else{if(n.match(vu))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=bu(t)),0!==x.indexOf(t))return{v:new Date(NaN)};x=x.slice(t.length)}};for(M.s();!(E=M.n()).done;){var A=I();if("object"===(0,xc.Z)(A))return A.v}}catch(e){M.e(e)}finally{M.f()}if(x.length>0&&gu.test(x))return new Date(NaN);var N=T.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return T.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),Z=(0,wc.Z)(n);if(isNaN(Z.getTime()))return new Date(NaN);var L,F=(0,jc.Z)(Z,(0,Cc.Z)(Z)),U={},H=Sc(N);try{for(H.s();!(L=H.n()).done;){var B=L.value;if(!B.validate(F,C))return new Date(NaN);var W=B.set(F,U,C);Array.isArray(W)?(F=W[0],_c(U,W[1])):F=W}}catch(e){H.e(e)}finally{H.f()}return F}function bu(e){return e.match(hu)[1].replace(mu,"'")}var wu=i(49599);function Ou(e,t,n){return(0,Gi.Z)(2,arguments),(0,wu.Z)(yu(e,t,new Date,n))}var xu="react-datepicker-time__input",ku="react-datepicker__day",Su="react-datepicker__input",Pu=function(e){return e.classList.contains(ku)},ju=function(e){return e.classList.contains(xu)},_u=function(e){return e.classList.contains(Su)},Eu=function(e,t){var n=t.hour,r=void 0===n?0:n,o=t.minute,a=void 0===o?0:o,i=t.second,c=void 0===i?0:i;return(0,mc.Z)((0,gc.Z)((0,vc.Z)(e,c),a),r)},Cu=function(e){setTimeout((function(){if(e){var t=e.querySelector(".".concat(ku,'[tabindex="0"]'));t&&t.focus({preventScroll:!0})}}),0)},Tu=function(e){setTimeout((function(){e&&e.focus({preventScroll:!0})}),0)},Du=function(e){var t=function(e,t){var n;(0,Gi.Z)(1,arguments);var r=(0,Ki.Z)(null!==(n=null==t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o,a=ec(e);if(a.date){var i=tc(a.date,r);o=nc(i.restDateString,i.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var c,s=o.getTime(),u=0;if(a.time&&(u=oc(a.time),isNaN(u)))return new Date(NaN);if(!a.timezone){var l=new Date(s+u),f=new Date(0);return f.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),f.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),f}return c=ic(a.timezone),isNaN(c)?new Date(NaN):new Date(s+u+c)}(e);return isNaN(t)?null:t},Ru=function(e){return e?e.toISOString():null};const Mu=function(e,t,n){var r=n.dateFormats,o=void 0===r?[]:r,a=n.minDate,i=n.maxDate,c=n.hasTime,s=n.valueToDate,u=void 0===s?Du:s,l=n.dateToValue,f=void 0===l?Ru:l,p=(0,w.useRef)(null),d=(0,w.useState)(!1),h=H()(d,2),m=h[0],g=h[1],v=(0,w.useState)(!1),y=H()(v,2),b=y[0],O=y[1],x=u(e),k=a?u(a):void 0,S=i?u(i):void 0;(0,w.useEffect)((function(){(p.current&&"function"==typeof p.current.setOpen&&p.current.setOpen(m),m)&&document.querySelectorAll("button.react-datepicker__navigation").forEach((function(e){return e.setAttribute("tabindex","-1")}))}),[m]);var P=function(){return g(!1)},j=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(p.current&&"function"==typeof p.current.getPreSelection){var t,n=e?p.current.getPreSelection():null;return(null===(t=p.current.state)||void 0===t?void 0:t.preSelection)||n}return null},_=function(e){p.current&&"function"==typeof p.current.setPreSelection&&p.current.setPreSelection(e)},E=function(){t(null),_(null)},C=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=j(!1);if(n){var r=x||new Date,o=t?Eu(n,{hour:(0,yc.Z)(r),minute:(0,bc.Z)(r),second:Oc(r)}):n;T(o,e)}},T=function(n,r){if(n){var a,i=!e&&Boolean(n),s=null==r||null===(a=r.target)||void 0===a?void 0:a.value,u=!!s&&o.some((function(e){return Ou(s,e)})),l=function(e){(0,Gi.Z)(1,arguments);var t=(0,wc.Z)(e);return t.setHours(0,0,0,0),t}(n),d=(0,yc.Z)(n)!==(0,yc.Z)(l)||(0,bc.Z)(n)!==(0,bc.Z)(l);(i&&!d||u)&&c&&(n=Ci.Z.setCurrentTime(n)),t(f(n))}else E();var h;c||"click"!==(null==r?void 0:r.type)||(P(),Tu(null===(h=p.current)||void 0===h?void 0:h.input))},D=function(e){if("Tab"===e.key)if(e.shiftKey)if(_u(e.target))setTimeout((function(){return P()}),0);else if(ju(e.target)){var t,n;_(x||j(!0)),Cu(null===(t=p.current)||void 0===t||null===(n=t.calendar)||void 0===n?void 0:n.componentNode)}else Pu(e.target)&&P();else _u(e.target)&&m?(C(e),setTimeout((function(){return P()}),0)):ju(e.target)?P():Pu(e.target)&&(c?(C(e,!0),_(null),O(!0),setTimeout((function(){var e,t,n;n=null===(e=p.current)||void 0===e||null===(t=e.calendar)||void 0===t?void 0:t.componentNode,setTimeout((function(){if(n){var e=n.querySelector("input.".concat(xu));e&&e.focus({preventScroll:!0})}}),0),O(!1)}),0)):(C(e),P()));var r;"Enter"===e.key&&(P(),e.preventDefault(),e.stopPropagation(),Tu(null===(r=p.current)||void 0===r?void 0:r.input));if(["ArrowDown","ArrowUp","Enter"].includes(e.key))if(m){if(m&&null===j(!1)){var o,a;_(x||j(!0)),Cu(null===(o=p.current)||void 0===o||null===(a=o.calendar)||void 0===a?void 0:a.componentNode)}}else g(!0),e.key="Handled".concat(e.key)},R=function(){var e;g((function(e){return!e})),_(null),Tu(null===(e=p.current)||void 0===e?void 0:e.input)};return{reactDatePickerProps:{closeOnScroll:function(){return P(),!0},onClickOutside:P,onInputClick:R,onKeyDown:D,onChange:T,onCalendarOpen:function(){_(null)},onBlur:function(){p.current&&p.current.setState({inputValue:null})},preventOpenOnFocus:!0,enableTabLoop:!1,shouldCloseOnSelect:!1,open:m,selected:x,showTimeInput:c,minDate:k,maxDate:S,ref:p,className:Su},timeInputProps:{onKeyDown:D,className:xu,tabIndex:b?void 0:"-1"},clearButtonProps:{onMouseDown:function(e){e.preventDefault(),E()}},calendarButtonProps:{onClick:R,className:m?"react-datepicker-ignore-onclickoutside":""}}};var Iu=i(49546),Au="HH:mm:ss",Nu="HH:mm",Zu=function(e){return Ou(e,Nu)},Lu=function(e){var t=function(e){return Ou(e,Au)?yu(e,Au,new Date):Ou(e,Nu)?yu(e,Nu,new Date):Ou(e,"HH:")?yu(e,"HH:",new Date):Ou(e,"H")?yu(e,"H",new Date):null}(e);return t&&!isNaN(t)?function(e){return(0,Iu.Z)(e,Nu)}(t):""};const Fu=function(e,t){var n=Lu(e),r=(0,w.useState)(n),o=H()(r,2),a=o[0],i=o[1],c=(0,w.useRef)(a),s=He.Z.usePrevious(n);(0,w.useEffect)((function(){s!==n&&a===s&&i(n)}),[n,a,s]);return{inputProps:{onChange:function(e){if(e.target.value!==a&&function(e){return/^(\d{0,2}|\d{1,2}:\d{0,2})$/.test(e)}(e.target.value)){var n=function(e,t){return e&&t?2!==e.length||3===t.length||e.includes(":")?e.length+1===t.length&&t.indexOf(":")===t.length-1?e.slice(0,-1):e:"".concat(e,":"):e}(e.target.value,c.current),r=n.indexOf(":"),o=n.substring(0,r),s=n.substring(r+1),u=parseInt(o,10),l=parseInt(s,10),f=!o||!Number.isNaN(u)&&u<24,p=!s||!Number.isNaN(l)&&l<60;if(!f||!p)return!1;c.current=n,i(n),n&&!Zu(n)||t(n)}},onBlur:function(){if(a!==n){var e=Lu(a);e&&Zu(e)?(c.current=e,i(e),t(e)):i(n)}},onFocus:function(e){a&&"function"==typeof e.target.select&&e.target.select()},value:a||""},clearButtonProps:{onClick:function(){t(""),i("")}}}};var Uu=["value","onChange","onKeyDown"];function Hu(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 Bu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Hu(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}(0,zi.registerLocale)("en",Ci.Z.getDateFnsLocale("en")),(0,zi.registerLocale)("en-US",Ci.Z.getDateFnsLocale("en")),(0,zi.registerLocale)("de-CH",Ci.Z.getDateFnsLocale("de-CH")),(0,zi.registerLocale)("de",Ci.Z.getDateFnsLocale("de")),(0,zi.registerLocale)("fr",Ci.Z.getDateFnsLocale("fr")),(0,zi.registerLocale)("fr-CH",Ci.Z.getDateFnsLocale("fr")),(0,zi.registerLocale)("it",Ci.Z.getDateFnsLocale("it")),(0,zi.registerLocale)("it-CH",Ci.Z.getDateFnsLocale("it")),(0,zi.setDefaultLocale)("de");var Wu=function(e){var t=e.onChange,n=e.label;return(0,_e.jsx)(Ve.Z,{onMouseDown:function(e){e.preventDefault(),t(null)},tabIndex:-1,children:n})},zu=function(e){var t=e.value,n=e.onChange,r=e.onKeyDown,o=Ye()(e,Uu),a=Fu(t,(function(e){n&&n(e||"00:00")})).inputProps;return(0,_e.jsx)(hc,Bu(Bu(Bu({},a),o),{},{type:"text",onKeyDown:r,onClick:function(e){e.target.focus()}}))},Yu={strategy:"fixed"};const Vu=(0,x.Zz)((0,f.ZP)((function(e){var t=e.immutable,n=e.id,r=e.value,o=e.minDate,a=e.maxDate,i=e.valueToDate,c=e.dateToValue,s=e.onChange,u=e.intl,l=e.placeholder,f=e.hasTime,p=e.dateFormats,d=void 0===p?[]:p,h=e.dateTimeFormats,m=void 0===h?[]:h,g=e.events,v=(0,w.useRef)(void 0),y=u.locale,b=function(e){return u.formatMessage({id:e})},O=(0,w.useRef)(null),x=Boolean(r),k=!t&&x,S=function(e){v.current=e,s(e)},P=Mu(r,S,{dateFormats:d,dateTimeFormats:m,minDate:o,maxDate:a,valueToDate:i,dateToValue:c,hasTime:f}),j=P.reactDatePickerProps,_=P.timeInputProps,E=P.clearButtonProps,C=P.calendarButtonProps;return(0,_e.jsx)(pc,{immutable:t,id:n,tabIndex:"-1",children:(0,_e.jsxs)(dc,{immutable:t,ref:O,hasTime:f,onBlur:function(e){if("function"==typeof(null==g?void 0:g.onBlur)){var t=void 0!==v.current?v.current:r;g.onBlur(t)}e.stopPropagation()},children:[(0,_e.jsx)(Yi(),Bu(Bu({},j),{},{disabled:t,dateFormat:[].concat(we()(m),we()(d)),placeholderText:l,showMonthDropdown:!0,showYearDropdown:!0,scrollableYearDropdown:!1,fixedHeight:!0,showPopperArrow:!1,locale:y,customTimeInput:(0,_e.jsx)(zu,Bu({},_)),timeInputLabel:"",popperProps:Yu,todayButton:(0,_e.jsx)(Wu,{onChange:S,label:b("client.component.datePicker.todayLabel")})})),k&&(0,_e.jsx)(ia.Z,Bu({icon:"times",tabIndex:-1,"aria-label":b("client.component.datePicker.clearDateLabel")},E)),!t&&(0,_e.jsx)(ia.Z,Bu({icon:"calendar",tabIndex:-1},C))]})})})));function qu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Gu=function(e){var t=e.onChange,r=e.options,o=e.id,a=e.value,i=e.immutable,c=e.events,s=e.placeholder,u=(0,Ei.Z)(),l=(null==r?void 0:r.datePickerOptions)||{},f="".concat(Ci.Z.getLocalizedDateFormat(u.locale)),p=Ci.Z.getLocalizedDateFormatWithoutPunctuation(u.locale),d=[f,p,Ci.Z.useTwoDigitYear(f),Ci.Z.useTwoDigitYear(p)];return(0,_e.jsx)(Vu,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qu(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({id:o,value:a,onChange:t,dateFormats:d,hasTime:!1,immutable:i,placeholder:s,events:c},l))};function Ku(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Xu=(0,f.ZP)((function(e){var t=e.onChange,r=e.options,o=e.value,a=e.immutable,i=e.placeholder,c=(0,Ei.Z)(),s=(null==r?void 0:r.datePickerOptions)||{},u="".concat(Ci.Z.getLocalizedDateTimeFormat(c.locale)),l="".concat(Ci.Z.getLocalizedDateFormat(c.locale)),f=Ci.Z.getLocalizedDateTimeFormatWithoutPunctuation(c.locale),p=[u,f,Ci.Z.useTwoDigitYear(u),Ci.Z.useTwoDigitYear(f)],d=Ci.Z.getLocalizedDateFormatWithoutPunctuation(c.locale),h=[l,d,Ci.Z.useTwoDigitYear(l),Ci.Z.useTwoDigitYear(d)];return(0,_e.jsx)(Vu,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ku(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ku(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({value:o,onChange:t,dateTimeFormats:p,dateFormats:h,hasTime:!0,immutable:a,placeholder:i},s))}));var $u=i(18446),Qu=i.n($u);function Ju(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{s(r.next(e))}catch(e){a(e)}}function c(e){try{s(r.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,c)}s((r=r.apply(e,t||[])).next())}))}function el(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(s){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}}Object.create;function tl(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function nl(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;var rl=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function ol(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=rl.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var al=[".DS_Store","Thumbs.db"];function il(e){return"object"==typeof e&&null!==e}function cl(e){return fl(e.target.files).map((function(e){return ol(e)}))}function sl(e){return Ju(this,void 0,void 0,(function(){return el(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return ol(e)}))]}}))}))}function ul(e,t){return Ju(this,void 0,void 0,(function(){var n;return el(this,(function(r){switch(r.label){case 0:return e.items?(n=fl(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(pl))]):[3,2];case 1:return[2,ll(dl(r.sent()))];case 2:return[2,ll(fl(e.files).map((function(e){return ol(e)})))]}}))}))}function ll(e){return e.filter((function(e){return-1===al.indexOf(e.name)}))}function fl(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function pl(e){if("function"!=typeof e.webkitGetAsEntry)return hl(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?gl(t):hl(e)}function dl(e){return e.reduce((function(e,t){return nl(nl([],tl(e),!1),tl(Array.isArray(t)?dl(t):[t]),!1)}),[])}function hl(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=ol(t);return Promise.resolve(n)}function ml(e){return Ju(this,void 0,void 0,(function(){return el(this,(function(t){return[2,e.isDirectory?gl(e):vl(e)]}))}))}function gl(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var a=this;t.readEntries((function(t){return Ju(a,void 0,void 0,(function(){var a,i,c;return el(this,(function(s){switch(s.label){case 0:if(t.length)return[3,5];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return a=s.sent(),e(a),[3,4];case 3:return i=s.sent(),n(i),[3,4];case 4:return[3,6];case 5:c=Promise.all(t.map(ml)),r.push(c),o(),s.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function vl(e){return Ju(this,void 0,void 0,(function(){return el(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=ol(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var yl=i(58363);function bl(e){return function(e){if(Array.isArray(e))return Pl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Sl(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wl(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 Ol(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wl(Object(n),!0).forEach((function(t){xl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kl(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)return;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)||Sl(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.")}()}function Sl(e,t){if(e){if("string"==typeof e)return Pl(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)?Pl(e,t):void 0}}function Pl(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 jl="file-invalid-type",_l="file-too-large",El="file-too-small",Cl="too-many-files",Tl=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:jl,message:"File type must be ".concat(t)}},Dl=function(e){return{code:_l,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},Rl=function(e){return{code:El,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},Ml={code:Cl,message:"Too many files"};function Il(e,t){var n="application/x-moz-file"===e.type||(0,yl.Z)(e,t);return[n,n?null:Tl(t)]}function Al(e,t,n){if(Nl(e.size))if(Nl(t)&&Nl(n)){if(e.size>n)return[!1,Dl(n)];if(e.size<t)return[!1,Rl(t)]}else{if(Nl(t)&&e.size<t)return[!1,Rl(t)];if(Nl(n)&&e.size>n)return[!1,Dl(n)]}return[!0,null]}function Nl(e){return null!=e}function Zl(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,a=e.multiple,i=e.maxFiles,c=e.validator;return!(!a&&t.length>1||a&&i>=1&&t.length>i)&&t.every((function(e){var t=kl(Il(e,n),1)[0],a=kl(Al(e,r,o),1)[0],i=c?c(e):null;return t&&a&&!i}))}function Ll(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function Fl(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function Ul(e){e.preventDefault()}function Hl(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function Bl(e){return-1!==e.indexOf("Edge/")}function Wl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return Hl(e)||Bl(e)}function zl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return!Ll(e)&&t&&t.apply(void 0,[e].concat(r)),Ll(e)}))}}function Yl(){return"showOpenFilePicker"in window}function Vl(e){return Nl(e)?[{description:"Files",accept:Object.entries(e).filter((function(e){var t=kl(e,2),n=t[0],r=t[1],o=!0;return Xl(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),Array.isArray(r)&&r.every($l)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(e,t){var n=kl(t,2),r=n[0],o=n[1];return Ol(Ol({},e),{},xl({},r,o))}),{})}]:e}function ql(e){if(Nl(e))return Object.entries(e).reduce((function(e,t){var n=kl(t,2),r=n[0],o=n[1];return[].concat(bl(e),[r],bl(o))}),[]).filter((function(e){return Xl(e)||$l(e)})).join(",")}function Gl(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}function Kl(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}function Xl(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function $l(e){return/^.*\.[\w]+$/.test(e)}var Ql=["children"],Jl=["open"],ef=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],tf=["refKey","onChange","onClick"];function nf(e){return function(e){if(Array.isArray(e))return af(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||of(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rf(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)return;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)||of(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.")}()}function of(e,t){if(e){if("string"==typeof e)return af(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)?af(e,t):void 0}}function af(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}function cf(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 sf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cf(Object(n),!0).forEach((function(t){uf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function uf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lf(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}var ff=(0,w.forwardRef)((function(e,t){var n=e.children,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=sf(sf({},pf),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,a=t.maxSize,i=t.minSize,c=t.multiple,s=t.maxFiles,u=t.onDragEnter,l=t.onDragLeave,f=t.onDragOver,p=t.onDrop,d=t.onDropAccepted,h=t.onDropRejected,m=t.onFileDialogCancel,g=t.onFileDialogOpen,v=t.useFsAccessApi,y=t.autoFocus,b=t.preventDropOnDocument,O=t.noClick,x=t.noKeyboard,k=t.noDrag,S=t.noDragEventsBubbling,P=t.onError,j=t.validator,_=(0,w.useMemo)((function(){return ql(n)}),[n]),E=(0,w.useMemo)((function(){return Vl(n)}),[n]),C=(0,w.useMemo)((function(){return"function"==typeof g?g:gf}),[g]),T=(0,w.useMemo)((function(){return"function"==typeof m?m:gf}),[m]),D=(0,w.useRef)(null),R=(0,w.useRef)(null),M=rf((0,w.useReducer)(mf,hf),2),I=M[0],A=M[1],N=I.isFocused,Z=I.isFileDialogActive,L=(0,w.useRef)("undefined"!=typeof window&&window.isSecureContext&&v&&Yl()),F=function(){!L.current&&Z&&setTimeout((function(){R.current&&(R.current.files.length||(A({type:"closeDialog"}),T()))}),300)};(0,w.useEffect)((function(){return window.addEventListener("focus",F,!1),function(){window.removeEventListener("focus",F,!1)}}),[R,Z,T,L]);var U=(0,w.useRef)([]),H=function(e){D.current&&D.current.contains(e.target)||(e.preventDefault(),U.current=[])};(0,w.useEffect)((function(){return b&&(document.addEventListener("dragover",Ul,!1),document.addEventListener("drop",H,!1)),function(){b&&(document.removeEventListener("dragover",Ul),document.removeEventListener("drop",H))}}),[D,b]),(0,w.useEffect)((function(){return!r&&y&&D.current&&D.current.focus(),function(){}}),[D,y,r]);var B=(0,w.useCallback)((function(e){P?P(e):console.error(e)}),[P]),W=(0,w.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),U.current=[].concat(nf(U.current),[e.target]),Fl(e)&&Promise.resolve(o(e)).then((function(t){if(!Ll(e)||S){var n=t.length,r=n>0&&Zl({files:t,accept:_,minSize:i,maxSize:a,multiple:c,maxFiles:s,validator:j});A({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}})).catch((function(e){return B(e)}))}),[o,u,B,S,_,i,a,c,s,j]),z=(0,w.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=Fl(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&f&&f(e),!1}),[f,S]),Y=(0,w.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=U.current.filter((function(e){return D.current&&D.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),U.current=t,t.length>0||(A({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Fl(e)&&l&&l(e))}),[D,l,S]),V=(0,w.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=rf(Il(e,_),2),o=t[0],c=t[1],s=rf(Al(e,i,a),2),u=s[0],l=s[1],f=j?j(e):null;if(o&&u&&!f)n.push(e);else{var p=[c,l];f&&(p=p.concat(f)),r.push({file:e,errors:p.filter((function(e){return e}))})}})),(!c&&n.length>1||c&&s>=1&&n.length>s)&&(n.forEach((function(e){r.push({file:e,errors:[Ml]})})),n.splice(0)),A({acceptedFiles:n,fileRejections:r,type:"setFiles"}),p&&p(n,r,t),r.length>0&&h&&h(r,t),n.length>0&&d&&d(n,t)}),[A,c,_,i,a,s,p,d,h,j]),q=(0,w.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),U.current=[],Fl(e)&&Promise.resolve(o(e)).then((function(t){Ll(e)&&!S||V(t,e)})).catch((function(e){return B(e)})),A({type:"reset"})}),[o,V,B,S]),G=(0,w.useCallback)((function(){if(L.current){A({type:"openDialog"}),C();var e={multiple:c,types:E};window.showOpenFilePicker(e).then((function(e){return o(e)})).then((function(e){V(e,null),A({type:"closeDialog"})})).catch((function(e){Gl(e)?(T(e),A({type:"closeDialog"})):Kl(e)?(L.current=!1,R.current?(R.current.value=null,R.current.click()):B(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):B(e)}))}else R.current&&(A({type:"openDialog"}),C(),R.current.value=null,R.current.click())}),[A,C,T,v,V,B,E,c]),K=(0,w.useCallback)((function(e){D.current&&D.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),G()))}),[D,G]),X=(0,w.useCallback)((function(){A({type:"focus"})}),[]),$=(0,w.useCallback)((function(){A({type:"blur"})}),[]),Q=(0,w.useCallback)((function(){O||(Wl()?setTimeout(G,0):G())}),[O,G]),J=function(e){return r?null:e},ee=function(e){return x?null:J(e)},te=function(e){return k?null:J(e)},ne=function(e){S&&e.stopPropagation()},re=(0,w.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,o=e.role,a=e.onKeyDown,i=e.onFocus,c=e.onBlur,s=e.onClick,u=e.onDragEnter,l=e.onDragOver,f=e.onDragLeave,p=e.onDrop,d=lf(e,ef);return sf(sf(uf({onKeyDown:ee(zl(a,K)),onFocus:ee(zl(i,X)),onBlur:ee(zl(c,$)),onClick:J(zl(s,Q)),onDragEnter:te(zl(u,W)),onDragOver:te(zl(l,z)),onDragLeave:te(zl(f,Y)),onDrop:te(zl(p,q)),role:"string"==typeof o&&""!==o?o:"presentation"},n,D),r||x?{}:{tabIndex:0}),d)}}),[D,K,X,$,Q,W,z,Y,q,x,k,r]),oe=(0,w.useCallback)((function(e){e.stopPropagation()}),[]),ae=(0,w.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,o=e.onClick,a=lf(e,tf);return sf(sf({},uf({accept:_,multiple:c,type:"file",style:{display:"none"},onChange:J(zl(r,q)),onClick:J(zl(o,oe)),tabIndex:-1},n,R)),a)}}),[R,n,c,q,r]);return sf(sf({},I),{},{isFocused:N&&!r,getRootProps:re,getInputProps:ae,rootRef:D,inputRef:R,open:J(G)})}(lf(e,Ql)),o=r.open,a=lf(r,Jl);return(0,w.useImperativeHandle)(t,(function(){return{open:o}}),[o]),O().createElement(w.Fragment,null,n(sf(sf({},a),{},{open:o})))}));ff.displayName="Dropzone";var pf={disabled:!1,getFilesFromEvent:function(e){return Ju(this,void 0,void 0,(function(){return el(this,(function(t){return il(e)&&il(e.dataTransfer)?[2,ul(e.dataTransfer,e.type)]:function(e){return il(e)&&il(e.target)}(e)?[2,cl(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,sl(e)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};ff.defaultProps=pf,ff.propTypes={children:o().func,accept:o().objectOf(o().arrayOf(o().string)),multiple:o().bool,preventDropOnDocument:o().bool,noClick:o().bool,noKeyboard:o().bool,noDrag:o().bool,noDragEventsBubbling:o().bool,minSize:o().number,maxSize:o().number,maxFiles:o().number,disabled:o().bool,getFilesFromEvent:o().func,onFileDialogCancel:o().func,onFileDialogOpen:o().func,useFsAccessApi:o().bool,autoFocus:o().bool,onDragEnter:o().func,onDragLeave:o().func,onDragOver:o().func,onDrop:o().func,onDropAccepted:o().func,onDropRejected:o().func,onError:o().func,validator:o().func};const df=ff;var hf={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function mf(e,t){switch(t.type){case"focus":return sf(sf({},e),{},{isFocused:!0});case"blur":return sf(sf({},e),{},{isFocused:!1});case"openDialog":return sf(sf({},hf),{},{isFileDialogActive:!0});case"closeDialog":return sf(sf({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return sf(sf({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return sf(sf({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return sf({},hf);default:return e}}function gf(){}var vf,yf,bf,wf,Of,xf,kf,Sf,Pf,jf,_f,Ef=i(69829),Cf=i(40953),Tf=x.ZP.section.withConfig({displayName:"StyledSection"})(vf||(vf=b()(["\n flex: 1;\n display: flex;\n justify-content: flex-end;\n"]))),Df=x.ZP.div.withConfig({displayName:"StyledButtonsWrapper"})(yf||(yf=b()(["\n display: flex;\n align-items: center;\n\n "," {\n margin: 0;\n border-radius: 50%;\n padding: ",";\n\n a:hover {\n color: unset;\n }\n }\n"])),vt.Z,qe.Z.space(-2)),Rf=x.ZP.span.withConfig({displayName:"StyledDropzoneBaseline"})(bf||(bf=b()(["\n opacity: 0;\n"]))),Mf=x.ZP.div.withConfig({displayName:"StyledDropzone"})(wf||(wf=b()(["\n width: 100%;\n\n &:hover {\n "," {\n background-color: ",";\n }\n }\n"])),vt.Z,xe.FS.color("backgroundItemHover")),If=x.ZP.div.withConfig({displayName:"StyledUploadInput"})(Of||(Of=b()(["\n ","\n cursor: ",";\n background-color: ",";\n color: ",";\n padding: "," 0 0 0;\n display: flex;\n\n "," {\n float: right;\n position: relative;\n top: -",";\n margin: 0;\n border-radius: 50%;\n padding: ",";\n }\n"])),(0,lt.Z)(),(function(e){return e.immutable?"not-allowed":"pointer"}),xe.FS.color("paper"),(function(e){return e.immutable?Cf.v.shade2(e):Cf.v.base(e)}),qe.Z.space(-2),vt.Z,qe.Z.space(-3.1),qe.Z.space(-1.5)),Af=x.ZP.div.withConfig({displayName:"StyledUploadProgress"})(xf||(xf=b()(["\n && {\n padding-top: ",";\n text-align: center;\n display: inline-block;\n }\n"])),qe.Z.space(-2)),Nf=(0,x.ZP)(Ef.Fe).withConfig({displayName:"StyledUploadProgressText"})(kf||(kf=b()(["\n && {\n ","\n }\n"])),(0,lt.Z)({fontSize:qe.Z.font(-1)})),Zf=x.ZP.div.withConfig({displayName:"StyledUploadProgressIconAndText"})(Sf||(Sf=b()(["\n && {\n display: flex;\n justify-content: center;\n align-items: center;\n\n span {\n margin-left: ",";\n }\n }\n"])),qe.Z.space(-2)),Lf=x.ZP.div.withConfig({displayName:"StyledView"})(Pf||(Pf=b()(["\n display: flex;\n justify-content: space-between;\n padding-top: ",";\n"])),qe.Z.space(-2));function Ff(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 Uf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ff(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ff(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Hf=function(e){var t=e.onDrop,n=e.immutable,r=e.text,o=e.onChoose;return(0,_e.jsxs)(If,{immutable:n,children:[(0,_e.jsx)(df,{onDrop:function(e){var n=e.map((function(e){return Object.assign(e,{preview:URL.createObjectURL(e)})}));t(n[0])},multiple:!1,disabled:n,title:r||"drag and drop or click",children:function(e){var t=e.getRootProps,n=e.getInputProps;return(0,_e.jsx)(Tf,{children:(0,_e.jsxs)(Mf,Uf(Uf({},t()),{},{children:[(0,_e.jsx)("input",Uf({},n())),jf||(jf=(0,_e.jsx)(Ve.Z,{icon:"arrow-to-top"})),_f||(_f=(0,_e.jsx)(Rf,{children:"Dropzone"}))]}))})}}),o&&(0,_e.jsx)(Ve.Z,{onClick:function(e){o(),e.stopPropagation()},icon:"folder",label:"browse docs",iconOnly:!0})]})};var Bf=i(73906),Wf=function(e){var t=Math.floor(Math.log(e)/Math.log(1024));return"".concat(1*(e/Math.pow(1024,t)).toFixed(2)," ").concat(["Bytes","KB","MB","GB","TB"][t])};const zf=function(e){var t=e.file,n=e.text;return(0,_e.jsxs)(Af,{children:[(0,_e.jsx)(Bf.Z,{alt:t.name,caption:t.name,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:t.preview,thumbnailUrl:t.type.startsWith("image")?t.preview:null}),(0,_e.jsxs)(Zf,{children:[(0,_e.jsx)(Pa.Z,{position:ye.Z.position.PREPEND}),(0,_e.jsxs)(Nf,{children:[n||"uploading"," (",Wf(t.size),")"]})]})]})};var Yf=i(28247),Vf=i(41291);function qf(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 Gf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qf(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qf(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Kf=function(e){var t,n=e.value,r=e.downloadTitle,o=e.immutable,a=e.onUpload,i=e.deleteTitle,c=null===(t=n.binaryLink)||void 0===t?void 0:t.startsWith("blob:");return(0,_e.jsxs)(Lf,{className:"StyledView",children:[(0,_e.jsx)(Bf.Z,Gf(Gf({alt:n.fileName},c&&{caption:n.fileName}),{},{fileName:n.fileName,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:n.binaryLink,thumbnailUrl:n.thumbnailLink})),(0,_e.jsxs)(Df,{children:[!o&&(0,_e.jsx)(Ve.Z,{icon:"trash",onClick:function(){return a(null)},tabIndex:-1,title:i||"delete"}),(0,_e.jsx)(Ve.Z,{children:(0,_e.jsx)(Vf.Z,{neutral:!0,icon:"arrow-to-bottom",target:"_blank",href:Yf.Z.getDownloadUrl(n.binaryLink),tabIndex:-1,title:r||"download"})})]})]})};function Xf(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 $f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xf(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xf(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Qf=function(e){var t=e.value,n=e.textResources,r=e.onUpload,o=e.onChoose,a=(0,w.useRef)(t),i=(0,w.useState)({isUploading:!1,previewFile:null}),c=H()(i,2),s=c[0],u=c[1];return(0,w.useEffect)((function(){Qu()(a.current,t)||u({isUploading:!1,previewFile:null}),a.current=t}),[t]),null!=t&&t.binaryLink?(0,_e.jsx)(Kf,$f($f({},e),{},{deleteTitle:n.delete,downloadTitle:n.download})):s.isUploading?(0,_e.jsx)(zf,$f({file:s.previewFile,text:n.uploading},e)):(0,_e.jsx)(Hf,$f($f({},e),{},{onDrop:function(e){!function(e){u({isUploading:!0,previewFile:e})}(e),r(e)},onChoose:o}))};Qf.defaultProps={textResources:{}};const Jf=Qf;var ep=function(e){return(0,_e.jsx)(Jf,{onUpload:function(t){null===t?e.onChange&&e.onChange(null):e.options.upload&&e.options.upload(t)},onChoose:e.options.choose,immutable:e.immutable,textResources:{upload:e.options.uploadText,uploading:e.options.uploadingText,delete:e.options.deleteText,download:e.options.downloadText},value:e.value?e.value:null})};ep.defaultProps={options:{}};const tp=ep;var np,rp,op=function(e){return-1*Math.abs(e)},ap=x.ZP.input.withConfig({displayName:"StyledDurationEdit"})(np||(np=b()(["\n &&&& {\n ","\n flex-grow: 0;\n width: ","px;\n min-width: 2.5ch;\n }\n"])),dt,(function(e){return e.width})),ip=x.ZP.label.withConfig({displayName:"StyledDurationEditFocusable"})(rp||(rp=b()(["\n &&& {\n align-items: center;\n display: flex;\n flex-wrap: nowrap;\n margin-bottom: 0; /* reset bootstrap */\n margin-left: ",";\n\n &:first-child {\n margin-left: 0;\n }\n\n > span {\n color: ",";\n cursor: ",";\n }\n }\n"])),qe.Z.space(1),(function(e){return e.immutable?xe.FS.color("textDisabled"):xe.FS.color("text")}),(function(e){return e.immutable?"not-allowed":"default"})),cp=function(e){var t=e.value,n=e.immutable,r=e.onChange,o=e.options,a=Ci.Z.millisecondsToDuration(t),i=(0,w.useState)(!1),c=H()(i,2),s=c[0],u=c[1],l=function(e,t){var n,o,i=null!==t?t:a.minutes,c=null!==e?e:a.hours;""!==i||""!==c?(i>=60&&(c=0),r((o=i,(n=c)||o?((n<0||o<0)&&(n=op(n),o=op(o)),60*(n||0)*6e4+6e4*(o||0)):null))):r(null)},f=function(){u(!0)},p=function(e){e.charCode>=48&&e.charCode<=57||45===e.charCode&&!0===o.allowNegative||e.preventDefault()},d=function(){return!0===o.allowNegative?"-?d+":"d+"},h=function(){return s||"number"==typeof t},m=function(e){return 9*(e+"").length},g=n&&Boolean(a.seconds);return(0,_e.jsxs)(pt,{onBlur:function(){u(!1)},immutable:n,children:[(0,_e.jsxs)(ip,{immutable:n,children:[(0,_e.jsx)(ap,{disabled:n,immutable:n,min:!0===o.allowNegative?void 0:0,onChange:function(){},onFocus:f,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");l(t,null)},onKeyPress:p,pattern:d(),step:1,width:m(a.hours),type:"number",value:"number"!=typeof a.hours||0===a.hours&&!n?"":a.hours+""}),h()&&(0,_e.jsx)(et.ZP.Span,{children:o.hoursLabel})]}),(0,_e.jsxs)(ip,{immutable:n,children:[(0,_e.jsx)(ap,{disabled:n,immutable:n,min:!0!==o.allowNegative||null!==a.hours&&0!==a.hours?0:void 0,onChange:function(){},onFocus:f,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");l(null,t)},onKeyPress:p,pattern:d(),step:1,width:m(a.minutes),type:"number",value:a.minutes+""}),h()&&(0,_e.jsx)(et.ZP.Span,{children:o.minutesLabel})]}),g&&(0,_e.jsxs)(ip,{immutable:n,children:[(0,_e.jsx)(ap,{disabled:n,immutable:n,onChange:function(){},width:m(a.seconds),type:"number",value:a.seconds+""}),h()&&(0,_e.jsx)(et.ZP.Span,{children:o.secondsLabel})]})]})};cp.defaultProps={options:{hoursLabel:"hrs",minutesLabel:"min",secondsLabel:"s"}};const sp=cp;var up;const lp=x.ZP.input.attrs((function(e){return{type:"text"}})).withConfig({displayName:"StyledStringEdit"})(up||(up=b()(["\n &&&& {\n ","\n }\n"])),dt);const fp=He.Z.Debouncer((function(e){return(0,_e.jsxs)(pt,{immutable:e.immutable,children:[(0,_e.jsx)(lp,{disabled:e.immutable,id:e.id,name:e.name,onChange:function(t){return e.onChange(t.target.value)},immutable:e.immutable,value:e.value||""}),e.value&&(0,_e.jsx)(mt,{children:(0,_e.jsx)(Vf.Z,{href:"mailto:".concat(e.value.toString()),icon:"envelope",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));var pp=i(50008),dp=i.n(pp),hp=i(2205),mp=i.n(hp),gp=i(99489),vp=i.n(gp),yp=i(78718),bp=i.n(yp);function wp(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 Op(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wp(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function xp(){xp=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var a=new RegExp(e,r);return t.set(a,o||t.get(e)),vp()(a,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var a=0;void 0===e[o[a]]&&a+1<o.length;)a++;t[n]=e[o[a]]}return t}),Object.create(null))}return mp()(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var o=n.indices;o&&(o.groups=r(o,this))}return n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var a=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(e,t){var n=a[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var i=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=dp()(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,i)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},xp.apply(this,arguments)}var kp,Sp=["key","display","postcode","city","country","latitude","longitude"],Pp=function(e){return e*Math.PI/180},jp=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,a=e.latitude,i=e.longitude,c=t?"- ".concat(t):"",s=n?"/ ".concat(n.display):"";return{key:r,display:"".concat(r," ").concat(o," ").concat(c," ").concat(s),postcode:r,city:o,country:n,latitude:Pp(a),longitude:Pp(i)}};function _p(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Ep(){}function Cp(e){return!!(e||"").match(/\d/)}function Tp(e){return null==e}function Dp(e){return"number"==typeof e&&isNaN(e)}function Rp(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Mp(e,t){void 0===t&&(t=!0);var n="-"===e[0],r=n&&t,o=(e=e.replace("-","")).split(".");return{beforeDecimal:o[0],afterDecimal:o[1]||"",hasNegation:n,addNegation:r}}function Ip(e,t,n){for(var r="",o=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||o;return r}function Ap(e,t){return Array(t+1).join(e)}function Np(e){var t=e+"",n="-"===t[0]?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),o=r[0],a=r[1];if(!(a=Number(a)))return n+o;var i=1+a,c=(o=o.replace(".","")).length;return i<0?o="0."+Ap("0",Math.abs(i))+o:i>=c?o+=Ap("0",i-c):o=(o.substring(0,i)||"0")+"."+o.substring(i),n+o}function Zp(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,o=Mp(e),a=o.beforeDecimal,i=o.afterDecimal,c=o.hasNegation,s=parseFloat("0."+(i||"0")),u=(i.length<=t?"0."+i:s.toFixed(t)).split(".");return""+(c?"-":"")+a.split("").reverse().reduce((function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e}),u[0])+(r?".":"")+Ip(u[1]||"",t,n)}function Lp(e,t){if(e.value=e.value,null!==e){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}function Fp(e){return Math.max(e.selectionStart,e.selectionEnd)}function Up(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function Hp(e,t,n,r){var o,a,i,c=e.length;if(o=t,a=0,i=c,t=Math.min(Math.max(o,a),i),"left"===r){for(;t>=0&&!n[t];)t--;-1===t&&(t=n.indexOf(!0))}else{for(;t<=c&&!n[t];)t++;t>c&&(t=n.lastIndexOf(!0))}return-1===t&&(t=c),t}function Bp(e){for(var t=Array.from({length:e.length+1}).map((function(){return!0})),n=0,r=t.length;n<r;n++)t[n]=Boolean(Cp(e[n])||Cp(e[n-1]));return t}function Wp(e,t,n,r,o,a){void 0===a&&(a=Ep);var i,c,s=(0,w.useRef)(),u=(i=function(e){var t,a;return Tp(e)||Dp(e)?(a="",t=""):"number"==typeof e||n?(a="number"==typeof e?Np(e):e,t=r(a)):(a=o(e,void 0),t=e),{formattedValue:t,numAsString:a}},(c=(0,w.useRef)(i)).current=i,(0,w.useRef)((function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return c.current.apply(c,e)})).current),l=(0,w.useState)((function(){return u(t)})),f=l[0],p=l[1];return(0,w.useMemo)((function(){Tp(e)?s.current=void 0:(s.current=u(e),p(s.current))}),[e,u]),[f,function(e,t){p({formattedValue:e.formattedValue,numAsString:e.value}),a(e,t)}]}function zp(e){return e.replace(/[^0-9]/g,"")}function Yp(e){return e}function Vp(e){var t=e.type;void 0===t&&(t="text");var n=e.displayType;void 0===n&&(n="input");var r=e.customInput,o=e.renderText,a=e.getInputRef,i=e.format;void 0===i&&(i=Yp);var c=e.removeFormatting;void 0===c&&(c=zp);var s=e.defaultValue,u=e.valueIsNumericString,l=e.onValueChange,f=e.isAllowed,p=e.onChange;void 0===p&&(p=Ep);var d=e.onKeyDown;void 0===d&&(d=Ep);var h=e.onMouseUp;void 0===h&&(h=Ep);var m=e.onFocus;void 0===m&&(m=Ep);var g=e.onBlur;void 0===g&&(g=Ep);var v=e.value,y=e.getCaretBoundary;void 0===y&&(y=Bp);var b=e.isValidInputCharacter;void 0===b&&(b=Cp);var x=_p(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter"]),k=Wp(v,s,Boolean(u),i,c,l),S=k[0],P=S.formattedValue,j=S.numAsString,_=k[1],E=(0,w.useRef)();(0,w.useEffect)((function(){var e=i(j);if(void 0===E.current||e!==E.current){var t=R.current,n=c(e,void 0);F({formattedValue:e,numAsString:n,input:t,setCaretPosition:!0,source:kp.props,event:void 0})}}));var C=(0,w.useState)(!1),T=C[0],D=C[1],R=(0,w.useRef)(null),M=(0,w.useRef)({setCaretTimeout:null,focusTimeout:null});(0,w.useEffect)((function(){return D(!0),function(){clearTimeout(M.current.setCaretTimeout),clearTimeout(M.current.focusTimeout)}}),[]);var I=i,A=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},N=function(e,t,n){Lp(e,t),M.current.setCaretTimeout=setTimeout((function(){e.value===n&&Lp(e,t)}),0)},Z=function(e,t,n){return Hp(e,t,y(e),n)},L=function(e,t,n){var r=y(t),o=function(e,t,n,r,o,a){var i=o.findIndex((function(e){return e})),c=e.slice(0,i);t||n.startsWith(c)||(n=c+n,r+=c.length);for(var s=n.length,u=e.length,l={},f=new Array(s),p=0;p<s;p++){f[p]=-1;for(var d=0,h=u;d<h;d++)if(n[p]===e[d]&&!0!==l[d]){f[p]=d,l[d]=!0;break}}for(var m=r;m<s&&(-1===f[m]||!a(n[m]));)m++;var g=m===s||-1===f[m]?u:f[m];for(m=r-1;m>0&&-1===f[m];)m--;var v=-1===m||-1===f[m]?0:f[m]+1;return v>g?g:r-v<g-r?v:g}(t,P,e,n,r,b);return o=Hp(t,o,r)},F=function(e){var t=e.formattedValue;void 0===t&&(t="");var n=e.input,r=e.setCaretPosition;void 0===r&&(r=!0);var o=e.source,a=e.event,i=e.numAsString,c=e.caretPos;if(n){if(void 0===c&&r){var s=e.inputValue||n.value,u=Fp(n);n.value=t,c=L(s,t,u)}n.value=t,r&&void 0!==c&&N(n,c,t)}t!==P&&function(e,t){E.current=e.formattedValue,_(e,t)}(A(t,i),{event:a,source:o})},U=!T||"undefined"==typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",H=Object.assign({inputMode:U},x,{type:t,value:P,onChange:function(e){(function(e,t,n){var r=function(e,t){for(var n=0,r=0,o=e.length,a=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[a-1-r]&&a-r>n&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:a-r}}}(P,e),o=Object.assign(Object.assign({},r),{lastValue:P}),a=c(e,o),i=I(a);if(a=c(i,void 0),f&&!f(A(i,a))){var s=t.target,u=Fp(s),l=L(e,P,u);return N(s,l,P),!1}return F({formattedValue:i,numAsString:a,inputValue:e,event:t,source:n,setCaretPosition:!0,input:t.target}),!0})(e.target.value,e,kp.event)&&p(e)},onKeyDown:function(e){var t,n=e.target,r=e.key,o=n.selectionStart,a=n.selectionEnd,i=n.value;if(void 0===i&&(i=""),"ArrowLeft"===r||"Backspace"===r?t=Math.max(o-1,0):"ArrowRight"===r?t=Math.min(o+1,i.length):"Delete"===r&&(t=o),void 0!==t&&o===a){var c=t;if("ArrowLeft"===r||"ArrowRight"===r)c=Z(i,t,"ArrowLeft"===r?"left":"right");else"Delete"!==r||b(i[t])?"Backspace"!==r||b(i[t])||(c=Z(i,t,"left")):c=Z(i,t,"right");c!==t&&N(n,c,i),e.isUnitTestRun&&N(n,c,i),d(e)}else d(e)},onMouseUp:function(e){var t=e.target,n=t.selectionStart,r=t.selectionEnd,o=t.value;if(void 0===o&&(o=""),n===r){var a=Z(o,n);a!==n&&N(t,a,o)}h(e)},onFocus:function(e){e.persist&&e.persist();var t=e.target;R.current=t,M.current.focusTimeout=setTimeout((function(){var n=t.selectionStart,r=t.selectionEnd,o=t.value;void 0===o&&(o="");var a=Z(o,n);a===n||0===n&&r===o.length||N(t,a,o),m(e)}),0)},onBlur:function(e){R.current=null,clearTimeout(M.current.focusTimeout),clearTimeout(M.current.setCaretTimeout),g(e)}});if("text"===n)return o?O().createElement(O().Fragment,null,o(P,x)||null):O().createElement("span",Object.assign({},x,{ref:a}),P);if(r){var B=r;return O().createElement(B,Object.assign({},H,{ref:a}))}return O().createElement("input",Object.assign({},H,{ref:a}))}function qp(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix;void 0===o&&(o="");var a=t.suffix;void 0===a&&(a="");var i=t.allowNegative,c=t.thousandsGroupStyle;if(void 0===c&&(c="thousand"),""===e||"-"===e)return e;var s=Gp(t),u=s.thousandSeparator,l=s.decimalSeparator,f=0!==n&&-1!==e.indexOf(".")||n&&r,p=Mp(e,i),d=p.beforeDecimal,h=p.afterDecimal,m=p.addNegation;return void 0!==n&&(h=Ip(h,n,!!r)),u&&(d=function(e,t,n){var r=function(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}(n),o=e.search(/[1-9]/);return o=-1===o?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(r,"$1"+t)}(d,u,c)),o&&(d=o+d),a&&(h+=a),m&&(d="-"+d),e=d+(f&&l||"")+h}function Gp(e){var t=e.decimalSeparator;void 0===t&&(t=".");var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return!0===n&&(n=","),r||(r=[t,"."]),{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function Kp(e,t,n){var r;void 0===t&&(t=Up(e));var o=n.allowNegative,a=n.prefix;void 0===a&&(a="");var i=n.suffix;void 0===i&&(i="");var c=n.decimalScale,s=t.from,u=t.to,l=u.start,f=u.end,p=Gp(n),d=p.allowedDecimalSeparators,h=p.decimalSeparator,m=e[f]===h;if(Cp(e)&&(e===a||e===i)&&""===t.lastValue)return e;if(f-l==1&&-1!==d.indexOf(e[l])){var g=0===c?"":h;e=e.substring(0,l)+g+e.substring(l+1,e.length)}var v=function(e,t,n){var r=!1,o=!1;a.startsWith("-")?r=!1:e.startsWith("--")?(r=!1,o=!0):i.startsWith("-")&&e.length===i.length?r=!1:"-"===e[0]&&(r=!0);var c=r?1:0;return o&&(c=2),c&&(e=e.substring(c),t-=c,n-=c),{value:e,start:t,end:n,hasNegation:r}},y=v(e,l,f),b=y.hasNegation;e=(r=y).value,l=r.start,f=r.end;var w=v(t.lastValue,s.start,s.end),O=w.start,x=w.end,k=w.value,S=e.substring(l,f);!(e.length&&k.length&&(O>k.length-i.length||x<a.length))||S&&i.startsWith(S)||(e=k);var P=0;e.startsWith(a)?P+=a.length:l<a.length&&(P=l),f-=P;var j=(e=e.substring(P)).length,_=e.length-i.length;e.endsWith(i)?j=_:(f>_||f>e.length-i.length)&&(j=f),e=e.substring(0,j);var E=(e=((e=function(e,t){void 0===e&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),a=r.test(e);return e=e.replace(/-/g,""),o&&!a&&t&&(e="-"+e),e}(b?"-"+e:e,o)).match(function(e,t){return new RegExp("(^-)|[0-9]|"+Rp(e),t?"g":void 0)}(h,!0))||[]).join("")).indexOf(h),C=Mp(e=e.replace(new RegExp(Rp(h),"g"),(function(e,t){return t===E?".":""})),o),T=C.beforeDecimal,D=C.afterDecimal,R=C.addNegation;return u.end-u.start<s.end-s.start&&""===T&&m&&!parseFloat(D)&&(e=R?"-":""),e}function Xp(e){var t=(e=function(e){var t=Gp(e),n=t.thousandSeparator,r=t.decimalSeparator,o=e.prefix;void 0===o&&(o="");var a=e.allowNegative;if(void 0===a&&(a=!0),n===r)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+n+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+r+" (default value for decimalSeparator is .)\n ");return o.startsWith("-")&&a&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+o+"\n allowNegative: "+a+"\n "),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}(e)).decimalSeparator;void 0===t&&(t=".");e.allowedDecimalSeparators,e.thousandsGroupStyle,e.suffix;var n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;void 0===o&&(o=Ep);var a=e.onBlur;void 0===a&&(a=Ep);var i=e.thousandSeparator,c=e.decimalScale,s=e.fixedDecimalScale,u=e.prefix;void 0===u&&(u="");var l=e.defaultValue,f=e.value,p=e.valueIsNumericString,d=e.onValueChange,h=_p(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=function(t){return qp(t,e)},g=function(t,n){return Kp(t,n,e)},v=p;Tp(f)?Tp(l)||(v=null!=p?p:"number"==typeof l):v=null!=p?p:"number"==typeof f;var y=function(e){return Tp(e)||Dp(e)?e:("number"==typeof e&&(e=Np(e)),v&&"number"==typeof c?Zp(e,c,Boolean(s)):e)},b=Wp(y(f),y(l),Boolean(v),m,g,d),w=b[0],O=w.numAsString,x=w.formattedValue,k=b[1];return Object.assign(Object.assign({},h),{value:x,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===t||Cp(e)},onValueChange:k,format:m,removeFormatting:g,getCaretBoundary:function(t){return function(e,t){var n=t.prefix;void 0===n&&(n="");var r=t.suffix;void 0===r&&(r="");var o=Array.from({length:e.length+1}).map((function(){return!0})),a="-"===e[0];o.fill(!1,0,n.length+(a?1:0));var i=e.length;return o.fill(!1,i-r.length+1,i+1),o}(t,e)},onKeyDown:function(t){var r=t.target,a=t.key,l=r.selectionStart,f=r.selectionEnd,p=r.value;if(void 0===p&&(p=""),l===f){"Backspace"===a&&"-"===p[0]&&l===u.length+1&&n&&Lp(r,1);var d=Gp(e),h=d.decimalSeparator,m=d.allowedDecimalSeparators;"Backspace"===a&&p[l-1]===h&&c&&s&&(Lp(r,l-1),t.preventDefault()),(null==m?void 0:m.includes(a))&&p[l]===h&&Lp(r,l+1);var g=!0===i?",":i;"Backspace"===a&&p[l-1]===g&&Lp(r,l-1),"Delete"===a&&p[l]===g&&Lp(r,l+1),o(t)}else o(t)},onBlur:function(t){var n=O;if(n.match(/\d/g)||(n=""),r||(n=function(e){if(!e)return e;var t="-"===e[0];t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",o=n[1]||"";return(t?"-":"")+r+(o?"."+o:"")}(n)),s&&c&&(n=Zp(n,c,s)),n!==O){var o=qp(n,e);k({formattedValue:o,value:n,floatValue:parseFloat(n)},{event:t,source:kp.event})}a(t)}})}function $p(e){var t=Xp(e);return O().createElement(Vp,Object.assign({},t))}!function(e){e.event="event",e.props="prop"}(kp||(kp={}));var Qp,Jp=["immutable"];function ed(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const td=(0,x.ZP)((function(e){e.immutable;var t=Ye()(e,Jp);return(0,_e.jsx)($p,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ed(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ed(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t))})).withConfig({displayName:"StyledNumberEdit"})(Qp||(Qp=b()(["\n &&&& {\n ","\n }\n"])),dt);function nd(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 rd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nd(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var od=function(e){return 0!==e?Math.ceil(Math.log10(Math.abs(e)+1)):1},ad=function(e){return null!=e&&!isNaN(parseFloat(e))},id=function(e,t,n){return!ad(n)||!(ad(t)&&n>t)&&!(ad(e)&&n<e)},cd=function(e,t){return function(n){var r=n.floatValue;return od(r)<od(e)||id(e,t,r)}};const sd=(0,f.ZP)(He.Z.Debouncer((function(e){var t,n=(t=e.intl.locale,{thousandSeparator:1111..toLocaleString(t).replace(/1/g,""),decimalSeparator:1.1.toLocaleString(t).replace(/1/g,"")}),r=n.thousandSeparator,o=n.decimalSeparator,a=e.options||{},i=a.prePointDigits,c=a.postPointDigits,s=a.minValue,u=a.maxValue,l=a.allowNegative,f=a.fixedDecimalScale,p=a.suffix,d=a.prefix,h=a.format,m=function(e,t,n){if(e){var r=Math.pow(10,e)-(t?1/Math.pow(10,t):1);return n&&n>r?n:r}return n}(i,c,u),g=rd(rd({isAllowed:cd(s,m),allowNegative:!!l},isNaN(c)?{}:{decimalScale:c}),{},{fixedDecimalScale:!!f});return(0,_e.jsx)(pt,{immutable:e.immutable,children:(0,_e.jsx)(td,rd(rd({decimalSeparator:o,disabled:e.immutable,id:e.id,valueIsNumericString:!0,name:e.name,onValueChange:function(t){e.onChange&&id(s,m,t.floatValue)&&e.onChange(void 0!==t.floatValue?t.floatValue:null)},immutable:e.immutable,thousandSeparator:r,value:e.value,suffix:p,prefix:d},g),{},{format:h,placeholder:e.placeholder,onBlur:function(t){var n,r=!(n=t.target.value)||isNaN(n)?null:parseFloat(n);e.onChange&&!id(s,m,r)&&(t.target.value=null)}}))})}),800));const ud=He.Z.Debouncer((function(e){var t=e.value,n=e.onChange,r=e.options,o=e.immutable,a=e.name,i=e.id,c=e.placeholder,s=r||{},u=s.minValue,l=s.maxValue,f=s.format,p=s.allowLeadingZeros,d=s.suffix;return(0,_e.jsx)(pt,{immutable:o,children:(0,_e.jsx)(td,{isAllowed:cd(u,l),allowNegative:!0,decimalScale:0,disabled:o,id:i,name:a,onValueChange:function(e){var t=e.value,r=e.floatValue,o=p?t:r;void 0===o&&(o=null),id(u,l,r)&&n(o)},value:t,allowLeadingZeros:p,suffix:d,format:f,placeholder:c})})}),800);var ld,fd,pd,dd=x.ZP.div.withConfig({displayName:"StyledWrapper"})(ld||(ld=b()(["\n display: flex;\n justify-content: stretch;\n"]))),hd=x.ZP.div.withConfig({displayName:"StyledLocationWrapper"})(fd||(fd=b()(["\n flex-grow: 1;\n"]))),md=x.ZP.div.withConfig({displayName:"StyledDistanceWrapper"})(pd||(pd=b()(["\n width: 50px;\n border-left: 1px solid ",";\n margin-left: ",";\n padding-left: ",";\n"])),xe.FS.color("border"),qe.Z.space(-.8),qe.Z.space(.5));function gd(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 vd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gd(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const yd=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.onChange,a=e.options,i=void 0===a?{}:a,c=i.suggestions,s=i.isLoading,u=i.fetchSuggestions,l=i.latitudeField,f=i.longitudeField,p=i.emptySearchText,d=i.noResultsText,h=i.kmSuffixText,m=r?r.distance:0,g=function(e){return null!=e&&e.latitude&&null!=e&&e.longitude?bp()(e,Sp):void 0}(r),v=function(e){return e?e.map(jp):[]}(c);return(0,_e.jsxs)(dd,{children:[(0,_e.jsx)(hd,{children:(0,_e.jsx)(ti,{id:t,immutable:n,onChange:function(e){o(vd(vd({},function(e,t){return t?Op(Op({},e),bp()(t,Sp)):Hr()(e,Sp)}(r,e)),{},{latitudeField:l,longitudeField:f}))},isLoading:s,options:v,searchOptions:function(e){var t=function(e){if(!e)return null;var t=we()(e.matchAll(xp(/([\d]*)([^\d\s]*)/g,{postcode:1,city:2}))).map((function(e){return e.groups})),n=t.find((function(e){return e.postcode})),r=t.find((function(e){return e.city}));return Op(Op({},r?{city:r.city}:{}),n?{postcode:n.postcode}:{})}(e);u(t,null)},fetchOptions:function(e){e||u(null,null)},value:g,noResultsComp:function(e){return e.inputValue?d:p}})}),(0,_e.jsx)(md,{children:(0,_e.jsx)(ud,{value:m,onChange:function(e){o(vd(vd({},r),{},{distance:e}))},immutable:n,options:{minValue:0,maxValue:100,suffix:" ".concat(h)}})})]})};var bd,wd=(0,w.lazy)((function(){return i.e(85).then(i.bind(i,17676))})),Od=function(e){var t=e.onChange,n=e.immutable,r=e.value,o=e.options;if(n)return(0,_e.jsx)(et.ZP.Span,{children:(0,_e.jsx)("div",{dangerouslySetInnerHTML:{__html:r}})});var a=o||{},i=a.contentLang,c=a.ckEditorConfig;return(0,_e.jsx)(w.Suspense,{fallback:bd||(bd=(0,_e.jsx)("i",{})),children:(0,_e.jsx)(wd,{onChange:function(e){t&&t(e)},value:r,contentLang:i,ckEditorConfig:c})})};Od.defaultProps={value:""};const xd=Od;var kd,Sd,Pd,jd=i(58808),_d=i.n(jd),Ed=x.ZP.div.withConfig({displayName:"StyledLocationEdit"})(kd||(kd=b()(["\n && {\n ","\n position: relative;\n\n div {\n :nth-of-type(1) {\n flex: 0 0 13ch;\n margin-right: ",";\n }\n\n :nth-of-type(2) {\n flex: 1 1 auto;\n }\n }\n\n > span {\n flex: 0 0 auto;\n margin-right: ",";\n color: ",";\n }\n\n .react-autosuggest__input {\n ","\n width: 100%;\n }\n\n .react-autosuggest__suggestions-container--open {\n width: calc(100% + 17.5px);\n background-color: ",";\n box-shadow: 0 0 6px ",";\n border: 1px solid ",";\n bottom: -9px;\n left: -10px;\n max-height: 300px;\n overflow-y: auto;\n position: absolute;\n transform: translateY(100%);\n z-index: 2; // higher than StyledIndicatorsContainerWrapper\n }\n\n .react-autosuggest__suggestions-list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n }\n\n .react-autosuggest__suggestion {\n cursor: pointer;\n padding: 8px 12px;\n }\n\n .react-autosuggest__suggestion--highlighted {\n background-color: ",";\n }\n }\n"])),ft,qe.Z.space(-2),qe.Z.space(-2),(function(e){var t=e.immutable,n=e.theme;return t?Aa()(n,"colors.textDisabled"):Aa()(n,"colors.text")}),dt,xe.FS.color("paper"),xe.FS.color("signal.info"),xe.FS.color("secondaryLight"),xe.FS.color("backgroundItemHover"));function Cd(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 Td(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Cd(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Dd=function(e){var t=e.onChange,r=e.options,o=e.value,a=e.id,i=e.immutable,c=e.name,s=function(e){return function(t){return t[e]}},u=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,a=t?"- ".concat(t):"",i=n?"/ ".concat(n.display):"";return(0,_e.jsxs)(et.ZP.Span,{children:[r," ",o," ",a," ",i]})},l=function(e){return function(r,a){var i=a.newValue;t(Td(Td({},o),{},n()({},e,i)))}},f=function(e,n){var r=n.suggestion;t(r)},p=function(e){return function(t){var o=t.value;r.fetchSuggestions(n()({},e,o),r.locationValues.country)}},d={id:a,value:o.postcode||"",onChange:l("postcode"),disabled:i},h={value:o.city||"",onChange:l("city"),disabled:i};return(0,_e.jsx)(fe,{children:function(e){var t,n,a,l=e.focused,m=e.getRef;return(0,_e.jsxs)(Ed,{immutable:i,name:c,ref:m,children:[(0,_e.jsx)(_d(),{suggestions:r.suggestions||[],onSuggestionsFetchRequested:p("postcode"),getSuggestionValue:s("postcode"),renderSuggestion:u,onSuggestionsClearRequested:function(){},inputProps:d,onSuggestionSelected:f,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!i}}),(l||o.city||o.postcode)&&(Sd||(Sd=(0,_e.jsx)(et.ZP.Span,{children:"/"}))),(0,_e.jsx)(_d(),{suggestions:r.suggestions||[],onSuggestionsFetchRequested:p("city"),getSuggestionValue:s("city"),renderSuggestion:u,onSuggestionsClearRequested:function(){},inputProps:h,onSuggestionSelected:f,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!i}}),(0,_e.jsxs)(mt,{children:[r.isLoading&&(Pd||(Pd=(0,_e.jsx)(Pa.Z,{size:"1.8rem"}))),(a=r.locationValues,Boolean(a.city||a.postcode)&&(0,_e.jsx)(Vf.Z,{href:(t=r.locationValues,n=t?Object.values(t).filter(Boolean).map((function(e){return"object"===dp()(e)&&e.display?e.display:e})).join("+"):"","".concat("https://www.google.com/maps/search/?api=1&query=").concat(n)),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:r.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};function Rd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Md=function(e){return(0,_e.jsx)(ti,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rd(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({id:e.id,isMulti:!0,immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function Id(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Ad=function(e){return(0,_e.jsx)(ti,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Id(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Id(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({id:e.id,isMulti:!0,immutable:e.immutable,onChange:e.onChange,value:e.value,openMenuOnClick:!0},e.options))};var Nd;const Zd=x.ZP.input.attrs((function(e){return{type:"tel"}})).withConfig({displayName:"StyledPhoneEdit"})(Nd||(Nd=b()(["\n &&&& {\n ","\n }\n"])),dt);const Ld=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,a=e.onLibLoaded,c=Aa()(e,"options.defaultCountry")||"CH",s=(0,w.useState)(null),u=H()(s,2),l=u[0],f=u[1],p=O().createRef();(0,w.useEffect)((function(){(function(){var e=F()(W().mark((function e(){var t;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([i.e(631),i.e(877)]).then(i.bind(i,41866));case 2:t=e.sent,f(t),a&&a();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[a]);var d=function(e,t){var n=e.substring(0,t-1).match(/\s/g);return(null==n?void 0:n.length)||0},h=n&&null!=l&&l.AsYouType?new l.AsYouType(c).input(n):n||"";return(0,_e.jsxs)(pt,{immutable:r,children:[(0,_e.jsx)(Zd,{disabled:r||!l,id:o,name,onChange:function(e){var r=e.target.value,o=l?l.parseNumber(r,c):r,a=Wr()(o)?new l.AsYouType(c).input(r).replace(/\s/g,""):l.formatNumber(o,"E.164");t(a);var i=e.target.selectionStart;!function(e,t,n){if(n&&e.length!==n){var r=new l.AsYouType(c).input(t),o=new l.AsYouType(c).input(e),a=d(r,n),i=d(o,n)-a;window.requestAnimationFrame(function(){var e=n+i;this.setSelectionRange(e,e)}.bind(p.current))}}(r,n,i)},immutable:r||!l,ref:p,value:h}),h&&(0,_e.jsx)(mt,{children:(0,_e.jsx)(Vf.Z,{href:"tel:".concat(n),icon:"phone",tabIndex:-1,target:"_blank",neutral:!0})})]})};function Fd(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 Ud(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fd(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Hd=function(e){return e.map((function(e){return bp()(e,["key","display"])}))};const Bd=function(e){var t=e.id,n=e.immutable,r=e.onChange,o=e.options.isMulti,a=e.value;return(0,_e.jsx)(ti,{id:t,immutable:n,isMulti:o,onChange:function(e){var t=o?e.map((function(e){return e.key})):[null==e?void 0:e.key],n=a.options.map((function(e){return Ud(Ud({},e),t.includes(e.key)?{selected:!0}:{selected:!1})}));r({options:n})},value:Hd(a.options.filter((function(e){return e.selected}))),openMenuOnClick:!0,options:Hd(a.options)})};function Wd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const zd=function(e){return(0,_e.jsx)(ti,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wd(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({id:e.id,isMulti:!1,immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function Yd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Vd=function(e){return(0,_e.jsx)(ti,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yd(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Gd=function(e){return(0,_e.jsx)(ti,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qd(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({id:e.id,immutable:e.immutable,isMulti:!1,onChange:e.onChange,value:e.value,openMenuOnClick:!0},e.options))};const Kd=He.Z.Debouncer((function(e){return(0,_e.jsx)(pt,{immutable:e.immutable,children:(0,_e.jsx)(lp,{disabled:e.immutable,id:e.id,name:e.name,onChange:function(t){return e.onChange(t.target.value)},immutable:e.immutable,value:e.value||""})})}));const Xd=function(){var e,t=(null===(e=navigator)||void 0===e?void 0:e.userAgent)||"";return/^((?!chrome|android).)*safari/i.test(t)};var $d,Qd,Jd,eh=(0,x.iv)($d||($d=b()(["\n ","\n width: 100%;\n grid-area: 1 / 1 / 2 / 2;\n max-height: 25rem;\n box-sizing: border-box;\n"])),dt),th=x.ZP.div.withConfig({displayName:"StyledSizeWrapper"})(Qd||(Qd=b()(["\n display: grid;\n width: 100%;\n\n &:after {\n content: attr(data-replicated-value) ' ';\n white-space: pre-wrap;\n word-break: break-all;\n visibility: hidden;\n ","\n\n /* prevent scrollbar on Firefox */\n padding-right: 15px;\n }\n"])),eh),nh=x.ZP.textarea.withConfig({displayName:"StyledTextarea"})(Jd||(Jd=b()(["\n &&&& {\n ","\n resize: none;\n margin: 0;\n min-height: 4em;\n }\n"])),eh);function rh(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 oh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rh(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const ah=function(e){var t=e.value,n=e.onChange,r=e.name,o=e.id,a=e.disabled,i=e.immutable,c=(0,w.useState)(t),s=H()(c,2),u=s[0],l=s[1],f=!Xd(),p=(0,w.useCallback)(qr()(l,500,{trailing:!0}),[]);return(0,w.useEffect)((function(){f&&p(t)}),[t,f,p]),(0,_e.jsx)(th,oh(oh({"data-testid":"replicated-test"},f?{"data-replicated-value":u}:{}),{},{children:(0,_e.jsx)(nh,{value:t,name:r,id:o,onChange:n,disabled:a,immutable:i,rows:"1"})}))};const ih=He.Z.Debouncer((function(e){return(0,_e.jsx)(pt,{immutable:e.immutable,children:(0,_e.jsx)(ah,{id:e.id,immutable:e.immutable,maxRows:20,name:e.name,onChange:function(t){return e.onChange(t.target.value)},disabled:e.immutable,rows:2,value:e.value})})}));var ch;const sh=x.ZP.input.withConfig({displayName:"StyledTimeEdit"})(ch||(ch=b()(["\n &&&& {\n ","\n }\n"])),dt);function uh(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 lh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?uh(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const fh=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,a=e.name,i=Fu(n,t),c=i.inputProps,s=i.clearButtonProps,u=n&&!r;return(0,_e.jsxs)(pt,{immutable:r,children:[(0,_e.jsx)(sh,lh({type:"text",disabled:r,id:o,immutable:r,name:a},c)),u&&(0,_e.jsx)(mt,{children:(0,_e.jsx)(ia.Z,lh(lh({icon:"times"},s),{},{tabIndex:-1}))})]})};var ph;const dh=x.ZP.input.attrs((function(e){return{type:"url"}})).withConfig({displayName:"StyledUrlEdit"})(ph||(ph=b()(["\n &&&& {\n ","\n }\n"])),dt);const hh=He.Z.Debouncer((function(e){return(0,_e.jsxs)(pt,{immutable:e.immutable,children:[(0,_e.jsx)(dh,{disabled:e.immutable,id:e.id,immutable:e.immutable,name:e.name,onChange:function(t){return e.onChange((n=t.target.value,r=/^[a-zA-Z0-9]+:\/\//.test(n),n.indexOf(".")>0&&!r?"https://".concat(n):n));var n,r},value:e.value}),e.value&&(0,_e.jsx)(mt,{children:(0,_e.jsx)(Vf.Z,{href:e.value,icon:"external-link",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));function mh(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 gh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mh(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var vh={boolean:ai,"boolean-select":ni,choice:mi,code:_i,date:Gu,datetime:Xu,document:tp,duration:sp,email:fp,geosearch:yd,html:xd,integer:ud,location:Dd,"multi-remote":Md,"multi-select":Ad,number:sd,phone:Ld,"pseudo-select":Bd,remote:zd,"search-filter":Vd,"single-select":Gd,string:Kd,text:ih,url:hh,time:fh};const yh=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.id,a=e.events,i=e.placeholder,c=e.readOnly,s=void 0!==c&&c;if(vh[t]){var u=vh[t],l=gh(gh({},Hr()(a,"onChange")),{},{onBlur:function(){"function"==typeof(null==a?void 0:a.onBlur)&&a.onBlur(n)}});return(0,_e.jsx)("div",gh(gh({},l),{},{"data-cy":"form-field",children:(0,_e.jsx)(u,gh(gh({value:n,onChange:null==a?void 0:a.onChange},Wr()(r)?{}:{options:r}),{},{id:o,immutable:s,placeholder:i,events:a}))}))}return console.log("No type-editor defined for component type",t),null};function bh(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 wh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bh(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Oh=function(e){return(0,_e.jsx)(gt,{children:(0,_e.jsx)(yh,wh({componentType:e.type},Hr()(e,"type")))})};var xh,kh,Sh=x.ZP.div.withConfig({displayName:"StyledLoginFormInputWrapper"})(xh||(xh=b()(["\n && {\n ","\n }\n"])),ft);const Ph=function(e){var t=e.verifyCode,n=e.intl,r=(0,w.useState)(null),o=H()(r,2),a=o[0],i=o[1],c=function(e){return n.formatMessage({id:e})},s=a&&a.toString().length>=6,u=function(e){e&&(e.preventDefault(),e.stopPropagation()),s&&t(a)};return(0,Gn.z)(u),(0,_e.jsxs)(_e.Fragment,{children:[kh||(kh=(0,_e.jsx)(et.ZP.P,{children:(0,_e.jsx)(Je.Z,{id:"client.two-factor-connector.verificationText"})})),(0,_e.jsxs)("form",{onSubmit:u,children:[(0,_e.jsx)(Ue,{hasValue:Boolean(a),id:"verification-input",label:c("client.two-factor-connector.verificationInputLabel"),children:(0,_e.jsx)(Sh,{children:(0,_e.jsx)(Oh,{type:"integer",value:a,events:{onChange:i},options:{format:"### ###",allowLeadingZeros:!0}})})}),(0,_e.jsx)(Kn,{children:(0,_e.jsx)(Ve.Z,{label:c("client.two-factor-connector.okButton"),ink:"primary",look:"raised",type:"submit",disabled:!s})})]})]})};var jh={verifyCode:function(e){return{type:Ln,payload:{userCode:e}}}};const _h=(0,p.connect)((function(e,t){return{}}),jh)((0,f.ZP)(Ph));var Eh,Ch,Th,Dh,Rh,Mh,Ih=0,Ah=1,Nh=2,Zh=3;const Lh=function(e){var t=e.initialize,n=e.stage;(0,w.useEffect)((function(){t()}),[t]);return(0,_e.jsxs)(_e.Fragment,{children:[Mh||(Mh=(0,_e.jsx)(Cn.Z.Notifications,{})),function(){switch(n){case Ih:return Eh||(Eh=(0,_e.jsx)(Fr,{}));case Ah:return Ch||(Ch=(0,_e.jsx)(Ar,{}));case Nh:return Th||(Th=(0,_e.jsx)(_h,{}));case Zh:return Dh||(Dh=(0,_e.jsx)(tr,{}));default:return Rh||(Rh=(0,_e.jsx)(en.Z,{}))}}()]})};var Fh={initialize:Bn};const Uh=(0,p.connect)((function(e){return{stage:e.twoFactorConnector.stage}}),Fh)((0,f.ZP)(Lh));var Hh,Bh=i(81770);function Wh(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 zh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wh(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Yh=function(e){return function(t){return zh(zh({},t),{},{stage:e})}},Vh=(Hh={},n()(Hh,Dn,Bh.Z.singleTransferReducer("twoFactorActive")),n()(Hh,Rn,Bh.Z.singleTransferReducer("secret")),n()(Hh,Mn,Bh.Z.singleTransferReducer("username")),n()(Hh,Un,Bh.Z.singleTransferReducer("setupSuccessful")),n()(Hh,Nn,Yh(0)),n()(Hh,Zn,Yh(1)),n()(Hh,An,Yh(2)),n()(Hh,Hn,Yh(3)),Hh),qh={stage:null,twoFactorActive:null,secret:null,username:null,setupSuccessful:null};var Gh=i(34857),Kh=i(81719),Xh=i(54159),$h=W().mark(lm),Qh=W().mark(pm),Jh=W().mark(dm),em=W().mark(mm),tm=W().mark(gm),nm=W().mark(vm),rm=W().mark(ym),om=W().mark(bm),am=W().mark(wm),im="relTwo_step_login_status",cm=function(e){return e.twoFactorConnector.username},sm=function(e){return e.twoFactorConnector.secret},um=function(e){return e.input};function lm(){var e,t,n,r,o,a;return W().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,Gh.Ys)(um);case 2:if(e=i.sent,e.secret){i.next=14;break}return i.next=7,(0,Gh.Ys)(cm);case 7:return t=i.sent,i.next=10,(0,Gh.RE)(Kh.Z.requestSaga,"principals/".concat(t,"/two-factor"),{method:"GET"});case 10:return n=i.sent,r=n.body,o=r.secret,a=r.totpUri,i.next=14,(0,Gh.gz)(zn({secret:o,uri:a}));case 14:return i.next=16,(0,Gh.gz)({type:Zn});case 16:case"end":return i.stop()}}),$h)}function fm(e,t){return Xh.Z.executeRequest(e,t).then(Xh.Z.extractBody)}function pm(e,t,n,r){var o,a;return W().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o={secret:e,userCode:t,username:n,password:r},i.next=3,(0,Gh.RE)(fm,"login",{method:"POST",headers:new Headers({"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"}),body:Object.keys(o).filter((function(e){return!!o[e]})).sort().map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(o[e]))})).join("&")});case 3:return a=i.sent,i.next=6,(0,Gh.gz)(qn(Aa()(a,"TWOSTEPLOGIN_ACTIVATION.success",!1)));case 6:case"end":return i.stop()}}),Qh)}function dm(e,t,n){var r;return W().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,Gh.RE)(Kh.Z.requestSaga,"principals/".concat(e,"/two-factor"),{method:"POST",body:{secret:t,code:n},acceptedStatusCodes:[400]});case 2:return r=o.sent,o.next=5,(0,Gh.gz)(qn(204===r.status));case 5:case"end":return o.stop()}}),Jh)}function hm(e){var t=e.payload.userCode;return W().mark((function e(){var n,r,o,a,i;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Gh.Ys)(cm);case 2:return n=e.sent,e.next=5,(0,Gh.Ys)(sm);case 5:return r=e.sent,o=r.secret,e.next=9,(0,Gh.Ys)(um);case 9:if(a=e.sent,i=a.password,!a.forced){e.next=17;break}return e.next=15,(0,Gh.RE)(pm,o,t,n,i);case 15:e.next=19;break;case 17:return e.next=19,(0,Gh.RE)(dm,n,o,t);case 19:return e.next=21,(0,Gh.gz)({type:Hn});case 21:case"end":return e.stop()}}),e)}))()}function mm(){var e,t;return W().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Gh.RE)(vm);case 2:return n.next=4,(0,Gh.Ys)(um);case 4:if(e=n.sent,!(t=e.secret)){n.next=9;break}return n.next=9,(0,Gh.gz)(zn(t));case 9:return n.next=11,(0,Gh.gz)(Vn());case 11:case"end":return n.stop()}}),em)}function gm(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Gh.gz)(s.Z.fireExternalEvent("onSuccess"));case 2:case"end":return e.stop()}}),tm)}function vm(){var e,t,n,r,o;return W().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,Gh.RE)(ym);case 2:return e=a.sent,a.next=5,(0,Gh.gz)(Yn(e));case 5:return t='username === "'.concat(e,'"'),a.next=8,(0,Gh.RE)(Kh.Z.fetchEntitiesPage,"Principal",{where:t,paths:[im]});case 8:if(!((n=a.sent).length>1)){a.next=11;break}throw new Error("More than one user found for username ".concat(e));case 11:return r=Aa()(n,"[0].paths.".concat(im,".value.key")),o="1"===r,a.next=15,(0,Gh.gz)(Wn(o));case 15:case"end":return a.stop()}}),nm)}function ym(){var e,t,n;return W().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,Gh.Ys)(um);case 2:if(e=r.sent,!(t=e.username)){r.next=8;break}return r.abrupt("return",t);case 8:return r.next=10,(0,Gh.RE)(Kh.Z.requestSaga,"principals");case 10:return n=r.sent,r.abrupt("return",n.body.username);case 12:case"end":return r.stop()}}),rm)}function bm(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Gh.gz)(s.Z.fireExternalEvent("onResize"));case 2:case"end":return e.stop()}}),om)}function wm(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Gh.$6)([(0,Gh.Fm)(In,lm),(0,Gh.Fm)(Ln,hm),(0,Gh.Fm)(Tn,mm),(0,Gh.Fm)(Fn,gm),(0,Gh.Fm)(Nn,bm),(0,Gh.Fm)(Zn,bm),(0,Gh.Fm)(An,bm),(0,Gh.Fm)(Hn,bm)]);case 2:case"end":return e.stop()}}),am)}const Om={twoFactorConnector:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qh,t=arguments.length>1?arguments[1]:void 0,n=Vh[t.type];return n?n(e,t):e}};var xm,km=[wm];function Sm(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 Pm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Sm(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var jm="two-factor-connector",_m=function(t,n,r,o){var i=xm||(xm=(0,_e.jsx)(Uh,{})),c=e.Z.createStore(Om,km,n,jm);return Cn.Z.addToStore(c,!0),a.Z.addToStore(c,!0,["console","remote","notification"]),s.Z.addToStore(c,(function(t){return e.Z.getEvents(Em,t.input)})),e.Z.createApp(jm,i,c,{input:n,events:r,actions:[],publicPath:o,textResourceModules:["component","common",jm]})},Em=["onSuccess","onCancel","onResize"],Cm=function(t){return e.Z.useApp({initApp:_m,props:t,packageName:jm,externalEvents:Em}).component};Cm.propTypes=Pm(Pm({},Em.reduce((function(e,t){return Pm(Pm({},e),{},n()({},t,o().func))}),{})),{},{username:o().string,password:o().string,secret:o().shape({secret:o().string.isRequired,uri:o().string.isRequired}),forced:o().bool});const Tm=Cm;var Dm;e.Z.createBundleableApp(jm,_m,Cm);const Rm=function(e){var t=e.locale,n=e.username,r=e.password,o=e.secret,a=e.showTitle,i=e.changePage;return(0,_e.jsxs)("div",{children:[a&&(Dm||(Dm=(0,_e.jsx)(tt,{title:"client.login.form.title"}))),(0,_e.jsx)(Tm,{locale:t,username:n,password:r,secret:o,forced:!0,onSuccess:function(){i(S)}})]})};var Mm={changePage:A};const Im=(0,p.connect)((function(e){return{username:e.login.username,password:e.login.password,secret:e.twoStepLogin.secret,locale:e.intl.locale}}),Mm)(Rm);var Am,Nm,Zm,Lm=x.ZP.div.withConfig({displayName:"StyledTwoStepLogin"})(Am||(Am=b()(["\n "," {\n width: 100%;\n }\n\n "," {\n ","\n padding-top: .7rem;\n padding-bottom: 0.7rem;\n }\n"])),vt.Z,gt,dt);const Fm=function(e){var t=e.username,n=e.password,r=e.showTitle,o=e.loginPending,a=e.login,i=e.intl,c=(0,w.useState)(null),s=H()(c,2),u=s[0],l=s[1],f=(0,w.useRef)();(0,w.useLayoutEffect)((function(){f.current.querySelector("input").focus()}),[]);var p=function(e){return i.formatMessage({id:e})};return(0,_e.jsxs)(Lm,{children:[r&&(Nm||(Nm=(0,_e.jsx)(tt,{title:"client.login.form.title"}))),(0,_e.jsxs)("form",{onSubmit:function(e){e.preventDefault(),a(t,n,null,u)},ref:f,children:[Zm||(Zm=(0,_e.jsx)(et.ZP.P,{children:(0,_e.jsx)(Je.Z,{id:"client.login.twoStepLogin.introduction"})})),(0,_e.jsx)(Ue,{hasValue:!!u,id:"twoFactorCode-label",label:p("client.login.twoStepLogin.codePlaceholder"),children:(0,_e.jsx)(Pt,{children:(0,_e.jsx)(Oh,{type:"integer",value:u,events:{onChange:l},options:{format:"### ###",allowLeadingZeros:!0}})})}),(0,_e.jsx)(Qe,{disabled:!u||u.toString().length<6||o,label:p("client.login.form.button"),pending:o})]})]})};var Um={login:v};const Hm=(0,p.connect)((function(e){return{username:e.login.username,password:e.login.password,loginPending:e.loginForm.loginPending}}),Um)((0,f.ZP)(Fm));var Bm;function Wm(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 zm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wm(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Ym=function(e){var t=e.intl,n=e.checkUsername,r=e.loginPending,o=e.message,a=e.setUsername,i=e.showTitle,c=e.username,s=nt(a),u=H()(s,2),l=u[0],f=u[1],p=function(e){return t.formatMessage({id:e})},d=(0,w.useCallback)(function(){var e=F()(W().mark((function e(t){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t&&t.preventDefault(),n(c);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[n,c]);return(0,_e.jsxs)(_t,{children:[i&&(Bm||(Bm=(0,_e.jsx)(tt,{title:"client.login.form.title",subtitle:"client.login.form.introduction"}))),(0,_e.jsxs)("form",{onSubmit:d,children:[(0,_e.jsx)(Ue,{hasValue:!!c||l,id:"login-username",label:p("client.login.form.userEmailPlaceholder"),children:(0,_e.jsx)(Pt,{children:(0,_e.jsx)(St,zm({autoFocus:!0,name:"user",required:!0,type:"text",value:c,onFocus:function(e){return e.target.select()}},f))})}),(0,_e.jsx)(Be,{message:o}),(0,_e.jsx)(Qe,{disabled:!l&&(r||""===c),label:p("client.login.form.next"),pending:r})]})]})};var Vm={setUsername:N,checkUsername:function(e){return{type:g,payload:{username:e}}}};const qm=(0,p.connect)((function(e){return{username:e.login.username,message:e.loginForm.message,loginPending:e.loginForm.loginPending}}),Vm)((0,f.ZP)(Ym));var Gm,Km,Xm,$m=(0,x.vJ)(Gm||(Gm=b()(["\n .grecaptcha-badge {\n z-index: 9999999;\n opacity: .8;\n }\n"])));const Qm=function(e){var t,n,r,o,a,i=e.initialize,c=e.showTitle,s=e.currentPage;return(0,w.useEffect)((function(){i()}),[i]),(0,_e.jsxs)(_e.Fragment,{children:[Km||(Km=(0,_e.jsx)($m,{})),function(){switch(s){case _:return t||(t=(0,_e.jsx)(xn,{showTitle:c}));case P:return n||(n=(0,_e.jsx)(Zt,{showTitle:c}));case j:return r||(r=(0,_e.jsx)(Hm,{showTitle:c}));case E:return Xm||(Xm=(0,_e.jsx)(Im,{}));case k:return o||(o=(0,_e.jsx)(qm,{showTitle:c}));default:return a||(a=(0,_e.jsx)(Rt,{showTitle:c}))}}()]})};var Jm={initialize:function(){return{type:d}}};const eg=(0,p.connect)((function(e,t){return{currentPage:t.currentPage||e.login.currentPage,showTitle:t.showTitle}}),Jm)((0,f.ZP)(Qm));var tg,ng="PasswordUpdateDialog/SET_SHOW_OLD_PASSWORD",rg="PasswordUpdateDialog/SET_STANDALONE",og="PasswordUpdateDialog/SET_FORCED_UPDATE",ag="PasswordUpdateDialog/SET_USERNAME_OR_PK",ig="PasswordUpdateDialog/SET_CURRENT_USERNAME",cg=function(e){return{type:ng,payload:{showOldPasswordField:e}}},sg=function(e){return{type:og,payload:{forcedUpdate:e}}},ug=function(e){return{type:ag,payload:{usernameOrPk:e}}},lg=i(15857),fg=(tg={},n()(tg,T,Bh.Z.singleTransferReducer("entryPage")),n()(tg,C,Bh.Z.singleTransferReducer("currentPage")),n()(tg,D,Bh.Z.singleTransferReducer("username")),n()(tg,R,Bh.Z.singleTransferReducer("password")),n()(tg,M,Bh.Z.singleTransferReducer("captchaKey")),tg),pg={entryPage:void 0,currentPage:void 0,username:"",password:"",captchaKey:null};const dg=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pg,t=arguments.length>1?arguments[1]:void 0,n=fg[t.type];return n?n(e,t):e};var hg,mg="loginForm/SET_MESSAGE",gg="loginForm/CLEAR_MESSAGE",vg="loginForm/SET_PENDING",yg="loginForm/ACTIVATE_RECAPTCHA",bg=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{type:mg,payload:{text:e,negative:t}}},wg=function(){return{type:gg}},Og=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{type:vg,payload:{pending:e}}};function xg(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 kg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xg(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xg(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Sg=(hg={},n()(hg,mg,(function(e,t){var n=t.payload,r=n.text,o=n.negative;return kg(kg({},e),{},{message:{text:r,negative:o}})})),n()(hg,gg,(function(e){return kg(kg({},e),{},{message:{}})})),n()(hg,vg,(function(e,t){var n=t.payload;return kg(kg({},e),{},{loginPending:n.pending})})),n()(hg,yg,(function(e){return kg(kg({},e),{},{recaptchaActivated:!0})})),hg),Pg={message:{},loginPending:!1,recaptchaActivated:!1};const jg=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Pg,t=arguments.length>1?arguments[1]:void 0,n=Sg[t.type];return n?n(e,t):e};var _g;function Eg(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 Cg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Eg(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Eg(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Tg={showOldPasswordField:!0,forcedUpdate:!1,standalone:!0,usernameOrPk:""},Dg=function(e){return function(t,r){var o=r.payload[e];return Cg(Cg({},t),{},n()({},e,o))}},Rg=(_g={},n()(_g,ng,Dg("showOldPasswordField")),n()(_g,og,Dg("forcedUpdate")),n()(_g,rg,Dg("standalone")),n()(_g,ag,Dg("usernameOrPk")),_g);const Mg=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Tg,t=arguments.length>1?arguments[1]:void 0,n=Rg[t.type];return n?n(e,t):e};var Ig,Ag=i(44759),Ng=W().mark(Lg),Zg=W().mark(Fg);function Lg(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Gh.$6)([(0,Gh.Fm)(ig,Fg)]);case 2:case"end":return e.stop()}}),Ng)}function Fg(){var e,t,n;return W().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e={acceptedStatusCodes:[403]},r.next=3,(0,Gh.RE)(Kh.Z.requestSaga,"principals",e);case 3:if(403!==(t=r.sent).status){r.next=8;break}Ag.Z.logError('input "username" on password-update is mandatory if no user is logged in'),r.next=11;break;case 8:return n=t.body.username,r.next=11,(0,Gh.gz)(ug(n));case 11:case"end":return r.stop()}}),Zg)}function Ug(e){return 0===Object.keys(e).length&&e.constructor===Object}function Hg(e){var t={};return e.forEach((function(e){t[e.ruleName]=e.message})),t}function Bg(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 Wg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bg(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bg(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var zg={oldPassword:"",newPassword:"",newPasswordRepeat:"",newPasswordValidationErrors:null,passwordUpdatePending:!1,passwordUpdateFailed:!1,passwordUpdateErrorCode:null},Yg=(Ig={},n()(Ig,Ft,(function(e,t){var n=t.payload;return Wg(Wg({},e),{},{oldPassword:n.oldPassword})})),n()(Ig,Ht,(function(e,t){var n=t.payload;return Wg(Wg({},e),{},{newPassword:n.newPassword})})),n()(Ig,Bt,(function(e,t){var n=t.payload;return Wg(Wg({},e),{},{newPasswordValidationErrors:n.errors})})),n()(Ig,Wt,(function(e,t){var n=t.payload;return Wg(Wg({},e),{},{newPasswordRepeat:n.newPasswordRepeat})})),n()(Ig,zt,(function(e){return Wg(Wg({},e),{},{passwordUpdatePending:!0,passwordUpdateFailed:!1})})),n()(Ig,Yt,(function(e){return zg})),n()(Ig,Vt,(function(e,t){var n=t.payload;if(n.validationMessages){var r=Hg(n.validationMessages);return Wg(Wg({},e),{},{passwordUpdatePending:!1,newPasswordValidationErrors:r})}return Wg(Wg({},e),{},{passwordUpdatePending:!1,passwordUpdateFailed:!0,passwordUpdateErrorCode:n.errorCode})})),n()(Ig,Gt,(function(e,t){t.payload;return Wg(Wg({},e),{},{passwordUpdateFailed:!1})})),Ig);const Vg=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zg,t=arguments.length>1?arguments[1]:void 0,n=Yg[t.type];return n?n(e,t):e};var qg="password_update_success",Gg="password_update_failed",Kg=(i(13218),i(66604)),Xg=i.n(Kg),$g=i(17563),Qg=function(e){if("string"!=typeof e)return!1;try{var t=JSON.parse(e);return"[object Object]"===Object.prototype.toString.call(t)}catch(e){return!1}};const Jg=function(e){var t=$g.parse(e);return Xg()(t,(function(e){return Qg(e)?JSON.parse(e):e}))};var ev="login/SET_SECRET";function tv(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 nv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tv(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tv(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var rv,ov=W().mark(Sv),av=W().mark(Pv),iv=W().mark(_v),cv=W().mark(Ev),sv=W().mark(Cv),uv=W().mark(Tv),lv=W().mark(Dv),fv=W().mark(Rv),pv=W().mark(Mv),dv=W().mark(Iv),hv=W().mark(Av),mv=W().mark(Lv),gv=W().mark(Fv),vv=W().mark(Uv),yv=W().mark(Hv),bv=W().mark(Bv),wv=function(e){return e.login},Ov=function(e){return e.input};function xv(e){var t=e.payload;return W().mark((function e(){var n,r,o;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Gh.Ys)(wv);case 2:return n=e.sent,r=n.entryPage,e.next=6,(0,Gh.gz)(Og(!0));case 6:return e.next=8,(0,Gh.RE)(Kh.Z.requestSaga,"principals/".concat(t.username,"/password-reset"),{method:"POST"});case 8:return e.next=10,(0,Gh.gz)(N(t.username));case 10:return e.next=12,(0,Gh.gz)(A(S));case 12:return o=r===k?"client.login.from.passwordRequestedWithValidUsername":"client.login.from.passwordRequested",e.next=16,(0,Gh.gz)(bg(o));case 16:return e.next=18,(0,Gh.gz)(Og(!1));case 18:case"end":return e.stop()}}),e)}))()}function kv(e,t){return new Promise((function(n){Xh.Z.executeRequest(e,t).then(Xh.Z.extractBody).then((function(e){return n(e)})).catch((function(e){Ag.Z.logError("Failed to execute request",e),n({success:!1})}))}))}function Sv(e){return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Gh.RE)(kv,"login",jv(e));case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),ov)}function Pv(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Gh.RE)(kv,"session",{method:"POST"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),av)}function jv(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{method:"POST",headers:new Headers({"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"}),body:Object.keys(e).filter((function(t){return!!e[t]})).sort().map((function(t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t]))})).join("&")}}function _v(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Gh.gz)(A(j));case 2:case"end":return e.stop()}}),iv)}function Ev(e){var t;return W().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e[E],n.next=3,(0,Gh.gz)({type:ev,payload:{secret:t}});case 3:return n.next=5,(0,Gh.gz)(A(E));case 5:case"end":return n.stop()}}),cv)}function Cv(){var e;return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Gh.Ys)(wv);case 2:return e=t.sent,t.next=5,(0,Gh.gz)(Kt(e.password));case 5:return t.next=7,(0,Gh.gz)(ug(e.username));case 7:return t.next=9,(0,Gh.gz)(sg(!0));case 9:return t.next=11,(0,Gh.gz)(A(_));case 11:case"end":return t.stop()}}),sv)}function Tv(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Gh.gz)(bg("client.login.form.blocked",!0));case 2:case"end":return e.stop()}}),uv)}function Dv(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Gh.gz)(bg("client.login.form.failed",!0));case 2:case"end":return e.stop()}}),lv)}function Rv(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Gh.gz)(bg("client.login.form.invalidUsernameEmail",!0));case 2:case"end":return e.stop()}}),fv)}function Mv(){var e;return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Iv();case 2:(e=t.sent)&&(window.location.href=e);case 4:case"end":return t.stop()}}),pv)}function Iv(){var e,t,n,r;return W().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(e=Jg(window.location.search),!(t=e._redirect_url)){o.next=5;break}return o.abrupt("return",t);case 5:return o.next=7,(0,Gh.Ys)(Ov);case 7:return n=o.sent,r=n.redirectUrl,o.abrupt("return",r);case 10:case"end":return o.stop()}}),dv)}function Av(t){var n;return W().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,Gh.RE)(e.Z.reinitialiseCache);case 2:return r.next=4,(0,Gh.gz)(Z(""));case 4:return n=t.timeout||30,r.next=7,(0,Gh.gz)(s.Z.fireExternalEvent("loginSuccess",{timeout:n}));case 7:case"end":return r.stop()}}),hv)}function Nv(e){var t=e.payload;return W().mark((function e(){var n,r,o,a,i;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.username,e.next=3,(0,Gh.gz)(wg());case 3:return e.next=5,(0,Gh.gz)(Og(!0));case 5:return e.next=7,(0,Gh.RE)(Kh.Z.requestSaga,"client/username/check/".concat(n),{method:"GET"});case 7:if(r=e.sent,o=r.body,a=o.existingUser,i=o.validEmail,!a){e.next=14;break}return e.next=12,(0,Gh.gz)(A(S));case 12:e.next=21;break;case 14:if(!i){e.next=19;break}return e.next=17,(0,Gh.gz)(s.Z.fireExternalEvent("register",{username:n}));case 17:e.next=21;break;case 19:return e.next=21,(0,Gh.RE)(Rv);case 21:return e.next=23,(0,Gh.gz)(Og(!1));case 23:case"end":return e.stop()}}),e)}))()}function Zv(e){var t=e.payload;return W().mark((function e(){var n,r,o,a,i,c;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.username,r=t.password,o=t.captchaToken,a=t.userCode,i=nv(nv({username:n,password:r},o&&{captchaToken:o}),a&&{userCode:a}),e.next=4,(0,Gh.gz)(Og(!0));case 4:return e.next=6,(0,Gh.RE)(Sv,i);case 6:if(!(c=e.sent).success){e.next=14;break}return e.next=10,(0,Gh.RE)(Av,c);case 10:return e.next=12,(0,Gh.RE)(Mv);case 12:e.next=45;break;case 14:return e.next=16,(0,Gh.gz)(A(S));case 16:if(!c.CAPTCHA){e.next=21;break}return e.next=19,(0,Gh.gz)({type:yg});case 19:e.next=43;break;case 21:if(!c.TWOSTEPLOGIN){e.next=26;break}return e.next=24,(0,Gh.RE)(_v,c);case 24:e.next=43;break;case 26:if(!c.RESET_PASSWORD_REQUIRED){e.next=31;break}return e.next=29,(0,Gh.RE)(Cv);case 29:e.next=43;break;case 31:if(!c.LOGIN_BLOCKED){e.next=36;break}return e.next=34,(0,Gh.RE)(Tv);case 34:e.next=43;break;case 36:if(!c.TWOSTEPLOGIN_ACTIVATION){e.next=41;break}return e.next=39,(0,Gh.RE)(Ev,c);case 39:e.next=43;break;case 41:return e.next=43,(0,Gh.RE)(Dv);case 43:return e.next=45,(0,Gh.gz)(Og(!1));case 45:case"end":return e.stop()}}),e)}))()}function Lv(){var e;return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Gh.RE)(Pv);case 2:if(!(e=t.sent).success){t.next=6;break}return t.next=6,(0,Gh.RE)(Av,e);case 6:return t.abrupt("return",e.success);case 7:case"end":return t.stop()}}),mv)}function Fv(){var e;return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Gh.RE)(Kh.Z.fetchServerSettings);case 2:return e=t.sent,t.next=5,(0,Gh.gz)((n=e.captchaKey,{type:M,payload:{captchaKey:n}}));case 5:case"end":return t.stop()}var n}),gv)}function Uv(){var e;return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Gh.RE)(Lv);case 2:return e=t.sent,t.next=5,(0,Gh.RE)(Fv);case 5:if(!e){t.next=8;break}return t.next=8,(0,Gh.RE)(Mv);case 8:case"end":return t.stop()}}),vv)}function Hv(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Gh.gz)(wg());case 2:case"end":return e.stop()}}),yv)}function Bv(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Gh.$6)([(0,Gh.Fm)(C,Hv),(0,Gh.Fm)(h,Zv),(0,Gh.Fm)(g,Nv),(0,Gh.Fm)(m,xv),(0,Gh.Fm)(d,Uv)]);case 2:case"end":return e.stop()}}),bv)}function Wv(e,t,n,r){if("string"!=typeof e)return!1;var o=e.length-e.replace(t,"").length;return(null==n||o>=n)&&(null==r||o<=r)}var zv=(rv={},n()(rv,"PASSWORD_NOT_CHANGED",(function(e,t){return"string"==typeof e&&"string"==typeof t&&e!==t})),n()(rv,"LENGTH",(function(e,t,n){return"string"==typeof e&&(void 0===n.params.min||null===n.params.min||e.length>=n.params.min)&&(void 0===n.params.max||null===n.params.max||e.length<=n.params.max)})),n()(rv,"CHARACTER_INSUFFICIENT_LOWERCASE",(function(e,t,n){return Wv(e,/[a-z]/g,n.params.min,n.params.max)})),n()(rv,"CHARACTER_INSUFFICIENT_UPPERCASE",(function(e,t,n){return Wv(e,/[A-Z]/g,n.params.min,n.params.max)})),n()(rv,"CHARACTER_INSUFFICIENT_DIGIT",(function(e,t,n){return Wv(e,/[0-9]/g,n.params.min,n.params.max)})),rv);const Yv=function(e,t,n){var r={};return n&&n.forEach((function(n){var o=zv[n.name];o&&(!0!==o(e,t,n)&&(r[n.name]=!0))})),r};var Vv=W().mark(sy),qv=W().mark(uy),Gv=W().mark(ly),Kv=W().mark(fy),Xv=W().mark(dy),$v=W().mark(hy),Qv=W().mark(my),Jv=W().mark(gy);function ey(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 ty(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ey(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ey(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ny=function(e){return e.passwordUpdate.validationRules},ry=function(e){return e.input},oy=function(e){return e.passwordUpdate.dialog.usernameOrPk},ay=function(e){return e.passwordUpdate.password},iy=function(e){return e.passwordUpdate.dialog.standalone},cy=function(e){return e.intl};function sy(e,t,n){var r,o;return W().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r={method:"POST",acceptedStatusCodes:[400],body:ty(ty({},t),{},{captchaToken:n})},a.prev=1,a.next=4,(0,Gh.RE)(Kh.Z.requestSaga,"principals/".concat(e,"/password-update"),r);case 4:return o=a.sent,a.abrupt("return",o.ok?{error:null}:{error:o.body});case 8:return a.prev=8,a.t0=a.catch(1),a.abrupt("return",{error:{errorCode:"UNEXPECTED_ERROR",exception:a.t0}});case 11:case"end":return a.stop()}}),Vv,null,[[1,8]])}function uy(e,t){var n,r,o,a;return W().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,Gh.Ys)(cy);case 2:return n=i.sent,r=n.locale,o={method:"POST",body:t,queryParams:{locale:r}},i.prev=5,i.next=8,(0,Gh.RE)(Kh.Z.requestSaga,"principals/".concat(e,"/password-validation"),o);case 8:return a=i.sent,i.abrupt("return",a.body);case 12:return i.prev=12,i.t0=i.catch(5),i.abrupt("return",{valid:!0,exception:i.t0});case 15:case"end":return i.stop()}}),qv,null,[[5,12]])}function ly(e){return W().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Gh.gz)((n=e.payload.newPassword,{type:Ht,payload:{newPassword:n}}));case 2:return t.next=4,(0,Gh.gz)({type:qt});case 4:case"end":return t.stop()}var n}),Gv)}function fy(){var e,t,n,r,o,a,i;return W().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,(0,Gh.Ys)(ny);case 2:return e=c.sent,c.next=5,(0,Gh.Ys)(ay);case 5:if(t=c.sent,Ug(n=Yv(t.newPassword,t.oldPassword,e))){c.next=12;break}return c.next=10,(0,Gh.gz)(Xt(n));case 10:c.next=29;break;case 12:return c.next=14,(0,Gh.Ys)(oy);case 14:return r=c.sent,c.next=17,(0,Gh.RE)(dy);case 17:return o=c.sent,c.next=20,(0,Gh.RE)(uy,r,o);case 20:if(!0!==(a=c.sent).valid){c.next=26;break}return c.next=24,(0,Gh.gz)(Xt({}));case 24:c.next=29;break;case 26:return i=Hg(a.validationMessages),c.next=29,(0,Gh.gz)(Xt(i));case 29:case"end":return c.stop()}}),Kv)}function py(e){var t=e.payload.captchaToken;return W().mark((function e(){var n,r,o,a;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Gh.Ys)(oy);case 2:return n=e.sent,e.next=5,(0,Gh.RE)(dy);case 5:return r=e.sent,e.next=8,(0,Gh.RE)(sy,n,r,t);case 8:if(!(o=e.sent).error){e.next=21;break}if(!1!==o.error.valid){e.next=15;break}return e.next=13,(0,Gh.gz)($t(null,o.error.validationMessages));case 13:e.next=17;break;case 15:return e.next=17,(0,Gh.gz)($t(o.error.errorCode));case 17:return e.next=19,(0,Gh.gz)(s.Z.fireVisibilityStatusChangeEvent([Gg]));case 19:e.next=40;break;case 21:return e.next=23,(0,Gh.Ys)(iy);case 23:if(!e.sent){e.next=29;break}return e.next=27,(0,Gh.gz)(s.Z.fireExternalEvent("success",{newPassword:r.newPassword}));case 27:e.next=36;break;case 29:return e.next=31,(0,Gh.RE)(hy);case 31:return a=e.sent,e.next=34,(0,Gh.gz)(Z(a.payload.password));case 34:return e.next=36,(0,Gh.RE)(Zv,a);case 36:return e.next=38,(0,Gh.gz)({type:Yt});case 38:return e.next=40,(0,Gh.gz)(s.Z.fireVisibilityStatusChangeEvent([qg]));case 40:case"end":return e.stop()}}),e)}))()}function dy(){var e,t;return W().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Gh.Ys)(ry);case 2:return e=n.sent,n.next=5,(0,Gh.Ys)(ay);case 5:return t=n.sent,n.abrupt("return",{oldPassword:e.oldPassword?e.oldPassword:t.oldPassword,newPassword:t.newPassword});case 7:case"end":return n.stop()}}),Xv)}function hy(){var e,t;return W().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Gh.Ys)(ay);case 2:return e=n.sent,n.next=5,(0,Gh.Ys)(oy);case 5:return t=n.sent,n.abrupt("return",{payload:{username:t,password:e.newPasswordRepeat}});case 7:case"end":return n.stop()}}),$v)}function my(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Gh.gz)({type:Gt});case 2:case"end":return e.stop()}}),Qv)}function gy(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Gh.$6)([(0,Gh.Fm)(Ut,ly),(0,Gh.Fm)(qt,fy),(0,Gh.Fm)(zt,py),(0,Gh.Fm)(Ut,my),(0,Gh.Fm)(Ft,my),(0,Gh.Fm)(Wt,my)]);case 2:case"end":return e.stop()}}),Jv)}var vy=W().mark(by),yy=W().mark(wy);function by(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Gh.gz)(s.Z.fireExternalEvent("resize"));case 2:case"end":return e.stop()}}),vy)}function wy(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Gh.$6)([(0,Gh.Fm)(Lt,by)]);case 2:case"end":return e.stop()}}),yy)}var Oy=n()({},Jt,(function(e,t){return t.payload.rules}));const xy=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=Oy[t.type];return n?n(e,t):e};var ky=W().mark(Ey),Sy=W().mark(Cy),Py=function(e){return e.passwordUpdate.dialog.usernameOrPk},jy=function(e){return e.intl};function _y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return W().mark((function n(){var r,o;return W().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r="principals/".concat(e,"/password-rules"),n.next=3,(0,Gh.RE)(Kh.Z.requestSaga,r,{queryParams:{locale:t}});case 3:return o=n.sent,n.abrupt("return",o.body);case 5:case"end":return n.stop()}}),n)}))()}function Ey(){var e,t,n,r;return W().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,Gh.Ys)(Py);case 2:return e=o.sent,o.next=5,(0,Gh.Ys)(jy);case 5:return t=o.sent,n=t.locale,o.next=9,(0,Gh.RE)(_y,e,n);case 9:return r=o.sent,o.next=12,(0,Gh.gz)((a=r.rules,{type:Jt,payload:{rules:a}}));case 12:case"end":return o.stop()}var a}),ky)}function Cy(){return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Gh.$6)([(0,Gh.Fm)(Qt,Ey)]);case 2:case"end":return e.stop()}}),Sy)}const Ty={dialog:Mg,password:Vg,validationRules:xy};var Dy=[Lg,wy,gy,Cy],Ry=n()({},ev,Bh.Z.singleTransferReducer("secret")),My={secret:null};const Iy=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:My,t=arguments.length>1?arguments[1]:void 0,n=Ry[t.type];return n?n(e,t):e},Ay={login:dg,loginForm:jg,passwordUpdate:(0,lg.UY)(Ty),twoStepLogin:Iy};var Ny=[Bv].concat(we()(Dy));function Zy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ly="login",Fy=["loginSuccess","register","resize"],Uy={username:k,"password-request":P,login:S},Hy=function(t,n,r,o,i){var c,l=Uy[n.entryPage]||S,f=[cg(!1),(c=!1,{type:rg,payload:{standalone:c}}),N(n.username||""),I(l),A(l)],p=!!n.showTitle,d=(0,_e.jsx)(eg,{showTitle:p}),h=e.Z.createStore(Ay,Ny,n,Ly);return u.Z.setInputEnvs(n),s.Z.addToStore(h,(function(t){return e.Z.getEvents(Fy,t.input)})),a.Z.addToStore(h,!0,["console","remote"]),e.Z.createApp(Ly,d,h,{input:n,actions:f,publicPath:o,textResourceModules:["login"],customTheme:i})},By=function(t){return e.Z.useApp({initApp:Hy,props:t,packageName:Ly,externalEvents:Fy}).component};By.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zy(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zy(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({showTitle:o().bool,locale:o().string,entryPage:o().oneOf(["username","login","password-request"]),username:o().string,setLocale:o().func,backendUrl:o().string,redirectUrl:o().string,appContext:l.Z.propTypes},Fy.reduce((function(e,t){return e[t]=o().func,e}),{}));const Wy=function(e){var t=e.usernameOrPk,n=e.showTitle;return(0,_e.jsx)(en.Z,{required:[t],children:(0,_e.jsx)(eg,{currentPage:"PASSWORD_UPDATE",showTitle:n})})};const zy=(0,p.connect)((function(e,t){return{usernameOrPk:e.passwordUpdate.dialog.usernameOrPk}}),{})((0,f.ZP)(Wy));function Yy(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 Vy(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yy(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yy(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var qy="password-update",Gy=["success","resize","onVisibilityStatusChange"],Ky=function(t,n,r,o,i){var c=!!n.showTitle,l=!!n.forcedUpdate,f=(0,_e.jsx)(zy,{showTitle:c}),p=[sg(l)];"string"!=typeof n.username||0===n.username.length?p.push({type:ig}):p.push(ug(n.username)),"boolean"==typeof n.showOldPasswordField&&p.push(cg(n.showOldPasswordField));var d=e.Z.createStore(Ay,Ny,n,qy);return u.Z.setInputEnvs(n),s.Z.addToStore(d,(function(t){return e.Z.getEvents(Gy,t.input)})),a.Z.addToStore(d,!0,["console","remote"]),e.Z.createApp(qy,f,d,{input:n,actions:p,publicPath:o,textResourceModules:["login"],customTheme:i})},Xy=function(t){return e.Z.useApp({initApp:Ky,props:t,packageName:qy,externalEvents:Gy}).component};Xy.propTypes=Vy({username:o().string,showTitle:o().bool,showOldPasswordField:o().bool,oldPassword:o().string,backendUrl:o().string,appContext:l.Z.propTypes},Gy.reduce((function(e,t){return Vy(Vy({},e),{},n()({},t,o().func))}),{}));var $y="login";var Qy=e.Z.createBundleableApp($y,Hy,By);e.Z.createBundleableApp("password-update",Ky,Xy);e.Z.registerAppInRegistry(Qy.name,Qy.init)})(),c})()));
|