@rjsf/chakra-ui 6.1.2 → 6.2.5
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/dist/chakra-ui.esm.js +52 -32
- package/dist/chakra-ui.esm.js.map +4 -4
- package/dist/chakra-ui.umd.js +42 -23
- package/dist/index.cjs +201 -181
- package/dist/index.cjs.map +4 -4
- package/lib/AltDateTimeWidget/AltDateTimeWidget.d.ts +1 -12
- package/lib/AltDateTimeWidget/AltDateTimeWidget.js +2 -7
- package/lib/AltDateTimeWidget/AltDateTimeWidget.js.map +1 -1
- package/lib/AltDateWidget/AltDateWidget.d.ts +1 -12
- package/lib/AltDateWidget/AltDateWidget.js +7 -12
- package/lib/AltDateWidget/AltDateWidget.js.map +1 -1
- package/lib/BaseInputTemplate/BaseInputTemplate.js +10 -2
- package/lib/BaseInputTemplate/BaseInputTemplate.js.map +1 -1
- package/lib/IconButton/IconButton.d.ts +1 -0
- package/lib/IconButton/IconButton.js +5 -1
- package/lib/IconButton/IconButton.js.map +1 -1
- package/lib/Templates/Templates.js +2 -1
- package/lib/Templates/Templates.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -7
- package/src/AltDateTimeWidget/AltDateTimeWidget.tsx +5 -10
- package/src/AltDateWidget/AltDateWidget.tsx +14 -15
- package/src/BaseInputTemplate/BaseInputTemplate.tsx +14 -1
- package/src/IconButton/IconButton.tsx +10 -1
- package/src/Templates/Templates.ts +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AltDateTimeWidget.js","sourceRoot":"","sources":["../../src/AltDateTimeWidget/AltDateTimeWidget.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"AltDateTimeWidget.js","sourceRoot":"","sources":["../../src/AltDateTimeWidget/AltDateTimeWidget.tsx"],"names":[],"mappings":";AAEA,SAAS,iBAAiB,CAAoF,EAC5G,IAAI,GAAG,IAAI,EACX,GAAG,KAAK,EACa;IACrB,MAAM,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC;IACjD,OAAO,KAAC,aAAa,OAAK,KAAK,EAAE,IAAI,EAAE,IAAI,GAAI,CAAC;AAClD,CAAC;AAED,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,14 +1,3 @@
|
|
|
1
1
|
import { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';
|
|
2
|
-
declare function AltDateWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
declare namespace AltDateWidget {
|
|
4
|
-
var defaultProps: {
|
|
5
|
-
autofocus: boolean;
|
|
6
|
-
disabled: boolean;
|
|
7
|
-
readonly: boolean;
|
|
8
|
-
time: boolean;
|
|
9
|
-
options: {
|
|
10
|
-
yearsRange: number[];
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
}
|
|
2
|
+
declare function AltDateWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ autofocus, disabled, readonly, time, options, ...props }: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
|
|
14
3
|
export default AltDateWidget;
|
|
@@ -2,24 +2,19 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { Box, Button, FieldsetRoot } from '@chakra-ui/react';
|
|
3
3
|
import { DateElement, TranslatableString, useAltDateWidgetProps, } from '@rjsf/utils';
|
|
4
4
|
import { getChakra } from '../utils.js';
|
|
5
|
-
function AltDateWidget(props) {
|
|
6
|
-
const {
|
|
5
|
+
function AltDateWidget({ autofocus = false, disabled = false, readonly = false, time = false, options, ...props }) {
|
|
6
|
+
const { id, onBlur, onFocus, registry } = props;
|
|
7
7
|
const { translateString } = registry;
|
|
8
|
-
const {
|
|
8
|
+
const realOptions = { yearsRange: [1900, new Date().getFullYear() + 2], ...options };
|
|
9
|
+
const { elements, handleChange, handleClear, handleSetNow } = useAltDateWidgetProps({
|
|
10
|
+
...props,
|
|
11
|
+
options: realOptions,
|
|
12
|
+
});
|
|
9
13
|
const chakraProps = getChakra({ uiSchema: props.uiSchema });
|
|
10
14
|
return (_jsxs(FieldsetRoot, { ...chakraProps, children: [_jsx(Box, { display: 'flex', flexWrap: 'wrap', alignItems: 'center', children: elements.map((elemProps, i) => {
|
|
11
15
|
const elemId = `${id}_${elemProps.type}`;
|
|
12
16
|
return (_jsx(Box, { mr: '2', mb: '2', width: '20', children: _jsx(DateElement, { ...props, ...elemProps, autofocus: autofocus && i === 0, disabled: disabled, rootId: id, name: id, onBlur: onBlur, onFocus: onFocus, readonly: readonly, registry: registry, select: handleChange, value: elemProps.value && elemProps.value < 0 ? '' : elemProps.value }) }, elemId));
|
|
13
17
|
}) }), _jsxs(Box, { display: 'flex', children: [!options.hideNowButton && (_jsx(Button, { onClick: handleSetNow, mr: '2', children: translateString(TranslatableString.NowLabel) })), !options.hideClearButton && (_jsx(Button, { onClick: handleClear, children: translateString(TranslatableString.ClearLabel) }))] })] }));
|
|
14
18
|
}
|
|
15
|
-
AltDateWidget.defaultProps = {
|
|
16
|
-
autofocus: false,
|
|
17
|
-
disabled: false,
|
|
18
|
-
readonly: false,
|
|
19
|
-
time: false,
|
|
20
|
-
options: {
|
|
21
|
-
yearsRange: [1900, new Date().getFullYear() + 2],
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
19
|
export default AltDateWidget;
|
|
25
20
|
//# sourceMappingURL=AltDateWidget.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AltDateWidget.js","sourceRoot":"","sources":["../../src/AltDateWidget/AltDateWidget.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EACL,WAAW,EAKX,kBAAkB,EAClB,qBAAqB,GAEtB,MAA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B,EAAE,CAAC,EAAE,EAAE;oBAC9C,MAAM,MAAM,GAAG,GAAG,EAAE,IAAI,SAAS,CAAC,IAAI,EAAE,CAAC;oBACzC,OAAO,CACL,KAAC,GAAG,IAAc,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,KAAK,EAAC,IAAI,YACxC,KAAC,WAAW,OACN,KAAK,KACL,SAAS,EACb,SAAS,EAAE,SAAS,IAAI,CAAC,KAAK,CAAC,EAC/B,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,EAAE,EACV,IAAI,EAAE,EAAE,EACR,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,YAAY,EACpB,KAAK,EAAE,SAAS,CAAC,KAAK,IAAI,SAAS,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,GACpE,IAdM,MAAM,CAeV,CACP,CAAC;gBACJ,CAAC,CAAC,GACE,EACN,MAAC,GAAG,IAAC,OAAO,EAAC,MAAM,aAChB,CAAC,OAAO,CAAC,aAAa,IAAI,CACzB,KAAC,MAAM,IAAC,OAAO,EAAE,YAAY,EAAE,EAAE,EAAC,GAAG,YAClC,eAAe,CAAC,kBAAkB,CAAC,QAAQ,CAAC,GACtC,CACV,EACA,CAAC,OAAO,CAAC,eAAe,IAAI,CAC3B,KAAC,MAAM,IAAC,OAAO,EAAE,WAAW,YAAG,eAAe,CAAC,kBAAkB,CAAC,UAAU,CAAC,GAAU,CACxF,IACG,IACO,CAChB,CAAC;AACJ,CAAC;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -1,16 +1,24 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback } from 'react';
|
|
2
3
|
import { Input } from '@chakra-ui/react';
|
|
3
4
|
import { ariaDescribedByIds, examplesId, labelValue, getInputProps, } from '@rjsf/utils';
|
|
4
5
|
import { Field } from '../components/ui/field.js';
|
|
5
6
|
import { getChakra } from '../utils.js';
|
|
6
7
|
export default function BaseInputTemplate(props) {
|
|
7
|
-
const { id, htmlName, type, value, label, hideLabel, schema, onChange, onChangeOverride, onBlur, onFocus, options, required, readonly, rawErrors, autofocus, placeholder, disabled, uiSchema, } = props;
|
|
8
|
+
const { id, htmlName, type, value, label, hideLabel, schema, onChange, onChangeOverride, onBlur, onFocus, options, required, readonly, rawErrors, autofocus, placeholder, disabled, uiSchema, registry, } = props;
|
|
8
9
|
const inputProps = getInputProps(schema, type, options);
|
|
10
|
+
const { ClearButton } = registry.templates.ButtonTemplates;
|
|
9
11
|
const _onChange = ({ target: { value } }) => onChange(value === '' ? options.emptyValue : value);
|
|
10
12
|
const _onBlur = ({ target }) => onBlur(id, target && target.value);
|
|
11
13
|
const _onFocus = ({ target }) => onFocus(id, target && target.value);
|
|
14
|
+
const onClear = useCallback((e) => {
|
|
15
|
+
var _a;
|
|
16
|
+
e.preventDefault();
|
|
17
|
+
e.stopPropagation();
|
|
18
|
+
onChange((_a = options.emptyValue) !== null && _a !== void 0 ? _a : '');
|
|
19
|
+
}, [onChange, options.emptyValue]);
|
|
12
20
|
const chakraProps = getChakra({ uiSchema });
|
|
13
|
-
return (_jsxs(Field, { mb: 1, disabled: disabled || readonly, required: required, readOnly: readonly, invalid: rawErrors && rawErrors.length > 0, label: labelValue(label, hideLabel || !label), ...chakraProps, children: [_jsx(Input, { id: id, name: htmlName || id, value: value || value === 0 ? value : '', onChange: onChangeOverride || _onChange, onBlur: _onBlur, onFocus: _onFocus, autoFocus: autofocus, placeholder: placeholder, ...inputProps, list: schema.examples ? examplesId(id) : undefined, "aria-describedby": ariaDescribedByIds(id, !!schema.examples) }), Array.isArray(schema.examples) ? (_jsx("datalist", { id: examplesId(id), children: schema.examples
|
|
21
|
+
return (_jsxs(Field, { mb: 1, disabled: disabled || readonly, required: required, readOnly: readonly, invalid: rawErrors && rawErrors.length > 0, label: labelValue(label, hideLabel || !label), ...chakraProps, children: [_jsx(Input, { id: id, name: htmlName || id, value: value || value === 0 ? value : '', onChange: onChangeOverride || _onChange, onBlur: _onBlur, onFocus: _onFocus, autoFocus: autofocus, placeholder: placeholder, ...inputProps, list: schema.examples ? examplesId(id) : undefined, "aria-describedby": ariaDescribedByIds(id, !!schema.examples) }), options.allowClearTextInputs && !readonly && !disabled && value && (_jsx(ClearButton, { registry: registry, onClick: onClear })), Array.isArray(schema.examples) ? (_jsx("datalist", { id: examplesId(id), children: schema.examples
|
|
14
22
|
.concat(schema.default && !schema.examples.includes(schema.default) ? [schema.default] : [])
|
|
15
23
|
.map((example) => {
|
|
16
24
|
return _jsx("option", { value: example }, example);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseInputTemplate.js","sourceRoot":"","sources":["../../src/BaseInputTemplate/BaseInputTemplate.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"BaseInputTemplate.js","sourceRoot":"","sources":["../../src/BaseInputTemplate/BaseInputTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAuC,WAAW,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EACL,kBAAkB,EAElB,UAAU,EACV,UAAU,EAEV,aAAa,GAGd,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAIvC,KAAsC;IACtC,MAAM,EACJ,EAAE,EACF,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,KAAK,EACL,SAAS,EACT,MAAM,EACN,QAAQ,EACR,gBAAgB,EAChB,MAAM,EACN,OAAO,EACP,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,SA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C,GACK,CACZ,CAAC,CAAC,CAAC,IAAI,IACF,CACT,CAAC;AACJ,CAAC"}
|
|
@@ -4,3 +4,4 @@ export declare function CopyButton<T = any, S extends StrictRJSFSchema = RJSFSch
|
|
|
4
4
|
export declare function MoveDownButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: ChakraIconButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export declare function MoveUpButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: ChakraIconButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare function RemoveButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: ChakraIconButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function ClearButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: ChakraIconButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { TranslatableString } from '@rjsf/utils';
|
|
3
|
-
import { ArrowUpIcon, ArrowDownIcon, CopyIcon, DeleteIcon } from 'lucide-react';
|
|
3
|
+
import { ArrowUpIcon, ArrowDownIcon, CopyIcon, DeleteIcon, X } from 'lucide-react';
|
|
4
4
|
import ChakraIconButton from './ChakraIconButton.js';
|
|
5
5
|
export function CopyButton(props) {
|
|
6
6
|
const { registry: { translateString }, } = props;
|
|
@@ -18,4 +18,8 @@ export function RemoveButton(props) {
|
|
|
18
18
|
const { registry: { translateString }, } = props;
|
|
19
19
|
return (_jsx(ChakraIconButton, { title: translateString(TranslatableString.RemoveButton), ...props, icon: _jsx(DeleteIcon, {}) }));
|
|
20
20
|
}
|
|
21
|
+
export function ClearButton(props) {
|
|
22
|
+
const { registry: { translateString }, } = props;
|
|
23
|
+
return _jsx(ChakraIconButton, { title: translateString(TranslatableString.ClearButton), ...props, icon: _jsx(X, {}) });
|
|
24
|
+
}
|
|
21
25
|
//# sourceMappingURL=IconButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.js","sourceRoot":"","sources":["../../src/IconButton/IconButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAiD,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAChG,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"IconButton.js","sourceRoot":"","sources":["../../src/IconButton/IconButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAiD,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAChG,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AAEnF,OAAO,gBAA2C,MAAM,oBAAoB,CAAC;AAE7E,MAAM,UAAU,UAAU,CACxB,KAAqC;IAErC,MAAM,EACJ,QAAQ,EAAE,EAAE,eAAe,EAAE,GAC9B,GAAG,KAAK,CAAC;IACV,OAAO,CACL,KAAC,gBAAgB,IAAU,KAAK,EAAE,eAAe,CAAC,kBAAkB,CAAC,UAAU,CAAC,KAAM,KAAK,EAAE,IAAI,EAAE,KAAC,QAAQ,KAAG,GAAI,CACpH,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,cAAc,CAC5B,KAAqC;IAErC,MAAM,EACJ,QAAQ,EAAE,EAAE,eAAe,EAAE,GAC9B,GAAG,KAAK,CAAC;IACV,OAAO,CACL,KAAC,gBAAgB,IACf,KAAK,EAAE,eAAe,CAAC,kBAAkB,CAAC,cAAc,CAAC,KACrD,KAAK,EACT,IAAI,EAAE,KAAC,aAAa,KAAG,GACvB,CACH,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,YAAY,CAC1B,KAAqC;IAErC,MAAM,EACJ,QAAQ,EAAE,EAAE,eAAe,EAAE,GAC9B,GAAG,KAAK,CAAC;IACV,OAAO,CACL,KAAC,gBAAgB,IACf,KAAK,EAAE,eAAe,CAAC,kBAAkB,CAAC,YAAY,CAAC,KACnD,KAAK,EACT,IAAI,EAAE,KAAC,WAAW,KAAG,GACrB,CACH,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,YAAY,CAC1B,KAAqC;IAErC,MAAM,EACJ,QAAQ,EAAE,EAAE,eAAe,EAAE,GAC9B,GAAG,KAAK,CAAC;IACV,OAAO,CACL,KAAC,gBAAgB,IACf,KAAK,EAAE,eAAe,CAAC,kBAAkB,CAAC,YAAY,CAAC,KACnD,KAAK,EACT,IAAI,EAAE,KAAC,UAAU,KAAG,GACpB,CACH,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,WAAW,CACzB,KAAqC;IAErC,MAAM,EACJ,QAAQ,EAAE,EAAE,eAAe,EAAE,GAC9B,GAAG,KAAK,CAAC;IACV,OAAO,KAAC,gBAAgB,IAAU,KAAK,EAAE,eAAe,CAAC,kBAAkB,CAAC,WAAW,CAAC,KAAM,KAAK,EAAE,IAAI,EAAE,KAAC,CAAC,KAAG,GAAI,CAAC;AACvH,CAAC"}
|
|
@@ -4,7 +4,7 @@ import ArrayFieldTemplate from '../ArrayFieldTemplate/index.js';
|
|
|
4
4
|
import BaseInputTemplate from '../BaseInputTemplate/BaseInputTemplate.js';
|
|
5
5
|
import DescriptionField from '../DescriptionField/index.js';
|
|
6
6
|
import ErrorList from '../ErrorList/index.js';
|
|
7
|
-
import { CopyButton, MoveDownButton, MoveUpButton, RemoveButton } from '../IconButton/index.js';
|
|
7
|
+
import { CopyButton, MoveDownButton, MoveUpButton, RemoveButton, ClearButton } from '../IconButton/index.js';
|
|
8
8
|
import FieldErrorTemplate from '../FieldErrorTemplate/index.js';
|
|
9
9
|
import FieldHelpTemplate from '../FieldHelpTemplate/index.js';
|
|
10
10
|
import FieldTemplate from '../FieldTemplate/index.js';
|
|
@@ -27,6 +27,7 @@ export function generateTemplates() {
|
|
|
27
27
|
MoveUpButton,
|
|
28
28
|
RemoveButton,
|
|
29
29
|
SubmitButton,
|
|
30
|
+
ClearButton,
|
|
30
31
|
},
|
|
31
32
|
DescriptionFieldTemplate: DescriptionField,
|
|
32
33
|
ErrorListTemplate: ErrorList,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Templates.js","sourceRoot":"","sources":["../../src/Templates/Templates.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,sBAAsB,MAAM,2BAA2B,CAAC;AAC/D,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,iBAAiB,MAAM,wCAAwC,CAAC;AACvE,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"Templates.js","sourceRoot":"","sources":["../../src/Templates/Templates.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,sBAAsB,MAAM,2BAA2B,CAAC;AAC/D,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,iBAAiB,MAAM,wCAAwC,CAAC;AACvE,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACpG,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AACrD,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,wBAAwB,MAAM,6BAA6B,CAAC;AACn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