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AA,KAAI6O,EAAAA,GAAM,CAAElP,UAA0BK,EAAAA,EAAAA,KAAI8O,EAAAA,EAAY,CAAEnP,eACxEyO,GAAyBpO,EAAAA,EAAAA,KAAIuO,EAAQ,CAAE5O,SAAUyO,IAAY,OAGlE,EAEHxG,EAAe1H,YAAc,gB,mCCpF7B,IAAI6O,EArBkB,CACpBxO,KAAM,MACNX,MAAO,CACLoP,QAAS,YACTC,MAAO,8BAETC,SAAU,CACRhK,YAAa,+CACbiK,MAAO,GACPC,SAAU,aACVC,KAAM,CAAC,SAAU,QAAS,SAE5B1P,SAAU,CACR,CACEY,KAAM,OACNX,MAAO,CACL0P,EAAG,mH","sources":["../node_modules/@churchofjesuschrist/eden-form-parts/lib/es/components/Hint.js","../node_modules/@churchofjesuschrist/eden-form-parts/lib/es/components/Checkbox.js","../node_modules/@churchofjesuschrist/eden-form-parts/lib/es/components/RequiredIndicator.js","../node_modules/@churchofjesuschrist/eden-form-parts/lib/es/utils/useValidation.js","../node_modules/@churchofjesuschrist/eden-form-parts/lib/es/components/Radio.js","../node_modules/@churchofjesuschrist/eden-form-parts/lib/es/components/Legend.js","../node_modules/@churchofjesuschrist/eden-form-parts/lib/es/components/FieldSet.js","../node_modules/@churchofjesuschrist/eden-form-parts/lib/es/components/Label.js","../node_modules/@churchofjesuschrist/eden-form-parts/lib/es/components/Select.js","../node_modules/@churchofjesuschrist/eden-form-parts/lib/es/components/Tooltip.js","../node_modules/@churchofjesuschrist/eden-utilities/lib/es/utils/ConditionalWrapper.js","../node_modules/@churchofjesuschrist/eden-contextual-menu/lib/es/components/Footer.js","../node_modules/@churchofjesuschrist/eden-contextual-menu/lib/es/index.js","../node_modules/@churchofjesuschrist/eden-icons-raw/lib/es/icons/arrowDropDown.js"],"sourcesContent":["\"use client\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useContext } from \"react\";\nimport styled from \"styled-components\";\nimport {\n textColorSecondary,\n accentColorDanger\n} from \"@churchofjesuschrist/eden-style-constants\";\nimport { ValidityStateContext } from \"../utils/context\";\nimport { Text5 } from \"@churchofjesuschrist/eden-text\";\nconst colorsByValidityState = {\n error: accentColorDanger\n};\nconst InternalUseOnlyHint = styled(Text5)`\n display: block;\n color: ${({ $validityState }) => colorsByValidityState[$validityState] || textColorSecondary};\n`;\nconst Hint = ({ children, ...props }) => {\n const validityStateContext = useContext(ValidityStateContext);\n return /* @__PURE__ */ jsx(\n InternalUseOnlyHint,\n {\n renderAs: \"span\",\n $validityState: validityStateContext,\n ...props,\n children\n }\n );\n};\nHint.displayName = \"Hint\";\nvar Hint_default = Hint;\nexport {\n InternalUseOnlyHint,\n Hint_default as default\n};\n","\"use client\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useContext, forwardRef } from \"react\";\nimport styled from \"styled-components\";\nimport {\n borderRadius,\n backgroundColorLevel1\n} from \"@churchofjesuschrist/eden-style-constants\";\nimport { sharedCheckCss } from \"../utils/sharedCss\";\nimport { AppearanceContext } from \"@churchofjesuschrist/eden-appearance\";\nconst InternalUseOnlyCheckbox = styled.input.attrs({ type: \"checkbox\" })`\n ${sharedCheckCss};\n border-radius: ${borderRadius};\n position: relative;\n &::before {\n content: \"\";\n position: absolute;\n }\n &:checked {\n &::before {\n height: 0.36rem;\n width: 2px;\n border-radius: 1px;\n bottom: 0.125rem;\n left: 0.125rem;\n transform: rotate(-40deg);\n transform-origin: 60% 30%;\n background-color: ${backgroundColorLevel1};\n }\n &::after {\n content: \"\";\n position: absolute;\n height: 2px;\n width: 0.82rem;\n border-radius: 1px;\n bottom: 0.125rem;\n left: 0.125rem;\n transform: rotate(-44deg);\n transform-origin: 12% -123%;\n background-color: ${backgroundColorLevel1};\n }\n }\n &:indeterminate {\n &::before {\n width: 0.75rem;\n height: 2px;\n top: 50%;\n transform: translateY(-50%);\n left: 0.125rem;\n border-radius: 1px;\n background-color: ${backgroundColorLevel1};\n }\n }\n`;\nconst CheckboxComponent = (props, ref) => {\n const curAppearanceContext = useContext(AppearanceContext);\n return /* @__PURE__ */ jsx(\n InternalUseOnlyCheckbox,\n {\n ...props,\n ref,\n $curAppearanceContext: curAppearanceContext\n }\n );\n};\nconst Checkbox = forwardRef(CheckboxComponent);\nCheckbox.displayName = \"Checkbox\";\nCheckbox.isInput = true;\nvar Checkbox_default = Checkbox;\nexport {\n InternalUseOnlyCheckbox,\n Checkbox_default as default\n};\n","\"use client\";\nimport { jsx } from \"react/jsx-runtime\";\nimport styled from \"styled-components\";\nimport { accentColorDanger } from \"@churchofjesuschrist/eden-style-constants\";\nimport { Text4 } from \"@churchofjesuschrist/eden-text\";\nconst InternalUseOnlyRequiredIndicator = styled(Text4)`\n color: ${accentColorDanger};\n`;\nconst RequiredIndicator = (props) => /* @__PURE__ */ jsx(InternalUseOnlyRequiredIndicator, { renderAs: \"span\", ...props, children: \"*\" });\nRequiredIndicator.displayName = \"RequiredIndicator\";\nvar RequiredIndicator_default = RequiredIndicator;\nexport {\n InternalUseOnlyRequiredIndicator,\n RequiredIndicator_default as default\n};\n","import { useEffect, useState } from \"react\";\nconst getValidityState = (validationMessage, warningMessage) => {\n if (validationMessage) {\n return \"error\";\n } else if (warningMessage) {\n return \"warning\";\n } else if (validationMessage === \"\") {\n return \"success\";\n } else {\n return \"unknown\";\n }\n};\nfunction useValidation(id, onValidate) {\n const [validationMessage, setValidationMessage] = useState();\n const [warningMessage, setCustomWarning] = useState();\n const reset = () => {\n setValidationMessage(void 0);\n setCustomWarning(void 0);\n };\n useEffect(() => {\n const input = document.getElementById(id);\n if (input) {\n input._edenReset = reset;\n if (input.type === \"fieldset\") {\n input.setCustomValidity = new Proxy(input.setCustomValidity, {\n apply: (target, that, args) => {\n input._edenValidationMessage = args.join(\"\\n\");\n target.apply(that, args);\n }\n });\n Reflect.defineProperty(input, \"validationMessage\", {\n get() {\n return input._edenValidationMessage || [...input.elements].find((elem) => !!elem.validationMessage)?.validationMessage || \"\";\n }\n });\n }\n }\n }, [id]);\n useEffect(() => {\n const input = document.getElementById(id);\n if (input) {\n if (!input.form || input.form.dataset.edenFormNoValidate) {\n reset();\n return;\n }\n const checkValidity = (event) => {\n requestAnimationFrame(() => {\n const target = event.target;\n target.checkValidity ? target.checkValidity() : input.checkValidity();\n updateValidationMessage(event);\n });\n };\n const updateValidationMessage = () => {\n onValidate?.(input, {\n setCustomWarning,\n ...input._edenOnValidateDetails ?? {}\n //_edenOnValidateDetails is set per form control that needs extra helper methods.\n });\n setValidationMessage(input.validationMessage);\n };\n const inputHandler = (event) => {\n if (validationMessage !== void 0) {\n checkValidity(event);\n }\n };\n input.addEventListener(\"input\", inputHandler, true);\n input.addEventListener(\"change\", checkValidity, true);\n input.addEventListener(\"validate\", checkValidity, true);\n input.addEventListener(\"invalid\", updateValidationMessage, true);\n return () => {\n input.removeEventListener(\"input\", inputHandler, true);\n input.removeEventListener(\"change\", checkValidity, true);\n input.removeEventListener(\"validate\", checkValidity, true);\n input.removeEventListener(\"invalid\", updateValidationMessage, true);\n };\n }\n }, [id, validationMessage, onValidate]);\n return { validationMessage, warningMessage };\n}\nexport {\n useValidation as default,\n getValidityState\n};\n","\"use client\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from \"react\";\nimport styled from \"styled-components\";\nimport { backgroundColorLevelCurrent } from \"@churchofjesuschrist/eden-style-constants\";\nimport { sharedCheckCss } from \"../utils/sharedCss\";\nconst InternalUseOnlyRadio = styled.input.attrs({ type: \"radio\" })`\n ${sharedCheckCss};\n border-radius: 50%;\n\n &:checked {\n box-shadow: inset 0px 0px 0px 3px ${backgroundColorLevelCurrent};\n }\n`;\nconst RadioComponent = (props, ref) => /* @__PURE__ */ jsx(InternalUseOnlyRadio, { ...props, ref });\nconst Radio = forwardRef(RadioComponent);\nRadio.displayName = \"Radio\";\nRadio.isInput = true;\nvar Radio_default = Radio;\nexport {\n InternalUseOnlyRadio,\n Radio_default as default\n};\n","\"use client\";\nimport { jsx } from \"react/jsx-runtime\";\nimport styled from \"styled-components\";\nimport { textColorSecondary } from \"@churchofjesuschrist/eden-style-constants\";\nimport { Text4 } from \"@churchofjesuschrist/eden-text\";\nconst InternalUseOnlyLegend = styled(Text4)`\n border: none;\n padding: 0;\n color: ${textColorSecondary};\n`;\nconst Legend = ({ children, ...props }) => /* @__PURE__ */ jsx(InternalUseOnlyLegend, { renderAs: \"legend\", ...props, children });\nLegend.displayName = \"Legend\";\nvar Legend_default = Legend;\nexport {\n InternalUseOnlyLegend,\n Legend_default as default\n};\n","\"use client\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nimport { forwardRef, useId } from \"react\";\nimport styled from \"styled-components\";\nimport {\n spacing4,\n spacing8,\n textColorPrimary,\n textColorTertiary\n} from \"@churchofjesuschrist/eden-style-constants\";\nimport { InternalUseOnlyLabel } from \"./Label\";\nimport { InternalUseOnlyRadio } from \"./Radio\";\nimport { InternalUseOnlyCheckbox } from \"./Checkbox\";\nimport { ValidityStateContext } from \"../utils/context\";\nimport Legend, { InternalUseOnlyLegend } from \"./Legend\";\nimport Hint, { InternalUseOnlyHint } from \"./Hint\";\nimport RequiredIndicator from \"./RequiredIndicator\";\nimport Tooltip from \"./Tooltip\";\nimport {\n ConditionalWrapper,\n deepMapChildren\n} from \"@churchofjesuschrist/eden-utilities\";\nimport { Row } from \"@churchofjesuschrist/eden-row\";\nimport useValidation, { getValidityState } from \"../utils/useValidation\";\nimport { valuesByValidityState } from \"../utils/sharedCss\";\nconst Container = styled.fieldset`\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n border: none;\n padding: 0;\n margin: 0;\n\n & > :is(legend, label, input) {\n flex: 0 1 100%;\n padding: ${spacing4} ${spacing8};\n }\n\n & > :first-child {\n padding-block-start: 0;\n }\n\n & > :last-child {\n padding-block-end: 0;\n }\n\n & ${InternalUseOnlyLegend} {\n display: flex;\n gap: ${spacing4};\n }\n\n & > ${InternalUseOnlyLabel} {\n position: relative;\n display: flex;\n gap: ${spacing8};\n color: ${textColorPrimary};\n padding: ${spacing8};\n\n &::before {\n content: \"\";\n position: absolute;\n inset-block-start: 0;\n inset-inline-start: 0;\n inset-inline-end: 0;\n inset-block-end: 0;\n border: 1px solid\n ${({ $validityState }) => $validityState === \"error\" ? valuesByValidityState.error.borderColor : \"transparent\"};\n }\n\n &:not(:first-of-type)::before {\n border-block-start: 0;\n }\n\n &:not(:last-of-type)::before {\n border-block-end: 0;\n }\n }\n\n &:has(${InternalUseOnlyRadio}, ${InternalUseOnlyCheckbox}):not(\n :has(${InternalUseOnlyRadio}:enabled, ${InternalUseOnlyCheckbox}:enabled)\n )\n ${InternalUseOnlyLegend},\n ${InternalUseOnlyHint} {\n color: ${textColorTertiary};\n cursor: not-allowed;\n }\n\n ${InternalUseOnlyRadio},\n ${InternalUseOnlyCheckbox} {\n margin-inline-start: ${spacing8};\n }\n\n ${InternalUseOnlyLabel} ${InternalUseOnlyRadio},\n ${InternalUseOnlyLabel} ${InternalUseOnlyCheckbox} {\n margin-inline-start: 0;\n }\n\n > ${InternalUseOnlyRadio}\n + ${InternalUseOnlyLabel},\n > ${InternalUseOnlyCheckbox}\n + ${InternalUseOnlyLabel} {\n flex: 0 1 calc(100% - (${spacing8} + 1.125rem));\n\n &::before {\n inset-inline-start: calc(-1 * (${spacing8} + 1.125rem));\n }\n }\n`;\nconst FieldSetComponent = ({\n \"aria-describedby\": ariaDescribedBy,\n children,\n description,\n id,\n legend,\n onValidate,\n tooltip,\n ...props\n}, ref) => {\n const fieldSetId = useId();\n const hintId = useId();\n const tooltipCalloutId = useId();\n const { validationMessage, warningMessage } = useValidation(\n id ? id : fieldSetId,\n onValidate\n );\n let hasHint = false;\n let hasLegend = false;\n let isRequired = false;\n deepMapChildren(children, (child) => {\n if (child?.type === Hint) {\n hasHint = true;\n }\n if (child?.type === Legend) {\n hasLegend = true;\n }\n if (child?.props?.required) {\n isRequired = true;\n }\n });\n if (hasLegend && (tooltip || legend)) {\n console.warn(\n \"A child Legend component is detected. The tooltip and legend property cannot be used.\"\n );\n }\n if (hasHint && description) {\n console.warn(\n \"A child Hint component is detected. The description property cannot be used.\"\n );\n }\n const showHint = !hasHint && (description || validationMessage || warningMessage);\n const validityState = getValidityState(validationMessage, warningMessage);\n const getDescribedBy = () => {\n if (ariaDescribedBy) {\n return ariaDescribedBy;\n }\n const ids = [];\n if (tooltip) {\n ids.push(tooltipCalloutId);\n }\n if (showHint) {\n ids.push(hintId);\n }\n return ids.length === 0 ? void 0 : ids.join(\" \");\n };\n return /* @__PURE__ */ jsx(\n Container,\n {\n $validityState: validityState,\n \"aria-describedby\": getDescribedBy(),\n id: id ? id : fieldSetId,\n ...props,\n ref,\n children: /* @__PURE__ */ jsxs(ValidityStateContext.Provider, { value: validityState, children: [\n !hasLegend ? /* @__PURE__ */ jsxs(\n ConditionalWrapper,\n {\n condition: tooltip,\n wrapper: /* @__PURE__ */ jsx(Row, { verticalAlign: \"center\", gapSize: \"4\" }),\n children: [\n legend ? /* @__PURE__ */ jsxs(Legend, { children: [\n isRequired ? /* @__PURE__ */ jsx(RequiredIndicator, {}) : null,\n legend\n ] }) : null,\n tooltip ? /* @__PURE__ */ jsx(Tooltip, { calloutId: tooltipCalloutId, children: tooltip }) : null\n ]\n }\n ) : null,\n children,\n showHint ? /* @__PURE__ */ jsxs(Hint, { id: hintId, children: [\n validationMessage ? validationMessage : null,\n !validationMessage && warningMessage ? warningMessage : null,\n description ? validationMessage || warningMessage ? \" \" + description : description : null\n ] }) : null\n ] })\n }\n );\n};\nconst FieldSet = forwardRef(FieldSetComponent);\nFieldSet.displayName = \"FieldSet\";\nvar FieldSet_default = FieldSet;\nexport {\n FieldSet_default as default\n};\n","\"use client\";\nimport { jsx } from \"react/jsx-runtime\";\nimport styled from \"styled-components\";\nimport {\n textColorPrimary,\n textColorSecondary,\n textColorTertiary\n} from \"@churchofjesuschrist/eden-style-constants\";\nimport { Text4 } from \"@churchofjesuschrist/eden-text\";\nconst InternalUseOnlyLabel = styled(Text4)`\n color: ${textColorSecondary};\n\n &:has(input[type=\"checkbox\"], input[type=\"radio\"]) {\n color: ${textColorPrimary};\n }\n &:has(input[type=\"checkbox\"]:disabled, input[type=\"radio\"]:disabled) {\n color: ${textColorTertiary};\n cursor: not-allowed;\n }\n`;\nconst Label = ({ children, ...props }) => {\n return /* @__PURE__ */ jsx(InternalUseOnlyLabel, { renderAs: \"label\", ...props, children });\n};\nLabel.displayName = \"Label\";\nvar Label_default = Label;\nexport {\n InternalUseOnlyLabel,\n Label_default as default\n};\n","\"use client\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\nimport {\n useContext,\n useRef,\n Children,\n useState,\n useEffect,\n forwardRef\n} from \"react\";\nimport { ContextualMenu as EdenContextualMenu } from \"@churchofjesuschrist/eden-contextual-menu\";\nimport styled from \"styled-components\";\nimport {\n toHTMLString,\n arrowDropDown\n} from \"@churchofjesuschrist/eden-icons-raw\";\nimport {\n sharedInputCss,\n internalUseOnlyOpenDetailsStyles\n} from \"../utils/sharedCss\";\nimport { spacing8, spacing4 } from \"@churchofjesuschrist/eden-style-constants\";\nimport {\n ValidityStateContext,\n SmallContext,\n IdContext,\n DescribedByContext,\n DisabledContext\n} from \"../utils/context\";\nimport Label from \"./Label\";\nimport Checkbox from \"./Checkbox\";\nimport EdenFieldSet from \"./FieldSet\";\nimport { AppearanceContext } from \"@churchofjesuschrist/eden-appearance\";\nimport { useHasOverflow } from \"@churchofjesuschrist/eden-has-overflow\";\nimport { mergeRefs } from \"@churchofjesuschrist/eden-utilities\";\nconst InternalUseOnlySelect = styled.select`\n ${sharedInputCss};\n margin: 0;\n appearance: none;\n padding: ${({ $small }) => $small ? `${spacing4} ${spacing8}` : spacing8};\n ${internalUseOnlyOpenDetailsStyles};\n\n ${({ $hasOverflow, multiple }) => $hasOverflow && multiple ? `\n overflow: hidden;\n & > option {\n pointer-events: none;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n & > option:not(:first-of-type) {\n visibility: hidden;\n }\n ` : multiple ? `\n min-width: 14ch;\n ` : \"\"};\n &:disabled {\n opacity: 1; /* browser default goes to .7 for some reason */\n }\n`;\nconst ContextualMenu = styled(EdenContextualMenu)`\n max-height: 275px;\n min-width: 200px;\n max-width: 100%;\n`;\nconst FieldSet = styled(EdenFieldSet)`\n & > div {\n width: 100%;\n }\n`;\nconst SelectComponent = ({\n \"aria-describedby\": ariaDescribedBy,\n children,\n defaultValue,\n id,\n multiple,\n small,\n value,\n disabled,\n ...props\n}, forwardedRef) => {\n const validityStateContext = useContext(ValidityStateContext);\n const smallContext = useContext(SmallContext);\n const idContext = useContext(IdContext);\n const describedByContext = useContext(DescribedByContext);\n const curAppearanceContext = useContext(AppearanceContext);\n const disabledContext = useContext(DisabledContext);\n const internalRef = useRef();\n const ref = forwardedRef ?? internalRef;\n const [open, setOpen] = useState(false);\n const fieldSetRef = useRef(null);\n const [activeChild, setActiveChild] = useState(1);\n const [optionValues, setOptionValues] = useState(value ?? defaultValue ?? []);\n const [overflowRef, { hasY }] = useHasOverflow(children, { startY: true });\n const hasOverflow = hasY && multiple;\n useEffect(() => {\n const closestForm = ref.current.form;\n if (!closestForm) {\n return;\n }\n const resetHandler = () => {\n setOptionValues(value ?? defaultValue ?? []);\n };\n closestForm.addEventListener(\"reset\", resetHandler);\n return () => closestForm.removeEventListener(\"reset\", resetHandler);\n });\n useEffect(() => {\n setOptionValues(value ?? defaultValue ?? []);\n }, [value, defaultValue]);\n useEffect(() => {\n if (open === true) {\n const fieldSet = fieldSetRef.current;\n if (!fieldSet) {\n return;\n }\n const firstChecked = fieldSet.querySelector(`input:checked`);\n const animationFrame = requestAnimationFrame(() => {\n if (firstChecked) {\n firstChecked.focus();\n setActiveChild(\n Array.from(firstChecked.parentNode.parentNode.children).indexOf(\n firstChecked.parentNode\n ) + 1\n );\n } else {\n fieldSet.querySelector(`label:nth-child(1)`).focus();\n setActiveChild(1);\n }\n });\n return () => cancelAnimationFrame(animationFrame);\n }\n }, [open]);\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsxs(\n InternalUseOnlySelect,\n {\n \"aria-describedby\": ariaDescribedBy ? ariaDescribedBy : describedByContext,\n defaultValue,\n id: id ? id : idContext,\n multiple,\n $small: small ? small : smallContext,\n disabled: disabled ? disabled : disabledContext,\n $validityState: validityStateContext,\n $icon: toHTMLString(arrowDropDown),\n value,\n $curAppearanceContext: curAppearanceContext,\n $hasOverflow: hasOverflow,\n ...hasOverflow ? {\n onMouseDown: (event) => {\n event.preventDefault();\n },\n onClick: (event) => {\n event.preventDefault();\n setOpen(true);\n },\n onKeyDown: (event) => {\n if (event.code === \"ArrowDown\") {\n event.preventDefault();\n setOpen(true);\n }\n if (event.code === \"ArrowUp\") {\n event.preventDefault();\n setOpen(true);\n }\n if (event.code === \"Space\") {\n event.preventDefault();\n setOpen(true);\n }\n },\n onScroll: (event) => {\n event.preventDefault();\n event.target.scrollTop = 0;\n }\n } : {},\n ...props,\n ref: multiple ? mergeRefs(overflowRef, ref) : ref,\n children: [\n hasOverflow ? /* @__PURE__ */ jsx(\"option\", { value: \"eden-multiple-select-display-value\", children: Children.toArray(children).filter((child) => {\n if (typeof child.props.value !== \"undefined\") {\n return optionValues.includes(child.props.value.toString());\n } else {\n return optionValues.includes(child.props.children);\n }\n }).map((child) => child.props.children || child.props.value).join(\", \") }) : null,\n children\n ]\n }\n ),\n hasOverflow && ref.current ? /* @__PURE__ */ jsx(\n ContextualMenu,\n {\n forRef: ref,\n style: { width: ref.current.offsetWidth + \"px\" },\n open,\n onClickOutside: () => {\n setOpen(false);\n },\n onKeyDown: (event) => {\n const fieldSet = fieldSetRef.current;\n if (event.code === \"ArrowDown\") {\n event.preventDefault();\n if (activeChild < fieldSet.querySelectorAll(\"label\").length) {\n const newActiveChild = activeChild + 1;\n fieldSet.querySelector(`label:nth-child(${newActiveChild})`).focus();\n setActiveChild(newActiveChild);\n }\n }\n if (event.code === \"ArrowUp\") {\n event.preventDefault();\n if (activeChild > 1) {\n const newActiveChild = activeChild - 1;\n fieldSet.querySelector(`label:nth-child(${newActiveChild})`).focus();\n setActiveChild(newActiveChild);\n }\n }\n if (event.code === \"Escape\") {\n event.preventDefault();\n setOpen(false);\n ref.current.focus();\n }\n if (event.code === \"Enter\") {\n event.preventDefault();\n fieldSet.querySelector(`label:nth-child(${activeChild})`).click();\n }\n if (event.code === \"Tab\") {\n setOpen(false);\n }\n },\n children: /* @__PURE__ */ jsx(FieldSet, { ref: fieldSetRef, children: Children.toArray(children).map(({ props: props2 }, index) => {\n const childValue = props2.value.toString() || props2.children;\n return /* @__PURE__ */ jsxs(Label, { children: [\n props2.children || childValue,\n /* @__PURE__ */ jsx(\n Checkbox,\n {\n disabled: props2.disabled,\n tabIndex: \"-1\",\n checked: optionValues.includes(childValue),\n onChange: (event) => {\n setActiveChild(index + 1);\n const option = [...ref.current?.options ?? []].find(\n (o) => o.value === childValue\n );\n if (option) {\n if (event.target.checked) {\n option.selected = \"selected\";\n } else {\n option.selected = \"\";\n }\n }\n setOptionValues(\n [...ref.current?.selectedOptions ?? []].map(\n (option2) => option2.value\n )\n );\n ref.current?.dispatchEvent(\n new Event(\"change\", { bubbles: true })\n );\n }\n }\n )\n ] }, childValue);\n }) })\n }\n ) : null\n ] });\n};\nconst Select = forwardRef(SelectComponent);\nSelect.displayName = \"Select\";\nSelect.isInput = true;\nvar Select_default = Select;\nexport {\n InternalUseOnlySelect,\n Select_default as default\n};\n","\"use client\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\nimport { useState, useRef } from \"react\";\nimport styled from \"styled-components\";\nimport { Icon } from \"@churchofjesuschrist/eden-buttons\";\nimport { Help } from \"@churchofjesuschrist/eden-icons\";\nimport { Callout as EdenCallout } from \"@churchofjesuschrist/eden-callout\";\nimport {\n spacing8,\n accentColorLink\n} from \"@churchofjesuschrist/eden-style-constants\";\nconst Callout = styled(EdenCallout)`\n padding: ${spacing8};\n`;\nconst Tooltip = ({\n children,\n title = \"Additional Details\",\n calloutId,\n placement = \"top\",\n ...props\n}) => {\n const [open, setOpen] = useState(false);\n const iconRef = useRef(null);\n const openCallout = () => {\n setOpen(true);\n };\n const closeCallout = () => {\n setOpen(false);\n };\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(\n Icon,\n {\n title,\n size: \"small\",\n onClick: openCallout,\n ...props,\n ref: iconRef,\n children: /* @__PURE__ */ jsx(Help, { color: accentColorLink })\n }\n ),\n /* @__PURE__ */ jsx(\n Callout,\n {\n id: calloutId,\n open,\n onClickOutside: closeCallout,\n forRef: iconRef,\n placement,\n children\n }\n )\n ] });\n};\nTooltip.displayName = \"Tooltip\";\nvar Tooltip_default = Tooltip;\nexport {\n Tooltip_default as default\n};\n","import { jsx } from \"react/jsx-runtime\";\nconst ConditionalWrapper = ({ condition, wrapper, children }) => {\n if (condition) {\n const Wrapper = wrapper.type;\n return /* @__PURE__ */ jsx(Wrapper, { ...wrapper.props, children });\n }\n return children;\n};\nConditionalWrapper.displayName = \"ConditionalWrapper\";\nvar ConditionalWrapper_default = ConditionalWrapper;\nexport {\n ConditionalWrapper_default as default\n};\n","import { jsx } from \"react/jsx-runtime\";\nimport styled from \"styled-components\";\nimport {\n spacing4,\n spacing8,\n spacing16,\n grey15\n} from \"@churchofjesuschrist/eden-style-constants\";\nconst StyledFooter = styled.footer`\n border-block-start: 1px solid ${grey15};\n padding: calc(${spacing8} + ${spacing4}) ${spacing16};\n`;\nconst Footer = ({ children, ...props }) => /* @__PURE__ */ jsx(StyledFooter, { ...props, children });\nFooter.displayName = \"Footer\";\nvar Footer_default = Footer;\nexport {\n Footer_default as default\n};\n","\"use client\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nimport styled from \"styled-components\";\nimport { Callout } from \"@churchofjesuschrist/eden-callout\";\nimport {\n backgroundColorHover,\n borderColorPrimary,\n borderColorSecondary,\n spacing4,\n spacing8,\n spacing16\n} from \"@churchofjesuschrist/eden-style-constants\";\nimport { Fade, Scrollable } from \"@churchofjesuschrist/eden-fade\";\nimport Footer from \"./components/Footer\";\nconst StyledCallout = styled(Callout)`\n min-width: 12.5rem;\n max-width: 17.5rem;\n max-height: min(37.5rem, 100vh);\n display: flex;\n flex-direction: column;\n & hr {\n height: 1px;\n background-color: ${borderColorPrimary};\n border: none;\n margin: 0;\n }\n &&& label {\n display: flex;\n padding: calc(${spacing8} + ${spacing4}) ${spacing16};\n justify-content: space-between;\n column-gap: ${spacing8};\n width: 100%;\n\n input {\n margin-inline-start: auto;\n }\n\n &:hover {\n background: ${backgroundColorHover};\n cursor: pointer;\n }\n }\n &&& fieldset {\n display: flex;\n flex-direction: column;\n padding-block-end: ${spacing16};\n\n & legend {\n display: block;\n width: 100%;\n padding: calc(${spacing8} + ${spacing4}) ${spacing16} ${spacing8};\n\n &::after {\n content: \"\";\n display: block;\n width: 100%;\n border-bottom: 1px solid ${borderColorSecondary};\n }\n }\n\n /* stylelint-disable-next-line no-descending-specificity */\n & label {\n justify-content: flex-start;\n }\n\n & button,\n & a {\n display: inline-flex;\n width: 100%;\n padding: calc(${spacing8} + ${spacing4}) ${spacing16};\n font-size: 14px;\n justify-content: start;\n\n &:hover {\n text-decoration: underline;\n }\n }\n }\n\n & input:is([type=\"checkbox\"], [type=\"radio\"]) {\n cursor: pointer;\n }\n`;\nconst ContextualMenu = ({\n forRef,\n children,\n open,\n onClickOutside,\n footer,\n ...props\n}) => {\n return /* @__PURE__ */ jsxs(\n StyledCallout,\n {\n forRef,\n open,\n onClickOutside,\n ...props,\n children: [\n /* @__PURE__ */ jsx(Fade, { children: /* @__PURE__ */ jsx(Scrollable, { children }) }),\n footer ? /* @__PURE__ */ jsx(Footer, { children: footer }) : null\n ]\n }\n );\n};\nContextualMenu.displayName = \"ContextualMenu\";\nexport {\n ContextualMenu\n};\n","const arrowDropDown = {\n type: \"svg\",\n props: {\n viewBox: \"0 0 24 24\",\n xmlns: \"http://www.w3.org/2000/svg\"\n },\n metadata: {\n description: \"Indicates a dropdown menu or hidden options.\",\n usage: \"\",\n category: \"Navigation\",\n tags: [\"select\", \"caret\", \"down\"]\n },\n children: [\n {\n type: \"path\",\n props: {\n d: \"M7.24 9.69c-.404-.38-.286-.69.264-.69h8.993c.549 0 .666.31.264.69l-4.4 4.169a.527.527 0 0 1-.721 0L7.24 9.69Z\"\n }\n }\n ]\n};\nvar arrowDropDown_default = arrowDropDown;\nexport {\n arrowDropDown_default as default\n};\n"],"names":["colorsByValidityState","error","accentColorDanger","InternalUseOnlyHint","styled","Text5","_ref","$validityState","textColorSecondary","Hint","_ref2","children","props","validityStateContext","useContext","ValidityStateContext","jsx","renderAs","displayName","Hint_default","InternalUseOnlyCheckbox","input","attrs","type","sharedCheckCss","borderRadius","backgroundColorLevel1","Checkbox","forwardRef","CheckboxComponent","ref","curAppearanceContext","AppearanceContext","$curAppearanceContext","isInput","Checkbox_default","InternalUseOnlyRequiredIndicator","Text4","RequiredIndicator","RequiredIndicator_default","getValidityState","validationMessage","warningMessage","useValidation","id","onValidate","setValidationMessage","useState","setCustomWarning","reset","useEffect","document","getElementById","_edenReset","setCustomValidity","Proxy","apply","target","that","args","_edenValidationMessage","join","Reflect","defineProperty","get","elements","find","elem","form","dataset","edenFormNoValidate","checkValidity","event","requestAnimationFrame","updateValidationMessage","_edenOnValidateDetails","inputHandler","addEventListener","removeEventListener","InternalUseOnlyRadio","backgroundColorLevelCurrent","Radio","RadioComponent","InternalUseOnlyLegend","Legend","Legend_default","Container","fieldset","spacing4","spacing8","InternalUseOnlyLabel","textColorPrimary","valuesByValidityState","borderColor","textColorTertiary","FieldSet","FieldSetComponent","ariaDescribedBy","description","legend","tooltip","fieldSetId","useId","hintId","tooltipCalloutId","hasHint","hasLegend","isRequired","deepMapChildren","child","required","console","warn","showHint","validityState","getDescribedBy","ids","push","length","jsxs","Provider","value","ConditionalWrapper","condition","wrapper","Row","verticalAlign","gapSize","Tooltip","calloutId","FieldSet_default","Label","Label_default","InternalUseOnlySelect","select","sharedInputCss","$small","internalUseOnlyOpenDetailsStyles","$hasOverflow","multiple","ContextualMenu","EdenContextualMenu","EdenFieldSet","Select","SelectComponent","_ref3","forwardedRef","defaultValue","small","disabled","smallContext","SmallContext","idContext","IdContext","describedByContext","DescribedByContext","disabledContext","DisabledContext","internalRef","useRef","open","setOpen","fieldSetRef","activeChild","setActiveChild","optionValues","setOptionValues","overflowRef","hasY","useHasOverflow","startY","hasOverflow","closestForm","current","resetHandler","fieldSet","firstChecked","querySelector","animationFrame","focus","Array","from","parentNode","indexOf","cancelAnimationFrame","Fragment","$icon","toHTMLString","arrowDropDown","onMouseDown","preventDefault","onClick","onKeyDown","code","onScroll","scrollTop","mergeRefs","Children","toArray","filter","includes","toString","map","forRef","style","width","offsetWidth","onClickOutside","querySelectorAll","newActiveChild","click","_ref4","index","props2","childValue","tabIndex","checked","onChange","option","options","o","selected","selectedOptions","option2","dispatchEvent","Event","bubbles","Select_default","Callout","EdenCallout","title","placement","iconRef","Icon","size","openCallout","Help","color","accentColorLink","closeCallout","Tooltip_default","Wrapper","ConditionalWrapper_default","StyledFooter","footer","grey15","spacing16","Footer","Footer_default","StyledCallout","borderColorPrimary","backgroundColorHover","borderColorSecondary","Fade","Scrollable","arrowDropDown_default","viewBox","xmlns","metadata","usage","category","tags","d"],"sourceRoot":""}