@selfdecode/sd-component-library 4.0.135 → 4.0.137
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/lib/components/buttons/button/interfaces.d.ts +1 -0
- package/lib/components/modals/modal/interfaces.d.ts +2 -1
- package/lib/sd-component-library100.js +2 -2
- package/lib/sd-component-library101.js +3 -3
- package/lib/sd-component-library102.js +58 -55
- package/lib/sd-component-library102.js.map +1 -1
- package/lib/sd-component-library104.js +2 -2
- package/lib/sd-component-library106.js +2 -2
- package/lib/sd-component-library112.js +1 -1
- package/lib/sd-component-library117.js +1 -1
- package/lib/sd-component-library118.js +2 -2
- package/lib/sd-component-library120.js +1 -1
- package/lib/sd-component-library126.js +1 -1
- package/lib/sd-component-library127.js +1 -1
- package/lib/sd-component-library16.js +1 -1
- package/lib/sd-component-library167.js +1 -1
- package/lib/sd-component-library172.js +3 -3
- package/lib/sd-component-library202.js +1 -1
- package/lib/sd-component-library203.js +1 -1
- package/lib/sd-component-library205.js +55 -24
- package/lib/sd-component-library205.js.map +1 -1
- package/lib/sd-component-library212.js +19 -33
- package/lib/sd-component-library212.js.map +1 -1
- package/lib/sd-component-library213.js +38 -127
- package/lib/sd-component-library213.js.map +1 -1
- package/lib/sd-component-library214.js +26 -13
- package/lib/sd-component-library214.js.map +1 -1
- package/lib/sd-component-library215.js +129 -3
- package/lib/sd-component-library215.js.map +1 -1
- package/lib/sd-component-library216.js +13 -52
- package/lib/sd-component-library216.js.map +1 -1
- package/lib/sd-component-library217.js +12 -63
- package/lib/sd-component-library217.js.map +1 -1
- package/lib/sd-component-library218.js +2 -2
- package/lib/sd-component-library218.js.map +1 -1
- package/lib/sd-component-library219.js +3 -14
- package/lib/sd-component-library219.js.map +1 -1
- package/lib/sd-component-library220.js +2 -2
- package/lib/sd-component-library220.js.map +1 -1
- package/lib/sd-component-library221.js +52 -3
- package/lib/sd-component-library221.js.map +1 -1
- package/lib/sd-component-library222.js +64 -45
- package/lib/sd-component-library222.js.map +1 -1
- package/lib/sd-component-library223.js +3 -57
- package/lib/sd-component-library223.js.map +1 -1
- package/lib/sd-component-library224.js +46 -17
- package/lib/sd-component-library224.js.map +1 -1
- package/lib/sd-component-library225.js +17 -26
- package/lib/sd-component-library225.js.map +1 -1
- package/lib/sd-component-library230.js +1 -1
- package/lib/sd-component-library237.js +2 -2
- package/lib/sd-component-library239.js +1 -1
- package/lib/sd-component-library24.js +106 -73
- package/lib/sd-component-library24.js.map +1 -1
- package/lib/sd-component-library249.js +2 -21
- package/lib/sd-component-library249.js.map +1 -1
- package/lib/sd-component-library250.js +20 -19
- package/lib/sd-component-library250.js.map +1 -1
- package/lib/sd-component-library251.js +20 -2
- package/lib/sd-component-library251.js.map +1 -1
- package/lib/sd-component-library254.js +21 -25
- package/lib/sd-component-library254.js.map +1 -1
- package/lib/sd-component-library256.js +22 -24
- package/lib/sd-component-library256.js.map +1 -1
- package/lib/sd-component-library258.js +25 -21
- package/lib/sd-component-library258.js.map +1 -1
- package/lib/sd-component-library259.js +24 -22
- package/lib/sd-component-library259.js.map +1 -1
- package/lib/sd-component-library260.js +51 -30
- package/lib/sd-component-library260.js.map +1 -1
- package/lib/sd-component-library261.js +30 -51
- package/lib/sd-component-library261.js.map +1 -1
- package/lib/sd-component-library262.js +1 -1
- package/lib/sd-component-library272.js +2 -51
- package/lib/sd-component-library272.js.map +1 -1
- package/lib/sd-component-library273.js +2 -90
- package/lib/sd-component-library273.js.map +1 -1
- package/lib/sd-component-library274.js +48 -89
- package/lib/sd-component-library274.js.map +1 -1
- package/lib/sd-component-library275.js +90 -2
- package/lib/sd-component-library275.js.map +1 -1
- package/lib/sd-component-library276.js +92 -2
- package/lib/sd-component-library276.js.map +1 -1
- package/lib/sd-component-library277.js +6 -10
- package/lib/sd-component-library277.js.map +1 -1
- package/lib/sd-component-library283.js +10 -6
- package/lib/sd-component-library283.js.map +1 -1
- package/lib/sd-component-library286.js +1 -1
- package/lib/sd-component-library311.js +51 -5
- package/lib/sd-component-library311.js.map +1 -1
- package/lib/sd-component-library315.js +5 -4
- package/lib/sd-component-library315.js.map +1 -1
- package/lib/sd-component-library316.js +4 -51
- package/lib/sd-component-library316.js.map +1 -1
- package/lib/sd-component-library60.js +1 -1
- package/lib/sd-component-library63.js +1 -1
- package/lib/sd-component-library64.js +2 -2
- package/lib/sd-component-library65.js +1 -1
- package/lib/sd-component-library70.js +2 -2
- package/lib/sd-component-library72.js +3 -3
- package/lib/sd-component-library74.js +2 -2
- package/lib/sd-component-library75.js +3 -3
- package/lib/sd-component-library76.js +1 -1
- package/lib/sd-component-library77.js +1 -1
- package/lib/sd-component-library79.js +1 -1
- package/lib/sd-component-library80.js +1 -1
- package/lib/sd-component-library85.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as r } from "./sd-component-library197.js";
|
|
2
|
-
import { LinearGaugeSegment as c } from "./sd-component-
|
|
3
|
-
import { LinearGaugeLabel as d } from "./sd-component-
|
|
2
|
+
import { LinearGaugeSegment as c } from "./sd-component-library250.js";
|
|
3
|
+
import { LinearGaugeLabel as d } from "./sd-component-library251.js";
|
|
4
4
|
import { GridCenter as f } from "./sd-component-library41.js";
|
|
5
5
|
import { GridContainerV2 as h } from "./sd-component-library38.js";
|
|
6
6
|
function $(l) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as e } from "./sd-component-library197.js";
|
|
2
|
-
import { isMatchingRange as u } from "./sd-component-
|
|
2
|
+
import { isMatchingRange as u } from "./sd-component-library249.js";
|
|
3
3
|
import { GridCenter as c } from "./sd-component-library41.js";
|
|
4
4
|
import { GridContainerV2 as f } from "./sd-component-library38.js";
|
|
5
|
-
import { LinearGaugeSegment as d } from "./sd-component-
|
|
6
|
-
import { LinearGaugeLabel as j } from "./sd-component-
|
|
5
|
+
import { LinearGaugeSegment as d } from "./sd-component-library250.js";
|
|
6
|
+
import { LinearGaugeLabel as j } from "./sd-component-library251.js";
|
|
7
7
|
const M = ({
|
|
8
8
|
gap: i = 3,
|
|
9
9
|
segmentHeight: l = 8,
|
|
@@ -1,55 +1,56 @@
|
|
|
1
1
|
import { j as t } from "./sd-component-library197.js";
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { Box as
|
|
4
|
-
import { useBodyScrollLock as
|
|
5
|
-
import { isIOS as
|
|
6
|
-
import
|
|
2
|
+
import { useRef as R, useState as T, useEffect as E } from "react";
|
|
3
|
+
import { Box as d } from "rebass";
|
|
4
|
+
import { useBodyScrollLock as L } from "./sd-component-library3.js";
|
|
5
|
+
import { isIOS as X, generateTestLocator as c } from "./sd-component-library4.js";
|
|
6
|
+
import $ from "./sd-component-library252.js";
|
|
7
7
|
import { OutsideClickBox as z } from "./sd-component-library12.js";
|
|
8
8
|
import { ReactComponent as A } from "./sd-component-library253.js";
|
|
9
9
|
import { FlexCenter as F } from "./sd-component-library34.js";
|
|
10
10
|
import { Button as H } from "./sd-component-library24.js";
|
|
11
|
-
const
|
|
11
|
+
const a = 500, K = (p) => {
|
|
12
12
|
const {
|
|
13
|
-
variant:
|
|
13
|
+
variant: x,
|
|
14
14
|
children: l,
|
|
15
|
-
containerBg:
|
|
16
|
-
xIconColor:
|
|
17
|
-
showXIcon:
|
|
18
|
-
onClickX:
|
|
19
|
-
coverBg:
|
|
20
|
-
width:
|
|
15
|
+
containerBg: m,
|
|
16
|
+
xIconColor: u,
|
|
17
|
+
showXIcon: h = !0,
|
|
18
|
+
onClickX: o,
|
|
19
|
+
coverBg: f = "rgba(69,104,249, 0.4)",
|
|
20
|
+
width: g = "auto",
|
|
21
21
|
isOpen: i,
|
|
22
|
-
borderRadius:
|
|
23
|
-
outerPadding:
|
|
24
|
-
innerPadding:
|
|
25
|
-
popUpHeight:
|
|
26
|
-
containerSx:
|
|
27
|
-
innerSx:
|
|
28
|
-
closeOnClickOutside:
|
|
29
|
-
mountOnEnter:
|
|
30
|
-
unmountOnExit:
|
|
31
|
-
intermediateContainerSx:
|
|
32
|
-
|
|
33
|
-
|
|
22
|
+
borderRadius: w = ["5px"],
|
|
23
|
+
outerPadding: C = ["30px", "auto", "150px"],
|
|
24
|
+
innerPadding: k = ["40px 20px", "50px"],
|
|
25
|
+
popUpHeight: v = "100%",
|
|
26
|
+
containerSx: S,
|
|
27
|
+
innerSx: b,
|
|
28
|
+
closeOnClickOutside: j = !1,
|
|
29
|
+
mountOnEnter: y = !0,
|
|
30
|
+
unmountOnExit: O,
|
|
31
|
+
intermediateContainerSx: B,
|
|
32
|
+
testLocatorId: n
|
|
33
|
+
} = p, r = R(null), [I, s] = T(null);
|
|
34
|
+
return E(() => {
|
|
34
35
|
let e;
|
|
35
|
-
return i ?
|
|
36
|
-
|
|
37
|
-
},
|
|
38
|
-
}, [i, l]),
|
|
39
|
-
|
|
36
|
+
return i ? s(l) : e = setTimeout(() => {
|
|
37
|
+
s(null);
|
|
38
|
+
}, a), () => clearTimeout(e);
|
|
39
|
+
}, [i, l]), L(r.current, i && !X()), /* @__PURE__ */ t.jsx(
|
|
40
|
+
$,
|
|
40
41
|
{
|
|
41
|
-
nodeRef:
|
|
42
|
+
nodeRef: r,
|
|
42
43
|
in: i,
|
|
43
44
|
timeout: {
|
|
44
45
|
enter: 0,
|
|
45
|
-
exit:
|
|
46
|
+
exit: a
|
|
46
47
|
},
|
|
47
|
-
mountOnEnter:
|
|
48
|
-
unmountOnExit:
|
|
48
|
+
mountOnEnter: y,
|
|
49
|
+
unmountOnExit: O,
|
|
49
50
|
children: (e) => (
|
|
50
51
|
/** This most outer container is the background */
|
|
51
52
|
/* @__PURE__ */ t.jsx(
|
|
52
|
-
|
|
53
|
+
d,
|
|
53
54
|
{
|
|
54
55
|
sx: {
|
|
55
56
|
width: "100vw",
|
|
@@ -61,59 +62,61 @@ const r = 500, G = (d) => {
|
|
|
61
62
|
top: 0,
|
|
62
63
|
left: 0,
|
|
63
64
|
bottom: 0,
|
|
64
|
-
backgroundColor:
|
|
65
|
+
backgroundColor: f,
|
|
65
66
|
opacity: e === "entered" ? 1 : 0,
|
|
66
|
-
transition: `opacity ${
|
|
67
|
+
transition: `opacity ${a}ms ease-in-out`,
|
|
67
68
|
display: ["entering", "entered", "exiting"].includes(e) ? "block" : "none",
|
|
68
|
-
...
|
|
69
|
+
...S
|
|
69
70
|
},
|
|
70
|
-
|
|
71
|
+
...n ? c(`${n}-outer-container`) : {},
|
|
72
|
+
ref: r,
|
|
71
73
|
children: /* @__PURE__ */ t.jsx(
|
|
72
74
|
F,
|
|
73
75
|
{
|
|
74
76
|
sx: {
|
|
75
77
|
position: "relative",
|
|
76
78
|
width: "100%",
|
|
77
|
-
height:
|
|
79
|
+
height: v
|
|
78
80
|
},
|
|
79
81
|
children: /* @__PURE__ */ t.jsxs(
|
|
80
|
-
|
|
82
|
+
d,
|
|
81
83
|
{
|
|
82
84
|
sx: {
|
|
83
85
|
maxWidth: "100vw",
|
|
84
86
|
zIndex: "180",
|
|
85
87
|
margin: "auto",
|
|
86
88
|
whiteSpace: "nowrap",
|
|
87
|
-
padding:
|
|
88
|
-
...
|
|
89
|
+
padding: C,
|
|
90
|
+
...B
|
|
89
91
|
},
|
|
90
92
|
"data-testid": "modal",
|
|
91
93
|
children: [
|
|
92
94
|
/* @__PURE__ */ t.jsx(
|
|
93
95
|
z,
|
|
94
96
|
{
|
|
95
|
-
variant: `_modals.inner.${
|
|
97
|
+
variant: `_modals.inner.${x}`,
|
|
96
98
|
sx: {
|
|
97
|
-
width:
|
|
98
|
-
borderRadius:
|
|
99
|
+
width: g,
|
|
100
|
+
borderRadius: w,
|
|
99
101
|
whiteSpace: "normal",
|
|
100
102
|
textAlign: "center",
|
|
101
103
|
display: "inline-block",
|
|
102
104
|
alignSelf: "top",
|
|
103
|
-
backgroundColor:
|
|
104
|
-
padding:
|
|
105
|
-
...
|
|
105
|
+
backgroundColor: m || "white",
|
|
106
|
+
padding: k,
|
|
107
|
+
...b
|
|
106
108
|
},
|
|
107
109
|
onClickOutside: () => {
|
|
108
|
-
|
|
110
|
+
j && o && o();
|
|
109
111
|
},
|
|
110
|
-
|
|
112
|
+
...n ? c(`${n}-inner-container`) : {},
|
|
113
|
+
children: I
|
|
111
114
|
}
|
|
112
115
|
),
|
|
113
|
-
|
|
116
|
+
h && /* @__PURE__ */ t.jsx(
|
|
114
117
|
H,
|
|
115
118
|
{
|
|
116
|
-
onClick:
|
|
119
|
+
onClick: o,
|
|
117
120
|
"data-testid": "x-icon",
|
|
118
121
|
sx: {
|
|
119
122
|
p: 0,
|
|
@@ -129,7 +132,7 @@ const r = 500, G = (d) => {
|
|
|
129
132
|
A,
|
|
130
133
|
{
|
|
131
134
|
style: {
|
|
132
|
-
fill:
|
|
135
|
+
fill: u || "#4568F9",
|
|
133
136
|
width: "20px",
|
|
134
137
|
height: "20px"
|
|
135
138
|
}
|
|
@@ -149,6 +152,6 @@ const r = 500, G = (d) => {
|
|
|
149
152
|
);
|
|
150
153
|
};
|
|
151
154
|
export {
|
|
152
|
-
|
|
155
|
+
K as Modal
|
|
153
156
|
};
|
|
154
157
|
//# sourceMappingURL=sd-component-library102.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library102.js","sources":["../src/components/modals/modal/modal.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from \"react\";\nimport { Transition } from \"react-transition-group\";\n\nimport { Box } from \"rebass\";\n\nimport { useBodyScrollLock } from \"../../../core/custom-hooks\";\nimport { isIOS } from \"../../../core/functions\";\nimport { OutsideClickBox } from \"../../boxes\";\nimport { Button } from \"../../buttons\";\nimport { FlexCenter } from \"../../containers\";\nimport { XIcon } from \"./assets\";\nimport { ModalProps } from \"./interfaces\";\n\nconst animationDuration = 500; // milliseconds\n\n/**\n * The modal container.\n */\nexport const Modal: React.FC<ModalProps> = (props) => {\n const {\n variant,\n children,\n containerBg,\n xIconColor,\n showXIcon = true,\n onClickX,\n coverBg = \"rgba(69,104,249, 0.4)\",\n width = \"auto\",\n isOpen,\n borderRadius = [\"5px\"],\n outerPadding = [\"30px\", \"auto\", \"150px\"],\n innerPadding = [\"40px 20px\", \"50px\"],\n popUpHeight = \"100%\",\n containerSx,\n innerSx,\n closeOnClickOutside = false,\n mountOnEnter = true,\n unmountOnExit,\n intermediateContainerSx,\n } = props;\n\n const ref = useRef<HTMLDivElement>(null);\n\n const [content, setContent] = useState<React.ReactNode>(null);\n\n useEffect(() => {\n let timer: NodeJS.Timeout;\n if (isOpen) {\n setContent(children);\n } else {\n timer = setTimeout(() => {\n setContent(null);\n }, animationDuration);\n }\n return () => clearTimeout(timer);\n }, [isOpen, children]);\n\n useBodyScrollLock(ref.current, isOpen && !isIOS());\n\n return (\n <Transition\n nodeRef={ref}\n in={isOpen}\n timeout={{\n enter: 0,\n exit: animationDuration,\n }}\n mountOnEnter={mountOnEnter}\n unmountOnExit={unmountOnExit}\n >\n {(state) => (\n /** This most outer container is the background */\n <Box\n sx={{\n width: \"100vw\",\n minHeight: \"100vh\",\n zIndex: \"150\",\n position: \"fixed\",\n overflowX: \"hidden\",\n overflowY: \"scroll\",\n top: 0,\n left: 0,\n bottom: 0,\n backgroundColor: coverBg,\n opacity: state === \"entered\" ? 1 : 0,\n transition: `opacity ${animationDuration}ms ease-in-out`,\n display: [\"entering\", \"entered\", \"exiting\"].includes(state)\n ? \"block\"\n : \"none\",\n ...containerSx,\n }}\n ref={ref}\n >\n {/** This following container is the frame of the whole screen, used\n * as an in-between relative-position container for the popup */}\n <FlexCenter\n sx={{\n position: \"relative\",\n width: \"100%\",\n height: popUpHeight,\n }}\n >\n {/** This following container is the complete popup,\n * as in contents and the X close icon */}\n <Box\n sx={{\n maxWidth: \"100vw\",\n zIndex: \"180\",\n margin: \"auto\",\n whiteSpace: \"nowrap\",\n padding: outerPadding,\n ...intermediateContainerSx,\n }}\n data-testid=\"modal\"\n >\n {/** This following container and its content is\n * the actual content of the popup */}\n <OutsideClickBox\n variant={`_modals.inner.${variant}`}\n sx={{\n width,\n borderRadius,\n whiteSpace: \"normal\",\n textAlign: \"center\",\n display: \"inline-block\",\n alignSelf: \"top\",\n backgroundColor: containerBg || \"white\",\n padding: innerPadding,\n ...innerSx,\n }}\n onClickOutside={() => {\n if (closeOnClickOutside && onClickX) {\n onClickX();\n }\n }}\n >\n {content}\n </OutsideClickBox>\n\n {/** This following container and its content is the X button */}\n {showXIcon && (\n <Button\n onClick={onClickX}\n data-testid=\"x-icon\"\n sx={{\n p: 0,\n bg: \"cl_transparent\",\n display: \"inline-block\",\n verticalAlign: \"top\",\n width: \"20px\",\n height: \"20px\",\n marginLeft: \"6px\",\n marginTop: \"4px\",\n }}\n >\n <XIcon\n style={{\n fill: xIconColor || \"#4568F9\",\n width: \"20px\",\n height: \"20px\",\n }}\n />\n </Button>\n )}\n </Box>\n </FlexCenter>\n </Box>\n )}\n </Transition>\n );\n};\n"],"names":["animationDuration","Modal","props","variant","children","containerBg","xIconColor","showXIcon","onClickX","coverBg","width","isOpen","borderRadius","outerPadding","innerPadding","popUpHeight","containerSx","innerSx","closeOnClickOutside","mountOnEnter","unmountOnExit","intermediateContainerSx","ref","useRef","content","setContent","useState","useEffect","timer","useBodyScrollLock","isIOS","jsx","Transition","state","Box","FlexCenter","jsxs","OutsideClickBox","Button","XIcon"],"mappings":";;;;;;;;;;AAaA,MAAMA,IAAoB,KAKbC,IAA8B,CAACC,MAAU;AAC9C,QAAA;AAAA,IACJ,SAAAC;AAAA,IACA,UAAAC;AAAA,IACA,aAAAC;AAAA,IACA,YAAAC;AAAA,IACA,WAAAC,IAAY;AAAA,IACZ,UAAAC;AAAA,IACA,SAAAC,IAAU;AAAA,IACV,OAAAC,IAAQ;AAAA,IACR,QAAAC;AAAA,IACA,cAAAC,IAAe,CAAC,KAAK;AAAA,IACrB,cAAAC,IAAe,CAAC,QAAQ,QAAQ,OAAO;AAAA,IACvC,cAAAC,IAAe,CAAC,aAAa,MAAM;AAAA,IACnC,aAAAC,IAAc;AAAA,IACd,aAAAC;AAAA,IACA,SAAAC;AAAA,IACA,qBAAAC,IAAsB;AAAA,IACtB,cAAAC,IAAe;AAAA,IACf,eAAAC;AAAA,IACA,yBAAAC;AAAA,EACE,
|
|
1
|
+
{"version":3,"file":"sd-component-library102.js","sources":["../src/components/modals/modal/modal.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from \"react\";\nimport { Transition } from \"react-transition-group\";\n\nimport { Box } from \"rebass\";\n\nimport { useBodyScrollLock } from \"../../../core/custom-hooks\";\nimport { generateTestLocator, isIOS } from \"../../../core/functions\";\nimport { OutsideClickBox } from \"../../boxes\";\nimport { Button } from \"../../buttons\";\nimport { FlexCenter } from \"../../containers\";\nimport { XIcon } from \"./assets\";\nimport { ModalProps } from \"./interfaces\";\n\nconst animationDuration = 500; // milliseconds\n\n/**\n * The modal container.\n */\nexport const Modal: React.FC<ModalProps> = (props) => {\n const {\n variant,\n children,\n containerBg,\n xIconColor,\n showXIcon = true,\n onClickX,\n coverBg = \"rgba(69,104,249, 0.4)\",\n width = \"auto\",\n isOpen,\n borderRadius = [\"5px\"],\n outerPadding = [\"30px\", \"auto\", \"150px\"],\n innerPadding = [\"40px 20px\", \"50px\"],\n popUpHeight = \"100%\",\n containerSx,\n innerSx,\n closeOnClickOutside = false,\n mountOnEnter = true,\n unmountOnExit,\n intermediateContainerSx,\n testLocatorId,\n } = props;\n\n const ref = useRef<HTMLDivElement>(null);\n\n const [content, setContent] = useState<React.ReactNode>(null);\n\n useEffect(() => {\n let timer: NodeJS.Timeout;\n if (isOpen) {\n setContent(children);\n } else {\n timer = setTimeout(() => {\n setContent(null);\n }, animationDuration);\n }\n return () => clearTimeout(timer);\n }, [isOpen, children]);\n\n useBodyScrollLock(ref.current, isOpen && !isIOS());\n\n return (\n <Transition\n nodeRef={ref}\n in={isOpen}\n timeout={{\n enter: 0,\n exit: animationDuration,\n }}\n mountOnEnter={mountOnEnter}\n unmountOnExit={unmountOnExit}\n >\n {(state) => (\n /** This most outer container is the background */\n <Box\n sx={{\n width: \"100vw\",\n minHeight: \"100vh\",\n zIndex: \"150\",\n position: \"fixed\",\n overflowX: \"hidden\",\n overflowY: \"scroll\",\n top: 0,\n left: 0,\n bottom: 0,\n backgroundColor: coverBg,\n opacity: state === \"entered\" ? 1 : 0,\n transition: `opacity ${animationDuration}ms ease-in-out`,\n display: [\"entering\", \"entered\", \"exiting\"].includes(state)\n ? \"block\"\n : \"none\",\n ...containerSx,\n }}\n {...(testLocatorId\n ? generateTestLocator(`${testLocatorId}-outer-container`)\n : {})}\n ref={ref}\n >\n {/** This following container is the frame of the whole screen, used\n * as an in-between relative-position container for the popup */}\n <FlexCenter\n sx={{\n position: \"relative\",\n width: \"100%\",\n height: popUpHeight,\n }}\n >\n {/** This following container is the complete popup,\n * as in contents and the X close icon */}\n <Box\n sx={{\n maxWidth: \"100vw\",\n zIndex: \"180\",\n margin: \"auto\",\n whiteSpace: \"nowrap\",\n padding: outerPadding,\n ...intermediateContainerSx,\n }}\n data-testid=\"modal\"\n >\n {/** This following container and its content is\n * the actual content of the popup */}\n <OutsideClickBox\n variant={`_modals.inner.${variant}`}\n sx={{\n width,\n borderRadius,\n whiteSpace: \"normal\",\n textAlign: \"center\",\n display: \"inline-block\",\n alignSelf: \"top\",\n backgroundColor: containerBg || \"white\",\n padding: innerPadding,\n ...innerSx,\n }}\n onClickOutside={() => {\n if (closeOnClickOutside && onClickX) {\n onClickX();\n }\n }}\n {...(testLocatorId\n ? generateTestLocator(`${testLocatorId}-inner-container`)\n : {})}\n >\n {content}\n </OutsideClickBox>\n\n {/** This following container and its content is the X button */}\n {showXIcon && (\n <Button\n onClick={onClickX}\n data-testid=\"x-icon\"\n sx={{\n p: 0,\n bg: \"cl_transparent\",\n display: \"inline-block\",\n verticalAlign: \"top\",\n width: \"20px\",\n height: \"20px\",\n marginLeft: \"6px\",\n marginTop: \"4px\",\n }}\n >\n <XIcon\n style={{\n fill: xIconColor || \"#4568F9\",\n width: \"20px\",\n height: \"20px\",\n }}\n />\n </Button>\n )}\n </Box>\n </FlexCenter>\n </Box>\n )}\n </Transition>\n );\n};\n"],"names":["animationDuration","Modal","props","variant","children","containerBg","xIconColor","showXIcon","onClickX","coverBg","width","isOpen","borderRadius","outerPadding","innerPadding","popUpHeight","containerSx","innerSx","closeOnClickOutside","mountOnEnter","unmountOnExit","intermediateContainerSx","testLocatorId","ref","useRef","content","setContent","useState","useEffect","timer","useBodyScrollLock","isIOS","jsx","Transition","state","Box","generateTestLocator","FlexCenter","jsxs","OutsideClickBox","Button","XIcon"],"mappings":"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"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as r } from "./sd-component-library197.js";
|
|
2
2
|
import { useDependantState as j } from "./sd-component-library3.js";
|
|
3
|
-
import { SquareButton as g } from "./sd-component-
|
|
3
|
+
import { SquareButton as g } from "./sd-component-library258.js";
|
|
4
4
|
import { ReactComponent as P } from "./sd-component-library255.js";
|
|
5
|
-
import { CurrentPage as h } from "./sd-component-
|
|
5
|
+
import { CurrentPage as h } from "./sd-component-library259.js";
|
|
6
6
|
import { ReactComponent as S } from "./sd-component-library257.js";
|
|
7
7
|
import { GridCenter as R } from "./sd-component-library41.js";
|
|
8
8
|
function x(m, t, o, n) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as e } from "./sd-component-library197.js";
|
|
2
|
-
import { PaginationBarButton as i } from "./sd-component-
|
|
2
|
+
import { PaginationBarButton as i } from "./sd-component-library254.js";
|
|
3
3
|
import { ReactComponent as h } from "./sd-component-library255.js";
|
|
4
|
-
import { PaginationBarCurrentPage as u } from "./sd-component-
|
|
4
|
+
import { PaginationBarCurrentPage as u } from "./sd-component-library256.js";
|
|
5
5
|
import { ReactComponent as f } from "./sd-component-library257.js";
|
|
6
6
|
import { GridContainerV2 as s } from "./sd-component-library38.js";
|
|
7
7
|
import { ResponsiveTextV2 as j } from "./sd-component-library150.js";
|
|
@@ -3,7 +3,7 @@ import { useMemo as P } from "react";
|
|
|
3
3
|
import { Select as Z } from "@rebass/forms";
|
|
4
4
|
import { Box as q } from "rebass";
|
|
5
5
|
import { useDependantState as G } from "./sd-component-library3.js";
|
|
6
|
-
import { BaseLabel as J } from "./sd-component-
|
|
6
|
+
import { BaseLabel as J } from "./sd-component-library225.js";
|
|
7
7
|
import { MaxMaxContainer as K } from "./sd-component-library40.js";
|
|
8
8
|
import { ResponsiveTextV2 as Q } from "./sd-component-library150.js";
|
|
9
9
|
const U = (s, r, t, d, a, n) => {
|
|
@@ -3,7 +3,7 @@ import u, { useState as h, useMemo as f } from "react";
|
|
|
3
3
|
import { Box as g } from "rebass";
|
|
4
4
|
import { OutsideClickBox as b } from "./sd-component-library12.js";
|
|
5
5
|
import { ReactComponent as j } from "./sd-component-library188.js";
|
|
6
|
-
import { CustomOptionBox as C } from "./sd-component-
|
|
6
|
+
import { CustomOptionBox as C } from "./sd-component-library261.js";
|
|
7
7
|
import { GridCenter as S } from "./sd-component-library41.js";
|
|
8
8
|
import { EighteenRegular as d } from "./sd-component-library142.js";
|
|
9
9
|
import { HorizontalDivider as _ } from "./sd-component-library48.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as o } from "./sd-component-library197.js";
|
|
2
2
|
import { useState as x } from "react";
|
|
3
|
-
import { BaseLabel as f } from "./sd-component-
|
|
3
|
+
import { BaseLabel as f } from "./sd-component-library225.js";
|
|
4
4
|
import { OutsideClickBox as u } from "./sd-component-library12.js";
|
|
5
5
|
import { ReactComponent as h } from "./sd-component-library188.js";
|
|
6
|
-
import { SecondaryCustomSelectorOptionsBox as S } from "./sd-component-
|
|
6
|
+
import { SecondaryCustomSelectorOptionsBox as S } from "./sd-component-library260.js";
|
|
7
7
|
import { GridContainerV2 as g } from "./sd-component-library38.js";
|
|
8
8
|
import { ResponsiveTextV2 as C } from "./sd-component-library150.js";
|
|
9
9
|
import { FlexCenter as j } from "./sd-component-library34.js";
|
|
@@ -5,7 +5,7 @@ import { ReactComponent as x } from "./sd-component-library188.js";
|
|
|
5
5
|
import { ResponsiveTextV2 as f } from "./sd-component-library150.js";
|
|
6
6
|
import { BaseTextV2 as u } from "./sd-component-library138.js";
|
|
7
7
|
import { FlexCenter as h } from "./sd-component-library34.js";
|
|
8
|
-
import { SecondaryCustomSelectorOptionsBox as g } from "./sd-component-
|
|
8
|
+
import { SecondaryCustomSelectorOptionsBox as g } from "./sd-component-library260.js";
|
|
9
9
|
const k = ({
|
|
10
10
|
width: l,
|
|
11
11
|
options: r,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as o } from "./sd-component-library197.js";
|
|
2
2
|
import { useState as x } from "react";
|
|
3
|
-
import { BaseLabel as f } from "./sd-component-
|
|
3
|
+
import { BaseLabel as f } from "./sd-component-library225.js";
|
|
4
4
|
import { ReactComponent as u } from "./sd-component-library188.js";
|
|
5
5
|
import { CustomScrollableOptionsBox as h } from "./sd-component-library263.js";
|
|
6
6
|
import { GridContainerV2 as S } from "./sd-component-library38.js";
|
|
@@ -2,7 +2,7 @@ import { j as o } from "./sd-component-library197.js";
|
|
|
2
2
|
import { useState as x } from "react";
|
|
3
3
|
import { Flex as i } from "rebass";
|
|
4
4
|
import { OutsideClickBox as d } from "./sd-component-library12.js";
|
|
5
|
-
import { BaseLabel as u } from "./sd-component-
|
|
5
|
+
import { BaseLabel as u } from "./sd-component-library225.js";
|
|
6
6
|
import { ReactComponent as f } from "./sd-component-library188.js";
|
|
7
7
|
import { CustomScrollableOptionsBox as h } from "./sd-component-library264.js";
|
|
8
8
|
import { ResponsiveTextV2 as b } from "./sd-component-library150.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as i } from "./sd-component-library197.js";
|
|
2
|
-
import { renderUpToFiveCrumbs as o, renderMoreThanFiveCrumbs as m } from "./sd-component-
|
|
2
|
+
import { renderUpToFiveCrumbs as o, renderMoreThanFiveCrumbs as m } from "./sd-component-library205.js";
|
|
3
3
|
import { GridCenter as d } from "./sd-component-library41.js";
|
|
4
4
|
const h = ({
|
|
5
5
|
textTransform: t,
|
|
@@ -4,7 +4,7 @@ import { Flex as s, Box as i } from "rebass";
|
|
|
4
4
|
import { useHover as m } from "./sd-component-library3.js";
|
|
5
5
|
import { ReactComponent as b } from "./sd-component-library188.js";
|
|
6
6
|
import { TriangularPointerIcon as u } from "./sd-component-library191.js";
|
|
7
|
-
import { ActionBox as g } from "./sd-component-
|
|
7
|
+
import { ActionBox as g } from "./sd-component-library214.js";
|
|
8
8
|
import { HorizontalDivider as n } from "./sd-component-library48.js";
|
|
9
9
|
const B = (x) => {
|
|
10
10
|
const {
|
|
@@ -4,9 +4,9 @@ import { Box as z } from "rebass";
|
|
|
4
4
|
import { useBreakPoints as B, useBodyScrollLock as C } from "./sd-component-library3.js";
|
|
5
5
|
import { isIOS as E } from "./sd-component-library4.js";
|
|
6
6
|
import M from "./sd-component-library252.js";
|
|
7
|
-
import { TooltipWithPointerMobile as V } from "./sd-component-
|
|
8
|
-
import { TooltipWithPointerHorizontal as D } from "./sd-component-
|
|
9
|
-
import { TooltipWithPointerVertical as I } from "./sd-component-
|
|
7
|
+
import { TooltipWithPointerMobile as V } from "./sd-component-library274.js";
|
|
8
|
+
import { TooltipWithPointerHorizontal as D } from "./sd-component-library275.js";
|
|
9
|
+
import { TooltipWithPointerVertical as I } from "./sd-component-library276.js";
|
|
10
10
|
const f = 200, N = (u) => {
|
|
11
11
|
const {
|
|
12
12
|
children: x,
|
|
@@ -1,29 +1,60 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import { j as t } from "./sd-component-library197.js";
|
|
2
|
+
import { Crumb as c } from "./sd-component-library17.js";
|
|
3
|
+
const l = (s, h, p) => s.map(({ title: e, dontTranslate: r, onClick: u }, o) => /* @__PURE__ */ t.jsx(
|
|
4
|
+
c,
|
|
5
|
+
{
|
|
6
|
+
variant: h,
|
|
7
|
+
crumb: { title: e, dontTranslate: r },
|
|
8
|
+
isLast: o === s.length - 1,
|
|
9
|
+
textTransform: p,
|
|
10
|
+
onClick: u
|
|
11
|
+
},
|
|
12
|
+
e + o
|
|
13
|
+
)), a = (s, h, p) => {
|
|
14
|
+
const e = [];
|
|
15
|
+
return s.slice(0, 2).forEach(({ title: r, dontTranslate: u, onClick: o }, m) => {
|
|
16
|
+
e.push(
|
|
17
|
+
/* @__PURE__ */ t.jsx(
|
|
18
|
+
c,
|
|
19
|
+
{
|
|
20
|
+
variant: h,
|
|
21
|
+
crumb: { title: r, dontTranslate: u },
|
|
22
|
+
isLast: !1,
|
|
23
|
+
textTransform: p,
|
|
24
|
+
onClick: o
|
|
25
|
+
},
|
|
26
|
+
r + m
|
|
27
|
+
)
|
|
28
|
+
);
|
|
29
|
+
}), e.push(
|
|
30
|
+
/* @__PURE__ */ t.jsx(
|
|
31
|
+
c,
|
|
32
|
+
{
|
|
33
|
+
variant: h,
|
|
34
|
+
crumb: { title: "..." },
|
|
35
|
+
isLast: !1,
|
|
36
|
+
textTransform: p
|
|
20
37
|
},
|
|
21
|
-
...
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
38
|
+
"..."
|
|
39
|
+
)
|
|
40
|
+
), s.slice(s.length - 2, s.length).forEach(({ title: r, onClick: u, dontTranslate: o }, m) => {
|
|
41
|
+
e.push(
|
|
42
|
+
/* @__PURE__ */ t.jsx(
|
|
43
|
+
c,
|
|
44
|
+
{
|
|
45
|
+
variant: h,
|
|
46
|
+
crumb: { title: r, dontTranslate: o },
|
|
47
|
+
isLast: m === 1,
|
|
48
|
+
textTransform: p,
|
|
49
|
+
onClick: u
|
|
50
|
+
},
|
|
51
|
+
r + m
|
|
52
|
+
)
|
|
53
|
+
);
|
|
54
|
+
}), e;
|
|
25
55
|
};
|
|
26
56
|
export {
|
|
27
|
-
|
|
57
|
+
a as renderMoreThanFiveCrumbs,
|
|
58
|
+
l as renderUpToFiveCrumbs
|
|
28
59
|
};
|
|
29
60
|
//# sourceMappingURL=sd-component-library205.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library205.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library205.js","sources":["../src/components/breadcrumbs/breadcrumb/functions.tsx"],"sourcesContent":["import React, { CSSProperties } from \"react\";\n\nimport { Crumb, CrumbType } from \"./crumb\";\n\nexport const renderUpToFiveCrumbs = (\n crumbs: CrumbType[],\n variant: string | undefined,\n textTransform: CSSProperties[\"textTransform\"]\n) => {\n return crumbs.map(({ title, dontTranslate, onClick }, index: number) => (\n <Crumb\n variant={variant}\n crumb={{ title, dontTranslate }}\n isLast={index === crumbs.length - 1}\n key={title + index}\n textTransform={textTransform}\n onClick={onClick}\n />\n ));\n};\n\nexport const renderMoreThanFiveCrumbs = (\n crumbs: CrumbType[],\n variant: string | undefined,\n textTransform: CSSProperties[\"textTransform\"]\n) => {\n const elements: JSX.Element[] = [];\n\n crumbs\n .slice(0, 2)\n .forEach(({ title, dontTranslate, onClick }, index: number): void => {\n elements.push(\n <Crumb\n variant={variant}\n crumb={{ title, dontTranslate }}\n isLast={false}\n key={title + index}\n textTransform={textTransform}\n onClick={onClick}\n />\n );\n });\n elements.push(\n <Crumb\n variant={variant}\n crumb={{ title: \"...\" }}\n isLast={false}\n textTransform={textTransform}\n key=\"...\"\n />\n );\n\n crumbs\n .slice(crumbs.length - 2, crumbs.length)\n .forEach(({ title, onClick, dontTranslate }, index: number): void => {\n elements.push(\n <Crumb\n variant={variant}\n crumb={{ title, dontTranslate }}\n isLast={index === 1}\n key={title + index}\n textTransform={textTransform}\n onClick={onClick}\n />\n );\n });\n return elements;\n};\n"],"names":["renderUpToFiveCrumbs","crumbs","variant","textTransform","title","dontTranslate","onClick","index","jsx","Crumb","renderMoreThanFiveCrumbs","elements"],"mappings":";;AAIO,MAAMA,IAAuB,CAClCC,GACAC,GACAC,MAEOF,EAAO,IAAI,CAAC,EAAE,OAAAG,GAAO,eAAAC,GAAe,SAAAC,EAAA,GAAWC,MACpDC,gBAAAA,EAAA;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,SAAAP;AAAA,IACA,OAAO,EAAE,OAAAE,GAAO,eAAAC,EAAc;AAAA,IAC9B,QAAQE,MAAUN,EAAO,SAAS;AAAA,IAElC,eAAAE;AAAA,IACA,SAAAG;AAAA,EAAA;AAAA,EAFKF,IAAQG;AAAA,CAIhB,GAGUG,IAA2B,CACtCT,GACAC,GACAC,MACG;AACH,QAAMQ,IAA0B,CAAA;AAG7B,SAAAV,EAAA,MAAM,GAAG,CAAC,EACV,QAAQ,CAAC,EAAE,OAAAG,GAAO,eAAAC,GAAe,SAAAC,EAAQ,GAAGC,MAAwB;AAC1D,IAAAI,EAAA;AAAA,MACPH,gBAAAA,EAAA;AAAA,QAACC;AAAA,QAAA;AAAA,UACC,SAAAP;AAAA,UACA,OAAO,EAAE,OAAAE,GAAO,eAAAC,EAAc;AAAA,UAC9B,QAAQ;AAAA,UAER,eAAAF;AAAA,UACA,SAAAG;AAAA,QAAA;AAAA,QAFKF,IAAQG;AAAA,MAGf;AAAA,IAAA;AAAA,EACF,CACD,GACMI,EAAA;AAAA,IACPH,gBAAAA,EAAA;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,SAAAP;AAAA,QACA,OAAO,EAAE,OAAO,MAAM;AAAA,QACtB,QAAQ;AAAA,QACR,eAAAC;AAAA,MAAA;AAAA,MACI;AAAA,IACN;AAAA,EAAA,GAGFF,EACG,MAAMA,EAAO,SAAS,GAAGA,EAAO,MAAM,EACtC,QAAQ,CAAC,EAAE,OAAAG,GAAO,SAAAE,GAAS,eAAAD,EAAA,GAAiBE,MAAwB;AAC1D,IAAAI,EAAA;AAAA,MACPH,gBAAAA,EAAA;AAAA,QAACC;AAAA,QAAA;AAAA,UACC,SAAAP;AAAA,UACA,OAAO,EAAE,OAAAE,GAAO,eAAAC,EAAc;AAAA,UAC9B,QAAQE,MAAU;AAAA,UAElB,eAAAJ;AAAA,UACA,SAAAG;AAAA,QAAA;AAAA,QAFKF,IAAQG;AAAA,MAGf;AAAA,IAAA;AAAA,EACF,CACD,GACII;AACT;"}
|
|
@@ -1,43 +1,29 @@
|
|
|
1
1
|
import { j as o } from "./sd-component-library197.js";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const { results: t, value: i, onSelect: l, translateContent: x = !0 } = s;
|
|
2
|
+
import { Box as m } from "rebass";
|
|
3
|
+
import { generateTestLocator as p } from "./sd-component-library4.js";
|
|
4
|
+
import { ReactComponent as f } from "./sd-component-library182.js";
|
|
5
|
+
const h = (t) => {
|
|
6
|
+
const { width: n, height: r, fill: e, stroke: i, icon: s } = t, a = s || f;
|
|
8
7
|
return /* @__PURE__ */ o.jsx(
|
|
9
|
-
|
|
8
|
+
m,
|
|
10
9
|
{
|
|
11
10
|
sx: {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
zIndex: 100
|
|
11
|
+
width: n || 25,
|
|
12
|
+
height: r || 25,
|
|
13
|
+
fill: e || "purple",
|
|
14
|
+
stroke: i || "none",
|
|
15
|
+
animation: "rotation 2s infinite linear",
|
|
16
|
+
"@keyframes rotation ": {
|
|
17
|
+
from: { transform: "rotate(0deg)" },
|
|
18
|
+
to: { transform: "rotate(359deg)" }
|
|
19
|
+
}
|
|
22
20
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
children: t.map(({ synonyms: r }, e) => /* @__PURE__ */ o.jsxs(p.Fragment, { children: [
|
|
26
|
-
/* @__PURE__ */ o.jsx(
|
|
27
|
-
n,
|
|
28
|
-
{
|
|
29
|
-
value: i,
|
|
30
|
-
synonyms: r,
|
|
31
|
-
onSelect: l
|
|
32
|
-
},
|
|
33
|
-
r.join()
|
|
34
|
-
),
|
|
35
|
-
e !== t.length - 1 && /* @__PURE__ */ o.jsx(d, { color: "cl_lightGrey" })
|
|
36
|
-
] }, e))
|
|
21
|
+
...p("loading-spinner"),
|
|
22
|
+
children: /* @__PURE__ */ o.jsx(a, {})
|
|
37
23
|
}
|
|
38
24
|
);
|
|
39
|
-
}
|
|
25
|
+
};
|
|
40
26
|
export {
|
|
41
|
-
|
|
27
|
+
h as LoadingSpinner
|
|
42
28
|
};
|
|
43
29
|
//# sourceMappingURL=sd-component-library212.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library212.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library212.js","sources":["../src/components/animations/loading-spinner/loading-spinner.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Box } from \"rebass\";\n\nimport { generateTestLocator } from \"../../../core/functions\";\nimport { RescanIcon } from \"../../icons\";\nimport { LoadingSpinnerProps as Props } from \"./interfaces\";\n\nexport const LoadingSpinner: React.FC<Props> = (props) => {\n const { width, height, fill, stroke, icon } = props;\n\n const IconComponent = icon || RescanIcon;\n\n return (\n <Box\n sx={{\n width: width || 25,\n height: height || 25,\n fill: fill || \"purple\",\n stroke: stroke || \"none\",\n animation: \"rotation 2s infinite linear\",\n\n \"@keyframes rotation \": {\n from: { transform: \"rotate(0deg)\" },\n to: { transform: \"rotate(359deg)\" },\n },\n }}\n {...generateTestLocator(\"loading-spinner\")}\n >\n <IconComponent />\n </Box>\n );\n};\n"],"names":["LoadingSpinner","props","width","height","fill","stroke","icon","IconComponent","RescanIcon","jsx","Box","generateTestLocator"],"mappings":";;;;AAQa,MAAAA,IAAkC,CAACC,MAAU;AACxD,QAAM,EAAE,OAAAC,GAAO,QAAAC,GAAQ,MAAAC,GAAM,QAAAC,GAAQ,MAAAC,EAAS,IAAAL,GAExCM,IAAgBD,KAAQE;AAG5B,SAAAC,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAI;AAAA,QACF,OAAOR,KAAS;AAAA,QAChB,QAAQC,KAAU;AAAA,QAClB,MAAMC,KAAQ;AAAA,QACd,QAAQC,KAAU;AAAA,QAClB,WAAW;AAAA,QAEX,wBAAwB;AAAA,UACtB,MAAM,EAAE,WAAW,eAAe;AAAA,UAClC,IAAI,EAAE,WAAW,iBAAiB;AAAA,QACpC;AAAA,MACF;AAAA,MACC,GAAGM,EAAoB,iBAAiB;AAAA,MAEzC,gCAACJ,GAAc,EAAA;AAAA,IAAA;AAAA,EAAA;AAGrB;"}
|