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SAAAgD,EAAAuE,EAAAC,GACA,wBAAAD,EAAAjE,MAAAmE,YAAA9G,MAAA+G,EAAAH,EAAAjE,MAAAkE,EACA,CAEA,SAAAtE,EAAAqE,GACA,mBAAAA,EAAAjE,MAAAmE,YAAA9G,IACA,CAEA,SAAA+G,EAAAC,EAAAH,GACA,OAAAG,KAAAH,aAAAlD,OACA,CAEA,SAAAhC,EAAAnF,GACA,IAAAyK,GAAA,EACA,UAAAC,KAAA1K,EAEA,aADA0K,GACA,gBADAA,GACA1K,EADA0K,GACA,CACAD,GAAA,EACA,KACA,CAEA,OAAAA,CACA,CAEA,SAAA3G,EAAA9D,EAAAyD,GACA,QAAAzD,GAAA0I,QAAAjF,EAAA,QAEA,CAEA,SAAAM,EAAA/D,EAAAyD,GACA,QAAAzD,GAAA0I,OAAAjF,EAAA,QAEA,CAnDAnF,EAAM+G,EAAA,yBAIN/G,EAAMuL,EAAA,iBAINvL,EAAM0L,EAAA,iBAIN1L,EAAM2L,EAAA,aAMN3L,EAAMwE,EAAA,0BAINxE,EAAMuH,EAAA,6BAINvH,EAAMyH,EAAA,4BAINzH,EAAMiM,EAAA,kBAYNjM,EAAM6G,EAAA,mBAKN7G,EAAMwF,EAAA,qBAKNxF,EAAMyF,EAAA,uBACN,IAAI4G,EAAI3L,EACR4L,EAAArH,EACIsH,EAAK5G,EACT6G,EAAApG,EACAqG,GAAAlC,EAEAmC,GAAAzB","sources":["webpack://@logos/commerceweb-frontend/javascript/node_modules/@radix-ui/react-label/dist/index.mjs","webpack://@logos/commerceweb-frontend/javascript/node_modules/@radix-ui/react-form/dist/index.mjs"],"sourcesContent":["\"use client\";\nvar __defProp = Object.defineProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\n\n// src/label.tsx\nimport * as React from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar Label = /* @__PURE__ */ React.forwardRef(\n  /* @__PURE__ */ __name(function Label2(props, forwardedRef) {\n    return /* @__PURE__ */ jsx(\n      Primitive.label,\n      {\n        ...props,\n        ref: forwardedRef,\n        onMouseDown: (event) => {\n          const target = event.target;\n          if (target.closest(\"button, input, select, textarea\")) return;\n          props.onMouseDown?.(event);\n          if (!event.defaultPrevented && event.detail > 1) event.preventDefault();\n        }\n      }\n    );\n  }, \"Label\")\n);\nvar Root = Label;\nexport {\n  Label,\n  Root\n};\n//# sourceMappingURL=index.mjs.map\n","\"use client\";\nvar __defProp = Object.defineProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\n\n// src/form.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { Label as LabelPrimitive } from \"@radix-ui/react-label\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { Fragment, jsx } from \"react/jsx-runtime\";\nvar [createFormContext, createFormScope] = createContextScope(\"Form\");\nvar FORM_NAME = \"Form\";\nvar [ValidationProvider, useValidationContext] = createFormContext(FORM_NAME);\nvar [AriaDescriptionProvider, useAriaDescriptionContext] = createFormContext(FORM_NAME);\nvar Form = /* @__PURE__ */ React.forwardRef(\n  // blank line to reduce diff noise\n  /* @__PURE__ */ __name(function Form2(props, forwardedRef) {\n    const { __scopeForm, onClearServerErrors = /* @__PURE__ */ __name(() => {\n    }, \"onClearServerErrors\"), ...rootProps } = props;\n    const formRef = React.useRef(null);\n    const composedFormRef = useComposedRefs(forwardedRef, formRef);\n    const [validityMap, setValidityMap] = React.useState({});\n    const getFieldValidity = React.useCallback(\n      (fieldName) => validityMap[fieldName],\n      [validityMap]\n    );\n    const handleFieldValidityChange = React.useCallback(\n      (fieldName, validity) => setValidityMap((prevValidityMap) => ({\n        ...prevValidityMap,\n        [fieldName]: { ...prevValidityMap[fieldName] ?? {}, ...validity }\n      })),\n      []\n    );\n    const handleFieldValiditionClear = React.useCallback((fieldName) => {\n      setValidityMap((prevValidityMap) => ({ ...prevValidityMap, [fieldName]: void 0 }));\n      setCustomErrorsMap((prevCustomErrorsMap) => ({ ...prevCustomErrorsMap, [fieldName]: {} }));\n    }, []);\n    const [customMatcherEntriesMap, setCustomMatcherEntriesMap] = React.useState({});\n    const getFieldCustomMatcherEntries = React.useCallback(\n      (fieldName) => customMatcherEntriesMap[fieldName] ?? [],\n      [customMatcherEntriesMap]\n    );\n    const handleFieldCustomMatcherAdd = React.useCallback((fieldName, matcherEntry) => {\n      setCustomMatcherEntriesMap((prevCustomMatcherEntriesMap) => ({\n        ...prevCustomMatcherEntriesMap,\n        [fieldName]: [...prevCustomMatcherEntriesMap[fieldName] ?? [], matcherEntry]\n      }));\n    }, []);\n    const handleFieldCustomMatcherRemove = React.useCallback((fieldName, matcherEntryId) => {\n      setCustomMatcherEntriesMap((prevCustomMatcherEntriesMap) => ({\n        ...prevCustomMatcherEntriesMap,\n        [fieldName]: (prevCustomMatcherEntriesMap[fieldName] ?? []).filter(\n          (matcherEntry) => matcherEntry.id !== matcherEntryId\n        )\n      }));\n    }, []);\n    const [customErrorsMap, setCustomErrorsMap] = React.useState({});\n    const getFieldCustomErrors = React.useCallback(\n      (fieldName) => customErrorsMap[fieldName] ?? {},\n      [customErrorsMap]\n    );\n    const handleFieldCustomErrorsChange = React.useCallback((fieldName, customErrors) => {\n      setCustomErrorsMap((prevCustomErrorsMap) => ({\n        ...prevCustomErrorsMap,\n        [fieldName]: { ...prevCustomErrorsMap[fieldName] ?? {}, ...customErrors }\n      }));\n    }, []);\n    const [messageIdsMap, setMessageIdsMap] = React.useState({});\n    const handleFieldMessageIdAdd = React.useCallback((fieldName, id) => {\n      setMessageIdsMap((prevMessageIdsMap) => {\n        const fieldDescriptionIds = new Set(prevMessageIdsMap[fieldName]).add(id);\n        return { ...prevMessageIdsMap, [fieldName]: fieldDescriptionIds };\n      });\n    }, []);\n    const handleFieldMessageIdRemove = React.useCallback((fieldName, id) => {\n      setMessageIdsMap((prevMessageIdsMap) => {\n        const fieldDescriptionIds = new Set(prevMessageIdsMap[fieldName]);\n        fieldDescriptionIds.delete(id);\n        return { ...prevMessageIdsMap, [fieldName]: fieldDescriptionIds };\n      });\n    }, []);\n    const getFieldDescription = React.useCallback(\n      (fieldName) => Array.from(messageIdsMap[fieldName] ?? []).join(\" \") || void 0,\n      [messageIdsMap]\n    );\n    return /* @__PURE__ */ jsx(\n      ValidationProvider,\n      {\n        scope: __scopeForm,\n        getFieldValidity,\n        onFieldValidityChange: handleFieldValidityChange,\n        getFieldCustomMatcherEntries,\n        onFieldCustomMatcherEntryAdd: handleFieldCustomMatcherAdd,\n        onFieldCustomMatcherEntryRemove: handleFieldCustomMatcherRemove,\n        getFieldCustomErrors,\n        onFieldCustomErrorsChange: handleFieldCustomErrorsChange,\n        onFieldValiditionClear: handleFieldValiditionClear,\n        children: /* @__PURE__ */ jsx(\n          AriaDescriptionProvider,\n          {\n            scope: __scopeForm,\n            onFieldMessageIdAdd: handleFieldMessageIdAdd,\n            onFieldMessageIdRemove: handleFieldMessageIdRemove,\n            getFieldDescription,\n            children: /* @__PURE__ */ jsx(\n              Primitive.form,\n              {\n                ...rootProps,\n                ref: composedFormRef,\n                onInvalid: composeEventHandlers(props.onInvalid, (event) => {\n                  const firstInvalidControl = getFirstInvalidControl(event.currentTarget);\n                  if (firstInvalidControl === event.target) firstInvalidControl.focus();\n                  event.preventDefault();\n                }),\n                onSubmit: composeEventHandlers(props.onSubmit, onClearServerErrors, {\n                  checkForDefaultPrevented: false\n                }),\n                onReset: composeEventHandlers(props.onReset, onClearServerErrors)\n              }\n            )\n          }\n        )\n      }\n    );\n  }, \"Form\")\n);\nvar FIELD_NAME = \"FormField\";\nvar [FormFieldProvider, useFormFieldContext] = createFormContext(FIELD_NAME);\nvar FormField = /* @__PURE__ */ React.forwardRef(\n  /* @__PURE__ */ __name(function FormField2(props, forwardedRef) {\n    const { __scopeForm, name, serverInvalid = false, ...fieldProps } = props;\n    const validationContext = useValidationContext(FIELD_NAME, __scopeForm);\n    const validity = validationContext.getFieldValidity(name);\n    const id = useId();\n    return /* @__PURE__ */ jsx(FormFieldProvider, { scope: __scopeForm, id, name, serverInvalid, children: /* @__PURE__ */ jsx(\n      Primitive.div,\n      {\n        \"data-valid\": getValidAttribute(validity, serverInvalid),\n        \"data-invalid\": getInvalidAttribute(validity, serverInvalid),\n        ...fieldProps,\n        ref: forwardedRef\n      }\n    ) });\n  }, \"FormField\")\n);\nvar LABEL_NAME = \"FormLabel\";\nvar FormLabel = /* @__PURE__ */ React.forwardRef(\n  /* @__PURE__ */ __name(function FormLabel2(props, forwardedRef) {\n    const { __scopeForm, name: nameProp, ...labelProps } = props;\n    const validationContext = useValidationContext(LABEL_NAME, __scopeForm);\n    const fieldContext = useFormFieldContext(LABEL_NAME, __scopeForm, { optional: true });\n    const name = nameProp ?? fieldContext?.name;\n    if (!name) {\n      throw new Error(\n        `\\`${LABEL_NAME}\\` must be used within \\`${FIELD_NAME}\\` or specify the \\`name\\` prop`\n      );\n    }\n    const htmlFor = labelProps.htmlFor || fieldContext?.id;\n    if (!htmlFor) {\n      throw new Error(\n        `\\`${LABEL_NAME}\\` must be used within \\`${FIELD_NAME}\\` or specify the \\`htmlFor\\` prop`\n      );\n    }\n    const validity = validationContext.getFieldValidity(name);\n    const serverInvalid = fieldContext?.serverInvalid ?? false;\n    return /* @__PURE__ */ jsx(\n      LabelPrimitive,\n      {\n        \"data-valid\": getValidAttribute(validity, serverInvalid),\n        \"data-invalid\": getInvalidAttribute(validity, serverInvalid),\n        ...labelProps,\n        ref: forwardedRef,\n        htmlFor\n      }\n    );\n  }, \"FormLabel\")\n);\nvar CONTROL_NAME = \"FormControl\";\nvar FormControl = /* @__PURE__ */ React.forwardRef(\n  /* @__PURE__ */ __name(function FormControl2(props, forwardedRef) {\n    const { __scopeForm, name: nameProp, id: idProp, ...controlProps } = props;\n    const validationContext = useValidationContext(CONTROL_NAME, __scopeForm);\n    const fieldContext = useFormFieldContext(CONTROL_NAME, __scopeForm, { optional: true });\n    const ariaDescriptionContext = useAriaDescriptionContext(CONTROL_NAME, __scopeForm);\n    const ref = React.useRef(null);\n    const composedRef = useComposedRefs(forwardedRef, ref);\n    const name = nameProp || fieldContext?.name;\n    if (!name) {\n      throw new Error(\n        `\\`${CONTROL_NAME}\\` must be used within \\`${FIELD_NAME}\\` or specify the \\`name\\` prop`\n      );\n    }\n    const id = idProp || fieldContext?.id;\n    if (!id) {\n      throw new Error(\n        `\\`${CONTROL_NAME}\\` must be used within \\`${FIELD_NAME}\\` or specify the \\`id\\` prop`\n      );\n    }\n    const customMatcherEntries = validationContext.getFieldCustomMatcherEntries(name);\n    const { onFieldValidityChange, onFieldCustomErrorsChange, onFieldValiditionClear } = validationContext;\n    const updateControlValidity = React.useCallback(\n      async (control) => {\n        if (hasBuiltInError(control.validity)) {\n          const controlValidity2 = validityStateToObject(control.validity);\n          onFieldValidityChange(name, controlValidity2);\n          return;\n        }\n        const formData = control.form ? new FormData(control.form) : new FormData();\n        const matcherArgs = [control.value, formData];\n        const syncCustomMatcherEntries = [];\n        const ayncCustomMatcherEntries = [];\n        customMatcherEntries.forEach((customMatcherEntry) => {\n          if (isAsyncCustomMatcherEntry(customMatcherEntry, matcherArgs)) {\n            ayncCustomMatcherEntries.push(customMatcherEntry);\n          } else if (isSyncCustomMatcherEntry(customMatcherEntry)) {\n            syncCustomMatcherEntries.push(customMatcherEntry);\n          }\n        });\n        const syncCustomErrors = syncCustomMatcherEntries.map(({ id: id2, match }) => {\n          return [id2, match(...matcherArgs)];\n        });\n        const syncCustomErrorsById = Object.fromEntries(syncCustomErrors);\n        const hasSyncCustomErrors = Object.values(syncCustomErrorsById).some(Boolean);\n        const hasCustomError = hasSyncCustomErrors;\n        control.setCustomValidity(hasCustomError ? DEFAULT_INVALID_MESSAGE : \"\");\n        const controlValidity = validityStateToObject(control.validity);\n        onFieldValidityChange(name, controlValidity);\n        onFieldCustomErrorsChange(name, syncCustomErrorsById);\n        if (!hasSyncCustomErrors && ayncCustomMatcherEntries.length > 0) {\n          const promisedCustomErrors = ayncCustomMatcherEntries.map(\n            ({ id: id2, match }) => match(...matcherArgs).then((matches) => [id2, matches])\n          );\n          const asyncCustomErrors = await Promise.all(promisedCustomErrors);\n          const asyncCustomErrorsById = Object.fromEntries(asyncCustomErrors);\n          const hasAsyncCustomErrors = Object.values(asyncCustomErrorsById).some(Boolean);\n          const hasCustomError2 = hasAsyncCustomErrors;\n          control.setCustomValidity(hasCustomError2 ? DEFAULT_INVALID_MESSAGE : \"\");\n          const controlValidity2 = validityStateToObject(control.validity);\n          onFieldValidityChange(name, controlValidity2);\n          onFieldCustomErrorsChange(name, asyncCustomErrorsById);\n        }\n      },\n      [customMatcherEntries, name, onFieldCustomErrorsChange, onFieldValidityChange]\n    );\n    React.useEffect(() => {\n      const control = ref.current;\n      if (control) {\n        const handleChange = /* @__PURE__ */ __name(() => updateControlValidity(control), \"handleChange\");\n        control.addEventListener(\"change\", handleChange);\n        return () => control.removeEventListener(\"change\", handleChange);\n      }\n    }, [updateControlValidity]);\n    const resetControlValidity = React.useCallback(() => {\n      const control = ref.current;\n      if (control) {\n        control.setCustomValidity(\"\");\n        onFieldValiditionClear(name);\n      }\n    }, [name, onFieldValiditionClear]);\n    React.useEffect(() => {\n      const form = ref.current?.form;\n      if (form) {\n        form.addEventListener(\"reset\", resetControlValidity);\n        return () => form.removeEventListener(\"reset\", resetControlValidity);\n      }\n    }, [resetControlValidity]);\n    const serverInvalid = fieldContext?.serverInvalid ?? false;\n    React.useEffect(() => {\n      if (!serverInvalid) {\n        return;\n      }\n      const control = ref.current;\n      const form = control?.closest(\"form\");\n      const firstInvalidControl = form ? getFirstInvalidControl(form) : null;\n      if (firstInvalidControl === control) {\n        firstInvalidControl?.focus();\n      }\n    }, [serverInvalid]);\n    const validity = validationContext.getFieldValidity(name);\n    return /* @__PURE__ */ jsx(\n      Primitive.input,\n      {\n        \"data-valid\": getValidAttribute(validity, serverInvalid),\n        \"data-invalid\": getInvalidAttribute(validity, serverInvalid),\n        \"aria-invalid\": serverInvalid || void 0,\n        \"aria-describedby\": ariaDescriptionContext.getFieldDescription(name),\n        title: \"\",\n        ...controlProps,\n        ref: composedRef,\n        id,\n        name,\n        onInvalid: composeEventHandlers(props.onInvalid, (event) => {\n          const control = event.currentTarget;\n          updateControlValidity(control);\n        }),\n        onChange: composeEventHandlers(props.onChange, (_event) => {\n          resetControlValidity();\n        })\n      }\n    );\n  }, \"FormControl\")\n);\nvar DEFAULT_INVALID_MESSAGE = \"This value is not valid\";\nvar DEFAULT_BUILT_IN_MESSAGES = {\n  badInput: DEFAULT_INVALID_MESSAGE,\n  patternMismatch: \"This value does not match the required pattern\",\n  rangeOverflow: \"This value is too large\",\n  rangeUnderflow: \"This value is too small\",\n  stepMismatch: \"This value does not match the required step\",\n  tooLong: \"This value is too long\",\n  tooShort: \"This value is too short\",\n  typeMismatch: \"This value does not match the required type\",\n  valid: void 0,\n  valueMissing: \"This value is missing\"\n};\nvar MESSAGE_NAME = \"FormMessage\";\nvar FormMessage = /* @__PURE__ */ React.forwardRef(\n  /* @__PURE__ */ __name(function FormMessage2(props, forwardedRef) {\n    const { match, name: nameProp, ...messageProps } = props;\n    const fieldContext = useFormFieldContext(MESSAGE_NAME, props.__scopeForm, { optional: true });\n    const name = nameProp ?? fieldContext?.name;\n    if (!name) {\n      throw new Error(\n        `\\`${MESSAGE_NAME}\\` must be used within \\`${FIELD_NAME}\\` or specify the \\`name\\` prop`\n      );\n    }\n    if (match === void 0) {\n      return /* @__PURE__ */ jsx(FormMessageImpl, { ...messageProps, ref: forwardedRef, name, children: props.children || DEFAULT_INVALID_MESSAGE });\n    } else if (typeof match === \"function\") {\n      return /* @__PURE__ */ jsx(FormCustomMessage, { match, ...messageProps, ref: forwardedRef, name });\n    } else {\n      return /* @__PURE__ */ jsx(FormBuiltInMessage, { match, ...messageProps, ref: forwardedRef, name });\n    }\n  }, \"FormMessage\")\n);\nvar FormBuiltInMessage = /* @__PURE__ */ React.forwardRef(\n  // blank line to reduce diff noise\n  /* @__PURE__ */ __name(function FormBuiltInMessage2(props, forwardedRef) {\n    const { match, forceMatch = false, name, children, ...messageProps } = props;\n    const validationContext = useValidationContext(MESSAGE_NAME, messageProps.__scopeForm);\n    const validity = validationContext.getFieldValidity(name);\n    const matches = forceMatch || validity?.[match];\n    if (matches) {\n      return /* @__PURE__ */ jsx(FormMessageImpl, { ref: forwardedRef, ...messageProps, name, children: children ?? DEFAULT_BUILT_IN_MESSAGES[match] });\n    }\n    return null;\n  }, \"FormBuiltInMessage\")\n);\nvar FormCustomMessage = /* @__PURE__ */ React.forwardRef(\n  // blank line to reduce diff noise\n  /* @__PURE__ */ __name(function FormCustomMessage2(props, forwardedRef) {\n    const { match, forceMatch = false, name, id: idProp, children, ...messageProps } = props;\n    const validationContext = useValidationContext(MESSAGE_NAME, messageProps.__scopeForm);\n    const ref = React.useRef(null);\n    const composedRef = useComposedRefs(forwardedRef, ref);\n    const _id = useId();\n    const id = idProp ?? _id;\n    const customMatcherEntry = React.useMemo(() => ({ id, match }), [id, match]);\n    const { onFieldCustomMatcherEntryAdd, onFieldCustomMatcherEntryRemove } = validationContext;\n    React.useEffect(() => {\n      onFieldCustomMatcherEntryAdd(name, customMatcherEntry);\n      return () => onFieldCustomMatcherEntryRemove(name, customMatcherEntry.id);\n    }, [customMatcherEntry, name, onFieldCustomMatcherEntryAdd, onFieldCustomMatcherEntryRemove]);\n    const validity = validationContext.getFieldValidity(name);\n    const customErrors = validationContext.getFieldCustomErrors(name);\n    const hasMatchingCustomError = customErrors[id];\n    const matches = forceMatch || validity && !hasBuiltInError(validity) && hasMatchingCustomError;\n    if (matches) {\n      return /* @__PURE__ */ jsx(FormMessageImpl, { id, ref: composedRef, ...messageProps, name, children: children ?? DEFAULT_INVALID_MESSAGE });\n    }\n    return null;\n  }, \"FormCustomMessage\")\n);\nvar FormMessageImpl = /* @__PURE__ */ React.forwardRef(\n  // blank line to reduce diff noise\n  /* @__PURE__ */ __name(function FormMessageImpl2(props, forwardedRef) {\n    const { __scopeForm, id: idProp, name, ...messageProps } = props;\n    const ariaDescriptionContext = useAriaDescriptionContext(MESSAGE_NAME, __scopeForm);\n    const _id = useId();\n    const id = idProp ?? _id;\n    const { onFieldMessageIdAdd, onFieldMessageIdRemove } = ariaDescriptionContext;\n    React.useEffect(() => {\n      onFieldMessageIdAdd(name, id);\n      return () => onFieldMessageIdRemove(name, id);\n    }, [name, id, onFieldMessageIdAdd, onFieldMessageIdRemove]);\n    return /* @__PURE__ */ jsx(Primitive.span, { id, ...messageProps, ref: forwardedRef });\n  }, \"FormMessageImpl\")\n);\nvar VALIDITY_STATE_NAME = \"FormValidityState\";\nvar FormValidityState = /* @__PURE__ */ __name((props) => {\n  const { __scopeForm, name: nameProp, children } = props;\n  const validationContext = useValidationContext(VALIDITY_STATE_NAME, __scopeForm);\n  const fieldContext = useFormFieldContext(VALIDITY_STATE_NAME, __scopeForm, { optional: true });\n  const name = nameProp ?? fieldContext?.name;\n  if (!name) {\n    throw new Error(\n      `\\`${VALIDITY_STATE_NAME}\\` must be used within \\`${FIELD_NAME}\\` or specify the \\`name\\` prop`\n    );\n  }\n  const validity = validationContext.getFieldValidity(name);\n  return /* @__PURE__ */ jsx(Fragment, { children: children(validity) });\n}, \"FormValidityState\");\nvar FormSubmit = /* @__PURE__ */ React.forwardRef(\n  /* @__PURE__ */ __name(function FormSubmit2(props, forwardedRef) {\n    const { __scopeForm, ...submitProps } = props;\n    return /* @__PURE__ */ jsx(Primitive.button, { type: \"submit\", ...submitProps, ref: forwardedRef });\n  }, \"FormSubmit\")\n);\nfunction validityStateToObject(validity) {\n  const object = {};\n  for (const key in validity) {\n    object[key] = validity[key];\n  }\n  return object;\n}\n__name(validityStateToObject, \"validityStateToObject\");\nfunction isHTMLElement(element) {\n  return element instanceof HTMLElement;\n}\n__name(isHTMLElement, \"isHTMLElement\");\nfunction isFormControl(element) {\n  return \"validity\" in element;\n}\n__name(isFormControl, \"isFormControl\");\nfunction isInvalid(control) {\n  return isFormControl(control) && (control.validity.valid === false || control.getAttribute(\"aria-invalid\") === \"true\");\n}\n__name(isInvalid, \"isInvalid\");\nfunction getFirstInvalidControl(form) {\n  const elements = form.elements;\n  const [firstInvalidControl] = Array.from(elements).filter(isHTMLElement).filter(isInvalid);\n  return firstInvalidControl ?? null;\n}\n__name(getFirstInvalidControl, \"getFirstInvalidControl\");\nfunction isAsyncCustomMatcherEntry(entry, args) {\n  return entry.match.constructor.name === \"AsyncFunction\" || returnsPromise(entry.match, args);\n}\n__name(isAsyncCustomMatcherEntry, \"isAsyncCustomMatcherEntry\");\nfunction isSyncCustomMatcherEntry(entry) {\n  return entry.match.constructor.name === \"Function\";\n}\n__name(isSyncCustomMatcherEntry, \"isSyncCustomMatcherEntry\");\nfunction returnsPromise(func, args) {\n  return func(...args) instanceof Promise;\n}\n__name(returnsPromise, \"returnsPromise\");\nfunction hasBuiltInError(validity) {\n  let error = false;\n  for (const validityKey in validity) {\n    const key = validityKey;\n    if (key !== \"valid\" && key !== \"customError\" && validity[key]) {\n      error = true;\n      break;\n    }\n  }\n  return error;\n}\n__name(hasBuiltInError, \"hasBuiltInError\");\nfunction getValidAttribute(validity, serverInvalid) {\n  if (validity?.valid === true && !serverInvalid) return true;\n  return void 0;\n}\n__name(getValidAttribute, \"getValidAttribute\");\nfunction getInvalidAttribute(validity, serverInvalid) {\n  if (validity?.valid === false || serverInvalid) return true;\n  return void 0;\n}\n__name(getInvalidAttribute, \"getInvalidAttribute\");\nvar Root = Form;\nvar Field = FormField;\nvar Label = FormLabel;\nvar Control = FormControl;\nvar Message = FormMessage;\nvar ValidityState = FormValidityState;\nvar Submit = FormSubmit;\nexport {\n  Control,\n  Field,\n  Form,\n  FormControl,\n  FormField,\n  FormLabel,\n  FormMessage,\n  FormSubmit,\n  FormValidityState,\n  Label,\n  Message,\n  Root,\n  Submit,\n  ValidityState,\n  createFormScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["__defProp","Object","defineProperty","__name","target","value","configurable","Label","react","forwardRef","props","forwardedRef","jsx_runtime","jsx","react_primitive_dist","sG","label","ref","onMouseDown","event","closest","defaultPrevented","detail","preventDefault","dist_defProp","dist_name","createFormContext","createFormScope","react_context_dist","A","FORM_NAME","ValidationProvider","useValidationContext","AriaDescriptionProvider","useAriaDescriptionContext","Form","__scopeForm","onClearServerErrors","rootProps","formRef","useRef","composedFormRef","react_compose_refs_dist","s","validityMap","setValidityMap","useState","getFieldValidity","useCallback","fieldName","handleFieldValidityChange","validity","prevValidityMap","handleFieldValiditionClear","setCustomErrorsMap","prevCustomErrorsMap","customMatcherEntriesMap","setCustomMatcherEntriesMap","getFieldCustomMatcherEntries","handleFieldCustomMatcherAdd","matcherEntry","prevCustomMatcherEntriesMap","handleFieldCustomMatcherRemove","matcherEntryId","filter","id","customErrorsMap","getFieldCustomErrors","handleFieldCustomErrorsChange","customErrors","messageIdsMap","setMessageIdsMap","handleFieldMessageIdAdd","prevMessageIdsMap","fieldDescriptionIds","Set","add","handleFieldMessageIdRemove","delete","getFieldDescription","Array","from","join","scope","onFieldValidityChange","onFieldCustomMatcherEntryAdd","onFieldCustomMatcherEntryRemove","onFieldCustomErrorsChange","onFieldValiditionClear","children","onFieldMessageIdAdd","onFieldMessageIdRemove","form","onInvalid","dist","mK","firstInvalidControl","getFirstInvalidControl","currentTarget","focus","onSubmit","checkForDefaultPrevented","onReset","FIELD_NAME","FormFieldProvider","useFormFieldContext","FormField","name","serverInvalid","fieldProps","react_id_dist","B","div","getValidAttribute","getInvalidAttribute","LABEL_NAME","FormLabel","nameProp","labelProps","validationContext","fieldContext","optional","Error","htmlFor","CONTROL_NAME","FormControl","idProp","controlProps","ariaDescriptionContext","composedRef","customMatcherEntries","updateControlValidity","async","control","hasBuiltInError","controlValidity2","validityStateToObject","formData","FormData","matcherArgs","syncCustomMatcherEntries","ayncCustomMatcherEntries","forEach","customMatcherEntry","isAsyncCustomMatcherEntry","push","isSyncCustomMatcherEntry","syncCustomErrors","map","id2","match","syncCustomErrorsById","fromEntries","hasSyncCustomErrors","values","some","Boolean","hasCustomError","setCustomValidity","DEFAULT_INVALID_MESSAGE","controlValidity","length","promisedCustomErrors","then","matches","asyncCustomErrors","Promise","all","asyncCustomErrorsById","hasCustomError2","useEffect","current","handleChange","addEventListener","removeEventListener","resetControlValidity","input","title","onChange","_event","DEFAULT_BUILT_IN_MESSAGES","badInput","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort","typeMismatch","valid","valueMissing","MESSAGE_NAME","FormMessage","messageProps","FormMessageImpl","FormCustomMessage","FormBuiltInMessage","forceMatch","_id","useMemo","hasMatchingCustomError","span","FormSubmit","submitProps","button","type","object","key","isHTMLElement","element","HTMLElement","isFormControl","isInvalid","getAttribute","elements","entry","args","constructor","returnsPromise","func","error","validityKey","dist_Root","Field","dist_Label","Control","Message","Submit"],"sourceRoot":""}