"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6904],{54329:function(e,t,n){n.d(t,{x:function(){return j}});var r,o=n(95235),i=n(8529),a=n(7328),c=n(2784),l=n(54073),u=n.n(l),s=n(17486),d=n(89495),p=n(48840),f=n(2660),b=n(52322);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){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 h(e){for(var t=1;t0&&(r.length0&&(E(!1),n.hasOwnProperty("setCustomValidity")&&n.setCustomValidity(t.inner[0].message),e.setIsNotValidated&&e.setIsNotValidated(!0),g(t.inner[0].message))}return!1},25,{leading:!0,trailing:!1}),C=function(e,t,n){try{if("button"===t.type)return!0;return n.validateSync({validator:e},{abortEarly:!1}),!0}catch(e){return!1}},D=function(e,t){return"".concat(null==e?void 0:e.toLowerCase().replace(/\:|\?|\.|\!|\"|\'/g,"").split(" ").join("-"),"-form-item-id").concat(t?"-confirm":"")},I=null!=o&&null!=o.current&&null!=o.current.parentElement?o.current.parentElement.previousElementSibling:null;c.useImperativeHandle(e.bindref,function(){return h(h({},t.props),{},{focus:function(){null!=o&&null!=o.current&&o.current.focus()},validate:function(){return null!=o&&null!=o.current&&S(o.current.value,o.current,A,null!==a.current&&a.current)},value:null!=o&&null!=o.current?o.current.value:"",inView:e.inView||!1,offsetTop:null!=o&&null!=o.current&&null!=I?I.offsetTop-Number(e.offset):0})});var L=function(e,t,n){switch(e){case"MIN_LENGTH":n.minLength=t;break;case"MAX_LENGTH":n.maxLength=t;break;case"REGEX_MATCHES":n.pattern=t}return n},V={};null===(n=t.props.validators)||void 0===n||n.forEach(function(e){return L(e.name,e.argument,V)});var A=(0,s.object)().shape({validator:y(h(h(h({},t.props),V),{},{checkboxes:[]})).label(t.props.label)}),Z="".concat(t.props.label,"-error"),H="".concat(e.i18nText?e.i18nText.confirm:"Confirm","-").concat(t.props.label,"-error");return(0,b.jsxs)(c.Fragment,{children:[(0,b.jsxs)(v,{flexDirection:e.row?"row":"column",disableSpacing:e.disableSpacing,"data-testid":D(t.props.label,!1),className:e.className,children:[c.cloneElement(t,h(h({},t.props),{},{error:p,bindref:o,onChange:t.props.onChange?function(n){var r=S(n.target.value,n.target,A);t.props.onChange&&(t.props.onChange(n),r&&e.onValidationSuccess&&e.onValidationSuccess(n.target.value))}:function(t){var n=t.target;!T&&(S(t.target.value,t.target,A)&&e.onValidationSuccess&&e.onValidationSuccess(n.value),a.current&&a.current.value===n.value&&j(""))},onBlur:function(t){var n=t.target;T&&(S(n.value,n,A,null!==a.current&&a.current),a.current&&(a.current.value===n.value||""===a.current.value)&&j("")),C(n.value,n,A)&&e.onValidationSuccess&&e.onValidationSuccess(n.value)},ariaDescribedBy:Z})),p&&"boolean"!=typeof p&&(0,b.jsx)(f.B,{id:Z,error:p})]}),t.props.confirmable&&(0,b.jsxs)(v,{flexDirection:e.row?"row":"column","data-testid":D(t.props.label,!0),children:[c.cloneElement(t,h(h({},t.props),{},{error:!p&&O,label:w(t.props.label,null===(r=e.i18nText)||void 0===r?void 0:r.confirm,e.locale),helperText:"",bindref:a,onChange:function(){o.current&&a.current&&o.current.value===a.current.value&&j("")},onBlur:function(){!p&&o.current&&a.current&&o.current.value!==a.current.value&&j("".concat(t.props.label," ").concat(e.i18nText?e.i18nText.mustMatch:"must match"))},ariaDescribedBy:H})),!p&&O&&(0,b.jsx)(f.B,{id:H,error:O})]})]})},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m;return c.Children.map(e.children,function(t){return O(e,t)})}},95732:function(e,t,n){n.d(t,{I:function(){return B}});var r,o,i,a,c,l,u,s,d=n(95235),p=n(82269),f=n(8529),b=n(2784),g=n(25237),h=n.n(g),m=n(22551),v=n(31477),x=n(7328),y=n(89495),w=n(48840),O=n(87330),j=n(81292),P=function(e){return function(t){return"focus"!==e?(0,w.iv)(r||(r=(0,x.Z)(["\n border-width: ",";\n border-color: ",";\n border-radius: ",";\n border-style: ",";\n "])),t.error?"2px;":t.theme.formgroup.general.border[e].width,t.error?t.theme.colors.error.base:t.theme.formgroup.general.border[e].color,t.theme.formgroup.general.border[e].radius,t.theme.formgroup.general.border[e].style):(0,w.iv)(o||(o=(0,x.Z)(["\n border-color: ",";\n border-width: ",";\n border-radius: ",";\n border-style: ",";\n "])),t.theme.formgroup.general.border[e].color,t.theme.formgroup.general.border[e].width,t.theme.formgroup.general.border[e].radius,t.theme.formgroup.general.border[e].style)}},k=(0,w.zo)(y.kC)(i||(i=(0,x.Z)(["\n background-color: #ffffff;\n flex-direction: ",";\n padding: ",";\n height: ","\n\n "," \n ","\n margin: "," 1px 0 1px;\n\n &:active {\n ","\n }\n &.disabled {\n ","\n cursor: not-allowed;\n }\n &:hover {\n ","\n }\n &:focus-visible {\n outline: 5px auto Highlight;\n outline: 5px auto -webkit-focus-ring-color;\n padding: 0px calc("," - 1px);\n }\n /* DO NOT GROUP WITH ABOVE BREAKS POLYFILL FOR MSOFT BROWSERS */\n &.focus-visible {\n ","\n padding: 0px calc("," - 1px);\n }\n"])),function(e){return e.ltr?"row":"row-reverse"},function(e){return e.error?"0 calc(".concat((0,w.W0)(1)," - 1px)"):e.isMessageBox?"".concat((0,w.W0)(1)):"0 ".concat((0,w.W0)(1))},function(e){return e.isMessageBox?"94px;":"48px;"},function(e){return e.isMessageBox&&"align-items: flex-start;"},P("default"),function(e){return(0,w.W0)(e.labelHidden?0:.5)},P("active"),P("disabled"),P("hover"),(0,w.W0)(1),P("focus"),(0,w.W0)(1)),T=w.zo.input(a||(a=(0,x.Z)(["\n ","\n outline: none;\n border: none;\n width: 100%;\n box-shadow: 0 0 0 40px ","\n inset;\n ","\n\n &:-webkit-autofill,\n &:-webkit-autofill:hover,\n &:-webkit-autofill:focus,\n &:-webkit-autofill:active {\n -webkit-text-fill-color: ",";\n }\n"])),function(e){return(0,O.xv)(e.theme.formgroup.input.scale,e.theme.formgroup.input.style)},function(e){return e.theme.formgroup.general.background},function(e){return e.isMessageBox&&"height: 38px;"},function(e){return e.theme.formgroup.input.autofillColor}),E=w.zo.div(c||(c=(0,x.Z)(["\n display: flex;\n align-items: center;\n padding: "," "," "," 0;\n"])),(0,w.W0)(1.5),(0,w.W0)(1),(0,w.W0)(1.5)),S=(0,w.zo)(y.kC)(l||(l=(0,x.Z)(["\n flex-direction: ",";\n ",";\n align-items: center;\n ","\n\n button {\n border: 2px solid transparent;\n padding: 2px;\n\n &:focus-visible {\n outline: none;\n "," {\n border: 2px solid ",";\n }\n }\n }\n"])),function(e){return e.ltr?"row":"row-reverse"},function(e){return e.ltr?"padding-left:4px;":"padding-right:4px;"},function(e){return e.isMessageBox&&"height: 38px;"},function(e){return(0,j.mq)(e.theme.breakpointUtils.map,"sm")},function(e){return e.theme.colors.palette.brand.dark}),C=w.zo.button(u||(u=(0,x.Z)(["\n display: flex;\n ","\n color: ",";\n &:hover,\n &:active,\n &:focus {\n opacity: 0.8;\n cursor: pointer;\n }\n"])),function(e){return(0,O.xv)(e.theme.formgroup.icon.scale,e.theme.formgroup.icon.style)},function(e){return e.theme.colors.palette.greys.darker}),D=w.zo.div(s||(s=(0,x.Z)(["\n ","\n margin-top: 8px;\n margin-left: 8px;\n margin-bottom: 4px;\n color: ",";\n\n &.disabled {\n color: ",";\n cursor: not-allowed;\n }\n"])),function(e){return(0,O.xv)(e.theme.formgroup.error.scale,e.theme.formgroup.error.style)},function(e){return e.theme.colors.palette.greys.dark},function(e){return e.theme.colors.palette.greys.light}),I=n(52322),L=["className"];function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function A(e){for(var t=1;t0&&(0,I.jsx)(D,{"data-testid":"input-helper-text",className:"\n ".concat(e.disabled?"disabled":"","\n "),children:e.helperText})]})};B.defaultProps={error:!1,helperText:"",ltr:!0,show:!0,delete:!0,type:"text",labelHidden:!1,required:!1,autocomplete:"off",confirmable:!1,svgIconLeftAlign:!0,onChange:function(){},validators:[]}},78329:function(e,t,n){n.d(t,{Z:function(){return k}});var r,o,i=n(95235),a=n(7328);n(2784);var c=n(25237),l=n.n(c),u=n(48840),s=u.zo.button(r||(r=(0,a.Z)(["\n transition: 0.2s ease-in-out;\n box-sizing: content-box;\n font-family: Arial, Helvetica, sans-serif;\n font-weight: bold;\n font-size: 14px;\n line-height: 24px;\n letter-spacing: 0.18px;\n text-decoration: none;\n width: 100%;\n height: ",";\n box-sizing: border-box;\n border-style: solid;\n border-width: 1px;\n border-radius: 0px;\n color: ",";\n border-color: ",";\n background-color: ",";\n display: inline-flex;\n justify-content: center;\n align-items: center;\n\n svg,\n img {\n margin-right: ",";\n max-height: ",";\n }\n\n &:hover {\n border-width: 1px;\n color: ",";\n border-color: ",";\n background-color: ",";\n }\n\n &:focus-visible {\n outline: none;\n border-width: 2px;\n border-color: ",";\n background-color: ",";\n color: ",";\n }\n\n &:active {\n border-width: 1px;\n color: ",";\n border-color: ",";\n background-color: ",";\n }\n\n &:disabled {\n border-width: 1px;\n color: ",";\n border-color: ",";\n background-color: ",";\n }\n"])),(0,u.W0)(6),function(e){return e.theme.colors.palette.greys.dark},function(e){return e.theme.colors.palette.greys.grey},function(e){return e.theme.colors.palette.greys.white},(0,u.W0)(1),(0,u.W0)(3),function(e){return e.theme.colors.palette.greys.dark},function(e){return e.theme.colors.palette.greys.lighter},function(e){return e.theme.colors.palette.greys.lighter},function(e){return e.theme.button.low.regular.focus.borderColor},function(e){return e.theme.colors.palette.greys.lighter},function(e){return e.theme.colors.palette.greys.dark},function(e){return e.theme.colors.palette.greys.dark},function(e){return e.theme.colors.palette.greys.light},function(e){return e.theme.colors.palette.greys.light},function(e){return e.theme.colors.palette.greys.white},function(e){return e.theme.colors.palette.greys.light},function(e){return e.theme.colors.palette.greys.light}),d=n(52322);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t