@fuf-stack/uniform 1.29.0 → 1.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/Checkboxes/index.d.mts +61 -14
- package/dist/Checkboxes/index.d.mts.map +1 -1
- package/dist/Checkboxes/index.mjs +8 -3
- package/dist/Checkboxes/index.mjs.map +1 -1
- package/dist/DatePicker/index.d.mts +129 -1120
- package/dist/DatePicker/index.d.mts.map +1 -1
- package/dist/DatePicker/index.mjs +38 -32
- package/dist/DatePicker/index.mjs.map +1 -1
- package/dist/FieldReset/index.d.mts +1 -1
- package/dist/Form/index.d.mts +12 -12
- package/dist/{FormContext-BnNJYZOo.d.mts → FormContext-Dvt3MiKq.d.mts} +3 -3
- package/dist/{FormContext-BnNJYZOo.d.mts.map → FormContext-Dvt3MiKq.d.mts.map} +1 -1
- package/dist/Input/index.d.mts +63 -452
- package/dist/Input/index.d.mts.map +1 -1
- package/dist/Input/index.mjs +19 -14
- package/dist/Input/index.mjs.map +1 -1
- package/dist/RadioBoxes/index.d.mts +157 -888
- package/dist/RadioBoxes/index.d.mts.map +1 -1
- package/dist/RadioBoxes/index.mjs +27 -20
- package/dist/RadioBoxes/index.mjs.map +1 -1
- package/dist/RadioTabs/index.d.mts +93 -43
- package/dist/RadioTabs/index.d.mts.map +1 -1
- package/dist/RadioTabs/index.mjs +8 -5
- package/dist/RadioTabs/index.mjs.map +1 -1
- package/dist/Radios/index.d.mts +128 -1033
- package/dist/Radios/index.d.mts.map +1 -1
- package/dist/Radios/index.mjs +22 -18
- package/dist/Radios/index.mjs.map +1 -1
- package/dist/Select/index.d.mts +447 -3035
- package/dist/Select/index.d.mts.map +1 -1
- package/dist/Select/index.mjs +79 -45
- package/dist/Select/index.mjs.map +1 -1
- package/dist/Slider/index.d.mts +174 -1337
- package/dist/Slider/index.d.mts.map +1 -1
- package/dist/Slider/index.mjs +41 -28
- package/dist/Slider/index.mjs.map +1 -1
- package/dist/Switch/index.d.mts +125 -944
- package/dist/Switch/index.d.mts.map +1 -1
- package/dist/Switch/index.mjs +18 -14
- package/dist/Switch/index.mjs.map +1 -1
- package/dist/SwitchBox/index.d.mts +140 -99
- package/dist/SwitchBox/index.d.mts.map +1 -1
- package/dist/SwitchBox/index.mjs +9 -6
- package/dist/SwitchBox/index.mjs.map +1 -1
- package/dist/TextArea/index.d.mts +63 -452
- package/dist/TextArea/index.d.mts.map +1 -1
- package/dist/TextArea/index.mjs +16 -12
- package/dist/TextArea/index.mjs.map +1 -1
- package/dist/Time/index.d.mts +82 -729
- package/dist/Time/index.d.mts.map +1 -1
- package/dist/Time/index.mjs +22 -18
- package/dist/Time/index.mjs.map +1 -1
- package/dist/hooks/useFormContext/index.d.mts +1 -1
- package/dist/hooks/useUniformField/index.d.mts +1 -1
- package/dist/hooks/useUniformField/index.mjs +5 -1
- package/dist/hooks/useUniformField/index.mjs.map +1 -1
- package/dist/hooks/useUniformFieldArray/index.d.mts +1 -1
- package/dist/{index-DaiTW5Bl.d.mts → index-DsB0_365.d.mts} +9 -2
- package/dist/index-DsB0_365.d.mts.map +1 -0
- package/dist/{useFormContext-BhPzFXwF.d.mts → useFormContext-BSSUZ0Md.d.mts} +2 -2
- package/dist/{useFormContext-BhPzFXwF.d.mts.map → useFormContext-BSSUZ0Md.d.mts.map} +1 -1
- package/package.json +2 -2
- package/dist/index-DaiTW5Bl.d.mts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/Radios/Radios.tsx"],"mappings":";;qBAaa,kBAAc
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/Radios/Radios.tsx"],"mappings":";;qBAaa,kBAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAwCtB,eAAe,eAAe;KAC9B,YAAY,mBAAmB;UAEnB;;EAEf;;EAEA,OAAO;;EAEP,QAAQ;;EAER,OAAO;;EAEP;;EAEA;;UAGe;;EAEf,QAAQ;;EAER,OAAO;;EAEP;;IAEE;;IAEA;;IAEA;;;UAIa,oBAAoB;;EAEnC;;EAEA,YAAY,SAAS,0BAA0B;;EAE/C,YAAY;;EAEZ;;EAEA;;EAEA,QAAQ;;EAER;;EAEA,SAAS;;EAET;;EAEA;;;;;cAMI,WAAU,UAAA,WAAA,QAAA,MAAA,YAAA,qBAOb,gBAAc"}
|
package/dist/Radios/index.mjs
CHANGED
|
@@ -4,32 +4,35 @@ import { slugify, tv, variantsToClassNames } from "@fuf-stack/pixel-utils";
|
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { Radio, RadioGroup } from "@heroui/radio";
|
|
6
6
|
// src/Radios/Radios.tsx
|
|
7
|
-
const radiosVariants = tv({
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
7
|
+
const radiosVariants = tv({
|
|
8
|
+
slots: {
|
|
9
|
+
base: [
|
|
10
|
+
"group",
|
|
11
|
+
"flex w-full flex-col",
|
|
12
|
+
"gap-y-1.5"
|
|
13
|
+
],
|
|
14
|
+
errorMessage: "",
|
|
15
|
+
itemBase: ["data-[disabled=true]:pointer-events-auto data-[disabled=true]:cursor-not-allowed", "data-[disabled=true]:**:cursor-not-allowed"],
|
|
16
|
+
itemControl: "bg-focus group-data-[invalid=true]:bg-danger",
|
|
17
|
+
itemDescription: "",
|
|
18
|
+
itemLabel: "text-sm",
|
|
19
|
+
itemLabelWrapper: "ml-2",
|
|
20
|
+
itemWrapper: "group-data-[invalid=true]:border-danger! [&:not(group-data-[invalid=\"true\"]):not(group-data-[selected=\"false\"])]:border-focus",
|
|
21
|
+
label: "mb-2 inline-flex cursor-default text-sm text-foreground subpixel-antialiased group-data-[invalid=true]:text-danger",
|
|
22
|
+
wrapper: ""
|
|
23
|
+
},
|
|
24
|
+
variants: { readOnly: { true: { base: "**:cursor-not-allowed cursor-not-allowed opacity-disabled" } } }
|
|
25
|
+
});
|
|
23
26
|
/**
|
|
24
27
|
* Radios component based on [HeroUI RadioGroup](https://www.heroui.com//docs/components/radio-group)
|
|
25
28
|
*/
|
|
26
29
|
const Radios = ({ children = void 0, className = void 0, inline = false, name, options, ...uniformFieldProps }) => {
|
|
27
|
-
const { ariaLabel, disabled, errorMessage, field: { onBlur, onChange, ref, value }, invalid, label, required, testId } = useUniformField({
|
|
30
|
+
const { ariaLabel, disabled, errorMessage, field: { onBlur, onChange, ref, value }, invalid, label, readOnly, required, testId } = useUniformField({
|
|
28
31
|
name,
|
|
29
32
|
...uniformFieldProps
|
|
30
33
|
});
|
|
31
34
|
const { convertToOriginalType } = createOptionValueConverter(options);
|
|
32
|
-
const variants = radiosVariants();
|
|
35
|
+
const variants = radiosVariants({ readOnly });
|
|
33
36
|
const classNames = variantsToClassNames(variants, className, "base");
|
|
34
37
|
const itemClassNames = {
|
|
35
38
|
base: classNames.itemBase,
|
|
@@ -70,6 +73,7 @@ const Radios = ({ children = void 0, className = void 0, inline = false, name, o
|
|
|
70
73
|
errorMessage,
|
|
71
74
|
isDisabled: disabled,
|
|
72
75
|
isInvalid: invalid,
|
|
76
|
+
isReadOnly: readOnly,
|
|
73
77
|
isRequired: required,
|
|
74
78
|
label: label ? /* @__PURE__ */ jsx("legend", { children: label }) : null,
|
|
75
79
|
name,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["HeroRadio","HeroRadioGroup"],"sources":["../../src/Radios/Radios.tsx","../../src/Radios/index.ts"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ReactElement, ReactNode } from 'react';\n\nimport {\n Radio as HeroRadio,\n RadioGroup as HeroRadioGroup,\n} from '@heroui/radio';\n\nimport { slugify, tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nimport { createOptionValueConverter } from '../helpers';\nimport { useUniformField } from '../hooks/useUniformField';\n\nexport const radiosVariants = tv({\n slots: {\n base: [\n // Needs group for group-data condition.\n 'group',\n // Match shared field wrapper layout.\n 'flex w-full flex-col',\n // Keep spacing between label/group consistent.\n 'gap-y-1.5',\n ],\n errorMessage: '',\n itemBase: '',\n itemControl: 'bg-focus group-data-[invalid=true]:bg-danger',\n itemDescription: '',\n itemLabel: 'text-sm',\n itemLabelWrapper: 'ml-2',\n itemWrapper:\n 'group-data-[invalid=true]:border-danger! [&:not(group-data-[invalid=\"true\"]):not(group-data-[selected=\"false\"])]:border-focus',\n // e.g.: https://github.com/heroui-inc/heroui/blob/main/packages/core/theme/src/components/select.ts\n label:\n 'mb-2 inline-flex cursor-default text-sm text-foreground subpixel-antialiased group-data-[invalid=true]:text-danger',\n wrapper: '',\n },\n});\n\ntype VariantProps = TVProps<typeof radiosVariants>;\ntype ClassName = TVClassName<typeof radiosVariants>;\n\nexport interface RadioOption {\n /** disables the option */\n disabled?: boolean;\n /** option icon */\n icon?: ReactNode;\n /** option label */\n label?: ReactNode;\n /** Arbitrary option metadata for custom render logic. */\n meta?: Record<string, unknown>;\n /** HTML data-testid attribute of the option */\n testId?: string;\n /** option value */\n value: string | number;\n}\n\nexport interface RadioRenderedOption {\n /** Option data as provided in `options` */\n option: RadioOption;\n /** Prebuilt radio element so consumers don't need to recreate HeroRadio */\n radio: ReactNode;\n /** Render-state flags for this option */\n state: {\n /** Whether this option is currently selected */\n selected: boolean;\n /** Whether this option is disabled */\n disabled: boolean;\n /** Whether the radio group is invalid */\n invalid: boolean;\n };\n}\n\nexport interface RadiosProps extends VariantProps {\n /** Custom aria-label for accessibility. If not provided, falls back to field name when no visible label exists */\n ariaLabel?: string;\n /** Optional child render function for custom full-list layout rendering. */\n children?: (options: RadioRenderedOption[]) => ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** Determines if the Buttons are disabled or not. */\n disabled?: boolean;\n /** determines orientation of the Buttons. */\n inline?: boolean;\n /** Label displayed next to the RadioButton. */\n label?: ReactNode;\n /** Name the RadioButtons are registered at in HTML forms (react-hook-form). */\n name: string;\n /** Radio button configuration. */\n options: RadioOption[];\n /** Id to grab element in internal tests. */\n testId?: string;\n}\n\n/**\n * Radios component based on [HeroUI RadioGroup](https://www.heroui.com//docs/components/radio-group)\n */\nconst Radios = ({\n children = undefined,\n className = undefined,\n inline = false,\n name,\n options,\n ...uniformFieldProps\n}: RadiosProps): ReactElement => {\n const {\n ariaLabel,\n disabled,\n errorMessage,\n field: { onBlur, onChange, ref, value },\n invalid,\n label,\n required,\n testId,\n } = useUniformField({\n name,\n ...uniformFieldProps,\n });\n\n // Create converter to preserve number types for option values\n const { convertToOriginalType } = createOptionValueConverter(options);\n\n // classNames from slots\n const variants = radiosVariants();\n const classNames = variantsToClassNames(variants, className, 'base');\n\n const itemClassNames = {\n base: classNames.itemBase,\n control: classNames.itemControl,\n description: classNames.itemDescription,\n label: classNames.itemLabel,\n labelWrapper: classNames.itemLabelWrapper,\n wrapper: classNames.itemWrapper,\n };\n\n const selectedValue = value != null ? String(value) : '';\n\n // Build option descriptors once so default and custom layouts share the same radio nodes/state.\n const renderedOptions = options.map((option) => {\n const optionTestId = slugify(\n `${testId}_option_${option.testId ?? option.value}`,\n { replaceDots: true },\n );\n const optionIsDisabled = !!disabled || !!option.disabled;\n const optionValue = String(option.value);\n const radio = (\n <HeroRadio\n key={optionValue}\n classNames={itemClassNames}\n data-testid={optionTestId}\n isDisabled={optionIsDisabled}\n value={optionValue}\n >\n {option.label ?? option.value}\n </HeroRadio>\n );\n\n return {\n option,\n radio,\n state: {\n selected: selectedValue === optionValue,\n disabled: optionIsDisabled,\n invalid: !!invalid,\n },\n };\n });\n\n return (\n <HeroRadioGroup\n ref={ref}\n aria-label={ariaLabel}\n classNames={classNames}\n // see HeroUI styles for group-data condition (data-invalid),\n // e.g.: https://github.com/heroui-inc/heroui/blob/main/packages/components/select/src/use-select.ts\n data-invalid={invalid}\n data-required={required}\n data-testid={testId}\n errorMessage={errorMessage}\n isDisabled={disabled}\n isInvalid={invalid}\n isRequired={required}\n label={label ? <legend>{label}</legend> : null}\n name={name}\n onBlur={onBlur}\n onValueChange={(newValue) => {\n onChange(convertToOriginalType(newValue));\n }}\n orientation={inline ? 'horizontal' : 'vertical'}\n value={selectedValue}\n >\n {/* Child render function can fully control list layout; fallback keeps default rendering. */}\n {children\n ? children(renderedOptions)\n : renderedOptions.map(({ radio }) => {\n return radio;\n })}\n </HeroRadioGroup>\n );\n};\n\nexport default Radios;\n","import Radios from './Radios';\n\nexport type { RadiosProps, RadioOption } from './Radios';\n\nexport { radiosVariants } from './Radios';\n\nexport default Radios;\n"],"mappings":";;;;;;AAaA,MAAa,iBAAiB,GAAG
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["HeroRadio","HeroRadioGroup"],"sources":["../../src/Radios/Radios.tsx","../../src/Radios/index.ts"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ReactElement, ReactNode } from 'react';\n\nimport {\n Radio as HeroRadio,\n RadioGroup as HeroRadioGroup,\n} from '@heroui/radio';\n\nimport { slugify, tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nimport { createOptionValueConverter } from '../helpers';\nimport { useUniformField } from '../hooks/useUniformField';\n\nexport const radiosVariants = tv({\n slots: {\n base: [\n // Needs group for group-data condition.\n 'group',\n // Match shared field wrapper layout.\n 'flex w-full flex-col',\n // Keep spacing between label/group consistent.\n 'gap-y-1.5',\n ],\n errorMessage: '',\n itemBase: [\n // HeroUI disables pointer events on disabled options, which hides the\n // cursor; re-enable them (the disabled input still blocks changes).\n 'data-[disabled=true]:pointer-events-auto data-[disabled=true]:cursor-not-allowed',\n // The hidden native input covers the option and keeps the browser's\n // default cursor, so override every descendant too.\n 'data-[disabled=true]:**:cursor-not-allowed',\n ],\n itemControl: 'bg-focus group-data-[invalid=true]:bg-danger',\n itemDescription: '',\n itemLabel: 'text-sm',\n itemLabelWrapper: 'ml-2',\n itemWrapper:\n 'group-data-[invalid=true]:border-danger! [&:not(group-data-[invalid=\"true\"]):not(group-data-[selected=\"false\"])]:border-focus',\n // e.g.: https://github.com/heroui-inc/heroui/blob/main/packages/core/theme/src/components/select.ts\n label:\n 'mb-2 inline-flex cursor-default text-sm text-foreground subpixel-antialiased group-data-[invalid=true]:text-danger',\n wrapper: '',\n },\n variants: {\n readOnly: {\n true: {\n // Inner controls set their own cursors, so override every descendant.\n base: '**:cursor-not-allowed cursor-not-allowed opacity-disabled',\n },\n },\n },\n});\n\ntype VariantProps = TVProps<typeof radiosVariants>;\ntype ClassName = TVClassName<typeof radiosVariants>;\n\nexport interface RadioOption {\n /** disables the option */\n disabled?: boolean;\n /** option icon */\n icon?: ReactNode;\n /** option label */\n label?: ReactNode;\n /** Arbitrary option metadata for custom render logic. */\n meta?: Record<string, unknown>;\n /** HTML data-testid attribute of the option */\n testId?: string;\n /** option value */\n value: string | number;\n}\n\nexport interface RadioRenderedOption {\n /** Option data as provided in `options` */\n option: RadioOption;\n /** Prebuilt radio element so consumers don't need to recreate HeroRadio */\n radio: ReactNode;\n /** Render-state flags for this option */\n state: {\n /** Whether this option is currently selected */\n selected: boolean;\n /** Whether this option is disabled */\n disabled: boolean;\n /** Whether the radio group is invalid */\n invalid: boolean;\n };\n}\n\nexport interface RadiosProps extends VariantProps {\n /** Custom aria-label for accessibility. If not provided, falls back to field name when no visible label exists */\n ariaLabel?: string;\n /** Optional child render function for custom full-list layout rendering. */\n children?: (options: RadioRenderedOption[]) => ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** Determines if the Buttons are disabled or not. */\n disabled?: boolean;\n /** determines orientation of the Buttons. */\n inline?: boolean;\n /** Label displayed next to the RadioButton. */\n label?: ReactNode;\n /** Name the RadioButtons are registered at in HTML forms (react-hook-form). */\n name: string;\n /** Radio button configuration. */\n options: RadioOption[];\n /** Prevents changes while keeping the radios focusable and its value in validation and submission */\n readOnly?: boolean;\n /** Id to grab element in internal tests. */\n testId?: string;\n}\n\n/**\n * Radios component based on [HeroUI RadioGroup](https://www.heroui.com//docs/components/radio-group)\n */\nconst Radios = ({\n children = undefined,\n className = undefined,\n inline = false,\n name,\n options,\n ...uniformFieldProps\n}: RadiosProps): ReactElement => {\n const {\n ariaLabel,\n disabled,\n errorMessage,\n field: { onBlur, onChange, ref, value },\n invalid,\n label,\n readOnly,\n required,\n testId,\n } = useUniformField({\n name,\n ...uniformFieldProps,\n });\n\n // Create converter to preserve number types for option values\n const { convertToOriginalType } = createOptionValueConverter(options);\n\n // classNames from slots\n const variants = radiosVariants({ readOnly });\n const classNames = variantsToClassNames(variants, className, 'base');\n\n const itemClassNames = {\n base: classNames.itemBase,\n control: classNames.itemControl,\n description: classNames.itemDescription,\n label: classNames.itemLabel,\n labelWrapper: classNames.itemLabelWrapper,\n wrapper: classNames.itemWrapper,\n };\n\n const selectedValue = value != null ? String(value) : '';\n\n // Build option descriptors once so default and custom layouts share the same radio nodes/state.\n const renderedOptions = options.map((option) => {\n const optionTestId = slugify(\n `${testId}_option_${option.testId ?? option.value}`,\n { replaceDots: true },\n );\n const optionIsDisabled = !!disabled || !!option.disabled;\n const optionValue = String(option.value);\n const radio = (\n <HeroRadio\n key={optionValue}\n classNames={itemClassNames}\n data-testid={optionTestId}\n isDisabled={optionIsDisabled}\n value={optionValue}\n >\n {option.label ?? option.value}\n </HeroRadio>\n );\n\n return {\n option,\n radio,\n state: {\n selected: selectedValue === optionValue,\n disabled: optionIsDisabled,\n invalid: !!invalid,\n },\n };\n });\n\n return (\n <HeroRadioGroup\n ref={ref}\n aria-label={ariaLabel}\n classNames={classNames}\n // see HeroUI styles for group-data condition (data-invalid),\n // e.g.: https://github.com/heroui-inc/heroui/blob/main/packages/components/select/src/use-select.ts\n data-invalid={invalid}\n data-required={required}\n data-testid={testId}\n errorMessage={errorMessage}\n isDisabled={disabled}\n isInvalid={invalid}\n isReadOnly={readOnly}\n isRequired={required}\n label={label ? <legend>{label}</legend> : null}\n name={name}\n onBlur={onBlur}\n onValueChange={(newValue) => {\n onChange(convertToOriginalType(newValue));\n }}\n orientation={inline ? 'horizontal' : 'vertical'}\n value={selectedValue}\n >\n {/* Child render function can fully control list layout; fallback keeps default rendering. */}\n {children\n ? children(renderedOptions)\n : renderedOptions.map(({ radio }) => {\n return radio;\n })}\n </HeroRadioGroup>\n );\n};\n\nexport default Radios;\n","import Radios from './Radios';\n\nexport type { RadiosProps, RadioOption } from './Radios';\n\nexport { radiosVariants } from './Radios';\n\nexport default Radios;\n"],"mappings":";;;;;;AAaA,MAAa,iBAAiB,GAAG;CAC/B,OAAO;EACL,MAAM;GAEJ;GAEA;GAEA;EACF;EACA,cAAc;EACd,UAAU,CAGR,oFAGA,4CACF;EACA,aAAa;EACb,iBAAiB;EACjB,WAAW;EACX,kBAAkB;EAClB,aACE;EAEF,OACE;EACF,SAAS;CACX;CACA,UAAU,EACR,UAAU,EACR,MAAM,EAEJ,MAAM,4DACR,EACF,EACF;AACF,CAAC;;;;AA8DD,MAAM,UAAU,EACd,WAAW,KAAA,GACX,YAAY,KAAA,GACZ,SAAS,OACT,MACA,SACA,GAAG,wBAC4B;CAC/B,MAAM,EACJ,WACA,UACA,cACA,OAAO,EAAE,QAAQ,UAAU,KAAK,SAChC,SACA,OACA,UACA,UACA,WACE,gBAAgB;EAClB;EACA,GAAG;CACL,CAAC;CAGD,MAAM,EAAE,0BAA0B,2BAA2B,OAAO;CAGpE,MAAM,WAAW,eAAe,EAAE,SAAS,CAAC;CAC5C,MAAM,aAAa,qBAAqB,UAAU,WAAW,MAAM;CAEnE,MAAM,iBAAiB;EACrB,MAAM,WAAW;EACjB,SAAS,WAAW;EACpB,aAAa,WAAW;EACxB,OAAO,WAAW;EAClB,cAAc,WAAW;EACzB,SAAS,WAAW;CACtB;CAEA,MAAM,gBAAgB,SAAS,OAAO,OAAO,KAAK,IAAI;CAGtD,MAAM,kBAAkB,QAAQ,KAAK,WAAW;EAC9C,MAAM,eAAe,QACnB,GAAG,OAAO,UAAU,OAAO,UAAU,OAAO,SAC5C,EAAE,aAAa,KAAK,CACtB;EACA,MAAM,mBAAmB,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO;EAChD,MAAM,cAAc,OAAO,OAAO,KAAK;EAavC,OAAO;GACL;GACA,OAAA,oBAbCA,OAAD;IAEE,YAAY;IACZ,eAAa;IACb,YAAY;IACZ,OAAO;IAEN,UAAA,OAAO,SAAS,OAAO;GACf,GAPJ,WAYH;GACJ,OAAO;IACL,UAAU,kBAAkB;IAC5B,UAAU;IACV,SAAS,CAAC,CAAC;GACb;EACF;CACF,CAAC;CAED,OACE,oBAACC,YAAD;EACO;EACL,cAAY;EACA;EAGZ,gBAAc;EACd,iBAAe;EACf,eAAa;EACC;EACd,YAAY;EACZ,WAAW;EACX,YAAY;EACZ,YAAY;EACZ,OAAO,QAAQ,oBAAC,UAAD,EAAA,UAAS,MAAc,CAAA,IAAI;EACpC;EACE;EACR,gBAAgB,aAAa;GAC3B,SAAS,sBAAsB,QAAQ,CAAC;EAC1C;EACA,aAAa,SAAS,eAAe;EACrC,OAAO;EAGN,UAAA,WACG,SAAS,eAAe,IACxB,gBAAgB,KAAK,EAAE,YAAY;GACjC,OAAO;EACT,CAAC;CACS,CAAA;AAEpB;;ACnNA,IAAA,iBAAe"}
|