@fluidattacks/design 3.14.7-pr → 3.14.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index.css +1 -1
- package/dist/components/@core/index.js +1 -1
- package/dist/components/accordion/accordion-content/index.js +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/card/card-header/index.js +1 -1
- package/dist/components/card/card-with-image/index.js +1 -1
- package/dist/components/card/card-with-input/index.js +1 -1
- package/dist/components/card/card-with-options/index.js +1 -1
- package/dist/components/card/card-with-selector/index.js +1 -1
- package/dist/components/card/card-with-switch/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/cloud-image/index.js +1 -1
- package/dist/components/code-snippet/index.js +1 -1
- package/dist/components/code-snippet/location-code/index.js +1 -1
- package/dist/components/colors/index.js +1 -1
- package/dist/components/confirm-dialog/index.js +1 -1
- package/dist/components/container/index.js +1 -1
- package/dist/components/content-card/category-tag/index.js +1 -1
- package/dist/components/content-card/event-date/index.js +1 -1
- package/dist/components/content-card/index.js +1 -1
- package/dist/components/content-card-carousel/index.js +1 -1
- package/dist/components/content-card-carousel/scroll-buttons/index.js +1 -1
- package/dist/components/divider/index.js +1 -1
- package/dist/components/empty-state/empty-button/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/file-preview/index.js +1 -1
- package/dist/components/form/index.js +1 -1
- package/dist/components/form/inner-form/index.js +1 -1
- package/dist/components/grid-container/index.js +1 -1
- package/dist/components/group-selector/index.js +1 -1
- package/dist/components/group-selector/option-container/index.js +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/indicator-card/index.js +1 -1
- package/dist/components/info-sidebar/index.js +1 -1
- package/dist/components/inputs/fields/combobox/field/index.js +1 -1
- package/dist/components/inputs/fields/combobox/index.js +1 -1
- package/dist/components/inputs/fields/combobox/option/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date/index.js +1 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-range/index.js +1 -1
- package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-time/index.js +1 -1
- package/dist/components/inputs/fields/editable/index.js +1 -1
- package/dist/components/inputs/fields/input/index.js +1 -1
- package/dist/components/inputs/fields/input-file/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/field/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/index.js +1 -1
- package/dist/components/inputs/fields/number/index.js +1 -1
- package/dist/components/inputs/fields/number-range/index.js +1 -1
- package/dist/components/inputs/fields/phone/index.js +1 -1
- package/dist/components/inputs/fields/text-area/index.js +1 -1
- package/dist/components/inputs/index.js +1 -1
- package/dist/components/inputs/label/index.js +1 -1
- package/dist/components/inputs/outline-container/index.js +1 -1
- package/dist/components/inputs/utils/action-button/index.js +1 -1
- package/dist/components/inputs/utils/calendar-button/index.js +1 -1
- package/dist/components/inputs/utils/date-selector/index.js +1 -1
- package/dist/components/inputs/utils/date-time-field/index.js +1 -1
- package/dist/components/inputs/utils/dialog/index.js +1 -1
- package/dist/components/inputs/utils/number-field/index.js +1 -1
- package/dist/components/inputs/utils/popover/index.js +1 -1
- package/dist/components/interactive-card/icon/index.js +1 -1
- package/dist/components/interactive-card/index.js +1 -1
- package/dist/components/language-selector/index.js +1 -1
- package/dist/components/language-selector/item-list/index.js +1 -1
- package/dist/components/layout/categories/buttons/index.js +1 -1
- package/dist/components/layout/categories/column/index.js +1 -1
- package/dist/components/layout/categories/gap/index.js +1 -1
- package/dist/components/layout/categories/row/index.js +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list-item/index.js +1 -1
- package/dist/components/little-flag/index.js +1 -1
- package/dist/components/loading/index.js +1 -1
- package/dist/components/logo/index.js +1 -1
- package/dist/components/logo-carousel/index.js +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/message-banner/index.js +1 -1
- package/dist/components/modal/columns-modal/index.js +1 -1
- package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
- package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
- package/dist/components/modal/filters-modal/applied-filter/index.js +1 -1
- package/dist/components/modal/filters-modal/applied-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-control/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/form-content/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/hooks/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/index.js +1 -1
- package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
- package/dist/components/modal/filters-modal/index.js +1 -1
- package/dist/components/modal/filters-modal/single-column-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/two-columns-filters/index.js +1 -1
- package/dist/components/modal/footer/index.js +1 -1
- package/dist/components/modal/header/index.js +1 -1
- package/dist/components/modal/index.js +1 -1
- package/dist/components/modal/modal-confirm/index.js +1 -1
- package/dist/components/notification/index.js +1 -1
- package/dist/components/notification-sign/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/oauth-selector/index.js +1 -1
- package/dist/components/oauth-selector/option-container/index.js +1 -1
- package/dist/components/plan-card/index.js +1 -1
- package/dist/components/plan-card/recommended-tag/index.js +1 -1
- package/dist/components/pop-up/description/index.js +1 -1
- package/dist/components/pop-up/index.js +1 -1
- package/dist/components/premium-feature/index.js +1 -1
- package/dist/components/priority-score/index.js +1 -1
- package/dist/components/progress-bar/index.js +1 -1
- package/dist/components/radio-button/index.js +1 -1
- package/dist/components/scroll-button/index.js +1 -1
- package/dist/components/search/index.js +1 -1
- package/dist/components/severity-badge/index.js +1 -1
- package/dist/components/severity-overview/badge/index.js +1 -1
- package/dist/components/severity-overview/index.js +1 -1
- package/dist/components/show-on-hover/index.js +1 -1
- package/dist/components/slide-out-menu/index.js +1 -1
- package/dist/components/slide-out-menu/menu-item/index.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/thumb/index.js +1 -1
- package/dist/components/step-lapse/index.js +1 -1
- package/dist/components/table-button/index.js +1 -1
- package/dist/components/tabs/fixed-tabs/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/tab/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/timeline/card/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toggle/index.js +1 -1
- package/dist/components/toggle-buttons/index.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tour/index.js +1 -1
- package/dist/components/typography/heading/index.js +1 -1
- package/dist/components/typography/index.js +1 -1
- package/dist/components/typography/span/index.js +1 -1
- package/dist/components/typography/text/index.js +1 -1
- package/dist/components/web-form/index.js +1 -1
- package/dist/{components-Ba5lLaLe.mjs → components-BIwotfJZ.mjs} +2387 -2847
- package/dist/{components-BLTC3Tzm.js → components-BXUj2TQd.js} +216 -419
- package/dist/hooks/index.js +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/components/progress/index.d.ts +0 -4
- package/dist/components/progress/index.js +0 -1
- package/dist/components/progress/index.stories.d.ts +0 -6
- package/dist/components/progress/styles.d.ts +0 -6
- package/dist/components/progress/types.d.ts +0 -12
- package/dist/components/progress/utils.d.ts +0 -2
- package/dist/components/search-bar/index.d.ts +0 -3
- package/dist/components/search-bar/index.js +0 -1
- package/dist/components/search-bar/index.stories.d.ts +0 -7
- package/dist/components/search-bar/item-searching/index.d.ts +0 -3
- package/dist/components/search-bar/item-searching/index.js +0 -1
- package/dist/components/search-bar/styles.d.ts +0 -15
- package/dist/components/search-bar/types.d.ts +0 -29
- package/dist/components/search-bar/utils.d.ts +0 -4
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),f=require("react"),s=require("./vendor-Fd8GJpo1.js"),G=require("react-dom"),Re=require("react-router-dom"),U=e=>({getVariant:(i,n)=>e(i)[n]}),gt=["padding","px","py","pl","pr","pt","pb","margin","mx","my","ml","mr","mt","mb","zIndex","position","top","right","bottom","left","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderRadius","scroll","visibility","display","height","width","maxHeight","maxWidth","minHeight","minWidth","shadow","bgColor","bgGradient","gap","flexDirection","flexGrow","justify","justifySelf","alignItems","alignSelf","wrap","color","fontFamily","fontSize","fontWeight","textAlign","whiteSpace","letterSpacing","lineSpacing","textDecoration","textOverflow","whiteSpace","wordBreak","wordWrap","cursor","transition","borderColorHover","bgColorHover","shadowHover"],mi={25:"#fcfcfd",50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#2f394b",800:"#212a36",900:"#161b25"},wi={25:"#fef2f3",50:"#fddfe2",100:"#fbbac0",200:"#f9959e",300:"#f65e6a",400:"#f32637",500:"#bf0b1a",600:"#ac0a17",700:"#9a0915",800:"#870812",900:"#750710"},ji={25:"",50:"",100:"#ffe6ff",200:"",300:"#b8075d",400:"",500:"#7f0540",600:"",700:"#59042d",800:"",900:"#460323"},vi={25:"",50:"#fef3f2",100:"",200:"#fecdca",300:"",400:"",500:"#f04438",600:"",700:"#b42318",800:"",900:""},ki={25:"",50:"#fffaeb",100:"",200:"#fef0c7",300:"",400:"#ffd562",500:"#fdb022",600:"#dc6803",700:"#b54708",800:"",900:""},Ci={25:"",50:"#f6fef9",100:"",200:"#a6f4c5",300:"",400:"",500:"#12b76a",600:"",700:"#027a48",800:"",900:""},Si={25:"",50:"#eff8ff",100:"",200:"#b2ddff",300:"",400:"",500:"#2e90fa",600:"",700:"#175cd3",800:"",900:""},zi={"01":"linear-gradient(45deg, #f32637 0%, #b8075d 100%)","02":"linear-gradient(45deg, #fcfcfd 0%, #667085 100%)"},Ii={type:{primary:"Roboto, sans-serif",poppins:"'Poppins', sans-serif",mono:"'Space Mono', monospace"},heading:{xxl:"64px",xl:"48px",lg:"32px",md:"24px",sm:"20px",xs:"16px"},text:{xl:"20px",lg:"18px",md:"16px",sm:"14px",xs:"12px"},weight:{bold:"700",semibold:"600",regular:"400"}},Ti={none:"none",sm:"0px 1px 2px 0px rgba(16, 24, 40, 0.15)",md:"0px 4px 6px 0px rgba(16, 24, 40, 0.15)",lg:"0px 8px 24px 0px rgba(16, 24, 40, 0.15)"},Fi={mobile:"480px",tablet:"960px",sm:"1024px",md:"1440px",lg:"1920px"},Ni={0:"0rem",.125:"0.125rem",.188:"0.188rem",.25:"0.25rem",.5:"0.5rem",.625:"0.625rem",.75:"0.75rem",1:"1rem",1.25:"1.25rem",1.5:"1.5rem",1.75:"1.75rem",2:"2rem",2.25:"2.25rem",2.5:"2.5rem",3:"3rem",3.5:"3.5rem",4:"4rem",4.5:"4.5rem",5:"5rem",6:"6rem"},Ei=["lock-keyhole","bars-sort","bolt","books","brain-circuit","briefcase","bug","buildings","bullseye-pointer","calendar-clock","calendar-xmark","chart-network","clipboard-check","comment","envelope","eye","file","flag","globe","hand-holding-dollar","hands-clapping","headset","hexagon-exclamation","light-emergency-on","magnifying-glass","pen-line","plane-departure","screwdriver-wrench","sensor-triangle-exclamation","shield-check","sidebar","skull","sliders","star-christmas","telescope","trash","unlock","user-group","user-hoodie","xmark"],Ri=[["fal","arrow-down"],["fal","arrow-left"],["fal","arrow-right"],["fal","arrow-up"],["fal","plus"],["fal","minus"],["fas","check"],["fas","circle-question"]],z={typography:Ii,shadows:Ti,breakpoints:Fi,spacing:Ni,palette:{primary:wi,complementary:ji,error:vi,info:Si,warning:ki,success:Ci,black:"#0c111d",white:"#ffffff",gray:mi,gradients:zi}},Di=({children:e})=>t.jsx(s.ot,{theme:z,children:e}),T=(e,i)=>i===void 0?"":`${e}: ${i};`,oe=e=>{const i=e.py??e.pt??0,n=e.px??e.pr??0,a=e.py??e.pb??0,r=e.px??e.pl??0;if(e.padding){const[o,l,c,d]=e.padding;return`padding: ${z.spacing[o]} ${z.spacing[l]} ${z.spacing[c]} ${z.spacing[d]};`}return`padding: ${z.spacing[i]} ${z.spacing[n]} ${z.spacing[a]} ${z.spacing[r]};`},se=e=>{const i=e.my??e.mt??0,n=e.mx??e.mr??0,a=e.my??e.mb??0,r=e.mx??e.ml??0;if(e.margin){const[o,l,c,d]=e.margin;return`margin: ${z.spacing[o]} ${z.spacing[l]} ${z.spacing[c]} ${z.spacing[d]};`}return`margin: ${z.spacing[i]} ${z.spacing[n]} ${z.spacing[a]} ${z.spacing[r]};`},le=e=>{const i=T("position",e.position),n=T("top",e.top),a=T("right",e.right),r=T("bottom",e.bottom),o=T("left",e.left),l=T("z-index",e.zIndex);return`
|
|
2
2
|
${i}
|
|
3
3
|
${n}
|
|
4
4
|
${a}
|
|
5
5
|
${r}
|
|
6
6
|
${o}
|
|
7
7
|
${l}
|
|
8
|
-
`},
|
|
8
|
+
`},ce=e=>{const i=T("border",e.border),n=T("border-top",e.borderTop),a=T("border-right",e.borderRight),r=T("border-bottom",e.borderBottom),o=T("border-left",e.borderLeft),l=T("border-color",e.borderColor),c=T("border-radius",e.borderRadius);return`
|
|
9
9
|
${i}
|
|
10
10
|
${n}
|
|
11
11
|
${a}
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
${o}
|
|
14
14
|
${l}
|
|
15
15
|
${c}
|
|
16
|
-
`},
|
|
17
|
-
${
|
|
18
|
-
${
|
|
19
|
-
`:"",n=T("visibility",e.visibility),a=T("display",e.display),r=T("height",e.height),o=T("width",e.width),l=T("max-height",e.maxHeight),c=T("max-width",e.maxWidth),d=T("min-height",e.minHeight),p=T("min-width",e.minWidth),g=T("box-shadow",e.shadow?
|
|
16
|
+
`},Li=e=>e.includes("x")?"overflow-x: auto;":"",Pi=e=>e.includes("y")?"overflow-y: auto;":"",de=e=>{const i=e.scroll?`
|
|
17
|
+
${Li(e.scroll)}
|
|
18
|
+
${Pi(e.scroll)}
|
|
19
|
+
`:"",n=T("visibility",e.visibility),a=T("display",e.display),r=T("height",e.height),o=T("width",e.width),l=T("max-height",e.maxHeight),c=T("max-width",e.maxWidth),d=T("min-height",e.minHeight),p=T("min-width",e.minWidth),g=T("box-shadow",e.shadow?z.shadows[e.shadow]:void 0),x=T("gap",e.gap===void 0?void 0:z.spacing[e.gap]),u=T("background-color",e.bgColor),h=T("background",e.bgGradient),y=T("flex-direction",e.flexDirection),b=T("flex-grow",e.flexGrow),m=T("justify-content",e.justify),w=T("justify-self",e.justifySelf),j=T("align-items",e.alignItems),I=T("align-self",e.alignSelf),C=T("flex-wrap",e.wrap);return`
|
|
20
20
|
${i}
|
|
21
21
|
${n}
|
|
22
22
|
${a}
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
${d}
|
|
28
28
|
${p}
|
|
29
29
|
${g}
|
|
30
|
-
${
|
|
30
|
+
${u}
|
|
31
31
|
${h}
|
|
32
32
|
${x}
|
|
33
|
-
${
|
|
33
|
+
${y}
|
|
34
34
|
${b}
|
|
35
35
|
${m}
|
|
36
36
|
${w}
|
|
37
37
|
${j}
|
|
38
38
|
${I}
|
|
39
|
-
${
|
|
40
|
-
`},
|
|
39
|
+
${C}
|
|
40
|
+
`},pe=e=>{const i=T("color",e.color),n=T("font-family",e.fontFamily),a=T("font-size",e.fontSize),r=T("font-weight",e.fontWeight),o=T("line-spacing",e.letterSpacing),l=T("line-height",e.lineSpacing),c=T("text-align",e.textAlign),d=T("text-decoration",e.textDecoration),p=T("text-overflow",e.textOverflow),g=T("white-space",e.whiteSpace),x=T("word-break",e.wordBreak),u=T("word-wrap",e.wordWrap);return`
|
|
41
41
|
${i}
|
|
42
42
|
${n}
|
|
43
43
|
${a}
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
${p}
|
|
50
50
|
${g}
|
|
51
51
|
${x}
|
|
52
|
-
${
|
|
53
|
-
`},
|
|
52
|
+
${u}
|
|
53
|
+
`},ge=e=>{const i=T("cursor",e.cursor),n=T("border-color",e.borderColorHover),a=T("background-color",e.bgColorHover),r=T("box-shadow",e.shadowHover===void 0?void 0:z.shadows[e.shadowHover]),o=T("transition",e.transition);return`
|
|
54
54
|
${i}
|
|
55
55
|
|
|
56
56
|
&:hover {
|
|
@@ -59,39 +59,39 @@
|
|
|
59
59
|
${a}
|
|
60
60
|
${r}
|
|
61
61
|
}
|
|
62
|
-
`},
|
|
62
|
+
`},xe={shouldForwardProp:e=>!gt.includes(e)},ue=s.dt.div.withConfig(xe)`
|
|
63
|
+
${oe}
|
|
64
|
+
${se}
|
|
63
65
|
${le}
|
|
64
|
-
${ce}
|
|
65
66
|
${de}
|
|
66
|
-
${ge}
|
|
67
|
-
${ue}
|
|
68
67
|
${pe}
|
|
69
|
-
${xe}
|
|
70
|
-
`,Ge=s.dt.button.withConfig(fe)`
|
|
71
|
-
${le}
|
|
72
68
|
${ce}
|
|
73
|
-
${de}
|
|
74
69
|
${ge}
|
|
75
|
-
|
|
76
|
-
${
|
|
77
|
-
${
|
|
78
|
-
`,Ue=s.dt.p.withConfig(fe)`
|
|
70
|
+
`,Me=s.dt.button.withConfig(xe)`
|
|
71
|
+
${oe}
|
|
72
|
+
${se}
|
|
79
73
|
${le}
|
|
80
|
-
${ce}
|
|
81
74
|
${de}
|
|
82
|
-
${ge}
|
|
83
|
-
${ue}
|
|
84
75
|
${pe}
|
|
85
|
-
${xe}
|
|
86
|
-
`,Ye=s.dt.span.withConfig(fe)`
|
|
87
|
-
${le}
|
|
88
76
|
${ce}
|
|
77
|
+
${ge}
|
|
78
|
+
`,Ve=s.dt.p.withConfig(xe)`
|
|
79
|
+
${oe}
|
|
80
|
+
${se}
|
|
81
|
+
${le}
|
|
89
82
|
${de}
|
|
83
|
+
${pe}
|
|
84
|
+
${ce}
|
|
90
85
|
${ge}
|
|
91
|
-
|
|
86
|
+
`,Ge=s.dt.span.withConfig(xe)`
|
|
87
|
+
${oe}
|
|
88
|
+
${se}
|
|
89
|
+
${le}
|
|
90
|
+
${de}
|
|
92
91
|
${pe}
|
|
93
|
-
${
|
|
94
|
-
|
|
92
|
+
${ce}
|
|
93
|
+
${ge}
|
|
94
|
+
`,Ai=s.dt(ue)`
|
|
95
95
|
${({theme:e,$center:i=!1,$styleMd:n,$styleSm:a})=>`
|
|
96
96
|
${i?"margin: auto;":""}
|
|
97
97
|
scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
|
|
@@ -108,8 +108,8 @@
|
|
|
108
108
|
${a};
|
|
109
109
|
}
|
|
110
110
|
`}
|
|
111
|
-
|
|
112
|
-
${({theme:e,$bgGradient:i="unset",$color:n=e.palette.gray[800],$display:a="block",$fontFamily:r=e.typography.type.primary,$fontWeight:o="bold",$letterSpacing:l=0,$lineSpacing:c=1.5,$lineSpacingSm:d,$size:p,$sizeMd:g,$sizeSm:x,$textFill:
|
|
111
|
+
`,$=f.forwardRef(function({as:i="div",center:n,children:a,id:r,onHover:o,onLeave:l,styleMd:c,styleSm:d,...p},g){return t.jsx(Ai,{$center:n,$styleMd:c,$styleSm:d,as:i,id:r,onMouseLeave:l,onMouseOver:o,ref:g,...p,children:a})}),Wi=s.dt(Ve)`
|
|
112
|
+
${({theme:e,$bgGradient:i="unset",$color:n=e.palette.gray[800],$display:a="block",$fontFamily:r=e.typography.type.primary,$fontWeight:o="bold",$letterSpacing:l=0,$lineSpacing:c=1.5,$lineSpacingSm:d,$size:p,$sizeMd:g,$sizeSm:x,$textFill:u="unset",$whiteSpace:h="pre-line",$wordBreak:y="normal"})=>`
|
|
113
113
|
background: ${i};
|
|
114
114
|
color: ${n};
|
|
115
115
|
display: ${a};
|
|
@@ -120,10 +120,10 @@
|
|
|
120
120
|
line-height: ${e.spacing[c]};
|
|
121
121
|
width: ${a==="block"?"100%":"auto"};
|
|
122
122
|
white-space: ${h};
|
|
123
|
-
word-break: ${
|
|
123
|
+
word-break: ${y};
|
|
124
124
|
background-clip: text;
|
|
125
125
|
-webkit-background-clip: text;
|
|
126
|
-
-webkit-text-fill-color: ${
|
|
126
|
+
-webkit-text-fill-color: ${u};
|
|
127
127
|
|
|
128
128
|
@media screen
|
|
129
129
|
and (min-width: ${e.breakpoints.mobile})
|
|
@@ -137,8 +137,8 @@
|
|
|
137
137
|
line-height: ${e.spacing[d??c]};
|
|
138
138
|
}
|
|
139
139
|
`}
|
|
140
|
-
`,
|
|
141
|
-
${({theme:e,$bgGradient:i="unset",$color:n=e.palette.gray[600],$display:a="block",$fontFamily:r=e.typography.type.primary,$fontWeight:o="regular",$letterSpacing:l=0,$lineSpacing:c=1.25,$lineSpacingSm:d,$size:p,$sizeMd:g,$sizeSm:x,$textFill:
|
|
140
|
+
`,xt=s.dt(Ve)`
|
|
141
|
+
${({theme:e,$bgGradient:i="unset",$color:n=e.palette.gray[600],$display:a="block",$fontFamily:r=e.typography.type.primary,$fontWeight:o="regular",$letterSpacing:l=0,$lineSpacing:c=1.25,$lineSpacingSm:d,$size:p,$sizeMd:g,$sizeSm:x,$textFill:u="unset",$whiteSpace:h="pre-line",$wordBreak:y="normal"})=>`
|
|
142
142
|
background: ${i};
|
|
143
143
|
color: ${n};
|
|
144
144
|
display: ${a};
|
|
@@ -149,10 +149,10 @@
|
|
|
149
149
|
line-height: ${e.spacing[c]};
|
|
150
150
|
width: ${a==="block"?"100%":"auto"};
|
|
151
151
|
white-space: ${h};
|
|
152
|
-
word-break: ${
|
|
152
|
+
word-break: ${y};
|
|
153
153
|
background-clip: text;
|
|
154
154
|
-webkit-background-clip: text;
|
|
155
|
-
-webkit-text-fill-color: ${
|
|
155
|
+
-webkit-text-fill-color: ${u};
|
|
156
156
|
|
|
157
157
|
@media screen
|
|
158
158
|
and (min-width: ${e.breakpoints.mobile})
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
line-height: ${e.spacing[d??c]};
|
|
167
167
|
}
|
|
168
168
|
`}
|
|
169
|
-
`,
|
|
169
|
+
`,Bi=s.dt(Ge)`
|
|
170
170
|
${({theme:e,$color:i=e.palette.gray[600],$content:n=void 0,$display:a="inline",$fontWeight:r="regular",$size:o,$lineSpacing:l=1.25})=>`
|
|
171
171
|
color: ${i};
|
|
172
172
|
display: ${a};
|
|
@@ -178,11 +178,11 @@
|
|
|
178
178
|
|
|
179
179
|
${n===void 0?"":`&::after { content: "${n}"; }`}
|
|
180
180
|
`}
|
|
181
|
-
`,
|
|
181
|
+
`,W=f.forwardRef(function({bgGradient:i,children:n,className:a,color:r,display:o,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:p,lineSpacingSm:g,size:x,sizeMd:u,sizeSm:h,textFill:y,whiteSpace:b,wordBreak:m,...w},j){return t.jsx(Wi,{$bgGradient:i,$color:r,$display:o,$fontFamily:l,$fontWeight:c,$letterSpacing:d,$lineSpacing:p,$lineSpacingSm:g,$size:x,$sizeMd:u,$sizeSm:h,$textFill:y,$whiteSpace:b,$wordBreak:m,className:a,ref:j,...w,children:n})}),ne=f.forwardRef(function({children:i,color:n,content:a,display:r,fontFamily:o,fontWeight:l,letterSpacing:c,lineSpacing:d,lineSpacingSm:p,size:g,sizeMd:x,sizeSm:u,...h},y){return t.jsx(Bi,{$color:n,$content:a,$display:r,$fontFamily:o,$fontWeight:l,$letterSpacing:c,$lineSpacing:d,$lineSpacingSm:p,$size:g,$sizeMd:x,$sizeSm:u,ref:y,...h,children:i})}),k=f.forwardRef(function({bgGradient:i,children:n,className:a,color:r,display:o,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:p,lineSpacingSm:g,size:x,sizeMd:u,sizeSm:h,textFill:y,whiteSpace:b,wordBreak:m,...w},j){return t.jsx(xt,{$bgGradient:i,$color:r,$display:o,$fontFamily:l,$fontWeight:c,$letterSpacing:d,$lineSpacing:p,$lineSpacingSm:g,$size:x,$sizeMd:u,$sizeSm:h,$textFill:y,$whiteSpace:b,$wordBreak:m,className:a,ref:j,...w,children:n})}),ut=({item:e})=>{const i=e.description&&typeof e.description=="string"?t.jsx(k,{mb:e.extraElement?.5:void 0,size:"sm",children:e.description}):e.description??void 0;return t.jsxs($,{display:"block",id:`panel-${e.title}`,padding:[.75,.75,.75,.75],children:[i,e.extraElement?t.jsx($,{children:e.extraElement}):void 0]})},Oi={xl:"96px",lg:"64px",md:"32px",sm:"24px",xs:"16px",xxs:"12px",xxss:"10px"},_i=s.dt(Ge)`
|
|
182
182
|
${({$clickable:e,$color:i="inherit",$disabled:n=!1,$hoverColor:a,$rotation:r,$size:o,$secondaryColor:l})=>{const c=a?"":"brightness(50%)",d=a??"";return`
|
|
183
183
|
color: ${i};
|
|
184
184
|
cursor: ${e?"pointer":"inherit"};
|
|
185
|
-
font-size: ${
|
|
185
|
+
font-size: ${Oi[o]};
|
|
186
186
|
line-height: 0;
|
|
187
187
|
vertical-align: middle;
|
|
188
188
|
pointer-events: inherit;
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
&:hover:not([disabled]) {
|
|
215
215
|
transform: scale(1.2);
|
|
216
216
|
}
|
|
217
|
-
`;const
|
|
217
|
+
`;const S=f.forwardRef(function({clickable:i,disabled:n,hoverColor:a,icon:r,iconClass:o="",iconColor:l,iconMask:c,iconSize:d,iconTransform:p,iconType:g="fa-solid",onClick:x,rotation:u,spanClass:h,secondaryColor:y,...b},m){return t.jsx(_i,{$clickable:i,$color:l,$disabled:n,$hoverColor:a,$rotation:u,$secondaryColor:y,$size:d,className:h,"data-testid":`${r}-icon`,onClick:x,ref:m,...b,children:t.jsx("i",{className:`${g} fa-${r} ${o}`,...c!==void 0?{"data-fa-mask":c}:{},...p!==void 0?{"data-fa-transform":p}:{}})},`${g}-${r}`)}),Hi=f.forwardRef(function({aligned:i="end",items:n,bgColor:a},r){const o=s.nt(),[l,c]=f.useState(!1),[d,p]=f.useState(-1),g=f.useCallback(x=>()=>{p(x),c(x===d?u=>!u:!0)},[d]);return t.jsx($,{ref:r,children:n.map((x,u)=>{const h=u===d&&l;return t.jsxs($,{bgColor:a??o.palette.white,children:[t.jsx($,{"aria-controls":`panel-${x.title}`,"aria-expanded":l,"aria-label":x.title,as:"button",bgColor:a??o.palette.white,bgColorHover:o.palette.gray[100],borderBottom:h||u===n.length-1?"1px solid":void 0,borderColor:o.palette.gray[200],borderTop:"1px solid",cursor:"pointer",display:"flex",onClick:g(u),padding:[.75,.75,.75,.75],width:"100%",children:t.jsxs($,{as:"summary",display:"flex",flexDirection:i==="end"?"row":"row-reverse",gap:.75,justify:"space-between",width:"100%",children:[t.jsx(k,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",sizeSm:"sm",textAlign:"start",children:x.title}),t.jsx(S,{icon:h?"chevron-up":"chevron-down",iconColor:o.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]})}),h&&t.jsx(ut,{item:x})]},x.title)})})}),Mi=e=>{switch(e){case"warning":return"triangle-exclamation";case"info":return"circle-info";case"success":return"circle-check";case"error":default:return"circle-exclamation"}},{getVariant:Vi}=U(e=>({error:`
|
|
218
218
|
background: ${e.palette.error[50]};
|
|
219
219
|
border: 1px solid ${e.palette.error[500]};
|
|
220
220
|
color: ${e.palette.error[700]};
|
|
@@ -266,7 +266,7 @@
|
|
|
266
266
|
color: ${e.palette.warning[700]};
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
|
-
`})),
|
|
269
|
+
`})),Gi=s.dt.div`
|
|
270
270
|
${({theme:e,$variant:i})=>`
|
|
271
271
|
background: transparent;
|
|
272
272
|
align-items: center;
|
|
@@ -286,12 +286,12 @@
|
|
|
286
286
|
background-color: transparent;
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
-
${
|
|
289
|
+
${Vi(e,i??"error")}
|
|
290
290
|
`}
|
|
291
|
-
`,
|
|
291
|
+
`,Ui=s.dt.div`
|
|
292
292
|
padding-right: 4px;
|
|
293
293
|
width: 100%;
|
|
294
|
-
`,{getVariant:
|
|
294
|
+
`,{getVariant:Yi}=U(e=>({ghost:`
|
|
295
295
|
background: transparent;
|
|
296
296
|
border: none;
|
|
297
297
|
color: ${e.palette.gray[800]};
|
|
@@ -365,7 +365,7 @@
|
|
|
365
365
|
background-color: ${e.palette.primary[500]};
|
|
366
366
|
color: ${e.palette.white};
|
|
367
367
|
}
|
|
368
|
-
`}))
|
|
368
|
+
`})),ft=s.dt(Me)`
|
|
369
369
|
${({theme:e,justify:i,$size:n,$variant:a})=>`
|
|
370
370
|
align-items: center;
|
|
371
371
|
border-radius: var(--btn-spacing);
|
|
@@ -387,9 +387,9 @@
|
|
|
387
387
|
${a!=="link"?`--btn-padding-y: ${e.spacing[1]}`:""};
|
|
388
388
|
}
|
|
389
389
|
|
|
390
|
-
${
|
|
390
|
+
${Yi(e,a??"primary")}
|
|
391
391
|
`}
|
|
392
|
-
`,
|
|
392
|
+
`,qi=s.dt(ft)`
|
|
393
393
|
${({theme:e,$borderRadius:i="4px",$px:n=.5,$py:a=.5})=>`
|
|
394
394
|
--btn-spacing: ${i};
|
|
395
395
|
--btn-padding-x: ${e.spacing[n]};
|
|
@@ -403,7 +403,7 @@
|
|
|
403
403
|
margin: 0 !important;
|
|
404
404
|
}
|
|
405
405
|
`}
|
|
406
|
-
`,
|
|
406
|
+
`,Ki=s.dt(ue)``,Xi=s.dt.div`
|
|
407
407
|
${({theme:e,$maxWidth:i="320px"})=>`
|
|
408
408
|
background-color: ${e.palette.gray[700]};
|
|
409
409
|
border-radius: 8px;
|
|
@@ -414,7 +414,7 @@
|
|
|
414
414
|
width: max-content;
|
|
415
415
|
z-index: 999999;
|
|
416
416
|
`}
|
|
417
|
-
`,V=({children:e,disabled:i=!1,display:n="inline-block",height:a,icon:r,iconColor:o,iconSize:l,id:c,maxWidth:d,nodeTip:p,place:g="bottom",tip:x="",title:
|
|
417
|
+
`,V=({children:e,disabled:i=!1,display:n="inline-block",height:a,icon:r,iconColor:o,iconSize:l,id:c,maxWidth:d,nodeTip:p,place:g="bottom",tip:x="",title:u="",hide:h=x===""&&u===""&&p===void 0,width:y})=>{const b=s.nt(),[m,w]=f.useState(!1),{refs:j,floatingStyles:I,context:C}=s.useFloating({middleware:[s.flip({fallbackAxisSideDirection:"start"}),s.offset({mainAxis:10}),s.shift()],onOpenChange:w,open:m,placement:g,whileElementsMounted:s.autoUpdate}),v=s.useHover(C,{delay:{close:0,open:500},move:!1}),E=s.useFocus(C),F=s.useRole(C,{role:r?"label":"tooltip"}),{getReferenceProps:R,getFloatingProps:A}=s.useInteractions([v,E,F]);return i?t.jsx(f.StrictMode,{children:e}):t.jsxs(t.Fragment,{children:[t.jsx(Ki,{...R(),display:n,height:a,id:c,ref:j.setReference,width:y,children:r?t.jsx(S,{clickable:!0,disabled:i,icon:r,iconColor:o,iconSize:l??"xxs",iconType:m?"fa-solid":"fa-light"}):e}),m&&!h&&G.createPortal(t.jsxs(Xi,{...A(),$maxWidth:d,id:`floating-${c}`,ref:j.setFloating,style:I,children:[s.lodashExports.isEmpty(u)?void 0:t.jsx(k,{color:b.palette.white,fontWeight:"bold",lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:u}),s.lodashExports.isEmpty(x)?void 0:t.jsx(k,{color:b.palette.gray[100],lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:x}),s.lodashExports.isEmpty(p)?void 0:p]}),document.getElementById("root")??document.body)]})},B=f.forwardRef(function({borderRadius:i,disabled:n,icon:a,iconColor:r,iconSize:o="xxs",iconTransform:l,iconType:c,id:d,justify:p="center",onClick:g,px:x,py:u,type:h="button",tooltip:y,tooltipPlace:b,value:m,variant:w="primary",...j},I){const C=t.jsx(qi,{$borderRadius:i,$px:x,$py:u,$variant:w,"aria-disabled":n,"aria-label":d,borderRadius:i,disabled:n,id:d,justify:p,onClick:g,ref:I,type:h,value:m,...j,children:t.jsx(S,{clickable:!1,icon:a,iconColor:r,iconSize:o,iconTransform:l,iconType:c})}),E=(h+(w??"")+(d??a)).replace(/ /u,"_");return y===void 0?C:t.jsx(V,{id:`${E}-tooltip`,place:b,tip:y,children:C})}),Zi=f.forwardRef(function({autoHide:i=!1,children:n,closable:a=!1,onTimeOut:r,show:o=!0,time:l=8,variant:c="error",id:d,...p},g){const[x,u]=f.useState(o),h=f.useCallback(()=>{u(!1)},[]);return f.useEffect(()=>{const y=setTimeout(()=>{r==null||r(!0),i&&h()},l*1e3);return()=>{clearTimeout(y)}},[i,h,l,r]),f.useEffect(()=>{u(o)},[o,u]),t.jsx($,{display:x?"block":"none",ref:g,role:"alert",...p,children:t.jsxs(Gi,{$variant:c,id:d,children:[t.jsx(S,{clickable:!1,icon:Mi(c),iconSize:"xs",iconType:"fa-light"}),t.jsx(Ui,{children:n}),a?t.jsx(B,{height:"fit-content",icon:"close",iconSize:"xs",iconType:"fa-light",onClick:h,px:.125,py:.125,variant:"ghost"}):void 0]})})}),it=s.dt.div`
|
|
418
418
|
${({theme:e})=>`
|
|
419
419
|
align-items: center;
|
|
420
420
|
background-color: ${e.palette.gray[200]};
|
|
@@ -430,7 +430,7 @@
|
|
|
430
430
|
width: ${e.spacing[1.25]};
|
|
431
431
|
height: ${e.spacing[1.25]};
|
|
432
432
|
`}
|
|
433
|
-
`,
|
|
433
|
+
`,Ji=s.dt.div`
|
|
434
434
|
ul,
|
|
435
435
|
ol {
|
|
436
436
|
padding-top: 6px;
|
|
@@ -494,7 +494,7 @@
|
|
|
494
494
|
#menu-profile-container li div {
|
|
495
495
|
min-width: unset;
|
|
496
496
|
}
|
|
497
|
-
`,{getVariant:
|
|
497
|
+
`,{getVariant:Qi}=U(e=>({default:`
|
|
498
498
|
background-color: ${e.palette.gray[200]};
|
|
499
499
|
color: ${e.palette.gray[800]};
|
|
500
500
|
`,error:`
|
|
@@ -569,7 +569,7 @@
|
|
|
569
569
|
background-color: ${e.palette.warning[400]};
|
|
570
570
|
color: ${e.palette.warning[700]};
|
|
571
571
|
}
|
|
572
|
-
`})),
|
|
572
|
+
`})),en=s.dt.span`
|
|
573
573
|
${({theme:e,$fontSize:i=e.typography.text.xs,$variant:n})=>`
|
|
574
574
|
align-items: center;
|
|
575
575
|
border-radius: ${e.spacing[n==="technique"?1:.25]};
|
|
@@ -590,9 +590,9 @@
|
|
|
590
590
|
display: flex;
|
|
591
591
|
}
|
|
592
592
|
|
|
593
|
-
${
|
|
593
|
+
${Qi(e,n)}
|
|
594
594
|
`}
|
|
595
|
-
`,{getVariant:
|
|
595
|
+
`,{getVariant:tn}=U(e=>({highRelevance:`
|
|
596
596
|
color: ${e.palette.primary[500]};
|
|
597
597
|
|
|
598
598
|
&:hover:not([disabled]) {
|
|
@@ -604,7 +604,7 @@
|
|
|
604
604
|
&:hover:not([disabled]) {
|
|
605
605
|
color: ${e.palette.gray[500]};
|
|
606
606
|
}
|
|
607
|
-
`})),
|
|
607
|
+
`})),ht=s.lt`
|
|
608
608
|
${({theme:e,$color:i,$variant:n})=>`
|
|
609
609
|
align-items: center;
|
|
610
610
|
cursor: pointer;
|
|
@@ -626,13 +626,13 @@
|
|
|
626
626
|
text-decoration: none;
|
|
627
627
|
}
|
|
628
628
|
|
|
629
|
-
${i?`color: ${i}`:
|
|
629
|
+
${i?`color: ${i}`:tn(e,n)}
|
|
630
630
|
`}
|
|
631
|
-
`,
|
|
632
|
-
${
|
|
633
|
-
`,
|
|
634
|
-
${
|
|
635
|
-
`,X=({children:e,color:i,download:n,href:a,iconPosition:r="right",onClick:o,target:l,variant:c="lowRelevance"})=>{const d=a.startsWith("https://"),p=t.jsx(
|
|
631
|
+
`,nn=s.dt.a`
|
|
632
|
+
${ht}
|
|
633
|
+
`,an=s.dt(Re.Link)`
|
|
634
|
+
${ht}
|
|
635
|
+
`,X=({children:e,color:i,download:n,href:a,iconPosition:r="right",onClick:o,target:l,variant:c="lowRelevance"})=>{const d=a.startsWith("https://"),p=t.jsx(S,{icon:n===void 0?"arrow-up-right-from-square":"arrow-down-to-bracket",iconSize:"xxs",iconType:"fa-regular",ml:.25,mr:.25});return d?t.jsxs(nn,{$color:i,$variant:c,download:n,href:a,onClick:o,rel:"nofollow noopener noreferrer",target:l??"_blank",children:[r==="left"?p:void 0,e,r==="right"?p:void 0]}):t.jsxs(an,{$variant:c,download:n,onClick:o,rel:"nofollow noopener noreferrer",target:l,to:a,children:[l!==void 0&&r==="left"?p:void 0,e,l!==void 0&&r==="right"?p:void 0]})},Y=({disabled:e,icon:i,iconColor:n="inherit",iconType:a="fa-light",id:r="close-tag",filterValues:o="",fontSize:l,href:c,linkLabel:d,onClose:p,priority:g="default",tagTitle:x="",tagLabel:u,variant:h="default"})=>{const y=u.length>25&&s.lodashExports.isEmpty(x+o),b=`${u.slice(0,25)}...`;return t.jsxs(ne,{className:"gap-0.5",display:c===void 0?"initial":"flex",size:"sm",children:[t.jsxs(en,{$fontSize:l,$variant:h,className:g,children:[i&&t.jsx(S,{icon:i,iconColor:n,iconSize:"xxs",iconType:a}),t.jsxs("span",{children:[t.jsx("strong",{children:x}),t.jsx("span",{children:y?b:u}),t.jsx("strong",{children:o})]}),p?t.jsx(B,{disabled:e,icon:"xmark",iconSize:"xxs",iconType:"fa-light",id:r,onClick:p,px:.125,py:.125,variant:"ghost"}):void 0]}),c===void 0?void 0:t.jsx(X,{href:c,children:d})]})},rn=(e,i=!0)=>{const n=window.open(e,i?void 0:"_self","noopener,noreferrer,");s.lodashExports.isObject(n)&&(n.opener=null)},D=f.forwardRef(function({children:i,disabled:n=!1,external:a=!1,fontSize:r,href:o,id:l,icon:c,name:d,onClick:p,showArrow:g=!1,tag:x,type:u="button",tooltip:h,tooltipPlace:y="bottom",underline:b=!1,value:m,variant:w="primary",width:j,...I},C){const v=h!==void 0,E=`${l}-tooltip`,F=f.useCallback(()=>{o&&rn(o,a)},[a,o]),R=t.jsxs(ft,{$size:r,$variant:w,"aria-disabled":n,className:b?"underline":void 0,disabled:n,id:l,name:d,onClick:w==="link"?F:p,ref:C,type:u,value:m,width:j,...v?{"data-tooltip-id":E}:{},...I,children:[c!==void 0&&t.jsx(S,{icon:c,iconSize:"xs",iconType:"fa-light"}),i,(g||w==="link")&&t.jsx(S,{icon:"arrow-right",iconSize:"xs",iconType:"fa-light"}),x===void 0?null:t.jsx(Y,{tagLabel:x,variant:"inactive"})]});return v?t.jsx(V,{disabled:!v,id:E,place:y,tip:h,width:j,children:R}):R}),on=f.forwardRef(function({children:i,onClick:n,userName:a,showIcon:r=!1,showUsername:o=!1},l){const c=!!n;return t.jsx($,{id:"navbar-user-profile",ref:l,zIndex:9999,children:t.jsxs($,{alignItems:"end",display:"flex",flexDirection:"column",position:"relative",zIndex:30,children:[c?t.jsxs(D,{onClick:n,pb:.5,pl:.5,pr:.5,pt:.5,variant:"ghost",children:[t.jsx(it,{children:a[0].toUpperCase()}),o?t.jsx(k,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:a.split(" ")[0]}):void 0,r?t.jsx(S,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}):t.jsxs($,{alignItems:"center",display:"flex",px:.5,py:.5,children:[t.jsx(it,{children:a[0].toUpperCase()}),o?t.jsxs(k,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:["Hi ",a.split(" ")[0],"!"]}):void 0,r?t.jsx(S,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}),t.jsx(Ji,{children:i})]})})}),Se=({authorEmail:e,date:i,description:n,descriptionColor:a,id:r,title:o,titleColor:l,textAlign:c,textSpacing:d=0,tooltip:p})=>{const g=s.nt();return t.jsxs($,{width:"100%",children:[typeof o=="string"?t.jsx(k,{color:l??g.palette.gray[800],fontWeight:"bold",mb:d,size:"sm",textAlign:c,wordBreak:"break-word",children:o}):o,t.jsxs($,{alignItems:"start",display:"flex",flexDirection:"column",gap:.25,children:[n&&t.jsx(k,{color:a??g.palette.gray[800],fontWeight:n===void 0?"bold":"regular",size:"sm",textAlign:c,wordBreak:"break-word",children:n}),i&&t.jsx(k,{color:g.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`Date: ${i.split(" ")[0]}`}),e&&t.jsx(k,{color:g.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`Author: ${e}`}),p&&t.jsx(V,{icon:"circle-info",id:r,tip:p})]})]})},nt=s.dt($).attrs(({...e})=>({display:"inline-block",position:"relative",...e}))`
|
|
636
636
|
& img {
|
|
637
637
|
display: block;
|
|
638
638
|
}
|
|
@@ -647,7 +647,7 @@
|
|
|
647
647
|
pointer-events: none;
|
|
648
648
|
${({$opacity:e=0})=>`background-color: rgba(0, 0, 0, ${e});`}
|
|
649
649
|
}
|
|
650
|
-
`,
|
|
650
|
+
`,sn=e=>{if(s._.isNil(e))return"";const i=e.split(".");return(i.length>1?s._.last(i):"").toLowerCase()},ln=(e,i)=>s._.isUndefined(i)?!1:s._.includes(e,sn(i)),bt=({alt:e,fileType:i,width:n="100%",opacity:a=0,src:r,height:o="auto"})=>i==="video"||ln(["webm"],r)?t.jsx(nt,{$opacity:a,children:t.jsxs("video",{controls:!0,muted:!0,style:{height:o,width:n},children:[t.jsx("source",{src:r,type:"video/webm"}),t.jsx(X,{href:r,iconPosition:"hidden",children:r})]})}):t.jsx(nt,{$opacity:a,children:t.jsx("img",{alt:e,src:r,style:{height:o,width:n}})}),cn=({alt:e,authorEmail:i,date:n,description:a,src:r,children:o,isEditing:l,onClick:c,title:d,hideDescription:p=!1,headerType:g="image",showMaximize:x=!0})=>{const u=s.nt(),[h,y]=f.useState(!1),b=f.useCallback(()=>{y(!0)},[]),m=f.useCallback(()=>{y(!1)},[]);return t.jsxs($,{bgColor:"transparent",border:"1px solid transparent",borderColorHover:"black",borderRadius:u.spacing[.25],display:"flex",flexDirection:"column",gap:1,onHover:b,onLeave:m,padding:[.5,.5,.5,.5],width:"100%",children:[t.jsx($,{cursor:l?"unset":"pointer",display:"inline-flex",justify:"center",onClick:c,position:"relative",width:"100%",children:o===void 0?t.jsxs(f.Fragment,{children:[t.jsx(bt,{alt:e,fileType:g,height:"147px",opacity:h?.3:0,src:r,width:"100%"}),x?t.jsx($,{bottom:"10px",position:"absolute",right:"10px",children:t.jsx(B,{color:"white",icon:"arrows-maximize",iconSize:"xxs",iconType:"fa-light",variant:"secondary"})}):void 0]}):o}),p?null:t.jsx(Se,{authorEmail:i,date:n,description:a,descriptionColor:u.palette.gray[600],id:`${e}-card-header`,title:d})]})},dn=s.dt.div`
|
|
651
651
|
${({theme:e,$align:i="center",$minWidth:n="auto",$minHeight:a="auto"})=>`
|
|
652
652
|
display: flex;
|
|
653
653
|
background-color: ${e.palette.white};
|
|
@@ -666,7 +666,7 @@
|
|
|
666
666
|
text-align: ${i};
|
|
667
667
|
}
|
|
668
668
|
`}
|
|
669
|
-
`,
|
|
669
|
+
`,Ue=({htmlFor:e,label:i,link:n,required:a,tooltip:r,weight:o="normal"})=>{const l=s.nt(),c=`${e}-tooltip`,d=r!==void 0&&!s.lodashExports.isEmpty(r);return t.jsxs("label",{className:`flex font-${o} gap-1 w-full`,htmlFor:e,children:[i,a&&t.jsx(S,{icon:"asterisk",iconColor:l.palette.error[500],iconSize:"xxss"}),n?t.jsx(X,{href:n,target:"_blank"}):null,d?t.jsx(V,{display:"inline-flex",icon:"circle-info",id:c,place:"top",tip:r}):null]})},pn=s.dt.div`
|
|
670
670
|
${({theme:e})=>`
|
|
671
671
|
align-items: flex-start;
|
|
672
672
|
display: inline-flex;
|
|
@@ -809,7 +809,7 @@
|
|
|
809
809
|
border: 1px solid ${e.palette.gray[600]};
|
|
810
810
|
}
|
|
811
811
|
`}
|
|
812
|
-
`,
|
|
812
|
+
`,_=({children:e,error:i,helpLink:n,helpLinkText:a="Link here",helpText:r,htmlFor:o,label:l,linkPosition:c="down",maxLength:d,required:p,tooltip:g,value:x,weight:u})=>{const h=s.nt(),y=x?x.length:0;return t.jsxs(pn,{children:[l===void 0?void 0:t.jsx(Ue,{htmlFor:o,label:l,link:c==="up"?n:void 0,required:p,tooltip:g,weight:u}),e,i||d?t.jsxs($,{display:"flex",justify:i===void 0?"end":"space-between",width:"100%",children:[i&&t.jsx(k,{className:"error-msg",color:h.palette.error[500],display:"block",lineSpacing:1,size:"sm",children:i}),d&&t.jsx(Y,{priority:"low",tagLabel:`${y}/${d}`,variant:"error"})]}):void 0,r||n?t.jsxs($,{alignItems:"center",display:"flex",gap:.25,width:"100%",children:[r&&t.jsxs(t.Fragment,{children:[t.jsx(S,{icon:"circle-info",iconColor:h.palette.gray[400],iconSize:"xxs",iconType:"fa-light"}),t.jsx(k,{color:h.palette.gray[400],display:"inline-block",size:"sm",children:r})]}),n&&c==="down"?t.jsx(X,{href:n,children:a}):void 0]}):void 0]})},fe=({className:e,children:i,isFilter:n=!1,popoverRef:a,state:r,triggerRef:o,...l})=>{var x;const c=f.useRef(null),d=(x=o==null?void 0:o.current)==null?void 0:x.getBoundingClientRect(),{popoverProps:p}=s.$f2f8a6077418541e$export$542a6fd13ac93354({...l,popoverRef:a??c,triggerRef:o,isNonModal:a?!0:void 0},r),g=f.useCallback(u=>{u.preventDefault()},[]);return t.jsx(s.$337b884510726a0d$export$c6fdb837b070b4ff,{children:t.jsx("div",{...p,className:e,onPointerDown:n?g:void 0,ref:a??c,style:{...p.style,...e==="dropdown"?{display:"flex",justifyContent:"center",width:d==null?void 0:d.width}:{}},children:i})})},gn=s.dt.ul`
|
|
813
813
|
${({theme:e})=>`
|
|
814
814
|
align-self: center;
|
|
815
815
|
background: ${e.palette.white};
|
|
@@ -824,7 +824,7 @@
|
|
|
824
824
|
scroll-padding: ${e.spacing[.5]};
|
|
825
825
|
width: 95%;
|
|
826
826
|
`}
|
|
827
|
-
`,
|
|
827
|
+
`,xn=s.dt.li`
|
|
828
828
|
${({theme:e})=>`
|
|
829
829
|
align-items: center;
|
|
830
830
|
color: ${e.palette.gray[800]};
|
|
@@ -859,7 +859,7 @@
|
|
|
859
859
|
}
|
|
860
860
|
}
|
|
861
861
|
`}
|
|
862
|
-
`,
|
|
862
|
+
`,yt=({item:e,state:i})=>{const n=s.nt(),a=f.useRef(null),{optionProps:r,isSelected:o,isFocused:l,isDisabled:c}=s.$293f70390ea03370$export$497855f14858aa34({key:e.key},i,a),d=[o?"selected":"",l?"focused":"",c?"disabled":""].join(" ");return t.jsxs(xn,{...r,className:d,ref:a,children:[t.jsx(k,{color:n.palette.gray[800],size:"sm",textOverflow:"ellipsis",whiteSpace:"nowrap",children:e.rendered}),o?t.jsx(S,{icon:"check",iconSize:"xxs",iconType:"fa-light"}):void 0]})},De=({field:e,disabled:i=!1,error:n,helpLink:a,helpLinkText:r,helpText:o,label:l,loadingItems:c,name:d,items:p,onBlur:g,onChange:x,placeholder:u,required:h,tooltip:y,value:b,weight:m})=>{var tt;const w=s.nt(),j=i?void 0:n,I=(e==null?void 0:e.value)??b,[C,v]=f.useState(((tt=p.find(P=>P.value===I))==null?void 0:tt.name)??""),[E,F]=f.useState(I),[R,A]=f.useState(p),[L,N]=f.useState(!1),{contains:O}=s.$bb77f239b46e8c72$export$3274cf84b703fff({sensitivity:"base"}),M=f.useRef(null),Q=f.useRef(null),Ee=f.useRef(null),Je=f.useRef(null),Qe=f.useRef(null),pi=f.useMemo(()=>p.map(P=>O(P.name,C)||L?t.jsx(s.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,{children:P.name},P.value):null),[O,C,p,L]),gi=f.useCallback(P=>{v(P),P===""?N(!0):(N(!1),F(H=>{const me=P===""?"":H;return e&&e.onChange(me),x&&x(P),me}),A(p.filter(H=>O(H.name,P))))},[O,p,e,x]),xi=f.useCallback(P=>{var H;v(((H=p.find(me=>me.value===P))==null?void 0:H.name)??""),F(P?String(P):""),e&&e.onChange(P),x&&x(P?String(P):""),A(p)},[p,e,x]),et=f.useCallback(P=>{P.key==="Enter"&&P.preventDefault(),N(!1)},[]),ui=f.useCallback(()=>{g&&g(),e&&e.onBlur()},[e,g]),K=s.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({allowsEmptyCollection:!0,inputValue:C,items:R,menuTrigger:"focus",shouldCloseOnBlur:!0,selectedKey:E,onBlur:ui,onInputChange:gi,onKeyDown:et,onKeyUp:()=>{N(!0)},onOpenChange(P,H){N(P&&(H==="manual"||H==="focus"))},onSelectionChange:xi,children:pi}),{buttonProps:fi,inputProps:hi,listBoxProps:bi}=s.$c350ade66beef0af$export$8c18d1b4f7232bbf({inputValue:C,buttonRef:Q,id:d,inputRef:M,label:l??d,listBoxRef:Ee,name:d,placeholder:u,popoverRef:Qe},K),{listBoxProps:yi}=s.$c132121280ec012d$export$50eacbbf140a3141(bi,K,Ee),{buttonProps:$i}=s.$701a24aa0da5b062$export$ea18c227d4417cc3(fi,Q);return f.useEffect(()=>{var P;(c===!1||!I)&&v(((P=p.find(H=>H.value===I))==null?void 0:P.name)??"")},[I,p,c]),t.jsxs(_,{error:j,helpLink:a,helpLinkText:r,helpText:o,htmlFor:d,label:l,required:h,tooltip:y,weight:m,children:[t.jsxs(Z,{className:`${i?"disabled":""} ${j?"error":""}`,ref:Je,children:[t.jsx("input",{...hi,"aria-invalid":j?"true":"false","aria-label":d,onKeyDown:et,ref:M}),j?t.jsx(S,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:w.palette.error[500],iconSize:"xs"}):void 0,t.jsx(B,{...$i,className:"action",icon:K.isOpen?"chevron-up":"chevron-down",iconColor:w.palette.gray[400],iconSize:"xxs",iconType:"fa-light",px:.125,py:.125,ref:Q,type:"button",variant:"ghost"})]}),K.isOpen&&K.collection.size>0&&!i?t.jsx(fe,{className:"dropdown",offset:4,placement:"bottom start",popoverRef:Qe,state:K,triggerRef:Je,children:t.jsx(gn,{...yi,ref:Ee,children:[...K.collection].map(P=>t.jsx(yt,{item:P,state:K},P.key))})}):null]})},$t=({control:e,disabled:i=!1,error:n,helpLink:a,helpLinkText:r,helpText:o,label:l,loadingItems:c,name:d,items:p,onBlur:g,onChange:x,placeholder:u,required:h,tooltip:y,value:b,weight:m})=>e?t.jsx(s.Controller,{control:e,name:d,render:({field:w,fieldState:j})=>{var I;return t.jsx(De,{disabled:i,error:(I=j.error)==null?void 0:I.message,field:w,helpLink:a,helpLinkText:r,helpText:o,items:p,label:l,loadingItems:c,name:d,onBlur:g,onChange:x,placeholder:u,required:h,tooltip:y,value:b,weight:m})},rules:{required:h}}):t.jsx(De,{disabled:i,error:n,helpLink:a,helpLinkText:r,helpText:o,items:p,label:l,loadingItems:c,name:d,onBlur:g,onChange:x,placeholder:u,required:h,tooltip:y,value:b,weight:m}),un=s.dt.div`
|
|
863
863
|
${({theme:e})=>`
|
|
864
864
|
align-items: center;
|
|
865
865
|
color: ${e.palette.gray[800]};
|
|
@@ -880,7 +880,7 @@
|
|
|
880
880
|
display: none;
|
|
881
881
|
}
|
|
882
882
|
`}
|
|
883
|
-
|
|
883
|
+
`,fn=s.dt.div.attrs({className:"year-selection"})`
|
|
884
884
|
align-items: flex-start;
|
|
885
885
|
display: flex;
|
|
886
886
|
flex-direction: column;
|
|
@@ -891,12 +891,12 @@
|
|
|
891
891
|
padding: 0 0.5px;
|
|
892
892
|
position: relative;
|
|
893
893
|
width: 8px;
|
|
894
|
-
`,
|
|
894
|
+
`,at=s.dt.tr`
|
|
895
895
|
align-items: flex-start;
|
|
896
896
|
display: flex;
|
|
897
897
|
padding: ${({theme:e})=>e.spacing[.25]} 0;
|
|
898
898
|
width: 100%;
|
|
899
|
-
`,
|
|
899
|
+
`,mt=s.lt`
|
|
900
900
|
${({theme:e})=>`
|
|
901
901
|
align-items: center;
|
|
902
902
|
color: ${e.palette.gray[800]};
|
|
@@ -912,11 +912,11 @@
|
|
|
912
912
|
text-align: center;
|
|
913
913
|
width: ${e.spacing[2.5]};
|
|
914
914
|
`}
|
|
915
|
-
`,
|
|
916
|
-
${
|
|
917
|
-
`,
|
|
915
|
+
`,hn=s.dt.th`
|
|
916
|
+
${mt}
|
|
917
|
+
`,bn=s.dt.td`
|
|
918
918
|
${({theme:e})=>`
|
|
919
|
-
${
|
|
919
|
+
${mt}
|
|
920
920
|
height: ${e.spacing[2.5]};
|
|
921
921
|
width: ${e.spacing[2.5]};
|
|
922
922
|
|
|
@@ -964,14 +964,14 @@
|
|
|
964
964
|
}
|
|
965
965
|
}
|
|
966
966
|
`}
|
|
967
|
-
`,
|
|
967
|
+
`,yn=s.dt.div.attrs({className:"dot"})`
|
|
968
968
|
position: absolute;
|
|
969
969
|
top: 48%;
|
|
970
970
|
|
|
971
971
|
> span {
|
|
972
972
|
font-size: 4px;
|
|
973
973
|
}
|
|
974
|
-
`,
|
|
974
|
+
`,rt=s.dt.button`
|
|
975
975
|
cursor: pointer;
|
|
976
976
|
display: flex;
|
|
977
977
|
|
|
@@ -979,7 +979,7 @@
|
|
|
979
979
|
height: 3.5px;
|
|
980
980
|
width: 7px;
|
|
981
981
|
}
|
|
982
|
-
`,
|
|
982
|
+
`,Ye=s.dt.div`
|
|
983
983
|
${({theme:e})=>`
|
|
984
984
|
align-items: end;
|
|
985
985
|
border-top: 1px solid ${e.palette.gray[200]};
|
|
@@ -991,9 +991,9 @@
|
|
|
991
991
|
padding: 0 ${e.spacing[.25]};
|
|
992
992
|
width: 100%;
|
|
993
993
|
`}
|
|
994
|
-
`,
|
|
994
|
+
`,wt=({state:e,date:i})=>{const n=f.useRef(null),a=s.$14e0f24ef4ac5c92$export$629b0a497aa65267(i,s.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),{cellProps:r,buttonProps:o,isSelected:l,isDisabled:c,formattedDate:d}=s.$36a0ac60f04457c5$export$136073280381448e({date:i},e,n),p="highlightedRange"in e&&!s.lodashExports.isNull(e.highlightedRange)?s.$14e0f24ef4ac5c92$export$ea39ec197993aef0(i,e.highlightedRange.start):l,g="highlightedRange"in e&&!s.lodashExports.isNull(e.highlightedRange)?s.$14e0f24ef4ac5c92$export$ea39ec197993aef0(i,e.highlightedRange.end):l,x=l&&!c&&!(p||g)?"range":"";return t.jsx(bn,{id:x,...r,children:t.jsxs("div",{...o,className:`cell ${p||g?"selected":""}
|
|
995
995
|
${c?"disabled":""} ${a?"today":""}
|
|
996
|
-
${!e.isFocused&&!a?"focused":""} ${x}`,ref:n,children:[d,a?t.jsx(
|
|
996
|
+
${!e.isFocused&&!a?"focused":""} ${x}`,ref:n,children:[d,a?t.jsx(yn,{children:t.jsx(S,{clickable:!1,icon:"circle",iconSize:"xxs"})}):void 0]})})},ze=({state:e,...i})=>{const{locale:n}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{weekDays:a}=s.$e3031d1f8c9d64eb$export$cb95147730a423f5(i,e),r=s.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654(e.visibleRange.start,n);return t.jsxs("table",{children:[t.jsx("thead",{children:t.jsx(at,{children:a.map((o,l)=>{const c=`key_${l}`;return t.jsx(hn,{children:o},c)})})}),t.jsx("tbody",{children:[...new Array(r).keys()].map(o=>t.jsx(at,{children:e.getDatesInWeek(o).map((l,c)=>{const d=`key_${c}`;return l?t.jsx(wt,{date:l,state:e},d):t.jsx("td",{},d)})},o))})]})},$n=s.dt(Me)`
|
|
997
997
|
align-items: center;
|
|
998
998
|
background-color: inherit;
|
|
999
999
|
border-color: inherit;
|
|
@@ -1013,7 +1013,7 @@
|
|
|
1013
1013
|
background-color: ${({theme:e})=>e.palette.gray[100]};
|
|
1014
1014
|
cursor: pointer;
|
|
1015
1015
|
}
|
|
1016
|
-
`,
|
|
1016
|
+
`,mn=s.dt.div`
|
|
1017
1017
|
${({theme:e})=>`
|
|
1018
1018
|
align-items: flex-start;
|
|
1019
1019
|
background: ${e.palette.white};
|
|
@@ -1027,7 +1027,7 @@
|
|
|
1027
1027
|
padding: ${e.spacing[.25]};
|
|
1028
1028
|
width: 292px;
|
|
1029
1029
|
`}
|
|
1030
|
-
`,
|
|
1030
|
+
`,wn=s.dt.button`
|
|
1031
1031
|
${({theme:e,$disabled:i,$focus:n,$header:a})=>{const r=n?"34px":"40px";return`
|
|
1032
1032
|
align-items: center;
|
|
1033
1033
|
border-radius: ${a?`0 ${e.spacing[.5]} ${e.spacing[.5]} 0`:"4px"};
|
|
@@ -1042,7 +1042,7 @@
|
|
|
1042
1042
|
background-color: ${e.palette.gray[i?500:100]};
|
|
1043
1043
|
}
|
|
1044
1044
|
`}}
|
|
1045
|
-
`,
|
|
1045
|
+
`,jn=s.dt.div`
|
|
1046
1046
|
${({theme:e})=>`
|
|
1047
1047
|
align-items: center;
|
|
1048
1048
|
background: transparent;
|
|
@@ -1053,13 +1053,13 @@
|
|
|
1053
1053
|
justify-content: space-between;
|
|
1054
1054
|
width: calc(100% - 40px);
|
|
1055
1055
|
`}
|
|
1056
|
-
`,
|
|
1056
|
+
`,vn=s.dt.div`
|
|
1057
1057
|
align-items: center;
|
|
1058
1058
|
display: flex;
|
|
1059
1059
|
justify-content: flex-end;
|
|
1060
1060
|
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1061
1061
|
flex: 1 0 0;
|
|
1062
|
-
`,
|
|
1062
|
+
`,ot=s.dt.div`
|
|
1063
1063
|
${({theme:e})=>`
|
|
1064
1064
|
align-items: center;
|
|
1065
1065
|
align-self: stretch;
|
|
@@ -1071,7 +1071,7 @@
|
|
|
1071
1071
|
line-height: ${e.spacing[1.5]};
|
|
1072
1072
|
padding: 2px ${e.spacing[.25]};
|
|
1073
1073
|
`}
|
|
1074
|
-
`,
|
|
1074
|
+
`,st=s.dt.button`
|
|
1075
1075
|
${({theme:e})=>`
|
|
1076
1076
|
align-items: center;
|
|
1077
1077
|
background-color: inherit;
|
|
@@ -1091,7 +1091,7 @@
|
|
|
1091
1091
|
font-weight: ${e.typography.weight.bold};
|
|
1092
1092
|
}
|
|
1093
1093
|
`}
|
|
1094
|
-
`,
|
|
1094
|
+
`,je=({disabled:e=!1,icon:i,props:n})=>{const a=f.useRef(null),{buttonProps:r}=s.$701a24aa0da5b062$export$ea18c227d4417cc3(n,a);return t.jsx(wn,{...r,$disabled:e,$focus:!!r["aria-expanded"],$header:i==="calendar"||i==="calendar-clock",disabled:e,ref:a,type:"button",children:t.jsx(S,{icon:i,iconColor:z.palette.gray[e?400:700],iconSize:"xs",iconType:"fa-light"})})},Ie=({state:e,prevButtonProps:i,nextButtonProps:n,title:a})=>{const r=e.focusedDate,o=f.useCallback(()=>{e.setFocusedDate(r.add({years:1}))},[r,e]),l=f.useCallback(()=>{e.setFocusedDate(r.subtract({years:1}))},[r,e]);return t.jsxs("div",{className:"header flex items-start",children:[t.jsx(je,{icon:"chevron-left",props:i}),t.jsxs(un,{children:[a,t.jsxs(fn,{children:[t.jsx(rt,{"aria-label":"top",onClick:o,children:t.jsx(S,{icon:"caret-up",iconClass:"fa-sharp",iconSize:"xxss"})}),t.jsx(rt,{"aria-label":"bottom",onClick:l,children:t.jsx(S,{icon:"caret-down",iconClass:"fa-sharp",iconSize:"xxss"})})]})]}),t.jsx(je,{icon:"chevron-right",props:n})]})},jt=({onClose:e,props:i})=>{const{locale:n}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),a=s.$131cf43a05231e1e$export$6d095e787d2b5e1f({...i,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:n}),{prevButtonProps:r,nextButtonProps:o,title:l}=s.$9942cad8a072a530$export$3ee915f8151bd4f1(i,a);return t.jsxs("div",{className:"calendar",children:[t.jsx(Ie,{nextButtonProps:o,prevButtonProps:r,state:a,title:l}),t.jsx(ze,{state:a}),t.jsx(Ye,{children:t.jsx(D,{onClick:e,variant:"ghost",children:"Cancel"})})]})},vt=({segment:e,state:i})=>{const n=s.nt(),a=f.useRef(null),o={...e,placeholder:{day:"dd",dayPeriod:"(AM/PM)",era:"",hour:"hh",literal:"",minute:"mm",month:"mm",second:"",timeZoneName:"",year:"yyyy"}[e.type]},{segmentProps:l}=s.$32489daedd52963e$export$1315d136e6f7581(o,i,a),c=n.palette.gray[o.isEditable?800:500];return t.jsx("div",{...o.type!=="literal"&&{...l,className:"segment-cell"},ref:a,style:o.type==="literal"?void 0:{color:o.isPlaceholder?n.palette.gray[400]:c},children:o.isPlaceholder?o.placeholder:o.text})},kt=({disabled:e,error:i=!1,props:n})=>{const a=s.nt(),r=f.useRef(null),o=s.$3c0fc76039f1c516$export$60e84778edff6d26({...n,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:"en-US"}),{fieldProps:l}=s.$16f0b7bb276bc17e$export$5591b0b878c1a989(n,o,r),c=f.useCallback(d=>{const p=document.getElementsByClassName("segment-cell"),g=d.currentTarget;Object.values(p).some(x=>x.contains(g))||(d.preventDefault(),d.stopPropagation())},[]);return t.jsxs(jn,{...l,onClick:c,children:[t.jsx("div",{className:"flex flex-row",style:{color:a.palette.gray[s.lodashExports.isNil(o.value)?400:800]},tabIndex:-1,children:o.segments.map((d,p)=>{const g=`key_${p}`;return t.jsx(vt,{segment:{...d,isEditable:!e},state:o},g)})}),i?t.jsx(S,{icon:"exclamation-circle",iconColor:a.palette.error[500],iconSize:"xs"}):void 0]})},Ct=e=>{const i=f.useRef(null),n=s.$eff5d8ee529ac4bb$export$fd53cef0cc796101({...e,locale:"en-US",shouldForceLeadingZeros:!0}),{timeValue:a}=n,r=!s.lodashExports.isNil(a)&&a.hour<12?"AM":"PM",[o,l]=f.useState(s.lodashExports.isNil(a)?"AM":r),{fieldProps:c}=s.$16f0b7bb276bc17e$export$4c842f6a241dc825(e,n,i),d=f.useCallback(p=>{const g=p.currentTarget.name;g!==o&&(s.lodashExports.isNil(a)||(g==="AM"?n.setSegment("dayPeriod",0):g==="PM"&&n.setSegment("dayPeriod",12))),l(g)},[o,n,a]);return t.jsxs(vn,{children:[t.jsx(ot,{...c,ref:i,children:n.segments.slice(0,-2).map((p,g)=>{const x=`key_${g}`;return t.jsx(vt,{segment:p,state:n},x)})}),t.jsxs(ot,{children:[t.jsx(st,{id:o==="AM"?"active":"",name:"AM",onClick:d,type:"button",children:"AM"}),t.jsx(st,{id:o==="PM"?"active":"",name:"PM",onClick:d,type:"button",children:"PM"})]})]})},ve=e=>e&&e!=="-"?s.dayjs(e).format("YYYY-MM-DD"):"-",kn=e=>e&&e!=="-"?s.dayjs(e).format("YYYY-MM-DD hh:mm A"):"-",Cn=e=>e&&e!=="-"?s.dayjs(e).format("YYYY/MM/DD hh:mm A"):"-",ae=({error:e,buttonProps:i,datePickerRef:n,disabled:a=!1,granularity:r="day",fieldProps:o,groupProps:l,name:c,register:d,required:p,setValue:g,value:x})=>{const u=f.useCallback(h=>{const y=r==="day"?ve(String(h)):kn(String(h));o.onChange&&o.onChange(h??null),g&&g(c,y)},[o,r,c,g]);return t.jsxs(Z,{...l,className:`${a?"disabled":""} ${e?"error":""}`,ref:n,children:[t.jsx(kt,{disabled:a,error:e!=null,props:{...o,autoFocus:!1,granularity:r,onChange:u,shouldForceLeadingZeros:!0}}),t.jsx(je,{disabled:a,icon:r==="minute"?"calendar-clock":"calendar",props:i}),t.jsx("input",{...d==null?void 0:d(c,{required:p}),"aria-label":c,className:"date-input",disabled:a,id:c,name:c,type:"text",value:x??""})]})},Te=({children:e,...i})=>{const n=f.useRef(null),{dialogProps:a}=s.$40df3f8667284809$export$d55e7ee900f34e93(i,n);return t.jsx(mn,{...a,ref:n,children:e})},St=({disabled:e=!1,error:i,helpLink:n,helpLinkText:a,helpText:r,required:o,label:l,name:c,register:d,setValue:p,tooltip:g,watch:x,...u})=>{const h=f.useRef(null),y=x==null?void 0:x(c),b=f.useCallback(F=>{p&&F&&p(c,ve(String(F)))},[c,p]),m=s.$ab5bf3f618090389$export$87194bb378cc3ac2({...u,onChange(F){b(F)},value:s._.isNil(y)||s._.isEmpty(y)||y==="-"?null:s.$fae977aafc393c5c$export$6b862160d295c8e(y.replace(/\//gu,"-"))}),{close:w}=m,{groupProps:j,fieldProps:I,buttonProps:C,dialogProps:v,calendarProps:E}=s.$6057a3d2a53a12fd$export$42df105a73306d51({...u,"aria-label":l??c,name:c},m,h);return t.jsxs(_,{error:i,helpLink:n,helpLinkText:a,helpText:r,htmlFor:c,label:l,required:o,tooltip:g,children:[t.jsx(ae,{buttonProps:C,datePickerRef:h,disabled:e,error:i,fieldProps:I,groupProps:j,name:c,register:d,required:o,setValue:p,value:y}),m.isOpen&&!e?t.jsx(fe,{offset:8,placement:"bottom start",state:m,triggerRef:h,children:t.jsx(Te,{...v,children:t.jsx(jt,{onClose:w,props:E})})}):null]})},zt=({onClose:e,props:i})=>{const{locale:n}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),a=f.useRef(null),r=s.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90({...i,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:n}),{prevButtonProps:o,nextButtonProps:l,title:c}=s.$46a4342aab3d8076$export$87e0539f600c24e5(i,r,a);return t.jsxs("div",{className:"calendar-range",ref:a,children:[t.jsx(Ie,{nextButtonProps:l,prevButtonProps:o,state:r,title:c}),t.jsx(ze,{state:r}),t.jsx(Ye,{children:t.jsx(D,{onClick:e,variant:"ghost",children:"Cancel"})})]})},Sn=s.dt.div`
|
|
1095
1095
|
${({theme:e,$disabled:i,$show:n})=>`
|
|
1096
1096
|
border-color: ${n?e.palette.error[500]:e.palette.gray[300]};
|
|
1097
1097
|
display: flex;
|
|
@@ -1102,7 +1102,7 @@
|
|
|
1102
1102
|
background: ${i?e.palette.gray[200]:e.palette.white};
|
|
1103
1103
|
}
|
|
1104
1104
|
`}
|
|
1105
|
-
`,
|
|
1105
|
+
`,It=({disabled:e=!1,error:i,label:n,name:a,required:r,tooltip:o,register:l,setValue:c,propsMax:d,propsMin:p,...g})=>{const x=`${a}Max`,u=`${a}Min`,h=f.useRef(null),y=f.useCallback(F=>{c&&F&&(c((d==null?void 0:d.name)??x,ve(String(F.end))),c((p==null?void 0:p.name)??u,ve(String(F.start))))},[x,u,c,d,p]),b=s.$93c38a5e28be6249$export$e50a61c1de9f574({...g,endName:(d==null?void 0:d.name)??x,startName:(p==null?void 0:p.name)??u,onChange(F){y(F)}}),{close:m}=b,{groupProps:w,startFieldProps:j,endFieldProps:I,buttonProps:C,dialogProps:v,calendarProps:E}=s.$887cac91b7cc8801$export$12fd5f0e9f4bb192({...g,"aria-label":n??a},b,h);return t.jsxs(_,{error:i,htmlFor:a,label:n,required:r,tooltip:o,children:[t.jsxs(Sn,{$disabled:e,$show:i!==void 0,ref:h,style:{flexDirection:"column"},children:[t.jsx(ae,{buttonProps:C,datePickerRef:h,disabled:e,error:i,fieldProps:{...j,"aria-label":`${j["aria-label"]} ${a}`,validate:F=>I.value&&F>I.value?"Start date must be less than or equal to end date":null},groupProps:w,name:(p==null?void 0:p.name)??u,register:l,setValue:c,value:p==null?void 0:p.value}),t.jsx(ae,{buttonProps:C,datePickerRef:h,disabled:e,error:i,fieldProps:{...I,"aria-label":`${I["aria-label"]} ${a}`,validate:F=>j.value&&F<j.value?"End date must be greater than or equal to start date":null},groupProps:w,name:(d==null?void 0:d.name)??x,register:l,setValue:c,value:d==null?void 0:d.value})]}),b.isOpen&&!e?t.jsx(fe,{offset:8,placement:"bottom start",state:b,triggerRef:h,children:t.jsx(Te,{...v,children:t.jsx(zt,{onClose:m,props:E})})}):null]})},zn=s.dt.div`
|
|
1106
1106
|
${({theme:e})=>`
|
|
1107
1107
|
align-items: center;
|
|
1108
1108
|
border-top: 1px solid ${e.palette.gray[200]};
|
|
@@ -1111,32 +1111,32 @@
|
|
|
1111
1111
|
justify-content: center;
|
|
1112
1112
|
padding: ${e.spacing[.5]} ${e.spacing[1.25]};
|
|
1113
1113
|
`}
|
|
1114
|
-
`,
|
|
1114
|
+
`,In=s.dt.div`
|
|
1115
1115
|
align-items: center;
|
|
1116
1116
|
display: flex;
|
|
1117
1117
|
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1118
1118
|
justify-content: flex-end;
|
|
1119
1119
|
flex: 1 0 0;
|
|
1120
|
-
`,
|
|
1121
|
-
${e?"disabled":""} ${R?"error":""} ${
|
|
1122
|
-
`,children:[i?t.jsx(
|
|
1120
|
+
`,Tt=({handleTimeChange:e,onClose:i,props:n,timeState:a})=>{const r=s.nt(),{locale:o}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),l=s.$131cf43a05231e1e$export$6d095e787d2b5e1f({...n,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:o}),{prevButtonProps:c,nextButtonProps:d,title:p}=s.$9942cad8a072a530$export$3ee915f8151bd4f1(n,l);return t.jsxs("div",{className:"calendar",children:[t.jsx(Ie,{nextButtonProps:d,prevButtonProps:c,state:l,title:p}),t.jsx(ze,{state:l}),t.jsxs(zn,{children:[t.jsx(k,{color:r.palette.gray[800],fontWeight:"bold",size:"sm",children:"Time"}),t.jsx(In,{children:t.jsx(Ct,{hourCycle:12,label:"time-field",onChange:e,value:a.timeValue})})]}),t.jsx(Ye,{children:t.jsx(D,{onClick:i,variant:"ghost",children:"Cancel"})})]})},Tn=e=>{const{disabled:i=!1,error:n,required:a,label:r,name:o,tooltip:l,register:c,setValue:d,watch:p}=e,g=p==null?void 0:p(o),x=f.useRef(null),u=s.$ab5bf3f618090389$export$87194bb378cc3ac2({...e,granularity:"minute",hourCycle:12,isDisabled:i,isRequired:a,shouldCloseOnSelect:!1,value:s._.isNil(g)||s._.isEmpty(g)||g==="-"?null:s.$fae977aafc393c5c$export$588937bcd60ade55(g.replace(/\//gu,"-"))}),{close:h}=u,{groupProps:y,fieldProps:b,buttonProps:m,dialogProps:w,calendarProps:j}=s.$6057a3d2a53a12fd$export$42df105a73306d51(e,u,x),I=f.useCallback(v=>{j.onChange&&j.onChange(v),d==null||d(o,Cn(String(v).replace(/-/gu,"/")))},[j,o,d]),C=f.useCallback(v=>{v&&u.setTimeValue(v)},[u]);return t.jsxs(_,{error:n,htmlFor:o,label:r,required:a,tooltip:l,children:[t.jsx(ae,{buttonProps:m,datePickerRef:x,disabled:i,error:n,fieldProps:b,granularity:"minute",groupProps:y,name:o,register:c,setValue:d,value:g}),u.isOpen&&!i?t.jsx(fe,{offset:8,placement:"bottom start",state:u,triggerRef:x,children:t.jsx(Te,{...w,children:t.jsx(Tt,{handleTimeChange:C,onClose:h,props:{...j,onChange:I},timeState:u})})}):null]})},Fn=({children:e,currentValue:i,externalLink:n,isEditing:a,label:r,name:o,tooltip:l})=>{if(a)return t.jsx("div",{children:e});const c=s.lodashExports.isNil(i)?"":i,d=String(n??c);return t.jsxs($,{children:[t.jsx(Ue,{htmlFor:o,label:r,tooltip:l,weight:"bold"}),d.startsWith("https://")?t.jsx(X,{href:d,children:c}):t.jsx(k,{size:"md",children:c})]})},qe=({disabled:e=!1,hasIcon:i=!1,helpLink:n,helpLinkText:a,helpText:r,error:o,isValid:l,isTouched:c,label:d,linkPosition:p,name:g,maskValue:x=!1,onPaste:u,placeholder:h,register:y,suggestions:b,tooltip:m,type:w="text",weight:j,...I})=>{const{required:C,onBlur:v,onChange:E}=I,F=s.nt(),R=e?void 0:o,A=l&&c&&!e,L=f.useCallback(N=>{N.key==="Enter"&&N.preventDefault()},[]);return t.jsxs(_,{error:R,helpLink:n,helpLinkText:a,helpText:r,htmlFor:g,label:d,linkPosition:p,required:C,tooltip:m,weight:j,children:[t.jsxs(Z,{className:`
|
|
1121
|
+
${e?"disabled":""} ${R?"error":""} ${A?"success":""}
|
|
1122
|
+
`,children:[i?t.jsx(S,{icon:"user",iconSize:"sm",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":R?"true":"false","aria-label":g,"aria-required":C,autoComplete:"off",className:x?"sr-block":"","data-testid":`${g}-input`,disabled:e,id:g,list:`list_${g}`,onKeyDown:L,onPaste:u,placeholder:h,type:w,...y?y(g,{required:C,onBlur:v,onChange:E}):{...I}}),R?t.jsx(S,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:F.palette.error[500],iconSize:"xs"}):void 0,A?t.jsx(S,{icon:"check-circle",iconClass:"success-icon",iconColor:F.palette.success[500],iconSize:"xs"}):void 0]}),b?t.jsx("datalist",{id:`list_${g}`,children:b.map(N=>t.jsx("option",{value:N},N))}):void 0]})},Nn=s.dt(xt)`
|
|
1123
1123
|
white-space: nowrap;
|
|
1124
1124
|
margin-right: ${({theme:e})=>e.spacing[.25]};
|
|
1125
1125
|
text-overflow: ellipsis;
|
|
1126
1126
|
overflow: hidden;
|
|
1127
1127
|
max-width: 80%;
|
|
1128
|
-
`,
|
|
1128
|
+
`,En=s.dt.input`
|
|
1129
1129
|
opacity: 0;
|
|
1130
1130
|
position: absolute;
|
|
1131
1131
|
visibility: hidden;
|
|
1132
1132
|
width: 0;
|
|
1133
|
-
`,
|
|
1133
|
+
`,Le=(e,i,n)=>{const a=new Event(e);return Object.defineProperty(a,"target",{value:{name:i,value:n}}),a},Rn=e=>{const i=e;return i?Array.from(i).map(n=>n.name).join(", "):""},Dn=({accept:e,disabled:i=!1,error:n,label:a,helpLink:r,helpText:o,id:l,multiple:c,name:d,onChange:p,required:g,register:x,setValue:u,tooltip:h,watch:y,weight:b})=>{const m=s.nt(),w=i?void 0:n,j=f.useRef(null),I=y==null?void 0:y(d),C=Rn(I),v=x==null?void 0:x(d,{required:g}),E=f.useCallback(()=>{const A=Le("change",d,void 0);u&&u(d,""),v&&v.onChange(A)},[v,d,u]),F=f.useCallback(A=>{const{files:L}=A.currentTarget,N=Le("change",d,L&&L.length>0?L:void 0);p==null||p(N),v&&v.onChange(N)},[v,d,p]),R=f.useCallback(A=>{i?A.preventDefault():j.current&&j.current.click()},[i]);return t.jsxs(_,{error:w,helpLink:r,helpText:o,htmlFor:l??d,label:a,required:g,tooltip:h,weight:b,children:[t.jsxs(Z,{className:`${i?"disabled":""} ${w?"error":""}`,children:[t.jsx(Nn,{$size:"xs",children:C}),t.jsxs($,{alignItems:"center",display:"flex",gap:.625,children:[s.lodashExports.isEmpty(C)?void 0:t.jsx(B,{color:m.palette.gray[400],height:"20px",icon:"xmark",iconSize:"lg",iconType:"fa-light",onClick:E,variant:"ghost",width:"20px"}),w&&t.jsx(S,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:m.palette.error[500],iconSize:"xs"}),t.jsxs(D,{border:i?`1px solid ${m.palette.gray[300]} !important`:"",borderRadius:"0px 8px 8px 0px !important",disabled:i,height:"40px",onClick:R,variant:"primary",width:"96px",children:[t.jsx(S,{icon:"search",iconSize:"sm",mr:.5}),"Add file"]})]})]}),t.jsx(En,{...v&&{ref:v.ref,onBlur:v.onBlur},accept:e,"aria-label":d,"data-testid":d,disabled:i,id:l??d,multiple:c,name:d,onChange:F,onClick:E,ref:j,required:void 0,type:"file",value:void 0})]})},Ln=s.dt.input`
|
|
1134
1134
|
border: none;
|
|
1135
1135
|
background: transparent;
|
|
1136
1136
|
min-width: 15rem;
|
|
1137
1137
|
padding: 0;
|
|
1138
1138
|
flex: 1;
|
|
1139
|
-
`,
|
|
1139
|
+
`,Pe=({disabled:e=!1,error:i,field:n,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:p,placeholder:g,required:x,tooltip:u,value:h,weight:y})=>{const b=s.nt(),m=e?void 0:i,[w,j]=f.useState(""),I=d?h:n==null?void 0:n.value,C=f.useMemo(()=>I&&typeof I=="string"?I.split(",").filter(Boolean):[],[I]),v=f.useCallback(L=>{const O=[...new Set(L.filter(Boolean))].join(","),M=Le("change",c,O);n&&n.onChange(M),d&&d(M)},[n,c,d]),E=f.useCallback(L=>{j(L.target.value)},[]),F=f.useCallback(L=>{const N=w.trim();N.length&&!C.includes(N)&&(L.preventDefault(),v([...C,N]),j("")),n&&n.onBlur()},[w,n,v,C]),R=f.useCallback(L=>{const N=w.trim();L.key==="Enter"&&N.length===0&&L.preventDefault(),["Enter",","].includes(L.key)&&N.length>0&&!C.includes(N)?(L.preventDefault(),v([...C,N]),j("")):L.key==="Backspace"&&!N.length&&C.length&&(L.preventDefault(),p==null||p(C[C.length-1]),v(C.slice(0,-1)))},[w,p,v,C]),A=f.useCallback(L=>()=>{p==null||p(L),v(C.filter(N=>N!==L))},[p,v,C]);return t.jsx(_,{error:m,helpLink:a,helpLinkText:r,helpText:o,htmlFor:c,label:l,required:x,tooltip:u,weight:y,children:t.jsxs(Z,{$overflowX:"auto",className:`${e?"disabled":""} ${m?"error":""}`,children:[C.map(L=>t.jsx(Y,{disabled:e,onClose:A(L),tagLabel:L},L)),t.jsx(Ln,{"aria-hidden":!1,"aria-invalid":m?"true":"false","aria-label":c,"aria-required":x,autoComplete:"off",id:c,onBlur:F,onChange:E,onKeyDown:R,placeholder:C.length===0?g:void 0,ref:n==null?void 0:n.ref,type:"text",value:w}),m?t.jsx(S,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:b.palette.error[500],iconSize:"xs"}):void 0]})})},Pn=({disabled:e=!1,control:i,error:n,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:p,placeholder:g,required:x,tooltip:u,value:h,weight:y})=>i?t.jsx(s.Controller,{control:i,name:c,render:({field:b})=>t.jsx(Pe,{disabled:e,error:n,field:b,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c,onRemove:p,placeholder:g,required:x,tooltip:u,weight:y}),rules:{required:x}}):t.jsx(Pe,{disabled:e,error:n,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c,onChange:d,onRemove:p,placeholder:g,required:x,tooltip:u,value:h,weight:y}),Ae=f.forwardRef(function({disabled:i,icon:n,margin:a,onClick:r,...o},l){return t.jsx($n,{$margin:a,"aria-label":n,className:"action-btn",disabled:i,onClick:r,ref:l,type:"button",...o,children:t.jsx(S,{icon:n,iconClass:"action",iconSize:"xs",iconType:"fa-light"})})}),ke=({error:e,decimalPlaces:i=0,disabled:n=!1,id:a,maxLength:r,max:o=1/0,min:l=0,name:c,onChange:d,placeholder:p,register:g,required:x,setValue:u,value:h})=>{const y=s.nt(),b=n?void 0:e,m=i<0?0:i,[w,j]=f.useState(h?s._.toNumber(h):0),I=f.useCallback(()=>{const F=(w-10**-m).toFixed(m),R=Math.max(Number(l),Number(F));u&&u(c,R,{shouldDirty:!0}),j(R)},[m,w,l,c,u]),C=f.useCallback(()=>{const F=(w+10**-m).toFixed(m),R=Math.min(Number(o),Number(F)>Number(l)?Number(F):Number(l));u&&u(c,R,{shouldDirty:!0}),j(R)},[m,w,o,l,c,u]),v=f.useCallback(F=>{const{value:R}=F.target,A=/\d+/u.test(R)&&!s._.isEmpty(R);u&&u(c,A?R:void 0),d&&d(F),j(Number(R))},[c,d,u]),E=f.useCallback(F=>{F.key==="Enter"&&F.preventDefault()},[]);return t.jsxs(Z,{className:`${n?"disabled":""} ${b?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":b?"true":"false","aria-label":c,"aria-required":x,autoComplete:"off",disabled:n,id:a??c,max:o,min:l,onKeyDown:E,placeholder:p,required:x,step:10**-m,type:"number",...g==null?void 0:g(c,{maxLength:r,max:o,min:l,onChange:v,value:h,valueAsNumber:!0})}),b&&t.jsx(S,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:y.palette.error[500],iconSize:"xs"}),t.jsx(Ae,{borderLeft:"inherit",borderRight:"inherit",disabled:n,icon:"minus",margin:"0 -0.625rem 0 0",onClick:I,px:.75,py:.75}),t.jsx(Ae,{borderRadius:`0 ${y.spacing[.5]} ${y.spacing[.5]} 0`,disabled:n,icon:"plus",onClick:C,px:.75,py:.75})]})},Ft=({decimalPlaces:e,disabled:i=!1,error:n,helpLink:a,helpText:r,id:o,label:l,linkPosition:c,maxLength:d,max:p,min:g,name:x,onChange:u,placeholder:h,register:y,required:b,setValue:m,tooltip:w,value:j,watch:I,weight:C})=>t.jsx(_,{error:i?void 0:n,helpLink:a,helpText:r,htmlFor:x,label:l,linkPosition:c,maxLength:d,required:b,tooltip:w,weight:C,children:t.jsx(ke,{decimalPlaces:e,disabled:i,error:n,id:o,max:p,maxLength:d,min:g,name:x,onChange:u,placeholder:h,register:y,required:b,setValue:m,value:u?j:I==null?void 0:I(x)})}),Nt=({disabled:e=!1,error:i,name:n,label:a,propsMax:r,propsMin:o,required:l,tooltip:c})=>{const d=`${n}Max`,p=`${n}Min`;return t.jsx(_,{error:i,htmlFor:n,label:a,required:l,tooltip:c,children:t.jsxs($,{display:"flex",flexDirection:"column",gap:.25,width:"100%",children:[t.jsx(ke,{...o,disabled:e,error:i,name:o.name??p}),t.jsx(ke,{...r,disabled:e,error:i,name:r.name??d})]})})},An=s.dt.div`
|
|
1140
1140
|
${({theme:e})=>`
|
|
1141
1141
|
align-items: flex-start;
|
|
1142
1142
|
align-self: stretch;
|
|
@@ -1176,7 +1176,7 @@
|
|
|
1176
1176
|
}
|
|
1177
1177
|
}
|
|
1178
1178
|
`}
|
|
1179
|
-
`,
|
|
1179
|
+
`,Wn=s.dt.button`
|
|
1180
1180
|
${({theme:e})=>`
|
|
1181
1181
|
align-items: center;
|
|
1182
1182
|
background: inherit;
|
|
@@ -1192,7 +1192,7 @@
|
|
|
1192
1192
|
cursor: not-allowed;
|
|
1193
1193
|
}
|
|
1194
1194
|
`}
|
|
1195
|
-
`,
|
|
1195
|
+
`,Bn=s.dt.ul`
|
|
1196
1196
|
${({theme:e})=>`
|
|
1197
1197
|
align-items: flex-start;
|
|
1198
1198
|
box-shadow: ${e.shadows.md};
|
|
@@ -1205,7 +1205,7 @@
|
|
|
1205
1205
|
scrollbar-width: thin;
|
|
1206
1206
|
width: max-content;
|
|
1207
1207
|
`}
|
|
1208
|
-
`,
|
|
1208
|
+
`,On=s.dt.li`
|
|
1209
1209
|
${({theme:e})=>`
|
|
1210
1210
|
align-items: center;
|
|
1211
1211
|
background: ${e.palette.white};
|
|
@@ -1222,16 +1222,16 @@
|
|
|
1222
1222
|
background: ${e.palette.gray[100]};
|
|
1223
1223
|
}
|
|
1224
1224
|
`}
|
|
1225
|
-
`,
|
|
1225
|
+
`,_n=s.dt.p`
|
|
1226
1226
|
color: ${({theme:e})=>e.palette.gray[800]};
|
|
1227
1227
|
font-size: inherit;
|
|
1228
1228
|
min-width: 55%;
|
|
1229
1229
|
overflow: hidden;
|
|
1230
1230
|
text-overflow: ellipsis;
|
|
1231
1231
|
white-space: nowrap;
|
|
1232
|
-
`,
|
|
1233
|
-
${e?"disabled":""} ${v?"error":""} ${
|
|
1234
|
-
`,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":v?"true":"false","aria-label":c,"aria-required":h,className:p?"sr-block":"","data-testid":`${c}-text-area`,disabled:e,id:d??c,maxLength:g,placeholder:x,rows
|
|
1232
|
+
`,he=(e,i,n=!1)=>{f.useEffect(()=>{var r;const a=o=>{e&&!e.contains(o.target)&&i()};return n?(document.addEventListener("click",a,!0),()=>{document.removeEventListener("click",a,!0)}):((r=document.getElementById("root"))==null||r.addEventListener("click",a,!0),()=>{var o;(o=document.getElementById("root"))==null||o.removeEventListener("click",a,!0)})},[n,e,i])},Hn=({disabled:e,error:i,label:n,name:a,placeholder:r,required:o,register:l,tooltip:c,value:d,weight:p})=>{const g=s.nt(),x=f.useRef(null),u=e?void 0:i,[h,y]=f.useState(!1),[b,m]=f.useState(""),{refs:w,floatingStyles:j}=s.useFloating$1({placement:"bottom-start",whileElementsMounted:s.autoUpdate}),{inputValue:I,handlePhoneValueChange:C,country:v,setCountry:E}=s.ee({countries:s.R,defaultCountry:"us",forceDialCode:!0,value:d?String(d):void 0}),F=f.useCallback(()=>{y(N=>!N),h||m("")},[h]),R=f.useCallback(N=>()=>{E(N),y(!1),m("")},[E,y]),A=f.useCallback(N=>{N.key.length===1?m(O=>O+N.key):N.key==="Backspace"&&m(O=>O.slice(0,-1))},[]),L=s.R.filter(N=>{const{name:O}=s.M(N);return O.toLowerCase().includes(b.toLowerCase())});return he(w.floating.current,()=>{y(!1),m("")},!0),t.jsx(_,{error:u,htmlFor:a,label:n,required:o,tooltip:c,weight:p,children:t.jsxs(An,{className:`${e?"disabled":""} ${u?"error":""}`,ref:x,children:[t.jsxs(Wn,{"aria-label":"country-selector","data-testid":"country-selector",disabled:e,id:"country-selector",onClick:F,onKeyDown:A,ref:w.setReference,children:[t.jsx(s.q,{iso2:v.iso2,size:"16px"}),t.jsx(S,{icon:"angle-down",iconColor:g.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(Z,{className:`${e?"disabled":""} ${u?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":u?"true":"false","aria-label":a,"aria-required":o,autoComplete:"off","data-testid":`${a}-input`,disabled:e,id:a,name:a,placeholder:r,type:"tel",value:I,...l==null?void 0:l(a,{required:o,onChange:C})}),u?t.jsx(S,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:g.palette.error[500],iconSize:"xs"}):void 0]}),h&&G.createPortal(t.jsx(Bn,{ref:w.setFloating,style:j,children:L.map(N=>{const{dialCode:O,iso2:M,name:Q}=s.M(N);return t.jsxs(On,{onClick:R(M),value:M,children:[t.jsx(s.q,{iso2:M,size:"16px"}),t.jsx(_n,{children:Q}),t.jsx(k,{color:g.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+O})]},M)})}),document.getElementById("root")??document.body)]})})},Mn=({disabled:e=!1,error:i,helpLink:n,helpText:a,isTouched:r,isValid:o,label:l,name:c="input-text",id:d,maskValue:p=!1,maxLength:g,placeholder:x,register:u,required:h,rows:y,tooltip:b,watch:m,weight:w})=>{const j=s.nt(),I=m==null?void 0:m(c),C=o&&r&&!e,v=e?void 0:i;return t.jsx(_,{error:v,helpLink:n,helpText:a,htmlFor:c,label:l,maxLength:g,required:h,tooltip:b,value:I?String(I):void 0,weight:w,children:t.jsxs(Z,{className:`
|
|
1233
|
+
${e?"disabled":""} ${v?"error":""} ${C?"success":""}
|
|
1234
|
+
`,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":v?"true":"false","aria-label":c,"aria-required":h,className:p?"sr-block":"","data-testid":`${c}-text-area`,disabled:e,id:d??c,maxLength:g,placeholder:x,rows:y,...u==null?void 0:u(c,{required:h})}),v?t.jsx(S,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:j.palette.error[500],iconSize:"xs"}):void 0,C?t.jsx(S,{icon:"check-circle",iconClass:"success-icon",iconColor:j.palette.success[500],iconSize:"xs"}):void 0]})})},Vn=({description:e,disabled:i,id:n,align:a,inputType:r="text",inputNumberProps:o,minHeight:l,minWidth:c,name:d,placeholder:p,tooltip:g,title:x})=>{const u=f.useMemo(()=>{if(r==="text")return t.jsx(qe,{disabled:i,name:d,placeholder:p});if(r==="date")return t.jsx(St,{disabled:i,name:d});const{decimalPlaces:h,max:y,min:b}=o??{};return t.jsx(Ft,{decimalPlaces:h,disabled:i,max:y,min:b,name:d,placeholder:p})},[i,o,r,d,p]);return t.jsxs(dn,{$align:a,$minHeight:l,$minWidth:c,children:[t.jsx(Se,{description:e,id:n,title:x,tooltip:g}),u]})},Gn=s.dt.label`
|
|
1235
1235
|
${({theme:e})=>`
|
|
1236
1236
|
align-items: center;
|
|
1237
1237
|
color: ${e.palette.gray[600]};
|
|
@@ -1303,7 +1303,7 @@
|
|
|
1303
1303
|
fill: ${e.palette.white};
|
|
1304
1304
|
}
|
|
1305
1305
|
`}
|
|
1306
|
-
`,
|
|
1306
|
+
`,Fe=f.forwardRef(function({checked:i,disabled:n=!1,label:a,name:r,onChange:o,onClick:l,onFocus:c,onKeyDown:d,tooltip:p,value:g,...x},u){return t.jsxs("div",{className:"gap-1 inline-flex items-start",children:[t.jsxs(Gn,{"aria-disabled":n,children:[t.jsx("input",{"aria-checked":i,"aria-disabled":n,"aria-hidden":!1,"aria-label":a??r,checked:i,disabled:n,id:r,name:r,onChange:o,onClick:l,onFocus:c,onKeyDown:d,ref:u,type:"checkbox",value:g,...x}),t.jsx(S,{disabled:n,icon:"check",iconSize:"sm"}),a??g]}),p===void 0?void 0:t.jsx(V,{icon:"circle-info",id:p,place:"right",tip:p})]})}),Et=({options:e,title:i,checkboxesName:n,defaultCollapsed:a,onChange:r})=>{const o=s.nt(),[l,c]=f.useState(a??!1),d=f.useCallback(()=>{c(p=>!p)},[]);return t.jsxs($,{"aria-label":i,bgColor:l?o.palette.gray[50]:o.palette.white,border:"1px solid"+o.palette.gray[300],borderRadius:"8px",display:"inline-flex",flexDirection:"column",gap:.625,px:.75,py:.625,role:"region",width:"100%",children:[t.jsxs($,{alignItems:"center",cursor:"pointer",display:"flex",onClick:d,children:[t.jsx(k,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",children:i}),t.jsx(S,{icon:l?"chevron-up":"chevron-down",iconColor:o.palette.gray[400],iconSize:"xs"})]}),l?t.jsx($,{display:"flex",gap:.75,wrap:"wrap",children:e.map(p=>t.jsx($,{border:"1px solid",borderColor:o.palette.gray[300],borderRadius:"4px",px:.5,py:.5,children:t.jsx(Fe,{checked:p.visible,disabled:p.locked,label:p.name,name:`${n}-${p.name}`,onChange:r,value:p.name})},p.name))}):void 0]})},Rt=(e,i)=>{const[a,r]=f.useState(0),[o,l]=f.useState(0);return f.useEffect(()=>{o===100&&(()=>{r(d=>d===i-1?0:d+1)})()},[o,i]),f.useEffect(()=>{const c=setInterval(()=>{l(d=>d===100?0:d+1)},e);return()=>{clearInterval(c)}},[e]),{cycle:a,progress:o,setCycle:r,setProgress:l}},Dt=({publicId:e,format:i="webp"})=>{const n=f.useMemo(()=>new s.Cloudinary({cloud:{cloudName:"fluid-attacks"}}),[]);return f.useMemo(()=>n.image(e).format(i),[n,e,i])},Ne=e=>{const[i,n]=f.useState(!1),a=f.useCallback(()=>{n(!0)},[]),r=f.useCallback(()=>{n(!1)},[]),o=f.useCallback(()=>{n(l=>!l)},[]);return{close:r,isOpen:i,name:e,open:a,setIsOpen:n,toggle:o}},Un=({name:e,items:i,columnOrder:n,setColumnOrder:a})=>{const r=f.useMemo(()=>[...i.filter(({locked:g})=>g).map(({locked:g,...x})=>({...x,visible:!0,locked:g})),...i.filter(({locked:g})=>!g)],[i]),[o,l]=f.useState(r),c=f.useCallback(g=>{const x=g.filter(({locked:b})=>!b),h=[...g.filter(({locked:b})=>b),...x],y=h.map(({name:b})=>b);l(b=>[...h,...b.filter(({name:m})=>!y.includes(m))]),a&&a(h.map(({id:b})=>b))},[a]),d=f.useCallback(()=>{const g=o.map(x=>{var h;const u=(n==null?void 0:n.includes(x.id))??!1;return(h=x.toggleVisibility)==null||h.call(x,u),{...x,visible:u}}).toSorted((x,u)=>{const h=(n==null?void 0:n.indexOf(x.id))??0,y=(n==null?void 0:n.indexOf(u.id))??0;return Number(u.visible)!==Number(x.visible)?Number(u.visible)-Number(x.visible):h-y});l(g),a==null||a(n)},[o,n,a]),p=f.useMemo(()=>s.some(o,g=>((n==null?void 0:n.includes(g.id))??!1)!==g.visible),[o,n]);return{setColumns:c,resetToDefault:d,columns:o,...Ne(e),hasChanged:p}},Lt=(e,i)=>f.useMemo(()=>s._.debounce(e,i),[e,i]),Yn=e=>{const[i,n]=f.useState(),a=Lt(r=>{n(r)},(e==null?void 0:e.debounceWait)??300);return[i,a]},qn=({alt:e="img",height:i="",width:n="",plugins:a=[s.lazyload(),s.placeholder()],publicId:r})=>{const o=Dt({publicId:r});return t.jsx(s.AdvancedImage,{alt:e,cldImg:o,height:i,plugins:a,width:n})},q=f.memo(qn),Kn=s.dt.label`
|
|
1307
1307
|
${({theme:e})=>`
|
|
1308
1308
|
align-items: center;
|
|
1309
1309
|
display: flex;
|
|
@@ -1382,7 +1382,7 @@
|
|
|
1382
1382
|
}
|
|
1383
1383
|
|
|
1384
1384
|
`}
|
|
1385
|
-
`,
|
|
1385
|
+
`,Xn=s.dt.span.attrs({className:"checkmark"})``,Ke=f.forwardRef(function({defaultChecked:i=!1,disabled:n=!1,label:a,name:r,onChange:o,onClick:l,value:c,...d},p){return t.jsxs(Kn,{"aria-disabled":n,"aria-label":a??r,role:"radiogroup",children:[t.jsx("input",{"aria-checked":i,"aria-disabled":n,"aria-label":a??r,defaultChecked:i,disabled:n,name:r,onChange:o,onClick:l,ref:p,type:"radio",value:c,...d}),t.jsx(Xn,{}),a??null]})}),Zn=({alt:e,imageId:i,icon:n,selectorProps:a,onClick:r,title:o,width:l="fit-content"})=>{const c=s.nt();return t.jsxs($,{alignItems:"center",border:`1px solid ${c.palette.gray[200]}`,borderColorHover:c.palette.gray[600],borderRadius:c.spacing[.25],display:"inline-flex",padding:[1,1,1,1],shadowHover:"md",width:l,children:[t.jsx($,{alignSelf:"start",display:"flex",width:"fit-content",children:t.jsx(Ke,{name:a.name,onClick:r,value:a.value})}),t.jsxs($,{alignItems:"center",display:"flex",gap:.5,justify:"space-between",ml:1,mr:1,width:"100%",children:[i===void 0?void 0:t.jsx(q,{alt:e??"card image",height:"32px",publicId:i,width:"32px"}),n===void 0?void 0:t.jsx(S,{icon:n,iconSize:"sm",iconType:"fa-light"}),t.jsx(W,{fontWeight:"bold",lineSpacing:1.75,size:"xs",children:o})]})]})},ee=s.dt.div`
|
|
1386
1386
|
${({theme:e})=>`
|
|
1387
1387
|
align-items: center;
|
|
1388
1388
|
background-color: ${e.palette.gray[200]};
|
|
@@ -1394,7 +1394,7 @@
|
|
|
1394
1394
|
transition: 0.2s;
|
|
1395
1395
|
width: 36px;
|
|
1396
1396
|
`}
|
|
1397
|
-
`,
|
|
1397
|
+
`,Jn=s.dt.div`
|
|
1398
1398
|
${({theme:e})=>`
|
|
1399
1399
|
background-color: ${e.palette.white};
|
|
1400
1400
|
border-radius: 50%;
|
|
@@ -1405,7 +1405,7 @@
|
|
|
1405
1405
|
width: ${e.spacing[1]};
|
|
1406
1406
|
z-index: 1;
|
|
1407
1407
|
`}
|
|
1408
|
-
`,
|
|
1408
|
+
`,Qn=s.dt.label`
|
|
1409
1409
|
display: inline-block;
|
|
1410
1410
|
|
|
1411
1411
|
input {
|
|
@@ -1415,39 +1415,39 @@
|
|
|
1415
1415
|
width: 0;
|
|
1416
1416
|
}
|
|
1417
1417
|
|
|
1418
|
-
input:checked + ${
|
|
1418
|
+
input:checked + ${ee} {
|
|
1419
1419
|
background-color: ${({theme:e})=>e.palette.primary[500]};
|
|
1420
1420
|
}
|
|
1421
1421
|
|
|
1422
|
-
input:checked + ${
|
|
1422
|
+
input:checked + ${ee} > div {
|
|
1423
1423
|
transform: translateX(100%);
|
|
1424
1424
|
}
|
|
1425
1425
|
|
|
1426
|
-
input:disabled + ${
|
|
1426
|
+
input:disabled + ${ee} {
|
|
1427
1427
|
cursor: not-allowed;
|
|
1428
1428
|
background-color: ${({theme:e})=>e.palette.gray[100]};
|
|
1429
1429
|
}
|
|
1430
1430
|
|
|
1431
|
-
input:disabled + ${
|
|
1431
|
+
input:disabled + ${ee} > div {
|
|
1432
1432
|
background-color: ${({theme:e})=>e.palette.gray[200]};
|
|
1433
1433
|
border: 1px solid ${({theme:e})=>e.palette.gray[200]};
|
|
1434
1434
|
}
|
|
1435
|
-
`,
|
|
1435
|
+
`,Pt=f.forwardRef(function({defaultChecked:i,disabled:n=!1,justify:a,name:r,leftDescription:o,leftDescriptionMinWidth:l,rightDescription:c,...d},p){const g=i===!0?"on":"off",x=typeof o=="object"&&o.on&&o.off?o[g]:o,u=f.useCallback(h=>{h.stopPropagation()},[]);return t.jsxs($,{alignItems:"center",display:"flex",fontSize:"14px",gap:.75,justify:a,children:[t.jsx($,{minWidth:l,children:x}),t.jsxs(Qn,{onClick:u,role:"switch",children:[t.jsx("input",{...d,"aria-disabled":n,"aria-label":r,checked:i===!0,disabled:n,name:r,ref:p,type:"checkbox"}),t.jsx(ee,{"aria-label":"Toggle Switch",id:`${r}Toggle`,children:t.jsx(Jn,{})})]}),c]})}),ea=({id:e,title:i,toggles:n,minWidth:a="auto",height:r="auto"})=>{const o=s.nt();return t.jsxs($,{alignItems:"center",bgColor:o.palette.white,border:`1px solid ${o.palette.gray[200]}`,borderRadius:o.spacing[.25],display:"flex",flexDirection:"column",gap:.5,height:r,justify:"center",minHeight:"100px",minWidth:a,padding:[1.25,1.25,1.25,1.25],children:[t.jsx(Se,{id:e,title:i}),t.jsx($,{display:"flex",flexDirection:"column",gap:.5,minHeight:"40px",width:"100%",children:n.map(l=>t.jsx(Pt,{...l},`$card-toggle-${l.name}`))})]})},ta=s.dt.div`
|
|
1436
1436
|
position: relative;
|
|
1437
1437
|
margin: auto;
|
|
1438
1438
|
overflow: hidden;
|
|
1439
|
-
`,
|
|
1439
|
+
`,ia=s.dt.div`
|
|
1440
1440
|
display: flex;
|
|
1441
1441
|
transition: transform 0.5s ease-in-out;
|
|
1442
1442
|
transform: translateX(
|
|
1443
1443
|
${({$currentIndex:e})=>-e*100}%
|
|
1444
1444
|
);
|
|
1445
|
-
`,
|
|
1445
|
+
`,na=s.dt.div`
|
|
1446
1446
|
align-items: center;
|
|
1447
1447
|
display: flex;
|
|
1448
1448
|
justify-content: center;
|
|
1449
1449
|
min-width: 100%;
|
|
1450
|
-
`,
|
|
1450
|
+
`,aa=s.dt.button`
|
|
1451
1451
|
${({theme:e,$isActive:i})=>`
|
|
1452
1452
|
background-color: ${i?e.palette.primary[400]:e.palette.white};
|
|
1453
1453
|
border: none;
|
|
@@ -1456,13 +1456,13 @@
|
|
|
1456
1456
|
height: ${e.spacing[.75]};
|
|
1457
1457
|
width: ${e.spacing[.75]};
|
|
1458
1458
|
`}
|
|
1459
|
-
`,
|
|
1459
|
+
`,ra=s.dt.div`
|
|
1460
1460
|
align-items: center;
|
|
1461
1461
|
display: flex;
|
|
1462
1462
|
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1463
1463
|
justify-content: center;
|
|
1464
1464
|
margin-top: ${({theme:e})=>e.spacing[2]};
|
|
1465
|
-
`,
|
|
1465
|
+
`,oa=({slides:e,interval:i=300})=>{const{cycle:n,setCycle:a,setProgress:r}=Rt(i,e.length),o=f.useCallback(l=>()=>{a(l),r(0)},[a,r]);return t.jsxs(ta,{"aria-roledescription":"carousel",children:[t.jsx(ia,{$currentIndex:n,children:e.map((l,c)=>{const d=`slide-${c}`;return t.jsx(na,{"aria-label":d,"aria-roledescription":"slide",children:l.content},d)})}),t.jsx(ra,{children:e.map((l,c)=>{const d=`nav-button-${c}`;return t.jsx(aa,{$isActive:c===n,"aria-label":`Go to slide ${c+1}`,"data-testid":c===n?"active":"inactive",onClick:o(c)},d)})})]})},At=s.dt.div`
|
|
1466
1466
|
${({theme:e})=>`
|
|
1467
1467
|
background-color: ${e.palette.gray[100]};
|
|
1468
1468
|
border-radius: ${e.spacing[.25]};
|
|
@@ -1514,7 +1514,7 @@
|
|
|
1514
1514
|
padding-bottom: unset;
|
|
1515
1515
|
}
|
|
1516
1516
|
`}
|
|
1517
|
-
`,
|
|
1517
|
+
`,sa=s.dt.div`
|
|
1518
1518
|
${({theme:e})=>`
|
|
1519
1519
|
align-items: end;
|
|
1520
1520
|
background-color: ${e.palette.gray[100]};
|
|
@@ -1532,10 +1532,10 @@
|
|
|
1532
1532
|
background-color: ${e.palette.gray[200]};
|
|
1533
1533
|
}
|
|
1534
1534
|
`}
|
|
1535
|
-
`,
|
|
1535
|
+
`,Wt=({noCodeMessage:e="Code snippet not available",snippet:i,specific:n})=>(f.useEffect(()=>{s.prismExports.highlightAll()},[]),t.jsx(At,{"data-private":!0,children:t.jsx("pre",{className:"line-highlight","data-line-offset":s._.isNil(i)||s._.isString(i)?0:i.offset+.7,...n!==void 0?{"data-line":String(Number(n))}:{},children:s._.isNil(i)||s._.isString(i)||s._.isEmpty(i.content)?t.jsx("div",{className:"no-data",children:t.jsx("p",{children:e})}):t.jsx("code",{className:"language-none",children:i.content})})})),la=({noCodeMessage:e="Code snippet not available",snippet:i,specific:n,variant:a="normal"})=>{const r=s.nt(),[o,l]=f.useState(!1),[c,d]=f.useState(!0),p=f.useCallback(()=>{l(h=>!h)},[l]),g=f.useCallback(()=>{if(s._.isNil(i)||s._.isEmpty(i)||!s._.isString(i))return d(!1),e;const h=i.split(`
|
|
1536
1536
|
`);return h.length>8&&!o?`${[...h].splice(0,7).join(`
|
|
1537
1537
|
`)}
|
|
1538
|
-
${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=
|
|
1538
|
+
${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=f.useMemo(g,[g]),u=f.useCallback(async()=>{await navigator.clipboard.writeText(x)},[x]);return a==="location"?t.jsx(Wt,{noCodeMessage:e,snippet:i,specific:n}):t.jsxs($,{bgColor:r.palette.gray[100],borderRadius:"4px",display:"inline-flex",minWidth:"565px",position:"relative",children:[t.jsx(At,{"data-private":!0,children:t.jsx("pre",{children:t.jsx("code",{className:"language-none",children:x})})}),t.jsxs(sa,{children:[t.jsx(B,{height:r.spacing[2.5],icon:"copy",iconColor:r.palette.gray[700],iconSize:"xs",iconType:"fa-light",onClick:u,variant:"ghost",width:r.spacing[2.5]}),c?t.jsxs(D,{onClick:p,variant:"ghost",children:[o?"Show Less":"Show more",t.jsx(S,{icon:o?"chevron-up":"chevron-down",iconColor:r.palette.gray[700],iconSize:"xxs",iconType:"fa-light",ml:.25,onClick:u})]}):!1]})]})},{getVariant:ca}=U(e=>({fixed:`
|
|
1539
1539
|
width: 300px;
|
|
1540
1540
|
padding: ${e.spacing[1.25]};
|
|
1541
1541
|
overflow: hidden auto;
|
|
@@ -1563,7 +1563,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1563
1563
|
display: flex;
|
|
1564
1564
|
justify-content: center;
|
|
1565
1565
|
z-index: 99999;
|
|
1566
|
-
|
|
1566
|
+
`,ye=s.dt($)`
|
|
1567
1567
|
${({theme:e,$size:i})=>`
|
|
1568
1568
|
background-color: ${e.palette.white};
|
|
1569
1569
|
border: 1px solid ${e.palette.gray[200]};
|
|
@@ -1588,9 +1588,9 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1588
1588
|
}
|
|
1589
1589
|
}
|
|
1590
1590
|
|
|
1591
|
-
${
|
|
1591
|
+
${ca(e,i)}
|
|
1592
1592
|
`}
|
|
1593
|
-
`,
|
|
1593
|
+
`,da=s.dt.div`
|
|
1594
1594
|
${({theme:e})=>`
|
|
1595
1595
|
background-color: ${e.palette.white};
|
|
1596
1596
|
border-bottom: 1px solid ${e.palette.gray[200]};
|
|
@@ -1608,7 +1608,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1608
1608
|
padding: 0;
|
|
1609
1609
|
}
|
|
1610
1610
|
`}
|
|
1611
|
-
`,
|
|
1611
|
+
`,pa=s.dt.div`
|
|
1612
1612
|
border-radius: ${({theme:e})=>`${e.spacing[.25]} ${e.spacing[.25]} 0 0`};
|
|
1613
1613
|
display: block;
|
|
1614
1614
|
overflow: unset;
|
|
@@ -1618,7 +1618,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1618
1618
|
padding: ${({theme:e})=>`${e.spacing[1.25]}`};
|
|
1619
1619
|
padding-bottom: ${({theme:e})=>`${e.spacing[1.5]}`};
|
|
1620
1620
|
position: sticky;
|
|
1621
|
-
`,
|
|
1621
|
+
`,ga=s.dt.div.attrs({className:"flex items-center justify-between"})``,xa=s.dt.div`
|
|
1622
1622
|
${({theme:e})=>`
|
|
1623
1623
|
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
1624
1624
|
display: flex;
|
|
@@ -1649,7 +1649,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1649
1649
|
margin-right: 0;
|
|
1650
1650
|
}
|
|
1651
1651
|
`}
|
|
1652
|
-
`,
|
|
1652
|
+
`,ua=s.dt.div`
|
|
1653
1653
|
img {
|
|
1654
1654
|
margin: 0 calc(-${({theme:e})=>e.spacing[1.25]} - 1px)
|
|
1655
1655
|
${({theme:e})=>e.spacing[1.25]};
|
|
@@ -1665,7 +1665,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1665
1665
|
margin-right: 0;
|
|
1666
1666
|
`:""}
|
|
1667
1667
|
}
|
|
1668
|
-
`,
|
|
1668
|
+
`,Bt=({alert:e,modalRef:i,confirmButton:n=void 0,cancelButton:a=void 0})=>{const{close:r}=i,o=f.useCallback(()=>{a!=null&&a.onClick&&a.onClick(),r()},[a,r]),l=f.useCallback(()=>{n!=null&&n.onClick&&n.onClick(),r()},[n,r]);return[n,a].some(d=>!s.lodashExports.isEmpty(d))?t.jsxs($,{display:"flex",flexDirection:"column",gap:.625,position:"sticky",px:1.25,py:1.25,children:[e,t.jsx(xa,{children:t.jsxs("div",{children:[a&&t.jsx(D,{id:a.id,onClick:o,variant:"tertiary",width:"100%",children:a.text}),n&&t.jsx(D,{id:n.id,onClick:l,variant:"primary",width:"100%",children:n.text})]})})]}):null},Ot=({title:e,description:i,modalRef:n,otherActions:a,onClose:r})=>{const o=s.nt(),l=f.useCallback(()=>{r==null||r(),n.close()},[n,r]);return f.useEffect(()=>{const c=d=>{d.key==="Escape"&&l()};return window.addEventListener("keydown",c),()=>{window.removeEventListener("keydown",c)}},[l]),t.jsxs(pa,{children:[t.jsxs(ga,{children:[typeof e=="string"?t.jsx(W,{fontWeight:"bold",lineSpacing:1.75,mr:1,size:"sm",children:e}):e,t.jsxs("div",{className:"items-center flex gap-3",children:[a,t.jsx(B,{icon:"close",iconColor:o.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:l,px:.25,py:.25,variant:"ghost"})]})]}),i&&s.lodashExports.isString(i)&&!s.lodashExports.isEmpty(i)?t.jsx(k,{mt:.5,size:"sm",children:i}):t.jsx(ne,{display:"block",mt:.5,size:"sm",children:i})]})},fa=({disabled:e,id:i="modal-confirm",onCancel:n,onConfirm:a="submit",txtCancel:r,txtConfirm:o})=>{const l=a==="submit";return t.jsxs($,{display:"flex",gap:.75,maxWidth:n?"392px":"190px",mt:1.5,children:[n?t.jsx(D,{id:`${i}-cancel`,justify:"center",onClick:n,variant:"tertiary",width:"100%",children:r??"Cancel"}):void 0,t.jsx(D,{disabled:e,id:i,justify:"center",onClick:l?void 0:a,type:l?"submit":"button",variant:"primary",width:"100%",children:o??"Confirm"})]})},ha=s.dt.button`
|
|
1669
1669
|
${({theme:e})=>`
|
|
1670
1670
|
align-items: center;
|
|
1671
1671
|
color: ${e.palette.gray[500]};
|
|
@@ -1685,7 +1685,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1685
1685
|
color: ${e.palette.gray[800]};
|
|
1686
1686
|
}
|
|
1687
1687
|
`}
|
|
1688
|
-
`,
|
|
1688
|
+
`,ba=s.dt.div`
|
|
1689
1689
|
${({theme:e})=>`
|
|
1690
1690
|
align-items: center;
|
|
1691
1691
|
border-bottom: 2px solid ${e.palette.gray[200]};
|
|
@@ -1694,11 +1694,11 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1694
1694
|
height: ${e.spacing[3]};
|
|
1695
1695
|
width: max-content;
|
|
1696
1696
|
`}
|
|
1697
|
-
`,
|
|
1697
|
+
`,ya=(e,i,n)=>n?i==="secondary"?`3px solid ${e.palette.primary[100]}`:`3px solid ${e.palette.primary[500]}`:"unset",$a=s.dt.div`
|
|
1698
1698
|
display: flex;
|
|
1699
1699
|
flex-direction: row;
|
|
1700
1700
|
gap: ${({theme:e})=>e.spacing[.25]};
|
|
1701
|
-
border-bottom: ${({theme:e,$borderButton:i,$variant:n})=>
|
|
1701
|
+
border-bottom: ${({theme:e,$borderButton:i,$variant:n})=>ya(e,n,i)};
|
|
1702
1702
|
align-items: center;
|
|
1703
1703
|
padding: ${({theme:e})=>e.spacing[.625]}
|
|
1704
1704
|
${({theme:e})=>e.spacing[.5]};
|
|
@@ -1737,7 +1737,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1737
1737
|
}
|
|
1738
1738
|
}
|
|
1739
1739
|
}
|
|
1740
|
-
`,
|
|
1740
|
+
`,ma=s.dt(ue)`
|
|
1741
1741
|
${({theme:e,$variant:i})=>`
|
|
1742
1742
|
align-items: center;
|
|
1743
1743
|
background: ${i==="error"?e.palette.primary[400]:e.palette.warning[500]};
|
|
@@ -1750,14 +1750,14 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1750
1750
|
width: ${e.spacing[.5]};
|
|
1751
1751
|
height: ${e.spacing[.5]};
|
|
1752
1752
|
`}
|
|
1753
|
-
`,
|
|
1753
|
+
`,wa=s.dt.div`
|
|
1754
1754
|
align-items: center;
|
|
1755
1755
|
color: ${({theme:e})=>e.palette.white};
|
|
1756
1756
|
display: flex;
|
|
1757
1757
|
font-size: 6px;
|
|
1758
1758
|
font-weight: ${({theme:e})=>e.typography.weight.bold};
|
|
1759
1759
|
justify-content: center;
|
|
1760
|
-
`,
|
|
1760
|
+
`,_t=f.forwardRef(function({numberIndicator:i,show:n,variant:a="error",...r},o){return t.jsx(ma,{$variant:a,className:n?"flex":"hidden","data-testid":"notification-sign",ref:o,...r,children:i&&t.jsx(wa,{children:i<=9?i:9})})}),Ht=({end:e=!1,label:i,id:n,isActive:a=!1,link:r,notificationSign:o,onClick:l,tooltip:c="",variant:d="primary",tag:p})=>{const{pathname:g}=Re.useLocation(),x=a||(d==="primary"?g.includes(r):g.endsWith(r));return t.jsx(V,{display:"flex",id:`${n}-tooltip`,tip:c,children:t.jsxs($a,{$borderButton:x,$variant:d,children:[t.jsxs(Re.NavLink,{end:e,id:n,onClick:l,to:r,children:[i,t.jsx(_t,{left:o==null?void 0:o.left,numberIndicator:o==null?void 0:o.numberIndicator,show:o==null?void 0:o.show,top:o==null?void 0:o.top,variant:o==null?void 0:o.variant})]}),p===void 0?null:t.jsx(Y,{tagLabel:`${p}`,variant:"default"})]})})},Xe=({items:e,borders:i=!0,box:n=!1,variant:a="primary"})=>{const r=s.nt();return t.jsx($,{alignItems:"center",bgColor:r.palette.white,border:n?"1px solid":void 0,borderBottom:i?`1px solid ${r.palette.gray[300]}`:void 0,borderColor:n?r.palette.gray[200]:void 0,borderRadius:n?r.spacing[.25]:void 0,display:"inline-flex",gap:.25,id:"tablist",padding:n?[0,0,0,0]:void 0,pl:i?1.25:void 0,pr:i?1.25:void 0,role:"tablist",width:n?"max-content":"100%",children:e.map(({end:o,id:l,isActive:c,link:d,label:p,notificationSign:g,onClick:x,tag:u,tooltip:h})=>t.jsx(Ht,{end:o,id:l,isActive:c,label:p,link:d,notificationSign:g,onClick:x,tag:u,tooltip:h,variant:a},l))})},J=f.forwardRef(function({color:i=z.palette.gray[100],mt:n=.5,mb:a=.5,width:r,...o},l){return t.jsx($,{as:"hr",borderTop:`1px solid ${i}`,mb:a,mt:n,ref:l,width:r??"100%",...o})}),ja=s.dt.li`
|
|
1761
1761
|
${({theme:e})=>`
|
|
1762
1762
|
align-items: center;
|
|
1763
1763
|
background-color: ${e.palette.white};
|
|
@@ -1804,7 +1804,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1804
1804
|
background-color: ${e.palette.gray[100]};
|
|
1805
1805
|
}
|
|
1806
1806
|
`}
|
|
1807
|
-
`,
|
|
1807
|
+
`,Mt=s.dt.ul`
|
|
1808
1808
|
${({theme:e})=>`
|
|
1809
1809
|
background-color: ${e.palette.white};
|
|
1810
1810
|
border: 1px solid ${e.palette.gray[200]};
|
|
@@ -1815,7 +1815,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1815
1815
|
min-width: 240px;
|
|
1816
1816
|
padding: ${e.spacing[.25]} 0 ${e.spacing[.25]} 0;
|
|
1817
1817
|
`}
|
|
1818
|
-
|
|
1818
|
+
`,$e=({children:e,disabled:i=!1,icon:n,iconType:a="fa-light",href:r,onClick:o,onClickIcon:l,onKeyDown:c,rightIcon:d,selected:p=!1,value:g,...x})=>{const h=s.nt().palette.gray[i?300:800],y=i?f.Children.map(e,b=>f.isValidElement(b)?f.cloneElement(b,{disabled:i,...b.props}):b):e;return t.jsxs(ja,{"aria-disabled":i,"aria-label":g,"aria-selected":p,"data-testid":g,onClick:o,onKeyDown:c,value:g,...x,children:[n!==void 0||g!==void 0?t.jsxs($,{alignItems:"center",display:"flex",gap:.625,children:[n?t.jsx(S,{disabled:i,icon:n,iconColor:h,iconSize:"xxs",iconType:a}):null,r===void 0?y:t.jsx(X,{href:r,children:y})]}):null,p||d?t.jsx(S,{disabled:i,icon:d??"check",iconClass:"selected",iconColor:h,iconSize:"xs",iconType:a,onClick:l}):null]})},va=s.dt($e)`
|
|
1819
1819
|
margin-top: 10px;
|
|
1820
1820
|
border: 1px solid ${({theme:e})=>e.palette.gray[300]};
|
|
1821
1821
|
border-radius: 4px;
|
|
@@ -1833,7 +1833,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1833
1833
|
&[aria-selected="true"]:not([aria-disabled="true"]) {
|
|
1834
1834
|
background-color: unset;
|
|
1835
1835
|
}
|
|
1836
|
-
`,
|
|
1836
|
+
`,Vt=({items:e,onReorder:i,title:n,description:a,onClickClose:r})=>{const o=f.useCallback(l=>()=>{r(l)},[r]);return t.jsxs(s.ReorderGroup,{as:"div",axis:"y",layoutScroll:!0,onReorder:i,style:{height:"max-content",padding:"1.25rem 0",width:"45%"},values:e,children:[t.jsxs($,{display:"flex",gap:.25,children:[t.jsx(W,{display:"flex",size:"xs",children:n}),t.jsx(Y,{priority:"high",tagLabel:String(e.filter(l=>l.visible).length),variant:"error"})]}),t.jsx(k,{size:"sm",children:a}),e.map(l=>l.visible?t.jsx(s.ReorderItem,{as:"div",dragListener:!l.locked,item:l.name,value:l,children:t.jsx(va,{disabled:l.locked,icon:"grid-2",label:l.name,onClickIcon:l.locked?void 0:o(l.id),rightIcon:l.locked?"lock":"close",selected:l.visible,value:l.name,children:l.name})},l.name):void 0)]})},ka=s.dt($e)`
|
|
1837
1837
|
padding: 7px 8px;
|
|
1838
1838
|
|
|
1839
1839
|
&[aria-selected="true"] {
|
|
@@ -1849,7 +1849,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1849
1849
|
display: none;
|
|
1850
1850
|
}
|
|
1851
1851
|
}
|
|
1852
|
-
`,
|
|
1852
|
+
`,Gt=e=>e.reduce((n,a)=>a.group?n[a.group]?{...n,[a.group]:[...n[a.group],a]}:{...n,[a.group]:[a]}:n,{}),Ca=s.dt.input`
|
|
1853
1853
|
${({theme:e})=>`
|
|
1854
1854
|
background: none;
|
|
1855
1855
|
border: none !important;
|
|
@@ -1879,7 +1879,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1879
1879
|
display:none;
|
|
1880
1880
|
}
|
|
1881
1881
|
`}
|
|
1882
|
-
`,
|
|
1882
|
+
`,Sa=s.dt.div`
|
|
1883
1883
|
${({theme:e})=>`
|
|
1884
1884
|
align-items: center;
|
|
1885
1885
|
background-color: ${e.palette.white};
|
|
@@ -1899,26 +1899,26 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1899
1899
|
border: 2px solid ${e.palette.black};
|
|
1900
1900
|
}
|
|
1901
1901
|
`}
|
|
1902
|
-
`,
|
|
1902
|
+
`,za=s.dt.div`
|
|
1903
1903
|
${({theme:e})=>`
|
|
1904
1904
|
background-color: ${e.palette.white};
|
|
1905
1905
|
border-radius: ${e.spacing[.5]};
|
|
1906
1906
|
width: 250px;
|
|
1907
1907
|
`}
|
|
1908
|
-
`,
|
|
1908
|
+
`,re=f.forwardRef(function({name:i,smallSearch:n=!1,onClear:a,value:r,...o},l){const c=s.nt(),[d,p]=f.useState(!1),{refs:g,floatingStyles:x}=s.useFloating$1(),u=f.useCallback(()=>{p(b=>!b)},[]),h=f.useCallback(b=>{b.key==="Enter"&&b.preventDefault()},[]);he(g.floating.current,()=>{p(!1)},!0);const y=t.jsxs(Sa,{children:[t.jsx(S,{icon:"magnifying-glass",iconColor:c.palette.gray[700],iconSize:"xs",iconType:"fa-light"}),t.jsx(Ca,{...o,id:i,name:i,onKeyDown:h,ref:l,type:"search",value:r}),!s.lodashExports.isEmpty(r)&&t.jsx(B,{icon:"xmark",iconColor:c.palette.gray[300],iconSize:"xs",iconType:"fa-light",onClick:a,px:.25,py:.25,type:"reset",variant:"ghost"})]});return n?t.jsxs(f.Fragment,{children:[t.jsx(B,{border:`1px solid ${c.palette.gray[300]} !important`,icon:"magnifying-glass",iconSize:"xs",iconType:"fa-light",onClick:u,ref:g.setReference,variant:"ghost"}),d?t.jsx(za,{ref:g.setFloating,style:x,children:y}):void 0]}):y}),Ut=({columns:e,formId:i,onChangeHandler:n,variant:a})=>{const r=f.useRef(null),[o,l]=f.useState([]),[c,d]=f.useState(""),p=f.useCallback(x=>{const{value:u}=x.target;d(u)},[]),g=f.useCallback(()=>{r.current&&(r.current.reset(),d(""))},[r]);return f.useEffect(()=>{l(e.filter(x=>{var u;return a==="grouped"?x.name.toLowerCase().includes(c.toLowerCase())||((u=x.group)==null?void 0:u.includes(c.toLowerCase())):x.name.toLowerCase().includes(c.toLowerCase())}))},[e,c,a]),a==="grouped"?t.jsxs($,{display:"flex",flexDirection:"column",gap:.625,height:"100%",id:"columns-buttons",py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:r,children:t.jsx(re,{name:"search",onChange:p,onClear:g,value:c})}),t.jsx("form",{"data-testid":i,id:i,onReset:g,style:{display:"flex",flexDirection:"column",gap:"0.625rem"},children:Object.entries(Gt(o)).map(([x,u],h)=>{const y=`li-checkbox${x}`;return t.jsx(Et,{checkboxesName:x,defaultCollapsed:h===0,onChange:n,options:u,title:x},y)})})]}):t.jsxs($,{height:"100%",id:"columns-buttons",py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:r,children:t.jsx(re,{name:"search",onChange:p,onClear:g,value:c})}),t.jsx("form",{"data-testid":i,id:i,onReset:g,style:{paddingTop:"0.625rem"},children:o.map(x=>{const u=`li-checkbox-${x.name}`;return t.jsx(ka,{selected:x.visible,value:u,width:"content",children:t.jsx(Fe,{checked:x.visible,disabled:x.locked,label:x.name,name:x.name,onChange:n,value:x.name})},u)})})]})},Ia=({_containerId:e="portals",title:i,modalRef:n,variant:a})=>{const r=s.nt(),o=f.useRef(null),[l,c]=f.useState(void 0),d=f.useCallback(x=>{const{checked:u,value:h}=x.target,y=n.columns.map(b=>{var m;return b.name===h?((m=b.toggleVisibility)==null||m.call(b,u),{...b,visible:u}):b});n.setColumns(y)},[n]),p=f.useCallback(x=>{const u=n.columns.map(h=>{var y;return h.id===x?((y=h.toggleVisibility)==null||y.call(h,!1),{...h,visible:!1}):h});n.setColumns(u)},[n]),g=f.useCallback(()=>{var u;const x=(u=o.current)==null?void 0:u.scrollHeight;l!==x&&c(x)},[l]);return n.isOpen?G.createPortal(t.jsx(be,{"aria-label":n.name,"aria-modal":"true",children:t.jsxs(ye,{$size:"md",flexDirection:"column",children:[t.jsxs($,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(W,{size:"sm",children:i}),t.jsx(B,{icon:"close",iconColor:r.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:n.close,px:.25,py:.25,variant:"ghost"})]}),t.jsx(J,{mb:0,mt:0}),t.jsxs($,{display:"flex",gap:1.25,onScroll:g,px:1.25,ref:o,scroll:"y",width:"100%",children:[t.jsx(Ut,{columns:n.columns,formId:"columns-visibility",onChangeHandler:d,variant:a}),t.jsx($,{borderLeft:`2px solid ${r.palette.gray[100]}`,height:l?`${l}px`:"auto"}),t.jsx(Vt,{description:"Click and drag to reorder the columns",items:n.columns,onClickClose:p,onReorder:n.setColumns,title:"Reorder columns"})]}),t.jsx(J,{mb:0,mt:0}),t.jsxs($,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(D,{disabled:!n.hasChanged,form:"columns-visibility",id:"columns-modal-cancel",justify:"center",onClick:n.resetToDefault,type:"reset",variant:"tertiary",children:"Reset to default"}),t.jsx(D,{id:"columns-modal-submit",justify:"center",onClick:n.close,variant:"primary",children:"Save"})]})]})}),document.getElementById(e)??document.body):t.jsx("div",{})},Ta=s.dt($e)`
|
|
1909
1909
|
padding: 8px;
|
|
1910
1910
|
min-width: unset;
|
|
1911
|
-
`,
|
|
1911
|
+
`,lt=s.dt($e)`
|
|
1912
1912
|
padding: 7px 8px;
|
|
1913
1913
|
word-wrap: break-word;
|
|
1914
1914
|
|
|
1915
1915
|
svg.fa-check {
|
|
1916
1916
|
border-radius: 2px;
|
|
1917
1917
|
}
|
|
1918
|
-
`,
|
|
1918
|
+
`,Yt=s.dt(B)`
|
|
1919
1919
|
background-color: ${({theme:e})=>e.palette.white};
|
|
1920
1920
|
color: ${({theme:e})=>e.palette.gray[400]};
|
|
1921
|
-
`,Zt=({control:e,option:i,register:n,setValue:a})=>{var r,o,l,c,d;switch(i.type){case"checkboxes":return t.jsx("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:(r=i.options)==null?void 0:r.map(g=>t.jsx(dt,{value:g.value,width:"content",children:t.jsx(Ne,{...n("checkbox"),label:g.label,value:g.value})},`li-checkbox-${g.value}`))});case"radioButton":return t.jsx("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:(o=i.options)==null?void 0:o.map(g=>t.jsx(dt,{value:g.value,width:"content",children:t.jsx(Ze,{...n("radio"),label:g.label,value:g.value})},`li-radio-${g.value}`))});case"select":return t.jsx(jt,{control:e,items:((l=i.options)==null?void 0:l.map(g=>({name:g.label??"",value:g.value})))??[],label:i.label,name:`text.${String(i.key)}-${i.filterFn??"caseInsensitive"}`,value:i.value});case"text":const p=`text.${String(i.key)}-${i.filterFn??"caseInsensitive"}`;return t.jsx(Xe,{label:i.label,name:p,register:n,value:i.value});case"numberRange":return t.jsx(Dt,{label:i.label,name:String(i.key),propsMax:{placeholder:"Max",register:n,name:"maxValue",value:i.maxValue,setValue:a},propsMin:{placeholder:"Min",register:n,name:"minValue",value:i.minValue,setValue:a}});case"dateRange":return t.jsx(Nt,{label:i.label,name:String(i.key),propsMax:{name:"maxValue",value:(c=i.maxValue)==null?void 0:c.toString()},propsMin:{name:"minValue",value:(d=i.minValue)==null?void 0:d.toString()},register:n,setValue:a});default:return t.jsx("div",{})}},Jt=({control:e,items:i,register:n,setValue:a})=>t.jsx(t.Fragment,{children:i.map((r,o)=>{const l=`${r.type}-${r.value}-${r.filterFn??"default"}`;return t.jsxs("div",{children:[t.jsx(Zt,{control:e,option:r,register:n,setValue:a}),o<i.length-1&&t.jsx("hr",{style:{margin:"1.25rem 0 0.625rem"}})]},l)})}),Qt=e=>{var c,d,p,g,x;const[i,n]=u.useState([...e]),{control:a,register:r,handleSubmit:o,setValue:l}=s.useForm({defaultValues:{checkbox:e.filter(f=>f.type==="checkboxes").flatMap(f=>{var h;return((h=f.options)==null?void 0:h.filter($=>$.checked).map($=>$.value))??[]}),radio:((p=(d=(c=e.find(f=>f.type==="radioButton"))==null?void 0:c.options)==null?void 0:d.find(({checked:f})=>f))==null?void 0:p.value)??"",text:e.filter(f=>["text","select"].includes(f.type)).reduce((f,h)=>({...f,[`${String(h.key)}-${h.filterFn??"caseInsensitive"}`]:h.value??""}),{}),minValue:(g=e.find(f=>["numberRange","dateRange"].includes(f.type)))==null?void 0:g.minValue,maxValue:(x=e.find(f=>["numberRange","dateRange"].includes(f.type)))==null?void 0:x.maxValue}});return{control:a,items:i,setItems:n,register:r,handleSubmit:o,setValue:l}},Ra=(e,i)=>{var n,a,r,o,l;i("checkbox",e.filter(c=>c.type==="checkboxes").flatMap(c=>{var d;return((d=c.options)==null?void 0:d.filter(p=>p.checked).map(p=>p.value))??[]})),i("radio",((r=(a=(n=e.find(c=>c.type==="radioButton"))==null?void 0:n.options)==null?void 0:a.find(({checked:c})=>c))==null?void 0:r.value)??""),i("text",e.filter(c=>["text","select"].includes(c.type)).reduce((c,d)=>({...c,[`${String(d.key)}-${d.filterFn??"caseInsensitive"}`]:d.value??""}),{})),i("minValue",(o=e.find(c=>["numberRange","dateRange"].includes(c.type)))==null?void 0:o.minValue),i("maxValue",(l=e.find(c=>["numberRange","dateRange"].includes(c.type)))==null?void 0:l.maxValue)},Da=(e,i)=>e.map(n=>{var a;return n.type==="checkboxes"?{...n,options:(a=n.options)==null?void 0:a.filter(r=>{var o;return((o=r.label)==null?void 0:o.toLowerCase().includes(i.toLowerCase()))??r.value.toLowerCase().includes(i.toLowerCase())})}:n}),_e=({options:e,onSubmit:i,id:n,open:a})=>{const{control:r,items:o,setItems:l,register:c,handleSubmit:d,setValue:p}=Qt(e),g=e.some($=>$.type==="checkboxes"),x=u.useCallback($=>{const{value:b}=$.target,m=Da(e,b);l(m)},[e,l]),f=u.useCallback($=>{i&&i($)},[i]);u.useEffect(()=>{l(e),Ra(e,p)},[e,l,p]);const h=t.jsx(be,{$bgColor:"transparent",children:t.jsxs($e,{$size:"fixed",flexDirection:"column",gap:1.25,style:{overflow:"hidden"},children:[g&&t.jsx(se,{onChange:x}),t.jsxs("form",{id:n,onSubmit:d(f),children:[t.jsx(Jt,{control:r,items:o,register:c,setValue:p}),t.jsx(D,{mt:1,type:"submit",children:"Apply"})]})]})});return a?U.createPortal(h,document.getElementById("portals")??document.body):t.jsx("div",{})},Se=({options:e,variant:i,onApplyFilters:n})=>{const a=s.nt(),[r,o]=u.useState(e),[l,c]=u.useState([]),[d,p]=u.useState({}),[g,x]=u.useState(""),f=u.useCallback(b=>()=>{const m=r.find(w=>w.label===b);x(b),c((m==null?void 0:m.filterOptions)??[])},[r]),h=u.useCallback(b=>{const m=[...b.checkbox,...Object.values(b.text??{}),...b.radio?[b.radio]:[],...b.minValue?[String(b.minValue)]:[],...b.maxValue?[String(b.maxValue)]:[]];p(v=>m.length>0?{...v,[g]:m}:v);const w=v=>{var E,F;return{...v,options:(E=v.options)==null?void 0:E.map(R=>({...R,checked:b.checkbox.includes(R.value)||b.radio===R.value})),value:["text","select"].includes(v.type)?((F=b.text)==null?void 0:F[`${String(v.key)}-${v.filterFn??"caseInsensitive"}`])??v.value:v.value,minValue:["numberRange","dateRange"].includes(v.type)?b.minValue:v.minValue,maxValue:["numberRange","dateRange"].includes(v.type)?b.maxValue:v.maxValue}},j=v=>v.label===g?{...v,filterOptions:v.filterOptions.map(w)}:v,I=r.map(j);o(v=>v.map(j));const z=I.flatMap(({filterOptions:v})=>v);n(z),c([])},[r,n,g]),$=u.useCallback((b,m)=>{const w=`li-filter-option-${b}`;return t.jsxs(Ea,{icon:m,onClick:f(b),style:{minWidth:"180px"},value:w,width:"100%",children:[b,d[b]===void 0?void 0:t.jsx(q,{tagLabel:d[b].length.toString()})]},w)},[d,f]);return u.useEffect(()=>{const b=e.reduce((m,{label:w,filterOptions:j})=>{const I=j.flatMap(({value:E,minValue:F,maxValue:R})=>[F,R,E]).filter(Boolean),z=j.flatMap(({options:E})=>E??[]).filter(({checked:E=!1})=>E).map(({value:E})=>E),v=[...I,...z];return v.length===0?m:{...m,[w]:v}},{});p(b)},[e]),i==="grouped"?t.jsxs(y,{display:"flex",flexDirection:"column",flexGrow:1,maxHeight:"360px",position:"relative",style:{columnGap:"10px"},wrap:"wrap",children:[Object.entries(qt(e)).map(([b,m])=>t.jsxs(y,{children:[t.jsx(k,{color:a.palette.gray[400],mb:.25,size:"sm",children:b}),m.map(({label:w,icon:j="filter-list"})=>$(w,j))]},b)),t.jsx(_e,{id:"filters-options",onSubmit:h,open:l.length>0,options:l})]}):t.jsxs(y,{display:"flex",flexDirection:"column",flexGrow:1,maxHeight:"200px",style:{columnGap:"10px"},wrap:"wrap",children:[e.map(({label:b,icon:m="filter-list"})=>$(b,m)),t.jsx(_e,{id:"filters-options",onSubmit:h,open:l.length>0,options:l})]})},ei=({_containerId:e="portals",options:i,onApplyFilters:n,modalRef:a,variant:r})=>a.isOpen?U.createPortal(t.jsx(be,{$bgColor:"transparent","aria-label":a.name,"aria-modal":"true",children:t.jsxs($e,{$size:"fixed",alignItems:"start",display:"flex",flexDirection:"row",gap:.5,position:"relative",px:1.25,py:1.25,style:{width:"auto"},children:[t.jsx(Se,{onApplyFilters:n,options:i,variant:r}),t.jsx(Xt,{icon:"close",iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:a.close,variant:"ghost"})]})}),document.getElementById(e)??document.body):t.jsx("div",{}),La=({_containerId:e="portals",rightColumnOptions:i,leftColumnOptions:n,variant:a,onApplyFilters:r,modalRef:o})=>o.isOpen?U.createPortal(t.jsx(be,{$bgColor:"transparent","aria-label":o.name,"aria-modal":"true",children:t.jsxs($e,{$size:"lg",alignItems:"start",flexDirection:"row",gap:1,position:"relative",px:1.25,py:1.25,children:[t.jsxs(y,{display:"flex",flexGrow:1,gap:1,justify:"space-between",children:[t.jsx(Se,{onApplyFilters:r,options:n,variant:a}),t.jsx(Se,{onApplyFilters:r,options:i,variant:a})]}),t.jsx(Xt,{icon:"close",iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:o.close,variant:"ghost"})]})}),document.getElementById(e)??document.body):t.jsx("div",{});function Pa(e){if(e)return e}function Wa(e){if(!e||e.length===0)return;const i=e.filter(a=>a.checked).map(a=>a.value);return i.length===0?void 0:i.join(", ")}function Aa(e,i){const n=s._.isEmpty(e)&&typeof e!="number"?void 0:Number(e),a=s._.isEmpty(i)&&typeof i!="number"?void 0:Number(String(i));if(!s._.isUndefined(n)&&!s._.isUndefined(a))return`${n} - ${a}`;if(!s._.isUndefined(n))return`Min ${n}`;if(!s._.isUndefined(a))return`Max ${a}`}function Ba(e,i){if(s.dayjs_minExports.extend(s.localizedFormat),!(s._.isUndefined(e)||s._.isUndefined(i))){if(e!==""&&i!=="")return`${s.dayjs(e).format("LL")} - ${s.dayjs(i).format("LL")}`;if(e!=="")return`From ${s.dayjs(e).format("LL")}`;if(i!=="")return`To ${s.dayjs(i).format("LL")}`}}function _a(e,i,n){return e==="select"?i:`${i} ${n==="includesInsensitive"?"contains":"is"}`}const ne=({filter:e,icon:i="filter-list",label:n,onClose:a,filterValue:r})=>s._.isNil(r)||s._.isEmpty(String(r))?null:t.jsx(y,{pr:.25,children:t.jsx(q,{filterValues:r,icon:i,id:"remove-filter",onClose:a(e),tagLabel:`${n} `})},n),ti=({options:e,onClose:i})=>{const n=e.flatMap(a=>a.filterOptions.map(r=>{const{filterFn:o,label:l,type:c,value:d,options:p,minValue:g,maxValue:x}=r;switch(c){case"numberRange":{const f=Aa(g,x);return t.jsx(ne,{filter:r,filterValue:f,icon:a.icon,label:a.label,onClose:i},l)}case"dateRange":{const f=Ba(g==null?void 0:g.toString(),x==null?void 0:x.toString());return t.jsx(ne,{filter:r,filterValue:f,icon:a.icon,label:a.label,onClose:i},l)}case"radioButton":case"checkboxes":{const f=Wa(p);return t.jsx(ne,{filter:r,filterValue:f,icon:a.icon,label:a.label,onClose:i},l)}case void 0:case"select":case"text":default:{const f=Pa(d),h=_a(c,a.label,o);return t.jsx(ne,{filter:r,filterValue:f,icon:a.icon,label:h,onClose:i},l)}}})).filter(a=>{if(a===null)return!1;const{filterValue:r}=a.props;return!s._.isNil(r)&&!s._.isEmpty(String(r))});return t.jsx(y,{display:"flex",children:n})},Oa=(e,i)=>{function n(l,c){if(c.value===""||c.value===void 0||s._.defaultTo(c.isBackFilter,!1))return!0;switch(c.filterFn){case"includesInsensitive":return String(l[c.key]).toLowerCase().includes(c.value.toLowerCase());case"caseInsensitive":case void 0:default:return String(l[c.key]).toLowerCase()===c.value.toLowerCase()}}function a(l,c){if(!c.options||c.options.length===0)return!0;const d=c.options.filter(p=>p.checked).map(p=>p.value);return d.length===0?!0:d.includes(String(l[c.key]))}function r(l,c,d){const p=d(String(l[c.key])),{minValue:g,maxValue:x}=c,f=s._.isEmpty(g)&&typeof g!="number"?void 0:d(String(g)),h=s._.isEmpty(x)&&typeof x!="number"?void 0:d(String(x));return s._.isUndefined(f)&&s._.isUndefined(h)?!0:(f??-1/0)<=p&&p<=(h??1/0)}function o(l){return i.every(c=>{if(typeof c.key=="function")return c.key(l,c.value);switch(c.type){case"radioButton":case"checkboxes":return a(l,c);case"numberRange":return r(l,c,Number);case"dateRange":return r(l,c,d=>new Date(d));case"select":case"text":default:return n(l,c)}})}return e.filter(o)},pt=e=>[...e.flatMap(({options:n})=>n).filter(n=>n==null?void 0:n.checked),...e.flatMap(n=>[n.value,n.maxValue,n.minValue]).filter(Boolean)].length,Ha=e=>{var n;const i=((n=e.options)==null?void 0:n.map(a=>({...a,checked:void 0})))??void 0;return{...e,minValue:void 0,maxValue:void 0,value:void 0,options:i}},Ma=({dataset:e,localStorageKey:i,options:n,setFilteredDataset:a,onFiltersChange:r,variant:o="ungrouped"})=>{const l=Ee("filters-modal"),[c,d]=u.useState([]),[p,g]=u.useState(pt(c)),x=n.map($=>({...$,filterOptions:$.filterOptions.map(b=>c.find(w=>w.key===b.key&&w.type===b.type&&w.filterFn===b.filterFn)??{...b})})),f=u.useCallback($=>{d([...$]),localStorage.setItem(i,JSON.stringify($))},[d,i]),h=u.useCallback($=>()=>{const b=c.map(m=>m.key===$.key&&m.type===$.type&&m.filterFn===$.filterFn?Ha(m):m);d(b),localStorage.setItem(i,JSON.stringify(b))},[c,i]);return u.useEffect(()=>{const $=localStorage.getItem(i),b=$?JSON.parse($):n.flatMap(m=>m.filterOptions);d(b)},[i,n,d]),u.useEffect(()=>{a&&e!==void 0&&a(Oa(e,c)),g(pt(c)),r==null||r(c)},[e,c,a,g,r]),t.jsxs(u.Fragment,{children:[t.jsx(y,{alignItems:"center",display:"flex",gap:.25,maxWidth:"100%",wrap:"wrap",children:t.jsxs(y,{pr:.25,children:[t.jsx(D,{icon:"filter",id:"filterBtn",onClick:l.toggle,tag:p.toString(),variant:"ghost"}),t.jsx(ti,{onClose:h,options:x})]})}),t.jsx(ei,{modalRef:l,onApplyFilters:f,options:x,variant:o})]})},ii=({_portal:e=!0,alert:i,cancelButton:n=void 0,children:a=void 0,confirmButton:r=void 0,content:o=void 0,description:l=void 0,modalRef:c,otherActions:d=void 0,onClose:p=void 0,tabItems:g=void 0,title:x=void 0,size:f,id:h="modal-container"})=>{const $=s.nt(),b=t.jsx(be,{"aria-label":c.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs($e,{$size:f,"data-testid":h,flexDirection:"column",id:h,children:[!s._.isEmpty(x)&&t.jsx(Mt,{description:l,modalRef:c,onClose:p,otherActions:d,title:x}),g&&t.jsx(y,{borderTop:`1px solid ${$.palette.gray[300]}`,display:"block",mb:1.25,position:"sticky",children:t.jsx(Je,{items:g})}),(s._.isObject(o)||a)&&t.jsxs(ua,{children:[a,s._.isObject(o)&&s._.isString(o.imageSrc)&&t.jsx(ba,{$framed:o.imageFramed,children:t.jsx(G,{alt:"modal-img",publicId:o.imageSrc})}),s._.isObject(o)&&s._.isString(o.imageText)&&t.jsx(k,{size:"sm",children:o.imageText})]}),t.jsx(Ht,{alert:i,cancelButton:n,confirmButton:r,modalRef:c})]})});return e&&c.isOpen?U.createPortal(b,document.getElementById("portals")??document.body):c.isOpen?b:null},Va=()=>{const[e,i]=u.useState(!1),[n,a]=u.useState(),r=u.useRef(null),o=Ee("confirm-dialog-modal"),l=u.useCallback(async g=>(a(g),i(!0),new Promise(x=>{r.current=x})),[]),c=u.useCallback(()=>{var g;i(!1),a(void 0),(g=r.current)==null||g.call(r,!0)},[]),d=u.useCallback(()=>{var g;i(!1),a(void 0),(g=r.current)==null||g.call(r,!1)},[]);return u.useEffect(()=>{o.setIsOpen(e)},[e,o]),{ConfirmDialog:({id:g="confirm-dialog-modal",children:x})=>t.jsxs(ii,{cancelButton:{onClick:d,text:"Cancel"},confirmButton:{id:(n==null?void 0:n.id)??"modal-confirm",onClick:c,text:"Confirm"},description:n==null?void 0:n.message,id:g,modalRef:{...o,close:d},size:"sm",title:n==null?void 0:n.title,children:[n==null?void 0:n.content,x]}),confirm:l}},Ga=s.dt.button`
|
|
1921
|
+
`,qt=({control:e,option:i,register:n,setValue:a})=>{var r,o,l,c,d;switch(i.type){case"checkboxes":return t.jsx("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:(r=i.options)==null?void 0:r.map(g=>t.jsx(lt,{value:g.value,width:"content",children:t.jsx(Fe,{...n("checkbox"),label:g.label,value:g.value})},`li-checkbox-${g.value}`))});case"radioButton":return t.jsx("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:(o=i.options)==null?void 0:o.map(g=>t.jsx(lt,{value:g.value,width:"content",children:t.jsx(Ke,{...n("radio"),label:g.label,value:g.value})},`li-radio-${g.value}`))});case"select":return t.jsx($t,{control:e,items:((l=i.options)==null?void 0:l.map(g=>({name:g.label??"",value:g.value})))??[],label:i.label,name:`text.${String(i.key)}-${i.filterFn??"caseInsensitive"}`,value:i.value});case"text":const p=`text.${String(i.key)}-${i.filterFn??"caseInsensitive"}`;return t.jsx(qe,{label:i.label,name:p,register:n,value:i.value});case"numberRange":return t.jsx(Nt,{label:i.label,name:String(i.key),propsMax:{placeholder:"Max",register:n,name:"maxValue",value:i.maxValue,setValue:a},propsMin:{placeholder:"Min",register:n,name:"minValue",value:i.minValue,setValue:a}});case"dateRange":return t.jsx(It,{label:i.label,name:String(i.key),propsMax:{name:"maxValue",value:(c=i.maxValue)==null?void 0:c.toString()},propsMin:{name:"minValue",value:(d=i.minValue)==null?void 0:d.toString()},register:n,setValue:a});default:return t.jsx("div",{})}},Kt=({control:e,items:i,register:n,setValue:a})=>t.jsx(t.Fragment,{children:i.map((r,o)=>{const l=`${r.type}-${r.value}-${r.filterFn??"default"}`;return t.jsxs("div",{children:[t.jsx(qt,{control:e,option:r,register:n,setValue:a}),o<i.length-1&&t.jsx("hr",{style:{margin:"1.25rem 0 0.625rem"}})]},l)})}),Xt=e=>{var c,d,p,g,x;const[i,n]=f.useState([...e]),{control:a,register:r,handleSubmit:o,setValue:l}=s.useForm({defaultValues:{checkbox:e.filter(u=>u.type==="checkboxes").flatMap(u=>{var h;return((h=u.options)==null?void 0:h.filter(y=>y.checked).map(y=>y.value))??[]}),radio:((p=(d=(c=e.find(u=>u.type==="radioButton"))==null?void 0:c.options)==null?void 0:d.find(({checked:u})=>u))==null?void 0:p.value)??"",text:e.filter(u=>["text","select"].includes(u.type)).reduce((u,h)=>({...u,[`${String(h.key)}-${h.filterFn??"caseInsensitive"}`]:h.value??""}),{}),minValue:(g=e.find(u=>["numberRange","dateRange"].includes(u.type)))==null?void 0:g.minValue,maxValue:(x=e.find(u=>["numberRange","dateRange"].includes(u.type)))==null?void 0:x.maxValue}});return{control:a,items:i,setItems:n,register:r,handleSubmit:o,setValue:l}},Fa=(e,i)=>{var n,a,r,o,l;i("checkbox",e.filter(c=>c.type==="checkboxes").flatMap(c=>{var d;return((d=c.options)==null?void 0:d.filter(p=>p.checked).map(p=>p.value))??[]})),i("radio",((r=(a=(n=e.find(c=>c.type==="radioButton"))==null?void 0:n.options)==null?void 0:a.find(({checked:c})=>c))==null?void 0:r.value)??""),i("text",e.filter(c=>["text","select"].includes(c.type)).reduce((c,d)=>({...c,[`${String(d.key)}-${d.filterFn??"caseInsensitive"}`]:d.value??""}),{})),i("minValue",(o=e.find(c=>["numberRange","dateRange"].includes(c.type)))==null?void 0:o.minValue),i("maxValue",(l=e.find(c=>["numberRange","dateRange"].includes(c.type)))==null?void 0:l.maxValue)},Na=(e,i)=>e.map(n=>{var a;return n.type==="checkboxes"?{...n,options:(a=n.options)==null?void 0:a.filter(r=>{var o;return((o=r.label)==null?void 0:o.toLowerCase().includes(i.toLowerCase()))??r.value.toLowerCase().includes(i.toLowerCase())})}:n}),We=({options:e,onSubmit:i,id:n,open:a})=>{const{control:r,items:o,setItems:l,register:c,handleSubmit:d,setValue:p}=Xt(e),g=e.some(y=>y.type==="checkboxes"),x=f.useCallback(y=>{const{value:b}=y.target,m=Na(e,b);l(m)},[e,l]),u=f.useCallback(y=>{i&&i(y)},[i]);f.useEffect(()=>{l(e),Fa(e,p)},[e,l,p]);const h=t.jsx(be,{$bgColor:"transparent",children:t.jsxs(ye,{$size:"fixed",flexDirection:"column",gap:1.25,style:{overflow:"hidden"},children:[g&&t.jsx(re,{onChange:x}),t.jsxs("form",{id:n,onSubmit:d(u),children:[t.jsx(Kt,{control:r,items:o,register:c,setValue:p}),t.jsx(D,{mt:1,type:"submit",children:"Apply"})]})]})});return a?G.createPortal(h,document.getElementById("portals")??document.body):t.jsx("div",{})},Ce=({options:e,variant:i,onApplyFilters:n})=>{const a=s.nt(),[r,o]=f.useState(e),[l,c]=f.useState([]),[d,p]=f.useState({}),[g,x]=f.useState(""),u=f.useCallback(b=>()=>{const m=r.find(w=>w.label===b);x(b),c((m==null?void 0:m.filterOptions)??[])},[r]),h=f.useCallback(b=>{const m=[...b.checkbox,...Object.values(b.text??{}),...b.radio?[b.radio]:[],...b.minValue?[String(b.minValue)]:[],...b.maxValue?[String(b.maxValue)]:[]];p(v=>m.length>0?{...v,[g]:m}:v);const w=v=>{var E,F;return{...v,options:(E=v.options)==null?void 0:E.map(R=>({...R,checked:b.checkbox.includes(R.value)||b.radio===R.value})),value:["text","select"].includes(v.type)?((F=b.text)==null?void 0:F[`${String(v.key)}-${v.filterFn??"caseInsensitive"}`])??v.value:v.value,minValue:["numberRange","dateRange"].includes(v.type)?b.minValue:v.minValue,maxValue:["numberRange","dateRange"].includes(v.type)?b.maxValue:v.maxValue}},j=v=>v.label===g?{...v,filterOptions:v.filterOptions.map(w)}:v,I=r.map(j);o(v=>v.map(j));const C=I.flatMap(({filterOptions:v})=>v);n(C),c([])},[r,n,g]),y=f.useCallback((b,m)=>{const w=`li-filter-option-${b}`;return t.jsxs(Ta,{icon:m,onClick:u(b),style:{minWidth:"180px"},value:w,width:"100%",children:[b,d[b]===void 0?void 0:t.jsx(Y,{tagLabel:d[b].length.toString()})]},w)},[d,u]);return f.useEffect(()=>{const b=e.reduce((m,{label:w,filterOptions:j})=>{const I=j.flatMap(({value:E,minValue:F,maxValue:R})=>[F,R,E]).filter(Boolean),C=j.flatMap(({options:E})=>E??[]).filter(({checked:E=!1})=>E).map(({value:E})=>E),v=[...I,...C];return v.length===0?m:{...m,[w]:v}},{});p(b)},[e]),i==="grouped"?t.jsxs($,{display:"flex",flexDirection:"column",flexGrow:1,maxHeight:"360px",position:"relative",style:{columnGap:"10px"},wrap:"wrap",children:[Object.entries(Gt(e)).map(([b,m])=>t.jsxs($,{children:[t.jsx(k,{color:a.palette.gray[400],mb:.25,size:"sm",children:b}),m.map(({label:w,icon:j="filter-list"})=>y(w,j))]},b)),t.jsx(We,{id:"filters-options",onSubmit:h,open:l.length>0,options:l})]}):t.jsxs($,{display:"flex",flexDirection:"column",flexGrow:1,maxHeight:"200px",style:{columnGap:"10px"},wrap:"wrap",children:[e.map(({label:b,icon:m="filter-list"})=>y(b,m)),t.jsx(We,{id:"filters-options",onSubmit:h,open:l.length>0,options:l})]})},Zt=({_containerId:e="portals",options:i,onApplyFilters:n,modalRef:a,variant:r})=>a.isOpen?G.createPortal(t.jsx(be,{$bgColor:"transparent","aria-label":a.name,"aria-modal":"true",children:t.jsxs(ye,{$size:"fixed",alignItems:"start",display:"flex",flexDirection:"row",gap:.5,position:"relative",px:1.25,py:1.25,style:{width:"auto"},children:[t.jsx(Ce,{onApplyFilters:n,options:i,variant:r}),t.jsx(Yt,{icon:"close",iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:a.close,variant:"ghost"})]})}),document.getElementById(e)??document.body):t.jsx("div",{}),Ea=({_containerId:e="portals",rightColumnOptions:i,leftColumnOptions:n,variant:a,onApplyFilters:r,modalRef:o})=>o.isOpen?G.createPortal(t.jsx(be,{$bgColor:"transparent","aria-label":o.name,"aria-modal":"true",children:t.jsxs(ye,{$size:"lg",alignItems:"start",flexDirection:"row",gap:1,position:"relative",px:1.25,py:1.25,children:[t.jsxs($,{display:"flex",flexGrow:1,gap:1,justify:"space-between",children:[t.jsx(Ce,{onApplyFilters:r,options:n,variant:a}),t.jsx(Ce,{onApplyFilters:r,options:i,variant:a})]}),t.jsx(Yt,{icon:"close",iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:o.close,variant:"ghost"})]})}),document.getElementById(e)??document.body):t.jsx("div",{});function Ra(e){if(e)return e}function Da(e){if(!e||e.length===0)return;const i=e.filter(a=>a.checked).map(a=>a.value);return i.length===0?void 0:i.join(", ")}function La(e,i){const n=s._.isEmpty(e)&&typeof e!="number"?void 0:Number(e),a=s._.isEmpty(i)&&typeof i!="number"?void 0:Number(String(i));if(!s._.isUndefined(n)&&!s._.isUndefined(a))return`${n} - ${a}`;if(!s._.isUndefined(n))return`Min ${n}`;if(!s._.isUndefined(a))return`Max ${a}`}function Pa(e,i){if(s.dayjs_minExports.extend(s.localizedFormat),!(s._.isUndefined(e)||s._.isUndefined(i))){if(e!==""&&i!=="")return`${s.dayjs(e).format("LL")} - ${s.dayjs(i).format("LL")}`;if(e!=="")return`From ${s.dayjs(e).format("LL")}`;if(i!=="")return`To ${s.dayjs(i).format("LL")}`}}function Aa(e,i,n){return e==="select"?i:`${i} ${n==="includesInsensitive"?"contains":"is"}`}const te=({filter:e,icon:i="filter-list",label:n,onClose:a,filterValue:r})=>s._.isNil(r)||s._.isEmpty(String(r))?null:t.jsx($,{pr:.25,children:t.jsx(Y,{filterValues:r,icon:i,id:"remove-filter",onClose:a(e),tagLabel:`${n} `})},n),Jt=({options:e,onClose:i})=>{const n=e.flatMap(a=>a.filterOptions.map(r=>{const{filterFn:o,label:l,type:c,value:d,options:p,minValue:g,maxValue:x}=r;switch(c){case"numberRange":{const u=La(g,x);return t.jsx(te,{filter:r,filterValue:u,icon:a.icon,label:a.label,onClose:i},l)}case"dateRange":{const u=Pa(g==null?void 0:g.toString(),x==null?void 0:x.toString());return t.jsx(te,{filter:r,filterValue:u,icon:a.icon,label:a.label,onClose:i},l)}case"radioButton":case"checkboxes":{const u=Da(p);return t.jsx(te,{filter:r,filterValue:u,icon:a.icon,label:a.label,onClose:i},l)}case void 0:case"select":case"text":default:{const u=Ra(d),h=Aa(c,a.label,o);return t.jsx(te,{filter:r,filterValue:u,icon:a.icon,label:h,onClose:i},l)}}})).filter(a=>{if(a===null)return!1;const{filterValue:r}=a.props;return!s._.isNil(r)&&!s._.isEmpty(String(r))});return t.jsx($,{display:"flex",wrap:"wrap",children:n})},Wa=(e,i)=>{function n(l,c){if(c.value===""||c.value===void 0||s._.defaultTo(c.isBackFilter,!1))return!0;switch(c.filterFn){case"includesInsensitive":return String(l[c.key]).toLowerCase().includes(c.value.toLowerCase());case"caseInsensitive":case void 0:default:return String(l[c.key]).toLowerCase()===c.value.toLowerCase()}}function a(l,c){if(!c.options||c.options.length===0)return!0;const d=c.options.filter(p=>p.checked).map(p=>p.value);return d.length===0?!0:d.includes(String(l[c.key]))}function r(l,c,d){const p=d(String(l[c.key])),{minValue:g,maxValue:x}=c,u=s._.isEmpty(g)&&typeof g!="number"?void 0:d(String(g)),h=s._.isEmpty(x)&&typeof x!="number"?void 0:d(String(x));return s._.isUndefined(u)&&s._.isUndefined(h)?!0:(u??-1/0)<=p&&p<=(h??1/0)}function o(l){return i.every(c=>{if(typeof c.key=="function")return c.key(l,c.value);switch(c.type){case"radioButton":case"checkboxes":return a(l,c);case"numberRange":return r(l,c,Number);case"dateRange":return r(l,c,d=>new Date(d));case"select":case"text":default:return n(l,c)}})}return e.filter(o)},ct=e=>[...e.flatMap(({options:n})=>n).filter(n=>n==null?void 0:n.checked),...e.flatMap(n=>[n.value,n.maxValue,n.minValue]).filter(Boolean)].length,Ba=e=>{var n;const i=((n=e.options)==null?void 0:n.map(a=>({...a,checked:void 0})))??void 0;return{...e,minValue:void 0,maxValue:void 0,value:void 0,options:i}},Oa=({dataset:e,localStorageKey:i,options:n,setFilteredDataset:a,onFiltersChange:r,variant:o="ungrouped"})=>{const l=Ne("filters-modal"),[c,d]=f.useState([]),[p,g]=f.useState(ct(c)),x=n.map(y=>({...y,filterOptions:y.filterOptions.map(b=>c.find(w=>w.key===b.key&&w.type===b.type&&w.filterFn===b.filterFn)??{...b})})),u=f.useCallback(y=>{d([...y]),localStorage.setItem(i,JSON.stringify(y))},[d,i]),h=f.useCallback(y=>()=>{const b=c.map(m=>m.key===y.key&&m.type===y.type&&m.filterFn===y.filterFn?Ba(m):m);d(b),localStorage.setItem(i,JSON.stringify(b))},[c,i]);return f.useEffect(()=>{const y=localStorage.getItem(i),b=y?JSON.parse(y):n.flatMap(m=>m.filterOptions);d(b)},[i,n,d]),f.useEffect(()=>{a&&e!==void 0&&a(Wa(e,c)),g(ct(c)),r==null||r(c)},[e,c,a,g,r]),t.jsxs(f.Fragment,{children:[t.jsx($,{alignItems:"center",display:"flex",gap:.25,maxWidth:"100%",wrap:"wrap",children:t.jsxs($,{pr:.25,children:[t.jsx(D,{icon:"filter",id:"filterBtn",onClick:l.toggle,tag:p.toString(),variant:"ghost"}),t.jsx(Jt,{onClose:h,options:x})]})}),t.jsx(Zt,{modalRef:l,onApplyFilters:u,options:x,variant:o})]})},Qt=({_portal:e=!0,alert:i,cancelButton:n=void 0,children:a=void 0,confirmButton:r=void 0,content:o=void 0,description:l=void 0,modalRef:c,otherActions:d=void 0,onClose:p=void 0,tabItems:g=void 0,title:x=void 0,size:u,id:h="modal-container"})=>{const y=s.nt(),b=t.jsx(be,{"aria-label":c.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs(ye,{$size:u,"data-testid":h,flexDirection:"column",id:h,children:[!s._.isEmpty(x)&&t.jsx(Ot,{description:l,modalRef:c,onClose:p,otherActions:d,title:x}),g&&t.jsx($,{borderTop:`1px solid ${y.palette.gray[300]}`,display:"block",mb:1.25,position:"sticky",children:t.jsx(Xe,{items:g})}),(s._.isObject(o)||a)&&t.jsxs(da,{children:[a,s._.isObject(o)&&s._.isString(o.imageSrc)&&t.jsx(ua,{$framed:o.imageFramed,children:t.jsx(q,{alt:"modal-img",publicId:o.imageSrc})}),s._.isObject(o)&&s._.isString(o.imageText)&&t.jsx(k,{size:"sm",children:o.imageText})]}),t.jsx(Bt,{alert:i,cancelButton:n,confirmButton:r,modalRef:c})]})});return e&&c.isOpen?G.createPortal(b,document.getElementById("portals")??document.body):c.isOpen?b:null},_a=()=>{const[e,i]=f.useState(!1),[n,a]=f.useState(),r=f.useRef(null),o=Ne("confirm-dialog-modal"),l=f.useCallback(async g=>(a(g),i(!0),new Promise(x=>{r.current=x})),[]),c=f.useCallback(()=>{var g;i(!1),a(void 0),(g=r.current)==null||g.call(r,!0)},[]),d=f.useCallback(()=>{var g;i(!1),a(void 0),(g=r.current)==null||g.call(r,!1)},[]);return f.useEffect(()=>{o.setIsOpen(e)},[e,o]),{ConfirmDialog:({id:g="confirm-dialog-modal",children:x})=>t.jsxs(Qt,{cancelButton:{onClick:d,text:"Cancel"},confirmButton:{id:(n==null?void 0:n.id)??"modal-confirm",onClick:c,text:"Confirm"},description:n==null?void 0:n.message,id:g,modalRef:{...o,close:d},size:"sm",title:n==null?void 0:n.title,children:[n==null?void 0:n.content,x]}),confirm:l}},Ha=s.dt.button`
|
|
1922
1922
|
display: flex;
|
|
1923
1923
|
position: relative;
|
|
1924
1924
|
height: 32px;
|
|
@@ -1941,7 +1941,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1941
1941
|
display: none;
|
|
1942
1942
|
}
|
|
1943
1943
|
}
|
|
1944
|
-
`,
|
|
1944
|
+
`,Ma=s.dt.div`
|
|
1945
1945
|
${({theme:e})=>`
|
|
1946
1946
|
display: flex;
|
|
1947
1947
|
flex-direction: column;
|
|
@@ -1982,7 +1982,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1982
1982
|
}
|
|
1983
1983
|
}
|
|
1984
1984
|
`}
|
|
1985
|
-
`,
|
|
1985
|
+
`,Be=({containerRef:e,id:i})=>{const n=s.nt(),a=i==="desktop"?380:342,r=f.useCallback(l=>()=>{if(e!=null&&e.current){const{current:c}=e;c.scrollBy({left:l==="right"?a:-a,behavior:"smooth"})}},[e,a]),o=f.useCallback(l=>t.jsxs(Ha,{onClick:r(l),children:[t.jsx(S,{clickable:!0,icon:`circle-arrow-${l}`,iconClass:"hovered",iconColor:n.palette.gray[800],iconSize:"md",iconType:"fa-solid"}),t.jsx(S,{clickable:!0,icon:`circle-arrow-${l}`,iconClass:"uncover",iconColor:n.palette.gray[800],iconSize:"md",iconType:"fa-light"})]}),[r,n]);return t.jsxs($,{alignItems:"center",display:"flex",gap:1,id:i,width:"max-content",children:[o("left"),o("right")]})},Oe=({tag:e,tagPosition:i})=>{const n=s.nt();return e?t.jsx($,{alignItems:"center",bgColor:n.palette.white,borderRadius:"8px",display:"flex",justify:"center",margin:i==="top"?[.75,.75,.75,.75]:void 0,padding:[.25,.5,.25,.5],position:i==="top"?"absolute":"relative",top:"0",width:"max-content",children:t.jsx(k,{color:n.palette.gray[900],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:e})}):null},ei=({eventDate:e})=>{const i=s.nt(),n=s.lodashExports.isEmpty(e)?null:e==null?void 0:e.split("-");if(n){const[a,r]=n;return t.jsxs($,{alignItems:"center",bgColor:i.palette.white,borderRadius:"8px",display:"flex",flexDirection:"column",margin:[.75,.75,.75,.75],padding:[.75,1.5,.75,1.5],position:"absolute",right:"0",shadow:"md",top:"0",children:[t.jsx(W,{fontWeight:"semibold",lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:a}),t.jsx(k,{color:i.palette.gray[800],fontWeight:"semibold",lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:r.toUpperCase()})]})}return null},Va=s.dt.div`
|
|
1986
1986
|
${({theme:e})=>`
|
|
1987
1987
|
align-items: flex-start;
|
|
1988
1988
|
display: flex;
|
|
@@ -2027,7 +2027,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2027
2027
|
}
|
|
2028
2028
|
}
|
|
2029
2029
|
`}
|
|
2030
|
-
`,
|
|
2030
|
+
`,ti=({author:e,buttonText:i,description:n,eventDate:a,href:r,imageId:o,mode:l="light",publishDate:c,readingTime:d,tag:p,tagPosition:g="top",title:x})=>{const u=s.nt(),h=c==null?void 0:c.split("-"),y=l==="dark",b=t.jsxs(Va,{"data-testid":`content-card-${x}`,children:[o||a||p&&g==="top"?t.jsxs($,{id:"card-image",position:"relative",children:[o&&t.jsx(q,{publicId:o}),g==="top"&&t.jsx(Oe,{tag:p,tagPosition:g}),t.jsx(ei,{eventDate:a})]}):void 0,t.jsxs($,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.5,id:"card-content",children:[g==="bottom"&&t.jsx(Oe,{tag:p,tagPosition:g}),e||h||d?t.jsxs($,{display:"flex",justify:"space-between",width:"100%",children:[e&&h&&t.jsx(k,{color:u.palette.gray[y?300:400],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:e+` • ${h[0]} ${h[1]}, ${h[2]}`}),d&&t.jsxs($,{alignItems:"center",display:"flex",gap:.25,justify:"center",minWidth:"60px",children:[t.jsx(S,{icon:"eye",iconColor:u.palette.gray[y?300:400],iconSize:"xs",iconType:"fa-light"}),t.jsx(k,{color:u.palette.gray[y?300:400],size:"sm",sizeSm:"xs",textAlign:"right",children:d})]})]}):void 0,t.jsx(W,{className:`title-${l}`,color:y?u.palette.white:u.palette.gray[800],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:x}),n&&t.jsx(k,{color:u.palette.gray[y?100:600],size:"md",sizeSm:"sm",children:n}),i&&r&&t.jsx(D,{href:r,variant:"link",children:i})]})]});return r?t.jsx("a",{className:"flex w-fit",href:r,rel:"noopener noreferrer",target:"_self",children:b}):b},Ga=({description:e,items:i,title:n,titleHighlighted:a})=>{const r=f.useRef(null);return t.jsxs(Ma,{"data-testid":"content-card-carousel",children:[t.jsxs($,{alignItems:"flex-start",display:"flex",justify:"space-between",children:[t.jsxs($,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.625,maxWidth:"800px",children:[t.jsxs(W,{display:"inline",fontWeight:"semibold",lineSpacing:2.25,lineSpacingSm:1.75,size:"lg",sizeSm:"md",children:[n+" "," ",t.jsx("span",{className:"inline",children:a})]}),t.jsx(k,{lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:e})]}),t.jsx(Be,{containerRef:r,id:"desktop"})]}),t.jsx($,{alignSelf:"stretch",display:"flex",id:"carousel",pb:1,pr:2.25,ref:r,scroll:"x",children:t.jsx($,{alignItems:"flex-start",display:"flex",gap:1.5,width:"max-content",children:i.map((o,l)=>t.jsx(ti,{...o},`${l}-${o.title}`))})}),t.jsx(Be,{containerRef:r,id:"mobile"})]})},_e=({buttonProps:e,variant:i})=>t.jsx(D,{onClick:e.onClick,variant:i,children:e.text}),Ua=s.dt.div`
|
|
2031
2031
|
display: flex;
|
|
2032
2032
|
flex-direction: column;
|
|
2033
2033
|
align-items: center;
|
|
@@ -2035,7 +2035,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2035
2035
|
max-width: 900px;
|
|
2036
2036
|
white-space: pre-line;
|
|
2037
2037
|
margin: 0 auto;
|
|
2038
|
-
`,
|
|
2038
|
+
`,Ya=s.dt.div`
|
|
2039
2039
|
display: flex;
|
|
2040
2040
|
flex-direction: row;
|
|
2041
2041
|
justify-content: center;
|
|
@@ -2048,7 +2048,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2048
2048
|
> img {
|
|
2049
2049
|
width: 100%;
|
|
2050
2050
|
}
|
|
2051
|
-
`,
|
|
2051
|
+
`,qa=s.dt.div`
|
|
2052
2052
|
display: flex;
|
|
2053
2053
|
flex-direction: row;
|
|
2054
2054
|
margin: 0;
|
|
@@ -2061,7 +2061,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2061
2061
|
> *:last-child {
|
|
2062
2062
|
margin-right: 0;
|
|
2063
2063
|
}
|
|
2064
|
-
`,
|
|
2064
|
+
`,dt={md:{description:"md",title:"md"},sm:{description:"sm",title:"xs"}},Ka=({cancelButton:e=void 0,confirmButton:i=void 0,description:n,imageSrc:a="integrates/empty/addRoot",padding:r=1.25,title:o,size:l="md"})=>{const c=(i??e)!==void 0;return t.jsxs(Ua,{$padding:r,children:[t.jsx(Ya,{children:t.jsx(q,{alt:"empty-icon",publicId:a})}),t.jsx(W,{fontWeight:"bold",lineSpacing:1.75,mb:.25,size:dt[l].title,textAlign:"center",children:o}),t.jsx(k,{mb:c?2:void 0,size:dt[l].description,textAlign:"center",children:n}),c?t.jsxs(qa,{children:[e&&t.jsx(_e,{buttonProps:e,variant:"tertiary"}),i&&t.jsx(_e,{buttonProps:i,variant:"primary"})]}):void 0]})},Xa=({children:e})=>{const i=s.useFormContext();return e({...i})},Za=s.dt.form`
|
|
2065
2065
|
${({theme:e})=>`
|
|
2066
2066
|
align-items: flex-start;
|
|
2067
2067
|
align-self: stretch;
|
|
@@ -2071,7 +2071,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2071
2071
|
overflow: hidden auto;
|
|
2072
2072
|
width: 100%;
|
|
2073
2073
|
`}
|
|
2074
|
-
`,
|
|
2074
|
+
`,Ja=({alert:e,cancelButton:i,children:n,confirmButton:a,defaultDisabled:r=!0,id:o="modal-confirm",maxButtonWidth:l="392px",mode:c,onSubmit:d,showButtons:p=!0,yupSchema:g,...x})=>{const u=s.nt(),h=s.useForm({...x,mode:c??"all",resolver:g?s.o(g):void 0});return t.jsx(s.FormProvider,{...h,children:t.jsx(Za,{onSubmit:h.handleSubmit(d),children:t.jsxs($,{scroll:"y",width:"100%",children:[t.jsx($,{borderRadius:`0 0 ${u.spacing[.25]} ${u.spacing[.25]}`,display:"flex",flexDirection:"column",gap:.5,height:e?"calc(100% - 139px)":"calc(100% - 83px)",pb:1.5,pt:0,px:1.5,scroll:"y",children:n}),p&&t.jsxs($,{borderRadius:`0 0 ${u.spacing[.25]} ${u.spacing[.25]}`,borderTop:`1px solid ${u.palette.gray[200]}`,display:"flex",flexDirection:"column",gap:.625,position:"sticky",px:1.25,py:1.25,children:[e,t.jsxs($,{display:"flex",gap:.75,maxWidth:l,children:[i?t.jsx(D,{icon:i.icon,id:`${o}-cancel`,justify:"center",onClick:i.onClick,type:"reset",variant:"tertiary",width:"100%",children:i.label??"Cancel"}):void 0,t.jsx(D,{disabled:((a==null?void 0:a.disabled)??!1)||h.formState.isSubmitting||r&&!h.formState.isDirty,icon:a==null?void 0:a.icon,id:o,justify:"center",type:"submit",width:"100%",children:(a==null?void 0:a.label)??"Confirm"})]})]})]})})})},Qa=s.dt(ue)`
|
|
2075
2075
|
display: grid;
|
|
2076
2076
|
gap: ${({$gap:e=1.25})=>`${e}rem`};
|
|
2077
2077
|
grid-template-columns: ${({$sm:e})=>`repeat(${e}, 1fr)`};
|
|
@@ -2089,7 +2089,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2089
2089
|
grid-template-columns: repeat(${i}, 1fr);
|
|
2090
2090
|
}
|
|
2091
2091
|
`}
|
|
2092
|
-
`,
|
|
2092
|
+
`,er=f.forwardRef(function({children:i,md:n,sm:a,lg:r,xl:o,gap:l,...c},d){return t.jsx(Qa,{$gap:l,$lg:r,$md:n,$sm:a,$xl:o,ref:d,...c,children:i})}),tr=s.dt.div`
|
|
2093
2093
|
${({theme:e,$itemsLength:i})=>`
|
|
2094
2094
|
display: flex;
|
|
2095
2095
|
background-color: ${e.palette.white};
|
|
@@ -2108,7 +2108,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2108
2108
|
width: 507px;
|
|
2109
2109
|
}
|
|
2110
2110
|
`}
|
|
2111
|
-
`,
|
|
2111
|
+
`,Ze=s.dt.div`
|
|
2112
2112
|
${({theme:e,$isSelected:i})=>`
|
|
2113
2113
|
align-items: center;
|
|
2114
2114
|
background-color: ${i?e.palette.gray[100]:e.palette.white};
|
|
@@ -2125,7 +2125,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2125
2125
|
background-color: ${e.palette.gray[100]};
|
|
2126
2126
|
}
|
|
2127
2127
|
`}
|
|
2128
|
-
`,
|
|
2128
|
+
`,ii=({isSelected:e=!1,label:i,onSelect:n})=>{const a=s.nt(),r=f.useCallback(()=>{n&&n(i)},[n,i]);return t.jsxs(Ze,{$isSelected:e,onClick:r,children:[e?t.jsx(S,{icon:"check",iconColor:a.palette.gray[800],iconSize:"xs"}):null,t.jsx(k,{color:a.palette.gray[800],fontWeight:"bold",size:"sm",children:i})]})},ir=({isOpen:e=!0,items:i,handleNewOrganization:n,onSelect:a,onClose:r,selectedItem:o,title:l,variant:c})=>{const d=s.nt(),[p,g]=f.useState(i),[x,u]=f.useState(""),h=f.useCallback(m=>{g(w=>w.filter(j=>String(j.name).toLowerCase().includes(m.toLocaleLowerCase())))},[g]),y=f.useCallback(m=>{m.currentTarget&&(u(m.currentTarget.value),h(m.currentTarget.value))},[u,h]);f.useEffect(()=>{g(i),h(x)},[i,h,x]);const b=t.jsx($,{"aria-modal":"true",className:"comp-modal fixed inset-0 overflow-auto",zIndex:99999,children:t.jsx($,{alignItems:"center",bgColor:"rgb(52 64 84 / 70%)",display:"flex",height:"100vh",justify:"center",left:"0",top:"0",width:"100%",children:t.jsxs(tr,{$itemsLength:p.length,children:[t.jsxs($,{alignItems:"center",display:"flex",justify:"space-between",children:[t.jsx(k,{color:d.palette.gray[800],fontWeight:"bold",size:"lg",children:l}),t.jsx(B,{icon:"xmark",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:r,variant:"ghost"})]}),t.jsx($,{mt:1,children:t.jsx(re,{onInput:y,placeholder:"Search"})}),t.jsx(J,{mb:1,mt:1}),t.jsxs($,{display:"inline-flex",gap:1,maxHeight:"332px",scroll:"y",wrap:"wrap",children:[c==="organization-selector"?t.jsx(Ze,{onClick:n,children:t.jsxs($,{alignItems:"center",display:"flex",children:[t.jsx(S,{icon:"square-plus",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",mr:.5}),t.jsx(k,{color:d.palette.gray[400],size:"sm",children:"New organization"})]})}):void 0,p.map(m=>t.jsx(ii,{isSelected:o.toLowerCase()===m.name,label:m.name.charAt(0).toUpperCase()+m.name.slice(1),onSelect:a},m.name))]})]})})});return e?G.createPortal(b,document.body):t.jsx("div",{})},nr=({description:e,height:i="auto",leftIconName:n,children:a,rightIconName:r,title:o,tooltipId:l,tooltipTip:c,tooltipPlace:d="bottom",variant:p="centered",width:g="318px"})=>{const x=s.nt(),u=p==="centered",h=l&&t.jsx(V,{icon:r??n,iconColor:x.palette.gray[800],id:l,place:d,tip:c});return t.jsxs($,{alignItems:u?"center":"flex-start",bgColor:x.palette.gray[50],border:`1px solid ${x.palette.gray[200]}`,borderRadius:"4px",display:"inline-flex",flexDirection:u?"column":"column-reverse",gap:.5,height:i,justify:"center",padding:[1.25,1.25,1.25,1.25],width:g,children:[t.jsxs($,{alignItems:"center",display:"flex",gap:.5,children:[u||s.lodashExports.isUndefined(n)?void 0:h,t.jsx(k,{color:u?x.palette.gray[800]:x.palette.gray[400],size:"md",textAlign:u?"center":"start",children:e}),u||s.lodashExports.isUndefined(r)?void 0:h]}),t.jsxs($,{alignItems:"center",display:"flex",gap:.5,my:.5,children:[u&&!s.lodashExports.isUndefined(n)?h:void 0,t.jsxs("div",{style:{display:"flex",gap:"12px"},children:[s.lodashExports.isUndefined(o)?void 0:t.jsx(W,{fontWeight:"bold",size:"md",children:o}),a]}),u&&!s.lodashExports.isUndefined(r)?h:void 0]})]})},ar=({actions:e,children:i,header:n,title:a,tabs:r,footer:o})=>{const l=s.nt();return t.jsxs($,{alignItems:"flex-start",bgColor:l.palette.white,borderLeft:`1px solid ${l.palette.gray[300]}`,display:"flex",flexDirection:"column",maxHeight:"750px",width:"480px",children:[t.jsxs($,{alignItems:"flex-start",alignSelf:"stretch",borderBottom:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.25,justify:"space-between",px:1.25,py:1,children:[t.jsxs($,{display:"flex",flexDirection:"column",gap:.25,children:[t.jsx(k,{color:l.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:a}),n]}),e&&t.jsx($,{display:"flex",gap:.25,children:e.map(({icon:c,onClick:d},p)=>t.jsx(B,{icon:c??"paper-plane",iconColor:l.palette.gray[400],iconSize:"xxs",iconType:"fa-light",onClick:d,variant:"ghost"},`${p}-${c}`))})]}),t.jsx($,{display:"flex",pt:.25,width:"100%",children:t.jsx(Xe,{items:r})}),t.jsx($,{alignSelf:"stretch",display:"flex",flexDirection:"column",px:1.25,py:1,scroll:"y",children:i}),o&&t.jsx($,{alignSelf:"stretch",borderTop:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.5,justify:"end",px:1.25,py:1,children:o.map(({icon:c,text:d,onClick:p},g)=>t.jsx(D,{icon:c,onClick:p,variant:g===0?"primary":"tertiary",width:"100%",children:d},`${g}-${d}`))})]})},rr=s.dt.div`
|
|
2129
2129
|
${({theme:e})=>`
|
|
2130
2130
|
align-items: flex-start;
|
|
2131
2131
|
backdrop-filter: blur(3.15px);
|
|
@@ -2177,7 +2177,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2177
2177
|
}
|
|
2178
2178
|
}
|
|
2179
2179
|
`}
|
|
2180
|
-
`,
|
|
2180
|
+
`,or=s.dt.div`
|
|
2181
2181
|
align-items: center;
|
|
2182
2182
|
position: absolute;
|
|
2183
2183
|
justify-content: center;
|
|
@@ -2191,7 +2191,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2191
2191
|
height: 260px;
|
|
2192
2192
|
width: 260px;
|
|
2193
2193
|
}
|
|
2194
|
-
`,
|
|
2194
|
+
`,ni=({icon:e})=>t.jsx(or,{children:t.jsx(S,{icon:e,iconColor:z.palette.white,iconSize:"xs",iconTransform:"shrink-2",iconType:"fa-light"})}),sr=({category:e,description:i,href:n,icon:a,location:r,title:o})=>{const l=s.nt();return t.jsxs(rr,{children:[t.jsxs($,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:1.5,height:"100%",id:"uncover",justify:"space-between",children:[t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx(k,{color:l.palette.white,size:"sm",sizeSm:"xs",children:e}),t.jsx(W,{color:l.palette.white,fontWeight:"bold",lineSpacing:2.25,lineSpacingSm:1.75,size:"lg",sizeSm:"md",children:o})]}),t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx(k,{color:l.palette.white,size:"sm",sizeSm:"xs",children:"Location"}),t.jsx(k,{color:l.palette.white,fontWeight:"bold",lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:r})]})]}),t.jsxs($,{alignItems:"self-start",display:"flex",flexDirection:"column",gap:2,height:"100%",id:"hovered",justify:"space-between",pt:1,children:[t.jsx(W,{color:l.palette.white,fontWeight:"bold",lineSpacing:1.75,lineSpacingSm:1.5,size:"md",sizeSm:"sm",children:o}),t.jsxs("div",{className:"flex flex-col gap-8",children:[t.jsx(k,{color:l.palette.gray[100],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:i}),t.jsx(D,{external:!0,href:n,variant:"link",width:"max-content",children:"Download now"})]})]}),t.jsx(ni,{icon:a})]})},lr=s.dt.button`
|
|
2195
2195
|
${({theme:e})=>`
|
|
2196
2196
|
align-items: center;
|
|
2197
2197
|
border-left: 3px solid transparent;
|
|
@@ -2234,7 +2234,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2234
2234
|
}
|
|
2235
2235
|
}
|
|
2236
2236
|
`}
|
|
2237
|
-
`,
|
|
2237
|
+
`,cr=s.dt.div`
|
|
2238
2238
|
${({theme:e})=>`
|
|
2239
2239
|
align-items: center;
|
|
2240
2240
|
background-color: transparent;
|
|
@@ -2264,7 +2264,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2264
2264
|
color: ${e.palette.gray[800]};
|
|
2265
2265
|
}
|
|
2266
2266
|
`}
|
|
2267
|
-
`,
|
|
2267
|
+
`,dr=s.dt.div`
|
|
2268
2268
|
${({theme:e})=>`
|
|
2269
2269
|
background-color: ${e.palette.white};
|
|
2270
2270
|
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
@@ -2279,7 +2279,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2279
2279
|
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
2280
2280
|
}
|
|
2281
2281
|
`}
|
|
2282
|
-
`,
|
|
2282
|
+
`,pr=s.dt.div`
|
|
2283
2283
|
${({theme:e})=>`
|
|
2284
2284
|
align-items: flex-start;
|
|
2285
2285
|
cursor: pointer;
|
|
@@ -2301,11 +2301,11 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2301
2301
|
}
|
|
2302
2302
|
}
|
|
2303
2303
|
`}
|
|
2304
|
-
`,
|
|
2304
|
+
`,ai=({disabled:e=!1,mode:i,onClick:n,text:a})=>t.jsx(lr,{className:`${e&&"disabled"} ${i}`,disabled:e,onClick:n,children:t.jsx(k,{color:"inherit",size:"sm",sizeSm:"xs",children:a})}),gr=[{text:"EN"},{text:"ES"}],xr=({items:e,handleClick:i,mode:n="light"})=>{const a=e??gr,[r,o]=f.useState(a[0].text),l=f.useCallback(c=>()=>{i(c.text),o(c.text)},[i]);return t.jsxs(pr,{children:[t.jsxs(cr,{className:n,children:[t.jsx(S,{icon:"globe",iconSize:"xs",iconType:"fa-light"}),r]}),t.jsx(dr,{children:a.map((c,d)=>t.jsx(ai,{disabled:c.disabled,mode:n,onClick:l(c),text:c.text},`${c.text}_${d}`))})]})},ur=s.dt.div.attrs({className:"flex flex-wrap justify-center pv3 w-100"})``,fr=s.dt.div.attrs({className:"flex flex-wrap items-center justify-start mb2"})`
|
|
2305
2305
|
gap: 12px;
|
|
2306
|
-
`,
|
|
2306
|
+
`,hr=s.dt.div.attrs({className:"flex flex-wrap items-center justify-end mb2"})`
|
|
2307
2307
|
gap: 8px;
|
|
2308
|
-
`,we=e=>e===void 0?"flex-grow: 1;":`width: calc(${e}00% / var(--cols));`,
|
|
2308
|
+
`,we=e=>e===void 0?"flex-grow: 1;":`width: calc(${e}00% / var(--cols));`,br=s.dt.div.attrs({className:"comp-col"})`
|
|
2309
2309
|
word-wrap: break-word;
|
|
2310
2310
|
|
|
2311
2311
|
${({$width:e=null})=>e===null?"":`width: ${e}`};
|
|
@@ -2329,7 +2329,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2329
2329
|
> .comp-card {
|
|
2330
2330
|
height: 100%;
|
|
2331
2331
|
}
|
|
2332
|
-
`,
|
|
2332
|
+
`,yr=({children:e,xl:i,lg:n,md:a,sm:r,paddingTop:o,width:l})=>t.jsx(br,{$lg:n,$md:a,$paddingTop:o,$sm:r,$width:l,$xl:i,children:e}),$r=s.dt.div.attrs({className:"comp-gap"})`
|
|
2333
2333
|
${({$disp:e="flex",$mh:i=4,$mv:n=4})=>`
|
|
2334
2334
|
align-items: center;
|
|
2335
2335
|
display: ${e};
|
|
@@ -2339,7 +2339,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2339
2339
|
margin: ${n}px ${i}px;
|
|
2340
2340
|
}
|
|
2341
2341
|
`}
|
|
2342
|
-
`,
|
|
2342
|
+
`,mr=({children:e,disp:i,mh:n,mv:a})=>t.jsx($r,{$disp:i,$mh:n,$mv:a,children:e}),wr=s.dt.div.attrs({className:"comp-row flex flex-row flex-wrap"})`
|
|
2343
2343
|
${({$align:e="stretch",$cols:i=100,$colsPadding:n=6,$justify:a="start"})=>`
|
|
2344
2344
|
align-items: ${e};
|
|
2345
2345
|
justify-content: ${a};
|
|
@@ -2357,7 +2357,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2357
2357
|
padding: ${n}px;
|
|
2358
2358
|
}
|
|
2359
2359
|
`}
|
|
2360
|
-
`,
|
|
2360
|
+
`,jr=({align:e,children:i,cols:n,colsPadding:a,justify:r})=>t.jsx(wr,{$align:e,$cols:n,$colsPadding:a,$justify:r,children:i}),vr=s.dt.span`
|
|
2361
2361
|
${({theme:e,$bgColor:i=e.palette.secondary[500],$txtDecoration:n="none"})=>`
|
|
2362
2362
|
background-color: ${i};
|
|
2363
2363
|
border-radius: 5px;
|
|
@@ -2366,14 +2366,14 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2366
2366
|
padding: ${e.spacing[.125]} ${e.spacing[.25]} ${e.spacing[.125]} ${e.spacing[.25]};
|
|
2367
2367
|
text-decoration: ${n}
|
|
2368
2368
|
`}
|
|
2369
|
-
`,
|
|
2369
|
+
`,kr=({bgColor:e,children:i,txtDecoration:n,ml:a=1})=>t.jsx(vr,{$bgColor:e,$txtDecoration:n,className:`ml-${a}`,children:i}),Cr={lg:"56",md:"30",sm:"12"},{getVariant:Sr}=U(e=>({red:`stroke: ${e.palette.primary[500]};`,white:`stroke: ${e.palette.white};`})),zr=s.mt`
|
|
2370
2370
|
0% {
|
|
2371
2371
|
transform: rotateZ(0deg);
|
|
2372
2372
|
}
|
|
2373
2373
|
100% {
|
|
2374
2374
|
transform: rotateZ(360deg)
|
|
2375
2375
|
}
|
|
2376
|
-
`,
|
|
2376
|
+
`,Ir=s.mt`
|
|
2377
2377
|
0%,
|
|
2378
2378
|
25% {
|
|
2379
2379
|
stroke-dashoffset: 280;
|
|
@@ -2390,16 +2390,16 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2390
2390
|
stroke-dashoffset: 280;
|
|
2391
2391
|
transform: rotate(360deg);
|
|
2392
2392
|
}
|
|
2393
|
-
`,
|
|
2393
|
+
`,Tr=s.dt.svg`
|
|
2394
2394
|
${({$size:e="md"})=>s.lt`
|
|
2395
|
-
animation: ${
|
|
2395
|
+
animation: ${zr} 2s linear infinite;
|
|
2396
2396
|
animation-timing-function: linear;
|
|
2397
2397
|
display: inline-block;
|
|
2398
|
-
width: ${
|
|
2398
|
+
width: ${Cr[e]}px;
|
|
2399
2399
|
`}
|
|
2400
|
-
`,
|
|
2400
|
+
`,Fr=s.dt.circle`
|
|
2401
2401
|
${({theme:e,$color:i="red"})=>s.lt`
|
|
2402
|
-
animation: 1.4s ease-in-out infinite both ${
|
|
2402
|
+
animation: 1.4s ease-in-out infinite both ${Ir};
|
|
2403
2403
|
display: block;
|
|
2404
2404
|
fill: transparent;
|
|
2405
2405
|
stroke-linecap: round;
|
|
@@ -2408,9 +2408,9 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2408
2408
|
stroke-width: 10px;
|
|
2409
2409
|
transform-origin: 50% 50%;
|
|
2410
2410
|
|
|
2411
|
-
${
|
|
2411
|
+
${Sr(e,i)}
|
|
2412
2412
|
`}
|
|
2413
|
-
`,
|
|
2413
|
+
`,Nr=s.dt.circle`
|
|
2414
2414
|
display: block;
|
|
2415
2415
|
fill: transparent;
|
|
2416
2416
|
stroke: ${({theme:e})=>e.palette.gray[200]};
|
|
@@ -2418,13 +2418,13 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2418
2418
|
stroke-width: 10px;
|
|
2419
2419
|
transform-origin: 50% 50%;
|
|
2420
2420
|
opacity: ${({$color:e})=>e==="white"?"20%":"unset"};
|
|
2421
|
-
`,
|
|
2421
|
+
`,Er=({color:e="red",label:i,size:n})=>{const a=s.nt();return t.jsxs($,{alignItems:"center",display:"flex",children:[t.jsxs(Tr,{$size:n,viewBox:"0 0 100 100",children:[t.jsx(Nr,{$color:e,cx:"50",cy:"50",r:"45"}),t.jsx(Fr,{$color:e,cx:"50",cy:"50",r:"45"})]}),i&&t.jsx(k,{color:e==="red"?a.palette.gray[700]:a.palette.white,ml:.5,size:"sm",children:i})]})},Rr=s.dt.div`
|
|
2422
2422
|
display: flex;
|
|
2423
2423
|
height: 80px;
|
|
2424
2424
|
max-width: 1440px;
|
|
2425
2425
|
overflow: hidden;
|
|
2426
2426
|
position: relative;
|
|
2427
|
-
`,
|
|
2427
|
+
`,pt=s.dt.div`
|
|
2428
2428
|
height: 79px;
|
|
2429
2429
|
width: 64px;
|
|
2430
2430
|
flex-shrink: 0;
|
|
@@ -2448,7 +2448,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2448
2448
|
);
|
|
2449
2449
|
right: 0;
|
|
2450
2450
|
}
|
|
2451
|
-
`,
|
|
2451
|
+
`,Dr=s.dt.div`
|
|
2452
2452
|
display: flex;
|
|
2453
2453
|
gap: 40px;
|
|
2454
2454
|
animation: clients-animation 50s linear infinite;
|
|
@@ -2463,7 +2463,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2463
2463
|
transform: translateX(calc(-180px * 15));
|
|
2464
2464
|
}
|
|
2465
2465
|
}
|
|
2466
|
-
`,
|
|
2466
|
+
`,Lr=["airs/clients-carousel/color/bancolombia","airs/clients-carousel/color/itau_colombia","airs/clients-carousel/color/lulo_bank","airs/clients-carousel/color/oxxo_international","airs/clients-carousel/color/interbank","airs/clients-carousel/color/global_bank","airs/clients-carousel/color/gesa","airs/clients-carousel/color/copa_airlines","airs/clients-carousel/color/consubanco","airs/clients-carousel/color/bantrab","airs/clients-carousel/color/banistmo","airs/clients-carousel/color/banco_internacional","airs/clients-carousel/color/banco_general","airs/clients-carousel/color/banbif","airs/clients-carousel/color/avianca"],Pr=({fusion:e=!1,logos:i=Lr})=>t.jsxs(Rr,{children:[e&&t.jsx(pt,{className:"left"}),t.jsx(Dr,{children:[...i,...i].map((n,a)=>t.jsx(q,{alt:`${n}-${a}`,height:"80px",plugins:[s.placeholder()],publicId:n,width:"140px"},`${n}-${a}`))}),e&&t.jsx(pt,{className:"right"})]}),Ar={company:{height:"83px",width:"460px"},footer:{height:"57px",width:"315px"},header:{height:"35px",width:"160px"},icon:{height:"40px",width:"40px"},inline:{width:"150px"}},Wr=({publicId:e,variant:i})=>t.jsx($,{...Ar[i],children:t.jsx(q,{alt:"logo",publicId:e})}),Br=({children:e,commitSha:i,commitShortSha:n,parentElement:a,userInfo:r,setVisibility:o})=>{const l=s.nt(),{userName:c,email:d,phone:p,userRole:g}=r;return he(a,()=>{o(!1)}),t.jsxs(Mt,{children:[t.jsx("li",{className:"user-info",children:t.jsxs($,{display:"inline-flex",gap:.25,width:"100%",children:[t.jsxs($,{display:"flex",flexDirection:"column",gap:.25,width:"100%",children:[t.jsx(k,{color:l.palette.gray[800],fontWeight:"bold",size:"sm",children:c}),t.jsx(k,{color:l.palette.gray[400],size:"sm",children:d}),s.lodashExports.isUndefined(p)?void 0:t.jsx(k,{color:l.palette.gray[400],size:"sm",children:p})]}),t.jsx($,{children:t.jsx(Y,{tagLabel:g,variant:"role"})})]})}),t.jsx(J,{}),e,t.jsx(J,{}),t.jsx("li",{className:"commit-info",children:t.jsx(X,{href:`https://gitlab.com/fluidattacks/universe/-/tree/${i}`,iconPosition:"hidden",children:t.jsx(k,{color:l.palette.gray[400],size:"xs",children:`commit : ${n}`})})})]})},Or=s.dt.button`
|
|
2467
2467
|
align-items: center;
|
|
2468
2468
|
background-color: transparent;
|
|
2469
2469
|
border: unset;
|
|
@@ -2474,13 +2474,13 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2474
2474
|
padding: 0;
|
|
2475
2475
|
|
|
2476
2476
|
&:hover p {
|
|
2477
|
-
color: ${
|
|
2477
|
+
color: ${z.palette.primary[200]};
|
|
2478
2478
|
}
|
|
2479
2479
|
|
|
2480
2480
|
&:hover span {
|
|
2481
|
-
color: ${
|
|
2481
|
+
color: ${z.palette.primary[200]};
|
|
2482
2482
|
}
|
|
2483
|
-
`,
|
|
2483
|
+
`,_r=({message:e,onClickButton:i,buttonText:n,buttonFontWeight:a="regular",icon:r,onClose:o,buttonSide:l="end"})=>{const c=s.nt(),[d,p]=f.useState(!0),g=f.useCallback(()=>{p(!1),o==null||o()},[o]),x=t.jsxs(Or,{onClick:i,children:[t.jsx(k,{color:c.palette.white,fontWeight:a,size:"sm",textDecoration:"underline",children:n}),t.jsx(S,{icon:r??"arrow-right",iconColor:c.palette.white,iconSize:"xs",iconType:a==="bold"?"fa-regular":"fa-light"})]});return t.jsxs($,{alignItems:"center",bgGradient:c.palette.gradients["01"],display:d?"flex":"none",id:"message-banner",justify:"space-between",padding:[.75,.75,.75,.75],children:[t.jsxs($,{display:"flex",gap:.5,justify:"center",width:"100%",children:[l==="start"&&i?x:void 0,t.jsx($,{children:typeof e=="string"?t.jsx(k,{color:c.palette.white,display:"inline",size:"sm",children:e}):e}),l==="end"&&i?x:void 0]}),t.jsx(S,{clickable:!0,hoverColor:c.palette.primary[200],icon:"close",iconColor:c.palette.white,iconSize:"xs",iconType:"fa-light",onClick:g})]})},Hr=s.dt.div`
|
|
2484
2484
|
${({theme:e,$variant:i})=>`
|
|
2485
2485
|
background: ${e.palette.white};
|
|
2486
2486
|
border: 1px solid ${e.palette.gray[200]};
|
|
@@ -2499,7 +2499,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2499
2499
|
right: 16px;
|
|
2500
2500
|
}
|
|
2501
2501
|
`}
|
|
2502
|
-
`,
|
|
2502
|
+
`,Mr=s.dt.div`
|
|
2503
2503
|
${({theme:e,$variant:i})=>`
|
|
2504
2504
|
height: ${e.spacing[2.5]};
|
|
2505
2505
|
width: ${e.spacing[2.5]};
|
|
@@ -2530,7 +2530,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2530
2530
|
color: ${e.palette[i][500]};
|
|
2531
2531
|
}
|
|
2532
2532
|
`}
|
|
2533
|
-
`,
|
|
2533
|
+
`,Vr=e=>e==="warning"?"triangle-exclamation":e==="info"?"circle-info":e==="success"?"circle-check":"circle-exclamation",Gr=({description:e,onClose:i,title:n,variant:a})=>{const r=s.nt(),o=f.useCallback(()=>{i==null||i()},[i]);return t.jsxs(Hr,{$variant:a,className:`notification notification__${a}`,role:"alertdialog",children:[t.jsxs(Mr,{$variant:a,children:[t.jsx(S,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),t.jsx(S,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),t.jsx(S,{icon:Vr(a),iconClass:"icon",iconSize:"xs",iconType:"fa-light"})]}),t.jsxs($,{pr:1.5,children:[t.jsx(W,{fontWeight:"bold",size:"xs",children:n}),t.jsx(k,{size:"sm",whiteSpace:"break-spaces",wordWrap:"break-word",children:e})]}),t.jsx(B,{height:"fit-content",icon:"close",iconColor:r.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:o,px:.125,py:.125,variant:"ghost"})]})},Ur=s.dt.div`
|
|
2534
2534
|
width: fit-content;
|
|
2535
2535
|
border: ${({theme:e})=>`1px solid ${e.palette.gray[300]}`};
|
|
2536
2536
|
border-radius: 4px;
|
|
@@ -2543,7 +2543,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2543
2543
|
align-items: center;
|
|
2544
2544
|
justify-content: center;
|
|
2545
2545
|
padding: 0.5em;
|
|
2546
|
-
`,
|
|
2546
|
+
`,Yr=s.dt.input`
|
|
2547
2547
|
width: 4em;
|
|
2548
2548
|
appearance: textfield;
|
|
2549
2549
|
border-style: none;
|
|
@@ -2563,7 +2563,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2563
2563
|
&::-webkit-inner-spin-button {
|
|
2564
2564
|
opacity: 1;
|
|
2565
2565
|
}
|
|
2566
|
-
`,
|
|
2566
|
+
`,qr=f.forwardRef(function({autoUpdate:i=!1,decimalPlaces:n=0,defaultValue:a=0,max:r,min:o,name:l,onEnter:c,tooltipMessage:d,...p},g){const x=n<0?0:n,[u,h]=f.useState(Number(a).toFixed(x)),y=f.useCallback(w=>{const j=s.lodashExports.toNumber(w.target.value);w.target.value.endsWith(".")?h(w.target.value):j>=Number(o)&&j<=Number(r)&&(h(String(j)),i&&c(s.lodashExports.toNumber(j.toFixed(x)))),w.stopPropagation()},[i,x,r,o,c]),b=f.useCallback(w=>{w.currentTarget.contains(w.relatedTarget)||h(Number(a).toFixed(x)),w.stopPropagation()},[x,a]),m=f.useCallback(w=>{w.stopPropagation(),w.key==="Enter"&&!s.lodashExports.isEmpty(w.currentTarget.value)&&c(s.lodashExports.toNumber(w.currentTarget.value))},[c]);return t.jsx(Ur,{onBlur:b,tabIndex:-1,children:t.jsx(V,{id:"numberInputTooltip",tip:d,children:t.jsx(Yr,{...p,"aria-label":l,"aria-valuemax":Number(r),"aria-valuemin":Number(o),"aria-valuenow":Number(u),max:r,min:o,name:l,onChange:y,onKeyUp:m,ref:g,step:10**-x,type:"number",value:u})})})}),Kr={Azure:"integrates/autoenrollment/azureIcon",Bitbucket:"integrates/autoenrollment/bitbucketLogo",GitHub:"integrates/autoenrollment/githubLogo",GitLab:"integrates/autoenrollment/gitlabIcon"},He=({icon:e,label:i,onClick:n,onlyLabel:a=!1,provider:r="GitLab"})=>{const o=s.nt();return t.jsxs($,{alignItems:"center",bgColorHover:o.palette.gray[100],borderRadius:"4px",cursor:"pointer",display:"flex",flexDirection:"column",gap:.25,height:"62px",justify:"center",minWidth:"64px",onClick:n,pb:.5,pl:.25,pr:.25,pt:.5,children:[a?!1:t.jsx($,{height:"24px",width:"24px",children:e===void 0?t.jsx(q,{alt:`${r} Logo`,height:"100%",publicId:Kr[r],width:"100%"}):t.jsx(S,{icon:e,iconColor:"#000",iconSize:"sm",iconType:"fa-light"})}),t.jsx($,{alignItems:"center",display:"flex",minWidth:"24px",children:t.jsx(k,{color:o.palette.gray[800],display:"inline",size:"xs",textAlign:"center",whiteSpace:a?"break-spaces":"nowrap",wordWrap:"unset",children:i??r})})]})},Xr=({align:e="end",buttonLabel:i="Add Credential",children:n,id:a,manualOption:r,providers:o})=>{const l=s.nt(),[c,d]=f.useState(!1),p=f.useRef(null);he(p.current,()=>{d(!1)},!0);const g=f.useCallback(h=>{r==null||r.onClick(h),d(!1)},[r]),x=f.useCallback(()=>{d(h=>!h)},[d]),u=f.useCallback(h=>y=>{var b;(b=o[h])==null||b.onClick(y),d(!1)},[o]);return t.jsxs($,{alignItems:e,display:"flex",flexDirection:"column",position:"relative",ref:p,width:"max-content",zIndex:10,children:[t.jsx(D,{icon:"plus",onClick:x,variant:"primary",children:i}),t.jsxs($,{alignItems:"center",bgColor:"#fff",border:`1px solid ${l.palette.gray[200]}`,borderRadius:"4px",display:"flex",gap:.5,height:"78px",id:a,pb:.5,pl:.75,position:"absolute",pr:.75,pt:.5,shadow:"md",top:"40px",visibility:c?"visible":"hidden",zIndex:10,children:[Object.keys(o).map(h=>t.jsx(He,{onClick:u(h),provider:h},h)),r===void 0?void 0:t.jsx(He,{icon:"square-plus",label:r.label??"Add manually",onClick:g}),n]})]})},ri=t.jsx($,{alignItems:"center",bgColor:z.palette.primary[25],borderRadius:"8px",gap:.5,justify:"center",padding:[.125,.25,.125,.25],width:"max-content",children:t.jsx(k,{bgGradient:z.palette.gradients["01"],fontWeight:"semibold",size:"xs",textFill:"transparent",children:"Recommended"})}),Zr=s.dt.div`
|
|
2567
2567
|
${({className:e,theme:i})=>`
|
|
2568
2568
|
align-items: flex-start;
|
|
2569
2569
|
border-radius: ${i.spacing[1]};
|
|
@@ -2628,8 +2628,8 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2628
2628
|
width: 320px;
|
|
2629
2629
|
}
|
|
2630
2630
|
`}
|
|
2631
|
-
`;const
|
|
2632
|
-
through our scanning tool.`,priceAuthor:"$499",priceGroup:"$1,579"}},
|
|
2631
|
+
`;const Jr={advanced:{title:"Advanced plan",benefits:"Leverage vulnerability scanning + AI + expert intelligence",buttonText:"Contact sales",description:"For teams that want to discover risk exposure with speed and accuracy.",priceGroup:"$1,579"},essential:{title:"Essential plan",benefits:"Leverage vulnerability scanning",buttonText:"Start a 21-day free trial",description:`For teams that want to discover risk exposure quickly
|
|
2632
|
+
through our scanning tool.`,priceAuthor:"$499",priceGroup:"$1,579"}},Qr=({description:e,onClick:i,plan:n})=>{const{title:a,description:r,benefits:o,buttonText:l}=Jr[n],c=e??r;return t.jsxs(Zr,{className:n,children:[t.jsxs($,{display:"flex",flexDirection:"column",gap:.25,pt:n==="essential"?1.75:0,children:[n==="advanced"&&ri,t.jsx(W,{color:z.palette.gray[900],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:a}),t.jsx(k,{color:z.palette.gray[400],fontWeight:"semibold",pb:n==="essential"?1.25:0,size:"sm",sizeSm:"xs",children:o})]}),t.jsx(k,{lineSpacing:1.5,lineSpacingSm:1.25,pb:n==="advanced"?1.5:0,size:"md",sizeSm:"sm",children:c}),t.jsx(D,{onClick:i,variant:"primary",children:l})]})},oi=({description:e="",highlightDescription:i=""})=>{const n=s.nt(),a=typeof i=="string",r=a?"":new RegExp(`(${i.join("|")})`,"u");return i.length>0?t.jsx(k,{display:"inline",lineSpacing:1.5,size:"lg",textAlign:"center",children:a?t.jsxs(f.Fragment,{children:[t.jsx(ne,{color:n.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:i}),e]}):e.split(r).map((o,l)=>i.includes(o)?t.jsx(ne,{color:n.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:o},`${l+1}-bold`):o)}):t.jsx(k,{lineSpacing:1.5,size:"lg",textAlign:"center",children:e})},eo=({_portal:e=!1,cancelButton:i,darkBackground:n=!1,children:a,confirmButton:r,container:o,description:l,highlightDescription:c="",image:d,maxWidth:p,title:g,titleColor:x})=>{const u=s.nt(),{alt:h,src:y,width:b="77px",height:m="77px"}=d,w=f.useCallback(()=>{i==null||i.onClick()},[i]),j=f.useCallback(()=>{r==null||r.onClick()},[r]),I=t.jsx($,{alignItems:"center","aria-label":g,"aria-modal":"true",bgColor:n?"rgba(52, 64, 84, 70%)":"",display:"flex",height:"100vh",justify:"center",left:"0",position:e?"fixed":"absolute",top:"0px",width:"100%",zIndex:99999,children:t.jsxs($,{bgColor:u.palette.white,border:`1px solid ${u.palette.gray[200]}`,borderRadius:"8px",display:"inline-flex",flexDirection:"column",maxWidth:p,pb:2.5,pl:2.5,pr:2.5,pt:2.5,shadow:"lg",width:"100%",zIndex:11,children:[t.jsxs($,{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",children:[t.jsx($,{children:t.jsx(q,{alt:h,height:m,publicId:y,width:b})}),t.jsxs($,{display:"flex",flexDirection:"column",gap:.5,mb:1.5,mt:1.5,children:[t.jsx(W,{color:x,fontWeight:"bold",lineSpacing:2.5,size:"lg",textAlign:"center",children:g}),t.jsx(oi,{description:l,highlightDescription:c})]})]}),a&&t.jsx($,{mb:1,scroll:"y",children:t.jsx($,{height:"100%",children:a})}),t.jsxs($,{alignItems:"flex-start",display:"flex",gap:1,justify:"center",children:[s.lodashExports.isObject(r)?t.jsx(D,{onClick:j,variant:(r==null?void 0:r.variant)??"primary",children:r==null?void 0:r.text},r==null?void 0:r.key):void 0,s.lodashExports.isObject(i)?t.jsx(D,{onClick:w,variant:(i==null?void 0:i.variant)??"tertiary",children:i==null?void 0:i.text},i==null?void 0:i.key):void 0]})]})});return e?G.createPortal(I,o??document.body):I},to=s.dt.div`
|
|
2633
2633
|
${({theme:e})=>`
|
|
2634
2634
|
height: ${e.spacing[1]};
|
|
2635
2635
|
width: ${e.spacing[1]};
|
|
@@ -2660,7 +2660,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2660
2660
|
font-size: ${e.spacing[.5]};
|
|
2661
2661
|
}
|
|
2662
2662
|
`}
|
|
2663
|
-
`,
|
|
2663
|
+
`,si=({margin:e,onClick:i,text:n})=>{const a=s.nt(),r=t.jsxs(to,{children:[t.jsx(S,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),t.jsx(S,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),t.jsx(S,{icon:"crown",iconClass:"icon",iconSize:"xs"})]});return n!==void 0?t.jsx($,{cursor:"pointer",display:"inline-block",mr:e,onClick:i,children:t.jsxs($,{alignItems:"center",bgColor:a.palette.warning[50],borderRadius:"4px",display:"flex",padding:[.25,.25,.25,.25],width:"fit-content",children:[r,t.jsx(k,{color:a.palette.warning[500],display:"inline",ml:.25,size:"xs",children:n})]})}):t.jsx($,{display:"inline-block",mr:e,onClick:i,children:r})},io=({score:e})=>{const i=s.nt(),n=e<=33?"priority-bars-low":"priority-bars-medium",a=e>66||e===0?"priority-bars-high":n;return t.jsxs($,{alignItems:"center",display:"inline-flex",gap:.25,children:[t.jsx(S,{icon:a,iconClass:e<=66?"fa-kit-duotone":"",iconColor:e>0?i.palette.primary[500]:i.palette.gray[200],iconSize:"xs",iconType:"fa-kit",secondaryColor:i.palette.gray[200]}),t.jsx(k,{color:i.palette.gray[800],size:"sm",textAlign:"right",children:e+"%"})]})},{getVariant:no}=U(e=>({compliance:`
|
|
2664
2664
|
display: inline-flex;
|
|
2665
2665
|
|
|
2666
2666
|
&.horizontal {
|
|
@@ -2718,17 +2718,17 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2718
2718
|
.progress-bar {
|
|
2719
2719
|
background-color: ${e.palette.primary[500]};
|
|
2720
2720
|
}
|
|
2721
|
-
`})),
|
|
2721
|
+
`})),ao=(e,i)=>i<50?e.palette.error[500]:i<80?e.palette.warning[500]:e.palette.success[500],ro=s.dt.div`
|
|
2722
2722
|
${({theme:e,$minWidth:i,$orientation:n,$rounded:a,$variant:r})=>`
|
|
2723
2723
|
background-color: ${e.palette.gray[100]};
|
|
2724
2724
|
border-radius: ${a?"100px":"unset"};
|
|
2725
2725
|
${n==="horizontal"?"min-width":"min-height"}: ${i}px;
|
|
2726
2726
|
${n==="horizontal"?"":"height: 100%;"}
|
|
2727
2727
|
|
|
2728
|
-
${
|
|
2728
|
+
${no(e,r)}
|
|
2729
2729
|
|
|
2730
2730
|
`}
|
|
2731
|
-
`,
|
|
2731
|
+
`,oo=s.dt.div`
|
|
2732
2732
|
${({theme:e,$percentage:i,$rounded:n,$variant:a})=>`
|
|
2733
2733
|
display: inline-flex;
|
|
2734
2734
|
width: ${i}%;
|
|
@@ -2738,217 +2738,14 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2738
2738
|
border-radius: ${n?"100px":"unset"};
|
|
2739
2739
|
border-end-end-radius: ${n&&i<100?"0":"inherit"};
|
|
2740
2740
|
border-start-end-radius: ${n&&i<100?"0":"inherit"};
|
|
2741
|
-
background-color: ${a==="compliance"?
|
|
2741
|
+
background-color: ${a==="compliance"?ao(e,i):"inherit"};
|
|
2742
2742
|
`}
|
|
2743
|
-
`,
|
|
2744
|
-
animation: ${({$animationTime:e})=>`progress-bar ${e}s ease-in-out`};
|
|
2745
|
-
animation-fill-mode: both;
|
|
2746
|
-
|
|
2747
|
-
@keyframes progress-bar {
|
|
2748
|
-
0% {
|
|
2749
|
-
width: 0;
|
|
2750
|
-
}
|
|
2751
|
-
|
|
2752
|
-
100% {
|
|
2753
|
-
width: 100%;
|
|
2754
|
-
}
|
|
2755
|
-
}
|
|
2756
|
-
`,uo=e=>e*1e3/100,xo=({progressTime:e=10,onComplete:i})=>{const n=s.nt(),a=100,[r,o]=u.useState(0);return u.useEffect(()=>{r===a&&(i==null||i())},[r,i]),u.useEffect(()=>{const l=setInterval(()=>{o(c=>c===a?0:c+1)},uo(e));return()=>{clearInterval(l)}},[r,e]),t.jsx(y,{bgColor:n.palette.gray[200],height:"4px",children:t.jsx(go,{$animationTime:e,bgGradient:n.palette.gradients["01"],height:"100%",width:`${r}%`})})},fo=s.dt.div.attrs({className:"comp-scroll-up"})`
|
|
2743
|
+
`,so=({minWidth:e=100,percentage:i,percentageLocation:n="right",showPercentage:a=!1,orientation:r="horizontal",rounded:o=!0,variant:l="default"})=>{const c=a&&n==="left",d=a?t.jsx($,{alignItems:"center",display:"flex",justify:c?"flex-end":"flex-start",width:"40px",children:t.jsx(k,{ml:.5,mr:c?.5:0,size:"sm",children:`${i}%`})}):null,p=t.jsx(ro,{$minWidth:e,$orientation:r,$rounded:o,$variant:l,className:r,children:t.jsx(oo,{$percentage:i,$rounded:o,$variant:l,className:"progress-bar"})});return t.jsxs($,{alignItems:"center",display:"inline-flex",flexDirection:c?"row-reverse":"row",height:r==="horizontal"?"auto":"100%",maxWidth:c?`${e+43}px`:void 0,minWidth:c?`${e+43}px`:void 0,textAlign:"end",children:[p,d]})},lo=s.dt.div.attrs({className:"comp-scroll-up"})`
|
|
2757
2744
|
bottom: 15px;
|
|
2758
2745
|
position: fixed;
|
|
2759
2746
|
right: 140px;
|
|
2760
2747
|
z-index: 100;
|
|
2761
|
-
`,
|
|
2762
|
-
${({theme:e})=>`
|
|
2763
|
-
align-items: center;
|
|
2764
|
-
display: flex;
|
|
2765
|
-
background: ${e.palette.white};
|
|
2766
|
-
border-radius: ${e.spacing[.5]};
|
|
2767
|
-
cursor: pointer;
|
|
2768
|
-
gap: ${e.spacing[1]};
|
|
2769
|
-
padding:
|
|
2770
|
-
${e.spacing[.5]}
|
|
2771
|
-
${e.spacing[1]}
|
|
2772
|
-
${e.spacing[.5]}
|
|
2773
|
-
${e.spacing[.5]};
|
|
2774
|
-
width: 1143px;
|
|
2775
|
-
|
|
2776
|
-
&:hover {
|
|
2777
|
-
background: ${e.palette.gray[100]};
|
|
2778
|
-
|
|
2779
|
-
> div.icon-wrap {
|
|
2780
|
-
background: ${e.palette.gradients["01"]};
|
|
2781
|
-
|
|
2782
|
-
path {
|
|
2783
|
-
fill: ${e.palette.white};
|
|
2784
|
-
}
|
|
2785
|
-
}
|
|
2786
|
-
}
|
|
2787
|
-
|
|
2788
|
-
@media screen
|
|
2789
|
-
and (min-width: ${e.breakpoints.sm})
|
|
2790
|
-
and (max-width: ${e.breakpoints.md})
|
|
2791
|
-
{
|
|
2792
|
-
width: 905px;
|
|
2793
|
-
}
|
|
2794
|
-
|
|
2795
|
-
@media screen
|
|
2796
|
-
and (min-width: 40em)
|
|
2797
|
-
and (max-width: ${e.breakpoints.sm})
|
|
2798
|
-
{
|
|
2799
|
-
width: 475px;
|
|
2800
|
-
}
|
|
2801
|
-
|
|
2802
|
-
@media screen and (max-width: 40em) {
|
|
2803
|
-
width: 270px;
|
|
2804
|
-
}
|
|
2805
|
-
`}
|
|
2806
|
-
`,$o=s.dt.div.attrs({className:"icon-wrap"})`
|
|
2807
|
-
${({theme:e})=>`
|
|
2808
|
-
align-items: center;
|
|
2809
|
-
background: ${e.palette.primary[25]};
|
|
2810
|
-
border-radius: ${e.spacing[.25]};
|
|
2811
|
-
display: flex;
|
|
2812
|
-
justify-content: center;
|
|
2813
|
-
min-width: ${e.spacing[2.5]};
|
|
2814
|
-
height: ${e.spacing[2.5]};
|
|
2815
|
-
padding: ${e.spacing[.5]};
|
|
2816
|
-
|
|
2817
|
-
span {
|
|
2818
|
-
font-size: 20px;
|
|
2819
|
-
}
|
|
2820
|
-
`}
|
|
2821
|
-
`,yo=s.dt.div`
|
|
2822
|
-
${({theme:e})=>`
|
|
2823
|
-
align-items: flex-start;
|
|
2824
|
-
display: flex;
|
|
2825
|
-
flex-direction: column;
|
|
2826
|
-
gap: ${e.spacing[1.5]};
|
|
2827
|
-
width: 1193px;
|
|
2828
|
-
|
|
2829
|
-
> :is(form, .dropdown) {
|
|
2830
|
-
border-radius: ${e.spacing[.5]};
|
|
2831
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
2832
|
-
background-color: ${e.palette.white};
|
|
2833
|
-
}
|
|
2834
|
-
|
|
2835
|
-
@media screen
|
|
2836
|
-
and (min-width: ${e.breakpoints.sm})
|
|
2837
|
-
and (max-width: ${e.breakpoints.md})
|
|
2838
|
-
{
|
|
2839
|
-
width: 954px;
|
|
2840
|
-
}
|
|
2841
|
-
|
|
2842
|
-
@media screen
|
|
2843
|
-
and (min-width: 40em)
|
|
2844
|
-
and (max-width: ${e.breakpoints.sm})
|
|
2845
|
-
{
|
|
2846
|
-
width: 526px;
|
|
2847
|
-
}
|
|
2848
|
-
|
|
2849
|
-
@media screen and (max-width: 40em) {
|
|
2850
|
-
width: 320px;
|
|
2851
|
-
}
|
|
2852
|
-
`}
|
|
2853
|
-
`,mo=s.dt.form`
|
|
2854
|
-
${({theme:e})=>`
|
|
2855
|
-
align-items: center;
|
|
2856
|
-
display: flex;
|
|
2857
|
-
gap: ${e.spacing[.5]};
|
|
2858
|
-
justify-content: space-between;
|
|
2859
|
-
padding: ${e.spacing[1]} ${e.spacing[1.5]};
|
|
2860
|
-
width: 100%;
|
|
2861
|
-
`}
|
|
2862
|
-
`,wo=s.dt.input`
|
|
2863
|
-
${({theme:e})=>`
|
|
2864
|
-
flex: 1 0 0;
|
|
2865
|
-
border: none;
|
|
2866
|
-
color: ${e.palette.gray[600]};
|
|
2867
|
-
font-family: ${e.typography.type.primary};
|
|
2868
|
-
font-size: ${e.typography.text.md};
|
|
2869
|
-
font-weight: ${e.typography.weight.regular};
|
|
2870
|
-
line-height: ${e.spacing[1.5]};
|
|
2871
|
-
outline: none;
|
|
2872
|
-
|
|
2873
|
-
&::placeholder {
|
|
2874
|
-
color: ${e.palette.gray[400]};
|
|
2875
|
-
}
|
|
2876
|
-
|
|
2877
|
-
&::-webkit-search-decoration,
|
|
2878
|
-
&::-webkit-search-cancel-button,
|
|
2879
|
-
&::-webkit-search-results-button,
|
|
2880
|
-
&::-webkit-search-results-decoration {
|
|
2881
|
-
-webkit-appearance:none;
|
|
2882
|
-
}
|
|
2883
|
-
|
|
2884
|
-
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
2885
|
-
font-size: ${e.typography.text.sm};
|
|
2886
|
-
}
|
|
2887
|
-
`}
|
|
2888
|
-
`,jo=s.dt.button`
|
|
2889
|
-
${({theme:e})=>`
|
|
2890
|
-
align-items: center;
|
|
2891
|
-
border-radius: ${e.spacing[.5]};
|
|
2892
|
-
display: flex;
|
|
2893
|
-
width: ${e.spacing[2.5]};
|
|
2894
|
-
height: ${e.spacing[2.5]};
|
|
2895
|
-
padding: ${e.spacing[.625]} ${e.spacing[1]};
|
|
2896
|
-
justify-content: center;
|
|
2897
|
-
gap: ${e.spacing[.5]};
|
|
2898
|
-
flex-shrink: 0;
|
|
2899
|
-
|
|
2900
|
-
span {
|
|
2901
|
-
color: ${e.palette.gray[400]};
|
|
2902
|
-
}
|
|
2903
|
-
|
|
2904
|
-
&:hover {
|
|
2905
|
-
background-color: ${e.palette.gray[100]};
|
|
2906
|
-
}
|
|
2907
|
-
`}
|
|
2908
|
-
`,De=s.dt.div.attrs({className:"dropdown"})`
|
|
2909
|
-
${({theme:e,$empty:i=!1,$showHits:n=!1})=>`
|
|
2910
|
-
align-items: flex-start;
|
|
2911
|
-
align-self: stretch;
|
|
2912
|
-
background-repeat: no-repeat;
|
|
2913
|
-
background-size: 100% 100%;
|
|
2914
|
-
display: flex;
|
|
2915
|
-
flex-direction: column;
|
|
2916
|
-
gap: ${e.spacing[.5]};
|
|
2917
|
-
max-height: ${n?"270px":"500px"};
|
|
2918
|
-
overflow: hidden auto;
|
|
2919
|
-
padding: ${e.spacing[1.5]};
|
|
2920
|
-
scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
|
|
2921
|
-
scroll-padding: ${e.spacing[.5]};
|
|
2922
|
-
scrollbar-width: thin;
|
|
2923
|
-
|
|
2924
|
-
@media screen and (max-width: ${e.breakpoints.sm}) and (${!i}) {
|
|
2925
|
-
max-height: 410px;
|
|
2926
|
-
}
|
|
2927
|
-
${i&&`
|
|
2928
|
-
@media screen and (min-width: ${e.breakpoints.mobile}) {
|
|
2929
|
-
border: none !important;
|
|
2930
|
-
background-image: url(https://res.cloudinary.com/fluid-attacks/image/upload/v1729784164/airs/search-bar/empty_state_bg.webp);
|
|
2931
|
-
}
|
|
2932
|
-
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
2933
|
-
border: none !important;
|
|
2934
|
-
background-image: url(https://res.cloudinary.com/fluid-attacks/image/upload/v1729783908/airs/search-bar/empty_state_bg_mobile.webp);
|
|
2935
|
-
}
|
|
2936
|
-
`}
|
|
2937
|
-
|
|
2938
|
-
&::-webkit-scrollbar {
|
|
2939
|
-
height: ${e.spacing[.5]};
|
|
2940
|
-
width: ${e.spacing[.5]};
|
|
2941
|
-
}
|
|
2942
|
-
&::-webkit-scrollbar-track {
|
|
2943
|
-
background: ${e.palette.gray[100]};
|
|
2944
|
-
}
|
|
2945
|
-
&::-webkit-scrollbar-thumb {
|
|
2946
|
-
background-color: ${e.palette.gray[600]};
|
|
2947
|
-
border-radius: ${e.spacing[5]};
|
|
2948
|
-
height: ${e.spacing[.5]};
|
|
2949
|
-
}
|
|
2950
|
-
`}
|
|
2951
|
-
`,je=({hit:e,icon:i="infinity",showIcon:n=!1})=>{const{slug:a,title:r}=e,o=String(a).startsWith("/pages/")?String(a).replace("/pages/","/"):String(a);return t.jsxs(bo,{href:o,rel:"nofollow noopener noreferrer",children:[n&&t.jsx($o,{children:t.jsx(C,{icon:i,iconClass:"fill-gradient-01",iconSize:"sm",iconType:"fa-light"})}),t.jsx(k,{color:S.palette.gray[800],lineSpacing:1.5,size:"md",sizeSm:"sm",whiteSpace:"wrap",children:String(r)})]})},vo=[{hit:{slug:"/services/continuous-hacking/",title:"Continuous Hacking"},icon:"infinity"},{hit:{slug:"/platform/",title:"Platform"},icon:"sidebar"},{hit:{slug:"/plans/",title:"Plans"},icon:"star-christmas"},{hit:{slug:"/blog/",title:"Blog"},icon:"pen-line"}],xt={hit:{slug:"/contact-us/",title:"Contact Support"},icon:"envelope"},ko=({items:e,placeholder:i="Search",refine:n,query:a})=>{const[r,o]=u.useState(a),[l,c]=u.useState(!1),d=u.useRef(null),p=u.useRef(null),g=r.length>=2,x=u.useCallback(w=>{o(w),n(w)},[n]),f=u.useCallback(()=>{x("")},[x]),h=u.useCallback(()=>{c(!0)},[]),$=u.useCallback(w=>{x(w.currentTarget.value)},[x]),b=u.useCallback(w=>{w.preventDefault(),w.stopPropagation(),f(),p.current&&p.current.focus()},[f]),m=u.useCallback(w=>{w.preventDefault(),w.stopPropagation(),p.current&&p.current.blur()},[]);return ee(d.current,()=>{f(),c(!1)},!0),t.jsxs(yo,{ref:d,children:[t.jsxs(mo,{action:"",noValidate:!0,onReset:b,onSubmit:m,role:"search",children:[t.jsxs("div",{className:"flex gap-2 w-full",children:[t.jsx("div",{className:"h-10 p-2",children:t.jsx(C,{icon:"magnifying-glass",iconSize:"sm",iconType:"fa-light"})}),t.jsx(wo,{autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",maxLength:512,onChange:$,onFocus:h,placeholder:i,ref:p,spellCheck:!1,type:"search",value:r})]}),g&&t.jsx(jo,{type:"reset",children:t.jsx(C,{icon:"xmark",iconSize:"sm",iconType:"fa-light"})})]}),l&&r.length<2&&t.jsxs(De,{children:[t.jsx(k,{color:S.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Suggested"}),t.jsx("div",{className:"flex flex-col items-start self-stretch",children:vo.map(({hit:w,icon:j},I)=>t.jsx(je,{hit:w,icon:j,showIcon:!0},`${j}-${I}`))}),t.jsx(k,{color:S.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Can’t find what you’re looking for?"}),t.jsx(je,{hit:xt.hit,icon:xt.icon,showIcon:!0})]}),g&&e.length>0&&t.jsxs(De,{$showHits:g,children:[t.jsx(k,{color:S.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Results"}),t.jsx("div",{className:"flex flex-col items-start self-stretch",children:e.map(w=>t.jsx(je,{hit:w},w.objectID))})]}),g&&e.length===0&&t.jsx(De,{$empty:e.length===0,children:t.jsxs("div",{className:"items-center flex flex-col gap-4 py-[90px] w-full",children:[t.jsx(G,{height:96,publicId:"airs/search-bar/empty-state-icon",width:96}),t.jsx(A,{display:"flex",size:"sm",sizeSm:"xs",textAlign:"center",children:"No results found"}),t.jsxs(k,{display:"flex",lineSpacing:1.5,size:"md",sizeSm:"sm",textAlign:"center",children:[`“${r}” did not match.`,t.jsx("br",{}),"Please try again."]}),t.jsx(D,{onClick:f,variant:"secondary",children:"Clear search"})]})})]})},Co={critical:{bgColor:S.palette.primary[700],colorL:S.palette.gray[800],colorR:S.palette.white},disable:{bgColor:S.palette.gray[200],colorL:S.palette.gray[400],colorR:S.palette.gray[400]},high:{bgColor:S.palette.error[500],colorL:S.palette.gray[800],colorR:S.palette.white},low:{bgColor:S.palette.warning[200],colorL:S.palette.gray[800],colorR:S.palette.gray[800]},medium:{bgColor:S.palette.warning[500],colorL:S.palette.gray[800],colorR:S.palette.gray[800]}},So=({textL:e,textR:i,variant:n})=>{const a=s.nt(),{bgColor:r,colorL:o,colorR:l}=Co[n];return t.jsxs(y,{alignItems:"flex-start",display:"inline-flex",children:[e?t.jsx(y,{alignItems:"center",bgColor:a.palette.white,border:`1px solid ${r}`,borderRadius:"4px 0px 0px 4px",display:"flex",justify:"center",padding:[0,.25,0,.25],children:t.jsx(k,{color:o,size:"xs",children:e})}):void 0,t.jsx(y,{alignItems:"center",bgColor:r,border:`1px solid ${r}`,borderRadius:e?"0px 4px 4px 0px":"4px",display:"flex",padding:e?[0,.25,0,.125]:[0,.25,0,.25],pb:.125,pl:.125,pr:.125,pt:.125,children:t.jsx(k,{color:l,size:"xs",children:i})})]})},zo=(e,i)=>{const n={critical:S.palette.primary[700],high:S.palette.error[500],low:S.palette.warning[200],medium:S.palette.warning[500],none:S.palette.gray[200]},a={disabled:S.palette.gray[400],enabled:S.palette.gray[800]},r={critical:S.palette.white,high:S.palette.white,low:S.palette.gray[800],medium:S.palette.gray[800],none:S.palette.gray[400]};return{iconColor:i<1?n.none:n[e],iconText:s.lodashExports.capitalize(e.charAt(0)),iconTextColor:i<1?r.none:r[e],textColor:i<1?a.disabled:a.enabled}},ae=({variant:e,value:i})=>{const{iconColor:n,iconText:a,iconTextColor:r,textColor:o}=zo(e,i),l=s.lodashExports.capitalize(e.charAt(0))+e.slice(1);return t.jsxs(y,{alignItems:"center",display:"inline-flex",gap:.5,minWidth:"43px",children:[t.jsx(V,{id:l,place:"top",tip:l,children:t.jsx(y,{alignItems:"center",bgColor:n,borderRadius:"4px",cursor:"pointer",display:"flex",height:"22px",maxWidth:"22px",minWidth:"22px",children:t.jsx(k,{color:r,size:"sm",textAlign:"center",children:a})})}),t.jsx(k,{color:o,size:"sm",children:i})]})},Io=({critical:e,high:i,medium:n,low:a})=>t.jsxs(y,{alignItems:"center",display:"inline-flex",gap:1,children:[t.jsx(ae,{value:e,variant:"critical"}),t.jsx(ae,{value:i,variant:"high"}),t.jsx(ae,{value:n,variant:"medium"}),t.jsx(ae,{value:a,variant:"low"})]}),To=s.dt.div`
|
|
2748
|
+
`,co=({scrollerId:e="dashboard",visibleAt:i=500})=>{const[n,a]=f.useState(!1),[r,o]=f.useState(null);f.useEffect(()=>{o(document.getElementById(e)),r==null||r.addEventListener("scroll",()=>{a(r.scrollTop>i)})},[r,e,i]);const l=f.useCallback(()=>{r==null||r.scrollTo({behavior:"smooth",top:0})},[r]);return n?t.jsx(lo,{children:t.jsx(B,{height:"40px",icon:"arrow-up",iconSize:"sm",id:"scroll-up",onClick:l,width:"40px"})}):null},po={critical:{bgColor:z.palette.primary[700],colorL:z.palette.gray[800],colorR:z.palette.white},disable:{bgColor:z.palette.gray[200],colorL:z.palette.gray[400],colorR:z.palette.gray[400]},high:{bgColor:z.palette.error[500],colorL:z.palette.gray[800],colorR:z.palette.white},low:{bgColor:z.palette.warning[200],colorL:z.palette.gray[800],colorR:z.palette.gray[800]},medium:{bgColor:z.palette.warning[500],colorL:z.palette.gray[800],colorR:z.palette.gray[800]}},go=({textL:e,textR:i,variant:n})=>{const a=s.nt(),{bgColor:r,colorL:o,colorR:l}=po[n];return t.jsxs($,{alignItems:"flex-start",display:"inline-flex",children:[e?t.jsx($,{alignItems:"center",bgColor:a.palette.white,border:`1px solid ${r}`,borderRadius:"4px 0px 0px 4px",display:"flex",justify:"center",padding:[0,.25,0,.25],children:t.jsx(k,{color:o,size:"xs",children:e})}):void 0,t.jsx($,{alignItems:"center",bgColor:r,border:`1px solid ${r}`,borderRadius:e?"0px 4px 4px 0px":"4px",display:"flex",padding:e?[0,.25,0,.125]:[0,.25,0,.25],pb:.125,pl:.125,pr:.125,pt:.125,children:t.jsx(k,{color:l,size:"xs",children:i})})]})},xo=(e,i)=>{const n={critical:z.palette.primary[700],high:z.palette.error[500],low:z.palette.warning[200],medium:z.palette.warning[500],none:z.palette.gray[200]},a={disabled:z.palette.gray[400],enabled:z.palette.gray[800]},r={critical:z.palette.white,high:z.palette.white,low:z.palette.gray[800],medium:z.palette.gray[800],none:z.palette.gray[400]};return{iconColor:i<1?n.none:n[e],iconText:s.lodashExports.capitalize(e.charAt(0)),iconTextColor:i<1?r.none:r[e],textColor:i<1?a.disabled:a.enabled}},ie=({variant:e,value:i})=>{const{iconColor:n,iconText:a,iconTextColor:r,textColor:o}=xo(e,i),l=s.lodashExports.capitalize(e.charAt(0))+e.slice(1);return t.jsxs($,{alignItems:"center",display:"inline-flex",gap:.5,minWidth:"43px",children:[t.jsx(V,{id:l,place:"top",tip:l,children:t.jsx($,{alignItems:"center",bgColor:n,borderRadius:"4px",cursor:"pointer",display:"flex",height:"22px",maxWidth:"22px",minWidth:"22px",children:t.jsx(k,{color:r,size:"sm",textAlign:"center",children:a})})}),t.jsx(k,{color:o,size:"sm",children:i})]})},uo=({critical:e,high:i,medium:n,low:a})=>t.jsxs($,{alignItems:"center",display:"inline-flex",gap:1,children:[t.jsx(ie,{value:e,variant:"critical"}),t.jsx(ie,{value:i,variant:"high"}),t.jsx(ie,{value:n,variant:"medium"}),t.jsx(ie,{value:a,variant:"low"})]}),fo=s.dt.div`
|
|
2952
2749
|
${({theme:e})=>`
|
|
2953
2750
|
border-radius: ${e.spacing[.25]};
|
|
2954
2751
|
cursor: pointer;
|
|
@@ -2966,7 +2763,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2966
2763
|
display: block;
|
|
2967
2764
|
}
|
|
2968
2765
|
`}
|
|
2969
|
-
`,
|
|
2766
|
+
`,ho=({visibleElement:e,hiddenElement:i})=>t.jsxs(fo,{children:[e,t.jsx($,{display:"none",position:"absolute",top:"100%",zIndex:10,children:i})]}),li=({customBadge:e=void 0,description:i,icon:n,onClick:a,requiresUpgrade:r=!1,title:o})=>{const l=s.nt();return t.jsxs($,{bgColor:l.palette.white,bgColorHover:l.palette.gray[100],cursor:"pointer",display:"flex",gap:.5,onClick:a,px:1.25,py:1,width:"100%",children:[t.jsx($,{alignItems:"center",bgColor:l.palette.gray[300],borderRadius:l.spacing[.25],display:"flex",height:"24px",justify:"center",width:"24px",children:t.jsx(S,{icon:n,iconColor:l.palette.gray[800],iconSize:"xxs",ml:.5,mr:.5})}),t.jsxs($,{children:[t.jsxs($,{alignItems:"center",display:"inline-flex",gap:.5,children:[t.jsx(k,{color:l.palette.gray[800],size:"sm",children:o}),r?t.jsx(si,{text:"Upgrade"}):void 0,e]}),t.jsx(k,{color:l.palette.gray[400],size:"xs",children:i})]})]})},bo=s.dt(s.m.div)`
|
|
2970
2767
|
${({theme:e})=>`
|
|
2971
2768
|
background-color: ${e.palette.white};
|
|
2972
2769
|
box-shadow: ${e.shadows.lg};
|
|
@@ -2989,7 +2786,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2989
2786
|
height: auto;
|
|
2990
2787
|
}
|
|
2991
2788
|
`}
|
|
2992
|
-
`,
|
|
2789
|
+
`,yo=({children:e,closeIconId:i="close-menu",isOpen:n,items:a,onClose:r,primaryButtonText:o,primaryOnClick:l,secondaryButtonText:c,secondaryOnClick:d,title:p})=>{const g=s.nt(),x=f.useRef(null),u=f.useCallback(h=>()=>{h(),r()},[r]);return f.useEffect(()=>{const h=["mousedown","touchstart"],y=b=>{var C;const m=b.target,w=document.getElementById("helpBtn"),j=document.getElementById("filterBtn"),I=(m===w||((w==null?void 0:w.contains(m))??!1)||m===j||(j==null?void 0:j.contains(m)))??!1;n&&!I&&!(((C=x.current)==null?void 0:C.contains(m))??!1)&&r()};return h.forEach(b=>{document.addEventListener(b,y,{passive:!0})}),()=>{h.forEach(b=>{document.removeEventListener(b,y)})}},[n,r]),t.jsx(s.LazyMotion,{features:s.domAnimation,children:t.jsx(bo,{animate:n?{display:"block",x:0}:{transitionEnd:{display:"none"},x:"100%"},initial:{display:"none",x:"100%"},ref:x,transition:{bounce:0,duration:.6,type:"spring"},children:t.jsxs($,{height:"100%",position:"relative",children:[t.jsxs($,{alignItems:"center",bgColor:g.palette.white,borderBottom:"1px solid",borderColor:g.palette.gray[200],display:"flex",gap:1.25,justify:"space-between",padding:[1.25,1.25,1.25,1.25],position:"sticky",top:"0",zIndex:40,children:[t.jsx(k,{color:g.palette.black,display:"inline",fontWeight:"bold",size:"xl",children:p}),t.jsx(B,{icon:"close",iconColor:g.palette.gray[400],iconSize:"xs",iconTransform:"grow-4",iconType:"fa-light",id:i,onClick:r,px:.25,py:.25,variant:"ghost"})]}),t.jsxs($,{display:"flex",flexDirection:"column",justify:"space-between",minHeight:"100vh",children:[t.jsxs($,{py:1.25,children:[(a??[]).map(({customBadge:h,description:y,icon:b,onClick:m,requiresUpgrade:w,title:j})=>t.jsx(li,{customBadge:h,description:y,icon:b,onClick:u(m),requiresUpgrade:w,title:j},j)),e&&t.jsx($,{px:1.25,children:e})]}),o===void 0?void 0:t.jsxs($,{alignItems:"center",bgColor:g.palette.white,borderColor:g.palette.gray[200],borderTop:"1px solid",bottom:"0",display:"flex",gap:1.25,justify:"end",padding:[1.25,1.25,1.25,1.25],position:"sticky",width:"100%",zIndex:40,children:[c===void 0?void 0:t.jsx(D,{color:`${g.palette.primary[500]} !important`,onClick:d,pl:.5,pr:.5,variant:"ghost",children:c}),t.jsx(D,{onClick:l,type:"submit",children:o})]})]})]})})})},$o=(e,i)=>i>=50?`
|
|
2993
2790
|
${e.palette.gray[200]} 50%,
|
|
2994
2791
|
${e.palette.primary[500]} 50.05%,
|
|
2995
2792
|
${e.palette.primary[500]} ${i}%,
|
|
@@ -3000,7 +2797,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3000
2797
|
${e.palette.primary[500]} 50%,
|
|
3001
2798
|
${e.palette.gray[200]} 50.05%,
|
|
3002
2799
|
${e.palette.gray[200]} 100%
|
|
3003
|
-
`,
|
|
2800
|
+
`,mo=s.dt.div`
|
|
3004
2801
|
${({theme:e,$min:i,$value:n})=>`
|
|
3005
2802
|
align-items: center;
|
|
3006
2803
|
align-self: stretch;
|
|
@@ -3016,7 +2813,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3016
2813
|
${i>=0?`
|
|
3017
2814
|
${e.palette.primary[500]} ${n}%,
|
|
3018
2815
|
${e.palette.gray[200]} ${n}%
|
|
3019
|
-
|
|
2816
|
+
`:$o(e,n)}
|
|
3020
2817
|
);
|
|
3021
2818
|
border-radius: ${e.spacing[.125]};
|
|
3022
2819
|
height: ${e.spacing[.25]};
|
|
@@ -3040,7 +2837,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3040
2837
|
border: 1px solid ${e.palette.primary[500]};
|
|
3041
2838
|
}
|
|
3042
2839
|
`}
|
|
3043
|
-
`,
|
|
2840
|
+
`,wo=s.dt.div`
|
|
3044
2841
|
${({theme:e})=>`
|
|
3045
2842
|
align-items: center;
|
|
3046
2843
|
display: flex;
|
|
@@ -3054,7 +2851,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3054
2851
|
font-size: ${e.spacing[.5]};
|
|
3055
2852
|
}
|
|
3056
2853
|
`}
|
|
3057
|
-
`,
|
|
2854
|
+
`,jo=s.dt.output`
|
|
3058
2855
|
${({theme:e})=>`
|
|
3059
2856
|
align-items: flex-end;
|
|
3060
2857
|
border-radius: ${e.spacing[.5]};
|
|
@@ -3065,7 +2862,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3065
2862
|
padding: ${e.spacing[.625]} ${e.spacing[.75]};
|
|
3066
2863
|
width: 59px;
|
|
3067
2864
|
`}
|
|
3068
|
-
`,
|
|
2865
|
+
`,ci=({state:e,trackRef:i,index:n,name:a})=>{const r=f.useRef(null),{thumbProps:o,inputProps:l,isDragging:c}=s.$47b897dc8cdb026b$export$8d15029008292ae({index:n,trackRef:i,inputRef:r},e);return t.jsx("div",{...o,className:`thumb ${c?"dragging":""}`,children:t.jsx(s.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:t.jsx("input",{...l,"aria-label":a,ref:r})})})},vo=(e,i,n)=>Math.round((n-e)/(i-e)*100),ko=e=>{const i=s.nt(),n=f.useRef(null),{label:a,minValue:r=0,maxValue:o=100,name:l,setValue:c,watch:d}=e,p=s.$a916eb452884faea$export$b7a616150fdb9f44(),g=s.$28f99e3e86e6ec45$export$e5fda3247f5d67f9({...e,numberFormatter:p,onChange(y){c==null||c(l,y)},value:d==null?void 0:d(l)}),x=vo(r,o,g.getThumbValue(0)),{groupProps:u,trackProps:h}=s.$bcca50147b47f54d$export$56b2c08e277f365({...e,"aria-label":l,id:l},g,n);return t.jsx(_,{htmlFor:l,label:a,children:t.jsxs($,{alignItems:"center",display:"inline-flex",gap:1.25,pl:.5,width:"100%",children:[t.jsxs(mo,{...u,$min:r??0,$value:x,className:"slider",children:[t.jsx("div",{...h,className:`track ${g.isDisabled?"disabled":""}`,ref:n,children:t.jsx(ci,{index:0,name:l,state:g,trackRef:n})}),t.jsxs(wo,{children:[t.jsx("p",{children:`${p.format(r)} (Low)`}),r<0&&t.jsx("p",{children:"0"}),t.jsx("p",{children:`${p.format(o)} (High)`})]})]}),t.jsx(jo,{children:t.jsx(k,{color:i.palette.gray[800],size:"sm",textAlign:"right",children:g.getThumbValueLabel(0)})})]})})},{getVariant:Co}=U(e=>({completed:`
|
|
3069
2866
|
background-color: ${e.palette.primary[500]};
|
|
3070
2867
|
color: ${e.palette.white};
|
|
3071
2868
|
|
|
@@ -3088,7 +2885,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3088
2885
|
&::after {
|
|
3089
2886
|
background-color: ${e.palette.gray[200]};
|
|
3090
2887
|
}
|
|
3091
|
-
`})),
|
|
2888
|
+
`})),So=s.dt.div`
|
|
3092
2889
|
${({theme:e})=>`
|
|
3093
2890
|
align-items: stretch;
|
|
3094
2891
|
background-color: ${e.palette.white};
|
|
@@ -3098,7 +2895,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3098
2895
|
padding: ${`${e.spacing[1]} ${e.spacing[1]}`};
|
|
3099
2896
|
scroll-behavior: unset;
|
|
3100
2897
|
`}
|
|
3101
|
-
`,
|
|
2898
|
+
`,zo=s.dt.div`
|
|
3102
2899
|
display: flex;
|
|
3103
2900
|
flex-direction: row;
|
|
3104
2901
|
margin-bottom: ${({theme:e})=>e.spacing[2]};
|
|
@@ -3106,7 +2903,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3106
2903
|
&:last-child > div:first-child > span::after {
|
|
3107
2904
|
display: none;
|
|
3108
2905
|
}
|
|
3109
|
-
`,
|
|
2906
|
+
`,Io=s.dt.div`
|
|
3110
2907
|
${({theme:e})=>`
|
|
3111
2908
|
display: inline-flex;
|
|
3112
2909
|
font-family: ${e.typography.type.primary};
|
|
@@ -3118,7 +2915,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3118
2915
|
margin-right: ${e.spacing[.5]};
|
|
3119
2916
|
}
|
|
3120
2917
|
`}
|
|
3121
|
-
`,
|
|
2918
|
+
`,To=s.dt.span`
|
|
3122
2919
|
${({theme:e,$variant:i})=>`
|
|
3123
2920
|
border-radius: 6px;
|
|
3124
2921
|
display: inline-block;
|
|
@@ -3141,9 +2938,9 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3141
2938
|
height: calc(100% - ${e.spacing[1]});
|
|
3142
2939
|
}
|
|
3143
2940
|
|
|
3144
|
-
${
|
|
2941
|
+
${Co(e,i)}
|
|
3145
2942
|
`}
|
|
3146
|
-
`,
|
|
2943
|
+
`,Fo=({button:{disabled:e=!1,text:i,type:n="button",onClick:a},steps:r})=>{const[o,l]=f.useState(1),c=f.useCallback((d,p)=>()=>{l(g=>g+d),p==null||p()},[]);return t.jsx(So,{children:r.map((d,p)=>{const{content:g,title:x,nextAction:u,previousAction:h}=d,y=p+1,b=y===o?"current":"disabled",m=y<o?"completed":b;return t.jsxs(zo,{children:[t.jsx($,{maxWidth:"40px",position:"relative",children:t.jsx(To,{$variant:m,children:m==="completed"?t.jsx(S,{icon:"check",iconSize:"xs",iconType:"fa-solid"}):y})}),t.jsxs($,{ml:1.5,width:"100%",children:[t.jsx(W,{fontWeight:"bold",lineSpacing:1.25,mb:1.5,size:"xs",children:x}),m==="current"&&t.jsxs($,{children:[g,t.jsxs(Io,{children:[o>1&&t.jsx(D,{disabled:d.isDisabledPrevious??!1,onClick:c(-1,h),variant:"tertiary",children:"Previous"}),o<r.length?t.jsx(D,{disabled:d.isDisabledNext??!1,onClick:c(1,u),variant:"primary",children:"Next step"}):t.jsx(D,{disabled:e,onClick:a,type:n,variant:"primary",children:i})]})]})]})]},d.title)})})},No=s.dt.button`
|
|
3147
2944
|
${({theme:e})=>`
|
|
3148
2945
|
align-items: center;
|
|
3149
2946
|
background-color: ${e.palette.white};
|
|
@@ -3185,7 +2982,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3185
2982
|
background-color: ${e.palette.gray[100]};
|
|
3186
2983
|
}
|
|
3187
2984
|
`}
|
|
3188
|
-
`,
|
|
2985
|
+
`,Eo={add:{icon:"plus"},approve:{icon:"check"},disabled:{icon:"ban"},reject:{icon:"xmark"},submit:{icon:"arrow-right"},success:{icon:"check"}},Ro=({disabled:e=!1,icon:i,id:n,label:a,name:r,onClick:o,type:l="button",variant:c})=>{const d=s.nt(),p=t.jsxs(No,{"aria-label":r??void 0,className:c,disabled:e,id:n,onClick:o,type:l,children:[t.jsx(S,{clickable:!1,icon:i??Eo[c].icon,iconSize:r===void 0?"xxs":"xs",iconType:"fa-light"}),r??void 0]});return t.jsxs($,{alignItems:"center",display:"flex",children:[p,a&&t.jsx(k,{color:d.palette.gray[800],ml:.5,size:"sm",children:a})]})},Do=({items:e})=>t.jsx(ba,{children:e.map(({isActive:i,label:n,onClick:a},r)=>t.jsx(ha,{className:i?"active":"",onClick:a,type:"button",children:t.jsx(W,{color:"inherit",fontWeight:"semibold",size:"sm",sizeSm:"xs",children:n})},`${n}-${r}`))}),Lo=s.dt.div`
|
|
3189
2986
|
${({theme:e})=>`
|
|
3190
2987
|
align-items: center;
|
|
3191
2988
|
background-color: ${e.palette.white};
|
|
@@ -3207,7 +3004,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3207
3004
|
border: 1px solid ${e.palette.gray[600]};
|
|
3208
3005
|
}
|
|
3209
3006
|
`}
|
|
3210
|
-
`,
|
|
3007
|
+
`,Po=s.dt.div`
|
|
3211
3008
|
${({theme:e})=>`
|
|
3212
3009
|
display: flex;
|
|
3213
3010
|
flex-direction: column;
|
|
@@ -3278,7 +3075,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3278
3075
|
}
|
|
3279
3076
|
}
|
|
3280
3077
|
`}
|
|
3281
|
-
`,
|
|
3078
|
+
`,di=({date:e,description:i,title:n})=>{const a=s.nt();return t.jsxs(Lo,{className:"timeline-card",children:[t.jsx(k,{color:a.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:e}),t.jsx(k,{color:a.palette.gray[800],fontWeight:"bold",lineSpacing:1.5,mb:.5,size:"md",textAlign:"center",children:n}),t.jsx("div",{children:i.map((r,o)=>{const l=`${r}#${o}`;return t.jsx(k,{size:"sm",textAlign:"center",wordBreak:"break-word",children:r},l)})})]})},Ao=({items:e})=>t.jsx(Po,{children:e.map((i,n)=>t.jsx(di,{date:i.date,description:i.description,title:i.title},`${i.title}-${n}`))}),Wo=s.dt.div`
|
|
3282
3079
|
${({theme:e})=>`
|
|
3283
3080
|
align-items: center;
|
|
3284
3081
|
display: flex;
|
|
@@ -3308,7 +3105,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3308
3105
|
width: 320px;
|
|
3309
3106
|
}
|
|
3310
3107
|
`}
|
|
3311
|
-
`,
|
|
3108
|
+
`,Bo=s.dt.button`
|
|
3312
3109
|
${({theme:e})=>`
|
|
3313
3110
|
align-items: center;
|
|
3314
3111
|
background: linear-gradient(
|
|
@@ -3337,7 +3134,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3337
3134
|
color: ${e.palette.white};
|
|
3338
3135
|
}
|
|
3339
3136
|
`}
|
|
3340
|
-
`,
|
|
3137
|
+
`,Oo=({defaultSelection:e,options:i,handleClick:n})=>{const[a,r]=f.useState(e??i[0]),o=f.useCallback(l=>()=>{r(l),n(l)},[n]);return t.jsx(Wo,{children:i.map((l,c)=>t.jsx(Bo,{className:`${l.includes(a)&&"selected"}`,onClick:o(l),children:t.jsx(k,{color:"inherit",fontWeight:"bold",size:"md",sizeSm:"sm",textAlign:"center",children:l})},`${l}-${c}`))})},_o={content:"",disableBeacon:!0,hideCloseButton:!1,locale:{back:"Back",close:"Close",last:"Close",next:"Next",open:"Open the dialog",skip:"Skip"},showSkipButton:!0,styles:{buttonBack:{fontFamily:"roboto"},buttonNext:{fontFamily:"roboto"},buttonSkip:{fontFamily:"roboto"},options:{zIndex:9999},tooltipContainer:{fontFamily:"roboto",textAlign:"left"}},target:""},Ho=({run:e,steps:i,onFinish:n})=>{const[a,r]=f.useState(e),[o,l]=f.useState(0),c=f.useCallback(d=>{const{action:p,index:g,status:x,type:u}=d;[s.EVENTS.STEP_AFTER,s.EVENTS.TARGET_NOT_FOUND].includes(u)?l(g+(p===s.ACTIONS.PREV?-1:1)):([s.STATUS.FINISHED,s.STATUS.SKIPPED].includes(x)||p==="close")&&(r(!1),s.lodashExports.isUndefined(n)||n())},[n]);return t.jsx(s.components_default,{callback:c,continuous:!0,disableOverlayClose:!0,disableScrollParentFix:!0,run:a,spotlightClicks:!0,stepIndex:o,steps:i,styles:{buttonNext:{display:o===i.length-1?"none":"block"},options:{zIndex:9999}}})},Mo=s.dt.form`
|
|
3341
3138
|
${({theme:e})=>`
|
|
3342
3139
|
align-items: center;
|
|
3343
3140
|
background: ${e.palette.gray[50]};
|
|
@@ -3365,7 +3162,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3365
3162
|
width: 320px;
|
|
3366
3163
|
}
|
|
3367
3164
|
`}
|
|
3368
|
-
`,
|
|
3165
|
+
`,Vo=s.dt.div`
|
|
3369
3166
|
align-items: flex-start;
|
|
3370
3167
|
align-self: stretch;
|
|
3371
3168
|
display: flex;
|
|
@@ -3379,7 +3176,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3379
3176
|
text-align: center;
|
|
3380
3177
|
}
|
|
3381
3178
|
}
|
|
3382
|
-
`,
|
|
3179
|
+
`,Go=s.dt.div`
|
|
3383
3180
|
${({theme:e})=>`
|
|
3384
3181
|
align-items: flex-start;
|
|
3385
3182
|
align-self: stretch;
|
|
@@ -3400,4 +3197,4 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3400
3197
|
flex-direction: column;
|
|
3401
3198
|
}
|
|
3402
3199
|
`}
|
|
3403
|
-
`,
|
|
3200
|
+
`,Uo=({children:e,name:i,onSubmit:n,submitDisabled:a,submitLabel:r="Submit"})=>t.jsx(Mo,{"aria-label":i,name:i,onSubmit:n,children:t.jsxs(Vo,{children:[e,t.jsx(D,{disabled:a,type:"submit",children:r})]})});exports.Accordion=Hi;exports.AccordionContent=ut;exports.ActionButton=Ae;exports.Alert=Zi;exports.AppliedFilter=te;exports.AppliedFilters=Jt;exports.Avatar=on;exports.BaseButtonComponent=Me;exports.BaseComponent=ue;exports.BaseSpanComponent=Ge;exports.BaseTextComponent=Ve;exports.Button=D;exports.Button$1=je;exports.ButtonToolbarCenter=ur;exports.ButtonToolbarRow=hr;exports.ButtonToolbarStartRow=fr;exports.Calendar=jt;exports.Calendar$1=zt;exports.Calendar$2=Tt;exports.CalendarCell=wt;exports.CalendarGrid=ze;exports.CardHeader=Se;exports.CardWithImage=cn;exports.CardWithInput=Vn;exports.CardWithOptions=Et;exports.CardWithSelector=Zn;exports.CardWithSwitch=ea;exports.Carousel=oa;exports.CategoryTag=Oe;exports.Checkbox=Fe;exports.CodeSnippet=la;exports.Col=yr;exports.ColumnsModal=Ia;exports.ComboBox=$t;exports.ComboBoxField=De;exports.Container=$;exports.ContentCard=ti;exports.ContentCardCarousel=Ga;exports.CustomThemeProvider=Di;exports.DateField=kt;exports.DateSelector=ae;exports.Description=oi;exports.Dialog=Te;exports.Divider=J;exports.Editable=Fn;exports.EmptyButton=_e;exports.EmptyState=Ka;exports.EventDate=ei;exports.FilePreview=bt;exports.FilterControl=qt;exports.FilterForm=We;exports.FilterFormContent=Kt;exports.Filters=Oa;exports.FiltersList=Ce;exports.FixedTabs=Do;exports.Form=Ja;exports.FormItem=Go;exports.Gap=mr;exports.GridContainer=er;exports.GroupSelector=ir;exports.Header=Ie;exports.Header$1=Ot;exports.Heading=W;exports.Icon=S;exports.IconButton=B;exports.IndicatorCard=nr;exports.InfoSidebar=ar;exports.InnerForm=Xa;exports.Input=qe;exports.InputDate=St;exports.InputDateRange=It;exports.InputDateTime=Tn;exports.InputFile=Dn;exports.InputNumber=Ft;exports.InputNumberRange=Nt;exports.InputTags=Pn;exports.InteractiveCard=sr;exports.InteractiveIcon=ni;exports.ItemList=ai;exports.Label=Ue;exports.LanguageSelector=xr;exports.Link=X;exports.ListItem=$e;exports.ListItemsWrapper=Mt;exports.LittleFlag=kr;exports.Loading=Er;exports.LocationCode=Wt;exports.Logo=Wr;exports.LogoCarousel=Pr;exports.MemoizedImage=q;exports.Menu=Br;exports.MenuItem=li;exports.MessageBanner=_r;exports.Modal=Qt;exports.ModalConfirm=fa;exports.ModalFooter=Bt;exports.Notification=Gr;exports.NotificationSign=_t;exports.NumberField=ke;exports.NumberInput=qr;exports.OAuthSelector=Xr;exports.Option=yt;exports.OptionBoxContainer=Ze;exports.OptionContainer=He;exports.OptionContainer$1=ii;exports.OutlineContainer=_;exports.PhoneInput=Hn;exports.PlanCard=Qr;exports.PopUp=eo;exports.Popover=fe;exports.PremiumFeature=si;exports.PreviewPanel=Vt;exports.PriorityScore=io;exports.ProgressBar=so;exports.RadioButton=Ke;exports.RecommendedTag=ri;exports.Row=jr;exports.ScrollButtons=Be;exports.ScrollUpButton=co;exports.Search=re;exports.SearchPanel=Ut;exports.SeverityBadge=go;exports.SeverityOverview=uo;exports.SeverityOverviewBadge=ie;exports.ShowOnHover=ho;exports.SingleColumFilters=Zt;exports.SlideOutMenu=yo;exports.Slider=ko;exports.Span=ne;exports.StepLapse=Fo;exports.Tab=Ht;exports.TableButton=Ro;exports.Tabs=Xe;exports.Tag=Y;exports.TagsField=Pe;exports.Text=k;exports.TextArea=Mn;exports.Thumb=ci;exports.TimeField=Ct;exports.TimeLine=Ao;exports.TimeLineCard=di;exports.Toggle=Pt;exports.ToggleButton=Oo;exports.Tooltip=V;exports.Tour=Ho;exports.TwoColumnsFilters=Ea;exports.WebForm=Uo;exports.baseStep=_o;exports.getStyledConfig=xe;exports.hiddenProps=gt;exports.icons=Ei;exports.setBorder=ce;exports.setDisplay=de;exports.setInteraction=ge;exports.setMargin=se;exports.setPadding=oe;exports.setPosition=le;exports.setText=pe;exports.theme=z;exports.uniqueIcons=Ri;exports.useCarousel=Rt;exports.useClickOutside=he;exports.useCloudinaryImage=Dt;exports.useColumnsModal=Un;exports.useConfirmDialog=_a;exports.useDebouncedCallback=Lt;exports.useFilterForm=Xt;exports.useModal=Ne;exports.useSearch=Yn;exports.variantBuilder=U;
|