@fluidattacks/design 3.15.6-pr-03 → 3.15.7-pr-01
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/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/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/lottie/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/column-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/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-CRGBGUFn.js +2806 -0
- package/dist/{components-DtNlm5Mb.mjs → components-CaX3GhSk.mjs} +1683 -2626
- package/dist/hooks/index.js +1 -1
- package/dist/index.d.ts +0 -4
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/components/content-card/category-tag/index.d.ts +0 -5
- package/dist/components/content-card/category-tag/index.js +0 -1
- package/dist/components/content-card/event-date/index.d.ts +0 -4
- package/dist/components/content-card/event-date/index.js +0 -1
- package/dist/components/content-card/index.d.ts +0 -3
- package/dist/components/content-card/index.js +0 -1
- package/dist/components/content-card/index.stories.d.ts +0 -7
- package/dist/components/content-card/styles.d.ts +0 -2
- package/dist/components/content-card/types.d.ts +0 -33
- package/dist/components/content-card-carousel/index.d.ts +0 -3
- package/dist/components/content-card-carousel/index.js +0 -1
- package/dist/components/content-card-carousel/index.stories.d.ts +0 -6
- package/dist/components/content-card-carousel/scroll-buttons/index.d.ts +0 -6
- package/dist/components/content-card-carousel/scroll-buttons/index.js +0 -1
- package/dist/components/content-card-carousel/styles.d.ts +0 -3
- package/dist/components/content-card-carousel/types.d.ts +0 -16
- package/dist/components/interactive-card/icon/index.d.ts +0 -5
- package/dist/components/interactive-card/icon/index.js +0 -1
- package/dist/components/interactive-card/index.d.ts +0 -3
- package/dist/components/interactive-card/index.js +0 -1
- package/dist/components/interactive-card/index.stories.d.ts +0 -6
- package/dist/components/interactive-card/styles.d.ts +0 -3
- package/dist/components/interactive-card/types.d.ts +0 -20
- package/dist/components/language-selector/index.d.ts +0 -3
- package/dist/components/language-selector/index.js +0 -1
- package/dist/components/language-selector/index.stories.d.ts +0 -8
- package/dist/components/language-selector/item-list/index.d.ts +0 -3
- package/dist/components/language-selector/item-list/index.js +0 -1
- package/dist/components/language-selector/styles.d.ts +0 -5
- package/dist/components/language-selector/types.d.ts +0 -37
- package/dist/components/logo-carousel/index.d.ts +0 -3
- package/dist/components/logo-carousel/index.js +0 -1
- package/dist/components/logo-carousel/index.stories.d.ts +0 -7
- package/dist/components/logo-carousel/styles.d.ts +0 -4
- package/dist/components/logo-carousel/types.d.ts +0 -11
- package/dist/components/logo-carousel/utils.d.ts +0 -2
- package/dist/components/web-form/index.d.ts +0 -5
- package/dist/components/web-form/index.js +0 -1
- package/dist/components/web-form/index.stories.d.ts +0 -3
- package/dist/components/web-form/styles.d.ts +0 -4
- package/dist/components/web-form/types.d.ts +0 -15
- package/dist/components-UpIq9WF7.js +0 -3199
|
@@ -1,3199 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),u=require("react"),o=require("./vendor-C0aB6JXv.js"),X=require("react-dom"),De=require("react-router-dom"),U=e=>({getVariant:(i,n)=>e(i)[n]}),xt=["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(o.ot,{theme:z,children:e}),F=(e,i)=>i===void 0?"":`${e}: ${i};`,ce=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[s,l,c,d]=e.padding;return`padding: ${z.spacing[s]} ${z.spacing[l]} ${z.spacing[c]} ${z.spacing[d]};`}return`padding: ${z.spacing[i]} ${z.spacing[n]} ${z.spacing[a]} ${z.spacing[r]};`},de=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[s,l,c,d]=e.margin;return`margin: ${z.spacing[s]} ${z.spacing[l]} ${z.spacing[c]} ${z.spacing[d]};`}return`margin: ${z.spacing[i]} ${z.spacing[n]} ${z.spacing[a]} ${z.spacing[r]};`},pe=e=>{const i=F("position",e.position),n=F("top",e.top),a=F("right",e.right),r=F("bottom",e.bottom),s=F("left",e.left),l=F("z-index",e.zIndex);return`
|
|
2
|
-
${i}
|
|
3
|
-
${n}
|
|
4
|
-
${a}
|
|
5
|
-
${r}
|
|
6
|
-
${s}
|
|
7
|
-
${l}
|
|
8
|
-
`},ge=e=>{const i=F("border",e.border),n=F("border-top",e.borderTop),a=F("border-right",e.borderRight),r=F("border-bottom",e.borderBottom),s=F("border-left",e.borderLeft),l=F("border-color",e.borderColor),c=F("border-radius",e.borderRadius);return`
|
|
9
|
-
${i}
|
|
10
|
-
${n}
|
|
11
|
-
${a}
|
|
12
|
-
${r}
|
|
13
|
-
${s}
|
|
14
|
-
${l}
|
|
15
|
-
${c}
|
|
16
|
-
`},Li=e=>e.includes("x")?"overflow-x: auto;":"",Pi=e=>e.includes("y")?"overflow-y: auto;":"",xe=e=>{const i=e.scroll?`
|
|
17
|
-
${Li(e.scroll)}
|
|
18
|
-
${Pi(e.scroll)}
|
|
19
|
-
`:"",n=F("visibility",e.visibility),a=F("display",e.display),r=F("height",e.height),s=F("width",e.width),l=F("max-height",e.maxHeight),c=F("max-width",e.maxWidth),d=F("min-height",e.minHeight),p=F("min-width",e.minWidth),g=F("box-shadow",e.shadow?z.shadows[e.shadow]:void 0),x=F("gap",e.gap===void 0?void 0:z.spacing[e.gap]),f=F("background-color",e.bgColor),h=F("background",e.bgGradient),b=F("flex-direction",e.flexDirection),m=F("flex-grow",e.flexGrow),y=F("justify-content",e.justify),w=F("justify-self",e.justifySelf),j=F("align-items",e.alignItems),C=F("align-self",e.alignSelf),k=F("flex-wrap",e.wrap);return`
|
|
20
|
-
${i}
|
|
21
|
-
${n}
|
|
22
|
-
${a}
|
|
23
|
-
${r}
|
|
24
|
-
${s}
|
|
25
|
-
${l}
|
|
26
|
-
${c}
|
|
27
|
-
${d}
|
|
28
|
-
${p}
|
|
29
|
-
${g}
|
|
30
|
-
${f}
|
|
31
|
-
${h}
|
|
32
|
-
${x}
|
|
33
|
-
${b}
|
|
34
|
-
${m}
|
|
35
|
-
${y}
|
|
36
|
-
${w}
|
|
37
|
-
${j}
|
|
38
|
-
${C}
|
|
39
|
-
${k}
|
|
40
|
-
`},ue=e=>{const i=F("color",e.color),n=F("font-family",e.fontFamily),a=F("font-size",e.fontSize),r=F("font-weight",e.fontWeight),s=F("line-spacing",e.letterSpacing),l=F("line-height",e.lineSpacing),c=F("text-align",e.textAlign),d=F("text-decoration",e.textDecoration),p=F("text-overflow",e.textOverflow),g=F("white-space",e.whiteSpace),x=F("word-break",e.wordBreak),f=F("word-wrap",e.wordWrap);return`
|
|
41
|
-
${i}
|
|
42
|
-
${n}
|
|
43
|
-
${a}
|
|
44
|
-
${r}
|
|
45
|
-
${s}
|
|
46
|
-
${l}
|
|
47
|
-
${c}
|
|
48
|
-
${d}
|
|
49
|
-
${p}
|
|
50
|
-
${g}
|
|
51
|
-
${x}
|
|
52
|
-
${f}
|
|
53
|
-
`},fe=e=>{const i=F("cursor",e.cursor),n=F("border-color",e.borderColorHover),a=F("background-color",e.bgColorHover),r=F("box-shadow",e.shadowHover===void 0?void 0:z.shadows[e.shadowHover]),s=F("transition",e.transition);return`
|
|
54
|
-
${i}
|
|
55
|
-
|
|
56
|
-
&:hover {
|
|
57
|
-
${s||"transition: all 0.2s;"}
|
|
58
|
-
${n}
|
|
59
|
-
${a}
|
|
60
|
-
${r}
|
|
61
|
-
}
|
|
62
|
-
`},he={shouldForwardProp:e=>!xt.includes(e)},be=o.dt.div.withConfig(he)`
|
|
63
|
-
${ce}
|
|
64
|
-
${de}
|
|
65
|
-
${pe}
|
|
66
|
-
${xe}
|
|
67
|
-
${ue}
|
|
68
|
-
${ge}
|
|
69
|
-
${fe}
|
|
70
|
-
`,Ve=o.dt.button.withConfig(he)`
|
|
71
|
-
${ce}
|
|
72
|
-
${de}
|
|
73
|
-
${pe}
|
|
74
|
-
${xe}
|
|
75
|
-
${ue}
|
|
76
|
-
${ge}
|
|
77
|
-
${fe}
|
|
78
|
-
`,Ue=o.dt.p.withConfig(he)`
|
|
79
|
-
${ce}
|
|
80
|
-
${de}
|
|
81
|
-
${pe}
|
|
82
|
-
${xe}
|
|
83
|
-
${ue}
|
|
84
|
-
${ge}
|
|
85
|
-
${fe}
|
|
86
|
-
`,Ge=o.dt.span.withConfig(he)`
|
|
87
|
-
${ce}
|
|
88
|
-
${de}
|
|
89
|
-
${pe}
|
|
90
|
-
${xe}
|
|
91
|
-
${ue}
|
|
92
|
-
${ge}
|
|
93
|
-
${fe}
|
|
94
|
-
`,Wi=o.dt(be)`
|
|
95
|
-
${({theme:e,$center:i=!1,$styleMd:n,$styleSm:a})=>`
|
|
96
|
-
${i?"margin: auto;":""}
|
|
97
|
-
scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
|
|
98
|
-
scroll-padding: ${e.spacing[.5]};
|
|
99
|
-
|
|
100
|
-
@media screen
|
|
101
|
-
and (min-width: ${e.breakpoints.mobile})
|
|
102
|
-
and (max-width: ${e.breakpoints.tablet})
|
|
103
|
-
{
|
|
104
|
-
${n};
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
108
|
-
${a};
|
|
109
|
-
}
|
|
110
|
-
`}
|
|
111
|
-
`,$=u.forwardRef(function({as:i="div",center:n,children:a,id:r,onHover:s,onLeave:l,styleMd:c,styleSm:d,...p},g){return t.jsx(Wi,{$center:n,$styleMd:c,$styleSm:d,as:i,id:r,onMouseLeave:l,onMouseOver:s,ref:g,...p,children:a})}),Ai=o.dt(Ue)`
|
|
112
|
-
${({theme:e,$bgGradient:i="unset",$color:n=e.palette.gray[800],$display:a="block",$fontFamily:r=e.typography.type.primary,$fontWeight:s="bold",$letterSpacing:l=0,$lineSpacing:c=1.5,$lineSpacingSm:d,$size:p,$sizeMd:g,$sizeSm:x,$textFill:f="unset",$whiteSpace:h="pre-line",$wordBreak:b="normal"})=>`
|
|
113
|
-
background: ${i};
|
|
114
|
-
color: ${n};
|
|
115
|
-
display: ${a};
|
|
116
|
-
font-family: ${r};
|
|
117
|
-
font-size: ${e.typography.heading[p]};
|
|
118
|
-
font-weight: ${e.typography.weight[s]};
|
|
119
|
-
letter-spacing: ${l};
|
|
120
|
-
line-height: ${e.spacing[c]};
|
|
121
|
-
width: ${a==="block"?"100%":"auto"};
|
|
122
|
-
white-space: ${h};
|
|
123
|
-
word-break: ${b};
|
|
124
|
-
background-clip: text;
|
|
125
|
-
-webkit-background-clip: text;
|
|
126
|
-
-webkit-text-fill-color: ${f};
|
|
127
|
-
|
|
128
|
-
@media screen
|
|
129
|
-
and (min-width: ${e.breakpoints.mobile})
|
|
130
|
-
and (max-width: ${e.breakpoints.tablet})
|
|
131
|
-
{
|
|
132
|
-
font-size: ${e.typography.heading[g??p]};
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
136
|
-
font-size: ${e.typography.heading[x??p]};
|
|
137
|
-
line-height: ${e.spacing[d??c]};
|
|
138
|
-
}
|
|
139
|
-
`}
|
|
140
|
-
`,ut=o.dt(Ue)`
|
|
141
|
-
${({theme:e,$bgGradient:i="unset",$color:n=e.palette.gray[600],$display:a="block",$fontFamily:r=e.typography.type.primary,$fontWeight:s="regular",$letterSpacing:l=0,$lineSpacing:c=1.25,$lineSpacingSm:d,$size:p,$sizeMd:g,$sizeSm:x,$textFill:f="unset",$whiteSpace:h="pre-line",$wordBreak:b="normal"})=>`
|
|
142
|
-
background: ${i};
|
|
143
|
-
color: ${n};
|
|
144
|
-
display: ${a};
|
|
145
|
-
font-family: ${r};
|
|
146
|
-
font-size: ${e.typography.text[p]};
|
|
147
|
-
font-weight: ${e.typography.weight[s]};
|
|
148
|
-
letter-spacing: ${l};
|
|
149
|
-
line-height: ${e.spacing[c]};
|
|
150
|
-
width: ${a==="block"?"100%":"auto"};
|
|
151
|
-
white-space: ${h};
|
|
152
|
-
word-break: ${b};
|
|
153
|
-
background-clip: text;
|
|
154
|
-
-webkit-background-clip: text;
|
|
155
|
-
-webkit-text-fill-color: ${f};
|
|
156
|
-
|
|
157
|
-
@media screen
|
|
158
|
-
and (min-width: ${e.breakpoints.mobile})
|
|
159
|
-
and (max-width: ${e.breakpoints.tablet})
|
|
160
|
-
{
|
|
161
|
-
font-size: ${e.typography.text[g??p]};
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
165
|
-
font-size: ${e.typography.text[x??p]};
|
|
166
|
-
line-height: ${e.spacing[d??c]};
|
|
167
|
-
}
|
|
168
|
-
`}
|
|
169
|
-
`,Bi=o.dt(Ge)`
|
|
170
|
-
${({theme:e,$color:i=e.palette.gray[600],$content:n=void 0,$display:a="inline",$fontWeight:r="regular",$size:s,$lineSpacing:l=1.25})=>`
|
|
171
|
-
color: ${i};
|
|
172
|
-
display: ${a};
|
|
173
|
-
font-family: ${e.typography.type.primary};
|
|
174
|
-
font-size: ${e.typography.text[s]};
|
|
175
|
-
font-weight: ${e.typography.weight[r]};
|
|
176
|
-
line-height: ${e.spacing[l]};
|
|
177
|
-
width: ${a==="block"?"100%":"auto"};
|
|
178
|
-
|
|
179
|
-
${n===void 0?"":`&::after { content: "${n}"; }`}
|
|
180
|
-
`}
|
|
181
|
-
`,_=u.forwardRef(function({bgGradient:i,children:n,className:a,color:r,display:s,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:p,lineSpacingSm:g,size:x,sizeMd:f,sizeSm:h,textFill:b,whiteSpace:m,wordBreak:y,...w},j){return t.jsx(Ai,{$bgGradient:i,$color:r,$display:s,$fontFamily:l,$fontWeight:c,$letterSpacing:d,$lineSpacing:p,$lineSpacingSm:g,$size:x,$sizeMd:f,$sizeSm:h,$textFill:b,$whiteSpace:m,$wordBreak:y,className:a,ref:j,...w,children:n})}),oe=u.forwardRef(function({children:i,color:n,content:a,display:r,fontFamily:s,fontWeight:l,letterSpacing:c,lineSpacing:d,lineSpacingSm:p,size:g,sizeMd:x,sizeSm:f,...h},b){return t.jsx(Bi,{$color:n,$content:a,$display:r,$fontFamily:s,$fontWeight:l,$letterSpacing:c,$lineSpacing:d,$lineSpacingSm:p,$size:g,$sizeMd:x,$sizeSm:f,ref:b,...h,children:i})}),v=u.forwardRef(function({bgGradient:i,children:n,className:a,color:r,display:s,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:p,lineSpacingSm:g,size:x,sizeMd:f,sizeSm:h,textFill:b,whiteSpace:m,wordBreak:y,...w},j){return t.jsx(ut,{$bgGradient:i,$color:r,$display:s,$fontFamily:l,$fontWeight:c,$letterSpacing:d,$lineSpacing:p,$lineSpacingSm:g,$size:x,$sizeMd:f,$sizeSm:h,$textFill:b,$whiteSpace:m,$wordBreak:y,className:a,ref:j,...w,children:n})}),ft=({item:e})=>{const i=e.description&&typeof e.description=="string"?t.jsx(v,{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]})},_i={xl:"96px",lg:"64px",md:"32px",sm:"24px",xs:"16px",xxs:"12px",xxss:"10px"},Oi=o.dt(Ge)`
|
|
182
|
-
${({$clickable:e,$color:i="inherit",$disabled:n=!1,$hoverColor:a,$rotation:r,$size:s,$secondaryColor:l})=>{const c=a?"":"brightness(50%)",d=a??"";return`
|
|
183
|
-
color: ${i};
|
|
184
|
-
cursor: ${e?"pointer":"inherit"};
|
|
185
|
-
font-size: ${_i[s]};
|
|
186
|
-
line-height: 0;
|
|
187
|
-
vertical-align: middle;
|
|
188
|
-
pointer-events: inherit;
|
|
189
|
-
opacity: ${n?"0.5":"1"};
|
|
190
|
-
|
|
191
|
-
> svg {
|
|
192
|
-
--fa-secondary-color: ${l};
|
|
193
|
-
transform: ${r===void 0?"":`rotate(${r}deg)`};
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.fill-gradient-01 path {
|
|
197
|
-
fill: url(/gradients.svg#gradient-01);
|
|
198
|
-
fill: url(#gradient-01);
|
|
199
|
-
}
|
|
200
|
-
.fill-gradient-02 path {
|
|
201
|
-
fill: url(/gradients.svg#gradient-02);
|
|
202
|
-
fill: url(#gradient-02);
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
${e?`&:hover {
|
|
206
|
-
filter: ${c};
|
|
207
|
-
color: ${d};
|
|
208
|
-
}`:""}
|
|
209
|
-
`}}
|
|
210
|
-
`;o.dt.div`
|
|
211
|
-
cursor: pointer;
|
|
212
|
-
transition: all 0.2s ease-in-out;
|
|
213
|
-
|
|
214
|
-
&:hover:not([disabled]) {
|
|
215
|
-
transform: scale(1.2);
|
|
216
|
-
}
|
|
217
|
-
`;const S=u.forwardRef(function({clickable:i,disabled:n,hoverColor:a,icon:r,iconClass:s="",iconColor:l,iconMask:c,iconSize:d,iconTransform:p,iconType:g="fa-solid",onClick:x,rotation:f,spanClass:h,secondaryColor:b,...m},y){return t.jsx(Oi,{$clickable:i,$color:l,$disabled:n,$hoverColor:a,$rotation:f,$secondaryColor:b,$size:d,className:h,"data-testid":`${r}-icon`,onClick:x,ref:y,...m,children:t.jsx("i",{className:`${g} fa-${r} ${s}`,...c!==void 0?{"data-fa-mask":c}:{},...p!==void 0?{"data-fa-transform":p}:{}})},`${g}-${r}`)}),Mi=u.forwardRef(function({aligned:i="end",items:n,bgColor:a},r){const s=o.nt(),[l,c]=u.useState(!1),[d,p]=u.useState(-1),g=u.useCallback(x=>()=>{p(x),c(x===d?f=>!f:!0)},[d]);return t.jsx($,{ref:r,children:n.map((x,f)=>{const h=f===d&&l;return t.jsxs($,{bgColor:a??s.palette.white,children:[t.jsx($,{"aria-controls":`panel-${x.title}`,"aria-expanded":l,"aria-label":x.title,as:"button",bgColor:a??s.palette.white,bgColorHover:s.palette.gray[100],borderBottom:h||f===n.length-1?"1px solid":void 0,borderColor:s.palette.gray[200],borderTop:"1px solid",cursor:"pointer",display:"flex",onClick:g(f),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(v,{color:s.palette.gray[800],fontWeight:"bold",size:"sm",sizeSm:"sm",textAlign:"start",children:x.title}),t.jsx(S,{icon:h?"chevron-up":"chevron-down",iconColor:s.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]})}),h&&t.jsx(ft,{item:x})]},x.title)})})}),Hi=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
|
-
background: ${e.palette.error[50]};
|
|
219
|
-
border: 1px solid ${e.palette.error[500]};
|
|
220
|
-
color: ${e.palette.error[700]};
|
|
221
|
-
|
|
222
|
-
button {
|
|
223
|
-
color: ${e.palette.error[700]};
|
|
224
|
-
|
|
225
|
-
&:hover:not([disabled]) {
|
|
226
|
-
background-color: ${e.palette.error[200]};
|
|
227
|
-
color: ${e.palette.error[700]};
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
`,info:`
|
|
231
|
-
background: ${e.palette.info[50]};
|
|
232
|
-
border: 1px solid ${e.palette.info[500]};
|
|
233
|
-
color: ${e.palette.info[700]};
|
|
234
|
-
|
|
235
|
-
button {
|
|
236
|
-
color: ${e.palette.info[700]};
|
|
237
|
-
|
|
238
|
-
&:hover:not([disabled]) {
|
|
239
|
-
background-color: ${e.palette.info[200]};
|
|
240
|
-
color: ${e.palette.info[700]};
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
`,success:`
|
|
244
|
-
background: ${e.palette.success[50]};
|
|
245
|
-
border: 1px solid ${e.palette.success[500]};
|
|
246
|
-
color: ${e.palette.success[700]};
|
|
247
|
-
|
|
248
|
-
button {
|
|
249
|
-
color: ${e.palette.success[700]};
|
|
250
|
-
|
|
251
|
-
&:hover:not([disabled]) {
|
|
252
|
-
background-color: ${e.palette.success[200]};
|
|
253
|
-
color: ${e.palette.success[700]};
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
`,warning:`
|
|
257
|
-
background: ${e.palette.warning[50]};
|
|
258
|
-
border: 1px solid ${e.palette.warning[500]};
|
|
259
|
-
color: ${e.palette.warning[700]};
|
|
260
|
-
|
|
261
|
-
button {
|
|
262
|
-
color: ${e.palette.warning[700]};
|
|
263
|
-
|
|
264
|
-
&:hover:not([disabled]) {
|
|
265
|
-
background-color: ${e.palette.warning[200]};
|
|
266
|
-
color: ${e.palette.warning[700]};
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
`})),Ui=o.dt.div`
|
|
270
|
-
${({theme:e,$variant:i})=>`
|
|
271
|
-
background: transparent;
|
|
272
|
-
align-items: center;
|
|
273
|
-
border-radius: ${e.spacing[.25]};
|
|
274
|
-
display: inline-flex;
|
|
275
|
-
font-family: ${e.typography.type.primary};
|
|
276
|
-
font-size: ${e.typography.text.sm};
|
|
277
|
-
font-weight: ${e.typography.weight.bold};
|
|
278
|
-
line-height: ${e.spacing[1.25]};
|
|
279
|
-
min-width: 250px;
|
|
280
|
-
width: 100%;
|
|
281
|
-
padding: ${e.spacing[.75]};
|
|
282
|
-
position: relative;
|
|
283
|
-
gap: ${e.spacing[.75]};
|
|
284
|
-
|
|
285
|
-
button {
|
|
286
|
-
background-color: transparent;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
${Vi(e,i??"error")}
|
|
290
|
-
`}
|
|
291
|
-
`,Gi=o.dt.div`
|
|
292
|
-
padding-right: 4px;
|
|
293
|
-
width: 100%;
|
|
294
|
-
`,{getVariant:Yi}=U(e=>({ghost:`
|
|
295
|
-
background: transparent;
|
|
296
|
-
border: none;
|
|
297
|
-
color: ${e.palette.gray[800]};
|
|
298
|
-
--btn-padding-x: ${e.spacing[.5]};
|
|
299
|
-
--btn-padding-y: ${e.spacing[.625]};
|
|
300
|
-
--btn-spacing: ${e.spacing[.25]};
|
|
301
|
-
|
|
302
|
-
&:disabled {
|
|
303
|
-
color: ${e.palette.gray[400]};
|
|
304
|
-
cursor: not-allowed;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
&:hover:not([disabled]) {
|
|
308
|
-
background-color: ${e.palette.gray[100]};
|
|
309
|
-
color: ${e.palette.gray[800]};
|
|
310
|
-
}
|
|
311
|
-
`,link:`
|
|
312
|
-
--btn-padding-x: 0;
|
|
313
|
-
--btn-padding-y: 0;
|
|
314
|
-
color: ${e.palette.gray[800]};
|
|
315
|
-
|
|
316
|
-
&:hover {
|
|
317
|
-
color: ${e.palette.gray[500]};
|
|
318
|
-
}
|
|
319
|
-
`,primary:`
|
|
320
|
-
background: ${e.palette.primary[500]};
|
|
321
|
-
border: none;
|
|
322
|
-
color: ${e.palette.white};
|
|
323
|
-
--btn-spacing: ${e.spacing[.25]};
|
|
324
|
-
|
|
325
|
-
&:disabled {
|
|
326
|
-
background: ${e.palette.gray[200]};
|
|
327
|
-
color: ${e.palette.gray[400]};
|
|
328
|
-
cursor: not-allowed;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
&:hover:not([disabled]) {
|
|
332
|
-
background-color: ${e.palette.primary[700]};
|
|
333
|
-
color: ${e.palette.white};
|
|
334
|
-
}
|
|
335
|
-
`,secondary:`
|
|
336
|
-
background: ${e.palette.gray[800]};
|
|
337
|
-
border: none;
|
|
338
|
-
color: ${e.palette.white};
|
|
339
|
-
--btn-spacing: ${e.spacing[.25]};
|
|
340
|
-
|
|
341
|
-
&:disabled {
|
|
342
|
-
background: ${e.palette.gray[200]};
|
|
343
|
-
color: ${e.palette.gray[400]};
|
|
344
|
-
cursor: not-allowed;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
&:hover:not([disabled]) {
|
|
348
|
-
background-color: ${e.palette.gray[600]};
|
|
349
|
-
color: ${e.palette.white};
|
|
350
|
-
}
|
|
351
|
-
`,tertiary:`
|
|
352
|
-
background: transparent;
|
|
353
|
-
border: 1px solid ${e.palette.primary[500]};
|
|
354
|
-
color: ${e.palette.primary[500]};
|
|
355
|
-
--btn-spacing: ${e.spacing[.25]};
|
|
356
|
-
|
|
357
|
-
&:disabled {
|
|
358
|
-
background: transparent;
|
|
359
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
360
|
-
color: ${e.palette.gray[300]};
|
|
361
|
-
cursor: not-allowed;
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
&:hover:not([disabled]) {
|
|
365
|
-
background-color: ${e.palette.primary[500]};
|
|
366
|
-
color: ${e.palette.white};
|
|
367
|
-
}
|
|
368
|
-
`})),ht=o.dt(Ve)`
|
|
369
|
-
${({theme:e,justify:i,$size:n,$variant:a})=>`
|
|
370
|
-
align-items: center;
|
|
371
|
-
border-radius: var(--btn-spacing);
|
|
372
|
-
cursor: pointer;
|
|
373
|
-
display: inline-flex;
|
|
374
|
-
font-family: ${e.typography.type.primary};
|
|
375
|
-
font-size: ${n??e.typography.text.sm};
|
|
376
|
-
font-weight: ${e.typography.weight.regular};
|
|
377
|
-
gap: var(--btn-spacing);
|
|
378
|
-
justify-content: ${i??"center"};
|
|
379
|
-
line-height: ${e.spacing[1.25]};
|
|
380
|
-
padding: var(--btn-padding-y) var(--btn-padding-x);
|
|
381
|
-
position: relative;
|
|
382
|
-
text-align: start;
|
|
383
|
-
transition: all 0.5s ease;
|
|
384
|
-
white-space: nowrap;
|
|
385
|
-
|
|
386
|
-
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
387
|
-
${a!=="link"?`--btn-padding-y: ${e.spacing[1]}`:""};
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
${Yi(e,a??"primary")}
|
|
391
|
-
`}
|
|
392
|
-
`,qi=o.dt(ht)`
|
|
393
|
-
${({theme:e,$borderRadius:i="4px",$px:n=.5,$py:a=.5})=>`
|
|
394
|
-
--btn-spacing: ${i};
|
|
395
|
-
--btn-padding-x: ${e.spacing[n]};
|
|
396
|
-
--btn-padding-y: ${e.spacing[a]};
|
|
397
|
-
|
|
398
|
-
align-items: center;
|
|
399
|
-
line-height: 0;
|
|
400
|
-
text-align: center;
|
|
401
|
-
|
|
402
|
-
> span {
|
|
403
|
-
margin: 0 !important;
|
|
404
|
-
}
|
|
405
|
-
`}
|
|
406
|
-
`,Ki=o.dt(be)``,Xi=o.dt.div`
|
|
407
|
-
${({theme:e,$maxWidth:i="320px"})=>`
|
|
408
|
-
background-color: ${e.palette.gray[700]};
|
|
409
|
-
border-radius: 8px;
|
|
410
|
-
color: ${e.palette.white};
|
|
411
|
-
font-size: ${e.typography.text.xs};
|
|
412
|
-
max-width: ${i};
|
|
413
|
-
padding: ${e.spacing[.75]};
|
|
414
|
-
width: max-content;
|
|
415
|
-
z-index: 999999;
|
|
416
|
-
`}
|
|
417
|
-
`,V=({children:e,disabled:i=!1,display:n="inline-block",height:a,icon:r,iconColor:s,iconSize:l,id:c,maxWidth:d,nodeTip:p,place:g="bottom",tip:x="",title:f="",hide:h=x===""&&f===""&&p===void 0,width:b})=>{const m=o.nt(),[y,w]=u.useState(!1),{refs:j,floatingStyles:C,context:k}=o.useFloating({middleware:[o.flip({fallbackAxisSideDirection:"start"}),o.offset({mainAxis:10}),o.shift()],onOpenChange:w,open:y,placement:g,whileElementsMounted:o.autoUpdate}),T=o.useHover(k,{delay:{close:0,open:500},move:!1}),I=o.useFocus(k),N=o.useRole(k,{role:r?"label":"tooltip"}),{getReferenceProps:E,getFloatingProps:W}=o.useInteractions([T,I,N]);return i?t.jsx(u.StrictMode,{children:e}):t.jsxs(t.Fragment,{children:[t.jsx(Ki,{...E(),display:n,height:a,id:c,ref:j.setReference,width:b,children:r?t.jsx(S,{clickable:!0,disabled:i,icon:r,iconColor:s,iconSize:l??"xxs",iconType:y?"fa-solid":"fa-light"}):e}),y&&!h&&X.createPortal(t.jsxs(Xi,{...W(),$maxWidth:d,id:`floating-${c}`,ref:j.setFloating,style:C,children:[o.lodashExports.isEmpty(f)?void 0:t.jsx(v,{color:m.palette.white,fontWeight:"bold",lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:f}),o.lodashExports.isEmpty(x)?void 0:t.jsx(v,{color:m.palette.gray[100],lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:x}),o.lodashExports.isEmpty(p)?void 0:p]}),document.getElementById("root")??document.body)]})},B=u.forwardRef(function({borderRadius:i,disabled:n,icon:a,iconColor:r,iconSize:s="xxs",iconTransform:l,iconType:c,id:d,justify:p="center",onClick:g,px:x,py:f,type:h="button",tooltip:b,tooltipPlace:m,value:y,variant:w="primary",...j},C){const k=t.jsx(qi,{$borderRadius:i,$px:x,$py:f,$variant:w,"aria-disabled":n,"aria-label":d,borderRadius:i,disabled:n,id:d,justify:p,onClick:g,ref:C,type:h,value:y,...j,children:t.jsx(S,{clickable:!1,icon:a,iconColor:r,iconSize:s,iconTransform:l,iconType:c})}),I=(h+(w??"")+(d??a)).replace(/ /u,"_");return b===void 0?k:t.jsx(V,{id:`${I}-tooltip`,place:m,tip:b,children:k})}),Zi=u.forwardRef(function({autoHide:i=!1,children:n,closable:a=!1,onTimeOut:r,show:s=!0,time:l=8,variant:c="error",id:d,...p},g){const[x,f]=u.useState(s),h=u.useCallback(()=>{f(!1)},[]);return u.useEffect(()=>{const b=setTimeout(()=>{r==null||r(!0),i&&h()},l*1e3);return()=>{clearTimeout(b)}},[i,h,l,r]),u.useEffect(()=>{f(s)},[s,f]),t.jsx($,{display:x?"block":"none",ref:g,role:"alert",...p,children:t.jsxs(Ui,{$variant:c,id:d,children:[t.jsx(S,{clickable:!1,icon:Hi(c),iconSize:"xs",iconType:"fa-light"}),t.jsx(Gi,{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=o.dt.div`
|
|
418
|
-
${({theme:e})=>`
|
|
419
|
-
align-items: center;
|
|
420
|
-
background-color: ${e.palette.gray[200]};
|
|
421
|
-
border-radius: 100%;
|
|
422
|
-
color: ${e.palette.gray[800]};
|
|
423
|
-
display: flex;
|
|
424
|
-
font-family: ${e.typography.type.primary};
|
|
425
|
-
font-size: ${e.typography.text.xs};
|
|
426
|
-
font-weight: 500;
|
|
427
|
-
line-height: 18px;
|
|
428
|
-
justify-content: center;
|
|
429
|
-
text-align: center;
|
|
430
|
-
width: ${e.spacing[1.25]};
|
|
431
|
-
height: ${e.spacing[1.25]};
|
|
432
|
-
`}
|
|
433
|
-
`,Ji=o.dt.div`
|
|
434
|
-
ul,
|
|
435
|
-
ol {
|
|
436
|
-
padding-top: 6px;
|
|
437
|
-
padding-bottom: 6px;
|
|
438
|
-
background-color: #fff;
|
|
439
|
-
position: absolute;
|
|
440
|
-
top: 40px;
|
|
441
|
-
right: 1px;
|
|
442
|
-
z-index: 1;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
.no-hover,
|
|
446
|
-
.user-info {
|
|
447
|
-
text-decoration: none;
|
|
448
|
-
display: flex;
|
|
449
|
-
justify-content: space-between;
|
|
450
|
-
height: auto;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
.user-info,
|
|
454
|
-
.commit-info {
|
|
455
|
-
padding-left: 16px;
|
|
456
|
-
padding-right: 16px;
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
.user-info {
|
|
460
|
-
padding-top: 10px;
|
|
461
|
-
padding-bottom: 1px;
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
.commit-info {
|
|
465
|
-
padding-top: 1px;
|
|
466
|
-
padding-bottom: 10px;
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
li {
|
|
470
|
-
list-style-type: none;
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
span {
|
|
474
|
-
white-space: nowrap;
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
a {
|
|
478
|
-
color: ${({theme:e})=>e.palette.gray[800]};
|
|
479
|
-
text-decoration: none;
|
|
480
|
-
padding: unset;
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
a:hover {
|
|
484
|
-
text-decoration: none;
|
|
485
|
-
color: ${({theme:e})=>e.palette.gray[800]};
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
#menu-profile-container ul {
|
|
489
|
-
min-width: unset;
|
|
490
|
-
width: auto;
|
|
491
|
-
z-index: 10;
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
#menu-profile-container li div {
|
|
495
|
-
min-width: unset;
|
|
496
|
-
}
|
|
497
|
-
`,{getVariant:Qi}=U(e=>({default:`
|
|
498
|
-
background-color: ${e.palette.gray[200]};
|
|
499
|
-
color: ${e.palette.gray[800]};
|
|
500
|
-
`,error:`
|
|
501
|
-
&.high {
|
|
502
|
-
background-color: ${e.palette.error[700]};
|
|
503
|
-
color: ${e.palette.white};
|
|
504
|
-
}
|
|
505
|
-
&.low {
|
|
506
|
-
background-color: ${e.palette.error[50]};
|
|
507
|
-
color: ${e.palette.error[700]};
|
|
508
|
-
}
|
|
509
|
-
&.medium {
|
|
510
|
-
background-color: ${e.palette.error[500]};
|
|
511
|
-
color: ${e.palette.error[50]};
|
|
512
|
-
}
|
|
513
|
-
`,inactive:`
|
|
514
|
-
background-color: ${e.palette.gray[200]};
|
|
515
|
-
color: ${e.palette.gray[600]};
|
|
516
|
-
`,info:`
|
|
517
|
-
&.high {
|
|
518
|
-
background-color: ${e.palette.info[700]};
|
|
519
|
-
color: ${e.palette.white};
|
|
520
|
-
}
|
|
521
|
-
&.low {
|
|
522
|
-
background-color: ${e.palette.info[50]};
|
|
523
|
-
color: ${e.palette.info[700]};
|
|
524
|
-
}
|
|
525
|
-
&.medium {
|
|
526
|
-
background-color: ${e.palette.info[500]};
|
|
527
|
-
color: ${e.palette.info[50]};
|
|
528
|
-
}
|
|
529
|
-
`,reachable:`
|
|
530
|
-
background-color: ${e.palette.gray[50]};
|
|
531
|
-
color: ${e.palette.gray[800]};
|
|
532
|
-
`,remediation:`
|
|
533
|
-
background-color: inherit;
|
|
534
|
-
border: 1px solid ${e.palette.gray[300]};
|
|
535
|
-
color: ${e.palette.gray[400]};
|
|
536
|
-
`,role:`
|
|
537
|
-
background-color: ${e.palette.gray[800]};
|
|
538
|
-
color: ${e.palette.white};
|
|
539
|
-
`,success:`
|
|
540
|
-
&.high {
|
|
541
|
-
background-color: ${e.palette.success[700]};
|
|
542
|
-
color: ${e.palette.white};
|
|
543
|
-
}
|
|
544
|
-
&.low {
|
|
545
|
-
background-color: ${e.palette.success[50]};
|
|
546
|
-
color: ${e.palette.success[700]};
|
|
547
|
-
}
|
|
548
|
-
&.medium {
|
|
549
|
-
background-color: ${e.palette.success[500]};
|
|
550
|
-
color: ${e.palette.success[50]};
|
|
551
|
-
}
|
|
552
|
-
`,technique:`
|
|
553
|
-
--tag-padding-y: ${e.spacing[.25]};
|
|
554
|
-
--tag-padding-x: ${e.spacing[.75]};
|
|
555
|
-
|
|
556
|
-
background-color: inherit;
|
|
557
|
-
border: 1px solid ${e.palette.success[800]};
|
|
558
|
-
color: ${e.palette.success[800]};
|
|
559
|
-
`,warning:`
|
|
560
|
-
&.high {
|
|
561
|
-
background-color: ${e.palette.warning[600]};
|
|
562
|
-
color: ${e.palette.white};
|
|
563
|
-
}
|
|
564
|
-
&.low {
|
|
565
|
-
background-color: ${e.palette.warning[50]};
|
|
566
|
-
color: ${e.palette.warning[700]};
|
|
567
|
-
}
|
|
568
|
-
&.medium {
|
|
569
|
-
background-color: ${e.palette.warning[400]};
|
|
570
|
-
color: ${e.palette.warning[700]};
|
|
571
|
-
}
|
|
572
|
-
`})),en=o.dt.span`
|
|
573
|
-
${({theme:e,$fontSize:i=e.typography.text.xs,$variant:n})=>`
|
|
574
|
-
align-items: center;
|
|
575
|
-
border-radius: ${e.spacing[n==="technique"?1:.25]};
|
|
576
|
-
display: inline-flex;
|
|
577
|
-
gap: ${e.spacing[.25]};
|
|
578
|
-
font-family: ${e.typography.type.primary};
|
|
579
|
-
font-size: ${i};
|
|
580
|
-
font-style: normal;
|
|
581
|
-
font-weight: ${e.typography.weight.regular};
|
|
582
|
-
justify-content: center;
|
|
583
|
-
line-height: 18px;
|
|
584
|
-
padding: var(--tag-padding-y) var(--tag-padding-x);
|
|
585
|
-
white-space: nowrap;
|
|
586
|
-
width: max-content;
|
|
587
|
-
|
|
588
|
-
~ a {
|
|
589
|
-
font-size: ${e.typography.text.xs};
|
|
590
|
-
display: flex;
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
${Qi(e,n)}
|
|
594
|
-
`}
|
|
595
|
-
`,{getVariant:tn}=U(e=>({highRelevance:`
|
|
596
|
-
color: ${e.palette.primary[500]};
|
|
597
|
-
|
|
598
|
-
&:hover:not([disabled]) {
|
|
599
|
-
color: ${e.palette.primary[400]};
|
|
600
|
-
}
|
|
601
|
-
`,lowRelevance:`
|
|
602
|
-
color: ${e.palette.gray[800]};
|
|
603
|
-
|
|
604
|
-
&:hover:not([disabled]) {
|
|
605
|
-
color: ${e.palette.gray[500]};
|
|
606
|
-
}
|
|
607
|
-
`})),bt=o.lt`
|
|
608
|
-
${({theme:e,$color:i,$variant:n})=>`
|
|
609
|
-
align-items: center;
|
|
610
|
-
cursor: pointer;
|
|
611
|
-
font-family: ${e.typography.type.primary};
|
|
612
|
-
font-size: ${e.typography.text.sm};
|
|
613
|
-
font-weight: ${e.typography.weight.regular};
|
|
614
|
-
gap: ${e.spacing[.25]};
|
|
615
|
-
line-height: ${e.spacing[1.25]};
|
|
616
|
-
text-decoration: underline;
|
|
617
|
-
word-break: break-word;
|
|
618
|
-
word-wrap: break-word;
|
|
619
|
-
|
|
620
|
-
&:disabled {
|
|
621
|
-
color: ${e.palette.gray[300]};
|
|
622
|
-
cursor: not-allowed;
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
&:has(button) {
|
|
626
|
-
text-decoration: none;
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
${i?`color: ${i}`:tn(e,n)}
|
|
630
|
-
`}
|
|
631
|
-
`,nn=o.dt.a`
|
|
632
|
-
${bt}
|
|
633
|
-
`,an=o.dt(De.Link)`
|
|
634
|
-
${bt}
|
|
635
|
-
`,Z=({children:e,color:i,download:n,href:a,iconPosition:r="right",onClick:s,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:s,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:s,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]})},G=({disabled:e,icon:i,iconColor:n="inherit",iconType:a="fa-light",id:r="close-tag",filterValues:s="",fontSize:l,href:c,linkLabel:d,onClose:p,priority:g="default",tagTitle:x="",tagLabel:f,variant:h="default"})=>{const b=f.length>25&&o.lodashExports.isEmpty(x+s),m=`${f.slice(0,25)}...`;return t.jsxs(oe,{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:b?m:f}),t.jsx("strong",{children:s})]}),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(Z,{href:c,children:d})]})},rn=(e,i=!0)=>{const n=window.open(e,i?void 0:"_self","noopener,noreferrer,");o.lodashExports.isObject(n)&&(n.opener=null)},R=u.forwardRef(function({children:i,disabled:n=!1,external:a=!1,fontSize:r,href:s,id:l,icon:c,name:d,onClick:p,showArrow:g=!1,tag:x,type:f="button",tooltip:h,tooltipPlace:b="bottom",underline:m=!1,value:y,variant:w="primary",width:j,...C},k){const T=h!==void 0,I=`${l}-tooltip`,N=u.useCallback(()=>{s&&rn(s,a)},[a,s]),E=t.jsxs(ht,{$size:r,$variant:w,"aria-disabled":n,className:m?"underline":void 0,disabled:n,id:l,name:d,onClick:w==="link"?N:p,ref:k,type:f,value:y,width:j,...T?{"data-tooltip-id":I}:{},...C,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(G,{tagLabel:x,variant:"inactive"})]});return T?t.jsx(V,{disabled:!T,id:I,place:b,tip:h,width:j,children:E}):E}),on=u.forwardRef(function({children:i,onClick:n,userName:a,showIcon:r=!1,showUsername:s=!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(R,{onClick:n,pb:.5,pl:.5,pr:.5,pt:.5,variant:"ghost",children:[t.jsx(it,{children:a[0].toUpperCase()}),s?t.jsx(v,{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()}),s?t.jsxs(v,{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:s,titleColor:l,textAlign:c,textSpacing:d=0,tooltip:p})=>{const g=o.nt();return t.jsxs($,{width:"100%",children:[typeof s=="string"?t.jsx(v,{color:l??g.palette.gray[800],fontWeight:"bold",mb:d,size:"sm",textAlign:c,wordBreak:"break-word",children:s}):s,t.jsxs($,{alignItems:"start",display:"flex",flexDirection:"column",gap:.25,children:[n&&t.jsx(v,{color:a??g.palette.gray[800],fontWeight:n===void 0?"bold":"regular",size:"sm",textAlign:c,wordBreak:"break-word",children:n}),i&&t.jsx(v,{color:g.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`Date: ${i.split(" ")[0]}`}),e&&t.jsx(v,{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=o.dt($).attrs(({...e})=>({display:"inline-block",position:"relative",...e}))`
|
|
636
|
-
& img {
|
|
637
|
-
display: block;
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
&::after {
|
|
641
|
-
content: "";
|
|
642
|
-
position: absolute;
|
|
643
|
-
top: 0;
|
|
644
|
-
left: 0;
|
|
645
|
-
width: 100%;
|
|
646
|
-
height: 100%;
|
|
647
|
-
pointer-events: none;
|
|
648
|
-
${({$opacity:e=0})=>`background-color: rgba(0, 0, 0, ${e});`}
|
|
649
|
-
}
|
|
650
|
-
`,sn=e=>{if(o._.isNil(e))return"";const i=e.split(".");return(i.length>1?o._.last(i):"").toLowerCase()},ln=(e,i)=>o._.isUndefined(i)?!1:o._.includes(e,sn(i)),yt=({alt:e,fileType:i,width:n="100%",opacity:a=0,src:r,height:s="auto"})=>i==="video"||ln(["webm"],r)?t.jsx(nt,{$opacity:a,children:t.jsxs("video",{controls:!0,muted:!0,style:{height:s,width:n},children:[t.jsx("source",{src:r,type:"video/webm"}),t.jsx(Z,{href:r,iconPosition:"hidden",children:r})]})}):t.jsx(nt,{$opacity:a,children:t.jsx("img",{alt:e,src:r,style:{height:s,width:n}})}),cn=({alt:e,authorEmail:i,date:n,description:a,src:r,children:s,isEditing:l,onClick:c,title:d,hideDescription:p=!1,headerType:g="image",showMaximize:x=!0})=>{const f=o.nt(),[h,b]=u.useState(!1),m=u.useCallback(()=>{b(!0)},[]),y=u.useCallback(()=>{b(!1)},[]);return t.jsxs($,{bgColor:"transparent",border:"1px solid transparent",borderColorHover:"black",borderRadius:f.spacing[.25],display:"flex",flexDirection:"column",gap:1,onHover:m,onLeave:y,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:s===void 0?t.jsxs(u.Fragment,{children:[t.jsx(yt,{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]}):s}),p?null:t.jsx(Se,{authorEmail:i,date:n,description:a,descriptionColor:f.palette.gray[600],id:`${e}-card-header`,title:d})]})},dn=o.dt.div`
|
|
651
|
-
${({theme:e,$align:i="center",$minWidth:n="auto",$minHeight:a="auto"})=>`
|
|
652
|
-
display: flex;
|
|
653
|
-
background-color: ${e.palette.white};
|
|
654
|
-
border-radius: ${e.spacing[.25]};
|
|
655
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
656
|
-
flex-direction: column;
|
|
657
|
-
justify-content: center;
|
|
658
|
-
gap: ${e.spacing[.5]};
|
|
659
|
-
min-width: ${n};
|
|
660
|
-
min-height: ${a};
|
|
661
|
-
padding: ${e.spacing[1]};
|
|
662
|
-
|
|
663
|
-
input {
|
|
664
|
-
color: ${e.palette.gray[800]};
|
|
665
|
-
line-height: ${e.spacing[1.5]};
|
|
666
|
-
text-align: ${i};
|
|
667
|
-
}
|
|
668
|
-
`}
|
|
669
|
-
`,Ye=({htmlFor:e,label:i,link:n,required:a,tooltip:r,weight:s="normal"})=>{const l=o.nt(),c=`${e}-tooltip`,d=r!==void 0&&!o.lodashExports.isEmpty(r);return t.jsxs("label",{className:`flex font-${s} gap-1 w-full`,htmlFor:e,children:[i,a&&t.jsx(S,{icon:"asterisk",iconColor:l.palette.error[500],iconSize:"xxss"}),n?t.jsx(Z,{href:n,target:"_blank"}):null,d?t.jsx(V,{display:"inline-flex",icon:"circle-info",id:c,place:"top",tip:r}):null]})},pn=o.dt.div`
|
|
670
|
-
${({theme:e})=>`
|
|
671
|
-
align-items: flex-start;
|
|
672
|
-
display: inline-flex;
|
|
673
|
-
flex-direction: column;
|
|
674
|
-
gap: ${e.spacing[.25]};
|
|
675
|
-
position: relative;
|
|
676
|
-
width: 100%;
|
|
677
|
-
|
|
678
|
-
label {
|
|
679
|
-
color: ${e.palette.gray[800]};
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
&:has(input.date-input) {
|
|
683
|
-
div {
|
|
684
|
-
padding-right: 0;
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
&:has(input[type="file"]) {
|
|
689
|
-
div {
|
|
690
|
-
border-right: unset;
|
|
691
|
-
padding-right: 0;
|
|
692
|
-
|
|
693
|
-
&:hover, &:focus-within {
|
|
694
|
-
border-right: unset;
|
|
695
|
-
}
|
|
696
|
-
}
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
> *:not(.error-msg) {
|
|
700
|
-
font-family: ${e.typography.type.primary};
|
|
701
|
-
font-size: ${e.typography.text.sm};
|
|
702
|
-
font-style: normal;
|
|
703
|
-
font-weight: ${e.typography.weight.regular};
|
|
704
|
-
line-height: ${e.spacing[1.25]};
|
|
705
|
-
}
|
|
706
|
-
`}
|
|
707
|
-
`,J=o.dt.div`
|
|
708
|
-
${({theme:e,$overflowX:i})=>`
|
|
709
|
-
align-items: center;
|
|
710
|
-
display: flex;
|
|
711
|
-
border-radius: ${e.spacing[.5]};
|
|
712
|
-
border: 1px solid;
|
|
713
|
-
border-color: ${e.palette.gray[300]};
|
|
714
|
-
color: ${e.palette.gray[600]};
|
|
715
|
-
gap: ${e.spacing[.625]};
|
|
716
|
-
justify-content: space-between;
|
|
717
|
-
height: 40px;
|
|
718
|
-
overflow-x: ${i??"unset"};
|
|
719
|
-
padding: ${i===void 0?`${e.spacing[.625]} ${e.spacing[.75]}`:`${e.spacing[.25]} ${e.spacing[.75]}`};
|
|
720
|
-
width: 100%;
|
|
721
|
-
white-space: nowrap;
|
|
722
|
-
|
|
723
|
-
input, textarea {
|
|
724
|
-
background: inherit;
|
|
725
|
-
color: ${e.palette.gray[800]};
|
|
726
|
-
cursor: inherit;
|
|
727
|
-
outline: none;
|
|
728
|
-
resize: none;
|
|
729
|
-
width: 100%;
|
|
730
|
-
|
|
731
|
-
&::placeholder {
|
|
732
|
-
color: ${e.palette.gray[400]};
|
|
733
|
-
}
|
|
734
|
-
|
|
735
|
-
&:focus-visible {
|
|
736
|
-
outline: none;
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
&[type="number"] {
|
|
740
|
-
appearance: textfield;
|
|
741
|
-
}
|
|
742
|
-
|
|
743
|
-
&::-webkit-outer-spin-button,
|
|
744
|
-
&::-webkit-inner-spin-button {
|
|
745
|
-
appearance: none;
|
|
746
|
-
margin: 0;
|
|
747
|
-
}
|
|
748
|
-
|
|
749
|
-
&::-webkit-calendar-picker-indicator {
|
|
750
|
-
display: none !important;
|
|
751
|
-
}
|
|
752
|
-
}
|
|
753
|
-
|
|
754
|
-
input.date-input {
|
|
755
|
-
display: none;
|
|
756
|
-
width: 0;
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
&:has(textarea) {
|
|
760
|
-
align-items: start;
|
|
761
|
-
height: auto;
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
&:has(input[type="number"]) {
|
|
765
|
-
padding-right: 0;
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
textarea {
|
|
769
|
-
min-height: ${e.spacing[6]};
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
span:not(.action) {
|
|
773
|
-
font-size: 14px;
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
&.disabled {
|
|
777
|
-
background: ${e.palette.gray[100]};
|
|
778
|
-
cursor: not-allowed;
|
|
779
|
-
|
|
780
|
-
> * {
|
|
781
|
-
color: ${e.palette.gray[400]};
|
|
782
|
-
}
|
|
783
|
-
}
|
|
784
|
-
|
|
785
|
-
&.error:not(.disabled) {
|
|
786
|
-
border: 1px solid ${e.palette.error[500]};
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
&.success:not(.disabled) {
|
|
790
|
-
border: 1px solid ${e.palette.success[500]};
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
&:focus-within:not(.disabled, .error) {
|
|
794
|
-
background: ${e.palette.white};
|
|
795
|
-
border: 2px solid ${e.palette.black};
|
|
796
|
-
|
|
797
|
-
button.action-btn {
|
|
798
|
-
height: 36px;
|
|
799
|
-
width: 40px;
|
|
800
|
-
}
|
|
801
|
-
|
|
802
|
-
* > .success-icon {
|
|
803
|
-
display: none;
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
|
|
807
|
-
&:hover:not(:focus-within, .disabled, .error, .success) {
|
|
808
|
-
background: ${e.palette.white};
|
|
809
|
-
border: 1px solid ${e.palette.gray[600]};
|
|
810
|
-
}
|
|
811
|
-
`}
|
|
812
|
-
`,O=({children:e,error:i,helpLink:n,helpLinkText:a="Link here",helpText:r,htmlFor:s,label:l,linkPosition:c="down",maxLength:d,required:p,tooltip:g,value:x,weight:f})=>{const h=o.nt(),b=x?x.length:0;return t.jsxs(pn,{children:[l===void 0?void 0:t.jsx(Ye,{htmlFor:s,label:l,link:c==="up"?n:void 0,required:p,tooltip:g,weight:f}),e,i||d?t.jsxs($,{display:"flex",justify:i===void 0?"end":"space-between",width:"100%",children:[i&&t.jsx(v,{className:"error-msg",color:h.palette.error[500],display:"block",lineSpacing:1,size:"sm",children:i}),d&&t.jsx(G,{priority:"low",tagLabel:`${b}/${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(v,{color:h.palette.gray[400],display:"inline-block",size:"sm",children:r})]}),n&&c==="down"?t.jsx(Z,{href:n,children:a}):void 0]}):void 0]})},ye=({className:e,children:i,isFilter:n=!1,popoverRef:a,state:r,triggerRef:s,...l})=>{var x;const c=u.useRef(null),d=(x=s==null?void 0:s.current)==null?void 0:x.getBoundingClientRect(),{popoverProps:p}=o.$f2f8a6077418541e$export$542a6fd13ac93354({...l,popoverRef:a??c,triggerRef:s,isNonModal:a?!0:void 0},r),g=u.useCallback(f=>{f.preventDefault()},[]);return t.jsx(o.$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=o.dt.ul`
|
|
813
|
-
${({theme:e})=>`
|
|
814
|
-
align-self: center;
|
|
815
|
-
background: ${e.palette.white};
|
|
816
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
817
|
-
border-radius: ${e.spacing[.25]};
|
|
818
|
-
box-shadow: ${e.shadows.md};
|
|
819
|
-
list-style: none;
|
|
820
|
-
max-height: 200px;
|
|
821
|
-
min-width: 240px;
|
|
822
|
-
overflow: hidden auto;
|
|
823
|
-
scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
|
|
824
|
-
scroll-padding: ${e.spacing[.5]};
|
|
825
|
-
width: 95%;
|
|
826
|
-
`}
|
|
827
|
-
`,xn=o.dt.li`
|
|
828
|
-
${({theme:e})=>`
|
|
829
|
-
align-items: center;
|
|
830
|
-
color: ${e.palette.gray[800]};
|
|
831
|
-
cursor: pointer;
|
|
832
|
-
display: flex;
|
|
833
|
-
gap: ${e.spacing[.5]};
|
|
834
|
-
justify-content: space-between;
|
|
835
|
-
line-height: ${e.spacing[1.25]};
|
|
836
|
-
padding: ${e.spacing[.25]} ${e.spacing[1]};
|
|
837
|
-
|
|
838
|
-
p {
|
|
839
|
-
overflow: hidden;
|
|
840
|
-
}
|
|
841
|
-
|
|
842
|
-
span {
|
|
843
|
-
color: ${e.palette.gray[700]};
|
|
844
|
-
}
|
|
845
|
-
|
|
846
|
-
&:hover {
|
|
847
|
-
background: ${e.palette.gray[100]};
|
|
848
|
-
}
|
|
849
|
-
|
|
850
|
-
&.selected {
|
|
851
|
-
background: ${e.palette.gray[200]};
|
|
852
|
-
}
|
|
853
|
-
|
|
854
|
-
&.disabled {
|
|
855
|
-
cursor: not-allowed;
|
|
856
|
-
|
|
857
|
-
p {
|
|
858
|
-
color: ${e.palette.gray[400]};
|
|
859
|
-
}
|
|
860
|
-
}
|
|
861
|
-
`}
|
|
862
|
-
`,$t=({item:e,state:i})=>{const n=o.nt(),a=u.useRef(null),{optionProps:r,isSelected:s,isFocused:l,isDisabled:c}=o.$293f70390ea03370$export$497855f14858aa34({key:e.key},i,a),d=[s?"selected":"",l?"focused":"",c?"disabled":""].join(" ");return t.jsxs(xn,{...r,className:d,ref:a,children:[t.jsx(v,{color:n.palette.gray[800],size:"sm",textOverflow:"ellipsis",whiteSpace:"nowrap",children:e.rendered}),s?t.jsx(S,{icon:"check",iconSize:"xxs",iconType:"fa-light"}):void 0]})},Le=({field:e,disabled:i=!1,error:n,helpLink:a,helpLinkText:r,helpText:s,label:l,loadingItems:c,name:d,items:p,onBlur:g,onChange:x,placeholder:f,required:h,tooltip:b,value:m,weight:y})=>{var tt;const w=o.nt(),j=i?void 0:n,C=(e==null?void 0:e.value)??m,[k,T]=u.useState(((tt=p.find(P=>P.value===C))==null?void 0:tt.name)??""),[I,N]=u.useState(C),[E,W]=u.useState(p),[D,L]=u.useState(!1),{contains:q}=o.$bb77f239b46e8c72$export$3274cf84b703fff({sensitivity:"base"}),Q=u.useRef(null),ie=u.useRef(null),A=u.useRef(null),M=u.useRef(null),ee=u.useRef(null),Re=u.useMemo(()=>p.map(P=>q(P.name,k)||D?t.jsx(o.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,{children:P.name},P.value):null),[q,k,p,D]),gi=u.useCallback(P=>{T(P),P===""?L(!0):(L(!1),N(H=>{const we=P===""?"":H;return e&&e.onChange(we),x&&x(P),we}),W(p.filter(H=>q(H.name,P))))},[q,p,e,x]),xi=u.useCallback(P=>{var H;T(((H=p.find(we=>we.value===P))==null?void 0:H.name)??""),N(P?String(P):""),e&&e.onChange(P),x&&x(P?String(P):""),W(p)},[p,e,x]),et=u.useCallback(P=>{P.key==="Enter"&&P.preventDefault(),L(!1)},[]),ui=u.useCallback(()=>{g&&g(),e&&e.onBlur()},[e,g]),K=o.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({allowsEmptyCollection:!0,inputValue:k,items:E,menuTrigger:"focus",shouldCloseOnBlur:!0,selectedKey:I,onBlur:ui,onInputChange:gi,onKeyDown:et,onKeyUp:()=>{L(!0)},onOpenChange(P,H){L(P&&(H==="manual"||H==="focus"))},onSelectionChange:xi,children:Re}),{buttonProps:fi,inputProps:hi,listBoxProps:bi}=o.$c350ade66beef0af$export$8c18d1b4f7232bbf({inputValue:k,buttonRef:ie,id:d,inputRef:Q,label:l??d,listBoxRef:A,name:d,placeholder:f,popoverRef:ee},K),{listBoxProps:yi}=o.$c132121280ec012d$export$50eacbbf140a3141(bi,K,A),{buttonProps:$i}=o.$701a24aa0da5b062$export$ea18c227d4417cc3(fi,ie);return u.useEffect(()=>{var P;(c===!1||!C)&&T(((P=p.find(H=>H.value===C))==null?void 0:P.name)??"")},[C,p,c]),t.jsxs(O,{error:j,helpLink:a,helpLinkText:r,helpText:s,htmlFor:d,label:l,required:h,tooltip:b,weight:y,children:[t.jsxs(J,{className:`${i?"disabled":""} ${j?"error":""}`,ref:M,children:[t.jsx("input",{...hi,"aria-invalid":j?"true":"false","aria-label":d,onKeyDown:et,ref:Q}),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:ie,type:"button",variant:"ghost"})]}),K.isOpen&&K.collection.size>0&&!i?t.jsx(ye,{className:"dropdown",offset:4,placement:"bottom start",popoverRef:ee,state:K,triggerRef:M,children:t.jsx(gn,{...yi,ref:A,children:[...K.collection].map(P=>t.jsx($t,{item:P,state:K},P.key))})}):null]})},mt=({control:e,disabled:i=!1,error:n,helpLink:a,helpLinkText:r,helpText:s,label:l,loadingItems:c,name:d,items:p,onBlur:g,onChange:x,placeholder:f,required:h,tooltip:b,value:m,weight:y})=>e?t.jsx(o.Controller,{control:e,name:d,render:({field:w,fieldState:j})=>{var C;return t.jsx(Le,{disabled:i,error:(C=j.error)==null?void 0:C.message,field:w,helpLink:a,helpLinkText:r,helpText:s,items:p,label:l,loadingItems:c,name:d,onBlur:g,onChange:x,placeholder:f,required:h,tooltip:b,value:m,weight:y})},rules:{required:h}}):t.jsx(Le,{disabled:i,error:n,helpLink:a,helpLinkText:r,helpText:s,items:p,label:l,loadingItems:c,name:d,onBlur:g,onChange:x,placeholder:f,required:h,tooltip:b,value:m,weight:y}),un=o.dt.div`
|
|
863
|
-
${({theme:e})=>`
|
|
864
|
-
align-items: center;
|
|
865
|
-
color: ${e.palette.gray[800]};
|
|
866
|
-
display: flex;
|
|
867
|
-
font-family: ${e.typography.type.primary};
|
|
868
|
-
font-size: ${e.typography.text.sm};
|
|
869
|
-
font-weight: ${e.typography.weight.bold};
|
|
870
|
-
gap: ${e.spacing[.5]};
|
|
871
|
-
height: 40px;
|
|
872
|
-
justify-content: center;
|
|
873
|
-
line-height: ${e.spacing[1.25]};
|
|
874
|
-
text-align: center;
|
|
875
|
-
padding: ${e.spacing[.5]} 0;
|
|
876
|
-
width: 200px;
|
|
877
|
-
word-spacing: ${e.spacing[.25]};
|
|
878
|
-
|
|
879
|
-
&:not(:hover) .year-selection {
|
|
880
|
-
display: none;
|
|
881
|
-
}
|
|
882
|
-
`}
|
|
883
|
-
`,fn=o.dt.div.attrs({className:"year-selection"})`
|
|
884
|
-
align-items: flex-start;
|
|
885
|
-
display: flex;
|
|
886
|
-
flex-direction: column;
|
|
887
|
-
gap: 6px;
|
|
888
|
-
height: 14px;
|
|
889
|
-
justify-content: center;
|
|
890
|
-
margin-bottom: 10px;
|
|
891
|
-
padding: 0 0.5px;
|
|
892
|
-
position: relative;
|
|
893
|
-
width: 8px;
|
|
894
|
-
`,at=o.dt.tr`
|
|
895
|
-
align-items: flex-start;
|
|
896
|
-
display: flex;
|
|
897
|
-
padding: ${({theme:e})=>e.spacing[.25]} 0;
|
|
898
|
-
width: 100%;
|
|
899
|
-
`,wt=o.lt`
|
|
900
|
-
${({theme:e})=>`
|
|
901
|
-
align-items: center;
|
|
902
|
-
color: ${e.palette.gray[800]};
|
|
903
|
-
cursor: pointer;
|
|
904
|
-
display: flex;
|
|
905
|
-
flex-direction: column;
|
|
906
|
-
font-family: ${e.typography.type.primary};
|
|
907
|
-
font-size: ${e.typography.text.sm};
|
|
908
|
-
font-weight: ${e.typography.weight.regular};
|
|
909
|
-
height: ${e.spacing[2.5]};
|
|
910
|
-
justify-content: center;
|
|
911
|
-
line-height: ${e.spacing[1.25]};
|
|
912
|
-
text-align: center;
|
|
913
|
-
width: ${e.spacing[2.5]};
|
|
914
|
-
`}
|
|
915
|
-
`,hn=o.dt.th`
|
|
916
|
-
${wt}
|
|
917
|
-
`,bn=o.dt.td`
|
|
918
|
-
${({theme:e})=>`
|
|
919
|
-
${wt}
|
|
920
|
-
height: ${e.spacing[2.5]};
|
|
921
|
-
width: ${e.spacing[2.5]};
|
|
922
|
-
|
|
923
|
-
&#range {
|
|
924
|
-
background: ${e.palette.primary[25]};
|
|
925
|
-
}
|
|
926
|
-
|
|
927
|
-
div:not(.dot) {
|
|
928
|
-
align-items: center;
|
|
929
|
-
display: flex;
|
|
930
|
-
flex-direction: column;
|
|
931
|
-
font-size: ${e.typography.text.sm};
|
|
932
|
-
justify-content: center;
|
|
933
|
-
height: ${e.spacing[2.5]};
|
|
934
|
-
line-height: ${e.spacing[1.25]};
|
|
935
|
-
position: relative;
|
|
936
|
-
text-align: center;
|
|
937
|
-
width: ${e.spacing[2.5]};
|
|
938
|
-
|
|
939
|
-
&:focus-visible {
|
|
940
|
-
outline: none;
|
|
941
|
-
}
|
|
942
|
-
|
|
943
|
-
&:hover:not(.disabled, .selected, .range) {
|
|
944
|
-
background: ${e.palette.gray[100]};
|
|
945
|
-
}
|
|
946
|
-
|
|
947
|
-
&.disabled {
|
|
948
|
-
color: ${e.palette.gray[400]};
|
|
949
|
-
cursor: auto;
|
|
950
|
-
}
|
|
951
|
-
|
|
952
|
-
&.selected {
|
|
953
|
-
background: ${e.palette.primary[500]};
|
|
954
|
-
color: ${e.palette.white};
|
|
955
|
-
}
|
|
956
|
-
|
|
957
|
-
&.focused {
|
|
958
|
-
border: 2px solid ${e.palette.primary[500]};
|
|
959
|
-
}
|
|
960
|
-
|
|
961
|
-
&.today:not(.selected) {
|
|
962
|
-
color: ${e.palette.primary[500]};
|
|
963
|
-
font-weight: ${e.typography.weight.bold};
|
|
964
|
-
}
|
|
965
|
-
}
|
|
966
|
-
`}
|
|
967
|
-
`,yn=o.dt.div.attrs({className:"dot"})`
|
|
968
|
-
position: absolute;
|
|
969
|
-
top: 48%;
|
|
970
|
-
|
|
971
|
-
> span {
|
|
972
|
-
font-size: 4px;
|
|
973
|
-
}
|
|
974
|
-
`,rt=o.dt.button`
|
|
975
|
-
cursor: pointer;
|
|
976
|
-
display: flex;
|
|
977
|
-
|
|
978
|
-
> span {
|
|
979
|
-
height: 3.5px;
|
|
980
|
-
width: 7px;
|
|
981
|
-
}
|
|
982
|
-
`,qe=o.dt.div`
|
|
983
|
-
${({theme:e})=>`
|
|
984
|
-
align-items: end;
|
|
985
|
-
border-top: 1px solid ${e.palette.gray[200]};
|
|
986
|
-
display: flex;
|
|
987
|
-
flex-direction: row-reverse;
|
|
988
|
-
gap: ${e.spacing[.5]};
|
|
989
|
-
height: 44px;
|
|
990
|
-
margin-bottom: ${e.spacing[.25]};
|
|
991
|
-
padding: 0 ${e.spacing[.25]};
|
|
992
|
-
width: 100%;
|
|
993
|
-
`}
|
|
994
|
-
`,jt=({state:e,date:i})=>{const n=u.useRef(null),a=o.$14e0f24ef4ac5c92$export$629b0a497aa65267(i,o.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),{cellProps:r,buttonProps:s,isSelected:l,isDisabled:c,formattedDate:d}=o.$36a0ac60f04457c5$export$136073280381448e({date:i},e,n),p="highlightedRange"in e&&!o.lodashExports.isNull(e.highlightedRange)?o.$14e0f24ef4ac5c92$export$ea39ec197993aef0(i,e.highlightedRange.start):l,g="highlightedRange"in e&&!o.lodashExports.isNull(e.highlightedRange)?o.$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",{...s,className:`cell ${p||g?"selected":""}
|
|
995
|
-
${c?"disabled":""} ${a?"today":""}
|
|
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}=o.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{weekDays:a}=o.$e3031d1f8c9d64eb$export$cb95147730a423f5(i,e),r=o.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654(e.visibleRange.start,n);return t.jsxs("table",{children:[t.jsx("thead",{children:t.jsx(at,{children:a.map((s,l)=>{const c=`key_${l}`;return t.jsx(hn,{children:s},c)})})}),t.jsx("tbody",{children:[...new Array(r).keys()].map(s=>t.jsx(at,{children:e.getDatesInWeek(s).map((l,c)=>{const d=`key_${c}`;return l?t.jsx(jt,{date:l,state:e},d):t.jsx("td",{},d)})},s))})]})},$n=o.dt(Ve)`
|
|
997
|
-
align-items: center;
|
|
998
|
-
background-color: inherit;
|
|
999
|
-
border-color: inherit;
|
|
1000
|
-
display: flex;
|
|
1001
|
-
height: 38px;
|
|
1002
|
-
justify-content: center;
|
|
1003
|
-
width: 40px;
|
|
1004
|
-
margin: ${({$margin:e="0"})=>o.lt`
|
|
1005
|
-
${e}
|
|
1006
|
-
`};
|
|
1007
|
-
|
|
1008
|
-
&:disabled {
|
|
1009
|
-
cursor: not-allowed;
|
|
1010
|
-
}
|
|
1011
|
-
|
|
1012
|
-
&:hover:not(:disabled) {
|
|
1013
|
-
background-color: ${({theme:e})=>e.palette.gray[100]};
|
|
1014
|
-
cursor: pointer;
|
|
1015
|
-
}
|
|
1016
|
-
`,mn=o.dt.div`
|
|
1017
|
-
${({theme:e})=>`
|
|
1018
|
-
align-items: flex-start;
|
|
1019
|
-
background: ${e.palette.white};
|
|
1020
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
1021
|
-
border-radius: ${e.spacing[.5]};
|
|
1022
|
-
box-shadow: ${e.shadows.md};
|
|
1023
|
-
display: inline-flex;
|
|
1024
|
-
flex-direction: column;
|
|
1025
|
-
gap: ${e.spacing[.25]};
|
|
1026
|
-
height: auto;
|
|
1027
|
-
padding: ${e.spacing[.25]};
|
|
1028
|
-
width: 292px;
|
|
1029
|
-
`}
|
|
1030
|
-
`,wn=o.dt.button`
|
|
1031
|
-
${({theme:e,$disabled:i,$focus:n,$header:a})=>{const r=n?"34px":"40px";return`
|
|
1032
|
-
align-items: center;
|
|
1033
|
-
border-radius: ${a?`0 ${e.spacing[.5]} ${e.spacing[.5]} 0`:"4px"};
|
|
1034
|
-
border-left: inherit;
|
|
1035
|
-
display: flex;
|
|
1036
|
-
height: ${a?"38px":r};
|
|
1037
|
-
justify-content: center;
|
|
1038
|
-
outline: none;
|
|
1039
|
-
width: ${a?"38px":"40px"};
|
|
1040
|
-
|
|
1041
|
-
&:hover {
|
|
1042
|
-
background-color: ${e.palette.gray[i?500:100]};
|
|
1043
|
-
}
|
|
1044
|
-
`}}
|
|
1045
|
-
`,jn=o.dt.div`
|
|
1046
|
-
${({theme:e})=>`
|
|
1047
|
-
align-items: center;
|
|
1048
|
-
background: transparent;
|
|
1049
|
-
border-radius: ${e.spacing[.5]} 0 0 ${e.spacing[.5]};
|
|
1050
|
-
border-color: inherit;
|
|
1051
|
-
display: flex;
|
|
1052
|
-
height: 100%;
|
|
1053
|
-
justify-content: space-between;
|
|
1054
|
-
width: calc(100% - 40px);
|
|
1055
|
-
`}
|
|
1056
|
-
`,vn=o.dt.div`
|
|
1057
|
-
align-items: center;
|
|
1058
|
-
display: flex;
|
|
1059
|
-
justify-content: flex-end;
|
|
1060
|
-
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1061
|
-
flex: 1 0 0;
|
|
1062
|
-
`,ot=o.dt.div`
|
|
1063
|
-
${({theme:e})=>`
|
|
1064
|
-
align-items: center;
|
|
1065
|
-
align-self: stretch;
|
|
1066
|
-
background-color: ${e.palette.gray[200]};
|
|
1067
|
-
border-radius: ${e.spacing[.25]};
|
|
1068
|
-
display: flex;
|
|
1069
|
-
font-family: ${e.typography.type.primary};
|
|
1070
|
-
gap: ${e.spacing[.25]};
|
|
1071
|
-
line-height: ${e.spacing[1.5]};
|
|
1072
|
-
padding: 2px ${e.spacing[.25]};
|
|
1073
|
-
`}
|
|
1074
|
-
`,st=o.dt.button`
|
|
1075
|
-
${({theme:e})=>`
|
|
1076
|
-
align-items: center;
|
|
1077
|
-
background-color: inherit;
|
|
1078
|
-
border: 0.5px solid ${e.palette.gray[200]};
|
|
1079
|
-
border-radius: 7px;
|
|
1080
|
-
color: ${e.palette.gray[800]};
|
|
1081
|
-
cursor: pointer;
|
|
1082
|
-
display: flex;
|
|
1083
|
-
font-weight: ${e.typography.weight.regular};
|
|
1084
|
-
justify-content: center;
|
|
1085
|
-
gap: 10px;
|
|
1086
|
-
padding: 2px 10px;
|
|
1087
|
-
|
|
1088
|
-
&#active {
|
|
1089
|
-
background-color: ${e.palette.white};
|
|
1090
|
-
box-shadow: ${e.shadows.md};
|
|
1091
|
-
font-weight: ${e.typography.weight.bold};
|
|
1092
|
-
}
|
|
1093
|
-
`}
|
|
1094
|
-
`,ve=({disabled:e=!1,icon:i,props:n})=>{const a=u.useRef(null),{buttonProps:r}=o.$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,s=u.useCallback(()=>{e.setFocusedDate(r.add({years:1}))},[r,e]),l=u.useCallback(()=>{e.setFocusedDate(r.subtract({years:1}))},[r,e]);return t.jsxs("div",{className:"header flex items-start",children:[t.jsx(ve,{icon:"chevron-left",props:i}),t.jsxs(un,{children:[a,t.jsxs(fn,{children:[t.jsx(rt,{"aria-label":"top",onClick:s,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(ve,{icon:"chevron-right",props:n})]})},vt=({onClose:e,props:i})=>{const{locale:n}=o.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),a=o.$131cf43a05231e1e$export$6d095e787d2b5e1f({...i,createCalendar:o.$64244302c3013299$export$dd0bbc9b26defe37,locale:n}),{prevButtonProps:r,nextButtonProps:s,title:l}=o.$9942cad8a072a530$export$3ee915f8151bd4f1(i,a);return t.jsxs("div",{className:"calendar",children:[t.jsx(Ie,{nextButtonProps:s,prevButtonProps:r,state:a,title:l}),t.jsx(ze,{state:a}),t.jsx(qe,{children:t.jsx(R,{onClick:e,variant:"ghost",children:"Cancel"})})]})},kt=({segment:e,state:i})=>{const n=o.nt(),a=u.useRef(null),s={...e,placeholder:{day:"dd",dayPeriod:"(AM/PM)",era:"",hour:"hh",literal:"",minute:"mm",month:"mm",second:"",timeZoneName:"",year:"yyyy"}[e.type]},{segmentProps:l}=o.$32489daedd52963e$export$1315d136e6f7581(s,i,a),c=n.palette.gray[s.isEditable?800:500];return t.jsx("div",{...s.type!=="literal"&&{...l,className:"segment-cell"},ref:a,style:s.type==="literal"?void 0:{color:s.isPlaceholder?n.palette.gray[400]:c},children:s.isPlaceholder?s.placeholder:s.text})},Ct=({disabled:e,error:i=!1,props:n})=>{const a=o.nt(),r=u.useRef(null),s=o.$3c0fc76039f1c516$export$60e84778edff6d26({...n,createCalendar:o.$64244302c3013299$export$dd0bbc9b26defe37,locale:"en-US"}),{fieldProps:l}=o.$16f0b7bb276bc17e$export$5591b0b878c1a989(n,s,r),c=u.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[o.lodashExports.isNil(s.value)?400:800]},tabIndex:-1,children:s.segments.map((d,p)=>{const g=`key_${p}`;return t.jsx(kt,{segment:{...d,isEditable:!e},state:s},g)})}),i?t.jsx(S,{icon:"exclamation-circle",iconColor:a.palette.error[500],iconSize:"xs"}):void 0]})},St=e=>{const i=u.useRef(null),n=o.$eff5d8ee529ac4bb$export$fd53cef0cc796101({...e,locale:"en-US",shouldForceLeadingZeros:!0}),{timeValue:a}=n,r=!o.lodashExports.isNil(a)&&a.hour<12?"AM":"PM",[s,l]=u.useState(o.lodashExports.isNil(a)?"AM":r),{fieldProps:c}=o.$16f0b7bb276bc17e$export$4c842f6a241dc825(e,n,i),d=u.useCallback(p=>{const g=p.currentTarget.name;g!==s&&(o.lodashExports.isNil(a)||(g==="AM"?n.setSegment("dayPeriod",0):g==="PM"&&n.setSegment("dayPeriod",12))),l(g)},[s,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(kt,{segment:p,state:n},x)})}),t.jsxs(ot,{children:[t.jsx(st,{id:s==="AM"?"active":"",name:"AM",onClick:d,type:"button",children:"AM"}),t.jsx(st,{id:s==="PM"?"active":"",name:"PM",onClick:d,type:"button",children:"PM"})]})]})},ke=e=>e&&e!=="-"?o.dayjs(e).format("YYYY-MM-DD"):"-",kn=e=>e&&e!=="-"?o.dayjs(e).format("YYYY-MM-DD hh:mm A"):"-",Cn=e=>e&&e!=="-"?o.dayjs(e).format("YYYY/MM/DD hh:mm A"):"-",se=({error:e,buttonProps:i,datePickerRef:n,disabled:a=!1,granularity:r="day",fieldProps:s,groupProps:l,name:c,register:d,required:p,setValue:g,value:x})=>{const f=u.useCallback(h=>{const b=r==="day"?ke(String(h)):kn(String(h));s.onChange&&s.onChange(h??null),g&&g(c,b)},[s,r,c,g]);return t.jsxs(J,{...l,className:`${a?"disabled":""} ${e?"error":""}`,ref:n,children:[t.jsx(Ct,{disabled:a,error:e!=null,props:{...s,autoFocus:!1,granularity:r,onChange:f,shouldForceLeadingZeros:!0}}),t.jsx(ve,{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=u.useRef(null),{dialogProps:a}=o.$40df3f8667284809$export$d55e7ee900f34e93(i,n);return t.jsx(mn,{...a,ref:n,children:e})},zt=({disabled:e=!1,error:i,helpLink:n,helpLinkText:a,helpText:r,required:s,label:l,name:c,register:d,setValue:p,tooltip:g,watch:x,...f})=>{const h=u.useRef(null),b=x==null?void 0:x(c),m=u.useCallback(N=>{p&&N&&p(c,ke(String(N)))},[c,p]),y=o.$ab5bf3f618090389$export$87194bb378cc3ac2({...f,onChange(N){m(N)},value:o._.isNil(b)||o._.isEmpty(b)||b==="-"?null:o.$fae977aafc393c5c$export$6b862160d295c8e(b.replace(/\//gu,"-"))}),{close:w}=y,{groupProps:j,fieldProps:C,buttonProps:k,dialogProps:T,calendarProps:I}=o.$6057a3d2a53a12fd$export$42df105a73306d51({...f,"aria-label":l??c,name:c},y,h);return t.jsxs(O,{error:i,helpLink:n,helpLinkText:a,helpText:r,htmlFor:c,label:l,required:s,tooltip:g,children:[t.jsx(se,{buttonProps:k,datePickerRef:h,disabled:e,error:i,fieldProps:C,groupProps:j,name:c,register:d,required:s,setValue:p,value:b}),y.isOpen&&!e?t.jsx(ye,{offset:8,placement:"bottom start",state:y,triggerRef:h,children:t.jsx(Te,{...T,children:t.jsx(vt,{onClose:w,props:I})})}):null]})},It=({onClose:e,props:i})=>{const{locale:n}=o.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),a=u.useRef(null),r=o.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90({...i,createCalendar:o.$64244302c3013299$export$dd0bbc9b26defe37,locale:n}),{prevButtonProps:s,nextButtonProps:l,title:c}=o.$46a4342aab3d8076$export$87e0539f600c24e5(i,r,a);return t.jsxs("div",{className:"calendar-range",ref:a,children:[t.jsx(Ie,{nextButtonProps:l,prevButtonProps:s,state:r,title:c}),t.jsx(ze,{state:r}),t.jsx(qe,{children:t.jsx(R,{onClick:e,variant:"ghost",children:"Cancel"})})]})},Sn=o.dt.div`
|
|
1095
|
-
${({theme:e,$disabled:i,$show:n})=>`
|
|
1096
|
-
border-color: ${n?e.palette.error[500]:e.palette.gray[300]};
|
|
1097
|
-
display: flex;
|
|
1098
|
-
gap: ${e.spacing[.25]};
|
|
1099
|
-
width: 100%;
|
|
1100
|
-
|
|
1101
|
-
~ div {
|
|
1102
|
-
background: ${i?e.palette.gray[200]:e.palette.white};
|
|
1103
|
-
}
|
|
1104
|
-
`}
|
|
1105
|
-
`,Tt=({disabled:e=!1,error:i,label:n,name:a,required:r,tooltip:s,register:l,setValue:c,propsMax:d,propsMin:p,variant:g="default",...x})=>{const f=`${a}Max`,h=`${a}Min`,b=u.useRef(null),m=u.useCallback(E=>{c&&E&&(c((d==null?void 0:d.name)??f,ke(String(E.end))),c((p==null?void 0:p.name)??h,ke(String(E.start))))},[f,h,c,d,p]),y=o.$93c38a5e28be6249$export$e50a61c1de9f574({...x,endName:(d==null?void 0:d.name)??f,startName:(p==null?void 0:p.name)??h,onChange(E){m(E)}}),{close:w}=y,{groupProps:j,startFieldProps:C,endFieldProps:k,buttonProps:T,dialogProps:I,calendarProps:N}=o.$887cac91b7cc8801$export$12fd5f0e9f4bb192({...x,"aria-label":n??a},y,b);return t.jsxs(O,{error:i,htmlFor:a,label:n,required:r,tooltip:s,children:[t.jsxs(Sn,{$disabled:e,$show:i!==void 0,ref:b,style:{flexDirection:g==="filters"?"column":"row"},children:[t.jsx(se,{buttonProps:T,datePickerRef:b,disabled:e,error:i,fieldProps:{...C,"aria-label":`${C["aria-label"]} ${a}`,validate:E=>k.value&&E>k.value?"Start date must be less than or equal to end date":null},groupProps:j,name:(p==null?void 0:p.name)??h,register:l,setValue:c,value:p==null?void 0:p.value}),t.jsx(se,{buttonProps:T,datePickerRef:b,disabled:e,error:i,fieldProps:{...k,"aria-label":`${k["aria-label"]} ${a}`,validate:E=>C.value&&E<C.value?"End date must be greater than or equal to start date":null},groupProps:j,name:(d==null?void 0:d.name)??f,register:l,setValue:c,value:d==null?void 0:d.value})]}),y.isOpen&&!e?t.jsx(ye,{offset:8,placement:"bottom start",state:y,triggerRef:b,children:t.jsx(Te,{...I,children:t.jsx(It,{onClose:w,props:N})})}):null]})},zn=o.dt.div`
|
|
1106
|
-
${({theme:e})=>`
|
|
1107
|
-
align-items: center;
|
|
1108
|
-
border-top: 1px solid ${e.palette.gray[200]};
|
|
1109
|
-
display: flex;
|
|
1110
|
-
gap: ${e.spacing[1.5]};
|
|
1111
|
-
justify-content: center;
|
|
1112
|
-
padding: ${e.spacing[.5]} ${e.spacing[1.25]};
|
|
1113
|
-
`}
|
|
1114
|
-
`,In=o.dt.div`
|
|
1115
|
-
align-items: center;
|
|
1116
|
-
display: flex;
|
|
1117
|
-
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1118
|
-
justify-content: flex-end;
|
|
1119
|
-
flex: 1 0 0;
|
|
1120
|
-
`,Ft=({handleTimeChange:e,onClose:i,props:n,timeState:a})=>{const r=o.nt(),{locale:s}=o.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),l=o.$131cf43a05231e1e$export$6d095e787d2b5e1f({...n,createCalendar:o.$64244302c3013299$export$dd0bbc9b26defe37,locale:s}),{prevButtonProps:c,nextButtonProps:d,title:p}=o.$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(v,{color:r.palette.gray[800],fontWeight:"bold",size:"sm",children:"Time"}),t.jsx(In,{children:t.jsx(St,{hourCycle:12,label:"time-field",onChange:e,value:a.timeValue})})]}),t.jsx(qe,{children:t.jsx(R,{onClick:i,variant:"ghost",children:"Cancel"})})]})},Tn=e=>{const{disabled:i=!1,error:n,required:a,label:r,name:s,tooltip:l,register:c,setValue:d,watch:p}=e,g=p==null?void 0:p(s),x=u.useRef(null),f=o.$ab5bf3f618090389$export$87194bb378cc3ac2({...e,granularity:"minute",hourCycle:12,isDisabled:i,isRequired:a,shouldCloseOnSelect:!1,value:o._.isNil(g)||o._.isEmpty(g)||g==="-"?null:o.$fae977aafc393c5c$export$588937bcd60ade55(g.replace(/\//gu,"-"))}),{close:h}=f,{groupProps:b,fieldProps:m,buttonProps:y,dialogProps:w,calendarProps:j}=o.$6057a3d2a53a12fd$export$42df105a73306d51(e,f,x),C=u.useCallback(T=>{j.onChange&&j.onChange(T),d==null||d(s,Cn(String(T).replace(/-/gu,"/")))},[j,s,d]),k=u.useCallback(T=>{T&&f.setTimeValue(T)},[f]);return t.jsxs(O,{error:n,htmlFor:s,label:r,required:a,tooltip:l,children:[t.jsx(se,{buttonProps:y,datePickerRef:x,disabled:i,error:n,fieldProps:m,granularity:"minute",groupProps:b,name:s,register:c,setValue:d,value:g}),f.isOpen&&!i?t.jsx(ye,{offset:8,placement:"bottom start",state:f,triggerRef:x,children:t.jsx(Te,{...w,children:t.jsx(Ft,{handleTimeChange:k,onClose:h,props:{...j,onChange:C},timeState:f})})}):null]})},Fn=({children:e,currentValue:i,externalLink:n,isEditing:a,label:r,name:s,tooltip:l})=>{if(a)return t.jsx("div",{children:e});const c=o.lodashExports.isNil(i)?"":i,d=String(n??c);return t.jsxs($,{children:[t.jsx(Ye,{htmlFor:s,label:r,tooltip:l,weight:"bold"}),d.startsWith("https://")?t.jsx(Z,{href:d,children:c}):t.jsx(v,{size:"md",children:c})]})},Ke=({disabled:e=!1,hasIcon:i=!1,helpLink:n,helpLinkText:a,helpText:r,error:s,isValid:l,isTouched:c,label:d,linkPosition:p,name:g,maskValue:x=!1,onPaste:f,placeholder:h,register:b,suggestions:m,tooltip:y,type:w="text",weight:j,...C})=>{const{required:k,onBlur:T,onChange:I}=C,N=o.nt(),E=e?void 0:s,W=l&&c&&!e,D=u.useCallback(L=>{L.key==="Enter"&&L.preventDefault()},[]);return t.jsxs(O,{error:E,helpLink:n,helpLinkText:a,helpText:r,htmlFor:g,label:d,linkPosition:p,required:k,tooltip:y,weight:j,children:[t.jsxs(J,{className:`
|
|
1121
|
-
${e?"disabled":""} ${E?"error":""} ${W?"success":""}
|
|
1122
|
-
`,children:[i?t.jsx(S,{icon:"user",iconSize:"sm",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":E?"true":"false","aria-label":g,"aria-required":k,autoComplete:"off",className:x?"sr-block":"","data-testid":`${g}-input`,disabled:e,id:g,list:m?`list_${g}`:void 0,onKeyDown:D,onPaste:f,placeholder:h,type:w,...b?b(g,{required:k,onBlur:T,onChange:I}):{...C}}),E?t.jsx(S,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:N.palette.error[500],iconSize:"xs"}):void 0,W?t.jsx(S,{icon:"check-circle",iconClass:"success-icon",iconColor:N.palette.success[500],iconSize:"xs"}):void 0]}),m?t.jsx("datalist",{id:`list_${g}`,children:m.map(L=>t.jsx("option",{value:L},L))}):void 0]})},Nn=o.dt(ut)`
|
|
1123
|
-
white-space: nowrap;
|
|
1124
|
-
margin-right: ${({theme:e})=>e.spacing[.25]};
|
|
1125
|
-
text-overflow: ellipsis;
|
|
1126
|
-
overflow: hidden;
|
|
1127
|
-
max-width: 80%;
|
|
1128
|
-
`,En=o.dt.input`
|
|
1129
|
-
opacity: 0;
|
|
1130
|
-
position: absolute;
|
|
1131
|
-
visibility: hidden;
|
|
1132
|
-
width: 0;
|
|
1133
|
-
`,Pe=(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:s,id:l,multiple:c,name:d,onChange:p,required:g,register:x,setValue:f,tooltip:h,watch:b,weight:m})=>{const y=o.nt(),w=i?void 0:n,j=u.useRef(null),C=b==null?void 0:b(d),k=Rn(C),T=x==null?void 0:x(d,{required:g}),I=u.useCallback(()=>{const W=Pe("change",d,void 0);f&&f(d,""),T&&T.onChange(W)},[T,d,f]),N=u.useCallback(W=>{const{files:D}=W.currentTarget,L=Pe("change",d,D&&D.length>0?D:void 0);p==null||p(L),T&&T.onChange(L)},[T,d,p]),E=u.useCallback(W=>{i?W.preventDefault():j.current&&j.current.click()},[i]);return t.jsxs(O,{error:w,helpLink:r,helpText:s,htmlFor:l??d,label:a,required:g,tooltip:h,weight:m,children:[t.jsxs(J,{className:`${i?"disabled":""} ${w?"error":""}`,children:[t.jsx(Nn,{$size:"xs",children:k}),t.jsxs($,{alignItems:"center",display:"flex",gap:.625,children:[o.lodashExports.isEmpty(k)?void 0:t.jsx(B,{color:y.palette.gray[400],height:"20px",icon:"xmark",iconSize:"lg",iconType:"fa-light",onClick:I,variant:"ghost",width:"20px"}),w&&t.jsx(S,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:y.palette.error[500],iconSize:"xs"}),t.jsxs(R,{border:i?`1px solid ${y.palette.gray[300]} !important`:"",borderRadius:"0px 8px 8px 0px !important",disabled:i,height:"40px",onClick:E,variant:"primary",width:"96px",children:[t.jsx(S,{icon:"search",iconSize:"sm",mr:.5}),"Add file"]})]})]}),t.jsx(En,{...T&&{ref:T.ref,onBlur:T.onBlur},accept:e,"aria-label":d,"data-testid":d,disabled:i,id:l??d,multiple:c,name:d,onChange:N,onClick:I,ref:j,required:void 0,type:"file",value:void 0})]})},Ln=o.dt.input`
|
|
1134
|
-
border: none;
|
|
1135
|
-
background: transparent;
|
|
1136
|
-
min-width: 15rem;
|
|
1137
|
-
padding: 0;
|
|
1138
|
-
flex: 1;
|
|
1139
|
-
`,We=({disabled:e=!1,error:i,field:n,helpLink:a,helpLinkText:r,helpText:s,label:l,name:c="input-tag",onChange:d,onRemove:p,placeholder:g,required:x,tooltip:f,value:h,weight:b})=>{const m=o.nt(),y=e?void 0:i,[w,j]=u.useState(""),C=d?h:n==null?void 0:n.value,k=u.useMemo(()=>C&&typeof C=="string"?C.split(",").filter(Boolean):[],[C]),T=u.useCallback(D=>{const q=[...new Set(D.filter(Boolean))].join(","),Q=Pe("change",c,q);n&&n.onChange(Q),d&&d(Q)},[n,c,d]),I=u.useCallback(D=>{j(D.target.value)},[]),N=u.useCallback(D=>{const L=w.trim();L.length&&!k.includes(L)&&(D.preventDefault(),T([...k,L]),j("")),n&&n.onBlur()},[w,n,T,k]),E=u.useCallback(D=>{const L=w.trim();D.key==="Enter"&&L.length===0&&D.preventDefault(),["Enter",","].includes(D.key)&&L.length>0&&!k.includes(L)?(D.preventDefault(),T([...k,L]),j("")):D.key==="Backspace"&&!L.length&&k.length&&(D.preventDefault(),p==null||p(k[k.length-1]),T(k.slice(0,-1)))},[w,p,T,k]),W=u.useCallback(D=>()=>{p==null||p(D),T(k.filter(L=>L!==D))},[p,T,k]);return t.jsx(O,{error:y,helpLink:a,helpLinkText:r,helpText:s,htmlFor:c,label:l,required:x,tooltip:f,weight:b,children:t.jsxs(J,{$overflowX:"auto",className:`${e?"disabled":""} ${y?"error":""}`,children:[k.map(D=>t.jsx(G,{disabled:e,onClose:W(D),tagLabel:D},D)),t.jsx(Ln,{"aria-hidden":!1,"aria-invalid":y?"true":"false","aria-label":c,"aria-required":x,autoComplete:"off",id:c,onBlur:N,onChange:I,onKeyDown:E,placeholder:k.length===0?g:void 0,ref:n==null?void 0:n.ref,type:"text",value:w}),y?t.jsx(S,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:m.palette.error[500],iconSize:"xs"}):void 0]})})},Pn=({disabled:e=!1,control:i,error:n,helpLink:a,helpLinkText:r,helpText:s,label:l,name:c="input-tag",onChange:d,onRemove:p,placeholder:g,required:x,tooltip:f,value:h,weight:b})=>i?t.jsx(o.Controller,{control:i,name:c,render:({field:m})=>t.jsx(We,{disabled:e,error:n,field:m,helpLink:a,helpLinkText:r,helpText:s,label:l,name:c,onRemove:p,placeholder:g,required:x,tooltip:f,weight:b}),rules:{required:x}}):t.jsx(We,{disabled:e,error:n,helpLink:a,helpLinkText:r,helpText:s,label:l,name:c,onChange:d,onRemove:p,placeholder:g,required:x,tooltip:f,value:h,weight:b}),Ae=u.forwardRef(function({disabled:i,icon:n,margin:a,onClick:r,...s},l){return t.jsx($n,{$margin:a,"aria-label":n,className:"action-btn",disabled:i,onClick:r,ref:l,type:"button",...s,children:t.jsx(S,{icon:n,iconClass:"action",iconSize:"xs",iconType:"fa-light"})})}),Ce=({error:e,decimalPlaces:i=0,disabled:n=!1,id:a,maxLength:r,max:s=1/0,min:l=0,name:c,onChange:d,placeholder:p,register:g,required:x,setValue:f,value:h})=>{const b=o.nt(),m=n?void 0:e,y=i<0?0:i,[w,j]=u.useState(h?o._.toNumber(h):0),C=u.useCallback(()=>{const N=(w-10**-y).toFixed(y),E=Math.max(Number(l),Number(N));f&&f(c,E,{shouldDirty:!0}),j(E)},[y,w,l,c,f]),k=u.useCallback(()=>{const N=(w+10**-y).toFixed(y),E=Math.min(Number(s),Number(N)>Number(l)?Number(N):Number(l));f&&f(c,E,{shouldDirty:!0}),j(E)},[y,w,s,l,c,f]),T=u.useCallback(N=>{const{value:E}=N.target,W=/\d+/u.test(E)&&!o._.isEmpty(E);f&&f(c,W?E:void 0),d&&d(N),j(Number(E))},[c,d,f]),I=u.useCallback(N=>{N.key==="Enter"&&N.preventDefault()},[]);return t.jsxs(J,{className:`${n?"disabled":""} ${m?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":m?"true":"false","aria-label":c,"aria-required":x,autoComplete:"off",disabled:n,id:a??c,max:s,min:l,onKeyDown:I,placeholder:p,required:x,step:10**-y,type:"number",...g==null?void 0:g(c,{maxLength:r,max:s,min:l,onChange:T,value:h,valueAsNumber:!0})}),m&&t.jsx(S,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:b.palette.error[500],iconSize:"xs"}),t.jsx(Ae,{borderLeft:"inherit",borderRight:"inherit",disabled:n,icon:"minus",margin:"0 -0.625rem 0 0",onClick:C,px:.75,py:.75}),t.jsx(Ae,{borderRadius:`0 ${b.spacing[.5]} ${b.spacing[.5]} 0`,disabled:n,icon:"plus",onClick:k,px:.75,py:.75})]})},Nt=({decimalPlaces:e,disabled:i=!1,error:n,helpLink:a,helpText:r,id:s,label:l,linkPosition:c,maxLength:d,max:p,min:g,name:x,onChange:f,placeholder:h,register:b,required:m,setValue:y,tooltip:w,value:j,watch:C,weight:k})=>t.jsx(O,{error:i?void 0:n,helpLink:a,helpText:r,htmlFor:x,label:l,linkPosition:c,maxLength:d,required:m,tooltip:w,weight:k,children:t.jsx(Ce,{decimalPlaces:e,disabled:i,error:n,id:s,max:p,maxLength:d,min:g,name:x,onChange:f,placeholder:h,register:b,required:m,setValue:y,value:f?j:C==null?void 0:C(x)})}),Et=({disabled:e=!1,error:i,name:n,label:a,propsMax:r,propsMin:s,required:l,tooltip:c,variant:d="default"})=>{const p=`${n}Max`,g=`${n}Min`;return t.jsx(O,{error:i,htmlFor:n,label:a,required:l,tooltip:c,children:t.jsxs($,{display:"flex",flexDirection:d==="filters"?"column":"row",gap:.25,width:"100%",children:[t.jsx(Ce,{...s,disabled:e,error:i,name:s.name??g}),t.jsx(Ce,{...r,disabled:e,error:i,name:r.name??p})]})})},Wn=o.dt.div`
|
|
1140
|
-
${({theme:e})=>`
|
|
1141
|
-
align-items: flex-start;
|
|
1142
|
-
align-self: stretch;
|
|
1143
|
-
display: flex;
|
|
1144
|
-
gap: ${e.spacing[.5]};
|
|
1145
|
-
|
|
1146
|
-
> button, div {
|
|
1147
|
-
border: 1px solid ${e.palette.gray[300]};
|
|
1148
|
-
border-radius: ${e.spacing[.5]};
|
|
1149
|
-
}
|
|
1150
|
-
|
|
1151
|
-
&.disabled {
|
|
1152
|
-
> button, div {
|
|
1153
|
-
background: ${e.palette.gray[100]};
|
|
1154
|
-
color: ${e.palette.gray[400]};
|
|
1155
|
-
cursor: not-allowed;
|
|
1156
|
-
}
|
|
1157
|
-
}
|
|
1158
|
-
|
|
1159
|
-
&.error:not(.disabled) {
|
|
1160
|
-
> button, div {
|
|
1161
|
-
border: 1px solid ${e.palette.error[500]};
|
|
1162
|
-
}
|
|
1163
|
-
}
|
|
1164
|
-
|
|
1165
|
-
&:focus-within:not(.disabled, .error) {
|
|
1166
|
-
> button, div {
|
|
1167
|
-
background: ${e.palette.white};
|
|
1168
|
-
border: 2px solid ${e.palette.black};
|
|
1169
|
-
}
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1172
|
-
&:hover:not(:focus-within, .disabled, .error) {
|
|
1173
|
-
> button, div {
|
|
1174
|
-
background: ${e.palette.white};
|
|
1175
|
-
border-color: ${e.palette.gray[600]};
|
|
1176
|
-
}
|
|
1177
|
-
}
|
|
1178
|
-
`}
|
|
1179
|
-
`,An=o.dt.button`
|
|
1180
|
-
${({theme:e})=>`
|
|
1181
|
-
align-items: center;
|
|
1182
|
-
background: inherit;
|
|
1183
|
-
border-color: inherit;
|
|
1184
|
-
display: flex;
|
|
1185
|
-
gap: ${e.spacing[.25]};
|
|
1186
|
-
height: 40px;
|
|
1187
|
-
min-width: 67px;
|
|
1188
|
-
padding: ${e.spacing[.625]} ${e.spacing[1]};
|
|
1189
|
-
|
|
1190
|
-
&:disabled {
|
|
1191
|
-
background: ${e.palette.gray[100]};
|
|
1192
|
-
cursor: not-allowed;
|
|
1193
|
-
}
|
|
1194
|
-
`}
|
|
1195
|
-
`,Bn=o.dt.ul`
|
|
1196
|
-
${({theme:e})=>`
|
|
1197
|
-
align-items: flex-start;
|
|
1198
|
-
box-shadow: ${e.shadows.md};
|
|
1199
|
-
display: flex;
|
|
1200
|
-
flex-direction: column;
|
|
1201
|
-
margin-top: ${e.spacing[.25]};
|
|
1202
|
-
max-height: 190px;
|
|
1203
|
-
overflow: hidden auto;
|
|
1204
|
-
scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
|
|
1205
|
-
scroll-padding: ${e.spacing[.5]};
|
|
1206
|
-
scrollbar-width: thin;
|
|
1207
|
-
width: max-content;
|
|
1208
|
-
`}
|
|
1209
|
-
`,_n=o.dt.li`
|
|
1210
|
-
${({theme:e})=>`
|
|
1211
|
-
align-items: center;
|
|
1212
|
-
background: ${e.palette.white};
|
|
1213
|
-
cursor: pointer;
|
|
1214
|
-
display: inline-flex;
|
|
1215
|
-
font-size: ${e.typography.text.sm};
|
|
1216
|
-
gap: ${e.spacing[.5]};
|
|
1217
|
-
height: 38px;
|
|
1218
|
-
line-height: ${e.spacing[1.25]};
|
|
1219
|
-
padding: ${e.spacing[.5]} ${e.spacing[1]};
|
|
1220
|
-
width: 190px;
|
|
1221
|
-
|
|
1222
|
-
&:hover {
|
|
1223
|
-
background: ${e.palette.gray[100]};
|
|
1224
|
-
}
|
|
1225
|
-
`}
|
|
1226
|
-
`,On=o.dt.p`
|
|
1227
|
-
color: ${({theme:e})=>e.palette.gray[800]};
|
|
1228
|
-
font-size: inherit;
|
|
1229
|
-
min-width: 55%;
|
|
1230
|
-
overflow: hidden;
|
|
1231
|
-
text-overflow: ellipsis;
|
|
1232
|
-
white-space: nowrap;
|
|
1233
|
-
`,$e=(e,i,n=!1)=>{u.useEffect(()=>{var r;const a=s=>{e&&!e.contains(s.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 s;(s=document.getElementById("root"))==null||s.removeEventListener("click",a,!0)})},[n,e,i])},Mn=({disabled:e,error:i,label:n,name:a,placeholder:r,required:s,register:l,tooltip:c,value:d,watch:p,weight:g})=>{const x=o.nt(),f=u.useRef(null),h=e?void 0:i,b=(p==null?void 0:p(a))??d,[m,y]=u.useState(!1),[w,j]=u.useState(""),{refs:C,floatingStyles:k}=o.useFloating$1({placement:"bottom-start",whileElementsMounted:o.autoUpdate}),{inputRef:T,inputValue:I,handlePhoneValueChange:N,country:E,setCountry:W}=o.ee({countries:o.R,defaultCountry:"co",forceDialCode:!0,value:b?String(b):""}),D=u.useCallback(A=>{A.key==="Enter"&&A.preventDefault()},[]),L=u.useCallback(A=>{A.preventDefault(),y(M=>!M),m||j("")},[m]),q=u.useCallback(A=>()=>{W(A),y(!1),j("")},[W,y]),Q=u.useCallback(A=>{A.key.length===1?j(M=>M+A.key):A.key==="Backspace"&&j(M=>M.slice(0,-1))},[]),ie=o.R.filter(A=>{const{name:M}=o.M(A);return M.toLowerCase().includes(w.toLowerCase())});return $e(C.floating.current,()=>{y(!1),j("")},!0),t.jsx(O,{error:h,htmlFor:a,label:n,required:s,tooltip:c,weight:g,children:t.jsxs(Wn,{className:`${e?"disabled":""} ${h?"error":""}`,ref:f,children:[t.jsxs(An,{"aria-label":"country-selector","data-testid":"country-selector",disabled:e,id:"country-selector",onClick:L,onKeyDown:Q,ref:C.setReference,children:[t.jsx(o.q,{iso2:E.iso2,size:"16px"}),t.jsx(S,{icon:"angle-down",iconColor:x.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(J,{className:`${e?"disabled":""} ${h?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":h?"true":"false","aria-label":a,"aria-required":s,autoComplete:"off","data-testid":`${a}-input`,disabled:e,id:a,name:a,onKeyDown:D,placeholder:r,ref:T,type:"tel",value:I,...l==null?void 0:l(a,{required:s,onChange:N})}),h?t.jsx(S,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:x.palette.error[500],iconSize:"xs"}):void 0]}),m&&X.createPortal(t.jsx(Bn,{ref:C.setFloating,style:k,children:ie.map(A=>{const{dialCode:M,iso2:ee,name:Re}=o.M(A);return t.jsxs(_n,{onClick:q(ee),value:ee,children:[t.jsx(o.q,{iso2:ee,size:"16px"}),t.jsx(On,{children:Re}),t.jsx(v,{color:x.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+M})]},ee)})}),document.getElementById("modal-wrapper")??document.getElementById("root")??document.body)]})})},Hn=({disabled:e=!1,error:i,helpLink:n,helpText:a,isTouched:r,isValid:s,label:l,name:c="input-text",id:d,maskValue:p=!1,maxLength:g,placeholder:x,register:f,required:h,rows:b,tooltip:m,watch:y,weight:w,value:j})=>{const C=o.nt(),k=(y==null?void 0:y(c))??j,T=s&&r&&!e,I=e?void 0:i;return t.jsx(O,{error:I,helpLink:n,helpText:a,htmlFor:c,label:l,maxLength:g,required:h,tooltip:m,value:k?String(k):void 0,weight:w,children:t.jsxs(J,{className:`
|
|
1234
|
-
${e?"disabled":""} ${I?"error":""} ${T?"success":""}
|
|
1235
|
-
`,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":I?"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:b,value:k,...f==null?void 0:f(c,{required:h})}),I?t.jsx(S,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:C.palette.error[500],iconSize:"xs"}):void 0,T?t.jsx(S,{icon:"check-circle",iconClass:"success-icon",iconColor:C.palette.success[500],iconSize:"xs"}):void 0]})})},Vn=({description:e,disabled:i,id:n,align:a,inputType:r="text",inputNumberProps:s,minHeight:l,minWidth:c,name:d,placeholder:p,tooltip:g,title:x})=>{const f=u.useMemo(()=>{if(r==="text")return t.jsx(Ke,{disabled:i,name:d,placeholder:p});if(r==="date")return t.jsx(zt,{disabled:i,name:d});const{decimalPlaces:h,max:b,min:m}=s??{};return t.jsx(Nt,{decimalPlaces:h,disabled:i,max:b,min:m,name:d,placeholder:p})},[i,s,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}),f]})},Un=o.dt.label`
|
|
1236
|
-
${({theme:e})=>`
|
|
1237
|
-
align-items: center;
|
|
1238
|
-
color: ${e.palette.gray[600]};
|
|
1239
|
-
display: flex;
|
|
1240
|
-
cursor: pointer;
|
|
1241
|
-
font-family: ${e.typography.type.primary};
|
|
1242
|
-
font-size: ${e.typography.text.sm};
|
|
1243
|
-
font-weight: ${e.typography.weight.regular};
|
|
1244
|
-
line-height: ${e.spacing[1]};
|
|
1245
|
-
letter-spacing: 0;
|
|
1246
|
-
position: relative;
|
|
1247
|
-
text-align: left;
|
|
1248
|
-
|
|
1249
|
-
&[aria-disabled="true"] {
|
|
1250
|
-
color: ${e.palette.gray[300]};
|
|
1251
|
-
cursor: not-allowed;
|
|
1252
|
-
}
|
|
1253
|
-
|
|
1254
|
-
input {
|
|
1255
|
-
position: absolute;
|
|
1256
|
-
opacity: 0;
|
|
1257
|
-
cursor: pointer;
|
|
1258
|
-
}
|
|
1259
|
-
|
|
1260
|
-
svg {
|
|
1261
|
-
background-color: ${e.palette.white};
|
|
1262
|
-
border-radius: ${e.spacing[.25]};
|
|
1263
|
-
border: 1px solid ${e.palette.gray[600]};
|
|
1264
|
-
top: 0;
|
|
1265
|
-
left: 0;
|
|
1266
|
-
height: ${e.spacing[.5]};
|
|
1267
|
-
margin-right: ${e.spacing[.5]};
|
|
1268
|
-
width: ${e.spacing[.5]};
|
|
1269
|
-
padding: ${e.spacing[.25]};
|
|
1270
|
-
}
|
|
1271
|
-
|
|
1272
|
-
svg > path {
|
|
1273
|
-
fill: ${e.palette.white};
|
|
1274
|
-
}
|
|
1275
|
-
|
|
1276
|
-
input:checked ~ span > svg {
|
|
1277
|
-
background-color: ${e.palette.primary[500]};
|
|
1278
|
-
border: 1px solid ${e.palette.primary[500]};
|
|
1279
|
-
}
|
|
1280
|
-
|
|
1281
|
-
input:disabled ~ span > svg {
|
|
1282
|
-
border: 1px solid ${e.palette.gray[300]};
|
|
1283
|
-
cursor: not-allowed;
|
|
1284
|
-
}
|
|
1285
|
-
|
|
1286
|
-
input:not(:disabled):hover ~ span > svg {
|
|
1287
|
-
box-shadow: 0 0 0 4px ${e.palette.gray[100]};
|
|
1288
|
-
}
|
|
1289
|
-
|
|
1290
|
-
input:checked:disabled ~ span > svg {
|
|
1291
|
-
background-color: ${e.palette.gray[300]};
|
|
1292
|
-
border: 1px solid ${e.palette.gray[300]};
|
|
1293
|
-
}
|
|
1294
|
-
|
|
1295
|
-
input:not(:disabled):hover:checked ~ span > svg {
|
|
1296
|
-
box-shadow: 0 0 0 4px ${e.palette.primary[50]};
|
|
1297
|
-
}
|
|
1298
|
-
|
|
1299
|
-
input:checked ~ span > svg > path {
|
|
1300
|
-
fill: ${e.palette.white};
|
|
1301
|
-
}
|
|
1302
|
-
|
|
1303
|
-
input:checked:disabled ~ span > svg > path {
|
|
1304
|
-
fill: ${e.palette.white};
|
|
1305
|
-
}
|
|
1306
|
-
`}
|
|
1307
|
-
`,Fe=u.forwardRef(function({checked:i,disabled:n=!1,label:a,name:r,onChange:s,onClick:l,onFocus:c,onKeyDown:d,tooltip:p,value:g,...x},f){return t.jsxs("div",{className:"gap-1 inline-flex items-start",children:[t.jsxs(Un,{"aria-disabled":n,children:[t.jsx("input",{"aria-checked":i,"aria-disabled":n,"aria-hidden":!1,"aria-label":r,checked:i,disabled:n,id:r,name:r,onChange:s,onClick:l,onFocus:c,onKeyDown:d,ref:f,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})]})}),Rt=({options:e,title:i,checkboxesName:n,defaultCollapsed:a,onChange:r})=>{const s=o.nt(),[l,c]=u.useState(a??!1),d=u.useCallback(()=>{c(p=>!p)},[]);return t.jsxs($,{"aria-label":i,bgColor:l?s.palette.gray[50]:s.palette.white,border:"1px solid"+s.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(v,{color:s.palette.gray[800],fontWeight:"bold",size:"sm",children:i}),t.jsx(S,{icon:l?"chevron-up":"chevron-down",iconColor:s.palette.gray[400],iconSize:"xs"})]}),l?t.jsx($,{display:"flex",gap:.75,wrap:"wrap",children:e.map(p=>t.jsx($,{border:"1px solid",borderColor:s.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]})},Dt=(e,i)=>{const[a,r]=u.useState(0),[s,l]=u.useState(0);return u.useEffect(()=>{s===100&&(()=>{r(d=>d===i-1?0:d+1)})()},[s,i]),u.useEffect(()=>{const c=setInterval(()=>{l(d=>d===100?0:d+1)},e);return()=>{clearInterval(c)}},[e]),{cycle:a,progress:s,setCycle:r,setProgress:l}},Lt=({publicId:e,format:i="webp"})=>{const n=u.useMemo(()=>new o.Cloudinary({cloud:{cloudName:"fluid-attacks"}}),[]);return u.useMemo(()=>n.image(e).format(i),[n,e,i])},Ne=e=>{const[i,n]=u.useState(!1),a=u.useCallback(()=>{n(!0)},[]),r=u.useCallback(()=>{n(!1)},[]),s=u.useCallback(()=>{n(l=>!l)},[]);return{close:r,isOpen:i,name:e,open:a,setIsOpen:n,toggle:s}},Gn=({name:e,items:i,columnOrder:n,setColumnOrder:a})=>{const r=u.useMemo(()=>[...i.filter(({locked:g})=>g).map(({locked:g,...x})=>({...x,visible:!0,locked:g})),...i.filter(({locked:g})=>!g)],[i]),[s,l]=u.useState(r),c=u.useCallback(g=>{const x=g.filter(({locked:m})=>!m),h=[...g.filter(({locked:m})=>m),...x],b=h.map(({name:m})=>m);l(m=>[...h,...m.filter(({name:y})=>!b.includes(y))]),a&&a(h.map(({id:m})=>m))},[a]),d=u.useCallback(()=>{const g=s.map(x=>{var h;const f=(n==null?void 0:n.includes(x.id))??!1;return(h=x.toggleVisibility)==null||h.call(x,f),{...x,visible:f}}).toSorted((x,f)=>{const h=(n==null?void 0:n.indexOf(x.id))??0,b=(n==null?void 0:n.indexOf(f.id))??0;return Number(f.visible)!==Number(x.visible)?Number(f.visible)-Number(x.visible):h-b});l(g),a==null||a(n)},[s,n,a]),p=u.useMemo(()=>o.some(s,g=>((n==null?void 0:n.includes(g.id))??!1)!==g.visible),[s,n]);return{setColumns:c,resetToDefault:d,columns:s,...Ne(e),hasChanged:p}},Pt=(e,i)=>u.useMemo(()=>o._.debounce(e,i),[e,i]),Yn=e=>{const[i,n]=u.useState(),a=Pt(r=>{n(r)},(e==null?void 0:e.debounceWait)??300);return[i,a]},qn=({alt:e="img",height:i="",width:n="",plugins:a=[o.lazyload(),o.placeholder()],publicId:r})=>{const s=Lt({publicId:r});return t.jsx(o.AdvancedImage,{alt:e,cldImg:s,height:i,plugins:a,width:n})},Y=u.memo(qn),Kn=o.dt.label`
|
|
1308
|
-
${({theme:e})=>`
|
|
1309
|
-
align-items: center;
|
|
1310
|
-
display: flex;
|
|
1311
|
-
color: ${e.palette.gray[600]};
|
|
1312
|
-
cursor: pointer;
|
|
1313
|
-
font-family: ${e.typography.type.primary};
|
|
1314
|
-
font-size: ${e.typography.text.sm};
|
|
1315
|
-
font-weight: ${e.typography.weight.regular};
|
|
1316
|
-
gap: ${e.spacing[.5]};
|
|
1317
|
-
line-height: ${e.typography.text.lg};
|
|
1318
|
-
text-align: left;
|
|
1319
|
-
position: relative;
|
|
1320
|
-
|
|
1321
|
-
&[aria-disabled="true"] {
|
|
1322
|
-
color: ${e.palette.gray[300]};
|
|
1323
|
-
cursor: not-allowed;
|
|
1324
|
-
}
|
|
1325
|
-
|
|
1326
|
-
input {
|
|
1327
|
-
position: absolute;
|
|
1328
|
-
opacity: 0;
|
|
1329
|
-
cursor: pointer;
|
|
1330
|
-
width: 0;
|
|
1331
|
-
}
|
|
1332
|
-
|
|
1333
|
-
.checkmark {
|
|
1334
|
-
position: relative;
|
|
1335
|
-
top: 0;
|
|
1336
|
-
left: 0;
|
|
1337
|
-
height: 16px;
|
|
1338
|
-
width: 16px;
|
|
1339
|
-
background-color: ${e.palette.white};
|
|
1340
|
-
border-radius: 50%;
|
|
1341
|
-
border: 1px solid ${e.palette.gray[600]};
|
|
1342
|
-
}
|
|
1343
|
-
|
|
1344
|
-
input:disabled ~ .checkmark {
|
|
1345
|
-
border: 1px solid ${e.palette.gray[300]};
|
|
1346
|
-
background-color: ${e.palette.white};
|
|
1347
|
-
cursor: not-allowed;
|
|
1348
|
-
}
|
|
1349
|
-
|
|
1350
|
-
input:not(:disabled):checked ~ .checkmark {
|
|
1351
|
-
background-color: ${e.palette.white};
|
|
1352
|
-
border: 1px solid ${e.palette.primary[500]};
|
|
1353
|
-
}
|
|
1354
|
-
|
|
1355
|
-
input:not(:disabled):hover ~ .checkmark {
|
|
1356
|
-
background-color: ${e.palette.white};
|
|
1357
|
-
box-shadow: 0 0 0 4px ${e.palette.gray[100]};
|
|
1358
|
-
}
|
|
1359
|
-
|
|
1360
|
-
input:not(:disabled):hover:checked ~ .checkmark {
|
|
1361
|
-
background-color: ${e.palette.white};
|
|
1362
|
-
box-shadow: 0 0 0 4px ${e.palette.primary[50]};
|
|
1363
|
-
}
|
|
1364
|
-
|
|
1365
|
-
.checkmark::after {
|
|
1366
|
-
content: "";
|
|
1367
|
-
position: absolute;
|
|
1368
|
-
display: none;
|
|
1369
|
-
top: 3px;
|
|
1370
|
-
left: 3px;
|
|
1371
|
-
width: 8px;
|
|
1372
|
-
height: 8px;
|
|
1373
|
-
border-radius: 50%;
|
|
1374
|
-
background: ${e.palette.primary[500]};
|
|
1375
|
-
}
|
|
1376
|
-
|
|
1377
|
-
input:checked ~ .checkmark::after {
|
|
1378
|
-
display: block;
|
|
1379
|
-
}
|
|
1380
|
-
|
|
1381
|
-
input:disabled:checked ~ .checkmark::after {
|
|
1382
|
-
background-color: ${e.palette.gray[300]};
|
|
1383
|
-
}
|
|
1384
|
-
|
|
1385
|
-
`}
|
|
1386
|
-
`,Xn=o.dt.span.attrs({className:"checkmark"})``,Xe=u.forwardRef(function({defaultChecked:i=!1,disabled:n=!1,label:a,name:r,onChange:s,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:s,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,register:s,title:l,width:c="fit-content"})=>{const d=o.nt();return t.jsxs($,{alignItems:"center",border:`1px solid ${d.palette.gray[200]}`,borderColorHover:d.palette.gray[600],borderRadius:d.spacing[.25],display:"inline-flex",padding:[1,1,1,1],shadowHover:"md",width:c,children:[t.jsx($,{alignSelf:"start",display:"flex",width:"fit-content",children:t.jsx(Xe,{name:a.name,onClick:r,value:a.value,...s==null?void 0:s(a.name)})}),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(Y,{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(v,{color:d.palette.gray[800],fontWeight:"bold",size:"sm",children:l})]})]})},ne=o.dt.div`
|
|
1387
|
-
${({theme:e})=>`
|
|
1388
|
-
align-items: center;
|
|
1389
|
-
background-color: ${e.palette.gray[200]};
|
|
1390
|
-
border-radius: 34px;
|
|
1391
|
-
cursor: pointer;
|
|
1392
|
-
display: flex;
|
|
1393
|
-
height: 20px;
|
|
1394
|
-
position: relative;
|
|
1395
|
-
transition: 0.2s;
|
|
1396
|
-
width: 36px;
|
|
1397
|
-
`}
|
|
1398
|
-
`,Jn=o.dt.div`
|
|
1399
|
-
${({theme:e})=>`
|
|
1400
|
-
background-color: ${e.palette.white};
|
|
1401
|
-
border-radius: 50%;
|
|
1402
|
-
height: ${e.spacing[1]};
|
|
1403
|
-
left: 2px;
|
|
1404
|
-
position: absolute;
|
|
1405
|
-
transition: 0.2s;
|
|
1406
|
-
width: ${e.spacing[1]};
|
|
1407
|
-
z-index: 1;
|
|
1408
|
-
`}
|
|
1409
|
-
`,Qn=o.dt.label`
|
|
1410
|
-
display: inline-block;
|
|
1411
|
-
|
|
1412
|
-
input {
|
|
1413
|
-
position: absolute;
|
|
1414
|
-
height: 0;
|
|
1415
|
-
opacity: 0;
|
|
1416
|
-
width: 0;
|
|
1417
|
-
}
|
|
1418
|
-
|
|
1419
|
-
input:checked + ${ne} {
|
|
1420
|
-
background-color: ${({theme:e})=>e.palette.primary[500]};
|
|
1421
|
-
}
|
|
1422
|
-
|
|
1423
|
-
input:checked + ${ne} > div {
|
|
1424
|
-
transform: translateX(100%);
|
|
1425
|
-
}
|
|
1426
|
-
|
|
1427
|
-
input:disabled + ${ne} {
|
|
1428
|
-
cursor: not-allowed;
|
|
1429
|
-
background-color: ${({theme:e})=>e.palette.gray[100]};
|
|
1430
|
-
}
|
|
1431
|
-
|
|
1432
|
-
input:disabled + ${ne} > div {
|
|
1433
|
-
background-color: ${({theme:e})=>e.palette.gray[200]};
|
|
1434
|
-
border: 1px solid ${({theme:e})=>e.palette.gray[200]};
|
|
1435
|
-
}
|
|
1436
|
-
`,Wt=u.forwardRef(function({defaultChecked:i,disabled:n=!1,justify:a,name:r,leftDescription:s,leftDescriptionMinWidth:l,rightDescription:c,...d},p){const g=i===!0?"on":"off",x=typeof s=="object"&&s.on&&s.off?s[g]:s,f=u.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:f,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(ne,{"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 s=o.nt();return t.jsxs($,{alignItems:"center",bgColor:s.palette.white,border:`1px solid ${s.palette.gray[200]}`,borderRadius:s.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(Wt,{...l},`$card-toggle-${l.name}`))})]})},ta=o.dt.div`
|
|
1437
|
-
position: relative;
|
|
1438
|
-
margin: auto;
|
|
1439
|
-
overflow: hidden;
|
|
1440
|
-
`,ia=o.dt.div`
|
|
1441
|
-
display: flex;
|
|
1442
|
-
transition: transform 0.5s ease-in-out;
|
|
1443
|
-
transform: translateX(
|
|
1444
|
-
${({$currentIndex:e})=>-e*100}%
|
|
1445
|
-
);
|
|
1446
|
-
`,na=o.dt.div`
|
|
1447
|
-
align-items: center;
|
|
1448
|
-
display: flex;
|
|
1449
|
-
justify-content: center;
|
|
1450
|
-
min-width: 100%;
|
|
1451
|
-
`,aa=o.dt.button`
|
|
1452
|
-
${({theme:e,$isActive:i})=>`
|
|
1453
|
-
background-color: ${i?e.palette.primary[400]:e.palette.white};
|
|
1454
|
-
border: none;
|
|
1455
|
-
border-radius: 50%;
|
|
1456
|
-
cursor: pointer;
|
|
1457
|
-
height: ${e.spacing[.75]};
|
|
1458
|
-
width: ${e.spacing[.75]};
|
|
1459
|
-
`}
|
|
1460
|
-
`,ra=o.dt.div`
|
|
1461
|
-
align-items: center;
|
|
1462
|
-
display: flex;
|
|
1463
|
-
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1464
|
-
justify-content: center;
|
|
1465
|
-
margin-top: ${({theme:e})=>e.spacing[2]};
|
|
1466
|
-
`,oa=({slides:e,interval:i=300})=>{const{cycle:n,setCycle:a,setProgress:r}=Dt(i,e.length),s=u.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:s(c)},d)})})]})},At=o.dt.div`
|
|
1467
|
-
${({theme:e})=>`
|
|
1468
|
-
background-color: ${e.palette.gray[100]};
|
|
1469
|
-
border-radius: ${e.spacing[.25]};
|
|
1470
|
-
display: inline-flex;
|
|
1471
|
-
padding: ${e.spacing[1]};
|
|
1472
|
-
position: relative;
|
|
1473
|
-
width: fit-content;
|
|
1474
|
-
|
|
1475
|
-
.line-highlight.language-none {
|
|
1476
|
-
background: ${e.palette.gray[100]};
|
|
1477
|
-
}
|
|
1478
|
-
|
|
1479
|
-
.line-highlight {
|
|
1480
|
-
background: hsl(354deg 88% 93% / 50%);
|
|
1481
|
-
font-family: ${e.typography.type.mono};
|
|
1482
|
-
font-size: ${e.typography.text.xs};
|
|
1483
|
-
line-height: ${e.spacing[1]};
|
|
1484
|
-
}
|
|
1485
|
-
|
|
1486
|
-
.line-highlight::before,
|
|
1487
|
-
.line-highlight[data-end]::after {
|
|
1488
|
-
background: ${e.palette.primary[300]};
|
|
1489
|
-
background-color: hsl(355deg 89% 36%);
|
|
1490
|
-
color: ${e.palette.white};
|
|
1491
|
-
}
|
|
1492
|
-
|
|
1493
|
-
pre code {
|
|
1494
|
-
color: #161616;
|
|
1495
|
-
font-family: ${e.typography.type.mono};
|
|
1496
|
-
font-size: ${e.typography.text.xs};
|
|
1497
|
-
line-height: ${e.spacing[1]};
|
|
1498
|
-
}
|
|
1499
|
-
|
|
1500
|
-
pre:not(.line-highlight) {
|
|
1501
|
-
margin-top: unset;
|
|
1502
|
-
margin-bottom: unset;
|
|
1503
|
-
padding: unset;
|
|
1504
|
-
width: 100%;
|
|
1505
|
-
}
|
|
1506
|
-
|
|
1507
|
-
span:hover {
|
|
1508
|
-
background-color: ${e.palette.gray[200]};
|
|
1509
|
-
}
|
|
1510
|
-
|
|
1511
|
-
.no-data,
|
|
1512
|
-
pre.line-highlight {
|
|
1513
|
-
background-color: ${e.palette.gray[100]};
|
|
1514
|
-
padding-top: unset;
|
|
1515
|
-
padding-bottom: unset;
|
|
1516
|
-
}
|
|
1517
|
-
`}
|
|
1518
|
-
`,sa=o.dt.div`
|
|
1519
|
-
${({theme:e})=>`
|
|
1520
|
-
align-items: end;
|
|
1521
|
-
background-color: ${e.palette.gray[100]};
|
|
1522
|
-
display: flex;
|
|
1523
|
-
flex-direction: column;
|
|
1524
|
-
justify-content: space-between;
|
|
1525
|
-
min-width: 103px;
|
|
1526
|
-
margin-right: ${e.spacing[1]};
|
|
1527
|
-
padding-top: ${e.spacing[1]};
|
|
1528
|
-
padding-bottom: ${e.spacing[1]};
|
|
1529
|
-
position: relative;
|
|
1530
|
-
padding-left: unset;
|
|
1531
|
-
|
|
1532
|
-
button:hover:not([disabled]) {
|
|
1533
|
-
background-color: ${e.palette.gray[200]};
|
|
1534
|
-
}
|
|
1535
|
-
`}
|
|
1536
|
-
`,Bt=({noCodeMessage:e="Code snippet not available",snippet:i,specific:n})=>(u.useEffect(()=>{o.prismExports.highlightAll()},[]),t.jsx(At,{"data-private":!0,children:t.jsx("pre",{className:"line-highlight","data-line-offset":o._.isNil(i)||o._.isString(i)?0:i.offset+.7,...n!==void 0?{"data-line":String(Number(n))}:{},children:o._.isNil(i)||o._.isString(i)||o._.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=o.nt(),[s,l]=u.useState(!1),[c,d]=u.useState(!0),p=u.useCallback(()=>{l(h=>!h)},[l]),g=u.useCallback(()=>{if(o._.isNil(i)||o._.isEmpty(i)||!o._.isString(i))return d(!1),e;const h=i.split(`
|
|
1537
|
-
`);return h.length>8&&!s?`${[...h].splice(0,7).join(`
|
|
1538
|
-
`)}
|
|
1539
|
-
${h[8]}...`:(h.length<8&&d(!1),i)},[s,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(async()=>{await navigator.clipboard.writeText(x)},[x]);return a==="location"?t.jsx(Bt,{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:f,variant:"ghost",width:r.spacing[2.5]}),c?t.jsxs(R,{onClick:p,variant:"ghost",children:[s?"Show Less":"Show more",t.jsx(S,{icon:s?"chevron-up":"chevron-down",iconColor:r.palette.gray[700],iconSize:"xxs",iconType:"fa-light",ml:.25,onClick:f})]}):!1]})]})},{getVariant:ca}=U(e=>({fixed:`
|
|
1540
|
-
width: 300px;
|
|
1541
|
-
padding: ${e.spacing[1.25]};
|
|
1542
|
-
overflow: hidden auto;
|
|
1543
|
-
`,lg:`
|
|
1544
|
-
width: 80%;
|
|
1545
|
-
|
|
1546
|
-
@media screen and (min-width: ${e.breakpoints.sm}) {
|
|
1547
|
-
width: 72%;
|
|
1548
|
-
}
|
|
1549
|
-
`,md:`
|
|
1550
|
-
width: 60%;
|
|
1551
|
-
|
|
1552
|
-
@media screen and (min-width: ${e.breakpoints.sm}) {
|
|
1553
|
-
width: 48%;
|
|
1554
|
-
}
|
|
1555
|
-
`,sm:`
|
|
1556
|
-
width: 40%;
|
|
1557
|
-
|
|
1558
|
-
@media screen and (min-width: ${e.breakpoints.sm}) {
|
|
1559
|
-
width: 32%;
|
|
1560
|
-
}
|
|
1561
|
-
`})),Ze=o.dt.div.attrs({className:"comp-modal fixed inset-0 overflow-auto"})`
|
|
1562
|
-
align-items: center;
|
|
1563
|
-
background-color: ${({$bgColor:e="rgb(52 64 84 / 70%)"})=>e};
|
|
1564
|
-
display: flex;
|
|
1565
|
-
justify-content: center;
|
|
1566
|
-
z-index: 99999;
|
|
1567
|
-
`,Ee=o.dt($)`
|
|
1568
|
-
${({theme:e,$size:i})=>`
|
|
1569
|
-
background-color: ${e.palette.white};
|
|
1570
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
1571
|
-
border-radius: ${e.spacing[.25]};
|
|
1572
|
-
color: ${e.palette.gray[800]};
|
|
1573
|
-
display: flex;
|
|
1574
|
-
font-family: ${e.typography.type.primary};
|
|
1575
|
-
font-size: ${e.typography.text.sm};
|
|
1576
|
-
max-height: 80%;
|
|
1577
|
-
min-height: minmax(content-fit, 32%);
|
|
1578
|
-
box-shadow: ${e.shadows.lg};
|
|
1579
|
-
margin: auto;
|
|
1580
|
-
white-space: pre-line;
|
|
1581
|
-
|
|
1582
|
-
${ca(e,i)}
|
|
1583
|
-
`}
|
|
1584
|
-
`,da=o.dt.div`
|
|
1585
|
-
${({theme:e})=>`
|
|
1586
|
-
background-color: ${e.palette.white};
|
|
1587
|
-
border-bottom: 1px solid ${e.palette.gray[200]};
|
|
1588
|
-
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
1589
|
-
display: flex;
|
|
1590
|
-
flex-direction: column;
|
|
1591
|
-
overflow: hidden auto;
|
|
1592
|
-
padding: 0 ${e.spacing[1.5]} ${e.spacing[1.5]} ${e.spacing[1.5]};
|
|
1593
|
-
scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
|
|
1594
|
-
scroll-padding: ${e.spacing[.5]};
|
|
1595
|
-
|
|
1596
|
-
&:has(form) {
|
|
1597
|
-
flex-direction: unset;
|
|
1598
|
-
overflow: hidden;
|
|
1599
|
-
padding: 0;
|
|
1600
|
-
}
|
|
1601
|
-
`}
|
|
1602
|
-
`,pa=o.dt.div`
|
|
1603
|
-
border-radius: ${({theme:e})=>`${e.spacing[.25]} ${e.spacing[.25]} 0 0`};
|
|
1604
|
-
display: block;
|
|
1605
|
-
overflow: unset;
|
|
1606
|
-
height: max-content;
|
|
1607
|
-
max-height: 100%;
|
|
1608
|
-
max-width: 100%;
|
|
1609
|
-
padding: ${({theme:e})=>`${e.spacing[1.25]}`};
|
|
1610
|
-
padding-bottom: ${({theme:e})=>`${e.spacing[1.5]}`};
|
|
1611
|
-
position: sticky;
|
|
1612
|
-
`,ga=o.dt.div.attrs({className:"flex items-center justify-between"})``,xa=o.dt.div`
|
|
1613
|
-
${({theme:e})=>`
|
|
1614
|
-
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
1615
|
-
display: flex;
|
|
1616
|
-
flex-direction: row;
|
|
1617
|
-
gap: ${e.spacing[.75]};
|
|
1618
|
-
justify-content: space-between;
|
|
1619
|
-
max-width: 392px;
|
|
1620
|
-
|
|
1621
|
-
> label {
|
|
1622
|
-
margin: 0;
|
|
1623
|
-
flex: 1 1 auto;
|
|
1624
|
-
}
|
|
1625
|
-
|
|
1626
|
-
> div {
|
|
1627
|
-
display: flex;
|
|
1628
|
-
flex-direction: row;
|
|
1629
|
-
flex: 1 1 auto;
|
|
1630
|
-
gap: ${e.spacing[.75]};
|
|
1631
|
-
margin-right: ${e.spacing[.75]};
|
|
1632
|
-
|
|
1633
|
-
> button {
|
|
1634
|
-
justify-content: center;
|
|
1635
|
-
max-width: 190px;
|
|
1636
|
-
}
|
|
1637
|
-
}
|
|
1638
|
-
|
|
1639
|
-
> div:last-child {
|
|
1640
|
-
margin-right: 0;
|
|
1641
|
-
}
|
|
1642
|
-
`}
|
|
1643
|
-
`,ua=o.dt.div`
|
|
1644
|
-
img {
|
|
1645
|
-
margin: 0 calc(-${({theme:e})=>e.spacing[1.25]} - 1px)
|
|
1646
|
-
${({theme:e})=>e.spacing[1.25]};
|
|
1647
|
-
|
|
1648
|
-
min-width: calc(100% + 2px + ${({theme:e})=>e.spacing[3]});
|
|
1649
|
-
height: 185px;
|
|
1650
|
-
object-fit: cover;
|
|
1651
|
-
|
|
1652
|
-
${({$framed:e=!1})=>e?`
|
|
1653
|
-
border-radius: 8px;
|
|
1654
|
-
min-width: 100%;
|
|
1655
|
-
margin-left: 0;
|
|
1656
|
-
margin-right: 0;
|
|
1657
|
-
`:""}
|
|
1658
|
-
}
|
|
1659
|
-
`,_t=({alert:e,modalRef:i,confirmButton:n=void 0,cancelButton:a=void 0})=>{const{close:r}=i,s=u.useCallback(()=>{a!=null&&a.onClick&&a.onClick(),r()},[a,r]),l=u.useCallback(()=>{n!=null&&n.onClick&&n.onClick(),r()},[n,r]);return[n,a].some(d=>!o.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(R,{id:a.id,onClick:s,variant:"tertiary",width:"100%",children:a.text}),n&&t.jsx(R,{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 s=o.nt(),l=u.useCallback(()=>{r==null||r(),n.close()},[n,r]);return u.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(_,{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:s.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:l,px:.25,py:.25,variant:"ghost"})]})]}),i&&o.lodashExports.isString(i)&&!o.lodashExports.isEmpty(i)?t.jsx(v,{mt:.5,size:"sm",children:i}):void 0,i&&!o.lodashExports.isString(i)&&t.jsx(oe,{display:"block",mt:.5,size:"sm",children:i})]})},fa=({disabled:e,id:i="modal-confirm",onCancel:n,onConfirm:a="submit",txtCancel:r,txtConfirm:s})=>{const l=a==="submit";return t.jsxs($,{display:"flex",gap:.75,maxWidth:n?"392px":"190px",mt:1.5,children:[n?t.jsx(R,{id:`${i}-cancel`,justify:"center",onClick:n,variant:"tertiary",width:"100%",children:r??"Cancel"}):void 0,t.jsx(R,{disabled:e,id:i,justify:"center",onClick:l?void 0:a,type:l?"submit":"button",variant:"primary",width:"100%",children:s??"Confirm"})]})},ha=o.dt.button`
|
|
1660
|
-
${({theme:e})=>`
|
|
1661
|
-
align-items: center;
|
|
1662
|
-
color: ${e.palette.gray[500]};
|
|
1663
|
-
display: flex;
|
|
1664
|
-
gap: ${e.spacing[.625]};
|
|
1665
|
-
justify-content: center;
|
|
1666
|
-
padding: ${e.spacing[.75]};
|
|
1667
|
-
text-align: center;
|
|
1668
|
-
width: 151px;
|
|
1669
|
-
|
|
1670
|
-
&.active {
|
|
1671
|
-
color: ${e.palette.gray[800]};
|
|
1672
|
-
border-bottom: 3px solid ${e.palette.primary[400]};
|
|
1673
|
-
}
|
|
1674
|
-
|
|
1675
|
-
&:hover {
|
|
1676
|
-
color: ${e.palette.gray[800]};
|
|
1677
|
-
}
|
|
1678
|
-
`}
|
|
1679
|
-
`,ba=o.dt.div`
|
|
1680
|
-
${({theme:e})=>`
|
|
1681
|
-
align-items: center;
|
|
1682
|
-
border-bottom: 2px solid ${e.palette.gray[200]};
|
|
1683
|
-
display: flex;
|
|
1684
|
-
gap: ${e.spacing[3]};
|
|
1685
|
-
height: ${e.spacing[3]};
|
|
1686
|
-
width: max-content;
|
|
1687
|
-
`}
|
|
1688
|
-
`,ya=(e,i,n)=>n?i==="secondary"?`3px solid ${e.palette.primary[100]}`:`3px solid ${e.palette.primary[500]}`:"unset",$a=o.dt.div`
|
|
1689
|
-
display: flex;
|
|
1690
|
-
flex-direction: row;
|
|
1691
|
-
gap: ${({theme:e})=>e.spacing[.25]};
|
|
1692
|
-
border-bottom: ${({theme:e,$borderButton:i,$variant:n})=>ya(e,n,i)};
|
|
1693
|
-
align-items: center;
|
|
1694
|
-
padding: ${({theme:e})=>e.spacing[.625]}
|
|
1695
|
-
${({theme:e})=>e.spacing[.5]};
|
|
1696
|
-
padding-bottom: ${({theme:e,$borderButton:i})=>i?`calc(${e.spacing[.625]} - 2px)`:e.spacing[.625]};
|
|
1697
|
-
|
|
1698
|
-
&:hover:not([disabled]) {
|
|
1699
|
-
background-color: ${({theme:e})=>e.palette.gray[100]};
|
|
1700
|
-
color: ${({theme:e})=>e.palette.gray[800]};
|
|
1701
|
-
}
|
|
1702
|
-
|
|
1703
|
-
a {
|
|
1704
|
-
align-items: center;
|
|
1705
|
-
background: transparent;
|
|
1706
|
-
color: ${({theme:e})=>e.palette.gray[800]};
|
|
1707
|
-
font-family: ${({theme:e})=>e.typography.type.primary};
|
|
1708
|
-
font-size: ${({theme:e})=>e.typography.text.sm};
|
|
1709
|
-
display: flex;
|
|
1710
|
-
font-weight: ${({theme:e})=>e.typography.weight.regular};
|
|
1711
|
-
position: relative;
|
|
1712
|
-
text-align: center;
|
|
1713
|
-
text-decoration: unset;
|
|
1714
|
-
width: auto;
|
|
1715
|
-
cursor: pointer;
|
|
1716
|
-
|
|
1717
|
-
&:disabled {
|
|
1718
|
-
cursor: not-allowed;
|
|
1719
|
-
background-color: ${({theme:e})=>e.palette.gray[300]};
|
|
1720
|
-
color: ${({theme:e})=>e.palette.gray[300]};
|
|
1721
|
-
}
|
|
1722
|
-
|
|
1723
|
-
&.active {
|
|
1724
|
-
background-color: transparent;
|
|
1725
|
-
|
|
1726
|
-
&:hover {
|
|
1727
|
-
background-color: transparent;
|
|
1728
|
-
}
|
|
1729
|
-
}
|
|
1730
|
-
}
|
|
1731
|
-
`,ma=o.dt(be)`
|
|
1732
|
-
${({theme:e,$variant:i})=>`
|
|
1733
|
-
align-items: center;
|
|
1734
|
-
background: ${i==="error"?e.palette.primary[400]:e.palette.warning[500]};
|
|
1735
|
-
border-radius: 100%;
|
|
1736
|
-
font-family: ${e.typography.type.primary};
|
|
1737
|
-
justify-content: center;
|
|
1738
|
-
padding: 0;
|
|
1739
|
-
position: absolute;
|
|
1740
|
-
z-index: 11;
|
|
1741
|
-
width: ${e.spacing[.5]};
|
|
1742
|
-
height: ${e.spacing[.5]};
|
|
1743
|
-
`}
|
|
1744
|
-
`,wa=o.dt.div`
|
|
1745
|
-
align-items: center;
|
|
1746
|
-
color: ${({theme:e})=>e.palette.white};
|
|
1747
|
-
display: flex;
|
|
1748
|
-
font-size: 6px;
|
|
1749
|
-
font-weight: ${({theme:e})=>e.typography.weight.bold};
|
|
1750
|
-
justify-content: center;
|
|
1751
|
-
`,Mt=u.forwardRef(function({numberIndicator:i,show:n,variant:a="error",...r},s){return t.jsx(ma,{$variant:a,className:n?"flex":"hidden","data-testid":"notification-sign",ref:s,...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:s,onClick:l,tooltip:c="",variant:d="primary",tag:p})=>{const{pathname:g}=De.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(De.NavLink,{end:e,id:n,onClick:l,to:r,children:[i,t.jsx(Mt,{left:s==null?void 0:s.left,numberIndicator:s==null?void 0:s.numberIndicator,show:s==null?void 0:s.show,top:s==null?void 0:s.top,variant:s==null?void 0:s.variant})]}),p===void 0?null:t.jsx(G,{tagLabel:`${p}`,variant:"default"})]})})},Je=({items:e,borders:i=!0,box:n=!1,variant:a="primary"})=>{const r=o.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:s,id:l,isActive:c,link:d,label:p,notificationSign:g,onClick:x,tag:f,tooltip:h})=>t.jsx(Ht,{end:s,id:l,isActive:c,label:p,link:d,notificationSign:g,onClick:x,tag:f,tooltip:h,variant:a},l))})},te=u.forwardRef(function({color:i=z.palette.gray[100],mt:n=.5,mb:a=.5,width:r,...s},l){return t.jsx($,{as:"hr",borderTop:`1px solid ${i}`,mb:a,mt:n,ref:l,width:r??"100%",...s})}),ja=o.dt.li`
|
|
1752
|
-
${({theme:e})=>`
|
|
1753
|
-
align-items: center;
|
|
1754
|
-
background-color: ${e.palette.white};
|
|
1755
|
-
color: ${e.palette.gray[800]};
|
|
1756
|
-
cursor: pointer;
|
|
1757
|
-
display: flex;
|
|
1758
|
-
font-size: ${e.typography.text.sm};
|
|
1759
|
-
font-weight: ${e.typography.weight.regular};
|
|
1760
|
-
justify-content: space-between;
|
|
1761
|
-
gap: ${e.spacing[.625]};
|
|
1762
|
-
line-height: ${e.spacing[1.25]};
|
|
1763
|
-
list-style-type: none;
|
|
1764
|
-
min-height: 40px;
|
|
1765
|
-
min-width: 240px;
|
|
1766
|
-
padding: ${e.spacing[.625]} ${e.spacing[1]};
|
|
1767
|
-
|
|
1768
|
-
p,
|
|
1769
|
-
a {
|
|
1770
|
-
word-break: break-word;
|
|
1771
|
-
}
|
|
1772
|
-
|
|
1773
|
-
& > label {
|
|
1774
|
-
margin: unset;
|
|
1775
|
-
}
|
|
1776
|
-
|
|
1777
|
-
a {
|
|
1778
|
-
color: ${e.palette.gray[500]};
|
|
1779
|
-
}
|
|
1780
|
-
|
|
1781
|
-
&[aria-disabled="true"] {
|
|
1782
|
-
color: ${e.palette.gray[300]};
|
|
1783
|
-
cursor: not-allowed;
|
|
1784
|
-
|
|
1785
|
-
a {
|
|
1786
|
-
color: ${e.palette.gray[300]};
|
|
1787
|
-
}
|
|
1788
|
-
}
|
|
1789
|
-
|
|
1790
|
-
&[aria-selected="true"] {
|
|
1791
|
-
background-color: ${e.palette.gray[200]};
|
|
1792
|
-
}
|
|
1793
|
-
|
|
1794
|
-
&:hover:not([aria-selected="true"]) {
|
|
1795
|
-
background-color: ${e.palette.gray[100]};
|
|
1796
|
-
}
|
|
1797
|
-
`}
|
|
1798
|
-
`,Vt=o.dt.ul`
|
|
1799
|
-
${({theme:e})=>`
|
|
1800
|
-
background-color: ${e.palette.white};
|
|
1801
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
1802
|
-
border-radius: ${e.spacing[.25]};
|
|
1803
|
-
box-shadow: ${e.shadows.md};
|
|
1804
|
-
display: inline-block;
|
|
1805
|
-
margin: unset;
|
|
1806
|
-
min-width: 240px;
|
|
1807
|
-
padding: ${e.spacing[.25]} 0 ${e.spacing[.25]} 0;
|
|
1808
|
-
`}
|
|
1809
|
-
`,me=({children:e,disabled:i=!1,icon:n,iconType:a="fa-light",href:r,onClick:s,onClickIcon:l,onKeyDown:c,rightIcon:d,selected:p=!1,value:g,...x})=>{const h=o.nt().palette.gray[i?300:800],b=i?u.Children.map(e,m=>u.isValidElement(m)?u.cloneElement(m,{disabled:i,...m.props}):m):e;return t.jsxs(ja,{"aria-disabled":i,"aria-label":g,"aria-selected":p,"data-testid":g,onClick:s,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?b:t.jsx(Z,{href:r,children:b})]}):null,p||d?t.jsx(S,{disabled:i,icon:d??"check",iconClass:"selected",iconColor:h,iconSize:"xs",iconType:a,onClick:l}):null]})},va=o.dt(me)`
|
|
1810
|
-
margin-top: 10px;
|
|
1811
|
-
border: 1px solid ${({theme:e})=>e.palette.gray[300]};
|
|
1812
|
-
border-radius: 4px;
|
|
1813
|
-
min-width: unset;
|
|
1814
|
-
|
|
1815
|
-
svg {
|
|
1816
|
-
color: ${({theme:e})=>e.palette.gray[400]};
|
|
1817
|
-
}
|
|
1818
|
-
|
|
1819
|
-
&[aria-disabled="true"] {
|
|
1820
|
-
background: ${({theme:e})=>e.palette.gray[100]};
|
|
1821
|
-
color: ${({theme:e})=>e.palette.gray[500]};
|
|
1822
|
-
}
|
|
1823
|
-
|
|
1824
|
-
&[aria-selected="true"]:not([aria-disabled="true"]) {
|
|
1825
|
-
background-color: unset;
|
|
1826
|
-
}
|
|
1827
|
-
`,Ut=({items:e,onReorder:i,title:n,description:a,onClickClose:r})=>{const s=u.useCallback(l=>()=>{r(l)},[r]);return t.jsxs(o.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(_,{display:"flex",size:"xs",children:n}),t.jsx(G,{priority:"high",tagLabel:String(e.filter(l=>l.visible).length),variant:"error"})]}),t.jsx(v,{size:"sm",children:a}),e.map(l=>l.visible?t.jsx(o.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:s(l.id),rightIcon:l.locked?"lock":"close",selected:l.visible,value:l.name,children:l.name})},l.name):void 0)]})},ka=o.dt(me)`
|
|
1828
|
-
padding: 7px 8px;
|
|
1829
|
-
|
|
1830
|
-
&[aria-selected="true"] {
|
|
1831
|
-
background-color: unset;
|
|
1832
|
-
}
|
|
1833
|
-
|
|
1834
|
-
svg {
|
|
1835
|
-
&.fa-check {
|
|
1836
|
-
border-radius: 2px;
|
|
1837
|
-
}
|
|
1838
|
-
|
|
1839
|
-
&.selected {
|
|
1840
|
-
display: none;
|
|
1841
|
-
}
|
|
1842
|
-
}
|
|
1843
|
-
`,Gt=e=>e.reduce((n,a)=>a.group?n[a.group]?{...n,[a.group]:[...n[a.group],a]}:{...n,[a.group]:[a]}:n,{}),Ca=o.dt.input`
|
|
1844
|
-
${({theme:e})=>`
|
|
1845
|
-
background: none;
|
|
1846
|
-
border: none !important;
|
|
1847
|
-
box-shadow: none;
|
|
1848
|
-
box-sizing: border-box;
|
|
1849
|
-
color: ${e.palette.gray[800]};
|
|
1850
|
-
font-family: ${e.typography.type.primary};
|
|
1851
|
-
font-size: ${e.typography.text.sm};
|
|
1852
|
-
outline: none;
|
|
1853
|
-
width: 100%;
|
|
1854
|
-
|
|
1855
|
-
&:-webkit-autofill {
|
|
1856
|
-
-webkit-background-clip: text;
|
|
1857
|
-
}
|
|
1858
|
-
|
|
1859
|
-
&::placeholder {
|
|
1860
|
-
color: ${e.palette.gray[400]};
|
|
1861
|
-
}
|
|
1862
|
-
|
|
1863
|
-
&:is(:hover, :focus)::-webkit-search-cancel-button {
|
|
1864
|
-
display:none;
|
|
1865
|
-
}
|
|
1866
|
-
|
|
1867
|
-
::-webkit-search-decoration,
|
|
1868
|
-
::-webkit-search-results-button,
|
|
1869
|
-
::-webkit-search-results-decoration {
|
|
1870
|
-
display:none;
|
|
1871
|
-
}
|
|
1872
|
-
`}
|
|
1873
|
-
`,Sa=o.dt.div`
|
|
1874
|
-
${({theme:e})=>`
|
|
1875
|
-
align-items: center;
|
|
1876
|
-
background-color: ${e.palette.white};
|
|
1877
|
-
border: 1px solid ${e.palette.gray[300]};
|
|
1878
|
-
border-radius: ${e.spacing[.5]};
|
|
1879
|
-
display: flex;
|
|
1880
|
-
height: 40px;
|
|
1881
|
-
gap: ${e.spacing[.5]};
|
|
1882
|
-
padding: ${e.spacing[.5]};
|
|
1883
|
-
width: 100%;
|
|
1884
|
-
|
|
1885
|
-
&:hover {
|
|
1886
|
-
border-color: ${e.palette.gray[600]};
|
|
1887
|
-
}
|
|
1888
|
-
|
|
1889
|
-
&:focus-within {
|
|
1890
|
-
border: 2px solid ${e.palette.black};
|
|
1891
|
-
}
|
|
1892
|
-
`}
|
|
1893
|
-
`,za=o.dt.div`
|
|
1894
|
-
${({theme:e})=>`
|
|
1895
|
-
background-color: ${e.palette.white};
|
|
1896
|
-
border-radius: ${e.spacing[.5]};
|
|
1897
|
-
width: 250px;
|
|
1898
|
-
`}
|
|
1899
|
-
`,le=u.forwardRef(function({name:i,smallSearch:n=!1,onClear:a,value:r,...s},l){const c=o.nt(),[d,p]=u.useState(!1),{refs:g,floatingStyles:x}=o.useFloating$1(),f=u.useCallback(()=>{p(m=>!m)},[]),h=u.useCallback(m=>{m.key==="Enter"&&m.preventDefault()},[]);$e(g.floating.current,()=>{p(!1)},!0);const b=t.jsxs(Sa,{children:[t.jsx(S,{icon:"magnifying-glass",iconColor:c.palette.gray[700],iconSize:"xs",iconType:"fa-light"}),t.jsx(Ca,{...s,id:i,name:i,onKeyDown:h,ref:l,type:"search",value:r}),!o.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(u.Fragment,{children:[t.jsx(B,{border:`1px solid ${c.palette.gray[300]} !important`,icon:"magnifying-glass",iconSize:"xs",iconType:"fa-light",onClick:f,ref:g.setReference,variant:"ghost"}),d?t.jsx(za,{ref:g.setFloating,style:x,children:b}):void 0]}):b}),Yt=({columns:e,formId:i,onChangeHandler:n,variant:a})=>{const r=u.useRef(null),[s,l]=u.useState([]),[c,d]=u.useState(""),p=u.useCallback(x=>{const{value:f}=x.target;d(f)},[]),g=u.useCallback(()=>{r.current&&(r.current.reset(),d(""))},[r]);return u.useEffect(()=>{l(e.filter(x=>{var f;return a==="grouped"?x.name.toLowerCase().includes(c.toLowerCase())||((f=x.group)==null?void 0:f.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(le,{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(s)).map(([x,f],h)=>{const b=`li-checkbox${x}`;return t.jsx(Rt,{checkboxesName:x,defaultCollapsed:h===0,onChange:n,options:f,title:x},b)})})]}):t.jsxs($,{height:"100%",id:"columns-buttons",py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:r,children:t.jsx(le,{name:"search",onChange:p,onClear:g,value:c})}),t.jsx("form",{"data-testid":i,id:i,onReset:g,style:{paddingTop:"0.625rem"},children:s.map(x=>{const f=`li-checkbox-${x.name}`;return t.jsx(ka,{selected:x.visible,value:f,width:"content",children:t.jsx(Fe,{checked:x.visible,disabled:x.locked,label:x.name,name:x.name,onChange:n,value:x.name})},f)})})]})},Ia=({_containerId:e="portals",title:i,modalRef:n,variant:a})=>{const r=o.nt(),s=u.useRef(null),[l,c]=u.useState(void 0),d=u.useCallback(x=>{const{checked:f,value:h}=x.target,b=n.columns.map(m=>{var y;return m.name===h?((y=m.toggleVisibility)==null||y.call(m,f),{...m,visible:f}):m});n.setColumns(b)},[n]),p=u.useCallback(x=>{const f=n.columns.map(h=>{var b;return h.id===x?((b=h.toggleVisibility)==null||b.call(h,!1),{...h,visible:!1}):h});n.setColumns(f)},[n]),g=u.useCallback(()=>{var f;const x=(f=s.current)==null?void 0:f.scrollHeight;l!==x&&c(x)},[l]);return n.isOpen?X.createPortal(t.jsx(Ze,{"aria-label":n.name,"aria-modal":"true",children:t.jsxs(Ee,{$size:"md",flexDirection:"column",children:[t.jsxs($,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(_,{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(te,{mb:0,mt:0}),t.jsxs($,{display:"flex",gap:1.25,onScroll:g,px:1.25,ref:s,scroll:"y",width:"100%",children:[t.jsx(Yt,{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(Ut,{description:"Click and drag to reorder the columns",items:n.columns,onClickClose:p,onReorder:n.setColumns,title:"Reorder columns"})]}),t.jsx(te,{mb:0,mt:0}),t.jsxs($,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(R,{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(R,{id:"columns-modal-submit",justify:"center",onClick:n.close,variant:"primary",children:"Save"})]})]})}),document.getElementById(e)??document.body):t.jsx("div",{})},Ta=o.dt(me)`
|
|
1900
|
-
padding: 8px;
|
|
1901
|
-
min-width: unset;
|
|
1902
|
-
`,Fa=o.dt.div.attrs({className:"comp-modal absolute top-[55px] overflow-auto"})`
|
|
1903
|
-
align-items: center;
|
|
1904
|
-
background-color: ${({$bgColor:e="rgb(52 64 84 / 70%)"})=>e};
|
|
1905
|
-
display: flex;
|
|
1906
|
-
justify-content: center;
|
|
1907
|
-
z-index: 99999;
|
|
1908
|
-
`,lt=o.dt(me)`
|
|
1909
|
-
padding: 7px 8px;
|
|
1910
|
-
word-wrap: break-word;
|
|
1911
|
-
|
|
1912
|
-
svg.fa-check {
|
|
1913
|
-
border-radius: 2px;
|
|
1914
|
-
}
|
|
1915
|
-
`,qt=({control:e,option:i,register:n,setValue:a})=>{var r,s,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:(s=i.options)==null?void 0:s.map(g=>t.jsx(lt,{value:g.value,width:"content",children:t.jsx(Xe,{...n("radio"),label:g.label,value:g.value})},`li-radio-${g.value}`))});case"select":return t.jsx(mt,{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(Ke,{label:i.label,name:p,register:n,value:i.value});case"numberRange":return t.jsx(Et,{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},variant:"filters"});case"dateRange":return t.jsx(Tt,{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,variant:"filters"});default:return t.jsx("div",{})}},Kt=({control:e,items:i,register:n,setValue:a})=>t.jsx(t.Fragment,{children:i.map((r,s)=>{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}),s<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]=u.useState([...e]),{control:a,register:r,handleSubmit:s,setValue:l}=o.useForm({defaultValues:{checkbox:e.filter(f=>f.type==="checkboxes").flatMap(f=>{var h;return((h=f.options)==null?void 0:h.filter(b=>b.checked).map(b=>b.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:s,setValue:l}},Na=(e,i)=>{var n,a,r,s,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",(s=e.find(c=>["numberRange","dateRange"].includes(c.type)))==null?void 0:s.minValue),i("maxValue",(l=e.find(c=>["numberRange","dateRange"].includes(c.type)))==null?void 0:l.maxValue)},Ea=(e,i)=>e.map(n=>{var a;return n.type==="checkboxes"?{...n,options:(a=n.options)==null?void 0:a.filter(r=>{var s;return((s=r.label)==null?void 0:s.toLowerCase().includes(i.toLowerCase()))??r.value.toLowerCase().includes(i.toLowerCase())})}:n}),Be=({options:e,onSubmit:i,id:n,open:a,onClose:r})=>{const{control:s,items:l,setItems:c,register:d,handleSubmit:p,setValue:g}=Xt(e),x=e.some(y=>y.type==="checkboxes"),f=u.useCallback(y=>{const{value:w}=y.target,j=Ea(e,w);c(j)},[e,c]),h=u.useCallback(y=>{i&&i(y)},[i]),b=u.useCallback(y=>{var w;y.target===y.currentTarget&&((w=window.getSelection())==null?void 0:w.toString())===""&&r()},[r]);u.useEffect(()=>{c(e),Na(e,g)},[e,c,g]);const m=t.jsx(Ze,{$bgColor:"transparent",onClick:b,children:t.jsxs(Ee,{$size:"fixed",flexDirection:"column",gap:1.25,style:{overflow:"hidden"},children:[x&&t.jsx(le,{onChange:f}),t.jsxs("form",{id:n,onSubmit:p(h),children:[t.jsx(Kt,{control:s,items:l,register:d,setValue:g}),t.jsx(R,{mt:1,type:"submit",children:"Apply"})]})]})});return a?X.createPortal(m,document.getElementById("portals")??document.body):t.jsx("div",{})},Zt=({options:e,variant:i,onApplyFilters:n})=>{const a=o.nt(),[r,s]=u.useState(e),[l,c]=u.useState([]),[d,p]=u.useState({}),[g,x]=u.useState(""),f=u.useCallback(y=>()=>{const w=r.find(j=>j.label===y);x(y),c((w==null?void 0:w.filterOptions)??[])},[r]),h=u.useCallback(y=>{const w=[...y.checkbox,...Object.values(y.text??{}),...y.radio?[y.radio]:[],...y.minValue?[String(y.minValue)]:[],...y.maxValue?[String(y.maxValue)]:[]];p(I=>w.length>0?{...I,[g]:w}:I);const j=I=>{var N,E;return{...I,options:(N=I.options)==null?void 0:N.map(W=>({...W,checked:y.checkbox.includes(W.value)||y.radio===W.value})),value:["text","select"].includes(I.type)?((E=y.text)==null?void 0:E[`${String(I.key)}-${I.filterFn??"caseInsensitive"}`])??I.value:I.value,minValue:["numberRange","dateRange"].includes(I.type)?y.minValue:I.minValue,maxValue:["numberRange","dateRange"].includes(I.type)?y.maxValue:I.maxValue}},C=I=>I.label===g?{...I,filterOptions:I.filterOptions.map(j)}:I,k=r.map(C);s(I=>I.map(C));const T=k.flatMap(({filterOptions:I})=>I);n(T),c([])},[r,n,g]),b=u.useCallback(()=>{c([])},[]),m=u.useCallback((y,w)=>{const j=`li-filter-option-${y}`;return t.jsxs(Ta,{icon:w,onClick:f(y),style:{minWidth:"180px"},value:j,width:"100%",children:[y,d[y]===void 0?void 0:t.jsx(G,{tagLabel:d[y].length.toString()})]},j)},[d,f]);return u.useEffect(()=>{const y=e.reduce((w,{label:j,filterOptions:C})=>{const k=C.flatMap(({value:N,minValue:E,maxValue:W})=>[E,W,N]).filter(Boolean),T=C.flatMap(({options:N})=>N??[]).filter(({checked:N=!1})=>N).map(({value:N})=>N),I=[...k,...T];return I.length===0?w:{...w,[j]:I}},{});p(y)},[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(([y,w])=>t.jsxs($,{children:[t.jsx(v,{color:a.palette.gray[400],mb:.25,size:"sm",children:y}),w.map(({label:j,icon:C="filter-list"})=>m(j,C))]},y)),t.jsx(Be,{id:"filters-options",onClose:b,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:y,icon:w="filter-list"})=>m(y,w)),t.jsx(Be,{id:"filters-options",onClose:b,onSubmit:h,open:l.length>0,options:l})]})},Jt=({_containerId:e="portals",options:i,onApplyFilters:n,modalRef:a,variant:r})=>{const s=o.nt();return a.isOpen?X.createPortal(t.jsx(Fa,{$bgColor:"transparent","aria-label":a.name,"aria-modal":"true",children:t.jsxs(Ee,{$size:"fixed",alignItems:"start",display:"flex",flexDirection:"row",gap:.5,position:"relative",px:1.25,py:1.25,style:{width:"max-content"},children:[t.jsx(Zt,{onApplyFilters:n,options:i,variant:r}),t.jsx(B,{icon:"close",iconColor:s.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:a.close,px:.25,py:.25,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.label??a.value);return i.length===0?void 0:i.join(", ")}function La(e,i){const n=o._.isEmpty(e)&&typeof e!="number"?void 0:Number(e),a=o._.isEmpty(i)&&typeof i!="number"?void 0:Number(String(i));if(!o._.isUndefined(n)&&!o._.isUndefined(a))return`${n} - ${a}`;if(!o._.isUndefined(n))return`Min ${n}`;if(!o._.isUndefined(a))return`Max ${a}`}function Pa(e,i){if(o.dayjs_minExports.extend(o.localizedFormat),!(o._.isUndefined(e)||o._.isUndefined(i))){if(e!==""&&i!=="")return`${o.dayjs(e).format("LL")} - ${o.dayjs(i).format("LL")}`;if(e!=="")return`From ${o.dayjs(e).format("LL")}`;if(i!=="")return`To ${o.dayjs(i).format("LL")}`}}function Wa(e,i,n){return e==="select"?i:`${i} ${n==="includesInsensitive"?"contains":"is"}`}const ae=({filter:e,icon:i="filter-list",label:n,onClose:a,filterValue:r})=>o._.isNil(r)||o._.isEmpty(String(r))?null:t.jsx($,{pr:.25,children:t.jsx(G,{filterValues:r,icon:i,id:"remove-filter",onClose:a(e),tagLabel:`${n} `})},n),Qt=({options:e,onClose:i})=>{const n=e.flatMap(a=>a.filterOptions.map(r=>{const{filterFn:s,label:l,type:c,value:d,options:p,minValue:g,maxValue:x}=r;switch(c){case"numberRange":{const f=La(g,x);return t.jsx(ae,{filter:r,filterValue:f,icon:a.icon,label:a.label,onClose:i},l)}case"dateRange":{const f=Pa(g==null?void 0:g.toString(),x==null?void 0:x.toString());return t.jsx(ae,{filter:r,filterValue:f,icon:a.icon,label:a.label,onClose:i},l)}case"radioButton":case"checkboxes":{const f=Da(p);return t.jsx(ae,{filter:r,filterValue:f,icon:a.icon,label:a.label,onClose:i},l)}case void 0:case"select":case"text":default:{const f=Ra(d),h=Wa(c,a.label,s);return t.jsx(ae,{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!o._.isNil(r)&&!o._.isEmpty(String(r))});return t.jsx($,{display:"flex",wrap:"wrap",children:n})},Aa=(e,i)=>{function n(l,c){if(c.value===""||c.value===void 0||o._.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=o._.isEmpty(g)&&typeof g!="number"?void 0:d(String(g)),h=o._.isEmpty(x)&&typeof x!="number"?void 0:d(String(x));return o._.isUndefined(f)&&o._.isUndefined(h)?!0:(f??-1/0)<=p&&p<=(h??1/0)}function s(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(s)},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}},dt="portals",_a=({dataset:e,localStorageKey:i,options:n,setFilteredDataset:a,onFiltersChange:r,variant:s="ungrouped"})=>{const l=Ne("filters-modal"),[c,d]=u.useState([]),[p,g]=u.useState(ct(c)),x=n.map(b=>({...b,filterOptions:b.filterOptions.map(m=>c.find(w=>w.key===m.key&&w.type===m.type&&w.filterFn===m.filterFn)??{...m})})),f=u.useCallback(b=>{d([...b]),localStorage.setItem(i,JSON.stringify(b))},[d,i]),h=u.useCallback(b=>()=>{const m=c.map(y=>y.key===b.key&&y.type===b.type&&y.filterFn===b.filterFn?Ba(y):y);d(m),localStorage.setItem(i,JSON.stringify(m))},[c,i]);return u.useEffect(()=>{const b=localStorage.getItem(i),m=b?JSON.parse(b):n.flatMap(y=>y.filterOptions);d(m)},[i,n,d]),u.useEffect(()=>{a&&e!==void 0&&a(Aa(e,c)),g(ct(c)),r==null||r(c)},[e,c,a,g,r]),t.jsx(u.Fragment,{children:t.jsxs($,{alignItems:"center",display:"flex",gap:.25,id:dt,maxWidth:"100%",position:"relative",wrap:"wrap",children:[t.jsxs($,{pr:.25,children:[t.jsx(R,{icon:"filter",id:"filterBtn",onClick:l.toggle,tag:p.toString(),variant:"ghost"}),t.jsx(Qt,{onClose:h,options:x})]}),t.jsx(Jt,{_containerId:dt,modalRef:l,onApplyFilters:f,options:x,variant:s})]})})},ei=({_portal:e=!0,alert:i,cancelButton:n=void 0,children:a=void 0,confirmButton:r=void 0,content:s=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 b=o.nt(),m=t.jsx(Ze,{"aria-label":c.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs(Ee,{$size:f,"data-testid":h,flexDirection:"column",id:h,children:[!o._.isEmpty(x)&&!o._.isNil(x)&&t.jsx(Ot,{description:l,modalRef:c,onClose:p,otherActions:d,title:x}),g&&t.jsx($,{borderTop:`1px solid ${b.palette.gray[300]}`,display:"block",mb:1.25,position:"sticky",children:t.jsx(Je,{items:g})}),(o._.isObject(s)||a)&&t.jsxs(da,{children:[a,o._.isObject(s)&&o._.isString(s.imageSrc)&&t.jsx(ua,{$framed:s.imageFramed,children:t.jsx(Y,{alt:"modal-img",publicId:s.imageSrc})}),o._.isObject(s)&&o._.isString(s.imageText)&&t.jsx(v,{size:"sm",children:s.imageText})]}),t.jsx(_t,{alert:i,cancelButton:n,confirmButton:r,modalRef:c})]})});return e&&c.isOpen?X.createPortal(m,document.getElementById("portals")??document.body):c.isOpen?m:null},Oa=()=>{const[e,i]=u.useState(!1),[n,a]=u.useState(),r=u.useRef(null),s=Ne("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(()=>{s.setIsOpen(e)},[e,s]),{ConfirmDialog:({id:g="confirm-dialog-modal",children:x})=>t.jsxs(ei,{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:{...s,close:d},size:"sm",title:n==null?void 0:n.title,children:[n==null?void 0:n.content,x]}),confirm:l}},Ma=o.dt.button`
|
|
1916
|
-
display: flex;
|
|
1917
|
-
position: relative;
|
|
1918
|
-
height: 32px;
|
|
1919
|
-
width: 32px;
|
|
1920
|
-
|
|
1921
|
-
svg {
|
|
1922
|
-
position: absolute;
|
|
1923
|
-
}
|
|
1924
|
-
|
|
1925
|
-
.hovered {
|
|
1926
|
-
display: none;
|
|
1927
|
-
}
|
|
1928
|
-
|
|
1929
|
-
&:hover {
|
|
1930
|
-
.hovered {
|
|
1931
|
-
display: flex;
|
|
1932
|
-
}
|
|
1933
|
-
|
|
1934
|
-
.uncover {
|
|
1935
|
-
display: none;
|
|
1936
|
-
}
|
|
1937
|
-
}
|
|
1938
|
-
`,Ha=o.dt.div`
|
|
1939
|
-
${({theme:e})=>`
|
|
1940
|
-
display: flex;
|
|
1941
|
-
flex-direction: column;
|
|
1942
|
-
gap: ${e.spacing[2.5]};
|
|
1943
|
-
overflow: hidden;
|
|
1944
|
-
min-height: 589px;
|
|
1945
|
-
max-width: 1316px;
|
|
1946
|
-
|
|
1947
|
-
span {
|
|
1948
|
-
background: ${e.palette.gradients["01"]};
|
|
1949
|
-
background-clip: text;
|
|
1950
|
-
-webkit-background-clip: text;
|
|
1951
|
-
-webkit-text-fill-color: transparent;
|
|
1952
|
-
}
|
|
1953
|
-
|
|
1954
|
-
#mobile {
|
|
1955
|
-
display: none;
|
|
1956
|
-
}
|
|
1957
|
-
|
|
1958
|
-
#carousel {
|
|
1959
|
-
scrollbar-width: none;
|
|
1960
|
-
|
|
1961
|
-
&::-webkit-scrollbar {
|
|
1962
|
-
display: none;
|
|
1963
|
-
}
|
|
1964
|
-
}
|
|
1965
|
-
|
|
1966
|
-
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
1967
|
-
align-items: center;
|
|
1968
|
-
height: auto;
|
|
1969
|
-
max-width: 340px;
|
|
1970
|
-
|
|
1971
|
-
#desktop {
|
|
1972
|
-
display: none;
|
|
1973
|
-
}
|
|
1974
|
-
#mobile {
|
|
1975
|
-
display: flex;
|
|
1976
|
-
}
|
|
1977
|
-
}
|
|
1978
|
-
`}
|
|
1979
|
-
`,_e=({containerRef:e,id:i})=>{const n=o.nt(),a=i==="desktop"?380:342,r=u.useCallback(l=>()=>{if(e!=null&&e.current){const{current:c}=e;c.scrollBy({left:l==="right"?a:-a,behavior:"smooth"})}},[e,a]),s=u.useCallback(l=>t.jsxs(Ma,{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:[s("left"),s("right")]})},Oe=({tag:e,tagPosition:i})=>{const n=o.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(v,{color:n.palette.gray[900],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:e})}):null},ti=({eventDate:e})=>{const i=o.nt(),n=o.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(_,{fontWeight:"semibold",lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:a}),t.jsx(v,{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=o.dt.div`
|
|
1980
|
-
${({theme:e})=>`
|
|
1981
|
-
align-items: flex-start;
|
|
1982
|
-
display: flex;
|
|
1983
|
-
flex-direction: column;
|
|
1984
|
-
gap: ${e.spacing[1.5]};
|
|
1985
|
-
width: 384px;
|
|
1986
|
-
|
|
1987
|
-
img {
|
|
1988
|
-
height: 100%;
|
|
1989
|
-
width: 100%;
|
|
1990
|
-
}
|
|
1991
|
-
|
|
1992
|
-
#card-image {
|
|
1993
|
-
border-radius: ${e.spacing[1]};
|
|
1994
|
-
height: 240px;
|
|
1995
|
-
overflow: hidden;
|
|
1996
|
-
}
|
|
1997
|
-
|
|
1998
|
-
&:hover {
|
|
1999
|
-
img {
|
|
2000
|
-
transform: scale(1.2);
|
|
2001
|
-
}
|
|
2002
|
-
|
|
2003
|
-
> #card-content {
|
|
2004
|
-
> .title-dark {
|
|
2005
|
-
color: ${e.palette.gray[400]};
|
|
2006
|
-
}
|
|
2007
|
-
> .title-light {
|
|
2008
|
-
background: ${e.palette.gradients["01"]};
|
|
2009
|
-
background-clip: text;
|
|
2010
|
-
-webkit-background-clip: text;
|
|
2011
|
-
-webkit-text-fill-color: transparent;
|
|
2012
|
-
}
|
|
2013
|
-
}
|
|
2014
|
-
}
|
|
2015
|
-
|
|
2016
|
-
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
2017
|
-
width: 320px;
|
|
2018
|
-
|
|
2019
|
-
#card-image {
|
|
2020
|
-
height: 200px;
|
|
2021
|
-
}
|
|
2022
|
-
}
|
|
2023
|
-
`}
|
|
2024
|
-
`,ii=({author:e,buttonText:i,description:n,eventDate:a,href:r,imageId:s,mode:l="light",publishDate:c,readingTime:d,tag:p,tagPosition:g="top",title:x})=>{const f=o.nt(),h=c==null?void 0:c.split("-"),b=l==="dark",m=t.jsxs(Va,{"data-testid":`content-card-${x}`,children:[s||a||p&&g==="top"?t.jsxs($,{id:"card-image",position:"relative",children:[s&&t.jsx(Y,{publicId:s}),g==="top"&&t.jsx(Oe,{tag:p,tagPosition:g}),t.jsx(ti,{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(v,{color:f.palette.gray[b?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:f.palette.gray[b?300:400],iconSize:"xs",iconType:"fa-light"}),t.jsx(v,{color:f.palette.gray[b?300:400],size:"sm",sizeSm:"xs",textAlign:"right",children:d})]})]}):void 0,t.jsx(_,{className:`title-${l}`,color:b?f.palette.white:f.palette.gray[800],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:x}),n&&t.jsx(v,{color:f.palette.gray[b?100:600],size:"md",sizeSm:"sm",children:n}),i&&r&&t.jsx(R,{href:r,variant:"link",children:i})]})]});return r?t.jsx("a",{className:"flex w-fit",href:r,rel:"noopener noreferrer",target:"_self",children:m}):m},Ua=({description:e,items:i,title:n,titleHighlighted:a})=>{const r=u.useRef(null);return t.jsxs(Ha,{"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(_,{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(v,{lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:e})]}),t.jsx(_e,{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((s,l)=>t.jsx(ii,{...s},`${l}-${s.title}`))})}),t.jsx(_e,{containerRef:r,id:"mobile"})]})},Me=({buttonProps:e,variant:i})=>t.jsx(R,{onClick:e.onClick,variant:i,children:e.text}),Ga=o.dt.div`
|
|
2025
|
-
display: flex;
|
|
2026
|
-
flex-direction: column;
|
|
2027
|
-
align-items: center;
|
|
2028
|
-
padding: ${({theme:e,$padding:i})=>e.spacing[i]};
|
|
2029
|
-
max-width: 900px;
|
|
2030
|
-
white-space: pre-line;
|
|
2031
|
-
margin: 0 auto;
|
|
2032
|
-
`,Ya=o.dt.div`
|
|
2033
|
-
display: flex;
|
|
2034
|
-
flex-direction: row;
|
|
2035
|
-
justify-content: center;
|
|
2036
|
-
align-items: center;
|
|
2037
|
-
background-color: transparent;
|
|
2038
|
-
width: 96px;
|
|
2039
|
-
height: 96px;
|
|
2040
|
-
margin-bottom: ${({theme:e})=>e.spacing[2]};
|
|
2041
|
-
|
|
2042
|
-
> img {
|
|
2043
|
-
width: 100%;
|
|
2044
|
-
}
|
|
2045
|
-
`,qa=o.dt.div`
|
|
2046
|
-
display: flex;
|
|
2047
|
-
flex-direction: row;
|
|
2048
|
-
margin: 0;
|
|
2049
|
-
margin-bottom: ${({theme:e})=>e.spacing[2]};
|
|
2050
|
-
|
|
2051
|
-
> * {
|
|
2052
|
-
margin-right: ${({theme:e})=>e.spacing[.75]};
|
|
2053
|
-
}
|
|
2054
|
-
|
|
2055
|
-
> *:last-child {
|
|
2056
|
-
margin-right: 0;
|
|
2057
|
-
}
|
|
2058
|
-
`,pt={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:s,size:l="md"})=>{const c=(i??e)!==void 0;return t.jsxs(Ga,{$padding:r,children:[t.jsx(Ya,{children:t.jsx(Y,{alt:"empty-icon",publicId:a})}),t.jsx(_,{fontWeight:"bold",lineSpacing:1.75,mb:.25,size:pt[l].title,textAlign:"center",children:s}),t.jsx(v,{mb:c?2:void 0,size:pt[l].description,textAlign:"center",children:n}),c?t.jsxs(qa,{children:[e&&t.jsx(Me,{buttonProps:e,variant:"tertiary"}),i&&t.jsx(Me,{buttonProps:i,variant:"primary"})]}):void 0]})},Xa=({children:e})=>{const i=o.useFormContext();return e({...i})},Za=o.dt.form`
|
|
2059
|
-
${({theme:e})=>`
|
|
2060
|
-
align-items: flex-start;
|
|
2061
|
-
align-self: stretch;
|
|
2062
|
-
display: flex;
|
|
2063
|
-
flex-direction: column;
|
|
2064
|
-
gap: ${e.spacing[.5]};
|
|
2065
|
-
overflow: hidden auto;
|
|
2066
|
-
width: 100%;
|
|
2067
|
-
`}
|
|
2068
|
-
`,Ja=({alert:e,buttonAlignment:i,cancelButton:n,children:a,confirmButton:r,defaultDisabled:s=!0,id:l="modal-confirm",maxButtonWidth:c="392px",mode:d,onSubmit:p,showButtons:g=!0,yupSchema:x,...f})=>{const h=o.nt(),b=o.useForm({...f,mode:d??"all",resolver:x?o.o(x):void 0});return t.jsx(o.FormProvider,{...b,children:t.jsx(Za,{onSubmit:b.handleSubmit(p),children:t.jsxs($,{scroll:"y",width:"100%",children:[t.jsx($,{borderRadius:`0 0 ${h.spacing[.25]} ${h.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:a}),g&&t.jsxs($,{borderRadius:`0 0 ${h.spacing[.25]} ${h.spacing[.25]}`,borderTop:`1px solid ${h.palette.gray[200]}`,display:"flex",flexDirection:i?"unset":"column",gap:.625,justify:i??"stretch",position:"sticky",px:1.25,py:1.25,children:[e,t.jsxs($,{display:"flex",gap:.75,maxWidth:c,children:[n?t.jsx(R,{icon:n.icon,id:`${l}-cancel`,justify:"center",onClick:n.onClick,type:"reset",variant:"tertiary",width:"100%",children:n.label??"Cancel"}):void 0,t.jsx(R,{disabled:((r==null?void 0:r.disabled)??!1)||b.formState.isSubmitting||s&&!b.formState.isDirty,icon:r==null?void 0:r.icon,id:l,justify:"center",type:"submit",width:"100%",children:(r==null?void 0:r.label)??"Confirm"})]})]})]})})})},Qa=o.dt(be)`
|
|
2069
|
-
display: grid;
|
|
2070
|
-
gap: ${({$gap:e=1.25})=>`${e}rem`};
|
|
2071
|
-
grid-template-columns: ${({$sm:e})=>`repeat(${e}, 1fr)`};
|
|
2072
|
-
|
|
2073
|
-
${({theme:e,$xl:i,$lg:n,$md:a})=>`
|
|
2074
|
-
@media (width >= ${e.breakpoints.sm}) {
|
|
2075
|
-
grid-template-columns: repeat(${a}, 1fr);
|
|
2076
|
-
}
|
|
2077
|
-
|
|
2078
|
-
@media (width >= ${e.breakpoints.md}) {
|
|
2079
|
-
grid-template-columns: repeat(${n}, 1fr);
|
|
2080
|
-
}
|
|
2081
|
-
|
|
2082
|
-
@media (width >= ${e.breakpoints.lg}) {
|
|
2083
|
-
grid-template-columns: repeat(${i}, 1fr);
|
|
2084
|
-
}
|
|
2085
|
-
`}
|
|
2086
|
-
`,er=u.forwardRef(function({children:i,md:n,sm:a,lg:r,xl:s,gap:l,...c},d){return t.jsx(Qa,{$gap:l,$lg:r,$md:n,$sm:a,$xl:s,ref:d,...c,children:i})}),tr=o.dt.div`
|
|
2087
|
-
${({theme:e,$itemsLength:i})=>`
|
|
2088
|
-
display: flex;
|
|
2089
|
-
background-color: ${e.palette.white};
|
|
2090
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
2091
|
-
border-radius: ${e.spacing[.25]};
|
|
2092
|
-
box-shadow: ${e.shadows.lg};
|
|
2093
|
-
flex-direction: column;
|
|
2094
|
-
min-width: 507px;
|
|
2095
|
-
max-width: ${i<=4?"507px":"980px"};
|
|
2096
|
-
padding: ${e.spacing[1.5]};
|
|
2097
|
-
|
|
2098
|
-
@media screen and (max-width: 980px) and (min-width: 742px) {
|
|
2099
|
-
width: 742px;
|
|
2100
|
-
}
|
|
2101
|
-
@media screen and (max-width: 742px) {
|
|
2102
|
-
width: 507px;
|
|
2103
|
-
}
|
|
2104
|
-
`}
|
|
2105
|
-
`,Qe=o.dt.div`
|
|
2106
|
-
${({theme:e,$isSelected:i})=>`
|
|
2107
|
-
align-items: center;
|
|
2108
|
-
background-color: ${i?e.palette.gray[100]:e.palette.white};
|
|
2109
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
2110
|
-
border-radius: ${e.spacing[.25]};
|
|
2111
|
-
cursor: pointer;
|
|
2112
|
-
display: flex;
|
|
2113
|
-
flex-direction: ${i?"row-reverse":"row"};
|
|
2114
|
-
min-height: 50px;
|
|
2115
|
-
padding: ${e.spacing[1]} ${e.spacing[.625]};
|
|
2116
|
-
width: 215px;
|
|
2117
|
-
|
|
2118
|
-
&:hover {
|
|
2119
|
-
background-color: ${e.palette.gray[100]};
|
|
2120
|
-
}
|
|
2121
|
-
`}
|
|
2122
|
-
`,ni=({isSelected:e=!1,label:i,onSelect:n})=>{const a=o.nt(),r=u.useCallback(()=>{n&&n(i)},[n,i]);return t.jsxs(Qe,{$isSelected:e,onClick:r,children:[e?t.jsx(S,{icon:"check",iconColor:a.palette.gray[800],iconSize:"xs"}):null,t.jsx(v,{color:a.palette.gray[800],fontWeight:"bold",size:"sm",children:i})]})},ir=({isOpen:e=!0,items:i,handleNewOrganization:n,onSelect:a,onClose:r,selectedItem:s,title:l,variant:c})=>{const d=o.nt(),[p,g]=u.useState(i),[x,f]=u.useState(""),h=u.useCallback(y=>{g(w=>w.filter(j=>String(j.name).toLowerCase().includes(y.toLocaleLowerCase())))},[g]),b=u.useCallback(y=>{y.currentTarget&&(f(y.currentTarget.value),h(y.currentTarget.value))},[f,h]);u.useEffect(()=>{g(i),h(x)},[i,h,x]);const m=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(v,{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(le,{onInput:b,placeholder:"Search"})}),t.jsx(te,{mb:1,mt:1}),t.jsxs($,{display:"inline-flex",gap:1,maxHeight:"332px",scroll:"y",wrap:"wrap",children:[c==="organization-selector"?t.jsx(Qe,{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(v,{color:d.palette.gray[400],size:"sm",children:"New organization"})]})}):void 0,p.map(y=>t.jsx(ni,{isSelected:s.toLowerCase()===y.name,label:y.name.charAt(0).toUpperCase()+y.name.slice(1),onSelect:a},y.name))]})]})})});return e?X.createPortal(m,document.body):t.jsx("div",{})},nr=({description:e,height:i="auto",leftIconName:n,children:a,rightIconName:r,title:s,tooltipId:l,tooltipTip:c,tooltipPlace:d="bottom",variant:p="centered",width:g="318px"})=>{const x=o.nt(),f=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:f?"center":"flex-start",bgColor:x.palette.gray[50],border:`1px solid ${x.palette.gray[200]}`,borderRadius:"4px",display:"inline-flex",flexDirection:f?"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:[f||o.lodashExports.isUndefined(n)?void 0:h,t.jsx(v,{color:f?x.palette.gray[800]:x.palette.gray[400],size:"md",textAlign:f?"center":"start",children:e}),f||o.lodashExports.isUndefined(r)?void 0:h]}),t.jsxs($,{alignItems:"center",display:"flex",gap:.5,my:.5,children:[f&&!o.lodashExports.isUndefined(n)?h:void 0,t.jsxs("div",{style:{display:"flex",gap:"12px"},children:[o.lodashExports.isUndefined(s)?void 0:t.jsx(_,{fontWeight:"bold",size:"md",children:s}),a]}),f&&!o.lodashExports.isUndefined(r)?h:void 0]})]})},ar=({actions:e,children:i,header:n,title:a,tabs:r,footer:s})=>{const l=o.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(v,{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(Je,{items:r})}),t.jsx($,{alignSelf:"stretch",display:"flex",flexDirection:"column",px:1.25,py:1,scroll:"y",children:i}),s&&t.jsx($,{alignSelf:"stretch",borderTop:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.5,justify:"end",px:1.25,py:1,children:s.map(({icon:c,text:d,onClick:p},g)=>t.jsx(R,{icon:c,onClick:p,variant:g===0?"primary":"tertiary",width:"100%",children:d},`${g}-${d}`))})]})},rr=o.dt.div`
|
|
2123
|
-
${({theme:e})=>`
|
|
2124
|
-
align-items: flex-start;
|
|
2125
|
-
backdrop-filter: blur(3.15px);
|
|
2126
|
-
background: radial-gradient(
|
|
2127
|
-
68.83% 167.8% at 171.9% 90.34%,
|
|
2128
|
-
${e.palette.complementary[300]} 0%,
|
|
2129
|
-
${e.palette.primary[400]} 100%
|
|
2130
|
-
),
|
|
2131
|
-
linear-gradient(
|
|
2132
|
-
241deg,
|
|
2133
|
-
${e.palette.primary[400]} 3.45%,
|
|
2134
|
-
${e.palette.primary[500]} 82.59%
|
|
2135
|
-
);
|
|
2136
|
-
border-radius: ${e.spacing[1]};
|
|
2137
|
-
box-shadow: ${e.shadows.md};
|
|
2138
|
-
display: flex;
|
|
2139
|
-
flex-direction: column;
|
|
2140
|
-
gap: ${e.spacing[.625]};
|
|
2141
|
-
height: 300px;
|
|
2142
|
-
padding: ${e.spacing[1]};
|
|
2143
|
-
position: relative;
|
|
2144
|
-
width: 300px;
|
|
2145
|
-
|
|
2146
|
-
button > * {
|
|
2147
|
-
font-size: ${e.typography.text.sm};
|
|
2148
|
-
}
|
|
2149
|
-
|
|
2150
|
-
#hovered {
|
|
2151
|
-
display: none;
|
|
2152
|
-
}
|
|
2153
|
-
|
|
2154
|
-
&:hover {
|
|
2155
|
-
background: ${e.palette.gray[900]};
|
|
2156
|
-
|
|
2157
|
-
#hovered {
|
|
2158
|
-
display: flex;
|
|
2159
|
-
}
|
|
2160
|
-
#uncover {
|
|
2161
|
-
display: none;
|
|
2162
|
-
}
|
|
2163
|
-
}
|
|
2164
|
-
|
|
2165
|
-
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
2166
|
-
height: 320px;
|
|
2167
|
-
width: 320px;
|
|
2168
|
-
|
|
2169
|
-
#hovered {
|
|
2170
|
-
margin-bottom: ${e.spacing[1.75]};
|
|
2171
|
-
}
|
|
2172
|
-
}
|
|
2173
|
-
`}
|
|
2174
|
-
`,or=o.dt.div`
|
|
2175
|
-
align-items: center;
|
|
2176
|
-
position: absolute;
|
|
2177
|
-
justify-content: center;
|
|
2178
|
-
opacity: 0.15;
|
|
2179
|
-
top: 14%;
|
|
2180
|
-
left: 25%;
|
|
2181
|
-
z-index: -1;
|
|
2182
|
-
|
|
2183
|
-
span {
|
|
2184
|
-
font-size: 265px;
|
|
2185
|
-
height: 260px;
|
|
2186
|
-
width: 260px;
|
|
2187
|
-
}
|
|
2188
|
-
`,ai=({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:s})=>{const l=o.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(v,{color:l.palette.white,size:"sm",sizeSm:"xs",children:e}),t.jsx(_,{color:l.palette.white,fontWeight:"bold",lineSpacing:2.25,lineSpacingSm:1.75,size:"lg",sizeSm:"md",children:s})]}),t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx(v,{color:l.palette.white,size:"sm",sizeSm:"xs",children:"Location"}),t.jsx(v,{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(_,{color:l.palette.white,fontWeight:"bold",lineSpacing:1.75,lineSpacingSm:1.5,size:"md",sizeSm:"sm",children:s}),t.jsxs("div",{className:"flex flex-col gap-8",children:[t.jsx(v,{color:l.palette.gray[100],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:i}),t.jsx(R,{external:!0,href:n,variant:"link",width:"max-content",children:"Download now"})]})]}),t.jsx(ai,{icon:a})]})},lr=o.dt.button`
|
|
2189
|
-
${({theme:e})=>`
|
|
2190
|
-
align-items: center;
|
|
2191
|
-
border-left: 3px solid transparent;
|
|
2192
|
-
display: flex;
|
|
2193
|
-
gap: ${e.spacing[.625]};
|
|
2194
|
-
height: 42px;
|
|
2195
|
-
min-width: 50px;
|
|
2196
|
-
padding: ${e.spacing[.625]} ${e.spacing[1]};
|
|
2197
|
-
|
|
2198
|
-
&.dark {
|
|
2199
|
-
background-color: ${e.palette.gray[800]};
|
|
2200
|
-
color: ${e.palette.gray[25]};
|
|
2201
|
-
|
|
2202
|
-
&.disabled {
|
|
2203
|
-
border-color: ${e.palette.gray[500]};
|
|
2204
|
-
color: ${e.palette.gray[500]};
|
|
2205
|
-
cursor: not-allowed;
|
|
2206
|
-
}
|
|
2207
|
-
|
|
2208
|
-
&:hover:not(.disabled) {
|
|
2209
|
-
background-color: ${e.palette.gray[700]};
|
|
2210
|
-
border-color: ${e.palette.primary[400]};
|
|
2211
|
-
}
|
|
2212
|
-
}
|
|
2213
|
-
|
|
2214
|
-
&.light {
|
|
2215
|
-
background-color: ${e.palette.gray[50]};
|
|
2216
|
-
color: ${e.palette.gray[800]};
|
|
2217
|
-
|
|
2218
|
-
&.disabled {
|
|
2219
|
-
background-color: ${e.palette.white};
|
|
2220
|
-
border-color: ${e.palette.gray[300]};
|
|
2221
|
-
color: ${e.palette.gray[300]};
|
|
2222
|
-
cursor: not-allowed;
|
|
2223
|
-
}
|
|
2224
|
-
|
|
2225
|
-
&:hover:not(.disabled) {
|
|
2226
|
-
background-color: ${e.palette.gray[100]};
|
|
2227
|
-
border-color: ${e.palette.primary[400]};
|
|
2228
|
-
}
|
|
2229
|
-
}
|
|
2230
|
-
`}
|
|
2231
|
-
`,cr=o.dt.div`
|
|
2232
|
-
${({theme:e})=>`
|
|
2233
|
-
align-items: center;
|
|
2234
|
-
background-color: transparent;
|
|
2235
|
-
border-bottom: 2px solid transparent;
|
|
2236
|
-
display: flex;
|
|
2237
|
-
font-family: ${e.typography.type.primary};
|
|
2238
|
-
font-size: ${e.typography.text.sm};
|
|
2239
|
-
font-weight: ${e.typography.weight.regular};
|
|
2240
|
-
gap: ${e.spacing[.5]};
|
|
2241
|
-
height: 30px;
|
|
2242
|
-
justify-content: center;
|
|
2243
|
-
padding: ${e.spacing[.25]};
|
|
2244
|
-
margin-bottom: ${e.spacing[.25]};
|
|
2245
|
-
min-width: 50px;
|
|
2246
|
-
width: max-content;
|
|
2247
|
-
z-index: 11;
|
|
2248
|
-
|
|
2249
|
-
&:hover {
|
|
2250
|
-
border-color: ${e.palette.primary[400]};
|
|
2251
|
-
}
|
|
2252
|
-
|
|
2253
|
-
&.dark {
|
|
2254
|
-
color: ${e.palette.gray[25]};
|
|
2255
|
-
}
|
|
2256
|
-
|
|
2257
|
-
&.light {
|
|
2258
|
-
color: ${e.palette.gray[800]};
|
|
2259
|
-
}
|
|
2260
|
-
`}
|
|
2261
|
-
`,dr=o.dt.div`
|
|
2262
|
-
${({theme:e})=>`
|
|
2263
|
-
background-color: ${e.palette.white};
|
|
2264
|
-
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
2265
|
-
box-shadow: ${e.shadows.lg};
|
|
2266
|
-
display: none;
|
|
2267
|
-
flex-direction: column;
|
|
2268
|
-
position: absolute;
|
|
2269
|
-
top: 100%;
|
|
2270
|
-
z-index: 11;
|
|
2271
|
-
|
|
2272
|
-
> button:last-child {
|
|
2273
|
-
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
2274
|
-
}
|
|
2275
|
-
`}
|
|
2276
|
-
`,pr=o.dt.div`
|
|
2277
|
-
${({theme:e})=>`
|
|
2278
|
-
align-items: flex-start;
|
|
2279
|
-
cursor: pointer;
|
|
2280
|
-
display: flex;
|
|
2281
|
-
flex-direction: column;
|
|
2282
|
-
gap: ${e.spacing[.25]};
|
|
2283
|
-
height: max-content;
|
|
2284
|
-
position: relative;
|
|
2285
|
-
width: max-content;
|
|
2286
|
-
z-index: 10;
|
|
2287
|
-
|
|
2288
|
-
&:hover {
|
|
2289
|
-
> div:first-child {
|
|
2290
|
-
border-color: ${e.palette.primary[400]};
|
|
2291
|
-
}
|
|
2292
|
-
|
|
2293
|
-
> div:last-child {
|
|
2294
|
-
display: flex;
|
|
2295
|
-
}
|
|
2296
|
-
}
|
|
2297
|
-
`}
|
|
2298
|
-
`,ri=({disabled:e=!1,mode:i,onClick:n,text:a})=>t.jsx(lr,{className:`${e&&"disabled"} ${i}`,disabled:e,onClick:n,children:t.jsx(v,{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,s]=u.useState(a[0].text),l=u.useCallback(c=>()=>{i(c.text),s(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(ri,{disabled:c.disabled,mode:n,onClick:l(c),text:c.text},`${c.text}_${d}`))})]})},ur=o.dt.div.attrs({className:"flex flex-wrap justify-center pv3 w-100"})``,fr=o.dt.div.attrs({className:"flex flex-wrap items-center justify-start mb2"})`
|
|
2299
|
-
gap: 12px;
|
|
2300
|
-
`,hr=o.dt.div.attrs({className:"flex flex-wrap items-center justify-end mb2"})`
|
|
2301
|
-
gap: 8px;
|
|
2302
|
-
`,je=e=>e===void 0?"flex-grow: 1;":`width: calc(${e}00% / var(--cols));`,br=o.dt.div.attrs({className:"comp-col"})`
|
|
2303
|
-
word-wrap: break-word;
|
|
2304
|
-
|
|
2305
|
-
${({$width:e=null})=>e===null?"":`width: ${e}`};
|
|
2306
|
-
|
|
2307
|
-
${({$paddingTop:e})=>`padding-top: ${e??0}px;`}
|
|
2308
|
-
|
|
2309
|
-
@media (width <= 768px) {
|
|
2310
|
-
${({$sm:e})=>je(e)}
|
|
2311
|
-
}
|
|
2312
|
-
|
|
2313
|
-
@media (width >= 768px) and (width <= 992px) {
|
|
2314
|
-
${({$md:e})=>je(e)}
|
|
2315
|
-
}
|
|
2316
|
-
|
|
2317
|
-
@media (width >= 992px) {
|
|
2318
|
-
${({$lg:e})=>je(e)}
|
|
2319
|
-
}
|
|
2320
|
-
|
|
2321
|
-
${({$xl:e})=>o.isNumber(e)?`@media (min-width: 1200px) { ${je(e)} }`:""}
|
|
2322
|
-
|
|
2323
|
-
> .comp-card {
|
|
2324
|
-
height: 100%;
|
|
2325
|
-
}
|
|
2326
|
-
`,yr=({children:e,xl:i,lg:n,md:a,sm:r,paddingTop:s,width:l})=>t.jsx(br,{$lg:n,$md:a,$paddingTop:s,$sm:r,$width:l,$xl:i,children:e}),$r=o.dt.div.attrs({className:"comp-gap"})`
|
|
2327
|
-
${({$disp:e="flex",$mh:i=4,$mv:n=4})=>`
|
|
2328
|
-
align-items: center;
|
|
2329
|
-
display: ${e};
|
|
2330
|
-
margin: ${-n}px ${-i}px;
|
|
2331
|
-
|
|
2332
|
-
> * {
|
|
2333
|
-
margin: ${n}px ${i}px;
|
|
2334
|
-
}
|
|
2335
|
-
`}
|
|
2336
|
-
`,mr=({children:e,disp:i,mh:n,mv:a})=>t.jsx($r,{$disp:i,$mh:n,$mv:a,children:e}),wr=o.dt.div.attrs({className:"comp-row flex flex-row flex-wrap"})`
|
|
2337
|
-
${({$align:e="stretch",$cols:i=100,$colsPadding:n=6,$justify:a="start"})=>`
|
|
2338
|
-
align-items: ${e};
|
|
2339
|
-
justify-content: ${a};
|
|
2340
|
-
margin: -6px;
|
|
2341
|
-
text-align: ${a};
|
|
2342
|
-
|
|
2343
|
-
--cols: ${i};
|
|
2344
|
-
|
|
2345
|
-
> *:not(.comp-col) {
|
|
2346
|
-
width: 100%;
|
|
2347
|
-
margin: 6px;
|
|
2348
|
-
}
|
|
2349
|
-
|
|
2350
|
-
> .comp-col {
|
|
2351
|
-
padding: ${n}px;
|
|
2352
|
-
}
|
|
2353
|
-
`}
|
|
2354
|
-
`,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=o.dt.span`
|
|
2355
|
-
${({theme:e,$bgColor:i=e.palette.secondary[500],$txtDecoration:n="none"})=>`
|
|
2356
|
-
background-color: ${i};
|
|
2357
|
-
border-radius: 5px;
|
|
2358
|
-
color: ${e.palette.white};
|
|
2359
|
-
font-size: 10px;
|
|
2360
|
-
padding: ${e.spacing[.125]} ${e.spacing[.25]} ${e.spacing[.125]} ${e.spacing[.25]};
|
|
2361
|
-
text-decoration: ${n}
|
|
2362
|
-
`}
|
|
2363
|
-
`,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=o.mt`
|
|
2364
|
-
0% {
|
|
2365
|
-
transform: rotateZ(0deg);
|
|
2366
|
-
}
|
|
2367
|
-
100% {
|
|
2368
|
-
transform: rotateZ(360deg)
|
|
2369
|
-
}
|
|
2370
|
-
`,Ir=o.mt`
|
|
2371
|
-
0%,
|
|
2372
|
-
25% {
|
|
2373
|
-
stroke-dashoffset: 280;
|
|
2374
|
-
transform: rotate(0);
|
|
2375
|
-
}
|
|
2376
|
-
|
|
2377
|
-
50%,
|
|
2378
|
-
75% {
|
|
2379
|
-
stroke-dashoffset: 75;
|
|
2380
|
-
transform: rotate(45deg);
|
|
2381
|
-
}
|
|
2382
|
-
|
|
2383
|
-
100% {
|
|
2384
|
-
stroke-dashoffset: 280;
|
|
2385
|
-
transform: rotate(360deg);
|
|
2386
|
-
}
|
|
2387
|
-
`,Tr=o.dt.svg`
|
|
2388
|
-
${({$size:e="md"})=>o.lt`
|
|
2389
|
-
animation: ${zr} 2s linear infinite;
|
|
2390
|
-
animation-timing-function: linear;
|
|
2391
|
-
display: inline-block;
|
|
2392
|
-
width: ${Cr[e]}px;
|
|
2393
|
-
`}
|
|
2394
|
-
`,Fr=o.dt.circle`
|
|
2395
|
-
${({theme:e,$color:i="red"})=>o.lt`
|
|
2396
|
-
animation: 1.4s ease-in-out infinite both ${Ir};
|
|
2397
|
-
display: block;
|
|
2398
|
-
fill: transparent;
|
|
2399
|
-
stroke-linecap: round;
|
|
2400
|
-
stroke-dasharray: 283;
|
|
2401
|
-
stroke-dashoffset: 280;
|
|
2402
|
-
stroke-width: 10px;
|
|
2403
|
-
transform-origin: 50% 50%;
|
|
2404
|
-
|
|
2405
|
-
${Sr(e,i)}
|
|
2406
|
-
`}
|
|
2407
|
-
`,Nr=o.dt.circle`
|
|
2408
|
-
display: block;
|
|
2409
|
-
fill: transparent;
|
|
2410
|
-
stroke: ${({theme:e})=>e.palette.gray[200]};
|
|
2411
|
-
stroke-linecap: round;
|
|
2412
|
-
stroke-width: 10px;
|
|
2413
|
-
transform-origin: 50% 50%;
|
|
2414
|
-
opacity: ${({$color:e})=>e==="white"?"20%":"unset"};
|
|
2415
|
-
`,Er=({color:e="red",label:i,size:n})=>{const a=o.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(v,{color:e==="red"?a.palette.gray[700]:a.palette.white,ml:.5,size:"sm",children:i})]})},Rr=o.dt.div`
|
|
2416
|
-
display: flex;
|
|
2417
|
-
height: 80px;
|
|
2418
|
-
max-width: 1440px;
|
|
2419
|
-
overflow: hidden;
|
|
2420
|
-
position: relative;
|
|
2421
|
-
`,gt=o.dt.div`
|
|
2422
|
-
height: 79px;
|
|
2423
|
-
width: 64px;
|
|
2424
|
-
flex-shrink: 0;
|
|
2425
|
-
position: absolute;
|
|
2426
|
-
z-index: 11;
|
|
2427
|
-
|
|
2428
|
-
&.left {
|
|
2429
|
-
background: linear-gradient(
|
|
2430
|
-
to right,
|
|
2431
|
-
#fff 57.21%,
|
|
2432
|
-
rgb(255 255 255 / 0%) 100.63%
|
|
2433
|
-
);
|
|
2434
|
-
left: 0;
|
|
2435
|
-
}
|
|
2436
|
-
|
|
2437
|
-
&.right {
|
|
2438
|
-
background: linear-gradient(
|
|
2439
|
-
to left,
|
|
2440
|
-
#fff 57.21%,
|
|
2441
|
-
rgb(255 255 255 / 0%) 100.63%
|
|
2442
|
-
);
|
|
2443
|
-
right: 0;
|
|
2444
|
-
}
|
|
2445
|
-
`,Dr=o.dt.div`
|
|
2446
|
-
display: flex;
|
|
2447
|
-
gap: 40px;
|
|
2448
|
-
animation: clients-animation 50s linear infinite;
|
|
2449
|
-
width: calc(180px * 30);
|
|
2450
|
-
|
|
2451
|
-
@keyframes clients-animation {
|
|
2452
|
-
0% {
|
|
2453
|
-
transform: translateX(0);
|
|
2454
|
-
}
|
|
2455
|
-
|
|
2456
|
-
100% {
|
|
2457
|
-
transform: translateX(calc(-180px * 15));
|
|
2458
|
-
}
|
|
2459
|
-
}
|
|
2460
|
-
`,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(gt,{className:"left"}),t.jsx(Dr,{children:[...i,...i].map((n,a)=>t.jsx(Y,{alt:`${n}-${a}`,height:"80px",plugins:[o.placeholder()],publicId:n,width:"140px"},`${n}-${a}`))}),e&&t.jsx(gt,{className:"right"})]}),Wr={company:{height:"83px",width:"460px"},footer:{height:"57px",width:"315px"},header:{height:"35px",width:"160px"},icon:{height:"40px",width:"40px"},inline:{width:"150px"}},Ar=({publicId:e,variant:i})=>t.jsx($,{...Wr[i],children:t.jsx(Y,{alt:"logo",publicId:e})}),Br=o.dt(o.Lottie).attrs(({autoplay:e=!0})=>({autoplay:e,className:"comp-lottie"}))`
|
|
2461
|
-
${({$size:e=16})=>`
|
|
2462
|
-
height: ${e}px;
|
|
2463
|
-
width: ${e}px;
|
|
2464
|
-
`}
|
|
2465
|
-
`,_r=e=>{const{size:i}=e;return t.jsx(Br,{$size:i,...e})},Or=({children:e,commitSha:i,commitShortSha:n,parentElement:a,userInfo:r,setVisibility:s})=>{const l=o.nt(),{userName:c,email:d,phone:p,userRole:g}=r;return $e(a,()=>{s(!1)}),t.jsxs(Vt,{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(v,{color:l.palette.gray[800],fontWeight:"bold",size:"sm",children:c}),t.jsx(v,{color:l.palette.gray[400],size:"sm",children:d}),o.lodashExports.isUndefined(p)?void 0:t.jsx(v,{color:l.palette.gray[400],size:"sm",children:p})]}),t.jsx($,{children:t.jsx(G,{tagLabel:g,variant:"role"})})]})}),t.jsx(te,{}),e,t.jsx(te,{}),t.jsx("li",{className:"commit-info",children:t.jsx(Z,{href:`https://gitlab.com/fluidattacks/universe/-/tree/${i}`,iconPosition:"hidden",children:t.jsx(v,{color:l.palette.gray[400],size:"xs",children:`commit : ${n}`})})})]})},Mr=o.dt.button`
|
|
2466
|
-
align-items: center;
|
|
2467
|
-
background-color: transparent;
|
|
2468
|
-
border: unset;
|
|
2469
|
-
cursor: pointer;
|
|
2470
|
-
display: flex;
|
|
2471
|
-
justify-content: center;
|
|
2472
|
-
gap: 5px;
|
|
2473
|
-
padding: 0;
|
|
2474
|
-
|
|
2475
|
-
&:hover p {
|
|
2476
|
-
color: ${z.palette.primary[200]};
|
|
2477
|
-
}
|
|
2478
|
-
|
|
2479
|
-
&:hover span {
|
|
2480
|
-
color: ${z.palette.primary[200]};
|
|
2481
|
-
}
|
|
2482
|
-
`,Hr=({message:e,onClickButton:i,buttonText:n,buttonFontWeight:a="regular",icon:r,onClose:s,buttonSide:l="end"})=>{const c=o.nt(),[d,p]=u.useState(!0),g=u.useCallback(()=>{p(!1),s==null||s()},[s]),x=t.jsxs(Mr,{onClick:i,children:[t.jsx(v,{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(v,{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})]})},Vr=o.dt.div`
|
|
2483
|
-
${({theme:e,$variant:i})=>`
|
|
2484
|
-
background: ${e.palette.white};
|
|
2485
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
2486
|
-
border-radius: ${e.spacing[.25]};
|
|
2487
|
-
border-left: 4px solid ${e.palette[i][500]};
|
|
2488
|
-
box-shadow: ${e.shadows.md};
|
|
2489
|
-
position: relative;
|
|
2490
|
-
display: flex;
|
|
2491
|
-
width: 360px;
|
|
2492
|
-
padding: ${e.spacing[1.25]} ${e.spacing[1]} ${e.spacing[1.25]} ${e.spacing[.75]};
|
|
2493
|
-
gap: ${e.spacing[.5]};
|
|
2494
|
-
|
|
2495
|
-
button {
|
|
2496
|
-
position: absolute;
|
|
2497
|
-
top: 20px;
|
|
2498
|
-
right: 16px;
|
|
2499
|
-
}
|
|
2500
|
-
`}
|
|
2501
|
-
`,Ur=o.dt.div`
|
|
2502
|
-
${({theme:e,$variant:i})=>`
|
|
2503
|
-
height: ${e.spacing[2.5]};
|
|
2504
|
-
width: ${e.spacing[2.5]};
|
|
2505
|
-
position: relative;
|
|
2506
|
-
flex-shrink: 0;
|
|
2507
|
-
|
|
2508
|
-
& .ellipse-1,
|
|
2509
|
-
& .ellipse-2,
|
|
2510
|
-
& .icon {
|
|
2511
|
-
top: 50%;
|
|
2512
|
-
left: 50%;
|
|
2513
|
-
transform: translate(-50%, -50%);
|
|
2514
|
-
position: absolute;
|
|
2515
|
-
}
|
|
2516
|
-
|
|
2517
|
-
& .ellipse-1 {
|
|
2518
|
-
transform: scale(2.5) translate(-20%, -20%);
|
|
2519
|
-
color: ${e.palette[i][50]};
|
|
2520
|
-
position: absolute;
|
|
2521
|
-
}
|
|
2522
|
-
|
|
2523
|
-
& .ellipse-2 {
|
|
2524
|
-
transform: scale(2) translate(-25%, -25%);
|
|
2525
|
-
color: ${e.palette[i][200]};
|
|
2526
|
-
}
|
|
2527
|
-
|
|
2528
|
-
& .icon {
|
|
2529
|
-
color: ${e.palette[i][500]};
|
|
2530
|
-
}
|
|
2531
|
-
`}
|
|
2532
|
-
`,Gr=e=>e==="warning"?"triangle-exclamation":e==="info"?"circle-info":e==="success"?"circle-check":"circle-exclamation",Yr=({description:e,onClose:i,title:n,variant:a})=>{const r=o.nt(),s=u.useCallback(()=>{i==null||i()},[i]);return t.jsxs(Vr,{$variant:a,className:`notification notification__${a}`,role:"alertdialog",children:[t.jsxs(Ur,{$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:Gr(a),iconClass:"icon",iconSize:"xs",iconType:"fa-light"})]}),t.jsxs($,{pr:1.5,children:[t.jsx(_,{fontWeight:"bold",size:"xs",children:n}),t.jsx(v,{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:s,px:.125,py:.125,variant:"ghost"})]})},qr=o.dt.div`
|
|
2533
|
-
width: fit-content;
|
|
2534
|
-
border: ${({theme:e})=>`1px solid ${e.palette.gray[300]}`};
|
|
2535
|
-
border-radius: 4px;
|
|
2536
|
-
background: none;
|
|
2537
|
-
color: ${({theme:e})=>e.palette.black};
|
|
2538
|
-
font-family: ${({theme:e})=>e.typography.type.primary};
|
|
2539
|
-
font-size: ${({theme:e})=>e.typography.text.md};
|
|
2540
|
-
height: 40px;
|
|
2541
|
-
display: flex;
|
|
2542
|
-
align-items: center;
|
|
2543
|
-
justify-content: center;
|
|
2544
|
-
padding: 0.5em;
|
|
2545
|
-
`,Kr=o.dt.input`
|
|
2546
|
-
width: 4em;
|
|
2547
|
-
appearance: textfield;
|
|
2548
|
-
border-style: none;
|
|
2549
|
-
padding: 0.5rem;
|
|
2550
|
-
padding-top: 0.5rem;
|
|
2551
|
-
padding-bottom: 0.5rem;
|
|
2552
|
-
padding-left: 0.5rem;
|
|
2553
|
-
background: none;
|
|
2554
|
-
|
|
2555
|
-
&:focus {
|
|
2556
|
-
border-color: unset;
|
|
2557
|
-
box-shadow: none;
|
|
2558
|
-
outline: none;
|
|
2559
|
-
}
|
|
2560
|
-
|
|
2561
|
-
&::-webkit-outer-spin-button,
|
|
2562
|
-
&::-webkit-inner-spin-button {
|
|
2563
|
-
opacity: 1;
|
|
2564
|
-
}
|
|
2565
|
-
`,Xr=u.forwardRef(function({autoUpdate:i=!1,decimalPlaces:n=0,defaultValue:a=0,max:r,min:s,name:l,onEnter:c,tooltipMessage:d,...p},g){const x=n<0?0:n,[f,h]=u.useState(Number(a).toFixed(x)),b=u.useCallback(w=>{const j=o.lodashExports.toNumber(w.target.value);w.target.value.endsWith(".")?h(w.target.value):j>=Number(s)&&j<=Number(r)&&(h(String(j)),i&&c(o.lodashExports.toNumber(j.toFixed(x)))),w.stopPropagation()},[i,x,r,s,c]),m=u.useCallback(w=>{w.currentTarget.contains(w.relatedTarget)||h(Number(a).toFixed(x)),w.stopPropagation()},[x,a]),y=u.useCallback(w=>{w.stopPropagation(),w.key==="Enter"&&!o.lodashExports.isEmpty(w.currentTarget.value)&&c(o.lodashExports.toNumber(w.currentTarget.value))},[c]);return t.jsx(qr,{onBlur:m,tabIndex:-1,children:t.jsx(V,{id:"numberInputTooltip",tip:d,children:t.jsx(Kr,{...p,"aria-label":l,"aria-valuemax":Number(r),"aria-valuemin":Number(s),"aria-valuenow":Number(f),max:r,min:s,name:l,onChange:b,onKeyUp:y,ref:g,step:10**-x,type:"number",value:f})})})}),Zr={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 s=o.nt();return t.jsxs($,{alignItems:"center",bgColorHover:s.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(Y,{alt:`${r} Logo`,height:"100%",publicId:Zr[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(v,{color:s.palette.gray[800],display:"inline",size:"xs",textAlign:"center",whiteSpace:a?"break-spaces":"nowrap",wordWrap:"unset",children:i??r})})]})},Jr=({align:e="end",buttonLabel:i="Add Credential",children:n,id:a,manualOption:r,providers:s})=>{const l=o.nt(),[c,d]=u.useState(!1),p=u.useRef(null);$e(p.current,()=>{d(!1)},!0);const g=u.useCallback(h=>{r==null||r.onClick(h),d(!1)},[r]),x=u.useCallback(()=>{d(h=>!h)},[d]),f=u.useCallback(h=>b=>{var m;(m=s[h])==null||m.onClick(b),d(!1)},[s]);return t.jsxs($,{alignItems:e,display:"flex",flexDirection:"column",position:"relative",ref:p,width:"max-content",zIndex:10,children:[t.jsx(R,{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(s).map(h=>t.jsx(He,{onClick:f(h),provider:h},h)),r===void 0?void 0:t.jsx(He,{icon:"square-plus",label:r.label??"Add manually",onClick:g}),n]})]})},oi=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(v,{bgGradient:z.palette.gradients["01"],fontWeight:"semibold",size:"xs",textFill:"transparent",children:"Recommended"})}),Qr=o.dt.div`
|
|
2566
|
-
${({className:e,theme:i})=>`
|
|
2567
|
-
align-items: flex-start;
|
|
2568
|
-
border-radius: ${i.spacing[1]};
|
|
2569
|
-
background: ${i.palette.white};
|
|
2570
|
-
display: flex;
|
|
2571
|
-
flex-direction: column;
|
|
2572
|
-
gap: ${i.spacing[1]};
|
|
2573
|
-
padding: ${i.spacing[1.5]};
|
|
2574
|
-
position: relative;
|
|
2575
|
-
width: 320px;
|
|
2576
|
-
|
|
2577
|
-
button {
|
|
2578
|
-
text-align: center;
|
|
2579
|
-
width: 100%;
|
|
2580
|
-
}
|
|
2581
|
-
|
|
2582
|
-
${e==="essential"?`border: 2px solid ${i.palette.gray[300]};`:`
|
|
2583
|
-
box-shadow: 0px 9px 18px 0px rgba(243, 38, 55, 0.06),
|
|
2584
|
-
0px 18px 27px 0px rgba(243, 38, 55, 0.10);
|
|
2585
|
-
|
|
2586
|
-
&::before {
|
|
2587
|
-
background: ${i.palette.gradients["01"]} border-box;
|
|
2588
|
-
border-radius: ${i.spacing[1]};
|
|
2589
|
-
content: "";
|
|
2590
|
-
position: absolute;
|
|
2591
|
-
inset: 0;
|
|
2592
|
-
border: 2px solid transparent;
|
|
2593
|
-
mask:
|
|
2594
|
-
linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
|
|
2595
|
-
mask-composite: exclude;
|
|
2596
|
-
}
|
|
2597
|
-
`}
|
|
2598
|
-
`}
|
|
2599
|
-
`;o.dt.div`
|
|
2600
|
-
${({className:e,theme:i})=>`
|
|
2601
|
-
align-items: flex-start;
|
|
2602
|
-
border-radius: ${i.spacing[1]};
|
|
2603
|
-
display: flex;
|
|
2604
|
-
flex-direction: column;
|
|
2605
|
-
justify-content: center;
|
|
2606
|
-
gap: ${i.spacing[1.5]};
|
|
2607
|
-
padding: ${i.spacing[1.5]};
|
|
2608
|
-
width: 466px;
|
|
2609
|
-
|
|
2610
|
-
button {
|
|
2611
|
-
text-align: center;
|
|
2612
|
-
width: 100%;
|
|
2613
|
-
}
|
|
2614
|
-
|
|
2615
|
-
${e==="essential"?`
|
|
2616
|
-
background: linear-gradient(
|
|
2617
|
-
180deg,
|
|
2618
|
-
${i.palette.primary[400]} 0%,
|
|
2619
|
-
${i.palette.black} 100%
|
|
2620
|
-
);`:`
|
|
2621
|
-
background: ${i.palette.white};
|
|
2622
|
-
box-shadow: 0px 9px 18px 0px rgba(243, 38, 55, 0.06),
|
|
2623
|
-
0px 18px 27px 0px rgba(243, 38, 55, 0.10);
|
|
2624
|
-
`}
|
|
2625
|
-
|
|
2626
|
-
@media screen and (max-width: ${i.breakpoints.mobile}) {
|
|
2627
|
-
width: 320px;
|
|
2628
|
-
}
|
|
2629
|
-
`}
|
|
2630
|
-
`;const eo={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
|
|
2631
|
-
through our scanning tool.`,priceAuthor:"$499",priceGroup:"$1,579"}},to=({description:e,onClick:i,plan:n})=>{const{title:a,description:r,benefits:s,buttonText:l}=eo[n],c=e??r;return t.jsxs(Qr,{className:n,children:[t.jsxs($,{display:"flex",flexDirection:"column",gap:.25,pt:n==="essential"?1.75:0,children:[n==="advanced"&&oi,t.jsx(_,{color:z.palette.gray[900],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:a}),t.jsx(v,{color:z.palette.gray[400],fontWeight:"semibold",pb:n==="essential"?1.25:0,size:"sm",sizeSm:"xs",children:s})]}),t.jsx(v,{lineSpacing:1.5,lineSpacingSm:1.25,pb:n==="advanced"?1.5:0,size:"md",sizeSm:"sm",children:c}),t.jsx(R,{onClick:i,variant:"primary",children:l})]})},si=({description:e="",highlightDescription:i=""})=>{const n=o.nt(),a=typeof i=="string",r=a?"":new RegExp(`(${i.join("|")})`,"u");return i.length>0?t.jsx(v,{display:"inline",lineSpacing:1.5,size:"lg",textAlign:"center",children:a?t.jsxs(u.Fragment,{children:[t.jsx(oe,{color:n.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:i}),e]}):e.split(r).map((s,l)=>i.includes(s)?t.jsx(oe,{color:n.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:s},`${l+1}-bold`):s)}):t.jsx(v,{lineSpacing:1.5,size:"lg",textAlign:"center",children:e})},io=({_portal:e=!1,cancelButton:i,darkBackground:n=!1,children:a,confirmButton:r,container:s,description:l,highlightDescription:c="",image:d,maxWidth:p,title:g,titleColor:x})=>{const f=o.nt(),{alt:h,src:b,width:m="77px",height:y="77px"}=d,w=u.useCallback(()=>{i==null||i.onClick()},[i]),j=u.useCallback(()=>{r==null||r.onClick()},[r]),C=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:f.palette.white,border:`1px solid ${f.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(Y,{alt:h,height:y,publicId:b,width:m})}),t.jsxs($,{display:"flex",flexDirection:"column",gap:.5,mb:1.5,mt:1.5,children:[t.jsx(_,{color:x,fontWeight:"bold",lineSpacing:2.5,size:"lg",textAlign:"center",children:g}),t.jsx(si,{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:[o.lodashExports.isObject(r)?t.jsx(R,{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,o.lodashExports.isObject(i)?t.jsx(R,{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?X.createPortal(C,s??document.body):C},no=o.dt.div`
|
|
2632
|
-
${({theme:e})=>`
|
|
2633
|
-
height: ${e.spacing[1]};
|
|
2634
|
-
width: ${e.spacing[1]};
|
|
2635
|
-
position: relative;
|
|
2636
|
-
flex-shrink: 0;
|
|
2637
|
-
|
|
2638
|
-
& .ellipse-1,
|
|
2639
|
-
& .ellipse-2,
|
|
2640
|
-
& .icon {
|
|
2641
|
-
top: 50%;
|
|
2642
|
-
left: 50%;
|
|
2643
|
-
transform: translate(-50%, -50%);
|
|
2644
|
-
position: absolute;
|
|
2645
|
-
}
|
|
2646
|
-
|
|
2647
|
-
& .ellipse-1 {
|
|
2648
|
-
color: ${e.palette.warning[200]};
|
|
2649
|
-
position: absolute;
|
|
2650
|
-
}
|
|
2651
|
-
|
|
2652
|
-
& .ellipse-2 {
|
|
2653
|
-
transform: scale(0.75) translate(-67%, -66%);
|
|
2654
|
-
color: ${e.palette.warning[400]};
|
|
2655
|
-
}
|
|
2656
|
-
|
|
2657
|
-
& .icon {
|
|
2658
|
-
color: ${e.palette.warning[600]};
|
|
2659
|
-
font-size: ${e.spacing[.5]};
|
|
2660
|
-
}
|
|
2661
|
-
`}
|
|
2662
|
-
`,li=({margin:e,onClick:i,text:n})=>{const a=o.nt(),r=t.jsxs(no,{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(v,{color:a.palette.warning[500],display:"inline",ml:.25,size:"xs",children:n})]})}):t.jsx($,{display:"inline-block",mr:e,onClick:i,children:r})},ao=({score:e})=>{const i=o.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(v,{color:i.palette.gray[800],size:"sm",textAlign:"right",children:e+"%"})]})},{getVariant:ro}=U(e=>({compliance:`
|
|
2663
|
-
display: inline-flex;
|
|
2664
|
-
|
|
2665
|
-
&.horizontal {
|
|
2666
|
-
height: ${e.spacing[.75]};
|
|
2667
|
-
}
|
|
2668
|
-
&.vertical {
|
|
2669
|
-
width: ${e.spacing[.75]};
|
|
2670
|
-
}
|
|
2671
|
-
`,default:`
|
|
2672
|
-
display: inline-flex;
|
|
2673
|
-
|
|
2674
|
-
&.horizontal {
|
|
2675
|
-
height: ${e.spacing[.5]};
|
|
2676
|
-
}
|
|
2677
|
-
&.vertical {
|
|
2678
|
-
width: ${e.spacing[.5]};
|
|
2679
|
-
}
|
|
2680
|
-
.progress-bar {
|
|
2681
|
-
background-color: ${e.palette.primary[500]};
|
|
2682
|
-
}
|
|
2683
|
-
`,progressIndicator:`
|
|
2684
|
-
display: flex;
|
|
2685
|
-
|
|
2686
|
-
&.horizontal {
|
|
2687
|
-
height: ${e.spacing[.125]};
|
|
2688
|
-
}
|
|
2689
|
-
&.vertical {
|
|
2690
|
-
width: ${e.spacing[.125]};
|
|
2691
|
-
}
|
|
2692
|
-
.progress-bar {
|
|
2693
|
-
background-color: ${e.palette.primary[500]};
|
|
2694
|
-
}
|
|
2695
|
-
`,progressIndicatorError:`
|
|
2696
|
-
display: flex;
|
|
2697
|
-
|
|
2698
|
-
&.horizontal {
|
|
2699
|
-
height: ${e.spacing[.125]};
|
|
2700
|
-
}
|
|
2701
|
-
&.vertical {
|
|
2702
|
-
width: ${e.spacing[.125]};
|
|
2703
|
-
}
|
|
2704
|
-
.progress-bar {
|
|
2705
|
-
background-color: ${e.palette.error[200]};
|
|
2706
|
-
}
|
|
2707
|
-
`,small:`
|
|
2708
|
-
color: ${e.palette.primary[500]};
|
|
2709
|
-
display: inline-flex;
|
|
2710
|
-
|
|
2711
|
-
&.horizontal {
|
|
2712
|
-
height: ${e.spacing[.25]};
|
|
2713
|
-
}
|
|
2714
|
-
&.vertical {
|
|
2715
|
-
width: ${e.spacing[.25]};
|
|
2716
|
-
}
|
|
2717
|
-
.progress-bar {
|
|
2718
|
-
background-color: ${e.palette.primary[500]};
|
|
2719
|
-
}
|
|
2720
|
-
`})),oo=(e,i)=>i<50?e.palette.error[500]:i<80?e.palette.warning[500]:e.palette.success[500],so=o.dt.div`
|
|
2721
|
-
${({theme:e,$minWidth:i,$orientation:n,$rounded:a,$variant:r})=>`
|
|
2722
|
-
background-color: ${e.palette.gray[100]};
|
|
2723
|
-
border-radius: ${a?"100px":"unset"};
|
|
2724
|
-
${n==="horizontal"?"min-width":"min-height"}: ${i}px;
|
|
2725
|
-
${n==="horizontal"?"":"height: 100%;"}
|
|
2726
|
-
|
|
2727
|
-
${ro(e,r)}
|
|
2728
|
-
|
|
2729
|
-
`}
|
|
2730
|
-
`,lo=o.dt.div`
|
|
2731
|
-
${({theme:e,$percentage:i,$rounded:n,$variant:a})=>`
|
|
2732
|
-
display: inline-flex;
|
|
2733
|
-
width: ${i}%;
|
|
2734
|
-
max-width: 100%;
|
|
2735
|
-
min-width: 0%;
|
|
2736
|
-
height: 100%;
|
|
2737
|
-
border-radius: ${n?"100px":"unset"};
|
|
2738
|
-
border-end-end-radius: ${n&&i<100?"0":"inherit"};
|
|
2739
|
-
border-start-end-radius: ${n&&i<100?"0":"inherit"};
|
|
2740
|
-
background-color: ${a==="compliance"?oo(e,i):"inherit"};
|
|
2741
|
-
`}
|
|
2742
|
-
`,co=({minWidth:e=100,percentage:i,percentageLocation:n="right",showPercentage:a=!1,orientation:r="horizontal",rounded:s=!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(v,{ml:.5,mr:c?.5:0,size:"sm",children:`${i}%`})}):null,p=t.jsx(so,{$minWidth:e,$orientation:r,$rounded:s,$variant:l,className:r,children:t.jsx(lo,{$percentage:i,$rounded:s,$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]})},po=o.dt.div.attrs({className:"comp-scroll-up"})`
|
|
2743
|
-
bottom: 15px;
|
|
2744
|
-
position: fixed;
|
|
2745
|
-
right: 140px;
|
|
2746
|
-
z-index: 100;
|
|
2747
|
-
`,go=({scrollerId:e="dashboard",visibleAt:i=500})=>{const[n,a]=u.useState(!1),[r,s]=u.useState(null);u.useEffect(()=>{s(document.getElementById(e)),r==null||r.addEventListener("scroll",()=>{a(r.scrollTop>i)})},[r,e,i]);const l=u.useCallback(()=>{r==null||r.scrollTo({behavior:"smooth",top:0})},[r]);return n?t.jsx(po,{children:t.jsx(B,{height:"40px",icon:"arrow-up",iconSize:"sm",id:"scroll-up",onClick:l,width:"40px"})}):null},xo={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]}},uo=({textL:e,textR:i,variant:n})=>{const a=o.nt(),{bgColor:r,colorL:s,colorR:l}=xo[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(v,{color:s,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(v,{color:l,size:"xs",children:i})})]})},fo=(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:o.lodashExports.capitalize(e.charAt(0)),iconTextColor:i<1?r.none:r[e],textColor:i<1?a.disabled:a.enabled}},re=({variant:e,value:i})=>{const{iconColor:n,iconText:a,iconTextColor:r,textColor:s}=fo(e,i),l=o.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(v,{color:r,size:"sm",textAlign:"center",children:a})})}),t.jsx(v,{color:s,size:"sm",children:i})]})},ho=({critical:e,high:i,medium:n,low:a})=>t.jsxs($,{alignItems:"center",display:"inline-flex",gap:1,children:[t.jsx(re,{value:e,variant:"critical"}),t.jsx(re,{value:i,variant:"high"}),t.jsx(re,{value:n,variant:"medium"}),t.jsx(re,{value:a,variant:"low"})]}),bo=o.dt.div`
|
|
2748
|
-
${({theme:e})=>`
|
|
2749
|
-
border-radius: ${e.spacing[.25]};
|
|
2750
|
-
cursor: pointer;
|
|
2751
|
-
display: flex;
|
|
2752
|
-
gap: ${e.spacing[.5]};
|
|
2753
|
-
justify-content: end;
|
|
2754
|
-
position: relative;
|
|
2755
|
-
z-index: 20;
|
|
2756
|
-
|
|
2757
|
-
&:hover {
|
|
2758
|
-
background-color: ${e.palette.gray[100]};
|
|
2759
|
-
}
|
|
2760
|
-
|
|
2761
|
-
&:hover > div {
|
|
2762
|
-
display: block;
|
|
2763
|
-
}
|
|
2764
|
-
`}
|
|
2765
|
-
`,yo=({visibleElement:e,hiddenElement:i})=>t.jsxs(bo,{children:[e,t.jsx($,{display:"none",position:"absolute",top:"100%",zIndex:10,children:i})]}),ci=({customBadge:e=void 0,description:i,icon:n,onClick:a,requiresUpgrade:r=!1,title:s})=>{const l=o.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(v,{color:l.palette.gray[800],size:"sm",children:s}),r?t.jsx(li,{text:"Upgrade"}):void 0,e]}),t.jsx(v,{color:l.palette.gray[400],size:"xs",children:i})]})]})},$o=o.dt(o.m.div)`
|
|
2766
|
-
${({theme:e})=>`
|
|
2767
|
-
background-color: ${e.palette.white};
|
|
2768
|
-
box-shadow: ${e.shadows.lg};
|
|
2769
|
-
max-width: 350px;
|
|
2770
|
-
min-width: 350px;
|
|
2771
|
-
height: 100%;
|
|
2772
|
-
position: absolute;
|
|
2773
|
-
right: 0;
|
|
2774
|
-
top: 0;
|
|
2775
|
-
overflow: hidden auto;
|
|
2776
|
-
scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
|
|
2777
|
-
scroll-padding: ${e.spacing[.5]};
|
|
2778
|
-
scrollbar-width: thin;
|
|
2779
|
-
z-index: 99999;
|
|
2780
|
-
|
|
2781
|
-
> div {
|
|
2782
|
-
border: 1px solid ${e.palette.gray[100]};
|
|
2783
|
-
width: auto;
|
|
2784
|
-
min-height: 100vh;
|
|
2785
|
-
height: auto;
|
|
2786
|
-
}
|
|
2787
|
-
`}
|
|
2788
|
-
`,mo=({children:e,closeIconId:i="close-menu",isOpen:n,items:a,onClose:r,primaryButtonText:s,primaryOnClick:l,secondaryButtonText:c,secondaryOnClick:d,title:p})=>{const g=o.nt(),x=u.useRef(null),f=u.useCallback(h=>()=>{h(),r()},[r]);return u.useEffect(()=>{const h=["mousedown","touchstart"],b=m=>{var k;const y=m.target,w=document.getElementById("helpBtn"),j=document.getElementById("filterBtn"),C=(y===w||((w==null?void 0:w.contains(y))??!1)||y===j||(j==null?void 0:j.contains(y)))??!1;n&&!C&&!(((k=x.current)==null?void 0:k.contains(y))??!1)&&r()};return h.forEach(m=>{document.addEventListener(m,b,{passive:!0})}),()=>{h.forEach(m=>{document.removeEventListener(m,b)})}},[n,r]),t.jsx(o.LazyMotion,{features:o.domAnimation,children:t.jsx($o,{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(v,{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:b,icon:m,onClick:y,requiresUpgrade:w,title:j})=>t.jsx(ci,{customBadge:h,description:b,icon:m,onClick:f(y),requiresUpgrade:w,title:j},j)),e&&t.jsx($,{px:1.25,children:e})]}),s===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(R,{color:`${g.palette.primary[500]} !important`,onClick:d,pl:.5,pr:.5,variant:"ghost",children:c}),t.jsx(R,{onClick:l,type:"submit",children:s})]})]})]})})})},wo=(e,i)=>i>=50?`
|
|
2789
|
-
${e.palette.gray[200]} 50%,
|
|
2790
|
-
${e.palette.primary[500]} 50.05%,
|
|
2791
|
-
${e.palette.primary[500]} ${i}%,
|
|
2792
|
-
${e.palette.gray[200]} ${i}%
|
|
2793
|
-
`:`
|
|
2794
|
-
${e.palette.gray[200]} ${i}%,
|
|
2795
|
-
${e.palette.primary[500]} ${i}%,
|
|
2796
|
-
${e.palette.primary[500]} 50%,
|
|
2797
|
-
${e.palette.gray[200]} 50.05%,
|
|
2798
|
-
${e.palette.gray[200]} 100%
|
|
2799
|
-
`,jo=o.dt.div`
|
|
2800
|
-
${({theme:e,$min:i,$value:n})=>`
|
|
2801
|
-
align-items: center;
|
|
2802
|
-
align-self: stretch;
|
|
2803
|
-
display: flex;
|
|
2804
|
-
flex-direction: column;
|
|
2805
|
-
justify-content: end;
|
|
2806
|
-
gap: ${e.spacing[.75]};
|
|
2807
|
-
width: 100%;
|
|
2808
|
-
|
|
2809
|
-
.track {
|
|
2810
|
-
background: linear-gradient(
|
|
2811
|
-
to right,
|
|
2812
|
-
${i>=0?`
|
|
2813
|
-
${e.palette.primary[500]} ${n}%,
|
|
2814
|
-
${e.palette.gray[200]} ${n}%
|
|
2815
|
-
`:wo(e,n)}
|
|
2816
|
-
);
|
|
2817
|
-
border-radius: ${e.spacing[.125]};
|
|
2818
|
-
height: ${e.spacing[.25]};
|
|
2819
|
-
width: 100%;
|
|
2820
|
-
}
|
|
2821
|
-
|
|
2822
|
-
.track.disabled {
|
|
2823
|
-
opacity: 0.4;
|
|
2824
|
-
}
|
|
2825
|
-
|
|
2826
|
-
.thumb {
|
|
2827
|
-
background: ${e.palette.white};
|
|
2828
|
-
border-radius: ${e.spacing[1.25]};
|
|
2829
|
-
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.30);
|
|
2830
|
-
top: 50%;
|
|
2831
|
-
height: 20px;
|
|
2832
|
-
width: 20px;
|
|
2833
|
-
}
|
|
2834
|
-
|
|
2835
|
-
.thumb.dragging {
|
|
2836
|
-
border: 1px solid ${e.palette.primary[500]};
|
|
2837
|
-
}
|
|
2838
|
-
`}
|
|
2839
|
-
`,vo=o.dt.div`
|
|
2840
|
-
${({theme:e})=>`
|
|
2841
|
-
align-items: center;
|
|
2842
|
-
display: flex;
|
|
2843
|
-
justify-content: space-between;
|
|
2844
|
-
height: ${e.spacing[.625]};
|
|
2845
|
-
width: 100%;
|
|
2846
|
-
|
|
2847
|
-
p {
|
|
2848
|
-
color: ${e.palette.gray[400]};
|
|
2849
|
-
font-family: ${e.typography.type.primary};
|
|
2850
|
-
font-size: ${e.spacing[.5]};
|
|
2851
|
-
}
|
|
2852
|
-
`}
|
|
2853
|
-
`,ko=o.dt.output`
|
|
2854
|
-
${({theme:e})=>`
|
|
2855
|
-
align-items: flex-end;
|
|
2856
|
-
border-radius: ${e.spacing[.5]};
|
|
2857
|
-
border: 1px solid ${e.palette.gray[300]};
|
|
2858
|
-
background: ${e.palette.white};
|
|
2859
|
-
display: flex;
|
|
2860
|
-
gap: ${e.spacing[.625]};
|
|
2861
|
-
padding: ${e.spacing[.625]} ${e.spacing[.75]};
|
|
2862
|
-
width: 59px;
|
|
2863
|
-
`}
|
|
2864
|
-
`,di=({state:e,trackRef:i,index:n,name:a})=>{const r=u.useRef(null),{thumbProps:s,inputProps:l,isDragging:c}=o.$47b897dc8cdb026b$export$8d15029008292ae({index:n,trackRef:i,inputRef:r},e);return t.jsx("div",{...s,className:`thumb ${c?"dragging":""}`,children:t.jsx(o.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:t.jsx("input",{...l,"aria-label":a,ref:r})})})},Co=(e,i,n)=>Math.round((n-e)/(i-e)*100),So=e=>{const i=o.nt(),n=u.useRef(null),{label:a,minValue:r=0,maxValue:s=100,name:l,setValue:c,watch:d}=e,p=o.$a916eb452884faea$export$b7a616150fdb9f44(),g=o.$28f99e3e86e6ec45$export$e5fda3247f5d67f9({...e,numberFormatter:p,onChange(b){c==null||c(l,b)},value:d==null?void 0:d(l)}),x=Co(r,s,g.getThumbValue(0)),{groupProps:f,trackProps:h}=o.$bcca50147b47f54d$export$56b2c08e277f365({...e,"aria-label":l,id:l},g,n);return t.jsx(O,{htmlFor:l,label:a,children:t.jsxs($,{alignItems:"center",display:"inline-flex",gap:1.25,pl:.5,width:"100%",children:[t.jsxs(jo,{...f,$min:r??0,$value:x,className:"slider",children:[t.jsx("div",{...h,className:`track ${g.isDisabled?"disabled":""}`,ref:n,children:t.jsx(di,{index:0,name:l,state:g,trackRef:n})}),t.jsxs(vo,{children:[t.jsx("p",{children:`${p.format(r)} (Low)`}),r<0&&t.jsx("p",{children:"0"}),t.jsx("p",{children:`${p.format(s)} (High)`})]})]}),t.jsx(ko,{children:t.jsx(v,{color:i.palette.gray[800],size:"sm",textAlign:"right",children:g.getThumbValueLabel(0)})})]})})},{getVariant:zo}=U(e=>({completed:`
|
|
2865
|
-
background-color: ${e.palette.primary[500]};
|
|
2866
|
-
color: ${e.palette.white};
|
|
2867
|
-
|
|
2868
|
-
&::after {
|
|
2869
|
-
background-color: ${e.palette.primary[500]};
|
|
2870
|
-
}
|
|
2871
|
-
`,current:`
|
|
2872
|
-
background-color: ${e.palette.primary[500]};
|
|
2873
|
-
color: ${e.palette.white};
|
|
2874
|
-
|
|
2875
|
-
&::after {
|
|
2876
|
-
background-color: ${e.palette.gray[200]};
|
|
2877
|
-
}
|
|
2878
|
-
`,disabled:`
|
|
2879
|
-
background-color: ${e.palette.gray[200]};
|
|
2880
|
-
outline: 1px solid ${e.palette.gray[400]};
|
|
2881
|
-
outline-offset: -1px;
|
|
2882
|
-
color: ${e.palette.gray[400]};
|
|
2883
|
-
|
|
2884
|
-
&::after {
|
|
2885
|
-
background-color: ${e.palette.gray[200]};
|
|
2886
|
-
}
|
|
2887
|
-
`})),Io=o.dt.div`
|
|
2888
|
-
${({theme:e})=>`
|
|
2889
|
-
align-items: stretch;
|
|
2890
|
-
background-color: ${e.palette.white};
|
|
2891
|
-
display: flex;
|
|
2892
|
-
flex-direction: column;
|
|
2893
|
-
height: 100%;
|
|
2894
|
-
padding: ${`${e.spacing[1]} ${e.spacing[1]}`};
|
|
2895
|
-
scroll-behavior: unset;
|
|
2896
|
-
`}
|
|
2897
|
-
`,To=o.dt.div`
|
|
2898
|
-
display: flex;
|
|
2899
|
-
flex-direction: row;
|
|
2900
|
-
margin-bottom: ${({theme:e})=>e.spacing[2]};
|
|
2901
|
-
|
|
2902
|
-
&:last-child > div:first-child > span::after {
|
|
2903
|
-
display: none;
|
|
2904
|
-
}
|
|
2905
|
-
`,Fo=o.dt.div`
|
|
2906
|
-
${({theme:e})=>`
|
|
2907
|
-
display: inline-flex;
|
|
2908
|
-
font-family: ${e.typography.type.primary};
|
|
2909
|
-
font-size: ${e.typography.text.sm};
|
|
2910
|
-
line-height: ${e.spacing[1.25]};
|
|
2911
|
-
margin-top: ${e.spacing[1]};
|
|
2912
|
-
|
|
2913
|
-
& > button:first-child {
|
|
2914
|
-
margin-right: ${e.spacing[.5]};
|
|
2915
|
-
}
|
|
2916
|
-
`}
|
|
2917
|
-
`,No=o.dt.span`
|
|
2918
|
-
${({theme:e,$variant:i})=>`
|
|
2919
|
-
border-radius: 6px;
|
|
2920
|
-
display: inline-block;
|
|
2921
|
-
text-align: center;
|
|
2922
|
-
font-size: ${e.typography.text.sm};
|
|
2923
|
-
font-weight: ${e.typography.weight.bold};
|
|
2924
|
-
font-family: ${e.typography.type.primary};
|
|
2925
|
-
line-height: ${e.spacing[1]};
|
|
2926
|
-
padding: ${`${e.spacing[.5]} ${e.spacing[.5]}`};
|
|
2927
|
-
height: ${e.spacing[2]};
|
|
2928
|
-
width: ${e.spacing[2]};
|
|
2929
|
-
|
|
2930
|
-
&::after {
|
|
2931
|
-
content: "";
|
|
2932
|
-
position: absolute;
|
|
2933
|
-
top: calc(32px + ${e.spacing[.5]});
|
|
2934
|
-
left: 50%;
|
|
2935
|
-
bottom: 0;
|
|
2936
|
-
width: 2px;
|
|
2937
|
-
height: calc(100% - ${e.spacing[1]});
|
|
2938
|
-
}
|
|
2939
|
-
|
|
2940
|
-
${zo(e,i)}
|
|
2941
|
-
`}
|
|
2942
|
-
`,Eo=({button:{disabled:e=!1,text:i,type:n="button",onClick:a},steps:r})=>{const[s,l]=u.useState(1),c=u.useCallback((d,p)=>()=>{l(g=>g+d),p==null||p()},[]);return t.jsx(Io,{children:r.map((d,p)=>{const{content:g,title:x,nextAction:f,previousAction:h}=d,b=p+1,m=b===s?"current":"disabled",y=b<s?"completed":m;return t.jsxs(To,{children:[t.jsx($,{maxWidth:"40px",position:"relative",children:t.jsx(No,{$variant:y,children:y==="completed"?t.jsx(S,{icon:"check",iconSize:"xs",iconType:"fa-solid"}):b})}),t.jsxs($,{ml:1.5,width:"100%",children:[t.jsx(_,{fontWeight:"bold",lineSpacing:1.25,mb:1.5,size:"xs",children:x}),y==="current"&&t.jsxs($,{children:[g,t.jsxs(Fo,{children:[s>1&&t.jsx(R,{disabled:d.isDisabledPrevious??!1,onClick:c(-1,h),variant:"tertiary",children:"Previous"}),s<r.length?t.jsx(R,{disabled:d.isDisabledNext??!1,onClick:c(1,f),variant:"primary",children:"Next step"}):t.jsx(R,{disabled:e,onClick:a,type:n,variant:"primary",children:i})]})]})]})]},d.title)})})},Ro=o.dt.button`
|
|
2943
|
-
${({theme:e})=>`
|
|
2944
|
-
align-items: center;
|
|
2945
|
-
background-color: ${e.palette.white};
|
|
2946
|
-
border: 1px solid ${e.palette.gray[100]};
|
|
2947
|
-
border-radius: ${e.spacing[.25]};
|
|
2948
|
-
color: ${e.palette.gray[800]};
|
|
2949
|
-
cursor: pointer;
|
|
2950
|
-
display: flex;
|
|
2951
|
-
font-size: ${e.typography.text.sm};
|
|
2952
|
-
gap: ${e.spacing[.25]};
|
|
2953
|
-
height: 21px;
|
|
2954
|
-
width: 21px;
|
|
2955
|
-
justify-content: center;
|
|
2956
|
-
padding: 6px;
|
|
2957
|
-
transition: all 0.25s ease;
|
|
2958
|
-
|
|
2959
|
-
&[aria-label] {
|
|
2960
|
-
height: auto;
|
|
2961
|
-
width: auto;
|
|
2962
|
-
}
|
|
2963
|
-
|
|
2964
|
-
&.success {
|
|
2965
|
-
border-color: ${e.palette.success[500]};
|
|
2966
|
-
color: ${e.palette.success[500]};
|
|
2967
|
-
|
|
2968
|
-
&:hover {
|
|
2969
|
-
background-color: ${e.palette.success[200]};
|
|
2970
|
-
}
|
|
2971
|
-
}
|
|
2972
|
-
|
|
2973
|
-
&:disabled {
|
|
2974
|
-
cursor: not-allowed;
|
|
2975
|
-
background: ${e.palette.gray[200]};
|
|
2976
|
-
border-color: ${e.palette.gray[200]};
|
|
2977
|
-
color: ${e.palette.gray[300]};
|
|
2978
|
-
}
|
|
2979
|
-
|
|
2980
|
-
&:hover:not(.success) {
|
|
2981
|
-
background-color: ${e.palette.gray[100]};
|
|
2982
|
-
}
|
|
2983
|
-
`}
|
|
2984
|
-
`,Do={add:{icon:"plus"},approve:{icon:"check"},disabled:{icon:"ban"},reject:{icon:"xmark"},submit:{icon:"arrow-right"},success:{icon:"check"}},Lo=({disabled:e=!1,icon:i,id:n,label:a,name:r,onClick:s,type:l="button",variant:c})=>{const d=o.nt(),p=t.jsxs(Ro,{"aria-label":r??void 0,className:c,disabled:e,id:n,onClick:s,type:l,children:[t.jsx(S,{clickable:!1,icon:i??Do[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(v,{color:d.palette.gray[800],ml:.5,size:"sm",children:a})]})},Po=({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(_,{color:"inherit",fontWeight:"semibold",size:"sm",sizeSm:"xs",children:n})},`${n}-${r}`))}),Wo=o.dt.div`
|
|
2985
|
-
${({theme:e})=>`
|
|
2986
|
-
align-items: center;
|
|
2987
|
-
background-color: ${e.palette.white};
|
|
2988
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
2989
|
-
border-radius: ${e.spacing[.25]};
|
|
2990
|
-
display: flex;
|
|
2991
|
-
flex-direction: column;
|
|
2992
|
-
gap: ${e.spacing[.5]};
|
|
2993
|
-
min-height: 180px;
|
|
2994
|
-
padding: ${e.spacing[1.5]};
|
|
2995
|
-
width: 510px;
|
|
2996
|
-
|
|
2997
|
-
p {
|
|
2998
|
-
font-style: normal;
|
|
2999
|
-
line-height: ${e.spacing[1.25]};
|
|
3000
|
-
}
|
|
3001
|
-
|
|
3002
|
-
&:hover {
|
|
3003
|
-
border: 1px solid ${e.palette.gray[600]};
|
|
3004
|
-
}
|
|
3005
|
-
`}
|
|
3006
|
-
`,Ao=o.dt.div`
|
|
3007
|
-
${({theme:e})=>`
|
|
3008
|
-
display: flex;
|
|
3009
|
-
flex-direction: column;
|
|
3010
|
-
gap: ${e.spacing[1.5]};
|
|
3011
|
-
position: relative;
|
|
3012
|
-
max-width: 1268px;
|
|
3013
|
-
|
|
3014
|
-
&::before {
|
|
3015
|
-
background-color: ${e.palette.gray[200]};
|
|
3016
|
-
border-radius: 5px;
|
|
3017
|
-
height: 100%;
|
|
3018
|
-
width: 4px;
|
|
3019
|
-
transform: translate(-50%, 0);
|
|
3020
|
-
}
|
|
3021
|
-
|
|
3022
|
-
> * {
|
|
3023
|
-
&:nth-child(even) {
|
|
3024
|
-
align-self: end;
|
|
3025
|
-
}
|
|
3026
|
-
|
|
3027
|
-
&:nth-child(odd) {
|
|
3028
|
-
align-self: start;
|
|
3029
|
-
}
|
|
3030
|
-
|
|
3031
|
-
&::before {
|
|
3032
|
-
position: absolute;
|
|
3033
|
-
background-color: ${e.palette.primary[500]};
|
|
3034
|
-
border-radius: 50%;
|
|
3035
|
-
height: 14px;
|
|
3036
|
-
width: 14px;
|
|
3037
|
-
z-index: 1;
|
|
3038
|
-
}
|
|
3039
|
-
}
|
|
3040
|
-
|
|
3041
|
-
&::before,
|
|
3042
|
-
> *::before {
|
|
3043
|
-
content: "";
|
|
3044
|
-
left: 50%;
|
|
3045
|
-
position: absolute;
|
|
3046
|
-
transform: translateX(-50%);
|
|
3047
|
-
}
|
|
3048
|
-
|
|
3049
|
-
@media (width <= 1270px) {
|
|
3050
|
-
max-width: 540px;
|
|
3051
|
-
|
|
3052
|
-
p {
|
|
3053
|
-
text-align: center;
|
|
3054
|
-
}
|
|
3055
|
-
|
|
3056
|
-
&::before,
|
|
3057
|
-
> *::before {
|
|
3058
|
-
left: 8px;
|
|
3059
|
-
}
|
|
3060
|
-
|
|
3061
|
-
> * {
|
|
3062
|
-
&:nth-child(odd) {
|
|
3063
|
-
align-self: end;
|
|
3064
|
-
}
|
|
3065
|
-
}
|
|
3066
|
-
|
|
3067
|
-
@media (width <= 630px) {
|
|
3068
|
-
display: block;
|
|
3069
|
-
|
|
3070
|
-
.timeline-card {
|
|
3071
|
-
width: auto;
|
|
3072
|
-
margin-left: 30px;
|
|
3073
|
-
}
|
|
3074
|
-
}
|
|
3075
|
-
}
|
|
3076
|
-
`}
|
|
3077
|
-
`,pi=({date:e,description:i,title:n})=>{const a=o.nt();return t.jsxs(Wo,{className:"timeline-card",children:[t.jsx(v,{color:a.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:e}),t.jsx(v,{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,s)=>{const l=`${r}#${s}`;return t.jsx(v,{size:"sm",textAlign:"center",wordBreak:"break-word",children:r},l)})})]})},Bo=({items:e})=>t.jsx(Ao,{children:e.map((i,n)=>t.jsx(pi,{date:i.date,description:i.description,title:i.title},`${i.title}-${n}`))}),_o=o.dt.div`
|
|
3078
|
-
${({theme:e})=>`
|
|
3079
|
-
align-items: center;
|
|
3080
|
-
display: flex;
|
|
3081
|
-
position: relative;
|
|
3082
|
-
width: 352px;
|
|
3083
|
-
|
|
3084
|
-
> button:first-child {
|
|
3085
|
-
border-radius: ${e.spacing[2]} 0 0 ${e.spacing[2]};
|
|
3086
|
-
}
|
|
3087
|
-
> button:last-child {
|
|
3088
|
-
--angle-grad: -45deg;
|
|
3089
|
-
border-radius: 0 ${e.spacing[2]} ${e.spacing[2]} 0;
|
|
3090
|
-
}
|
|
3091
|
-
|
|
3092
|
-
&::before {
|
|
3093
|
-
background: ${e.palette.gradients["01"]} border-box;
|
|
3094
|
-
border-radius: ${e.spacing[2]};
|
|
3095
|
-
content: "";
|
|
3096
|
-
position: absolute;
|
|
3097
|
-
inset: 0;
|
|
3098
|
-
border: 2px solid transparent;
|
|
3099
|
-
mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
|
|
3100
|
-
mask-composite: exclude;
|
|
3101
|
-
}
|
|
3102
|
-
|
|
3103
|
-
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
3104
|
-
width: 320px;
|
|
3105
|
-
}
|
|
3106
|
-
`}
|
|
3107
|
-
`,Oo=o.dt.button`
|
|
3108
|
-
${({theme:e})=>`
|
|
3109
|
-
align-items: center;
|
|
3110
|
-
background: linear-gradient(
|
|
3111
|
-
var(--angle-grad),
|
|
3112
|
-
rgba(243, 38, 55, var(--opacity-grad)),
|
|
3113
|
-
rgba(184, 7, 93, var(--opacity-grad))
|
|
3114
|
-
);
|
|
3115
|
-
color: ${e.palette.primary[500]};
|
|
3116
|
-
cursor: pointer;
|
|
3117
|
-
display: flex;
|
|
3118
|
-
flex: 1 0 0;
|
|
3119
|
-
justify-content: center;
|
|
3120
|
-
gap: ${e.spacing[.625]};
|
|
3121
|
-
height: ${e.spacing[4]};
|
|
3122
|
-
padding: ${e.spacing[1.25]};
|
|
3123
|
-
position: relative;
|
|
3124
|
-
transition: color, --opacity-grad 0.5s ease-in-out;
|
|
3125
|
-
|
|
3126
|
-
&.selected {
|
|
3127
|
-
--opacity-grad: 1;
|
|
3128
|
-
background: linear-gradient(
|
|
3129
|
-
var(--angle-grad),
|
|
3130
|
-
rgba(243, 38, 55, var(--opacity-grad)),
|
|
3131
|
-
rgba(184, 7, 93, var(--opacity-grad))
|
|
3132
|
-
);
|
|
3133
|
-
color: ${e.palette.white};
|
|
3134
|
-
}
|
|
3135
|
-
`}
|
|
3136
|
-
`,Mo=({defaultSelection:e,options:i,handleClick:n})=>{const[a,r]=u.useState(e??i[0]),s=u.useCallback(l=>()=>{r(l),n(l)},[n]);return t.jsx(_o,{children:i.map((l,c)=>t.jsx(Oo,{className:`${l.includes(a)&&"selected"}`,onClick:s(l),children:t.jsx(v,{color:"inherit",fontWeight:"bold",size:"md",sizeSm:"sm",textAlign:"center",children:l})},`${l}-${c}`))})},Ho={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:""},Vo=({run:e,steps:i,onFinish:n})=>{const[a,r]=u.useState(e),[s,l]=u.useState(0),c=u.useCallback(d=>{const{action:p,index:g,status:x,type:f}=d;[o.EVENTS.STEP_AFTER,o.EVENTS.TARGET_NOT_FOUND].includes(f)?l(g+(p===o.ACTIONS.PREV?-1:1)):([o.STATUS.FINISHED,o.STATUS.SKIPPED].includes(x)||p==="close")&&(r(!1),o.lodashExports.isUndefined(n)||n())},[n]);return t.jsx(o.components_default,{callback:c,continuous:!0,disableOverlayClose:!0,disableScrollParentFix:!0,run:a,spotlightClicks:!0,stepIndex:s,steps:i,styles:{buttonNext:{display:s===i.length-1?"none":"block"},options:{zIndex:9999}}})},Uo=o.dt.form`
|
|
3137
|
-
${({theme:e})=>`
|
|
3138
|
-
align-items: center;
|
|
3139
|
-
background: ${e.palette.gray[50]};
|
|
3140
|
-
backdrop-filter: blur(11px);
|
|
3141
|
-
border-radius: ${e.spacing[1]};
|
|
3142
|
-
box-shadow: ${e.shadows.md};
|
|
3143
|
-
display: flex;
|
|
3144
|
-
flex-direction: column;
|
|
3145
|
-
justify-content: center;
|
|
3146
|
-
padding: ${e.spacing[3]} ${e.spacing[2]};
|
|
3147
|
-
width: 628px;
|
|
3148
|
-
|
|
3149
|
-
&::before {
|
|
3150
|
-
background: ${e.palette.gradients["02"]} border-box;
|
|
3151
|
-
border-radius: ${e.spacing[1]};
|
|
3152
|
-
content: "";
|
|
3153
|
-
position: absolute;
|
|
3154
|
-
inset: 0;
|
|
3155
|
-
border: 2px solid transparent;
|
|
3156
|
-
mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
|
|
3157
|
-
mask-composite: exclude;
|
|
3158
|
-
}
|
|
3159
|
-
|
|
3160
|
-
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
3161
|
-
width: 320px;
|
|
3162
|
-
}
|
|
3163
|
-
`}
|
|
3164
|
-
`,Go=o.dt.div`
|
|
3165
|
-
align-items: flex-start;
|
|
3166
|
-
align-self: stretch;
|
|
3167
|
-
display: flex;
|
|
3168
|
-
flex-direction: column;
|
|
3169
|
-
gap: ${({theme:e})=>e.spacing[1.5]};
|
|
3170
|
-
|
|
3171
|
-
button[type="submit"] {
|
|
3172
|
-
width: 100%;
|
|
3173
|
-
|
|
3174
|
-
> * {
|
|
3175
|
-
text-align: center;
|
|
3176
|
-
}
|
|
3177
|
-
}
|
|
3178
|
-
`,Yo=o.dt.div`
|
|
3179
|
-
${({theme:e})=>`
|
|
3180
|
-
align-items: flex-start;
|
|
3181
|
-
align-self: stretch;
|
|
3182
|
-
container-type: inline-size;
|
|
3183
|
-
display: flex;
|
|
3184
|
-
flex-direction: row;
|
|
3185
|
-
gap: ${e.spacing[1]};
|
|
3186
|
-
position: relative;
|
|
3187
|
-
|
|
3188
|
-
&:has(> :nth-child(2)) {
|
|
3189
|
-
> div {
|
|
3190
|
-
display: flex;
|
|
3191
|
-
width: 50%;
|
|
3192
|
-
}
|
|
3193
|
-
}
|
|
3194
|
-
|
|
3195
|
-
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
3196
|
-
flex-direction: column;
|
|
3197
|
-
}
|
|
3198
|
-
`}
|
|
3199
|
-
`,qo=({children:e,name:i,onSubmit:n,submitDisabled:a,submitLabel:r="Submit"})=>t.jsx(Uo,{"aria-label":i,name:i,onSubmit:n,children:t.jsxs(Go,{children:[e,t.jsx(R,{disabled:a,type:"submit",children:r})]})});exports.Accordion=Mi;exports.AccordionContent=ft;exports.ActionButton=Ae;exports.Alert=Zi;exports.AppliedFilter=ae;exports.AppliedFilters=Qt;exports.Avatar=on;exports.BaseButtonComponent=Ve;exports.BaseComponent=be;exports.BaseSpanComponent=Ge;exports.BaseTextComponent=Ue;exports.Button=R;exports.Button$1=ve;exports.ButtonToolbarCenter=ur;exports.ButtonToolbarRow=hr;exports.ButtonToolbarStartRow=fr;exports.Calendar=vt;exports.Calendar$1=It;exports.Calendar$2=Ft;exports.CalendarCell=jt;exports.CalendarGrid=ze;exports.CardHeader=Se;exports.CardWithImage=cn;exports.CardWithInput=Vn;exports.CardWithOptions=Rt;exports.CardWithSelector=Zn;exports.CardWithSwitch=ea;exports.Carousel=oa;exports.CategoryTag=Oe;exports.Checkbox=Fe;exports.CodeSnippet=la;exports.Col=yr;exports.ColumFilters=Jt;exports.ColumnsModal=Ia;exports.ComboBox=mt;exports.ComboBoxField=Le;exports.Container=$;exports.ContentCard=ii;exports.ContentCardCarousel=Ua;exports.CustomThemeProvider=Di;exports.DateField=Ct;exports.DateSelector=se;exports.Description=si;exports.Dialog=Te;exports.Divider=te;exports.Editable=Fn;exports.EmptyButton=Me;exports.EmptyState=Ka;exports.EventDate=ti;exports.FilePreview=yt;exports.FilterControl=qt;exports.FilterForm=Be;exports.FilterFormContent=Kt;exports.Filters=_a;exports.FiltersList=Zt;exports.FixedTabs=Po;exports.Form=Ja;exports.FormItem=Yo;exports.Gap=mr;exports.GridContainer=er;exports.GroupSelector=ir;exports.Header=Ie;exports.Header$1=Ot;exports.Heading=_;exports.Icon=S;exports.IconButton=B;exports.IndicatorCard=nr;exports.InfoSidebar=ar;exports.InnerForm=Xa;exports.Input=Ke;exports.InputDate=zt;exports.InputDateRange=Tt;exports.InputDateTime=Tn;exports.InputFile=Dn;exports.InputNumber=Nt;exports.InputNumberRange=Et;exports.InputTags=Pn;exports.InteractiveCard=sr;exports.InteractiveIcon=ai;exports.ItemList=ri;exports.Label=Ye;exports.LanguageSelector=xr;exports.Link=Z;exports.ListItem=me;exports.ListItemsWrapper=Vt;exports.LittleFlag=kr;exports.Loading=Er;exports.LocationCode=Bt;exports.Logo=Ar;exports.LogoCarousel=Pr;exports.Lottie=_r;exports.MemoizedImage=Y;exports.Menu=Or;exports.MenuItem=ci;exports.MessageBanner=Hr;exports.Modal=ei;exports.ModalConfirm=fa;exports.ModalFooter=_t;exports.Notification=Yr;exports.NotificationSign=Mt;exports.NumberField=Ce;exports.NumberInput=Xr;exports.OAuthSelector=Jr;exports.Option=$t;exports.OptionBoxContainer=Qe;exports.OptionContainer=He;exports.OptionContainer$1=ni;exports.OutlineContainer=O;exports.PhoneInput=Mn;exports.PlanCard=to;exports.PopUp=io;exports.Popover=ye;exports.PremiumFeature=li;exports.PreviewPanel=Ut;exports.PriorityScore=ao;exports.ProgressBar=co;exports.RadioButton=Xe;exports.RecommendedTag=oi;exports.Row=jr;exports.ScrollButtons=_e;exports.ScrollUpButton=go;exports.Search=le;exports.SearchPanel=Yt;exports.SeverityBadge=uo;exports.SeverityOverview=ho;exports.SeverityOverviewBadge=re;exports.ShowOnHover=yo;exports.SlideOutMenu=mo;exports.Slider=So;exports.Span=oe;exports.StepLapse=Eo;exports.Tab=Ht;exports.TableButton=Lo;exports.Tabs=Je;exports.Tag=G;exports.TagsField=We;exports.Text=v;exports.TextArea=Hn;exports.Thumb=di;exports.TimeField=St;exports.TimeLine=Bo;exports.TimeLineCard=pi;exports.Toggle=Wt;exports.ToggleButton=Mo;exports.Tooltip=V;exports.Tour=Vo;exports.WebForm=qo;exports.baseStep=Ho;exports.getStyledConfig=he;exports.hiddenProps=xt;exports.icons=Ei;exports.setBorder=ge;exports.setDisplay=xe;exports.setInteraction=fe;exports.setMargin=de;exports.setPadding=ce;exports.setPosition=pe;exports.setText=ue;exports.theme=z;exports.uniqueIcons=Ri;exports.useCarousel=Dt;exports.useClickOutside=$e;exports.useCloudinaryImage=Lt;exports.useColumnsModal=Gn;exports.useConfirmDialog=Oa;exports.useDebouncedCallback=Pt;exports.useFilterForm=Xt;exports.useModal=Ne;exports.useSearch=Yn;exports.variantBuilder=U;
|