@tetrascience-npm/tetrascience-react-ui 0.2.0 → 0.3.0-beta.2.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 +139 -12
- package/dist/cjs/index.js +264 -261
- 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 +2 -0
- package/dist/cjs/server.js.map +1 -0
- package/dist/esm/index.js +294 -291
- 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 +2 -0
- package/dist/esm/server.js.map +1 -0
- package/dist/index.d.ts +1281 -113
- 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 +517 -0
- package/package.json +112 -16
- package/src/styles/README.md +56 -0
package/dist/cjs/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";var e,r=require("react"),t=require("styled-components"),o=require("@monaco-editor/react"),i=require("react-markdown"),n=require("react-syntax-highlighter"),a=require("rehype-raw"),l=require("remark-gfm"),s=require("react-dom"),c=require("plotly.js-dist"),d={exports:{}},p={};var h,x,u={};function f(){return h||(h=1,"production"!==process.env.NODE_ENV&&function(){var e=r,t=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),g=Symbol.iterator;var m=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function C(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),o=1;o<r;o++)t[o-1]=arguments[o];!function(e,r,t){var o=m.ReactDebugCurrentFrame,i=o.getStackAddendum();""!==i&&(r+="%s",t=t.concat([i]));var n=t.map(function(e){return String(e)});n.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,n)}("error",e,t)}var b;function v(e){return e.displayName||"Context"}function y(e){if(null==e)return null;if("number"==typeof e.tag&&C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case i:return"Fragment";case o:return"Portal";case a:return"Profiler";case n:return"StrictMode";case d:return"Suspense";case p:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case s:return v(e)+".Consumer";case l:return v(e._context)+".Provider";case c:return function(e,r,t){var o=e.displayName;if(o)return o;var i=r.displayName||r.name||"";return""!==i?t+"("+i+")":t}(e,e.render,"ForwardRef");case h:var r=e.displayName||null;return null!==r?r:y(e.type)||"Memo";case x:var t=e,u=t._payload,f=t._init;try{return y(f(u))}catch(e){return null}}return null}b=Symbol.for("react.module.reference");var w,k,j,E,L,I,N,M=Object.assign,R=0;function A(){}A.__reactDisabledLog=!0;var _,S=m.ReactCurrentDispatcher;function T(e,r,t){if(void 0===_)try{throw Error()}catch(e){var o=e.stack.trim().match(/\n( *(at )?)/);_=o&&o[1]||""}return"\n"+_+e}var B,z=!1,H="function"==typeof WeakMap?WeakMap:Map;function $(e,r){if(!e||z)return"";var t,o=B.get(e);if(void 0!==o)return o;z=!0;var i,n=Error.prepareStackTrace;Error.prepareStackTrace=void 0,i=S.current,S.current=null,function(){if(0===R){w=console.log,k=console.info,j=console.warn,E=console.error,L=console.group,I=console.groupCollapsed,N=console.groupEnd;var e={configurable:!0,enumerable:!0,value:A,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}R++}();try{if(r){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){t=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){t=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){t=e}e()}}catch(r){if(r&&t&&"string"==typeof r.stack){for(var l=r.stack.split("\n"),s=t.stack.split("\n"),c=l.length-1,d=s.length-1;c>=1&&d>=0&&l[c]!==s[d];)d--;for(;c>=1&&d>=0;c--,d--)if(l[c]!==s[d]){if(1!==c||1!==d)do{if(c--,--d<0||l[c]!==s[d]){var p="\n"+l[c].replace(" at new "," at ");return e.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",e.displayName)),"function"==typeof e&&B.set(e,p),p}}while(c>=1&&d>=0);break}}}finally{z=!1,S.current=i,function(){if(0===--R){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},e,{value:w}),info:M({},e,{value:k}),warn:M({},e,{value:j}),error:M({},e,{value:E}),group:M({},e,{value:L}),groupCollapsed:M({},e,{value:I}),groupEnd:M({},e,{value:N})})}R<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=n}var h=e?e.displayName||e.name:"",x=h?T(h):"";return"function"==typeof e&&B.set(e,x),x}function O(e,r,t){if(null==e)return"";if("function"==typeof e)return $(e,!(!(o=e.prototype)||!o.isReactComponent));var o;if("string"==typeof e)return T(e);switch(e){case d:return T("Suspense");case p:return T("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return $(e.render,!1);case h:return O(e.type,r,t);case x:var i=e,n=i._payload,a=i._init;try{return O(a(n),r,t)}catch(e){}}return""}B=new H;var P=Object.prototype.hasOwnProperty,V={},D=m.ReactDebugCurrentFrame;function U(e){if(e){var r=e._owner,t=O(e.type,e._source,r?r.type:null);D.setExtraStackFrame(t)}else D.setExtraStackFrame(null)}var G=Array.isArray;function Z(e){return G(e)}function W(e){return""+e}function K(e){if(function(e){try{return W(e),!1}catch(e){return!0}}(e))return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),W(e)}var F,Y,X=m.ReactCurrentOwner,q={key:!0,ref:!0,__self:!0,__source:!0};function Q(e,r,o,i,n){var a,l={},s=null,c=null;for(a in void 0!==o&&(K(o),s=""+o),function(e){if(P.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return void 0!==e.key}(r)&&(K(r.key),s=""+r.key),function(e){if(P.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return void 0!==e.ref}(r)&&(c=r.ref,function(e){"string"==typeof e.ref&&X.current}(r)),r)P.call(r,a)&&!q.hasOwnProperty(a)&&(l[a]=r[a]);if(e&&e.defaultProps){var d=e.defaultProps;for(a in d)void 0===l[a]&&(l[a]=d[a])}if(s||c){var p="function"==typeof e?e.displayName||e.name||"Unknown":e;s&&function(e,r){var t=function(){F||(F=!0,C("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}(l,p),c&&function(e,r){var t=function(){Y||(Y=!0,C("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}(l,p)}return function(e,r,o,i,n,a,l){var s={$$typeof:t,type:e,key:r,ref:o,props:l,_owner:a,_store:{}};return Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s}(e,s,c,n,i,X.current,l)}var J,ee=m.ReactCurrentOwner,re=m.ReactDebugCurrentFrame;function te(e){if(e){var r=e._owner,t=O(e.type,e._source,r?r.type:null);re.setExtraStackFrame(t)}else re.setExtraStackFrame(null)}function oe(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}function ie(){if(ee.current){var e=y(ee.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}J=!1;var ne={};function ae(e,r){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var t=function(e){var r=ie();if(!r){var t="string"==typeof e?e:e.displayName||e.name;t&&(r="\n\nCheck the top-level render call using <"+t+">.")}return r}(r);if(!ne[t]){ne[t]=!0;var o="";e&&e._owner&&e._owner!==ee.current&&(o=" It was passed a child from "+y(e._owner.type)+"."),te(e),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,o),te(null)}}}function le(e,r){if("object"==typeof e)if(Z(e))for(var t=0;t<e.length;t++){var o=e[t];oe(o)&&ae(o,r)}else if(oe(e))e._store&&(e._store.validated=!0);else if(e){var i=function(e){if(null===e||"object"!=typeof e)return null;var r=g&&e[g]||e["@@iterator"];return"function"==typeof r?r:null}(e);if("function"==typeof i&&i!==e.entries)for(var n,a=i.call(e);!(n=a.next()).done;)oe(n.value)&&ae(n.value,r)}}function se(e){var r,t=e.type;if(null!=t&&"string"!=typeof t){if("function"==typeof t)r=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==c&&t.$$typeof!==h)return;r=t.propTypes}if(r){var o=y(t);!function(e,r,t,o,i){var n=Function.call.bind(P);for(var a in e)if(n(e,a)){var l=void 0;try{if("function"!=typeof e[a]){var s=Error((o||"React class")+": "+t+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}l=e[a](r,a,o,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){l=e}!l||l instanceof Error||(U(i),C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",o||"React class",t,a,typeof l),U(null)),l instanceof Error&&!(l.message in V)&&(V[l.message]=!0,U(i),C("Failed %s type: %s",t,l.message),U(null))}}(r,e.props,"prop",o,e)}else if(void 0!==t.PropTypes&&!J){J=!0,C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",y(t)||"Unknown")}"function"!=typeof t.getDefaultProps||t.getDefaultProps.isReactClassApproved||C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}var ce={};function de(e,r,o,u,g,m){var v=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===a||e===n||e===d||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===x||e.$$typeof===h||e.$$typeof===l||e.$$typeof===s||e.$$typeof===c||e.$$typeof===b||void 0!==e.getModuleId)}(e);if(!v){var w="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(w+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var k;w+=ie(),null===e?k="null":Z(e)?k="array":void 0!==e&&e.$$typeof===t?(k="<"+(y(e.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):k=typeof e,C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",k,w)}var j=Q(e,r,o,g,m);if(null==j)return j;if(v){var E=r.children;if(void 0!==E)if(u)if(Z(E)){for(var L=0;L<E.length;L++)le(E[L],e);Object.freeze&&Object.freeze(E)}else C("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else le(E,e)}if(P.call(r,"key")){var I=y(e),N=Object.keys(r).filter(function(e){return"key"!==e}),M=N.length>0?"{key: someKey, "+N.join(": ..., ")+": ...}":"{key: someKey}";if(!ce[I+M])C('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',M,I,N.length>0?"{"+N.join(": ..., ")+": ...}":"{}",I),ce[I+M]=!0}return e===i?function(e){for(var r=Object.keys(e.props),t=0;t<r.length;t++){var o=r[t];if("children"!==o&&"key"!==o){te(e),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),te(null);break}}null!==e.ref&&(te(e),C("Invalid attribute `ref` supplied to `React.Fragment`."),te(null))}(j):se(j),j}var pe=function(e,r,t){return de(e,r,t,!1)},he=function(e,r,t){return de(e,r,t,!0)};u.Fragment=i,u.jsx=pe,u.jsxs=he}()),u}var g=(x||(x=1,"production"===process.env.NODE_ENV?d.exports=function(){if(e)return p;e=1;var t=r,o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function s(e,r,t){var i,s={},c=null,d=null;for(i in void 0!==t&&(c=""+t),void 0!==r.key&&(c=""+r.key),void 0!==r.ref&&(d=r.ref),r)n.call(r,i)&&!l.hasOwnProperty(i)&&(s[i]=r[i]);if(e&&e.defaultProps)for(i in r=e.defaultProps)void 0===s[i]&&(s[i]=r[i]);return{$$typeof:o,type:e,key:c,ref:d,props:s,_owner:a.current}}return p.Fragment=i,p.jsx=s,p.jsxs=s,p}():d.exports=f()),d.exports);const m={small:t.css`
|
|
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"),l=require("remark-gfm"),s=require("react-dom"),c=require("plotly.js-dist");const d={small:t.css`
|
|
2
2
|
height: 22px;
|
|
3
3
|
`,medium:t.css`
|
|
4
4
|
height: 26px;
|
|
5
|
-
`},
|
|
5
|
+
`},h={default:t.css`
|
|
6
6
|
color: var(--black);
|
|
7
7
|
background-color: var(--white);
|
|
8
8
|
border: 1px solid var(--grey-300);
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
color: var(--blue-600);
|
|
11
11
|
background-color: var(--blue-50);
|
|
12
12
|
border: 1px solid var(--blue-600);
|
|
13
|
-
`},
|
|
13
|
+
`},p=t.span`
|
|
14
14
|
display: inline-flex;
|
|
15
15
|
align-items: center;
|
|
16
16
|
justify-content: center;
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
border-radius: 6px;
|
|
26
26
|
user-select: none;
|
|
27
27
|
|
|
28
|
-
${({$size:e})=>
|
|
29
|
-
${({$variant:e})=>
|
|
28
|
+
${({$size:e})=>d[e]}
|
|
29
|
+
${({$variant:e})=>h[e]}
|
|
30
30
|
|
|
31
31
|
${({$disabled:e})=>e&&t.css`
|
|
32
32
|
cursor: not-allowed;
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
width: 16px;
|
|
40
40
|
height: 16px;
|
|
41
41
|
}
|
|
42
|
-
`,
|
|
42
|
+
`,x={small:t.css`
|
|
43
43
|
height: 34px;
|
|
44
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));
|
|
@@ -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
|
-
${e=>
|
|
116
|
-
${e=>
|
|
115
|
+
${e=>x[e.size||"medium"]}
|
|
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
|
-
`,
|
|
132
|
+
`,f=r.forwardRef(({children:t,variant:r="primary",size:o="medium",loading:i=!1,leftIcon:n,rightIcon:a,noPadding:l=!1,fullWidth:s=!1,disabled:c,...d},h)=>e.jsxs(g,{ref:h,variant:r,size:o,$noPadding:l,$fullWidth:s,disabled:c||i,...d,children:[n&&n,t,a&&a]}));f.displayName="Button";const m=t.button`
|
|
133
133
|
display: flex;
|
|
134
134
|
align-items: center;
|
|
135
135
|
justify-content: center;
|
|
@@ -168,13 +168,13 @@
|
|
|
168
168
|
height: 20px;
|
|
169
169
|
color: ${e=>e.disabled?"var(--grey-400)":"var(--blue-900)"};
|
|
170
170
|
}
|
|
171
|
-
`,
|
|
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
173
|
`,medium:t.css`
|
|
174
174
|
padding: 16px;
|
|
175
175
|
`,large:t.css`
|
|
176
176
|
padding: 20px;
|
|
177
|
-
`},
|
|
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
180
|
`,outlined:t.css`
|
|
@@ -184,12 +184,12 @@
|
|
|
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
|
-
`},
|
|
187
|
+
`},w=t.div`
|
|
188
188
|
border-radius: var(--theme-radius-large, 16px);
|
|
189
189
|
width: ${e=>e.$fullWidth?"100%":"auto"};
|
|
190
|
-
${e=>
|
|
190
|
+
${e=>v[e.$variant]}
|
|
191
191
|
transition: all 0.2s ease;
|
|
192
|
-
`,
|
|
192
|
+
`,y=t.div`
|
|
193
193
|
font-family: "Inter", sans-serif;
|
|
194
194
|
font-size: 14px;
|
|
195
195
|
font-style: normal;
|
|
@@ -198,22 +198,22 @@
|
|
|
198
198
|
background-color: var(--grey-50);
|
|
199
199
|
border-top-left-radius: var(--theme-radius-large, 16px);
|
|
200
200
|
border-top-right-radius: var(--theme-radius-large, 16px);
|
|
201
|
-
${e=>
|
|
202
|
-
`,
|
|
203
|
-
${e=>
|
|
204
|
-
`,A=r.forwardRef(({children:e,title:r,size:t="medium",variant:o="default",className:i,fullWidth:n=!1,...a},l)=>g.jsxs(N,{ref:l,$size:t,$variant:o,$fullWidth:n,className:i,...a,children:[r&&g.jsx(M,{$size:t,children:r}),g.jsx(R,{$size:t,children:e})]}));A.displayName="Card";const _=({fill:e="currentColor",width:r="20",height:t="20"})=>g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:[g.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:e}),g.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:e})]}),S=({fill:e="currentColor",width:r="20",height:t="20"})=>g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:g.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:e})}),T=({fill:e="currentColor",width:r="20",height:t="20"})=>g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:[g.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:e}),g.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:e})]}),B=({fill:e="currentColor",width:r="20",height:t="20"})=>g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:g.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:e})}),z=({fill:e="currentColor",width:r="20",height:t="20"})=>g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:g.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:e})}),H=({fill:e="currentColor",width:r="16",height:t="16"})=>g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 16 16",fill:"none",children:[g.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:e}),g.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:e="currentColor",width:r="20",height:t="20"})=>g.jsx("svg",{width:r,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:g.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:e})}),O=({fill:e="currentColor",width:r="20",height:t="20"})=>g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:g.jsx("path",{d:"M3.75 3.75L16.25 16.25M16.25 3.75L3.75 16.25",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),P=({fill:e="currentColor",width:r="20",height:t="20"})=>g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:g.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:e})}),V=({fill:e="currentColor",width:r="20",height:t="20"})=>g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:g.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:e})}),D=({fill:e="currentColor",width:r="20",height:t="20"})=>g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:[g.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:e}),g.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:e})]}),U=({fill:e="currentColor",width:r="20",height:t="20"})=>g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:g.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:e})}),G=({fill:e="currentColor",width:r="20",height:t="20"})=>g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:g.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:e})}),Z=({fill:e="currentColor",width:r="20",height:t="20"})=>g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:g.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:e})}),W=({fill:e="currentColor",width:r="20",height:t="20"})=>g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:g.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:e})}),K=({fill:e="currentColor",width:r="20",height:t="20"})=>g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:g.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:e})}),F=({fill:e="currentColor",width:r="20",height:t="20"})=>g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:g.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:e})}),Y=({fill:e="currentColor",width:r="20",height:t="20"})=>g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:g.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:e})}),X=({fill:e="currentColor",width:r="20",height:t="20"})=>g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:g.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:e})}),q=({fill:e="currentColor",width:r="20",height:t="20"})=>g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 40 40",fill:"none",children:g.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:e,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})}),Q=({fill:e="currentColor",width:r="20",height:t="20"})=>g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:g.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:e})}),J=({fill:e="currentColor",width:r="16",height:t="16"})=>g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 16 16",fill:"none",children:g.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:e})}),ee=({fill:e="currentColor",width:r="20",height:t="20"})=>g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:g.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:e})}),re=({fill:e="currentColor",width:r="16",height:t="16"})=>g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 16 16",fill:"none",children:g.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:e})}),te=({fill:e="currentColor",width:r="16",height:t="16"})=>g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 16 16",fill:"none",children:g.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:e})}),oe=({fill:e="currentColor",width:r="20",height:t="20"})=>g.jsx("svg",{width:r,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:g.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:e})}),ie=({fill:e="currentColor",width:r="20",height:t="20"})=>g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:g.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:e})}),ne=({fill:e="currentColor",width:r="20",height:t="20"})=>g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:[g.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:e}),g.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:e})]}),ae=({fill:e="currentColor",width:r="20",height:t="20"})=>g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:g.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:e})}),le=({fill:e="currentColor",width:r="16",height:t="16"})=>g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 16 16",fill:"none",children:g.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:e})}),se=({fill:e="currentColor",width:r="20",height:t="20"})=>g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:g.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:e})}),ce=({fill:e="currentColor",width:r="16",height:t="16"})=>g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 16 16",fill:"none",children:g.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:e})}),de=({fill:e="currentColor",width:r="20",height:t="20"})=>g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:[g.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:e}),g.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:e})]}),pe=({fill:e="currentColor",width:r="20",height:t="20"})=>g.jsxs("svg",{width:r,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[g.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:e,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),g.jsx("path",{d:"M18 18L14 14",stroke:e,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),he=({fill:e="currentColor",width:r="20",height:t="20"})=>g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:[g.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:e}),g.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:e})]}),xe=({fill:e="currentColor",width:r="20",height:t="20"})=>g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:[g.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:e}),g.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:e})]}),ue=({fill:e="currentColor",width:r="20",height:t="20"})=>g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 14 16",fill:"none",children:[g.jsx("path",{d:"M7 5V8",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),g.jsx("path",{d:"M3 11V9C3 8.4477 3.4477 8 4 8H10C10.5523 8 11 8.4477 11 9V11",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),g.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:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),g.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:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),g.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:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),fe=({fill:e="currentColor",width:r="21",height:t="21"})=>g.jsxs("svg",{width:r,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[g.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:e,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),g.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:e,stroke:e,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]}),ge=({fill:e="currentColor",width:r="20",height:t="20"})=>g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 14 14",fill:"none",children:[g.jsx("path",{d:"M13 1H1",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),g.jsx("path",{d:"M7 13V1",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),me=({fill:e="currentColor",width:r="20",height:t="20"})=>g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 20 20",fill:"none",children:g.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:e})}),Ce=({fill:e="currentColor",width:r="16",height:t="16"})=>g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:t,viewBox:"0 0 16 16",fill:"none",children:[g.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:e}),g.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:e}),g.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:e}),g.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:e}),g.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:e})]});var be;exports.IconName=void 0,(be=exports.IconName||(exports.IconName={})).BARS_3_BOTTOM_LEFT="bars-3-bottom-left",be.BUILDING="building",be.BULK_CHECK="bulk-check",be.CHECK="check",be.CHECK_CIRCLE="check-circle",be.CHECK_SQUARE="check-square",be.CHEVRON_DOWN="chevron-down",be.CLOSE="close",be.CODE="code",be.COMPUTER="computer",be.COPY="copy",be.CUBE="cube",be.DATABASE="database",be.EXCLAMATION_CIRCLE="exclamation-circle",be.EXCLAMATION_TRIANGLE="exclamation-triangle",be.GEAR="gear",be.GLobe="globe",be.HASHTAG="hashtag",be.HOME="home",be.INBOX="inbox",be.INFORMATION_CIRCLE="information-circle",be.INFORMATION_CIRCLE_MICRO="information-circle-micro",be.LAMP="lamp",be.LOCK_OPEN="lock-open",be.MINUS="minus",be.PAPER_PLANE="paper-plane",be.PENCIL="pencil",be.PIE_CHART="pie-chart",be.PIPELINE="pipeline",be.PLUS="plus",be.PROFILE="profile",be.QUESTION_CIRCLE="question-circle",be.ROCKET_LAUNCH="rocket-launch",be.SEARCH="search",be.SEARCH_DOCUMENT="search-document",be.SEARCH_SQL="search-sql",be.SITEMAP="sitemap",be.TETRASCIENCE_ICON="tetrascience-icon",be.TEXT="text",be.TRASH="trash",be.VIEWFINDER_CIRCLE="viewfinder-circle";const ve=e=>{let r=null;const{name:t}=e;switch(t){case exports.IconName.BARS_3_BOTTOM_LEFT:r=g.jsx(_,{...e});break;case exports.IconName.BUILDING:r=g.jsx(S,{...e});break;case exports.IconName.BULK_CHECK:r=g.jsx(T,{...e});break;case exports.IconName.CHECK:r=g.jsx(B,{...e});break;case exports.IconName.CHECK_CIRCLE:r=g.jsx(z,{...e});break;case exports.IconName.CHECK_SQUARE:r=g.jsx(H,{...e});break;case exports.IconName.CHEVRON_DOWN:r=g.jsx($,{...e});break;case exports.IconName.CLOSE:r=g.jsx(O,{...e});break;case exports.IconName.CODE:r=g.jsx(P,{...e});break;case exports.IconName.COMPUTER:r=g.jsx(V,{...e});break;case exports.IconName.COPY:r=g.jsx(D,{...e});break;case exports.IconName.CUBE:r=g.jsx(U,{...e});break;case exports.IconName.DATABASE:r=g.jsx(G,{...e});break;case exports.IconName.EXCLAMATION_CIRCLE:r=g.jsx(Z,{...e});break;case exports.IconName.EXCLAMATION_TRIANGLE:r=g.jsx(W,{...e});break;case exports.IconName.GEAR:r=g.jsx(K,{...e});break;case exports.IconName.GLobe:r=g.jsx(F,{...e});break;case exports.IconName.HASHTAG:r=g.jsx(Y,{...e});break;case exports.IconName.HOME:r=g.jsx(X,{...e});break;case exports.IconName.INBOX:r=g.jsx(q,{...e});break;case exports.IconName.INFORMATION_CIRCLE:r=g.jsx(Q,{...e});break;case exports.IconName.INFORMATION_CIRCLE_MICRO:r=g.jsx(J,{...e});break;case exports.IconName.LAMP:r=g.jsx(ee,{...e});break;case exports.IconName.LOCK_OPEN:r=g.jsx(re,{...e});break;case exports.IconName.MINUS:r=g.jsx(te,{...e});break;case exports.IconName.PAPER_PLANE:r=g.jsx(oe,{...e});break;case exports.IconName.PENCIL:r=g.jsx(ie,{...e});break;case exports.IconName.PIE_CHART:r=g.jsx(ne,{...e});break;case exports.IconName.PIPELINE:r=g.jsx(ae,{...e});break;case exports.IconName.PLUS:r=g.jsx(le,{...e});break;case exports.IconName.PROFILE:r=g.jsx(se,{...e});break;case exports.IconName.QUESTION_CIRCLE:r=g.jsx(ce,{...e});break;case exports.IconName.ROCKET_LAUNCH:r=g.jsx(de,{...e});break;case exports.IconName.SEARCH:r=g.jsx(pe,{...e});break;case exports.IconName.SEARCH_DOCUMENT:r=g.jsx(he,{...e});break;case exports.IconName.SEARCH_SQL:r=g.jsx(xe,{...e});break;case exports.IconName.SITEMAP:r=g.jsx(ue,{...e});break;case exports.IconName.TETRASCIENCE_ICON:r=g.jsx(fe,{...e});break;case exports.IconName.TEXT:r=g.jsx(ge,{...e});break;case exports.IconName.TRASH:r=g.jsx(me,{...e});break;case exports.IconName.VIEWFINDER_CIRCLE:r=g.jsx(Ce,{...e});break;default:throw`[Icon] name "${t}" does not exist`}return g.jsx("div",{style:{display:"inline-flex"},children:r})},ye=t.label`
|
|
201
|
+
${e=>b[e.$size]}
|
|
202
|
+
`,k=t.div`
|
|
203
|
+
${e=>b[e.$size]}
|
|
204
|
+
`,j=r.forwardRef(({children:t,title:r,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:[r&&e.jsx(y,{$size:o,children:r}),e.jsx(k,{$size:o,children:t})]}));j.displayName="Card";const M=({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})]}),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:"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})}),N=({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})}),A=({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})}),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",{d:"M3.75 3.75L16.25 16.25M16.25 3.75L3.75 16.25",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),_=({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})}),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:"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})}),B=({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})]}),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",{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})}),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:"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})}),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",{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})}),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:"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})}),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:"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})}),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 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})}),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 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"})}),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",{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})}),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",{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})}),Y=({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})}),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",{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})}),X=({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})}),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",{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})]}),J=({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})}),ee=({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})}),te=({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})}),re=({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})}),oe=({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})]}),ie=({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"})]}),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:"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})]}),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 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})]}),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 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"})]}),ce=({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"})]}),de=({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})}),he=({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 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=t=>{let r=null;const{name:o}=t;switch(o){case exports.IconName.BARS_3_BOTTOM_LEFT:r=e.jsx(M,{...t});break;case exports.IconName.BUILDING:r=e.jsx(L,{...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(N,{...t});break;case exports.IconName.CHECK_SQUARE:r=e.jsx(A,{...t});break;case exports.IconName.CHEVRON_DOWN:r=e.jsx($,{...t});break;case exports.IconName.CLOSE:r=e.jsx(R,{...t});break;case exports.IconName.CODE:r=e.jsx(_,{...t});break;case exports.IconName.COMPUTER:r=e.jsx(z,{...t});break;case exports.IconName.COPY:r=e.jsx(B,{...t});break;case exports.IconName.CUBE:r=e.jsx(T,{...t});break;case exports.IconName.DATABASE:r=e.jsx(H,{...t});break;case exports.IconName.EXCLAMATION_CIRCLE:r=e.jsx(S,{...t});break;case exports.IconName.EXCLAMATION_TRIANGLE:r=e.jsx(P,{...t});break;case exports.IconName.GEAR:r=e.jsx(O,{...t});break;case exports.IconName.GLobe:r=e.jsx(V,{...t});break;case exports.IconName.HASHTAG:r=e.jsx(D,{...t});break;case exports.IconName.HOME:r=e.jsx(U,{...t});break;case exports.IconName.INBOX:r=e.jsx(G,{...t});break;case exports.IconName.INFORMATION_CIRCLE:r=e.jsx(Z,{...t});break;case exports.IconName.INFORMATION_CIRCLE_MICRO:r=e.jsx(W,{...t});break;case exports.IconName.LAMP:r=e.jsx(K,{...t});break;case exports.IconName.LOCK_OPEN:r=e.jsx(Y,{...t});break;case exports.IconName.MINUS:r=e.jsx(F,{...t});break;case exports.IconName.PAPER_PLANE:r=e.jsx(X,{...t});break;case exports.IconName.PENCIL:r=e.jsx(q,{...t});break;case exports.IconName.PIE_CHART:r=e.jsx(Q,{...t});break;case exports.IconName.PIPELINE:r=e.jsx(J,{...t});break;case exports.IconName.PLUS:r=e.jsx(ee,{...t});break;case exports.IconName.PROFILE:r=e.jsx(te,{...t});break;case exports.IconName.QUESTION_CIRCLE:r=e.jsx(re,{...t});break;case exports.IconName.ROCKET_LAUNCH:r=e.jsx(oe,{...t});break;case exports.IconName.SEARCH:r=e.jsx(ie,{...t});break;case exports.IconName.SEARCH_DOCUMENT:r=e.jsx(ne,{...t});break;case exports.IconName.SEARCH_SQL:r=e.jsx(ae,{...t});break;case exports.IconName.SITEMAP:r=e.jsx(le,{...t});break;case exports.IconName.TETRASCIENCE_ICON:r=e.jsx(se,{...t});break;case exports.IconName.TEXT:r=e.jsx(ce,{...t});break;case exports.IconName.TRASH:r=e.jsx(de,{...t});break;case exports.IconName.VIEWFINDER_CIRCLE:r=e.jsx(he,{...t});break;default:throw`[Icon] name "${o}" does not exist`}return e.jsx("div",{style:{display:"inline-flex"},children:r})},ue=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
|
-
`,
|
|
211
|
+
`,ge=t.input.attrs({type:"checkbox"})`
|
|
212
212
|
position: absolute;
|
|
213
213
|
opacity: 0;
|
|
214
214
|
height: 0;
|
|
215
215
|
width: 0;
|
|
216
|
-
`,
|
|
216
|
+
`,fe=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
|
+
`,me=()=>e.jsx(xe,{name:exports.IconName.CHECK_SQUARE,fill:"var(--blue-600)"}),Ce=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
|
+
`,be=r.forwardRef(({checked:t=!1,onChange:r,disabled:o=!1,className:i,onClick:n,label:a,noPadding:l=!1},s)=>e.jsxs(ue,{className:i,disabled:o,$noPadding:l,onClick:e=>{n&&n(e)},children:[e.jsx(ge,{ref:s,checked:t,onChange:e=>{!o&&r&&r(e.target.checked)},disabled:o}),e.jsx(fe,{checked:t,disabled:o,children:t&&e.jsx(me,{})}),a&&e.jsx(Ce,{children:a})]}));be.displayName="Checkbox";const ve=t.div`
|
|
237
237
|
position: relative;
|
|
238
238
|
display: inline-flex;
|
|
239
239
|
width: fit-content;
|
|
240
|
-
`,
|
|
240
|
+
`,we=t.div`
|
|
241
241
|
position: absolute;
|
|
242
242
|
background-color: var(--black);
|
|
243
243
|
color: var(--white);
|
|
@@ -259,7 +259,7 @@
|
|
|
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
|
`}
|
|
@@ -325,15 +325,15 @@
|
|
|
325
325
|
border-color: transparent transparent transparent var(--black);
|
|
326
326
|
}
|
|
327
327
|
`;default:return""}}}
|
|
328
|
-
`,
|
|
328
|
+
`,ye=({content:t,children:o,placement:i="top",className:n,delay:a=100})=>{const[l,s]=r.useState(!1),c=r.useRef(null);return r.useEffect(()=>()=>{c.current&&clearTimeout(c.current)},[]),e.jsxs(ve,{className:n,onMouseEnter:()=>{c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{s(!0)},a)},onMouseLeave:()=>{c.current&&clearTimeout(c.current),s(!1)},children:[o,e.jsx(we,{placement:i,$isVisible:l,children:t})]})};var ke={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 je={},Me={light:"github-light",dark:"dracula"},Le=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
|
-
`,
|
|
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
|
+
`,Ne=t(f)`
|
|
352
352
|
width: 100%;
|
|
353
353
|
height: 100%;
|
|
354
|
-
`,
|
|
354
|
+
`,Ae=({value:t,onChange:i,language:n="python",theme:a="dark",height:l=400,width:s="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(Le,{$themeMode:a,disabled:p,children:[e.jsxs(Ie,{children:[d&&e.jsx(ye,{content:x,placement:"bottom",children:e.jsx(Ee,{children:e.jsx(Ne,{variant:"tertiary",size:"small",leftIcon:e.jsx(xe,{name:exports.IconName.COPY}),noPadding:!0,fullWidth:!0,onClick:()=>m(t),disabled:p,children:null})})}),h&&e.jsx(ye,{content:g,placement:"bottom",children:e.jsx(Ee,{children:e.jsx(Ne,{variant:"tertiary",size:"small",leftIcon:e.jsx(xe,{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:Me[a],height:l,width:s,options:b,beforeMount:async e=>{const t=Me[a];try{const r=ke[t];if(r){const o=je[`/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
|
+
`,Re=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
|
+
`,_e=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
|
+
`,ze=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
|
+
`,Be=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
|
+
`,Te=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
|
+
`,He=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
|
+
`,Se=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
|
+
`,Pe=({options:t=[],value:o,placeholder:i="Select an option",disabled:n=!1,error:a=!1,size:l="small",onChange:s,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),s?.(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(Re,{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:l,"aria-haspopup":"listbox","aria-expanded":x,"aria-label":i,children:[e.jsx(ze,{children:y}),e.jsx(_e,{open:x,children:e.jsx(xe,{name:exports.IconName.CHEVRON_DOWN,fill:"var(--grey-600)"})})]}),x&&e.jsx(Be,{role:"listbox","aria-labelledby":"dropdown-button",menuWidth:p,children:t.length>0?t.map((t,r)=>e.jsx(Se,{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(Te,{children:[e.jsx(xe,{name:exports.IconName.INBOX,fill:"var(--grey-400)",width:"24px",height:"24px"}),e.jsx(He,{children:"No Data"})]})})]})},Oe=t.div`
|
|
470
470
|
width: 100%;
|
|
471
471
|
padding: 15px;
|
|
472
472
|
border-radius: 4px;
|
|
@@ -476,17 +476,17 @@
|
|
|
476
476
|
display: flex;
|
|
477
477
|
flex-direction: column;
|
|
478
478
|
gap: 8px;
|
|
479
|
-
`,
|
|
479
|
+
`,Ve=t.div`
|
|
480
480
|
display: flex;
|
|
481
481
|
justify-content: space-between;
|
|
482
482
|
align-items: flex-start;
|
|
483
|
-
`,
|
|
483
|
+
`,De=t.div`
|
|
484
484
|
color: #ff4d4f;
|
|
485
485
|
font-size: 18px;
|
|
486
486
|
margin-right: 12px;
|
|
487
487
|
display: flex;
|
|
488
488
|
align-items: center;
|
|
489
|
-
`,
|
|
489
|
+
`,Ue=t.button`
|
|
490
490
|
background: none;
|
|
491
491
|
border: none;
|
|
492
492
|
font-size: 16px;
|
|
@@ -497,29 +497,29 @@
|
|
|
497
497
|
&:hover {
|
|
498
498
|
color: rgba(0, 0, 0, 0.75);
|
|
499
499
|
}
|
|
500
|
-
`,
|
|
500
|
+
`,Ge=t.div`
|
|
501
501
|
font-weight: 500;
|
|
502
502
|
font-size: 16px;
|
|
503
503
|
display: flex;
|
|
504
504
|
align-items: center;
|
|
505
505
|
flex-grow: 1;
|
|
506
|
-
`,
|
|
506
|
+
`,Ze=t.div`
|
|
507
507
|
display: flex;
|
|
508
508
|
flex-direction: column;
|
|
509
509
|
gap: 8px;
|
|
510
510
|
width: 100%;
|
|
511
|
-
`,
|
|
511
|
+
`,We=t.p`
|
|
512
512
|
margin: 0;
|
|
513
513
|
padding: 0;
|
|
514
514
|
line-height: 1.5;
|
|
515
|
-
`,
|
|
516
|
-
font-weight: ${e=>e
|
|
517
|
-
color: ${e=>"secondary"===e
|
|
518
|
-
`,
|
|
515
|
+
`,Ke=t.span`
|
|
516
|
+
font-weight: ${e=>e.$strong?"600":"400"};
|
|
517
|
+
color: ${e=>"secondary"===e.$type?"rgba(0, 0, 0, 0.45)":"inherit"};
|
|
518
|
+
`,Ye=t(Ke).attrs({$type:"secondary"})``,Fe=t.div`
|
|
519
519
|
margin-left: -15px;
|
|
520
520
|
margin-right: -15px;
|
|
521
521
|
margin-bottom: -5px;
|
|
522
|
-
`,
|
|
522
|
+
`,Xe=t.div`
|
|
523
523
|
padding: 12px 16px;
|
|
524
524
|
cursor: pointer;
|
|
525
525
|
display: flex;
|
|
@@ -531,16 +531,16 @@
|
|
|
531
531
|
}
|
|
532
532
|
|
|
533
533
|
&::after {
|
|
534
|
-
content: "${e=>e
|
|
534
|
+
content: "${e=>e.$isActive?"▼":"▶"}";
|
|
535
535
|
font-size: 12px;
|
|
536
536
|
margin-left: 8px;
|
|
537
537
|
}
|
|
538
|
-
`,
|
|
539
|
-
padding: ${e=>e
|
|
540
|
-
max-height: ${e=>e
|
|
538
|
+
`,qe=t.div`
|
|
539
|
+
padding: ${e=>e.$isVisible?"0 16px 12px":"0 16px"};
|
|
540
|
+
max-height: ${e=>e.$isVisible?"300px":"0"};
|
|
541
541
|
overflow: hidden;
|
|
542
542
|
transition: max-height 0.3s ease;
|
|
543
|
-
`,
|
|
543
|
+
`,Qe=t.pre`
|
|
544
544
|
white-space: pre-wrap;
|
|
545
545
|
word-break: break-all;
|
|
546
546
|
max-height: 300px;
|
|
@@ -549,19 +549,19 @@
|
|
|
549
549
|
padding: 10px;
|
|
550
550
|
border-radius: 4px;
|
|
551
551
|
margin: 0;
|
|
552
|
-
`;const
|
|
552
|
+
`;function Je(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 l=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=l.description??`Request failed with status code ${t}.`,i=`URL: ${e.config?.method?.toUpperCase()} ${e.config?.url}\nStatus: ${t} ${n}\nResponse Data:\n${l.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 et(e){return function(e){return"object"==typeof e&&null!==e&&"isAxiosError"in e&&!0===e.isAxiosError}(e)?Je(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 tt=({children:t,header:o,defaultExpanded:i=!1})=>{const[n,a]=r.useState(i);return e.jsxs("div",{children:[e.jsx(Xe,{$isActive:n,onClick:()=>a(!n),children:o}),e.jsx(qe,{$isVisible:n,children:t})]})},rt={xsmall:t.css`
|
|
553
553
|
height: 32px;
|
|
554
|
-
padding: ${e=>e
|
|
554
|
+
padding: ${e=>e.$hasIconLeft&&e.$hasIconRight?"0 32px 0 32px":e.$hasIconLeft?"0 10px 0 32px":e.$hasIconRight?"0 32px 0 10px":"0 10px"};
|
|
555
555
|
`,small:t.css`
|
|
556
556
|
height: 36px;
|
|
557
|
-
padding: ${e=>e
|
|
558
|
-
`},
|
|
557
|
+
padding: ${e=>e.$hasIconLeft&&e.$hasIconRight?"0 38px 0 38px":e.$hasIconLeft?"0 12px 0 38px":e.$hasIconRight?"0 38px 0 12px":"0 12px"};
|
|
558
|
+
`},ot=t.div`
|
|
559
559
|
position: relative;
|
|
560
560
|
display: inline-flex;
|
|
561
561
|
align-items: center;
|
|
562
562
|
width: 100%;
|
|
563
563
|
gap: 8px;
|
|
564
|
-
`,
|
|
564
|
+
`,it=t.input`
|
|
565
565
|
width: 100%;
|
|
566
566
|
border-radius: 6px;
|
|
567
567
|
font-family: "Inter", sans-serif;
|
|
@@ -570,28 +570,28 @@
|
|
|
570
570
|
font-weight: 400;
|
|
571
571
|
line-height: 20px;
|
|
572
572
|
border: 1px solid
|
|
573
|
-
${e=>e
|
|
573
|
+
${e=>e.$error?"var(--red-error)":(e.disabled,"var(--grey-300)")};
|
|
574
574
|
background-color: ${e=>e.disabled?"var(--grey-200)":"var(--white-900)"};
|
|
575
575
|
color: ${e=>e.disabled?"var(--grey-400)":"var(--black-900)"};
|
|
576
576
|
transition: all 0.2s;
|
|
577
577
|
|
|
578
|
-
${e=>
|
|
578
|
+
${e=>rt[e.size||"small"]}
|
|
579
579
|
|
|
580
580
|
&:hover:not(:disabled):not(:focus) {
|
|
581
|
-
border-color: ${e=>e
|
|
581
|
+
border-color: ${e=>e.$error?"var(--red-error)":"var(--blue-600)"};
|
|
582
582
|
}
|
|
583
583
|
|
|
584
584
|
&:focus {
|
|
585
585
|
outline: none;
|
|
586
586
|
box-shadow: 0px 0px 0px 1px var(--white-900),
|
|
587
587
|
0px 0px 0px 3px var(--blue-600);
|
|
588
|
-
border-color: ${e=>e
|
|
588
|
+
border-color: ${e=>e.$error?"var(--red-error)":"var(--blue-600)"};
|
|
589
589
|
}
|
|
590
590
|
|
|
591
591
|
&:active {
|
|
592
592
|
outline: none;
|
|
593
593
|
box-shadow: 0px 0px 0px 2px var(--blue-200);
|
|
594
|
-
border-color: ${e=>e
|
|
594
|
+
border-color: ${e=>e.$error?"var(--red-error)":"var(--blue-600)"};
|
|
595
595
|
}
|
|
596
596
|
|
|
597
597
|
&:disabled {
|
|
@@ -603,7 +603,7 @@
|
|
|
603
603
|
&::placeholder {
|
|
604
604
|
color: var(--grey-400);
|
|
605
605
|
}
|
|
606
|
-
`,
|
|
606
|
+
`,nt=t.div`
|
|
607
607
|
position: absolute;
|
|
608
608
|
display: flex;
|
|
609
609
|
align-items: center;
|
|
@@ -612,11 +612,11 @@
|
|
|
612
612
|
color: var(--grey-400);
|
|
613
613
|
${e=>"left"===e.position?"left: 10px;":"right: 10px;"}
|
|
614
614
|
${e=>"xsmall"===e.size?"width: 16px; height: 16px;":"width: 20px; height: 20px;"}
|
|
615
|
-
`,
|
|
615
|
+
`,at=r.forwardRef(({size:t="small",iconLeft:r,iconRight:o,error:i=!1,disabled:n=!1,...a},l)=>e.jsxs(ot,{size:t,disabled:n,$error:i,children:[r&&e.jsx(nt,{position:"left",size:t,children:r}),e.jsx(it,{ref:l,size:t,$hasIconLeft:!!r,$hasIconRight:!!o,$error:i,disabled:n,...a}),o&&e.jsx(nt,{position:"right",size:t,children:o})]}));at.displayName="Input";const lt=t.div`
|
|
616
616
|
display: flex;
|
|
617
617
|
flex-direction: column;
|
|
618
618
|
gap: 4px;
|
|
619
|
-
`,
|
|
619
|
+
`,st=t.div`
|
|
620
620
|
display: flex;
|
|
621
621
|
align-items: center;
|
|
622
622
|
gap: 6px;
|
|
@@ -627,96 +627,92 @@
|
|
|
627
627
|
font-style: normal;
|
|
628
628
|
font-weight: 400;
|
|
629
629
|
line-height: 18px;
|
|
630
|
-
`,
|
|
630
|
+
`,ct=()=>e.jsx(xe,{name:exports.IconName.INFORMATION_CIRCLE_MICRO,fill:"var(--grey-600)"}),dt=t.span`
|
|
631
631
|
display: inline-flex;
|
|
632
632
|
cursor: help;
|
|
633
|
-
`,
|
|
634
|
-
display: flex;
|
|
635
|
-
gap: 8px;
|
|
636
|
-
align-items: center;
|
|
637
|
-
`,br=t.code`
|
|
633
|
+
`,ht=({children:t,infoText:r,className:o})=>e.jsx(lt,{className:o,children:e.jsxs(st,{children:[t,r&&e.jsx(ye,{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
634
|
background-color: rgba(0, 0, 0, 0.05);
|
|
639
635
|
border-radius: 3px;
|
|
640
636
|
font-family: "Courier New", Courier, monospace;
|
|
641
637
|
padding: 0.2em 0.4em;
|
|
642
638
|
font-size: 85%;
|
|
643
|
-
`,
|
|
639
|
+
`,ut=({inline:t,className:o,children:i,...a})=>{const l=/language-(\w+)/.exec(o||""),s=l?l[1]:void 0,c=String(i).replace(/\n$/,""),[d,h]=r.useState(!1),p=e=>{console.log(e)};return!t&&l?e.jsxs("div",{className:"code-block-container",children:[e.jsx("div",{className:"copy-button-wrapper",children:e.jsx(f,{size:"small",leftIcon:e.jsx(xe,{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:s,PreTag:"div",children:c})]}):e.jsx(xt,{...a,children:i})},gt=t.div`
|
|
644
640
|
display: flex;
|
|
645
641
|
align-items: center;
|
|
646
642
|
justify-content: space-between;
|
|
647
643
|
font-size: 14px;
|
|
648
644
|
gap: 10px;
|
|
649
|
-
color: ${e=>e
|
|
645
|
+
color: ${e=>e.$active?"var(--blue-900)":"var(--grey-600)"};
|
|
650
646
|
cursor: pointer;
|
|
651
647
|
transition: all 0.2s;
|
|
652
648
|
user-select: none;
|
|
653
649
|
border-bottom: 1px solid var(--grey-200);
|
|
654
|
-
background-color: ${e=>e
|
|
655
|
-
padding: ${e=>e
|
|
650
|
+
background-color: ${e=>e.$active?"var(--grey-100)":"var(--white-900)"};
|
|
651
|
+
padding: ${e=>e.$showCheckbox?"0":"12px 16px"};
|
|
656
652
|
|
|
657
653
|
&:hover {
|
|
658
|
-
background-color: ${e=>e
|
|
654
|
+
background-color: ${e=>e.$active?"var(--grey-100)":"var(--grey-50)"};
|
|
659
655
|
}
|
|
660
656
|
|
|
661
657
|
&:last-child {
|
|
662
658
|
border-bottom: none;
|
|
663
659
|
}
|
|
664
|
-
`,
|
|
660
|
+
`,ft=t.div`
|
|
665
661
|
display: flex;
|
|
666
662
|
align-items: center;
|
|
667
663
|
gap: 12px;
|
|
668
664
|
flex: 1;
|
|
669
|
-
`,
|
|
665
|
+
`,mt=t.div`
|
|
670
666
|
display: flex;
|
|
671
667
|
align-items: center;
|
|
672
668
|
justify-content: flex-start;
|
|
673
669
|
flex: 1;
|
|
674
670
|
width: 100%;
|
|
675
|
-
`,
|
|
671
|
+
`,Ct=r.forwardRef(({label:t,checked:r=!1,showCheckbox:o=!1,onClick:i,onCheckChange:n,active:a=!1,className:l},s)=>{const c=e=>{console.log("Checkbox clicked!"),e.stopPropagation()};return e.jsxs(gt,{ref:s,$active:a,$showCheckbox:o,className:l,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(be,{checked:r,onChange:e=>{console.log("Checkbox changed:",e),n&&n(e)},onClick:c,label:t})})]})});Ct.displayName="MenuItem";const bt=t.createGlobalStyle`
|
|
676
672
|
body.stop-scrolling {
|
|
677
673
|
overflow: hidden;
|
|
678
674
|
}
|
|
679
|
-
`,
|
|
675
|
+
`,vt=t.keyframes`
|
|
680
676
|
from {
|
|
681
677
|
opacity: 0;
|
|
682
678
|
}
|
|
683
679
|
to {
|
|
684
680
|
opacity: 1;
|
|
685
681
|
}
|
|
686
|
-
`,
|
|
682
|
+
`,wt=t.keyframes`
|
|
687
683
|
from {
|
|
688
684
|
opacity: 1;
|
|
689
685
|
}
|
|
690
686
|
to {
|
|
691
687
|
opacity: 0;
|
|
692
688
|
}
|
|
693
|
-
`,
|
|
689
|
+
`,yt=t.keyframes`
|
|
694
690
|
from {
|
|
695
691
|
opacity: 0;
|
|
696
692
|
}
|
|
697
693
|
to {
|
|
698
694
|
opacity: 1;
|
|
699
695
|
}
|
|
700
|
-
`,
|
|
696
|
+
`,kt=t.keyframes`
|
|
701
697
|
from {
|
|
702
698
|
opacity: 1;
|
|
703
699
|
}
|
|
704
700
|
to {
|
|
705
701
|
opacity: 0;
|
|
706
702
|
}
|
|
707
|
-
`,
|
|
703
|
+
`,jt=t.div`
|
|
708
704
|
position: fixed;
|
|
709
705
|
top: 0;
|
|
710
706
|
right: 0;
|
|
711
707
|
bottom: 0;
|
|
712
708
|
left: 0;
|
|
713
709
|
z-index: 10000;
|
|
714
|
-
animation: ${e=>e
|
|
710
|
+
animation: ${e=>e.$isFadeOut?wt:vt} 0.3s
|
|
715
711
|
ease forwards;
|
|
716
712
|
display: flex;
|
|
717
713
|
align-items: center;
|
|
718
714
|
justify-content: center;
|
|
719
|
-
`,
|
|
715
|
+
`,Mt=t.button`
|
|
720
716
|
background-color: var(--black-500);
|
|
721
717
|
position: absolute;
|
|
722
718
|
top: 0;
|
|
@@ -727,9 +723,9 @@
|
|
|
727
723
|
box-shadow: none;
|
|
728
724
|
border: none;
|
|
729
725
|
height: 100%;
|
|
730
|
-
animation: ${e=>e
|
|
726
|
+
animation: ${e=>e.$isFadeOut?kt:yt}
|
|
731
727
|
0.3s ease forwards;
|
|
732
|
-
`,
|
|
728
|
+
`,Lt=t.div`
|
|
733
729
|
position: relative;
|
|
734
730
|
background: var(--theme-background, var(--white-900));
|
|
735
731
|
border-radius: var(--theme-radius-large, 16px);
|
|
@@ -739,8 +735,8 @@
|
|
|
739
735
|
box-shadow: 0px 4px 12px 0px var(--black-100),
|
|
740
736
|
0px 2px 4px -2px var(--black-100);
|
|
741
737
|
z-index: 1;
|
|
742
|
-
transform: ${e=>e
|
|
743
|
-
opacity: ${e=>e
|
|
738
|
+
transform: ${e=>e.$isFadeOut?"scale(0.95)":"scale(1)"};
|
|
739
|
+
opacity: ${e=>e.$isFadeOut?0:1};
|
|
744
740
|
transition: transform 0.3s ease-out, opacity 0.3s ease-out;
|
|
745
741
|
max-height: 90vh;
|
|
746
742
|
display: flex;
|
|
@@ -749,14 +745,14 @@
|
|
|
749
745
|
@media (max-width: 767px) {
|
|
750
746
|
width: calc(100% - 40px) !important;
|
|
751
747
|
}
|
|
752
|
-
`,
|
|
748
|
+
`,It=t.div`
|
|
753
749
|
display: flex;
|
|
754
750
|
flex-direction: row;
|
|
755
751
|
justify-content: space-between;
|
|
756
752
|
align-items: center;
|
|
757
753
|
padding: 12px 24px;
|
|
758
754
|
border-bottom: 1px solid var(--grey-100);
|
|
759
|
-
`,
|
|
755
|
+
`,Et=t.h3`
|
|
760
756
|
margin: 0;
|
|
761
757
|
font-family: "Inter", sans-serif;
|
|
762
758
|
font-size: 18px;
|
|
@@ -764,7 +760,7 @@
|
|
|
764
760
|
font-weight: 500;
|
|
765
761
|
line-height: 28px;
|
|
766
762
|
color: var(--black-900);
|
|
767
|
-
`,
|
|
763
|
+
`,Nt=t.button`
|
|
768
764
|
background: none;
|
|
769
765
|
border: none;
|
|
770
766
|
cursor: pointer;
|
|
@@ -775,6 +771,7 @@
|
|
|
775
771
|
color: var(--black-900);
|
|
776
772
|
width: 24px;
|
|
777
773
|
height: 24px;
|
|
774
|
+
${e=>e.$absolute&&"\n position: absolute;\n top: 16px;\n right: 16px;\n "}
|
|
778
775
|
|
|
779
776
|
&:hover {
|
|
780
777
|
color: var(--black-900);
|
|
@@ -784,7 +781,7 @@
|
|
|
784
781
|
width: 20px;
|
|
785
782
|
height: 20px;
|
|
786
783
|
}
|
|
787
|
-
`,
|
|
784
|
+
`,At=t.div`
|
|
788
785
|
padding: 12px;
|
|
789
786
|
display: flex;
|
|
790
787
|
justify-content: flex-end;
|
|
@@ -798,7 +795,7 @@
|
|
|
798
795
|
width: 100%;
|
|
799
796
|
}
|
|
800
797
|
}
|
|
801
|
-
|
|
798
|
+
`,$t=t.div`
|
|
802
799
|
color: var(--grey-500);
|
|
803
800
|
font-family: "Inter", sans-serif;
|
|
804
801
|
font-size: 14px;
|
|
@@ -809,7 +806,7 @@
|
|
|
809
806
|
overflow-y: auto;
|
|
810
807
|
flex: 1;
|
|
811
808
|
max-height: calc(90vh - 140px); /* Account for header and footer */
|
|
812
|
-
|
|
809
|
+
`,Rt=({isOpen:t,onClose:o,onCloseLabel:i,onConfirm:n,onConfirmLabel:a,children:l,width:s="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(Lt,{$isFadeOut:u,width:s,children:[h&&e.jsxs(It,{children:[e.jsx(Et,{children:h}),e.jsx(Nt,{onClick:C,children:e.jsx(xe,{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($t,{children:l}),!d&&e.jsxs(At,{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"})]})]})]})]})},_t=t.div`
|
|
813
810
|
position: absolute;
|
|
814
811
|
background-color: var(--white-900);
|
|
815
812
|
border-radius: 8px;
|
|
@@ -825,7 +822,7 @@
|
|
|
825
822
|
padding: 0;
|
|
826
823
|
font-family: "Inter", sans-serif;
|
|
827
824
|
|
|
828
|
-
${e=>e
|
|
825
|
+
${e=>e.$isVisible&&t.css`
|
|
829
826
|
opacity: 1;
|
|
830
827
|
visibility: visible;
|
|
831
828
|
`}
|
|
@@ -1003,25 +1000,25 @@
|
|
|
1003
1000
|
border-color: transparent transparent var(--white-900) transparent;
|
|
1004
1001
|
}
|
|
1005
1002
|
`;default:return""}}}
|
|
1006
|
-
`,
|
|
1003
|
+
`,zt=t.div`
|
|
1007
1004
|
padding: 12px 16px;
|
|
1008
1005
|
color: var(--black-800);
|
|
1009
1006
|
font-weight: 600;
|
|
1010
1007
|
font-size: 14px;
|
|
1011
1008
|
border-bottom: 1px solid var(--grey-100);
|
|
1012
|
-
`,
|
|
1009
|
+
`,Bt=t.div`
|
|
1013
1010
|
padding: 12px 16px;
|
|
1014
1011
|
color: var(--grey-600);
|
|
1015
1012
|
font-size: 14px;
|
|
1016
|
-
`,
|
|
1013
|
+
`,Tt=t.div`
|
|
1017
1014
|
display: flex;
|
|
1018
1015
|
justify-content: flex-end;
|
|
1019
1016
|
gap: 8px;
|
|
1020
1017
|
padding: 8px 16px 12px;
|
|
1021
|
-
`,
|
|
1018
|
+
`,Ht=t.div`
|
|
1022
1019
|
position: relative;
|
|
1023
1020
|
display: inline-block;
|
|
1024
|
-
`,
|
|
1021
|
+
`,St=({title:t,description:o,onConfirm:i,onCancel:n,okText:a="OK",cancelText:l="Cancel",placement:s="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(Ht,{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(_t,{placement:s,$isVisible:u,children:[t&&e.jsx(zt,{children:t}),o&&e.jsx(Bt,{children:o}),e.jsxs(Tt,{children:[e.jsx(f,{variant:"tertiary",size:"small",onClick:e=>{g(!1),n?.(e)},...p,children:l}),e.jsx(f,{variant:"primary",size:"small",onClick:e=>{g(!1),i?.(e)},...h,children:a})]})]})]})};St.displayName="PopConfirm";const Pt=t.div`
|
|
1025
1022
|
display: flex;
|
|
1026
1023
|
align-items: center;
|
|
1027
1024
|
gap: 6px;
|
|
@@ -1032,7 +1029,7 @@
|
|
|
1032
1029
|
font-style: normal;
|
|
1033
1030
|
font-weight: 400;
|
|
1034
1031
|
line-height: 18px;
|
|
1035
|
-
`,
|
|
1032
|
+
`,Ot=()=>e.jsx(xe,{name:exports.IconName.CHECK_CIRCLE,fill:"var(--grey-600)"}),Vt=({children:t,showCheck:r=!1,className:o})=>e.jsxs(Pt,{className:o,children:[r&&e.jsx(Ot,{}),t]}),Dt={small:t.css`
|
|
1036
1033
|
font-family: "Inter", sans-serif;
|
|
1037
1034
|
font-size: 14px;
|
|
1038
1035
|
font-style: normal;
|
|
@@ -1044,7 +1041,7 @@
|
|
|
1044
1041
|
font-style: normal;
|
|
1045
1042
|
font-weight: 500;
|
|
1046
1043
|
line-height: 24px;
|
|
1047
|
-
`},
|
|
1044
|
+
`},Ut=t.button`
|
|
1048
1045
|
position: relative;
|
|
1049
1046
|
display: inline-flex;
|
|
1050
1047
|
align-items: center;
|
|
@@ -1054,8 +1051,8 @@
|
|
|
1054
1051
|
border: none;
|
|
1055
1052
|
outline: none;
|
|
1056
1053
|
cursor: ${e=>e.disabled?"not-allowed":"pointer"};
|
|
1057
|
-
${e=>
|
|
1058
|
-
color: ${e=>e.disabled?"var(--grey-400)":e
|
|
1054
|
+
${e=>Dt[e.size]}
|
|
1055
|
+
color: ${e=>e.disabled?"var(--grey-400)":e.$active?"var(--blue-900)":"var(--grey-500)"};
|
|
1059
1056
|
transition: all 0.2s ease;
|
|
1060
1057
|
|
|
1061
1058
|
&:hover:not(:disabled) {
|
|
@@ -1070,7 +1067,7 @@
|
|
|
1070
1067
|
background-color: ${e=>e.disabled?"var(--grey-400)":"var(--blue-900)"};
|
|
1071
1068
|
bottom: 0;
|
|
1072
1069
|
left: 0;
|
|
1073
|
-
opacity: ${e=>e
|
|
1070
|
+
opacity: ${e=>e.$active?1:0};
|
|
1074
1071
|
transition: opacity 0.2s ease;
|
|
1075
1072
|
}
|
|
1076
1073
|
|
|
@@ -1078,7 +1075,7 @@
|
|
|
1078
1075
|
outline: none;
|
|
1079
1076
|
box-shadow: none;
|
|
1080
1077
|
}
|
|
1081
|
-
`,
|
|
1078
|
+
`,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}),Zt=t.td`
|
|
1082
1079
|
background-color: var(--white-900);
|
|
1083
1080
|
border-right: 1px solid var(--grey-200);
|
|
1084
1081
|
border-bottom: 1px solid var(--grey-200);
|
|
@@ -1097,7 +1094,7 @@
|
|
|
1097
1094
|
&:last-child {
|
|
1098
1095
|
border-right: 1px solid var(--grey-200);
|
|
1099
1096
|
}
|
|
1100
|
-
`,
|
|
1097
|
+
`,Wt=r.forwardRef(({children:t,align:r="left",width:o,className:i,...n},a)=>e.jsx(Zt,{ref:a,align:r,width:o,className:i,...n,children:t}));Wt.displayName="TableCell";const Kt=t.th`
|
|
1101
1098
|
background-color: var(--grey-50);
|
|
1102
1099
|
border-right: 1px solid var(--grey-200);
|
|
1103
1100
|
border-bottom: 1px solid var(--grey-200);
|
|
@@ -1109,13 +1106,13 @@
|
|
|
1109
1106
|
&:last-child {
|
|
1110
1107
|
border-right: 1px solid var(--grey-200);
|
|
1111
1108
|
}
|
|
1112
|
-
`,
|
|
1109
|
+
`,Yt=t.div`
|
|
1113
1110
|
display: flex;
|
|
1114
1111
|
align-items: center;
|
|
1115
1112
|
gap: 4px;
|
|
1116
|
-
cursor: ${e=>e
|
|
1113
|
+
cursor: ${e=>e.$clickable?"pointer":"default"};
|
|
1117
1114
|
user-select: none;
|
|
1118
|
-
`,
|
|
1115
|
+
`,Ft=t.span`
|
|
1119
1116
|
font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
1120
1117
|
font-size: 13px;
|
|
1121
1118
|
font-weight: 600;
|
|
@@ -1123,11 +1120,11 @@
|
|
|
1123
1120
|
color: var(--grey-900);
|
|
1124
1121
|
white-space: nowrap;
|
|
1125
1122
|
flex-shrink: 0;
|
|
1126
|
-
`,
|
|
1123
|
+
`,Xt=t.svg`
|
|
1127
1124
|
width: 16px;
|
|
1128
1125
|
height: 16px;
|
|
1129
1126
|
flex-shrink: 0;
|
|
1130
|
-
`,
|
|
1127
|
+
`,qt=t.div`
|
|
1131
1128
|
padding: 10px 4px;
|
|
1132
1129
|
height: 35px;
|
|
1133
1130
|
box-sizing: border-box;
|
|
@@ -1142,19 +1139,19 @@
|
|
|
1142
1139
|
li {
|
|
1143
1140
|
text-align: left;
|
|
1144
1141
|
}
|
|
1145
|
-
`,
|
|
1142
|
+
`,Qt=r.forwardRef(({children:t,sortable:r=!1,sortDirection:o=null,onSort:i,filterable:n=!1,filterOptions:a=[],filterValue:l,onFilterChange:s,width:c,className:d,...h},p)=>n?e.jsx(Kt,{ref:p,width:c,className:d,...h,children:e.jsx(qt,{children:e.jsx(Pe,{options:a,value:l,onChange:s,placeholder:"Placeholder",size:"small",width:"100%"})})}):e.jsx(Kt,{ref:p,width:c,className:d,...h,children:e.jsxs(Yt,{$clickable:r,onClick:()=>{r&&i&&i()},children:[e.jsx(Ft,{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)"})]})]})}));Qt.displayName="TableHeaderCell";const Jt={xsmall:t.css`
|
|
1146
1143
|
min-height: ${e=>e.rows?"auto":"80px"};
|
|
1147
1144
|
padding: 10px;
|
|
1148
1145
|
`,small:t.css`
|
|
1149
1146
|
min-height: ${e=>e.rows?"auto":"100px"};
|
|
1150
1147
|
padding: 12px;
|
|
1151
|
-
`},
|
|
1148
|
+
`},er=t.div`
|
|
1152
1149
|
position: relative;
|
|
1153
1150
|
display: inline-flex;
|
|
1154
1151
|
align-items: center;
|
|
1155
|
-
width: ${e=>e
|
|
1152
|
+
width: ${e=>e.$fullWidth?"100%":"auto"};
|
|
1156
1153
|
gap: 8px;
|
|
1157
|
-
`,
|
|
1154
|
+
`,tr=t.textarea`
|
|
1158
1155
|
width: 100%;
|
|
1159
1156
|
border-radius: 6px;
|
|
1160
1157
|
font-family: "Inter", sans-serif;
|
|
@@ -1162,30 +1159,30 @@
|
|
|
1162
1159
|
font-weight: 400;
|
|
1163
1160
|
line-height: 20px;
|
|
1164
1161
|
border: 1px solid
|
|
1165
|
-
${e=>e
|
|
1162
|
+
${e=>e.$error?"var(--red-error)":(e.disabled,"var(--grey-300)")};
|
|
1166
1163
|
background-color: ${e=>e.disabled?"var(--grey-200)":"var(--white-900)"};
|
|
1167
1164
|
color: ${e=>e.disabled?"var(--grey-400)":"var(--black-900)"};
|
|
1168
1165
|
transition: all 0.2s;
|
|
1169
1166
|
resize: vertical;
|
|
1170
1167
|
font-size: 14px;
|
|
1171
1168
|
|
|
1172
|
-
${e=>
|
|
1169
|
+
${e=>Jt[e.size||"small"]}
|
|
1173
1170
|
|
|
1174
1171
|
&:hover:not(:disabled):not(:focus) {
|
|
1175
|
-
border-color: ${e=>e
|
|
1172
|
+
border-color: ${e=>e.$error?"var(--red-error)":"var(--blue-600)"};
|
|
1176
1173
|
}
|
|
1177
1174
|
|
|
1178
1175
|
&:focus {
|
|
1179
1176
|
outline: none;
|
|
1180
1177
|
box-shadow: 0px 0px 0px 1px var(--white-900),
|
|
1181
1178
|
0px 0px 0px 3px var(--blue-600);
|
|
1182
|
-
border-color: ${e=>e
|
|
1179
|
+
border-color: ${e=>e.$error?"var(--red-error)":"var(--blue-600)"};
|
|
1183
1180
|
}
|
|
1184
1181
|
|
|
1185
1182
|
&:active {
|
|
1186
1183
|
outline: none;
|
|
1187
1184
|
box-shadow: 0px 0px 0px 2px var(--blue-200);
|
|
1188
|
-
border-color: ${e=>e
|
|
1185
|
+
border-color: ${e=>e.$error?"var(--red-error)":"var(--blue-600)"};
|
|
1189
1186
|
}
|
|
1190
1187
|
|
|
1191
1188
|
&:disabled {
|
|
@@ -1197,22 +1194,22 @@
|
|
|
1197
1194
|
&::placeholder {
|
|
1198
1195
|
color: var(--grey-400);
|
|
1199
1196
|
}
|
|
1200
|
-
`,
|
|
1197
|
+
`,rr=r.forwardRef(({size:t="small",error:r=!1,disabled:o=!1,fullWidth:i=!1,rows:n,...a},l)=>e.jsx(er,{$fullWidth:i,children:e.jsx(tr,{ref:l,size:t,$error:r,disabled:o,rows:n,...a})}));rr.displayName="Textarea";const or={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)"}},ir=t.div`
|
|
1201
1198
|
display: flex;
|
|
1202
1199
|
padding: 8px;
|
|
1203
1200
|
gap: 8px;
|
|
1204
1201
|
align-items: flex-start;
|
|
1205
1202
|
border-radius: 8px;
|
|
1206
|
-
background-color: ${e=>
|
|
1207
|
-
border: 1px solid ${e=>
|
|
1203
|
+
background-color: ${e=>or[e.type].backgroundColor};
|
|
1204
|
+
border: 1px solid ${e=>or[e.type].borderColor};
|
|
1208
1205
|
width: 100%;
|
|
1209
1206
|
box-sizing: border-box;
|
|
1210
|
-
`,
|
|
1207
|
+
`,nr=t.div`
|
|
1211
1208
|
display: flex;
|
|
1212
1209
|
flex-direction: column;
|
|
1213
1210
|
gap: 4px;
|
|
1214
1211
|
flex: 1;
|
|
1215
|
-
`,
|
|
1212
|
+
`,ar=t.h3`
|
|
1216
1213
|
margin: 0;
|
|
1217
1214
|
color: var(--black-900);
|
|
1218
1215
|
font-family: "Inter", sans-serif;
|
|
@@ -1220,7 +1217,7 @@
|
|
|
1220
1217
|
font-style: normal;
|
|
1221
1218
|
font-weight: 400;
|
|
1222
1219
|
line-height: 24px;
|
|
1223
|
-
`,
|
|
1220
|
+
`,lr=t.p`
|
|
1224
1221
|
margin: 0;
|
|
1225
1222
|
color: var(--grey-500);
|
|
1226
1223
|
text-overflow: ellipsis;
|
|
@@ -1229,13 +1226,13 @@
|
|
|
1229
1226
|
font-style: normal;
|
|
1230
1227
|
font-weight: 400;
|
|
1231
1228
|
line-height: 18px;
|
|
1232
|
-
`,
|
|
1229
|
+
`,sr=({color:t})=>e.jsx(xe,{name:exports.IconName.INFORMATION_CIRCLE,fill:t}),cr=({color:t})=>e.jsx(xe,{name:exports.IconName.CHECK_CIRCLE,fill:t}),dr=({color:t})=>e.jsx(xe,{name:exports.IconName.EXCLAMATION_TRIANGLE,fill:t}),hr=({color:t})=>e.jsx(xe,{name:exports.IconName.EXCLAMATION_CIRCLE,fill:t}),pr=({color:t})=>e.jsx(xe,{name:exports.IconName.EXCLAMATION_TRIANGLE,fill:t}),xr=(t,r)=>{switch(t){case"info":return e.jsx(sr,{color:r});case"success":return e.jsx(cr,{color:r});case"warning":return e.jsx(dr,{color:r});case"danger":return e.jsx(hr,{color:r});default:return e.jsx(pr,{color:r})}},ur=({type:t="default",heading:r,description:o,className:i})=>e.jsxs(ir,{type:t,className:i,children:[xr(t,or[t].iconColor),e.jsxs(nr,{children:[e.jsx(ar,{children:r}),o&&e.jsx(lr,{children:o})]})]}),gr=t.div`
|
|
1233
1230
|
display: flex;
|
|
1234
1231
|
align-items: center;
|
|
1235
1232
|
gap: 8px;
|
|
1236
1233
|
opacity: ${({disabled:e})=>e?.6:1};
|
|
1237
1234
|
cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
|
|
1238
|
-
`,
|
|
1235
|
+
`,fr=t.div`
|
|
1239
1236
|
position: relative;
|
|
1240
1237
|
width: 32px;
|
|
1241
1238
|
height: 20px;
|
|
@@ -1245,7 +1242,7 @@
|
|
|
1245
1242
|
transition: all 0.2s ease;
|
|
1246
1243
|
cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
|
|
1247
1244
|
box-sizing: border-box;
|
|
1248
|
-
`,
|
|
1245
|
+
`,mr=t.div`
|
|
1249
1246
|
position: absolute;
|
|
1250
1247
|
top: 0px;
|
|
1251
1248
|
left: ${({checked:e})=>e?"12px":"0px"};
|
|
@@ -1255,7 +1252,7 @@
|
|
|
1255
1252
|
border-radius: 50%;
|
|
1256
1253
|
box-shadow: 0 1px 3px var(--black-300);
|
|
1257
1254
|
transition: all 0.2s ease;
|
|
1258
|
-
`,
|
|
1255
|
+
`,Cr=t.span`
|
|
1259
1256
|
font-size: 16px;
|
|
1260
1257
|
font-style: normal;
|
|
1261
1258
|
font-weight: 400;
|
|
@@ -1263,7 +1260,7 @@
|
|
|
1263
1260
|
user-select: none;
|
|
1264
1261
|
pointer-events: none;
|
|
1265
1262
|
color: var(--grey-500);
|
|
1266
|
-
`,
|
|
1263
|
+
`,br=({checked:t=!1,onChange:o,disabled:i=!1,label:n,className:a})=>{const[l,s]=r.useState(t);return e.jsxs(gr,{disabled:i,className:a,onClick:()=>{if(i)return;const e=!l;s(e),o?.(e)},children:[e.jsx(fr,{checked:l,disabled:i,children:e.jsx(mr,{checked:l})}),n&&e.jsx(Cr,{children:n})]})},vr=t.div`
|
|
1267
1264
|
display: flex;
|
|
1268
1265
|
align-items: center;
|
|
1269
1266
|
justify-content: space-between;
|
|
@@ -1273,18 +1270,18 @@
|
|
|
1273
1270
|
box-sizing: border-box;
|
|
1274
1271
|
border-bottom: 1px solid var(--grey-200);
|
|
1275
1272
|
background-color: var(--white-900);
|
|
1276
|
-
`,
|
|
1273
|
+
`,wr=t.div`
|
|
1277
1274
|
color: var(--black-900);
|
|
1278
1275
|
font-family: "Inter", sans-serif;
|
|
1279
1276
|
font-size: 18px;
|
|
1280
1277
|
font-style: normal;
|
|
1281
1278
|
font-weight: 500;
|
|
1282
1279
|
line-height: 28px;
|
|
1283
|
-
`,
|
|
1280
|
+
`,yr=t.div`
|
|
1284
1281
|
display: flex;
|
|
1285
1282
|
align-items: center;
|
|
1286
1283
|
gap: 12px;
|
|
1287
|
-
`,
|
|
1284
|
+
`,kr=t.div`
|
|
1288
1285
|
display: flex;
|
|
1289
1286
|
align-items: center;
|
|
1290
1287
|
gap: 12px;
|
|
@@ -1294,7 +1291,7 @@
|
|
|
1294
1291
|
&:hover {
|
|
1295
1292
|
background-color: var(--grey-100);
|
|
1296
1293
|
}
|
|
1297
|
-
`,
|
|
1294
|
+
`,jr=t.div`
|
|
1298
1295
|
width: 32px;
|
|
1299
1296
|
height: 32px;
|
|
1300
1297
|
border-radius: 50%;
|
|
@@ -1309,25 +1306,25 @@
|
|
|
1309
1306
|
font-weight: 500;
|
|
1310
1307
|
font-size: 14px;
|
|
1311
1308
|
font-family: "Inter", sans-serif;
|
|
1312
|
-
`,
|
|
1309
|
+
`,Mr=t.div`
|
|
1313
1310
|
font-family: "Inter", sans-serif;
|
|
1314
1311
|
color: var(--grey-400);
|
|
1315
1312
|
font-size: 16px;
|
|
1316
1313
|
font-style: normal;
|
|
1317
1314
|
font-weight: 400;
|
|
1318
1315
|
line-height: 24px;
|
|
1319
|
-
`,
|
|
1316
|
+
`,Lr=t(f)`
|
|
1320
1317
|
width: 32px;
|
|
1321
1318
|
height: 32px;
|
|
1322
1319
|
padding: 0;
|
|
1323
1320
|
min-height: 0;
|
|
1324
1321
|
border-radius: 4px;
|
|
1325
|
-
`,
|
|
1322
|
+
`,Ir=t.div`
|
|
1326
1323
|
height: 20px;
|
|
1327
1324
|
width: 1px;
|
|
1328
1325
|
background-color: var(--grey-200);
|
|
1329
1326
|
margin: 0;
|
|
1330
|
-
`,
|
|
1327
|
+
`,Er=({hostname:t,userProfile:r,onHomeClick:o,onSettingsClick:i,onUserProfileClick:n})=>{return e.jsxs(vr,{children:[e.jsx(wr,{children:t}),e.jsxs(yr,{children:[e.jsx(Lr,{variant:"tertiary",size:"small",onClick:o,"aria-label":"Home",children:e.jsx(xe,{name:exports.IconName.HOME,width:"20",height:"20",fill:"var(--grey-600)"})}),e.jsx(Lr,{variant:"tertiary",size:"small",onClick:i,"aria-label":"Settings",children:e.jsx(xe,{name:exports.IconName.GEAR,width:"20",height:"20",fill:"var(--grey-600)"})}),e.jsx(Ir,{}),e.jsxs(kr,{onClick:n,children:[e.jsx(jr,{src:r.avatar,children:!r.avatar&&(a=r.name,a.split(" ").map(e=>e.charAt(0)).join("").toUpperCase().substring(0,2))}),e.jsx(Mr,{children:r.name})]})]})]});var a},Nr=t.div`
|
|
1331
1328
|
position: fixed;
|
|
1332
1329
|
top: 0;
|
|
1333
1330
|
left: 0;
|
|
@@ -1338,7 +1335,7 @@
|
|
|
1338
1335
|
display: flex;
|
|
1339
1336
|
align-items: center;
|
|
1340
1337
|
justify-content: center;
|
|
1341
|
-
`,
|
|
1338
|
+
`,Ar=t.div`
|
|
1342
1339
|
background: var(--white-900);
|
|
1343
1340
|
border-radius: 20px;
|
|
1344
1341
|
box-shadow: 0 2px 16px var(--black-100);
|
|
@@ -1348,24 +1345,24 @@
|
|
|
1348
1345
|
padding: 0;
|
|
1349
1346
|
display: flex;
|
|
1350
1347
|
flex-direction: column;
|
|
1351
|
-
|
|
1348
|
+
`,$r=t.div`
|
|
1352
1349
|
display: flex;
|
|
1353
1350
|
align-items: center;
|
|
1354
1351
|
justify-content: space-between;
|
|
1355
1352
|
padding: 20px 24px 0 24px;
|
|
1356
|
-
|
|
1353
|
+
`,Rr=t.div`
|
|
1357
1354
|
display: flex;
|
|
1358
1355
|
align-items: center;
|
|
1359
1356
|
gap: 8px;
|
|
1360
|
-
`,
|
|
1357
|
+
`,_r=t.span`
|
|
1361
1358
|
font-weight: 600;
|
|
1362
1359
|
font-size: 20px;
|
|
1363
|
-
`,
|
|
1360
|
+
`,zr=t.button`
|
|
1364
1361
|
background: none;
|
|
1365
1362
|
border: none;
|
|
1366
1363
|
font-size: 20px;
|
|
1367
1364
|
cursor: pointer;
|
|
1368
|
-
`,
|
|
1365
|
+
`,Br=t.div`
|
|
1369
1366
|
padding: 24px;
|
|
1370
1367
|
|
|
1371
1368
|
color: var(--black-900);
|
|
@@ -1374,7 +1371,7 @@
|
|
|
1374
1371
|
font-style: normal;
|
|
1375
1372
|
font-weight: 400;
|
|
1376
1373
|
line-height: 20px;
|
|
1377
|
-
`,
|
|
1374
|
+
`,Tr=t.div`
|
|
1378
1375
|
margin: 0 24px;
|
|
1379
1376
|
background: var(--blue-900);
|
|
1380
1377
|
color: var(--white-900);
|
|
@@ -1384,7 +1381,7 @@
|
|
|
1384
1381
|
font-weight: 500;
|
|
1385
1382
|
word-break: break-word;
|
|
1386
1383
|
box-shadow: 0 1px 4px var(--black-50);
|
|
1387
|
-
`,
|
|
1384
|
+
`,Hr=t.textarea`
|
|
1388
1385
|
width: 100%;
|
|
1389
1386
|
min-height: 48px;
|
|
1390
1387
|
background: transparent;
|
|
@@ -1400,17 +1397,17 @@
|
|
|
1400
1397
|
padding: 16px 20px;
|
|
1401
1398
|
border-radius: 12px;
|
|
1402
1399
|
box-sizing: border-box;
|
|
1403
|
-
`,
|
|
1400
|
+
`,Sr=t.div`
|
|
1404
1401
|
padding: 24px;
|
|
1405
1402
|
padding-bottom: 0;
|
|
1406
1403
|
flex: 1;
|
|
1407
|
-
`,
|
|
1404
|
+
`,Pr=t.div`
|
|
1408
1405
|
border-radius: 20px;
|
|
1409
1406
|
overflow: hidden;
|
|
1410
1407
|
background: var(--blue-900);
|
|
1411
1408
|
min-height: 200px;
|
|
1412
1409
|
position: relative;
|
|
1413
|
-
`,
|
|
1410
|
+
`,Or=t.div`
|
|
1414
1411
|
display: flex;
|
|
1415
1412
|
align-items: center;
|
|
1416
1413
|
gap: 12px;
|
|
@@ -1419,36 +1416,36 @@
|
|
|
1419
1416
|
background: var(--white-900);
|
|
1420
1417
|
border-bottom-left-radius: 20px;
|
|
1421
1418
|
border-bottom-right-radius: 20px;
|
|
1422
|
-
`,
|
|
1419
|
+
`,Vr=t(f)`
|
|
1423
1420
|
min-width: 100px;
|
|
1424
1421
|
display: flex;
|
|
1425
1422
|
align-items: center;
|
|
1426
1423
|
gap: 6px;
|
|
1427
|
-
`,
|
|
1424
|
+
`,Dr=t.div`
|
|
1428
1425
|
display: flex;
|
|
1429
|
-
flex-direction: ${e=>e
|
|
1426
|
+
flex-direction: ${e=>e.$vertical?"column":"row"};
|
|
1430
1427
|
border-radius: 6px;
|
|
1431
1428
|
overflow: hidden;
|
|
1432
1429
|
border: 1px solid var(--grey-200);
|
|
1433
1430
|
|
|
1434
1431
|
& > *:not(:last-child) {
|
|
1435
|
-
${e=>e
|
|
1432
|
+
${e=>e.$vertical?"border-bottom: 1px solid var(--grey-200);":"border-right: 1px solid var(--grey-200);"}
|
|
1436
1433
|
}
|
|
1437
1434
|
|
|
1438
|
-
${e=>e
|
|
1439
|
-
`,
|
|
1435
|
+
${e=>e.$vertical&&"\n width: 40px;\n "}
|
|
1436
|
+
`,Ur=t.div`
|
|
1440
1437
|
&:first-child {
|
|
1441
1438
|
button {
|
|
1442
|
-
${e=>e
|
|
1439
|
+
${e=>e.$vertical?"border-top-right-radius: 6px;border-top-left-radius: 6px;":"border-top-left-radius: 6px;border-bottom-left-radius: 6px;"}
|
|
1443
1440
|
}
|
|
1444
1441
|
}
|
|
1445
1442
|
|
|
1446
1443
|
&:last-child {
|
|
1447
1444
|
button {
|
|
1448
|
-
${e=>e
|
|
1445
|
+
${e=>e.$vertical?"border-bottom-right-radius: 6px;border-bottom-left-radius: 6px;":"border-top-right-radius: 6px;border-bottom-right-radius: 6px;"}
|
|
1449
1446
|
}
|
|
1450
1447
|
}
|
|
1451
|
-
`,
|
|
1448
|
+
`,Gr=t.div`
|
|
1452
1449
|
padding: 20px 16px;
|
|
1453
1450
|
border-radius: 8px;
|
|
1454
1451
|
background-color: ${e=>(e=>{switch(e){case"active":return"var(--blue-100)";case"hover":return"var(--grey-100)";default:return"transparent"}})(e.status)};
|
|
@@ -1460,14 +1457,14 @@
|
|
|
1460
1457
|
background-color: var(--grey-100);
|
|
1461
1458
|
}
|
|
1462
1459
|
`}
|
|
1463
|
-
`,
|
|
1460
|
+
`,Zr=t.h3`
|
|
1464
1461
|
margin: 0 0 4px 0;
|
|
1465
1462
|
font-family: "Inter", sans-serif;
|
|
1466
1463
|
font-size: 16px;
|
|
1467
1464
|
font-weight: 600;
|
|
1468
1465
|
line-height: 24px;
|
|
1469
1466
|
color: ${e=>"disabled"===e.status?"var(--grey-400)":"var(--black-900)"};
|
|
1470
|
-
`,
|
|
1467
|
+
`,Wr=t.p`
|
|
1471
1468
|
margin: 0 0 16px 0;
|
|
1472
1469
|
font-family: "Inter", sans-serif;
|
|
1473
1470
|
font-size: 13px;
|
|
@@ -1476,13 +1473,13 @@
|
|
|
1476
1473
|
line-height: 18px;
|
|
1477
1474
|
line-height: 20px;
|
|
1478
1475
|
color: ${e=>(e.status,"var(--grey-400)")};
|
|
1479
|
-
`,
|
|
1476
|
+
`,Kr=t.div`
|
|
1480
1477
|
display: flex;
|
|
1481
1478
|
align-items: center;
|
|
1482
1479
|
gap: 16px;
|
|
1483
|
-
`,
|
|
1480
|
+
`,Yr=t(f)`
|
|
1484
1481
|
flex-shrink: 0;
|
|
1485
|
-
`,
|
|
1482
|
+
`,Fr=t.a`
|
|
1486
1483
|
font-family: "Inter", sans-serif;
|
|
1487
1484
|
font-size: 13px;
|
|
1488
1485
|
font-style: normal;
|
|
@@ -1495,32 +1492,36 @@
|
|
|
1495
1492
|
&:hover {
|
|
1496
1493
|
text-decoration: ${e=>"disabled"===e.status?"none":"underline"};
|
|
1497
1494
|
}
|
|
1498
|
-
`,
|
|
1495
|
+
`,Xr=r.forwardRef(({title:t,description:r,buttonText:o,linkText:i,status:n="default",onButtonClick:a,onLinkClick:l,className:s},c)=>e.jsxs(Gr,{ref:c,status:n,className:s,children:[e.jsx(Zr,{status:n,children:t}),r&&e.jsx(Wr,{status:n,children:r}),e.jsxs(Kr,{children:[o&&e.jsx(Yr,{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(Fr,{status:n,onClick:e=>{e.stopPropagation(),"disabled"!==n&&l&&l()},href:"disabled"===n?void 0:"#",children:i})]})]}));Xr.displayName="CardSidebar";const qr=t.div`
|
|
1499
1496
|
display: flex;
|
|
1500
1497
|
align-items: center;
|
|
1501
1498
|
flex-direction: row;
|
|
1502
1499
|
gap: 16px;
|
|
1503
1500
|
flex-wrap: wrap;
|
|
1504
1501
|
width: 100%;
|
|
1505
|
-
`,
|
|
1502
|
+
`,Qr=t.div`
|
|
1506
1503
|
margin: 16px 0;
|
|
1507
|
-
`,
|
|
1504
|
+
`,Jr=t.span`
|
|
1508
1505
|
font-size: 12px;
|
|
1509
1506
|
color: var(--grey-400);
|
|
1510
|
-
`,
|
|
1507
|
+
`,eo=t.div`
|
|
1508
|
+
& > button {
|
|
1509
|
+
height: 38px;
|
|
1510
|
+
}
|
|
1511
|
+
`,to=t.div`
|
|
1511
1512
|
display: flex;
|
|
1512
1513
|
flex-direction: column;
|
|
1513
1514
|
gap: 6px;
|
|
1514
1515
|
width: 100%;
|
|
1515
|
-
`,
|
|
1516
|
+
`,ro=t(ht)`
|
|
1516
1517
|
margin-bottom: 2px;
|
|
1517
|
-
`,
|
|
1518
|
+
`,oo=r.forwardRef(({label:t,infoText:r,supportiveText:o,showSupportiveCheck:i=!1,className:n,...a},l)=>e.jsxs(to,{className:n,children:[e.jsx(ro,{infoText:r,children:t}),e.jsx(at,{ref:l,...a}),o&&e.jsx(Vt,{showCheck:i,children:o})]}));oo.displayName="FormField";const io=t.div``,no=t.div`
|
|
1518
1519
|
display: flex;
|
|
1519
1520
|
align-items: center;
|
|
1520
1521
|
justify-content: space-between;
|
|
1521
1522
|
margin-bottom: 16px;
|
|
1522
1523
|
background-color: var(--grey-100);
|
|
1523
|
-
`,
|
|
1524
|
+
`,ao=t.h1`
|
|
1524
1525
|
color: var(--black-900);
|
|
1525
1526
|
font-family: "Inter", sans-serif;
|
|
1526
1527
|
font-size: 18px;
|
|
@@ -1528,23 +1529,23 @@
|
|
|
1528
1529
|
font-weight: 600;
|
|
1529
1530
|
line-height: 28px;
|
|
1530
1531
|
margin: 0;
|
|
1531
|
-
`,
|
|
1532
|
+
`,lo=t.div`
|
|
1532
1533
|
display: flex;
|
|
1533
1534
|
align-items: center;
|
|
1534
1535
|
gap: 16px;
|
|
1535
|
-
`,
|
|
1536
|
+
`,so=t.div`
|
|
1536
1537
|
display: flex;
|
|
1537
1538
|
align-items: center;
|
|
1538
|
-
`,
|
|
1539
|
+
`,co=t.div`
|
|
1539
1540
|
width: 1px;
|
|
1540
1541
|
height: 20px;
|
|
1541
1542
|
background-color: var(--grey-200);
|
|
1542
|
-
`,
|
|
1543
|
+
`,ho=t.div`
|
|
1543
1544
|
position: relative;
|
|
1544
1545
|
width: 100%;
|
|
1545
1546
|
max-width: 100%;
|
|
1546
1547
|
margin-bottom: 16px;
|
|
1547
|
-
`,
|
|
1548
|
+
`,po=({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[l,s]=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(io,{children:[e.jsxs(no,{children:[e.jsx(ao,{children:"Launch"}),e.jsxs(lo,{children:[e.jsx(br,{checked:c,onChange:d,label:"Overwrite Mode",disabled:h}),e.jsx(co,{}),e.jsx(so,{children:e.jsx(Pe,{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(ho,{children:e.jsx(ur,{type:"info",heading:"Building Protocol: Status=IN_PROGRESS, Phase=FINALIZING"})}),g&&e.jsx(ho,{children:e.jsx(ur,{type:"success",heading:`Pipeline visual-pipeline-builder-protocol-${n}-pipeline deployed successfully! Deployment complete`})}),C&&e.jsx(ho,{children:e.jsx(ur,{type:"danger",heading:`Failed to deploy pipeline visual-pipeline-builder-protocol-${n}-pipeline. Please try again.`})}),e.jsx(Ae,{value:l,onChange:e=>{void 0!==e&&s(e)},language:"yaml",theme:"light",width:"100%",onCopy:e=>{navigator.clipboard.writeText(e)},onLaunch:e=>{console.log("Launching code:",e)},disabled:!c})]})},xo=t.div`
|
|
1548
1549
|
width: 100%;
|
|
1549
1550
|
border-radius: 8px;
|
|
1550
1551
|
overflow: hidden;
|
|
@@ -1552,7 +1553,7 @@
|
|
|
1552
1553
|
0px 2px 4px -2px var(--black-100);
|
|
1553
1554
|
background-color: var(--white-900);
|
|
1554
1555
|
border: 1px solid var(--grey-200);
|
|
1555
|
-
`,
|
|
1556
|
+
`,uo=t.div`
|
|
1556
1557
|
padding: 8px 16px;
|
|
1557
1558
|
font-family: "Inter", sans-serif;
|
|
1558
1559
|
font-size: 12px;
|
|
@@ -1561,10 +1562,10 @@
|
|
|
1561
1562
|
line-height: 16px;
|
|
1562
1563
|
color: var(--grey-600);
|
|
1563
1564
|
border-bottom: 1px solid var(--grey-200);
|
|
1564
|
-
`,
|
|
1565
|
+
`,go=t.div`
|
|
1565
1566
|
display: flex;
|
|
1566
1567
|
flex-direction: column;
|
|
1567
|
-
`,
|
|
1568
|
+
`,fo=t.div`
|
|
1568
1569
|
display: flex;
|
|
1569
1570
|
align-items: center;
|
|
1570
1571
|
background-color: var(--blue-900);
|
|
@@ -1574,11 +1575,11 @@
|
|
|
1574
1575
|
box-sizing: border-box;
|
|
1575
1576
|
color: var(--white-900);
|
|
1576
1577
|
gap: 40px;
|
|
1577
|
-
`,
|
|
1578
|
+
`,mo=t.div`
|
|
1578
1579
|
display: flex;
|
|
1579
1580
|
align-items: center;
|
|
1580
1581
|
height: 100%;
|
|
1581
|
-
`,
|
|
1582
|
+
`,Co=t.div`
|
|
1582
1583
|
text-transform: uppercase;
|
|
1583
1584
|
margin-bottom: 2px;
|
|
1584
1585
|
color: var(--white-900);
|
|
@@ -1588,49 +1589,49 @@
|
|
|
1588
1589
|
line-height: 16px;
|
|
1589
1590
|
letter-spacing: 0.2px;
|
|
1590
1591
|
font-family: "Inter", sans-serif;
|
|
1591
|
-
`,
|
|
1592
|
+
`,bo=t.div`
|
|
1592
1593
|
font-size: 14px;
|
|
1593
1594
|
font-style: normal;
|
|
1594
1595
|
font-weight: 500;
|
|
1595
1596
|
line-height: 22px;
|
|
1596
1597
|
font-family: "Inter", sans-serif;
|
|
1597
|
-
`,
|
|
1598
|
+
`,vo=t.div`
|
|
1598
1599
|
color: var(--grey-400);
|
|
1599
1600
|
font-size: 12px;
|
|
1600
1601
|
font-style: italic;
|
|
1601
1602
|
font-weight: 500;
|
|
1602
1603
|
line-height: 16px;
|
|
1603
1604
|
font-family: "Inter", sans-serif;
|
|
1604
|
-
`,
|
|
1605
|
+
`,wo=t.div`
|
|
1605
1606
|
display: flex;
|
|
1606
1607
|
flex-direction: column;
|
|
1607
|
-
`,
|
|
1608
|
+
`,yo=t.div`
|
|
1608
1609
|
display: flex;
|
|
1609
1610
|
align-items: center;
|
|
1610
1611
|
justify-content: center;
|
|
1611
|
-
`,
|
|
1612
|
+
`,ko=t.div`
|
|
1612
1613
|
display: flex;
|
|
1613
1614
|
align-items: center;
|
|
1614
1615
|
padding: 6px 0;
|
|
1615
1616
|
border-radius: 4px;
|
|
1616
1617
|
gap: 8px;
|
|
1617
|
-
`,
|
|
1618
|
+
`,jo=t.div`
|
|
1618
1619
|
font-family: "Inter", sans-serif;
|
|
1619
1620
|
color: var(--grey-400);
|
|
1620
1621
|
font-size: 14px;
|
|
1621
1622
|
font-style: normal;
|
|
1622
1623
|
font-weight: 500;
|
|
1623
1624
|
line-height: 22px;
|
|
1624
|
-
`,
|
|
1625
|
+
`,Mo=t.div`
|
|
1625
1626
|
display: flex;
|
|
1626
1627
|
align-items: center;
|
|
1627
1628
|
justify-content: center;
|
|
1628
|
-
`,
|
|
1629
|
+
`,Lo=t.div`
|
|
1629
1630
|
display: flex;
|
|
1630
1631
|
align-items: center;
|
|
1631
1632
|
gap: 8px;
|
|
1632
1633
|
width: 320px;
|
|
1633
|
-
`,
|
|
1634
|
+
`,Io=()=>e.jsx("div",{style:{borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx(xe,{name:exports.IconName.BUILDING,fill:"var(--white-900)",width:"20",height:"20"})}),Eo=()=>e.jsx(xe,{name:exports.IconName.LAMP,fill:"var(--white-900)",width:"20",height:"20"}),No=({organization:t})=>e.jsxs(fo,{children:[e.jsx(mo,{children:e.jsxs(wo,{children:[e.jsx(Co,{children:"ORGANIZATION"}),e.jsxs(Lo,{children:[e.jsx(yo,{children:t.logo||e.jsx(Io,{})}),e.jsxs("div",{children:[e.jsx(bo,{children:t.name}),t.subtext&&e.jsx(vo,{children:t.subtext})]})]})]})}),e.jsx(mo,{children:e.jsxs(wo,{children:[e.jsx(Co,{children:"PROJECT"}),e.jsxs(ko,{children:[e.jsx(Mo,{children:e.jsx(Eo,{})}),e.jsx(jo,{children:"Not Selected"})]})]})})]}),Ao=t.div`
|
|
1634
1635
|
display: flex;
|
|
1635
1636
|
align-items: center;
|
|
1636
1637
|
justify-content: space-between;
|
|
@@ -1638,50 +1639,50 @@
|
|
|
1638
1639
|
padding: 0 0 24px;
|
|
1639
1640
|
border-top-left-radius: 24px;
|
|
1640
1641
|
border-top-right-radius: 24px;
|
|
1641
|
-
|
|
1642
|
+
`,$o=t.h2`
|
|
1642
1643
|
color: var(--blue-900);
|
|
1643
1644
|
font-family: "Inter", sans-serif;
|
|
1644
1645
|
font-size: 20px;
|
|
1645
1646
|
font-weight: 600;
|
|
1646
1647
|
line-height: 28px;
|
|
1647
1648
|
margin: 0;
|
|
1648
|
-
`,
|
|
1649
|
+
`,Ro=t.div`
|
|
1649
1650
|
display: flex;
|
|
1650
1651
|
align-items: center;
|
|
1651
1652
|
gap: 8px;
|
|
1652
1653
|
color: var(--grey-600);
|
|
1653
1654
|
font-size: 15px;
|
|
1654
1655
|
font-weight: 500;
|
|
1655
|
-
|
|
1656
|
+
`,_o=t.div`
|
|
1656
1657
|
background-color: var(--white-900);
|
|
1657
1658
|
border-radius: 24px;
|
|
1658
1659
|
border: 1px solid var(--grey-200);
|
|
1659
1660
|
width: 100%;
|
|
1660
|
-
`,
|
|
1661
|
+
`,zo=t.div`
|
|
1661
1662
|
display: flex;
|
|
1662
1663
|
align-items: center;
|
|
1663
1664
|
border-bottom: 1px solid var(--grey-200);
|
|
1664
1665
|
padding-bottom: 16px;
|
|
1665
1666
|
padding: 12px 24px;
|
|
1666
|
-
`,
|
|
1667
|
+
`,Bo=t.h3`
|
|
1667
1668
|
color: var(--blue-900);
|
|
1668
1669
|
font-family: "Inter", sans-serif;
|
|
1669
1670
|
font-size: 20px;
|
|
1670
1671
|
font-weight: 600;
|
|
1671
1672
|
line-height: 28px;
|
|
1672
1673
|
margin: 0;
|
|
1673
|
-
`,
|
|
1674
|
+
`,To=t.div`
|
|
1674
1675
|
padding: 20px 24px 36px 24px;
|
|
1675
|
-
`,
|
|
1676
|
+
`,Ho=t.div`
|
|
1676
1677
|
display: flex;
|
|
1677
1678
|
flex-direction: column;
|
|
1678
1679
|
align-items: flex-start;
|
|
1679
1680
|
gap: 16px;
|
|
1680
|
-
`,
|
|
1681
|
+
`,So=t.div`
|
|
1681
1682
|
color: var(--grey-400);
|
|
1682
1683
|
font-size: 14px;
|
|
1683
1684
|
font-weight: 500;
|
|
1684
|
-
`,
|
|
1685
|
+
`,Po=({className:t})=>{const[o,i]=r.useState(!1);return e.jsxs("div",{className:t,children:[e.jsxs(Ao,{children:[e.jsx($o,{children:"Protocol Configuration"}),e.jsx(Ro,{children:e.jsx(br,{label:"Edit Mode",checked:o,onChange:()=>i(e=>!e)})})]}),e.jsxs(_o,{children:[e.jsx(zo,{children:e.jsx(Bo,{children:"Configuration"})}),e.jsx(To,{children:o?e.jsx(f,{variant:"secondary",size:"medium",leftIcon:e.jsx(xe,{name:exports.IconName.PLUS,width:"20",height:"20",fill:"var(--blue-600)"}),children:"Add Input"}):e.jsx(Ho,{children:e.jsx(So,{children:"No values, Use the 'edit' button to add values"})})})]})]})},Oo=t.div`
|
|
1685
1686
|
display: flex;
|
|
1686
1687
|
flex-direction: column;
|
|
1687
1688
|
align-items: flex-start;
|
|
@@ -1689,44 +1690,44 @@
|
|
|
1689
1690
|
gap: 16px;
|
|
1690
1691
|
width: 928px;
|
|
1691
1692
|
background: transparent;
|
|
1692
|
-
`,
|
|
1693
|
+
`,Vo=t.div`
|
|
1693
1694
|
display: flex;
|
|
1694
1695
|
flex-direction: row;
|
|
1695
1696
|
justify-content: space-between;
|
|
1696
1697
|
align-items: center;
|
|
1697
1698
|
width: 928px;
|
|
1698
1699
|
height: 36px;
|
|
1699
|
-
`,
|
|
1700
|
+
`,Do=t.span`
|
|
1700
1701
|
font-family: "Inter", sans-serif;
|
|
1701
1702
|
font-weight: 600;
|
|
1702
1703
|
font-size: 18px;
|
|
1703
1704
|
line-height: 28px;
|
|
1704
1705
|
color: var(--black-900);
|
|
1705
|
-
`,
|
|
1706
|
+
`,Uo=t.div`
|
|
1706
1707
|
display: flex;
|
|
1707
1708
|
flex-direction: row;
|
|
1708
1709
|
align-items: center;
|
|
1709
1710
|
gap: 16px;
|
|
1710
1711
|
justify-content: flex-end;
|
|
1711
|
-
`,
|
|
1712
|
+
`,Go=t.div`
|
|
1712
1713
|
width: 1px;
|
|
1713
1714
|
height: 20px;
|
|
1714
1715
|
background: var(--grey-200);
|
|
1715
|
-
`,
|
|
1716
|
+
`,Zo=t.div`
|
|
1716
1717
|
width: 100%;
|
|
1717
|
-
`,
|
|
1718
|
+
`,Wo=t(br)`
|
|
1718
1719
|
min-width: 176px;
|
|
1719
|
-
`,
|
|
1720
|
+
`,Ko=t(Pe)``,Yo=t.div`
|
|
1720
1721
|
padding: 12px 0;
|
|
1721
1722
|
flex: 1;
|
|
1722
|
-
`,
|
|
1723
|
+
`,Fo=t.div`
|
|
1723
1724
|
display: flex;
|
|
1724
1725
|
flex-direction: column;
|
|
1725
1726
|
gap: 6px;
|
|
1726
1727
|
width: 100%;
|
|
1727
|
-
`,
|
|
1728
|
+
`,Xo=t(ht)`
|
|
1728
1729
|
margin-bottom: 2px;
|
|
1729
|
-
`,
|
|
1730
|
+
`,qo=r.forwardRef(({label:t,infoText:r,supportiveText:o,showSupportiveCheck:i=!1,className:n,...a},l)=>e.jsxs(Fo,{className:n,ref:l,children:[e.jsx(Xo,{infoText:r,children:t}),e.jsx(Pe,{...a}),o&&e.jsx(Vt,{showCheck:i,children:o})]}));qo.displayName="SelectField";const Qo=t.div`
|
|
1730
1731
|
width: 104px;
|
|
1731
1732
|
height: 100%;
|
|
1732
1733
|
background-color: var(--blue-900);
|
|
@@ -1734,7 +1735,7 @@
|
|
|
1734
1735
|
flex-direction: column;
|
|
1735
1736
|
align-items: center;
|
|
1736
1737
|
padding: 0;
|
|
1737
|
-
`,
|
|
1738
|
+
`,Jo=t.div`
|
|
1738
1739
|
width: 100%;
|
|
1739
1740
|
display: inline-flex;
|
|
1740
1741
|
flex-direction: column;
|
|
@@ -1742,18 +1743,18 @@
|
|
|
1742
1743
|
padding: 12px 0;
|
|
1743
1744
|
cursor: pointer;
|
|
1744
1745
|
transition: background-color 0.2s ease;
|
|
1745
|
-
background-color: ${e=>e
|
|
1746
|
+
background-color: ${e=>e.$active?"var(--white-100)":"transparent"};
|
|
1746
1747
|
|
|
1747
1748
|
&:hover {
|
|
1748
1749
|
background-color: var(--white-50);
|
|
1749
1750
|
}
|
|
1750
|
-
`,
|
|
1751
|
+
`,ei=t.div`
|
|
1751
1752
|
display: flex;
|
|
1752
1753
|
justify-content: center;
|
|
1753
1754
|
align-items: center;
|
|
1754
1755
|
margin-bottom: 10px;
|
|
1755
1756
|
color: var(--white-900);
|
|
1756
|
-
`,
|
|
1757
|
+
`,ti=t.div`
|
|
1757
1758
|
color: var(--white-900);
|
|
1758
1759
|
text-align: center;
|
|
1759
1760
|
font-family: "Inter", sans-serif;
|
|
@@ -1763,29 +1764,29 @@
|
|
|
1763
1764
|
line-height: 16px;
|
|
1764
1765
|
text-align: center;
|
|
1765
1766
|
padding: 0 8px;
|
|
1766
|
-
`,
|
|
1767
|
+
`,ri=({icon:t,label:r,active:o,onClick:i})=>e.jsxs(Jo,{$active:o,onClick:i,children:[e.jsx(ei,{children:e.jsx(xe,{name:t,fill:"var(--white-900)",width:"20",height:"20"})}),e.jsx(ti,{children:r})]}),oi=({items:t,activeItem:r,onItemClick:o})=>e.jsx(Qo,{children:t.map(t=>e.jsx(ri,{icon:t.icon,label:t.label,active:r===t.label,onClick:()=>{return e=t.label,void(o&&o(e));var e}},t.label))}),ii=t.div`
|
|
1767
1768
|
width: 100%;
|
|
1768
1769
|
border: 1px solid var(--grey-200);
|
|
1769
1770
|
border-radius: 8px;
|
|
1770
1771
|
overflow: visible;
|
|
1771
1772
|
background-color: var(--white-900);
|
|
1772
|
-
`,
|
|
1773
|
+
`,ni=t.table`
|
|
1773
1774
|
width: 100%;
|
|
1774
1775
|
border-collapse: collapse;
|
|
1775
1776
|
border-spacing: 0;
|
|
1776
|
-
`,
|
|
1777
|
-
cursor: ${e=>e
|
|
1777
|
+
`,ai=t.tbody``,li=t.tr`
|
|
1778
|
+
cursor: ${e=>e.$selectable?"pointer":"default"};
|
|
1778
1779
|
|
|
1779
1780
|
&:hover {
|
|
1780
|
-
background-color: ${e=>e
|
|
1781
|
+
background-color: ${e=>e.$selectable?"var(--grey-50)":"transparent"};
|
|
1781
1782
|
}
|
|
1782
|
-
`,
|
|
1783
|
+
`,si=t(Wt)`
|
|
1783
1784
|
width: 40px;
|
|
1784
1785
|
padding: 10px 12px;
|
|
1785
|
-
`,
|
|
1786
|
+
`,ci=t(Qt)`
|
|
1786
1787
|
width: 40px;
|
|
1787
1788
|
padding: 8px 12px;
|
|
1788
|
-
`,
|
|
1789
|
+
`,di=t.div`
|
|
1789
1790
|
display: flex;
|
|
1790
1791
|
align-items: center;
|
|
1791
1792
|
justify-content: center;
|
|
@@ -1794,7 +1795,7 @@
|
|
|
1794
1795
|
height: 40px;
|
|
1795
1796
|
background-color: var(--grey-50);
|
|
1796
1797
|
border-top: 1px solid var(--grey-200);
|
|
1797
|
-
`,
|
|
1798
|
+
`,hi=t.button`
|
|
1798
1799
|
display: flex;
|
|
1799
1800
|
align-items: center;
|
|
1800
1801
|
justify-content: center;
|
|
@@ -1815,11 +1816,11 @@
|
|
|
1815
1816
|
width: 20px;
|
|
1816
1817
|
height: 20px;
|
|
1817
1818
|
}
|
|
1818
|
-
`,
|
|
1819
|
+
`,pi=t.div`
|
|
1819
1820
|
display: flex;
|
|
1820
1821
|
align-items: center;
|
|
1821
1822
|
gap: 0;
|
|
1822
|
-
`,
|
|
1823
|
+
`,xi=t.button`
|
|
1823
1824
|
display: flex;
|
|
1824
1825
|
align-items: center;
|
|
1825
1826
|
justify-content: center;
|
|
@@ -1828,7 +1829,7 @@
|
|
|
1828
1829
|
padding: 0;
|
|
1829
1830
|
border: none;
|
|
1830
1831
|
border-radius: 6px;
|
|
1831
|
-
background-color: ${e=>e
|
|
1832
|
+
background-color: ${e=>e.$active?"var(--grey-100)":"transparent"};
|
|
1832
1833
|
font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
1833
1834
|
font-size: 13px;
|
|
1834
1835
|
font-weight: 500;
|
|
@@ -1839,7 +1840,7 @@
|
|
|
1839
1840
|
&:hover:not(:disabled) {
|
|
1840
1841
|
background-color: var(--grey-100);
|
|
1841
1842
|
}
|
|
1842
|
-
`;function
|
|
1843
|
+
`;function ui({columns:t,data:o,pageSize:i=10,rowKey:n,selectable:a=!1,onRowSelect:l,sortKey:s,sortDirection:c,onSort:d,currentPage:h,onPageChange:p,selectedRows:x,className:u}){const[g,f]=r.useState(null),[m,C]=r.useState(null),[b,v]=r.useState(1),[w,y]=r.useState([]),[k,j]=r.useState({}),M=void 0!==s,L=void 0!==h,I=void 0!==x,E=M?s:g,N=M?c:m,A=L?h:b,$=I?x:w,R=r.useMemo(()=>{let e=[...o];return Object.entries(k).forEach(([t,r])=>{r&&(e=e.filter(e=>{const o=e[t];return o?.toString()===r}))}),e},[o,k]),_=r.useMemo(()=>E&&N?[...R].sort((e,t)=>{const r=e[E],o=t[E];if(r===o)return 0;let i=0;return i="number"==typeof r&&"number"==typeof o?r-o:String(r).localeCompare(String(o)),"asc"===N?i:-i}):R,[R,E,N]),z=-1===i?1:Math.ceil(_.length/i),B=r.useMemo(()=>{if(-1===i)return _;const e=(A-1)*i;return _.slice(e,e+i)},[_,A,i]);r.useEffect(()=>{L||v(1)},[k,E,N,L]);const T=e=>{L&&p?p(e):v(e)},H=(e,t)=>n?"function"==typeof n?n(e):e[n]:t,S=(e,t)=>{const r=t?[...$,e]:$.filter(t=>t!==e);I&&l||y(r),l(r)},P=e=>$.some(t=>H(t,0)===H(e,0)),O=_.length>0&&_.every(e=>P(e));return e.jsxs(ii,{className:u,children:[e.jsxs(ni,{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[a&&e.jsx(ci,{children:e.jsx(be,{checked:O,onChange:e=>{const t=e?[..._]:[];I&&l||y(t),l(t)},noPadding:!0})}),t.map(t=>e.jsx(Qt,{width:t.width,sortable:t.sortable,sortDirection:E===t.key&&N||null,onSort:t.sortable?()=>{return e=t.key,void(M&&d?d(e,E===e&&"asc"===N?"desc":"asc"):E===e?"asc"===N?C("desc"):(f(null),C(null)):(f(e),C("asc")));var e}:void 0,filterable:t.filterable,filterOptions:t.filterOptions,filterValue:k[t.key]||"",onFilterChange:t.filterable?e=>((e,t)=>{j(r=>({...r,[e]:t}))})(t.key,e):void 0,children:t.header},t.key))]})}),e.jsx(ai,{children:B.map((r,o)=>e.jsxs(li,{$selectable:a,onClick:a?()=>S(r,!P(r)):void 0,children:[a&&e.jsx(si,{children:e.jsx(be,{checked:P(r),onChange:e=>S(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(Wt,{align:t.align,children:n},t.key)})]},H(r,o)))})]}),-1!==i&&z>1&&e.jsxs(di,{children:[e.jsx(hi,{disabled:1===A,onClick:()=>T(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(pi,{children:(()=>{const e=[];if(z<=5)for(let t=1;t<=z;t++)e.push(t);else{e.push(1),A>3&&e.push("...");const t=Math.max(2,A-1),r=Math.min(z-1,A+1);for(let o=t;o<=r;o++)e.push(o);A<z-2&&e.push("..."),e.push(z)}return e})().map((t,r)=>e.jsx(xi,{$active:t===A,onClick:"number"==typeof t?()=>T(t):void 0,disabled:"number"!=typeof t,children:t},r))}),e.jsx(hi,{disabled:A===z,onClick:()=>T(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"})})})]})]})}ui.displayName="Table";const gi=t.div`
|
|
1843
1844
|
display: flex;
|
|
1844
1845
|
align-items: center;
|
|
1845
1846
|
border-bottom: 1px solid var(--grey-200);
|
|
@@ -1851,7 +1852,7 @@
|
|
|
1851
1852
|
|
|
1852
1853
|
-ms-overflow-style: none;
|
|
1853
1854
|
scrollbar-width: none;
|
|
1854
|
-
`,
|
|
1855
|
+
`,fi=({tabs:t,activeTab:o,onChange:i,disabled:n=!1,size:a="medium"})=>{const[l,s]=r.useState(o||(t.length>0?t[0].id:""));return e.jsx(gi,{children:t.map(t=>e.jsx(Gt,{label:t.label,active:o?o===t.id:l===t.id,disabled:n||t.disabled,size:t.size||a,onClick:()=>{return e=t.id,void(n||(s(e),i?.(e)));var e}},t.id))})},mi=t.div`
|
|
1855
1856
|
position: fixed;
|
|
1856
1857
|
${e=>"top"===e.position?"top: 16px;":"bottom: 16px;"}
|
|
1857
1858
|
left: 50%;
|
|
@@ -1863,7 +1864,7 @@
|
|
|
1863
1864
|
flex-direction: column;
|
|
1864
1865
|
gap: 8px;
|
|
1865
1866
|
pointer-events: none;
|
|
1866
|
-
`,
|
|
1867
|
+
`,Ci=t.div`
|
|
1867
1868
|
opacity: 0;
|
|
1868
1869
|
transform: translateY(
|
|
1869
1870
|
${e=>"top"===e.theme.position?"-10px":"10px"}
|
|
@@ -1885,52 +1886,52 @@
|
|
|
1885
1886
|
transform: translateY(0);
|
|
1886
1887
|
}
|
|
1887
1888
|
}
|
|
1888
|
-
`;r.createContext(void 0);let ji=[],Ei=[];const Li=(e,r)=>{if("undefined"!=typeof window){return getComputedStyle(document.documentElement).getPropertyValue(`--${e}`).trim()||r||""}return`var(--${e}${r?`, ${r}`:""})`},Ii={BLACK_50:Li("black-50","rgba(26, 26, 26, 0.05)"),BLACK_100:Li("black-100","rgba(26, 26, 26, 0.1)"),BLACK_200:Li("black-200","rgba(26, 26, 26, 0.2)"),BLACK_300:Li("black-300","rgba(26, 26, 26, 0.3)"),BLACK_400:Li("black-400","rgba(26, 26, 26, 0.4)"),BLACK_500:Li("black-500","rgba(26, 26, 26, 0.5)"),BLACK_600:Li("black-600","rgba(26, 26, 26, 0.6)"),BLACK_700:Li("black-700","rgba(26, 26, 26, 0.7)"),BLACK_800:Li("black-800","rgba(26, 26, 26, 0.8)"),BLACK_900:Li("black-900","rgba(26, 26, 26, 1)"),BLACK:Li("black-900","#1a1a1a"),BLACK_OPACITY_20:"rgba(26, 26, 26, 0.2)",WHITE_50:Li("white-50","rgba(255, 255, 255, 0.05)"),WHITE_100:Li("white-100","rgba(255, 255, 255, 0.1)"),WHITE_200:Li("white-200","rgba(255, 255, 255, 0.2)"),WHITE_300:Li("white-300","rgba(255, 255, 255, 0.3)"),WHITE_400:Li("white-400","rgba(255, 255, 255, 0.4)"),WHITE_500:Li("white-500","rgba(255, 255, 255, 0.5)"),WHITE_600:Li("white-600","rgba(255, 255, 255, 0.6)"),WHITE_700:Li("white-700","rgba(255, 255, 255, 0.7)"),WHITE_800:Li("white-800","rgba(255, 255, 255, 0.8)"),WHITE_900:Li("white-900","rgba(255, 255, 255, 1)"),WHITE:Li("white-900","#ffffff"),BLUE_50:Li("blue-50","rgba(240, 249, 255, 1)"),BLUE_100:Li("blue-100","rgba(225, 243, 254, 1)"),BLUE_200:Li("blue-200","rgba(185, 229, 252, 1)"),BLUE_300:Li("blue-300","rgba(125, 211, 251, 1)"),BLUE_400:Li("blue-400","rgba(58, 190, 247, 1)"),BLUE_500:Li("blue-500","rgba(27, 173, 240, 1)"),BLUE_600:Li("blue-600","rgba(64, 114, 210, 1)"),BLUE_700:Li("blue-700","rgba(3, 105, 159, 1)"),BLUE_800:Li("blue-800","rgba(5, 69, 103, 1)"),BLUE_900:Li("blue-900","rgba(4, 38, 63, 1)"),BLUE:Li("graph-primary-blue","#2D9CDB"),GREY_50:Li("grey-50","rgba(248, 250, 252, 1)"),GREY_100:Li("grey-100","rgba(241, 245, 249, 1)"),GREY_200:Li("grey-200","rgba(225, 231, 239, 1)"),GREY_300:Li("grey-300","rgba(200, 214, 229, 1)"),GREY_400:Li("grey-400","rgba(158, 172, 192, 1)"),GREY_500:Li("grey-500","rgba(100, 116, 139, 1)"),GREY_600:Li("grey-600","rgba(72, 86, 106, 1)"),GREY_700:Li("grey-700","rgba(51, 65, 86, 1)"),GREY_800:Li("grey-800","rgba(29, 40, 57, 1)"),GREY_900:Li("grey-900","rgba(20, 30, 53, 1)"),GREY:Li("grey-400","#CCCCCC"),ORANGE:Li("graph-primary-orange","#FFA62E"),RED:Li("graph-primary-red","#FF5C64"),GREEN:Li("graph-primary-green","#A5C34E"),YELLOW:Li("graph-primary-yellow","#FBED53"),PURPLE:Li("graph-primary-purple","#7A51AB"),GREEN_BG:Li("green-bg","rgba(234, 254, 229, 1)"),GREEN_SUCCESS:Li("green-success","rgba(8, 173, 55, 1)"),ORANGE_BG:Li("orange-bg","rgba(254, 250, 229, 1)"),ORANGE_CAUTION:Li("orange-caution","rgba(249, 173, 20, 1)"),RED_BG:Li("red-bg","rgba(254, 234, 229, 1)"),RED_ERROR:Li("red-error","rgba(216, 35, 44, 1)"),GRAPH_SECONDARY_BROWN:Li("graph-secondary-brown","#AD7942"),GRAPH_SECONDARY_PINK:Li("graph-secondary-pink","#FB90B4"),GRAPH_SECONDARY_TEAL:Li("graph-secondary-teal","#3CCABA"),GRAPH_SECONDARY_DARK_BLUE:Li("graph-secondary-dark-blue","#4072D2"),GRAPH_SECONDARY_BLACK:Li("graph-secondary-black","#424E62"),GRAPH_SECONDARY_GREY:Li("graph-secondary-grey","#B4B4B4")},Ni=[Ii.ORANGE,Ii.RED,Ii.GREEN,Ii.BLUE,Ii.YELLOW,Ii.PURPLE,Ii.GRAPH_SECONDARY_BROWN,Ii.GRAPH_SECONDARY_PINK,Ii.GRAPH_SECONDARY_TEAL,Ii.GRAPH_SECONDARY_DARK_BLUE,Ii.GRAPH_SECONDARY_BLACK,Ii.GRAPH_SECONDARY_GREY];const Mi=[[0,"#092761"],[.15,"#141950"],[.3,"#282D73"],[.45,"#463782"],[.6,"#643C8C"],[.7,"#8C4696"],[.8,"#B45096"],[.9,"#DC5A8C"],[.95,"#FA6482"],[1,"#FF5C64"]],Ri=t.div`
|
|
1889
|
+
`;r.createContext(void 0);let bi=[],vi=[];const wi=(e,t)=>{if("undefined"!=typeof window){return getComputedStyle(document.documentElement).getPropertyValue("--"+e).trim()||t||""}return"var(--"+e+(t?", "+t:"")+")"},yi={BLACK_50:wi("black-50","rgba(26, 26, 26, 0.05)"),BLACK_100:wi("black-100","rgba(26, 26, 26, 0.1)"),BLACK_200:wi("black-200","rgba(26, 26, 26, 0.2)"),BLACK_300:wi("black-300","rgba(26, 26, 26, 0.3)"),BLACK_400:wi("black-400","rgba(26, 26, 26, 0.4)"),BLACK_500:wi("black-500","rgba(26, 26, 26, 0.5)"),BLACK_600:wi("black-600","rgba(26, 26, 26, 0.6)"),BLACK_700:wi("black-700","rgba(26, 26, 26, 0.7)"),BLACK_800:wi("black-800","rgba(26, 26, 26, 0.8)"),BLACK_900:wi("black-900","rgba(26, 26, 26, 1)"),BLACK:wi("black-900","#1a1a1a"),BLACK_OPACITY_20:"rgba(26, 26, 26, 0.2)",WHITE_50:wi("white-50","rgba(255, 255, 255, 0.05)"),WHITE_100:wi("white-100","rgba(255, 255, 255, 0.1)"),WHITE_200:wi("white-200","rgba(255, 255, 255, 0.2)"),WHITE_300:wi("white-300","rgba(255, 255, 255, 0.3)"),WHITE_400:wi("white-400","rgba(255, 255, 255, 0.4)"),WHITE_500:wi("white-500","rgba(255, 255, 255, 0.5)"),WHITE_600:wi("white-600","rgba(255, 255, 255, 0.6)"),WHITE_700:wi("white-700","rgba(255, 255, 255, 0.7)"),WHITE_800:wi("white-800","rgba(255, 255, 255, 0.8)"),WHITE_900:wi("white-900","rgba(255, 255, 255, 1)"),WHITE:wi("white-900","#ffffff"),BLUE_50:wi("blue-50","rgba(240, 249, 255, 1)"),BLUE_100:wi("blue-100","rgba(225, 243, 254, 1)"),BLUE_200:wi("blue-200","rgba(185, 229, 252, 1)"),BLUE_300:wi("blue-300","rgba(125, 211, 251, 1)"),BLUE_400:wi("blue-400","rgba(58, 190, 247, 1)"),BLUE_500:wi("blue-500","rgba(27, 173, 240, 1)"),BLUE_600:wi("blue-600","rgba(64, 114, 210, 1)"),BLUE_700:wi("blue-700","rgba(3, 105, 159, 1)"),BLUE_800:wi("blue-800","rgba(5, 69, 103, 1)"),BLUE_900:wi("blue-900","rgba(4, 38, 63, 1)"),BLUE:wi("graph-primary-blue","#2D9CDB"),GREY_50:wi("grey-50","rgba(248, 250, 252, 1)"),GREY_100:wi("grey-100","rgba(241, 245, 249, 1)"),GREY_200:wi("grey-200","rgba(225, 231, 239, 1)"),GREY_300:wi("grey-300","rgba(200, 214, 229, 1)"),GREY_400:wi("grey-400","rgba(158, 172, 192, 1)"),GREY_500:wi("grey-500","rgba(100, 116, 139, 1)"),GREY_600:wi("grey-600","rgba(72, 86, 106, 1)"),GREY_700:wi("grey-700","rgba(51, 65, 86, 1)"),GREY_800:wi("grey-800","rgba(29, 40, 57, 1)"),GREY_900:wi("grey-900","rgba(20, 30, 53, 1)"),GREY:wi("grey-400","#CCCCCC"),ORANGE:wi("graph-primary-orange","#FFA62E"),RED:wi("graph-primary-red","#FF5C64"),GREEN:wi("graph-primary-green","#A5C34E"),YELLOW:wi("graph-primary-yellow","#FBED53"),PURPLE:wi("graph-primary-purple","#7A51AB"),GREEN_BG:wi("green-bg","rgba(234, 254, 229, 1)"),GREEN_SUCCESS:wi("green-success","rgba(8, 173, 55, 1)"),ORANGE_BG:wi("orange-bg","rgba(254, 250, 229, 1)"),ORANGE_CAUTION:wi("orange-caution","rgba(249, 173, 20, 1)"),RED_BG:wi("red-bg","rgba(254, 234, 229, 1)"),RED_ERROR:wi("red-error","rgba(216, 35, 44, 1)"),GRAPH_SECONDARY_BROWN:wi("graph-secondary-brown","#AD7942"),GRAPH_SECONDARY_PINK:wi("graph-secondary-pink","#FB90B4"),GRAPH_SECONDARY_TEAL:wi("graph-secondary-teal","#3CCABA"),GRAPH_SECONDARY_DARK_BLUE:wi("graph-secondary-dark-blue","#4072D2"),GRAPH_SECONDARY_BLACK:wi("graph-secondary-black","#424E62"),GRAPH_SECONDARY_GREY:wi("graph-secondary-grey","#B4B4B4")},ki=[yi.ORANGE,yi.RED,yi.GREEN,yi.BLUE,yi.YELLOW,yi.PURPLE,yi.GRAPH_SECONDARY_BROWN,yi.GRAPH_SECONDARY_PINK,yi.GRAPH_SECONDARY_TEAL,yi.GRAPH_SECONDARY_DARK_BLUE,yi.GRAPH_SECONDARY_BLACK,yi.GRAPH_SECONDARY_GREY],ji=70,Mi=30,Li=60,Ii=50,Ei=30,Ni=5,Ai=11,$i=10,Ri={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 _i(e,t,r){const o=-1===t,i=o?yi.GREY_500:ki[t%ki.length],n=o?yi.BLACK_900:i,a=e.text??(void 0===e._computed?.area?"":`Area: ${e._computed.area.toFixed(2)}`),l=o&&void 0!==e.ax?e.ax:r.ax,s=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:l,ay:s,font:{size:o?Ai:$i,color:n,family:"Inter, sans-serif"},bgcolor:yi.WHITE,borderpad:2,bordercolor:o?void 0:i,borderwidth:o?0:1}}function zi(e){if(1===e.length){const{peak:t,seriesIndex:r}=e[0];return[_i(t,r,Ri.default)]}return[...e].sort((e,t)=>e.peak.y-t.peak.y).map(({peak:e,seriesIndex:t},r)=>_i(e,t,Ri.overlap[r%Ri.overlap.length]))}function Bi(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 Ti(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 Hi(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 Si(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 Pi(e,t,r,o,i){const n=Math.min(t[o],t[i]),a=(t[r]+n)/2;let l=r,s=r;for(let e=r;e>=o;e--)if(t[e]<a){l=e;break}for(let e=r;e<=i;e++)if(t[e]<a){s=e;break}return e[s]-e[l]}function Oi(e,t,r={}){const{minHeight:o=.05,minDistance:i=5,prominence:n=.02,relativeThreshold:a=!0}=r;if(t.length<3)return[];const l=Math.max(...t),s=a?o*l:o,c=a?n*l: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]>=s))continue;if(Ti(t,r,d)<c)continue;const{startIndex:o,endIndex:i}=Hi(t,r),n=Si(e,t,o,i),a=Pi(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 Vi(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 Di(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 Ui="96",Gi="384",Zi="1536",Wi={sample:"#4575b4",control:"#d73027",empty:"#f0f0f0"},Ki={[Ui]:{rows:8,columns:12},[Gi]:{rows:16,columns:24},[Zi]:{rows:32,columns:48}},Yi=[[0,"#313695"],[.1,"#4575b4"],[.2,"#74add1"],[.3,"#abd9e9"],[.4,"#e0f3f8"],[.5,"#ffffbf"],[.6,"#fee090"],[.7,"#fdae61"],[.8,"#f46d43"],[.9,"#d73027"],[1,"#a50026"]],Fi="#333",Xi="#000",qi="#f0f0f0",Qi={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"]]},Ji=5e4,en=.01,tn=.99,rn=.001,on=.575,nn=.425,an=11,ln=-.5,sn=70,cn=50,dn=40,hn=80,pn=130,xn=.15,un=.85;function gn(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 fn(e,t,r){if(!e)return!1;const{row:o,col:i}=e;return o>=0&&i>=0&&o<t&&i<r}function mn(e,t){if(!e)return null;const r=t??Object.keys(e)[0];return r?e[r]:null}function Cn(e,t,r,o,i){"number"==typeof e?o[t][r]=e:"string"==typeof e&&(i[t][r]=e)}function bn(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 vn(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=gn(`${o[1]}${o[2]}`),n=gn(`${o[3]}${o[4]}`),a=Math.min(i.row,n.row),l=Math.max(i.row,n.row),s=Math.min(i.col,n.col),c=Math.max(i.col,n.col),d=t.length,h=r.length;return a>=d||l>=d||s>=h||c>=h?null:{minRow:a,maxRow:l,minCol:s,maxCol:c}}function wn({wellId:e,value:t,allValues:r,tooltipExtra:o,activeLayerId:i,layerConfigMap:n,precision:a,valueUnit:l}){let s=`Well ${e}`;return s+=r?function(e,t,r,o){let i="";for(const[n,a]of Object.entries(e)){const e=n===t?"▶ ":"",l=r.get(n)?.valueUnit,s=l?` ${l}`:"";i+=null===a?`<br>${e}${n}: -`:"number"==typeof a?`<br>${e}${n}: ${a.toFixed(o)}${s}`:`<br>${e}${n}: ${a.charAt(0).toUpperCase()+a.slice(1)}`}return i}(r,i,n,a):null!==t?`<br>Value: ${t.toFixed(a)}${l}`:i?`<br>▶ ${i}: -`:"<br>No data",o&&(s+=function(e){let t="";for(const[r,o]of Object.entries(e))t+=`<br>${r}: ${String(o)}`;return t}(o)),s}function yn(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 kn(e,t,r){const o=r?sn:cn;let i;return i=t?"top"===e?pn:100:"top"===e?sn:dn,{l:"left"===e?o+cn:o,r:"right"===e?cn+cn:cn,b:"bottom"===e?hn:cn,t:i,pad:5}}function jn(e){switch(e){case"left":return on;case"right":return nn;default:return.5}}function Mn(e){switch(e){case"left":return[xn,1];case"right":return[0,un];default:return[0,1]}}const Ln=({data:t,layerConfigs:o,initialLayerId:i,onLayerChange:n,plateFormat:a="96",rows:l,columns:s,visualizationMode:d="heatmap",categoryColors:h,regions:p,title:x,xTitle:u,yTitle:g,xLabels:f,yLabels:m,colorScale:C=Yi,valueMin:b,valueMax:v,emptyWellColor:w=qi,showColorBar:y=!0,showLegend:k=!0,legendConfig:j,width:M=800,height:L=500,precision:I=0,markerShape:E="circle",onWellClick:N})=>{const A=r.useRef(null),$=r.useRef(N);$.current=N;const[R,_]=r.useState(i);let z,B;if("custom"===a)z=l??8,B=s??12;else{const e=Ki[a];z=e.rows,B=e.columns}const T=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 bn(e,o)}return null},[t,o]),H=r.useMemo(()=>T&&0!==T.length?R?T.find(e=>e.id===R)??T[0]:T[0]:null,[T,R]),S=H?.visualizationMode??d,P=H?.colorScale??C,O=H?.valueMin??b,V=H?.valueMax??v,D=H?.valueUnit?` ${H.valueUnit}`:"",U=r.useMemo(()=>({...Wi,...h,...H?.categoryColors}),[h,H?.categoryColors]),G=H?.id,{grid:Z,categoriesGrid:W,allValuesMap:K,tooltipDataMap:Y}=r.useMemo(()=>{let e,r=Array.from({length:z},()=>Array(B).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,l=new Map;for(const s of e){const e=gn(s.wellId);if(!fn(e,t,r))continue;const c=s.wellId.toUpperCase();s.values&&a.set(c,s.values),s.tooltipData&&l.set(c,s.tooltipData),Cn(mn(s.values,o),e.row,e.col,i,n)}return{grid:i,categories:n,allValues:a,tooltipData:l}}(t,z,B,G);e=n.grid,r=n.categories,o=n.allValues,i=n.tooltipData}else e=Array.from({length:z},()=>Array.from({length:B},()=>Math.random()*Ji));return{grid:e,categoriesGrid:r,allValuesMap:o,tooltipDataMap:i}},[t,z,B,G]),F=m??(X=z,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)}(B),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}}(Z),J=O??Q.min,ee=V??Q.max,te=Z.some(e=>e.includes(null)),re=J-(ee-J)*en-1,oe=te?Z.map(e=>e.map(e=>null===e?re:e)):Z,ie=r.useMemo(()=>{if(!te)return P;let e;if("string"==typeof P){const t=Qi[P];if(!t)return P;e=t}else e=P;const t=(J-re)/(ee-re),r=[[0,w],[t*tn,w]];for(const[o,i]of e){const e=t+o*(1-t);r.push([e,i])}return r},[P,te,J,ee,re,w]),ne=te?re:J,ae=r.useMemo(()=>{const e=new Map;if(T)for(const t of T)e.set(t.id,t);return e},[T]),le=Z.map((e,t)=>e.map((e,r)=>{const o=`${F[t]}${q[r]}`,i=String(o).toUpperCase();return wn({wellId:o,value:e,allValues:K.get(i),tooltipExtra:Y.get(i),activeLayerId:H?.id,layerConfigMap:ae,precision:I,valueUnit:D})})),{categoricalGrid:se,categoricalColorScale:ce,uniqueTypes:de,catMax:he}=r.useMemo(()=>{if("categorical"!==S)return{categoricalGrid:null,categoricalColorScale:null,uniqueTypes:[],catMax:0};const e=new Set;let t=!1;for(const r of W)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=W.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),l=Math.max(0,o-i),s=Math.min(1,o+i-rn);a.push([l,r]),a.push([s,r])});return{categoricalGrid:i,categoricalColorScale:a,uniqueTypes:r,catMax:n-1}},[S,W,U,w]),pe=r.useMemo(()=>{if(!p||0===p.length)return[];const e=[];for(const t of p){const r=vn(t.wells,F,q);if(!r)continue;const o=.49,i=r.minCol+1-o,n=r.maxCol+1+o,a=r.minRow-o,l=r.maxRow+o;e.push({type:"rect",xref:"x",yref:"y",x0:i,x1:n,y0:a,y1:l,line:{color:t.borderColor||Fi,width:t.borderWidth??2},fillcolor:t.fillColor||"transparent",layer:"above"})}return e},[p,F,q]);r.useEffect(()=>{const e=A.current;if(!e)return;const t="categorical"===S,r=t&&se?se:oe,o=t&&ce?ce:ie,i=t?0:ne,n=t?he||1:ee,a=!t&&y,{xData:l,yData:s,colorData:d,textData:h}=function(e,t,r,o,i,n){const a=[],l=[],s=[],c=[];for(let d=0;d<o;d++)for(let o=0;o<i;o++){a.push(o+1),l.push(t[d]);const i=e[d][o];s.push(i??n),c.push(r[d][o])}return{xData:a,yData:l,colorData:s,textData:c}}(r,F,le,z,B,i),p=function(e,t,r,o,i,n,a){const l=(e-(a?sn:cn)-100)/o,s=(t-(n?100:dn)-cn)/r,c="square"===i?Math.max(l,s):Math.min(l,s),d="square"===i?1:.8;return Math.max(4,c*d)}(M,L,z,B,E,!!x,!!g),f=[{x:l,y:s,mode:"markers",type:"scatter",marker:{symbol:E,size:p,color:d,colorscale:o,cmin:i,cmax:n,showscale:a,colorbar:yn(j?.position??"right",D,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:jn(m),xanchor:"center",y:.98,yanchor:"top"}:void 0,width:M,height:L,margin:kn(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,B+.5],automargin:!1,tickmode:"array",tickvals:Array.from({length:B},(e,t)=>t+1),ticktext:q.map(String),tickangle:0,tickfont:{size:B>24?8:an},domain:Mn(m)},yaxis:{title:{text:g||"",font:{size:16,color:"var(--black-300)",family:"Inter, sans-serif"},standoff:15},fixedrange:!0,dtick:1,range:[z+ln,ln],automargin:!1,tickmode:"array",tickvals:Array.from({length:z},(e,t)=>t),ticktext:F.map(String),tickfont:{size:z>16?8:an}},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(!$.current)return;const t=e.points[0];if(t){const e=F,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:K.get(n),tooltipData:Y.get(n)};$.current?.(a)}}}),()=>{e&&c.purge(e)}},[oe,q,F,ie,y,ne,ee,D,x,u,g,M,L,le,I,Y,K,Z,S,se,ce,de.length,he,pe,z,B,j,E]);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:A,className:"platemap-plot",style:{width:M,height:L}}),ve=(()=>{const t="categorical"===S&&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||Xi}`}}),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:[!T||T.length<=1?null:e.jsx("div",{className:"platemap-layer-selector",children:T.map(t=>{const r=H?.id===t.id;return e.jsx("button",{type:"button",className:"platemap-layer-selector__button"+(r?" platemap-layer-selector__button--active":""),onClick:()=>{_(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 In=t.div`
|
|
1889
1890
|
display: flex;
|
|
1890
1891
|
flex-direction: column;
|
|
1891
1892
|
width: 100vw;
|
|
1892
1893
|
height: 100vh;
|
|
1893
|
-
`,
|
|
1894
|
+
`,En=t.div`
|
|
1894
1895
|
display: flex;
|
|
1895
1896
|
flex: 1;
|
|
1896
1897
|
overflow: hidden;
|
|
1897
|
-
`,
|
|
1898
|
+
`,Nn=t.div`
|
|
1898
1899
|
display: flex;
|
|
1899
1900
|
flex-direction: column;
|
|
1900
1901
|
flex: 1;
|
|
1901
1902
|
overflow: hidden;
|
|
1902
|
-
`,
|
|
1903
|
+
`,An=t.div`
|
|
1903
1904
|
display: flex;
|
|
1904
1905
|
flex-direction: column;
|
|
1905
1906
|
background-color: var(--white-900);
|
|
1906
1907
|
flex: 1;
|
|
1907
1908
|
overflow: hidden;
|
|
1908
|
-
|
|
1909
|
+
`,$n=t.div`
|
|
1909
1910
|
border-bottom: 1px solid var(--grey-200);
|
|
1910
1911
|
display: flex;
|
|
1911
1912
|
flex-direction: column;
|
|
1912
1913
|
flex: 1;
|
|
1913
1914
|
overflow: hidden;
|
|
1914
|
-
`,
|
|
1915
|
+
`,Rn=t.div`
|
|
1915
1916
|
display: flex;
|
|
1916
1917
|
justify-content: space-between;
|
|
1917
1918
|
align-items: center;
|
|
1918
1919
|
padding: 24px 0;
|
|
1919
1920
|
background-color: var(--white-900);
|
|
1920
|
-
`,
|
|
1921
|
+
`,_n=t.h2`
|
|
1921
1922
|
font-family: "Inter", sans-serif;
|
|
1922
1923
|
font-size: 20px;
|
|
1923
1924
|
font-weight: 500;
|
|
1924
1925
|
color: var(--black-900);
|
|
1925
1926
|
margin: 0;
|
|
1926
|
-
`,
|
|
1927
|
+
`,zn=t.div`
|
|
1927
1928
|
display: flex;
|
|
1928
1929
|
gap: 8px;
|
|
1929
|
-
|
|
1930
|
+
`,Bn=t(f)`
|
|
1930
1931
|
border-radius: 4px;
|
|
1931
1932
|
width: 32px;
|
|
1932
1933
|
height: 32px;
|
|
1933
|
-
`,
|
|
1934
|
+
`,Tn=t.div`
|
|
1934
1935
|
width: 360px;
|
|
1935
1936
|
height: 100%;
|
|
1936
1937
|
display: flex;
|
|
@@ -1938,46 +1939,48 @@
|
|
|
1938
1939
|
padding: 16px 24px;
|
|
1939
1940
|
overflow: hidden;
|
|
1940
1941
|
max-height: 100%;
|
|
1941
|
-
`,
|
|
1942
|
+
`,Hn=t.div`
|
|
1942
1943
|
flex: 1;
|
|
1943
1944
|
height: 100%;
|
|
1944
1945
|
background-color: var(--grey-100);
|
|
1945
1946
|
display: flex;
|
|
1946
1947
|
flex-direction: column;
|
|
1947
|
-
`,
|
|
1948
|
+
`,Sn=t.div`
|
|
1948
1949
|
padding: 16px 24px 0 24px;
|
|
1949
|
-
`,
|
|
1950
|
+
`,Pn=t.div`
|
|
1950
1951
|
display: flex;
|
|
1951
1952
|
flex-direction: column;
|
|
1952
1953
|
overflow-y: auto;
|
|
1953
1954
|
flex: 1;
|
|
1954
1955
|
margin-top: 8px;
|
|
1955
1956
|
max-height: calc(100vh - 240px);
|
|
1956
|
-
`,
|
|
1957
|
+
`,On=t.div`
|
|
1957
1958
|
display: flex;
|
|
1958
1959
|
flex-direction: column;
|
|
1959
1960
|
justify-content: center;
|
|
1960
1961
|
align-items: center;
|
|
1961
1962
|
gap: 16px;
|
|
1962
|
-
`,
|
|
1963
|
+
`,Vn=t.div`
|
|
1963
1964
|
color: var(--grey-400);
|
|
1964
1965
|
font-size: 14px;
|
|
1965
1966
|
font-weight: 500;
|
|
1966
|
-
`,
|
|
1967
|
+
`,Dn=t.div`
|
|
1967
1968
|
cursor: pointer;
|
|
1968
1969
|
|
|
1969
1970
|
&:last-child {
|
|
1970
1971
|
border-bottom: none;
|
|
1971
1972
|
}
|
|
1972
|
-
`,
|
|
1973
|
+
`,Un=t(Xr)``,Gn=t.div`
|
|
1973
1974
|
padding: 24px;
|
|
1974
1975
|
margin-top: -1px;
|
|
1975
1976
|
flex: 1;
|
|
1976
1977
|
border-top: 1px solid var(--grey-200);
|
|
1977
|
-
`,
|
|
1978
|
+
`,Zn=t.div`
|
|
1978
1979
|
height: 100%;
|
|
1979
1980
|
border: 1px solid var(--grey-200);
|
|
1980
1981
|
border-radius: 8px;
|
|
1981
1982
|
overflow: hidden;
|
|
1982
|
-
`,Yi={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=Tt,exports.AppLayout=({userProfile:e,hostname:t,organization:o,children: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]=r.useState("Pipelines");return g.jsxs("div",{className:"app-layout",children:[g.jsx(To,{organization:o}),g.jsxs("div",{className:"content-container",children:[g.jsx(si,{items:n,activeItem:a,onItemClick:e=>{l(e)}}),g.jsxs("div",{className:"main-content",children:[g.jsx(Tt,{hostname:t,userProfile:e,onHomeClick:()=>{console.log("Home clicked")},onSettingsClick:()=>{console.log("Settings clicked")},onUserProfileClick:()=>{console.log("User profile clicked")}}),g.jsx("div",{className:"main-layout",children:i})]})]})]})},exports.AreaGraph=({dataSeries:e,width:t=1e3,height:o=600,xRange:i,yRange:n,variant:a="normal",xTitle:l="Columns",yTitle:s="Rows",title:d="Area Graph"})=>{const p=r.useRef(null),{xMin:h,xMax:x,yMin:u,yMax:f}=(()=>{let r=Number.MAX_VALUE,t=Number.MIN_VALUE,o=Number.MAX_VALUE,i=Number.MIN_VALUE;e.forEach(e=>{e.x.forEach(e=>{r=Math.min(r,e),t=Math.max(t,e)}),e.y.forEach(e=>{o=Math.min(o,e),i=Math.max(i,e)})});const n=.1*(t-r),l=.1*(i-o);return{xMin:r-n,xMax:t+n,yMin:"stacked"===a?0:o-l,yMax:i+l}})(),m=i||[h,x],C=n||[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})(),y={tickcolor:Ii.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:Ii.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:Ii.BLACK_900,linewidth:1,position:0,zeroline:!1},w={text:d,x:.5,y:.95,xanchor:"center",yanchor:"top",font:{size:32,weight:600,family:"Inter, sans-serif",color:Ii.BLACK_900,lineheight:1.2,standoff:30}};return r.useEffect(()=>{if(!p.current)return;let r;if("stacked"===a){const t=new Array(e[0]?.x.length||0).fill(0);r=e.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 r=e.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 d={width:t,height:o,title:w,margin:{l:80,r:40,b:80,t:80,pad:0},paper_bgcolor:Ii.WHITE,plot_bgcolor:Ii.WHITE,font:{family:"Inter, sans-serif"},dragmode:!1,xaxis:{title:{text:l,font:{size:16,color:Ii.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:Ii.GREY_200,range:i,autorange:!i,tickmode:"array",tickvals:b,showgrid:!0,...y},yaxis:{title:{text:s,font:{size:16,color:Ii.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:Ii.GREY_200,range:n,autorange:!n,tickmode:"array",tickvals:v,showgrid:!0,...y},legend:{x:.5,y:-.2,xanchor:"center",yanchor:"top",orientation:"h",font:{size:13,color:Ii.BLUE_900,family:"Inter, sans-serif",weight:500,lineheight:18}},showlegend:!0};return c.newPlot(p.current,r,d,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{p.current&&c.purge(p.current)}},[e,t,o,i,n,a,l,s,d]),g.jsx("div",{className:"area-graph-container",children:g.jsx("div",{ref:p,style:{width:"100%",height:"100%"}})})},exports.AssistantModal=({open:e,title:t,prompt:o,initialCode:i="",userQuery:n="",onUserQueryChange:a,onCopy:l,onLaunch:s,onSend:c,onCancel:d})=>{const[p,h]=r.useState(i),[x,u]=r.useState(""),[f,m]=r.useState(n);return r.useEffect(()=>{m(n)},[n]),e?g.jsx(Bt,{children:g.jsxs(zt,{children:[g.jsxs(Ht,{children:[g.jsxs($t,{children:[g.jsx(ve,{name:exports.IconName.TETRASCIENCE_ICON,fill:"var(--blue-600)"}),g.jsx(Ot,{children:t})]}),g.jsx(Pt,{onClick:d,children:g.jsx(ve,{name:exports.IconName.CLOSE,width:"20",height:"20",fill:"var(--black-900)"})})]}),g.jsx(Vt,{children:o}),g.jsx(Dt,{children:g.jsx(Ut,{value:f,onChange:e=>{m(e.target.value),a&&a(e.target.value)},rows:2,placeholder:"Type your question here..."})}),g.jsx(Gt,{children:g.jsx(Zt,{children:g.jsx(He,{value:p,onChange:e=>h(e??""),language:"python",theme:"dark",height:200,onCopy:l,onLaunch:s})})}),g.jsxs(Wt,{children:[g.jsx(pr,{value:x,onChange:e=>u(e.target.value),placeholder:"Ask us anything related to your work...",size:"small",onKeyDown:e=>{"Enter"===e.key&&c(x)}}),g.jsxs(Kt,{variant:"primary",onClick:()=>c(x),children:[g.jsx(ve,{name:exports.IconName.PAPER_PLANE}),"Send"]})]})]})}):null},exports.Badge=({children:e,size:r="medium",variant:t="default",disabled:o=!1,iconLeft:i,iconRight:n,className:a})=>g.jsxs(b,{$size:r,$variant:t,$disabled:o,className:a,children:[i&&i,e,n&&n]}),exports.BarGraph=({dataSeries:e,width:t=1e3,height:o=600,xRange:i,yRange:n,variant:a="group",xTitle:l="Columns",yTitle:s="Rows",title:d="Bar Graph",barWidth:p=24})=>{const h=r.useRef(null),{yMin:x,yMax:u}=(()=>{let r=Number.MAX_VALUE,t=Number.MIN_VALUE,o=Number.MAX_VALUE,i=Number.MIN_VALUE;e.forEach(e=>{e.x.forEach(e=>{r=Math.min(r,e),t=Math.max(t,e)}),e.y.forEach(e=>{o=Math.min(o,e),i=Math.max(i,e)})});const n=.1*(t-r),l=.1*(i-o);return{xMin:r-n,xMax:t+n,yMin:"stack"===a?0:o-l,yMax:i+l}})(),f=n||[x,u],m=Array.from(new Set(e.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(a){case"stack":return"stack";case"overlay":return"overlay";default:return"group"}},v={tickcolor:Ii.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:Ii.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:Ii.BLACK_900,linewidth:1,position:0,zeroline:!1};return r.useEffect(()=>{if(!h.current)return;const r=e.map(e=>({x:e.x,y:e.y,type:"bar",name:e.name,marker:{color:e.color},width:p,error_y:e.error_y})),a={title:{text:d,font:{size:32,family:"Inter, sans-serif",color:Ii.BLACK_900}},width:t,height:o,margin:{l:80,r:30,b:80,t:60,pad:0},paper_bgcolor:Ii.WHITE,plot_bgcolor:Ii.WHITE,font:{family:"Inter, sans-serif"},barmode:b(),bargap:.15,dragmode:!1,xaxis:{title:{text:l,font:{size:16,color:Ii.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:32},gridcolor:Ii.GREY_200,range:i,autorange:!i,tickmode:"array",tickvals:m,showgrid:!0,...v},yaxis:{title:{text:s,font:{size:16,color:Ii.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:30},gridcolor:Ii.GREY_200,range:n,autorange:!n,tickmode:"array",tickvals:C,showgrid:!0,...v},legend:{x:.5,y:-.2,xanchor:"center",yanchor:"top",orientation:"h",font:{size:16,color:Ii.BLUE_900,family:"Inter, sans-serif",weight:500}},showlegend:e.length>1};return c.newPlot(h.current,r,a,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{h.current&&c.purge(h.current)}},[e,t,o,i,n,a,l,s,d,p]),g.jsx("div",{className:"bar-graph-container",children:g.jsx("div",{ref:h,style:{width:"100%",height:"100%"}})})},exports.Boxplot=({dataSeries:e,width:t=1e3,height:o=600,xRange:i,yRange:n,xTitle:a="Columns",yTitle:l="Rows",title:s="Boxplot",showPoints:d=!1})=>{const p=r.useRef(null),{yMin:h,yMax:x}=(()=>{let r=Number.MAX_VALUE,t=Number.MIN_VALUE;e.forEach(e=>{e.y.forEach(e=>{r=Math.min(r,e),t=Math.max(t,e)})});const o=.1*(t-r);return{yMin:r-o,yMax:t+o}})(),u=n||[h,x],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:Ii.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:Ii.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:Ii.BLACK_900,linewidth:1,position:0,zeroline:!1},C={text:s,x:.5,y:.95,xanchor:"center",yanchor:"top",font:{size:32,weight:600,family:"Inter, sans-serif",color:Ii.BLACK_900,lineheight:1.2,standoff:30}};return r.useEffect(()=>{if(!p.current)return;const r=e.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:!!d&&(e.boxpoints||"outliers"),jitter:e.jitter||.3,pointpos:e.pointpos||-1.8})),s={width:t,height:o,title:C,margin:{l:80,r:40,b:80,t:80,pad:0},paper_bgcolor:Ii.WHITE,plot_bgcolor:Ii.WHITE,font:{family:"Inter, sans-serif"},dragmode:!1,xaxis:{title:{text:a,font:{size:16,color:Ii.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:Ii.GREY_200,range:i,autorange:!i,showgrid:!0,...m},yaxis:{title:{text:l,font:{size:16,color:Ii.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:Ii.GREY_200,range:n,autorange:!n,tickmode:"array",tickvals:f,showgrid:!0,...m},legend:{x:.5,y:-.2,xanchor:"center",yanchor:"top",orientation:"h",font:{size:13,color:Ii.BLUE_900,family:"Inter, sans-serif",weight:500,lineheight:18}},showlegend:!0};return c.newPlot(p.current,r,s,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{p.current&&c.purge(p.current)}},[e,t,o,i,n,a,l,s,d]),g.jsx("div",{className:"boxplot-container",children:g.jsx("div",{ref:p,style:{width:"100%",height:"100%"}})})},exports.Button=k,exports.ButtonControl=E,exports.ButtonControlGroup=({controls:e,selectedId:r,onChange:t,vertical:o=!0,disabled:i=!1})=>g.jsx(Ft,{vertical:o,children:e.map(e=>g.jsx(Yt,{vertical:o,children:g.jsx(E,{icon:e.icon,selected:r===e.id,disabled:i||e.disabled,onClick:()=>{return r=e.id,void(i||t?.(r));var r}})},e.id))}),exports.CHART_COLORS=Ni,exports.COLORS=Ii,exports.Card=A,exports.CardSidebar=to,exports.Checkbox=Le,exports.Chromatogram=({data:e=[],width:t=900,height:o=600,positionInterval:i=10,colorA:n="#2D9CDB",colorT:a="#A1C63C",colorG:l="#FF5C64",colorC:s="#FFA62E"})=>{const d=r.useRef(null),p=e.map(e=>e.position),h=e.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)),x=e.map(e=>e.peakA),u=e.map(e=>e.peakT),f=e.map(e=>e.peakG),m=e.map(e=>e.peakC),C={x:p,y:x,type:"scatter",mode:"lines",name:"A",line:{color:n,width:2,shape:"spline"}},b={x:p,y:u,type:"scatter",mode:"lines",name:"T",line:{color:a,width:2,shape:"spline"}},v={x:p,y:f,type:"scatter",mode:"lines",name:"G",line:{color:l,width:2,shape:"spline"}},y={x:p,y:m,type:"scatter",mode:"lines",name:"C",line:{color:s,width:2,shape:"spline"}},w=Math.max(...x,...u,...f,...m);if(r.useEffect(()=>{if(!d.current||0===e.length)return;const r=[C,b,v,y],i={width:t,height:o-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*w],fixedrange:!0}};return c.newPlot(d.current,r,i,{responsive:!0,displayModeBar:!1,displaylogo:!1,fillFrame:!0}),()=>{d.current&&c.purge(d.current)}},[e,t,o,i,n,a,l,s,p,x,u,f,m,w]),0===e.length)return g.jsx("div",{className:"chart-container",children:"No data available"});return g.jsxs("div",{className:"chromatogram-container",style:{width:t,height:o},children:[g.jsxs("div",{className:"sequence-header",children:[(()=>{const e=Math.min(...p),r=Math.max(...p),o=t;return g.jsx("div",{className:"sequence-letters-container",children:h.map((t,i)=>{const c=p[i],d="A"===t?n:"T"===t?a:"G"===t?l:"C"===t?s:"var(--black-900)",h=(c-e)/(r-e)*o;return g.jsx("span",{className:"sequence-letter",style:{left:`${h}px`,color:d},children:t},`base-${i}`)})})})(),(()=>{const e=Math.min(...p),r=Math.max(...p),o=t,n=[];for(let t=Math.ceil(e/i)*i;t<=r;t+=i)n.push({position:t,label:t.toString()});return g.jsx("div",{className:"position-numbers-container",children:n.map(t=>{const i=(t.position-e)/(r-e)*o;return g.jsx("span",{className:"position-number",style:{left:`${i}px`},children:t.label},`pos-${t.position}`)})})})()]}),g.jsx("div",{className:"chromatogram-chart",children:g.jsx("div",{ref:d,style:{width:"100%",height:"100%"}})})]})},exports.CodeEditor=He,exports.CodeScriptEditorButton=({initialCode:e="",onCodeSave:t,language:o="python",buttonText:i="Edit Code",modalTitle:n="Edit Code",buttonProps:a,modalProps:l,disabled:s=!1})=>{const[c,d]=r.useState(!1),[p,h]=r.useState(e),x=p?p.split("\n").length:0,u=p.length,f=r.useCallback(()=>{h(e),d(!0)},[e]),m=r.useCallback(()=>{t&&t(p),d(!1)},[t,p]),C=r.useCallback(()=>{d(!1)},[]),b=r.useCallback(e=>{h(e||"")},[]);return g.jsxs(g.Fragment,{children:[g.jsxs(oo,{children:[g.jsx(k,{leftIcon:g.jsx(ve,{name:exports.IconName.PENCIL}),onClick:f,size:"small",variant:"tertiary",...a,disabled:s,style:{height:38},children:i}),g.jsxs(no,{title:`${x} lines, ${u} characters`,children:[x," lines / ",u," chars"]})]}),g.jsx($r,{isOpen:c,onClose:C,onConfirm:m,onCloseLabel:"Cancel",onConfirmLabel:"Save Code",title:n,width:"80%",...l,children:g.jsx(io,{children:g.jsx(He,{height:"400px",language:o,value:p,onChange:b,options:{minimap:{enabled:!1}}})})})]})},exports.DotPlot=({dataSeries:e,width:t=1e3,height:o=600,title:i="Dot Plot",xTitle:n="Columns",yTitle:a="Rows",variant:l="default",markerSize:s=8})=>{const d=r.useRef(null),p=Array.isArray(e)?e:[e],h=[Ii.ORANGE,Ii.RED,Ii.GREEN,Ii.BLUE,Ii.YELLOW,Ii.PURPLE],x=["circle","square","diamond","triangle-up","triangle-down","star"],u=p.map((e,r)=>"default"===l?{...e,color:e.color||h[0],symbol:"circle",size:e.size||s}:{...e,color:e.color||h[r%h.length],symbol:e.symbol||x[r%x.length],size:e.size||s}),f=Ii.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:Ii.WHITE,width:1}},hovertemplate:`${n}: %{x}<br>${a}: %{y}<extra>${e.name}</extra>`})),C={tickcolor:Ii.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:Ii.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:Ii.BLACK_900,linewidth:1,position:0,zeroline:!1},b={text:i,x:.5,y:.95,xanchor:"center",yanchor:"top",font:{size:32,weight:600,family:"Inter, sans-serif",color:Ii.BLACK_900,lineheight:1.2,standoff:30}};return r.useEffect(()=>{if(!d.current)return;const e={width:t,height:o,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:Ii.BLUE_900,family:"Inter, sans-serif",weight:500,lineheight:18}},xaxis:{title:{text:n,font:{size:16,color:Ii.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:f,...C},yaxis:{title:{text:a,font:{size:16,color:Ii.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:f,...C},paper_bgcolor:Ii.WHITE,plot_bgcolor:Ii.WHITE};return c.newPlot(d.current,m,e,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{d.current&&c.purge(d.current)}},[e,t,o,n,a,l,s,m]),g.jsx("div",{className:"dotplot-container",style:{width:t},children:g.jsx("div",{ref:d,style:{width:"100%",height:"100%",margin:"0"}})})},exports.Dropdown=We,exports.ErrorAlert=({error:e,title:r="An Error Occurred",onClose:t,showDetailsDefault:o=!1})=>{if(!e)return g.jsx(g.Fragment,{});let i="An unexpected error occurred.",n=null,a=null,l="Unknown Error";if(function(e){return"object"==typeof e&&null!==e&&"isAxiosError"in e&&!0===e.isAxiosError}(e)){if(l="Network/API Error",i=e.message,e.response){const r=e.response.status,t=e.response.statusText;i=`API Error: ${r} ${t}`;const o=e.response.data;if("string"==typeof o)n=o;else if(o&&"object"==typeof o){const e=o.detail||o.message||o.error;"string"==typeof e?n=e:(n="Check details for response data.",a=JSON.stringify(o,null,2))}else n=`Request failed with status code ${r}.`;a=`URL: ${e.config?.method?.toUpperCase()} ${e.config?.url}\nStatus: ${r} ${t}\nResponse Data:\n${a??JSON.stringify(o,null,2)}`}else e.request?(l="Network Error",i="Network Error: Could not reach the server.",n="Please check your internet connection or contact support if the problem persists.",a=`URL: ${e.config?.method?.toUpperCase()} ${e.config?.url}\nError Message: ${e.message}`):i=`Request Setup Error: ${e.message}`;e.code&&(l+=` (Code: ${e.code})`)}else if(e instanceof Error)l=e.name||"Error",i=e.message,a=e.stack??"No stack trace available.";else if("string"==typeof e)l="Message",i=e;else if("object"==typeof e&&null!==e){l="Object Error",i=e.message||e.error||"An object was thrown as an error.";try{a=JSON.stringify(e,null,2)}catch{a="Could not stringify the error object."}}return g.jsxs(Ke,{type:"error",children:[g.jsxs(Fe,{children:[g.jsxs(qe,{children:[g.jsx(Ye,{children:"⚠️"}),r]}),t&&g.jsx(Xe,{onClick:t,children:"✕"})]}),g.jsxs(Qe,{children:[g.jsxs(Je,{children:[g.jsxs(er,{strong:!0,children:[l,":"]})," ",i]}),n&&g.jsx(Je,{children:g.jsx(rr,{children:n})}),a&&g.jsx(tr,{children:g.jsx(ar,{header:"Details",defaultExpanded:o,children:g.jsx(nr,{children:a})})})]})]})},exports.FormField=so,exports.Heatmap=({data:e,xLabels:t,yLabels:o,title:i,xTitle:n="Columns",yTitle:a="Rows",colorscale:l=Mi,width:s=800,height:d=600,showScale:p=!0,precision:h=0,zmin:x=0,zmax:u=5e4,valueUnit:f=""})=>{const m=r.useRef(null);let C=e||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=t||Array.from({length:b},(e,r)=>r+1),y=o||(w=C.length,Array.from({length:w},(e,r)=>String.fromCharCode(65+r)));var w;return r.useEffect(()=>{if(!m.current)return;const e=[{z:C,x:v,y:y,type:"heatmap",colorscale:l,showscale:p,zsmooth:!1,hovertemplate:`Row: %{y}<br>Column: %{x}<br>Value: %{z:.${h}f}${f}<extra></extra>`,zmin:x,zmax:u,colorbar:{thickness:28,len:1,outlinewidth:0,ticksuffix:f,y:.5,yanchor:"middle"}}],r={title:{text:i||"",font:{family:"Inter, sans-serif",size:20,color:"var(--black-300)"},y:.98,yanchor:"top"},width:s,height:d,margin:{l:70,r:70,b:70,t:100,pad:5},xaxis:{title:{text:n,font:{size:16,color:"var(--black-300)",family:"Inter, sans-serif"},standoff:15},side:"top",fixedrange:!0},yaxis:{title:{text:a,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 c.newPlot(m.current,e,r,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{m.current&&c.purge(m.current)}},[e,t,o,i,n,a,l,s,d,p,h,x,u,f]),g.jsx("div",{className:"heatmap-container",children:g.jsx("div",{ref:m,style:{width:"100%",height:"100%"}})})},exports.Histogram=({dataSeries:e,width:t=480,height:o=480,title:i="Histogram",xTitle:n="X Axis",yTitle:a="Frequency",bargap:l=.2,showDistributionLine:s=!1})=>{const d=r.useRef(null),p=Array.isArray(e)?e:[e],h=p.length>1?"stack":void 0,x=[Ii.ORANGE,Ii.RED,Ii.BLUE,Ii.GREEN,Ii.PURPLE,Ii.YELLOW],u=p.map((e,r)=>{const t=void 0!==e.showDistributionLine?e.showDistributionLine:s;return{...e,color:e.color||x[r%x.length],opacity:t?.5:e.opacity||1,showDistributionLine:t,lineWidth:e.lineWidth||3}}),f=Ii.GREY_200,m=u.map(e=>({type:"histogram",x:e.x,name:e.name,marker:{color:e.color,line:{color:Ii.WHITE,width:1},opacity:e.opacity},autobinx:e.autobinx,xbins:e.xbins,hovertemplate:`${n}: %{x}<br>${a}: %{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,c=e.xbins||{start:l,end:s,size:a/10},d=((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),c=1/(r*Math.sqrt(2*Math.PI))*Math.exp(s);a.push(c)}return{x:n,y:a}})(r,o,l,s,100),p=((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)})(d.y,e.x,c);return{type:"scatter",x:d.x,y:p,mode:"lines",name:`${e.name} Distribution`,line:{color:e.color,width:e.lineWidth},hoverinfo:"none"}}),b=[...m,...C];r.useEffect(()=>{if(!d.current)return;const e={width:t,height:o,font:{family:"Inter, sans-serif"},showlegend:!1,margin:{l:90,r:40,b:80,t:40},xaxis:{title:{text:n,font:{size:16,color:Ii.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:20},gridcolor:f,tickcolor:Ii.GREY_200,ticklen:8,tickwidth:1,ticks:"outside",linecolor:Ii.BLACK_900,linewidth:1,zeroline:!1},yaxis:{title:{text:a,font:{size:16,color:Ii.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:20},gridcolor:f,tickcolor:Ii.GREY_200,ticklen:8,tickwidth:1,ticks:"outside",linecolor:Ii.BLACK_900,linewidth:1,zeroline:!1,rangemode:"tozero"},barmode:h,bargap:l,paper_bgcolor:Ii.WHITE,plot_bgcolor:Ii.WHITE};return c.newPlot(d.current,b,e,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{d.current&&c.purge(d.current)}},[e,t,o,i,n,a,l,s,b]);return g.jsx("div",{className:"histogram-container",style:{width:t},children:g.jsxs("div",{className:"chart-container",children:[i&&g.jsx("div",{className:"title-container",children:g.jsx("h2",{className:"title",children:i})}),g.jsx("div",{ref:d,style:{width:"100%",height:"100%",margin:"0"}}),g.jsx(({series:e})=>{const t=e.map((t,o)=>g.jsx(r.Fragment,{children:g.jsxs("div",{className:"legend-item",children:[g.jsx("span",{className:"color-box",style:{background:t.color}}),t.name,o<e.length-1&&g.jsx("span",{className:"divider"})]})},t.name)),o=[];for(let e=0;e<t.length;e+=6)o.push(g.jsx("div",{className:"legend-row",children:t.slice(e,e+6)},e));return g.jsx("div",{className:"legend-container",children:o})},{series:u})]})})},exports.Icon=ve,exports.Input=pr,exports.Label=gr,exports.LaunchContent=mo,exports.LineGraph=({dataSeries:e,width:t=1e3,height:o=600,xRange:i,yRange:n,variant:a="lines",xTitle:l="Columns",yTitle:s="Rows",title:d="Line Graph"})=>{const p=r.useRef(null),{yMin:h,yMax:x}=(()=>{let r=Number.MAX_VALUE,t=Number.MIN_VALUE,o=Number.MAX_VALUE,i=Number.MIN_VALUE;e.forEach(e=>{e.x.forEach(e=>{r=Math.min(r,e),t=Math.max(t,e)}),e.y.forEach(e=>{o=Math.min(o,e),i=Math.max(i,e)})});const n=.1*(t-r),a=.1*(i-o);return{xMin:r-n,xMax:t+n,yMin:o-a,yMax:i+a}})(),u=n||[h,x],f=Array.from(new Set(e.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(a){case"lines+markers":case"lines+markers+error_bars":return"lines+markers";default:return"lines"}},b={tickcolor:Ii.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:Ii.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:Ii.BLACK_900,linewidth:1,position:0,zeroline:!1};return r.useEffect(()=>{if(!p.current)return;const r=e.map(e=>({x:e.x,y:e.y,type:"scatter",mode:C(),name:e.name,line:{color:e.color,width:1.5},marker:"lines"!==a?{color:e.color,size:8,symbol:e.symbol||"triangle-up"}:{opacity:0},error_y:"lines+markers+error_bars"===a?e.error_y||{type:"data",array:e.y.map(()=>10),visible:!0,color:e.color,thickness:1,width:5}:void 0})),h={title:{text:d,font:{size:32,family:"Inter, sans-serif",color:Ii.BLACK_900}},width:t,height:o,margin:{l:80,r:30,b:80,t:60,pad:10},paper_bgcolor:Ii.WHITE,plot_bgcolor:Ii.WHITE,font:{family:"Inter, sans-serif"},dragmode:!1,xaxis:{title:{text:l,font:{size:16,color:Ii.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:32},gridcolor:Ii.GREY_200,range:i,autorange:!i,tickmode:"array",tickvals:f,ticktext:f.map(String),showgrid:!0,...b},yaxis:{title:{text:s,font:{size:16,color:Ii.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:30},gridcolor:Ii.GREY_200,range:n,autorange:!n,tickmode:"array",tickvals:m,showgrid:!0,...b},legend:{x:.5,y:-.2,xanchor:"center",yanchor:"top",orientation:"h",font:{size:16,color:Ii.BLUE_900,family:"Inter, sans-serif",weight:500}},showlegend:!0};return c.newPlot(p.current,r,h,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{p.current&&c.purge(p.current)}},[e,t,o,i,n,a,l,s,d]),g.jsx("div",{className:"chart-container",children:g.jsx("div",{ref:p,style:{width:"100%",height:"100%"}})})},exports.Main=({userProfile:e,hostname:t,organization:o})=>{const i=[{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"}],[n,a]=r.useState("Pipelines"),[l,s]=r.useState("templates"),[c,d]=r.useState("pipelineBuilder"),[p,h]=r.useState("1"),x=[{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=>{h(e===p?null:e)},m=e=>{console.log(`Using template: ${e}`)},C=e=>{console.log(`Viewing template: ${e}`)};return g.jsxs(Ri,{children:[g.jsx(To,{organization:o}),g.jsxs(Ai,{children:[g.jsx(si,{items:i,activeItem:n,onItemClick:e=>{a(e)}}),g.jsxs(_i,{children:[g.jsx(Tt,{hostname:t,userProfile:e,onHomeClick:()=>{console.log("Home clicked")},onSettingsClick:()=>{console.log("Settings clicked")},onUserProfileClick:()=>{console.log("User profile clicked")}}),g.jsx(Si,{children:g.jsx(Ti,{children:g.jsxs("div",{style:{display:"flex",height:"100%"},children:[g.jsxs(Oi,{children:[g.jsx(yi,{tabs:[{id:"templates",label:"Templates"},{id:"protocol",label:"Protocol"},{id:"steps",label:"Steps"}],activeTab:l,onChange:e=>{s(e)}}),"templates"===l&&g.jsxs(g.Fragment,{children:[g.jsxs(Bi,{children:[g.jsx(zi,{children:"Templates"}),g.jsxs(Hi,{children:[g.jsx($i,{variant:"tertiary",size:"small","aria-label":"Delete",noPadding:!0,children:g.jsx(ve,{name:exports.IconName.TRASH,width:"20",height:"20",fill:"var(--red-error)"})}),g.jsx($i,{variant:"primary",size:"small","aria-label":"Add",noPadding:!0,children:g.jsx(ve,{name:exports.IconName.PLUS,width:"20",height:"20",fill:"var(--white-900)"})})]})]}),g.jsx(Di,{children:x.length>0?x.map(e=>g.jsx(Zi,{onClick:()=>f(e.id),children:g.jsx(Wi,{title:e.title,description:e.description,buttonText:e.buttonText,linkText:e.linkText,status:p===e.id?"active":"default",onButtonClick:()=>m(e.id),onLinkClick:()=>C(e.id)})},e.id)):g.jsxs(Ui,{children:[g.jsx(ve,{name:exports.IconName.INBOX,width:"40",height:"40",fill:"var(--grey-400)"}),g.jsx(Gi,{children:"No data"})]})})]}),"protocol"===l&&g.jsxs(g.Fragment,{children:[g.jsx(Bi,{children:g.jsxs(zi,{children:["Protocol (",u.length,")"]})}),g.jsx(Di,{children:u.length>0?u.map(e=>g.jsx(Zi,{onClick:()=>f(e.id),children:g.jsx(Wi,{title:e.title,description:e.description,status:p===e.id?"active":"default",onButtonClick:()=>m(e.id),onLinkClick:()=>C(e.id)})},e.id)):g.jsxs(Ui,{children:[g.jsx(ve,{name:exports.IconName.INBOX,width:"40",height:"40",fill:"var(--grey-400)"}),g.jsx(Gi,{children:"No data"})]})})]}),"steps"===l&&g.jsxs(g.Fragment,{children:[g.jsx(Bi,{children:g.jsxs(zi,{children:["Task Scripts (",0,")"]})}),g.jsx(Di,{children:u.length>0?u.map(e=>g.jsx(Zi,{onClick:()=>f(e.id),children:g.jsx(Wi,{title:e.title,description:e.description,status:p===e.id?"active":"default",onButtonClick:()=>m(e.id),onLinkClick:()=>C(e.id)})},e.id)):g.jsxs(Ui,{children:[g.jsx(ve,{name:exports.IconName.INBOX,width:"40",height:"40",fill:"var(--grey-400)"}),g.jsx(Gi,{children:"No data"})]})})]})]}),g.jsxs(Pi,{children:[g.jsx(Vi,{children:g.jsx(yi,{tabs:[{id:"pipelineBuilder",label:"Pipeline Builder"},{id:"configuration",label:"Configuration"},{id:"launch",label:"Launch"}],activeTab:c,onChange:e=>{d(e)}})}),g.jsxs(Ki,{children:["pipelineBuilder"===c&&g.jsx(Fi,{}),"configuration"===c&&g.jsx(Go,{}),"launch"===c&&g.jsx(mo,{})]})]})]})})})]})]})]})},exports.MarkdownDisplay=({markdown:e,codeRenderer:r})=>g.jsx(i,{remarkPlugins:[l],rehypePlugins:[a],components:{code:r||vr},children:e}),exports.Menu=({title:e,items:r,onItemClick:t,onItemCheckChange:o,activeItemId:i=null,className:n})=>g.jsxs(Co,{className:n,children:[e&&g.jsx(bo,{children:e}),g.jsx(vo,{children:r.map(e=>g.jsx(jr,{label:e.label,checked:e.checked,showCheckbox:e.showCheckbox,active:i===e.id||e.active,onClick:()=>{return r=e.id,void(t&&t(r));var r},onCheckChange:r=>((e,r)=>{o&&o(e,r)})(e.id,r)},e.id))})]}),exports.MenuItem=jr,exports.Modal=$r,exports.Navbar=To,exports.PieChart=({dataSeries:e,width:t=400,height:o=400,title:i="Pie Chart",textInfo:n="percent",hole:a=0,rotation:l=0})=>{const s=r.useRef(null),d=[Ii.BLUE,Ii.GREEN,Ii.ORANGE,Ii.RED,Ii.YELLOW,Ii.PURPLE],p=()=>{if(e.colors&&e.colors.length>=e.labels.length)return e.colors;const r=e.colors||[],t=e.labels.length-r.length;if(t<=0)return r;for(let e=0;e<t;e++)r.push(d[e%d.length]);return r};r.useEffect(()=>{if(!s.current)return;const r=[{type:"pie",labels:e.labels,values:e.values,name:e.name,marker:{colors:p()},textinfo:n,hoverinfo:"label+text+value",insidetextfont:{size:0,family:"Inter, sans-serif",color:"transparent"},hole:a,rotation:l}],i={width:t,height:o,font:{family:"Inter, sans-serif"},showlegend:!1,margin:{l:40,r:40,b:40,t:40}};return c.newPlot(s.current,r,i,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{s.current&&c.purge(s.current)}},[e,t,o,n,a,l]);return g.jsx("div",{className:"card-container",style:{width:t},children:g.jsxs("div",{className:"chart-container",children:[i&&g.jsx("div",{className:"title-container",children:g.jsx("h2",{className:"title",children:i})}),g.jsx("div",{ref:s,style:{width:"100%",height:"100%",margin:"0"}}),g.jsx(({labels:e,colors:t})=>{const o=e.map((o,i)=>g.jsx(r.Fragment,{children:g.jsxs("div",{className:"legend-item",children:[g.jsx("span",{className:"color-box",style:{background:t[i]}}),o,i<e.length-1&&g.jsx("span",{className:"divider"})]})},o)),i=[];for(let e=0;e<o.length;e+=6)i.push(g.jsx("div",{className:"legend-row",children:o.slice(e,e+6)},e));return g.jsx("div",{className:"legend-container",children:i})},{labels:e.labels,colors:p()})]})})},exports.PopConfirm=Gr,exports.ProtocolConfiguration=Go,exports.ProtocolYamlCard=({title:e,newVersionMode:r,onToggleNewVersionMode:t,versionOptions:o,selectedVersion:i,onVersionChange:n,onDeploy:a,yaml:l,onYamlChange:s})=>g.jsxs(Zo,{children:[g.jsxs(Wo,{children:[g.jsx(Ko,{children:e}),g.jsxs(Fo,{children:[g.jsx(qo,{checked:r,onChange:t,label:"New Version Mode"}),g.jsx(Yo,{}),g.jsx(Qo,{options:o,value:i,onChange:n,size:"small",width:"120px"}),g.jsx(k,{variant:"primary",size:"medium",onClick:a,children:"Deploy"})]})]}),g.jsx(Xo,{children:g.jsx(He,{value:l,onChange:e=>s(e??""),language:"yaml",theme:"light",onCopy:()=>{},onLaunch:()=>{}})})]}),exports.PythonEditorModal=({open:e,initialValue:t="",title:o="",onSave:i,onCancel:n})=>{const[a,l]=r.useState(t);return g.jsx($r,{isOpen:e,onClose:n,onCloseLabel:"Cancel",onConfirm:()=>{i(a)},onConfirmLabel:"Save Code",title:o,width:"600px",children:g.jsx(Jo,{children:g.jsx(He,{value:a,onChange:e=>l(e??""),language:"python",height:300,theme:"dark",onCopy:()=>{},onLaunch:()=>{}})})})},exports.ScatterGraph=({dataSeries:e,width:t=1e3,height:o=600,xRange:i,yRange:n,xTitle:a="Columns",yTitle:l="Rows",title:s="Scatter Plot"})=>{const d=r.useRef(null),{xMin:p,xMax:h,yMin:x,yMax:u}=(()=>{let r=Number.MAX_VALUE,t=Number.MIN_VALUE,o=Number.MAX_VALUE,i=Number.MIN_VALUE;e.forEach(e=>{e.x.forEach(e=>{r=Math.min(r,e),t=Math.max(t,e)}),e.y.forEach(e=>{o=Math.min(o,e),i=Math.max(i,e)})});const n=.1*(t-r),a=.1*(i-o);return{xMin:r-n,xMax:t+n,yMin:o-a,yMax:i+a}})(),f=i||[p,h],m=n||[x,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:Ii.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:Ii.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:Ii.BLACK_900,linewidth:1,position:0,zeroline:!1},y={showspikes:!0,spikemode:"across",spikedash:"solid",spikecolor:Ii.BLACK_OPACITY_20,spikethickness:2};return r.useEffect(()=>{if(!d.current)return;const r=e.map(e=>({x:e.x,y:e.y,type:"scatter",mode:"markers",name:e.name,marker:{color:e.color,size:10,symbol:"circle"},hovertemplate:`${a}: %{x}<br>${l}: %{y}<extra>${e.name}</extra>`})),p={title:{text:s,font:{size:32,family:"Inter, sans-serif",color:Ii.BLACK_900}},width:t,height:o,margin:{l:80,r:30,b:80,t:60,pad:10},paper_bgcolor:Ii.WHITE,plot_bgcolor:Ii.WHITE,font:{family:"Inter, sans-serif"},dragmode:!1,xaxis:{title:{text:a,font:{size:16,color:Ii.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:32},gridcolor:Ii.GREY_200,range:i,autorange:!i,tickmode:"array",tickvals:C,ticktext:C.map(String),showgrid:!0,...y,...v},yaxis:{title:{text:l,font:{size:16,color:Ii.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:30},gridcolor:Ii.GREY_200,range:n,autorange:!n,tickmode:"array",tickvals:b,showgrid:!0,...y,...v},legend:{x:.5,y:-.2,xanchor:"center",yanchor:"top",orientation:"h",font:{size:16,color:Ii.BLUE_900,family:"Inter, sans-serif",weight:500}},showlegend:!0,hovermode:"closest"};return c.newPlot(d.current,r,p,{responsive:!0,displayModeBar:!1,displaylogo:!1}),()=>{d.current&&c.purge(d.current)}},[e,t,o,i,n,a,l,s]),g.jsx("div",{className:"chart-container",children:g.jsx("div",{ref:d,style:{width:"100%",height:"100%"}})})},exports.SelectField=ti,exports.Sidebar=si,exports.SupportiveText=Kr,exports.Tab=Xr,exports.TabGroup=yi,exports.Table=bi,exports.TableCell=Qr,exports.TableHeaderCell=it,exports.Textarea=st,exports.ThemeProvider=({theme:e={},children:o})=>{const i=r.useMemo(()=>({colors:{...Yi.colors,...e.colors},radius:{...Yi.radius,...e.radius},spacing:{...Yi.spacing,...e.spacing}}),[e]);return r.useEffect(()=>{const e=document.documentElement;return i.colors&&Object.entries(i.colors).forEach(([r,t])=>{t&&e.style.setProperty(`--theme-${r}`,t)}),i.radius&&Object.entries(i.radius).forEach(([r,t])=>{t&&e.style.setProperty(`--theme-radius-${r}`,t)}),i.spacing&&Object.entries(i.spacing).forEach(([r,t])=>{t&&e.style.setProperty(`--theme-spacing-${r}`,t)}),()=>{i.colors&&Object.keys(i.colors).forEach(r=>{e.style.removeProperty(`--theme-${r}`)}),i.radius&&Object.keys(i.radius).forEach(r=>{e.style.removeProperty(`--theme-radius-${r}`)}),i.spacing&&Object.keys(i.spacing).forEach(r=>{e.style.removeProperty(`--theme-spacing-${r}`)})}},[i]),g.jsx(t.ThemeProvider,{theme:i,children:o})},exports.Toast=vt,exports.ToastManager=({position:e="top"})=>{const[t,o]=r.useState([]),[i,n]=r.useState(!1);return r.useEffect(()=>{n(!0);const e=(r=o,Ei.push(r),r(ji),()=>{Ei=Ei.filter(e=>e!==r)});var r;return()=>{e(),n(!1)}},[]),i?s.createPortal(g.jsx(wi,{position:e,children:t.map(r=>g.jsx(ki,{theme:{position:e},children:g.jsx(vt,{type:r.type,heading:r.heading,description:r.description})},r.id))}),document.body):null},exports.Toggle=Et,exports.Tooltip=Re,exports.defaultTheme=Yi;
|
|
1983
|
+
`,Wn=[yi.BLUE,yi.GREEN,yi.ORANGE,yi.RED,yi.YELLOW,yi.PURPLE],Kn={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"}},Yn=t.div`
|
|
1984
|
+
${e=>Object.entries(e.$themeStyles).map(([e,t])=>`${e}: ${t};`).join("\n")}
|
|
1985
|
+
`;exports.AppHeader=Er,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"}],[l,s]=r.useState("Pipelines");return e.jsxs("div",{className:"app-layout",children:[e.jsx(No,{organization:i}),e.jsxs("div",{className:"content-container",children:[e.jsx(oi,{items:a,activeItem:l,onItemClick:e=>{s(e)}}),e.jsxs("div",{className:"main-content",children:[e.jsx(Er,{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:l="normal",xTitle:s="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"===l?0:o-a,yMax:i+a}},[t,l]),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:yi.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:yi.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:yi.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:yi.BLACK_900,lineheight:1.2,standoff:30}}),[h]);return r.useEffect(()=>{if(!p.current)return;let e;if("stacked"===l){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:yi.WHITE,plot_bgcolor:yi.WHITE,font:{family:"Inter, sans-serif"},dragmode:!1,xaxis:{title:{text:s,font:{size:16,color:yi.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:yi.GREY_200,range:n,autorange:!n,tickmode:"array",tickvals:b,showgrid:!0,...w},yaxis:{title:{text:d,font:{size:16,color:yi.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:yi.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:yi.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,l,s,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:l,onCopy:s,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(Nr,{children:e.jsxs(Ar,{children:[e.jsxs($r,{children:[e.jsxs(Rr,{children:[e.jsx(xe,{name:exports.IconName.TETRASCIENCE_ICON,fill:"var(--blue-600)"}),e.jsx(_r,{children:o})]}),e.jsx(zr,{onClick:h,children:e.jsx(xe,{name:exports.IconName.CLOSE,width:"20",height:"20",fill:"var(--black-900)"})})]}),e.jsx(Br,{children:i}),e.jsx(Tr,{children:e.jsx(Hr,{value:f,onChange:e=>{m(e.target.value),l&&l(e.target.value)},rows:2,placeholder:"Type your question here..."})}),e.jsx(Sr,{children:e.jsx(Pr,{children:e.jsx(Ae,{value:p,onChange:e=>x(e??""),language:"python",theme:"dark",height:200,onCopy:s,onLaunch:c})})}),e.jsxs(Or,{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(Vr,{variant:"primary",onClick:()=>d(u),children:[e.jsx(xe,{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:l})=>e.jsxs(p,{$size:r,$variant:o,$disabled:i,className:l,children:[n&&n,t,a&&a]}),exports.BarGraph=({dataSeries:t,width:o=1e3,height:i=600,xRange:n,yRange:a,variant:l="group",xTitle:s="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"===l?0:o-a,yMax:i+a}},[t,l]),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(l){case"stack":return"stack";case"overlay":return"overlay";default:return"group"}},[l]),v=r.useMemo(()=>({tickcolor:yi.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:yi.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:yi.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:yi.BLACK_900}},width:o,height:i,margin:{l:80,r:30,b:80,t:60,pad:0},paper_bgcolor:yi.WHITE,plot_bgcolor:yi.WHITE,font:{family:"Inter, sans-serif"},barmode:b,bargap:.15,dragmode:!1,xaxis:{title:{text:s,font:{size:16,color:yi.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:32},gridcolor:yi.GREY_200,range:n,autorange:!n,tickmode:"array",tickvals:m,showgrid:!0,...v},yaxis:{title:{text:d,font:{size:16,color:yi.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:30},gridcolor:yi.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:yi.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 l=x.current;return()=>{l&&c.purge(l)}},[t,o,i,n,a,s,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:l="Columns",yTitle:s="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:yi.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:yi.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:yi.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:yi.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:yi.WHITE,plot_bgcolor:yi.WHITE,font:{family:"Inter, sans-serif"},dragmode:!1,xaxis:{title:{text:l,font:{size:16,color:yi.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:yi.GREY_200,range:n,autorange:!n,showgrid:!0,...m},yaxis:{title:{text:s,font:{size:16,color:yi.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:yi.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:yi.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,l,s,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(Dr,{$vertical:i,children:t.map(t=>e.jsx(Ur,{$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=ki,exports.COLORS=yi,exports.Card=j,exports.CardSidebar=Xr,exports.Checkbox=be,exports.Chromatogram=({data:t=[],width:o=900,height:i=600,positionInterval:n=10,colorA:a="#2D9CDB",colorT:l="#A1C63C",colorG:s="#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:l,width:2,shape:"spline"}}),[p,g,l]),v=r.useMemo(()=>({x:p,y:f,type:"scatter",mode:"lines",name:"G",line:{color:s,width:2,shape:"spline"}}),[p,f,s]),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?l:"G"===o?s:"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:l="Signal (mAU)",annotations:s=[],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,L=r.useRef(null),I=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:Di(t.y,C,b)}}),[t,C,b]),E=r.useMemo(()=>{if(0===s.length||0===I.length)return s;const{x:e,y:t}=I[0];return function(e,t,r){return e.map(e=>{if(void 0!==e.startX&&void 0!==e.endX){const o=Vi(t,e.startX),i=Vi(t,e.endX),n=Vi(t,e.x),a=e._computed?.area??Si(t,r,o,i);return{...e,_computed:{...e._computed,index:n,startIndex:o,endIndex:i,area:a}}}return e})}(s,e,t)},[s,I]),N=r.useMemo(()=>{const e=[];return M&&v&&I.forEach((t,r)=>{const o=Oi(t.x,t.y,v);o.length>0&&e.push({peaks:o,seriesIndex:r})}),e},[I,M,v]);return r.useEffect(()=>{const e=L.current;if(!e||0===t.length)return;const r=I.map((e,t)=>{const r=e.color||ki[t%ki.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} ${l}<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,E,I);if(e.length>0){const t=function(e){const t=[];for(const{peaks:r,seriesIndex:o,x:i}of e){const e=ki[o%ki.length],n=-16*o-5,a=-16*o-12;for(const o of r){const r=o._computed?.startIndex??0,l=o._computed?.endIndex??0,s=i[r],c=i[l],d=o.startMarker??"triangle",h=o.endMarker??"diamond";t.push(...Bi(s,n,d,e)),t.push(...Bi(c,a,h,e))}}return t}(e);r.push(...t)}}const s=[];E.forEach(e=>{s.push({peak:e,seriesIndex:-1})}),w&&M&&N.forEach(({peaks:e,seriesIndex:t})=>{e.forEach(e=>{s.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}(s,k),b=[];for(const e of C)b.push(...zi(e));const v={title:n?{text:n,font:{size:20,family:"Inter, sans-serif",color:yi.BLACK_900}}:void 0,width:o,height:i,margin:{l:ji,r:Mi,b:Li,t:n?Ii:Ei,pad:Ni},paper_bgcolor:yi.WHITE,plot_bgcolor:yi.WHITE,font:{family:"Inter, sans-serif"},hovermode:m?"x":"x unified",dragmode:"zoom",xaxis:{title:{text:a,font:{size:14,color:yi.BLACK_600,family:"Inter, sans-serif"},standoff:15},showgrid:x,gridcolor:yi.GREY_200,linecolor:yi.BLACK_900,linewidth:1,range:d,autorange:!d,zeroline:!1,tickfont:{size:12,color:yi.BLACK_900,family:"Inter, sans-serif"},showspikes:m,spikemode:"across",spikesnap:"cursor",spikecolor:yi.GREY_500,spikethickness:1,spikedash:"dot"},yaxis:{title:{text:l,font:{size:14,color:yi.BLACK_600,family:"Inter, sans-serif"},standoff:10},showgrid:u,gridcolor:yi.GREY_200,linecolor:yi.BLACK_900,linewidth:1,range:h,autorange:!h,zeroline:!1,tickfont:{size:12,color:yi.BLACK_900,family:"Inter, sans-serif"},showspikes:m,spikemode:"across",spikesnap:"cursor",spikecolor:yi.GREY_500,spikethickness:1,spikedash:"dot"},legend:{x:.5,y:-.15,xanchor:"center",yanchor:"top",orientation:"h",font:{size:12,color:yi.BLACK_900,family:"Inter, sans-serif"}},showlegend:p&&t.length>1,annotations:b},A={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,A),()=>{e&&c.purge(e)}},[I,N,t.length,o,i,n,a,l,E,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:L,style:{width:"100%",height:"100%"}})})},exports.CodeEditor=Ae,exports.CodeScriptEditorButton=({initialCode:t="",onCodeSave:o,language:i="python",buttonText:n="Edit Code",modalTitle:a="Edit Code",buttonProps:l,modalProps:s,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(qr,{children:[e.jsx(eo,{children:e.jsx(f,{leftIcon:e.jsx(xe,{name:exports.IconName.PENCIL}),onClick:m,size:"small",variant:"tertiary",...l,disabled:c,children:n})}),e.jsxs(Jr,{title:`${u} lines, ${g} characters`,children:[u," lines / ",g," chars"]})]}),e.jsx(Rt,{isOpen:d,onClose:b,onConfirm:C,onCloseLabel:"Cancel",onConfirmLabel:"Save Code",title:a,width:"80%",...s,children:e.jsx(Qr,{children:e.jsx(Ae,{height:"400px",language:i,value:p,onChange:v,options:{minimap:{enabled:!1}}})})})]})},exports.DotPlot=({dataSeries:t,width:o=1e3,height:i=600,title:n="Dot Plot",xTitle:a="Columns",yTitle:l="Rows",variant:s="default",markerSize:d=8})=>{const h=r.useRef(null),p=r.useMemo(()=>Array.isArray(t)?t:[t],[t]),x=r.useMemo(()=>[yi.ORANGE,yi.RED,yi.GREEN,yi.BLUE,yi.YELLOW,yi.PURPLE],[]),u=r.useMemo(()=>["circle","square","diamond","triangle-up","triangle-down","star"],[]),g=r.useMemo(()=>p.map((e,t)=>"default"===s?{...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,s,d,x,u]),f=yi.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:yi.WHITE,width:1}},hovertemplate:`${a}: %{x}<br>${l}: %{y}<extra>${e.name}</extra>`})),[g,a,l]),C=r.useMemo(()=>({tickcolor:yi.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:yi.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:yi.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:yi.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:yi.BLUE_900,family:"Inter, sans-serif",weight:500,lineheight:18}},xaxis:{title:{text:a,font:{size:16,color:yi.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:f,...C},yaxis:{title:{text:l,font:{size:16,color:yi.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:15},gridcolor:f,...C},paper_bgcolor:yi.WHITE,plot_bgcolor:yi.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,l,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=Pe,exports.ErrorAlert=({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:l,errorType:s}=et(t);return e.jsxs(Oe,{type:"error",children:[e.jsxs(Ve,{children:[e.jsxs(Ge,{children:[e.jsx(De,{children:"⚠️"}),r]}),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(tt,{header:"Details",defaultExpanded:i,children:e.jsx(Qe,{children:l})})})]})]})},exports.FormField=oo,exports.Heatmap=({data:t,xLabels:o,yLabels:i,title:n,xTitle:a,yTitle:l,colorscale:s,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=s;return e.jsx(Ln,{data:b,plateFormat:"custom",rows:m,columns:C,title:n,xTitle:a,yTitle:l,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:l="Frequency",bargap:s=.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(()=>[yi.ORANGE,yi.RED,yi.BLUE,yi.GREEN,yi.PURPLE,yi.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=yi.GREY_200,m=r.useMemo(()=>g.map(e=>({type:"histogram",x:e.x,name:e.name,marker:{color:e.color,line:{color:yi.WHITE,width:1},opacity:e.opacity},autobinx:e.autobinx,xbins:e.xbins,hovertemplate:`${a}: %{x}<br>${l}: %{y}<extra>${e.name}</extra>`})),[g,a,l]),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,l=i-.1*a,s=n+.1*a,c=e.xbins||{start:l,end:s,size:a/10},d=((e,t,r,o,i=100)=>{const n=[],a=[],l=(o-r)/(i-1);for(let o=0;o<i;o++){const i=r+o*l;n.push(i);const s=-.5*Math.pow((i-e)/t,2),c=1/(t*Math.sqrt(2*Math.PI))*Math.exp(s);a.push(c)}return{x:n,y:a}})(t,o,l,s,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:yi.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:20},gridcolor:f,tickcolor:yi.GREY_200,ticklen:8,tickwidth:1,ticks:"outside",linecolor:yi.BLACK_900,linewidth:1,zeroline:!1},yaxis:{title:{text:l,font:{size:16,color:yi.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:20},gridcolor:f,tickcolor:yi.GREY_200,ticklen:8,tickwidth:1,ticks:"outside",linecolor:yi.BLACK_900,linewidth:1,zeroline:!1,rangemode:"tozero"},barmode:x,bargap:s,paper_bgcolor:yi.WHITE,plot_bgcolor:yi.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,l,s,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=xe,exports.Input=at,exports.Label=ht,exports.LaunchContent=po,exports.LineGraph=({dataSeries:t,width:o=1e3,height:i=600,xRange:n,yRange:a,variant:l="lines",xTitle:s="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(l){case"lines+markers":case"lines+markers+error_bars":return"lines+markers";default:return"lines"}},[l]),b=r.useMemo(()=>({tickcolor:yi.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:yi.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:yi.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"===l?{opacity:0}:{color:e.color,size:8,symbol:e.symbol||"triangle-up"},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})),r={title:{text:h,font:{size:32,family:"Inter, sans-serif",color:yi.BLACK_900}},width:o,height:i,margin:{l:80,r:30,b:80,t:60,pad:10},paper_bgcolor:yi.WHITE,plot_bgcolor:yi.WHITE,font:{family:"Inter, sans-serif"},dragmode:!1,xaxis:{title:{text:s,font:{size:16,color:yi.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:32},gridcolor:yi.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:yi.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:30},gridcolor:yi.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:yi.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,s,d,h,C,b,m,f,g,l]),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,l]=r.useState("Pipelines"),[s,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(In,{children:[e.jsx(No,{organization:i}),e.jsxs(En,{children:[e.jsx(oi,{items:n,activeItem:a,onItemClick:e=>{l(e)}}),e.jsxs(Nn,{children:[e.jsx(Er,{hostname:o,userProfile:t,onHomeClick:()=>{console.log("Home clicked")},onSettingsClick:()=>{console.log("Settings clicked")},onUserProfileClick:()=>{console.log("User profile clicked")}}),e.jsx(An,{children:e.jsx($n,{children:e.jsxs("div",{style:{display:"flex",height:"100%"},children:[e.jsxs(Tn,{children:[e.jsx(fi,{tabs:[{id:"templates",label:"Templates"},{id:"protocol",label:"Protocol"},{id:"steps",label:"Steps"}],activeTab:s,onChange:e=>{c(e)}}),"templates"===s&&e.jsxs(e.Fragment,{children:[e.jsxs(Rn,{children:[e.jsx(_n,{children:"Templates"}),e.jsxs(zn,{children:[e.jsx(Bn,{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(Bn,{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(Pn,{children:u.length>0?u.map(t=>e.jsx(Dn,{onClick:()=>f(t.id),children:e.jsx(Un,{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(On,{children:[e.jsx(xe,{name:exports.IconName.INBOX,width:"40",height:"40",fill:"var(--grey-400)"}),e.jsx(Vn,{children:"No data"})]})})]}),"protocol"===s&&e.jsxs(e.Fragment,{children:[e.jsx(Rn,{children:e.jsxs(_n,{children:["Protocol (",g.length,")"]})}),e.jsx(Pn,{children:g.length>0?g.map(t=>e.jsx(Dn,{onClick:()=>f(t.id),children:e.jsx(Un,{title:t.title,description:t.description,status:p===t.id?"active":"default",onButtonClick:()=>m(t.id),onLinkClick:()=>C(t.id)})},t.id)):e.jsxs(On,{children:[e.jsx(xe,{name:exports.IconName.INBOX,width:"40",height:"40",fill:"var(--grey-400)"}),e.jsx(Vn,{children:"No data"})]})})]}),"steps"===s&&e.jsxs(e.Fragment,{children:[e.jsx(Rn,{children:e.jsxs(_n,{children:["Task Scripts (",0,")"]})}),e.jsx(Pn,{children:g.length>0?g.map(t=>e.jsx(Dn,{onClick:()=>f(t.id),children:e.jsx(Un,{title:t.title,description:t.description,status:p===t.id?"active":"default",onButtonClick:()=>m(t.id),onLinkClick:()=>C(t.id)})},t.id)):e.jsxs(On,{children:[e.jsx(xe,{name:exports.IconName.INBOX,width:"40",height:"40",fill:"var(--grey-400)"}),e.jsx(Vn,{children:"No data"})]})})]})]}),e.jsxs(Hn,{children:[e.jsx(Sn,{children:e.jsx(fi,{tabs:[{id:"pipelineBuilder",label:"Pipeline Builder"},{id:"configuration",label:"Configuration"},{id:"launch",label:"Launch"}],activeTab:d,onChange:e=>{h(e)}})}),e.jsxs(Gn,{children:["pipelineBuilder"===d&&e.jsx(Zn,{}),"configuration"===d&&e.jsx(Po,{}),"launch"===d&&e.jsx(po,{})]})]})]})})})]})]})]})},exports.MarkdownDisplay=({markdown:t,codeRenderer:r})=>e.jsx(i,{remarkPlugins:[l],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(xo,{className:a,children:[t&&e.jsx(uo,{children:t}),e.jsx(go,{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=Rt,exports.Navbar=No,exports.PieChart=({dataSeries:t,width:o=400,height:i=400,title:n="Pie Chart",textInfo:a="percent",hole:l=0,rotation:s=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(Wn[t%Wn.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:l,rotation:s}],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,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: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=Ln,exports.PopConfirm=St,exports.ProtocolConfiguration=Po,exports.ProtocolYamlCard=({title:t,newVersionMode:r,onToggleNewVersionMode:o,versionOptions:i,selectedVersion:n,onVersionChange:a,onDeploy:l,yaml:s,onYamlChange:c})=>e.jsxs(Oo,{children:[e.jsxs(Vo,{children:[e.jsx(Do,{children:t}),e.jsxs(Uo,{children:[e.jsx(Wo,{checked:r,onChange:o,label:"New Version Mode"}),e.jsx(Go,{}),e.jsx(Ko,{options:i,value:n,onChange:a,size:"small",width:"120px"}),e.jsx(f,{variant:"primary",size:"medium",onClick:l,children:"Deploy"})]})]}),e.jsx(Zo,{children:e.jsx(Ae,{value:s,onChange:e=>c(e??""),language:"yaml",theme:"light",onCopy:()=>{},onLaunch:()=>{}})})]}),exports.PythonEditorModal=({open:t,initialValue:o="",title:i="",onSave:n,onCancel:a})=>{const[l,s]=r.useState(o);return e.jsx(Rt,{isOpen:t,onClose:a,onCloseLabel:"Cancel",onConfirm:()=>{n(l)},onConfirmLabel:"Save Code",title:i,width:"600px",children:e.jsx(Yo,{children:e.jsx(Ae,{value:l,onChange:e=>s(e??""),language:"python",height:300,theme:"dark",onCopy:()=>{},onLaunch:()=>{}})})})},exports.ScatterGraph=({dataSeries:t,width:o=1e3,height:i=600,xRange:n,yRange:a,xTitle:l="Columns",yTitle:s="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:yi.GREY_200,ticklen:12,tickwidth:1,ticks:"outside",tickfont:{size:16,color:yi.BLACK_900,family:"Inter, sans-serif",weight:400},linecolor:yi.BLACK_900,linewidth:1,position:0,zeroline:!1}),[]),w=r.useMemo(()=>({showspikes:!0,spikemode:"across",spikedash:"solid",spikecolor:yi.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:`${l}: %{x}<br>${s}: %{y}<extra>${e.name}</extra>`})),r={title:{text:d,font:{size:32,family:"Inter, sans-serif",color:yi.BLACK_900}},width:o,height:i,margin:{l:80,r:30,b:80,t:60,pad:10},paper_bgcolor:yi.WHITE,plot_bgcolor:yi.WHITE,font:{family:"Inter, sans-serif"},dragmode:!1,xaxis:{title:{text:l,font:{size:16,color:yi.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:32},gridcolor:yi.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:yi.BLACK_600,family:"Inter, sans-serif",weight:400},standoff:30},gridcolor:yi.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:yi.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,l,s,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=qo,exports.Sidebar=oi,exports.SupportiveText=Vt,exports.Tab=Gt,exports.TabGroup=fi,exports.Table=ui,exports.TableCell=Wt,exports.TableHeaderCell=Qt,exports.Textarea=rr,exports.ThemeProvider=({theme:o={},children:i})=>{const n=r.useMemo(()=>({colors:{...Kn.colors,...o.colors},radius:{...Kn.radius,...o.radius},spacing:{...Kn.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(Yn,{$themeStyles:a,children:i})})},exports.Toast=ur,exports.ToastManager=({position:t="top"})=>{const[o,i]=r.useState([]),[n,a]=r.useState(!1);return r.useEffect(()=>{a(!0);const e=(t=i,vi.push(t),t(bi),()=>{vi=vi.filter(e=>e!==t)});var t;return()=>{e(),a(!1)}},[]),n?s.createPortal(e.jsx(mi,{position:t,children:o.map(r=>e.jsx(Ci,{theme:{position:t},children:e.jsx(ur,{type:r.type,heading:r.heading,description:r.description})},r.id))}),document.body):null},exports.Toggle=br,exports.Tooltip=ye,exports.defaultTheme=Kn;
|
|
1983
1986
|
//# sourceMappingURL=index.js.map
|