(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8793],{50857:function(e,t,r){var n=r(37772).Symbol;e.exports=n},53366:function(e,t,r){var n=r(50857),i=r(62107),a=r(37157),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?i(e):a(e)}},51704:function(e,t,r){var n=r(52153),i=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(i,""):e}},51242:function(e,t,r){var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},62107:function(e,t,r){var n=r(50857),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,l=n?n.toStringTag:void 0;e.exports=function(e){var t=a.call(e,l),r=e[l];try{e[l]=void 0;var n=!0}catch(e){}var i=o.call(e);return n&&(t?e[l]=r:delete e[l]),i}},37157:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},37772:function(e,t,r){var n=r(51242),i="object"==typeof self&&self&&self.Object===Object&&self,a=n||i||Function("return this")();e.exports=a},52153:function(e){var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},54073:function(e,t,r){var n=r(29259),i=r(61100),a=r(7642),o=Math.max,l=Math.min;e.exports=function(e,t,r){var c,u,s,d,g,f,h=0,m=!1,p=!1,b=!0;if("function"!=typeof e)throw TypeError("Expected a function");function v(t){var r=c,n=u;return c=u=void 0,h=t,d=e.apply(n,r)}function x(e){var r=e-f,n=e-h;return void 0===f||r>=t||r<0||p&&n>=s}function y(){var e,r,n,a=i();if(x(a))return j(a);g=setTimeout(y,(e=a-f,r=a-h,n=t-e,p?l(n,s-r):n))}function j(e){return(g=void 0,b&&c)?v(e):(c=u=void 0,d)}function w(){var e,r=i(),n=x(r);if(c=arguments,u=this,f=r,n){if(void 0===g)return h=e=f,g=setTimeout(y,t),m?v(e):d;if(p)return clearTimeout(g),g=setTimeout(y,t),v(f)}return void 0===g&&(g=setTimeout(y,t)),d}return t=a(t)||0,n(r)&&(m=!!r.leading,s=(p="maxWait"in r)?o(a(r.maxWait)||0,t):s,b="trailing"in r?!!r.trailing:b),w.cancel=function(){void 0!==g&&clearTimeout(g),h=0,c=f=u=g=void 0},w.flush=function(){return void 0===g?d:j(i())},w}},29259:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},15125:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},4795:function(e,t,r){var n=r(53366),i=r(15125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==n(e)}},61100:function(e,t,r){var n=r(37772);e.exports=function(){return n.Date.now()}},7642:function(e,t,r){var n=r(51704),i=r(29259),a=r(4795),o=0/0,l=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return o;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=c.test(e);return r||u.test(e)?s(e.slice(2),r?2:8):l.test(e)?o:+e}},54329:function(e,t,r){"use strict";r.d(t,{x:function(){return O}});var n,i=r(95235),a=r(8529),o=r(7328),l=r(2784),c=r(54073),u=r.n(c),s=r(17486),d=r(89495),g=r(48840),f=r(2660),h=r(52322);function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function p(e){for(var t=1;t0&&(n.length0&&(W(!1),r.hasOwnProperty("setCustomValidity")&&r.setCustomValidity(t.inner[0].message),e.setIsNotValidated&&e.setIsNotValidated(!0),m(t.inner[0].message))}return!1},25,{leading:!0,trailing:!1}),q=function(e,t,r){try{if("button"===t.type)return!0;return r.validateSync({validator:e},{abortEarly:!1}),!0}catch(e){return!1}},P=function(e,t){return"".concat(null==e?void 0:e.toLowerCase().replace(/\:|\?|\.|\!|\"|\'/g,"").split(" ").join("-"),"-form-item-id").concat(t?"-confirm":"")},I=null!=i&&null!=i.current&&null!=i.current.parentElement?i.current.parentElement.previousElementSibling:null;l.useImperativeHandle(e.bindref,function(){return p(p({},t.props),{},{focus:function(){null!=i&&null!=i.current&&i.current.focus()},validate:function(){return null!=i&&null!=i.current&&T(i.current.value,i.current,C,null!==o.current&&o.current)},value:null!=i&&null!=i.current?i.current.value:"",inView:e.inView||!1,offsetTop:null!=i&&null!=i.current&&null!=I?I.offsetTop-Number(e.offset):0})});var Z=function(e,t,r){switch(e){case"MIN_LENGTH":r.minLength=t;break;case"MAX_LENGTH":r.maxLength=t;break;case"REGEX_MATCHES":r.pattern=t}return r},F={};null===(r=t.props.validators)||void 0===r||r.forEach(function(e){return Z(e.name,e.argument,F)});var C=(0,s.object)().shape({validator:y(p(p(p({},t.props),F),{},{checkboxes:[]})).label(t.props.label)}),z="".concat(t.props.label,"-error"),V="".concat(e.i18nText?e.i18nText.confirm:"Confirm","-").concat(t.props.label,"-error");return(0,h.jsxs)(l.Fragment,{children:[(0,h.jsxs)(v,{flexDirection:e.row?"row":"column",disableSpacing:e.disableSpacing,"data-testid":P(t.props.label,!1),className:e.className,children:[l.cloneElement(t,p(p({},t.props),{},{error:g,bindref:i,onChange:t.props.onChange?function(r){var n=T(r.target.value,r.target,C);t.props.onChange&&(t.props.onChange(r),n&&e.onValidationSuccess&&e.onValidationSuccess(r.target.value))}:function(t){var r=t.target;!E&&(T(t.target.value,t.target,C)&&e.onValidationSuccess&&e.onValidationSuccess(r.value),o.current&&o.current.value===r.value&&O(""))},onBlur:function(t){var r=t.target;E&&(T(r.value,r,C,null!==o.current&&o.current),o.current&&(o.current.value===r.value||""===o.current.value)&&O("")),q(r.value,r,C)&&e.onValidationSuccess&&e.onValidationSuccess(r.value)},ariaDescribedBy:z})),g&&"boolean"!=typeof g&&(0,h.jsx)(f.B,{id:z,error:g})]}),t.props.confirmable&&(0,h.jsxs)(v,{flexDirection:e.row?"row":"column","data-testid":P(t.props.label,!0),children:[l.cloneElement(t,p(p({},t.props),{},{error:!g&&w,label:j(t.props.label,null===(n=e.i18nText)||void 0===n?void 0:n.confirm,e.locale),helperText:"",bindref:o,onChange:function(){i.current&&o.current&&i.current.value===o.current.value&&O("")},onBlur:function(){!g&&i.current&&o.current&&i.current.value!==o.current.value&&O("".concat(t.props.label," ").concat(e.i18nText?e.i18nText.mustMatch:"must match"))},ariaDescribedBy:V})),!g&&w&&(0,h.jsx)(f.B,{id:V,error:w})]})]})},O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b;return l.Children.map(e.children,function(t){return w(e,t)})}},9371:function(e,t,r){"use strict";r.d(t,{F:function(){return l}});var n=r(8529),i=r(2784),a=r(52322),o=function(e){var t,r=i.useRef(null);return e.refs[(t=e.field.fieldName)&&t.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,t){return 0===t?e.toLowerCase():e.toUpperCase()}).replace(/\s+/g,"")]=r,e.field.renderField(r,e.field.fieldName)},l=function(e){var t=e.id,r=e.fields,l=e.csrf,c=e.children,u=e.renderAnnouncer,s=e.dropdownForm,d=e.validateOnRender,g=e.onSubmit,f=e.onMinimize,h={},m=i.useState({}),p=(0,n.Z)(m,2),b=p[0],v=p[1],x=i.useState({}),y=(0,n.Z)(x,2),j=y[0],w=y[1],O=i.useState(""),S=(0,n.Z)(O,2),k=S[0],E=S[1],W=i.useRef({});i.useEffect(function(){d&&Object.keys(h).forEach(function(e){h[e].current.validate()||(w(h),v(h))})},[d,h]),i.useEffect(function(){0!==Object.keys(b).length?E("".concat(Object.keys(b).length," error").concat(1===Object.keys(b).length?"":"s"," in the form: ").concat(Object.keys(b).reduce(function(e,t){return null!==b[t]&&null!==b[t].current?"".concat(e," ").concat(b[t].current.label,","):e},""))):E("")},[b]),i.useEffect(function(){Object.keys(b).forEach(function(e){null!==j[e]&&null!==j[e].current&&b[e].current.validate()}),Object.keys(b).some(function(e){return!(null===j[e]||null===j[e].current||b[e].current.validate())&&(h[e].current.focus&&h[e].current.focus(),s||window.scrollTo(0,h[e].current.offsetTop),!0)})},[b,s,h,j]),i.useEffect(function(){var e=Object.keys(j).reduce(function(e,t){return null!==j[t]&&null!==j[t].current&&(e[t]=j[t].current.value),e},{});if(Object.keys(e).some(function(t){return e[t]!==W.current[t]})&&0!==Object.keys(j).length){var t=!0;v(Object.keys(j).reduce(function(e,r){return null===j[r]||null===j[r].current||j[r].current.validate()||(t=!1,e[r]=j[r]),e},{}));var r={};Object.keys(j).forEach(function(e){null!==j[e]&&null!==j[e].current&&(r[e]="true"===j[e].current.value||"false"===j[e].current.value?"true"===j[e].current.value:j[e].current.value)}),t?g(r):f&&g(r,!0),W.current=e}},[j,g,f]);var T=r.map(function(e){return(0,a.jsx)(o,{field:e,refs:h},e.fieldName)});return(0,a.jsxs)("form",{noValidate:!0,method:"POST",onSubmit:function(e){e.preventDefault(),w(h)},id:t,children:[l&&(0,a.jsx)("input",{type:"hidden",name:"_csrf",value:l}),(0,a.jsxs)(i.Fragment,{children:[u&&u("assertive",k),T,c]})]})}},8661:function(e,t,r){"use strict";r.d(t,{x:function(){return u}});var n=r(95235);r(2784);var i=r(54329),a=r(76817),o=r(52322);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t