pixel-react 1.1.0 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- package/.yarn/install-state.gz +0 -0
- package/lib/components/Charts/DashboardDonutChart/DashboardDonutChart.d.ts +5 -0
- package/lib/components/Charts/DashboardDonutChart/DashboardDonutChart.stories.d.ts +7 -0
- package/lib/components/Charts/DashboardDonutChart/index.d.ts +1 -0
- package/lib/components/Charts/DashboardDonutChart/types.d.ts +21 -0
- package/lib/components/Charts/PieChart/PieChart.d.ts +5 -0
- package/lib/components/Charts/PieChart/PieChart.stories.d.ts +7 -0
- package/lib/components/Charts/PieChart/index.d.ts +1 -0
- package/lib/components/Charts/PieChart/types.d.ts +27 -0
- package/lib/components/FF_Captcha/Recaptcha.d.ts +5 -0
- package/lib/components/FF_Captcha/captcha.stories.d.ts +8 -0
- package/lib/components/FF_Captcha/types.d.ts +20 -0
- package/lib/components/MultiSelect/MultiSelect.d.ts +1 -1
- package/lib/components/MultiSelect/MultiSelectTypes.d.ts +1 -1
- package/lib/components/NLPInput/NlpInput.d.ts +4 -0
- package/lib/components/NLPInput/NlpInput.stories.d.ts +7 -0
- package/lib/components/NLPInput/components/NlpDropDown/NlpDropDownType.d.ts +19 -0
- package/lib/components/NLPInput/components/NlpDropDown/NlpDropdown.d.ts +4 -0
- package/lib/components/NLPInput/index.d.ts +1 -0
- package/lib/components/NLPInput/type.d.ts +70 -0
- package/lib/components/Table/Table.d.ts +1 -1
- package/lib/index.d.ts +96 -19
- package/lib/index.esm.js +2951 -249
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +2953 -247
- package/lib/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/getEncryptedData/getEncryptedData.d.ts +2 -0
- package/lib/utils/getEncryptedData/getEncryptedData.stories.d.ts +6 -0
- package/package.json +6 -2
- package/src/StyleGuide/ColorPalette/ColorPalette.tsx +2 -4
- package/src/StyleGuide/ColorPalette/colorPaletteList.ts +95 -20
- package/src/assets/Themes/BaseTheme.scss +2 -3
- package/src/assets/Themes/DarkTheme.scss +9 -8
- package/src/assets/icons/wswb_delete_icon.svg +4 -0
- package/src/assets/icons/wswb_plus_icon.svg +5 -0
- package/src/components/Charts/DashboardDonutChart/DashboardDonutChart.scss +145 -0
- package/src/components/Charts/DashboardDonutChart/DashboardDonutChart.stories.tsx +52 -0
- package/src/components/Charts/DashboardDonutChart/DashboardDonutChart.tsx +335 -0
- package/src/components/Charts/DashboardDonutChart/index.ts +1 -0
- package/src/components/Charts/DashboardDonutChart/types.ts +33 -0
- package/src/components/Charts/PieChart/PieChart.scss +39 -0
- package/src/components/Charts/PieChart/PieChart.stories.tsx +46 -0
- package/src/components/Charts/PieChart/PieChart.tsx +193 -0
- package/src/components/Charts/PieChart/index.ts +1 -0
- package/src/components/Charts/PieChart/types.ts +28 -0
- package/src/components/FF_Captcha/Recaptcha.scss +11 -0
- package/src/components/FF_Captcha/Recaptcha.tsx +41 -0
- package/src/components/FF_Captcha/captcha.stories.tsx +40 -0
- package/src/components/FF_Captcha/index.ts +0 -0
- package/src/components/FF_Captcha/types.ts +22 -0
- package/src/components/Icon/iconList.ts +6 -0
- package/src/components/Modal/modal.scss +1 -1
- package/src/components/MultiSelect/MultiSelect.stories.tsx +2 -3
- package/src/components/MultiSelect/MultiSelect.tsx +35 -23
- package/src/components/MultiSelect/MultiSelectTypes.ts +1 -1
- package/src/components/NLPInput/NLPInput.scss +246 -0
- package/src/components/NLPInput/NlpInput.stories.tsx +136 -0
- package/src/components/NLPInput/NlpInput.tsx +374 -0
- package/src/components/NLPInput/components/NlpDropDown/NlpDropDownType.ts +60 -0
- package/src/components/NLPInput/components/NlpDropDown/NlpDropdown.scss +83 -0
- package/src/components/NLPInput/components/NlpDropDown/NlpDropdown.tsx +180 -0
- package/src/components/NLPInput/index.ts +1 -0
- package/src/components/NLPInput/type.tsx +124 -0
- package/src/components/Table/Table.scss +5 -0
- package/src/components/Table/Table.stories.tsx +12 -0
- package/src/components/Table/Table.tsx +25 -14
- package/src/components/TextArea/Textarea.scss +1 -1
- package/src/index.ts +8 -1
- package/src/utils/getEncryptedData/getEncryptedData.stories.tsx +55 -0
- package/src/utils/getEncryptedData/getEncryptedData.ts +10 -0
- package/lib/components/AddButton/AddButton.d.ts +0 -5
- package/lib/components/AddButton/AddButton.stories.d.ts +0 -6
- package/lib/components/AddButton/index.d.ts +0 -1
- package/lib/components/AddButton/types.d.ts +0 -4
package/lib/index.esm.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
2
2
|
import * as React from 'react';
|
3
|
-
import React__default, { forwardRef, useEffect, useState, createContext, useContext, useRef, useMemo, useCallback, useReducer, createElement, PureComponent, useLayoutEffect, memo, cloneElement } from 'react';
|
3
|
+
import React__default, { forwardRef, useEffect, useState, createContext, useContext, useRef, useMemo, useCallback, useReducer, createElement, PureComponent, useLayoutEffect, memo, cloneElement, Component } from 'react';
|
4
4
|
import { createPortal, unstable_batchedUpdates } from 'react-dom';
|
5
5
|
|
6
6
|
function styleInject(css, ref) {
|
@@ -28,11 +28,11 @@ function styleInject(css, ref) {
|
|
28
28
|
}
|
29
29
|
}
|
30
30
|
|
31
|
-
var css_248z$
|
32
|
-
styleInject(css_248z$
|
31
|
+
var css_248z$L = ":root {\n --tooltip-bg-color: #1e161f;\n --status-approved-text-color: #016102;\n --status-warning-text-color: #ff8b00;\n --status-rejected-text-color: #c60202;\n --status-skipped-text-color: #3c3838;\n --status-approved-bg-color: #c6efcd;\n --status-rejected-bg-color: #f7d9d9;\n --status-warning-bg-color: #fae2c6;\n --status-skipped-bg-color: #c4c3c3;\n --brand-color: #71347b;\n --icons-default-color: #71347b;\n --default-icon-color: #a3a3a3;\n --default-color: #747474;\n --primary-icon-color: #ffffff;\n --secondary-icon-color: #71347b;\n --system-color--error: #c50303;\n --hover-color: #f7ebff;\n --brand2-color: #610b86;\n --status-warning-hover-bg-color: #fcd8ac;\n --status-percentage-growth-bg-color: #ecedf8;\n --primary-icon-color: #ffffff;\n --secondary-icon-color: #71347b;\n --description-text-color:#d9d9d9;\n --expandable-menu-default-bg: #fdfaff;\n --expandable-menu-option-bg: rgba(97, 11, 134, 0.1019607843);\n --text-color: #1e161f;\n --file-dropzone-default-color: rgba(113, 52, 123, 0.1019607843);\n --file-dropzone-selected-color: rgba(113, 52, 123, 0.2);\n --file-details-container-shadow: rgba(30, 22, 31, 0.1607843137);\n --file-details-bg: #ffffff;\n --error-light: #e42525;\n --tabs-label-default-color: tabs-label-default-color;\n --tabs-label-active-color: tabs-label-active-color;\n --tabs-border-color: tabs-border-color;\n --tabs-bg-color: tabs-bg-color;\n --tab-bg-color: tab-bg-color;\n --toggle-button-bg-color: #ffffff;\n --toggle-strip-shadow: rgba(0, 0, 0, 0.2509803922);\n --toggle-strip-color: #cfd1e2;\n --disable-color: rgba(113, 52, 123, 0.5019607843);\n --toggle-strip-color: #cfd1e2;\n --add-icon-hover-color: #431b4a;\n --arrows-button-border-color: #ded1e5;\n --arrow-button-bg-color: #ffffff;\n --text-bg-highlight:#f5fb00;\n --slider-table-color: #efe1f9;\n}\n\n@font-face {\n font-family: \"Poppins\";\n font-weight: 400;\n src: local(\"Poppins-Regular\"), url(../../fonts/Poppins/Poppins-Regular.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 500;\n src: local(\"Poppins-Medium\"), url(../../fonts/Poppins/Poppins-Medium.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 600;\n src: local(\"Poppins-SemiBold\"), url(../../fonts/Poppins/Poppins-SemiBold.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 700;\n src: local(\"Poppins-Bold\"), url(../../fonts/Poppins/Poppins-Bold.ttf) format(\"truetype\");\n}\n.fontXs, .ff-button, .ff-button--small, .ff-button--medium {\n font-family: \"Poppins\", sans-serif;\n font-size: 10px;\n}\n\n.fontSm {\n font-family: \"Poppins\", sans-serif;\n font-size: 12px;\n}\n\n.fontMd, .ff-button--large {\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\", sans-serif;\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\", sans-serif;\n font-size: 18px;\n}\n\n.font2Xl {\n font-family: \"Poppins\", sans-serif;\n font-size: 24px;\n}\n\n.font-size-8 {\n font-family: \"Poppins\", sans-serif;\n font-size: 8px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\", sans-serif;\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\", sans-serif;\n font-size: 80px;\n}\n\n.ff-button {\n width: auto;\n background-color: #ffffff;\n border-radius: 4px;\n padding: 4px 8px;\n text-align: center;\n text-decoration: none;\n font-weight: 500;\n cursor: pointer;\n display: flex;\n gap: 4px;\n justify-content: center;\n align-items: center;\n border: 2px solid transparent;\n}\n.ff-button--transparent {\n background-color: transparent;\n}\n.ff-button--primary, .ff-button--delete, .ff-button--secondary {\n position: relative;\n cursor: pointer;\n border-radius: 4px;\n z-index: 1;\n border: none;\n overflow: hidden;\n}\n.ff-button--primary:before, .ff-button--delete:before, .ff-button--secondary:before {\n content: \"\";\n position: absolute;\n inset: 0;\n border-radius: 4px;\n padding: 0.6px;\n background: linear-gradient(180deg, #46164d 3.04%, #71347b 100%);\n mask: linear-gradient(#ffffff 0 0) content-box, linear-gradient(#ffffff 0 0);\n mask-composite: exclude;\n -webkit-mask: linear-gradient(#ffffff 0 0) content-box, linear-gradient(#ffffff 0 0);\n -webkit-mask-composite: destination-out;\n z-index: -1;\n}\n.ff-button--primary:hover, .ff-button--delete:hover, .ff-button--secondary:hover {\n background: linear-gradient(179.06deg, #8d3b9a 3.49%, #781f86 99.22%);\n}\n.ff-button--primary:disabled, .ff-button--delete:disabled, .ff-button--secondary:disabled {\n opacity: 50%;\n cursor: no-drop;\n}\n.ff-button--primary:disabled:before, .ff-button--delete:disabled:before, .ff-button--secondary:disabled:before {\n content: \"\";\n position: absolute;\n inset: 0;\n border-radius: 4px;\n padding: 0.6px;\n -webkit-mask-composite: destination-out;\n mask-composite: exclude;\n z-index: -1;\n}\n.ff-button--primary {\n background: linear-gradient(188.79deg, #71347b 2.94%, #46164d 93.09%);\n}\n.ff-button--primary:before {\n background: linear-gradient(180deg, #46164d 3.04%, #71347b 100%);\n}\n.ff-button--primary:hover {\n background: linear-gradient(179.06deg, #8d3b9a 3.49%, #781f86 99.22%);\n}\n.ff-button--delete {\n background: linear-gradient(179.06deg, #e42525 3.49%, #c90000 99.22%);\n color: #ffffff;\n}\n.ff-button--delete:before {\n background: linear-gradient(180deg, #a90707 3.04%, #e42525 100%);\n}\n.ff-button--delete:hover {\n background: linear-gradient(179.06deg, #e95151 3.49%, #d43434 99.22%);\n}\n.ff-button--secondary:before {\n background: linear-gradient(180deg, #46164d 3.04%, #71347b 100%);\n}\n.ff-button--secondary:hover {\n background: linear-gradient(179.06deg, rgba(113, 52, 123, 0.0509803922) 3.49%, rgba(70, 22, 77, 0.0509803922) 99.22%);\n}\n.ff-button--tertiary {\n border: none;\n background: linear-gradient(179.06deg, rgba(113, 52, 123, 0.0509803922) 3.49%, rgba(70, 22, 77, 0.0509803922) 99.22%);\n}\n.ff-button--tertiary:hover {\n background: linear-gradient(179.06deg, rgba(113, 52, 123, 0.1019607843) 3.49%, rgba(70, 22, 77, 0.1019607843) 99.22%);\n}\n.ff-button--tertiary:disabled {\n opacity: 0.5;\n cursor: no-drop;\n}\n.ff-button--small {\n font-weight: 500;\n padding: 4.5px 8px;\n}\n.ff-button--medium {\n font-weight: 500;\n padding: 6px 12px;\n}\n.ff-button--large {\n padding: 8px 16px;\n}\n.ff-button-primary--text {\n color: #ffffff;\n}\n.ff-button-secondary--text, .ff-button-tertiary--text {\n background: linear-gradient(179.06deg, #71347b 3.49%, #46164d 99.22%);\n -webkit-background-clip: text;\n background-clip: text;\n color: transparent;\n}";
|
32
|
+
styleInject(css_248z$L);
|
33
33
|
|
34
|
-
var css_248z$
|
35
|
-
styleInject(css_248z$
|
34
|
+
var css_248z$K = ":root {\n --tooltip-bg-color: #1e161f;\n --status-approved-text-color: #016102;\n --status-warning-text-color: #ff8b00;\n --status-rejected-text-color: #c60202;\n --status-skipped-text-color: #3c3838;\n --status-approved-bg-color: #c6efcd;\n --status-rejected-bg-color: #f7d9d9;\n --status-warning-bg-color: #fae2c6;\n --status-skipped-bg-color: #c4c3c3;\n --brand-color: #71347b;\n --icons-default-color: #71347b;\n --default-icon-color: #a3a3a3;\n --default-color: #747474;\n --primary-icon-color: #ffffff;\n --secondary-icon-color: #71347b;\n --system-color--error: #c50303;\n --hover-color: #f7ebff;\n --brand2-color: #610b86;\n --status-warning-hover-bg-color: #fcd8ac;\n --status-percentage-growth-bg-color: #ecedf8;\n --primary-icon-color: #ffffff;\n --secondary-icon-color: #71347b;\n --description-text-color:#d9d9d9;\n --expandable-menu-default-bg: #fdfaff;\n --expandable-menu-option-bg: rgba(97, 11, 134, 0.1019607843);\n --text-color: #1e161f;\n --file-dropzone-default-color: rgba(113, 52, 123, 0.1019607843);\n --file-dropzone-selected-color: rgba(113, 52, 123, 0.2);\n --file-details-container-shadow: rgba(30, 22, 31, 0.1607843137);\n --file-details-bg: #ffffff;\n --error-light: #e42525;\n --tabs-label-default-color: tabs-label-default-color;\n --tabs-label-active-color: tabs-label-active-color;\n --tabs-border-color: tabs-border-color;\n --tabs-bg-color: tabs-bg-color;\n --tab-bg-color: tab-bg-color;\n --toggle-button-bg-color: #ffffff;\n --toggle-strip-shadow: rgba(0, 0, 0, 0.2509803922);\n --toggle-strip-color: #cfd1e2;\n --disable-color: rgba(113, 52, 123, 0.5019607843);\n --toggle-strip-color: #cfd1e2;\n --add-icon-hover-color: #431b4a;\n --arrows-button-border-color: #ded1e5;\n --arrow-button-bg-color: #ffffff;\n --text-bg-highlight:#f5fb00;\n --slider-table-color: #efe1f9;\n}";
|
35
|
+
styleInject(css_248z$K);
|
36
36
|
|
37
37
|
function getDefaultExportFromCjs (x) {
|
38
38
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
@@ -235,6 +235,10 @@ const SvgSwitchLicenseIcon = (props) => /* @__PURE__ */ React.createElement("svg
|
|
235
235
|
|
236
236
|
const SvgFireflinkLogo = (props) => /* @__PURE__ */ React.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 238 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M61.4537 17.8485V22.8928H71.6263V27.9317H61.4537V35.7966H54.8828V12.8096H72.9844V17.8485H61.4537Z", fill: "currentColor" }), /* @__PURE__ */ React.createElement("path", { d: "M76.4541 12.8095H83.025V35.6658H76.4541V12.8095Z", fill: "currentColor" }), /* @__PURE__ */ React.createElement("path", { d: "M97.9099 29.6458H94.3082V35.6685H87.7373V12.8095H98.2755C104.599 12.8095 108.566 16.0035 108.566 21.2876C108.631 22.7986 108.242 24.2947 107.447 25.5858C106.653 26.877 105.489 27.905 104.104 28.5394L109.053 35.6658H102.119L97.9099 29.6458ZM98.0336 17.8484H94.4319V24.4843H98.0281C100.755 24.4843 102.119 23.2552 102.119 21.165C101.995 19.2001 100.755 17.8484 98.0281 17.8484H98.0336Z", fill: "currentColor" }), /* @__PURE__ */ React.createElement("path", { d: "M131.006 30.6296V35.6685H112.533V12.8095H130.635V17.8484H118.98V21.6637H129.271V26.4573H118.98V30.6351L131.006 30.6296Z", fill: "currentColor" }), /* @__PURE__ */ React.createElement("path", { d: "M141.421 17.8484V22.8928H151.593V27.9317H141.421V35.7966H134.85V12.8095H152.951V17.8484H141.421Z", fill: "currentColor" }), /* @__PURE__ */ React.createElement("path", { d: "M156.298 12.8095H162.869V30.507H173.894V35.6685H156.413V12.8095H156.298Z", fill: "currentColor" }), /* @__PURE__ */ React.createElement("path", { d: "M176.752 12.8095H183.323V35.6658H176.752V12.8095Z", fill: "currentColor" }), /* @__PURE__ */ React.createElement("path", { d: "M210.104 12.8095V35.6658H204.773L194.601 23.5005V35.6658H188.159V12.8095H193.49L203.663 24.9748V12.8095H210.104Z", fill: "currentColor" }), /* @__PURE__ */ React.createElement("path", { d: "M223.866 27.4329L221.391 30.0137V35.7884H214.938V12.8095H221.386V22.2714L230.313 12.8095H237.502L228.08 22.8928L238 35.6739H230.436L223.866 27.4329Z", fill: "currentColor" }), /* @__PURE__ */ React.createElement("path", { d: "M16.7502 4.88842C16.1316 5.25632 15.6341 5.50162 15.1392 5.74961C13.2807 6.7334 11.5431 7.59181 9.68453 8.5756C9.5558 8.64839 9.45159 8.75748 9.3855 8.88897C9.31942 9.02047 9.29442 9.16842 9.31335 9.31412V46.5486C9.31335 47.0391 9.18969 47.4097 8.69481 47.5323C7.77434 47.9098 6.7758 48.0623 5.78338 47.9769C4.79096 47.8916 3.83353 47.5709 2.99243 47.0418C2.37431 46.6111 1.84823 46.0636 1.44391 45.4309C1.0396 44.7982 0.765171 44.0926 0.636432 43.3546C0.327663 41.3625 0.203398 39.3465 0.265245 37.3319C0.141525 27.4994 0.0178993 17.547 0.0178993 7.7145C-0.0791099 6.15032 0.219297 4.58688 0.886463 3.16613C1.44789 1.9794 2.41841 1.03032 3.62304 0.489747C4.82768 -0.050828 6.18734 -0.147392 7.45741 0.217461C9.21628 0.744425 10.8848 1.5318 12.4063 2.55294C13.781 3.29147 15.1337 4.0273 16.3736 4.76583C16.5028 4.64047 16.6265 4.76306 16.7502 4.88842Z", fill: "currentColor" }), /* @__PURE__ */ React.createElement("path", { d: "M16.9984 42.736V32.0423C16.9942 31.8984 17.026 31.7558 17.0907 31.6269C17.1555 31.4981 17.2512 31.3871 17.3696 31.3038C21.5843 28.9683 25.7989 26.6328 29.8926 24.3001C31.0089 23.6869 32.1253 23.071 33.3625 22.3324C32.6455 21.8761 31.8998 21.4656 31.13 21.1034C29.2715 19.997 27.41 19.0132 25.5515 17.9095C25.46 17.8474 25.3516 17.8141 25.2407 17.8141C25.1298 17.8141 25.0218 17.8474 24.9303 17.9095C22.5741 19.3838 20.3443 20.7354 17.9881 22.2098C17.8644 22.2098 17.8645 22.3324 17.7408 22.3324V14.4676C17.7361 14.3059 17.7667 14.1452 17.8307 13.9965C17.8948 13.8478 17.9909 13.7147 18.112 13.6064C20.2207 12.132 22.3267 10.7803 24.3117 9.306C24.4263 9.24517 24.5543 9.21335 24.6843 9.21335C24.8142 9.21335 24.9422 9.24517 25.0568 9.306C27.9079 10.903 30.8853 12.6253 33.7364 14.2113C35.7187 15.3177 37.7036 16.4242 39.8096 17.5279C41.3189 18.3064 42.568 19.502 43.4057 20.9698C43.934 21.9245 44.1462 23.0195 44.0125 24.1002C43.8788 25.1809 43.406 26.1927 42.6607 26.9925C41.681 28.0979 40.5036 29.0144 39.1881 29.6959C36.337 31.2929 33.6099 33.0152 30.7588 34.6013C27.1627 36.6915 23.6929 38.6563 20.0968 40.7466C18.9806 41.5069 17.9909 42.1255 16.9984 42.736Z", fill: "currentColor" }));
|
237
237
|
|
238
|
+
const SvgWswbDeleteIcon = (props) => /* @__PURE__ */ React.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M7.77783 17.4447C7.77783 17.8571 7.94168 18.2527 8.23333 18.5443C8.52498 18.836 8.92054 18.9998 9.333 18.9998H15.556C15.9685 18.9998 16.364 18.836 16.6557 18.5443C16.9473 18.2527 17.1112 17.8571 17.1112 17.4447V8.11133H7.77783V17.4447Z", fill: "currentColor" }), /* @__PURE__ */ React.createElement("path", { d: "M15.1667 5.77817L14.3897 5H10.5L9.723 5.77817H7V7.33333H17.8885V5.77817H15.1667Z", fill: "currentColor" }));
|
239
|
+
|
240
|
+
const SvgWswbPlusIcon = (props) => /* @__PURE__ */ React.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("g", { opacity: 0.4 }, /* @__PURE__ */ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.25 5.25C12.6796 5.25 13.0278 5.59822 13.0278 6.02778V11.4722H18.4722C18.9018 11.4722 19.25 11.8204 19.25 12.25C19.25 12.6796 18.9018 13.0278 18.4722 13.0278H13.0278V18.4722C13.0278 18.9018 12.6796 19.25 12.25 19.25C11.8204 19.25 11.4722 18.9018 11.4722 18.4722V13.0278H6.02778C5.59822 13.0278 5.25 12.6796 5.25 12.25C5.25 11.8204 5.59822 11.4722 6.02778 11.4722H11.4722V6.02778C11.4722 5.59822 11.8204 5.25 12.25 5.25Z", fill: "currentColor" })));
|
241
|
+
|
238
242
|
let Components = {};
|
239
243
|
//icons
|
240
244
|
Components['delete_info'] = SvgDeleteInfo;
|
@@ -300,9 +304,11 @@ Components['all_projects'] = SvgAllProjects;
|
|
300
304
|
Components['android_icon'] = SvgAndroidIcon;
|
301
305
|
Components['select_license'] = SvgSwitchLicenseIcon;
|
302
306
|
Components['fireflink-logo'] = SvgFireflinkLogo;
|
307
|
+
Components['wswb_delete_icon'] = SvgWswbDeleteIcon;
|
308
|
+
Components['wswb_plus_icon'] = SvgWswbPlusIcon;
|
303
309
|
|
304
|
-
var css_248z$
|
305
|
-
styleInject(css_248z$
|
310
|
+
var css_248z$J = ".ff-icon-container {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.ff-icon-click {\n cursor: pointer;\n padding: 5px;\n box-sizing: content-box;\n}\n.ff-icon-click:hover {\n border-radius: 50%;\n background-color: var(--drawer-footer-bg);\n box-shadow: 0px 0px 16px var(--toggle-strip-shadow);\n}\n.ff-icon-click:hover > svg {\n color: var(--brand-color);\n}\n\n.ff-icon-disabled {\n cursor: no-drop;\n}\n.ff-icon-disabled > svg {\n color: var(--toggle-strip-color);\n}\n.ff-icon-disabled:hover {\n box-shadow: none;\n}\n.ff-icon-disabled:hover > svg {\n color: var(--toggle-strip-color);\n}";
|
311
|
+
styleInject(css_248z$J);
|
306
312
|
|
307
313
|
const Icon = ({
|
308
314
|
name,
|
@@ -384,8 +390,8 @@ const Button$1 = /*#__PURE__*/forwardRef(({
|
|
384
390
|
});
|
385
391
|
});
|
386
392
|
|
387
|
-
var css_248z$
|
388
|
-
styleInject(css_248z$
|
393
|
+
var css_248z$I = "@font-face {\n font-family: \"Poppins\";\n font-weight: 400;\n src: local(\"Poppins-Regular\"), url(../../fonts/Poppins/Poppins-Regular.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 500;\n src: local(\"Poppins-Medium\"), url(../../fonts/Poppins/Poppins-Medium.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 600;\n src: local(\"Poppins-SemiBold\"), url(../../fonts/Poppins/Poppins-SemiBold.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 700;\n src: local(\"Poppins-Bold\"), url(../../fonts/Poppins/Poppins-Bold.ttf) format(\"truetype\");\n}\n.fontXs {\n font-family: \"Poppins\", sans-serif;\n font-size: 10px;\n}\n\n.fontSm, .ff-drawer-container .ff-drawer .ff-drawer-header .ff-drawer-title {\n font-family: \"Poppins\", sans-serif;\n font-size: 12px;\n}\n\n.fontMd {\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\", sans-serif;\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\", sans-serif;\n font-size: 18px;\n}\n\n.font2Xl {\n font-family: \"Poppins\", sans-serif;\n font-size: 24px;\n}\n\n.font-size-8 {\n font-family: \"Poppins\", sans-serif;\n font-size: 8px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\", sans-serif;\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\", sans-serif;\n font-size: 80px;\n}\n\n.ff-drawer-container .ff-overlay {\n position: fixed;\n inset: 0;\n background-color: var(--drawer-title-color);\n opacity: 0.5;\n}\n.ff-drawer-container .ff-drawer {\n height: 100vh;\n position: fixed;\n right: 0;\n top: 0;\n bottom: 0;\n min-width: 450px;\n background-color: var(--primary-button-text-color);\n z-index: 999;\n transform: translateX(100%);\n opacity: 0;\n}\n.ff-drawer-container .ff-drawer--open {\n transform: translateX(0);\n opacity: 1;\n}\n.ff-drawer-container .ff-drawer--small {\n width: 444px;\n}\n.ff-drawer-container .ff-drawer--medium {\n width: 666px;\n}\n.ff-drawer-container .ff-drawer--large {\n width: 888px;\n}\n.ff-drawer-container .ff-drawer--x-large {\n width: calc(100vw - 10px);\n}\n.ff-drawer-container .ff-drawer--open, .ff-drawer-container .ff-drawer--medium, .ff-drawer-container .ff-drawer--large, .ff-drawer-container .ff-drawer--x-large {\n transition: all 0.4s ease-in-out;\n border-radius: 5px;\n border: 2px solid var(--border-color);\n}\n.ff-drawer-container .ff-drawer .ff-drawer-header {\n padding: 10px 8px 10px 8px;\n display: flex;\n gap: 10px;\n border-bottom: 2px solid var(--border-color);\n}\n.ff-drawer-container .ff-drawer .ff-drawer-header .ff-drawer-title {\n font-weight: 600;\n color: var(--drawer-title-color);\n display: flex;\n align-items: center;\n gap: 12px;\n}\n.ff-drawer-container .ff-drawer .ff-drawer-header .ff-drawer-action-section {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n}\n.ff-drawer-container .ff-drawer .ff-drawer-header .ff-drawer-action-section .ff-action-button {\n display: flex;\n align-items: center;\n gap: 12px;\n}\n.ff-drawer-container .ff-drawer .ff-drawer-header .ff-drawer-action-section .ff-action-button .ff-expand-collapse-button {\n cursor: pointer;\n background-color: var(--button-bg-color);\n outline: none;\n border: none;\n margin: 0;\n border: 1px solid transparent;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 6px;\n padding: 6px;\n}\n.ff-drawer-container .ff-drawer .ff-drawer-body {\n background-color: var(--drawer-footer-bg);\n height: calc(100vh - 76px);\n overflow: hidden auto;\n}\n.ff-drawer-container .ff-drawer .no-footer {\n height: 100vh;\n}\n.ff-drawer-container .ff-drawer .ff-drawer-footer {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n padding: 5px 16px 5px 16px;\n display: flex;\n justify-content: space-between;\n border-top: 2px solid var(--drawer-footer-border);\n}\n.ff-drawer-container .ff-drawer .ff-drawer-footer .button-container {\n display: flex;\n justify-content: flex-end;\n gap: 16px;\n}";
|
394
|
+
styleInject(css_248z$I);
|
389
395
|
|
390
396
|
function useEscapeKey(key) {
|
391
397
|
return callBack => {
|
@@ -404,8 +410,8 @@ function useEscapeKey(key) {
|
|
404
410
|
};
|
405
411
|
}
|
406
412
|
|
407
|
-
var css_248z$C = ":root {\n --brand-color: #71347b;\n --text-color: #1e161f;\n --description-text: #7a7a7a;\n --click-able-text-color: #71347b;\n --icons-default-color: #71347b;\n --border-color: #f0e7f4;\n --disable-color: rgba(113, 52, 123, 0.5019607843);\n --hover-color: #f7ebff;\n --pop-up-background-blur: rgba(20, 4, 28, 0.1019607843);\n --slider-table-color: rgba(212, 176, 228, 0.1490196078);\n --drawer-footer-bg: #ffffff;\n --drawer-footer-border: #f0e7f4;\n --text-bg-highlight: #f5fb00;\n --tooltip-bg-color: #1e161f;\n --tooltip-text-color: #ffffff;\n --toggle-strip-color: #cfd1e2;\n --toggle-strip-active: #71347b;\n --toggle-strip-shadow: rgba(0, 0, 0, 0.2509803922);\n --toggle-button-bg-color: #ffffff;\n --toggle-disable-icon-color: #767994;\n --text-area-default-color: #747474;\n --add-icon-hover-color: #431b4a;\n --arrow-button-bg-color: #ffffff;\n --arrows-button-border-color: #ded1e5;\n --overlay-bg: rgba(30, 22, 31, 0.1019607843);\n --chip-fill-color: #f9d5ff;\n --chip-text-color: #1e161f;\n --file-drop-zone-default-fill-color: rgba(113, 52, 123, 0.1019607843);\n --file-drop-zone-default-text-color: #1e161f;\n --file-drop-zone-selected-fill-color: rgba(113, 52, 123, 0.2);\n --file-drop-zone-selected-text-color: #1e161f;\n --icon-color: #71347b;\n --default-icon-color: #a3a3a3;\n --tree-connecting-lines-color: #d7b5e3;\n --primary-button-color: linear-gradient(188.79deg, #71347b 2.94%, #46164d 93.09%);\n --primary-button-hover: linear-gradient(179.06deg, #8d3b9a 3.49%, #781f86 99.22%);\n --primary-button-disable: linear-gradient(180deg, #46164d 0%, #71347b 100%);\n --primary-button-text-color: #ffffff;\n --primary-button-border: linear-gradient(180deg, #46164d 3.04%, #71347b 100%);\n --secondary-button-color-text: linear-gradient(179.06deg, #71347b 3.49%, #46164d 99.22%);\n --secondary-button-border: linear-gradient(180deg, #46164d 3.04%, #71347b 100%);\n --secondary-button-text-color: #46164d;\n --secondary-button-hover: linear-gradient(179.06deg, rgba(113, 52, 123, 0.0509803922) 3.49%, rgba(70, 22, 77, 0.0509803922) 99.22%);\n --tertiary-button-color: linear-gradient(179.06deg, rgba(113, 52, 123, 0.0509803922) 3.49%, rgba(70, 22, 77, 0.0509803922) 99.22%);\n --tertiary-button-hover: linear-gradient(179.06deg, rgba(113, 52, 123, 0.1019607843) 3.49%, rgba(70, 22, 77, 0.1019607843) 99.22%);\n --delete-button-color: linear-gradient(179.06deg, #e42525 3.49%, #c90000 99.22%);\n --delete-button-border: linear-gradient(180deg, #a90707 3.04%, #e42525 100%);\n --delete-button-hover: linear-gradient(179.06deg, #e95151 3.49%, #d43434 99.22%);\n --delete-button-disable: linear-gradient(179.06deg, #e95151 3.49%, #d43434 99.22%);\n --error: #e42525;\n --drawer-title-color: #252c37;\n --toast-msg-icon-bg: linear-gradient(180deg, #079455 0%, #00693a 100%);\n --error_light: #e42525;\n --ff-success: #079455;\n --ff-warning: #f79009;\n --ff-header-text-color: #fdfaff;\n --ff-header-submenu-text-color: #666468;\n --ff-header-submenu-highlight-text-color: #170328;\n --expandable-menu-default-bg: #fdfaff;\n --expandable-menu-option-bg: rgba(97, 11, 134, 0.1019607843);\n --file-dropzone-default-color: rgba(113, 52, 123, 0.1019607843);\n --file-dropzone-selected-color: rgba(113, 52, 123, 0.2);\n --file-details-container-shadow: rgba(30, 22, 31, 0.1607843137);\n --file-details-bg: #ffffff;\n --ff-mini-modal-border: #ffffff;\n --ff-mini-modal-box-shadow: rgba(55, 19, 85, 0.2392156863);\n --ff-mini-modal-footer-background: #aeb0c0;\n --input-default-border-color: #a3a3a3;\n --input-hover-border-color: #1e161f;\n --input-default-label-color: #747474;\n --input-label-bg-color: #ffffff;\n --input-active-text-color: #71347b;\n --input-error-text-color: #e42525;\n --tabs-label-default-color: #7a7a7a;\n --tabs-label-active-color: #71347b;\n --tabs-border-color: #f1ebf2;\n --tabs-bg-color: #ede6f2;\n --tab-bg-color: #ffffff;\n --toast-close-icon-wrapper-bg: #fafafa;\n --toaster-boxshadow: rgba(30, 22, 31, 0.2392156863);\n --toaster-success-border: linear-gradient(rgba(7, 148, 85, 0.4), rgba(0, 105, 58, 0.4));\n --toaster-warning-border: linear-gradient(rgba(247, 144, 9, 0.4), rgba(214, 122, 0, 0.4));\n --toaster-info-border: linear-gradient(rgba(37, 145, 228, 0.4), rgba(23, 105, 176, 0.4));\n --toaster-danger_confirm-border: linear-gradient(rgba(228, 37, 37, 0.4), rgba(201, 0, 0, 0.4));\n --option-card-border-color: #ded1e5;\n --option-card-bg-color: #ffffff;\n --checkbox-bg-color: #fbfdff;\n --checkbox-border-color: #b5b5b5;\n --checkbox-partial-color: #ffffff;\n --checkbox-hover-color: #f7edff;\n --multi-select-border: rgba(163, 163, 163, 0.5019607843);\n --multi-select-label-bg: #ffffff;\n --text-color-light: rgba(30, 22, 31, 0.5019607843);\n --radio-button-border: #b5b5b5;\n --radio-button-hover: #d3d3d3;\n --menu-option-icon-color: #ffffff;\n --menu-option-icon-clicked: #71347b;\n --delete-text-color: #c50303;\n --status-success-bg-color: #c6efcd;\n --status-success-text-color: #016102;\n --status-warning-bg-color: #ffe380;\n --status-warning-text-color: #ff8b00;\n --status-rejected-bg-color: #f7d9d9;\n --status-rejected-text-color: #c60202;\n --status-skipped-bg-color: #c4c3c3;\n --status-warning-hover-bg-color: #fcd8ac;\n --status-percentage-growth-bg-color: #ecedf8;\n --status-button-bg-passed: #c6efcd;\n --status-button-bg-failed: #f7d9d9;\n --status-button-bg-running: #ecedf8;\n --status-button-bg-skipped: #c4c3c3;\n --status-button-bg-warning: #ffb803;\n --status-button-bg-terminated: #f7d9d9;\n --status-button-bg-partiallyExecuted: #dee7f1;\n --status-button-bg-aborted: #f7d9d9;\n --status-button-bg-notExecuted: #f7d9d9;\n --status-button-text-passed: #016102;\n --status-button-text-failed: #c50303;\n --status-button-text-running: #434db8;\n --status-button-text-skipped: #3c3838;\n --status-button-text-warning: #ffffff;\n --status-button-text-terminated: #c50303;\n --status-button-text-partiallyExecuted: #0d69d4;\n --status-button-text-aborted: #c50303;\n --status-button-text-notExecuted: #c50303;\n --ff-select-option-border-color: #ded1e5;\n --ff-select-option-wrapper-box-shadow: rgba(89, 47, 124, 0.2);\n --ff-select-background-color: #ffffff;\n --ff-select-scroll-thumb-color: #d9d9d9;\n --ff-select-scroll-track-bg: #f1f1f1;\n --ff-select-scroll-thumb-hover: #b8b8b8;\n --ff-select-text-color: #14041c;\n --ff-select-option-hover-color: #f7ebff;\n --ff-select-default-color: #747474;\n --ff-select-border-color: #a3a3a3;\n --ff-select-brand-color: #71347b;\n --ff-select-text-hover-color: #1e161f;\n --ff-search-filed-clear-text: #71347b;\n --ff-search-filed-placeholder-text: #a3a3a3;\n --ff-search-filed-close-Icon: #14041c;\n --primary-icon-color: #ffffff;\n --secondary-icon-color: #71347b;\n --disabled-primary-color: #f9f9f9;\n --background-modal-color: rgba(17, 17, 17, 0.0666666667);\n --license_expireSoon_color: #ba7422;\n --license_active_color: #268735;\n --license_expired_color: #e34242;\n --license_header_text_color: #592f7c;\n --license_active_status_color: #518e18;\n --license_expired_status_color: #ab3425;\n}\n\n:root {\n --brand-color: #71347b;\n --text-color: #e8e0e9;\n --description-text: #d9d9d9;\n --click-able-text-color: #e8e0e9;\n --icons-default-color: #e8e0e9;\n --border-color: #333234;\n --disable-color: rgba(113, 52, 123, 0.5019607843);\n --hover-color: #f7ebff;\n --pop-up-background-blur: rgba(18, 18, 18, 0.6);\n --slider-table-color: #272428;\n --drawer-footer-bg: rgba(27, 24, 28, 0.6);\n --drawer-footer-border: #333234;\n --text-bg-highlight: #f5fb00;\n --tooltip-bg-color: #2a2a2a;\n --tooltip-text-color: #ffffff;\n --toggle-strip-color: #cfd1e2;\n --toggle-strip-active-color: #71347b;\n --toggle-strip-shadow: rgba(0, 0, 0, 0.2509803922);\n --toggle-button-bg-color: #ffffff;\n --toggle-disable-icon-color: #767994;\n --text-area-default-color: #747474;\n --add-icon-hover-color: #431b4a;\n --arrow-button-bg-color: #ffffff;\n --arrows-button-border-color: #ded1e5;\n --overlay-bg: rgba(18, 18, 18, 0.6);\n --chip-fill-color: #f9d5ff;\n --chip-text-color: #1e161f;\n --file-drop-zone-default-fill-color: rgba(113, 52, 123, 0.1019607843);\n --file-drop-zone-default-text-color: #1e161f;\n --file-drop-zone-selected-fill-color: rgba(113, 52, 123, 0.2);\n --file-drop-zone-selected-text-color: #1e161f;\n --icon-color: #71347b;\n --tree-connecting-lines-color: #d7b5e3;\n --primary-button-color: linear-gradient(188.79deg, #71347b 2.94%, #46164d 93.09%);\n --primary-button-hover: linear-gradient(188.79deg, #7c4685 2.94%, #582d5f 93.09%);\n --primary-button-disable: linear-gradient(188.79deg, #71347b 2.94%, #46164d 93.09%);\n --primary-button-text-color: #ffffff;\n --primary-button-border: linear-gradient(180deg, #46164d 3.04%, #71347b 100%);\n --secondary-button-color-text: linear-gradient(179.06deg, #71347b 3.49%, #46164d 99.22%);\n --secondary-button-border: linear-gradient(360deg, #46164d 0%, #71347b 100%);\n --secondary-button-text-color: #71347b;\n --secondary-button-hover: linear-gradient(179.06deg, rgba(113, 52, 123, 0.0509803922) 3.49%, rgba(70, 22, 77, 0.0509803922) 99.22%);\n --tertiary-button-color: linear-gradient(180deg, rgba(70, 22, 77, 0.05) 0%, rgba(113, 52, 123, 0.05) 100%);\n --tertiary-button-hover: linear-gradient(180deg, rgba(70, 22, 77, 0.1) 0%, rgba(113, 52, 123, 0.1) 100%);\n --delete-button-color: linear-gradient(179.06deg, #e42525 3.49%, #c90000 99.22%);\n --delete-button-border: linear-gradient(180deg, #a90707 3.04%, #e42525 100%);\n --delete-button-hover: linear-gradient(179.06deg, #e95151 3.49%, #d43434 99.22%);\n --delete-button-disable: linear-gradient(179.06deg, #e95151 3.49%, #d43434 99.22%);\n --drawer-title-color: #252c37;\n --toast-msg-icon-bg: linear-gradient(180deg, #079455 0%, #00693a 100%);\n --error_light: #e42525;\n --ff-success: #079455;\n --ff-warning: #f79009;\n --ff-header-text-color: #fdfaff;\n --ff-header-submenu-text-color: #666468;\n --ff-header-submenu-highlight-text-color: #170328;\n --default-icon-color: #a3a3a3;\n --expandable-menu-default-bg: #fdfaff;\n --expandable-menu-option-bg: rgba(97, 11, 134, 0.1019607843);\n --file-dropzone-default-color: rgba(113, 52, 123, 0.1019607843);\n --file-dropzone-selected-color: rgba(113, 52, 123, 0.2);\n --file-details-container-shadow: rgba(30, 22, 31, 0.1607843137);\n --file-details-bg: #ffffff;\n --ff-mini-modal-border: #ffffff;\n --ff-mini-modal-box-shadow: rgba(55, 19, 85, 0.2392156863);\n --ff-mini-modal-footer-background: #aeb0c0;\n --input-default-border-color: #a3a3a3;\n --input-hover-border-color: #1e161f;\n --input-default-label-color: #747474;\n --input-label-bg-color: #ffffff;\n --input-active-text-color: #71347b;\n --input-error-text-color: #e42525;\n --tabs-label-default-color: #7a7a7a;\n --tabs-label-active-color: #71347b;\n --tabs-border-color: #f1ebf2;\n --tabs-bg-color: #ede6f2;\n --tab-bg-color: #ffffff;\n --toast-close-icon-wrapper-bg: #fafafa;\n --toaster-boxshadow: rgba(30, 22, 31, 0.2392156863);\n --toaster-success-border: linear-gradient(rgba(7, 148, 85, 0.4), rgba(0, 105, 58, 0.4));\n --toaster-warning-border: linear-gradient(rgba(247, 144, 9, 0.4), rgba(214, 122, 0, 0.4));\n --toaster-info-border: linear-gradient(rgba(37, 145, 228, 0.4), rgba(23, 105, 176, 0.4));\n --toaster-danger_confirm-border: linear-gradient(rgba(228, 37, 37, 0.4), rgba(201, 0, 0, 0.4));\n --option-card-border-color: #ded1e5;\n --option-card-bg-color: #ffffff;\n --checkbox-bg-color: #fbfdff;\n --checkbox-border-color: #b5b5b5;\n --checkbox-partial-color: #ffffff;\n --checkbox-hover-color: #f7edff;\n --multi-select-border: rgba(163, 163, 163, 0.5019607843);\n --multi-select-label-bg: #ffffff;\n --text-color-light: rgba(30, 22, 31, 0.5019607843);\n --radio-button-border: #b5b5b5;\n --radio-button-hover: #d3d3d3;\n --menu-option-icon-color: #ffffff;\n --menu-option-icon-clicked: #71347b;\n --delete-text-color: #c50303;\n --status-success-bg-color: #c6efcd;\n --status-success-text-color: #016102;\n --status-warning-bg-color: #ffe380;\n --status-warning-text-color: #ff8b00;\n --status-rejected-bg-color: #f7d9d9;\n --status-rejected-text-color: #c60202;\n --status-skipped-bg-color: #c4c3c3;\n --status-warning-hover-bg-color: #fcd8ac;\n --status-percentage-growth-bg-color: #ecedf8;\n --status-button-bg-passed: #c6efcd;\n --status-button-bg-failed: #f7d9d9;\n --status-button-bg-running: #ecedf8;\n --status-button-bg-skipped: #c4c3c3;\n --status-button-bg-warning: #ffb803;\n --status-button-bg-terminated: #f7d9d9;\n --status-button-bg-partiallyExecuted: #dee7f1;\n --status-button-bg-aborted: #f7d9d9;\n --status-button-bg-notExecuted: #f7d9d9;\n --status-button-text-passed: #016102;\n --status-button-text-failed: #c50303;\n --status-button-text-running: #434db8;\n --status-button-text-skipped: #3c3838;\n --status-button-text-warning: #ffffff;\n --status-button-text-terminated: #c50303;\n --status-button-text-partiallyExecuted: #0d69d4;\n --status-button-text-aborted: #c50303;\n --status-button-text-notExecuted: #c50303;\n --ff-select-option-border-color: #ded1e5;\n --ff-select-option-wrapper-box-shadow: rgba(89, 47, 124, 0.2);\n --ff-select-background-color: #ffffff;\n --ff-select-scroll-thumb-color: #d9d9d9;\n --ff-select-scroll-track-bg: #f1f1f1;\n --ff-select-scroll-thumb-hover: #b8b8b8;\n --ff-select-text-color: #14041c;\n --ff-select-option-hover-color: #f7ebff;\n --ff-select-default-color: #747474;\n --ff-select-border-color: #a3a3a3;\n --ff-select-brand-color: #71347b;\n --ff-select-text-hover-color: #1e161f;\n --ff-search-filed-clear-text: #71347b;\n --ff-search-filed-placeholder-text: #a3a3a3;\n --ff-search-filed-close-Icon: #14041c;\n --primary-icon-color: #ffffff;\n --secondary-icon-color: #71347b;\n --disabled-primary-color: #F9F9F9;\n --license_expireSoon_color: #BA7422;\n --license_active_color: #268735;\n --license_expired_color: #E34242;\n --license_header_text_color: #592f7c;\n --license_active_status_color: #518e18;\n --license_expired_status_color: #ab3425;\n --background-modal-color: rgba(17, 17, 17, 0.0666666667);\n}\n\n.ff-light-theme {\n --brand-color: #71347b;\n --text-color: #1e161f;\n --description-text: #7a7a7a;\n --click-able-text-color: #71347b;\n --icons-default-color: #71347b;\n --border-color: #f0e7f4;\n --disable-color: rgba(113, 52, 123, 0.5019607843);\n --hover-color: #f7ebff;\n --pop-up-background-blur: rgba(20, 4, 28, 0.1019607843);\n --slider-table-color: rgba(212, 176, 228, 0.1490196078);\n --drawer-footer-bg: #ffffff;\n --drawer-footer-border: #f0e7f4;\n --text-bg-highlight: #f5fb00;\n --tooltip-bg-color: #1e161f;\n --tooltip-text-color: #ffffff;\n --toggle-strip-color: #cfd1e2;\n --toggle-strip-active: #71347b;\n --toggle-strip-shadow: rgba(0, 0, 0, 0.2509803922);\n --toggle-button-bg-color: #ffffff;\n --toggle-disable-icon-color: #767994;\n --text-area-default-color: #747474;\n --add-icon-hover-color: #431b4a;\n --arrow-button-bg-color: #ffffff;\n --arrows-button-border-color: #ded1e5;\n --overlay-bg: rgba(30, 22, 31, 0.1019607843);\n --chip-fill-color: #f9d5ff;\n --chip-text-color: #1e161f;\n --file-drop-zone-default-fill-color: rgba(113, 52, 123, 0.1019607843);\n --file-drop-zone-default-text-color: #1e161f;\n --file-drop-zone-selected-fill-color: rgba(113, 52, 123, 0.2);\n --file-drop-zone-selected-text-color: #1e161f;\n --icon-color: #71347b;\n --default-icon-color: #a3a3a3;\n --tree-connecting-lines-color: #d7b5e3;\n --primary-button-color: linear-gradient(188.79deg, #71347b 2.94%, #46164d 93.09%);\n --primary-button-hover: linear-gradient(179.06deg, #8d3b9a 3.49%, #781f86 99.22%);\n --primary-button-disable: linear-gradient(180deg, #46164d 0%, #71347b 100%);\n --primary-button-text-color: #ffffff;\n --primary-button-border: linear-gradient(180deg, #46164d 3.04%, #71347b 100%);\n --secondary-button-color-text: linear-gradient(179.06deg, #71347b 3.49%, #46164d 99.22%);\n --secondary-button-border: linear-gradient(180deg, #46164d 3.04%, #71347b 100%);\n --secondary-button-text-color: #46164d;\n --secondary-button-hover: linear-gradient(179.06deg, rgba(113, 52, 123, 0.0509803922) 3.49%, rgba(70, 22, 77, 0.0509803922) 99.22%);\n --tertiary-button-color: linear-gradient(179.06deg, rgba(113, 52, 123, 0.0509803922) 3.49%, rgba(70, 22, 77, 0.0509803922) 99.22%);\n --tertiary-button-hover: linear-gradient(179.06deg, rgba(113, 52, 123, 0.1019607843) 3.49%, rgba(70, 22, 77, 0.1019607843) 99.22%);\n --delete-button-color: linear-gradient(179.06deg, #e42525 3.49%, #c90000 99.22%);\n --delete-button-border: linear-gradient(180deg, #a90707 3.04%, #e42525 100%);\n --delete-button-hover: linear-gradient(179.06deg, #e95151 3.49%, #d43434 99.22%);\n --delete-button-disable: linear-gradient(179.06deg, #e95151 3.49%, #d43434 99.22%);\n --error: #e42525;\n --drawer-title-color: #252c37;\n --toast-msg-icon-bg: linear-gradient(180deg, #079455 0%, #00693a 100%);\n --error_light: #e42525;\n --ff-success: #079455;\n --ff-warning: #f79009;\n --ff-header-text-color: #fdfaff;\n --ff-header-submenu-text-color: #666468;\n --ff-header-submenu-highlight-text-color: #170328;\n --expandable-menu-default-bg: #fdfaff;\n --expandable-menu-option-bg: rgba(97, 11, 134, 0.1019607843);\n --file-dropzone-default-color: rgba(113, 52, 123, 0.1019607843);\n --file-dropzone-selected-color: rgba(113, 52, 123, 0.2);\n --file-details-container-shadow: rgba(30, 22, 31, 0.1607843137);\n --file-details-bg: #ffffff;\n --ff-mini-modal-border: #ffffff;\n --ff-mini-modal-box-shadow: rgba(55, 19, 85, 0.2392156863);\n --ff-mini-modal-footer-background: #aeb0c0;\n --input-default-border-color: #a3a3a3;\n --input-hover-border-color: #1e161f;\n --input-default-label-color: #747474;\n --input-label-bg-color: #ffffff;\n --input-active-text-color: #71347b;\n --input-error-text-color: #e42525;\n --tabs-label-default-color: #7a7a7a;\n --tabs-label-active-color: #71347b;\n --tabs-border-color: #f1ebf2;\n --tabs-bg-color: #ede6f2;\n --tab-bg-color: #ffffff;\n --toast-close-icon-wrapper-bg: #fafafa;\n --toaster-boxshadow: rgba(30, 22, 31, 0.2392156863);\n --toaster-success-border: linear-gradient(rgba(7, 148, 85, 0.4), rgba(0, 105, 58, 0.4));\n --toaster-warning-border: linear-gradient(rgba(247, 144, 9, 0.4), rgba(214, 122, 0, 0.4));\n --toaster-info-border: linear-gradient(rgba(37, 145, 228, 0.4), rgba(23, 105, 176, 0.4));\n --toaster-danger_confirm-border: linear-gradient(rgba(228, 37, 37, 0.4), rgba(201, 0, 0, 0.4));\n --option-card-border-color: #ded1e5;\n --option-card-bg-color: #ffffff;\n --checkbox-bg-color: #fbfdff;\n --checkbox-border-color: #b5b5b5;\n --checkbox-partial-color: #ffffff;\n --checkbox-hover-color: #f7edff;\n --multi-select-border: rgba(163, 163, 163, 0.5019607843);\n --multi-select-label-bg: #ffffff;\n --text-color-light: rgba(30, 22, 31, 0.5019607843);\n --radio-button-border: #b5b5b5;\n --radio-button-hover: #d3d3d3;\n --menu-option-icon-color: #ffffff;\n --menu-option-icon-clicked: #71347b;\n --delete-text-color: #c50303;\n --status-success-bg-color: #c6efcd;\n --status-success-text-color: #016102;\n --status-warning-bg-color: #ffe380;\n --status-warning-text-color: #ff8b00;\n --status-rejected-bg-color: #f7d9d9;\n --status-rejected-text-color: #c60202;\n --status-skipped-bg-color: #c4c3c3;\n --status-warning-hover-bg-color: #fcd8ac;\n --status-percentage-growth-bg-color: #ecedf8;\n --status-button-bg-passed: #c6efcd;\n --status-button-bg-failed: #f7d9d9;\n --status-button-bg-running: #ecedf8;\n --status-button-bg-skipped: #c4c3c3;\n --status-button-bg-warning: #ffb803;\n --status-button-bg-terminated: #f7d9d9;\n --status-button-bg-partiallyExecuted: #dee7f1;\n --status-button-bg-aborted: #f7d9d9;\n --status-button-bg-notExecuted: #f7d9d9;\n --status-button-text-passed: #016102;\n --status-button-text-failed: #c50303;\n --status-button-text-running: #434db8;\n --status-button-text-skipped: #3c3838;\n --status-button-text-warning: #ffffff;\n --status-button-text-terminated: #c50303;\n --status-button-text-partiallyExecuted: #0d69d4;\n --status-button-text-aborted: #c50303;\n --status-button-text-notExecuted: #c50303;\n --ff-select-option-border-color: #ded1e5;\n --ff-select-option-wrapper-box-shadow: rgba(89, 47, 124, 0.2);\n --ff-select-background-color: #ffffff;\n --ff-select-scroll-thumb-color: #d9d9d9;\n --ff-select-scroll-track-bg: #f1f1f1;\n --ff-select-scroll-thumb-hover: #b8b8b8;\n --ff-select-text-color: #14041c;\n --ff-select-option-hover-color: #f7ebff;\n --ff-select-default-color: #747474;\n --ff-select-border-color: #a3a3a3;\n --ff-select-brand-color: #71347b;\n --ff-select-text-hover-color: #1e161f;\n --ff-search-filed-clear-text: #71347b;\n --ff-search-filed-placeholder-text: #a3a3a3;\n --ff-search-filed-close-Icon: #14041c;\n --primary-icon-color: #ffffff;\n --secondary-icon-color: #71347b;\n --disabled-primary-color: #f9f9f9;\n --background-modal-color: rgba(17, 17, 17, 0.0666666667);\n --license_expireSoon_color: #ba7422;\n --license_active_color: #268735;\n --license_expired_color: #e34242;\n --license_header_text_color: #592f7c;\n --license_active_status_color: #518e18;\n --license_expired_status_color: #ab3425;\n}\n\n.ff-dark-theme {\n --brand-color: #71347b;\n --text-color: #e8e0e9;\n --description-text: #d9d9d9;\n --click-able-text-color: #e8e0e9;\n --icons-default-color: #e8e0e9;\n --border-color: #333234;\n --disable-color: rgba(113, 52, 123, 0.5019607843);\n --hover-color: #f7ebff;\n --pop-up-background-blur: rgba(18, 18, 18, 0.6);\n --slider-table-color: #272428;\n --drawer-footer-bg: rgba(27, 24, 28, 0.6);\n --drawer-footer-border: #333234;\n --text-bg-highlight: #f5fb00;\n --tooltip-bg-color: #2a2a2a;\n --tooltip-text-color: #ffffff;\n --toggle-strip-color: #cfd1e2;\n --toggle-strip-active-color: #71347b;\n --toggle-strip-shadow: rgba(0, 0, 0, 0.2509803922);\n --toggle-button-bg-color: #ffffff;\n --toggle-disable-icon-color: #767994;\n --text-area-default-color: #747474;\n --add-icon-hover-color: #431b4a;\n --arrow-button-bg-color: #ffffff;\n --arrows-button-border-color: #ded1e5;\n --overlay-bg: rgba(18, 18, 18, 0.6);\n --chip-fill-color: #f9d5ff;\n --chip-text-color: #1e161f;\n --file-drop-zone-default-fill-color: rgba(113, 52, 123, 0.1019607843);\n --file-drop-zone-default-text-color: #1e161f;\n --file-drop-zone-selected-fill-color: rgba(113, 52, 123, 0.2);\n --file-drop-zone-selected-text-color: #1e161f;\n --icon-color: #71347b;\n --tree-connecting-lines-color: #d7b5e3;\n --primary-button-color: linear-gradient(188.79deg, #71347b 2.94%, #46164d 93.09%);\n --primary-button-hover: linear-gradient(188.79deg, #7c4685 2.94%, #582d5f 93.09%);\n --primary-button-disable: linear-gradient(188.79deg, #71347b 2.94%, #46164d 93.09%);\n --primary-button-text-color: #ffffff;\n --primary-button-border: linear-gradient(180deg, #46164d 3.04%, #71347b 100%);\n --secondary-button-color-text: linear-gradient(179.06deg, #71347b 3.49%, #46164d 99.22%);\n --secondary-button-border: linear-gradient(360deg, #46164d 0%, #71347b 100%);\n --secondary-button-text-color: #71347b;\n --secondary-button-hover: linear-gradient(179.06deg, rgba(113, 52, 123, 0.0509803922) 3.49%, rgba(70, 22, 77, 0.0509803922) 99.22%);\n --tertiary-button-color: linear-gradient(180deg, rgba(70, 22, 77, 0.05) 0%, rgba(113, 52, 123, 0.05) 100%);\n --tertiary-button-hover: linear-gradient(180deg, rgba(70, 22, 77, 0.1) 0%, rgba(113, 52, 123, 0.1) 100%);\n --delete-button-color: linear-gradient(179.06deg, #e42525 3.49%, #c90000 99.22%);\n --delete-button-border: linear-gradient(180deg, #a90707 3.04%, #e42525 100%);\n --delete-button-hover: linear-gradient(179.06deg, #e95151 3.49%, #d43434 99.22%);\n --delete-button-disable: linear-gradient(179.06deg, #e95151 3.49%, #d43434 99.22%);\n --drawer-title-color: #252c37;\n --toast-msg-icon-bg: linear-gradient(180deg, #079455 0%, #00693a 100%);\n --error_light: #e42525;\n --ff-success: #079455;\n --ff-warning: #f79009;\n --ff-header-text-color: #fdfaff;\n --ff-header-submenu-text-color: #666468;\n --ff-header-submenu-highlight-text-color: #170328;\n --default-icon-color: #a3a3a3;\n --expandable-menu-default-bg: #fdfaff;\n --expandable-menu-option-bg: rgba(97, 11, 134, 0.1019607843);\n --file-dropzone-default-color: rgba(113, 52, 123, 0.1019607843);\n --file-dropzone-selected-color: rgba(113, 52, 123, 0.2);\n --file-details-container-shadow: rgba(30, 22, 31, 0.1607843137);\n --file-details-bg: #ffffff;\n --ff-mini-modal-border: #ffffff;\n --ff-mini-modal-box-shadow: rgba(55, 19, 85, 0.2392156863);\n --ff-mini-modal-footer-background: #aeb0c0;\n --input-default-border-color: #a3a3a3;\n --input-hover-border-color: #1e161f;\n --input-default-label-color: #747474;\n --input-label-bg-color: #ffffff;\n --input-active-text-color: #71347b;\n --input-error-text-color: #e42525;\n --tabs-label-default-color: #7a7a7a;\n --tabs-label-active-color: #71347b;\n --tabs-border-color: #f1ebf2;\n --tabs-bg-color: #ede6f2;\n --tab-bg-color: #ffffff;\n --toast-close-icon-wrapper-bg: #fafafa;\n --toaster-boxshadow: rgba(30, 22, 31, 0.2392156863);\n --toaster-success-border: linear-gradient(rgba(7, 148, 85, 0.4), rgba(0, 105, 58, 0.4));\n --toaster-warning-border: linear-gradient(rgba(247, 144, 9, 0.4), rgba(214, 122, 0, 0.4));\n --toaster-info-border: linear-gradient(rgba(37, 145, 228, 0.4), rgba(23, 105, 176, 0.4));\n --toaster-danger_confirm-border: linear-gradient(rgba(228, 37, 37, 0.4), rgba(201, 0, 0, 0.4));\n --option-card-border-color: #ded1e5;\n --option-card-bg-color: #ffffff;\n --checkbox-bg-color: #fbfdff;\n --checkbox-border-color: #b5b5b5;\n --checkbox-partial-color: #ffffff;\n --checkbox-hover-color: #f7edff;\n --multi-select-border: rgba(163, 163, 163, 0.5019607843);\n --multi-select-label-bg: #ffffff;\n --text-color-light: rgba(30, 22, 31, 0.5019607843);\n --radio-button-border: #b5b5b5;\n --radio-button-hover: #d3d3d3;\n --menu-option-icon-color: #ffffff;\n --menu-option-icon-clicked: #71347b;\n --delete-text-color: #c50303;\n --status-success-bg-color: #c6efcd;\n --status-success-text-color: #016102;\n --status-warning-bg-color: #ffe380;\n --status-warning-text-color: #ff8b00;\n --status-rejected-bg-color: #f7d9d9;\n --status-rejected-text-color: #c60202;\n --status-skipped-bg-color: #c4c3c3;\n --status-warning-hover-bg-color: #fcd8ac;\n --status-percentage-growth-bg-color: #ecedf8;\n --status-button-bg-passed: #c6efcd;\n --status-button-bg-failed: #f7d9d9;\n --status-button-bg-running: #ecedf8;\n --status-button-bg-skipped: #c4c3c3;\n --status-button-bg-warning: #ffb803;\n --status-button-bg-terminated: #f7d9d9;\n --status-button-bg-partiallyExecuted: #dee7f1;\n --status-button-bg-aborted: #f7d9d9;\n --status-button-bg-notExecuted: #f7d9d9;\n --status-button-text-passed: #016102;\n --status-button-text-failed: #c50303;\n --status-button-text-running: #434db8;\n --status-button-text-skipped: #3c3838;\n --status-button-text-warning: #ffffff;\n --status-button-text-terminated: #c50303;\n --status-button-text-partiallyExecuted: #0d69d4;\n --status-button-text-aborted: #c50303;\n --status-button-text-notExecuted: #c50303;\n --ff-select-option-border-color: #ded1e5;\n --ff-select-option-wrapper-box-shadow: rgba(89, 47, 124, 0.2);\n --ff-select-background-color: #ffffff;\n --ff-select-scroll-thumb-color: #d9d9d9;\n --ff-select-scroll-track-bg: #f1f1f1;\n --ff-select-scroll-thumb-hover: #b8b8b8;\n --ff-select-text-color: #14041c;\n --ff-select-option-hover-color: #f7ebff;\n --ff-select-default-color: #747474;\n --ff-select-border-color: #a3a3a3;\n --ff-select-brand-color: #71347b;\n --ff-select-text-hover-color: #1e161f;\n --ff-search-filed-clear-text: #71347b;\n --ff-search-filed-placeholder-text: #a3a3a3;\n --ff-search-filed-close-Icon: #14041c;\n --primary-icon-color: #ffffff;\n --secondary-icon-color: #71347b;\n --disabled-primary-color: #F9F9F9;\n --license_expireSoon_color: #BA7422;\n --license_active_color: #268735;\n --license_expired_color: #E34242;\n --license_header_text_color: #592f7c;\n --license_active_status_color: #518e18;\n --license_expired_status_color: #ab3425;\n --background-modal-color: rgba(17, 17, 17, 0.0666666667);\n}";
|
408
|
-
styleInject(css_248z$
|
413
|
+
var css_248z$H = ":root {\n --brand-color: #71347b;\n --text-color: #1e161f;\n --description-text: #7a7a7a;\n --click-able-text-color: #71347b;\n --icons-default-color: #71347b;\n --border-color: #f0e7f4;\n --disable-color: rgba(113, 52, 123, 0.5019607843);\n --hover-color: #f7ebff;\n --pop-up-background-blur: rgba(20, 4, 28, 0.1019607843);\n --slider-table-color: rgba(212, 176, 228, 0.1490196078);\n --drawer-footer-bg: #ffffff;\n --drawer-footer-border: #f0e7f4;\n --text-bg-highlight: #f5fb00;\n --tooltip-bg-color: #1e161f;\n --tooltip-text-color: #ffffff;\n --toggle-strip-color: #cfd1e2;\n --toggle-strip-active: #71347b;\n --toggle-strip-shadow: rgba(0, 0, 0, 0.2509803922);\n --toggle-button-bg-color: #ffffff;\n --toggle-disable-icon-color: #767994;\n --text-area-default-color: #747474;\n --add-icon-hover-color: #431b4a;\n --arrow-button-bg-color: #ffffff;\n --arrows-button-border-color: #ded1e5;\n --overlay-bg: rgba(30, 22, 31, 0.1019607843);\n --chip-fill-color: #f9d5ff;\n --chip-text-color: #1e161f;\n --file-drop-zone-default-fill-color: rgba(113, 52, 123, 0.1019607843);\n --file-drop-zone-default-text-color: #1e161f;\n --file-drop-zone-selected-fill-color: rgba(113, 52, 123, 0.2);\n --file-drop-zone-selected-text-color: #1e161f;\n --icon-color: #71347b;\n --default-icon-color: #a3a3a3;\n --tree-connecting-lines-color: #d7b5e3;\n --primary-button-color: linear-gradient(188.79deg, #71347b 2.94%, #46164d 93.09%);\n --primary-button-hover: linear-gradient(179.06deg, #8d3b9a 3.49%, #781f86 99.22%);\n --primary-button-disable: linear-gradient(180deg, #46164d 0%, #71347b 100%);\n --primary-button-text-color: #ffffff;\n --primary-button-border: linear-gradient(180deg, #46164d 3.04%, #71347b 100%);\n --secondary-button-color-text: linear-gradient(179.06deg, #71347b 3.49%, #46164d 99.22%);\n --secondary-button-border: linear-gradient(180deg, #46164d 3.04%, #71347b 100%);\n --secondary-button-text-color: #46164d;\n --secondary-button-hover: linear-gradient(179.06deg, rgba(113, 52, 123, 0.0509803922) 3.49%, rgba(70, 22, 77, 0.0509803922) 99.22%);\n --tertiary-button-color: linear-gradient(179.06deg, rgba(113, 52, 123, 0.0509803922) 3.49%, rgba(70, 22, 77, 0.0509803922) 99.22%);\n --tertiary-button-hover: linear-gradient(179.06deg, rgba(113, 52, 123, 0.1019607843) 3.49%, rgba(70, 22, 77, 0.1019607843) 99.22%);\n --delete-button-color: linear-gradient(179.06deg, #e42525 3.49%, #c90000 99.22%);\n --delete-button-border: linear-gradient(180deg, #a90707 3.04%, #e42525 100%);\n --delete-button-hover: linear-gradient(179.06deg, #e95151 3.49%, #d43434 99.22%);\n --delete-button-disable: linear-gradient(179.06deg, #e95151 3.49%, #d43434 99.22%);\n --error: #e42525;\n --drawer-title-color: #252c37;\n --toast-msg-icon-bg: linear-gradient(180deg, #079455 0%, #00693a 100%);\n --error_light: #e42525;\n --ff-success: #079455;\n --ff-warning: #f79009;\n --ff-header-text-color: #fdfaff;\n --ff-header-submenu-text-color: #666468;\n --ff-header-submenu-highlight-text-color: #170328;\n --expandable-menu-default-bg: #fdfaff;\n --expandable-menu-option-bg: rgba(97, 11, 134, 0.1019607843);\n --file-dropzone-default-color: rgba(113, 52, 123, 0.1019607843);\n --file-dropzone-selected-color: rgba(113, 52, 123, 0.2);\n --file-details-container-shadow: rgba(30, 22, 31, 0.1607843137);\n --file-details-bg: #ffffff;\n --ff-mini-modal-border: #ffffff;\n --ff-mini-modal-box-shadow: rgba(55, 19, 85, 0.2392156863);\n --ff-mini-modal-footer-background: #aeb0c0;\n --input-default-border-color: #a3a3a3;\n --input-hover-border-color: #1e161f;\n --input-default-label-color: #747474;\n --input-label-bg-color: #ffffff;\n --input-active-text-color: #71347b;\n --input-error-text-color: #e42525;\n --tabs-label-default-color: #7a7a7a;\n --tabs-label-active-color: #71347b;\n --tabs-border-color: #f1ebf2;\n --tabs-bg-color: #ede6f2;\n --tab-bg-color: #ffffff;\n --toast-close-icon-wrapper-bg: #fafafa;\n --toaster-boxshadow: rgba(30, 22, 31, 0.2392156863);\n --toaster-success-border: linear-gradient(rgba(7, 148, 85, 0.4), rgba(0, 105, 58, 0.4));\n --toaster-warning-border: linear-gradient(rgba(247, 144, 9, 0.4), rgba(214, 122, 0, 0.4));\n --toaster-info-border: linear-gradient(rgba(37, 145, 228, 0.4), rgba(23, 105, 176, 0.4));\n --toaster-danger_confirm-border: linear-gradient(rgba(228, 37, 37, 0.4), rgba(201, 0, 0, 0.4));\n --option-card-border-color: #ded1e5;\n --option-card-bg-color: #ffffff;\n --checkbox-bg-color: #fbfdff;\n --checkbox-border-color: #b5b5b5;\n --checkbox-partial-color: #ffffff;\n --checkbox-hover-color: #f7edff;\n --multi-select-border: rgba(163, 163, 163, 0.5019607843);\n --multi-select-label-bg: #ffffff;\n --text-color-light: rgba(30, 22, 31, 0.5019607843);\n --radio-button-border: #b5b5b5;\n --radio-button-hover: #d3d3d3;\n --menu-option-icon-color: #ffffff;\n --menu-option-icon-clicked: #71347b;\n --delete-text-color: #c50303;\n --status-success-bg-color: #c6efcd;\n --status-success-text-color: #016102;\n --status-warning-bg-color: #ffe380;\n --status-warning-text-color: #ff8b00;\n --status-rejected-bg-color: #f7d9d9;\n --status-rejected-text-color: #c60202;\n --status-skipped-bg-color: #c4c3c3;\n --status-warning-hover-bg-color: #fcd8ac;\n --status-percentage-growth-bg-color: #ecedf8;\n --status-button-bg-passed: #c6efcd;\n --status-button-bg-failed: #f7d9d9;\n --status-button-bg-running: #ecedf8;\n --status-button-bg-skipped: #c4c3c3;\n --status-button-bg-warning: #ffb803;\n --status-button-bg-terminated: #f7d9d9;\n --status-button-bg-partiallyExecuted: #dee7f1;\n --status-button-bg-aborted: #f7d9d9;\n --status-button-bg-notExecuted: #f7d9d9;\n --status-button-text-passed: #016102;\n --status-button-text-failed: #c50303;\n --status-button-text-running: #434db8;\n --status-button-text-skipped: #3c3838;\n --status-button-text-warning: #ffffff;\n --status-button-text-terminated: #c50303;\n --status-button-text-partiallyExecuted: #0d69d4;\n --status-button-text-aborted: #c50303;\n --status-button-text-notExecuted: #c50303;\n --ff-select-option-border-color: #ded1e5;\n --ff-select-option-wrapper-box-shadow: rgba(89, 47, 124, 0.2);\n --ff-select-background-color: #ffffff;\n --ff-select-scroll-thumb-color: #d9d9d9;\n --ff-select-scroll-track-bg: #f1f1f1;\n --ff-select-scroll-thumb-hover: #b8b8b8;\n --ff-select-text-color: #14041c;\n --ff-select-option-hover-color: #f7ebff;\n --ff-select-default-color: #747474;\n --ff-select-border-color: #a3a3a3;\n --ff-select-brand-color: #71347b;\n --ff-select-text-hover-color: #1e161f;\n --ff-search-filed-clear-text: #71347b;\n --ff-search-filed-placeholder-text: #a3a3a3;\n --ff-search-filed-close-Icon: #14041c;\n --primary-icon-color: #ffffff;\n --secondary-icon-color: #71347b;\n --disabled-primary-color: #f9f9f9;\n --background-modal-color: rgba(17, 17, 17, 0.0666666667);\n --license_expireSoon_color: #ba7422;\n --license_active_color: #268735;\n --license_expired_color: #e34242;\n --license_header_text_color: #592f7c;\n --license_active_status_color: #518e18;\n --license_expired_status_color: #ab3425;\n --pie-chart-border-color: #b6b6b6;\n}\n\n:root {\n --brand-color: #71347b;\n --text-color: #e8e0e9;\n --description-text: #d9d9d9;\n --click-able-text-color: #e8e0e9;\n --icons-default-color: #e8e0e9;\n --border-color: #333234;\n --disable-color: rgba(113, 52, 123, 0.5019607843);\n --hover-color: #f7ebff;\n --pop-up-background-blur: rgba(18, 18, 18, 0.6);\n --slider-table-color: #272428;\n --drawer-footer-bg: rgba(27, 24, 28, 0.6);\n --drawer-footer-border: #333234;\n --text-bg-highlight: #f5fb00;\n --tooltip-bg-color: #2a2a2a;\n --tooltip-text-color: #ffffff;\n --toggle-strip-color: #cfd1e2;\n --toggle-strip-active-color: #71347b;\n --toggle-strip-shadow: rgba(0, 0, 0, 0.2509803922);\n --toggle-button-bg-color: #ffffff;\n --toggle-disable-icon-color: #767994;\n --text-area-default-color: #747474;\n --add-icon-hover-color: #431b4a;\n --arrow-button-bg-color: #ffffff;\n --arrows-button-border-color: #ded1e5;\n --overlay-bg: rgba(18, 18, 18, 0.6);\n --chip-fill-color: #f9d5ff;\n --chip-text-color: #1e161f;\n --file-drop-zone-default-fill-color: rgba(113, 52, 123, 0.1019607843);\n --file-drop-zone-default-text-color: #1e161f;\n --file-drop-zone-selected-fill-color: rgba(113, 52, 123, 0.2);\n --file-drop-zone-selected-text-color: #1e161f;\n --icon-color: #71347b;\n --tree-connecting-lines-color: #d7b5e3;\n --primary-button-color: linear-gradient(188.79deg, #71347b 2.94%, #46164d 93.09%);\n --primary-button-hover: linear-gradient(188.79deg, #7c4685 2.94%, #582d5f 93.09%);\n --primary-button-disable: linear-gradient(188.79deg, #71347b 2.94%, #46164d 93.09%);\n --primary-button-text-color: #ffffff;\n --primary-button-border: linear-gradient(180deg, #46164d 3.04%, #71347b 100%);\n --secondary-button-color-text: linear-gradient(179.06deg, #71347b 3.49%, #46164d 99.22%);\n --secondary-button-border: linear-gradient(360deg, #46164d 0%, #71347b 100%);\n --secondary-button-text-color: #71347b;\n --secondary-button-hover: linear-gradient(179.06deg, rgba(113, 52, 123, 0.0509803922) 3.49%, rgba(70, 22, 77, 0.0509803922) 99.22%);\n --tertiary-button-color: linear-gradient(180deg, rgba(70, 22, 77, 0.05) 0%, rgba(113, 52, 123, 0.05) 100%);\n --tertiary-button-hover: linear-gradient(180deg, rgba(70, 22, 77, 0.1) 0%, rgba(113, 52, 123, 0.1) 100%);\n --delete-button-color: linear-gradient(179.06deg, #e42525 3.49%, #c90000 99.22%);\n --delete-button-border: linear-gradient(180deg, #a90707 3.04%, #e42525 100%);\n --delete-button-hover: linear-gradient(179.06deg, #e95151 3.49%, #d43434 99.22%);\n --delete-button-disable: linear-gradient(179.06deg, #e95151 3.49%, #d43434 99.22%);\n --drawer-title-color: #252c37;\n --toast-msg-icon-bg: linear-gradient(180deg, #079455 0%, #00693a 100%);\n --error_light: #e42525;\n --ff-success: #079455;\n --ff-warning: #f79009;\n --ff-header-text-color: #fdfaff;\n --ff-header-submenu-text-color: #666468;\n --ff-header-submenu-highlight-text-color: #170328;\n --default-icon-color: #a3a3a3;\n --expandable-menu-default-bg: #fdfaff;\n --expandable-menu-option-bg: rgba(97, 11, 134, 0.1019607843);\n --file-dropzone-default-color: rgba(113, 52, 123, 0.1019607843);\n --file-dropzone-selected-color: rgba(113, 52, 123, 0.2);\n --file-details-container-shadow: rgba(30, 22, 31, 0.1607843137);\n --file-details-bg: #ffffff;\n --ff-mini-modal-border: #ffffff;\n --ff-mini-modal-box-shadow: rgba(55, 19, 85, 0.2392156863);\n --ff-mini-modal-footer-background: #aeb0c0;\n --input-default-border-color: #a3a3a3;\n --input-hover-border-color: #1e161f;\n --input-default-label-color: #747474;\n --input-label-bg-color: #ffffff;\n --input-active-text-color: #71347b;\n --input-error-text-color: #e42525;\n --tabs-label-default-color: #7a7a7a;\n --tabs-label-active-color: #71347b;\n --tabs-border-color: #f1ebf2;\n --tabs-bg-color: #ede6f2;\n --tab-bg-color: #ffffff;\n --toast-close-icon-wrapper-bg: #fafafa;\n --toaster-boxshadow: rgba(30, 22, 31, 0.2392156863);\n --toaster-success-border: linear-gradient(rgba(7, 148, 85, 0.4), rgba(0, 105, 58, 0.4));\n --toaster-warning-border: linear-gradient(rgba(247, 144, 9, 0.4), rgba(214, 122, 0, 0.4));\n --toaster-info-border: linear-gradient(rgba(37, 145, 228, 0.4), rgba(23, 105, 176, 0.4));\n --toaster-danger_confirm-border: linear-gradient(rgba(228, 37, 37, 0.4), rgba(201, 0, 0, 0.4));\n --option-card-border-color: #ded1e5;\n --option-card-bg-color: #ffffff;\n --checkbox-bg-color: #fbfdff;\n --checkbox-border-color: #b5b5b5;\n --checkbox-partial-color: #ffffff;\n --checkbox-hover-color: #f7edff;\n --multi-select-border: rgba(163, 163, 163, 0.5019607843);\n --multi-select-label-bg: #ffffff;\n --text-color-light: rgba(30, 22, 31, 0.5019607843);\n --radio-button-border: #b5b5b5;\n --radio-button-hover: #d3d3d3;\n --menu-option-icon-color: #ffffff;\n --menu-option-icon-clicked: #71347b;\n --delete-text-color: #c50303;\n --status-success-bg-color: #c6efcd;\n --status-success-text-color: #016102;\n --status-warning-bg-color: #ffe380;\n --status-warning-text-color: #ff8b00;\n --status-rejected-bg-color: #f7d9d9;\n --status-rejected-text-color: #c60202;\n --status-skipped-bg-color: #c4c3c3;\n --status-warning-hover-bg-color: #fcd8ac;\n --status-percentage-growth-bg-color: #ecedf8;\n --status-button-bg-passed: #c6efcd;\n --status-button-bg-failed: #f7d9d9;\n --status-button-bg-running: #ecedf8;\n --status-button-bg-skipped: #c4c3c3;\n --status-button-bg-warning: #ffb803;\n --status-button-bg-terminated: #f7d9d9;\n --status-button-bg-partiallyExecuted: #dee7f1;\n --status-button-bg-aborted: #f7d9d9;\n --status-button-bg-notExecuted: #f7d9d9;\n --status-button-text-passed: #016102;\n --status-button-text-failed: #c50303;\n --status-button-text-running: #434db8;\n --status-button-text-skipped: #3c3838;\n --status-button-text-warning: #ffffff;\n --status-button-text-terminated: #c50303;\n --status-button-text-partiallyExecuted: #0d69d4;\n --status-button-text-aborted: #c50303;\n --status-button-text-notExecuted: #c50303;\n --ff-select-option-border-color: #ded1e5;\n --ff-select-option-wrapper-box-shadow: rgba(89, 47, 124, 0.2);\n --ff-select-background-color: #ffffff;\n --ff-select-scroll-thumb-color: #d9d9d9;\n --ff-select-scroll-track-bg: #f1f1f1;\n --ff-select-scroll-thumb-hover: #b8b8b8;\n --ff-select-text-color: #14041c;\n --ff-select-option-hover-color: #f7ebff;\n --ff-select-default-color: #747474;\n --ff-select-border-color: #a3a3a3;\n --ff-select-brand-color: #71347b;\n --ff-select-text-hover-color: #1e161f;\n --ff-search-filed-clear-text: #71347b;\n --ff-search-filed-placeholder-text: #a3a3a3;\n --ff-search-filed-close-Icon: #14041c;\n --primary-icon-color: #ffffff;\n --secondary-icon-color: #71347b;\n --disabled-primary-color: #f9f9f9;\n --license_expireSoon_color: #ba7422;\n --license_active_color: #268735;\n --license_expired_color: #e34242;\n --license_header_text_color: #592f7c;\n --license_active_status_color: #518e18;\n --license_expired_status_color: #ab3425;\n --background-modal-color: rgba(17, 17, 17, 0.0666666667);\n --pie-chart-border-color: #b6b6b6;\n}\n\n.ff-light-theme {\n --brand-color: #71347b;\n --text-color: #1e161f;\n --description-text: #7a7a7a;\n --click-able-text-color: #71347b;\n --icons-default-color: #71347b;\n --border-color: #f0e7f4;\n --disable-color: rgba(113, 52, 123, 0.5019607843);\n --hover-color: #f7ebff;\n --pop-up-background-blur: rgba(20, 4, 28, 0.1019607843);\n --slider-table-color: rgba(212, 176, 228, 0.1490196078);\n --drawer-footer-bg: #ffffff;\n --drawer-footer-border: #f0e7f4;\n --text-bg-highlight: #f5fb00;\n --tooltip-bg-color: #1e161f;\n --tooltip-text-color: #ffffff;\n --toggle-strip-color: #cfd1e2;\n --toggle-strip-active: #71347b;\n --toggle-strip-shadow: rgba(0, 0, 0, 0.2509803922);\n --toggle-button-bg-color: #ffffff;\n --toggle-disable-icon-color: #767994;\n --text-area-default-color: #747474;\n --add-icon-hover-color: #431b4a;\n --arrow-button-bg-color: #ffffff;\n --arrows-button-border-color: #ded1e5;\n --overlay-bg: rgba(30, 22, 31, 0.1019607843);\n --chip-fill-color: #f9d5ff;\n --chip-text-color: #1e161f;\n --file-drop-zone-default-fill-color: rgba(113, 52, 123, 0.1019607843);\n --file-drop-zone-default-text-color: #1e161f;\n --file-drop-zone-selected-fill-color: rgba(113, 52, 123, 0.2);\n --file-drop-zone-selected-text-color: #1e161f;\n --icon-color: #71347b;\n --default-icon-color: #a3a3a3;\n --tree-connecting-lines-color: #d7b5e3;\n --primary-button-color: linear-gradient(188.79deg, #71347b 2.94%, #46164d 93.09%);\n --primary-button-hover: linear-gradient(179.06deg, #8d3b9a 3.49%, #781f86 99.22%);\n --primary-button-disable: linear-gradient(180deg, #46164d 0%, #71347b 100%);\n --primary-button-text-color: #ffffff;\n --primary-button-border: linear-gradient(180deg, #46164d 3.04%, #71347b 100%);\n --secondary-button-color-text: linear-gradient(179.06deg, #71347b 3.49%, #46164d 99.22%);\n --secondary-button-border: linear-gradient(180deg, #46164d 3.04%, #71347b 100%);\n --secondary-button-text-color: #46164d;\n --secondary-button-hover: linear-gradient(179.06deg, rgba(113, 52, 123, 0.0509803922) 3.49%, rgba(70, 22, 77, 0.0509803922) 99.22%);\n --tertiary-button-color: linear-gradient(179.06deg, rgba(113, 52, 123, 0.0509803922) 3.49%, rgba(70, 22, 77, 0.0509803922) 99.22%);\n --tertiary-button-hover: linear-gradient(179.06deg, rgba(113, 52, 123, 0.1019607843) 3.49%, rgba(70, 22, 77, 0.1019607843) 99.22%);\n --delete-button-color: linear-gradient(179.06deg, #e42525 3.49%, #c90000 99.22%);\n --delete-button-border: linear-gradient(180deg, #a90707 3.04%, #e42525 100%);\n --delete-button-hover: linear-gradient(179.06deg, #e95151 3.49%, #d43434 99.22%);\n --delete-button-disable: linear-gradient(179.06deg, #e95151 3.49%, #d43434 99.22%);\n --error: #e42525;\n --drawer-title-color: #252c37;\n --toast-msg-icon-bg: linear-gradient(180deg, #079455 0%, #00693a 100%);\n --error_light: #e42525;\n --ff-success: #079455;\n --ff-warning: #f79009;\n --ff-header-text-color: #fdfaff;\n --ff-header-submenu-text-color: #666468;\n --ff-header-submenu-highlight-text-color: #170328;\n --expandable-menu-default-bg: #fdfaff;\n --expandable-menu-option-bg: rgba(97, 11, 134, 0.1019607843);\n --file-dropzone-default-color: rgba(113, 52, 123, 0.1019607843);\n --file-dropzone-selected-color: rgba(113, 52, 123, 0.2);\n --file-details-container-shadow: rgba(30, 22, 31, 0.1607843137);\n --file-details-bg: #ffffff;\n --ff-mini-modal-border: #ffffff;\n --ff-mini-modal-box-shadow: rgba(55, 19, 85, 0.2392156863);\n --ff-mini-modal-footer-background: #aeb0c0;\n --input-default-border-color: #a3a3a3;\n --input-hover-border-color: #1e161f;\n --input-default-label-color: #747474;\n --input-label-bg-color: #ffffff;\n --input-active-text-color: #71347b;\n --input-error-text-color: #e42525;\n --tabs-label-default-color: #7a7a7a;\n --tabs-label-active-color: #71347b;\n --tabs-border-color: #f1ebf2;\n --tabs-bg-color: #ede6f2;\n --tab-bg-color: #ffffff;\n --toast-close-icon-wrapper-bg: #fafafa;\n --toaster-boxshadow: rgba(30, 22, 31, 0.2392156863);\n --toaster-success-border: linear-gradient(rgba(7, 148, 85, 0.4), rgba(0, 105, 58, 0.4));\n --toaster-warning-border: linear-gradient(rgba(247, 144, 9, 0.4), rgba(214, 122, 0, 0.4));\n --toaster-info-border: linear-gradient(rgba(37, 145, 228, 0.4), rgba(23, 105, 176, 0.4));\n --toaster-danger_confirm-border: linear-gradient(rgba(228, 37, 37, 0.4), rgba(201, 0, 0, 0.4));\n --option-card-border-color: #ded1e5;\n --option-card-bg-color: #ffffff;\n --checkbox-bg-color: #fbfdff;\n --checkbox-border-color: #b5b5b5;\n --checkbox-partial-color: #ffffff;\n --checkbox-hover-color: #f7edff;\n --multi-select-border: rgba(163, 163, 163, 0.5019607843);\n --multi-select-label-bg: #ffffff;\n --text-color-light: rgba(30, 22, 31, 0.5019607843);\n --radio-button-border: #b5b5b5;\n --radio-button-hover: #d3d3d3;\n --menu-option-icon-color: #ffffff;\n --menu-option-icon-clicked: #71347b;\n --delete-text-color: #c50303;\n --status-success-bg-color: #c6efcd;\n --status-success-text-color: #016102;\n --status-warning-bg-color: #ffe380;\n --status-warning-text-color: #ff8b00;\n --status-rejected-bg-color: #f7d9d9;\n --status-rejected-text-color: #c60202;\n --status-skipped-bg-color: #c4c3c3;\n --status-warning-hover-bg-color: #fcd8ac;\n --status-percentage-growth-bg-color: #ecedf8;\n --status-button-bg-passed: #c6efcd;\n --status-button-bg-failed: #f7d9d9;\n --status-button-bg-running: #ecedf8;\n --status-button-bg-skipped: #c4c3c3;\n --status-button-bg-warning: #ffb803;\n --status-button-bg-terminated: #f7d9d9;\n --status-button-bg-partiallyExecuted: #dee7f1;\n --status-button-bg-aborted: #f7d9d9;\n --status-button-bg-notExecuted: #f7d9d9;\n --status-button-text-passed: #016102;\n --status-button-text-failed: #c50303;\n --status-button-text-running: #434db8;\n --status-button-text-skipped: #3c3838;\n --status-button-text-warning: #ffffff;\n --status-button-text-terminated: #c50303;\n --status-button-text-partiallyExecuted: #0d69d4;\n --status-button-text-aborted: #c50303;\n --status-button-text-notExecuted: #c50303;\n --ff-select-option-border-color: #ded1e5;\n --ff-select-option-wrapper-box-shadow: rgba(89, 47, 124, 0.2);\n --ff-select-background-color: #ffffff;\n --ff-select-scroll-thumb-color: #d9d9d9;\n --ff-select-scroll-track-bg: #f1f1f1;\n --ff-select-scroll-thumb-hover: #b8b8b8;\n --ff-select-text-color: #14041c;\n --ff-select-option-hover-color: #f7ebff;\n --ff-select-default-color: #747474;\n --ff-select-border-color: #a3a3a3;\n --ff-select-brand-color: #71347b;\n --ff-select-text-hover-color: #1e161f;\n --ff-search-filed-clear-text: #71347b;\n --ff-search-filed-placeholder-text: #a3a3a3;\n --ff-search-filed-close-Icon: #14041c;\n --primary-icon-color: #ffffff;\n --secondary-icon-color: #71347b;\n --disabled-primary-color: #f9f9f9;\n --background-modal-color: rgba(17, 17, 17, 0.0666666667);\n --license_expireSoon_color: #ba7422;\n --license_active_color: #268735;\n --license_expired_color: #e34242;\n --license_header_text_color: #592f7c;\n --license_active_status_color: #518e18;\n --license_expired_status_color: #ab3425;\n --pie-chart-border-color: #b6b6b6;\n}\n\n.ff-dark-theme {\n --brand-color: #71347b;\n --text-color: #e8e0e9;\n --description-text: #d9d9d9;\n --click-able-text-color: #e8e0e9;\n --icons-default-color: #e8e0e9;\n --border-color: #333234;\n --disable-color: rgba(113, 52, 123, 0.5019607843);\n --hover-color: #f7ebff;\n --pop-up-background-blur: rgba(18, 18, 18, 0.6);\n --slider-table-color: #272428;\n --drawer-footer-bg: rgba(27, 24, 28, 0.6);\n --drawer-footer-border: #333234;\n --text-bg-highlight: #f5fb00;\n --tooltip-bg-color: #2a2a2a;\n --tooltip-text-color: #ffffff;\n --toggle-strip-color: #cfd1e2;\n --toggle-strip-active-color: #71347b;\n --toggle-strip-shadow: rgba(0, 0, 0, 0.2509803922);\n --toggle-button-bg-color: #ffffff;\n --toggle-disable-icon-color: #767994;\n --text-area-default-color: #747474;\n --add-icon-hover-color: #431b4a;\n --arrow-button-bg-color: #ffffff;\n --arrows-button-border-color: #ded1e5;\n --overlay-bg: rgba(18, 18, 18, 0.6);\n --chip-fill-color: #f9d5ff;\n --chip-text-color: #1e161f;\n --file-drop-zone-default-fill-color: rgba(113, 52, 123, 0.1019607843);\n --file-drop-zone-default-text-color: #1e161f;\n --file-drop-zone-selected-fill-color: rgba(113, 52, 123, 0.2);\n --file-drop-zone-selected-text-color: #1e161f;\n --icon-color: #71347b;\n --tree-connecting-lines-color: #d7b5e3;\n --primary-button-color: linear-gradient(188.79deg, #71347b 2.94%, #46164d 93.09%);\n --primary-button-hover: linear-gradient(188.79deg, #7c4685 2.94%, #582d5f 93.09%);\n --primary-button-disable: linear-gradient(188.79deg, #71347b 2.94%, #46164d 93.09%);\n --primary-button-text-color: #ffffff;\n --primary-button-border: linear-gradient(180deg, #46164d 3.04%, #71347b 100%);\n --secondary-button-color-text: linear-gradient(179.06deg, #71347b 3.49%, #46164d 99.22%);\n --secondary-button-border: linear-gradient(360deg, #46164d 0%, #71347b 100%);\n --secondary-button-text-color: #71347b;\n --secondary-button-hover: linear-gradient(179.06deg, rgba(113, 52, 123, 0.0509803922) 3.49%, rgba(70, 22, 77, 0.0509803922) 99.22%);\n --tertiary-button-color: linear-gradient(180deg, rgba(70, 22, 77, 0.05) 0%, rgba(113, 52, 123, 0.05) 100%);\n --tertiary-button-hover: linear-gradient(180deg, rgba(70, 22, 77, 0.1) 0%, rgba(113, 52, 123, 0.1) 100%);\n --delete-button-color: linear-gradient(179.06deg, #e42525 3.49%, #c90000 99.22%);\n --delete-button-border: linear-gradient(180deg, #a90707 3.04%, #e42525 100%);\n --delete-button-hover: linear-gradient(179.06deg, #e95151 3.49%, #d43434 99.22%);\n --delete-button-disable: linear-gradient(179.06deg, #e95151 3.49%, #d43434 99.22%);\n --drawer-title-color: #252c37;\n --toast-msg-icon-bg: linear-gradient(180deg, #079455 0%, #00693a 100%);\n --error_light: #e42525;\n --ff-success: #079455;\n --ff-warning: #f79009;\n --ff-header-text-color: #fdfaff;\n --ff-header-submenu-text-color: #666468;\n --ff-header-submenu-highlight-text-color: #170328;\n --default-icon-color: #a3a3a3;\n --expandable-menu-default-bg: #fdfaff;\n --expandable-menu-option-bg: rgba(97, 11, 134, 0.1019607843);\n --file-dropzone-default-color: rgba(113, 52, 123, 0.1019607843);\n --file-dropzone-selected-color: rgba(113, 52, 123, 0.2);\n --file-details-container-shadow: rgba(30, 22, 31, 0.1607843137);\n --file-details-bg: #ffffff;\n --ff-mini-modal-border: #ffffff;\n --ff-mini-modal-box-shadow: rgba(55, 19, 85, 0.2392156863);\n --ff-mini-modal-footer-background: #aeb0c0;\n --input-default-border-color: #a3a3a3;\n --input-hover-border-color: #1e161f;\n --input-default-label-color: #747474;\n --input-label-bg-color: #ffffff;\n --input-active-text-color: #71347b;\n --input-error-text-color: #e42525;\n --tabs-label-default-color: #7a7a7a;\n --tabs-label-active-color: #71347b;\n --tabs-border-color: #f1ebf2;\n --tabs-bg-color: #ede6f2;\n --tab-bg-color: #ffffff;\n --toast-close-icon-wrapper-bg: #fafafa;\n --toaster-boxshadow: rgba(30, 22, 31, 0.2392156863);\n --toaster-success-border: linear-gradient(rgba(7, 148, 85, 0.4), rgba(0, 105, 58, 0.4));\n --toaster-warning-border: linear-gradient(rgba(247, 144, 9, 0.4), rgba(214, 122, 0, 0.4));\n --toaster-info-border: linear-gradient(rgba(37, 145, 228, 0.4), rgba(23, 105, 176, 0.4));\n --toaster-danger_confirm-border: linear-gradient(rgba(228, 37, 37, 0.4), rgba(201, 0, 0, 0.4));\n --option-card-border-color: #ded1e5;\n --option-card-bg-color: #ffffff;\n --checkbox-bg-color: #fbfdff;\n --checkbox-border-color: #b5b5b5;\n --checkbox-partial-color: #ffffff;\n --checkbox-hover-color: #f7edff;\n --multi-select-border: rgba(163, 163, 163, 0.5019607843);\n --multi-select-label-bg: #ffffff;\n --text-color-light: rgba(30, 22, 31, 0.5019607843);\n --radio-button-border: #b5b5b5;\n --radio-button-hover: #d3d3d3;\n --menu-option-icon-color: #ffffff;\n --menu-option-icon-clicked: #71347b;\n --delete-text-color: #c50303;\n --status-success-bg-color: #c6efcd;\n --status-success-text-color: #016102;\n --status-warning-bg-color: #ffe380;\n --status-warning-text-color: #ff8b00;\n --status-rejected-bg-color: #f7d9d9;\n --status-rejected-text-color: #c60202;\n --status-skipped-bg-color: #c4c3c3;\n --status-warning-hover-bg-color: #fcd8ac;\n --status-percentage-growth-bg-color: #ecedf8;\n --status-button-bg-passed: #c6efcd;\n --status-button-bg-failed: #f7d9d9;\n --status-button-bg-running: #ecedf8;\n --status-button-bg-skipped: #c4c3c3;\n --status-button-bg-warning: #ffb803;\n --status-button-bg-terminated: #f7d9d9;\n --status-button-bg-partiallyExecuted: #dee7f1;\n --status-button-bg-aborted: #f7d9d9;\n --status-button-bg-notExecuted: #f7d9d9;\n --status-button-text-passed: #016102;\n --status-button-text-failed: #c50303;\n --status-button-text-running: #434db8;\n --status-button-text-skipped: #3c3838;\n --status-button-text-warning: #ffffff;\n --status-button-text-terminated: #c50303;\n --status-button-text-partiallyExecuted: #0d69d4;\n --status-button-text-aborted: #c50303;\n --status-button-text-notExecuted: #c50303;\n --ff-select-option-border-color: #ded1e5;\n --ff-select-option-wrapper-box-shadow: rgba(89, 47, 124, 0.2);\n --ff-select-background-color: #ffffff;\n --ff-select-scroll-thumb-color: #d9d9d9;\n --ff-select-scroll-track-bg: #f1f1f1;\n --ff-select-scroll-thumb-hover: #b8b8b8;\n --ff-select-text-color: #14041c;\n --ff-select-option-hover-color: #f7ebff;\n --ff-select-default-color: #747474;\n --ff-select-border-color: #a3a3a3;\n --ff-select-brand-color: #71347b;\n --ff-select-text-hover-color: #1e161f;\n --ff-search-filed-clear-text: #71347b;\n --ff-search-filed-placeholder-text: #a3a3a3;\n --ff-search-filed-close-Icon: #14041c;\n --primary-icon-color: #ffffff;\n --secondary-icon-color: #71347b;\n --disabled-primary-color: #f9f9f9;\n --license_expireSoon_color: #ba7422;\n --license_active_color: #268735;\n --license_expired_color: #e34242;\n --license_header_text_color: #592f7c;\n --license_active_status_color: #518e18;\n --license_expired_status_color: #ab3425;\n --background-modal-color: rgba(17, 17, 17, 0.0666666667);\n --pie-chart-border-color: #b6b6b6;\n}";
|
414
|
+
styleInject(css_248z$H);
|
409
415
|
|
410
416
|
const ThemeContext = /*#__PURE__*/createContext(undefined);
|
411
417
|
const ThemeProvider = ({
|
@@ -565,14 +571,14 @@ const Drawer = ({
|
|
565
571
|
}), document.body);
|
566
572
|
};
|
567
573
|
|
568
|
-
var css_248z$
|
569
|
-
styleInject(css_248z$
|
574
|
+
var css_248z$G = "@font-face {\n font-family: \"Poppins\";\n font-weight: 400;\n src: local(\"Poppins-Regular\"), url(../../fonts/Poppins/Poppins-Regular.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 500;\n src: local(\"Poppins-Medium\"), url(../../fonts/Poppins/Poppins-Medium.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 600;\n src: local(\"Poppins-SemiBold\"), url(../../fonts/Poppins/Poppins-SemiBold.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 700;\n src: local(\"Poppins-Bold\"), url(../../fonts/Poppins/Poppins-Bold.ttf) format(\"truetype\");\n}\n.fontXs {\n font-family: \"Poppins\", sans-serif;\n font-size: 10px;\n}\n\n.fontSm {\n font-family: \"Poppins\", sans-serif;\n font-size: 12px;\n}\n\n.fontMd {\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\", sans-serif;\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\", sans-serif;\n font-size: 18px;\n}\n\n.font2Xl {\n font-family: \"Poppins\", sans-serif;\n font-size: 24px;\n}\n\n.font-size-8 {\n font-family: \"Poppins\", sans-serif;\n font-size: 8px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\", sans-serif;\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\", sans-serif;\n font-size: 80px;\n}\n\n.ff-accordion {\n border: 1px solid var(--border-color);\n border-radius: 4px;\n min-width: fit-content;\n}\n.ff-accordion .accordion-header {\n display: flex;\n justify-content: space-between;\n min-height: 32px;\n}\n.ff-accordion .accordion-header .header-title {\n padding: 8px;\n}\n.ff-accordion .accordion-header .accordion-arrow {\n display: flex;\n padding: 8px;\n align-items: center;\n transition: transform 0.3s ease;\n}\n.ff-accordion .accordion-header .accordion-arrow.expanded {\n transform: rotate(180deg);\n}\n.ff-accordion .accordion-header .accordion-arrow:hover {\n color: var(--tooltip-bg-color);\n}\n.ff-accordion .accordion-header.expanded {\n background-color: var(--hover-color);\n border-bottom: 1px solid var(--hover-color);\n}\n.ff-accordion .accordion-header:hover {\n background-color: var(--hover-color);\n}\n.ff-accordion .accordion-content {\n padding: 4px;\n}";
|
575
|
+
styleInject(css_248z$G);
|
570
576
|
|
571
|
-
var css_248z$
|
572
|
-
styleInject(css_248z$
|
577
|
+
var css_248z$F = "";
|
578
|
+
styleInject(css_248z$F);
|
573
579
|
|
574
|
-
var css_248z$
|
575
|
-
styleInject(css_248z$
|
580
|
+
var css_248z$E = "@font-face {\n font-family: \"Poppins\";\n font-weight: 400;\n src: local(\"Poppins-Regular\"), url(../../fonts/Poppins/Poppins-Regular.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 500;\n src: local(\"Poppins-Medium\"), url(../../fonts/Poppins/Poppins-Medium.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 600;\n src: local(\"Poppins-SemiBold\"), url(../../fonts/Poppins/Poppins-SemiBold.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 700;\n src: local(\"Poppins-Bold\"), url(../../fonts/Poppins/Poppins-Bold.ttf) format(\"truetype\");\n}\n.fontXs {\n font-family: \"Poppins\", sans-serif;\n font-size: 10px;\n}\n\n.fontSm, .ff-tooltip {\n font-family: \"Poppins\", sans-serif;\n font-size: 12px;\n}\n\n.fontMd {\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\", sans-serif;\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\", sans-serif;\n font-size: 18px;\n}\n\n.font2Xl {\n font-family: \"Poppins\", sans-serif;\n font-size: 24px;\n}\n\n.font-size-8 {\n font-family: \"Poppins\", sans-serif;\n font-size: 8px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\", sans-serif;\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\", sans-serif;\n font-size: 80px;\n}\n\n.ff-tooltip-container {\n cursor: auto;\n display: inline-block;\n}\n\n.ff-tooltip {\n position: fixed;\n width: max-content;\n max-width: 60vw;\n word-wrap: break-word;\n background-color: var(--tooltip-bg-color);\n line-height: 18px;\n color: var(--tooltip-text-color);\n text-align: center;\n border-radius: 5px;\n padding: 6px 12px;\n opacity: 0;\n}\n.ff-tooltip--visible {\n opacity: 1;\n transition: opacity 0.3s;\n}";
|
581
|
+
styleInject(css_248z$E);
|
576
582
|
|
577
583
|
const checkEmpty = value => {
|
578
584
|
// Check for null or undefined
|
@@ -741,8 +747,8 @@ const Tooltip = ({
|
|
741
747
|
});
|
742
748
|
};
|
743
749
|
|
744
|
-
var css_248z$
|
745
|
-
styleInject(css_248z$
|
750
|
+
var css_248z$D = "@font-face {\n font-family: \"Poppins\";\n font-weight: 400;\n src: local(\"Poppins-Regular\"), url(../../fonts/Poppins/Poppins-Regular.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 500;\n src: local(\"Poppins-Medium\"), url(../../fonts/Poppins/Poppins-Medium.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 600;\n src: local(\"Poppins-SemiBold\"), url(../../fonts/Poppins/Poppins-SemiBold.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 700;\n src: local(\"Poppins-Bold\"), url(../../fonts/Poppins/Poppins-Bold.ttf) format(\"truetype\");\n}\n.ff-text {\n font-family: \"Poppins\", sans-serif;\n font-size: 16px;\n}\n.ff-text--regular {\n font-weight: 400;\n}\n.ff-text--medium {\n font-weight: 500;\n}\n.ff-text--semi-bold {\n font-weight: 600;\n}\n.ff-text--bold {\n font-weight: 700;\n}";
|
751
|
+
styleInject(css_248z$D);
|
746
752
|
|
747
753
|
const Typography = ({
|
748
754
|
fontWeight = 'regular',
|
@@ -827,8 +833,8 @@ const Accordion = ({
|
|
827
833
|
});
|
828
834
|
};
|
829
835
|
|
830
|
-
var css_248z$
|
831
|
-
styleInject(css_248z$
|
836
|
+
var css_248z$C = "@font-face {\n font-family: \"Poppins\";\n font-weight: 400;\n src: local(\"Poppins-Regular\"), url(../../fonts/Poppins/Poppins-Regular.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 500;\n src: local(\"Poppins-Medium\"), url(../../fonts/Poppins/Poppins-Medium.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 600;\n src: local(\"Poppins-SemiBold\"), url(../../fonts/Poppins/Poppins-SemiBold.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 700;\n src: local(\"Poppins-Bold\"), url(../../fonts/Poppins/Poppins-Bold.ttf) format(\"truetype\");\n}\n.fontXs, .ff-multiselect-wrapper .ff-multiselect__main .ff-multiselect-chip-container .ff-multiselect-chip .ff-multiselect-chip-label, .ff-multiselect-wrapper .ff-multiselect__main .ff-multiselect-chip-container .ff-multiselect-more-chip {\n font-family: \"Poppins\", sans-serif;\n font-size: 10px;\n}\n\n.fontSm, .ff-multiselect-wrapper .ff-multiselect__main .default-label {\n font-family: \"Poppins\", sans-serif;\n font-size: 12px;\n}\n\n.fontMd {\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\", sans-serif;\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\", sans-serif;\n font-size: 18px;\n}\n\n.font2Xl {\n font-family: \"Poppins\", sans-serif;\n font-size: 24px;\n}\n\n.font-size-8, .ff-multiselect-wrapper .ff-multiselect__main .active-default-label, .ff-multiselect-wrapper .error-text {\n font-family: \"Poppins\", sans-serif;\n font-size: 8px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\", sans-serif;\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\", sans-serif;\n font-size: 80px;\n}\n\n.ff-multiselect-wrapper {\n box-sizing: border-box;\n transition: all 0.3s ease;\n cursor: pointer;\n position: relative;\n border: 1px solid var(--default-icon-color);\n border-radius: 8px;\n background: var(--drawer-footer-bg);\n min-width: 150px;\n width: 100%;\n height: 32px;\n}\n.ff-multiselect-wrapper .ff-multiselect {\n position: relative;\n padding: 6px;\n border: none;\n border-radius: 8px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n.ff-multiselect-wrapper .ff-multiselect__main {\n display: flex;\n flex: 1;\n}\n.ff-multiselect-wrapper .ff-multiselect__main .default-label {\n font-family: Poppins;\n font-weight: 400;\n letter-spacing: 0.5px;\n transition: all 0.3s ease;\n color: var(--default-icon-color);\n line-height: 18px;\n}\n.ff-multiselect-wrapper .ff-multiselect__main .active-default-label {\n font-family: Poppins;\n font-weight: 400;\n letter-spacing: 0.5px;\n transition: all 0.3s ease;\n background-color: var(--multi-select-label-bg);\n line-height: 12px;\n color: var(--default-icon-color);\n padding: 0 4px;\n position: absolute;\n left: 8px;\n top: -6px;\n pointer-events: none;\n}\n.ff-multiselect-wrapper .ff-multiselect__main .ff-multiselect-chip-container {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 5px;\n}\n.ff-multiselect-wrapper .ff-multiselect__main .ff-multiselect-chip-container .ff-multiselect-chip {\n display: flex;\n align-items: center;\n justify-content: space-between;\n box-sizing: border-box;\n border: 0.5px solid #f1ebf2;\n padding: 0 1px 0 4px;\n gap: 4px;\n border-radius: 15px;\n}\n.ff-multiselect-wrapper .ff-multiselect__main .ff-multiselect-chip-container .ff-multiselect-chip .ff-multiselect-chip-label {\n line-height: 14px;\n color: var(--tooltip-bg-color);\n}\n.ff-multiselect-wrapper .ff-multiselect__main .ff-multiselect-chip-container .ff-multiselect-chip .ff-multiselect-chip-close-icon {\n cursor: pointer;\n}\n.ff-multiselect-wrapper .ff-multiselect__main .ff-multiselect-chip-container .ff-multiselect-input-container {\n flex: 1;\n min-width: 20px;\n}\n.ff-multiselect-wrapper .ff-multiselect__main .ff-multiselect-chip-container .ff-multiselect-input-container input {\n width: 100%;\n min-width: 30px;\n max-width: calc(100% - 0px);\n padding: 2px;\n box-sizing: border-box;\n border: none;\n font-size: 12px;\n}\n.ff-multiselect-wrapper .ff-multiselect__main .ff-multiselect-chip-container .ff-multiselect-input-container input:focus {\n outline: none;\n}\n.ff-multiselect-wrapper .ff-multiselect__main .ff-multiselect-chip-container .ff-multiselect-more-chip {\n width: 1rem;\n font-weight: 600;\n line-height: 16px;\n color: var(--brand-color);\n}\n.ff-multiselect-wrapper .ff-multiselect__toggle {\n display: flex;\n align-items: center;\n cursor: pointer;\n}\n.ff-multiselect-wrapper .ff-multiselect__toggle .ff-select-arrow {\n transition: transform 0.3s ease;\n transform: rotate(360deg);\n}\n.ff-multiselect-wrapper .ff-multiselect__toggle .ff-select-arrow svg path {\n transition: all 0.3s ease;\n}\n.ff-multiselect-wrapper .ff-multiselect__toggle .ff-select-arrow--opened-dropdown {\n transform: rotate(180deg);\n transition: transform 0.3s ease;\n}\n.ff-multiselect-wrapper:hover {\n border: 1px solid var(--tooltip-bg-color);\n}\n.ff-multiselect-wrapper:hover .ff-multiselect .ff-multiselect__main .default-label,\n.ff-multiselect-wrapper:hover .ff-multiselect .ff-multiselect__main .active-default-label {\n color: var(--tooltip-bg-color);\n}\n.ff-multiselect-wrapper:hover .ff-select-arrow svg path {\n fill: var(--tooltip-bg-color);\n transition: all 0.3s ease;\n}\n.ff-multiselect-wrapper--with-options {\n height: fit-content;\n}\n.ff-multiselect-wrapper--opened-dropdown {\n border: 1px solid var(--brand-color);\n height: fit-content;\n cursor: default;\n}\n.ff-multiselect-wrapper--opened-dropdown .ff-multiselect .ff-multiselect__main .active-default-label {\n color: var(--brand-color);\n}\n.ff-multiselect-wrapper--opened-dropdown:hover {\n border: 1px solid var(--brand-color);\n}\n.ff-multiselect-wrapper--opened-dropdown:hover .ff-multiselect .ff-multiselect__main .default-label,\n.ff-multiselect-wrapper--opened-dropdown:hover .ff-multiselect .ff-multiselect__main .active-default-label {\n color: var(--brand-color);\n}\n.ff-multiselect-wrapper--error {\n border: 1px solid var(--error-light);\n}\n.ff-multiselect-wrapper--error .ff-multiselect .ff-multiselect__main .active-default-label {\n color: var(--error-light);\n}\n.ff-multiselect-wrapper--error:hover {\n border: 1px solid var(--error-light);\n}\n.ff-multiselect-wrapper--error:hover .ff-multiselect .ff-multiselect__main .default-label,\n.ff-multiselect-wrapper--error:hover .ff-multiselect .ff-multiselect__main .active-default-label {\n color: var(--error-light);\n}\n.ff-multiselect-wrapper--disabled {\n pointer-events: none;\n border: 1px solid var(--multi-select-border);\n}\n.ff-multiselect-wrapper--disabled .ff-multiselect .ff-multiselect__main .active-default-label {\n color: var(--multi-select-border);\n}\n.ff-multiselect-wrapper--disabled:hover {\n border: 1px solid var(--multi-select-border);\n}\n.ff-multiselect-wrapper--disabled:hover .ff-multiselect .ff-multiselect__main .default-label,\n.ff-multiselect-wrapper--disabled:hover .ff-multiselect .ff-multiselect__main .active-default-label {\n color: var(--multi-select-border);\n}\n.ff-multiselect-wrapper--disabled .ff-select-arrow svg path {\n fill: var(--multi-select-border);\n transition: all 0.3s ease;\n}\n.ff-multiselect-wrapper--disabled:hover .ff-select-arrow svg path {\n fill: var(--multi-select-border);\n transition: all 0.3s ease;\n}\n.ff-multiselect-wrapper--disabled .ff-multiselect__main .ff-multiselect-chip-container .ff-multiselect-chip .ff-multiselect-chip-label {\n color: var(--text-color-light);\n}\n.ff-multiselect-wrapper .error-text {\n position: absolute;\n margin-top: 0.25rem;\n left: 12px;\n color: var(--error-light);\n letter-spacing: 0.5px;\n}";
|
837
|
+
styleInject(css_248z$C);
|
832
838
|
|
833
839
|
const dropdownDefaultCSSData$1 = {
|
834
840
|
verticalMargin: 4,
|
@@ -836,8 +842,8 @@ const dropdownDefaultCSSData$1 = {
|
|
836
842
|
maxDropdownHeight: 160
|
837
843
|
};
|
838
844
|
|
839
|
-
var css_248z$
|
840
|
-
styleInject(css_248z$
|
845
|
+
var css_248z$B = "@font-face {\n font-family: \"Poppins\";\n font-weight: 400;\n src: local(\"Poppins-Regular\"), url(../../fonts/Poppins/Poppins-Regular.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 500;\n src: local(\"Poppins-Medium\"), url(../../fonts/Poppins/Poppins-Medium.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 600;\n src: local(\"Poppins-SemiBold\"), url(../../fonts/Poppins/Poppins-SemiBold.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 700;\n src: local(\"Poppins-Bold\"), url(../../fonts/Poppins/Poppins-Bold.ttf) format(\"truetype\");\n}\n.fontXs {\n font-family: \"Poppins\", sans-serif;\n font-size: 10px;\n}\n\n.fontSm {\n font-family: \"Poppins\", sans-serif;\n font-size: 12px;\n}\n\n.fontMd, .ff-multiselect-dropdown-container .no-options, .ff-multiselect-dropdown-container .dropdown-option-container .dropdown-option-label {\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\", sans-serif;\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\", sans-serif;\n font-size: 18px;\n}\n\n.font2Xl {\n font-family: \"Poppins\", sans-serif;\n font-size: 24px;\n}\n\n.font-size-8 {\n font-family: \"Poppins\", sans-serif;\n font-size: 8px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\", sans-serif;\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\", sans-serif;\n font-size: 80px;\n}\n\n.ff-multiselect-dropdown-container {\n position: absolute;\n background: var(--drawer-footer-bg);\n z-index: 1000;\n box-shadow: 0px 1px 4px 0px var(--ff-select-option-wrapper-box-shadow);\n border: 0.5px solid var(--ff-select-option-border-color);\n border-radius: 4px;\n box-sizing: border-box;\n margin-block: 4px;\n max-height: 160px;\n}\n.ff-multiselect-dropdown-container .ff-multiselect-options-wrapper {\n max-height: 128px;\n overflow-y: auto;\n}\n.ff-multiselect-dropdown-container .ff-multiselect-options-wrapper::-webkit-scrollbar {\n width: 4px;\n height: 40px;\n border-radius: 12px 0px 0px 0px;\n background: var(--description-text);\n}\n.ff-multiselect-dropdown-container .ff-multiselect-options-wrapper::-webkit-scrollbar-track {\n background: var(--ff-select-scroll-track-bg);\n}\n.ff-multiselect-dropdown-container .ff-multiselect-options-wrapper::-webkit-scrollbar-thumb {\n background: var(--ff-select-scroll-thumb-color);\n border-radius: 10px;\n}\n.ff-multiselect-dropdown-container .ff-multiselect-options-wrapper::-webkit-scrollbar-thumb:hover {\n background: var(--ff-select-scroll-thumb-hover);\n}\n.ff-multiselect-dropdown-container .no-options {\n color: var(--pop-up-background-blur);\n text-align: center;\n margin: 0;\n padding: 10px;\n line-height: 12px;\n}\n.ff-multiselect-dropdown-container .dropdown-option-container {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n height: 32px;\n padding: 4px 8px;\n gap: 4px;\n border-radius: 4px 0px 0px 0px;\n background-color: white;\n}\n.ff-multiselect-dropdown-container .dropdown-option-container .dropdown-option-label {\n color: var(--ff-select-text-color);\n}\n.ff-multiselect-dropdown-container .dropdown-option-container:hover {\n background-color: var(--hover-color);\n}\n.ff-multiselect-dropdown-container:focus {\n outline: none;\n}\n.ff-multiselect-dropdown-container .select-button-container {\n box-sizing: border-box;\n width: 100%;\n border-top: 1px solid var(--slider-table-color);\n height: 30px;\n display: flex;\n justify-content: center;\n align-items: center;\n}";
|
846
|
+
styleInject(css_248z$B);
|
841
847
|
|
842
848
|
const Dropdown$2 = /*#__PURE__*/forwardRef(({
|
843
849
|
options,
|
@@ -933,8 +939,8 @@ const ChipElement = ({
|
|
933
939
|
return null;
|
934
940
|
};
|
935
941
|
const MultiSelect = ({
|
936
|
-
options,
|
937
|
-
type =
|
942
|
+
options = [],
|
943
|
+
type = 'text',
|
938
944
|
selectedOptions = [],
|
939
945
|
onChange = () => {},
|
940
946
|
acceptNewOption = false,
|
@@ -1000,13 +1006,13 @@ const MultiSelect = ({
|
|
1000
1006
|
handleOptionChange(option, false);
|
1001
1007
|
};
|
1002
1008
|
const handleKeyEnter = e => {
|
1003
|
-
if (acceptNewOption && e.key ===
|
1009
|
+
if (acceptNewOption && e.key === 'Enter') {
|
1004
1010
|
setInputError('');
|
1005
|
-
if (type ===
|
1011
|
+
if (type === 'email') {
|
1006
1012
|
const emailPattern = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
1007
1013
|
if (!emailPattern.test(searchedKeyword)) {
|
1008
1014
|
setIsOpen(false);
|
1009
|
-
setInputError(
|
1015
|
+
setInputError('Please enter a valid email address.');
|
1010
1016
|
return;
|
1011
1017
|
}
|
1012
1018
|
}
|
@@ -1038,6 +1044,15 @@ const MultiSelect = ({
|
|
1038
1044
|
});
|
1039
1045
|
}
|
1040
1046
|
};
|
1047
|
+
const handleSearch = e => {
|
1048
|
+
if (!isOpen) {
|
1049
|
+
setIsOpen(true);
|
1050
|
+
}
|
1051
|
+
const input = e.target.value;
|
1052
|
+
setSearchedKeyword(input);
|
1053
|
+
const filteredOptions = options.filter(option => option.value?.toLowerCase().includes(input.toLowerCase()));
|
1054
|
+
onSearch?.(input, filteredOptions.length);
|
1055
|
+
};
|
1041
1056
|
useEffect(() => {
|
1042
1057
|
if (isOpen) {
|
1043
1058
|
calculatePosition();
|
@@ -1121,13 +1136,7 @@ const MultiSelect = ({
|
|
1121
1136
|
autoComplete: "off",
|
1122
1137
|
placeholder: "search...",
|
1123
1138
|
ref: inputRef,
|
1124
|
-
onChange:
|
1125
|
-
if (!isOpen) {
|
1126
|
-
setIsOpen(true);
|
1127
|
-
}
|
1128
|
-
setSearchedKeyword(e.target.value);
|
1129
|
-
onSearch?.(e.target.value);
|
1130
|
-
},
|
1139
|
+
onChange: handleSearch,
|
1131
1140
|
onKeyDown: handleKeyEnter,
|
1132
1141
|
id: "input-ele",
|
1133
1142
|
className: "ff-select-input",
|
@@ -1173,8 +1182,8 @@ const MultiSelect = ({
|
|
1173
1182
|
});
|
1174
1183
|
};
|
1175
1184
|
|
1176
|
-
var css_248z$
|
1177
|
-
styleInject(css_248z$
|
1185
|
+
var css_248z$A = "@font-face {\n font-family: \"Poppins\";\n font-weight: 400;\n src: local(\"Poppins-Regular\"), url(../../fonts/Poppins/Poppins-Regular.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 500;\n src: local(\"Poppins-Medium\"), url(../../fonts/Poppins/Poppins-Medium.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 600;\n src: local(\"Poppins-SemiBold\"), url(../../fonts/Poppins/Poppins-SemiBold.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 700;\n src: local(\"Poppins-Bold\"), url(../../fonts/Poppins/Poppins-Bold.ttf) format(\"truetype\");\n}\n.fontXs {\n font-family: \"Poppins\", sans-serif;\n font-size: 10px;\n}\n\n.fontSm {\n font-family: \"Poppins\", sans-serif;\n font-size: 12px;\n}\n\n.fontMd {\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\", sans-serif;\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\", sans-serif;\n font-size: 18px;\n}\n\n.font2Xl {\n font-family: \"Poppins\", sans-serif;\n font-size: 24px;\n}\n\n.font-size-8 {\n font-family: \"Poppins\", sans-serif;\n font-size: 8px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\", sans-serif;\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\", sans-serif;\n font-size: 80px;\n}\n\n.ff-toaster-overlay {\n position: fixed;\n bottom: 0;\n right: 0;\n width: 100%;\n height: 100%;\n display: flex;\n pointer-events: none;\n justify-content: flex-end;\n align-items: flex-end;\n}\n.ff-toaster-overlay .ff-toaster {\n background-color: var(--drawer-footer-bg);\n display: flex;\n border-radius: 10px;\n margin: 16px;\n pointer-events: auto;\n min-width: 320px;\n max-width: 600px;\n gap: 8px;\n box-shadow: 0px 1px 4px 0px var(--toaster-boxshadow);\n animation: slideInToasterBottomRight 0.5s forwards;\n}\n.ff-toaster-overlay .ff-toaster .ff-toaster-container {\n padding: 8px;\n display: flex;\n border-radius: 10px;\n gap: 8px;\n width: 100%;\n}\n.ff-toaster-overlay .ff-toaster .ff-toaster-container::before {\n content: \"\";\n position: absolute;\n inset: 0;\n border-radius: 8px;\n padding: 1px;\n -webkit-mask: linear-gradient(var(--drawer-footer-bg) 0 0) content-box, linear-gradient(var(--drawer-footer-bg) 0 0);\n -webkit-mask-composite: xor;\n mask-composite: exclude;\n z-index: -1;\n}\n.ff-toaster-overlay .ff-toaster .ff-toaster-container .ff-toaster-content {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n gap: 4px;\n}\n.ff-toaster-overlay .ff-toaster .ff-toaster-container .ff-toaster-content__title {\n max-width: 500px;\n word-wrap: break-word;\n}\n.ff-toaster-overlay .ff-toaster .ff-toaster-container .ff-toaster-content__message {\n max-width: 500px;\n word-wrap: break-word;\n}\n.ff-toaster-overlay .ff-toaster .ff-toaster-container .ff-toaster-content__prompt {\n margin-top: 4px;\n display: flex;\n gap: 10px;\n}\n.ff-toaster-overlay .ff-toaster--success::before {\n background: var(--toaster-success-border);\n}\n.ff-toaster-overlay .ff-toaster--warning::before {\n background: var(--toaster-warning-border);\n}\n.ff-toaster-overlay .ff-toaster--info::before {\n background: var(--toaster-info-border);\n}\n.ff-toaster-overlay .ff-toaster--danger::before, .ff-toaster-overlay .ff-toaster--confirm::before {\n background: var(--toaster-danger_confirm-border);\n}\n.ff-toaster-overlay .ff-toaster .ff-close-icon-wrapper {\n box-sizing: border-box;\n cursor: pointer;\n height: fit-content;\n width: fit-content;\n border-radius: 8px;\n padding: 8px;\n background: var(--toast-close-icon-wrapper-bg);\n margin-left: auto;\n}\n.ff-toaster-overlay.exiting {\n animation: slideOutToasterBottomRight 0.5s forwards;\n}\n\n@keyframes slideOutToasterBottomRight {\n from {\n transform: translateX(0%);\n }\n to {\n transform: translateX(100%);\n }\n}\n@keyframes slideInToasterBottomRight {\n from {\n transform: translateX(100%);\n }\n to {\n transform: translateX(0%);\n }\n}\n.fireflink-stories-toaster-container .fireflink-stories-toaster-container-row {\n display: flex;\n gap: 5px;\n margin: 15px;\n}";
|
1186
|
+
styleInject(css_248z$A);
|
1178
1187
|
|
1179
1188
|
const Toaster = ({
|
1180
1189
|
isOpen = false,
|
@@ -1282,8 +1291,8 @@ const Toaster = ({
|
|
1282
1291
|
}), document.body);
|
1283
1292
|
};
|
1284
1293
|
|
1285
|
-
var css_248z$
|
1286
|
-
styleInject(css_248z$
|
1294
|
+
var css_248z$z = "/* Container */\n.ff-container {\n margin-right: auto;\n margin-left: auto;\n width: 90%;\n display: grid;\n}\n\n.ff-container-fluid {\n width: 100%;\n margin-right: auto;\n margin-left: auto;\n display: grid;\n}\n\n/* Row */\n.ff-row {\n display: grid;\n grid-template-columns: repeat(12, 1fr);\n}\n\n/* Column sizes based on a 12-column layout */\n.ff-col {\n grid-column: span 12;\n}\n\n.ff-col-1 {\n grid-column: span 1;\n}\n\n.ff-col-2 {\n grid-column: span 2;\n}\n\n.ff-col-3 {\n grid-column: span 3;\n}\n\n.ff-col-4 {\n grid-column: span 4;\n}\n\n.ff-col-5 {\n grid-column: span 5;\n}\n\n.ff-col-6 {\n grid-column: span 6;\n}\n\n.ff-col-7 {\n grid-column: span 7;\n}\n\n.ff-col-8 {\n grid-column: span 8;\n}\n\n.ff-col-9 {\n grid-column: span 9;\n}\n\n.ff-col-10 {\n grid-column: span 10;\n}\n\n.ff-col-11 {\n grid-column: span 11;\n}\n\n.ff-col-12 {\n grid-column: span 12;\n}\n\n@media (max-width: 768px) {\n /* Stacking columns on small screens */\n .ff-col {\n grid-column: span 12;\n }\n}";
|
1295
|
+
styleInject(css_248z$z);
|
1287
1296
|
|
1288
1297
|
const Container = ({
|
1289
1298
|
children,
|
@@ -1325,8 +1334,8 @@ const Col = ({
|
|
1325
1334
|
});
|
1326
1335
|
};
|
1327
1336
|
|
1328
|
-
var css_248z$
|
1329
|
-
styleInject(css_248z$
|
1337
|
+
var css_248z$y = ".ff--switch-container {\n position: relative;\n display: flex;\n align-items: center;\n}\n.ff--switch-container .ff--switch-checkbox {\n height: 0;\n width: 0;\n display: none;\n}\n.ff--switch-container .ff--switch-checkbox:checked + .ff--switch-label .ff--switch-button {\n right: -1px;\n border: 1px solid var(--brand-color);\n background: var(--toggle-button-bg-color);\n transition: all 0.3s;\n box-shadow: 0px 0px 2px 0px var(--toggle-strip-shadow);\n}\n.ff--switch-container .ff--switch-checkbox:checked + .ff--switch-label .ff--switch-button .ff-checked-icon--primary svg path {\n fill: var(--brand-color);\n}\n.ff--switch-container .ff--switch-checkbox:checked + .ff--switch-label--primary {\n background: var(--brand-color);\n transition: all 0.3s;\n}\n.ff--switch-container .ff--switch-checkbox:checked + .ff--switch-label:disabled {\n cursor: default;\n color: var(--disable-color);\n background: var(--disable-color);\n}\n.ff--switch-container .ff--switch-checkbox:disabled {\n cursor: no-drop;\n}\n.ff--switch-container .ff--switch-label {\n display: flex;\n align-items: center;\n justify-content: space-between;\n cursor: pointer;\n border-radius: 8px;\n position: relative;\n background: var(--toggle-strip-color);\n transition: all 0.3s;\n}\n.ff--switch-container .ff--switch-label--disabled {\n opacity: 0.5;\n cursor: no-drop;\n}\n.ff--switch-container .ff--switch-label .ff--switch-button {\n position: absolute;\n left: 0;\n border: 1px solid var(--toggle-strip-color);\n display: flex;\n background: var(--toggle-button-bg-color);\n border-radius: 50%;\n box-shadow: 0px 0px 2px 0px var(--toggle-strip-shadow);\n transition: all 0.3s;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n}\n.ff--switch-container .ff--switch-label .ff--switch-button .ff-unchecked-icon--primary svg path {\n fill: var(--toggle-disable-icon-color);\n}\n.ff--switch-container .default--small {\n width: 24px;\n height: 10px;\n}\n.ff--switch-container .default--small .ff--switch-button {\n width: 16px;\n height: 16px;\n transform: translateX(0);\n}\n.ff--switch-container .default--small .ff--switch-button.checked {\n transform: translateX(10px);\n}\n.ff--switch-container .default--medium {\n width: 32px;\n height: 14px;\n}\n.ff--switch-container .default--medium .ff--switch-button {\n width: 20px;\n height: 20px;\n transform: translateX(0);\n}\n.ff--switch-container .default--medium .ff--switch-button.checked {\n transform: translateX(14px);\n}\n.ff--switch-container .default--large {\n width: 40px;\n height: 16px;\n}\n.ff--switch-container .default--large .ff--switch-button {\n width: 24px;\n height: 24px;\n transform: translateX(0);\n}\n.ff--switch-container .default--large .ff--switch-button.checked {\n transform: translateX(16px);\n}";
|
1338
|
+
styleInject(css_248z$y);
|
1330
1339
|
|
1331
1340
|
const Toggle = ({
|
1332
1341
|
onChange,
|
@@ -1404,8 +1413,8 @@ const Toggle = ({
|
|
1404
1413
|
});
|
1405
1414
|
};
|
1406
1415
|
|
1407
|
-
var css_248z$
|
1408
|
-
styleInject(css_248z$
|
1416
|
+
var css_248z$x = ":root {\n --tooltip-bg-color: #1e161f;\n --status-approved-text-color: #016102;\n --status-warning-text-color: #ff8b00;\n --status-rejected-text-color: #c60202;\n --status-skipped-text-color: #3c3838;\n --status-approved-bg-color: #c6efcd;\n --status-rejected-bg-color: #f7d9d9;\n --status-warning-bg-color: #fae2c6;\n --status-skipped-bg-color: #c4c3c3;\n --brand-color: #71347b;\n --icons-default-color: #71347b;\n --default-icon-color: #a3a3a3;\n --default-color: #747474;\n --primary-icon-color: #ffffff;\n --secondary-icon-color: #71347b;\n --system-color--error: #c50303;\n --hover-color: #f7ebff;\n --brand2-color: #610b86;\n --status-warning-hover-bg-color: #fcd8ac;\n --status-percentage-growth-bg-color: #ecedf8;\n --primary-icon-color: #ffffff;\n --secondary-icon-color: #71347b;\n --description-text-color:#d9d9d9;\n --expandable-menu-default-bg: #fdfaff;\n --expandable-menu-option-bg: rgba(97, 11, 134, 0.1019607843);\n --text-color: #1e161f;\n --file-dropzone-default-color: rgba(113, 52, 123, 0.1019607843);\n --file-dropzone-selected-color: rgba(113, 52, 123, 0.2);\n --file-details-container-shadow: rgba(30, 22, 31, 0.1607843137);\n --file-details-bg: #ffffff;\n --error-light: #e42525;\n --tabs-label-default-color: tabs-label-default-color;\n --tabs-label-active-color: tabs-label-active-color;\n --tabs-border-color: tabs-border-color;\n --tabs-bg-color: tabs-bg-color;\n --tab-bg-color: tab-bg-color;\n --toggle-button-bg-color: #ffffff;\n --toggle-strip-shadow: rgba(0, 0, 0, 0.2509803922);\n --toggle-strip-color: #cfd1e2;\n --disable-color: rgba(113, 52, 123, 0.5019607843);\n --toggle-strip-color: #cfd1e2;\n --add-icon-hover-color: #431b4a;\n --arrows-button-border-color: #ded1e5;\n --arrow-button-bg-color: #ffffff;\n --text-bg-highlight:#f5fb00;\n --slider-table-color: #efe1f9;\n}\n\n@font-face {\n font-family: \"Poppins\";\n font-weight: 400;\n src: local(\"Poppins-Regular\"), url(../../fonts/Poppins/Poppins-Regular.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 500;\n src: local(\"Poppins-Medium\"), url(../../fonts/Poppins/Poppins-Medium.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 600;\n src: local(\"Poppins-SemiBold\"), url(../../fonts/Poppins/Poppins-SemiBold.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 700;\n src: local(\"Poppins-Bold\"), url(../../fonts/Poppins/Poppins-Bold.ttf) format(\"truetype\");\n}\n.fontXs, .ff-chip-wrapper .ff-default-chip-style {\n font-family: \"Poppins\", sans-serif;\n font-size: 10px;\n}\n\n.fontSm, .ff-chip-wrapper .ff-default-chip-style--custom {\n font-family: \"Poppins\", sans-serif;\n font-size: 12px;\n}\n\n.fontMd {\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\", sans-serif;\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\", sans-serif;\n font-size: 18px;\n}\n\n.font2Xl {\n font-family: \"Poppins\", sans-serif;\n font-size: 24px;\n}\n\n.font-size-8 {\n font-family: \"Poppins\", sans-serif;\n font-size: 8px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\", sans-serif;\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\", sans-serif;\n font-size: 80px;\n}\n\n.ff-chip-wrapper {\n display: inline-flex;\n margin: 5px;\n justify-content: center;\n align-items: center;\n}\n.ff-chip-wrapper .ff-default-chip-style {\n display: flex;\n align-items: center;\n justify-content: space-around;\n width: fit-content;\n gap: 5px;\n height: 17px;\n border-radius: 25px;\n padding: 1px 6px;\n line-height: 15px;\n border: none;\n transition: transform 0.5s ease, box-shadow 0.5s ease, padding 1s ease;\n box-shadow: 1px 1px 3px 0px #575757 inset, -1px -1px 2px 0px #ffffff inset, 1px -1px 2px 0px #575757 inset, -1px -1px 2px 0px #575757, 1px 1px 2px 0px #ffffff;\n}\n.ff-chip-wrapper .ff-default-chip-style--fullText:hover {\n box-shadow: 1px 1px 6px 0px #575757 inset, -1px -1px 4px 0px #ffffff inset;\n padding-right: 12px;\n}\n.ff-chip-wrapper .ff-default-chip-style--primary {\n background-color: #f9d5ff;\n color: #ffffff;\n color: #1e161f;\n}\n.ff-chip-wrapper .ff-default-chip-style--success {\n background-color: #079455;\n color: #ffffff;\n}\n.ff-chip-wrapper .ff-default-chip-style--error {\n background-color: #e42525;\n color: #ffffff;\n}\n.ff-chip-wrapper .ff-default-chip-style--warning {\n background-color: #f79009;\n color: #ffffff;\n}\n.ff-chip-wrapper .ff-default-chip-style--custom {\n background: rgba(97, 11, 134, 0.1019607843);\n color: #610b86;\n padding: 2px 8px;\n border-radius: 12px;\n cursor: pointer;\n white-space: nowrap;\n box-shadow: none;\n transition: background-color 0.3s ease, color 0.3s ease;\n}\n.ff-chip-wrapper .ff-default-chip-style--custom:hover {\n background-color: #610b86;\n color: #fdfaff;\n}";
|
1417
|
+
styleInject(css_248z$x);
|
1409
1418
|
|
1410
1419
|
const Chip = ({
|
1411
1420
|
label = '',
|
@@ -1434,8 +1443,8 @@ const Chip = ({
|
|
1434
1443
|
});
|
1435
1444
|
};
|
1436
1445
|
|
1437
|
-
var css_248z$
|
1438
|
-
styleInject(css_248z$
|
1446
|
+
var css_248z$w = "@font-face {\n font-family: \"Poppins\";\n font-weight: 400;\n src: local(\"Poppins-Regular\"), url(../../fonts/Poppins/Poppins-Regular.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 500;\n src: local(\"Poppins-Medium\"), url(../../fonts/Poppins/Poppins-Medium.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 600;\n src: local(\"Poppins-SemiBold\"), url(../../fonts/Poppins/Poppins-SemiBold.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 700;\n src: local(\"Poppins-Bold\"), url(../../fonts/Poppins/Poppins-Bold.ttf) format(\"truetype\");\n}\n.fontXs {\n font-family: \"Poppins\", sans-serif;\n font-size: 10px;\n}\n\n.fontSm, .ff-input-container .ff-input, .ff-input-container .ff-input-label-container {\n font-family: \"Poppins\", sans-serif;\n font-size: 12px;\n}\n\n.fontMd {\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\", sans-serif;\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\", sans-serif;\n font-size: 18px;\n}\n\n.font2Xl {\n font-family: \"Poppins\", sans-serif;\n font-size: 24px;\n}\n\n.font-size-8, .ff-input-container:focus-within .ff-input-label-container, .ff-input-container:focus-within .ff-input::placeholder, .ff-input-container:focus-within .ff-input-label-container::placeholder, .ff-input-container .ff-input-message, .ff-input-container--float .ff-input-label-container {\n font-family: \"Poppins\", sans-serif;\n font-size: 8px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\", sans-serif;\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\", sans-serif;\n font-size: 80px;\n}\n\n.ff-input-container {\n display: flex;\n flex-direction: column;\n position: relative;\n}\n.ff-input-container .ff-input, .ff-input-container .ff-input-label-container {\n padding: 6px 8px;\n border: 1px solid var(--input-default-border-color);\n border-radius: 4px;\n outline: none;\n line-height: 18px;\n}\n.ff-input-container .ff-input:disabled, .ff-input-container .ff-input-label-container:disabled {\n cursor: not-allowed;\n}\n.ff-input-container .ff-input::placeholder, .ff-input-container .ff-input-label-container::placeholder {\n opacity: 0;\n line-height: 18px;\n}\n.ff-input-container .ff-input--disabled {\n background: transparent;\n border-color: var(--input-default-border-color);\n}\n.ff-input-container .ff-input--danger {\n border-color: var(--input-error-text-color);\n}\n.ff-input-container .ff-input--transparentBackground {\n background: transparent;\n}\n.ff-input-container .ff-input--no-border {\n border: none;\n}\n.ff-input-container .ff-input-label-container {\n display: flex;\n gap: 2px;\n position: absolute;\n border: none;\n outline: none;\n line-height: 18px;\n margin-top: 1px;\n transition: all 0.3s ease-in-out;\n}\n.ff-input-container .ff-input-label-container .ff-input-label {\n color: var(--input-default-label-color);\n}\n.ff-input-container .ff-input-label-container .ff-input-label--danger {\n color: var(--input-error-text-color);\n}\n.ff-input-container .ff-input-label-container .ff-input-label--disabled {\n color: var(--input-default-border-color);\n background-color: var(--input-label-bg-color);\n}\n.ff-input-container .ff-input-label-container .required-asterisk {\n color: var(--input-error-text-color);\n}\n.ff-input-container:hover .ff-input-label {\n color: var(--input-hover-border-color);\n}\n.ff-input-container:hover .ff-input-label--no-hover {\n color: var(--input-default-label-color);\n}\n.ff-input-container:hover .ff-input-label--disabled {\n color: var(--input-default-border-color);\n}\n.ff-input-container:hover .ff-input-label--danger {\n color: var(--input-error-text-color);\n}\n.ff-input-container:hover .ff-input, .ff-input-container:hover .ff-input-label-container {\n border-color: var(--input-hover-border-color);\n}\n.ff-input-container:hover .ff-input--no-hover {\n border-color: var(--input-default-border-color);\n}\n.ff-input-container:hover .ff-input--disabled {\n background: transparent;\n border-color: var(--input-default-border-color);\n}\n.ff-input-container:hover .ff-input--danger {\n border-color: var(--input-error-text-color);\n}\n.ff-input-container:focus-within .ff-input-label-container {\n top: -6px;\n background-color: var(--input-label-bg-color);\n line-height: 12px;\n padding: 0px 2px;\n margin-left: 10px;\n}\n.ff-input-container:focus-within .ff-input-label--primary {\n color: var(--brand-color);\n}\n.ff-input-container:focus-within .ff-input-label--danger {\n color: var(--input-error-text-color);\n}\n.ff-input-container:focus-within .ff-input--primary {\n border-color: var(--brand-color);\n}\n.ff-input-container:focus-within .ff-input--danger {\n border-color: var(--input-error-text-color);\n}\n.ff-input-container:focus-within .ff-input::placeholder, .ff-input-container:focus-within .ff-input-label-container::placeholder {\n opacity: 1;\n margin-bottom: 1px;\n}\n.ff-input-container .ff-input-message {\n padding: 0px 4px;\n margin-left: 8px;\n line-height: 12px;\n}\n.ff-input-container .ff-input-message--danger {\n color: var(--input-error-text-color);\n}\n.ff-input-container--float .ff-input-label-container {\n top: -6px;\n background-color: var(--input-label-bg-color);\n line-height: 12px;\n padding: 0px 2px;\n margin-left: 10px;\n}\n.ff-input-container--float--disabled {\n cursor: not-allowed;\n}\n.ff-input-container--float--disabled .ff-input-label-container {\n cursor: not-allowed;\n}";
|
1447
|
+
styleInject(css_248z$w);
|
1439
1448
|
|
1440
1449
|
const Input = ({
|
1441
1450
|
type = 'text',
|
@@ -1512,8 +1521,8 @@ const Input = ({
|
|
1512
1521
|
});
|
1513
1522
|
};
|
1514
1523
|
|
1515
|
-
var css_248z$
|
1516
|
-
styleInject(css_248z$
|
1524
|
+
var css_248z$v = "@font-face {\n font-family: \"Poppins\";\n font-weight: 400;\n src: local(\"Poppins-Regular\"), url(../../fonts/Poppins/Poppins-Regular.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 500;\n src: local(\"Poppins-Medium\"), url(../../fonts/Poppins/Poppins-Medium.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 600;\n src: local(\"Poppins-SemiBold\"), url(../../fonts/Poppins/Poppins-SemiBold.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 700;\n src: local(\"Poppins-Bold\"), url(../../fonts/Poppins/Poppins-Bold.ttf) format(\"truetype\");\n}\n.fontXs {\n font-family: \"Poppins\", sans-serif;\n font-size: 10px;\n}\n\n.fontSm {\n font-family: \"Poppins\", sans-serif;\n font-size: 12px;\n}\n\n.fontMd {\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\", sans-serif;\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\", sans-serif;\n font-size: 18px;\n}\n\n.font2Xl {\n font-family: \"Poppins\", sans-serif;\n font-size: 24px;\n}\n\n.font-size-8, .ff-radial-chart-container svg text {\n font-family: \"Poppins\", sans-serif;\n font-size: 8px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\", sans-serif;\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\", sans-serif;\n font-size: 80px;\n}\n\n.ff-radial-chart-container {\n cursor: pointer;\n}\n.ff-radial-chart-container svg text {\n font-size: var(--fontSize) !important;\n font-weight: 400;\n}";
|
1525
|
+
styleInject(css_248z$v);
|
1517
1526
|
|
1518
1527
|
const useColorMappings$1 = () => useMemo(() => {
|
1519
1528
|
return {
|
@@ -1532,7 +1541,7 @@ const useColorMappings$1 = () => useMemo(() => {
|
|
1532
1541
|
};
|
1533
1542
|
}, []);
|
1534
1543
|
// Function to generate SVG arc paths
|
1535
|
-
const calculateArc$
|
1544
|
+
const calculateArc$3 = ({
|
1536
1545
|
x,
|
1537
1546
|
y,
|
1538
1547
|
radius,
|
@@ -1547,9 +1556,9 @@ const calculateArc$1 = ({
|
|
1547
1556
|
return `M ${startX} ${startY} A ${radius} ${radius} 0 ${largeArcFlag} 1 ${endX} ${endY}`;
|
1548
1557
|
};
|
1549
1558
|
// Function to calculate arc paths and angles
|
1550
|
-
const calculateArcAngles = (statusValue, total, currentAngle, radius) => {
|
1559
|
+
const calculateArcAngles$1 = (statusValue, total, currentAngle, radius) => {
|
1551
1560
|
if (total === 0) {
|
1552
|
-
const backgroundArcPath = calculateArc$
|
1561
|
+
const backgroundArcPath = calculateArc$3({
|
1553
1562
|
x: 0,
|
1554
1563
|
y: 0,
|
1555
1564
|
radius,
|
@@ -1572,14 +1581,14 @@ const calculateArcAngles = (statusValue, total, currentAngle, radius) => {
|
|
1572
1581
|
startAngle = 0;
|
1573
1582
|
endAngle = 2 * Math.PI;
|
1574
1583
|
}
|
1575
|
-
const backgroundArcPath = calculateArc$
|
1584
|
+
const backgroundArcPath = calculateArc$3({
|
1576
1585
|
x: 0,
|
1577
1586
|
y: 0,
|
1578
1587
|
radius,
|
1579
1588
|
startAngle: 0,
|
1580
1589
|
endAngle: 2 * Math.PI
|
1581
1590
|
});
|
1582
|
-
const foregroundArcPath = calculateArc$
|
1591
|
+
const foregroundArcPath = calculateArc$3({
|
1583
1592
|
x: 0,
|
1584
1593
|
y: 0,
|
1585
1594
|
radius,
|
@@ -1620,7 +1629,7 @@ const RadialChart = ({
|
|
1620
1629
|
backgroundArcPath,
|
1621
1630
|
foregroundArcPath,
|
1622
1631
|
percentage
|
1623
|
-
} = calculateArcAngles(status.value, total, currentAngle, radius);
|
1632
|
+
} = calculateArcAngles$1(status.value, total, currentAngle, radius);
|
1624
1633
|
currentAngle = endAngle;
|
1625
1634
|
return jsx("svg", {
|
1626
1635
|
width: svgSize,
|
@@ -1655,8 +1664,8 @@ const RadialChart = ({
|
|
1655
1664
|
});
|
1656
1665
|
};
|
1657
1666
|
|
1658
|
-
var css_248z$
|
1659
|
-
styleInject(css_248z$
|
1667
|
+
var css_248z$u = "@font-face {\n font-family: \"Poppins\";\n font-weight: 400;\n src: local(\"Poppins-Regular\"), url(../../fonts/Poppins/Poppins-Regular.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 500;\n src: local(\"Poppins-Medium\"), url(../../fonts/Poppins/Poppins-Medium.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 600;\n src: local(\"Poppins-SemiBold\"), url(../../fonts/Poppins/Poppins-SemiBold.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 700;\n src: local(\"Poppins-Bold\"), url(../../fonts/Poppins/Poppins-Bold.ttf) format(\"truetype\");\n}\n.fontXs {\n font-family: \"Poppins\", sans-serif;\n font-size: 10px;\n}\n\n.fontSm, .ff-expandable-chip-menu--medium, .ff-expandable-chip-menu .ff-sub-chip--medium {\n font-family: \"Poppins\", sans-serif;\n font-size: 12px;\n}\n\n.fontMd {\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\", sans-serif;\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\", sans-serif;\n font-size: 18px;\n}\n\n.font2Xl {\n font-family: \"Poppins\", sans-serif;\n font-size: 24px;\n}\n\n.font-size-8 {\n font-family: \"Poppins\", sans-serif;\n font-size: 8px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\", sans-serif;\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\", sans-serif;\n font-size: 80px;\n}\n\n.ff-expandable-chip-menu {\n display: inline-flex;\n gap: 16px;\n align-items: center;\n border-radius: 16px;\n cursor: pointer;\n overflow: hidden;\n width: auto;\n padding: 4px 8px;\n transition: all 0.3s ease;\n}\n.ff-expandable-chip-menu--primary {\n border: 0.5px solid var(--brand-color);\n background-color: var(--expandable-menu-default-bg);\n}\n.ff-expandable-chip-menu .ff-label-chip {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 4px;\n white-space: nowrap;\n padding: 2px 0;\n}\n.ff-expandable-chip-menu .ff-label-chip .arrow-icon {\n height: 14px;\n width: 14px;\n display: grid;\n place-items: center;\n}\n.ff-expandable-chip-menu .ff-label-chip--primary {\n color: var(--brand-color);\n}\n.ff-expandable-chip-menu--disabled {\n opacity: 0.5;\n}\n.ff-expandable-chip-menu--disabled:disabled {\n pointer-events: none;\n}\n.ff-expandable-chip-menu--medium {\n line-height: 18px;\n}\n.ff-expandable-chip-menu .ff-sub-chips {\n display: flex;\n gap: 8px;\n max-width: 500px;\n overflow-x: auto;\n -ms-overflow-style: none;\n transform: scaleX(0);\n transform-origin: left;\n transition: transform 0.3s ease, opacity 0.3s ease;\n opacity: 0;\n}\n.ff-expandable-chip-menu .ff-sub-chips::-webkit-scrollbar {\n display: none;\n}\n.ff-expandable-chip-menu.expanded .ff-sub-chips {\n transform: scaleX(1);\n opacity: 1;\n}\n.ff-expandable-chip-menu .ff-sub-chip {\n padding: 2px 8px;\n border-radius: 12px;\n white-space: nowrap;\n transition: background-color 0.3s ease, color 0.3s ease;\n opacity: 0;\n transform: translateX(-10px);\n animation: fadeIn 0.5s ease forwards;\n}\n.ff-expandable-chip-menu .ff-sub-chip--primary {\n background: var(--expandable-menu-option-bg);\n color: var(--brand-color);\n}\n.ff-expandable-chip-menu .ff-sub-chip--primary:hover, .ff-expandable-chip-menu .ff-sub-chip--primary.selected {\n background-color: var(--brand-color);\n color: var(--expandable-menu-default-bg);\n}\n.ff-expandable-chip-menu .ff-sub-chip--medium {\n line-height: 18px;\n}\n@keyframes fadeIn {\n 0% {\n opacity: 0;\n transform: translateX(-10px);\n }\n 100% {\n opacity: 1;\n transform: translateX(0);\n }\n}\n.ff-expandable-chip-menu.expanded .ff-sub-chip {\n animation: fadeIn 0.5s ease forwards;\n}";
|
1668
|
+
styleInject(css_248z$u);
|
1660
1669
|
|
1661
1670
|
const ExpandableMenu = ({
|
1662
1671
|
label = '',
|
@@ -1745,8 +1754,8 @@ const useClickOutside = (ref, callback, ignoreRefs = []) => {
|
|
1745
1754
|
}, [ref, callback, ignoreRefs]);
|
1746
1755
|
};
|
1747
1756
|
|
1748
|
-
var css_248z$
|
1749
|
-
styleInject(css_248z$
|
1757
|
+
var css_248z$t = "@font-face {\n font-family: \"Poppins\";\n font-weight: 400;\n src: local(\"Poppins-Regular\"), url(../../fonts/Poppins/Poppins-Regular.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 500;\n src: local(\"Poppins-Medium\"), url(../../fonts/Poppins/Poppins-Medium.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 600;\n src: local(\"Poppins-SemiBold\"), url(../../fonts/Poppins/Poppins-SemiBold.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 700;\n src: local(\"Poppins-Bold\"), url(../../fonts/Poppins/Poppins-Bold.ttf) format(\"truetype\");\n}\n.fontXs {\n font-family: \"Poppins\", sans-serif;\n font-size: 10px;\n}\n\n.fontSm {\n font-family: \"Poppins\", sans-serif;\n font-size: 12px;\n}\n\n.fontMd {\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\", sans-serif;\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\", sans-serif;\n font-size: 18px;\n}\n\n.font2Xl {\n font-family: \"Poppins\", sans-serif;\n font-size: 24px;\n}\n\n.font-size-8 {\n font-family: \"Poppins\", sans-serif;\n font-size: 8px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\", sans-serif;\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\", sans-serif;\n font-size: 80px;\n}\n\n.ff-select-dropdown-wrapper .ff-select-options-wrapper {\n max-height: 160px;\n z-index: 100;\n position: absolute;\n min-width: 100px;\n border: 1px solid var(--ff-select-option-border-color);\n box-sizing: border-box;\n margin-top: 4px;\n border-radius: 4px;\n background-color: var(--ff-select-background-color);\n box-shadow: 0px 1px 4px 0px var(--ff-select-option-wrapper-box-shadow);\n overflow: hidden auto;\n}\n.ff-select-dropdown-wrapper .ff-select-options-wrapper::-webkit-scrollbar {\n width: 4px;\n height: 12px;\n}\n.ff-select-dropdown-wrapper .ff-select-options-wrapper::-webkit-scrollbar-thumb {\n background-color: var(--ff-select-scroll-thumb-color);\n border-radius: 4px;\n}\n.ff-select-dropdown-wrapper .ff-select-options-wrapper::-webkit-scrollbar-track {\n background-color: transparent;\n border-radius: 4px;\n}\n.ff-select-dropdown-wrapper .ff-select-options-wrapper .ff-select-option {\n width: calc(100% - 18px);\n border: 1px solid transparent;\n border-radius: 4px;\n padding: 0px 8px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n cursor: pointer;\n}\n.ff-select-dropdown-wrapper .ff-select-options-wrapper .ff-select-option:hover {\n border-color: var(--ff-select-background-color);\n background-color: var(--ff-select-option-hover-color);\n}\n.ff-select-dropdown-wrapper .ff-select-options-wrapper .ff-select-no-option {\n width: calc(100% - 16px);\n margin: 0;\n overflow: hidden;\n padding: 0px 8px;\n white-space: nowrap;\n text-overflow: ellipsis;\n cursor: not-allowed;\n}";
|
1758
|
+
styleInject(css_248z$t);
|
1750
1759
|
|
1751
1760
|
const ffid = () => 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, char => ((char === 'x' ? Math.random() * 16 : Math.random() * 16 & 0x3 | 0x8) | 0).toString(16));
|
1752
1761
|
|
@@ -1824,8 +1833,8 @@ const Dropdown$1 = ({
|
|
1824
1833
|
});
|
1825
1834
|
};
|
1826
1835
|
|
1827
|
-
var css_248z$
|
1828
|
-
styleInject(css_248z$
|
1836
|
+
var css_248z$s = "@font-face {\n font-family: \"Poppins\";\n font-weight: 400;\n src: local(\"Poppins-Regular\"), url(../../fonts/Poppins/Poppins-Regular.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 500;\n src: local(\"Poppins-Medium\"), url(../../fonts/Poppins/Poppins-Medium.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 600;\n src: local(\"Poppins-SemiBold\"), url(../../fonts/Poppins/Poppins-SemiBold.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 700;\n src: local(\"Poppins-Bold\"), url(../../fonts/Poppins/Poppins-Bold.ttf) format(\"truetype\");\n}\n.fontXs {\n font-family: \"Poppins\", sans-serif;\n font-size: 10px;\n}\n\n.fontSm, .ff-select-wrapper .ff-select, .ff-select-wrapper .ff-select-input {\n font-family: \"Poppins\", sans-serif;\n font-size: 12px;\n}\n\n.fontMd {\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\", sans-serif;\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\", sans-serif;\n font-size: 18px;\n}\n\n.font2Xl {\n font-family: \"Poppins\", sans-serif;\n font-size: 24px;\n}\n\n.font-size-8, .ff-select-wrapper .ff-select-fieldset .ff-select-legend, .ff-select-wrapper .ff-select-label--active {\n font-family: \"Poppins\", sans-serif;\n font-size: 8px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\", sans-serif;\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\", sans-serif;\n font-size: 80px;\n}\n\n.ff-select-wrapper {\n position: relative;\n}\n.ff-select-wrapper .ff-select {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n min-height: 32px;\n min-width: 100px;\n display: flex;\n align-items: end;\n position: relative;\n}\n.ff-select-wrapper .ff-select-fieldset {\n margin: 0;\n padding: 25px 0px 0px 8px;\n border: 1px solid transparent;\n box-sizing: border-box;\n height: 100%;\n width: 100%;\n border-radius: 4px;\n display: block;\n}\n.ff-select-wrapper .ff-select-fieldset--border-radius {\n border-radius: 0px 4px 4px 0px;\n}\n.ff-select-wrapper .ff-select-fieldset--no-label {\n padding: 30px 0px 0px 8px;\n}\n.ff-select-wrapper .ff-select-fieldset--default {\n opacity: 0;\n border-color: var(--ff-select-border-color);\n}\n.ff-select-wrapper .ff-select-fieldset--active {\n opacity: 1;\n border-color: var(--ff-select-brand-color);\n}\n.ff-select-wrapper .ff-select-fieldset--option {\n opacity: 1;\n}\n.ff-select-wrapper .ff-select-fieldset--no-border {\n border-color: transparent;\n}\n.ff-select-wrapper .ff-select-fieldset--error {\n border-color: var(--error-light);\n}\n.ff-select-wrapper .ff-select-fieldset .ff-select-legend {\n padding: 0 2px;\n letter-spacing: 0.5px;\n}\n.ff-select-wrapper .ff-select-fieldset .ff-select-legend--default {\n transition: opacity 0.3s ease-out, transform 0.3s ease-out, font-size 0.3s ease-out, padding 0.3s ease-out;\n opacity: 0;\n}\n.ff-select-wrapper .ff-select-fieldset .ff-select-legend--active {\n transition: opacity 0.25s ease-out, transform 0.25s ease-out, font-size 0.25s ease-out, padding 0.25s ease-out;\n opacity: 1;\n color: var(--ff-select-brand-color);\n}\n.ff-select-wrapper .ff-select-fieldset .ff-select-legend--option {\n opacity: 1;\n color: var(--ff-select-default-color);\n}\n.ff-select-wrapper .ff-select-fieldset .ff-select-legend--error {\n color: var(--error-light);\n}\n.ff-select-wrapper .ff-select-fieldset .ff-select-legend--required {\n margin-right: 2px;\n}\n.ff-select-wrapper .ff-select-input {\n position: absolute;\n top: 6px;\n right: auto;\n bottom: auto;\n left: auto;\n width: calc(100% - 38px);\n min-height: calc(100% - 8px);\n padding: 0 28px 0 8px;\n border-radius: 4px;\n border: 1px solid transparent;\n z-index: 100;\n background: transparent;\n outline: none;\n color: var(--ff-select-text-color);\n}\n.ff-select-wrapper .ff-select-input:hover ~ .ff-select-label {\n color: var(--ff-select-text-hover-color);\n}\n.ff-select-wrapper .ff-select-input--border-radius {\n border-radius: 0px 4px 4px 0px;\n}\n.ff-select-wrapper .ff-select-input--default {\n opacity: 1;\n border-color: var(--ff-select-border-color);\n}\n.ff-select-wrapper .ff-select-input--default:hover {\n border-color: var(--ff-select-text-color);\n}\n.ff-select-wrapper .ff-select-input--default:hover ~ .ff-select-fieldset--option {\n border-color: var(--ff-select-text-color);\n}\n.ff-select-wrapper .ff-select-input--default:hover ~ .ff-select-fieldset--option .ff-select-legend--option {\n color: var(--ff-select-text-color);\n}\n.ff-select-wrapper .ff-select-input--no-label {\n min-height: calc(100% - 2px);\n margin-top: 0px;\n top: 0px;\n}\n.ff-select-wrapper .ff-select-input--active {\n border-color: transparent;\n}\n.ff-select-wrapper .ff-select-input--active:hover {\n border-color: transparent;\n}\n.ff-select-wrapper .ff-select-input--no-border {\n border: none;\n border-color: transparent;\n}\n.ff-select-wrapper .ff-select-input--no-border:hover {\n border-color: transparent;\n}\n.ff-select-wrapper .ff-select-input--no-border:hover ~ .ff-select-fieldset--no-border {\n border-color: transparent;\n}\n.ff-select-wrapper .ff-select-input--disable {\n border-color: var(--ff-select-border-color);\n}\n.ff-select-wrapper .ff-select-input--disable:hover {\n border-color: var(--ff-select-border-color);\n}\n.ff-select-wrapper .ff-select-input--disable:hover ~ .ff-select-label--default {\n color: var(--ff-select-default-color);\n}\n.ff-select-wrapper .ff-select-input--error {\n border-color: var(--error-light);\n}\n.ff-select-wrapper .ff-select-input--error:hover {\n border-color: var(--error-light);\n}\n.ff-select-wrapper .ff-select-label {\n position: absolute;\n top: 13px;\n right: auto;\n bottom: auto;\n left: 8px;\n z-index: 1;\n font-size: 12px;\n top: 60%;\n padding-left: 8px;\n}\n.ff-select-wrapper .ff-select-label--default {\n transition: opacity 0.3s ease-out, transform 0.3s ease-out, font-size 0.3s ease-out, padding 0.3s ease-out;\n opacity: 1;\n color: var(--ff-select-default-color);\n transform: translateY(-50%);\n}\n.ff-select-wrapper .ff-select-label--active {\n transition: opacity 0.3s ease-out, transform 0.3s ease-out, font-size 0.3s ease-out, padding 0.3s ease-out;\n opacity: 0;\n transform: translateY(-150%);\n padding: 0 6px;\n}\n.ff-select-wrapper .ff-select-label--required {\n margin-right: 2px;\n}\n.ff-select-wrapper .ff-select-arrow {\n position: absolute;\n top: 60%;\n height: 100%;\n right: 10px;\n transform: rotateX(180deg) translateY(50%);\n cursor: pointer;\n}\n.ff-select-wrapper .ff-select-arrow--no-label {\n top: 50%;\n}\n.ff-select-wrapper .ff-select-arrow--down {\n transform: rotateX(0deg) translateY(-50%);\n z-index: 101;\n}\n.ff-select-wrapper-error-text {\n position: absolute;\n top: auto;\n right: auto;\n bottom: -14px;\n left: 12px;\n white-space: nowrap;\n}";
|
1837
|
+
styleInject(css_248z$s);
|
1829
1838
|
|
1830
1839
|
const portalPosition = {
|
1831
1840
|
positionX: 0,
|
@@ -2186,8 +2195,8 @@ const Select$1 = ({
|
|
2186
2195
|
});
|
2187
2196
|
};
|
2188
2197
|
|
2189
|
-
var css_248z$
|
2190
|
-
styleInject(css_248z$
|
2198
|
+
var css_248z$r = "@font-face {\n font-family: \"Poppins\";\n font-weight: 400;\n src: local(\"Poppins-Regular\"), url(../../fonts/Poppins/Poppins-Regular.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 500;\n src: local(\"Poppins-Medium\"), url(../../fonts/Poppins/Poppins-Medium.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 600;\n src: local(\"Poppins-SemiBold\"), url(../../fonts/Poppins/Poppins-SemiBold.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 700;\n src: local(\"Poppins-Bold\"), url(../../fonts/Poppins/Poppins-Bold.ttf) format(\"truetype\");\n}\n.fontXs {\n font-family: \"Poppins\", sans-serif;\n font-size: 10px;\n}\n\n.fontSm, .ff-textarea-container {\n font-family: \"Poppins\", sans-serif;\n font-size: 12px;\n}\n\n.fontMd {\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\", sans-serif;\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\", sans-serif;\n font-size: 18px;\n}\n\n.font2Xl {\n font-family: \"Poppins\", sans-serif;\n font-size: 24px;\n}\n\n.font-size-8, .ff-textarea-container .msg-character-count, .ff-textarea-container:focus-within .ff-textarea-label-container, .ff-textarea-container:focus-within .ff-textarea::placeholder, .ff-textarea-container:focus-within .ff-textarea-label-container::placeholder, .ff-textarea-container .ff-textarea-message, .ff-textarea-container--float .ff-textarea-label-container {\n font-family: \"Poppins\", sans-serif;\n font-size: 8px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\", sans-serif;\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\", sans-serif;\n font-size: 80px;\n}\n\n.ff-textarea-container {\n display: flex;\n flex-direction: column;\n position: relative;\n gap: 5px;\n}\n.ff-textarea-container .msg-character-count {\n display: flex;\n color: var(--text-area-default-color);\n justify-content: flex-end;\n}\n.ff-textarea-container .ff-textarea, .ff-textarea-container .ff-textarea-label-container {\n padding: 8px;\n width: 100%;\n min-height: 80px;\n gap: 0px;\n border: 1px solid var(--default-icon-color);\n border-radius: 4px;\n outline: none;\n line-height: 18px;\n font-weight: 400;\n}\n.ff-textarea-container .ff-textarea--resize {\n resize: none;\n}\n.ff-textarea-container .ff-textarea:disabled, .ff-textarea-container .ff-textarea-label-container:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n.ff-textarea-container .ff-textarea:disabled:hover, .ff-textarea-container .ff-textarea-label-container:disabled:hover {\n border-color: var(--default-icon-color);\n color: inherit;\n}\n.ff-textarea-container .ff-textarea::placeholder, .ff-textarea-container .ff-textarea-label-container::placeholder {\n opacity: 0;\n}\n.ff-textarea-container .ff-textarea--danger {\n border-color: var(--error_light);\n}\n.ff-textarea-container .ff-textarea--transparentBackground {\n background: transparent;\n}\n.ff-textarea-container .ff-textarea-label-container {\n display: flex;\n position: absolute;\n border: none;\n outline: none;\n margin-top: 1px;\n transition: all 0.3s ease-in-out;\n}\n.ff-textarea-container .ff-textarea-label-container .ff-textarea-label {\n padding: 1px;\n height: 10px;\n width: auto;\n background-color: var(--drawer-footer-bg);\n color: var(--text-area-default-color);\n}\n.ff-textarea-container .ff-textarea-label-container .ff-textarea-label--danger {\n color: var(--error_light);\n}\n.ff-textarea-container .ff-textarea-label-container .required-asterisk {\n color: var(--error_light);\n}\n.ff-textarea-container:hover .ff-textarea-label {\n color: var(--text-color);\n}\n.ff-textarea-container:hover .ff-textarea, .ff-textarea-container:hover .ff-textarea-label-container {\n border-color: var(--text-color);\n}\n.ff-textarea-container:focus-within .ff-textarea-label-container {\n font-weight: 400;\n line-height: 12px;\n letter-spacing: 0.5px;\n text-align: left;\n top: -6px;\n background-color: transparent;\n padding: 0px 2px;\n margin-left: 7px;\n}\n.ff-textarea-container:focus-within .ff-textarea-label--primary {\n color: var(--brand-color);\n}\n.ff-textarea-container:focus-within .ff-textarea--primary {\n border-color: var(--brand-color);\n}\n.ff-textarea-container:focus-within .ff-textarea::placeholder, .ff-textarea-container:focus-within .ff-textarea-label-container::placeholder {\n opacity: 1;\n margin-bottom: 1px;\n}\n.ff-textarea-container .ff-textarea-message {\n padding: 0px 4px;\n margin-left: 8px;\n line-height: 12px;\n}\n.ff-textarea-container .ff-textarea-message--danger {\n color: var(--error_light);\n}\n.ff-textarea-container--float .ff-textarea-label-container {\n letter-spacing: 0.5px;\n top: -6px;\n background-color: transparent;\n line-height: 12px;\n padding: 0px 2px;\n margin-left: 7px;\n}\n.ff-textarea-container--disabled {\n cursor: not-allowed;\n}\n.ff-textarea-container--disabled:hover .ff-textarea-label {\n color: var(--text-area-default-color);\n}\n.ff-textarea-container--disabled:hover .ff-textarea, .ff-textarea-container--disabled:hover .ff-textarea-container .ff-textarea-label-container, .ff-textarea-container .ff-textarea-container--disabled:hover .ff-textarea-label-container {\n border-color: var(--default-icon-color);\n}\n.ff-textarea-container--disabled .ff-textarea-label-container {\n cursor: not-allowed;\n}";
|
2199
|
+
styleInject(css_248z$r);
|
2191
2200
|
|
2192
2201
|
const truncateText = (text, maxLength) => {
|
2193
2202
|
if (!text || maxLength <= 0) return '';
|
@@ -2262,8 +2271,8 @@ const Textarea = ({
|
|
2262
2271
|
});
|
2263
2272
|
};
|
2264
2273
|
|
2265
|
-
var css_248z$
|
2266
|
-
styleInject(css_248z$
|
2274
|
+
var css_248z$q = ".ff-status-button {\n border: none;\n border-radius: 4px;\n padding: 0 4px;\n cursor: pointer;\n width: 76px;\n height: 16px;\n}\n.ff-status-button__text {\n color: inherit;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 76px;\n text-transform: capitalize;\n}\n.ff-status-button--passed {\n background-color: var(--status-button-bg-passed);\n color: var(--status-button-text-passed);\n}\n.ff-status-button--failed {\n background-color: var(--status-button-bg-failed);\n color: var(--status-button-text-failed);\n}\n.ff-status-button--running {\n background-color: var(--status-button-bg-running);\n color: var(--status-button-text-running);\n}\n.ff-status-button--skipped {\n background-color: var(--status-button-bg-skipped);\n color: var(--status-button-text-skipped);\n}\n.ff-status-button--warning {\n background-color: var(--status-button-bg-warning);\n color: var(--status-button-text-warning);\n}\n.ff-status-button--terminated {\n background-color: var(--status-button-bg-terminated);\n color: var(--status-button-text-terminated);\n}\n.ff-status-button--partially-executed {\n background-color: var(--status-button-bg-partiallyExecuted);\n color: var(--status-button-text-partiallyExecuted);\n}\n.ff-status-button--aborted {\n background-color: var(--status-button-bg-aborted);\n color: var(--status-button-text-aborted);\n}\n.ff-status-button--not-executed {\n background-color: var(--status-button-bg-notExecuted);\n color: var(--status-button-text-notExecuted);\n}\n.ff-status-button:disabled {\n opacity: 50%;\n cursor: not-allowed;\n}";
|
2275
|
+
styleInject(css_248z$q);
|
2267
2276
|
|
2268
2277
|
const StatusButton = ({
|
2269
2278
|
status = 'passed',
|
@@ -2291,8 +2300,8 @@ const StatusButton = ({
|
|
2291
2300
|
});
|
2292
2301
|
};
|
2293
2302
|
|
2294
|
-
var css_248z$
|
2295
|
-
styleInject(css_248z$
|
2303
|
+
var css_248z$p = "@font-face {\n font-family: \"Poppins\";\n font-weight: 400;\n src: local(\"Poppins-Regular\"), url(../../fonts/Poppins/Poppins-Regular.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 500;\n src: local(\"Poppins-Medium\"), url(../../fonts/Poppins/Poppins-Medium.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 600;\n src: local(\"Poppins-SemiBold\"), url(../../fonts/Poppins/Poppins-SemiBold.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 700;\n src: local(\"Poppins-Bold\"), url(../../fonts/Poppins/Poppins-Bold.ttf) format(\"truetype\");\n}\n.fontXs {\n font-family: \"Poppins\", sans-serif;\n font-size: 10px;\n}\n\n.fontSm, .ff-menu-option-container .ff-option-card .ff-options {\n font-family: \"Poppins\", sans-serif;\n font-size: 12px;\n}\n\n.fontMd {\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\", sans-serif;\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\", sans-serif;\n font-size: 18px;\n}\n\n.font2Xl {\n font-family: \"Poppins\", sans-serif;\n font-size: 24px;\n}\n\n.font-size-8 {\n font-family: \"Poppins\", sans-serif;\n font-size: 8px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\", sans-serif;\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\", sans-serif;\n font-size: 80px;\n}\n\n.ff-menu-option-container {\n cursor: pointer;\n position: relative;\n}\n.ff-menu-option-container .ff-icon-label {\n display: flex;\n align-items: center;\n gap: 4px;\n}\n.ff-menu-option-container .ff-icon-label .ff-menuicon-container {\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n}\n.ff-menu-option-container .ff-icon-label .ff-menuicon-container:hover {\n background-color: var(--hover-color);\n}\n.ff-menu-option-container .ff-icon-label .ff-menuicon-container-clicked {\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: var(--brand-color);\n cursor: pointer;\n}\n.ff-menu-option-container .ff-icon-label .ff-menuicon-container-clicked:hover {\n background-color: var(--brand-color);\n}\n.ff-menu-option-container .ff-option-card {\n position: absolute;\n border: 1px solid var(--option-card-border-color);\n background: var(--option-card-bg-color);\n border-radius: 4px;\n margin: 2px;\n min-height: 32px;\n min-width: 111px;\n z-index: 100000;\n white-space: nowrap;\n}\n.ff-menu-option-container .ff-option-card .ff-options {\n cursor: pointer;\n border-radius: 4px;\n display: flex;\n align-items: center;\n padding: 8px;\n line-height: 16px;\n gap: 8px;\n}\n.ff-menu-option-container .ff-option-card .ff-options:hover {\n background-color: var(--hover-color);\n}\n.ff-menu-option-container .ff-option-card .ff-options label {\n cursor: pointer;\n}\n.ff-menu-option-container .ff-option-card .ff-disable-option {\n opacity: 0.5;\n cursor: no-drop;\n}\n.ff-menu-option-container .ff-option-card .ff-disable-option label {\n cursor: no-drop;\n}";
|
2304
|
+
styleInject(css_248z$p);
|
2296
2305
|
|
2297
2306
|
const Option$1 = ({
|
2298
2307
|
option,
|
@@ -2413,8 +2422,8 @@ const MenuOption = ({
|
|
2413
2422
|
});
|
2414
2423
|
};
|
2415
2424
|
|
2416
|
-
var css_248z$
|
2417
|
-
styleInject(css_248z$
|
2425
|
+
var css_248z$o = "@font-face {\n font-family: \"Poppins\";\n font-weight: 400;\n src: local(\"Poppins-Regular\"), url(../../fonts/Poppins/Poppins-Regular.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 500;\n src: local(\"Poppins-Medium\"), url(../../fonts/Poppins/Poppins-Medium.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 600;\n src: local(\"Poppins-SemiBold\"), url(../../fonts/Poppins/Poppins-SemiBold.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 700;\n src: local(\"Poppins-Bold\"), url(../../fonts/Poppins/Poppins-Bold.ttf) format(\"truetype\");\n}\n.fontXs {\n font-family: \"Poppins\", sans-serif;\n font-size: 10px;\n}\n\n.fontSm, .ff-table tbody tr td {\n font-family: \"Poppins\", sans-serif;\n font-size: 12px;\n}\n\n.fontMd, .ff-table thead tr th {\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\", sans-serif;\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\", sans-serif;\n font-size: 18px;\n}\n\n.font2Xl {\n font-family: \"Poppins\", sans-serif;\n font-size: 24px;\n}\n\n.font-size-8 {\n font-family: \"Poppins\", sans-serif;\n font-size: 8px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\", sans-serif;\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\", sans-serif;\n font-size: 80px;\n}\n\n.ff-fixed-header-table {\n overflow-y: auto;\n}\n\n.ff-table th,\n.ff-table td {\n text-align: left;\n font-size: 12px;\n padding: 9px 8px;\n}\n.ff-table thead tr th {\n color: var(--text-color);\n border-bottom: 1px solid var(--slider-table-color);\n text-transform: uppercase;\n}\n.ff-table thead tr th:first-child div {\n display: flex;\n align-items: center;\n}\n.ff-table thead tr th:first-child div .ff-table-checkbox {\n padding-right: 8px;\n}\n.ff-table tbody tr .action-column {\n opacity: 0;\n}\n.ff-table tbody tr .icon-container {\n padding-left: 10px;\n opacity: 0;\n display: flex;\n justify-content: flex-end;\n transition: opacity 0.3s ease, transform 0.3s ease;\n transform: translateX(20px);\n}\n.ff-table tbody tr:hover {\n background-color: var(--hover-color);\n}\n.ff-table tbody tr:hover .icon-container {\n opacity: 1;\n transform: translateX(0);\n}\n.ff-table tbody tr td {\n position: relative;\n color: var(--text-color);\n}\n.ff-table tbody tr td.clickable-cell {\n cursor: pointer;\n}\n.ff-table tbody tr td:first-child div {\n display: flex;\n align-items: center;\n}\n.ff-table tbody tr td:first-child div .ff-table-checkbox {\n padding-right: 8px;\n}\n.ff-table .primary-bg {\n background-color: var(--brand-color);\n}\n.ff-table .secondary-bg {\n background-color: var(--slider-table-color);\n}\n.ff-table .default-bg {\n background-color: transparent;\n}\n\n.border-borderRadius {\n border: 1px solid var(--slider-table-color);\n border-radius: 5px;\n border-collapse: none !important;\n}\n\n.ff-fixed-header {\n position: sticky !important;\n top: 0;\n z-index: 99;\n background-color: Var(--file-details-bg);\n}\n\n.no-data-content {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n}\n\ntbody tr.disabled-row {\n opacity: 0.5;\n cursor: not-allowed;\n}";
|
2426
|
+
styleInject(css_248z$o);
|
2418
2427
|
|
2419
2428
|
const isFunction$1 = functionToCheck => {
|
2420
2429
|
return functionToCheck && {}.toString.call(functionToCheck) === '[object Function]';
|
@@ -2462,18 +2471,68 @@ const prepareData = (dataObj, columnObj) => {
|
|
2462
2471
|
}
|
2463
2472
|
};
|
2464
2473
|
|
2474
|
+
var css_248z$n = "@font-face {\n font-family: \"Poppins\";\n font-weight: 400;\n src: local(\"Poppins-Regular\"), url(../../fonts/Poppins/Poppins-Regular.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 500;\n src: local(\"Poppins-Medium\"), url(../../fonts/Poppins/Poppins-Medium.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 600;\n src: local(\"Poppins-SemiBold\"), url(../../fonts/Poppins/Poppins-SemiBold.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 700;\n src: local(\"Poppins-Bold\"), url(../../fonts/Poppins/Poppins-Bold.ttf) format(\"truetype\");\n}\n.fontXs {\n font-family: \"Poppins\", sans-serif;\n font-size: 10px;\n}\n\n.fontSm {\n font-family: \"Poppins\", sans-serif;\n font-size: 12px;\n}\n\n.fontMd {\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\", sans-serif;\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\", sans-serif;\n font-size: 18px;\n}\n\n.font2Xl {\n font-family: \"Poppins\", sans-serif;\n font-size: 24px;\n}\n\n.font-size-8 {\n font-family: \"Poppins\", sans-serif;\n font-size: 8px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\", sans-serif;\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\", sans-serif;\n font-size: 80px;\n}\n\n.ff-checkbox--overlay {\n display: flex;\n justify-content: center;\n align-items: center;\n align-content: center;\n cursor: pointer;\n position: relative;\n}\n.ff-checkbox--overlay .ff-checkbox-input {\n display: none;\n}\n.ff-checkbox--overlay .ff-checkbox-custom {\n width: 16px;\n height: 16px;\n border: 1px solid var(--checkbox-border-color);\n box-sizing: border-box;\n border-radius: 2px;\n margin-right: 8px;\n background-color: var(--checkbox-bg-color);\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n align-content: center;\n transition: border-color background-color;\n}\n.ff-checkbox--overlay .ff-checkbox-custom::before {\n content: \"\";\n width: 9px;\n height: 2px;\n background-color: var(--checkbox-partial-color);\n border-radius: 2px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%) rotate(180deg);\n opacity: 0;\n transition: border-color background-color;\n}\n.ff-checkbox--overlay .ff-checkbox-custom::after {\n content: \"\";\n width: 16px;\n height: 16px;\n border: 4px solid var(--checkbox-hover-color);\n border-radius: 4px;\n position: absolute;\n opacity: 0;\n background-color: var(--checkbox-hover-color);\n z-index: -1;\n transition: border-color background-color;\n}\n.ff-checkbox--overlay .ff-checkbox-custom:hover {\n border-color: var(--brand-color);\n}\n.ff-checkbox--overlay .ff-checkbox-custom:hover::after {\n opacity: 1;\n}\n.ff-checkbox--overlay .ff-checkbox-input:checked + .ff-checkbox-custom {\n background: var(--brand-color);\n border-color: var(--brand-color);\n}\n.ff-checkbox--overlay .ff-checkbox-input:checked:hover + .ff-checkbox-custom {\n background: var(--brand-color);\n}\n.ff-checkbox--overlay .ff-checkbox-input:checked:hover + .ff-checkbox-custom::after {\n opacity: 1;\n}\n.ff-checkbox--overlay .ff-checkbox-input:disabled + .ff-checkbox-custom {\n opacity: 0.5;\n cursor: not-allowed;\n border: 1px solid var(--checkbox-border-color);\n}\n.ff-checkbox--overlay .ff-checkbox-input:disabled + .ff-checkbox-custom::after {\n opacity: 0;\n}\n.ff-checkbox--overlay .ff-storybook-checkbox--partial {\n background-color: var(--brand-color);\n border: none;\n}\n.ff-checkbox--overlay .ff-storybook-checkbox--partial::before {\n opacity: 1;\n}\n.ff-checkbox--overlay .ff-storybook-checkbox--partial:hover {\n background-color: var(--brand-color);\n}\n.ff-checkbox--overlay .ff-storybook-checkbox--partial:hover::after {\n opacity: 1;\n}";
|
2475
|
+
styleInject(css_248z$n);
|
2476
|
+
|
2477
|
+
const Checkbox = ({
|
2478
|
+
id,
|
2479
|
+
name,
|
2480
|
+
label,
|
2481
|
+
disabled = false,
|
2482
|
+
checked: initialChecked = false,
|
2483
|
+
partial = false,
|
2484
|
+
onChange
|
2485
|
+
}) => {
|
2486
|
+
const [checked, setChecked] = useState(initialChecked);
|
2487
|
+
useEffect(() => {
|
2488
|
+
setChecked(initialChecked);
|
2489
|
+
}, [initialChecked]);
|
2490
|
+
const handleCheckboxChange = event => {
|
2491
|
+
if (!disabled) {
|
2492
|
+
setChecked(prev => !prev), onChange?.(event);
|
2493
|
+
}
|
2494
|
+
};
|
2495
|
+
return jsxs("label", {
|
2496
|
+
className: "ff-checkbox--overlay",
|
2497
|
+
htmlFor: id,
|
2498
|
+
children: [jsx("input", {
|
2499
|
+
type: "checkbox",
|
2500
|
+
className: "ff-checkbox-input",
|
2501
|
+
id: id,
|
2502
|
+
name: name,
|
2503
|
+
checked: checked,
|
2504
|
+
onChange: handleCheckboxChange,
|
2505
|
+
disabled: disabled
|
2506
|
+
}), jsx("span", {
|
2507
|
+
className: classNames('ff-checkbox-custom', {
|
2508
|
+
'ff-checkbox-checked': checked,
|
2509
|
+
'ff-storybook-checkbox--partial': partial && !checked
|
2510
|
+
}),
|
2511
|
+
children: checked && jsx(Icon, {
|
2512
|
+
name: "tick",
|
2513
|
+
height: 6,
|
2514
|
+
width: 8,
|
2515
|
+
color: "var(--primary-icon-color)"
|
2516
|
+
})
|
2517
|
+
}), jsx(Typography, {
|
2518
|
+
as: "label",
|
2519
|
+
children: label
|
2520
|
+
})]
|
2521
|
+
});
|
2522
|
+
};
|
2523
|
+
|
2465
2524
|
// import NoData from '../NoData/NoData';
|
2466
2525
|
const Table = ({
|
2467
2526
|
data = [],
|
2468
2527
|
columns = [],
|
2469
2528
|
headerType,
|
2470
|
-
|
2471
|
-
|
2472
|
-
|
2473
|
-
|
2529
|
+
withCheckbox,
|
2530
|
+
onSelect,
|
2531
|
+
allSelected,
|
2532
|
+
partialSelected = false,
|
2474
2533
|
withFixedHeader = true,
|
2475
2534
|
borderWithRadius = false,
|
2476
|
-
|
2535
|
+
headerCheckboxDisabled = false,
|
2477
2536
|
// noDataContent,
|
2478
2537
|
// noDataImage,
|
2479
2538
|
// noDataImageSize,
|
@@ -2489,7 +2548,12 @@ const Table = ({
|
|
2489
2548
|
onClick(accessor, row);
|
2490
2549
|
}
|
2491
2550
|
};
|
2492
|
-
|
2551
|
+
const onSelectClick = (e, item) => {
|
2552
|
+
if (onSelect) {
|
2553
|
+
onSelect(e, item);
|
2554
|
+
}
|
2555
|
+
};
|
2556
|
+
if (checkEmpty(data)) return null;
|
2493
2557
|
return jsx("div", {
|
2494
2558
|
style: {
|
2495
2559
|
height: height
|
@@ -2506,26 +2570,50 @@ const Table = ({
|
|
2506
2570
|
'ff-fixed-header': withFixedHeader
|
2507
2571
|
}),
|
2508
2572
|
children: jsx("tr", {
|
2509
|
-
children: columns.map(column => jsx("th", {
|
2573
|
+
children: columns.map((column, index) => jsx("th", {
|
2510
2574
|
className: headerType && `${headerType}-bg`,
|
2511
2575
|
style: {
|
2512
2576
|
width: column?.width
|
2513
2577
|
},
|
2514
|
-
children:
|
2515
|
-
children:
|
2578
|
+
children: jsxs("div", {
|
2579
|
+
children: [index === 0 && withCheckbox && jsx("span", {
|
2580
|
+
className: "ff-table-checkbox",
|
2581
|
+
children: jsx(Checkbox, {
|
2582
|
+
onChange: e => {
|
2583
|
+
onSelectClick(e, {
|
2584
|
+
allSelected: e.target.checked
|
2585
|
+
});
|
2586
|
+
},
|
2587
|
+
checked: allSelected !== undefined ? allSelected : false,
|
2588
|
+
partial: !!partialSelected,
|
2589
|
+
disabled: headerCheckboxDisabled
|
2590
|
+
})
|
2591
|
+
}), column.header]
|
2516
2592
|
})
|
2517
2593
|
}, column.header))
|
2518
2594
|
})
|
2519
2595
|
}), jsx("tbody", {
|
2520
2596
|
children: data.length > 0 && data.map((row, index) => jsx("tr", {
|
2597
|
+
className: classNames(className, {
|
2598
|
+
'disabled-row': row.disabled
|
2599
|
+
}),
|
2521
2600
|
children: columns.map((column, i) => {
|
2522
2601
|
return jsx("td", {
|
2523
2602
|
onClick: () => hanleOnclick(column, row),
|
2524
2603
|
className: classNames(column.className, {
|
2525
2604
|
'clickable-cell': column.onClick
|
2526
2605
|
}),
|
2527
|
-
children:
|
2528
|
-
children:
|
2606
|
+
children: jsxs("div", {
|
2607
|
+
children: [i === 0 && withCheckbox && jsx("span", {
|
2608
|
+
className: "ff-table-checkbox",
|
2609
|
+
children: jsx(Checkbox, {
|
2610
|
+
onChange: e => {
|
2611
|
+
onSelectClick(e, row);
|
2612
|
+
},
|
2613
|
+
checked: row.checked,
|
2614
|
+
disabled: !!row.disabled
|
2615
|
+
})
|
2616
|
+
}), prepareData(row, column)]
|
2529
2617
|
})
|
2530
2618
|
}, column.accessor + i);
|
2531
2619
|
})
|
@@ -2535,11 +2623,11 @@ const Table = ({
|
|
2535
2623
|
});
|
2536
2624
|
};
|
2537
2625
|
|
2538
|
-
var css_248z$
|
2539
|
-
styleInject(css_248z$
|
2626
|
+
var css_248z$m = ".ff-add-button-container {\n position: relative;\n border: none;\n width: 24px;\n height: 24px;\n border-radius: 4px;\n background-color: transparent;\n}\n.ff-add-button-container.ff-hovered-add-button--primary {\n background-color: var(--hover-color);\n}\n.ff-add-button-container .ff-hovered-add-icon--primary svg path {\n fill: var(--add-icon-hover-color);\n}\n.ff-add-button-container .ff-add-icon--primary svg path {\n fill: var(--brand-color);\n}\n.ff-add-button-container .ff-add-button {\n position: absolute;\n border: none;\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 4px;\n background: none;\n}";
|
2627
|
+
styleInject(css_248z$m);
|
2540
2628
|
|
2541
|
-
var css_248z$
|
2542
|
-
styleInject(css_248z$
|
2629
|
+
var css_248z$l = ".ff-arrow-buttons-container {\n position: absolute;\n transition: opacity 0.3s ease;\n}\n.ff-arrow-buttons-container.ff-down-right-top, .ff-arrow-buttons-container.ff-down-top {\n height: 80px;\n width: 52px;\n transform: translateY(calc(-50% + 12px));\n}\n.ff-arrow-buttons-container.ff-down-right-top .ff-arrow-button--right, .ff-arrow-buttons-container.ff-down-top .ff-arrow-button--right {\n top: 28px;\n right: 2px;\n animation: slideRight 0.4s ease-out;\n}\n.ff-arrow-buttons-container.ff-down-right-top .ff-arrow-button--top, .ff-arrow-buttons-container.ff-down-top .ff-arrow-button--top {\n top: 2px;\n animation: slideTop 0.4s ease-out;\n}\n.ff-arrow-buttons-container.ff-down-right-top .ff-arrow-button--down, .ff-arrow-buttons-container.ff-down-top .ff-arrow-button--down {\n bottom: 2px;\n animation: slideDown 0.4s ease-out;\n}\n.ff-arrow-buttons-container.ff-right-top {\n height: 52px;\n width: 52px;\n transform: translateY(-54%);\n}\n.ff-arrow-buttons-container.ff-right-top .ff-arrow-button--right {\n top: 28px;\n right: 2px;\n animation: slideRight 0.4s ease-out;\n}\n.ff-arrow-buttons-container.ff-right-top .ff-arrow-button--top {\n top: 2px;\n animation: slideTop 0.4s ease-out;\n}\n.ff-arrow-buttons-container.ff-down-right {\n height: 52px;\n width: 52px;\n}\n.ff-arrow-buttons-container.ff-down-right .ff-arrow-button--right {\n top: 0px;\n right: 2px;\n animation: slideRight 0.4s ease-out;\n}\n.ff-arrow-buttons-container.ff-down-right .ff-arrow-button--down {\n bottom: 2px;\n animation: slideDown 0.4s ease-out;\n}\n.ff-arrow-buttons-container.ff-top {\n height: 52px;\n width: 24px;\n transform: translateY(-54%);\n}\n.ff-arrow-buttons-container.ff-top .ff-arrow-button--top {\n top: 2px;\n animation: slideTop 0.4s ease-out;\n}\n.ff-arrow-buttons-container.ff-right {\n height: 24px;\n width: 52px;\n}\n.ff-arrow-buttons-container.ff-right .ff-arrow-button--right {\n right: 2px;\n animation: slideRight 0.4s ease-out;\n}\n.ff-arrow-buttons-container.ff-down {\n height: 52px;\n width: 24px;\n}\n.ff-arrow-buttons-container.ff-down .ff-arrow-button--down {\n bottom: 2px;\n animation: slideDown 0.4s ease-out;\n}\n.ff-arrow-buttons-container .ff-arrow-button {\n background: var(--arrow-button-bg-color);\n border: 0.5px solid var(--arrows-button-border-color);\n padding: 0;\n cursor: pointer;\n width: 24px;\n height: 24px;\n display: flex;\n border-radius: 4px;\n justify-content: center;\n align-items: center;\n transition: all 0.3s ease;\n position: absolute;\n}\n.ff-arrow-buttons-container .ff-arrow-button--top {\n top: 0px;\n left: 0;\n}\n.ff-arrow-buttons-container .ff-arrow-button--down {\n bottom: 0px;\n left: 0;\n}\n@keyframes slideTop {\n from {\n transform: translateY(20px);\n opacity: 0;\n }\n 50% {\n transform: translateY(-10px);\n opacity: 0.5;\n }\n to {\n transform: translateY(0);\n opacity: 1;\n }\n}\n@keyframes slideRight {\n from {\n transform: translateX(-20px);\n opacity: 0;\n }\n 50% {\n transform: translateX(10px);\n opacity: 0.5;\n }\n to {\n transform: translateX(0);\n opacity: 1;\n }\n}\n@keyframes slideDown {\n from {\n transform: translateY(-20px);\n opacity: 0;\n }\n 50% {\n transform: translateY(10px);\n opacity: 0.5;\n }\n to {\n transform: translateY(0);\n opacity: 1;\n }\n}";
|
2630
|
+
styleInject(css_248z$l);
|
2543
2631
|
|
2544
2632
|
const ArrowsButton = ({
|
2545
2633
|
direction,
|
@@ -2676,10 +2764,10 @@ const AddButton = ({
|
|
2676
2764
|
});
|
2677
2765
|
};
|
2678
2766
|
|
2679
|
-
var css_248z$
|
2680
|
-
styleInject(css_248z$
|
2767
|
+
var css_248z$k = "@font-face {\n font-family: \"Poppins\";\n font-weight: 400;\n src: local(\"Poppins-Regular\"), url(../../fonts/Poppins/Poppins-Regular.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 500;\n src: local(\"Poppins-Medium\"), url(../../fonts/Poppins/Poppins-Medium.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 600;\n src: local(\"Poppins-SemiBold\"), url(../../fonts/Poppins/Poppins-SemiBold.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 700;\n src: local(\"Poppins-Bold\"), url(../../fonts/Poppins/Poppins-Bold.ttf) format(\"truetype\");\n}\n.fontXs {\n font-family: \"Poppins\", sans-serif;\n font-size: 10px;\n}\n\n.fontSm, .ff-donut-chart-svg-container svg text:nth-of-type(1), .ff-status-item {\n font-family: \"Poppins\", sans-serif;\n font-size: 12px;\n}\n\n.fontMd {\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\", sans-serif;\n font-size: 16px;\n}\n\n.fontXL, .ff-donut-chart-svg-container svg text:nth-of-type(2) {\n font-family: \"Poppins\", sans-serif;\n font-size: 18px;\n}\n\n.font2Xl {\n font-family: \"Poppins\", sans-serif;\n font-size: 24px;\n}\n\n.font-size-8, .ff-donut-chart-svg-container svg text:nth-of-type(3) {\n font-family: \"Poppins\", sans-serif;\n font-size: 8px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\", sans-serif;\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\", sans-serif;\n font-size: 80px;\n}\n\n.ff-donut-chart-section {\n display: flex;\n align-items: center;\n padding: 8px;\n}\n\n.ff-donut-chart-svg-container {\n display: flex;\n}\n.ff-donut-chart-svg-container svg text:nth-of-type(1) {\n font-weight: 600;\n}\n.ff-donut-chart-svg-container svg text:nth-of-type(2) {\n font-weight: 600;\n}\n.ff-donut-chart-svg-container svg text:nth-of-type(3) {\n font-weight: 500;\n}\n\n.ff-status-container {\n display: flex;\n flex-direction: column;\n gap: 20px;\n}\n\n.ff-status-item {\n display: flex;\n gap: 40px;\n justify-content: space-between;\n opacity: 1;\n}\n.ff-status-item.ff-highlighted {\n opacity: 1;\n}\n.ff-status-item.ff-fade {\n opacity: 10%;\n}\n.ff-status-item .ff-status-text {\n font-weight: 500;\n color: var(--status-skipped-text-color);\n}\n.ff-status-item .ff-status-details-script-count {\n display: flex;\n gap: 4px;\n font-weight: 600;\n}\n.ff-status-item .ff-status-details-script-percentage {\n font-weight: 400;\n color: var(--brand2-color);\n}\n\n.ff-status-label {\n display: flex;\n gap: 8px;\n align-items: center;\n}\n\n.ff-status-details {\n display: flex;\n gap: 4px;\n}\n\n.ff-status-color {\n width: 16px;\n height: 16px;\n border-radius: 4px;\n opacity: 80%;\n}";
|
2768
|
+
styleInject(css_248z$k);
|
2681
2769
|
|
2682
|
-
const calculateArc = (x, y, radius, startAngle, endAngle) => {
|
2770
|
+
const calculateArc$2 = (x, y, radius, startAngle, endAngle) => {
|
2683
2771
|
const startX = x + radius * Math.cos(startAngle);
|
2684
2772
|
const startY = y + radius * Math.sin(startAngle);
|
2685
2773
|
const endX = x + radius * Math.cos(endAngle);
|
@@ -2745,10 +2833,10 @@ const DonutChart = ({
|
|
2745
2833
|
const normalizedStatus = statusValue?.status?.toLowerCase();
|
2746
2834
|
const isFullCircle = nonZeroValues.length === 1;
|
2747
2835
|
// Full circle handling
|
2748
|
-
const foregroundArcPath = isFullCircle ? calculateArc(0, 0, radius, 0, 2 * Math.PI) : calculateArc(0, 0, radius, currentAngle, endAngle);
|
2836
|
+
const foregroundArcPath = isFullCircle ? calculateArc$2(0, 0, radius, 0, 2 * Math.PI) : calculateArc$2(0, 0, radius, currentAngle, endAngle);
|
2749
2837
|
// Outer arc for hover effect
|
2750
2838
|
const outerArcRadius = radius + lineWidth - 1;
|
2751
|
-
const outerArcPath = isFullCircle ? calculateArc(0, 0, outerArcRadius, 0, 2 * Math.PI) : calculateArc(0, 0, outerArcRadius, currentAngle, endAngle);
|
2839
|
+
const outerArcPath = isFullCircle ? calculateArc$2(0, 0, outerArcRadius, 0, 2 * Math.PI) : calculateArc$2(0, 0, outerArcRadius, currentAngle, endAngle);
|
2752
2840
|
currentAngle = endAngle + gapAngle;
|
2753
2841
|
return jsxs("g", {
|
2754
2842
|
children: [jsx("path", {
|
@@ -3029,8 +3117,8 @@ const useFileDropzone = options => {
|
|
3029
3117
|
};
|
3030
3118
|
};
|
3031
3119
|
|
3032
|
-
var css_248z$
|
3033
|
-
styleInject(css_248z$
|
3120
|
+
var css_248z$j = ".ff-file-dropzone-wrapper {\n display: flex;\n flex-direction: column;\n gap: 10px;\n}\n.ff-file-dropzone-wrapper .ff-file-dropzone {\n width: 640px;\n height: 188px;\n padding: 16px 0;\n border-radius: 8px;\n background: var(--file-dropzone-default-color);\n border: 1px dashed var(--brand-color);\n display: flex;\n align-items: center;\n flex-direction: column;\n text-align: center;\n gap: 8px;\n}\n.ff-file-dropzone-wrapper .ff-file-dropzone--active {\n background-color: var(--file-dropzone-selected-color);\n}\n.ff-file-dropzone-wrapper .ff-file-dropzone-content__icon {\n height: 80px;\n width: 80px;\n display: grid;\n place-items: center;\n}\n.ff-file-dropzone-wrapper .ff-file-dropzone-content__labels .choose-file-btn {\n margin: 0 auto;\n position: relative;\n font-weight: 600;\n line-height: 15px;\n}\n.ff-file-dropzone-wrapper .ff-file-dropzone-content__labels .choose-file-btn input {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n opacity: 0;\n}\n.ff-file-dropzone-wrapper .ff-file-details-wrapper {\n display: flex;\n flex-direction: column;\n gap: 10px;\n width: 640px;\n max-height: 300px;\n overflow-y: auto;\n scroll-behavior: smooth;\n padding: 2px;\n -ms-overflow-style: none;\n scrollbar-width: thin;\n}\n.ff-file-dropzone-wrapper .ff-file-details-wrapper ::-webkit-scrollbar {\n width: 2px;\n}\n.ff-file-dropzone-wrapper .ff-file-details-wrapper .ff-file-details {\n display: flex;\n flex-direction: column;\n gap: 10px;\n}\n.ff-file-dropzone-wrapper .ff-file-details-wrapper .ff-file-details__item {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 4px;\n border-radius: 4px;\n background-color: var(--file-details-bg);\n box-shadow: 0px 0px 4px 0px var(--file-details-container-shadow);\n overflow: hidden;\n}\n.ff-file-dropzone-wrapper .ff-file-details-wrapper .ff-file-details__item .ff-file-info {\n display: flex;\n align-items: center;\n gap: 4px;\n width: 60%;\n}\n.ff-file-dropzone-wrapper .ff-file-details-wrapper .ff-file-details__item .ff-file-info .ff-file-info__icon {\n display: grid;\n place-items: center;\n height: 24px;\n width: 24px;\n}\n.ff-file-dropzone-wrapper .ff-file-details-wrapper .ff-file-details__item .ff-file-info__name-wrapper {\n display: flex;\n flex-direction: column;\n gap: 2px;\n justify-content: center;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n width: 100%;\n}\n.ff-file-dropzone-wrapper .ff-file-details-wrapper .ff-file-details__item .ff-file-info__name-wrapper__name {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n display: block;\n color: var(--text-color);\n}\n.ff-file-dropzone-wrapper .ff-file-details-wrapper .ff-file-details__item .ff-file-actions {\n display: flex;\n align-items: center;\n}\n.ff-file-dropzone-wrapper .ff-file-details-wrapper .ff-file-details__item .ff-file-actions__icon-replace, .ff-file-dropzone-wrapper .ff-file-details-wrapper .ff-file-details__item .ff-file-actions__icon-remove {\n height: 24px;\n width: 24px;\n display: grid;\n place-items: center;\n cursor: pointer;\n}";
|
3121
|
+
styleInject(css_248z$j);
|
3034
3122
|
|
3035
3123
|
const Dropzone = ({
|
3036
3124
|
icon,
|
@@ -3217,29 +3305,29 @@ const FileDropzone = ({
|
|
3217
3305
|
});
|
3218
3306
|
};
|
3219
3307
|
|
3220
|
-
function _extends() {
|
3221
|
-
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
3308
|
+
function _extends$2() {
|
3309
|
+
return _extends$2 = Object.assign ? Object.assign.bind() : function (n) {
|
3222
3310
|
for (var e = 1; e < arguments.length; e++) {
|
3223
3311
|
var t = arguments[e];
|
3224
3312
|
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
3225
3313
|
}
|
3226
3314
|
return n;
|
3227
|
-
}, _extends.apply(null, arguments);
|
3315
|
+
}, _extends$2.apply(null, arguments);
|
3228
3316
|
}
|
3229
3317
|
|
3230
|
-
function _assertThisInitialized(e) {
|
3318
|
+
function _assertThisInitialized$1(e) {
|
3231
3319
|
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
3232
3320
|
return e;
|
3233
3321
|
}
|
3234
3322
|
|
3235
|
-
function _setPrototypeOf(t, e) {
|
3236
|
-
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
3323
|
+
function _setPrototypeOf$1(t, e) {
|
3324
|
+
return _setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
3237
3325
|
return t.__proto__ = e, t;
|
3238
|
-
}, _setPrototypeOf(t, e);
|
3326
|
+
}, _setPrototypeOf$1(t, e);
|
3239
3327
|
}
|
3240
3328
|
|
3241
|
-
function _inheritsLoose(t, o) {
|
3242
|
-
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
3329
|
+
function _inheritsLoose$2(t, o) {
|
3330
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf$1(t, o);
|
3243
3331
|
}
|
3244
3332
|
|
3245
3333
|
var safeIsNaN = Number.isNaN || function ponyfill(value) {
|
@@ -3290,7 +3378,7 @@ function memoizeOne(resultFn, isEqual) {
|
|
3290
3378
|
return memoized;
|
3291
3379
|
}
|
3292
3380
|
|
3293
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
3381
|
+
function _objectWithoutPropertiesLoose$2(r, e) {
|
3294
3382
|
if (null == r) return {};
|
3295
3383
|
var t = {};
|
3296
3384
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
@@ -3419,7 +3507,7 @@ function createGridComponent(_ref2) {
|
|
3419
3507
|
shouldResetStyleCacheOnItemSizeChange = _ref2.shouldResetStyleCacheOnItemSizeChange,
|
3420
3508
|
validateProps = _ref2.validateProps;
|
3421
3509
|
return _class = /*#__PURE__*/function (_PureComponent) {
|
3422
|
-
_inheritsLoose(Grid, _PureComponent);
|
3510
|
+
_inheritsLoose$2(Grid, _PureComponent);
|
3423
3511
|
|
3424
3512
|
// Always use explicit constructor for React components.
|
3425
3513
|
// It produces less code after transpilation. (#26)
|
@@ -3427,11 +3515,11 @@ function createGridComponent(_ref2) {
|
|
3427
3515
|
function Grid(props) {
|
3428
3516
|
var _this;
|
3429
3517
|
_this = _PureComponent.call(this, props) || this;
|
3430
|
-
_this._instanceProps = initInstanceProps(_this.props, _assertThisInitialized(_this));
|
3518
|
+
_this._instanceProps = initInstanceProps(_this.props, _assertThisInitialized$1(_this));
|
3431
3519
|
_this._resetIsScrollingTimeoutId = null;
|
3432
3520
|
_this._outerRef = void 0;
|
3433
3521
|
_this.state = {
|
3434
|
-
instance: _assertThisInitialized(_this),
|
3522
|
+
instance: _assertThisInitialized$1(_this),
|
3435
3523
|
isScrolling: false,
|
3436
3524
|
horizontalScrollDirection: 'forward',
|
3437
3525
|
scrollLeft: typeof _this.props.initialScrollLeft === 'number' ? _this.props.initialScrollLeft : 0,
|
@@ -3733,7 +3821,7 @@ function createGridComponent(_ref2) {
|
|
3733
3821
|
className: className,
|
3734
3822
|
onScroll: this._onScroll,
|
3735
3823
|
ref: this._outerRefSetter,
|
3736
|
-
style: _extends({
|
3824
|
+
style: _extends$2({
|
3737
3825
|
position: 'relative',
|
3738
3826
|
height: height,
|
3739
3827
|
width: width,
|
@@ -4189,7 +4277,7 @@ function createListComponent(_ref) {
|
|
4189
4277
|
shouldResetStyleCacheOnItemSizeChange = _ref.shouldResetStyleCacheOnItemSizeChange,
|
4190
4278
|
validateProps = _ref.validateProps;
|
4191
4279
|
return _class = /*#__PURE__*/function (_PureComponent) {
|
4192
|
-
_inheritsLoose(List, _PureComponent);
|
4280
|
+
_inheritsLoose$2(List, _PureComponent);
|
4193
4281
|
|
4194
4282
|
// Always use explicit constructor for React components.
|
4195
4283
|
// It produces less code after transpilation. (#26)
|
@@ -4197,11 +4285,11 @@ function createListComponent(_ref) {
|
|
4197
4285
|
function List(props) {
|
4198
4286
|
var _this;
|
4199
4287
|
_this = _PureComponent.call(this, props) || this;
|
4200
|
-
_this._instanceProps = initInstanceProps(_this.props, _assertThisInitialized(_this));
|
4288
|
+
_this._instanceProps = initInstanceProps(_this.props, _assertThisInitialized$1(_this));
|
4201
4289
|
_this._outerRef = void 0;
|
4202
4290
|
_this._resetIsScrollingTimeoutId = null;
|
4203
4291
|
_this.state = {
|
4204
|
-
instance: _assertThisInitialized(_this),
|
4292
|
+
instance: _assertThisInitialized$1(_this),
|
4205
4293
|
isScrolling: false,
|
4206
4294
|
scrollDirection: 'forward',
|
4207
4295
|
scrollOffset: typeof _this.props.initialScrollOffset === 'number' ? _this.props.initialScrollOffset : 0,
|
@@ -4488,7 +4576,7 @@ function createListComponent(_ref) {
|
|
4488
4576
|
className: className,
|
4489
4577
|
onScroll: onScroll,
|
4490
4578
|
ref: this._outerRefSetter,
|
4491
|
-
style: _extends({
|
4579
|
+
style: _extends$2({
|
4492
4580
|
position: 'relative',
|
4493
4581
|
height: height,
|
4494
4582
|
width: width,
|
@@ -5074,16 +5162,16 @@ function shallowDiffers(prev, next) {
|
|
5074
5162
|
}
|
5075
5163
|
return false;
|
5076
5164
|
}
|
5077
|
-
var _excluded = ["style"],
|
5165
|
+
var _excluded$1 = ["style"],
|
5078
5166
|
_excluded2 = ["style"];
|
5079
5167
|
// It knows to compare individual style props and ignore the wrapper object.
|
5080
5168
|
// See https://reactjs.org/docs/react-api.html#reactmemo
|
5081
5169
|
|
5082
5170
|
function areEqual(prevProps, nextProps) {
|
5083
5171
|
var prevStyle = prevProps.style,
|
5084
|
-
prevRest = _objectWithoutPropertiesLoose(prevProps, _excluded);
|
5172
|
+
prevRest = _objectWithoutPropertiesLoose$2(prevProps, _excluded$1);
|
5085
5173
|
var nextStyle = nextProps.style,
|
5086
|
-
nextRest = _objectWithoutPropertiesLoose(nextProps, _excluded2);
|
5174
|
+
nextRest = _objectWithoutPropertiesLoose$2(nextProps, _excluded2);
|
5087
5175
|
return !shallowDiffers(prevStyle, nextStyle) && !shallowDiffers(prevRest, nextRest);
|
5088
5176
|
}
|
5089
5177
|
|
@@ -5959,7 +6047,7 @@ function createFormControl(props = {}) {
|
|
5959
6047
|
timer = setTimeout(callback, wait);
|
5960
6048
|
};
|
5961
6049
|
const _updateValid = async (shouldUpdateValid) => {
|
5962
|
-
if (!
|
6050
|
+
if (!_options.disabled && (_proxyFormState.isValid || shouldUpdateValid)) {
|
5963
6051
|
const isValid = _options.resolver
|
5964
6052
|
? isEmptyObject((await _executeSchema()).errors)
|
5965
6053
|
: await executeBuiltInValidation(_fields, true);
|
@@ -5971,7 +6059,7 @@ function createFormControl(props = {}) {
|
|
5971
6059
|
}
|
5972
6060
|
};
|
5973
6061
|
const _updateIsValidating = (names, isValidating) => {
|
5974
|
-
if (!
|
6062
|
+
if (!_options.disabled &&
|
5975
6063
|
(_proxyFormState.isValidating || _proxyFormState.validatingFields)) {
|
5976
6064
|
(names || Array.from(_names.mount)).forEach((name) => {
|
5977
6065
|
if (name) {
|
@@ -5987,7 +6075,7 @@ function createFormControl(props = {}) {
|
|
5987
6075
|
}
|
5988
6076
|
};
|
5989
6077
|
const _updateFieldArray = (name, values = [], method, args, shouldSetValues = true, shouldUpdateFieldsAndState = true) => {
|
5990
|
-
if (args && method && !
|
6078
|
+
if (args && method && !_options.disabled) {
|
5991
6079
|
_state.action = true;
|
5992
6080
|
if (shouldUpdateFieldsAndState && Array.isArray(get(_fields, name))) {
|
5993
6081
|
const fieldValues = method(get(_fields, name), args.argA, args.argB);
|
@@ -6051,7 +6139,7 @@ function createFormControl(props = {}) {
|
|
6051
6139
|
const output = {
|
6052
6140
|
name,
|
6053
6141
|
};
|
6054
|
-
if (!
|
6142
|
+
if (!_options.disabled) {
|
6055
6143
|
const disabledField = !!(get(_fields, name) &&
|
6056
6144
|
get(_fields, name)._f &&
|
6057
6145
|
get(_fields, name)._f.disabled);
|
@@ -6187,7 +6275,7 @@ function createFormControl(props = {}) {
|
|
6187
6275
|
}
|
6188
6276
|
_names.unMount = new Set();
|
6189
6277
|
};
|
6190
|
-
const _getDirty = (name, data) => !
|
6278
|
+
const _getDirty = (name, data) => !_options.disabled &&
|
6191
6279
|
(name && data && set(_formValues, name, data),
|
6192
6280
|
!deepEqual(getValues(), _defaultValues));
|
6193
6281
|
const _getWatch = (names, defaultValue, isGlobal) => generateWatchOutput(names, _names, {
|
@@ -6503,7 +6591,7 @@ function createFormControl(props = {}) {
|
|
6503
6591
|
};
|
6504
6592
|
const register = (name, options = {}) => {
|
6505
6593
|
let field = get(_fields, name);
|
6506
|
-
const disabledIsDefined = isBoolean(options.disabled) || isBoolean(
|
6594
|
+
const disabledIsDefined = isBoolean(options.disabled) || isBoolean(_options.disabled);
|
6507
6595
|
set(_fields, name, {
|
6508
6596
|
...(field || {}),
|
6509
6597
|
_f: {
|
@@ -6519,7 +6607,7 @@ function createFormControl(props = {}) {
|
|
6519
6607
|
field,
|
6520
6608
|
disabled: isBoolean(options.disabled)
|
6521
6609
|
? options.disabled
|
6522
|
-
:
|
6610
|
+
: _options.disabled,
|
6523
6611
|
name,
|
6524
6612
|
value: options.value,
|
6525
6613
|
});
|
@@ -6529,7 +6617,7 @@ function createFormControl(props = {}) {
|
|
6529
6617
|
}
|
6530
6618
|
return {
|
6531
6619
|
...(disabledIsDefined
|
6532
|
-
? { disabled: options.disabled ||
|
6620
|
+
? { disabled: options.disabled || _options.disabled }
|
6533
6621
|
: {}),
|
6534
6622
|
...(_options.progressive
|
6535
6623
|
? {
|
@@ -6613,6 +6701,12 @@ function createFormControl(props = {}) {
|
|
6613
6701
|
e.preventDefault && e.preventDefault();
|
6614
6702
|
e.persist && e.persist();
|
6615
6703
|
}
|
6704
|
+
if (_options.disabled) {
|
6705
|
+
if (onInvalid) {
|
6706
|
+
await onInvalid({ ..._formState.errors }, e);
|
6707
|
+
}
|
6708
|
+
return;
|
6709
|
+
}
|
6616
6710
|
let fieldValues = cloneObject(_formValues);
|
6617
6711
|
_subjects.state.next({
|
6618
6712
|
isSubmitting: true,
|
@@ -6791,7 +6885,9 @@ function createFormControl(props = {}) {
|
|
6791
6885
|
: fieldReference.ref;
|
6792
6886
|
if (fieldRef.focus) {
|
6793
6887
|
fieldRef.focus();
|
6794
|
-
options.shouldSelect &&
|
6888
|
+
options.shouldSelect &&
|
6889
|
+
isFunction(fieldRef.select) &&
|
6890
|
+
fieldRef.select();
|
6795
6891
|
}
|
6796
6892
|
}
|
6797
6893
|
};
|
@@ -6992,17 +7088,12 @@ function useForm(props = {}) {
|
|
6992
7088
|
values: control._getWatch(),
|
6993
7089
|
});
|
6994
7090
|
}, [props.shouldUnregister, control]);
|
6995
|
-
React__default.useEffect(() => {
|
6996
|
-
if (_formControl.current) {
|
6997
|
-
_formControl.current.watch = _formControl.current.watch.bind({});
|
6998
|
-
}
|
6999
|
-
}, [formState]);
|
7000
7091
|
_formControl.current.formState = getProxyFormState(formState, control);
|
7001
7092
|
return _formControl.current;
|
7002
7093
|
}
|
7003
7094
|
|
7004
|
-
var css_248z$
|
7005
|
-
styleInject(css_248z$
|
7095
|
+
var css_248z$i = "@font-face {\n font-family: \"Poppins\";\n font-weight: 400;\n src: local(\"Poppins-Regular\"), url(../../fonts/Poppins/Poppins-Regular.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 500;\n src: local(\"Poppins-Medium\"), url(../../fonts/Poppins/Poppins-Medium.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 600;\n src: local(\"Poppins-SemiBold\"), url(../../fonts/Poppins/Poppins-SemiBold.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 700;\n src: local(\"Poppins-Bold\"), url(../../fonts/Poppins/Poppins-Bold.ttf) format(\"truetype\");\n}\n.fontXs {\n font-family: \"Poppins\", sans-serif;\n font-size: 10px;\n}\n\n.fontSm, .ff-form-container {\n font-family: \"Poppins\", sans-serif;\n font-size: 12px;\n}\n\n.fontMd {\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\", sans-serif;\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\", sans-serif;\n font-size: 18px;\n}\n\n.font2Xl {\n font-family: \"Poppins\", sans-serif;\n font-size: 24px;\n}\n\n.font-size-8 {\n font-family: \"Poppins\", sans-serif;\n font-size: 8px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\", sans-serif;\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\", sans-serif;\n font-size: 80px;\n}\n\n.ff-form-container {\n background-color: var(--hover-color);\n border: 1px solid var(--arrows-button-border-color);\n border-radius: 8px;\n padding: 20px;\n width: 400px;\n margin: 0 auto;\n}\n.ff-form-container .ff-form-group {\n margin-bottom: 16px;\n}\n.ff-form-container .ff-form-group .ff-label {\n display: block;\n margin-bottom: 4px;\n font-weight: bold;\n}\n.ff-form-container .ff-form-group input {\n width: 94%;\n padding: 10px;\n border: 1px solid var(--arrows-button-border-color);\n border-radius: 8px;\n}\n.ff-form-container .ff-form-group input:focus {\n border-color: var(--brand-color);\n}\n.ff-form-container .ff-form-group input.ff-error {\n border-color: var(--ff-error-light);\n}\n.ff-form-container .ff-form-group .ff-error {\n color: var(--error-light);\n margin-top: 4px;\n}\n.ff-form-container .ff-form-group {\n margin-bottom: 16px;\n}\n.ff-form-container .ff-form-group .ff-label {\n display: block;\n margin-bottom: 4px;\n font-weight: bold;\n}\n.ff-form-container .ff-form-group input,\n.ff-form-container .ff-form-group select {\n width: 94%;\n padding: 10px;\n border: 1px solid var(--arrows-button-border-color);\n border-radius: 8px;\n}\n.ff-form-container .ff-form-group input:focus,\n.ff-form-container .ff-form-group select:focus {\n border-color: var(--brand-color);\n}\n.ff-form-container .ff-form-group input.ff-error,\n.ff-form-container .ff-form-group select.ff-error {\n border-color: var(--ff-error-light);\n}\n.ff-form-container .ff-form-radio-group {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n margin-bottom: 16px;\n}\n.ff-form-container .ff-form-radio-group .ff-radio-group-wrapper {\n display: flex;\n}\n.ff-form-container .ff-form-radio-group .ff-radio-gender {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.ff-form-container .ff-form-radio-group .ff-radio-gender input[type=radio] {\n margin-right: 0.5rem;\n}\n.ff-form-container .ff-form-radio-group .ff-error {\n padding-left: 12px;\n color: var(--error-light);\n margin-top: 4px;\n}\n.ff-form-container .ff-button-layout {\n width: 99%;\n display: flex;\n gap: 12px;\n margin-top: 24px;\n}\n.ff-form-container .ff-button-layout button {\n width: 50%;\n background-color: var(--brand-color);\n color: var(--primary-button-text-color);\n border: none;\n border-radius: 8px;\n padding: 10px;\n cursor: pointer;\n}";
|
7096
|
+
styleInject(css_248z$i);
|
7006
7097
|
|
7007
7098
|
const Form = ({
|
7008
7099
|
onSubmit,
|
@@ -7036,8 +7127,8 @@ const Form = ({
|
|
7036
7127
|
});
|
7037
7128
|
};
|
7038
7129
|
|
7039
|
-
var css_248z$
|
7040
|
-
styleInject(css_248z$
|
7130
|
+
var css_248z$h = "@font-face {\n font-family: \"Poppins\";\n font-weight: 400;\n src: local(\"Poppins-Regular\"), url(../../fonts/Poppins/Poppins-Regular.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 500;\n src: local(\"Poppins-Medium\"), url(../../fonts/Poppins/Poppins-Medium.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 600;\n src: local(\"Poppins-SemiBold\"), url(../../fonts/Poppins/Poppins-SemiBold.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 700;\n src: local(\"Poppins-Bold\"), url(../../fonts/Poppins/Poppins-Bold.ttf) format(\"truetype\");\n}\n.fontXs {\n font-family: \"Poppins\", sans-serif;\n font-size: 10px;\n}\n\n.fontSm, .ff-input-with-dropdown-container .ff-input-with-dropdown .ff-floating-label-input-container .ff-floating-label, .ff-input-with-dropdown-container .ff-input-with-dropdown .ff-floating-label-input-container .ff-floating-input {\n font-family: \"Poppins\", sans-serif;\n font-size: 12px;\n}\n\n.fontMd {\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\", sans-serif;\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\", sans-serif;\n font-size: 18px;\n}\n\n.font2Xl {\n font-family: \"Poppins\", sans-serif;\n font-size: 24px;\n}\n\n.font-size-8, .ff-input-with-dropdown-container .ff-helper-text {\n font-family: \"Poppins\", sans-serif;\n font-size: 8px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\", sans-serif;\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\", sans-serif;\n font-size: 80px;\n}\n\n.ff-input-with-dropdown-container {\n display: flex;\n flex-direction: column;\n}\n.ff-input-with-dropdown-container .ff-input-with-dropdown {\n display: flex;\n border: 1px solid var(--input-default-border-color);\n border-radius: 4px;\n padding: 0;\n position: relative;\n}\n.ff-input-with-dropdown-container .ff-input-with-dropdown .ff-floating-label-input-container .ff-floating-label {\n position: absolute;\n z-index: 9;\n color: var(--input-default-border-color);\n top: 7px;\n left: 7px;\n transition: all 0.3s ease-in-out;\n}\n.ff-input-with-dropdown-container .ff-input-with-dropdown .ff-floating-label-input-container .ff-floating-label .ff-required-asterisk {\n color: var(--input-error-text-color);\n}\n.ff-input-with-dropdown-container .ff-input-with-dropdown .ff-floating-label-input-container .ff-floating-label--filled {\n color: var(--input-active-text-color);\n}\n.ff-input-with-dropdown-container .ff-input-with-dropdown .ff-floating-label-input-container .ff-floating-label--no-hover {\n color: var(--input-default-border-color);\n}\n.ff-input-with-dropdown-container .ff-input-with-dropdown .ff-floating-label-input-container .ff-floating-label--error {\n color: var(--input-error-text-color);\n}\n.ff-input-with-dropdown-container .ff-input-with-dropdown .ff-floating-label-input-container .ff-floating-input {\n position: relative;\n padding: 6px 7px;\n line-height: 18px;\n border: none;\n outline: none;\n border-right: 1px solid var(--input-default-border-color);\n border-radius: 4px 0 0 4px;\n top: 1px;\n}\n.ff-input-with-dropdown-container .ff-input-with-dropdown .ff-floating-label-input-container .ff-floating-input::-webkit-outer-spin-button, .ff-input-with-dropdown-container .ff-input-with-dropdown .ff-floating-label-input-container .ff-floating-input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n.ff-input-with-dropdown-container .ff-input-with-dropdown .ff-floating-label-input-container .ff-floating-input::placeholder {\n opacity: 0;\n}\n.ff-input-with-dropdown-container .ff-input-with-dropdown .ff-floating-label-input-container .ff-floating-input:disabled {\n cursor: not-allowed;\n background: transparent;\n}\n.ff-input-with-dropdown-container .ff-input-with-dropdown .ff-floating-label-input-container .ff-floating-input--error {\n border-color: var(--input-error-text-color);\n}\n.ff-input-with-dropdown-container .ff-input-with-dropdown--no-hover {\n border-color: var(--input-default-border-color);\n}\n.ff-input-with-dropdown-container .ff-input-with-dropdown--disabled {\n cursor: not-allowed;\n opacity: 0.5;\n}\n.ff-input-with-dropdown-container .ff-input-with-dropdown--error {\n border-color: var(--input-error-text-color);\n}\n.ff-input-with-dropdown-container .ff-input-with-dropdown .ff-floating-dropdown {\n min-width: 120px;\n border: none;\n outline: none;\n margin: 0;\n}\n.ff-input-with-dropdown-container .ff-input-with-dropdown .ff-floating-dropdown:disabled {\n cursor: not-allowed;\n}\n.ff-input-with-dropdown-container:hover .ff-input-with-dropdown {\n border-color: var(--input-hover-border-color);\n}\n.ff-input-with-dropdown-container:hover .ff-input-with-dropdown--filled {\n border-color: var(--input-default-border-color);\n}\n.ff-input-with-dropdown-container:hover .ff-input-with-dropdown--disabled {\n border-color: var(--input-default-border-color);\n}\n.ff-input-with-dropdown-container:hover .ff-input-with-dropdown--error {\n border-color: var(--input-error-text-color);\n}\n.ff-input-with-dropdown-container:hover .ff-input-with-dropdown .ff-floating-label {\n color: var(--input-hover-border-color);\n}\n.ff-input-with-dropdown-container:hover .ff-input-with-dropdown .ff-floating-label--filled {\n color: var(--input-default-border-color);\n}\n.ff-input-with-dropdown-container:hover .ff-input-with-dropdown .ff-floating-label--disabled {\n color: var(--input-default-border-color);\n}\n.ff-input-with-dropdown-container:hover .ff-input-with-dropdown .ff-floating-label--error {\n color: var(--input-error-text-color);\n}\n.ff-input-with-dropdown-container:hover .ff-input-with-dropdown .ff-floating-input {\n border-color: var(--input-hover-border-color);\n}\n.ff-input-with-dropdown-container:hover .ff-input-with-dropdown .ff-floating-input--filled {\n border-color: var(--input-default-border-color);\n}\n.ff-input-with-dropdown-container:hover .ff-input-with-dropdown .ff-floating-input--disabled {\n border-color: var(--input-default-border-color);\n}\n.ff-input-with-dropdown-container:hover .ff-input-with-dropdown .ff-floating-input--error {\n border-color: var(--input-error-text-color);\n}\n.ff-input-with-dropdown-container:focus-within .ff-input-with-dropdown {\n border-color: var(--input-active-text-color);\n}\n.ff-input-with-dropdown-container:focus-within .ff-input-with-dropdown--error {\n border-color: var(--input-error-text-color);\n}\n.ff-input-with-dropdown-container:focus-within .ff-input-with-dropdown .ff-floating-label {\n top: -6.5px;\n background-color: var(--input-label-bg-color);\n padding: 0px 2px;\n color: var(--input-active-text-color);\n line-height: 12px;\n font-size: 8px !important;\n}\n.ff-input-with-dropdown-container:focus-within .ff-input-with-dropdown .ff-floating-label--error {\n color: var(--input-error-text-color);\n}\n.ff-input-with-dropdown-container:focus-within .ff-input-with-dropdown .ff-floating-input {\n border-color: var(--input-active-text-color);\n}\n.ff-input-with-dropdown-container:focus-within .ff-input-with-dropdown .ff-floating-input--error {\n border-color: var(--input-error-text-color);\n}\n.ff-input-with-dropdown-container:focus-within .ff-input-with-dropdown .ff-floating-input::placeholder {\n opacity: 1;\n}\n.ff-input-with-dropdown-container--filled .ff-input-with-dropdown .ff-floating-label-input-container {\n border-color: var(--input-active-text-color);\n}\n.ff-input-with-dropdown-container--filled .ff-input-with-dropdown .ff-floating-label-input-container .ff-floating-label {\n top: -6px;\n background-color: var(--input-label-bg-color);\n padding: 0px 2px;\n line-height: 12px;\n font-size: 8px !important;\n}\n.ff-input-with-dropdown-container--filled span {\n font-size: 8px;\n}\n.ff-input-with-dropdown-container--filled .required-asterisk {\n color: var(--input-error-text-color);\n}\n.ff-input-with-dropdown-container .ff-helper-text {\n color: var(--input-error-text-color);\n padding: 0 11px;\n}";
|
7131
|
+
styleInject(css_248z$h);
|
7041
7132
|
|
7042
7133
|
const InputWithDropdown = ({
|
7043
7134
|
name = '',
|
@@ -7117,8 +7208,8 @@ const InputWithDropdown = ({
|
|
7117
7208
|
});
|
7118
7209
|
};
|
7119
7210
|
|
7120
|
-
var css_248z$
|
7121
|
-
styleInject(css_248z$
|
7211
|
+
var css_248z$g = "@font-face {\n font-family: \"Poppins\";\n font-weight: 400;\n src: local(\"Poppins-Regular\"), url(../../fonts/Poppins/Poppins-Regular.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 500;\n src: local(\"Poppins-Medium\"), url(../../fonts/Poppins/Poppins-Medium.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 600;\n src: local(\"Poppins-SemiBold\"), url(../../fonts/Poppins/Poppins-SemiBold.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 700;\n src: local(\"Poppins-Bold\"), url(../../fonts/Poppins/Poppins-Bold.ttf) format(\"truetype\");\n}\n.fontXs {\n font-family: \"Poppins\", sans-serif;\n font-size: 10px;\n}\n\n.fontSm, .ff-radio {\n font-family: \"Poppins\", sans-serif;\n font-size: 12px;\n}\n\n.fontMd {\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\", sans-serif;\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\", sans-serif;\n font-size: 18px;\n}\n\n.font2Xl {\n font-family: \"Poppins\", sans-serif;\n font-size: 24px;\n}\n\n.font-size-8 {\n font-family: \"Poppins\", sans-serif;\n font-size: 8px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\", sans-serif;\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\", sans-serif;\n font-size: 80px;\n}\n\n.ff-radio {\n position: relative;\n color: var(--text-color);\n display: flex;\n align-items: center;\n cursor: pointer;\n}\n.ff-radio .ff-radio-input {\n display: none;\n}\n.ff-radio .ff-radio-custom {\n box-sizing: content-box;\n width: 14px;\n height: 14px;\n border-radius: 50%;\n border: 1px solid var(--radio-button-border);\n position: relative;\n margin-right: 8px;\n transition: border-color background-color;\n}\n.ff-radio .ff-radio-custom::before {\n content: \"\";\n width: 12px;\n height: 12px;\n border-radius: 50%;\n background: #fbfdff;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n transition: background-color 0.3s;\n}\n.ff-radio .ff-radio-custom::after {\n content: \"\";\n width: 16px;\n height: 16px;\n border-radius: 50%;\n border: 4px solid #f7edff;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n opacity: 0;\n transition: opacity 0.3s;\n}\n.ff-radio:hover .ff-radio-custom {\n border: 1px solid var(--brand-color);\n}\n.ff-radio:hover .ff-radio-custom::before {\n background-color: var(--drawer-footer-bg);\n}\n.ff-radio:hover .ff-radio-custom::after {\n opacity: 1;\n transition: opacity 0.3s;\n}\n.ff-radio .ff-radio-input:checked + .ff-radio-custom {\n border-color: var(--brand-color);\n}\n.ff-radio .ff-radio-input:checked + .ff-radio-custom::before {\n background: var(--brand-color);\n height: 12px;\n width: 12px;\n}\n.ff-radio .ff-radio-input:disabled + .ff-radio-custom {\n border: 1px solid var(--radio-button-border);\n}\n.ff-radio .ff-radio-input:disabled + .ff-radio-custom::before {\n background: var(--drawer-footer-bg);\n}\n.ff-radio .ff-radio-input:disabled + .ff-radio-custom::after {\n border: 4px solid var(--radio-button-hover);\n opacity: 0;\n transition: opacity 0.3s;\n}\n.ff-radio .ff-radio-input:checked:disabled + .ff-radio-custom {\n border-color: var(--brand-color);\n background-color: var(--drawer-footer-bg);\n}\n.ff-radio .ff-radio-input:checked:disabled + .ff-radio-custom::before {\n background: var(--brand-color);\n}\n.ff-radio--disabled {\n cursor: default;\n opacity: 0.5;\n}";
|
7212
|
+
styleInject(css_248z$g);
|
7122
7213
|
|
7123
7214
|
const RadioButton = ({
|
7124
7215
|
label,
|
@@ -7146,8 +7237,8 @@ const RadioButton = ({
|
|
7146
7237
|
});
|
7147
7238
|
};
|
7148
7239
|
|
7149
|
-
var css_248z$
|
7150
|
-
styleInject(css_248z$
|
7240
|
+
var css_248z$f = ".ff-radio-group {\n display: flex;\n flex-direction: row;\n gap: 12px;\n}";
|
7241
|
+
styleInject(css_248z$f);
|
7151
7242
|
|
7152
7243
|
const RadioGroup = ({
|
7153
7244
|
options,
|
@@ -7169,8 +7260,8 @@ const RadioGroup = ({
|
|
7169
7260
|
});
|
7170
7261
|
};
|
7171
7262
|
|
7172
|
-
var css_248z$
|
7173
|
-
styleInject(css_248z$
|
7263
|
+
var css_248z$e = ".ff-mini-edit-modal-container {\n width: fit-content;\n padding: 0;\n position: absolute;\n visibility: hidden;\n}\n.ff-mini-edit-modal-container.modalVisible {\n visibility: visible;\n}\n.ff-mini-edit-modal-container.animatedModal {\n animation: slideDown 0.5s ease, opacity 0.5s ease;\n}\n.ff-mini-edit-modal-container .popover-arrow {\n position: absolute;\n width: 0;\n height: 0;\n border-style: solid;\n z-index: 5;\n}\n.ff-mini-edit-modal-container .popover-arrow.popover-arrow-top {\n bottom: 100%;\n left: 30px;\n border-width: 0 10px 10px 10px;\n border-color: transparent transparent var(--ff-mini-modal-border) transparent;\n filter: drop-shadow(0 -2px 1px var(--ff-mini-modal-box-shadow));\n}\n.ff-mini-edit-modal-container .popover-arrow.popover-arrow-left {\n left: -15px;\n border-width: 10px 10px 10px 0;\n border-color: transparent var(--ff-mini-modal-border) transparent transparent;\n filter: drop-shadow(-2px 0 1px var(--ff-mini-modal-box-shadow));\n}\n.ff-mini-edit-modal-container .popover-arrow.popover-arrow-bottom {\n top: 100%;\n left: 30px;\n border-width: 10px 10px 0 10px;\n border-color: var(--ff-mini-modal-border) transparent transparent transparent;\n filter: drop-shadow(0 2px 1px var(--ff-mini-modal-box-shadow));\n}\n.ff-mini-edit-modal-container .popover-arrow.popover-arrow-right {\n right: -10px;\n top: 75px;\n border-width: 10px 0 10px 10px;\n border-color: transparent transparent transparent var(--ff-mini-modal-border);\n filter: drop-shadow(2px 0 1px var(--ff-mini-modal-box-shadow));\n}\n.ff-mini-edit-modal-container .popover-arrow.left-top-arrow {\n top: 10%;\n}\n.ff-mini-edit-modal-container .popover-arrow.left-middle-arrow {\n top: 50%;\n}\n.ff-mini-edit-modal-container .wrapped-div {\n width: 35px;\n height: 35px;\n background-color: transparent;\n outline: 8px solid var(--ff-mini-modal-border);\n outline-offset: -8px;\n position: absolute;\n top: -34px;\n z-index: 10;\n border-radius: 7px 7px 0 0;\n box-shadow: 0px -3px 4px 0px var(--ff-mini-modal-box-shadow);\n}\n.ff-mini-edit-modal-container .wrapped-div::before, .ff-mini-edit-modal-container .wrapped-div::after {\n position: absolute;\n content: \"\";\n width: 13px;\n height: 13px;\n background: transparent;\n border-radius: 50%;\n bottom: 0;\n box-shadow: 8px 4px 0 var(--ff-mini-modal-border);\n}\n.ff-mini-edit-modal-container .wrapped-div::before {\n left: -13px;\n clip-path: polygon(100% 100%, 110% 45%, 0% 70%, 0% 100%);\n}\n.ff-mini-edit-modal-container .wrapped-div::after {\n right: -13px;\n clip-path: polygon(-5% 100%, 0% 40%, 100% 70%, 100% 100%);\n box-shadow: -8px 4px 0 var(--ff-mini-modal-border);\n}\n.ff-mini-edit-modal-container .mini-edit-modal {\n background: var(--ff-mini-modal-border);\n position: relative;\n max-height: fit-content;\n z-index: 2;\n padding: 4px;\n width: 100%;\n border-radius: 7px;\n margin: 0 0 0 -5px;\n height: 100%;\n box-shadow: 0px 0px 4px 0px var(--ff-mini-modal-box-shadow);\n}\n.ff-mini-edit-modal-container .mini-edit-modal header {\n border-radius: 4px 4px 0 0;\n}\n.ff-mini-edit-modal-container .mini-edit-modal footer {\n border-radius: 0 0 4px 4px;\n}\n.ff-mini-edit-modal-container .modal-content {\n max-height: 250px;\n overflow-y: auto;\n}\n.ff-mini-edit-modal-container .modal-footer {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 5px;\n background-color: var(--ff-mini-modal-footer-background);\n height: 24px;\n padding: 0 10px 0 0;\n transition: transform 0.3s ease-in-out;\n}\n@keyframes slideDown {\n 0% {\n transform: translateY(-50px);\n opacity: 0;\n }\n 100% {\n transform: translateY(0);\n opacity: 1;\n }\n}\n\n.ff-mini-modal-buttons-flex {\n display: flex;\n}\n\n.ff-mini-modal-gap-10 {\n gap: 10px;\n}";
|
7264
|
+
styleInject(css_248z$e);
|
7174
7265
|
|
7175
7266
|
const MiniModal = /*#__PURE__*/forwardRef(({
|
7176
7267
|
anchorRef,
|
@@ -7340,58 +7431,8 @@ const MiniModal = /*#__PURE__*/forwardRef(({
|
|
7340
7431
|
}), document.body);
|
7341
7432
|
});
|
7342
7433
|
|
7343
|
-
var css_248z$
|
7344
|
-
styleInject(css_248z$
|
7345
|
-
|
7346
|
-
const Checkbox = ({
|
7347
|
-
id,
|
7348
|
-
name,
|
7349
|
-
label,
|
7350
|
-
disabled = false,
|
7351
|
-
checked: initialChecked = false,
|
7352
|
-
partial = false,
|
7353
|
-
onChange
|
7354
|
-
}) => {
|
7355
|
-
const [checked, setChecked] = useState(initialChecked);
|
7356
|
-
useEffect(() => {
|
7357
|
-
setChecked(initialChecked);
|
7358
|
-
}, [initialChecked]);
|
7359
|
-
const handleCheckboxChange = event => {
|
7360
|
-
if (!disabled) {
|
7361
|
-
setChecked(prev => !prev), onChange?.(event);
|
7362
|
-
}
|
7363
|
-
};
|
7364
|
-
return jsxs("label", {
|
7365
|
-
className: "ff-checkbox--overlay",
|
7366
|
-
htmlFor: id,
|
7367
|
-
children: [jsx("input", {
|
7368
|
-
type: "checkbox",
|
7369
|
-
className: "ff-checkbox-input",
|
7370
|
-
id: id,
|
7371
|
-
name: name,
|
7372
|
-
checked: checked,
|
7373
|
-
onChange: handleCheckboxChange,
|
7374
|
-
disabled: disabled
|
7375
|
-
}), jsx("span", {
|
7376
|
-
className: classNames('ff-checkbox-custom', {
|
7377
|
-
'ff-checkbox-checked': checked,
|
7378
|
-
'ff-storybook-checkbox--partial': partial && !checked
|
7379
|
-
}),
|
7380
|
-
children: checked && jsx(Icon, {
|
7381
|
-
name: "tick",
|
7382
|
-
height: 6,
|
7383
|
-
width: 8,
|
7384
|
-
color: "var(--primary-icon-color)"
|
7385
|
-
})
|
7386
|
-
}), jsx(Typography, {
|
7387
|
-
as: "label",
|
7388
|
-
children: label
|
7389
|
-
})]
|
7390
|
-
});
|
7391
|
-
};
|
7392
|
-
|
7393
|
-
var css_248z$8 = "@font-face {\n font-family: \"Poppins\";\n font-weight: 400;\n src: local(\"Poppins-Regular\"), url(../../fonts/Poppins/Poppins-Regular.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 500;\n src: local(\"Poppins-Medium\"), url(../../fonts/Poppins/Poppins-Medium.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 600;\n src: local(\"Poppins-SemiBold\"), url(../../fonts/Poppins/Poppins-SemiBold.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 700;\n src: local(\"Poppins-Bold\"), url(../../fonts/Poppins/Poppins-Bold.ttf) format(\"truetype\");\n}\n.fontXs {\n font-family: \"Poppins\", sans-serif;\n font-size: 10px;\n}\n\n.fontSm, .ff-tree-container {\n font-family: \"Poppins\", sans-serif;\n font-size: 12px;\n}\n\n.fontMd {\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\", sans-serif;\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\", sans-serif;\n font-size: 18px;\n}\n\n.font2Xl {\n font-family: \"Poppins\", sans-serif;\n font-size: 24px;\n}\n\n.font-size-8 {\n font-family: \"Poppins\", sans-serif;\n font-size: 8px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\", sans-serif;\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\", sans-serif;\n font-size: 80px;\n}\n\n.ff-tree-container {\n width: 100%;\n font-size: 12px;\n color: var(--brand-color);\n transition: all 0.3s ease;\n}\n.ff-tree-container table {\n border-collapse: collapse;\n width: 100%;\n text-align: left;\n}\n.ff-tree-container .ff-toggle-arrow-icon {\n height: 12px;\n width: 12px;\n margin-left: 8px;\n display: grid;\n place-items: center;\n transform: rotate(0deg);\n}\n.ff-tree-container .ff-toggle-arrow-icon svg path {\n fill: var(--brand-color);\n}\n.ff-tree-container .ff-toggle-arrow-icon.ff-expanded {\n transform: rotate(0deg);\n}\n.ff-tree-container .ff-toggle-arrow-icon.ff-collapsed {\n transform: rotate(-90deg);\n}\n.ff-tree-container th,\n.ff-tree-container td {\n padding: 0 8px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.ff-tree-container th {\n vertical-align: middle;\n height: 32px;\n background-color: var(--slider-table-color);\n color: var(--text-color);\n font-weight: 600;\n text-transform: uppercase;\n}\n.ff-tree-container tr .ff-action-section {\n display: none;\n}\n.ff-tree-container tr:hover {\n background-color: var(--hover-color);\n}\n.ff-tree-container tr:hover .ff-action-section {\n display: block;\n}\n.ff-tree-container .ff-title-container {\n display: flex;\n align-items: center;\n gap: 4px;\n}\n.ff-tree-container .ff-title-container .ff-toggle-folder {\n display: flex;\n cursor: pointer;\n}\n.ff-tree-container .ff-title-container.ff-folder {\n font-weight: 600;\n}\n.ff-tree-container .ff-title-container.ff-file {\n font-weight: 400;\n}\n.ff-tree-container .ff-title-container .ff-title {\n display: flex;\n gap: 4px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-weight: 400;\n cursor: pointer;\n}\n.ff-tree-container .ff-title-container .ff-title .ff-hover-icon {\n display: none;\n position: absolute;\n right: 10px;\n}\n.ff-tree-container .ff-node-li {\n position: relative;\n --indent-size: 16px;\n --total-children-height: var(--node-height);\n}\n.ff-tree-container .ff-node-li td:first-child {\n padding-left: calc(var(--level) * var(--indent-size));\n height: 32px;\n}\n.ff-tree-container .ff-node-li::before {\n content: \"\";\n position: absolute;\n top: 0;\n left: calc(var(--level) * var(--indent-size) - 4px);\n width: 1px;\n height: calc(var(--total-children-height));\n background-color: var(--tree-connecting-lines-color);\n z-index: 1;\n}\n.ff-tree-container .ff-node-li::after {\n content: \"\";\n position: absolute;\n top: 50%;\n left: calc(var(--level) * var(--indent-size) - 4px);\n width: 12px;\n height: 1px;\n background-color: var(--tree-connecting-lines-color);\n z-index: 1;\n}\n.ff-tree-container .ff-node-li.ff-is-last::before {\n height: calc(var(--node-height) / 2);\n}\n.ff-tree-container .ff-node-li[style*=\"--level: 0\"]::before, .ff-tree-container .ff-node-li[style*=\"--level: 0\"]::after {\n content: none;\n}";
|
7394
|
-
styleInject(css_248z$8);
|
7434
|
+
var css_248z$d = "@font-face {\n font-family: \"Poppins\";\n font-weight: 400;\n src: local(\"Poppins-Regular\"), url(../../fonts/Poppins/Poppins-Regular.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 500;\n src: local(\"Poppins-Medium\"), url(../../fonts/Poppins/Poppins-Medium.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 600;\n src: local(\"Poppins-SemiBold\"), url(../../fonts/Poppins/Poppins-SemiBold.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 700;\n src: local(\"Poppins-Bold\"), url(../../fonts/Poppins/Poppins-Bold.ttf) format(\"truetype\");\n}\n.fontXs {\n font-family: \"Poppins\", sans-serif;\n font-size: 10px;\n}\n\n.fontSm, .ff-tree-container {\n font-family: \"Poppins\", sans-serif;\n font-size: 12px;\n}\n\n.fontMd {\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\", sans-serif;\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\", sans-serif;\n font-size: 18px;\n}\n\n.font2Xl {\n font-family: \"Poppins\", sans-serif;\n font-size: 24px;\n}\n\n.font-size-8 {\n font-family: \"Poppins\", sans-serif;\n font-size: 8px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\", sans-serif;\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\", sans-serif;\n font-size: 80px;\n}\n\n.ff-tree-container {\n width: 100%;\n font-size: 12px;\n color: var(--brand-color);\n transition: all 0.3s ease;\n}\n.ff-tree-container table {\n border-collapse: collapse;\n width: 100%;\n text-align: left;\n}\n.ff-tree-container .ff-toggle-arrow-icon {\n height: 12px;\n width: 12px;\n margin-left: 8px;\n display: grid;\n place-items: center;\n transform: rotate(0deg);\n}\n.ff-tree-container .ff-toggle-arrow-icon svg path {\n fill: var(--brand-color);\n}\n.ff-tree-container .ff-toggle-arrow-icon.ff-expanded {\n transform: rotate(0deg);\n}\n.ff-tree-container .ff-toggle-arrow-icon.ff-collapsed {\n transform: rotate(-90deg);\n}\n.ff-tree-container th,\n.ff-tree-container td {\n padding: 0 8px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.ff-tree-container th {\n vertical-align: middle;\n height: 32px;\n background-color: var(--slider-table-color);\n color: var(--text-color);\n font-weight: 600;\n text-transform: uppercase;\n}\n.ff-tree-container tr .ff-action-section {\n display: none;\n}\n.ff-tree-container tr:hover {\n background-color: var(--hover-color);\n}\n.ff-tree-container tr:hover .ff-action-section {\n display: block;\n}\n.ff-tree-container .ff-title-container {\n display: flex;\n align-items: center;\n gap: 4px;\n}\n.ff-tree-container .ff-title-container .ff-toggle-folder {\n display: flex;\n cursor: pointer;\n}\n.ff-tree-container .ff-title-container.ff-folder {\n font-weight: 600;\n}\n.ff-tree-container .ff-title-container.ff-file {\n font-weight: 400;\n}\n.ff-tree-container .ff-title-container .ff-title {\n display: flex;\n gap: 4px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-weight: 400;\n cursor: pointer;\n}\n.ff-tree-container .ff-title-container .ff-title .ff-hover-icon {\n display: none;\n position: absolute;\n right: 10px;\n}\n.ff-tree-container .ff-node-li {\n position: relative;\n --indent-size: 16px;\n --total-children-height: var(--node-height);\n}\n.ff-tree-container .ff-node-li td:first-child {\n padding-left: calc(var(--level) * var(--indent-size));\n height: 32px;\n}\n.ff-tree-container .ff-node-li::before {\n content: \"\";\n position: absolute;\n top: 0;\n left: calc(var(--level) * var(--indent-size) - 4px);\n width: 1px;\n height: calc(var(--total-children-height));\n background-color: var(--tree-connecting-lines-color);\n z-index: 1;\n}\n.ff-tree-container .ff-node-li::after {\n content: \"\";\n position: absolute;\n top: 50%;\n left: calc(var(--level) * var(--indent-size) - 4px);\n width: 12px;\n height: 1px;\n background-color: var(--tree-connecting-lines-color);\n z-index: 1;\n}\n.ff-tree-container .ff-node-li.ff-is-last::before {\n height: calc(var(--node-height) / 2);\n}\n.ff-tree-container .ff-node-li[style*=\"--level: 0\"]::before, .ff-tree-container .ff-node-li[style*=\"--level: 0\"]::after {\n content: none;\n}";
|
7435
|
+
styleInject(css_248z$d);
|
7395
7436
|
|
7396
7437
|
const TableTree = ({
|
7397
7438
|
columnsData,
|
@@ -7550,8 +7591,8 @@ const TableTree = ({
|
|
7550
7591
|
});
|
7551
7592
|
};
|
7552
7593
|
|
7553
|
-
var css_248z$
|
7554
|
-
styleInject(css_248z$
|
7594
|
+
var css_248z$c = ":root {\n --tooltip-bg-color: #1e161f;\n --status-approved-text-color: #016102;\n --status-warning-text-color: #ff8b00;\n --status-rejected-text-color: #c60202;\n --status-skipped-text-color: #3c3838;\n --status-approved-bg-color: #c6efcd;\n --status-rejected-bg-color: #f7d9d9;\n --status-warning-bg-color: #fae2c6;\n --status-skipped-bg-color: #c4c3c3;\n --brand-color: #71347b;\n --icons-default-color: #71347b;\n --default-icon-color: #a3a3a3;\n --default-color: #747474;\n --primary-icon-color: #ffffff;\n --secondary-icon-color: #71347b;\n --system-color--error: #c50303;\n --hover-color: #f7ebff;\n --brand2-color: #610b86;\n --status-warning-hover-bg-color: #fcd8ac;\n --status-percentage-growth-bg-color: #ecedf8;\n --primary-icon-color: #ffffff;\n --secondary-icon-color: #71347b;\n --description-text-color:#d9d9d9;\n --expandable-menu-default-bg: #fdfaff;\n --expandable-menu-option-bg: rgba(97, 11, 134, 0.1019607843);\n --text-color: #1e161f;\n --file-dropzone-default-color: rgba(113, 52, 123, 0.1019607843);\n --file-dropzone-selected-color: rgba(113, 52, 123, 0.2);\n --file-details-container-shadow: rgba(30, 22, 31, 0.1607843137);\n --file-details-bg: #ffffff;\n --error-light: #e42525;\n --tabs-label-default-color: tabs-label-default-color;\n --tabs-label-active-color: tabs-label-active-color;\n --tabs-border-color: tabs-border-color;\n --tabs-bg-color: tabs-bg-color;\n --tab-bg-color: tab-bg-color;\n --toggle-button-bg-color: #ffffff;\n --toggle-strip-shadow: rgba(0, 0, 0, 0.2509803922);\n --toggle-strip-color: #cfd1e2;\n --disable-color: rgba(113, 52, 123, 0.5019607843);\n --toggle-strip-color: #cfd1e2;\n --add-icon-hover-color: #431b4a;\n --arrows-button-border-color: #ded1e5;\n --arrow-button-bg-color: #ffffff;\n --text-bg-highlight:#f5fb00;\n --slider-table-color: #efe1f9;\n}\n\n@font-face {\n font-family: \"Poppins\";\n font-weight: 400;\n src: local(\"Poppins-Regular\"), url(../../fonts/Poppins/Poppins-Regular.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 500;\n src: local(\"Poppins-Medium\"), url(../../fonts/Poppins/Poppins-Medium.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 600;\n src: local(\"Poppins-SemiBold\"), url(../../fonts/Poppins/Poppins-SemiBold.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 700;\n src: local(\"Poppins-Bold\"), url(../../fonts/Poppins/Poppins-Bold.ttf) format(\"truetype\");\n}\n.fontXs {\n font-family: \"Poppins\", sans-serif;\n font-size: 10px;\n}\n\n.fontSm {\n font-family: \"Poppins\", sans-serif;\n font-size: 12px;\n}\n\n.fontMd {\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\", sans-serif;\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\", sans-serif;\n font-size: 18px;\n}\n\n.font2Xl {\n font-family: \"Poppins\", sans-serif;\n font-size: 24px;\n}\n\n.font-size-8 {\n font-family: \"Poppins\", sans-serif;\n font-size: 8px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\", sans-serif;\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\", sans-serif;\n font-size: 80px;\n}\n\n.ff-tabs-container {\n box-sizing: border-box;\n}\n.ff-tabs-container .ff-tab-row--default {\n display: flex;\n gap: 8px;\n border: 1px solid var(--tabs-border-color);\n border-radius: 8px 8px 0 0;\n padding: 7px 8px 0;\n}\n.ff-tabs-container .ff-tab-row--default .ff-tab-button--default {\n border: none;\n background: none;\n padding: 0 4px;\n display: flex;\n flex-direction: column;\n cursor: pointer;\n}\n.ff-tabs-container .ff-tab-row--default .ff-tab-button--default .ff-tab-label {\n padding-bottom: 4px;\n}\n.ff-tabs-container .ff-tab-row--default .ff-tab-button--default .ff-tab-bar {\n width: 100%;\n border-radius: 2px 2px 0 0;\n}\n.ff-tabs-container .ff-tab-row--default .ff-tab-button--default .ff-tab-bar--active {\n border-top: 2px solid var(--tabs-label-active-color);\n}\n.ff-tabs-container .ff-tab-row--default .ff-tab-button--default.disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n.ff-tabs-container .ff-tab-row--capsule {\n display: flex;\n gap: 8px;\n border: 1px solid var(--tabs-border-color);\n border-radius: 8px;\n padding: 3px 4px;\n background-color: var(--tabs-bg-color);\n}\n.ff-tabs-container .ff-tab-row--capsule .ff-tab-button--capsule {\n background: transparent;\n border: none;\n padding: 3px 4px;\n border-radius: 4px;\n cursor: pointer;\n}\n.ff-tabs-container .ff-tab-row--capsule .ff-tab-button--capsule.active {\n background-color: var(--tab-bg-color);\n}\n.ff-tabs-container .ff-tab-row--capsule .ff-tab-button--capsule .ff-tab-bar {\n display: none;\n}\n.ff-tabs-container .ff-tab-row--no-border {\n border: none;\n}\n.ff-tabs-container .ff-tab-content {\n width: inherit;\n}";
|
7595
|
+
styleInject(css_248z$c);
|
7555
7596
|
|
7556
7597
|
const Tabs = ({
|
7557
7598
|
variant = 'default',
|
@@ -7602,8 +7643,8 @@ const Tabs = ({
|
|
7602
7643
|
});
|
7603
7644
|
};
|
7604
7645
|
|
7605
|
-
var css_248z$
|
7606
|
-
styleInject(css_248z$
|
7646
|
+
var css_248z$b = ".ff-highlight-bg {\n background-color: var(--text-bg-highlight);\n}";
|
7647
|
+
styleInject(css_248z$b);
|
7607
7648
|
|
7608
7649
|
// Function to escape special characters in the search term
|
7609
7650
|
const escapeRegExp = text => {
|
@@ -7626,8 +7667,8 @@ const HighlightText = ({
|
|
7626
7667
|
});
|
7627
7668
|
};
|
7628
7669
|
|
7629
|
-
var css_248z$
|
7630
|
-
styleInject(css_248z$
|
7670
|
+
var css_248z$a = "@font-face {\n font-family: \"Poppins\";\n font-weight: 400;\n src: local(\"Poppins-Regular\"), url(../../fonts/Poppins/Poppins-Regular.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 500;\n src: local(\"Poppins-Medium\"), url(../../fonts/Poppins/Poppins-Medium.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 600;\n src: local(\"Poppins-SemiBold\"), url(../../fonts/Poppins/Poppins-SemiBold.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 700;\n src: local(\"Poppins-Bold\"), url(../../fonts/Poppins/Poppins-Bold.ttf) format(\"truetype\");\n}\n.fontXs, .ff-search-container .ff-search-input {\n font-family: \"Poppins\", sans-serif;\n font-size: 10px;\n}\n\n.fontSm {\n font-family: \"Poppins\", sans-serif;\n font-size: 12px;\n}\n\n.fontMd {\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\", sans-serif;\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\", sans-serif;\n font-size: 18px;\n}\n\n.font2Xl {\n font-family: \"Poppins\", sans-serif;\n font-size: 24px;\n}\n\n.font-size-8 {\n font-family: \"Poppins\", sans-serif;\n font-size: 8px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\", sans-serif;\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\", sans-serif;\n font-size: 80px;\n}\n\n.ff-search-container {\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n.ff-search-container .ff-search-icon {\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n border: 1px solid var(--border-color);\n border-radius: 4px;\n padding: 4px;\n}\n.ff-search-container .ff-search-icon .ff-icon-container svg path {\n fill: var(--brand-color);\n}\n.ff-search-container .ff-search-input {\n border: none;\n color: var(--tooltip-bg-color);\n line-height: 12px;\n visibility: hidden;\n transition: width 0.4s ease;\n}\n.ff-search-container .ff-search-input:focus {\n outline: none;\n border: none;\n}\n.ff-search-container .ff-search-input:hover {\n border: none;\n}\n.ff-search-container.disabled {\n opacity: 0.5;\n}\n.ff-search-container.expanded {\n border: 1px solid var(--border-color);\n border-radius: 4px;\n}\n.ff-search-container.expanded .ff-vertical-line {\n height: 8px;\n width: 1px;\n position: relative;\n right: 2px;\n border-radius: 1px;\n margin: 8px 0px;\n background-color: var(--border-color);\n}\n.ff-search-container.expanded .ff-search-input {\n visibility: visible;\n}\n.ff-search-container.expanded .ff-search-input::placeholder {\n color: var(--ff-search-filed-placeholder-text);\n}\n.ff-search-container.expanded .ff-search-icon {\n padding: 4px;\n border: none;\n cursor: default;\n}\n.ff-search-container.expanded .ff-search-clear-button {\n display: grid;\n place-items: center;\n cursor: pointer;\n width: 22px;\n}\n.ff-search-container.expanded .ff-search-close-icon {\n margin: 4px;\n cursor: pointer;\n}\n.ff-search-container.expanded .ff-search-close-icon .ff-icon-container svg path {\n fill: var(--ff-search-filed-close-Icon);\n}";
|
7671
|
+
styleInject(css_248z$a);
|
7631
7672
|
|
7632
7673
|
const Search = ({
|
7633
7674
|
placeholder = 'Search',
|
@@ -15631,8 +15672,8 @@ const TimePicker = ({
|
|
15631
15672
|
});
|
15632
15673
|
};
|
15633
15674
|
|
15634
|
-
var css_248z$4 = "@import 'react-day-picker/style.css';\n@font-face {\n font-family: \"Poppins\";\n font-weight: 400;\n src: local(\"Poppins-Regular\"), url(../../fonts/Poppins/Poppins-Regular.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 500;\n src: local(\"Poppins-Medium\"), url(../../fonts/Poppins/Poppins-Medium.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 600;\n src: local(\"Poppins-SemiBold\"), url(../../fonts/Poppins/Poppins-SemiBold.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 700;\n src: local(\"Poppins-Bold\"), url(../../fonts/Poppins/Poppins-Bold.ttf) format(\"truetype\");\n}\n.fontXs, .ff-date-picker .ff-datepicker-input-container .ff-input-with-icon .ff-date-input,\n.ff-date-picker .ff-datepicker-input-container .ff-input-with-icon .ff-time-input {\n font-family: \"Poppins\", sans-serif;\n font-size: 10px;\n}\n\n.fontSm, .ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-input-container .ff-time-input {\n font-family: \"Poppins\", sans-serif;\n font-size: 12px;\n}\n\n.fontMd {\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\", sans-serif;\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\", sans-serif;\n font-size: 18px;\n}\n\n.font2Xl {\n font-family: \"Poppins\", sans-serif;\n font-size: 24px;\n}\n\n.font-size-8, .ff-date-picker .ff-datepicker-input-container .ff-date-input-field .ff-date-input-message {\n font-family: \"Poppins\", sans-serif;\n font-size: 8px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\", sans-serif;\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\", sans-serif;\n font-size: 80px;\n}\n\n/* Custom date picker styling */\n.ff-date-picker {\n position: relative;\n}\n.ff-date-picker .rdp-root {\n --rdp-accent-color: var(--brand-color);\n --rdp-day-height: 24px;\n --rdp-day-width: 36px;\n font-family: \"Poppins\", sans-serif;\n font-size: 12px;\n --rdp-font-family: \"Poppins\", sans-serif;\n}\n.ff-date-picker .ff-cursor-pointer {\n cursor: pointer;\n}\n.ff-date-picker .ff-datepicker-input-container {\n display: flex;\n gap: 10px;\n}\n.ff-date-picker .ff-datepicker-input-container .ff-input-with-icon {\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n}\n.ff-date-picker .ff-datepicker-input-container .ff-input-with-icon .ff-date-input,\n.ff-date-picker .ff-datepicker-input-container .ff-input-with-icon .ff-time-input {\n padding: 4px 8px;\n padding-left: 2rem;\n height: 32px;\n border-radius: 5px;\n border: 1px solid var(--border-color);\n color: var(--status-skipped-text-color);\n line-height: 15px;\n box-sizing: border-box;\n}\n.ff-date-picker .ff-datepicker-input-container .ff-input-with-icon .ff-date-input:focus,\n.ff-date-picker .ff-datepicker-input-container .ff-input-with-icon .ff-time-input:focus {\n outline: none;\n}\n.ff-date-picker .ff-datepicker-input-container .ff-input-with-icon .ff-calendar-icon,\n.ff-date-picker .ff-datepicker-input-container .ff-input-with-icon .ff-clock-icon {\n position: absolute;\n transform: translate(50%, 50%);\n display: flex;\n align-items: center;\n pointer-events: none;\n}\n.ff-date-picker .ff-datepicker-input-container .ff-date-input-field {\n flex: 1;\n}\n.ff-date-picker .ff-datepicker-input-container .ff-date-input-field .ff-date-input {\n width: 100%;\n}\n.ff-date-picker .ff-datepicker-input-container .ff-date-input-field .ff-date-input-message {\n padding: 0px 4px;\n margin-left: 8px;\n line-height: 12px;\n}\n.ff-date-picker .ff-datepicker-input-container .ff-date-input-field .ff-date-input-message--danger {\n color: var(--input-error-text-color);\n}\n.ff-date-picker .ff-datepicker-input-container .ff-time-input-field {\n flex: 0 0 120px;\n}\n.ff-date-picker .ff-datepicker-input-container .ff-time-input-field .ff-time-input {\n width: 100%;\n}\n.ff-date-picker .ff-date-picker-container {\n display: flex;\n flex-direction: column;\n position: absolute;\n border-radius: 8px;\n padding: 4px;\n box-sizing: border-box;\n background-color: var(--tab-bg-color);\n box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.2);\n gap: 8px;\n z-index: 10;\n}\n.ff-date-picker .ff-date-picker-container .ff-calendar-container {\n display: flex;\n align-items: flex-start;\n gap: 4px;\n height: 240px;\n}\n.ff-date-picker .ff-date-picker-container .ff-date-picker-controls {\n padding: 4px;\n display: flex;\n justify-content: end;\n gap: 8px;\n border-top: 1px solid var(--border-color);\n}\n.ff-date-picker .ff-date-picker-container .ff-date-picker-controls .ff-date-picker-button {\n font-weight: 600;\n line-height: 15px;\n}\n.ff-date-picker .ff-calendar .ff-calendar-nav-button {\n margin: 0 5px;\n border: 1px solid var(--border-color);\n background-color: var(--toggle-button-bg-color);\n box-shadow: 0 -2px 2px 0 var(--ff-mini-modal-box-shadow);\n padding: 4px;\n border-radius: 30%;\n cursor: pointer;\n}\n.ff-date-picker .ff-calendar .ff-calendar-nav-button:disabled {\n cursor: auto;\n opacity: 0.5;\n}\n.ff-date-picker .ff-calendar .ff-calendar-haeder {\n display: flex;\n align-items: center;\n gap: 5px;\n color: var(--text-color);\n}\n.ff-date-picker .ff-calendar .ff-custom-year_grid,\n.ff-date-picker .ff-calendar .ff-custom-month_grid {\n width: calc((var(--rdp-day-width) + 4px) * 7);\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n gap: 10px;\n padding: 5px;\n max-width: 100%;\n}\n.ff-date-picker .ff-calendar .ff-custom-year_grid .ff-custom-year,\n.ff-date-picker .ff-calendar .ff-custom-year_grid .ff-custom-month,\n.ff-date-picker .ff-calendar .ff-custom-month_grid .ff-custom-year,\n.ff-date-picker .ff-calendar .ff-custom-month_grid .ff-custom-month {\n padding: 10px 0;\n text-align: center;\n cursor: pointer;\n border-radius: 8px;\n background-color: #f9f9f9;\n}\n.ff-date-picker .ff-calendar .ff-custom-year_grid .ff-custom-year--selected,\n.ff-date-picker .ff-calendar .ff-custom-year_grid .ff-custom-month--selected,\n.ff-date-picker .ff-calendar .ff-custom-month_grid .ff-custom-year--selected,\n.ff-date-picker .ff-calendar .ff-custom-month_grid .ff-custom-month--selected {\n background-color: var(--brand-color);\n color: var(--primary-button-text-color);\n}\n.ff-date-picker .ff-calendar .rdp-weekdays th {\n color: #6f7c8e;\n font-weight: 400;\n}\n.ff-date-picker .ff-calendar .rdp-day {\n padding: 2px;\n font-weight: 500;\n}\n.ff-date-picker .ff-calendar .rdp-day_button {\n border-radius: 4px;\n padding: 3px 9px;\n}\n.ff-date-picker .ff-calendar .rdp-day_button:hover {\n background-color: var(--hover-color);\n}\n.ff-date-picker .ff-calendar .rdp-selected {\n font: inherit;\n}\n.ff-date-picker .ff-calendar .rdp-selected .rdp-day_button {\n background: var(--rdp-accent-color);\n color: var(--drawer-footer-bg);\n border: none;\n}\n.ff-date-picker .ff-calendar .rdp-today:not(.rdp-outside) .rdp-day_button {\n border: 2px solid var(--rdp-accent-color);\n}\n.ff-date-picker .ff-time-picker-container {\n position: relative;\n width: 150px;\n height: 100%;\n overflow-y: hidden;\n border-left: 1px solid #ccc;\n padding: 10px 5px;\n box-sizing: border-box;\n}\n.ff-date-picker .ff-time-picker-container::-webkit-scrollbar {\n display: none;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields {\n display: flex;\n height: 14%;\n width: 100%;\n margin-bottom: 5px;\n box-sizing: border-box;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-input-container {\n display: flex;\n border: 1px solid var(--border-color);\n border-right: 0;\n border-radius: 4px 0 0 4px;\n width: 55%;\n position: relative;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-input-container .ff-time-input {\n border: none;\n padding: 5px;\n width: 100%;\n text-align: center;\n border-radius: 4px 0 0 4px;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-input-container .ff-time-input::placeholder {\n opacity: 0;\n line-height: 18px;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-input-container .ff-time-input-label {\n position: absolute;\n left: 10px;\n top: 50%;\n transform: translateY(-50%);\n transition: 0.2s ease all;\n color: var(--input-default-label-color);\n pointer-events: none;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-input-container--float .ff-time-input-label {\n top: 0;\n left: 5px;\n color: var(--brand-color);\n background-color: var(--input-label-bg-color);\n line-height: 12px;\n padding: 0 2px;\n font-size: 8px !important;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-input-container--float .ff-time-input-label--danger {\n color: var(--input-error-text-color);\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-input-container:hover {\n border-color: var(--input-hover-border-color);\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-input-container:focus-within {\n border-color: var(--brand-color);\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-input-container:focus-within .ff-time-input-label {\n top: 0;\n left: 5px;\n color: var(--brand-color);\n background-color: var(--input-label-bg-color);\n line-height: 12px;\n padding: 0 2px;\n font-size: 8px !important;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-input-container:focus-within .ff-time-input-label--danger {\n color: var(--input-error-text-color);\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-input-container:focus-within .ff-time-input::placeholder {\n opacity: 1;\n margin-bottom: 1px;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-input-container--danger {\n border-color: var(--input-error-text-color) !important;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-input-container .ff-time-input:focus {\n outline: none;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-period-container {\n position: relative;\n width: 45%;\n display: flex;\n border: 1px solid var(--border-color);\n border-radius: 0 4px 4px 0;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-period-container .ff-time-period-select {\n display: flex;\n align-items: center;\n padding: 0 5px;\n width: 100%;\n border-radius: 4px;\n background-color: white;\n cursor: pointer;\n border: none;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-period-container--active {\n border-color: var(--brand-color) !important;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-period-container:hover {\n border-color: var(--input-hover-border-color);\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-period-container .ff-time-period-icon {\n margin-left: auto;\n pointer-events: none;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-period-container .ff-time-period-options {\n position: fixed;\n z-index: 100;\n min-width: 60px;\n margin: 4px 0 0;\n padding: 0;\n list-style: none;\n border: 1px solid var(--ff-select-background-color);\n border-radius: 4px;\n background-color: var(--primary-button-text-color);\n box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-period-container .ff-option-item {\n padding: 8px;\n color: var(--text-color);\n border-radius: 4px;\n cursor: pointer;\n transition: background-color 0.2s ease;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-period-container .ff-option-item:hover {\n background-color: var(--ff-select-option-hover-color);\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-options {\n height: 86%;\n overflow-y: auto;\n padding-right: 5px;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-options::-webkit-scrollbar {\n width: 4px;\n height: 12px;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-options::-webkit-scrollbar-thumb {\n background-color: var(--ff-select-scroll-thumb-color);\n border-radius: 4px;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-options::-webkit-scrollbar-track {\n background-color: var(--hover-color);\n border-radius: 4px;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-options .ff-time-option {\n padding: 10px 12px;\n cursor: pointer;\n text-align: center;\n border-radius: 8px;\n background-color: rgb(249, 249, 249);\n margin: 10px 0;\n}";
|
15635
|
-
styleInject(css_248z$
|
15675
|
+
var css_248z$9 = "@import 'react-day-picker/style.css';\n@font-face {\n font-family: \"Poppins\";\n font-weight: 400;\n src: local(\"Poppins-Regular\"), url(../../fonts/Poppins/Poppins-Regular.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 500;\n src: local(\"Poppins-Medium\"), url(../../fonts/Poppins/Poppins-Medium.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 600;\n src: local(\"Poppins-SemiBold\"), url(../../fonts/Poppins/Poppins-SemiBold.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 700;\n src: local(\"Poppins-Bold\"), url(../../fonts/Poppins/Poppins-Bold.ttf) format(\"truetype\");\n}\n.fontXs, .ff-date-picker .ff-datepicker-input-container .ff-input-with-icon .ff-date-input,\n.ff-date-picker .ff-datepicker-input-container .ff-input-with-icon .ff-time-input {\n font-family: \"Poppins\", sans-serif;\n font-size: 10px;\n}\n\n.fontSm, .ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-input-container .ff-time-input {\n font-family: \"Poppins\", sans-serif;\n font-size: 12px;\n}\n\n.fontMd {\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\", sans-serif;\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\", sans-serif;\n font-size: 18px;\n}\n\n.font2Xl {\n font-family: \"Poppins\", sans-serif;\n font-size: 24px;\n}\n\n.font-size-8, .ff-date-picker .ff-datepicker-input-container .ff-date-input-field .ff-date-input-message {\n font-family: \"Poppins\", sans-serif;\n font-size: 8px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\", sans-serif;\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\", sans-serif;\n font-size: 80px;\n}\n\n/* Custom date picker styling */\n.ff-date-picker {\n position: relative;\n}\n.ff-date-picker .rdp-root {\n --rdp-accent-color: var(--brand-color);\n --rdp-day-height: 24px;\n --rdp-day-width: 36px;\n font-family: \"Poppins\", sans-serif;\n font-size: 12px;\n --rdp-font-family: \"Poppins\", sans-serif;\n}\n.ff-date-picker .ff-cursor-pointer {\n cursor: pointer;\n}\n.ff-date-picker .ff-datepicker-input-container {\n display: flex;\n gap: 10px;\n}\n.ff-date-picker .ff-datepicker-input-container .ff-input-with-icon {\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n}\n.ff-date-picker .ff-datepicker-input-container .ff-input-with-icon .ff-date-input,\n.ff-date-picker .ff-datepicker-input-container .ff-input-with-icon .ff-time-input {\n padding: 4px 8px;\n padding-left: 2rem;\n height: 32px;\n border-radius: 5px;\n border: 1px solid var(--border-color);\n color: var(--status-skipped-text-color);\n line-height: 15px;\n box-sizing: border-box;\n}\n.ff-date-picker .ff-datepicker-input-container .ff-input-with-icon .ff-date-input:focus,\n.ff-date-picker .ff-datepicker-input-container .ff-input-with-icon .ff-time-input:focus {\n outline: none;\n}\n.ff-date-picker .ff-datepicker-input-container .ff-input-with-icon .ff-calendar-icon,\n.ff-date-picker .ff-datepicker-input-container .ff-input-with-icon .ff-clock-icon {\n position: absolute;\n transform: translate(50%, 50%);\n display: flex;\n align-items: center;\n pointer-events: none;\n}\n.ff-date-picker .ff-datepicker-input-container .ff-date-input-field {\n flex: 1;\n}\n.ff-date-picker .ff-datepicker-input-container .ff-date-input-field .ff-date-input {\n width: 100%;\n}\n.ff-date-picker .ff-datepicker-input-container .ff-date-input-field .ff-date-input-message {\n padding: 0px 4px;\n margin-left: 8px;\n line-height: 12px;\n}\n.ff-date-picker .ff-datepicker-input-container .ff-date-input-field .ff-date-input-message--danger {\n color: var(--input-error-text-color);\n}\n.ff-date-picker .ff-datepicker-input-container .ff-time-input-field {\n flex: 0 0 120px;\n}\n.ff-date-picker .ff-datepicker-input-container .ff-time-input-field .ff-time-input {\n width: 100%;\n}\n.ff-date-picker .ff-date-picker-container {\n display: flex;\n flex-direction: column;\n position: absolute;\n border-radius: 8px;\n padding: 4px;\n box-sizing: border-box;\n background-color: var(--tab-bg-color);\n box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.2);\n gap: 8px;\n z-index: 10;\n}\n.ff-date-picker .ff-date-picker-container .ff-calendar-container {\n display: flex;\n align-items: flex-start;\n gap: 4px;\n height: 240px;\n}\n.ff-date-picker .ff-date-picker-container .ff-date-picker-controls {\n padding: 4px;\n display: flex;\n justify-content: end;\n gap: 8px;\n border-top: 1px solid var(--border-color);\n}\n.ff-date-picker .ff-date-picker-container .ff-date-picker-controls .ff-date-picker-button {\n font-weight: 600;\n line-height: 15px;\n}\n.ff-date-picker .ff-calendar .ff-calendar-nav-button {\n margin: 0 5px;\n border: 1px solid var(--border-color);\n background-color: var(--toggle-button-bg-color);\n box-shadow: 0 -2px 2px 0 var(--ff-mini-modal-box-shadow);\n padding: 4px;\n border-radius: 30%;\n cursor: pointer;\n}\n.ff-date-picker .ff-calendar .ff-calendar-nav-button:disabled {\n cursor: auto;\n opacity: 0.5;\n}\n.ff-date-picker .ff-calendar .ff-calendar-haeder {\n display: flex;\n align-items: center;\n gap: 5px;\n color: var(--text-color);\n}\n.ff-date-picker .ff-calendar .ff-custom-year_grid,\n.ff-date-picker .ff-calendar .ff-custom-month_grid {\n width: calc((var(--rdp-day-width) + 4px) * 7);\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n gap: 10px;\n padding: 5px;\n max-width: 100%;\n}\n.ff-date-picker .ff-calendar .ff-custom-year_grid .ff-custom-year,\n.ff-date-picker .ff-calendar .ff-custom-year_grid .ff-custom-month,\n.ff-date-picker .ff-calendar .ff-custom-month_grid .ff-custom-year,\n.ff-date-picker .ff-calendar .ff-custom-month_grid .ff-custom-month {\n padding: 10px 0;\n text-align: center;\n cursor: pointer;\n border-radius: 8px;\n background-color: #f9f9f9;\n}\n.ff-date-picker .ff-calendar .ff-custom-year_grid .ff-custom-year--selected,\n.ff-date-picker .ff-calendar .ff-custom-year_grid .ff-custom-month--selected,\n.ff-date-picker .ff-calendar .ff-custom-month_grid .ff-custom-year--selected,\n.ff-date-picker .ff-calendar .ff-custom-month_grid .ff-custom-month--selected {\n background-color: var(--brand-color);\n color: var(--primary-button-text-color);\n}\n.ff-date-picker .ff-calendar .rdp-weekdays th {\n color: #6f7c8e;\n font-weight: 400;\n}\n.ff-date-picker .ff-calendar .rdp-day {\n padding: 2px;\n font-weight: 500;\n}\n.ff-date-picker .ff-calendar .rdp-day_button {\n border-radius: 4px;\n padding: 3px 9px;\n}\n.ff-date-picker .ff-calendar .rdp-day_button:hover {\n background-color: var(--hover-color);\n}\n.ff-date-picker .ff-calendar .rdp-selected {\n font: inherit;\n}\n.ff-date-picker .ff-calendar .rdp-selected .rdp-day_button {\n background: var(--rdp-accent-color);\n color: var(--drawer-footer-bg);\n border: none;\n}\n.ff-date-picker .ff-calendar .rdp-today:not(.rdp-outside) .rdp-day_button {\n border: 2px solid var(--rdp-accent-color);\n}\n.ff-date-picker .ff-time-picker-container {\n position: relative;\n width: 150px;\n height: 100%;\n overflow-y: hidden;\n border-left: 1px solid #ccc;\n padding: 10px 5px;\n box-sizing: border-box;\n}\n.ff-date-picker .ff-time-picker-container::-webkit-scrollbar {\n display: none;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields {\n display: flex;\n height: 14%;\n width: 100%;\n margin-bottom: 5px;\n box-sizing: border-box;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-input-container {\n display: flex;\n border: 1px solid var(--border-color);\n border-right: 0;\n border-radius: 4px 0 0 4px;\n width: 55%;\n position: relative;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-input-container .ff-time-input {\n border: none;\n padding: 5px;\n width: 100%;\n text-align: center;\n border-radius: 4px 0 0 4px;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-input-container .ff-time-input::placeholder {\n opacity: 0;\n line-height: 18px;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-input-container .ff-time-input-label {\n position: absolute;\n left: 10px;\n top: 50%;\n transform: translateY(-50%);\n transition: 0.2s ease all;\n color: var(--input-default-label-color);\n pointer-events: none;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-input-container--float .ff-time-input-label {\n top: 0;\n left: 5px;\n color: var(--brand-color);\n background-color: var(--input-label-bg-color);\n line-height: 12px;\n padding: 0 2px;\n font-size: 8px !important;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-input-container--float .ff-time-input-label--danger {\n color: var(--input-error-text-color);\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-input-container:hover {\n border-color: var(--input-hover-border-color);\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-input-container:focus-within {\n border-color: var(--brand-color);\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-input-container:focus-within .ff-time-input-label {\n top: 0;\n left: 5px;\n color: var(--brand-color);\n background-color: var(--input-label-bg-color);\n line-height: 12px;\n padding: 0 2px;\n font-size: 8px !important;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-input-container:focus-within .ff-time-input-label--danger {\n color: var(--input-error-text-color);\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-input-container:focus-within .ff-time-input::placeholder {\n opacity: 1;\n margin-bottom: 1px;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-input-container--danger {\n border-color: var(--input-error-text-color) !important;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-input-container .ff-time-input:focus {\n outline: none;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-period-container {\n position: relative;\n width: 45%;\n display: flex;\n border: 1px solid var(--border-color);\n border-radius: 0 4px 4px 0;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-period-container .ff-time-period-select {\n display: flex;\n align-items: center;\n padding: 0 5px;\n width: 100%;\n border-radius: 4px;\n background-color: white;\n cursor: pointer;\n border: none;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-period-container--active {\n border-color: var(--brand-color) !important;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-period-container:hover {\n border-color: var(--input-hover-border-color);\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-period-container .ff-time-period-icon {\n margin-left: auto;\n pointer-events: none;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-period-container .ff-time-period-options {\n position: fixed;\n z-index: 100;\n min-width: 60px;\n margin: 4px 0 0;\n padding: 0;\n list-style: none;\n border: 1px solid var(--ff-select-background-color);\n border-radius: 4px;\n background-color: var(--primary-button-text-color);\n box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-period-container .ff-option-item {\n padding: 8px;\n color: var(--text-color);\n border-radius: 4px;\n cursor: pointer;\n transition: background-color 0.2s ease;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-fields .ff-time-period-container .ff-option-item:hover {\n background-color: var(--ff-select-option-hover-color);\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-options {\n height: 86%;\n overflow-y: auto;\n padding-right: 5px;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-options::-webkit-scrollbar {\n width: 4px;\n height: 12px;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-options::-webkit-scrollbar-thumb {\n background-color: var(--ff-select-scroll-thumb-color);\n border-radius: 4px;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-options::-webkit-scrollbar-track {\n background-color: var(--hover-color);\n border-radius: 4px;\n}\n.ff-date-picker .ff-time-picker-container .ff-time-picker-options .ff-time-option {\n padding: 10px 12px;\n cursor: pointer;\n text-align: center;\n border-radius: 8px;\n background-color: rgb(249, 249, 249);\n margin: 10px 0;\n}";
|
15676
|
+
styleInject(css_248z$9);
|
15636
15677
|
|
15637
15678
|
const CustomDatePicker = ({
|
15638
15679
|
minDate,
|
@@ -16152,8 +16193,8 @@ const StateDropdown = ({
|
|
16152
16193
|
});
|
16153
16194
|
};
|
16154
16195
|
|
16155
|
-
var css_248z$
|
16156
|
-
styleInject(css_248z$
|
16196
|
+
var css_248z$8 = "@font-face {\n font-family: \"Poppins\";\n font-weight: 400;\n src: local(\"Poppins-Regular\"), url(../../fonts/Poppins/Poppins-Regular.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 500;\n src: local(\"Poppins-Medium\"), url(../../fonts/Poppins/Poppins-Medium.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 600;\n src: local(\"Poppins-SemiBold\"), url(../../fonts/Poppins/Poppins-SemiBold.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 700;\n src: local(\"Poppins-Bold\"), url(../../fonts/Poppins/Poppins-Bold.ttf) format(\"truetype\");\n}\n.fontXs {\n font-family: \"Poppins\", sans-serif;\n font-size: 10px;\n}\n\n.fontSm {\n font-family: \"Poppins\", sans-serif;\n font-size: 12px;\n}\n\n.fontMd {\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\", sans-serif;\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\", sans-serif;\n font-size: 18px;\n}\n\n.font2Xl {\n font-family: \"Poppins\", sans-serif;\n font-size: 24px;\n}\n\n.font-size-8 {\n font-family: \"Poppins\", sans-serif;\n font-size: 8px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\", sans-serif;\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\", sans-serif;\n font-size: 80px;\n}\n\n.ff-plus-icon {\n min-width: 71px;\n min-height: 24px;\n border-radius: 12px;\n border-style: none;\n text-align: center;\n text-decoration: none;\n cursor: pointer;\n display: flex;\n justify-content: center;\n align-items: center;\n align-content: center;\n gap: 8px;\n background-color: var(--secondary-icon-color);\n padding: 2px 8px 2px 2px;\n border: 1px solid transparent;\n}\n.ff-plus-icon .ff-icon-color path {\n color: var(--primary-icon-color);\n}\n.ff-plus-icon .icon-name {\n min-width: 33px;\n color: var(--primary-icon-color);\n display: flex;\n justify-content: center;\n align-items: center;\n align-content: center;\n}\n.ff-plus-icon:hover {\n border: 1px solid var(--secondary-icon-color);\n background-color: var(--hover-color);\n}\n.ff-plus-icon:hover .icon-name {\n min-width: 33px;\n min-height: 20px;\n font-weight: 600;\n color: var(--secondary-icon-color);\n display: flex;\n justify-content: center;\n align-items: center;\n align-content: center;\n}\n.ff-plus-icon:hover .ff-icon-color path {\n color: var(--secondary-icon-color);\n}";
|
16197
|
+
styleInject(css_248z$8);
|
16157
16198
|
|
16158
16199
|
const IconButton = ({
|
16159
16200
|
label,
|
@@ -16177,8 +16218,8 @@ const IconButton = ({
|
|
16177
16218
|
});
|
16178
16219
|
};
|
16179
16220
|
|
16180
|
-
var css_248z$
|
16181
|
-
styleInject(css_248z$
|
16221
|
+
var css_248z$7 = ".ff-modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: var(--background-modal-color);\n display: flex;\n justify-content: center;\n align-items: center;\n align-content: center;\n flex-direction: column;\n}\n\n.ff-modal-content {\n background: var(--ff-mini-modal-border);\n position: relative;\n max-width: 100%;\n border-radius: 12px;\n padding: 16px;\n}\n.ff-modal-content .ff-modal-header {\n height: 32px;\n width: 100%;\n}\n\n.ff-modal-footer {\n background-color: var(--expandable-menu-option-bg);\n max-width: 100%;\n width: 100%;\n height: 32px;\n border-radius: 0 0 12px 12px;\n display: flex;\n flex-direction: row;\n justify-content: end;\n align-items: center;\n gap: 8px;\n padding: 4px 16px;\n}";
|
16222
|
+
styleInject(css_248z$7);
|
16182
16223
|
|
16183
16224
|
const Modal = ({
|
16184
16225
|
isOpen,
|
@@ -20857,8 +20898,8 @@ const DragAndDrop = {
|
|
20857
20898
|
DNDUtilities
|
20858
20899
|
};
|
20859
20900
|
|
20860
|
-
var css_248z$
|
20861
|
-
styleInject(css_248z$
|
20901
|
+
var css_248z$6 = ".ff-all-project {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n}\n.ff-all-project .ff-all-project-dropdown {\n background-color: var(--secondary-icon-color);\n color: var(--expandable-menu-default-bg);\n height: 24px;\n display: flex;\n justify-content: center;\n align-items: center;\n align-content: center;\n gap: 10px;\n padding: 4px;\n}\n.ff-all-project .ff-all-project-dropdown .label-icon {\n height: 16px;\n width: 16px;\n display: flex;\n justify-content: center;\n align-items: center;\n align-content: center;\n}\n.ff-all-project .ff-dropdown {\n position: absolute;\n top: 50px;\n padding: 1px;\n border: 0.5px solid var(--expandable-menu-default-bg);\n border-radius: 4px;\n background-color: var(--secondary-icon-color);\n color: var(--primary-icon-color);\n}\n.ff-all-project .ff-dropdown .ff-search {\n margin-bottom: 1px;\n}\n.ff-all-project .ff-dropdown .ff-search input {\n height: 30px;\n width: inherit;\n border-radius: 4px;\n border-style: none;\n}\n.ff-all-project .ff-dropdown .ff-search input::placeholder {\n padding-left: 32px;\n font-size: 8px;\n line-height: 12px;\n}\n.ff-all-project .ff-dropdown .ff-search span {\n position: absolute;\n top: 15px;\n left: 20px;\n}\n.ff-all-project .ff-dropdown .scroll {\n max-height: 124px;\n overflow-y: scroll;\n}\n.ff-all-project .ff-dropdown .option-card .projects-options {\n display: flex;\n justify-content: center;\n align-items: center;\n align-content: center;\n justify-content: flex-start;\n gap: 4px;\n}\n.ff-all-project .ff-dropdown .option-card .projects-options .projects-icons {\n display: flex;\n justify-content: center;\n align-items: center;\n align-content: center;\n height: 24px;\n width: 24px;\n}\n.ff-all-project .ff-dropdown .option-card .all-projects-option {\n background-color: var(--primary-icon-color);\n color: var(--secondary-icon-color);\n border-radius: 4px;\n}";
|
20902
|
+
styleInject(css_248z$6);
|
20862
20903
|
|
20863
20904
|
const AllProjectsDropdown = () => {
|
20864
20905
|
const [showOptions, setShowOptions] = useState(false);
|
@@ -20965,56 +21006,212 @@ const AllProjectsDropdown = () => {
|
|
20965
21006
|
});
|
20966
21007
|
};
|
20967
21008
|
|
20968
|
-
var css_248z = ".ff-
|
20969
|
-
styleInject(css_248z);
|
21009
|
+
var css_248z$5 = ".ff-pie-chart-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n font-size: var(--fontSize);\n}\n.ff-pie-chart-container .ff-pie-chart-border {\n display: inline-block;\n border: 2px solid var(--pie-chart-border-color);\n border-radius: 50%;\n}\n.ff-pie-chart-container .ff-pie-chart-tooltip {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -100%);\n padding: 8px;\n border-radius: 4px;\n background-color: var(--tooltip-bg-color);\n color: var(--primary-icon-color);\n border: 10px solid;\n font-size: 14px;\n font-weight: 400;\n pointer-events: none;\n opacity: 0.8;\n}\n.ff-pie-chart-container .ff-pie-chart-legend {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n gap: 16px;\n}\n.ff-pie-chart-container .ff-pie-chart-legend .ff-pie-chart-legend-item {\n display: flex;\n flex-direction: column;\n align-items: center;\n text-align: center;\n}";
|
21010
|
+
styleInject(css_248z$5);
|
20970
21011
|
|
20971
|
-
const
|
20972
|
-
|
20973
|
-
|
20974
|
-
|
20975
|
-
|
20976
|
-
|
20977
|
-
selectedQuickMenu,
|
20978
|
-
onMenuClick = () => {},
|
20979
|
-
onSubMenuClick = () => {},
|
20980
|
-
onQuickMenuClick = () => {}
|
21012
|
+
const calculateArc$1 = ({
|
21013
|
+
x,
|
21014
|
+
y,
|
21015
|
+
radius,
|
21016
|
+
startAngle,
|
21017
|
+
endAngle
|
20981
21018
|
}) => {
|
20982
|
-
|
20983
|
-
|
20984
|
-
|
20985
|
-
|
20986
|
-
|
20987
|
-
|
20988
|
-
|
20989
|
-
|
20990
|
-
|
20991
|
-
|
20992
|
-
|
20993
|
-
|
20994
|
-
|
20995
|
-
|
20996
|
-
|
20997
|
-
|
20998
|
-
|
20999
|
-
|
21000
|
-
|
21001
|
-
|
21002
|
-
|
21003
|
-
|
21004
|
-
|
21005
|
-
|
21006
|
-
|
21007
|
-
|
21008
|
-
|
21009
|
-
|
21010
|
-
|
21011
|
-
|
21012
|
-
|
21013
|
-
|
21014
|
-
|
21015
|
-
|
21016
|
-
|
21017
|
-
|
21019
|
+
const startX = x + radius * Math.cos(startAngle);
|
21020
|
+
const startY = y + radius * Math.sin(startAngle);
|
21021
|
+
const endX = x + radius * Math.cos(endAngle);
|
21022
|
+
const endY = y + radius * Math.sin(endAngle);
|
21023
|
+
const largeArcFlag = endAngle - startAngle > Math.PI ? 1 : 0;
|
21024
|
+
return `M ${startX} ${startY} A ${radius} ${radius} 0 ${largeArcFlag} 1 ${endX} ${endY} L ${x} ${y} Z`;
|
21025
|
+
};
|
21026
|
+
const calculateArcAngles = (value, total, currentAngle, radius) => {
|
21027
|
+
if (total === 0) {
|
21028
|
+
return {
|
21029
|
+
endAngle: currentAngle,
|
21030
|
+
backgroundArcPath: '',
|
21031
|
+
foregroundArcPath: '',
|
21032
|
+
percentage: 0
|
21033
|
+
};
|
21034
|
+
}
|
21035
|
+
const percentage = value / total;
|
21036
|
+
const angleIncrement = percentage * 2 * Math.PI;
|
21037
|
+
const startAngle = currentAngle;
|
21038
|
+
const endAngle = startAngle + angleIncrement;
|
21039
|
+
const path = calculateArc$1({
|
21040
|
+
x: 0,
|
21041
|
+
y: 0,
|
21042
|
+
radius,
|
21043
|
+
startAngle,
|
21044
|
+
endAngle
|
21045
|
+
});
|
21046
|
+
return {
|
21047
|
+
endAngle,
|
21048
|
+
backgroundArcPath: path,
|
21049
|
+
foregroundArcPath: path,
|
21050
|
+
percentage
|
21051
|
+
};
|
21052
|
+
};
|
21053
|
+
const PieChart = ({
|
21054
|
+
radius = 15,
|
21055
|
+
colors = [],
|
21056
|
+
data = [],
|
21057
|
+
chartBorder = false
|
21058
|
+
}) => {
|
21059
|
+
const [tooltip, setTooltip] = useState(null);
|
21060
|
+
const [tooltipPosition, setTooltipPosition] = useState({
|
21061
|
+
x: 0,
|
21062
|
+
y: 0
|
21063
|
+
});
|
21064
|
+
const total = data.reduce((acc, item) => acc + item.value, 0);
|
21065
|
+
let currentAngle = -Math.PI / 2;
|
21066
|
+
const svgSize = 2 * (radius + 5);
|
21067
|
+
const chartData = chartBorder && data.length > 0 ? [{
|
21068
|
+
label: data[0]?.label || '',
|
21069
|
+
value: data.slice(1).reduce((acc, item) => acc + item.value, 0)
|
21070
|
+
}, ...data.slice(1)] : data;
|
21071
|
+
const handleMouseMove = e => {
|
21072
|
+
const {
|
21073
|
+
clientX: x,
|
21074
|
+
clientY: y
|
21075
|
+
} = e;
|
21076
|
+
setTooltipPosition({
|
21077
|
+
x,
|
21078
|
+
y
|
21079
|
+
});
|
21080
|
+
};
|
21081
|
+
const handleMouseEnter = (item, color) => {
|
21082
|
+
setTooltip({
|
21083
|
+
label: item.label,
|
21084
|
+
value: item.value,
|
21085
|
+
color
|
21086
|
+
});
|
21087
|
+
};
|
21088
|
+
const handleMouseLeave = () => {
|
21089
|
+
setTooltip(null);
|
21090
|
+
};
|
21091
|
+
const legendItems = chartData.map((item, index) => jsxs("div", {
|
21092
|
+
className: "ff-pie-chart-legend-item",
|
21093
|
+
children: [jsx(Typography, {
|
21094
|
+
as: "div",
|
21095
|
+
fontSize: 24,
|
21096
|
+
fontWeight: "semi-bold",
|
21097
|
+
lineHeight: "36px",
|
21098
|
+
color: colors[index % colors.length] || '',
|
21099
|
+
children: item.value
|
21100
|
+
}), jsx(Typography, {
|
21101
|
+
as: "div",
|
21102
|
+
fontSize: 10,
|
21103
|
+
fontWeight: "regular",
|
21104
|
+
lineHeight: "18px",
|
21105
|
+
className: "ff-Pie-chart-legend-value",
|
21106
|
+
children: item.label
|
21107
|
+
})]
|
21108
|
+
}, item.label));
|
21109
|
+
return jsxs("div", {
|
21110
|
+
className: "ff-pie-chart-container",
|
21111
|
+
onMouseMove: handleMouseMove,
|
21112
|
+
children: [jsx("div", {
|
21113
|
+
className: ` ${chartBorder ? 'ff-pie-chart-border' : ''}`,
|
21114
|
+
style: {
|
21115
|
+
width: svgSize,
|
21116
|
+
height: svgSize
|
21117
|
+
},
|
21118
|
+
children: jsx("svg", {
|
21119
|
+
width: svgSize,
|
21120
|
+
height: svgSize,
|
21121
|
+
viewBox: `0 0 ${svgSize} ${svgSize}`,
|
21122
|
+
children: jsx("g", {
|
21123
|
+
transform: `translate(${radius + 5}, ${radius + 5})`,
|
21124
|
+
children: chartData.map((item, index) => {
|
21125
|
+
const {
|
21126
|
+
endAngle,
|
21127
|
+
backgroundArcPath
|
21128
|
+
} = calculateArcAngles(item.value, total, currentAngle, radius);
|
21129
|
+
currentAngle = endAngle;
|
21130
|
+
const color = colors[index % colors.length] || '';
|
21131
|
+
return jsxs("g", {
|
21132
|
+
children: [jsx("path", {
|
21133
|
+
d: backgroundArcPath,
|
21134
|
+
fill: color,
|
21135
|
+
stroke: "white",
|
21136
|
+
strokeWidth: 0.5,
|
21137
|
+
onMouseEnter: () => handleMouseEnter(item, color),
|
21138
|
+
onMouseLeave: handleMouseLeave
|
21139
|
+
}), jsx("text", {
|
21140
|
+
x: radius / 2 * Math.cos((currentAngle + endAngle) / 2),
|
21141
|
+
y: radius / 2 * Math.sin((currentAngle + endAngle) / 2),
|
21142
|
+
fill: "white",
|
21143
|
+
textAnchor: "middle",
|
21144
|
+
dominantBaseline: "central"
|
21145
|
+
})]
|
21146
|
+
}, item.label);
|
21147
|
+
})
|
21148
|
+
})
|
21149
|
+
})
|
21150
|
+
}), tooltip && jsxs("div", {
|
21151
|
+
className: "ff-pie-chart-tooltip",
|
21152
|
+
style: {
|
21153
|
+
top: tooltipPosition.y,
|
21154
|
+
left: tooltipPosition.x,
|
21155
|
+
border: `2px solid ${tooltip.color}`
|
21156
|
+
},
|
21157
|
+
children: [tooltip.label, " : ", tooltip.value]
|
21158
|
+
}), jsx("div", {
|
21159
|
+
className: "ff-pie-chart-legend",
|
21160
|
+
children: legendItems
|
21161
|
+
})]
|
21162
|
+
});
|
21163
|
+
};
|
21164
|
+
|
21165
|
+
var css_248z$4 = ".ff-app-header {\n display: flex;\n justify-content: space-between;\n background-color: var(--brand-color);\n padding-left: 8px;\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n}\n.ff-app-header .ff-app-header-logo-icon {\n padding: 8px;\n height: 24px;\n}\n.ff-app-header .ff-app-header-nav-bar {\n display: flex;\n align-items: center;\n background-color: var(--brand-color);\n transform: translateY(12px);\n border-radius: 20px;\n padding: 5px;\n}\n.ff-app-header .ff-app-header-nav-bar .ff-app-header-nav-bar-items {\n display: flex;\n align-items: center;\n}\n.ff-app-header .ff-app-header-nav-bar .ff-app-header-nav-bar-items .ff-app-header-nav-bar-item {\n margin-left: 8px;\n color: var(--ff-header-text-color);\n cursor: pointer;\n display: flex;\n}\n.ff-app-header .ff-app-header-nav-bar .ff-app-header-nav-bar-items .ff-app-header-nav-bar-item--selected {\n padding: 3px;\n background-color: var(--primary-icon-color);\n border-radius: 20px;\n}\n.ff-app-header .ff-app-header-nav-bar .ff-app-header-nav-bar-items .ff-app-header-nav-bar-item--selected .ff-app-header-nav-bar-item-label {\n background-color: var(--brand-color);\n border-radius: 20px;\n padding: 4px 8px;\n}\n.ff-app-header .ff-app-header-nav-bar .ff-app-header-nav-bar-items .ff-app-header-nav-bar-item .ff-app-header-submenu-container {\n display: flex;\n}\n.ff-app-header .ff-app-header-nav-bar .ff-app-header-nav-bar-items .ff-app-header-nav-bar-item .ff-app-header-submenu-container .ff-app-header-nav-bar-submenu-item {\n color: var(--ff-header-submenu-text-color);\n align-content: center;\n padding-left: 8px;\n}\n.ff-app-header .ff-app-header-nav-bar .ff-app-header-nav-bar-items .ff-app-header-nav-bar-item .ff-app-header-submenu-container .ff-app-header-nav-bar-submenu-item--selected {\n color: var(--ff-header-submenu-highlight-text-color);\n}\n.ff-app-header .ff-app-header-nav-bar .ff-app-header-nav-bar-items .ff-app-header-nav-bar-item .ff-app-header-submenu-container .ff-app-header-quickmenu-container {\n display: flex;\n align-items: center;\n}\n.ff-app-header .ff-app-header-nav-bar .ff-app-header-more-icon svg {\n cursor: pointer;\n}\n.ff-app-header .ff-app-header-nav-bar .ff-app-header-more-icon svg path {\n fill: var(--primary-icon-color);\n}\n.ff-app-header .ff-app-header-right-content {\n height: 24px;\n padding: 8px;\n}";
|
21166
|
+
styleInject(css_248z$4);
|
21167
|
+
|
21168
|
+
const AppHeader = ({
|
21169
|
+
logoIconName = 'fireflink_icon',
|
21170
|
+
rightContent,
|
21171
|
+
appHeaderMenuItems,
|
21172
|
+
selectedMenu,
|
21173
|
+
selectedSubMenu,
|
21174
|
+
selectedQuickMenu,
|
21175
|
+
onMenuClick = () => {},
|
21176
|
+
onSubMenuClick = () => {},
|
21177
|
+
onQuickMenuClick = () => {}
|
21178
|
+
}) => {
|
21179
|
+
return jsx(Fragment, {
|
21180
|
+
children: jsxs("div", {
|
21181
|
+
className: "ff-app-header",
|
21182
|
+
children: [jsx("div", {
|
21183
|
+
className: "ff-app-header-logo-icon",
|
21184
|
+
children: jsx(Icon, {
|
21185
|
+
color: "",
|
21186
|
+
name: logoIconName,
|
21187
|
+
height: 24,
|
21188
|
+
width: 21
|
21189
|
+
})
|
21190
|
+
}), jsxs("div", {
|
21191
|
+
className: "ff-app-header-nav-bar",
|
21192
|
+
children: [jsx("div", {
|
21193
|
+
children: "All projects"
|
21194
|
+
}), jsx("div", {
|
21195
|
+
className: "ff-app-header-nav-bar-items fontSm",
|
21196
|
+
children: appHeaderMenuItems.map(menuItem => {
|
21197
|
+
return jsxs("div", {
|
21198
|
+
className: classNames('ff-app-header-nav-bar-item', {
|
21199
|
+
['ff-app-header-nav-bar-item--selected']: menuItem.menuName === selectedMenu
|
21200
|
+
}),
|
21201
|
+
onClick: () => onMenuClick(menuItem.menuName),
|
21202
|
+
children: [jsx(Typography, {
|
21203
|
+
as: "div",
|
21204
|
+
className: "ff-app-header-nav-bar-item-label",
|
21205
|
+
lineHeight: "18px",
|
21206
|
+
children: menuItem.menuName
|
21207
|
+
}), menuItem.menuName === selectedMenu && menuItem?.subMenuItems && menuItem.subMenuItems.map(subMenuItem => {
|
21208
|
+
return jsxs("div", {
|
21209
|
+
onClick: () => onSubMenuClick(subMenuItem.subMenuName),
|
21210
|
+
className: "ff-app-header-submenu-container",
|
21211
|
+
children: [jsx(Typography, {
|
21212
|
+
as: "div",
|
21213
|
+
className: classNames('ff-app-header-nav-bar-submenu-item', {
|
21214
|
+
['ff-app-header-nav-bar-submenu-item--selected']: subMenuItem.subMenuName === selectedSubMenu
|
21018
21215
|
}),
|
21019
21216
|
lineHeight: "18px",
|
21020
21217
|
children: subMenuItem.subMenuName
|
@@ -21058,5 +21255,2510 @@ const AppHeader = ({
|
|
21058
21255
|
});
|
21059
21256
|
};
|
21060
21257
|
|
21061
|
-
|
21258
|
+
var css_248z$3 = "@font-face {\n font-family: \"Poppins\";\n font-weight: 400;\n src: local(\"Poppins-Regular\"), url(../../fonts/Poppins/Poppins-Regular.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 500;\n src: local(\"Poppins-Medium\"), url(../../fonts/Poppins/Poppins-Medium.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 600;\n src: local(\"Poppins-SemiBold\"), url(../../fonts/Poppins/Poppins-SemiBold.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 700;\n src: local(\"Poppins-Bold\"), url(../../fonts/Poppins/Poppins-Bold.ttf) format(\"truetype\");\n}\n.fontXs, .ff-dashboard-donut-chart-section .ff-legend-table .ff-table-header, .ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-name,\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-percentage,\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-count {\n font-family: \"Poppins\", sans-serif;\n font-size: 10px;\n}\n\n.fontSm {\n font-family: \"Poppins\", sans-serif;\n font-size: 12px;\n}\n\n.fontMd, .ff-dashboard-donut-chart-section .ff-dashboard-donut-chart-svg-container svg text:nth-of-type(2) {\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\", sans-serif;\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\", sans-serif;\n font-size: 18px;\n}\n\n.font2Xl, .ff-dashboard-donut-chart-section .ff-dashboard-donut-chart-svg-container svg text:nth-of-type(1) {\n font-family: \"Poppins\", sans-serif;\n font-size: 24px;\n}\n\n.font-size-8 {\n font-family: \"Poppins\", sans-serif;\n font-size: 8px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\", sans-serif;\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\", sans-serif;\n font-size: 80px;\n}\n\n.ff-dashboard-donut-chart-section {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.ff-dashboard-donut-chart-section-table-legend {\n flex-direction: row;\n}\n.ff-dashboard-donut-chart-section .ff-dashboard-donut-chart-svg-container {\n text-align: center;\n}\n.ff-dashboard-donut-chart-section .ff-dashboard-donut-chart-svg-container svg text:nth-of-type(1) {\n font-weight: 600;\n}\n.ff-dashboard-donut-chart-section .ff-dashboard-donut-chart-svg-container svg text:nth-of-type(2) {\n font-weight: 500;\n}\n.ff-dashboard-donut-chart-section .ff-dashboard-donut-chart-svg-container .ff-donut-chart-tooltip {\n position: fixed;\n padding: 5px;\n border-radius: 4px;\n pointer-events: none;\n background-color: var(--tooltip-bg-color);\n color: var(--tooltip-text-color);\n}\n.ff-dashboard-donut-chart-section .ff-legend-container {\n display: grid;\n gap: 10px;\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.numberLegend {\n grid-template-columns: repeat(3, 1fr);\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.numberLegend .ff-legend-item {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.pillLegend {\n grid-template-columns: repeat(2, 1fr);\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.pillLegend .ff-legend-item {\n display: flex;\n align-items: center;\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.pillLegend .ff-legend-item .ff-legend-capsule {\n background-color: var(--status-success-text-color);\n color: var(--tooltip-text-color);\n border-radius: 15px;\n min-width: 25px;\n height: 18px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.pillLegend .ff-legend-item .ff-legend-key {\n margin-left: 8px;\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.memoryLegend {\n grid-template-columns: repeat(2, 1fr);\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.memoryLegend .ff-legend-item {\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n padding-right: 10px;\n border-right: 1px solid var(--border-color);\n}\n.ff-dashboard-donut-chart-section .ff-legend-container.memoryLegend .ff-legend-item:nth-child(2n) {\n border-right: none;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table-wrapper {\n overflow: hidden;\n border: 1px solid var(--border-color);\n border-radius: 4px;\n margin-left: 1rem;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table {\n width: 100%;\n min-width: 300px;\n border-collapse: collapse;\n text-align: left;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-table-header {\n font-weight: bold;\n background-color: var(--tabs-bg-color);\n color: var(--input-hover-border-color);\n padding: 0.5rem;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-table-header:last-child {\n text-align: right;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-capsule {\n background-color: var(--status-success-text-color);\n color: var(--tooltip-text-color);\n border-radius: 1rem;\n min-width: 22px;\n height: 16px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-name,\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-percentage,\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-count {\n padding: 0.5rem;\n color: var(--input-hover-border-color);\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-name {\n display: flex;\n align-items: baseline;\n gap: 5px;\n color: var(--input-hover-border-color);\n}\n.ff-dashboard-donut-chart-section .ff-legend-table .ff-legend-item .ff-legend-count {\n text-align: right;\n}";
|
21259
|
+
styleInject(css_248z$3);
|
21260
|
+
|
21261
|
+
const calculateArc = (x, y, radius, startAngle, endAngle) => {
|
21262
|
+
const startX = x + radius * Math.cos(startAngle);
|
21263
|
+
const startY = y + radius * Math.sin(startAngle);
|
21264
|
+
const endX = x + radius * Math.cos(endAngle);
|
21265
|
+
const endY = y + radius * Math.sin(endAngle);
|
21266
|
+
const largeArcFlag = endAngle - startAngle > Math.PI ? 1 : 0;
|
21267
|
+
return `M ${startX} ${startY} A ${radius} ${radius} 0 ${largeArcFlag} 1 ${endX} ${endY}`;
|
21268
|
+
};
|
21269
|
+
const colorMapping = ['var(--status-success-text-color)', 'var(--status-rejected-text-color)', 'var(--status-warning-text-color)', 'var(--status-skipped-text-color)', 'var(--brand-color)'];
|
21270
|
+
const DashboardDonutChart = ({
|
21271
|
+
radius = 60,
|
21272
|
+
lineWidth = 15,
|
21273
|
+
statusValues = [],
|
21274
|
+
gapAngle = 0,
|
21275
|
+
legendDetailsType = '',
|
21276
|
+
isLegendDetails = true,
|
21277
|
+
legendType = 'numberLegend',
|
21278
|
+
showOnlyLabel = false
|
21279
|
+
}) => {
|
21280
|
+
const [hoveredItemIndex, setHoveredItemIndex] = useState(null);
|
21281
|
+
const [tooltipPosition, setTooltipPosition] = useState({
|
21282
|
+
x: 0,
|
21283
|
+
y: 0
|
21284
|
+
});
|
21285
|
+
const [showTooltip, setShowTooltip] = useState(false);
|
21286
|
+
const total = statusValues?.reduce((acc, {
|
21287
|
+
value
|
21288
|
+
}) => acc + value, 0);
|
21289
|
+
const nonZeroValues = statusValues?.filter(({
|
21290
|
+
value
|
21291
|
+
}) => value > 0);
|
21292
|
+
// Calculate angles and gaps
|
21293
|
+
const TOTAL_GAP_ANGLE = gapAngle * nonZeroValues.length;
|
21294
|
+
let remainingAngle = 2 * Math.PI - TOTAL_GAP_ANGLE;
|
21295
|
+
let currentAngle = Math.PI / 2;
|
21296
|
+
const MIN_PERCENTAGE = 1;
|
21297
|
+
const MIN_ANGLE = MIN_PERCENTAGE / 100 * (2 * Math.PI);
|
21298
|
+
// Adjust for small angles
|
21299
|
+
nonZeroValues.forEach(({
|
21300
|
+
value
|
21301
|
+
}) => {
|
21302
|
+
const valuePercentage = value / total;
|
21303
|
+
const angle = Math.max(valuePercentage * (2 * Math.PI), MIN_ANGLE);
|
21304
|
+
remainingAngle -= angle;
|
21305
|
+
});
|
21306
|
+
const handleMouseEnter = itemIndex => {
|
21307
|
+
setHoveredItemIndex(itemIndex);
|
21308
|
+
setShowTooltip(true);
|
21309
|
+
};
|
21310
|
+
const handleMouseLeave = () => {
|
21311
|
+
setTooltipPosition({
|
21312
|
+
x: 0,
|
21313
|
+
y: 0
|
21314
|
+
});
|
21315
|
+
setHoveredItemIndex(null);
|
21316
|
+
setShowTooltip(false);
|
21317
|
+
};
|
21318
|
+
const handleMouseMove = event => {
|
21319
|
+
setTooltipPosition({
|
21320
|
+
x: event.clientX + 10,
|
21321
|
+
y: event.clientY + 10
|
21322
|
+
});
|
21323
|
+
};
|
21324
|
+
const SVG_PADDING = 4;
|
21325
|
+
const DONUT_SVG_SIZE = (radius + lineWidth) * 2 + SVG_PADDING * 2;
|
21326
|
+
const renderArc = (chartItem, endAngle, i) => {
|
21327
|
+
const isFullCircle = nonZeroValues.length === 1;
|
21328
|
+
// Full circle handling
|
21329
|
+
const foregroundArcPath = isFullCircle ? calculateArc(0, 0, radius, 0, 2 * Math.PI) : calculateArc(0, 0, radius, currentAngle, endAngle);
|
21330
|
+
currentAngle = endAngle + gapAngle;
|
21331
|
+
return jsx("g", {
|
21332
|
+
children: jsx("path", {
|
21333
|
+
d: foregroundArcPath,
|
21334
|
+
fill: "none",
|
21335
|
+
stroke: chartItem?.color ? chartItem.color : colorMapping[i % colorMapping.length],
|
21336
|
+
strokeWidth: lineWidth,
|
21337
|
+
onMouseEnter: () => handleMouseEnter(i),
|
21338
|
+
onMouseLeave: handleMouseLeave,
|
21339
|
+
strokeOpacity: 0.8,
|
21340
|
+
onMouseMove: handleMouseMove
|
21341
|
+
})
|
21342
|
+
}, i);
|
21343
|
+
};
|
21344
|
+
const renderTooltip = () => {
|
21345
|
+
return jsxs("div", {
|
21346
|
+
className: "ff-donut-chart-tooltip",
|
21347
|
+
style: {
|
21348
|
+
left: tooltipPosition.x,
|
21349
|
+
top: tooltipPosition.y
|
21350
|
+
},
|
21351
|
+
children: [jsx(Typography, {
|
21352
|
+
fontSize: 12,
|
21353
|
+
children: hoveredItemIndex !== null && `${nonZeroValues[hoveredItemIndex]?.key} : `
|
21354
|
+
}), jsx(Typography, {
|
21355
|
+
fontSize: 12,
|
21356
|
+
children: hoveredItemIndex !== null && nonZeroValues[hoveredItemIndex]?.value
|
21357
|
+
})]
|
21358
|
+
});
|
21359
|
+
};
|
21360
|
+
const renderLegend = (legendData, legendType) => {
|
21361
|
+
switch (legendType) {
|
21362
|
+
case 'numberLegend':
|
21363
|
+
return jsx("div", {
|
21364
|
+
className: "ff-legend-container numberLegend",
|
21365
|
+
children: legendData.map((item, index) => jsxs("div", {
|
21366
|
+
className: "ff-legend-item",
|
21367
|
+
children: [jsx(Typography, {
|
21368
|
+
fontSize: 22,
|
21369
|
+
fontWeight: "semi-bold",
|
21370
|
+
className: "ff-legend-value",
|
21371
|
+
color: item.color ? item.color : colorMapping[index % colorMapping.length],
|
21372
|
+
children: item.value
|
21373
|
+
}), jsx(Typography, {
|
21374
|
+
fontSize: 12,
|
21375
|
+
className: "ff-legend-key",
|
21376
|
+
children: item.key
|
21377
|
+
})]
|
21378
|
+
}, index))
|
21379
|
+
});
|
21380
|
+
case 'pillLegend':
|
21381
|
+
return jsx("div", {
|
21382
|
+
className: "ff-legend-container pillLegend",
|
21383
|
+
children: legendData.map((item, index) => jsxs("div", {
|
21384
|
+
className: "ff-legend-item",
|
21385
|
+
children: [jsx("span", {
|
21386
|
+
className: "ff-legend-capsule",
|
21387
|
+
style: {
|
21388
|
+
backgroundColor: item.color ? item.color : colorMapping[index % colorMapping.length]
|
21389
|
+
},
|
21390
|
+
children: jsx(Typography, {
|
21391
|
+
fontSize: 10,
|
21392
|
+
children: item.value
|
21393
|
+
})
|
21394
|
+
}), jsx(Typography, {
|
21395
|
+
className: "ff-legend-key",
|
21396
|
+
children: item.key
|
21397
|
+
})]
|
21398
|
+
}, index))
|
21399
|
+
});
|
21400
|
+
case 'memoryLegend':
|
21401
|
+
return jsx("div", {
|
21402
|
+
className: "ff-legend-container memoryLegend",
|
21403
|
+
children: legendData.map((item, index) => jsx(React__default.Fragment, {
|
21404
|
+
children: jsxs("div", {
|
21405
|
+
className: "ff-legend-item",
|
21406
|
+
children: [jsx(Typography, {
|
21407
|
+
fontSize: 22,
|
21408
|
+
fontWeight: "medium",
|
21409
|
+
className: "ff-legend-value",
|
21410
|
+
color: item.color ? item.color : colorMapping[index % colorMapping.length],
|
21411
|
+
children: item.value
|
21412
|
+
}), jsx(Typography, {
|
21413
|
+
className: "ff-legend-key",
|
21414
|
+
children: item.key
|
21415
|
+
})]
|
21416
|
+
})
|
21417
|
+
}, index))
|
21418
|
+
});
|
21419
|
+
case 'tableLegend':
|
21420
|
+
return jsx("div", {
|
21421
|
+
className: "ff-legend-table-wrapper",
|
21422
|
+
children: jsxs("table", {
|
21423
|
+
className: "ff-legend-table tableLegend",
|
21424
|
+
children: [jsx("thead", {
|
21425
|
+
children: jsxs("tr", {
|
21426
|
+
children: [jsx("th", {
|
21427
|
+
className: "ff-table-header",
|
21428
|
+
children: "Name"
|
21429
|
+
}), jsx("th", {
|
21430
|
+
className: "ff-table-header",
|
21431
|
+
children: "%"
|
21432
|
+
}), jsx("th", {
|
21433
|
+
className: "ff-table-header",
|
21434
|
+
children: "Count"
|
21435
|
+
})]
|
21436
|
+
})
|
21437
|
+
}), jsx("tbody", {
|
21438
|
+
children: legendData.map((item, index) => jsxs("tr", {
|
21439
|
+
className: "ff-legend-item",
|
21440
|
+
onMouseEnter: () => setHoveredItemIndex(index),
|
21441
|
+
onMouseLeave: () => setHoveredItemIndex(null),
|
21442
|
+
children: [jsxs("td", {
|
21443
|
+
className: "ff-legend-name",
|
21444
|
+
children: [jsx("span", {
|
21445
|
+
className: "ff-legend-capsule",
|
21446
|
+
style: {
|
21447
|
+
backgroundColor: item.color ? item.color : colorMapping[index % colorMapping.length]
|
21448
|
+
},
|
21449
|
+
children: jsx(Typography, {
|
21450
|
+
fontSize: 10,
|
21451
|
+
children: item.value
|
21452
|
+
})
|
21453
|
+
}), jsx(Typography, {
|
21454
|
+
fontSize: 10,
|
21455
|
+
children: item.key
|
21456
|
+
})]
|
21457
|
+
}), jsx("td", {
|
21458
|
+
className: "ff-legend-percentage",
|
21459
|
+
children: (item.value / total * 100).toFixed(1)
|
21460
|
+
}), jsx("td", {
|
21461
|
+
className: "ff-legend-count",
|
21462
|
+
children: item.value
|
21463
|
+
})]
|
21464
|
+
}, index))
|
21465
|
+
})]
|
21466
|
+
})
|
21467
|
+
});
|
21468
|
+
default:
|
21469
|
+
return null;
|
21470
|
+
}
|
21471
|
+
};
|
21472
|
+
return jsxs("div", {
|
21473
|
+
className: classNames('ff-dashboard-donut-chart-section', {
|
21474
|
+
'ff-dashboard-donut-chart-section-table-legend': legendType === 'tableLegend'
|
21475
|
+
}),
|
21476
|
+
children: [jsxs("div", {
|
21477
|
+
className: "ff-dashboard-donut-chart-svg-container",
|
21478
|
+
children: [jsx("svg", {
|
21479
|
+
width: DONUT_SVG_SIZE,
|
21480
|
+
height: DONUT_SVG_SIZE,
|
21481
|
+
viewBox: `0 0 ${DONUT_SVG_SIZE} ${DONUT_SVG_SIZE}`,
|
21482
|
+
children: jsxs("g", {
|
21483
|
+
transform: `translate(${radius + lineWidth + SVG_PADDING}, ${radius + lineWidth + SVG_PADDING})`,
|
21484
|
+
children: [nonZeroValues?.map((status, i) => {
|
21485
|
+
const valuePercentage = status.value / total;
|
21486
|
+
let angle = Math.max(valuePercentage * (2 * Math.PI), MIN_ANGLE);
|
21487
|
+
angle += remainingAngle * (valuePercentage / total);
|
21488
|
+
const endAngle = currentAngle + angle;
|
21489
|
+
return renderArc(status, endAngle, i);
|
21490
|
+
}), showOnlyLabel ? jsx("text", {
|
21491
|
+
x: "0",
|
21492
|
+
y: "5",
|
21493
|
+
className: "ff-svg-label-text",
|
21494
|
+
textAnchor: "middle",
|
21495
|
+
fill: colorMapping[3],
|
21496
|
+
children: legendDetailsType
|
21497
|
+
}) : (legendType !== 'tableLegend' || hoveredItemIndex !== null) && jsxs(Fragment, {
|
21498
|
+
children: [jsx("text", {
|
21499
|
+
x: "0",
|
21500
|
+
y: "5",
|
21501
|
+
textAnchor: "middle",
|
21502
|
+
fill: colorMapping[3],
|
21503
|
+
children: legendType === 'tableLegend' && hoveredItemIndex !== null && nonZeroValues[hoveredItemIndex] ? `${(nonZeroValues[hoveredItemIndex].value / total * 100).toFixed(1)}%` : total
|
21504
|
+
}), jsx("text", {
|
21505
|
+
x: "0",
|
21506
|
+
y: "26",
|
21507
|
+
textAnchor: "middle",
|
21508
|
+
fill: "var(--text-color)",
|
21509
|
+
children: legendType === 'tableLegend' && hoveredItemIndex !== null && nonZeroValues[hoveredItemIndex] ? nonZeroValues[hoveredItemIndex].key : legendDetailsType
|
21510
|
+
})]
|
21511
|
+
})]
|
21512
|
+
})
|
21513
|
+
}), legendType === 'tableLegend' && jsxs("div", {
|
21514
|
+
children: [jsxs(Typography, {
|
21515
|
+
fontWeight: "semi-bold",
|
21516
|
+
children: [legendDetailsType, " "]
|
21517
|
+
}), jsxs(Typography, {
|
21518
|
+
children: [" ", `Total ${legendDetailsType} - ${total}`, " "]
|
21519
|
+
})]
|
21520
|
+
}), showTooltip && renderTooltip()]
|
21521
|
+
}), isLegendDetails && renderLegend(nonZeroValues, legendType)]
|
21522
|
+
});
|
21523
|
+
};
|
21524
|
+
|
21525
|
+
var propTypes = {exports: {}};
|
21526
|
+
|
21527
|
+
var reactIs = {exports: {}};
|
21528
|
+
|
21529
|
+
var reactIs_production_min = {};
|
21530
|
+
|
21531
|
+
/** @license React v16.13.1
|
21532
|
+
* react-is.production.min.js
|
21533
|
+
*
|
21534
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
21535
|
+
*
|
21536
|
+
* This source code is licensed under the MIT license found in the
|
21537
|
+
* LICENSE file in the root directory of this source tree.
|
21538
|
+
*/
|
21539
|
+
var hasRequiredReactIs_production_min;
|
21540
|
+
function requireReactIs_production_min() {
|
21541
|
+
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
21542
|
+
hasRequiredReactIs_production_min = 1;
|
21543
|
+
var b = "function" === typeof Symbol && Symbol.for,
|
21544
|
+
c = b ? Symbol.for("react.element") : 60103,
|
21545
|
+
d = b ? Symbol.for("react.portal") : 60106,
|
21546
|
+
e = b ? Symbol.for("react.fragment") : 60107,
|
21547
|
+
f = b ? Symbol.for("react.strict_mode") : 60108,
|
21548
|
+
g = b ? Symbol.for("react.profiler") : 60114,
|
21549
|
+
h = b ? Symbol.for("react.provider") : 60109,
|
21550
|
+
k = b ? Symbol.for("react.context") : 60110,
|
21551
|
+
l = b ? Symbol.for("react.async_mode") : 60111,
|
21552
|
+
m = b ? Symbol.for("react.concurrent_mode") : 60111,
|
21553
|
+
n = b ? Symbol.for("react.forward_ref") : 60112,
|
21554
|
+
p = b ? Symbol.for("react.suspense") : 60113,
|
21555
|
+
q = b ? Symbol.for("react.suspense_list") : 60120,
|
21556
|
+
r = b ? Symbol.for("react.memo") : 60115,
|
21557
|
+
t = b ? Symbol.for("react.lazy") : 60116,
|
21558
|
+
v = b ? Symbol.for("react.block") : 60121,
|
21559
|
+
w = b ? Symbol.for("react.fundamental") : 60117,
|
21560
|
+
x = b ? Symbol.for("react.responder") : 60118,
|
21561
|
+
y = b ? Symbol.for("react.scope") : 60119;
|
21562
|
+
function z(a) {
|
21563
|
+
if ("object" === typeof a && null !== a) {
|
21564
|
+
var u = a.$$typeof;
|
21565
|
+
switch (u) {
|
21566
|
+
case c:
|
21567
|
+
switch (a = a.type, a) {
|
21568
|
+
case l:
|
21569
|
+
case m:
|
21570
|
+
case e:
|
21571
|
+
case g:
|
21572
|
+
case f:
|
21573
|
+
case p:
|
21574
|
+
return a;
|
21575
|
+
default:
|
21576
|
+
switch (a = a && a.$$typeof, a) {
|
21577
|
+
case k:
|
21578
|
+
case n:
|
21579
|
+
case t:
|
21580
|
+
case r:
|
21581
|
+
case h:
|
21582
|
+
return a;
|
21583
|
+
default:
|
21584
|
+
return u;
|
21585
|
+
}
|
21586
|
+
}
|
21587
|
+
case d:
|
21588
|
+
return u;
|
21589
|
+
}
|
21590
|
+
}
|
21591
|
+
}
|
21592
|
+
function A(a) {
|
21593
|
+
return z(a) === m;
|
21594
|
+
}
|
21595
|
+
reactIs_production_min.AsyncMode = l;
|
21596
|
+
reactIs_production_min.ConcurrentMode = m;
|
21597
|
+
reactIs_production_min.ContextConsumer = k;
|
21598
|
+
reactIs_production_min.ContextProvider = h;
|
21599
|
+
reactIs_production_min.Element = c;
|
21600
|
+
reactIs_production_min.ForwardRef = n;
|
21601
|
+
reactIs_production_min.Fragment = e;
|
21602
|
+
reactIs_production_min.Lazy = t;
|
21603
|
+
reactIs_production_min.Memo = r;
|
21604
|
+
reactIs_production_min.Portal = d;
|
21605
|
+
reactIs_production_min.Profiler = g;
|
21606
|
+
reactIs_production_min.StrictMode = f;
|
21607
|
+
reactIs_production_min.Suspense = p;
|
21608
|
+
reactIs_production_min.isAsyncMode = function (a) {
|
21609
|
+
return A(a) || z(a) === l;
|
21610
|
+
};
|
21611
|
+
reactIs_production_min.isConcurrentMode = A;
|
21612
|
+
reactIs_production_min.isContextConsumer = function (a) {
|
21613
|
+
return z(a) === k;
|
21614
|
+
};
|
21615
|
+
reactIs_production_min.isContextProvider = function (a) {
|
21616
|
+
return z(a) === h;
|
21617
|
+
};
|
21618
|
+
reactIs_production_min.isElement = function (a) {
|
21619
|
+
return "object" === typeof a && null !== a && a.$$typeof === c;
|
21620
|
+
};
|
21621
|
+
reactIs_production_min.isForwardRef = function (a) {
|
21622
|
+
return z(a) === n;
|
21623
|
+
};
|
21624
|
+
reactIs_production_min.isFragment = function (a) {
|
21625
|
+
return z(a) === e;
|
21626
|
+
};
|
21627
|
+
reactIs_production_min.isLazy = function (a) {
|
21628
|
+
return z(a) === t;
|
21629
|
+
};
|
21630
|
+
reactIs_production_min.isMemo = function (a) {
|
21631
|
+
return z(a) === r;
|
21632
|
+
};
|
21633
|
+
reactIs_production_min.isPortal = function (a) {
|
21634
|
+
return z(a) === d;
|
21635
|
+
};
|
21636
|
+
reactIs_production_min.isProfiler = function (a) {
|
21637
|
+
return z(a) === g;
|
21638
|
+
};
|
21639
|
+
reactIs_production_min.isStrictMode = function (a) {
|
21640
|
+
return z(a) === f;
|
21641
|
+
};
|
21642
|
+
reactIs_production_min.isSuspense = function (a) {
|
21643
|
+
return z(a) === p;
|
21644
|
+
};
|
21645
|
+
reactIs_production_min.isValidElementType = function (a) {
|
21646
|
+
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
|
21647
|
+
};
|
21648
|
+
reactIs_production_min.typeOf = z;
|
21649
|
+
return reactIs_production_min;
|
21650
|
+
}
|
21651
|
+
|
21652
|
+
var reactIs_development = {};
|
21653
|
+
|
21654
|
+
/** @license React v16.13.1
|
21655
|
+
* react-is.development.js
|
21656
|
+
*
|
21657
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
21658
|
+
*
|
21659
|
+
* This source code is licensed under the MIT license found in the
|
21660
|
+
* LICENSE file in the root directory of this source tree.
|
21661
|
+
*/
|
21662
|
+
var hasRequiredReactIs_development;
|
21663
|
+
function requireReactIs_development() {
|
21664
|
+
if (hasRequiredReactIs_development) return reactIs_development;
|
21665
|
+
hasRequiredReactIs_development = 1;
|
21666
|
+
if (process.env.NODE_ENV !== "production") {
|
21667
|
+
(function () {
|
21668
|
+
|
21669
|
+
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
21670
|
+
// nor polyfill, then a plain number is used for performance.
|
21671
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
21672
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
21673
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
21674
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
21675
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
21676
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
21677
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
21678
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
21679
|
+
// (unstable) APIs that have been removed. Can we remove the symbols?
|
21680
|
+
|
21681
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
21682
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
21683
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
21684
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
21685
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
21686
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
21687
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
21688
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
21689
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
21690
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
21691
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
21692
|
+
function isValidElementType(type) {
|
21693
|
+
return typeof type === 'string' || typeof type === 'function' ||
|
21694
|
+
// Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
21695
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
21696
|
+
}
|
21697
|
+
function typeOf(object) {
|
21698
|
+
if (typeof object === 'object' && object !== null) {
|
21699
|
+
var $$typeof = object.$$typeof;
|
21700
|
+
switch ($$typeof) {
|
21701
|
+
case REACT_ELEMENT_TYPE:
|
21702
|
+
var type = object.type;
|
21703
|
+
switch (type) {
|
21704
|
+
case REACT_ASYNC_MODE_TYPE:
|
21705
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
21706
|
+
case REACT_FRAGMENT_TYPE:
|
21707
|
+
case REACT_PROFILER_TYPE:
|
21708
|
+
case REACT_STRICT_MODE_TYPE:
|
21709
|
+
case REACT_SUSPENSE_TYPE:
|
21710
|
+
return type;
|
21711
|
+
default:
|
21712
|
+
var $$typeofType = type && type.$$typeof;
|
21713
|
+
switch ($$typeofType) {
|
21714
|
+
case REACT_CONTEXT_TYPE:
|
21715
|
+
case REACT_FORWARD_REF_TYPE:
|
21716
|
+
case REACT_LAZY_TYPE:
|
21717
|
+
case REACT_MEMO_TYPE:
|
21718
|
+
case REACT_PROVIDER_TYPE:
|
21719
|
+
return $$typeofType;
|
21720
|
+
default:
|
21721
|
+
return $$typeof;
|
21722
|
+
}
|
21723
|
+
}
|
21724
|
+
case REACT_PORTAL_TYPE:
|
21725
|
+
return $$typeof;
|
21726
|
+
}
|
21727
|
+
}
|
21728
|
+
return undefined;
|
21729
|
+
} // AsyncMode is deprecated along with isAsyncMode
|
21730
|
+
|
21731
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
21732
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
21733
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
21734
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
21735
|
+
var Element = REACT_ELEMENT_TYPE;
|
21736
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
21737
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
21738
|
+
var Lazy = REACT_LAZY_TYPE;
|
21739
|
+
var Memo = REACT_MEMO_TYPE;
|
21740
|
+
var Portal = REACT_PORTAL_TYPE;
|
21741
|
+
var Profiler = REACT_PROFILER_TYPE;
|
21742
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
21743
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
21744
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
21745
|
+
|
21746
|
+
function isAsyncMode(object) {
|
21747
|
+
{
|
21748
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
21749
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
21750
|
+
|
21751
|
+
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
21752
|
+
}
|
21753
|
+
}
|
21754
|
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
21755
|
+
}
|
21756
|
+
function isConcurrentMode(object) {
|
21757
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
21758
|
+
}
|
21759
|
+
function isContextConsumer(object) {
|
21760
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
21761
|
+
}
|
21762
|
+
function isContextProvider(object) {
|
21763
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
21764
|
+
}
|
21765
|
+
function isElement(object) {
|
21766
|
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
21767
|
+
}
|
21768
|
+
function isForwardRef(object) {
|
21769
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
21770
|
+
}
|
21771
|
+
function isFragment(object) {
|
21772
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
21773
|
+
}
|
21774
|
+
function isLazy(object) {
|
21775
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
21776
|
+
}
|
21777
|
+
function isMemo(object) {
|
21778
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
21779
|
+
}
|
21780
|
+
function isPortal(object) {
|
21781
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
21782
|
+
}
|
21783
|
+
function isProfiler(object) {
|
21784
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
21785
|
+
}
|
21786
|
+
function isStrictMode(object) {
|
21787
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
21788
|
+
}
|
21789
|
+
function isSuspense(object) {
|
21790
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
21791
|
+
}
|
21792
|
+
reactIs_development.AsyncMode = AsyncMode;
|
21793
|
+
reactIs_development.ConcurrentMode = ConcurrentMode;
|
21794
|
+
reactIs_development.ContextConsumer = ContextConsumer;
|
21795
|
+
reactIs_development.ContextProvider = ContextProvider;
|
21796
|
+
reactIs_development.Element = Element;
|
21797
|
+
reactIs_development.ForwardRef = ForwardRef;
|
21798
|
+
reactIs_development.Fragment = Fragment;
|
21799
|
+
reactIs_development.Lazy = Lazy;
|
21800
|
+
reactIs_development.Memo = Memo;
|
21801
|
+
reactIs_development.Portal = Portal;
|
21802
|
+
reactIs_development.Profiler = Profiler;
|
21803
|
+
reactIs_development.StrictMode = StrictMode;
|
21804
|
+
reactIs_development.Suspense = Suspense;
|
21805
|
+
reactIs_development.isAsyncMode = isAsyncMode;
|
21806
|
+
reactIs_development.isConcurrentMode = isConcurrentMode;
|
21807
|
+
reactIs_development.isContextConsumer = isContextConsumer;
|
21808
|
+
reactIs_development.isContextProvider = isContextProvider;
|
21809
|
+
reactIs_development.isElement = isElement;
|
21810
|
+
reactIs_development.isForwardRef = isForwardRef;
|
21811
|
+
reactIs_development.isFragment = isFragment;
|
21812
|
+
reactIs_development.isLazy = isLazy;
|
21813
|
+
reactIs_development.isMemo = isMemo;
|
21814
|
+
reactIs_development.isPortal = isPortal;
|
21815
|
+
reactIs_development.isProfiler = isProfiler;
|
21816
|
+
reactIs_development.isStrictMode = isStrictMode;
|
21817
|
+
reactIs_development.isSuspense = isSuspense;
|
21818
|
+
reactIs_development.isValidElementType = isValidElementType;
|
21819
|
+
reactIs_development.typeOf = typeOf;
|
21820
|
+
})();
|
21821
|
+
}
|
21822
|
+
return reactIs_development;
|
21823
|
+
}
|
21824
|
+
|
21825
|
+
var hasRequiredReactIs;
|
21826
|
+
function requireReactIs() {
|
21827
|
+
if (hasRequiredReactIs) return reactIs.exports;
|
21828
|
+
hasRequiredReactIs = 1;
|
21829
|
+
if (process.env.NODE_ENV === 'production') {
|
21830
|
+
reactIs.exports = requireReactIs_production_min();
|
21831
|
+
} else {
|
21832
|
+
reactIs.exports = requireReactIs_development();
|
21833
|
+
}
|
21834
|
+
return reactIs.exports;
|
21835
|
+
}
|
21836
|
+
|
21837
|
+
/*
|
21838
|
+
object-assign
|
21839
|
+
(c) Sindre Sorhus
|
21840
|
+
@license MIT
|
21841
|
+
*/
|
21842
|
+
var objectAssign;
|
21843
|
+
var hasRequiredObjectAssign;
|
21844
|
+
function requireObjectAssign() {
|
21845
|
+
if (hasRequiredObjectAssign) return objectAssign;
|
21846
|
+
hasRequiredObjectAssign = 1;
|
21847
|
+
/* eslint-disable no-unused-vars */
|
21848
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
21849
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
21850
|
+
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
21851
|
+
function toObject(val) {
|
21852
|
+
if (val === null || val === undefined) {
|
21853
|
+
throw new TypeError('Object.assign cannot be called with null or undefined');
|
21854
|
+
}
|
21855
|
+
return Object(val);
|
21856
|
+
}
|
21857
|
+
function shouldUseNative() {
|
21858
|
+
try {
|
21859
|
+
if (!Object.assign) {
|
21860
|
+
return false;
|
21861
|
+
}
|
21862
|
+
|
21863
|
+
// Detect buggy property enumeration order in older V8 versions.
|
21864
|
+
|
21865
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
21866
|
+
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
21867
|
+
test1[5] = 'de';
|
21868
|
+
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
21869
|
+
return false;
|
21870
|
+
}
|
21871
|
+
|
21872
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
21873
|
+
var test2 = {};
|
21874
|
+
for (var i = 0; i < 10; i++) {
|
21875
|
+
test2['_' + String.fromCharCode(i)] = i;
|
21876
|
+
}
|
21877
|
+
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
21878
|
+
return test2[n];
|
21879
|
+
});
|
21880
|
+
if (order2.join('') !== '0123456789') {
|
21881
|
+
return false;
|
21882
|
+
}
|
21883
|
+
|
21884
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
21885
|
+
var test3 = {};
|
21886
|
+
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
21887
|
+
test3[letter] = letter;
|
21888
|
+
});
|
21889
|
+
if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {
|
21890
|
+
return false;
|
21891
|
+
}
|
21892
|
+
return true;
|
21893
|
+
} catch (err) {
|
21894
|
+
// We don't expect any of the above to throw, but better to be safe.
|
21895
|
+
return false;
|
21896
|
+
}
|
21897
|
+
}
|
21898
|
+
objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
|
21899
|
+
var from;
|
21900
|
+
var to = toObject(target);
|
21901
|
+
var symbols;
|
21902
|
+
for (var s = 1; s < arguments.length; s++) {
|
21903
|
+
from = Object(arguments[s]);
|
21904
|
+
for (var key in from) {
|
21905
|
+
if (hasOwnProperty.call(from, key)) {
|
21906
|
+
to[key] = from[key];
|
21907
|
+
}
|
21908
|
+
}
|
21909
|
+
if (getOwnPropertySymbols) {
|
21910
|
+
symbols = getOwnPropertySymbols(from);
|
21911
|
+
for (var i = 0; i < symbols.length; i++) {
|
21912
|
+
if (propIsEnumerable.call(from, symbols[i])) {
|
21913
|
+
to[symbols[i]] = from[symbols[i]];
|
21914
|
+
}
|
21915
|
+
}
|
21916
|
+
}
|
21917
|
+
}
|
21918
|
+
return to;
|
21919
|
+
};
|
21920
|
+
return objectAssign;
|
21921
|
+
}
|
21922
|
+
|
21923
|
+
/**
|
21924
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
21925
|
+
*
|
21926
|
+
* This source code is licensed under the MIT license found in the
|
21927
|
+
* LICENSE file in the root directory of this source tree.
|
21928
|
+
*/
|
21929
|
+
var ReactPropTypesSecret_1;
|
21930
|
+
var hasRequiredReactPropTypesSecret;
|
21931
|
+
function requireReactPropTypesSecret() {
|
21932
|
+
if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
|
21933
|
+
hasRequiredReactPropTypesSecret = 1;
|
21934
|
+
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
21935
|
+
ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
21936
|
+
return ReactPropTypesSecret_1;
|
21937
|
+
}
|
21938
|
+
|
21939
|
+
var has;
|
21940
|
+
var hasRequiredHas;
|
21941
|
+
function requireHas() {
|
21942
|
+
if (hasRequiredHas) return has;
|
21943
|
+
hasRequiredHas = 1;
|
21944
|
+
has = Function.call.bind(Object.prototype.hasOwnProperty);
|
21945
|
+
return has;
|
21946
|
+
}
|
21947
|
+
|
21948
|
+
/**
|
21949
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
21950
|
+
*
|
21951
|
+
* This source code is licensed under the MIT license found in the
|
21952
|
+
* LICENSE file in the root directory of this source tree.
|
21953
|
+
*/
|
21954
|
+
var checkPropTypes_1;
|
21955
|
+
var hasRequiredCheckPropTypes;
|
21956
|
+
function requireCheckPropTypes() {
|
21957
|
+
if (hasRequiredCheckPropTypes) return checkPropTypes_1;
|
21958
|
+
hasRequiredCheckPropTypes = 1;
|
21959
|
+
var printWarning = function () {};
|
21960
|
+
if (process.env.NODE_ENV !== 'production') {
|
21961
|
+
var ReactPropTypesSecret = /*@__PURE__*/requireReactPropTypesSecret();
|
21962
|
+
var loggedTypeFailures = {};
|
21963
|
+
var has = /*@__PURE__*/requireHas();
|
21964
|
+
printWarning = function (text) {
|
21965
|
+
var message = 'Warning: ' + text;
|
21966
|
+
if (typeof console !== 'undefined') {
|
21967
|
+
console.error(message);
|
21968
|
+
}
|
21969
|
+
try {
|
21970
|
+
// --- Welcome to debugging React ---
|
21971
|
+
// This error was thrown as a convenience so that you can use this stack
|
21972
|
+
// to find the callsite that caused this warning to fire.
|
21973
|
+
throw new Error(message);
|
21974
|
+
} catch (x) {/**/}
|
21975
|
+
};
|
21976
|
+
}
|
21977
|
+
|
21978
|
+
/**
|
21979
|
+
* Assert that the values match with the type specs.
|
21980
|
+
* Error messages are memorized and will only be shown once.
|
21981
|
+
*
|
21982
|
+
* @param {object} typeSpecs Map of name to a ReactPropType
|
21983
|
+
* @param {object} values Runtime values that need to be type-checked
|
21984
|
+
* @param {string} location e.g. "prop", "context", "child context"
|
21985
|
+
* @param {string} componentName Name of the component for error messages.
|
21986
|
+
* @param {?Function} getStack Returns the component stack.
|
21987
|
+
* @private
|
21988
|
+
*/
|
21989
|
+
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
21990
|
+
if (process.env.NODE_ENV !== 'production') {
|
21991
|
+
for (var typeSpecName in typeSpecs) {
|
21992
|
+
if (has(typeSpecs, typeSpecName)) {
|
21993
|
+
var error;
|
21994
|
+
// Prop type validation may throw. In case they do, we don't want to
|
21995
|
+
// fail the render phase where it didn't fail before. So we log it.
|
21996
|
+
// After these have been cleaned up, we'll let them throw.
|
21997
|
+
try {
|
21998
|
+
// This is intentionally an invariant that gets caught. It's the same
|
21999
|
+
// behavior as without this statement except with a better message.
|
22000
|
+
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
22001
|
+
var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
|
22002
|
+
err.name = 'Invariant Violation';
|
22003
|
+
throw err;
|
22004
|
+
}
|
22005
|
+
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
22006
|
+
} catch (ex) {
|
22007
|
+
error = ex;
|
22008
|
+
}
|
22009
|
+
if (error && !(error instanceof Error)) {
|
22010
|
+
printWarning((componentName || 'React class') + ': type specification of ' + location + ' `' + typeSpecName + '` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).');
|
22011
|
+
}
|
22012
|
+
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
22013
|
+
// Only monitor this failure once because there tends to be a lot of the
|
22014
|
+
// same error.
|
22015
|
+
loggedTypeFailures[error.message] = true;
|
22016
|
+
var stack = getStack ? getStack() : '';
|
22017
|
+
printWarning('Failed ' + location + ' type: ' + error.message + (stack != null ? stack : ''));
|
22018
|
+
}
|
22019
|
+
}
|
22020
|
+
}
|
22021
|
+
}
|
22022
|
+
}
|
22023
|
+
|
22024
|
+
/**
|
22025
|
+
* Resets warning cache when testing.
|
22026
|
+
*
|
22027
|
+
* @private
|
22028
|
+
*/
|
22029
|
+
checkPropTypes.resetWarningCache = function () {
|
22030
|
+
if (process.env.NODE_ENV !== 'production') {
|
22031
|
+
loggedTypeFailures = {};
|
22032
|
+
}
|
22033
|
+
};
|
22034
|
+
checkPropTypes_1 = checkPropTypes;
|
22035
|
+
return checkPropTypes_1;
|
22036
|
+
}
|
22037
|
+
|
22038
|
+
/**
|
22039
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
22040
|
+
*
|
22041
|
+
* This source code is licensed under the MIT license found in the
|
22042
|
+
* LICENSE file in the root directory of this source tree.
|
22043
|
+
*/
|
22044
|
+
var factoryWithTypeCheckers;
|
22045
|
+
var hasRequiredFactoryWithTypeCheckers;
|
22046
|
+
function requireFactoryWithTypeCheckers() {
|
22047
|
+
if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
|
22048
|
+
hasRequiredFactoryWithTypeCheckers = 1;
|
22049
|
+
var ReactIs = requireReactIs();
|
22050
|
+
var assign = requireObjectAssign();
|
22051
|
+
var ReactPropTypesSecret = /*@__PURE__*/requireReactPropTypesSecret();
|
22052
|
+
var has = /*@__PURE__*/requireHas();
|
22053
|
+
var checkPropTypes = /*@__PURE__*/requireCheckPropTypes();
|
22054
|
+
var printWarning = function () {};
|
22055
|
+
if (process.env.NODE_ENV !== 'production') {
|
22056
|
+
printWarning = function (text) {
|
22057
|
+
var message = 'Warning: ' + text;
|
22058
|
+
if (typeof console !== 'undefined') {
|
22059
|
+
console.error(message);
|
22060
|
+
}
|
22061
|
+
try {
|
22062
|
+
// --- Welcome to debugging React ---
|
22063
|
+
// This error was thrown as a convenience so that you can use this stack
|
22064
|
+
// to find the callsite that caused this warning to fire.
|
22065
|
+
throw new Error(message);
|
22066
|
+
} catch (x) {}
|
22067
|
+
};
|
22068
|
+
}
|
22069
|
+
function emptyFunctionThatReturnsNull() {
|
22070
|
+
return null;
|
22071
|
+
}
|
22072
|
+
factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
|
22073
|
+
/* global Symbol */
|
22074
|
+
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
22075
|
+
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
22076
|
+
|
22077
|
+
/**
|
22078
|
+
* Returns the iterator method function contained on the iterable object.
|
22079
|
+
*
|
22080
|
+
* Be sure to invoke the function with the iterable as context:
|
22081
|
+
*
|
22082
|
+
* var iteratorFn = getIteratorFn(myIterable);
|
22083
|
+
* if (iteratorFn) {
|
22084
|
+
* var iterator = iteratorFn.call(myIterable);
|
22085
|
+
* ...
|
22086
|
+
* }
|
22087
|
+
*
|
22088
|
+
* @param {?object} maybeIterable
|
22089
|
+
* @return {?function}
|
22090
|
+
*/
|
22091
|
+
function getIteratorFn(maybeIterable) {
|
22092
|
+
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
22093
|
+
if (typeof iteratorFn === 'function') {
|
22094
|
+
return iteratorFn;
|
22095
|
+
}
|
22096
|
+
}
|
22097
|
+
|
22098
|
+
/**
|
22099
|
+
* Collection of methods that allow declaration and validation of props that are
|
22100
|
+
* supplied to React components. Example usage:
|
22101
|
+
*
|
22102
|
+
* var Props = require('ReactPropTypes');
|
22103
|
+
* var MyArticle = React.createClass({
|
22104
|
+
* propTypes: {
|
22105
|
+
* // An optional string prop named "description".
|
22106
|
+
* description: Props.string,
|
22107
|
+
*
|
22108
|
+
* // A required enum prop named "category".
|
22109
|
+
* category: Props.oneOf(['News','Photos']).isRequired,
|
22110
|
+
*
|
22111
|
+
* // A prop named "dialog" that requires an instance of Dialog.
|
22112
|
+
* dialog: Props.instanceOf(Dialog).isRequired
|
22113
|
+
* },
|
22114
|
+
* render: function() { ... }
|
22115
|
+
* });
|
22116
|
+
*
|
22117
|
+
* A more formal specification of how these methods are used:
|
22118
|
+
*
|
22119
|
+
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
22120
|
+
* decl := ReactPropTypes.{type}(.isRequired)?
|
22121
|
+
*
|
22122
|
+
* Each and every declaration produces a function with the same signature. This
|
22123
|
+
* allows the creation of custom validation functions. For example:
|
22124
|
+
*
|
22125
|
+
* var MyLink = React.createClass({
|
22126
|
+
* propTypes: {
|
22127
|
+
* // An optional string or URI prop named "href".
|
22128
|
+
* href: function(props, propName, componentName) {
|
22129
|
+
* var propValue = props[propName];
|
22130
|
+
* if (propValue != null && typeof propValue !== 'string' &&
|
22131
|
+
* !(propValue instanceof URI)) {
|
22132
|
+
* return new Error(
|
22133
|
+
* 'Expected a string or an URI for ' + propName + ' in ' +
|
22134
|
+
* componentName
|
22135
|
+
* );
|
22136
|
+
* }
|
22137
|
+
* }
|
22138
|
+
* },
|
22139
|
+
* render: function() {...}
|
22140
|
+
* });
|
22141
|
+
*
|
22142
|
+
* @internal
|
22143
|
+
*/
|
22144
|
+
|
22145
|
+
var ANONYMOUS = '<<anonymous>>';
|
22146
|
+
|
22147
|
+
// Important!
|
22148
|
+
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
22149
|
+
var ReactPropTypes = {
|
22150
|
+
array: createPrimitiveTypeChecker('array'),
|
22151
|
+
bigint: createPrimitiveTypeChecker('bigint'),
|
22152
|
+
bool: createPrimitiveTypeChecker('boolean'),
|
22153
|
+
func: createPrimitiveTypeChecker('function'),
|
22154
|
+
number: createPrimitiveTypeChecker('number'),
|
22155
|
+
object: createPrimitiveTypeChecker('object'),
|
22156
|
+
string: createPrimitiveTypeChecker('string'),
|
22157
|
+
symbol: createPrimitiveTypeChecker('symbol'),
|
22158
|
+
any: createAnyTypeChecker(),
|
22159
|
+
arrayOf: createArrayOfTypeChecker,
|
22160
|
+
element: createElementTypeChecker(),
|
22161
|
+
elementType: createElementTypeTypeChecker(),
|
22162
|
+
instanceOf: createInstanceTypeChecker,
|
22163
|
+
node: createNodeChecker(),
|
22164
|
+
objectOf: createObjectOfTypeChecker,
|
22165
|
+
oneOf: createEnumTypeChecker,
|
22166
|
+
oneOfType: createUnionTypeChecker,
|
22167
|
+
shape: createShapeTypeChecker,
|
22168
|
+
exact: createStrictShapeTypeChecker
|
22169
|
+
};
|
22170
|
+
|
22171
|
+
/**
|
22172
|
+
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
22173
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
22174
|
+
*/
|
22175
|
+
/*eslint-disable no-self-compare*/
|
22176
|
+
function is(x, y) {
|
22177
|
+
// SameValue algorithm
|
22178
|
+
if (x === y) {
|
22179
|
+
// Steps 1-5, 7-10
|
22180
|
+
// Steps 6.b-6.e: +0 != -0
|
22181
|
+
return x !== 0 || 1 / x === 1 / y;
|
22182
|
+
} else {
|
22183
|
+
// Step 6.a: NaN == NaN
|
22184
|
+
return x !== x && y !== y;
|
22185
|
+
}
|
22186
|
+
}
|
22187
|
+
/*eslint-enable no-self-compare*/
|
22188
|
+
|
22189
|
+
/**
|
22190
|
+
* We use an Error-like object for backward compatibility as people may call
|
22191
|
+
* PropTypes directly and inspect their output. However, we don't use real
|
22192
|
+
* Errors anymore. We don't inspect their stack anyway, and creating them
|
22193
|
+
* is prohibitively expensive if they are created too often, such as what
|
22194
|
+
* happens in oneOfType() for any type before the one that matched.
|
22195
|
+
*/
|
22196
|
+
function PropTypeError(message, data) {
|
22197
|
+
this.message = message;
|
22198
|
+
this.data = data && typeof data === 'object' ? data : {};
|
22199
|
+
this.stack = '';
|
22200
|
+
}
|
22201
|
+
// Make `instanceof Error` still work for returned errors.
|
22202
|
+
PropTypeError.prototype = Error.prototype;
|
22203
|
+
function createChainableTypeChecker(validate) {
|
22204
|
+
if (process.env.NODE_ENV !== 'production') {
|
22205
|
+
var manualPropTypeCallCache = {};
|
22206
|
+
var manualPropTypeWarningCount = 0;
|
22207
|
+
}
|
22208
|
+
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
22209
|
+
componentName = componentName || ANONYMOUS;
|
22210
|
+
propFullName = propFullName || propName;
|
22211
|
+
if (secret !== ReactPropTypesSecret) {
|
22212
|
+
if (throwOnDirectAccess) {
|
22213
|
+
// New behavior only for users of `prop-types` package
|
22214
|
+
var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use `PropTypes.checkPropTypes()` to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
|
22215
|
+
err.name = 'Invariant Violation';
|
22216
|
+
throw err;
|
22217
|
+
} else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
|
22218
|
+
// Old behavior for people using React.PropTypes
|
22219
|
+
var cacheKey = componentName + ':' + propName;
|
22220
|
+
if (!manualPropTypeCallCache[cacheKey] &&
|
22221
|
+
// Avoid spamming the console because they are often not actionable except for lib authors
|
22222
|
+
manualPropTypeWarningCount < 3) {
|
22223
|
+
printWarning('You are manually calling a React.PropTypes validation ' + 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' + 'and will throw in the standalone `prop-types` package. ' + 'You may be seeing this warning due to a third-party PropTypes ' + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.');
|
22224
|
+
manualPropTypeCallCache[cacheKey] = true;
|
22225
|
+
manualPropTypeWarningCount++;
|
22226
|
+
}
|
22227
|
+
}
|
22228
|
+
}
|
22229
|
+
if (props[propName] == null) {
|
22230
|
+
if (isRequired) {
|
22231
|
+
if (props[propName] === null) {
|
22232
|
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
22233
|
+
}
|
22234
|
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
22235
|
+
}
|
22236
|
+
return null;
|
22237
|
+
} else {
|
22238
|
+
return validate(props, propName, componentName, location, propFullName);
|
22239
|
+
}
|
22240
|
+
}
|
22241
|
+
var chainedCheckType = checkType.bind(null, false);
|
22242
|
+
chainedCheckType.isRequired = checkType.bind(null, true);
|
22243
|
+
return chainedCheckType;
|
22244
|
+
}
|
22245
|
+
function createPrimitiveTypeChecker(expectedType) {
|
22246
|
+
function validate(props, propName, componentName, location, propFullName, secret) {
|
22247
|
+
var propValue = props[propName];
|
22248
|
+
var propType = getPropType(propValue);
|
22249
|
+
if (propType !== expectedType) {
|
22250
|
+
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
22251
|
+
// check, but we can offer a more precise error message here rather than
|
22252
|
+
// 'of type `object`'.
|
22253
|
+
var preciseType = getPreciseType(propValue);
|
22254
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'), {
|
22255
|
+
expectedType: expectedType
|
22256
|
+
});
|
22257
|
+
}
|
22258
|
+
return null;
|
22259
|
+
}
|
22260
|
+
return createChainableTypeChecker(validate);
|
22261
|
+
}
|
22262
|
+
function createAnyTypeChecker() {
|
22263
|
+
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
22264
|
+
}
|
22265
|
+
function createArrayOfTypeChecker(typeChecker) {
|
22266
|
+
function validate(props, propName, componentName, location, propFullName) {
|
22267
|
+
if (typeof typeChecker !== 'function') {
|
22268
|
+
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
|
22269
|
+
}
|
22270
|
+
var propValue = props[propName];
|
22271
|
+
if (!Array.isArray(propValue)) {
|
22272
|
+
var propType = getPropType(propValue);
|
22273
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
22274
|
+
}
|
22275
|
+
for (var i = 0; i < propValue.length; i++) {
|
22276
|
+
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
|
22277
|
+
if (error instanceof Error) {
|
22278
|
+
return error;
|
22279
|
+
}
|
22280
|
+
}
|
22281
|
+
return null;
|
22282
|
+
}
|
22283
|
+
return createChainableTypeChecker(validate);
|
22284
|
+
}
|
22285
|
+
function createElementTypeChecker() {
|
22286
|
+
function validate(props, propName, componentName, location, propFullName) {
|
22287
|
+
var propValue = props[propName];
|
22288
|
+
if (!isValidElement(propValue)) {
|
22289
|
+
var propType = getPropType(propValue);
|
22290
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
22291
|
+
}
|
22292
|
+
return null;
|
22293
|
+
}
|
22294
|
+
return createChainableTypeChecker(validate);
|
22295
|
+
}
|
22296
|
+
function createElementTypeTypeChecker() {
|
22297
|
+
function validate(props, propName, componentName, location, propFullName) {
|
22298
|
+
var propValue = props[propName];
|
22299
|
+
if (!ReactIs.isValidElementType(propValue)) {
|
22300
|
+
var propType = getPropType(propValue);
|
22301
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
|
22302
|
+
}
|
22303
|
+
return null;
|
22304
|
+
}
|
22305
|
+
return createChainableTypeChecker(validate);
|
22306
|
+
}
|
22307
|
+
function createInstanceTypeChecker(expectedClass) {
|
22308
|
+
function validate(props, propName, componentName, location, propFullName) {
|
22309
|
+
if (!(props[propName] instanceof expectedClass)) {
|
22310
|
+
var expectedClassName = expectedClass.name || ANONYMOUS;
|
22311
|
+
var actualClassName = getClassName(props[propName]);
|
22312
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
22313
|
+
}
|
22314
|
+
return null;
|
22315
|
+
}
|
22316
|
+
return createChainableTypeChecker(validate);
|
22317
|
+
}
|
22318
|
+
function createEnumTypeChecker(expectedValues) {
|
22319
|
+
if (!Array.isArray(expectedValues)) {
|
22320
|
+
if (process.env.NODE_ENV !== 'production') {
|
22321
|
+
if (arguments.length > 1) {
|
22322
|
+
printWarning('Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' + 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).');
|
22323
|
+
} else {
|
22324
|
+
printWarning('Invalid argument supplied to oneOf, expected an array.');
|
22325
|
+
}
|
22326
|
+
}
|
22327
|
+
return emptyFunctionThatReturnsNull;
|
22328
|
+
}
|
22329
|
+
function validate(props, propName, componentName, location, propFullName) {
|
22330
|
+
var propValue = props[propName];
|
22331
|
+
for (var i = 0; i < expectedValues.length; i++) {
|
22332
|
+
if (is(propValue, expectedValues[i])) {
|
22333
|
+
return null;
|
22334
|
+
}
|
22335
|
+
}
|
22336
|
+
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
22337
|
+
var type = getPreciseType(value);
|
22338
|
+
if (type === 'symbol') {
|
22339
|
+
return String(value);
|
22340
|
+
}
|
22341
|
+
return value;
|
22342
|
+
});
|
22343
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
22344
|
+
}
|
22345
|
+
return createChainableTypeChecker(validate);
|
22346
|
+
}
|
22347
|
+
function createObjectOfTypeChecker(typeChecker) {
|
22348
|
+
function validate(props, propName, componentName, location, propFullName) {
|
22349
|
+
if (typeof typeChecker !== 'function') {
|
22350
|
+
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
|
22351
|
+
}
|
22352
|
+
var propValue = props[propName];
|
22353
|
+
var propType = getPropType(propValue);
|
22354
|
+
if (propType !== 'object') {
|
22355
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
22356
|
+
}
|
22357
|
+
for (var key in propValue) {
|
22358
|
+
if (has(propValue, key)) {
|
22359
|
+
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
22360
|
+
if (error instanceof Error) {
|
22361
|
+
return error;
|
22362
|
+
}
|
22363
|
+
}
|
22364
|
+
}
|
22365
|
+
return null;
|
22366
|
+
}
|
22367
|
+
return createChainableTypeChecker(validate);
|
22368
|
+
}
|
22369
|
+
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
22370
|
+
if (!Array.isArray(arrayOfTypeCheckers)) {
|
22371
|
+
process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
22372
|
+
return emptyFunctionThatReturnsNull;
|
22373
|
+
}
|
22374
|
+
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
22375
|
+
var checker = arrayOfTypeCheckers[i];
|
22376
|
+
if (typeof checker !== 'function') {
|
22377
|
+
printWarning('Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.');
|
22378
|
+
return emptyFunctionThatReturnsNull;
|
22379
|
+
}
|
22380
|
+
}
|
22381
|
+
function validate(props, propName, componentName, location, propFullName) {
|
22382
|
+
var expectedTypes = [];
|
22383
|
+
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
22384
|
+
var checker = arrayOfTypeCheckers[i];
|
22385
|
+
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
22386
|
+
if (checkerResult == null) {
|
22387
|
+
return null;
|
22388
|
+
}
|
22389
|
+
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
|
22390
|
+
expectedTypes.push(checkerResult.data.expectedType);
|
22391
|
+
}
|
22392
|
+
}
|
22393
|
+
var expectedTypesMessage = expectedTypes.length > 0 ? ', expected one of type [' + expectedTypes.join(', ') + ']' : '';
|
22394
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
22395
|
+
}
|
22396
|
+
return createChainableTypeChecker(validate);
|
22397
|
+
}
|
22398
|
+
function createNodeChecker() {
|
22399
|
+
function validate(props, propName, componentName, location, propFullName) {
|
22400
|
+
if (!isNode(props[propName])) {
|
22401
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
22402
|
+
}
|
22403
|
+
return null;
|
22404
|
+
}
|
22405
|
+
return createChainableTypeChecker(validate);
|
22406
|
+
}
|
22407
|
+
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
22408
|
+
return new PropTypeError((componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.');
|
22409
|
+
}
|
22410
|
+
function createShapeTypeChecker(shapeTypes) {
|
22411
|
+
function validate(props, propName, componentName, location, propFullName) {
|
22412
|
+
var propValue = props[propName];
|
22413
|
+
var propType = getPropType(propValue);
|
22414
|
+
if (propType !== 'object') {
|
22415
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
22416
|
+
}
|
22417
|
+
for (var key in shapeTypes) {
|
22418
|
+
var checker = shapeTypes[key];
|
22419
|
+
if (typeof checker !== 'function') {
|
22420
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
22421
|
+
}
|
22422
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
22423
|
+
if (error) {
|
22424
|
+
return error;
|
22425
|
+
}
|
22426
|
+
}
|
22427
|
+
return null;
|
22428
|
+
}
|
22429
|
+
return createChainableTypeChecker(validate);
|
22430
|
+
}
|
22431
|
+
function createStrictShapeTypeChecker(shapeTypes) {
|
22432
|
+
function validate(props, propName, componentName, location, propFullName) {
|
22433
|
+
var propValue = props[propName];
|
22434
|
+
var propType = getPropType(propValue);
|
22435
|
+
if (propType !== 'object') {
|
22436
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
22437
|
+
}
|
22438
|
+
// We need to check all keys in case some are required but missing from props.
|
22439
|
+
var allKeys = assign({}, props[propName], shapeTypes);
|
22440
|
+
for (var key in allKeys) {
|
22441
|
+
var checker = shapeTypes[key];
|
22442
|
+
if (has(shapeTypes, key) && typeof checker !== 'function') {
|
22443
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
22444
|
+
}
|
22445
|
+
if (!checker) {
|
22446
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' '));
|
22447
|
+
}
|
22448
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
22449
|
+
if (error) {
|
22450
|
+
return error;
|
22451
|
+
}
|
22452
|
+
}
|
22453
|
+
return null;
|
22454
|
+
}
|
22455
|
+
return createChainableTypeChecker(validate);
|
22456
|
+
}
|
22457
|
+
function isNode(propValue) {
|
22458
|
+
switch (typeof propValue) {
|
22459
|
+
case 'number':
|
22460
|
+
case 'string':
|
22461
|
+
case 'undefined':
|
22462
|
+
return true;
|
22463
|
+
case 'boolean':
|
22464
|
+
return !propValue;
|
22465
|
+
case 'object':
|
22466
|
+
if (Array.isArray(propValue)) {
|
22467
|
+
return propValue.every(isNode);
|
22468
|
+
}
|
22469
|
+
if (propValue === null || isValidElement(propValue)) {
|
22470
|
+
return true;
|
22471
|
+
}
|
22472
|
+
var iteratorFn = getIteratorFn(propValue);
|
22473
|
+
if (iteratorFn) {
|
22474
|
+
var iterator = iteratorFn.call(propValue);
|
22475
|
+
var step;
|
22476
|
+
if (iteratorFn !== propValue.entries) {
|
22477
|
+
while (!(step = iterator.next()).done) {
|
22478
|
+
if (!isNode(step.value)) {
|
22479
|
+
return false;
|
22480
|
+
}
|
22481
|
+
}
|
22482
|
+
} else {
|
22483
|
+
// Iterator will provide entry [k,v] tuples rather than values.
|
22484
|
+
while (!(step = iterator.next()).done) {
|
22485
|
+
var entry = step.value;
|
22486
|
+
if (entry) {
|
22487
|
+
if (!isNode(entry[1])) {
|
22488
|
+
return false;
|
22489
|
+
}
|
22490
|
+
}
|
22491
|
+
}
|
22492
|
+
}
|
22493
|
+
} else {
|
22494
|
+
return false;
|
22495
|
+
}
|
22496
|
+
return true;
|
22497
|
+
default:
|
22498
|
+
return false;
|
22499
|
+
}
|
22500
|
+
}
|
22501
|
+
function isSymbol(propType, propValue) {
|
22502
|
+
// Native Symbol.
|
22503
|
+
if (propType === 'symbol') {
|
22504
|
+
return true;
|
22505
|
+
}
|
22506
|
+
|
22507
|
+
// falsy value can't be a Symbol
|
22508
|
+
if (!propValue) {
|
22509
|
+
return false;
|
22510
|
+
}
|
22511
|
+
|
22512
|
+
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
|
22513
|
+
if (propValue['@@toStringTag'] === 'Symbol') {
|
22514
|
+
return true;
|
22515
|
+
}
|
22516
|
+
|
22517
|
+
// Fallback for non-spec compliant Symbols which are polyfilled.
|
22518
|
+
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
22519
|
+
return true;
|
22520
|
+
}
|
22521
|
+
return false;
|
22522
|
+
}
|
22523
|
+
|
22524
|
+
// Equivalent of `typeof` but with special handling for array and regexp.
|
22525
|
+
function getPropType(propValue) {
|
22526
|
+
var propType = typeof propValue;
|
22527
|
+
if (Array.isArray(propValue)) {
|
22528
|
+
return 'array';
|
22529
|
+
}
|
22530
|
+
if (propValue instanceof RegExp) {
|
22531
|
+
// Old webkits (at least until Android 4.0) return 'function' rather than
|
22532
|
+
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
|
22533
|
+
// passes PropTypes.object.
|
22534
|
+
return 'object';
|
22535
|
+
}
|
22536
|
+
if (isSymbol(propType, propValue)) {
|
22537
|
+
return 'symbol';
|
22538
|
+
}
|
22539
|
+
return propType;
|
22540
|
+
}
|
22541
|
+
|
22542
|
+
// This handles more types than `getPropType`. Only used for error messages.
|
22543
|
+
// See `createPrimitiveTypeChecker`.
|
22544
|
+
function getPreciseType(propValue) {
|
22545
|
+
if (typeof propValue === 'undefined' || propValue === null) {
|
22546
|
+
return '' + propValue;
|
22547
|
+
}
|
22548
|
+
var propType = getPropType(propValue);
|
22549
|
+
if (propType === 'object') {
|
22550
|
+
if (propValue instanceof Date) {
|
22551
|
+
return 'date';
|
22552
|
+
} else if (propValue instanceof RegExp) {
|
22553
|
+
return 'regexp';
|
22554
|
+
}
|
22555
|
+
}
|
22556
|
+
return propType;
|
22557
|
+
}
|
22558
|
+
|
22559
|
+
// Returns a string that is postfixed to a warning about an invalid type.
|
22560
|
+
// For example, "undefined" or "of type array"
|
22561
|
+
function getPostfixForTypeWarning(value) {
|
22562
|
+
var type = getPreciseType(value);
|
22563
|
+
switch (type) {
|
22564
|
+
case 'array':
|
22565
|
+
case 'object':
|
22566
|
+
return 'an ' + type;
|
22567
|
+
case 'boolean':
|
22568
|
+
case 'date':
|
22569
|
+
case 'regexp':
|
22570
|
+
return 'a ' + type;
|
22571
|
+
default:
|
22572
|
+
return type;
|
22573
|
+
}
|
22574
|
+
}
|
22575
|
+
|
22576
|
+
// Returns class name of the object, if any.
|
22577
|
+
function getClassName(propValue) {
|
22578
|
+
if (!propValue.constructor || !propValue.constructor.name) {
|
22579
|
+
return ANONYMOUS;
|
22580
|
+
}
|
22581
|
+
return propValue.constructor.name;
|
22582
|
+
}
|
22583
|
+
ReactPropTypes.checkPropTypes = checkPropTypes;
|
22584
|
+
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
|
22585
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
22586
|
+
return ReactPropTypes;
|
22587
|
+
};
|
22588
|
+
return factoryWithTypeCheckers;
|
22589
|
+
}
|
22590
|
+
|
22591
|
+
/**
|
22592
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
22593
|
+
*
|
22594
|
+
* This source code is licensed under the MIT license found in the
|
22595
|
+
* LICENSE file in the root directory of this source tree.
|
22596
|
+
*/
|
22597
|
+
var factoryWithThrowingShims;
|
22598
|
+
var hasRequiredFactoryWithThrowingShims;
|
22599
|
+
function requireFactoryWithThrowingShims() {
|
22600
|
+
if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
|
22601
|
+
hasRequiredFactoryWithThrowingShims = 1;
|
22602
|
+
var ReactPropTypesSecret = /*@__PURE__*/requireReactPropTypesSecret();
|
22603
|
+
function emptyFunction() {}
|
22604
|
+
function emptyFunctionWithReset() {}
|
22605
|
+
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
22606
|
+
factoryWithThrowingShims = function () {
|
22607
|
+
function shim(props, propName, componentName, location, propFullName, secret) {
|
22608
|
+
if (secret === ReactPropTypesSecret) {
|
22609
|
+
// It is still safe when called from React.
|
22610
|
+
return;
|
22611
|
+
}
|
22612
|
+
var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use PropTypes.checkPropTypes() to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
|
22613
|
+
err.name = 'Invariant Violation';
|
22614
|
+
throw err;
|
22615
|
+
}
|
22616
|
+
shim.isRequired = shim;
|
22617
|
+
function getShim() {
|
22618
|
+
return shim;
|
22619
|
+
}
|
22620
|
+
// Important!
|
22621
|
+
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
22622
|
+
var ReactPropTypes = {
|
22623
|
+
array: shim,
|
22624
|
+
bigint: shim,
|
22625
|
+
bool: shim,
|
22626
|
+
func: shim,
|
22627
|
+
number: shim,
|
22628
|
+
object: shim,
|
22629
|
+
string: shim,
|
22630
|
+
symbol: shim,
|
22631
|
+
any: shim,
|
22632
|
+
arrayOf: getShim,
|
22633
|
+
element: shim,
|
22634
|
+
elementType: shim,
|
22635
|
+
instanceOf: getShim,
|
22636
|
+
node: shim,
|
22637
|
+
objectOf: getShim,
|
22638
|
+
oneOf: getShim,
|
22639
|
+
oneOfType: getShim,
|
22640
|
+
shape: getShim,
|
22641
|
+
exact: getShim,
|
22642
|
+
checkPropTypes: emptyFunctionWithReset,
|
22643
|
+
resetWarningCache: emptyFunction
|
22644
|
+
};
|
22645
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
22646
|
+
return ReactPropTypes;
|
22647
|
+
};
|
22648
|
+
return factoryWithThrowingShims;
|
22649
|
+
}
|
22650
|
+
|
22651
|
+
/**
|
22652
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
22653
|
+
*
|
22654
|
+
* This source code is licensed under the MIT license found in the
|
22655
|
+
* LICENSE file in the root directory of this source tree.
|
22656
|
+
*/
|
22657
|
+
var hasRequiredPropTypes;
|
22658
|
+
function requirePropTypes() {
|
22659
|
+
if (hasRequiredPropTypes) return propTypes.exports;
|
22660
|
+
hasRequiredPropTypes = 1;
|
22661
|
+
if (process.env.NODE_ENV !== 'production') {
|
22662
|
+
var ReactIs = requireReactIs();
|
22663
|
+
|
22664
|
+
// By explicitly using `prop-types` you are opting into new development behavior.
|
22665
|
+
// http://fb.me/prop-types-in-prod
|
22666
|
+
var throwOnDirectAccess = true;
|
22667
|
+
propTypes.exports = /*@__PURE__*/requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
|
22668
|
+
} else {
|
22669
|
+
// By explicitly using `prop-types` you are opting into new production behavior.
|
22670
|
+
// http://fb.me/prop-types-in-prod
|
22671
|
+
propTypes.exports = /*@__PURE__*/requireFactoryWithThrowingShims()();
|
22672
|
+
}
|
22673
|
+
return propTypes.exports;
|
22674
|
+
}
|
22675
|
+
|
22676
|
+
var propTypesExports = /*@__PURE__*/ requirePropTypes();
|
22677
|
+
var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
|
22678
|
+
|
22679
|
+
var _excluded = ["sitekey", "onChange", "theme", "type", "tabindex", "onExpired", "onErrored", "size", "stoken", "grecaptcha", "badge", "hl", "isolated"];
|
22680
|
+
function _extends$1() {
|
22681
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function (target) {
|
22682
|
+
for (var i = 1; i < arguments.length; i++) {
|
22683
|
+
var source = arguments[i];
|
22684
|
+
for (var key in source) {
|
22685
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
22686
|
+
target[key] = source[key];
|
22687
|
+
}
|
22688
|
+
}
|
22689
|
+
}
|
22690
|
+
return target;
|
22691
|
+
};
|
22692
|
+
return _extends$1.apply(this, arguments);
|
22693
|
+
}
|
22694
|
+
function _objectWithoutPropertiesLoose$1(source, excluded) {
|
22695
|
+
if (source == null) return {};
|
22696
|
+
var target = {};
|
22697
|
+
var sourceKeys = Object.keys(source);
|
22698
|
+
var key, i;
|
22699
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
22700
|
+
key = sourceKeys[i];
|
22701
|
+
if (excluded.indexOf(key) >= 0) continue;
|
22702
|
+
target[key] = source[key];
|
22703
|
+
}
|
22704
|
+
return target;
|
22705
|
+
}
|
22706
|
+
function _assertThisInitialized(self) {
|
22707
|
+
if (self === void 0) {
|
22708
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
22709
|
+
}
|
22710
|
+
return self;
|
22711
|
+
}
|
22712
|
+
function _inheritsLoose$1(subClass, superClass) {
|
22713
|
+
subClass.prototype = Object.create(superClass.prototype);
|
22714
|
+
subClass.prototype.constructor = subClass;
|
22715
|
+
_setPrototypeOf(subClass, superClass);
|
22716
|
+
}
|
22717
|
+
function _setPrototypeOf(o, p) {
|
22718
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
22719
|
+
o.__proto__ = p;
|
22720
|
+
return o;
|
22721
|
+
};
|
22722
|
+
return _setPrototypeOf(o, p);
|
22723
|
+
}
|
22724
|
+
var ReCAPTCHA = /*#__PURE__*/function (_React$Component) {
|
22725
|
+
_inheritsLoose$1(ReCAPTCHA, _React$Component);
|
22726
|
+
function ReCAPTCHA() {
|
22727
|
+
var _this;
|
22728
|
+
_this = _React$Component.call(this) || this;
|
22729
|
+
_this.handleExpired = _this.handleExpired.bind(_assertThisInitialized(_this));
|
22730
|
+
_this.handleErrored = _this.handleErrored.bind(_assertThisInitialized(_this));
|
22731
|
+
_this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
|
22732
|
+
_this.handleRecaptchaRef = _this.handleRecaptchaRef.bind(_assertThisInitialized(_this));
|
22733
|
+
return _this;
|
22734
|
+
}
|
22735
|
+
var _proto = ReCAPTCHA.prototype;
|
22736
|
+
_proto.getCaptchaFunction = function getCaptchaFunction(fnName) {
|
22737
|
+
if (this.props.grecaptcha) {
|
22738
|
+
if (this.props.grecaptcha.enterprise) {
|
22739
|
+
return this.props.grecaptcha.enterprise[fnName];
|
22740
|
+
}
|
22741
|
+
return this.props.grecaptcha[fnName];
|
22742
|
+
}
|
22743
|
+
return null;
|
22744
|
+
};
|
22745
|
+
_proto.getValue = function getValue() {
|
22746
|
+
var getResponse = this.getCaptchaFunction("getResponse");
|
22747
|
+
if (getResponse && this._widgetId !== undefined) {
|
22748
|
+
return getResponse(this._widgetId);
|
22749
|
+
}
|
22750
|
+
return null;
|
22751
|
+
};
|
22752
|
+
_proto.getWidgetId = function getWidgetId() {
|
22753
|
+
if (this.props.grecaptcha && this._widgetId !== undefined) {
|
22754
|
+
return this._widgetId;
|
22755
|
+
}
|
22756
|
+
return null;
|
22757
|
+
};
|
22758
|
+
_proto.execute = function execute() {
|
22759
|
+
var execute = this.getCaptchaFunction("execute");
|
22760
|
+
if (execute && this._widgetId !== undefined) {
|
22761
|
+
return execute(this._widgetId);
|
22762
|
+
} else {
|
22763
|
+
this._executeRequested = true;
|
22764
|
+
}
|
22765
|
+
};
|
22766
|
+
_proto.executeAsync = function executeAsync() {
|
22767
|
+
var _this2 = this;
|
22768
|
+
return new Promise(function (resolve, reject) {
|
22769
|
+
_this2.executionResolve = resolve;
|
22770
|
+
_this2.executionReject = reject;
|
22771
|
+
_this2.execute();
|
22772
|
+
});
|
22773
|
+
};
|
22774
|
+
_proto.reset = function reset() {
|
22775
|
+
var resetter = this.getCaptchaFunction("reset");
|
22776
|
+
if (resetter && this._widgetId !== undefined) {
|
22777
|
+
resetter(this._widgetId);
|
22778
|
+
}
|
22779
|
+
};
|
22780
|
+
_proto.forceReset = function forceReset() {
|
22781
|
+
var resetter = this.getCaptchaFunction("reset");
|
22782
|
+
if (resetter) {
|
22783
|
+
resetter();
|
22784
|
+
}
|
22785
|
+
};
|
22786
|
+
_proto.handleExpired = function handleExpired() {
|
22787
|
+
if (this.props.onExpired) {
|
22788
|
+
this.props.onExpired();
|
22789
|
+
} else {
|
22790
|
+
this.handleChange(null);
|
22791
|
+
}
|
22792
|
+
};
|
22793
|
+
_proto.handleErrored = function handleErrored() {
|
22794
|
+
if (this.props.onErrored) {
|
22795
|
+
this.props.onErrored();
|
22796
|
+
}
|
22797
|
+
if (this.executionReject) {
|
22798
|
+
this.executionReject();
|
22799
|
+
delete this.executionResolve;
|
22800
|
+
delete this.executionReject;
|
22801
|
+
}
|
22802
|
+
};
|
22803
|
+
_proto.handleChange = function handleChange(token) {
|
22804
|
+
if (this.props.onChange) {
|
22805
|
+
this.props.onChange(token);
|
22806
|
+
}
|
22807
|
+
if (this.executionResolve) {
|
22808
|
+
this.executionResolve(token);
|
22809
|
+
delete this.executionReject;
|
22810
|
+
delete this.executionResolve;
|
22811
|
+
}
|
22812
|
+
};
|
22813
|
+
_proto.explicitRender = function explicitRender() {
|
22814
|
+
var render = this.getCaptchaFunction("render");
|
22815
|
+
if (render && this._widgetId === undefined) {
|
22816
|
+
var wrapper = document.createElement("div");
|
22817
|
+
this._widgetId = render(wrapper, {
|
22818
|
+
sitekey: this.props.sitekey,
|
22819
|
+
callback: this.handleChange,
|
22820
|
+
theme: this.props.theme,
|
22821
|
+
type: this.props.type,
|
22822
|
+
tabindex: this.props.tabindex,
|
22823
|
+
"expired-callback": this.handleExpired,
|
22824
|
+
"error-callback": this.handleErrored,
|
22825
|
+
size: this.props.size,
|
22826
|
+
stoken: this.props.stoken,
|
22827
|
+
hl: this.props.hl,
|
22828
|
+
badge: this.props.badge,
|
22829
|
+
isolated: this.props.isolated
|
22830
|
+
});
|
22831
|
+
this.captcha.appendChild(wrapper);
|
22832
|
+
}
|
22833
|
+
if (this._executeRequested && this.props.grecaptcha && this._widgetId !== undefined) {
|
22834
|
+
this._executeRequested = false;
|
22835
|
+
this.execute();
|
22836
|
+
}
|
22837
|
+
};
|
22838
|
+
_proto.componentDidMount = function componentDidMount() {
|
22839
|
+
this.explicitRender();
|
22840
|
+
};
|
22841
|
+
_proto.componentDidUpdate = function componentDidUpdate() {
|
22842
|
+
this.explicitRender();
|
22843
|
+
};
|
22844
|
+
_proto.handleRecaptchaRef = function handleRecaptchaRef(elem) {
|
22845
|
+
this.captcha = elem;
|
22846
|
+
};
|
22847
|
+
_proto.render = function render() {
|
22848
|
+
// consume properties owned by the reCATPCHA, pass the rest to the div so the user can style it.
|
22849
|
+
/* eslint-disable no-unused-vars */
|
22850
|
+
var _this$props = this.props;
|
22851
|
+
_this$props.sitekey;
|
22852
|
+
_this$props.onChange;
|
22853
|
+
_this$props.theme;
|
22854
|
+
_this$props.type;
|
22855
|
+
_this$props.tabindex;
|
22856
|
+
_this$props.onExpired;
|
22857
|
+
_this$props.onErrored;
|
22858
|
+
_this$props.size;
|
22859
|
+
_this$props.stoken;
|
22860
|
+
_this$props.grecaptcha;
|
22861
|
+
_this$props.badge;
|
22862
|
+
_this$props.hl;
|
22863
|
+
_this$props.isolated;
|
22864
|
+
var childProps = _objectWithoutPropertiesLoose$1(_this$props, _excluded);
|
22865
|
+
/* eslint-enable no-unused-vars */
|
22866
|
+
return /*#__PURE__*/React.createElement("div", _extends$1({}, childProps, {
|
22867
|
+
ref: this.handleRecaptchaRef
|
22868
|
+
}));
|
22869
|
+
};
|
22870
|
+
return ReCAPTCHA;
|
22871
|
+
}(React.Component);
|
22872
|
+
ReCAPTCHA.displayName = "ReCAPTCHA";
|
22873
|
+
ReCAPTCHA.propTypes = {
|
22874
|
+
sitekey: PropTypes.string.isRequired,
|
22875
|
+
onChange: PropTypes.func,
|
22876
|
+
grecaptcha: PropTypes.object,
|
22877
|
+
theme: PropTypes.oneOf(["dark", "light"]),
|
22878
|
+
type: PropTypes.oneOf(["image", "audio"]),
|
22879
|
+
tabindex: PropTypes.number,
|
22880
|
+
onExpired: PropTypes.func,
|
22881
|
+
onErrored: PropTypes.func,
|
22882
|
+
size: PropTypes.oneOf(["compact", "normal", "invisible"]),
|
22883
|
+
stoken: PropTypes.string,
|
22884
|
+
hl: PropTypes.string,
|
22885
|
+
badge: PropTypes.oneOf(["bottomright", "bottomleft", "inline"]),
|
22886
|
+
isolated: PropTypes.bool
|
22887
|
+
};
|
22888
|
+
ReCAPTCHA.defaultProps = {
|
22889
|
+
onChange: function onChange() {},
|
22890
|
+
theme: "light",
|
22891
|
+
type: "image",
|
22892
|
+
tabindex: 0,
|
22893
|
+
size: "normal",
|
22894
|
+
badge: "bottomright"
|
22895
|
+
};
|
22896
|
+
|
22897
|
+
var hoistNonReactStatics_cjs;
|
22898
|
+
var hasRequiredHoistNonReactStatics_cjs;
|
22899
|
+
function requireHoistNonReactStatics_cjs() {
|
22900
|
+
if (hasRequiredHoistNonReactStatics_cjs) return hoistNonReactStatics_cjs;
|
22901
|
+
hasRequiredHoistNonReactStatics_cjs = 1;
|
22902
|
+
var reactIs = requireReactIs();
|
22903
|
+
|
22904
|
+
/**
|
22905
|
+
* Copyright 2015, Yahoo! Inc.
|
22906
|
+
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
22907
|
+
*/
|
22908
|
+
var REACT_STATICS = {
|
22909
|
+
childContextTypes: true,
|
22910
|
+
contextType: true,
|
22911
|
+
contextTypes: true,
|
22912
|
+
defaultProps: true,
|
22913
|
+
displayName: true,
|
22914
|
+
getDefaultProps: true,
|
22915
|
+
getDerivedStateFromError: true,
|
22916
|
+
getDerivedStateFromProps: true,
|
22917
|
+
mixins: true,
|
22918
|
+
propTypes: true,
|
22919
|
+
type: true
|
22920
|
+
};
|
22921
|
+
var KNOWN_STATICS = {
|
22922
|
+
name: true,
|
22923
|
+
length: true,
|
22924
|
+
prototype: true,
|
22925
|
+
caller: true,
|
22926
|
+
callee: true,
|
22927
|
+
arguments: true,
|
22928
|
+
arity: true
|
22929
|
+
};
|
22930
|
+
var FORWARD_REF_STATICS = {
|
22931
|
+
'$$typeof': true,
|
22932
|
+
render: true,
|
22933
|
+
defaultProps: true,
|
22934
|
+
displayName: true,
|
22935
|
+
propTypes: true
|
22936
|
+
};
|
22937
|
+
var MEMO_STATICS = {
|
22938
|
+
'$$typeof': true,
|
22939
|
+
compare: true,
|
22940
|
+
defaultProps: true,
|
22941
|
+
displayName: true,
|
22942
|
+
propTypes: true,
|
22943
|
+
type: true
|
22944
|
+
};
|
22945
|
+
var TYPE_STATICS = {};
|
22946
|
+
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
22947
|
+
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
22948
|
+
function getStatics(component) {
|
22949
|
+
// React v16.11 and below
|
22950
|
+
if (reactIs.isMemo(component)) {
|
22951
|
+
return MEMO_STATICS;
|
22952
|
+
} // React v16.12 and above
|
22953
|
+
|
22954
|
+
return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
|
22955
|
+
}
|
22956
|
+
var defineProperty = Object.defineProperty;
|
22957
|
+
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
22958
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
22959
|
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
22960
|
+
var getPrototypeOf = Object.getPrototypeOf;
|
22961
|
+
var objectPrototype = Object.prototype;
|
22962
|
+
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
22963
|
+
if (typeof sourceComponent !== 'string') {
|
22964
|
+
// don't hoist over string (html) components
|
22965
|
+
if (objectPrototype) {
|
22966
|
+
var inheritedComponent = getPrototypeOf(sourceComponent);
|
22967
|
+
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
22968
|
+
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
22969
|
+
}
|
22970
|
+
}
|
22971
|
+
var keys = getOwnPropertyNames(sourceComponent);
|
22972
|
+
if (getOwnPropertySymbols) {
|
22973
|
+
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
22974
|
+
}
|
22975
|
+
var targetStatics = getStatics(targetComponent);
|
22976
|
+
var sourceStatics = getStatics(sourceComponent);
|
22977
|
+
for (var i = 0; i < keys.length; ++i) {
|
22978
|
+
var key = keys[i];
|
22979
|
+
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
22980
|
+
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
22981
|
+
try {
|
22982
|
+
// Avoid failures from read-only properties
|
22983
|
+
defineProperty(targetComponent, key, descriptor);
|
22984
|
+
} catch (e) {}
|
22985
|
+
}
|
22986
|
+
}
|
22987
|
+
}
|
22988
|
+
return targetComponent;
|
22989
|
+
}
|
22990
|
+
hoistNonReactStatics_cjs = hoistNonReactStatics;
|
22991
|
+
return hoistNonReactStatics_cjs;
|
22992
|
+
}
|
22993
|
+
|
22994
|
+
var hoistNonReactStatics_cjsExports = requireHoistNonReactStatics_cjs();
|
22995
|
+
var hoistStatics = /*@__PURE__*/getDefaultExportFromCjs(hoistNonReactStatics_cjsExports);
|
22996
|
+
|
22997
|
+
function _extends() {
|
22998
|
+
_extends = Object.assign || function (target) {
|
22999
|
+
for (var i = 1; i < arguments.length; i++) {
|
23000
|
+
var source = arguments[i];
|
23001
|
+
for (var key in source) {
|
23002
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
23003
|
+
target[key] = source[key];
|
23004
|
+
}
|
23005
|
+
}
|
23006
|
+
}
|
23007
|
+
return target;
|
23008
|
+
};
|
23009
|
+
return _extends.apply(this, arguments);
|
23010
|
+
}
|
23011
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
23012
|
+
if (source == null) return {};
|
23013
|
+
var target = {};
|
23014
|
+
var sourceKeys = Object.keys(source);
|
23015
|
+
var key, i;
|
23016
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
23017
|
+
key = sourceKeys[i];
|
23018
|
+
if (excluded.indexOf(key) >= 0) continue;
|
23019
|
+
target[key] = source[key];
|
23020
|
+
}
|
23021
|
+
return target;
|
23022
|
+
}
|
23023
|
+
function _inheritsLoose(subClass, superClass) {
|
23024
|
+
subClass.prototype = Object.create(superClass.prototype);
|
23025
|
+
subClass.prototype.constructor = subClass;
|
23026
|
+
subClass.__proto__ = superClass;
|
23027
|
+
}
|
23028
|
+
var SCRIPT_MAP = {}; // A counter used to generate a unique id for each component that uses the function
|
23029
|
+
|
23030
|
+
var idCount = 0;
|
23031
|
+
function makeAsyncScript(getScriptURL, options) {
|
23032
|
+
options = options || {};
|
23033
|
+
return function wrapWithAsyncScript(WrappedComponent) {
|
23034
|
+
var wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || "Component";
|
23035
|
+
var AsyncScriptLoader = /*#__PURE__*/
|
23036
|
+
function (_Component) {
|
23037
|
+
_inheritsLoose(AsyncScriptLoader, _Component);
|
23038
|
+
function AsyncScriptLoader(props, context) {
|
23039
|
+
var _this;
|
23040
|
+
_this = _Component.call(this, props, context) || this;
|
23041
|
+
_this.state = {};
|
23042
|
+
_this.__scriptURL = "";
|
23043
|
+
return _this;
|
23044
|
+
}
|
23045
|
+
var _proto = AsyncScriptLoader.prototype;
|
23046
|
+
_proto.asyncScriptLoaderGetScriptLoaderID = function asyncScriptLoaderGetScriptLoaderID() {
|
23047
|
+
if (!this.__scriptLoaderID) {
|
23048
|
+
this.__scriptLoaderID = "async-script-loader-" + idCount++;
|
23049
|
+
}
|
23050
|
+
return this.__scriptLoaderID;
|
23051
|
+
};
|
23052
|
+
_proto.setupScriptURL = function setupScriptURL() {
|
23053
|
+
this.__scriptURL = typeof getScriptURL === "function" ? getScriptURL() : getScriptURL;
|
23054
|
+
return this.__scriptURL;
|
23055
|
+
};
|
23056
|
+
_proto.asyncScriptLoaderHandleLoad = function asyncScriptLoaderHandleLoad(state) {
|
23057
|
+
var _this2 = this;
|
23058
|
+
|
23059
|
+
// use reacts setState callback to fire props.asyncScriptOnLoad with new state/entry
|
23060
|
+
this.setState(state, function () {
|
23061
|
+
return _this2.props.asyncScriptOnLoad && _this2.props.asyncScriptOnLoad(_this2.state);
|
23062
|
+
});
|
23063
|
+
};
|
23064
|
+
_proto.asyncScriptLoaderTriggerOnScriptLoaded = function asyncScriptLoaderTriggerOnScriptLoaded() {
|
23065
|
+
var mapEntry = SCRIPT_MAP[this.__scriptURL];
|
23066
|
+
if (!mapEntry || !mapEntry.loaded) {
|
23067
|
+
throw new Error("Script is not loaded.");
|
23068
|
+
}
|
23069
|
+
for (var obsKey in mapEntry.observers) {
|
23070
|
+
mapEntry.observers[obsKey](mapEntry);
|
23071
|
+
}
|
23072
|
+
delete window[options.callbackName];
|
23073
|
+
};
|
23074
|
+
_proto.componentDidMount = function componentDidMount() {
|
23075
|
+
var _this3 = this;
|
23076
|
+
var scriptURL = this.setupScriptURL();
|
23077
|
+
var key = this.asyncScriptLoaderGetScriptLoaderID();
|
23078
|
+
var _options = options,
|
23079
|
+
globalName = _options.globalName,
|
23080
|
+
callbackName = _options.callbackName,
|
23081
|
+
scriptId = _options.scriptId; // check if global object already attached to window
|
23082
|
+
|
23083
|
+
if (globalName && typeof window[globalName] !== "undefined") {
|
23084
|
+
SCRIPT_MAP[scriptURL] = {
|
23085
|
+
loaded: true,
|
23086
|
+
observers: {}
|
23087
|
+
};
|
23088
|
+
} // check if script loading already
|
23089
|
+
|
23090
|
+
if (SCRIPT_MAP[scriptURL]) {
|
23091
|
+
var entry = SCRIPT_MAP[scriptURL]; // if loaded or errored then "finish"
|
23092
|
+
|
23093
|
+
if (entry && (entry.loaded || entry.errored)) {
|
23094
|
+
this.asyncScriptLoaderHandleLoad(entry);
|
23095
|
+
return;
|
23096
|
+
} // if still loading then callback to observer queue
|
23097
|
+
|
23098
|
+
entry.observers[key] = function (entry) {
|
23099
|
+
return _this3.asyncScriptLoaderHandleLoad(entry);
|
23100
|
+
};
|
23101
|
+
return;
|
23102
|
+
}
|
23103
|
+
/*
|
23104
|
+
* hasn't started loading
|
23105
|
+
* start the "magic"
|
23106
|
+
* setup script to load and observers
|
23107
|
+
*/
|
23108
|
+
|
23109
|
+
var observers = {};
|
23110
|
+
observers[key] = function (entry) {
|
23111
|
+
return _this3.asyncScriptLoaderHandleLoad(entry);
|
23112
|
+
};
|
23113
|
+
SCRIPT_MAP[scriptURL] = {
|
23114
|
+
loaded: false,
|
23115
|
+
observers: observers
|
23116
|
+
};
|
23117
|
+
var script = document.createElement("script");
|
23118
|
+
script.src = scriptURL;
|
23119
|
+
script.async = true;
|
23120
|
+
for (var attribute in options.attributes) {
|
23121
|
+
script.setAttribute(attribute, options.attributes[attribute]);
|
23122
|
+
}
|
23123
|
+
if (scriptId) {
|
23124
|
+
script.id = scriptId;
|
23125
|
+
}
|
23126
|
+
var callObserverFuncAndRemoveObserver = function callObserverFuncAndRemoveObserver(func) {
|
23127
|
+
if (SCRIPT_MAP[scriptURL]) {
|
23128
|
+
var mapEntry = SCRIPT_MAP[scriptURL];
|
23129
|
+
var observersMap = mapEntry.observers;
|
23130
|
+
for (var obsKey in observersMap) {
|
23131
|
+
if (func(observersMap[obsKey])) {
|
23132
|
+
delete observersMap[obsKey];
|
23133
|
+
}
|
23134
|
+
}
|
23135
|
+
}
|
23136
|
+
};
|
23137
|
+
if (callbackName && typeof window !== "undefined") {
|
23138
|
+
window[callbackName] = function () {
|
23139
|
+
return _this3.asyncScriptLoaderTriggerOnScriptLoaded();
|
23140
|
+
};
|
23141
|
+
}
|
23142
|
+
script.onload = function () {
|
23143
|
+
var mapEntry = SCRIPT_MAP[scriptURL];
|
23144
|
+
if (mapEntry) {
|
23145
|
+
mapEntry.loaded = true;
|
23146
|
+
callObserverFuncAndRemoveObserver(function (observer) {
|
23147
|
+
if (callbackName) {
|
23148
|
+
return false;
|
23149
|
+
}
|
23150
|
+
observer(mapEntry);
|
23151
|
+
return true;
|
23152
|
+
});
|
23153
|
+
}
|
23154
|
+
};
|
23155
|
+
script.onerror = function () {
|
23156
|
+
var mapEntry = SCRIPT_MAP[scriptURL];
|
23157
|
+
if (mapEntry) {
|
23158
|
+
mapEntry.errored = true;
|
23159
|
+
callObserverFuncAndRemoveObserver(function (observer) {
|
23160
|
+
observer(mapEntry);
|
23161
|
+
return true;
|
23162
|
+
});
|
23163
|
+
}
|
23164
|
+
};
|
23165
|
+
document.body.appendChild(script);
|
23166
|
+
};
|
23167
|
+
_proto.componentWillUnmount = function componentWillUnmount() {
|
23168
|
+
// Remove tag script
|
23169
|
+
var scriptURL = this.__scriptURL;
|
23170
|
+
if (options.removeOnUnmount === true) {
|
23171
|
+
var allScripts = document.getElementsByTagName("script");
|
23172
|
+
for (var i = 0; i < allScripts.length; i += 1) {
|
23173
|
+
if (allScripts[i].src.indexOf(scriptURL) > -1) {
|
23174
|
+
if (allScripts[i].parentNode) {
|
23175
|
+
allScripts[i].parentNode.removeChild(allScripts[i]);
|
23176
|
+
}
|
23177
|
+
}
|
23178
|
+
}
|
23179
|
+
} // Clean the observer entry
|
23180
|
+
|
23181
|
+
var mapEntry = SCRIPT_MAP[scriptURL];
|
23182
|
+
if (mapEntry) {
|
23183
|
+
delete mapEntry.observers[this.asyncScriptLoaderGetScriptLoaderID()];
|
23184
|
+
if (options.removeOnUnmount === true) {
|
23185
|
+
delete SCRIPT_MAP[scriptURL];
|
23186
|
+
}
|
23187
|
+
}
|
23188
|
+
};
|
23189
|
+
_proto.render = function render() {
|
23190
|
+
var globalName = options.globalName; // remove asyncScriptOnLoad from childProps
|
23191
|
+
|
23192
|
+
var _this$props = this.props;
|
23193
|
+
_this$props.asyncScriptOnLoad;
|
23194
|
+
var forwardedRef = _this$props.forwardedRef,
|
23195
|
+
childProps = _objectWithoutPropertiesLoose(_this$props, ["asyncScriptOnLoad", "forwardedRef"]); // eslint-disable-line no-unused-vars
|
23196
|
+
|
23197
|
+
if (globalName && typeof window !== "undefined") {
|
23198
|
+
childProps[globalName] = typeof window[globalName] !== "undefined" ? window[globalName] : undefined;
|
23199
|
+
}
|
23200
|
+
childProps.ref = forwardedRef;
|
23201
|
+
return /*#__PURE__*/createElement(WrappedComponent, childProps);
|
23202
|
+
};
|
23203
|
+
return AsyncScriptLoader;
|
23204
|
+
}(Component); // Note the second param "ref" provided by React.forwardRef.
|
23205
|
+
// We can pass it along to AsyncScriptLoader as a regular prop, e.g. "forwardedRef"
|
23206
|
+
// And it can then be attached to the Component.
|
23207
|
+
|
23208
|
+
var ForwardedComponent = /*#__PURE__*/forwardRef(function (props, ref) {
|
23209
|
+
return /*#__PURE__*/createElement(AsyncScriptLoader, _extends({}, props, {
|
23210
|
+
forwardedRef: ref
|
23211
|
+
}));
|
23212
|
+
});
|
23213
|
+
ForwardedComponent.displayName = "AsyncScriptLoader(" + wrappedComponentName + ")";
|
23214
|
+
ForwardedComponent.propTypes = {
|
23215
|
+
asyncScriptOnLoad: PropTypes.func
|
23216
|
+
};
|
23217
|
+
return hoistStatics(ForwardedComponent, WrappedComponent);
|
23218
|
+
};
|
23219
|
+
}
|
23220
|
+
|
23221
|
+
var callbackName = "onloadcallback";
|
23222
|
+
var globalName = "grecaptcha";
|
23223
|
+
function getOptions() {
|
23224
|
+
return typeof window !== "undefined" && window.recaptchaOptions || {};
|
23225
|
+
}
|
23226
|
+
function getURL() {
|
23227
|
+
var dynamicOptions = getOptions();
|
23228
|
+
var hostname = dynamicOptions.useRecaptchaNet ? "recaptcha.net" : "www.google.com";
|
23229
|
+
if (dynamicOptions.enterprise) {
|
23230
|
+
return "https://" + hostname + "/recaptcha/enterprise.js?onload=" + callbackName + "&render=explicit";
|
23231
|
+
}
|
23232
|
+
return "https://" + hostname + "/recaptcha/api.js?onload=" + callbackName + "&render=explicit";
|
23233
|
+
}
|
23234
|
+
var RecaptchaWrapper = makeAsyncScript(getURL, {
|
23235
|
+
callbackName: callbackName,
|
23236
|
+
globalName: globalName,
|
23237
|
+
attributes: getOptions().nonce ? {
|
23238
|
+
nonce: getOptions().nonce
|
23239
|
+
} : {}
|
23240
|
+
})(ReCAPTCHA);
|
23241
|
+
|
23242
|
+
var css_248z$2 = ".ff-recaptcha-wrapper {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n.ff-recaptcha-wrapper .ff-recaptcha-error {\n color: var(--input-error-text-color);\n font-size: 12px;\n margin-top: 4px;\n}";
|
23243
|
+
styleInject(css_248z$2);
|
23244
|
+
|
23245
|
+
const Recaptcha = /*#__PURE__*/forwardRef(({
|
23246
|
+
onVerify,
|
23247
|
+
className = '',
|
23248
|
+
error: externalError,
|
23249
|
+
sitekey,
|
23250
|
+
...props
|
23251
|
+
}, ref) => {
|
23252
|
+
const [internalError, setInternalError] = useState(null);
|
23253
|
+
const handleChange = token => {
|
23254
|
+
if (token) {
|
23255
|
+
setInternalError(null);
|
23256
|
+
onVerify(token);
|
23257
|
+
} else {
|
23258
|
+
setInternalError('Please complete the CAPTCHA');
|
23259
|
+
}
|
23260
|
+
};
|
23261
|
+
const error = externalError || internalError;
|
23262
|
+
return jsxs("div", {
|
23263
|
+
className: classNames('ff-recaptcha-wrapper', className),
|
23264
|
+
children: [jsx(RecaptchaWrapper, {
|
23265
|
+
ref: ref,
|
23266
|
+
sitekey: sitekey,
|
23267
|
+
onChange: handleChange,
|
23268
|
+
...props
|
23269
|
+
}), error && jsx("div", {
|
23270
|
+
className: "ff-recaptcha-error",
|
23271
|
+
children: jsx(Typography, {
|
23272
|
+
fontSize: 12,
|
23273
|
+
children: error
|
23274
|
+
})
|
23275
|
+
})]
|
23276
|
+
});
|
23277
|
+
});
|
23278
|
+
|
23279
|
+
const nlpDropdownDefaultCSSData = {
|
23280
|
+
margin: 6,
|
23281
|
+
optionHeight: 32,
|
23282
|
+
selectInputHeight: 38,
|
23283
|
+
dropDownWrapperPadding: 0
|
23284
|
+
};
|
23285
|
+
|
23286
|
+
var css_248z$1 = "@font-face {\n font-family: \"Poppins\";\n font-weight: 400;\n src: local(\"Poppins-Regular\"), url(../../fonts/Poppins/Poppins-Regular.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 500;\n src: local(\"Poppins-Medium\"), url(../../fonts/Poppins/Poppins-Medium.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 600;\n src: local(\"Poppins-SemiBold\"), url(../../fonts/Poppins/Poppins-SemiBold.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 700;\n src: local(\"Poppins-Bold\"), url(../../fonts/Poppins/Poppins-Bold.ttf) format(\"truetype\");\n}\n.fontXs {\n font-family: \"Poppins\", sans-serif;\n font-size: 10px;\n}\n\n.fontSm {\n font-family: \"Poppins\", sans-serif;\n font-size: 12px;\n}\n\n.fontMd {\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\", sans-serif;\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\", sans-serif;\n font-size: 18px;\n}\n\n.font2Xl {\n font-family: \"Poppins\", sans-serif;\n font-size: 24px;\n}\n\n.font-size-8 {\n font-family: \"Poppins\", sans-serif;\n font-size: 8px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\", sans-serif;\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\", sans-serif;\n font-size: 80px;\n}\n\n.ff-nlp-dropdown-wrapper .ff-nlp-options-wrapper {\n max-height: 160px;\n z-index: 100;\n position: absolute;\n min-width: 100px;\n border: 1px solid var(--ff-select-option-border-color);\n box-sizing: border-box;\n margin-top: 4px;\n border-radius: 4px;\n background-color: var(--ff-select-background-color);\n box-shadow: 0px 1px 4px 0px var(--ff-select-option-wrapper-box-shadow);\n overflow: hidden auto;\n display: flex;\n justify-content: space-between;\n}\n.ff-nlp-dropdown-wrapper .ff-nlp-options-wrapper .ff-nlp-options-wrapper1 {\n max-height: 160px;\n z-index: 100;\n min-width: auto;\n box-sizing: border-box;\n}\n.ff-nlp-dropdown-wrapper .ff-nlp-options-wrapper::-webkit-scrollbar {\n width: 4px;\n height: 12px;\n}\n.ff-nlp-dropdown-wrapper .ff-nlp-options-wrapper::-webkit-scrollbar-thumb {\n background-color: var(--ff-select-scroll-thumb-color);\n border-radius: 4px;\n}\n.ff-nlp-dropdown-wrapper .ff-nlp-options-wrapper::-webkit-scrollbar-track {\n background-color: transparent;\n border-radius: 4px;\n}\n.ff-nlp-dropdown-wrapper .ff-nlp-options-wrapper .ff-nlp-option {\n width: calc(100% - 18px);\n border: 1px solid transparent;\n border-radius: 4px;\n padding: 0px 8px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n cursor: pointer;\n}\n.ff-nlp-dropdown-wrapper .ff-nlp-options-wrapper .ff-nlp-option:hover {\n border-color: var(--ff-select-background-color);\n background-color: var(--ff-select-option-hover-color);\n}\n.ff-nlp-dropdown-wrapper .ff-nlp-options-wrapper .ff-nlp-no-option {\n width: calc(100% - 16px);\n margin: 0;\n overflow: hidden;\n padding: 0px 8px;\n white-space: nowrap;\n text-overflow: ellipsis;\n cursor: not-allowed;\n}\n.ff-nlp-dropdown-wrapper .ff-nlp-data {\n width: 200px;\n height: 134px;\n border: 1px solid transparent;\n border-radius: 5px;\n box-shadow: 0px 1px 4px 0px var(--ff-select-option-wrapper-box-shadow);\n overflow: scroll;\n}";
|
23287
|
+
styleInject(css_248z$1);
|
23288
|
+
|
23289
|
+
const NlpDropdown = ({
|
23290
|
+
onSelectBlur,
|
23291
|
+
onSelectOptionSelector,
|
23292
|
+
dropdownPosition,
|
23293
|
+
options = [],
|
23294
|
+
optionZIndex = 100,
|
23295
|
+
inputRef
|
23296
|
+
}) => {
|
23297
|
+
// const [nlpData, setNlpData] = useState<OptionType | null>(null); need to add setNlpData
|
23298
|
+
const [nlpData] = useState(null);
|
23299
|
+
const themeContext = useContext(ThemeContext);
|
23300
|
+
const currentTheme = themeContext?.currentTheme;
|
23301
|
+
const optionsWrapperRef = useRef(null);
|
23302
|
+
useClickOutside(optionsWrapperRef, onSelectBlur, [inputRef]);
|
23303
|
+
const {
|
23304
|
+
positionX,
|
23305
|
+
positionY,
|
23306
|
+
width,
|
23307
|
+
fromBottom
|
23308
|
+
} = dropdownPosition;
|
23309
|
+
const {
|
23310
|
+
margin,
|
23311
|
+
optionHeight,
|
23312
|
+
selectInputHeight,
|
23313
|
+
dropDownWrapperPadding
|
23314
|
+
} = nlpDropdownDefaultCSSData;
|
23315
|
+
const updateDropdownPosition = () => {
|
23316
|
+
let dropdownContainerHeight;
|
23317
|
+
if (checkEmpty(options)) {
|
23318
|
+
dropdownContainerHeight = optionHeight + 2 * dropDownWrapperPadding;
|
23319
|
+
} else if (options.length > 5) {
|
23320
|
+
dropdownContainerHeight = 5 * optionHeight + 2 * dropDownWrapperPadding;
|
23321
|
+
} else {
|
23322
|
+
dropdownContainerHeight = options.length * optionHeight + 2 * dropDownWrapperPadding;
|
23323
|
+
}
|
23324
|
+
if (fromBottom > dropdownContainerHeight + margin) {
|
23325
|
+
return {
|
23326
|
+
left: positionX,
|
23327
|
+
top: positionY,
|
23328
|
+
width: width,
|
23329
|
+
zIndex: optionZIndex
|
23330
|
+
};
|
23331
|
+
}
|
23332
|
+
return {
|
23333
|
+
zIndex: optionZIndex,
|
23334
|
+
left: positionX,
|
23335
|
+
width: width,
|
23336
|
+
top: positionY - selectInputHeight - dropdownContainerHeight - margin
|
23337
|
+
};
|
23338
|
+
};
|
23339
|
+
return jsx("div", {
|
23340
|
+
className: "ff-nlp-dropdown-wrapper",
|
23341
|
+
children: jsxs("div", {
|
23342
|
+
ref: optionsWrapperRef,
|
23343
|
+
style: updateDropdownPosition(),
|
23344
|
+
className: classNames('ff-nlp-options-wrapper', currentTheme),
|
23345
|
+
children: [jsxs("div", {
|
23346
|
+
className: "ff-nlp-options-wrapper1",
|
23347
|
+
children: [!checkEmpty(options) ? options.map(option =>
|
23348
|
+
// <div key={ffid()} onMouseEnter={() => setNlpData(option)}> need to add onMouseEnter
|
23349
|
+
jsx("div", {
|
23350
|
+
children: jsxs(Typography, {
|
23351
|
+
as: "div",
|
23352
|
+
lineHeight: "30px",
|
23353
|
+
className: classNames('ff-nlp-option', currentTheme),
|
23354
|
+
color: "var(--ff-nlp-text-color)",
|
23355
|
+
onClick: () => onSelectOptionSelector(option),
|
23356
|
+
children: [jsx("span", {
|
23357
|
+
className: "mr-2 fontPoppinsRegularMd",
|
23358
|
+
children: option?.nlpType === 'NLP' ? jsx("b", {
|
23359
|
+
className: "nlp-type-NLP",
|
23360
|
+
children: "NLP"
|
23361
|
+
}) : option?.nlpType === 'STEP_GROUP' ? jsx("b", {
|
23362
|
+
className: "nlp-type-step-group",
|
23363
|
+
children: "SG"
|
23364
|
+
}) : option?.nlpType === 'PROGRAM_ELEMENTS' ? jsx("b", {
|
23365
|
+
className: "nlp-type-program-elements",
|
23366
|
+
children: "PE"
|
23367
|
+
}) : '--'
|
23368
|
+
}), jsx("span", {
|
23369
|
+
className: "mr-2 fontPoppinsRegularMd",
|
23370
|
+
children: option?.platform === 'web' ? jsx("b", {
|
23371
|
+
className: "platform-web",
|
23372
|
+
children: "Web"
|
23373
|
+
}) : option?.platform === 'android' ? jsx("b", {
|
23374
|
+
className: "platform-android",
|
23375
|
+
children: "Android"
|
23376
|
+
}) : option?.platform === 'ios' ? jsx("b", {
|
23377
|
+
className: "platform-ios",
|
23378
|
+
children: "iOS"
|
23379
|
+
}) : option?.platform === 'Generic' ? jsx("b", {
|
23380
|
+
className: "platform-ios",
|
23381
|
+
children: "Generic"
|
23382
|
+
}) : '--'
|
23383
|
+
}), option?.displayName]
|
23384
|
+
})
|
23385
|
+
}, ffid())) : jsx(Typography, {
|
23386
|
+
textAlign: "center",
|
23387
|
+
lineHeight: "32px",
|
23388
|
+
as: "p",
|
23389
|
+
color: "var(--ff-nlp-text-color)",
|
23390
|
+
className: "ff-nlp-no-option",
|
23391
|
+
children: "No Results Found"
|
23392
|
+
}), jsx("button", {
|
23393
|
+
children: "+ Web Services"
|
23394
|
+
})]
|
23395
|
+
}), jsx("div", {
|
23396
|
+
className: "ff-nlp-data",
|
23397
|
+
children: jsxs("div", {
|
23398
|
+
children: [jsx("div", {
|
23399
|
+
className: "nlp-details-header mt-4",
|
23400
|
+
children: "Name:"
|
23401
|
+
}), jsx("div", {
|
23402
|
+
className: "nlp-details nlpdiv-check",
|
23403
|
+
children: nlpData?.displayName || '--'
|
23404
|
+
}), jsx("div", {
|
23405
|
+
className: "nlp-details-header mt-4",
|
23406
|
+
children: "Description:"
|
23407
|
+
}), jsx("div", {
|
23408
|
+
className: "nlp-details nlpdiv-check",
|
23409
|
+
children: nlpData?.description || '--'
|
23410
|
+
}), nlpData?.nlpType === 'STEP_GROUP' && jsxs(Fragment, {
|
23411
|
+
children: [jsx("div", {
|
23412
|
+
className: "nlp-details-header mt-4",
|
23413
|
+
children: "Path:"
|
23414
|
+
}), jsx("div", {
|
23415
|
+
className: "nlp-details nlpdiv-check",
|
23416
|
+
children: nlpData?.path ? nlpData?.path.slice(6) : '--'
|
23417
|
+
})]
|
23418
|
+
}), jsx("div", {
|
23419
|
+
className: "nlp-details-header mt-4",
|
23420
|
+
children: "Inputs:"
|
23421
|
+
}), nlpData?.stepInputs?.length ? nlpData.stepInputs.map((stepInput, index) => {
|
23422
|
+
const stepInputType = stepInput.type ? stepInput.type.split('.').pop() : '--';
|
23423
|
+
return jsxs("div", {
|
23424
|
+
children: [jsxs("div", {
|
23425
|
+
className: "nlp-details-header",
|
23426
|
+
children: ["Input", index + 1, ":"]
|
23427
|
+
}), jsxs("div", {
|
23428
|
+
className: "nlp-details",
|
23429
|
+
children: ["type: ", stepInputType]
|
23430
|
+
}), jsxs("div", {
|
23431
|
+
className: "nlp-details mb-4",
|
23432
|
+
children: ["name: ", stepInput.name || '--']
|
23433
|
+
})]
|
23434
|
+
}, index);
|
23435
|
+
}) : jsx("div", {
|
23436
|
+
className: "nlp-details mb-4",
|
23437
|
+
children: "--"
|
23438
|
+
}), jsx("div", {
|
23439
|
+
className: "nlp-details-header",
|
23440
|
+
children: "Output:"
|
23441
|
+
}), jsx("div", {
|
23442
|
+
className: "nlp-details mb-4",
|
23443
|
+
children: nlpData?.returnType || '--'
|
23444
|
+
})]
|
23445
|
+
})
|
23446
|
+
})]
|
23447
|
+
})
|
23448
|
+
});
|
23449
|
+
};
|
23450
|
+
|
23451
|
+
var css_248z = "@font-face {\n font-family: \"Poppins\";\n font-weight: 400;\n src: local(\"Poppins-Regular\"), url(../../fonts/Poppins/Poppins-Regular.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 500;\n src: local(\"Poppins-Medium\"), url(../../fonts/Poppins/Poppins-Medium.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 600;\n src: local(\"Poppins-SemiBold\"), url(../../fonts/Poppins/Poppins-SemiBold.ttf) format(\"truetype\");\n}\n@font-face {\n font-family: \"Poppins\";\n font-weight: 700;\n src: local(\"Poppins-Bold\"), url(../../fonts/Poppins/Poppins-Bold.ttf) format(\"truetype\");\n}\n.fontXs {\n font-family: \"Poppins\", sans-serif;\n font-size: 10px;\n}\n\n.fontSm, .ff-nlp-input-wrapper .ff-nlp-input, .ff-nlp-input-wrapper .ff-nlp-input-input {\n font-family: \"Poppins\", sans-serif;\n font-size: 12px;\n}\n\n.fontMd {\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n}\n\n.fontLg {\n font-family: \"Poppins\", sans-serif;\n font-size: 16px;\n}\n\n.fontXL {\n font-family: \"Poppins\", sans-serif;\n font-size: 18px;\n}\n\n.font2Xl {\n font-family: \"Poppins\", sans-serif;\n font-size: 24px;\n}\n\n.font-size-8, .ff-nlp-input-wrapper .ff-nlp-input-fieldset .ff-nlp-input-legend, .ff-nlp-input-wrapper .ff-nlp-input-label--active {\n font-family: \"Poppins\", sans-serif;\n font-size: 8px;\n}\n\n.font-size-32 {\n font-family: \"Poppins\", sans-serif;\n font-size: 32px;\n}\n\n.font-size-80 {\n font-family: \"Poppins\", sans-serif;\n font-size: 80px;\n}\n\n.ff-nlp-input-wrapper {\n position: relative;\n}\n.ff-nlp-input-wrapper .ff-nlp-input {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n min-height: 32px;\n min-width: 489px;\n display: flex;\n align-items: end;\n position: relative;\n}\n.ff-nlp-input-wrapper .ff-nlp-input-fieldset {\n margin: 0;\n padding: 25px 0px 0px 8px;\n border: 1px solid transparent;\n box-sizing: border-box;\n height: 100%;\n width: 100%;\n border-radius: 4px;\n display: block;\n}\n.ff-nlp-input-wrapper .ff-nlp-input-fieldset--border-radius {\n border-radius: 0px 4px 4px 0px;\n}\n.ff-nlp-input-wrapper .ff-nlp-input-fieldset--no-label {\n padding: 30px 0px 0px 8px;\n}\n.ff-nlp-input-wrapper .ff-nlp-input-fieldset--default {\n opacity: 0;\n border-color: var(--ff-nlp-input-border-color);\n}\n.ff-nlp-input-wrapper .ff-nlp-input-fieldset--active {\n opacity: 1;\n border-color: var(--ff-nlp-input-brand-color);\n}\n.ff-nlp-input-wrapper .ff-nlp-input-fieldset--option {\n opacity: 1;\n}\n.ff-nlp-input-wrapper .ff-nlp-input-fieldset--no-border {\n border-color: transparent;\n}\n.ff-nlp-input-wrapper .ff-nlp-input-fieldset--error {\n border-color: var(--error-light);\n}\n.ff-nlp-input-wrapper .ff-nlp-input-fieldset .ff-nlp-input-legend {\n padding: 0 2px;\n letter-spacing: 0.5px;\n}\n.ff-nlp-input-wrapper .ff-nlp-input-fieldset .ff-nlp-input-legend--default {\n transition: opacity 0.3s ease-out, transform 0.3s ease-out, font-size 0.3s ease-out, padding 0.3s ease-out;\n opacity: 0;\n}\n.ff-nlp-input-wrapper .ff-nlp-input-fieldset .ff-nlp-input-legend--active {\n transition: opacity 0.25s ease-out, transform 0.25s ease-out, font-size 0.25s ease-out, padding 0.25s ease-out;\n opacity: 1;\n color: var(--ff-nlp-input-brand-color);\n}\n.ff-nlp-input-wrapper .ff-nlp-input-fieldset .ff-nlp-input-legend--option {\n opacity: 1;\n color: var(--ff-nlp-input-default-color);\n}\n.ff-nlp-input-wrapper .ff-nlp-input-fieldset .ff-nlp-input-legend--error {\n color: var(--error-light);\n}\n.ff-nlp-input-wrapper .ff-nlp-input-fieldset .ff-nlp-input-legend--required {\n margin-right: 2px;\n}\n.ff-nlp-input-wrapper .ff-nlp-input-input {\n position: absolute;\n top: 6px;\n right: auto;\n bottom: auto;\n left: auto;\n width: calc(100% - 38px);\n min-height: calc(100% - 8px);\n padding: 0 28px 0 8px;\n border-radius: 4px;\n border: 1px solid transparent;\n z-index: 100;\n background: transparent;\n outline: none;\n color: var(--ff-nlp-input-text-color);\n}\n.ff-nlp-input-wrapper .ff-nlp-input-input:hover ~ .ff-nlp-input-label {\n color: var(--ff-nlp-input-text-hover-color);\n}\n.ff-nlp-input-wrapper .ff-nlp-input-input--border-radius {\n border-radius: 0px 4px 4px 0px;\n}\n.ff-nlp-input-wrapper .ff-nlp-input-input--default {\n opacity: 1;\n border-color: var(--ff-nlp-input-border-color);\n}\n.ff-nlp-input-wrapper .ff-nlp-input-input--default:hover {\n border-color: var(--ff-nlp-input-text-color);\n}\n.ff-nlp-input-wrapper .ff-nlp-input-input--default:hover ~ .ff-nlp-input-fieldset--option {\n border-color: var(--ff-nlp-input-text-color);\n}\n.ff-nlp-input-wrapper .ff-nlp-input-input--default:hover ~ .ff-nlp-input-fieldset--option .ff-nlp-input-legend--option {\n color: var(--ff-nlp-input-text-color);\n}\n.ff-nlp-input-wrapper .ff-nlp-input-input--no-label {\n min-height: calc(100% - 2px);\n margin-top: 0px;\n top: 0px;\n}\n.ff-nlp-input-wrapper .ff-nlp-input-input--active {\n border-color: transparent;\n}\n.ff-nlp-input-wrapper .ff-nlp-input-input--active:hover {\n border-color: transparent;\n}\n.ff-nlp-input-wrapper .ff-nlp-input-input--no-border {\n border: none;\n border-color: transparent;\n}\n.ff-nlp-input-wrapper .ff-nlp-input-input--no-border:hover {\n border-color: transparent;\n}\n.ff-nlp-input-wrapper .ff-nlp-input-input--no-border:hover ~ .ff-nlp-input-fieldset--no-border {\n border-color: transparent;\n}\n.ff-nlp-input-wrapper .ff-nlp-input-input--disable {\n border-color: var(--ff-nlp-input-border-color);\n}\n.ff-nlp-input-wrapper .ff-nlp-input-input--disable:hover {\n border-color: var(--ff-nlp-input-border-color);\n}\n.ff-nlp-input-wrapper .ff-nlp-input-input--disable:hover ~ .ff-nlp-input-label--default {\n color: var(--ff-nlp-input-default-color);\n}\n.ff-nlp-input-wrapper .ff-nlp-input-input--error {\n border-color: var(--error-light);\n}\n.ff-nlp-input-wrapper .ff-nlp-input-input--error:hover {\n border-color: var(--error-light);\n}\n.ff-nlp-input-wrapper .ff-nlp-input-label {\n position: absolute;\n top: 13px;\n right: auto;\n bottom: auto;\n left: 8px;\n z-index: 1;\n font-size: 12px;\n top: 60%;\n padding-left: 8px;\n}\n.ff-nlp-input-wrapper .ff-nlp-input-label--default {\n transition: opacity 0.3s ease-out, transform 0.3s ease-out, font-size 0.3s ease-out, padding 0.3s ease-out;\n opacity: 1;\n color: var(--ff-nlp-input-default-color);\n transform: translateY(-50%);\n}\n.ff-nlp-input-wrapper .ff-nlp-input-label--active {\n transition: opacity 0.3s ease-out, transform 0.3s ease-out, font-size 0.3s ease-out, padding 0.3s ease-out;\n opacity: 0;\n transform: translateY(-150%);\n padding: 0 6px;\n}\n.ff-nlp-input-wrapper .ff-nlp-input-label--required {\n margin-right: 2px;\n}\n.ff-nlp-input-wrapper .ff-nlp-input-arrow {\n position: absolute;\n top: 60%;\n height: 100%;\n right: 10px;\n transform: rotateX(180deg) translateY(50%);\n cursor: pointer;\n}\n.ff-nlp-input-wrapper .ff-nlp-input-arrow--no-label {\n top: 50%;\n}\n.ff-nlp-input-wrapper .ff-nlp-input-arrow--down {\n transform: rotateX(0deg) translateY(-50%);\n z-index: 101;\n}\n.ff-nlp-input-wrapper-error-text {\n position: absolute;\n top: auto;\n right: auto;\n bottom: -14px;\n left: 12px;\n white-space: nowrap;\n}";
|
23452
|
+
styleInject(css_248z);
|
23453
|
+
|
23454
|
+
const nlpInputReducer = (state, action) => {
|
23455
|
+
switch (action.type) {
|
23456
|
+
case 'FOCUS_INPUT':
|
23457
|
+
return {
|
23458
|
+
...state,
|
23459
|
+
isInputFocused: true,
|
23460
|
+
iconColor: 'var(--ff-nlp-input-brand-color)',
|
23461
|
+
isIconClick: true,
|
23462
|
+
showOptions: true
|
23463
|
+
};
|
23464
|
+
case 'BLUR_INPUT':
|
23465
|
+
return {
|
23466
|
+
...state,
|
23467
|
+
isInputFocused: false,
|
23468
|
+
options: action.payload.optionsList,
|
23469
|
+
option: action.payload.option,
|
23470
|
+
// todo color need to be add in style guide
|
23471
|
+
iconColor: 'var(--ff-nlp-input-default-color)',
|
23472
|
+
isIconClick: false,
|
23473
|
+
showOptions: false,
|
23474
|
+
dropdownPosition: {
|
23475
|
+
positionX: 0,
|
23476
|
+
positionY: 0,
|
23477
|
+
width: 0,
|
23478
|
+
fromBottom: 0
|
23479
|
+
}
|
23480
|
+
};
|
23481
|
+
case 'MOUSE_ENTER':
|
23482
|
+
return state.isInputFocused ? state : {
|
23483
|
+
...state,
|
23484
|
+
iconColor: 'var(--ff-nlp-input-text-hover-color)'
|
23485
|
+
};
|
23486
|
+
case 'MOUSE_LEAVE':
|
23487
|
+
return state.isInputFocused ? state :
|
23488
|
+
// todo color need to be add in style guide
|
23489
|
+
{
|
23490
|
+
...state,
|
23491
|
+
iconColor: 'var(--ff-nlp-input-default-color)',
|
23492
|
+
isIconClick: false
|
23493
|
+
};
|
23494
|
+
case 'UPDATE_DROPDOWN_POSITION':
|
23495
|
+
const {
|
23496
|
+
positionX,
|
23497
|
+
positionY,
|
23498
|
+
width,
|
23499
|
+
fromBottom
|
23500
|
+
} = action.payload || {};
|
23501
|
+
return {
|
23502
|
+
...state,
|
23503
|
+
dropdownPosition: {
|
23504
|
+
positionX,
|
23505
|
+
positionY,
|
23506
|
+
width,
|
23507
|
+
fromBottom
|
23508
|
+
}
|
23509
|
+
};
|
23510
|
+
case 'UPDATE_OPTION':
|
23511
|
+
return {
|
23512
|
+
...state,
|
23513
|
+
option: action.payload
|
23514
|
+
};
|
23515
|
+
case 'UPDATE_OPTION_LIST':
|
23516
|
+
return {
|
23517
|
+
...state,
|
23518
|
+
options: action.payload
|
23519
|
+
};
|
23520
|
+
case 'SHOW_ERROR':
|
23521
|
+
return {
|
23522
|
+
...state,
|
23523
|
+
isInputFocused: true,
|
23524
|
+
isIconClick: false,
|
23525
|
+
showOptions: false,
|
23526
|
+
options: action.payload.optionsList,
|
23527
|
+
option: action.payload.option,
|
23528
|
+
iconColor: 'var(--ff-nlp-input-default-color)',
|
23529
|
+
dropdownPosition: {
|
23530
|
+
positionX: 0,
|
23531
|
+
positionY: 0,
|
23532
|
+
width: 0,
|
23533
|
+
fromBottom: 0
|
23534
|
+
}
|
23535
|
+
};
|
23536
|
+
default:
|
23537
|
+
return state;
|
23538
|
+
}
|
23539
|
+
};
|
23540
|
+
const NlpInput = ({
|
23541
|
+
label = '',
|
23542
|
+
showLabel = true,
|
23543
|
+
optionsList = [],
|
23544
|
+
selectedOption = {
|
23545
|
+
displayName: '',
|
23546
|
+
projectId: '',
|
23547
|
+
nlpType: '',
|
23548
|
+
platform: ''
|
23549
|
+
},
|
23550
|
+
onChange = () => {},
|
23551
|
+
errorMsg = '',
|
23552
|
+
className = '',
|
23553
|
+
optionZIndex = 100,
|
23554
|
+
disabled = false,
|
23555
|
+
borderRadius = true,
|
23556
|
+
showBorder = true,
|
23557
|
+
required = false
|
23558
|
+
}) => {
|
23559
|
+
const initialState = useMemo(() => ({
|
23560
|
+
isInputFocused: false,
|
23561
|
+
// todo color need to be added in style guide
|
23562
|
+
iconColor: 'var(--ff-nlp-input-default-color)',
|
23563
|
+
isIconClick: false,
|
23564
|
+
showOptions: false,
|
23565
|
+
options: optionsList,
|
23566
|
+
option: checkEmpty(selectedOption) ? '' : selectedOption?.projectId,
|
23567
|
+
dropdownPosition: {
|
23568
|
+
positionX: 0,
|
23569
|
+
positionY: 0,
|
23570
|
+
width: 0,
|
23571
|
+
fromBottom: 0
|
23572
|
+
}
|
23573
|
+
}), [optionsList, selectedOption]);
|
23574
|
+
const [selectControlState, dispatch] = useReducer(nlpInputReducer, initialState);
|
23575
|
+
const DropDownRef = useRef(null);
|
23576
|
+
const InputRef = useRef(null);
|
23577
|
+
const {
|
23578
|
+
isInputFocused,
|
23579
|
+
iconColor,
|
23580
|
+
isIconClick,
|
23581
|
+
showOptions,
|
23582
|
+
dropdownPosition,
|
23583
|
+
options,
|
23584
|
+
option
|
23585
|
+
} = selectControlState;
|
23586
|
+
const calculatePosition = usePortalPosition(DropDownRef, showOptions);
|
23587
|
+
const handleSelectAction = actionType => {
|
23588
|
+
if (!disabled) {
|
23589
|
+
if (actionType === 'SHOW_ERROR' || actionType === 'BLUR_INPUT') {
|
23590
|
+
dispatch({
|
23591
|
+
type: actionType,
|
23592
|
+
payload: {
|
23593
|
+
optionsList,
|
23594
|
+
option: selectedOption.projectId
|
23595
|
+
}
|
23596
|
+
});
|
23597
|
+
} else {
|
23598
|
+
dispatch({
|
23599
|
+
type: actionType
|
23600
|
+
});
|
23601
|
+
}
|
23602
|
+
}
|
23603
|
+
};
|
23604
|
+
const onSelectInputChange = e => {
|
23605
|
+
if (disabled) return;
|
23606
|
+
const {
|
23607
|
+
value
|
23608
|
+
} = e.target;
|
23609
|
+
const filteredOptions = optionsList.filter(option => {
|
23610
|
+
return option.displayName.toLowerCase().includes(value.toLowerCase().trim());
|
23611
|
+
});
|
23612
|
+
dispatch({
|
23613
|
+
type: 'UPDATE_OPTION_LIST',
|
23614
|
+
payload: filteredOptions
|
23615
|
+
});
|
23616
|
+
dispatch({
|
23617
|
+
type: 'UPDATE_OPTION',
|
23618
|
+
payload: value
|
23619
|
+
});
|
23620
|
+
};
|
23621
|
+
const onSelectBlur = () => {
|
23622
|
+
if (disabled) return;
|
23623
|
+
if (errorMsg) {
|
23624
|
+
handleSelectAction('SHOW_ERROR');
|
23625
|
+
} else {
|
23626
|
+
handleSelectAction('BLUR_INPUT');
|
23627
|
+
}
|
23628
|
+
};
|
23629
|
+
const onSelectOptionSelector = option => {
|
23630
|
+
if (!disabled) {
|
23631
|
+
onSelectBlur();
|
23632
|
+
dispatch({
|
23633
|
+
type: 'UPDATE_OPTION',
|
23634
|
+
payload: option.projectId
|
23635
|
+
});
|
23636
|
+
if (onChange) {
|
23637
|
+
onChange(option);
|
23638
|
+
}
|
23639
|
+
}
|
23640
|
+
};
|
23641
|
+
const onSelectUpdatePosition = () => {
|
23642
|
+
if (!showOptions || !DropDownRef?.current || disabled) return;
|
23643
|
+
const {
|
23644
|
+
positionX,
|
23645
|
+
positionY,
|
23646
|
+
width,
|
23647
|
+
fromBottom
|
23648
|
+
} = calculatePosition(DropDownRef);
|
23649
|
+
dispatch({
|
23650
|
+
type: 'UPDATE_DROPDOWN_POSITION',
|
23651
|
+
payload: {
|
23652
|
+
positionX,
|
23653
|
+
positionY,
|
23654
|
+
width,
|
23655
|
+
fromBottom
|
23656
|
+
}
|
23657
|
+
});
|
23658
|
+
};
|
23659
|
+
const onSelectToggleScroll = isEnabled => {
|
23660
|
+
const bodyScrollWidth = window.innerWidth - document.body.clientWidth;
|
23661
|
+
document.body.style.paddingRight = isEnabled ? '' : `${bodyScrollWidth}px`;
|
23662
|
+
document.body.style.overflow = isEnabled ? '' : 'hidden';
|
23663
|
+
};
|
23664
|
+
useEffect(() => {
|
23665
|
+
if (disabled) return;
|
23666
|
+
if (showOptions) {
|
23667
|
+
onSelectToggleScroll(!showOptions);
|
23668
|
+
}
|
23669
|
+
onSelectUpdatePosition();
|
23670
|
+
const handleResizeOrScroll = () => onSelectUpdatePosition();
|
23671
|
+
window.addEventListener('resize', handleResizeOrScroll);
|
23672
|
+
window.addEventListener('scroll', handleResizeOrScroll);
|
23673
|
+
return () => {
|
23674
|
+
onSelectToggleScroll(true);
|
23675
|
+
window.removeEventListener('resize', handleResizeOrScroll);
|
23676
|
+
window.removeEventListener('scroll', handleResizeOrScroll);
|
23677
|
+
};
|
23678
|
+
}, [showOptions]);
|
23679
|
+
useEffect(() => {
|
23680
|
+
if (errorMsg) {
|
23681
|
+
handleSelectAction('SHOW_ERROR');
|
23682
|
+
}
|
23683
|
+
}, []);
|
23684
|
+
const applyActiveOptionClasses = !isInputFocused && Boolean(option);
|
23685
|
+
return jsxs("div", {
|
23686
|
+
className: classNames(`ff-nlp-input-wrapper ${className}`),
|
23687
|
+
children: [jsxs("div", {
|
23688
|
+
className: "ff-nlp-input",
|
23689
|
+
children: [jsx("input", {
|
23690
|
+
type: "text",
|
23691
|
+
className: classNames('ff-nlp-input-input', {
|
23692
|
+
'ff-nlp-input-input--default': !isInputFocused,
|
23693
|
+
'ff-nlp-input-input--active': applyActiveOptionClasses,
|
23694
|
+
'ff-nlp-input-input--no-label': !showLabel,
|
23695
|
+
'ff-nlp-input-input--error': errorMsg && !isInputFocused && !Boolean(option),
|
23696
|
+
'ff-nlp-input-input--border-radius': !borderRadius,
|
23697
|
+
'ff-nlp-input-input--disable': disabled,
|
23698
|
+
'ff-nlp-input-input--no-border': !showBorder
|
23699
|
+
}),
|
23700
|
+
// inline css required due to multiple overlay scenarios are present
|
23701
|
+
style: {
|
23702
|
+
zIndex: optionZIndex
|
23703
|
+
},
|
23704
|
+
onFocus: () => handleSelectAction('FOCUS_INPUT'),
|
23705
|
+
onMouseEnter: () => handleSelectAction('MOUSE_ENTER'),
|
23706
|
+
onMouseLeave: () => handleSelectAction('MOUSE_LEAVE'),
|
23707
|
+
onChange: onSelectInputChange,
|
23708
|
+
value: option,
|
23709
|
+
disabled: disabled,
|
23710
|
+
autoComplete: "off",
|
23711
|
+
spellCheck: "false",
|
23712
|
+
ref: InputRef
|
23713
|
+
}), showLabel && jsxs("div", {
|
23714
|
+
className: classNames('ff-nlp-input-label', {
|
23715
|
+
'ff-nlp-input-label--default': !isInputFocused,
|
23716
|
+
'ff-nlp-input-label--active': isInputFocused || Boolean(option),
|
23717
|
+
'ff-nlp-input-label--error': errorMsg
|
23718
|
+
}),
|
23719
|
+
children: [required && jsx(Typography, {
|
23720
|
+
color: "var(--$error-light)",
|
23721
|
+
className: "ff-nlp-input-label--required",
|
23722
|
+
children: "*"
|
23723
|
+
}), label]
|
23724
|
+
}), jsx(Icon, {
|
23725
|
+
name: "arrow_up",
|
23726
|
+
height: 7,
|
23727
|
+
width: 12,
|
23728
|
+
className: classNames('ff-nlp-input-arrow', {
|
23729
|
+
'ff-nlp-input-arrow--down': isIconClick,
|
23730
|
+
'ff-nlp-input-arrow--no-label': !showLabel
|
23731
|
+
}),
|
23732
|
+
color: iconColor
|
23733
|
+
}), jsx("fieldset", {
|
23734
|
+
className: classNames('ff-nlp-input-fieldset', {
|
23735
|
+
'ff-nlp-input-fieldset--no-label': !showLabel,
|
23736
|
+
'ff-nlp-input-fieldset--default': !isInputFocused,
|
23737
|
+
'ff-nlp-input-fieldset--active': isInputFocused,
|
23738
|
+
'ff-nlp-input-fieldset--option': applyActiveOptionClasses,
|
23739
|
+
'ff-nlp-input-fieldset--error': errorMsg,
|
23740
|
+
'ff-nlp-input-fieldset--border-radius': !borderRadius,
|
23741
|
+
'ff-nlp-input-fieldset--no-border': !showBorder
|
23742
|
+
})
|
23743
|
+
})]
|
23744
|
+
}), errorMsg && jsx(Typography, {
|
23745
|
+
className: "ff-nlp-input-wrapper-error-text",
|
23746
|
+
fontSize: 8,
|
23747
|
+
color: 'var(--error-light)',
|
23748
|
+
children: errorMsg
|
23749
|
+
}), jsx("div", {
|
23750
|
+
ref: DropDownRef,
|
23751
|
+
children: showOptions && /*#__PURE__*/createPortal(jsx(NlpDropdown, {
|
23752
|
+
onSelectBlur: onSelectBlur,
|
23753
|
+
onSelectOptionSelector: onSelectOptionSelector,
|
23754
|
+
dropdownPosition: dropdownPosition,
|
23755
|
+
options: options,
|
23756
|
+
optionZIndex: optionZIndex,
|
23757
|
+
inputRef: InputRef
|
23758
|
+
}), document.body)
|
23759
|
+
})]
|
23760
|
+
});
|
23761
|
+
};
|
23762
|
+
|
23763
|
+
export { Accordion, AddButton as AddResourceButton, AllProjectsDropdown, AppHeader, Button$1 as Button, Checkbox, Chip, Col, Container, DashboardDonutChart, CustomDatePicker as DatePicker, DonutChart, DragAndDrop, Drawer, ExpandableMenu, FileDropzone, Form, HighlightText, Icon, IconButton, Input, InputWithDropdown, LazyLoad, MenuOption, MiniModal, Modal, MultiSelect, NlpInput as NLPInput, PieChart, RadialChart, RadioButton, RadioGroup, Recaptcha, Row, Search, Select$1 as Select, StateDropdown, StatusButton, Table, TableTree, Tabs, Textarea as TextArea, ThemeProvider, Toaster, Toggle, Tooltip, Typography, checkEmpty, getExtension, getExtensionWithPeriod, useTheme };
|
21062
23764
|
//# sourceMappingURL=index.esm.js.map
|