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,aAAc9B,EAAItB,EAAET,GAAIgC,EAAU,IAANhB,GAAiB,IAANc,EACvF,GAAI9B,EAAE9C,QAAU6C,EAAE+D,IAChB/D,EAAE4D,iBAAkBtC,EAAEU,QACnB,GAAI/D,IAAgB+B,EAAE+D,IACzB,GAAK9D,EAAE9C,OAEF,GAAI8E,EAAG,CACVjC,EAAE4D,iBACF,MAAM1B,EAAIlB,EAAEgB,EAAG,IACf9C,SAAAA,EAAIgD,GAAIA,EAAE7H,QAAU2H,GAAKb,EAAEa,EAAI,EACjC,OALEhC,EAAE4D,iBAAkBzC,EAAEa,EAAI,QAMvB/D,IAAW+B,EAAE+D,KAAO/D,EAAE4D,iBAAkBzC,EAAEa,EAAI,IAAM/D,IAAY+B,EAAE+D,KAAO/D,EAAE4D,iBAAkBzC,EAAEa,EAAI,IAAM/D,IAAW+B,EAAE+D,KAAO/D,EAAE4D,iBAAkBzC,EAAE,IAAMlD,IAAU+B,EAAE+D,MAAQ/D,EAAE4D,iBAAkBzC,EAAEd,EAAEhG,OAAS,GAAG,EAoD9M2J,CAAEzB,GAAIN,SAAAA,EAAIM,EAAE,EAEd7C,OAAS6C,IACPV,SAAAA,EAAIU,GA3CRvC,KACN,IAAKK,EAAE4D,MAAKC,IAAA,IAAGzD,SAAUQ,GAAGiD,EAAA,OAAKjD,EAAE7D,UAAY4C,EAAEmE,aAAa,IAAG,CAC/D,MAAQhE,YAAac,EAAGb,WAAY2B,GAAMhC,EAAErB,GAC5CiB,SAAAA,EAAIoC,EAAGd,EACT,GAuCkBmD,CAAE7B,EAAE,GAEXT,GAELb,EACD,MAGN,G","sources":["../node_modules/@mui/base/node_modules/@mui/utils/esm/isHostComponent/isHostComponent.js","../node_modules/@mui/base/node_modules/@mui/utils/esm/appendOwnerState/appendOwnerState.js","../node_modules/@mui/base/node_modules/@mui/utils/esm/extractEventHandlers/extractEventHandlers.js","../node_modules/@mui/base/utils/resolveComponentProps.js","../node_modules/@mui/base/node_modules/@mui/utils/esm/omitEventHandlers/omitEventHandlers.js","../node_modules/@mui/base/node_modules/@mui/utils/esm/mergeSlotProps/mergeSlotProps.js","../node_modules/@mui/base/node_modules/@mui/utils/esm/resolveComponentProps/resolveComponentProps.js","../node_modules/@mui/base/node_modules/@mui/utils/esm/useSlotProps/useSlotProps.js","../node_modules/@mui/base/node_modules/@mui/utils/esm/useForkRef/useForkRef.js","../node_modules/@mui/base/node_modules/@mui/utils/esm/setRef/setRef.js","../node_modules/mui-one-time-password-input/dist/mui-one-time-password-input.es.js"],"sourcesContent":["/**\n * Determines if a given element is a DOM element name (i.e. not a React component).\n */\nfunction isHostComponent(element) {\n return typeof element === 'string';\n}\nexport default isHostComponent;","import isHostComponent from \"../isHostComponent/index.js\";\n\n/**\n * Type of the ownerState based on the type of an element it applies to.\n * This resolves to the provided OwnerState for React components and `undefined` for host components.\n * Falls back to `OwnerState | undefined` when the exact type can't be determined in development time.\n */\n\n/**\n * Appends the ownerState object to the props, merging with the existing one if necessary.\n *\n * @param elementType Type of the element that owns the `existingProps`. If the element is a DOM node or undefined, `ownerState` is not applied.\n * @param otherProps Props of the element.\n * @param ownerState\n */\nfunction appendOwnerState(elementType, otherProps, ownerState) {\n if (elementType === undefined || isHostComponent(elementType)) {\n return otherProps;\n }\n return {\n ...otherProps,\n ownerState: {\n ...otherProps.ownerState,\n ...ownerState\n }\n };\n}\nexport default appendOwnerState;","/**\n * Extracts event handlers from a given object.\n * A prop is considered an event handler if it is a function and its name starts with `on`.\n *\n * @param object An object to extract event handlers from.\n * @param excludeKeys An array of keys to exclude from the returned object.\n */\nfunction extractEventHandlers(object, excludeKeys = []) {\n if (object === undefined) {\n return {};\n }\n const result = {};\n Object.keys(object).filter(prop => prop.match(/^on[A-Z]/) && typeof object[prop] === 'function' && !excludeKeys.includes(prop)).forEach(prop => {\n result[prop] = object[prop];\n });\n return result;\n}\nexport default extractEventHandlers;","/**\n * If `componentProps` is a function, calls it with the provided `ownerState`.\n * Otherwise, just returns `componentProps`.\n */\nexport function resolveComponentProps(componentProps, ownerState, slotState) {\n if (typeof componentProps === 'function') {\n return componentProps(ownerState, slotState);\n }\n return componentProps;\n}","/**\n * Removes event handlers from the given object.\n * A field is considered an event handler if it is a function with a name beginning with `on`.\n *\n * @param object Object to remove event handlers from.\n * @returns Object with event handlers removed.\n */\nfunction omitEventHandlers(object) {\n if (object === undefined) {\n return {};\n }\n const result = {};\n Object.keys(object).filter(prop => !(prop.match(/^on[A-Z]/) && typeof object[prop] === 'function')).forEach(prop => {\n result[prop] = object[prop];\n });\n return result;\n}\nexport default omitEventHandlers;","import clsx from 'clsx';\nimport extractEventHandlers from \"../extractEventHandlers/index.js\";\nimport omitEventHandlers from \"../omitEventHandlers/index.js\";\n/**\n * Merges the slot component internal props (usually coming from a hook)\n * with the externally provided ones.\n *\n * The merge order is (the latter overrides the former):\n * 1. The internal props (specified as a getter function to work with get*Props hook result)\n * 2. Additional props (specified internally on a Base UI component)\n * 3. External props specified on the owner component. These should only be used on a root slot.\n * 4. External props specified in the `slotProps.*` prop.\n * 5. The `className` prop - combined from all the above.\n * @param parameters\n * @returns\n */\nfunction mergeSlotProps(parameters) {\n const {\n getSlotProps,\n additionalProps,\n externalSlotProps,\n externalForwardedProps,\n className\n } = parameters;\n if (!getSlotProps) {\n // The simpler case - getSlotProps is not defined, so no internal event handlers are defined,\n // so we can simply merge all the props without having to worry about extracting event handlers.\n const joinedClasses = clsx(additionalProps?.className, className, externalForwardedProps?.className, externalSlotProps?.className);\n const mergedStyle = {\n ...additionalProps?.style,\n ...externalForwardedProps?.style,\n ...externalSlotProps?.style\n };\n const props = {\n ...additionalProps,\n ...externalForwardedProps,\n ...externalSlotProps\n };\n if (joinedClasses.length > 0) {\n props.className = joinedClasses;\n }\n if (Object.keys(mergedStyle).length > 0) {\n props.style = mergedStyle;\n }\n return {\n props,\n internalRef: undefined\n };\n }\n\n // In this case, getSlotProps is responsible for calling the external event handlers.\n // We don't need to include them in the merged props because of this.\n\n const eventHandlers = extractEventHandlers({\n ...externalForwardedProps,\n ...externalSlotProps\n });\n const componentsPropsWithoutEventHandlers = omitEventHandlers(externalSlotProps);\n const otherPropsWithoutEventHandlers = omitEventHandlers(externalForwardedProps);\n const internalSlotProps = getSlotProps(eventHandlers);\n\n // The order of classes is important here.\n // Emotion (that we use in libraries consuming Base UI) depends on this order\n // to properly override style. It requires the most important classes to be last\n // (see https://github.com/mui/material-ui/pull/33205) for the related discussion.\n const joinedClasses = clsx(internalSlotProps?.className, additionalProps?.className, className, externalForwardedProps?.className, externalSlotProps?.className);\n const mergedStyle = {\n ...internalSlotProps?.style,\n ...additionalProps?.style,\n ...externalForwardedProps?.style,\n ...externalSlotProps?.style\n };\n const props = {\n ...internalSlotProps,\n ...additionalProps,\n ...otherPropsWithoutEventHandlers,\n ...componentsPropsWithoutEventHandlers\n };\n if (joinedClasses.length > 0) {\n props.className = joinedClasses;\n }\n if (Object.keys(mergedStyle).length > 0) {\n props.style = mergedStyle;\n }\n return {\n props,\n internalRef: internalSlotProps.ref\n };\n}\nexport default mergeSlotProps;","/**\n * If `componentProps` is a function, calls it with the provided `ownerState`.\n * Otherwise, just returns `componentProps`.\n */\nfunction resolveComponentProps(componentProps, ownerState, slotState) {\n if (typeof componentProps === 'function') {\n return componentProps(ownerState, slotState);\n }\n return componentProps;\n}\nexport default resolveComponentProps;","'use client';\n\nimport useForkRef from \"../useForkRef/index.js\";\nimport appendOwnerState from \"../appendOwnerState/index.js\";\nimport mergeSlotProps from \"../mergeSlotProps/index.js\";\nimport resolveComponentProps from \"../resolveComponentProps/index.js\";\n/**\n * @ignore - do not document.\n * Builds the props to be passed into the slot of an unstyled component.\n * It merges the internal props of the component with the ones supplied by the user, allowing to customize the behavior.\n * If the slot component is not a host component, it also merges in the `ownerState`.\n *\n * @param parameters.getSlotProps - A function that returns the props to be passed to the slot component.\n */\nfunction useSlotProps(parameters) {\n const {\n elementType,\n externalSlotProps,\n ownerState,\n skipResolvingSlotProps = false,\n ...other\n } = parameters;\n const resolvedComponentsProps = skipResolvingSlotProps ? {} : resolveComponentProps(externalSlotProps, ownerState);\n const {\n props: mergedProps,\n internalRef\n } = mergeSlotProps({\n ...other,\n externalSlotProps: resolvedComponentsProps\n });\n const ref = useForkRef(internalRef, resolvedComponentsProps?.ref, parameters.additionalProps?.ref);\n const props = appendOwnerState(elementType, {\n ...mergedProps,\n ref\n }, ownerState);\n return props;\n}\nexport default useSlotProps;","'use client';\n\nimport * as React from 'react';\nimport setRef from \"../setRef/index.js\";\n\n/**\n * Takes an array of refs and returns a new ref which will apply any modification to all of the refs.\n * This is useful when you want to have the ref used in multiple places.\n *\n * ```tsx\n * const rootRef = React.useRef(null);\n * const refFork = useForkRef(rootRef, props.ref);\n *\n * return (\n * \n * );\n * ```\n *\n * @param {Array | undefined>} refs The ref array.\n * @returns {React.RefCallback | null} The new ref callback.\n */\nexport default function useForkRef(...refs) {\n /**\n * This will create a new function if the refs passed to this hook change and are all defined.\n * This means react will call the old forkRef with `null` and the new forkRef\n * with the ref. Cleanup naturally emerges from this behavior.\n */\n return React.useMemo(() => {\n if (refs.every(ref => ref == null)) {\n return null;\n }\n return instance => {\n refs.forEach(ref => {\n setRef(ref, instance);\n });\n };\n // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- intentionally ignoring that the dependency array must be an array literal\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, refs);\n}","/**\n * TODO v5: consider making it private\n *\n * passes {value} to {ref}\n *\n * WARNING: Be sure to only call this inside a callback that is passed as a ref.\n * Otherwise, make sure to cleanup the previous {ref} if it changes. See\n * https://github.com/mui/material-ui/issues/13539\n *\n * Useful if you want to expose the ref of an inner component to the public API\n * while still using it inside the component.\n * @param ref A ref callback or ref object. If anything falsy, this is a no-op.\n */\nexport default function setRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n } else if (ref) {\n ref.current = value;\n }\n}","import { jsx as E } from \"react/jsx-runtime\";\nimport g from \"react\";\nimport { styled as W } from \"@mui/material/styles\";\nimport q from \"@mui/material/TextField\";\nimport z from \"@mui/material/Box\";\nconst G = W(q)`\n input {\n text-align: center;\n }\n`, J = {\n TextFieldStyled: G\n}, Q = (n) => /* @__PURE__ */ E(J.TextFieldStyled, { ...n }), B = {\n left: \"ArrowLeft\",\n right: \"ArrowRight\",\n backspace: \"Backspace\",\n home: \"Home\",\n end: \"End\"\n};\nfunction U(n, l) {\n return n <= 0 ? [] : Array.from({ length: n }, l);\n}\nfunction X(n, l, f) {\n return n.map((u, x) => l === x ? f : u);\n}\nfunction P(n) {\n return n.join(\"\");\n}\nfunction M(n, l) {\n return [...n, l];\n}\nfunction Z(n, l, f) {\n return n.reduce(\n (u, x, C) => {\n const { characters: y, restArrayMerged: d } = u;\n if (C < f)\n return {\n restArrayMerged: d,\n characters: M(y, x)\n };\n const [D, ...V] = d;\n return {\n restArrayMerged: V,\n characters: M(y, D || \"\")\n };\n },\n {\n restArrayMerged: l,\n characters: []\n }\n ).characters;\n}\nfunction v(n) {\n return n.split(\"\");\n}\nfunction N(n) {\n const l = g.useRef(() => {\n throw new Error(\"Cannot call an event handler while rendering.\");\n });\n return g.useInsertionEffect(() => {\n l.current = n;\n }), g.useCallback((...f) => l.current?.(...f), []);\n}\nconst ee = () => !0, oe = g.forwardRef(\n (n, l) => {\n const {\n value: f = \"\",\n length: u = 4,\n autoFocus: x = !1,\n onChange: C,\n TextFieldsProps: y,\n onComplete: d,\n validateChar: D = ee,\n className: V,\n onBlur: b,\n ...K\n } = n, j = g.useRef(f), k = N(d), I = N((e) => {\n const t = e.slice(0, u);\n return {\n isCompleted: t.length === u,\n finalValue: t\n };\n });\n g.useEffect(() => {\n const { isCompleted: e, finalValue: t } = I(\n j.current\n );\n e && k(t);\n }, [u, k, I]);\n const p = U(\n u,\n (e, t) => ({\n character: f[t] || \"\",\n inputRef: g.createRef()\n })\n ), A = (e) => p.findIndex(({ inputRef: t }) => t.current === e), T = () => p.map(({ character: e }) => e), O = (e, t) => {\n const a = X(\n T(),\n e,\n t\n );\n return P(a);\n }, $ = (e) => {\n p[e]?.inputRef.current?.focus();\n }, c = (e) => {\n p[e]?.inputRef.current?.select();\n }, R = (e) => {\n e + 1 !== u && (p[e + 1].character ? c(e + 1) : $(e + 1));\n }, S = (e, t) => typeof D != \"function\" ? !0 : D(e, t), Y = (e) => {\n const t = A(e.target);\n if (t === 0 && e.target.value.length > 1) {\n const { finalValue: m, isCompleted: F } = I(\n e.target.value\n );\n C?.(m), F && d?.(m), c(m.length - 1);\n return;\n }\n const a = e.target.value[0] || \"\";\n let o = a;\n o && !S(o, t) && (o = \"\");\n const s = O(t, o);\n C?.(s);\n const { isCompleted: h, finalValue: i } = I(s);\n h && d?.(i), o !== \"\" ? s.length - 1 < t ? c(s.length) : R(t) : a === \"\" && s.length <= t && c(t - 1);\n }, _ = (e) => {\n const t = e.target, a = t.selectionStart, o = t.selectionEnd, s = A(t), h = a === 0 && o === 0;\n if (t.value === e.key)\n e.preventDefault(), R(s);\n else if (B.backspace === e.key) {\n if (!t.value)\n e.preventDefault(), c(s - 1);\n else if (h) {\n e.preventDefault();\n const i = O(s, \"\");\n C?.(i), i.length <= s && c(s - 1);\n }\n } else B.left === e.key ? (e.preventDefault(), c(s - 1)) : B.right === e.key ? (e.preventDefault(), c(s + 1)) : B.home === e.key ? (e.preventDefault(), c(0)) : B.end === e.key && (e.preventDefault(), c(p.length - 1));\n }, H = (e) => {\n const t = e.clipboardData.getData(\"text/plain\"), a = e.target, o = p.findIndex(\n ({ character: r, inputRef: w }) => r === \"\" || w.current === a\n ), s = T(), h = Z(\n s,\n v(t),\n o\n ).map((r, w) => S(r, w) ? r : \"\"), i = P(h);\n C?.(i);\n const { isCompleted: m, finalValue: F } = I(i);\n m ? (d?.(F), c(u - 1)) : c(i.length);\n }, L = (e) => {\n if (!p.some(({ inputRef: a }) => a.current === e.relatedTarget)) {\n const { isCompleted: a, finalValue: o } = I(f);\n b?.(o, a);\n }\n };\n return /* @__PURE__ */ E(\n z,\n {\n display: \"flex\",\n gap: \"20px\",\n alignItems: \"center\",\n ref: l,\n className: `MuiOtpInput-Box ${V || \"\"}`,\n ...K,\n children: p.map(({ character: e, inputRef: t }, a) => {\n const {\n onPaste: o,\n onFocus: s,\n onKeyDown: h,\n className: i,\n onBlur: m,\n ...F\n } = typeof y == \"function\" ? y(a) || {} : y || {};\n return /* @__PURE__ */ E(\n Q,\n {\n autoFocus: x ? a === 0 : !1,\n autoComplete: \"one-time-code\",\n value: e,\n inputRef: t,\n className: `MuiOtpInput-TextField MuiOtpInput-TextField-${a + 1} ${i || \"\"}`,\n onPaste: (r) => {\n r.preventDefault(), H(r), o?.(r);\n },\n onFocus: (r) => {\n r.preventDefault(), r.target.select(), s?.(r);\n },\n onChange: Y,\n onKeyDown: (r) => {\n _(r), h?.(r);\n },\n onBlur: (r) => {\n m?.(r), L(r);\n },\n ...F\n },\n a\n );\n })\n }\n );\n }\n);\nexport {\n oe as MuiOtpInput\n};\n"],"names":["element","elementType","otherProps","ownerState","undefined","isHostComponent","_objectSpread","object","excludeKeys","arguments","length","result","Object","keys","filter","prop","match","includes","forEach","resolveComponentProps","componentProps","slotState","parameters","getSlotProps","additionalProps","externalSlotProps","externalForwardedProps","className","joinedClasses","clsx","mergedStyle","style","props","internalRef","eventHandlers","extractEventHandlers","componentsPropsWithoutEventHandlers","omitEventHandlers","otherPropsWithoutEventHandlers","internalSlotProps","ref","_excluded","_parameters$additiona","skipResolvingSlotProps","other","_objectWithoutProperties","resolvedComponentsProps","mergedProps","mergeSlotProps","_len","refs","Array","_key","React","every","instance","value","current","setRef","useForkRef","appendOwnerState","J","TextFieldStyled","W","q","_templateObject","_taggedTemplateLiteral","Q","n","E","B","P","join","M","l","N","g","Error","_l$current","f","call","ee","oe","u","autoFocus","x","onChange","C","TextFieldsProps","y","onComplete","d","validateChar","D","V","onBlur","b","K","j","k","I","e","t","slice","isCompleted","finalValue","p","from","U","character","inputRef","A","findIndex","_ref","T","map","_ref2","O","a","X","c","_p$e2","select","R","_p$e","focus","$","S","Y","target","m","F","o","s","h","i","H","clipboardData","getData","_ref3","r","w","reduce","characters","restArrayMerged","Z","split","v","z","display","gap","alignItems","concat","children","_ref5","_ref6","onPaste","onFocus","onKeyDown","_excluded2","autoComplete","preventDefault","selectionStart","selectionEnd","key","_","some","_ref4","relatedTarget","L"],"sourceRoot":""}