se-design 1.0.59 → 1.0.61-dev
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/assets/colors.css +2 -2
- package/dist/assets/icons/checkbox-disabled-minus.svg +1 -1
- package/dist/assets/icons/checkbox-disabled-tick.svg +1 -1
- package/dist/assets/icons/checkbox-fill.svg +1 -1
- package/dist/assets/icons/checkbox-hover-fill.svg +2 -2
- package/dist/assets/icons/sort-asc.svg +3 -4
- package/dist/assets/icons/sort-desc.svg +2 -3
- package/dist/assets/style.css +1 -1
- package/dist/components/AutoCompleteInput/index.d.ts +37 -7
- package/dist/components/DropdownWithInputTags/index.d.ts +7 -1
- package/dist/components/Header/index.d.ts +1 -0
- package/dist/components/OTPInput/index.d.ts +1 -0
- package/dist/components/PhoneInput/index.d.ts +19 -0
- package/dist/components/RadioGroup/index.d.ts +17 -0
- package/dist/components/SidebarOverlay/index.d.ts +4 -0
- package/dist/components/SkipLinksBar/index.d.ts +11 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.js +124 -120
- package/dist/index.js.map +1 -1
- package/dist/index10.js +56 -46
- package/dist/index10.js.map +1 -1
- package/dist/index100.js +2 -2
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +2 -2
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +2 -2
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +2 -2
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +1 -1
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +1 -1
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +2 -2
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +2 -2
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +2 -2
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +2 -2
- package/dist/index109.js.map +1 -1
- package/dist/index11.js +48 -18
- package/dist/index11.js.map +1 -1
- package/dist/index110.js +1 -1
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +1 -1
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +2 -2
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +1 -1
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +1 -1
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +2 -2
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +2 -2
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +2 -2
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +2 -2
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +1 -1
- package/dist/index119.js.map +1 -1
- package/dist/index12.js +20 -11
- package/dist/index12.js.map +1 -1
- package/dist/index120.js +1 -1
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +1 -1
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +1 -1
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +1 -1
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +1 -1
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +1 -1
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +2 -2
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +1 -1
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +2 -2
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +1 -1
- package/dist/index129.js.map +1 -1
- package/dist/index13.js +15 -9
- package/dist/index13.js.map +1 -1
- package/dist/index130.js +1 -1
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +1 -1
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +1 -1
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +1 -1
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +2 -2
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +2 -2
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +2 -2
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +2 -2
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +2 -2
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +2 -2
- package/dist/index139.js.map +1 -1
- package/dist/index14.js +10 -202
- package/dist/index14.js.map +1 -1
- package/dist/index140.js +2 -2
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +1 -1
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +1 -1
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +1 -1
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +1 -1
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +1 -1
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +1 -1
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +1 -1
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +1 -1
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +1 -1
- package/dist/index149.js.map +1 -1
- package/dist/index15.js +216 -59
- package/dist/index15.js.map +1 -1
- package/dist/index150.js +1 -1
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +1 -1
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +1 -1
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +1 -1
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +1 -1
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +1 -1
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +1 -1
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +1 -1
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +1 -1
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +1 -1
- package/dist/index159.js.map +1 -1
- package/dist/index16.js +60 -84
- package/dist/index16.js.map +1 -1
- package/dist/index160.js +1 -1
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +1 -1
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +1 -1
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +2 -2
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +1 -1
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +2 -2
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +1 -1
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +2 -2
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +1 -1
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +2 -2
- package/dist/index169.js.map +1 -1
- package/dist/index17.js +80 -274
- package/dist/index17.js.map +1 -1
- package/dist/index170.js +1 -1
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +1 -1
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +1 -1
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +1 -1
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +1 -1
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +1 -1
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +1 -1
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +2 -2
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +1 -1
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +2 -2
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +281 -11
- package/dist/index18.js.map +1 -1
- package/dist/index180.js +2 -149
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +2 -6
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +149 -5
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +12 -0
- package/dist/index183.js.map +1 -0
- package/dist/index184.js +9 -0
- package/dist/index184.js.map +1 -0
- package/dist/index185.js +4 -23
- package/dist/index185.js.map +1 -1
- package/dist/index188.js +27 -0
- package/dist/index188.js.map +1 -0
- package/dist/index189.js +60 -21
- package/dist/index189.js.map +1 -1
- package/dist/index19.js +12 -31
- package/dist/index19.js.map +1 -1
- package/dist/index191.js +87 -0
- package/dist/index191.js.map +1 -0
- package/dist/index193.js +26 -0
- package/dist/index193.js.map +1 -0
- package/dist/index20.js +32 -56
- package/dist/index20.js.map +1 -1
- package/dist/{index197.js → index201.js} +1 -1
- package/dist/{index197.js.map → index201.js.map} +1 -1
- package/dist/{index205.js → index209.js} +1 -1
- package/dist/{index205.js.map → index209.js.map} +1 -1
- package/dist/index21.js +53 -75
- package/dist/index21.js.map +1 -1
- package/dist/{index207.js → index211.js} +1 -1
- package/dist/{index207.js.map → index211.js.map} +1 -1
- package/dist/{index208.js → index212.js} +2 -2
- package/dist/{index208.js.map → index212.js.map} +1 -1
- package/dist/index22.js +77 -21
- package/dist/index22.js.map +1 -1
- package/dist/index222.js +3 -9
- package/dist/index222.js.map +1 -1
- package/dist/index224.js +56 -167
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +54 -11
- package/dist/index225.js.map +1 -1
- package/dist/index227.js +18 -5
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +9 -5
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +8 -36
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +19 -190
- package/dist/index23.js.map +1 -1
- package/dist/index230.js +5 -2
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +170 -8
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +11 -327
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +5 -49
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +6 -2
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +35 -73
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +2 -93
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +5 -49
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +326 -7
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +49 -4
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +217 -44
- package/dist/index24.js.map +1 -1
- package/dist/index240.js +2 -52
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +76 -2
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +93 -2
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +55 -0
- package/dist/index243.js.map +1 -0
- package/dist/index244.js +11 -0
- package/dist/index244.js.map +1 -0
- package/dist/index245.js +8 -0
- package/dist/index245.js.map +1 -0
- package/dist/index246.js +55 -0
- package/dist/index246.js.map +1 -0
- package/dist/index247.js +5 -0
- package/dist/index247.js.map +1 -0
- package/dist/index248.js +5 -0
- package/dist/index248.js.map +1 -0
- package/dist/index25.js +48 -18
- package/dist/index25.js.map +1 -1
- package/dist/index26.js +16 -80
- package/dist/index26.js.map +1 -1
- package/dist/index27.js +82 -79
- package/dist/index27.js.map +1 -1
- package/dist/index28.js +80 -130
- package/dist/index28.js.map +1 -1
- package/dist/index29.js +131 -55
- package/dist/index29.js.map +1 -1
- package/dist/index3.js +2 -2
- package/dist/index30.js +53 -97
- package/dist/index30.js.map +1 -1
- package/dist/index31.js +99 -61
- package/dist/index31.js.map +1 -1
- package/dist/index32.js +59 -32
- package/dist/index32.js.map +1 -1
- package/dist/index33.js +40 -71
- package/dist/index33.js.map +1 -1
- package/dist/index34.js +68 -41
- package/dist/index34.js.map +1 -1
- package/dist/index35.js +45 -57
- package/dist/index35.js.map +1 -1
- package/dist/index36.js +54 -230
- package/dist/index36.js.map +1 -1
- package/dist/index37.js +281 -70
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +68 -80
- package/dist/index38.js.map +1 -1
- package/dist/index39.js +82 -32
- package/dist/index39.js.map +1 -1
- package/dist/index40.js +26 -44
- package/dist/index40.js.map +1 -1
- package/dist/index41.js +45 -67
- package/dist/index41.js.map +1 -1
- package/dist/index42.js +65 -49
- package/dist/index42.js.map +1 -1
- package/dist/index43.js +49 -89
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +141 -93
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +189 -35
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +34 -29
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +31 -147
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +138 -45
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +52 -373
- package/dist/index49.js.map +1 -1
- package/dist/index5.js +116 -115
- package/dist/index5.js.map +1 -1
- package/dist/index50.js +375 -63
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +65 -38
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +35 -35
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +35 -82
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +81 -159
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +157 -135
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +149 -29
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +29 -86
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +80 -113
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +114 -56
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +32 -51
- package/dist/index6.js.map +1 -1
- package/dist/index60.js +56 -147
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +146 -312
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +317 -44
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +43 -139
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +140 -12
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +10 -42
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +44 -5
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +18 -8
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +8 -0
- package/dist/index68.js.map +1 -0
- package/dist/index69.js +9 -2
- package/dist/index69.js.map +1 -1
- package/dist/index7.js +47 -81
- package/dist/index7.js.map +1 -1
- package/dist/index71.js +1 -1
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +1 -1
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +2 -2
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +1 -1
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +1 -1
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +1 -1
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +1 -1
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +1 -1
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +1 -1
- package/dist/index79.js.map +1 -1
- package/dist/index8.js +86 -26
- package/dist/index8.js.map +1 -1
- package/dist/index80.js +1 -1
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +1 -1
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +1 -1
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +1 -1
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +1 -1
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +1 -1
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +1 -1
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +1 -1
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +1 -1
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +1 -1
- package/dist/index89.js.map +1 -1
- package/dist/index9.js +23 -59
- package/dist/index9.js.map +1 -1
- package/dist/index90.js +1 -1
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +1 -1
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +1 -1
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +1 -1
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +1 -1
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +2 -2
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +2 -2
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +2 -2
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +2 -2
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +1 -1
- package/dist/index99.js.map +1 -1
- package/package.json +3 -2
- package/dist/index186.js +0 -65
- package/dist/index186.js.map +0 -1
- package/dist/index218.js +0 -7
- package/dist/index218.js.map +0 -1
- package/dist/index220.js +0 -62
- package/dist/index220.js.map +0 -1
- package/dist/index221.js +0 -13
- package/dist/index221.js.map +0 -1
- package/dist/index223.js +0 -8
- package/dist/index223.js.map +0 -1
- package/dist/index70.js +0 -5
- package/dist/index70.js.map +0 -1
package/dist/index50.js
CHANGED
|
@@ -1,68 +1,380 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import o, { useState as E } from "react";
|
|
2
|
+
import { Button as S } from "./index3.js";
|
|
3
|
+
import { Icon as T } from "./index5.js";
|
|
4
|
+
import { Dropdown as Q } from "./index24.js";
|
|
3
5
|
/* empty css */
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
label:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
6
|
+
const fe = ["S", "M", "T", "W", "T", "F", "S"], pe = ["Today", "Yesterday", "This Week", "Last Week", "This Month", "Last Month"], O = [{
|
|
7
|
+
value: "january",
|
|
8
|
+
label: "January"
|
|
9
|
+
}, {
|
|
10
|
+
value: "february",
|
|
11
|
+
label: "February"
|
|
12
|
+
}, {
|
|
13
|
+
value: "march",
|
|
14
|
+
label: "March"
|
|
15
|
+
}, {
|
|
16
|
+
value: "april",
|
|
17
|
+
label: "April"
|
|
18
|
+
}, {
|
|
19
|
+
value: "may",
|
|
20
|
+
label: "May"
|
|
21
|
+
}, {
|
|
22
|
+
value: "june",
|
|
23
|
+
label: "June"
|
|
24
|
+
}, {
|
|
25
|
+
value: "july",
|
|
26
|
+
label: "July"
|
|
27
|
+
}, {
|
|
28
|
+
value: "august",
|
|
29
|
+
label: "August"
|
|
30
|
+
}, {
|
|
31
|
+
value: "september",
|
|
32
|
+
label: "September"
|
|
33
|
+
}, {
|
|
34
|
+
value: "october",
|
|
35
|
+
label: "October"
|
|
36
|
+
}, {
|
|
37
|
+
value: "november",
|
|
38
|
+
label: "November"
|
|
39
|
+
}, {
|
|
40
|
+
value: "december",
|
|
41
|
+
label: "December"
|
|
42
|
+
}], ke = ({
|
|
43
|
+
title: U = "Select modified date",
|
|
44
|
+
// isOpen = true,
|
|
45
|
+
showHeader: G = !0,
|
|
46
|
+
initialStartDate: R,
|
|
47
|
+
initialEndDate: L,
|
|
48
|
+
onApply: x = () => {
|
|
49
|
+
},
|
|
50
|
+
onClose: N,
|
|
51
|
+
shouldAllowFutureDateSelection: b = !1,
|
|
52
|
+
maxDays: D,
|
|
53
|
+
disablePastDates: $ = !1,
|
|
54
|
+
singleDateSelection: W = !1,
|
|
55
|
+
minYearOption: K,
|
|
56
|
+
showQuickActions: P = !1,
|
|
57
|
+
showSingleMonth: Y = !1,
|
|
58
|
+
className: X = "",
|
|
59
|
+
automationId: m = "datepicker",
|
|
60
|
+
labels: j = {
|
|
61
|
+
clear: "Clear",
|
|
62
|
+
apply: "Apply"
|
|
63
|
+
}
|
|
64
|
+
}) => {
|
|
65
|
+
const Z = () => {
|
|
66
|
+
if (R && L)
|
|
67
|
+
return {
|
|
68
|
+
startDate: R,
|
|
69
|
+
endDate: L
|
|
70
|
+
};
|
|
71
|
+
const t = /* @__PURE__ */ new Date();
|
|
72
|
+
t.setHours(23, 59, 59, 999);
|
|
73
|
+
const e = /* @__PURE__ */ new Date();
|
|
74
|
+
return e.setHours(0, 0, 0, 0), {
|
|
75
|
+
startDate: e,
|
|
76
|
+
endDate: t
|
|
77
|
+
};
|
|
78
|
+
}, ee = () => {
|
|
79
|
+
const t = /* @__PURE__ */ new Date(), e = /* @__PURE__ */ new Date();
|
|
80
|
+
return t.setDate(1), e.setDate(1), Y || e.setMonth(e.getMonth() - 1), t.setHours(0, 0, 0, 0), e.setHours(0, 0, 0, 0), [e, t];
|
|
81
|
+
}, [c, w] = E(Z), [A] = E(ee), [v, C] = E(() => A[0]), [F, B] = E(() => A[1]), te = (t, e) => new Date(t, e + 1, 0).getDate(), ae = (t, e) => new Date(t, e, 1).getDay(), ne = (t, e) => {
|
|
82
|
+
const a = te(t, e), r = ae(t, e), d = [];
|
|
83
|
+
for (let s = 0; s < r; s++)
|
|
84
|
+
d.push(null);
|
|
85
|
+
for (let s = 1; s <= a; s++) {
|
|
86
|
+
const i = new Date(t, e, s);
|
|
87
|
+
i.setHours(0, 0, 0, 0), d.push(i);
|
|
88
|
+
}
|
|
89
|
+
return d;
|
|
90
|
+
}, h = (t, e) => t.getDate() === e.getDate() && t.getMonth() === e.getMonth() && t.getFullYear() === e.getFullYear(), re = (t) => {
|
|
91
|
+
if (!c.startDate || !c.endDate) return !1;
|
|
92
|
+
const e = new Date(t);
|
|
93
|
+
e.setHours(12, 0, 0, 0);
|
|
94
|
+
const a = new Date(c.startDate);
|
|
95
|
+
a.setHours(0, 0, 0, 0);
|
|
96
|
+
const r = new Date(c.endDate);
|
|
97
|
+
return r.setHours(23, 59, 59, 999), e >= a && e <= r;
|
|
98
|
+
}, oe = (t) => {
|
|
99
|
+
const e = /* @__PURE__ */ new Date();
|
|
100
|
+
return t.getDate() === e.getDate() && t.getMonth() === e.getMonth() && t.getFullYear() === e.getFullYear();
|
|
101
|
+
}, z = (t) => {
|
|
102
|
+
if (!t) return !0;
|
|
103
|
+
const e = /* @__PURE__ */ new Date();
|
|
104
|
+
e.setHours(0, 0, 0, 0);
|
|
105
|
+
const a = new Date(t);
|
|
106
|
+
if (a.setHours(0, 0, 0, 0), $ && a < e)
|
|
107
|
+
return !0;
|
|
108
|
+
if (D != null) {
|
|
109
|
+
const r = new Date(e);
|
|
110
|
+
return r.setDate(r.getDate() + D), r.setHours(0, 0, 0, 0), a > r;
|
|
111
|
+
}
|
|
112
|
+
return b ? !1 : a > e;
|
|
113
|
+
}, se = (t) => {
|
|
114
|
+
if (z(t)) return;
|
|
115
|
+
const e = new Date(t);
|
|
116
|
+
if (e.setHours(12, 0, 0, 0), W) {
|
|
117
|
+
w({
|
|
118
|
+
startDate: e,
|
|
119
|
+
endDate: e
|
|
120
|
+
}), x({
|
|
121
|
+
startDate: e,
|
|
122
|
+
endDate: e
|
|
123
|
+
}), N?.();
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
if (!c.startDate || c.endDate)
|
|
127
|
+
w({
|
|
128
|
+
startDate: e,
|
|
129
|
+
endDate: null
|
|
130
|
+
});
|
|
131
|
+
else {
|
|
132
|
+
const a = new Date(c.startDate);
|
|
133
|
+
a.setHours(12, 0, 0, 0);
|
|
134
|
+
const r = e > a ? e : a, d = e > a ? a : e;
|
|
135
|
+
w({
|
|
136
|
+
startDate: d,
|
|
137
|
+
endDate: r
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
}, I = (t, e) => {
|
|
141
|
+
const a = new Date(t);
|
|
142
|
+
return a.setMonth(a.getMonth() + (e ? 1 : -1)), a;
|
|
143
|
+
}, q = (t, e) => t.getTime() > e.getTime() ? [e, t] : [t, e], y = (t, e) => {
|
|
144
|
+
if (Y) {
|
|
145
|
+
C(t);
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
if (e) {
|
|
149
|
+
const [a, r] = q(t, F);
|
|
150
|
+
C(a), r !== F && B(r);
|
|
151
|
+
} else {
|
|
152
|
+
const [a, r] = q(v, t);
|
|
153
|
+
a !== v && C(a), B(r);
|
|
154
|
+
}
|
|
155
|
+
}, le = (t) => c?.startDate ? h(t, c.startDate) : !1, ce = (t) => c?.endDate ? h(t, c?.endDate) : !1, ie = (t) => !c.startDate || !c.endDate ? !1 : h(c.startDate, c.endDate) && h(t, c.startDate), ue = (t, e) => {
|
|
156
|
+
const a = K || t - 10;
|
|
157
|
+
let r = b ? t + 10 : t;
|
|
158
|
+
if (D) {
|
|
159
|
+
const s = /* @__PURE__ */ new Date(), i = new Date(s);
|
|
160
|
+
i.setDate(i.getDate() + D);
|
|
161
|
+
const n = i.getFullYear();
|
|
162
|
+
r = Math.min(r, n);
|
|
163
|
+
}
|
|
164
|
+
r = Math.max(r, e);
|
|
165
|
+
const d = r - a + 1;
|
|
166
|
+
return Array.from({
|
|
167
|
+
length: d
|
|
168
|
+
}, (s, i) => ({
|
|
169
|
+
value: a + i,
|
|
170
|
+
label: (a + i).toString()
|
|
171
|
+
})).filter((s) => {
|
|
172
|
+
if (s.value === e)
|
|
173
|
+
return !0;
|
|
174
|
+
if (!b && s.value > t)
|
|
175
|
+
return !1;
|
|
176
|
+
if (D) {
|
|
177
|
+
const i = /* @__PURE__ */ new Date(), n = new Date(i);
|
|
178
|
+
return n.setDate(n.getDate() + D), s.value <= n.getFullYear();
|
|
31
179
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
},
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
180
|
+
return !0;
|
|
181
|
+
});
|
|
182
|
+
}, De = () => {
|
|
183
|
+
const t = /* @__PURE__ */ new Date(), e = /* @__PURE__ */ new Date();
|
|
184
|
+
e.setHours(0, 0, 0, 0), t.setHours(23, 59, 59, 999), w({
|
|
185
|
+
startDate: e,
|
|
186
|
+
endDate: t
|
|
187
|
+
});
|
|
188
|
+
}, f = (t) => {
|
|
189
|
+
const e = new Date(t);
|
|
190
|
+
return e.setHours(0, 0, 0, 0), e;
|
|
191
|
+
}, p = (t) => {
|
|
192
|
+
const e = new Date(t);
|
|
193
|
+
return e.setHours(23, 59, 59, 999), e;
|
|
194
|
+
}, de = (t) => {
|
|
195
|
+
const e = /* @__PURE__ */ new Date();
|
|
196
|
+
let a = /* @__PURE__ */ new Date(), r = /* @__PURE__ */ new Date();
|
|
197
|
+
switch (t) {
|
|
198
|
+
case "Today":
|
|
199
|
+
a = f(e), r = p(e);
|
|
200
|
+
break;
|
|
201
|
+
case "Yesterday":
|
|
202
|
+
a = f(new Date(e.setDate(e.getDate() - 1))), r = p(new Date(e));
|
|
203
|
+
break;
|
|
204
|
+
case "This Week":
|
|
205
|
+
const d = new Date(e.setDate(e.getDate() - e.getDay()));
|
|
206
|
+
a = f(d), r = p(/* @__PURE__ */ new Date());
|
|
207
|
+
break;
|
|
208
|
+
case "Last Week":
|
|
209
|
+
const s = new Date(e.setDate(e.getDate() - e.getDay() - 7)), i = new Date(e.setDate(s.getDate() + 6));
|
|
210
|
+
a = f(s), r = p(i);
|
|
211
|
+
break;
|
|
212
|
+
case "This Month":
|
|
213
|
+
a = f(new Date(e.getFullYear(), e.getMonth(), 1)), r = p(/* @__PURE__ */ new Date());
|
|
214
|
+
break;
|
|
215
|
+
case "Last Month":
|
|
216
|
+
a = f(new Date(e.getFullYear(), e.getMonth() - 1, 1)), r = p(new Date(e.getFullYear(), e.getMonth(), 0));
|
|
217
|
+
break;
|
|
218
|
+
}
|
|
219
|
+
w({
|
|
220
|
+
startDate: a,
|
|
221
|
+
endDate: r
|
|
222
|
+
});
|
|
223
|
+
}, ge = () => /* @__PURE__ */ o.createElement("div", {
|
|
224
|
+
className: "w-[147px] p-4 border-r border-[var(--color-gray-200)]"
|
|
225
|
+
}, /* @__PURE__ */ o.createElement("div", {
|
|
226
|
+
className: "flex flex-col gap-3"
|
|
227
|
+
}, pe.map((t) => /* @__PURE__ */ o.createElement(S, {
|
|
228
|
+
key: t,
|
|
229
|
+
label: t,
|
|
230
|
+
type: "link",
|
|
231
|
+
onClick: () => de(t)
|
|
232
|
+
})))), me = () => {
|
|
233
|
+
const {
|
|
234
|
+
startDate: t = null,
|
|
235
|
+
endDate: e = null
|
|
236
|
+
} = c;
|
|
237
|
+
if (t && e) {
|
|
238
|
+
x({
|
|
239
|
+
startDate: t,
|
|
240
|
+
endDate: e
|
|
241
|
+
});
|
|
242
|
+
return;
|
|
243
|
+
}
|
|
244
|
+
if (t || e) {
|
|
245
|
+
const a = t || e;
|
|
246
|
+
x({
|
|
247
|
+
startDate: a,
|
|
248
|
+
endDate: a
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
}, H = (t) => {
|
|
252
|
+
const e = t.getFullYear(), a = t.getMonth(), r = ne(e, a), d = (/* @__PURE__ */ new Date()).getFullYear(), s = t.getTime() === v.getTime(), i = ue(d, e);
|
|
253
|
+
return /* @__PURE__ */ o.createElement("div", {
|
|
254
|
+
className: "se-design-calendar-container w-fit p-4"
|
|
255
|
+
}, /* @__PURE__ */ o.createElement("div", {
|
|
256
|
+
className: "flex justify-between items-center"
|
|
257
|
+
}, /* @__PURE__ */ o.createElement(T, {
|
|
258
|
+
name: "chevron",
|
|
259
|
+
rotation: "90",
|
|
260
|
+
size: 16,
|
|
261
|
+
onClick: () => {
|
|
262
|
+
const n = I(t, !1);
|
|
263
|
+
if ($) {
|
|
264
|
+
const l = /* @__PURE__ */ new Date();
|
|
265
|
+
if (l.setHours(0, 0, 0, 0), n < l && n.getMonth() !== l.getMonth())
|
|
266
|
+
return;
|
|
267
|
+
}
|
|
268
|
+
y(n, s);
|
|
269
|
+
},
|
|
270
|
+
className: `datepicker-navigation-icon ${$ && t.getMonth() === (/* @__PURE__ */ new Date()).getMonth() && t.getFullYear() === (/* @__PURE__ */ new Date()).getFullYear() ? "disabled" : ""}`,
|
|
271
|
+
automationId: `${m}-previous-month`
|
|
272
|
+
}), /* @__PURE__ */ o.createElement("div", {
|
|
273
|
+
className: "flex gap-2",
|
|
274
|
+
onClick: (n) => n.stopPropagation()
|
|
275
|
+
}, /* @__PURE__ */ o.createElement(Q, {
|
|
276
|
+
type: "select",
|
|
277
|
+
dropDownOptions: O,
|
|
278
|
+
defaultSelectedValue: O[a],
|
|
279
|
+
selectBy: "label",
|
|
280
|
+
optionsUniqueBy: "value",
|
|
281
|
+
displaySelected: !0,
|
|
282
|
+
onOptionClick: (n) => {
|
|
283
|
+
const l = new Date(t);
|
|
284
|
+
l.setMonth(O.findIndex((u) => u.value === n.value)), y(l, s);
|
|
285
|
+
},
|
|
286
|
+
className: "w-[124px] dropdown-option-container"
|
|
287
|
+
}), /* @__PURE__ */ o.createElement(Q, {
|
|
288
|
+
type: "select",
|
|
289
|
+
dropDownOptions: i,
|
|
290
|
+
defaultSelectedValue: i.find((n) => n.value === e),
|
|
291
|
+
selectBy: "label",
|
|
292
|
+
optionsUniqueBy: "value",
|
|
293
|
+
displaySelected: !0,
|
|
294
|
+
onOptionClick: (n) => {
|
|
295
|
+
const l = new Date(t);
|
|
296
|
+
l.setFullYear(n.value), y(l, s);
|
|
297
|
+
},
|
|
298
|
+
className: "w-[104px] dropdown-option-container"
|
|
299
|
+
})), /* @__PURE__ */ o.createElement(T, {
|
|
300
|
+
name: "chevron",
|
|
301
|
+
rotation: "270",
|
|
302
|
+
size: 16,
|
|
303
|
+
className: `datepicker-navigation-icon ${!b && a === (/* @__PURE__ */ new Date()).getMonth() && e === (/* @__PURE__ */ new Date()).getFullYear() || D !== void 0 && (() => {
|
|
304
|
+
const n = /* @__PURE__ */ new Date(), l = new Date(n);
|
|
305
|
+
return l.setDate(l.getDate() + D), t.getMonth() === l.getMonth() && t.getFullYear() === l.getFullYear();
|
|
306
|
+
})() ? "disabled" : ""}`,
|
|
307
|
+
onClick: () => {
|
|
308
|
+
const n = I(t, !0);
|
|
309
|
+
if (D !== void 0) {
|
|
310
|
+
const l = /* @__PURE__ */ new Date(), u = new Date(l);
|
|
311
|
+
if (u.setDate(u.getDate() + D), n > u)
|
|
312
|
+
return;
|
|
313
|
+
}
|
|
314
|
+
y(n, s);
|
|
315
|
+
},
|
|
316
|
+
automationId: `${m}-next-month`
|
|
317
|
+
})), /* @__PURE__ */ o.createElement("div", {
|
|
318
|
+
className: "grid grid-cols-7 gap-2 mt-3"
|
|
319
|
+
}, fe.map((n, l) => /* @__PURE__ */ o.createElement("div", {
|
|
320
|
+
key: `${n}-${l}`,
|
|
321
|
+
className: "datepicker-weekdays"
|
|
322
|
+
}, n)), r.map((n, l) => {
|
|
323
|
+
const u = n && le(n), g = n && ce(n), k = n && ie(n), J = n && !u && !g && re(n), V = n && oe(n), M = z(n), _ = n?.getDate();
|
|
324
|
+
return /* @__PURE__ */ o.createElement("div", {
|
|
325
|
+
key: `${n}-${l}`,
|
|
326
|
+
onClick: () => !M && n && se(n),
|
|
327
|
+
className: `
|
|
328
|
+
relative h-10 w-10 flex items-center justify-center transition-colors rounded-md
|
|
329
|
+
${M ? "cursor-not-allowed text-[var(--color-gray-600)] hover:bg-transparent" : "cursor-pointer"}
|
|
330
|
+
${k ? "bg-[var(--color-blue-500)] text-[var(--color-white)] hover:bg-[var(--color-blue-600)]" : ""}
|
|
331
|
+
${!k && u ? "bg-[var(--color-blue-500)] text-[var(--color-white)] hover:bg-[var(--color-blue-600)]" : ""}
|
|
332
|
+
${!k && g ? "bg-[var(--color-blue-500)] text-[var(--color-white)] hover:bg-[var(--color-blue-600)]" : ""}
|
|
333
|
+
${!u && !g && J ? "bg-[var(--color-blue-100)] text-[var(--color-blue-600)]" : ""}
|
|
334
|
+
${!u && !g && !J && !M ? "hover:bg-[var(--color-blue-100)]" : ""}
|
|
335
|
+
${V && !u && !g ? "text-[var(--color-blue-500)]" : ""}
|
|
336
|
+
${!M && !u && !g && !V ? "text-[var(--color-gray-700)]" : ""}
|
|
337
|
+
`,
|
|
338
|
+
"data-automation-id": `${m}-date-${_}`
|
|
339
|
+
}, n ? /* @__PURE__ */ o.createElement(o.Fragment, null, _, !k && (u || g) && /* @__PURE__ */ o.createElement("div", {
|
|
340
|
+
className: `absolute top-0 bottom-0 ${u ? "right-[-8px]" : "left-[-8px]"} w-[8px]
|
|
341
|
+
bg-[var(--color-blue-100)] -z-10`
|
|
342
|
+
})) : "");
|
|
343
|
+
})));
|
|
344
|
+
};
|
|
345
|
+
return /* @__PURE__ */ o.createElement("div", {
|
|
346
|
+
className: `se-design-datepicker-container flex flex-col bg-[var(--color-white)] rounded-md shadow-md w-max ${X}`
|
|
347
|
+
}, G && /* @__PURE__ */ o.createElement("div", {
|
|
348
|
+
className: "se-design-datepicker-header flex justify-between items-center border-b border-[var(--color-gray-200)] p-4"
|
|
349
|
+
}, /* @__PURE__ */ o.createElement("h2", {
|
|
350
|
+
className: "datepicker-title"
|
|
351
|
+
}, U), N && /* @__PURE__ */ o.createElement(T, {
|
|
352
|
+
name: "close",
|
|
353
|
+
size: 16,
|
|
354
|
+
onClick: N,
|
|
355
|
+
className: "cursor-pointer",
|
|
356
|
+
automationId: `${m}-close`
|
|
357
|
+
})), /* @__PURE__ */ o.createElement("div", {
|
|
358
|
+
className: "se-design-datepicker-content flex"
|
|
359
|
+
}, P && ge(), /* @__PURE__ */ o.createElement("div", {
|
|
360
|
+
className: "flex"
|
|
361
|
+
}, Y ? H(v) : /* @__PURE__ */ o.createElement(o.Fragment, null, H(v), /* @__PURE__ */ o.createElement("div", {
|
|
362
|
+
className: "h-full w-[1px] border-r border-[var(--color-gray-200)]"
|
|
363
|
+
}), H(F)))), !W && /* @__PURE__ */ o.createElement("div", {
|
|
364
|
+
className: "se-design-datepicker-footer flex justify-end items-center gap-5 p-4 border-t border-[var(--color-gray-200)]"
|
|
365
|
+
}, /* @__PURE__ */ o.createElement(S, {
|
|
366
|
+
label: j?.clear || "Clear",
|
|
367
|
+
type: "link",
|
|
368
|
+
onClick: De,
|
|
369
|
+
"data-automation-id": `${m}-clear-button`
|
|
370
|
+
}), /* @__PURE__ */ o.createElement(S, {
|
|
371
|
+
label: j?.apply || "Apply",
|
|
372
|
+
type: "primary",
|
|
373
|
+
onClick: me,
|
|
374
|
+
"data-automation-id": `${m}-apply-button`
|
|
375
|
+
})));
|
|
376
|
+
};
|
|
65
377
|
export {
|
|
66
|
-
|
|
378
|
+
ke as DatePicker
|
|
67
379
|
};
|
|
68
380
|
//# sourceMappingURL=index50.js.map
|
package/dist/index50.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index50.js","sources":["../src/components/InputWithIcon/index.tsx"],"sourcesContent":["import React from 'react';\nimport { Icon } from '../Icon';\nimport './styles.scss';\n\nexport interface InputIconProps {\n className?: string;\n disabled?: boolean;\n disableHover?: boolean;\n name: string;\n onClick?: () => void;\n position: 'left' | 'right';\n style?: React.CSSProperties;\n}\n\nexport interface InputWithIconProps {\n disabled?: boolean;\n error?: boolean;\n errorMessage?: string;\n inputStyle?: React.CSSProperties;\n label?: string;\n leftIcon?: InputIconProps;\n maxLength?: number | undefined;\n onChange: (value: string) => void;\n onClick?: (e: React.MouseEvent<HTMLInputElement>) => void;\n placeholder?: string;\n rightIcon?: InputIconProps;\n style?: React.CSSProperties;\n tag?: string;\n type?: 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'search';\n value: string;\n className?: string;\n automationId?: string;\n}\n\nexport function InputWithIcon({\n disabled,\n error,\n errorMessage,\n inputStyle,\n label,\n leftIcon,\n maxLength,\n onChange,\n onClick,\n placeholder,\n rightIcon,\n style,\n tag,\n type = 'text',\n value,\n className = '',\n automationId = ''\n}: InputWithIconProps) {\n const Element = tag || 'input';\n\n const renderIcon = (iconProps: InputIconProps) => {\n if (!iconProps) return null;\n \n const isIconDisabled = disabled || iconProps.disabled;\n \n return (\n <div \n className={`input-with-icon-icon input-with-icon-icon-${iconProps.position} ${iconProps.className || ''} ${isIconDisabled ? 'disabled' : ''} ${iconProps.disableHover ? 'no-hover' : ''}`}\n style={iconProps.style}\n onClick={isIconDisabled ? undefined : (e) => {\n // First trigger the icon's own onClick handler\n if (iconProps.onClick) {\n iconProps.onClick();\n }\n // Then also trigger the input's onClick handler\n if (onClick) {\n onClick(e as any);\n }\n }}\n >\n <Icon name={iconProps.name} />\n </div>\n );\n };\n\n const hasLeftIcon = !!leftIcon;\n const hasRightIcon = !!rightIcon;\n\n return (\n <div className={`input-with-icon-main-container ${className}`} style={style} data-automation-id={automationId}>\n {label && <div className=\"label-container\">{label}</div>}\n <div \n className={`input-with-icon-wrapper ${hasLeftIcon ? 'has-left-icon' : ''} ${hasRightIcon ? 'has-right-icon' : ''}`}\n onClick={onClick ? (e) => {\n // Trigger input onClick when clicking on wrapper area (but not on icons, as they handle it themselves)\n const target = e.target as HTMLElement;\n const isClickingIcon = target.closest('.input-with-icon-icon');\n \n if (!isClickingIcon) {\n onClick(e as any);\n }\n } : undefined}\n >\n {renderIcon(leftIcon!)}\n {React.createElement(Element, {\n value,\n onChange: (e: React.ChangeEvent<HTMLInputElement>) => onChange(e.target.value),\n onClick: onClick,\n disabled,\n type,\n className: `input-with-icon-element ${error ? 'input-with-icon-container-error' : 'input-with-icon-container-default'} ${disabled ? 'input-with-icon-container-disabled' : ''}`,\n maxLength: maxLength ? maxLength : undefined,\n placeholder: placeholder,\n style: inputStyle\n })}\n {renderIcon(rightIcon!)}\n </div>\n {(error || maxLength) &&\n <div className={`${error ? 'error-and-max-word' : 'max-word-container'}`}>\n {error && <div className=\"error-message\">{errorMessage}</div>}\n {maxLength && <div className=\"max-word\">{maxLength && value?.length + '/' + maxLength}</div>}\n </div>\n }\n </div>\n );\n}\n"],"names":["React__default","Icon","InputWithIcon","disabled","error","errorMessage","inputStyle","label","leftIcon","maxLength","onChange","onClick","placeholder","rightIcon","style","tag","type","value","className","automationId","Element","renderIcon","iconProps","isIconDisabled","React","createElement","position","disableHover","undefined","e","name","hasLeftIcon","hasRightIcon","target","closest","length"],"mappings":"AAkCO,OAAAA,OAAA;AAAA,SAAA,QAAAC,SAAA;AAAA,OAAA;AAAA,SAASC,EAAc;AAAA,EAC5BC,UAAAA;AAAAA,EACAC,OAAAA;AAAAA,EACAC,cAAAA;AAAAA,EACAC,YAAAA;AAAAA,EACAC,OAAAA;AAAAA,EACAC,UAAAA;AAAAA,EACAC,WAAAA;AAAAA,EACAC,UAAAA;AAAAA,EACAC,SAAAA;AAAAA,EACAC,aAAAA;AAAAA,EACAC,WAAAA;AAAAA,EACAC,OAAAA;AAAAA,EACAC,KAAAA;AAAAA,EACAC,MAAAA,IAAO;AAAA,EACPC,OAAAA;AAAA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A,IAC5BH,OAAAA;AAAAA,IACAP,UAAUA,CAACmB,MAA2CnB,EAASmB,EAAEI,OAAOhB,KAAK;AAAA,IAC7EN,SAAAA;AAAAA,IACAR,UAAAA;AAAAA,IACAa,MAAAA;AAAAA,IACAE,WAAW,2BAA2Bd,IAAQ,oCAAoC,mCAAmC,IAAID,IAAW,uCAAuC,EAAE;AAAA,IAC7KM,WAAWA,KAAwBmB;AAAAA,IACnChB,aAAAA;AAAAA,IACAE,OAAOR;AAAAA,EAAAA,CACR,GACAe,EAAWR,CAAU,CACnB,IACHT,KAASK,MACTe,gBAAAA,EAAAC,cAAA,OAAA;AAAA,IAAKP,WAAW,GAAGd,IAAQ,uBAAuB,oBAAoB;AAAA,EAAA,GACnEA,KAASoB,gBAAAA,EAAAC,cAAA,OAAA;AAAA,IAAKP,WAAU;AAAA,EAAA,GAAiBb,CAAkB,GAC3DI,KAAae,gBAAAA,EAAAC,cAAA,OAAA;AAAA,IAAKP,WAAU;AAAA,EAAA,GAAYT,KAAaQ,GAAOkB,SAAS,MAAM1B,CAAe,CACxF,CAEJ;AAET;"}
|
|
1
|
+
{"version":3,"file":"index50.js","sources":["../src/components/DatePicker/index.tsx"],"sourcesContent":["import React, { useState } from 'react';\n\nimport { Button } from '../Button';\nimport { Icon } from '../Icon';\nimport { Dropdown } from '../Dropdown';\n\nimport './style.scss';\n\nexport interface DateRange {\n startDate: Date | null;\n endDate: Date | null;\n}\n\nexport interface DatePickerProps {\n title?: string;\n isOpen?: boolean;\n initialStartDate?: Date;\n initialEndDate?: Date;\n onApply?: (dateRange: DateRange) => void;\n onClose?: () => void;\n shouldAllowFutureDateSelection?: boolean;\n maxDays?: number;\n disablePastDates?: boolean;\n singleDateSelection?: boolean;\n minYearOption?: number;\n showQuickActions?: boolean;\n className?: string;\n automationId?: string;\n showHeader?: boolean;\n showSingleMonth?: boolean;\n labels?: {\n title?: string;\n clear?: string;\n apply?: string;\n };\n}\n\nconst weekDays = ['S', 'M', 'T', 'W', 'T', 'F', 'S'];\nconst quickActions = ['Today', 'Yesterday', 'This Week', 'Last Week', 'This Month', 'Last Month'];\n\nconst months = [\n { value: 'january', label: 'January' },\n { value: 'february', label: 'February' },\n { value: 'march', label: 'March' },\n { value: 'april', label: 'April' },\n { value: 'may', label: 'May' },\n { value: 'june', label: 'June' },\n { value: 'july', label: 'July' },\n { value: 'august', label: 'August' },\n { value: 'september', label: 'September' },\n { value: 'october', label: 'October' },\n { value: 'november', label: 'November' },\n { value: 'december', label: 'December' }\n];\n\nexport const DatePicker: React.FC<DatePickerProps> = ({\n title = 'Select modified date',\n // isOpen = true,\n showHeader = true,\n initialStartDate,\n initialEndDate,\n onApply = () => {},\n onClose,\n shouldAllowFutureDateSelection = false,\n maxDays,\n disablePastDates = false,\n singleDateSelection = false,\n minYearOption,\n showQuickActions = false,\n showSingleMonth = false,\n className = '',\n automationId = 'datepicker',\n labels = {\n clear: 'Clear',\n apply: 'Apply'\n }\n}) => {\n const getDefaultDateRange = (): DateRange => {\n // If initial start and end dates are provided, use them\n if (initialStartDate && initialEndDate) {\n return {\n startDate: initialStartDate,\n endDate: initialEndDate\n };\n }\n\n // If no initial dates are provided, use today's date\n const endDate = new Date();\n endDate.setHours(23, 59, 59, 999); // End of today\n\n const startDate = new Date();\n startDate.setHours(0, 0, 0, 0); // Start of today\n\n return { startDate, endDate };\n };\n\n const getDefaultMonths = (): [Date, Date] => {\n const today = new Date();\n const lastMonth = new Date();\n\n // Set both to first day of their respective months\n today.setDate(1);\n lastMonth.setDate(1);\n\n if (!showSingleMonth) {\n lastMonth.setMonth(lastMonth.getMonth() - 1);\n }\n\n today.setHours(0, 0, 0, 0);\n lastMonth.setHours(0, 0, 0, 0);\n\n return [lastMonth, today];\n };\n\n const [selectedRange, setSelectedRange] = useState<DateRange>(getDefaultDateRange);\n const [defaultMonths, _] = useState(getDefaultMonths);\n const [leftMonth, setLeftMonth] = useState(() => defaultMonths[0]);\n const [rightMonth, setRightMonth] = useState(() => defaultMonths[1]);\n\n const getDaysInMonth = (year: number, month: number) => {\n return new Date(year, month + 1, 0).getDate();\n };\n\n const getFirstDayOfMonth = (year: number, month: number) => {\n return new Date(year, month, 1).getDay();\n };\n\n const generateCalendarDays = (year: number, month: number) => {\n const daysInMonth = getDaysInMonth(year, month);\n const firstDay = getFirstDayOfMonth(year, month);\n const days = [];\n\n // Add empty cells for days before the first day of the month\n for (let i = 0; i < firstDay; i++) {\n days.push(null);\n }\n\n // Add the days of the month\n for (let day = 1; day <= daysInMonth; day++) {\n const date = new Date(year, month, day);\n date.setHours(0, 0, 0, 0); // Normalize to start of day for consistent comparisons\n days.push(date);\n }\n\n return days;\n };\n\n const isSameDay = (date1: Date, date2: Date): boolean => {\n return (\n date1.getDate() === date2.getDate() &&\n date1.getMonth() === date2.getMonth() &&\n date1.getFullYear() === date2.getFullYear()\n );\n };\n\n const isDateInRange = (date: Date) => {\n if (!selectedRange.startDate || !selectedRange.endDate) return false;\n\n const compareDate = new Date(date);\n compareDate.setHours(12, 0, 0, 0); // Noon to avoid any timezone issues\n\n const startDate = new Date(selectedRange.startDate);\n startDate.setHours(0, 0, 0, 0);\n\n const endDate = new Date(selectedRange.endDate);\n endDate.setHours(23, 59, 59, 999);\n\n return compareDate >= startDate && compareDate <= endDate;\n };\n\n const isToday = (date: Date) => {\n const today = new Date();\n return (\n date.getDate() === today.getDate() &&\n date.getMonth() === today.getMonth() &&\n date.getFullYear() === today.getFullYear()\n );\n };\n\n const isDateDisabled = (date: Date | null) => {\n if (!date) return true;\n\n const today = new Date();\n today.setHours(0, 0, 0, 0);\n const dateToCheck = new Date(date);\n dateToCheck.setHours(0, 0, 0, 0);\n\n // If disablePastDates is true, disable dates before today\n if (disablePastDates && dateToCheck < today) {\n return true;\n }\n\n // If maxDays is specified, disable dates after maxDays from today\n if (maxDays !== undefined && maxDays !== null) {\n const maxDate = new Date(today);\n maxDate.setDate(maxDate.getDate() + maxDays);\n maxDate.setHours(0, 0, 0, 0); // Normalize to start of day\n // Disable all dates after maxDays (dates strictly after maxDate should be disabled)\n // Dates up to and including maxDate (today + maxDays) are allowed\n if (dateToCheck > maxDate) {\n return true;\n }\n // If maxDays is set, we're done checking - don't check shouldAllowFutureDateSelection\n return false;\n }\n\n // If shouldAllowFutureDateSelection is false and maxDays is not specified, disable dates after today\n if (!shouldAllowFutureDateSelection) {\n return dateToCheck > today;\n }\n\n return false;\n };\n\n const handleDateClick = (date: Date) => {\n if (isDateDisabled(date)) return;\n\n const clickedDate = new Date(date);\n clickedDate.setHours(12, 0, 0, 0); // Set to noon to avoid timezone issues\n\n // Single date selection mode - immediately apply on click\n if (singleDateSelection) {\n setSelectedRange({ startDate: clickedDate, endDate: clickedDate });\n onApply({ startDate: clickedDate, endDate: clickedDate });\n onClose?.();\n return;\n }\n\n // Range selection mode (original behavior)\n if (!selectedRange.startDate || selectedRange.endDate) {\n // No dates selected yet, or both dates are selected - start new selection\n setSelectedRange({ startDate: clickedDate, endDate: null });\n } else {\n // Only start date is selected, set end date\n const currentStart = new Date(selectedRange.startDate);\n currentStart.setHours(12, 0, 0, 0);\n\n const endDate = clickedDate > currentStart ? clickedDate : currentStart;\n const startDate = clickedDate > currentStart ? currentStart : clickedDate;\n\n setSelectedRange({ startDate, endDate });\n }\n };\n\n const handleMonthNavigation = (date: Date, increment: boolean) => {\n const newDate = new Date(date);\n newDate.setMonth(newDate.getMonth() + (increment ? 1 : -1));\n return newDate;\n };\n\n const ensureDateInCorrectOrder = (leftDate: Date, rightDate: Date): [Date, Date] => {\n if (leftDate.getTime() > rightDate.getTime()) {\n return [rightDate, leftDate];\n }\n return [leftDate, rightDate];\n };\n\n const handleMonthChange = (newDate: Date, isLeftCalendar: boolean) => {\n // For single month view, we only need to set the left month\n if (showSingleMonth) {\n setLeftMonth(newDate);\n return;\n }\n\n // For double month view, we need to ensure the dates are in the correct order\n if (isLeftCalendar) {\n const [newLeft, newRight] = ensureDateInCorrectOrder(newDate, rightMonth);\n setLeftMonth(newLeft);\n if (newRight !== rightMonth) {\n setRightMonth(newRight);\n }\n } else {\n const [newLeft, newRight] = ensureDateInCorrectOrder(leftMonth, newDate);\n if (newLeft !== leftMonth) {\n setLeftMonth(newLeft);\n }\n setRightMonth(newRight);\n }\n };\n\n const isStartDate = (date: Date): boolean => {\n if (!selectedRange?.startDate) return false;\n return isSameDay(date, selectedRange.startDate);\n };\n\n const isEndDate = (date: Date): boolean => {\n if (!selectedRange?.endDate) return false;\n return isSameDay(date, selectedRange?.endDate);\n };\n\n const isSameStartAndEndDate = (date: Date): boolean => {\n if (!selectedRange.startDate || !selectedRange.endDate) return false;\n return isSameDay(selectedRange.startDate, selectedRange.endDate) && isSameDay(date, selectedRange.startDate);\n };\n\n const getYearOptions = (currentYear: number, calendarYear: number) => {\n const startYear = minYearOption || currentYear - 10;\n let endYear = shouldAllowFutureDateSelection ? currentYear + 10 : currentYear;\n\n // If maxDays is specified, calculate the maximum year\n if (maxDays) {\n const today = new Date();\n const maxDate = new Date(today);\n maxDate.setDate(maxDate.getDate() + maxDays);\n const maxYear = maxDate.getFullYear();\n // Use the smaller of the two limits\n endYear = Math.min(endYear, maxYear);\n }\n\n endYear = Math.max(endYear, calendarYear);\n\n const yearCount = endYear - startYear + 1;\n\n return Array.from({ length: yearCount }, (_, i) => ({\n value: startYear + i,\n label: (startYear + i).toString()\n })).filter((year) => {\n if (year.value === calendarYear) {\n return true;\n }\n if (!shouldAllowFutureDateSelection && year.value > currentYear) {\n return false;\n }\n // If maxDays is specified, filter out years beyond maxDate\n if (maxDays) {\n const today = new Date();\n const maxDate = new Date(today);\n maxDate.setDate(maxDate.getDate() + maxDays);\n return year.value <= maxDate.getFullYear();\n }\n return true;\n });\n };\n\n const handleClear = () => {\n const today = new Date();\n const startDate = new Date();\n\n // Set start date to beginning of today\n startDate.setHours(0, 0, 0, 0);\n\n // Set end date to end of today\n today.setHours(23, 59, 59, 999);\n\n const defaultRange = { startDate, endDate: today };\n setSelectedRange(defaultRange);\n };\n\n const getStartOfDay = (date: Date) => {\n const newDate = new Date(date);\n newDate.setHours(0, 0, 0, 0);\n return newDate;\n };\n\n const getEndOfDay = (date: Date) => {\n const newDate = new Date(date);\n newDate.setHours(23, 59, 59, 999);\n return newDate;\n };\n\n const handleQuickAction = (action: string) => {\n const today = new Date();\n let startDate = new Date();\n let endDate = new Date();\n\n switch (action) {\n case 'Today':\n startDate = getStartOfDay(today);\n endDate = getEndOfDay(today);\n break;\n case 'Yesterday':\n startDate = getStartOfDay(new Date(today.setDate(today.getDate() - 1)));\n endDate = getEndOfDay(new Date(today));\n break;\n case 'This Week':\n const firstDayOfWeek = new Date(today.setDate(today.getDate() - today.getDay()));\n startDate = getStartOfDay(firstDayOfWeek);\n endDate = getEndOfDay(new Date());\n break;\n case 'Last Week':\n const lastWeekStart = new Date(today.setDate(today.getDate() - today.getDay() - 7));\n const lastWeekEnd = new Date(today.setDate(lastWeekStart.getDate() + 6));\n startDate = getStartOfDay(lastWeekStart);\n endDate = getEndOfDay(lastWeekEnd);\n break;\n case 'This Month':\n startDate = getStartOfDay(new Date(today.getFullYear(), today.getMonth(), 1));\n endDate = getEndOfDay(new Date());\n break;\n case 'Last Month':\n startDate = getStartOfDay(new Date(today.getFullYear(), today.getMonth() - 1, 1));\n endDate = getEndOfDay(new Date(today.getFullYear(), today.getMonth(), 0));\n break;\n }\n\n setSelectedRange({ startDate, endDate });\n };\n\n const renderQuickActions = () => {\n return (\n <div className=\"w-[147px] p-4 border-r border-[var(--color-gray-200)]\">\n <div className=\"flex flex-col gap-3\">\n {quickActions.map((action) => (\n <Button key={action} label={action} type=\"link\" onClick={() => handleQuickAction(action)} />\n ))}\n </div>\n </div>\n );\n };\n\n const handleApply = () => {\n const { startDate = null, endDate = null } = selectedRange;\n\n if (startDate && endDate) {\n onApply({ startDate, endDate });\n return;\n }\n\n if (startDate || endDate) {\n const selectedDate = startDate || endDate;\n onApply({ startDate: selectedDate, endDate: selectedDate });\n }\n };\n\n const renderCalendar = (date: Date) => {\n const year = date.getFullYear();\n const month = date.getMonth();\n const days = generateCalendarDays(year, month);\n const currentYear = new Date().getFullYear();\n const isLeftCalendar = date.getTime() === leftMonth.getTime();\n const yearOptions = getYearOptions(currentYear, year);\n\n return (\n <div className=\"se-design-calendar-container w-fit p-4\">\n <div className=\"flex justify-between items-center\">\n <Icon\n name=\"chevron\"\n rotation=\"90\"\n size={16}\n onClick={() => {\n const newDate = handleMonthNavigation(date, false);\n // Check if navigating back would go before today when disablePastDates is true\n if (disablePastDates) {\n const today = new Date();\n today.setHours(0, 0, 0, 0);\n if (newDate < today && newDate.getMonth() !== today.getMonth()) {\n return; // Don't navigate to past months\n }\n }\n handleMonthChange(newDate, isLeftCalendar);\n }}\n className={`datepicker-navigation-icon ${\n disablePastDates &&\n date.getMonth() === new Date().getMonth() &&\n date.getFullYear() === new Date().getFullYear()\n ? 'disabled'\n : ''\n }`}\n automationId={`${automationId}-previous-month`}\n />\n\n <div className=\"flex gap-2\" onClick={(e) => e.stopPropagation()}>\n <Dropdown\n type=\"select\"\n dropDownOptions={months}\n defaultSelectedValue={months[month]}\n selectBy=\"label\"\n optionsUniqueBy=\"value\"\n displaySelected={true}\n onOptionClick={(selectedOption) => {\n const newDate = new Date(date);\n newDate.setMonth(months.findIndex((m) => m.value === selectedOption.value));\n handleMonthChange(newDate, isLeftCalendar);\n }}\n className=\"w-[124px] dropdown-option-container\"\n />\n <Dropdown\n type=\"select\"\n dropDownOptions={yearOptions}\n defaultSelectedValue={yearOptions.find((y) => y.value === year)}\n selectBy=\"label\"\n optionsUniqueBy=\"value\"\n displaySelected={true}\n onOptionClick={(selectedOption) => {\n const newDate = new Date(date);\n newDate.setFullYear(selectedOption.value);\n handleMonthChange(newDate, isLeftCalendar);\n }}\n className=\"w-[104px] dropdown-option-container\"\n />\n </div>\n\n <Icon\n name=\"chevron\"\n rotation=\"270\"\n size={16}\n className={`datepicker-navigation-icon ${\n (!shouldAllowFutureDateSelection &&\n month === new Date().getMonth() &&\n year === new Date().getFullYear()) ||\n (maxDays !== undefined &&\n (() => {\n const today = new Date();\n const maxDate = new Date(today);\n maxDate.setDate(maxDate.getDate() + maxDays);\n return date.getMonth() === maxDate.getMonth() && date.getFullYear() === maxDate.getFullYear();\n })())\n ? 'disabled'\n : ''\n }`}\n onClick={() => {\n const newDate = handleMonthNavigation(date, true);\n // Check if the new date would exceed maxDays\n if (maxDays !== undefined) {\n const today = new Date();\n const maxDate = new Date(today);\n maxDate.setDate(maxDate.getDate() + maxDays);\n if (newDate > maxDate) {\n return;\n }\n }\n handleMonthChange(newDate, isLeftCalendar);\n }}\n automationId={`${automationId}-next-month`}\n />\n </div>\n <div className=\"grid grid-cols-7 gap-2 mt-3\">\n {weekDays.map((day, index) => (\n <div key={`${day}-${index}`} className=\"datepicker-weekdays\">\n {day}\n </div>\n ))}\n {days.map((date, index) => {\n const isStart = date && isStartDate(date);\n const isEnd = date && isEndDate(date);\n const isSameStartEnd = date && isSameStartAndEndDate(date);\n const inRange = date && !isStart && !isEnd && isDateInRange(date);\n const todayDate = date && isToday(date);\n const disabled = isDateDisabled(date);\n const dateValue = date?.getDate();\n\n return (\n <div\n key={`${date}-${index}`}\n onClick={() => !disabled && date && handleDateClick(date)}\n className={`\n relative h-10 w-10 flex items-center justify-center transition-colors rounded-md\n ${\n disabled ? 'cursor-not-allowed text-[var(--color-gray-600)] hover:bg-transparent' : 'cursor-pointer'\n }\n ${\n isSameStartEnd\n ? 'bg-[var(--color-blue-500)] text-[var(--color-white)] hover:bg-[var(--color-blue-600)]'\n : ''\n }\n ${\n !isSameStartEnd && isStart\n ? 'bg-[var(--color-blue-500)] text-[var(--color-white)] hover:bg-[var(--color-blue-600)]'\n : ''\n }\n ${\n !isSameStartEnd && isEnd\n ? 'bg-[var(--color-blue-500)] text-[var(--color-white)] hover:bg-[var(--color-blue-600)]'\n : ''\n }\n ${!isStart && !isEnd && inRange ? 'bg-[var(--color-blue-100)] text-[var(--color-blue-600)]' : ''}\n ${!isStart && !isEnd && !inRange && !disabled ? 'hover:bg-[var(--color-blue-100)]' : ''}\n ${todayDate && !isStart && !isEnd ? 'text-[var(--color-blue-500)]' : ''}\n ${!disabled && !isStart && !isEnd && !todayDate ? 'text-[var(--color-gray-700)]' : ''}\n `}\n data-automation-id={`${automationId}-date-${dateValue}`}\n >\n {date ? (\n <>\n {dateValue}\n {!isSameStartEnd && (isStart || isEnd) && (\n <div\n className={`absolute top-0 bottom-0 ${isStart ? 'right-[-8px]' : 'left-[-8px]'} w-[8px]\n bg-[var(--color-blue-100)] -z-10`}\n />\n )}\n </>\n ) : (\n ''\n )}\n </div>\n );\n })}\n </div>\n </div>\n );\n };\n\n return (\n <div\n className={`se-design-datepicker-container flex flex-col bg-[var(--color-white)] rounded-md shadow-md w-max ${className}`}\n >\n {showHeader && (\n <div className=\"se-design-datepicker-header flex justify-between items-center border-b border-[var(--color-gray-200)] p-4\">\n <h2 className=\"datepicker-title\">{title}</h2>\n {onClose && (\n <Icon\n name=\"close\"\n size={16}\n onClick={onClose}\n className=\"cursor-pointer\"\n automationId={`${automationId}-close`}\n />\n )}\n </div>\n )}\n <div className=\"se-design-datepicker-content flex\">\n {showQuickActions && renderQuickActions()}\n <div className=\"flex\">\n {showSingleMonth ? (\n renderCalendar(leftMonth)\n ) : (\n <>\n {renderCalendar(leftMonth)}\n <div className=\"h-full w-[1px] border-r border-[var(--color-gray-200)]\"></div>\n {renderCalendar(rightMonth)}\n </>\n )}\n </div>\n </div>\n {!singleDateSelection && (\n <div className=\"se-design-datepicker-footer flex justify-end items-center gap-5 p-4 border-t border-[var(--color-gray-200)]\">\n <Button\n label={labels?.clear || 'Clear'}\n type=\"link\"\n onClick={handleClear}\n data-automation-id={`${automationId}-clear-button`}\n />\n <Button\n label={labels?.apply || 'Apply'}\n type=\"primary\"\n onClick={handleApply}\n data-automation-id={`${automationId}-apply-button`}\n />\n </div>\n )}\n </div>\n );\n};\n"],"names":["React__default","useState","Button","Icon","Dropdown","weekDays","quickActions","months","value","label","DatePicker","title","showHeader","initialStartDate","initialEndDate","onApply","onClose","shouldAllowFutureDateSelection","maxDays","disablePastDates","singleDateSelection","minYearOption","showQuickActions","showSingleMonth","className","automationId","labels","clear","apply","getDefaultDateRange","startDate","endDate","Date","setHours","getDefaultMonths","today","lastMonth","setDate","setMonth","getMonth","selectedRange","setSelectedRange","defaultMonths","leftMonth","setLeftMonth","rightMonth","setRightMonth","getDaysInMonth","year","month","getDate","getFirstDayOfMonth","getDay","generateCalendarDays","daysInMonth","firstDay","days","i","push","day","date","isSameDay","date1","date2","getFullYear","isDateInRange","compareDate","isToday","isDateDisabled","dateToCheck","maxDate","handleDateClick","clickedDate","currentStart","handleMonthNavigation","increment","newDate","ensureDateInCorrectOrder","leftDate","rightDate","getTime","handleMonthChange","isLeftCalendar","newLeft","newRight","isStartDate","isEndDate","isSameStartAndEndDate","getYearOptions","currentYear","calendarYear","startYear","endYear","maxYear","Math","min","max","yearCount","Array","from","length","_","toString","filter","handleClear","getStartOfDay","getEndOfDay","handleQuickAction","action","firstDayOfWeek","lastWeekStart","lastWeekEnd","renderQuickActions","React","createElement","map","key","type","onClick","handleApply","selectedDate","renderCalendar","yearOptions","name","rotation","size","e","stopPropagation","dropDownOptions","defaultSelectedValue","selectBy","optionsUniqueBy","displaySelected","onOptionClick","selectedOption","findIndex","m","find","y","setFullYear","undefined","index","isStart","isEnd","isSameStartEnd","inRange","todayDate","disabled","dateValue","Fragment"],"mappings":"AAqCA,OAAAA,KAAA,YAAAC,SAAA;AAAA,SAAA,UAAAC,SAAA;AAAA,SAAA,QAAAC,SAAA;AAAA,SAAA,YAAAC,SAAA;AAAA,OAAA;AAAA,MAAMC,KAAW,CAAC,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,GAAG,GAC7CC,KAAe,CAAC,SAAS,aAAa,aAAa,aAAa,cAAc,YAAY,GAE1FC,IAAS,CACb;AAAA,EAAEC,OAAO;AAAA,EAAWC,OAAO;AAAU,GACrC;AAAA,EAAED,OAAO;AAAA,EAAYC,OAAO;AA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