tocco-legacy-bundle 0.1.38 → 0.1.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -53,9 +53,9 @@ object-assign
53
53
  *
54
54
  * This source code is licensed under the MIT license found in the
55
55
  * LICENSE file in the root directory of this source tree.
56
- */var r=n(1024),o=n(61688);var a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useSyncExternalStore,c=r.useRef,s=r.useEffect,u=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var p=c(null);if(null===p.current){var f={hasValue:!1,value:null};p.current=f}else f=p.current;p=u((function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return c=t}return c=e}if(t=c,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,c=n)}var i,c,s=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,n,r,o]);var d=i(e,p[0],p[1]);return s((function(){f.hasValue=!0,f.value=d}),[d]),l(d),d}},61688:(e,t,n)=>{"use strict";e.exports=n(53250)},52798:(e,t,n)=>{"use strict";e.exports=n(50139)},28721:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});const r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let o;const a=new Uint8Array(16);function i(){if(!o&&(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!o))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(a)}const c=[];for(let e=0;e<256;++e)c.push((e+256).toString(16).slice(1));function s(e,t=0){return(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase()}const u=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();const o=(e=e||{}).random||(e.rng||i)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return s(o)}},1024:e=>{"use strict";e.exports=t},30314:t=>{"use strict";t.exports=e},71298:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},38088:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},87462:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},31599:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},28549:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},2717:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},33417:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(28549);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},32924:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},1972:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(78001);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},62360:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:()=>r})},78001:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(31599);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}i.m=o,i.amdD=function(){throw new Error("define cannot be used indirect")},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>288===e?"chunk-ckeditor.13df02033574b308f15b.js":"chunk-"+({85:"code-editor",198:"vendor-fontawesome",614:"vendor-icons",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"9d1e7308941dfb39c217",198:"428fb8a2ead9aced75bc",560:"19e4818bebc077b4aac2",608:"314ac6c82a4a739203d1",614:"23c575c0e8fd741fc082",759:"e98d9ca417f9458cdb73",817:"b738ad650e5f9a00d364",877:"4533d665bea87f7b6efe"}[e]+".js",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="tocco-:",i.l=(e,t,o,a)=>{if(n[e])n[e].push(t);else{var c,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var p=u[l];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==r+o){c=p;break}}c||(s=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.setAttribute("data-webpack",r+o),c.src=e),n[e]=[t];var f=(t,r)=>{c.onerror=c.onload=null,clearTimeout(d);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(r))),t)return t(r)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=f.bind(null,c.onerror),c.onload=f.bind(null,c.onload),s&&document.head.appendChild(c)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.j=280,i.p="/",(()=>{var e={280: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:()=>fp});var e,t,n,r,o,a,s=i(79013),u=i(59713),l=i.n(u),p=i(45697),f=i.n(p),d=i(22731),h=i(19743),m=i(19241),g=i(30604),v=i(74806),y=i(50558),b="two-factor-connector/INITIALIZE",w="two-factor-connector/SET_TWO_STEP_ACTIVE",O="two-factor-connector/SET_SECRET",k="two-factor-connector/SET_USER_NAME",x="two-factor-connector/REQUEST_SECRET",_="two-factor-connector/GO_TO_SECRET_VERIFICATION",S="two-factor-connector/GO_TO_START",A="two-factor-connector/GO_TO_SECRET",E="two-factor-connector/VERIFY_CODE",C="root/SUCCESS",P="root/SET_SETUP_SUCCESSFUL",j="root/GO_TO_RESULT",D=function(){return{type:b}},T=function(e){return{type:w,payload:{twoFactorActive:e}}},M=function(e){return{type:O,payload:{secret:e}}},R=function(e){return{type:k,payload:{username:e}}},I=function(){return{type:S}},N=function(e){return{type:P,payload:{setupSuccessful:e}}},Z=i(1024),B=i.n(Z),L=i(50258),F=i(44012),H=i(88162),U=i(34206),W=i(65035),z=i(28655),Y=i.n(z),V=i(38205),q=i(7281),G=i(58129),K=V.ZP.div.withConfig({displayName:"StyledButtonWrapper"})(e||(e=Y()(["\n display: flex;\n justify-content: flex-end;\n margin-top: ",";\n\n > "," {\n margin-right: 0;\n }\n"])),q.Z.space(.5),G.Z),X=i(88601),$=V.ZP.div.withConfig({displayName:"StyledMessageWrapper"})(t||(t=Y()(["\n display: grid;\n grid-template-columns: 9% 1fr;\n grid-column-gap: ",";\n"])),q.Z.space(-.5)),Q=V.ZP.span.withConfig({displayName:"StyledIconWrapper"})(n||(n=Y()(["\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?X.Z.color("signal.success.text"):X.Z.color("signal.danger.text")}),q.Z.font(10)),J=V.ZP.div.withConfig({displayName:"StyledTextWrapper"})(r||(r=Y()(["\n display: flex;\n align-items: center;\n"]))),ee=i(85893);const te=function(e){var t=e.success,n=e.goToStart,r=e.setupSuccessful,i=e.intl,c=function(e){return i.formatMessage({id:e})};return r?(0,ee.jsxs)(ee.Fragment,{children:[o||(o=(0,ee.jsxs)($,{children:[(0,ee.jsx)(Q,{isSuccessful:!0,children:(0,ee.jsx)(H.Z,{icon:"check"})}),(0,ee.jsx)(J,{children:(0,ee.jsx)(U.ZP.P,{children:(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.successfulText"})})})]})),(0,ee.jsx)(K,{children:(0,ee.jsx)(W.Z,{label:c("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:t})})]}):(0,ee.jsxs)(ee.Fragment,{children:[a||(a=(0,ee.jsxs)($,{children:[(0,ee.jsx)(Q,{isSuccessful:!1,children:(0,ee.jsx)(H.Z,{icon:"times"})}),(0,ee.jsx)(J,{children:(0,ee.jsx)(U.ZP.P,{children:(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.errorText"})})})]})),(0,ee.jsx)(K,{children:(0,ee.jsx)(W.Z,{label:c("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:n})})]})};var ne={success:function(){return{type:C}},goToStart:I};const re=(0,y.connect)((function(e){return{setupSuccessful:e.twoFactorConnector.setupSuccessful}}),ne)((0,v.ZP)(te));var oe,ae=Object.defineProperty,ie=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,ue=(e,t,n)=>t in e?ae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,le=(e,t)=>{for(var n in t||(t={}))ce.call(t,n)&&ue(e,n,t[n]);if(ie)for(var n of ie(t))se.call(t,n)&&ue(e,n,t[n]);return e},pe=(e,t)=>{var n={};for(var r in e)ce.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ie)for(var r of ie(e))t.indexOf(r)<0&&se.call(e,r)&&(n[r]=e[r]);return n};(e=>{const t=class{constructor(e,n,r,o){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let i=[];for(let e=0;e<this.size;e++)i.push(!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();const c=this.addEccAndInterleave(r);if(this.drawCodewords(c),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(o=t,e=n),this.applyMask(t)}}a(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,n,o=1,i=40,s=-1,u=!0){if(!(t.MIN_VERSION<=o&&o<=i&&i<=t.MAX_VERSION)||s<-1||s>7)throw new RangeError("Invalid value");let l,p;for(l=o;;l++){const r=8*t.getNumDataCodewords(l,n),o=c.getTotalBits(e,l);if(o<=r){p=o;break}if(l>=i)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])u&&p<=8*t.getNumDataCodewords(l,e)&&(n=e);let f=[];for(const t of e){r(t.mode.modeBits,4,f),r(t.numChars,t.mode.numCharCountBits(l),f);for(const e of t.getData())f.push(e)}a(f.length==p);const d=8*t.getNumDataCodewords(l,n);a(f.length<=d),r(0,Math.min(4,d-f.length),f),r(0,(8-f.length%8)%8,f),a(f.length%8==0);for(let e=236;f.length<d;e^=253)r(e,8,f);let h=[];for(;8*h.length<f.length;)h.push(0);return f.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(l,n,h,s)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const r=21522^(t<<10|n);a(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,o(r,e));this.setFunctionModule(8,7,o(r,6)),this.setFunctionModule(8,8,o(r,7)),this.setFunctionModule(7,8,o(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,o(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,o(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,o(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;a(t>>>18==0);for(let e=0;e<18;e++){const n=o(t,e),r=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(r,a,n),this.setFunctionModule(a,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),a=e+r,i=t+n;0<=a&&a<this.size&&0<=i&&i<this.size&&this.setFunctionModule(a,i,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const o=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],i=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],c=Math.floor(t.getNumRawDataModules(n)/8),s=o-c%o,u=Math.floor(c/o);let l=[];const p=t.reedSolomonComputeDivisor(i);for(let n=0,r=0;n<o;n++){let o=e.slice(r,r+u-i+(n<s?0:1));r+=o.length;const a=t.reedSolomonComputeRemainder(o,p);n<s&&o.push(0),l.push(o.concat(a))}let f=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,n)=>{(e!=u-i||n>=s)&&f.push(t[e])}));return a(f.length==c),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let a=0;a<2;a++){const i=t-a,c=0==(t+1&2)?this.size-1-r:r;!this.isFunction[c][i]&&n<8*e.length&&(this.modules[c][i]=o(e[n>>>3],7-(7&n)),n++)}}a(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[n][i]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][i],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[i][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[i][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,o=Math.ceil(Math.abs(20*n-10*r)/r)-1;return a(0<=o&&o<=9),e+=o*t.PENALTY_N4,a(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return a(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const o of e){const e=o^r.shift();r.push(0),n.forEach(((n,o)=>r[o]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return a(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];a(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function o(e,t){return 0!=(e>>>t&1)}function a(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const i=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new i(i.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!i.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const o=Math.min(e.length-n,3);r(parseInt(e.substr(n,o),10),3*o+1,t),n+=o}return new i(i.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!i.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let o=45*i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new i(i.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:i.isNumeric(e)?[i.makeNumeric(e)]:i.isAlphanumeric(e)?[i.makeAlphanumeric(e)]:[i.makeBytes(i.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new i(i.Mode.ECI,0,t)}static isNumeric(e){return i.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return i.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let c=i;c.NUMERIC_REGEX=/^[0-9]*$/,c.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,c.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=c})(oe||(oe={})),(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={}))})(oe||(oe={})),(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={}))})(oe||(oe={}));var fe=oe,de={L:fe.QrCode.Ecc.LOW,M:fe.QrCode.Ecc.MEDIUM,Q:fe.QrCode.Ecc.QUARTILE,H:fe.QrCode.Ecc.HIGH},he=128,me="L",ge="#FFFFFF",ve="#000000",ye=!1;
56
+ */var r=n(1024),o=n(61688);var a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useSyncExternalStore,c=r.useRef,s=r.useEffect,u=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var p=c(null);if(null===p.current){var f={hasValue:!1,value:null};p.current=f}else f=p.current;p=u((function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return c=t}return c=e}if(t=c,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,c=n)}var i,c,s=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,n,r,o]);var d=i(e,p[0],p[1]);return s((function(){f.hasValue=!0,f.value=d}),[d]),l(d),d}},61688:(e,t,n)=>{"use strict";e.exports=n(53250)},52798:(e,t,n)=>{"use strict";e.exports=n(50139)},28721:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});const r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let o;const a=new Uint8Array(16);function i(){if(!o&&(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!o))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(a)}const c=[];for(let e=0;e<256;++e)c.push((e+256).toString(16).slice(1));function s(e,t=0){return(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase()}const u=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();const o=(e=e||{}).random||(e.rng||i)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return s(o)}},1024:e=>{"use strict";e.exports=t},30314:t=>{"use strict";t.exports=e},71298:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},38088:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},87462:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},31599:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},28549:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},2717:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},33417:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(28549);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},32924:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},1972:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(78001);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},62360:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:()=>r})},78001:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(31599);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}i.m=o,i.amdD=function(){throw new Error("define cannot be used indirect")},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>288===e?"chunk-ckeditor.13df02033574b308f15b.js":"chunk-"+({85:"code-editor",198:"vendor-fontawesome",614:"vendor-icons",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"9d1e7308941dfb39c217",198:"428fb8a2ead9aced75bc",560:"19e4818bebc077b4aac2",608:"314ac6c82a4a739203d1",614:"0cb017604157624b356b",759:"e98d9ca417f9458cdb73",817:"b738ad650e5f9a00d364",877:"4533d665bea87f7b6efe"}[e]+".js",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="tocco-:",i.l=(e,t,o,a)=>{if(n[e])n[e].push(t);else{var c,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var p=u[l];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==r+o){c=p;break}}c||(s=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.setAttribute("data-webpack",r+o),c.src=e),n[e]=[t];var f=(t,r)=>{c.onerror=c.onload=null,clearTimeout(d);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(r))),t)return t(r)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=f.bind(null,c.onerror),c.onload=f.bind(null,c.onload),s&&document.head.appendChild(c)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.j=280,i.p="/",(()=>{var e={280: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:()=>hp});var e,t,n,r,o,a,s=i(79013),u=i(59713),l=i.n(u),p=i(45697),f=i.n(p),d=i(22731),h=i(19743),m=i(19241),g=i(30604),v=i(74806),y=i(50558),b="two-factor-connector/INITIALIZE",w="two-factor-connector/SET_TWO_STEP_ACTIVE",O="two-factor-connector/SET_SECRET",k="two-factor-connector/SET_USER_NAME",x="two-factor-connector/REQUEST_SECRET",_="two-factor-connector/GO_TO_SECRET_VERIFICATION",S="two-factor-connector/GO_TO_START",A="two-factor-connector/GO_TO_SECRET",E="two-factor-connector/VERIFY_CODE",C="root/SUCCESS",P="root/SET_SETUP_SUCCESSFUL",j="root/GO_TO_RESULT",D=function(){return{type:b}},T=function(e){return{type:w,payload:{twoFactorActive:e}}},M=function(e){return{type:O,payload:{secret:e}}},R=function(e){return{type:k,payload:{username:e}}},I=function(){return{type:S}},N=function(e){return{type:P,payload:{setupSuccessful:e}}},Z=i(1024),B=i.n(Z),L=i(50258),F=i(44012),H=i(88162),U=i(34206),W=i(65035),z=i(28655),Y=i.n(z),V=i(38205),q=i(7281),G=i(58129),K=V.ZP.div.withConfig({displayName:"StyledButtonWrapper"})(e||(e=Y()(["\n display: flex;\n justify-content: flex-end;\n margin-top: ",";\n\n > "," {\n margin-right: 0;\n }\n"])),q.Z.space(.5),G.Z),X=i(88601),$=V.ZP.div.withConfig({displayName:"StyledMessageWrapper"})(t||(t=Y()(["\n display: grid;\n grid-template-columns: 9% 1fr;\n grid-column-gap: ",";\n"])),q.Z.space(-.5)),Q=V.ZP.span.withConfig({displayName:"StyledIconWrapper"})(n||(n=Y()(["\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?X.Z.color("signal.success.text"):X.Z.color("signal.danger.text")}),q.Z.font(10)),J=V.ZP.div.withConfig({displayName:"StyledTextWrapper"})(r||(r=Y()(["\n display: flex;\n align-items: center;\n"]))),ee=i(85893);const te=function(e){var t=e.success,n=e.goToStart,r=e.setupSuccessful,i=e.intl,c=function(e){return i.formatMessage({id:e})};return r?(0,ee.jsxs)(ee.Fragment,{children:[o||(o=(0,ee.jsxs)($,{children:[(0,ee.jsx)(Q,{isSuccessful:!0,children:(0,ee.jsx)(H.Z,{icon:"check"})}),(0,ee.jsx)(J,{children:(0,ee.jsx)(U.ZP.P,{children:(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.successfulText"})})})]})),(0,ee.jsx)(K,{children:(0,ee.jsx)(W.Z,{label:c("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:t})})]}):(0,ee.jsxs)(ee.Fragment,{children:[a||(a=(0,ee.jsxs)($,{children:[(0,ee.jsx)(Q,{isSuccessful:!1,children:(0,ee.jsx)(H.Z,{icon:"times"})}),(0,ee.jsx)(J,{children:(0,ee.jsx)(U.ZP.P,{children:(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.errorText"})})})]})),(0,ee.jsx)(K,{children:(0,ee.jsx)(W.Z,{label:c("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:n})})]})};var ne={success:function(){return{type:C}},goToStart:I};const re=(0,y.connect)((function(e){return{setupSuccessful:e.twoFactorConnector.setupSuccessful}}),ne)((0,v.ZP)(te));var oe,ae=Object.defineProperty,ie=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,ue=(e,t,n)=>t in e?ae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,le=(e,t)=>{for(var n in t||(t={}))ce.call(t,n)&&ue(e,n,t[n]);if(ie)for(var n of ie(t))se.call(t,n)&&ue(e,n,t[n]);return e},pe=(e,t)=>{var n={};for(var r in e)ce.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ie)for(var r of ie(e))t.indexOf(r)<0&&se.call(e,r)&&(n[r]=e[r]);return n};(e=>{const t=class{constructor(e,n,r,o){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let i=[];for(let e=0;e<this.size;e++)i.push(!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();const c=this.addEccAndInterleave(r);if(this.drawCodewords(c),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(o=t,e=n),this.applyMask(t)}}a(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,n,o=1,i=40,s=-1,u=!0){if(!(t.MIN_VERSION<=o&&o<=i&&i<=t.MAX_VERSION)||s<-1||s>7)throw new RangeError("Invalid value");let l,p;for(l=o;;l++){const r=8*t.getNumDataCodewords(l,n),o=c.getTotalBits(e,l);if(o<=r){p=o;break}if(l>=i)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])u&&p<=8*t.getNumDataCodewords(l,e)&&(n=e);let f=[];for(const t of e){r(t.mode.modeBits,4,f),r(t.numChars,t.mode.numCharCountBits(l),f);for(const e of t.getData())f.push(e)}a(f.length==p);const d=8*t.getNumDataCodewords(l,n);a(f.length<=d),r(0,Math.min(4,d-f.length),f),r(0,(8-f.length%8)%8,f),a(f.length%8==0);for(let e=236;f.length<d;e^=253)r(e,8,f);let h=[];for(;8*h.length<f.length;)h.push(0);return f.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(l,n,h,s)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const r=21522^(t<<10|n);a(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,o(r,e));this.setFunctionModule(8,7,o(r,6)),this.setFunctionModule(8,8,o(r,7)),this.setFunctionModule(7,8,o(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,o(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,o(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,o(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;a(t>>>18==0);for(let e=0;e<18;e++){const n=o(t,e),r=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(r,a,n),this.setFunctionModule(a,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),a=e+r,i=t+n;0<=a&&a<this.size&&0<=i&&i<this.size&&this.setFunctionModule(a,i,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const o=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],i=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],c=Math.floor(t.getNumRawDataModules(n)/8),s=o-c%o,u=Math.floor(c/o);let l=[];const p=t.reedSolomonComputeDivisor(i);for(let n=0,r=0;n<o;n++){let o=e.slice(r,r+u-i+(n<s?0:1));r+=o.length;const a=t.reedSolomonComputeRemainder(o,p);n<s&&o.push(0),l.push(o.concat(a))}let f=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,n)=>{(e!=u-i||n>=s)&&f.push(t[e])}));return a(f.length==c),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let a=0;a<2;a++){const i=t-a,c=0==(t+1&2)?this.size-1-r:r;!this.isFunction[c][i]&&n<8*e.length&&(this.modules[c][i]=o(e[n>>>3],7-(7&n)),n++)}}a(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[n][i]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][i],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[i][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[i][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,o=Math.ceil(Math.abs(20*n-10*r)/r)-1;return a(0<=o&&o<=9),e+=o*t.PENALTY_N4,a(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return a(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const o of e){const e=o^r.shift();r.push(0),n.forEach(((n,o)=>r[o]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return a(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];a(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function o(e,t){return 0!=(e>>>t&1)}function a(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const i=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new i(i.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!i.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const o=Math.min(e.length-n,3);r(parseInt(e.substr(n,o),10),3*o+1,t),n+=o}return new i(i.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!i.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let o=45*i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new i(i.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:i.isNumeric(e)?[i.makeNumeric(e)]:i.isAlphanumeric(e)?[i.makeAlphanumeric(e)]:[i.makeBytes(i.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new i(i.Mode.ECI,0,t)}static isNumeric(e){return i.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return i.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let c=i;c.NUMERIC_REGEX=/^[0-9]*$/,c.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,c.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=c})(oe||(oe={})),(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={}))})(oe||(oe={})),(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={}))})(oe||(oe={}));var fe=oe,de={L:fe.QrCode.Ecc.LOW,M:fe.QrCode.Ecc.MEDIUM,Q:fe.QrCode.Ecc.QUARTILE,H:fe.QrCode.Ecc.HIGH},he=128,me="L",ge="#FFFFFF",ve="#000000",ye=!1;
57
57
  /**
58
58
  * @license qrcode.react
59
59
  * Copyright (c) Paul O'Shannessy
60
60
  * SPDX-License-Identifier: ISC
61
- */function be(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 we(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 Oe(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,p=null==r.y?e.length/2-u/2:r.y*c;let f=null;if(r.excavate){let e=Math.floor(l),t=Math.floor(p);f={x:e,y:t,w:Math.ceil(s+l-e),h:Math.ceil(u+p-t)}}return{x:l,y:p,h:u,w:s,excavation:f}}var ke=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}();function xe(e){const t=e,{value:n,size:r=he,level:o=me,bgColor:a=ge,fgColor:i=ve,includeMargin:c=ye,style:s,imageSettings:u}=t,l=pe(t,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),p=null==u?void 0:u.src,f=(0,Z.useRef)(null),d=(0,Z.useRef)(null),[h,m]=(0,Z.useState)(!1);(0,Z.useEffect)((()=>{if(null!=f.current){const e=f.current,t=e.getContext("2d");if(!t)return;let s=fe.QrCode.encodeText(n,de[o]).getModules();const l=c?4:0,p=s.length+2*l,h=Oe(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=we(s,h.excavation));const v=window.devicePixelRatio||1;e.height=e.width=r*v;const y=r/p*v;t.scale(y,y),t.fillStyle=a,t.fillRect(0,0,p,p),t.fillStyle=i,ke?t.fill(new Path2D(be(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,Z.useEffect)((()=>{m(!1)}),[p]);const g=le({height:r,width:r},s);let v=null;return null!=p&&(v=B().createElement("img",{src:p,key:p,style:{display:"none"},onLoad:()=>{m(!0)},ref:d})),B().createElement(B().Fragment,null,B().createElement("canvas",le({style:g,height:r,width:r,ref:f},l)),v)}function _e(e){const t=e,{value:n,size:r=he,level:o=me,bgColor:a=ge,fgColor:i=ve,includeMargin:c=ye,imageSettings:s}=t,u=pe(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let l=fe.QrCode.encodeText(n,de[o]).getModules();const p=c?4:0,f=l.length+2*p,d=Oe(l,r,c,s);let h=null;null!=s&&null!=d&&(null!=d.excavation&&(l=we(l,d.excavation)),h=B().createElement("image",{xlinkHref:s.src,height:d.h,width:d.w,x:d.x+p,y:d.y+p,preserveAspectRatio:"none"}));const m=be(l,p);return B().createElement("svg",le({height:r,width:r,viewBox:`0 0 ${f} ${f}`},u),B().createElement("path",{fill:a,d:`M0,0 h${f}v${f}H0z`,shapeRendering:"crispEdges"}),B().createElement("path",{fill:i,d:m,shapeRendering:"crispEdges"}),h)}var Se=e=>{const t=e,{renderAs:n}=t,r=pe(t,["renderAs"]);return"svg"===n?B().createElement(_e,le({},r)):B().createElement(xe,le({},r))};const Ae=function(e){var t=e.value;return(0,ee.jsx)(Se,{value:t,renderAs:"svg"})};var Ee,Ce,Pe,je,De,Te,Me=V.ZP.div.withConfig({displayName:"StyledQRCodeWrapper"})(Ee||(Ee=Y()(["\n display: flex;\n justify-content: center;\n margin: "," "," "," ",";\n"])),q.Z.space(1.2),q.Z.space(1),q.Z.space(1.5),q.Z.space(1)),Re=V.ZP.div.withConfig({displayName:"StyledParagraph"})(Ce||(Ce=Y()(["\n display: flex;\n justify-content: center;\n margin-top: ",";\n margin-bottom: ",";\n"])),q.Z.space(-1),q.Z.space(-.9));const Ie=function(e){var t=e.secret,n=e.goToSecretVerification;return(0,ee.jsxs)(ee.Fragment,{children:[Pe||(Pe=(0,ee.jsx)(U.ZP.P,{children:(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.qrCodeInfo"})})),(0,ee.jsx)(Me,{children:(0,ee.jsx)(Ae,{value:t.uri})}),je||(je=(0,ee.jsx)(U.ZP.P,{children:(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.secretInfo"})})),(0,ee.jsx)(Re,{children:(0,ee.jsx)(U.ZP.B,{children:t.secret})}),De||(De=(0,ee.jsx)(U.ZP.P,{children:(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.backupInfo"})})),(0,ee.jsx)(K,{children:(0,ee.jsx)(W.Z,{ink:"primary",look:"raised",onClick:n,children:Te||(Te=(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.nextButton"}))})})]})};var Ne={goToSecretVerification:function(){return{type:_}}};const Ze=(0,y.connect)((function(e){return{secret:e.twoFactorConnector.secret}}),Ne)((0,v.ZP)(Ie));var Be;const Le=function(e){var t=e.twoFactorActive,n=e.forced,r=e.requestSecret,o=e.intl,a=function(e){return o.formatMessage({id:e})};return(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsx)(U.ZP.P,{children:function(){if(t)return Be||(Be=(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.overwriteInfo"}));var e=a(n?"client.two-factor-connector.forcedInfo":"client.two-factor-connector.info");return(0,ee.jsx)("span",{dangerouslySetInnerHTML:{__html:e}})}()}),(0,ee.jsx)(K,{children:(0,ee.jsx)(W.Z,{label:a("client.two-factor-connector.nextButton"),ink:"primary",look:"raised",onClick:r})})]})};var Fe={initialize:D,requestSecret:function(){return{type:x}}};const He=(0,y.connect)((function(e){return{twoFactorActive:e.twoFactorConnector.twoFactorActive,secret:e.twoFactorConnector.secret,forced:e.input.forced}}),Fe)((0,v.ZP)(Le));var Ue=i(63038),We=i.n(Ue),ze=i(41505),Ye=i.n(ze),Ve=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},qe=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},Ge=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},Ke={outline:"none"},Xe=function(e){function t(){var n,r;Ve(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=Ge(this,e.call.apply(e,[this].concat(a))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=B().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)},Ge(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?B().cloneElement(e({focused:t,getRef:this.ref}),n):B().createElement("div",qe({ref:this.ref,style:Ke},n),e)},t}(B().Component);Xe.propTypes={children:Ye().oneOfType([Ye().node,Ye().func]).isRequired,onBlur:Ye().func,onFocus:Ye().func},Xe.defaultProps={onBlur:function(){},onFocus:function(){}};const $e=Xe;var Qe,Je,et,tt,nt=i(70696),rt=i(10535),ot=i(78958),at=i(319),it=i.n(at),ct=i(27361),st=i.n(ct),ut=i(37188),lt=i(58664),pt=(Qe={},l()(Qe,ot.Z.condition.BASE,"inherit"),l()(Qe,ot.Z.condition.DANGER,X.Z.color("signal.danger.text")),l()(Qe,ot.Z.condition.PRIMARY,(function(e){return(0,lt.HO)(st()(e.theme,"colors.primary"),1)})),l()(Qe,ot.Z.condition.SUCCESS,X.Z.color("signal.success.text")),l()(Qe,ot.Z.condition.WARNING,X.Z.color("signal.warning.text")),l()(Qe,ot.Z.condition.INFO,X.Z.color("signal.info.text")),Qe),ft=(0,V.ZP)(ut.hc).withConfig({displayName:"StyledSignalList"})(Je||(Je=Y()(["\n && {\n list-style-type: none;\n }\n"]))),dt=V.ZP.span.withConfig({displayName:"StyledSignalListIcon"})(et||(et=Y()(["\n position: absolute;\n left: -1.6rem;\n text-align: left;\n"]))),ht=(0,V.ZP)(ut.EF).withConfig({displayName:"StyledSignalListItem"})(tt||(tt=Y()(["\n && {\n color: ",";\n position: relative;\n padding: 0;\n }\n"])),(function(e){return function(e){return pt[e.condition]||"inherit"}(e)}));const mt=function(e){return(0,ee.jsx)(ft,{as:"ul",children:B().Children.map(e.children,(function(e){return B().cloneElement(e)}))})};var gt,vt,yt=(gt={},l()(gt,ot.Z.condition.BASE,!1),l()(gt,ot.Z.condition.PRIMARY,!1),l()(gt,ot.Z.condition.DANGER,"times"),l()(gt,ot.Z.condition.SUCCESS,"check"),l()(gt,ot.Z.condition.WARNING,"exclamation-triangle"),l()(gt,ot.Z.condition.INFO,"info"),gt),bt=function(e){var t=yt[e.condition];return t?(0,ee.jsx)(H.Z,{icon:t,position:ot.Z.position.SOLE}):vt||(vt=(0,ee.jsx)("i",{children:"•"}))},wt=function(e){return(0,ee.jsxs)(ht,{condition:e.condition,children:[(0,ee.jsx)(dt,{children:bt(e)}),e.label,B().Children.map(e.children,(function(e){return B().cloneElement(e)}))]})};wt.defaultProps={condition:ot.Z.condition.BASE};const Ot={List:mt,Item:wt};const kt=function(e){if(!e.error)return null;var t=[];return Object.keys(e.error).forEach((function(n){t.push.apply(t,it()(e.error[n]))})),(0,ee.jsx)(Ot.List,{children:t.map((function(e,t){return(0,ee.jsx)(Ot.Item,{condition:"danger",label:e},t)}))})};var xt,_t,St,At,Et,Ct,Pt,jt=i(79686),Dt=i(30759),Tt={shade0:function(e){var t=e.theme;return st()(t,"colors.text")},shade1:function(e){var t=e.theme;return(0,lt.HO)(st()(t,"colors.text"),3.5)},shade2:function(e){var t=e.theme;return(0,lt.HO)(st()(t,"colors.text"),5.5)},signal:function(e){var t=e.theme,n=e.signal;return st()(t,"colors.signal.".concat(n,".text"))},hasValue:function(e){var t=e.theme;return st()(t,"colors.signal.info.text")}},Mt={shade0:function(e){var t=e.theme;return st()(t,"colors.paper")},shade1:function(e){var t=e.theme;return(0,lt.HO)(st()(t,"colors.paper"),2)},shade2:function(e){var t=e.theme;return(0,lt.HO)(st()(t,"colors.paper"),4)},signal:function(e){var t=e.theme,n=e.signal;return st()(t,"colors.signal.".concat(n,".text"))},isDirty:function(e){var t=e.theme;return st()(t,"colors.secondaryLight")},transparent:function(){return"transparent"}},Rt="1.1px",It=function(e){var t=e.isDisplay,n=e.immutable;return"cursor: ".concat(!t&&n?"not-allowed":"auto",";")},Nt=V.ZP.div.withConfig({displayName:"StyledLabelWrapper"})(xt||(xt=Y()(["\n width: calc(100% - ",");\n"])),q.Z.space(.5)),Zt=V.ZP.label.withConfig({displayName:"StyledStatedValueLabel"})(_t||(_t=Y()(["\n &&& {\n ","\n background-color: ",";\n color: ",";\n left: ",";\n margin: calc("," / -2) 0 0;\n padding: 0 "," 0 ","; // if immutable remove left padding\n position: absolute;\n width: auto;\n height: calc("," + 1px);\n overflow: hidden;\n top: 0;\n pointer-events: auto;\n ","\n\n span {\n white-space: nowrap;\n }\n }\n"])),(0,Dt.Z)({fontWeight:function(e){return e.dirty?X.Z.fontWeight("bold"):X.Z.fontWeight("regular")},lineHeight:X.Z.lineHeight("dense")}),X.Z.color("paper"),(function(e){return Tt[function(e){var t=e.isDisplay,n=e.immutable,r=e.signal,o=e.hasValue;return r?"signal":o?"hasValue":t?"shade1":n?"shade0":"shade1"}(e)](e)}),q.Z.space(-2),q.Z.font(0),q.Z.space(-2),(function(e){return e.immutable&&"0"}),q.Z.font(0),(function(e){return It(e)})),Bt=V.ZP.div.withConfig({displayName:"StyledStatedValueBox"})(St||(St=Y()(["\n &&& {\n border: "," solid ",";\n padding: "," "," "," ",";\n position: relative;\n margin-top: ",";\n padding-left: ",";\n padding-top: ",";\n ","\n ","\n\n * {\n padding-left: ",";\n margin-bottom: 0;\n }\n\n > "," {\n padding-top: ",";\n position: relative;\n top: 5px;\n\n p:first-of-type {\n margin-top: 0;\n }\n }\n }\n"])),Rt,(function(e){return Mt[function(e){var t=e.immutable,n=e.isDisplay,r=e.signal;return e.isDirty?"isDirty":n||t?"transparent":r?"signal":"shade1"}(e)](e)}),q.Z.space(-1),q.Z.space(-1),q.Z.space(-2),q.Z.space(-1),(function(e){return e.isDisplay&&q.Z.space(-1)}),(function(e){return e.immutable&&q.Z.space(-2)}),(function(e){var t=e.isDisplay,n=e.immutable;return t&&n&&q.Z.space(-1)}),(function(e){return!e.immutable&&(0,lt.kk)(e)}),(function(e){return It(e)}),(function(e){return e.isDisplay&&"0"}),jt.j,(function(e){return e.isDisplay&&q.Z.space(-1)})),Lt=V.ZP.p.withConfig({displayName:"StyledStatedValueDescription"})(At||(At=Y()(["\n &&& {\n ","\n }\n"])),(0,Dt.Z)({fontSize:q.Z.font(-1)})),Ft=V.ZP.div.withConfig({displayName:"StyledStatedValueError"})(Et||(Et=Y()([""]))),Ht=V.ZP.div.withConfig({displayName:"StyledStatedValueWrapper"})(Ct||(Ct=Y()(["\n &&& {\n margin-bottom: ",";\n padding-top: ",";\n\n ",",\n ",",\n "," {\n margin-bottom: ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n ",",\n "," {\n margin-left: calc("," + ",");\n }\n }\n"])),q.Z.space(-1),q.Z.space(-1.5),Bt,Lt,Ft,q.Z.space(-2),Lt,Ft,q.Z.space(-1),Rt);V.ZP.input.withConfig({displayName:"StyledInput"})(Pt||(Pt=Y()(["\n border: 0;\n cursor: ",";\n color: ",";\n outline: 0;\n transition: color 200ms;\n width: 100%;\n"])),(function(e){var t=e.args;return t.immutable&&!t.isDisplay?"not-allowed":"auto"}),(function(e){var t=e.args;return t.immutable&&!t.isDisplay?"#545454":"#000"}));function Ut(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 Wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ut(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const zt=function(e){var t,n,r,o=e.children,a=e.description,i=e.dirty,c=e.isDisplay,s=e.error,u=e.hasValue,l=e.id,p=e.label,f=e.mandatory,d=e.mandatoryTitle,h=e.immutable,m=e.touched,g=e.signal,v=!h&&m&&s&&Object.keys(s).length>0,y="".concat(nt.Z.adjustedHTMLString(p)).concat(f&&d?", ".concat(d):""),b=g||function(e,t,n,r){return t?ot.Z.condition.DANGER:e?ot.Z.condition.INFO:n&&!r?ot.Z.condition.WARNING:void 0}(i,v,f,u),w={__html:"".concat(rt.Z.sanitizeHtml(p)).concat(f?" *":"")},O=!c&&!h&&{htmlFor:l};return(0,ee.jsx)($e,{children:function(e){var l=e.getRef;return(0,ee.jsxs)(Ht,{ref:l,children:[(0,ee.jsxs)(Bt,{hasValue:u,immutable:h,isDisplay:c,signal:b,children:[o,p&&(0,ee.jsx)(Nt,{children:(0,ee.jsx)(Zt,Wt(Wt({},O),{},{hasValue:u,dirty:i,title:y,immutable:h,isDisplay:c,signal:b,children:t||(t=(0,ee.jsx)("span",{dangerouslySetInnerHTML:w}))}))})]}),a&&(n||(n=(0,ee.jsx)(Lt,{children:a}))),v&&(r||(r=(0,ee.jsx)(Ft,{children:(0,ee.jsx)(kt,{error:s})})))]})}})};var Yt=i(57557),Vt=i.n(Yt),qt=i(41609),Gt=i.n(qt),Kt=i(14293),Xt=i.n(Kt),$t=i(23493),Qt=i.n($t),Jt=i(33417),en=i(1972),tn=i(32924),nn=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];var rn=i(2717);function on(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 an(e,t){return an=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},an(e,t)}function cn(e){return cn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},cn(e)}var sn=i(62360);function un(e,t){if(t&&("object"===(0,sn.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 ln(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=cn(e);if(t){var o=cn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return un(this,n)}}var pn=i(31599);var fn=i(78001);function dn(e){return function(e){if(Array.isArray(e))return(0,pn.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,fn.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 hn=i(35268),mn=i(1537),gn=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function vn(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||gn(r)&&gn(o)))return!1;var r,o;return!0}for(var yn={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"},bn=function(e){return(0,mn.tZ)("span",(0,rn.Z)({css:yn},e))},wn={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":"",p="".concat(s?"selected":"focused").concat(l);return"option ".concat(a," ").concat(p,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},On=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,p=c.inputValue,f=c.isMulti,d=c.isOptionDisabled,h=c.isSearchable,m=c.menuIsOpen,g=c.options,v=c.screenReaderStatus,y=c.tabSelectsValue,b=c["aria-label"],w=c["aria-live"],O=(0,Z.useMemo)((function(){return(0,Jt.Z)((0,Jt.Z)({},wn),u||{})}),[u]),k=(0,Z.useMemo)((function(){var e,n="";if(t&&O.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),p=u?l(u):"",f=o||c||void 0,h=f?f.map(l):[],m=(0,Jt.Z)({isDisabled:u&&d(u,i),label:p,labels:h},t);n=O.onChange(m)}return n}),[t,O,d,i,l]),x=(0,Z.useMemo)((function(){var e="",t=n||r,a=!!(n&&i&&i.includes(n));if(t&&O.onFocus){var c={focused:t,label:l(t),isDisabled:d(t,i),isSelected:a,options:o,context:t===n?"menu":"value",selectValue:i};e=O.onFocus(c)}return e}),[n,r,l,d,O,o,i]),_=(0,Z.useMemo)((function(){var e="";if(m&&g.length&&O.onFilter){var t=v({count:o.length});e=O.onFilter({inputValue:p,resultsMessage:t})}return e}),[o,p,m,O,g,v]),S=(0,Z.useMemo)((function(){var e="";if(O.guidance){var t=r?"value":m?"menu":"input";e=O.guidance({"aria-label":b,context:t,isDisabled:n&&d(n,i),isMulti:f,isSearchable:h,tabSelectsValue:y})}return e}),[b,n,r,f,d,h,m,O,i,y]),A="".concat(x," ").concat(_," ").concat(S),E=(0,mn.tZ)(Z.Fragment,null,(0,mn.tZ)("span",{id:"aria-selection"},k),(0,mn.tZ)("span",{id:"aria-context"},A)),C="initial-input-focus"===(null==t?void 0:t.action);return(0,mn.tZ)(Z.Fragment,null,(0,mn.tZ)(bn,{id:s},C&&E),(0,mn.tZ)(bn,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},a&&!C&&E))},kn=[{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źẑżžẓẕƶȥɀⱬꝣ"}],xn=new RegExp("["+kn.map((function(e){return e.letters})).join("")+"]","g"),_n={},Sn=0;Sn<kn.length;Sn++)for(var An=kn[Sn],En=0;En<An.letters.length;En++)_n[An.letters[En]]=An.base;var Cn=function(e){return e.replace(xn,(function(e){return _n[e]}))},Pn=function(e,t){void 0===t&&(t=vn);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}(Cn),jn=function(e){return e.replace(/^\s+|\s+$/g,"")},Dn=function(e){return"".concat(e.label," ").concat(e.value)},Tn=["innerRef"];function Mn(e){var t=e.innerRef,n=(0,tn.Z)(e,Tn),r=(0,hn.r)(n,"onExited","in","enter","exit","appear");return(0,mn.tZ)("input",(0,rn.Z)({ref:t},r,{css:(0,mn.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 Rn=["boxSizing","height","overflow","paddingRight","position"],In={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Nn(e){e.preventDefault()}function Zn(e){e.stopPropagation()}function Bn(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Ln(){return"ontouchstart"in window||navigator.maxTouchPoints}var Fn=!("undefined"==typeof window||!window.document||!window.document.createElement),Hn=0,Un={capture:!1,passive:!1};var Wn=function(){return document.activeElement&&document.activeElement.blur()},zn={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Yn(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,Z.useRef)(!1),c=(0,Z.useRef)(!1),s=(0,Z.useRef)(0),u=(0,Z.useRef)(null),l=(0,Z.useCallback)((function(e,t){if(null!==u.current){var s=u.current,l=s.scrollTop,p=s.scrollHeight,f=s.clientHeight,d=u.current,h=t>0,m=p-f-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=p,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]),p=(0,Z.useCallback)((function(e){l(e,e.deltaY)}),[l]),f=(0,Z.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),d=(0,Z.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;l(e,t)}),[l]),h=(0,Z.useCallback)((function(e){if(e){var t=!!hn.s&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",d,t)}}),[d,f,p]),m=(0,Z.useCallback)((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",d,!1))}),[d,f,p]);return(0,Z.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,Z.useRef)({}),a=(0,Z.useRef)(null),i=(0,Z.useCallback)((function(e){if(Fn){var t=document.body,n=t&&t.style;if(r&&Rn.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&Hn<1){var a=parseInt(o.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,c=window.innerWidth-i+a||0;Object.keys(In).forEach((function(e){var t=In[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(c,"px"))}t&&Ln()&&(t.addEventListener("touchmove",Nn,Un),e&&(e.addEventListener("touchstart",Bn,Un),e.addEventListener("touchmove",Zn,Un))),Hn+=1}}),[r]),c=(0,Z.useCallback)((function(e){if(Fn){var t=document.body,n=t&&t.style;Hn=Math.max(Hn-1,0),r&&Hn<1&&Rn.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&Ln()&&(t.removeEventListener("touchmove",Nn,Un),e&&(e.removeEventListener("touchstart",Bn,Un),e.removeEventListener("touchmove",Zn,Un)))}}),[r]);return(0,Z.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,mn.tZ)(Z.Fragment,null,n&&(0,mn.tZ)("div",{onClick:Wn,css:zn}),t((function(e){o(e),a(e)})))}var Vn={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},qn=function(e){var t=e.name,n=e.onFocus;return(0,mn.tZ)("input",{required:!0,name:t,tabIndex:-1,onFocus:n,css:Vn,value:"",onChange:function(){}})},Gn={clearIndicator:hn.a,container:hn.b,control:hn.d,dropdownIndicator:hn.e,group:hn.g,groupHeading:hn.f,indicatorsContainer:hn.i,indicatorSeparator:hn.h,input:hn.j,loadingIndicator:hn.l,loadingMessage:hn.k,menu:hn.m,menuList:hn.n,menuPortal:hn.o,multiValue:hn.p,multiValueLabel:hn.q,multiValueRemove:hn.t,noOptionsMessage:hn.u,option:hn.v,placeholder:hn.w,singleValue:hn.x,valueContainer:hn.y};var Kn,Xn={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}},$n={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,hn.z)(),captureMenuScroll:!(0,hn.z)(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,Jt.Z)({ignoreCase:!0,ignoreAccents:!0,stringify:Dn,trim:!0,matchFrom:"any"},Kn),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,c=n.matchFrom,s=i?jn(t):t,u=i?jn(a(e)):a(e);return r&&(s=s.toLowerCase(),u=u.toLowerCase()),o&&(s=Pn(s),u=Cn(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,hn.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};function Qn(e,t,n,r){return{type:"option",data:t,isDisabled:or(e,t,n),isSelected:ar(e,t,n),label:nr(e,t),value:rr(e,t),index:r}}function Jn(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Qn(e,n,t,r)})).filter((function(t){return tr(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=Qn(e,n,t,r);return tr(e,a)?a:void 0})).filter(hn.G)}function er(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,dn(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function tr(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,c=t.value;return(!cr(e)||!a)&&ir(e,{label:i,value:c,data:o},r)}var nr=function(e,t){return e.getOptionLabel(t)},rr=function(e,t){return e.getOptionValue(t)};function or(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ar(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=rr(e,t);return n.some((function(t){return rr(e,t)===r}))}function ir(e,t,n){return!e.filterOption||e.filterOption(t,n)}var cr=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},sr=1,ur=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&&an(e,t)}(a,e);var t,n,r,o=ln(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,hn.B)(i.filter((function(e){return t.getOptionValue(e)!==u}))),"deselect-option",e)}else{if(s)return void t.ariaOnChange((0,hn.C)(e),{action:"select-option",option:e,name:a});o?t.setValue((0,hn.B)([].concat(dn(i),[e])),"select-option",e):t.setValue((0,hn.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,hn.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,hn.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,hn.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 hn.E.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return nr(t.props,e)},t.getOptionValue=function(e){return rr(t.props,e)},t.getStyles=function(e,n){var r=Gn[e](n);r.boxSizing="border-box";var o=t.props.styles[e];return o?o(r,n):r},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){return(0,hn.F)(t.props)},t.buildCategorizedOptions=function(){return Jn(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return er(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:(0,Jt.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,hn.H)(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 cr(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,p=n.tabSelectsValue,f=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||!p||!h||f&&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||++sr),t.state.selectValue=(0,hn.I)(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,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,hn.J)(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,hn.J)(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(Xn):(0,Jt.Z)((0,Jt.Z)({},Xn),this.props.theme):Xn}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,o=this.selectOption,a=this.setValue,i=this.props,c=i.isMulti,s=i.isRtl,u=i.options;return{clearValue:e,cx:t,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:c,isRtl:s,options:u,selectOption:o,selectProps:i,setValue:a,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 or(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ar(this.props,e,t)}},{key:"filterOption",value:function(e,t){return ir(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,p=l.inputIsHidden,f=l.ariaSelection,d=this.commonProps,h=r||this.getElementId("input"),m=(0,Jt.Z)((0,Jt.Z)((0,Jt.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==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?Z.createElement(u,(0,rn.Z)({},d,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:i,type:"text",value:o},m)):Z.createElement(Mn,(0,rn.Z)({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:hn.K,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,p=u.isDisabled,f=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:Z.createElement(c,(0,rn.Z)({},s,{key:"placeholder",isDisabled:p,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(f)return g.map((function(t,i){var c=t===v,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return Z.createElement(n,(0,rn.Z)({},s,{components:{Container:r,Label:o,Remove:a},isFocused:c,isDisabled:p,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 Z.createElement(i,(0,rn.Z)({},s,{data:b,isDisabled:p}),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 Z.createElement(e,(0,rn.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?Z.createElement(e,(0,rn.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 Z.createElement(n,(0,rn.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 Z.createElement(e,(0,rn.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,p=this.state.focusedOption,f=this.props,d=f.captureMenuScroll,h=f.inputValue,m=f.isLoading,g=f.loadingMessage,v=f.minMenuHeight,y=f.maxMenuHeight,b=f.menuIsOpen,w=f.menuPlacement,O=f.menuPosition,k=f.menuPortalTarget,x=f.menuShouldBlockScroll,_=f.menuShouldScrollIntoView,S=f.noOptionsMessage,A=f.onMenuScrollToTop,E=f.onMenuScrollToBottom;if(!b)return null;var C,P=function(t,n){var r=t.type,o=t.data,a=t.isDisabled,i=t.isSelected,c=t.label,s=t.value,f=p===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 Z.createElement(u,(0,rn.Z)({},l,{innerProps:g,data:o,isDisabled:a,isSelected:i,key:m,label:c,type:r,value:s,isFocused:f,innerRef:f?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 Z.createElement(n,(0,rn.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 P(e,"".concat(i,"-").concat(e.index))})))}if("option"===t.type)return P(t,"".concat(t.index))}));else if(m){var j=g({inputValue:h});if(null===j)return null;C=Z.createElement(c,l,j)}else{var D=S({inputValue:h});if(null===D)return null;C=Z.createElement(s,l,D)}var T={minMenuHeight:v,maxMenuHeight:y,menuPlacement:w,menuPosition:O,menuShouldScrollIntoView:_},M=Z.createElement(hn.M,(0,rn.Z)({},l,T),(function(t){var n=t.ref,r=t.placerProps,i=r.placement,c=r.maxHeight;return Z.createElement(o,(0,rn.Z)({},l,T,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:m,placement:i}),Z.createElement(Yn,{captureEnabled:d,onTopArrive:A,onBottomArrive:E,lockEnabled:x},(function(t){return Z.createElement(a,(0,rn.Z)({},l,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:m,maxHeight:c,focusedOption:p}),C)})))}));return k||"fixed"===O?Z.createElement(i,(0,rn.Z)({},l,{appendTo:k,controlElement:this.controlRef,menuPlacement:w,menuPosition:O}),M):M}},{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(a&&!r){if(i&&!this.hasValue())return Z.createElement(qn,{name:a,onFocus:this.onValueInputFocus});if(o){if(n){var s=c.map((function(t){return e.getOptionValue(t)})).join(n);return Z.createElement("input",{name:a,type:"hidden",value:s})}var u=c.length>0?c.map((function(t,n){return Z.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):Z.createElement("input",{name:a,type:"hidden",value:""});return Z.createElement("div",null,u)}var l=c[0]?this.getOptionValue(c[0]):"";return Z.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 Z.createElement(On,(0,rn.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,p=this.commonProps=this.getCommonProps();return Z.createElement(r,(0,rn.Z)({},p,{className:i,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:l}),this.renderLiveRegion(),Z.createElement(t,(0,rn.Z)({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:l,menuIsOpen:u}),Z.createElement(o,(0,rn.Z)({},p,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),Z.createElement(n,(0,rn.Z)({},p,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],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,p=e.inputValue,f=e.isMulti,d=(0,hn.I)(u),h={};if(n&&(u!==n.value||s!==n.options||l!==n.menuIsOpen||p!==n.inputValue)){var m=l?function(e,t){return er(Jn(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,v=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,m);h={selectValue:d,focusedOption:v,focusedValue:g,clearFocusValueOnUpdate:!1}}var y=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},b=a,w=i&&c;return i&&!w&&(b={value:(0,hn.D)(f,d,d[0]||null),options:d,action:"initial-input-focus"},w=!c),"initial-input-focus"===(null==a?void 0:a.action)&&(b=null),(0,Jt.Z)((0,Jt.Z)((0,Jt.Z)({},h),y),{},{prevProps:e,ariaSelection:b,prevWasFocused:w})}}],n&&on(t.prototype,n),r&&on(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(Z.Component);ur.defaultProps=$n;i(66751),i(30314),i(73469);var lr=(0,Z.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,p=e.onMenuClose,f=e.onMenuOpen,d=e.value,h=(0,tn.Z)(e,nn),m=(0,Z.useState)(void 0!==c?c:n),g=(0,en.Z)(m,2),v=g[0],y=g[1],b=(0,Z.useState)(void 0!==s?s:o),w=(0,en.Z)(b,2),O=w[0],k=w[1],x=(0,Z.useState)(void 0!==d?d:i),_=(0,en.Z)(x,2),S=_[0],A=_[1],E=(0,Z.useCallback)((function(e,t){"function"==typeof u&&u(e,t),A(e)}),[u]),C=(0,Z.useCallback)((function(e,t){var n;"function"==typeof l&&(n=l(e,t)),y(void 0!==n?n:e)}),[l]),P=(0,Z.useCallback)((function(){"function"==typeof f&&f(),k(!0)}),[f]),j=(0,Z.useCallback)((function(){"function"==typeof p&&p(),k(!1)}),[p]),D=void 0!==c?c:v,T=void 0!==s?s:O,M=void 0!==d?d:S;return(0,Jt.Z)((0,Jt.Z)({},h),{},{inputValue:D,menuIsOpen:T,onChange:E,onInputChange:C,onMenuClose:j,onMenuOpen:P,value:M})}(e);return Z.createElement(ur,(0,rn.Z)({ref:t},n))}));const pr=lr;var fr=i(80470);function dr(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 hr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dr(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const mr=(0,v.ZP)((function(e){var t;return(0,ee.jsx)("span",hr(hr({},e.innerProps),{},{children:(0,ee.jsx)(fr.Z,{icon:"times",tabIndex:-1,"aria-label":(t="client.component.select.clearFieldLabel",e.intl.formatMessage({id:t}))})}))}));var gr=i(95497);function vr(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 yr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vr(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const br=function(e){var t=e.selectProps,n=t.isDisabled,r=t.menuIsOpen;return n?null:(0,ee.jsx)(hn.c.DropdownIndicator,yr(yr({},e),{},{children:(0,ee.jsxs)(gr.M6,{children:[(0,ee.jsx)(gr.A,{icon:"chevron-down",visible:!r,tabIndex:-1}),(0,ee.jsx)(gr.A,{icon:"chevron-up",visible:r,tabIndex:-1})]})}))};var wr,Or,kr;function xr(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 _r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xr(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Sr=function(e,t,n){return function(r){r.stopPropagation(),e(t,n)}},Ar=function(e,t){return function(n){n.stopPropagation(),e(t)}},Er=function(e,t){return function(n){n.stopPropagation(),e(t)}},Cr=function(e){e.stopPropagation()};const Pr=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,p=t.inputValue,f=l&&(c||i);return(0,ee.jsx)(gr.HO,{isTopAligned:f,children:(0,ee.jsxs)(hn.c.IndicatorsContainer,_r(_r({},e),{},{children:[e.children,n&&!a&&(0,ee.jsx)("span",{onTouchEnd:Cr,onMouseDown:Ar(n,u),children:wr||(wr=(0,ee.jsx)(fr.Z,{icon:"folder",tabIndex:-1}))}),r&&!a&&(0,ee.jsx)("span",{onTouchEnd:Cr,onMouseDown:Sr(r,p,u),children:Or||(Or=(0,ee.jsx)(fr.Z,{icon:"search",tabIndex:-1}))}),s&&!a&&(0,ee.jsx)("span",{onTouchEnd:Cr,onMouseDown:Er(o,u),children:kr||(kr=(0,ee.jsx)(fr.Z,{icon:"plus",tabIndex:-1}))})]}))})};var jr,Dr=i(93235);const Tr=function(){return jr||(jr=(0,ee.jsx)("span",{children:(0,ee.jsx)(Dr.Z,{size:"1.8rem"})}))};function Mr(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 Rr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mr(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ir=function(e){var t=e.selectProps,n=e.children;return(0,ee.jsx)(gr._M,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"window",attachment:"together"}],renderTarget:function(e){return(0,ee.jsx)("div",{ref:e})},renderElement:function(r){return(0,ee.jsx)("div",{ref:r,children:(0,ee.jsx)(gr.l2,Rr(Rr({},Vt()(e,["innerRef"])),{},{wrapperWidth:t.wrapperWidth,wrapperHeight:t.wrapperHeight,children:n}))})}})};function Nr(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 Zr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nr(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Br=function(e){var t=e.selectProps,n=e.children,r=t.moreOptionsAvailable,o=t.moreOptionsAvailableText;return(0,ee.jsxs)(hn.c.MenuList,Zr(Zr({},e),{},{className:"MenuList",children:[n,r&&(0,ee.jsx)(gr.OA,{children:o})]}))};var Lr,Fr=i(76791);const Hr=V.ZP.span(Lr||(Lr=Y()(["\n pointer-events: auto;\n cursor: pointer;\n"])));function Ur(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 Wr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ur(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ur(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const zr=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=st()(a,t.key,null),u=(0,ee.jsx)("span",Wr(Wr({},n),{},{children:r})),l=c?(0,ee.jsx)(Hr,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,ee.jsx)(c,{entityKey:t.key,children:(0,ee.jsx)(Fr.Z,{content:s?(0,ee.jsx)("div",{dangerouslySetInnerHTML:{__html:rt.Z.sanitizeHtml(s)}}):null,children:(0,ee.jsx)("span",{onMouseOver:function(){return i&&!s&&i(t.key)},children:u})})})}):u;return(0,ee.jsx)(gr.B1,{children:l})};var Yr=i(47037),Vr=i.n(Yr),qr=i(14176),Gr=i.n(qr);function Kr(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 Xr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kr(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $r=["linkComp"],Qr=function(e,t){var n=nt.Z.difference(e,t),r=Gr()(Vt()(n,$r),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length},Jr=(0,Z.memo)((function(e){var t=e.linkComp,n=e.entityKey,r=e.children;return t&&Vr()(n)?(0,ee.jsx)(Hr,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,ee.jsx)(t,{entityKey:n,children:r})}):r}),Qr);Jr.propTypes={children:f().node,entityKey:f().any,linkComp:f().func};const eo=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=st()(a,t.key,null);return(0,ee.jsx)(hn.c.SingleValue,Xr(Xr({},e),{},{children:(0,ee.jsx)(gr.xq,{onMouseOver:function(){return i&&!s&&i(t.key)},isDisabled:r,children:(0,ee.jsx)(Fr.Z,{content:s?(0,ee.jsx)("div",{dangerouslySetInnerHTML:{__html:rt.Z.sanitizeHtml(s)}}):null,children:(0,ee.jsx)(Jr,{linkComp:c,entityKey:t.key,children:o})})})}))};function to(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 no=function(e){var t;return"Input"===(null==e||null===(t=e.type)||void 0===t?void 0:t.name)};const ro=function(e){var t=e.selectProps,n=e.hasValue,r=e.children,o=t.isMulti,a=t.hasAdvancedSearch,i=t.hasDocsTreeSearch,c=t.isDisabled;if(!(o&&(a||i)))return(0,ee.jsx)(hn.c.ValueContainer,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?to(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):to(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e));var s=Z.Children.map(r,(function(e){return no(e)?e:null})),u=Z.Children.map(r,(function(e){return no(e)?null:e})),p=c&&n;return(0,ee.jsxs)(ee.Fragment,{children:[!p&&(0,ee.jsx)(ee.Fragment,{children:s}),(0,ee.jsx)(gr.eQ,{children:u})]})};function oo(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 ao(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oo(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const io=(0,V.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.onChange,p=e.openDocsTreeSearch,f=e.openAdvancedSearch,d=e.options,h=e.searchOptions,m=e.theme,g=e.tooltips,v=e.value,y=e.DetailLink,b=e.createPermission,w=e.openRemoteCreate,O=(0,Z.useRef)(null),k=(0,Z.useRef)(null),x=function(){var e;return(null===(e=k.current)||void 0===e?void 0:e.clientWidth)||300},_=function(){var e;return(null===(e=k.current)||void 0===e?void 0:e.clientHeight)||35},S=(0,Z.useState)(x()),A=We()(S,2),E=A[0],C=A[1],P=(0,Z.useState)(_()),j=We()(P,2),D=j[0],T=j[1],M=function(e){t&&t(e)},R=(0,Z.useCallback)(h||function(){},[]),I=(0,Z.useCallback)(Qt()(R,800,{trailing:!0}),[]),N=Boolean(f),B=Boolean(p),L=Boolean(b);return(0,ee.jsx)(gr.sP,{tabIndex:"-1",id:n,onFocus:function(){O.current.focus(),setTimeout((function(){C(x()),T(_())}),0)},children:(0,ee.jsx)(gr.RU,{ref:k,children:(0,ee.jsx)(pr,ao(ao({getOptionLabel:function(e){return e.display},getOptionValue:function(e){return e.key},wrapperWidth:E,wrapperHeight:D,components:{ClearIndicator:mr,LoadingIndicator:Tr,DropdownIndicator:br,IndicatorsContainer:Pr,IndicatorSeparator:null,Menu:Ir,MenuList:Br,MultiValueLabel:zr,SingleValue:eo,ValueContainer:ro},noOptionsMessage:function(){return u||" - "},isMulti:a,closeMenuOnSelect:!a,isSearchable:!0},h?{filterOption:function(){return!0}}:{}),{},{isClearable:!0,loadingMessage:function(){return null},placeholder:"",menuShouldScrollIntoView:!1,autoFocus:!1,value:v||null,onChange:function(e){l(e),M(e)},onInputChange:function(e,t){var n=t.action;h&&e&&I(e,v),""===e&&"input-change"===n&&M(v)},options:it()(d||[]),isLoading:o,isDisabled:r,ref:O,onMenuOpen:function(){M(v)},styles:(0,gr.i4)(m),loadTooltip:i,tooltips:g,DetailLink:y,hasDocsTreeSearch:B,openDocsTreeSearch:p,hasAdvancedSearch:N,openAdvancedSearch:f,moreOptionsAvailable:c,moreOptionsAvailableText:s,blurInputOnSelect:!1,hasCreatePermission:L,createPermission:b,openRemoteCreate:w,closeMenuOnScroll:function(e){var t;return!(null!==(t=e.target.classList)&&void 0!==t&&t.contains("MenuList"))}}))})})}));const co=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,ee.jsx)(io,{id:t,immutable:n,isMulti:!1,onChange:function(e){return c(e?e.key:null)},value:Xt()(r)?r:{key:r,display:r?a:i},openMenuOnClick:!0,options:[{key:!0,display:a},{key:!1,display:i}]})};var so,uo=V.ZP.div.withConfig({displayName:"StyledBoolEdit"})(so||(so=Y()(["\n margin: 5px 0;\n"])));const lo=function(e){return(0,ee.jsx)(uo,{children:(0,ee.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 po;function fo(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 ho(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fo(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mo=V.ZP.div.withConfig({displayName:"StyledOption"})(po||(po=Y()(["\n margin: 5px 0;\n"]))),go={single:"radio",multiple:"checkbox"},vo={single:{checked:!1},multiple:{}},yo=function(e){var t=e.groupName,n=e.id,r=e.label,o=e.checked,a=e.immutable,i=e.selectionType,c=e.handleChange;return(0,ee.jsxs)(mo,{children:[(0,ee.jsx)("input",{name:t,type:go[i],checked:o||!1,onChange:c,id:n,disabled:a}),(0,ee.jsx)("span",{children:r})]})};const bo=function(e){var t=function(t){if(e.onChange){var n=e.value.options.map((function(n){return ho(ho({},n),n.id===t.target.id?{checked:t.target.checked}:vo[e.options.selectionType])}));e.onChange({options:n})}};return(0,ee.jsx)(ee.Fragment,{children:e.value.options.map((function(n){return(0,ee.jsx)(yo,{groupName:e.id,id:n.id,label:n.label,checked:n.checked,immutable:e.immutable,selectionType:e.options.selectionType,handleChange:t},n.id)}))})};var wo=i(23279),Oo=i.n(wo);function ko(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 xo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ko(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ko(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _o=(0,Z.lazy)((function(){return Promise.all([i.e(560),i.e(85)]).then(i.bind(i,30919))}));const So=function(e){return(0,ee.jsx)(Z.Suspense,{fallback:(t=e.value,(0,ee.jsx)("div",{children:(0,ee.jsx)("p",{children:t})})),children:(0,ee.jsx)(_o,xo({},e))});var t};var Ao,Eo=V.ZP.div.withConfig({displayName:"StyledEditorWrapper"})(Ao||(Ao=Y()(["\n margin-top: ",";\n"])),q.Z.space(-1.5));const Co=function(e){var t=e.value,n=e.onChange,r=e.immutable,o=e.options;return(0,ee.jsx)(Eo,{children:(0,ee.jsx)(So,{value:t,onChange:Oo()(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 Po=i(86896),jo=i(23842),Do=i(6479),To=i.n(Do),Mo=i(93379),Ro=i.n(Mo),Io=i(7795),No=i.n(Io),Zo=i(90569),Bo=i.n(Zo),Lo=i(3565),Fo=i.n(Lo),Ho=i(19216),Uo=i.n(Ho),Wo=i(44589),zo=i.n(Wo),Yo=i(16721),Vo={};Vo.styleTagTransform=zo(),Vo.setAttributes=Fo(),Vo.insert=Bo().bind(null,"head"),Vo.domAPI=No(),Vo.insertStyleElement=Uo();Ro()(Yo.Z,Vo);Yo.Z&&Yo.Z.locals&&Yo.Z.locals;var qo,Go,Ko,Xo,$o,Qo,Jo,ea,ta,na=i(9198),ra=i.n(na),oa=i(23855),aa=(0,V.iv)(qo||(qo=Y()(["\n align-items: center;\n cursor: ",";\n display: flex;\n"])),(function(e){return e.immutable?"not-allowed":"default"})),ia=V.ZP.label.withConfig({displayName:"StyledEditableWrapper"})(Go||(Go=Y()(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),aa),ca=(0,V.iv)(Ko||(Ko=Y()(["\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,Dt.Z)({color:X.Z.color("text")})}),X.Z.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),sa=(0,V.iv)(Xo||(Xo=Y()(["\n display: flex;\n align-items: center;\n"]))),ua=V.ZP.div.withConfig({displayName:"StyledEditableControl"})($o||($o=Y()(["\n &&& {\n ","\n }\n"])),sa),la=V.ZP.span.withConfig({displayName:"StyledEditableValue"})(Qo||(Qo=Y()(["\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"])),X.Z.color("signal.danger.text")),pa=V.ZP.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(Jo||(Jo=Y()(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),fa=V.ZP.div.withConfig({displayName:"StyledDatePickerWrapper"})(ea||(ea=Y()(["\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"])),aa,ca,(function(e){return e.hasTime&&"border-bottom: 1px solid #aeaeae;"})),da=V.ZP.input.withConfig({displayName:"StyledTimeInput"})(ta||(ta=Y()(["\n ","\n border: none;\n outline: none;\n min-height: 2.6rem;\n"])),(0,Dt.Z)()),ha=i(37042),ma=i(4543),ga=i(39880),va=i(85817),ya=i(39159),ba=i(77881),wa=i(14372),Oa=i(12274),ka=i(13882);function xa(e,t,n){return(0,ka.Z)(2,arguments),(0,Oa.default)((0,wa.default)(e,t,new Date,n))}var _a=i(69119),Sa="react-datepicker-time__input",Aa="react-datepicker__day",Ea="react-datepicker__input",Ca=function(e){return e.classList.contains(Aa)},Pa=function(e){return e.classList.contains(Sa)},ja=function(e){return e.classList.contains(Ea)},Da=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,ha.default)((0,ma.default)((0,ga.default)(e,c),a),r)},Ta=function(e){setTimeout((function(){if(e){var t=e.querySelector(".".concat(Aa,'[tabindex="0"]'));t&&t.focus({preventScroll:!0})}}),0)},Ma=function(e){setTimeout((function(){e&&e.focus({preventScroll:!0})}),0)},Ra=function(e){var t=(0,oa.default)(e);return isNaN(t)?null:t},Ia=function(e){return e?e.toISOString():null};const Na=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?Ra:s,l=n.dateToValue,p=void 0===l?Ia:l,f=(0,Z.useRef)(null),d=(0,Z.useState)(!1),h=We()(d,2),m=h[0],g=h[1],v=(0,Z.useState)(!1),y=We()(v,2),b=y[0],w=y[1],O=u(e),k=a?u(a):void 0,x=i?u(i):void 0;(0,Z.useEffect)((function(){(f.current&&"function"==typeof f.current.setOpen&&f.current.setOpen(m),m)&&document.querySelectorAll("button.react-datepicker__navigation").forEach((function(e){return e.setAttribute("tabindex","-1")}))}),[m]);var _=function(){return g(!1)},S=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(f.current&&"function"==typeof f.current.getPreSelection){var t,n=e?f.current.getPreSelection():null;return(null===(t=f.current.state)||void 0===t?void 0:t.preSelection)||n}return null},A=function(e){f.current&&"function"==typeof f.current.setPreSelection&&f.current.setPreSelection(e)},E=function(){t(null),A(null)},C=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=S(!1);if(n){var r=O||new Date,o=t?Da(n,{hour:(0,va.default)(r),minute:(0,ya.default)(r),second:(0,ba.default)(r)}):n;P(o,e)}},P=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 xa(s,e)})),l=(0,_a.default)(n),d=(0,va.default)(n)!==(0,va.default)(l)||(0,ya.default)(n)!==(0,ya.default)(l);(i&&!d||u)&&c&&(n=jo.Z.setCurrentTime(n)),t(p(n))}else E();var h;c||"click"!==(null==r?void 0:r.type)||(_(),Ma(null===(h=f.current)||void 0===h?void 0:h.input))},j=function(e){if("Tab"===e.key)if(e.shiftKey)if(ja(e.target))setTimeout((function(){return _()}),0);else if(Pa(e.target)){var t,n;A(O||S(!0)),Ta(null===(t=f.current)||void 0===t||null===(n=t.calendar)||void 0===n?void 0:n.componentNode)}else Ca(e.target)&&_();else ja(e.target)&&m?(C(e),setTimeout((function(){return _()}),0)):Pa(e.target)?_():Ca(e.target)&&(c?(C(e,!0),A(null),w(!0),setTimeout((function(){var e,t,n;n=null===(e=f.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(Sa));e&&e.focus({preventScroll:!0})}}),0),w(!1)}),0)):(C(e),_()));var r;"Enter"===e.key&&(_(),e.preventDefault(),e.stopPropagation(),Ma(null===(r=f.current)||void 0===r?void 0:r.input));if(["ArrowDown","ArrowUp","Enter"].includes(e.key))if(m){if(m&&null===S(!1)){var o,a;A(O||S(!0)),Ta(null===(o=f.current)||void 0===o||null===(a=o.calendar)||void 0===a?void 0:a.componentNode)}}else g(!0),e.key="Handled".concat(e.key)},D=function(){var e;g((function(e){return!e})),A(null),Ma(null===(e=f.current)||void 0===e?void 0:e.input)};return{reactDatePickerProps:{closeOnScroll:function(){return _(),!0},onClickOutside:_,onInputClick:D,onKeyDown:j,onChange:P,onCalendarOpen:function(){A(null)},onBlur:function(){f.current&&f.current.setState({inputValue:null})},preventOpenOnFocus:!0,enableTabLoop:!1,shouldCloseOnSelect:!1,open:m,selected:O,showTimeInput:c,minDate:k,maxDate:x,ref:f,className:Ea},timeInputProps:{onKeyDown:j,className:Sa,tabIndex:b?void 0:"-1"},clearButtonProps:{onMouseDown:function(e){e.preventDefault(),E()}},calendarButtonProps:{onClick:D,className:m?"react-datepicker-ignore-onclickoutside":""}}};var Za=i(49546),Ba=i(35997),La="HH:mm:ss",Fa="HH:mm",Ha=function(e){return xa(e,Fa)},Ua=function(e){var t=function(e){return xa(e,La)?(0,wa.default)(e,La,new Date):xa(e,Fa)?(0,wa.default)(e,Fa,new Date):xa(e,"HH:")?(0,wa.default)(e,"HH:",new Date):xa(e,"H")?(0,wa.default)(e,"H",new Date):null}(e);return t&&!isNaN(t)?function(e){return(0,Za.default)(e,Fa)}(t):""};const Wa=function(e,t){var n=Ua(e),r=(0,Z.useState)(n),o=We()(r,2),a=o[0],i=o[1],c=(0,Z.useRef)(a),s=Ba.Z.usePrevious(n);(0,Z.useEffect)((function(){s!==n&&a===s&&i(n)}),[n,a,s]);var u={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),p=!o||!Number.isNaN(u)&&u<24,f=!s||!Number.isNaN(l)&&l<60;if(!p||!f)return!1;c.current=n,i(n),n&&!Ha(n)||t(n)}},onBlur:function(){if(a!==n){var e=Ua(a);e&&Ha(e)?(c.current=e,i(e),t(e)):i(n)}},onFocus:function(e){a&&"function"==typeof e.target.select&&e.target.select()},value:a||""};return{inputProps:u,clearButtonProps:{onClick:function(){t(""),i("")}}}};var za=["value","onChange","onKeyDown"];function Ya(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 Va(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ya(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ya(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}(0,na.registerLocale)("en",jo.Z.getDateFnsLocale("en")),(0,na.registerLocale)("en-US",jo.Z.getDateFnsLocale("en")),(0,na.registerLocale)("de-CH",jo.Z.getDateFnsLocale("de-CH")),(0,na.registerLocale)("de",jo.Z.getDateFnsLocale("de")),(0,na.registerLocale)("fr",jo.Z.getDateFnsLocale("fr")),(0,na.registerLocale)("fr-CH",jo.Z.getDateFnsLocale("fr")),(0,na.registerLocale)("it",jo.Z.getDateFnsLocale("it")),(0,na.registerLocale)("it-CH",jo.Z.getDateFnsLocale("it")),(0,na.setDefaultLocale)("de");var qa=function(e){var t=e.onChange,n=e.label;return(0,ee.jsx)(W.Z,{onMouseDown:function(e){e.preventDefault(),t(null)},tabIndex:-1,children:n})},Ga=function(e){var t=e.value,n=e.onChange,r=e.onKeyDown,o=To()(e,za),a=Wa(t,(function(e){n&&n(e||"00:00")})).inputProps;return(0,ee.jsx)(da,Va(Va(Va({},a),o),{},{type:"text",onKeyDown:r,onClick:function(e){e.target.focus()}}))},Ka={strategy:"fixed"};const Xa=(0,V.Zz)((0,v.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,p=e.hasTime,f=e.dateFormats,d=void 0===f?[]:f,h=e.dateTimeFormats,m=void 0===h?[]:h,g=e.events,v=(0,Z.useRef)(void 0),y=u.locale,b=function(e){return u.formatMessage({id:e})},w=(0,Z.useRef)(null),O=Boolean(r),k=!t&&O,x=function(e){v.current=e,s(e)},_=Na(r,x,{dateFormats:d,dateTimeFormats:m,minDate:o,maxDate:a,valueToDate:i,dateToValue:c,hasTime:p}),S=_.reactDatePickerProps,A=_.timeInputProps,E=_.clearButtonProps,C=_.calendarButtonProps;return(0,ee.jsx)(pa,{immutable:t,id:n,tabIndex:"-1",children:(0,ee.jsxs)(fa,{immutable:t,ref:w,hasTime:p,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,ee.jsx)(ra(),Va(Va({},S),{},{disabled:t,dateFormat:[].concat(it()(m),it()(d)),placeholderText:l,showMonthDropdown:!0,showYearDropdown:!0,scrollableYearDropdown:!1,fixedHeight:!0,showPopperArrow:!1,locale:y,customTimeInput:(0,ee.jsx)(Ga,Va({},A)),timeInputLabel:"",popperProps:Ka,todayButton:(0,ee.jsx)(qa,{onChange:x,label:b("client.component.datePicker.todayLabel")})})),k&&(0,ee.jsx)(fr.Z,Va({icon:"times",tabIndex:-1,"aria-label":b("client.component.datePicker.clearDateLabel")},E)),!t&&(0,ee.jsx)(fr.Z,Va({icon:"calendar",tabIndex:-1},C))]})})})));function $a(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 Qa=function(e){var t=e.onChange,n=e.options,r=e.id,o=e.value,a=e.immutable,i=e.events,c=e.placeholder,s=(0,Po.Z)(),u=(null==n?void 0:n.datePickerOptions)||{},p=jo.Z.getLocalizedDateFormatWithoutPunctuation(s.locale),f=["P",p,jo.Z.useTwoDigitYear("P"),jo.Z.useTwoDigitYear(p)];return(0,ee.jsx)(Xa,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$a(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:r,value:o,onChange:t,dateFormats:f,hasTime:!1,immutable:a,placeholder:c,events:i},u))};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}var ei="P HH:mm";const ti=(0,v.ZP)((function(e){var t=e.onChange,n=e.options,r=e.value,o=e.immutable,a=e.placeholder,i=(0,Po.Z)(),c=(null==n?void 0:n.datePickerOptions)||{},s=jo.Z.getLocalizedDateTimeFormatWithoutPunctuation(i.locale),u=[ei,s,jo.Z.useTwoDigitYear(ei),jo.Z.useTwoDigitYear(s)],p=jo.Z.getLocalizedDateFormatWithoutPunctuation(i.locale),f=["P",p,jo.Z.useTwoDigitYear("P"),jo.Z.useTwoDigitYear(p)];return(0,ee.jsx)(Xa,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ja(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ja(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({value:r,onChange:t,dateTimeFormats:u,dateFormats:f,hasTime:!0,immutable:o,placeholder:a},c))}));var ni=i(18446),ri=i.n(ni);function oi(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 ai(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 ii(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 ci(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 si=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 ui(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=si.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 li=[".DS_Store","Thumbs.db"];function pi(e){return"object"==typeof e&&null!==e}function fi(e){return gi(e.target.files).map((function(e){return ui(e)}))}function di(e){return oi(this,void 0,void 0,(function(){return ai(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 ui(e)}))]}}))}))}function hi(e,t){return oi(this,void 0,void 0,(function(){var n;return ai(this,(function(r){switch(r.label){case 0:return e.items?(n=gi(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(vi))]):[3,2];case 1:return[2,mi(yi(r.sent()))];case 2:return[2,mi(gi(e.files).map((function(e){return ui(e)})))]}}))}))}function mi(e){return e.filter((function(e){return-1===li.indexOf(e.name)}))}function gi(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function vi(e){if("function"!=typeof e.webkitGetAsEntry)return bi(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?Oi(t):bi(e)}function yi(e){return e.reduce((function(e,t){return ci(ci([],ii(e),!1),ii(Array.isArray(t)?yi(t):[t]),!1)}),[])}function bi(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=ui(t);return Promise.resolve(n)}function wi(e){return oi(this,void 0,void 0,(function(){return ai(this,(function(t){return[2,e.isDirectory?Oi(e):ki(e)]}))}))}function Oi(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var a=this;t.readEntries((function(t){return oi(a,void 0,void 0,(function(){var a,i,c;return ai(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(wi)),r.push(c),o(),s.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function ki(e){return oi(this,void 0,void 0,(function(){return ai(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=ui(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var xi=i(58363);function _i(e){return function(e){if(Array.isArray(e))return ji(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Pi(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 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 Ai(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Si(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Si(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ei(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ci(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)||Pi(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 Pi(e,t){if(e){if("string"==typeof e)return ji(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)?ji(e,t):void 0}}function ji(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 Di="file-invalid-type",Ti="file-too-large",Mi="file-too-small",Ri="too-many-files",Ii=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:Di,message:"File type must be ".concat(t)}},Ni=function(e){return{code:Ti,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},Zi=function(e){return{code:Mi,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},Bi={code:Ri,message:"Too many files"};function Li(e,t){var n="application/x-moz-file"===e.type||(0,xi.Z)(e,t);return[n,n?null:Ii(t)]}function Fi(e,t,n){if(Hi(e.size))if(Hi(t)&&Hi(n)){if(e.size>n)return[!1,Ni(n)];if(e.size<t)return[!1,Zi(t)]}else{if(Hi(t)&&e.size<t)return[!1,Zi(t)];if(Hi(n)&&e.size>n)return[!1,Ni(n)]}return[!0,null]}function Hi(e){return null!=e}function Ui(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=Ci(Li(e,n),1)[0],a=Ci(Fi(e,r,o),1)[0],i=c?c(e):null;return t&&a&&!i}))}function Wi(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function zi(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 Yi(e){e.preventDefault()}function Vi(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function qi(e){return-1!==e.indexOf("Edge/")}function Gi(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return Vi(e)||qi(e)}function Ki(){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!Wi(e)&&t&&t.apply(void 0,[e].concat(r)),Wi(e)}))}}function Xi(){return"showOpenFilePicker"in window}function $i(e){if(Hi(e)){var t=Object.entries(e).filter((function(e){var t=Ci(e,2),n=t[0],r=t[1],o=!0;return tc(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(nc)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(e,t){var n=Ci(t,2),r=n[0],o=n[1];return Ai(Ai({},e),{},Ei({},r,o))}),{});return[{description:"Files",accept:t}]}return e}function Qi(e){if(Hi(e))return Object.entries(e).reduce((function(e,t){var n=Ci(t,2),r=n[0],o=n[1];return[].concat(_i(e),[r],_i(o))}),[]).filter((function(e){return tc(e)||nc(e)})).join(",")}function Ji(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}function ec(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}function tc(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function nc(e){return/^.*\.[\w]+$/.test(e)}var rc=["children"],oc=["open"],ac=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],ic=["refKey","onChange","onClick"];function cc(e){return function(e){if(Array.isArray(e))return lc(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||uc(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 sc(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)||uc(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 uc(e,t){if(e){if("string"==typeof e)return lc(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)?lc(e,t):void 0}}function lc(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 pc(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 fc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pc(Object(n),!0).forEach((function(t){dc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hc(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 mc=(0,Z.forwardRef)((function(e,t){var n=e.children,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=fc(fc({},gc),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,p=t.onDragOver,f=t.onDrop,d=t.onDropAccepted,h=t.onDropRejected,m=t.onFileDialogCancel,g=t.onFileDialogOpen,v=t.useFsAccessApi,y=t.autoFocus,b=t.preventDropOnDocument,w=t.noClick,O=t.noKeyboard,k=t.noDrag,x=t.noDragEventsBubbling,_=t.onError,S=t.validator,A=(0,Z.useMemo)((function(){return Qi(n)}),[n]),E=(0,Z.useMemo)((function(){return $i(n)}),[n]),C=(0,Z.useMemo)((function(){return"function"==typeof g?g:wc}),[g]),P=(0,Z.useMemo)((function(){return"function"==typeof m?m:wc}),[m]),j=(0,Z.useRef)(null),D=(0,Z.useRef)(null),T=sc((0,Z.useReducer)(bc,yc),2),M=T[0],R=T[1],I=M.isFocused,N=M.isFileDialogActive,B=(0,Z.useRef)("undefined"!=typeof window&&window.isSecureContext&&v&&Xi()),L=function(){!B.current&&N&&setTimeout((function(){D.current&&(D.current.files.length||(R({type:"closeDialog"}),P()))}),300)};(0,Z.useEffect)((function(){return window.addEventListener("focus",L,!1),function(){window.removeEventListener("focus",L,!1)}}),[D,N,P,B]);var F=(0,Z.useRef)([]),H=function(e){j.current&&j.current.contains(e.target)||(e.preventDefault(),F.current=[])};(0,Z.useEffect)((function(){return b&&(document.addEventListener("dragover",Yi,!1),document.addEventListener("drop",H,!1)),function(){b&&(document.removeEventListener("dragover",Yi),document.removeEventListener("drop",H))}}),[j,b]),(0,Z.useEffect)((function(){return!r&&y&&j.current&&j.current.focus(),function(){}}),[j,y,r]);var U=(0,Z.useCallback)((function(e){_?_(e):console.error(e)}),[_]),W=(0,Z.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),F.current=[].concat(cc(F.current),[e.target]),zi(e)&&Promise.resolve(o(e)).then((function(t){if(!Wi(e)||x){var n=t.length,r=n>0&&Ui({files:t,accept:A,minSize:i,maxSize:a,multiple:c,maxFiles:s,validator:S});R({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}})).catch((function(e){return U(e)}))}),[o,u,U,x,A,i,a,c,s,S]),z=(0,Z.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=zi(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&p&&p(e),!1}),[p,x]),Y=(0,Z.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=F.current.filter((function(e){return j.current&&j.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),F.current=t,t.length>0||(R({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),zi(e)&&l&&l(e))}),[j,l,x]),V=(0,Z.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=sc(Li(e,A),2),o=t[0],c=t[1],s=sc(Fi(e,i,a),2),u=s[0],l=s[1],p=S?S(e):null;if(o&&u&&!p)n.push(e);else{var f=[c,l];p&&(f=f.concat(p)),r.push({file:e,errors:f.filter((function(e){return e}))})}})),(!c&&n.length>1||c&&s>=1&&n.length>s)&&(n.forEach((function(e){r.push({file:e,errors:[Bi]})})),n.splice(0)),R({acceptedFiles:n,fileRejections:r,type:"setFiles"}),f&&f(n,r,t),r.length>0&&h&&h(r,t),n.length>0&&d&&d(n,t)}),[R,c,A,i,a,s,f,d,h,S]),q=(0,Z.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),F.current=[],zi(e)&&Promise.resolve(o(e)).then((function(t){Wi(e)&&!x||V(t,e)})).catch((function(e){return U(e)})),R({type:"reset"})}),[o,V,U,x]),G=(0,Z.useCallback)((function(){if(B.current){R({type:"openDialog"}),C();var e={multiple:c,types:E};window.showOpenFilePicker(e).then((function(e){return o(e)})).then((function(e){V(e,null),R({type:"closeDialog"})})).catch((function(e){Ji(e)?(P(e),R({type:"closeDialog"})):ec(e)?(B.current=!1,D.current?(D.current.value=null,D.current.click()):U(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."))):U(e)}))}else D.current&&(R({type:"openDialog"}),C(),D.current.value=null,D.current.click())}),[R,C,P,v,V,U,E,c]),K=(0,Z.useCallback)((function(e){j.current&&j.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),G()))}),[j,G]),X=(0,Z.useCallback)((function(){R({type:"focus"})}),[]),$=(0,Z.useCallback)((function(){R({type:"blur"})}),[]),Q=(0,Z.useCallback)((function(){w||(Gi()?setTimeout(G,0):G())}),[w,G]),J=function(e){return r?null:e},ee=function(e){return O?null:J(e)},te=function(e){return k?null:J(e)},ne=function(e){x&&e.stopPropagation()},re=(0,Z.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,p=e.onDragLeave,f=e.onDrop,d=hc(e,ac);return fc(fc(dc({onKeyDown:ee(Ki(a,K)),onFocus:ee(Ki(i,X)),onBlur:ee(Ki(c,$)),onClick:J(Ki(s,Q)),onDragEnter:te(Ki(u,W)),onDragOver:te(Ki(l,z)),onDragLeave:te(Ki(p,Y)),onDrop:te(Ki(f,q)),role:"string"==typeof o&&""!==o?o:"presentation"},n,j),r||O?{}:{tabIndex:0}),d)}}),[j,K,X,$,Q,W,z,Y,q,O,k,r]),oe=(0,Z.useCallback)((function(e){e.stopPropagation()}),[]),ae=(0,Z.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=hc(e,ic);return fc(fc({},dc({accept:A,multiple:c,type:"file",style:{display:"none"},onChange:J(Ki(r,q)),onClick:J(Ki(o,oe)),tabIndex:-1},n,D)),a)}}),[D,n,c,q,r]);return fc(fc({},M),{},{isFocused:I&&!r,getRootProps:re,getInputProps:ae,rootRef:j,inputRef:D,open:J(G)})}(hc(e,rc)),o=r.open,a=hc(r,oc);return(0,Z.useImperativeHandle)(t,(function(){return{open:o}}),[o]),B().createElement(Z.Fragment,null,n(fc(fc({},a),{},{open:o})))}));mc.displayName="Dropzone";var gc={disabled:!1,getFilesFromEvent:function(e){return oi(this,void 0,void 0,(function(){return ai(this,(function(t){return pi(e)&&pi(e.dataTransfer)?[2,hi(e.dataTransfer,e.type)]:function(e){return pi(e)&&pi(e.target)}(e)?[2,fi(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,di(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};mc.defaultProps=gc,mc.propTypes={children:f().func,accept:f().objectOf(f().arrayOf(f().string)),multiple:f().bool,preventDropOnDocument:f().bool,noClick:f().bool,noKeyboard:f().bool,noDrag:f().bool,noDragEventsBubbling:f().bool,minSize:f().number,maxSize:f().number,maxFiles:f().number,disabled:f().bool,getFilesFromEvent:f().func,onFileDialogCancel:f().func,onFileDialogOpen:f().func,useFsAccessApi:f().bool,autoFocus:f().bool,onDragEnter:f().func,onDragLeave:f().func,onDragOver:f().func,onDrop:f().func,onDropAccepted:f().func,onDropRejected:f().func,onError:f().func,validator:f().func};const vc=mc;var yc={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function bc(e,t){switch(t.type){case"focus":return fc(fc({},e),{},{isFocused:!0});case"blur":return fc(fc({},e),{},{isFocused:!1});case"openDialog":return fc(fc({},yc),{},{isFileDialogActive:!0});case"closeDialog":return fc(fc({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return fc(fc({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return fc(fc({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return fc({},yc);default:return e}}function wc(){}var Oc,kc,xc,_c,Sc,Ac,Ec,Cc,Pc,jc=i(76538),Dc=i(69829),Tc=i(24875),Mc=V.ZP.section.withConfig({displayName:"StyledSection"})(Oc||(Oc=Y()(["\n flex: 1;\n display: flex;\n justify-content: flex-end;\n"]))),Rc=V.ZP.div.withConfig({displayName:"StyledButtonsWrapper"})(kc||(kc=Y()(["\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"])),G.Z,q.Z.space(-2)),Ic=V.ZP.div.withConfig({displayName:"StyledDropzone"})(xc||(xc=Y()(["\n width: 100%;\n\n &:hover {\n "," {\n background-color: ",";\n }\n }\n"])),G.Z,(function(e){var t=e.theme;return(0,jc._j)(.1,t.colors.paper)})),Nc=V.ZP.div.withConfig({displayName:"StyledUploadInput"})(_c||(_c=Y()(["\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,Dt.Z)(),(function(e){return e.immutable?"not-allowed":"pointer"}),Tc.FS.color("paper"),(function(e){return e.immutable?Tt.shade2(e):Tt.shade0(e)}),q.Z.space(-2),G.Z,q.Z.space(-3.1),q.Z.space(-1.5)),Zc=V.ZP.div.withConfig({displayName:"StyledUploadProgress"})(Sc||(Sc=Y()(["\n && {\n padding-top: ",";\n text-align: center;\n display: inline-block;\n }\n"])),q.Z.space(-2)),Bc=(0,V.ZP)(Dc.Fe).withConfig({displayName:"StyledUploadProgressText"})(Ac||(Ac=Y()(["\n && {\n ","\n }\n"])),(0,Dt.Z)({fontSize:q.Z.font(-1)})),Lc=V.ZP.div.withConfig({displayName:"StyledUploadProgressIconAndText"})(Ec||(Ec=Y()(["\n && {\n display: flex;\n justify-content: center;\n align-items: center;\n\n span {\n margin-left: ",";\n }\n }\n"])),q.Z.space(-2)),Fc=V.ZP.div.withConfig({displayName:"StyledView"})(Cc||(Cc=Y()(["\n display: flex;\n justify-content: space-between;\n padding-top: ",";\n"])),q.Z.space(-2));function Hc(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 Uc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hc(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Wc=function(e){var t=e.onDrop,n=e.immutable,r=e.text,o=e.onChoose;return(0,ee.jsxs)(Nc,{immutable:n,children:[(0,ee.jsx)(vc,{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,ee.jsx)(Mc,{children:(0,ee.jsxs)(Ic,Uc(Uc({},t()),{},{children:[(0,ee.jsx)("input",Uc({},n())),Pc||(Pc=(0,ee.jsx)(W.Z,{icon:"arrow-to-top"}))]}))})}}),o&&(0,ee.jsx)(W.Z,{onClick:function(e){o(),e.stopPropagation()},icon:"folder",label:"browse docs",iconOnly:!0})]})};var zc=i(73906),Yc=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 Vc=function(e){var t=e.file,n=e.text;return(0,ee.jsxs)(Zc,{children:[(0,ee.jsx)(zc.Z,{alt:t.name,caption:t.name,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:t.preview,thumbnailUrl:t.type.startsWith("image")?t.preview:null}),(0,ee.jsxs)(Lc,{children:[(0,ee.jsx)(Dr.Z,{position:ot.Z.position.PREPEND}),(0,ee.jsxs)(Bc,{children:[n||"uploading"," (",Yc(t.size),")"]})]})]})};var qc=i(28247),Gc=i(41291);function Kc(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 Xc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kc(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const $c=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,ee.jsxs)(Fc,{className:"StyledView",children:[(0,ee.jsx)(zc.Z,Xc(Xc({alt:n.fileName},c&&{caption:n.fileName}),{},{fileName:n.fileName,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:n.binaryLink,thumbnailUrl:n.thumbnailLink})),(0,ee.jsxs)(Rc,{children:[!o&&(0,ee.jsx)(W.Z,{icon:"trash",onClick:function(){return a(null)},tabIndex:-1,title:i||"delete"}),(0,ee.jsx)(W.Z,{children:(0,ee.jsx)(Gc.Z,{neutral:!0,icon:"arrow-to-bottom",target:"_blank",href:qc.Z.getDownloadUrl(n.binaryLink),tabIndex:-1,title:r||"download"})})]})]})};function Qc(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 Jc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qc(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var es=function(e){var t=e.value,n=e.textResources,r=e.onUpload,o=e.onChoose,a=(0,Z.useRef)(t),i=(0,Z.useState)({isUploading:!1,previewFile:null}),c=We()(i,2),s=c[0],u=c[1];return(0,Z.useEffect)((function(){ri()(a.current,t)||u({isUploading:!1,previewFile:null}),a.current=t}),[t]),null!=t&&t.binaryLink?(0,ee.jsx)($c,Jc(Jc({},e),{},{deleteTitle:n.delete,downloadTitle:n.download})):s.isUploading?(0,ee.jsx)(Vc,Jc({file:s.previewFile,text:n.uploading},e)):(0,ee.jsx)(Wc,Jc(Jc({},e),{},{onDrop:function(e){!function(e){u({isUploading:!0,previewFile:e})}(e),r(e)},onChoose:o}))};es.defaultProps={textResources:{}};const ts=es;var ns=function(e){return(0,ee.jsx)(ts,{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})};ns.defaultProps={options:{}};const rs=ns;var os,as,is=function(e){return-1*Math.abs(e)},cs=V.ZP.input.withConfig({displayName:"StyledDurationEdit"})(os||(os=Y()(["\n &&&& {\n ","\n flex-grow: 0;\n width: ","px;\n min-width: 2.5ch;\n }\n"])),ca,(function(e){return e.width})),ss=V.ZP.label.withConfig({displayName:"StyledDurationEditFocusable"})(as||(as=Y()(["\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"])),q.Z.space(1),(function(e){return e.immutable?(0,lt.iy)(st()(e.theme,"colors.text")):X.Z.color("text")}),(function(e){return e.immutable?"not-allowed":"default"})),us=function(e){var t=e.value,n=e.immutable,r=e.onChange,o=e.options,a=jo.Z.millisecondsToDuration(t),i=(0,Z.useState)(!1),c=We()(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=is(n),o=is(o)),60*(n||0)*6e4+6e4*(o||0)):null))):r(null)},p=function(){u(!0)},f=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,ee.jsxs)(ia,{onBlur:function(){u(!1)},immutable:n,children:[(0,ee.jsxs)(ss,{immutable:n,children:[(0,ee.jsx)(cs,{disabled:n,immutable:n,min:!0===o.allowNegative?void 0:0,onChange:function(){},onFocus:p,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");l(t,null)},onKeyPress:f,pattern:d(),step:1,width:m(a.hours),type:"number",value:"number"!=typeof a.hours||0===a.hours&&!n?"":a.hours+""}),h()&&(0,ee.jsx)(U.ZP.Span,{children:o.hoursLabel})]}),(0,ee.jsxs)(ss,{immutable:n,children:[(0,ee.jsx)(cs,{disabled:n,immutable:n,min:!0!==o.allowNegative||null!==a.hours&&0!==a.hours?0:void 0,onChange:function(){},onFocus:p,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");l(null,t)},onKeyPress:f,pattern:d(),step:1,width:m(a.minutes),type:"number",value:a.minutes+""}),h()&&(0,ee.jsx)(U.ZP.Span,{children:o.minutesLabel})]}),g&&(0,ee.jsxs)(ss,{immutable:n,children:[(0,ee.jsx)(cs,{disabled:n,immutable:n,onChange:function(){},width:m(a.seconds),type:"number",value:a.seconds+""}),h()&&(0,ee.jsx)(U.ZP.Span,{children:o.secondsLabel})]})]})};us.defaultProps={options:{hoursLabel:"hrs",minutesLabel:"min",secondsLabel:"s"}};const ls=us;var ps;const fs=V.ZP.input.attrs((function(e){return{type:"text"}})).withConfig({displayName:"StyledStringEdit"})(ps||(ps=Y()(["\n &&&& {\n ","\n }\n"])),ca);const ds=Ba.Z.Debouncer((function(e){return(0,ee.jsxs)(ia,{immutable:e.immutable,children:[(0,ee.jsx)(fs,{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,ee.jsx)(ua,{children:(0,ee.jsx)(Gc.Z,{href:"mailto:".concat(e.value.toString()),icon:"envelope",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));var hs,ms=(0,Z.lazy)((function(){return Promise.all([i.e(288),i.e(759),i.e(85)]).then(i.bind(i,17676))})),gs=function(e){var t=e.onChange,n=e.immutable,r=e.value,o=e.options;if(n)return(0,ee.jsx)(U.ZP.Span,{children:(0,ee.jsx)("div",{dangerouslySetInnerHTML:{__html:r}})});var a=o||{},i=a.contentLang,c=a.ckEditorConfig;return(0,ee.jsx)(Z.Suspense,{fallback:hs||(hs=(0,ee.jsx)("i",{})),children:(0,ee.jsx)(ms,{onChange:function(e){t&&t(e)},value:r,contentLang:i,ckEditorConfig:c})})};gs.defaultProps={value:""};const vs=gs;function ys(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}var bs;function ws(){}function Os(e){return!!(e||"").match(/\d/)}function ks(e){return null==e}function xs(e){return"number"==typeof e&&isNaN(e)}function _s(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Ss(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 As(e,t,n){for(var r="",o=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||o;return r}function Es(e,t){return Array(t+1).join(e)}function Cs(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."+Es("0",Math.abs(i))+o:i>=c?o+=Es("0",i-c):o=(o.substring(0,i)||"0")+"."+o.substring(i),n+o}function Ps(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,o=Ss(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?".":"")+As(u[1]||"",t,n)}function js(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 Ds(e){return Math.max(e.selectionStart,e.selectionEnd)}function Ts(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function Ms(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 Rs(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(Os(e[n])||Os(e[n-1]));return t}function Is(e,t,n,r,o,a){void 0===a&&(a=ws);var i=(0,Z.useRef)(),c=function(e){var t=(0,Z.useRef)(e);t.current=e;var n=(0,Z.useRef)((function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return t.current.apply(t,e)}));return n.current}((function(e){var t,a;return ks(e)||xs(e)?(a="",t=""):"number"==typeof e||n?(a="number"==typeof e?Cs(e):e,t=r(a)):(a=o(e,void 0),t=e),{formattedValue:t,numAsString:a}})),s=(0,Z.useState)((function(){return c(t)})),u=s[0],l=s[1];return(0,Z.useMemo)((function(){ks(e)?i.current=void 0:(i.current=c(e),l(i.current))}),[e,c]),[u,function(e,t){l({formattedValue:e.formattedValue,numAsString:e.value}),a(e,t)}]}function Ns(e){return e.replace(/[^0-9]/g,"")}function Zs(e){return e}function Bs(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=Zs);var c=e.removeFormatting;void 0===c&&(c=Ns);var s=e.defaultValue,u=e.valueIsNumericString,l=e.onValueChange,p=e.isAllowed,f=e.onChange;void 0===f&&(f=ws);var d=e.onKeyDown;void 0===d&&(d=ws);var h=e.onMouseUp;void 0===h&&(h=ws);var m=e.onFocus;void 0===m&&(m=ws);var g=e.onBlur;void 0===g&&(g=ws);var v=e.value,y=e.getCaretBoundary;void 0===y&&(y=Rs);var b=e.isValidInputCharacter;void 0===b&&(b=Os);var w=ys(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter"]),O=Is(v,s,Boolean(u),i,c,l),k=O[0],x=k.formattedValue,_=k.numAsString,S=O[1],A=(0,Z.useRef)();(0,Z.useEffect)((function(){var e=i(_);if(void 0===A.current||e!==A.current){var t=j.current;L({formattedValue:e,numAsString:_,input:t,setCaretPosition:!0,source:bs.props,event:void 0})}}));var E=(0,Z.useState)(!1),C=E[0],P=E[1],j=(0,Z.useRef)(null),D=(0,Z.useRef)({setCaretTimeout:null,focusTimeout:null});(0,Z.useEffect)((function(){return P(!0),function(){clearTimeout(D.current.setCaretTimeout),clearTimeout(D.current.focusTimeout)}}),[]);var T=i,M=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},R=function(e,t,n){js(e,t),D.current.setCaretTimeout=setTimeout((function(){e.value===n&&js(e,t)}),0)},I=function(e,t,n){return Ms(e,t,y(e),n)},N=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={},p=new Array(s),f=0;f<s;f++){p[f]=-1;for(var d=0,h=u;d<h;d++)if(n[f]===e[d]&&!0!==l[d]){p[f]=d,l[d]=!0;break}}for(var m=r;m<s&&(-1===p[m]||!a(n[m]));)m++;var g=m===s||-1===p[m]?u:p[m];for(m=r-1;m>0&&-1===p[m];)m--;var v=-1===m||-1===p[m]?0:p[m]+1;return v>g?g:r-v<g-r?v:g}(t,x,e,n,r,b);return o=Ms(t,o,r)},L=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=Ds(n);n.value=t,c=N(s,t,u)}n.value=t,r&&void 0!==c&&R(n,c,t)}t!==x&&function(e,t){A.current=e.formattedValue,S(e,t)}(M(t,i),{event:a,source:o})},F=!C||"undefined"==typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",H=Object.assign({inputMode:F},w,{type:t,value:x,onChange:function(e){var t=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}}}(x,e),o=Object.assign(Object.assign({},r),{lastValue:x}),a=c(e,o),i=T(a);if(p&&!p(M(i,a))){var s=t.target,u=Ds(s),l=N(e,x,u);return R(s,l,x),!1}return L({formattedValue:i,numAsString:a,inputValue:e,event:t,source:n,setCaretPosition:!0,input:t.target}),!0}(e.target.value,e,bs.event);t&&f(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=I(i,t,"ArrowLeft"===r?"left":"right");else"Delete"!==r||b(i[t])?"Backspace"!==r||b(i[t])||(c=I(i,t,"left")):c=I(i,t,"right");c!==t&&R(n,c,i),e.isUnitTestRun&&R(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=I(o,n);a!==n&&R(t,a,o)}h(e)},onFocus:function(e){e.persist&&e.persist();var t=e.target;j.current=t,D.current.focusTimeout=setTimeout((function(){var n=t.selectionStart,r=t.selectionEnd,o=t.value;void 0===o&&(o="");var a=I(o,n);a===n||0===n&&r===o.length||R(t,a,o),m(e)}),0)},onBlur:function(e){j.current=null,clearTimeout(D.current.focusTimeout),clearTimeout(D.current.setCaretTimeout),g(e)}});if("text"===n)return o?B().createElement(B().Fragment,null,o(x,w)||null):B().createElement("span",Object.assign({},w,{ref:a}),x);if(r){var U=r;return B().createElement(U,Object.assign({},H,{ref:a}))}return B().createElement("input",Object.assign({},H,{ref:a}))}function Ls(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;void 0===i&&(i=!0);var c=t.thousandsGroupStyle;if(void 0===c&&(c="thousand"),""===e||"-"===e)return e;var s=Fs(t),u=s.thousandSeparator,l=s.decimalSeparator,p=0!==n&&-1!==e.indexOf(".")||n&&r,f=Ss(e,i),d=f.beforeDecimal,h=f.afterDecimal,m=f.addNegation;return void 0!==n&&(h=As(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;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+(p&&l||"")+h}function Fs(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 Hs(e,t,n){void 0===t&&(t=Ts(e));var r=n.allowNegative;void 0===r&&(r=!0);var o=n.prefix;void 0===o&&(o="");var a=n.suffix;void 0===a&&(a="");var i=n.decimalScale,c=t.from,s=t.to,u=s.start,l=s.end,p=Fs(n),f=p.allowedDecimalSeparators,d=p.decimalSeparator,h=e[l]===d;if(l-u==1&&-1!==f.indexOf(e[u])){var m=0===i?"":d;e=e.substring(0,u)+m+e.substring(u+1,e.length)}var g=!1;o.startsWith("-")?g=e.startsWith("--"):a.startsWith("-")&&e.length===a.length?g=!1:"-"===e[0]&&(g=!0),g&&(e=e.substring(1),u-=1,l-=1);var v=0;e.startsWith(o)?v+=o.length:u<o.length&&(v=u),l-=v;var y=(e=e.substring(v)).length,b=e.length-a.length;e.endsWith(a)?y=b:l>e.length-a.length&&(y=l),e=e.substring(0,y),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}(g?"-"+e:e,r),e=(e.match(function(e,t){return new RegExp("(^-)|[0-9]|"+_s(e),t?"g":void 0)}(d,!0))||[]).join("");var w=e.indexOf(d),O=Ss(e=e.replace(new RegExp(_s(d),"g"),(function(e,t){return t===w?".":""})),r),k=O.beforeDecimal,x=O.afterDecimal,_=O.addNegation;return s.end-s.start<c.end-c.start&&""===k&&h&&!parseFloat(x)&&(e=_?"-":""),e}function Us(e){var t=e.decimalSeparator;void 0===t&&(t=".");e.allowedDecimalSeparators,e.thousandsGroupStyle,e.suffix,e.allowNegative;var n=e.allowLeadingZeros,r=e.onKeyDown;void 0===r&&(r=ws);var o=e.onBlur;void 0===o&&(o=ws);var a=e.thousandSeparator,i=e.decimalScale,c=e.fixedDecimalScale,s=e.prefix;void 0===s&&(s="");var u=e.defaultValue,l=e.value,p=e.valueIsNumericString,f=e.onValueChange,d=ys(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]);!function(e){var t=Fs(e),n=t.thousandSeparator,r=t.decimalSeparator;if(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 ")}(e);var h=function(t){return Ls(t,e)},m=function(t,n){return Hs(t,n,e)},g=p;ks(l)?ks(u)||(g=null!=p?p:"number"==typeof u):g=null!=p?p:"number"==typeof l;var v=function(e){return ks(e)||xs(e)?e:("number"==typeof e&&(e=Cs(e)),g&&"number"==typeof i?Ps(e,i,Boolean(c)):e)},y=Is(v(l),v(u),Boolean(g),h,m,f),b=y[0],w=b.numAsString,O=b.formattedValue,k=y[1];return Object.assign(Object.assign({},d),{value:O,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===t||Os(e)},onValueChange:k,format:h,removeFormatting:m,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 n=t.target,o=t.key,u=n.selectionStart,l=n.selectionEnd,p=n.value;if(void 0===p&&(p=""),u===l){"Backspace"===o&&"-"===p[0]&&u===s.length+1&&js(n,1);var f=Fs(e).decimalSeparator;"Backspace"===o&&p[u-1]===f&&i&&c&&(js(n,u-1),t.preventDefault());var d=!0===a?",":a;"Backspace"===o&&p[u-1]===d&&js(n,u-1),"Delete"===o&&p[u]===d&&js(n,u+1),r(t)}else r(t)},onBlur:function(t){var r=w;if(r.match(/\d/g)||(r=""),n||(r=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:"")}(r)),c&&i&&(r=Ps(r,i,c)),r!==w){var a=Ls(r,e);k({formattedValue:a,value:r,floatValue:parseFloat(r)},{event:t,source:bs.event})}o(t)}})}function Ws(e){var t=Us(e);return B().createElement(Bs,Object.assign({},t))}!function(e){e.event="event",e.props="prop"}(bs||(bs={}));var zs,Ys=["immutable"];function Vs(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 qs=(0,V.ZP)((function(e){e.immutable;var t=To()(e,Ys);return(0,ee.jsx)(Ws,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vs(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t))})).withConfig({displayName:"StyledNumberEdit"})(zs||(zs=Y()(["\n &&&& {\n ","\n }\n"])),ca);const Gs=qs;function Ks(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 Xs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ks(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ks(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $s=function(e){return 0!==e?Math.ceil(Math.log10(Math.abs(e)+1)):1},Qs=function(e){return null!=e&&!isNaN(parseFloat(e))},Js=function(e,t,n){return!Qs(n)||!(Qs(t)&&n>t)&&!(Qs(e)&&n<e)},eu=function(e,t){return function(n){var r=n.floatValue;return $s(r)<$s(e)||Js(e,t,r)}};const tu=(0,v.ZP)(Ba.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,p=a.fixedDecimalScale,f=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=Xs(Xs({isAllowed:eu(s,m),allowNegative:!!l},isNaN(c)?{}:{decimalScale:c}),{},{fixedDecimalScale:!!p});return(0,ee.jsx)(ia,{immutable:e.immutable,children:(0,ee.jsx)(Gs,Xs(Xs({decimalSeparator:o,disabled:e.immutable,id:e.id,valueIsNumericString:!0,name:e.name,onValueChange:function(t){e.onChange&&Js(s,m,t.floatValue)&&e.onChange(void 0!==t.floatValue?t.floatValue:null)},immutable:e.immutable,thousandSeparator:r,value:e.value,suffix:f,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&&!Js(s,m,r)&&(t.target.value=null)}}))})}),800));const nu=Ba.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,p=s.format,f=s.allowLeadingZeros;return(0,ee.jsx)(ia,{immutable:o,children:(0,ee.jsx)(Gs,{isAllowed:eu(u,l),allowNegative:!0,decimalScale:0,disabled:o,id:i,name:a,onValueChange:function(e){var t=e.value,r=e.floatValue,o=f?t:r;void 0===o&&(o=null),Js(u,l,r)&&n(o)},value:t,allowLeadingZeros:f,format:p,placeholder:c})})}),800);var ru,ou,au,iu=i(50008),cu=i.n(iu),su=i(58808),uu=i.n(su),lu=V.ZP.div.withConfig({displayName:"StyledLocationEdit"})(ru||(ru=Y()(["\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"])),aa,q.Z.space(-2),q.Z.space(-2),(function(e){var t=e.immutable,n=e.theme;return t?(0,lt.iy)(st()(n,"colors.text")):st()(n,"colors.text")}),ca,Tc.FS.color("paper"),Tc.FS.color("signal.info.text"),Tc.FS.color("secondaryLight"),(function(e){var t=e.theme;return(0,lt.HO)(st()(t,"colors.paper"),1)}));function pu(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 n=null!=arguments[t]?arguments[t]:{};t%2?pu(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const du=function(e){var t=e.onChange,n=e.options,r=e.value,o=e.id,a=e.immutable,i=e.name,c=function(e){return function(t){return t[e]}},s=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,ee.jsxs)(U.ZP.Span,{children:[r," ",o," ",a," ",i]})},u=function(e){return function(n,o){var a=o.newValue;t(fu(fu({},r),{},l()({},e,a)))}},p=function(e,n){var r=n.suggestion;t(r)},f=function(e){return function(t){var r=t.value;n.fetchSuggestions(l()({},e,r),n.locationValues.country)}},d={id:o,value:r.postcode||"",onChange:u("postcode"),disabled:a},h={value:r.city||"",onChange:u("city"),disabled:a};return(0,ee.jsx)($e,{children:function(e){var t,o,u,l=e.focused,m=e.getRef;return(0,ee.jsxs)(lu,{immutable:a,name:i,ref:m,children:[(0,ee.jsx)(uu(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:f("postcode"),getSuggestionValue:c("postcode"),renderSuggestion:s,onSuggestionsClearRequested:function(){},inputProps:d,onSuggestionSelected:p,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!a}}),(l||r.city||r.postcode)&&(ou||(ou=(0,ee.jsx)(U.ZP.Span,{children:"/"}))),(0,ee.jsx)(uu(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:f("city"),getSuggestionValue:c("city"),renderSuggestion:s,onSuggestionsClearRequested:function(){},inputProps:h,onSuggestionSelected:p,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!a}}),(0,ee.jsxs)(ua,{children:[n.isLoading&&(au||(au=(0,ee.jsx)(Dr.Z,{size:"1.8rem"}))),(u=n.locationValues,Boolean(u.city||u.postcode)&&(0,ee.jsx)(Gc.Z,{href:(t=n.locationValues,o=t?Object.values(t).filter(Boolean).map((function(e){return"object"===cu()(e)&&e.display?e.display:e})).join("+"):"","".concat("https://www.google.com/maps/search/?api=1&query=").concat(o)),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:n.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};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}const mu=function(e){return(0,ee.jsx)(io,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hu(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!0,immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function gu(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 vu=function(e){return(0,ee.jsx)(io,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gu(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!0,immutable:e.immutable,onChange:e.onChange,value:e.value,openMenuOnClick:!0},e.options))};var yu,bu=i(48926),wu=i.n(bu),Ou=i(87757),ku=i.n(Ou);const xu=V.ZP.input.attrs((function(e){return{type:"tel"}})).withConfig({displayName:"StyledPhoneEdit"})(yu||(yu=Y()(["\n &&&& {\n ","\n }\n"])),ca);const _u=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,a=e.onLibLoaded,c=st()(e,"options.defaultCountry")||"CH",s=(0,Z.useState)(null),u=We()(s,2),l=u[0],p=u[1],f=B().createRef();(0,Z.useEffect)((function(){var e=function(){var e=wu()(ku().mark((function e(){var t;return ku().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([i.e(817),i.e(877)]).then(i.bind(i,80446));case 2:t=e.sent,p(t),a&&a();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[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,ee.jsxs)(ia,{immutable:r,children:[(0,ee.jsx)(xu,{disabled:r||!l,id:o,name,onChange:function(e){var r=e.target.value,o=l?l.parseNumber(r,c):r,a=Gt()(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(f.current))}}(r,n,i)},immutable:r||!l,ref:f,value:h}),h&&(0,ee.jsx)(ua,{children:(0,ee.jsx)(Gc.Z,{href:"tel:".concat(n),icon:"phone",tabIndex:-1,neutral:!0})})]})};function Su(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 Au=function(e){return(0,ee.jsx)(io,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Su(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Su(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!1,immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function Eu(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 Cu=function(e){return(0,ee.jsx)(io,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Eu(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function Pu(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 ju=function(e){return(0,ee.jsx)(io,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pu(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,immutable:e.immutable,isMulti:!1,onChange:e.onChange,value:e.value,openMenuOnClick:!0},e.options))};const Du=Ba.Z.Debouncer((function(e){return(0,ee.jsx)(ia,{immutable:e.immutable,children:(0,ee.jsx)(fs,{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 Tu=function(){var e,t=(null===(e=navigator)||void 0===e?void 0:e.userAgent)||"";return/^((?!chrome|android).)*safari/i.test(t)};var Mu,Ru,Iu,Nu=(0,V.iv)(Mu||(Mu=Y()(["\n ","\n width: 100%;\n grid-area: 1 / 1 / 2 / 2;\n max-height: 25rem;\n box-sizing: border-box;\n"])),ca),Zu=V.ZP.div.withConfig({displayName:"StyledSizeWrapper"})(Ru||(Ru=Y()(["\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"])),Nu),Bu=V.ZP.textarea.withConfig({displayName:"StyledTextarea"})(Iu||(Iu=Y()(["\n ","\n resize: none;\n margin: 0;\n min-height: 4em;\n"])),Nu);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 n=null!=arguments[t]?arguments[t]:{};t%2?Lu(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Hu=function(e){var t=e.value,n=e.onChange,r=e.name,o=e.id,a=e.disabled,i=e.immutable,c=(0,Z.useState)(t),s=We()(c,2),u=s[0],l=s[1],p=!Tu(),f=(0,Z.useCallback)(Qt()(l,500,{trailing:!0}),[]);return(0,Z.useEffect)((function(){p&&f(t)}),[t,p,f]),(0,ee.jsx)(Zu,Fu(Fu({"data-testid":"replicated-test"},p?{"data-replicated-value":u}:{}),{},{children:(0,ee.jsx)(Bu,{value:t,name:r,id:o,onChange:n,disabled:a,immutable:i,rows:"1"})}))};const Uu=Ba.Z.Debouncer((function(e){return(0,ee.jsx)(ia,{immutable:e.immutable,children:(0,ee.jsx)(Hu,{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 Wu;const zu=V.ZP.input.withConfig({displayName:"StyledTimeEdit"})(Wu||(Wu=Y()(["\n &&&& {\n ","\n }\n"])),ca);function Yu(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 Vu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yu(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const qu=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,a=e.name,i=Wa(n,t),c=i.inputProps,s=i.clearButtonProps,u=n&&!r;return(0,ee.jsxs)(ia,{immutable:r,children:[(0,ee.jsx)(zu,Vu({type:"text",disabled:r,id:o,immutable:r,name:a},c)),u&&(0,ee.jsx)(ua,{children:(0,ee.jsx)(fr.Z,Vu(Vu({icon:"times"},s),{},{tabIndex:-1}))})]})};var Gu;const Ku=V.ZP.input.attrs((function(e){return{type:"url"}})).withConfig({displayName:"StyledUrlEdit"})(Gu||(Gu=Y()(["\n &&&& {\n ","\n }\n"])),ca);function Xu(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 $u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xu(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qu={boolean:lo,"boolean-select":co,choice:bo,code:Co,date:Qa,datetime:ti,document:rs,duration:ls,email:ds,html:vs,integer:nu,location:du,"multi-remote":mu,"multi-select":vu,number:tu,phone:_u,remote:Au,"search-filter":Cu,"single-select":ju,string:Du,text:Uu,url:Ba.Z.Debouncer((function(e){return(0,ee.jsxs)(ia,{immutable:e.immutable,children:[(0,ee.jsx)(Ku,{disabled:e.immutable,id:e.id,immutable:e.immutable,name:e.name,onChange:function(t){return e.onChange(((n=(n=t.target.value).toLowerCase()).indexOf(".")>0&&!/^[a-z0-9]+:\/\//.test(n)&&(n="https://".concat(n)),n));var n},value:e.value}),e.value&&(0,ee.jsx)(ua,{children:(0,ee.jsx)(Gc.Z,{href:e.value,icon:"external-link",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})})),time:qu};const Ju=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(Qu[t]){var u=Qu[t],l=$u($u({},Vt()(a,"onChange")),{},{onBlur:function(){"function"==typeof(null==a?void 0:a.onBlur)&&a.onBlur(n)}});return(0,ee.jsx)("div",$u($u({},l),{},{"data-cy":"form-field",children:(0,ee.jsx)(u,$u($u({value:n,onChange:null==a?void 0:a.onChange},Gt()(r)?{}:{options:r}),{},{id:o,immutable:s,placeholder:i,events:a}))}))}return console.log("No type-editor defined for component type",t),null};function el(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 tl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?el(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):el(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const nl=function(e){return(0,ee.jsx)(la,{children:(0,ee.jsx)(Ju,tl({componentType:e.type},Vt()(e,"type")))})};var rl,ol,al=V.ZP.div.withConfig({displayName:"StyledLoginFormInputWrapper"})(rl||(rl=Y()(["\n && {\n ","\n }\n"])),aa);const il=function(e){var t=e.verifyCode,n=e.intl,r=(0,Z.useState)(null),o=We()(r,2),a=o[0],i=o[1],c=function(e){return n.formatMessage({id:e})};return(0,ee.jsxs)(ee.Fragment,{children:[ol||(ol=(0,ee.jsx)(U.ZP.P,{children:(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.verificationText"})})),(0,ee.jsxs)("form",{onSubmit:function(e){e.preventDefault(),e.stopPropagation(),a&&a.toString().length>=6&&t(a)},children:[(0,ee.jsx)(zt,{hasValue:!!a,id:"verification-input",label:c("client.two-factor-connector.verificationInputLabel"),children:(0,ee.jsx)(al,{children:(0,ee.jsx)(nl,{type:"integer",value:a,events:{onChange:i},options:{format:"### ###",allowLeadingZeros:!0}})})}),(0,ee.jsx)(K,{children:(0,ee.jsx)(W.Z,{label:c("client.two-factor-connector.okButton"),ink:"primary",look:"raised",type:"submit",disabled:!a||a.toString().length<6})})]})]})};var cl={verifyCode:function(e){return{type:E,payload:{userCode:e}}}};const sl=(0,y.connect)((function(e,t){return{}}),cl)((0,v.ZP)(il));var ul,ll,pl,fl,dl,hl,ml=0,gl=1,vl=2,yl=3;const bl=function(e){var t=e.initialize,n=e.stage;(0,Z.useEffect)((function(){t()}),[t]);return(0,ee.jsxs)(ee.Fragment,{children:[hl||(hl=(0,ee.jsx)(g.Z.Notifications,{})),function(){switch(n){case ml:return ul||(ul=(0,ee.jsx)(He,{}));case gl:return ll||(ll=(0,ee.jsx)(Ze,{}));case vl:return pl||(pl=(0,ee.jsx)(sl,{}));case yl:return fl||(fl=(0,ee.jsx)(re,{}));default:return dl||(dl=(0,ee.jsx)(L.Z,{}))}}()]})};var wl={initialize:D};const Ol=(0,y.connect)((function(e){return{stage:e.twoFactorConnector.stage}}),wl)((0,v.ZP)(bl));var kl,xl=i(81770);function _l(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 Sl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_l(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Al=function(e){return function(t){return Sl(Sl({},t),{},{stage:e})}},El=(kl={},l()(kl,w,xl.Z.singleTransferReducer("twoFactorActive")),l()(kl,O,xl.Z.singleTransferReducer("secret")),l()(kl,k,xl.Z.singleTransferReducer("username")),l()(kl,P,xl.Z.singleTransferReducer("setupSuccessful")),l()(kl,S,Al(0)),l()(kl,A,Al(1)),l()(kl,_,Al(2)),l()(kl,j,Al(3)),kl),Cl={stage:null,twoFactorActive:null,secret:null,username:null,setupSuccessful:null};var Pl=i(34857),jl=i(81719),Dl=i(54159),Tl=ku().mark(Vl),Ml=ku().mark(Gl),Rl=ku().mark(Kl),Il=ku().mark(Xl),Nl=ku().mark($l),Zl=ku().mark(Ql),Bl=ku().mark(Jl),Ll=ku().mark(ep),Fl=ku().mark(tp),Hl=ku().mark(np),Ul="relTwo_step_login_status",Wl=function(e){return e.twoFactorConnector.username},zl=function(e){return e.twoFactorConnector.secret},Yl=function(e){return e.input};function Vl(){var e,t,n,r,o,a;return ku().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,Pl.Ys)(Yl);case 2:if(e=i.sent,e.secret){i.next=14;break}return i.next=7,(0,Pl.Ys)(Wl);case 7:return t=i.sent,i.next=10,(0,Pl.RE)(jl.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,Pl.gz)(M({secret:o,uri:a}));case 14:return i.next=16,(0,Pl.gz)({type:A});case 16:case"end":return i.stop()}}),Tl)}function ql(e,t){return Dl.Z.executeRequest(e,t).then(Dl.Z.extractBody)}function Gl(e,t,n,r){var o,a;return ku().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,Pl.RE)(ql,"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,Pl.gz)(N(st()(a,"TWOSTEPLOGIN_ACTIVATION.success",!1)));case 6:case"end":return i.stop()}}),Ml)}function Kl(e,t,n){var r;return ku().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,Pl.RE)(jl.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,Pl.gz)(N(204===r.status));case 5:case"end":return o.stop()}}),Rl)}function Xl(e){var t,n,r,o,a,i;return ku().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return t=e.payload.userCode,c.next=3,(0,Pl.Ys)(Wl);case 3:return n=c.sent,c.next=6,(0,Pl.Ys)(zl);case 6:return r=c.sent,o=r.secret,c.next=10,(0,Pl.Ys)(Yl);case 10:if(a=c.sent,i=a.password,!a.forced){c.next=18;break}return c.next=16,(0,Pl.RE)(Gl,o,t,n,i);case 16:c.next=20;break;case 18:return c.next=20,(0,Pl.RE)(Kl,n,o,t);case 20:return c.next=22,(0,Pl.gz)({type:j});case 22:case"end":return c.stop()}}),Il)}function $l(){var e,t;return ku().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Pl.RE)(Jl);case 2:return n.next=4,(0,Pl.Ys)(Yl);case 4:if(e=n.sent,!(t=e.secret)){n.next=9;break}return n.next=9,(0,Pl.gz)(M(t));case 9:return n.next=11,(0,Pl.gz)(I());case 11:case"end":return n.stop()}}),Nl)}function Ql(){return ku().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Pl.gz)(m.Z.fireExternalEvent("onSuccess"));case 2:case"end":return e.stop()}}),Zl)}function Jl(){var e,t,n,r,o;return ku().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,Pl.RE)(ep);case 2:return e=a.sent,a.next=5,(0,Pl.gz)(R(e));case 5:return t='username === "'.concat(e,'"'),a.next=8,(0,Pl.RE)(jl.Z.fetchEntities,"Principal",{where:t,paths:[Ul]});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=st()(n,"[0].paths.".concat(Ul,".value.key")),o="1"===r,a.next=15,(0,Pl.gz)(T(o));case 15:case"end":return a.stop()}}),Bl)}function ep(){var e,t,n;return ku().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,Pl.Ys)(Yl);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,Pl.RE)(jl.Z.requestSaga,"principals");case 10:return n=r.sent,r.abrupt("return",n.body.username);case 12:case"end":return r.stop()}}),Ll)}function tp(){return ku().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Pl.gz)(m.Z.fireExternalEvent("onResize"));case 2:case"end":return e.stop()}}),Fl)}function np(){return ku().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Pl.$6)([(0,Pl.Fm)(x,Vl),(0,Pl.Fm)(E,Xl),(0,Pl.Fm)(b,$l),(0,Pl.Fm)(C,Ql),(0,Pl.Fm)(S,tp),(0,Pl.Fm)(A,tp),(0,Pl.Fm)(_,tp),(0,Pl.Fm)(j,tp)]);case 2:case"end":return e.stop()}}),Hl)}const rp={twoFactorConnector:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Cl,t=arguments.length>1?arguments[1]:void 0,n=El[t.type];return n?n(e,t):e}};var op,ap=[np];function ip(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 cp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ip(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ip(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var sp="two-factor-connector",up=function(e,t,n,r){var o=op||(op=(0,ee.jsx)(Ol,{})),a=s.Z.createStore(rp,ap,t,sp);return g.Z.addToStore(a,!0),h.Z.addToStore(a,!0,["console","remote","notification"]),m.Z.addToStore(a,(function(e){return s.Z.getEvents(lp,e.input)})),d.Z.addToStore(a),s.Z.createApp(sp,o,a,{input:t,events:n,actions:[],publicPath:r,textResourceModules:["component","common",sp]})},lp=["onSuccess","onCancel","onResize"],pp=function(e){return s.Z.useApp({initApp:up,props:e,packageName:sp,externalEvents:lp}).component};pp.propTypes=cp(cp({},lp.reduce((function(e,t){return cp(cp({},e),{},l()({},t,f().func))}),{})),{},{username:f().string,password:f().string,secret:f().shape({secret:f().string.isRequired,uri:f().string.isRequired}),forced:f().bool});var fp=s.Z.createBundleableApp(sp,up,pp);s.Z.registerAppInRegistry(fp.name,fp.init)})(),c})()));
61
+ */function be(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 we(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 Oe(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,p=null==r.y?e.length/2-u/2:r.y*c;let f=null;if(r.excavate){let e=Math.floor(l),t=Math.floor(p);f={x:e,y:t,w:Math.ceil(s+l-e),h:Math.ceil(u+p-t)}}return{x:l,y:p,h:u,w:s,excavation:f}}var ke=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}();function xe(e){const t=e,{value:n,size:r=he,level:o=me,bgColor:a=ge,fgColor:i=ve,includeMargin:c=ye,style:s,imageSettings:u}=t,l=pe(t,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),p=null==u?void 0:u.src,f=(0,Z.useRef)(null),d=(0,Z.useRef)(null),[h,m]=(0,Z.useState)(!1);(0,Z.useEffect)((()=>{if(null!=f.current){const e=f.current,t=e.getContext("2d");if(!t)return;let s=fe.QrCode.encodeText(n,de[o]).getModules();const l=c?4:0,p=s.length+2*l,h=Oe(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=we(s,h.excavation));const v=window.devicePixelRatio||1;e.height=e.width=r*v;const y=r/p*v;t.scale(y,y),t.fillStyle=a,t.fillRect(0,0,p,p),t.fillStyle=i,ke?t.fill(new Path2D(be(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,Z.useEffect)((()=>{m(!1)}),[p]);const g=le({height:r,width:r},s);let v=null;return null!=p&&(v=B().createElement("img",{src:p,key:p,style:{display:"none"},onLoad:()=>{m(!0)},ref:d})),B().createElement(B().Fragment,null,B().createElement("canvas",le({style:g,height:r,width:r,ref:f},l)),v)}function _e(e){const t=e,{value:n,size:r=he,level:o=me,bgColor:a=ge,fgColor:i=ve,includeMargin:c=ye,imageSettings:s}=t,u=pe(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let l=fe.QrCode.encodeText(n,de[o]).getModules();const p=c?4:0,f=l.length+2*p,d=Oe(l,r,c,s);let h=null;null!=s&&null!=d&&(null!=d.excavation&&(l=we(l,d.excavation)),h=B().createElement("image",{xlinkHref:s.src,height:d.h,width:d.w,x:d.x+p,y:d.y+p,preserveAspectRatio:"none"}));const m=be(l,p);return B().createElement("svg",le({height:r,width:r,viewBox:`0 0 ${f} ${f}`},u),B().createElement("path",{fill:a,d:`M0,0 h${f}v${f}H0z`,shapeRendering:"crispEdges"}),B().createElement("path",{fill:i,d:m,shapeRendering:"crispEdges"}),h)}var Se=e=>{const t=e,{renderAs:n}=t,r=pe(t,["renderAs"]);return"svg"===n?B().createElement(_e,le({},r)):B().createElement(xe,le({},r))};const Ae=function(e){var t=e.value;return(0,ee.jsx)(Se,{value:t,renderAs:"svg"})};var Ee,Ce,Pe,je,De,Te,Me=V.ZP.div.withConfig({displayName:"StyledQRCodeWrapper"})(Ee||(Ee=Y()(["\n display: flex;\n justify-content: center;\n margin: "," "," "," ",";\n"])),q.Z.space(1.2),q.Z.space(1),q.Z.space(1.5),q.Z.space(1)),Re=V.ZP.div.withConfig({displayName:"StyledParagraph"})(Ce||(Ce=Y()(["\n display: flex;\n justify-content: center;\n margin-top: ",";\n margin-bottom: ",";\n"])),q.Z.space(-1),q.Z.space(-.9));const Ie=function(e){var t=e.secret,n=e.goToSecretVerification;return(0,ee.jsxs)(ee.Fragment,{children:[Pe||(Pe=(0,ee.jsx)(U.ZP.P,{children:(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.qrCodeInfo"})})),(0,ee.jsx)(Me,{children:(0,ee.jsx)(Ae,{value:t.uri})}),je||(je=(0,ee.jsx)(U.ZP.P,{children:(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.secretInfo"})})),(0,ee.jsx)(Re,{children:(0,ee.jsx)(U.ZP.B,{children:t.secret})}),De||(De=(0,ee.jsx)(U.ZP.P,{children:(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.backupInfo"})})),(0,ee.jsx)(K,{children:(0,ee.jsx)(W.Z,{ink:"primary",look:"raised",onClick:n,children:Te||(Te=(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.nextButton"}))})})]})};var Ne={goToSecretVerification:function(){return{type:_}}};const Ze=(0,y.connect)((function(e){return{secret:e.twoFactorConnector.secret}}),Ne)((0,v.ZP)(Ie));var Be;const Le=function(e){var t=e.twoFactorActive,n=e.forced,r=e.requestSecret,o=e.intl,a=function(e){return o.formatMessage({id:e})};return(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsx)(U.ZP.P,{children:function(){if(t)return Be||(Be=(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.overwriteInfo"}));var e=a(n?"client.two-factor-connector.forcedInfo":"client.two-factor-connector.info");return(0,ee.jsx)("span",{dangerouslySetInnerHTML:{__html:e}})}()}),(0,ee.jsx)(K,{children:(0,ee.jsx)(W.Z,{label:a("client.two-factor-connector.nextButton"),ink:"primary",look:"raised",onClick:r})})]})};var Fe={initialize:D,requestSecret:function(){return{type:x}}};const He=(0,y.connect)((function(e){return{twoFactorActive:e.twoFactorConnector.twoFactorActive,secret:e.twoFactorConnector.secret,forced:e.input.forced}}),Fe)((0,v.ZP)(Le));var Ue=i(63038),We=i.n(Ue),ze=i(41505),Ye=i.n(ze),Ve=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},qe=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},Ge=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},Ke={outline:"none"},Xe=function(e){function t(){var n,r;Ve(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=Ge(this,e.call.apply(e,[this].concat(a))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=B().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)},Ge(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?B().cloneElement(e({focused:t,getRef:this.ref}),n):B().createElement("div",qe({ref:this.ref,style:Ke},n),e)},t}(B().Component);Xe.propTypes={children:Ye().oneOfType([Ye().node,Ye().func]).isRequired,onBlur:Ye().func,onFocus:Ye().func},Xe.defaultProps={onBlur:function(){},onFocus:function(){}};const $e=Xe;var Qe,Je,et,tt,nt=i(70696),rt=i(10535),ot=i(78958),at=i(319),it=i.n(at),ct=i(27361),st=i.n(ct),ut=i(37188),lt=i(58664),pt=(Qe={},l()(Qe,ot.Z.condition.BASE,"inherit"),l()(Qe,ot.Z.condition.DANGER,X.Z.color("signal.danger.text")),l()(Qe,ot.Z.condition.PRIMARY,(function(e){return(0,lt.HO)(st()(e.theme,"colors.primary"),1)})),l()(Qe,ot.Z.condition.SUCCESS,X.Z.color("signal.success.text")),l()(Qe,ot.Z.condition.WARNING,X.Z.color("signal.warning.text")),l()(Qe,ot.Z.condition.INFO,X.Z.color("signal.info.text")),Qe),ft=(0,V.ZP)(ut.hc).withConfig({displayName:"StyledSignalList"})(Je||(Je=Y()(["\n && {\n list-style-type: none;\n }\n"]))),dt=V.ZP.span.withConfig({displayName:"StyledSignalListIcon"})(et||(et=Y()(["\n position: absolute;\n left: -1.6rem;\n text-align: left;\n"]))),ht=(0,V.ZP)(ut.EF).withConfig({displayName:"StyledSignalListItem"})(tt||(tt=Y()(["\n && {\n color: ",";\n position: relative;\n padding: 0;\n }\n"])),(function(e){return function(e){return pt[e.condition]||"inherit"}(e)}));const mt=function(e){return(0,ee.jsx)(ft,{as:"ul",children:B().Children.map(e.children,(function(e){return B().cloneElement(e)}))})};var gt,vt,yt=(gt={},l()(gt,ot.Z.condition.BASE,!1),l()(gt,ot.Z.condition.PRIMARY,!1),l()(gt,ot.Z.condition.DANGER,"times"),l()(gt,ot.Z.condition.SUCCESS,"check"),l()(gt,ot.Z.condition.WARNING,"exclamation-triangle"),l()(gt,ot.Z.condition.INFO,"info"),gt),bt=function(e){var t=yt[e.condition];return t?(0,ee.jsx)(H.Z,{icon:t,position:ot.Z.position.SOLE}):vt||(vt=(0,ee.jsx)("i",{children:"•"}))},wt=function(e){return(0,ee.jsxs)(ht,{condition:e.condition,children:[(0,ee.jsx)(dt,{children:bt(e)}),e.label,B().Children.map(e.children,(function(e){return B().cloneElement(e)}))]})};wt.defaultProps={condition:ot.Z.condition.BASE};const Ot={List:mt,Item:wt};const kt=function(e){if(!e.error)return null;var t=[];return Object.keys(e.error).forEach((function(n){t.push.apply(t,it()(e.error[n]))})),(0,ee.jsx)(Ot.List,{children:t.map((function(e,t){return(0,ee.jsx)(Ot.Item,{condition:"danger",label:e},t)}))})};var xt,_t,St,At,Et,Ct,Pt,jt=i(79686),Dt=i(30759),Tt={shade0:function(e){var t=e.theme;return st()(t,"colors.text")},shade1:function(e){var t=e.theme;return(0,lt.HO)(st()(t,"colors.text"),3.5)},shade2:function(e){var t=e.theme;return(0,lt.HO)(st()(t,"colors.text"),5.5)},signal:function(e){var t=e.theme,n=e.signal;return st()(t,"colors.signal.".concat(n,".text"))},hasValue:function(e){var t=e.theme;return st()(t,"colors.signal.info.text")}},Mt={shade0:function(e){var t=e.theme;return st()(t,"colors.paper")},shade1:function(e){var t=e.theme;return(0,lt.HO)(st()(t,"colors.paper"),2)},shade2:function(e){var t=e.theme;return(0,lt.HO)(st()(t,"colors.paper"),4)},signal:function(e){var t=e.theme,n=e.signal;return st()(t,"colors.signal.".concat(n,".text"))},isDirty:function(e){var t=e.theme;return st()(t,"colors.secondaryLight")},transparent:function(){return"transparent"}},Rt="1.1px",It=function(e){var t=e.isDisplay,n=e.immutable;return"cursor: ".concat(!t&&n?"not-allowed":"auto",";")},Nt=V.ZP.div.withConfig({displayName:"StyledLabelWrapper"})(xt||(xt=Y()(["\n width: calc(100% - ",");\n"])),q.Z.space(.5)),Zt=V.ZP.label.withConfig({displayName:"StyledStatedValueLabel"})(_t||(_t=Y()(["\n &&& {\n ","\n background-color: ",";\n color: ",";\n left: ",";\n margin: calc("," / -2) 0 0;\n padding: 0 "," 0 ","; // if immutable remove left padding\n position: absolute;\n width: auto;\n height: calc("," + 1px);\n overflow: hidden;\n top: 0;\n pointer-events: auto;\n ","\n\n span {\n white-space: nowrap;\n }\n }\n"])),(0,Dt.Z)({fontWeight:function(e){return e.dirty?X.Z.fontWeight("bold"):X.Z.fontWeight("regular")},lineHeight:X.Z.lineHeight("dense")}),X.Z.color("paper"),(function(e){return Tt[function(e){var t=e.isDisplay,n=e.immutable,r=e.signal,o=e.hasValue;return r?"signal":o?"hasValue":t?"shade1":n?"shade0":"shade1"}(e)](e)}),q.Z.space(-2),q.Z.font(0),q.Z.space(-2),(function(e){return e.immutable&&"0"}),q.Z.font(0),(function(e){return It(e)})),Bt=V.ZP.div.withConfig({displayName:"StyledStatedValueBox"})(St||(St=Y()(["\n &&& {\n border: "," solid ",";\n padding: "," "," "," ",";\n position: relative;\n margin-top: ",";\n padding-left: ",";\n padding-top: ",";\n ","\n ","\n\n * {\n padding-left: ",";\n margin-bottom: 0;\n }\n\n > "," {\n padding-top: ",";\n position: relative;\n top: 5px;\n\n p:first-of-type {\n margin-top: 0;\n }\n }\n }\n"])),Rt,(function(e){return Mt[function(e){var t=e.immutable,n=e.isDisplay,r=e.signal;return e.isDirty?"isDirty":n||t?"transparent":r?"signal":"shade1"}(e)](e)}),q.Z.space(-1),q.Z.space(-1),q.Z.space(-2),q.Z.space(-1),(function(e){return e.isDisplay&&q.Z.space(-1)}),(function(e){return e.immutable&&q.Z.space(-2)}),(function(e){var t=e.isDisplay,n=e.immutable;return t&&n&&q.Z.space(-1)}),(function(e){return!e.immutable&&(0,lt.kk)(e)}),(function(e){return It(e)}),(function(e){return e.isDisplay&&"0"}),jt.j,(function(e){return e.isDisplay&&q.Z.space(-1)})),Lt=V.ZP.p.withConfig({displayName:"StyledStatedValueDescription"})(At||(At=Y()(["\n &&& {\n ","\n }\n"])),(0,Dt.Z)({fontSize:q.Z.font(-1)})),Ft=V.ZP.div.withConfig({displayName:"StyledStatedValueError"})(Et||(Et=Y()([""]))),Ht=V.ZP.div.withConfig({displayName:"StyledStatedValueWrapper"})(Ct||(Ct=Y()(["\n &&& {\n margin-bottom: ",";\n padding-top: ",";\n\n ",",\n ",",\n "," {\n margin-bottom: ",";\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n ",",\n "," {\n margin-left: calc("," + ",");\n }\n }\n"])),q.Z.space(-1),q.Z.space(-1.5),Bt,Lt,Ft,q.Z.space(-2),Lt,Ft,q.Z.space(-1),Rt);V.ZP.input.withConfig({displayName:"StyledInput"})(Pt||(Pt=Y()(["\n border: 0;\n cursor: ",";\n color: ",";\n outline: 0;\n transition: color 200ms;\n width: 100%;\n"])),(function(e){var t=e.args;return t.immutable&&!t.isDisplay?"not-allowed":"auto"}),(function(e){var t=e.args;return t.immutable&&!t.isDisplay?"#545454":"#000"}));function Ut(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 Wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ut(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const zt=function(e){var t,n,r,o=e.children,a=e.description,i=e.dirty,c=e.isDisplay,s=e.error,u=e.hasValue,l=e.id,p=e.label,f=e.mandatory,d=e.mandatoryTitle,h=e.immutable,m=e.touched,g=e.signal,v=!h&&m&&s&&Object.keys(s).length>0,y="".concat(nt.Z.adjustedHTMLString(p)).concat(f&&d?", ".concat(d):""),b=g||function(e,t,n,r){return t?ot.Z.condition.DANGER:e?ot.Z.condition.INFO:n&&!r?ot.Z.condition.WARNING:void 0}(i,v,f,u),w={__html:"".concat(rt.Z.sanitizeHtml(p)).concat(f?" *":"")},O=!c&&!h&&{htmlFor:l};return(0,ee.jsx)($e,{children:function(e){var l=e.getRef;return(0,ee.jsxs)(Ht,{ref:l,children:[(0,ee.jsxs)(Bt,{hasValue:u,immutable:h,isDisplay:c,signal:b,children:[o,p&&(0,ee.jsx)(Nt,{children:(0,ee.jsx)(Zt,Wt(Wt({},O),{},{hasValue:u,dirty:i,title:y,immutable:h,isDisplay:c,signal:b,children:t||(t=(0,ee.jsx)("span",{dangerouslySetInnerHTML:w}))}))})]}),a&&(n||(n=(0,ee.jsx)(Lt,{children:a}))),v&&(r||(r=(0,ee.jsx)(Ft,{children:(0,ee.jsx)(kt,{error:s})})))]})}})};var Yt=i(57557),Vt=i.n(Yt),qt=i(41609),Gt=i.n(qt),Kt=i(14293),Xt=i.n(Kt),$t=i(23493),Qt=i.n($t),Jt=i(33417),en=i(1972),tn=i(32924),nn=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];var rn=i(2717);function on(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 an(e,t){return an=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},an(e,t)}function cn(e){return cn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},cn(e)}var sn=i(62360);function un(e,t){if(t&&("object"===(0,sn.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 ln(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=cn(e);if(t){var o=cn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return un(this,n)}}var pn=i(31599);var fn=i(78001);function dn(e){return function(e){if(Array.isArray(e))return(0,pn.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,fn.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 hn=i(35268),mn=i(1537),gn=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function vn(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||gn(r)&&gn(o)))return!1;var r,o;return!0}for(var yn={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"},bn=function(e){return(0,mn.tZ)("span",(0,rn.Z)({css:yn},e))},wn={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":"",p="".concat(s?"selected":"focused").concat(l);return"option ".concat(a," ").concat(p,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},On=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,p=c.inputValue,f=c.isMulti,d=c.isOptionDisabled,h=c.isSearchable,m=c.menuIsOpen,g=c.options,v=c.screenReaderStatus,y=c.tabSelectsValue,b=c["aria-label"],w=c["aria-live"],O=(0,Z.useMemo)((function(){return(0,Jt.Z)((0,Jt.Z)({},wn),u||{})}),[u]),k=(0,Z.useMemo)((function(){var e,n="";if(t&&O.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),p=u?l(u):"",f=o||c||void 0,h=f?f.map(l):[],m=(0,Jt.Z)({isDisabled:u&&d(u,i),label:p,labels:h},t);n=O.onChange(m)}return n}),[t,O,d,i,l]),x=(0,Z.useMemo)((function(){var e="",t=n||r,a=!!(n&&i&&i.includes(n));if(t&&O.onFocus){var c={focused:t,label:l(t),isDisabled:d(t,i),isSelected:a,options:o,context:t===n?"menu":"value",selectValue:i};e=O.onFocus(c)}return e}),[n,r,l,d,O,o,i]),_=(0,Z.useMemo)((function(){var e="";if(m&&g.length&&O.onFilter){var t=v({count:o.length});e=O.onFilter({inputValue:p,resultsMessage:t})}return e}),[o,p,m,O,g,v]),S=(0,Z.useMemo)((function(){var e="";if(O.guidance){var t=r?"value":m?"menu":"input";e=O.guidance({"aria-label":b,context:t,isDisabled:n&&d(n,i),isMulti:f,isSearchable:h,tabSelectsValue:y})}return e}),[b,n,r,f,d,h,m,O,i,y]),A="".concat(x," ").concat(_," ").concat(S),E=(0,mn.tZ)(Z.Fragment,null,(0,mn.tZ)("span",{id:"aria-selection"},k),(0,mn.tZ)("span",{id:"aria-context"},A)),C="initial-input-focus"===(null==t?void 0:t.action);return(0,mn.tZ)(Z.Fragment,null,(0,mn.tZ)(bn,{id:s},C&&E),(0,mn.tZ)(bn,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},a&&!C&&E))},kn=[{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źẑżžẓẕƶȥɀⱬꝣ"}],xn=new RegExp("["+kn.map((function(e){return e.letters})).join("")+"]","g"),_n={},Sn=0;Sn<kn.length;Sn++)for(var An=kn[Sn],En=0;En<An.letters.length;En++)_n[An.letters[En]]=An.base;var Cn=function(e){return e.replace(xn,(function(e){return _n[e]}))},Pn=function(e,t){void 0===t&&(t=vn);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}(Cn),jn=function(e){return e.replace(/^\s+|\s+$/g,"")},Dn=function(e){return"".concat(e.label," ").concat(e.value)},Tn=["innerRef"];function Mn(e){var t=e.innerRef,n=(0,tn.Z)(e,Tn),r=(0,hn.r)(n,"onExited","in","enter","exit","appear");return(0,mn.tZ)("input",(0,rn.Z)({ref:t},r,{css:(0,mn.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 Rn=["boxSizing","height","overflow","paddingRight","position"],In={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Nn(e){e.preventDefault()}function Zn(e){e.stopPropagation()}function Bn(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Ln(){return"ontouchstart"in window||navigator.maxTouchPoints}var Fn=!("undefined"==typeof window||!window.document||!window.document.createElement),Hn=0,Un={capture:!1,passive:!1};var Wn=function(){return document.activeElement&&document.activeElement.blur()},zn={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Yn(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,Z.useRef)(!1),c=(0,Z.useRef)(!1),s=(0,Z.useRef)(0),u=(0,Z.useRef)(null),l=(0,Z.useCallback)((function(e,t){if(null!==u.current){var s=u.current,l=s.scrollTop,p=s.scrollHeight,f=s.clientHeight,d=u.current,h=t>0,m=p-f-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=p,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]),p=(0,Z.useCallback)((function(e){l(e,e.deltaY)}),[l]),f=(0,Z.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),d=(0,Z.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;l(e,t)}),[l]),h=(0,Z.useCallback)((function(e){if(e){var t=!!hn.s&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",d,t)}}),[d,f,p]),m=(0,Z.useCallback)((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",d,!1))}),[d,f,p]);return(0,Z.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,Z.useRef)({}),a=(0,Z.useRef)(null),i=(0,Z.useCallback)((function(e){if(Fn){var t=document.body,n=t&&t.style;if(r&&Rn.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&Hn<1){var a=parseInt(o.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,c=window.innerWidth-i+a||0;Object.keys(In).forEach((function(e){var t=In[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(c,"px"))}t&&Ln()&&(t.addEventListener("touchmove",Nn,Un),e&&(e.addEventListener("touchstart",Bn,Un),e.addEventListener("touchmove",Zn,Un))),Hn+=1}}),[r]),c=(0,Z.useCallback)((function(e){if(Fn){var t=document.body,n=t&&t.style;Hn=Math.max(Hn-1,0),r&&Hn<1&&Rn.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&Ln()&&(t.removeEventListener("touchmove",Nn,Un),e&&(e.removeEventListener("touchstart",Bn,Un),e.removeEventListener("touchmove",Zn,Un)))}}),[r]);return(0,Z.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,mn.tZ)(Z.Fragment,null,n&&(0,mn.tZ)("div",{onClick:Wn,css:zn}),t((function(e){o(e),a(e)})))}var Vn={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},qn=function(e){var t=e.name,n=e.onFocus;return(0,mn.tZ)("input",{required:!0,name:t,tabIndex:-1,onFocus:n,css:Vn,value:"",onChange:function(){}})},Gn={clearIndicator:hn.a,container:hn.b,control:hn.d,dropdownIndicator:hn.e,group:hn.g,groupHeading:hn.f,indicatorsContainer:hn.i,indicatorSeparator:hn.h,input:hn.j,loadingIndicator:hn.l,loadingMessage:hn.k,menu:hn.m,menuList:hn.n,menuPortal:hn.o,multiValue:hn.p,multiValueLabel:hn.q,multiValueRemove:hn.t,noOptionsMessage:hn.u,option:hn.v,placeholder:hn.w,singleValue:hn.x,valueContainer:hn.y};var Kn,Xn={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}},$n={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,hn.z)(),captureMenuScroll:!(0,hn.z)(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,Jt.Z)({ignoreCase:!0,ignoreAccents:!0,stringify:Dn,trim:!0,matchFrom:"any"},Kn),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,c=n.matchFrom,s=i?jn(t):t,u=i?jn(a(e)):a(e);return r&&(s=s.toLowerCase(),u=u.toLowerCase()),o&&(s=Pn(s),u=Cn(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,hn.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};function Qn(e,t,n,r){return{type:"option",data:t,isDisabled:or(e,t,n),isSelected:ar(e,t,n),label:nr(e,t),value:rr(e,t),index:r}}function Jn(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Qn(e,n,t,r)})).filter((function(t){return tr(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=Qn(e,n,t,r);return tr(e,a)?a:void 0})).filter(hn.G)}function er(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,dn(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function tr(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,c=t.value;return(!cr(e)||!a)&&ir(e,{label:i,value:c,data:o},r)}var nr=function(e,t){return e.getOptionLabel(t)},rr=function(e,t){return e.getOptionValue(t)};function or(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ar(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=rr(e,t);return n.some((function(t){return rr(e,t)===r}))}function ir(e,t,n){return!e.filterOption||e.filterOption(t,n)}var cr=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},sr=1,ur=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&&an(e,t)}(a,e);var t,n,r,o=ln(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,hn.B)(i.filter((function(e){return t.getOptionValue(e)!==u}))),"deselect-option",e)}else{if(s)return void t.ariaOnChange((0,hn.C)(e),{action:"select-option",option:e,name:a});o?t.setValue((0,hn.B)([].concat(dn(i),[e])),"select-option",e):t.setValue((0,hn.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,hn.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,hn.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,hn.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 hn.E.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return nr(t.props,e)},t.getOptionValue=function(e){return rr(t.props,e)},t.getStyles=function(e,n){var r=Gn[e](n);r.boxSizing="border-box";var o=t.props.styles[e];return o?o(r,n):r},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){return(0,hn.F)(t.props)},t.buildCategorizedOptions=function(){return Jn(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return er(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:(0,Jt.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,hn.H)(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 cr(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,p=n.tabSelectsValue,f=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||!p||!h||f&&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||++sr),t.state.selectValue=(0,hn.I)(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,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,hn.J)(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,hn.J)(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(Xn):(0,Jt.Z)((0,Jt.Z)({},Xn),this.props.theme):Xn}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,o=this.selectOption,a=this.setValue,i=this.props,c=i.isMulti,s=i.isRtl,u=i.options;return{clearValue:e,cx:t,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:c,isRtl:s,options:u,selectOption:o,selectProps:i,setValue:a,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 or(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ar(this.props,e,t)}},{key:"filterOption",value:function(e,t){return ir(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,p=l.inputIsHidden,f=l.ariaSelection,d=this.commonProps,h=r||this.getElementId("input"),m=(0,Jt.Z)((0,Jt.Z)((0,Jt.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==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?Z.createElement(u,(0,rn.Z)({},d,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:i,type:"text",value:o},m)):Z.createElement(Mn,(0,rn.Z)({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:hn.K,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,p=u.isDisabled,f=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:Z.createElement(c,(0,rn.Z)({},s,{key:"placeholder",isDisabled:p,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(f)return g.map((function(t,i){var c=t===v,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return Z.createElement(n,(0,rn.Z)({},s,{components:{Container:r,Label:o,Remove:a},isFocused:c,isDisabled:p,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 Z.createElement(i,(0,rn.Z)({},s,{data:b,isDisabled:p}),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 Z.createElement(e,(0,rn.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?Z.createElement(e,(0,rn.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 Z.createElement(n,(0,rn.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 Z.createElement(e,(0,rn.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,p=this.state.focusedOption,f=this.props,d=f.captureMenuScroll,h=f.inputValue,m=f.isLoading,g=f.loadingMessage,v=f.minMenuHeight,y=f.maxMenuHeight,b=f.menuIsOpen,w=f.menuPlacement,O=f.menuPosition,k=f.menuPortalTarget,x=f.menuShouldBlockScroll,_=f.menuShouldScrollIntoView,S=f.noOptionsMessage,A=f.onMenuScrollToTop,E=f.onMenuScrollToBottom;if(!b)return null;var C,P=function(t,n){var r=t.type,o=t.data,a=t.isDisabled,i=t.isSelected,c=t.label,s=t.value,f=p===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 Z.createElement(u,(0,rn.Z)({},l,{innerProps:g,data:o,isDisabled:a,isSelected:i,key:m,label:c,type:r,value:s,isFocused:f,innerRef:f?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 Z.createElement(n,(0,rn.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 P(e,"".concat(i,"-").concat(e.index))})))}if("option"===t.type)return P(t,"".concat(t.index))}));else if(m){var j=g({inputValue:h});if(null===j)return null;C=Z.createElement(c,l,j)}else{var D=S({inputValue:h});if(null===D)return null;C=Z.createElement(s,l,D)}var T={minMenuHeight:v,maxMenuHeight:y,menuPlacement:w,menuPosition:O,menuShouldScrollIntoView:_},M=Z.createElement(hn.M,(0,rn.Z)({},l,T),(function(t){var n=t.ref,r=t.placerProps,i=r.placement,c=r.maxHeight;return Z.createElement(o,(0,rn.Z)({},l,T,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:m,placement:i}),Z.createElement(Yn,{captureEnabled:d,onTopArrive:A,onBottomArrive:E,lockEnabled:x},(function(t){return Z.createElement(a,(0,rn.Z)({},l,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:m,maxHeight:c,focusedOption:p}),C)})))}));return k||"fixed"===O?Z.createElement(i,(0,rn.Z)({},l,{appendTo:k,controlElement:this.controlRef,menuPlacement:w,menuPosition:O}),M):M}},{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(a&&!r){if(i&&!this.hasValue())return Z.createElement(qn,{name:a,onFocus:this.onValueInputFocus});if(o){if(n){var s=c.map((function(t){return e.getOptionValue(t)})).join(n);return Z.createElement("input",{name:a,type:"hidden",value:s})}var u=c.length>0?c.map((function(t,n){return Z.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):Z.createElement("input",{name:a,type:"hidden",value:""});return Z.createElement("div",null,u)}var l=c[0]?this.getOptionValue(c[0]):"";return Z.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 Z.createElement(On,(0,rn.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,p=this.commonProps=this.getCommonProps();return Z.createElement(r,(0,rn.Z)({},p,{className:i,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:l}),this.renderLiveRegion(),Z.createElement(t,(0,rn.Z)({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:l,menuIsOpen:u}),Z.createElement(o,(0,rn.Z)({},p,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),Z.createElement(n,(0,rn.Z)({},p,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],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,p=e.inputValue,f=e.isMulti,d=(0,hn.I)(u),h={};if(n&&(u!==n.value||s!==n.options||l!==n.menuIsOpen||p!==n.inputValue)){var m=l?function(e,t){return er(Jn(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,v=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,m);h={selectValue:d,focusedOption:v,focusedValue:g,clearFocusValueOnUpdate:!1}}var y=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},b=a,w=i&&c;return i&&!w&&(b={value:(0,hn.D)(f,d,d[0]||null),options:d,action:"initial-input-focus"},w=!c),"initial-input-focus"===(null==a?void 0:a.action)&&(b=null),(0,Jt.Z)((0,Jt.Z)((0,Jt.Z)({},h),y),{},{prevProps:e,ariaSelection:b,prevWasFocused:w})}}],n&&on(t.prototype,n),r&&on(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(Z.Component);ur.defaultProps=$n;i(66751),i(30314),i(73469);var lr=(0,Z.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,p=e.onMenuClose,f=e.onMenuOpen,d=e.value,h=(0,tn.Z)(e,nn),m=(0,Z.useState)(void 0!==c?c:n),g=(0,en.Z)(m,2),v=g[0],y=g[1],b=(0,Z.useState)(void 0!==s?s:o),w=(0,en.Z)(b,2),O=w[0],k=w[1],x=(0,Z.useState)(void 0!==d?d:i),_=(0,en.Z)(x,2),S=_[0],A=_[1],E=(0,Z.useCallback)((function(e,t){"function"==typeof u&&u(e,t),A(e)}),[u]),C=(0,Z.useCallback)((function(e,t){var n;"function"==typeof l&&(n=l(e,t)),y(void 0!==n?n:e)}),[l]),P=(0,Z.useCallback)((function(){"function"==typeof f&&f(),k(!0)}),[f]),j=(0,Z.useCallback)((function(){"function"==typeof p&&p(),k(!1)}),[p]),D=void 0!==c?c:v,T=void 0!==s?s:O,M=void 0!==d?d:S;return(0,Jt.Z)((0,Jt.Z)({},h),{},{inputValue:D,menuIsOpen:T,onChange:E,onInputChange:C,onMenuClose:j,onMenuOpen:P,value:M})}(e);return Z.createElement(ur,(0,rn.Z)({ref:t},n))}));const pr=lr;var fr=i(80470);function dr(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 hr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dr(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const mr=(0,v.ZP)((function(e){var t;return(0,ee.jsx)("span",hr(hr({},e.innerProps),{},{children:(0,ee.jsx)(fr.Z,{icon:"times",tabIndex:-1,"aria-label":(t="client.component.select.clearFieldLabel",e.intl.formatMessage({id:t}))})}))}));var gr=i(95497);function vr(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 yr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vr(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const br=function(e){var t=e.selectProps,n=t.isDisabled,r=t.menuIsOpen;return n?null:(0,ee.jsx)(hn.c.DropdownIndicator,yr(yr({},e),{},{children:(0,ee.jsxs)(gr.M6,{children:[(0,ee.jsx)(gr.A,{icon:"chevron-down",visible:!r,tabIndex:-1}),(0,ee.jsx)(gr.A,{icon:"chevron-up",visible:r,tabIndex:-1})]})}))};var wr,Or,kr;function xr(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 _r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xr(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Sr=function(e,t,n){return function(r){r.stopPropagation(),e(t,n)}},Ar=function(e,t){return function(n){n.stopPropagation(),e(t)}},Er=function(e,t){return function(n){n.stopPropagation(),e(t)}},Cr=function(e){e.stopPropagation()};const Pr=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,p=t.inputValue,f=l&&(c||i);return(0,ee.jsx)(gr.HO,{isTopAligned:f,children:(0,ee.jsxs)(hn.c.IndicatorsContainer,_r(_r({},e),{},{children:[e.children,n&&!a&&(0,ee.jsx)("span",{onTouchEnd:Cr,onMouseDown:Ar(n,u),children:wr||(wr=(0,ee.jsx)(fr.Z,{icon:"folder",tabIndex:-1}))}),r&&!a&&(0,ee.jsx)("span",{onTouchEnd:Cr,onMouseDown:Sr(r,p,u),children:Or||(Or=(0,ee.jsx)(fr.Z,{icon:"search",tabIndex:-1}))}),s&&!a&&(0,ee.jsx)("span",{onTouchEnd:Cr,onMouseDown:Er(o,u),children:kr||(kr=(0,ee.jsx)(fr.Z,{icon:"plus",tabIndex:-1}))})]}))})};var jr,Dr=i(93235);const Tr=function(){return jr||(jr=(0,ee.jsx)("span",{children:(0,ee.jsx)(Dr.Z,{size:"1.8rem"})}))};function Mr(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 Rr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mr(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ir=function(e){var t=e.selectProps,n=e.children;return(0,ee.jsx)(gr._M,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"window",attachment:"together"}],renderTarget:function(e){return(0,ee.jsx)("div",{ref:e})},renderElement:function(r){return(0,ee.jsx)("div",{ref:r,children:(0,ee.jsx)(gr.l2,Rr(Rr({},Vt()(e,["innerRef"])),{},{wrapperWidth:t.wrapperWidth,wrapperHeight:t.wrapperHeight,children:n}))})}})};function Nr(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 Zr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nr(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Br=function(e){var t=e.selectProps,n=e.children,r=t.moreOptionsAvailable,o=t.moreOptionsAvailableText;return(0,ee.jsxs)(hn.c.MenuList,Zr(Zr({},e),{},{className:"MenuList",children:[n,r&&(0,ee.jsx)(gr.OA,{children:o})]}))};var Lr,Fr=i(76791);const Hr=V.ZP.span(Lr||(Lr=Y()(["\n pointer-events: auto;\n cursor: pointer;\n"])));function Ur(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 Wr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ur(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ur(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const zr=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=st()(a,t.key,null),u=(0,ee.jsx)("span",Wr(Wr({},n),{},{children:r})),l=c?(0,ee.jsx)(Hr,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,ee.jsx)(c,{entityKey:t.key,children:(0,ee.jsx)(Fr.Z,{content:s?(0,ee.jsx)("div",{dangerouslySetInnerHTML:{__html:rt.Z.sanitizeHtml(s)}}):null,children:(0,ee.jsx)("span",{onMouseOver:function(){return i&&!s&&i(t.key)},children:u})})})}):u;return(0,ee.jsx)(gr.B1,{children:l})};var Yr=i(47037),Vr=i.n(Yr),qr=i(14176),Gr=i.n(qr);function Kr(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 Xr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kr(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $r=["linkComp"],Qr=function(e,t){var n=nt.Z.difference(e,t),r=Gr()(Vt()(n,$r),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length},Jr=(0,Z.memo)((function(e){var t=e.linkComp,n=e.entityKey,r=e.children;return t&&Vr()(n)?(0,ee.jsx)(Hr,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,ee.jsx)(t,{entityKey:n,children:r})}):r}),Qr);Jr.propTypes={children:f().node,entityKey:f().any,linkComp:f().func};const eo=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=st()(a,t.key,null);return(0,ee.jsx)(hn.c.SingleValue,Xr(Xr({},e),{},{children:(0,ee.jsx)(gr.xq,{onMouseOver:function(){return i&&!s&&i(t.key)},isDisabled:r,children:(0,ee.jsx)(Fr.Z,{content:s?(0,ee.jsx)("div",{dangerouslySetInnerHTML:{__html:rt.Z.sanitizeHtml(s)}}):null,children:(0,ee.jsx)(Jr,{linkComp:c,entityKey:t.key,children:o})})})}))};function to(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 no=function(e){var t;return"Input"===(null==e||null===(t=e.type)||void 0===t?void 0:t.name)};const ro=function(e){var t=e.selectProps,n=e.hasValue,r=e.children,o=t.isMulti,a=t.hasAdvancedSearch,i=t.hasDocsTreeSearch,c=t.isDisabled;if(!(o&&(a||i)))return(0,ee.jsx)(hn.c.ValueContainer,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?to(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):to(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e));var s=Z.Children.map(r,(function(e){return no(e)?e:null})),u=Z.Children.map(r,(function(e){return no(e)?null:e})),p=c&&n;return(0,ee.jsxs)(ee.Fragment,{children:[!p&&(0,ee.jsx)(ee.Fragment,{children:s}),(0,ee.jsx)(gr.eQ,{children:u})]})};function oo(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 ao(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oo(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const io=(0,V.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.onChange,p=e.openDocsTreeSearch,f=e.openAdvancedSearch,d=e.options,h=e.searchOptions,m=e.theme,g=e.tooltips,v=e.value,y=e.DetailLink,b=e.createPermission,w=e.openRemoteCreate,O=(0,Z.useRef)(null),k=(0,Z.useRef)(null),x=function(){var e;return(null===(e=k.current)||void 0===e?void 0:e.clientWidth)||300},_=function(){var e;return(null===(e=k.current)||void 0===e?void 0:e.clientHeight)||35},S=(0,Z.useState)(x()),A=We()(S,2),E=A[0],C=A[1],P=(0,Z.useState)(_()),j=We()(P,2),D=j[0],T=j[1],M=function(e){t&&t(e)},R=(0,Z.useCallback)(h||function(){},[]),I=(0,Z.useCallback)(Qt()(R,800,{trailing:!0}),[]),N=Boolean(f),B=Boolean(p),L=Boolean(b);return(0,ee.jsx)(gr.sP,{tabIndex:"-1",id:n,onFocus:function(){O.current.focus(),setTimeout((function(){C(x()),T(_())}),0)},children:(0,ee.jsx)(gr.RU,{ref:k,children:(0,ee.jsx)(pr,ao(ao({getOptionLabel:function(e){return e.display},getOptionValue:function(e){return e.key},wrapperWidth:E,wrapperHeight:D,components:{ClearIndicator:mr,LoadingIndicator:Tr,DropdownIndicator:br,IndicatorsContainer:Pr,IndicatorSeparator:null,Menu:Ir,MenuList:Br,MultiValueLabel:zr,SingleValue:eo,ValueContainer:ro},noOptionsMessage:function(){return u||" - "},isMulti:a,closeMenuOnSelect:!a,isSearchable:!0},h?{filterOption:function(){return!0}}:{}),{},{isClearable:!0,loadingMessage:function(){return null},placeholder:"",menuShouldScrollIntoView:!1,autoFocus:!1,value:v||null,onChange:function(e){l(e),M(e)},onInputChange:function(e,t){var n=t.action;h&&e&&I(e,v),""===e&&"input-change"===n&&M(v)},options:it()(d||[]),isLoading:o,isDisabled:r,ref:O,onMenuOpen:function(){M(v)},styles:(0,gr.i4)(m),loadTooltip:i,tooltips:g,DetailLink:y,hasDocsTreeSearch:B,openDocsTreeSearch:p,hasAdvancedSearch:N,openAdvancedSearch:f,moreOptionsAvailable:c,moreOptionsAvailableText:s,blurInputOnSelect:!1,hasCreatePermission:L,createPermission:b,openRemoteCreate:w,closeMenuOnScroll:function(e){var t;return!(null!==(t=e.target.classList)&&void 0!==t&&t.contains("MenuList"))}}))})})}));const co=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,ee.jsx)(io,{id:t,immutable:n,isMulti:!1,onChange:function(e){return c(e?e.key:null)},value:Xt()(r)?r:{key:r,display:r?a:i},openMenuOnClick:!0,options:[{key:!0,display:a},{key:!1,display:i}]})};var so,uo=V.ZP.div.withConfig({displayName:"StyledBoolEdit"})(so||(so=Y()(["\n margin: 5px 0;\n"])));const lo=function(e){return(0,ee.jsx)(uo,{children:(0,ee.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 po,fo;function ho(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 mo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ho(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ho(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var go=V.ZP.div.withConfig({displayName:"StyledOption"})(po||(po=Y()(["\n margin: 5px 0;\n"]))),vo=V.ZP.span.withConfig({displayName:"StyledLabel"})(fo||(fo=Y()(["\n ","\n"])),(0,Dt.Z)()),yo={single:"radio",multiple:"checkbox"},bo={single:{checked:!1},multiple:{}},wo=function(e){var t=e.groupName,n=e.id,r=e.label,o=e.checked,a=e.immutable,i=e.selectionType,c=e.handleChange;return(0,ee.jsxs)(go,{children:[(0,ee.jsx)("input",{name:t,type:yo[i],checked:o||!1,onChange:c,id:n,disabled:a}),(0,ee.jsx)(vo,{children:r})]})};const Oo=function(e){var t=function(t){if(e.onChange){var n=e.value.options.map((function(n){return mo(mo({},n),n.id===t.target.id?{checked:t.target.checked}:bo[e.options.selectionType])}));e.onChange({options:n})}};return(0,ee.jsx)(ee.Fragment,{children:e.value.options.map((function(n){return(0,ee.jsx)(wo,{groupName:e.id,id:n.id,label:n.label,checked:n.checked,immutable:e.immutable,selectionType:e.options.selectionType,handleChange:t},n.id)}))})};var ko=i(23279),xo=i.n(ko);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 So(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){l()(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}var Ao=(0,Z.lazy)((function(){return Promise.all([i.e(560),i.e(85)]).then(i.bind(i,30919))}));const Eo=function(e){return(0,ee.jsx)(Z.Suspense,{fallback:(t=e.value,(0,ee.jsx)("div",{children:(0,ee.jsx)("p",{children:t})})),children:(0,ee.jsx)(Ao,So({},e))});var t};var Co,Po=V.ZP.div.withConfig({displayName:"StyledEditorWrapper"})(Co||(Co=Y()(["\n margin-top: ",";\n"])),q.Z.space(-1.5));const jo=function(e){var t=e.value,n=e.onChange,r=e.immutable,o=e.options;return(0,ee.jsx)(Po,{children:(0,ee.jsx)(Eo,{value:t,onChange:xo()(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 Do=i(86896),To=i(23842),Mo=i(6479),Ro=i.n(Mo),Io=i(93379),No=i.n(Io),Zo=i(7795),Bo=i.n(Zo),Lo=i(90569),Fo=i.n(Lo),Ho=i(3565),Uo=i.n(Ho),Wo=i(19216),zo=i.n(Wo),Yo=i(44589),Vo=i.n(Yo),qo=i(16721),Go={};Go.styleTagTransform=Vo(),Go.setAttributes=Uo(),Go.insert=Fo().bind(null,"head"),Go.domAPI=Bo(),Go.insertStyleElement=zo();No()(qo.Z,Go);qo.Z&&qo.Z.locals&&qo.Z.locals;var Ko,Xo,$o,Qo,Jo,ea,ta,na,ra,oa=i(9198),aa=i.n(oa),ia=i(23855),ca=(0,V.iv)(Ko||(Ko=Y()(["\n align-items: center;\n cursor: ",";\n display: flex;\n"])),(function(e){return e.immutable?"not-allowed":"default"})),sa=V.ZP.label.withConfig({displayName:"StyledEditableWrapper"})(Xo||(Xo=Y()(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),ca),ua=(0,V.iv)($o||($o=Y()(["\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,Dt.Z)({color:X.Z.color("text")})}),X.Z.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),la=(0,V.iv)(Qo||(Qo=Y()(["\n display: flex;\n align-items: center;\n"]))),pa=V.ZP.div.withConfig({displayName:"StyledEditableControl"})(Jo||(Jo=Y()(["\n &&& {\n ","\n }\n"])),la),fa=V.ZP.span.withConfig({displayName:"StyledEditableValue"})(ea||(ea=Y()(["\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"])),X.Z.color("signal.danger.text")),da=V.ZP.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(ta||(ta=Y()(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),ha=V.ZP.div.withConfig({displayName:"StyledDatePickerWrapper"})(na||(na=Y()(["\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"])),ca,ua,(function(e){return e.hasTime&&"border-bottom: 1px solid #aeaeae;"})),ma=V.ZP.input.withConfig({displayName:"StyledTimeInput"})(ra||(ra=Y()(["\n ","\n border: none;\n outline: none;\n min-height: 2.6rem;\n"])),(0,Dt.Z)()),ga=i(37042),va=i(4543),ya=i(39880),ba=i(85817),wa=i(39159),Oa=i(77881),ka=i(14372),xa=i(12274),_a=i(13882);function Sa(e,t,n){return(0,_a.Z)(2,arguments),(0,xa.default)((0,ka.default)(e,t,new Date,n))}var Aa=i(69119),Ea="react-datepicker-time__input",Ca="react-datepicker__day",Pa="react-datepicker__input",ja=function(e){return e.classList.contains(Ca)},Da=function(e){return e.classList.contains(Ea)},Ta=function(e){return e.classList.contains(Pa)},Ma=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,ga.default)((0,va.default)((0,ya.default)(e,c),a),r)},Ra=function(e){setTimeout((function(){if(e){var t=e.querySelector(".".concat(Ca,'[tabindex="0"]'));t&&t.focus({preventScroll:!0})}}),0)},Ia=function(e){setTimeout((function(){e&&e.focus({preventScroll:!0})}),0)},Na=function(e){var t=(0,ia.default)(e);return isNaN(t)?null:t},Za=function(e){return e?e.toISOString():null};const Ba=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?Na:s,l=n.dateToValue,p=void 0===l?Za:l,f=(0,Z.useRef)(null),d=(0,Z.useState)(!1),h=We()(d,2),m=h[0],g=h[1],v=(0,Z.useState)(!1),y=We()(v,2),b=y[0],w=y[1],O=u(e),k=a?u(a):void 0,x=i?u(i):void 0;(0,Z.useEffect)((function(){(f.current&&"function"==typeof f.current.setOpen&&f.current.setOpen(m),m)&&document.querySelectorAll("button.react-datepicker__navigation").forEach((function(e){return e.setAttribute("tabindex","-1")}))}),[m]);var _=function(){return g(!1)},S=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(f.current&&"function"==typeof f.current.getPreSelection){var t,n=e?f.current.getPreSelection():null;return(null===(t=f.current.state)||void 0===t?void 0:t.preSelection)||n}return null},A=function(e){f.current&&"function"==typeof f.current.setPreSelection&&f.current.setPreSelection(e)},E=function(){t(null),A(null)},C=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=S(!1);if(n){var r=O||new Date,o=t?Ma(n,{hour:(0,ba.default)(r),minute:(0,wa.default)(r),second:(0,Oa.default)(r)}):n;P(o,e)}},P=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 Sa(s,e)})),l=(0,Aa.default)(n),d=(0,ba.default)(n)!==(0,ba.default)(l)||(0,wa.default)(n)!==(0,wa.default)(l);(i&&!d||u)&&c&&(n=To.Z.setCurrentTime(n)),t(p(n))}else E();var h;c||"click"!==(null==r?void 0:r.type)||(_(),Ia(null===(h=f.current)||void 0===h?void 0:h.input))},j=function(e){if("Tab"===e.key)if(e.shiftKey)if(Ta(e.target))setTimeout((function(){return _()}),0);else if(Da(e.target)){var t,n;A(O||S(!0)),Ra(null===(t=f.current)||void 0===t||null===(n=t.calendar)||void 0===n?void 0:n.componentNode)}else ja(e.target)&&_();else Ta(e.target)&&m?(C(e),setTimeout((function(){return _()}),0)):Da(e.target)?_():ja(e.target)&&(c?(C(e,!0),A(null),w(!0),setTimeout((function(){var e,t,n;n=null===(e=f.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(Ea));e&&e.focus({preventScroll:!0})}}),0),w(!1)}),0)):(C(e),_()));var r;"Enter"===e.key&&(_(),e.preventDefault(),e.stopPropagation(),Ia(null===(r=f.current)||void 0===r?void 0:r.input));if(["ArrowDown","ArrowUp","Enter"].includes(e.key))if(m){if(m&&null===S(!1)){var o,a;A(O||S(!0)),Ra(null===(o=f.current)||void 0===o||null===(a=o.calendar)||void 0===a?void 0:a.componentNode)}}else g(!0),e.key="Handled".concat(e.key)},D=function(){var e;g((function(e){return!e})),A(null),Ia(null===(e=f.current)||void 0===e?void 0:e.input)};return{reactDatePickerProps:{closeOnScroll:function(){return _(),!0},onClickOutside:_,onInputClick:D,onKeyDown:j,onChange:P,onCalendarOpen:function(){A(null)},onBlur:function(){f.current&&f.current.setState({inputValue:null})},preventOpenOnFocus:!0,enableTabLoop:!1,shouldCloseOnSelect:!1,open:m,selected:O,showTimeInput:c,minDate:k,maxDate:x,ref:f,className:Pa},timeInputProps:{onKeyDown:j,className:Ea,tabIndex:b?void 0:"-1"},clearButtonProps:{onMouseDown:function(e){e.preventDefault(),E()}},calendarButtonProps:{onClick:D,className:m?"react-datepicker-ignore-onclickoutside":""}}};var La=i(49546),Fa=i(35997),Ha="HH:mm:ss",Ua="HH:mm",Wa=function(e){return Sa(e,Ua)},za=function(e){var t=function(e){return Sa(e,Ha)?(0,ka.default)(e,Ha,new Date):Sa(e,Ua)?(0,ka.default)(e,Ua,new Date):Sa(e,"HH:")?(0,ka.default)(e,"HH:",new Date):Sa(e,"H")?(0,ka.default)(e,"H",new Date):null}(e);return t&&!isNaN(t)?function(e){return(0,La.default)(e,Ua)}(t):""};const Ya=function(e,t){var n=za(e),r=(0,Z.useState)(n),o=We()(r,2),a=o[0],i=o[1],c=(0,Z.useRef)(a),s=Fa.Z.usePrevious(n);(0,Z.useEffect)((function(){s!==n&&a===s&&i(n)}),[n,a,s]);var u={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),p=!o||!Number.isNaN(u)&&u<24,f=!s||!Number.isNaN(l)&&l<60;if(!p||!f)return!1;c.current=n,i(n),n&&!Wa(n)||t(n)}},onBlur:function(){if(a!==n){var e=za(a);e&&Wa(e)?(c.current=e,i(e),t(e)):i(n)}},onFocus:function(e){a&&"function"==typeof e.target.select&&e.target.select()},value:a||""};return{inputProps:u,clearButtonProps:{onClick:function(){t(""),i("")}}}};var Va=["value","onChange","onKeyDown"];function qa(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 Ga(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qa(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}(0,oa.registerLocale)("en",To.Z.getDateFnsLocale("en")),(0,oa.registerLocale)("en-US",To.Z.getDateFnsLocale("en")),(0,oa.registerLocale)("de-CH",To.Z.getDateFnsLocale("de-CH")),(0,oa.registerLocale)("de",To.Z.getDateFnsLocale("de")),(0,oa.registerLocale)("fr",To.Z.getDateFnsLocale("fr")),(0,oa.registerLocale)("fr-CH",To.Z.getDateFnsLocale("fr")),(0,oa.registerLocale)("it",To.Z.getDateFnsLocale("it")),(0,oa.registerLocale)("it-CH",To.Z.getDateFnsLocale("it")),(0,oa.setDefaultLocale)("de");var Ka=function(e){var t=e.onChange,n=e.label;return(0,ee.jsx)(W.Z,{onMouseDown:function(e){e.preventDefault(),t(null)},tabIndex:-1,children:n})},Xa=function(e){var t=e.value,n=e.onChange,r=e.onKeyDown,o=Ro()(e,Va),a=Ya(t,(function(e){n&&n(e||"00:00")})).inputProps;return(0,ee.jsx)(ma,Ga(Ga(Ga({},a),o),{},{type:"text",onKeyDown:r,onClick:function(e){e.target.focus()}}))},$a={strategy:"fixed"};const Qa=(0,V.Zz)((0,v.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,p=e.hasTime,f=e.dateFormats,d=void 0===f?[]:f,h=e.dateTimeFormats,m=void 0===h?[]:h,g=e.events,v=(0,Z.useRef)(void 0),y=u.locale,b=function(e){return u.formatMessage({id:e})},w=(0,Z.useRef)(null),O=Boolean(r),k=!t&&O,x=function(e){v.current=e,s(e)},_=Ba(r,x,{dateFormats:d,dateTimeFormats:m,minDate:o,maxDate:a,valueToDate:i,dateToValue:c,hasTime:p}),S=_.reactDatePickerProps,A=_.timeInputProps,E=_.clearButtonProps,C=_.calendarButtonProps;return(0,ee.jsx)(da,{immutable:t,id:n,tabIndex:"-1",children:(0,ee.jsxs)(ha,{immutable:t,ref:w,hasTime:p,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,ee.jsx)(aa(),Ga(Ga({},S),{},{disabled:t,dateFormat:[].concat(it()(m),it()(d)),placeholderText:l,showMonthDropdown:!0,showYearDropdown:!0,scrollableYearDropdown:!1,fixedHeight:!0,showPopperArrow:!1,locale:y,customTimeInput:(0,ee.jsx)(Xa,Ga({},A)),timeInputLabel:"",popperProps:$a,todayButton:(0,ee.jsx)(Ka,{onChange:x,label:b("client.component.datePicker.todayLabel")})})),k&&(0,ee.jsx)(fr.Z,Ga({icon:"times",tabIndex:-1,"aria-label":b("client.component.datePicker.clearDateLabel")},E)),!t&&(0,ee.jsx)(fr.Z,Ga({icon:"calendar",tabIndex:-1},C))]})})})));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}const ei=function(e){var t=e.onChange,n=e.options,r=e.id,o=e.value,a=e.immutable,i=e.events,c=e.placeholder,s=(0,Do.Z)(),u=(null==n?void 0:n.datePickerOptions)||{},p=To.Z.getLocalizedDateFormatWithoutPunctuation(s.locale),f=["P",p,To.Z.useTwoDigitYear("P"),To.Z.useTwoDigitYear(p)];return(0,ee.jsx)(Qa,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ja(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ja(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:r,value:o,onChange:t,dateFormats:f,hasTime:!1,immutable:a,placeholder:c,events:i},u))};function ti(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 ni="P HH:mm";const ri=(0,v.ZP)((function(e){var t=e.onChange,n=e.options,r=e.value,o=e.immutable,a=e.placeholder,i=(0,Do.Z)(),c=(null==n?void 0:n.datePickerOptions)||{},s=To.Z.getLocalizedDateTimeFormatWithoutPunctuation(i.locale),u=[ni,s,To.Z.useTwoDigitYear(ni),To.Z.useTwoDigitYear(s)],p=To.Z.getLocalizedDateFormatWithoutPunctuation(i.locale),f=["P",p,To.Z.useTwoDigitYear("P"),To.Z.useTwoDigitYear(p)];return(0,ee.jsx)(Qa,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ti(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ti(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({value:r,onChange:t,dateTimeFormats:u,dateFormats:f,hasTime:!0,immutable:o,placeholder:a},c))}));var oi=i(18446),ai=i.n(oi);function ii(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 ci(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 si(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 ui(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 li=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 pi(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=li.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 fi=[".DS_Store","Thumbs.db"];function di(e){return"object"==typeof e&&null!==e}function hi(e){return yi(e.target.files).map((function(e){return pi(e)}))}function mi(e){return ii(this,void 0,void 0,(function(){return ci(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 pi(e)}))]}}))}))}function gi(e,t){return ii(this,void 0,void 0,(function(){var n;return ci(this,(function(r){switch(r.label){case 0:return e.items?(n=yi(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(bi))]):[3,2];case 1:return[2,vi(wi(r.sent()))];case 2:return[2,vi(yi(e.files).map((function(e){return pi(e)})))]}}))}))}function vi(e){return e.filter((function(e){return-1===fi.indexOf(e.name)}))}function yi(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function bi(e){if("function"!=typeof e.webkitGetAsEntry)return Oi(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?xi(t):Oi(e)}function wi(e){return e.reduce((function(e,t){return ui(ui([],si(e),!1),si(Array.isArray(t)?wi(t):[t]),!1)}),[])}function Oi(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=pi(t);return Promise.resolve(n)}function ki(e){return ii(this,void 0,void 0,(function(){return ci(this,(function(t){return[2,e.isDirectory?xi(e):_i(e)]}))}))}function xi(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var a=this;t.readEntries((function(t){return ii(a,void 0,void 0,(function(){var a,i,c;return ci(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(ki)),r.push(c),o(),s.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function _i(e){return ii(this,void 0,void 0,(function(){return ci(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=pi(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var Si=i(58363);function Ai(e){return function(e){if(Array.isArray(e))return Ti(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Di(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 Ei(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 Ci(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ei(Object(n),!0).forEach((function(t){Pi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ei(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ji(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)||Di(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 Di(e,t){if(e){if("string"==typeof e)return Ti(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)?Ti(e,t):void 0}}function Ti(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 Mi="file-invalid-type",Ri="file-too-large",Ii="file-too-small",Ni="too-many-files",Zi=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:Mi,message:"File type must be ".concat(t)}},Bi=function(e){return{code:Ri,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},Li=function(e){return{code:Ii,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},Fi={code:Ni,message:"Too many files"};function Hi(e,t){var n="application/x-moz-file"===e.type||(0,Si.Z)(e,t);return[n,n?null:Zi(t)]}function Ui(e,t,n){if(Wi(e.size))if(Wi(t)&&Wi(n)){if(e.size>n)return[!1,Bi(n)];if(e.size<t)return[!1,Li(t)]}else{if(Wi(t)&&e.size<t)return[!1,Li(t)];if(Wi(n)&&e.size>n)return[!1,Bi(n)]}return[!0,null]}function Wi(e){return null!=e}function zi(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=ji(Hi(e,n),1)[0],a=ji(Ui(e,r,o),1)[0],i=c?c(e):null;return t&&a&&!i}))}function Yi(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function Vi(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 qi(e){e.preventDefault()}function Gi(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function Ki(e){return-1!==e.indexOf("Edge/")}function Xi(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return Gi(e)||Ki(e)}function $i(){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!Yi(e)&&t&&t.apply(void 0,[e].concat(r)),Yi(e)}))}}function Qi(){return"showOpenFilePicker"in window}function Ji(e){if(Wi(e)){var t=Object.entries(e).filter((function(e){var t=ji(e,2),n=t[0],r=t[1],o=!0;return rc(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(oc)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(e,t){var n=ji(t,2),r=n[0],o=n[1];return Ci(Ci({},e),{},Pi({},r,o))}),{});return[{description:"Files",accept:t}]}return e}function ec(e){if(Wi(e))return Object.entries(e).reduce((function(e,t){var n=ji(t,2),r=n[0],o=n[1];return[].concat(Ai(e),[r],Ai(o))}),[]).filter((function(e){return rc(e)||oc(e)})).join(",")}function tc(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}function nc(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}function rc(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function oc(e){return/^.*\.[\w]+$/.test(e)}var ac=["children"],ic=["open"],cc=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],sc=["refKey","onChange","onClick"];function uc(e){return function(e){if(Array.isArray(e))return fc(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||pc(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 lc(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)||pc(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 pc(e,t){if(e){if("string"==typeof e)return fc(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)?fc(e,t):void 0}}function fc(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 dc(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 hc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dc(Object(n),!0).forEach((function(t){mc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gc(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 vc=(0,Z.forwardRef)((function(e,t){var n=e.children,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=hc(hc({},yc),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,p=t.onDragOver,f=t.onDrop,d=t.onDropAccepted,h=t.onDropRejected,m=t.onFileDialogCancel,g=t.onFileDialogOpen,v=t.useFsAccessApi,y=t.autoFocus,b=t.preventDropOnDocument,w=t.noClick,O=t.noKeyboard,k=t.noDrag,x=t.noDragEventsBubbling,_=t.onError,S=t.validator,A=(0,Z.useMemo)((function(){return ec(n)}),[n]),E=(0,Z.useMemo)((function(){return Ji(n)}),[n]),C=(0,Z.useMemo)((function(){return"function"==typeof g?g:kc}),[g]),P=(0,Z.useMemo)((function(){return"function"==typeof m?m:kc}),[m]),j=(0,Z.useRef)(null),D=(0,Z.useRef)(null),T=lc((0,Z.useReducer)(Oc,wc),2),M=T[0],R=T[1],I=M.isFocused,N=M.isFileDialogActive,B=(0,Z.useRef)("undefined"!=typeof window&&window.isSecureContext&&v&&Qi()),L=function(){!B.current&&N&&setTimeout((function(){D.current&&(D.current.files.length||(R({type:"closeDialog"}),P()))}),300)};(0,Z.useEffect)((function(){return window.addEventListener("focus",L,!1),function(){window.removeEventListener("focus",L,!1)}}),[D,N,P,B]);var F=(0,Z.useRef)([]),H=function(e){j.current&&j.current.contains(e.target)||(e.preventDefault(),F.current=[])};(0,Z.useEffect)((function(){return b&&(document.addEventListener("dragover",qi,!1),document.addEventListener("drop",H,!1)),function(){b&&(document.removeEventListener("dragover",qi),document.removeEventListener("drop",H))}}),[j,b]),(0,Z.useEffect)((function(){return!r&&y&&j.current&&j.current.focus(),function(){}}),[j,y,r]);var U=(0,Z.useCallback)((function(e){_?_(e):console.error(e)}),[_]),W=(0,Z.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),F.current=[].concat(uc(F.current),[e.target]),Vi(e)&&Promise.resolve(o(e)).then((function(t){if(!Yi(e)||x){var n=t.length,r=n>0&&zi({files:t,accept:A,minSize:i,maxSize:a,multiple:c,maxFiles:s,validator:S});R({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}})).catch((function(e){return U(e)}))}),[o,u,U,x,A,i,a,c,s,S]),z=(0,Z.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=Vi(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&p&&p(e),!1}),[p,x]),Y=(0,Z.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=F.current.filter((function(e){return j.current&&j.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),F.current=t,t.length>0||(R({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Vi(e)&&l&&l(e))}),[j,l,x]),V=(0,Z.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=lc(Hi(e,A),2),o=t[0],c=t[1],s=lc(Ui(e,i,a),2),u=s[0],l=s[1],p=S?S(e):null;if(o&&u&&!p)n.push(e);else{var f=[c,l];p&&(f=f.concat(p)),r.push({file:e,errors:f.filter((function(e){return e}))})}})),(!c&&n.length>1||c&&s>=1&&n.length>s)&&(n.forEach((function(e){r.push({file:e,errors:[Fi]})})),n.splice(0)),R({acceptedFiles:n,fileRejections:r,type:"setFiles"}),f&&f(n,r,t),r.length>0&&h&&h(r,t),n.length>0&&d&&d(n,t)}),[R,c,A,i,a,s,f,d,h,S]),q=(0,Z.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),F.current=[],Vi(e)&&Promise.resolve(o(e)).then((function(t){Yi(e)&&!x||V(t,e)})).catch((function(e){return U(e)})),R({type:"reset"})}),[o,V,U,x]),G=(0,Z.useCallback)((function(){if(B.current){R({type:"openDialog"}),C();var e={multiple:c,types:E};window.showOpenFilePicker(e).then((function(e){return o(e)})).then((function(e){V(e,null),R({type:"closeDialog"})})).catch((function(e){tc(e)?(P(e),R({type:"closeDialog"})):nc(e)?(B.current=!1,D.current?(D.current.value=null,D.current.click()):U(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."))):U(e)}))}else D.current&&(R({type:"openDialog"}),C(),D.current.value=null,D.current.click())}),[R,C,P,v,V,U,E,c]),K=(0,Z.useCallback)((function(e){j.current&&j.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),G()))}),[j,G]),X=(0,Z.useCallback)((function(){R({type:"focus"})}),[]),$=(0,Z.useCallback)((function(){R({type:"blur"})}),[]),Q=(0,Z.useCallback)((function(){w||(Xi()?setTimeout(G,0):G())}),[w,G]),J=function(e){return r?null:e},ee=function(e){return O?null:J(e)},te=function(e){return k?null:J(e)},ne=function(e){x&&e.stopPropagation()},re=(0,Z.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,p=e.onDragLeave,f=e.onDrop,d=gc(e,cc);return hc(hc(mc({onKeyDown:ee($i(a,K)),onFocus:ee($i(i,X)),onBlur:ee($i(c,$)),onClick:J($i(s,Q)),onDragEnter:te($i(u,W)),onDragOver:te($i(l,z)),onDragLeave:te($i(p,Y)),onDrop:te($i(f,q)),role:"string"==typeof o&&""!==o?o:"presentation"},n,j),r||O?{}:{tabIndex:0}),d)}}),[j,K,X,$,Q,W,z,Y,q,O,k,r]),oe=(0,Z.useCallback)((function(e){e.stopPropagation()}),[]),ae=(0,Z.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=gc(e,sc);return hc(hc({},mc({accept:A,multiple:c,type:"file",style:{display:"none"},onChange:J($i(r,q)),onClick:J($i(o,oe)),tabIndex:-1},n,D)),a)}}),[D,n,c,q,r]);return hc(hc({},M),{},{isFocused:I&&!r,getRootProps:re,getInputProps:ae,rootRef:j,inputRef:D,open:J(G)})}(gc(e,ac)),o=r.open,a=gc(r,ic);return(0,Z.useImperativeHandle)(t,(function(){return{open:o}}),[o]),B().createElement(Z.Fragment,null,n(hc(hc({},a),{},{open:o})))}));vc.displayName="Dropzone";var yc={disabled:!1,getFilesFromEvent:function(e){return ii(this,void 0,void 0,(function(){return ci(this,(function(t){return di(e)&&di(e.dataTransfer)?[2,gi(e.dataTransfer,e.type)]:function(e){return di(e)&&di(e.target)}(e)?[2,hi(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,mi(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};vc.defaultProps=yc,vc.propTypes={children:f().func,accept:f().objectOf(f().arrayOf(f().string)),multiple:f().bool,preventDropOnDocument:f().bool,noClick:f().bool,noKeyboard:f().bool,noDrag:f().bool,noDragEventsBubbling:f().bool,minSize:f().number,maxSize:f().number,maxFiles:f().number,disabled:f().bool,getFilesFromEvent:f().func,onFileDialogCancel:f().func,onFileDialogOpen:f().func,useFsAccessApi:f().bool,autoFocus:f().bool,onDragEnter:f().func,onDragLeave:f().func,onDragOver:f().func,onDrop:f().func,onDropAccepted:f().func,onDropRejected:f().func,onError:f().func,validator:f().func};const bc=vc;var wc={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Oc(e,t){switch(t.type){case"focus":return hc(hc({},e),{},{isFocused:!0});case"blur":return hc(hc({},e),{},{isFocused:!1});case"openDialog":return hc(hc({},wc),{},{isFileDialogActive:!0});case"closeDialog":return hc(hc({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return hc(hc({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return hc(hc({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return hc({},wc);default:return e}}function kc(){}var xc,_c,Sc,Ac,Ec,Cc,Pc,jc,Dc,Tc=i(76538),Mc=i(69829),Rc=i(24875),Ic=V.ZP.section.withConfig({displayName:"StyledSection"})(xc||(xc=Y()(["\n flex: 1;\n display: flex;\n justify-content: flex-end;\n"]))),Nc=V.ZP.div.withConfig({displayName:"StyledButtonsWrapper"})(_c||(_c=Y()(["\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"])),G.Z,q.Z.space(-2)),Zc=V.ZP.div.withConfig({displayName:"StyledDropzone"})(Sc||(Sc=Y()(["\n width: 100%;\n\n &:hover {\n "," {\n background-color: ",";\n }\n }\n"])),G.Z,(function(e){var t=e.theme;return(0,Tc._j)(.1,t.colors.paper)})),Bc=V.ZP.div.withConfig({displayName:"StyledUploadInput"})(Ac||(Ac=Y()(["\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,Dt.Z)(),(function(e){return e.immutable?"not-allowed":"pointer"}),Rc.FS.color("paper"),(function(e){return e.immutable?Tt.shade2(e):Tt.shade0(e)}),q.Z.space(-2),G.Z,q.Z.space(-3.1),q.Z.space(-1.5)),Lc=V.ZP.div.withConfig({displayName:"StyledUploadProgress"})(Ec||(Ec=Y()(["\n && {\n padding-top: ",";\n text-align: center;\n display: inline-block;\n }\n"])),q.Z.space(-2)),Fc=(0,V.ZP)(Mc.Fe).withConfig({displayName:"StyledUploadProgressText"})(Cc||(Cc=Y()(["\n && {\n ","\n }\n"])),(0,Dt.Z)({fontSize:q.Z.font(-1)})),Hc=V.ZP.div.withConfig({displayName:"StyledUploadProgressIconAndText"})(Pc||(Pc=Y()(["\n && {\n display: flex;\n justify-content: center;\n align-items: center;\n\n span {\n margin-left: ",";\n }\n }\n"])),q.Z.space(-2)),Uc=V.ZP.div.withConfig({displayName:"StyledView"})(jc||(jc=Y()(["\n display: flex;\n justify-content: space-between;\n padding-top: ",";\n"])),q.Z.space(-2));function Wc(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 zc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wc(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Yc=function(e){var t=e.onDrop,n=e.immutable,r=e.text,o=e.onChoose;return(0,ee.jsxs)(Bc,{immutable:n,children:[(0,ee.jsx)(bc,{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,ee.jsx)(Ic,{children:(0,ee.jsxs)(Zc,zc(zc({},t()),{},{children:[(0,ee.jsx)("input",zc({},n())),Dc||(Dc=(0,ee.jsx)(W.Z,{icon:"arrow-to-top"}))]}))})}}),o&&(0,ee.jsx)(W.Z,{onClick:function(e){o(),e.stopPropagation()},icon:"folder",label:"browse docs",iconOnly:!0})]})};var Vc=i(73906),qc=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 Gc=function(e){var t=e.file,n=e.text;return(0,ee.jsxs)(Lc,{children:[(0,ee.jsx)(Vc.Z,{alt:t.name,caption:t.name,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:t.preview,thumbnailUrl:t.type.startsWith("image")?t.preview:null}),(0,ee.jsxs)(Hc,{children:[(0,ee.jsx)(Dr.Z,{position:ot.Z.position.PREPEND}),(0,ee.jsxs)(Fc,{children:[n||"uploading"," (",qc(t.size),")"]})]})]})};var Kc=i(28247),Xc=i(41291);function $c(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 Qc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$c(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Jc=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,ee.jsxs)(Uc,{className:"StyledView",children:[(0,ee.jsx)(Vc.Z,Qc(Qc({alt:n.fileName},c&&{caption:n.fileName}),{},{fileName:n.fileName,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:n.binaryLink,thumbnailUrl:n.thumbnailLink})),(0,ee.jsxs)(Nc,{children:[!o&&(0,ee.jsx)(W.Z,{icon:"trash",onClick:function(){return a(null)},tabIndex:-1,title:i||"delete"}),(0,ee.jsx)(W.Z,{children:(0,ee.jsx)(Xc.Z,{neutral:!0,icon:"arrow-to-bottom",target:"_blank",href:Kc.Z.getDownloadUrl(n.binaryLink),tabIndex:-1,title:r||"download"})})]})]})};function es(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 ts(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?es(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):es(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ns=function(e){var t=e.value,n=e.textResources,r=e.onUpload,o=e.onChoose,a=(0,Z.useRef)(t),i=(0,Z.useState)({isUploading:!1,previewFile:null}),c=We()(i,2),s=c[0],u=c[1];return(0,Z.useEffect)((function(){ai()(a.current,t)||u({isUploading:!1,previewFile:null}),a.current=t}),[t]),null!=t&&t.binaryLink?(0,ee.jsx)(Jc,ts(ts({},e),{},{deleteTitle:n.delete,downloadTitle:n.download})):s.isUploading?(0,ee.jsx)(Gc,ts({file:s.previewFile,text:n.uploading},e)):(0,ee.jsx)(Yc,ts(ts({},e),{},{onDrop:function(e){!function(e){u({isUploading:!0,previewFile:e})}(e),r(e)},onChoose:o}))};ns.defaultProps={textResources:{}};const rs=ns;var os=function(e){return(0,ee.jsx)(rs,{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})};os.defaultProps={options:{}};const as=os;var is,cs,ss=function(e){return-1*Math.abs(e)},us=V.ZP.input.withConfig({displayName:"StyledDurationEdit"})(is||(is=Y()(["\n &&&& {\n ","\n flex-grow: 0;\n width: ","px;\n min-width: 2.5ch;\n }\n"])),ua,(function(e){return e.width})),ls=V.ZP.label.withConfig({displayName:"StyledDurationEditFocusable"})(cs||(cs=Y()(["\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"])),q.Z.space(1),(function(e){return e.immutable?(0,lt.iy)(st()(e.theme,"colors.text")):X.Z.color("text")}),(function(e){return e.immutable?"not-allowed":"default"})),ps=function(e){var t=e.value,n=e.immutable,r=e.onChange,o=e.options,a=To.Z.millisecondsToDuration(t),i=(0,Z.useState)(!1),c=We()(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=ss(n),o=ss(o)),60*(n||0)*6e4+6e4*(o||0)):null))):r(null)},p=function(){u(!0)},f=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,ee.jsxs)(sa,{onBlur:function(){u(!1)},immutable:n,children:[(0,ee.jsxs)(ls,{immutable:n,children:[(0,ee.jsx)(us,{disabled:n,immutable:n,min:!0===o.allowNegative?void 0:0,onChange:function(){},onFocus:p,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");l(t,null)},onKeyPress:f,pattern:d(),step:1,width:m(a.hours),type:"number",value:"number"!=typeof a.hours||0===a.hours&&!n?"":a.hours+""}),h()&&(0,ee.jsx)(U.ZP.Span,{children:o.hoursLabel})]}),(0,ee.jsxs)(ls,{immutable:n,children:[(0,ee.jsx)(us,{disabled:n,immutable:n,min:!0!==o.allowNegative||null!==a.hours&&0!==a.hours?0:void 0,onChange:function(){},onFocus:p,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");l(null,t)},onKeyPress:f,pattern:d(),step:1,width:m(a.minutes),type:"number",value:a.minutes+""}),h()&&(0,ee.jsx)(U.ZP.Span,{children:o.minutesLabel})]}),g&&(0,ee.jsxs)(ls,{immutable:n,children:[(0,ee.jsx)(us,{disabled:n,immutable:n,onChange:function(){},width:m(a.seconds),type:"number",value:a.seconds+""}),h()&&(0,ee.jsx)(U.ZP.Span,{children:o.secondsLabel})]})]})};ps.defaultProps={options:{hoursLabel:"hrs",minutesLabel:"min",secondsLabel:"s"}};const fs=ps;var ds;const hs=V.ZP.input.attrs((function(e){return{type:"text"}})).withConfig({displayName:"StyledStringEdit"})(ds||(ds=Y()(["\n &&&& {\n ","\n }\n"])),ua);const ms=Fa.Z.Debouncer((function(e){return(0,ee.jsxs)(sa,{immutable:e.immutable,children:[(0,ee.jsx)(hs,{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,ee.jsx)(pa,{children:(0,ee.jsx)(Xc.Z,{href:"mailto:".concat(e.value.toString()),icon:"envelope",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));var gs,vs=(0,Z.lazy)((function(){return Promise.all([i.e(288),i.e(759),i.e(85)]).then(i.bind(i,17676))})),ys=function(e){var t=e.onChange,n=e.immutable,r=e.value,o=e.options;if(n)return(0,ee.jsx)(U.ZP.Span,{children:(0,ee.jsx)("div",{dangerouslySetInnerHTML:{__html:r}})});var a=o||{},i=a.contentLang,c=a.ckEditorConfig;return(0,ee.jsx)(Z.Suspense,{fallback:gs||(gs=(0,ee.jsx)("i",{})),children:(0,ee.jsx)(vs,{onChange:function(e){t&&t(e)},value:r,contentLang:i,ckEditorConfig:c})})};ys.defaultProps={value:""};const bs=ys;function ws(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}var Os;function ks(){}function xs(e){return!!(e||"").match(/\d/)}function _s(e){return null==e}function Ss(e){return"number"==typeof e&&isNaN(e)}function As(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Es(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 Cs(e,t,n){for(var r="",o=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||o;return r}function Ps(e,t){return Array(t+1).join(e)}function js(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."+Ps("0",Math.abs(i))+o:i>=c?o+=Ps("0",i-c):o=(o.substring(0,i)||"0")+"."+o.substring(i),n+o}function Ds(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,o=Es(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?".":"")+Cs(u[1]||"",t,n)}function Ts(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 Ms(e){return Math.max(e.selectionStart,e.selectionEnd)}function Rs(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function Is(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 Ns(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(xs(e[n])||xs(e[n-1]));return t}function Zs(e,t,n,r,o,a){void 0===a&&(a=ks);var i=(0,Z.useRef)(),c=function(e){var t=(0,Z.useRef)(e);t.current=e;var n=(0,Z.useRef)((function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return t.current.apply(t,e)}));return n.current}((function(e){var t,a;return _s(e)||Ss(e)?(a="",t=""):"number"==typeof e||n?(a="number"==typeof e?js(e):e,t=r(a)):(a=o(e,void 0),t=e),{formattedValue:t,numAsString:a}})),s=(0,Z.useState)((function(){return c(t)})),u=s[0],l=s[1];return(0,Z.useMemo)((function(){_s(e)?i.current=void 0:(i.current=c(e),l(i.current))}),[e,c]),[u,function(e,t){l({formattedValue:e.formattedValue,numAsString:e.value}),a(e,t)}]}function Bs(e){return e.replace(/[^0-9]/g,"")}function Ls(e){return e}function Fs(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=Ls);var c=e.removeFormatting;void 0===c&&(c=Bs);var s=e.defaultValue,u=e.valueIsNumericString,l=e.onValueChange,p=e.isAllowed,f=e.onChange;void 0===f&&(f=ks);var d=e.onKeyDown;void 0===d&&(d=ks);var h=e.onMouseUp;void 0===h&&(h=ks);var m=e.onFocus;void 0===m&&(m=ks);var g=e.onBlur;void 0===g&&(g=ks);var v=e.value,y=e.getCaretBoundary;void 0===y&&(y=Ns);var b=e.isValidInputCharacter;void 0===b&&(b=xs);var w=ws(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter"]),O=Zs(v,s,Boolean(u),i,c,l),k=O[0],x=k.formattedValue,_=k.numAsString,S=O[1],A=(0,Z.useRef)();(0,Z.useEffect)((function(){var e=i(_);if(void 0===A.current||e!==A.current){var t=j.current;L({formattedValue:e,numAsString:_,input:t,setCaretPosition:!0,source:Os.props,event:void 0})}}));var E=(0,Z.useState)(!1),C=E[0],P=E[1],j=(0,Z.useRef)(null),D=(0,Z.useRef)({setCaretTimeout:null,focusTimeout:null});(0,Z.useEffect)((function(){return P(!0),function(){clearTimeout(D.current.setCaretTimeout),clearTimeout(D.current.focusTimeout)}}),[]);var T=i,M=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},R=function(e,t,n){Ts(e,t),D.current.setCaretTimeout=setTimeout((function(){e.value===n&&Ts(e,t)}),0)},I=function(e,t,n){return Is(e,t,y(e),n)},N=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={},p=new Array(s),f=0;f<s;f++){p[f]=-1;for(var d=0,h=u;d<h;d++)if(n[f]===e[d]&&!0!==l[d]){p[f]=d,l[d]=!0;break}}for(var m=r;m<s&&(-1===p[m]||!a(n[m]));)m++;var g=m===s||-1===p[m]?u:p[m];for(m=r-1;m>0&&-1===p[m];)m--;var v=-1===m||-1===p[m]?0:p[m]+1;return v>g?g:r-v<g-r?v:g}(t,x,e,n,r,b);return o=Is(t,o,r)},L=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=Ms(n);n.value=t,c=N(s,t,u)}n.value=t,r&&void 0!==c&&R(n,c,t)}t!==x&&function(e,t){A.current=e.formattedValue,S(e,t)}(M(t,i),{event:a,source:o})},F=!C||"undefined"==typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",H=Object.assign({inputMode:F},w,{type:t,value:x,onChange:function(e){var t=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}}}(x,e),o=Object.assign(Object.assign({},r),{lastValue:x}),a=c(e,o),i=T(a);if(p&&!p(M(i,a))){var s=t.target,u=Ms(s),l=N(e,x,u);return R(s,l,x),!1}return L({formattedValue:i,numAsString:a,inputValue:e,event:t,source:n,setCaretPosition:!0,input:t.target}),!0}(e.target.value,e,Os.event);t&&f(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=I(i,t,"ArrowLeft"===r?"left":"right");else"Delete"!==r||b(i[t])?"Backspace"!==r||b(i[t])||(c=I(i,t,"left")):c=I(i,t,"right");c!==t&&R(n,c,i),e.isUnitTestRun&&R(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=I(o,n);a!==n&&R(t,a,o)}h(e)},onFocus:function(e){e.persist&&e.persist();var t=e.target;j.current=t,D.current.focusTimeout=setTimeout((function(){var n=t.selectionStart,r=t.selectionEnd,o=t.value;void 0===o&&(o="");var a=I(o,n);a===n||0===n&&r===o.length||R(t,a,o),m(e)}),0)},onBlur:function(e){j.current=null,clearTimeout(D.current.focusTimeout),clearTimeout(D.current.setCaretTimeout),g(e)}});if("text"===n)return o?B().createElement(B().Fragment,null,o(x,w)||null):B().createElement("span",Object.assign({},w,{ref:a}),x);if(r){var U=r;return B().createElement(U,Object.assign({},H,{ref:a}))}return B().createElement("input",Object.assign({},H,{ref:a}))}function Hs(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;void 0===i&&(i=!0);var c=t.thousandsGroupStyle;if(void 0===c&&(c="thousand"),""===e||"-"===e)return e;var s=Us(t),u=s.thousandSeparator,l=s.decimalSeparator,p=0!==n&&-1!==e.indexOf(".")||n&&r,f=Es(e,i),d=f.beforeDecimal,h=f.afterDecimal,m=f.addNegation;return void 0!==n&&(h=Cs(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;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+(p&&l||"")+h}function Us(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 Ws(e,t,n){void 0===t&&(t=Rs(e));var r=n.allowNegative;void 0===r&&(r=!0);var o=n.prefix;void 0===o&&(o="");var a=n.suffix;void 0===a&&(a="");var i=n.decimalScale,c=t.from,s=t.to,u=s.start,l=s.end,p=Us(n),f=p.allowedDecimalSeparators,d=p.decimalSeparator,h=e[l]===d;if(l-u==1&&-1!==f.indexOf(e[u])){var m=0===i?"":d;e=e.substring(0,u)+m+e.substring(u+1,e.length)}var g=!1;o.startsWith("-")?g=e.startsWith("--"):a.startsWith("-")&&e.length===a.length?g=!1:"-"===e[0]&&(g=!0),g&&(e=e.substring(1),u-=1,l-=1);var v=0;e.startsWith(o)?v+=o.length:u<o.length&&(v=u),l-=v;var y=(e=e.substring(v)).length,b=e.length-a.length;e.endsWith(a)?y=b:l>e.length-a.length&&(y=l),e=e.substring(0,y),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}(g?"-"+e:e,r),e=(e.match(function(e,t){return new RegExp("(^-)|[0-9]|"+As(e),t?"g":void 0)}(d,!0))||[]).join("");var w=e.indexOf(d),O=Es(e=e.replace(new RegExp(As(d),"g"),(function(e,t){return t===w?".":""})),r),k=O.beforeDecimal,x=O.afterDecimal,_=O.addNegation;return s.end-s.start<c.end-c.start&&""===k&&h&&!parseFloat(x)&&(e=_?"-":""),e}function zs(e){var t=e.decimalSeparator;void 0===t&&(t=".");e.allowedDecimalSeparators,e.thousandsGroupStyle,e.suffix,e.allowNegative;var n=e.allowLeadingZeros,r=e.onKeyDown;void 0===r&&(r=ks);var o=e.onBlur;void 0===o&&(o=ks);var a=e.thousandSeparator,i=e.decimalScale,c=e.fixedDecimalScale,s=e.prefix;void 0===s&&(s="");var u=e.defaultValue,l=e.value,p=e.valueIsNumericString,f=e.onValueChange,d=ws(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]);!function(e){var t=Us(e),n=t.thousandSeparator,r=t.decimalSeparator;if(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 ")}(e);var h=function(t){return Hs(t,e)},m=function(t,n){return Ws(t,n,e)},g=p;_s(l)?_s(u)||(g=null!=p?p:"number"==typeof u):g=null!=p?p:"number"==typeof l;var v=function(e){return _s(e)||Ss(e)?e:("number"==typeof e&&(e=js(e)),g&&"number"==typeof i?Ds(e,i,Boolean(c)):e)},y=Zs(v(l),v(u),Boolean(g),h,m,f),b=y[0],w=b.numAsString,O=b.formattedValue,k=y[1];return Object.assign(Object.assign({},d),{value:O,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===t||xs(e)},onValueChange:k,format:h,removeFormatting:m,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 n=t.target,o=t.key,u=n.selectionStart,l=n.selectionEnd,p=n.value;if(void 0===p&&(p=""),u===l){"Backspace"===o&&"-"===p[0]&&u===s.length+1&&Ts(n,1);var f=Us(e).decimalSeparator;"Backspace"===o&&p[u-1]===f&&i&&c&&(Ts(n,u-1),t.preventDefault());var d=!0===a?",":a;"Backspace"===o&&p[u-1]===d&&Ts(n,u-1),"Delete"===o&&p[u]===d&&Ts(n,u+1),r(t)}else r(t)},onBlur:function(t){var r=w;if(r.match(/\d/g)||(r=""),n||(r=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:"")}(r)),c&&i&&(r=Ds(r,i,c)),r!==w){var a=Hs(r,e);k({formattedValue:a,value:r,floatValue:parseFloat(r)},{event:t,source:Os.event})}o(t)}})}function Ys(e){var t=zs(e);return B().createElement(Fs,Object.assign({},t))}!function(e){e.event="event",e.props="prop"}(Os||(Os={}));var Vs,qs=["immutable"];function Gs(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 Ks=(0,V.ZP)((function(e){e.immutable;var t=Ro()(e,qs);return(0,ee.jsx)(Ys,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gs(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t))})).withConfig({displayName:"StyledNumberEdit"})(Vs||(Vs=Y()(["\n &&&& {\n ","\n }\n"])),ua);const Xs=Ks;function $s(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 Qs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$s(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Js=function(e){return 0!==e?Math.ceil(Math.log10(Math.abs(e)+1)):1},eu=function(e){return null!=e&&!isNaN(parseFloat(e))},tu=function(e,t,n){return!eu(n)||!(eu(t)&&n>t)&&!(eu(e)&&n<e)},nu=function(e,t){return function(n){var r=n.floatValue;return Js(r)<Js(e)||tu(e,t,r)}};const ru=(0,v.ZP)(Fa.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,p=a.fixedDecimalScale,f=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=Qs(Qs({isAllowed:nu(s,m),allowNegative:!!l},isNaN(c)?{}:{decimalScale:c}),{},{fixedDecimalScale:!!p});return(0,ee.jsx)(sa,{immutable:e.immutable,children:(0,ee.jsx)(Xs,Qs(Qs({decimalSeparator:o,disabled:e.immutable,id:e.id,valueIsNumericString:!0,name:e.name,onValueChange:function(t){e.onChange&&tu(s,m,t.floatValue)&&e.onChange(void 0!==t.floatValue?t.floatValue:null)},immutable:e.immutable,thousandSeparator:r,value:e.value,suffix:f,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&&!tu(s,m,r)&&(t.target.value=null)}}))})}),800));const ou=Fa.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,p=s.format,f=s.allowLeadingZeros;return(0,ee.jsx)(sa,{immutable:o,children:(0,ee.jsx)(Xs,{isAllowed:nu(u,l),allowNegative:!0,decimalScale:0,disabled:o,id:i,name:a,onValueChange:function(e){var t=e.value,r=e.floatValue,o=f?t:r;void 0===o&&(o=null),tu(u,l,r)&&n(o)},value:t,allowLeadingZeros:f,format:p,placeholder:c})})}),800);var au,iu,cu,su=i(50008),uu=i.n(su),lu=i(58808),pu=i.n(lu),fu=V.ZP.div.withConfig({displayName:"StyledLocationEdit"})(au||(au=Y()(["\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"])),ca,q.Z.space(-2),q.Z.space(-2),(function(e){var t=e.immutable,n=e.theme;return t?(0,lt.iy)(st()(n,"colors.text")):st()(n,"colors.text")}),ua,Rc.FS.color("paper"),Rc.FS.color("signal.info.text"),Rc.FS.color("secondaryLight"),(function(e){var t=e.theme;return(0,lt.HO)(st()(t,"colors.paper"),1)}));function du(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 hu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?du(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):du(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const mu=function(e){var t=e.onChange,n=e.options,r=e.value,o=e.id,a=e.immutable,i=e.name,c=function(e){return function(t){return t[e]}},s=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,ee.jsxs)(U.ZP.Span,{children:[r," ",o," ",a," ",i]})},u=function(e){return function(n,o){var a=o.newValue;t(hu(hu({},r),{},l()({},e,a)))}},p=function(e,n){var r=n.suggestion;t(r)},f=function(e){return function(t){var r=t.value;n.fetchSuggestions(l()({},e,r),n.locationValues.country)}},d={id:o,value:r.postcode||"",onChange:u("postcode"),disabled:a},h={value:r.city||"",onChange:u("city"),disabled:a};return(0,ee.jsx)($e,{children:function(e){var t,o,u,l=e.focused,m=e.getRef;return(0,ee.jsxs)(fu,{immutable:a,name:i,ref:m,children:[(0,ee.jsx)(pu(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:f("postcode"),getSuggestionValue:c("postcode"),renderSuggestion:s,onSuggestionsClearRequested:function(){},inputProps:d,onSuggestionSelected:p,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!a}}),(l||r.city||r.postcode)&&(iu||(iu=(0,ee.jsx)(U.ZP.Span,{children:"/"}))),(0,ee.jsx)(pu(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:f("city"),getSuggestionValue:c("city"),renderSuggestion:s,onSuggestionsClearRequested:function(){},inputProps:h,onSuggestionSelected:p,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!a}}),(0,ee.jsxs)(pa,{children:[n.isLoading&&(cu||(cu=(0,ee.jsx)(Dr.Z,{size:"1.8rem"}))),(u=n.locationValues,Boolean(u.city||u.postcode)&&(0,ee.jsx)(Xc.Z,{href:(t=n.locationValues,o=t?Object.values(t).filter(Boolean).map((function(e){return"object"===uu()(e)&&e.display?e.display:e})).join("+"):"","".concat("https://www.google.com/maps/search/?api=1&query=").concat(o)),icon:"map-marked",tabIndex:-1,target:"_blank",dense:!1,title:n.mapButtonTitle||"Show on map",neutral:!0}))]})]})}})};function gu(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 vu=function(e){return(0,ee.jsx)(io,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gu(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!0,immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function yu(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 bu=function(e){return(0,ee.jsx)(io,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yu(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!0,immutable:e.immutable,onChange:e.onChange,value:e.value,openMenuOnClick:!0},e.options))};var wu,Ou=i(48926),ku=i.n(Ou),xu=i(87757),_u=i.n(xu);const Su=V.ZP.input.attrs((function(e){return{type:"tel"}})).withConfig({displayName:"StyledPhoneEdit"})(wu||(wu=Y()(["\n &&&& {\n ","\n }\n"])),ua);const Au=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,a=e.onLibLoaded,c=st()(e,"options.defaultCountry")||"CH",s=(0,Z.useState)(null),u=We()(s,2),l=u[0],p=u[1],f=B().createRef();(0,Z.useEffect)((function(){var e=function(){var e=ku()(_u().mark((function e(){var t;return _u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([i.e(817),i.e(877)]).then(i.bind(i,80446));case 2:t=e.sent,p(t),a&&a();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[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,ee.jsxs)(sa,{immutable:r,children:[(0,ee.jsx)(Su,{disabled:r||!l,id:o,name,onChange:function(e){var r=e.target.value,o=l?l.parseNumber(r,c):r,a=Gt()(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(f.current))}}(r,n,i)},immutable:r||!l,ref:f,value:h}),h&&(0,ee.jsx)(pa,{children:(0,ee.jsx)(Xc.Z,{href:"tel:".concat(n),icon:"phone",tabIndex:-1,neutral:!0})})]})};function Eu(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 Cu=function(e){return(0,ee.jsx)(io,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Eu(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,isMulti:!1,immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function Pu(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 ju=function(e){return(0,ee.jsx)(io,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pu(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({immutable:e.immutable,onChange:e.onChange,value:e.value},e.options))};function Du(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 Tu=function(e){return(0,ee.jsx)(io,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Du(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Du(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e.id,immutable:e.immutable,isMulti:!1,onChange:e.onChange,value:e.value,openMenuOnClick:!0},e.options))};const Mu=Fa.Z.Debouncer((function(e){return(0,ee.jsx)(sa,{immutable:e.immutable,children:(0,ee.jsx)(hs,{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 Ru=function(){var e,t=(null===(e=navigator)||void 0===e?void 0:e.userAgent)||"";return/^((?!chrome|android).)*safari/i.test(t)};var Iu,Nu,Zu,Bu=(0,V.iv)(Iu||(Iu=Y()(["\n ","\n width: 100%;\n grid-area: 1 / 1 / 2 / 2;\n max-height: 25rem;\n box-sizing: border-box;\n"])),ua),Lu=V.ZP.div.withConfig({displayName:"StyledSizeWrapper"})(Nu||(Nu=Y()(["\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"])),Bu),Fu=V.ZP.textarea.withConfig({displayName:"StyledTextarea"})(Zu||(Zu=Y()(["\n ","\n resize: none;\n margin: 0;\n min-height: 4em;\n"])),Bu);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 Uu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hu(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Wu=function(e){var t=e.value,n=e.onChange,r=e.name,o=e.id,a=e.disabled,i=e.immutable,c=(0,Z.useState)(t),s=We()(c,2),u=s[0],l=s[1],p=!Ru(),f=(0,Z.useCallback)(Qt()(l,500,{trailing:!0}),[]);return(0,Z.useEffect)((function(){p&&f(t)}),[t,p,f]),(0,ee.jsx)(Lu,Uu(Uu({"data-testid":"replicated-test"},p?{"data-replicated-value":u}:{}),{},{children:(0,ee.jsx)(Fu,{value:t,name:r,id:o,onChange:n,disabled:a,immutable:i,rows:"1"})}))};const zu=Fa.Z.Debouncer((function(e){return(0,ee.jsx)(sa,{immutable:e.immutable,children:(0,ee.jsx)(Wu,{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 Yu;const Vu=V.ZP.input.withConfig({displayName:"StyledTimeEdit"})(Yu||(Yu=Y()(["\n &&&& {\n ","\n }\n"])),ua);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}function Gu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qu(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ku=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,a=e.name,i=Ya(n,t),c=i.inputProps,s=i.clearButtonProps,u=n&&!r;return(0,ee.jsxs)(sa,{immutable:r,children:[(0,ee.jsx)(Vu,Gu({type:"text",disabled:r,id:o,immutable:r,name:a},c)),u&&(0,ee.jsx)(pa,{children:(0,ee.jsx)(fr.Z,Gu(Gu({icon:"times"},s),{},{tabIndex:-1}))})]})};var Xu;const $u=V.ZP.input.attrs((function(e){return{type:"url"}})).withConfig({displayName:"StyledUrlEdit"})(Xu||(Xu=Y()(["\n &&&& {\n ","\n }\n"])),ua);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}function Ju(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qu(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var el={boolean:lo,"boolean-select":co,choice:Oo,code:jo,date:ei,datetime:ri,document:as,duration:fs,email:ms,html:bs,integer:ou,location:mu,"multi-remote":vu,"multi-select":bu,number:ru,phone:Au,remote:Cu,"search-filter":ju,"single-select":Tu,string:Mu,text:zu,url:Fa.Z.Debouncer((function(e){return(0,ee.jsxs)(sa,{immutable:e.immutable,children:[(0,ee.jsx)($u,{disabled:e.immutable,id:e.id,immutable:e.immutable,name:e.name,onChange:function(t){return e.onChange(((n=(n=t.target.value).toLowerCase()).indexOf(".")>0&&!/^[a-z0-9]+:\/\//.test(n)&&(n="https://".concat(n)),n));var n},value:e.value}),e.value&&(0,ee.jsx)(pa,{children:(0,ee.jsx)(Xc.Z,{href:e.value,icon:"external-link",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})})),time:Ku};const tl=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(el[t]){var u=el[t],l=Ju(Ju({},Vt()(a,"onChange")),{},{onBlur:function(){"function"==typeof(null==a?void 0:a.onBlur)&&a.onBlur(n)}});return(0,ee.jsx)("div",Ju(Ju({},l),{},{"data-cy":"form-field",children:(0,ee.jsx)(u,Ju(Ju({value:n,onChange:null==a?void 0:a.onChange},Gt()(r)?{}:{options:r}),{},{id:o,immutable:s,placeholder:i,events:a}))}))}return console.log("No type-editor defined for component type",t),null};function nl(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 rl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nl(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ol=function(e){return(0,ee.jsx)(fa,{children:(0,ee.jsx)(tl,rl({componentType:e.type},Vt()(e,"type")))})};var al,il,cl=V.ZP.div.withConfig({displayName:"StyledLoginFormInputWrapper"})(al||(al=Y()(["\n && {\n ","\n }\n"])),ca);const sl=function(e){var t=e.verifyCode,n=e.intl,r=(0,Z.useState)(null),o=We()(r,2),a=o[0],i=o[1],c=function(e){return n.formatMessage({id:e})};return(0,ee.jsxs)(ee.Fragment,{children:[il||(il=(0,ee.jsx)(U.ZP.P,{children:(0,ee.jsx)(F.Z,{id:"client.two-factor-connector.verificationText"})})),(0,ee.jsxs)("form",{onSubmit:function(e){e.preventDefault(),e.stopPropagation(),a&&a.toString().length>=6&&t(a)},children:[(0,ee.jsx)(zt,{hasValue:!!a,id:"verification-input",label:c("client.two-factor-connector.verificationInputLabel"),children:(0,ee.jsx)(cl,{children:(0,ee.jsx)(ol,{type:"integer",value:a,events:{onChange:i},options:{format:"### ###",allowLeadingZeros:!0}})})}),(0,ee.jsx)(K,{children:(0,ee.jsx)(W.Z,{label:c("client.two-factor-connector.okButton"),ink:"primary",look:"raised",type:"submit",disabled:!a||a.toString().length<6})})]})]})};var ul={verifyCode:function(e){return{type:E,payload:{userCode:e}}}};const ll=(0,y.connect)((function(e,t){return{}}),ul)((0,v.ZP)(sl));var pl,fl,dl,hl,ml,gl,vl=0,yl=1,bl=2,wl=3;const Ol=function(e){var t=e.initialize,n=e.stage;(0,Z.useEffect)((function(){t()}),[t]);return(0,ee.jsxs)(ee.Fragment,{children:[gl||(gl=(0,ee.jsx)(g.Z.Notifications,{})),function(){switch(n){case vl:return pl||(pl=(0,ee.jsx)(He,{}));case yl:return fl||(fl=(0,ee.jsx)(Ze,{}));case bl:return dl||(dl=(0,ee.jsx)(ll,{}));case wl:return hl||(hl=(0,ee.jsx)(re,{}));default:return ml||(ml=(0,ee.jsx)(L.Z,{}))}}()]})};var kl={initialize:D};const xl=(0,y.connect)((function(e){return{stage:e.twoFactorConnector.stage}}),kl)((0,v.ZP)(Ol));var _l,Sl=i(81770);function Al(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 El(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Al(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Al(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cl=function(e){return function(t){return El(El({},t),{},{stage:e})}},Pl=(_l={},l()(_l,w,Sl.Z.singleTransferReducer("twoFactorActive")),l()(_l,O,Sl.Z.singleTransferReducer("secret")),l()(_l,k,Sl.Z.singleTransferReducer("username")),l()(_l,P,Sl.Z.singleTransferReducer("setupSuccessful")),l()(_l,S,Cl(0)),l()(_l,A,Cl(1)),l()(_l,_,Cl(2)),l()(_l,j,Cl(3)),_l),jl={stage:null,twoFactorActive:null,secret:null,username:null,setupSuccessful:null};var Dl=i(34857),Tl=i(81719),Ml=i(54159),Rl=_u().mark(Gl),Il=_u().mark(Xl),Nl=_u().mark($l),Zl=_u().mark(Ql),Bl=_u().mark(Jl),Ll=_u().mark(ep),Fl=_u().mark(tp),Hl=_u().mark(np),Ul=_u().mark(rp),Wl=_u().mark(op),zl="relTwo_step_login_status",Yl=function(e){return e.twoFactorConnector.username},Vl=function(e){return e.twoFactorConnector.secret},ql=function(e){return e.input};function Gl(){var e,t,n,r,o,a;return _u().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,Dl.Ys)(ql);case 2:if(e=i.sent,e.secret){i.next=14;break}return i.next=7,(0,Dl.Ys)(Yl);case 7:return t=i.sent,i.next=10,(0,Dl.RE)(Tl.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,Dl.gz)(M({secret:o,uri:a}));case 14:return i.next=16,(0,Dl.gz)({type:A});case 16:case"end":return i.stop()}}),Rl)}function Kl(e,t){return Ml.Z.executeRequest(e,t).then(Ml.Z.extractBody)}function Xl(e,t,n,r){var o,a;return _u().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,Dl.RE)(Kl,"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,Dl.gz)(N(st()(a,"TWOSTEPLOGIN_ACTIVATION.success",!1)));case 6:case"end":return i.stop()}}),Il)}function $l(e,t,n){var r;return _u().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,Dl.RE)(Tl.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,Dl.gz)(N(204===r.status));case 5:case"end":return o.stop()}}),Nl)}function Ql(e){var t,n,r,o,a,i;return _u().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return t=e.payload.userCode,c.next=3,(0,Dl.Ys)(Yl);case 3:return n=c.sent,c.next=6,(0,Dl.Ys)(Vl);case 6:return r=c.sent,o=r.secret,c.next=10,(0,Dl.Ys)(ql);case 10:if(a=c.sent,i=a.password,!a.forced){c.next=18;break}return c.next=16,(0,Dl.RE)(Xl,o,t,n,i);case 16:c.next=20;break;case 18:return c.next=20,(0,Dl.RE)($l,n,o,t);case 20:return c.next=22,(0,Dl.gz)({type:j});case 22:case"end":return c.stop()}}),Zl)}function Jl(){var e,t;return _u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Dl.RE)(tp);case 2:return n.next=4,(0,Dl.Ys)(ql);case 4:if(e=n.sent,!(t=e.secret)){n.next=9;break}return n.next=9,(0,Dl.gz)(M(t));case 9:return n.next=11,(0,Dl.gz)(I());case 11:case"end":return n.stop()}}),Bl)}function ep(){return _u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Dl.gz)(m.Z.fireExternalEvent("onSuccess"));case 2:case"end":return e.stop()}}),Ll)}function tp(){var e,t,n,r,o;return _u().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,Dl.RE)(np);case 2:return e=a.sent,a.next=5,(0,Dl.gz)(R(e));case 5:return t='username === "'.concat(e,'"'),a.next=8,(0,Dl.RE)(Tl.Z.fetchEntities,"Principal",{where:t,paths:[zl]});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=st()(n,"[0].paths.".concat(zl,".value.key")),o="1"===r,a.next=15,(0,Dl.gz)(T(o));case 15:case"end":return a.stop()}}),Fl)}function np(){var e,t,n;return _u().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,Dl.Ys)(ql);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,Dl.RE)(Tl.Z.requestSaga,"principals");case 10:return n=r.sent,r.abrupt("return",n.body.username);case 12:case"end":return r.stop()}}),Hl)}function rp(){return _u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Dl.gz)(m.Z.fireExternalEvent("onResize"));case 2:case"end":return e.stop()}}),Ul)}function op(){return _u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Dl.$6)([(0,Dl.Fm)(x,Gl),(0,Dl.Fm)(E,Ql),(0,Dl.Fm)(b,Jl),(0,Dl.Fm)(C,ep),(0,Dl.Fm)(S,rp),(0,Dl.Fm)(A,rp),(0,Dl.Fm)(_,rp),(0,Dl.Fm)(j,rp)]);case 2:case"end":return e.stop()}}),Wl)}const ap={twoFactorConnector:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:jl,t=arguments.length>1?arguments[1]:void 0,n=Pl[t.type];return n?n(e,t):e}};var ip,cp=[op];function sp(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 up(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sp(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var lp="two-factor-connector",pp=function(e,t,n,r){var o=ip||(ip=(0,ee.jsx)(xl,{})),a=s.Z.createStore(ap,cp,t,lp);return g.Z.addToStore(a,!0),h.Z.addToStore(a,!0,["console","remote","notification"]),m.Z.addToStore(a,(function(e){return s.Z.getEvents(fp,e.input)})),d.Z.addToStore(a),s.Z.createApp(lp,o,a,{input:t,events:n,actions:[],publicPath:r,textResourceModules:["component","common",lp]})},fp=["onSuccess","onCancel","onResize"],dp=function(e){return s.Z.useApp({initApp:pp,props:e,packageName:lp,externalEvents:fp}).component};dp.propTypes=up(up({},fp.reduce((function(e,t){return up(up({},e),{},l()({},t,f().func))}),{})),{},{username:f().string,password:f().string,secret:f().shape({secret:f().string.isRequired,uri:f().string.isRequired}),forced:f().bool});var hp=s.Z.createBundleableApp(lp,pp,dp);s.Z.registerAppInRegistry(hp.name,hp.init)})(),c})()));