@pezeshk-book/modules 0.0.6 → 0.0.7
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/modules/calendar/calendar.d.ts +1 -1
- package/dist/modules/calendar/calendar.js +4 -4
- package/dist/modules/calendar/calendar.js.map +1 -1
- package/dist/modules/calendar/calendar.props.d.ts +1 -0
- package/dist/modules/calendar/shared/formatDate.d.ts +1 -1
- package/dist/modules/calendar/shared/formatDate.js +1 -0
- package/dist/modules/calendar/shared/formatDate.js.map +1 -1
- package/dist/modules/calendar/sub-components/day/day.js +5 -18
- package/dist/modules/calendar/sub-components/day/day.js.map +1 -1
- package/dist/modules/calendar/sub-components/days/days.js +3 -3
- package/dist/modules/calendar/sub-components/days/days.js.map +1 -1
- package/dist/modules/calendar/sub-components/days/days.props.d.ts +1 -0
- package/dist/modules/calendar/sub-components/days-head/days-head.js +1 -1
- package/dist/modules/calendar/sub-components/days-head/days-head.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CalendarProps } from "./calendar.props";
|
|
3
|
-
declare const Calender: (
|
|
3
|
+
declare const Calender: (props: CalendarProps) => JSX.Element;
|
|
4
4
|
export default Calender;
|
|
@@ -5,12 +5,12 @@ import { daysInMonth } from "./config/daysIn-month";
|
|
|
5
5
|
import formatDate from './shared/formatDate';
|
|
6
6
|
import { Div } from '@pezeshk-book/ui-kit';
|
|
7
7
|
import DateObject from "react-date-object";
|
|
8
|
-
var Calender = function (
|
|
9
|
-
var _b =
|
|
8
|
+
var Calender = function (props) {
|
|
9
|
+
var _a = props.dateFormat, dateFormat = _a === void 0 ? 'YYYY-MM-DD' : _a, _b = props.selectedDate, selectedDate = _b === void 0 ? new Date() : _b, _c = props.disablePreviousMonths, disablePreviousMonths = _c === void 0 ? false : _c, _d = props.disableSubsequentMonths, disableSubsequentMonths = _d === void 0 ? false : _d, _e = props.disablePreviousDays, disablePreviousDays = _e === void 0 ? false : _e, _f = props.disableSubsequentDays, disableSubsequentDays = _f === void 0 ? false : _f, onChange = props.onChange;
|
|
10
10
|
var date = new DateObject({ date: selectedDate });
|
|
11
11
|
var _g = useState(''), startDate = _g[0], setStartDate = _g[1];
|
|
12
12
|
var _h = useState({
|
|
13
|
-
value: formatDate(selectedDate,
|
|
13
|
+
value: formatDate(selectedDate, dateFormat),
|
|
14
14
|
cloneDays: date,
|
|
15
15
|
monthName: "",
|
|
16
16
|
month: "",
|
|
@@ -45,7 +45,7 @@ var Calender = function (_a) {
|
|
|
45
45
|
onChange(startDate);
|
|
46
46
|
}, [startDate]);
|
|
47
47
|
return (React.createElement(Div, { dir: 'rtl', className: "items-center flex flex-col justify-center bg-white rounded py-4 !w-full" },
|
|
48
|
-
React.createElement(Days, { days: datepicker.days, monthName: datepicker.monthName, year: datepicker.year, selectedDay: datepicker.value, disablePreviousMonths: disablePreviousMonths, disableSubsequentMonths: disableSubsequentMonths, disablePreviousDays: disablePreviousDays, disableSubsequentDays: disableSubsequentDays, daysEventListeners: daysEventListeners, selectStartDateHandler: startDateHandler, startDate: startDate, date: date, increaseMonth: function () { return changeMonths(1); }, decreaseMonth: function () { return changeMonths(-1); }, isDatePicker: true })));
|
|
48
|
+
React.createElement(Days, { days: datepicker.days, monthName: datepicker.monthName, year: datepicker.year, selectedDay: datepicker.value, disablePreviousMonths: disablePreviousMonths, disableSubsequentMonths: disableSubsequentMonths, disablePreviousDays: disablePreviousDays, disableSubsequentDays: disableSubsequentDays, daysEventListeners: daysEventListeners, selectStartDateHandler: startDateHandler, startDate: startDate, date: date, increaseMonth: function () { return changeMonths(1); }, decreaseMonth: function () { return changeMonths(-1); }, isDatePicker: true, dateFormat: dateFormat })));
|
|
49
49
|
};
|
|
50
50
|
export default Calender;
|
|
51
51
|
//# sourceMappingURL=calendar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar.js","sourceRoot":"","sources":["../../../modules/calendar/calendar.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAC,SAAS,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACjD,OAAO,IAAI,MAAM,4BAA4B,CAAC;AAE9C,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAElD,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAC,GAAG,EAAC,MAAM,sBAAsB,CAAA;AACxC,OAAO,UAAU,MAAM,mBAAmB,CAAC;AAY3C,IAAM,QAAQ,GAAG,UAAC,
|
|
1
|
+
{"version":3,"file":"calendar.js","sourceRoot":"","sources":["../../../modules/calendar/calendar.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAC,SAAS,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACjD,OAAO,IAAI,MAAM,4BAA4B,CAAC;AAE9C,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAElD,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAC,GAAG,EAAC,MAAM,sBAAsB,CAAA;AACxC,OAAO,UAAU,MAAM,mBAAmB,CAAC;AAY3C,IAAM,QAAQ,GAAG,UAAC,KAAoB;IAElC,IAAA,KAOE,KAAK,WAPkB,EAAzB,UAAU,mBAAG,YAAY,KAAA,EACzB,KAME,KAAK,aANkB,EAAzB,YAAY,mBAAG,IAAI,IAAI,EAAE,KAAA,EACzB,KAKE,KAAK,sBALsB,EAA7B,qBAAqB,mBAAG,KAAK,KAAA,EAC7B,KAIE,KAAK,wBAJwB,EAA/B,uBAAuB,mBAAG,KAAK,KAAA,EAC/B,KAGE,KAAK,oBAHoB,EAA3B,mBAAmB,mBAAG,KAAK,KAAA,EAC3B,KAEE,KAAK,sBAFsB,EAA7B,qBAAqB,mBAAG,KAAK,KAAA,EAC7B,QAAQ,GACN,KAAK,SADC,CACA;IAEV,IAAM,IAAI,GAAG,IAAI,UAAU,CAAC,E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YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;SAC1B;aAAM;YACL,YAAY,CAAC,EAAE,CAAC,CAAC;SAClB;IACH,CAAC,CAAA;IAED,SAAS,CAAC;QACR,QAAQ,CAAC,SAAS,CAAC,CAAC;IACtB,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAGhB,OAAO,CACL,oBAAC,GAAG,IAAC,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,yEAAyE;QACnG,oBAAC,IAAI,IACH,IAAI,EAAE,UAAU,CAAC,IAAI,EACrB,SAAS,EAAE,UAAU,CAAC,SAAS,EAC/B,IAAI,EAAE,UAAU,CAAC,IAAI,EACrB,WAAW,EAAE,UAAU,CAAC,KAAK,EAC7B,qBAAqB,EAAE,qBAAqB,EAC5C,uBAAuB,EAAE,uBAAuB,EAChD,mBAAmB,EAAE,mBAAmB,EACxC,qBAAqB,EAAE,qBAAqB,EAC5C,kBAAkB,EAAE,kBAAkB,EACtC,sBAAsB,EAAE,gBAAgB,EACxC,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,IAAI,EACV,aAAa,EAAE,cAAM,OAAA,YAAY,CAAC,CAAC,CAAC,EAAf,CAAe,EACpC,aAAa,EAAE,cAAM,OAAA,YAAY,CAAC,CAAC,CAAC,CAAC,EAAhB,CAAgB,EACrC,YAAY,EAAE,IAAI,EAClB,UAAU,EAAE,UAAU,GACtB,CACE,CACP,CAAC;AACJ,CAAC,CAAA;AAED,eAAe,QAAQ,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function formatDate(data: Date | number | string, format
|
|
1
|
+
export default function formatDate(data: Date | number | string, format?: string): string | null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import DateObject from "react-date-object";
|
|
2
2
|
import persian from "react-date-object/calendars/persian";
|
|
3
3
|
export default function formatDate(data, format) {
|
|
4
|
+
if (format === void 0) { format = 'YYYY-MM-DD'; }
|
|
4
5
|
if (data) {
|
|
5
6
|
var date = new DateObject(data);
|
|
6
7
|
date.calendar = persian;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatDate.js","sourceRoot":"","sources":["../../../../modules/calendar/shared/formatDate.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,mBAAmB,CAAC;AAC3C,OAAO,OAAO,MAAM,qCAAqC,CAAC;AAE1D,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,IAA4B,EAAE,
|
|
1
|
+
{"version":3,"file":"formatDate.js","sourceRoot":"","sources":["../../../../modules/calendar/shared/formatDate.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,mBAAmB,CAAC;AAC3C,OAAO,OAAO,MAAM,qCAAqC,CAAC;AAE1D,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,IAA4B,EAAE,MAA6B;IAA7B,uBAAA,EAAA,qBAA6B;IAC5F,IAAI,IAAI,EAAE;QACR,IAAM,IAAI,GAAG,IAAI,UAAU,CAAC,IAAI,CAAC,CAAA;QACjC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAA;QACvB,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;KAC5B;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -1,27 +1,14 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import classNames from '../../../../utils/class-names';
|
|
4
|
-
import { Button } from '@pezeshk-book/ui-kit';
|
|
4
|
+
import { Button, Div } from '@pezeshk-book/ui-kit';
|
|
5
5
|
export var Day = function (props) {
|
|
6
6
|
var children = props.children, disabledDay = props.disabledDay, holidays = props.holidays, passedDay = props.passedDay, comingDay = props.comingDay, selectedDay = props.selectedDay, startDate = props.startDate, handleDay = props.handleDay;
|
|
7
7
|
if (!children) {
|
|
8
|
-
return React.createElement(
|
|
8
|
+
return React.createElement(Div, __assign({}, props));
|
|
9
9
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
if (comingDay) {
|
|
14
|
-
return React.createElement(Button, __assign({ size: 'medium', variant: 'filled', color: 'control', shape: 'square', className: classNames('cursor-not-allowed') }, props));
|
|
15
|
-
}
|
|
16
|
-
if (startDate) {
|
|
17
|
-
return React.createElement(Button, __assign({ size: 'medium', variant: 'filled', color: 'success', shape: 'square', className: classNames('cursor-pointer'), onClick: handleDay }, props));
|
|
18
|
-
}
|
|
19
|
-
if (disabledDay || holidays) {
|
|
20
|
-
return React.createElement(Button, __assign({ size: 'medium', color: 'danger', shape: 'square', className: classNames('cursor-pointer'), onClick: handleDay }, props));
|
|
21
|
-
}
|
|
22
|
-
if (selectedDay) {
|
|
23
|
-
return React.createElement(Button, __assign({ rounded: "full", size: 'medium', variant: 'filled', color: 'primary', shape: 'square', className: classNames('cursor-pointer'), onClick: handleDay }, props));
|
|
24
|
-
}
|
|
25
|
-
return React.createElement(Button, __assign({ variant: 'text', size: 'medium', shape: 'square', color: 'control', className: classNames(), onClick: handleDay }, props));
|
|
10
|
+
var color = startDate ? 'success' : (disabledDay || holidays ? 'danger' : (selectedDay ? 'primary' : 'control'));
|
|
11
|
+
var variant = disabledDay || holidays || passedDay || comingDay || selectedDay || startDate ? 'filled' : 'text';
|
|
12
|
+
return (React.createElement(Button, __assign({ disabled: comingDay, variant: variant, rounded: selectedDay ? 'full' : 'medium', size: 'medium', shape: 'square', color: color, className: classNames(), onClick: handleDay }, props)));
|
|
26
13
|
};
|
|
27
14
|
//# sourceMappingURL=day.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"day.js","sourceRoot":"","sources":["../../../../../modules/calendar/sub-components/day/day.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,UAAU,MAAM,+BAA+B,CAAA;AACtD,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"day.js","sourceRoot":"","sources":["../../../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,KAAK,EACT,CACH,CAAA;AAEH,CAAC,CAAC"}
|
|
@@ -16,16 +16,16 @@ var boolDataset = function (arg) {
|
|
|
16
16
|
};
|
|
17
17
|
var tempHolidays = ['2023-05-15', '2022-09-25', '2022-09-27', '2022-10-05', '2022-12-27', '2023-02-04', '2023-02-11', '2023-02-18', '2023-03-08', '2023-03-20'];
|
|
18
18
|
var Days = function (props) {
|
|
19
|
-
var days = props.days, startDate = props.startDate, selectStartDateHandler = props.selectStartDateHandler, monthName = props.monthName, disablePreviousMonths = props.disablePreviousMonths, disableSubsequentMonths = props.disableSubsequentMonths, disablePreviousDays = props.disablePreviousDays, disableSubsequentDays = props.disableSubsequentDays, increaseMonth = props.increaseMonth, decreaseMonth = props.decreaseMonth, selectedDay = props.selectedDay, year = props.year, date = props.date;
|
|
19
|
+
var days = props.days, startDate = props.startDate, selectStartDateHandler = props.selectStartDateHandler, monthName = props.monthName, disablePreviousMonths = props.disablePreviousMonths, disableSubsequentMonths = props.disableSubsequentMonths, disablePreviousDays = props.disablePreviousDays, disableSubsequentDays = props.disableSubsequentDays, increaseMonth = props.increaseMonth, decreaseMonth = props.decreaseMonth, selectedDay = props.selectedDay, year = props.year, date = props.date, dateFormat = props.dateFormat;
|
|
20
20
|
var handleDayClick = function (day) {
|
|
21
21
|
selectStartDateHandler(day);
|
|
22
22
|
};
|
|
23
23
|
var weeks = chunk(days, 7);
|
|
24
|
-
var dates = new DateObject({ date: date, calendar: persian }).format(
|
|
24
|
+
var dates = new DateObject({ date: date, calendar: persian }).format(dateFormat);
|
|
25
25
|
if (!days.length) {
|
|
26
26
|
return null;
|
|
27
27
|
}
|
|
28
|
-
return (React.createElement(Div, { className: 'flex-1 w-[390px] md:w-[560px]
|
|
28
|
+
return (React.createElement(Div, { className: 'flex-1 w-[390px] md:w-[560px] flex-col self-center relative overflow-auto mx-1 bg-white' },
|
|
29
29
|
React.createElement(DaysHead, { year: year, monthName: monthName, disablePreviousMonths: disablePreviousMonths, disableSubsequentMonths: disableSubsequentMonths, increaseMonth: increaseMonth, decreaseMonth: decreaseMonth }),
|
|
30
30
|
React.createElement(Div, { className: 'flex-col items-center flex-1 gap-4', "data-testid": "days-wrapper" },
|
|
31
31
|
React.createElement(Div, { className: 'grid grid-cols-7 w-full gap-x-7' }, weekDayNames.map(function (name) { return (React.createElement(Text, { type: "regular", color: "black", key: name }, name)); })),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"days.js","sourceRoot":"","sources":["../../../../../modules/calendar/sub-components/days/days.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,QAAQ,MAAM,wBAAwB,CAAA;AAC7C,OAAO,EAAC,GAAG,EAAC,MAAM,YAAY,CAAC;AAC/B,OAAO,EAAC,KAAK,EAAE,EAAE,EAAS,YAAY,EAAC,MAAM,cAAc,CAAA;AAC3D,OAAO,UAAU,MAAM,mBAAmB,CAAC;AAC3C,OAAO,OAAO,MAAM,qCAAqC,CAAC;AAC1D,OAAO,EAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAC,MAAM,sBAAsB,CAAA;AAEvD,IAAM,WAAW,GAAG,UAAC,GAAY;IAC/B,IAAI,GAAG,EAAE;QACP,OAAO;YACL,cAAc,EAAE,GAAG;SACpB,CAAC;KACH;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF,IAAM,YAAY,GAAG,CAAC,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,CAAC,CAAA;AAEjK,IAAM,IAAI,GAAG,UAAC,KAAgB;IAE1B,IAAA,IAAI,
|
|
1
|
+
{"version":3,"file":"days.js","sourceRoot":"","sources":["../../../../../modules/calendar/sub-components/days/days.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,QAAQ,MAAM,wBAAwB,CA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AAC,MAAM,GAAG,KAAK,EACtD,QAAQ,EAAE,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,iBACjC,cAAO,GAAG,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAE,iBACzB,UAAG,GAAG,CAAC,MAAM,CAAE,EAC5B,WAAW,EAAE,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,EAC1C,WAAW,EAAE,WAAW,KAAK,GAAG,CAAC,MAAM,EACvC,SAAS,EAAE,SAAS,KAAK,GAAG,CAAC,MAAM,EACnC,SAAS,EAAE,cAAM,OAAA,cAAc,CAAC,GAAG,CAAC,EAAnB,CAAmB,IAChC,WAAW,CAAC,GAAG,CAAC,QAAQ,CAAC,GAC5B,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAC/B,CACP,EAfkC,CAelC,CAAC,CACE,CACP,EAnByB,CAmBzB,CAAC,CACE,CACF,CACF,CACP,CAAA;AACH,CAAC,CAAA;AAGD,IAAI,CAAC,YAAY,GAAG;IAClB,SAAS,EAAE,EAAE;IACb,WAAW,EAAE,EAAE;CAChB,CAAA;AAED,eAAe,IAAI,CAAA"}
|
|
@@ -3,7 +3,7 @@ import { Button, Div, Text } from '@pezeshk-book/ui-kit';
|
|
|
3
3
|
import { ArrowLeftIcon, ArrowRightIcon, CalendarIcon } from '../../icons';
|
|
4
4
|
var DaysHead = function (props) {
|
|
5
5
|
var decreaseMonth = props.decreaseMonth, increaseMonth = props.increaseMonth, monthName = props.monthName, year = props.year, disablePreviousMonths = props.disablePreviousMonths, disableSubsequentMonths = props.disableSubsequentMonths;
|
|
6
|
-
return (React.createElement(Div, { className: 'justify-center items-center bg-white w-
|
|
6
|
+
return (React.createElement(Div, { className: 'justify-center items-center bg-white w-full self-center mb-5' },
|
|
7
7
|
React.createElement(Div, { className: 'w-full items-center justify-between h-12 px-4' },
|
|
8
8
|
React.createElement(Div, { className: 'relative w-5 h-5' },
|
|
9
9
|
React.createElement("img", { src: CalendarIcon, alt: 'تقویم' })),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"days-head.js","sourceRoot":"","sources":["../../../../../modules/calendar/sub-components/days-head/days-head.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAC,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAC,aAAa,EAAE,cAAc,EAAE,YAAY,EAAC,MAAM,aAAa,CAAA;AAEvE,IAAM,QAAQ,GAAG,UAAC,KAAoB;IAC7B,IAAA,aAAa,GAAoF,KAAK,cAAzF,EAAE,aAAa,GAAqE,KAAK,cAA1E,EAAE,SAAS,GAA0D,KAAK,UAA/D,EAAE,IAAI,GAAoD,KAAK,KAAzD,EAAE,qBAAqB,GAA6B,KAAK,sBAAlC,EAAE,uBAAuB,GAAI,KAAK,wBAAT,CAAU;IAE9G,OAAO,CACL,oBAAC,GAAG,IAAC,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"days-head.js","sourceRoot":"","sources":["../../../../../modules/calendar/sub-components/days-head/days-head.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAC,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAC,aAAa,EAAE,cAAc,EAAE,YAAY,EAAC,MAAM,aAAa,CAAA;AAEvE,IAAM,QAAQ,GAAG,UAAC,KAAoB;IAC7B,IAAA,aAAa,GAAoF,KAAK,cAAzF,EAAE,aAAa,GAAqE,KAAK,cAA1E,EAAE,SAAS,GAA0D,KAAK,UAA/D,EAAE,IAAI,GAAoD,KAAK,KAAzD,EAAE,qBAAqB,GAA6B,KAAK,sBAAlC,E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