{"version":3,"sources":["webpack:///./node_modules/@instacart/ipp-auth-service-tools/dist/auth-service-tools108.js","webpack:///./node_modules/@instacart/ipp-auth-service-tools/dist/auth-service-tools52.js","webpack:///./node_modules/@instacart/ipp-auth-service-tools/dist/auth-service-tools51.js","webpack:///./node_modules/@instacart/ipp-auth-service-tools/dist/auth-service-tools209.js","webpack:///./node_modules/@instacart/ipp-auth-service-tools/dist/auth-service-tools11.js","webpack:///./node_modules/@instacart/ipp-auth-service-tools/dist/auth-service-tools46.js","webpack:///./node_modules/@instacart/ipp-auth-service-tools/dist/auth-service-tools211.js"],"names":["FormField","target","width","display","flexDirection","gap","X4","_ref","noMargin","paddingBottom","X24","FormFieldLabel","_ref2","children","optional","props","messages","as","weight","size","css","marginLeft","color","GRAYSCALE","X50","FormFieldDescription","_ref3","FormFieldFeedback","_ref4","icon","Icon","iconColor","containerStyles","alignItems","X70","FormFieldError","_ref5","DETRIMENTAL","REGULAR","LoadingDotsContainer","centered","LoadingDots","fill","height","testId","svgHeight","svgWidth","viewBox","xmlns","className","cx","cy","r","StyledButton","padding","margin","X8","fontSize","X15","fontWeight","SEMIBOLD","X0","backgroundColor","PRIMARY","borderRadius","border","buttonColors","bgColor","fgColor","hoverBgColor","darkBgColor","DARK","borderColor","hoverFgColor","disabledBgColor","X10","disabledBorderColor","X20","variant","Object","assign","X30","dimensions","compact","X12","loadingHeight","loadingWidth","outline","outlineOffset","cursor","Button","ref","type","loading","rest","isCheckBoxInput","element","isDateObject","value","Date","isNullOrUndefined","isObjectType","isObject","Array","isArray","getEventValue","event","checked","isNameInFieldArray","names","name","has","substring","search","getNodeParentName","filter","Boolean","isUndefined","val","get","obj","path","defaultValue","result","split","reduce","result2","key","EVENTS","VALIDATION_MODE","INPUT_VALIDATION_RULES","HookFormContext","createContext","useFormContext","useContext","FormProvider","data","createElement","Provider","getProxyFormState","formState","_proxyFormState","localProxyFormState","isRoot","arguments","length","undefined","defineProperty","_key","isEmptyObject","keys","shouldRenderFormState","formStateData","find","convertToArrayPayload","shouldSubscribeByName","signalName","exact","some","currentName","startsWith","useSubscribe","_props","useRef","current","useEffect","subscription","disabled","subject","subscribe","next","callback","subscription2","unsubscribe","isString","generateWatchOutput","_names","formValues","isGlobal","watch","add","map","fieldName","watchAll","isFunction","objectHasFunction","useController","methods","control","shouldUnregister","isArrayField","array","_name","useCallback","fieldValues","values","_formValues","updateValue","_subjects","useState","_getWatch","_removeUnmounted","useWatch","_defaultValues","updateFormState","_formState","_localProxyFormState","isDirty","dirtyFields","touchedFields","isValidating","isValid","errors","_mounted","state","useFormState","_registerProps","register","rules","updateMounted","name2","value2","field","_fields","_f","mount","_shouldUnregisterField","_options","_stateFlags","action","unregister","onChange","onBlur","elm","focus","select","setCustomValidity","message","reportValidity","fieldState","defineProperties","invalid","isTouched","error","Controller","render","appendErrors","validateAllFieldCriteria","types","isKey","test","stringToPath","input","replace","set","object","index","tempPath","lastIndex","newValue","objValue","isNaN","focusFieldBy","fields","fieldsNames","currentField","refs","isWatched","isBlurEvent","watchName","slice","updateFieldArrayRootError","fieldArrayErrors","isBoolean","isFileInput","isMessage","isValidElement","isRadioInput","isRegex","RegExp","defaultResult","validResult","getCheckboxValue","options","option","attributes","defaultReturn","getRadioValue","previous","getValidateError","every","getValueAndMessage","validationData","validateField","async","inputValue","shouldUseNativeValidation","isFieldArray","required","maxLength","minLength","min","max","pattern","validate","valueAsNumber","inputRef","isRadio","isCheckBox","isRadioOrCheckbox2","isEmpty","appendErrorsCurry","bind","getMinMaxMessage","exceedMax","maxLengthMessage","minLengthMessage","maxType","minType","exceedMin","maxOutput","minOutput","valueDate","valueAsDate","valueNumber","maxLengthOutput","minLengthOutput","patternValue","match","validateError","validationResult","isWeb","window","HTMLElement","document","cloneObject","copy","Set","Blob","FileList","getValidationModes","mode","isOnSubmit","isOnBlur","isOnChange","isOnAll","isOnTouch","isEmptyArray","unset","updatePath","childObject","baseGet","previousObjRef","k","objectRef","currentPaths","currentPathsLength","item","createSubject","_observers","observer","push","o","isPrimitive","deepEqual","object1","object2","getTime","keys1","keys2","val1","includes","val2","isHTMLElement","owner","ownerDocument","defaultView","isMultipleSelect","isRadioOrCheckbox","live","isConnected","markFieldsDirty","isParentNodeArray","getDirtyFieldsFromDefaultValues","dirtyFieldsFromValues","getDirtyFields","defaultValues","getFieldValueAs","setValueAs","NaN","getFieldValue","ref2","files","selectedOptions","getResolverOptions","criteriaMode","getRuleValue","rule","source","hasValidation","schemaErrorLookup","join","foundError","pop","skipValidation","isSubmitted","reValidateMode","unsetEmptyArray","defaultOptions","shouldFocusError","createFormControl","delayErrorCallback","submitCount","isSubmitting","isSubmitSuccessful","unMount","timer","validateFields","validationModeBeforeSubmit","validationModeAfterSubmit","shouldDisplayAllAssociatedErrors","debounce","wait","clearTimeout","setTimeout","_updateValid","resolver","_executeSchema","executeBuiltInValidation","shouldSkipRender","_updateFieldArray","method","args","shouldSetValues","shouldUpdateFieldsAndState","argA","argB","_getDirty","updateErrors","updateValidAndValue","shouldSkipSetValueAs","defaultChecked","setFieldValue","updateTouchAndDirty","fieldValue","shouldDirty","shouldRender","isFieldDirty","output","isPreviousFieldTouched","isPreviousFormDirty","isPreviousFieldDirty","shouldRenderByError","previousFieldError","shouldUpdateValid","delayError","updatedFormState","v","context","executeSchemaAndUpdateState","shouldOnlyCheckValid","valid","isFieldArrayRoot","fieldError","getValues","_getFieldArray","fieldReference","forEach","selectRef","selected","checkboxRef","radioRef","shouldTouch","shouldValidate","trigger","setValues","fieldKey","setValue","cloneValue","shouldSkipValidation","deps","watched","previousErrorLookupResult","errorLookupResult","fieldNames","Promise","all","shouldFocus","getFieldState","clearErrors","inputName","setError","info","delete","keepValue","keepError","keepDirty","keepTouched","keepDefaultValue","keepIsValid","disabledIsDefined","fieldRef","querySelectorAll","radioOrCheckbox","handleSubmit","onValid","onInvalid","e","preventDefault","persist","hasNoPromiseError","err","resetField","reset","keepStateOptions","updatedValues","cloneUpdatedValues","keepDefaultValues","keepValues","keepDirtyValues","closest","_a","keepSubmitCount","keepIsSubmitted","keepErrors","setFocus","shouldSelect","useForm","_formControl","alertStyles","childrenWrapper","justifyContent","paddingLeft","flex","Alert","dynamicProps","LIGHT","LOYALTY","SUCCESS","HIGHLIGHT","useFormErrorMessages","flattenedMessageMap","entries","acc","errorTypes","fromEntries","useExtraFields","definition"],"mappings":"0FAAA,wOAQA,MAAMA,EAAyB,YAAQ,MAA+C,CACpFC,OAAQ,aADqB,CAK5B,CACDC,MAAO,OACPC,QAAS,OACTC,cAAe,SACfC,IAAK,IAAQC,KACXC,IACF,IAAI,SACFC,GACED,EACJ,MAAO,CACLE,cAAeD,EAAW,EAAI,IAAQE,OAEC,IAErCC,EAAkBC,IACtB,IAAI,SACFC,EAAQ,SACRC,KACGC,GACDH,EACJ,MAAMI,EAAW,YAAY,CAC3BF,SAAU,wCAEZ,OAAsB,YAAK,IAAM,IAAKC,EACpCE,GAAI,QACJC,OAAQ,WACRC,KAAM,SACNN,SAAU,CAACA,EAAUC,GAA2B,YAAI,IAAM,CACxDM,IAAK,CACHjB,QAAS,SACTkB,WAAY,IAAQf,GACpBgB,MAAO,IAAOC,UAAUC,KAE1BX,SAAUG,EAASF,eAKnBW,EAAwBC,IAC5B,IAAI,SACFb,KACGE,GACDW,EACJ,OAAsB,YAAI,IAAM,IAAKX,EACnCI,KAAM,QACNN,cAIEc,EAAqBC,IACzB,IAAI,SACFf,EACAgB,KAAMC,EAAI,UACVC,EAAS,gBACTC,EAAkB,MACfjB,GACDa,EACJ,OAAsB,YAAK,MAAO,CAChCR,IAAK,CACHjB,QAAS,OACTC,cAAe,MACf6B,WAAY,SACZ5B,IAAK,IAAQC,MACV0B,GAELnB,SAAU,CAAgB,YAAIiB,EAAM,CAClCX,KAAM,GACNG,MAAOS,GAAa,sBACH,YAAI,IAAM,IAAKhB,EAChCE,GAAI,QACJE,KAAM,QACNC,IAAK,CACHE,MAAO,IAAOC,UAAUW,KAE1BrB,iBAKAsB,EAAkBC,IACtB,IACEP,KAAMC,E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DV,KArCS,GAsCTG,MAAO,2BAMf,OAAsB,YAAK,MAAO,CAChCF,IAAkB,YAAI6f,EAAa,CACjCnd,gBAAiByd,EAAazd,iBACW,GAA4D,OACpG/C,EACHF,SAAU,CAAC0gB,EAAa1f,KAAqB,YAAI,MAAO,CACtDT,IAAK8f,EACLrgB,kB,iCChFN,+CAEA,MAAM+gB,EAAuB,CAACxU,EAAQ/B,KACpC,MAAMwW,EAAsB9c,OAAO+c,QAAQzW,GAAKxD,QAAO,CAACka,EAAKxhB,KAC3D,IAAK+K,EAAW0W,GAAczhB,EAK9B,OAJAwE,OAAO+c,QAAQE,GAAY7E,SAASvc,IAClC,IAAKmH,EAAK7B,GAAStF,EACnBmhB,EAAI,GAAGzW,KAAavD,KAAS7B,KAExB6b,IACN,IACG/gB,EAAW,YAAY6gB,GAC7B,OAAO9c,OAAOkd,YAAYld,OAAO+c,QAAQ1U,GAAQ/B,KAAK3J,IACpD,IAAKqG,EAAKoH,GAASzN,EAEnB,MAAO,CAACqG,EADM/G,EAAS,GAAG+G,KAAOoH,EAAMvJ,SAAW5E,EAAS,GAAG+G,oB,iCCdlE,sDAGA,MAAMma,EAAiB,CAACC,EAAY1U,IAClB,aAAY,IAAM1I,OAAO+c,QAAQK,GAAc,KAAK,CAACA,IACtD9W,KAAK9K,IAClB,IAAKwH,EAAK7B,GAAS3F,EACnB,OAAsB,YAAI,QAAS,CACjCqF,KAAM,SACNM,WACGuH,EAAS1F,IACXA","file":"js/1-4224e45306728bdb5c70.chunk.js","sourcesContent":["import _styled from \"@emotion/styled/base\";\nimport { jsxs, jsx } from \"@emotion/react/jsx-runtime\";\nimport { IssueIcon as IssueIcon_default } from \"./auth-service-tools41.js\";\nimport { Text } from \"./auth-service-tools48.js\";\nimport { useMessages } from \"./auth-service-tools47.js\";\nimport { spacing } from \"./auth-service-tools42.js\";\nimport { colors } from \"./auth-service-tools43.js\";\n\nconst FormField = /*#__PURE__*/_styled(\"div\", process.env.NODE_ENV === \"production\" ? {\n target: \"e1rngsi80\"\n} : {\n target: \"e1rngsi80\",\n label: \"FormField\"\n})({\n width: \"100%\",\n display: \"flex\",\n flexDirection: \"column\",\n gap: spacing.X4\n}, (_ref) => {\n let {\n noMargin\n } = _ref;\n return {\n paddingBottom: noMargin ? 0 : spacing.X24\n };\n}, process.env.NODE_ENV === \"production\" ? \"\" : \"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi92YXIvYXBwL25vZGVfbW9kdWxlcy9AaW5zdGFjYXJ0L2lwcC1hdXRoLXNlcnZpY2UtdG9vbHMvZGlzdC9hdXRoLXNlcnZpY2UtdG9vbHMxMDguanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBT2tCIiwiZmlsZSI6Ii92YXIvYXBwL25vZGVfbW9kdWxlcy9AaW5zdGFjYXJ0L2lwcC1hdXRoLXNlcnZpY2UtdG9vbHMvZGlzdC9hdXRoLXNlcnZpY2UtdG9vbHMxMDguanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBqc3hzLCBqc3ggfSBmcm9tIFwiQGVtb3Rpb24vcmVhY3QvanN4LXJ1bnRpbWVcIjtcbmltcG9ydCBzdHlsZWQgZnJvbSBcIkBlbW90aW9uL3N0eWxlZFwiO1xuaW1wb3J0IHsgSXNzdWVJY29uIGFzIElzc3VlSWNvbl9kZWZhdWx0IH0gZnJvbSBcIi4vYXV0aC1zZXJ2aWNlLXRvb2xzNDEuanNcIjtcbmltcG9ydCB7IFRleHQgfSBmcm9tIFwiLi9hdXRoLXNlcnZpY2UtdG9vbHM0OC5qc1wiO1xuaW1wb3J0IHsgdXNlTWVzc2FnZXMgfSBmcm9tIFwiLi9hdXRoLXNlcnZpY2UtdG9vbHM0Ny5qc1wiO1xuaW1wb3J0IHsgc3BhY2luZyB9IGZyb20gXCIuL2F1dGgtc2VydmljZS10b29sczQyLmpzXCI7XG5pbXBvcnQgeyBjb2xvcnMgfS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FyXCJcbiAgfVxuKTtcbmV4cG9ydCB7XG4gIEZvcm1GaWVsZCxcbiAgRm9ybUZpZWxkRGVzY3JpcHRpb24sXG4gIEZvcm1GaWVsZEVycm9yLFxuICBGb3JtRmllbGRGZWVkYmFjayxcbiAgRm9ybUZpZWxkTGFiZWxcbn07XG4vLyMgc291cmNlTWFwcGluZ1VSTD1hdXRoLXNlcnZpY2UtdG9vbHMxMDguanMubWFwXG4iXX0= */\");\n\nconst FormFieldLabel = (_ref2) => {\n let {\n children,\n optional,\n ...props\n } = _ref2;\n const messages = useMessages({\n optional: \"sharedComponents.formField.optional\"\n });\n return /* @__PURE__ */jsxs(Text, { ...props,\n as: \"label\",\n weight: \"semibold\",\n size: \"medium\",\n children: [children, optional && /* @__PURE__ */jsx(Text, {\n css: {\n display: \"inline\",\n marginLeft: spacing.X4,\n color: colors.GRAYSCALE.X50\n },\n children: messages.optional\n })]\n });\n};\n\nconst FormFieldDescription = (_ref3) => {\n let {\n children,\n ...props\n } = _ref3;\n return /* @__PURE__ */jsx(Text, { ...props,\n size: \"small\",\n children\n });\n};\n\nconst FormFieldFeedback = (_ref4) => {\n let {\n children,\n icon: Icon,\n iconColor,\n containerStyles = {},\n ...props\n } = _ref4;\n return /* @__PURE__ */jsxs(\"div\", {\n css: {\n display: \"flex\",\n flexDirection: \"row\",\n alignItems: \"center\",\n gap: spacing.X4,\n ...containerStyles\n },\n children: [/* @__PURE__ */jsx(Icon, {\n size: 13,\n color: iconColor || \"systemGrayscale70\"\n }), /* @__PURE__ */jsx(Text, { ...props,\n as: \"label\",\n size: \"small\",\n css: {\n color: colors.GRAYSCALE.X70\n },\n children\n })]\n });\n};\n\nconst FormFieldError = (_ref5) => {\n let {\n icon: Icon = IssueIcon_default,\n ...props\n } = _ref5;\n return /* @__PURE__ */jsx(FormFieldFeedback, { ...props,\n css: {\n color: colors.DETRIMENTAL.REGULAR\n },\n icon: Icon,\n iconColor: \"systemDetrimentalRegular\"\n });\n};\n\nexport { FormField, FormFieldDescription, FormFieldError, FormFieldFeedback, FormFieldLabel };","import _styled from \"@emotion/styled/base\";\nimport { jsx, jsxs } from \"@emotion/react/jsx-runtime\";\nimport { colors } from \"./auth-service-tools43.js\";\n\nconst LoadingDotsContainer = /*#__PURE__*/_styled(\"div\", process.env.NODE_ENV === \"production\" ? {\n target: \"e1qdee3s0\"\n} : {\n target: \"e1qdee3s0\",\n label: \"LoadingDotsContainer\"\n})(\"@keyframes load{0%{opacity:0;}50%{opacity:1;}100%{opacity:0;}}.loading-dots{animation:load 1s infinite;animation-fill-mode:both;}.loading-dots:nth-of-type(2){animation-delay:0.2s;}.loading-dots:nth-of-type(3){animation-delay:0.4s;}\", (_ref) => {\n let {\n centered\n } = _ref;\n return centered && `\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n `;\n}, \";\" + (process.env.NODE_ENV === \"production\" ? \"\" : \"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi92YXIvYXBwL25vZGVfbW9kdWxlcy9AaW5zdGFjYXJ0L2lwcC1hdXRoLXNlcnZpY2UtdG9vbHMvZGlzdC9hdXRoLXNlcnZpY2UtdG9vbHM1Mi5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFHdUMiLCJmaWxlIjoiL3Zhci9hcHAvbm9kZV9tb2R1bGVzL0BpbnN0YWNhcnQvaXBwLWF1dGgtc2VydmljZS10b29scy9kaXN0L2F1dGgtc2VydmljZS10b29sczUyLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsganN4LCBqc3hzIH0gZnJvbSBcIkBlbW90aW9uL3JlYWN0L2pzeC1ydW50aW1lXCI7XG5pbXBvcnQgc3R5bGVkIGZyb20gXCJAZW1vdGlvbi9zdHlsZWRcIjtcbmltcG9ydCB7IGNvbG9ycyB9IGZyb20gXCIuL2F1dGgtc2VydmljZS10b29sczQzLmpzXCI7XG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n height = 40,\n centered = false,\n testId = null\n } = _ref2;\n const svgHeight = `${height}px`;\n const svgWidth = `${height * 3}px`;\n return /* @__PURE__ */jsx(LoadingDotsContainer, {\n \"data-testid\": testId || \"loading-dots\",\n centered,\n children: /* @__PURE__ */jsxs(\"svg\", {\n height: svgHeight,\n width: svgWidth,\n viewBox: \"0 0 10 2\",\n xmlns: \"http://www.w3.org/2000/svg\",\n className: \"loading-dots-svg\",\n children: [/* @__PURE__ */jsx(\"circle\", {\n className: \"loading-dots\",\n fill,\n cx: \"1\",\n cy: \"1\",\n r: \"1\"\n }), /* @__PURE__ */jsx(\"circle\", {\n className: \"loading-dots\",\n fill,\n cx: \"5\",\n cy: \"1\",\n r: \"1\"\n }), /* @__PURE__ */jsx(\"circle\", {\n className: \"loading-dots\",\n fill,\n cx: \"9\",\n cy: \"1\",\n r: \"1\"\n })]\n })\n });\n};\n\nexport { LoadingDots };","import _styled from \"@emotion/styled/base\";\nimport { jsx } from \"@emotion/react/jsx-runtime\";\nimport { forwardRef } from \"react\";\nimport { LoadingDots } from \"./auth-service-tools52.js\";\nimport { spacing } from \"./auth-service-tools42.js\";\nimport { fontSize } from \"./auth-service-tools49.js\";\nimport { fontWeight } from \"./auth-service-tools50.js\";\nimport { colors } from \"./auth-service-tools43.js\";\nimport { borderRadius } from \"./auth-service-tools53.js\";\n\nconst StyledButton = /*#__PURE__*/_styled(\"button\", process.env.NODE_ENV === \"production\" ? {\n target: \"e160g0yg0\"\n} : {\n target: \"e160g0yg0\",\n label: \"StyledButton\"\n})({\n height: 40,\n padding: \"8px 16px\",\n margin: spacing.X8,\n fontSize: fontSize.X15,\n fontWeight: fontWeight.SEMIBOLD,\n color: colors.GRAYSCALE.X0,\n backgroundColor: colors.PRIMARY.REGULAR,\n borderRadius: borderRadius.X8,\n border: \"1px solid\",\n width: \"fit-content\"\n}, props => {\n const buttonColors = {\n bgColor: colors.PRIMARY.REGULAR,\n fgColor: colors.GRAYSCALE.X0,\n hoverBgColor: \"#099B09\",\n darkBgColor: colors.PRIMARY.DARK,\n borderColor: colors.PRIMARY.DARK,\n hoverFgColor: void 0,\n disabledBgColor: colors.GRAYSCALE.X10,\n disabledBorderColor: colors.GRAYSCALE.X20\n };\n\n switch (props.variant) {\n case \"secondary\":\n Object.assign(buttonColors, {\n bgColor: colors.GRAYSCALE.X20,\n fgColor: colors.GRAYSCALE.X70,\n darkBgColor: colors.GRAYSCALE.X30,\n borderColor: colors.GRAYSCALE.X30,\n hoverBgColor: \"#D7D9DC\"\n });\n break;\n\n case \"tertiary\":\n Object.assign(buttonColors, {\n bgColor: colors.GRAYSCALE.X0,\n fgColor: colors.GRAYSCALE.X70,\n darkBgColor: colors.GRAYSCALE.X30,\n borderColor: colors.GRAYSCALE.X30,\n hoverBgColor: colors.GRAYSCALE.X20\n });\n break;\n\n case \"detrimental\":\n Object.assign(buttonColors, {\n bgColor: colors.DETRIMENTAL.REGULAR,\n fgColor: colors.GRAYSCALE.X0,\n darkBgColor: colors.DETRIMENTAL.DARK,\n borderColor: colors.DETRIMENTAL.DARK,\n hoverBgColor: \"#C62928\"\n });\n break;\n\n case \"transparent\":\n Object.assign(buttonColors, {\n bgColor: \"transparent\",\n fgColor: colors.PRIMARY.REGULAR,\n darkBgColor: \"transparent\",\n borderColor: \"transparent\",\n hoverBgColor: \"transparent\",\n hoverFgColor: colors.PRIMARY.DARK,\n disabledBorderColor: \"none\",\n disabledBgColor: \"transparent\"\n });\n break;\n }\n\n const dimensions = props.compact ? {\n height: 28,\n padding: \"4px 12px\",\n fontSize: fontSize.X12,\n loadingHeight: 6,\n loadingWidth: 30\n } : {\n height: 40,\n padding: \"8px 16px\",\n fontSize: fontSize.X15,\n loadingHeight: 8,\n loadingWidth: 40\n };\n return {\n backgroundColor: buttonColors.bgColor,\n color: buttonColors.fgColor,\n border: \"1px solid\",\n borderColor: buttonColors.borderColor,\n height: dimensions.height,\n padding: dimensions.padding,\n fontSize: dimensions.fontSize,\n \"&:hover\": {\n backgroundColor: buttonColors.hoverBgColor,\n color: buttonColors.hoverFgColor\n },\n \"&:active\": {\n backgroundColor: buttonColors.darkBgColor\n },\n \"&:focus-visible\": {\n outline: `2px solid ${colors.GRAYSCALE.X70}`,\n outlineOffset: 2\n },\n \"&:disabled\": {\n backgroundColor: buttonColors.disabledBgColor,\n color: colors.GRAYSCALE.X30,\n cursor: \"default\",\n borderColor: buttonColors.disabledBorderColor\n },\n \"& .loading-dots-svg\": {\n height: dimensions.loadingHeight,\n width: dimensions.loadingWidth\n },\n \"& .loading-dots\": {\n fill: buttonColors.fgColor\n }\n };\n}, process.env.NODE_ENV === \"production\" ? \"\" : \"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi92YXIvYXBwL25vZGVfbW9kdWxlcy9AaW5zdGFjYXJ0L2lwcC1hdXRoLXNlcnZpY2UtdG9vbHMvZGlzdC9hdXRoLXNlcnZpY2UtdG9vbHM1MS5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFTcUIiLCJmaWxlIjoiL3Zhci9hcHAvbm9kZV9tb2R1bGVzL0BpbnN0YWNhcnQvaXBwLWF1dGgtc2VydmljZS10b29scy9kaXN0L2F1dGgtc2VydmljZS10b29sczUxLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsganN4IH0gZnJvbSBcIkBlbW90aW9uL3JlYWN0L2pzeC1ydW50aW1lXCI7XG5pbXBvcnQgeyBmb3J3YXJkUmVmIH0gZnJvbSBcInJlYWN0XCI7XG5pbXBvcnQgc3R5bGVkIGZyb20gXCJAZW1vdGlvbi9zdHlsZWRcIjtcbmltcG9ydCB7IExvYWRpbmdEb3RzIH0gZnJvbSBcIi4vYXV0aC1zZXJ2aWNlLXRvb2xzNTIuanNcIjtcbmltcG9ydCB7IHNwYWNpbmcgfSBmcm9tIFwiLi9hdXRoLXNlcnZpY2UtdG9vbHM0Mi5qc1wiO1xuaW1wb3J0IHsgZm9udF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VkXCI6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBidXR0b25Db2xvcnMuZGlzYWJsZWRCZ0NvbG9yLFxuICAgICAgICBjb2xvcjogY29sb3JzLkdSQVlTQ0FMRS5YMzAsXG4gICAgICAgIGN1cnNvcjogXCJkZWZhdWx0XCIsXG4gICAgICAgIGJvcmRlckNvbG9yOiBidXR0b25Db2xvcnMuZGlzYWJsZWRCb3JkZXJDb2xvclxuICAgICAgfSxcbiAgICAgIFwiJiAubG9hZGluZy1kb3RzLXN2Z1wiOiB7XG4gICAgICAgIGhlaWdodDogZGltZW5zaW9ucy5sb2FkaW5nSGVpZ2h0LFxuICAgICAgICB3aWR0aDogZGltZW5zaW9ucy5sb2FkaW5nV2lkdGhcbiAgICAgIH0sXG4gICAgICBcIiYgLmxvYWRpbmctZG90c1wiOiB7XG4gICAgICAgIGZpbGw6IGJ1dHRvbkNvbG9ycy5mZ0NvbG9yXG4gICAgICB9XG4gICAgfTtcbiAgfVxuKTtcbmNvbnN0IEJ1dHRvbiA9IGZvcndhcmRSZWYoXG4gICh7IHR5cGUgPSBcImJ1dHRvblwiLCBjaGlsZHJlbiwgbG9hZGluZywgY29tcGFjdCwgLi4ucmVzdCB9LCByZWYpID0+IC8qIEBfX1BVUkVfXyAqLyBqc3goU3R5bGVkQnV0dG9uLCB7IHJlZiwgdHlwZSwgY29tcGFjdCwgLi4ucmVzdCwgY2hpbGRyZW46IGxvYWRpbmcgPyAvKiBAX19QVVJFX18gKi8ganN4KExvYWRpbmdEb3RzLCB7IGNlbnRlcmVkOiB0cnVlIH0pIDogY2hpbGRyZW4gfSlcbik7XG5leHBvcnQge1xuICBCdXR0b25cbn07XG4vLyMgc291cmNlTWFwcGluZ1VSTD1hdXRoLXNlcnZpY2UtdG9vbHM1MS5qcy5tYXBcbiJdfQ== */\");\n\nconst Button = /*#__PURE__*/forwardRef((_ref, ref) => {\n let {\n type = \"button\",\n children,\n loading,\n compact,\n ...rest\n } = _ref;\n return /* @__PURE__ */jsx(StyledButton, {\n ref,\n type,\n compact,\n ...rest,\n children: loading ? /* @__PURE__ */jsx(LoadingDots, {\n centered: true\n }) : children\n });\n});\nexport { Button };","import React__default from \"react\";\n\nvar isCheckBoxInput = element => element.type === \"checkbox\";\n\nvar isDateObject = value => value instanceof Date;\n\nvar isNullOrUndefined = value => value == null;\n\nconst isObjectType = value => typeof value === \"object\";\n\nvar isObject = value => !isNullOrUndefined(value) && !Array.isArray(value) && isObjectType(value) && !isDateObject(value);\n\nvar getEventValue = event => isObject(event) && event.target ? isCheckBoxInput(event.target) ? event.target.checked : event.target.value : event;\n\nvar getNodeParentName = name => name.substring(0, name.search(/\\.\\d+(\\.|$)/)) || name;\n\nvar isNameInFieldArray = (names, name) => names.has(getNodeParentName(name));\n\nvar compact = value => Array.isArray(value) ? value.filter(Boolean) : [];\n\nvar isUndefined = val => val === void 0;\n\nvar get = (obj, path, defaultValue) => {\n if (!path || !isObject(obj)) {\n return defaultValue;\n }\n\n const result = compact(path.split(/[,[\\].]+?/)).reduce((result2, key) => isNullOrUndefined(result2) ? result2 : result2[key], obj);\n return isUndefined(result) || result === obj ? isUndefined(obj[path]) ? defaultValue : obj[path] : result;\n};\n\nconst EVENTS = {\n BLUR: \"blur\",\n FOCUS_OUT: \"focusout\",\n CHANGE: \"change\"\n};\nconst VALIDATION_MODE = {\n onBlur: \"onBlur\",\n onChange: \"onChange\",\n onSubmit: \"onSubmit\",\n onTouched: \"onTouched\",\n all: \"all\"\n};\nconst INPUT_VALIDATION_RULES = {\n max: \"max\",\n min: \"min\",\n maxLength: \"maxLength\",\n minLength: \"minLength\",\n pattern: \"pattern\",\n required: \"required\",\n validate: \"validate\"\n};\nconst HookFormContext = /*#__PURE__*/React__default.createContext(null);\n\nconst useFormContext = () => React__default.useContext(HookFormContext);\n\nconst FormProvider = props => {\n const {\n children,\n ...data\n } = props;\n return /*#__PURE__*/React__default.createElement(HookFormContext.Provider, {\n value: data\n }, children);\n};\n\nvar getProxyFormState = function (formState, _proxyFormState, localProxyFormState) {\n let isRoot = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;\n const result = {};\n\n for (const key in formState) {\n Object.defineProperty(result, key, {\n get: () => {\n const _key = key;\n\n if (_proxyFormState[_key] !== VALIDATION_MODE.all) {\n _proxyFormState[_key] = !isRoot || VALIDATION_MODE.all;\n }\n\n localProxyFormState && (localProxyFormState[_key] = true);\n return formState[_key];\n }\n });\n }\n\n return result;\n};\n\nvar isEmptyObject = value => isObject(value) && !Object.keys(value).length;\n\nvar shouldRenderFormState = (formStateData, _proxyFormState, isRoot) => {\n const {\n name,\n ...formState\n } = formStateData;\n return isEmptyObject(formState) || Object.keys(formState).length >= Object.keys(_proxyFormState).length || Object.keys(formState).find(key => _proxyFormState[key] === (!isRoot || VALIDATION_MODE.all));\n};\n\nvar convertToArrayPayload = value => Array.isArray(value) ? value : [value];\n\nvar shouldSubscribeByName = (name, signalName, exact) => exact && signalName ? name === signalName : !name || !signalName || name === signalName || convertToArrayPayload(name).some(currentName => currentName && (currentName.startsWith(signalName) || signalName.startsWith(currentName)));\n\nfunction useSubscribe(props) {\n const _props = React__default.useRef(props);\n\n _props.current = props;\n React__default.useEffect(() => {\n const tearDown = subscription2 => {\n if (subscription2) {\n subscription2.unsubscribe();\n }\n };\n\n const subscription = !props.disabled && _props.current.subject.subscribe({\n next: _props.current.callback\n });\n\n return () => tearDown(subscription);\n }, [props.disabled]);\n}\n\nfunction useFormState(props) {\n const methods = useFormContext();\n const {\n control = methods.control,\n disabled,\n name,\n exact\n } = props || {};\n const [formState, updateFormState] = React__default.useState(control._formState);\n\n const _localProxyFormState = React__default.useRef({\n isDirty: false,\n dirtyFields: false,\n touchedFields: false,\n isValidating: false,\n isValid: false,\n errors: false\n });\n\n const _name = React__default.useRef(name);\n\n const _mounted = React__default.useRef(true);\n\n _name.current = name;\n const callback = React__default.useCallback(value => _mounted.current && shouldSubscribeByName(_name.current, value.name, exact) && shouldRenderFormState(value, _localProxyFormState.current) && updateFormState({ ...control._formState,\n ...value\n }), [control, exact]);\n useSubscribe({\n disabled,\n callback,\n subject: control._subjects.state\n });\n React__default.useEffect(() => {\n _mounted.current = true;\n return () => {\n _mounted.current = false;\n };\n }, []);\n return getProxyFormState(formState, control._proxyFormState, _localProxyFormState.current, false);\n}\n\nvar isString = value => typeof value === \"string\";\n\nvar generateWatchOutput = (names, _names, formValues, isGlobal) => {\n const isArray = Array.isArray(names);\n\n if (isString(names)) {\n isGlobal && _names.watch.add(names);\n return get(formValues, names);\n }\n\n if (isArray) {\n return names.map(fieldName => (isGlobal && _names.watch.add(fieldName), get(formValues, fieldName)));\n }\n\n isGlobal && (_names.watchAll = true);\n return formValues;\n};\n\nvar isFunction = value => typeof value === \"function\";\n\nvar objectHasFunction = data => {\n for (const key in data) {\n if (isFunction(data[key])) {\n return true;\n }\n }\n\n return false;\n};\n\nfunction useWatch(props) {\n const methods = useFormContext();\n const {\n control = methods.control,\n name,\n defaultValue,\n disabled,\n exact\n } = props || {};\n\n const _name = React__default.useRef(name);\n\n _name.current = name;\n const callback = React__default.useCallback(formState => {\n if (shouldSubscribeByName(_name.current, formState.name, exact)) {\n const fieldValues = generateWatchOutput(_name.current, control._names, formState.values || control._formValues);\n updateValue(isUndefined(_name.current) || isObject(fieldValues) && !objectHasFunction(fieldValues) ? { ...fieldValues\n } : Array.isArray(fieldValues) ? [...fieldValues] : isUndefined(fieldValues) ? defaultValue : fieldValues);\n }\n }, [control, exact, defaultValue]);\n useSubscribe({\n disabled,\n subject: control._subjects.watch,\n callback\n });\n const [value, updateValue] = React__default.useState(isUndefined(defaultValue) ? control._getWatch(name) : defaultValue);\n React__default.useEffect(() => {\n control._removeUnmounted();\n });\n return value;\n}\n\nfunction useController(props) {\n const methods = useFormContext();\n const {\n name,\n control = methods.control,\n shouldUnregister\n } = props;\n const isArrayField = isNameInFieldArray(control._names.array, name);\n const value = useWatch({\n control,\n name,\n defaultValue: get(control._formValues, name, get(control._defaultValues, name, props.defaultValue)),\n exact: true\n });\n const formState = useFormState({\n control,\n name\n });\n\n const _registerProps = React__default.useRef(control.register(name, { ...props.rules,\n value\n }));\n\n React__default.useEffect(() => {\n const updateMounted = (name2, value2) => {\n const field = get(control._fields, name2);\n\n if (field) {\n field._f.mount = value2;\n }\n };\n\n updateMounted(name, true);\n return () => {\n const _shouldUnregisterField = control._options.shouldUnregister || shouldUnregister;\n\n (isArrayField ? _shouldUnregisterField && !control._stateFlags.action : _shouldUnregisterField) ? control.unregister(name) : updateMounted(name, false);\n };\n }, [name, control, isArrayField, shouldUnregister]);\n return {\n field: {\n name,\n value,\n onChange: React__default.useCallback(event => {\n _registerProps.current.onChange({\n target: {\n value: getEventValue(event),\n name\n },\n type: EVENTS.CHANGE\n });\n }, [name]),\n onBlur: React__default.useCallback(() => {\n _registerProps.current.onBlur({\n target: {\n value: get(control._formValues, name),\n name\n },\n type: EVENTS.BLUR\n });\n }, [name, control]),\n ref: React__default.useCallback(elm => {\n const field = get(control._fields, name);\n\n if (elm && field && elm.focus) {\n field._f.ref = {\n focus: () => elm.focus(),\n select: () => elm.select(),\n setCustomValidity: message => elm.setCustomValidity(message),\n reportValidity: () => elm.reportValidity()\n };\n }\n }, [name, control._fields])\n },\n formState,\n fieldState: Object.defineProperties({}, {\n invalid: {\n get: () => !!get(formState.errors, name)\n },\n isDirty: {\n get: () => !!get(formState.dirtyFields, name)\n },\n isTouched: {\n get: () => !!get(formState.touchedFields, name)\n },\n error: {\n get: () => get(formState.errors, name)\n }\n })\n };\n}\n\nconst Controller = props => props.render(useController(props));\n\nvar appendErrors = (name, validateAllFieldCriteria, errors, type, message) => validateAllFieldCriteria ? { ...errors[name],\n types: { ...(errors[name] && errors[name].types ? errors[name].types : {}),\n [type]: message || true\n }\n} : {};\n\nvar isKey = value => /^\\w*$/.test(value);\n\nvar stringToPath = input => compact(input.replace(/[\"|']|\\]/g, \"\").split(/\\.|\\[/));\n\nfunction set(object, path, value) {\n let index = -1;\n const tempPath = isKey(path) ? [path] : stringToPath(path);\n const length = tempPath.length;\n const lastIndex = length - 1;\n\n while (++index < length) {\n const key = tempPath[index];\n let newValue = value;\n\n if (index !== lastIndex) {\n const objValue = object[key];\n newValue = isObject(objValue) || Array.isArray(objValue) ? objValue : !isNaN(+tempPath[index + 1]) ? [] : {};\n }\n\n object[key] = newValue;\n object = object[key];\n }\n\n return object;\n}\n\nconst focusFieldBy = (fields, callback, fieldsNames) => {\n for (const key of fieldsNames || Object.keys(fields)) {\n const field = get(fields, key);\n\n if (field) {\n const {\n _f,\n ...currentField\n } = field;\n\n if (_f && callback(_f.name)) {\n if (_f.ref.focus && isUndefined(_f.ref.focus())) {\n break;\n } else if (_f.refs) {\n _f.refs[0].focus();\n\n break;\n }\n } else if (isObject(currentField)) {\n focusFieldBy(currentField, callback);\n }\n }\n }\n};\n\nvar isWatched = (name, _names, isBlurEvent) => !isBlurEvent && (_names.watchAll || _names.watch.has(name) || [..._names.watch].some(watchName => name.startsWith(watchName) && /^\\.\\w+/.test(name.slice(watchName.length))));\n\nvar updateFieldArrayRootError = (errors, error, name) => {\n const fieldArrayErrors = compact(get(errors, name));\n set(fieldArrayErrors, \"root\", error[name]);\n set(errors, name, fieldArrayErrors);\n return errors;\n};\n\nvar isBoolean = value => typeof value === \"boolean\";\n\nvar isFileInput = element => element.type === \"file\";\n\nvar isMessage = value => isString(value) || /*#__PURE__*/React__default.isValidElement(value);\n\nvar isRadioInput = element => element.type === \"radio\";\n\nvar isRegex = value => value instanceof RegExp;\n\nconst defaultResult = {\n value: false,\n isValid: false\n};\nconst validResult = {\n value: true,\n isValid: true\n};\n\nvar getCheckboxValue = options => {\n if (Array.isArray(options)) {\n if (options.length > 1) {\n const values = options.filter(option => option && option.checked && !option.disabled).map(option => option.value);\n return {\n value: values,\n isValid: !!values.length\n };\n }\n\n return options[0].checked && !options[0].disabled ? // @ts-expect-error expected to work in the browser\n options[0].attributes && !isUndefined(options[0].attributes.value) ? isUndefined(options[0].value) || options[0].value === \"\" ? validResult : {\n value: options[0].value,\n isValid: true\n } : validResult : defaultResult;\n }\n\n return defaultResult;\n};\n\nconst defaultReturn = {\n isValid: false,\n value: null\n};\n\nvar getRadioValue = options => Array.isArray(options) ? options.reduce((previous, option) => option && option.checked && !option.disabled ? {\n isValid: true,\n value: option.value\n} : previous, defaultReturn) : defaultReturn;\n\nfunction getValidateError(result, ref) {\n let type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : \"validate\";\n\n if (isMessage(result) || Array.isArray(result) && result.every(isMessage) || isBoolean(result) && !result) {\n return {\n type,\n message: isMessage(result) ? result : \"\",\n ref\n };\n }\n}\n\nvar getValueAndMessage = validationData => isObject(validationData) && !isRegex(validationData) ? validationData : {\n value: validationData,\n message: \"\"\n};\n\nvar validateField = async (field, inputValue, validateAllFieldCriteria, shouldUseNativeValidation, isFieldArray) => {\n const {\n ref,\n refs,\n required,\n maxLength,\n minLength,\n min,\n max,\n pattern,\n validate,\n name,\n valueAsNumber,\n mount,\n disabled\n } = field._f;\n\n if (!mount || disabled) {\n return {};\n }\n\n const inputRef = refs ? refs[0] : ref;\n\n const setCustomValidity = message => {\n if (shouldUseNativeValidation && inputRef.reportValidity) {\n inputRef.setCustomValidity(isBoolean(message) ? \"\" : message || \" \");\n inputRef.reportValidity();\n }\n };\n\n const error = {};\n const isRadio = isRadioInput(ref);\n const isCheckBox = isCheckBoxInput(ref);\n const isRadioOrCheckbox2 = isRadio || isCheckBox;\n const isEmpty = (valueAsNumber || isFileInput(ref)) && !ref.value || inputValue === \"\" || Array.isArray(inputValue) && !inputValue.length;\n const appendErrorsCurry = appendErrors.bind(null, name, validateAllFieldCriteria, error);\n\n const getMinMaxMessage = function (exceedMax, maxLengthMessage, minLengthMessage) {\n let maxType = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : INPUT_VALIDATION_RULES.maxLength;\n let minType = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : INPUT_VALIDATION_RULES.minLength;\n const message = exceedMax ? maxLengthMessage : minLengthMessage;\n error[name] = {\n type: exceedMax ? maxType : minType,\n message,\n ref,\n ...appendErrorsCurry(exceedMax ? maxType : minType, message)\n };\n };\n\n if (isFieldArray ? !Array.isArray(inputValue) || !inputValue.length : required && (!isRadioOrCheckbox2 && (isEmpty || isNullOrUndefined(inputValue)) || isBoolean(inputValue) && !inputValue || isCheckBox && !getCheckboxValue(refs).isValid || isRadio && !getRadioValue(refs).isValid)) {\n const {\n value,\n message\n } = isMessage(required) ? {\n value: !!required,\n message: required\n } : getValueAndMessage(required);\n\n if (value) {\n error[name] = {\n type: INPUT_VALIDATION_RULES.required,\n message,\n ref: inputRef,\n ...appendErrorsCurry(INPUT_VALIDATION_RULES.required, message)\n };\n\n if (!validateAllFieldCriteria) {\n setCustomValidity(message);\n return error;\n }\n }\n }\n\n if (!isEmpty && (!isNullOrUndefined(min) || !isNullOrUndefined(max))) {\n let exceedMax;\n let exceedMin;\n const maxOutput = getValueAndMessage(max);\n const minOutput = getValueAndMessage(min);\n\n if (!isNullOrUndefined(inputValue) && !isNaN(inputValue)) {\n const valueNumber = ref.valueAsNumber || +inputValue;\n\n if (!isNullOrUndefined(maxOutput.value)) {\n exceedMax = valueNumber > maxOutput.value;\n }\n\n if (!isNullOrUndefined(minOutput.value)) {\n exceedMin = valueNumber < minOutput.value;\n }\n } else {\n const valueDate = ref.valueAsDate || new Date(inputValue);\n\n if (isString(maxOutput.value)) {\n exceedMax = valueDate > new Date(maxOutput.value);\n }\n\n if (isString(minOutput.value)) {\n exceedMin = valueDate < new Date(minOutput.value);\n }\n }\n\n if (exceedMax || exceedMin) {\n getMinMaxMessage(!!exceedMax, maxOutput.message, minOutput.message, INPUT_VALIDATION_RULES.max, INPUT_VALIDATION_RULES.min);\n\n if (!validateAllFieldCriteria) {\n setCustomValidity(error[name].message);\n return error;\n }\n }\n }\n\n if ((maxLength || minLength) && !isEmpty && (isString(inputValue) || isFieldArray && Array.isArray(inputValue))) {\n const maxLengthOutput = getValueAndMessage(maxLength);\n const minLengthOutput = getValueAndMessage(minLength);\n const exceedMax = !isNullOrUndefined(maxLengthOutput.value) && inputValue.length > maxLengthOutput.value;\n const exceedMin = !isNullOrUndefined(minLengthOutput.value) && inputValue.length < minLengthOutput.value;\n\n if (exceedMax || exceedMin) {\n getMinMaxMessage(exceedMax, maxLengthOutput.message, minLengthOutput.message);\n\n if (!validateAllFieldCriteria) {\n setCustomValidity(error[name].message);\n return error;\n }\n }\n }\n\n if (pattern && !isEmpty && isString(inputValue)) {\n const {\n value: patternValue,\n message\n } = getValueAndMessage(pattern);\n\n if (isRegex(patternValue) && !inputValue.match(patternValue)) {\n error[name] = {\n type: INPUT_VALIDATION_RULES.pattern,\n message,\n ref,\n ...appendErrorsCurry(INPUT_VALIDATION_RULES.pattern, message)\n };\n\n if (!validateAllFieldCriteria) {\n setCustomValidity(message);\n return error;\n }\n }\n }\n\n if (validate) {\n if (isFunction(validate)) {\n const result = await validate(inputValue);\n const validateError = getValidateError(result, inputRef);\n\n if (validateError) {\n error[name] = { ...validateError,\n ...appendErrorsCurry(INPUT_VALIDATION_RULES.validate, validateError.message)\n };\n\n if (!validateAllFieldCriteria) {\n setCustomValidity(validateError.message);\n return error;\n }\n }\n } else if (isObject(validate)) {\n let validationResult = {};\n\n for (const key in validate) {\n if (!isEmptyObject(validationResult) && !validateAllFieldCriteria) {\n break;\n }\n\n const validateError = getValidateError(await validate[key](inputValue), inputRef, key);\n\n if (validateError) {\n validationResult = { ...validateError,\n ...appendErrorsCurry(key, validateError.message)\n };\n setCustomValidity(validateError.message);\n\n if (validateAllFieldCriteria) {\n error[name] = validationResult;\n }\n }\n }\n\n if (!isEmptyObject(validationResult)) {\n error[name] = {\n ref: inputRef,\n ...validationResult\n };\n\n if (!validateAllFieldCriteria) {\n return error;\n }\n }\n }\n }\n\n setCustomValidity(true);\n return error;\n};\n\nvar isWeb = typeof window !== \"undefined\" && typeof window.HTMLElement !== \"undefined\" && typeof document !== \"undefined\";\n\nfunction cloneObject(data) {\n let copy;\n const isArray = Array.isArray(data);\n\n if (data instanceof Date) {\n copy = new Date(data);\n } else if (data instanceof Set) {\n copy = new Set(data);\n } else if (!(isWeb && (data instanceof Blob || data instanceof FileList)) && (isArray || isObject(data))) {\n copy = isArray ? [] : {};\n\n for (const key in data) {\n if (isFunction(data[key])) {\n copy = data;\n break;\n }\n\n copy[key] = cloneObject(data[key]);\n }\n } else {\n return data;\n }\n\n return copy;\n}\n\nvar getValidationModes = mode => ({\n isOnSubmit: !mode || mode === VALIDATION_MODE.onSubmit,\n isOnBlur: mode === VALIDATION_MODE.onBlur,\n isOnChange: mode === VALIDATION_MODE.onChange,\n isOnAll: mode === VALIDATION_MODE.all,\n isOnTouch: mode === VALIDATION_MODE.onTouched\n});\n\nfunction baseGet(object, updatePath) {\n const length = updatePath.slice(0, -1).length;\n let index = 0;\n\n while (index < length) {\n object = isUndefined(object) ? index++ : object[updatePath[index++]];\n }\n\n return object;\n}\n\nfunction isEmptyArray(obj) {\n for (const key in obj) {\n if (!isUndefined(obj[key])) {\n return false;\n }\n }\n\n return true;\n}\n\nfunction unset(object, path) {\n const updatePath = isKey(path) ? [path] : stringToPath(path);\n const childObject = updatePath.length == 1 ? object : baseGet(object, updatePath);\n const key = updatePath[updatePath.length - 1];\n let previousObjRef;\n\n if (childObject) {\n delete childObject[key];\n }\n\n for (let k = 0; k < updatePath.slice(0, -1).length; k++) {\n let index = -1;\n let objectRef;\n const currentPaths = updatePath.slice(0, -(k + 1));\n const currentPathsLength = currentPaths.length - 1;\n\n if (k > 0) {\n previousObjRef = object;\n }\n\n while (++index < currentPaths.length) {\n const item = currentPaths[index];\n objectRef = objectRef ? objectRef[item] : object[item];\n\n if (currentPathsLength === index && (isObject(objectRef) && isEmptyObject(objectRef) || Array.isArray(objectRef) && isEmptyArray(objectRef))) {\n previousObjRef ? delete previousObjRef[item] : delete object[item];\n }\n\n previousObjRef = objectRef;\n }\n }\n\n return object;\n}\n\nfunction createSubject() {\n let _observers = [];\n\n const next = value => {\n for (const observer of _observers) {\n observer.next(value);\n }\n };\n\n const subscribe = observer => {\n _observers.push(observer);\n\n return {\n unsubscribe: () => {\n _observers = _observers.filter(o => o !== observer);\n }\n };\n };\n\n const unsubscribe = () => {\n _observers = [];\n };\n\n return {\n get observers() {\n return _observers;\n },\n\n next,\n subscribe,\n unsubscribe\n };\n}\n\nvar isPrimitive = value => isNullOrUndefined(value) || !isObjectType(value);\n\nfunction deepEqual(object1, object2) {\n if (isPrimitive(object1) || isPrimitive(object2)) {\n return object1 === object2;\n }\n\n if (isDateObject(object1) && isDateObject(object2)) {\n return object1.getTime() === object2.getTime();\n }\n\n const keys1 = Object.keys(object1);\n const keys2 = Object.keys(object2);\n\n if (keys1.length !== keys2.length) {\n return false;\n }\n\n for (const key of keys1) {\n const val1 = object1[key];\n\n if (!keys2.includes(key)) {\n return false;\n }\n\n if (key !== \"ref\") {\n const val2 = object2[key];\n\n if (isDateObject(val1) && isDateObject(val2) || isObject(val1) && isObject(val2) || Array.isArray(val1) && Array.isArray(val2) ? !deepEqual(val1, val2) : val1 !== val2) {\n return false;\n }\n }\n }\n\n return true;\n}\n\nvar isHTMLElement = value => {\n const owner = value ? value.ownerDocument : 0;\n const ElementClass = owner && owner.defaultView ? owner.defaultView.HTMLElement : HTMLElement;\n return value instanceof ElementClass;\n};\n\nvar isMultipleSelect = element => element.type === `select-multiple`;\n\nvar isRadioOrCheckbox = ref => isRadioInput(ref) || isCheckBoxInput(ref);\n\nvar live = ref => isHTMLElement(ref) && ref.isConnected;\n\nfunction markFieldsDirty(data) {\n let fields = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n const isParentNodeArray = Array.isArray(data);\n\n if (isObject(data) || isParentNodeArray) {\n for (const key in data) {\n if (Array.isArray(data[key]) || isObject(data[key]) && !objectHasFunction(data[key])) {\n fields[key] = Array.isArray(data[key]) ? [] : {};\n markFieldsDirty(data[key], fields[key]);\n } else if (!isNullOrUndefined(data[key])) {\n fields[key] = true;\n }\n }\n }\n\n return fields;\n}\n\nfunction getDirtyFieldsFromDefaultValues(data, formValues, dirtyFieldsFromValues) {\n const isParentNodeArray = Array.isArray(data);\n\n if (isObject(data) || isParentNodeArray) {\n for (const key in data) {\n if (Array.isArray(data[key]) || isObject(data[key]) && !objectHasFunction(data[key])) {\n if (isUndefined(formValues) || isPrimitive(dirtyFieldsFromValues[key])) {\n dirtyFieldsFromValues[key] = Array.isArray(data[key]) ? markFieldsDirty(data[key], []) : { ...markFieldsDirty(data[key])\n };\n } else {\n getDirtyFieldsFromDefaultValues(data[key], isNullOrUndefined(formValues) ? {} : formValues[key], dirtyFieldsFromValues[key]);\n }\n } else {\n dirtyFieldsFromValues[key] = !deepEqual(data[key], formValues[key]);\n }\n }\n }\n\n return dirtyFieldsFromValues;\n}\n\nvar getDirtyFields = (defaultValues, formValues) => getDirtyFieldsFromDefaultValues(defaultValues, formValues, markFieldsDirty(formValues));\n\nvar getFieldValueAs = (value, _ref) => {\n let {\n valueAsNumber,\n valueAsDate,\n setValueAs\n } = _ref;\n return isUndefined(value) ? value : valueAsNumber ? value === \"\" || isNullOrUndefined(value) ? NaN : +value : valueAsDate && isString(value) ? new Date(value) : setValueAs ? setValueAs(value) : value;\n};\n\nfunction getFieldValue(_f) {\n const ref = _f.ref;\n\n if (_f.refs ? _f.refs.every(ref2 => ref2.disabled) : ref.disabled) {\n return;\n }\n\n if (isFileInput(ref)) {\n return ref.files;\n }\n\n if (isRadioInput(ref)) {\n return getRadioValue(_f.refs).value;\n }\n\n if (isMultipleSelect(ref)) {\n return [...ref.selectedOptions].map((_ref2) => {\n let {\n value\n } = _ref2;\n return value;\n });\n }\n\n if (isCheckBoxInput(ref)) {\n return getCheckboxValue(_f.refs).value;\n }\n\n return getFieldValueAs(isUndefined(ref.value) ? _f.ref.value : ref.value, _f);\n}\n\nvar getResolverOptions = (fieldsNames, _fields, criteriaMode, shouldUseNativeValidation) => {\n const fields = {};\n\n for (const name of fieldsNames) {\n const field = get(_fields, name);\n field && set(fields, name, field._f);\n }\n\n return {\n criteriaMode,\n names: [...fieldsNames],\n fields,\n shouldUseNativeValidation\n };\n};\n\nvar getRuleValue = rule => isUndefined(rule) ? void 0 : isRegex(rule) ? rule.source : isObject(rule) ? isRegex(rule.value) ? rule.value.source : rule.value : rule;\n\nvar hasValidation = options => options.mount && (options.required || options.min || options.max || options.maxLength || options.minLength || options.pattern || options.validate);\n\nfunction schemaErrorLookup(errors, _fields, name) {\n const error = get(errors, name);\n\n if (error || isKey(name)) {\n return {\n error,\n name\n };\n }\n\n const names = name.split(\".\");\n\n while (names.length) {\n const fieldName = names.join(\".\");\n const field = get(_fields, fieldName);\n const foundError = get(errors, fieldName);\n\n if (field && !Array.isArray(field) && name !== fieldName) {\n return {\n name\n };\n }\n\n if (foundError && foundError.type) {\n return {\n name: fieldName,\n error: foundError\n };\n }\n\n names.pop();\n }\n\n return {\n name\n };\n}\n\nvar skipValidation = (isBlurEvent, isTouched, isSubmitted, reValidateMode, mode) => {\n if (mode.isOnAll) {\n return false;\n } else if (!isSubmitted && mode.isOnTouch) {\n return !(isTouched || isBlurEvent);\n } else if (isSubmitted ? reValidateMode.isOnBlur : mode.isOnBlur) {\n return !isBlurEvent;\n } else if (isSubmitted ? reValidateMode.isOnChange : mode.isOnChange) {\n return isBlurEvent;\n }\n\n return true;\n};\n\nvar unsetEmptyArray = (ref, name) => !compact(get(ref, name)).length && unset(ref, name);\n\nconst defaultOptions = {\n mode: VALIDATION_MODE.onSubmit,\n reValidateMode: VALIDATION_MODE.onChange,\n shouldFocusError: true\n};\n\nfunction createFormControl() {\n let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n let _options = { ...defaultOptions,\n ...props\n };\n let _formState = {\n isDirty: false,\n isValidating: false,\n dirtyFields: {},\n isSubmitted: false,\n submitCount: 0,\n touchedFields: {},\n isSubmitting: false,\n isSubmitSuccessful: false,\n isValid: false,\n errors: {}\n };\n let _fields = {};\n\n let _defaultValues = cloneObject(_options.defaultValues) || {};\n\n let _formValues = _options.shouldUnregister ? {} : cloneObject(_defaultValues);\n\n let _stateFlags = {\n action: false,\n mount: false,\n watch: false\n };\n let _names = {\n mount: /* @__PURE__ */new Set(),\n unMount: /* @__PURE__ */new Set(),\n array: /* @__PURE__ */new Set(),\n watch: /* @__PURE__ */new Set()\n };\n let delayErrorCallback;\n let timer = 0;\n let validateFields = {};\n const _proxyFormState = {\n isDirty: false,\n dirtyFields: false,\n touchedFields: false,\n isValidating: false,\n isValid: false,\n errors: false\n };\n const _subjects = {\n watch: createSubject(),\n array: createSubject(),\n state: createSubject()\n };\n const validationModeBeforeSubmit = getValidationModes(_options.mode);\n const validationModeAfterSubmit = getValidationModes(_options.reValidateMode);\n const shouldDisplayAllAssociatedErrors = _options.criteriaMode === VALIDATION_MODE.all;\n\n const debounce = callback => wait => {\n clearTimeout(timer);\n timer = window.setTimeout(callback, wait);\n };\n\n const _updateValid = async shouldSkipRender => {\n let isValid = false;\n\n if (_proxyFormState.isValid) {\n isValid = _options.resolver ? isEmptyObject((await _executeSchema()).errors) : await executeBuiltInValidation(_fields, true);\n\n if (!shouldSkipRender && isValid !== _formState.isValid) {\n _formState.isValid = isValid;\n\n _subjects.state.next({\n isValid\n });\n }\n }\n\n return isValid;\n };\n\n const _updateFieldArray = function (name) {\n let values = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n let method = arguments.length > 2 ? arguments[2] : undefined;\n let args = arguments.length > 3 ? arguments[3] : undefined;\n let shouldSetValues = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;\n let shouldUpdateFieldsAndState = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : true;\n\n if (args && method) {\n _stateFlags.action = true;\n\n if (shouldUpdateFieldsAndState && Array.isArray(get(_fields, name))) {\n const fieldValues = method(get(_fields, name), args.argA, args.argB);\n shouldSetValues && set(_fields, name, fieldValues);\n }\n\n if (_proxyFormState.errors && shouldUpdateFieldsAndState && Array.isArray(get(_formState.errors, name))) {\n const errors = method(get(_formState.errors, name), args.argA, args.argB);\n shouldSetValues && set(_formState.errors, name, errors);\n unsetEmptyArray(_formState.errors, name);\n }\n\n if (_proxyFormState.touchedFields && shouldUpdateFieldsAndState && Array.isArray(get(_formState.touchedFields, name))) {\n const touchedFields = method(get(_formState.touchedFields, name), args.argA, args.argB);\n shouldSetValues && set(_formState.touchedFields, name, touchedFields);\n }\n\n if (_proxyFormState.dirtyFields) {\n _formState.dirtyFields = getDirtyFields(_defaultValues, _formValues);\n }\n\n _subjects.state.next({\n isDirty: _getDirty(name, values),\n dirtyFields: _formState.dirtyFields,\n errors: _formState.errors,\n isValid: _formState.isValid\n });\n } else {\n set(_formValues, name, values);\n }\n };\n\n const updateErrors = (name, error) => {\n set(_formState.errors, name, error);\n\n _subjects.state.next({\n errors: _formState.errors\n });\n };\n\n const updateValidAndValue = (name, shouldSkipSetValueAs, value, ref) => {\n const field = get(_fields, name);\n\n if (field) {\n const defaultValue = get(_formValues, name, isUndefined(value) ? get(_defaultValues, name) : value);\n isUndefined(defaultValue) || ref && ref.defaultChecked || shouldSkipSetValueAs ? set(_formValues, name, shouldSkipSetValueAs ? defaultValue : getFieldValue(field._f)) : setFieldValue(name, defaultValue);\n _stateFlags.mount && _updateValid();\n }\n };\n\n const updateTouchAndDirty = (name, fieldValue, isBlurEvent, shouldDirty, shouldRender) => {\n let isFieldDirty = false;\n const output = {\n name\n };\n const isPreviousFieldTouched = get(_formState.touchedFields, name);\n\n if (_proxyFormState.isDirty) {\n const isPreviousFormDirty = _formState.isDirty;\n _formState.isDirty = output.isDirty = _getDirty();\n isFieldDirty = isPreviousFormDirty !== output.isDirty;\n }\n\n if (_proxyFormState.dirtyFields && (!isBlurEvent || shouldDirty)) {\n const isPreviousFieldDirty = get(_formState.dirtyFields, name);\n const isCurrentFieldPristine = deepEqual(get(_defaultValues, name), fieldValue);\n isCurrentFieldPristine ? unset(_formState.dirtyFields, name) : set(_formState.dirtyFields, name, true);\n output.dirtyFields = _formState.dirtyFields;\n isFieldDirty = isFieldDirty || isPreviousFieldDirty !== get(_formState.dirtyFields, name);\n }\n\n if (isBlurEvent && !isPreviousFieldTouched) {\n set(_formState.touchedFields, name, isBlurEvent);\n output.touchedFields = _formState.touchedFields;\n isFieldDirty = isFieldDirty || _proxyFormState.touchedFields && isPreviousFieldTouched !== isBlurEvent;\n }\n\n isFieldDirty && shouldRender && _subjects.state.next(output);\n return isFieldDirty ? output : {};\n };\n\n const shouldRenderByError = async (name, isValid, error, fieldState) => {\n const previousFieldError = get(_formState.errors, name);\n const shouldUpdateValid = _proxyFormState.isValid && _formState.isValid !== isValid;\n\n if (props.delayError && error) {\n delayErrorCallback = debounce(() => updateErrors(name, error));\n delayErrorCallback(props.delayError);\n } else {\n clearTimeout(timer);\n delayErrorCallback = null;\n error ? set(_formState.errors, name, error) : unset(_formState.errors, name);\n }\n\n if ((error ? !deepEqual(previousFieldError, error) : previousFieldError) || !isEmptyObject(fieldState) || shouldUpdateValid) {\n const updatedFormState = { ...fieldState,\n ...(shouldUpdateValid ? {\n isValid\n } : {}),\n errors: _formState.errors,\n name\n };\n _formState = { ..._formState,\n ...updatedFormState\n };\n\n _subjects.state.next(updatedFormState);\n }\n\n validateFields[name]--;\n\n if (_proxyFormState.isValidating && !Object.values(validateFields).some(v => v)) {\n _subjects.state.next({\n isValidating: false\n });\n\n validateFields = {};\n }\n };\n\n const _executeSchema = async name => _options.resolver ? await _options.resolver({ ..._formValues\n }, _options.context, getResolverOptions(name || _names.mount, _fields, _options.criteriaMode, _options.shouldUseNativeValidation)) : {};\n\n const executeSchemaAndUpdateState = async names => {\n const {\n errors\n } = await _executeSchema();\n\n if (names) {\n for (const name of names) {\n const error = get(errors, name);\n error ? set(_formState.errors, name, error) : unset(_formState.errors, name);\n }\n } else {\n _formState.errors = errors;\n }\n\n return errors;\n };\n\n const executeBuiltInValidation = async function (fields, shouldOnlyCheckValid) {\n let context = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {\n valid: true\n };\n\n for (const name in fields) {\n const field = fields[name];\n\n if (field) {\n const {\n _f,\n ...fieldValue\n } = field;\n\n if (_f) {\n const isFieldArrayRoot = _names.array.has(_f.name);\n\n const fieldError = await validateField(field, get(_formValues, _f.name), shouldDisplayAllAssociatedErrors, _options.shouldUseNativeValidation, isFieldArrayRoot);\n\n if (fieldError[_f.name]) {\n context.valid = false;\n\n if (shouldOnlyCheckValid) {\n break;\n }\n }\n\n !shouldOnlyCheckValid && (get(fieldError, _f.name) ? isFieldArrayRoot ? updateFieldArrayRootError(_formState.errors, fieldError, _f.name) : set(_formState.errors, _f.name, fieldError[_f.name]) : unset(_formState.errors, _f.name));\n }\n\n fieldValue && (await executeBuiltInValidation(fieldValue, shouldOnlyCheckValid, context));\n }\n }\n\n return context.valid;\n };\n\n const _removeUnmounted = () => {\n for (const name of _names.unMount) {\n const field = get(_fields, name);\n field && (field._f.refs ? field._f.refs.every(ref => !live(ref)) : !live(field._f.ref)) && unregister(name);\n }\n\n _names.unMount = /* @__PURE__ */new Set();\n };\n\n const _getDirty = (name, data) => (name && data && set(_formValues, name, data), !deepEqual(getValues(), _defaultValues));\n\n const _getWatch = (names, defaultValue, isGlobal) => {\n const fieldValues = { ...(_stateFlags.mount ? _formValues : isUndefined(defaultValue) ? _defaultValues : isString(names) ? {\n [names]: defaultValue\n } : defaultValue)\n };\n return generateWatchOutput(names, _names, fieldValues, isGlobal);\n };\n\n const _getFieldArray = name => compact(get(_stateFlags.mount ? _formValues : _defaultValues, name, props.shouldUnregister ? get(_defaultValues, name, []) : []));\n\n const setFieldValue = function (name, value) {\n let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n const field = get(_fields, name);\n let fieldValue = value;\n\n if (field) {\n const fieldReference = field._f;\n\n if (fieldReference) {\n !fieldReference.disabled && set(_formValues, name, getFieldValueAs(value, fieldReference));\n fieldValue = isWeb && isHTMLElement(fieldReference.ref) && isNullOrUndefined(value) ? \"\" : value;\n\n if (isMultipleSelect(fieldReference.ref)) {\n [...fieldReference.ref.options].forEach(selectRef => selectRef.selected = fieldValue.includes(selectRef.value));\n } else if (fieldReference.refs) {\n if (isCheckBoxInput(fieldReference.ref)) {\n fieldReference.refs.length > 1 ? fieldReference.refs.forEach(checkboxRef => !checkboxRef.disabled && (checkboxRef.checked = Array.isArray(fieldValue) ? !!fieldValue.find(data => data === checkboxRef.value) : fieldValue === checkboxRef.value)) : fieldReference.refs[0] && (fieldReference.refs[0].checked = !!fieldValue);\n } else {\n fieldReference.refs.forEach(radioRef => radioRef.checked = radioRef.value === fieldValue);\n }\n } else if (isFileInput(fieldReference.ref)) {\n fieldReference.ref.value = \"\";\n } else {\n fieldReference.ref.value = fieldValue;\n\n if (!fieldReference.ref.type) {\n _subjects.watch.next({\n name\n });\n }\n }\n }\n }\n\n (options.shouldDirty || options.shouldTouch) && updateTouchAndDirty(name, fieldValue, options.shouldTouch, options.shouldDirty, true);\n options.shouldValidate && trigger(name);\n };\n\n const setValues = (name, value, options) => {\n for (const fieldKey in value) {\n const fieldValue = value[fieldKey];\n const fieldName = `${name}.${fieldKey}`;\n const field = get(_fields, fieldName);\n (_names.array.has(name) || !isPrimitive(fieldValue) || field && !field._f) && !isDateObject(fieldValue) ? setValues(fieldName, fieldValue, options) : setFieldValue(fieldName, fieldValue, options);\n }\n };\n\n const setValue = function (name, value) {\n let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n const field = get(_fields, name);\n\n const isFieldArray = _names.array.has(name);\n\n const cloneValue = cloneObject(value);\n set(_formValues, name, cloneValue);\n\n if (isFieldArray) {\n _subjects.array.next({\n name,\n values: _formValues\n });\n\n if ((_proxyFormState.isDirty || _proxyFormState.dirtyFields) && options.shouldDirty) {\n _formState.dirtyFields = getDirtyFields(_defaultValues, _formValues);\n\n _subjects.state.next({\n name,\n dirtyFields: _formState.dirtyFields,\n isDirty: _getDirty(name, cloneValue)\n });\n }\n } else {\n field && !field._f && !isNullOrUndefined(cloneValue) ? setValues(name, cloneValue, options) : setFieldValue(name, cloneValue, options);\n }\n\n isWatched(name, _names) && _subjects.state.next({});\n\n _subjects.watch.next({\n name\n });\n };\n\n const onChange = async event => {\n const target = event.target;\n let name = target.name;\n const field = get(_fields, name);\n\n if (field) {\n let error;\n let isValid;\n const fieldValue = target.type ? getFieldValue(field._f) : getEventValue(event);\n const isBlurEvent = event.type === EVENTS.BLUR || event.type === EVENTS.FOCUS_OUT;\n const shouldSkipValidation = !hasValidation(field._f) && !_options.resolver && !get(_formState.errors, name) && !field._f.deps || skipValidation(isBlurEvent, get(_formState.touchedFields, name), _formState.isSubmitted, validationModeAfterSubmit, validationModeBeforeSubmit);\n const watched = isWatched(name, _names, isBlurEvent);\n set(_formValues, name, fieldValue);\n\n if (isBlurEvent) {\n field._f.onBlur && field._f.onBlur(event);\n delayErrorCallback && delayErrorCallback(0);\n } else if (field._f.onChange) {\n field._f.onChange(event);\n }\n\n const fieldState = updateTouchAndDirty(name, fieldValue, isBlurEvent, false);\n const shouldRender = !isEmptyObject(fieldState) || watched;\n !isBlurEvent && _subjects.watch.next({\n name,\n type: event.type\n });\n\n if (shouldSkipValidation) {\n return shouldRender && _subjects.state.next({\n name,\n ...(watched ? {} : fieldState)\n });\n }\n\n !isBlurEvent && watched && _subjects.state.next({});\n validateFields[name] = validateFields[name] ? 1 : 1;\n\n _subjects.state.next({\n isValidating: true\n });\n\n if (_options.resolver) {\n const {\n errors\n } = await _executeSchema([name]);\n const previousErrorLookupResult = schemaErrorLookup(_formState.errors, _fields, name);\n const errorLookupResult = schemaErrorLookup(errors, _fields, previousErrorLookupResult.name || name);\n error = errorLookupResult.error;\n name = errorLookupResult.name;\n isValid = isEmptyObject(errors);\n } else {\n error = (await validateField(field, get(_formValues, name), shouldDisplayAllAssociatedErrors, _options.shouldUseNativeValidation))[name];\n isValid = await _updateValid(true);\n }\n\n field._f.deps && trigger(field._f.deps);\n shouldRenderByError(name, isValid, error, fieldState);\n }\n };\n\n const trigger = async function (name) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n let isValid;\n let validationResult;\n const fieldNames = convertToArrayPayload(name);\n\n _subjects.state.next({\n isValidating: true\n });\n\n if (_options.resolver) {\n const errors = await executeSchemaAndUpdateState(isUndefined(name) ? name : fieldNames);\n isValid = isEmptyObject(errors);\n validationResult = name ? !fieldNames.some(name2 => get(errors, name2)) : isValid;\n } else if (name) {\n validationResult = (await Promise.all(fieldNames.map(async fieldName => {\n const field = get(_fields, fieldName);\n return await executeBuiltInValidation(field && field._f ? {\n [fieldName]: field\n } : field);\n }))).every(Boolean);\n !(!validationResult && !_formState.isValid) && _updateValid();\n } else {\n validationResult = isValid = await executeBuiltInValidation(_fields);\n }\n\n _subjects.state.next({ ...(!isString(name) || _proxyFormState.isValid && isValid !== _formState.isValid ? {} : {\n name\n }),\n ...(_options.resolver ? {\n isValid\n } : {}),\n errors: _formState.errors,\n isValidating: false\n });\n\n options.shouldFocus && !validationResult && focusFieldBy(_fields, key => get(_formState.errors, key), name ? fieldNames : _names.mount);\n return validationResult;\n };\n\n const getValues = fieldNames => {\n const values = { ..._defaultValues,\n ...(_stateFlags.mount ? _formValues : {})\n };\n return isUndefined(fieldNames) ? values : isString(fieldNames) ? get(values, fieldNames) : fieldNames.map(name => get(values, name));\n };\n\n const getFieldState = (name, formState) => ({\n invalid: !!get((formState || _formState).errors, name),\n isDirty: !!get((formState || _formState).dirtyFields, name),\n isTouched: !!get((formState || _formState).touchedFields, name),\n error: get((formState || _formState).errors, name)\n });\n\n const clearErrors = name => {\n name ? convertToArrayPayload(name).forEach(inputName => unset(_formState.errors, inputName)) : _formState.errors = {};\n\n _subjects.state.next({\n errors: _formState.errors\n });\n };\n\n const setError = (name, error, options) => {\n const ref = (get(_fields, name, {\n _f: {}\n })._f || {}).ref;\n set(_formState.errors, name, { ...error,\n ref\n });\n\n _subjects.state.next({\n name,\n errors: _formState.errors,\n isValid: false\n });\n\n options && options.shouldFocus && ref && ref.focus && ref.focus();\n };\n\n const watch = (name, defaultValue) => isFunction(name) ? _subjects.watch.subscribe({\n next: info => name(_getWatch(void 0, defaultValue), info)\n }) : _getWatch(name, defaultValue, true);\n\n const unregister = function (name) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n for (const fieldName of name ? convertToArrayPayload(name) : _names.mount) {\n _names.mount.delete(fieldName);\n\n _names.array.delete(fieldName);\n\n if (get(_fields, fieldName)) {\n if (!options.keepValue) {\n unset(_fields, fieldName);\n unset(_formValues, fieldName);\n }\n\n !options.keepError && unset(_formState.errors, fieldName);\n !options.keepDirty && unset(_formState.dirtyFields, fieldName);\n !options.keepTouched && unset(_formState.touchedFields, fieldName);\n !_options.shouldUnregister && !options.keepDefaultValue && unset(_defaultValues, fieldName);\n }\n }\n\n _subjects.watch.next({});\n\n _subjects.state.next({ ..._formState,\n ...(!options.keepDirty ? {} : {\n isDirty: _getDirty()\n })\n });\n\n !options.keepIsValid && _updateValid();\n };\n\n const register = function (name) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n let field = get(_fields, name);\n const disabledIsDefined = isBoolean(options.disabled);\n set(_fields, name, {\n _f: { ...(field && field._f ? field._f : {\n ref: {\n name\n }\n }),\n name,\n mount: true,\n ...options\n }\n });\n\n _names.mount.add(name);\n\n field ? disabledIsDefined && set(_formValues, name, options.disabled ? void 0 : get(_formValues, name, getFieldValue(field._f))) : updateValidAndValue(name, true, options.value);\n return { ...(disabledIsDefined ? {\n disabled: options.disabled\n } : {}),\n ...(_options.shouldUseNativeValidation ? {\n required: !!options.required,\n min: getRuleValue(options.min),\n max: getRuleValue(options.max),\n minLength: getRuleValue(options.minLength),\n maxLength: getRuleValue(options.maxLength),\n pattern: getRuleValue(options.pattern)\n } : {}),\n name,\n onChange,\n onBlur: onChange,\n ref: ref => {\n if (ref) {\n register(name, options);\n field = get(_fields, name);\n const fieldRef = isUndefined(ref.value) ? ref.querySelectorAll ? ref.querySelectorAll(\"input,select,textarea\")[0] || ref : ref : ref;\n const radioOrCheckbox = isRadioOrCheckbox(fieldRef);\n const refs = field._f.refs || [];\n\n if (radioOrCheckbox ? refs.find(option => option === fieldRef) : fieldRef === field._f.ref) {\n return;\n }\n\n set(_fields, name, {\n _f: { ...field._f,\n ...(radioOrCheckbox ? {\n refs: [...refs.filter(live), fieldRef, ...(!!Array.isArray(get(_defaultValues, name)) ? [{}] : [])],\n ref: {\n type: fieldRef.type,\n name\n }\n } : {\n ref: fieldRef\n })\n }\n });\n updateValidAndValue(name, false, void 0, fieldRef);\n } else {\n field = get(_fields, name, {});\n\n if (field._f) {\n field._f.mount = false;\n }\n\n (_options.shouldUnregister || options.shouldUnregister) && !(isNameInFieldArray(_names.array, name) && _stateFlags.action) && _names.unMount.add(name);\n }\n }\n };\n };\n\n const handleSubmit = (onValid, onInvalid) => async e => {\n if (e) {\n e.preventDefault && e.preventDefault();\n e.persist && e.persist();\n }\n\n let hasNoPromiseError = true;\n let fieldValues = cloneObject(_formValues);\n\n _subjects.state.next({\n isSubmitting: true\n });\n\n try {\n if (_options.resolver) {\n const {\n errors,\n values\n } = await _executeSchema();\n _formState.errors = errors;\n fieldValues = values;\n } else {\n await executeBuiltInValidation(_fields);\n }\n\n if (isEmptyObject(_formState.errors)) {\n _subjects.state.next({\n errors: {},\n isSubmitting: true\n });\n\n await onValid(fieldValues, e);\n } else {\n if (onInvalid) {\n await onInvalid({ ..._formState.errors\n }, e);\n }\n\n _options.shouldFocusError && focusFieldBy(_fields, key => get(_formState.errors, key), _names.mount);\n }\n } catch (err) {\n hasNoPromiseError = false;\n throw err;\n } finally {\n _formState.isSubmitted = true;\n\n _subjects.state.next({\n isSubmitted: true,\n isSubmitting: false,\n isSubmitSuccessful: isEmptyObject(_formState.errors) && hasNoPromiseError,\n submitCount: _formState.submitCount + 1,\n errors: _formState.errors\n });\n }\n };\n\n const resetField = function (name) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n if (get(_fields, name)) {\n if (isUndefined(options.defaultValue)) {\n setValue(name, get(_defaultValues, name));\n } else {\n setValue(name, options.defaultValue);\n set(_defaultValues, name, options.defaultValue);\n }\n\n if (!options.keepTouched) {\n unset(_formState.touchedFields, name);\n }\n\n if (!options.keepDirty) {\n unset(_formState.dirtyFields, name);\n _formState.isDirty = options.defaultValue ? _getDirty(name, get(_defaultValues, name)) : _getDirty();\n }\n\n if (!options.keepError) {\n unset(_formState.errors, name);\n _proxyFormState.isValid && _updateValid();\n }\n\n _subjects.state.next({ ..._formState\n });\n }\n };\n\n const reset = function (formValues) {\n let keepStateOptions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n const updatedValues = formValues || _defaultValues;\n const cloneUpdatedValues = cloneObject(updatedValues);\n const values = formValues && !isEmptyObject(formValues) ? cloneUpdatedValues : _defaultValues;\n\n if (!keepStateOptions.keepDefaultValues) {\n _defaultValues = updatedValues;\n }\n\n if (!keepStateOptions.keepValues) {\n if (keepStateOptions.keepDirtyValues) {\n for (const fieldName of _names.mount) {\n get(_formState.dirtyFields, fieldName) ? set(values, fieldName, get(_formValues, fieldName)) : setValue(fieldName, get(values, fieldName));\n }\n } else {\n if (isWeb && isUndefined(formValues)) {\n for (const name of _names.mount) {\n const field = get(_fields, name);\n\n if (field && field._f) {\n const fieldReference = Array.isArray(field._f.refs) ? field._f.refs[0] : field._f.ref;\n\n try {\n if (isHTMLElement(fieldReference)) {\n fieldReference.closest(\"form\").reset();\n break;\n }\n } catch (_a) {}\n }\n }\n }\n\n _fields = {};\n }\n\n _formValues = props.shouldUnregister ? keepStateOptions.keepDefaultValues ? cloneObject(_defaultValues) : {} : cloneUpdatedValues;\n\n _subjects.array.next({\n values\n });\n\n _subjects.watch.next({\n values\n });\n }\n\n _names = {\n mount: /* @__PURE__ */new Set(),\n unMount: /* @__PURE__ */new Set(),\n array: /* @__PURE__ */new Set(),\n watch: /* @__PURE__ */new Set(),\n watchAll: false,\n focus: \"\"\n };\n _stateFlags.mount = !_proxyFormState.isValid || !!keepStateOptions.keepIsValid;\n _stateFlags.watch = !!props.shouldUnregister;\n\n _subjects.state.next({\n submitCount: keepStateOptions.keepSubmitCount ? _formState.submitCount : 0,\n isDirty: keepStateOptions.keepDirty || keepStateOptions.keepDirtyValues ? _formState.isDirty : !!(keepStateOptions.keepDefaultValues && !deepEqual(formValues, _defaultValues)),\n isSubmitted: keepStateOptions.keepIsSubmitted ? _formState.isSubmitted : false,\n dirtyFields: keepStateOptions.keepDirty || keepStateOptions.keepDirtyValues ? _formState.dirtyFields : keepStateOptions.keepDefaultValues && formValues ? getDirtyFields(_defaultValues, formValues) : {},\n touchedFields: keepStateOptions.keepTouched ? _formState.touchedFields : {},\n errors: keepStateOptions.keepErrors ? _formState.errors : {},\n isSubmitting: false,\n isSubmitSuccessful: false\n });\n };\n\n const setFocus = function (name) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n const field = get(_fields, name)._f;\n\n const fieldRef = field.refs ? field.refs[0] : field.ref;\n fieldRef.focus();\n options.shouldSelect && fieldRef.select();\n };\n\n return {\n control: {\n register,\n unregister,\n getFieldState,\n _executeSchema,\n _getWatch,\n _getDirty,\n _updateValid,\n _removeUnmounted,\n _updateFieldArray,\n _getFieldArray,\n _subjects,\n _proxyFormState,\n\n get _fields() {\n return _fields;\n },\n\n get _formValues() {\n return _formValues;\n },\n\n get _stateFlags() {\n return _stateFlags;\n },\n\n set _stateFlags(value) {\n _stateFlags = value;\n },\n\n get _defaultValues() {\n return _defaultValues;\n },\n\n get _names() {\n return _names;\n },\n\n set _names(value) {\n _names = value;\n },\n\n get _formState() {\n return _formState;\n },\n\n set _formState(value) {\n _formState = value;\n },\n\n get _options() {\n return _options;\n },\n\n set _options(value) {\n _options = { ..._options,\n ...value\n };\n }\n\n },\n trigger,\n register,\n handleSubmit,\n watch,\n setValue,\n getValues,\n reset,\n resetField,\n clearErrors,\n unregister,\n setError,\n setFocus,\n getFieldState\n };\n}\n\nfunction useForm() {\n let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n const _formControl = React__default.useRef();\n\n const [formState, updateFormState] = React__default.useState({\n isDirty: false,\n isValidating: false,\n dirtyFields: {},\n isSubmitted: false,\n submitCount: 0,\n touchedFields: {},\n isSubmitting: false,\n isSubmitSuccessful: false,\n isValid: false,\n errors: {}\n });\n\n if (_formControl.current) {\n _formControl.current.control._options = props;\n } else {\n _formControl.current = { ...createFormControl(props),\n formState\n };\n }\n\n const control = _formControl.current.control;\n const callback = React__default.useCallback(value => {\n if (shouldRenderFormState(value, control._proxyFormState, true)) {\n control._formState = { ...control._formState,\n ...value\n };\n updateFormState({ ...control._formState\n });\n }\n }, [control]);\n useSubscribe({\n subject: control._subjects.state,\n callback\n });\n React__default.useEffect(() => {\n if (!control._stateFlags.mount) {\n control._proxyFormState.isValid && control._updateValid();\n control._stateFlags.mount = true;\n }\n\n if (control._stateFlags.watch) {\n control._stateFlags.watch = false;\n\n control._subjects.state.next({});\n }\n\n control._removeUnmounted();\n });\n _formControl.current.formState = getProxyFormState(formState, control._proxyFormState);\n return _formControl.current;\n}\n\nexport { Controller, FormProvider, appendErrors, get, set, useController, useForm, useFormContext, useFormState, useWatch };","import { jsxs, jsx } from \"@emotion/react/jsx-runtime\";\nimport { InformationIcon as InformationIcon_default, ApprovedIcon as ApprovedIcon_default, IssueIcon as IssueIcon_default } from \"./auth-service-tools41.js\";\nimport { css } from \"@emotion/react\";\nimport { spacing } from \"./auth-service-tools42.js\";\nimport { colors } from \"./auth-service-tools43.js\";\nimport { borderRadius } from \"./auth-service-tools53.js\";\nimport { fontSize } from \"./auth-service-tools49.js\";\nconst alertStyles = /*#__PURE__*/css({\n display: \"flex\",\n alignItems: \"center\",\n padding: spacing.X12,\n borderRadius: borderRadius.X8,\n fontSize: fontSize.X15\n}, process.env.NODE_ENV === \"production\" ? \"\" : \";label:alertStyles;\", process.env.NODE_ENV === \"production\" ? \"\" : \"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uI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biAgICBjYXNlIFwic3VjY2Vzc1wiOlxuICAgICAgZHluYW1pY1Byb3BzID0ge1xuICAgICAgICBiYWNrZ3JvdW5kQ29sb3I6IGNvbG9ycy5TVUNDRVNTLkxJR0hULFxuICAgICAgICBpY29uOiAvKiBAX19QVVJFX18gKi8ganN4KEFwcHJvdmVkSWNvbl9kZWZhdWx0LCB7IHNpemU6IGljb25TaXplLCBjb2xvcjogXCJzeXN0ZW1TdWNjZXNzUmVndWxhclwiIH0pXG4gICAgICB9O1xuICAgICAgYnJlYWs7XG4gICAgY2FzZSBcImluZm9cIjpcbiAgICAgIGR5bmFtaWNQcm9wcyA9IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBjb2xvcnMuSElHSExJR0hULkxJR0hULFxuICAgICAgICBpY29uOiAvKiBAX19QVVJFX18gKi8ganN4KEluZm9ybWF0aW9uSWNvbl9kZWZhdWx0LCB7IHNpemU6IGljb25TaXplLCBjb2xvcjogXCJicmFuZEhpZ2hsaWdodFJlZ3VsYXJcIiB9KVxuICAgICAgfTtcbiAgICAgIGJyZWFrO1xuICB9XG4gIHJldHVybiAvKiBAX19QVVJFX18gKi8ganN4cyhcImRpdlwiLCB7IGNzczogY3NzKGFsZXJ0U3R5bGVzLCB7IGJhY2tncm91bmRDb2xvcjogZHluYW1pY1Byb3BzLmJhY2tncm91bmRDb2xvciB9KSwgLi4ucHJvcHMsIGNoaWxkcmVuOiBbXG4gICAgZHluYW1pY1Byb3BzLmljb24sXG4gICAgLyogQF9fUFVSRV9fICovIGpzeChcImRpdlwiLCB7IGNzczogY2hpbGRyZW5XcmFwcGVyLCBjaGlsZHJlbiB9KVxuICBdIH0pO1xufTtcbmV4cG9ydCB7XG4gIEFsZXJ0XG59O1xuLy8jIHNvdXJjZU1hcHBpbmdVUkw9YXV0aC1zZXJ2aWNlLXRvb2xzMTEuanMubWFwXG4iXX0= */\");\nconst childrenWrapper = /*#__PURE__*/css({\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: \"center\",\n paddingLeft: spacing.X8,\n flex: 1\n}, process.env.NODE_ENV === \"production\" ? \"\" : \";label:childrenWrapper;\", process.env.NODE_ENV === \"production\" ? \"\" : \"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi92YXIvYXBwL25vZGVfbW9kdWxlcy9AaW5zdGFjYXJ0L2lwcC1hdXRoLXNlcnZpY2UtdG9vbHMvZGlzdC9hdXRoLXNlcnZpY2UtdG9vbHMxMS5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFjd0IiLCJmaWxlIjoiL3Zhci9hcHAvbm9kZV9tb2R1bGVzL0BpbnN0YWNhcnQvaXBwLWF1dGgtc2VydmljZS10b29scy9kaXN0L2F1dGgtc2VydmljZS10b29sczExLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsganN4cywganN4IH0gZnJvbSBcIkBlbW90aW9uL3JlYWN0L2pzeC1ydW50aW1lXCI7XG5pbXBvcnQgeyBJbmZvcm1hdGlvbkljb24gYXMgSW5mb3JtYXRpb25JY29uX2RlZmF1bHQsIEFwcHJvdmVkSWNvbiBhcyBBcHByb3ZlZEljb25fZGVmYXVsdCwgSXNzdWVJY29uIGFzIElzc3VlSWNvbl9kZWZhdWx0IH0gZnJvbSBcIi4vYXV0aC1zZXJ2aWNlLXRvb2xzNDEuanNcIjtcbmltcG9ydCB7IGNzcyB9IGZyb20gXCJAZW1vdGlvbi9yZWFjdFwiO1xuaW1wb3J0IHsgc3BhY2luZyB9IGZyb20gXCIuL2F1dGgtc2VydmljZS10b29sczQyLmpzXCI7XG5pbXBvcnQgeyBjb2xvcnMgfSBmcm9tIFwiLi9hdXRoLXNlcnZpY2UtdG9vbHM0My5qc1wiO1xuaW1wb3J0IHsgYm9yZGVyUmFkaXVzIH0gZnJvbSBcIi4vYXV0aC1zZXJ2aWNlLXRvb2xzNTMuanNcIjtcbmltcG9ydCB7IGZvbnRTa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gIEFsZXJ0XG59O1xuLy8jIHNvdXJjZU1hcHBpbmdVUkw9YXV0aC1zZXJ2aWNlLXRvb2xzMTEuanMubWFwXG4iXX0= */\");\n\nconst Alert = (_ref) => {\n let {\n variant,\n children,\n ...props\n } = _ref;\n let dynamicProps;\n const iconSize = 20;\n\n switch (variant) {\n case \"danger\":\n dynamicProps = {\n backgroundColor: colors.DETRIMENTAL.LIGHT,\n icon: /* @__PURE__ */jsx(IssueIcon_default, {\n size: iconSize,\n color: \"systemDetrimentalRegular\"\n })\n };\n break;\n\n case \"warning\":\n dynamicProps = {\n backgroundColor: colors.LOYALTY.LIGHT,\n icon: /* @__PURE__ */jsx(IssueIcon_default, {\n size: iconSize,\n color: \"brandLoyaltyRegular\"\n })\n };\n break;\n\n case \"success\":\n dynamicProps = {\n backgroundColor: colors.SUCCESS.LIGHT,\n icon: /* @__PURE__ */jsx(ApprovedIcon_default, {\n size: iconSize,\n color: \"systemSuccessRegular\"\n })\n };\n break;\n\n case \"info\":\n dynamicProps = {\n backgroundColor: colors.HIGHLIGHT.LIGHT,\n icon: /* @__PURE__ */jsx(InformationIcon_default, {\n size: iconSize,\n color: \"brandHighlightRegular\"\n })\n };\n break;\n }\n\n return /* @__PURE__ */jsxs(\"div\", {\n css: /*#__PURE__*/css(alertStyles, {\n backgroundColor: dynamicProps.backgroundColor\n }, process.env.NODE_ENV === \"production\" ? \"\" : \";label:css;\", process.env.NODE_ENV === \"production\" ? \"\" : \"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi92YXIvYXBwL25vZGVfbW9kdWxlcy9AaW5zdGFjYXJ0L2lwcC1hdXRoLXNlcnZpY2UtdG9vbHMvZGlzdC9hdXRoLXNlcnZpY2UtdG9vbHMxMS5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFrRDRDIiwiZmlsZSI6Ii92YXIvYXBwL25vZGVfbW9kdWxlcy9AaW5zdGFjYXJ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3I6IFwic3lzdGVtU3VjY2Vzc1JlZ3VsYXJcIiB9KVxuICAgICAgfTtcbiAgICAgIGJyZWFrO1xuICAgIGNhc2UgXCJpbmZvXCI6XG4gICAgICBkeW5hbWljUHJvcHMgPSB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogY29sb3JzLkhJR0hMSUdIVC5MSUdIVCxcbiAgICAgICAgaWNvbjogLyogQF9fUFVSRV9fICovIGpzeChJbmZvcm1hdGlvbkljb25fZGVmYXVsdCwgeyBzaXplOiBpY29uU2l6ZSwgY29sb3I6IFwiYnJhbmRIaWdobGlnaHRSZWd1bGFyXCIgfSlcbiAgICAgIH07XG4gICAgICBicmVhaztcbiAgfVxuICByZXR1cm4gLyogQF9fUFVSRV9fICovIGpzeHMoXCJkaXZcIiwgeyBjc3M6IGNzcyhhbGVydFN0eWxlcywgeyBiYWNrZ3JvdW5kQ29sb3I6IGR5bmFtaWNQcm9wcy5iYWNrZ3JvdW5kQ29sb3IgfSksIC4uLnByb3BzLCBjaGlsZHJlbjogW1xuICAgIGR5bmFtaWNQcm9wcy5pY29uLFxuICAgIC8qIEBfX1BVUkVfXyAqLyBqc3goXCJkaXZcIiwgeyBjc3M6IGNoaWxkcmVuV3JhcHBlciwgY2hpbGRyZW4gfSlcbiAgXSB9KTtcbn07XG5leHBvcnQge1xuICBBbGVydFxufTtcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPWF1dGgtc2VydmljZS10b29sczExLmpzLm1hcFxuIl19 */\"),\n ...props,\n children: [dynamicProps.icon, /* @__PURE__ */jsx(\"div\", {\n css: childrenWrapper,\n children\n })]\n });\n};\n\nexport { Alert };","import { useMessages } from \"./auth-service-tools47.js\";\n\nconst useFormErrorMessages = (errors, map) => {\n const flattenedMessageMap = Object.entries(map).reduce((acc, _ref) => {\n let [fieldName, errorTypes] = _ref;\n Object.entries(errorTypes).forEach((_ref2) => {\n let [key, value] = _ref2;\n acc[`${fieldName}.${key}`] = value;\n });\n return acc;\n }, {});\n const messages = useMessages(flattenedMessageMap);\n return Object.fromEntries(Object.entries(errors).map((_ref3) => {\n let [key, error] = _ref3;\n const value = messages[`${key}.${error.type}`] || messages[`${key}.default`];\n return [key, value];\n }));\n};\n\nexport { useFormErrorMessages };","import { jsx } from \"@emotion/react/jsx-runtime\";\nimport { useDeepMemo } from \"./auth-service-tools45.js\";\n\nconst useExtraFields = (definition, register) => {\n const entries = useDeepMemo(() => Object.entries(definition || {}), [definition]);\n return entries.map((_ref) => {\n let [key, value] = _ref;\n return /* @__PURE__ */jsx(\"input\", {\n type: \"hidden\",\n value,\n ...register(key)\n }, key);\n });\n};\n\nexport { useExtraFields };"],"sourceRoot":""}