tocco-legacy-bundle 0.1.97 → 0.1.98

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/merge.js CHANGED
@@ -49,4 +49,4 @@ e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,ge
49
49
  *
50
50
  * This source code is licensed under the MIT license found in the
51
51
  * LICENSE file in the root directory of this source tree.
52
- */var r=n(1024),o=n(61688);var a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useSyncExternalStore,c=r.useRef,u=r.useEffect,s=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var f=c(null);if(null===f.current){var p={hasValue:!1,value:null};f.current=p}else p=f.current;f=s((function(){function e(e){if(!u){if(u=!0,i=e,e=r(e),void 0!==o&&p.hasValue){var t=p.value;if(o(t,e))return c=t}return c=e}if(t=c,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,c=n)}var i,c,u=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]}),[t,n,r,o]);var d=i(e,f[0],f[1]);return u((function(){p.hasValue=!0,p.value=d}),[d]),l(d),d}},61688:(e,t,n)=>{"use strict";e.exports=n(53250)},52798:(e,t,n)=>{"use strict";e.exports=n(50139)},28721:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});const r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let o;const a=new Uint8Array(16);function i(){if(!o&&(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!o))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(a)}const c=[];for(let e=0;e<256;++e)c.push((e+256).toString(16).slice(1));function u(e,t=0){return(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase()}const s=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();const o=(e=e||{}).random||(e.rng||i)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return u(o)}},1024:e=>{"use strict";e.exports=t},30314:t=>{"use strict";t.exports=e},71298:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},38088:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},87462:(e,t,n)=>{"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Z:()=>r})},86:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:()=>r})},31599:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},28549:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},2717:(e,t,n)=>{"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Z:()=>r})},33417:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(28549);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},32924:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},1972:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(78001);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},62360:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:()=>r})},78001:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(31599);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}i.m=o,i.amdD=function(){throw new Error("define cannot be used indirect")},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>"chunk-"+({85:"code-editor",198:"vendor-fontawesome",614:"vendor-icons",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"e125a078c53dbf382e61",198:"ab9f2eea50d01a3a62a9",560:"e3d5772311dd2d78dc20",608:"c3b57ad1736c5780e353",614:"3967f92670930e8b38b1",631:"cae002de42dc05a6d5a0",877:"a7f934130ec5ac7a8cff"}[e]+".js",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="tocco-:",i.l=(e,t,o,a)=>{if(n[e])n[e].push(t);else{var c,u;if(void 0!==o)for(var s=document.getElementsByTagName("script"),l=0;l<s.length;l++){var f=s[l];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==r+o){c=f;break}}c||(u=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.setAttribute("data-webpack",r+o),c.src=e),n[e]=[t];var p=(t,r)=>{c.onerror=c.onload=null,clearTimeout(d);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(r))),t)return t(r)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=p.bind(null,c.onerror),c.onload=p.bind(null,c.onload),u&&document.head.appendChild(c)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.j=381,i.p="/",(()=>{var e={381:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var a=i.p+i.u(t),c=new Error;i.l(a,(n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",c.name="ChunkLoadError",c.type=o,c.request=a,r[1](c)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,c,u]=n,s=0;if(a.some((t=>0!==e[t]))){for(r in c)i.o(c,r)&&(i.m[r]=c[r]);if(u)u(i)}for(t&&t(n);s<a.length;s++)o=a[s],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_=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:()=>kg});var e,t,n,r,o,a,u,s,l,f,p,d,h=i(18882),m=i(59713),g=i.n(m),v=i(45697),y=i.n(v),b=i(50600),w=i(19241),O=i(30604),x=i(74806),k=i(50558),S="merge/INITIALIZE",P="merge/SET_SOURCE_DATA",j="merge/SET_SELECTED_SINGLE",_="merge/SET_SELECTED_MULTIPLE",E="merge/SET_SELECTED_MULTIPLE_ALL",C="merge/SET_TARGET_ENTITY",D="merge/EXECUTE_MERGE",T="merge/SET_MERGE_RESPONSE",M="merge/SET_MERGE_ERROR",R="merge/CLOSE",I=function(e){return{type:P,payload:{sourceData:e}}},N=function(e){return{type:C,payload:{entityKey:e}}},A=function(e,t){return{type:M,payload:{errorMsg:e,validationErrors:t}}},Z=i(1024),L=i.n(Z),F=i(319),H=i.n(F),B=i(63038),U=i.n(B),W=i(7739),z=i.n(W),Y=i(44012),V=i(88162),q=i(34206),G=i(85893),K=function(e){var t=e.model,n=e.keys,r=e.totalKeys,o=e.navigationStrategy;return 0===r?(0,G.jsx)(q.ZP.Span,{children:r}):(0,G.jsxs)(o.ListLink,{entityName:t,entityKeys:n.slice(0,100),children:["(",r,")"]})},X=i(28655),Q=i.n(X),$=i(38205),J=i(88601),ee=i(65035),te=i(7281),ne=$.ZP.div.withConfig({displayName:"StyledButtonWrapper"})(e||(e=Q()(["\n border-bottom: 3px solid ",";\n"])),J.Z.color("backgroundBody")),re=(0,$.ZP)(ee.Z).withConfig({displayName:"StyledButton"})(t||(t=Q()(["\n align-self: flex-start;\n margin-top: ",";\n margin-bottom: ",";\n margin-left: ",";\n"])),te.Z.space(-.7),te.Z.space(-.7),te.Z.space(0)),oe=i(24875),ae=$.ZP.div.withConfig({displayName:"StyledSummarySuccessWrapper"})(n||(n=Q()(["\n display: grid;\n align-items: center;\n grid-template-columns: "," 1fr;\n grid-column-gap: ",";\n margin-bottom: ",";\n"])),te.Z.font(10),te.Z.space(-.5),te.Z.space(-.7)),ie=$.ZP.div.withConfig({displayName:"StyledMessageWrapper"})(r||(r=Q()(["\n margin-bottom: ",";\n\n && {\n p {\n margin-bottom: 0;\n }\n }\n"])),te.Z.space(-.7)),ce=$.ZP.div.withConfig({displayName:"StyledResultsWrapper"})(o||(o=Q()(["\n padding: "," 0 0 ",";\n"])),te.Z.space(-1),te.Z.space(0)),ue=$.ZP.span.withConfig({displayName:"StyledIconWrapper"})(a||(a=Q()(["\n display: flex;\n align-items: center;\n color: ",";\n font-size: ",";\n"])),oe.FS.color("signal.success"),te.Z.font(10));const se=function(e){var t=e.mergeResponse,n=e.navigationStrategy,r=e.close,o=function(e){return Object.entries(z()(e,(function(e){return e.entityLabel}))).map((function(t){var r=U()(t,2),o=r[0],a=r[1],i=e.find((function(e){return e.entityLabel===o})).entity,c=a.map((function(e){return e.pk}));return(0,G.jsxs)("span",{children:[o," ",(0,G.jsx)(K,{model:i,keys:c,totalKeys:c.length,navigationStrategy:n})]},i)})).reduce((function(e,t){return null===e?[t]:[].concat(H()(e),[", ",t])}),null)},a=o(t.notCopiedRelations),i=o(t.notDeletedEntities);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(ne,{children:(0,G.jsx)(re,{onClick:r,look:"raised",ink:"primary",children:u||(u=(0,G.jsx)(Y.Z,{id:"client.merge.close"}))})}),(0,G.jsxs)(ce,{children:[s||(s=(0,G.jsxs)(ae,{children:[(0,G.jsx)(ue,{children:(0,G.jsx)(V.Z,{icon:"check"})}),(0,G.jsx)(q.ZP.P,{children:(0,G.jsx)(Y.Z,{id:"client.merge.summary.success"})})]})),(t.notCopiedRelations.length>0||t.notDeletedEntities.length>0)&&(l||(l=(0,G.jsx)(q.ZP.P,{children:(0,G.jsx)(Y.Z,{id:"client.merge.summary.successHint"})}))),t.notCopiedRelations.length>0&&(0,G.jsxs)(ie,{children:[f||(f=(0,G.jsxs)(q.ZP.P,{children:[(0,G.jsx)(Y.Z,{id:"client.merge.summary.notCopiedRelations"}),":"]})),(0,G.jsx)(q.ZP.B,{children:a})]}),t.notDeletedEntities.length>0&&(0,G.jsxs)(ie,{children:[p||(p=(0,G.jsxs)(q.ZP.P,{children:[(0,G.jsx)(Y.Z,{id:"client.merge.summary.notDeletedEntities"}),":"]})),(0,G.jsx)(q.ZP.B,{children:i})]}),t.showPermissionMessage&&(d||(d=(0,G.jsx)(q.ZP.P,{children:(0,G.jsx)(Y.Z,{id:"client.merge.summary.permission"})})))]})]})};var le={close:function(){return{type:R}}};const fe=(0,k.connect)((function(e){return{mergeResponse:e.merge.mergeResponse,navigationStrategy:e.input.navigationStrategy}}),le)((0,x.ZP)(se));var pe=i(35728),de=i(70696),he=i(71392),me="checked",ge="indeterminate",ve="unchecked";const ye=function(e){var t=e.value,n=e.id,r=e.onChange,o=e.label,a=(0,Z.useRef)(null);return(0,Z.useLayoutEffect)((function(){a.current.indeterminate=t===ge,a.current.checked=t===me}),[t]),(0,G.jsx)("input",{ref:a,onChange:function(e){r(t===ge?ve:e.target.checked?me:ve)},id:n,type:"checkbox","aria-checked":"checked"===t,"aria-label":o})};const be=function(e){var t,n=e.rowData,r=e.isSelected,o=e.selectionChange,a=e.selectionFilterFn,i=e.rowIdx;return"function"!=typeof a||a(n)?(0,G.jsx)("div",{onClick:function(e){e.shiftKey&&o(n.__key,!0,!0),e.stopPropagation()},"data-cy":"list-selection-checkbox",children:(0,G.jsx)(ye,{value:(t=n,r(t.__key)?"checked":"unchecked"),onChange:function(e){return function(t){return o(e.__key,"checked"===t)}}(n),label:"".concat(n.__model," ").concat(i+1),id:"list-selection-checkbox "+n.__key})}):null};const we=function(e){var t=e.data,n=e.isSelected,r=e.selectionChange,o=e.selectionFilterFn,a=t.filter((function(e){return"function"!=typeof o||o(e)})).map((function(e){return e.__key})),i=function(e,t){return e?"checked":t?"indeterminate":"unchecked"}(a.every((function(e){return n(e)})),a.some((function(e){return n(e)})));return 0===a.length?null:(0,G.jsx)(ye,{value:i,onChange:function(e){r(a,"checked"===e)}})};var Oe={SINGLE:"single",MULTI:"multi",NONE:"none"};y().oneOf(Object.keys(Oe).map((function(e){return Oe[e]})));const xe=function(e){var t=e.rowData,n=e.isSelected,r=e.selectionChange,o=e.selectionFilterFn;return"function"!=typeof o||o(t)?(0,G.jsx)("div",{onClick:function(e){return e.stopPropagation()},children:(0,G.jsx)("input",{type:"radio",checked:n(t.__key),onChange:function(e){r(t.__key,e.target.value)}})}):null};function ke(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 Se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pe=function(e,t,n){return{id:"single-selection",width:30,resizable:!1,fixedPosition:!0,dynamic:!0,sorting:{sortable:!1},HeaderRenderer:function(){return null},CellRenderer:function(r){return(0,G.jsx)(xe,Se(Se({},r),{},{isSelected:e,selectionChange:t,selectionFilterFn:n}))}}},je=function(e,t,n){return{id:"multi-selection",dynamic:!0,resizable:!1,fixedPosition:!0,width:30,sorting:{sortable:!1},HeaderRenderer:function(r){return(0,G.jsx)(we,Se(Se({},r),{},{isSelected:e,selectionChange:t,selectionFilterFn:n}))},CellRenderer:function(r){return(0,G.jsx)(be,Se(Se({},r),{},{isSelected:e,selectionChange:t,selectionFilterFn:n}))}}};const _e=function(e,t,n){var r=(0,Z.useState)(null),o=U()(r,2),a=o[0],i=o[1],c=(0,Z.useCallback)((function(t){return(e||[]).includes(t)}),[e]),u=(0,Z.useCallback)((function(e,r,o){if(Array.isArray(e))n(e,r),i(null);else if(o){document.getSelection&&document.getSelection().removeAllRanges();var u=a?t.findIndex((function(e){return e===a})):0,s=t.findIndex((function(t){return t===e}));n(t.slice(Math.min(u,s),Math.max(u,s)+1),r)}else n([e],r||!c(e)),i(e)}),[t,n,c,a]);return{isSelected:c,selectionChange:u}};var Ee,Ce,De,Te,Me,Re,Ie,Ne,Ae,Ze,Le,Fe,He,Be,Ue,We,ze,Ye,Ve,qe,Ge,Ke=i(27361),Xe=i.n(Ke),Qe=i(28926),$e=i(80470),Je=i(40493),et=i(30759),tt=function(e){var t=e.theme;return Xe()(t,"colors.border")},nt=te.Z.space(-1.5),rt=$.ZP.div.withConfig({displayName:"StyledTableFooter"})(Ee||(Ee=Q()(["\n grid-row-start: pagination-start;\n display: flex;\n flex-wrap: wrap;\n padding-top: ",";\n padding-bottom: ",";\n border-top: 1px solid ",";\n\n "," {\n margin-right: ",";\n }\n"])),te.Z.space(-.5),te.Z.space(-1),tt,Qe.Z,te.Z.space(-1)),ot=(0,$.ZP)($e.Z).withConfig({displayName:"StyledReloadButton"})(Ce||(Ce=Q()(["\n height: 25px;\n width: 25px;\n"]))),at=$.ZP.td.withConfig({displayName:"StyledTableCell"})(De||(De=Q()(["\n && {\n padding: ",";\n background-color: ",";\n border-bottom: 1px solid ",";\n align-content: center;\n box-sizing: content-box;\n text-align: ",";\n\n "," {\n display: inline-block;\n margin-right: ",";\n }\n }\n"])),nt,oe.FS.color("paper"),tt,(function(e){return e.alignment}),Je.q,te.Z.space(-2)),it=$.ZP.div.withConfig({displayName:"StyledDnD"})(Te||(Te=Q()(["\n padding: ",";\n width: 100%;\n opacity: ",";\n"])),nt,(function(e){return e.isDragged?.2:1})),ct=$.ZP.span.withConfig({displayName:"StyledResizeHandle"})(Me||(Me=Q()(["\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n background: ",";\n opacity: 0;\n width: 3px;\n cursor: col-resize;\n"])),(function(e){return e.theme.colors.backgroundItemSelected})),ut=$.ZP.th.withConfig({displayName:"StyledTableHeaderCell"})(Re||(Re=Q()(["\n && {\n position: sticky;\n top: 0;\n background-color: ",";\n text-align: ",";\n border-bottom: 2px solid ",";\n ",";\n user-select: none;\n cursor: ",";\n white-space: nowrap;\n display: flex;\n border-right: ",";\n padding: 1px; /* default th padding */\n z-index: 2; /* higher than StyledIndicatorsContainerWrapper */\n ",";\n ","\n ","\n ","\n }\n"])),oe.FS.color("paper"),(function(e){return e.alignment}),tt,(0,et.Z)({fontWeight:oe.FS.fontWeight("bold")}),(function(e){return e.isSortable?"pointer":"auto"}),(function(e){var t=e.isDraggedOver,n=e.theme;return t?"3px solid ".concat(n.colors.text):"none"}),(function(e){return"header-cell-navigation-column"===e.id&&"z-index: 1"}),(function(e){var t=e.isResizingThisCell,n=e.theme;return t&&"\n background-color: ".concat(n.colors.backgroundItemHover,";\n\n > ").concat(ct," {\n opacity: 1;\n }\n ")}),(function(e){var t=e.isResizingAnyCell,n=e.theme;return!t&&"\n &:hover {\n background-color: ".concat(n.colors.backgroundItemHover,";\n\n > ").concat(ct," {\n opacity: 1;\n }\n }\n ")}),(function(e){var t=e.isResizingThisCell,n=e.isSortable,r=e.fixedPosition,o=e.theme;return n?!t&&!n&&!r&&"\n &:hover {\n background-color: transparent;\n }\n ":"\n &:hover {\n background-color: ".concat(o.colors.paper,";\n }\n ")})),st=(0,$.iv)(Ie||(Ie=Q()(["\n display: contents;\n ","\n\n &.selected {\n > "," {\n background-color: ",";\n }\n }\n\n &.selectableRow:not(.selected):hover {\n > "," {\n background-color: ",";\n }\n }\n"])),(function(e){return e.clickable&&"cursor: pointer;"}),at,(function(e){return e.theme.colors.backgroundItemSelected}),at,(function(e){return e.theme.colors.backgroundItemHover})),lt=$.ZP.span.withConfig({displayName:"StyledSortingSpan"})(Ne||(Ne=Q()(["\n height: 100%;\n margin-right: 2px;\n"]))),ft=$.ZP.span.withConfig({displayName:"StyledSortingRank"})(Ae||(Ae=Q()(["\n position: relative;\n top: -0.5rem;\n font-weight: ",";\n"])),oe.FS.fontWeight("regular")),pt=$.ZP.td.withConfig({displayName:"StyledFullRowProgress"})(Ze||(Ze=Q()(["\n && {\n grid-column: 1 / -1;\n padding-top: "," 0 0 0;\n height: 50px;\n text-align: center;\n border: 0;\n }\n"])),nt),dt=$.ZP.td.withConfig({displayName:"StyledFullRow"})(Le||(Le=Q()(["\n && {\n grid-column: 1 / -1;\n padding-top: "," 0 0 0;\n height: 50px;\n text-align: center;\n border: 0;\n ",";\n }\n"])),nt,(0,et.Z)()),ht=$.ZP.thead.withConfig({displayName:"StyledTableHead"})(Fe||(Fe=Q()(["\n ","\n"])),st),mt=$.ZP.tr.withConfig({displayName:"StyledTableRow"})(He||(He=Q()(["\n ","\n\n &:nth-child(even) td {\n background-color: ",";\n }\n"])),st,(function(e){return e.theme.colors.backgroundTableEvenRow})),gt=$.ZP.tbody.withConfig({displayName:"StyledTableBody"})(Be||(Be=Q()(["\n ","\n"])),st),vt=$.ZP.table.withConfig({displayName:"StyledTable"})(Ue||(Ue=Q()(["\n overflow: auto;\n display: grid;\n border-collapse: collapse;\n grid-template-columns: ",";\n grid-auto-rows: min-content;\n min-width: 100%;\n ","\n"])),(function(e){return e.columns.map((function(e){return e.width?e.width+"px":e.shrinkToContent?"max-content":"minmax(100px, auto)"})).join(" ")}),(function(e){return e.scrollBehaviour===he.P.INLINE&&(0,$.iv)(We||(We=Q()(["\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n "])))})),yt=$.ZP.div.withConfig({displayName:"StretchingTableContainer"})(ze||(ze=Q()(["\n grid-row-start: table-start;\n position: relative;\n overflow-x: auto;\n"]))),bt=$.ZP.div.withConfig({displayName:"StyledTableWrapper"})(Ye||(Ye=Q()(["\n display: grid;\n background-color: ",";\n grid-template-rows: [table-start] 1fr [pagination-start] auto auto;\n grid-template-columns: 100%;\n height: 100%;\n\n // reset external styles in old client\n input[type='checkbox'],\n input[type='radio'] {\n margin: 3px 3px 3px 4px !important;\n min-width: 12px;\n }\n"])),oe.FS.color("paper")),wt=$.ZP.div.withConfig({displayName:"StyledDraggable"})(Ve||(Ve=Q()(["\n width: 100%;\n height: 100%;\n display: flex;\n"]))),Ot=$.ZP.span.withConfig({displayName:"StyledHeaderContentWrapper"})(qe||(qe=Q()(["\n display: flex;\n"]))),xt=$.ZP.div.withConfig({displayName:"StyledHeaderContent"})(Ge||(Ge=Q()(["\n width: 100%;\n"]))),kt=i(93235),St=y().oneOfType([y().string,y().number]),Pt=y().shape({__key:St}),jt=(y().arrayOf(Pt),y().shape({id:y().string.isRequired,label:y().string,sorting:y().shape({sortable:y().bool,sortRank:y().number,order:y().oneOf(["asc","desc"])}),resizable:y().bool,width:y().number,HeaderRenderer:y().elementType,CellRenderer:y().elementType,rightAligned:y().bool})),_t=L().memo((function(e){var t=e.column,n=e.rowData,r=e.rowIdx;return(0,G.jsx)(at,{"data-cy":"list-cell",alignment:t.alignment,children:t.CellRenderer?(0,G.jsx)(t.CellRenderer,{rowData:n,column:t,rowIdx:r}):(0,G.jsx)(q.ZP.Span,{children:n[t.id]})})}));_t.propTypes={rowData:Pt.isRequired,column:jt.isRequired,rowIdx:y().number};var Et=function(e,t){return!e.column.dynamic||0===Object.keys(de.Z.difference(e,t)).length};const Ct=L().memo(_t,Et);var Dt,Tt,Mt,Rt,It=function(){return Dt||(Dt=(0,G.jsx)(mt,{children:(0,G.jsxs)(pt,{children:[(0,G.jsx)(kt.Z,{size:"20"}),(0,G.jsx)(q.ZP.P,{children:(0,G.jsx)(Y.Z,{id:"client.component.table.dataLoading"})})]})}))},Nt=function(){return Tt||(Tt=(0,G.jsx)(mt,{children:(0,G.jsx)(dt,{children:(0,G.jsx)(q.ZP.Span,{children:(0,G.jsx)(Y.Z,{id:"client.component.table.noData"})})})}))};const At=function(e){var t=e.data,n=e.columns,r=e.isSelected,o=e.selectionChange,a=e.dataLoadingInProgress,i=e.onRowClick,c=e.clickable;return a?Mt||(Mt=(0,G.jsx)(gt,{children:(0,G.jsx)(It,{})})):(0,G.jsx)(gt,{children:t.length>0?t.map((function(e,t){return(0,G.jsx)(mt,{className:"selectableRow ".concat(r(e.__key)&&"selected"),onClick:(a=e,function(e){e.shiftKey?o(a.__key,!0,!0):e.metaKey||e.ctrlKey?o(a.__key):c&&i&&i(a.__key)}),clickable:c,"data-cy":"list-row",children:n.map((function(n){return(0,G.jsx)(Ct,{selected:r(e.__key),rowData:e,column:n,rowIdx:t},"table-static-cell-".concat(e.__key,"-").concat(n.id))}))},"list-row-".concat(e.__key));var a})):Rt||(Rt=(0,G.jsx)(Nt,{}))})};var Zt,Lt=i(58129);const Ft=$.ZP.div.withConfig({displayName:"StyledButtonGroup"})(Zt||(Zt=Q()(["\n display: flex;\n\n &&& > "," {\n :not(:first-child) {\n margin-left: -1px;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n\n :not(:last-child) {\n margin-right: 0;\n border-right: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n }\n"])),Lt.Z);var Ht=L().forwardRef((function(e,t){return(0,G.jsx)(Ft,{ref:t,children:e.children})}));Ht.propTypes={children:y().node};const Bt=Ht;var Ut,Wt,zt=$.ZP.div.withConfig({displayName:"StyledPagination"})(Ut||(Ut=Q()(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n flex-wrap: wrap;\n gap: ",";\n margin-left: ",";\n"])),te.Z.space(-1),te.Z.space(-1.4)),Yt=(0,$.ZP)(ee.Z).withConfig({displayName:"StyledPaginationButton"})(Wt||(Wt=Q()(["\n padding: "," ",";\n"])),te.Z.space(-2),te.Z.space(-.5));const Vt=(0,x.ZP)((function(e){var t=e.totalCount,n=e.recordsPerPage,r=e.currentPage,o=e.onPageChange,a=e.intl,i=e.tableEl,c=e.children,u=Math.ceil(t/n),s=Math.min((r-1)*n+1,t),l=Math.min(r*n,t),f=function(e){return a.formatMessage({id:e})},p=function(e){o(e),i.current.scrollTop=0};return(0,G.jsxs)(zt,{children:[(0,G.jsxs)(Bt,{children:[(0,G.jsx)(Yt,{disabled:1===r,label:f("client.component.pagination.firstPageTitle"),iconOnly:!0,icon:"chevron-double-left",onClick:function(){return p(1)}}),(0,G.jsx)(Yt,{disabled:1===r,label:f("client.component.pagination.prePageTitle"),iconOnly:!0,icon:"chevron-left",onClick:function(){return p(r-1)}}),(0,G.jsx)(Yt,{disabled:r>=u,label:f("client.component.pagination.nextPageTitle"),iconOnly:!0,icon:"chevron-right",onClick:function(){return p(r+1)}}),(0,G.jsx)(Yt,{disabled:r>=u,label:f("client.component.pagination.lastPageTitle"),iconOnly:!0,icon:"chevron-double-right",onClick:function(){return p(u)}})]}),t>0&&(0,G.jsx)(q.ZP.Span,{children:(0,G.jsx)(Y.Z,{id:"client.component.pagination.text",values:{start:s,to:l,total:t}})}),c]})}));const qt=(0,x.ZP)((function(e){var t,n=e.onPageChange,r=e.onPageRefresh,o=e.paginationInfo,a=e.intl,i=e.tableEl,c=Boolean(o),u="function"==typeof r;return c||u?(0,G.jsx)(rt,{children:c&&(0,G.jsx)(Vt,{onPageChange:n,currentPage:o.currentPage,totalCount:o.totalCount,recordsPerPage:o.recordsPerPage,tableEl:i,children:u&&(0,G.jsx)(ot,{type:"button",title:(t="client.component.table.refreshTitle",a.formatMessage({id:t})),icon:"sync",onClick:r})})}):null}));var Gt=i(18446),Kt=i.n(Gt);function Xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $t={currentlyDragging:null,currentlyDragOver:null,dropPosition:null,offset:null},Jt={Top:"Top",Bottom:"Bottom"};const en=function(e){var t=(0,Z.useState)($t),n=U()(t,2),r=n[0],o=n[1],a=r.currentlyDragging,i=r.currentlyDragOver,c=r.dropPosition,u=r.offset;return{dndEvents:(0,Z.useCallback)((function(t){return{onDragStart:function(e){o((function(e){return Qt(Qt({},e),{},{currentlyDragging:t})}));var n=e.target;n&&n.addEventListener("dragend",(function e(t){o($t),t.stopPropagation(),n&&n.removeEventListener("dragend",e)}),!1),e.stopPropagation()},onDragEnter:function(e){if(a&&!Kt()(i,t)){var n=e.target?e.target.getBoundingClientRect():{},r=n.y+n.height/2;o((function(e){return Qt(Qt({},e),{},{currentlyDragOver:t,offset:r})}))}e.stopPropagation()},onDragOver:function(e){if(a){var t=e.clientY-u>0?Jt.Bottom:Jt.Top;return o((function(e){return Qt(Qt({},e),{},{dropPosition:t})})),e.preventDefault(),e.stopPropagation(),!0}},onDrop:function(t){a&&i&&(e(a,i,c),o($t),t.stopPropagation())}}}),[i,a,c,u,e]),dndState:(0,Z.useMemo)((function(){return{currentlyDragOver:i,currentlyDragging:a,dropPosition:c,offset:u}}),[i,a,c,u])}};const tn=function(e,t,n){var r=t-e;return Math.max(50,n+r)},nn=function(e,t,n){var r=(0,Z.useState)(null),o=U()(r,2),a=o[0],i=o[1],c=(0,Z.useRef)(null),u=(0,Z.useRef)(),s=(0,Z.useState)(!1),l=U()(s,2),f=l[0],p=l[1],d=(0,Z.useState)(!1),h=U()(d,2),m=h[0],g=h[1],v=(0,Z.useMemo)((function(){return{resizingElement:a,isResizing:f}}),[a,f]),y=(0,Z.useCallback)((function(){a&&(n(a),g(!1),setTimeout((function(){p(!1),i(null),c.current=void 0}),0))}),[a,n]),b={onMouseMove:(0,Z.useCallback)((function(n){a&&m&&(u.current=requestAnimationFrame((function(){if(c.current){var r=e(a),o=tn(c.current.y,n.clientY,r.clientHeight),i=tn(c.current.x,n.clientX,r.clientWidth);t(a,{height:o,width:i})}c.current={y:n.clientY,x:n.clientX}})))}),[a,t,m,e]),onMouseUp:y};return(0,Z.useEffect)((function(){return m||cancelAnimationFrame(u.current),function(){cancelAnimationFrame(u.current)}}),[m]),{resizeState:v,startResize:function(e){return function(t){i(e),p(!0),g(!0),c.current=void 0,t.stopPropagation(),t.preventDefault()}},resizingEvents:b}};const rn=function(e){var t=e.column,n=e.startResize;return(0,G.jsx)(ct,{"data-cy":"header-cell-".concat(t.id,"-resizing-controller"),onMouseDown:n(t)})};const on=(0,x.ZP)((function(e){var t,n,r,o=e.column,a=e.intl,i=o.sorting&&o.sorting.sortRank&&o.sorting.order,c=(null===(t=o.sorting)||void 0===t?void 0:t.sortRank)>1&&(0,G.jsx)(ft,{children:o.sorting.sortRank}),u="sort-".concat("asc"===(null===(n=o.sorting)||void 0===n?void 0:n.order)?"up":"down");return i?(0,G.jsxs)(lt,{title:(r="client.component.table.sortingTitle",a.formatMessage({id:r})),children:[(0,G.jsx)(V.Z,{icon:u}),c]}):null}));function an(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 cn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?an(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):an(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var un=function(e){var t=e.column,n=e.data;return t.HeaderRenderer?(0,G.jsx)(t.HeaderRenderer,{column:t,data:n}):(0,G.jsxs)(Ot,{children:[(0,G.jsx)(xt,{title:t.label,dangerouslySetInnerHTML:{__html:t.label}}),(0,G.jsx)(on,{column:t})]})};const sn=function(e){var t=e.columns,n=e.data,r=e.onColumnPositionChange,o=e.onSortingChange,a=e.tableEl,i=e.onColumnWidthChanging,c=e.onColumnWidthChanged,u=en(r),s=u.dndEvents,l=u.dndState,f=(0,Z.useCallback)((function(e){return a.current.querySelector("th[id='header-cell-".concat(e.id,"']"))}),[]),p=(0,Z.useCallback)((function(e,t){var n=t.width;return i(e.id,n)}),[i]),d=(0,Z.useCallback)((function(e){return c(e.id)}),[c]),h=nn(f,p,d),m=h.startResize,g=h.resizingEvents,v=h.resizeState,y=v.isResizing,b=v.resizingElement,w=function(e){return function(t){var n;!y&&null!==(n=e.sorting)&&void 0!==n&&n.sortable&&o(e.id,t.shiftKey)}},O=t.map((function(e){var t="header-cell-".concat(e.id),r="header-cell-drop-".concat(e.id),o=e.sorting&&e.sorting.sortable,a=y&&e.id===(null==b?void 0:b.id),i=l.currentlyDragOver===e.id&&l.currentlyDragging!==e.id,c=l.currentlyDragging===e.id;return(0,G.jsxs)(ut,{"data-cy":t,id:t,onClick:w(e),isResizingAnyCell:y,isResizingThisCell:a,isSortable:o,isDraggedOver:i,alignment:e.alignment,children:[(0,G.jsx)(wt,cn(cn({id:r},!e.fixedPosition&&cn({draggable:!0},s(e.id))),{},{children:(0,G.jsx)(it,{isDragged:c,children:(0,G.jsx)(un,{column:e,data:n})})}),r),e.resizable&&(0,G.jsx)(rn,{column:e,startResize:m})]},t)}));return(0,G.jsx)(ht,cn(cn({},g),{},{children:(0,G.jsx)(mt,{children:O})}))};function ln(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 fn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ln(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ln(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pn=function(e){var t=e.columns,n=e.selection,r=e.data,o=e.onSelectionChange,a=e.selectionStyle,i=e.paginationInfo,c=e.onColumnPositionChange,u=e.onSortingChange,s=e.dataLoadingInProgress,l=e.onRowClick,f=e.clickable,p=e.onPageChange,d=e.onPageRefresh,h=e.scrollBehaviour,m=void 0===h?he.P.INLINE:h,g=e.onColumnWidthChange,v=e.selectionFilterFn,y=(0,Z.useState)(t),b=U()(y,2),w=b[0],O=b[1],x=(0,Z.useRef)(null),k=(0,Z.useCallback)((function(e){var t,n=null===(t=w.find((function(t){return t.id===e})))||void 0===t?void 0:t.width;g&&g(e,n)}),[w,g]),S=(0,Z.useCallback)((function(e,t){O(H()(w.map((function(n){return n.id===e?fn(fn({},n),{},{width:t}):n}))))}),[w]),P=(0,Z.useMemo)((function(){return r?r.map((function(e){return e.__key})):[]}),[r]),j=_e(n,P,o),_=j.isSelected,E=j.selectionChange;return(0,Z.useEffect)((function(){var e=function(e,t,n,r,o){return e&&e!==Oe.NONE?e===Oe.MULTI?je(n,r,o):Pe(n,r,o):null}(a,0,_,E,v);O([].concat(H()(e?[e]:[]),H()(t)))}),[t,n,_,E,v,a]),(0,G.jsxs)(bt,{children:[(0,G.jsx)(yt,{children:(0,G.jsxs)(vt,{ref:x,columns:w,scrollBehaviour:m,children:[(0,G.jsx)(sn,{columns:w,data:r,onColumnWidthChanging:S,onColumnWidthChanged:k,onColumnPositionChange:c,tableEl:x,onSortingChange:u}),(0,G.jsx)(At,{columns:w,data:r,isSelected:_,selectionChange:E,dataLoadingInProgress:s,onRowClick:l,clickable:f})]})}),(0,G.jsx)(qt,{onPageChange:p,onPageRefresh:d,paginationInfo:i,tableEl:x})]})},dn=function(e,t){return 0===Object.keys(de.Z.difference(e,t)).length};const hn=L().memo(pn,dn);function mn(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 gn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mn(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vn=function(e){return Object.keys(e.entities[0].paths)},yn=function(e){return H()(new Set(e.relations.map((function(e){return e.relationName}))))},bn=function(e){var t=Object.entries(e.entities[0].paths).filter((function(e){var t=U()(e,2);t[0];return"counter"===t[1].type})).map((function(e){var t=U()(e,2),n=t[0];t[1];return n})),n=function(e){return[].concat(H()(vn(e)),H()(yn(e)))}(e).filter((function(e){return!t.includes(e)})),r=function(t){return t.map((function(t){return{name:t,label:e.labels[t]}})).sort((function(e,t){return e.label<t.label?-1:1})).map((function(e){return e.name}))};return[].concat(H()(r(t)),H()(r(n)))},wn=function(e,t,n){var r="PK: ".concat(n),o=e.displays.find((function(e){return e.model===t}));if(void 0===o)return r;var a=o.values.find((function(e){return e.key===n}));return a?a.display:r};const On={fixLabel:function(){return!0}},xn={getOptions:function(e){var t=e.formData;return{trueLabel:t.intl.formatMessage({id:"client.common.yes"}),falseLabel:t.intl.formatMessage({id:"client.common.no"})}},hasValue:function(e){var t=e.value;return!0===t||!1===t}};var kn=function(e,t){return{entityModel:e.model,key:e.key,field:t}},Sn=function(e,t){if(e.implicitModelField&&t.formValues){var n=e.implicitModelField,r=n.indexOf(".");return r?function(e,t,n){var r=e.substring(0,t),o=e.substring(t+1),a=n.formValues[r];if(a){if(!Array.isArray(a))return kn(a,o);if(1===a.length)return kn(a[0],o)}return null}(n,r,t):t.formValues[n]}return e.implicitModel},Pn=function(e){if(e.implicitModelField){var t=e.implicitModelField,n=t.indexOf(".");return n?[t.substring(0,n)]:[t]}return[]};const jn={fixLabel:function(){return!0},getOptions:function(e){var t=e.formField,n=e.formData;return{mode:t.mode,implicitModel:Sn(t,n)}},dataContainerProps:function(e){var t=e.formField;return{formValues:{formName:e.formName,fields:Pn(t)}}}};var _n=function(e){if(!e||isNaN(e))return null;var t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return[t,(n>9?"":"0")+n,(r>9?"":"0")+r].join("-")};const En={getOptions:function(){return{datePickerOptions:{dateToValue:_n}}}},Cn={getOptions:function(e){var t=e.entityField;if("long"===(null==t?void 0:t.type))return{datePickerOptions:{valueToDate:function(e){var t=e?new Date(e):null;return isNaN(t)?null:t},dateToValue:function(e){return e?e.getTime():null}}}}},Dn={getOptions:function(e){var t=e.formField;return{postPointDigits:Xe()(t,"validation.decimalDigits.postPointDigits",null),prePointDigits:Xe()(t,"validation.decimalDigits.prePointDigits",null),minValue:Xe()(t,"validation.numberRange.fromIncluding",null),maxValue:Xe()(t,"validation.numberRange.toIncluding",null),allowNegative:!0}}};function Tn(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 Mn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tn(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Rn={getOptions:function(e){var t=e.formField,n=e.formName,r=e.formData;return Mn(Mn({upload:function(e){r.uploadDocument(n,t.id,e)}},r.chooseDocument?{choose:function(){return r.chooseDocument(r.setDocument,n,t.id)}}:{}),{},{uploadText:r.intl.formatMessage({id:"client.component.upload.upload"}),uploadingText:r.intl.formatMessage({id:"client.component.upload.uploading"}),downloadText:r.intl.formatMessage({id:"client.component.upload.downloadTitle"}),deleteText:r.intl.formatMessage({id:"client.component.upload.deleteTitle"})})},fixLabel:function(){return!0}};var In=function(e){return!e.validation||!e.validation.numberRange||"number"!=typeof e.validation.numberRange.fromIncluding||e.validation.numberRange.fromIncluding<0};const Nn={getOptions:function(e){var t=e.formField,n=e.formData;return{hoursLabel:n.intl.formatMessage({id:"client.component.duration.hoursLabel"}),minutesLabel:n.intl.formatMessage({id:"client.component.duration.minutesLabel"}),secondsLabel:n.intl.formatMessage({id:"client.component.duration.secondsLabel"}),allowNegative:In(t)}}};function An(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 Zn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?An(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):An(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ln={dataContainerProps:function(e){var t=e.formField,n=e.formName;return{locations:[t.id],formValues:{formName:n,fields:[t.id]}}},getValue:function(e){var t=e.formField,n=e.formData.formValues[t.id];return Zn(Zn({},n),null!=n&&n.distance?{}:{distance:10})},getOptions:function(e){var t=e.formField,n=e.formData;return{latitudeField:t.latitudeField,longitudeField:t.longitudeField,noResultsText:n.intl.formatMessage({id:"client.component.geosearch.noResultsText"}),emptySearchText:n.intl.formatMessage({id:"client.component.geosearch.emptySearchText"}),kmSuffixText:n.intl.formatMessage({id:"client.component.geosearch.km"}),suggestions:Xe()(n,["locations",t.id,"suggestions"],[]),isLoading:Xe()(n,["locations",t.id,"isLoading"],!1),fetchSuggestions:function(e,r){e?n.loadLocationsSuggestions(t.id,e,r,Xe()(t,"countries")):n.setLocationSuggestions(t.id,[])}}}};var Fn=function(e){if(!["email_editor","correspondence_editor"].includes(e))return{removeButtons:["Font","FontSize","TextColor"]}};const Hn={fixLabel:function(){return!0},getOptions:function(e){var t=e.formField;return{ckEditorConfig:Fn(t.htmlconfig)}}},Bn={getOptions:function(e){var t=e.formField;return{minValue:Xe()(t,"validation.numberRange.fromIncluding",null),maxValue:Xe()(t,"validation.numberRange.toIncluding",null)}}};var Un=i(50008),Wn=i.n(Un),zn=(i(2525),i(57557)),Yn=i.n(zn);i(54061);var Vn="--",qn=function(e){return e?e.replace(/\./g,Vn).replace(/\[/g,"=-=").replace(/\]/g,"=_="):e};function Gn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gn(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Xn={hasValue:function(e){var t=e.formValues,n=e.formField.locationMapping;return!(!t[qn(n.city)]&&!t[qn(n.postcode)])},getValue:function(e){var t=e.formField,n=e.formData,r=t.locationMapping;return{postcode:n.formValues[qn(r.postcode)],city:n.formValues[qn(r.city)]}},getEvents:function(e){var t=e.formField,n=e.formName,r=e.formData,o=e.events,a=t.locationMapping||{};return Kn(Kn({},o),{},{onChange:function(e){for(var o in a)if(a[o]&&void 0!==e[o]){var i=null!==e[o]?e[o]:"";r.changeFieldValue(n,a[o],i)}var c=e.postcode,u=e.city;r.changeFieldValue(n,t.id,Kn(Kn({},void 0!==c?{postcode:c||""}:{}),void 0!==u?{city:u||""}:{}))},onBlur:function(){r.touchField(n,t.id)}})},dataContainerProps:function(e){var t=e.formField,n=e.formName;return{locations:[t.id],formValues:{formName:n,fields:t.locationMapping?Object.values(t.locationMapping).map((function(e){return qn(e)})):{}}}},getOptions:function(e){var t=e.formField,n=e.formData;return{fetchSuggestions:function(e,r){return n.loadLocationsSuggestions(t.id,e,r,Xe()(t,"countries"))},isLoading:Xe()(n,["locations",t.id,"isLoading"],!1),suggestions:Xe()(n,["locations",t.id,"suggestions"],null),mapButtonTitle:n.intl.formatMessage({id:"client.component.location.mapButtonTitle"}),locationValues:Object.keys(t.locationMapping||{}).reduce((function(e,r){return Kn(Kn({},e),{},g()({},r,n.formValues[qn(t.locationMapping[r])]))}),{})}},getMandatoryValidation:function(e){var t,n,r=e.formField,o=r.locationMapping,a=null===(t=r.siblings.find((function(e){return e.id===o.city})))||void 0===t?void 0:t.validation,i=null===(n=r.siblings.find((function(e){return e.id===o.postcode})))||void 0===n?void 0:n.validation;return(null==a?void 0:a.mandatory)||(null==i?void 0:i.mandatory)}},Qn={getOptions:function(e){var t=e.formField;return{postPointDigits:Xe()(t,"validation.decimalDigits.postPointDigits",2),prePointDigits:Xe()(t,"validation.decimalDigits.prePointDigits",null),minValue:Xe()(t,"validation.numberRange.fromIncluding",null),maxValue:Xe()(t,"validation.numberRange.toIncluding",null),allowNegative:!0,fixedDecimalScale:!0}}},$n={getOptions:function(e){var t=e.formField;return{prePointDigits:Xe()(t,"validation.decimalDigits.prePointDigits",null),postPointDigits:Xe()(t,"validation.decimalDigits.postPointDigits",null),minValue:Xe()(t,"validation.numberRange.fromIncluding",null),maxValue:Xe()(t,"validation.numberRange.toIncluding",null),allowNegative:!0}}},Jn={getOptions:function(e){var t=e.formField;return{prePointDigits:Xe()(t,"validation.decimalDigits.prePointDigits",null),postPointDigits:Xe()(t,"validation.decimalDigits.postPointDigits",null),minValue:Xe()(t,"validation.numberRange.fromIncluding",null),maxValue:Xe()(t,"validation.numberRange.toIncluding",null),allowNegative:!1,suffix:"%"}}},er={getOptions:function(e){var t=e.formField;return{customPhoneRegex:Xe()(t,"validation.phone.customRegex",null),defaultCountry:Xe()(t,"validation.phone.defaultRegion",null)}}};var tr=i(6479),nr=i.n(tr),rr=["entityKey","children"];function or(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 ar(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?or(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):or(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ir=50,cr=10,ur=function(e){return e.filter(Boolean).join(" and ")},sr=function(e){return e&&Array.isArray(e)&&0!==e.length?"not KEYS(".concat(e.map((function(e){return e.key})).join(", "),")"):void 0};const lr={dataContainerProps:function(e){var t=e.formField;return{relationEntities:[t.id],tooltips:[t.targetEntity],navigationStrategy:!0}},getOptions:function(e){var t=e.formField,n=e.formName,r=e.formData;return{options:Xe()(r,["relationEntities",t.id,"data"],[]),moreOptionsAvailable:Xe()(r,["relationEntities",t.id,"moreEntitiesAvailable"],!1),isLoading:Xe()(r,["relationEntities",t.id,"isLoading"],!1),fetchOptions:function(e){r.loadRelationEntities(t.id,t.targetEntity,{forceReload:!0,limit:cr,formBase:t.formBase,formName:t.formName,where:ur([t.condition,sr(e)]),loadRemoteFieldConfiguration:!0,constriction:t.constriction})},searchOptions:function(e,n){r.loadRelationEntities(t.id,t.targetEntity,{searchTerm:e,limit:ir,forceReload:!0,formBase:t.formBase,formName:t.formName,where:ur([t.condition,sr(n)]),loadRemoteFieldConfiguration:!0,constriction:t.constriction})},openDocsTreeSearch:t.displayDocsTree?function(e){return r.openDocsTreeSearch(n,t,e)}:void 0,openAdvancedSearch:!1===t.displayAdvancedSearch?void 0:function(e,o){return r.openAdvancedSearch(n,t,e,o)},tooltips:Xe()(r.tooltips,t.targetEntity,null),loadTooltip:function(e){return r.loadTooltip(t.targetEntity,e)},noResultsText:r.intl.formatMessage({id:"client.component.remoteselect.noResultsText"}),moreOptionsAvailableText:r.intl.formatMessage({id:"client.component.remoteselect.moreOptionsAvailableText"}),DetailLink:r.navigationStrategy&&r.navigationStrategy.DetailLink?function(e){var n=e.entityKey,o=e.children,a=nr()(e,rr);return(0,G.jsx)(r.navigationStrategy.DetailLink,ar(ar({entityName:t.targetEntity,entityKey:n},a),{},{children:o}))}:null,createPermission:t.relationName&&Xe()(r,["entityModel","paths",t.relationName,"createPermission"],!1)&&Xe()(r,["entityModel","paths",t.relationName,"useRemoteFieldNewButton"],!0)&&Xe()(t,"displayCreateButton",!0),openRemoteCreate:function(e){return r.openRemoteCreate(t,n,e)}}}},fr={dataContainerProps:function(e){var t=e.formField;return{relationEntities:[t.id],tooltips:[t.targetEntity]}},getOptions:function(e){var t=e.formField,n=e.formData;return{options:Xe()(n,["relationEntities",t.id,"data"],[]),isLoading:Xe()(n,["relationEntities",t.id,"isLoading"],!1),tooltips:Xe()(n.tooltips,t.targetEntity,null),loadTooltip:function(e){return n.loadTooltip(t.targetEntity,e)},noResultsText:n.intl.formatMessage({id:"client.component.remoteselect.noResultsText"}),fetchOptions:function(){return n.loadRelationEntities(t.id,t.targetEntity,{forceReload:!1,constriction:t.constriction,where:t.condition})}}}};function pr(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 dr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pr(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var hr={binary:Rn,boolean:On,choice:{hasValue:function(e){return e.value.options.filter((function(e){return e.checked})).length>0},getOptions:function(e){var t=e.formField;return{selectionType:t.selectionType,renderHtmlInOptions:t.renderHtmlInOptions}}},code:jn,counter:$n,"data-amount":$n,datetime:Cn,date:En,birthdate:En,"pulldown-date":En,decimal:Dn,document:Rn,double:Dn,duration:Nn,geosearch:Ln,html:Hn,image:Rn,integer:Bn,location:Xn,long:Bn,moneyamount:Qn,marking:On,"multi-remote-field":lr,"multi-select-box":fr,"named-upload":Rn,number:$n,phone:er,"pseudo-select":{hasValue:function(e){return e.value.options.filter((function(e){return e.selected})).length>0},getOptions:function(e){return{isMulti:e.formField.isMulti}}},"search-filter":{dataContainerProps:function(e){return{searchFilters:[e.formField.model]}},getOptions:function(e){var t=e.formField,n=e.formData;return{isMulti:t.multiple,options:Xe()(n.searchFilters,t.model,null),fetchOptions:function(){return n.loadSearchFilters(t.model,t.group)},noResultsText:n.intl.formatMessage({id:"client.component.searchfilter.noResultsText"})}}},"single-remote-field":lr,"single-select-box":fr,sorting:$n,percent:Jn},mr=dr({},hr);const gr={editable:hr,readOnly:dr({},hr),list:mr,search:dr(dr({},hr),{},{boolean:xn,marking:xn})};var vr=i(44759),yr=i(41609),br=i.n(yr),wr=i(14293),Or=i.n(wr),xr=i(23493),kr=i.n(xr),Sr=i(33417),Pr=i(1972),jr=i(32924),_r=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];var Er=i(2717);function Cr(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 Dr(e,t){return(Dr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Tr(e){return(Tr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Mr=i(62360);function Rr(e,t){if(t&&("object"===(0,Mr.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 Ir(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=Tr(e);if(t){var o=Tr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Rr(this,n)}}var Nr=i(31599);var Ar=i(78001);function Zr(e){return function(e){if(Array.isArray(e))return(0,Nr.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,Ar.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 Lr=i(29382),Fr=i(1537),Hr=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Br(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||Hr(r)&&Hr(o)))return!1;var r,o;return!0}for(var Ur={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"},Wr=function(e){return(0,Fr.tZ)("span",(0,Er.Z)({css:Ur},e))},zr={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,u=e.isSelected,s=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(s(i,n),".");if("menu"===t){var l=c?" disabled":"",f="".concat(u?"selected":"focused").concat(l);return"option ".concat(a," ").concat(f,", ").concat(s(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Yr=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,a=e.isFocused,i=e.selectValue,c=e.selectProps,u=e.id,s=c.ariaLiveMessages,l=c.getOptionLabel,f=c.inputValue,p=c.isMulti,d=c.isOptionDisabled,h=c.isSearchable,m=c.menuIsOpen,g=c.options,v=c.screenReaderStatus,y=c.tabSelectsValue,b=c["aria-label"],w=c["aria-live"],O=(0,Z.useMemo)((function(){return(0,Sr.Z)((0,Sr.Z)({},zr),s||{})}),[s]),x=(0,Z.useMemo)((function(){var e,n="";if(t&&O.onChange){var r=t.option,o=t.options,a=t.removedValue,c=t.removedValues,u=t.value,s=a||r||(e=u,Array.isArray(e)?null:e),f=s?l(s):"",p=o||c||void 0,h=p?p.map(l):[],m=(0,Sr.Z)({isDisabled:s&&d(s,i),label:f,labels:h},t);n=O.onChange(m)}return n}),[t,O,d,i,l]),k=(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]),S=(0,Z.useMemo)((function(){var e="";if(m&&g.length&&O.onFilter){var t=v({count:o.length});e=O.onFilter({inputValue:f,resultsMessage:t})}return e}),[o,f,m,O,g,v]),P=(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:p,isSearchable:h,tabSelectsValue:y})}return e}),[b,n,r,p,d,h,m,O,i,y]),j="".concat(k," ").concat(S," ").concat(P),_=(0,Fr.tZ)(Z.Fragment,null,(0,Fr.tZ)("span",{id:"aria-selection"},x),(0,Fr.tZ)("span",{id:"aria-context"},j)),E="initial-input-focus"===(null==t?void 0:t.action);return(0,Fr.tZ)(Z.Fragment,null,(0,Fr.tZ)(Wr,{id:u},E&&_),(0,Fr.tZ)(Wr,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},a&&!E&&_))},Vr=[{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źẑżžẓẕƶȥɀⱬꝣ"}],qr=new RegExp("["+Vr.map((function(e){return e.letters})).join("")+"]","g"),Gr={},Kr=0;Kr<Vr.length;Kr++)for(var Xr=Vr[Kr],Qr=0;Qr<Xr.letters.length;Qr++)Gr[Xr.letters[Qr]]=Xr.base;var $r=function(e){return e.replace(qr,(function(e){return Gr[e]}))},Jr=function(e,t){void 0===t&&(t=Br);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}($r),eo=function(e){return e.replace(/^\s+|\s+$/g,"")},to=function(e){return"".concat(e.label," ").concat(e.value)},no=["innerRef"];function ro(e){var t=e.innerRef,n=(0,jr.Z)(e,no),r=(0,Lr.r)(n,"onExited","in","enter","exit","appear");return(0,Fr.tZ)("input",(0,Er.Z)({ref:t},r,{css:(0,Fr.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 oo=["boxSizing","height","overflow","paddingRight","position"],ao={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function io(e){e.preventDefault()}function co(e){e.stopPropagation()}function uo(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function so(){return"ontouchstart"in window||navigator.maxTouchPoints}var lo=!("undefined"==typeof window||!window.document||!window.document.createElement),fo=0,po={capture:!1,passive:!1};var ho=function(){return document.activeElement&&document.activeElement.blur()},mo={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function go(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),u=(0,Z.useRef)(0),s=(0,Z.useRef)(null),l=(0,Z.useCallback)((function(e,t){if(null!==s.current){var u=s.current,l=u.scrollTop,f=u.scrollHeight,p=u.clientHeight,d=s.current,h=t>0,m=f-p-l,g=!1;m>t&&i.current&&(r&&r(e),i.current=!1),h&&c.current&&(a&&a(e),c.current=!1),h&&t>m?(n&&!i.current&&n(e),d.scrollTop=f,g=!0,i.current=!0):!h&&-t>l&&(o&&!c.current&&o(e),d.scrollTop=0,g=!0,c.current=!0),g&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,o,a]),f=(0,Z.useCallback)((function(e){l(e,e.deltaY)}),[l]),p=(0,Z.useCallback)((function(e){u.current=e.changedTouches[0].clientY}),[]),d=(0,Z.useCallback)((function(e){var t=u.current-e.changedTouches[0].clientY;l(e,t)}),[l]),h=(0,Z.useCallback)((function(e){if(e){var t=!!Lr.s&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",d,t)}}),[d,p,f]),m=(0,Z.useCallback)((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",d,!1))}),[d,p,f]);return(0,Z.useEffect)((function(){if(t){var e=s.current;return h(e),function(){m(e)}}}),[t,h,m]),function(e){s.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(lo){var t=document.body,n=t&&t.style;if(r&&oo.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&fo<1){var a=parseInt(o.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,c=window.innerWidth-i+a||0;Object.keys(ao).forEach((function(e){var t=ao[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(c,"px"))}t&&so()&&(t.addEventListener("touchmove",io,po),e&&(e.addEventListener("touchstart",uo,po),e.addEventListener("touchmove",co,po))),fo+=1}}),[r]),c=(0,Z.useCallback)((function(e){if(lo){var t=document.body,n=t&&t.style;fo=Math.max(fo-1,0),r&&fo<1&&oo.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&so()&&(t.removeEventListener("touchmove",io,po),e&&(e.removeEventListener("touchstart",uo,po),e.removeEventListener("touchmove",co,po)))}}),[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,Fr.tZ)(Z.Fragment,null,n&&(0,Fr.tZ)("div",{onClick:ho,css:mo}),t((function(e){o(e),a(e)})))}var vo={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},yo=function(e){var t=e.name,n=e.onFocus;return(0,Fr.tZ)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:vo,value:"",onChange:function(){}})},bo={clearIndicator:Lr.a,container:Lr.b,control:Lr.d,dropdownIndicator:Lr.e,group:Lr.g,groupHeading:Lr.f,indicatorsContainer:Lr.i,indicatorSeparator:Lr.h,input:Lr.j,loadingIndicator:Lr.l,loadingMessage:Lr.k,menu:Lr.m,menuList:Lr.n,menuPortal:Lr.o,multiValue:Lr.p,multiValueLabel:Lr.q,multiValueRemove:Lr.t,noOptionsMessage:Lr.u,option:Lr.v,placeholder:Lr.w,singleValue:Lr.x,valueContainer:Lr.y};var wo,Oo={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}},xo={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,Lr.z)(),captureMenuScroll:!(0,Lr.z)(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,Sr.Z)({ignoreCase:!0,ignoreAccents:!0,stringify:to,trim:!0,matchFrom:"any"},wo),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,c=n.matchFrom,u=i?eo(t):t,s=i?eo(a(e)):a(e);return r&&(u=u.toLowerCase(),s=s.toLowerCase()),o&&(u=Jr(u),s=$r(s)),"start"===c?s.substr(0,u.length)===u:s.indexOf(u)>-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,Lr.A)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function ko(e,t,n,r){return{type:"option",data:t,isDisabled:Co(e,t,n),isSelected:Do(e,t,n),label:_o(e,t),value:Eo(e,t),index:r}}function So(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return ko(e,n,t,r)})).filter((function(t){return jo(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=ko(e,n,t,r);return jo(e,a)?a:void 0})).filter(Lr.K)}function Po(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Zr(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function jo(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,c=t.value;return(!Mo(e)||!a)&&To(e,{label:i,value:c,data:o},r)}var _o=function(e,t){return e.getOptionLabel(t)},Eo=function(e,t){return e.getOptionValue(t)};function Co(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Do(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Eo(e,t);return n.some((function(t){return Eo(e,t)===r}))}function To(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Mo=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Ro=1,Io=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&&Dr(e,t)}(a,e);var t,n,r,o=Ir(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),u=t.isOptionDisabled(e,i);if(c){var s=t.getOptionValue(e);t.setValue((0,Lr.B)(i.filter((function(e){return t.getOptionValue(e)!==s}))),"deselect-option",e)}else{if(u)return void t.ariaOnChange((0,Lr.C)(e),{action:"select-option",option:e,name:a});o?t.setValue((0,Lr.B)([].concat(Zr(i),[e])),"select-option",e):t.setValue((0,Lr.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,Lr.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,Lr.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,Lr.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 Lr.E.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return _o(t.props,e)},t.getOptionValue=function(e){return Eo(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=bo[e](n,r);o.boxSizing="border-box";var a=t.props.styles[e];return a?a(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){return(0,Lr.F)(t.props)},t.buildCategorizedOptions=function(){return So(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Po(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:(0,Sr.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,Lr.G)(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),a=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||a>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return Mo(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,u=n.isDisabled,s=n.menuIsOpen,l=n.onKeyDown,f=n.tabSelectsValue,p=n.openMenuOnFocus,d=t.state,h=d.focusedOption,m=d.focusedValue,g=d.selectValue;if(!(u||"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||!s||!f||!h||p&&t.isOptionSelected(h,g))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(s){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":s?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:i}),t.onMenuClose()):c&&a&&t.clearValue();break;case" ":if(i)return;if(!s){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":s?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":s?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!s)return;t.focusOption("pageup");break;case"PageDown":if(!s)return;t.focusOption("pagedown");break;case"Home":if(!s)return;t.focusOption("first");break;case"End":if(!s)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++Ro),t.state.selectValue=(0,Lr.H)(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.buildFocusableOptions(),r=n.indexOf(t.state.selectValue[0]);t.state.focusedOption=n[r]}return t}return t=a,r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,i=t.isFocused,c=t.prevWasFocused,u=e.options,s=e.value,l=e.menuIsOpen,f=e.inputValue,p=e.isMulti,d=(0,Lr.H)(s),h={};if(n&&(s!==n.value||u!==n.options||l!==n.menuIsOpen||f!==n.inputValue)){var m=l?function(e,t){return Po(So(e,t))}(e,d):[],g=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,d):null;h={selectValue:d,focusedOption:function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,m),focusedValue:g,clearFocusValueOnUpdate:!1}}var v=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},y=a,b=i&&c;return i&&!b&&(y={value:(0,Lr.D)(p,d,d[0]||null),options:d,action:"initial-input-focus"},b=!c),"initial-input-focus"===(null==a?void 0:a.action)&&(y=null),(0,Sr.Z)((0,Sr.Z)((0,Sr.Z)({},h),v),{},{prevProps:e,ariaSelection:y,prevWasFocused:b})}}],(n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&(0,Lr.I)(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&((0,Lr.I)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildFocusableOptions(),i="first"===e?0:a.length-1;if(!this.props.isMulti){var c=a.indexOf(r[0]);c>-1&&(i=c)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[i]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var a=n.length-1,i=-1;if(n.length){switch(e){case"previous":i=0===o?0:-1===o?a:o-1;break;case"next":o>-1&&o<a&&(i=o+1)}this.setState({inputIsHidden:-1!==i,focusedValue:n[i]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,a=r.indexOf(n);n||(a=-1),"up"===e?o=a>0?a-1:r.length-1:"down"===e?o=(a+1)%r.length:"pageup"===e?(o=a-t)<0&&(o=0):"pagedown"===e?(o=a+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Oo):(0,Sr.Z)((0,Sr.Z)({},Oo),this.props.theme):Oo}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,a=this.selectOption,i=this.setValue,c=this.props,u=c.isMulti,s=c.isRtl,l=c.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:u,isRtl:s,options:l,selectOption:a,selectProps:c,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Co(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Do(this.props,e,t)}},{key:"filterOption",value:function(e,t){return To(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,u=e.required,s=this.getComponents().Input,l=this.state,f=l.inputIsHidden,p=l.ariaSelection,d=this.commonProps,h=r||this.getElementId("input"),m=(0,Sr.Z)((0,Sr.Z)((0,Sr.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":u,role:"combobox"},c&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?Z.createElement(s,(0,Er.Z)({},d,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:f,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:i,type:"text",value:o},m)):Z.createElement(ro,(0,Er.Z)({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Lr.J,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:i,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,i=t.SingleValue,c=t.Placeholder,u=this.commonProps,s=this.props,l=s.controlShouldRenderValue,f=s.isDisabled,p=s.isMulti,d=s.inputValue,h=s.placeholder,m=this.state,g=m.selectValue,v=m.focusedValue,y=m.isFocused;if(!this.hasValue()||!l)return d?null:Z.createElement(c,(0,Er.Z)({},u,{key:"placeholder",isDisabled:f,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(p)return g.map((function(t,i){var c=t===v,s="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return Z.createElement(n,(0,Er.Z)({},u,{components:{Container:r,Label:o,Remove:a},isFocused:c,isDisabled:f,key:s,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,Er.Z)({},u,{data:b,isDisabled:f}),this.formatOptionLabel(b,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var i={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return Z.createElement(e,(0,Er.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,Er.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,Er.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,Er.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,u=t.NoOptionsMessage,s=t.Option,l=this.commonProps,f=this.state.focusedOption,p=this.props,d=p.captureMenuScroll,h=p.inputValue,m=p.isLoading,g=p.loadingMessage,v=p.minMenuHeight,y=p.maxMenuHeight,b=p.menuIsOpen,w=p.menuPlacement,O=p.menuPosition,x=p.menuPortalTarget,k=p.menuShouldBlockScroll,S=p.menuShouldScrollIntoView,P=p.noOptionsMessage,j=p.onMenuScrollToTop,_=p.onMenuScrollToBottom;if(!b)return null;var E,C=function(t,n){var r=t.type,o=t.data,a=t.isDisabled,i=t.isSelected,c=t.label,u=t.value,p=f===o,d=a?void 0:function(){return e.onOptionHover(o)},h=a?void 0:function(){return e.selectOption(o)},m="".concat(e.getElementId("option"),"-").concat(n),g={id:m,onClick:h,onMouseMove:d,onMouseOver:d,tabIndex:-1};return Z.createElement(s,(0,Er.Z)({},l,{innerProps:g,data:o,isDisabled:a,isSelected:i,key:m,label:c,type:r,value:u,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())E=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),u="".concat(c,"-heading");return Z.createElement(n,(0,Er.Z)({},l,{key:c,data:o,options:a,Heading:r,headingProps:{id:u,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return C(e,"".concat(i,"-").concat(e.index))})))}if("option"===t.type)return C(t,"".concat(t.index))}));else if(m){var D=g({inputValue:h});if(null===D)return null;E=Z.createElement(c,l,D)}else{var T=P({inputValue:h});if(null===T)return null;E=Z.createElement(u,l,T)}var M={minMenuHeight:v,maxMenuHeight:y,menuPlacement:w,menuPosition:O,menuShouldScrollIntoView:S},R=Z.createElement(Lr.M,(0,Er.Z)({},l,M),(function(t){var n=t.ref,r=t.placerProps,i=r.placement,c=r.maxHeight;return Z.createElement(o,(0,Er.Z)({},l,M,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:m,placement:i}),Z.createElement(go,{captureEnabled:d,onTopArrive:j,onBottomArrive:_,lockEnabled:k},(function(t){return Z.createElement(a,(0,Er.Z)({},l,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:m,maxHeight:c,focusedOption:f}),E)})))}));return x||"fixed"===O?Z.createElement(i,(0,Er.Z)({},l,{appendTo:x,controlElement:this.controlRef,menuPlacement:w,menuPosition:O}),R):R}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,a=t.name,i=t.required,c=this.state.selectValue;if(i&&!this.hasValue()&&!r)return Z.createElement(yo,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(o){if(n){var u=c.map((function(t){return e.getOptionValue(t)})).join(n);return Z.createElement("input",{name:a,type:"hidden",value:u})}var s=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,s)}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(Yr,(0,Er.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,u=a.isDisabled,s=a.menuIsOpen,l=this.state.isFocused,f=this.commonProps=this.getCommonProps();return Z.createElement(r,(0,Er.Z)({},f,{className:i,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:l}),this.renderLiveRegion(),Z.createElement(t,(0,Er.Z)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:l,menuIsOpen:s}),Z.createElement(o,(0,Er.Z)({},f,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),Z.createElement(n,(0,Er.Z)({},f,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}])&&Cr(t.prototype,n),r&&Cr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(Z.Component);Io.defaultProps=xo;i(66751),i(30314),i(73469);var No=(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,u=e.menuIsOpen,s=e.onChange,l=e.onInputChange,f=e.onMenuClose,p=e.onMenuOpen,d=e.value,h=(0,jr.Z)(e,_r),m=(0,Z.useState)(void 0!==c?c:n),g=(0,Pr.Z)(m,2),v=g[0],y=g[1],b=(0,Z.useState)(void 0!==u?u:o),w=(0,Pr.Z)(b,2),O=w[0],x=w[1],k=(0,Z.useState)(void 0!==d?d:i),S=(0,Pr.Z)(k,2),P=S[0],j=S[1],_=(0,Z.useCallback)((function(e,t){"function"==typeof s&&s(e,t),j(e)}),[s]),E=(0,Z.useCallback)((function(e,t){var n;"function"==typeof l&&(n=l(e,t)),y(void 0!==n?n:e)}),[l]),C=(0,Z.useCallback)((function(){"function"==typeof p&&p(),x(!0)}),[p]),D=(0,Z.useCallback)((function(){"function"==typeof f&&f(),x(!1)}),[f]),T=void 0!==c?c:v,M=void 0!==u?u:O,R=void 0!==d?d:P;return(0,Sr.Z)((0,Sr.Z)({},h),{},{inputValue:T,menuIsOpen:M,onChange:_,onInputChange:E,onMenuClose:D,onMenuOpen:C,value:R})}(e);return Z.createElement(Io,(0,Er.Z)({ref:t},n))}));function Ao(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 Zo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ao(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ao(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Lo=(0,x.ZP)((function(e){var t;return(0,G.jsx)("span",Zo(Zo({},e.innerProps),{},{children:(0,G.jsx)($e.Z,{icon:"times",tabIndex:-1,"aria-label":(t="client.component.select.clearFieldLabel",e.intl.formatMessage({id:t}))})}))}));var Fo=i(95497);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 Bo(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){g()(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}const Uo=function(e){var t=e.selectProps,n=t.isDisabled,r=t.menuIsOpen;return n?null:(0,G.jsx)(Lr.c.DropdownIndicator,Bo(Bo({},e),{},{children:(0,G.jsx)(Fo.M6,{children:(0,G.jsx)($e.Z,{icon:r?"chevron-up":"chevron-down",visible:!0,tabIndex:-1})})}))};var Wo,zo,Yo;function Vo(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 qo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vo(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Go=function(e,t,n){return function(r){r.stopPropagation(),e(t,n)}},Ko=function(e,t){return function(n){n.stopPropagation(),e(t)}},Xo=function(e,t){return function(n){n.stopPropagation(),e(t)}},Qo=function(e){e.stopPropagation()};const $o=function(e){var t=e.selectProps,n=t.openDocsTreeSearch,r=t.openAdvancedSearch,o=t.openRemoteCreate,a=t.isDisabled,i=t.hasDocsTreeSearch,c=t.hasAdvancedSearch,u=t.createPermission,s=t.value,l=t.isMulti,f=t.inputValue,p=l&&(c||i);return(0,G.jsx)(Fo.HO,{isTopAligned:p,children:(0,G.jsxs)(Lr.c.IndicatorsContainer,qo(qo({},e),{},{children:[e.children,n&&!a&&(0,G.jsx)("span",{onTouchEnd:Qo,onMouseDown:Ko(n,s),children:Wo||(Wo=(0,G.jsx)($e.Z,{icon:"folder",tabIndex:-1}))}),r&&!a&&(0,G.jsx)("span",{onTouchEnd:Qo,onMouseDown:Go(r,f,s),children:zo||(zo=(0,G.jsx)($e.Z,{icon:"search",tabIndex:-1}))}),u&&!a&&(0,G.jsx)("span",{onTouchEnd:Qo,onMouseDown:Xo(o,s),children:Yo||(Yo=(0,G.jsx)($e.Z,{icon:"plus",tabIndex:-1}))})]}))})};var Jo;const ea=function(){return Jo||(Jo=(0,G.jsx)("span",{children:(0,G.jsx)(kt.Z,{size:"1.8rem"})}))};var ta=i(15315);function na(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ra(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?na(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):na(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const oa=function(e){var t=e.selectProps,n=e.children;return(0,G.jsx)(Fo._M,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"window",attachment:"together"}],renderTarget:function(e){return(0,G.jsx)("div",{ref:e})},renderElement:function(r){return(0,G.jsx)("div",{ref:r,className:ta.c,children:(0,G.jsx)(Fo.l2,ra(ra({},Yn()(e,["innerRef"])),{},{wrapperWidth:t.wrapperWidth,wrapperHeight:t.wrapperHeight,children:n}))})}})};function aa(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 ia(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aa(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ca=function(e){var t=e.selectProps,n=e.children,r=t.moreOptionsAvailable,o=t.moreOptionsAvailableText;return(0,G.jsxs)(Lr.c.MenuList,ia(ia({},e),{},{className:"MenuList",children:[n,r&&(0,G.jsx)(Fo.OA,{children:o})]}))};var ua=i(10535),sa=i(76791);function la(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 fa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?la(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):la(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const pa=function(e){var t=e.data,n=e.innerProps,r=e.children,o=e.selectProps,a=o.tooltips,i=o.loadTooltip,c=o.DetailLink,u=Xe()(a,t.key,null),s=(0,G.jsx)("span",fa(fa({},n),{},{children:r})),l=c?(0,G.jsx)(Fo.vR,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,G.jsx)(c,{entityKey:t.key,tabIndex:-1,children:(0,G.jsx)(sa.Z,{content:u?(0,G.jsx)("div",{dangerouslySetInnerHTML:{__html:ua.Z.sanitizeHtml(u)}}):null,children:(0,G.jsx)("span",{onMouseOver:function(){return i&&!u&&i(t.key)},children:s})})})}):s;return(0,G.jsx)(Fo.B1,{children:l})};var da=i(47037),ha=i.n(da),ma=i(14176),ga=i.n(ma);function va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ya(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?va(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):va(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ba=["linkComp"],wa=function(e,t){var n=de.Z.difference(e,t),r=ga()(Yn()(n,ba),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length},Oa=(0,Z.memo)((function(e){var t=e.linkComp,n=e.entityKey,r=e.children;return t&&ha()(n)?(0,G.jsx)(Fo.vR,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,G.jsx)(t,{entityKey:n,children:r})}):r}),wa);Oa.propTypes={children:y().node,entityKey:y().any,linkComp:y().func};const xa=function(e){var t=e.data,n=e.selectProps,r=e.isDisabled,o=e.children,a=n.tooltips,i=n.loadTooltip,c=n.DetailLink,u=Xe()(a,t.key,null);return(0,G.jsx)(Lr.c.SingleValue,ya(ya({},e),{},{children:(0,G.jsx)(Fo.xq,{onMouseOver:function(){return i&&!u&&i(t.key)},isDisabled:r,children:(0,G.jsx)(sa.Z,{content:u?(0,G.jsx)("div",{dangerouslySetInnerHTML:{__html:ua.Z.sanitizeHtml(u)}}):null,children:(0,G.jsx)(Oa,{linkComp:c,entityKey:t.key,children:o})})})}))};function ka(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 Sa=function(e){var t;return"Input"===(null==e||null===(t=e.type)||void 0===t?void 0:t.name)};const Pa=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,G.jsx)(Lr.c.ValueContainer,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ka(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ka(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e));var u=Z.Children.map(r,(function(e){return Sa(e)?e:null})),s=Z.Children.map(r,(function(e){return Sa(e)?null:e})),l=c&&n;return(0,G.jsxs)(G.Fragment,{children:[!l&&(0,G.jsx)(G.Fragment,{children:u}),(0,G.jsx)(Fo.eQ,{children:s})]})};function ja(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _a(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){g()(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}const Ea=(0,$.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,u=e.moreOptionsAvailableText,s=e.noResultsText,l=e.noResultsComp,f=e.onChange,p=e.openDocsTreeSearch,d=e.openAdvancedSearch,h=e.options,m=e.searchOptions,g=e.theme,v=e.tooltips,y=e.value,b=e.DetailLink,w=e.createPermission,O=e.openRemoteCreate,x=(0,Z.useRef)(null),k=(0,Z.useRef)(null),S=function(){var e;return(null===(e=k.current)||void 0===e?void 0:e.clientWidth)||300},P=function(){var e;return(null===(e=k.current)||void 0===e?void 0:e.clientHeight)||35},j=(0,Z.useState)(S()),_=U()(j,2),E=_[0],C=_[1],D=(0,Z.useState)(P()),T=U()(D,2),M=T[0],R=T[1],I=(0,Z.useState)(!1),N=U()(I,2),A=N[0],L=N[1],F=function(e){t&&t(e)},B=(0,Z.useCallback)(m||function(){},[]),W=(0,Z.useCallback)(kr()(B,800,{trailing:!0}),[]),z=Boolean(d),Y=Boolean(p),V=Boolean(w);return(0,G.jsx)(Fo.sP,{tabIndex:"-1",id:n,onFocus:function(){x.current.focus(),setTimeout((function(){C(S()),R(P())}),0)},children:(0,G.jsx)(Fo.RU,{ref:k,children:(0,G.jsx)(No,_a(_a({getOptionLabel:function(e){return e.display},getOptionValue:function(e){return e.key},wrapperWidth:E,wrapperHeight:M,components:{ClearIndicator:Lo,LoadingIndicator:ea,DropdownIndicator:Uo,IndicatorsContainer:$o,IndicatorSeparator:null,Menu:oa,MenuList:ca,MultiValueLabel:pa,SingleValue:xa,ValueContainer:Pa},noOptionsMessage:function(e){return s||("function"==typeof l?(0,G.jsx)(l,_a({},e)):" - ")},isMulti:a,closeMenuOnSelect:!a,isSearchable:!0},m?{filterOption:function(){return!0}}:{}),{},{isClearable:!0,loadingMessage:function(){return null},placeholder:"",menuShouldScrollIntoView:!1,autoFocus:!1,value:y||null,onChange:function(e){f(e),F(e)},onInputChange:function(e,t){var n=t.action;m&&e&&W(e,y),""===e&&"input-change"===n&&F(y)},options:H()(h||[]),onKeyDown:function(e){"Enter"===e.key&&A?e.stopPropagation():"Tab"===e.key&&(e.preventDefault=function(){})},isLoading:o,isDisabled:r,ref:x,onMenuOpen:function(){F(y),L(!0)},onMenuClose:function(){L(!1)},styles:(0,Fo.i4)(g),loadTooltip:i,tooltips:v,DetailLink:b,hasDocsTreeSearch:Y,openDocsTreeSearch:p,hasAdvancedSearch:z,openAdvancedSearch:d,moreOptionsAvailable:c,moreOptionsAvailableText:u,blurInputOnSelect:!1,hasCreatePermission:V,createPermission:w,openRemoteCreate:O,closeMenuOnScroll:function(e){var t;return!(null!==(t=e.target.classList)&&void 0!==t&&t.contains("MenuList"))}}))})})}));const Ca=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,G.jsx)(Ea,{id:t,immutable:n,isMulti:!1,onChange:function(e){return c(e?e.key:null)},value:Or()(r)?r:{key:r,display:r?a:i},openMenuOnClick:!0,options:[{key:!0,display:a},{key:!1,display:i}]})};var Da,Ta=$.ZP.div.withConfig({displayName:"StyledBoolEdit"})(Da||(Da=Q()(["\n margin: 5px 0;\n"])));const Ma=function(e){return(0,G.jsx)(Ta,{children:(0,G.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 Ra,Ia;function Na(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 Aa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Na(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Na(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Za=$.ZP.div.withConfig({displayName:"StyledOption"})(Ra||(Ra=Q()(["\n margin: "," 0;\n"])),te.Z.space(-1.4)),La=$.ZP.span.withConfig({displayName:"StyledLabel"})(Ia||(Ia=Q()(["\n ","\n display: inline-block;\n margin-left: ",";\n"])),(0,et.Z)(),te.Z.space(-1.5)),Fa={single:"radio",multiple:"checkbox"},Ha={single:{checked:!1},multiple:{}},Ba=function(e){var t=e.groupName,n=e.id,r=e.label,o=e.checked,a=e.immutable,i=e.selectionType,c=e.renderHtmlInOptions,u=e.handleChange;return(0,G.jsxs)(Za,{children:[(0,G.jsx)("input",{name:t,type:Fa[i],checked:o||!1,onChange:u,id:n,disabled:a}),(0,G.jsx)(La,{children:c?(0,G.jsx)("span",{dangerouslySetInnerHTML:{__html:ua.Z.sanitizeHtml(r)}}):r})]})};const Ua=function(e){var t=function(t){if(e.onChange){var n=e.value.options.map((function(n){return Aa(Aa({},n),n.id===t.target.id?{checked:t.target.checked}:Ha[e.options.selectionType])}));e.onChange({options:n})}};return(0,G.jsx)(G.Fragment,{children:e.value.options.map((function(n){return(0,G.jsx)(Ba,{groupName:e.id,id:n.id,label:n.label,checked:n.checked,immutable:e.immutable,selectionType:e.options.selectionType,renderHtmlInOptions:e.options.renderHtmlInOptions,handleChange:t},n.id)}))})};var Wa=i(23279),za=i.n(Wa);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){g()(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}var qa=(0,Z.lazy)((function(){return Promise.all([i.e(560),i.e(85)]).then(i.bind(i,30919))}));const Ga=function(e){return(0,G.jsx)(Z.Suspense,{fallback:(t=e.value,(0,G.jsx)("div",{children:(0,G.jsx)("p",{children:t})})),children:(0,G.jsx)(qa,Va({},e))});var t};var Ka,Xa=$.ZP.div.withConfig({displayName:"StyledEditorWrapper"})(Ka||(Ka=Q()(["\n margin-top: ",";\n"])),te.Z.space(-1.5));const Qa=function(e){var t=e.value,n=e.onChange,r=e.immutable,o=e.options;return(0,G.jsx)(Xa,{children:(0,G.jsx)(Ga,{value:t,onChange:za()(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 $a=i(86896),Ja=i(23842),ei=i(93379),ti=i.n(ei),ni=i(7795),ri=i.n(ni),oi=i(90569),ai=i.n(oi),ii=i(3565),ci=i.n(ii),ui=i(19216),si=i.n(ui),li=i(44589),fi=i.n(li),pi=i(16721),di={};di.styleTagTransform=fi(),di.setAttributes=ci(),di.insert=ai().bind(null,"head"),di.domAPI=ri(),di.insertStyleElement=si();ti()(pi.Z,di);pi.Z&&pi.Z.locals&&pi.Z.locals;var hi=i(9198),mi=i.n(hi),gi=(Math.pow(10,8),6e4),vi=36e5,yi=i(13882),bi=i(83946);var wi={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Oi=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,xi=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,ki=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Si(e){var t,n={},r=e.split(wi.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],wi.timeZoneDelimiter.test(n.date)&&(n.date=e.split(wi.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var o=wi.timezone.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}function Pi(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?o:100*a,restDateString:e.slice((r[1]||r[2]).length)}}function ji(e,t){if(null===t)return new Date(NaN);var n=e.match(Oi);if(!n)return new Date(NaN);var r=!!n[4],o=_i(n[1]),a=_i(n[2])-1,i=_i(n[3]),c=_i(n[4]),u=_i(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,c,u)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,a=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}(t,c,u):new Date(NaN);var s=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Ti[t]||(Mi(e)?29:28))}(t,a,i)&&function(e,t){return t>=1&&t<=(Mi(e)?366:365)}(t,o)?(s.setUTCFullYear(t,a,Math.max(o,i)),s):new Date(NaN)}function _i(e){return e?parseInt(e):1}function Ei(e){var t=e.match(xi);if(!t)return NaN;var n=Ci(t[1]),r=Ci(t[2]),o=Ci(t[3]);return function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,o)?n*vi+r*gi+1e3*o:NaN}function Ci(e){return e&&parseFloat(e.replace(",","."))||0}function Di(e){if("Z"===e)return 0;var t=e.match(ki);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,o)?n*(r*vi+o*gi):NaN}var Ti=[31,null,31,30,31,30,31,31,30,31,30,31];function Mi(e){return e%400==0||e%4==0&&e%100!=0}var Ri,Ii,Ni,Ai,Zi,Li,Fi,Hi,Bi,Ui=(0,$.iv)(Ri||(Ri=Q()(["\n align-items: center;\n cursor: ",";\n display: flex;\n"])),(function(e){return e.immutable?"not-allowed":"default"})),Wi=$.ZP.label.withConfig({displayName:"StyledEditableWrapper"})(Ii||(Ii=Q()(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),Ui),zi=(0,$.iv)(Ni||(Ni=Q()(["\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,et.Z)({color:oe.FS.color("text")})}),oe.FS.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),Yi=(0,$.iv)(Ai||(Ai=Q()(["\n display: flex;\n align-items: center;\n"]))),Vi=$.ZP.div.withConfig({displayName:"StyledEditableControl"})(Zi||(Zi=Q()(["\n &&& {\n ","\n }\n"])),Yi),qi=$.ZP.span.withConfig({displayName:"StyledEditableValue"})(Li||(Li=Q()(["\n width: 100%;\n\n && {\n //url\n [type='url'] + .input-group-addon > a {\n color: inherit; // reset bootstrap default\n }\n\n //url\n [type='tel'] + .input-group-addon > a {\n color: inherit; // reset bootstrap default\n }\n\n //date\n .date-edit {\n .input-group-addon {\n cursor: pointer;\n }\n\n input {\n z-index: 0;\n }\n\n &.disabled {\n input {\n cursor: not-allowed;\n }\n }\n\n .right-addon {\n position: relative;\n }\n\n .right-addon input {\n padding-right: 30px;\n }\n\n .reset {\n position: absolute;\n padding-right: 10px;\n padding-top: 5px;\n right: 0;\n color: #999;\n font-size: 18px;\n font-style: normal;\n cursor: pointer;\n }\n\n .reset:hover {\n color: ",";\n }\n }\n }\n"])),oe.FS.color("signal.danger")),Gi=$.ZP.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(Fi||(Fi=Q()(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),Ki=$.ZP.div.withConfig({displayName:"StyledDatePickerWrapper"})(Hi||(Hi=Q()(["\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"])),Ui,zi,(function(e){return e.hasTime&&"border-bottom: 1px solid #aeaeae;"})),Xi=$.ZP.input.withConfig({displayName:"StyledTimeInput"})(Bi||(Bi=Q()(["\n &&&& {\n ","\n }\n"])),zi),Qi=i(37042),$i=i(4543),Ji=i(39880),ec=i(85817),tc=i(39159),nc=i(19013);function rc(e){(0,yi.Z)(1,arguments);var t=(0,nc.Z)(e),n=t.getSeconds();return n}var oc=i(86);function ac(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 ic(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ac(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)?ac(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw a}}}}var cc=i(44941),uc=i(29558);function sc(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}var lc=i(97621),fc=i(24262),pc=i(5267);function dc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hc(e,t){return(hc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function mc(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hc(e,t)}function gc(e){return(gc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vc(e,t){if(t&&("object"===(0,oc.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return dc(e)}function yc(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=gc(e);if(t){var o=gc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return vc(this,n)}}function bc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wc(e){var t=function(e,t){if("object"!==(0,oc.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==(0,oc.Z)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,oc.Z)(t)?t:String(t)}function Oc(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,wc(r.key),r)}}function xc(e,t,n){return t&&Oc(e.prototype,t),n&&Oc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function kc(e,t,n){return(t=wc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Sc=function(){function e(){bc(this,e),kc(this,"priority",void 0),kc(this,"subPriority",0)}return xc(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),Pc=function(e){mc(n,e);var t=yc(n);function n(e,r,o,a,i){var c;return bc(this,n),(c=t.call(this)).value=e,c.validateValue=r,c.setValue=o,c.priority=a,i&&(c.subPriority=i),c}return xc(n,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,n){return this.setValue(e,t,this.value,n)}}]),n}(Sc),jc=function(e){mc(n,e);var t=yc(n);function n(){var e;bc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return kc(dc(e=t.call.apply(t,[this].concat(o))),"priority",10),kc(dc(e),"subPriority",-1),e}return xc(n,[{key:"set",value:function(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}}]),n}(Sc),_c=function(){function e(){bc(this,e),kc(this,"incompatibleTokens",void 0),kc(this,"priority",void 0),kc(this,"subPriority",void 0)}return xc(e,[{key:"run",value:function(e,t,n,r){var o=this.parse(e,t,n,r);return o?{setter:new Pc(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(e,t,n){return!0}}]),e}(),Ec=function(e){mc(n,e);var t=yc(n);function n(){var e;bc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return kc(dc(e=t.call.apply(t,[this].concat(o))),"priority",140),kc(dc(e),"incompatibleTokens",["R","u","t","T"]),e}return xc(n,[{key:"parse",value:function(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(_c),Cc=/^(1[0-2]|0?\d)/,Dc=/^(3[0-1]|[0-2]?\d)/,Tc=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Mc=/^(5[0-3]|[0-4]?\d)/,Rc=/^(2[0-3]|[0-1]?\d)/,Ic=/^(2[0-4]|[0-1]?\d)/,Nc=/^(1[0-1]|0?\d)/,Ac=/^(1[0-2]|0?\d)/,Zc=/^[0-5]?\d/,Lc=/^[0-5]?\d/,Fc=/^\d/,Hc=/^\d{1,2}/,Bc=/^\d{1,3}/,Uc=/^\d{1,4}/,Wc=/^-?\d+/,zc=/^-?\d/,Yc=/^-?\d{1,2}/,Vc=/^-?\d{1,3}/,qc=/^-?\d{1,4}/,Gc=/^([+-])(\d{2})(\d{2})?|Z/,Kc=/^([+-])(\d{2})(\d{2})|Z/,Xc=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Qc=/^([+-])(\d{2}):(\d{2})|Z/,$c=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Jc(e,t){return e?{value:t(e.value),rest:e.rest}:e}function eu(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function tu(e,t){var n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};var r="+"===n[1]?1:-1,o=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,i=n[5]?parseInt(n[5],10):0;return{value:r*(o*vi+a*gi+1e3*i),rest:t.slice(n[0].length)}}function nu(e){return eu(Wc,e)}function ru(e,t){switch(e){case 1:return eu(Fc,t);case 2:return eu(Hc,t);case 3:return eu(Bc,t);case 4:return eu(Uc,t);default:return eu(new RegExp("^\\d{1,"+e+"}"),t)}}function ou(e,t){switch(e){case 1:return eu(zc,t);case 2:return eu(Yc,t);case 3:return eu(Vc,t);case 4:return eu(qc,t);default:return eu(new RegExp("^-?\\d{1,"+e+"}"),t)}}function au(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function iu(e,t){var n,r=t>0,o=r?t:1-t;if(o<=50)n=e||100;else{var a=o+50;n=e+100*Math.floor(a/100)-(e>=a%100?100:0)}return r?n:1-n}function cu(e){return e%400==0||e%4==0&&e%100!=0}var uu=function(e){mc(n,e);var t=yc(n);function n(){var e;bc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return kc(dc(e=t.call.apply(t,[this].concat(o))),"priority",130),kc(dc(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return xc(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return Jc(ru(4,e),r);case"yo":return Jc(n.ordinalNumber(e,{unit:"year"}),r);default:return Jc(ru(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var o=iu(n.year,r);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(_c),su=i(7651),lu=i(59025),fu=function(e){mc(n,e);var t=yc(n);function n(){var e;bc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return kc(dc(e=t.call.apply(t,[this].concat(o))),"priority",130),kc(dc(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return xc(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return Jc(ru(4,e),r);case"Yo":return Jc(n.ordinalNumber(e,{unit:"year"}),r);default:return Jc(ru(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n,r){var o=(0,su.Z)(e,r);if(n.isTwoDigitYear){var a=iu(n.year,o);return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,lu.Z)(e,r)}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,lu.Z)(e,r)}}]),n}(_c),pu=i(66979),du=function(e){mc(n,e);var t=yc(n);function n(){var e;bc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return kc(dc(e=t.call.apply(t,[this].concat(o))),"priority",130),kc(dc(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return xc(n,[{key:"parse",value:function(e,t){return ou("R"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),(0,pu.Z)(r)}}]),n}(_c),hu=function(e){mc(n,e);var t=yc(n);function n(){var e;bc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return kc(dc(e=t.call.apply(t,[this].concat(o))),"priority",130),kc(dc(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return xc(n,[{key:"parse",value:function(e,t){return ou("u"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(_c),mu=function(e){mc(n,e);var t=yc(n);function n(){var e;bc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return kc(dc(e=t.call.apply(t,[this].concat(o))),"priority",120),kc(dc(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return xc(n,[{key:"parse",value:function(e,t,n){switch(t){case"Q":case"QQ":return ru(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(_c),gu=function(e){mc(n,e);var t=yc(n);function n(){var e;bc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return kc(dc(e=t.call.apply(t,[this].concat(o))),"priority",120),kc(dc(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return xc(n,[{key:"parse",value:function(e,t,n){switch(t){case"q":case"qq":return ru(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(_c),vu=function(e){mc(n,e);var t=yc(n);function n(){var e;bc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return kc(dc(e=t.call.apply(t,[this].concat(o))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),kc(dc(e),"priority",110),e}return xc(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"M":return Jc(eu(Cc,e),r);case"MM":return Jc(ru(2,e),r);case"Mo":return Jc(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(_c),yu=function(e){mc(n,e);var t=yc(n);function n(){var e;bc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return kc(dc(e=t.call.apply(t,[this].concat(o))),"priority",110),kc(dc(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return xc(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"L":return Jc(eu(Cc,e),r);case"LL":return Jc(ru(2,e),r);case"Lo":return Jc(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(_c),bu=i(23324);var wu=function(e){mc(n,e);var t=yc(n);function n(){var e;bc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return kc(dc(e=t.call.apply(t,[this].concat(o))),"priority",100),kc(dc(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return xc(n,[{key:"parse",value:function(e,t,n){switch(t){case"w":return eu(Mc,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return ru(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n,r){return(0,lu.Z)(function(e,t,n){(0,yi.Z)(2,arguments);var r=(0,nc.Z)(e),o=(0,bi.Z)(t),a=(0,bu.Z)(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*a),r}(e,n,r),r)}}]),n}(_c),Ou=i(49702);var xu=function(e){mc(n,e);var t=yc(n);function n(){var e;bc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return kc(dc(e=t.call.apply(t,[this].concat(o))),"priority",100),kc(dc(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return xc(n,[{key:"parse",value:function(e,t,n){switch(t){case"I":return eu(Mc,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return ru(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n){return(0,pu.Z)(function(e,t){(0,yi.Z)(2,arguments);var n=(0,nc.Z)(e),r=(0,bi.Z)(t),o=(0,Ou.Z)(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(e,n))}}]),n}(_c),ku=[31,28,31,30,31,30,31,31,30,31,30,31],Su=[31,29,31,30,31,30,31,31,30,31,30,31],Pu=function(e){mc(n,e);var t=yc(n);function n(){var e;bc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return kc(dc(e=t.call.apply(t,[this].concat(o))),"priority",90),kc(dc(e),"subPriority",1),kc(dc(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return xc(n,[{key:"parse",value:function(e,t,n){switch(t){case"d":return eu(Dc,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return ru(t.length,e)}}},{key:"validate",value:function(e,t){var n=cu(e.getUTCFullYear()),r=e.getUTCMonth();return n?t>=1&&t<=Su[r]:t>=1&&t<=ku[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(_c),ju=function(e){mc(n,e);var t=yc(n);function n(){var e;bc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return kc(dc(e=t.call.apply(t,[this].concat(o))),"priority",90),kc(dc(e),"subpriority",1),kc(dc(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return xc(n,[{key:"parse",value:function(e,t,n){switch(t){case"D":case"DD":return eu(Tc,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return ru(t.length,e)}}},{key:"validate",value:function(e,t){return cu(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),n}(_c),_u=i(84314);function Eu(e,t,n){var r,o,a,i,c,u,s,l;(0,yi.Z)(2,arguments);var f=(0,_u.j)(),p=(0,bi.Z)(null!==(r=null!==(o=null!==(a=null!==(i=null==n?void 0:n.weekStartsOn)&&void 0!==i?i:null==n||null===(c=n.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==a?a:f.weekStartsOn)&&void 0!==o?o:null===(s=f.locale)||void 0===s||null===(l=s.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=(0,nc.Z)(e),h=(0,bi.Z)(t),m=d.getUTCDay(),g=h%7,v=(g+7)%7,y=(v<p?7:0)+h-m;return d.setUTCDate(d.getUTCDate()+y),d}var Cu=function(e){mc(n,e);var t=yc(n);function n(){var e;bc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return kc(dc(e=t.call.apply(t,[this].concat(o))),"priority",90),kc(dc(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return xc(n,[{key:"parse",value:function(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Eu(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(_c),Du=function(e){mc(n,e);var t=yc(n);function n(){var e;bc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return kc(dc(e=t.call.apply(t,[this].concat(o))),"priority",90),kc(dc(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return xc(n,[{key:"parse",value:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return Jc(ru(t.length,e),o);case"eo":return Jc(n.ordinalNumber(e,{unit:"day"}),o);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Eu(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(_c),Tu=function(e){mc(n,e);var t=yc(n);function n(){var e;bc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return kc(dc(e=t.call.apply(t,[this].concat(o))),"priority",90),kc(dc(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return xc(n,[{key:"parse",value:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return Jc(ru(t.length,e),o);case"co":return Jc(n.ordinalNumber(e,{unit:"day"}),o);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Eu(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(_c);var Mu=function(e){mc(n,e);var t=yc(n);function n(){var e;bc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return kc(dc(e=t.call.apply(t,[this].concat(o))),"priority",90),kc(dc(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return xc(n,[{key:"parse",value:function(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return ru(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return Jc(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return Jc(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return Jc(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiii":default:return Jc(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function(e,t){return t>=1&&t<=7}},{key:"set",value:function(e,t,n){return(e=function(e,t){(0,yi.Z)(2,arguments);var n=(0,bi.Z)(t);n%7==0&&(n-=7);var r=1,o=(0,nc.Z)(e),a=o.getUTCDay(),i=((n%7+7)%7<r?7:0)+n-a;return o.setUTCDate(o.getUTCDate()+i),o}(e,n)).setUTCHours(0,0,0,0),e}}]),n}(_c),Ru=function(e){mc(n,e);var t=yc(n);function n(){var e;bc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return kc(dc(e=t.call.apply(t,[this].concat(o))),"priority",80),kc(dc(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return xc(n,[{key:"parse",value:function(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(au(n),0,0,0),e}}]),n}(_c),Iu=function(e){mc(n,e);var t=yc(n);function n(){var e;bc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return kc(dc(e=t.call.apply(t,[this].concat(o))),"priority",80),kc(dc(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return xc(n,[{key:"parse",value:function(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(au(n),0,0,0),e}}]),n}(_c),Nu=function(e){mc(n,e);var t=yc(n);function n(){var e;bc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return kc(dc(e=t.call.apply(t,[this].concat(o))),"priority",80),kc(dc(e),"incompatibleTokens",["a","b","t","T"]),e}return xc(n,[{key:"parse",value:function(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(au(n),0,0,0),e}}]),n}(_c),Au=function(e){mc(n,e);var t=yc(n);function n(){var e;bc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return kc(dc(e=t.call.apply(t,[this].concat(o))),"priority",70),kc(dc(e),"incompatibleTokens",["H","K","k","t","T"]),e}return xc(n,[{key:"parse",value:function(e,t,n){switch(t){case"h":return eu(Ac,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return ru(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}]),n}(_c),Zu=function(e){mc(n,e);var t=yc(n);function n(){var e;bc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return kc(dc(e=t.call.apply(t,[this].concat(o))),"priority",70),kc(dc(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return xc(n,[{key:"parse",value:function(e,t,n){switch(t){case"H":return eu(Rc,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return ru(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),n}(_c),Lu=function(e){mc(n,e);var t=yc(n);function n(){var e;bc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return kc(dc(e=t.call.apply(t,[this].concat(o))),"priority",70),kc(dc(e),"incompatibleTokens",["h","H","k","t","T"]),e}return xc(n,[{key:"parse",value:function(e,t,n){switch(t){case"K":return eu(Nc,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return ru(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),n}(_c),Fu=function(e){mc(n,e);var t=yc(n);function n(){var e;bc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return kc(dc(e=t.call.apply(t,[this].concat(o))),"priority",70),kc(dc(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return xc(n,[{key:"parse",value:function(e,t,n){switch(t){case"k":return eu(Ic,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return ru(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=24}},{key:"set",value:function(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}}]),n}(_c),Hu=function(e){mc(n,e);var t=yc(n);function n(){var e;bc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return kc(dc(e=t.call.apply(t,[this].concat(o))),"priority",60),kc(dc(e),"incompatibleTokens",["t","T"]),e}return xc(n,[{key:"parse",value:function(e,t,n){switch(t){case"m":return eu(Zc,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return ru(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),n}(_c),Bu=function(e){mc(n,e);var t=yc(n);function n(){var e;bc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return kc(dc(e=t.call.apply(t,[this].concat(o))),"priority",50),kc(dc(e),"incompatibleTokens",["t","T"]),e}return xc(n,[{key:"parse",value:function(e,t,n){switch(t){case"s":return eu(Lc,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return ru(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),n}(_c),Uu=function(e){mc(n,e);var t=yc(n);function n(){var e;bc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return kc(dc(e=t.call.apply(t,[this].concat(o))),"priority",30),kc(dc(e),"incompatibleTokens",["t","T"]),e}return xc(n,[{key:"parse",value:function(e,t){return Jc(ru(t.length,e),(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))}},{key:"set",value:function(e,t,n){return e.setUTCMilliseconds(n),e}}]),n}(_c),Wu=function(e){mc(n,e);var t=yc(n);function n(){var e;bc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return kc(dc(e=t.call.apply(t,[this].concat(o))),"priority",10),kc(dc(e),"incompatibleTokens",["t","T","x"]),e}return xc(n,[{key:"parse",value:function(e,t){switch(t){case"X":return tu(Gc,e);case"XX":return tu(Kc,e);case"XXXX":return tu(Xc,e);case"XXXXX":return tu($c,e);case"XXX":default:return tu(Qc,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(_c),zu=function(e){mc(n,e);var t=yc(n);function n(){var e;bc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return kc(dc(e=t.call.apply(t,[this].concat(o))),"priority",10),kc(dc(e),"incompatibleTokens",["t","T","X"]),e}return xc(n,[{key:"parse",value:function(e,t){switch(t){case"x":return tu(Gc,e);case"xx":return tu(Kc,e);case"xxxx":return tu(Xc,e);case"xxxxx":return tu($c,e);case"xxx":default:return tu(Qc,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(_c),Yu=function(e){mc(n,e);var t=yc(n);function n(){var e;bc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return kc(dc(e=t.call.apply(t,[this].concat(o))),"priority",40),kc(dc(e),"incompatibleTokens","*"),e}return xc(n,[{key:"parse",value:function(e){return nu(e)}},{key:"set",value:function(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),n}(_c),Vu=function(e){mc(n,e);var t=yc(n);function n(){var e;bc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return kc(dc(e=t.call.apply(t,[this].concat(o))),"priority",20),kc(dc(e),"incompatibleTokens","*"),e}return xc(n,[{key:"parse",value:function(e){return nu(e)}},{key:"set",value:function(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}]),n}(_c),qu={G:new Ec,y:new uu,Y:new fu,R:new du,u:new hu,Q:new mu,q:new gu,M:new vu,L:new yu,w:new wu,I:new xu,d:new Pu,D:new ju,E:new Cu,e:new Du,c:new Tu,i:new Mu,a:new Ru,b:new Iu,B:new Nu,h:new Au,H:new Zu,K:new Lu,k:new Fu,m:new Hu,s:new Bu,S:new Uu,X:new Wu,x:new zu,t:new Yu,T:new Vu},Gu=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ku=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Xu=/^'([^]*?)'?$/,Qu=/''/g,$u=/\S/,Ju=/[a-zA-Z]/;function es(e,t,n,r){var o,a,i,c,u,s,l,f,p,d,h,m,g,v,y,b,w,O;(0,yi.Z)(3,arguments);var x=String(e),k=String(t),S=(0,_u.j)(),P=null!==(o=null!==(a=null==r?void 0:r.locale)&&void 0!==a?a:S.locale)&&void 0!==o?o:cc.Z;if(!P.match)throw new RangeError("locale must contain match property");var j=(0,bi.Z)(null!==(i=null!==(c=null!==(u=null!==(s=null==r?void 0:r.firstWeekContainsDate)&&void 0!==s?s:null==r||null===(l=r.locale)||void 0===l||null===(f=l.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==u?u:S.firstWeekContainsDate)&&void 0!==c?c:null===(p=S.locale)||void 0===p||null===(d=p.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==i?i:1);if(!(j>=1&&j<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var _=(0,bi.Z)(null!==(h=null!==(m=null!==(g=null!==(v=null==r?void 0:r.weekStartsOn)&&void 0!==v?v:null==r||null===(y=r.locale)||void 0===y||null===(b=y.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==g?g:S.weekStartsOn)&&void 0!==m?m:null===(w=S.locale)||void 0===w||null===(O=w.options)||void 0===O?void 0:O.weekStartsOn)&&void 0!==h?h:0);if(!(_>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===k)return""===x?(0,nc.Z)(n):new Date(NaN);var E,C={firstWeekContainsDate:j,weekStartsOn:_,locale:P},D=[new jc],T=k.match(Ku).map((function(e){var t=e[0];return t in lc.Z?(0,lc.Z[t])(e,P.formatLong):e})).join("").match(Gu),M=[],R=ic(T);try{var I=function(){var t=E.value;null!=r&&r.useAdditionalWeekYearTokens||!(0,pc.Do)(t)||(0,pc.qp)(t,k,e),null!=r&&r.useAdditionalDayOfYearTokens||!(0,pc.Iu)(t)||(0,pc.qp)(t,k,e);var n=t[0],o=qu[n];if(o){var a=o.incompatibleTokens;if(Array.isArray(a)){var i=M.find((function(e){return a.includes(e.token)||e.token===n}));if(i)throw new RangeError("The format string mustn't contain `".concat(i.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===o.incompatibleTokens&&M.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));M.push({token:n,fullToken:t});var c=o.run(x,t,P.match,C);if(!c)return{v:new Date(NaN)};D.push(c.setter),x=c.rest}else{if(n.match(Ju))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=ts(t)),0!==x.indexOf(t))return{v:new Date(NaN)};x=x.slice(t.length)}};for(R.s();!(E=R.n()).done;){var N=I();if("object"===(0,oc.Z)(N))return N.v}}catch(e){R.e(e)}finally{R.f()}if(x.length>0&&$u.test(x))return new Date(NaN);var A=D.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return D.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),Z=(0,nc.Z)(n);if(isNaN(Z.getTime()))return new Date(NaN);var L,F=(0,uc.Z)(Z,(0,fc.Z)(Z)),H={},B=ic(A);try{for(B.s();!(L=B.n()).done;){var U=L.value;if(!U.validate(F,C))return new Date(NaN);var W=U.set(F,H,C);Array.isArray(W)?(F=W[0],sc(H,W[1])):F=W}}catch(e){B.e(e)}finally{B.f()}return F}function ts(e){return e.match(Xu)[1].replace(Qu,"'")}var ns=i(49599);function rs(e,t,n){return(0,yi.Z)(2,arguments),(0,ns.Z)(es(e,t,new Date,n))}function os(e){(0,yi.Z)(1,arguments);var t=(0,nc.Z)(e);return t.setHours(0,0,0,0),t}var as="react-datepicker-time__input",is="react-datepicker__day",cs="react-datepicker__input",us=function(e){return e.classList.contains(is)},ss=function(e){return e.classList.contains(as)},ls=function(e){return e.classList.contains(cs)},fs=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,Qi.Z)((0,$i.Z)((0,Ji.Z)(e,c),a),r)},ps=function(e){setTimeout((function(){if(e){var t=e.querySelector(".".concat(is,'[tabindex="0"]'));t&&t.focus({preventScroll:!0})}}),0)},ds=function(e){setTimeout((function(){e&&e.focus({preventScroll:!0})}),0)},hs=function(e){var t=function(e,t){var n;(0,yi.Z)(1,arguments);var r=(0,bi.Z)(null!==(n=null==t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o,a=Si(e);if(a.date){var i=Pi(a.date,r);o=ji(i.restDateString,i.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var c,u=o.getTime(),s=0;if(a.time&&(s=Ei(a.time),isNaN(s)))return new Date(NaN);if(!a.timezone){var l=new Date(u+s),f=new Date(0);return f.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),f.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),f}return c=Di(a.timezone),isNaN(c)?new Date(NaN):new Date(u+s+c)}(e);return isNaN(t)?null:t},ms=function(e){return e?e.toISOString():null};const gs=function(e,t,n){var r=n.dateFormats,o=void 0===r?[]:r,a=n.minDate,i=n.maxDate,c=n.hasTime,u=n.valueToDate,s=void 0===u?hs:u,l=n.dateToValue,f=void 0===l?ms:l,p=(0,Z.useRef)(null),d=(0,Z.useState)(!1),h=U()(d,2),m=h[0],g=h[1],v=(0,Z.useState)(!1),y=U()(v,2),b=y[0],w=y[1],O=s(e),x=a?s(a):void 0,k=i?s(i):void 0;(0,Z.useEffect)((function(){(p.current&&"function"==typeof p.current.setOpen&&p.current.setOpen(m),m)&&document.querySelectorAll("button.react-datepicker__navigation").forEach((function(e){return e.setAttribute("tabindex","-1")}))}),[m]);var S=function(){return g(!1)},P=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(p.current&&"function"==typeof p.current.getPreSelection){var t,n=e?p.current.getPreSelection():null;return(null===(t=p.current.state)||void 0===t?void 0:t.preSelection)||n}return null},j=function(e){p.current&&"function"==typeof p.current.setPreSelection&&p.current.setPreSelection(e)},_=function(){t(null),j(null)},E=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=P(!1);if(n){var r=O||new Date,o=t?fs(n,{hour:(0,ec.Z)(r),minute:(0,tc.Z)(r),second:rc(r)}):n;C(o,e)}},C=function(n,r){if(n){var a,i=!e&&Boolean(n),u=null==r||null===(a=r.target)||void 0===a?void 0:a.value,s=!!u&&o.some((function(e){return rs(u,e)})),l=os(n),d=(0,ec.Z)(n)!==(0,ec.Z)(l)||(0,tc.Z)(n)!==(0,tc.Z)(l);(i&&!d||s)&&c&&(n=Ja.Z.setCurrentTime(n)),t(f(n))}else _();var h;c||"click"!==(null==r?void 0:r.type)||(S(),ds(null===(h=p.current)||void 0===h?void 0:h.input))},D=function(e){if("Tab"===e.key)if(e.shiftKey)if(ls(e.target))setTimeout((function(){return S()}),0);else if(ss(e.target)){var t,n;j(O||P(!0)),ps(null===(t=p.current)||void 0===t||null===(n=t.calendar)||void 0===n?void 0:n.componentNode)}else us(e.target)&&S();else ls(e.target)&&m?(E(e),setTimeout((function(){return S()}),0)):ss(e.target)?S():us(e.target)&&(c?(E(e,!0),j(null),w(!0),setTimeout((function(){var e,t,n;n=null===(e=p.current)||void 0===e||null===(t=e.calendar)||void 0===t?void 0:t.componentNode,setTimeout((function(){if(n){var e=n.querySelector("input.".concat(as));e&&e.focus({preventScroll:!0})}}),0),w(!1)}),0)):(E(e),S()));var r;"Enter"===e.key&&(S(),e.preventDefault(),e.stopPropagation(),ds(null===(r=p.current)||void 0===r?void 0:r.input));if(["ArrowDown","ArrowUp","Enter"].includes(e.key))if(m){if(m&&null===P(!1)){var o,a;j(O||P(!0)),ps(null===(o=p.current)||void 0===o||null===(a=o.calendar)||void 0===a?void 0:a.componentNode)}}else g(!0),e.key="Handled".concat(e.key)},T=function(){var e;g((function(e){return!e})),j(null),ds(null===(e=p.current)||void 0===e?void 0:e.input)};return{reactDatePickerProps:{closeOnScroll:function(){return S(),!0},onClickOutside:S,onInputClick:T,onKeyDown:D,onChange:C,onCalendarOpen:function(){j(null)},onBlur:function(){p.current&&p.current.setState({inputValue:null})},preventOpenOnFocus:!0,enableTabLoop:!1,shouldCloseOnSelect:!1,open:m,selected:O,showTimeInput:c,minDate:x,maxDate:k,ref:p,className:cs},timeInputProps:{onKeyDown:D,className:as,tabIndex:b?void 0:"-1"},clearButtonProps:{onMouseDown:function(e){e.preventDefault(),_()}},calendarButtonProps:{onClick:T,className:m?"react-datepicker-ignore-onclickoutside":""}}};var vs=i(49546),ys=i(35997),bs="HH:mm:ss",ws="HH:mm",Os=function(e){return rs(e,ws)},xs=function(e){var t=function(e){return rs(e,bs)?es(e,bs,new Date):rs(e,ws)?es(e,ws,new Date):rs(e,"HH:")?es(e,"HH:",new Date):rs(e,"H")?es(e,"H",new Date):null}(e);return t&&!isNaN(t)?function(e){return(0,vs.Z)(e,ws)}(t):""};const ks=function(e,t){var n=xs(e),r=(0,Z.useState)(n),o=U()(r,2),a=o[0],i=o[1],c=(0,Z.useRef)(a),u=ys.Z.usePrevious(n);(0,Z.useEffect)((function(){u!==n&&a===u&&i(n)}),[n,a,u]);return{inputProps:{onChange:function(e){if(e.target.value!==a&&function(e){return/^(\d{0,2}|\d{1,2}:\d{0,2})$/.test(e)}(e.target.value)){var n=function(e,t){return e&&t?2!==e.length||3===t.length||e.includes(":")?e.length+1===t.length&&t.indexOf(":")===t.length-1?e.slice(0,-1):e:"".concat(e,":"):e}(e.target.value,c.current),r=n.indexOf(":"),o=n.substring(0,r),u=n.substring(r+1),s=parseInt(o,10),l=parseInt(u,10),f=!o||!Number.isNaN(s)&&s<24,p=!u||!Number.isNaN(l)&&l<60;if(!f||!p)return!1;c.current=n,i(n),n&&!Os(n)||t(n)}},onBlur:function(){if(a!==n){var e=xs(a);e&&Os(e)?(c.current=e,i(e),t(e)):i(n)}},onFocus:function(e){a&&"function"==typeof e.target.select&&e.target.select()},value:a||""},clearButtonProps:{onClick:function(){t(""),i("")}}}};var Ss=["value","onChange","onKeyDown"];function Ps(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 js(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ps(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ps(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}(0,hi.registerLocale)("en",Ja.Z.getDateFnsLocale("en")),(0,hi.registerLocale)("en-US",Ja.Z.getDateFnsLocale("en")),(0,hi.registerLocale)("de-CH",Ja.Z.getDateFnsLocale("de-CH")),(0,hi.registerLocale)("de",Ja.Z.getDateFnsLocale("de")),(0,hi.registerLocale)("fr",Ja.Z.getDateFnsLocale("fr")),(0,hi.registerLocale)("fr-CH",Ja.Z.getDateFnsLocale("fr")),(0,hi.registerLocale)("it",Ja.Z.getDateFnsLocale("it")),(0,hi.registerLocale)("it-CH",Ja.Z.getDateFnsLocale("it")),(0,hi.setDefaultLocale)("de");var _s=function(e){var t=e.onChange,n=e.label;return(0,G.jsx)(ee.Z,{onMouseDown:function(e){e.preventDefault(),t(null)},tabIndex:-1,children:n})},Es=function(e){var t=e.value,n=e.onChange,r=e.onKeyDown,o=nr()(e,Ss),a=ks(t,(function(e){n&&n(e||"00:00")})).inputProps;return(0,G.jsx)(Xi,js(js(js({},a),o),{},{type:"text",onKeyDown:r,onClick:function(e){e.target.focus()}}))},Cs={strategy:"fixed"};const Ds=(0,$.Zz)((0,x.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,u=e.onChange,s=e.intl,l=e.placeholder,f=e.hasTime,p=e.dateFormats,d=void 0===p?[]:p,h=e.dateTimeFormats,m=void 0===h?[]:h,g=e.events,v=(0,Z.useRef)(void 0),y=s.locale,b=function(e){return s.formatMessage({id:e})},w=(0,Z.useRef)(null),O=Boolean(r),x=!t&&O,k=function(e){v.current=e,u(e)},S=gs(r,k,{dateFormats:d,dateTimeFormats:m,minDate:o,maxDate:a,valueToDate:i,dateToValue:c,hasTime:f}),P=S.reactDatePickerProps,j=S.timeInputProps,_=S.clearButtonProps,E=S.calendarButtonProps;return(0,G.jsx)(Gi,{immutable:t,id:n,tabIndex:"-1",children:(0,G.jsxs)(Ki,{immutable:t,ref:w,hasTime:f,onBlur:function(e){if("function"==typeof(null==g?void 0:g.onBlur)){var t=void 0!==v.current?v.current:r;g.onBlur(t)}e.stopPropagation()},children:[(0,G.jsx)(mi(),js(js({},P),{},{disabled:t,dateFormat:[].concat(H()(m),H()(d)),placeholderText:l,showMonthDropdown:!0,showYearDropdown:!0,scrollableYearDropdown:!1,fixedHeight:!0,showPopperArrow:!1,locale:y,customTimeInput:(0,G.jsx)(Es,js({},j)),timeInputLabel:"",popperProps:Cs,todayButton:(0,G.jsx)(_s,{onChange:k,label:b("client.component.datePicker.todayLabel")})})),x&&(0,G.jsx)($e.Z,js({icon:"times",tabIndex:-1,"aria-label":b("client.component.datePicker.clearDateLabel")},_)),!t&&(0,G.jsx)($e.Z,js({icon:"calendar",tabIndex:-1},E))]})})})));function Ts(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 Ms=function(e){var t=e.onChange,n=e.options,r=e.id,o=e.value,a=e.immutable,i=e.events,c=e.placeholder,u=(0,$a.Z)(),s=(null==n?void 0:n.datePickerOptions)||{},l="".concat(Ja.Z.getLocalizedDateFormat(u.locale)),f=Ja.Z.getLocalizedDateFormatWithoutPunctuation(u.locale),p=[l,f,Ja.Z.useTwoDigitYear(l),Ja.Z.useTwoDigitYear(f)];return(0,G.jsx)(Ds,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ts(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ts(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:r,value:o,onChange:t,dateFormats:p,hasTime:!1,immutable:a,placeholder:c,events:i},s))};function Rs(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 Is=(0,x.ZP)((function(e){var t=e.onChange,n=e.options,r=e.value,o=e.immutable,a=e.placeholder,i=(0,$a.Z)(),c=(null==n?void 0:n.datePickerOptions)||{},u="".concat(Ja.Z.getLocalizedDateTimeFormat(i.locale)),s="".concat(Ja.Z.getLocalizedDateFormat(i.locale)),l=Ja.Z.getLocalizedDateTimeFormatWithoutPunctuation(i.locale),f=[u,l,Ja.Z.useTwoDigitYear(u),Ja.Z.useTwoDigitYear(l)],p=Ja.Z.getLocalizedDateFormatWithoutPunctuation(i.locale),d=[s,p,Ja.Z.useTwoDigitYear(s),Ja.Z.useTwoDigitYear(p)];return(0,G.jsx)(Ds,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rs(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({value:r,onChange:t,dateTimeFormats:f,dateFormats:d,hasTime:!0,immutable:o,placeholder:a},c))}));function Ns(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{u(r.next(e))}catch(e){a(e)}}function c(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,c)}u((r=r.apply(e,t||[])).next())}))}function As(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(u){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,u])}}}Object.create;function Zs(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 Ls(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 Fs=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 Hs(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=Fs.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 Bs=[".DS_Store","Thumbs.db"];function Us(e){return"object"==typeof e&&null!==e}function Ws(e){return qs(e.target.files).map((function(e){return Hs(e)}))}function zs(e){return Ns(this,void 0,void 0,(function(){return As(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 Hs(e)}))]}}))}))}function Ys(e,t){return Ns(this,void 0,void 0,(function(){var n;return As(this,(function(r){switch(r.label){case 0:return e.items?(n=qs(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(Gs))]):[3,2];case 1:return[2,Vs(Ks(r.sent()))];case 2:return[2,Vs(qs(e.files).map((function(e){return Hs(e)})))]}}))}))}function Vs(e){return e.filter((function(e){return-1===Bs.indexOf(e.name)}))}function qs(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function Gs(e){if("function"!=typeof e.webkitGetAsEntry)return Xs(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?$s(t):Xs(e)}function Ks(e){return e.reduce((function(e,t){return Ls(Ls([],Zs(e),!1),Zs(Array.isArray(t)?Ks(t):[t]),!1)}),[])}function Xs(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=Hs(t);return Promise.resolve(n)}function Qs(e){return Ns(this,void 0,void 0,(function(){return As(this,(function(t){return[2,e.isDirectory?$s(e):Js(e)]}))}))}function $s(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var a=this;t.readEntries((function(t){return Ns(a,void 0,void 0,(function(){var a,i,c;return As(this,(function(u){switch(u.label){case 0:if(t.length)return[3,5];u.label=1;case 1:return u.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return a=u.sent(),e(a),[3,4];case 3:return i=u.sent(),n(i),[3,4];case 4:return[3,6];case 5:c=Promise.all(t.map(Qs)),r.push(c),o(),u.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function Js(e){return Ns(this,void 0,void 0,(function(){return As(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=Hs(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var el=i(58363);function tl(e){return function(e){if(Array.isArray(e))return cl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||il(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 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){ol(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}function ol(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function al(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)||il(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 il(e,t){if(e){if("string"==typeof e)return cl(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)?cl(e,t):void 0}}function cl(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 ul="file-invalid-type",sl="file-too-large",ll="file-too-small",fl="too-many-files",pl=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:ul,message:"File type must be ".concat(t)}},dl=function(e){return{code:sl,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},hl=function(e){return{code:ll,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},ml={code:fl,message:"Too many files"};function gl(e,t){var n="application/x-moz-file"===e.type||(0,el.Z)(e,t);return[n,n?null:pl(t)]}function vl(e,t,n){if(yl(e.size))if(yl(t)&&yl(n)){if(e.size>n)return[!1,dl(n)];if(e.size<t)return[!1,hl(t)]}else{if(yl(t)&&e.size<t)return[!1,hl(t)];if(yl(n)&&e.size>n)return[!1,dl(n)]}return[!0,null]}function yl(e){return null!=e}function bl(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=al(gl(e,n),1)[0],a=al(vl(e,r,o),1)[0],i=c?c(e):null;return t&&a&&!i}))}function wl(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function Ol(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 xl(e){e.preventDefault()}function kl(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function Sl(e){return-1!==e.indexOf("Edge/")}function Pl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return kl(e)||Sl(e)}function jl(){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!wl(e)&&t&&t.apply(void 0,[e].concat(r)),wl(e)}))}}function _l(){return"showOpenFilePicker"in window}function El(e){return yl(e)?[{description:"Files",accept:Object.entries(e).filter((function(e){var t=al(e,2),n=t[0],r=t[1],o=!0;return Ml(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(Rl)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(e,t){var n=al(t,2),r=n[0],o=n[1];return rl(rl({},e),{},ol({},r,o))}),{})}]:e}function Cl(e){if(yl(e))return Object.entries(e).reduce((function(e,t){var n=al(t,2),r=n[0],o=n[1];return[].concat(tl(e),[r],tl(o))}),[]).filter((function(e){return Ml(e)||Rl(e)})).join(",")}function Dl(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}function Tl(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}function Ml(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function Rl(e){return/^.*\.[\w]+$/.test(e)}var Il=["children"],Nl=["open"],Al=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Zl=["refKey","onChange","onClick"];function Ll(e){return function(e){if(Array.isArray(e))return Bl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Hl(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 Fl(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)||Hl(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 Hl(e,t){if(e){if("string"==typeof e)return Bl(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)?Bl(e,t):void 0}}function Bl(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 Ul(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 Wl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ul(Object(n),!0).forEach((function(t){zl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ul(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yl(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 Vl=(0,Z.forwardRef)((function(e,t){var n=e.children,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Wl(Wl({},ql),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,a=t.maxSize,i=t.minSize,c=t.multiple,u=t.maxFiles,s=t.onDragEnter,l=t.onDragLeave,f=t.onDragOver,p=t.onDrop,d=t.onDropAccepted,h=t.onDropRejected,m=t.onFileDialogCancel,g=t.onFileDialogOpen,v=t.useFsAccessApi,y=t.autoFocus,b=t.preventDropOnDocument,w=t.noClick,O=t.noKeyboard,x=t.noDrag,k=t.noDragEventsBubbling,S=t.onError,P=t.validator,j=(0,Z.useMemo)((function(){return Cl(n)}),[n]),_=(0,Z.useMemo)((function(){return El(n)}),[n]),E=(0,Z.useMemo)((function(){return"function"==typeof g?g:Ql}),[g]),C=(0,Z.useMemo)((function(){return"function"==typeof m?m:Ql}),[m]),D=(0,Z.useRef)(null),T=(0,Z.useRef)(null),M=Fl((0,Z.useReducer)(Xl,Kl),2),R=M[0],I=M[1],N=R.isFocused,A=R.isFileDialogActive,L=(0,Z.useRef)("undefined"!=typeof window&&window.isSecureContext&&v&&_l()),F=function(){!L.current&&A&&setTimeout((function(){T.current&&(T.current.files.length||(I({type:"closeDialog"}),C()))}),300)};(0,Z.useEffect)((function(){return window.addEventListener("focus",F,!1),function(){window.removeEventListener("focus",F,!1)}}),[T,A,C,L]);var H=(0,Z.useRef)([]),B=function(e){D.current&&D.current.contains(e.target)||(e.preventDefault(),H.current=[])};(0,Z.useEffect)((function(){return b&&(document.addEventListener("dragover",xl,!1),document.addEventListener("drop",B,!1)),function(){b&&(document.removeEventListener("dragover",xl),document.removeEventListener("drop",B))}}),[D,b]),(0,Z.useEffect)((function(){return!r&&y&&D.current&&D.current.focus(),function(){}}),[D,y,r]);var U=(0,Z.useCallback)((function(e){S?S(e):console.error(e)}),[S]),W=(0,Z.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),H.current=[].concat(Ll(H.current),[e.target]),Ol(e)&&Promise.resolve(o(e)).then((function(t){if(!wl(e)||k){var n=t.length,r=n>0&&bl({files:t,accept:j,minSize:i,maxSize:a,multiple:c,maxFiles:u,validator:P});I({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),s&&s(e)}})).catch((function(e){return U(e)}))}),[o,s,U,k,j,i,a,c,u,P]),z=(0,Z.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=Ol(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&f&&f(e),!1}),[f,k]),Y=(0,Z.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=H.current.filter((function(e){return D.current&&D.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),H.current=t,t.length>0||(I({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Ol(e)&&l&&l(e))}),[D,l,k]),V=(0,Z.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=Fl(gl(e,j),2),o=t[0],c=t[1],u=Fl(vl(e,i,a),2),s=u[0],l=u[1],f=P?P(e):null;if(o&&s&&!f)n.push(e);else{var p=[c,l];f&&(p=p.concat(f)),r.push({file:e,errors:p.filter((function(e){return e}))})}})),(!c&&n.length>1||c&&u>=1&&n.length>u)&&(n.forEach((function(e){r.push({file:e,errors:[ml]})})),n.splice(0)),I({acceptedFiles:n,fileRejections:r,type:"setFiles"}),p&&p(n,r,t),r.length>0&&h&&h(r,t),n.length>0&&d&&d(n,t)}),[I,c,j,i,a,u,p,d,h,P]),q=(0,Z.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),H.current=[],Ol(e)&&Promise.resolve(o(e)).then((function(t){wl(e)&&!k||V(t,e)})).catch((function(e){return U(e)})),I({type:"reset"})}),[o,V,U,k]),G=(0,Z.useCallback)((function(){if(L.current){I({type:"openDialog"}),E();var e={multiple:c,types:_};window.showOpenFilePicker(e).then((function(e){return o(e)})).then((function(e){V(e,null),I({type:"closeDialog"})})).catch((function(e){Dl(e)?(C(e),I({type:"closeDialog"})):Tl(e)?(L.current=!1,T.current?(T.current.value=null,T.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 T.current&&(I({type:"openDialog"}),E(),T.current.value=null,T.current.click())}),[I,E,C,v,V,U,_,c]),K=(0,Z.useCallback)((function(e){D.current&&D.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),G()))}),[D,G]),X=(0,Z.useCallback)((function(){I({type:"focus"})}),[]),Q=(0,Z.useCallback)((function(){I({type:"blur"})}),[]),$=(0,Z.useCallback)((function(){w||(Pl()?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 x?null:J(e)},ne=function(e){k&&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,u=e.onClick,s=e.onDragEnter,l=e.onDragOver,f=e.onDragLeave,p=e.onDrop,d=Yl(e,Al);return Wl(Wl(zl({onKeyDown:ee(jl(a,K)),onFocus:ee(jl(i,X)),onBlur:ee(jl(c,Q)),onClick:J(jl(u,$)),onDragEnter:te(jl(s,W)),onDragOver:te(jl(l,z)),onDragLeave:te(jl(f,Y)),onDrop:te(jl(p,q)),role:"string"==typeof o&&""!==o?o:"presentation"},n,D),r||O?{}:{tabIndex:0}),d)}}),[D,K,X,Q,$,W,z,Y,q,O,x,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=Yl(e,Zl);return Wl(Wl({},zl({accept:j,multiple:c,type:"file",style:{display:"none"},onChange:J(jl(r,q)),onClick:J(jl(o,oe)),tabIndex:-1},n,T)),a)}}),[T,n,c,q,r]);return Wl(Wl({},R),{},{isFocused:N&&!r,getRootProps:re,getInputProps:ae,rootRef:D,inputRef:T,open:J(G)})}(Yl(e,Il)),o=r.open,a=Yl(r,Nl);return(0,Z.useImperativeHandle)(t,(function(){return{open:o}}),[o]),L().createElement(Z.Fragment,null,n(Wl(Wl({},a),{},{open:o})))}));Vl.displayName="Dropzone";var ql={disabled:!1,getFilesFromEvent:function(e){return Ns(this,void 0,void 0,(function(){return As(this,(function(t){return Us(e)&&Us(e.dataTransfer)?[2,Ys(e.dataTransfer,e.type)]:function(e){return Us(e)&&Us(e.target)}(e)?[2,Ws(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,zs(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};Vl.defaultProps=ql,Vl.propTypes={children:y().func,accept:y().objectOf(y().arrayOf(y().string)),multiple:y().bool,preventDropOnDocument:y().bool,noClick:y().bool,noKeyboard:y().bool,noDrag:y().bool,noDragEventsBubbling:y().bool,minSize:y().number,maxSize:y().number,maxFiles:y().number,disabled:y().bool,getFilesFromEvent:y().func,onFileDialogCancel:y().func,onFileDialogOpen:y().func,useFsAccessApi:y().bool,autoFocus:y().bool,onDragEnter:y().func,onDragLeave:y().func,onDragOver:y().func,onDrop:y().func,onDropAccepted:y().func,onDropRejected:y().func,onError:y().func,validator:y().func};const Gl=Vl;var Kl={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Xl(e,t){switch(t.type){case"focus":return Wl(Wl({},e),{},{isFocused:!0});case"blur":return Wl(Wl({},e),{},{isFocused:!1});case"openDialog":return Wl(Wl({},Kl),{},{isFileDialogActive:!0});case"closeDialog":return Wl(Wl({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Wl(Wl({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Wl(Wl({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Wl({},Kl);default:return e}}function Ql(){}var $l,Jl,ef,tf,nf,rf,of,af,cf,uf,sf,lf=i(69829),ff=i(40953),pf=$.ZP.section.withConfig({displayName:"StyledSection"})($l||($l=Q()(["\n flex: 1;\n display: flex;\n justify-content: flex-end;\n"]))),df=$.ZP.div.withConfig({displayName:"StyledButtonsWrapper"})(Jl||(Jl=Q()(["\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"])),Lt.Z,te.Z.space(-2)),hf=$.ZP.span.withConfig({displayName:"StyledDropzoneBaseline"})(ef||(ef=Q()(["\n opacity: 0;\n"]))),mf=$.ZP.div.withConfig({displayName:"StyledDropzone"})(tf||(tf=Q()(["\n width: 100%;\n\n &:hover {\n "," {\n background-color: ",";\n }\n }\n"])),Lt.Z,oe.FS.color("backgroundItemHover")),gf=$.ZP.div.withConfig({displayName:"StyledUploadInput"})(nf||(nf=Q()(["\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,et.Z)(),(function(e){return e.immutable?"not-allowed":"pointer"}),oe.FS.color("paper"),(function(e){return e.immutable?ff.v.shade2(e):ff.v.base(e)}),te.Z.space(-2),Lt.Z,te.Z.space(-3.1),te.Z.space(-1.5)),vf=$.ZP.div.withConfig({displayName:"StyledUploadProgress"})(rf||(rf=Q()(["\n && {\n padding-top: ",";\n text-align: center;\n display: inline-block;\n }\n"])),te.Z.space(-2)),yf=(0,$.ZP)(lf.Fe).withConfig({displayName:"StyledUploadProgressText"})(of||(of=Q()(["\n && {\n ","\n }\n"])),(0,et.Z)({fontSize:te.Z.font(-1)})),bf=$.ZP.div.withConfig({displayName:"StyledUploadProgressIconAndText"})(af||(af=Q()(["\n && {\n display: flex;\n justify-content: center;\n align-items: center;\n\n span {\n margin-left: ",";\n }\n }\n"])),te.Z.space(-2)),wf=$.ZP.div.withConfig({displayName:"StyledView"})(cf||(cf=Q()(["\n display: flex;\n justify-content: space-between;\n padding-top: ",";\n"])),te.Z.space(-2));function Of(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 xf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Of(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Of(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const kf=function(e){var t=e.onDrop,n=e.immutable,r=e.text,o=e.onChoose;return(0,G.jsxs)(gf,{immutable:n,children:[(0,G.jsx)(Gl,{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,G.jsx)(pf,{children:(0,G.jsxs)(mf,xf(xf({},t()),{},{children:[(0,G.jsx)("input",xf({},n())),uf||(uf=(0,G.jsx)(ee.Z,{icon:"arrow-to-top"})),sf||(sf=(0,G.jsx)(hf,{children:"Dropzone"}))]}))})}}),o&&(0,G.jsx)(ee.Z,{onClick:function(e){o(),e.stopPropagation()},icon:"folder",label:"browse docs",iconOnly:!0})]})};var Sf=i(73906),Pf=i(23427),jf=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 _f=function(e){var t=e.file,n=e.text;return(0,G.jsxs)(vf,{children:[(0,G.jsx)(Sf.Z,{alt:t.name,caption:t.name,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:t.preview,thumbnailUrl:t.type.startsWith("image")?t.preview:null}),(0,G.jsxs)(bf,{children:[(0,G.jsx)(kt.Z,{position:Pf.Z.position.PREPEND}),(0,G.jsxs)(yf,{children:[n||"uploading"," (",jf(t.size),")"]})]})]})};var Ef=i(28247),Cf=i(41291);function Df(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 Tf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Df(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Df(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Mf=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,G.jsxs)(wf,{className:"StyledView",children:[(0,G.jsx)(Sf.Z,Tf(Tf({alt:n.fileName},c&&{caption:n.fileName}),{},{fileName:n.fileName,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:n.binaryLink,thumbnailUrl:n.thumbnailLink})),(0,G.jsxs)(df,{children:[!o&&(0,G.jsx)(ee.Z,{icon:"trash",onClick:function(){return a(null)},tabIndex:-1,title:i||"delete"}),(0,G.jsx)(ee.Z,{children:(0,G.jsx)(Cf.Z,{neutral:!0,icon:"arrow-to-bottom",target:"_blank",href:Ef.Z.getDownloadUrl(n.binaryLink),tabIndex:-1,title:r||"download"})})]})]})};function Rf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function If(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rf(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Nf=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=U()(i,2),u=c[0],s=c[1];return(0,Z.useEffect)((function(){Kt()(a.current,t)||s({isUploading:!1,previewFile:null}),a.current=t}),[t]),null!=t&&t.binaryLink?(0,G.jsx)(Mf,If(If({},e),{},{deleteTitle:n.delete,downloadTitle:n.download})):u.isUploading?(0,G.jsx)(_f,If({file:u.previewFile,text:n.uploading},e)):(0,G.jsx)(kf,If(If({},e),{},{onDrop:function(e){!function(e){s({isUploading:!0,previewFile:e})}(e),r(e)},onChoose:o}))};Nf.defaultProps={textResources:{}};const Af=Nf;var Zf=function(e){return(0,G.jsx)(Af,{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})};Zf.defaultProps={options:{}};const Lf=Zf;var Ff,Hf,Bf=function(e){return-1*Math.abs(e)},Uf=$.ZP.input.withConfig({displayName:"StyledDurationEdit"})(Ff||(Ff=Q()(["\n &&&& {\n ","\n flex-grow: 0;\n width: ","px;\n min-width: 2.5ch;\n }\n"])),zi,(function(e){return e.width})),Wf=$.ZP.label.withConfig({displayName:"StyledDurationEditFocusable"})(Hf||(Hf=Q()(["\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"])),te.Z.space(1),(function(e){return e.immutable?oe.FS.color("textDisabled"):oe.FS.color("text")}),(function(e){return e.immutable?"not-allowed":"default"})),zf=function(e){var t=e.value,n=e.immutable,r=e.onChange,o=e.options,a=Ja.Z.millisecondsToDuration(t),i=(0,Z.useState)(!1),c=U()(i,2),u=c[0],s=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=Bf(n),o=Bf(o)),60*(n||0)*6e4+6e4*(o||0)):null))):r(null)},f=function(){s(!0)},p=function(e){e.charCode>=48&&e.charCode<=57||45===e.charCode&&!0===o.allowNegative||e.preventDefault()},d=function(){return!0===o.allowNegative?"-?d+":"d+"},h=function(){return u||"number"==typeof t},m=function(e){return 9*(e+"").length},g=n&&Boolean(a.seconds);return(0,G.jsxs)(Wi,{onBlur:function(){s(!1)},immutable:n,children:[(0,G.jsxs)(Wf,{immutable:n,children:[(0,G.jsx)(Uf,{disabled:n,immutable:n,min:!0===o.allowNegative?void 0:0,onChange:function(){},onFocus:f,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");l(t,null)},onKeyPress:p,pattern:d(),step:1,width:m(a.hours),type:"number",value:"number"!=typeof a.hours||0===a.hours&&!n?"":a.hours+""}),h()&&(0,G.jsx)(q.ZP.Span,{children:o.hoursLabel})]}),(0,G.jsxs)(Wf,{immutable:n,children:[(0,G.jsx)(Uf,{disabled:n,immutable:n,min:!0!==o.allowNegative||null!==a.hours&&0!==a.hours?0:void 0,onChange:function(){},onFocus:f,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");l(null,t)},onKeyPress:p,pattern:d(),step:1,width:m(a.minutes),type:"number",value:a.minutes+""}),h()&&(0,G.jsx)(q.ZP.Span,{children:o.minutesLabel})]}),g&&(0,G.jsxs)(Wf,{immutable:n,children:[(0,G.jsx)(Uf,{disabled:n,immutable:n,onChange:function(){},width:m(a.seconds),type:"number",value:a.seconds+""}),h()&&(0,G.jsx)(q.ZP.Span,{children:o.secondsLabel})]})]})};zf.defaultProps={options:{hoursLabel:"hrs",minutesLabel:"min",secondsLabel:"s"}};const Yf=zf;var Vf;const qf=$.ZP.input.attrs((function(e){return{type:"text"}})).withConfig({displayName:"StyledStringEdit"})(Vf||(Vf=Q()(["\n &&&& {\n ","\n }\n"])),zi);const Gf=ys.Z.Debouncer((function(e){return(0,G.jsxs)(Wi,{immutable:e.immutable,children:[(0,G.jsx)(qf,{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,G.jsx)(Vi,{children:(0,G.jsx)(Cf.Z,{href:"mailto:".concat(e.value.toString()),icon:"envelope",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));var Kf=i(2205),Xf=i.n(Kf),Qf=i(99489),$f=i.n(Qf),Jf=i(78718),ep=i.n(Jf);function tp(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 np(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tp(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rp(){rp=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var a=new RegExp(e,r);return t.set(a,o||t.get(e)),$f()(a,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var a=0;void 0===e[o[a]]&&a+1<o.length;)a++;t[n]=e[o[a]]}return t}),Object.create(null))}return Xf()(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var o=n.indices;o&&(o.groups=r(o,this))}return n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var a=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(e,t){var n=a[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var i=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=Wn()(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,i)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},rp.apply(this,arguments)}var op,ap=["key","display","postcode","city","country","latitude","longitude"],ip=function(e){return e*Math.PI/180},cp=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,a=e.latitude,i=e.longitude,c=t?"- ".concat(t):"",u=n?"/ ".concat(n.display):"";return{key:r,display:"".concat(r," ").concat(o," ").concat(c," ").concat(u),postcode:r,city:o,country:n,latitude:ip(a),longitude:ip(i)}};function up(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function sp(){}function lp(e){return!!(e||"").match(/\d/)}function fp(e){return null==e}function pp(e){return"number"==typeof e&&isNaN(e)}function dp(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function hp(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 mp(e,t,n){for(var r="",o=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||o;return r}function gp(e,t){return Array(t+1).join(e)}function vp(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."+gp("0",Math.abs(i))+o:i>=c?o+=gp("0",i-c):o=(o.substring(0,i)||"0")+"."+o.substring(i),n+o}function yp(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,o=hp(e),a=o.beforeDecimal,i=o.afterDecimal,c=o.hasNegation,u=parseFloat("0."+(i||"0")),s=(i.length<=t?"0."+i:u.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}),s[0])+(r?".":"")+mp(s[1]||"",t,n)}function bp(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 wp(e){return Math.max(e.selectionStart,e.selectionEnd)}function Op(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function xp(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 kp(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(lp(e[n])||lp(e[n-1]));return t}function Sp(e,t,n,r,o,a){void 0===a&&(a=sp);var i,c,u=(0,Z.useRef)(),s=(i=function(e){var t,a;return fp(e)||pp(e)?(a="",t=""):"number"==typeof e||n?(a="number"==typeof e?vp(e):e,t=r(a)):(a=o(e,void 0),t=e),{formattedValue:t,numAsString:a}},(c=(0,Z.useRef)(i)).current=i,(0,Z.useRef)((function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return c.current.apply(c,e)})).current),l=(0,Z.useState)((function(){return s(t)})),f=l[0],p=l[1];return(0,Z.useMemo)((function(){fp(e)?u.current=void 0:(u.current=s(e),p(u.current))}),[e,s]),[f,function(e,t){p({formattedValue:e.formattedValue,numAsString:e.value}),a(e,t)}]}function Pp(e){return e.replace(/[^0-9]/g,"")}function jp(e){return e}function _p(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=jp);var c=e.removeFormatting;void 0===c&&(c=Pp);var u=e.defaultValue,s=e.valueIsNumericString,l=e.onValueChange,f=e.isAllowed,p=e.onChange;void 0===p&&(p=sp);var d=e.onKeyDown;void 0===d&&(d=sp);var h=e.onMouseUp;void 0===h&&(h=sp);var m=e.onFocus;void 0===m&&(m=sp);var g=e.onBlur;void 0===g&&(g=sp);var v=e.value,y=e.getCaretBoundary;void 0===y&&(y=kp);var b=e.isValidInputCharacter;void 0===b&&(b=lp);var w=up(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter"]),O=Sp(v,u,Boolean(s),i,c,l),x=O[0],k=x.formattedValue,S=x.numAsString,P=O[1],j=(0,Z.useRef)();(0,Z.useEffect)((function(){var e=i(S);if(void 0===j.current||e!==j.current){var t=D.current,n=c(e,void 0);F({formattedValue:e,numAsString:n,input:t,setCaretPosition:!0,source:op.props,event:void 0})}}));var _=(0,Z.useState)(!1),E=_[0],C=_[1],D=(0,Z.useRef)(null),T=(0,Z.useRef)({setCaretTimeout:null,focusTimeout:null});(0,Z.useEffect)((function(){return C(!0),function(){clearTimeout(T.current.setCaretTimeout),clearTimeout(T.current.focusTimeout)}}),[]);var M=i,R=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},I=function(e,t,n){bp(e,t),T.current.setCaretTimeout=setTimeout((function(){e.value===n&&bp(e,t)}),0)},N=function(e,t,n){return xp(e,t,y(e),n)},A=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 u=n.length,s=e.length,l={},f=new Array(u),p=0;p<u;p++){f[p]=-1;for(var d=0,h=s;d<h;d++)if(n[p]===e[d]&&!0!==l[d]){f[p]=d,l[d]=!0;break}}for(var m=r;m<u&&(-1===f[m]||!a(n[m]));)m++;var g=m===u||-1===f[m]?s:f[m];for(m=r-1;m>0&&-1===f[m];)m--;var v=-1===m||-1===f[m]?0:f[m]+1;return v>g?g:r-v<g-r?v:g}(t,k,e,n,r,b);return o=xp(t,o,r)},F=function(e){var t=e.formattedValue;void 0===t&&(t="");var n=e.input,r=e.setCaretPosition;void 0===r&&(r=!0);var o=e.source,a=e.event,i=e.numAsString,c=e.caretPos;if(n){if(void 0===c&&r){var u=e.inputValue||n.value,s=wp(n);n.value=t,c=A(u,t,s)}n.value=t,r&&void 0!==c&&I(n,c,t)}t!==k&&function(e,t){j.current=e.formattedValue,P(e,t)}(R(t,i),{event:a,source:o})},H=!E||"undefined"==typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",B=Object.assign({inputMode:H},w,{type:t,value:k,onChange:function(e){(function(e,t,n){var r=function(e,t){for(var n=0,r=0,o=e.length,a=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[a-1-r]&&a-r>n&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:a-r}}}(k,e),o=Object.assign(Object.assign({},r),{lastValue:k}),a=c(e,o),i=M(a);if(a=c(i,void 0),f&&!f(R(i,a))){var u=t.target,s=wp(u),l=A(e,k,s);return I(u,l,k),!1}return F({formattedValue:i,numAsString:a,inputValue:e,event:t,source:n,setCaretPosition:!0,input:t.target}),!0})(e.target.value,e,op.event)&&p(e)},onKeyDown:function(e){var t,n=e.target,r=e.key,o=n.selectionStart,a=n.selectionEnd,i=n.value;if(void 0===i&&(i=""),"ArrowLeft"===r||"Backspace"===r?t=Math.max(o-1,0):"ArrowRight"===r?t=Math.min(o+1,i.length):"Delete"===r&&(t=o),void 0!==t&&o===a){var c=t;if("ArrowLeft"===r||"ArrowRight"===r)c=N(i,t,"ArrowLeft"===r?"left":"right");else"Delete"!==r||b(i[t])?"Backspace"!==r||b(i[t])||(c=N(i,t,"left")):c=N(i,t,"right");c!==t&&I(n,c,i),e.isUnitTestRun&&I(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=N(o,n);a!==n&&I(t,a,o)}h(e)},onFocus:function(e){e.persist&&e.persist();var t=e.target;D.current=t,T.current.focusTimeout=setTimeout((function(){var n=t.selectionStart,r=t.selectionEnd,o=t.value;void 0===o&&(o="");var a=N(o,n);a===n||0===n&&r===o.length||I(t,a,o),m(e)}),0)},onBlur:function(e){D.current=null,clearTimeout(T.current.focusTimeout),clearTimeout(T.current.setCaretTimeout),g(e)}});if("text"===n)return o?L().createElement(L().Fragment,null,o(k,w)||null):L().createElement("span",Object.assign({},w,{ref:a}),k);if(r){var U=r;return L().createElement(U,Object.assign({},B,{ref:a}))}return L().createElement("input",Object.assign({},B,{ref:a}))}function Ep(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix;void 0===o&&(o="");var a=t.suffix;void 0===a&&(a="");var i=t.allowNegative,c=t.thousandsGroupStyle;if(void 0===c&&(c="thousand"),""===e||"-"===e)return e;var u=Cp(t),s=u.thousandSeparator,l=u.decimalSeparator,f=0!==n&&-1!==e.indexOf(".")||n&&r,p=hp(e,i),d=p.beforeDecimal,h=p.afterDecimal,m=p.addNegation;return void 0!==n&&(h=mp(h,n,!!r)),s&&(d=function(e,t,n){var r=function(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}(n),o=e.search(/[1-9]/);return o=-1===o?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(r,"$1"+t)}(d,s,c)),o&&(d=o+d),a&&(h+=a),m&&(d="-"+d),e=d+(f&&l||"")+h}function Cp(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 Dp(e,t,n){var r;void 0===t&&(t=Op(e));var o=n.allowNegative,a=n.prefix;void 0===a&&(a="");var i=n.suffix;void 0===i&&(i="");var c=n.decimalScale,u=t.from,s=t.to,l=s.start,f=s.end,p=Cp(n),d=p.allowedDecimalSeparators,h=p.decimalSeparator,m=e[f]===h;if(lp(e)&&(e===a||e===i)&&""===t.lastValue)return e;if(f-l==1&&-1!==d.indexOf(e[l])){var g=0===c?"":h;e=e.substring(0,l)+g+e.substring(l+1,e.length)}var v=function(e,t,n){var r=!1,o=!1;a.startsWith("-")?r=!1:e.startsWith("--")?(r=!1,o=!0):i.startsWith("-")&&e.length===i.length?r=!1:"-"===e[0]&&(r=!0);var c=r?1:0;return o&&(c=2),c&&(e=e.substring(c),t-=c,n-=c),{value:e,start:t,end:n,hasNegation:r}},y=v(e,l,f),b=y.hasNegation;e=(r=y).value,l=r.start,f=r.end;var w=v(t.lastValue,u.start,u.end),O=w.start,x=w.end,k=w.value,S=e.substring(l,f);!(e.length&&k.length&&(O>k.length-i.length||x<a.length))||S&&i.startsWith(S)||(e=k);var P=0;e.startsWith(a)?P+=a.length:l<a.length&&(P=l),f-=P;var j=(e=e.substring(P)).length,_=e.length-i.length;e.endsWith(i)?j=_:(f>_||f>e.length-i.length)&&(j=f),e=e.substring(0,j);var E=(e=((e=function(e,t){void 0===e&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),a=r.test(e);return e=e.replace(/-/g,""),o&&!a&&t&&(e="-"+e),e}(b?"-"+e:e,o)).match(function(e,t){return new RegExp("(^-)|[0-9]|"+dp(e),t?"g":void 0)}(h,!0))||[]).join("")).indexOf(h),C=hp(e=e.replace(new RegExp(dp(h),"g"),(function(e,t){return t===E?".":""})),o),D=C.beforeDecimal,T=C.afterDecimal,M=C.addNegation;return s.end-s.start<u.end-u.start&&""===D&&m&&!parseFloat(T)&&(e=M?"-":""),e}function Tp(e){var t=(e=function(e){var t=Cp(e),n=t.thousandSeparator,r=t.decimalSeparator,o=e.prefix;void 0===o&&(o="");var a=e.allowNegative;if(void 0===a&&(a=!0),n===r)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+n+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+r+" (default value for decimalSeparator is .)\n ");return o.startsWith("-")&&a&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+o+"\n allowNegative: "+a+"\n "),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}(e)).decimalSeparator;void 0===t&&(t=".");e.allowedDecimalSeparators,e.thousandsGroupStyle,e.suffix;var n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;void 0===o&&(o=sp);var a=e.onBlur;void 0===a&&(a=sp);var i=e.thousandSeparator,c=e.decimalScale,u=e.fixedDecimalScale,s=e.prefix;void 0===s&&(s="");var l=e.defaultValue,f=e.value,p=e.valueIsNumericString,d=e.onValueChange,h=up(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=function(t){return Ep(t,e)},g=function(t,n){return Dp(t,n,e)},v=p;fp(f)?fp(l)||(v=null!=p?p:"number"==typeof l):v=null!=p?p:"number"==typeof f;var y=function(e){return fp(e)||pp(e)?e:("number"==typeof e&&(e=vp(e)),v&&"number"==typeof c?yp(e,c,Boolean(u)):e)},b=Sp(y(f),y(l),Boolean(v),m,g,d),w=b[0],O=w.numAsString,x=w.formattedValue,k=b[1];return Object.assign(Object.assign({},h),{value:x,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===t||lp(e)},onValueChange:k,format:m,removeFormatting:g,getCaretBoundary:function(t){return function(e,t){var n=t.prefix;void 0===n&&(n="");var r=t.suffix;void 0===r&&(r="");var o=Array.from({length:e.length+1}).map((function(){return!0})),a="-"===e[0];o.fill(!1,0,n.length+(a?1:0));var i=e.length;return o.fill(!1,i-r.length+1,i+1),o}(t,e)},onKeyDown:function(t){var r=t.target,a=t.key,l=r.selectionStart,f=r.selectionEnd,p=r.value;if(void 0===p&&(p=""),l===f){"Backspace"===a&&"-"===p[0]&&l===s.length+1&&n&&bp(r,1);var d=Cp(e),h=d.decimalSeparator,m=d.allowedDecimalSeparators;"Backspace"===a&&p[l-1]===h&&c&&u&&(bp(r,l-1),t.preventDefault()),(null==m?void 0:m.includes(a))&&p[l]===h&&bp(r,l+1);var g=!0===i?",":i;"Backspace"===a&&p[l-1]===g&&bp(r,l-1),"Delete"===a&&p[l]===g&&bp(r,l+1),o(t)}else o(t)},onBlur:function(t){var n=O;if(n.match(/\d/g)||(n=""),r||(n=function(e){if(!e)return e;var t="-"===e[0];t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",o=n[1]||"";return(t?"-":"")+r+(o?"."+o:"")}(n)),u&&c&&(n=yp(n,c,u)),n!==O){var o=Ep(n,e);k({formattedValue:o,value:n,floatValue:parseFloat(n)},{event:t,source:op.event})}a(t)}})}function Mp(e){var t=Tp(e);return L().createElement(_p,Object.assign({},t))}!function(e){e.event="event",e.props="prop"}(op||(op={}));var Rp,Ip=["immutable"];function Np(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 Ap=(0,$.ZP)((function(e){e.immutable;var t=nr()(e,Ip);return(0,G.jsx)(Mp,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Np(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Np(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t))})).withConfig({displayName:"StyledNumberEdit"})(Rp||(Rp=Q()(["\n &&&& {\n ","\n }\n"])),zi);function Zp(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 Lp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zp(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fp=function(e){return 0!==e?Math.ceil(Math.log10(Math.abs(e)+1)):1},Hp=function(e){return null!=e&&!isNaN(parseFloat(e))},Bp=function(e,t,n){return!Hp(n)||!(Hp(t)&&n>t)&&!(Hp(e)&&n<e)},Up=function(e,t){return function(n){var r=n.floatValue;return Fp(r)<Fp(e)||Bp(e,t,r)}};const Wp=(0,x.ZP)(ys.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,u=a.minValue,s=a.maxValue,l=a.allowNegative,f=a.fixedDecimalScale,p=a.suffix,d=a.prefix,h=a.format,m=function(e,t,n){if(e){var r=Math.pow(10,e)-(t?1/Math.pow(10,t):1);return n&&n>r?n:r}return n}(i,c,s),g=Lp(Lp({isAllowed:Up(u,m),allowNegative:!!l},isNaN(c)?{}:{decimalScale:c}),{},{fixedDecimalScale:!!f});return(0,G.jsx)(Wi,{immutable:e.immutable,children:(0,G.jsx)(Ap,Lp(Lp({decimalSeparator:o,disabled:e.immutable,id:e.id,valueIsNumericString:!0,name:e.name,onValueChange:function(t){e.onChange&&Bp(u,m,t.floatValue)&&e.onChange(void 0!==t.floatValue?t.floatValue:null)},immutable:e.immutable,thousandSeparator:r,value:e.value,suffix:p,prefix:d},g),{},{format:h,placeholder:e.placeholder,onBlur:function(t){var n,r=!(n=t.target.value)||isNaN(n)?null:parseFloat(n);e.onChange&&!Bp(u,m,r)&&(t.target.value=null)}}))})}),800));const zp=ys.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,u=r||{},s=u.minValue,l=u.maxValue,f=u.format,p=u.allowLeadingZeros,d=u.suffix;return(0,G.jsx)(Wi,{immutable:o,children:(0,G.jsx)(Ap,{isAllowed:Up(s,l),allowNegative:!0,decimalScale:0,disabled:o,id:i,name:a,onValueChange:function(e){var t=e.value,r=e.floatValue,o=p?t:r;void 0===o&&(o=null),Bp(s,l,r)&&n(o)},value:t,allowLeadingZeros:p,suffix:d,format:f,placeholder:c})})}),800);var Yp,Vp,qp,Gp=$.ZP.div.withConfig({displayName:"StyledWrapper"})(Yp||(Yp=Q()(["\n display: flex;\n justify-content: stretch;\n"]))),Kp=$.ZP.div.withConfig({displayName:"StyledLocationWrapper"})(Vp||(Vp=Q()(["\n flex-grow: 1;\n"]))),Xp=$.ZP.div.withConfig({displayName:"StyledDistanceWrapper"})(qp||(qp=Q()(["\n width: 50px;\n border-left: 1px solid ",";\n margin-left: ",";\n padding-left: ",";\n"])),oe.FS.color("border"),te.Z.space(-.8),te.Z.space(.5));function Qp(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 $p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qp(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Jp=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.onChange,a=e.options,i=void 0===a?{}:a,c=i.suggestions,u=i.isLoading,s=i.fetchSuggestions,l=i.latitudeField,f=i.longitudeField,p=i.emptySearchText,d=i.noResultsText,h=i.kmSuffixText,m=r?r.distance:0,g=function(e){return null!=e&&e.latitude&&null!=e&&e.longitude?ep()(e,ap):void 0}(r),v=function(e){return e?e.map(cp):[]}(c);return(0,G.jsxs)(Gp,{children:[(0,G.jsx)(Kp,{children:(0,G.jsx)(Ea,{id:t,immutable:n,onChange:function(e){o($p($p({},function(e,t){return t?np(np({},e),ep()(t,ap)):Yn()(e,ap)}(r,e)),{},{latitudeField:l,longitudeField:f}))},isLoading:u,options:v,searchOptions:function(e){var t=function(e){if(!e)return null;var t=H()(e.matchAll(rp(/([\d]*)([^\d\s]*)/g,{postcode:1,city:2}))).map((function(e){return e.groups})),n=t.find((function(e){return e.postcode})),r=t.find((function(e){return e.city}));return np(np({},r?{city:r.city}:{}),n?{postcode:n.postcode}:{})}(e);s(t,null)},fetchOptions:function(e){e||s(null,null)},value:g,noResultsComp:function(e){return e.inputValue?d:p}})}),(0,G.jsx)(Xp,{children:(0,G.jsx)(zp,{value:m,onChange:function(e){o($p($p({},r),{},{distance:e}))},immutable:n,options:{minValue:0,maxValue:100,suffix:" ".concat(h)}})})]})};var ed,td=(0,Z.lazy)((function(){return i.e(85).then(i.bind(i,17676))})),nd=function(e){var t=e.onChange,n=e.immutable,r=e.value,o=e.options;if(n)return(0,G.jsx)(q.ZP.Span,{children:(0,G.jsx)("div",{dangerouslySetInnerHTML:{__html:r}})});var a=o||{},i=a.contentLang,c=a.ckEditorConfig;return(0,G.jsx)(Z.Suspense,{fallback:ed||(ed=(0,G.jsx)("i",{})),children:(0,G.jsx)(td,{onChange:function(e){t&&t(e)},value:r,contentLang:i,ckEditorConfig:c})})};nd.defaultProps={value:""};const rd=nd;var od=i(58808),ad=i.n(od),id=i(41505),cd=i.n(id),ud=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},sd=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},ld=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},fd={outline:"none"},pd=function(e){function t(){var n,r;ud(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=ld(this,e.call.apply(e,[this].concat(a))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=L().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)},ld(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?L().cloneElement(e({focused:t,getRef:this.ref}),n):L().createElement("div",sd({ref:this.ref,style:fd},n),e)},t}(L().Component);pd.propTypes={children:cd().oneOfType([cd().node,cd().func]).isRequired,onBlur:cd().func,onFocus:cd().func},pd.defaultProps={onBlur:function(){},onFocus:function(){}};const dd=pd;var hd,md,gd,vd=$.ZP.div.withConfig({displayName:"StyledLocationEdit"})(hd||(hd=Q()(["\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"])),Ui,te.Z.space(-2),te.Z.space(-2),(function(e){var t=e.immutable,n=e.theme;return t?Xe()(n,"colors.textDisabled"):Xe()(n,"colors.text")}),zi,oe.FS.color("paper"),oe.FS.color("signal.info"),oe.FS.color("secondaryLight"),oe.FS.color("backgroundItemHover"));function yd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yd(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const wd=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]}},u=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,a=t?"- ".concat(t):"",i=n?"/ ".concat(n.display):"";return(0,G.jsxs)(q.ZP.Span,{children:[r," ",o," ",a," ",i]})},s=function(e){return function(n,o){var a=o.newValue;t(bd(bd({},r),{},g()({},e,a)))}},l=function(e,n){var r=n.suggestion;t(r)},f=function(e){return function(t){var r=t.value;n.fetchSuggestions(g()({},e,r),n.locationValues.country)}},p={id:o,value:r.postcode||"",onChange:s("postcode"),disabled:a},d={value:r.city||"",onChange:s("city"),disabled:a};return(0,G.jsx)(dd,{children:function(e){var t,o,s,h=e.focused,m=e.getRef;return(0,G.jsxs)(vd,{immutable:a,name:i,ref:m,children:[(0,G.jsx)(ad(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:f("postcode"),getSuggestionValue:c("postcode"),renderSuggestion:u,onSuggestionsClearRequested:function(){},inputProps:p,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!a}}),(h||r.city||r.postcode)&&(md||(md=(0,G.jsx)(q.ZP.Span,{children:"/"}))),(0,G.jsx)(ad(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:f("city"),getSuggestionValue:c("city"),renderSuggestion:u,onSuggestionsClearRequested:function(){},inputProps:d,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!a}}),(0,G.jsxs)(Vi,{children:[n.isLoading&&(gd||(gd=(0,G.jsx)(kt.Z,{size:"1.8rem"}))),(s=n.locationValues,Boolean(s.city||s.postcode)&&(0,G.jsx)(Cf.Z,{href:(t=n.locationValues,o=t?Object.values(t).filter(Boolean).map((function(e){return"object"===Wn()(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 Od(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 xd=function(e){return(0,G.jsx)(Ea,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Od(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Od(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 kd(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 Sd=function(e){return(0,G.jsx)(Ea,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kd(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kd(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 Pd,jd=i(48926),_d=i.n(jd),Ed=i(87757),Cd=i.n(Ed);const Dd=$.ZP.input.attrs((function(e){return{type:"tel"}})).withConfig({displayName:"StyledPhoneEdit"})(Pd||(Pd=Q()(["\n &&&& {\n ","\n }\n"])),zi);const Td=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,a=e.onLibLoaded,c=Xe()(e,"options.defaultCountry")||"CH",u=(0,Z.useState)(null),s=U()(u,2),l=s[0],f=s[1],p=L().createRef();(0,Z.useEffect)((function(){(function(){var e=_d()(Cd().mark((function e(){var t;return Cd().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([i.e(631),i.e(877)]).then(i.bind(i,41866));case 2:t=e.sent,f(t),a&&a();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[a]);var d=function(e,t){var n=e.substring(0,t-1).match(/\s/g);return(null==n?void 0:n.length)||0},h=n&&null!=l&&l.AsYouType?new l.AsYouType(c).input(n):n||"";return(0,G.jsxs)(Wi,{immutable:r,children:[(0,G.jsx)(Dd,{disabled:r||!l,id:o,name,onChange:function(e){var r=e.target.value,o=l?l.parseNumber(r,c):r,a=br()(o)?new l.AsYouType(c).input(r).replace(/\s/g,""):l.formatNumber(o,"E.164");t(a);var i=e.target.selectionStart;!function(e,t,n){if(n&&e.length!==n){var r=new l.AsYouType(c).input(t),o=new l.AsYouType(c).input(e),a=d(r,n),i=d(o,n)-a;window.requestAnimationFrame(function(){var e=n+i;this.setSelectionRange(e,e)}.bind(p.current))}}(r,n,i)},immutable:r||!l,ref:p,value:h}),h&&(0,G.jsx)(Vi,{children:(0,G.jsx)(Cf.Z,{href:"tel:".concat(n),icon:"phone",tabIndex:-1,target:"_blank",neutral:!0})})]})};function Md(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Md(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Md(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Id=function(e){return e.map((function(e){return ep()(e,["key","display"])}))};const Nd=function(e){var t=e.id,n=e.immutable,r=e.onChange,o=e.options.isMulti,a=e.value;return(0,G.jsx)(Ea,{id:t,immutable:n,isMulti:o,onChange:function(e){var t=o?e.map((function(e){return e.key})):[null==e?void 0:e.key],n=a.options.map((function(e){return Rd(Rd({},e),t.includes(e.key)?{selected:!0}:{selected:!1})}));r({options:n})},value:Id(a.options.filter((function(e){return e.selected}))),openMenuOnClick:!0,options:Id(a.options)})};function Ad(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Zd=function(e){return(0,G.jsx)(Ea,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ad(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ad(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 Ld(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 Fd=function(e){return(0,G.jsx)(Ea,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ld(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ld(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 Hd(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 Bd=function(e){return(0,G.jsx)(Ea,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hd(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hd(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 Ud=ys.Z.Debouncer((function(e){return(0,G.jsx)(Wi,{immutable:e.immutable,children:(0,G.jsx)(qf,{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 Wd=function(){var e,t=(null===(e=navigator)||void 0===e?void 0:e.userAgent)||"";return/^((?!chrome|android).)*safari/i.test(t)};var zd,Yd,Vd,qd=(0,$.iv)(zd||(zd=Q()(["\n ","\n width: 100%;\n grid-area: 1 / 1 / 2 / 2;\n max-height: 25rem;\n box-sizing: border-box;\n"])),zi),Gd=$.ZP.div.withConfig({displayName:"StyledSizeWrapper"})(Yd||(Yd=Q()(["\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"])),qd),Kd=$.ZP.textarea.withConfig({displayName:"StyledTextarea"})(Vd||(Vd=Q()(["\n &&&& {\n ","\n resize: none;\n margin: 0;\n min-height: 4em;\n }\n"])),qd);function Xd(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 Qd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xd(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const $d=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),u=U()(c,2),s=u[0],l=u[1],f=!Wd(),p=(0,Z.useCallback)(kr()(l,500,{trailing:!0}),[]);return(0,Z.useEffect)((function(){f&&p(t)}),[t,f,p]),(0,G.jsx)(Gd,Qd(Qd({"data-testid":"replicated-test"},f?{"data-replicated-value":s}:{}),{},{children:(0,G.jsx)(Kd,{value:t,name:r,id:o,onChange:n,disabled:a,immutable:i,rows:"1"})}))};const Jd=ys.Z.Debouncer((function(e){return(0,G.jsx)(Wi,{immutable:e.immutable,children:(0,G.jsx)($d,{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 eh;const th=$.ZP.input.withConfig({displayName:"StyledTimeEdit"})(eh||(eh=Q()(["\n &&&& {\n ","\n }\n"])),zi);function nh(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 rh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nh(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const oh=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,a=e.name,i=ks(n,t),c=i.inputProps,u=i.clearButtonProps,s=n&&!r;return(0,G.jsxs)(Wi,{immutable:r,children:[(0,G.jsx)(th,rh({type:"text",disabled:r,id:o,immutable:r,name:a},c)),s&&(0,G.jsx)(Vi,{children:(0,G.jsx)($e.Z,rh(rh({icon:"times"},u),{},{tabIndex:-1}))})]})};var ah;const ih=$.ZP.input.attrs((function(e){return{type:"url"}})).withConfig({displayName:"StyledUrlEdit"})(ah||(ah=Q()(["\n &&&& {\n ","\n }\n"])),zi);const ch=ys.Z.Debouncer((function(e){return(0,G.jsxs)(Wi,{immutable:e.immutable,children:[(0,G.jsx)(ih,{disabled:e.immutable,id:e.id,immutable:e.immutable,name:e.name,onChange:function(t){return e.onChange((n=t.target.value,r=/^[a-zA-Z0-9]+:\/\//.test(n),n.indexOf(".")>0&&!r?"https://".concat(n):n));var n,r},value:e.value}),e.value&&(0,G.jsx)(Vi,{children:(0,G.jsx)(Cf.Z,{href:e.value,icon:"external-link",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));function uh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uh(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var lh={boolean:Ma,"boolean-select":Ca,choice:Ua,code:Qa,date:Ms,datetime:Is,document:Lf,duration:Yf,email:Gf,geosearch:Jp,html:rd,integer:zp,location:wd,"multi-remote":xd,"multi-select":Sd,number:Wp,phone:Td,"pseudo-select":Nd,remote:Zd,"search-filter":Fd,"single-select":Bd,string:Ud,text:Jd,url:ch,time:oh};const fh=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.id,a=e.events,i=e.placeholder,c=e.readOnly,u=void 0!==c&&c;if(lh[t]){var s=lh[t],l=sh(sh({},Yn()(a,"onChange")),{},{onBlur:function(){"function"==typeof(null==a?void 0:a.onBlur)&&a.onBlur(n)}});return(0,G.jsx)("div",sh(sh({},l),{},{"data-cy":"form-field",children:(0,G.jsx)(s,sh(sh({value:n,onChange:null==a?void 0:a.onChange},br()(r)?{}:{options:r}),{},{id:o,immutable:u,placeholder:i,events:a}))}))}return console.log("No type-editor defined for component type",t),null};function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ph(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ph(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const hh=function(e){return(0,G.jsx)(qi,{children:(0,G.jsx)(fh,dh({componentType:e.type},Yn()(e,"type")))})};function mh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mh(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vh="yyyy-MM-dd",yh=function(e){return rs(e,vh)?es(e,vh,new Date):rs(e,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")||rs(e,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")?os(new Date(e)):null};const bh={datetime:{type:"date",toRange:function(e){return{from:e?yh(e).toISOString():null,to:e?function(e,t){(0,yi.Z)(2,arguments);var n=(0,nc.Z)(e),r=(0,bi.Z)(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}(yh(e),1).toISOString():null,isRangeValue:!0}},fromRange:function(e){return null!=e&&e.from?(0,vs.Z)(new Date(e.from),vh):null!=e&&e.to?(0,vs.Z)(new Date(e.to),vh):null},getToOptions:function(e,t){return gh(gh({},e),{},{datePickerOptions:gh({minDate:t},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,t){return gh(gh({},e),{},{datePickerOptions:gh({maxDate:t},null==e?void 0:e.datePickerOptions)})}},date:{getToOptions:function(e,t){return gh(gh({},e),{},{datePickerOptions:gh({minDate:t},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,t){return gh(gh({},e),{},{datePickerOptions:gh({maxDate:t},null==e?void 0:e.datePickerOptions)})}}};var wh,Oh,xh,kh,Sh,Ph=$.ZP.div.withConfig({displayName:"StyledIconWrapper"})(wh||(wh=Q()(["\n font-size: ",";\n"])),te.Z.font(-2.7)),jh=$.ZP.div.withConfig({displayName:"StyledRange"})(Oh||(Oh=Q()(["\n display: flex;\n align-items: baseline;\n"]))),_h=$.ZP.div.withConfig({displayName:"StyledInput"})(xh||(xh=Q()(["\n flex: 1;\n display: flex;\n flex-direction: column;\n"]))),Eh=(0,$.ZP)($e.Z).withConfig({displayName:"StyledBall"})(kh||(kh=Q()(["\n position: relative;\n top: 0.5px; // offset false vertical alignment\n"])));function Ch(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ch(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ch(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Th=function(e){var t=e.value,n=e.events,r=e.readOnly,o=e.type,a=e.options,i=e.fromText,c=e.toText,u=bh[o],s=(null==t?void 0:t.isRangeValue)||!1,l=(0,Z.useRef)(t);l.current=t;var f=(0,Z.useMemo)((function(){return Dh(Dh({},n),{},{onChange:n.onChange})}),[n]),p={onChange:function(e){n.onChange(Dh(Dh({},l.current),{},{to:e}))}},d={onChange:function(e){n.onChange(Dh(Dh({},l.current),{},{from:e}))}},h=(null==u?void 0:u.type)||o,m=(0,G.jsx)(hh,Dh(Dh({type:h},Yn()(e,["type"])),{},{events:f})),g=(0,G.jsxs)(_h,{children:[(0,G.jsx)(hh,Dh(Dh({},e),{},{options:function(e,t){return null!=u&&u.getFromOptions?u.getFromOptions(e,t):e}(a,null==t?void 0:t.to),value:(null==t?void 0:t.from)||null,events:d,placeholder:i})),Sh||(Sh=(0,G.jsx)(Ph,{children:(0,G.jsx)(V.Z,{icon:"horizontal-rule"})})),(0,G.jsx)(hh,Dh(Dh({},e),{},{options:function(e,t){return null!=u&&u.getToOptions?u.getToOptions(e,t):e}(a,null==t?void 0:t.from),value:(null==t?void 0:t.to)||null,events:p,placeholder:c}))]});return(0,G.jsxs)(jh,{children:[s?g:m,(0,G.jsx)(Eh,{disabled:r,icon:s?"square-minus":"square-plus",onClick:function(){var e=s?function(e){return null!=u&&u.fromRange?u.fromRange(e):(null==e?void 0:e.from)||(null==e?void 0:e.to)||null}(t):function(e){return null!=u&&u.toRange?u.toRange(e):{from:e,to:e,isRangeValue:!0}}(t);n.onChange(e)}})]})};function Mh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mh(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ih=function(e){var t,n=e.componentType,r=e.mappingType,o=e.range,a=e.formField,i=e.entityField,c=e.formName,u=e.value,s=e.info,l=e.events,f=e.formData,p=a.dataType||a.componentType,d=null===(t=gr[r||"editable"])||void 0===t?void 0:t[p],h=function(e,t,n,r,o){return null!=e&&e.getOptions?e.getOptions({formField:t,formName:n,formData:r,entityField:o}):{}}(d,a,c,f,i),m=function(e,t,n,r,o,a){return null!=e&&e.getValue?e.getValue({formField:t,formName:n,formData:r,entityField:o,value:a}):a}(d,a,c,f,i,u),g=function(e,t,n,r,o,a){return null!=e&&e.getEvents?e.getEvents({formField:t,formName:n,formData:r,entityField:o,events:a}):a}(d,a,c,f,i,l),v=o?Th:hh;return(0,G.jsx)(v,Rh(Rh({type:n,events:g,value:m},s),{},{options:h},o&&{fromText:f.intl.formatMessage({id:"client.component.range.from"}),toText:f.intl.formatMessage({id:"client.component.range.to"})}))};const Nh=function(e,t){return function(n){return(0,G.jsx)(Ih,Rh({componentType:e,range:t},n))}};var Ah=i(42060);const Zh={dataContainerProps:function(){return{tooltips:["Resource"],navigationStrategy:!0}},getOptions:function(e){var t=e.formData;return t?{downloadTitle:t.intl.formatMessage({id:"client.component.upload.downloadTitle"}),tooltips:Xe()(t.tooltips,"Resource",null),loadTooltip:function(e){return t.loadTooltip("Resource",e)}}:{}}},Lh={dataContainerProps:function(e){return{tooltips:[e.formField.targetEntity],navigationStrategy:!0}},getOptions:function(e){var t=e.formField,n=e.formData;return{tooltips:Xe()(n.tooltips,t.targetEntity,null),loadTooltip:function(e){return n.loadTooltip(t.targetEntity,e)},navigationStrategy:n.navigationStrategy,linkProps:{entityName:t.targetEntity}}}},Fh={binary:Zh,document:Zh,image:Zh,"multi-remote-field":Lh,"single-remote-field":Lh,description:{getOptions:function(e){var t=e.formField;return{mode:t.mode,title:t.title}},getValue:function(e){return e.formField.text}},number:{getOptions:function(e){var t=e.formField;return{postPointDigits:Xe()(t,"validation.decimalDigits.postPointDigits",null)}}},moneyamount:{getOptions:function(e){var t=e.formField;return{postPointDigits:Xe()(t,"validation.decimalDigits.postPointDigits",2)}}},percent:{getValue:function(e){return e.value/100},getOptions:function(e){var t=e.formField;return{postPointDigits:Xe()(t,"validation.decimalDigits.postPointDigits",null)}}}};function Hh(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 Bh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hh(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Uh=function(e){var t=e.componentType,n=e.formField,r=e.value,o=e.formData,a=e.key,i=e.breakWords,c=n.dataType||n.componentType,u=Fh[c],s=function(e,t,n){return null!=e&&e.getOptions?e.getOptions({formField:t,formData:n}):{}}(u,n,o),l=function(e,t,n,r){return null!=e&&e.getValue?e.getValue({formField:t,formData:n,value:r}):r}(u,n,o,r);return(0,G.jsx)(Ah.Z,{type:t,value:l,options:s,breakWords:i},a)};const Wh=function(e){return function(t){return(0,G.jsx)(Uh,Bh(Bh({},t),{},{componentType:e}))}};function zh(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 Yh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zh(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Vh={binary:Nh("document"),birthdate:Nh("date"),boolean:Nh("boolean"),char:Nh("string"),choice:Nh("choice"),code:Nh("code"),count:Nh("string"),counter:Nh("integer"),createts:Nh("datetime"),createuser:Nh("string"),"compressed-text":Nh("text"),date:Nh("date"),datetime:Nh("datetime"),decimal:Nh("number"),display:Wh("html"),description:Wh("description"),document:Nh("document"),double:Nh("number"),duration:Nh("duration"),email:Nh("email"),"fulltext-search":Nh("string"),html:Nh("html"),image:Nh("document"),identifier:Nh("string"),integer:Nh("integer"),ipaddress:Nh("string"),latitude:Nh("string"),location:Nh("location"),login:Nh("string"),long:Nh("integer"),longitude:Nh("string"),marking:Nh("boolean"),moneyamount:Nh("number"),"multi-remote-field":Nh("multi-remote"),"multi-select-box":Nh("multi-select"),"named-upload":Nh("document"),percent:Nh("number"),phone:Nh("phone"),postcode:Nh("string"),"pseudo-select":Nh("pseudo-select"),"pulldown-date":Nh("date"),"search-filter":Nh("search-filter"),serial:Nh("string"),"single-remote-field":Nh("remote"),"single-select-box":Nh("single-select"),sorting:Nh("integer"),string:Nh("string"),text:Nh("text"),"text-area":Nh("text"),time:Nh("time"),updatets:Nh("datetime"),updateuser:Nh("string"),upload:Nh("document"),url:Nh("url"),uuid:Nh("string"),version:Nh("integer")},qh={binary:Wh("document"),birthdate:Wh("date"),boolean:Wh("boolean"),code:Wh("text"),char:Wh("string"),choice:Nh("choice"),counter:Wh("integer"),createuser:Wh("string"),createts:Wh("datetime"),"compressed-text":Wh("text"),"data-amount":Wh("number"),date:Wh("date"),datetime:Wh("datetime"),decimal:Wh("number"),display:Wh("html"),description:Wh("description"),duration:Wh("duration"),document:Wh("document"),double:Wh("number"),email:Wh("email"),html:Wh("html"),image:Wh("document"),ipaddress:Wh("string"),identifier:Wh("string"),latitude:Wh("string"),login:Wh("string"),long:Wh("integer"),longitude:Wh("string"),moneyamount:Wh("number"),"multi-remote-field":Wh("multi-remote"),"multi-select-box":Wh("multi-select"),"named-upload":Wh("document"),integer:Wh("integer"),percent:Wh("percent"),phone:Wh("phone"),postcode:Wh("string"),"pseudo-select":Nh("pseudo-select"),"pulldown-date":Wh("date"),remote:Wh("remote"),"search-filter":Wh("search-filter"),serial:Wh("string"),"single-remote-field":Wh("remote"),"single-select-box":Wh("single-select"),sorting:Wh("integer"),string:Wh("string"),text:Wh("text"),"text-area":Wh("text"),time:Wh("time"),updatets:Wh("datetime"),updateuser:Wh("string"),upload:Wh("document"),url:Wh("url"),uuid:Wh("string"),version:Wh("integer")};const Gh={editable:Vh,readOnly:qh,list:Yh(Yh({},qh),{},{binary:Wh("document-compact"),document:Wh("document-compact"),image:Wh("document-compact")}),search:Yh(Yh({},Vh),{},{url:Nh("string"),text:Nh("string"),geosearch:Nh("geosearch"),html:Nh("string"),birthdate:Nh("date",!0),code:Wh("text",!0),date:Nh("date",!0),updatets:Nh("datetime",!0),createts:Nh("datetime",!0),datetime:Nh("datetime",!0),moneyamount:Nh("number",!0),percent:Nh("number",!0),long:Nh("integer",!0),integer:Nh("integer",!0),decimal:Nh("number",!0),counter:Nh("integer",!0),time:Nh("time",!0),boolean:Nh("boolean-select"),marking:Nh("boolean-select")})};var Kh;const Xh=function(e,t){return Gh[e]&&Gh[e][t]?Gh[e][t]:(vr.Z.log("Unable to display field: unknown mapping type combination (".concat(e," / ").concat(t,")")),function(){return Kh||(Kh=(0,G.jsx)("span",{}))})};var Qh,$h,Jh,em,tm,nm,rm,om,am,im=$.ZP.div.withConfig({displayName:"StyledMergeErrorWrapper"})(Qh||(Qh=Q()(["\n ","\n padding: "," 0 0 ",";\n"])),(0,et.Z)(),te.Z.space(-1),te.Z.space(0)),cm=$.ZP.div.withConfig({displayName:"StyledSummaryErrorWrapper"})($h||($h=Q()(["\n display: grid;\n align-items: center;\n grid-template-columns: "," 1fr;\n grid-column-gap: ",";\n margin-bottom: ",";\n"])),te.Z.font(10),te.Z.space(-.5),te.Z.space(-.7)),um=$.ZP.span.withConfig({displayName:"StyledIconWrapper"})(Jh||(Jh=Q()(["\n display: flex;\n align-items: center;\n color: ",";\n font-size: ",";\n"])),oe.FS.color("signal.danger"),te.Z.font(10)),sm=$.ZP.p.withConfig({displayName:"StyledError"})(em||(em=Q()([""]))),lm=$.ZP.div.withConfig({displayName:"StyledLabelWrapper"})(tm||(tm=Q()(["\n display: flex;\n align-items: center;\n\n label {\n vertical-align: bottom;\n }\n"]))),fm=$.ZP.div.withConfig({displayName:"StyledTableWrapper"})(nm||(nm=Q()(["\n flex: 1;\n"]))),pm=$.ZP.span.withConfig({displayName:"StyledStatusWrapper"})(rm||(rm=Q()(["\n color: ",";\n"])),(function(e){return e.isChecked?oe.FS.color("signal.success"):oe.FS.color("signal.danger")})),dm=function(e,t){return 0===Object.keys(de.Z.difference(e,t)).length},hm=L().memo((function(e){var t=e.entityData,n=e.entityKey,r=e.name,o=e.setSelectedMultipleAll,a=e.isSelected,i=e.navigationStrategy;if(0===t.value.totalKeys)return null;return(0,G.jsxs)(lm,{children:[(0,G.jsx)("input",{type:"checkbox",onChange:function(e){return o(r,n,e.target.checked)},checked:a,id:"".concat(r).concat(n)}),(0,G.jsxs)(q.ZP.Label,{for:"".concat(r).concat(n),children:[om||(om=(0,G.jsx)(Y.Z,{id:"client.merge.allRelations"}))," ",(0,G.jsx)(K,{model:t.value.relationEntity,keys:t.value.keys,totalKeys:t.value.totalKeys,navigationStrategy:i})]})]})}),dm),mm=L().memo((function(e){var t=e.entityData,n=e.entityKey,r=e.name,o=e.setSelectedMultiple,a=e.selectedMultiple,i=function(e){return Xe()(a,[r,e])===n},c=function(e,t){return o(r,n,e,t)},u=function(e,t){return e===t?"checked":t>0?"indeterminate":"unchecked"}(t.value.length,t.value.filter((function(e){return i(e.key)})).length);return(0,G.jsxs)(G.Fragment,{children:[t.value.length>0&&(0,G.jsxs)(lm,{children:[(0,G.jsx)(ye,{value:u,onChange:function(e){t.value.forEach((function(t){var n="checked"===e;i(t.key)!==n&&c(t.key,n)}))},id:"".concat(r).concat(n)}),(0,G.jsx)(q.ZP.Label,{for:"".concat(r).concat(n),children:am||(am=(0,G.jsx)(Y.Z,{id:"client.merge.allRelations"}))})]}),t.value.map((function(e){return(0,G.jsxs)(lm,{children:[(0,G.jsx)("input",{type:"checkbox",onChange:function(t){return c(e.key,t.target.checked)},checked:i(e.key),id:"".concat(r).concat(n,"-").concat(e.key)}),(0,G.jsx)(q.ZP.Label,{for:"".concat(r).concat(n,"-").concat(e.key),children:(0,G.jsx)(Ah.Z,{type:"single-select",value:e})})]},"relation-checkbox-".concat(e.key))}))]})}),dm),gm=L().memo((function(e){var t=e.entityData,n=e.entityKey,r=e.name,o=e.setSelectedSingle,a=e.isSelected,i=t.type,c=t.writable,u={entity:"single-select-box"}[i]||i,s=Xh("list",u);return(0,G.jsxs)(lm,{children:[(0,G.jsx)("input",{type:"radio",name:r,onChange:function(){o(r,n)},checked:a,id:"".concat(r).concat(n),disabled:!c}),(0,G.jsx)(q.ZP.Label,{for:"".concat(r).concat(n),children:(0,G.jsx)(s,{mappingType:"list",formField:{dataType:u},value:t.value})})]})}),dm);const vm=function(e){var t=e.rowData,n=e.column,r=e.setSelectedSingle,o=e.selectedSingle,a=e.setSelectedMultiple,i=e.selectedMultiple,c=e.setSelectedMultipleAll,u=e.selectedMultipleAll,s=e.navigationStrategy,l=n.entityKey,f=t[l],p=f.type,d=t.__key;return"relations"===p?(0,G.jsx)(hm,{entityData:f,entityKey:l,name:d,setSelectedMultipleAll:c,isSelected:Xe()(u,[d],[]).includes(l),navigationStrategy:s}):"entity-list"===p?(0,G.jsx)(mm,{entityData:f,entityKey:l,name:d,setSelectedMultiple:a,selectedMultiple:i}):(0,G.jsx)(gm,{entityData:f,entityKey:l,name:d,setSelectedSingle:r,isSelected:o[d]===l})};var ym={setSelectedSingle:function(e,t){return{type:j,payload:{name:e,entityKey:t}}},setSelectedMultiple:function(e,t,n,r){return{type:_,payload:{name:e,entityKey:t,relatedEntityKey:n,isSelected:r}}},setSelectedMultipleAll:function(e,t,n){return{type:E,payload:{name:e,entityKey:t,isSelected:n}}}};const bm=(0,k.connect)((function(e){return{selectedSingle:e.merge.selected.single,selectedMultiple:e.merge.selected.multiple,selectedMultipleAll:e.merge.selected.multipleAll,navigationStrategy:e.input.navigationStrategy}}),ym)((0,x.ZP)(vm));var wm;const Om=function(e){var t=e.label,n=e.entityKey,r=e.setTargetEntity,o=e.targetEntity,a=e.mergeStrategyDisplay,i=o===n,c=i?wm||(wm=(0,G.jsx)(Y.Z,{id:"client.merge.strategy.keep"})):a;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)("input",{type:"radio",name:"column",onChange:function(){return r(n)},checked:i,id:"targetEntity".concat(n)}),(0,G.jsxs)(q.ZP.Label,{for:"targetEntity".concat(n),children:[(0,G.jsx)(q.ZP.B,{children:t}),(0,G.jsxs)(pm,{isChecked:i,children:[" (",c,")"]})]})]})};var xm={setTargetEntity:N};const km=(0,k.connect)((function(e){return{targetEntity:e.merge.selected.targetEntity,mergeStrategyDisplay:e.merge.sourceData.mergeStrategyDisplay}}),xm)((0,x.ZP)(Om));var Sm;y().arrayOf(y().shape({model:y().string,key:y().string,paths:y().objectOf(y().objectOf(y().arrayOf(y().string))),entityValidatorErrors:y().objectOf(y().arrayOf(y().string))}));const Pm=function(e){var t=e.sourceData,n=e.mergeErrorMsg,r=e.mergeValidationErrors.map((function(e){var n=Object.keys(e.paths).map((function(n){return Object.keys(e.paths[n]).map((function(r){return e.paths[n][r].map((function(e,o){return(0,G.jsxs)(sm,{children:[t.labels[n],": ",e]},"paths-".concat(n,"-").concat(r,"-").concat(o))}))}))})),r=Object.keys(e.entityValidatorErrors).map((function(t){return e.entityValidatorErrors[t].map((function(e,n){return(0,G.jsx)(sm,{children:e},"entity-".concat(t,"-").concat(n))}))}));return[].concat(H()(n),H()(r))}));return(0,G.jsxs)(im,{children:[(r.length>0||Boolean(n))&&(Sm||(Sm=(0,G.jsxs)(cm,{children:[(0,G.jsx)(um,{children:(0,G.jsx)(V.Z,{icon:"times"})}),(0,G.jsx)(q.ZP.P,{children:(0,G.jsx)(Y.Z,{id:"client.merge.summary.error"})})]}))),Boolean(n)&&(0,G.jsx)(sm,{children:n}),r]})};var jm,_m,Em=function(e){var t=e.rowIdx,n=e.sourceData,r=e.allPaths[t];return(0,G.jsx)(q.ZP.B,{children:n.labels[r]})};const Cm=function(e){var t=e.sourceData,n=e.mergePending,r=e.mergeErrorMsg,o=e.mergeValidationErrors,a=e.executeMerge,i=(0,Z.useMemo)((function(){return t?function(e){var t=vn(e).map((function(t,n){return e.entities.reduce((function(n,r){var o=r.paths[t];return o&&o.value&&("entity"===o.type&&(o.value.display=wn(e,o.value.model,o.value.key)),"entity-list"===o.type&&(o.value=o.value.map((function(t){return t.display=wn(e,t.model,t.key),t})))),gn(gn({},n),{},g()({},r.key,o))}),{__key:t})})),n=yn(e).map((function(t,n){return e.relations.filter((function(e){return e.relationName===t})).reduce((function(e,t){return gn(gn({},e),{},g()({},t.entityKey,{type:"relations",value:{keys:t.keys,totalKeys:t.totalKeys,relationEntity:t.relationEntity}}))}),{__key:t})})),r=bn(e);return[].concat(H()(t),H()(n)).sort((function(e,t){return r.findIndex((function(t){return t===e.__key}))-r.findIndex((function(e){return e===t.__key}))}))}(t):[]}),[t]),c=(0,Z.useMemo)((function(){return t?function(e,t,n,r){var o=e.entities.map((function(r){return{id:r.key,entityKey:r.key,resizable:!0,sorting:{sortable:!1},CellRenderer:n,HeaderRenderer:function(n){return(0,G.jsx)(t,gn(gn({},n),{},{entityKey:r.key,label:wn(e,r.model,r.key)}))}}}));return[{id:"column-label",label:"",resizable:!0,sorting:{sortable:!1},CellRenderer:function(t){return(0,G.jsx)(r,gn(gn({},t),{},{sourceData:e,allPaths:bn(e)}))}}].concat(H()(o))}(t,km,bm,Em):[]}),[t]);return n?jm||(jm=(0,G.jsx)(pe.Z,{})):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(ne,{children:(0,G.jsx)(re,{onClick:a,look:"raised",ink:"primary",disabled:null===t,children:_m||(_m=(0,G.jsx)(Y.Z,{id:"client.merge.saveButton"}))})}),(0,G.jsxs)(fm,{children:[(0,G.jsx)(Pm,{sourceData:t,mergeErrorMsg:r,mergeValidationErrors:o}),(0,G.jsx)(hn,{columns:c,data:i,selectionStyle:"none",dataLoadingInProgress:null===t,onColumnPositionChange:function(){}})]})]})};var Dm={executeMerge:function(){return{type:D}}};const Tm=(0,k.connect)((function(e){return{sourceData:e.merge.sourceData,mergePending:e.merge.mergePending,mergeErrorMsg:e.merge.mergeErrorMsg,mergeValidationErrors:e.merge.mergeValidationErrors}}),Dm)((0,x.ZP)(Cm));var Mm,Rm,Im,Nm=$.ZP.div.withConfig({displayName:"StyledMerge"})(Mm||(Mm=Q()(["\n height: 100%;\n overflow: hidden;\n background-color: ",";\n display: flex;\n flex-direction: column;\n"])),J.Z.color("paper"));const Am=function(e){var t=e.initialize,n=e.mergeDone;return(0,Z.useEffect)((function(){t()}),[t]),(0,G.jsx)(Nm,{children:n?Rm||(Rm=(0,G.jsx)(fe,{})):Im||(Im=(0,G.jsx)(Tm,{}))})};var Zm={initialize:function(){return{type:S}}};const Lm=(0,k.connect)((function(e){return{mergeDone:!!e.merge.mergeResponse}}),Zm)((0,x.ZP)(Am));var Fm,Hm=i(34857),Bm=i(31921),Um=i.n(Bm),Wm=i(81770);function zm(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 Ym(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zm(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Vm=function(e,t){for(var n=function(){var n=U()(o[r],2),a=n[0],i=n[1];"entity-list"===i.type&&i.value.map((function(e){return e.key})).forEach((function(n){Um()(e,[a,n],t.key,Object)}))},r=0,o=Object.entries(t.paths);r<o.length;r++)n()},qm=(Fm={},g()(Fm,P,Wm.Z.singleTransferReducer("sourceData")),g()(Fm,D,(function(e){return Ym(Ym({},e),{},{mergePending:!0})})),g()(Fm,T,(function(e,t){var n=t.payload.mergeResponse;return Ym(Ym({},e),{},{mergePending:!1,mergeResponse:n})})),g()(Fm,M,(function(e,t){var n=t.payload,r=n.errorMsg,o=n.validationErrors;return Ym(Ym({},e),{},{mergePending:!1,mergeErrorMsg:r,mergeValidationErrors:o})})),g()(Fm,j,(function(e,t){var n=t.payload,r=n.name,o=n.entityKey;return Ym(Ym({},e),{},{selected:Ym(Ym({},e.selected),{},{single:Ym(Ym({},e.selected.single),{},g()({},r,o))})})})),g()(Fm,_,(function(e,t){var n,r=t.payload,o=r.name,a=r.entityKey,i=r.relatedEntityKey;return r.isSelected?n=Ym(Ym({},e.selected.multiple),{},g()({},o,Ym(Ym({},e.selected.multiple[o]),{},g()({},i,a)))):(n=Ym({},e.selected.multiple))[o]=Yn()(n[o],[i]),Ym(Ym({},e),{},{selected:Ym(Ym({},e.selected),{},{multiple:n})})})),g()(Fm,E,(function(e,t){var n,r=t.payload,o=r.name,a=r.entityKey;return n=r.isSelected?[].concat(H()(e.selected.multipleAll[o]||[]),[a]):e.selected.multipleAll[o].filter((function(e){return e!==a})),Ym(Ym({},e),{},{selected:Ym(Ym({},e.selected),{},{multipleAll:Ym(Ym({},e.selected.multipleAll),{},g()({},o,n))})})})),g()(Fm,C,(function(e,t){for(var n=t.payload.entityKey,r={},o={},a=e.sourceData.entities.find((function(e){return e.key===n})),i=0,c=Object.entries(a.paths);i<c.length;i++){var u=U()(c[i],2),s=u[0];"entity-list"!==u[1].type&&(r[s]=n)}e.sourceData.entities.filter((function(e){return e.key!==n})).forEach((function(e){return Vm(o,e)})),Vm(o,a);var l=e.sourceData.relations.reduce((function(e,t){return Ym(Ym({},e),{},g()({},t.relationName,[].concat(H()(e[t.relationName]||[]),[t.entityKey])))}),{});return Ym(Ym({},e),{},{selected:Ym(Ym({},e.selected),{},{targetEntity:n,single:r,multiple:o,multipleAll:l})})})),Fm),Gm={sourceData:null,mergePending:!1,mergeResponse:null,mergeErrorMsg:null,mergeValidationErrors:[],selected:{targetEntity:null,single:{},multiple:{},multipleAll:{}}};var Km=i(44908),Xm=i.n(Km),Qm=i(81719),$m=Cd().mark(ig),Jm=Cd().mark(cg),eg=Cd().mark(ug),tg=Cd().mark(sg),ng=Cd().mark(lg),rg=Cd().mark(fg),og=function(e){return e.merge},ag=function(e){return e.input};function ig(){return Cd().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Hm.$6)([(0,Hm.Fm)(S,cg),(0,Hm.Fm)(D,lg),(0,Hm.Fm)(R,fg)]);case 2:case"end":return e.stop()}}),$m)}function cg(){var e,t;return Cd().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Hm.Ys)(ag);case 2:return e=n.sent,t=e.selection,n.next=6,(0,Hm.RE)(ug,t);case 6:case"end":return n.stop()}}),Jm)}function ug(e){var t,n,r;return Cd().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return"merge/sourceData",t={method:"POST",body:e},o.next=4,(0,Hm.RE)(Qm.Z.requestSaga,"merge/sourceData",t);case 4:return n=o.sent,r=n.body,o.next=8,(0,Hm.gz)(I(r));case 8:return o.next=10,(0,Hm.gz)(N(r.entities[0].key));case 10:case"end":return o.stop()}}),eg)}function sg(){var e,t,n,r,o,a,i,c,u,s,l;return Cd().wrap((function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,(0,Hm.Ys)(og);case 2:e=f.sent,t=e.selected,n=e.sourceData,r={},o=Cd().mark((function e(){var t,o,c,u;return Cd().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=U()(i[a],2),o=t[0],c=t[1],(u=n.entities.find((function(e){return e.key===c})).paths[o]).writable&&("entity"===u.type?null===u.value?r[o]=null:r[o]={key:u.value.key}:r[o]=c);case 3:case"end":return e.stop()}}),e)})),a=0,i=Object.entries(t.single);case 8:if(!(a<i.length)){f.next=13;break}return f.delegateYield(o(),"t0",10);case 10:a++,f.next=8;break;case 13:c=Cd().mark((function e(){var t,n,o;return Cd().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=U()(s[u],2),n=t[0],o=t[1],r[n]=[],Object.keys(o).forEach((function(e){return r[n].push({key:e})}));case 3:case"end":return e.stop()}}),e)})),u=0,s=Object.entries(t.multiple);case 15:if(!(u<s.length)){f.next=20;break}return f.delegateYield(c(),"t1",17);case 17:u++,f.next=15;break;case 20:return l=Xm()(n.relations.map((function(e){return e.relationName}))).map((function(e){return{relationName:e,sourceKey:t.multipleAll[e]||[]}})),f.abrupt("return",{entities:n.entities,targetEntity:{key:t.targetEntity,paths:r},mergeRelations:l});case 22:case"end":return f.stop()}}),tg)}function lg(){var e,t,n;return Cd().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e="merge/merge",r.t0=[400,500],r.next=4,(0,Hm.RE)(sg);case 4:return r.t1=r.sent,t={method:"POST",acceptedStatusCodes:r.t0,body:r.t1},r.next=8,(0,Hm.RE)(Qm.Z.requestSaga,e,t);case 8:if(200!==(n=r.sent).status){r.next=14;break}return r.next=12,(0,Hm.gz)((o=n.body,{type:T,payload:{mergeResponse:o}}));case 12:r.next=21;break;case 14:if(!n.body||"VALIDATION_FAILED"!==n.body.errorCode){r.next=19;break}return r.next=17,(0,Hm.gz)(A(null,n.body.errors));case 17:r.next=21;break;case 19:return r.next=21,(0,Hm.gz)(A(n.body.message,[]));case 21:case"end":return r.stop()}var o}),ng)}function fg(){var e,t,n,r;return Cd().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,Hm.Ys)(og);case 2:return e=o.sent,t=e.sourceData,n=t.entities.map((function(e){return{entityName:e.model,key:e.key}})),r=[{type:"entity-update-event",payload:{entities:n}}],o.next=8,(0,Hm.gz)(w.Z.fireExternalEvent("onSuccess",{remoteEvents:r}));case 8:case"end":return o.stop()}}),rg)}var pg=Cd().mark(dg);function dg(){return Cd().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Hm.$6)([(0,Hm.rM)(ig)]);case 2:case"end":return e.stop()}}),pg)}const hg={merge:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gm,t=arguments.length>1?arguments[1]:void 0,n=qm[t.type];return n?n(e,t):e}};var mg,gg,vg=[dg];function yg(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 bg="merge",wg=["emitAction","onSuccess"],Og=function(e,t,n,r){var o=h.Z.createStore(hg,vg,t,bg);b.Z.addToStore(o,(function(e){return e.input.emitAction})),w.Z.addToStore(o,(function(e){return h.Z.getEvents(wg,e.input)}));var a=!n.emitAction;O.Z.addToStore(o,a);var i=(0,G.jsxs)(G.Fragment,{children:[a&&(mg||(mg=(0,G.jsx)(O.Z.Notifications,{}))),gg||(gg=(0,G.jsx)(Lm,{}))]});return h.Z.createApp(bg,i,o,{input:t,events:n,publicPath:r,textResourceModules:["component","common",bg]})},xg=function(e){return h.Z.useApp({initApp:Og,props:e,packageName:bg,externalEvents:wg}).component};xg.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yg(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({selection:y().object},wg.reduce((function(e,t){return e[t]=y().func,e}),{}));var kg=h.Z.createBundleableApp(bg,Og,xg);h.Z.registerAppInRegistry(kg.name,kg.init)})(),c})()));
52
+ */var r=n(1024),o=n(61688);var a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useSyncExternalStore,c=r.useRef,u=r.useEffect,s=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var f=c(null);if(null===f.current){var p={hasValue:!1,value:null};f.current=p}else p=f.current;f=s((function(){function e(e){if(!u){if(u=!0,i=e,e=r(e),void 0!==o&&p.hasValue){var t=p.value;if(o(t,e))return c=t}return c=e}if(t=c,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,c=n)}var i,c,u=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]}),[t,n,r,o]);var d=i(e,f[0],f[1]);return u((function(){p.hasValue=!0,p.value=d}),[d]),l(d),d}},61688:(e,t,n)=>{"use strict";e.exports=n(53250)},52798:(e,t,n)=>{"use strict";e.exports=n(50139)},28721:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});const r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let o;const a=new Uint8Array(16);function i(){if(!o&&(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!o))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(a)}const c=[];for(let e=0;e<256;++e)c.push((e+256).toString(16).slice(1));function u(e,t=0){return(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase()}const s=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();const o=(e=e||{}).random||(e.rng||i)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return u(o)}},1024:e=>{"use strict";e.exports=t},30314:t=>{"use strict";t.exports=e},71298:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},38088:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},87462:(e,t,n)=>{"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Z:()=>r})},86:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:()=>r})},31599:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},28549:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},2717:(e,t,n)=>{"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Z:()=>r})},33417:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(28549);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},32924:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},1972:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(78001);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},62360:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:()=>r})},78001:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(31599);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}i.m=o,i.amdD=function(){throw new Error("define cannot be used indirect")},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>"chunk-"+({85:"code-editor",198:"vendor-fontawesome",614:"vendor-icons",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"e125a078c53dbf382e61",198:"ab9f2eea50d01a3a62a9",560:"e3d5772311dd2d78dc20",608:"c3b57ad1736c5780e353",614:"3967f92670930e8b38b1",631:"cae002de42dc05a6d5a0",877:"a7f934130ec5ac7a8cff"}[e]+".js",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="tocco-:",i.l=(e,t,o,a)=>{if(n[e])n[e].push(t);else{var c,u;if(void 0!==o)for(var s=document.getElementsByTagName("script"),l=0;l<s.length;l++){var f=s[l];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==r+o){c=f;break}}c||(u=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.setAttribute("data-webpack",r+o),c.src=e),n[e]=[t];var p=(t,r)=>{c.onerror=c.onload=null,clearTimeout(d);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(r))),t)return t(r)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=p.bind(null,c.onerror),c.onload=p.bind(null,c.onload),u&&document.head.appendChild(c)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.j=381,i.p="/",(()=>{var e={381:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var a=i.p+i.u(t),c=new Error;i.l(a,(n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",c.name="ChunkLoadError",c.type=o,c.request=a,r[1](c)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,c,u]=n,s=0;if(a.some((t=>0!==e[t]))){for(r in c)i.o(c,r)&&(i.m[r]=c[r]);if(u)u(i)}for(t&&t(n);s<a.length;s++)o=a[s],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_=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:()=>jg});var e,t,n,r,o,a,u,s,l,f,p,d,h=i(18882),m=i(59713),g=i.n(m),v=i(45697),y=i.n(v),b=i(50600),w=i(19241),O=i(30604),x=i(74806),k=i(50558),S="merge/INITIALIZE",P="merge/SET_SOURCE_DATA",j="merge/SET_SELECTED_SINGLE",_="merge/SET_SELECTED_MULTIPLE",E="merge/SET_SELECTED_MULTIPLE_ALL",C="merge/SET_TARGET_ENTITY",D="merge/EXECUTE_MERGE",T="merge/SET_MERGE_RESPONSE",M="merge/SET_MERGE_ERROR",R="merge/CLOSE",I=function(e){return{type:P,payload:{sourceData:e}}},N=function(e){return{type:C,payload:{entityKey:e}}},A=function(e,t){return{type:M,payload:{errorMsg:e,validationErrors:t}}},Z=i(1024),L=i.n(Z),F=i(319),H=i.n(F),B=i(63038),U=i.n(B),W=i(7739),z=i.n(W),Y=i(44012),V=i(88162),q=i(34206),G=i(85893),K=function(e){var t=e.model,n=e.keys,r=e.totalKeys,o=e.navigationStrategy;return 0===r?(0,G.jsx)(q.ZP.Span,{children:r}):(0,G.jsxs)(o.ListLink,{entityName:t,entityKeys:n.slice(0,100),children:["(",r,")"]})},X=i(28655),Q=i.n(X),$=i(38205),J=i(88601),ee=i(65035),te=i(7281),ne=$.ZP.div.withConfig({displayName:"StyledButtonWrapper"})(e||(e=Q()(["\n border-bottom: 3px solid ",";\n"])),J.Z.color("backgroundBody")),re=(0,$.ZP)(ee.Z).withConfig({displayName:"StyledButton"})(t||(t=Q()(["\n align-self: flex-start;\n margin-top: ",";\n margin-bottom: ",";\n margin-left: ",";\n"])),te.Z.space(-.7),te.Z.space(-.7),te.Z.space(0)),oe=i(24875),ae=$.ZP.div.withConfig({displayName:"StyledSummarySuccessWrapper"})(n||(n=Q()(["\n display: grid;\n align-items: center;\n grid-template-columns: "," 1fr;\n grid-column-gap: ",";\n margin-bottom: ",";\n"])),te.Z.font(10),te.Z.space(-.5),te.Z.space(-.7)),ie=$.ZP.div.withConfig({displayName:"StyledMessageWrapper"})(r||(r=Q()(["\n margin-bottom: ",";\n\n && {\n p {\n margin-bottom: 0;\n }\n }\n"])),te.Z.space(-.7)),ce=$.ZP.div.withConfig({displayName:"StyledResultsWrapper"})(o||(o=Q()(["\n padding: "," 0 0 ",";\n"])),te.Z.space(-1),te.Z.space(0)),ue=$.ZP.span.withConfig({displayName:"StyledIconWrapper"})(a||(a=Q()(["\n display: flex;\n align-items: center;\n color: ",";\n font-size: ",";\n"])),oe.FS.color("signal.success"),te.Z.font(10));const se=function(e){var t=e.mergeResponse,n=e.navigationStrategy,r=e.close,o=function(e){return Object.entries(z()(e,(function(e){return e.entityLabel}))).map((function(t){var r=U()(t,2),o=r[0],a=r[1],i=e.find((function(e){return e.entityLabel===o})).entity,c=a.map((function(e){return e.pk}));return(0,G.jsxs)("span",{children:[o," ",(0,G.jsx)(K,{model:i,keys:c,totalKeys:c.length,navigationStrategy:n})]},i)})).reduce((function(e,t){return null===e?[t]:[].concat(H()(e),[", ",t])}),null)},a=o(t.notCopiedRelations),i=o(t.notDeletedEntities);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(ne,{children:(0,G.jsx)(re,{onClick:r,look:"raised",ink:"primary",children:u||(u=(0,G.jsx)(Y.Z,{id:"client.merge.close"}))})}),(0,G.jsxs)(ce,{children:[s||(s=(0,G.jsxs)(ae,{children:[(0,G.jsx)(ue,{children:(0,G.jsx)(V.Z,{icon:"check"})}),(0,G.jsx)(q.ZP.P,{children:(0,G.jsx)(Y.Z,{id:"client.merge.summary.success"})})]})),(t.notCopiedRelations.length>0||t.notDeletedEntities.length>0)&&(l||(l=(0,G.jsx)(q.ZP.P,{children:(0,G.jsx)(Y.Z,{id:"client.merge.summary.successHint"})}))),t.notCopiedRelations.length>0&&(0,G.jsxs)(ie,{children:[f||(f=(0,G.jsxs)(q.ZP.P,{children:[(0,G.jsx)(Y.Z,{id:"client.merge.summary.notCopiedRelations"}),":"]})),(0,G.jsx)(q.ZP.B,{children:a})]}),t.notDeletedEntities.length>0&&(0,G.jsxs)(ie,{children:[p||(p=(0,G.jsxs)(q.ZP.P,{children:[(0,G.jsx)(Y.Z,{id:"client.merge.summary.notDeletedEntities"}),":"]})),(0,G.jsx)(q.ZP.B,{children:i})]}),t.showPermissionMessage&&(d||(d=(0,G.jsx)(q.ZP.P,{children:(0,G.jsx)(Y.Z,{id:"client.merge.summary.permission"})})))]})]})};var le={close:function(){return{type:R}}};const fe=(0,k.connect)((function(e){return{mergeResponse:e.merge.mergeResponse,navigationStrategy:e.input.navigationStrategy}}),le)((0,x.ZP)(se));var pe=i(35728),de=i(70696),he=i(71392),me="checked",ge="indeterminate",ve="unchecked";const ye=function(e){var t=e.value,n=e.id,r=e.onChange,o=e.label,a=(0,Z.useRef)(null);return(0,Z.useLayoutEffect)((function(){a.current.indeterminate=t===ge,a.current.checked=t===me}),[t]),(0,G.jsx)("input",{ref:a,onChange:function(e){r(t===ge?ve:e.target.checked?me:ve)},id:n,type:"checkbox","aria-checked":"checked"===t,"aria-label":o})};const be=function(e){var t,n=e.rowData,r=e.isSelected,o=e.selectionChange,a=e.selectionFilterFn,i=e.rowIdx;return"function"!=typeof a||a(n)?(0,G.jsx)("div",{onClick:function(e){e.shiftKey&&o(n.__key,!0,!0),e.stopPropagation()},"data-cy":"list-selection-checkbox",children:(0,G.jsx)(ye,{value:(t=n,r(t.__key)?"checked":"unchecked"),onChange:function(e){return function(t){return o(e.__key,"checked"===t)}}(n),label:"".concat(n.__model," ").concat(i+1),id:"list-selection-checkbox "+n.__key})}):null};const we=function(e){var t=e.data,n=e.isSelected,r=e.selectionChange,o=e.selectionFilterFn,a=t.filter((function(e){return"function"!=typeof o||o(e)})).map((function(e){return e.__key})),i=function(e,t){return e?"checked":t?"indeterminate":"unchecked"}(a.every((function(e){return n(e)})),a.some((function(e){return n(e)})));return 0===a.length?null:(0,G.jsx)(ye,{value:i,onChange:function(e){r(a,"checked"===e)}})};var Oe={SINGLE:"single",MULTI:"multi",NONE:"none"};y().oneOf(Object.keys(Oe).map((function(e){return Oe[e]})));const xe=function(e){var t=e.rowData,n=e.isSelected,r=e.selectionChange,o=e.selectionFilterFn;return"function"!=typeof o||o(t)?(0,G.jsx)("div",{onClick:function(e){return e.stopPropagation()},children:(0,G.jsx)("input",{type:"radio",checked:n(t.__key),onChange:function(e){r(t.__key,e.target.value)}})}):null};function ke(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 Se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pe=function(e,t,n){return{id:"single-selection",width:30,resizable:!1,fixedPosition:!0,dynamic:!0,sorting:{sortable:!1},HeaderRenderer:function(){return null},CellRenderer:function(r){return(0,G.jsx)(xe,Se(Se({},r),{},{isSelected:e,selectionChange:t,selectionFilterFn:n}))}}},je=function(e,t,n){return{id:"multi-selection",dynamic:!0,resizable:!1,fixedPosition:!0,width:30,sorting:{sortable:!1},HeaderRenderer:function(r){return(0,G.jsx)(we,Se(Se({},r),{},{isSelected:e,selectionChange:t,selectionFilterFn:n}))},CellRenderer:function(r){return(0,G.jsx)(be,Se(Se({},r),{},{isSelected:e,selectionChange:t,selectionFilterFn:n}))}}};const _e=function(e,t,n){var r=(0,Z.useState)(null),o=U()(r,2),a=o[0],i=o[1],c=(0,Z.useCallback)((function(t){return(e||[]).includes(t)}),[e]),u=(0,Z.useCallback)((function(e,r,o){if(Array.isArray(e))n(e,r),i(null);else if(o){document.getSelection&&document.getSelection().removeAllRanges();var u=a?t.findIndex((function(e){return e===a})):0,s=t.findIndex((function(t){return t===e}));n(t.slice(Math.min(u,s),Math.max(u,s)+1),r)}else n([e],r||!c(e)),i(e)}),[t,n,c,a]);return{isSelected:c,selectionChange:u}};var Ee,Ce,De,Te,Me,Re,Ie,Ne,Ae,Ze,Le,Fe,He,Be,Ue,We,ze,Ye,Ve,qe,Ge,Ke=i(27361),Xe=i.n(Ke),Qe=i(28926),$e=i(80470),Je=i(40493),et=i(30759),tt=function(e){var t=e.theme;return Xe()(t,"colors.border")},nt=te.Z.space(-1.5),rt=$.ZP.div.withConfig({displayName:"StyledTableFooter"})(Ee||(Ee=Q()(["\n grid-row-start: pagination-start;\n display: flex;\n flex-wrap: wrap;\n padding-top: ",";\n padding-bottom: ",";\n border-top: 1px solid ",";\n\n "," {\n margin-right: ",";\n }\n"])),te.Z.space(-.5),te.Z.space(-1),tt,Qe.Z,te.Z.space(-1)),ot=(0,$.ZP)($e.Z).withConfig({displayName:"StyledReloadButton"})(Ce||(Ce=Q()(["\n height: 25px;\n width: 25px;\n"]))),at=$.ZP.td.withConfig({displayName:"StyledTableCell"})(De||(De=Q()(["\n && {\n padding: ",";\n background-color: ",";\n border-bottom: 1px solid ",";\n align-content: center;\n box-sizing: content-box;\n text-align: ",";\n\n "," {\n display: inline-block;\n margin-right: ",";\n }\n }\n"])),nt,oe.FS.color("paper"),tt,(function(e){return e.alignment}),Je.q,te.Z.space(-2)),it=$.ZP.div.withConfig({displayName:"StyledDnD"})(Te||(Te=Q()(["\n padding: ",";\n width: 100%;\n opacity: ",";\n"])),nt,(function(e){return e.isDragged?.2:1})),ct=$.ZP.span.withConfig({displayName:"StyledResizeHandle"})(Me||(Me=Q()(["\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n background: ",";\n opacity: 0;\n width: 3px;\n cursor: col-resize;\n"])),(function(e){return e.theme.colors.backgroundItemSelected})),ut=$.ZP.th.withConfig({displayName:"StyledTableHeaderCell"})(Re||(Re=Q()(["\n && {\n position: sticky;\n top: 0;\n background-color: ",";\n text-align: ",";\n border-bottom: 2px solid ",";\n ",";\n user-select: none;\n cursor: ",";\n white-space: nowrap;\n display: flex;\n border-right: ",";\n padding: 1px; /* default th padding */\n z-index: 2; /* higher than StyledIndicatorsContainerWrapper */\n ",";\n ","\n ","\n ","\n }\n"])),oe.FS.color("paper"),(function(e){return e.alignment}),tt,(0,et.Z)({fontWeight:oe.FS.fontWeight("bold")}),(function(e){return e.isSortable?"pointer":"auto"}),(function(e){var t=e.isDraggedOver,n=e.theme;return t?"3px solid ".concat(n.colors.text):"none"}),(function(e){return"header-cell-navigation-column"===e.id&&"z-index: 1"}),(function(e){var t=e.isResizingThisCell,n=e.theme;return t&&"\n background-color: ".concat(n.colors.backgroundItemHover,";\n\n > ").concat(ct," {\n opacity: 1;\n }\n ")}),(function(e){var t=e.isResizingAnyCell,n=e.theme;return!t&&"\n &:hover {\n background-color: ".concat(n.colors.backgroundItemHover,";\n\n > ").concat(ct," {\n opacity: 1;\n }\n }\n ")}),(function(e){var t=e.isResizingThisCell,n=e.isSortable,r=e.fixedPosition,o=e.theme;return n?!t&&!n&&!r&&"\n &:hover {\n background-color: transparent;\n }\n ":"\n &:hover {\n background-color: ".concat(o.colors.paper,";\n }\n ")})),st=(0,$.iv)(Ie||(Ie=Q()(["\n display: contents;\n ","\n\n &.selected {\n > "," {\n background-color: ",";\n }\n }\n\n &.selectableRow:not(.selected):hover {\n > "," {\n background-color: ",";\n }\n }\n"])),(function(e){return e.clickable&&"cursor: pointer;"}),at,(function(e){return e.theme.colors.backgroundItemSelected}),at,(function(e){return e.theme.colors.backgroundItemHover})),lt=$.ZP.span.withConfig({displayName:"StyledSortingSpan"})(Ne||(Ne=Q()(["\n height: 100%;\n margin-right: 2px;\n"]))),ft=$.ZP.span.withConfig({displayName:"StyledSortingRank"})(Ae||(Ae=Q()(["\n position: relative;\n top: -0.5rem;\n font-weight: ",";\n"])),oe.FS.fontWeight("regular")),pt=$.ZP.td.withConfig({displayName:"StyledFullRowProgress"})(Ze||(Ze=Q()(["\n && {\n grid-column: 1 / -1;\n padding-top: "," 0 0 0;\n height: 50px;\n text-align: center;\n border: 0;\n }\n"])),nt),dt=$.ZP.td.withConfig({displayName:"StyledFullRow"})(Le||(Le=Q()(["\n && {\n grid-column: 1 / -1;\n padding-top: "," 0 0 0;\n height: 50px;\n text-align: center;\n border: 0;\n ",";\n }\n"])),nt,(0,et.Z)()),ht=$.ZP.thead.withConfig({displayName:"StyledTableHead"})(Fe||(Fe=Q()(["\n ","\n"])),st),mt=$.ZP.tr.withConfig({displayName:"StyledTableRow"})(He||(He=Q()(["\n ","\n\n &:nth-child(even) td {\n background-color: ",";\n }\n"])),st,(function(e){return e.theme.colors.backgroundTableEvenRow})),gt=$.ZP.tbody.withConfig({displayName:"StyledTableBody"})(Be||(Be=Q()(["\n ","\n"])),st),vt=$.ZP.table.withConfig({displayName:"StyledTable"})(Ue||(Ue=Q()(["\n overflow: auto;\n display: grid;\n border-collapse: collapse;\n grid-template-columns: ",";\n grid-auto-rows: min-content;\n min-width: 100%;\n ","\n"])),(function(e){return e.columns.map((function(e){return e.width?e.width+"px":e.shrinkToContent?"max-content":"minmax(100px, auto)"})).join(" ")}),(function(e){return e.scrollBehaviour===he.P.INLINE&&(0,$.iv)(We||(We=Q()(["\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n "])))})),yt=$.ZP.div.withConfig({displayName:"StretchingTableContainer"})(ze||(ze=Q()(["\n grid-row-start: table-start;\n position: relative;\n overflow-x: auto;\n"]))),bt=$.ZP.div.withConfig({displayName:"StyledTableWrapper"})(Ye||(Ye=Q()(["\n display: grid;\n background-color: ",";\n grid-template-rows: [table-start] 1fr [pagination-start] auto auto;\n grid-template-columns: 100%;\n height: 100%;\n\n // reset external styles in old client\n input[type='checkbox'],\n input[type='radio'] {\n margin: 3px 3px 3px 4px !important;\n min-width: 12px;\n }\n"])),oe.FS.color("paper")),wt=$.ZP.div.withConfig({displayName:"StyledDraggable"})(Ve||(Ve=Q()(["\n width: 100%;\n height: 100%;\n display: flex;\n"]))),Ot=$.ZP.span.withConfig({displayName:"StyledHeaderContentWrapper"})(qe||(qe=Q()(["\n display: flex;\n"]))),xt=$.ZP.div.withConfig({displayName:"StyledHeaderContent"})(Ge||(Ge=Q()(["\n width: 100%;\n"]))),kt=i(93235),St=y().oneOfType([y().string,y().number]),Pt=y().shape({__key:St}),jt=(y().arrayOf(Pt),y().shape({id:y().string.isRequired,label:y().string,sorting:y().shape({sortable:y().bool,sortRank:y().number,order:y().oneOf(["asc","desc"])}),resizable:y().bool,width:y().number,HeaderRenderer:y().elementType,CellRenderer:y().elementType,rightAligned:y().bool})),_t=L().memo((function(e){var t=e.column,n=e.rowData,r=e.rowIdx;return(0,G.jsx)(at,{"data-cy":"list-cell",alignment:t.alignment,children:t.CellRenderer?(0,G.jsx)(t.CellRenderer,{rowData:n,column:t,rowIdx:r}):(0,G.jsx)(q.ZP.Span,{children:n[t.id]})})}));_t.propTypes={rowData:Pt.isRequired,column:jt.isRequired,rowIdx:y().number};var Et=function(e,t){return!e.column.dynamic||0===Object.keys(de.Z.difference(e,t)).length};const Ct=L().memo(_t,Et);var Dt,Tt,Mt,Rt,It=function(){return Dt||(Dt=(0,G.jsx)(mt,{children:(0,G.jsxs)(pt,{children:[(0,G.jsx)(kt.Z,{size:"20"}),(0,G.jsx)(q.ZP.P,{children:(0,G.jsx)(Y.Z,{id:"client.component.table.dataLoading"})})]})}))},Nt=function(){return Tt||(Tt=(0,G.jsx)(mt,{children:(0,G.jsx)(dt,{children:(0,G.jsx)(q.ZP.Span,{children:(0,G.jsx)(Y.Z,{id:"client.component.table.noData"})})})}))};const At=function(e){var t=e.data,n=e.columns,r=e.isSelected,o=e.selectionChange,a=e.dataLoadingInProgress,i=e.onRowClick,c=e.clickable;return a?Mt||(Mt=(0,G.jsx)(gt,{children:(0,G.jsx)(It,{})})):(0,G.jsx)(gt,{children:t.length>0?t.map((function(e,t){return(0,G.jsx)(mt,{className:"selectableRow ".concat(r(e.__key)&&"selected"),onClick:(a=e,function(e){e.shiftKey?o(a.__key,!0,!0):e.metaKey||e.ctrlKey?o(a.__key):c&&i&&i(a.__key)}),clickable:c,"data-cy":"list-row",children:n.map((function(n){return(0,G.jsx)(Ct,{selected:r(e.__key),rowData:e,column:n,rowIdx:t},"table-static-cell-".concat(e.__key,"-").concat(n.id))}))},"list-row-".concat(e.__key));var a})):Rt||(Rt=(0,G.jsx)(Nt,{}))})};var Zt,Lt=i(58129);const Ft=$.ZP.div.withConfig({displayName:"StyledButtonGroup"})(Zt||(Zt=Q()(["\n display: flex;\n\n &&& > "," {\n :not(:first-child) {\n margin-left: -1px;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n\n :not(:last-child) {\n margin-right: 0;\n border-right: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n }\n"])),Lt.Z);var Ht=L().forwardRef((function(e,t){return(0,G.jsx)(Ft,{ref:t,children:e.children})}));Ht.propTypes={children:y().node};const Bt=Ht;var Ut,Wt,zt=$.ZP.div.withConfig({displayName:"StyledPagination"})(Ut||(Ut=Q()(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n flex-wrap: wrap;\n gap: ",";\n margin-left: ",";\n"])),te.Z.space(-1),te.Z.space(-1.4)),Yt=(0,$.ZP)(ee.Z).withConfig({displayName:"StyledPaginationButton"})(Wt||(Wt=Q()(["\n padding: "," ",";\n"])),te.Z.space(-2),te.Z.space(-.5));const Vt=(0,x.ZP)((function(e){var t=e.totalCount,n=e.recordsPerPage,r=e.currentPage,o=e.onPageChange,a=e.intl,i=e.tableEl,c=e.children,u=Math.ceil(t/n),s=Math.min((r-1)*n+1,t),l=Math.min(r*n,t),f=function(e){return a.formatMessage({id:e})},p=function(e){o(e),i.current.scrollTop=0};return(0,G.jsxs)(zt,{children:[(0,G.jsxs)(Bt,{children:[(0,G.jsx)(Yt,{disabled:1===r,label:f("client.component.pagination.firstPageTitle"),iconOnly:!0,icon:"chevron-double-left",onClick:function(){return p(1)}}),(0,G.jsx)(Yt,{disabled:1===r,label:f("client.component.pagination.prePageTitle"),iconOnly:!0,icon:"chevron-left",onClick:function(){return p(r-1)}}),(0,G.jsx)(Yt,{disabled:r>=u,label:f("client.component.pagination.nextPageTitle"),iconOnly:!0,icon:"chevron-right",onClick:function(){return p(r+1)}}),(0,G.jsx)(Yt,{disabled:r>=u,label:f("client.component.pagination.lastPageTitle"),iconOnly:!0,icon:"chevron-double-right",onClick:function(){return p(u)}})]}),t>0&&(0,G.jsx)(q.ZP.Span,{children:(0,G.jsx)(Y.Z,{id:"client.component.pagination.text",values:{start:s,to:l,total:t}})}),c]})}));const qt=(0,x.ZP)((function(e){var t,n=e.onPageChange,r=e.onPageRefresh,o=e.paginationInfo,a=e.intl,i=e.tableEl,c=Boolean(o),u="function"==typeof r;return c||u?(0,G.jsx)(rt,{children:c&&(0,G.jsx)(Vt,{onPageChange:n,currentPage:o.currentPage,totalCount:o.totalCount,recordsPerPage:o.recordsPerPage,tableEl:i,children:u&&(0,G.jsx)(ot,{type:"button",title:(t="client.component.table.refreshTitle",a.formatMessage({id:t})),icon:"sync",onClick:r})})}):null}));var Gt=i(18446),Kt=i.n(Gt);function Xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $t={currentlyDragging:null,currentlyDragOver:null,dropPosition:null,offset:null},Jt={Top:"Top",Bottom:"Bottom"};const en=function(e){var t=(0,Z.useState)($t),n=U()(t,2),r=n[0],o=n[1],a=r.currentlyDragging,i=r.currentlyDragOver,c=r.dropPosition,u=r.offset;return{dndEvents:(0,Z.useCallback)((function(t){return{onDragStart:function(e){o((function(e){return Qt(Qt({},e),{},{currentlyDragging:t})}));var n=e.target;n&&n.addEventListener("dragend",(function e(t){o($t),t.stopPropagation(),n&&n.removeEventListener("dragend",e)}),!1),e.stopPropagation()},onDragEnter:function(e){if(a&&!Kt()(i,t)){var n=e.target?e.target.getBoundingClientRect():{},r=n.y+n.height/2;o((function(e){return Qt(Qt({},e),{},{currentlyDragOver:t,offset:r})}))}e.stopPropagation()},onDragOver:function(e){if(a){var t=e.clientY-u>0?Jt.Bottom:Jt.Top;return o((function(e){return Qt(Qt({},e),{},{dropPosition:t})})),e.preventDefault(),e.stopPropagation(),!0}},onDrop:function(t){a&&i&&(e(a,i,c),o($t),t.stopPropagation())}}}),[i,a,c,u,e]),dndState:(0,Z.useMemo)((function(){return{currentlyDragOver:i,currentlyDragging:a,dropPosition:c,offset:u}}),[i,a,c,u])}};const tn=function(e,t,n){var r=t-e;return Math.max(50,n+r)},nn=function(e,t,n){var r=(0,Z.useState)(null),o=U()(r,2),a=o[0],i=o[1],c=(0,Z.useRef)(null),u=(0,Z.useRef)(),s=(0,Z.useState)(!1),l=U()(s,2),f=l[0],p=l[1],d=(0,Z.useState)(!1),h=U()(d,2),m=h[0],g=h[1],v=(0,Z.useMemo)((function(){return{resizingElement:a,isResizing:f}}),[a,f]),y=(0,Z.useCallback)((function(){a&&(n(a),g(!1),setTimeout((function(){p(!1),i(null),c.current=void 0}),0))}),[a,n]),b={onMouseMove:(0,Z.useCallback)((function(n){a&&m&&(u.current=requestAnimationFrame((function(){if(c.current){var r=e(a),o=tn(c.current.y,n.clientY,r.clientHeight),i=tn(c.current.x,n.clientX,r.clientWidth);t(a,{height:o,width:i})}c.current={y:n.clientY,x:n.clientX}})))}),[a,t,m,e]),onMouseUp:y};return(0,Z.useEffect)((function(){return m||cancelAnimationFrame(u.current),function(){cancelAnimationFrame(u.current)}}),[m]),{resizeState:v,startResize:function(e){return function(t){i(e),p(!0),g(!0),c.current=void 0,t.stopPropagation(),t.preventDefault()}},resizingEvents:b}};const rn=function(e){var t=e.column,n=e.startResize;return(0,G.jsx)(ct,{"data-cy":"header-cell-".concat(t.id,"-resizing-controller"),onMouseDown:n(t)})};const on=(0,x.ZP)((function(e){var t,n,r,o=e.column,a=e.intl,i=o.sorting&&o.sorting.sortRank&&o.sorting.order,c=(null===(t=o.sorting)||void 0===t?void 0:t.sortRank)>1&&(0,G.jsx)(ft,{children:o.sorting.sortRank}),u="sort-".concat("asc"===(null===(n=o.sorting)||void 0===n?void 0:n.order)?"up":"down");return i?(0,G.jsxs)(lt,{title:(r="client.component.table.sortingTitle",a.formatMessage({id:r})),children:[(0,G.jsx)(V.Z,{icon:u}),c]}):null}));function an(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 cn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?an(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):an(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var un=function(e){var t=e.column,n=e.data;return t.HeaderRenderer?(0,G.jsx)(t.HeaderRenderer,{column:t,data:n}):(0,G.jsxs)(Ot,{children:[(0,G.jsx)(xt,{title:t.label,dangerouslySetInnerHTML:{__html:t.label}}),(0,G.jsx)(on,{column:t})]})};const sn=function(e){var t=e.columns,n=e.data,r=e.onColumnPositionChange,o=e.onSortingChange,a=e.tableEl,i=e.onColumnWidthChanging,c=e.onColumnWidthChanged,u=en(r),s=u.dndEvents,l=u.dndState,f=(0,Z.useCallback)((function(e){return a.current.querySelector("th[id='header-cell-".concat(e.id,"']"))}),[]),p=(0,Z.useCallback)((function(e,t){var n=t.width;return i(e.id,n)}),[i]),d=(0,Z.useCallback)((function(e){return c(e.id)}),[c]),h=nn(f,p,d),m=h.startResize,g=h.resizingEvents,v=h.resizeState,y=v.isResizing,b=v.resizingElement,w=function(e){return function(t){var n;!y&&null!==(n=e.sorting)&&void 0!==n&&n.sortable&&o(e.id,t.shiftKey)}},O=t.map((function(e){var t="header-cell-".concat(e.id),r="header-cell-drop-".concat(e.id),o=e.sorting&&e.sorting.sortable,a=y&&e.id===(null==b?void 0:b.id),i=l.currentlyDragOver===e.id&&l.currentlyDragging!==e.id,c=l.currentlyDragging===e.id;return(0,G.jsxs)(ut,{"data-cy":t,id:t,onClick:w(e),isResizingAnyCell:y,isResizingThisCell:a,isSortable:o,isDraggedOver:i,alignment:e.alignment,children:[(0,G.jsx)(wt,cn(cn({id:r},!e.fixedPosition&&cn({draggable:!0},s(e.id))),{},{children:(0,G.jsx)(it,{isDragged:c,children:(0,G.jsx)(un,{column:e,data:n})})}),r),e.resizable&&(0,G.jsx)(rn,{column:e,startResize:m})]},t)}));return(0,G.jsx)(ht,cn(cn({},g),{},{children:(0,G.jsx)(mt,{children:O})}))};function ln(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 fn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ln(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ln(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pn=function(e){var t=e.columns,n=e.selection,r=e.data,o=e.onSelectionChange,a=e.selectionStyle,i=e.paginationInfo,c=e.onColumnPositionChange,u=e.onSortingChange,s=e.dataLoadingInProgress,l=e.onRowClick,f=e.clickable,p=e.onPageChange,d=e.onPageRefresh,h=e.scrollBehaviour,m=void 0===h?he.P.INLINE:h,g=e.onColumnWidthChange,v=e.selectionFilterFn,y=(0,Z.useState)(t),b=U()(y,2),w=b[0],O=b[1],x=(0,Z.useRef)(null),k=(0,Z.useCallback)((function(e){var t,n=null===(t=w.find((function(t){return t.id===e})))||void 0===t?void 0:t.width;g&&g(e,n)}),[w,g]),S=(0,Z.useCallback)((function(e,t){O(H()(w.map((function(n){return n.id===e?fn(fn({},n),{},{width:t}):n}))))}),[w]),P=(0,Z.useMemo)((function(){return r?r.map((function(e){return e.__key})):[]}),[r]),j=_e(n,P,o),_=j.isSelected,E=j.selectionChange;return(0,Z.useEffect)((function(){var e=function(e,t,n,r,o){return e&&e!==Oe.NONE?e===Oe.MULTI?je(n,r,o):Pe(n,r,o):null}(a,0,_,E,v);O([].concat(H()(e?[e]:[]),H()(t)))}),[t,n,_,E,v,a]),(0,G.jsxs)(bt,{children:[(0,G.jsx)(yt,{children:(0,G.jsxs)(vt,{ref:x,columns:w,scrollBehaviour:m,children:[(0,G.jsx)(sn,{columns:w,data:r,onColumnWidthChanging:S,onColumnWidthChanged:k,onColumnPositionChange:c,tableEl:x,onSortingChange:u}),(0,G.jsx)(At,{columns:w,data:r,isSelected:_,selectionChange:E,dataLoadingInProgress:s,onRowClick:l,clickable:f})]})}),(0,G.jsx)(qt,{onPageChange:p,onPageRefresh:d,paginationInfo:i,tableEl:x})]})},dn=function(e,t){return 0===Object.keys(de.Z.difference(e,t)).length};const hn=L().memo(pn,dn);function mn(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 gn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mn(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vn=function(e){return Object.keys(e.entities[0].paths)},yn=function(e){return H()(new Set(e.relations.map((function(e){return e.relationName}))))},bn=function(e){var t=Object.entries(e.entities[0].paths).filter((function(e){var t=U()(e,2);t[0];return"counter"===t[1].type})).map((function(e){var t=U()(e,2),n=t[0];t[1];return n})),n=function(e){return[].concat(H()(vn(e)),H()(yn(e)))}(e).filter((function(e){return!t.includes(e)})),r=function(t){return t.map((function(t){return{name:t,label:e.labels[t]}})).sort((function(e,t){return e.label<t.label?-1:1})).map((function(e){return e.name}))};return[].concat(H()(r(t)),H()(r(n)))},wn=function(e,t,n){var r="PK: ".concat(n),o=e.displays.find((function(e){return e.model===t}));if(void 0===o)return r;var a=o.values.find((function(e){return e.key===n}));return a?a.display:r};const On={fixLabel:function(){return!0}},xn={getOptions:function(e){var t=e.formData;return{trueLabel:t.intl.formatMessage({id:"client.common.yes"}),falseLabel:t.intl.formatMessage({id:"client.common.no"})}},hasValue:function(e){var t=e.value;return!0===t||!1===t}};var kn=function(e,t){return{entityModel:e.model,key:e.key,field:t}},Sn=function(e,t){if(e.implicitModelField&&t.formValues){var n=e.implicitModelField,r=n.indexOf(".");return r?function(e,t,n){var r=e.substring(0,t),o=e.substring(t+1),a=n.formValues[r];if(a){if(!Array.isArray(a))return kn(a,o);if(1===a.length)return kn(a[0],o)}return null}(n,r,t):t.formValues[n]}return e.implicitModel},Pn=function(e){if(e.implicitModelField){var t=e.implicitModelField,n=t.indexOf(".");return n?[t.substring(0,n)]:[t]}return[]};const jn={fixLabel:function(){return!0},getOptions:function(e){var t=e.formField,n=e.formData;return{mode:t.mode,implicitModel:Sn(t,n)}},dataContainerProps:function(e){var t=e.formField;return{formValues:{formName:e.formName,fields:Pn(t)}}}};var _n=function(e){if(!e||isNaN(e))return null;var t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return[t,(n>9?"":"0")+n,(r>9?"":"0")+r].join("-")};const En={getOptions:function(){return{datePickerOptions:{dateToValue:_n}}}},Cn={getOptions:function(e){var t=e.entityField;if("long"===(null==t?void 0:t.type))return{datePickerOptions:{valueToDate:function(e){var t=e?new Date(e):null;return isNaN(t)?null:t},dateToValue:function(e){return e?e.getTime():null}}}}},Dn={getOptions:function(e){var t=e.formField;return{postPointDigits:Xe()(t,"validation.decimalDigits.postPointDigits",null),prePointDigits:Xe()(t,"validation.decimalDigits.prePointDigits",null),minValue:Xe()(t,"validation.numberRange.fromIncluding",null),maxValue:Xe()(t,"validation.numberRange.toIncluding",null),allowNegative:!0}}};function Tn(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 Mn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tn(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Rn={getOptions:function(e){var t=e.formField,n=e.formName,r=e.formData;return Mn(Mn({upload:function(e){r.uploadDocument(n,t.id,e)}},r.chooseDocument?{choose:function(){return r.chooseDocument(r.setDocument,n,t.id)}}:{}),{},{uploadText:r.intl.formatMessage({id:"client.component.upload.upload"}),uploadingText:r.intl.formatMessage({id:"client.component.upload.uploading"}),downloadText:r.intl.formatMessage({id:"client.component.upload.downloadTitle"}),deleteText:r.intl.formatMessage({id:"client.component.upload.deleteTitle"})})},fixLabel:function(){return!0}};var In=function(e){return!e.validation||!e.validation.numberRange||"number"!=typeof e.validation.numberRange.fromIncluding||e.validation.numberRange.fromIncluding<0};const Nn={getOptions:function(e){var t=e.formField,n=e.formData;return{hoursLabel:n.intl.formatMessage({id:"client.component.duration.hoursLabel"}),minutesLabel:n.intl.formatMessage({id:"client.component.duration.minutesLabel"}),secondsLabel:n.intl.formatMessage({id:"client.component.duration.secondsLabel"}),allowNegative:In(t)}}};function An(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 Zn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?An(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):An(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ln={dataContainerProps:function(e){var t=e.formField,n=e.formName;return{locations:[t.id],formValues:{formName:n,fields:[t.id]}}},getValue:function(e){var t=e.formField,n=e.formData.formValues[t.id];return Zn(Zn({},n),null!=n&&n.distance?{}:{distance:10})},getOptions:function(e){var t=e.formField,n=e.formData;return{latitudeField:t.latitudeField,longitudeField:t.longitudeField,noResultsText:n.intl.formatMessage({id:"client.component.geosearch.noResultsText"}),emptySearchText:n.intl.formatMessage({id:"client.component.geosearch.emptySearchText"}),kmSuffixText:n.intl.formatMessage({id:"client.component.geosearch.km"}),suggestions:Xe()(n,["locations",t.id,"suggestions"],[]),isLoading:Xe()(n,["locations",t.id,"isLoading"],!1),fetchSuggestions:function(e,r){e?n.loadLocationsSuggestions(t.id,e,r,Xe()(t,"countries")):n.setLocationSuggestions(t.id,[])}}}};var Fn=function(e){if(!["email_editor","correspondence_editor"].includes(e))return{removeButtons:["Font","FontSize","TextColor"]}};const Hn={fixLabel:function(){return!0},getOptions:function(e){var t=e.formField;return{ckEditorConfig:Fn(t.htmlconfig)}}},Bn={getOptions:function(e){var t=e.formField;return{minValue:Xe()(t,"validation.numberRange.fromIncluding",null),maxValue:Xe()(t,"validation.numberRange.toIncluding",null)}}};var Un=i(50008),Wn=i.n(Un),zn=(i(2525),i(57557)),Yn=i.n(zn);i(54061);var Vn="--",qn=function(e){return e?e.replace(/\./g,Vn).replace(/\[/g,"=-=").replace(/\]/g,"=_="):e};function Gn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gn(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Xn={hasValue:function(e){var t=e.formValues,n=e.formField.locationMapping;return!(!t[qn(n.city)]&&!t[qn(n.postcode)])},getValue:function(e){var t=e.formField,n=e.formData,r=t.locationMapping;return{postcode:n.formValues[qn(r.postcode)],city:n.formValues[qn(r.city)]}},getEvents:function(e){var t=e.formField,n=e.formName,r=e.formData,o=e.events,a=t.locationMapping||{};return Kn(Kn({},o),{},{onChange:function(e){for(var o in a)if(a[o]&&void 0!==e[o]){var i=null!==e[o]?e[o]:"";r.changeFieldValue(n,a[o],i)}var c=e.postcode,u=e.city;r.changeFieldValue(n,t.id,Kn(Kn({},void 0!==c?{postcode:c||""}:{}),void 0!==u?{city:u||""}:{}))},onBlur:function(){r.touchField(n,t.id)}})},dataContainerProps:function(e){var t=e.formField,n=e.formName;return{locations:[t.id],formValues:{formName:n,fields:t.locationMapping?Object.values(t.locationMapping).map((function(e){return qn(e)})):{}}}},getOptions:function(e){var t=e.formField,n=e.formData;return{fetchSuggestions:function(e,r){return n.loadLocationsSuggestions(t.id,e,r,Xe()(t,"countries"))},isLoading:Xe()(n,["locations",t.id,"isLoading"],!1),suggestions:Xe()(n,["locations",t.id,"suggestions"],null),mapButtonTitle:n.intl.formatMessage({id:"client.component.location.mapButtonTitle"}),locationValues:Object.keys(t.locationMapping||{}).reduce((function(e,r){return Kn(Kn({},e),{},g()({},r,n.formValues[qn(t.locationMapping[r])]))}),{})}},getMandatoryValidation:function(e){var t,n,r=e.formField,o=r.locationMapping,a=null===(t=r.siblings.find((function(e){return e.id===o.city})))||void 0===t?void 0:t.validation,i=null===(n=r.siblings.find((function(e){return e.id===o.postcode})))||void 0===n?void 0:n.validation;return(null==a?void 0:a.mandatory)||(null==i?void 0:i.mandatory)}},Qn={getOptions:function(e){var t=e.formField;return{postPointDigits:Xe()(t,"validation.decimalDigits.postPointDigits",2),prePointDigits:Xe()(t,"validation.decimalDigits.prePointDigits",null),minValue:Xe()(t,"validation.numberRange.fromIncluding",null),maxValue:Xe()(t,"validation.numberRange.toIncluding",null),allowNegative:!0,fixedDecimalScale:!0}}},$n={getOptions:function(e){var t=e.formField;return{prePointDigits:Xe()(t,"validation.decimalDigits.prePointDigits",null),postPointDigits:Xe()(t,"validation.decimalDigits.postPointDigits",null),minValue:Xe()(t,"validation.numberRange.fromIncluding",null),maxValue:Xe()(t,"validation.numberRange.toIncluding",null),allowNegative:!0}}},Jn={getOptions:function(e){var t=e.formField;return{prePointDigits:Xe()(t,"validation.decimalDigits.prePointDigits",null),postPointDigits:Xe()(t,"validation.decimalDigits.postPointDigits",null),minValue:Xe()(t,"validation.numberRange.fromIncluding",null),maxValue:Xe()(t,"validation.numberRange.toIncluding",null),allowNegative:!1,suffix:"%"}}},er={getOptions:function(e){var t=e.formField;return{customPhoneRegex:Xe()(t,"validation.phone.customRegex",null),defaultCountry:Xe()(t,"validation.phone.defaultRegion",null)}}};var tr=i(6479),nr=i.n(tr),rr=["entityKey","children"];function or(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 ar(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?or(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):or(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ir=50,cr=10,ur=function(e){return e.filter(Boolean).join(" and ")},sr=function(e){return e&&Array.isArray(e)&&0!==e.length?"not KEYS(".concat(e.map((function(e){return e.key})).join(", "),")"):void 0};const lr={dataContainerProps:function(e){var t=e.formField;return{relationEntities:[t.id],tooltips:[t.targetEntity],navigationStrategy:!0}},getOptions:function(e){var t=e.formField,n=e.formName,r=e.formData;return{options:Xe()(r,["relationEntities",t.id,"data"],[]),moreOptionsAvailable:Xe()(r,["relationEntities",t.id,"moreEntitiesAvailable"],!1),isLoading:Xe()(r,["relationEntities",t.id,"isLoading"],!1),fetchOptions:function(e){r.loadRelationEntities(t.id,t.targetEntity,{forceReload:!0,limit:cr,formBase:t.formBase,formName:t.formName,where:ur([t.condition,sr(e)]),loadRemoteFieldConfiguration:!0,constriction:t.constriction})},searchOptions:function(e,n){r.loadRelationEntities(t.id,t.targetEntity,{searchTerm:e,limit:ir,forceReload:!0,formBase:t.formBase,formName:t.formName,where:ur([t.condition,sr(n)]),loadRemoteFieldConfiguration:!0,constriction:t.constriction})},openDocsTreeSearch:t.displayDocsTree?function(e){return r.openDocsTreeSearch(n,t,e)}:void 0,openAdvancedSearch:!1===t.displayAdvancedSearch?void 0:function(e,o){return r.openAdvancedSearch(n,t,e,o)},tooltips:Xe()(r.tooltips,t.targetEntity,null),loadTooltip:function(e){return r.loadTooltip(t.targetEntity,e)},noResultsText:r.intl.formatMessage({id:"client.component.remoteselect.noResultsText"}),moreOptionsAvailableText:r.intl.formatMessage({id:"client.component.remoteselect.moreOptionsAvailableText"}),DetailLink:r.navigationStrategy&&r.navigationStrategy.DetailLink?function(e){var n=e.entityKey,o=e.children,a=nr()(e,rr);return(0,G.jsx)(r.navigationStrategy.DetailLink,ar(ar({entityName:t.targetEntity,entityKey:n},a),{},{children:o}))}:null,createPermission:t.relationName&&Xe()(r,["entityModel","paths",t.relationName,"createPermission"],!1)&&Xe()(r,["entityModel","paths",t.relationName,"useRemoteFieldNewButton"],!0)&&Xe()(t,"displayCreateButton",!0),openRemoteCreate:function(e){return r.openRemoteCreate(t,n,e)}}}},fr={dataContainerProps:function(e){var t=e.formField;return{relationEntities:[t.id],tooltips:[t.targetEntity]}},getOptions:function(e){var t=e.formField,n=e.formData;return{options:Xe()(n,["relationEntities",t.id,"data"],[]),isLoading:Xe()(n,["relationEntities",t.id,"isLoading"],!1),tooltips:Xe()(n.tooltips,t.targetEntity,null),loadTooltip:function(e){return n.loadTooltip(t.targetEntity,e)},noResultsText:n.intl.formatMessage({id:"client.component.remoteselect.noResultsText"}),fetchOptions:function(){return n.loadRelationEntities(t.id,t.targetEntity,{forceReload:!1,constriction:t.constriction,where:t.condition})}}}};function pr(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 dr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pr(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var hr={binary:Rn,boolean:On,choice:{hasValue:function(e){return e.value.options.filter((function(e){return e.checked})).length>0},getOptions:function(e){var t=e.formField;return{selectionType:t.selectionType,renderHtmlInOptions:t.renderHtmlInOptions}}},code:jn,counter:$n,"data-amount":$n,datetime:Cn,date:En,birthdate:En,"pulldown-date":En,decimal:Dn,document:Rn,double:Dn,duration:Nn,geosearch:Ln,html:Hn,image:Rn,integer:Bn,location:Xn,long:Bn,moneyamount:Qn,marking:On,"multi-remote-field":lr,"multi-select-box":fr,"named-upload":Rn,number:$n,phone:er,"pseudo-select":{hasValue:function(e){return e.value.options.filter((function(e){return e.selected})).length>0},getOptions:function(e){return{isMulti:e.formField.isMulti}}},"search-filter":{dataContainerProps:function(e){return{searchFilters:[e.formField.model]}},getOptions:function(e){var t=e.formField,n=e.formData;return{isMulti:t.multiple,options:Xe()(n.searchFilters,t.model,null),fetchOptions:function(){return n.loadSearchFilters(t.model,t.group)},noResultsText:n.intl.formatMessage({id:"client.component.searchfilter.noResultsText"})}}},"single-remote-field":lr,"single-select-box":fr,sorting:$n,percent:Jn},mr=dr({},hr);const gr={editable:hr,readOnly:dr({},hr),list:mr,search:dr(dr({},hr),{},{boolean:xn,marking:xn})};var vr=i(44759),yr=i(41609),br=i.n(yr),wr=i(14293),Or=i.n(wr),xr=i(23493),kr=i.n(xr),Sr=i(33417),Pr=i(1972),jr=i(32924),_r=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];var Er=i(2717);function Cr(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 Dr(e,t){return(Dr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Tr(e){return(Tr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Mr=i(62360);function Rr(e,t){if(t&&("object"===(0,Mr.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 Ir(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=Tr(e);if(t){var o=Tr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Rr(this,n)}}var Nr=i(31599);var Ar=i(78001);function Zr(e){return function(e){if(Array.isArray(e))return(0,Nr.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,Ar.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 Lr=i(29382),Fr=i(1537),Hr=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Br(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||Hr(r)&&Hr(o)))return!1;var r,o;return!0}for(var Ur={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"},Wr=function(e){return(0,Fr.tZ)("span",(0,Er.Z)({css:Ur},e))},zr={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,u=e.isSelected,s=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(s(i,n),".");if("menu"===t){var l=c?" disabled":"",f="".concat(u?"selected":"focused").concat(l);return"option ".concat(a," ").concat(f,", ").concat(s(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Yr=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,a=e.isFocused,i=e.selectValue,c=e.selectProps,u=e.id,s=c.ariaLiveMessages,l=c.getOptionLabel,f=c.inputValue,p=c.isMulti,d=c.isOptionDisabled,h=c.isSearchable,m=c.menuIsOpen,g=c.options,v=c.screenReaderStatus,y=c.tabSelectsValue,b=c["aria-label"],w=c["aria-live"],O=(0,Z.useMemo)((function(){return(0,Sr.Z)((0,Sr.Z)({},zr),s||{})}),[s]),x=(0,Z.useMemo)((function(){var e,n="";if(t&&O.onChange){var r=t.option,o=t.options,a=t.removedValue,c=t.removedValues,u=t.value,s=a||r||(e=u,Array.isArray(e)?null:e),f=s?l(s):"",p=o||c||void 0,h=p?p.map(l):[],m=(0,Sr.Z)({isDisabled:s&&d(s,i),label:f,labels:h},t);n=O.onChange(m)}return n}),[t,O,d,i,l]),k=(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]),S=(0,Z.useMemo)((function(){var e="";if(m&&g.length&&O.onFilter){var t=v({count:o.length});e=O.onFilter({inputValue:f,resultsMessage:t})}return e}),[o,f,m,O,g,v]),P=(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:p,isSearchable:h,tabSelectsValue:y})}return e}),[b,n,r,p,d,h,m,O,i,y]),j="".concat(k," ").concat(S," ").concat(P),_=(0,Fr.tZ)(Z.Fragment,null,(0,Fr.tZ)("span",{id:"aria-selection"},x),(0,Fr.tZ)("span",{id:"aria-context"},j)),E="initial-input-focus"===(null==t?void 0:t.action);return(0,Fr.tZ)(Z.Fragment,null,(0,Fr.tZ)(Wr,{id:u},E&&_),(0,Fr.tZ)(Wr,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},a&&!E&&_))},Vr=[{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źẑżžẓẕƶȥɀⱬꝣ"}],qr=new RegExp("["+Vr.map((function(e){return e.letters})).join("")+"]","g"),Gr={},Kr=0;Kr<Vr.length;Kr++)for(var Xr=Vr[Kr],Qr=0;Qr<Xr.letters.length;Qr++)Gr[Xr.letters[Qr]]=Xr.base;var $r=function(e){return e.replace(qr,(function(e){return Gr[e]}))},Jr=function(e,t){void 0===t&&(t=Br);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}($r),eo=function(e){return e.replace(/^\s+|\s+$/g,"")},to=function(e){return"".concat(e.label," ").concat(e.value)},no=["innerRef"];function ro(e){var t=e.innerRef,n=(0,jr.Z)(e,no),r=(0,Lr.r)(n,"onExited","in","enter","exit","appear");return(0,Fr.tZ)("input",(0,Er.Z)({ref:t},r,{css:(0,Fr.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 oo=["boxSizing","height","overflow","paddingRight","position"],ao={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function io(e){e.preventDefault()}function co(e){e.stopPropagation()}function uo(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function so(){return"ontouchstart"in window||navigator.maxTouchPoints}var lo=!("undefined"==typeof window||!window.document||!window.document.createElement),fo=0,po={capture:!1,passive:!1};var ho=function(){return document.activeElement&&document.activeElement.blur()},mo={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function go(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),u=(0,Z.useRef)(0),s=(0,Z.useRef)(null),l=(0,Z.useCallback)((function(e,t){if(null!==s.current){var u=s.current,l=u.scrollTop,f=u.scrollHeight,p=u.clientHeight,d=s.current,h=t>0,m=f-p-l,g=!1;m>t&&i.current&&(r&&r(e),i.current=!1),h&&c.current&&(a&&a(e),c.current=!1),h&&t>m?(n&&!i.current&&n(e),d.scrollTop=f,g=!0,i.current=!0):!h&&-t>l&&(o&&!c.current&&o(e),d.scrollTop=0,g=!0,c.current=!0),g&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,o,a]),f=(0,Z.useCallback)((function(e){l(e,e.deltaY)}),[l]),p=(0,Z.useCallback)((function(e){u.current=e.changedTouches[0].clientY}),[]),d=(0,Z.useCallback)((function(e){var t=u.current-e.changedTouches[0].clientY;l(e,t)}),[l]),h=(0,Z.useCallback)((function(e){if(e){var t=!!Lr.s&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",d,t)}}),[d,p,f]),m=(0,Z.useCallback)((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",d,!1))}),[d,p,f]);return(0,Z.useEffect)((function(){if(t){var e=s.current;return h(e),function(){m(e)}}}),[t,h,m]),function(e){s.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(lo){var t=document.body,n=t&&t.style;if(r&&oo.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&fo<1){var a=parseInt(o.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,c=window.innerWidth-i+a||0;Object.keys(ao).forEach((function(e){var t=ao[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(c,"px"))}t&&so()&&(t.addEventListener("touchmove",io,po),e&&(e.addEventListener("touchstart",uo,po),e.addEventListener("touchmove",co,po))),fo+=1}}),[r]),c=(0,Z.useCallback)((function(e){if(lo){var t=document.body,n=t&&t.style;fo=Math.max(fo-1,0),r&&fo<1&&oo.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&so()&&(t.removeEventListener("touchmove",io,po),e&&(e.removeEventListener("touchstart",uo,po),e.removeEventListener("touchmove",co,po)))}}),[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,Fr.tZ)(Z.Fragment,null,n&&(0,Fr.tZ)("div",{onClick:ho,css:mo}),t((function(e){o(e),a(e)})))}var vo={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},yo=function(e){var t=e.name,n=e.onFocus;return(0,Fr.tZ)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:vo,value:"",onChange:function(){}})},bo={clearIndicator:Lr.a,container:Lr.b,control:Lr.d,dropdownIndicator:Lr.e,group:Lr.g,groupHeading:Lr.f,indicatorsContainer:Lr.i,indicatorSeparator:Lr.h,input:Lr.j,loadingIndicator:Lr.l,loadingMessage:Lr.k,menu:Lr.m,menuList:Lr.n,menuPortal:Lr.o,multiValue:Lr.p,multiValueLabel:Lr.q,multiValueRemove:Lr.t,noOptionsMessage:Lr.u,option:Lr.v,placeholder:Lr.w,singleValue:Lr.x,valueContainer:Lr.y};var wo,Oo={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}},xo={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,Lr.z)(),captureMenuScroll:!(0,Lr.z)(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,Sr.Z)({ignoreCase:!0,ignoreAccents:!0,stringify:to,trim:!0,matchFrom:"any"},wo),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,c=n.matchFrom,u=i?eo(t):t,s=i?eo(a(e)):a(e);return r&&(u=u.toLowerCase(),s=s.toLowerCase()),o&&(u=Jr(u),s=$r(s)),"start"===c?s.substr(0,u.length)===u:s.indexOf(u)>-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,Lr.A)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function ko(e,t,n,r){return{type:"option",data:t,isDisabled:Co(e,t,n),isSelected:Do(e,t,n),label:_o(e,t),value:Eo(e,t),index:r}}function So(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return ko(e,n,t,r)})).filter((function(t){return jo(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=ko(e,n,t,r);return jo(e,a)?a:void 0})).filter(Lr.K)}function Po(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Zr(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function jo(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,c=t.value;return(!Mo(e)||!a)&&To(e,{label:i,value:c,data:o},r)}var _o=function(e,t){return e.getOptionLabel(t)},Eo=function(e,t){return e.getOptionValue(t)};function Co(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Do(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Eo(e,t);return n.some((function(t){return Eo(e,t)===r}))}function To(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Mo=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Ro=1,Io=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&&Dr(e,t)}(a,e);var t,n,r,o=Ir(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),u=t.isOptionDisabled(e,i);if(c){var s=t.getOptionValue(e);t.setValue((0,Lr.B)(i.filter((function(e){return t.getOptionValue(e)!==s}))),"deselect-option",e)}else{if(u)return void t.ariaOnChange((0,Lr.C)(e),{action:"select-option",option:e,name:a});o?t.setValue((0,Lr.B)([].concat(Zr(i),[e])),"select-option",e):t.setValue((0,Lr.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,Lr.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,Lr.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,Lr.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 Lr.E.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return _o(t.props,e)},t.getOptionValue=function(e){return Eo(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=bo[e](n,r);o.boxSizing="border-box";var a=t.props.styles[e];return a?a(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){return(0,Lr.F)(t.props)},t.buildCategorizedOptions=function(){return So(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Po(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:(0,Sr.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,Lr.G)(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),a=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||a>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return Mo(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,u=n.isDisabled,s=n.menuIsOpen,l=n.onKeyDown,f=n.tabSelectsValue,p=n.openMenuOnFocus,d=t.state,h=d.focusedOption,m=d.focusedValue,g=d.selectValue;if(!(u||"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||!s||!f||!h||p&&t.isOptionSelected(h,g))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(s){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":s?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:i}),t.onMenuClose()):c&&a&&t.clearValue();break;case" ":if(i)return;if(!s){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":s?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":s?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!s)return;t.focusOption("pageup");break;case"PageDown":if(!s)return;t.focusOption("pagedown");break;case"Home":if(!s)return;t.focusOption("first");break;case"End":if(!s)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++Ro),t.state.selectValue=(0,Lr.H)(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.buildFocusableOptions(),r=n.indexOf(t.state.selectValue[0]);t.state.focusedOption=n[r]}return t}return t=a,r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,i=t.isFocused,c=t.prevWasFocused,u=e.options,s=e.value,l=e.menuIsOpen,f=e.inputValue,p=e.isMulti,d=(0,Lr.H)(s),h={};if(n&&(s!==n.value||u!==n.options||l!==n.menuIsOpen||f!==n.inputValue)){var m=l?function(e,t){return Po(So(e,t))}(e,d):[],g=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,d):null;h={selectValue:d,focusedOption:function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,m),focusedValue:g,clearFocusValueOnUpdate:!1}}var v=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},y=a,b=i&&c;return i&&!b&&(y={value:(0,Lr.D)(p,d,d[0]||null),options:d,action:"initial-input-focus"},b=!c),"initial-input-focus"===(null==a?void 0:a.action)&&(y=null),(0,Sr.Z)((0,Sr.Z)((0,Sr.Z)({},h),v),{},{prevProps:e,ariaSelection:y,prevWasFocused:b})}}],(n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&(0,Lr.I)(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&((0,Lr.I)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildFocusableOptions(),i="first"===e?0:a.length-1;if(!this.props.isMulti){var c=a.indexOf(r[0]);c>-1&&(i=c)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[i]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var a=n.length-1,i=-1;if(n.length){switch(e){case"previous":i=0===o?0:-1===o?a:o-1;break;case"next":o>-1&&o<a&&(i=o+1)}this.setState({inputIsHidden:-1!==i,focusedValue:n[i]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,a=r.indexOf(n);n||(a=-1),"up"===e?o=a>0?a-1:r.length-1:"down"===e?o=(a+1)%r.length:"pageup"===e?(o=a-t)<0&&(o=0):"pagedown"===e?(o=a+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Oo):(0,Sr.Z)((0,Sr.Z)({},Oo),this.props.theme):Oo}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,a=this.selectOption,i=this.setValue,c=this.props,u=c.isMulti,s=c.isRtl,l=c.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:u,isRtl:s,options:l,selectOption:a,selectProps:c,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Co(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Do(this.props,e,t)}},{key:"filterOption",value:function(e,t){return To(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,u=e.required,s=this.getComponents().Input,l=this.state,f=l.inputIsHidden,p=l.ariaSelection,d=this.commonProps,h=r||this.getElementId("input"),m=(0,Sr.Z)((0,Sr.Z)((0,Sr.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":u,role:"combobox"},c&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?Z.createElement(s,(0,Er.Z)({},d,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:f,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:i,type:"text",value:o},m)):Z.createElement(ro,(0,Er.Z)({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Lr.J,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:i,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,i=t.SingleValue,c=t.Placeholder,u=this.commonProps,s=this.props,l=s.controlShouldRenderValue,f=s.isDisabled,p=s.isMulti,d=s.inputValue,h=s.placeholder,m=this.state,g=m.selectValue,v=m.focusedValue,y=m.isFocused;if(!this.hasValue()||!l)return d?null:Z.createElement(c,(0,Er.Z)({},u,{key:"placeholder",isDisabled:f,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(p)return g.map((function(t,i){var c=t===v,s="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return Z.createElement(n,(0,Er.Z)({},u,{components:{Container:r,Label:o,Remove:a},isFocused:c,isDisabled:f,key:s,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,Er.Z)({},u,{data:b,isDisabled:f}),this.formatOptionLabel(b,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var i={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return Z.createElement(e,(0,Er.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,Er.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,Er.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,Er.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,u=t.NoOptionsMessage,s=t.Option,l=this.commonProps,f=this.state.focusedOption,p=this.props,d=p.captureMenuScroll,h=p.inputValue,m=p.isLoading,g=p.loadingMessage,v=p.minMenuHeight,y=p.maxMenuHeight,b=p.menuIsOpen,w=p.menuPlacement,O=p.menuPosition,x=p.menuPortalTarget,k=p.menuShouldBlockScroll,S=p.menuShouldScrollIntoView,P=p.noOptionsMessage,j=p.onMenuScrollToTop,_=p.onMenuScrollToBottom;if(!b)return null;var E,C=function(t,n){var r=t.type,o=t.data,a=t.isDisabled,i=t.isSelected,c=t.label,u=t.value,p=f===o,d=a?void 0:function(){return e.onOptionHover(o)},h=a?void 0:function(){return e.selectOption(o)},m="".concat(e.getElementId("option"),"-").concat(n),g={id:m,onClick:h,onMouseMove:d,onMouseOver:d,tabIndex:-1};return Z.createElement(s,(0,Er.Z)({},l,{innerProps:g,data:o,isDisabled:a,isSelected:i,key:m,label:c,type:r,value:u,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())E=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),u="".concat(c,"-heading");return Z.createElement(n,(0,Er.Z)({},l,{key:c,data:o,options:a,Heading:r,headingProps:{id:u,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return C(e,"".concat(i,"-").concat(e.index))})))}if("option"===t.type)return C(t,"".concat(t.index))}));else if(m){var D=g({inputValue:h});if(null===D)return null;E=Z.createElement(c,l,D)}else{var T=P({inputValue:h});if(null===T)return null;E=Z.createElement(u,l,T)}var M={minMenuHeight:v,maxMenuHeight:y,menuPlacement:w,menuPosition:O,menuShouldScrollIntoView:S},R=Z.createElement(Lr.M,(0,Er.Z)({},l,M),(function(t){var n=t.ref,r=t.placerProps,i=r.placement,c=r.maxHeight;return Z.createElement(o,(0,Er.Z)({},l,M,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:m,placement:i}),Z.createElement(go,{captureEnabled:d,onTopArrive:j,onBottomArrive:_,lockEnabled:k},(function(t){return Z.createElement(a,(0,Er.Z)({},l,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:m,maxHeight:c,focusedOption:f}),E)})))}));return x||"fixed"===O?Z.createElement(i,(0,Er.Z)({},l,{appendTo:x,controlElement:this.controlRef,menuPlacement:w,menuPosition:O}),R):R}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,a=t.name,i=t.required,c=this.state.selectValue;if(i&&!this.hasValue()&&!r)return Z.createElement(yo,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(o){if(n){var u=c.map((function(t){return e.getOptionValue(t)})).join(n);return Z.createElement("input",{name:a,type:"hidden",value:u})}var s=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,s)}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(Yr,(0,Er.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,u=a.isDisabled,s=a.menuIsOpen,l=this.state.isFocused,f=this.commonProps=this.getCommonProps();return Z.createElement(r,(0,Er.Z)({},f,{className:i,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:l}),this.renderLiveRegion(),Z.createElement(t,(0,Er.Z)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:l,menuIsOpen:s}),Z.createElement(o,(0,Er.Z)({},f,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),Z.createElement(n,(0,Er.Z)({},f,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}])&&Cr(t.prototype,n),r&&Cr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(Z.Component);Io.defaultProps=xo;i(66751),i(30314),i(73469);var No=(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,u=e.menuIsOpen,s=e.onChange,l=e.onInputChange,f=e.onMenuClose,p=e.onMenuOpen,d=e.value,h=(0,jr.Z)(e,_r),m=(0,Z.useState)(void 0!==c?c:n),g=(0,Pr.Z)(m,2),v=g[0],y=g[1],b=(0,Z.useState)(void 0!==u?u:o),w=(0,Pr.Z)(b,2),O=w[0],x=w[1],k=(0,Z.useState)(void 0!==d?d:i),S=(0,Pr.Z)(k,2),P=S[0],j=S[1],_=(0,Z.useCallback)((function(e,t){"function"==typeof s&&s(e,t),j(e)}),[s]),E=(0,Z.useCallback)((function(e,t){var n;"function"==typeof l&&(n=l(e,t)),y(void 0!==n?n:e)}),[l]),C=(0,Z.useCallback)((function(){"function"==typeof p&&p(),x(!0)}),[p]),D=(0,Z.useCallback)((function(){"function"==typeof f&&f(),x(!1)}),[f]),T=void 0!==c?c:v,M=void 0!==u?u:O,R=void 0!==d?d:P;return(0,Sr.Z)((0,Sr.Z)({},h),{},{inputValue:T,menuIsOpen:M,onChange:_,onInputChange:E,onMenuClose:D,onMenuOpen:C,value:R})}(e);return Z.createElement(Io,(0,Er.Z)({ref:t},n))}));function Ao(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 Zo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ao(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ao(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Lo=(0,x.ZP)((function(e){var t;return(0,G.jsx)("span",Zo(Zo({},e.innerProps),{},{children:(0,G.jsx)($e.Z,{icon:"times",tabIndex:-1,"aria-label":(t="client.component.select.clearFieldLabel",e.intl.formatMessage({id:t}))})}))}));var Fo=i(95497);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 Bo(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){g()(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}const Uo=function(e){var t=e.selectProps,n=t.isDisabled,r=t.menuIsOpen;return n?null:(0,G.jsx)(Lr.c.DropdownIndicator,Bo(Bo({},e),{},{children:(0,G.jsx)(Fo.M6,{children:(0,G.jsx)($e.Z,{icon:r?"chevron-up":"chevron-down",visible:!0,tabIndex:-1})})}))};var Wo,zo,Yo;function Vo(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 qo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vo(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Go=function(e,t,n){return function(r){r.stopPropagation(),e(t,n)}},Ko=function(e,t){return function(n){n.stopPropagation(),e(t)}},Xo=function(e,t){return function(n){n.stopPropagation(),e(t)}},Qo=function(e){e.stopPropagation()};const $o=function(e){var t=e.selectProps,n=t.openDocsTreeSearch,r=t.openAdvancedSearch,o=t.openRemoteCreate,a=t.isDisabled,i=t.hasDocsTreeSearch,c=t.hasAdvancedSearch,u=t.createPermission,s=t.value,l=t.isMulti,f=t.inputValue,p=l&&(c||i);return(0,G.jsx)(Fo.HO,{isTopAligned:p,children:(0,G.jsxs)(Lr.c.IndicatorsContainer,qo(qo({},e),{},{children:[e.children,n&&!a&&(0,G.jsx)("span",{onTouchEnd:Qo,onMouseDown:Ko(n,s),children:Wo||(Wo=(0,G.jsx)($e.Z,{icon:"folder",tabIndex:-1}))}),r&&!a&&(0,G.jsx)("span",{onTouchEnd:Qo,onMouseDown:Go(r,f,s),children:zo||(zo=(0,G.jsx)($e.Z,{icon:"search",tabIndex:-1}))}),u&&!a&&(0,G.jsx)("span",{onTouchEnd:Qo,onMouseDown:Xo(o,s),children:Yo||(Yo=(0,G.jsx)($e.Z,{icon:"plus",tabIndex:-1}))})]}))})};var Jo;const ea=function(){return Jo||(Jo=(0,G.jsx)("span",{children:(0,G.jsx)(kt.Z,{size:"1.8rem"})}))};var ta=i(15315);function na(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ra(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?na(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):na(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const oa=function(e){var t=e.selectProps,n=e.children;return(0,G.jsx)(Fo._M,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"window",attachment:"together"}],renderTarget:function(e){return(0,G.jsx)("div",{ref:e})},renderElement:function(r){return(0,G.jsx)("div",{ref:r,className:ta.c,children:(0,G.jsx)(Fo.l2,ra(ra({},Yn()(e,["innerRef"])),{},{wrapperWidth:t.wrapperWidth,wrapperHeight:t.wrapperHeight,children:n}))})}})};function aa(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 ia(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aa(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ca=function(e){var t=e.selectProps,n=e.children,r=t.moreOptionsAvailable,o=t.moreOptionsAvailableText;return(0,G.jsxs)(Lr.c.MenuList,ia(ia({},e),{},{className:"MenuList",children:[n,r&&(0,G.jsx)(Fo.OA,{children:o})]}))};var ua=i(10535),sa=i(76791);function la(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 fa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?la(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):la(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const pa=function(e){var t=e.data,n=e.innerProps,r=e.children,o=e.selectProps,a=o.tooltips,i=o.loadTooltip,c=o.DetailLink,u=Xe()(a,t.key,null),s=(0,G.jsx)("span",fa(fa({},n),{},{children:r})),l=c?(0,G.jsx)(Fo.vR,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,G.jsx)(c,{entityKey:t.key,tabIndex:-1,children:(0,G.jsx)(sa.Z,{content:u?(0,G.jsx)("div",{dangerouslySetInnerHTML:{__html:ua.Z.sanitizeHtml(u)}}):null,children:(0,G.jsx)("span",{onMouseOver:function(){return i&&!u&&i(t.key)},children:s})})})}):s;return(0,G.jsx)(Fo.B1,{children:l})};var da=i(47037),ha=i.n(da),ma=i(14176),ga=i.n(ma);function va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ya(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?va(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):va(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ba=["linkComp"],wa=function(e,t){var n=de.Z.difference(e,t),r=ga()(Yn()(n,ba),(function(e){return 0===Object.keys(e).length}));return 0===Object.entries(r).length},Oa=(0,Z.memo)((function(e){var t=e.linkComp,n=e.entityKey,r=e.children;return t&&ha()(n)?(0,G.jsx)(Fo.vR,{onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},children:(0,G.jsx)(t,{entityKey:n,children:r})}):r}),wa);Oa.propTypes={children:y().node,entityKey:y().any,linkComp:y().func};const xa=function(e){var t=e.data,n=e.selectProps,r=e.isDisabled,o=e.children,a=n.tooltips,i=n.loadTooltip,c=n.DetailLink,u=Xe()(a,t.key,null);return(0,G.jsx)(Lr.c.SingleValue,ya(ya({},e),{},{children:(0,G.jsx)(Fo.xq,{onMouseOver:function(){return i&&!u&&i(t.key)},isDisabled:r,children:(0,G.jsx)(sa.Z,{content:u?(0,G.jsx)("div",{dangerouslySetInnerHTML:{__html:ua.Z.sanitizeHtml(u)}}):null,children:(0,G.jsx)(Oa,{linkComp:c,entityKey:t.key,children:o})})})}))};function ka(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 Sa=function(e){var t;return"Input"===(null==e||null===(t=e.type)||void 0===t?void 0:t.name)};const Pa=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,G.jsx)(Lr.c.ValueContainer,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ka(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ka(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e));var u=Z.Children.map(r,(function(e){return Sa(e)?e:null})),s=Z.Children.map(r,(function(e){return Sa(e)?null:e})),l=c&&n;return(0,G.jsxs)(G.Fragment,{children:[!l&&(0,G.jsx)(G.Fragment,{children:u}),(0,G.jsx)(Fo.eQ,{children:s})]})};function ja(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _a(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){g()(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}const Ea=(0,$.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,u=e.moreOptionsAvailableText,s=e.noResultsText,l=e.noResultsComp,f=e.onChange,p=e.openDocsTreeSearch,d=e.openAdvancedSearch,h=e.options,m=e.searchOptions,g=e.theme,v=e.tooltips,y=e.value,b=e.DetailLink,w=e.createPermission,O=e.openRemoteCreate,x=(0,Z.useRef)(null),k=(0,Z.useRef)(null),S=function(){var e;return(null===(e=k.current)||void 0===e?void 0:e.clientWidth)||300},P=function(){var e;return(null===(e=k.current)||void 0===e?void 0:e.clientHeight)||35},j=(0,Z.useState)(S()),_=U()(j,2),E=_[0],C=_[1],D=(0,Z.useState)(P()),T=U()(D,2),M=T[0],R=T[1],I=(0,Z.useState)(!1),N=U()(I,2),A=N[0],L=N[1],F=function(e){t&&t(e)},B=(0,Z.useCallback)(m||function(){},[]),W=(0,Z.useCallback)(kr()(B,800,{trailing:!0}),[]),z=Boolean(d),Y=Boolean(p),V=Boolean(w);return(0,G.jsx)(Fo.sP,{tabIndex:"-1",id:n,onFocus:function(){x.current.focus(),setTimeout((function(){C(S()),R(P())}),0)},children:(0,G.jsx)(Fo.RU,{ref:k,children:(0,G.jsx)(No,_a(_a({getOptionLabel:function(e){return e.display},getOptionValue:function(e){return e.key},wrapperWidth:E,wrapperHeight:M,components:{ClearIndicator:Lo,LoadingIndicator:ea,DropdownIndicator:Uo,IndicatorsContainer:$o,IndicatorSeparator:null,Menu:oa,MenuList:ca,MultiValueLabel:pa,SingleValue:xa,ValueContainer:Pa},noOptionsMessage:function(e){return s||("function"==typeof l?(0,G.jsx)(l,_a({},e)):" - ")},isMulti:a,closeMenuOnSelect:!a,isSearchable:!0},m?{filterOption:function(){return!0}}:{}),{},{isClearable:!0,loadingMessage:function(){return null},placeholder:"",menuShouldScrollIntoView:!1,autoFocus:!1,value:y||null,onChange:function(e){f(e),F(e)},onInputChange:function(e,t){var n=t.action;m&&e&&W(e,y),""===e&&"input-change"===n&&F(y)},options:H()(h||[]),onKeyDown:function(e){"Enter"===e.key&&A?e.stopPropagation():"Tab"===e.key&&(e.preventDefault=function(){})},isLoading:o,isDisabled:r,ref:x,onMenuOpen:function(){F(y),L(!0)},onMenuClose:function(){L(!1)},styles:(0,Fo.i4)(g),loadTooltip:i,tooltips:v,DetailLink:b,hasDocsTreeSearch:Y,openDocsTreeSearch:p,hasAdvancedSearch:z,openAdvancedSearch:d,moreOptionsAvailable:c,moreOptionsAvailableText:u,blurInputOnSelect:!1,hasCreatePermission:V,createPermission:w,openRemoteCreate:O,closeMenuOnScroll:function(e){var t;return!(null!==(t=e.target.classList)&&void 0!==t&&t.contains("MenuList"))}}))})})}));const Ca=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,G.jsx)(Ea,{id:t,immutable:n,isMulti:!1,onChange:function(e){return c(e?e.key:null)},value:Or()(r)?r:{key:r,display:r?a:i},openMenuOnClick:!0,options:[{key:!0,display:a},{key:!1,display:i}]})};var Da,Ta=$.ZP.div.withConfig({displayName:"StyledBoolEdit"})(Da||(Da=Q()(["\n margin: 5px 0;\n"])));const Ma=function(e){return(0,G.jsx)(Ta,{children:(0,G.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 Ra,Ia;function Na(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 Aa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Na(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Na(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Za=$.ZP.div.withConfig({displayName:"StyledOption"})(Ra||(Ra=Q()(["\n margin: "," 0;\n"])),te.Z.space(-1.4)),La=$.ZP.span.withConfig({displayName:"StyledLabel"})(Ia||(Ia=Q()(["\n ","\n display: inline-block;\n margin-left: ",";\n"])),(0,et.Z)(),te.Z.space(-1.5)),Fa={single:"radio",multiple:"checkbox"},Ha={single:{checked:!1},multiple:{}},Ba=function(e){var t=e.groupName,n=e.id,r=e.label,o=e.checked,a=e.immutable,i=e.selectionType,c=e.renderHtmlInOptions,u=e.handleChange;return(0,G.jsxs)(Za,{children:[(0,G.jsx)("input",{name:t,type:Fa[i],checked:o||!1,onChange:u,id:n,disabled:a}),(0,G.jsx)(La,{children:c?(0,G.jsx)("span",{dangerouslySetInnerHTML:{__html:ua.Z.sanitizeHtml(r)}}):r})]})};const Ua=function(e){var t=function(t){if(e.onChange){var n=e.value.options.map((function(n){return Aa(Aa({},n),n.id===t.target.id?{checked:t.target.checked}:Ha[e.options.selectionType])}));e.onChange({options:n})}};return(0,G.jsx)(G.Fragment,{children:e.value.options.map((function(n){return(0,G.jsx)(Ba,{groupName:e.id,id:n.id,label:n.label,checked:n.checked,immutable:e.immutable,selectionType:e.options.selectionType,renderHtmlInOptions:e.options.renderHtmlInOptions,handleChange:t},n.id)}))})};var Wa=i(23279),za=i.n(Wa);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){g()(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}var qa=(0,Z.lazy)((function(){return Promise.all([i.e(560),i.e(85)]).then(i.bind(i,30919))}));const Ga=function(e){return(0,G.jsx)(Z.Suspense,{fallback:(t=e.value,(0,G.jsx)("div",{children:(0,G.jsx)("p",{children:t})})),children:(0,G.jsx)(qa,Va({},e))});var t};var Ka,Xa,Qa,$a=$.ZP.div.withConfig({displayName:"StyledEditorWrapper"})(Ka||(Ka=Q()(["\n margin-top: ",";\n"])),te.Z.space(-1.5)),Ja=$.ZP.div.withConfig({displayName:"StyledEditorBaseline"})(Xa||(Xa=Q()(["\n height: 0;\n"])));const ei=function(e){var t=e.value,n=e.onChange,r=e.immutable,o=e.options;return(0,G.jsxs)($a,{children:[Qa||(Qa=(0,G.jsx)(Ja,{children:"StyledEditorBaseline"})),(0,G.jsx)(Ga,{value:t,onChange:za()(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 ti=i(86896),ni=i(23842),ri=i(93379),oi=i.n(ri),ai=i(7795),ii=i.n(ai),ci=i(90569),ui=i.n(ci),si=i(3565),li=i.n(si),fi=i(19216),pi=i.n(fi),di=i(44589),hi=i.n(di),mi=i(16721),gi={};gi.styleTagTransform=hi(),gi.setAttributes=li(),gi.insert=ui().bind(null,"head"),gi.domAPI=ii(),gi.insertStyleElement=pi();oi()(mi.Z,gi);mi.Z&&mi.Z.locals&&mi.Z.locals;var vi=i(9198),yi=i.n(vi),bi=(Math.pow(10,8),6e4),wi=36e5,Oi=i(13882),xi=i(83946);var ki={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Si=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Pi=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,ji=/^([+-])(\d{2})(?::?(\d{2}))?$/;function _i(e){var t,n={},r=e.split(ki.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],ki.timeZoneDelimiter.test(n.date)&&(n.date=e.split(ki.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var o=ki.timezone.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}function Ei(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?o:100*a,restDateString:e.slice((r[1]||r[2]).length)}}function Ci(e,t){if(null===t)return new Date(NaN);var n=e.match(Si);if(!n)return new Date(NaN);var r=!!n[4],o=Di(n[1]),a=Di(n[2])-1,i=Di(n[3]),c=Di(n[4]),u=Di(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,c,u)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,a=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}(t,c,u):new Date(NaN);var s=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Ii[t]||(Ni(e)?29:28))}(t,a,i)&&function(e,t){return t>=1&&t<=(Ni(e)?366:365)}(t,o)?(s.setUTCFullYear(t,a,Math.max(o,i)),s):new Date(NaN)}function Di(e){return e?parseInt(e):1}function Ti(e){var t=e.match(Pi);if(!t)return NaN;var n=Mi(t[1]),r=Mi(t[2]),o=Mi(t[3]);return function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,o)?n*wi+r*bi+1e3*o:NaN}function Mi(e){return e&&parseFloat(e.replace(",","."))||0}function Ri(e){if("Z"===e)return 0;var t=e.match(ji);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,o)?n*(r*wi+o*bi):NaN}var Ii=[31,null,31,30,31,30,31,31,30,31,30,31];function Ni(e){return e%400==0||e%4==0&&e%100!=0}var Ai,Zi,Li,Fi,Hi,Bi,Ui,Wi,zi,Yi=(0,$.iv)(Ai||(Ai=Q()(["\n align-items: center;\n cursor: ",";\n display: flex;\n"])),(function(e){return e.immutable?"not-allowed":"default"})),Vi=$.ZP.label.withConfig({displayName:"StyledEditableWrapper"})(Zi||(Zi=Q()(["\n &&& {\n margin: 0; /* reset Bootstrap and Ext JS */\n padding: 0; /* reset Ext JS */\n ","\n }\n"])),Yi),qi=(0,$.iv)(Li||(Li=Q()(["\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,et.Z)({color:oe.FS.color("text")})}),oe.FS.color("text"),(function(e){return e.immutable&&"margin: unset;"}),(function(e){return e.immutable?"none":"auto"})),Gi=(0,$.iv)(Fi||(Fi=Q()(["\n display: flex;\n align-items: center;\n"]))),Ki=$.ZP.div.withConfig({displayName:"StyledEditableControl"})(Hi||(Hi=Q()(["\n &&& {\n ","\n }\n"])),Gi),Xi=$.ZP.span.withConfig({displayName:"StyledEditableValue"})(Bi||(Bi=Q()(["\n width: 100%;\n\n && {\n //url\n [type='url'] + .input-group-addon > a {\n color: inherit; // reset bootstrap default\n }\n\n //url\n [type='tel'] + .input-group-addon > a {\n color: inherit; // reset bootstrap default\n }\n\n //date\n .date-edit {\n .input-group-addon {\n cursor: pointer;\n }\n\n input {\n z-index: 0;\n }\n\n &.disabled {\n input {\n cursor: not-allowed;\n }\n }\n\n .right-addon {\n position: relative;\n }\n\n .right-addon input {\n padding-right: 30px;\n }\n\n .reset {\n position: absolute;\n padding-right: 10px;\n padding-top: 5px;\n right: 0;\n color: #999;\n font-size: 18px;\n font-style: normal;\n cursor: pointer;\n }\n\n .reset:hover {\n color: ",";\n }\n }\n }\n"])),oe.FS.color("signal.danger")),Qi=$.ZP.div.withConfig({displayName:"StyledDatePickerOuterWrapper"})(Ui||(Ui=Q()(["\n outline: ",";\n"])),(function(e){return e.immutable?0:"initial"})),$i=$.ZP.div.withConfig({displayName:"StyledDatePickerWrapper"})(Wi||(Wi=Q()(["\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"])),Yi,qi,(function(e){return e.hasTime&&"border-bottom: 1px solid #aeaeae;"})),Ji=$.ZP.input.withConfig({displayName:"StyledTimeInput"})(zi||(zi=Q()(["\n &&&& {\n ","\n }\n"])),qi),ec=i(37042),tc=i(4543),nc=i(39880),rc=i(85817),oc=i(39159),ac=i(19013);function ic(e){(0,Oi.Z)(1,arguments);var t=(0,ac.Z)(e),n=t.getSeconds();return n}var cc=i(86);function uc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sc(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return uc(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)?uc(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw a}}}}var lc=i(44941),fc=i(29558);function pc(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}var dc=i(97621),hc=i(24262),mc=i(5267);function gc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vc(e,t){return(vc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function yc(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&&vc(e,t)}function bc(e){return(bc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function wc(e,t){if(t&&("object"===(0,cc.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return gc(e)}function Oc(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=bc(e);if(t){var o=bc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wc(this,n)}}function xc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kc(e){var t=function(e,t){if("object"!==(0,cc.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==(0,cc.Z)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,cc.Z)(t)?t:String(t)}function Sc(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,kc(r.key),r)}}function Pc(e,t,n){return t&&Sc(e.prototype,t),n&&Sc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function jc(e,t,n){return(t=kc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _c=function(){function e(){xc(this,e),jc(this,"priority",void 0),jc(this,"subPriority",0)}return Pc(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),Ec=function(e){yc(n,e);var t=Oc(n);function n(e,r,o,a,i){var c;return xc(this,n),(c=t.call(this)).value=e,c.validateValue=r,c.setValue=o,c.priority=a,i&&(c.subPriority=i),c}return Pc(n,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,n){return this.setValue(e,t,this.value,n)}}]),n}(_c),Cc=function(e){yc(n,e);var t=Oc(n);function n(){var e;xc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return jc(gc(e=t.call.apply(t,[this].concat(o))),"priority",10),jc(gc(e),"subPriority",-1),e}return Pc(n,[{key:"set",value:function(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}}]),n}(_c),Dc=function(){function e(){xc(this,e),jc(this,"incompatibleTokens",void 0),jc(this,"priority",void 0),jc(this,"subPriority",void 0)}return Pc(e,[{key:"run",value:function(e,t,n,r){var o=this.parse(e,t,n,r);return o?{setter:new Ec(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(e,t,n){return!0}}]),e}(),Tc=function(e){yc(n,e);var t=Oc(n);function n(){var e;xc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return jc(gc(e=t.call.apply(t,[this].concat(o))),"priority",140),jc(gc(e),"incompatibleTokens",["R","u","t","T"]),e}return Pc(n,[{key:"parse",value:function(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(Dc),Mc=/^(1[0-2]|0?\d)/,Rc=/^(3[0-1]|[0-2]?\d)/,Ic=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Nc=/^(5[0-3]|[0-4]?\d)/,Ac=/^(2[0-3]|[0-1]?\d)/,Zc=/^(2[0-4]|[0-1]?\d)/,Lc=/^(1[0-1]|0?\d)/,Fc=/^(1[0-2]|0?\d)/,Hc=/^[0-5]?\d/,Bc=/^[0-5]?\d/,Uc=/^\d/,Wc=/^\d{1,2}/,zc=/^\d{1,3}/,Yc=/^\d{1,4}/,Vc=/^-?\d+/,qc=/^-?\d/,Gc=/^-?\d{1,2}/,Kc=/^-?\d{1,3}/,Xc=/^-?\d{1,4}/,Qc=/^([+-])(\d{2})(\d{2})?|Z/,$c=/^([+-])(\d{2})(\d{2})|Z/,Jc=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,eu=/^([+-])(\d{2}):(\d{2})|Z/,tu=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function nu(e,t){return e?{value:t(e.value),rest:e.rest}:e}function ru(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function ou(e,t){var n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};var r="+"===n[1]?1:-1,o=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,i=n[5]?parseInt(n[5],10):0;return{value:r*(o*wi+a*bi+1e3*i),rest:t.slice(n[0].length)}}function au(e){return ru(Vc,e)}function iu(e,t){switch(e){case 1:return ru(Uc,t);case 2:return ru(Wc,t);case 3:return ru(zc,t);case 4:return ru(Yc,t);default:return ru(new RegExp("^\\d{1,"+e+"}"),t)}}function cu(e,t){switch(e){case 1:return ru(qc,t);case 2:return ru(Gc,t);case 3:return ru(Kc,t);case 4:return ru(Xc,t);default:return ru(new RegExp("^-?\\d{1,"+e+"}"),t)}}function uu(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function su(e,t){var n,r=t>0,o=r?t:1-t;if(o<=50)n=e||100;else{var a=o+50;n=e+100*Math.floor(a/100)-(e>=a%100?100:0)}return r?n:1-n}function lu(e){return e%400==0||e%4==0&&e%100!=0}var fu=function(e){yc(n,e);var t=Oc(n);function n(){var e;xc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return jc(gc(e=t.call.apply(t,[this].concat(o))),"priority",130),jc(gc(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return Pc(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return nu(iu(4,e),r);case"yo":return nu(n.ordinalNumber(e,{unit:"year"}),r);default:return nu(iu(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var o=su(n.year,r);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(Dc),pu=i(7651),du=i(59025),hu=function(e){yc(n,e);var t=Oc(n);function n(){var e;xc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return jc(gc(e=t.call.apply(t,[this].concat(o))),"priority",130),jc(gc(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return Pc(n,[{key:"parse",value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return nu(iu(4,e),r);case"Yo":return nu(n.ordinalNumber(e,{unit:"year"}),r);default:return nu(iu(t.length,e),r)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n,r){var o=(0,pu.Z)(e,r);if(n.isTwoDigitYear){var a=su(n.year,o);return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,du.Z)(e,r)}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,du.Z)(e,r)}}]),n}(Dc),mu=i(66979),gu=function(e){yc(n,e);var t=Oc(n);function n(){var e;xc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return jc(gc(e=t.call.apply(t,[this].concat(o))),"priority",130),jc(gc(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return Pc(n,[{key:"parse",value:function(e,t){return cu("R"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),(0,mu.Z)(r)}}]),n}(Dc),vu=function(e){yc(n,e);var t=Oc(n);function n(){var e;xc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return jc(gc(e=t.call.apply(t,[this].concat(o))),"priority",130),jc(gc(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return Pc(n,[{key:"parse",value:function(e,t){return cu("u"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(Dc),yu=function(e){yc(n,e);var t=Oc(n);function n(){var e;xc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return jc(gc(e=t.call.apply(t,[this].concat(o))),"priority",120),jc(gc(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return Pc(n,[{key:"parse",value:function(e,t,n){switch(t){case"Q":case"QQ":return iu(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(Dc),bu=function(e){yc(n,e);var t=Oc(n);function n(){var e;xc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return jc(gc(e=t.call.apply(t,[this].concat(o))),"priority",120),jc(gc(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return Pc(n,[{key:"parse",value:function(e,t,n){switch(t){case"q":case"qq":return iu(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(Dc),wu=function(e){yc(n,e);var t=Oc(n);function n(){var e;xc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return jc(gc(e=t.call.apply(t,[this].concat(o))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),jc(gc(e),"priority",110),e}return Pc(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"M":return nu(ru(Mc,e),r);case"MM":return nu(iu(2,e),r);case"Mo":return nu(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(Dc),Ou=function(e){yc(n,e);var t=Oc(n);function n(){var e;xc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return jc(gc(e=t.call.apply(t,[this].concat(o))),"priority",110),jc(gc(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return Pc(n,[{key:"parse",value:function(e,t,n){var r=function(e){return e-1};switch(t){case"L":return nu(ru(Mc,e),r);case"LL":return nu(iu(2,e),r);case"Lo":return nu(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(Dc),xu=i(23324);var ku=function(e){yc(n,e);var t=Oc(n);function n(){var e;xc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return jc(gc(e=t.call.apply(t,[this].concat(o))),"priority",100),jc(gc(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return Pc(n,[{key:"parse",value:function(e,t,n){switch(t){case"w":return ru(Nc,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return iu(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n,r){return(0,du.Z)(function(e,t,n){(0,Oi.Z)(2,arguments);var r=(0,ac.Z)(e),o=(0,xi.Z)(t),a=(0,xu.Z)(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*a),r}(e,n,r),r)}}]),n}(Dc),Su=i(49702);var Pu=function(e){yc(n,e);var t=Oc(n);function n(){var e;xc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return jc(gc(e=t.call.apply(t,[this].concat(o))),"priority",100),jc(gc(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return Pc(n,[{key:"parse",value:function(e,t,n){switch(t){case"I":return ru(Nc,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return iu(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n){return(0,mu.Z)(function(e,t){(0,Oi.Z)(2,arguments);var n=(0,ac.Z)(e),r=(0,xi.Z)(t),o=(0,Su.Z)(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(e,n))}}]),n}(Dc),ju=[31,28,31,30,31,30,31,31,30,31,30,31],_u=[31,29,31,30,31,30,31,31,30,31,30,31],Eu=function(e){yc(n,e);var t=Oc(n);function n(){var e;xc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return jc(gc(e=t.call.apply(t,[this].concat(o))),"priority",90),jc(gc(e),"subPriority",1),jc(gc(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return Pc(n,[{key:"parse",value:function(e,t,n){switch(t){case"d":return ru(Rc,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return iu(t.length,e)}}},{key:"validate",value:function(e,t){var n=lu(e.getUTCFullYear()),r=e.getUTCMonth();return n?t>=1&&t<=_u[r]:t>=1&&t<=ju[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(Dc),Cu=function(e){yc(n,e);var t=Oc(n);function n(){var e;xc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return jc(gc(e=t.call.apply(t,[this].concat(o))),"priority",90),jc(gc(e),"subpriority",1),jc(gc(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return Pc(n,[{key:"parse",value:function(e,t,n){switch(t){case"D":case"DD":return ru(Ic,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return iu(t.length,e)}}},{key:"validate",value:function(e,t){return lu(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),n}(Dc),Du=i(84314);function Tu(e,t,n){var r,o,a,i,c,u,s,l;(0,Oi.Z)(2,arguments);var f=(0,Du.j)(),p=(0,xi.Z)(null!==(r=null!==(o=null!==(a=null!==(i=null==n?void 0:n.weekStartsOn)&&void 0!==i?i:null==n||null===(c=n.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==a?a:f.weekStartsOn)&&void 0!==o?o:null===(s=f.locale)||void 0===s||null===(l=s.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=(0,ac.Z)(e),h=(0,xi.Z)(t),m=d.getUTCDay(),g=h%7,v=(g+7)%7,y=(v<p?7:0)+h-m;return d.setUTCDate(d.getUTCDate()+y),d}var Mu=function(e){yc(n,e);var t=Oc(n);function n(){var e;xc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return jc(gc(e=t.call.apply(t,[this].concat(o))),"priority",90),jc(gc(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return Pc(n,[{key:"parse",value:function(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Tu(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(Dc),Ru=function(e){yc(n,e);var t=Oc(n);function n(){var e;xc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return jc(gc(e=t.call.apply(t,[this].concat(o))),"priority",90),jc(gc(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return Pc(n,[{key:"parse",value:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return nu(iu(t.length,e),o);case"eo":return nu(n.ordinalNumber(e,{unit:"day"}),o);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Tu(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(Dc),Iu=function(e){yc(n,e);var t=Oc(n);function n(){var e;xc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return jc(gc(e=t.call.apply(t,[this].concat(o))),"priority",90),jc(gc(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return Pc(n,[{key:"parse",value:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return nu(iu(t.length,e),o);case"co":return nu(n.ordinalNumber(e,{unit:"day"}),o);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Tu(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(Dc);var Nu=function(e){yc(n,e);var t=Oc(n);function n(){var e;xc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return jc(gc(e=t.call.apply(t,[this].concat(o))),"priority",90),jc(gc(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return Pc(n,[{key:"parse",value:function(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return iu(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return nu(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return nu(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return nu(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiii":default:return nu(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function(e,t){return t>=1&&t<=7}},{key:"set",value:function(e,t,n){return(e=function(e,t){(0,Oi.Z)(2,arguments);var n=(0,xi.Z)(t);n%7==0&&(n-=7);var r=1,o=(0,ac.Z)(e),a=o.getUTCDay(),i=((n%7+7)%7<r?7:0)+n-a;return o.setUTCDate(o.getUTCDate()+i),o}(e,n)).setUTCHours(0,0,0,0),e}}]),n}(Dc),Au=function(e){yc(n,e);var t=Oc(n);function n(){var e;xc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return jc(gc(e=t.call.apply(t,[this].concat(o))),"priority",80),jc(gc(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return Pc(n,[{key:"parse",value:function(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(uu(n),0,0,0),e}}]),n}(Dc),Zu=function(e){yc(n,e);var t=Oc(n);function n(){var e;xc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return jc(gc(e=t.call.apply(t,[this].concat(o))),"priority",80),jc(gc(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return Pc(n,[{key:"parse",value:function(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(uu(n),0,0,0),e}}]),n}(Dc),Lu=function(e){yc(n,e);var t=Oc(n);function n(){var e;xc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return jc(gc(e=t.call.apply(t,[this].concat(o))),"priority",80),jc(gc(e),"incompatibleTokens",["a","b","t","T"]),e}return Pc(n,[{key:"parse",value:function(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(uu(n),0,0,0),e}}]),n}(Dc),Fu=function(e){yc(n,e);var t=Oc(n);function n(){var e;xc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return jc(gc(e=t.call.apply(t,[this].concat(o))),"priority",70),jc(gc(e),"incompatibleTokens",["H","K","k","t","T"]),e}return Pc(n,[{key:"parse",value:function(e,t,n){switch(t){case"h":return ru(Fc,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return iu(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}]),n}(Dc),Hu=function(e){yc(n,e);var t=Oc(n);function n(){var e;xc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return jc(gc(e=t.call.apply(t,[this].concat(o))),"priority",70),jc(gc(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return Pc(n,[{key:"parse",value:function(e,t,n){switch(t){case"H":return ru(Ac,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return iu(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),n}(Dc),Bu=function(e){yc(n,e);var t=Oc(n);function n(){var e;xc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return jc(gc(e=t.call.apply(t,[this].concat(o))),"priority",70),jc(gc(e),"incompatibleTokens",["h","H","k","t","T"]),e}return Pc(n,[{key:"parse",value:function(e,t,n){switch(t){case"K":return ru(Lc,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return iu(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),n}(Dc),Uu=function(e){yc(n,e);var t=Oc(n);function n(){var e;xc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return jc(gc(e=t.call.apply(t,[this].concat(o))),"priority",70),jc(gc(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return Pc(n,[{key:"parse",value:function(e,t,n){switch(t){case"k":return ru(Zc,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return iu(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=24}},{key:"set",value:function(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}}]),n}(Dc),Wu=function(e){yc(n,e);var t=Oc(n);function n(){var e;xc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return jc(gc(e=t.call.apply(t,[this].concat(o))),"priority",60),jc(gc(e),"incompatibleTokens",["t","T"]),e}return Pc(n,[{key:"parse",value:function(e,t,n){switch(t){case"m":return ru(Hc,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return iu(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),n}(Dc),zu=function(e){yc(n,e);var t=Oc(n);function n(){var e;xc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return jc(gc(e=t.call.apply(t,[this].concat(o))),"priority",50),jc(gc(e),"incompatibleTokens",["t","T"]),e}return Pc(n,[{key:"parse",value:function(e,t,n){switch(t){case"s":return ru(Bc,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return iu(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),n}(Dc),Yu=function(e){yc(n,e);var t=Oc(n);function n(){var e;xc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return jc(gc(e=t.call.apply(t,[this].concat(o))),"priority",30),jc(gc(e),"incompatibleTokens",["t","T"]),e}return Pc(n,[{key:"parse",value:function(e,t){return nu(iu(t.length,e),(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))}},{key:"set",value:function(e,t,n){return e.setUTCMilliseconds(n),e}}]),n}(Dc),Vu=function(e){yc(n,e);var t=Oc(n);function n(){var e;xc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return jc(gc(e=t.call.apply(t,[this].concat(o))),"priority",10),jc(gc(e),"incompatibleTokens",["t","T","x"]),e}return Pc(n,[{key:"parse",value:function(e,t){switch(t){case"X":return ou(Qc,e);case"XX":return ou($c,e);case"XXXX":return ou(Jc,e);case"XXXXX":return ou(tu,e);case"XXX":default:return ou(eu,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(Dc),qu=function(e){yc(n,e);var t=Oc(n);function n(){var e;xc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return jc(gc(e=t.call.apply(t,[this].concat(o))),"priority",10),jc(gc(e),"incompatibleTokens",["t","T","X"]),e}return Pc(n,[{key:"parse",value:function(e,t){switch(t){case"x":return ou(Qc,e);case"xx":return ou($c,e);case"xxxx":return ou(Jc,e);case"xxxxx":return ou(tu,e);case"xxx":default:return ou(eu,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(Dc),Gu=function(e){yc(n,e);var t=Oc(n);function n(){var e;xc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return jc(gc(e=t.call.apply(t,[this].concat(o))),"priority",40),jc(gc(e),"incompatibleTokens","*"),e}return Pc(n,[{key:"parse",value:function(e){return au(e)}},{key:"set",value:function(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),n}(Dc),Ku=function(e){yc(n,e);var t=Oc(n);function n(){var e;xc(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return jc(gc(e=t.call.apply(t,[this].concat(o))),"priority",20),jc(gc(e),"incompatibleTokens","*"),e}return Pc(n,[{key:"parse",value:function(e){return au(e)}},{key:"set",value:function(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}]),n}(Dc),Xu={G:new Tc,y:new fu,Y:new hu,R:new gu,u:new vu,Q:new yu,q:new bu,M:new wu,L:new Ou,w:new ku,I:new Pu,d:new Eu,D:new Cu,E:new Mu,e:new Ru,c:new Iu,i:new Nu,a:new Au,b:new Zu,B:new Lu,h:new Fu,H:new Hu,K:new Bu,k:new Uu,m:new Wu,s:new zu,S:new Yu,X:new Vu,x:new qu,t:new Gu,T:new Ku},Qu=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$u=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ju=/^'([^]*?)'?$/,es=/''/g,ts=/\S/,ns=/[a-zA-Z]/;function rs(e,t,n,r){var o,a,i,c,u,s,l,f,p,d,h,m,g,v,y,b,w,O;(0,Oi.Z)(3,arguments);var x=String(e),k=String(t),S=(0,Du.j)(),P=null!==(o=null!==(a=null==r?void 0:r.locale)&&void 0!==a?a:S.locale)&&void 0!==o?o:lc.Z;if(!P.match)throw new RangeError("locale must contain match property");var j=(0,xi.Z)(null!==(i=null!==(c=null!==(u=null!==(s=null==r?void 0:r.firstWeekContainsDate)&&void 0!==s?s:null==r||null===(l=r.locale)||void 0===l||null===(f=l.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==u?u:S.firstWeekContainsDate)&&void 0!==c?c:null===(p=S.locale)||void 0===p||null===(d=p.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==i?i:1);if(!(j>=1&&j<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var _=(0,xi.Z)(null!==(h=null!==(m=null!==(g=null!==(v=null==r?void 0:r.weekStartsOn)&&void 0!==v?v:null==r||null===(y=r.locale)||void 0===y||null===(b=y.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==g?g:S.weekStartsOn)&&void 0!==m?m:null===(w=S.locale)||void 0===w||null===(O=w.options)||void 0===O?void 0:O.weekStartsOn)&&void 0!==h?h:0);if(!(_>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===k)return""===x?(0,ac.Z)(n):new Date(NaN);var E,C={firstWeekContainsDate:j,weekStartsOn:_,locale:P},D=[new Cc],T=k.match($u).map((function(e){var t=e[0];return t in dc.Z?(0,dc.Z[t])(e,P.formatLong):e})).join("").match(Qu),M=[],R=sc(T);try{var I=function(){var t=E.value;null!=r&&r.useAdditionalWeekYearTokens||!(0,mc.Do)(t)||(0,mc.qp)(t,k,e),null!=r&&r.useAdditionalDayOfYearTokens||!(0,mc.Iu)(t)||(0,mc.qp)(t,k,e);var n=t[0],o=Xu[n];if(o){var a=o.incompatibleTokens;if(Array.isArray(a)){var i=M.find((function(e){return a.includes(e.token)||e.token===n}));if(i)throw new RangeError("The format string mustn't contain `".concat(i.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===o.incompatibleTokens&&M.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));M.push({token:n,fullToken:t});var c=o.run(x,t,P.match,C);if(!c)return{v:new Date(NaN)};D.push(c.setter),x=c.rest}else{if(n.match(ns))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=os(t)),0!==x.indexOf(t))return{v:new Date(NaN)};x=x.slice(t.length)}};for(R.s();!(E=R.n()).done;){var N=I();if("object"===(0,cc.Z)(N))return N.v}}catch(e){R.e(e)}finally{R.f()}if(x.length>0&&ts.test(x))return new Date(NaN);var A=D.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return D.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),Z=(0,ac.Z)(n);if(isNaN(Z.getTime()))return new Date(NaN);var L,F=(0,fc.Z)(Z,(0,hc.Z)(Z)),H={},B=sc(A);try{for(B.s();!(L=B.n()).done;){var U=L.value;if(!U.validate(F,C))return new Date(NaN);var W=U.set(F,H,C);Array.isArray(W)?(F=W[0],pc(H,W[1])):F=W}}catch(e){B.e(e)}finally{B.f()}return F}function os(e){return e.match(Ju)[1].replace(es,"'")}var as=i(49599);function is(e,t,n){return(0,Oi.Z)(2,arguments),(0,as.Z)(rs(e,t,new Date,n))}function cs(e){(0,Oi.Z)(1,arguments);var t=(0,ac.Z)(e);return t.setHours(0,0,0,0),t}var us="react-datepicker-time__input",ss="react-datepicker__day",ls="react-datepicker__input",fs=function(e){return e.classList.contains(ss)},ps=function(e){return e.classList.contains(us)},ds=function(e){return e.classList.contains(ls)},hs=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,ec.Z)((0,tc.Z)((0,nc.Z)(e,c),a),r)},ms=function(e){setTimeout((function(){if(e){var t=e.querySelector(".".concat(ss,'[tabindex="0"]'));t&&t.focus({preventScroll:!0})}}),0)},gs=function(e){setTimeout((function(){e&&e.focus({preventScroll:!0})}),0)},vs=function(e){var t=function(e,t){var n;(0,Oi.Z)(1,arguments);var r=(0,xi.Z)(null!==(n=null==t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o,a=_i(e);if(a.date){var i=Ei(a.date,r);o=Ci(i.restDateString,i.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var c,u=o.getTime(),s=0;if(a.time&&(s=Ti(a.time),isNaN(s)))return new Date(NaN);if(!a.timezone){var l=new Date(u+s),f=new Date(0);return f.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),f.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),f}return c=Ri(a.timezone),isNaN(c)?new Date(NaN):new Date(u+s+c)}(e);return isNaN(t)?null:t},ys=function(e){return e?e.toISOString():null};const bs=function(e,t,n){var r=n.dateFormats,o=void 0===r?[]:r,a=n.minDate,i=n.maxDate,c=n.hasTime,u=n.valueToDate,s=void 0===u?vs:u,l=n.dateToValue,f=void 0===l?ys:l,p=(0,Z.useRef)(null),d=(0,Z.useState)(!1),h=U()(d,2),m=h[0],g=h[1],v=(0,Z.useState)(!1),y=U()(v,2),b=y[0],w=y[1],O=s(e),x=a?s(a):void 0,k=i?s(i):void 0;(0,Z.useEffect)((function(){(p.current&&"function"==typeof p.current.setOpen&&p.current.setOpen(m),m)&&document.querySelectorAll("button.react-datepicker__navigation").forEach((function(e){return e.setAttribute("tabindex","-1")}))}),[m]);var S=function(){return g(!1)},P=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(p.current&&"function"==typeof p.current.getPreSelection){var t,n=e?p.current.getPreSelection():null;return(null===(t=p.current.state)||void 0===t?void 0:t.preSelection)||n}return null},j=function(e){p.current&&"function"==typeof p.current.setPreSelection&&p.current.setPreSelection(e)},_=function(){t(null),j(null)},E=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=P(!1);if(n){var r=O||new Date,o=t?hs(n,{hour:(0,rc.Z)(r),minute:(0,oc.Z)(r),second:ic(r)}):n;C(o,e)}},C=function(n,r){if(n){var a,i=!e&&Boolean(n),u=null==r||null===(a=r.target)||void 0===a?void 0:a.value,s=!!u&&o.some((function(e){return is(u,e)})),l=cs(n),d=(0,rc.Z)(n)!==(0,rc.Z)(l)||(0,oc.Z)(n)!==(0,oc.Z)(l);(i&&!d||s)&&c&&(n=ni.Z.setCurrentTime(n)),t(f(n))}else _();var h;c||"click"!==(null==r?void 0:r.type)||(S(),gs(null===(h=p.current)||void 0===h?void 0:h.input))},D=function(e){if("Tab"===e.key)if(e.shiftKey)if(ds(e.target))setTimeout((function(){return S()}),0);else if(ps(e.target)){var t,n;j(O||P(!0)),ms(null===(t=p.current)||void 0===t||null===(n=t.calendar)||void 0===n?void 0:n.componentNode)}else fs(e.target)&&S();else ds(e.target)&&m?(E(e),setTimeout((function(){return S()}),0)):ps(e.target)?S():fs(e.target)&&(c?(E(e,!0),j(null),w(!0),setTimeout((function(){var e,t,n;n=null===(e=p.current)||void 0===e||null===(t=e.calendar)||void 0===t?void 0:t.componentNode,setTimeout((function(){if(n){var e=n.querySelector("input.".concat(us));e&&e.focus({preventScroll:!0})}}),0),w(!1)}),0)):(E(e),S()));var r;"Enter"===e.key&&(S(),e.preventDefault(),e.stopPropagation(),gs(null===(r=p.current)||void 0===r?void 0:r.input));if(["ArrowDown","ArrowUp","Enter"].includes(e.key))if(m){if(m&&null===P(!1)){var o,a;j(O||P(!0)),ms(null===(o=p.current)||void 0===o||null===(a=o.calendar)||void 0===a?void 0:a.componentNode)}}else g(!0),e.key="Handled".concat(e.key)},T=function(){var e;g((function(e){return!e})),j(null),gs(null===(e=p.current)||void 0===e?void 0:e.input)};return{reactDatePickerProps:{closeOnScroll:function(){return S(),!0},onClickOutside:S,onInputClick:T,onKeyDown:D,onChange:C,onCalendarOpen:function(){j(null)},onBlur:function(){p.current&&p.current.setState({inputValue:null})},preventOpenOnFocus:!0,enableTabLoop:!1,shouldCloseOnSelect:!1,open:m,selected:O,showTimeInput:c,minDate:x,maxDate:k,ref:p,className:ls},timeInputProps:{onKeyDown:D,className:us,tabIndex:b?void 0:"-1"},clearButtonProps:{onMouseDown:function(e){e.preventDefault(),_()}},calendarButtonProps:{onClick:T,className:m?"react-datepicker-ignore-onclickoutside":""}}};var ws=i(49546),Os=i(35997),xs="HH:mm:ss",ks="HH:mm",Ss=function(e){return is(e,ks)},Ps=function(e){var t=function(e){return is(e,xs)?rs(e,xs,new Date):is(e,ks)?rs(e,ks,new Date):is(e,"HH:")?rs(e,"HH:",new Date):is(e,"H")?rs(e,"H",new Date):null}(e);return t&&!isNaN(t)?function(e){return(0,ws.Z)(e,ks)}(t):""};const js=function(e,t){var n=Ps(e),r=(0,Z.useState)(n),o=U()(r,2),a=o[0],i=o[1],c=(0,Z.useRef)(a),u=Os.Z.usePrevious(n);(0,Z.useEffect)((function(){u!==n&&a===u&&i(n)}),[n,a,u]);return{inputProps:{onChange:function(e){if(e.target.value!==a&&function(e){return/^(\d{0,2}|\d{1,2}:\d{0,2})$/.test(e)}(e.target.value)){var n=function(e,t){return e&&t?2!==e.length||3===t.length||e.includes(":")?e.length+1===t.length&&t.indexOf(":")===t.length-1?e.slice(0,-1):e:"".concat(e,":"):e}(e.target.value,c.current),r=n.indexOf(":"),o=n.substring(0,r),u=n.substring(r+1),s=parseInt(o,10),l=parseInt(u,10),f=!o||!Number.isNaN(s)&&s<24,p=!u||!Number.isNaN(l)&&l<60;if(!f||!p)return!1;c.current=n,i(n),n&&!Ss(n)||t(n)}},onBlur:function(){if(a!==n){var e=Ps(a);e&&Ss(e)?(c.current=e,i(e),t(e)):i(n)}},onFocus:function(e){a&&"function"==typeof e.target.select&&e.target.select()},value:a||""},clearButtonProps:{onClick:function(){t(""),i("")}}}};var _s=["value","onChange","onKeyDown"];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 Cs(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){g()(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}(0,vi.registerLocale)("en",ni.Z.getDateFnsLocale("en")),(0,vi.registerLocale)("en-US",ni.Z.getDateFnsLocale("en")),(0,vi.registerLocale)("de-CH",ni.Z.getDateFnsLocale("de-CH")),(0,vi.registerLocale)("de",ni.Z.getDateFnsLocale("de")),(0,vi.registerLocale)("fr",ni.Z.getDateFnsLocale("fr")),(0,vi.registerLocale)("fr-CH",ni.Z.getDateFnsLocale("fr")),(0,vi.registerLocale)("it",ni.Z.getDateFnsLocale("it")),(0,vi.registerLocale)("it-CH",ni.Z.getDateFnsLocale("it")),(0,vi.setDefaultLocale)("de");var Ds=function(e){var t=e.onChange,n=e.label;return(0,G.jsx)(ee.Z,{onMouseDown:function(e){e.preventDefault(),t(null)},tabIndex:-1,children:n})},Ts=function(e){var t=e.value,n=e.onChange,r=e.onKeyDown,o=nr()(e,_s),a=js(t,(function(e){n&&n(e||"00:00")})).inputProps;return(0,G.jsx)(Ji,Cs(Cs(Cs({},a),o),{},{type:"text",onKeyDown:r,onClick:function(e){e.target.focus()}}))},Ms={strategy:"fixed"};const Rs=(0,$.Zz)((0,x.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,u=e.onChange,s=e.intl,l=e.placeholder,f=e.hasTime,p=e.dateFormats,d=void 0===p?[]:p,h=e.dateTimeFormats,m=void 0===h?[]:h,g=e.events,v=(0,Z.useRef)(void 0),y=s.locale,b=function(e){return s.formatMessage({id:e})},w=(0,Z.useRef)(null),O=Boolean(r),x=!t&&O,k=function(e){v.current=e,u(e)},S=bs(r,k,{dateFormats:d,dateTimeFormats:m,minDate:o,maxDate:a,valueToDate:i,dateToValue:c,hasTime:f}),P=S.reactDatePickerProps,j=S.timeInputProps,_=S.clearButtonProps,E=S.calendarButtonProps;return(0,G.jsx)(Qi,{immutable:t,id:n,tabIndex:"-1",children:(0,G.jsxs)($i,{immutable:t,ref:w,hasTime:f,onBlur:function(e){if("function"==typeof(null==g?void 0:g.onBlur)){var t=void 0!==v.current?v.current:r;g.onBlur(t)}e.stopPropagation()},children:[(0,G.jsx)(yi(),Cs(Cs({},P),{},{disabled:t,dateFormat:[].concat(H()(m),H()(d)),placeholderText:l,showMonthDropdown:!0,showYearDropdown:!0,scrollableYearDropdown:!1,fixedHeight:!0,showPopperArrow:!1,locale:y,customTimeInput:(0,G.jsx)(Ts,Cs({},j)),timeInputLabel:"",popperProps:Ms,todayButton:(0,G.jsx)(Ds,{onChange:k,label:b("client.component.datePicker.todayLabel")})})),x&&(0,G.jsx)($e.Z,Cs({icon:"times",tabIndex:-1,"aria-label":b("client.component.datePicker.clearDateLabel")},_)),!t&&(0,G.jsx)($e.Z,Cs({icon:"calendar",tabIndex:-1},E))]})})})));function Is(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 Ns=function(e){var t=e.onChange,n=e.options,r=e.id,o=e.value,a=e.immutable,i=e.events,c=e.placeholder,u=(0,ti.Z)(),s=(null==n?void 0:n.datePickerOptions)||{},l="".concat(ni.Z.getLocalizedDateFormat(u.locale)),f=ni.Z.getLocalizedDateFormatWithoutPunctuation(u.locale),p=[l,f,ni.Z.useTwoDigitYear(l),ni.Z.useTwoDigitYear(f)];return(0,G.jsx)(Rs,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Is(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Is(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:r,value:o,onChange:t,dateFormats:p,hasTime:!1,immutable:a,placeholder:c,events:i},s))};function As(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 Zs=(0,x.ZP)((function(e){var t=e.onChange,n=e.options,r=e.value,o=e.immutable,a=e.placeholder,i=(0,ti.Z)(),c=(null==n?void 0:n.datePickerOptions)||{},u="".concat(ni.Z.getLocalizedDateTimeFormat(i.locale)),s="".concat(ni.Z.getLocalizedDateFormat(i.locale)),l=ni.Z.getLocalizedDateTimeFormatWithoutPunctuation(i.locale),f=[u,l,ni.Z.useTwoDigitYear(u),ni.Z.useTwoDigitYear(l)],p=ni.Z.getLocalizedDateFormatWithoutPunctuation(i.locale),d=[s,p,ni.Z.useTwoDigitYear(s),ni.Z.useTwoDigitYear(p)];return(0,G.jsx)(Rs,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?As(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):As(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({value:r,onChange:t,dateTimeFormats:f,dateFormats:d,hasTime:!0,immutable:o,placeholder:a},c))}));function Ls(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{u(r.next(e))}catch(e){a(e)}}function c(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,c)}u((r=r.apply(e,t||[])).next())}))}function Fs(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(u){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,u])}}}Object.create;function Hs(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 Bs(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 Us=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 Ws(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=Us.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 zs=[".DS_Store","Thumbs.db"];function Ys(e){return"object"==typeof e&&null!==e}function Vs(e){return Xs(e.target.files).map((function(e){return Ws(e)}))}function qs(e){return Ls(this,void 0,void 0,(function(){return Fs(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 Ws(e)}))]}}))}))}function Gs(e,t){return Ls(this,void 0,void 0,(function(){var n;return Fs(this,(function(r){switch(r.label){case 0:return e.items?(n=Xs(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(Qs))]):[3,2];case 1:return[2,Ks($s(r.sent()))];case 2:return[2,Ks(Xs(e.files).map((function(e){return Ws(e)})))]}}))}))}function Ks(e){return e.filter((function(e){return-1===zs.indexOf(e.name)}))}function Xs(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function Qs(e){if("function"!=typeof e.webkitGetAsEntry)return Js(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?tl(t):Js(e)}function $s(e){return e.reduce((function(e,t){return Bs(Bs([],Hs(e),!1),Hs(Array.isArray(t)?$s(t):[t]),!1)}),[])}function Js(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=Ws(t);return Promise.resolve(n)}function el(e){return Ls(this,void 0,void 0,(function(){return Fs(this,(function(t){return[2,e.isDirectory?tl(e):nl(e)]}))}))}function tl(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var a=this;t.readEntries((function(t){return Ls(a,void 0,void 0,(function(){var a,i,c;return Fs(this,(function(u){switch(u.label){case 0:if(t.length)return[3,5];u.label=1;case 1:return u.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return a=u.sent(),e(a),[3,4];case 3:return i=u.sent(),n(i),[3,4];case 4:return[3,6];case 5:c=Promise.all(t.map(el)),r.push(c),o(),u.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function nl(e){return Ls(this,void 0,void 0,(function(){return Fs(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=Ws(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var rl=i(58363);function ol(e){return function(e){if(Array.isArray(e))return ll(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||sl(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function 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 il(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){cl(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}function cl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ul(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}(e,t)||sl(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sl(e,t){if(e){if("string"==typeof e)return ll(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)?ll(e,t):void 0}}function ll(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 fl="file-invalid-type",pl="file-too-large",dl="file-too-small",hl="too-many-files",ml=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:fl,message:"File type must be ".concat(t)}},gl=function(e){return{code:pl,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},vl=function(e){return{code:dl,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},yl={code:hl,message:"Too many files"};function bl(e,t){var n="application/x-moz-file"===e.type||(0,rl.Z)(e,t);return[n,n?null:ml(t)]}function wl(e,t,n){if(Ol(e.size))if(Ol(t)&&Ol(n)){if(e.size>n)return[!1,gl(n)];if(e.size<t)return[!1,vl(t)]}else{if(Ol(t)&&e.size<t)return[!1,vl(t)];if(Ol(n)&&e.size>n)return[!1,gl(n)]}return[!0,null]}function Ol(e){return null!=e}function xl(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=ul(bl(e,n),1)[0],a=ul(wl(e,r,o),1)[0],i=c?c(e):null;return t&&a&&!i}))}function kl(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function Sl(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 Pl(e){e.preventDefault()}function jl(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function _l(e){return-1!==e.indexOf("Edge/")}function El(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return jl(e)||_l(e)}function Cl(){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!kl(e)&&t&&t.apply(void 0,[e].concat(r)),kl(e)}))}}function Dl(){return"showOpenFilePicker"in window}function Tl(e){return Ol(e)?[{description:"Files",accept:Object.entries(e).filter((function(e){var t=ul(e,2),n=t[0],r=t[1],o=!0;return Nl(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(Al)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(e,t){var n=ul(t,2),r=n[0],o=n[1];return il(il({},e),{},cl({},r,o))}),{})}]:e}function Ml(e){if(Ol(e))return Object.entries(e).reduce((function(e,t){var n=ul(t,2),r=n[0],o=n[1];return[].concat(ol(e),[r],ol(o))}),[]).filter((function(e){return Nl(e)||Al(e)})).join(",")}function Rl(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}function Il(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}function Nl(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function Al(e){return/^.*\.[\w]+$/.test(e)}var Zl=["children"],Ll=["open"],Fl=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Hl=["refKey","onChange","onClick"];function Bl(e){return function(e){if(Array.isArray(e))return zl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Wl(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 Ul(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)||Wl(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 Wl(e,t){if(e){if("string"==typeof e)return zl(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)?zl(e,t):void 0}}function zl(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 Yl(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 Vl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yl(Object(n),!0).forEach((function(t){ql(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ql(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gl(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 Kl=(0,Z.forwardRef)((function(e,t){var n=e.children,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Vl(Vl({},Xl),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,a=t.maxSize,i=t.minSize,c=t.multiple,u=t.maxFiles,s=t.onDragEnter,l=t.onDragLeave,f=t.onDragOver,p=t.onDrop,d=t.onDropAccepted,h=t.onDropRejected,m=t.onFileDialogCancel,g=t.onFileDialogOpen,v=t.useFsAccessApi,y=t.autoFocus,b=t.preventDropOnDocument,w=t.noClick,O=t.noKeyboard,x=t.noDrag,k=t.noDragEventsBubbling,S=t.onError,P=t.validator,j=(0,Z.useMemo)((function(){return Ml(n)}),[n]),_=(0,Z.useMemo)((function(){return Tl(n)}),[n]),E=(0,Z.useMemo)((function(){return"function"==typeof g?g:ef}),[g]),C=(0,Z.useMemo)((function(){return"function"==typeof m?m:ef}),[m]),D=(0,Z.useRef)(null),T=(0,Z.useRef)(null),M=Ul((0,Z.useReducer)(Jl,$l),2),R=M[0],I=M[1],N=R.isFocused,A=R.isFileDialogActive,L=(0,Z.useRef)("undefined"!=typeof window&&window.isSecureContext&&v&&Dl()),F=function(){!L.current&&A&&setTimeout((function(){T.current&&(T.current.files.length||(I({type:"closeDialog"}),C()))}),300)};(0,Z.useEffect)((function(){return window.addEventListener("focus",F,!1),function(){window.removeEventListener("focus",F,!1)}}),[T,A,C,L]);var H=(0,Z.useRef)([]),B=function(e){D.current&&D.current.contains(e.target)||(e.preventDefault(),H.current=[])};(0,Z.useEffect)((function(){return b&&(document.addEventListener("dragover",Pl,!1),document.addEventListener("drop",B,!1)),function(){b&&(document.removeEventListener("dragover",Pl),document.removeEventListener("drop",B))}}),[D,b]),(0,Z.useEffect)((function(){return!r&&y&&D.current&&D.current.focus(),function(){}}),[D,y,r]);var U=(0,Z.useCallback)((function(e){S?S(e):console.error(e)}),[S]),W=(0,Z.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),H.current=[].concat(Bl(H.current),[e.target]),Sl(e)&&Promise.resolve(o(e)).then((function(t){if(!kl(e)||k){var n=t.length,r=n>0&&xl({files:t,accept:j,minSize:i,maxSize:a,multiple:c,maxFiles:u,validator:P});I({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),s&&s(e)}})).catch((function(e){return U(e)}))}),[o,s,U,k,j,i,a,c,u,P]),z=(0,Z.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=Sl(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&f&&f(e),!1}),[f,k]),Y=(0,Z.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=H.current.filter((function(e){return D.current&&D.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),H.current=t,t.length>0||(I({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Sl(e)&&l&&l(e))}),[D,l,k]),V=(0,Z.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=Ul(bl(e,j),2),o=t[0],c=t[1],u=Ul(wl(e,i,a),2),s=u[0],l=u[1],f=P?P(e):null;if(o&&s&&!f)n.push(e);else{var p=[c,l];f&&(p=p.concat(f)),r.push({file:e,errors:p.filter((function(e){return e}))})}})),(!c&&n.length>1||c&&u>=1&&n.length>u)&&(n.forEach((function(e){r.push({file:e,errors:[yl]})})),n.splice(0)),I({acceptedFiles:n,fileRejections:r,type:"setFiles"}),p&&p(n,r,t),r.length>0&&h&&h(r,t),n.length>0&&d&&d(n,t)}),[I,c,j,i,a,u,p,d,h,P]),q=(0,Z.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),H.current=[],Sl(e)&&Promise.resolve(o(e)).then((function(t){kl(e)&&!k||V(t,e)})).catch((function(e){return U(e)})),I({type:"reset"})}),[o,V,U,k]),G=(0,Z.useCallback)((function(){if(L.current){I({type:"openDialog"}),E();var e={multiple:c,types:_};window.showOpenFilePicker(e).then((function(e){return o(e)})).then((function(e){V(e,null),I({type:"closeDialog"})})).catch((function(e){Rl(e)?(C(e),I({type:"closeDialog"})):Il(e)?(L.current=!1,T.current?(T.current.value=null,T.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 T.current&&(I({type:"openDialog"}),E(),T.current.value=null,T.current.click())}),[I,E,C,v,V,U,_,c]),K=(0,Z.useCallback)((function(e){D.current&&D.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),G()))}),[D,G]),X=(0,Z.useCallback)((function(){I({type:"focus"})}),[]),Q=(0,Z.useCallback)((function(){I({type:"blur"})}),[]),$=(0,Z.useCallback)((function(){w||(El()?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 x?null:J(e)},ne=function(e){k&&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,u=e.onClick,s=e.onDragEnter,l=e.onDragOver,f=e.onDragLeave,p=e.onDrop,d=Gl(e,Fl);return Vl(Vl(ql({onKeyDown:ee(Cl(a,K)),onFocus:ee(Cl(i,X)),onBlur:ee(Cl(c,Q)),onClick:J(Cl(u,$)),onDragEnter:te(Cl(s,W)),onDragOver:te(Cl(l,z)),onDragLeave:te(Cl(f,Y)),onDrop:te(Cl(p,q)),role:"string"==typeof o&&""!==o?o:"presentation"},n,D),r||O?{}:{tabIndex:0}),d)}}),[D,K,X,Q,$,W,z,Y,q,O,x,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=Gl(e,Hl);return Vl(Vl({},ql({accept:j,multiple:c,type:"file",style:{display:"none"},onChange:J(Cl(r,q)),onClick:J(Cl(o,oe)),tabIndex:-1},n,T)),a)}}),[T,n,c,q,r]);return Vl(Vl({},R),{},{isFocused:N&&!r,getRootProps:re,getInputProps:ae,rootRef:D,inputRef:T,open:J(G)})}(Gl(e,Zl)),o=r.open,a=Gl(r,Ll);return(0,Z.useImperativeHandle)(t,(function(){return{open:o}}),[o]),L().createElement(Z.Fragment,null,n(Vl(Vl({},a),{},{open:o})))}));Kl.displayName="Dropzone";var Xl={disabled:!1,getFilesFromEvent:function(e){return Ls(this,void 0,void 0,(function(){return Fs(this,(function(t){return Ys(e)&&Ys(e.dataTransfer)?[2,Gs(e.dataTransfer,e.type)]:function(e){return Ys(e)&&Ys(e.target)}(e)?[2,Vs(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,qs(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};Kl.defaultProps=Xl,Kl.propTypes={children:y().func,accept:y().objectOf(y().arrayOf(y().string)),multiple:y().bool,preventDropOnDocument:y().bool,noClick:y().bool,noKeyboard:y().bool,noDrag:y().bool,noDragEventsBubbling:y().bool,minSize:y().number,maxSize:y().number,maxFiles:y().number,disabled:y().bool,getFilesFromEvent:y().func,onFileDialogCancel:y().func,onFileDialogOpen:y().func,useFsAccessApi:y().bool,autoFocus:y().bool,onDragEnter:y().func,onDragLeave:y().func,onDragOver:y().func,onDrop:y().func,onDropAccepted:y().func,onDropRejected:y().func,onError:y().func,validator:y().func};const Ql=Kl;var $l={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Jl(e,t){switch(t.type){case"focus":return Vl(Vl({},e),{},{isFocused:!0});case"blur":return Vl(Vl({},e),{},{isFocused:!1});case"openDialog":return Vl(Vl({},$l),{},{isFileDialogActive:!0});case"closeDialog":return Vl(Vl({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Vl(Vl({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Vl(Vl({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Vl({},$l);default:return e}}function ef(){}var tf,nf,rf,of,af,cf,uf,sf,lf,ff,pf,df=i(69829),hf=i(40953),mf=$.ZP.section.withConfig({displayName:"StyledSection"})(tf||(tf=Q()(["\n flex: 1;\n display: flex;\n justify-content: flex-end;\n"]))),gf=$.ZP.div.withConfig({displayName:"StyledButtonsWrapper"})(nf||(nf=Q()(["\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"])),Lt.Z,te.Z.space(-2)),vf=$.ZP.span.withConfig({displayName:"StyledDropzoneBaseline"})(rf||(rf=Q()(["\n opacity: 0;\n"]))),yf=$.ZP.div.withConfig({displayName:"StyledDropzone"})(of||(of=Q()(["\n width: 100%;\n\n &:hover {\n "," {\n background-color: ",";\n }\n }\n"])),Lt.Z,oe.FS.color("backgroundItemHover")),bf=$.ZP.div.withConfig({displayName:"StyledUploadInput"})(af||(af=Q()(["\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,et.Z)(),(function(e){return e.immutable?"not-allowed":"pointer"}),oe.FS.color("paper"),(function(e){return e.immutable?hf.v.shade2(e):hf.v.base(e)}),te.Z.space(-2),Lt.Z,te.Z.space(-3.1),te.Z.space(-1.5)),wf=$.ZP.div.withConfig({displayName:"StyledUploadProgress"})(cf||(cf=Q()(["\n && {\n padding-top: ",";\n text-align: center;\n display: inline-block;\n }\n"])),te.Z.space(-2)),Of=(0,$.ZP)(df.Fe).withConfig({displayName:"StyledUploadProgressText"})(uf||(uf=Q()(["\n && {\n ","\n }\n"])),(0,et.Z)({fontSize:te.Z.font(-1)})),xf=$.ZP.div.withConfig({displayName:"StyledUploadProgressIconAndText"})(sf||(sf=Q()(["\n && {\n display: flex;\n justify-content: center;\n align-items: center;\n\n span {\n margin-left: ",";\n }\n }\n"])),te.Z.space(-2)),kf=$.ZP.div.withConfig({displayName:"StyledView"})(lf||(lf=Q()(["\n display: flex;\n justify-content: space-between;\n padding-top: ",";\n"])),te.Z.space(-2));function Sf(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 Pf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sf(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const jf=function(e){var t=e.onDrop,n=e.immutable,r=e.text,o=e.onChoose;return(0,G.jsxs)(bf,{immutable:n,children:[(0,G.jsx)(Ql,{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,G.jsx)(mf,{children:(0,G.jsxs)(yf,Pf(Pf({},t()),{},{children:[(0,G.jsx)("input",Pf({},n())),ff||(ff=(0,G.jsx)(ee.Z,{icon:"arrow-to-top"})),pf||(pf=(0,G.jsx)(vf,{children:"Dropzone"}))]}))})}}),o&&(0,G.jsx)(ee.Z,{onClick:function(e){o(),e.stopPropagation()},icon:"folder",label:"browse docs",iconOnly:!0})]})};var _f=i(73906),Ef=i(23427),Cf=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 Df=function(e){var t=e.file,n=e.text;return(0,G.jsxs)(wf,{children:[(0,G.jsx)(_f.Z,{alt:t.name,caption:t.name,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:t.preview,thumbnailUrl:t.type.startsWith("image")?t.preview:null}),(0,G.jsxs)(xf,{children:[(0,G.jsx)(kt.Z,{position:Ef.Z.position.PREPEND}),(0,G.jsxs)(Of,{children:[n||"uploading"," (",Cf(t.size),")"]})]})]})};var Tf=i(28247),Mf=i(41291);function Rf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function If(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rf(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Nf=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,G.jsxs)(kf,{className:"StyledView",children:[(0,G.jsx)(_f.Z,If(If({alt:n.fileName},c&&{caption:n.fileName}),{},{fileName:n.fileName,maxDimensionX:"96px",maxDimensionY:"96px",srcUrl:n.binaryLink,thumbnailUrl:n.thumbnailLink})),(0,G.jsxs)(gf,{children:[!o&&(0,G.jsx)(ee.Z,{icon:"trash",onClick:function(){return a(null)},tabIndex:-1,title:i||"delete"}),(0,G.jsx)(ee.Z,{children:(0,G.jsx)(Mf.Z,{neutral:!0,icon:"arrow-to-bottom",target:"_blank",href:Tf.Z.getDownloadUrl(n.binaryLink),tabIndex:-1,title:r||"download"})})]})]})};function Af(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Af(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Af(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lf=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=U()(i,2),u=c[0],s=c[1];return(0,Z.useEffect)((function(){Kt()(a.current,t)||s({isUploading:!1,previewFile:null}),a.current=t}),[t]),null!=t&&t.binaryLink?(0,G.jsx)(Nf,Zf(Zf({},e),{},{deleteTitle:n.delete,downloadTitle:n.download})):u.isUploading?(0,G.jsx)(Df,Zf({file:u.previewFile,text:n.uploading},e)):(0,G.jsx)(jf,Zf(Zf({},e),{},{onDrop:function(e){!function(e){s({isUploading:!0,previewFile:e})}(e),r(e)},onChoose:o}))};Lf.defaultProps={textResources:{}};const Ff=Lf;var Hf=function(e){return(0,G.jsx)(Ff,{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})};Hf.defaultProps={options:{}};const Bf=Hf;var Uf,Wf,zf=function(e){return-1*Math.abs(e)},Yf=$.ZP.input.withConfig({displayName:"StyledDurationEdit"})(Uf||(Uf=Q()(["\n &&&& {\n ","\n flex-grow: 0;\n width: ","px;\n min-width: 2.5ch;\n }\n"])),qi,(function(e){return e.width})),Vf=$.ZP.label.withConfig({displayName:"StyledDurationEditFocusable"})(Wf||(Wf=Q()(["\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"])),te.Z.space(1),(function(e){return e.immutable?oe.FS.color("textDisabled"):oe.FS.color("text")}),(function(e){return e.immutable?"not-allowed":"default"})),qf=function(e){var t=e.value,n=e.immutable,r=e.onChange,o=e.options,a=ni.Z.millisecondsToDuration(t),i=(0,Z.useState)(!1),c=U()(i,2),u=c[0],s=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=zf(n),o=zf(o)),60*(n||0)*6e4+6e4*(o||0)):null))):r(null)},f=function(){s(!0)},p=function(e){e.charCode>=48&&e.charCode<=57||45===e.charCode&&!0===o.allowNegative||e.preventDefault()},d=function(){return!0===o.allowNegative?"-?d+":"d+"},h=function(){return u||"number"==typeof t},m=function(e){return 9*(e+"").length},g=n&&Boolean(a.seconds);return(0,G.jsxs)(Vi,{onBlur:function(){s(!1)},immutable:n,children:[(0,G.jsxs)(Vf,{immutable:n,children:[(0,G.jsx)(Yf,{disabled:n,immutable:n,min:!0===o.allowNegative?void 0:0,onChange:function(){},onFocus:f,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");l(t,null)},onKeyPress:p,pattern:d(),step:1,width:m(a.hours),type:"number",value:"number"!=typeof a.hours||0===a.hours&&!n?"":a.hours+""}),h()&&(0,G.jsx)(q.ZP.Span,{children:o.hoursLabel})]}),(0,G.jsxs)(Vf,{immutable:n,children:[(0,G.jsx)(Yf,{disabled:n,immutable:n,min:!0!==o.allowNegative||null!==a.hours&&0!==a.hours?0:void 0,onChange:function(){},onFocus:f,onInput:function(e){var t=e.target.value.replace(/[^-\d]/g,"");l(null,t)},onKeyPress:p,pattern:d(),step:1,width:m(a.minutes),type:"number",value:a.minutes+""}),h()&&(0,G.jsx)(q.ZP.Span,{children:o.minutesLabel})]}),g&&(0,G.jsxs)(Vf,{immutable:n,children:[(0,G.jsx)(Yf,{disabled:n,immutable:n,onChange:function(){},width:m(a.seconds),type:"number",value:a.seconds+""}),h()&&(0,G.jsx)(q.ZP.Span,{children:o.secondsLabel})]})]})};qf.defaultProps={options:{hoursLabel:"hrs",minutesLabel:"min",secondsLabel:"s"}};const Gf=qf;var Kf;const Xf=$.ZP.input.attrs((function(e){return{type:"text"}})).withConfig({displayName:"StyledStringEdit"})(Kf||(Kf=Q()(["\n &&&& {\n ","\n }\n"])),qi);const Qf=Os.Z.Debouncer((function(e){return(0,G.jsxs)(Vi,{immutable:e.immutable,children:[(0,G.jsx)(Xf,{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,G.jsx)(Ki,{children:(0,G.jsx)(Mf.Z,{href:"mailto:".concat(e.value.toString()),icon:"envelope",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));var $f=i(2205),Jf=i.n($f),ep=i(99489),tp=i.n(ep),np=i(78718),rp=i.n(np);function op(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 ap(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?op(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):op(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ip(){ip=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var a=new RegExp(e,r);return t.set(a,o||t.get(e)),tp()(a,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var a=0;void 0===e[o[a]]&&a+1<o.length;)a++;t[n]=e[o[a]]}return t}),Object.create(null))}return Jf()(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var o=n.indices;o&&(o.groups=r(o,this))}return n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var a=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(e,t){var n=a[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var i=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=Wn()(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,i)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},ip.apply(this,arguments)}var cp,up=["key","display","postcode","city","country","latitude","longitude"],sp=function(e){return e*Math.PI/180},lp=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,a=e.latitude,i=e.longitude,c=t?"- ".concat(t):"",u=n?"/ ".concat(n.display):"";return{key:r,display:"".concat(r," ").concat(o," ").concat(c," ").concat(u),postcode:r,city:o,country:n,latitude:sp(a),longitude:sp(i)}};function fp(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function pp(){}function dp(e){return!!(e||"").match(/\d/)}function hp(e){return null==e}function mp(e){return"number"==typeof e&&isNaN(e)}function gp(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function vp(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 yp(e,t,n){for(var r="",o=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||o;return r}function bp(e,t){return Array(t+1).join(e)}function wp(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."+bp("0",Math.abs(i))+o:i>=c?o+=bp("0",i-c):o=(o.substring(0,i)||"0")+"."+o.substring(i),n+o}function Op(e,t,n){if(-1!==["","-"].indexOf(e))return e;var r=(-1!==e.indexOf(".")||n)&&t,o=vp(e),a=o.beforeDecimal,i=o.afterDecimal,c=o.hasNegation,u=parseFloat("0."+(i||"0")),s=(i.length<=t?"0."+i:u.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}),s[0])+(r?".":"")+yp(s[1]||"",t,n)}function xp(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 kp(e){return Math.max(e.selectionStart,e.selectionEnd)}function Sp(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function Pp(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 jp(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(dp(e[n])||dp(e[n-1]));return t}function _p(e,t,n,r,o,a){void 0===a&&(a=pp);var i,c,u=(0,Z.useRef)(),s=(i=function(e){var t,a;return hp(e)||mp(e)?(a="",t=""):"number"==typeof e||n?(a="number"==typeof e?wp(e):e,t=r(a)):(a=o(e,void 0),t=e),{formattedValue:t,numAsString:a}},(c=(0,Z.useRef)(i)).current=i,(0,Z.useRef)((function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return c.current.apply(c,e)})).current),l=(0,Z.useState)((function(){return s(t)})),f=l[0],p=l[1];return(0,Z.useMemo)((function(){hp(e)?u.current=void 0:(u.current=s(e),p(u.current))}),[e,s]),[f,function(e,t){p({formattedValue:e.formattedValue,numAsString:e.value}),a(e,t)}]}function Ep(e){return e.replace(/[^0-9]/g,"")}function Cp(e){return e}function Dp(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=Cp);var c=e.removeFormatting;void 0===c&&(c=Ep);var u=e.defaultValue,s=e.valueIsNumericString,l=e.onValueChange,f=e.isAllowed,p=e.onChange;void 0===p&&(p=pp);var d=e.onKeyDown;void 0===d&&(d=pp);var h=e.onMouseUp;void 0===h&&(h=pp);var m=e.onFocus;void 0===m&&(m=pp);var g=e.onBlur;void 0===g&&(g=pp);var v=e.value,y=e.getCaretBoundary;void 0===y&&(y=jp);var b=e.isValidInputCharacter;void 0===b&&(b=dp);var w=fp(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter"]),O=_p(v,u,Boolean(s),i,c,l),x=O[0],k=x.formattedValue,S=x.numAsString,P=O[1],j=(0,Z.useRef)();(0,Z.useEffect)((function(){var e=i(S);if(void 0===j.current||e!==j.current){var t=D.current,n=c(e,void 0);F({formattedValue:e,numAsString:n,input:t,setCaretPosition:!0,source:cp.props,event:void 0})}}));var _=(0,Z.useState)(!1),E=_[0],C=_[1],D=(0,Z.useRef)(null),T=(0,Z.useRef)({setCaretTimeout:null,focusTimeout:null});(0,Z.useEffect)((function(){return C(!0),function(){clearTimeout(T.current.setCaretTimeout),clearTimeout(T.current.focusTimeout)}}),[]);var M=i,R=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},I=function(e,t,n){xp(e,t),T.current.setCaretTimeout=setTimeout((function(){e.value===n&&xp(e,t)}),0)},N=function(e,t,n){return Pp(e,t,y(e),n)},A=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 u=n.length,s=e.length,l={},f=new Array(u),p=0;p<u;p++){f[p]=-1;for(var d=0,h=s;d<h;d++)if(n[p]===e[d]&&!0!==l[d]){f[p]=d,l[d]=!0;break}}for(var m=r;m<u&&(-1===f[m]||!a(n[m]));)m++;var g=m===u||-1===f[m]?s:f[m];for(m=r-1;m>0&&-1===f[m];)m--;var v=-1===m||-1===f[m]?0:f[m]+1;return v>g?g:r-v<g-r?v:g}(t,k,e,n,r,b);return o=Pp(t,o,r)},F=function(e){var t=e.formattedValue;void 0===t&&(t="");var n=e.input,r=e.setCaretPosition;void 0===r&&(r=!0);var o=e.source,a=e.event,i=e.numAsString,c=e.caretPos;if(n){if(void 0===c&&r){var u=e.inputValue||n.value,s=kp(n);n.value=t,c=A(u,t,s)}n.value=t,r&&void 0!==c&&I(n,c,t)}t!==k&&function(e,t){j.current=e.formattedValue,P(e,t)}(R(t,i),{event:a,source:o})},H=!E||"undefined"==typeof navigator||navigator.platform&&/iPhone|iPod/.test(navigator.platform)?void 0:"numeric",B=Object.assign({inputMode:H},w,{type:t,value:k,onChange:function(e){(function(e,t,n){var r=function(e,t){for(var n=0,r=0,o=e.length,a=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[a-1-r]&&a-r>n&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:a-r}}}(k,e),o=Object.assign(Object.assign({},r),{lastValue:k}),a=c(e,o),i=M(a);if(a=c(i,void 0),f&&!f(R(i,a))){var u=t.target,s=kp(u),l=A(e,k,s);return I(u,l,k),!1}return F({formattedValue:i,numAsString:a,inputValue:e,event:t,source:n,setCaretPosition:!0,input:t.target}),!0})(e.target.value,e,cp.event)&&p(e)},onKeyDown:function(e){var t,n=e.target,r=e.key,o=n.selectionStart,a=n.selectionEnd,i=n.value;if(void 0===i&&(i=""),"ArrowLeft"===r||"Backspace"===r?t=Math.max(o-1,0):"ArrowRight"===r?t=Math.min(o+1,i.length):"Delete"===r&&(t=o),void 0!==t&&o===a){var c=t;if("ArrowLeft"===r||"ArrowRight"===r)c=N(i,t,"ArrowLeft"===r?"left":"right");else"Delete"!==r||b(i[t])?"Backspace"!==r||b(i[t])||(c=N(i,t,"left")):c=N(i,t,"right");c!==t&&I(n,c,i),e.isUnitTestRun&&I(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=N(o,n);a!==n&&I(t,a,o)}h(e)},onFocus:function(e){e.persist&&e.persist();var t=e.target;D.current=t,T.current.focusTimeout=setTimeout((function(){var n=t.selectionStart,r=t.selectionEnd,o=t.value;void 0===o&&(o="");var a=N(o,n);a===n||0===n&&r===o.length||I(t,a,o),m(e)}),0)},onBlur:function(e){D.current=null,clearTimeout(T.current.focusTimeout),clearTimeout(T.current.setCaretTimeout),g(e)}});if("text"===n)return o?L().createElement(L().Fragment,null,o(k,w)||null):L().createElement("span",Object.assign({},w,{ref:a}),k);if(r){var U=r;return L().createElement(U,Object.assign({},B,{ref:a}))}return L().createElement("input",Object.assign({},B,{ref:a}))}function Tp(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix;void 0===o&&(o="");var a=t.suffix;void 0===a&&(a="");var i=t.allowNegative,c=t.thousandsGroupStyle;if(void 0===c&&(c="thousand"),""===e||"-"===e)return e;var u=Mp(t),s=u.thousandSeparator,l=u.decimalSeparator,f=0!==n&&-1!==e.indexOf(".")||n&&r,p=vp(e,i),d=p.beforeDecimal,h=p.afterDecimal,m=p.addNegation;return void 0!==n&&(h=yp(h,n,!!r)),s&&(d=function(e,t,n){var r=function(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}(n),o=e.search(/[1-9]/);return o=-1===o?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(r,"$1"+t)}(d,s,c)),o&&(d=o+d),a&&(h+=a),m&&(d="-"+d),e=d+(f&&l||"")+h}function Mp(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 Rp(e,t,n){var r;void 0===t&&(t=Sp(e));var o=n.allowNegative,a=n.prefix;void 0===a&&(a="");var i=n.suffix;void 0===i&&(i="");var c=n.decimalScale,u=t.from,s=t.to,l=s.start,f=s.end,p=Mp(n),d=p.allowedDecimalSeparators,h=p.decimalSeparator,m=e[f]===h;if(dp(e)&&(e===a||e===i)&&""===t.lastValue)return e;if(f-l==1&&-1!==d.indexOf(e[l])){var g=0===c?"":h;e=e.substring(0,l)+g+e.substring(l+1,e.length)}var v=function(e,t,n){var r=!1,o=!1;a.startsWith("-")?r=!1:e.startsWith("--")?(r=!1,o=!0):i.startsWith("-")&&e.length===i.length?r=!1:"-"===e[0]&&(r=!0);var c=r?1:0;return o&&(c=2),c&&(e=e.substring(c),t-=c,n-=c),{value:e,start:t,end:n,hasNegation:r}},y=v(e,l,f),b=y.hasNegation;e=(r=y).value,l=r.start,f=r.end;var w=v(t.lastValue,u.start,u.end),O=w.start,x=w.end,k=w.value,S=e.substring(l,f);!(e.length&&k.length&&(O>k.length-i.length||x<a.length))||S&&i.startsWith(S)||(e=k);var P=0;e.startsWith(a)?P+=a.length:l<a.length&&(P=l),f-=P;var j=(e=e.substring(P)).length,_=e.length-i.length;e.endsWith(i)?j=_:(f>_||f>e.length-i.length)&&(j=f),e=e.substring(0,j);var E=(e=((e=function(e,t){void 0===e&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),a=r.test(e);return e=e.replace(/-/g,""),o&&!a&&t&&(e="-"+e),e}(b?"-"+e:e,o)).match(function(e,t){return new RegExp("(^-)|[0-9]|"+gp(e),t?"g":void 0)}(h,!0))||[]).join("")).indexOf(h),C=vp(e=e.replace(new RegExp(gp(h),"g"),(function(e,t){return t===E?".":""})),o),D=C.beforeDecimal,T=C.afterDecimal,M=C.addNegation;return s.end-s.start<u.end-u.start&&""===D&&m&&!parseFloat(T)&&(e=M?"-":""),e}function Ip(e){var t=(e=function(e){var t=Mp(e),n=t.thousandSeparator,r=t.decimalSeparator,o=e.prefix;void 0===o&&(o="");var a=e.allowNegative;if(void 0===a&&(a=!0),n===r)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+n+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+r+" (default value for decimalSeparator is .)\n ");return o.startsWith("-")&&a&&(console.error("\n Prefix can't start with '-' when allowNegative is true.\n prefix: "+o+"\n allowNegative: "+a+"\n "),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}(e)).decimalSeparator;void 0===t&&(t=".");e.allowedDecimalSeparators,e.thousandsGroupStyle,e.suffix;var n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;void 0===o&&(o=pp);var a=e.onBlur;void 0===a&&(a=pp);var i=e.thousandSeparator,c=e.decimalScale,u=e.fixedDecimalScale,s=e.prefix;void 0===s&&(s="");var l=e.defaultValue,f=e.value,p=e.valueIsNumericString,d=e.onValueChange,h=fp(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=function(t){return Tp(t,e)},g=function(t,n){return Rp(t,n,e)},v=p;hp(f)?hp(l)||(v=null!=p?p:"number"==typeof l):v=null!=p?p:"number"==typeof f;var y=function(e){return hp(e)||mp(e)?e:("number"==typeof e&&(e=wp(e)),v&&"number"==typeof c?Op(e,c,Boolean(u)):e)},b=_p(y(f),y(l),Boolean(v),m,g,d),w=b[0],O=w.numAsString,x=w.formattedValue,k=b[1];return Object.assign(Object.assign({},h),{value:x,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===t||dp(e)},onValueChange:k,format:m,removeFormatting:g,getCaretBoundary:function(t){return function(e,t){var n=t.prefix;void 0===n&&(n="");var r=t.suffix;void 0===r&&(r="");var o=Array.from({length:e.length+1}).map((function(){return!0})),a="-"===e[0];o.fill(!1,0,n.length+(a?1:0));var i=e.length;return o.fill(!1,i-r.length+1,i+1),o}(t,e)},onKeyDown:function(t){var r=t.target,a=t.key,l=r.selectionStart,f=r.selectionEnd,p=r.value;if(void 0===p&&(p=""),l===f){"Backspace"===a&&"-"===p[0]&&l===s.length+1&&n&&xp(r,1);var d=Mp(e),h=d.decimalSeparator,m=d.allowedDecimalSeparators;"Backspace"===a&&p[l-1]===h&&c&&u&&(xp(r,l-1),t.preventDefault()),(null==m?void 0:m.includes(a))&&p[l]===h&&xp(r,l+1);var g=!0===i?",":i;"Backspace"===a&&p[l-1]===g&&xp(r,l-1),"Delete"===a&&p[l]===g&&xp(r,l+1),o(t)}else o(t)},onBlur:function(t){var n=O;if(n.match(/\d/g)||(n=""),r||(n=function(e){if(!e)return e;var t="-"===e[0];t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",o=n[1]||"";return(t?"-":"")+r+(o?"."+o:"")}(n)),u&&c&&(n=Op(n,c,u)),n!==O){var o=Tp(n,e);k({formattedValue:o,value:n,floatValue:parseFloat(n)},{event:t,source:cp.event})}a(t)}})}function Np(e){var t=Ip(e);return L().createElement(Dp,Object.assign({},t))}!function(e){e.event="event",e.props="prop"}(cp||(cp={}));var Ap,Zp=["immutable"];function Lp(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 Fp=(0,$.ZP)((function(e){e.immutable;var t=nr()(e,Zp);return(0,G.jsx)(Np,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lp(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t))})).withConfig({displayName:"StyledNumberEdit"})(Ap||(Ap=Q()(["\n &&&& {\n ","\n }\n"])),qi);function Hp(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 Bp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hp(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Up=function(e){return 0!==e?Math.ceil(Math.log10(Math.abs(e)+1)):1},Wp=function(e){return null!=e&&!isNaN(parseFloat(e))},zp=function(e,t,n){return!Wp(n)||!(Wp(t)&&n>t)&&!(Wp(e)&&n<e)},Yp=function(e,t){return function(n){var r=n.floatValue;return Up(r)<Up(e)||zp(e,t,r)}};const Vp=(0,x.ZP)(Os.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,u=a.minValue,s=a.maxValue,l=a.allowNegative,f=a.fixedDecimalScale,p=a.suffix,d=a.prefix,h=a.format,m=function(e,t,n){if(e){var r=Math.pow(10,e)-(t?1/Math.pow(10,t):1);return n&&n>r?n:r}return n}(i,c,s),g=Bp(Bp({isAllowed:Yp(u,m),allowNegative:!!l},isNaN(c)?{}:{decimalScale:c}),{},{fixedDecimalScale:!!f});return(0,G.jsx)(Vi,{immutable:e.immutable,children:(0,G.jsx)(Fp,Bp(Bp({decimalSeparator:o,disabled:e.immutable,id:e.id,valueIsNumericString:!0,name:e.name,onValueChange:function(t){e.onChange&&zp(u,m,t.floatValue)&&e.onChange(void 0!==t.floatValue?t.floatValue:null)},immutable:e.immutable,thousandSeparator:r,value:e.value,suffix:p,prefix:d},g),{},{format:h,placeholder:e.placeholder,onBlur:function(t){var n,r=!(n=t.target.value)||isNaN(n)?null:parseFloat(n);e.onChange&&!zp(u,m,r)&&(t.target.value=null)}}))})}),800));const qp=Os.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,u=r||{},s=u.minValue,l=u.maxValue,f=u.format,p=u.allowLeadingZeros,d=u.suffix;return(0,G.jsx)(Vi,{immutable:o,children:(0,G.jsx)(Fp,{isAllowed:Yp(s,l),allowNegative:!0,decimalScale:0,disabled:o,id:i,name:a,onValueChange:function(e){var t=e.value,r=e.floatValue,o=p?t:r;void 0===o&&(o=null),zp(s,l,r)&&n(o)},value:t,allowLeadingZeros:p,suffix:d,format:f,placeholder:c})})}),800);var Gp,Kp,Xp,Qp=$.ZP.div.withConfig({displayName:"StyledWrapper"})(Gp||(Gp=Q()(["\n display: flex;\n justify-content: stretch;\n"]))),$p=$.ZP.div.withConfig({displayName:"StyledLocationWrapper"})(Kp||(Kp=Q()(["\n flex-grow: 1;\n"]))),Jp=$.ZP.div.withConfig({displayName:"StyledDistanceWrapper"})(Xp||(Xp=Q()(["\n width: 50px;\n border-left: 1px solid ",";\n margin-left: ",";\n padding-left: ",";\n"])),oe.FS.color("border"),te.Z.space(-.8),te.Z.space(.5));function ed(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function td(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ed(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ed(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const nd=function(e){var t=e.id,n=e.immutable,r=e.value,o=e.onChange,a=e.options,i=void 0===a?{}:a,c=i.suggestions,u=i.isLoading,s=i.fetchSuggestions,l=i.latitudeField,f=i.longitudeField,p=i.emptySearchText,d=i.noResultsText,h=i.kmSuffixText,m=r?r.distance:0,g=function(e){return null!=e&&e.latitude&&null!=e&&e.longitude?rp()(e,up):void 0}(r),v=function(e){return e?e.map(lp):[]}(c);return(0,G.jsxs)(Qp,{children:[(0,G.jsx)($p,{children:(0,G.jsx)(Ea,{id:t,immutable:n,onChange:function(e){o(td(td({},function(e,t){return t?ap(ap({},e),rp()(t,up)):Yn()(e,up)}(r,e)),{},{latitudeField:l,longitudeField:f}))},isLoading:u,options:v,searchOptions:function(e){var t=function(e){if(!e)return null;var t=H()(e.matchAll(ip(/([\d]*)([^\d\s]*)/g,{postcode:1,city:2}))).map((function(e){return e.groups})),n=t.find((function(e){return e.postcode})),r=t.find((function(e){return e.city}));return ap(ap({},r?{city:r.city}:{}),n?{postcode:n.postcode}:{})}(e);s(t,null)},fetchOptions:function(e){e||s(null,null)},value:g,noResultsComp:function(e){return e.inputValue?d:p}})}),(0,G.jsx)(Jp,{children:(0,G.jsx)(qp,{value:m,onChange:function(e){o(td(td({},r),{},{distance:e}))},immutable:n,options:{minValue:0,maxValue:100,suffix:" ".concat(h)}})})]})};var rd,od=(0,Z.lazy)((function(){return i.e(85).then(i.bind(i,17676))})),ad=function(e){var t=e.onChange,n=e.immutable,r=e.value,o=e.options;if(n)return(0,G.jsx)(q.ZP.Span,{children:(0,G.jsx)("div",{dangerouslySetInnerHTML:{__html:r}})});var a=o||{},i=a.contentLang,c=a.ckEditorConfig;return(0,G.jsx)(Z.Suspense,{fallback:rd||(rd=(0,G.jsx)("i",{})),children:(0,G.jsx)(od,{onChange:function(e){t&&t(e)},value:r,contentLang:i,ckEditorConfig:c})})};ad.defaultProps={value:""};const id=ad;var cd=i(58808),ud=i.n(cd),sd=i(41505),ld=i.n(sd),fd=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},pd=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},dd=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},hd={outline:"none"},md=function(e){function t(){var n,r;fd(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=dd(this,e.call.apply(e,[this].concat(a))),r.state={focused:!1},r._isMounted=!1,r._lastBlurEvent=null,r.ref=L().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)},dd(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?L().cloneElement(e({focused:t,getRef:this.ref}),n):L().createElement("div",pd({ref:this.ref,style:hd},n),e)},t}(L().Component);md.propTypes={children:ld().oneOfType([ld().node,ld().func]).isRequired,onBlur:ld().func,onFocus:ld().func},md.defaultProps={onBlur:function(){},onFocus:function(){}};const gd=md;var vd,yd,bd,wd=$.ZP.div.withConfig({displayName:"StyledLocationEdit"})(vd||(vd=Q()(["\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"])),Yi,te.Z.space(-2),te.Z.space(-2),(function(e){var t=e.immutable,n=e.theme;return t?Xe()(n,"colors.textDisabled"):Xe()(n,"colors.text")}),qi,oe.FS.color("paper"),oe.FS.color("signal.info"),oe.FS.color("secondaryLight"),oe.FS.color("backgroundItemHover"));function Od(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 xd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Od(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Od(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const kd=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]}},u=function(e){var t=e.state,n=e.country,r=e.postcode,o=e.city,a=t?"- ".concat(t):"",i=n?"/ ".concat(n.display):"";return(0,G.jsxs)(q.ZP.Span,{children:[r," ",o," ",a," ",i]})},s=function(e){return function(n,o){var a=o.newValue;t(xd(xd({},r),{},g()({},e,a)))}},l=function(e,n){var r=n.suggestion;t(r)},f=function(e){return function(t){var r=t.value;n.fetchSuggestions(g()({},e,r),n.locationValues.country)}},p={id:o,value:r.postcode||"",onChange:s("postcode"),disabled:a},d={value:r.city||"",onChange:s("city"),disabled:a};return(0,G.jsx)(gd,{children:function(e){var t,o,s,h=e.focused,m=e.getRef;return(0,G.jsxs)(wd,{immutable:a,name:i,ref:m,children:[(0,G.jsx)(ud(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:f("postcode"),getSuggestionValue:c("postcode"),renderSuggestion:u,onSuggestionsClearRequested:function(){},inputProps:p,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!a}}),(h||r.city||r.postcode)&&(yd||(yd=(0,G.jsx)(q.ZP.Span,{children:"/"}))),(0,G.jsx)(ud(),{suggestions:n.suggestions||[],onSuggestionsFetchRequested:f("city"),getSuggestionValue:c("city"),renderSuggestion:u,onSuggestionsClearRequested:function(){},inputProps:d,onSuggestionSelected:l,focusInputOnSuggestionClick:!1,shouldRenderSuggestions:function(e){return e&&!a}}),(0,G.jsxs)(Ki,{children:[n.isLoading&&(bd||(bd=(0,G.jsx)(kt.Z,{size:"1.8rem"}))),(s=n.locationValues,Boolean(s.city||s.postcode)&&(0,G.jsx)(Mf.Z,{href:(t=n.locationValues,o=t?Object.values(t).filter(Boolean).map((function(e){return"object"===Wn()(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 Sd(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 Pd=function(e){return(0,G.jsx)(Ea,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sd(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sd(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 jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const _d=function(e){return(0,G.jsx)(Ea,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jd(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jd(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 Ed,Cd=i(48926),Dd=i.n(Cd),Td=i(87757),Md=i.n(Td);const Rd=$.ZP.input.attrs((function(e){return{type:"tel"}})).withConfig({displayName:"StyledPhoneEdit"})(Ed||(Ed=Q()(["\n &&&& {\n ","\n }\n"])),qi);const Id=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,a=e.onLibLoaded,c=Xe()(e,"options.defaultCountry")||"CH",u=(0,Z.useState)(null),s=U()(u,2),l=s[0],f=s[1],p=L().createRef();(0,Z.useEffect)((function(){(function(){var e=Dd()(Md().mark((function e(){var t;return Md().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([i.e(631),i.e(877)]).then(i.bind(i,41866));case 2:t=e.sent,f(t),a&&a();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[a]);var d=function(e,t){var n=e.substring(0,t-1).match(/\s/g);return(null==n?void 0:n.length)||0},h=n&&null!=l&&l.AsYouType?new l.AsYouType(c).input(n):n||"";return(0,G.jsxs)(Vi,{immutable:r,children:[(0,G.jsx)(Rd,{disabled:r||!l,id:o,name,onChange:function(e){var r=e.target.value,o=l?l.parseNumber(r,c):r,a=br()(o)?new l.AsYouType(c).input(r).replace(/\s/g,""):l.formatNumber(o,"E.164");t(a);var i=e.target.selectionStart;!function(e,t,n){if(n&&e.length!==n){var r=new l.AsYouType(c).input(t),o=new l.AsYouType(c).input(e),a=d(r,n),i=d(o,n)-a;window.requestAnimationFrame(function(){var e=n+i;this.setSelectionRange(e,e)}.bind(p.current))}}(r,n,i)},immutable:r||!l,ref:p,value:h}),h&&(0,G.jsx)(Ki,{children:(0,G.jsx)(Mf.Z,{href:"tel:".concat(n),icon:"phone",tabIndex:-1,target:"_blank",neutral:!0})})]})};function Nd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ad(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nd(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zd=function(e){return e.map((function(e){return rp()(e,["key","display"])}))};const Ld=function(e){var t=e.id,n=e.immutable,r=e.onChange,o=e.options.isMulti,a=e.value;return(0,G.jsx)(Ea,{id:t,immutable:n,isMulti:o,onChange:function(e){var t=o?e.map((function(e){return e.key})):[null==e?void 0:e.key],n=a.options.map((function(e){return Ad(Ad({},e),t.includes(e.key)?{selected:!0}:{selected:!1})}));r({options:n})},value:Zd(a.options.filter((function(e){return e.selected}))),openMenuOnClick:!0,options:Zd(a.options)})};function Fd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Hd=function(e){return(0,G.jsx)(Ea,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fd(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fd(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 Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const Ud=function(e){return(0,G.jsx)(Ea,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bd(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bd(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 Wd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const zd=function(e){return(0,G.jsx)(Ea,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wd(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wd(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 Yd=Os.Z.Debouncer((function(e){return(0,G.jsx)(Vi,{immutable:e.immutable,children:(0,G.jsx)(Xf,{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 Vd=function(){var e,t=(null===(e=navigator)||void 0===e?void 0:e.userAgent)||"";return/^((?!chrome|android).)*safari/i.test(t)};var qd,Gd,Kd,Xd=(0,$.iv)(qd||(qd=Q()(["\n ","\n width: 100%;\n grid-area: 1 / 1 / 2 / 2;\n max-height: 25rem;\n box-sizing: border-box;\n"])),qi),Qd=$.ZP.div.withConfig({displayName:"StyledSizeWrapper"})(Gd||(Gd=Q()(["\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"])),Xd),$d=$.ZP.textarea.withConfig({displayName:"StyledTextarea"})(Kd||(Kd=Q()(["\n &&&& {\n ","\n resize: none;\n margin: 0;\n min-height: 4em;\n }\n"])),Xd);function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jd(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const th=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),u=U()(c,2),s=u[0],l=u[1],f=!Vd(),p=(0,Z.useCallback)(kr()(l,500,{trailing:!0}),[]);return(0,Z.useEffect)((function(){f&&p(t)}),[t,f,p]),(0,G.jsx)(Qd,eh(eh({"data-testid":"replicated-test"},f?{"data-replicated-value":s}:{}),{},{children:(0,G.jsx)($d,{value:t,name:r,id:o,onChange:n,disabled:a,immutable:i,rows:"1"})}))};const nh=Os.Z.Debouncer((function(e){return(0,G.jsx)(Vi,{immutable:e.immutable,children:(0,G.jsx)(th,{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 rh;const oh=$.ZP.input.withConfig({displayName:"StyledTimeEdit"})(rh||(rh=Q()(["\n &&&& {\n ","\n }\n"])),qi);function ah(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 ih(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ah(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ah(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ch=function(e){var t=e.onChange,n=e.value,r=e.immutable,o=e.id,a=e.name,i=js(n,t),c=i.inputProps,u=i.clearButtonProps,s=n&&!r;return(0,G.jsxs)(Vi,{immutable:r,children:[(0,G.jsx)(oh,ih({type:"text",disabled:r,id:o,immutable:r,name:a},c)),s&&(0,G.jsx)(Ki,{children:(0,G.jsx)($e.Z,ih(ih({icon:"times"},u),{},{tabIndex:-1}))})]})};var uh;const sh=$.ZP.input.attrs((function(e){return{type:"url"}})).withConfig({displayName:"StyledUrlEdit"})(uh||(uh=Q()(["\n &&&& {\n ","\n }\n"])),qi);const lh=Os.Z.Debouncer((function(e){return(0,G.jsxs)(Vi,{immutable:e.immutable,children:[(0,G.jsx)(sh,{disabled:e.immutable,id:e.id,immutable:e.immutable,name:e.name,onChange:function(t){return e.onChange((n=t.target.value,r=/^[a-zA-Z0-9]+:\/\//.test(n),n.indexOf(".")>0&&!r?"https://".concat(n):n));var n,r},value:e.value}),e.value&&(0,G.jsx)(Ki,{children:(0,G.jsx)(Mf.Z,{href:e.value,icon:"external-link",look:"ball",tabIndex:-1,target:"_blank",neutral:!0})})]})}));function fh(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 ph(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fh(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dh={boolean:Ma,"boolean-select":Ca,choice:Ua,code:ei,date:Ns,datetime:Zs,document:Bf,duration:Gf,email:Qf,geosearch:nd,html:id,integer:qp,location:kd,"multi-remote":Pd,"multi-select":_d,number:Vp,phone:Id,"pseudo-select":Ld,remote:Hd,"search-filter":Ud,"single-select":zd,string:Yd,text:nh,url:lh,time:ch};const hh=function(e){var t=e.componentType,n=e.value,r=e.options,o=e.id,a=e.events,i=e.placeholder,c=e.readOnly,u=void 0!==c&&c;if(dh[t]){var s=dh[t],l=ph(ph({},Yn()(a,"onChange")),{},{onBlur:function(){"function"==typeof(null==a?void 0:a.onBlur)&&a.onBlur(n)}});return(0,G.jsx)("div",ph(ph({},l),{},{"data-cy":"form-field",children:(0,G.jsx)(s,ph(ph({value:n,onChange:null==a?void 0:a.onChange},br()(r)?{}:{options:r}),{},{id:o,immutable:u,placeholder:i,events:a}))}))}return console.log("No type-editor defined for component type",t),null};function mh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mh(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const vh=function(e){return(0,G.jsx)(Xi,{children:(0,G.jsx)(hh,gh({componentType:e.type},Yn()(e,"type")))})};function yh(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 bh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yh(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var wh="yyyy-MM-dd",Oh=function(e){return is(e,wh)?rs(e,wh,new Date):is(e,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")||is(e,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")?cs(new Date(e)):null};const xh={datetime:{type:"date",toRange:function(e){return{from:e?Oh(e).toISOString():null,to:e?function(e,t){(0,Oi.Z)(2,arguments);var n=(0,ac.Z)(e),r=(0,xi.Z)(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}(Oh(e),1).toISOString():null,isRangeValue:!0}},fromRange:function(e){return null!=e&&e.from?(0,ws.Z)(new Date(e.from),wh):null!=e&&e.to?(0,ws.Z)(new Date(e.to),wh):null},getToOptions:function(e,t){return bh(bh({},e),{},{datePickerOptions:bh({minDate:t},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,t){return bh(bh({},e),{},{datePickerOptions:bh({maxDate:t},null==e?void 0:e.datePickerOptions)})}},date:{getToOptions:function(e,t){return bh(bh({},e),{},{datePickerOptions:bh({minDate:t},null==e?void 0:e.datePickerOptions)})},getFromOptions:function(e,t){return bh(bh({},e),{},{datePickerOptions:bh({maxDate:t},null==e?void 0:e.datePickerOptions)})}}};var kh,Sh,Ph,jh,_h,Eh=$.ZP.div.withConfig({displayName:"StyledIconWrapper"})(kh||(kh=Q()(["\n font-size: ",";\n"])),te.Z.font(-2.7)),Ch=$.ZP.div.withConfig({displayName:"StyledRange"})(Sh||(Sh=Q()(["\n display: flex;\n align-items: baseline;\n"]))),Dh=$.ZP.div.withConfig({displayName:"StyledInput"})(Ph||(Ph=Q()(["\n flex: 1;\n display: flex;\n flex-direction: column;\n"]))),Th=(0,$.ZP)($e.Z).withConfig({displayName:"StyledBall"})(jh||(jh=Q()(["\n position: relative;\n top: 0.5px; // offset false vertical alignment\n"])));function Mh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mh(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ih=function(e){var t=e.value,n=e.events,r=e.readOnly,o=e.type,a=e.options,i=e.fromText,c=e.toText,u=xh[o],s=(null==t?void 0:t.isRangeValue)||!1,l=(0,Z.useRef)(t);l.current=t;var f=(0,Z.useMemo)((function(){return Rh(Rh({},n),{},{onChange:n.onChange})}),[n]),p={onChange:function(e){n.onChange(Rh(Rh({},l.current),{},{to:e}))}},d={onChange:function(e){n.onChange(Rh(Rh({},l.current),{},{from:e}))}},h=(null==u?void 0:u.type)||o,m=(0,G.jsx)(vh,Rh(Rh({type:h},Yn()(e,["type"])),{},{events:f})),g=(0,G.jsxs)(Dh,{children:[(0,G.jsx)(vh,Rh(Rh({},e),{},{options:function(e,t){return null!=u&&u.getFromOptions?u.getFromOptions(e,t):e}(a,null==t?void 0:t.to),value:(null==t?void 0:t.from)||null,events:d,placeholder:i})),_h||(_h=(0,G.jsx)(Eh,{children:(0,G.jsx)(V.Z,{icon:"horizontal-rule"})})),(0,G.jsx)(vh,Rh(Rh({},e),{},{options:function(e,t){return null!=u&&u.getToOptions?u.getToOptions(e,t):e}(a,null==t?void 0:t.from),value:(null==t?void 0:t.to)||null,events:p,placeholder:c}))]});return(0,G.jsxs)(Ch,{children:[s?g:m,(0,G.jsx)(Th,{disabled:r,icon:s?"square-minus":"square-plus",onClick:function(){var e=s?function(e){return null!=u&&u.fromRange?u.fromRange(e):(null==e?void 0:e.from)||(null==e?void 0:e.to)||null}(t):function(e){return null!=u&&u.toRange?u.toRange(e):{from:e,to:e,isRangeValue:!0}}(t);n.onChange(e)}})]})};function Nh(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 Ah(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nh(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zh=function(e){var t,n=e.componentType,r=e.mappingType,o=e.range,a=e.formField,i=e.entityField,c=e.formName,u=e.value,s=e.info,l=e.events,f=e.formData,p=a.dataType||a.componentType,d=null===(t=gr[r||"editable"])||void 0===t?void 0:t[p],h=function(e,t,n,r,o){return null!=e&&e.getOptions?e.getOptions({formField:t,formName:n,formData:r,entityField:o}):{}}(d,a,c,f,i),m=function(e,t,n,r,o,a){return null!=e&&e.getValue?e.getValue({formField:t,formName:n,formData:r,entityField:o,value:a}):a}(d,a,c,f,i,u),g=function(e,t,n,r,o,a){return null!=e&&e.getEvents?e.getEvents({formField:t,formName:n,formData:r,entityField:o,events:a}):a}(d,a,c,f,i,l),v=o?Ih:vh;return(0,G.jsx)(v,Ah(Ah({type:n,events:g,value:m},s),{},{options:h},o&&{fromText:f.intl.formatMessage({id:"client.component.range.from"}),toText:f.intl.formatMessage({id:"client.component.range.to"})}))};const Lh=function(e,t){return function(n){return(0,G.jsx)(Zh,Ah({componentType:e,range:t},n))}};var Fh=i(42060);const Hh={dataContainerProps:function(){return{tooltips:["Resource"],navigationStrategy:!0}},getOptions:function(e){var t=e.formData;return t?{downloadTitle:t.intl.formatMessage({id:"client.component.upload.downloadTitle"}),tooltips:Xe()(t.tooltips,"Resource",null),loadTooltip:function(e){return t.loadTooltip("Resource",e)}}:{}}},Bh={dataContainerProps:function(e){return{tooltips:[e.formField.targetEntity],navigationStrategy:!0}},getOptions:function(e){var t=e.formField,n=e.formData;return{tooltips:Xe()(n.tooltips,t.targetEntity,null),loadTooltip:function(e){return n.loadTooltip(t.targetEntity,e)},navigationStrategy:n.navigationStrategy,linkProps:{entityName:t.targetEntity}}}},Uh={binary:Hh,document:Hh,image:Hh,"multi-remote-field":Bh,"single-remote-field":Bh,description:{getOptions:function(e){var t=e.formField;return{mode:t.mode,title:t.title}},getValue:function(e){return e.formField.text}},number:{getOptions:function(e){var t=e.formField;return{postPointDigits:Xe()(t,"validation.decimalDigits.postPointDigits",null)}}},moneyamount:{getOptions:function(e){var t=e.formField;return{postPointDigits:Xe()(t,"validation.decimalDigits.postPointDigits",2)}}},percent:{getValue:function(e){return e.value/100},getOptions:function(e){var t=e.formField;return{postPointDigits:Xe()(t,"validation.decimalDigits.postPointDigits",null)}}}};function Wh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wh(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Yh=function(e){var t=e.componentType,n=e.formField,r=e.value,o=e.formData,a=e.key,i=e.breakWords,c=n.dataType||n.componentType,u=Uh[c],s=function(e,t,n){return null!=e&&e.getOptions?e.getOptions({formField:t,formData:n}):{}}(u,n,o),l=function(e,t,n,r){return null!=e&&e.getValue?e.getValue({formField:t,formData:n,value:r}):r}(u,n,o,r);return(0,G.jsx)(Fh.Z,{type:t,value:l,options:s,breakWords:i},a)};const Vh=function(e){return function(t){return(0,G.jsx)(Yh,zh(zh({},t),{},{componentType:e}))}};function qh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qh(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kh={binary:Lh("document"),birthdate:Lh("date"),boolean:Lh("boolean"),char:Lh("string"),choice:Lh("choice"),code:Lh("code"),count:Lh("string"),counter:Lh("integer"),createts:Lh("datetime"),createuser:Lh("string"),"compressed-text":Lh("text"),date:Lh("date"),datetime:Lh("datetime"),decimal:Lh("number"),display:Vh("html"),description:Vh("description"),document:Lh("document"),double:Lh("number"),duration:Lh("duration"),email:Lh("email"),"fulltext-search":Lh("string"),html:Lh("html"),image:Lh("document"),identifier:Lh("string"),integer:Lh("integer"),ipaddress:Lh("string"),latitude:Lh("string"),location:Lh("location"),login:Lh("string"),long:Lh("integer"),longitude:Lh("string"),marking:Lh("boolean"),moneyamount:Lh("number"),"multi-remote-field":Lh("multi-remote"),"multi-select-box":Lh("multi-select"),"named-upload":Lh("document"),percent:Lh("number"),phone:Lh("phone"),postcode:Lh("string"),"pseudo-select":Lh("pseudo-select"),"pulldown-date":Lh("date"),"search-filter":Lh("search-filter"),serial:Lh("string"),"single-remote-field":Lh("remote"),"single-select-box":Lh("single-select"),sorting:Lh("integer"),string:Lh("string"),text:Lh("text"),"text-area":Lh("text"),time:Lh("time"),updatets:Lh("datetime"),updateuser:Lh("string"),upload:Lh("document"),url:Lh("url"),uuid:Lh("string"),version:Lh("integer")},Xh={binary:Vh("document"),birthdate:Vh("date"),boolean:Vh("boolean"),code:Vh("text"),char:Vh("string"),choice:Lh("choice"),counter:Vh("integer"),createuser:Vh("string"),createts:Vh("datetime"),"compressed-text":Vh("text"),"data-amount":Vh("number"),date:Vh("date"),datetime:Vh("datetime"),decimal:Vh("number"),display:Vh("html"),description:Vh("description"),duration:Vh("duration"),document:Vh("document"),double:Vh("number"),email:Vh("email"),html:Vh("html"),image:Vh("document"),ipaddress:Vh("string"),identifier:Vh("string"),latitude:Vh("string"),login:Vh("string"),long:Vh("integer"),longitude:Vh("string"),moneyamount:Vh("number"),"multi-remote-field":Vh("multi-remote"),"multi-select-box":Vh("multi-select"),"named-upload":Vh("document"),integer:Vh("integer"),percent:Vh("percent"),phone:Vh("phone"),postcode:Vh("string"),"pseudo-select":Lh("pseudo-select"),"pulldown-date":Vh("date"),remote:Vh("remote"),"search-filter":Vh("search-filter"),serial:Vh("string"),"single-remote-field":Vh("remote"),"single-select-box":Vh("single-select"),sorting:Vh("integer"),string:Vh("string"),text:Vh("text"),"text-area":Vh("text"),time:Vh("time"),updatets:Vh("datetime"),updateuser:Vh("string"),upload:Vh("document"),url:Vh("url"),uuid:Vh("string"),version:Vh("integer")};const Qh={editable:Kh,readOnly:Xh,list:Gh(Gh({},Xh),{},{binary:Vh("document-compact"),document:Vh("document-compact"),image:Vh("document-compact")}),search:Gh(Gh({},Kh),{},{url:Lh("string"),text:Lh("string"),geosearch:Lh("geosearch"),html:Lh("string"),birthdate:Lh("date",!0),code:Vh("text",!0),date:Lh("date",!0),updatets:Lh("datetime",!0),createts:Lh("datetime",!0),datetime:Lh("datetime",!0),moneyamount:Lh("number",!0),percent:Lh("number",!0),long:Lh("integer",!0),integer:Lh("integer",!0),decimal:Lh("number",!0),counter:Lh("integer",!0),time:Lh("time",!0),boolean:Lh("boolean-select"),marking:Lh("boolean-select")})};var $h;const Jh=function(e,t){return Qh[e]&&Qh[e][t]?Qh[e][t]:(vr.Z.log("Unable to display field: unknown mapping type combination (".concat(e," / ").concat(t,")")),function(){return $h||($h=(0,G.jsx)("span",{}))})};var em,tm,nm,rm,om,am,im,cm,um,sm=$.ZP.div.withConfig({displayName:"StyledMergeErrorWrapper"})(em||(em=Q()(["\n ","\n padding: "," 0 0 ",";\n"])),(0,et.Z)(),te.Z.space(-1),te.Z.space(0)),lm=$.ZP.div.withConfig({displayName:"StyledSummaryErrorWrapper"})(tm||(tm=Q()(["\n display: grid;\n align-items: center;\n grid-template-columns: "," 1fr;\n grid-column-gap: ",";\n margin-bottom: ",";\n"])),te.Z.font(10),te.Z.space(-.5),te.Z.space(-.7)),fm=$.ZP.span.withConfig({displayName:"StyledIconWrapper"})(nm||(nm=Q()(["\n display: flex;\n align-items: center;\n color: ",";\n font-size: ",";\n"])),oe.FS.color("signal.danger"),te.Z.font(10)),pm=$.ZP.p.withConfig({displayName:"StyledError"})(rm||(rm=Q()([""]))),dm=$.ZP.div.withConfig({displayName:"StyledLabelWrapper"})(om||(om=Q()(["\n display: flex;\n align-items: center;\n\n label {\n vertical-align: bottom;\n }\n"]))),hm=$.ZP.div.withConfig({displayName:"StyledTableWrapper"})(am||(am=Q()(["\n flex: 1;\n"]))),mm=$.ZP.span.withConfig({displayName:"StyledStatusWrapper"})(im||(im=Q()(["\n color: ",";\n"])),(function(e){return e.isChecked?oe.FS.color("signal.success"):oe.FS.color("signal.danger")})),gm=function(e,t){return 0===Object.keys(de.Z.difference(e,t)).length},vm=L().memo((function(e){var t=e.entityData,n=e.entityKey,r=e.name,o=e.setSelectedMultipleAll,a=e.isSelected,i=e.navigationStrategy;if(0===t.value.totalKeys)return null;return(0,G.jsxs)(dm,{children:[(0,G.jsx)("input",{type:"checkbox",onChange:function(e){return o(r,n,e.target.checked)},checked:a,id:"".concat(r).concat(n)}),(0,G.jsxs)(q.ZP.Label,{for:"".concat(r).concat(n),children:[cm||(cm=(0,G.jsx)(Y.Z,{id:"client.merge.allRelations"}))," ",(0,G.jsx)(K,{model:t.value.relationEntity,keys:t.value.keys,totalKeys:t.value.totalKeys,navigationStrategy:i})]})]})}),gm),ym=L().memo((function(e){var t=e.entityData,n=e.entityKey,r=e.name,o=e.setSelectedMultiple,a=e.selectedMultiple,i=function(e){return Xe()(a,[r,e])===n},c=function(e,t){return o(r,n,e,t)},u=function(e,t){return e===t?"checked":t>0?"indeterminate":"unchecked"}(t.value.length,t.value.filter((function(e){return i(e.key)})).length);return(0,G.jsxs)(G.Fragment,{children:[t.value.length>0&&(0,G.jsxs)(dm,{children:[(0,G.jsx)(ye,{value:u,onChange:function(e){t.value.forEach((function(t){var n="checked"===e;i(t.key)!==n&&c(t.key,n)}))},id:"".concat(r).concat(n)}),(0,G.jsx)(q.ZP.Label,{for:"".concat(r).concat(n),children:um||(um=(0,G.jsx)(Y.Z,{id:"client.merge.allRelations"}))})]}),t.value.map((function(e){return(0,G.jsxs)(dm,{children:[(0,G.jsx)("input",{type:"checkbox",onChange:function(t){return c(e.key,t.target.checked)},checked:i(e.key),id:"".concat(r).concat(n,"-").concat(e.key)}),(0,G.jsx)(q.ZP.Label,{for:"".concat(r).concat(n,"-").concat(e.key),children:(0,G.jsx)(Fh.Z,{type:"single-select",value:e})})]},"relation-checkbox-".concat(e.key))}))]})}),gm),bm=L().memo((function(e){var t=e.entityData,n=e.entityKey,r=e.name,o=e.setSelectedSingle,a=e.isSelected,i=t.type,c=t.writable,u={entity:"single-select-box"}[i]||i,s=Jh("list",u);return(0,G.jsxs)(dm,{children:[(0,G.jsx)("input",{type:"radio",name:r,onChange:function(){o(r,n)},checked:a,id:"".concat(r).concat(n),disabled:!c}),(0,G.jsx)(q.ZP.Label,{for:"".concat(r).concat(n),children:(0,G.jsx)(s,{mappingType:"list",formField:{dataType:u},value:t.value})})]})}),gm);const wm=function(e){var t=e.rowData,n=e.column,r=e.setSelectedSingle,o=e.selectedSingle,a=e.setSelectedMultiple,i=e.selectedMultiple,c=e.setSelectedMultipleAll,u=e.selectedMultipleAll,s=e.navigationStrategy,l=n.entityKey,f=t[l],p=f.type,d=t.__key;return"relations"===p?(0,G.jsx)(vm,{entityData:f,entityKey:l,name:d,setSelectedMultipleAll:c,isSelected:Xe()(u,[d],[]).includes(l),navigationStrategy:s}):"entity-list"===p?(0,G.jsx)(ym,{entityData:f,entityKey:l,name:d,setSelectedMultiple:a,selectedMultiple:i}):(0,G.jsx)(bm,{entityData:f,entityKey:l,name:d,setSelectedSingle:r,isSelected:o[d]===l})};var Om={setSelectedSingle:function(e,t){return{type:j,payload:{name:e,entityKey:t}}},setSelectedMultiple:function(e,t,n,r){return{type:_,payload:{name:e,entityKey:t,relatedEntityKey:n,isSelected:r}}},setSelectedMultipleAll:function(e,t,n){return{type:E,payload:{name:e,entityKey:t,isSelected:n}}}};const xm=(0,k.connect)((function(e){return{selectedSingle:e.merge.selected.single,selectedMultiple:e.merge.selected.multiple,selectedMultipleAll:e.merge.selected.multipleAll,navigationStrategy:e.input.navigationStrategy}}),Om)((0,x.ZP)(wm));var km;const Sm=function(e){var t=e.label,n=e.entityKey,r=e.setTargetEntity,o=e.targetEntity,a=e.mergeStrategyDisplay,i=o===n,c=i?km||(km=(0,G.jsx)(Y.Z,{id:"client.merge.strategy.keep"})):a;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)("input",{type:"radio",name:"column",onChange:function(){return r(n)},checked:i,id:"targetEntity".concat(n)}),(0,G.jsxs)(q.ZP.Label,{for:"targetEntity".concat(n),children:[(0,G.jsx)(q.ZP.B,{children:t}),(0,G.jsxs)(mm,{isChecked:i,children:[" (",c,")"]})]})]})};var Pm={setTargetEntity:N};const jm=(0,k.connect)((function(e){return{targetEntity:e.merge.selected.targetEntity,mergeStrategyDisplay:e.merge.sourceData.mergeStrategyDisplay}}),Pm)((0,x.ZP)(Sm));var _m;y().arrayOf(y().shape({model:y().string,key:y().string,paths:y().objectOf(y().objectOf(y().arrayOf(y().string))),entityValidatorErrors:y().objectOf(y().arrayOf(y().string))}));const Em=function(e){var t=e.sourceData,n=e.mergeErrorMsg,r=e.mergeValidationErrors.map((function(e){var n=Object.keys(e.paths).map((function(n){return Object.keys(e.paths[n]).map((function(r){return e.paths[n][r].map((function(e,o){return(0,G.jsxs)(pm,{children:[t.labels[n],": ",e]},"paths-".concat(n,"-").concat(r,"-").concat(o))}))}))})),r=Object.keys(e.entityValidatorErrors).map((function(t){return e.entityValidatorErrors[t].map((function(e,n){return(0,G.jsx)(pm,{children:e},"entity-".concat(t,"-").concat(n))}))}));return[].concat(H()(n),H()(r))}));return(0,G.jsxs)(sm,{children:[(r.length>0||Boolean(n))&&(_m||(_m=(0,G.jsxs)(lm,{children:[(0,G.jsx)(fm,{children:(0,G.jsx)(V.Z,{icon:"times"})}),(0,G.jsx)(q.ZP.P,{children:(0,G.jsx)(Y.Z,{id:"client.merge.summary.error"})})]}))),Boolean(n)&&(0,G.jsx)(pm,{children:n}),r]})};var Cm,Dm,Tm=function(e){var t=e.rowIdx,n=e.sourceData,r=e.allPaths[t];return(0,G.jsx)(q.ZP.B,{children:n.labels[r]})};const Mm=function(e){var t=e.sourceData,n=e.mergePending,r=e.mergeErrorMsg,o=e.mergeValidationErrors,a=e.executeMerge,i=(0,Z.useMemo)((function(){return t?function(e){var t=vn(e).map((function(t,n){return e.entities.reduce((function(n,r){var o=r.paths[t];return o&&o.value&&("entity"===o.type&&(o.value.display=wn(e,o.value.model,o.value.key)),"entity-list"===o.type&&(o.value=o.value.map((function(t){return t.display=wn(e,t.model,t.key),t})))),gn(gn({},n),{},g()({},r.key,o))}),{__key:t})})),n=yn(e).map((function(t,n){return e.relations.filter((function(e){return e.relationName===t})).reduce((function(e,t){return gn(gn({},e),{},g()({},t.entityKey,{type:"relations",value:{keys:t.keys,totalKeys:t.totalKeys,relationEntity:t.relationEntity}}))}),{__key:t})})),r=bn(e);return[].concat(H()(t),H()(n)).sort((function(e,t){return r.findIndex((function(t){return t===e.__key}))-r.findIndex((function(e){return e===t.__key}))}))}(t):[]}),[t]),c=(0,Z.useMemo)((function(){return t?function(e,t,n,r){var o=e.entities.map((function(r){return{id:r.key,entityKey:r.key,resizable:!0,sorting:{sortable:!1},CellRenderer:n,HeaderRenderer:function(n){return(0,G.jsx)(t,gn(gn({},n),{},{entityKey:r.key,label:wn(e,r.model,r.key)}))}}}));return[{id:"column-label",label:"",resizable:!0,sorting:{sortable:!1},CellRenderer:function(t){return(0,G.jsx)(r,gn(gn({},t),{},{sourceData:e,allPaths:bn(e)}))}}].concat(H()(o))}(t,jm,xm,Tm):[]}),[t]);return n?Cm||(Cm=(0,G.jsx)(pe.Z,{})):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(ne,{children:(0,G.jsx)(re,{onClick:a,look:"raised",ink:"primary",disabled:null===t,children:Dm||(Dm=(0,G.jsx)(Y.Z,{id:"client.merge.saveButton"}))})}),(0,G.jsxs)(hm,{children:[(0,G.jsx)(Em,{sourceData:t,mergeErrorMsg:r,mergeValidationErrors:o}),(0,G.jsx)(hn,{columns:c,data:i,selectionStyle:"none",dataLoadingInProgress:null===t,onColumnPositionChange:function(){}})]})]})};var Rm={executeMerge:function(){return{type:D}}};const Im=(0,k.connect)((function(e){return{sourceData:e.merge.sourceData,mergePending:e.merge.mergePending,mergeErrorMsg:e.merge.mergeErrorMsg,mergeValidationErrors:e.merge.mergeValidationErrors}}),Rm)((0,x.ZP)(Mm));var Nm,Am,Zm,Lm=$.ZP.div.withConfig({displayName:"StyledMerge"})(Nm||(Nm=Q()(["\n height: 100%;\n overflow: hidden;\n background-color: ",";\n display: flex;\n flex-direction: column;\n"])),J.Z.color("paper"));const Fm=function(e){var t=e.initialize,n=e.mergeDone;return(0,Z.useEffect)((function(){t()}),[t]),(0,G.jsx)(Lm,{children:n?Am||(Am=(0,G.jsx)(fe,{})):Zm||(Zm=(0,G.jsx)(Im,{}))})};var Hm={initialize:function(){return{type:S}}};const Bm=(0,k.connect)((function(e){return{mergeDone:!!e.merge.mergeResponse}}),Hm)((0,x.ZP)(Fm));var Um,Wm=i(34857),zm=i(31921),Ym=i.n(zm),Vm=i(81770);function qm(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 Gm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qm(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Km=function(e,t){for(var n=function(){var n=U()(o[r],2),a=n[0],i=n[1];"entity-list"===i.type&&i.value.map((function(e){return e.key})).forEach((function(n){Ym()(e,[a,n],t.key,Object)}))},r=0,o=Object.entries(t.paths);r<o.length;r++)n()},Xm=(Um={},g()(Um,P,Vm.Z.singleTransferReducer("sourceData")),g()(Um,D,(function(e){return Gm(Gm({},e),{},{mergePending:!0})})),g()(Um,T,(function(e,t){var n=t.payload.mergeResponse;return Gm(Gm({},e),{},{mergePending:!1,mergeResponse:n})})),g()(Um,M,(function(e,t){var n=t.payload,r=n.errorMsg,o=n.validationErrors;return Gm(Gm({},e),{},{mergePending:!1,mergeErrorMsg:r,mergeValidationErrors:o})})),g()(Um,j,(function(e,t){var n=t.payload,r=n.name,o=n.entityKey;return Gm(Gm({},e),{},{selected:Gm(Gm({},e.selected),{},{single:Gm(Gm({},e.selected.single),{},g()({},r,o))})})})),g()(Um,_,(function(e,t){var n,r=t.payload,o=r.name,a=r.entityKey,i=r.relatedEntityKey;return r.isSelected?n=Gm(Gm({},e.selected.multiple),{},g()({},o,Gm(Gm({},e.selected.multiple[o]),{},g()({},i,a)))):(n=Gm({},e.selected.multiple))[o]=Yn()(n[o],[i]),Gm(Gm({},e),{},{selected:Gm(Gm({},e.selected),{},{multiple:n})})})),g()(Um,E,(function(e,t){var n,r=t.payload,o=r.name,a=r.entityKey;return n=r.isSelected?[].concat(H()(e.selected.multipleAll[o]||[]),[a]):e.selected.multipleAll[o].filter((function(e){return e!==a})),Gm(Gm({},e),{},{selected:Gm(Gm({},e.selected),{},{multipleAll:Gm(Gm({},e.selected.multipleAll),{},g()({},o,n))})})})),g()(Um,C,(function(e,t){for(var n=t.payload.entityKey,r={},o={},a=e.sourceData.entities.find((function(e){return e.key===n})),i=0,c=Object.entries(a.paths);i<c.length;i++){var u=U()(c[i],2),s=u[0];"entity-list"!==u[1].type&&(r[s]=n)}e.sourceData.entities.filter((function(e){return e.key!==n})).forEach((function(e){return Km(o,e)})),Km(o,a);var l=e.sourceData.relations.reduce((function(e,t){return Gm(Gm({},e),{},g()({},t.relationName,[].concat(H()(e[t.relationName]||[]),[t.entityKey])))}),{});return Gm(Gm({},e),{},{selected:Gm(Gm({},e.selected),{},{targetEntity:n,single:r,multiple:o,multipleAll:l})})})),Um),Qm={sourceData:null,mergePending:!1,mergeResponse:null,mergeErrorMsg:null,mergeValidationErrors:[],selected:{targetEntity:null,single:{},multiple:{},multipleAll:{}}};var $m=i(44908),Jm=i.n($m),eg=i(81719),tg=Md().mark(sg),ng=Md().mark(lg),rg=Md().mark(fg),og=Md().mark(pg),ag=Md().mark(dg),ig=Md().mark(hg),cg=function(e){return e.merge},ug=function(e){return e.input};function sg(){return Md().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Wm.$6)([(0,Wm.Fm)(S,lg),(0,Wm.Fm)(D,dg),(0,Wm.Fm)(R,hg)]);case 2:case"end":return e.stop()}}),tg)}function lg(){var e,t;return Md().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Wm.Ys)(ug);case 2:return e=n.sent,t=e.selection,n.next=6,(0,Wm.RE)(fg,t);case 6:case"end":return n.stop()}}),ng)}function fg(e){var t,n,r;return Md().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return"merge/sourceData",t={method:"POST",body:e},o.next=4,(0,Wm.RE)(eg.Z.requestSaga,"merge/sourceData",t);case 4:return n=o.sent,r=n.body,o.next=8,(0,Wm.gz)(I(r));case 8:return o.next=10,(0,Wm.gz)(N(r.entities[0].key));case 10:case"end":return o.stop()}}),rg)}function pg(){var e,t,n,r,o,a,i,c,u,s,l;return Md().wrap((function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,(0,Wm.Ys)(cg);case 2:e=f.sent,t=e.selected,n=e.sourceData,r={},o=Md().mark((function e(){var t,o,c,u;return Md().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=U()(i[a],2),o=t[0],c=t[1],(u=n.entities.find((function(e){return e.key===c})).paths[o]).writable&&("entity"===u.type?null===u.value?r[o]=null:r[o]={key:u.value.key}:r[o]=c);case 3:case"end":return e.stop()}}),e)})),a=0,i=Object.entries(t.single);case 8:if(!(a<i.length)){f.next=13;break}return f.delegateYield(o(),"t0",10);case 10:a++,f.next=8;break;case 13:c=Md().mark((function e(){var t,n,o;return Md().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=U()(s[u],2),n=t[0],o=t[1],r[n]=[],Object.keys(o).forEach((function(e){return r[n].push({key:e})}));case 3:case"end":return e.stop()}}),e)})),u=0,s=Object.entries(t.multiple);case 15:if(!(u<s.length)){f.next=20;break}return f.delegateYield(c(),"t1",17);case 17:u++,f.next=15;break;case 20:return l=Jm()(n.relations.map((function(e){return e.relationName}))).map((function(e){return{relationName:e,sourceKey:t.multipleAll[e]||[]}})),f.abrupt("return",{entities:n.entities,targetEntity:{key:t.targetEntity,paths:r},mergeRelations:l});case 22:case"end":return f.stop()}}),og)}function dg(){var e,t,n;return Md().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e="merge/merge",r.t0=[400,500],r.next=4,(0,Wm.RE)(pg);case 4:return r.t1=r.sent,t={method:"POST",acceptedStatusCodes:r.t0,body:r.t1},r.next=8,(0,Wm.RE)(eg.Z.requestSaga,e,t);case 8:if(200!==(n=r.sent).status){r.next=14;break}return r.next=12,(0,Wm.gz)((o=n.body,{type:T,payload:{mergeResponse:o}}));case 12:r.next=21;break;case 14:if(!n.body||"VALIDATION_FAILED"!==n.body.errorCode){r.next=19;break}return r.next=17,(0,Wm.gz)(A(null,n.body.errors));case 17:r.next=21;break;case 19:return r.next=21,(0,Wm.gz)(A(n.body.message,[]));case 21:case"end":return r.stop()}var o}),ag)}function hg(){var e,t,n,r;return Md().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,Wm.Ys)(cg);case 2:return e=o.sent,t=e.sourceData,n=t.entities.map((function(e){return{entityName:e.model,key:e.key}})),r=[{type:"entity-update-event",payload:{entities:n}}],o.next=8,(0,Wm.gz)(w.Z.fireExternalEvent("onSuccess",{remoteEvents:r}));case 8:case"end":return o.stop()}}),ig)}var mg=Md().mark(gg);function gg(){return Md().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Wm.$6)([(0,Wm.rM)(sg)]);case 2:case"end":return e.stop()}}),mg)}const vg={merge:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Qm,t=arguments.length>1?arguments[1]:void 0,n=Xm[t.type];return n?n(e,t):e}};var yg,bg,wg=[gg];function Og(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 xg="merge",kg=["emitAction","onSuccess"],Sg=function(e,t,n,r){var o=h.Z.createStore(vg,wg,t,xg);b.Z.addToStore(o,(function(e){return e.input.emitAction})),w.Z.addToStore(o,(function(e){return h.Z.getEvents(kg,e.input)}));var a=!n.emitAction;O.Z.addToStore(o,a);var i=(0,G.jsxs)(G.Fragment,{children:[a&&(yg||(yg=(0,G.jsx)(O.Z.Notifications,{}))),bg||(bg=(0,G.jsx)(Bm,{}))]});return h.Z.createApp(xg,i,o,{input:t,events:n,publicPath:r,textResourceModules:["component","common",xg]})},Pg=function(e){return h.Z.useApp({initApp:Sg,props:e,packageName:xg,externalEvents:kg}).component};Pg.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Og(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Og(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({selection:y().object},kg.reduce((function(e,t){return e[t]=y().func,e}),{}));var jg=h.Z.createBundleableApp(xg,Sg,Pg);h.Z.registerAppInRegistry(jg.name,jg.init)})(),c})()));