"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6672],{54329:function(e,n,t){t.d(n,{x:function(){return R}});var r,u=t(95235),i=t(8529),o=t(7328),c=t(2784),a=t(54073),l=t.n(a),s=t(17486),f=t(89495),d=t(48840),v=t(2660),T=t(52322);function E(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function S(e){for(var n=1;n0&&(r.length0&&(h(!1),t.hasOwnProperty("setCustomValidity")&&t.setCustomValidity(n.inner[0].message),e.setIsNotValidated&&e.setIsNotValidated(!0),E(n.inner[0].message))}return!1},25,{leading:!0,trailing:!1}),P=function(e,n,t){try{if("button"===n.type)return!0;return t.validateSync({validator:e},{abortEarly:!1}),!0}catch(e){return!1}},O=function(e,n){return"".concat(null==e?void 0:e.toLowerCase().replace(/\:|\?|\.|\!|\"|\'/g,"").split(" ").join("-"),"-form-item-id").concat(n?"-confirm":"")},x=null!=u&&null!=u.current&&null!=u.current.parentElement?u.current.parentElement.previousElementSibling:null;c.useImperativeHandle(e.bindref,function(){return S(S({},n.props),{},{focus:function(){null!=u&&null!=u.current&&u.current.focus()},validate:function(){return null!=u&&null!=u.current&&L(u.current.value,u.current,j,null!==o.current&&o.current)},value:null!=u&&null!=u.current?u.current.value:"",inView:e.inView||!1,offsetTop:null!=u&&null!=u.current&&null!=x?x.offsetTop-Number(e.offset):0})});var N=function(e,n,t){switch(e){case"MIN_LENGTH":t.minLength=n;break;case"MAX_LENGTH":t.maxLength=n;break;case"REGEX_MATCHES":t.pattern=n}return t},V={};null===(t=n.props.validators)||void 0===t||t.forEach(function(e){return N(e.name,e.argument,V)});var j=(0,s.object)().shape({validator:I(S(S(S({},n.props),V),{},{checkboxes:[]})).label(n.props.label)}),w="".concat(n.props.label,"-error"),k="".concat(e.i18nText?e.i18nText.confirm:"Confirm","-").concat(n.props.label,"-error");return(0,T.jsxs)(c.Fragment,{children:[(0,T.jsxs)(A,{flexDirection:e.row?"row":"column",disableSpacing:e.disableSpacing,"data-testid":O(n.props.label,!1),className:e.className,children:[c.cloneElement(n,S(S({},n.props),{},{error:d,bindref:u,onChange:n.props.onChange?function(t){var r=L(t.target.value,t.target,j);n.props.onChange&&(n.props.onChange(t),r&&e.onValidationSuccess&&e.onValidationSuccess(t.target.value))}:function(n){var t=n.target;!g&&(L(n.target.value,n.target,j)&&e.onValidationSuccess&&e.onValidationSuccess(t.value),o.current&&o.current.value===t.value&&R(""))},onBlur:function(n){var t=n.target;g&&(L(t.value,t,j,null!==o.current&&o.current),o.current&&(o.current.value===t.value||""===o.current.value)&&R("")),P(t.value,t,j)&&e.onValidationSuccess&&e.onValidationSuccess(t.value)},ariaDescribedBy:w})),d&&"boolean"!=typeof d&&(0,T.jsx)(v.B,{id:w,error:d})]}),n.props.confirmable&&(0,T.jsxs)(A,{flexDirection:e.row?"row":"column","data-testid":O(n.props.label,!0),children:[c.cloneElement(n,S(S({},n.props),{},{error:!d&&b,label:_(n.props.label,null===(r=e.i18nText)||void 0===r?void 0:r.confirm,e.locale),helperText:"",bindref:o,onChange:function(){u.current&&o.current&&u.current.value===o.current.value&&R("")},onBlur:function(){!d&&u.current&&o.current&&u.current.value!==o.current.value&&R("".concat(n.props.label," ").concat(e.i18nText?e.i18nText.mustMatch:"must match"))},ariaDescribedBy:k})),!d&&b&&(0,T.jsx)(v.B,{id:k,error:b})]})]})},R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;return c.Children.map(e.children,function(n){return b(e,n)})}},9371:function(e,n,t){t.d(n,{F:function(){return c}});var r=t(8529),u=t(2784),i=t(52322),o=function(e){var n,t=u.useRef(null);return e.refs[(n=e.field.fieldName)&&n.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,n){return 0===n?e.toLowerCase():e.toUpperCase()}).replace(/\s+/g,"")]=t,e.field.renderField(t,e.field.fieldName)},c=function(e){var n=e.id,t=e.fields,c=e.csrf,a=e.children,l=e.renderAnnouncer,s=e.dropdownForm,f=e.validateOnRender,d=e.onSubmit,v=e.onMinimize,T={},E=u.useState({}),S=(0,r.Z)(E,2),p=S[0],A=S[1],m=u.useState({}),I=(0,r.Z)(m,2),_=I[0],b=I[1],R=u.useState(""),y=(0,r.Z)(R,2),C=y[0],g=y[1],h=u.useRef({});u.useEffect(function(){f&&Object.keys(T).forEach(function(e){T[e].current.validate()||(b(T),A(T))})},[f,T]),u.useEffect(function(){0!==Object.keys(p).length?g("".concat(Object.keys(p).length," error").concat(1===Object.keys(p).length?"":"s"," in the form: ").concat(Object.keys(p).reduce(function(e,n){return null!==p[n]&&null!==p[n].current?"".concat(e," ").concat(p[n].current.label,","):e},""))):g("")},[p]),u.useEffect(function(){Object.keys(p).forEach(function(e){null!==_[e]&&null!==_[e].current&&p[e].current.validate()}),Object.keys(p).some(function(e){return!(null===_[e]||null===_[e].current||p[e].current.validate())&&(T[e].current.focus&&T[e].current.focus(),s||window.scrollTo(0,T[e].current.offsetTop),!0)})},[p,s,T,_]),u.useEffect(function(){var e=Object.keys(_).reduce(function(e,n){return null!==_[n]&&null!==_[n].current&&(e[n]=_[n].current.value),e},{});if(Object.keys(e).some(function(n){return e[n]!==h.current[n]})&&0!==Object.keys(_).length){var n=!0;A(Object.keys(_).reduce(function(e,t){return null===_[t]||null===_[t].current||_[t].current.validate()||(n=!1,e[t]=_[t]),e},{}));var t={};Object.keys(_).forEach(function(e){null!==_[e]&&null!==_[e].current&&(t[e]="true"===_[e].current.value||"false"===_[e].current.value?"true"===_[e].current.value:_[e].current.value)}),n?d(t):v&&d(t,!0),h.current=e}},[_,d,v]);var L=t.map(function(e){return(0,i.jsx)(o,{field:e,refs:T},e.fieldName)});return(0,i.jsxs)("form",{noValidate:!0,method:"POST",onSubmit:function(e){e.preventDefault(),b(T)},id:n,children:[c&&(0,i.jsx)("input",{type:"hidden",name:"_csrf",value:c}),(0,i.jsxs)(u.Fragment,{children:[l&&l("assertive",C),L,a]})]})}},10291:function(e,n,t){t.d(n,{m:function(){return A}});var r,u,i=t(95235),o=t(2784),c=t(660),a=t(18412),l=t(41857),s=t(58406),f=t(28316),d=t(3176),v=t(52322),T=o.forwardRef(function(e,n){var t,r,u,i;return"undefined"!=typeof document&&document.body?f.createPortal((r=e.onVerify,u=e.siteKey,i=e.size,(0,v.jsx)(d.Z,{ref:n,size:i,onChange:r,sitekey:u})),null!==(t=e.containerRef)&&void 0!==t&&t.current?e.containerRef.current:document.body):null}),E=t(72370),S=((r=S||{}).LIST_ATTACK_STRATEGY_RECAPTCHA_VISIBLE="VISIBLE-RECAPTCHA",r.LIST_ATTACK_STRATEGY_RECAPTCHA_INVISIBLE="INVISIBLE-RECAPTCHA",r.LIST_ATTACK_STRATEGY_HCAPTCHA="HCAPTCHA",r.LIST_ATTACK_STRATEGY_TURNSTILE="TURNSTILE",r),p=(u={},(0,i.Z)(u,S.LIST_ATTACK_STRATEGY_RECAPTCHA_VISIBLE,E.QZ.RECAPTCHA_BYPASS_TYPE_VISIBLE),(0,i.Z)(u,S.LIST_ATTACK_STRATEGY_RECAPTCHA_INVISIBLE,E.QZ.RECAPTCHA_BYPASS_TYPE_INVISIBLE),(0,i.Z)(u,S.LIST_ATTACK_STRATEGY_HCAPTCHA,E.QZ.HCAPTCHA_BYPASS_TYPE),(0,i.Z)(u,S.LIST_ATTACK_STRATEGY_TURNSTILE,E.QZ.TURNSTILE_BYPASS_TYPE),u),A=function(e){var n=(0,s.Mu)(),t=(0,l.ND)(),r=o.useRef(null),u=o.useRef(null),i=o.useRef(),f=t.enableRecaptchaNet,d=o.useCallback(function(e){e&&i.current&&i.current(e)},[]);return o.useEffect(function(){f&&(window.recaptchaOptions={useRecaptchaNet:!0})},[]),o.useEffect(function(){var n={count:0,maxRetries:5,interval:200};e.onLoad&&function t(){if(null!==(u=e.containerRef)&&void 0!==u&&u.current)try{var r,u,i,o=new MutationObserver(function(n){n.forEach(function(n){if("childList"===n.type){var t,r;(null===(t=e.containerRef)||void 0===t||null===(t=t.current)||void 0===t?void 0:t.querySelector("iframe"))&&(null===(r=e.onLoad)||void 0===r||r.call(e),o.disconnect())}})});return o.observe(e.containerRef.current,{childList:!0,subtree:!0}),function(){return o.disconnect()}}catch(n){null===(i=e.onError)||void 0===i||i.call(e,n)}else n.count