@tetrascience-npm/tetrascience-react-ui 0.3.0 → 0.4.0-beta.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +187 -6
- package/dist/cjs/index.js +304 -286
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/providers/athena.js +2 -0
- package/dist/cjs/providers/athena.js.map +1 -0
- package/dist/cjs/providers/databricks.js +2 -0
- package/dist/cjs/providers/databricks.js.map +1 -0
- package/dist/cjs/providers/exceptions-CYktpdqW.js +2 -0
- package/dist/cjs/providers/exceptions-CYktpdqW.js.map +1 -0
- package/dist/cjs/providers/snowflake.js +2 -0
- package/dist/cjs/providers/snowflake.js.map +1 -0
- package/dist/cjs/server.js +1 -1
- package/dist/esm/index.js +270 -252
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/providers/athena.js +2 -0
- package/dist/esm/providers/athena.js.map +1 -0
- package/dist/esm/providers/databricks.js +2 -0
- package/dist/esm/providers/databricks.js.map +1 -0
- package/dist/esm/providers/exceptions-C3uFWZB2.js +2 -0
- package/dist/esm/providers/exceptions-C3uFWZB2.js.map +1 -0
- package/dist/esm/providers/snowflake.js +2 -0
- package/dist/esm/providers/snowflake.js.map +1 -0
- package/dist/esm/server.js +1 -1
- package/dist/index.d.ts +1889 -112
- package/dist/providers/athena.d.ts +79 -0
- package/dist/providers/databricks.d.ts +43 -0
- package/dist/providers/snowflake.d.ts +40 -0
- package/dist/providers/types-Ck4uFaGp.d.ts +82 -0
- package/dist/server.d.ts +433 -2
- package/package.json +101 -24
- package/src/styles/README.md +0 -56
package/dist/cjs/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("styled-components"),r=require("react"),o=require("@monaco-editor/react"),i=require("react-markdown"),n=require("react-syntax-highlighter"),a=require("rehype-raw"),s=require("remark-gfm"),l=require("react-dom"),c=require("plotly.js-dist");const d={small:t.css`
|
|
2
2
|
height: 22px;
|
|
3
|
-
`,medium:
|
|
3
|
+
`,medium:t.css`
|
|
4
4
|
height: 26px;
|
|
5
|
-
`},h={default:
|
|
5
|
+
`},h={default:t.css`
|
|
6
6
|
color: var(--black);
|
|
7
7
|
background-color: var(--white);
|
|
8
8
|
border: 1px solid var(--grey-300);
|
|
9
|
-
`,primary:
|
|
9
|
+
`,primary:t.css`
|
|
10
10
|
color: var(--blue-600);
|
|
11
11
|
background-color: var(--blue-50);
|
|
12
12
|
border: 1px solid var(--blue-600);
|
|
13
|
-
`},p=
|
|
13
|
+
`},p=t.span`
|
|
14
14
|
display: inline-flex;
|
|
15
15
|
align-items: center;
|
|
16
16
|
justify-content: center;
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
border-radius: 6px;
|
|
26
26
|
user-select: none;
|
|
27
27
|
|
|
28
|
-
${({$size:e})=>
|
|
28
|
+
${({$size:e})=>d[e]}
|
|
29
29
|
${({$variant:e})=>h[e]}
|
|
30
30
|
|
|
31
|
-
${({$disabled:e})=>e&&
|
|
31
|
+
${({$disabled:e})=>e&&t.css`
|
|
32
32
|
cursor: not-allowed;
|
|
33
33
|
background-color: var(--white);
|
|
34
34
|
border-color: var(--grey-300);
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
width: 16px;
|
|
40
40
|
height: 16px;
|
|
41
41
|
}
|
|
42
|
-
`,x={small:
|
|
42
|
+
`,x={small:t.css`
|
|
43
43
|
height: 34px;
|
|
44
|
-
`,medium:
|
|
44
|
+
`,medium:t.css`
|
|
45
45
|
height: 38px;
|
|
46
|
-
`},
|
|
46
|
+
`},u={primary:t.css`
|
|
47
47
|
color: var(--white-900);
|
|
48
48
|
background-color: var(--theme-primary, var(--blue-900));
|
|
49
49
|
border: 1px solid var(--theme-primary, var(--blue-900));
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
background-color: var(--theme-primaryActive, var(--blue-800));
|
|
62
62
|
border-color: var(--theme-primaryActive, var(--blue-800));
|
|
63
63
|
}
|
|
64
|
-
`,secondary:
|
|
64
|
+
`,secondary:t.css`
|
|
65
65
|
color: var(--blue-600);
|
|
66
66
|
background-color: var(--white-900);
|
|
67
67
|
border: 1px solid var(--blue-600);
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
border-color: var(--blue-600);
|
|
80
80
|
background-color: var(--blue-100);
|
|
81
81
|
}
|
|
82
|
-
`,tertiary:
|
|
82
|
+
`,tertiary:t.css`
|
|
83
83
|
color: var(--black-900);
|
|
84
84
|
background-color: var(--white-900);
|
|
85
85
|
border: 1px solid var(--grey-300);
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
&:active:not(:disabled) {
|
|
97
97
|
background-color: var(--grey-100);
|
|
98
98
|
}
|
|
99
|
-
`},
|
|
99
|
+
`},g=t.button`
|
|
100
100
|
display: inline-flex;
|
|
101
101
|
align-items: center;
|
|
102
102
|
justify-content: center;
|
|
@@ -108,12 +108,12 @@
|
|
|
108
108
|
transition: all 0.2s;
|
|
109
109
|
font-size: 14px;
|
|
110
110
|
min-height: 20px;
|
|
111
|
-
width: ${e=>e
|
|
112
|
-
padding: ${e=>{return
|
|
111
|
+
width: ${e=>e.$fullWidth?"100%":"auto"};
|
|
112
|
+
padding: ${e=>{return t=e.size||"medium",e.$noPadding?"0":"small"===t?"7px 10px":"9px 12px";var t}};
|
|
113
113
|
user-select: none;
|
|
114
114
|
|
|
115
115
|
${e=>x[e.size||"medium"]}
|
|
116
|
-
${e=>
|
|
116
|
+
${e=>u[e.variant||"primary"]}
|
|
117
117
|
|
|
118
118
|
&:disabled {
|
|
119
119
|
cursor: not-allowed;
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
box-shadow: 0px 0px 0px 1px var(--white-900),
|
|
130
130
|
0px 0px 0px 3px var(--blue-600);
|
|
131
131
|
}
|
|
132
|
-
`,f=
|
|
132
|
+
`,f=({children:t,variant:r="primary",size:o="medium",loading:i=!1,leftIcon:n,rightIcon:a,noPadding:s=!1,fullWidth:l=!1,disabled:c,ref:d,...h})=>e.jsxs(g,{ref:d,variant:r,size:o,$noPadding:s,$fullWidth:l,disabled:c||i,...h,children:[n,t,a]}),m=t.button`
|
|
133
133
|
display: flex;
|
|
134
134
|
align-items: center;
|
|
135
135
|
justify-content: center;
|
|
@@ -168,28 +168,28 @@
|
|
|
168
168
|
height: 20px;
|
|
169
169
|
color: ${e=>e.disabled?"var(--grey-400)":"var(--blue-900)"};
|
|
170
170
|
}
|
|
171
|
-
`,C=({icon:
|
|
171
|
+
`,C=({icon:t,selected:r=!1,disabled:o=!1,onClick:i})=>e.jsx(m,{selected:r,disabled:o,onClick:o?void 0:i,children:t}),b={small:t.css`
|
|
172
172
|
padding: 12px;
|
|
173
|
-
`,medium:
|
|
173
|
+
`,medium:t.css`
|
|
174
174
|
padding: 16px;
|
|
175
|
-
`,large:
|
|
175
|
+
`,large:t.css`
|
|
176
176
|
padding: 20px;
|
|
177
|
-
`},v={default:
|
|
177
|
+
`},v={default:t.css`
|
|
178
178
|
background-color: var(--theme-cardBackground, var(--white-900));
|
|
179
179
|
border: 1px solid var(--theme-cardBorder, var(--grey-200));
|
|
180
|
-
`,outlined:
|
|
180
|
+
`,outlined:t.css`
|
|
181
181
|
background-color: var(--theme-cardBackground, var(--white-900));
|
|
182
182
|
border: 1px solid var(--theme-cardBorder, var(--grey-200));
|
|
183
|
-
`,elevated:
|
|
183
|
+
`,elevated:t.css`
|
|
184
184
|
background-color: var(--theme-cardBackground, var(--white-900));
|
|
185
185
|
border: 1px solid var(--theme-cardBorder, var(--grey-200));
|
|
186
186
|
box-shadow: 0px 2px 4px var(--black-100);
|
|
187
|
-
`},w=
|
|
187
|
+
`},w=t.div`
|
|
188
188
|
border-radius: var(--theme-radius-large, 16px);
|
|
189
189
|
width: ${e=>e.$fullWidth?"100%":"auto"};
|
|
190
190
|
${e=>v[e.$variant]}
|
|
191
191
|
transition: all 0.2s ease;
|
|
192
|
-
`,y=
|
|
192
|
+
`,y=t.div`
|
|
193
193
|
font-family: "Inter", sans-serif;
|
|
194
194
|
font-size: 14px;
|
|
195
195
|
font-style: normal;
|
|
@@ -199,21 +199,21 @@
|
|
|
199
199
|
border-top-left-radius: var(--theme-radius-large, 16px);
|
|
200
200
|
border-top-right-radius: var(--theme-radius-large, 16px);
|
|
201
201
|
${e=>b[e.$size]}
|
|
202
|
-
`,
|
|
202
|
+
`,k=t.div`
|
|
203
203
|
${e=>b[e.$size]}
|
|
204
|
-
`,k=t.forwardRef(({children:r,title:t,size:o="medium",variant:i="default",className:n,fullWidth:a=!1,...l},s)=>e.jsxs(w,{ref:s,$size:o,$variant:i,$fullWidth:a,className:n,...l,children:[t&&e.jsx(y,{$size:o,children:t}),e.jsx(j,{$size:o,children:r})]}));k.displayName="Card";const L=({fill:r="currentColor",width:t="20",height:o="20"})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 20 20",fill:"none",children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 4.75C2 4.33579 2.33579 4 2.75 4H17.25C17.6642 4 18 4.33579 18 4.75C18 5.16421 17.6642 5.5 17.25 5.5H2.75C2.33579 5.5 2 5.16421 2 4.75ZM2 15.25C2 14.8358 2.33579 14.5 2.75 14.5H10.25C10.6642 14.5 11 14.8358 11 15.25C11 15.6642 10.6642 16 10.25 16H2.75C2.33579 16 2 15.6642 2 15.25Z",fill:r}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 10C2 9.58579 2.33579 9.25 2.75 9.25H17.25C17.6642 9.25 18 9.58579 18 10C18 10.4142 17.6642 10.75 17.25 10.75H2.75C2.33579 10.75 2 10.4142 2 10Z",fill:r})]}),E=({fill:r="currentColor",width:t="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 16.5V3.5H3.75C3.55109 3.5 3.36032 3.42098 3.21967 3.28033C3.07902 3.13968 3 2.94891 3 2.75C3 2.55109 3.07902 2.36032 3.21967 2.21967C3.36032 2.07902 3.55109 2 3.75 2H16.25C16.4489 2 16.6397 2.07902 16.7803 2.21967C16.921 2.36032 17 2.55109 17 2.75C17 2.94891 16.921 3.13968 16.7803 3.28033C16.6397 3.42098 16.4489 3.5 16.25 3.5H16V16.5H16.25C16.4489 16.5 16.6397 16.579 16.7803 16.7197C16.921 16.8603 17 17.0511 17 17.25C17 17.4489 16.921 17.6397 16.7803 17.7803C16.6397 17.921 16.4489 18 16.25 18H12.75C12.5511 18 12.3603 17.921 12.2197 17.7803C12.079 17.6397 12 17.4489 12 17.25V14.75C12 14.5511 11.921 14.3603 11.7803 14.2197C11.6397 14.079 11.4489 14 11.25 14H8.75C8.55109 14 8.36032 14.079 8.21967 14.2197C8.07902 14.3603 8 14.5511 8 14.75V17.25C8 17.4489 7.92098 17.6397 7.78033 17.7803C7.63968 17.921 7.44891 18 7.25 18H3.75C3.55109 18 3.36032 17.921 3.21967 17.7803C3.07902 17.6397 3 17.4489 3 17.25C3 17.0511 3.07902 16.8603 3.21967 16.7197C3.36032 16.579 3.55109 16.5 3.75 16.5H4ZM7 5.5C7 5.36739 7.05268 5.24021 7.14645 5.14645C7.24021 5.05268 7.36739 5 7.5 5H8.5C8.63261 5 8.75979 5.05268 8.85355 5.14645C8.94732 5.24021 9 5.36739 9 5.5V6.5C9 6.63261 8.94732 6.75979 8.85355 6.85355C8.75979 6.94732 8.63261 7 8.5 7H7.5C7.36739 7 7.24021 6.94732 7.14645 6.85355C7.05268 6.75979 7 6.63261 7 6.5V5.5ZM7.5 9C7.36739 9 7.24021 9.05268 7.14645 9.14645C7.05268 9.24021 7 9.36739 7 9.5V10.5C7 10.6326 7.05268 10.7598 7.14645 10.8536C7.24021 10.9473 7.36739 11 7.5 11H8.5C8.63261 11 8.75979 10.9473 8.85355 10.8536C8.94732 10.7598 9 10.6326 9 10.5V9.5C9 9.36739 8.94732 9.24021 8.85355 9.14645C8.75979 9.05268 8.63261 9 8.5 9H7.5ZM11 5.5C11 5.36739 11.0527 5.24021 11.1464 5.14645C11.2402 5.05268 11.3674 5 11.5 5H12.5C12.6326 5 12.7598 5.05268 12.8536 5.14645C12.9473 5.24021 13 5.36739 13 5.5V6.5C13 6.63261 12.9473 6.75979 12.8536 6.85355C12.7598 6.94732 12.6326 7 12.5 7H11.5C11.3674 7 11.2402 6.94732 11.1464 6.85355C11.0527 6.75979 11 6.63261 11 6.5V5.5ZM11.5 9C11.3674 9 11.2402 9.05268 11.1464 9.14645C11.0527 9.24021 11 9.36739 11 9.5V10.5C11 10.6326 11.0527 10.7598 11.1464 10.8536C11.2402 10.9473 11.3674 11 11.5 11H12.5C12.6326 11 12.7598 10.9473 12.8536 10.8536C12.9473 10.7598 13 10.6326 13 10.5V9.5C13 9.36739 12.9473 9.24021 12.8536 9.14645C12.7598 9.05268 12.6326 9 12.5 9H11.5Z",fill:r})}),I=({fill:r="currentColor",width:t="20",height:o="20"})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 20 20",fill:"none",children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.997 5.25C17.9972 4.69436 17.7917 4.15832 17.4202 3.74512C17.0488 3.33191 16.5375 3.07077 15.985 3.012C15.9262 2.45948 15.6651 1.94825 15.2519 1.57677C14.8387 1.20529 14.3026 0.999846 13.747 1H12.247C11.6914 0.999846 11.1553 1.20529 10.7421 1.57677C10.3289 1.94825 10.0678 2.45948 10.009 3.012C9.134 3.104 8.409 3.698 8.125 4.5H10.997C11.66 4.5 12.2959 4.76339 12.7648 5.23223C13.2336 5.70107 13.497 6.33696 13.497 7V14H15.747C16.3437 14 16.916 13.7629 17.338 13.341C17.7599 12.919 17.997 12.3467 17.997 11.75V5.25ZM12.247 2.5C12.0481 2.5 11.8573 2.57902 11.7167 2.71967C11.576 2.86032 11.497 3.05109 11.497 3.25V3.5H14.497V3.25C14.497 3.05109 14.418 2.86032 14.2773 2.71967C14.1367 2.57902 13.9459 2.5 13.747 2.5H12.247Z",fill:r}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 6C2.73478 6 2.48043 6.10536 2.29289 6.29289C2.10536 6.48043 2 6.73478 2 7V17C2 17.2652 2.10536 17.5196 2.29289 17.7071C2.48043 17.8946 2.73478 18 3 18H11C11.2652 18 11.5196 17.8946 11.7071 17.7071C11.8946 17.5196 12 17.2652 12 17V7C12 6.73478 11.8946 6.48043 11.7071 6.29289C11.5196 6.10536 11.2652 6 11 6H3ZM9.874 10.166C9.92992 10.0841 9.96904 9.99189 9.98909 9.89475C10.0091 9.79761 10.0097 9.69746 9.99081 9.6001C9.97189 9.50273 9.93385 9.41009 9.87889 9.32752C9.82392 9.24496 9.75313 9.17412 9.6706 9.1191C9.58807 9.06408 9.49545 9.02598 9.3981 9.007C9.30075 8.98802 9.2006 8.98854 9.10345 9.00852C9.0063 9.02851 8.91407 9.06757 8.83212 9.12344C8.75017 9.1793 8.68011 9.25087 8.626 9.334L6.133 13.073L5.28 12.22C5.13783 12.0875 4.94978 12.0154 4.75548 12.0188C4.56118 12.0223 4.37579 12.101 4.23838 12.2384C4.10097 12.3758 4.02225 12.5612 4.01883 12.7555C4.0154 12.9498 4.08752 13.1378 4.22 13.28L5.72 14.78C5.79844 14.8584 5.8933 14.9184 5.99773 14.9558C6.10217 14.9931 6.21359 15.0068 6.32396 14.9959C6.43434 14.985 6.54092 14.9498 6.63603 14.8927C6.73114 14.8357 6.81242 14.7582 6.874 14.666L9.874 10.166Z",fill:r})]}),N=({fill:r="currentColor",width:t="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.7045 4.15347C17.034 4.4045 17.0976 4.87509 16.8466 5.20457L8.84657 15.7046C8.71541 15.8767 8.51627 15.9838 8.30033 15.9983C8.08439 16.0129 7.87271 15.9334 7.71967 15.7804L3.21967 11.2804C2.92678 10.9875 2.92678 10.5126 3.21967 10.2197C3.51256 9.92682 3.98744 9.92682 4.28033 10.2197L8.17351 14.1129L15.6534 4.29551C15.9045 3.96603 16.3751 3.90243 16.7045 4.15347Z",fill:r})}),M=({fill:r="currentColor",width:t="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18ZM13.8566 8.19113C14.1002 7.85614 14.0261 7.38708 13.6911 7.14345C13.3561 6.89982 12.8871 6.97388 12.6434 7.30887L9.15969 12.099L7.28033 10.2197C6.98744 9.92678 6.51256 9.92678 6.21967 10.2197C5.92678 10.5126 5.92678 10.9874 6.21967 11.2803L8.71967 13.7803C8.87477 13.9354 9.08999 14.0149 9.30867 13.9977C9.52734 13.9805 9.72754 13.8685 9.85655 13.6911L13.8566 8.19113Z",fill:r})}),A=({fill:r="currentColor",width:t="16",height:o="16"})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 16 16",fill:"none",children:[e.jsx("path",{d:"M11.2016 1.59961H4.80156C3.03676 1.59961 1.60156 3.03481 1.60156 4.79961V11.1996C1.60156 12.9644 3.03676 14.3996 4.80156 14.3996H11.2016C12.9664 14.3996 14.4016 12.9644 14.4016 11.1996V4.79961C14.4016 3.03481 12.9664 1.59961 11.2016 1.59961Z",fill:r}),e.jsx("path",{d:"M7.63305 10.8968L11.4331 6.09685C11.7075 5.75045 11.6491 5.24725 11.3027 4.97285C10.9555 4.69925 10.4531 4.75845 10.1787 5.10405L6.96665 9.16085L5.80025 7.86485C5.50425 7.53685 4.99945 7.50965 4.67065 7.80565C4.34265 8.10085 4.31625 8.60645 4.61145 8.93525L6.41145 10.9352C6.56265 11.104 6.77945 11.2 7.00585 11.2H7.03065C7.26665 11.1928 7.48665 11.0816 7.63305 10.8968Z",fill:"white"})]}),R=({fill:r="currentColor",width:t="20",height:o="20"})=>e.jsx("svg",{width:t,height:o,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.21967 8.21967C5.51256 7.92678 5.98744 7.92678 6.28033 8.21967L10 11.9393L13.7197 8.21967C14.0126 7.92678 14.4874 7.92678 14.7803 8.21967C15.0732 8.51256 15.0732 8.98744 14.7803 9.28033L10.5303 13.5303C10.3897 13.671 10.1989 13.75 10 13.75C9.80109 13.75 9.61032 13.671 9.46967 13.5303L5.21967 9.28033C4.92678 8.98744 4.92678 8.51256 5.21967 8.21967Z",fill:r})}),_=({fill:r="currentColor",width:t="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{d:"M3.75 3.75L16.25 16.25M16.25 3.75L3.75 16.25",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),B=({fill:r="currentColor",width:t="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.25 2C3.65326 2 3.08097 2.23705 2.65901 2.65901C2.23705 3.08097 2 3.65326 2 4.25V15.75C2 16.3467 2.23705 16.919 2.65901 17.341C3.08097 17.7629 3.65326 18 4.25 18H15.75C16.3467 18 16.919 17.7629 17.341 17.341C17.7629 16.919 18 16.3467 18 15.75V4.25C18 3.65326 17.7629 3.08097 17.341 2.65901C16.919 2.23705 16.3467 2 15.75 2H4.25ZM8.28 8.28C8.41248 8.13783 8.4846 7.94978 8.48118 7.75548C8.47775 7.56118 8.39903 7.37579 8.26162 7.23838C8.12421 7.10097 7.93882 7.02225 7.74452 7.01883C7.55022 7.0154 7.36217 7.08752 7.22 7.22L4.97 9.47C4.82955 9.61063 4.75066 9.80125 4.75066 10C4.75066 10.1988 4.82955 10.3894 4.97 10.53L7.22 12.78C7.36217 12.9125 7.55022 12.9846 7.74452 12.9812C7.93882 12.9777 8.12421 12.899 8.26162 12.7616C8.39903 12.6242 8.47775 12.4388 8.48118 12.2445C8.4846 12.0502 8.41248 11.8622 8.28 11.72L6.56 10L8.28 8.28ZM12.78 7.22C12.7113 7.14631 12.6285 7.08721 12.5365 7.04622C12.4445 7.00523 12.3452 6.98319 12.2445 6.98141C12.1438 6.97963 12.0438 6.99816 11.9504 7.03588C11.857 7.0736 11.7722 7.12974 11.701 7.20096C11.6297 7.27218 11.5736 7.35701 11.5359 7.4504C11.4982 7.54379 11.4796 7.64382 11.4814 7.74452C11.4832 7.84523 11.5052 7.94454 11.5462 8.03654C11.5872 8.12854 11.6463 8.21134 11.72 8.28L13.44 10L11.72 11.72C11.6463 11.7887 11.5872 11.8715 11.5462 11.9635C11.5052 12.0555 11.4832 12.1548 11.4814 12.2555C11.4796 12.3562 11.4982 12.4562 11.5359 12.5496C11.5736 12.643 11.6297 12.7278 11.701 12.799C11.7722 12.8703 11.857 12.9264 11.9504 12.9641C12.0438 13.0018 12.1438 13.0204 12.2445 13.0186C12.3452 13.0168 12.4445 12.9948 12.5365 12.9538C12.6285 12.9128 12.7113 12.8537 12.78 12.78L15.03 10.53C15.1705 10.3894 15.2493 10.1988 15.2493 10C15.2493 9.80125 15.1705 9.61063 15.03 9.47L12.78 7.22Z",fill:r})}),H=({fill:r="currentColor",width:t="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 4.25C2 3.65326 2.23705 3.08097 2.65901 2.65901C3.08097 2.23705 3.65326 2 4.25 2H15.75C16.3467 2 16.919 2.23705 17.341 2.65901C17.7629 3.08097 18 3.65326 18 4.25V12.75C18 13.3467 17.7629 13.919 17.341 14.341C16.919 14.7629 16.3467 15 15.75 15H12.645C12.8403 15.6543 13.2226 16.2372 13.745 16.677C13.8625 16.7762 13.9467 16.9092 13.9861 17.0579C14.0255 17.2065 14.0182 17.3637 13.9653 17.5081C13.9123 17.6526 13.8163 17.7772 13.6901 17.8652C13.564 17.9532 13.4138 18.0002 13.26 18H6.74C6.58628 18 6.43627 17.9528 6.31027 17.8647C6.18427 17.7767 6.08838 17.652 6.03557 17.5077C5.98275 17.3633 5.97557 17.2062 6.015 17.0576C6.05443 16.9091 6.13856 16.7762 6.256 16.677C6.77799 16.2371 7.15999 15.6542 7.355 15H4.25C3.65326 15 3.08097 14.7629 2.65901 14.341C2.23705 13.919 2 13.3467 2 12.75V4.25ZM3.5 4.25C3.5 4.05109 3.57902 3.86032 3.71967 3.71967C3.86032 3.57902 4.05109 3.5 4.25 3.5H15.75C15.9489 3.5 16.1397 3.57902 16.2803 3.71967C16.421 3.86032 16.5 4.05109 16.5 4.25V11.75C16.5 11.9489 16.421 12.1397 16.2803 12.2803C16.1397 12.421 15.9489 12.5 15.75 12.5H4.25C4.05109 12.5 3.86032 12.421 3.71967 12.2803C3.57902 12.1397 3.5 11.9489 3.5 11.75V4.25Z",fill:r})}),z=({fill:r="currentColor",width:t="20",height:o="20"})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 20 20",fill:"none",children:[e.jsx("path",{d:"M2 4.25C2 3.00736 3.00736 2 4.25 2H10.75C11.9926 2 13 3.00736 13 4.25V5.5H9.25C7.17893 5.5 5.5 7.17893 5.5 9.25V13H4.25C3.00736 13 2 11.9926 2 10.75V4.25Z",fill:r}),e.jsx("path",{d:"M9.25 7C8.00736 7 7 8.00736 7 9.25V15.75C7 16.9926 8.00736 18 9.25 18H15.75C16.9926 18 18 16.9926 18 15.75V9.25C18 8.00736 16.9926 7 15.75 7H9.25Z",fill:r})]}),T=({fill:r="currentColor",width:t="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{d:"M10.362 1.093C10.2511 1.0319 10.1266 0.999851 10 0.999851C9.87341 0.999851 9.74887 1.0319 9.638 1.093L2.523 5.018L10 9.143L17.477 5.018L10.362 1.093ZM18 6.443L10.75 10.443V18.693L17.612 14.907C17.7295 14.8422 17.8275 14.7471 17.8958 14.6315C17.964 14.516 18 14.3842 18 14.25V6.443ZM9.25 18.693V10.443L2 6.443V14.25C1.99997 14.3842 2.03596 14.516 2.10421 14.6315C2.17245 14.7471 2.27046 14.8422 2.388 14.907L9.25 18.693Z",fill:r})}),S=({fill:r="currentColor",width:t="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 1C13.866 1 17 2.79 17 5C17 7.21 13.866 9 10 9C6.134 9 3 7.21 3 5C3 2.79 6.134 1 10 1ZM15.694 9.13C16.158 8.866 16.604 8.547 17 8.178V10C17 12.21 13.866 14 10 14C6.134 14 3 12.21 3 10V8.178C3.396 8.548 3.842 8.866 4.306 9.131C5.838 10.006 7.854 10.5 10 10.5C12.146 10.5 14.162 10.006 15.694 9.13ZM3 13.179V15C3 17.21 6.134 19 10 19C13.866 19 17 17.21 17 15V13.178C16.604 13.548 16.158 13.866 15.694 14.131C14.162 15.006 12.146 15.5 10 15.5C7.854 15.5 5.838 15.006 4.306 14.13C3.83547 13.8644 3.39722 13.5453 3 13.179Z",fill:r})}),$=({fill:r="currentColor",width:t="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10ZM10 5C10.4142 5 10.75 5.33579 10.75 5.75V10.25C10.75 10.6642 10.4142 11 10 11C9.58579 11 9.25 10.6642 9.25 10.25V5.75C9.25 5.33579 9.58579 5 10 5ZM10 15C10.5523 15 11 14.5523 11 14C11 13.4477 10.5523 13 10 13C9.44771 13 9 13.4477 9 14C9 14.5523 9.44771 15 10 15Z",fill:r})}),P=({fill:r="currentColor",width:t="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.4845 2.49499C9.15808 1.32833 10.842 1.32833 11.5156 2.495L17.7943 13.37C18.4678 14.5367 17.6259 15.995 16.2787 15.995H3.72136C2.37421 15.995 1.53224 14.5367 2.20582 13.37L8.4845 2.49499ZM10 5C10.4142 5 10.75 5.33579 10.75 5.75V9.25C10.75 9.66421 10.4142 10 10 10C9.58579 10 9.25 9.66421 9.25 9.25L9.25 5.75C9.25 5.33579 9.58579 5 10 5ZM10 14C10.5523 14 11 13.5523 11 13C11 12.4477 10.5523 12 10 12C9.44772 12 9 12.4477 9 13C9 13.5523 9.44772 14 10 14Z",fill:r})}),O=({fill:r="currentColor",width:t="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.84288 1.804C7.88817 1.57739 8.01055 1.37346 8.18921 1.22689C8.36787 1.08031 8.59178 1.00014 8.82288 1H11.1829C11.414 1.00014 11.6379 1.08031 11.8165 1.22689C11.9952 1.37346 12.1176 1.57739 12.1629 1.804L12.4939 3.456C13.1923 3.72219 13.8436 4.09863 14.4229 4.571L16.0209 4.031C16.2398 3.95702 16.4775 3.96112 16.6937 4.04261C16.9099 4.1241 17.0913 4.27795 17.2069 4.478L18.3869 6.522C18.5025 6.72209 18.5453 6.95607 18.5079 7.18413C18.4706 7.4122 18.3553 7.62029 18.1819 7.773L16.9149 8.886C17.033 9.62397 17.033 10.376 16.9149 11.114L18.1819 12.227C18.3553 12.3795 18.4705 12.5874 18.5081 12.8152C18.5456 13.0431 18.5031 13.2769 18.3879 13.477L17.2079 15.522C17.0922 15.7223 16.9107 15.8763 16.6943 15.9578C16.4779 16.0393 16.2399 16.0432 16.0209 15.969L14.4229 15.429C13.8436 15.9014 13.1923 16.2778 12.4939 16.544L12.1639 18.196C12.1186 18.4226 11.9962 18.6265 11.8175 18.7731C11.6389 18.9197 11.415 18.9999 11.1839 19H8.82288C8.59178 18.9999 8.36787 18.9197 8.18921 18.7731C8.01055 18.6265 7.88817 18.4226 7.84288 18.196L7.51188 16.544C6.81342 16.2778 6.16215 15.9014 5.58288 15.429L3.98488 15.969C3.76598 16.043 3.52823 16.0389 3.31202 15.9574C3.09581 15.8759 2.91449 15.7221 2.79888 15.522L1.61888 13.478C1.50322 13.2779 1.46045 13.0439 1.49782 12.8159C1.53519 12.5878 1.65041 12.3797 1.82388 12.227L3.09088 11.113C2.97289 10.3754 2.97289 9.62364 3.09088 8.886L1.82388 7.773C1.65049 7.62047 1.53524 7.41264 1.49769 7.18478C1.46014 6.95693 1.5026 6.7231 1.61788 6.523L2.79788 4.478C2.91352 4.27773 3.09501 4.12373 3.31144 4.04223C3.52787 3.96073 3.76585 3.95676 3.98488 4.031L5.58288 4.571C6.16245 4.09852 6.81406 3.72207 7.51288 3.456L7.84288 1.804ZM10.0029 13C10.7985 13 11.5616 12.6839 12.1242 12.1213C12.6868 11.5587 13.0029 10.7956 13.0029 10C13.0029 9.20435 12.6868 8.44129 12.1242 7.87868C11.5616 7.31607 10.7985 7 10.0029 7C9.20723 7 8.44416 7.31607 7.88156 7.87868C7.31895 8.44129 7.00288 9.20435 7.00288 10C7.00288 10.7956 7.31895 11.5587 7.88156 12.1213C8.44416 12.6839 9.20723 13 10.0029 13Z",fill:r})}),V=({fill:r="currentColor",width:t="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10ZM16.4969 10.2041C16.389 13.6995 13.5216 16.5 10 16.5C6.41015 16.5 3.5 13.5899 3.5 10C3.5 7.12656 5.36451 4.68861 7.94969 3.82998L6.92671 5.62019C6.60171 6.18894 6.69759 6.90485 7.16078 7.36805C7.6029 7.81017 8.27833 7.91977 8.83757 7.64015L9.0123 7.55279C9.08173 7.51807 9.15829 7.5 9.23591 7.5H9.38181C9.5712 7.5 9.74433 7.607 9.82902 7.77639C9.8994 7.91716 9.8994 8.08284 9.82902 8.22361L9.80123 8.27919C9.73357 8.41452 9.59525 8.5 9.44395 8.5H8.9418C8.18614 8.5 7.48048 8.87766 7.06131 9.50641L7.01751 9.57212C6.65828 10.111 6.56795 10.7855 6.77274 11.3998C6.98201 12.0276 7.47787 12.5197 8.10338 12.7282C8.33997 12.8071 8.49984 13.0292 8.49984 13.2749V14.3246C8.49984 14.9738 9.02608 15.5 9.67523 15.5C10.0323 15.5 10.37 15.3377 10.5931 15.0589L12.2044 13.0446C12.3957 12.8056 12.4998 12.5086 12.4998 12.2025C12.4998 11.8866 12.6279 11.5791 12.8531 11.3539C13.3088 10.8982 13.3864 10.1784 13.0257 9.63738L12.5617 8.94145C12.5214 8.88091 12.4998 8.80979 12.4998 8.73703C12.4998 8.43336 12.8465 8.26002 13.0895 8.44222L13.4322 8.69925C13.748 8.93609 14.1704 8.97373 14.523 8.79746C14.7488 8.68456 15.0216 8.72887 15.1996 8.90689L16.4969 10.2041Z",fill:r})}),D=({fill:r="currentColor",width:t="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{d:"M13.3516 2.00712C13.7619 2.06371 14.0488 2.44249 13.9922 2.85282L13.5576 6.00028H16.6973C17.1115 6.00028 17.4473 6.33607 17.4473 6.75028C17.4473 7.16448 17.1115 7.50028 16.6973 7.50028H13.3516L12.6611 12.5003H15.8008C16.215 12.5003 16.5508 12.8361 16.5508 13.2503C16.5508 13.6645 16.215 14.0003 15.8008 14.0003H12.4551L11.9922 17.3528C11.9356 17.7631 11.5568 18.05 11.1465 17.9934C10.7362 17.9368 10.4493 17.558 10.5059 17.1477L10.9404 14.0003H7.95508L7.49219 17.3528C7.43556 17.7631 7.05679 18.05 6.64648 17.9934C6.23622 17.9368 5.94927 17.558 6.00586 17.1477L6.44043 14.0003H3.30078C2.88658 14.0003 2.5508 13.6645 2.55078 13.2503C2.55078 12.8361 2.88657 12.5003 3.30078 12.5003H6.64648L7.33691 7.50028H4.19727C3.78309 7.50024 3.44728 7.16446 3.44727 6.75028C3.44727 6.33609 3.78308 6.00032 4.19727 6.00028H7.54297L8.00586 2.64774C8.06245 2.23743 8.44125 1.95055 8.85156 2.00712C9.26189 2.06371 9.54878 2.44249 9.49219 2.85282L9.05762 6.00028H12.043L12.5059 2.64774C12.5625 2.23743 12.9413 1.95055 13.3516 2.00712ZM8.85156 7.50028L8.16113 12.5003H11.1465L11.8369 7.50028H8.85156Z",fill:r})}),U=({fill:r="currentColor",width:t="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.29292 2.29289C9.68345 1.90237 10.3166 1.90237 10.7071 2.29289L17.7071 9.29289C17.9931 9.57889 18.0787 10.009 17.9239 10.3827C17.7691 10.7564 17.4045 11 17 11H16V17C16 17.5523 15.5523 18 15 18H13C12.4477 18 12 17.5523 12 17V14C12 13.4477 11.5523 13 11 13H9.00003C8.44774 13 8.00003 13.4477 8.00003 14V17C8.00003 17.5523 7.55231 18 7.00003 18H5.00003C4.44774 18 4.00003 17.5523 4.00003 17V11H3.00003C2.59557 11 2.23093 10.7564 2.07615 10.3827C1.92137 10.009 2.00692 9.57889 2.29292 9.29289L9.29292 2.29289Z",fill:r})}),G=({fill:r="currentColor",width:t="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 40 40",fill:"none",children:e.jsx("path",{d:"M3.75 22.5H10.1824C11.6028 22.5 12.9013 23.3025 13.5365 24.5729L13.9635 25.4271C14.5987 26.6975 15.8972 27.5 17.3176 27.5H22.6824C24.1028 27.5 25.4013 26.6975 26.0365 25.4271L26.4635 24.5729C27.0987 23.3025 28.3972 22.5 29.8176 22.5H36.25M3.75 23.0639V30C3.75 32.0711 5.42893 33.75 7.5 33.75H32.5C34.5711 33.75 36.25 32.0711 36.25 30V23.0639C36.25 22.6901 36.1941 22.3183 36.0842 21.9611L32.0645 8.89718C31.5804 7.32371 30.1266 6.25 28.4803 6.25H11.5197C9.87339 6.25 8.41963 7.32371 7.93548 8.89718L3.91583 21.9611C3.80589 22.3183 3.75 22.6901 3.75 23.0639Z",stroke:r,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})}),Z=({fill:r="currentColor",width:t="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{d:"M10 2C14.4183 2 18 5.58172 18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2ZM9 9C8.58579 9 8.25 9.33579 8.25 9.75C8.25 10.1642 8.58579 10.5 9 10.5H9.25293C9.41287 10.5 9.53176 10.6486 9.49707 10.8047L9.03809 12.8701C8.79522 13.963 9.62751 15 10.7471 15H11C11.4142 15 11.75 14.6642 11.75 14.25C11.75 13.8358 11.4142 13.5 11 13.5H10.7471C10.5871 13.5 10.4682 13.3514 10.5029 13.1953L10.9619 11.1299C11.2048 10.037 10.3725 9 9.25293 9H9ZM10 5C9.44771 5 9 5.44772 9 6C9 6.55228 9.44771 7 10 7C10.5523 7 11 6.55228 11 6C11 5.44772 10.5523 5 10 5Z",fill:r})}),W=({fill:r="currentColor",width:t="16",height:o="16"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8ZM9 5C9 5.55228 8.55228 6 8 6C7.44772 6 7 5.55228 7 5C7 4.44772 7.44772 4 8 4C8.55228 4 9 4.44772 9 5ZM6.75 8C6.33579 8 6 8.33579 6 8.75C6 9.16421 6.33579 9.5 6.75 9.5H7.5V11.25C7.5 11.6642 7.83579 12 8.25 12C8.66421 12 9 11.6642 9 11.25V8.75C9 8.33579 8.66421 8 8.25 8H6.75Z",fill:r})}),K=({fill:r="currentColor",width:t="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{d:"M10.0001 1C8.76409 0.99999 7.55829 1.38167 6.54746 2.09287C5.53662 2.80407 4.77008 3.81008 4.35262 4.9734C3.93516 6.13672 3.88714 7.40058 4.21512 8.59222C4.54311 9.78387 5.2311 10.8451 6.18505 11.631C7.23705 12.5 8.00005 13.443 8.00005 14.456V15.1C7.99995 15.268 8.05628 15.4312 8.16 15.5634C8.26372 15.6956 8.40883 15.7891 8.57205 15.829C9.51025 16.0582 10.4899 16.0582 11.4281 15.829C11.5913 15.7891 11.7364 15.6956 11.8401 15.5634C11.9438 15.4312 12.0001 15.268 12.0001 15.1V14.456C12.0001 13.443 12.7621 12.499 13.8151 11.631C14.769 10.8451 15.457 9.78387 15.785 8.59222C16.113 7.40058 16.0649 6.13672 15.6475 4.9734C15.23 3.81008 14.4635 2.80407 13.4526 2.09287C12.4418 1.38167 11.236 0.99999 10.0001 1ZM8.86305 17.414C8.76568 17.3992 8.66633 17.4036 8.57069 17.4272C8.47505 17.4508 8.38498 17.4929 8.30563 17.5513C8.14538 17.6691 8.03852 17.8458 8.00855 18.0425C7.97858 18.2392 8.02796 18.4397 8.14583 18.5999C8.2637 18.7602 8.44039 18.867 8.63705 18.897C9.54052 19.0344 10.4596 19.0344 11.3631 18.897C11.5597 18.867 11.7364 18.7602 11.8543 18.5999C11.9721 18.4397 12.0215 18.2392 11.9916 18.0425C11.9616 17.8458 11.8547 17.6691 11.6945 17.5513C11.5342 17.4334 11.3337 17.384 11.1371 17.414C10.3834 17.5288 9.61671 17.5288 8.86305 17.414Z",fill:r})}),Y=({fill:r="currentColor",width:t="16",height:o="16"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M11.5 1C9.567 1 8 2.567 8 4.5V7H2.5C1.67157 7 1 7.67157 1 8.5V13.5C1 14.3284 1.67157 15 2.5 15H9.5C10.3284 15 11 14.3284 11 13.5V8.5C11 7.67157 10.3284 7 9.5 7V4.5C9.5 3.39543 10.3954 2.5 11.5 2.5C12.6046 2.5 13.5 3.39543 13.5 4.5V6.25C13.5 6.66421 13.8358 7 14.25 7C14.6642 7 15 6.66421 15 6.25V4.5C15 2.567 13.433 1 11.5 1Z",fill:r})}),F=({fill:r="currentColor",width:t="16",height:o="16"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M3.75 7.25C3.33579 7.25 3 7.58579 3 8C3 8.41421 3.33579 8.75 3.75 8.75L12.25 8.75C12.6642 8.75 13 8.41421 13 8C13 7.58579 12.6642 7.25 12.25 7.25H3.75Z",fill:r})}),X=({fill:r="currentColor",width:t="20",height:o="20"})=>e.jsx("svg",{width:t,height:o,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M3.10526 2.28868C2.85362 2.25302 2.60104 2.34722 2.43421 2.53895C2.26738 2.73068 2.209 2.99386 2.27911 3.23815L3.69276 8.16402C3.87733 8.80713 4.4655 9.25024 5.13456 9.25024H11.25C11.6642 9.25024 12 9.58603 12 10.0002C12 10.4145 11.6642 10.7502 11.25 10.7502H5.13457C4.4655 10.7502 3.87733 11.1934 3.69277 11.8365L2.27911 16.7624C2.209 17.0067 2.26738 17.2698 2.43421 17.4616C2.60104 17.6533 2.85362 17.7475 3.10526 17.7118C8.94303 16.8844 14.221 14.319 18.3983 10.5576C18.5563 10.4154 18.6465 10.2128 18.6465 10.0003C18.6465 9.7877 18.5563 9.58513 18.3983 9.4429C14.221 5.68154 8.94303 3.1161 3.10526 2.28868Z",fill:r})}),q=({fill:r="currentColor",width:t="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{d:"M2.69533 14.7623L1.43355 17.9168C1.27028 18.3249 1.67532 18.73 2.08348 18.5667L5.23795 17.3049C5.74091 17.1037 6.19777 16.8025 6.58081 16.4194L17.5 5.50072C18.3284 4.67229 18.3284 3.32914 17.5 2.50072C16.6716 1.67229 15.3284 1.67229 14.5 2.50071L3.58081 13.4194C3.19777 13.8025 2.89652 14.2593 2.69533 14.7623Z",fill:r})}),Q=({fill:r="currentColor",width:t="20",height:o="20"})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 20 20",fill:"none",children:[e.jsx("path",{d:"M12 8.99908C11.7348 8.99908 11.4804 8.89372 11.2929 8.70618C11.1054 8.51865 11 8.26429 11 7.99908V2.99908C11 2.44708 11.45 1.99208 11.997 2.06908C13.4939 2.28487 14.8808 2.97941 15.9502 4.04884C17.0197 5.11828 17.7142 6.50515 17.93 8.00208C18.008 8.54908 17.552 8.99908 17 8.99908H12Z",fill:r}),e.jsx("path",{d:"M8.003 4.07083C8.55 3.99483 9 4.44982 9 5.00082V10.0008C9 10.266 9.10536 10.5204 9.29289 10.7079C9.48043 10.8955 9.73478 11.0008 10 11.0008H15C15.552 11.0008 16.008 11.4508 15.93 11.9978C15.6769 13.7491 14.77 15.3396 13.3918 16.4494C12.0135 17.5591 10.2662 18.1058 8.5012 17.9795C6.73622 17.8532 5.08455 17.0632 3.87841 15.7685C2.67226 14.4737 2.00113 12.7703 2 11.0008C2.00009 9.31693 2.60701 7.68946 3.70953 6.41668C4.81205 5.1439 6.33633 4.31107 8.003 4.07083Z",fill:r})]}),J=({fill:r="currentColor",width:t="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.157 2.17646C7.78976 2.02451 7.37724 2.02451 7.01 2.17646L2.926 3.86646C2.65219 3.97987 2.41812 4.17185 2.25331 4.41817C2.08851 4.66448 2.00036 4.9541 2 5.25046V16.1275C1.99997 16.3742 2.06079 16.617 2.17705 16.8346C2.29332 17.0522 2.46146 17.2377 2.66656 17.3748C2.87167 17.5118 3.10741 17.5962 3.35291 17.6204C3.59841 17.6446 3.84609 17.6079 4.074 17.5135L7.584 16.0615L11.844 17.8235C12.2109 17.9751 12.6231 17.9751 12.99 17.8235L17.073 16.1335C17.3468 16.0203 17.581 15.8285 17.746 15.5824C17.911 15.3363 17.9994 15.0468 18 14.7505V3.87246C18 3.6259 17.9391 3.38315 17.8229 3.1657C17.7067 2.94824 17.5387 2.76278 17.3337 2.62574C17.1287 2.4887 16.8932 2.4043 16.6478 2.38001C16.4024 2.35571 16.1549 2.39228 15.927 2.48646L12.417 3.93846L8.157 2.17646ZM7.58 5.00046C7.77891 5.00046 7.96968 5.07948 8.11033 5.22013C8.25098 5.36079 8.33 5.55155 8.33 5.75046V12.2505C8.33 12.4494 8.25098 12.6401 8.11033 12.7808C7.96968 12.9214 7.77891 13.0005 7.58 13.0005C7.38109 13.0005 7.19032 12.9214 7.04967 12.7808C6.90902 12.6401 6.83 12.4494 6.83 12.2505V5.75046C6.83 5.55155 6.90902 5.36079 7.04967 5.22013C7.19032 5.07948 7.38109 5.00046 7.58 5.00046ZM13.17 7.75046C13.17 7.55155 13.091 7.36079 12.9503 7.22013C12.8097 7.07948 12.6189 7.00046 12.42 7.00046C12.2211 7.00046 12.0303 7.07948 11.8897 7.22013C11.749 7.36079 11.67 7.55155 11.67 7.75046V14.2505C11.67 14.4494 11.749 14.6401 11.8897 14.7808C12.0303 14.9214 12.2211 15.0005 12.42 15.0005C12.6189 15.0005 12.8097 14.9214 12.9503 14.7808C13.091 14.6401 13.17 14.4494 13.17 14.2505V7.75046Z",fill:r})}),ee=({fill:r="currentColor",width:t="16",height:o="16"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M8.75 3.75C8.75 3.33579 8.41421 3 8 3C7.58579 3 7.25 3.33579 7.25 3.75V7.25H3.75C3.33579 7.25 3 7.58579 3 8C3 8.41421 3.33579 8.75 3.75 8.75L7.25 8.75V12.25C7.25 12.6642 7.58579 13 8 13C8.41421 13 8.75 12.6642 8.75 12.25V8.75L12.25 8.75C12.6642 8.75 13 8.41421 13 8C13 7.58579 12.6642 7.25 12.25 7.25H8.75V3.75Z",fill:r})}),re=({fill:r="currentColor",width:t="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{d:"M10.0036 8C10.7993 8 11.5623 7.68393 12.1249 7.12132C12.6875 6.55871 13.0036 5.79565 13.0036 5C13.0036 4.20435 12.6875 3.44129 12.1249 2.87868C11.5623 2.31607 10.7993 2 10.0036 2C9.20797 2 8.44491 2.31607 7.8823 2.87868C7.31969 3.44129 7.00362 4.20435 7.00362 5C7.00362 5.79565 7.31969 6.55871 7.8823 7.12132C8.44491 7.68393 9.20797 8 10.0036 8ZM3.46862 14.493C3.37578 14.7411 3.36554 15.0126 3.43941 15.267C3.51329 15.5214 3.66733 15.7452 3.87862 15.905C5.62995 17.266 7.7856 18.0034 10.0036 18C12.3136 18 14.4416 17.216 16.1346 15.9C16.5646 15.567 16.7386 14.997 16.5426 14.49C16.0349 13.168 15.1382 12.0311 13.9709 11.2292C12.8037 10.4274 11.4207 9.99829 10.0046 9.99861C8.58845 9.99894 7.20569 10.4287 6.03881 11.231C4.87193 12.0334 3.97578 13.1708 3.46862 14.493Z",fill:r})}),te=({fill:r="currentColor",width:t="16",height:o="16"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8ZM9 11.5C9 12.0523 8.55228 12.5 8 12.5C7.44772 12.5 7 12.0523 7 11.5C7 10.9477 7.44772 10.5 8 10.5C8.55228 10.5 9 10.9477 9 11.5ZM7.29303 5.29289C7.68355 4.90237 8.31671 4.90237 8.70724 5.29289C9.09776 5.68342 9.09776 6.31658 8.70724 6.70711C8.58354 6.83081 8.43743 6.91429 8.2827 6.95959C7.82404 7.09387 7.25013 7.52576 7.25013 8.25V8.50022C7.25013 8.91444 7.58592 9.25022 8.00013 9.25022C8.41435 9.25022 8.75013 8.91444 8.75013 8.50022V8.38522C9.12313 8.26818 9.47391 8.06176 9.7679 7.76777C10.7442 6.79146 10.7442 5.20854 9.7679 4.23223C8.79159 3.25592 7.20868 3.25592 6.23237 4.23223C5.93947 4.52513 5.93947 5 6.23237 5.29289C6.52526 5.58579 7.00013 5.58579 7.29303 5.29289Z",fill:r})}),oe=({fill:r="currentColor",width:t="20",height:o="20"})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 20 20",fill:"none",children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.60597 12.9691C4.85946 13.2967 4.79938 13.7678 4.47179 14.0213C3.87925 14.4798 3.5 15.1954 3.5 16C3.5 16.1569 3.51437 16.31 3.54177 16.4582C3.68996 16.4856 3.84307 16.5 4 16.5C4.80458 16.5 5.52023 16.1208 5.97873 15.5282C6.23222 15.2006 6.70328 15.1405 7.03087 15.394C7.35846 15.6475 7.41854 16.1186 7.16505 16.4462C6.4347 17.39 5.2884 18 4 18C3.54003 18 3.09667 17.9221 2.6834 17.778C2.46722 17.7027 2.29728 17.5328 2.22195 17.3166C2.07794 16.9033 2 16.46 2 16C2 14.7116 2.60997 13.5653 3.55383 12.835C3.88142 12.5815 4.35248 12.6415 4.60597 12.9691Z",fill:r}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.75236 12C6.40714 12.8376 7.16237 13.5929 8 14.2476V18.25C8 18.6642 8.33579 19 8.75 19C11.5114 19 13.75 16.7614 13.75 14C13.75 13.5097 13.6792 13.035 13.5471 12.5861C16.8467 10.2297 19 6.36651 19 2C19 1.91234 18.9991 1.82486 18.9974 1.73759C18.9894 1.33502 18.665 1.01058 18.2624 1.0026C18.1751 1.00087 18.0877 1 18 1C13.6335 1 9.77032 3.15331 7.41387 6.45291C6.96496 6.32078 6.49028 6.25 6 6.25C3.23858 6.25 1 8.48858 1 11.25C1 11.6642 1.33579 12 1.75 12H5.75236ZM13 9C14.1046 9 15 8.10457 15 7C15 5.89543 14.1046 5 13 5C11.8954 5 11 5.89543 11 7C11 8.10457 11.8954 9 13 9Z",fill:r})]}),ie=({fill:r="currentColor",width:t="20",height:o="20"})=>e.jsxs("svg",{width:t,height:o,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M9 16C12.866 16 16 12.866 16 9C16 5.13401 12.866 2 9 2C5.13401 2 2 5.13401 2 9C2 12.866 5.13401 16 9 16Z",stroke:r,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M18 18L14 14",stroke:r,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),ne=({fill:r="currentColor",width:t="20",height:o="20"})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 20 20",fill:"none",children:[e.jsx("path",{d:"M8 10C8 9.60218 8.15804 9.22064 8.43934 8.93934C8.72064 8.65804 9.10218 8.5 9.5 8.5C9.89782 8.5 10.2794 8.65804 10.5607 8.93934C10.842 9.22064 11 9.60218 11 10C11 10.3978 10.842 10.7794 10.5607 11.0607C10.2794 11.342 9.89782 11.5 9.5 11.5C9.10218 11.5 8.72064 11.342 8.43934 11.0607C8.15804 10.7794 8 10.3978 8 10Z",fill:r}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5 2C4.10218 2 3.72064 2.15804 3.43934 2.43934C3.15804 2.72065 3 3.10218 3 3.5V16.5C3 16.8978 3.15804 17.2794 3.43934 17.5607C3.72064 17.842 4.10218 18 4.5 18H15.5C15.8978 18 16.2794 17.842 16.5607 17.5607C16.842 17.2794 17 16.8978 17 16.5V7.621C16.9997 7.22331 16.8414 6.84204 16.56 6.561L12.44 2.439C12.3005 2.29961 12.1349 2.1891 11.9527 2.11377C11.7705 2.03844 11.5752 1.99978 11.378 2H4.5ZM9.5 7C9.03881 7.00024 8.58388 7.10681 8.17056 7.31143C7.75725 7.51605 7.39667 7.8132 7.11685 8.17981C6.83703 8.54641 6.64551 8.9726 6.55715 9.42525C6.46879 9.8779 6.48598 10.3448 6.60739 10.7897C6.7288 11.2347 6.95116 11.6456 7.25718 11.9906C7.5632 12.3357 7.94466 12.6055 8.3719 12.7792C8.79915 12.9528 9.26068 13.0257 9.72064 12.992C10.1806 12.9583 10.6266 12.819 11.024 12.585L12.22 13.78C12.2887 13.8537 12.3715 13.9128 12.4635 13.9538C12.5555 13.9948 12.6548 14.0168 12.7555 14.0186C12.8562 14.0204 12.9562 14.0018 13.0496 13.9641C13.143 13.9264 13.2278 13.8703 13.299 13.799C13.3703 13.7278 13.4264 13.643 13.4641 13.5496C13.5018 13.4562 13.5204 13.3562 13.5186 13.2555C13.5168 13.1548 13.4948 13.0555 13.4538 12.9635C13.4128 12.8715 13.3537 12.7887 13.28 12.72L12.085 11.524C12.3538 11.0683 12.4972 10.5496 12.5009 10.0206C12.5045 9.49158 12.3682 8.97099 12.1057 8.51165C11.8432 8.0523 11.464 7.67053 11.0063 7.40506C10.5487 7.13958 10.029 6.99984 9.5 7Z",fill:r})]}),ae=({fill:r="currentColor",width:t="20",height:o="20"})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 20 20",fill:"none",children:[e.jsx("path",{d:"M6.5 9C6.5 8.33696 6.76339 7.70107 7.23223 7.23223C7.70107 6.76339 8.33696 6.5 9 6.5C9.66304 6.5 10.2989 6.76339 10.7678 7.23223C11.2366 7.70107 11.5 8.33696 11.5 9C11.5 9.66304 11.2366 10.2989 10.7678 10.7678C10.2989 11.2366 9.66304 11.5 9 11.5C8.33696 11.5 7.70107 11.2366 7.23223 10.7678C6.76339 10.2989 6.5 9.66304 6.5 9Z",fill:r}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 18C12.1217 18 14.1566 17.1571 15.6569 15.6569C17.1571 14.1566 18 12.1217 18 10C18 7.87827 17.1571 5.84344 15.6569 4.34315C14.1566 2.84285 12.1217 2 10 2C7.87827 2 5.84344 2.84285 4.34315 4.34315C2.84285 5.84344 2 7.87827 2 10C2 12.1217 2.84285 14.1566 4.34315 15.6569C5.84344 17.1571 7.87827 18 10 18ZM9 5C8.37415 5.0001 7.75705 5.14706 7.19833 5.42906C6.63961 5.71106 6.15485 6.12023 5.78304 6.62367C5.41124 7.12711 5.16275 7.71077 5.05756 8.32773C4.95238 8.94468 4.99343 9.5777 5.17741 10.1759C5.3614 10.7741 5.68319 11.3208 6.1169 11.772C6.55061 12.2232 7.08415 12.5663 7.67462 12.7738C8.26508 12.9813 8.89599 13.0473 9.51661 12.9666C10.1372 12.8859 10.7303 12.6606 11.248 12.309L12.72 13.78C12.7887 13.8537 12.8715 13.9128 12.9635 13.9538C13.0555 13.9948 13.1548 14.0168 13.2555 14.0186C13.3562 14.0204 13.4562 14.0018 13.5496 13.9641C13.643 13.9264 13.7278 13.8703 13.799 13.799C13.8703 13.7278 13.9264 13.643 13.9641 13.5496C14.0018 13.4562 14.0204 13.3562 14.0186 13.2555C14.0168 13.1548 13.9948 13.0555 13.9538 12.9635C13.9128 12.8715 13.8537 12.7887 13.78 12.72L12.309 11.248C12.7176 10.6467 12.9546 9.94532 12.9944 9.21939C13.0343 8.49346 12.8756 7.77039 12.5353 7.1279C12.195 6.48542 11.6861 5.94782 11.0632 5.5729C10.4403 5.19798 9.72702 4.99992 9 5Z",fill:r})]}),le=({fill:r="currentColor",width:t="20",height:o="20"})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 14 16",fill:"none",children:[e.jsx("path",{d:"M7 5V8",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M3 11V9C3 8.4477 3.4477 8 4 8H10C10.5523 8 11 8.4477 11 9V11",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M7 5C8.10457 5 9 4.10457 9 3C9 1.89543 8.10457 1 7 1C5.89543 1 5 1.89543 5 3C5 4.10457 5.89543 5 7 5Z",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M3 15C4.10457 15 5 14.1046 5 13C5 11.8954 4.10457 11 3 11C1.89543 11 1 11.8954 1 13C1 14.1046 1.89543 15 3 15Z",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M11 15C12.1046 15 13 14.1046 13 13C13 11.8954 12.1046 11 11 11C9.89543 11 9 11.8954 9 13C9 14.1046 9.89543 15 11 15Z",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),se=({fill:r="currentColor",width:t="21",height:o="21"})=>e.jsxs("svg",{width:t,height:o,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M22.392 10.5705C21.693 5.4495 17.313 1.5 12 1.5C6.201 1.5 1.5 6.201 1.5 12C1.5 14.064 2.1045 15.9825 3.132 17.6055L1.5 22.5L6.3945 20.868C7.6395 21.657 9.06 22.188 10.584 22.3965",stroke:r,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M17.625 12.75L18.75 16.5L22.5 17.625L18.75 18.75L17.625 22.5L16.5 18.75L12.75 17.625L16.5 16.5L17.625 12.75Z",fill:r,stroke:r,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]}),de=({fill:r="currentColor",width:t="20",height:o="20"})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 14 14",fill:"none",children:[e.jsx("path",{d:"M13 1H1",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M7 13V1",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),ce=({fill:r="currentColor",width:t="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{d:"M11.2502 1C12.769 1 14.0002 2.23122 14.0002 3.75V4.19238C14.7954 4.26939 15.5841 4.3694 16.3655 4.49121C16.7747 4.555 17.0551 4.93847 16.9914 5.34766C16.9276 5.75685 16.5442 6.0373 16.135 5.97363C16.0856 5.96593 16.036 5.95771 15.9865 5.9502L15.1448 16.4697C15.0302 17.8987 13.8371 19 12.4035 19H7.5969C6.16331 19 4.97024 17.8987 4.85569 16.4697L4.01389 5.9502C3.96456 5.9577 3.91473 5.96595 3.86545 5.97363C3.45635 6.03717 3.07279 5.75678 3.00901 5.34766C2.94536 4.93848 3.2258 4.555 3.63499 4.49121C4.41637 4.3694 5.205 4.2694 6.00022 4.19238V3.75C6.00022 2.23122 7.23144 1 8.75022 1H11.2502ZM7.80002 7.00098C7.41217 7.01665 7.10455 7.32382 7.08127 7.70312V7.78027L7.38108 15.2803C7.39779 15.694 7.74659 16.0156 8.16038 15.999C8.57421 15.9824 8.89666 15.6336 8.8801 15.2197L8.57932 7.71973L8.57249 7.64355C8.51897 7.26722 8.18803 6.98546 7.80002 7.00098ZM12.2004 7.00098C11.7866 6.98443 11.4378 7.30599 11.4211 7.71973L11.1213 15.2197C11.1048 15.6335 11.4263 15.9823 11.8401 15.999C12.2538 16.0156 12.6026 15.694 12.6194 15.2803L12.9201 7.78027C12.9367 7.36644 12.6142 7.01761 12.2004 7.00098ZM8.75022 2.5C8.05986 2.5 7.50022 3.05964 7.50022 3.75V4.0752C8.32725 4.02543 9.16083 4 10.0002 4C10.8396 4 11.6732 4.02544 12.5002 4.0752V3.75C12.5002 3.05964 11.9406 2.5 11.2502 2.5H8.75022Z",fill:r})}),he=({fill:r="currentColor",width:t="16",height:o="16"})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:o,viewBox:"0 0 16 16",fill:"none",children:[e.jsx("path",{d:"M3.75 2C2.7835 2 2 2.7835 2 3.75V5.25C2 5.66421 2.33579 6 2.75 6C3.16421 6 3.5 5.66421 3.5 5.25V3.75C3.5 3.61193 3.61193 3.5 3.75 3.5H5.25C5.66421 3.5 6 3.16421 6 2.75C6 2.33579 5.66421 2 5.25 2H3.75Z",fill:r}),e.jsx("path",{d:"M10.75 2C10.3358 2 10 2.33579 10 2.75C10 3.16421 10.3358 3.5 10.75 3.5H12.25C12.3881 3.5 12.5 3.61193 12.5 3.75V5.25C12.5 5.66421 12.8358 6 13.25 6C13.6642 6 14 5.66421 14 5.25V3.75C14 2.7835 13.2165 2 12.25 2H10.75Z",fill:r}),e.jsx("path",{d:"M3.5 10.75C3.5 10.3358 3.16421 10 2.75 10C2.33579 10 2 10.3358 2 10.75V12.25C2 13.2165 2.7835 14 3.75 14H5.25C5.66421 14 6 13.6642 6 13.25C6 12.8358 5.66421 12.5 5.25 12.5H3.75C3.61193 12.5 3.5 12.3881 3.5 12.25V10.75Z",fill:r}),e.jsx("path",{d:"M14 10.75C14 10.3358 13.6642 10 13.25 10C12.8358 10 12.5 10.3358 12.5 10.75V12.25C12.5 12.3881 12.3881 12.5 12.25 12.5H10.75C10.3358 12.5 10 12.8358 10 13.25C10 13.6642 10.3358 14 10.75 14H12.25C13.2165 14 14 13.2165 14 12.25V10.75Z",fill:r}),e.jsx("path",{d:"M8 10C9.10457 10 10 9.10457 10 8C10 6.89543 9.10457 6 8 6C6.89543 6 6 6.89543 6 8C6 9.10457 6.89543 10 8 10Z",fill:r})]});var pe;exports.IconName=void 0,(pe=exports.IconName||(exports.IconName={})).BARS_3_BOTTOM_LEFT="bars-3-bottom-left",pe.BUILDING="building",pe.BULK_CHECK="bulk-check",pe.CHECK="check",pe.CHECK_CIRCLE="check-circle",pe.CHECK_SQUARE="check-square",pe.CHEVRON_DOWN="chevron-down",pe.CLOSE="close",pe.CODE="code",pe.COMPUTER="computer",pe.COPY="copy",pe.CUBE="cube",pe.DATABASE="database",pe.EXCLAMATION_CIRCLE="exclamation-circle",pe.EXCLAMATION_TRIANGLE="exclamation-triangle",pe.GEAR="gear",pe.GLobe="globe",pe.HASHTAG="hashtag",pe.HOME="home",pe.INBOX="inbox",pe.INFORMATION_CIRCLE="information-circle",pe.INFORMATION_CIRCLE_MICRO="information-circle-micro",pe.LAMP="lamp",pe.LOCK_OPEN="lock-open",pe.MINUS="minus",pe.PAPER_PLANE="paper-plane",pe.PENCIL="pencil",pe.PIE_CHART="pie-chart",pe.PIPELINE="pipeline",pe.PLUS="plus",pe.PROFILE="profile",pe.QUESTION_CIRCLE="question-circle",pe.ROCKET_LAUNCH="rocket-launch",pe.SEARCH="search",pe.SEARCH_DOCUMENT="search-document",pe.SEARCH_SQL="search-sql",pe.SITEMAP="sitemap",pe.TETRASCIENCE_ICON="tetrascience-icon",pe.TEXT="text",pe.TRASH="trash",pe.VIEWFINDER_CIRCLE="viewfinder-circle";const xe=r=>{let t=null;const{name:o}=r;switch(o){case exports.IconName.BARS_3_BOTTOM_LEFT:t=e.jsx(L,{...r});break;case exports.IconName.BUILDING:t=e.jsx(E,{...r});break;case exports.IconName.BULK_CHECK:t=e.jsx(I,{...r});break;case exports.IconName.CHECK:t=e.jsx(N,{...r});break;case exports.IconName.CHECK_CIRCLE:t=e.jsx(M,{...r});break;case exports.IconName.CHECK_SQUARE:t=e.jsx(A,{...r});break;case exports.IconName.CHEVRON_DOWN:t=e.jsx(R,{...r});break;case exports.IconName.CLOSE:t=e.jsx(_,{...r});break;case exports.IconName.CODE:t=e.jsx(B,{...r});break;case exports.IconName.COMPUTER:t=e.jsx(H,{...r});break;case exports.IconName.COPY:t=e.jsx(z,{...r});break;case exports.IconName.CUBE:t=e.jsx(T,{...r});break;case exports.IconName.DATABASE:t=e.jsx(S,{...r});break;case exports.IconName.EXCLAMATION_CIRCLE:t=e.jsx($,{...r});break;case exports.IconName.EXCLAMATION_TRIANGLE:t=e.jsx(P,{...r});break;case exports.IconName.GEAR:t=e.jsx(O,{...r});break;case exports.IconName.GLobe:t=e.jsx(V,{...r});break;case exports.IconName.HASHTAG:t=e.jsx(D,{...r});break;case exports.IconName.HOME:t=e.jsx(U,{...r});break;case exports.IconName.INBOX:t=e.jsx(G,{...r});break;case exports.IconName.INFORMATION_CIRCLE:t=e.jsx(Z,{...r});break;case exports.IconName.INFORMATION_CIRCLE_MICRO:t=e.jsx(W,{...r});break;case exports.IconName.LAMP:t=e.jsx(K,{...r});break;case exports.IconName.LOCK_OPEN:t=e.jsx(Y,{...r});break;case exports.IconName.MINUS:t=e.jsx(F,{...r});break;case exports.IconName.PAPER_PLANE:t=e.jsx(X,{...r});break;case exports.IconName.PENCIL:t=e.jsx(q,{...r});break;case exports.IconName.PIE_CHART:t=e.jsx(Q,{...r});break;case exports.IconName.PIPELINE:t=e.jsx(J,{...r});break;case exports.IconName.PLUS:t=e.jsx(ee,{...r});break;case exports.IconName.PROFILE:t=e.jsx(re,{...r});break;case exports.IconName.QUESTION_CIRCLE:t=e.jsx(te,{...r});break;case exports.IconName.ROCKET_LAUNCH:t=e.jsx(oe,{...r});break;case exports.IconName.SEARCH:t=e.jsx(ie,{...r});break;case exports.IconName.SEARCH_DOCUMENT:t=e.jsx(ne,{...r});break;case exports.IconName.SEARCH_SQL:t=e.jsx(ae,{...r});break;case exports.IconName.SITEMAP:t=e.jsx(le,{...r});break;case exports.IconName.TETRASCIENCE_ICON:t=e.jsx(se,{...r});break;case exports.IconName.TEXT:t=e.jsx(de,{...r});break;case exports.IconName.TRASH:t=e.jsx(ce,{...r});break;case exports.IconName.VIEWFINDER_CIRCLE:t=e.jsx(he,{...r});break;default:throw`[Icon] name "${o}" does not exist`}return e.jsx("div",{style:{display:"inline-flex"},children:t})},ge=r.label`
|
|
204
|
+
`,j=({fill:t="currentColor",width:r="20",height:o="20"})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 20 20",fill:"none",children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 4.75C2 4.33579 2.33579 4 2.75 4H17.25C17.6642 4 18 4.33579 18 4.75C18 5.16421 17.6642 5.5 17.25 5.5H2.75C2.33579 5.5 2 5.16421 2 4.75ZM2 15.25C2 14.8358 2.33579 14.5 2.75 14.5H10.25C10.6642 14.5 11 14.8358 11 15.25C11 15.6642 10.6642 16 10.25 16H2.75C2.33579 16 2 15.6642 2 15.25Z",fill:t}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 10C2 9.58579 2.33579 9.25 2.75 9.25H17.25C17.6642 9.25 18 9.58579 18 10C18 10.4142 17.6642 10.75 17.25 10.75H2.75C2.33579 10.75 2 10.4142 2 10Z",fill:t})]}),M=({fill:t="currentColor",width:r="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 16.5V3.5H3.75C3.55109 3.5 3.36032 3.42098 3.21967 3.28033C3.07902 3.13968 3 2.94891 3 2.75C3 2.55109 3.07902 2.36032 3.21967 2.21967C3.36032 2.07902 3.55109 2 3.75 2H16.25C16.4489 2 16.6397 2.07902 16.7803 2.21967C16.921 2.36032 17 2.55109 17 2.75C17 2.94891 16.921 3.13968 16.7803 3.28033C16.6397 3.42098 16.4489 3.5 16.25 3.5H16V16.5H16.25C16.4489 16.5 16.6397 16.579 16.7803 16.7197C16.921 16.8603 17 17.0511 17 17.25C17 17.4489 16.921 17.6397 16.7803 17.7803C16.6397 17.921 16.4489 18 16.25 18H12.75C12.5511 18 12.3603 17.921 12.2197 17.7803C12.079 17.6397 12 17.4489 12 17.25V14.75C12 14.5511 11.921 14.3603 11.7803 14.2197C11.6397 14.079 11.4489 14 11.25 14H8.75C8.55109 14 8.36032 14.079 8.21967 14.2197C8.07902 14.3603 8 14.5511 8 14.75V17.25C8 17.4489 7.92098 17.6397 7.78033 17.7803C7.63968 17.921 7.44891 18 7.25 18H3.75C3.55109 18 3.36032 17.921 3.21967 17.7803C3.07902 17.6397 3 17.4489 3 17.25C3 17.0511 3.07902 16.8603 3.21967 16.7197C3.36032 16.579 3.55109 16.5 3.75 16.5H4ZM7 5.5C7 5.36739 7.05268 5.24021 7.14645 5.14645C7.24021 5.05268 7.36739 5 7.5 5H8.5C8.63261 5 8.75979 5.05268 8.85355 5.14645C8.94732 5.24021 9 5.36739 9 5.5V6.5C9 6.63261 8.94732 6.75979 8.85355 6.85355C8.75979 6.94732 8.63261 7 8.5 7H7.5C7.36739 7 7.24021 6.94732 7.14645 6.85355C7.05268 6.75979 7 6.63261 7 6.5V5.5ZM7.5 9C7.36739 9 7.24021 9.05268 7.14645 9.14645C7.05268 9.24021 7 9.36739 7 9.5V10.5C7 10.6326 7.05268 10.7598 7.14645 10.8536C7.24021 10.9473 7.36739 11 7.5 11H8.5C8.63261 11 8.75979 10.9473 8.85355 10.8536C8.94732 10.7598 9 10.6326 9 10.5V9.5C9 9.36739 8.94732 9.24021 8.85355 9.14645C8.75979 9.05268 8.63261 9 8.5 9H7.5ZM11 5.5C11 5.36739 11.0527 5.24021 11.1464 5.14645C11.2402 5.05268 11.3674 5 11.5 5H12.5C12.6326 5 12.7598 5.05268 12.8536 5.14645C12.9473 5.24021 13 5.36739 13 5.5V6.5C13 6.63261 12.9473 6.75979 12.8536 6.85355C12.7598 6.94732 12.6326 7 12.5 7H11.5C11.3674 7 11.2402 6.94732 11.1464 6.85355C11.0527 6.75979 11 6.63261 11 6.5V5.5ZM11.5 9C11.3674 9 11.2402 9.05268 11.1464 9.14645C11.0527 9.24021 11 9.36739 11 9.5V10.5C11 10.6326 11.0527 10.7598 11.1464 10.8536C11.2402 10.9473 11.3674 11 11.5 11H12.5C12.6326 11 12.7598 10.9473 12.8536 10.8536C12.9473 10.7598 13 10.6326 13 10.5V9.5C13 9.36739 12.9473 9.24021 12.8536 9.14645C12.7598 9.05268 12.6326 9 12.5 9H11.5Z",fill:t})}),I=({fill:t="currentColor",width:r="20",height:o="20"})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 20 20",fill:"none",children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.997 5.25C17.9972 4.69436 17.7917 4.15832 17.4202 3.74512C17.0488 3.33191 16.5375 3.07077 15.985 3.012C15.9262 2.45948 15.6651 1.94825 15.2519 1.57677C14.8387 1.20529 14.3026 0.999846 13.747 1H12.247C11.6914 0.999846 11.1553 1.20529 10.7421 1.57677C10.3289 1.94825 10.0678 2.45948 10.009 3.012C9.134 3.104 8.409 3.698 8.125 4.5H10.997C11.66 4.5 12.2959 4.76339 12.7648 5.23223C13.2336 5.70107 13.497 6.33696 13.497 7V14H15.747C16.3437 14 16.916 13.7629 17.338 13.341C17.7599 12.919 17.997 12.3467 17.997 11.75V5.25ZM12.247 2.5C12.0481 2.5 11.8573 2.57902 11.7167 2.71967C11.576 2.86032 11.497 3.05109 11.497 3.25V3.5H14.497V3.25C14.497 3.05109 14.418 2.86032 14.2773 2.71967C14.1367 2.57902 13.9459 2.5 13.747 2.5H12.247Z",fill:t}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 6C2.73478 6 2.48043 6.10536 2.29289 6.29289C2.10536 6.48043 2 6.73478 2 7V17C2 17.2652 2.10536 17.5196 2.29289 17.7071C2.48043 17.8946 2.73478 18 3 18H11C11.2652 18 11.5196 17.8946 11.7071 17.7071C11.8946 17.5196 12 17.2652 12 17V7C12 6.73478 11.8946 6.48043 11.7071 6.29289C11.5196 6.10536 11.2652 6 11 6H3ZM9.874 10.166C9.92992 10.0841 9.96904 9.99189 9.98909 9.89475C10.0091 9.79761 10.0097 9.69746 9.99081 9.6001C9.97189 9.50273 9.93385 9.41009 9.87889 9.32752C9.82392 9.24496 9.75313 9.17412 9.6706 9.1191C9.58807 9.06408 9.49545 9.02598 9.3981 9.007C9.30075 8.98802 9.2006 8.98854 9.10345 9.00852C9.0063 9.02851 8.91407 9.06757 8.83212 9.12344C8.75017 9.1793 8.68011 9.25087 8.626 9.334L6.133 13.073L5.28 12.22C5.13783 12.0875 4.94978 12.0154 4.75548 12.0188C4.56118 12.0223 4.37579 12.101 4.23838 12.2384C4.10097 12.3758 4.02225 12.5612 4.01883 12.7555C4.0154 12.9498 4.08752 13.1378 4.22 13.28L5.72 14.78C5.79844 14.8584 5.8933 14.9184 5.99773 14.9558C6.10217 14.9931 6.21359 15.0068 6.32396 14.9959C6.43434 14.985 6.54092 14.9498 6.63603 14.8927C6.73114 14.8357 6.81242 14.7582 6.874 14.666L9.874 10.166Z",fill:t})]}),E=({fill:t="currentColor",width:r="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.7045 4.15347C17.034 4.4045 17.0976 4.87509 16.8466 5.20457L8.84657 15.7046C8.71541 15.8767 8.51627 15.9838 8.30033 15.9983C8.08439 16.0129 7.87271 15.9334 7.71967 15.7804L3.21967 11.2804C2.92678 10.9875 2.92678 10.5126 3.21967 10.2197C3.51256 9.92682 3.98744 9.92682 4.28033 10.2197L8.17351 14.1129L15.6534 4.29551C15.9045 3.96603 16.3751 3.90243 16.7045 4.15347Z",fill:t})}),L=({fill:t="currentColor",width:r="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18ZM13.8566 8.19113C14.1002 7.85614 14.0261 7.38708 13.6911 7.14345C13.3561 6.89982 12.8871 6.97388 12.6434 7.30887L9.15969 12.099L7.28033 10.2197C6.98744 9.92678 6.51256 9.92678 6.21967 10.2197C5.92678 10.5126 5.92678 10.9874 6.21967 11.2803L8.71967 13.7803C8.87477 13.9354 9.08999 14.0149 9.30867 13.9977C9.52734 13.9805 9.72754 13.8685 9.85655 13.6911L13.8566 8.19113Z",fill:t})}),N=({fill:t="currentColor",width:r="16",height:o="16"})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 16 16",fill:"none",children:[e.jsx("path",{d:"M11.2016 1.59961H4.80156C3.03676 1.59961 1.60156 3.03481 1.60156 4.79961V11.1996C1.60156 12.9644 3.03676 14.3996 4.80156 14.3996H11.2016C12.9664 14.3996 14.4016 12.9644 14.4016 11.1996V4.79961C14.4016 3.03481 12.9664 1.59961 11.2016 1.59961Z",fill:t}),e.jsx("path",{d:"M7.63305 10.8968L11.4331 6.09685C11.7075 5.75045 11.6491 5.24725 11.3027 4.97285C10.9555 4.69925 10.4531 4.75845 10.1787 5.10405L6.96665 9.16085L5.80025 7.86485C5.50425 7.53685 4.99945 7.50965 4.67065 7.80565C4.34265 8.10085 4.31625 8.60645 4.61145 8.93525L6.41145 10.9352C6.56265 11.104 6.77945 11.2 7.00585 11.2H7.03065C7.26665 11.1928 7.48665 11.0816 7.63305 10.8968Z",fill:"white"})]}),_=({fill:t="currentColor",width:r="20",height:o="20"})=>e.jsx("svg",{width:r,height:o,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.21967 8.21967C5.51256 7.92678 5.98744 7.92678 6.28033 8.21967L10 11.9393L13.7197 8.21967C14.0126 7.92678 14.4874 7.92678 14.7803 8.21967C15.0732 8.51256 15.0732 8.98744 14.7803 9.28033L10.5303 13.5303C10.3897 13.671 10.1989 13.75 10 13.75C9.80109 13.75 9.61032 13.671 9.46967 13.5303L5.21967 9.28033C4.92678 8.98744 4.92678 8.51256 5.21967 8.21967Z",fill:t})}),A=({fill:t="currentColor",width:r="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{d:"M3.75 3.75L16.25 16.25M16.25 3.75L3.75 16.25",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),T=({fill:t="currentColor",width:r="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.25 2C3.65326 2 3.08097 2.23705 2.65901 2.65901C2.23705 3.08097 2 3.65326 2 4.25V15.75C2 16.3467 2.23705 16.919 2.65901 17.341C3.08097 17.7629 3.65326 18 4.25 18H15.75C16.3467 18 16.919 17.7629 17.341 17.341C17.7629 16.919 18 16.3467 18 15.75V4.25C18 3.65326 17.7629 3.08097 17.341 2.65901C16.919 2.23705 16.3467 2 15.75 2H4.25ZM8.28 8.28C8.41248 8.13783 8.4846 7.94978 8.48118 7.75548C8.47775 7.56118 8.39903 7.37579 8.26162 7.23838C8.12421 7.10097 7.93882 7.02225 7.74452 7.01883C7.55022 7.0154 7.36217 7.08752 7.22 7.22L4.97 9.47C4.82955 9.61063 4.75066 9.80125 4.75066 10C4.75066 10.1988 4.82955 10.3894 4.97 10.53L7.22 12.78C7.36217 12.9125 7.55022 12.9846 7.74452 12.9812C7.93882 12.9777 8.12421 12.899 8.26162 12.7616C8.39903 12.6242 8.47775 12.4388 8.48118 12.2445C8.4846 12.0502 8.41248 11.8622 8.28 11.72L6.56 10L8.28 8.28ZM12.78 7.22C12.7113 7.14631 12.6285 7.08721 12.5365 7.04622C12.4445 7.00523 12.3452 6.98319 12.2445 6.98141C12.1438 6.97963 12.0438 6.99816 11.9504 7.03588C11.857 7.0736 11.7722 7.12974 11.701 7.20096C11.6297 7.27218 11.5736 7.35701 11.5359 7.4504C11.4982 7.54379 11.4796 7.64382 11.4814 7.74452C11.4832 7.84523 11.5052 7.94454 11.5462 8.03654C11.5872 8.12854 11.6463 8.21134 11.72 8.28L13.44 10L11.72 11.72C11.6463 11.7887 11.5872 11.8715 11.5462 11.9635C11.5052 12.0555 11.4832 12.1548 11.4814 12.2555C11.4796 12.3562 11.4982 12.4562 11.5359 12.5496C11.5736 12.643 11.6297 12.7278 11.701 12.799C11.7722 12.8703 11.857 12.9264 11.9504 12.9641C12.0438 13.0018 12.1438 13.0204 12.2445 13.0186C12.3452 13.0168 12.4445 12.9948 12.5365 12.9538C12.6285 12.9128 12.7113 12.8537 12.78 12.78L15.03 10.53C15.1705 10.3894 15.2493 10.1988 15.2493 10C15.2493 9.80125 15.1705 9.61063 15.03 9.47L12.78 7.22Z",fill:t})}),R=({fill:t="currentColor",width:r="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 4.25C2 3.65326 2.23705 3.08097 2.65901 2.65901C3.08097 2.23705 3.65326 2 4.25 2H15.75C16.3467 2 16.919 2.23705 17.341 2.65901C17.7629 3.08097 18 3.65326 18 4.25V12.75C18 13.3467 17.7629 13.919 17.341 14.341C16.919 14.7629 16.3467 15 15.75 15H12.645C12.8403 15.6543 13.2226 16.2372 13.745 16.677C13.8625 16.7762 13.9467 16.9092 13.9861 17.0579C14.0255 17.2065 14.0182 17.3637 13.9653 17.5081C13.9123 17.6526 13.8163 17.7772 13.6901 17.8652C13.564 17.9532 13.4138 18.0002 13.26 18H6.74C6.58628 18 6.43627 17.9528 6.31027 17.8647C6.18427 17.7767 6.08838 17.652 6.03557 17.5077C5.98275 17.3633 5.97557 17.2062 6.015 17.0576C6.05443 16.9091 6.13856 16.7762 6.256 16.677C6.77799 16.2371 7.15999 15.6542 7.355 15H4.25C3.65326 15 3.08097 14.7629 2.65901 14.341C2.23705 13.919 2 13.3467 2 12.75V4.25ZM3.5 4.25C3.5 4.05109 3.57902 3.86032 3.71967 3.71967C3.86032 3.57902 4.05109 3.5 4.25 3.5H15.75C15.9489 3.5 16.1397 3.57902 16.2803 3.71967C16.421 3.86032 16.5 4.05109 16.5 4.25V11.75C16.5 11.9489 16.421 12.1397 16.2803 12.2803C16.1397 12.421 15.9489 12.5 15.75 12.5H4.25C4.05109 12.5 3.86032 12.421 3.71967 12.2803C3.57902 12.1397 3.5 11.9489 3.5 11.75V4.25Z",fill:t})}),$=({fill:t="currentColor",width:r="20",height:o="20"})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 20 20",fill:"none",children:[e.jsx("path",{d:"M2 4.25C2 3.00736 3.00736 2 4.25 2H10.75C11.9926 2 13 3.00736 13 4.25V5.5H9.25C7.17893 5.5 5.5 7.17893 5.5 9.25V13H4.25C3.00736 13 2 11.9926 2 10.75V4.25Z",fill:t}),e.jsx("path",{d:"M9.25 7C8.00736 7 7 8.00736 7 9.25V15.75C7 16.9926 8.00736 18 9.25 18H15.75C16.9926 18 18 16.9926 18 15.75V9.25C18 8.00736 16.9926 7 15.75 7H9.25Z",fill:t})]}),S=({fill:t="currentColor",width:r="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{d:"M10.362 1.093C10.2511 1.0319 10.1266 0.999851 10 0.999851C9.87341 0.999851 9.74887 1.0319 9.638 1.093L2.523 5.018L10 9.143L17.477 5.018L10.362 1.093ZM18 6.443L10.75 10.443V18.693L17.612 14.907C17.7295 14.8422 17.8275 14.7471 17.8958 14.6315C17.964 14.516 18 14.3842 18 14.25V6.443ZM9.25 18.693V10.443L2 6.443V14.25C1.99997 14.3842 2.03596 14.516 2.10421 14.6315C2.17245 14.7471 2.27046 14.8422 2.388 14.907L9.25 18.693Z",fill:t})}),z=({fill:t="currentColor",width:r="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 1C13.866 1 17 2.79 17 5C17 7.21 13.866 9 10 9C6.134 9 3 7.21 3 5C3 2.79 6.134 1 10 1ZM15.694 9.13C16.158 8.866 16.604 8.547 17 8.178V10C17 12.21 13.866 14 10 14C6.134 14 3 12.21 3 10V8.178C3.396 8.548 3.842 8.866 4.306 9.131C5.838 10.006 7.854 10.5 10 10.5C12.146 10.5 14.162 10.006 15.694 9.13ZM3 13.179V15C3 17.21 6.134 19 10 19C13.866 19 17 17.21 17 15V13.178C16.604 13.548 16.158 13.866 15.694 14.131C14.162 15.006 12.146 15.5 10 15.5C7.854 15.5 5.838 15.006 4.306 14.13C3.83547 13.8644 3.39722 13.5453 3 13.179Z",fill:t})}),B=({fill:t="currentColor",width:r="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10ZM10 5C10.4142 5 10.75 5.33579 10.75 5.75V10.25C10.75 10.6642 10.4142 11 10 11C9.58579 11 9.25 10.6642 9.25 10.25V5.75C9.25 5.33579 9.58579 5 10 5ZM10 15C10.5523 15 11 14.5523 11 14C11 13.4477 10.5523 13 10 13C9.44771 13 9 13.4477 9 14C9 14.5523 9.44771 15 10 15Z",fill:t})}),H=({fill:t="currentColor",width:r="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.4845 2.49499C9.15808 1.32833 10.842 1.32833 11.5156 2.495L17.7943 13.37C18.4678 14.5367 17.6259 15.995 16.2787 15.995H3.72136C2.37421 15.995 1.53224 14.5367 2.20582 13.37L8.4845 2.49499ZM10 5C10.4142 5 10.75 5.33579 10.75 5.75V9.25C10.75 9.66421 10.4142 10 10 10C9.58579 10 9.25 9.66421 9.25 9.25L9.25 5.75C9.25 5.33579 9.58579 5 10 5ZM10 14C10.5523 14 11 13.5523 11 13C11 12.4477 10.5523 12 10 12C9.44772 12 9 12.4477 9 13C9 13.5523 9.44772 14 10 14Z",fill:t})}),O=({fill:t="currentColor",width:r="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.84288 1.804C7.88817 1.57739 8.01055 1.37346 8.18921 1.22689C8.36787 1.08031 8.59178 1.00014 8.82288 1H11.1829C11.414 1.00014 11.6379 1.08031 11.8165 1.22689C11.9952 1.37346 12.1176 1.57739 12.1629 1.804L12.4939 3.456C13.1923 3.72219 13.8436 4.09863 14.4229 4.571L16.0209 4.031C16.2398 3.95702 16.4775 3.96112 16.6937 4.04261C16.9099 4.1241 17.0913 4.27795 17.2069 4.478L18.3869 6.522C18.5025 6.72209 18.5453 6.95607 18.5079 7.18413C18.4706 7.4122 18.3553 7.62029 18.1819 7.773L16.9149 8.886C17.033 9.62397 17.033 10.376 16.9149 11.114L18.1819 12.227C18.3553 12.3795 18.4705 12.5874 18.5081 12.8152C18.5456 13.0431 18.5031 13.2769 18.3879 13.477L17.2079 15.522C17.0922 15.7223 16.9107 15.8763 16.6943 15.9578C16.4779 16.0393 16.2399 16.0432 16.0209 15.969L14.4229 15.429C13.8436 15.9014 13.1923 16.2778 12.4939 16.544L12.1639 18.196C12.1186 18.4226 11.9962 18.6265 11.8175 18.7731C11.6389 18.9197 11.415 18.9999 11.1839 19H8.82288C8.59178 18.9999 8.36787 18.9197 8.18921 18.7731C8.01055 18.6265 7.88817 18.4226 7.84288 18.196L7.51188 16.544C6.81342 16.2778 6.16215 15.9014 5.58288 15.429L3.98488 15.969C3.76598 16.043 3.52823 16.0389 3.31202 15.9574C3.09581 15.8759 2.91449 15.7221 2.79888 15.522L1.61888 13.478C1.50322 13.2779 1.46045 13.0439 1.49782 12.8159C1.53519 12.5878 1.65041 12.3797 1.82388 12.227L3.09088 11.113C2.97289 10.3754 2.97289 9.62364 3.09088 8.886L1.82388 7.773C1.65049 7.62047 1.53524 7.41264 1.49769 7.18478C1.46014 6.95693 1.5026 6.7231 1.61788 6.523L2.79788 4.478C2.91352 4.27773 3.09501 4.12373 3.31144 4.04223C3.52787 3.96073 3.76585 3.95676 3.98488 4.031L5.58288 4.571C6.16245 4.09852 6.81406 3.72207 7.51288 3.456L7.84288 1.804ZM10.0029 13C10.7985 13 11.5616 12.6839 12.1242 12.1213C12.6868 11.5587 13.0029 10.7956 13.0029 10C13.0029 9.20435 12.6868 8.44129 12.1242 7.87868C11.5616 7.31607 10.7985 7 10.0029 7C9.20723 7 8.44416 7.31607 7.88156 7.87868C7.31895 8.44129 7.00288 9.20435 7.00288 10C7.00288 10.7956 7.31895 11.5587 7.88156 12.1213C8.44416 12.6839 9.20723 13 10.0029 13Z",fill:t})}),P=({fill:t="currentColor",width:r="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10ZM16.4969 10.2041C16.389 13.6995 13.5216 16.5 10 16.5C6.41015 16.5 3.5 13.5899 3.5 10C3.5 7.12656 5.36451 4.68861 7.94969 3.82998L6.92671 5.62019C6.60171 6.18894 6.69759 6.90485 7.16078 7.36805C7.6029 7.81017 8.27833 7.91977 8.83757 7.64015L9.0123 7.55279C9.08173 7.51807 9.15829 7.5 9.23591 7.5H9.38181C9.5712 7.5 9.74433 7.607 9.82902 7.77639C9.8994 7.91716 9.8994 8.08284 9.82902 8.22361L9.80123 8.27919C9.73357 8.41452 9.59525 8.5 9.44395 8.5H8.9418C8.18614 8.5 7.48048 8.87766 7.06131 9.50641L7.01751 9.57212C6.65828 10.111 6.56795 10.7855 6.77274 11.3998C6.98201 12.0276 7.47787 12.5197 8.10338 12.7282C8.33997 12.8071 8.49984 13.0292 8.49984 13.2749V14.3246C8.49984 14.9738 9.02608 15.5 9.67523 15.5C10.0323 15.5 10.37 15.3377 10.5931 15.0589L12.2044 13.0446C12.3957 12.8056 12.4998 12.5086 12.4998 12.2025C12.4998 11.8866 12.6279 11.5791 12.8531 11.3539C13.3088 10.8982 13.3864 10.1784 13.0257 9.63738L12.5617 8.94145C12.5214 8.88091 12.4998 8.80979 12.4998 8.73703C12.4998 8.43336 12.8465 8.26002 13.0895 8.44222L13.4322 8.69925C13.748 8.93609 14.1704 8.97373 14.523 8.79746C14.7488 8.68456 15.0216 8.72887 15.1996 8.90689L16.4969 10.2041Z",fill:t})}),D=({fill:t="currentColor",width:r="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{d:"M13.3516 2.00712C13.7619 2.06371 14.0488 2.44249 13.9922 2.85282L13.5576 6.00028H16.6973C17.1115 6.00028 17.4473 6.33607 17.4473 6.75028C17.4473 7.16448 17.1115 7.50028 16.6973 7.50028H13.3516L12.6611 12.5003H15.8008C16.215 12.5003 16.5508 12.8361 16.5508 13.2503C16.5508 13.6645 16.215 14.0003 15.8008 14.0003H12.4551L11.9922 17.3528C11.9356 17.7631 11.5568 18.05 11.1465 17.9934C10.7362 17.9368 10.4493 17.558 10.5059 17.1477L10.9404 14.0003H7.95508L7.49219 17.3528C7.43556 17.7631 7.05679 18.05 6.64648 17.9934C6.23622 17.9368 5.94927 17.558 6.00586 17.1477L6.44043 14.0003H3.30078C2.88658 14.0003 2.5508 13.6645 2.55078 13.2503C2.55078 12.8361 2.88657 12.5003 3.30078 12.5003H6.64648L7.33691 7.50028H4.19727C3.78309 7.50024 3.44728 7.16446 3.44727 6.75028C3.44727 6.33609 3.78308 6.00032 4.19727 6.00028H7.54297L8.00586 2.64774C8.06245 2.23743 8.44125 1.95055 8.85156 2.00712C9.26189 2.06371 9.54878 2.44249 9.49219 2.85282L9.05762 6.00028H12.043L12.5059 2.64774C12.5625 2.23743 12.9413 1.95055 13.3516 2.00712ZM8.85156 7.50028L8.16113 12.5003H11.1465L11.8369 7.50028H8.85156Z",fill:t})}),V=({fill:t="currentColor",width:r="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.29292 2.29289C9.68345 1.90237 10.3166 1.90237 10.7071 2.29289L17.7071 9.29289C17.9931 9.57889 18.0787 10.009 17.9239 10.3827C17.7691 10.7564 17.4045 11 17 11H16V17C16 17.5523 15.5523 18 15 18H13C12.4477 18 12 17.5523 12 17V14C12 13.4477 11.5523 13 11 13H9.00003C8.44774 13 8.00003 13.4477 8.00003 14V17C8.00003 17.5523 7.55231 18 7.00003 18H5.00003C4.44774 18 4.00003 17.5523 4.00003 17V11H3.00003C2.59557 11 2.23093 10.7564 2.07615 10.3827C1.92137 10.009 2.00692 9.57889 2.29292 9.29289L9.29292 2.29289Z",fill:t})}),U=({fill:t="currentColor",width:r="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 40 40",fill:"none",children:e.jsx("path",{d:"M3.75 22.5H10.1824C11.6028 22.5 12.9013 23.3025 13.5365 24.5729L13.9635 25.4271C14.5987 26.6975 15.8972 27.5 17.3176 27.5H22.6824C24.1028 27.5 25.4013 26.6975 26.0365 25.4271L26.4635 24.5729C27.0987 23.3025 28.3972 22.5 29.8176 22.5H36.25M3.75 23.0639V30C3.75 32.0711 5.42893 33.75 7.5 33.75H32.5C34.5711 33.75 36.25 32.0711 36.25 30V23.0639C36.25 22.6901 36.1941 22.3183 36.0842 21.9611L32.0645 8.89718C31.5804 7.32371 30.1266 6.25 28.4803 6.25H11.5197C9.87339 6.25 8.41963 7.32371 7.93548 8.89718L3.91583 21.9611C3.80589 22.3183 3.75 22.6901 3.75 23.0639Z",stroke:t,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})}),G=({fill:t="currentColor",width:r="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{d:"M10 2C14.4183 2 18 5.58172 18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2ZM9 9C8.58579 9 8.25 9.33579 8.25 9.75C8.25 10.1642 8.58579 10.5 9 10.5H9.25293C9.41287 10.5 9.53176 10.6486 9.49707 10.8047L9.03809 12.8701C8.79522 13.963 9.62751 15 10.7471 15H11C11.4142 15 11.75 14.6642 11.75 14.25C11.75 13.8358 11.4142 13.5 11 13.5H10.7471C10.5871 13.5 10.4682 13.3514 10.5029 13.1953L10.9619 11.1299C11.2048 10.037 10.3725 9 9.25293 9H9ZM10 5C9.44771 5 9 5.44772 9 6C9 6.55228 9.44771 7 10 7C10.5523 7 11 6.55228 11 6C11 5.44772 10.5523 5 10 5Z",fill:t})}),F=({fill:t="currentColor",width:r="16",height:o="16"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8ZM9 5C9 5.55228 8.55228 6 8 6C7.44772 6 7 5.55228 7 5C7 4.44772 7.44772 4 8 4C8.55228 4 9 4.44772 9 5ZM6.75 8C6.33579 8 6 8.33579 6 8.75C6 9.16421 6.33579 9.5 6.75 9.5H7.5V11.25C7.5 11.6642 7.83579 12 8.25 12C8.66421 12 9 11.6642 9 11.25V8.75C9 8.33579 8.66421 8 8.25 8H6.75Z",fill:t})}),K=({fill:t="currentColor",width:r="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{d:"M10.0001 1C8.76409 0.99999 7.55829 1.38167 6.54746 2.09287C5.53662 2.80407 4.77008 3.81008 4.35262 4.9734C3.93516 6.13672 3.88714 7.40058 4.21512 8.59222C4.54311 9.78387 5.2311 10.8451 6.18505 11.631C7.23705 12.5 8.00005 13.443 8.00005 14.456V15.1C7.99995 15.268 8.05628 15.4312 8.16 15.5634C8.26372 15.6956 8.40883 15.7891 8.57205 15.829C9.51025 16.0582 10.4899 16.0582 11.4281 15.829C11.5913 15.7891 11.7364 15.6956 11.8401 15.5634C11.9438 15.4312 12.0001 15.268 12.0001 15.1V14.456C12.0001 13.443 12.7621 12.499 13.8151 11.631C14.769 10.8451 15.457 9.78387 15.785 8.59222C16.113 7.40058 16.0649 6.13672 15.6475 4.9734C15.23 3.81008 14.4635 2.80407 13.4526 2.09287C12.4418 1.38167 11.236 0.99999 10.0001 1ZM8.86305 17.414C8.76568 17.3992 8.66633 17.4036 8.57069 17.4272C8.47505 17.4508 8.38498 17.4929 8.30563 17.5513C8.14538 17.6691 8.03852 17.8458 8.00855 18.0425C7.97858 18.2392 8.02796 18.4397 8.14583 18.5999C8.2637 18.7602 8.44039 18.867 8.63705 18.897C9.54052 19.0344 10.4596 19.0344 11.3631 18.897C11.5597 18.867 11.7364 18.7602 11.8543 18.5999C11.9721 18.4397 12.0215 18.2392 11.9916 18.0425C11.9616 17.8458 11.8547 17.6691 11.6945 17.5513C11.5342 17.4334 11.3337 17.384 11.1371 17.414C10.3834 17.5288 9.61671 17.5288 8.86305 17.414Z",fill:t})}),Z=({fill:t="currentColor",width:r="16",height:o="16"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M11.5 1C9.567 1 8 2.567 8 4.5V7H2.5C1.67157 7 1 7.67157 1 8.5V13.5C1 14.3284 1.67157 15 2.5 15H9.5C10.3284 15 11 14.3284 11 13.5V8.5C11 7.67157 10.3284 7 9.5 7V4.5C9.5 3.39543 10.3954 2.5 11.5 2.5C12.6046 2.5 13.5 3.39543 13.5 4.5V6.25C13.5 6.66421 13.8358 7 14.25 7C14.6642 7 15 6.66421 15 6.25V4.5C15 2.567 13.433 1 11.5 1Z",fill:t})}),W=({fill:t="currentColor",width:r="16",height:o="16"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M3.75 7.25C3.33579 7.25 3 7.58579 3 8C3 8.41421 3.33579 8.75 3.75 8.75L12.25 8.75C12.6642 8.75 13 8.41421 13 8C13 7.58579 12.6642 7.25 12.25 7.25H3.75Z",fill:t})}),Y=({fill:t="currentColor",width:r="20",height:o="20"})=>e.jsx("svg",{width:r,height:o,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M3.10526 2.28868C2.85362 2.25302 2.60104 2.34722 2.43421 2.53895C2.26738 2.73068 2.209 2.99386 2.27911 3.23815L3.69276 8.16402C3.87733 8.80713 4.4655 9.25024 5.13456 9.25024H11.25C11.6642 9.25024 12 9.58603 12 10.0002C12 10.4145 11.6642 10.7502 11.25 10.7502H5.13457C4.4655 10.7502 3.87733 11.1934 3.69277 11.8365L2.27911 16.7624C2.209 17.0067 2.26738 17.2698 2.43421 17.4616C2.60104 17.6533 2.85362 17.7475 3.10526 17.7118C8.94303 16.8844 14.221 14.319 18.3983 10.5576C18.5563 10.4154 18.6465 10.2128 18.6465 10.0003C18.6465 9.7877 18.5563 9.58513 18.3983 9.4429C14.221 5.68154 8.94303 3.1161 3.10526 2.28868Z",fill:t})}),X=({fill:t="currentColor",width:r="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{d:"M2.69533 14.7623L1.43355 17.9168C1.27028 18.3249 1.67532 18.73 2.08348 18.5667L5.23795 17.3049C5.74091 17.1037 6.19777 16.8025 6.58081 16.4194L17.5 5.50072C18.3284 4.67229 18.3284 3.32914 17.5 2.50072C16.6716 1.67229 15.3284 1.67229 14.5 2.50071L3.58081 13.4194C3.19777 13.8025 2.89652 14.2593 2.69533 14.7623Z",fill:t})}),q=({fill:t="currentColor",width:r="20",height:o="20"})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 20 20",fill:"none",children:[e.jsx("path",{d:"M12 8.99908C11.7348 8.99908 11.4804 8.89372 11.2929 8.70618C11.1054 8.51865 11 8.26429 11 7.99908V2.99908C11 2.44708 11.45 1.99208 11.997 2.06908C13.4939 2.28487 14.8808 2.97941 15.9502 4.04884C17.0197 5.11828 17.7142 6.50515 17.93 8.00208C18.008 8.54908 17.552 8.99908 17 8.99908H12Z",fill:t}),e.jsx("path",{d:"M8.003 4.07083C8.55 3.99483 9 4.44982 9 5.00082V10.0008C9 10.266 9.10536 10.5204 9.29289 10.7079C9.48043 10.8955 9.73478 11.0008 10 11.0008H15C15.552 11.0008 16.008 11.4508 15.93 11.9978C15.6769 13.7491 14.77 15.3396 13.3918 16.4494C12.0135 17.5591 10.2662 18.1058 8.5012 17.9795C6.73622 17.8532 5.08455 17.0632 3.87841 15.7685C2.67226 14.4737 2.00113 12.7703 2 11.0008C2.00009 9.31693 2.60701 7.68946 3.70953 6.41668C4.81205 5.1439 6.33633 4.31107 8.003 4.07083Z",fill:t})]}),Q=({fill:t="currentColor",width:r="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.157 2.17646C7.78976 2.02451 7.37724 2.02451 7.01 2.17646L2.926 3.86646C2.65219 3.97987 2.41812 4.17185 2.25331 4.41817C2.08851 4.66448 2.00036 4.9541 2 5.25046V16.1275C1.99997 16.3742 2.06079 16.617 2.17705 16.8346C2.29332 17.0522 2.46146 17.2377 2.66656 17.3748C2.87167 17.5118 3.10741 17.5962 3.35291 17.6204C3.59841 17.6446 3.84609 17.6079 4.074 17.5135L7.584 16.0615L11.844 17.8235C12.2109 17.9751 12.6231 17.9751 12.99 17.8235L17.073 16.1335C17.3468 16.0203 17.581 15.8285 17.746 15.5824C17.911 15.3363 17.9994 15.0468 18 14.7505V3.87246C18 3.6259 17.9391 3.38315 17.8229 3.1657C17.7067 2.94824 17.5387 2.76278 17.3337 2.62574C17.1287 2.4887 16.8932 2.4043 16.6478 2.38001C16.4024 2.35571 16.1549 2.39228 15.927 2.48646L12.417 3.93846L8.157 2.17646ZM7.58 5.00046C7.77891 5.00046 7.96968 5.07948 8.11033 5.22013C8.25098 5.36079 8.33 5.55155 8.33 5.75046V12.2505C8.33 12.4494 8.25098 12.6401 8.11033 12.7808C7.96968 12.9214 7.77891 13.0005 7.58 13.0005C7.38109 13.0005 7.19032 12.9214 7.04967 12.7808C6.90902 12.6401 6.83 12.4494 6.83 12.2505V5.75046C6.83 5.55155 6.90902 5.36079 7.04967 5.22013C7.19032 5.07948 7.38109 5.00046 7.58 5.00046ZM13.17 7.75046C13.17 7.55155 13.091 7.36079 12.9503 7.22013C12.8097 7.07948 12.6189 7.00046 12.42 7.00046C12.2211 7.00046 12.0303 7.07948 11.8897 7.22013C11.749 7.36079 11.67 7.55155 11.67 7.75046V14.2505C11.67 14.4494 11.749 14.6401 11.8897 14.7808C12.0303 14.9214 12.2211 15.0005 12.42 15.0005C12.6189 15.0005 12.8097 14.9214 12.9503 14.7808C13.091 14.6401 13.17 14.4494 13.17 14.2505V7.75046Z",fill:t})}),J=({fill:t="currentColor",width:r="16",height:o="16"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{d:"M8.75 3.75C8.75 3.33579 8.41421 3 8 3C7.58579 3 7.25 3.33579 7.25 3.75V7.25H3.75C3.33579 7.25 3 7.58579 3 8C3 8.41421 3.33579 8.75 3.75 8.75L7.25 8.75V12.25C7.25 12.6642 7.58579 13 8 13C8.41421 13 8.75 12.6642 8.75 12.25V8.75L12.25 8.75C12.6642 8.75 13 8.41421 13 8C13 7.58579 12.6642 7.25 12.25 7.25H8.75V3.75Z",fill:t})}),ee=({fill:t="currentColor",width:r="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{d:"M10.0036 8C10.7993 8 11.5623 7.68393 12.1249 7.12132C12.6875 6.55871 13.0036 5.79565 13.0036 5C13.0036 4.20435 12.6875 3.44129 12.1249 2.87868C11.5623 2.31607 10.7993 2 10.0036 2C9.20797 2 8.44491 2.31607 7.8823 2.87868C7.31969 3.44129 7.00362 4.20435 7.00362 5C7.00362 5.79565 7.31969 6.55871 7.8823 7.12132C8.44491 7.68393 9.20797 8 10.0036 8ZM3.46862 14.493C3.37578 14.7411 3.36554 15.0126 3.43941 15.267C3.51329 15.5214 3.66733 15.7452 3.87862 15.905C5.62995 17.266 7.7856 18.0034 10.0036 18C12.3136 18 14.4416 17.216 16.1346 15.9C16.5646 15.567 16.7386 14.997 16.5426 14.49C16.0349 13.168 15.1382 12.0311 13.9709 11.2292C12.8037 10.4274 11.4207 9.99829 10.0046 9.99861C8.58845 9.99894 7.20569 10.4287 6.03881 11.231C4.87193 12.0334 3.97578 13.1708 3.46862 14.493Z",fill:t})}),te=({fill:t="currentColor",width:r="16",height:o="16"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 16 16",fill:"none",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8ZM9 11.5C9 12.0523 8.55228 12.5 8 12.5C7.44772 12.5 7 12.0523 7 11.5C7 10.9477 7.44772 10.5 8 10.5C8.55228 10.5 9 10.9477 9 11.5ZM7.29303 5.29289C7.68355 4.90237 8.31671 4.90237 8.70724 5.29289C9.09776 5.68342 9.09776 6.31658 8.70724 6.70711C8.58354 6.83081 8.43743 6.91429 8.2827 6.95959C7.82404 7.09387 7.25013 7.52576 7.25013 8.25V8.50022C7.25013 8.91444 7.58592 9.25022 8.00013 9.25022C8.41435 9.25022 8.75013 8.91444 8.75013 8.50022V8.38522C9.12313 8.26818 9.47391 8.06176 9.7679 7.76777C10.7442 6.79146 10.7442 5.20854 9.7679 4.23223C8.79159 3.25592 7.20868 3.25592 6.23237 4.23223C5.93947 4.52513 5.93947 5 6.23237 5.29289C6.52526 5.58579 7.00013 5.58579 7.29303 5.29289Z",fill:t})}),re=({fill:t="currentColor",width:r="20",height:o="20"})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 20 20",fill:"none",children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.60597 12.9691C4.85946 13.2967 4.79938 13.7678 4.47179 14.0213C3.87925 14.4798 3.5 15.1954 3.5 16C3.5 16.1569 3.51437 16.31 3.54177 16.4582C3.68996 16.4856 3.84307 16.5 4 16.5C4.80458 16.5 5.52023 16.1208 5.97873 15.5282C6.23222 15.2006 6.70328 15.1405 7.03087 15.394C7.35846 15.6475 7.41854 16.1186 7.16505 16.4462C6.4347 17.39 5.2884 18 4 18C3.54003 18 3.09667 17.9221 2.6834 17.778C2.46722 17.7027 2.29728 17.5328 2.22195 17.3166C2.07794 16.9033 2 16.46 2 16C2 14.7116 2.60997 13.5653 3.55383 12.835C3.88142 12.5815 4.35248 12.6415 4.60597 12.9691Z",fill:t}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.75236 12C6.40714 12.8376 7.16237 13.5929 8 14.2476V18.25C8 18.6642 8.33579 19 8.75 19C11.5114 19 13.75 16.7614 13.75 14C13.75 13.5097 13.6792 13.035 13.5471 12.5861C16.8467 10.2297 19 6.36651 19 2C19 1.91234 18.9991 1.82486 18.9974 1.73759C18.9894 1.33502 18.665 1.01058 18.2624 1.0026C18.1751 1.00087 18.0877 1 18 1C13.6335 1 9.77032 3.15331 7.41387 6.45291C6.96496 6.32078 6.49028 6.25 6 6.25C3.23858 6.25 1 8.48858 1 11.25C1 11.6642 1.33579 12 1.75 12H5.75236ZM13 9C14.1046 9 15 8.10457 15 7C15 5.89543 14.1046 5 13 5C11.8954 5 11 5.89543 11 7C11 8.10457 11.8954 9 13 9Z",fill:t})]}),oe=({fill:t="currentColor",width:r="20",height:o="20"})=>e.jsxs("svg",{width:r,height:o,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M9 16C12.866 16 16 12.866 16 9C16 5.13401 12.866 2 9 2C5.13401 2 2 5.13401 2 9C2 12.866 5.13401 16 9 16Z",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M18 18L14 14",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),ie=({fill:t="currentColor",width:r="20",height:o="20"})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 20 20",fill:"none",children:[e.jsx("path",{d:"M8 10C8 9.60218 8.15804 9.22064 8.43934 8.93934C8.72064 8.65804 9.10218 8.5 9.5 8.5C9.89782 8.5 10.2794 8.65804 10.5607 8.93934C10.842 9.22064 11 9.60218 11 10C11 10.3978 10.842 10.7794 10.5607 11.0607C10.2794 11.342 9.89782 11.5 9.5 11.5C9.10218 11.5 8.72064 11.342 8.43934 11.0607C8.15804 10.7794 8 10.3978 8 10Z",fill:t}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5 2C4.10218 2 3.72064 2.15804 3.43934 2.43934C3.15804 2.72065 3 3.10218 3 3.5V16.5C3 16.8978 3.15804 17.2794 3.43934 17.5607C3.72064 17.842 4.10218 18 4.5 18H15.5C15.8978 18 16.2794 17.842 16.5607 17.5607C16.842 17.2794 17 16.8978 17 16.5V7.621C16.9997 7.22331 16.8414 6.84204 16.56 6.561L12.44 2.439C12.3005 2.29961 12.1349 2.1891 11.9527 2.11377C11.7705 2.03844 11.5752 1.99978 11.378 2H4.5ZM9.5 7C9.03881 7.00024 8.58388 7.10681 8.17056 7.31143C7.75725 7.51605 7.39667 7.8132 7.11685 8.17981C6.83703 8.54641 6.64551 8.9726 6.55715 9.42525C6.46879 9.8779 6.48598 10.3448 6.60739 10.7897C6.7288 11.2347 6.95116 11.6456 7.25718 11.9906C7.5632 12.3357 7.94466 12.6055 8.3719 12.7792C8.79915 12.9528 9.26068 13.0257 9.72064 12.992C10.1806 12.9583 10.6266 12.819 11.024 12.585L12.22 13.78C12.2887 13.8537 12.3715 13.9128 12.4635 13.9538C12.5555 13.9948 12.6548 14.0168 12.7555 14.0186C12.8562 14.0204 12.9562 14.0018 13.0496 13.9641C13.143 13.9264 13.2278 13.8703 13.299 13.799C13.3703 13.7278 13.4264 13.643 13.4641 13.5496C13.5018 13.4562 13.5204 13.3562 13.5186 13.2555C13.5168 13.1548 13.4948 13.0555 13.4538 12.9635C13.4128 12.8715 13.3537 12.7887 13.28 12.72L12.085 11.524C12.3538 11.0683 12.4972 10.5496 12.5009 10.0206C12.5045 9.49158 12.3682 8.97099 12.1057 8.51165C11.8432 8.0523 11.464 7.67053 11.0063 7.40506C10.5487 7.13958 10.029 6.99984 9.5 7Z",fill:t})]}),ne=({fill:t="currentColor",width:r="20",height:o="20"})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 20 20",fill:"none",children:[e.jsx("path",{d:"M6.5 9C6.5 8.33696 6.76339 7.70107 7.23223 7.23223C7.70107 6.76339 8.33696 6.5 9 6.5C9.66304 6.5 10.2989 6.76339 10.7678 7.23223C11.2366 7.70107 11.5 8.33696 11.5 9C11.5 9.66304 11.2366 10.2989 10.7678 10.7678C10.2989 11.2366 9.66304 11.5 9 11.5C8.33696 11.5 7.70107 11.2366 7.23223 10.7678C6.76339 10.2989 6.5 9.66304 6.5 9Z",fill:t}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 18C12.1217 18 14.1566 17.1571 15.6569 15.6569C17.1571 14.1566 18 12.1217 18 10C18 7.87827 17.1571 5.84344 15.6569 4.34315C14.1566 2.84285 12.1217 2 10 2C7.87827 2 5.84344 2.84285 4.34315 4.34315C2.84285 5.84344 2 7.87827 2 10C2 12.1217 2.84285 14.1566 4.34315 15.6569C5.84344 17.1571 7.87827 18 10 18ZM9 5C8.37415 5.0001 7.75705 5.14706 7.19833 5.42906C6.63961 5.71106 6.15485 6.12023 5.78304 6.62367C5.41124 7.12711 5.16275 7.71077 5.05756 8.32773C4.95238 8.94468 4.99343 9.5777 5.17741 10.1759C5.3614 10.7741 5.68319 11.3208 6.1169 11.772C6.55061 12.2232 7.08415 12.5663 7.67462 12.7738C8.26508 12.9813 8.89599 13.0473 9.51661 12.9666C10.1372 12.8859 10.7303 12.6606 11.248 12.309L12.72 13.78C12.7887 13.8537 12.8715 13.9128 12.9635 13.9538C13.0555 13.9948 13.1548 14.0168 13.2555 14.0186C13.3562 14.0204 13.4562 14.0018 13.5496 13.9641C13.643 13.9264 13.7278 13.8703 13.799 13.799C13.8703 13.7278 13.9264 13.643 13.9641 13.5496C14.0018 13.4562 14.0204 13.3562 14.0186 13.2555C14.0168 13.1548 13.9948 13.0555 13.9538 12.9635C13.9128 12.8715 13.8537 12.7887 13.78 12.72L12.309 11.248C12.7176 10.6467 12.9546 9.94532 12.9944 9.21939C13.0343 8.49346 12.8756 7.77039 12.5353 7.1279C12.195 6.48542 11.6861 5.94782 11.0632 5.5729C10.4403 5.19798 9.72702 4.99992 9 5Z",fill:t})]}),ae=({fill:t="currentColor",width:r="20",height:o="20"})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 14 16",fill:"none",children:[e.jsx("path",{d:"M7 5V8",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M3 11V9C3 8.4477 3.4477 8 4 8H10C10.5523 8 11 8.4477 11 9V11",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M7 5C8.10457 5 9 4.10457 9 3C9 1.89543 8.10457 1 7 1C5.89543 1 5 1.89543 5 3C5 4.10457 5.89543 5 7 5Z",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M3 15C4.10457 15 5 14.1046 5 13C5 11.8954 4.10457 11 3 11C1.89543 11 1 11.8954 1 13C1 14.1046 1.89543 15 3 15Z",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M11 15C12.1046 15 13 14.1046 13 13C13 11.8954 12.1046 11 11 11C9.89543 11 9 11.8954 9 13C9 14.1046 9.89543 15 11 15Z",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),se=({fill:t="currentColor",width:r="21",height:o="21"})=>e.jsxs("svg",{width:r,height:o,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M22.392 10.5705C21.693 5.4495 17.313 1.5 12 1.5C6.201 1.5 1.5 6.201 1.5 12C1.5 14.064 2.1045 15.9825 3.132 17.6055L1.5 22.5L6.3945 20.868C7.6395 21.657 9.06 22.188 10.584 22.3965",stroke:t,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M17.625 12.75L18.75 16.5L22.5 17.625L18.75 18.75L17.625 22.5L16.5 18.75L12.75 17.625L16.5 16.5L17.625 12.75Z",fill:t,stroke:t,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]}),le=({fill:t="currentColor",width:r="20",height:o="20"})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 14 14",fill:"none",children:[e.jsx("path",{d:"M13 1H1",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M7 13V1",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),ce=({fill:t="currentColor",width:r="20",height:o="20"})=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{d:"M11.2502 1C12.769 1 14.0002 2.23122 14.0002 3.75V4.19238C14.7954 4.26939 15.5841 4.3694 16.3655 4.49121C16.7747 4.555 17.0551 4.93847 16.9914 5.34766C16.9276 5.75685 16.5442 6.0373 16.135 5.97363C16.0856 5.96593 16.036 5.95771 15.9865 5.9502L15.1448 16.4697C15.0302 17.8987 13.8371 19 12.4035 19H7.5969C6.16331 19 4.97024 17.8987 4.85569 16.4697L4.01389 5.9502C3.96456 5.9577 3.91473 5.96595 3.86545 5.97363C3.45635 6.03717 3.07279 5.75678 3.00901 5.34766C2.94536 4.93848 3.2258 4.555 3.63499 4.49121C4.41637 4.3694 5.205 4.2694 6.00022 4.19238V3.75C6.00022 2.23122 7.23144 1 8.75022 1H11.2502ZM7.80002 7.00098C7.41217 7.01665 7.10455 7.32382 7.08127 7.70312V7.78027L7.38108 15.2803C7.39779 15.694 7.74659 16.0156 8.16038 15.999C8.57421 15.9824 8.89666 15.6336 8.8801 15.2197L8.57932 7.71973L8.57249 7.64355C8.51897 7.26722 8.18803 6.98546 7.80002 7.00098ZM12.2004 7.00098C11.7866 6.98443 11.4378 7.30599 11.4211 7.71973L11.1213 15.2197C11.1048 15.6335 11.4263 15.9823 11.8401 15.999C12.2538 16.0156 12.6026 15.694 12.6194 15.2803L12.9201 7.78027C12.9367 7.36644 12.6142 7.01761 12.2004 7.00098ZM8.75022 2.5C8.05986 2.5 7.50022 3.05964 7.50022 3.75V4.0752C8.32725 4.02543 9.16083 4 10.0002 4C10.8396 4 11.6732 4.02544 12.5002 4.0752V3.75C12.5002 3.05964 11.9406 2.5 11.2502 2.5H8.75022Z",fill:t})}),de=({fill:t="currentColor",width:r="16",height:o="16"})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 16 16",fill:"none",children:[e.jsx("path",{d:"M3.75 2C2.7835 2 2 2.7835 2 3.75V5.25C2 5.66421 2.33579 6 2.75 6C3.16421 6 3.5 5.66421 3.5 5.25V3.75C3.5 3.61193 3.61193 3.5 3.75 3.5H5.25C5.66421 3.5 6 3.16421 6 2.75C6 2.33579 5.66421 2 5.25 2H3.75Z",fill:t}),e.jsx("path",{d:"M10.75 2C10.3358 2 10 2.33579 10 2.75C10 3.16421 10.3358 3.5 10.75 3.5H12.25C12.3881 3.5 12.5 3.61193 12.5 3.75V5.25C12.5 5.66421 12.8358 6 13.25 6C13.6642 6 14 5.66421 14 5.25V3.75C14 2.7835 13.2165 2 12.25 2H10.75Z",fill:t}),e.jsx("path",{d:"M3.5 10.75C3.5 10.3358 3.16421 10 2.75 10C2.33579 10 2 10.3358 2 10.75V12.25C2 13.2165 2.7835 14 3.75 14H5.25C5.66421 14 6 13.6642 6 13.25C6 12.8358 5.66421 12.5 5.25 12.5H3.75C3.61193 12.5 3.5 12.3881 3.5 12.25V10.75Z",fill:t}),e.jsx("path",{d:"M14 10.75C14 10.3358 13.6642 10 13.25 10C12.8358 10 12.5 10.3358 12.5 10.75V12.25C12.5 12.3881 12.3881 12.5 12.25 12.5H10.75C10.3358 12.5 10 12.8358 10 13.25C10 13.6642 10.3358 14 10.75 14H12.25C13.2165 14 14 13.2165 14 12.25V10.75Z",fill:t}),e.jsx("path",{d:"M8 10C9.10457 10 10 9.10457 10 8C10 6.89543 9.10457 6 8 6C6.89543 6 6 6.89543 6 8C6 9.10457 6.89543 10 8 10Z",fill:t})]});var he;exports.IconName=void 0,(he=exports.IconName||(exports.IconName={})).BARS_3_BOTTOM_LEFT="bars-3-bottom-left",he.BUILDING="building",he.BULK_CHECK="bulk-check",he.CHECK="check",he.CHECK_CIRCLE="check-circle",he.CHECK_SQUARE="check-square",he.CHEVRON_DOWN="chevron-down",he.CLOSE="close",he.CODE="code",he.COMPUTER="computer",he.COPY="copy",he.CUBE="cube",he.DATABASE="database",he.EXCLAMATION_CIRCLE="exclamation-circle",he.EXCLAMATION_TRIANGLE="exclamation-triangle",he.GEAR="gear",he.GLobe="globe",he.HASHTAG="hashtag",he.HOME="home",he.INBOX="inbox",he.INFORMATION_CIRCLE="information-circle",he.INFORMATION_CIRCLE_MICRO="information-circle-micro",he.LAMP="lamp",he.LOCK_OPEN="lock-open",he.MINUS="minus",he.PAPER_PLANE="paper-plane",he.PENCIL="pencil",he.PIE_CHART="pie-chart",he.PIPELINE="pipeline",he.PLUS="plus",he.PROFILE="profile",he.QUESTION_CIRCLE="question-circle",he.ROCKET_LAUNCH="rocket-launch",he.SEARCH="search",he.SEARCH_DOCUMENT="search-document",he.SEARCH_SQL="search-sql",he.SITEMAP="sitemap",he.TETRASCIENCE_ICON="tetrascience-icon",he.TEXT="text",he.TRASH="trash",he.VIEWFINDER_CIRCLE="viewfinder-circle";const pe=t=>{let r=null;const{name:o}=t;switch(o){case exports.IconName.BARS_3_BOTTOM_LEFT:r=e.jsx(j,{...t});break;case exports.IconName.BUILDING:r=e.jsx(M,{...t});break;case exports.IconName.BULK_CHECK:r=e.jsx(I,{...t});break;case exports.IconName.CHECK:r=e.jsx(E,{...t});break;case exports.IconName.CHECK_CIRCLE:r=e.jsx(L,{...t});break;case exports.IconName.CHECK_SQUARE:r=e.jsx(N,{...t});break;case exports.IconName.CHEVRON_DOWN:r=e.jsx(_,{...t});break;case exports.IconName.CLOSE:r=e.jsx(A,{...t});break;case exports.IconName.CODE:r=e.jsx(T,{...t});break;case exports.IconName.COMPUTER:r=e.jsx(R,{...t});break;case exports.IconName.COPY:r=e.jsx($,{...t});break;case exports.IconName.CUBE:r=e.jsx(S,{...t});break;case exports.IconName.DATABASE:r=e.jsx(z,{...t});break;case exports.IconName.EXCLAMATION_CIRCLE:r=e.jsx(B,{...t});break;case exports.IconName.EXCLAMATION_TRIANGLE:r=e.jsx(H,{...t});break;case exports.IconName.GEAR:r=e.jsx(O,{...t});break;case exports.IconName.GLobe:r=e.jsx(P,{...t});break;case exports.IconName.HASHTAG:r=e.jsx(D,{...t});break;case exports.IconName.HOME:r=e.jsx(V,{...t});break;case exports.IconName.INBOX:r=e.jsx(U,{...t});break;case exports.IconName.INFORMATION_CIRCLE:r=e.jsx(G,{...t});break;case exports.IconName.INFORMATION_CIRCLE_MICRO:r=e.jsx(F,{...t});break;case exports.IconName.LAMP:r=e.jsx(K,{...t});break;case exports.IconName.LOCK_OPEN:r=e.jsx(Z,{...t});break;case exports.IconName.MINUS:r=e.jsx(W,{...t});break;case exports.IconName.PAPER_PLANE:r=e.jsx(Y,{...t});break;case exports.IconName.PENCIL:r=e.jsx(X,{...t});break;case exports.IconName.PIE_CHART:r=e.jsx(q,{...t});break;case exports.IconName.PIPELINE:r=e.jsx(Q,{...t});break;case exports.IconName.PLUS:r=e.jsx(J,{...t});break;case exports.IconName.PROFILE:r=e.jsx(ee,{...t});break;case exports.IconName.QUESTION_CIRCLE:r=e.jsx(te,{...t});break;case exports.IconName.ROCKET_LAUNCH:r=e.jsx(re,{...t});break;case exports.IconName.SEARCH:r=e.jsx(oe,{...t});break;case exports.IconName.SEARCH_DOCUMENT:r=e.jsx(ie,{...t});break;case exports.IconName.SEARCH_SQL:r=e.jsx(ne,{...t});break;case exports.IconName.SITEMAP:r=e.jsx(ae,{...t});break;case exports.IconName.TETRASCIENCE_ICON:r=e.jsx(se,{...t});break;case exports.IconName.TEXT:r=e.jsx(le,{...t});break;case exports.IconName.TRASH:r=e.jsx(ce,{...t});break;case exports.IconName.VIEWFINDER_CIRCLE:r=e.jsx(de,{...t});break;default:throw`[Icon] name "${o}" does not exist`}return e.jsx("div",{style:{display:"inline-flex"},children:r})},xe=t.label`
|
|
205
205
|
display: inline-flex;
|
|
206
206
|
align-items: center;
|
|
207
207
|
cursor: ${e=>e.disabled?"not-allowed":"pointer"};
|
|
208
208
|
opacity: ${e=>e.disabled?.6:1};
|
|
209
|
-
padding: ${e=>e
|
|
209
|
+
padding: ${e=>e.$noPadding?"0":"12px 16px"};
|
|
210
210
|
width: 100%;
|
|
211
|
-
`,ue=
|
|
211
|
+
`,ue=t.input.attrs({type:"checkbox"})`
|
|
212
212
|
position: absolute;
|
|
213
213
|
opacity: 0;
|
|
214
214
|
height: 0;
|
|
215
215
|
width: 0;
|
|
216
|
-
`,
|
|
216
|
+
`,ge=t.div`
|
|
217
217
|
display: flex;
|
|
218
218
|
align-items: center;
|
|
219
219
|
justify-content: center;
|
|
@@ -226,18 +226,18 @@
|
|
|
226
226
|
transition: all 0.2s;
|
|
227
227
|
|
|
228
228
|
${e=>!e.disabled&&"\n\t\t&:hover {\n\t\t\tborder-color: var(--blue-600);\n\t\t}\n\t"}
|
|
229
|
-
`,
|
|
229
|
+
`,fe=()=>e.jsx(pe,{name:exports.IconName.CHECK_SQUARE,fill:"var(--blue-600)"}),me=t.span`
|
|
230
230
|
margin-left: 10px;
|
|
231
231
|
font-family: "Inter", sans-serif;
|
|
232
232
|
font-size: 14px;
|
|
233
233
|
font-style: normal;
|
|
234
234
|
font-weight: 400;
|
|
235
235
|
line-height: 20px;
|
|
236
|
-
`,
|
|
236
|
+
`,Ce=({checked:t=!1,onChange:r,disabled:o=!1,className:i,onClick:n,label:a,noPadding:s=!1,ref:l})=>e.jsxs(xe,{className:i,disabled:o,$noPadding:s,onClick:e=>{n&&n(e)},children:[e.jsx(ue,{ref:l,checked:t,onChange:e=>{!o&&r&&r(e.target.checked)},disabled:o}),e.jsx(ge,{checked:t,disabled:o,children:t&&e.jsx(fe,{})}),a&&e.jsx(me,{children:a})]}),be=t.div`
|
|
237
237
|
position: relative;
|
|
238
238
|
display: inline-flex;
|
|
239
239
|
width: fit-content;
|
|
240
|
-
`,
|
|
240
|
+
`,ve=t.div`
|
|
241
241
|
position: absolute;
|
|
242
242
|
background-color: var(--black);
|
|
243
243
|
color: var(--white);
|
|
@@ -259,12 +259,12 @@
|
|
|
259
259
|
box-sizing: border-box;
|
|
260
260
|
text-align: left;
|
|
261
261
|
|
|
262
|
-
${e=>e
|
|
262
|
+
${e=>e.$isVisible&&t.css`
|
|
263
263
|
opacity: 1;
|
|
264
264
|
visibility: visible;
|
|
265
265
|
`}
|
|
266
266
|
|
|
267
|
-
${e=>{switch(e.placement){case"top":return
|
|
267
|
+
${e=>{switch(e.placement){case"top":return t.css`
|
|
268
268
|
bottom: 100%;
|
|
269
269
|
left: 50%;
|
|
270
270
|
transform: translateX(-50%) translateY(-8px);
|
|
@@ -279,7 +279,7 @@
|
|
|
279
279
|
border-style: solid;
|
|
280
280
|
border-color: var(--black) transparent transparent transparent;
|
|
281
281
|
}
|
|
282
|
-
`;case"right":return
|
|
282
|
+
`;case"right":return t.css`
|
|
283
283
|
top: 50%;
|
|
284
284
|
left: 100%;
|
|
285
285
|
transform: translateY(-50%) translateX(8px);
|
|
@@ -294,7 +294,7 @@
|
|
|
294
294
|
border-style: solid;
|
|
295
295
|
border-color: transparent var(--black) transparent transparent;
|
|
296
296
|
}
|
|
297
|
-
`;case"bottom":return
|
|
297
|
+
`;case"bottom":return t.css`
|
|
298
298
|
top: 100%;
|
|
299
299
|
left: 50%;
|
|
300
300
|
transform: translateX(-50%) translateY(8px);
|
|
@@ -309,7 +309,7 @@
|
|
|
309
309
|
border-style: solid;
|
|
310
310
|
border-color: transparent transparent var(--black) transparent;
|
|
311
311
|
}
|
|
312
|
-
`;case"left":return
|
|
312
|
+
`;case"left":return t.css`
|
|
313
313
|
top: 50%;
|
|
314
314
|
right: 100%;
|
|
315
315
|
transform: translateY(-50%) translateX(-8px);
|
|
@@ -325,15 +325,15 @@
|
|
|
325
325
|
border-color: transparent transparent transparent var(--black);
|
|
326
326
|
}
|
|
327
327
|
`;default:return""}}}
|
|
328
|
-
`,
|
|
328
|
+
`,we=({content:t,children:o,placement:i="top",className:n,delay:a=100})=>{const[s,l]=r.useState(!1),c=r.useRef(null);return r.useEffect(()=>()=>{c.current&&clearTimeout(c.current)},[]),e.jsxs(be,{className:n,onMouseEnter:()=>{c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{l(!0)},a)},onMouseLeave:()=>{c.current&&clearTimeout(c.current),l(!1)},children:[o,e.jsx(ve,{placement:i,$isVisible:s,children:t})]})};var ye={active4d:"Active4D","all-hallows-eve":"All Hallows Eve",amy:"Amy","birds-of-paradise":"Birds of Paradise",blackboard:"Blackboard","brilliance-black":"Brilliance Black","brilliance-dull":"Brilliance Dull","chrome-devtools":"Chrome DevTools","clouds-midnight":"Clouds Midnight",clouds:"Clouds",cobalt:"Cobalt",cobalt2:"Cobalt2",dawn:"Dawn",dracula:"Dracula",dreamweaver:"Dreamweaver",eiffel:"Eiffel","espresso-libre":"Espresso Libre","github-dark":"GitHub Dark","github-light":"GitHub Light",github:"GitHub",idle:"IDLE",katzenmilch:"Katzenmilch","kuroir-theme":"Kuroir Theme",lazy:"LAZY","magicwb--amiga-":"MagicWB (Amiga)","merbivore-soft":"Merbivore Soft",merbivore:"Merbivore","monokai-bright":"Monokai Bright",monokai:"Monokai","night-owl":"Night Owl",nord:"Nord","oceanic-next":"Oceanic Next","pastels-on-dark":"Pastels on Dark","slush-and-poppies":"Slush and Poppies","solarized-dark":"Solarized-dark","solarized-light":"Solarized-light",spacecadet:"SpaceCadet",sunburst:"Sunburst","textmate--mac-classic-":"Textmate (Mac Classic)","tomorrow-night-blue":"Tomorrow-Night-Blue","tomorrow-night-bright":"Tomorrow-Night-Bright","tomorrow-night-eighties":"Tomorrow-Night-Eighties","tomorrow-night":"Tomorrow-Night",tomorrow:"Tomorrow",twilight:"Twilight","upstream-sunburst":"Upstream Sunburst","vibrant-ink":"Vibrant Ink","xcode-default":"Xcode_default",zenburnesque:"Zenburnesque",iplastic:"iPlastic",idlefingers:"idleFingers",krtheme:"krTheme",monoindustrial:"monoindustrial"};const ke={},je={light:"github-light",dark:"dracula"},Me=t.div`
|
|
329
329
|
border-radius: 16px;
|
|
330
330
|
overflow: hidden;
|
|
331
|
-
background-color: ${e=>"dark"===e
|
|
331
|
+
background-color: ${e=>"dark"===e.$themeMode?"var(--grey-800)":"var(--grey-50)"};
|
|
332
332
|
position: relative;
|
|
333
333
|
border: 1px solid var(--grey-200);
|
|
334
334
|
opacity: ${e=>e.disabled?.6:1};
|
|
335
335
|
cursor: ${e=>e.disabled?"not-allowed":"default"};
|
|
336
|
-
`,Ie=
|
|
336
|
+
`,Ie=t.div`
|
|
337
337
|
margin-left: auto;
|
|
338
338
|
display: flex;
|
|
339
339
|
gap: 8px;
|
|
@@ -342,19 +342,19 @@
|
|
|
342
342
|
top: 0;
|
|
343
343
|
right: 0;
|
|
344
344
|
z-index: 1;
|
|
345
|
-
`,
|
|
345
|
+
`,Ee=t.div`
|
|
346
346
|
width: 32px;
|
|
347
347
|
height: 32px;
|
|
348
348
|
display: flex;
|
|
349
349
|
align-items: center;
|
|
350
350
|
justify-content: center;
|
|
351
|
-
`,
|
|
351
|
+
`,Le=t(f)`
|
|
352
352
|
width: 100%;
|
|
353
353
|
height: 100%;
|
|
354
|
-
`,
|
|
354
|
+
`,Ne=({value:t,onChange:i,language:n="python",theme:a="dark",height:s=400,width:l="100%",options:c={},onCopy:d,onLaunch:h,disabled:p=!1})=>{const[x,u]=r.useState("Copy"),[g,f]=r.useState("Launch"),m=r.useCallback(e=>{d&&!p&&(d(e),u("Copied"),setTimeout(()=>{u("Copy")},1e3))},[d,p]),C=r.useCallback(e=>{h&&!p&&(h(e),f("Launched"),setTimeout(()=>{f("Launch")},1e3))},[h,p]),b={minimap:{enabled:!1},scrollBeyondLastLine:!1,lineNumbers:"on",padding:{top:12,bottom:12,left:20,right:20},scrollbar:{vertical:"hidden",verticalScrollbarSize:0},readOnly:p,...c};return e.jsxs(Me,{$themeMode:a,disabled:p,children:[e.jsxs(Ie,{children:[d&&e.jsx(we,{content:x,placement:"bottom",children:e.jsx(Ee,{children:e.jsx(Le,{variant:"tertiary",size:"small",leftIcon:e.jsx(pe,{name:exports.IconName.COPY}),noPadding:!0,fullWidth:!0,onClick:()=>m(t),disabled:p,children:null})})}),h&&e.jsx(we,{content:g,placement:"bottom",children:e.jsx(Ee,{children:e.jsx(Le,{variant:"tertiary",size:"small",leftIcon:e.jsx(pe,{name:exports.IconName.ROCKET_LAUNCH}),noPadding:!0,fullWidth:!0,onClick:()=>C(t),disabled:p,children:null})})})]}),e.jsx(o,{value:t,onChange:i,language:n,theme:je[a],height:s,width:l,options:b,beforeMount:async e=>{const t=je[a];try{const r=ye[t];if(r){const o=ke[`/node_modules/monaco-themes/themes/${r}.json`];if(o){const r=(await o()).default;e.editor.defineTheme(t,r)}}e.editor.setTheme(t)}catch(t){console.error("Error loading theme:",t),e.editor.setTheme("vs-dark")}}})]})},_e=t.div`
|
|
355
355
|
position: relative;
|
|
356
356
|
width: ${e=>e.width||"100%"};
|
|
357
|
-
`,
|
|
357
|
+
`,Ae=t.button`
|
|
358
358
|
display: flex;
|
|
359
359
|
align-items: center;
|
|
360
360
|
justify-content: space-between;
|
|
@@ -363,7 +363,7 @@
|
|
|
363
363
|
padding: 0 12px;
|
|
364
364
|
background-color: ${e=>e.disabled?"var(--grey-100)":"var(--white-900)"};
|
|
365
365
|
border: 1px solid
|
|
366
|
-
${e=>e
|
|
366
|
+
${e=>e.$error?"var(--red-error)":e.disabled?"var(--grey-200)":e.open?"var(--blue-600)":"var(--grey-300)"};
|
|
367
367
|
border-radius: 6px;
|
|
368
368
|
outline: none;
|
|
369
369
|
cursor: ${e=>e.disabled?"not-allowed":"pointer"};
|
|
@@ -377,7 +377,7 @@
|
|
|
377
377
|
color: ${e=>e.disabled?"var(--grey-400)":e.open?"var(--black-900)":"var(--grey-400)"};
|
|
378
378
|
|
|
379
379
|
&:hover:not(:disabled) {
|
|
380
|
-
border-color: ${e=>e
|
|
380
|
+
border-color: ${e=>e.$error?"var(--red-error)":"var(--blue-600)"};
|
|
381
381
|
color: var(--black-900) !important;
|
|
382
382
|
}
|
|
383
383
|
|
|
@@ -392,10 +392,10 @@
|
|
|
392
392
|
|
|
393
393
|
&:focus {
|
|
394
394
|
outline: none;
|
|
395
|
-
box-shadow: ${e=>e
|
|
396
|
-
border-color: ${e=>e
|
|
395
|
+
box-shadow: ${e=>e.$error?"0px 0px 0px 3px var(--red-bg)":"0px 0px 0px 1px var(--white-900), 0px 0px 0px 3px var(--blue-600)"};
|
|
396
|
+
border-color: ${e=>e.$error?"var(--red-error)":"var(--blue-600)"};
|
|
397
397
|
}
|
|
398
|
-
`,
|
|
398
|
+
`,Te=t.div`
|
|
399
399
|
width: 20px;
|
|
400
400
|
height: 20px;
|
|
401
401
|
transform: ${e=>e.open?"rotate(180deg)":"rotate(0deg)"};
|
|
@@ -404,7 +404,7 @@
|
|
|
404
404
|
display: flex;
|
|
405
405
|
align-items: center;
|
|
406
406
|
justify-content: center;
|
|
407
|
-
`,
|
|
407
|
+
`,Re=t.div`
|
|
408
408
|
text-overflow: ellipsis;
|
|
409
409
|
white-space: nowrap;
|
|
410
410
|
overflow: hidden;
|
|
@@ -418,7 +418,7 @@
|
|
|
418
418
|
white-space: nowrap;
|
|
419
419
|
overflow: hidden;
|
|
420
420
|
}
|
|
421
|
-
|
|
421
|
+
`,$e=t.ul`
|
|
422
422
|
position: absolute;
|
|
423
423
|
top: calc(100% + 4px);
|
|
424
424
|
left: 0;
|
|
@@ -433,20 +433,20 @@
|
|
|
433
433
|
padding: 4px 0;
|
|
434
434
|
margin: 0;
|
|
435
435
|
list-style: none;
|
|
436
|
-
`,
|
|
436
|
+
`,Se=t.div`
|
|
437
437
|
display: flex;
|
|
438
438
|
flex-direction: column;
|
|
439
439
|
align-items: center;
|
|
440
440
|
justify-content: center;
|
|
441
441
|
padding: 16px;
|
|
442
442
|
color: var(--grey-400);
|
|
443
|
-
`,
|
|
443
|
+
`,ze=t.p`
|
|
444
444
|
margin: 8px 0 0 0;
|
|
445
445
|
font-family: "Inter", sans-serif;
|
|
446
446
|
font-size: 14px;
|
|
447
447
|
line-height: 20px;
|
|
448
448
|
text-align: center;
|
|
449
|
-
|
|
449
|
+
`,Be=t.li`
|
|
450
450
|
padding: 8px 12px;
|
|
451
451
|
cursor: ${e=>e.disabled?"not-allowed":"pointer"};
|
|
452
452
|
background-color: ${e=>e.selected?"var(--blue-50)":"transparent"};
|
|
@@ -466,7 +466,7 @@
|
|
|
466
466
|
outline: 2px solid var(--blue-600);
|
|
467
467
|
outline-offset: -2px;
|
|
468
468
|
}
|
|
469
|
-
`,
|
|
469
|
+
`,He=({options:t=[],value:o,placeholder:i="Select an option",disabled:n=!1,error:a=!1,size:s="small",onChange:l,onOpen:c,onClose:d,width:h,menuWidth:p})=>{const[x,u]=r.useState(!1),[g,f]=r.useState(o||""),m=r.useRef(null),C=r.useRef([]);r.useEffect(()=>{void 0!==o&&f(o)},[o]),r.useEffect(()=>{const e=e=>{m.current&&!m.current.contains(e.target)&&x&&(u(!1),d?.())};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[x,d]),r.useEffect(()=>{x&&(C.current=C.current.slice(0,t.length))},[x,t.length]),r.useEffect(()=>{if(x&&C.current.length>0){const e=t.findIndex(e=>e.value===g),r=e>=0?e:0;setTimeout(()=>{C.current[r]&&C.current[r]?.focus()},10)}},[x,t,g]);const b=e=>{e.disabled||(f(e.value),u(!1),l?.(e.value),d?.())},v=(e,r)=>{const o=t[r];switch(e.key){case"Enter":case" ":e.preventDefault(),o.disabled||b(o);break;case"ArrowDown":{e.preventDefault();const o=(e=>{for(let r=e+1;r<t.length;r++)if(!t[r].disabled)return r;return-1})(r);-1!==o&&C.current[o]?.focus();break}case"ArrowUp":{e.preventDefault();const o=(e=>{for(let r=e-1;r>=0;r--)if(!t[r].disabled)return r;return-1})(r);-1!==o&&C.current[o]?.focus();break}case"Escape":e.preventDefault(),u(!1),d?.();break;case"Tab":u(!1),d?.()}},w=t.find(e=>e.value===g),y=w?w.label:i;return e.jsxs(_e,{ref:m,width:h,children:[e.jsxs(Ae,{type:"button",onClick:()=>{if(!n){const e=!x;u(e),e?c?.():d?.()}},onKeyDown:e=>{if(!n)switch(e.key){case"Enter":case" ":case"ArrowDown":e.preventDefault(),x||(u(!0),c?.());break;case"Escape":e.preventDefault(),x&&(u(!1),d?.())}},open:x,disabled:n,$error:a,size:s,"aria-haspopup":"listbox","aria-expanded":x,"aria-label":i,children:[e.jsx(Re,{children:y}),e.jsx(Te,{open:x,children:e.jsx(pe,{name:exports.IconName.CHEVRON_DOWN,fill:"var(--grey-600)"})})]}),x&&e.jsx($e,{role:"listbox","aria-labelledby":"dropdown-button",menuWidth:p,children:t.length>0?t.map((t,r)=>e.jsx(Be,{ref:e=>{C.current[r]=e},selected:t.value===g,disabled:t.disabled,onClick:()=>b(t),onKeyDown:e=>v(e,r),tabIndex:t.disabled?-1:0,role:"option","aria-selected":t.value===g,"aria-disabled":t.disabled,children:t.label},t.value)):e.jsxs(Se,{children:[e.jsx(pe,{name:exports.IconName.INBOX,fill:"var(--grey-400)",width:"24px",height:"24px"}),e.jsx(ze,{children:"No Data"})]})})]})},Oe=t.div`
|
|
470
470
|
width: 100%;
|
|
471
471
|
padding: 15px;
|
|
472
472
|
border-radius: 4px;
|
|
@@ -476,17 +476,18 @@
|
|
|
476
476
|
display: flex;
|
|
477
477
|
flex-direction: column;
|
|
478
478
|
gap: 8px;
|
|
479
|
-
|
|
479
|
+
box-sizing: border-box;
|
|
480
|
+
`,Pe=t.div`
|
|
480
481
|
display: flex;
|
|
481
482
|
justify-content: space-between;
|
|
482
483
|
align-items: flex-start;
|
|
483
|
-
`,De=
|
|
484
|
+
`,De=t.div`
|
|
484
485
|
color: #ff4d4f;
|
|
485
486
|
font-size: 18px;
|
|
486
487
|
margin-right: 12px;
|
|
487
488
|
display: flex;
|
|
488
489
|
align-items: center;
|
|
489
|
-
`,
|
|
490
|
+
`,Ve=t.button`
|
|
490
491
|
background: none;
|
|
491
492
|
border: none;
|
|
492
493
|
font-size: 16px;
|
|
@@ -497,29 +498,29 @@
|
|
|
497
498
|
&:hover {
|
|
498
499
|
color: rgba(0, 0, 0, 0.75);
|
|
499
500
|
}
|
|
500
|
-
`,
|
|
501
|
+
`,Ue=t.div`
|
|
501
502
|
font-weight: 500;
|
|
502
503
|
font-size: 16px;
|
|
503
504
|
display: flex;
|
|
504
505
|
align-items: center;
|
|
505
506
|
flex-grow: 1;
|
|
506
|
-
`,
|
|
507
|
+
`,Ge=t.div`
|
|
507
508
|
display: flex;
|
|
508
509
|
flex-direction: column;
|
|
509
510
|
gap: 8px;
|
|
510
511
|
width: 100%;
|
|
511
|
-
`,
|
|
512
|
+
`,Fe=t.p`
|
|
512
513
|
margin: 0;
|
|
513
514
|
padding: 0;
|
|
514
515
|
line-height: 1.5;
|
|
515
|
-
`,Ke=
|
|
516
|
-
font-weight: ${e=>e
|
|
517
|
-
color: ${e=>"secondary"===e
|
|
518
|
-
`,
|
|
516
|
+
`,Ke=t.span`
|
|
517
|
+
font-weight: ${e=>e.$strong?"600":"400"};
|
|
518
|
+
color: ${e=>"secondary"===e.$type?"rgba(0, 0, 0, 0.45)":"inherit"};
|
|
519
|
+
`,Ze=t(Ke).attrs({$type:"secondary"})``,We=t.div`
|
|
519
520
|
margin-left: -15px;
|
|
520
521
|
margin-right: -15px;
|
|
521
522
|
margin-bottom: -5px;
|
|
522
|
-
`,
|
|
523
|
+
`,Ye=t.div`
|
|
523
524
|
padding: 12px 16px;
|
|
524
525
|
cursor: pointer;
|
|
525
526
|
display: flex;
|
|
@@ -531,16 +532,16 @@
|
|
|
531
532
|
}
|
|
532
533
|
|
|
533
534
|
&::after {
|
|
534
|
-
content: "${e=>e
|
|
535
|
+
content: "${e=>e.$isActive?"▼":"▶"}";
|
|
535
536
|
font-size: 12px;
|
|
536
537
|
margin-left: 8px;
|
|
537
538
|
}
|
|
538
|
-
`,
|
|
539
|
-
padding: ${e=>e
|
|
540
|
-
max-height: ${e=>e
|
|
539
|
+
`,Xe=t.div`
|
|
540
|
+
padding: ${e=>e.$isVisible?"0 16px 12px":"0 16px"};
|
|
541
|
+
max-height: ${e=>e.$isVisible?"300px":"0"};
|
|
541
542
|
overflow: hidden;
|
|
542
543
|
transition: max-height 0.3s ease;
|
|
543
|
-
`,
|
|
544
|
+
`,qe=t.pre`
|
|
544
545
|
white-space: pre-wrap;
|
|
545
546
|
word-break: break-all;
|
|
546
547
|
max-height: 300px;
|
|
@@ -549,19 +550,19 @@
|
|
|
549
550
|
padding: 10px;
|
|
550
551
|
border-radius: 4px;
|
|
551
552
|
margin: 0;
|
|
552
|
-
`;const Je=({
|
|
553
|
+
`;function Qe(e){let t="Network/API Error",r=e.message,o=null,i=null;if(e.response){const{status:t,statusText:n,data:a}=e.response;r=`API Error: ${t} ${n}`;const s=function(e){if("string"==typeof e)return{description:e,details:null};if(e&&"object"==typeof e){const t=e.detail||e.message||e.error;return"string"==typeof t?{description:t,details:null}:{description:"Check details for response data.",details:JSON.stringify(e,null,2)}}return{description:null,details:null}}(a);o=s.description??`Request failed with status code ${t}.`,i=`URL: ${e.config?.method?.toUpperCase()} ${e.config?.url}\nStatus: ${t} ${n}\nResponse Data:\n${s.details??JSON.stringify(a,null,2)}`}else e.request?(t="Network Error",r="Network Error: Could not reach the server.",o="Please check your internet connection or contact support if the problem persists.",i=`URL: ${e.config?.method?.toUpperCase()} ${e.config?.url}\nError Message: ${e.message}`):r=`Request Setup Error: ${e.message}`;return e.code&&(t+=` (Code: ${e.code})`),{message:r,description:o,details:i,errorType:t}}function Je(e){return function(e){return"object"==typeof e&&null!==e&&"isAxiosError"in e&&!0===e.isAxiosError}(e)?Qe(e):e instanceof Error?function(e){return{message:e.message,description:null,details:e.stack??"No stack trace available.",errorType:e.name||"Error"}}(e):"string"==typeof e?{message:e,description:null,details:null,errorType:"Message"}:"object"==typeof e&&null!==e?function(e){const t=e.message||e.error||"An object was thrown as an error.";let r;try{r=JSON.stringify(e,null,2)}catch{r="Could not stringify the error object."}return{message:t,description:null,details:r,errorType:"Object Error"}}(e):{message:"An unexpected error occurred.",description:null,details:null,errorType:"Unknown Error"}}const et=({children:t,header:o,defaultExpanded:i=!1})=>{const[n,a]=r.useState(i);return e.jsxs("div",{children:[e.jsx(Ye,{$isActive:n,onClick:()=>a(!n),children:o}),e.jsx(Xe,{$isVisible:n,children:t})]})},tt=({error:t,title:r="An Error Occurred",onClose:o,showDetailsDefault:i=!1})=>{if(!t)return e.jsx(e.Fragment,{});const{message:n,description:a,details:s,errorType:l}=Je(t);return e.jsxs(Oe,{type:"error",children:[e.jsxs(Pe,{children:[e.jsxs(Ue,{children:[e.jsx(De,{children:"⚠️"}),r]}),o&&e.jsx(Ve,{onClick:o,children:"✕"})]}),e.jsxs(Ge,{children:[e.jsxs(Fe,{children:[e.jsxs(Ke,{$strong:!0,children:[l,":"]})," ",n]}),a&&e.jsx(Fe,{children:e.jsx(Ze,{children:a})}),s&&e.jsx(We,{children:e.jsx(et,{header:"Details",defaultExpanded:i,children:e.jsx(qe,{children:s})})})]})]})},rt={xsmall:t.css`
|
|
553
554
|
height: 32px;
|
|
554
|
-
padding: ${e=>e
|
|
555
|
-
`,small:
|
|
555
|
+
padding: ${e=>e.$hasIconLeft&&e.$hasIconRight?"0 32px 0 32px":e.$hasIconLeft?"0 10px 0 32px":e.$hasIconRight?"0 32px 0 10px":"0 10px"};
|
|
556
|
+
`,small:t.css`
|
|
556
557
|
height: 36px;
|
|
557
|
-
padding: ${e=>e
|
|
558
|
-
`},
|
|
558
|
+
padding: ${e=>e.$hasIconLeft&&e.$hasIconRight?"0 38px 0 38px":e.$hasIconLeft?"0 12px 0 38px":e.$hasIconRight?"0 38px 0 12px":"0 12px"};
|
|
559
|
+
`},ot=t.div`
|
|
559
560
|
position: relative;
|
|
560
561
|
display: inline-flex;
|
|
561
562
|
align-items: center;
|
|
562
563
|
width: 100%;
|
|
563
564
|
gap: 8px;
|
|
564
|
-
`,
|
|
565
|
+
`,it=t.input`
|
|
565
566
|
width: 100%;
|
|
566
567
|
border-radius: 6px;
|
|
567
568
|
font-family: "Inter", sans-serif;
|
|
@@ -570,28 +571,28 @@
|
|
|
570
571
|
font-weight: 400;
|
|
571
572
|
line-height: 20px;
|
|
572
573
|
border: 1px solid
|
|
573
|
-
${e=>e
|
|
574
|
+
${e=>e.$error?"var(--red-error)":(e.disabled,"var(--grey-300)")};
|
|
574
575
|
background-color: ${e=>e.disabled?"var(--grey-200)":"var(--white-900)"};
|
|
575
576
|
color: ${e=>e.disabled?"var(--grey-400)":"var(--black-900)"};
|
|
576
577
|
transition: all 0.2s;
|
|
577
578
|
|
|
578
|
-
${e=>
|
|
579
|
+
${e=>rt[e.size||"small"]}
|
|
579
580
|
|
|
580
581
|
&:hover:not(:disabled):not(:focus) {
|
|
581
|
-
border-color: ${e=>e
|
|
582
|
+
border-color: ${e=>e.$error?"var(--red-error)":"var(--blue-600)"};
|
|
582
583
|
}
|
|
583
584
|
|
|
584
585
|
&:focus {
|
|
585
586
|
outline: none;
|
|
586
587
|
box-shadow: 0px 0px 0px 1px var(--white-900),
|
|
587
588
|
0px 0px 0px 3px var(--blue-600);
|
|
588
|
-
border-color: ${e=>e
|
|
589
|
+
border-color: ${e=>e.$error?"var(--red-error)":"var(--blue-600)"};
|
|
589
590
|
}
|
|
590
591
|
|
|
591
592
|
&:active {
|
|
592
593
|
outline: none;
|
|
593
594
|
box-shadow: 0px 0px 0px 2px var(--blue-200);
|
|
594
|
-
border-color: ${e=>e
|
|
595
|
+
border-color: ${e=>e.$error?"var(--red-error)":"var(--blue-600)"};
|
|
595
596
|
}
|
|
596
597
|
|
|
597
598
|
&:disabled {
|
|
@@ -603,7 +604,7 @@
|
|
|
603
604
|
&::placeholder {
|
|
604
605
|
color: var(--grey-400);
|
|
605
606
|
}
|
|
606
|
-
`,
|
|
607
|
+
`,nt=t.div`
|
|
607
608
|
position: absolute;
|
|
608
609
|
display: flex;
|
|
609
610
|
align-items: center;
|
|
@@ -612,11 +613,11 @@
|
|
|
612
613
|
color: var(--grey-400);
|
|
613
614
|
${e=>"left"===e.position?"left: 10px;":"right: 10px;"}
|
|
614
615
|
${e=>"xsmall"===e.size?"width: 16px; height: 16px;":"width: 20px; height: 20px;"}
|
|
615
|
-
`,
|
|
616
|
+
`,at=({size:t="small",iconLeft:r,iconRight:o,error:i=!1,disabled:n=!1,ref:a,...s})=>e.jsxs(ot,{size:t,disabled:n,$error:i,children:[r&&e.jsx(nt,{position:"left",size:t,children:r}),e.jsx(it,{ref:a,size:t,$hasIconLeft:!!r,$hasIconRight:!!o,$error:i,disabled:n,...s}),o&&e.jsx(nt,{position:"right",size:t,children:o})]}),st=t.div`
|
|
616
617
|
display: flex;
|
|
617
618
|
flex-direction: column;
|
|
618
619
|
gap: 4px;
|
|
619
|
-
`,
|
|
620
|
+
`,lt=t.div`
|
|
620
621
|
display: flex;
|
|
621
622
|
align-items: center;
|
|
622
623
|
gap: 6px;
|
|
@@ -627,96 +628,92 @@
|
|
|
627
628
|
font-style: normal;
|
|
628
629
|
font-weight: 400;
|
|
629
630
|
line-height: 18px;
|
|
630
|
-
`,
|
|
631
|
+
`,ct=()=>e.jsx(pe,{name:exports.IconName.INFORMATION_CIRCLE_MICRO,fill:"var(--grey-600)"}),dt=t.span`
|
|
631
632
|
display: inline-flex;
|
|
632
633
|
cursor: help;
|
|
633
|
-
`,
|
|
634
|
-
display: flex;
|
|
635
|
-
gap: 8px;
|
|
636
|
-
align-items: center;
|
|
637
|
-
`,pr=r.code`
|
|
634
|
+
`,ht=({children:t,infoText:r,className:o})=>e.jsx(st,{className:o,children:e.jsxs(lt,{children:[t,r&&e.jsx(we,{content:r,placement:"bottom",children:e.jsx(dt,{children:e.jsx(ct,{})})})]})});var pt={'code[class*="language-"]':{color:"#f8f8f2",background:"none",fontFamily:"\"Fira Code\", Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#2E3440",fontFamily:"\"Fira Code\", Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#2E3440",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#636f88"},prolog:{color:"#636f88"},doctype:{color:"#636f88"},cdata:{color:"#636f88"},punctuation:{color:"#81A1C1"},".namespace":{Opacity:".7"},property:{color:"#81A1C1"},tag:{color:"#81A1C1"},constant:{color:"#81A1C1"},symbol:{color:"#81A1C1"},deleted:{color:"#81A1C1"},number:{color:"#B48EAD"},boolean:{color:"#81A1C1"},selector:{color:"#A3BE8C"},"attr-name":{color:"#A3BE8C"},string:{color:"#A3BE8C"},char:{color:"#A3BE8C"},builtin:{color:"#A3BE8C"},inserted:{color:"#A3BE8C"},operator:{color:"#81A1C1"},entity:{color:"#81A1C1",cursor:"help"},url:{color:"#81A1C1"},".language-css .token.string":{color:"#81A1C1"},".style .token.string":{color:"#81A1C1"},variable:{color:"#81A1C1"},atrule:{color:"#88C0D0"},"attr-value":{color:"#88C0D0"},function:{color:"#88C0D0"},"class-name":{color:"#88C0D0"},keyword:{color:"#81A1C1"},regex:{color:"#EBCB8B"},important:{color:"#EBCB8B",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};const xt=t.code`
|
|
638
635
|
background-color: rgba(0, 0, 0, 0.05);
|
|
639
636
|
border-radius: 3px;
|
|
640
637
|
font-family: "Courier New", Courier, monospace;
|
|
641
638
|
padding: 0.2em 0.4em;
|
|
642
639
|
font-size: 85%;
|
|
643
|
-
`,
|
|
640
|
+
`,ut=({inline:t,className:o,children:i,...a})=>{const s=/language-(\w+)/.exec(o||""),l=s?s[1]:void 0,c=String(i).replace(/\n$/,""),[d,h]=r.useState(!1),p=e=>{console.log(e)};return!t&&s?e.jsxs("div",{className:"code-block-container",children:[e.jsx("div",{className:"copy-button-wrapper",children:e.jsx(f,{size:"small",leftIcon:e.jsx(pe,{name:exports.IconName.COPY}),onClick:async()=>{if(!navigator.clipboard)return console.error("Clipboard API not available."),void p("Clipboard access not available or denied.");try{await navigator.clipboard.writeText(c),h(!0),p("Code copied to clipboard!"),setTimeout(()=>h(!1),2e3)}catch(e){console.error("Failed to copy code: ",e),h(!1)}},"aria-label":"Copy code to clipboard",children:d?"Copied!":"Copy"})}),r.createElement(n.Prism,{style:pt,language:l,PreTag:"div",children:c})]}):e.jsx(xt,{...a,children:i})},gt=t.div`
|
|
644
641
|
display: flex;
|
|
645
642
|
align-items: center;
|
|
646
643
|
justify-content: space-between;
|
|
647
644
|
font-size: 14px;
|
|
648
645
|
gap: 10px;
|
|
649
|
-
color: ${e=>e
|
|
646
|
+
color: ${e=>e.$active?"var(--blue-900)":"var(--grey-600)"};
|
|
650
647
|
cursor: pointer;
|
|
651
648
|
transition: all 0.2s;
|
|
652
649
|
user-select: none;
|
|
653
650
|
border-bottom: 1px solid var(--grey-200);
|
|
654
|
-
background-color: ${e=>e
|
|
655
|
-
padding: ${e=>e
|
|
651
|
+
background-color: ${e=>e.$active?"var(--grey-100)":"var(--white-900)"};
|
|
652
|
+
padding: ${e=>e.$showCheckbox?"0":"12px 16px"};
|
|
656
653
|
|
|
657
654
|
&:hover {
|
|
658
|
-
background-color: ${e=>e
|
|
655
|
+
background-color: ${e=>e.$active?"var(--grey-100)":"var(--grey-50)"};
|
|
659
656
|
}
|
|
660
657
|
|
|
661
658
|
&:last-child {
|
|
662
659
|
border-bottom: none;
|
|
663
660
|
}
|
|
664
|
-
`,
|
|
661
|
+
`,ft=t.div`
|
|
665
662
|
display: flex;
|
|
666
663
|
align-items: center;
|
|
667
664
|
gap: 12px;
|
|
668
665
|
flex: 1;
|
|
669
|
-
`,
|
|
666
|
+
`,mt=t.div`
|
|
670
667
|
display: flex;
|
|
671
668
|
align-items: center;
|
|
672
669
|
justify-content: flex-start;
|
|
673
670
|
flex: 1;
|
|
674
671
|
width: 100%;
|
|
675
|
-
`,
|
|
672
|
+
`,Ct=({label:t,checked:r=!1,showCheckbox:o=!1,onClick:i,onCheckChange:n,active:a=!1,className:s,ref:l})=>{const c=e=>{console.log("Checkbox clicked!"),e.stopPropagation()};return e.jsxs(gt,{ref:l,$active:a,$showCheckbox:o,className:s,onClick:()=>{console.log("MenuItem clicked!"),i&&i()},role:"button",tabIndex:0,children:[!o&&e.jsx(ft,{children:t}),o&&e.jsx(mt,{onClick:c,children:e.jsx(Ce,{checked:r,onChange:e=>{console.log("Checkbox changed:",e),n&&n(e)},onClick:c,label:t})})]})},bt=t.createGlobalStyle`
|
|
676
673
|
body.stop-scrolling {
|
|
677
674
|
overflow: hidden;
|
|
678
675
|
}
|
|
679
|
-
`,
|
|
676
|
+
`,vt=t.keyframes`
|
|
680
677
|
from {
|
|
681
678
|
opacity: 0;
|
|
682
679
|
}
|
|
683
680
|
to {
|
|
684
681
|
opacity: 1;
|
|
685
682
|
}
|
|
686
|
-
`,
|
|
683
|
+
`,wt=t.keyframes`
|
|
687
684
|
from {
|
|
688
685
|
opacity: 1;
|
|
689
686
|
}
|
|
690
687
|
to {
|
|
691
688
|
opacity: 0;
|
|
692
689
|
}
|
|
693
|
-
`,
|
|
690
|
+
`,yt=t.keyframes`
|
|
694
691
|
from {
|
|
695
692
|
opacity: 0;
|
|
696
693
|
}
|
|
697
694
|
to {
|
|
698
695
|
opacity: 1;
|
|
699
696
|
}
|
|
700
|
-
`,
|
|
697
|
+
`,kt=t.keyframes`
|
|
701
698
|
from {
|
|
702
699
|
opacity: 1;
|
|
703
700
|
}
|
|
704
701
|
to {
|
|
705
702
|
opacity: 0;
|
|
706
703
|
}
|
|
707
|
-
`,
|
|
704
|
+
`,jt=t.div`
|
|
708
705
|
position: fixed;
|
|
709
706
|
top: 0;
|
|
710
707
|
right: 0;
|
|
711
708
|
bottom: 0;
|
|
712
709
|
left: 0;
|
|
713
710
|
z-index: 10000;
|
|
714
|
-
animation: ${e=>e
|
|
711
|
+
animation: ${e=>e.$isFadeOut?wt:vt} 0.3s
|
|
715
712
|
ease forwards;
|
|
716
713
|
display: flex;
|
|
717
714
|
align-items: center;
|
|
718
715
|
justify-content: center;
|
|
719
|
-
`,
|
|
716
|
+
`,Mt=t.button`
|
|
720
717
|
background-color: var(--black-500);
|
|
721
718
|
position: absolute;
|
|
722
719
|
top: 0;
|
|
@@ -727,9 +724,9 @@
|
|
|
727
724
|
box-shadow: none;
|
|
728
725
|
border: none;
|
|
729
726
|
height: 100%;
|
|
730
|
-
animation: ${e=>e
|
|
727
|
+
animation: ${e=>e.$isFadeOut?kt:yt}
|
|
731
728
|
0.3s ease forwards;
|
|
732
|
-
`,
|
|
729
|
+
`,It=t.div`
|
|
733
730
|
position: relative;
|
|
734
731
|
background: var(--theme-background, var(--white-900));
|
|
735
732
|
border-radius: var(--theme-radius-large, 16px);
|
|
@@ -739,8 +736,8 @@
|
|
|
739
736
|
box-shadow: 0px 4px 12px 0px var(--black-100),
|
|
740
737
|
0px 2px 4px -2px var(--black-100);
|
|
741
738
|
z-index: 1;
|
|
742
|
-
transform: ${e=>e
|
|
743
|
-
opacity: ${e=>e
|
|
739
|
+
transform: ${e=>e.$isFadeOut?"scale(0.95)":"scale(1)"};
|
|
740
|
+
opacity: ${e=>e.$isFadeOut?0:1};
|
|
744
741
|
transition: transform 0.3s ease-out, opacity 0.3s ease-out;
|
|
745
742
|
max-height: 90vh;
|
|
746
743
|
display: flex;
|
|
@@ -749,14 +746,14 @@
|
|
|
749
746
|
@media (max-width: 767px) {
|
|
750
747
|
width: calc(100% - 40px) !important;
|
|
751
748
|
}
|
|
752
|
-
`,
|
|
749
|
+
`,Et=t.div`
|
|
753
750
|
display: flex;
|
|
754
751
|
flex-direction: row;
|
|
755
752
|
justify-content: space-between;
|
|
756
753
|
align-items: center;
|
|
757
754
|
padding: 12px 24px;
|
|
758
755
|
border-bottom: 1px solid var(--grey-100);
|
|
759
|
-
`,
|
|
756
|
+
`,Lt=t.h3`
|
|
760
757
|
margin: 0;
|
|
761
758
|
font-family: "Inter", sans-serif;
|
|
762
759
|
font-size: 18px;
|
|
@@ -764,7 +761,7 @@
|
|
|
764
761
|
font-weight: 500;
|
|
765
762
|
line-height: 28px;
|
|
766
763
|
color: var(--black-900);
|
|
767
|
-
`,
|
|
764
|
+
`,Nt=t.button`
|
|
768
765
|
background: none;
|
|
769
766
|
border: none;
|
|
770
767
|
cursor: pointer;
|
|
@@ -775,6 +772,7 @@
|
|
|
775
772
|
color: var(--black-900);
|
|
776
773
|
width: 24px;
|
|
777
774
|
height: 24px;
|
|
775
|
+
${e=>e.$absolute&&"\n position: absolute;\n top: 16px;\n right: 16px;\n "}
|
|
778
776
|
|
|
779
777
|
&:hover {
|
|
780
778
|
color: var(--black-900);
|
|
@@ -784,7 +782,7 @@
|
|
|
784
782
|
width: 20px;
|
|
785
783
|
height: 20px;
|
|
786
784
|
}
|
|
787
|
-
`,
|
|
785
|
+
`,_t=t.div`
|
|
788
786
|
padding: 12px;
|
|
789
787
|
display: flex;
|
|
790
788
|
justify-content: flex-end;
|
|
@@ -798,7 +796,7 @@
|
|
|
798
796
|
width: 100%;
|
|
799
797
|
}
|
|
800
798
|
}
|
|
801
|
-
`,
|
|
799
|
+
`,At=t.div`
|
|
802
800
|
color: var(--grey-500);
|
|
803
801
|
font-family: "Inter", sans-serif;
|
|
804
802
|
font-size: 14px;
|
|
@@ -809,7 +807,7 @@
|
|
|
809
807
|
overflow-y: auto;
|
|
810
808
|
flex: 1;
|
|
811
809
|
max-height: calc(90vh - 140px); /* Account for header and footer */
|
|
812
|
-
`,
|
|
810
|
+
`,Tt=({isOpen:t,onClose:o,onCloseLabel:i,onConfirm:n,onConfirmLabel:a,children:s,width:l="400px",className:c="",hideActions:d=!1,title:h})=>{const[p,x]=r.useState(!1),[u,g]=r.useState(!1),m=r.useRef(null);r.useEffect(()=>{if(t)x(!0),g(!1);else{if(!p)return;g(!0),m.current=setTimeout(()=>{x(!1)},300)}return()=>{m.current&&clearTimeout(m.current)}},[t,p]),r.useEffect(()=>(p?"undefined"!=typeof document&&document.body.classList.add("stop-scrolling"):"undefined"!=typeof document&&document.body.classList.remove("stop-scrolling"),()=>{"undefined"!=typeof document&&document.body.classList.remove("stop-scrolling")}),[p]);const C=()=>{g(!0),m.current=setTimeout(()=>{o()},300)};return p&&e.jsxs(e.Fragment,{children:[e.jsx(bt,{}),e.jsxs(jt,{$isFadeOut:u,className:c,children:[e.jsx(Mt,{$isFadeOut:u,onClick:C}),e.jsxs(It,{$isFadeOut:u,width:l,children:[h&&e.jsxs(Et,{children:[e.jsx(Lt,{children:h}),e.jsx(Nt,{onClick:C,children:e.jsx(pe,{name:exports.IconName.CLOSE})})]}),!h&&e.jsx(Nt,{$absolute:!0,onClick:C,children:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),e.jsx(At,{children:s}),!d&&e.jsxs(_t,{children:[e.jsx(f,{variant:"tertiary",onClick:C,className:"button",size:"medium",fullWidth:!0,children:i||"Cancel"}),e.jsx(f,{variant:"primary",onClick:n,className:"button",size:"medium",fullWidth:!0,children:a||"Confirm"})]})]})]})]})},Rt=t.div`
|
|
813
811
|
position: absolute;
|
|
814
812
|
background-color: var(--white-900);
|
|
815
813
|
border-radius: 8px;
|
|
@@ -825,12 +823,12 @@
|
|
|
825
823
|
padding: 0;
|
|
826
824
|
font-family: "Inter", sans-serif;
|
|
827
825
|
|
|
828
|
-
${e=>e
|
|
826
|
+
${e=>e.$isVisible&&t.css`
|
|
829
827
|
opacity: 1;
|
|
830
828
|
visibility: visible;
|
|
831
829
|
`}
|
|
832
830
|
|
|
833
|
-
${e=>{switch(e.placement){case"top":return
|
|
831
|
+
${e=>{switch(e.placement){case"top":return t.css`
|
|
834
832
|
bottom: 100%;
|
|
835
833
|
left: 50%;
|
|
836
834
|
transform: translateX(-50%) translateY(-15px);
|
|
@@ -845,7 +843,7 @@
|
|
|
845
843
|
border-style: solid;
|
|
846
844
|
border-color: var(--white-900) transparent transparent transparent;
|
|
847
845
|
}
|
|
848
|
-
`;case"topLeft":return
|
|
846
|
+
`;case"topLeft":return t.css`
|
|
849
847
|
bottom: 100%;
|
|
850
848
|
left: 0;
|
|
851
849
|
transform: translateY(-15px);
|
|
@@ -859,7 +857,7 @@
|
|
|
859
857
|
border-style: solid;
|
|
860
858
|
border-color: var(--white-900) transparent transparent transparent;
|
|
861
859
|
}
|
|
862
|
-
`;case"topRight":return
|
|
860
|
+
`;case"topRight":return t.css`
|
|
863
861
|
bottom: 100%;
|
|
864
862
|
right: 0;
|
|
865
863
|
transform: translateY(-15px);
|
|
@@ -873,7 +871,7 @@
|
|
|
873
871
|
border-style: solid;
|
|
874
872
|
border-color: var(--white-900) transparent transparent transparent;
|
|
875
873
|
}
|
|
876
|
-
`;case"left":return
|
|
874
|
+
`;case"left":return t.css`
|
|
877
875
|
top: 50%;
|
|
878
876
|
right: 100%;
|
|
879
877
|
transform: translateY(-50%) translateX(-15px);
|
|
@@ -888,7 +886,7 @@
|
|
|
888
886
|
border-style: solid;
|
|
889
887
|
border-color: transparent transparent transparent var(--white-900);
|
|
890
888
|
}
|
|
891
|
-
`;case"leftTop":return
|
|
889
|
+
`;case"leftTop":return t.css`
|
|
892
890
|
top: 0;
|
|
893
891
|
right: 100%;
|
|
894
892
|
transform: translateX(-15px);
|
|
@@ -902,7 +900,7 @@
|
|
|
902
900
|
border-style: solid;
|
|
903
901
|
border-color: transparent transparent transparent var(--white-900);
|
|
904
902
|
}
|
|
905
|
-
`;case"leftBottom":return
|
|
903
|
+
`;case"leftBottom":return t.css`
|
|
906
904
|
bottom: 0;
|
|
907
905
|
right: 100%;
|
|
908
906
|
transform: translateX(-15px);
|
|
@@ -916,7 +914,7 @@
|
|
|
916
914
|
border-style: solid;
|
|
917
915
|
border-color: transparent transparent transparent var(--white-900);
|
|
918
916
|
}
|
|
919
|
-
`;case"right":return
|
|
917
|
+
`;case"right":return t.css`
|
|
920
918
|
top: 50%;
|
|
921
919
|
left: 100%;
|
|
922
920
|
transform: translateY(-50%) translateX(15px);
|
|
@@ -931,7 +929,7 @@
|
|
|
931
929
|
border-style: solid;
|
|
932
930
|
border-color: transparent var(--white-900) transparent transparent;
|
|
933
931
|
}
|
|
934
|
-
`;case"rightTop":return
|
|
932
|
+
`;case"rightTop":return t.css`
|
|
935
933
|
top: 0;
|
|
936
934
|
left: 100%;
|
|
937
935
|
transform: translateX(15px);
|
|
@@ -945,7 +943,7 @@
|
|
|
945
943
|
border-style: solid;
|
|
946
944
|
border-color: transparent var(--white-900) transparent transparent;
|
|
947
945
|
}
|
|
948
|
-
`;case"rightBottom":return
|
|
946
|
+
`;case"rightBottom":return t.css`
|
|
949
947
|
bottom: 0;
|
|
950
948
|
left: 100%;
|
|
951
949
|
transform: translateX(15px);
|
|
@@ -959,7 +957,7 @@
|
|
|
959
957
|
border-style: solid;
|
|
960
958
|
border-color: transparent var(--white-900) transparent transparent;
|
|
961
959
|
}
|
|
962
|
-
`;case"bottom":return
|
|
960
|
+
`;case"bottom":return t.css`
|
|
963
961
|
top: 100%;
|
|
964
962
|
left: 50%;
|
|
965
963
|
transform: translateX(-50%) translateY(15px);
|
|
@@ -974,7 +972,7 @@
|
|
|
974
972
|
border-style: solid;
|
|
975
973
|
border-color: transparent transparent var(--white-900) transparent;
|
|
976
974
|
}
|
|
977
|
-
`;case"bottomLeft":return
|
|
975
|
+
`;case"bottomLeft":return t.css`
|
|
978
976
|
top: 100%;
|
|
979
977
|
left: 0;
|
|
980
978
|
transform: translateY(15px);
|
|
@@ -988,7 +986,7 @@
|
|
|
988
986
|
border-style: solid;
|
|
989
987
|
border-color: transparent transparent var(--white-900) transparent;
|
|
990
988
|
}
|
|
991
|
-
`;case"bottomRight":return
|
|
989
|
+
`;case"bottomRight":return t.css`
|
|
992
990
|
top: 100%;
|
|
993
991
|
right: 0;
|
|
994
992
|
transform: translateY(15px);
|
|
@@ -1003,25 +1001,25 @@
|
|
|
1003
1001
|
border-color: transparent transparent var(--white-900) transparent;
|
|
1004
1002
|
}
|
|
1005
1003
|
`;default:return""}}}
|
|
1006
|
-
|
|
1004
|
+
`,$t=t.div`
|
|
1007
1005
|
padding: 12px 16px;
|
|
1008
1006
|
color: var(--black-800);
|
|
1009
1007
|
font-weight: 600;
|
|
1010
1008
|
font-size: 14px;
|
|
1011
1009
|
border-bottom: 1px solid var(--grey-100);
|
|
1012
|
-
`,
|
|
1010
|
+
`,St=t.div`
|
|
1013
1011
|
padding: 12px 16px;
|
|
1014
1012
|
color: var(--grey-600);
|
|
1015
1013
|
font-size: 14px;
|
|
1016
|
-
`,
|
|
1014
|
+
`,zt=t.div`
|
|
1017
1015
|
display: flex;
|
|
1018
1016
|
justify-content: flex-end;
|
|
1019
1017
|
gap: 8px;
|
|
1020
1018
|
padding: 8px 16px 12px;
|
|
1021
|
-
`,
|
|
1019
|
+
`,Bt=t.div`
|
|
1022
1020
|
position: relative;
|
|
1023
1021
|
display: inline-block;
|
|
1024
|
-
`,
|
|
1022
|
+
`,Ht=({title:t,description:o,onConfirm:i,onCancel:n,okText:a="OK",cancelText:s="Cancel",placement:l="top",children:c,className:d,okButtonProps:h,cancelButtonProps:p,...x})=>{const[u,g]=r.useState(!1),m=r.useRef(null);r.useEffect(()=>{const e=e=>{m.current&&!m.current.contains(e.target)&&g(!1)};return u&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[u]);const C=()=>{g(!u)};return e.jsxs(Bt,{ref:m,className:d,...x,children:[e.jsx("div",{onClick:C,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),C())},role:"button",tabIndex:0,children:c}),e.jsxs(Rt,{placement:l,$isVisible:u,children:[t&&e.jsx($t,{children:t}),o&&e.jsx(St,{children:o}),e.jsxs(zt,{children:[e.jsx(f,{variant:"tertiary",size:"small",onClick:e=>{g(!1),n?.(e)},...p,children:s}),e.jsx(f,{variant:"primary",size:"small",onClick:e=>{g(!1),i?.(e)},...h,children:a})]})]})]})};Ht.displayName="PopConfirm";const Ot=t.div`
|
|
1025
1023
|
display: flex;
|
|
1026
1024
|
align-items: center;
|
|
1027
1025
|
gap: 6px;
|
|
@@ -1032,19 +1030,19 @@
|
|
|
1032
1030
|
font-style: normal;
|
|
1033
1031
|
font-weight: 400;
|
|
1034
1032
|
line-height: 18px;
|
|
1035
|
-
`,
|
|
1033
|
+
`,Pt=()=>e.jsx(pe,{name:exports.IconName.CHECK_CIRCLE,fill:"var(--grey-600)"}),Dt=({children:t,showCheck:r=!1,className:o})=>e.jsxs(Ot,{className:o,children:[r&&e.jsx(Pt,{}),t]}),Vt={small:t.css`
|
|
1036
1034
|
font-family: "Inter", sans-serif;
|
|
1037
1035
|
font-size: 14px;
|
|
1038
1036
|
font-style: normal;
|
|
1039
1037
|
font-weight: 600;
|
|
1040
1038
|
line-height: 20px;
|
|
1041
|
-
`,medium:
|
|
1039
|
+
`,medium:t.css`
|
|
1042
1040
|
font-family: "Inter", sans-serif;
|
|
1043
1041
|
font-size: 16px;
|
|
1044
1042
|
font-style: normal;
|
|
1045
1043
|
font-weight: 500;
|
|
1046
1044
|
line-height: 24px;
|
|
1047
|
-
`},
|
|
1045
|
+
`},Ut=t.button`
|
|
1048
1046
|
position: relative;
|
|
1049
1047
|
display: inline-flex;
|
|
1050
1048
|
align-items: center;
|
|
@@ -1054,8 +1052,8 @@
|
|
|
1054
1052
|
border: none;
|
|
1055
1053
|
outline: none;
|
|
1056
1054
|
cursor: ${e=>e.disabled?"not-allowed":"pointer"};
|
|
1057
|
-
${e=>
|
|
1058
|
-
color: ${e=>e.disabled?"var(--grey-400)":e
|
|
1055
|
+
${e=>Vt[e.size]}
|
|
1056
|
+
color: ${e=>e.disabled?"var(--grey-400)":e.$active?"var(--blue-900)":"var(--grey-500)"};
|
|
1059
1057
|
transition: all 0.2s ease;
|
|
1060
1058
|
|
|
1061
1059
|
&:hover:not(:disabled) {
|
|
@@ -1070,7 +1068,7 @@
|
|
|
1070
1068
|
background-color: ${e=>e.disabled?"var(--grey-400)":"var(--blue-900)"};
|
|
1071
1069
|
bottom: 0;
|
|
1072
1070
|
left: 0;
|
|
1073
|
-
opacity: ${e=>e
|
|
1071
|
+
opacity: ${e=>e.$active?1:0};
|
|
1074
1072
|
transition: opacity 0.2s ease;
|
|
1075
1073
|
}
|
|
1076
1074
|
|
|
@@ -1078,7 +1076,7 @@
|
|
|
1078
1076
|
outline: none;
|
|
1079
1077
|
box-shadow: none;
|
|
1080
1078
|
}
|
|
1081
|
-
`,
|
|
1079
|
+
`,Gt=({label:t,active:r=!1,disabled:o=!1,size:i="medium",onClick:n})=>e.jsx(Ut,{$active:r,disabled:o,size:i,onClick:n,children:t}),Ft=t.td`
|
|
1082
1080
|
background-color: var(--white-900);
|
|
1083
1081
|
border-right: 1px solid var(--grey-200);
|
|
1084
1082
|
border-bottom: 1px solid var(--grey-200);
|
|
@@ -1097,7 +1095,7 @@
|
|
|
1097
1095
|
&:last-child {
|
|
1098
1096
|
border-right: 1px solid var(--grey-200);
|
|
1099
1097
|
}
|
|
1100
|
-
`,
|
|
1098
|
+
`,Kt=({children:t,align:r="left",width:o,className:i,ref:n,...a})=>e.jsx(Ft,{ref:n,align:r,width:o,className:i,...a,children:t}),Zt=t.th`
|
|
1101
1099
|
background-color: var(--grey-50);
|
|
1102
1100
|
border-right: 1px solid var(--grey-200);
|
|
1103
1101
|
border-bottom: 1px solid var(--grey-200);
|
|
@@ -1109,13 +1107,13 @@
|
|
|
1109
1107
|
&:last-child {
|
|
1110
1108
|
border-right: 1px solid var(--grey-200);
|
|
1111
1109
|
}
|
|
1112
|
-
`,
|
|
1110
|
+
`,Wt=t.div`
|
|
1113
1111
|
display: flex;
|
|
1114
1112
|
align-items: center;
|
|
1115
1113
|
gap: 4px;
|
|
1116
|
-
cursor: ${e=>e
|
|
1114
|
+
cursor: ${e=>e.$clickable?"pointer":"default"};
|
|
1117
1115
|
user-select: none;
|
|
1118
|
-
`,
|
|
1116
|
+
`,Yt=t.span`
|
|
1119
1117
|
font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
1120
1118
|
font-size: 13px;
|
|
1121
1119
|
font-weight: 600;
|
|
@@ -1123,11 +1121,11 @@
|
|
|
1123
1121
|
color: var(--grey-900);
|
|
1124
1122
|
white-space: nowrap;
|
|
1125
1123
|
flex-shrink: 0;
|
|
1126
|
-
`,
|
|
1124
|
+
`,Xt=t.svg`
|
|
1127
1125
|
width: 16px;
|
|
1128
1126
|
height: 16px;
|
|
1129
1127
|
flex-shrink: 0;
|
|
1130
|
-
`,
|
|
1128
|
+
`,qt=t.div`
|
|
1131
1129
|
padding: 10px 4px;
|
|
1132
1130
|
height: 35px;
|
|
1133
1131
|
box-sizing: border-box;
|
|
@@ -1142,19 +1140,19 @@
|
|
|
1142
1140
|
li {
|
|
1143
1141
|
text-align: left;
|
|
1144
1142
|
}
|
|
1145
|
-
`,
|
|
1143
|
+
`,Qt=({children:t,sortable:r=!1,sortDirection:o=null,onSort:i,filterable:n=!1,filterOptions:a=[],filterValue:s,onFilterChange:l,width:c,className:d,ref:h,...p})=>n?e.jsx(Zt,{ref:h,width:c,className:d,...p,children:e.jsx(qt,{children:e.jsx(He,{options:a,value:s,onChange:l,placeholder:"Placeholder",size:"small",width:"100%"})})}):e.jsx(Zt,{ref:h,width:c,className:d,...p,children:e.jsxs(Wt,{$clickable:r,onClick:()=>{r&&i&&i()},children:[e.jsx(Yt,{children:t}),r&&e.jsxs(Xt,{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M8 3.33337L10.6667 6.00004H5.33333L8 3.33337Z",fill:"asc"===o?"var(--grey-900)":"var(--grey-400)"}),e.jsx("path",{d:"M8 12.6667L5.33333 10H10.6667L8 12.6667Z",fill:"desc"===o?"var(--grey-900)":"var(--grey-400)"})]})]})}),Jt={xsmall:t.css`
|
|
1146
1144
|
min-height: ${e=>e.rows?"auto":"80px"};
|
|
1147
1145
|
padding: 10px;
|
|
1148
|
-
`,small:
|
|
1146
|
+
`,small:t.css`
|
|
1149
1147
|
min-height: ${e=>e.rows?"auto":"100px"};
|
|
1150
1148
|
padding: 12px;
|
|
1151
|
-
`},
|
|
1149
|
+
`},er=t.div`
|
|
1152
1150
|
position: relative;
|
|
1153
1151
|
display: inline-flex;
|
|
1154
1152
|
align-items: center;
|
|
1155
|
-
width: ${e=>e
|
|
1153
|
+
width: ${e=>e.$fullWidth?"100%":"auto"};
|
|
1156
1154
|
gap: 8px;
|
|
1157
|
-
`,
|
|
1155
|
+
`,tr=t.textarea`
|
|
1158
1156
|
width: 100%;
|
|
1159
1157
|
border-radius: 6px;
|
|
1160
1158
|
font-family: "Inter", sans-serif;
|
|
@@ -1162,30 +1160,30 @@
|
|
|
1162
1160
|
font-weight: 400;
|
|
1163
1161
|
line-height: 20px;
|
|
1164
1162
|
border: 1px solid
|
|
1165
|
-
${e=>e
|
|
1163
|
+
${e=>e.$error?"var(--red-error)":(e.disabled,"var(--grey-300)")};
|
|
1166
1164
|
background-color: ${e=>e.disabled?"var(--grey-200)":"var(--white-900)"};
|
|
1167
1165
|
color: ${e=>e.disabled?"var(--grey-400)":"var(--black-900)"};
|
|
1168
1166
|
transition: all 0.2s;
|
|
1169
1167
|
resize: vertical;
|
|
1170
1168
|
font-size: 14px;
|
|
1171
1169
|
|
|
1172
|
-
${e=>
|
|
1170
|
+
${e=>Jt[e.size||"small"]}
|
|
1173
1171
|
|
|
1174
1172
|
&:hover:not(:disabled):not(:focus) {
|
|
1175
|
-
border-color: ${e=>e
|
|
1173
|
+
border-color: ${e=>e.$error?"var(--red-error)":"var(--blue-600)"};
|
|
1176
1174
|
}
|
|
1177
1175
|
|
|
1178
1176
|
&:focus {
|
|
1179
1177
|
outline: none;
|
|
1180
1178
|
box-shadow: 0px 0px 0px 1px var(--white-900),
|
|
1181
1179
|
0px 0px 0px 3px var(--blue-600);
|
|
1182
|
-
border-color: ${e=>e
|
|
1180
|
+
border-color: ${e=>e.$error?"var(--red-error)":"var(--blue-600)"};
|
|
1183
1181
|
}
|
|
1184
1182
|
|
|
1185
1183
|
&:active {
|
|
1186
1184
|
outline: none;
|
|
1187
1185
|
box-shadow: 0px 0px 0px 2px var(--blue-200);
|
|
1188
|
-
border-color: ${e=>e
|
|
1186
|
+
border-color: ${e=>e.$error?"var(--red-error)":"var(--blue-600)"};
|
|
1189
1187
|
}
|
|
1190
1188
|
|
|
1191
1189
|
&:disabled {
|
|
@@ -1197,22 +1195,22 @@
|
|
|
1197
1195
|
&::placeholder {
|
|
1198
1196
|
color: var(--grey-400);
|
|
1199
1197
|
}
|
|
1200
|
-
`,
|
|
1198
|
+
`,rr={info:{backgroundColor:"var(--blue-100)",borderColor:"var(--blue-600)",iconColor:"var(--blue-600)"},success:{backgroundColor:"var(--green-bg)",borderColor:"var(--green-success)",iconColor:"var(--green-success)"},warning:{backgroundColor:"var(--orange-bg)",borderColor:"var(--orange-caution)",iconColor:"var(--orange-caution)"},danger:{backgroundColor:"var(--red-bg)",borderColor:"var(--red-error)",iconColor:"var(--red-error)"},default:{backgroundColor:"var(--white-900)",borderColor:"var(--grey-300)",iconColor:"var(--grey-600)"}},or=t.div`
|
|
1201
1199
|
display: flex;
|
|
1202
1200
|
padding: 8px;
|
|
1203
1201
|
gap: 8px;
|
|
1204
1202
|
align-items: flex-start;
|
|
1205
1203
|
border-radius: 8px;
|
|
1206
|
-
background-color: ${e=>
|
|
1207
|
-
border: 1px solid ${e=>
|
|
1204
|
+
background-color: ${e=>rr[e.type].backgroundColor};
|
|
1205
|
+
border: 1px solid ${e=>rr[e.type].borderColor};
|
|
1208
1206
|
width: 100%;
|
|
1209
1207
|
box-sizing: border-box;
|
|
1210
|
-
`,
|
|
1208
|
+
`,ir=t.div`
|
|
1211
1209
|
display: flex;
|
|
1212
1210
|
flex-direction: column;
|
|
1213
1211
|
gap: 4px;
|
|
1214
1212
|
flex: 1;
|
|
1215
|
-
`,
|
|
1213
|
+
`,nr=t.h3`
|
|
1216
1214
|
margin: 0;
|
|
1217
1215
|
color: var(--black-900);
|
|
1218
1216
|
font-family: "Inter", sans-serif;
|
|
@@ -1220,7 +1218,7 @@
|
|
|
1220
1218
|
font-style: normal;
|
|
1221
1219
|
font-weight: 400;
|
|
1222
1220
|
line-height: 24px;
|
|
1223
|
-
`,
|
|
1221
|
+
`,ar=t.p`
|
|
1224
1222
|
margin: 0;
|
|
1225
1223
|
color: var(--grey-500);
|
|
1226
1224
|
text-overflow: ellipsis;
|
|
@@ -1229,13 +1227,13 @@
|
|
|
1229
1227
|
font-style: normal;
|
|
1230
1228
|
font-weight: 400;
|
|
1231
1229
|
line-height: 18px;
|
|
1232
|
-
`,
|
|
1230
|
+
`,sr=({color:t})=>e.jsx(pe,{name:exports.IconName.INFORMATION_CIRCLE,fill:t}),lr=({color:t})=>e.jsx(pe,{name:exports.IconName.CHECK_CIRCLE,fill:t}),cr=({color:t})=>e.jsx(pe,{name:exports.IconName.EXCLAMATION_TRIANGLE,fill:t}),dr=({color:t})=>e.jsx(pe,{name:exports.IconName.EXCLAMATION_CIRCLE,fill:t}),hr=({color:t})=>e.jsx(pe,{name:exports.IconName.EXCLAMATION_TRIANGLE,fill:t}),pr=(t,r)=>{switch(t){case"info":return e.jsx(sr,{color:r});case"success":return e.jsx(lr,{color:r});case"warning":return e.jsx(cr,{color:r});case"danger":return e.jsx(dr,{color:r});default:return e.jsx(hr,{color:r})}},xr=({type:t="default",heading:r,description:o,className:i})=>e.jsxs(or,{type:t,className:i,children:[pr(t,rr[t].iconColor),e.jsxs(ir,{children:[e.jsx(nr,{children:r}),o&&e.jsx(ar,{children:o})]})]}),ur=t.div`
|
|
1233
1231
|
display: flex;
|
|
1234
1232
|
align-items: center;
|
|
1235
1233
|
gap: 8px;
|
|
1236
1234
|
opacity: ${({disabled:e})=>e?.6:1};
|
|
1237
1235
|
cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
|
|
1238
|
-
`,
|
|
1236
|
+
`,gr=t.div`
|
|
1239
1237
|
position: relative;
|
|
1240
1238
|
width: 32px;
|
|
1241
1239
|
height: 20px;
|
|
@@ -1245,7 +1243,7 @@
|
|
|
1245
1243
|
transition: all 0.2s ease;
|
|
1246
1244
|
cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
|
|
1247
1245
|
box-sizing: border-box;
|
|
1248
|
-
`,
|
|
1246
|
+
`,fr=t.div`
|
|
1249
1247
|
position: absolute;
|
|
1250
1248
|
top: 0px;
|
|
1251
1249
|
left: ${({checked:e})=>e?"12px":"0px"};
|
|
@@ -1255,7 +1253,7 @@
|
|
|
1255
1253
|
border-radius: 50%;
|
|
1256
1254
|
box-shadow: 0 1px 3px var(--black-300);
|
|
1257
1255
|
transition: all 0.2s ease;
|
|
1258
|
-
`,
|
|
1256
|
+
`,mr=t.span`
|
|
1259
1257
|
font-size: 16px;
|
|
1260
1258
|
font-style: normal;
|
|
1261
1259
|
font-weight: 400;
|
|
@@ -1263,7 +1261,21 @@
|
|
|
1263
1261
|
user-select: none;
|
|
1264
1262
|
pointer-events: none;
|
|
1265
1263
|
color: var(--grey-500);
|
|
1266
|
-
`,
|
|
1264
|
+
`,Cr=({checked:t=!1,onChange:o,disabled:i=!1,label:n,className:a})=>{const[s,l]=r.useState(t);return e.jsxs(ur,{disabled:i,className:a,onClick:()=>{if(i)return;const e=!s;l(e),o?.(e)},children:[e.jsx(gr,{checked:s,disabled:i,children:e.jsx(fr,{checked:s})}),n&&e.jsx(mr,{children:n})]})},br=["/data-workspace","/data-apps","/pipelines","/pipeline-edit/","/pipeline-details/","/pipeline-processing/","/file/","/file-details/","/files","/search","/search-classic","/artifacts/","/admin","/settings","/agent-studio"];function vr(){if("undefined"==typeof document||!document.referrer)return null;try{const e=new URL(document.referrer),t=e.pathname;for(const r of br){const o=t.indexOf(r);if(-1!==o){const r=t.slice(0,o).replace(/\/$/u,"");return`${e.origin}${r}`}}return e.origin}catch{return null}}function wr(e,t){try{const r=t.startsWith("/")?t:`/${t}`,o=new URL(e);return o.pathname=`${o.pathname.replace(/\/$/u,"")}${r}`,o.href}catch{return null}}function yr(e,t={}){if(t.newTab)window.open(e,"_blank","noopener,noreferrer");else{if(window.parent!==window)try{window.parent.location.href}catch{try{const t=new URL(e),r=`${t.pathname}${t.search}${t.hash}`;return void window.parent.postMessage({type:"navigate",path:r},"*")}catch{}}window.location.href=e}}const kr={fileDetails:e=>`/file/${e}`,pipelineEdit:e=>`/pipeline-edit/${e}`,pipelineDetails:e=>`/pipeline-details/${e}`,search:e=>e?`/search?q=${encodeURIComponent(e)}`:"/search",dataWorkspace:()=>"/data-workspace",dataApps:()=>"/data-apps",artifact:(e,t,r)=>`/artifacts/${e}/${t}/${r}`},jr=r.createContext(null);function Mr(){const e=r.useContext(jr);if(!e)throw new Error("useTdpNavigationContext must be used within a TdpNavigationProvider. Wrap your app with <TdpNavigationProvider> or use the standalone useTdpNavigation() hook instead.");return e}const Ir=t.a`
|
|
1265
|
+
color: var(--theme-primary, var(--blue-600));
|
|
1266
|
+
text-decoration: none;
|
|
1267
|
+
cursor: pointer;
|
|
1268
|
+
|
|
1269
|
+
&:hover {
|
|
1270
|
+
text-decoration: underline;
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
&:focus-visible {
|
|
1274
|
+
outline: 2px solid var(--blue-600);
|
|
1275
|
+
outline-offset: 2px;
|
|
1276
|
+
border-radius: 2px;
|
|
1277
|
+
}
|
|
1278
|
+
`,Er=t.div`
|
|
1267
1279
|
display: flex;
|
|
1268
1280
|
align-items: center;
|
|
1269
1281
|
justify-content: space-between;
|
|
@@ -1273,18 +1285,18 @@
|
|
|
1273
1285
|
box-sizing: border-box;
|
|
1274
1286
|
border-bottom: 1px solid var(--grey-200);
|
|
1275
1287
|
background-color: var(--white-900);
|
|
1276
|
-
`,
|
|
1288
|
+
`,Lr=t.div`
|
|
1277
1289
|
color: var(--black-900);
|
|
1278
1290
|
font-family: "Inter", sans-serif;
|
|
1279
1291
|
font-size: 18px;
|
|
1280
1292
|
font-style: normal;
|
|
1281
1293
|
font-weight: 500;
|
|
1282
1294
|
line-height: 28px;
|
|
1283
|
-
`,
|
|
1295
|
+
`,Nr=t.div`
|
|
1284
1296
|
display: flex;
|
|
1285
1297
|
align-items: center;
|
|
1286
1298
|
gap: 12px;
|
|
1287
|
-
`,
|
|
1299
|
+
`,_r=t.div`
|
|
1288
1300
|
display: flex;
|
|
1289
1301
|
align-items: center;
|
|
1290
1302
|
gap: 12px;
|
|
@@ -1294,7 +1306,7 @@
|
|
|
1294
1306
|
&:hover {
|
|
1295
1307
|
background-color: var(--grey-100);
|
|
1296
1308
|
}
|
|
1297
|
-
`,
|
|
1309
|
+
`,Ar=t.div`
|
|
1298
1310
|
width: 32px;
|
|
1299
1311
|
height: 32px;
|
|
1300
1312
|
border-radius: 50%;
|
|
@@ -1309,25 +1321,25 @@
|
|
|
1309
1321
|
font-weight: 500;
|
|
1310
1322
|
font-size: 14px;
|
|
1311
1323
|
font-family: "Inter", sans-serif;
|
|
1312
|
-
`,
|
|
1324
|
+
`,Tr=t.div`
|
|
1313
1325
|
font-family: "Inter", sans-serif;
|
|
1314
1326
|
color: var(--grey-400);
|
|
1315
1327
|
font-size: 16px;
|
|
1316
1328
|
font-style: normal;
|
|
1317
1329
|
font-weight: 400;
|
|
1318
1330
|
line-height: 24px;
|
|
1319
|
-
`,
|
|
1331
|
+
`,Rr=t(f)`
|
|
1320
1332
|
width: 32px;
|
|
1321
1333
|
height: 32px;
|
|
1322
1334
|
padding: 0;
|
|
1323
1335
|
min-height: 0;
|
|
1324
1336
|
border-radius: 4px;
|
|
1325
|
-
|
|
1337
|
+
`,$r=t.div`
|
|
1326
1338
|
height: 20px;
|
|
1327
1339
|
width: 1px;
|
|
1328
1340
|
background-color: var(--grey-200);
|
|
1329
1341
|
margin: 0;
|
|
1330
|
-
`,
|
|
1342
|
+
`,Sr=({hostname:t,userProfile:r,onHomeClick:o,onSettingsClick:i,onUserProfileClick:n})=>{return e.jsxs(Er,{children:[e.jsx(Lr,{children:t}),e.jsxs(Nr,{children:[e.jsx(Rr,{variant:"tertiary",size:"small",onClick:o,"aria-label":"Home",children:e.jsx(pe,{name:exports.IconName.HOME,width:"20",height:"20",fill:"var(--grey-600)"})}),e.jsx(Rr,{variant:"tertiary",size:"small",onClick:i,"aria-label":"Settings",children:e.jsx(pe,{name:exports.IconName.GEAR,width:"20",height:"20",fill:"var(--grey-600)"})}),e.jsx($r,{}),e.jsxs(_r,{onClick:n,children:[e.jsx(Ar,{src:r.avatar,children:!r.avatar&&(a=r.name,a.split(" ").map(e=>e.charAt(0)).join("").toUpperCase().substring(0,2))}),e.jsx(Tr,{children:r.name})]})]})]});var a},zr=t.div`
|
|
1331
1343
|
position: fixed;
|
|
1332
1344
|
top: 0;
|
|
1333
1345
|
left: 0;
|
|
@@ -1338,7 +1350,7 @@
|
|
|
1338
1350
|
display: flex;
|
|
1339
1351
|
align-items: center;
|
|
1340
1352
|
justify-content: center;
|
|
1341
|
-
`,
|
|
1353
|
+
`,Br=t.div`
|
|
1342
1354
|
background: var(--white-900);
|
|
1343
1355
|
border-radius: 20px;
|
|
1344
1356
|
box-shadow: 0 2px 16px var(--black-100);
|
|
@@ -1348,24 +1360,24 @@
|
|
|
1348
1360
|
padding: 0;
|
|
1349
1361
|
display: flex;
|
|
1350
1362
|
flex-direction: column;
|
|
1351
|
-
`,
|
|
1363
|
+
`,Hr=t.div`
|
|
1352
1364
|
display: flex;
|
|
1353
1365
|
align-items: center;
|
|
1354
1366
|
justify-content: space-between;
|
|
1355
1367
|
padding: 20px 24px 0 24px;
|
|
1356
|
-
`,
|
|
1368
|
+
`,Or=t.div`
|
|
1357
1369
|
display: flex;
|
|
1358
1370
|
align-items: center;
|
|
1359
1371
|
gap: 8px;
|
|
1360
|
-
`,
|
|
1372
|
+
`,Pr=t.span`
|
|
1361
1373
|
font-weight: 600;
|
|
1362
1374
|
font-size: 20px;
|
|
1363
|
-
`,
|
|
1375
|
+
`,Dr=t.button`
|
|
1364
1376
|
background: none;
|
|
1365
1377
|
border: none;
|
|
1366
1378
|
font-size: 20px;
|
|
1367
1379
|
cursor: pointer;
|
|
1368
|
-
`,
|
|
1380
|
+
`,Vr=t.div`
|
|
1369
1381
|
padding: 24px;
|
|
1370
1382
|
|
|
1371
1383
|
color: var(--black-900);
|
|
@@ -1374,7 +1386,7 @@
|
|
|
1374
1386
|
font-style: normal;
|
|
1375
1387
|
font-weight: 400;
|
|
1376
1388
|
line-height: 20px;
|
|
1377
|
-
`,
|
|
1389
|
+
`,Ur=t.div`
|
|
1378
1390
|
margin: 0 24px;
|
|
1379
1391
|
background: var(--blue-900);
|
|
1380
1392
|
color: var(--white-900);
|
|
@@ -1384,7 +1396,7 @@
|
|
|
1384
1396
|
font-weight: 500;
|
|
1385
1397
|
word-break: break-word;
|
|
1386
1398
|
box-shadow: 0 1px 4px var(--black-50);
|
|
1387
|
-
`,
|
|
1399
|
+
`,Gr=t.textarea`
|
|
1388
1400
|
width: 100%;
|
|
1389
1401
|
min-height: 48px;
|
|
1390
1402
|
background: transparent;
|
|
@@ -1400,17 +1412,17 @@
|
|
|
1400
1412
|
padding: 16px 20px;
|
|
1401
1413
|
border-radius: 12px;
|
|
1402
1414
|
box-sizing: border-box;
|
|
1403
|
-
`,
|
|
1415
|
+
`,Fr=t.div`
|
|
1404
1416
|
padding: 24px;
|
|
1405
1417
|
padding-bottom: 0;
|
|
1406
1418
|
flex: 1;
|
|
1407
|
-
|
|
1419
|
+
`,Kr=t.div`
|
|
1408
1420
|
border-radius: 20px;
|
|
1409
1421
|
overflow: hidden;
|
|
1410
1422
|
background: var(--blue-900);
|
|
1411
1423
|
min-height: 200px;
|
|
1412
1424
|
position: relative;
|
|
1413
|
-
`,
|
|
1425
|
+
`,Zr=t.div`
|
|
1414
1426
|
display: flex;
|
|
1415
1427
|
align-items: center;
|
|
1416
1428
|
gap: 12px;
|
|
@@ -1419,55 +1431,55 @@
|
|
|
1419
1431
|
background: var(--white-900);
|
|
1420
1432
|
border-bottom-left-radius: 20px;
|
|
1421
1433
|
border-bottom-right-radius: 20px;
|
|
1422
|
-
`,
|
|
1434
|
+
`,Wr=t(f)`
|
|
1423
1435
|
min-width: 100px;
|
|
1424
1436
|
display: flex;
|
|
1425
1437
|
align-items: center;
|
|
1426
1438
|
gap: 6px;
|
|
1427
|
-
`,
|
|
1439
|
+
`,Yr=t.div`
|
|
1428
1440
|
display: flex;
|
|
1429
|
-
flex-direction: ${e=>e
|
|
1441
|
+
flex-direction: ${e=>e.$vertical?"column":"row"};
|
|
1430
1442
|
border-radius: 6px;
|
|
1431
1443
|
overflow: hidden;
|
|
1432
1444
|
border: 1px solid var(--grey-200);
|
|
1433
1445
|
|
|
1434
1446
|
& > *:not(:last-child) {
|
|
1435
|
-
${e=>e
|
|
1447
|
+
${e=>e.$vertical?"border-bottom: 1px solid var(--grey-200);":"border-right: 1px solid var(--grey-200);"}
|
|
1436
1448
|
}
|
|
1437
1449
|
|
|
1438
|
-
${e=>e
|
|
1439
|
-
`,
|
|
1450
|
+
${e=>e.$vertical&&"\n width: 40px;\n "}
|
|
1451
|
+
`,Xr=t.div`
|
|
1440
1452
|
&:first-child {
|
|
1441
1453
|
button {
|
|
1442
|
-
${e=>e
|
|
1454
|
+
${e=>e.$vertical?"border-top-right-radius: 6px;border-top-left-radius: 6px;":"border-top-left-radius: 6px;border-bottom-left-radius: 6px;"}
|
|
1443
1455
|
}
|
|
1444
1456
|
}
|
|
1445
1457
|
|
|
1446
1458
|
&:last-child {
|
|
1447
1459
|
button {
|
|
1448
|
-
${e=>e
|
|
1460
|
+
${e=>e.$vertical?"border-bottom-right-radius: 6px;border-bottom-left-radius: 6px;":"border-top-right-radius: 6px;border-bottom-right-radius: 6px;"}
|
|
1449
1461
|
}
|
|
1450
1462
|
}
|
|
1451
|
-
`,
|
|
1463
|
+
`,qr=t.div`
|
|
1452
1464
|
padding: 20px 16px;
|
|
1453
1465
|
border-radius: 8px;
|
|
1454
1466
|
background-color: ${e=>(e=>{switch(e){case"active":return"var(--blue-100)";case"hover":return"var(--grey-100)";default:return"transparent"}})(e.status)};
|
|
1455
1467
|
cursor: ${e=>"disabled"===e.status?"not-allowed":"pointer"};
|
|
1456
1468
|
transition: background-color 0.2s ease;
|
|
1457
1469
|
|
|
1458
|
-
${e=>"default"===e.status&&
|
|
1470
|
+
${e=>"default"===e.status&&t.css`
|
|
1459
1471
|
&:hover {
|
|
1460
1472
|
background-color: var(--grey-100);
|
|
1461
1473
|
}
|
|
1462
1474
|
`}
|
|
1463
|
-
`,
|
|
1475
|
+
`,Qr=t.h3`
|
|
1464
1476
|
margin: 0 0 4px 0;
|
|
1465
1477
|
font-family: "Inter", sans-serif;
|
|
1466
1478
|
font-size: 16px;
|
|
1467
1479
|
font-weight: 600;
|
|
1468
1480
|
line-height: 24px;
|
|
1469
1481
|
color: ${e=>"disabled"===e.status?"var(--grey-400)":"var(--black-900)"};
|
|
1470
|
-
`,
|
|
1482
|
+
`,Jr=t.p`
|
|
1471
1483
|
margin: 0 0 16px 0;
|
|
1472
1484
|
font-family: "Inter", sans-serif;
|
|
1473
1485
|
font-size: 13px;
|
|
@@ -1476,13 +1488,13 @@
|
|
|
1476
1488
|
line-height: 18px;
|
|
1477
1489
|
line-height: 20px;
|
|
1478
1490
|
color: ${e=>(e.status,"var(--grey-400)")};
|
|
1479
|
-
`,
|
|
1491
|
+
`,eo=t.div`
|
|
1480
1492
|
display: flex;
|
|
1481
1493
|
align-items: center;
|
|
1482
1494
|
gap: 16px;
|
|
1483
|
-
`,
|
|
1495
|
+
`,to=t(f)`
|
|
1484
1496
|
flex-shrink: 0;
|
|
1485
|
-
`,
|
|
1497
|
+
`,ro=t.a`
|
|
1486
1498
|
font-family: "Inter", sans-serif;
|
|
1487
1499
|
font-size: 13px;
|
|
1488
1500
|
font-style: normal;
|
|
@@ -1495,32 +1507,36 @@
|
|
|
1495
1507
|
&:hover {
|
|
1496
1508
|
text-decoration: ${e=>"disabled"===e.status?"none":"underline"};
|
|
1497
1509
|
}
|
|
1498
|
-
`,
|
|
1510
|
+
`,oo=({title:t,description:r,buttonText:o,linkText:i,status:n="default",onButtonClick:a,onLinkClick:s,className:l,ref:c})=>e.jsxs(qr,{ref:c,status:n,className:l,children:[e.jsx(Qr,{status:n,children:t}),r&&e.jsx(Jr,{status:n,children:r}),e.jsxs(eo,{children:[o&&e.jsx(to,{variant:"secondary",size:"small",disabled:"disabled"===n,onClick:e=>{e.stopPropagation(),"disabled"!==n&&a&&a()},leftIcon:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("rect",{x:"3",y:"3",width:"10",height:"10",rx:"2",fill:"currentColor"})}),children:o}),i&&e.jsx(ro,{status:n,onClick:e=>{e.stopPropagation(),"disabled"!==n&&s&&s()},href:"disabled"===n?void 0:"#",children:i})]})]}),io=t.div`
|
|
1499
1511
|
display: flex;
|
|
1500
1512
|
align-items: center;
|
|
1501
1513
|
flex-direction: row;
|
|
1502
1514
|
gap: 16px;
|
|
1503
1515
|
flex-wrap: wrap;
|
|
1504
1516
|
width: 100%;
|
|
1505
|
-
`,
|
|
1517
|
+
`,no=t.div`
|
|
1506
1518
|
margin: 16px 0;
|
|
1507
|
-
`,
|
|
1519
|
+
`,ao=t.span`
|
|
1508
1520
|
font-size: 12px;
|
|
1509
1521
|
color: var(--grey-400);
|
|
1510
|
-
`,
|
|
1522
|
+
`,so=t.div`
|
|
1523
|
+
& > button {
|
|
1524
|
+
height: 38px;
|
|
1525
|
+
}
|
|
1526
|
+
`,lo=t.div`
|
|
1511
1527
|
display: flex;
|
|
1512
1528
|
flex-direction: column;
|
|
1513
1529
|
gap: 6px;
|
|
1514
1530
|
width: 100%;
|
|
1515
|
-
`,
|
|
1531
|
+
`,co=t(ht)`
|
|
1516
1532
|
margin-bottom: 2px;
|
|
1517
|
-
`,
|
|
1533
|
+
`,ho=t.div``,po=t.div`
|
|
1518
1534
|
display: flex;
|
|
1519
1535
|
align-items: center;
|
|
1520
1536
|
justify-content: space-between;
|
|
1521
1537
|
margin-bottom: 16px;
|
|
1522
1538
|
background-color: var(--grey-100);
|
|
1523
|
-
`,
|
|
1539
|
+
`,xo=t.h1`
|
|
1524
1540
|
color: var(--black-900);
|
|
1525
1541
|
font-family: "Inter", sans-serif;
|
|
1526
1542
|
font-size: 18px;
|
|
@@ -1528,23 +1544,23 @@
|
|
|
1528
1544
|
font-weight: 600;
|
|
1529
1545
|
line-height: 28px;
|
|
1530
1546
|
margin: 0;
|
|
1531
|
-
`,
|
|
1547
|
+
`,uo=t.div`
|
|
1532
1548
|
display: flex;
|
|
1533
1549
|
align-items: center;
|
|
1534
1550
|
gap: 16px;
|
|
1535
|
-
`,
|
|
1551
|
+
`,go=t.div`
|
|
1536
1552
|
display: flex;
|
|
1537
1553
|
align-items: center;
|
|
1538
|
-
`,
|
|
1554
|
+
`,fo=t.div`
|
|
1539
1555
|
width: 1px;
|
|
1540
1556
|
height: 20px;
|
|
1541
1557
|
background-color: var(--grey-200);
|
|
1542
|
-
`,
|
|
1558
|
+
`,mo=t.div`
|
|
1543
1559
|
position: relative;
|
|
1544
1560
|
width: 100%;
|
|
1545
1561
|
max-width: 100%;
|
|
1546
1562
|
margin-bottom: 16px;
|
|
1547
|
-
`,
|
|
1563
|
+
`,Co=({initialCode:t="protocolSchema: v3\nname: v3\ndescription: No description\nconfig: {}\nsteps: []",onDeploy:o,versions:i=["v0.0.7","v0.0.6","v0.0.5"],currentVersion:n="v0.0.7",onVersionChange:a=()=>{}})=>{const[s,l]=r.useState(t),[c,d]=r.useState(!0),[h,p]=r.useState(!1),[x,u]=r.useState(!1),[g,m]=r.useState(!1),[C,b]=r.useState(!1);return e.jsxs(ho,{children:[e.jsxs(po,{children:[e.jsx(xo,{children:"Launch"}),e.jsxs(uo,{children:[e.jsx(Cr,{checked:c,onChange:d,label:"Overwrite Mode",disabled:h}),e.jsx(fo,{}),e.jsx(go,{children:e.jsx(He,{options:i.map(e=>({label:e,value:e})),value:n,onChange:e=>a(e),width:"150px",size:"small",disabled:h})}),e.jsx(f,{variant:"primary",size:"medium",onClick:()=>{p(!0),u(!0),m(!1),b(!1),setTimeout(()=>{u(!1);Math.random()>.3?(m(!0),b(!1)):(m(!1),b(!0)),p(!1),o&&o(),setTimeout(()=>{m(!1),b(!1)},5e3)},3e3)},disabled:h,children:"Deploy"})]})]}),x&&e.jsx(mo,{children:e.jsx(xr,{type:"info",heading:"Building Protocol: Status=IN_PROGRESS, Phase=FINALIZING"})}),g&&e.jsx(mo,{children:e.jsx(xr,{type:"success",heading:`Pipeline visual-pipeline-builder-protocol-${n}-pipeline deployed successfully! Deployment complete`})}),C&&e.jsx(mo,{children:e.jsx(xr,{type:"danger",heading:`Failed to deploy pipeline visual-pipeline-builder-protocol-${n}-pipeline. Please try again.`})}),e.jsx(Ne,{value:s,onChange:e=>{void 0!==e&&l(e)},language:"yaml",theme:"light",width:"100%",onCopy:e=>{navigator.clipboard.writeText(e)},onLaunch:e=>{console.log("Launching code:",e)},disabled:!c})]})},bo=t.div`
|
|
1548
1564
|
width: 100%;
|
|
1549
1565
|
border-radius: 8px;
|
|
1550
1566
|
overflow: hidden;
|
|
@@ -1552,7 +1568,7 @@
|
|
|
1552
1568
|
0px 2px 4px -2px var(--black-100);
|
|
1553
1569
|
background-color: var(--white-900);
|
|
1554
1570
|
border: 1px solid var(--grey-200);
|
|
1555
|
-
`,
|
|
1571
|
+
`,vo=t.div`
|
|
1556
1572
|
padding: 8px 16px;
|
|
1557
1573
|
font-family: "Inter", sans-serif;
|
|
1558
1574
|
font-size: 12px;
|
|
@@ -1561,10 +1577,10 @@
|
|
|
1561
1577
|
line-height: 16px;
|
|
1562
1578
|
color: var(--grey-600);
|
|
1563
1579
|
border-bottom: 1px solid var(--grey-200);
|
|
1564
|
-
`,
|
|
1580
|
+
`,wo=t.div`
|
|
1565
1581
|
display: flex;
|
|
1566
1582
|
flex-direction: column;
|
|
1567
|
-
`,
|
|
1583
|
+
`,yo=t.div`
|
|
1568
1584
|
display: flex;
|
|
1569
1585
|
align-items: center;
|
|
1570
1586
|
background-color: var(--blue-900);
|
|
@@ -1574,11 +1590,11 @@
|
|
|
1574
1590
|
box-sizing: border-box;
|
|
1575
1591
|
color: var(--white-900);
|
|
1576
1592
|
gap: 40px;
|
|
1577
|
-
`,
|
|
1593
|
+
`,ko=t.div`
|
|
1578
1594
|
display: flex;
|
|
1579
1595
|
align-items: center;
|
|
1580
1596
|
height: 100%;
|
|
1581
|
-
`,
|
|
1597
|
+
`,jo=t.div`
|
|
1582
1598
|
text-transform: uppercase;
|
|
1583
1599
|
margin-bottom: 2px;
|
|
1584
1600
|
color: var(--white-900);
|
|
@@ -1588,49 +1604,49 @@
|
|
|
1588
1604
|
line-height: 16px;
|
|
1589
1605
|
letter-spacing: 0.2px;
|
|
1590
1606
|
font-family: "Inter", sans-serif;
|
|
1591
|
-
`,
|
|
1607
|
+
`,Mo=t.div`
|
|
1592
1608
|
font-size: 14px;
|
|
1593
1609
|
font-style: normal;
|
|
1594
1610
|
font-weight: 500;
|
|
1595
1611
|
line-height: 22px;
|
|
1596
1612
|
font-family: "Inter", sans-serif;
|
|
1597
|
-
`,
|
|
1613
|
+
`,Io=t.div`
|
|
1598
1614
|
color: var(--grey-400);
|
|
1599
1615
|
font-size: 12px;
|
|
1600
1616
|
font-style: italic;
|
|
1601
1617
|
font-weight: 500;
|
|
1602
1618
|
line-height: 16px;
|
|
1603
1619
|
font-family: "Inter", sans-serif;
|
|
1604
|
-
`,
|
|
1620
|
+
`,Eo=t.div`
|
|
1605
1621
|
display: flex;
|
|
1606
1622
|
flex-direction: column;
|
|
1607
|
-
`,
|
|
1623
|
+
`,Lo=t.div`
|
|
1608
1624
|
display: flex;
|
|
1609
1625
|
align-items: center;
|
|
1610
1626
|
justify-content: center;
|
|
1611
|
-
`,
|
|
1627
|
+
`,No=t.div`
|
|
1612
1628
|
display: flex;
|
|
1613
1629
|
align-items: center;
|
|
1614
1630
|
padding: 6px 0;
|
|
1615
1631
|
border-radius: 4px;
|
|
1616
1632
|
gap: 8px;
|
|
1617
|
-
`,
|
|
1633
|
+
`,_o=t.div`
|
|
1618
1634
|
font-family: "Inter", sans-serif;
|
|
1619
1635
|
color: var(--grey-400);
|
|
1620
1636
|
font-size: 14px;
|
|
1621
1637
|
font-style: normal;
|
|
1622
1638
|
font-weight: 500;
|
|
1623
1639
|
line-height: 22px;
|
|
1624
|
-
`,
|
|
1640
|
+
`,Ao=t.div`
|
|
1625
1641
|
display: flex;
|
|
1626
1642
|
align-items: center;
|
|
1627
1643
|
justify-content: center;
|
|
1628
|
-
`,
|
|
1644
|
+
`,To=t.div`
|
|
1629
1645
|
display: flex;
|
|
1630
1646
|
align-items: center;
|
|
1631
1647
|
gap: 8px;
|
|
1632
1648
|
width: 320px;
|
|
1633
|
-
`,
|
|
1649
|
+
`,Ro=()=>e.jsx("div",{style:{borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx(pe,{name:exports.IconName.BUILDING,fill:"var(--white-900)",width:"20",height:"20"})}),$o=()=>e.jsx(pe,{name:exports.IconName.LAMP,fill:"var(--white-900)",width:"20",height:"20"}),So=({organization:t})=>e.jsxs(yo,{children:[e.jsx(ko,{children:e.jsxs(Eo,{children:[e.jsx(jo,{children:"ORGANIZATION"}),e.jsxs(To,{children:[e.jsx(Lo,{children:t.logo||e.jsx(Ro,{})}),e.jsxs("div",{children:[e.jsx(Mo,{children:t.name}),t.subtext&&e.jsx(Io,{children:t.subtext})]})]})]})}),e.jsx(ko,{children:e.jsxs(Eo,{children:[e.jsx(jo,{children:"PROJECT"}),e.jsxs(No,{children:[e.jsx(Ao,{children:e.jsx($o,{})}),e.jsx(_o,{children:"Not Selected"})]})]})})]}),zo=t.div`
|
|
1634
1650
|
display: flex;
|
|
1635
1651
|
align-items: center;
|
|
1636
1652
|
justify-content: space-between;
|
|
@@ -1638,50 +1654,50 @@
|
|
|
1638
1654
|
padding: 0 0 24px;
|
|
1639
1655
|
border-top-left-radius: 24px;
|
|
1640
1656
|
border-top-right-radius: 24px;
|
|
1641
|
-
`,
|
|
1657
|
+
`,Bo=t.h2`
|
|
1642
1658
|
color: var(--blue-900);
|
|
1643
1659
|
font-family: "Inter", sans-serif;
|
|
1644
1660
|
font-size: 20px;
|
|
1645
1661
|
font-weight: 600;
|
|
1646
1662
|
line-height: 28px;
|
|
1647
1663
|
margin: 0;
|
|
1648
|
-
`,
|
|
1664
|
+
`,Ho=t.div`
|
|
1649
1665
|
display: flex;
|
|
1650
1666
|
align-items: center;
|
|
1651
1667
|
gap: 8px;
|
|
1652
1668
|
color: var(--grey-600);
|
|
1653
1669
|
font-size: 15px;
|
|
1654
1670
|
font-weight: 500;
|
|
1655
|
-
`,
|
|
1671
|
+
`,Oo=t.div`
|
|
1656
1672
|
background-color: var(--white-900);
|
|
1657
1673
|
border-radius: 24px;
|
|
1658
1674
|
border: 1px solid var(--grey-200);
|
|
1659
1675
|
width: 100%;
|
|
1660
|
-
`,
|
|
1676
|
+
`,Po=t.div`
|
|
1661
1677
|
display: flex;
|
|
1662
1678
|
align-items: center;
|
|
1663
1679
|
border-bottom: 1px solid var(--grey-200);
|
|
1664
1680
|
padding-bottom: 16px;
|
|
1665
1681
|
padding: 12px 24px;
|
|
1666
|
-
`,
|
|
1682
|
+
`,Do=t.h3`
|
|
1667
1683
|
color: var(--blue-900);
|
|
1668
1684
|
font-family: "Inter", sans-serif;
|
|
1669
1685
|
font-size: 20px;
|
|
1670
1686
|
font-weight: 600;
|
|
1671
1687
|
line-height: 28px;
|
|
1672
1688
|
margin: 0;
|
|
1673
|
-
`,
|
|
1689
|
+
`,Vo=t.div`
|
|
1674
1690
|
padding: 20px 24px 36px 24px;
|
|
1675
|
-
`,
|
|
1691
|
+
`,Uo=t.div`
|
|
1676
1692
|
display: flex;
|
|
1677
1693
|
flex-direction: column;
|
|
1678
1694
|
align-items: flex-start;
|
|
1679
1695
|
gap: 16px;
|
|
1680
|
-
`,
|
|
1696
|
+
`,Go=t.div`
|
|
1681
1697
|
color: var(--grey-400);
|
|
1682
1698
|
font-size: 14px;
|
|
1683
1699
|
font-weight: 500;
|
|
1684
|
-
`,
|
|
1700
|
+
`,Fo=({className:t})=>{const[o,i]=r.useState(!1);return e.jsxs("div",{className:t,children:[e.jsxs(zo,{children:[e.jsx(Bo,{children:"Protocol Configuration"}),e.jsx(Ho,{children:e.jsx(Cr,{label:"Edit Mode",checked:o,onChange:()=>i(e=>!e)})})]}),e.jsxs(Oo,{children:[e.jsx(Po,{children:e.jsx(Do,{children:"Configuration"})}),e.jsx(Vo,{children:o?e.jsx(f,{variant:"secondary",size:"medium",leftIcon:e.jsx(pe,{name:exports.IconName.PLUS,width:"20",height:"20",fill:"var(--blue-600)"}),children:"Add Input"}):e.jsx(Uo,{children:e.jsx(Go,{children:"No values, Use the 'edit' button to add values"})})})]})]})},Ko=t.div`
|
|
1685
1701
|
display: flex;
|
|
1686
1702
|
flex-direction: column;
|
|
1687
1703
|
align-items: flex-start;
|
|
@@ -1689,44 +1705,44 @@
|
|
|
1689
1705
|
gap: 16px;
|
|
1690
1706
|
width: 928px;
|
|
1691
1707
|
background: transparent;
|
|
1692
|
-
`,
|
|
1708
|
+
`,Zo=t.div`
|
|
1693
1709
|
display: flex;
|
|
1694
1710
|
flex-direction: row;
|
|
1695
1711
|
justify-content: space-between;
|
|
1696
1712
|
align-items: center;
|
|
1697
1713
|
width: 928px;
|
|
1698
1714
|
height: 36px;
|
|
1699
|
-
`,
|
|
1715
|
+
`,Wo=t.span`
|
|
1700
1716
|
font-family: "Inter", sans-serif;
|
|
1701
1717
|
font-weight: 600;
|
|
1702
1718
|
font-size: 18px;
|
|
1703
1719
|
line-height: 28px;
|
|
1704
1720
|
color: var(--black-900);
|
|
1705
|
-
`,
|
|
1721
|
+
`,Yo=t.div`
|
|
1706
1722
|
display: flex;
|
|
1707
1723
|
flex-direction: row;
|
|
1708
1724
|
align-items: center;
|
|
1709
1725
|
gap: 16px;
|
|
1710
1726
|
justify-content: flex-end;
|
|
1711
|
-
`,
|
|
1727
|
+
`,Xo=t.div`
|
|
1712
1728
|
width: 1px;
|
|
1713
1729
|
height: 20px;
|
|
1714
1730
|
background: var(--grey-200);
|
|
1715
|
-
`,
|
|
1731
|
+
`,qo=t.div`
|
|
1716
1732
|
width: 100%;
|
|
1717
|
-
`,
|
|
1733
|
+
`,Qo=t(Cr)`
|
|
1718
1734
|
min-width: 176px;
|
|
1719
|
-
`,
|
|
1735
|
+
`,Jo=t(He)``,ei=t.div`
|
|
1720
1736
|
padding: 12px 0;
|
|
1721
1737
|
flex: 1;
|
|
1722
|
-
`,
|
|
1738
|
+
`,ti=t.div`
|
|
1723
1739
|
display: flex;
|
|
1724
1740
|
flex-direction: column;
|
|
1725
1741
|
gap: 6px;
|
|
1726
1742
|
width: 100%;
|
|
1727
|
-
`,
|
|
1743
|
+
`,ri=t(ht)`
|
|
1728
1744
|
margin-bottom: 2px;
|
|
1729
|
-
`,
|
|
1745
|
+
`,oi=t.div`
|
|
1730
1746
|
width: 104px;
|
|
1731
1747
|
height: 100%;
|
|
1732
1748
|
background-color: var(--blue-900);
|
|
@@ -1734,7 +1750,7 @@
|
|
|
1734
1750
|
flex-direction: column;
|
|
1735
1751
|
align-items: center;
|
|
1736
1752
|
padding: 0;
|
|
1737
|
-
`,
|
|
1753
|
+
`,ii=t.div`
|
|
1738
1754
|
width: 100%;
|
|
1739
1755
|
display: inline-flex;
|
|
1740
1756
|
flex-direction: column;
|
|
@@ -1742,18 +1758,18 @@
|
|
|
1742
1758
|
padding: 12px 0;
|
|
1743
1759
|
cursor: pointer;
|
|
1744
1760
|
transition: background-color 0.2s ease;
|
|
1745
|
-
background-color: ${e=>e
|
|
1761
|
+
background-color: ${e=>e.$active?"var(--white-100)":"transparent"};
|
|
1746
1762
|
|
|
1747
1763
|
&:hover {
|
|
1748
1764
|
background-color: var(--white-50);
|
|
1749
1765
|
}
|
|
1750
|
-
`,
|
|
1766
|
+
`,ni=t.div`
|
|
1751
1767
|
display: flex;
|
|
1752
1768
|
justify-content: center;
|
|
1753
1769
|
align-items: center;
|
|
1754
1770
|
margin-bottom: 10px;
|
|
1755
1771
|
color: var(--white-900);
|
|
1756
|
-
`,
|
|
1772
|
+
`,ai=t.div`
|
|
1757
1773
|
color: var(--white-900);
|
|
1758
1774
|
text-align: center;
|
|
1759
1775
|
font-family: "Inter", sans-serif;
|
|
@@ -1763,29 +1779,29 @@
|
|
|
1763
1779
|
line-height: 16px;
|
|
1764
1780
|
text-align: center;
|
|
1765
1781
|
padding: 0 8px;
|
|
1766
|
-
`,
|
|
1782
|
+
`,si=({icon:t,label:r,active:o,onClick:i})=>e.jsxs(ii,{$active:o,onClick:i,children:[e.jsx(ni,{children:e.jsx(pe,{name:t,fill:"var(--white-900)",width:"20",height:"20"})}),e.jsx(ai,{children:r})]}),li=({items:t,activeItem:r,onItemClick:o})=>e.jsx(oi,{children:t.map(t=>e.jsx(si,{icon:t.icon,label:t.label,active:r===t.label,onClick:()=>{return e=t.label,void(o&&o(e));var e}},t.label))}),ci=t.div`
|
|
1767
1783
|
width: 100%;
|
|
1768
1784
|
border: 1px solid var(--grey-200);
|
|
1769
1785
|
border-radius: 8px;
|
|
1770
1786
|
overflow: visible;
|
|
1771
1787
|
background-color: var(--white-900);
|
|
1772
|
-
`,
|
|
1788
|
+
`,di=t.table`
|
|
1773
1789
|
width: 100%;
|
|
1774
1790
|
border-collapse: collapse;
|
|
1775
1791
|
border-spacing: 0;
|
|
1776
|
-
`,
|
|
1777
|
-
cursor: ${e=>e
|
|
1792
|
+
`,hi=t.tbody``,pi=t.tr`
|
|
1793
|
+
cursor: ${e=>e.$selectable?"pointer":"default"};
|
|
1778
1794
|
|
|
1779
1795
|
&:hover {
|
|
1780
|
-
background-color: ${e=>e
|
|
1796
|
+
background-color: ${e=>e.$selectable?"var(--grey-50)":"transparent"};
|
|
1781
1797
|
}
|
|
1782
|
-
`,
|
|
1798
|
+
`,xi=t(Kt)`
|
|
1783
1799
|
width: 40px;
|
|
1784
1800
|
padding: 10px 12px;
|
|
1785
|
-
`,
|
|
1801
|
+
`,ui=t(Qt)`
|
|
1786
1802
|
width: 40px;
|
|
1787
1803
|
padding: 8px 12px;
|
|
1788
|
-
`,
|
|
1804
|
+
`,gi=t.div`
|
|
1789
1805
|
display: flex;
|
|
1790
1806
|
align-items: center;
|
|
1791
1807
|
justify-content: center;
|
|
@@ -1794,7 +1810,7 @@
|
|
|
1794
1810
|
height: 40px;
|
|
1795
1811
|
background-color: var(--grey-50);
|
|
1796
1812
|
border-top: 1px solid var(--grey-200);
|
|
1797
|
-
`,
|
|
1813
|
+
`,fi=t.button`
|
|
1798
1814
|
display: flex;
|
|
1799
1815
|
align-items: center;
|
|
1800
1816
|
justify-content: center;
|
|
@@ -1815,11 +1831,11 @@
|
|
|
1815
1831
|
width: 20px;
|
|
1816
1832
|
height: 20px;
|
|
1817
1833
|
}
|
|
1818
|
-
`,
|
|
1834
|
+
`,mi=t.div`
|
|
1819
1835
|
display: flex;
|
|
1820
1836
|
align-items: center;
|
|
1821
1837
|
gap: 0;
|
|
1822
|
-
`,
|
|
1838
|
+
`,Ci=t.button`
|
|
1823
1839
|
display: flex;
|
|
1824
1840
|
align-items: center;
|
|
1825
1841
|
justify-content: center;
|
|
@@ -1828,7 +1844,7 @@
|
|
|
1828
1844
|
padding: 0;
|
|
1829
1845
|
border: none;
|
|
1830
1846
|
border-radius: 6px;
|
|
1831
|
-
background-color: ${e=>e
|
|
1847
|
+
background-color: ${e=>e.$active?"var(--grey-100)":"transparent"};
|
|
1832
1848
|
font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
1833
1849
|
font-size: 13px;
|
|
1834
1850
|
font-weight: 500;
|
|
@@ -1839,7 +1855,7 @@
|
|
|
1839
1855
|
&:hover:not(:disabled) {
|
|
1840
1856
|
background-color: var(--grey-100);
|
|
1841
1857
|
}
|
|
1842
|
-
`;function
|
|
1858
|
+
`;function bi({columns:t,data:o,pageSize:i=10,rowKey:n,selectable:a=!1,onRowSelect:s,sortKey:l,sortDirection:c,onSort:d,currentPage:h,onPageChange:p,totalItems:x,selectedRows:u,className:g}){const[f,m]=r.useState(null),[C,b]=r.useState(null),[v,w]=r.useState(1),[y,k]=r.useState([]),[j,M]=r.useState({}),I=void 0!==l,E=void 0!==h,L=void 0!==u,N=I?l:f,_=I?c:C,A=E?h:v,T=L?u:y,R=r.useMemo(()=>{let e=[...o];return Object.entries(j).forEach(([t,r])=>{r&&(e=e.filter(e=>{const o=e[t];return o?.toString()===r}))}),e},[o,j]),$=r.useMemo(()=>N&&_?[...R].sort((e,t)=>{const r=e[N],o=t[N];if(r===o)return 0;let i=0;return i="number"==typeof r&&"number"==typeof o?r-o:String(r).localeCompare(String(o)),"asc"===_?i:-i}):R,[R,N,_]),S=-1===i?1:Math.ceil((x||$.length)/i),z=r.useMemo(()=>{if(void 0!==x)return $;if(-1===i)return $;const e=(A-1)*i;return $.slice(e,e+i)},[$,A,i,x]);r.useEffect(()=>{E||w(1)},[j,N,_,E]);const B=e=>{E&&p?p(e):w(e)},H=(e,t)=>n?"function"==typeof n?n(e):e[n]:t,O=(e,t)=>{const r=t?[...T,e]:T.filter(t=>t!==e);L&&s||k(r),s(r)},P=e=>T.some(t=>H(t,0)===H(e,0)),D=$.length>0&&$.every(e=>P(e));return e.jsxs(ci,{className:g,children:[e.jsxs(di,{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[a&&e.jsx(ui,{children:e.jsx(Ce,{checked:D,onChange:e=>{const t=e?[...$]:[];L&&s||k(t),s(t)},noPadding:!0})}),t.map(t=>e.jsx(Qt,{width:t.width,sortable:t.sortable,sortDirection:N===t.key&&_||null,onSort:t.sortable?()=>{return e=t.key,void(I&&d?d(e,N===e&&"asc"===_?"desc":"asc"):N===e?"asc"===_?b("desc"):(m(null),b(null)):(m(e),b("asc")));var e}:void 0,filterable:t.filterable,filterOptions:t.filterOptions,filterValue:j[t.key]||"",onFilterChange:t.filterable?e=>((e,t)=>{M(r=>({...r,[e]:t}))})(t.key,e):void 0,children:t.header},t.key))]})}),e.jsx(hi,{children:z.map((r,o)=>e.jsxs(pi,{$selectable:a,onClick:a?()=>O(r,!P(r)):void 0,children:[a&&e.jsx(xi,{children:e.jsx(Ce,{checked:P(r),onChange:e=>O(r,e),noPadding:!0,onClick:e=>e.stopPropagation()})}),t.map(t=>{const i=r[t.key],n=t.render?t.render(i,r,o):i;return e.jsx(Kt,{align:t.align,children:n},t.key)})]},H(r,o)))})]}),-1!==i&&S>1&&e.jsxs(gi,{children:[e.jsx(fi,{disabled:1===A,onClick:()=>B(A-1),"aria-label":"Previous page",children:e.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M12.5 15L7.5 10L12.5 5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),e.jsx(mi,{children:(()=>{const e=[];if(S<=5)for(let t=1;t<=S;t++)e.push(t);else{e.push(1),A>3&&e.push("...");const t=Math.max(2,A-1),r=Math.min(S-1,A+1);for(let o=t;o<=r;o++)e.push(o);A<S-2&&e.push("..."),e.push(S)}return e})().map((t,r)=>e.jsx(Ci,{$active:t===A,onClick:"number"==typeof t?()=>B(t):void 0,disabled:"number"!=typeof t,children:t},r))}),e.jsx(fi,{disabled:A===S,onClick:()=>B(A+1),"aria-label":"Next page",children:e.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M7.5 15L12.5 10L7.5 5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]})}bi.displayName="Table";const vi=t.div`
|
|
1843
1859
|
display: flex;
|
|
1844
1860
|
align-items: center;
|
|
1845
1861
|
border-bottom: 1px solid var(--grey-200);
|
|
@@ -1851,7 +1867,7 @@
|
|
|
1851
1867
|
|
|
1852
1868
|
-ms-overflow-style: none;
|
|
1853
1869
|
scrollbar-width: none;
|
|
1854
|
-
`,
|
|
1870
|
+
`,wi=({tabs:t,activeTab:o,onChange:i,disabled:n=!1,size:a="medium"})=>{const[s,l]=r.useState(o||(t.length>0?t[0].id:""));return e.jsx(vi,{children:t.map(t=>e.jsx(Gt,{label:t.label,active:o?o===t.id:s===t.id,disabled:n||t.disabled,size:t.size||a,onClick:()=>{return e=t.id,void(n||(l(e),i?.(e)));var e}},t.id))})},yi=t.div`
|
|
1855
1871
|
position: fixed;
|
|
1856
1872
|
${e=>"top"===e.position?"top: 16px;":"bottom: 16px;"}
|
|
1857
1873
|
left: 50%;
|
|
@@ -1863,7 +1879,7 @@
|
|
|
1863
1879
|
flex-direction: column;
|
|
1864
1880
|
gap: 8px;
|
|
1865
1881
|
pointer-events: none;
|
|
1866
|
-
`,
|
|
1882
|
+
`,ki=t.div`
|
|
1867
1883
|
opacity: 0;
|
|
1868
1884
|
transform: translateY(
|
|
1869
1885
|
${e=>"top"===e.theme.position?"-10px":"10px"}
|
|
@@ -1885,52 +1901,52 @@
|
|
|
1885
1901
|
transform: translateY(0);
|
|
1886
1902
|
}
|
|
1887
1903
|
}
|
|
1888
|
-
`;t.createContext(void 0);let mi=[],Ci=[];const bi=(e,r)=>{if("undefined"!=typeof window){return getComputedStyle(document.documentElement).getPropertyValue(`--${e}`).trim()||r||""}return`var(--${e}${r?`, ${r}`:""})`},vi={BLACK_50:bi("black-50","rgba(26, 26, 26, 0.05)"),BLACK_100:bi("black-100","rgba(26, 26, 26, 0.1)"),BLACK_200:bi("black-200","rgba(26, 26, 26, 0.2)"),BLACK_300:bi("black-300","rgba(26, 26, 26, 0.3)"),BLACK_400:bi("black-400","rgba(26, 26, 26, 0.4)"),BLACK_500:bi("black-500","rgba(26, 26, 26, 0.5)"),BLACK_600:bi("black-600","rgba(26, 26, 26, 0.6)"),BLACK_700:bi("black-700","rgba(26, 26, 26, 0.7)"),BLACK_800:bi("black-800","rgba(26, 26, 26, 0.8)"),BLACK_900:bi("black-900","rgba(26, 26, 26, 1)"),BLACK:bi("black-900","#1a1a1a"),BLACK_OPACITY_20:"rgba(26, 26, 26, 0.2)",WHITE_50:bi("white-50","rgba(255, 255, 255, 0.05)"),WHITE_100:bi("white-100","rgba(255, 255, 255, 0.1)"),WHITE_200:bi("white-200","rgba(255, 255, 255, 0.2)"),WHITE_300:bi("white-300","rgba(255, 255, 255, 0.3)"),WHITE_400:bi("white-400","rgba(255, 255, 255, 0.4)"),WHITE_500:bi("white-500","rgba(255, 255, 255, 0.5)"),WHITE_600:bi("white-600","rgba(255, 255, 255, 0.6)"),WHITE_700:bi("white-700","rgba(255, 255, 255, 0.7)"),WHITE_800:bi("white-800","rgba(255, 255, 255, 0.8)"),WHITE_900:bi("white-900","rgba(255, 255, 255, 1)"),WHITE:bi("white-900","#ffffff"),BLUE_50:bi("blue-50","rgba(240, 249, 255, 1)"),BLUE_100:bi("blue-100","rgba(225, 243, 254, 1)"),BLUE_200:bi("blue-200","rgba(185, 229, 252, 1)"),BLUE_300:bi("blue-300","rgba(125, 211, 251, 1)"),BLUE_400:bi("blue-400","rgba(58, 190, 247, 1)"),BLUE_500:bi("blue-500","rgba(27, 173, 240, 1)"),BLUE_600:bi("blue-600","rgba(64, 114, 210, 1)"),BLUE_700:bi("blue-700","rgba(3, 105, 159, 1)"),BLUE_800:bi("blue-800","rgba(5, 69, 103, 1)"),BLUE_900:bi("blue-900","rgba(4, 38, 63, 1)"),BLUE:bi("graph-primary-blue","#2D9CDB"),GREY_50:bi("grey-50","rgba(248, 250, 252, 1)"),GREY_100:bi("grey-100","rgba(241, 245, 249, 1)"),GREY_200:bi("grey-200","rgba(225, 231, 239, 1)"),GREY_300:bi("grey-300","rgba(200, 214, 229, 1)"),GREY_400:bi("grey-400","rgba(158, 172, 192, 1)"),GREY_500:bi("grey-500","rgba(100, 116, 139, 1)"),GREY_600:bi("grey-600","rgba(72, 86, 106, 1)"),GREY_700:bi("grey-700","rgba(51, 65, 86, 1)"),GREY_800:bi("grey-800","rgba(29, 40, 57, 1)"),GREY_900:bi("grey-900","rgba(20, 30, 53, 1)"),GREY:bi("grey-400","#CCCCCC"),ORANGE:bi("graph-primary-orange","#FFA62E"),RED:bi("graph-primary-red","#FF5C64"),GREEN:bi("graph-primary-green","#A5C34E"),YELLOW:bi("graph-primary-yellow","#FBED53"),PURPLE:bi("graph-primary-purple","#7A51AB"),GREEN_BG:bi("green-bg","rgba(234, 254, 229, 1)"),GREEN_SUCCESS:bi("green-success","rgba(8, 173, 55, 1)"),ORANGE_BG:bi("orange-bg","rgba(254, 250, 229, 1)"),ORANGE_CAUTION:bi("orange-caution","rgba(249, 173, 20, 1)"),RED_BG:bi("red-bg","rgba(254, 234, 229, 1)"),RED_ERROR:bi("red-error","rgba(216, 35, 44, 1)"),GRAPH_SECONDARY_BROWN:bi("graph-secondary-brown","#AD7942"),GRAPH_SECONDARY_PINK:bi("graph-secondary-pink","#FB90B4"),GRAPH_SECONDARY_TEAL:bi("graph-secondary-teal","#3CCABA"),GRAPH_SECONDARY_DARK_BLUE:bi("graph-secondary-dark-blue","#4072D2"),GRAPH_SECONDARY_BLACK:bi("graph-secondary-black","#424E62"),GRAPH_SECONDARY_GREY:bi("graph-secondary-grey","#B4B4B4")},wi=[vi.ORANGE,vi.RED,vi.GREEN,vi.BLUE,vi.YELLOW,vi.PURPLE,vi.GRAPH_SECONDARY_BROWN,vi.GRAPH_SECONDARY_PINK,vi.GRAPH_SECONDARY_TEAL,vi.GRAPH_SECONDARY_DARK_BLUE,vi.GRAPH_SECONDARY_BLACK,vi.GRAPH_SECONDARY_GREY];const yi=[[0,"#092761"],[.15,"#141950"],[.3,"#282D73"],[.45,"#463782"],[.6,"#643C8C"],[.7,"#8C4696"],[.8,"#B45096"],[.9,"#DC5A8C"],[.95,"#FA6482"],[1,"#FF5C64"]],ji=r.div`
|
|
1904
|
+
`;r.createContext(void 0);let ji=[],Mi=[];const Ii=(e,t)=>{if("undefined"!=typeof window){return getComputedStyle(document.documentElement).getPropertyValue("--"+e).trim()||t||""}return"var(--"+e+(t?", "+t:"")+")"},Ei={BLACK_50:Ii("black-50","rgba(26, 26, 26, 0.05)"),BLACK_100:Ii("black-100","rgba(26, 26, 26, 0.1)"),BLACK_200:Ii("black-200","rgba(26, 26, 26, 0.2)"),BLACK_300:Ii("black-300","rgba(26, 26, 26, 0.3)"),BLACK_400:Ii("black-400","rgba(26, 26, 26, 0.4)"),BLACK_500:Ii("black-500","rgba(26, 26, 26, 0.5)"),BLACK_600:Ii("black-600","rgba(26, 26, 26, 0.6)"),BLACK_700:Ii("black-700","rgba(26, 26, 26, 0.7)"),BLACK_800:Ii("black-800","rgba(26, 26, 26, 0.8)"),BLACK_900:Ii("black-900","rgba(26, 26, 26, 1)"),BLACK:Ii("black-900","#1a1a1a"),BLACK_OPACITY_20:"rgba(26, 26, 26, 0.2)",WHITE_50:Ii("white-50","rgba(255, 255, 255, 0.05)"),WHITE_100:Ii("white-100","rgba(255, 255, 255, 0.1)"),WHITE_200:Ii("white-200","rgba(255, 255, 255, 0.2)"),WHITE_300:Ii("white-300","rgba(255, 255, 255, 0.3)"),WHITE_400:Ii("white-400","rgba(255, 255, 255, 0.4)"),WHITE_500:Ii("white-500","rgba(255, 255, 255, 0.5)"),WHITE_600:Ii("white-600","rgba(255, 255, 255, 0.6)"),WHITE_700:Ii("white-700","rgba(255, 255, 255, 0.7)"),WHITE_800:Ii("white-800","rgba(255, 255, 255, 0.8)"),WHITE_900:Ii("white-900","rgba(255, 255, 255, 1)"),WHITE:Ii("white-900","#ffffff"),BLUE_50:Ii("blue-50","rgba(240, 249, 255, 1)"),BLUE_100:Ii("blue-100","rgba(225, 243, 254, 1)"),BLUE_200:Ii("blue-200","rgba(185, 229, 252, 1)"),BLUE_300:Ii("blue-300","rgba(125, 211, 251, 1)"),BLUE_400:Ii("blue-400","rgba(58, 190, 247, 1)"),BLUE_500:Ii("blue-500","rgba(27, 173, 240, 1)"),BLUE_600:Ii("blue-600","rgba(64, 114, 210, 1)"),BLUE_700:Ii("blue-700","rgba(3, 105, 159, 1)"),BLUE_800:Ii("blue-800","rgba(5, 69, 103, 1)"),BLUE_900:Ii("blue-900","rgba(4, 38, 63, 1)"),BLUE:Ii("graph-primary-blue","#2D9CDB"),GREY_50:Ii("grey-50","rgba(248, 250, 252, 1)"),GREY_100:Ii("grey-100","rgba(241, 245, 249, 1)"),GREY_200:Ii("grey-200","rgba(225, 231, 239, 1)"),GREY_300:Ii("grey-300","rgba(200, 214, 229, 1)"),GREY_400:Ii("grey-400","rgba(158, 172, 192, 1)"),GREY_500:Ii("grey-500","rgba(100, 116, 139, 1)"),GREY_600:Ii("grey-600","rgba(72, 86, 106, 1)"),GREY_700:Ii("grey-700","rgba(51, 65, 86, 1)"),GREY_800:Ii("grey-800","rgba(29, 40, 57, 1)"),GREY_900:Ii("grey-900","rgba(20, 30, 53, 1)"),GREY:Ii("grey-400","#CCCCCC"),ORANGE:Ii("graph-primary-orange","#FFA62E"),RED:Ii("graph-primary-red","#FF5C64"),GREEN:Ii("graph-primary-green","#A5C34E"),YELLOW:Ii("graph-primary-yellow","#FBED53"),PURPLE:Ii("graph-primary-purple","#7A51AB"),GREEN_BG:Ii("green-bg","rgba(234, 254, 229, 1)"),GREEN_SUCCESS:Ii("green-success","rgba(8, 173, 55, 1)"),ORANGE_BG:Ii("orange-bg","rgba(254, 250, 229, 1)"),ORANGE_CAUTION:Ii("orange-caution","rgba(249, 173, 20, 1)"),RED_BG:Ii("red-bg","rgba(254, 234, 229, 1)"),RED_ERROR:Ii("red-error","rgba(216, 35, 44, 1)"),GRAPH_SECONDARY_BROWN:Ii("graph-secondary-brown","#AD7942"),GRAPH_SECONDARY_PINK:Ii("graph-secondary-pink","#FB90B4"),GRAPH_SECONDARY_TEAL:Ii("graph-secondary-teal","#3CCABA"),GRAPH_SECONDARY_DARK_BLUE:Ii("graph-secondary-dark-blue","#4072D2"),GRAPH_SECONDARY_BLACK:Ii("graph-secondary-black","#424E62"),GRAPH_SECONDARY_GREY:Ii("graph-secondary-grey","#B4B4B4")},Li=[Ei.ORANGE,Ei.RED,Ei.GREEN,Ei.BLUE,Ei.YELLOW,Ei.PURPLE,Ei.GRAPH_SECONDARY_BROWN,Ei.GRAPH_SECONDARY_PINK,Ei.GRAPH_SECONDARY_TEAL,Ei.GRAPH_SECONDARY_DARK_BLUE,Ei.GRAPH_SECONDARY_BLACK,Ei.GRAPH_SECONDARY_GREY],Ni=70,_i=30,Ai=60,Ti=50,Ri=30,$i=5,Si=11,zi=10,Bi={default:{ax:0,ay:-35},overlap:[{ax:50,ay:-35},{ax:-60,ay:-35},{ax:70,ay:-55},{ax:-80,ay:-55},{ax:50,ay:-75},{ax:-60,ay:-75}]};function Hi(e,t,r){const o=-1===t,i=o?Ei.GREY_500:Li[t%Li.length],n=o?Ei.BLACK_900:i,a=e.text??(void 0===e._computed?.area?"":`Area: ${e._computed.area.toFixed(2)}`),s=o&&void 0!==e.ax?e.ax:r.ax,l=o&&void 0!==e.ay?e.ay:r.ay;return{x:e.x,y:e.y,text:a,showarrow:!0,arrowhead:2,arrowsize:1,arrowwidth:1,arrowcolor:i,ax:s,ay:l,font:{size:o?Si:zi,color:n,family:"Inter, sans-serif"},bgcolor:Ei.WHITE,borderpad:2,bordercolor:o?void 0:i,borderwidth:o?0:1}}function Oi(e){if(1===e.length){const{peak:t,seriesIndex:r}=e[0];return[Hi(t,r,Bi.default)]}return[...e].sort((e,t)=>e.peak.y-t.peak.y).map(({peak:e,seriesIndex:t},r)=>Hi(e,t,Bi.overlap[r%Bi.overlap.length]))}function Pi(e,t,r,o){return"none"===r?[]:[{x:[e],y:[t],type:"scatter",mode:"markers",marker:{symbol:"diamond"===r?"diamond":"triangle-up",size:8,color:o},showlegend:!1,hoverinfo:"skip"}]}function Di(e,t,r){let o=e[t],i=e[t];for(let i=t-1;i>=Math.max(0,t-r);i--)o=Math.min(o,e[i]);for(let o=t+1;o<Math.min(e.length,t+r);o++)i=Math.min(i,e[o]);return e[t]-Math.max(o,i)}function Vi(e,t){let r=t,o=t;for(let o=t-1;o>=0&&e[o]<=e[o+1];o--)r=o;for(let r=t+1;r<e.length&&e[r]<=e[r-1];r++)o=r;return{startIndex:r,endIndex:o}}function Ui(e,t,r,o){const i=Math.min(t[r],t[o]);let n=0;for(let a=r;a<o;a++){const r=e[a+1]-e[a];n+=(t[a]-i+(t[a+1]-i))*r/2}return n}function Gi(e,t,r,o,i){const n=Math.min(t[o],t[i]),a=(t[r]+n)/2;let s=r,l=r;for(let e=r;e>=o;e--)if(t[e]<a){s=e;break}for(let e=r;e<=i;e++)if(t[e]<a){l=e;break}return e[l]-e[s]}function Fi(e,t,r={}){const{minHeight:o=.05,minDistance:i=5,prominence:n=.02,relativeThreshold:a=!0}=r;if(t.length<3)return[];const s=Math.max(...t),l=a?o*s:o,c=a?n*s:n,d=3*i,h=[];for(let r=1;r<t.length-1;r++){if(!(t[r]>t[r-1]&&t[r]>t[r+1]&&t[r]>=l))continue;if(Di(t,r,d)<c)continue;const{startIndex:o,endIndex:i}=Vi(t,r),n=Ui(e,t,o,i),a=Gi(e,t,r,o,i);h.push({x:e[r],y:t[r],_computed:{area:n,index:r,startIndex:o,endIndex:i,widthAtHalfMax:a}})}return function(e,t){const r=[];for(const o of e)r.some(e=>Math.abs((e._computed?.index??0)-(o._computed?.index??0))<t)?r.length>0&&o.y>r[r.length-1].y&&(r.pop(),r.push(o)):r.push(o);return r.sort((e,t)=>e.x-t.x)}(h,i)}function Ki(e,t){if(0===e.length)return 0;if(1===e.length)return 0;let r=0,o=e.length-1;for(;r<o;){const i=Math.floor((r+o)/2);e[i]<t?r=i+1:o=i}return r>0&&Math.abs(e[r-1]-t)<Math.abs(e[r]-t)?r-1:r}function Zi(e,t,r=50){if("none"===t||0===e.length)return e;if("linear"===t){if(1===e.length)return[0];const t=(e[e.length-1]-e[0])/(e.length-1);return e.map((r,o)=>r-(e[0]+t*o))}if("rolling"===t){const t=[],o=Math.floor(r/2);for(let r=0;r<e.length;r++){const i=Math.max(0,r-o),n=Math.min(e.length,r+o+1),a=e.slice(i,n);t.push(Math.min(...a))}return e.map((e,r)=>e-t[r])}return e}const Wi="96",Yi="384",Xi="1536",qi={sample:"#4575b4",control:"#d73027",empty:"#f0f0f0"},Qi={[Wi]:{rows:8,columns:12},[Yi]:{rows:16,columns:24},[Xi]:{rows:32,columns:48}},Ji=[[0,"#313695"],[.1,"#4575b4"],[.2,"#74add1"],[.3,"#abd9e9"],[.4,"#e0f3f8"],[.5,"#ffffbf"],[.6,"#fee090"],[.7,"#fdae61"],[.8,"#f46d43"],[.9,"#d73027"],[1,"#a50026"]],en="#333",tn="#000",rn="#f0f0f0",on={Viridis:[[0,"#440154"],[.25,"#414487"],[.5,"#2a788e"],[.75,"#22a884"],[1,"#7ad151"]],Blues:[[0,"#f7fbff"],[.25,"#c6dbef"],[.5,"#6baed6"],[.75,"#2171b5"],[1,"#08306b"]],RdBu:[[0,"#67001f"],[.25,"#d6604d"],[.5,"#f7f7f7"],[.75,"#4393c3"],[1,"#053061"]],Greens:[[0,"#f7fcf5"],[.25,"#c7e9c0"],[.5,"#74c476"],[.75,"#238b45"],[1,"#00441b"]],Reds:[[0,"#fff5f0"],[.25,"#fcbba1"],[.5,"#fb6a4a"],[.75,"#cb181d"],[1,"#67000d"]],Greys:[[0,"#ffffff"],[.25,"#d9d9d9"],[.5,"#969696"],[.75,"#525252"],[1,"#000000"]],Hot:[[0,"#000000"],[.33,"#e60000"],[.66,"#ffff00"],[1,"#ffffff"]],YlGnBu:[[0,"#ffffd9"],[.25,"#c7e9b4"],[.5,"#41b6c4"],[.75,"#225ea8"],[1,"#081d58"]],YlOrRd:[[0,"#ffffcc"],[.25,"#fed976"],[.5,"#fd8d3c"],[.75,"#e31a1c"],[1,"#800026"]],Plasma:[[0,"#0d0887"],[.25,"#7e03a8"],[.5,"#cc4778"],[.75,"#f89540"],[1,"#f0f921"]]},nn=5e4,an=.01,sn=.99,ln=.001,cn=.575,dn=.425,hn=11,pn=-.5,xn=70,un=50,gn=40,fn=80,mn=130,Cn=.15,bn=.85;function vn(e){const t=e.match(/^([A-Z]{1,2})(\d{1,2})$/i);if(!t)return null;const r=t[1].toUpperCase();return{row:1===r.length?r.charCodeAt(0)-65:r.charCodeAt(1)-65+26,col:parseInt(t[2],10)-1}}function wn(e,t,r){if(!e)return!1;const{row:o,col:i}=e;return o>=0&&i>=0&&o<t&&i<r}function yn(e,t){if(!e)return null;const r=t??Object.keys(e)[0];return r?e[r]:null}function kn(e,t,r,o,i){"number"==typeof e?o[t][r]=e:"string"==typeof e&&(i[t][r]=e)}function jn(e,t){const r=function(e){const t=new Set;for(const r of e)r.values&&Object.keys(r.values).forEach(e=>t.add(e));return[...t]}(e);return r.map(r=>{const o=t?.find(e=>e.id===r),i=function(e,t){for(const r of e){const e=r.values?.[t];if("string"==typeof e)return!0}return!1}(e,r);return{id:r,name:o?.name??r,visualizationMode:o?.visualizationMode??(i?"categorical":void 0),colorScale:o?.colorScale,valueMin:o?.valueMin,valueMax:o?.valueMax,valueUnit:o?.valueUnit,categoryColors:o?.categoryColors}})}function Mn(e,t,r){const o=e.match(/^([A-Z]{1,2})(\d{1,2}):([A-Z]{1,2})(\d{1,2})$/i);if(!o)return null;const i=vn(`${o[1]}${o[2]}`),n=vn(`${o[3]}${o[4]}`),a=Math.min(i.row,n.row),s=Math.max(i.row,n.row),l=Math.min(i.col,n.col),c=Math.max(i.col,n.col),d=t.length,h=r.length;return a>=d||s>=d||l>=h||c>=h?null:{minRow:a,maxRow:s,minCol:l,maxCol:c}}function In({wellId:e,value:t,allValues:r,tooltipExtra:o,activeLayerId:i,layerConfigMap:n,precision:a,valueUnit:s}){let l=`Well ${e}`;return l+=r?function(e,t,r,o){let i="";for(const[n,a]of Object.entries(e)){const e=n===t?"▶ ":"",s=r.get(n)?.valueUnit,l=s?` ${s}`:"";i+=null===a?`<br>${e}${n}: -`:"number"==typeof a?`<br>${e}${n}: ${a.toFixed(o)}${l}`:`<br>${e}${n}: ${a.charAt(0).toUpperCase()+a.slice(1)}`}return i}(r,i,n,a):null!==t?`<br>Value: ${t.toFixed(a)}${s}`:i?`<br>▶ ${i}: -`:"<br>No data",o&&(l+=function(e){let t="";for(const[r,o]of Object.entries(e))t+=`<br>${r}: ${String(o)}`;return t}(o)),l}function En(e,t,r){const o=r?{text:r}:void 0;switch(e){case"bottom":return{orientation:"h",thickness:20,len:.75,outlinewidth:0,ticksuffix:t,y:-.15,yanchor:"top",x:.5,xanchor:"center",title:o?{...o,side:"top"}:void 0};case"top":return{orientation:"h",thickness:20,len:.75,outlinewidth:0,ticksuffix:t,y:1.15,yanchor:"bottom",x:.5,xanchor:"center",title:o?{...o,side:"bottom"}:void 0};case"left":return{thickness:28,len:1,outlinewidth:0,ticksuffix:t,y:.5,yanchor:"middle",x:-.15,xanchor:"right",title:o?{...o,side:"right"}:void 0};default:return{thickness:20,len:.9,outlinewidth:0,ticksuffix:t,x:.88,xanchor:"left",y:.5,yanchor:"middle",title:o?{...o,side:"right"}:void 0}}}function Ln(e,t,r){const o=r?xn:un;let i;return i=t?"top"===e?mn:100:"top"===e?xn:gn,{l:"left"===e?o+un:o,r:"right"===e?un+un:un,b:"bottom"===e?fn:un,t:i,pad:5}}function Nn(e){switch(e){case"left":return cn;case"right":return dn;default:return.5}}function _n(e){switch(e){case"left":return[Cn,1];case"right":return[0,bn];default:return[0,1]}}const An=({data:t,layerConfigs:o,initialLayerId:i,onLayerChange:n,plateFormat:a="96",rows:s,columns:l,visualizationMode:d="heatmap",categoryColors:h,regions:p,title:x,xTitle:u,yTitle:g,xLabels:f,yLabels:m,colorScale:C=Ji,valueMin:b,valueMax:v,emptyWellColor:w=rn,showColorBar:y=!0,showLegend:k=!0,legendConfig:j,width:M=800,height:I=500,precision:E=0,markerShape:L="circle",onWellClick:N})=>{const _=r.useRef(null),A=r.useRef(N);A.current=N;const[T,R]=r.useState(i);let $,S;if("custom"===a)$=s??8,S=l??12;else{const e=Qi[a];$=e.rows,S=e.columns}const z=r.useMemo(()=>{if(Array.isArray(t)&&t.length>0&&"wellId"in t[0]){const e=t;if(function(e){return e.some(e=>e.values&&Object.keys(e.values).length>0)}(e))return jn(e,o)}return null},[t,o]),B=r.useMemo(()=>z&&0!==z.length?T?z.find(e=>e.id===T)??z[0]:z[0]:null,[z,T]),H=B?.visualizationMode??d,O=B?.colorScale??C,P=B?.valueMin??b,D=B?.valueMax??v,V=B?.valueUnit?` ${B.valueUnit}`:"",U=r.useMemo(()=>({...qi,...h,...B?.categoryColors}),[h,B?.categoryColors]),G=B?.id,{grid:F,categoriesGrid:K,allValuesMap:Z,tooltipDataMap:W}=r.useMemo(()=>{let e,r=Array.from({length:$},()=>Array(S).fill(null)),o=new Map,i=new Map;if(Array.isArray(t)&&t.length>0){const n=function(e,t,r,o){const i=Array.from({length:t},()=>Array(r).fill(null)),n=Array.from({length:t},()=>Array(r).fill(null)),a=new Map,s=new Map;for(const l of e){const e=vn(l.wellId);if(!wn(e,t,r))continue;const c=l.wellId.toUpperCase();l.values&&a.set(c,l.values),l.tooltipData&&s.set(c,l.tooltipData),kn(yn(l.values,o),e.row,e.col,i,n)}return{grid:i,categories:n,allValues:a,tooltipData:s}}(t,$,S,G);e=n.grid,r=n.categories,o=n.allValues,i=n.tooltipData}else e=Array.from({length:$},()=>Array.from({length:S},()=>Math.random()*nn));return{grid:e,categoriesGrid:r,allValuesMap:o,tooltipDataMap:i}},[t,$,S,G]),Y=m??(X=$,Array.from({length:X},(e,t)=>t<26?String.fromCharCode(65+t):"A"+String.fromCharCode(t-26+65)));var X;const q=f??function(e){return Array.from({length:e},(e,t)=>t+1)}(S),Q=function(e){let t=1/0,r=-1/0;for(const o of e)for(const e of o)null!==e&&Number.isFinite(e)&&(t=Math.min(t,e),r=Math.max(r,e));return Number.isFinite(t)||(t=0),Number.isFinite(r)||(r=1),t===r&&(r=t+1),{min:t,max:r}}(F),J=P??Q.min,ee=D??Q.max,te=F.some(e=>e.includes(null)),re=J-(ee-J)*an-1,oe=te?F.map(e=>e.map(e=>null===e?re:e)):F,ie=r.useMemo(()=>{if(!te)return O;let e;if("string"==typeof O){const t=on[O];if(!t)return O;e=t}else e=O;const t=(J-re)/(ee-re),r=[[0,w],[t*sn,w]];for(const[o,i]of e){const e=t+o*(1-t);r.push([e,i])}return r},[O,te,J,ee,re,w]),ne=te?re:J,ae=r.useMemo(()=>{const e=new Map;if(z)for(const t of z)e.set(t.id,t);return e},[z]),se=F.map((e,t)=>e.map((e,r)=>{const o=`${Y[t]}${q[r]}`,i=String(o).toUpperCase();return In({wellId:o,value:e,allValues:Z.get(i),tooltipExtra:W.get(i),activeLayerId:B?.id,layerConfigMap:ae,precision:E,valueUnit:V})})),{categoricalGrid:le,categoricalColorScale:ce,uniqueTypes:de,catMax:he}=r.useMemo(()=>{if("categorical"!==H)return{categoricalGrid:null,categoricalColorScale:null,uniqueTypes:[],catMax:0};const e=new Set;let t=!1;for(const r of K)for(const o of r)o?e.add(o):t=!0;t&&e.add("empty");const r=[...e].sort(),o=new Map;r.forEach((e,t)=>o.set(e,t));const i=K.map(e=>e.map(e=>null===e?o.get("empty")??0:o.get(e)??o.get("empty")??0)),n=r.length,a=[];if(1===n){const e=U[r[0]]||w;a.push([0,e]),a.push([1,e])}else r.forEach((e,t)=>{const r=U[e]||w,o=t/(n-1),i=.5/(n-1),s=Math.max(0,o-i),l=Math.min(1,o+i-ln);a.push([s,r]),a.push([l,r])});return{categoricalGrid:i,categoricalColorScale:a,uniqueTypes:r,catMax:n-1}},[H,K,U,w]),pe=r.useMemo(()=>{if(!p||0===p.length)return[];const e=[];for(const t of p){const r=Mn(t.wells,Y,q);if(!r)continue;const o=.49,i=r.minCol+1-o,n=r.maxCol+1+o,a=r.minRow-o,s=r.maxRow+o;e.push({type:"rect",xref:"x",yref:"y",x0:i,x1:n,y0:a,y1:s,line:{color:t.borderColor||en,width:t.borderWidth??2},fillcolor:t.fillColor||"transparent",layer:"above"})}return e},[p,Y,q]);r.useEffect(()=>{const e=_.current;if(!e)return;const t="categorical"===H,r=t&&le?le:oe,o=t&&ce?ce:ie,i=t?0:ne,n=t?he||1:ee,a=!t&&y,{xData:s,yData:l,colorData:d,textData:h}=function(e,t,r,o,i,n){const a=[],s=[],l=[],c=[];for(let d=0;d<o;d++)for(let o=0;o<i;o++){a.push(o+1),s.push(t[d]);const i=e[d][o];l.push(i??n),c.push(r[d][o])}return{xData:a,yData:s,colorData:l,textData:c}}(r,Y,se,$,S,i),p=function(e,t,r,o,i,n,a){const s=(e-(a?xn:un)-100)/o,l=(t-(n?100:gn)-un)/r,c="square"===i?Math.max(s,l):Math.min(s,l),d="square"===i?1:.8;return Math.max(4,c*d)}(M,I,$,S,L,!!x,!!g),f=[{x:s,y:l,mode:"markers",type:"scatter",marker:{symbol:L,size:p,color:d,colorscale:o,cmin:i,cmax:n,showscale:a,colorbar:En(j?.position??"right",V,j?.title),line:{color:"var(--grey-400)",width:1}},hoverinfo:"text",text:h}],m=j?.position??"right",C={autosize:!1,title:x?{text:x,font:{family:"Inter, sans-serif",size:20,color:"var(--black-300)"},x:Nn(m),xanchor:"center",y:.98,yanchor:"top"}:void 0,width:M,height:I,margin:Ln(m,!!x,!!g),xaxis:{title:{text:u||"",font:{size:16,color:"var(--black-300)",family:"Inter, sans-serif"},standoff:15},side:"top",fixedrange:!0,dtick:1,range:[.5,S+.5],automargin:!1,tickmode:"array",tickvals:Array.from({length:S},(e,t)=>t+1),ticktext:q.map(String),tickangle:0,tickfont:{size:S>24?8:hn},domain:_n(m)},yaxis:{title:{text:g||"",font:{size:16,color:"var(--black-300)",family:"Inter, sans-serif"},standoff:15},fixedrange:!0,dtick:1,range:[$+pn,pn],automargin:!1,tickmode:"array",tickvals:Array.from({length:$},(e,t)=>t),ticktext:Y.map(String),tickfont:{size:$>16?8:hn}},paper_bgcolor:"var(--white-900)",plot_bgcolor:"var(--white-900)",font:{family:"Inter, sans-serif",color:"var(--grey-600)"},shapes:pe};return c.newPlot(e,f,C,{responsive:!0,displayModeBar:!1,displaylogo:!1}),e.on("plotly_click",e=>{if(!A.current)return;const t=e.points[0];if(t){const e=Y,r=q,o=e.indexOf(t.y),i=r.indexOf(t.x);if(o>=0&&i>=0){const t=`${e[o]}${r[i]}`,n=String(t).toUpperCase(),a={wellId:t,values:Z.get(n),tooltipData:W.get(n)};A.current?.(a)}}}),()=>{e&&c.purge(e)}},[oe,q,Y,ie,y,ne,ee,V,x,u,g,M,I,se,E,W,Z,F,H,le,ce,de.length,he,pe,$,S,j,L]);const xe=j?.position??"right",ue=j?.fontSize??12,ge=j?.itemSpacing??4,fe=j?.swatchSize??16,me=j?.title,Ce="top"===xe||"bottom"===xe,be=e.jsx("div",{ref:_,className:"platemap-plot",style:{width:M,height:I}}),ve=(()=>{const t="categorical"===H&&de.length>0,r=p&&p.length>0;if(!k||!t&&!r)return Ce?null:e.jsx("div",{className:"platemap-legend-placeholder",style:{width:120}});const o=["platemap-legend"];Ce?o.push("platemap-legend--horizontal"):"left"===xe?o.push("platemap-legend--left"):"right"===xe&&o.push("platemap-legend--right");const i={gap:`${ge}px`,width:Ce?void 0:120};return e.jsxs("div",{className:o.join(" "),style:i,children:[me&&e.jsx("div",{className:"platemap-legend__title"+(Ce?" platemap-legend__title--horizontal":""),style:{fontSize:`${ue}px`},children:me}),t&&de.map(t=>e.jsxs("div",{className:"platemap-legend__item",children:[e.jsx("div",{className:"platemap-legend__swatch",style:{width:`${fe}px`,height:`${fe}px`,backgroundColor:U[t]||w}}),e.jsx("span",{className:"platemap-legend__label platemap-legend__label--capitalize",style:{fontSize:`${ue}px`},children:t})]},t)),r&&p.map(t=>e.jsxs("div",{className:"platemap-legend__item",children:[e.jsx("div",{className:"platemap-legend__swatch platemap-legend__swatch--region",style:{width:`${fe}px`,height:`${fe}px`,backgroundColor:t.fillColor||"transparent",border:`${t.borderWidth||2}px solid ${t.borderColor||tn}`}}),e.jsx("span",{className:"platemap-legend__label",style:{fontSize:`${ue}px`},children:t.name})]},t.id))]})})();return e.jsxs("div",{className:"platemap-container",style:{width:Ce?void 0:M},children:[!z||z.length<=1?null:e.jsx("div",{className:"platemap-layer-selector",children:z.map(t=>{const r=B?.id===t.id;return e.jsx("button",{type:"button",className:"platemap-layer-selector__button"+(r?" platemap-layer-selector__button--active":""),onClick:()=>{R(t.id),n?.(t.id)},children:t.name},t.id)})}),(()=>{switch(xe){case"left":return e.jsxs("div",{className:"platemap-plot-wrapper platemap-plot-wrapper--vertical",children:[ve,be]});case"top":return e.jsxs("div",{className:"platemap-plot-wrapper platemap-plot-wrapper--horizontal",children:[ve,be]});case"bottom":return e.jsxs("div",{className:"platemap-plot-wrapper platemap-plot-wrapper--horizontal",children:[be,ve]});default:return e.jsxs("div",{className:"platemap-plot-wrapper platemap-plot-wrapper--vertical",children:[be,ve]})}})()]})};const Tn=[[0,"#313695"],[.25,"#4575b4"],[.5,"#ffffbf"],[.75,"#fdae61"],[1,"#a50026"]],Rn=["#4575b4","#d73027","#1a9850","#fdae61","#9467bd","#e377c2","#8c564b","#bcbd22","#17becf","#ff7f0e"],$n=[4,20],Sn=5e3,zn={MARGIN_LEFT:80,MARGIN_RIGHT:30,MARGIN_TOP:80,MARGIN_BOTTOM:80,TITLE_FONT_SIZE:20,AXIS_TITLE_FONT_SIZE:16,AXIS_TICK_FONT_SIZE:12,LEGEND_FONT_SIZE:12,FONT_FAMILY:"Inter, sans-serif",GRID_WIDTH:1,AXIS_LINE_WIDTH:1,AUTO_RANGE_PADDING:.1};function Bn(e,t){let r=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;for(const i of e){const e=i.metadata?.[t];"number"==typeof e&&Number.isFinite(e)&&(r=Math.min(r,e),o=Math.max(o,e))}return Number.isFinite(r)&&Number.isFinite(o)?r===o?{min:r-1,max:o+1}:{min:r,max:o}:{min:0,max:1}}function Hn(e,t){const r=e.map(e=>e.metadata?.[t]).filter(e=>"string"==typeof e);return[...new Set(r)].sort()}function On(e,t){if(!t.enabled||e.length<=(t.maxPoints||Sn))return e;const r=t.maxPoints||Sn;return"lttb"===(t.strategy||"lttb")?function(e,t){const r=e.length;if(t<=0||0===r)return[];if(t>=r)return e;if(1===t)return[e[0]];if(2===t)return[e[0],e[r-1]];const o=(r-2)/(t-2),{floor:i,abs:n,min:a}=Math,s=[e[0]];let l=0;for(let c=0;c<t-2;c++){const t=a(i((c+1)*o)+1,r-1),d=a(i((c+2)*o)+1,r),{x:h,y:p}=Pn(e,t,d,r),x=a(i(c*o)+1,r-1),u=a(i((c+1)*o)+1,r-1),g=e[l].x,f=e[l].y;let m=-1,C=e[x],b=x;for(let t=x;t<u;t++){const r=.5*n((g-h)*(e[t].y-f)-(g-e[t].x)*(p-f));r>m&&(m=r,C=e[t],b=t)}s.push(C),l=b}return s.push(e[r-1]),s}(e,r):e}function Pn(e,t,r,o){const i=r-t;if(i>0){let o=0,n=0;for(let i=t;i<r;i++)o+=e[i].x,n+=e[i].y;return{x:o/i,y:n/i}}const n=Math.max(0,Math.min(t,o-1));return{x:e[n].x,y:e[n].y}}function Dn(e,t,r=.1,o="linear"){const i="log"===o;let n=1/0,a=-1/0;for(const r of e){const e=r[t];if(!Number.isFinite(e))continue;if(i&&e<=0)continue;const o=i?Math.log10(e):e;o<n&&(n=o),o>a&&(a=o)}if(!Number.isFinite(n))return[0,1];if(n===a)return[n-1,a+1];const s=a-n;return[n-s*r,a+s*r]}const Vn=t.div`
|
|
1889
1905
|
display: flex;
|
|
1890
1906
|
flex-direction: column;
|
|
1891
1907
|
width: 100vw;
|
|
1892
1908
|
height: 100vh;
|
|
1893
|
-
`,
|
|
1909
|
+
`,Un=t.div`
|
|
1894
1910
|
display: flex;
|
|
1895
1911
|
flex: 1;
|
|
1896
1912
|
overflow: hidden;
|
|
1897
|
-
`,
|
|
1913
|
+
`,Gn=t.div`
|
|
1898
1914
|
display: flex;
|
|
1899
1915
|
flex-direction: column;
|
|
1900
1916
|
flex: 1;
|
|
1901
1917
|
overflow: hidden;
|
|
1902
|
-
`,
|
|
1918
|
+
`,Fn=t.div`
|
|
1903
1919
|
display: flex;
|
|
1904
1920
|
flex-direction: column;
|
|
1905
1921
|
background-color: var(--white-900);
|
|
1906
1922
|
flex: 1;
|
|
1907
1923
|
overflow: hidden;
|
|
1908
|
-
`,
|
|
1924
|
+
`,Kn=t.div`
|
|
1909
1925
|
border-bottom: 1px solid var(--grey-200);
|
|
1910
1926
|
display: flex;
|
|
1911
1927
|
flex-direction: column;
|
|
1912
1928
|
flex: 1;
|
|
1913
1929
|
overflow: hidden;
|
|
1914
|
-
`,
|
|
1930
|
+
`,Zn=t.div`
|
|
1915
1931
|
display: flex;
|
|
1916
1932
|
justify-content: space-between;
|
|
1917
1933
|
align-items: center;
|
|
1918
1934
|
padding: 24px 0;
|
|
1919
1935
|
background-color: var(--white-900);
|
|
1920
|
-
`,
|
|
1936
|
+
`,Wn=t.h2`
|
|
1921
1937
|
font-family: "Inter", sans-serif;
|
|
1922
1938
|
font-size: 20px;
|
|
1923
1939
|
font-weight: 500;
|
|
1924
1940
|
color: var(--black-900);
|
|
1925
1941
|
margin: 0;
|
|
1926
|
-
`,
|
|
1942
|
+
`,Yn=t.div`
|
|
1927
1943
|
display: flex;
|
|
1928
1944
|
gap: 8px;
|
|
1929
|
-
`,
|
|
1945
|
+
`,Xn=t(f)`
|
|
1930
1946
|
border-radius: 4px;
|
|
1931
1947
|
width: 32px;
|
|
1932
1948
|
height: 32px;
|
|
1933
|
-
`,
|
|
1949
|
+
`,qn=t.div`
|
|
1934
1950
|
width: 360px;
|
|
1935
1951
|
height: 100%;
|
|
1936
1952
|
display: flex;
|
|
@@ -1938,46 +1954,48 @@
|
|
|
1938
1954
|
padding: 16px 24px;
|
|
1939
1955
|
overflow: hidden;
|
|
1940
1956
|
max-height: 100%;
|
|
1941
|
-
`,
|
|
1957
|
+
`,Qn=t.div`
|
|
1942
1958
|
flex: 1;
|
|
1943
1959
|
height: 100%;
|
|
1944
1960
|
background-color: var(--grey-100);
|
|
1945
1961
|
display: flex;
|
|
1946
1962
|
flex-direction: column;
|
|
1947
|
-
`,
|
|
1963
|
+
`,Jn=t.div`
|
|
1948
1964
|
padding: 16px 24px 0 24px;
|
|
1949
|
-
`,
|
|
1965
|
+
`,ea=t.div`
|
|
1950
1966
|
display: flex;
|
|
1951
1967
|
flex-direction: column;
|
|
1952
1968
|
overflow-y: auto;
|
|
1953
1969
|
flex: 1;
|
|
1954
1970
|
margin-top: 8px;
|
|
1955
1971
|
max-height: calc(100vh - 240px);
|
|
1956
|
-
`,
|
|
1972
|
+
`,ta=t.div`
|
|
1957
1973
|
display: flex;
|
|
1958
1974
|
flex-direction: column;
|
|
1959
1975
|
justify-content: center;
|
|
1960
1976
|
align-items: center;
|
|
1961
1977
|
gap: 16px;
|
|
1962
|
-
`,
|
|
1978
|
+
`,ra=t.div`
|
|
1963
1979
|
color: var(--grey-400);
|
|
1964
1980
|
font-size: 14px;
|
|
1965
1981
|
font-weight: 500;
|
|
1966
|
-
|
|
1982
|
+
`,oa=t.div`
|
|
1967
1983
|
cursor: pointer;
|
|
1968
1984
|
|
|
1969
1985
|
&:last-child {
|
|
1970
1986
|
border-bottom: none;
|
|
1971
1987
|
}
|
|
1972
|
-
`,
|
|
1988
|
+
`,ia=t(oo)``,na=t.div`
|
|
1973
1989
|
padding: 24px;
|
|
1974
1990
|
margin-top: -1px;
|
|
1975
1991
|
flex: 1;
|
|
1976
1992
|
border-top: 1px solid var(--grey-200);
|
|
1977
|
-
`,
|
|
1993
|
+
`,aa=t.div`
|
|
1978
1994
|
height: 100%;
|
|
1979
1995
|
border: 1px solid var(--grey-200);
|
|
1980
1996
|
border-radius: 8px;
|
|
1981
1997
|
overflow: hidden;
|
|
1982
|
-
`,Di={colors:{primary:"var(--blue-900)",primaryHover:"var(--blue-800)",primaryActive:"var(--blue-800)",background:"var(--white-900)",text:"var(--black-900)",border:"var(--grey-200)",cardBackground:"var(--white-900)",cardBorder:"var(--grey-200)"},radius:{small:"4px",medium:"8px",large:"16px"},spacing:{small:"8px",medium:"16px",large:"24px"}};exports.AppHeader=It,exports.AppLayout=({userProfile:r,hostname:o,organization:i,children:n})=>{const a=[{icon:exports.IconName.SEARCH_DOCUMENT,label:"Search"},{icon:exports.IconName.SEARCH_SQL,label:"SQL Search"},{icon:exports.IconName.LAMP,label:"Projects"},{icon:exports.IconName.PIPELINE,label:"Pipelines"},{icon:exports.IconName.COMPUTER,label:"Data & AI Workspace"},{icon:exports.IconName.CUBE,label:"Artifacts"},{icon:exports.IconName.DATABASE,label:"Data Sources"},{icon:exports.IconName.PIE_CHART,label:"Health Monitoring"},{icon:exports.IconName.BULK_CHECK,label:"Bulk Actions"},{icon:exports.IconName.CODE,label:"Attribute Management"},{icon:exports.IconName.GEAR,label:"Administration"}],[l,s]=t.useState("Pipelines");return e.jsxs("div",{className:"app-layout",children:[e.jsx(Io,{organization:i}),e.jsxs("div",{className:"content-container",children:[e.jsx(ri,{items:a,activeItem:l,onItemClick:e=>{s(e)}}),e.jsxs("div",{className:"main-content",children:[e.jsx(It,{hostname:o,userProfile:r,onHomeClick:()=>{console.log("Home clicked")},onSettingsClick:()=>{console.log("Settings clicked")},onUserProfileClick:()=>{console.log("User profile clicked")}}),e.jsx("div",{className:"main-layout",children:n})]})]})]})},exports.AreaGraph=({dataSeries:r,width:o=1e3,height:i=600,xRange:n,yRange:a,variant:l="normal",xTitle:s="Columns",yTitle:c="Rows",title:h="Area Graph"})=>{const p=t.useRef(null),{xMin:x,xMax:g,yMin:u,yMax:f}=(()=>{let e=Number.MAX_VALUE,t=Number.MIN_VALUE,o=Number.MAX_VALUE,i=Number.MIN_VALUE;r.forEach(r=>{r.x.forEach(r=>{e=Math.min(e,r),t=Math.max(t,r)}),r.y.forEach(e=>{o=Math.min(o,e),i=Math.max(i,e)})});const n=.1*(t-e),a=.1*(i-o);return{xMin:e-n,xMax:t+n,yMin:"stacked"===l?0:o-a,yMax:i+a}})(),m=n||[x,g],C=a||[u,f],b=(()=>{const e=m[1]-m[0];let r=Math.pow(10,Math.floor(Math.log10(e)));e/r>10&&(r*=2),e/r<4&&(r/=2);const t=[];let o=Math.ceil(m[0]/r)*r;for(;o<=m[1];)t.push(o),o+=r;return t})(),v=(()=>{const e=C[1]-C[0];let r=Math.pow(10,Math.floor(Math.log10(e)));e/r>10&&(r*=2),e/r<4&&(r/=2);const t=[];let o=Math.ceil(C[0]/r)*r;for(;o<=C[1];)t.push(o),o+=r;return t})(),w={tickcolor:vi.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:vi.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:vi.BLACK_900,linewidth:1,position:0,zeroline:!1},y={text:h,x:.5,y:.95,xanchor:"center",yanchor:"top",font:{size:32,weight:600,family:"Inter, sans-serif",color:vi.BLACK_900,lineheight:1.2,standoff:30}};return t.useEffect(()=>{if(!p.current)return;let e;if("stacked"===l){const t=new Array(r[0]?.x.length||0).fill(0);e=r.map((e,r)=>{const o=e.y.map((e,r)=>{const o=t[r]+e;return t[r]=o,o});return{x:e.x,y:o,type:"scatter",mode:"lines",name:e.name,fill:0===r?"tozeroy":"tonexty",fillcolor:e.color,line:{color:e.color,width:2}}})}else e=r.map(e=>({x:e.x,y:e.y,type:"scatter",mode:"lines",name:e.name,fill:e.fill||"tozeroy",fillcolor:e.color,line:{color:e.color,width:2}}));const t={width:o,height:i,title:y,margin:{l:80,r:40,b:80,t:80,pad:0},paper_bgcolor:vi.WHITE,plot_bgcolor:vi.WHITE,font:{family:"Inter, sans-serif"},dragmode:!1,xaxis:{title:{text:s,font:{size:16,color:vi.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:vi.GREY_200,range:n,autorange:!n,tickmode:"array",tickvals:b,showgrid:!0,...w},yaxis:{title:{text:c,font:{size:16,color:vi.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:vi.GREY_200,range:a,autorange:!a,tickmode:"array",tickvals:v,showgrid:!0,...w},legend:{x:.5,y:-.2,xanchor:"center",yanchor:"top",orientation:"h",font:{size:13,color:vi.BLUE_900,family:"Inter, sans-serif",weight:500,lineheight:18}},showlegend:!0};return d.newPlot(p.current,e,t,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{p.current&&d.purge(p.current)}},[r,o,i,n,a,l,s,c,h]),e.jsx("div",{className:"area-graph-container",children:e.jsx("div",{ref:p,style:{width:"100%",height:"100%"}})})},exports.AssistantModal=({open:r,title:o,prompt:i,initialCode:n="",userQuery:a="",onUserQueryChange:l,onCopy:s,onLaunch:d,onSend:c,onCancel:h})=>{const[p,x]=t.useState(n),[g,u]=t.useState(""),[f,m]=t.useState(a);return t.useEffect(()=>{m(a)},[a]),r?e.jsx(Nt,{children:e.jsxs(Mt,{children:[e.jsxs(At,{children:[e.jsxs(Rt,{children:[e.jsx(xe,{name:exports.IconName.TETRASCIENCE_ICON,fill:"var(--blue-600)"}),e.jsx(_t,{children:o})]}),e.jsx(Bt,{onClick:h,children:e.jsx(xe,{name:exports.IconName.CLOSE,width:"20",height:"20",fill:"var(--black-900)"})})]}),e.jsx(Ht,{children:i}),e.jsx(zt,{children:e.jsx(Tt,{value:f,onChange:e=>{m(e.target.value),l&&l(e.target.value)},rows:2,placeholder:"Type your question here..."})}),e.jsx(St,{children:e.jsx($t,{children:e.jsx(Ae,{value:p,onChange:e=>x(e??""),language:"python",theme:"dark",height:200,onCopy:s,onLaunch:d})})}),e.jsxs(Pt,{children:[e.jsx(ir,{value:g,onChange:e=>u(e.target.value),placeholder:"Ask us anything related to your work...",size:"small",onKeyDown:e=>{"Enter"===e.key&&c(g)}}),e.jsxs(Ot,{variant:"primary",onClick:()=>c(g),children:[e.jsx(xe,{name:exports.IconName.PAPER_PLANE}),"Send"]})]})]})}):null},exports.Badge=({children:r,size:t="medium",variant:o="default",disabled:i=!1,iconLeft:n,iconRight:a,className:l})=>e.jsxs(p,{$size:t,$variant:o,$disabled:i,className:l,children:[n&&n,r,a&&a]}),exports.BarGraph=({dataSeries:r,width:o=1e3,height:i=600,xRange:n,yRange:a,variant:l="group",xTitle:s="Columns",yTitle:c="Rows",title:h="Bar Graph",barWidth:p=24})=>{const x=t.useRef(null),{yMin:g,yMax:u}=(()=>{let e=Number.MAX_VALUE,t=Number.MIN_VALUE,o=Number.MAX_VALUE,i=Number.MIN_VALUE;r.forEach(r=>{r.x.forEach(r=>{e=Math.min(e,r),t=Math.max(t,r)}),r.y.forEach(e=>{o=Math.min(o,e),i=Math.max(i,e)})});const n=.1*(t-e),a=.1*(i-o);return{xMin:e-n,xMax:t+n,yMin:"stack"===l?0:o-a,yMax:i+a}})(),f=a||[g,u],m=Array.from(new Set(r.flatMap(e=>e.x))),C=(()=>{const e=f[1]-f[0];let r=Math.pow(10,Math.floor(Math.log10(e)));e/r>10&&(r*=2),e/r<4&&(r/=2);const t=[];let o=Math.ceil(f[0]/r)*r;for(;o<=f[1];)t.push(o),o+=r;return t})(),b=()=>{switch(l){case"stack":return"stack";case"overlay":return"overlay";default:return"group"}},v={tickcolor:vi.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:vi.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:vi.BLACK_900,linewidth:1,position:0,zeroline:!1};return t.useEffect(()=>{if(!x.current)return;const e=r.map(e=>({x:e.x,y:e.y,type:"bar",name:e.name,marker:{color:e.color},width:p,error_y:e.error_y})),t={title:{text:h,font:{size:32,family:"Inter, sans-serif",color:vi.BLACK_900}},width:o,height:i,margin:{l:80,r:30,b:80,t:60,pad:0},paper_bgcolor:vi.WHITE,plot_bgcolor:vi.WHITE,font:{family:"Inter, sans-serif"},barmode:b(),bargap:.15,dragmode:!1,xaxis:{title:{text:s,font:{size:16,color:vi.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:32},gridcolor:vi.GREY_200,range:n,autorange:!n,tickmode:"array",tickvals:m,showgrid:!0,...v},yaxis:{title:{text:c,font:{size:16,color:vi.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:30},gridcolor:vi.GREY_200,range:a,autorange:!a,tickmode:"array",tickvals:C,showgrid:!0,...v},legend:{x:.5,y:-.2,xanchor:"center",yanchor:"top",orientation:"h",font:{size:16,color:vi.BLUE_900,family:"Inter, sans-serif",weight:500}},showlegend:r.length>1};return d.newPlot(x.current,e,t,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{x.current&&d.purge(x.current)}},[r,o,i,n,a,l,s,c,h,p]),e.jsx("div",{className:"bar-graph-container",children:e.jsx("div",{ref:x,style:{width:"100%",height:"100%"}})})},exports.Boxplot=({dataSeries:r,width:o=1e3,height:i=600,xRange:n,yRange:a,xTitle:l="Columns",yTitle:s="Rows",title:c="Boxplot",showPoints:h=!1})=>{const p=t.useRef(null),{yMin:x,yMax:g}=(()=>{let e=Number.MAX_VALUE,t=Number.MIN_VALUE;r.forEach(r=>{r.y.forEach(r=>{e=Math.min(e,r),t=Math.max(t,r)})});const o=.1*(t-e);return{yMin:e-o,yMax:t+o}})(),u=a||[x,g],f=(()=>{const e=u[1]-u[0];let r=Math.pow(10,Math.floor(Math.log10(e)));e/r>10&&(r*=2),e/r<4&&(r/=2);const t=[];let o=Math.ceil(u[0]/r)*r;for(;o<=u[1];)t.push(o),o+=r;return t})(),m={tickcolor:vi.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:vi.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:vi.BLACK_900,linewidth:1,position:0,zeroline:!1},C={text:c,x:.5,y:.95,xanchor:"center",yanchor:"top",font:{size:32,weight:600,family:"Inter, sans-serif",color:vi.BLACK_900,lineheight:1.2,standoff:30}};return t.useEffect(()=>{if(!p.current)return;const e=r.map(e=>({y:e.y,x:e.x,type:"box",name:e.name,marker:{color:e.color},line:{color:e.color},fillcolor:e.color+"40",boxpoints:!!h&&(e.boxpoints||"outliers"),jitter:e.jitter||.3,pointpos:e.pointpos||-1.8})),t={width:o,height:i,title:C,margin:{l:80,r:40,b:80,t:80,pad:0},paper_bgcolor:vi.WHITE,plot_bgcolor:vi.WHITE,font:{family:"Inter, sans-serif"},dragmode:!1,xaxis:{title:{text:l,font:{size:16,color:vi.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:vi.GREY_200,range:n,autorange:!n,showgrid:!0,...m},yaxis:{title:{text:s,font:{size:16,color:vi.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:vi.GREY_200,range:a,autorange:!a,tickmode:"array",tickvals:f,showgrid:!0,...m},legend:{x:.5,y:-.2,xanchor:"center",yanchor:"top",orientation:"h",font:{size:13,color:vi.BLUE_900,family:"Inter, sans-serif",weight:500,lineheight:18}},showlegend:!0};return d.newPlot(p.current,e,t,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{p.current&&d.purge(p.current)}},[r,o,i,n,a,l,s,c,h]),e.jsx("div",{className:"boxplot-container",children:e.jsx("div",{ref:p,style:{width:"100%",height:"100%"}})})},exports.Button=f,exports.ButtonControl=C,exports.ButtonControlGroup=({controls:r,selectedId:t,onChange:o,vertical:i=!0,disabled:n=!1})=>e.jsx(Vt,{vertical:i,children:r.map(r=>e.jsx(Dt,{vertical:i,children:e.jsx(C,{icon:r.icon,selected:t===r.id,disabled:n||r.disabled,onClick:()=>{return e=r.id,void(n||o?.(e));var e}})},r.id))}),exports.CHART_COLORS=wi,exports.COLORS=vi,exports.Card=k,exports.CardSidebar=Ft,exports.Checkbox=be,exports.Chromatogram=({data:r=[],width:o=900,height:i=600,positionInterval:n=10,colorA:a="#2D9CDB",colorT:l="#A1C63C",colorG:s="#FF5C64",colorC:c="#FFA62E"})=>{const h=t.useRef(null),p=r.map(e=>e.position),x=r.map(e=>(e=>{const r={A:e.peakA,T:e.peakT,G:e.peakG,C:e.peakC},t=Object.values(r);if(t.every(e=>e===t[0]))return"";let o="",i=0;return Object.entries(r).forEach(([e,r])=>{r>i&&(o=e,i=r)}),o})(e)),g=r.map(e=>e.peakA),u=r.map(e=>e.peakT),f=r.map(e=>e.peakG),m=r.map(e=>e.peakC),C={x:p,y:g,type:"scatter",mode:"lines",name:"A",line:{color:a,width:2,shape:"spline"}},b={x:p,y:u,type:"scatter",mode:"lines",name:"T",line:{color:l,width:2,shape:"spline"}},v={x:p,y:f,type:"scatter",mode:"lines",name:"G",line:{color:s,width:2,shape:"spline"}},w={x:p,y:m,type:"scatter",mode:"lines",name:"C",line:{color:c,width:2,shape:"spline"}},y=Math.max(...g,...u,...f,...m);if(t.useEffect(()=>{if(!h.current||0===r.length)return;const e=[C,b,v,w],t={width:o,height:i-75,margin:{l:0,r:0,b:20,t:10,pad:0},paper_bgcolor:"var(--white-900)",plot_bgcolor:"var(--white-900)",font:{family:"Inter, sans-serif"},showlegend:!1,xaxis:{showgrid:!1,zeroline:!1,showticklabels:!1,showline:!1,range:[Math.min(...p),Math.max(...p)],fixedrange:!0},yaxis:{showgrid:!1,zeroline:!1,showticklabels:!1,showline:!1,range:[0,1.05*y],fixedrange:!0}};return d.newPlot(h.current,e,t,{responsive:!0,displayModeBar:!1,displaylogo:!1,fillFrame:!0}),()=>{h.current&&d.purge(h.current)}},[r,o,i,n,a,l,s,c,p,g,u,f,m,y]),0===r.length)return e.jsx("div",{className:"chart-container",children:"No data available"});return e.jsxs("div",{className:"chromatogram-container",style:{width:o,height:i},children:[e.jsxs("div",{className:"sequence-header",children:[(()=>{const r=Math.min(...p),t=Math.max(...p),i=o;return e.jsx("div",{className:"sequence-letters-container",children:x.map((o,n)=>{const d=p[n],h="A"===o?a:"T"===o?l:"G"===o?s:"C"===o?c:"var(--black-900)",x=(d-r)/(t-r)*i;return e.jsx("span",{className:"sequence-letter",style:{left:`${x}px`,color:h},children:o},`base-${n}`)})})})(),(()=>{const r=Math.min(...p),t=Math.max(...p),i=o,a=[];for(let e=Math.ceil(r/n)*n;e<=t;e+=n)a.push({position:e,label:e.toString()});return e.jsx("div",{className:"position-numbers-container",children:a.map(o=>{const n=(o.position-r)/(t-r)*i;return e.jsx("span",{className:"position-number",style:{left:`${n}px`},children:o.label},`pos-${o.position}`)})})})()]}),e.jsx("div",{className:"chromatogram-chart",children:e.jsx("div",{ref:h,style:{width:"100%",height:"100%"}})})]})},exports.CodeEditor=Ae,exports.CodeScriptEditorButton=({initialCode:r="",onCodeSave:o,language:i="python",buttonText:n="Edit Code",modalTitle:a="Edit Code",buttonProps:l,modalProps:s,disabled:d=!1})=>{const[c,h]=t.useState(!1),[p,x]=t.useState(r),g=p?p.split("\n").length:0,u=p.length,m=t.useCallback(()=>{x(r),h(!0)},[r]),C=t.useCallback(()=>{o&&o(p),h(!1)},[o,p]),b=t.useCallback(()=>{h(!1)},[]),v=t.useCallback(e=>{x(e||"")},[]);return e.jsxs(e.Fragment,{children:[e.jsxs(Xt,{children:[e.jsx(f,{leftIcon:e.jsx(xe,{name:exports.IconName.PENCIL}),onClick:m,size:"small",variant:"tertiary",...l,disabled:d,style:{height:38},children:n}),e.jsxs(Qt,{title:`${g} lines, ${u} characters`,children:[g," lines / ",u," chars"]})]}),e.jsx(Rr,{isOpen:c,onClose:b,onConfirm:C,onCloseLabel:"Cancel",onConfirmLabel:"Save Code",title:a,width:"80%",...s,children:e.jsx(qt,{children:e.jsx(Ae,{height:"400px",language:i,value:p,onChange:v,options:{minimap:{enabled:!1}}})})})]})},exports.DotPlot=({dataSeries:r,width:o=1e3,height:i=600,title:n="Dot Plot",xTitle:a="Columns",yTitle:l="Rows",variant:s="default",markerSize:c=8})=>{const h=t.useRef(null),p=Array.isArray(r)?r:[r],x=[vi.ORANGE,vi.RED,vi.GREEN,vi.BLUE,vi.YELLOW,vi.PURPLE],g=["circle","square","diamond","triangle-up","triangle-down","star"],u=p.map((e,r)=>"default"===s?{...e,color:e.color||x[0],symbol:"circle",size:e.size||c}:{...e,color:e.color||x[r%x.length],symbol:e.symbol||g[r%g.length],size:e.size||c}),f=vi.GREY_200,m=u.map(e=>({type:"scatter",x:e.x,y:e.y,mode:"markers",name:e.name,marker:{color:e.color,size:e.size,symbol:e.symbol,line:{color:vi.WHITE,width:1}},hovertemplate:`${a}: %{x}<br>${l}: %{y}<extra>${e.name}</extra>`})),C={tickcolor:vi.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:vi.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:vi.BLACK_900,linewidth:1,position:0,zeroline:!1},b={text:n,x:.5,y:.95,xanchor:"center",yanchor:"top",font:{size:32,weight:600,family:"Inter, sans-serif",color:vi.BLACK_900,lineheight:1.2,standoff:30}};return t.useEffect(()=>{if(!h.current)return;const e={width:o,height:i,font:{family:"Inter, sans-serif"},title:b,margin:{l:80,r:40,b:80,t:80,pad:0},showlegend:!0,legend:{x:.5,y:-.2,xanchor:"center",yanchor:"top",orientation:"h",font:{size:13,color:vi.BLUE_900,family:"Inter, sans-serif",weight:500,lineheight:18}},xaxis:{title:{text:a,font:{size:16,color:vi.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:f,...C},yaxis:{title:{text:l,font:{size:16,color:vi.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:f,...C},paper_bgcolor:vi.WHITE,plot_bgcolor:vi.WHITE};return d.newPlot(h.current,m,e,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{h.current&&d.purge(h.current)}},[r,o,i,a,l,s,c,m]),e.jsx("div",{className:"dotplot-container",style:{width:o},children:e.jsx("div",{ref:h,style:{width:"100%",height:"100%",margin:"0"}})})},exports.Dropdown=Pe,exports.ErrorAlert=({error:r,title:t="An Error Occurred",onClose:o,showDetailsDefault:i=!1})=>{if(!r)return e.jsx(e.Fragment,{});let n="An unexpected error occurred.",a=null,l=null,s="Unknown Error";if(function(e){return"object"==typeof e&&null!==e&&"isAxiosError"in e&&!0===e.isAxiosError}(r)){if(s="Network/API Error",n=r.message,r.response){const e=r.response.status,t=r.response.statusText;n=`API Error: ${e} ${t}`;const o=r.response.data;if("string"==typeof o)a=o;else if(o&&"object"==typeof o){const e=o.detail||o.message||o.error;"string"==typeof e?a=e:(a="Check details for response data.",l=JSON.stringify(o,null,2))}else a=`Request failed with status code ${e}.`;l=`URL: ${r.config?.method?.toUpperCase()} ${r.config?.url}\nStatus: ${e} ${t}\nResponse Data:\n${l??JSON.stringify(o,null,2)}`}else r.request?(s="Network Error",n="Network Error: Could not reach the server.",a="Please check your internet connection or contact support if the problem persists.",l=`URL: ${r.config?.method?.toUpperCase()} ${r.config?.url}\nError Message: ${r.message}`):n=`Request Setup Error: ${r.message}`;r.code&&(s+=` (Code: ${r.code})`)}else if(r instanceof Error)s=r.name||"Error",n=r.message,l=r.stack??"No stack trace available.";else if("string"==typeof r)s="Message",n=r;else if("object"==typeof r&&null!==r){s="Object Error",n=r.message||r.error||"An object was thrown as an error.";try{l=JSON.stringify(r,null,2)}catch{l="Could not stringify the error object."}}return e.jsxs(Oe,{type:"error",children:[e.jsxs(Ve,{children:[e.jsxs(Ge,{children:[e.jsx(De,{children:"⚠️"}),t]}),o&&e.jsx(Ue,{onClick:o,children:"✕"})]}),e.jsxs(Ze,{children:[e.jsxs(We,{children:[e.jsxs(Ke,{strong:!0,children:[s,":"]})," ",n]}),a&&e.jsx(We,{children:e.jsx(Ye,{children:a})}),l&&e.jsx(Fe,{children:e.jsx(Je,{header:"Details",defaultExpanded:i,children:e.jsx(Qe,{children:l})})})]})]})},exports.FormField=ro,exports.Heatmap=({data:r,xLabels:o,yLabels:i,title:n,xTitle:a="Columns",yTitle:l="Rows",colorscale:s=yi,width:c=800,height:h=600,showScale:p=!0,precision:x=0,zmin:g=0,zmax:u=5e4,valueUnit:f=""})=>{const m=t.useRef(null);let C=r||function(e,r,t=0,o=1){const i=[];for(let n=0;n<e;n++){const e=[];for(let i=0;i<r;i++)e.push(t+Math.random()*(o-t));i.push(e)}return i}(16,24,5e3,5e4);C=function(e){if(!e||0===e.length)return[];const r=Math.max(...e.map(e=>e.length));return e.map(e=>{if(e.length===r)return e;const t=[...e];for(;t.length<r;)t.push(0);return t})}(C);const b=C.length>0?C[0].length:24,v=o||Array.from({length:b},(e,r)=>r+1),w=i||(y=C.length,Array.from({length:y},(e,r)=>String.fromCharCode(65+r)));var y;return t.useEffect(()=>{if(!m.current)return;const e=[{z:C,x:v,y:w,type:"heatmap",colorscale:s,showscale:p,zsmooth:!1,hovertemplate:`Row: %{y}<br>Column: %{x}<br>Value: %{z:.${x}f}${f}<extra></extra>`,zmin:g,zmax:u,colorbar:{thickness:28,len:1,outlinewidth:0,ticksuffix:f,y:.5,yanchor:"middle"}}],r={title:{text:n||"",font:{family:"Inter, sans-serif",size:20,color:"var(--black-300)"},y:.98,yanchor:"top"},width:c,height:h,margin:{l:70,r:70,b:70,t:100,pad:5},xaxis:{title:{text:a,font:{size:16,color:"var(--black-300)",family:"Inter, sans-serif"},standoff:15},side:"top",fixedrange:!0},yaxis:{title:{text:l,font:{size:16,color:"var(--black-300)",family:"Inter, sans-serif"},standoff:15},autorange:"reversed",fixedrange:!0},paper_bgcolor:"var(--white-900)",plot_bgcolor:"var(--white-900)",font:{family:"Inter, sans-serif",color:"var(--grey-600)"}};return d.newPlot(m.current,e,r,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{m.current&&d.purge(m.current)}},[r,o,i,n,a,l,s,c,h,p,x,g,u,f]),e.jsx("div",{className:"heatmap-container",children:e.jsx("div",{ref:m,style:{width:"100%",height:"100%"}})})},exports.Histogram=({dataSeries:r,width:o=480,height:i=480,title:n="Histogram",xTitle:a="X Axis",yTitle:l="Frequency",bargap:s=.2,showDistributionLine:c=!1})=>{const h=t.useRef(null),p=Array.isArray(r)?r:[r],x=p.length>1?"stack":void 0,g=[vi.ORANGE,vi.RED,vi.BLUE,vi.GREEN,vi.PURPLE,vi.YELLOW],u=p.map((e,r)=>{const t=void 0!==e.showDistributionLine?e.showDistributionLine:c;return{...e,color:e.color||g[r%g.length],opacity:t?.5:e.opacity||1,showDistributionLine:t,lineWidth:e.lineWidth||3}}),f=vi.GREY_200,m=u.map(e=>({type:"histogram",x:e.x,name:e.name,marker:{color:e.color,line:{color:vi.WHITE,width:1},opacity:e.opacity},autobinx:e.autobinx,xbins:e.xbins,hovertemplate:`${a}: %{x}<br>${l}: %{y}<extra>${e.name}</extra>`})),C=u.filter(e=>e.showDistributionLine).map(e=>{const r=(t=e.x).reduce((e,r)=>e+r,0)/t.length;var t;const o=((e,r)=>{const t=e.map(e=>Math.pow(e-r,2)).reduce((e,r)=>e+r,0)/e.length;return Math.sqrt(t)})(e.x,r),i=Math.min(...e.x),n=Math.max(...e.x),a=n-i,l=i-.1*a,s=n+.1*a,d=e.xbins||{start:l,end:s,size:a/10},c=((e,r,t,o,i=100)=>{const n=[],a=[],l=(o-t)/(i-1);for(let o=0;o<i;o++){const i=t+o*l;n.push(i);const s=-.5*Math.pow((i-e)/r,2),d=1/(r*Math.sqrt(2*Math.PI))*Math.exp(s);a.push(d)}return{x:n,y:a}})(r,o,l,s,100),h=((e,r,t)=>{const o=Math.ceil((t.end-t.start)/t.size),i=Array(o).fill(0);r.forEach(e=>{if(e>=t.start&&e<=t.end){const r=Math.floor((e-t.start)/t.size);i[r]++}});const n=Math.max(...i)/Math.max(...e);return e.map(e=>e*n)})(c.y,e.x,d);return{type:"scatter",x:c.x,y:h,mode:"lines",name:`${e.name} Distribution`,line:{color:e.color,width:e.lineWidth},hoverinfo:"none"}}),b=[...m,...C];t.useEffect(()=>{if(!h.current)return;const e={width:o,height:i,font:{family:"Inter, sans-serif"},showlegend:!1,margin:{l:90,r:40,b:80,t:40},xaxis:{title:{text:a,font:{size:16,color:vi.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:20},gridcolor:f,tickcolor:vi.GREY_200,ticklen:8,tickwidth:1,ticks:"outside",linecolor:vi.BLACK_900,linewidth:1,zeroline:!1},yaxis:{title:{text:l,font:{size:16,color:vi.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:20},gridcolor:f,tickcolor:vi.GREY_200,ticklen:8,tickwidth:1,ticks:"outside",linecolor:vi.BLACK_900,linewidth:1,zeroline:!1,rangemode:"tozero"},barmode:x,bargap:s,paper_bgcolor:vi.WHITE,plot_bgcolor:vi.WHITE};return d.newPlot(h.current,b,e,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{h.current&&d.purge(h.current)}},[r,o,i,n,a,l,s,c,b]);return e.jsx("div",{className:"histogram-container",style:{width:o},children:e.jsxs("div",{className:"chart-container",children:[n&&e.jsx("div",{className:"title-container",children:e.jsx("h2",{className:"title",children:n})}),e.jsx("div",{ref:h,style:{width:"100%",height:"100%",margin:"0"}}),e.jsx(({series:r})=>{const o=r.map((o,i)=>e.jsx(t.Fragment,{children:e.jsxs("div",{className:"legend-item",children:[e.jsx("span",{className:"color-box",style:{background:o.color}}),o.name,i<r.length-1&&e.jsx("span",{className:"divider"})]})},o.name)),i=[];for(let r=0;r<o.length;r+=6)i.push(e.jsx("div",{className:"legend-row",children:o.slice(r,r+6)},r));return e.jsx("div",{className:"legend-container",children:i})},{series:u})]})})},exports.Icon=xe,exports.Input=ir,exports.Label=dr,exports.LaunchContent=co,exports.LineGraph=({dataSeries:r,width:o=1e3,height:i=600,xRange:n,yRange:a,variant:l="lines",xTitle:s="Columns",yTitle:c="Rows",title:h="Line Graph"})=>{const p=t.useRef(null),{yMin:x,yMax:g}=(()=>{let e=Number.MAX_VALUE,t=Number.MIN_VALUE,o=Number.MAX_VALUE,i=Number.MIN_VALUE;r.forEach(r=>{r.x.forEach(r=>{e=Math.min(e,r),t=Math.max(t,r)}),r.y.forEach(e=>{o=Math.min(o,e),i=Math.max(i,e)})});const n=.1*(t-e),a=.1*(i-o);return{xMin:e-n,xMax:t+n,yMin:o-a,yMax:i+a}})(),u=a||[x,g],f=Array.from(new Set(r.flatMap(e=>e.x))),m=(()=>{const e=u[1]-u[0];let r=Math.pow(10,Math.floor(Math.log10(e)));e/r>10&&(r*=2),e/r<4&&(r/=2);const t=[];let o=Math.ceil(u[0]/r)*r;for(;o<=u[1];)t.push(o),o+=r;return t})(),C=()=>{switch(l){case"lines+markers":case"lines+markers+error_bars":return"lines+markers";default:return"lines"}},b={tickcolor:vi.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:vi.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:vi.BLACK_900,linewidth:1,position:0,zeroline:!1};return t.useEffect(()=>{if(!p.current)return;const e=r.map(e=>({x:e.x,y:e.y,type:"scatter",mode:C(),name:e.name,line:{color:e.color,width:1.5},marker:"lines"!==l?{color:e.color,size:8,symbol:e.symbol||"triangle-up"}:{opacity:0},error_y:"lines+markers+error_bars"===l?e.error_y||{type:"data",array:e.y.map(()=>10),visible:!0,color:e.color,thickness:1,width:5}:void 0})),t={title:{text:h,font:{size:32,family:"Inter, sans-serif",color:vi.BLACK_900}},width:o,height:i,margin:{l:80,r:30,b:80,t:60,pad:10},paper_bgcolor:vi.WHITE,plot_bgcolor:vi.WHITE,font:{family:"Inter, sans-serif"},dragmode:!1,xaxis:{title:{text:s,font:{size:16,color:vi.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:32},gridcolor:vi.GREY_200,range:n,autorange:!n,tickmode:"array",tickvals:f,ticktext:f.map(String),showgrid:!0,...b},yaxis:{title:{text:c,font:{size:16,color:vi.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:30},gridcolor:vi.GREY_200,range:a,autorange:!a,tickmode:"array",tickvals:m,showgrid:!0,...b},legend:{x:.5,y:-.2,xanchor:"center",yanchor:"top",orientation:"h",font:{size:16,color:vi.BLUE_900,family:"Inter, sans-serif",weight:500}},showlegend:!0};return d.newPlot(p.current,e,t,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{p.current&&d.purge(p.current)}},[r,o,i,n,a,l,s,c,h]),e.jsx("div",{className:"chart-container",children:e.jsx("div",{ref:p,style:{width:"100%",height:"100%"}})})},exports.Main=({userProfile:r,hostname:o,organization:i})=>{const n=[{icon:exports.IconName.SEARCH_DOCUMENT,label:"Search"},{icon:exports.IconName.SEARCH_SQL,label:"SQL Search"},{icon:exports.IconName.LAMP,label:"Projects"},{icon:exports.IconName.PIPELINE,label:"Pipelines"},{icon:exports.IconName.COMPUTER,label:"Data & AI Workspace"},{icon:exports.IconName.CUBE,label:"Artifacts"},{icon:exports.IconName.DATABASE,label:"Data Sources"},{icon:exports.IconName.PIE_CHART,label:"Health Monitoring"},{icon:exports.IconName.BULK_CHECK,label:"Bulk Actions"},{icon:exports.IconName.CODE,label:"Attribute Management"},{icon:exports.IconName.GEAR,label:"Administration"}],[a,l]=t.useState("Pipelines"),[s,d]=t.useState("templates"),[c,h]=t.useState("pipelineBuilder"),[p,x]=t.useState("1"),g=[{id:"1",title:"Tecan D300e and PerkinElmer EnVision to Dotmatics (v1)",description:"c901ejs",buttonText:"",linkText:""},{id:"2",title:"Bruker D8 Andvanced CRD Raw to IDS(Draft)",description:"c901ejs",buttonText:"",linkText:""},{id:"3",title:"Extract and Decorate(Draft)",description:"c901ejs",buttonText:"",linkText:""},{id:"4",title:"Intellict (Que3 Raw to IDS(Draft)",description:"c901ejs",buttonText:"",linkText:""},{id:"5",title:"Leica Aperio RAW to IDS(Draft)",description:"c901ejs",buttonText:"",linkText:""},{id:"6",title:"IDS to Benchling(Draft)",description:"c901ejs",buttonText:"",linkText:""},{id:"7",title:"Lorem Ipsum",description:"c901ejs",buttonText:"",linkText:""}],u=[],f=e=>{x(e===p?null:e)},m=e=>{console.log(`Using template: ${e}`)},C=e=>{console.log(`Viewing template: ${e}`)};return e.jsxs(ji,{children:[e.jsx(Io,{organization:i}),e.jsxs(ki,{children:[e.jsx(ri,{items:n,activeItem:a,onItemClick:e=>{l(e)}}),e.jsxs(Li,{children:[e.jsx(It,{hostname:o,userProfile:r,onHomeClick:()=>{console.log("Home clicked")},onSettingsClick:()=>{console.log("Settings clicked")},onUserProfileClick:()=>{console.log("User profile clicked")}}),e.jsx(Ei,{children:e.jsx(Ii,{children:e.jsxs("div",{style:{display:"flex",height:"100%"},children:[e.jsxs(_i,{children:[e.jsx(gi,{tabs:[{id:"templates",label:"Templates"},{id:"protocol",label:"Protocol"},{id:"steps",label:"Steps"}],activeTab:s,onChange:e=>{d(e)}}),"templates"===s&&e.jsxs(e.Fragment,{children:[e.jsxs(Ni,{children:[e.jsx(Mi,{children:"Templates"}),e.jsxs(Ai,{children:[e.jsx(Ri,{variant:"tertiary",size:"small","aria-label":"Delete",noPadding:!0,children:e.jsx(xe,{name:exports.IconName.TRASH,width:"20",height:"20",fill:"var(--red-error)"})}),e.jsx(Ri,{variant:"primary",size:"small","aria-label":"Add",noPadding:!0,children:e.jsx(xe,{name:exports.IconName.PLUS,width:"20",height:"20",fill:"var(--white-900)"})})]})]}),e.jsx(zi,{children:g.length>0?g.map(r=>e.jsx($i,{onClick:()=>f(r.id),children:e.jsx(Pi,{title:r.title,description:r.description,buttonText:r.buttonText,linkText:r.linkText,status:p===r.id?"active":"default",onButtonClick:()=>m(r.id),onLinkClick:()=>C(r.id)})},r.id)):e.jsxs(Ti,{children:[e.jsx(xe,{name:exports.IconName.INBOX,width:"40",height:"40",fill:"var(--grey-400)"}),e.jsx(Si,{children:"No data"})]})})]}),"protocol"===s&&e.jsxs(e.Fragment,{children:[e.jsx(Ni,{children:e.jsxs(Mi,{children:["Protocol (",u.length,")"]})}),e.jsx(zi,{children:u.length>0?u.map(r=>e.jsx($i,{onClick:()=>f(r.id),children:e.jsx(Pi,{title:r.title,description:r.description,status:p===r.id?"active":"default",onButtonClick:()=>m(r.id),onLinkClick:()=>C(r.id)})},r.id)):e.jsxs(Ti,{children:[e.jsx(xe,{name:exports.IconName.INBOX,width:"40",height:"40",fill:"var(--grey-400)"}),e.jsx(Si,{children:"No data"})]})})]}),"steps"===s&&e.jsxs(e.Fragment,{children:[e.jsx(Ni,{children:e.jsxs(Mi,{children:["Task Scripts (",0,")"]})}),e.jsx(zi,{children:u.length>0?u.map(r=>e.jsx($i,{onClick:()=>f(r.id),children:e.jsx(Pi,{title:r.title,description:r.description,status:p===r.id?"active":"default",onButtonClick:()=>m(r.id),onLinkClick:()=>C(r.id)})},r.id)):e.jsxs(Ti,{children:[e.jsx(xe,{name:exports.IconName.INBOX,width:"40",height:"40",fill:"var(--grey-400)"}),e.jsx(Si,{children:"No data"})]})})]})]}),e.jsxs(Bi,{children:[e.jsx(Hi,{children:e.jsx(gi,{tabs:[{id:"pipelineBuilder",label:"Pipeline Builder"},{id:"configuration",label:"Configuration"},{id:"launch",label:"Launch"}],activeTab:c,onChange:e=>{h(e)}})}),e.jsxs(Oi,{children:["pipelineBuilder"===c&&e.jsx(Vi,{}),"configuration"===c&&e.jsx(So,{}),"launch"===c&&e.jsx(co,{})]})]})]})})})]})]})]})},exports.MarkdownDisplay=({markdown:r,codeRenderer:t})=>e.jsx(i,{remarkPlugins:[l],rehypePlugins:[a],components:{code:t||xr},children:r}),exports.Menu=({title:r,items:t,onItemClick:o,onItemCheckChange:i,activeItemId:n=null,className:a})=>e.jsxs(ho,{className:a,children:[r&&e.jsx(po,{children:r}),e.jsx(xo,{children:t.map(r=>e.jsx(mr,{label:r.label,checked:r.checked,showCheckbox:r.showCheckbox,active:n===r.id||r.active,onClick:()=>{return e=r.id,void(o&&o(e));var e},onCheckChange:e=>((e,r)=>{i&&i(e,r)})(r.id,e)},r.id))})]}),exports.MenuItem=mr,exports.Modal=Rr,exports.Navbar=Io,exports.PieChart=({dataSeries:r,width:o=400,height:i=400,title:n="Pie Chart",textInfo:a="percent",hole:l=0,rotation:s=0})=>{const c=t.useRef(null),h=[vi.BLUE,vi.GREEN,vi.ORANGE,vi.RED,vi.YELLOW,vi.PURPLE],p=()=>{if(r.colors&&r.colors.length>=r.labels.length)return r.colors;const e=r.colors||[],t=r.labels.length-e.length;if(t<=0)return e;for(let r=0;r<t;r++)e.push(h[r%h.length]);return e};t.useEffect(()=>{if(!c.current)return;const e=[{type:"pie",labels:r.labels,values:r.values,name:r.name,marker:{colors:p()},textinfo:a,hoverinfo:"label+text+value",insidetextfont:{size:0,family:"Inter, sans-serif",color:"transparent"},hole:l,rotation:s}],t={width:o,height:i,font:{family:"Inter, sans-serif"},showlegend:!1,margin:{l:40,r:40,b:40,t:40}};return d.newPlot(c.current,e,t,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{c.current&&d.purge(c.current)}},[r,o,i,a,l,s]);return e.jsx("div",{className:"card-container",style:{width:o},children:e.jsxs("div",{className:"chart-container",children:[n&&e.jsx("div",{className:"title-container",children:e.jsx("h2",{className:"title",children:n})}),e.jsx("div",{ref:c,style:{width:"100%",height:"100%",margin:"0"}}),e.jsx(({labels:r,colors:o})=>{const i=r.map((i,n)=>e.jsx(t.Fragment,{children:e.jsxs("div",{className:"legend-item",children:[e.jsx("span",{className:"color-box",style:{background:o[n]}}),i,n<r.length-1&&e.jsx("span",{className:"divider"})]})},i)),n=[];for(let r=0;r<i.length;r+=6)n.push(e.jsx("div",{className:"legend-row",children:i.slice(r,r+6)},r));return e.jsx("div",{className:"legend-container",children:n})},{labels:r.labels,colors:p()})]})})},exports.PopConfirm=Sr,exports.ProtocolConfiguration=So,exports.ProtocolYamlCard=({title:r,newVersionMode:t,onToggleNewVersionMode:o,versionOptions:i,selectedVersion:n,onVersionChange:a,onDeploy:l,yaml:s,onYamlChange:d})=>e.jsxs($o,{children:[e.jsxs(Po,{children:[e.jsx(Oo,{children:r}),e.jsxs(Vo,{children:[e.jsx(Go,{checked:t,onChange:o,label:"New Version Mode"}),e.jsx(Do,{}),e.jsx(Zo,{options:i,value:n,onChange:a,size:"small",width:"120px"}),e.jsx(f,{variant:"primary",size:"medium",onClick:l,children:"Deploy"})]})]}),e.jsx(Uo,{children:e.jsx(Ae,{value:s,onChange:e=>d(e??""),language:"yaml",theme:"light",onCopy:()=>{},onLaunch:()=>{}})})]}),exports.PythonEditorModal=({open:r,initialValue:o="",title:i="",onSave:n,onCancel:a})=>{const[l,s]=t.useState(o);return e.jsx(Rr,{isOpen:r,onClose:a,onCloseLabel:"Cancel",onConfirm:()=>{n(l)},onConfirmLabel:"Save Code",title:i,width:"600px",children:e.jsx(Wo,{children:e.jsx(Ae,{value:l,onChange:e=>s(e??""),language:"python",height:300,theme:"dark",onCopy:()=>{},onLaunch:()=>{}})})})},exports.ScatterGraph=({dataSeries:r,width:o=1e3,height:i=600,xRange:n,yRange:a,xTitle:l="Columns",yTitle:s="Rows",title:c="Scatter Plot"})=>{const h=t.useRef(null),{xMin:p,xMax:x,yMin:g,yMax:u}=(()=>{let e=Number.MAX_VALUE,t=Number.MIN_VALUE,o=Number.MAX_VALUE,i=Number.MIN_VALUE;r.forEach(r=>{r.x.forEach(r=>{e=Math.min(e,r),t=Math.max(t,r)}),r.y.forEach(e=>{o=Math.min(o,e),i=Math.max(i,e)})});const n=.1*(t-e),a=.1*(i-o);return{xMin:e-n,xMax:t+n,yMin:o-a,yMax:i+a}})(),f=n||[p,x],m=a||[g,u],C=(()=>{const e=f[1]-f[0];let r=Math.pow(10,Math.floor(Math.log10(e)));e/r>10&&(r*=2),e/r<4&&(r/=2);const t=[];let o=Math.ceil(f[0]/r)*r;for(;o<=f[1];)t.push(o),o+=r;return t})(),b=(()=>{const e=m[1]-m[0];let r=Math.pow(10,Math.floor(Math.log10(e)));e/r>10&&(r*=2),e/r<4&&(r/=2);const t=[];let o=Math.ceil(m[0]/r)*r;for(;o<=m[1];)t.push(o),o+=r;return t})(),v={tickcolor:vi.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:vi.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:vi.BLACK_900,linewidth:1,position:0,zeroline:!1},w={showspikes:!0,spikemode:"across",spikedash:"solid",spikecolor:vi.BLACK_OPACITY_20,spikethickness:2};return t.useEffect(()=>{if(!h.current)return;const e=r.map(e=>({x:e.x,y:e.y,type:"scatter",mode:"markers",name:e.name,marker:{color:e.color,size:10,symbol:"circle"},hovertemplate:`${l}: %{x}<br>${s}: %{y}<extra>${e.name}</extra>`})),t={title:{text:c,font:{size:32,family:"Inter, sans-serif",color:vi.BLACK_900}},width:o,height:i,margin:{l:80,r:30,b:80,t:60,pad:10},paper_bgcolor:vi.WHITE,plot_bgcolor:vi.WHITE,font:{family:"Inter, sans-serif"},dragmode:!1,xaxis:{title:{text:l,font:{size:16,color:vi.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:32},gridcolor:vi.GREY_200,range:n,autorange:!n,tickmode:"array",tickvals:C,ticktext:C.map(String),showgrid:!0,...w,...v},yaxis:{title:{text:s,font:{size:16,color:vi.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:30},gridcolor:vi.GREY_200,range:a,autorange:!a,tickmode:"array",tickvals:b,showgrid:!0,...w,...v},legend:{x:.5,y:-.2,xanchor:"center",yanchor:"top",orientation:"h",font:{size:16,color:vi.BLUE_900,family:"Inter, sans-serif",weight:500}},showlegend:!0,hovermode:"closest"};return d.newPlot(h.current,e,t,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{h.current&&d.purge(h.current)}},[r,o,i,n,a,l,s,c]),e.jsx("div",{className:"chart-container",children:e.jsx("div",{ref:h,style:{width:"100%",height:"100%"}})})},exports.SelectField=Fo,exports.Sidebar=ri,exports.SupportiveText=Or,exports.Tab=Ur,exports.TabGroup=gi,exports.Table=pi,exports.TableCell=Zr,exports.TableHeaderCell=qr,exports.Textarea=rt,exports.ThemeProvider=({theme:o={},children:i})=>{const n=t.useMemo(()=>({colors:{...Di.colors,...o.colors},radius:{...Di.radius,...o.radius},spacing:{...Di.spacing,...o.spacing}}),[o]);return t.useEffect(()=>{const e=document.documentElement;return n.colors&&Object.entries(n.colors).forEach(([r,t])=>{t&&e.style.setProperty(`--theme-${r}`,t)}),n.radius&&Object.entries(n.radius).forEach(([r,t])=>{t&&e.style.setProperty(`--theme-radius-${r}`,t)}),n.spacing&&Object.entries(n.spacing).forEach(([r,t])=>{t&&e.style.setProperty(`--theme-spacing-${r}`,t)}),()=>{n.colors&&Object.keys(n.colors).forEach(r=>{e.style.removeProperty(`--theme-${r}`)}),n.radius&&Object.keys(n.radius).forEach(r=>{e.style.removeProperty(`--theme-radius-${r}`)}),n.spacing&&Object.keys(n.spacing).forEach(r=>{e.style.removeProperty(`--theme-spacing-${r}`)})}},[n]),e.jsx(r.ThemeProvider,{theme:n,children:i})},exports.Toast=xt,exports.ToastManager=({position:r="top"})=>{const[o,i]=t.useState([]),[n,a]=t.useState(!1);return t.useEffect(()=>{a(!0);const e=(r=i,Ci.push(r),r(mi),()=>{Ci=Ci.filter(e=>e!==r)});var r;return()=>{e(),a(!1)}},[]),n?s.createPortal(e.jsx(ui,{position:r,children:o.map(t=>e.jsx(fi,{theme:{position:r},children:e.jsx(xt,{type:t.type,heading:t.heading,description:t.description})},t.id))}),document.body):null},exports.Toggle=Ct,exports.Tooltip=je,exports.defaultTheme=Di;
|
|
1998
|
+
`,sa=[Ei.BLUE,Ei.GREEN,Ei.ORANGE,Ei.RED,Ei.YELLOW,Ei.PURPLE],la=({filters:t,filterValues:r,onFilterChange:o})=>e.jsx("div",{className:"tdp-search__filters-row",children:t.map(t=>e.jsxs("div",{className:"tdp-search__filter-wrapper",children:[e.jsx("label",{className:"tdp-search__filter-label",children:t.label}),e.jsx(He,{options:t.options,value:r[t.key]||"",onChange:e=>o(t.key,e)})]},t.key))}),ca=({results:t,total:r,currentPage:o,pageSize:i,columns:n,onPageChange:a,sortKey:s,sortDirection:l,onSort:c})=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"tdp-search__results-header",children:e.jsxs("div",{className:"tdp-search__results-count",children:["Showing ",(o-1)*i+1,"-",Math.min(o*i,r)," of ",r," results"]})}),e.jsx(bi,{columns:n,data:t,pageSize:i,currentPage:o,totalItems:r,onPageChange:a,sortKey:s||void 0,sortDirection:l,onSort:c,rowKey:e=>e.id||Math.random().toString()})]}),da=({query:t,setQuery:r,onSearch:o,isLoading:i,placeholder:n})=>e.jsxs("div",{className:"tdp-search__search-bar",children:[e.jsx("div",{className:"tdp-search__search-input-wrapper",children:e.jsx(at,{value:t,onChange:e=>r(e.target.value),onKeyDown:e=>{"Enter"===e.key&&o()},placeholder:n,iconLeft:e.jsx(oe,{}),size:"small"})}),e.jsx(f,{variant:"primary",onClick:o,disabled:!t.trim()||i,children:i?"Searching...":"Search"})]}),ha="ts-auth-token",pa="x-org-slug",xa=(e,t,r)=>{const{searchTerm:o,sort:i,order:n,...a}=e,s={from:t,size:r};return void 0!==o&&""!==o&&(s.query={simple_query_string:{query:o,default_operator:"and"}}),void 0!==i&&""!==i&&(s.sort=n?[{[i]:n}]:[i]),Object.entries(a).forEach(([e,t])=>{void 0!==t&&(s[e]=t)}),s};function ua(e){const[t,o]=r.useState([]),[i,n]=r.useState(0),[a,s]=r.useState(1),[l,c]=r.useState(!1),[d,h]=r.useState(null);return{results:t,total:i,currentPage:a,isLoading:l,error:d,executeSearch:async(t,r=1)=>{c(!0),h(null);const{pageSize:i,standalone:a,baseUrl:l,apiEndpoint:d="/api/search",authToken:p,orgSlug:x}=e,u=(r-1)*i;let g,f;if(a){if(!l)throw new Error("baseUrl is required when standalone is true");g=`${l.replace(/\/$/,"")}/v1/datalake/searchEql`,f={method:"POST",headers:{"Content-Type":"application/json",...p&&{[ha]:p},...x&&{[pa]:x}},body:JSON.stringify(xa(t,u,i))}}else{const e={"Content-Type":"application/json"};p&&x&&(e[ha]=p,e[pa]=x),g=d,f={method:"POST",headers:e,credentials:"include",body:JSON.stringify({...t,size:i,from:u})}}try{const e=await fetch(g,f);if(!e.ok){const t=await e.json().catch(()=>({error:"Unknown error"})),r=a&&t.error?.message||t.error;throw new Error(r||`HTTP ${e.status}: ${e.statusText}`)}const t=await e.json(),i=(t.hits?.hits||[]).map(e=>({id:e._id,...e._source,_score:e._score})),l="number"==typeof t.hits?.total?t.hits.total:t.hits?.total?.value||0;return o(i),n(l),s(r),i}catch(e){return h(e.message||"An error occurred while searching"),o([]),n(0),[]}finally{c(!1)}}}}function ga(e){try{return localStorage.getItem(e)??void 0}catch{return}}function fa(e){try{const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):void 0}catch{return}}const ma={colors:{primary:"var(--blue-900)",primaryHover:"var(--blue-800)",primaryActive:"var(--blue-800)",background:"var(--white-900)",text:"var(--black-900)",border:"var(--grey-200)",cardBackground:"var(--white-900)",cardBorder:"var(--grey-200)"},radius:{small:"4px",medium:"8px",large:"16px"},spacing:{small:"8px",medium:"16px",large:"24px"}},Ca=t.div`
|
|
1999
|
+
${e=>Object.entries(e.$themeStyles).map(([e,t])=>`${e}: ${t};`).join("\n")}
|
|
2000
|
+
`;exports.AppHeader=Sr,exports.AppLayout=({userProfile:t,hostname:o,organization:i,children:n})=>{const a=[{icon:exports.IconName.SEARCH_DOCUMENT,label:"Search"},{icon:exports.IconName.SEARCH_SQL,label:"SQL Search"},{icon:exports.IconName.LAMP,label:"Projects"},{icon:exports.IconName.PIPELINE,label:"Pipelines"},{icon:exports.IconName.COMPUTER,label:"Data & AI Workspace"},{icon:exports.IconName.CUBE,label:"Artifacts"},{icon:exports.IconName.DATABASE,label:"Data Sources"},{icon:exports.IconName.PIE_CHART,label:"Health Monitoring"},{icon:exports.IconName.BULK_CHECK,label:"Bulk Actions"},{icon:exports.IconName.CODE,label:"Attribute Management"},{icon:exports.IconName.GEAR,label:"Administration"}],[s,l]=r.useState("Pipelines");return e.jsxs("div",{className:"app-layout",children:[e.jsx(So,{organization:i}),e.jsxs("div",{className:"content-container",children:[e.jsx(li,{items:a,activeItem:s,onItemClick:e=>{l(e)}}),e.jsxs("div",{className:"main-content",children:[e.jsx(Sr,{hostname:o,userProfile:t,onHomeClick:()=>{console.log("Home clicked")},onSettingsClick:()=>{console.log("Settings clicked")},onUserProfileClick:()=>{console.log("User profile clicked")}}),e.jsx("div",{className:"main-layout",children:n})]})]})]})},exports.AreaGraph=({dataSeries:t,width:o=1e3,height:i=600,xRange:n,yRange:a,variant:s="normal",xTitle:l="Columns",yTitle:d="Rows",title:h="Area Graph"})=>{const p=r.useRef(null),{xMin:x,xMax:u,yMin:g,yMax:f}=r.useMemo(()=>{let e=Number.MAX_VALUE,r=Number.MIN_VALUE,o=Number.MAX_VALUE,i=Number.MIN_VALUE;t.forEach(t=>{t.x.forEach(t=>{e=Math.min(e,t),r=Math.max(r,t)}),t.y.forEach(e=>{o=Math.min(o,e),i=Math.max(i,e)})});const n=.1*(r-e),a=.1*(i-o);return{xMin:e-n,xMax:r+n,yMin:"stacked"===s?0:o-a,yMax:i+a}},[t,s]),m=r.useMemo(()=>n||[x,u],[n,x,u]),C=r.useMemo(()=>a||[g,f],[a,g,f]),b=r.useMemo(()=>{const e=m[1]-m[0];let t=Math.pow(10,Math.floor(Math.log10(e)));e/t>10&&(t*=2),e/t<4&&(t/=2);const r=[];let o=Math.ceil(m[0]/t)*t;for(;o<=m[1];)r.push(o),o+=t;return r},[m]),v=r.useMemo(()=>{const e=C[1]-C[0];let t=Math.pow(10,Math.floor(Math.log10(e)));e/t>10&&(t*=2),e/t<4&&(t/=2);const r=[];let o=Math.ceil(C[0]/t)*t;for(;o<=C[1];)r.push(o),o+=t;return r},[C]),w=r.useMemo(()=>({tickcolor:Ei.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:Ei.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:Ei.BLACK_900,linewidth:1,position:0,zeroline:!1}),[]),y=r.useMemo(()=>({text:h,x:.5,y:.95,xanchor:"center",yanchor:"top",font:{size:32,weight:600,family:"Inter, sans-serif",color:Ei.BLACK_900,lineheight:1.2,standoff:30}}),[h]);return r.useEffect(()=>{if(!p.current)return;let e;if("stacked"===s){const r=new Array(t[0]?.x.length||0).fill(0);e=t.map((e,t)=>{const o=e.y.map((e,t)=>{const o=r[t]+e;return r[t]=o,o});return{x:e.x,y:o,type:"scatter",mode:"lines",name:e.name,fill:0===t?"tozeroy":"tonexty",fillcolor:e.color,line:{color:e.color,width:2}}})}else e=t.map(e=>({x:e.x,y:e.y,type:"scatter",mode:"lines",name:e.name,fill:e.fill||"tozeroy",fillcolor:e.color,line:{color:e.color,width:2}}));const r={width:o,height:i,title:y,margin:{l:80,r:40,b:80,t:80,pad:0},paper_bgcolor:Ei.WHITE,plot_bgcolor:Ei.WHITE,font:{family:"Inter, sans-serif"},dragmode:!1,xaxis:{title:{text:l,font:{size:16,color:Ei.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:Ei.GREY_200,range:n,autorange:!n,tickmode:"array",tickvals:b,showgrid:!0,...w},yaxis:{title:{text:d,font:{size:16,color:Ei.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:Ei.GREY_200,range:a,autorange:!a,tickmode:"array",tickvals:v,showgrid:!0,...w},legend:{x:.5,y:-.2,xanchor:"center",yanchor:"top",orientation:"h",font:{size:13,color:Ei.BLUE_900,family:"Inter, sans-serif",weight:500,lineheight:18}},showlegend:!0};c.newPlot(p.current,e,r,{responsive:!0,displayModeBar:!1,displaylogo:!1});const h=p.current;return()=>{h&&c.purge(h)}},[t,o,i,n,a,m,C,s,l,d,y,w,b,v]),e.jsx("div",{className:"area-graph-container",children:e.jsx("div",{ref:p,style:{width:"100%",height:"100%"}})})},exports.AssistantModal=({open:t,title:o,prompt:i,initialCode:n="",userQuery:a="",onUserQueryChange:s,onCopy:l,onLaunch:c,onSend:d,onCancel:h})=>{const[p,x]=r.useState(n),[u,g]=r.useState(""),[f,m]=r.useState(a);return r.useEffect(()=>{m(a)},[a]),t?e.jsx(zr,{children:e.jsxs(Br,{children:[e.jsxs(Hr,{children:[e.jsxs(Or,{children:[e.jsx(pe,{name:exports.IconName.TETRASCIENCE_ICON,fill:"var(--blue-600)"}),e.jsx(Pr,{children:o})]}),e.jsx(Dr,{onClick:h,children:e.jsx(pe,{name:exports.IconName.CLOSE,width:"20",height:"20",fill:"var(--black-900)"})})]}),e.jsx(Vr,{children:i}),e.jsx(Ur,{children:e.jsx(Gr,{value:f,onChange:e=>{m(e.target.value),s&&s(e.target.value)},rows:2,placeholder:"Type your question here..."})}),e.jsx(Fr,{children:e.jsx(Kr,{children:e.jsx(Ne,{value:p,onChange:e=>x(e??""),language:"python",theme:"dark",height:200,onCopy:l,onLaunch:c})})}),e.jsxs(Zr,{children:[e.jsx(at,{value:u,onChange:e=>g(e.target.value),placeholder:"Ask us anything related to your work...",size:"small",onKeyDown:e=>{"Enter"===e.key&&d(u)}}),e.jsxs(Wr,{variant:"primary",onClick:()=>d(u),children:[e.jsx(pe,{name:exports.IconName.PAPER_PLANE}),"Send"]})]})]})}):null},exports.Badge=({children:t,size:r="medium",variant:o="default",disabled:i=!1,iconLeft:n,iconRight:a,className:s})=>e.jsxs(p,{$size:r,$variant:o,$disabled:i,className:s,children:[n&&n,t,a&&a]}),exports.BarGraph=({dataSeries:t,width:o=1e3,height:i=600,xRange:n,yRange:a,variant:s="group",xTitle:l="Columns",yTitle:d="Rows",title:h="Bar Graph",barWidth:p=24})=>{const x=r.useRef(null),{yMin:u,yMax:g}=r.useMemo(()=>{let e=Number.MAX_VALUE,r=Number.MIN_VALUE,o=Number.MAX_VALUE,i=Number.MIN_VALUE;t.forEach(t=>{t.x.forEach(t=>{e=Math.min(e,t),r=Math.max(r,t)}),t.y.forEach(e=>{o=Math.min(o,e),i=Math.max(i,e)})});const n=.1*(r-e),a=.1*(i-o);return{xMin:e-n,xMax:r+n,yMin:"stack"===s?0:o-a,yMax:i+a}},[t,s]),f=r.useMemo(()=>a||[u,g],[a,u,g]),m=r.useMemo(()=>[...new Set(t.flatMap(e=>e.x))],[t]),C=r.useMemo(()=>{const e=f[1]-f[0];let t=Math.pow(10,Math.floor(Math.log10(e)));e/t>10&&(t*=2),e/t<4&&(t/=2);const r=[];let o=Math.ceil(f[0]/t)*t;for(;o<=f[1];)r.push(o),o+=t;return r},[f]),b=r.useMemo(()=>{switch(s){case"stack":return"stack";case"overlay":return"overlay";default:return"group"}},[s]),v=r.useMemo(()=>({tickcolor:Ei.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:Ei.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:Ei.BLACK_900,linewidth:1,position:0,zeroline:!1}),[]);return r.useEffect(()=>{if(!x.current)return;const e=t.map(e=>({x:e.x,y:e.y,type:"bar",name:e.name,marker:{color:e.color},width:p,error_y:e.error_y})),r={title:{text:h,font:{size:32,family:"Inter, sans-serif",color:Ei.BLACK_900}},width:o,height:i,margin:{l:80,r:30,b:80,t:60,pad:0},paper_bgcolor:Ei.WHITE,plot_bgcolor:Ei.WHITE,font:{family:"Inter, sans-serif"},barmode:b,bargap:.15,dragmode:!1,xaxis:{title:{text:l,font:{size:16,color:Ei.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:32},gridcolor:Ei.GREY_200,range:n,autorange:!n,tickmode:"array",tickvals:m,showgrid:!0,...v},yaxis:{title:{text:d,font:{size:16,color:Ei.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:30},gridcolor:Ei.GREY_200,range:a,autorange:!a,tickmode:"array",tickvals:C,showgrid:!0,...v},legend:{x:.5,y:-.2,xanchor:"center",yanchor:"top",orientation:"h",font:{size:16,color:Ei.BLUE_900,family:"Inter, sans-serif",weight:500}},showlegend:t.length>1};c.newPlot(x.current,e,r,{responsive:!0,displayModeBar:!1,displaylogo:!1});const s=x.current;return()=>{s&&c.purge(s)}},[t,o,i,n,a,l,d,h,p,b,v,m,C]),e.jsx("div",{className:"bar-graph-container",children:e.jsx("div",{ref:x,style:{width:"100%",height:"100%"}})})},exports.Boxplot=({dataSeries:t,width:o=1e3,height:i=600,xRange:n,yRange:a,xTitle:s="Columns",yTitle:l="Rows",title:d="Boxplot",showPoints:h=!1})=>{const p=r.useRef(null),{yMin:x,yMax:u}=r.useMemo(()=>{let e=Number.MAX_VALUE,r=Number.MIN_VALUE;t.forEach(t=>{t.y.forEach(t=>{e=Math.min(e,t),r=Math.max(r,t)})});const o=.1*(r-e);return{yMin:e-o,yMax:r+o}},[t]),g=r.useMemo(()=>a||[x,u],[a,x,u]),f=r.useMemo(()=>{const e=g[1]-g[0];let t=Math.pow(10,Math.floor(Math.log10(e)));e/t>10&&(t*=2),e/t<4&&(t/=2);const r=[];let o=Math.ceil(g[0]/t)*t;for(;o<=g[1];)r.push(o),o+=t;return r},[g]),m=r.useMemo(()=>({tickcolor:Ei.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:Ei.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:Ei.BLACK_900,linewidth:1,position:0,zeroline:!1}),[]),C=r.useMemo(()=>({text:d,x:.5,y:.95,xanchor:"center",yanchor:"top",font:{size:32,weight:600,family:"Inter, sans-serif",color:Ei.BLACK_900,lineheight:1.2,standoff:30}}),[d]);return r.useEffect(()=>{if(!p.current)return;const e=t.map(e=>({y:e.y,x:e.x,type:"box",name:e.name,marker:{color:e.color},line:{color:e.color},fillcolor:e.color+"40",boxpoints:!!h&&(e.boxpoints||"outliers"),jitter:e.jitter||.3,pointpos:e.pointpos||-1.8})),r={width:o,height:i,title:C,margin:{l:80,r:40,b:80,t:80,pad:0},paper_bgcolor:Ei.WHITE,plot_bgcolor:Ei.WHITE,font:{family:"Inter, sans-serif"},dragmode:!1,xaxis:{title:{text:s,font:{size:16,color:Ei.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:Ei.GREY_200,range:n,autorange:!n,showgrid:!0,...m},yaxis:{title:{text:l,font:{size:16,color:Ei.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:Ei.GREY_200,range:a,autorange:!a,tickmode:"array",tickvals:f,showgrid:!0,...m},legend:{x:.5,y:-.2,xanchor:"center",yanchor:"top",orientation:"h",font:{size:13,color:Ei.BLUE_900,family:"Inter, sans-serif",weight:500,lineheight:18}},showlegend:!0};c.newPlot(p.current,e,r,{responsive:!0,displayModeBar:!1,displaylogo:!1});const d=p.current;return()=>{d&&c.purge(d)}},[t,o,i,n,a,g,s,l,h,C,m,f]),e.jsx("div",{className:"boxplot-container",children:e.jsx("div",{ref:p,style:{width:"100%",height:"100%"}})})},exports.Button=f,exports.ButtonControl=C,exports.ButtonControlGroup=({controls:t,selectedId:r,onChange:o,vertical:i=!0,disabled:n=!1})=>e.jsx(Yr,{$vertical:i,children:t.map(t=>e.jsx(Xr,{$vertical:i,children:e.jsx(C,{icon:t.icon,selected:r===t.id,disabled:n||t.disabled,onClick:()=>{return e=t.id,void(n||o?.(e));var e}})},t.id))}),exports.CHART_COLORS=Li,exports.COLORS=Ei,exports.Card=({children:t,title:r,size:o="medium",variant:i="default",className:n,fullWidth:a=!1,ref:s,...l})=>e.jsxs(w,{ref:s,$size:o,$variant:i,$fullWidth:a,className:n,...l,children:[r&&e.jsx(y,{$size:o,children:r}),e.jsx(k,{$size:o,children:t})]}),exports.CardSidebar=oo,exports.Checkbox=Ce,exports.Chromatogram=({data:t=[],width:o=900,height:i=600,positionInterval:n=10,colorA:a="#2D9CDB",colorT:s="#A1C63C",colorG:l="#FF5C64",colorC:d="#FFA62E"})=>{const h=r.useRef(null),p=r.useMemo(()=>t.map(e=>e.position),[t]),x=r.useMemo(()=>t.map(e=>(e=>{const t={A:e.peakA,T:e.peakT,G:e.peakG,C:e.peakC},r=Object.values(t);if(r.every(e=>e===r[0]))return"";let o="",i=0;return Object.entries(t).forEach(([e,t])=>{t>i&&(o=e,i=t)}),o})(e)),[t]),u=r.useMemo(()=>t.map(e=>e.peakA),[t]),g=r.useMemo(()=>t.map(e=>e.peakT),[t]),f=r.useMemo(()=>t.map(e=>e.peakG),[t]),m=r.useMemo(()=>t.map(e=>e.peakC),[t]),C=r.useMemo(()=>({x:p,y:u,type:"scatter",mode:"lines",name:"A",line:{color:a,width:2,shape:"spline"}}),[p,u,a]),b=r.useMemo(()=>({x:p,y:g,type:"scatter",mode:"lines",name:"T",line:{color:s,width:2,shape:"spline"}}),[p,g,s]),v=r.useMemo(()=>({x:p,y:f,type:"scatter",mode:"lines",name:"G",line:{color:l,width:2,shape:"spline"}}),[p,f,l]),w=r.useMemo(()=>({x:p,y:m,type:"scatter",mode:"lines",name:"C",line:{color:d,width:2,shape:"spline"}}),[p,m,d]),y=r.useMemo(()=>Math.max(...u,...g,...f,...m),[u,g,f,m]);if(r.useEffect(()=>{if(!h.current||0===t.length)return;const e=[C,b,v,w],r={width:o,height:i-75,margin:{l:0,r:0,b:20,t:10,pad:0},paper_bgcolor:"var(--white-900)",plot_bgcolor:"var(--white-900)",font:{family:"Inter, sans-serif"},showlegend:!1,xaxis:{showgrid:!1,zeroline:!1,showticklabels:!1,showline:!1,range:[Math.min(...p),Math.max(...p)],fixedrange:!0},yaxis:{showgrid:!1,zeroline:!1,showticklabels:!1,showline:!1,range:[0,1.05*y],fixedrange:!0}};c.newPlot(h.current,e,r,{responsive:!0,displayModeBar:!1,displaylogo:!1,fillFrame:!0});const n=h.current;return()=>{n&&c.purge(n)}},[t,o,i,C,b,v,w,y,p]),0===t.length)return e.jsx("div",{className:"chart-container",children:"No data available"});return e.jsxs("div",{className:"chromatogram-container",style:{width:o,height:i},children:[e.jsxs("div",{className:"sequence-header",children:[(()=>{const t=Math.min(...p),r=Math.max(...p),i=o;return e.jsx("div",{className:"sequence-letters-container",children:x.map((o,n)=>{const c=p[n],h="A"===o?a:"T"===o?s:"G"===o?l:"C"===o?d:"var(--black-900)",x=(c-t)/(r-t)*i;return e.jsx("span",{className:"sequence-letter",style:{left:`${x}px`,color:h},children:o},`base-${n}`)})})})(),(()=>{const t=Math.min(...p),r=Math.max(...p),i=o,a=[];for(let e=Math.ceil(t/n)*n;e<=r;e+=n)a.push({position:e,label:e.toString()});return e.jsx("div",{className:"position-numbers-container",children:a.map(o=>{const n=(o.position-t)/(r-t)*i;return e.jsx("span",{className:"position-number",style:{left:`${n}px`},children:o.label},`pos-${o.position}`)})})})()]}),e.jsx("div",{className:"chromatogram-chart",children:e.jsx("div",{ref:h,style:{width:"100%",height:"100%"}})})]})},exports.ChromatogramChart=({series:t,width:o=900,height:i=500,title:n,xAxisTitle:a="Retention Time (min)",yAxisTitle:s="Signal (mAU)",annotations:l=[],xRange:d,yRange:h,showLegend:p=!0,showGridX:x=!0,showGridY:u=!0,showMarkers:g=!1,markerSize:f=4,showCrosshairs:m=!1,baselineCorrection:C="none",baselineWindowSize:b=50,peakDetectionOptions:v,showPeakAreas:w=!1,boundaryMarkers:y="none",annotationOverlapThreshold:k=.4,showExportButton:j=!0})=>{const M=void 0!==v,I=r.useRef(null),E=r.useMemo(()=>t.map(e=>{const t=function(e,t){const r=Math.min(e.length,t.length),o=e.slice(0,r),i=t.slice(0,r).map(e=>Number.isFinite(e)?e:0);return{x:o.map(e=>Number.isFinite(e)?e:0),y:i}}(e.x,e.y);return{...e,x:t.x,y:Zi(t.y,C,b)}}),[t,C,b]),L=r.useMemo(()=>{if(0===l.length||0===E.length)return l;const{x:e,y:t}=E[0];return function(e,t,r){return e.map(e=>{if(void 0!==e.startX&&void 0!==e.endX){const o=Ki(t,e.startX),i=Ki(t,e.endX),n=Ki(t,e.x),a=e._computed?.area??Ui(t,r,o,i);return{...e,_computed:{...e._computed,index:n,startIndex:o,endIndex:i,area:a}}}return e})}(l,e,t)},[l,E]),N=r.useMemo(()=>{const e=[];return M&&v&&E.forEach((t,r)=>{const o=Fi(t.x,t.y,v);o.length>0&&e.push({peaks:o,seriesIndex:r})}),e},[E,M,v]);return r.useEffect(()=>{const e=I.current;if(!e||0===t.length)return;const r=E.map((e,t)=>{const r=e.color||Li[t%Li.length],o=function(e,t){if(!t)return e;const r=[];for(const[e,o]of Object.entries(t))if(null!=o&&""!==o){const t=e.replace(/([A-Z])/g," $1").replace(/^./,e=>e.toUpperCase()).trim();r.push(`${t}: ${String(o)}`)}return r.length>0?`${e}<br>${r.join("<br>")}`:e}(e.name,e.metadata),i={x:e.x,y:e.y,type:"scatter",mode:g?"lines+markers":"lines",name:e.name,line:{color:r,width:1.5},hovertemplate:`%{x:.2f} ${a}<br>%{y:.2f} ${s}<extra>${o}</extra>`};return g&&(i.marker={size:f,color:r}),i});if("none"!==y){const e=function(e,t,r){const o=[];e.forEach(({peaks:e,seriesIndex:t})=>{o.push({peaks:e,seriesIndex:t,x:r[t].x,y:r[t].y})});const i=t.filter(e=>void 0!==e._computed?.startIndex&&void 0!==e._computed?.endIndex);return i.length>0&&r.length>0&&o.push({peaks:i,seriesIndex:0,x:r[0].x,y:r[0].y}),o}(N,L,E);if(e.length>0){const t=function(e){const t=[];for(const{peaks:r,seriesIndex:o,x:i}of e){const e=Li[o%Li.length],n=-16*o-5,a=-16*o-12;for(const o of r){const r=o._computed?.startIndex??0,s=o._computed?.endIndex??0,l=i[r],c=i[s],d=o.startMarker??"triangle",h=o.endMarker??"diamond";t.push(...Pi(l,n,d,e)),t.push(...Pi(c,a,h,e))}}return t}(e);r.push(...t)}}const l=[];L.forEach(e=>{l.push({peak:e,seriesIndex:-1})}),w&&M&&N.forEach(({peaks:e,seriesIndex:t})=>{e.forEach(e=>{l.push({peak:e,seriesIndex:t})})});const C=function(e,t){const r=[...e].sort((e,t)=>e.peak.x-t.peak.x),o=[];let i=[];for(const e of r){if(0===i.length){i.push(e);continue}const r=i[i.length-1];Math.abs(e.peak.x-r.peak.x)<t?i.push(e):(o.push(i),i=[e])}return i.length>0&&o.push(i),o}(l,k),b=[];for(const e of C)b.push(...Oi(e));const v={title:n?{text:n,font:{size:20,family:"Inter, sans-serif",color:Ei.BLACK_900}}:void 0,width:o,height:i,margin:{l:Ni,r:_i,b:Ai,t:n?Ti:Ri,pad:$i},paper_bgcolor:Ei.WHITE,plot_bgcolor:Ei.WHITE,font:{family:"Inter, sans-serif"},hovermode:m?"x":"x unified",dragmode:"zoom",xaxis:{title:{text:a,font:{size:14,color:Ei.BLACK_600,family:"Inter, sans-serif"},standoff:15},showgrid:x,gridcolor:Ei.GREY_200,linecolor:Ei.BLACK_900,linewidth:1,range:d,autorange:!d,zeroline:!1,tickfont:{size:12,color:Ei.BLACK_900,family:"Inter, sans-serif"},showspikes:m,spikemode:"across",spikesnap:"cursor",spikecolor:Ei.GREY_500,spikethickness:1,spikedash:"dot"},yaxis:{title:{text:s,font:{size:14,color:Ei.BLACK_600,family:"Inter, sans-serif"},standoff:10},showgrid:u,gridcolor:Ei.GREY_200,linecolor:Ei.BLACK_900,linewidth:1,range:h,autorange:!h,zeroline:!1,tickfont:{size:12,color:Ei.BLACK_900,family:"Inter, sans-serif"},showspikes:m,spikemode:"across",spikesnap:"cursor",spikecolor:Ei.GREY_500,spikethickness:1,spikedash:"dot"},legend:{x:.5,y:-.15,xanchor:"center",yanchor:"top",orientation:"h",font:{size:12,color:Ei.BLACK_900,family:"Inter, sans-serif"}},showlegend:p&&t.length>1,annotations:b},_={responsive:!0,displayModeBar:!0,displaylogo:!1,modeBarButtonsToRemove:["lasso2d","select2d",...j?[]:["toImage"]],...j&&{toImageButtonOptions:{format:"png",filename:"chromatogram",width:o,height:i}}};return c.newPlot(e,r,v,_),()=>{e&&c.purge(e)}},[E,N,t.length,o,i,n,a,s,L,d,h,p,x,u,g,f,m,M,v,w,y,k,j]),e.jsx("div",{className:"chromatogram-chart-container",children:e.jsx("div",{ref:I,style:{width:"100%",height:"100%"}})})},exports.CodeEditor=Ne,exports.CodeScriptEditorButton=({initialCode:t="",onCodeSave:o,language:i="python",buttonText:n="Edit Code",modalTitle:a="Edit Code",buttonProps:s,modalProps:l,disabled:c=!1})=>{const[d,h]=r.useState(!1),[p,x]=r.useState(t),u=p?p.split("\n").length:0,g=p.length,m=r.useCallback(()=>{x(t),h(!0)},[t]),C=r.useCallback(()=>{o&&o(p),h(!1)},[o,p]),b=r.useCallback(()=>{h(!1)},[]),v=r.useCallback(e=>{x(e||"")},[]);return e.jsxs(e.Fragment,{children:[e.jsxs(io,{children:[e.jsx(so,{children:e.jsx(f,{leftIcon:e.jsx(pe,{name:exports.IconName.PENCIL}),onClick:m,size:"small",variant:"tertiary",...s,disabled:c,children:n})}),e.jsxs(ao,{title:`${u} lines, ${g} characters`,children:[u," lines / ",g," chars"]})]}),e.jsx(Tt,{isOpen:d,onClose:b,onConfirm:C,onCloseLabel:"Cancel",onConfirmLabel:"Save Code",title:a,width:"80%",...l,children:e.jsx(no,{children:e.jsx(Ne,{height:"400px",language:i,value:p,onChange:v,options:{minimap:{enabled:!1}}})})})]})},exports.DEFAULT_CATEGORY_COLORS=Rn,exports.DEFAULT_COLOR_SCALE=Tn,exports.DEFAULT_MARKER_SIZE=8,exports.DEFAULT_MAX_POINTS=Sn,exports.DEFAULT_SIZE_RANGE=$n,exports.DotPlot=({dataSeries:t,width:o=1e3,height:i=600,title:n="Dot Plot",xTitle:a="Columns",yTitle:s="Rows",variant:l="default",markerSize:d=8})=>{const h=r.useRef(null),p=r.useMemo(()=>Array.isArray(t)?t:[t],[t]),x=r.useMemo(()=>[Ei.ORANGE,Ei.RED,Ei.GREEN,Ei.BLUE,Ei.YELLOW,Ei.PURPLE],[]),u=r.useMemo(()=>["circle","square","diamond","triangle-up","triangle-down","star"],[]),g=r.useMemo(()=>p.map((e,t)=>"default"===l?{...e,color:e.color||x[0],symbol:"circle",size:e.size||d}:{...e,color:e.color||x[t%x.length],symbol:e.symbol||u[t%u.length],size:e.size||d}),[p,l,d,x,u]),f=Ei.GREY_200,m=r.useMemo(()=>g.map(e=>({type:"scatter",x:e.x,y:e.y,mode:"markers",name:e.name,marker:{color:e.color,size:e.size,symbol:e.symbol,line:{color:Ei.WHITE,width:1}},hovertemplate:`${a}: %{x}<br>${s}: %{y}<extra>${e.name}</extra>`})),[g,a,s]),C=r.useMemo(()=>({tickcolor:Ei.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:Ei.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:Ei.BLACK_900,linewidth:1,position:0,zeroline:!1}),[]),b=r.useMemo(()=>({text:n,x:.5,y:.95,xanchor:"center",yanchor:"top",font:{size:32,weight:600,family:"Inter, sans-serif",color:Ei.BLACK_900,lineheight:1.2,standoff:30}}),[n]);return r.useEffect(()=>{if(!h.current)return;const e={width:o,height:i,font:{family:"Inter, sans-serif"},title:b,margin:{l:80,r:40,b:80,t:80,pad:0},showlegend:!0,legend:{x:.5,y:-.2,xanchor:"center",yanchor:"top",orientation:"h",font:{size:13,color:Ei.BLUE_900,family:"Inter, sans-serif",weight:500,lineheight:18}},xaxis:{title:{text:a,font:{size:16,color:Ei.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:f,...C},yaxis:{title:{text:s,font:{size:16,color:Ei.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:f,...C},paper_bgcolor:Ei.WHITE,plot_bgcolor:Ei.WHITE};c.newPlot(h.current,m,e,{responsive:!0,displayModeBar:!1,displaylogo:!1});const t=h.current;return()=>{t&&c.purge(t)}},[o,i,a,s,m,b,C,f]),e.jsx("div",{className:"dotplot-container",style:{width:o},children:e.jsx("div",{ref:h,style:{width:"100%",height:"100%",margin:"0"}})})},exports.Dropdown=He,exports.ErrorAlert=tt,exports.FormField=({label:t,infoText:r,supportiveText:o,showSupportiveCheck:i=!1,className:n,ref:a,...s})=>e.jsxs(lo,{className:n,children:[e.jsx(co,{infoText:r,children:t}),e.jsx(at,{ref:a,...s}),o&&e.jsx(Dt,{showCheck:i,children:o})]}),exports.Heatmap=({data:t,xLabels:o,yLabels:i,title:n,xTitle:a,yTitle:s,colorscale:l,width:c=800,height:d=600,showScale:h=!0,precision:p=0,zmin:x,zmax:u,valueUnit:g=""})=>{const f=t?function(e){if(!e||0===e.length)return[];const t=Math.max(...e.map(e=>e.length));return e.map(e=>{if(e.length===t)return e;const r=[...e];for(;r.length<t;)r.push(0);return r})}(t):void 0,m=f?.length??i?.length??16,C=f?.[0]?.length??o?.length??24,b=r.useMemo(()=>{if(!f)return;const e=[];for(let t=0;t<f.length;t++)for(let r=0;r<f[t].length;r++){const n=`${i?.[t]?.toString()??"ABCDEFGHIJKLMNOPQRSTUVWXYZ"[t]??`R${t+1}`}${o?.[r]?.toString()??String(r+1)}`;e.push({wellId:n,values:{Value:f[t][r]}})}return e},[f,o,i]),v=l;return e.jsx(An,{data:b,plateFormat:"custom",rows:m,columns:C,title:n,xTitle:a,yTitle:s,xLabels:o,yLabels:i,colorScale:v,valueMin:x,valueMax:u,showColorBar:h,width:c,height:d,layerConfigs:[{id:"Value",valueUnit:g}],precision:p})},exports.Histogram=({dataSeries:t,width:o=480,height:i=480,title:n="Histogram",xTitle:a="X Axis",yTitle:s="Frequency",bargap:l=.2,showDistributionLine:d=!1})=>{const h=r.useRef(null),p=r.useMemo(()=>Array.isArray(t)?t:[t],[t]),x=r.useMemo(()=>p.length>1?"stack":void 0,[p.length]),u=r.useMemo(()=>[Ei.ORANGE,Ei.RED,Ei.BLUE,Ei.GREEN,Ei.PURPLE,Ei.YELLOW],[]),g=r.useMemo(()=>p.map((e,t)=>{const r=void 0===e.showDistributionLine?d:e.showDistributionLine;return{...e,color:e.color||u[t%u.length],opacity:r?.5:e.opacity||1,showDistributionLine:r,lineWidth:e.lineWidth||3}}),[p,d,u]),f=Ei.GREY_200,m=r.useMemo(()=>g.map(e=>({type:"histogram",x:e.x,name:e.name,marker:{color:e.color,line:{color:Ei.WHITE,width:1},opacity:e.opacity},autobinx:e.autobinx,xbins:e.xbins,hovertemplate:`${a}: %{x}<br>${s}: %{y}<extra>${e.name}</extra>`})),[g,a,s]),C=r.useMemo(()=>g.filter(e=>e.showDistributionLine).map(e=>{const t=(r=e.x).reduce((e,t)=>e+t,0)/r.length;var r;const o=((e,t)=>{const r=e.map(e=>Math.pow(e-t,2)).reduce((e,t)=>e+t,0)/e.length;return Math.sqrt(r)})(e.x,t),i=Math.min(...e.x),n=Math.max(...e.x),a=n-i,s=i-.1*a,l=n+.1*a,c=e.xbins||{start:s,end:l,size:a/10},d=((e,t,r,o,i=100)=>{const n=[],a=[],s=(o-r)/(i-1);for(let o=0;o<i;o++){const i=r+o*s;n.push(i);const l=-.5*Math.pow((i-e)/t,2),c=1/(t*Math.sqrt(2*Math.PI))*Math.exp(l);a.push(c)}return{x:n,y:a}})(t,o,s,l,100),h=((e,t,r)=>{const o=Math.ceil((r.end-r.start)/r.size),i=Array(o).fill(0);t.forEach(e=>{if(e>=r.start&&e<=r.end){const t=Math.floor((e-r.start)/r.size);i[t]++}});const n=Math.max(...i)/Math.max(...e);return e.map(e=>e*n)})(d.y,e.x,c);return{type:"scatter",x:d.x,y:h,mode:"lines",name:`${e.name} Distribution`,line:{color:e.color,width:e.lineWidth},hoverinfo:"none"}}),[g]),b=r.useMemo(()=>[...m,...C],[m,C]);r.useEffect(()=>{if(!h.current)return;const e={width:o,height:i,font:{family:"Inter, sans-serif"},showlegend:!1,margin:{l:90,r:40,b:80,t:40},xaxis:{title:{text:a,font:{size:16,color:Ei.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:20},gridcolor:f,tickcolor:Ei.GREY_200,ticklen:8,tickwidth:1,ticks:"outside",linecolor:Ei.BLACK_900,linewidth:1,zeroline:!1},yaxis:{title:{text:s,font:{size:16,color:Ei.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:20},gridcolor:f,tickcolor:Ei.GREY_200,ticklen:8,tickwidth:1,ticks:"outside",linecolor:Ei.BLACK_900,linewidth:1,zeroline:!1,rangemode:"tozero"},barmode:x,bargap:l,paper_bgcolor:Ei.WHITE,plot_bgcolor:Ei.WHITE};c.newPlot(h.current,b,e,{responsive:!0,displayModeBar:!1,displaylogo:!1});const t=h.current;return()=>{t&&c.purge(t)}},[o,i,a,s,l,b,x,f]);return e.jsx("div",{className:"histogram-container",style:{width:o},children:e.jsxs("div",{className:"chart-container",children:[n&&e.jsx("div",{className:"title-container",children:e.jsx("h2",{className:"title",children:n})}),e.jsx("div",{ref:h,style:{width:"100%",height:"100%",margin:"0"}}),e.jsx(({series:t})=>{const o=t.map((o,i)=>e.jsx(r.Fragment,{children:e.jsxs("div",{className:"legend-item",children:[e.jsx("span",{className:"color-box",style:{background:o.color}}),o.name,i<t.length-1&&e.jsx("span",{className:"divider"})]})},o.name)),i=[];for(let t=0;t<o.length;t+=6)i.push(e.jsx("div",{className:"legend-row",children:o.slice(t,t+6)},t));return e.jsx("div",{className:"legend-container",children:i})},{series:g})]})})},exports.Icon=pe,exports.Input=at,exports.InteractiveScatter=({data:t,title:o,xAxis:i={},yAxis:n={},colorMapping:a,shapeMapping:s,sizeMapping:l,tooltip:d={enabled:!0},enableClickSelection:h=!0,enableBoxSelection:p=!0,enableLassoSelection:x=!0,selectedIds:u,onSelectionChange:g,onPointClick:f,downsampling:m,width:C=800,height:b=600,showColorBar:v=!0,className:w})=>{const y=r.useRef(null),k=r.useRef(g),j=r.useRef(f),M=r.useRef(new Set),I=r.useRef(!1);k.current=g,j.current=f;const[E,L]=r.useState(new Set),N=void 0!==u,_=N?u:E;M.current=_,I.current=N;const A=r.useMemo(()=>new Set([..._].map(String)),[_]),T=r.useMemo(()=>new Map(t.map(e=>[String(e.id),e.id])),[t]),R=r.useMemo(()=>m?On(t,m):t,[t,m]),$=r.useMemo(()=>function(e,t){if(!t||"static"===t.type){const r=t?.value||"#4575b4";return new Array(e.length).fill(r)}if("categorical"===t.type&&t.field){const r=Hn(e,t.field),o=t.categoryColors||{},i={};return r.forEach((e,t)=>{i[e]=o[e]||Rn[t%Rn.length]}),e.map(e=>{const r=e.metadata?.[t.field];return i[String(r)]||Rn[0]})}return new Array(e.length).fill("#4575b4")}(R,a),[R,a]),S=r.useMemo(()=>function(e,t){if(!t||"static"===t.type){const r=t?.value||"circle";return new Array(e.length).fill(r)}if("categorical"===t.type&&t.field){const r=Hn(e,t.field),o=t.categoryShapes||{},i=["circle","square","diamond","cross","x","triangle-up","triangle-down","star"],n={};return r.forEach((e,t)=>{n[e]=o[e]||i[t%i.length]}),e.map(e=>{const r=e.metadata?.[t.field];return n[String(r)]||"circle"})}return new Array(e.length).fill("circle")}(R,s),[R,s]),z=r.useMemo(()=>function(e,t){if(!t||"static"===t.type){const r=t?.value||8;return new Array(e.length).fill(r)}if("categorical"===t.type&&t.field){const r=Hn(e,t.field),o=t.categorySizes||{},i={};return r.forEach((e,t)=>{i[e]=o[e]||8+2*t}),e.map(e=>{const r=e.metadata?.[t.field];return i[String(r)]||8})}if("continuous"===t.type&&t.field){const r=void 0!==t.min&&void 0!==t.max?{min:t.min,max:t.max}:Bn(e,t.field),o=t.sizeRange||$n,[i,n]=o;return e.map(e=>{const o=e.metadata?.[t.field];if("number"==typeof o&&Number.isFinite(o)){const e=(o-r.min)/(r.max-r.min);return i+e*(n-i)}return 8})}return new Array(e.length).fill(8)}(R,l),[R,l]),B=r.useMemo(()=>i.range?i.range:!1!==i.autoRange?Dn(R,"x",i.autoRangePadding??zn.AUTO_RANGE_PADDING,i.scale):void 0,[R,i]),H=r.useMemo(()=>n.range?n.range:!1!==n.autoRange?Dn(R,"y",n.autoRangePadding??zn.AUTO_RANGE_PADDING,n.scale):void 0,[R,n]),O=!1!==d.enabled,P=r.useMemo(()=>O?R.map(e=>d.content?d.content(e):function(e,t){const r=[];if(r.push(`X: ${e.x.toFixed(2)}`),r.push(`Y: ${e.y.toFixed(2)}`),e.label&&r.push(`Label: ${e.label}`),t&&e.metadata){for(const o of t)if(o in e.metadata){const t=e.metadata[o];r.push(`${o}: ${t}`)}}else if(e.metadata&&!t)for(const[t,o]of Object.entries(e.metadata))r.push(`${t}: ${o}`);return r.join("<br>")}(e,d.fields)):[],[R,d,O]),D=r.useMemo(()=>"continuous"===a?.type&&a.field&&R.length>0?R.map(e=>{const t=e.metadata?.[a.field];return"number"==typeof t&&Number.isFinite(t)?t:0}):$,[R,a,$]),V=r.useMemo(()=>{if("continuous"===a?.type){const e=a.colorScale||Tn;return e}},[a]),U=r.useMemo(()=>{const e={size:z,symbol:S,line:{color:"#ffffff",width:1}};if("continuous"===a?.type&&V){if(e.color=D,e.colorscale=V,e.showscale=v,a.field){const t=void 0!==a.min&&void 0!==a.max?{min:a.min,max:a.max}:Bn(R,a.field);e.cmin=t.min,e.cmax=t.max,e.colorbar={title:{text:a.field,side:"right"},thickness:20,len:.7}}}else e.color=$;return e},[z,S,a,V,D,v,R,$]);r.useEffect(()=>{const e=y.current;if(!e||0===R.length)return;const t=[{x:R.map(e=>e.x),y:R.map(e=>e.y),ids:R.map(e=>String(e.id)),mode:"markers",type:"scatter",marker:U,hoverinfo:O?"text":"skip",text:P,hovertemplate:O?"%{text}<extra></extra>":void 0,showlegend:!1,unselected:{marker:{opacity:.3}},selected:{marker:{opacity:1,line:{color:"#d73027",width:2}}}}],r=(({title:e,xAxis:t,yAxis:r,width:o,height:i,xRange:n,yRange:a,enableLassoSelection:s,enableBoxSelection:l})=>({autosize:!1,width:o,height:i,title:e?{text:e,font:{family:zn.FONT_FAMILY,size:zn.TITLE_FONT_SIZE,color:"#333333"},x:.5,xanchor:"center"}:void 0,margin:{l:zn.MARGIN_LEFT,r:zn.MARGIN_RIGHT,t:e?zn.MARGIN_TOP:zn.MARGIN_TOP-zn.TITLE_FONT_SIZE,b:zn.MARGIN_BOTTOM},xaxis:{title:{text:t.title||"",font:{family:zn.FONT_FAMILY,size:zn.AXIS_TITLE_FONT_SIZE,color:"#333333"}},type:"log"===t.scale?"log":"linear",range:n,autorange:!n,gridcolor:"#e0e0e0",linecolor:"#333333",linewidth:zn.AXIS_LINE_WIDTH,tickfont:{family:zn.FONT_FAMILY,size:zn.AXIS_TICK_FONT_SIZE},zeroline:!1},yaxis:{title:{text:r.title||"",font:{family:zn.FONT_FAMILY,size:zn.AXIS_TITLE_FONT_SIZE,color:"#333333"}},type:"log"===r.scale?"log":"linear",range:a,autorange:!a,gridcolor:"#e0e0e0",linecolor:"#333333",linewidth:zn.AXIS_LINE_WIDTH,tickfont:{family:zn.FONT_FAMILY,size:zn.AXIS_TICK_FONT_SIZE},zeroline:!1},paper_bgcolor:"#ffffff",plot_bgcolor:"#ffffff",font:{family:zn.FONT_FAMILY,color:"#333333"},hovermode:"closest",dragmode:s?"lasso":!!l&&"select"}))({title:o,xAxis:i,yAxis:n,width:C,height:b,xRange:B,yRange:H,enableLassoSelection:x,enableBoxSelection:p}),a={responsive:!0,displayModeBar:!0,displaylogo:!1,modeBarButtonsToAdd:[],modeBarButtonsToRemove:["toImage"]};p&&a.modeBarButtonsToAdd?.push("select2d"),x&&a.modeBarButtonsToAdd?.push("lasso2d"),c.newPlot(e,t,r,a);const s=e;return h&&s.on("plotly_click",e=>{const t=e.points[0];if(t&&t.data.ids){const r=t.data.ids[t.pointIndex],o=R.find(e=>String(e.id)===r);if(o){j.current?.(o,e.event);const t=function(e){const t=e.ctrlKey||e.metaKey;return e.shiftKey&&t?"toggle":e.shiftKey?"add":t?"remove":"replace"}(e.event),r=function(e,t,r){const o=new Set(e);switch(r){case"replace":return new Set(t);case"add":for(const e of t)o.add(e);return o;case"remove":for(const e of t)o.delete(e);return o;case"toggle":for(const e of t)o.has(e)?o.delete(e):o.add(e);return o;default:return o}}(M.current,new Set([o.id]),t);I.current||L(r),k.current?.(r,t)}}}),(p||x)&&(s.on("plotly_selected",e=>{if(e&&e.points){const t=e.points.map(e=>{if(e.data.ids&&void 0!==e.pointIndex){const t=e.data.ids[e.pointIndex];return T.get(t)??t}return null}).filter(e=>null!==e),r="replace",o=new Set(t);I.current||L(o),k.current?.(o,r)}}),s.on("plotly_deselect",()=>{const e=new Set;I.current||L(e),k.current?.(e,"replace")})),()=>{e&&c.purge(e)}},[R,U,i,n,B,H,o,C,b,d,P,h,p,x,T,O]),r.useEffect(()=>{const e=y.current;if(!e||0===R.length)return;const t=e,r=R.map((e,t)=>A.has(String(e.id))?t:null).filter(e=>null!==e);r.length>0?c.restyle(t,{selectedpoints:[r]},[0]):c.restyle(t,{selectedpoints:[null]},[0])},[A,R]);const G=w?`interactive-scatter ${w}`:"interactive-scatter";return e.jsx("div",{className:G,children:e.jsx("div",{ref:y,className:"interactive-scatter__plot",style:{width:C,height:b}})})},exports.Label=ht,exports.LaunchContent=Co,exports.LineGraph=({dataSeries:t,width:o=1e3,height:i=600,xRange:n,yRange:a,variant:s="lines",xTitle:l="Columns",yTitle:d="Rows",title:h="Line Graph"})=>{const p=r.useRef(null),{yMin:x,yMax:u}=r.useMemo(()=>{let e=Number.MAX_VALUE,r=Number.MIN_VALUE,o=Number.MAX_VALUE,i=Number.MIN_VALUE;t.forEach(t=>{t.x.forEach(t=>{e=Math.min(e,t),r=Math.max(r,t)}),t.y.forEach(e=>{o=Math.min(o,e),i=Math.max(i,e)})});const n=.1*(r-e),a=.1*(i-o);return{xMin:e-n,xMax:r+n,yMin:o-a,yMax:i+a}},[t]),g=r.useMemo(()=>a||[x,u],[a,x,u]),f=r.useMemo(()=>{const e=g[1]-g[0];let t=Math.pow(10,Math.floor(Math.log10(e)));e/t>10&&(t*=2),e/t<4&&(t/=2);const r=[];let o=Math.ceil(g[0]/t)*t;for(;o<=g[1];)r.push(o),o+=t;return r},[g]),m=r.useMemo(()=>[...new Set(t.flatMap(e=>e.x))],[t]),C=r.useMemo(()=>{switch(s){case"lines+markers":case"lines+markers+error_bars":return"lines+markers";default:return"lines"}},[s]),b=r.useMemo(()=>({tickcolor:Ei.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:Ei.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:Ei.BLACK_900,linewidth:1,position:0,zeroline:!1}),[]);return r.useEffect(()=>{if(!p.current)return;const e=t.map(e=>({x:e.x,y:e.y,type:"scatter",mode:C,name:e.name,line:{color:e.color,width:1.5},marker:"lines"===s?{opacity:0}:{color:e.color,size:8,symbol:e.symbol||"triangle-up"},error_y:"lines+markers+error_bars"===s?e.error_y||{type:"data",array:e.y.map(()=>10),visible:!0,color:e.color,thickness:1,width:5}:void 0})),r={title:{text:h,font:{size:32,family:"Inter, sans-serif",color:Ei.BLACK_900}},width:o,height:i,margin:{l:80,r:30,b:80,t:60,pad:10},paper_bgcolor:Ei.WHITE,plot_bgcolor:Ei.WHITE,font:{family:"Inter, sans-serif"},dragmode:!1,xaxis:{title:{text:l,font:{size:16,color:Ei.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:32},gridcolor:Ei.GREY_200,range:n,autorange:!n,tickmode:"array",tickvals:m,ticktext:m.map(String),showgrid:!0,...b},yaxis:{title:{text:d,font:{size:16,color:Ei.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:30},gridcolor:Ei.GREY_200,range:a,autorange:!a,tickmode:"array",tickvals:f,showgrid:!0,...b},legend:{x:.5,y:-.2,xanchor:"center",yanchor:"top",orientation:"h",font:{size:16,color:Ei.BLUE_900,family:"Inter, sans-serif",weight:500}},showlegend:!0};c.newPlot(p.current,e,r,{responsive:!0,displayModeBar:!1,displaylogo:!1});const x=p.current;return()=>{x&&c.purge(x)}},[t,o,i,n,a,l,d,h,C,b,m,f,g,s]),e.jsx("div",{className:"chart-container",children:e.jsx("div",{ref:p,style:{width:"100%",height:"100%"}})})},exports.Main=({userProfile:t,hostname:o,organization:i})=>{const n=[{icon:exports.IconName.SEARCH_DOCUMENT,label:"Search"},{icon:exports.IconName.SEARCH_SQL,label:"SQL Search"},{icon:exports.IconName.LAMP,label:"Projects"},{icon:exports.IconName.PIPELINE,label:"Pipelines"},{icon:exports.IconName.COMPUTER,label:"Data & AI Workspace"},{icon:exports.IconName.CUBE,label:"Artifacts"},{icon:exports.IconName.DATABASE,label:"Data Sources"},{icon:exports.IconName.PIE_CHART,label:"Health Monitoring"},{icon:exports.IconName.BULK_CHECK,label:"Bulk Actions"},{icon:exports.IconName.CODE,label:"Attribute Management"},{icon:exports.IconName.GEAR,label:"Administration"}],[a,s]=r.useState("Pipelines"),[l,c]=r.useState("templates"),[d,h]=r.useState("pipelineBuilder"),[p,x]=r.useState("1"),u=[{id:"1",title:"Tecan D300e and PerkinElmer EnVision to Dotmatics (v1)",description:"c901ejs",buttonText:"",linkText:""},{id:"2",title:"Bruker D8 Andvanced CRD Raw to IDS(Draft)",description:"c901ejs",buttonText:"",linkText:""},{id:"3",title:"Extract and Decorate(Draft)",description:"c901ejs",buttonText:"",linkText:""},{id:"4",title:"Intellict (Que3 Raw to IDS(Draft)",description:"c901ejs",buttonText:"",linkText:""},{id:"5",title:"Leica Aperio RAW to IDS(Draft)",description:"c901ejs",buttonText:"",linkText:""},{id:"6",title:"IDS to Benchling(Draft)",description:"c901ejs",buttonText:"",linkText:""},{id:"7",title:"Lorem Ipsum",description:"c901ejs",buttonText:"",linkText:""}],g=[],f=e=>{x(e===p?null:e)},m=e=>{console.log(`Using template: ${e}`)},C=e=>{console.log(`Viewing template: ${e}`)};return e.jsxs(Vn,{children:[e.jsx(So,{organization:i}),e.jsxs(Un,{children:[e.jsx(li,{items:n,activeItem:a,onItemClick:e=>{s(e)}}),e.jsxs(Gn,{children:[e.jsx(Sr,{hostname:o,userProfile:t,onHomeClick:()=>{console.log("Home clicked")},onSettingsClick:()=>{console.log("Settings clicked")},onUserProfileClick:()=>{console.log("User profile clicked")}}),e.jsx(Fn,{children:e.jsx(Kn,{children:e.jsxs("div",{style:{display:"flex",height:"100%"},children:[e.jsxs(qn,{children:[e.jsx(wi,{tabs:[{id:"templates",label:"Templates"},{id:"protocol",label:"Protocol"},{id:"steps",label:"Steps"}],activeTab:l,onChange:e=>{c(e)}}),"templates"===l&&e.jsxs(e.Fragment,{children:[e.jsxs(Zn,{children:[e.jsx(Wn,{children:"Templates"}),e.jsxs(Yn,{children:[e.jsx(Xn,{variant:"tertiary",size:"small","aria-label":"Delete",noPadding:!0,children:e.jsx(pe,{name:exports.IconName.TRASH,width:"20",height:"20",fill:"var(--red-error)"})}),e.jsx(Xn,{variant:"primary",size:"small","aria-label":"Add",noPadding:!0,children:e.jsx(pe,{name:exports.IconName.PLUS,width:"20",height:"20",fill:"var(--white-900)"})})]})]}),e.jsx(ea,{children:u.length>0?u.map(t=>e.jsx(oa,{onClick:()=>f(t.id),children:e.jsx(ia,{title:t.title,description:t.description,buttonText:t.buttonText,linkText:t.linkText,status:p===t.id?"active":"default",onButtonClick:()=>m(t.id),onLinkClick:()=>C(t.id)})},t.id)):e.jsxs(ta,{children:[e.jsx(pe,{name:exports.IconName.INBOX,width:"40",height:"40",fill:"var(--grey-400)"}),e.jsx(ra,{children:"No data"})]})})]}),"protocol"===l&&e.jsxs(e.Fragment,{children:[e.jsx(Zn,{children:e.jsxs(Wn,{children:["Protocol (",g.length,")"]})}),e.jsx(ea,{children:g.length>0?g.map(t=>e.jsx(oa,{onClick:()=>f(t.id),children:e.jsx(ia,{title:t.title,description:t.description,status:p===t.id?"active":"default",onButtonClick:()=>m(t.id),onLinkClick:()=>C(t.id)})},t.id)):e.jsxs(ta,{children:[e.jsx(pe,{name:exports.IconName.INBOX,width:"40",height:"40",fill:"var(--grey-400)"}),e.jsx(ra,{children:"No data"})]})})]}),"steps"===l&&e.jsxs(e.Fragment,{children:[e.jsx(Zn,{children:e.jsxs(Wn,{children:["Task Scripts (",0,")"]})}),e.jsx(ea,{children:g.length>0?g.map(t=>e.jsx(oa,{onClick:()=>f(t.id),children:e.jsx(ia,{title:t.title,description:t.description,status:p===t.id?"active":"default",onButtonClick:()=>m(t.id),onLinkClick:()=>C(t.id)})},t.id)):e.jsxs(ta,{children:[e.jsx(pe,{name:exports.IconName.INBOX,width:"40",height:"40",fill:"var(--grey-400)"}),e.jsx(ra,{children:"No data"})]})})]})]}),e.jsxs(Qn,{children:[e.jsx(Jn,{children:e.jsx(wi,{tabs:[{id:"pipelineBuilder",label:"Pipeline Builder"},{id:"configuration",label:"Configuration"},{id:"launch",label:"Launch"}],activeTab:d,onChange:e=>{h(e)}})}),e.jsxs(na,{children:["pipelineBuilder"===d&&e.jsx(aa,{}),"configuration"===d&&e.jsx(Fo,{}),"launch"===d&&e.jsx(Co,{})]})]})]})})})]})]})]})},exports.MarkdownDisplay=({markdown:t,codeRenderer:r})=>e.jsx(i,{remarkPlugins:[s],rehypePlugins:[a],components:{code:r||ut},children:t}),exports.Menu=({title:t,items:r,onItemClick:o,onItemCheckChange:i,activeItemId:n=null,className:a})=>e.jsxs(bo,{className:a,children:[t&&e.jsx(vo,{children:t}),e.jsx(wo,{children:r.map(t=>e.jsx(Ct,{label:t.label,checked:t.checked,showCheckbox:t.showCheckbox,active:n===t.id||t.active,onClick:()=>{return e=t.id,void(o&&o(e));var e},onCheckChange:e=>((e,t)=>{i&&i(e,t)})(t.id,e)},t.id))})]}),exports.MenuItem=Ct,exports.Modal=Tt,exports.Navbar=So,exports.PLOT_CONSTANTS=zn,exports.PieChart=({dataSeries:t,width:o=400,height:i=400,title:n="Pie Chart",textInfo:a="percent",hole:s=0,rotation:l=0})=>{const d=r.useRef(null),h=r.useMemo(()=>{if(t.colors&&t.colors.length>=t.labels.length)return t.colors;const e=[...t.colors||[]],r=t.labels.length-e.length;if(r<=0)return e;for(let t=0;t<r;t++)e.push(sa[t%sa.length]);return e},[t.colors,t.labels.length]);r.useEffect(()=>{if(!d.current)return;const e=[{type:"pie",labels:t.labels,values:t.values,name:t.name,marker:{colors:h},textinfo:a,hoverinfo:"label+text+value",insidetextfont:{size:0,family:"Inter, sans-serif",color:"transparent"},hole:s,rotation:l}],r={width:o,height:i,font:{family:"Inter, sans-serif"},showlegend:!1,margin:{l:40,r:40,b:40,t:40}};c.newPlot(d.current,e,r,{responsive:!0,displayModeBar:!1,displaylogo:!1});const n=d.current;return()=>{n&&c.purge(n)}},[h,t.labels,t.name,t.values,o,i,a,s,l]);return e.jsx("div",{className:"card-container",style:{width:o},children:e.jsxs("div",{className:"chart-container",children:[n&&e.jsx("div",{className:"title-container",children:e.jsx("h2",{className:"title",children:n})}),e.jsx("div",{ref:d,style:{width:"100%",height:"100%",margin:"0"}}),e.jsx(({labels:t,colors:o})=>{const i=t.map((i,n)=>e.jsx(r.Fragment,{children:e.jsxs("div",{className:"legend-item",children:[e.jsx("span",{className:"color-box",style:{background:o[n]}}),i,n<t.length-1&&e.jsx("span",{className:"divider"})]})},i)),n=[];for(let t=0;t<i.length;t+=6)n.push(e.jsx("div",{className:"legend-row",children:i.slice(t,t+6)},t));return e.jsx("div",{className:"legend-container",children:n})},{labels:t.labels,colors:h})]})})},exports.PlateMap=An,exports.PopConfirm=Ht,exports.ProtocolConfiguration=Fo,exports.ProtocolYamlCard=({title:t,newVersionMode:r,onToggleNewVersionMode:o,versionOptions:i,selectedVersion:n,onVersionChange:a,onDeploy:s,yaml:l,onYamlChange:c})=>e.jsxs(Ko,{children:[e.jsxs(Zo,{children:[e.jsx(Wo,{children:t}),e.jsxs(Yo,{children:[e.jsx(Qo,{checked:r,onChange:o,label:"New Version Mode"}),e.jsx(Xo,{}),e.jsx(Jo,{options:i,value:n,onChange:a,size:"small",width:"120px"}),e.jsx(f,{variant:"primary",size:"medium",onClick:s,children:"Deploy"})]})]}),e.jsx(qo,{children:e.jsx(Ne,{value:l,onChange:e=>c(e??""),language:"yaml",theme:"light",onCopy:()=>{},onLaunch:()=>{}})})]}),exports.PythonEditorModal=({open:t,initialValue:o="",title:i="",onSave:n,onCancel:a})=>{const[s,l]=r.useState(o);return e.jsx(Tt,{isOpen:t,onClose:a,onCloseLabel:"Cancel",onConfirm:()=>{n(s)},onConfirmLabel:"Save Code",title:i,width:"600px",children:e.jsx(ei,{children:e.jsx(Ne,{value:s,onChange:e=>l(e??""),language:"python",height:300,theme:"dark",onCopy:()=>{},onLaunch:()=>{}})})})},exports.SELECTION_MODIFIERS={ADD:"shiftKey",REMOVE:"ctrlKey",TOGGLE:"both"},exports.ScatterGraph=({dataSeries:t,width:o=1e3,height:i=600,xRange:n,yRange:a,xTitle:s="Columns",yTitle:l="Rows",title:d="Scatter Plot"})=>{const h=r.useRef(null),{xMin:p,xMax:x,yMin:u,yMax:g}=r.useMemo(()=>{let e=Number.MAX_VALUE,r=Number.MIN_VALUE,o=Number.MAX_VALUE,i=Number.MIN_VALUE;t.forEach(t=>{t.x.forEach(t=>{e=Math.min(e,t),r=Math.max(r,t)}),t.y.forEach(e=>{o=Math.min(o,e),i=Math.max(i,e)})});const n=.1*(r-e),a=.1*(i-o);return{xMin:e-n,xMax:r+n,yMin:o-a,yMax:i+a}},[t]),f=r.useMemo(()=>n||[p,x],[n,p,x]),m=r.useMemo(()=>a||[u,g],[a,u,g]),C=r.useMemo(()=>{const e=f[1]-f[0];let t=Math.pow(10,Math.floor(Math.log10(e)));e/t>10&&(t*=2),e/t<4&&(t/=2);const r=[];let o=Math.ceil(f[0]/t)*t;for(;o<=f[1];)r.push(o),o+=t;return r},[f]),b=r.useMemo(()=>{const e=m[1]-m[0];let t=Math.pow(10,Math.floor(Math.log10(e)));e/t>10&&(t*=2),e/t<4&&(t/=2);const r=[];let o=Math.ceil(m[0]/t)*t;for(;o<=m[1];)r.push(o),o+=t;return r},[m]),v=r.useMemo(()=>({tickcolor:Ei.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:Ei.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:Ei.BLACK_900,linewidth:1,position:0,zeroline:!1}),[]),w=r.useMemo(()=>({showspikes:!0,spikemode:"across",spikedash:"solid",spikecolor:Ei.BLACK_OPACITY_20,spikethickness:2}),[]);return r.useEffect(()=>{if(!h.current)return;const e=t.map(e=>({x:e.x,y:e.y,type:"scatter",mode:"markers",name:e.name,marker:{color:e.color,size:10,symbol:"circle"},hovertemplate:`${s}: %{x}<br>${l}: %{y}<extra>${e.name}</extra>`})),r={title:{text:d,font:{size:32,family:"Inter, sans-serif",color:Ei.BLACK_900}},width:o,height:i,margin:{l:80,r:30,b:80,t:60,pad:10},paper_bgcolor:Ei.WHITE,plot_bgcolor:Ei.WHITE,font:{family:"Inter, sans-serif"},dragmode:!1,xaxis:{title:{text:s,font:{size:16,color:Ei.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:32},gridcolor:Ei.GREY_200,range:n,autorange:!n,tickmode:"array",tickvals:C,ticktext:C.map(String),showgrid:!0,...w,...v},yaxis:{title:{text:l,font:{size:16,color:Ei.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:30},gridcolor:Ei.GREY_200,range:a,autorange:!a,tickmode:"array",tickvals:b,showgrid:!0,...w,...v},legend:{x:.5,y:-.2,xanchor:"center",yanchor:"top",orientation:"h",font:{size:16,color:Ei.BLUE_900,family:"Inter, sans-serif",weight:500}},showlegend:!0,hovermode:"closest"};c.newPlot(h.current,e,r,{responsive:!0,displayModeBar:!1,displaylogo:!1});const p=h.current;return()=>{p&&c.purge(p)}},[t,o,i,n,a,s,l,d,f,m,C,b,v,w]),e.jsx("div",{className:"chart-container",children:e.jsx("div",{ref:h,style:{width:"100%",height:"100%"}})})},exports.SelectField=({label:t,infoText:r,supportiveText:o,showSupportiveCheck:i=!1,className:n,ref:a,...s})=>e.jsxs(ti,{className:n,ref:a,children:[e.jsx(ri,{infoText:r,children:t}),e.jsx(He,{...s}),o&&e.jsx(Dt,{showCheck:i,children:o})]}),exports.Sidebar=li,exports.SupportiveText=Dt,exports.TDPLink=({path:t,navigationOptions:r={newTab:!0},children:o,onClick:i,...n})=>{const{getTdpUrl:a,navigateToTdp:s}=Mr(),l=a(t);return e.jsx(Ir,{href:l??"#",target:r.newTab?"_blank":void 0,rel:r.newTab?"noopener noreferrer":void 0,onClick:e=>{e.metaKey||e.ctrlKey||e.shiftKey||(e.preventDefault(),i?.(e),s(t,r))},...n,children:o})},exports.Tab=Gt,exports.TabGroup=wi,exports.Table=bi,exports.TableCell=Kt,exports.TableHeaderCell=Qt,exports.TdpNavigationContext=jr,exports.TdpNavigationProvider=({tdpBaseUrl:t,children:o})=>{const i=r.useMemo(()=>t?t.replace(/\/$/u,""):vr(),[t]),n=r.useMemo(()=>({tdpBaseUrl:i,getTdpUrl:e=>i?wr(i,e):null,navigateToTdp:(e,t)=>{if(!i)return void console.warn("[TdpNavigation] Cannot navigate: TDP base URL not resolved");const r=wr(i,e);r&&yr(r,t)}}),[i]);return e.jsx(jr.Provider,{value:n,children:o})},exports.TdpSearch=({defaultQuery:t="",columns:o,filters:i=[],defaultSort:n,advancedSearchParams:a,pageSize:s=10,searchPlaceholder:l="Enter search term...",className:c,onSearch:d,renderSearchBar:h,renderFilters:p,renderResults:x,...u})=>{const{authToken:g,orgSlug:f}=function(e,t){if(e&&t)return{authToken:e,orgSlug:t};const r=ga(ha),o=ga(pa);if(r&&o)return{authToken:r,orgSlug:o};const i=fa(ha),n=fa(pa);return i&&n?{authToken:i,orgSlug:n}:{authToken:e,orgSlug:t}}(u.authToken,u.orgSlug),{results:m,total:C,currentPage:b,isLoading:v,error:w,executeSearch:y}=ua({...u,authToken:g??"",orgSlug:f??"",pageSize:s}),[k,j]=r.useState(t),[M,I]=r.useState({}),[E,L]=r.useState(null),[N,_]=r.useState("asc"),[A,T]=r.useState(!1),R=async(e=1,t)=>{if(!k.trim())return;T(!0);const r=t?.sortKey??E??n?.field,o=null==t?E?N:n?.order??N:t.sortDirection,i=Object.entries(M).filter(([,e])=>""!==e).map(([e,t])=>({field:e,operator:"eq",value:t}));let l=a?.expression;i.length>0&&(l={g:"AND",e:l?[...i,l]:i});const c={searchTerm:k.trim(),sort:r??void 0,order:o,...a,...void 0!==l&&{expression:l}},h=await y(c,e);d&&d({...c,from:(e-1)*s,size:s},h)},$=e.jsxs("div",{className:"tdp-search__empty-state",children:[e.jsx("div",{className:"tdp-search__empty-state-icon",children:e.jsx(oe,{})}),e.jsx("div",{className:"tdp-search__empty-state-text",children:"No results found. Try adjusting your search query or filters."})]}),S={query:k,setQuery:j,onSearch:()=>{R(1)},isLoading:v,placeholder:l},z={filters:i,filterValues:M,onFilterChange:(e,t)=>{I(r=>({...r,[e]:t}))}},B={results:m,total:C,currentPage:b,pageSize:s,columns:o,onPageChange:e=>{R(e)},sortKey:E,sortDirection:N,onSort:(e,t)=>{L(e),_(t),R(1,{sortKey:e,sortDirection:t})}};return e.jsxs("div",{className:`tdp-search ${c||""}`,children:[h?h(S):e.jsx(da,{...S}),i.length>0&&(p?p(z):e.jsx(la,{...z})),w&&e.jsxs(e.Fragment,{children:[e.jsx(tt,{error:w,onClose:()=>{}}),$]}),v&&e.jsx("div",{className:"tdp-search__loading-overlay",children:"Loading results..."}),!v&&!A&&e.jsxs("div",{className:"tdp-search__empty-state",children:[e.jsx("div",{className:"tdp-search__empty-state-icon",children:e.jsx(oe,{})}),e.jsx("div",{className:"tdp-search__empty-state-text",children:"Enter a search query and click Search to get started."})]}),!v&&!w&&A&&m.length>0&&(x?x(B):e.jsx(ca,{...B})),!v&&!w&&A&&0===m.length&&$]})},exports.Textarea=({size:t="small",error:r=!1,disabled:o=!1,fullWidth:i=!1,rows:n,ref:a,...s})=>e.jsx(er,{$fullWidth:i,children:e.jsx(tr,{ref:a,size:t,$error:r,disabled:o,rows:n,...s})}),exports.ThemeProvider=({theme:o={},children:i})=>{const n=r.useMemo(()=>({colors:{...ma.colors,...o.colors},radius:{...ma.radius,...o.radius},spacing:{...ma.spacing,...o.spacing}}),[o]),a=r.useMemo(()=>{const e={};return n.colors&&Object.entries(n.colors).forEach(([t,r])=>{r&&(e[`--theme-${t}`]=r)}),n.radius&&Object.entries(n.radius).forEach(([t,r])=>{r&&(e[`--theme-radius-${t}`]=r)}),n.spacing&&Object.entries(n.spacing).forEach(([t,r])=>{r&&(e[`--theme-spacing-${t}`]=r)}),e},[n]);return e.jsx(t.ThemeProvider,{theme:n,children:e.jsx(Ca,{$themeStyles:a,children:i})})},exports.Toast=xr,exports.ToastManager=({position:t="top"})=>{const[o,i]=r.useState([]),[n,a]=r.useState(!1);return r.useEffect(()=>{a(!0);const e=(t=i,Mi.push(t),t(ji),()=>{Mi=Mi.filter(e=>e!==t)});var t;return()=>{e(),a(!1)}},[]),n?l.createPortal(e.jsx(yi,{position:t,children:o.map(r=>e.jsx(ki,{theme:{position:t},children:e.jsx(xr,{type:r.type,heading:r.heading,description:r.description})},r.id))}),document.body):null},exports.Toggle=Cr,exports.Tooltip=we,exports.buildTdpUrl=wr,exports.defaultTheme=ma,exports.getTdpBaseUrlFromReferrer=vr,exports.navigateToTdpUrl=yr,exports.tdpPaths=kr,exports.useSearch=ua,exports.useTdpNavigation=function(e={}){const{tdpBaseUrl:t}=e,o=r.useMemo(()=>t?t.replace(/\/$/u,""):vr(),[t]);return r.useMemo(()=>({tdpBaseUrl:o,getTdpUrl:e=>o?wr(o,e):null,navigateToTdp:(e,t)=>{if(!o)return void console.warn("[useTdpNavigation] Cannot navigate: TDP base URL not resolved");const r=wr(o,e);r&&yr(r,t)}}),[o])},exports.useTdpNavigationContext=Mr;
|
|
1983
2001
|
//# sourceMappingURL=index.js.map
|