@fluidattacks/design 3.10.0 → 3.10.2-pr
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/components/@core/index.js +1 -1
- package/dist/components/accordion/accordion-content/index.js +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/card/card-header/index.js +1 -1
- package/dist/components/card/card-with-image/index.js +1 -1
- package/dist/components/card/card-with-input/index.js +1 -1
- package/dist/components/card/card-with-options/index.js +1 -1
- package/dist/components/card/card-with-selector/index.js +1 -1
- package/dist/components/card/card-with-switch/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/cloud-image/index.js +1 -1
- package/dist/components/code-snippet/index.js +1 -1
- package/dist/components/code-snippet/location-code/index.js +1 -1
- package/dist/components/colors/index.js +1 -1
- package/dist/components/confirm-dialog/index.js +1 -1
- package/dist/components/container/index.js +1 -1
- package/dist/components/content-card/category-tag/index.js +1 -1
- package/dist/components/content-card/event-date/index.js +1 -1
- package/dist/components/content-card/index.js +1 -1
- package/dist/components/content-card-carousel/index.js +1 -1
- package/dist/components/content-card-carousel/scroll-buttons/index.js +1 -1
- package/dist/components/divider/index.js +1 -1
- package/dist/components/empty-state/empty-button/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/file-preview/index.js +1 -1
- package/dist/components/form/index.d.ts +2 -1
- package/dist/components/form/index.js +1 -1
- package/dist/components/form/inner-form/index.d.ts +4 -0
- package/dist/components/form/inner-form/index.js +1 -0
- package/dist/components/grid-container/index.js +1 -1
- package/dist/components/group-selector/index.js +1 -1
- package/dist/components/group-selector/option-container/index.js +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/indicator-card/index.js +1 -1
- package/dist/components/info-sidebar/index.js +1 -1
- package/dist/components/inputs/fields/combobox/field/index.js +1 -1
- package/dist/components/inputs/fields/combobox/index.js +1 -1
- package/dist/components/inputs/fields/combobox/option/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date/index.js +1 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-range/index.js +1 -1
- package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-time/index.js +1 -1
- package/dist/components/inputs/fields/editable/index.js +1 -1
- package/dist/components/inputs/fields/input/index.js +1 -1
- package/dist/components/inputs/fields/input-file/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/field/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/index.js +1 -1
- package/dist/components/inputs/fields/number/index.js +1 -1
- package/dist/components/inputs/fields/number-range/index.js +1 -1
- package/dist/components/inputs/fields/phone/index.js +1 -1
- package/dist/components/inputs/fields/text-area/index.js +1 -1
- package/dist/components/inputs/index.js +1 -1
- package/dist/components/inputs/label/index.js +1 -1
- package/dist/components/inputs/outline-container/index.js +1 -1
- package/dist/components/inputs/utils/action-button/index.js +1 -1
- package/dist/components/inputs/utils/calendar-button/index.js +1 -1
- package/dist/components/inputs/utils/date-selector/index.js +1 -1
- package/dist/components/inputs/utils/date-time-field/index.js +1 -1
- package/dist/components/inputs/utils/dialog/index.js +1 -1
- package/dist/components/inputs/utils/number-field/index.js +1 -1
- package/dist/components/inputs/utils/popover/index.js +1 -1
- package/dist/components/interactive-card/icon/index.js +1 -1
- package/dist/components/interactive-card/index.js +1 -1
- package/dist/components/language-selector/index.js +1 -1
- package/dist/components/language-selector/item-list/index.js +1 -1
- package/dist/components/layout/categories/buttons/index.js +1 -1
- package/dist/components/layout/categories/column/index.js +1 -1
- package/dist/components/layout/categories/gap/index.js +1 -1
- package/dist/components/layout/categories/row/index.js +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list-item/index.js +1 -1
- package/dist/components/little-flag/index.js +1 -1
- package/dist/components/loading/index.js +1 -1
- package/dist/components/logo/index.js +1 -1
- package/dist/components/logo-carousel/index.js +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/message-banner/index.js +1 -1
- package/dist/components/modal/columns-modal/index.js +1 -1
- package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
- package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
- package/dist/components/modal/filters-modal/fields/options-selector/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-control/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/types.d.ts +3 -1
- package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
- package/dist/components/modal/filters-modal/index.js +1 -1
- package/dist/components/modal/filters-modal/single-column-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/two-columns-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/types.d.ts +4 -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/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/search-bar/index.js +1 -1
- package/dist/components/search-bar/item-searching/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.d.ts +2 -0
- package/dist/components/slide-out-menu/index.js +1 -1
- package/dist/components/slide-out-menu/menu-item/index.d.ts +1 -0
- package/dist/components/slide-out-menu/menu-item/index.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/thumb/index.js +1 -1
- package/dist/components/step-lapse/index.js +1 -1
- package/dist/components/table-button/index.js +1 -1
- package/dist/components/tabs/fixed-tabs/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/tab/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/timeline/card/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toggle/index.js +1 -1
- package/dist/components/toggle-buttons/index.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tour/index.js +1 -1
- package/dist/components/typography/heading/index.js +1 -1
- package/dist/components/typography/index.js +1 -1
- package/dist/components/typography/span/index.js +1 -1
- package/dist/components/typography/text/index.js +1 -1
- package/dist/components/web-form/index.js +1 -1
- package/dist/{components-BGGqBvrD.js → components-CokeVKH_.js} +204 -204
- package/dist/{components-DxLM6vwQ.mjs → components-D4MPm4EC.mjs} +2212 -2128
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{vendor-B5QH33Qh.mjs → vendor-C0XGr6Q1.mjs} +3 -3
- package/package.json +1 -1
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),g=require("react"),s=require("./vendor-B1UgKeXD.js"),_=require("react-dom"),Re=require("react-router-dom"),U=e=>({getVariant:(n,i)=>e(n)[i]}),pt=["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"],yn={25:"#fcfcfd",50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#2f394b",800:"#212a36",900:"#161b25"},$n={25:"#fef2f3",50:"#fddfe2",100:"#fbbac0",200:"#f9959e",300:"#f65e6a",400:"#f32637",500:"#bf0b1a",600:"#ac0a17",700:"#9a0915",800:"#870812",900:"#750710"},mn={25:"",50:"",100:"#ffe6ff",200:"",300:"#b8075d",400:"",500:"#7f0540",600:"",700:"#59042d",800:"",900:"#460323"},wn={25:"",50:"#fef3f2",100:"",200:"#fecdca",300:"",400:"",500:"#f04438",600:"",700:"#b42318",800:"",900:""},jn={25:"",50:"#fffaeb",100:"",200:"#fef0c7",300:"",400:"#ffd562",500:"#fdb022",600:"#dc6803",700:"#b54708",800:"",900:""},kn={25:"",50:"#f6fef9",100:"",200:"#a6f4c5",300:"",400:"",500:"#12b76a",600:"",700:"#027a48",800:"",900:""},vn={25:"",50:"#eff8ff",100:"",200:"#b2ddff",300:"",400:"",500:"#2e90fa",600:"",700:"#175cd3",800:"",900:""},Cn={"01":"linear-gradient(45deg, #f32637 0%, #b8075d 100%)","02":"linear-gradient(45deg, #fcfcfd 0%, #667085 100%)"},Sn={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"}},zn={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)"},In={mobile:"480px",tablet:"960px",sm:"1024px",md:"1440px",lg:"1920px"},Tn={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"},Nn=["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"],En=[["fal","arrow-down"],["fal","arrow-left"],["fal","arrow-right"],["fal","arrow-up"],["fal","plus"],["fal","minus"],["fas","check"],["fas","circle-question"]],I={typography:Sn,shadows:zn,breakpoints:In,spacing:Tn,palette:{primary:$n,complementary:mn,error:wn,info:vn,warning:jn,success:kn,black:"#0c111d",white:"#ffffff",gray:yn,gradients:Cn}},Fn=({children:e})=>t.jsx(s.ot,{theme:I,children:e}),N=(e,n)=>n===void 0?"":`${e}: ${n};`,le=e=>{const n=e.py??e.pt??0,i=e.px??e.pr??0,a=e.py??e.pb??0,r=e.px??e.pl??0;if(e.padding){const[o,l,c,d]=e.padding;return`padding: ${I.spacing[o]} ${I.spacing[l]} ${I.spacing[c]} ${I.spacing[d]};`}return`padding: ${I.spacing[n]} ${I.spacing[i]} ${I.spacing[a]} ${I.spacing[r]};`},ce=e=>{const n=e.my??e.mt??0,i=e.mx??e.mr??0,a=e.my??e.mb??0,r=e.mx??e.ml??0;if(e.margin){const[o,l,c,d]=e.margin;return`margin: ${I.spacing[o]} ${I.spacing[l]} ${I.spacing[c]} ${I.spacing[d]};`}return`margin: ${I.spacing[n]} ${I.spacing[i]} ${I.spacing[a]} ${I.spacing[r]};`},de=e=>{const n=N("position",e.position),i=N("top",e.top),a=N("right",e.right),r=N("bottom",e.bottom),o=N("left",e.left),l=N("z-index",e.zIndex);return`
|
|
2
2
|
${n}
|
|
3
3
|
${i}
|
|
4
|
-
${r}
|
|
5
4
|
${a}
|
|
5
|
+
${r}
|
|
6
6
|
${o}
|
|
7
7
|
${l}
|
|
8
|
-
`},pe=e=>{const n=N("border",e.border),i=N("border-top",e.borderTop),
|
|
8
|
+
`},pe=e=>{const n=N("border",e.border),i=N("border-top",e.borderTop),a=N("border-right",e.borderRight),r=N("border-bottom",e.borderBottom),o=N("border-left",e.borderLeft),l=N("border-color",e.borderColor),c=N("border-radius",e.borderRadius);return`
|
|
9
9
|
${n}
|
|
10
10
|
${i}
|
|
11
|
-
${r}
|
|
12
11
|
${a}
|
|
12
|
+
${r}
|
|
13
13
|
${o}
|
|
14
14
|
${l}
|
|
15
15
|
${c}
|
|
16
|
-
`},
|
|
17
|
-
${Fn(e.scroll)}
|
|
16
|
+
`},Rn=e=>e.includes("x")?"overflow-x: auto;":"",Dn=e=>e.includes("y")?"overflow-y: auto;":"",ge=e=>{const n=e.scroll?`
|
|
18
17
|
${Rn(e.scroll)}
|
|
19
|
-
|
|
18
|
+
${Dn(e.scroll)}
|
|
19
|
+
`:"",i=N("visibility",e.visibility),a=N("display",e.display),r=N("height",e.height),o=N("width",e.width),l=N("max-height",e.maxHeight),c=N("max-width",e.maxWidth),d=N("min-height",e.minHeight),p=N("min-width",e.minWidth),u=N("box-shadow",e.shadow?I.shadows[e.shadow]:void 0),x=N("gap",e.gap===void 0?void 0:I.spacing[e.gap]),f=N("background-color",e.bgColor),h=N("background",e.bgGradient),$=N("flex-direction",e.flexDirection),b=N("flex-grow",e.flexGrow),m=N("justify-content",e.justify),w=N("justify-self",e.justifySelf),j=N("align-items",e.alignItems),v=N("align-self",e.alignSelf),S=N("flex-wrap",e.wrap);return`
|
|
20
20
|
${n}
|
|
21
21
|
${i}
|
|
22
|
-
${r}
|
|
23
22
|
${a}
|
|
23
|
+
${r}
|
|
24
24
|
${o}
|
|
25
25
|
${l}
|
|
26
26
|
${c}
|
|
27
27
|
${d}
|
|
28
|
-
${
|
|
28
|
+
${p}
|
|
29
29
|
${u}
|
|
30
30
|
${f}
|
|
31
31
|
${h}
|
|
32
32
|
${x}
|
|
33
|
-
${m}
|
|
34
33
|
${$}
|
|
35
|
-
${
|
|
34
|
+
${b}
|
|
35
|
+
${m}
|
|
36
36
|
${w}
|
|
37
|
-
${
|
|
37
|
+
${j}
|
|
38
|
+
${v}
|
|
38
39
|
${S}
|
|
39
|
-
|
|
40
|
-
`},ue=e=>{const n=N("color",e.color),i=N("font-family",e.fontFamily),r=N("font-size",e.fontSize),a=N("font-weight",e.fontWeight),o=N("line-spacing",e.letterSpacing),l=N("line-height",e.lineSpacing),c=N("text-align",e.textAlign),d=N("text-decoration",e.textDecoration),g=N("text-overflow",e.textOverflow),u=N("white-space",e.whiteSpace),x=N("word-break",e.wordBreak),f=N("word-wrap",e.wordWrap);return`
|
|
40
|
+
`},ue=e=>{const n=N("color",e.color),i=N("font-family",e.fontFamily),a=N("font-size",e.fontSize),r=N("font-weight",e.fontWeight),o=N("line-spacing",e.letterSpacing),l=N("line-height",e.lineSpacing),c=N("text-align",e.textAlign),d=N("text-decoration",e.textDecoration),p=N("text-overflow",e.textOverflow),u=N("white-space",e.whiteSpace),x=N("word-break",e.wordBreak),f=N("word-wrap",e.wordWrap);return`
|
|
41
41
|
${n}
|
|
42
42
|
${i}
|
|
43
|
-
${r}
|
|
44
43
|
${a}
|
|
44
|
+
${r}
|
|
45
45
|
${o}
|
|
46
46
|
${l}
|
|
47
47
|
${c}
|
|
48
48
|
${d}
|
|
49
|
-
${
|
|
49
|
+
${p}
|
|
50
50
|
${u}
|
|
51
51
|
${x}
|
|
52
52
|
${f}
|
|
53
|
-
`},xe=e=>{const n=N("cursor",e.cursor),i=N("border-color",e.borderColorHover),
|
|
53
|
+
`},xe=e=>{const n=N("cursor",e.cursor),i=N("border-color",e.borderColorHover),a=N("background-color",e.bgColorHover),r=N("box-shadow",e.shadowHover===void 0?void 0:I.shadows[e.shadowHover]),o=N("transition",e.transition);return`
|
|
54
54
|
${n}
|
|
55
55
|
|
|
56
56
|
&:hover {
|
|
57
57
|
${o||"transition: all 0.2s;"}
|
|
58
58
|
${i}
|
|
59
|
-
${r}
|
|
60
59
|
${a}
|
|
60
|
+
${r}
|
|
61
61
|
}
|
|
62
62
|
`},fe=()=>({shouldForwardProp:e=>!pt.includes(e)}),ee=s.dt.div.withConfig(fe())`
|
|
63
63
|
${le}
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
${ue}
|
|
68
68
|
${pe}
|
|
69
69
|
${xe}
|
|
70
|
-
`,
|
|
70
|
+
`,_e=s.dt.button.withConfig(fe())`
|
|
71
71
|
${le}
|
|
72
72
|
${ce}
|
|
73
73
|
${de}
|
|
@@ -91,8 +91,8 @@
|
|
|
91
91
|
${ue}
|
|
92
92
|
${pe}
|
|
93
93
|
${xe}
|
|
94
|
-
`,
|
|
95
|
-
${({theme:e,$center:n=!1,$styleMd:i,$styleSm:
|
|
94
|
+
`,Pn=s.dt(ee)`
|
|
95
|
+
${({theme:e,$center:n=!1,$styleMd:i,$styleSm:a})=>`
|
|
96
96
|
${n?"margin: auto;":""}
|
|
97
97
|
scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
|
|
98
98
|
scroll-padding: ${e.spacing[.5]};
|
|
@@ -105,20 +105,20 @@
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
108
|
-
${
|
|
108
|
+
${a};
|
|
109
109
|
}
|
|
110
110
|
`}
|
|
111
|
-
`,
|
|
112
|
-
${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[800],$display:
|
|
111
|
+
`,y=g.forwardRef(function({as:n="div",center:i,children:a,id:r,onHover:o,onLeave:l,styleMd:c,styleSm:d,...p},u){return t.jsx(Pn,{$center:i,$styleMd:c,$styleSm:d,as:n,id:r,onMouseLeave:l,onMouseOver:o,ref:u,...p,children:a})}),Ln=s.dt(Ge)`
|
|
112
|
+
${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[800],$display:a="block",$fontFamily:r=e.typography.type.primary,$fontWeight:o="bold",$letterSpacing:l=0,$lineSpacing:c=1.5,$lineSpacingSm:d,$size:p,$sizeMd:u,$sizeSm:x,$textFill:f="unset",$wordBreak:h="normal"})=>`
|
|
113
113
|
background: ${n};
|
|
114
114
|
color: ${i};
|
|
115
|
-
display: ${
|
|
116
|
-
font-family: ${
|
|
117
|
-
font-size: ${e.typography.heading[
|
|
115
|
+
display: ${a};
|
|
116
|
+
font-family: ${r};
|
|
117
|
+
font-size: ${e.typography.heading[p]};
|
|
118
118
|
font-weight: ${e.typography.weight[o]};
|
|
119
119
|
letter-spacing: ${l};
|
|
120
120
|
line-height: ${e.spacing[c]};
|
|
121
|
-
width: ${
|
|
121
|
+
width: ${a==="block"?"100%":"auto"};
|
|
122
122
|
word-break: ${h};
|
|
123
123
|
background-clip: text;
|
|
124
124
|
-webkit-background-clip: text;
|
|
@@ -128,25 +128,25 @@
|
|
|
128
128
|
and (min-width: ${e.breakpoints.mobile})
|
|
129
129
|
and (max-width: ${e.breakpoints.tablet})
|
|
130
130
|
{
|
|
131
|
-
font-size: ${e.typography.heading[u??
|
|
131
|
+
font-size: ${e.typography.heading[u??p]};
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
135
|
-
font-size: ${e.typography.heading[x??
|
|
135
|
+
font-size: ${e.typography.heading[x??p]};
|
|
136
136
|
line-height: ${e.spacing[d??c]};
|
|
137
137
|
}
|
|
138
138
|
`}
|
|
139
139
|
`,ut=s.dt(Ge)`
|
|
140
|
-
${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[600],$display:
|
|
140
|
+
${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[600],$display:a="block",$fontFamily:r=e.typography.type.primary,$fontWeight:o="regular",$letterSpacing:l=0,$lineSpacing:c=1.25,$lineSpacingSm:d,$size:p,$sizeMd:u,$sizeSm:x,$textFill:f="unset",$wordBreak:h="normal"})=>`
|
|
141
141
|
background: ${n};
|
|
142
142
|
color: ${i};
|
|
143
|
-
display: ${
|
|
144
|
-
font-family: ${
|
|
145
|
-
font-size: ${e.typography.text[
|
|
143
|
+
display: ${a};
|
|
144
|
+
font-family: ${r};
|
|
145
|
+
font-size: ${e.typography.text[p]};
|
|
146
146
|
font-weight: ${e.typography.weight[o]};
|
|
147
147
|
letter-spacing: ${l};
|
|
148
148
|
line-height: ${e.spacing[c]};
|
|
149
|
-
width: ${
|
|
149
|
+
width: ${a==="block"?"100%":"auto"};
|
|
150
150
|
word-break: ${h};
|
|
151
151
|
background-clip: text;
|
|
152
152
|
-webkit-background-clip: text;
|
|
@@ -156,31 +156,31 @@
|
|
|
156
156
|
and (min-width: ${e.breakpoints.mobile})
|
|
157
157
|
and (max-width: ${e.breakpoints.tablet})
|
|
158
158
|
{
|
|
159
|
-
font-size: ${e.typography.text[u??
|
|
159
|
+
font-size: ${e.typography.text[u??p]};
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
163
|
-
font-size: ${e.typography.text[x??
|
|
163
|
+
font-size: ${e.typography.text[x??p]};
|
|
164
164
|
line-height: ${e.spacing[d??c]};
|
|
165
165
|
}
|
|
166
166
|
`}
|
|
167
|
-
`,
|
|
168
|
-
${({theme:e,$color:n=e.palette.gray[600],$content:i=void 0,$display:
|
|
167
|
+
`,Bn=s.dt.span`
|
|
168
|
+
${({theme:e,$color:n=e.palette.gray[600],$content:i=void 0,$display:a="inline",$fontWeight:r="regular",$size:o,$lineSpacing:l=1.25})=>`
|
|
169
169
|
color: ${n};
|
|
170
|
-
display: ${
|
|
170
|
+
display: ${a};
|
|
171
171
|
font-family: ${e.typography.type.primary};
|
|
172
172
|
font-size: ${e.typography.text[o]};
|
|
173
|
-
font-weight: ${e.typography.weight[
|
|
173
|
+
font-weight: ${e.typography.weight[r]};
|
|
174
174
|
line-height: ${e.spacing[l]};
|
|
175
|
-
width: ${
|
|
175
|
+
width: ${a==="block"?"100%":"auto"};
|
|
176
176
|
|
|
177
177
|
${i===void 0?"":`&::after { content: "${i}"; }`}
|
|
178
178
|
`}
|
|
179
|
-
`,
|
|
180
|
-
${({$clickable:e,$color:n="inherit",$disabled:i=!1,$hoverColor:
|
|
179
|
+
`,M=g.forwardRef(function({bgGradient:n,children:i,className:a,color:r,display:o,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:p,lineSpacingSm:u,size:x,sizeMd:f,sizeSm:h,textFill:$,wordBreak:b,...m},w){return t.jsx(Ln,{$bgGradient:n,$color:r,$display:o,$fontFamily:l,$fontWeight:c,$letterSpacing:d,$lineSpacing:p,$lineSpacingSm:u,$size:x,$sizeMd:f,$sizeSm:h,$textFill:$,$wordBreak:b,className:a,ref:w,...m,children:i})}),je=g.forwardRef(function({children:n,color:i,content:a,display:r,fontFamily:o,fontWeight:l,letterSpacing:c,lineSpacing:d,lineSpacingSm:p,size:u,sizeMd:x,sizeSm:f,...h},$){return t.jsx(Bn,{$color:i,$content:a,$display:r,$fontFamily:o,$fontWeight:l,$letterSpacing:c,$lineSpacing:d,$lineSpacingSm:p,$size:u,$sizeMd:x,$sizeSm:f,ref:$,...h,children:n})}),C=g.forwardRef(function({bgGradient:n,children:i,className:a,color:r,display:o,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:p,lineSpacingSm:u,size:x,sizeMd:f,sizeSm:h,textFill:$,wordBreak:b,...m},w){return t.jsx(ut,{$bgGradient:n,$color:r,$display:o,$fontFamily:l,$fontWeight:c,$letterSpacing:d,$lineSpacing:p,$lineSpacingSm:u,$size:x,$sizeMd:f,$sizeSm:h,$textFill:$,$wordBreak:b,className:a,ref:w,...m,children:i})}),xt=({item:e})=>{const n=e.description&&typeof e.description=="string"?t.jsx(C,{mb:e.extraElement?.5:void 0,size:"sm",children:e.description}):e.description??void 0;return t.jsxs(y,{display:"block",id:`panel-${e.title}`,padding:[.75,.75,.75,.75],children:[n,e.extraElement?t.jsx(y,{children:e.extraElement}):void 0]})},Mn={xl:"96px",lg:"64px",md:"32px",sm:"24px",xs:"16px",xxs:"12px",xxss:"10px"},Wn=s.dt(gt)`
|
|
180
|
+
${({$clickable:e,$color:n="inherit",$disabled:i=!1,$hoverColor:a,$rotation:r,$size:o,$secondaryColor:l})=>{const c=a?"":"brightness(50%)",d=a??"";return`
|
|
181
181
|
color: ${n};
|
|
182
182
|
cursor: ${e?"pointer":"inherit"};
|
|
183
|
-
font-size: ${
|
|
183
|
+
font-size: ${Mn[o]};
|
|
184
184
|
line-height: 0;
|
|
185
185
|
vertical-align: middle;
|
|
186
186
|
pointer-events: inherit;
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
|
|
189
189
|
> svg {
|
|
190
190
|
--fa-secondary-color: ${l};
|
|
191
|
-
transform: ${
|
|
191
|
+
transform: ${r===void 0?"":`rotate(${r}deg)`};
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
.fill-gradient-01 path {
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
&:hover:not([disabled]) {
|
|
213
213
|
transform: scale(1.2);
|
|
214
214
|
}
|
|
215
|
-
`;const z=
|
|
215
|
+
`;const z=g.forwardRef(function({clickable:n,disabled:i,hoverColor:a,icon:r,iconClass:o="",iconColor:l,iconMask:c,iconSize:d,iconTransform:p,iconType:u="fa-solid",onClick:x,rotation:f,spanClass:h,secondaryColor:$,...b},m){return t.jsx(Wn,{$clickable:n,$color:l,$disabled:i,$hoverColor:a,$rotation:f,$secondaryColor:$,$size:d,className:h,"data-testid":`${r}-icon`,onClick:x,ref:m,...b,children:t.jsx("i",{className:`${u} fa-${r} ${o}`,...c!==void 0?{"data-fa-mask":c}:{},...p!==void 0?{"data-fa-transform":p}:{}})},`${u}-${r}`)}),An=g.forwardRef(function({aligned:n="end",items:i,bgColor:a},r){const o=s.nt(),[l,c]=g.useState(!1),[d,p]=g.useState(-1),u=g.useCallback(x=>()=>{p(x),c(x===d?f=>!f:!0)},[d]);return t.jsx(y,{ref:r,children:i.map((x,f)=>{const h=f===d&&l;return t.jsxs(y,{bgColor:a??o.palette.white,children:[t.jsx(y,{"aria-controls":`panel-${x.title}`,"aria-expanded":l,"aria-label":x.title,as:"button",bgColor:a??o.palette.white,bgColorHover:o.palette.gray[100],borderBottom:h||f===i.length-1?"1px solid":void 0,borderColor:o.palette.gray[200],borderTop:"1px solid",cursor:"pointer",display:"flex",onClick:u(f),padding:[.75,.75,.75,.75],width:"100%",children:t.jsxs(y,{as:"summary",display:"flex",flexDirection:n==="end"?"row":"row-reverse",gap:.75,justify:"space-between",width:"100%",children:[t.jsx(C,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",sizeSm:"sm",textAlign:"start",children:x.title}),t.jsx(z,{icon:h?"chevron-up":"chevron-down",iconColor:o.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]})}),h&&t.jsx(xt,{item:x})]},x.title)})})}),Vn=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:Hn}=U(e=>({error:`
|
|
216
216
|
background: ${e.palette.error[50]};
|
|
217
217
|
border: 1px solid ${e.palette.error[500]};
|
|
218
218
|
color: ${e.palette.error[700]};
|
|
@@ -264,7 +264,7 @@
|
|
|
264
264
|
color: ${e.palette.warning[700]};
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
|
-
`})),
|
|
267
|
+
`})),On=s.dt.div`
|
|
268
268
|
${({theme:e,$variant:n})=>`
|
|
269
269
|
background: transparent;
|
|
270
270
|
align-items: center;
|
|
@@ -284,12 +284,12 @@
|
|
|
284
284
|
background-color: transparent;
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
-
${
|
|
287
|
+
${Hn(e,n??"error")}
|
|
288
288
|
`}
|
|
289
289
|
`,_n=s.dt.div`
|
|
290
290
|
padding-right: 4px;
|
|
291
291
|
width: 100%;
|
|
292
|
-
`,{getVariant:
|
|
292
|
+
`,{getVariant:Gn}=U(e=>({ghost:`
|
|
293
293
|
background: transparent;
|
|
294
294
|
border: none;
|
|
295
295
|
color: ${e.palette.gray[800]};
|
|
@@ -363,7 +363,7 @@
|
|
|
363
363
|
background-color: ${e.palette.primary[500]};
|
|
364
364
|
color: ${e.palette.white};
|
|
365
365
|
}
|
|
366
|
-
`})),ft=s.dt(
|
|
366
|
+
`})),ft=s.dt(_e)`
|
|
367
367
|
${({theme:e,$variant:n})=>`
|
|
368
368
|
align-items: center;
|
|
369
369
|
border-radius: var(--btn-spacing);
|
|
@@ -385,13 +385,13 @@
|
|
|
385
385
|
${n!=="link"?`--btn-padding-y: ${e.spacing[1]}`:""};
|
|
386
386
|
}
|
|
387
387
|
|
|
388
|
-
${
|
|
388
|
+
${Gn(e,n??"primary")}
|
|
389
389
|
`}
|
|
390
|
-
`,
|
|
391
|
-
${({theme:e,$borderRadius:n="4px",$px:i=.5,$py:
|
|
390
|
+
`,Un=s.dt(ft)`
|
|
391
|
+
${({theme:e,$borderRadius:n="4px",$px:i=.5,$py:a=.5})=>`
|
|
392
392
|
--btn-spacing: ${n};
|
|
393
393
|
--btn-padding-x: ${e.spacing[i]};
|
|
394
|
-
--btn-padding-y: ${e.spacing[
|
|
394
|
+
--btn-padding-y: ${e.spacing[a]};
|
|
395
395
|
|
|
396
396
|
align-items: center;
|
|
397
397
|
line-height: 0;
|
|
@@ -401,7 +401,7 @@
|
|
|
401
401
|
margin: 0 !important;
|
|
402
402
|
}
|
|
403
403
|
`}
|
|
404
|
-
`,
|
|
404
|
+
`,Yn=s.dt(ee)``,Kn=s.dt.div`
|
|
405
405
|
${({theme:e,$maxWidth:n="320px"})=>`
|
|
406
406
|
background-color: ${e.palette.gray[700]};
|
|
407
407
|
border-radius: 8px;
|
|
@@ -412,7 +412,7 @@
|
|
|
412
412
|
width: max-content;
|
|
413
413
|
z-index: 999999;
|
|
414
414
|
`}
|
|
415
|
-
`,Y=({children:e,disabled:n=!1,display:i="inline-block",height:
|
|
415
|
+
`,Y=({children:e,disabled:n=!1,display:i="inline-block",height:a,icon:r,iconColor:o,iconSize:l,id:c,maxWidth:d,nodeTip:p,place:u="bottom",tip:x="",title:f="",hide:h=x===""&&f===""&&p===void 0,width:$})=>{const b=s.nt(),[m,w]=g.useState(!1),{refs:j,floatingStyles:v,context:S}=s.useFloating({middleware:[s.flip({fallbackAxisSideDirection:"start"}),s.offset({mainAxis:10}),s.shift()],onOpenChange:w,open:m,placement:u,whileElementsMounted:s.autoUpdate}),k=s.useHover(S,{delay:{close:0,open:500},move:!1}),T=s.useFocus(S),E=s.useRole(S,{role:r?"label":"tooltip"}),{getReferenceProps:F,getFloatingProps:B}=s.useInteractions([k,T,E]);return n?t.jsx(g.StrictMode,{children:e}):t.jsxs(t.Fragment,{children:[t.jsx(Yn,{...F(),display:i,height:a,id:c,ref:j.setReference,width:$,children:r?t.jsx(z,{clickable:!0,disabled:n,icon:r,iconColor:o,iconSize:l??"xxs",iconType:m?"fa-solid":"fa-light"}):e}),m&&!h&&_.createPortal(t.jsxs(Kn,{...B(),$maxWidth:d,id:`floating-${c}`,ref:j.setFloating,style:v,children:[s.lodashExports.isEmpty(f)?void 0:t.jsx(C,{color:b.palette.white,fontWeight:"bold",lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:f}),s.lodashExports.isEmpty(x)?void 0:t.jsx(C,{color:b.palette.gray[100],lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:x}),s.lodashExports.isEmpty(p)?void 0:p]}),document.getElementById("root")??document.body)]})},W=g.forwardRef(function({borderRadius:n,disabled:i,icon:a,iconColor:r,iconSize:o="xxs",iconTransform:l,iconType:c,id:d,justify:p="center",onClick:u,px:x,py:f,type:h="button",tooltip:$,tooltipPlace:b,value:m,variant:w="primary",...j},v){const S=t.jsx(Un,{$borderRadius:n,$px:x,$py:f,$variant:w,"aria-disabled":i,"aria-label":d,borderRadius:n,disabled:i,id:d,justify:p,onClick:u,ref:v,type:h,value:m,...j,children:t.jsx(z,{clickable:!1,icon:a,iconColor:r,iconSize:o,iconTransform:l,iconType:c})}),T=(h+(w??"")+(d??a)).replace(/ /u,"_");return $===void 0?S:t.jsx(Y,{id:`${T}-tooltip`,place:b,tip:$,children:S})}),qn=g.forwardRef(function({autoHide:n=!1,children:i,closable:a=!1,onTimeOut:r,show:o=!0,time:l=8,variant:c="error",id:d,...p},u){const[x,f]=g.useState(o),h=g.useCallback(()=>{f(!1)},[]);return g.useEffect(()=>{const $=setTimeout(()=>{r==null||r(!0),n&&h()},l*1e3);return()=>{clearTimeout($)}},[n,h,l,r]),g.useEffect(()=>{f(o)},[o,f]),t.jsx(y,{display:x?"block":"none",ref:u,role:"alert",...p,children:t.jsxs(On,{$variant:c,id:d,children:[t.jsx(z,{clickable:!1,icon:Vn(c),iconSize:"xs",iconType:"fa-light"}),t.jsx(_n,{children:i}),a?t.jsx(W,{height:"fit-content",icon:"close",iconSize:"xs",iconType:"fa-light",onClick:h,px:.125,py:.125,variant:"ghost"}):void 0]})})}),nt=s.dt.div`
|
|
416
416
|
${({theme:e})=>`
|
|
417
417
|
align-items: center;
|
|
418
418
|
background-color: ${e.palette.gray[200]};
|
|
@@ -428,7 +428,7 @@
|
|
|
428
428
|
width: ${e.spacing[1.25]};
|
|
429
429
|
height: ${e.spacing[1.25]};
|
|
430
430
|
`}
|
|
431
|
-
`,
|
|
431
|
+
`,Xn=s.dt.div`
|
|
432
432
|
ul,
|
|
433
433
|
ol {
|
|
434
434
|
padding-top: 6px;
|
|
@@ -492,7 +492,7 @@
|
|
|
492
492
|
#menu-profile-container li div {
|
|
493
493
|
min-width: unset;
|
|
494
494
|
}
|
|
495
|
-
`,{getVariant:
|
|
495
|
+
`,{getVariant:Zn}=U(e=>({default:`
|
|
496
496
|
background-color: ${e.palette.gray[200]};
|
|
497
497
|
color: ${e.palette.gray[800]};
|
|
498
498
|
`,error:`
|
|
@@ -567,7 +567,7 @@
|
|
|
567
567
|
background-color: ${e.palette.warning[400]};
|
|
568
568
|
color: ${e.palette.warning[700]};
|
|
569
569
|
}
|
|
570
|
-
`})),
|
|
570
|
+
`})),Jn=s.dt.span`
|
|
571
571
|
${({theme:e,$fontSize:n=e.typography.text.xs,$variant:i})=>`
|
|
572
572
|
align-items: center;
|
|
573
573
|
border-radius: ${e.spacing[i==="technique"?1:.25]};
|
|
@@ -588,9 +588,9 @@
|
|
|
588
588
|
display: flex;
|
|
589
589
|
}
|
|
590
590
|
|
|
591
|
-
${
|
|
591
|
+
${Zn(e,i)}
|
|
592
592
|
`}
|
|
593
|
-
`,{getVariant:
|
|
593
|
+
`,{getVariant:Qn}=U(e=>({highRelevance:`
|
|
594
594
|
color: ${e.palette.primary[500]};
|
|
595
595
|
|
|
596
596
|
&:hover:not([disabled]) {
|
|
@@ -624,13 +624,13 @@
|
|
|
624
624
|
text-decoration: none;
|
|
625
625
|
}
|
|
626
626
|
|
|
627
|
-
${n?`color: ${n}`:
|
|
627
|
+
${n?`color: ${n}`:Qn(e,i)}
|
|
628
628
|
`}
|
|
629
|
-
`,
|
|
629
|
+
`,ei=s.dt.a`
|
|
630
630
|
${ht}
|
|
631
|
-
`,
|
|
631
|
+
`,ti=s.dt(Re.Link)`
|
|
632
632
|
${ht}
|
|
633
|
-
`,q=({children:e,color:n,download:i,href:
|
|
633
|
+
`,q=({children:e,color:n,download:i,href:a,iconPosition:r="right",onClick:o,target:l,variant:c="lowRelevance"})=>{const d=a.startsWith("https://"),p=t.jsx(z,{icon:i===void 0?"arrow-up-right-from-square":"arrow-down-to-bracket",iconSize:"xxs",iconType:"fa-regular",ml:.25,mr:.25});return d?t.jsxs(ei,{$color:n,$variant:c,download:i,href:a,onClick:o,rel:"nofollow noopener noreferrer",target:l??"_blank",children:[r==="left"?p:void 0,e,r==="right"?p:void 0]}):t.jsxs(ti,{$variant:c,download:i,onClick:o,rel:"nofollow noopener noreferrer",target:l,to:a,children:[l!==void 0&&r==="left"?p:void 0,e,l!==void 0&&r==="right"?p:void 0]})},X=({disabled:e,icon:n,iconColor:i="inherit",iconType:a="fa-light",id:r="close-tag",filterValues:o="",fontSize:l,href:c,linkLabel:d,onClose:p,priority:u="default",tagTitle:x="",tagLabel:f,variant:h="default"})=>{const $=f.length>25&&s.lodashExports.isEmpty(x+o),b=`${f.slice(0,25)}...`;return t.jsxs(je,{className:"gap-0.5",display:c===void 0?"initial":"flex",size:"sm",children:[t.jsxs(Jn,{$fontSize:l,$variant:h,className:u,children:[n&&t.jsx(z,{icon:n,iconColor:i,iconSize:"xxs",iconType:a}),t.jsxs("span",{children:[t.jsx("strong",{children:x}),t.jsx("span",{children:$?b:f}),t.jsx("strong",{children:o})]}),p?t.jsx(W,{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(q,{href:c,children:d})]})},ni=(e,n=!0)=>{const i=window.open(e,n?void 0:"_self","noopener,noreferrer,");s.lodashExports.isObject(i)&&(i.opener=null)},P=g.forwardRef(function({children:n,disabled:i=!1,external:a=!1,href:r,id:o,icon:l,name:c,onClick:d,showArrow:p=!1,tag:u,type:x="button",tooltip:f,tooltipPlace:h="bottom",underline:$=!1,value:b,variant:m="primary",...w},j){const v=f!==void 0,S=`${o}-tooltip`,k=g.useCallback(()=>{r&&ni(r,a)},[a,r]);return t.jsx(Y,{disabled:!v,id:S,place:h,tip:f,children:t.jsxs(ft,{$variant:m,"aria-disabled":i,className:$?"underline":void 0,disabled:i,id:o,name:c,onClick:m==="link"?k:d,ref:j,type:x,value:b,...v?{"data-tooltip-id":S}:{},...w,children:[l!==void 0&&t.jsx(z,{icon:l,iconSize:"xs",iconType:"fa-light"}),n,(p||m==="link")&&t.jsx(z,{icon:"arrow-right",iconSize:"xs",iconType:"fa-light"}),u===void 0?null:t.jsx(X,{tagLabel:u,variant:"inactive"})]})})}),ii=g.forwardRef(function({children:n,onClick:i,userName:a,showIcon:r=!1,showUsername:o=!1},l){const c=!!i;return t.jsx(y,{id:"navbar-user-profile",ref:l,zIndex:9999,children:t.jsxs(y,{alignItems:"end",display:"flex",flexDirection:"column",position:"relative",zIndex:30,children:[c?t.jsxs(P,{onClick:i,pb:.5,pl:.5,pr:.5,pt:.5,variant:"ghost",children:[t.jsx(nt,{children:a[0].toUpperCase()}),o?t.jsx(C,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:a.split(" ")[0]}):void 0,r?t.jsx(z,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}):t.jsxs(y,{alignItems:"center",display:"flex",px:.5,py:.5,children:[t.jsx(nt,{children:a[0].toUpperCase()}),o?t.jsxs(C,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:["Hi ",a.split(" ")[0],"!"]}):void 0,r?t.jsx(z,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}),t.jsx(Xn,{children:n})]})})}),Se=({authorEmail:e,date:n,description:i,descriptionColor:a,id:r,title:o,titleColor:l,textAlign:c,textSpacing:d=0,tooltip:p})=>{const u=s.nt();return t.jsxs(y,{width:"100%",children:[typeof o=="string"?t.jsx(C,{color:l??u.palette.gray[800],fontWeight:"bold",mb:d,size:"sm",textAlign:c,wordBreak:"break-word",children:o}):o,t.jsxs(y,{alignItems:"start",display:"flex",flexDirection:"column",gap:.25,children:[i&&t.jsx(C,{color:a??u.palette.gray[800],fontWeight:i===void 0?"bold":"regular",size:"sm",textAlign:c,wordBreak:"break-word",children:i}),n&&t.jsx(C,{color:u.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`Date: ${n.split(" ")[0]}`}),e&&t.jsx(C,{color:u.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`Author: ${e}`}),p&&t.jsx(Y,{icon:"circle-info",id:r,tip:p})]})]})},it=s.dt(y).attrs(({...e})=>({display:"inline-block",position:"relative",...e}))`
|
|
634
634
|
& img {
|
|
635
635
|
display: block;
|
|
636
636
|
}
|
|
@@ -645,8 +645,8 @@
|
|
|
645
645
|
pointer-events: none;
|
|
646
646
|
${({$opacity:e=0})=>`background-color: rgba(0, 0, 0, ${e});`}
|
|
647
647
|
}
|
|
648
|
-
`,
|
|
649
|
-
${({theme:e,$align:n="center",$minWidth:i="auto",$minHeight:
|
|
648
|
+
`,ai=e=>{if(s._.isNil(e))return"";const n=e.split(".");return(n.length>1?s._.last(n):"").toLowerCase()},ri=(e,n)=>s._.isUndefined(n)?!1:s._.includes(e,ai(n)),bt=({alt:e,fileType:n,width:i="100%",opacity:a=0,src:r,height:o="auto"})=>n==="video"||ri(["webm"],r)?t.jsx(it,{$opacity:a,children:t.jsxs("video",{controls:!0,muted:!0,style:{height:o,width:i},children:[t.jsx("source",{src:r,type:"video/webm"}),t.jsx(q,{href:r,iconPosition:"hidden",children:r})]})}):t.jsx(it,{$opacity:a,children:t.jsx("img",{alt:e,src:r,style:{height:o,width:i}})}),oi=({alt:e,authorEmail:n,date:i,description:a,src:r,children:o,isEditing:l,onClick:c,title:d,hideDescription:p=!1,headerType:u="image",showMaximize:x=!0})=>{const f=s.nt(),[h,$]=g.useState(!1),b=g.useCallback(()=>{$(!0)},[]),m=g.useCallback(()=>{$(!1)},[]);return t.jsxs(y,{bgColor:"transparent",border:"1px solid transparent",borderColorHover:"black",borderRadius:f.spacing[.25],display:"flex",flexDirection:"column",gap:1,onHover:b,onLeave:m,padding:[.5,.5,.5,.5],width:"100%",children:[t.jsx(y,{cursor:l?"unset":"pointer",display:"inline-flex",justify:"center",onClick:c,position:"relative",width:"100%",children:o===void 0?t.jsxs(g.Fragment,{children:[t.jsx(bt,{alt:e,fileType:u,height:"147px",opacity:h?.3:0,src:r,width:"100%"}),x?t.jsx(y,{bottom:"10px",position:"absolute",right:"10px",children:t.jsx(W,{color:"white",icon:"arrows-maximize",iconSize:"xxs",iconType:"fa-light",variant:"secondary"})}):void 0]}):o}),p?null:t.jsx(Se,{authorEmail:n,date:i,description:a,descriptionColor:f.palette.gray[600],id:`${e}-card-header`,title:d})]})},si=s.dt.div`
|
|
649
|
+
${({theme:e,$align:n="center",$minWidth:i="auto",$minHeight:a="auto"})=>`
|
|
650
650
|
display: flex;
|
|
651
651
|
background-color: ${e.palette.white};
|
|
652
652
|
border-radius: ${e.spacing[.25]};
|
|
@@ -655,7 +655,7 @@
|
|
|
655
655
|
justify-content: center;
|
|
656
656
|
gap: ${e.spacing[.5]};
|
|
657
657
|
min-width: ${i};
|
|
658
|
-
min-height: ${
|
|
658
|
+
min-height: ${a};
|
|
659
659
|
padding: ${e.spacing[1]};
|
|
660
660
|
|
|
661
661
|
input {
|
|
@@ -664,7 +664,7 @@
|
|
|
664
664
|
text-align: ${n};
|
|
665
665
|
}
|
|
666
666
|
`}
|
|
667
|
-
`,Ue=({htmlFor:e,label:n,link:i,required:
|
|
667
|
+
`,Ue=({htmlFor:e,label:n,link:i,required:a,tooltip:r,weight:o="normal"})=>{const l=s.nt(),c=`${e}-tooltip`,d=r!==void 0&&!s.lodashExports.isEmpty(r);return t.jsxs("label",{className:`flex font-${o} gap-1 w-full`,htmlFor:e,children:[n,a&&t.jsx(z,{icon:"asterisk",iconColor:l.palette.error[500],iconSize:"xxss"}),i?t.jsx(q,{href:i,target:"_blank"}):null,d?t.jsx(Y,{display:"inline-flex",icon:"circle-info",id:c,place:"top",tip:r}):null]})},li=s.dt.div`
|
|
668
668
|
${({theme:e})=>`
|
|
669
669
|
align-items: flex-start;
|
|
670
670
|
display: inline-flex;
|
|
@@ -803,7 +803,7 @@
|
|
|
803
803
|
border: 1px solid ${e.palette.gray[600]};
|
|
804
804
|
}
|
|
805
805
|
`}
|
|
806
|
-
`,
|
|
806
|
+
`,V=({children:e,error:n,helpLink:i,helpLinkText:a="Link here",helpText:r,htmlFor:o,label:l,linkPosition:c="down",maxLength:d,required:p,tooltip:u,value:x,weight:f})=>{const h=s.nt(),$=x?x.length:0;return t.jsxs(li,{children:[l===void 0?void 0:t.jsx(Ue,{htmlFor:o,label:l,link:c==="up"?i:void 0,required:p,tooltip:u,weight:f}),e,n||d?t.jsxs(y,{display:"flex",justify:n===void 0?"end":"space-between",width:"100%",children:[n&&t.jsx(C,{className:"error-msg",color:h.palette.error[500],display:"block",lineSpacing:1,size:"sm",children:n}),d&&t.jsx(X,{priority:"low",tagLabel:`${$}/${d}`,variant:"error"})]}):void 0,r||i?t.jsxs(y,{alignItems:"center",display:"flex",gap:.25,width:"100%",children:[r&&t.jsxs(t.Fragment,{children:[t.jsx(z,{icon:"circle-info",iconColor:h.palette.gray[400],iconSize:"xxs",iconType:"fa-light"}),t.jsx(C,{color:h.palette.gray[400],display:"inline-block",size:"sm",children:r})]}),i&&c==="down"?t.jsx(q,{href:i,children:a}):void 0]}):void 0]})},he=({className:e,children:n,isFilter:i=!1,popoverRef:a,state:r,triggerRef:o,...l})=>{var x;const c=g.useRef(null),d=(x=o==null?void 0:o.current)==null?void 0:x.getBoundingClientRect(),{popoverProps:p}=s.$f2f8a6077418541e$export$542a6fd13ac93354({...l,popoverRef:a??c,triggerRef:o,isNonModal:a?!0:void 0},r),u=g.useCallback(f=>{f.preventDefault()},[]);return t.jsx(s.$337b884510726a0d$export$c6fdb837b070b4ff,{children:t.jsx("div",{...p,className:e,onPointerDown:i?u:void 0,ref:a??c,style:{...p.style,...e==="dropdown"?{display:"flex",justifyContent:"center",width:d==null?void 0:d.width}:{}},children:n})})},ci=s.dt.ul`
|
|
807
807
|
${({theme:e})=>`
|
|
808
808
|
align-self: center;
|
|
809
809
|
background: ${e.palette.white};
|
|
@@ -818,7 +818,7 @@
|
|
|
818
818
|
scroll-padding: ${e.spacing[.5]};
|
|
819
819
|
width: 95%;
|
|
820
820
|
`}
|
|
821
|
-
`,
|
|
821
|
+
`,di=s.dt.li`
|
|
822
822
|
${({theme:e})=>`
|
|
823
823
|
align-items: center;
|
|
824
824
|
color: ${e.palette.gray[800]};
|
|
@@ -851,7 +851,7 @@
|
|
|
851
851
|
cursor: not-allowed;
|
|
852
852
|
}
|
|
853
853
|
`}
|
|
854
|
-
|
|
854
|
+
`,yt=({item:e,state:n})=>{const i=g.useRef(null),{optionProps:a,isSelected:r,isFocused:o,isDisabled:l}=s.$293f70390ea03370$export$497855f14858aa34({key:e.key},n,i),c=[r?"selected":"",o?"focused":"",l?"disabled":""].join(" ");return t.jsxs(di,{...a,className:c,ref:i,children:[e.rendered,r?t.jsx(z,{icon:"check",iconSize:"xxs",iconType:"fa-light"}):void 0]})},De=({field:e,disabled:n=!1,error:i,helpLink:a,helpLinkText:r,helpText:o,label:l,loadingItems:c,name:d,items:p,onBlur:u,onChange:x,placeholder:f,required:h,tooltip:$,value:b,weight:m})=>{var tt;const w=s.nt(),j=n?void 0:i,v=(e==null?void 0:e.value)??b,[S,k]=g.useState(((tt=p.find(L=>L.value===v))==null?void 0:tt.name)??""),[T,E]=g.useState(v),[F,B]=g.useState(p),[D,R]=g.useState(!1),{contains:A}=s.$bb77f239b46e8c72$export$3274cf84b703fff({sensitivity:"base"}),O=g.useRef(null),ae=g.useRef(null),Ee=g.useRef(null),Je=g.useRef(null),Qe=g.useRef(null),cn=g.useMemo(()=>p.map(L=>A(L.name,S)||D?t.jsx(s.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,{children:L.name},L.value):null),[A,S,p,D]),dn=g.useCallback(L=>{k(L),L===""?R(!0):(R(!1),E(H=>{const $e=L===""?"":H;return e&&e.onChange($e),x&&x(L),$e}),B(p.filter(H=>A(H.name,L))))},[A,p,e,x]),pn=g.useCallback(L=>{var H;k(((H=p.find($e=>$e.value===L))==null?void 0:H.name)??""),E(L?String(L):""),e&&e.onChange(L),x&&x(L?String(L):""),B(p)},[p,e,x]),et=g.useCallback(L=>{L.key==="Enter"&&L.preventDefault(),R(!1)},[]),gn=g.useCallback(()=>{u&&u(),e&&e.onBlur()},[e,u]),K=s.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({allowsEmptyCollection:!0,inputValue:S,items:F,menuTrigger:"focus",shouldCloseOnBlur:!0,selectedKey:T,onBlur:gn,onInputChange:dn,onKeyDown:et,onKeyUp:()=>{R(!0)},onOpenChange(L,H){R(L&&(H==="manual"||H==="focus"))},onSelectionChange:pn,children:cn}),{buttonProps:un,inputProps:xn,listBoxProps:fn}=s.$c350ade66beef0af$export$8c18d1b4f7232bbf({inputValue:S,buttonRef:ae,id:d,inputRef:O,label:l??d,listBoxRef:Ee,name:d,placeholder:f,popoverRef:Qe},K),{listBoxProps:hn}=s.$c132121280ec012d$export$50eacbbf140a3141(fn,K,Ee),{buttonProps:bn}=s.$701a24aa0da5b062$export$ea18c227d4417cc3(un,ae);return g.useEffect(()=>{var L;(c===!1||!v)&&k(((L=p.find(H=>H.value===v))==null?void 0:L.name)??"")},[v,p,c]),t.jsxs(V,{error:j,helpLink:a,helpLinkText:r,helpText:o,htmlFor:d,label:l,required:h,tooltip:$,weight:m,children:[t.jsxs(Z,{className:`${n?"disabled":""} ${j?"error":""}`,ref:Je,children:[t.jsx("input",{...xn,"aria-invalid":j?"true":"false","aria-label":d,onKeyDown:et,ref:O}),j?t.jsx(z,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:w.palette.error[500],iconSize:"xs"}):void 0,t.jsx(W,{...bn,className:"action",icon:K.isOpen?"chevron-up":"chevron-down",iconColor:w.palette.gray[400],iconSize:"xxs",iconType:"fa-light",px:.125,py:.125,ref:ae,type:"button",variant:"ghost"})]}),K.isOpen&&K.collection.size>0&&!n?t.jsx(he,{className:"dropdown",offset:4,placement:"bottom start",popoverRef:Qe,state:K,triggerRef:Je,children:t.jsx(ci,{...hn,ref:Ee,children:[...K.collection].map(L=>t.jsx(yt,{item:L,state:K},L.key))})}):null]})},pi=({control:e,disabled:n=!1,error:i,helpLink:a,helpLinkText:r,helpText:o,label:l,loadingItems:c,name:d,items:p,onBlur:u,onChange:x,placeholder:f,required:h,tooltip:$,value:b,weight:m})=>e?t.jsx(s.Controller,{control:e,name:d,render:({field:w})=>t.jsx(De,{disabled:n,error:i,field:w,helpLink:a,helpLinkText:r,helpText:o,items:p,label:l,loadingItems:c,name:d,onBlur:u,onChange:x,placeholder:f,required:h,tooltip:$,value:b,weight:m}),rules:{required:h}}):t.jsx(De,{disabled:n,error:i,helpLink:a,helpLinkText:r,helpText:o,items:p,label:l,loadingItems:c,name:d,onBlur:u,onChange:x,placeholder:f,required:h,tooltip:$,value:b,weight:m}),gi=s.dt.div`
|
|
855
855
|
${({theme:e})=>`
|
|
856
856
|
align-items: center;
|
|
857
857
|
color: ${e.palette.gray[800]};
|
|
@@ -872,7 +872,7 @@
|
|
|
872
872
|
display: none;
|
|
873
873
|
}
|
|
874
874
|
`}
|
|
875
|
-
`,
|
|
875
|
+
`,ui=s.dt.div.attrs({className:"year-selection"})`
|
|
876
876
|
align-items: flex-start;
|
|
877
877
|
display: flex;
|
|
878
878
|
flex-direction: column;
|
|
@@ -888,7 +888,7 @@
|
|
|
888
888
|
display: flex;
|
|
889
889
|
padding: ${({theme:e})=>e.spacing[.25]} 0;
|
|
890
890
|
width: 100%;
|
|
891
|
-
|
|
891
|
+
`,$t=s.lt`
|
|
892
892
|
${({theme:e})=>`
|
|
893
893
|
align-items: center;
|
|
894
894
|
color: ${e.palette.gray[800]};
|
|
@@ -904,11 +904,11 @@
|
|
|
904
904
|
text-align: center;
|
|
905
905
|
width: ${e.spacing[2.5]};
|
|
906
906
|
`}
|
|
907
|
-
`,
|
|
908
|
-
${
|
|
909
|
-
`,
|
|
907
|
+
`,xi=s.dt.th`
|
|
908
|
+
${$t}
|
|
909
|
+
`,fi=s.dt.td`
|
|
910
910
|
${({theme:e})=>`
|
|
911
|
-
${
|
|
911
|
+
${$t}
|
|
912
912
|
height: ${e.spacing[2.5]};
|
|
913
913
|
width: ${e.spacing[2.5]};
|
|
914
914
|
|
|
@@ -956,7 +956,7 @@
|
|
|
956
956
|
}
|
|
957
957
|
}
|
|
958
958
|
`}
|
|
959
|
-
`,
|
|
959
|
+
`,hi=s.dt.div.attrs({className:"dot"})`
|
|
960
960
|
position: absolute;
|
|
961
961
|
top: 48%;
|
|
962
962
|
|
|
@@ -983,9 +983,9 @@
|
|
|
983
983
|
padding: 0 ${e.spacing[.25]};
|
|
984
984
|
width: 100%;
|
|
985
985
|
`}
|
|
986
|
-
`,mt=({state:e,date:n})=>{const i=
|
|
987
|
-
${c?"disabled":""} ${
|
|
988
|
-
${!e.isFocused&&!
|
|
986
|
+
`,mt=({state:e,date:n})=>{const i=g.useRef(null),a=s.$14e0f24ef4ac5c92$export$629b0a497aa65267(n,s.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),{cellProps:r,buttonProps:o,isSelected:l,isDisabled:c,formattedDate:d}=s.$36a0ac60f04457c5$export$136073280381448e({date:n},e,i),p="highlightedRange"in e&&!s.lodashExports.isNull(e.highlightedRange)?s.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.start):l,u="highlightedRange"in e&&!s.lodashExports.isNull(e.highlightedRange)?s.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.end):l,x=l&&!c&&!(p||u)?"range":"";return t.jsx(fi,{id:x,...r,children:t.jsxs("div",{...o,className:`cell ${p||u?"selected":""}
|
|
987
|
+
${c?"disabled":""} ${a?"today":""}
|
|
988
|
+
${!e.isFocused&&!a?"focused":""} ${x}`,ref:i,children:[d,a?t.jsx(hi,{children:t.jsx(z,{clickable:!1,icon:"circle",iconSize:"xxs"})}):void 0]})})},ze=({state:e,...n})=>{const{locale:i}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{weekDays:a}=s.$e3031d1f8c9d64eb$export$cb95147730a423f5(n,e),r=s.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654(e.visibleRange.start,i);return t.jsxs("table",{children:[t.jsx("thead",{children:t.jsx(at,{children:a.map((o,l)=>{const c=`key_${l}`;return t.jsx(xi,{children:o},c)})})}),t.jsx("tbody",{children:[...new Array(r).keys()].map(o=>t.jsx(at,{children:e.getDatesInWeek(o).map((l,c)=>{const d=`key_${c}`;return l?t.jsx(mt,{date:l,state:e},d):t.jsx("td",{},d)})},o))})]})},bi=s.dt(_e)`
|
|
989
989
|
align-items: center;
|
|
990
990
|
background-color: inherit;
|
|
991
991
|
border-color: inherit;
|
|
@@ -1005,7 +1005,7 @@
|
|
|
1005
1005
|
background-color: ${({theme:e})=>e.palette.gray[100]};
|
|
1006
1006
|
cursor: pointer;
|
|
1007
1007
|
}
|
|
1008
|
-
`,
|
|
1008
|
+
`,yi=s.dt.div`
|
|
1009
1009
|
${({theme:e})=>`
|
|
1010
1010
|
align-items: flex-start;
|
|
1011
1011
|
background: ${e.palette.white};
|
|
@@ -1020,21 +1020,21 @@
|
|
|
1020
1020
|
width: 292px;
|
|
1021
1021
|
`}
|
|
1022
1022
|
`,$i=s.dt.button`
|
|
1023
|
-
${({theme:e,$disabled:n,$focus:i,$header:
|
|
1023
|
+
${({theme:e,$disabled:n,$focus:i,$header:a})=>{const r=i?"34px":"40px";return`
|
|
1024
1024
|
align-items: center;
|
|
1025
|
-
border-radius: ${
|
|
1025
|
+
border-radius: ${a?`0 ${e.spacing[.5]} ${e.spacing[.5]} 0`:"4px"};
|
|
1026
1026
|
border-left: inherit;
|
|
1027
1027
|
display: flex;
|
|
1028
|
-
height: ${
|
|
1028
|
+
height: ${a?"38px":r};
|
|
1029
1029
|
justify-content: center;
|
|
1030
1030
|
outline: none;
|
|
1031
|
-
width: ${
|
|
1031
|
+
width: ${a?"38px":"40px"};
|
|
1032
1032
|
|
|
1033
1033
|
&:hover {
|
|
1034
1034
|
background-color: ${e.palette.gray[n?500:100]};
|
|
1035
1035
|
}
|
|
1036
1036
|
`}}
|
|
1037
|
-
`,
|
|
1037
|
+
`,mi=s.dt.div`
|
|
1038
1038
|
${({theme:e})=>`
|
|
1039
1039
|
align-items: center;
|
|
1040
1040
|
background: transparent;
|
|
@@ -1045,7 +1045,7 @@
|
|
|
1045
1045
|
justify-content: space-between;
|
|
1046
1046
|
width: calc(100% - 40px);
|
|
1047
1047
|
`}
|
|
1048
|
-
`,
|
|
1048
|
+
`,wi=s.dt.div`
|
|
1049
1049
|
align-items: center;
|
|
1050
1050
|
display: flex;
|
|
1051
1051
|
justify-content: flex-end;
|
|
@@ -1083,7 +1083,7 @@
|
|
|
1083
1083
|
font-weight: ${e.typography.weight.bold};
|
|
1084
1084
|
}
|
|
1085
1085
|
`}
|
|
1086
|
-
`,ke=({disabled:e=!1,icon:n,props:i})=>{const
|
|
1086
|
+
`,ke=({disabled:e=!1,icon:n,props:i})=>{const a=g.useRef(null),{buttonProps:r}=s.$701a24aa0da5b062$export$ea18c227d4417cc3(i,a);return t.jsx($i,{...r,$disabled:e,$focus:!!r["aria-expanded"],$header:n==="calendar"||n==="calendar-clock",disabled:e,ref:a,type:"button",children:t.jsx(z,{icon:n,iconColor:I.palette.gray[e?400:700],iconSize:"xs",iconType:"fa-light"})})},Ie=({state:e,prevButtonProps:n,nextButtonProps:i,title:a})=>{const r=e.focusedDate,o=g.useCallback(()=>{e.setFocusedDate(r.add({years:1}))},[r,e]),l=g.useCallback(()=>{e.setFocusedDate(r.subtract({years:1}))},[r,e]);return t.jsxs("div",{className:"header flex items-start",children:[t.jsx(ke,{icon:"chevron-left",props:n}),t.jsxs(gi,{children:[a,t.jsxs(ui,{children:[t.jsx(rt,{"aria-label":"top",onClick:o,children:t.jsx(z,{icon:"caret-up",iconClass:"fa-sharp",iconSize:"xxss"})}),t.jsx(rt,{"aria-label":"bottom",onClick:l,children:t.jsx(z,{icon:"caret-down",iconClass:"fa-sharp",iconSize:"xxss"})})]})]}),t.jsx(ke,{icon:"chevron-right",props:i})]})},wt=({onClose:e,props:n})=>{const{locale:i}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),a=s.$131cf43a05231e1e$export$6d095e787d2b5e1f({...n,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:r,nextButtonProps:o,title:l}=s.$9942cad8a072a530$export$3ee915f8151bd4f1(n,a);return t.jsxs("div",{className:"calendar",children:[t.jsx(Ie,{nextButtonProps:o,prevButtonProps:r,state:a,title:l}),t.jsx(ze,{state:a}),t.jsx(Ye,{children:t.jsx(P,{onClick:e,variant:"ghost",children:"Cancel"})})]})},jt=({segment:e,state:n})=>{const i=s.nt(),a=g.useRef(null),o={...e,placeholder:{day:"dd",dayPeriod:"(AM/PM)",era:"",hour:"hh",literal:"",minute:"mm",month:"mm",second:"",timeZoneName:"",year:"yyyy"}[e.type]},{segmentProps:l}=s.$32489daedd52963e$export$1315d136e6f7581(o,n,a),c=i.palette.gray[o.isEditable?800:500];return t.jsx("div",{...o.type!=="literal"&&{...l,className:"segment-cell"},ref:a,style:o.type==="literal"?void 0:{color:o.isPlaceholder?i.palette.gray[400]:c},children:o.isPlaceholder?o.placeholder:o.text})},kt=({disabled:e,error:n=!1,props:i})=>{const a=s.nt(),r=g.useRef(null),o=s.$3c0fc76039f1c516$export$60e84778edff6d26({...i,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:"en-US"}),{fieldProps:l}=s.$16f0b7bb276bc17e$export$5591b0b878c1a989(i,o,r),c=g.useCallback(d=>{const p=document.getElementsByClassName("segment-cell"),u=d.currentTarget;Object.values(p).some(x=>x.contains(u))||(d.preventDefault(),d.stopPropagation())},[]);return t.jsxs(mi,{...l,onClick:c,children:[t.jsx("div",{className:"flex flex-row",style:{color:a.palette.gray[s.lodashExports.isNil(o.value)?400:800]},tabIndex:-1,children:o.segments.map((d,p)=>{const u=`key_${p}`;return t.jsx(jt,{segment:{...d,isEditable:!e},state:o},u)})}),n?t.jsx(z,{icon:"exclamation-circle",iconColor:a.palette.error[500],iconSize:"xs"}):void 0]})},vt=e=>{const n=g.useRef(null),i=s.$eff5d8ee529ac4bb$export$fd53cef0cc796101({...e,locale:"en-US",shouldForceLeadingZeros:!0}),{timeValue:a}=i,r=!s.lodashExports.isNil(a)&&a.hour<12?"AM":"PM",[o,l]=g.useState(s.lodashExports.isNil(a)?"AM":r),{fieldProps:c}=s.$16f0b7bb276bc17e$export$4c842f6a241dc825(e,i,n),d=g.useCallback(p=>{const u=p.currentTarget.name;u!==o&&(s.lodashExports.isNil(a)||(u==="AM"?i.setSegment("dayPeriod",0):u==="PM"&&i.setSegment("dayPeriod",12))),l(u)},[o,i,a]);return t.jsxs(wi,{children:[t.jsx(ot,{...c,ref:n,children:i.segments.slice(0,-2).map((p,u)=>{const x=`key_${u}`;return t.jsx(jt,{segment:p,state:i},x)})}),t.jsxs(ot,{children:[t.jsx(st,{id:o==="AM"?"active":"",name:"AM",onClick:d,type:"button",children:"AM"}),t.jsx(st,{id:o==="PM"?"active":"",name:"PM",onClick:d,type:"button",children:"PM"})]})]})},Ct=e=>e&&e!=="-"?s.dayjs(e).format("YYYY-MM-DD"):"-",ji=e=>e&&e!=="-"?s.dayjs(e).format("YYYY-MM-DD hh:mm A"):"-",ki=e=>e&&e!=="-"?s.dayjs(e).format("YYYY/MM/DD hh:mm A"):"-",se=({error:e,buttonProps:n,datePickerRef:i,disabled:a=!1,granularity:r="day",fieldProps:o,groupProps:l,name:c,register:d,required:p,setValue:u,value:x})=>{const f=g.useCallback(h=>{o.onChange&&o.onChange(h),u&&u(c,r==="day"?Ct(String(h)):ji(String(h)))},[o,r,c,u]);return t.jsxs(Z,{...l,className:`${a?"disabled":""} ${e?"error":""}`,ref:i,children:[t.jsx(kt,{disabled:a,error:e!=null,props:{...o,autoFocus:!1,granularity:r,onChange:f,shouldForceLeadingZeros:!0}}),t.jsx(ke,{disabled:a,icon:r==="minute"?"calendar-clock":"calendar",props:n}),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,...n})=>{const i=g.useRef(null),{dialogProps:a}=s.$40df3f8667284809$export$d55e7ee900f34e93(n,i);return t.jsx(yi,{...a,ref:i,children:e})},St=({disabled:e=!1,error:n,helpLink:i,helpLinkText:a,helpText:r,required:o,label:l,name:c,register:d,setValue:p,tooltip:u,watch:x,...f})=>{const h=g.useRef(null),$=x==null?void 0:x(c),b=s.$ab5bf3f618090389$export$87194bb378cc3ac2({...f,value:s._.isNil($)||s._.isEmpty($)||$==="-"?null:s.$fae977aafc393c5c$export$6b862160d295c8e($.replace(/\//gu,"-"))}),{close:m}=b,{groupProps:w,fieldProps:j,buttonProps:v,dialogProps:S,calendarProps:k}=s.$6057a3d2a53a12fd$export$42df105a73306d51({...f,"aria-label":l??c,name:c},b,h),T=g.useCallback(E=>{k.onChange&&k.onChange(E),p&&p(c,Ct(E.toString()))},[k,c,p]);return t.jsxs(V,{error:n,helpLink:i,helpLinkText:a,helpText:r,htmlFor:c,label:l,required:o,tooltip:u,children:[t.jsx(se,{buttonProps:v,datePickerRef:h,disabled:e,error:n,fieldProps:j,groupProps:w,name:c,register:d,required:o,setValue:p,value:$}),b.isOpen&&!e?t.jsx(he,{offset:8,placement:"bottom start",state:b,triggerRef:h,children:t.jsx(Te,{...S,children:t.jsx(wt,{onClose:m,props:{...k,onChange:T}})})}):null]})},zt=({onClose:e,props:n})=>{const{locale:i}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),a=g.useRef(null),r=s.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90({...n,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:o,nextButtonProps:l,title:c}=s.$46a4342aab3d8076$export$87e0539f600c24e5(n,r,a);return t.jsxs("div",{className:"calendar-range",ref:a,children:[t.jsx(Ie,{nextButtonProps:l,prevButtonProps:o,state:r,title:c}),t.jsx(ze,{state:r}),t.jsx(Ye,{children:t.jsx(P,{onClick:e,variant:"ghost",children:"Cancel"})})]})},vi=s.dt.div`
|
|
1087
1087
|
${({theme:e,$disabled:n,$show:i})=>`
|
|
1088
1088
|
border-color: ${i?e.palette.error[500]:e.palette.gray[300]};
|
|
1089
1089
|
display: flex;
|
|
@@ -1094,7 +1094,7 @@
|
|
|
1094
1094
|
background: ${n?e.palette.gray[200]:e.palette.white};
|
|
1095
1095
|
}
|
|
1096
1096
|
`}
|
|
1097
|
-
`,Ci=({disabled:e=!1,error:n,label:i,name:
|
|
1097
|
+
`,Ci=({disabled:e=!1,error:n,label:i,name:a,required:r,tooltip:o,register:l,setValue:c,...d})=>{const p=`${a}Max`,u=`${a}Min`,x=g.useRef(null),f=s.$93c38a5e28be6249$export$e50a61c1de9f574(d),{close:h}=f,{groupProps:$,startFieldProps:b,endFieldProps:m,buttonProps:w,dialogProps:j,calendarProps:v}=s.$887cac91b7cc8801$export$12fd5f0e9f4bb192({...d,"aria-label":i??a},f,x),S=g.useCallback(k=>{k&&v.onChange&&v.onChange(k)},[v]);return t.jsxs(V,{error:n,htmlFor:a,label:i,required:r,tooltip:o,children:[t.jsxs(vi,{$disabled:e,$show:n!==void 0,ref:x,children:[t.jsx(se,{buttonProps:w,datePickerRef:x,disabled:e,error:n,fieldProps:{...b,"aria-label":`${b["aria-label"]} ${a}`,validate:k=>m.value&&k>m.value?"Start date must be less than or equal to end date":null},groupProps:$,name:u,register:l,setValue:c}),t.jsx(se,{buttonProps:w,datePickerRef:x,disabled:e,error:n,fieldProps:{...m,"aria-label":`${m["aria-label"]} ${a}`,validate:k=>b.value&&k<b.value?"End date must be greater than or equal to start date":null},groupProps:$,name:p,register:l,setValue:c})]}),f.isOpen&&!e?t.jsx(he,{offset:8,placement:"bottom start",state:f,triggerRef:x,children:t.jsx(Te,{...j,children:t.jsx(zt,{onClose:h,props:{...v,onChange:S}})})}):null]})},Si=s.dt.div`
|
|
1098
1098
|
${({theme:e})=>`
|
|
1099
1099
|
align-items: center;
|
|
1100
1100
|
border-top: 1px solid ${e.palette.gray[200]};
|
|
@@ -1103,32 +1103,32 @@
|
|
|
1103
1103
|
justify-content: center;
|
|
1104
1104
|
padding: ${e.spacing[.5]} ${e.spacing[1.25]};
|
|
1105
1105
|
`}
|
|
1106
|
-
`,
|
|
1106
|
+
`,zi=s.dt.div`
|
|
1107
1107
|
align-items: center;
|
|
1108
1108
|
display: flex;
|
|
1109
1109
|
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1110
1110
|
justify-content: flex-end;
|
|
1111
1111
|
flex: 1 0 0;
|
|
1112
|
-
`,It=({handleTimeChange:e,onClose:n,props:i,timeState:
|
|
1113
|
-
${e?"disabled":""} ${
|
|
1114
|
-
`,children:[n?t.jsx(z,{icon:"user",iconSize:"sm",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":
|
|
1112
|
+
`,It=({handleTimeChange:e,onClose:n,props:i,timeState:a})=>{const r=s.nt(),{locale:o}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),l=s.$131cf43a05231e1e$export$6d095e787d2b5e1f({...i,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:o}),{prevButtonProps:c,nextButtonProps:d,title:p}=s.$9942cad8a072a530$export$3ee915f8151bd4f1(i,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(Si,{children:[t.jsx(C,{color:r.palette.gray[800],fontWeight:"bold",size:"sm",children:"Time"}),t.jsx(zi,{children:t.jsx(vt,{hourCycle:12,label:"time-field",onChange:e,value:a.timeValue})})]}),t.jsx(Ye,{children:t.jsx(P,{onClick:n,variant:"ghost",children:"Cancel"})})]})},Ii=e=>{const{disabled:n=!1,error:i,required:a,label:r,name:o,tooltip:l,register:c,setValue:d,watch:p}=e,u=p==null?void 0:p(o),x=g.useRef(null),f=s.$ab5bf3f618090389$export$87194bb378cc3ac2({...e,granularity:"minute",hourCycle:12,isDisabled:n,isRequired:a,shouldCloseOnSelect:!1,value:s._.isNil(u)||s._.isEmpty(u)||u==="-"?null:s.$fae977aafc393c5c$export$588937bcd60ade55(u.replace(/\//gu,"-"))}),{close:h}=f,{groupProps:$,fieldProps:b,buttonProps:m,dialogProps:w,calendarProps:j}=s.$6057a3d2a53a12fd$export$42df105a73306d51(e,f,x),v=g.useCallback(k=>{j.onChange&&j.onChange(k),d==null||d(o,ki(String(k).replace(/-/gu,"/")))},[j,o,d]),S=g.useCallback(k=>{k&&f.setTimeValue(k)},[f]);return t.jsxs(V,{error:i,htmlFor:o,label:r,required:a,tooltip:l,children:[t.jsx(se,{buttonProps:m,datePickerRef:x,disabled:n,error:i,fieldProps:b,granularity:"minute",groupProps:$,name:o,register:c,setValue:d,value:u}),f.isOpen&&!n?t.jsx(he,{offset:8,placement:"bottom start",state:f,triggerRef:x,children:t.jsx(Te,{...w,children:t.jsx(It,{handleTimeChange:S,onClose:h,props:{...j,onChange:v},timeState:f})})}):null]})},Ti=({children:e,currentValue:n,externalLink:i,isEditing:a,label:r,name:o,tooltip:l})=>{if(a)return t.jsx("div",{children:e});const c=s.lodashExports.isNil(n)?"":n,d=String(i??c);return t.jsxs(y,{children:[t.jsx(Ue,{htmlFor:o,label:r,tooltip:l,weight:"bold"}),d.startsWith("https://")?t.jsx(q,{href:d,children:c}):t.jsx(C,{size:"md",children:c})]})},Ke=({disabled:e=!1,hasIcon:n=!1,helpLink:i,helpLinkText:a,helpText:r,error:o,isValid:l,isTouched:c,label:d,linkPosition:p,name:u,maskValue:x=!1,onPaste:f,placeholder:h,register:$,tooltip:b,type:m="text",weight:w,...j})=>{const{required:v,onBlur:S,onChange:k}=j,T=s.nt(),E=e?void 0:o,F=l&&c&&!e,B=g.useCallback(D=>{D.key==="Enter"&&D.preventDefault()},[]);return t.jsx(V,{error:E,helpLink:i,helpLinkText:a,helpText:r,htmlFor:u,label:d,linkPosition:p,required:v,tooltip:b,weight:w,children:t.jsxs(Z,{className:`
|
|
1113
|
+
${e?"disabled":""} ${E?"error":""} ${F?"success":""}
|
|
1114
|
+
`,children:[n?t.jsx(z,{icon:"user",iconSize:"sm",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":E?"true":"false","aria-label":u,"aria-required":v,autoComplete:"off",className:x?"sr-block":"","data-testid":`${u}-input`,disabled:e,id:u,onKeyDown:B,onPaste:f,placeholder:h,type:m,...$?$(u,{required:v,onBlur:S,onChange:k}):{...j}}),E?t.jsx(z,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:T.palette.error[500],iconSize:"xs"}):void 0,F?t.jsx(z,{icon:"check-circle",iconClass:"success-icon",iconColor:T.palette.success[500],iconSize:"xs"}):void 0]})})},Ni=s.dt(ut)`
|
|
1115
1115
|
white-space: nowrap;
|
|
1116
1116
|
margin-right: ${({theme:e})=>e.spacing[.25]};
|
|
1117
1117
|
text-overflow: ellipsis;
|
|
1118
1118
|
overflow: hidden;
|
|
1119
1119
|
max-width: 80%;
|
|
1120
|
-
`,
|
|
1120
|
+
`,Ei=s.dt.input`
|
|
1121
1121
|
opacity: 0;
|
|
1122
1122
|
position: absolute;
|
|
1123
1123
|
visibility: hidden;
|
|
1124
1124
|
width: 0;
|
|
1125
|
-
`,Pe=(e,n,i)=>{const
|
|
1125
|
+
`,Pe=(e,n,i)=>{const a=new Event(e);return Object.defineProperty(a,"target",{value:{name:n,value:i}}),a},Fi=e=>{const n=e;return n?Array.from(n).map(i=>i.name).join(", "):""},Ri=({accept:e,disabled:n=!1,error:i,label:a,helpLink:r,helpText:o,id:l,multiple:c,name:d,onChange:p,required:u,register:x,setValue:f,tooltip:h,watch:$,weight:b})=>{const m=s.nt(),w=n?void 0:i,j=g.useRef(null),v=$==null?void 0:$(d),S=Fi(v),k=x==null?void 0:x(d,{required:u}),T=g.useCallback(()=>{const B=Pe("change",d,void 0);f&&f(d,""),k&&k.onChange(B)},[k,d,f]),E=g.useCallback(B=>{const{files:D}=B.currentTarget,R=Pe("change",d,D&&D.length>0?D:void 0);p==null||p(R),k&&k.onChange(R)},[k,d,p]),F=g.useCallback(B=>{n?B.preventDefault():j.current&&j.current.click()},[n]);return t.jsxs(V,{error:w,helpLink:r,helpText:o,htmlFor:l??d,label:a,required:u,tooltip:h,weight:b,children:[t.jsxs(Z,{className:`${n?"disabled":""} ${w?"error":""}`,children:[t.jsx(Ni,{$size:"xs",children:S}),t.jsxs(y,{alignItems:"center",display:"flex",gap:.5,children:[s.lodashExports.isEmpty(S)?void 0:t.jsx(W,{color:m.palette.gray[400],height:"20px",icon:"xmark",iconSize:"lg",iconType:"fa-light",onClick:T,variant:"ghost",width:"20px"}),w&&t.jsx(z,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:m.palette.error[500],iconSize:"xs"})]}),t.jsxs(P,{border:n?`1px solid ${m.palette.gray[300]} !important`:"",borderRadius:"0px 8px 8px 0px !important",disabled:n,height:"40px",onClick:F,variant:"primary",width:"96px",children:[t.jsx(z,{icon:"search",iconSize:"sm",mr:.5}),"Add file"]})]}),t.jsx(Ei,{...k&&{ref:k.ref,onBlur:k.onBlur},accept:e,"aria-label":d,"data-testid":d,disabled:n,id:l??d,multiple:c,name:d,onChange:E,onClick:T,ref:j,required:void 0,type:"file",value:void 0})]})},Di=s.dt.input`
|
|
1126
1126
|
border: none;
|
|
1127
1127
|
background: transparent;
|
|
1128
1128
|
min-width: 15rem;
|
|
1129
1129
|
padding: 0;
|
|
1130
1130
|
flex: 1;
|
|
1131
|
-
`,Le=({disabled:e=!1,error:n,field:i,helpLink:
|
|
1131
|
+
`,Le=({disabled:e=!1,error:n,field:i,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:p,placeholder:u,required:x,tooltip:f,value:h,weight:$})=>{const b=s.nt(),m=e?void 0:n,[w,j]=g.useState(""),v=d?h:i==null?void 0:i.value,S=g.useMemo(()=>v&&typeof v=="string"?v.split(",").filter(Boolean):[],[v]),k=g.useCallback(D=>{const A=[...new Set(D.filter(Boolean))].join(","),O=Pe("change",c,A);i&&i.onChange(O),d&&d(O)},[i,c,d]),T=g.useCallback(D=>{j(D.target.value)},[]),E=g.useCallback(D=>{const R=w.trim();R.length&&!S.includes(R)&&(D.preventDefault(),k([...S,R]),j("")),i&&i.onBlur()},[w,i,k,S]),F=g.useCallback(D=>{const R=w.trim();D.key==="Enter"&&R.length===0&&D.preventDefault(),["Enter",","].includes(D.key)&&R.length>0&&!S.includes(R)?(D.preventDefault(),k([...S,R]),j("")):D.key==="Backspace"&&!R.length&&S.length&&(D.preventDefault(),p==null||p(S[S.length-1]),k(S.slice(0,-1)))},[w,p,k,S]),B=g.useCallback(D=>()=>{p==null||p(D),k(S.filter(R=>R!==D))},[p,k,S]);return t.jsx(V,{error:m,helpLink:a,helpLinkText:r,helpText:o,htmlFor:c,label:l,required:x,tooltip:f,weight:$,children:t.jsxs(Z,{$overflowX:"auto",className:`${e?"disabled":""} ${m?"error":""}`,children:[S.map(D=>t.jsx(X,{disabled:e,onClose:B(D),tagLabel:D},D)),t.jsx(Di,{"aria-hidden":!1,"aria-invalid":m?"true":"false","aria-label":c,"aria-required":x,autoComplete:"off",id:c,onBlur:E,onChange:T,onKeyDown:F,placeholder:S.length===0?u:void 0,ref:i==null?void 0:i.ref,type:"text",value:w}),m?t.jsx(z,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:b.palette.error[500],iconSize:"xs"}):void 0]})})},Pi=({disabled:e=!1,control:n,error:i,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:p,placeholder:u,required:x,tooltip:f,value:h,weight:$})=>n?t.jsx(s.Controller,{control:n,name:c,render:({field:b})=>t.jsx(Le,{disabled:e,error:i,field:b,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c,onRemove:p,placeholder:u,required:x,tooltip:f,weight:$}),rules:{required:x}}):t.jsx(Le,{disabled:e,error:i,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c,onChange:d,onRemove:p,placeholder:u,required:x,tooltip:f,value:h,weight:$}),Be=g.forwardRef(function({disabled:n,icon:i,margin:a,onClick:r,...o},l){return t.jsx(bi,{$margin:a,"aria-label":i,className:"action-btn",disabled:n,onClick:r,ref:l,type:"button",...o,children:t.jsx(z,{icon:i,iconClass:"action",iconSize:"xs",iconType:"fa-light"})})}),ve=({error:e,decimalPlaces:n=0,disabled:i=!1,id:a,maxLength:r,max:o=1/0,min:l=0,name:c,onChange:d,placeholder:p,register:u,required:x,setValue:f,value:h})=>{const $=s.nt(),b=i?void 0:e,m=g.useMemo(()=>n<0?0:n,[n]),w=g.useMemo(()=>h===void 0?0:s._.toNumber(h),[h]),j=g.useCallback(()=>{const T=(w-10**-m).toFixed(m);f&&f(c,Math.max(Number(l),Number(T)))},[m,w,l,c,f]),v=g.useCallback(()=>{const T=(w+10**-m).toFixed(m);f&&f(c,Math.min(Number(o),Number(T)>Number(l)?Number(T):Number(l)))},[m,w,o,l,c,f]),S=g.useCallback(T=>{const{value:E}=T.target,F=/\d+/u.test(E)&&!s._.isEmpty(E);f&&f(c,F?Number(E):void 0),d&&d(T)},[c,d,f]),k=g.useCallback(T=>{T.key==="Enter"&&T.preventDefault()},[]);return t.jsxs(Z,{className:`${i?"disabled":""} ${b?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":b?"true":"false","aria-label":c,"aria-required":x,autoComplete:"off",disabled:i,id:a??c,max:o,min:l,onKeyDown:k,placeholder:p,required:x,step:10**-m,type:"number",...u==null?void 0:u(c,{required:x,maxLength:r,max:o,min:l,onChange:S})}),b&&t.jsx(z,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:$.palette.error[500],iconSize:"xs"}),t.jsx(Be,{borderLeft:"inherit",borderRight:"inherit",disabled:i,icon:"minus",margin:"0 -0.625rem 0 0",onClick:j,px:.75,py:.75}),t.jsx(Be,{borderRadius:`0 ${$.spacing[.5]} ${$.spacing[.5]} 0`,disabled:i,icon:"plus",onClick:v,px:.75,py:.75})]})},Tt=({decimalPlaces:e,disabled:n=!1,error:i,helpLink:a,helpText:r,id:o,label:l,linkPosition:c,maxLength:d,max:p,min:u,name:x,onChange:f,placeholder:h,register:$,required:b,setValue:m,tooltip:w,value:j,watch:v,weight:S})=>t.jsx(V,{error:n?void 0:i,helpLink:a,helpText:r,htmlFor:x,label:l,linkPosition:c,maxLength:d,required:b,tooltip:w,weight:S,children:t.jsx(ve,{decimalPlaces:e,disabled:n,error:i,id:o,max:p,maxLength:d,min:u,name:x,onChange:f,placeholder:h,register:$,required:b,setValue:m,value:f?j:v==null?void 0:v(x)})}),Nt=({disabled:e=!1,error:n,name:i,label:a,propsMax:r,propsMin:o,required:l,tooltip:c})=>{const d=`${i}Max`,p=`${i}Min`;return t.jsx(V,{error:n,htmlFor:i,label:a,required:l,tooltip:c,children:t.jsxs(y,{display:"flex",flexDirection:"column",gap:.25,width:"100%",children:[t.jsx(ve,{...o,disabled:e,error:n,name:o.name??p}),t.jsx(ve,{...r,disabled:e,error:n,name:r.name??d})]})})},Li=s.dt.div`
|
|
1132
1132
|
${({theme:e})=>`
|
|
1133
1133
|
align-items: flex-start;
|
|
1134
1134
|
align-self: stretch;
|
|
@@ -1184,7 +1184,7 @@
|
|
|
1184
1184
|
cursor: not-allowed;
|
|
1185
1185
|
}
|
|
1186
1186
|
`}
|
|
1187
|
-
`,
|
|
1187
|
+
`,Mi=s.dt.ul`
|
|
1188
1188
|
${({theme:e})=>`
|
|
1189
1189
|
align-items: flex-start;
|
|
1190
1190
|
box-shadow: ${e.shadows.md};
|
|
@@ -1197,7 +1197,7 @@
|
|
|
1197
1197
|
scrollbar-width: thin;
|
|
1198
1198
|
width: max-content;
|
|
1199
1199
|
`}
|
|
1200
|
-
`,
|
|
1200
|
+
`,Wi=s.dt.li`
|
|
1201
1201
|
${({theme:e})=>`
|
|
1202
1202
|
align-items: center;
|
|
1203
1203
|
background: ${e.palette.white};
|
|
@@ -1221,9 +1221,9 @@
|
|
|
1221
1221
|
overflow: hidden;
|
|
1222
1222
|
text-overflow: ellipsis;
|
|
1223
1223
|
white-space: nowrap;
|
|
1224
|
-
`,te=(e,n,i=!1)=>{
|
|
1225
|
-
${e?"disabled":""} ${
|
|
1226
|
-
`,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":
|
|
1224
|
+
`,te=(e,n,i=!1)=>{g.useEffect(()=>{var r;const a=o=>{e&&!e.contains(o.target)&&n()};return i?(document.addEventListener("click",a,!0),()=>{document.removeEventListener("click",a,!0)}):((r=document.getElementById("root"))==null||r.addEventListener("click",a,!0),()=>{var o;(o=document.getElementById("root"))==null||o.removeEventListener("click",a,!0)})},[i,e,n])},Vi=({disabled:e,error:n,label:i,name:a,placeholder:r,required:o,register:l,tooltip:c,value:d,weight:p})=>{const u=s.nt(),x=g.useRef(null),f=e?void 0:n,[h,$]=g.useState(!1),[b,m]=g.useState(""),{refs:w,floatingStyles:j}=s.useFloating$1({placement:"bottom-start",whileElementsMounted:s.autoUpdate}),{inputValue:v,handlePhoneValueChange:S,country:k,setCountry:T}=s.ee({countries:s.R,defaultCountry:"us",forceDialCode:!0,value:d?String(d):void 0}),E=g.useCallback(()=>{$(R=>!R),h||m("")},[h]),F=g.useCallback(R=>()=>{T(R),$(!1),m("")},[T,$]),B=g.useCallback(R=>{R.key.length===1?m(A=>A+R.key):R.key==="Backspace"&&m(A=>A.slice(0,-1))},[]),D=s.R.filter(R=>{const{name:A}=s.M(R);return A.toLowerCase().includes(b.toLowerCase())});return te(w.floating.current,()=>{$(!1),m("")},!0),t.jsx(V,{error:f,htmlFor:a,label:i,required:o,tooltip:c,weight:p,children:t.jsxs(Li,{className:`${e?"disabled":""} ${f?"error":""}`,ref:x,children:[t.jsxs(Bi,{"aria-label":"country-selector","data-testid":"country-selector",disabled:e,id:"country-selector",onClick:E,onKeyDown:B,ref:w.setReference,children:[t.jsx(s.q,{iso2:k.iso2,size:"16px"}),t.jsx(z,{icon:"angle-down",iconColor:u.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(Z,{className:`${e?"disabled":""} ${f?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":f?"true":"false","aria-label":a,"aria-required":o,autoComplete:"off","data-testid":`${a}-input`,disabled:e,id:a,name:a,placeholder:r,type:"tel",value:v,...l==null?void 0:l(a,{required:o,onChange:S})}),f?t.jsx(z,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:u.palette.error[500],iconSize:"xs"}):void 0]}),h&&_.createPortal(t.jsx(Mi,{ref:w.setFloating,style:j,children:D.map(R=>{const{dialCode:A,iso2:O,name:ae}=s.M(R);return t.jsxs(Wi,{onClick:F(O),value:O,children:[t.jsx(s.q,{iso2:O,size:"16px"}),t.jsx(Ai,{children:ae}),t.jsx(C,{color:u.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+A})]},O)})}),document.getElementById("root")??document.body)]})})},Hi=({disabled:e=!1,error:n,helpLink:i,helpText:a,isTouched:r,isValid:o,label:l,name:c="input-text",id:d,maskValue:p=!1,maxLength:u,placeholder:x,register:f,required:h,rows:$,tooltip:b,watch:m,weight:w})=>{const j=s.nt(),v=m==null?void 0:m(c),S=o&&r&&!e,k=e?void 0:n;return t.jsx(V,{error:k,helpLink:i,helpText:a,htmlFor:c,label:l,maxLength:u,required:h,tooltip:b,value:v?String(v):void 0,weight:w,children:t.jsxs(Z,{className:`
|
|
1225
|
+
${e?"disabled":""} ${k?"error":""} ${S?"success":""}
|
|
1226
|
+
`,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":k?"true":"false","aria-label":c,"aria-required":h,className:p?"sr-block":"","data-testid":`${c}-text-area`,disabled:e,id:d??c,maxLength:u,placeholder:x,rows:$,...f==null?void 0:f(c,{required:h})}),k?t.jsx(z,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:j.palette.error[500],iconSize:"xs"}):void 0,S?t.jsx(z,{icon:"check-circle",iconClass:"success-icon",iconColor:j.palette.success[500],iconSize:"xs"}):void 0]})})},Oi=({description:e,disabled:n,id:i,align:a,inputType:r="text",inputNumberProps:o,minHeight:l,minWidth:c,name:d,placeholder:p,tooltip:u,title:x})=>{const f=g.useMemo(()=>{if(r==="text")return t.jsx(Ke,{disabled:n,name:d,placeholder:p});if(r==="date")return t.jsx(St,{disabled:n,name:d});const{decimalPlaces:h,max:$,min:b}=o??{};return t.jsx(Tt,{decimalPlaces:h,disabled:n,max:$,min:b,name:d,placeholder:p})},[n,o,r,d,p]);return t.jsxs(si,{$align:a,$minHeight:l,$minWidth:c,children:[t.jsx(Se,{description:e,id:i,title:x,tooltip:u}),f]})},_i=s.dt.label`
|
|
1227
1227
|
${({theme:e})=>`
|
|
1228
1228
|
align-items: center;
|
|
1229
1229
|
color: ${e.palette.gray[600]};
|
|
@@ -1295,7 +1295,7 @@
|
|
|
1295
1295
|
fill: ${e.palette.white};
|
|
1296
1296
|
}
|
|
1297
1297
|
`}
|
|
1298
|
-
`,be=
|
|
1298
|
+
`,be=g.forwardRef(function({checked:n,disabled:i=!1,label:a,name:r,onChange:o,onClick:l,onFocus:c,onKeyDown:d,value:p,...u},x){return t.jsxs(_i,{"aria-disabled":i,children:[t.jsx("input",{"aria-checked":n,"aria-disabled":i,"aria-hidden":!1,"aria-label":r,checked:n,disabled:i,id:r,name:r,onChange:o,onClick:l,onFocus:c,onKeyDown:d,ref:x,type:"checkbox",value:p,...u}),t.jsx(z,{disabled:i,icon:"check",iconSize:"sm"}),a??p]})}),Et=({options:e,title:n,checkboxesName:i,defaultCollapsed:a,onChange:r})=>{const o=s.nt(),[l,c]=g.useState(a??!1),d=g.useCallback(()=>{c(p=>!p)},[]);return t.jsxs(y,{"aria-label":n,bgColor:l?o.palette.gray[50]:o.palette.white,border:"1px solid"+o.palette.gray[300],borderRadius:"8px",display:"inline-flex",flexDirection:"column",gap:.625,px:.75,py:.625,role:"region",width:"100%",children:[t.jsxs(y,{alignItems:"center",cursor:"pointer",display:"flex",onClick:d,children:[t.jsx(C,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",children:n}),t.jsx(z,{icon:l?"chevron-up":"chevron-down",iconColor:o.palette.gray[400],iconSize:"xs"})]}),l?t.jsx(y,{display:"flex",gap:.75,wrap:"wrap",children:e.map(p=>t.jsx(y,{border:"1px solid",borderColor:o.palette.gray[300],borderRadius:"4px",px:.5,py:.5,children:t.jsx(be,{checked:p.visible,disabled:p.locked,label:p.name,name:`${i}-${p.name}`,onChange:r,value:p.name})},p.name))}):void 0]})},Ft=(e,n)=>{const[a,r]=g.useState(0),[o,l]=g.useState(0);return g.useEffect(()=>{o===100&&(()=>{r(d=>d===n-1?0:d+1)})()},[o,n]),g.useEffect(()=>{const c=setInterval(()=>{l(d=>d===100?0:d+1)},e);return()=>{clearInterval(c)}},[e]),{cycle:a,progress:o,setCycle:r,setProgress:l}},Rt=({publicId:e,format:n="webp"})=>{const i=g.useMemo(()=>new s.Cloudinary({cloud:{cloudName:"fluid-attacks"}}),[]);return g.useMemo(()=>i.image(e).format(n),[i,e,n])},Ne=e=>{const[n,i]=g.useState(!1),a=g.useCallback(()=>{i(!0)},[]),r=g.useCallback(()=>{i(!1)},[]),o=g.useCallback(()=>{i(l=>!l)},[]);return{close:r,isOpen:n,name:e,open:a,setIsOpen:i,toggle:o}},Gi=({name:e,items:n,columnOrder:i,setColumnOrder:a})=>{const r=g.useMemo(()=>[...n.filter(({locked:u})=>u).map(({locked:u,...x})=>({...x,visible:!0,locked:u})),...n.filter(({locked:u})=>!u)],[n]),[o,l]=g.useState(r),c=g.useCallback(u=>{const x=u.filter(({locked:b})=>!b),h=[...u.filter(({locked:b})=>b),...x],$=h.map(({name:b})=>b);l(b=>[...h,...b.filter(({name:m})=>!$.includes(m))]),a&&a(h.map(({id:b})=>b))},[a]),d=g.useCallback(()=>{const u=o.map(x=>{var h;const f=(i==null?void 0:i.includes(x.id))??!1;return(h=x.toggleVisibility)==null||h.call(x,f),{...x,visible:f}}).toSorted((x,f)=>{const h=(i==null?void 0:i.indexOf(x.id))??0,$=(i==null?void 0:i.indexOf(f.id))??0;return Number(f.visible)!==Number(x.visible)?Number(f.visible)-Number(x.visible):h-$});l(u),a==null||a(i)},[o,i,a]),p=g.useMemo(()=>s.some(o,u=>((i==null?void 0:i.includes(u.id))??!1)!==u.visible),[o,i]);return{setColumns:c,resetToDefault:d,columns:o,...Ne(e),hasChanged:p}},Dt=(e,n)=>g.useMemo(()=>s._.debounce(e,n),[e,n]),Ui=e=>{const[n,i]=g.useState(),a=Dt(r=>{i(r)},(e==null?void 0:e.debounceWait)??300);return[n,a]},Yi=({alt:e="img",height:n="",width:i="",plugins:a=[s.lazyload(),s.placeholder()],publicId:r})=>{const o=Rt({publicId:r});return t.jsx(s.AdvancedImage,{alt:e,cldImg:o,height:n,plugins:a,width:i})},G=g.memo(Yi),Ki=s.dt.label`
|
|
1299
1299
|
${({theme:e})=>`
|
|
1300
1300
|
align-items: center;
|
|
1301
1301
|
display: flex;
|
|
@@ -1374,7 +1374,7 @@
|
|
|
1374
1374
|
}
|
|
1375
1375
|
|
|
1376
1376
|
`}
|
|
1377
|
-
`,qi=s.dt.span.attrs({className:"checkmark"})``,qe=
|
|
1377
|
+
`,qi=s.dt.span.attrs({className:"checkmark"})``,qe=g.forwardRef(function({defaultChecked:n=!1,disabled:i=!1,label:a,name:r,onChange:o,onClick:l,value:c,...d},p){return t.jsxs(Ki,{"aria-disabled":i,"aria-label":r,role:"radiogroup",children:[t.jsx("input",{"aria-checked":n,"aria-disabled":i,"aria-label":r,defaultChecked:n,disabled:i,name:r,onChange:o,onClick:l,ref:p,type:"radio",value:c,...d}),t.jsx(qi,{}),a??null]})}),Xi=({alt:e,imageId:n,icon:i,selectorProps:a,onClick:r,title:o,width:l="fit-content"})=>{const c=s.nt();return t.jsxs(y,{alignItems:"center",border:`1px solid ${c.palette.gray[200]}`,borderColorHover:c.palette.gray[600],borderRadius:c.spacing[.25],display:"inline-flex",padding:[1,1,1,1],shadowHover:"md",width:l,children:[t.jsx(y,{alignSelf:"start",display:"flex",width:"fit-content",children:t.jsx(qe,{name:a.name,onClick:r,value:a.value})}),t.jsxs(y,{alignItems:"center",display:"flex",gap:.5,justify:"space-between",ml:1,mr:1,width:"100%",children:[n===void 0?void 0:t.jsx(G,{alt:e??"card image",height:"32px",publicId:n,width:"32px"}),i===void 0?void 0:t.jsx(z,{icon:i,iconSize:"sm",iconType:"fa-light"}),t.jsx(M,{fontWeight:"bold",lineSpacing:1.75,size:"xs",children:o})]})]})},re=s.dt.div`
|
|
1378
1378
|
${({theme:e})=>`
|
|
1379
1379
|
align-items: center;
|
|
1380
1380
|
background-color: ${e.palette.gray[200]};
|
|
@@ -1424,7 +1424,7 @@
|
|
|
1424
1424
|
background-color: ${({theme:e})=>e.palette.gray[200]};
|
|
1425
1425
|
border: 1px solid ${({theme:e})=>e.palette.gray[200]};
|
|
1426
1426
|
}
|
|
1427
|
-
`,
|
|
1427
|
+
`,Pt=g.forwardRef(function({defaultChecked:n,disabled:i=!1,justify:a,name:r,leftDescription:o,leftDescriptionMinWidth:l,rightDescription:c,...d},p){const u=n===!0?"on":"off",x=typeof o=="object"&&o.on&&o.off?o[u]:o,f=g.useCallback(h=>{h.stopPropagation()},[]);return t.jsxs(y,{alignItems:"center",display:"flex",fontSize:"14px",gap:.75,justify:a,children:[t.jsx(y,{minWidth:l,children:x}),t.jsxs(Ji,{onClick:f,role:"switch",children:[t.jsx("input",{...d,"aria-disabled":i,"aria-label":r,checked:n===!0,disabled:i,name:r,ref:p,type:"checkbox"}),t.jsx(re,{"aria-label":"Toggle Switch",id:`${r}Toggle`,children:t.jsx(Zi,{})})]}),c]})}),Qi=({id:e,title:n,toggles:i,minWidth:a="auto",height:r="auto"})=>{const o=s.nt();return t.jsxs(y,{alignItems:"center",bgColor:o.palette.white,border:`1px solid ${o.palette.gray[200]}`,borderRadius:o.spacing[.25],display:"flex",flexDirection:"column",gap:.5,height:r,justify:"center",minHeight:"100px",minWidth:a,padding:[1.25,1.25,1.25,1.25],children:[t.jsx(Se,{id:e,title:n}),t.jsx(y,{display:"flex",flexDirection:"column",gap:.5,minHeight:"40px",width:"100%",children:i.map(l=>t.jsx(Pt,{...l},`$card-toggle-${l.name}`))})]})},ea=s.dt.div`
|
|
1428
1428
|
position: relative;
|
|
1429
1429
|
margin: auto;
|
|
1430
1430
|
overflow: hidden;
|
|
@@ -1454,7 +1454,7 @@
|
|
|
1454
1454
|
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1455
1455
|
justify-content: center;
|
|
1456
1456
|
margin-top: ${({theme:e})=>e.spacing[2]};
|
|
1457
|
-
`,ra=({slides:e,interval:n=300})=>{const{cycle:i,setCycle:
|
|
1457
|
+
`,ra=({slides:e,interval:n=300})=>{const{cycle:i,setCycle:a,setProgress:r}=Ft(n,e.length),o=g.useCallback(l=>()=>{a(l),r(0)},[a,r]);return t.jsxs(ea,{"aria-roledescription":"carousel",children:[t.jsx(ta,{$currentIndex:i,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(aa,{children:e.map((l,c)=>{const d=`nav-button-${c}`;return t.jsx(ia,{$isActive:c===i,"aria-label":`Go to slide ${c+1}`,"data-testid":c===i?"active":"inactive",onClick:o(c)},d)})})]})},Lt=s.dt.div`
|
|
1458
1458
|
${({theme:e})=>`
|
|
1459
1459
|
background-color: ${e.palette.gray[100]};
|
|
1460
1460
|
border-radius: ${e.spacing[.25]};
|
|
@@ -1524,10 +1524,10 @@
|
|
|
1524
1524
|
background-color: ${e.palette.gray[200]};
|
|
1525
1525
|
}
|
|
1526
1526
|
`}
|
|
1527
|
-
`,
|
|
1527
|
+
`,Bt=({noCodeMessage:e="Code snippet not available",snippet:n,specific:i})=>(g.useEffect(()=>{s.prismExports.highlightAll()},[]),t.jsx(Lt,{"data-private":!0,children:t.jsx("pre",{className:"line-highlight","data-line-offset":s._.isNil(n)||s._.isString(n)?0:n.offset+.7,...i!==void 0?{"data-line":String(Number(i))}:{},children:s._.isNil(n)||s._.isString(n)||s._.isEmpty(n.content)?t.jsx("div",{className:"no-data",children:t.jsx("p",{children:e})}):t.jsx("code",{className:"language-none",children:n.content})})})),sa=({noCodeMessage:e="Code snippet not available",snippet:n,specific:i,variant:a="normal"})=>{const r=s.nt(),[o,l]=g.useState(!1),[c,d]=g.useState(!0),p=g.useCallback(()=>{l(h=>!h)},[l]),u=g.useCallback(()=>{if(s._.isNil(n)||s._.isEmpty(n)||!s._.isString(n))return d(!1),e;const h=n.split(`
|
|
1528
1528
|
`);return h.length>8&&!o?`${[...h].splice(0,7).join(`
|
|
1529
1529
|
`)}
|
|
1530
|
-
${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=
|
|
1530
|
+
${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=g.useMemo(u,[u]),f=g.useCallback(async()=>{await navigator.clipboard.writeText(x)},[x]);return a==="location"?t.jsx(Bt,{noCodeMessage:e,snippet:n,specific:i}):t.jsxs(y,{bgColor:r.palette.gray[100],borderRadius:"4px",display:"inline-flex",minWidth:"565px",position:"relative",children:[t.jsx(Lt,{"data-private":!0,children:t.jsx("pre",{children:t.jsx("code",{className:"language-none",children:x})})}),t.jsxs(oa,{children:[t.jsx(W,{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(P,{onClick:p,variant:"ghost",children:[o?"Show Less":"Show more",t.jsx(z,{icon:o?"chevron-up":"chevron-down",iconColor:r.palette.gray[700],iconSize:"xxs",iconType:"fa-light",ml:.25,onClick:f})]}):!1]})]})},{getVariant:la}=U(e=>({fixed:`
|
|
1531
1531
|
width: 300px;
|
|
1532
1532
|
padding: ${e.spacing[1.25]};
|
|
1533
1533
|
overflow: hidden auto;
|
|
@@ -1555,7 +1555,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
1555
1555
|
display: flex;
|
|
1556
1556
|
justify-content: center;
|
|
1557
1557
|
z-index: 99999;
|
|
1558
|
-
`,ie=s.dt(
|
|
1558
|
+
`,ie=s.dt(y)`
|
|
1559
1559
|
${({theme:e,$size:n})=>`
|
|
1560
1560
|
background-color: ${e.palette.white};
|
|
1561
1561
|
border: 1px solid ${e.palette.gray[200]};
|
|
@@ -1656,7 +1656,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
1656
1656
|
margin-right: 0;
|
|
1657
1657
|
`:""}
|
|
1658
1658
|
}
|
|
1659
|
-
`,
|
|
1659
|
+
`,Mt=({alert:e,modalRef:n,confirmButton:i=void 0,cancelButton:a=void 0})=>{const{close:r}=n,o=g.useCallback(()=>{a!=null&&a.onClick&&a.onClick(),r()},[a,r]),l=g.useCallback(()=>{i!=null&&i.onClick&&i.onClick(),r()},[i,r]);return[i,a].some(d=>!s.lodashExports.isEmpty(d))?t.jsxs(y,{display:"flex",flexDirection:"column",gap:.625,position:"sticky",px:1.25,py:1.25,children:[e,t.jsx(ga,{children:t.jsxs("div",{children:[a&&t.jsx(P,{onClick:o,variant:"tertiary",width:"100%",children:a.text}),i&&t.jsx(P,{onClick:l,variant:"primary",width:"100%",children:i.text})]})})]}):null},xa=s.dt.button`
|
|
1660
1660
|
${({theme:e})=>`
|
|
1661
1661
|
align-items: center;
|
|
1662
1662
|
color: ${e.palette.gray[500]};
|
|
@@ -1728,7 +1728,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
1728
1728
|
}
|
|
1729
1729
|
}
|
|
1730
1730
|
}
|
|
1731
|
-
|
|
1731
|
+
`,ya=s.dt(ee)`
|
|
1732
1732
|
${({theme:e,$variant:n})=>`
|
|
1733
1733
|
align-items: center;
|
|
1734
1734
|
background: ${n==="error"?e.palette.primary[400]:e.palette.warning[500]};
|
|
@@ -1741,14 +1741,14 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
1741
1741
|
width: ${e.spacing[.5]};
|
|
1742
1742
|
height: ${e.spacing[.5]};
|
|
1743
1743
|
`}
|
|
1744
|
-
|
|
1744
|
+
`,$a=s.dt.div`
|
|
1745
1745
|
align-items: center;
|
|
1746
1746
|
color: ${({theme:e})=>e.palette.white};
|
|
1747
1747
|
display: flex;
|
|
1748
1748
|
font-size: 6px;
|
|
1749
1749
|
font-weight: ${({theme:e})=>e.typography.weight.bold};
|
|
1750
1750
|
justify-content: center;
|
|
1751
|
-
`,Wt=
|
|
1751
|
+
`,Wt=g.forwardRef(function({numberIndicator:n,show:i,variant:a="error",...r},o){return t.jsx(ya,{$variant:a,className:i?"flex":"hidden","data-testid":"notification-sign",ref:o,...r,children:n&&t.jsx($a,{children:n<=9?n:9})})}),At=({end:e=!1,label:n,id:i,isActive:a=!1,link:r,notificationSign:o,onClick:l,tooltip:c="",variant:d="primary",tag:p})=>{const{pathname:u}=Re.useLocation(),x=a||(d==="primary"?u.includes(r):u.endsWith(r));return t.jsx(Y,{display:"flex",id:`${i}-tooltip`,tip:c,children:t.jsxs(ba,{$borderButton:x,$variant:d,children:[t.jsxs(Re.NavLink,{end:e,id:i,onClick:l,to:r,children:[n,t.jsx(Wt,{left:o==null?void 0:o.left,numberIndicator:o==null?void 0:o.numberIndicator,show:o==null?void 0:o.show,top:o==null?void 0:o.top,variant:o==null?void 0:o.variant})]}),p===void 0?null:t.jsx(X,{tagLabel:`${p}`,variant:"default"})]})})},Xe=({items:e,borders:n=!0,box:i=!1,variant:a="primary"})=>{const r=s.nt();return t.jsx(y,{alignItems:"center",bgColor:r.palette.white,border:i?"1px solid":void 0,borderBottom:n?`1px solid ${r.palette.gray[300]}`:void 0,borderColor:i?r.palette.gray[200]:void 0,borderRadius:i?r.spacing[.25]:void 0,display:"inline-flex",gap:.25,id:"tablist",padding:i?[0,0,0,0]:void 0,pl:n?1.25:void 0,pr:n?1.25:void 0,role:"tablist",width:i?"max-content":"100%",children:e.map(({end:o,id:l,isActive:c,link:d,label:p,notificationSign:u,onClick:x,tag:f,tooltip:h})=>t.jsx(At,{end:o,id:l,isActive:c,label:p,link:d,notificationSign:u,onClick:x,tag:f,tooltip:h,variant:a},l))})},Vt=({tabItems:e,title:n,description:i,modalRef:a,otherActions:r,onClose:o})=>{const l=s.nt(),c=g.useCallback(()=>{o==null||o(),a.close()},[a,o]);return g.useEffect(()=>{const d=p=>{p.key==="Escape"&&c()};return window.addEventListener("keydown",d),()=>{window.removeEventListener("keydown",d)}},[c]),t.jsxs(t.Fragment,{children:[t.jsxs(da,{children:[t.jsxs(pa,{children:[typeof n=="string"?t.jsx(M,{fontWeight:"bold",lineSpacing:1.75,mr:1,size:"sm",children:n}):n,t.jsxs("div",{className:"items-center flex gap-3",children:[r,t.jsx(W,{icon:"close",iconColor:l.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:c,px:.25,py:.25,variant:"ghost"})]})]}),i&&s.lodashExports.isString(i)&&!s.lodashExports.isEmpty(i)?t.jsx(C,{mt:.5,size:"sm",children:i}):i]}),e&&t.jsx(y,{borderTop:`1px solid ${l.palette.gray[300]}`,display:"block",position:"sticky",children:t.jsx(Xe,{items:e})})]})},Ht=({disabled:e,id:n="modal-confirm",onCancel:i,onConfirm:a="submit",txtCancel:r,txtConfirm:o})=>{const l=a==="submit";return t.jsxs(y,{display:"flex",gap:.75,maxWidth:i?"392px":"190px",mt:1.5,children:[i?t.jsx(P,{id:`${n}-cancel`,justify:"center",onClick:i,variant:"tertiary",width:"100%",children:r??"Cancel"}):void 0,t.jsx(P,{disabled:e,id:n,justify:"center",onClick:l?void 0:a,type:l?"submit":"button",variant:"primary",width:"100%",children:o??"Confirm"})]})},J=g.forwardRef(function({color:n=I.palette.gray[100],mt:i=.5,mb:a=.5,width:r,...o},l){return t.jsx(y,{as:"hr",borderBottom:`1px solid ${n}`,mb:a,mt:i,ref:l,width:r??"100%",...o})}),ma=s.dt.li`
|
|
1752
1752
|
${({theme:e})=>`
|
|
1753
1753
|
align-items: center;
|
|
1754
1754
|
background-color: ${e.palette.white};
|
|
@@ -1795,7 +1795,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
1795
1795
|
background-color: ${e.palette.gray[100]};
|
|
1796
1796
|
}
|
|
1797
1797
|
`}
|
|
1798
|
-
`,
|
|
1798
|
+
`,Ot=s.dt.ul`
|
|
1799
1799
|
${({theme:e})=>`
|
|
1800
1800
|
background-color: ${e.palette.white};
|
|
1801
1801
|
border: 1px solid ${e.palette.gray[200]};
|
|
@@ -1806,7 +1806,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
1806
1806
|
min-width: 240px;
|
|
1807
1807
|
padding: ${e.spacing[.25]} 0 ${e.spacing[.25]} 0;
|
|
1808
1808
|
`}
|
|
1809
|
-
|
|
1809
|
+
`,ye=({children:e,disabled:n=!1,icon:i,iconType:a="fa-light",href:r,onClick:o,onClickIcon:l,onKeyDown:c,rightIcon:d,selected:p=!1,value:u,...x})=>{const h=s.nt().palette.gray[n?300:800],$=n?g.Children.map(e,b=>g.isValidElement(b)?g.cloneElement(b,{disabled:n,...b.props}):b):e;return t.jsxs(ma,{"aria-disabled":n,"aria-label":u,"aria-selected":p,"data-testid":u,onClick:o,onKeyDown:c,value:u,...x,children:[i!==void 0||u!==void 0?t.jsxs(y,{alignItems:"center",display:"flex",gap:.625,children:[i?t.jsx(z,{disabled:n,icon:i,iconColor:h,iconSize:"xxs",iconType:a}):null,r===void 0?$:t.jsx(q,{href:r,children:$})]}):null,p||d?t.jsx(z,{disabled:n,icon:d??"check",iconClass:"selected",iconColor:h,iconSize:"xs",iconType:a,onClick:l}):null]})},wa=s.dt(ye)`
|
|
1810
1810
|
margin-top: 10px;
|
|
1811
1811
|
border: 1px solid ${({theme:e})=>e.palette.gray[300]};
|
|
1812
1812
|
border-radius: 4px;
|
|
@@ -1824,7 +1824,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
1824
1824
|
&[aria-selected="true"]:not([aria-disabled="true"]) {
|
|
1825
1825
|
background-color: unset;
|
|
1826
1826
|
}
|
|
1827
|
-
`,_t=({items:e,onReorder:n,title:i,description:
|
|
1827
|
+
`,_t=({items:e,onReorder:n,title:i,description:a,onClickClose:r})=>{const o=g.useCallback(l=>()=>{r(l)},[r]);return t.jsxs(s.ReorderGroup,{as:"div",axis:"y",layoutScroll:!0,onReorder:n,style:{height:"max-content",padding:"1.25rem 0",width:"45%"},values:e,children:[t.jsxs(y,{display:"flex",gap:.25,children:[t.jsx(M,{display:"flex",size:"xs",children:i}),t.jsx(X,{priority:"high",tagLabel:String(e.filter(l=>l.visible).length),variant:"error"})]}),t.jsx(C,{size:"sm",children:a}),e.map(l=>l.visible?t.jsx(s.ReorderItem,{as:"div",dragListener:!l.locked,item:l.name,value:l,children:t.jsx(wa,{disabled:l.locked,icon:"grid-2",label:l.name,onClickIcon:o(l.id),rightIcon:l.locked?"lock":"close",selected:l.visible,value:l.name,children:l.name})},l.name):void 0)]})},ja=s.dt(ye)`
|
|
1828
1828
|
padding: 7px 8px;
|
|
1829
1829
|
|
|
1830
1830
|
&[aria-selected="true"] {
|
|
@@ -1840,7 +1840,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
1840
1840
|
display: none;
|
|
1841
1841
|
}
|
|
1842
1842
|
}
|
|
1843
|
-
`,
|
|
1843
|
+
`,Gt=e=>e.reduce((i,a)=>a.group?i[a.group]?{...i,[a.group]:[...i[a.group],a]}:{...i,[a.group]:[a]}:i,{}),ka=s.dt.input`
|
|
1844
1844
|
${({theme:e})=>`
|
|
1845
1845
|
background: none;
|
|
1846
1846
|
border: none !important;
|
|
@@ -1870,7 +1870,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
1870
1870
|
display:none;
|
|
1871
1871
|
}
|
|
1872
1872
|
`}
|
|
1873
|
-
`,
|
|
1873
|
+
`,va=s.dt.div`
|
|
1874
1874
|
${({theme:e})=>`
|
|
1875
1875
|
align-items: center;
|
|
1876
1876
|
background-color: ${e.palette.white};
|
|
@@ -1890,25 +1890,25 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
1890
1890
|
border: 2px solid ${e.palette.black};
|
|
1891
1891
|
}
|
|
1892
1892
|
`}
|
|
1893
|
-
`,
|
|
1893
|
+
`,Ca=s.dt.div`
|
|
1894
1894
|
${({theme:e})=>`
|
|
1895
1895
|
background-color: ${e.palette.white};
|
|
1896
1896
|
border-radius: ${e.spacing[.5]};
|
|
1897
1897
|
width: 250px;
|
|
1898
1898
|
`}
|
|
1899
|
-
`,Q=
|
|
1899
|
+
`,Q=g.forwardRef(function({name:n,smallSearch:i=!1,onClear:a,value:r,...o},l){const c=s.nt(),[d,p]=g.useState(!1),{refs:u,floatingStyles:x}=s.useFloating$1(),f=g.useCallback(()=>{p(b=>!b)},[]),h=g.useCallback(b=>{b.key==="Enter"&&b.preventDefault()},[]);te(u.floating.current,()=>{p(!1)},!0);const $=t.jsxs(va,{children:[t.jsx(z,{icon:"magnifying-glass",iconColor:c.palette.gray[700],iconSize:"xs",iconType:"fa-light"}),t.jsx(ka,{...o,id:n,name:n,onKeyDown:h,ref:l,type:"search",value:r}),!s.lodashExports.isEmpty(r)&&t.jsx(W,{icon:"xmark",iconColor:c.palette.gray[300],iconSize:"xs",iconType:"fa-light",onClick:a,px:.25,py:.25,type:"reset",variant:"ghost"})]});return i?t.jsxs(g.Fragment,{children:[t.jsx(W,{border:`1px solid ${c.palette.gray[300]} !important`,icon:"magnifying-glass",iconSize:"xs",iconType:"fa-light",onClick:f,ref:u.setReference,variant:"ghost"}),d?t.jsx(Ca,{ref:u.setFloating,style:x,children:$}):void 0]}):$}),Ut=({columns:e,formId:n,onChangeHandler:i,variant:a})=>{const r=g.useRef(null),[o,l]=g.useState([]),[c,d]=g.useState(""),p=g.useCallback(x=>{const{value:f}=x.target;d(f)},[]),u=g.useCallback(()=>{r.current&&(r.current.reset(),d(""))},[r]);return g.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(y,{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(Q,{name:"search",onChange:p,onClear:u,value:c})}),t.jsx("form",{"data-testid":n,id:n,onReset:u,style:{display:"flex",flexDirection:"column",gap:"0.625rem"},children:Object.entries(Gt(o)).map(([x,f],h)=>{const $=`li-checkbox${x}`;return t.jsx(Et,{checkboxesName:x,defaultCollapsed:h===0,onChange:i,options:f,title:x},$)})})]}):t.jsxs(y,{height:"100%",id:"columns-buttons",py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:r,children:t.jsx(Q,{name:"search",onChange:p,onClear:u,value:c})}),t.jsx("form",{"data-testid":n,id:n,onReset:u,style:{paddingTop:"0.625rem"},children:o.map(x=>{const f=`li-checkbox-${x.name}`;return t.jsx(ja,{selected:x.visible,value:f,width:"content",children:t.jsx(be,{checked:x.visible,disabled:x.locked,label:x.name,name:x.name,onChange:i,value:x.name})},f)})})]})},Sa=({_containerId:e="portals",title:n,modalRef:i,variant:a})=>{const r=s.nt(),o=g.useRef(null),[l,c]=g.useState(void 0),d=g.useCallback(x=>{const{checked:f,value:h}=x.target,$=i.columns.map(b=>{var m;return b.name===h?((m=b.toggleVisibility)==null||m.call(b,f),{...b,visible:f}):b});i.setColumns($)},[i]),p=g.useCallback(x=>{const f=i.columns.map(h=>{var $;return h.id===x?(($=h.toggleVisibility)==null||$.call(h,!1),{...h,visible:!1}):h});i.setColumns(f)},[i]),u=g.useCallback(()=>{var f;const x=(f=o.current)==null?void 0:f.scrollHeight;l!==x&&c(x)},[l]);return i.isOpen?_.createPortal(t.jsx(ne,{"aria-label":i.name,"aria-modal":"true",children:t.jsxs(ie,{$size:"md",flexDirection:"column",children:[t.jsxs(y,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(M,{size:"sm",children:n}),t.jsx(W,{icon:"close",iconColor:r.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:i.close,px:.25,py:.25,variant:"ghost"})]}),t.jsx(J,{mb:0,mt:0}),t.jsxs(y,{display:"flex",gap:1.25,onScroll:u,px:1.25,ref:o,scroll:"y",width:"100%",children:[t.jsx(Ut,{columns:i.columns,formId:"columns-visibility",onChangeHandler:d,variant:a}),t.jsx(y,{borderLeft:`2px solid ${r.palette.gray[100]}`,height:l?`${l}px`:"auto"}),t.jsx(_t,{description:"Click and drag to reorder the columns",items:i.columns,onClickClose:p,onReorder:i.setColumns,title:"Reorder columns"})]}),t.jsx(J,{mb:0,mt:0}),t.jsxs(y,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(P,{disabled:!i.hasChanged,form:"columns-visibility",id:"columns-modal-cancel",justify:"center",onClick:i.resetToDefault,type:"reset",variant:"tertiary",children:"Reset to default"}),t.jsx(P,{id:"columns-modal-submit",justify:"center",onClick:i.close,variant:"primary",children:"Save"})]})]})}),document.getElementById(e)??document.body):t.jsx("div",{})},za=s.dt(ye)`
|
|
1900
1900
|
padding: 8px;
|
|
1901
1901
|
min-width: unset;
|
|
1902
|
-
`,
|
|
1902
|
+
`,Me=s.dt(ye)`
|
|
1903
1903
|
padding: 7px 8px;
|
|
1904
1904
|
|
|
1905
1905
|
svg.fa-check {
|
|
1906
1906
|
border-radius: 2px;
|
|
1907
1907
|
}
|
|
1908
|
-
`,
|
|
1908
|
+
`,Yt=s.dt(W)`
|
|
1909
1909
|
background-color: ${({theme:e})=>e.palette.white};
|
|
1910
1910
|
color: ${({theme:e})=>e.palette.gray[400]};
|
|
1911
|
-
`,
|
|
1911
|
+
`,Kt=({option:e,register:n})=>{var i,a;switch(e.type){case"checkboxes":return t.jsx("div",{style:{overflowY:"auto",maxHeight:"280px"},children:(i=e.options)==null?void 0:i.map(o=>t.jsx(Me,{value:o.value,width:"content",children:t.jsx(be,{...n("checkbox"),label:o.label,value:o.value})},`li-checkbox-${o.value}`))});case"radioButton":return t.jsx("div",{style:{overflowY:"auto",maxHeight:"280px"},children:(a=e.options)==null?void 0:a.map(o=>t.jsx(Me,{value:o.value,width:"content",children:t.jsx(qe,{...n("radio"),label:o.label,value:o.value})},`li-radio-${o.value}`))});case"text":const r=`text.${String(e.key)}-${e.filterFn??"caseInsensitive"}`;return t.jsx(Ke,{label:e.label,name:r,register:n,value:e.value});case"numberRange":return t.jsx(Nt,{label:e.label,name:String(e.key),propsMax:{label:"Max",register:n,name:"maxValue",value:e.maxValue},propsMin:{label:"Min",register:n,name:"minValue",value:e.minValue}});default:return t.jsx("div",{})}},We=({options:e,onSubmit:n,id:i,open:a})=>{var h,$,b,m,w;const[r,o]=g.useState(e),{register:l,handleSubmit:c,setValue:d}=s.useForm({defaultValues:{checkbox:e.filter(j=>j.type==="checkboxes").flatMap(j=>{var v;return((v=j.options)==null?void 0:v.filter(S=>S.checked).map(S=>S.value))??[]}),radio:((b=($=(h=e.find(j=>j.type==="radioButton"))==null?void 0:h.options)==null?void 0:$.find(({checked:j})=>j))==null?void 0:b.value)??"",text:e.filter(j=>j.type==="text").reduce((j,v)=>({...j,[`${String(v.key)}-${v.filterFn??"caseInsensitive"}`]:v.value??""}),{}),minValue:(m=e.find(j=>j.type==="numberRange"))==null?void 0:m.minValue,maxValue:(w=e.find(j=>j.type==="numberRange"))==null?void 0:w.maxValue}}),p=e.some(j=>j.type==="checkboxes"),u=g.useCallback(j=>{const{value:v}=j.target,S=e.map(k=>{var T;return k.type==="checkboxes"?{...k,options:(T=k.options)==null?void 0:T.filter(E=>{var F;return((F=E.label)==null?void 0:F.toLowerCase().includes(v.toLowerCase()))??E.value.toLowerCase().includes(v.toLowerCase())})}:k});o(S)},[e]),x=g.useCallback(j=>{n&&n(j)},[n]);g.useEffect(()=>{var j,v,S,k,T;o(e),d("checkbox",e.filter(E=>E.type==="checkboxes").flatMap(E=>{var F;return((F=E.options)==null?void 0:F.filter(B=>B.checked).map(B=>B.value))??[]})),d("radio",((S=(v=(j=e.find(E=>E.type==="radioButton"))==null?void 0:j.options)==null?void 0:v.find(({checked:E})=>E))==null?void 0:S.value)??""),d("text",e.filter(E=>E.type==="text").reduce((E,F)=>({...E,[`${String(F.key)}-${F.filterFn??"caseInsensitive"}`]:F.value??""}),{})),d("minValue",(k=e.find(E=>E.type==="numberRange"))==null?void 0:k.minValue),d("maxValue",(T=e.find(E=>E.type==="numberRange"))==null?void 0:T.maxValue)},[e,d]);const f=t.jsx(ne,{$bgColor:"transparent",children:t.jsxs(ie,{$size:"fixed",flexDirection:"column",gap:1.25,children:[p&&t.jsx(Q,{onChange:u}),t.jsxs("form",{id:i,onSubmit:c(x),children:[r.map((j,v)=>{const S=`${j.type}-${j.value}-${j.filterFn??"default"}`;return t.jsxs("div",{children:[t.jsx(Kt,{option:j,register:l}),v<r.length-1&&t.jsx("hr",{style:{margin:"1.25rem 0 0.625rem"}})]},S)}),t.jsx(P,{mt:1,type:"submit",children:"Apply"})]})]})});return a?_.createPortal(f,document.getElementById("portals")??document.body):t.jsx("div",{})},Ce=({options:e,variant:n,onApplyFilters:i})=>{const a=s.nt(),[r,o]=g.useState(e),[l,c]=g.useState([]),[d,p]=g.useState({}),[u,x]=g.useState(""),f=g.useCallback(b=>()=>{const m=r.find(w=>w.label===b);x(b),c((m==null?void 0:m.filterOptions)??[])},[r]),h=g.useCallback(b=>{const m=[...b.checkbox,...Object.values(b.text??{}),...b.radio?[b.radio]:[],...b.minValue?[String(b.minValue)]:[],...b.maxValue?[String(b.maxValue)]:[]];p(k=>m.length>0?{...k,[u]:m}:k);const w=k=>{var T,E;return{...k,options:(T=k.options)==null?void 0:T.map(F=>({...F,checked:b.checkbox.includes(F.value)||b.radio===F.value})),value:k.type==="text"?((E=b.text)==null?void 0:E[`${String(k.key)}-${k.filterFn??"caseInsensitive"}`])??k.value:k.value,minValue:k.type==="numberRange"?b.minValue:k.minValue,maxValue:k.type==="numberRange"?b.maxValue:k.maxValue}},j=k=>k.label===u?{...k,filterOptions:k.filterOptions.map(w)}:k,v=r.map(j);o(k=>k.map(j));const S=v.flatMap(({filterOptions:k})=>k);i(S),c([])},[r,i,u]),$=g.useCallback((b,m)=>{const w=`li-filter-option-${b}`;return t.jsxs(za,{icon:m,onClick:f(b),value:w,width:"100%",children:[b,d[b]===void 0?void 0:t.jsx(X,{tagLabel:d[b].length.toString()})]},w)},[d,f]);return g.useEffect(()=>{const b=e.reduce((m,{label:w,filterOptions:j})=>{const v=j.flatMap(({value:T,minValue:E,maxValue:F})=>[E,F,T]).filter(Boolean),S=j.flatMap(({options:T})=>T??[]).filter(({checked:T=!1})=>T).map(({value:T})=>T),k=[...v,...S];return k.length===0?m:{...m,[w]:k}},{});p(b)},[e]),n==="grouped"?t.jsxs(y,{flexGrow:1,position:"relative",zIndex:80,children:[Object.entries(Gt(e)).map(([b,m])=>t.jsxs(y,{width:"100%",children:[t.jsx(C,{color:a.palette.gray[400],mb:.25,size:"sm",children:b}),m.map(({label:w,icon:j="filter-list"})=>$(w,j))]},b)),t.jsx(We,{id:"filters-options",onSubmit:h,open:l.length>0,options:l})]}):t.jsxs(y,{flexGrow:1,children:[e.map(({label:b,icon:m="filter-list"})=>$(b,m)),t.jsx(We,{id:"filters-options",onSubmit:h,open:l.length>0,options:l})]})},qt=({_containerId:e="portals",options:n,onApplyFilters:i,modalRef:a})=>a.isOpen?_.createPortal(t.jsx(ne,{$bgColor:"transparent","aria-label":a.name,"aria-modal":"true",children:t.jsxs(ie,{$size:"fixed",alignItems:"start",display:"flex",flexDirection:"row",gap:.5,position:"relative",children:[t.jsx(Ce,{onApplyFilters:i,options:n,variant:"ungrouped"}),t.jsx(Yt,{icon:"close",iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:a.close,variant:"ghost"})]})}),document.getElementById(e)??document.body):t.jsx("div",{}),Ia=({_containerId:e="portals",rightColumnOptions:n,leftColumnOptions:i,variant:a,onApplyFilters:r,modalRef:o})=>o.isOpen?_.createPortal(t.jsx(ne,{$bgColor:"transparent","aria-label":o.name,"aria-modal":"true",children:t.jsxs(ie,{$size:"lg",alignItems:"start",flexDirection:"row",gap:1,position:"relative",px:1.25,py:1.25,children:[t.jsxs(y,{display:"flex",flexGrow:1,gap:1,justify:"space-between",children:[t.jsx(Ce,{onApplyFilters:r,options:i,variant:a}),t.jsx(Ce,{onApplyFilters:r,options:n,variant:a})]}),t.jsx(Yt,{icon:"close",iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:o.close,variant:"ghost"})]})}),document.getElementById(e)??document.body):t.jsx("div",{}),Ta=(e,n)=>{function i(l,c){if(c.value===""||c.value===void 0||s._.defaultTo(c.isBackFilter,!1))return!0;switch(c.filterFn){case"includesInsensitive":return String(l[c.key]).toLowerCase().includes(c.value.toLowerCase());case"caseInsensitive":case void 0:default:return String(l[c.key]).toLowerCase()===c.value.toLowerCase()}}function a(l,c){if(!c.options||c.options.length===0)return!0;const d=c.options.filter(p=>p.checked).map(p=>p.value);return d.length===0?!0:d.includes(String(l[c.key]))}function r(l,c){const d=Number(l[c.key]),{minValue:p,maxValue:u}=c,x=s._.isEmpty(p)?void 0:p,f=s._.isEmpty(u)?void 0:u;return x===void 0&&f===void 0?!0:(x??-1/0)<=d&&d<=(f??1/0)}function o(l){return n.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);case"text":default:return i(l,c)}})}return e.filter(o)},Na=({dataset:e,key:n,options:i,setFilteredDataset:a})=>{const r=Ne("filters-modal"),[o,l]=g.useState([]);g.useEffect(()=>{const p=localStorage.getItem(n);p&&l(JSON.parse(p))},[n]);const c=i.map(p=>({...p,filterOptions:p.filterOptions.map(u=>o.find(f=>f.key===u.key&&f.type===u.type&&f.filterFn===u.filterFn)??{...u})})),d=g.useCallback(p=>{l([...p]),localStorage.setItem(n,JSON.stringify(p))},[l,n]);return g.useEffect(()=>{a(Ta(e,o))},[e,o,a]),t.jsxs(g.Fragment,{children:[t.jsx(y,{alignItems:"center",display:"flex",gap:.25,maxWidth:"100%",wrap:"wrap",children:t.jsx(y,{pr:.25,children:t.jsx(P,{icon:"filter",id:"filterBtn",onClick:r.toggle,variant:"ghost"})})}),t.jsx(qt,{modalRef:r,onApplyFilters:d,options:c})]})},Xt=({_portal:e=!0,alert:n,cancelButton:i=void 0,children:a=void 0,confirmButton:r=void 0,content:o=void 0,description:l="",modalRef:c,otherActions:d=void 0,onClose:p=void 0,tabItems:u,title:x="",size:f,id:h="modal-container"})=>{const $=()=>t.jsx(ne,{"aria-label":c.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs(ie,{$size:f,"data-testid":h,flexDirection:"column",id:h,children:[!s._.isEmpty(x)&&t.jsx(Vt,{description:l,modalRef:c,onClose:p,otherActions:d,tabItems:u,title:x}),(s._.isObject(o)||a)&&t.jsxs(ca,{children:[a,s._.isObject(o)&&s._.isString(o.imageSrc)&&t.jsx(ua,{$framed:o.imageFramed,children:t.jsx(G,{alt:"modal-img",publicId:o.imageSrc})}),s._.isObject(o)&&s._.isString(o.imageText)&&t.jsx(C,{size:"sm",children:o.imageText})]}),t.jsx(Mt,{alert:n,cancelButton:i,confirmButton:r,modalRef:c})]})});return e&&c.isOpen?_.createPortal($(),document.getElementById("portals")??document.body):c.isOpen?$():null},Ea=()=>{const[e,n]=g.useState(!1),[i,a]=g.useState(),r=g.useRef(null),o=Ne("confirm-dialog-modal"),l=g.useCallback(async u=>(a(u),n(!0),new Promise(x=>{r.current=x})),[]),c=g.useCallback(()=>{var u;n(!1),a(void 0),(u=r.current)==null||u.call(r,!0)},[]),d=g.useCallback(()=>{var u;n(!1),a(void 0),(u=r.current)==null||u.call(r,!1)},[]);return g.useEffect(()=>{o.setIsOpen(e)},[e,o]),{ConfirmDialog:({id:u="confirm-dialog-modal",children:x})=>t.jsx(Xt,{id:u,modalRef:{...o,close:d},size:"sm",title:i==null?void 0:i.title,children:t.jsxs(y,{display:"flex",flexDirection:"column",children:[x,i==null?void 0:i.message,t.jsx(Ht,{id:i==null?void 0:i.id,onCancel:d,onConfirm:c})]})}),confirm:l}},Fa=s.dt.button`
|
|
1912
1912
|
display: flex;
|
|
1913
1913
|
position: relative;
|
|
1914
1914
|
height: 32px;
|
|
@@ -1972,7 +1972,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
1972
1972
|
}
|
|
1973
1973
|
}
|
|
1974
1974
|
`}
|
|
1975
|
-
`,Ae=({containerRef:e,id:n})=>{const i=s.nt(),
|
|
1975
|
+
`,Ae=({containerRef:e,id:n})=>{const i=s.nt(),a=n==="desktop"?380:342,r=g.useCallback(l=>()=>{if(e!=null&&e.current){const{current:c}=e;c.scrollBy({left:l==="right"?a:-a,behavior:"smooth"})}},[e,a]),o=g.useCallback(l=>t.jsxs(Fa,{onClick:r(l),children:[t.jsx(z,{clickable:!0,icon:`circle-arrow-${l}`,iconClass:"hovered",iconColor:i.palette.gray[800],iconSize:"md",iconType:"fa-solid"}),t.jsx(z,{clickable:!0,icon:`circle-arrow-${l}`,iconClass:"uncover",iconColor:i.palette.gray[800],iconSize:"md",iconType:"fa-light"})]}),[r,i]);return t.jsxs(y,{alignItems:"center",display:"flex",gap:1,id:n,width:"max-content",children:[o("left"),o("right")]})},Ve=({tag:e,tagPosition:n})=>{const i=s.nt();return e?t.jsx(y,{alignItems:"center",bgColor:i.palette.white,borderRadius:"8px",display:"flex",justify:"center",margin:n==="top"?[.75,.75,.75,.75]:void 0,padding:[.25,.5,.25,.5],position:n==="top"?"absolute":"relative",top:"0",width:"max-content",children:t.jsx(C,{color:i.palette.gray[900],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:e})}):null},Zt=({eventDate:e})=>{const n=s.nt(),i=s.lodashExports.isEmpty(e)?null:e==null?void 0:e.split("-");if(i){const[a,r]=i;return t.jsxs(y,{alignItems:"center",bgColor:n.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(M,{fontWeight:"semibold",lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:a}),t.jsx(C,{color:n.palette.gray[800],fontWeight:"semibold",lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:r.toUpperCase()})]})}return null},Da=s.dt.div`
|
|
1976
1976
|
${({theme:e})=>`
|
|
1977
1977
|
align-items: flex-start;
|
|
1978
1978
|
display: flex;
|
|
@@ -2017,7 +2017,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2017
2017
|
}
|
|
2018
2018
|
}
|
|
2019
2019
|
`}
|
|
2020
|
-
`,
|
|
2020
|
+
`,Jt=({author:e,buttonText:n,description:i,eventDate:a,href:r,imageId:o,mode:l="light",publishDate:c,readingTime:d,tag:p,tagPosition:u="top",title:x})=>{const f=s.nt(),h=c==null?void 0:c.split("-"),$=l==="dark",b=t.jsxs(Da,{"data-testid":`content-card-${x}`,children:[o||a||p&&u==="top"?t.jsxs(y,{id:"card-image",position:"relative",children:[o&&t.jsx(G,{publicId:o}),u==="top"&&t.jsx(Ve,{tag:p,tagPosition:u}),t.jsx(Zt,{eventDate:a})]}):void 0,t.jsxs(y,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.5,id:"card-content",children:[u==="bottom"&&t.jsx(Ve,{tag:p,tagPosition:u}),e||h||d?t.jsxs(y,{display:"flex",justify:"space-between",width:"100%",children:[e&&h&&t.jsx(C,{color:f.palette.gray[$?300:400],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:e+` • ${h[0]} ${h[1]}, ${h[2]}`}),d&&t.jsxs(y,{alignItems:"center",display:"flex",gap:.25,justify:"center",minWidth:"60px",children:[t.jsx(z,{icon:"eye",iconColor:f.palette.gray[$?300:400],iconSize:"xs",iconType:"fa-light"}),t.jsx(C,{color:f.palette.gray[$?300:400],size:"sm",sizeSm:"xs",textAlign:"right",children:d})]})]}):void 0,t.jsx(M,{className:`title-${l}`,color:$?f.palette.white:f.palette.gray[800],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:x}),i&&t.jsx(C,{color:f.palette.gray[$?100:600],size:"md",sizeSm:"sm",children:i}),n&&r&&t.jsx(P,{href:r,variant:"link",children:n})]})]});return r?t.jsx("a",{className:"flex w-fit",href:r,rel:"noopener noreferrer",target:"_self",children:b}):b},Pa=({description:e,items:n,title:i,titleHighlighted:a})=>{const r=g.useRef(null);return t.jsxs(Ra,{"data-testid":"content-card-carousel",children:[t.jsxs(y,{alignItems:"flex-start",display:"flex",justify:"space-between",children:[t.jsxs(y,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.625,maxWidth:"800px",children:[t.jsxs(M,{display:"inline",fontWeight:"semibold",lineSpacing:2.25,lineSpacingSm:1.75,size:"lg",sizeSm:"md",children:[i+" "," ",t.jsx("span",{className:"inline",children:a})]}),t.jsx(C,{lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:e})]}),t.jsx(Ae,{containerRef:r,id:"desktop"})]}),t.jsx(y,{alignSelf:"stretch",display:"flex",id:"carousel",pb:1,pr:2.25,ref:r,scroll:"x",children:t.jsx(y,{alignItems:"flex-start",display:"flex",gap:1.5,width:"max-content",children:n.map((o,l)=>t.jsx(Jt,{...o},`${l}-${o.title}`))})}),t.jsx(Ae,{containerRef:r,id:"mobile"})]})},He=({buttonProps:e,variant:n})=>t.jsx(P,{onClick:e.onClick,variant:n,children:e.text}),La=s.dt.div`
|
|
2021
2021
|
display: flex;
|
|
2022
2022
|
flex-direction: column;
|
|
2023
2023
|
align-items: center;
|
|
@@ -2038,7 +2038,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2038
2038
|
> img {
|
|
2039
2039
|
width: 100%;
|
|
2040
2040
|
}
|
|
2041
|
-
`,
|
|
2041
|
+
`,Ma=s.dt.div`
|
|
2042
2042
|
display: flex;
|
|
2043
2043
|
flex-direction: row;
|
|
2044
2044
|
margin: 0;
|
|
@@ -2051,7 +2051,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2051
2051
|
> *:last-child {
|
|
2052
2052
|
margin-right: 0;
|
|
2053
2053
|
}
|
|
2054
|
-
`,lt={md:{description:"md",title:"lg"},sm:{description:"sm",title:"xs"}},
|
|
2054
|
+
`,lt={md:{description:"md",title:"lg"},sm:{description:"sm",title:"xs"}},Wa=({cancelButton:e=void 0,confirmButton:n=void 0,description:i,imageSrc:a="integrates/empty/addRoot",padding:r=1.25,title:o,size:l="md"})=>{const c=(n??e)!==void 0;return t.jsxs(La,{$padding:r,children:[t.jsx(Ba,{children:t.jsx(G,{alt:"empty-icon",publicId:a})}),t.jsx(M,{fontWeight:"bold",lineSpacing:1.75,mb:.25,size:lt[l].title,textAlign:"center",children:o}),t.jsx(C,{mb:c?2:void 0,size:lt[l].description,textAlign:"center",children:i}),c?t.jsxs(Ma,{children:[e&&t.jsx(He,{buttonProps:e,variant:"tertiary"}),n&&t.jsx(He,{buttonProps:n,variant:"primary"})]}):void 0]})},Aa=({children:e})=>{const n=s.useFormContext();return e(n)},Va=s.dt.form`
|
|
2055
2055
|
${({theme:e})=>`
|
|
2056
2056
|
align-items: flex-start;
|
|
2057
2057
|
align-self: stretch;
|
|
@@ -2061,14 +2061,14 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2061
2061
|
overflow: hidden auto;
|
|
2062
2062
|
width: 100%;
|
|
2063
2063
|
`}
|
|
2064
|
-
`,
|
|
2064
|
+
`,Ha=({alert:e,cancelLabel:n,children:i,id:a="modal-confirm",mode:r,onCancel:o,onSubmit:l,showButtons:c=!0,submitLabel:d,submitDisabled:p=!1,yupSchema:u,...x})=>{const f=s.nt(),h=s.useForm({...x,mode:r??"all",resolver:u?s.o(u):void 0}),{control:$,getValues:b,setValue:m,register:w,watch:j,formState:{errors:v,isValid:S,dirtyFields:k}}=h,T=E=>g.Children.map(E,F=>{var B;if(F&&g.isValidElement(F)){const D=F.props.children,R=F.props.name?g.createElement(F.type,{...F.props,control:$,error:(B=v[F.props.name])==null?void 0:B.message,isValid:S,isTouched:k[F.props.name],register:w,setValue:m,value:b(F.props.name),watch:j,key:F.props.name}):F;return D?g.createElement(R.type,{...R.props,children:T(D)}):R}return F});return t.jsx(s.FormProvider,{...h,children:t.jsx(Va,{onSubmit:h.handleSubmit(l),children:t.jsxs(y,{scroll:"y",width:"100%",children:[t.jsx(y,{borderRadius:`0 0 ${f.spacing[.25]} ${f.spacing[.25]}`,display:"flex",flexDirection:"column",gap:.5,height:e?"calc(100% - 139px)":"calc(100% - 83px)",px:1.5,py:1.5,scroll:"y",children:T(i)}),c&&t.jsxs(y,{borderRadius:`0 0 ${f.spacing[.25]} ${f.spacing[.25]}`,borderTop:`1px solid ${f.palette.gray[200]}`,display:"flex",flexDirection:"column",gap:.625,position:"sticky",px:1.25,py:1.25,children:[e,t.jsxs(y,{display:"flex",gap:.75,maxWidth:"392px",children:[o?t.jsx(P,{id:`${a}-cancel`,justify:"center",onClick:o,type:"reset",variant:"tertiary",width:"100%",children:n??"Cancel"}):void 0,t.jsx(P,{disabled:p,id:a,justify:"center",type:"submit",width:"100%",children:d??"Confirm"})]})]})]})})})},Oa=s.dt(ee)`
|
|
2065
2065
|
display: grid;
|
|
2066
2066
|
gap: ${({$gap:e=1.25})=>`${e}rem`};
|
|
2067
2067
|
grid-template-columns: ${({$sm:e})=>`repeat(${e}, 1fr)`};
|
|
2068
2068
|
|
|
2069
|
-
${({theme:e,$xl:n,$lg:i,$md:
|
|
2069
|
+
${({theme:e,$xl:n,$lg:i,$md:a})=>`
|
|
2070
2070
|
@media (width >= ${e.breakpoints.sm}) {
|
|
2071
|
-
grid-template-columns: repeat(${
|
|
2071
|
+
grid-template-columns: repeat(${a}, 1fr);
|
|
2072
2072
|
}
|
|
2073
2073
|
|
|
2074
2074
|
@media (width >= ${e.breakpoints.md}) {
|
|
@@ -2079,7 +2079,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2079
2079
|
grid-template-columns: repeat(${n}, 1fr);
|
|
2080
2080
|
}
|
|
2081
2081
|
`}
|
|
2082
|
-
`,_a=
|
|
2082
|
+
`,_a=g.forwardRef(function({children:n,md:i,sm:a,lg:r,xl:o,gap:l,...c},d){return t.jsx(Oa,{$gap:l,$lg:r,$md:i,$sm:a,$xl:o,ref:d,...c,children:n})}),Ga=s.dt.div`
|
|
2083
2083
|
${({theme:e,$itemsLength:n})=>`
|
|
2084
2084
|
display: flex;
|
|
2085
2085
|
background-color: ${e.palette.white};
|
|
@@ -2115,7 +2115,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2115
2115
|
background-color: ${e.palette.gray[100]};
|
|
2116
2116
|
}
|
|
2117
2117
|
`}
|
|
2118
|
-
`,
|
|
2118
|
+
`,Qt=({isSelected:e=!1,label:n,onSelect:i})=>{const a=s.nt(),r=g.useCallback(()=>{i&&i(n)},[i,n]);return t.jsxs(Ze,{$isSelected:e,onClick:r,children:[e?t.jsx(z,{icon:"check",iconColor:a.palette.gray[800],iconSize:"md"}):null,t.jsx(C,{color:a.palette.gray[800],fontWeight:"bold",size:"sm",children:n})]})},Ua=({isOpen:e=!0,items:n,handleNewOrganization:i,onSelect:a,onClose:r,selectedItem:o,title:l,variant:c})=>{const d=s.nt(),[p,u]=g.useState(n),[x,f]=g.useState(""),h=g.useCallback(m=>{u(w=>w.filter(j=>String(j.name).toLowerCase().includes(m.toLocaleLowerCase())))},[u]),$=g.useCallback(m=>{m.currentTarget&&(f(m.currentTarget.value),h(m.currentTarget.value))},[f,h]);g.useEffect(()=>{u(n),h(x)},[n,h,x]);const b=()=>t.jsx(y,{"aria-modal":"true",className:"comp-modal fixed inset-0 overflow-auto",zIndex:99999,children:t.jsx(y,{alignItems:"center",bgColor:"rgb(52 64 84 / 70%)",display:"flex",height:"100vh",justify:"center",left:"0",top:"0",width:"100%",children:t.jsxs(Ga,{$itemsLength:p.length,children:[t.jsxs(y,{alignItems:"center",display:"flex",justify:"space-between",children:[t.jsx(C,{color:d.palette.gray[800],fontWeight:"bold",size:"lg",children:l}),t.jsx(W,{icon:"xmark",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:r,variant:"ghost"})]}),t.jsx(y,{mt:1,children:t.jsx(Q,{onInput:$,placeholder:"Search"})}),t.jsx(J,{mb:1,mt:1}),t.jsxs(y,{display:"inline-flex",gap:1,maxHeight:"332px",scroll:"y",wrap:"wrap",children:[c==="organization-selector"?t.jsx(Ze,{onClick:i,children:t.jsxs(y,{alignItems:"center",display:"flex",children:[t.jsx(z,{icon:"square-plus",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",mr:.5}),t.jsx(C,{color:d.palette.gray[400],size:"sm",children:"New organization"})]})}):void 0,p.map(m=>t.jsx(Qt,{isSelected:o.toLowerCase()===m.name,label:m.name.charAt(0).toUpperCase()+m.name.slice(1),onSelect:a},m.name))]})]})})});return e?_.createPortal(b(),document.body):t.jsx("div",{})},Ya=({description:e,height:n="auto",leftIconName:i,children:a,rightIconName:r,title:o,tooltipId:l,tooltipTip:c,tooltipPlace:d="bottom",variant:p="centered",width:u="318px"})=>{const x=s.nt(),f=p==="centered",h=l&&t.jsx(Y,{icon:r??i,iconColor:x.palette.gray[800],id:l,place:d,tip:c});return t.jsxs(y,{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:n,justify:"center",padding:[1.25,1.25,1.25,1.25],width:u,children:[t.jsxs(y,{alignItems:"center",display:"flex",gap:.5,children:[f||s.lodashExports.isUndefined(i)?void 0:h,t.jsx(C,{color:f?x.palette.gray[800]:x.palette.gray[400],size:"md",textAlign:f?"center":"start",children:e}),f||s.lodashExports.isUndefined(r)?void 0:h]}),t.jsxs(y,{alignItems:"center",display:"flex",gap:.5,my:.5,children:[f&&!s.lodashExports.isUndefined(i)?h:void 0,t.jsxs("div",{style:{display:"flex",gap:"12px"},children:[s.lodashExports.isUndefined(o)?void 0:t.jsx(M,{fontWeight:"bold",size:"md",children:o}),a]}),f&&!s.lodashExports.isUndefined(r)?h:void 0]})]})},Ka=({actions:e,children:n,header:i,title:a,tabs:r,footer:o})=>{const l=s.nt();return t.jsxs(y,{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(y,{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(y,{display:"flex",flexDirection:"column",gap:.25,children:[t.jsx(C,{color:l.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:a}),i]}),e&&t.jsx(y,{display:"flex",gap:.25,children:e.map(({icon:c,onClick:d},p)=>t.jsx(W,{icon:c??"paper-plane",iconColor:l.palette.gray[400],iconSize:"xxs",iconType:"fa-light",onClick:d,variant:"ghost"},`${p}-${c}`))})]}),t.jsx(y,{display:"flex",pt:.25,width:"100%",children:t.jsx(Xe,{items:r})}),t.jsx(y,{alignSelf:"stretch",display:"flex",flexDirection:"column",px:1.25,py:1,scroll:"y",children:n}),o&&t.jsx(y,{alignSelf:"stretch",borderTop:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.5,justify:"end",px:1.25,py:1,children:o.map(({icon:c,text:d,onClick:p},u)=>t.jsx(P,{icon:c,onClick:p,variant:u===0?"primary":"tertiary",width:"100%",children:d},`${u}-${d}`))})]})},qa=s.dt.div`
|
|
2119
2119
|
${({theme:e})=>`
|
|
2120
2120
|
align-items: flex-start;
|
|
2121
2121
|
backdrop-filter: blur(3.15px);
|
|
@@ -2167,7 +2167,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2167
2167
|
}
|
|
2168
2168
|
}
|
|
2169
2169
|
`}
|
|
2170
|
-
`,
|
|
2170
|
+
`,Xa=s.dt.div`
|
|
2171
2171
|
align-items: center;
|
|
2172
2172
|
position: absolute;
|
|
2173
2173
|
justify-content: center;
|
|
@@ -2181,7 +2181,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2181
2181
|
height: 260px;
|
|
2182
2182
|
width: 260px;
|
|
2183
2183
|
}
|
|
2184
|
-
`,
|
|
2184
|
+
`,en=({icon:e})=>t.jsx(Xa,{children:t.jsx(z,{icon:e,iconColor:I.palette.white,iconSize:"xs",iconTransform:"shrink-2",iconType:"fa-light"})}),Za=({category:e,description:n,href:i,icon:a,location:r,title:o})=>{const l=s.nt();return t.jsxs(qa,{children:[t.jsxs(y,{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(C,{color:l.palette.white,size:"sm",sizeSm:"xs",children:e}),t.jsx(M,{color:l.palette.white,fontWeight:"bold",lineSpacing:2.25,lineSpacingSm:1.75,size:"lg",sizeSm:"md",children:o})]}),t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx(C,{color:l.palette.white,size:"sm",sizeSm:"xs",children:"Location"}),t.jsx(C,{color:l.palette.white,fontWeight:"bold",lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:r})]})]}),t.jsxs(y,{alignItems:"self-start",display:"flex",flexDirection:"column",gap:2,height:"100%",id:"hovered",justify:"space-between",pt:1,children:[t.jsx(M,{color:l.palette.white,fontWeight:"bold",lineSpacing:1.75,lineSpacingSm:1.5,size:"md",sizeSm:"sm",children:o}),t.jsxs("div",{className:"flex flex-col gap-8",children:[t.jsx(C,{color:l.palette.gray[100],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:n}),t.jsx(P,{external:!0,href:i,variant:"link",width:"max-content",children:"Download now"})]})]}),t.jsx(en,{icon:a})]})},Ja=s.dt.button`
|
|
2185
2185
|
${({theme:e})=>`
|
|
2186
2186
|
align-items: center;
|
|
2187
2187
|
border-left: 3px solid transparent;
|
|
@@ -2224,7 +2224,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2224
2224
|
}
|
|
2225
2225
|
}
|
|
2226
2226
|
`}
|
|
2227
|
-
`,
|
|
2227
|
+
`,Qa=s.dt.div`
|
|
2228
2228
|
${({theme:e})=>`
|
|
2229
2229
|
align-items: center;
|
|
2230
2230
|
background-color: transparent;
|
|
@@ -2254,7 +2254,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2254
2254
|
color: ${e.palette.gray[800]};
|
|
2255
2255
|
}
|
|
2256
2256
|
`}
|
|
2257
|
-
`,
|
|
2257
|
+
`,er=s.dt.div`
|
|
2258
2258
|
${({theme:e})=>`
|
|
2259
2259
|
background-color: ${e.palette.white};
|
|
2260
2260
|
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
@@ -2269,7 +2269,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2269
2269
|
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
2270
2270
|
}
|
|
2271
2271
|
`}
|
|
2272
|
-
`,
|
|
2272
|
+
`,tr=s.dt.div`
|
|
2273
2273
|
${({theme:e})=>`
|
|
2274
2274
|
align-items: flex-start;
|
|
2275
2275
|
cursor: pointer;
|
|
@@ -2291,11 +2291,11 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2291
2291
|
}
|
|
2292
2292
|
}
|
|
2293
2293
|
`}
|
|
2294
|
-
`,
|
|
2294
|
+
`,tn=({disabled:e=!1,mode:n,onClick:i,text:a})=>t.jsx(Ja,{className:`${e&&"disabled"} ${n}`,disabled:e,onClick:i,children:t.jsx(C,{color:"inherit",size:"sm",sizeSm:"xs",children:a})}),nr=[{text:"EN"},{text:"ES"}],ir=({items:e,handleClick:n,mode:i="light"})=>{const a=e??nr,[r,o]=g.useState(a[0].text),l=g.useCallback(c=>()=>{n(c.text),o(c.text)},[n]);return t.jsxs(tr,{children:[t.jsxs(Qa,{className:i,children:[t.jsx(z,{icon:"globe",iconSize:"xs",iconType:"fa-light"}),r]}),t.jsx(er,{children:a.map((c,d)=>t.jsx(tn,{disabled:c.disabled,mode:i,onClick:l(c),text:c.text},`${c.text}_${d}`))})]})},ar=s.dt.div.attrs({className:"flex flex-wrap justify-center pv3 w-100"})``,rr=s.dt.div.attrs({className:"flex flex-wrap items-center justify-start mb2"})`
|
|
2295
2295
|
gap: 12px;
|
|
2296
|
-
`,
|
|
2296
|
+
`,or=s.dt.div.attrs({className:"flex flex-wrap items-center justify-end mb2"})`
|
|
2297
2297
|
gap: 8px;
|
|
2298
|
-
`,me=e=>e===void 0?"flex-grow: 1;":`width: calc(${e}00% / var(--cols));`,
|
|
2298
|
+
`,me=e=>e===void 0?"flex-grow: 1;":`width: calc(${e}00% / var(--cols));`,sr=s.dt.div.attrs({className:"comp-col"})`
|
|
2299
2299
|
word-break: break-word;
|
|
2300
2300
|
|
|
2301
2301
|
${({$width:e=null})=>e===null?"":`width: ${e}`};
|
|
@@ -2319,7 +2319,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2319
2319
|
> .comp-card {
|
|
2320
2320
|
height: 100%;
|
|
2321
2321
|
}
|
|
2322
|
-
`,
|
|
2322
|
+
`,lr=({children:e,xl:n,lg:i,md:a,sm:r,paddingTop:o,width:l})=>t.jsx(sr,{$lg:i,$md:a,$paddingTop:o,$sm:r,$width:l,$xl:n,children:e}),cr=s.dt.div.attrs({className:"comp-gap"})`
|
|
2323
2323
|
${({$disp:e="flex",$mh:n=4,$mv:i=4})=>`
|
|
2324
2324
|
align-items: center;
|
|
2325
2325
|
display: ${e};
|
|
@@ -2329,12 +2329,12 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2329
2329
|
margin: ${i}px ${n}px;
|
|
2330
2330
|
}
|
|
2331
2331
|
`}
|
|
2332
|
-
`,
|
|
2333
|
-
${({$align:e="stretch",$cols:n=100,$colsPadding:i=6,$justify:
|
|
2332
|
+
`,dr=({children:e,disp:n,mh:i,mv:a})=>t.jsx(cr,{$disp:n,$mh:i,$mv:a,children:e}),pr=s.dt.div.attrs({className:"comp-row flex flex-row flex-wrap"})`
|
|
2333
|
+
${({$align:e="stretch",$cols:n=100,$colsPadding:i=6,$justify:a="start"})=>`
|
|
2334
2334
|
align-items: ${e};
|
|
2335
|
-
justify-content: ${
|
|
2335
|
+
justify-content: ${a};
|
|
2336
2336
|
margin: -6px;
|
|
2337
|
-
text-align: ${
|
|
2337
|
+
text-align: ${a};
|
|
2338
2338
|
|
|
2339
2339
|
--cols: ${n};
|
|
2340
2340
|
|
|
@@ -2347,7 +2347,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2347
2347
|
padding: ${i}px;
|
|
2348
2348
|
}
|
|
2349
2349
|
`}
|
|
2350
|
-
`,
|
|
2350
|
+
`,gr=({align:e,children:n,cols:i,colsPadding:a,justify:r})=>t.jsx(pr,{$align:e,$cols:i,$colsPadding:a,$justify:r,children:n}),ur=s.dt.span`
|
|
2351
2351
|
${({theme:e,$bgColor:n=e.palette.secondary[500],$txtDecoration:i="none"})=>`
|
|
2352
2352
|
background-color: ${n};
|
|
2353
2353
|
border-radius: 5px;
|
|
@@ -2356,14 +2356,14 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2356
2356
|
padding: ${e.spacing[.125]} ${e.spacing[.25]} ${e.spacing[.125]} ${e.spacing[.25]};
|
|
2357
2357
|
text-decoration: ${i}
|
|
2358
2358
|
`}
|
|
2359
|
-
`,
|
|
2359
|
+
`,xr=({bgColor:e,children:n,txtDecoration:i,ml:a=1})=>t.jsx(ur,{$bgColor:e,$txtDecoration:i,className:`ml-${a}`,children:n}),fr={lg:"56",md:"30",sm:"12"},{getVariant:hr}=U(e=>({red:`stroke: ${e.palette.primary[500]};`,white:`stroke: ${e.palette.white};`})),br=s.mt`
|
|
2360
2360
|
0% {
|
|
2361
2361
|
transform: rotateZ(0deg);
|
|
2362
2362
|
}
|
|
2363
2363
|
100% {
|
|
2364
2364
|
transform: rotateZ(360deg)
|
|
2365
2365
|
}
|
|
2366
|
-
`,
|
|
2366
|
+
`,yr=s.mt`
|
|
2367
2367
|
0%,
|
|
2368
2368
|
25% {
|
|
2369
2369
|
stroke-dashoffset: 280;
|
|
@@ -2382,14 +2382,14 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2382
2382
|
}
|
|
2383
2383
|
`,$r=s.dt.svg`
|
|
2384
2384
|
${({$size:e="md"})=>s.lt`
|
|
2385
|
-
animation: ${
|
|
2385
|
+
animation: ${br} 2s linear infinite;
|
|
2386
2386
|
animation-timing-function: linear;
|
|
2387
2387
|
display: inline-block;
|
|
2388
|
-
width: ${
|
|
2388
|
+
width: ${fr[e]}px;
|
|
2389
2389
|
`}
|
|
2390
|
-
`,
|
|
2390
|
+
`,mr=s.dt.circle`
|
|
2391
2391
|
${({theme:e,$color:n="red"})=>s.lt`
|
|
2392
|
-
animation: 1.4s ease-in-out infinite both ${
|
|
2392
|
+
animation: 1.4s ease-in-out infinite both ${yr};
|
|
2393
2393
|
display: block;
|
|
2394
2394
|
fill: transparent;
|
|
2395
2395
|
stroke-linecap: round;
|
|
@@ -2398,9 +2398,9 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2398
2398
|
stroke-width: 10px;
|
|
2399
2399
|
transform-origin: 50% 50%;
|
|
2400
2400
|
|
|
2401
|
-
${
|
|
2401
|
+
${hr(e,n)}
|
|
2402
2402
|
`}
|
|
2403
|
-
`,
|
|
2403
|
+
`,wr=s.dt.circle`
|
|
2404
2404
|
display: block;
|
|
2405
2405
|
fill: transparent;
|
|
2406
2406
|
stroke: ${({theme:e})=>e.palette.gray[200]};
|
|
@@ -2408,7 +2408,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2408
2408
|
stroke-width: 10px;
|
|
2409
2409
|
transform-origin: 50% 50%;
|
|
2410
2410
|
opacity: ${({$color:e})=>e==="white"?"20%":"unset"};
|
|
2411
|
-
`,
|
|
2411
|
+
`,jr=({color:e="red",label:n,size:i})=>{const a=s.nt();return t.jsxs(y,{alignItems:"center",display:"flex",children:[t.jsxs($r,{$size:i,viewBox:"0 0 100 100",children:[t.jsx(wr,{$color:e,cx:"50",cy:"50",r:"45"}),t.jsx(mr,{$color:e,cx:"50",cy:"50",r:"45"})]}),n&&t.jsx(C,{color:e==="red"?a.palette.gray[700]:a.palette.white,ml:.5,size:"sm",children:n})]})},kr=s.dt.div`
|
|
2412
2412
|
display: flex;
|
|
2413
2413
|
height: 80px;
|
|
2414
2414
|
max-width: 1440px;
|
|
@@ -2438,7 +2438,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2438
2438
|
);
|
|
2439
2439
|
right: 0;
|
|
2440
2440
|
}
|
|
2441
|
-
`,
|
|
2441
|
+
`,vr=s.dt.div`
|
|
2442
2442
|
display: flex;
|
|
2443
2443
|
gap: 40px;
|
|
2444
2444
|
animation: clients-animation 50s linear infinite;
|
|
@@ -2453,7 +2453,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2453
2453
|
transform: translateX(calc(-180px * 15));
|
|
2454
2454
|
}
|
|
2455
2455
|
}
|
|
2456
|
-
`,Cr=["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"],
|
|
2456
|
+
`,Cr=["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"],Sr=({fusion:e=!1,logos:n=Cr})=>t.jsxs(kr,{children:[e&&t.jsx(ct,{className:"left"}),t.jsx(vr,{children:[...n,...n].map((i,a)=>t.jsx(G,{alt:`${i}-${a}`,height:"80px",plugins:[s.placeholder()],publicId:i,width:"140px"},`${i}-${a}`))}),e&&t.jsx(ct,{className:"right"})]}),zr={company:{height:"83px",width:"460px"},footer:{height:"57px",width:"315px"},header:{height:"35px",width:"160px"},icon:{height:"40px",width:"40px"},inline:{width:"150px"}},Ir=({publicId:e,variant:n})=>t.jsx(y,{...zr[n],children:t.jsx(G,{alt:"logo",publicId:e})}),Tr=({children:e,commitSha:n,commitShortSha:i,parentElement:a,userInfo:r,setVisibility:o})=>{const l=s.nt(),{userName:c,email:d,phone:p,userRole:u}=r;return te(a,()=>{o(!1)}),t.jsxs(Ot,{children:[t.jsx("li",{className:"user-info",children:t.jsxs(y,{display:"inline-flex",gap:.25,width:"100%",children:[t.jsxs(y,{display:"flex",flexDirection:"column",gap:.25,width:"100%",children:[t.jsx(C,{color:l.palette.gray[800],fontWeight:"bold",size:"sm",children:c}),t.jsx(C,{color:l.palette.gray[400],size:"sm",children:d}),s.lodashExports.isUndefined(p)?void 0:t.jsx(C,{color:l.palette.gray[400],size:"sm",children:p})]}),t.jsx(y,{children:t.jsx(X,{tagLabel:u,variant:"role"})})]})}),t.jsx(J,{}),e,t.jsx(J,{}),t.jsx("li",{className:"commit-info",children:t.jsx(q,{href:`https://gitlab.com/fluidattacks/universe/-/tree/${n}`,iconPosition:"hidden",children:t.jsx(C,{color:l.palette.gray[400],size:"xs",children:`commit : ${i}`})})})]})},Nr=s.dt.button`
|
|
2457
2457
|
align-items: center;
|
|
2458
2458
|
background-color: transparent;
|
|
2459
2459
|
border: unset;
|
|
@@ -2470,7 +2470,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2470
2470
|
&:hover span {
|
|
2471
2471
|
color: ${I.palette.primary[200]};
|
|
2472
2472
|
}
|
|
2473
|
-
`,
|
|
2473
|
+
`,Er=({message:e,onClickButton:n,buttonText:i,buttonFontWeight:a="regular",icon:r,onClose:o,buttonSide:l="end"})=>{const c=s.nt(),[d,p]=g.useState(!0),u=g.useCallback(()=>{p(!1),o==null||o()},[o]),x=t.jsxs(Nr,{onClick:n,children:[t.jsx(C,{color:c.palette.white,fontWeight:a,size:"sm",textDecoration:"underline",children:i}),t.jsx(z,{icon:r??"arrow-right",iconColor:c.palette.white,iconSize:"xs",iconType:a==="bold"?"fa-regular":"fa-light"})]});return t.jsxs(y,{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(y,{display:"flex",gap:.5,justify:"center",width:"100%",children:[l==="start"&&n?x:void 0,t.jsx(y,{children:typeof e=="string"?t.jsx(C,{color:c.palette.white,display:"inline",size:"sm",children:e}):e}),l==="end"&&n?x:void 0]}),t.jsx(z,{clickable:!0,hoverColor:c.palette.primary[200],icon:"close",iconColor:c.palette.white,iconSize:"xs",iconType:"fa-light",onClick:u})]})},Fr=({options:e,onSubmit:n,id:i,open:a})=>{const[r,o]=g.useState([]),{register:l,handleSubmit:c,setValue:d}=s.useForm({defaultValues:{checkbox:e.filter(f=>f.checked).map(f=>f.value)}}),p=g.useCallback(f=>{const{value:h}=f.target;o(e.filter($=>{var b;return((b=$.label)==null?void 0:b.toLowerCase().includes(h.toLowerCase()))??$.value.toLowerCase().includes(h.toLowerCase())}))},[e]),u=g.useCallback(f=>{n&&n(f.checkbox)},[n]);g.useEffect(()=>{o(e),d("checkbox",e.filter(f=>f.checked).map(f=>f.value))},[e,d]);const x=t.jsx(ne,{$bgColor:"transparent",children:t.jsxs(ie,{$size:"fixed",flexDirection:"column",gap:1.25,children:[t.jsx(Q,{onChange:p}),t.jsxs("form",{id:i,onSubmit:c(u),style:{overflowY:"auto"},children:[r.map(f=>{const h=`li-checkbox${f.value}`;return t.jsx(Me,{value:h,width:"content",children:t.jsx(be,{...l("checkbox"),label:f.label,value:f.value})},h)}),t.jsx(P,{mt:1,type:"submit",children:"Apply"})]})]})});return a?_.createPortal(x,document.getElementById("portals")??document.body):t.jsx("div",{})},Rr=s.dt.div`
|
|
2474
2474
|
${({theme:e,$variant:n})=>`
|
|
2475
2475
|
background: ${e.palette.white};
|
|
2476
2476
|
border: 1px solid ${e.palette.gray[200]};
|
|
@@ -2489,7 +2489,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2489
2489
|
right: 16px;
|
|
2490
2490
|
}
|
|
2491
2491
|
`}
|
|
2492
|
-
`,
|
|
2492
|
+
`,Dr=s.dt.div`
|
|
2493
2493
|
${({theme:e,$variant:n})=>`
|
|
2494
2494
|
height: ${e.spacing[2.5]};
|
|
2495
2495
|
width: ${e.spacing[2.5]};
|
|
@@ -2520,7 +2520,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2520
2520
|
color: ${e.palette[n][500]};
|
|
2521
2521
|
}
|
|
2522
2522
|
`}
|
|
2523
|
-
`,
|
|
2523
|
+
`,Pr=e=>e==="warning"?"triangle-exclamation":e==="info"?"circle-info":e==="success"?"circle-check":"circle-exclamation",Lr=({description:e,onClose:n,title:i,variant:a})=>{const r=s.nt(),o=g.useCallback(()=>{n==null||n()},[n]);return t.jsxs(Rr,{$variant:a,className:`notification notification__${a}`,role:"alertdialog",children:[t.jsxs(Dr,{$variant:a,children:[t.jsx(z,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),t.jsx(z,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),t.jsx(z,{icon:Pr(a),iconClass:"icon",iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(y,{pr:1.5,children:[t.jsx(M,{fontWeight:"bold",size:"xs",children:i}),t.jsx(C,{size:"sm",whiteSpace:"break-spaces",wordWrap:"break-word",children:e})]}),t.jsx(W,{height:"fit-content",icon:"close",iconColor:r.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:o,px:.125,py:.125,variant:"ghost"})]})},Br=s.dt.div`
|
|
2524
2524
|
width: fit-content;
|
|
2525
2525
|
border: ${({theme:e})=>`1px solid ${e.palette.gray[300]}`};
|
|
2526
2526
|
border-radius: 4px;
|
|
@@ -2533,7 +2533,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2533
2533
|
align-items: center;
|
|
2534
2534
|
justify-content: center;
|
|
2535
2535
|
padding: 0.5em;
|
|
2536
|
-
`,
|
|
2536
|
+
`,Mr=s.dt.input`
|
|
2537
2537
|
width: 4em;
|
|
2538
2538
|
appearance: textfield;
|
|
2539
2539
|
border-style: none;
|
|
@@ -2553,7 +2553,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2553
2553
|
&::-webkit-inner-spin-button {
|
|
2554
2554
|
opacity: 1;
|
|
2555
2555
|
}
|
|
2556
|
-
`,Wr=
|
|
2556
|
+
`,Wr=g.forwardRef(function({autoUpdate:n=!1,decimalPlaces:i=0,defaultValue:a=0,max:r,min:o,name:l,onEnter:c,tooltipMessage:d,...p},u){const x=i<0?0:i,[f,h]=g.useState(Number(a).toFixed(x)),$=g.useCallback(w=>{const j=s.lodashExports.toNumber(w.target.value);w.target.value.endsWith(".")?h(w.target.value):j>=Number(o)&&j<=Number(r)&&(h(String(j)),n&&c(s.lodashExports.toNumber(j.toFixed(x)))),w.stopPropagation()},[n,x,r,o,c]),b=g.useCallback(w=>{w.currentTarget.contains(w.relatedTarget)||h(Number(a).toFixed(x)),w.stopPropagation()},[x,a]),m=g.useCallback(w=>{w.stopPropagation(),w.key==="Enter"&&!s.lodashExports.isEmpty(w.currentTarget.value)&&c(s.lodashExports.toNumber(w.currentTarget.value))},[c]);return t.jsx(Br,{onBlur:b,tabIndex:-1,children:t.jsx(Y,{id:"numberInputTooltip",tip:d,children:t.jsx(Mr,{...p,"aria-label":l,"aria-valuemax":Number(r),"aria-valuemin":Number(o),"aria-valuenow":Number(f),max:r,min:o,name:l,onChange:$,onKeyUp:m,ref:u,step:10**-x,type:"number",value:f})})})}),Ar={Azure:"integrates/autoenrollment/azureIcon",Bitbucket:"integrates/autoenrollment/bitbucketLogo",GitHub:"integrates/autoenrollment/githubLogo",GitLab:"integrates/autoenrollment/gitlabIcon"},Oe=({icon:e,label:n,onClick:i,onlyLabel:a=!1,provider:r="GitLab"})=>{const o=s.nt();return t.jsxs(y,{alignItems:"center",bgColorHover:o.palette.gray[100],borderRadius:"4px",cursor:"pointer",display:"flex",flexDirection:"column",gap:.25,height:"62px",justify:"center",minWidth:"64px",onClick:i,pb:.5,pl:.25,pr:.25,pt:.5,children:[a?!1:t.jsx(y,{height:"24px",width:"24px",children:e===void 0?t.jsx(G,{alt:`${r} Logo`,height:"100%",publicId:Ar[r],width:"100%"}):t.jsx(z,{icon:e,iconColor:"#000",iconSize:"sm",iconType:"fa-light"})}),t.jsx(y,{alignItems:"center",display:"flex",minWidth:"24px",children:t.jsx(C,{color:o.palette.gray[800],display:"inline",size:"xs",textAlign:"center",whiteSpace:a?"break-spaces":"nowrap",wordWrap:"unset",children:n??r})})]})},Vr=({align:e="end",buttonLabel:n="Add Credential",children:i,id:a,manualOption:r,providers:o})=>{const l=s.nt(),[c,d]=g.useState(!1),p=g.useRef(null);te(p.current,()=>{d(!1)},!0);const u=g.useCallback(h=>{r==null||r.onClick(h),d(!1)},[r]),x=g.useCallback(()=>{d(h=>!h)},[d]),f=g.useCallback(h=>$=>{var b;(b=o[h])==null||b.onClick($),d(!1)},[o]);return t.jsxs(y,{alignItems:e,display:"flex",flexDirection:"column",position:"relative",ref:p,width:"max-content",zIndex:10,children:[t.jsx(P,{icon:"plus",onClick:x,variant:"primary",children:n}),t.jsxs(y,{alignItems:"center",bgColor:"#fff",border:`1px solid ${l.palette.gray[200]}`,borderRadius:"4px",display:"flex",gap:.5,height:"78px",id:a,pb:.5,pl:.75,position:"absolute",pr:.75,pt:.5,shadow:"md",top:"40px",visibility:c?"visible":"hidden",zIndex:10,children:[Object.keys(o).map(h=>t.jsx(Oe,{onClick:f(h),provider:h},h)),r===void 0?void 0:t.jsx(Oe,{icon:"square-plus",label:r.label??"Add manually",onClick:u}),i]})]})},nn=()=>t.jsx(y,{alignItems:"center",bgColor:I.palette.primary[25],borderRadius:"8px",gap:.5,justify:"center",padding:[.125,.25,.125,.25],width:"max-content",children:t.jsx(C,{bgGradient:I.palette.gradients["01"],fontWeight:"semibold",size:"xs",textFill:"transparent",children:"Recommended"})}),Hr=s.dt.div`
|
|
2557
2557
|
${({className:e,theme:n})=>`
|
|
2558
2558
|
align-items: flex-start;
|
|
2559
2559
|
border-radius: ${n.spacing[1]};
|
|
@@ -2618,8 +2618,8 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2618
2618
|
width: 320px;
|
|
2619
2619
|
}
|
|
2620
2620
|
`}
|
|
2621
|
-
`;const
|
|
2622
|
-
through our scanning tool.`,priceAuthor:"$499",priceGroup:"$1,579"}},_r=({description:e,onClick:n,plan:i})=>{const{title:
|
|
2621
|
+
`;const Or={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
|
|
2622
|
+
through our scanning tool.`,priceAuthor:"$499",priceGroup:"$1,579"}},_r=({description:e,onClick:n,plan:i})=>{const{title:a,description:r,benefits:o,buttonText:l}=Or[i],c=e??r;return t.jsxs(Hr,{className:i,children:[t.jsxs(y,{display:"flex",flexDirection:"column",gap:.25,pt:i==="essential"?1.75:0,children:[i==="advanced"&&t.jsx(nn,{}),t.jsx(M,{color:I.palette.gray[900],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:a}),t.jsx(C,{color:I.palette.gray[400],fontWeight:"semibold",pb:i==="essential"?1.25:0,size:"sm",sizeSm:"xs",children:o})]}),t.jsx(C,{lineSpacing:1.5,lineSpacingSm:1.25,pb:i==="advanced"?1.5:0,size:"md",sizeSm:"sm",children:c}),t.jsx(P,{onClick:n,variant:"primary",children:l})]})},an=({description:e="",highlightDescription:n=""})=>{const i=s.nt(),a=typeof n=="string",r=a?"":new RegExp(`(${n.join("|")})`,"u");return n.length>0?t.jsx(C,{display:"inline",lineSpacing:1.5,size:"lg",textAlign:"center",children:a?t.jsxs(g.Fragment,{children:[t.jsx(je,{color:i.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:n}),e]}):e.split(r).map((o,l)=>n.includes(o)?t.jsx(je,{color:i.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:o},`${l+1}-bold`):o)}):t.jsx(C,{lineSpacing:1.5,size:"lg",textAlign:"center",children:e})},Gr=({_portal:e=!1,cancelButton:n,darkBackground:i=!1,children:a,confirmButton:r,container:o,description:l,highlightDescription:c="",image:d,maxWidth:p,title:u,titleColor:x})=>{const f=s.nt(),{alt:h,src:$,width:b="77px",height:m="77px"}=d,w=g.useCallback(()=>{n==null||n.onClick()},[n]),j=g.useCallback(()=>{r==null||r.onClick()},[r]),v=t.jsx(y,{alignItems:"center","aria-label":u,"aria-modal":"true",bgColor:i?"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(y,{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(y,{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",children:[t.jsx(y,{children:t.jsx(G,{alt:h,height:m,publicId:$,width:b})}),t.jsxs(y,{display:"flex",flexDirection:"column",gap:.5,mb:1.5,mt:1.5,children:[t.jsx(M,{color:x,fontWeight:"bold",lineSpacing:2.5,size:"lg",textAlign:"center",children:u}),t.jsx(an,{description:l,highlightDescription:c})]})]}),a&&t.jsx(y,{mb:1,scroll:"y",children:t.jsx(y,{height:"100%",children:a})}),t.jsxs(y,{alignItems:"flex-start",display:"flex",gap:1,justify:"center",children:[s.lodashExports.isObject(r)?t.jsx(P,{onClick:j,variant:(r==null?void 0:r.variant)??"primary",children:r==null?void 0:r.text},r==null?void 0:r.key):void 0,s.lodashExports.isObject(n)?t.jsx(P,{onClick:w,variant:(n==null?void 0:n.variant)??"tertiary",children:n==null?void 0:n.text},n==null?void 0:n.key):void 0]})]})});return e?_.createPortal(v,o??document.body):v},Ur=s.dt.div`
|
|
2623
2623
|
${({theme:e})=>`
|
|
2624
2624
|
height: ${e.spacing[1]};
|
|
2625
2625
|
width: ${e.spacing[1]};
|
|
@@ -2650,7 +2650,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2650
2650
|
font-size: ${e.spacing[.5]};
|
|
2651
2651
|
}
|
|
2652
2652
|
`}
|
|
2653
|
-
`,
|
|
2653
|
+
`,rn=({margin:e,onClick:n,text:i})=>{const a=s.nt(),r=t.jsxs(Ur,{children:[t.jsx(z,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),t.jsx(z,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),t.jsx(z,{icon:"crown",iconClass:"icon",iconSize:"xs"})]});return i!==void 0?t.jsx(y,{cursor:"pointer",display:"inline-block",mr:e,onClick:n,children:t.jsxs(y,{alignItems:"center",bgColor:a.palette.warning[50],borderRadius:"4px",display:"flex",padding:[.25,.25,.25,.25],width:"fit-content",children:[r,t.jsx(C,{color:a.palette.warning[500],display:"inline",ml:.25,size:"xs",children:i})]})}):t.jsx(y,{display:"inline-block",mr:e,onClick:n,children:r})},Yr=({score:e})=>{const n=s.nt(),i=e<=33?"priority-bars-low":"priority-bars-medium",a=e>66||e===0?"priority-bars-high":i;return t.jsxs(y,{alignItems:"center",display:"inline-flex",gap:.25,children:[t.jsx(z,{icon:a,iconClass:e<=66?"fa-kit-duotone":"",iconColor:e>0?n.palette.primary[500]:n.palette.gray[200],iconSize:"xs",iconType:"fa-kit",secondaryColor:n.palette.gray[200]}),t.jsx(C,{color:n.palette.gray[800],size:"sm",textAlign:"right",children:e+"%"})]})},{getVariant:Kr}=U(e=>({compliance:`
|
|
2654
2654
|
display: inline-flex;
|
|
2655
2655
|
|
|
2656
2656
|
&.horizontal {
|
|
@@ -2708,18 +2708,18 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2708
2708
|
.progress-bar {
|
|
2709
2709
|
background-color: ${e.palette.primary[500]};
|
|
2710
2710
|
}
|
|
2711
|
-
`})),
|
|
2712
|
-
${({theme:e,$minWidth:n,$orientation:i,$rounded:
|
|
2711
|
+
`})),qr=(e,n)=>n<50?e.palette.error[500]:n<80?e.palette.warning[500]:e.palette.success[500],Xr=s.dt.div`
|
|
2712
|
+
${({theme:e,$minWidth:n,$orientation:i,$rounded:a,$variant:r})=>`
|
|
2713
2713
|
background-color: ${e.palette.gray[100]};
|
|
2714
|
-
border-radius: ${
|
|
2714
|
+
border-radius: ${a?"100px":"unset"};
|
|
2715
2715
|
${i==="horizontal"?"min-width":"min-height"}: ${n}px;
|
|
2716
2716
|
${i==="horizontal"?"":"height: 100%;"}
|
|
2717
2717
|
|
|
2718
|
-
${
|
|
2718
|
+
${Kr(e,r)}
|
|
2719
2719
|
|
|
2720
2720
|
`}
|
|
2721
|
-
`,
|
|
2722
|
-
${({theme:e,$percentage:n,$rounded:i,$variant:
|
|
2721
|
+
`,Zr=s.dt.div`
|
|
2722
|
+
${({theme:e,$percentage:n,$rounded:i,$variant:a})=>`
|
|
2723
2723
|
display: inline-flex;
|
|
2724
2724
|
width: ${n}%;
|
|
2725
2725
|
max-width: 100%;
|
|
@@ -2728,9 +2728,9 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2728
2728
|
border-radius: ${i?"100px":"unset"};
|
|
2729
2729
|
border-end-end-radius: ${i&&n<100?"0":"inherit"};
|
|
2730
2730
|
border-start-end-radius: ${i&&n<100?"0":"inherit"};
|
|
2731
|
-
background-color: ${
|
|
2731
|
+
background-color: ${a==="compliance"?qr(e,n):"inherit"};
|
|
2732
2732
|
`}
|
|
2733
|
-
`,
|
|
2733
|
+
`,Jr=({minWidth:e=100,percentage:n,percentageLocation:i="right",showPercentage:a=!1,orientation:r="horizontal",rounded:o=!0,variant:l="default"})=>{const c=a&&i==="left",d=a?t.jsx(y,{alignItems:"center",display:"flex",justify:c?"flex-end":"flex-start",width:"40px",children:t.jsx(C,{ml:.5,mr:c?.5:0,size:"sm",children:`${n}%`})}):null,p=t.jsx(Xr,{$minWidth:e,$orientation:r,$rounded:o,$variant:l,className:r,children:t.jsx(Zr,{$percentage:n,$rounded:o,$variant:l,className:"progress-bar"})});return t.jsxs(y,{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]})},Qr=s.dt(ee)`
|
|
2734
2734
|
animation: ${({$animationTime:e})=>`progress-bar ${e}s ease-in-out`};
|
|
2735
2735
|
animation-fill-mode: both;
|
|
2736
2736
|
|
|
@@ -2743,12 +2743,12 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2743
2743
|
width: 100%;
|
|
2744
2744
|
}
|
|
2745
2745
|
}
|
|
2746
|
-
`,
|
|
2746
|
+
`,eo=e=>e*1e3/100,to=({progressTime:e=10,onComplete:n})=>{const i=s.nt(),a=100,[r,o]=g.useState(0);return g.useEffect(()=>{r===a&&(n==null||n())},[r,n]),g.useEffect(()=>{const l=setInterval(()=>{o(c=>c===a?0:c+1)},eo(e));return()=>{clearInterval(l)}},[r,e]),t.jsx(y,{bgColor:i.palette.gray[200],height:"4px",children:t.jsx(Qr,{$animationTime:e,bgGradient:i.palette.gradients["01"],height:"100%",width:`${r}%`})})},no=s.dt.div.attrs({className:"comp-scroll-up"})`
|
|
2747
2747
|
bottom: 15px;
|
|
2748
2748
|
position: fixed;
|
|
2749
2749
|
right: 140px;
|
|
2750
2750
|
z-index: 100;
|
|
2751
|
-
`,
|
|
2751
|
+
`,io=({scrollerId:e="dashboard",visibleAt:n=500})=>{const[i,a]=g.useState(!1),[r,o]=g.useState(null);g.useEffect(()=>{o(document.getElementById(e)),r==null||r.addEventListener("scroll",()=>{a(r.scrollTop>n)})},[r,e,n]);const l=g.useCallback(()=>{r==null||r.scrollTo({behavior:"smooth",top:0})},[r]);return i?t.jsx(no,{children:t.jsx(W,{height:"40px",icon:"arrow-up",iconSize:"sm",id:"scroll-up",onClick:l,width:"40px"})}):null},ao=s.dt.a`
|
|
2752
2752
|
${({theme:e})=>`
|
|
2753
2753
|
align-items: center;
|
|
2754
2754
|
display: flex;
|
|
@@ -2793,7 +2793,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2793
2793
|
width: 270px;
|
|
2794
2794
|
}
|
|
2795
2795
|
`}
|
|
2796
|
-
`,
|
|
2796
|
+
`,ro=s.dt.div.attrs({className:"icon-wrap"})`
|
|
2797
2797
|
${({theme:e})=>`
|
|
2798
2798
|
align-items: center;
|
|
2799
2799
|
background: ${e.palette.primary[25]};
|
|
@@ -2808,7 +2808,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2808
2808
|
font-size: 20px;
|
|
2809
2809
|
}
|
|
2810
2810
|
`}
|
|
2811
|
-
`,
|
|
2811
|
+
`,oo=s.dt.div`
|
|
2812
2812
|
${({theme:e})=>`
|
|
2813
2813
|
align-items: flex-start;
|
|
2814
2814
|
display: flex;
|
|
@@ -2840,7 +2840,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2840
2840
|
width: 320px;
|
|
2841
2841
|
}
|
|
2842
2842
|
`}
|
|
2843
|
-
`,
|
|
2843
|
+
`,so=s.dt.form`
|
|
2844
2844
|
${({theme:e})=>`
|
|
2845
2845
|
align-items: center;
|
|
2846
2846
|
display: flex;
|
|
@@ -2849,7 +2849,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2849
2849
|
padding: ${e.spacing[1]} ${e.spacing[1.5]};
|
|
2850
2850
|
width: 100%;
|
|
2851
2851
|
`}
|
|
2852
|
-
`,
|
|
2852
|
+
`,lo=s.dt.input`
|
|
2853
2853
|
${({theme:e})=>`
|
|
2854
2854
|
flex: 1 0 0;
|
|
2855
2855
|
border: none;
|
|
@@ -2875,7 +2875,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2875
2875
|
font-size: ${e.typography.text.sm};
|
|
2876
2876
|
}
|
|
2877
2877
|
`}
|
|
2878
|
-
`,
|
|
2878
|
+
`,co=s.dt.button`
|
|
2879
2879
|
${({theme:e})=>`
|
|
2880
2880
|
align-items: center;
|
|
2881
2881
|
border-radius: ${e.spacing[.5]};
|
|
@@ -2938,7 +2938,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2938
2938
|
height: ${e.spacing[.5]};
|
|
2939
2939
|
}
|
|
2940
2940
|
`}
|
|
2941
|
-
`,we=({hit:e,icon:n="infinity",showIcon:i=!1})=>{const{slug:
|
|
2941
|
+
`,we=({hit:e,icon:n="infinity",showIcon:i=!1})=>{const{slug:a,title:r}=e,o=String(a).startsWith("/pages/")?String(a).replace("/pages/","/"):String(a);return t.jsxs(ao,{href:o,rel:"nofollow noopener noreferrer",children:[i&&t.jsx(ro,{children:t.jsx(z,{icon:n,iconClass:"fill-gradient-01",iconSize:"sm",iconType:"fa-light"})}),t.jsx(C,{color:I.palette.gray[800],lineSpacing:1.5,size:"md",sizeSm:"sm",whiteSpace:"wrap",children:String(r)})]})},po=[{hit:{slug:"/services/continuous-hacking/",title:"Continuous Hacking"},icon:"infinity"},{hit:{slug:"/platform/",title:"Platform"},icon:"sidebar"},{hit:{slug:"/plans/",title:"Plans"},icon:"star-christmas"},{hit:{slug:"/blog/",title:"Blog"},icon:"pen-line"}],dt={hit:{slug:"/contact-us/",title:"Contact Support"},icon:"envelope"},go=({items:e,placeholder:n="Search",refine:i,query:a})=>{const[r,o]=g.useState(a),[l,c]=g.useState(!1),d=g.useRef(null),p=g.useRef(null),u=r.length>=2,x=g.useCallback(w=>{o(w),i(w)},[i]),f=g.useCallback(()=>{x("")},[x]),h=g.useCallback(()=>{c(!0)},[]),$=g.useCallback(w=>{x(w.currentTarget.value)},[x]),b=g.useCallback(w=>{w.preventDefault(),w.stopPropagation(),f(),p.current&&p.current.focus()},[f]),m=g.useCallback(w=>{w.preventDefault(),w.stopPropagation(),p.current&&p.current.blur()},[]);return te(d.current,()=>{f(),c(!1)},!0),t.jsxs(oo,{ref:d,children:[t.jsxs(so,{action:"",noValidate:!0,onReset:b,onSubmit:m,role:"search",children:[t.jsxs("div",{className:"flex gap-2 w-full",children:[t.jsx("div",{className:"h-10 p-2",children:t.jsx(z,{icon:"magnifying-glass",iconSize:"sm",iconType:"fa-light"})}),t.jsx(lo,{autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",maxLength:512,onChange:$,onFocus:h,placeholder:n,ref:p,spellCheck:!1,type:"search",value:r})]}),u&&t.jsx(co,{type:"reset",children:t.jsx(z,{icon:"xmark",iconSize:"sm",iconType:"fa-light"})})]}),l&&r.length<2&&t.jsxs(Fe,{children:[t.jsx(C,{color:I.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Suggested"}),t.jsx("div",{className:"flex flex-col items-start self-stretch",children:po.map(({hit:w,icon:j},v)=>t.jsx(we,{hit:w,icon:j,showIcon:!0},`${j}-${v}`))}),t.jsx(C,{color:I.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Can’t find what you’re looking for?"}),t.jsx(we,{hit:dt.hit,icon:dt.icon,showIcon:!0})]}),u&&e.length>0&&t.jsxs(Fe,{$showHits:u,children:[t.jsx(C,{color:I.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Results"}),t.jsx("div",{className:"flex flex-col items-start self-stretch",children:e.map(w=>t.jsx(we,{hit:w},w.objectID))})]}),u&&e.length===0&&t.jsx(Fe,{$empty:e.length===0,children:t.jsxs("div",{className:"items-center flex flex-col gap-4 py-[90px] w-full",children:[t.jsx(G,{height:96,publicId:"airs/search-bar/empty-state-icon",width:96}),t.jsx(M,{display:"flex",size:"sm",sizeSm:"xs",textAlign:"center",children:"No results found"}),t.jsxs(C,{display:"flex",lineSpacing:1.5,size:"md",sizeSm:"sm",textAlign:"center",children:[`“${r}” did not match.`,t.jsx("br",{}),"Please try again."]}),t.jsx(P,{onClick:f,variant:"secondary",children:"Clear search"})]})})]})},uo={critical:{bgColor:I.palette.primary[700],colorL:I.palette.gray[800],colorR:I.palette.white},disable:{bgColor:I.palette.gray[200],colorL:I.palette.gray[400],colorR:I.palette.gray[400]},high:{bgColor:I.palette.error[500],colorL:I.palette.gray[800],colorR:I.palette.white},low:{bgColor:I.palette.warning[200],colorL:I.palette.gray[800],colorR:I.palette.gray[800]},medium:{bgColor:I.palette.warning[500],colorL:I.palette.gray[800],colorR:I.palette.gray[800]}},xo=({textL:e,textR:n,variant:i})=>{const a=s.nt(),{bgColor:r,colorL:o,colorR:l}=uo[i];return t.jsxs(y,{alignItems:"flex-start",display:"inline-flex",children:[e?t.jsx(y,{alignItems:"center",bgColor:a.palette.white,border:`1px solid ${r}`,borderRadius:"4px 0px 0px 4px",display:"flex",justify:"center",padding:[0,.25,0,.25],children:t.jsx(C,{color:o,size:"xs",children:e})}):void 0,t.jsx(y,{alignItems:"center",bgColor:r,border:`1px solid ${r}`,borderRadius:e?"0px 4px 4px 0px":"4px",display:"flex",padding:e?[0,.25,0,.125]:[0,.25,0,.25],pb:.125,pl:.125,pr:.125,pt:.125,children:t.jsx(C,{color:l,size:"xs",children:n})})]})},fo=(e,n)=>{const i={critical:I.palette.primary[700],high:I.palette.error[500],low:I.palette.warning[200],medium:I.palette.warning[500],none:I.palette.gray[200]},a={disabled:I.palette.gray[400],enabled:I.palette.gray[800]},r={critical:I.palette.white,high:I.palette.white,low:I.palette.gray[800],medium:I.palette.gray[800],none:I.palette.gray[400]};return{iconColor:n<1?i.none:i[e],iconText:s.lodashExports.capitalize(e.charAt(0)),iconTextColor:n<1?r.none:r[e],textColor:n<1?a.disabled:a.enabled}},oe=({variant:e,value:n})=>{const{iconColor:i,iconText:a,iconTextColor:r,textColor:o}=fo(e,n),l=s.lodashExports.capitalize(e.charAt(0))+e.slice(1);return t.jsxs(y,{alignItems:"center",display:"inline-flex",gap:.5,minWidth:"43px",children:[t.jsx(Y,{id:l,place:"top",tip:l,children:t.jsx(y,{alignItems:"center",bgColor:i,borderRadius:"4px",cursor:"pointer",display:"flex",height:"22px",maxWidth:"22px",minWidth:"22px",children:t.jsx(C,{color:r,size:"sm",textAlign:"center",children:a})})}),t.jsx(C,{color:o,size:"sm",children:n})]})},ho=({critical:e,high:n,medium:i,low:a})=>t.jsxs(y,{alignItems:"center",display:"inline-flex",gap:1,children:[t.jsx(oe,{value:e,variant:"critical"}),t.jsx(oe,{value:n,variant:"high"}),t.jsx(oe,{value:i,variant:"medium"}),t.jsx(oe,{value:a,variant:"low"})]}),bo=s.dt.div`
|
|
2942
2942
|
${({theme:e})=>`
|
|
2943
2943
|
border-radius: ${e.spacing[.25]};
|
|
2944
2944
|
cursor: pointer;
|
|
@@ -2956,7 +2956,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2956
2956
|
display: block;
|
|
2957
2957
|
}
|
|
2958
2958
|
`}
|
|
2959
|
-
`,
|
|
2959
|
+
`,yo=({visibleElement:e,hiddenElement:n})=>t.jsxs(bo,{children:[e,t.jsx(y,{display:"none",position:"absolute",top:"100%",zIndex:10,children:n})]}),on=({customBadge:e=void 0,description:n,icon:i,onClick:a,requiresUpgrade:r=!1,title:o})=>{const l=s.nt();return t.jsxs(y,{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(y,{alignItems:"center",bgColor:l.palette.gray[300],borderRadius:l.spacing[.25],display:"flex",height:"24px",justify:"center",width:"24px",children:t.jsx(z,{icon:i,iconColor:l.palette.gray[800],iconSize:"xxs",ml:.5,mr:.5})}),t.jsxs(y,{children:[t.jsxs(y,{alignItems:"center",display:"inline-flex",gap:.5,children:[t.jsx(C,{color:l.palette.gray[800],size:"sm",children:o}),r?t.jsx(rn,{text:"Upgrade"}):void 0,e]}),t.jsx(C,{color:l.palette.gray[400],size:"xs",children:n})]})]})},$o=s.dt(s.m.div)`
|
|
2960
2960
|
${({theme:e})=>`
|
|
2961
2961
|
background-color: ${e.palette.white};
|
|
2962
2962
|
box-shadow: ${e.shadows.lg};
|
|
@@ -2979,7 +2979,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2979
2979
|
height: auto;
|
|
2980
2980
|
}
|
|
2981
2981
|
`}
|
|
2982
|
-
`,
|
|
2982
|
+
`,mo=({children:e,closeIconId:n="close-menu",isOpen:i,items:a,onClose:r,primaryButtonText:o,primaryOnClick:l,secondaryButtonText:c,secondaryOnClick:d,title:p})=>{const u=s.nt(),x=g.useRef(null),f=g.useCallback(h=>()=>{h(),r()},[r]);return g.useEffect(()=>{const h=["mousedown","touchstart"],$=b=>{var S;const m=b.target,w=document.getElementById("helpBtn"),j=document.getElementById("filterBtn"),v=(m===w||((w==null?void 0:w.contains(m))??!1)||m===j||(j==null?void 0:j.contains(m)))??!1;i&&!v&&!(((S=x.current)==null?void 0:S.contains(m))??!1)&&r()};return h.forEach(b=>{document.addEventListener(b,$,{passive:!0})}),()=>{h.forEach(b=>{document.removeEventListener(b,$)})}},[i,r]),t.jsx(s.LazyMotion,{features:s.domAnimation,children:t.jsx($o,{animate:i?{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(y,{height:"100%",position:"relative",children:[t.jsxs(y,{alignItems:"center",bgColor:u.palette.white,borderBottom:"1px solid",borderColor:u.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(C,{color:u.palette.black,display:"inline",fontWeight:"bold",size:"xl",children:p}),t.jsx(W,{icon:"close",iconColor:u.palette.gray[400],iconSize:"xs",iconTransform:"grow-4",iconType:"fa-light",id:n,onClick:r,px:.25,py:.25,variant:"ghost"})]}),t.jsxs(y,{display:"flex",flexDirection:"column",justify:"space-between",minHeight:"100vh",children:[t.jsxs(y,{py:1.25,children:[(a??[]).map(({customBadge:h,description:$,icon:b,onClick:m,requiresUpgrade:w,title:j})=>t.jsx(on,{customBadge:h,description:$,icon:b,onClick:f(m),requiresUpgrade:w,title:j},j)),e&&t.jsx(y,{px:1.25,children:e})]}),o===void 0?void 0:t.jsxs(y,{alignItems:"center",bgColor:u.palette.white,borderColor:u.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(P,{color:`${u.palette.primary[500]} !important`,onClick:d,pl:.5,pr:.5,variant:"ghost",children:c}),t.jsx(P,{onClick:l,type:"submit",children:o})]})]})]})})})},wo=(e,n)=>n>=50?`
|
|
2983
2983
|
${e.palette.gray[200]} 50%,
|
|
2984
2984
|
${e.palette.primary[500]} 50.05%,
|
|
2985
2985
|
${e.palette.primary[500]} ${n}%,
|
|
@@ -2990,7 +2990,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
2990
2990
|
${e.palette.primary[500]} 50%,
|
|
2991
2991
|
${e.palette.gray[200]} 50.05%,
|
|
2992
2992
|
${e.palette.gray[200]} 100%
|
|
2993
|
-
`,
|
|
2993
|
+
`,jo=s.dt.div`
|
|
2994
2994
|
${({theme:e,$min:n,$value:i})=>`
|
|
2995
2995
|
align-items: center;
|
|
2996
2996
|
align-self: stretch;
|
|
@@ -3006,7 +3006,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
3006
3006
|
${n>=0?`
|
|
3007
3007
|
${e.palette.primary[500]} ${i}%,
|
|
3008
3008
|
${e.palette.gray[200]} ${i}%
|
|
3009
|
-
`:
|
|
3009
|
+
`:wo(e,i)}
|
|
3010
3010
|
);
|
|
3011
3011
|
border-radius: ${e.spacing[.125]};
|
|
3012
3012
|
height: ${e.spacing[.25]};
|
|
@@ -3030,7 +3030,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
3030
3030
|
border: 1px solid ${e.palette.primary[500]};
|
|
3031
3031
|
}
|
|
3032
3032
|
`}
|
|
3033
|
-
`,
|
|
3033
|
+
`,ko=s.dt.div`
|
|
3034
3034
|
${({theme:e})=>`
|
|
3035
3035
|
align-items: center;
|
|
3036
3036
|
display: flex;
|
|
@@ -3044,7 +3044,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
3044
3044
|
font-size: ${e.spacing[.5]};
|
|
3045
3045
|
}
|
|
3046
3046
|
`}
|
|
3047
|
-
`,
|
|
3047
|
+
`,vo=s.dt.output`
|
|
3048
3048
|
${({theme:e})=>`
|
|
3049
3049
|
align-items: flex-end;
|
|
3050
3050
|
border-radius: ${e.spacing[.5]};
|
|
@@ -3055,7 +3055,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
3055
3055
|
padding: ${e.spacing[.625]} ${e.spacing[.75]};
|
|
3056
3056
|
width: 59px;
|
|
3057
3057
|
`}
|
|
3058
|
-
`,
|
|
3058
|
+
`,sn=({state:e,trackRef:n,index:i,name:a})=>{const r=g.useRef(null),{thumbProps:o,inputProps:l,isDragging:c}=s.$47b897dc8cdb026b$export$8d15029008292ae({index:i,trackRef:n,inputRef:r},e);return t.jsx("div",{...o,className:`thumb ${c?"dragging":""}`,children:t.jsx(s.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:t.jsx("input",{...l,"aria-label":a,ref:r})})})},Co=(e,n,i)=>Math.round((i-e)/(n-e)*100),So=e=>{const n=s.nt(),i=g.useRef(null),{label:a,minValue:r=0,maxValue:o=100,name:l,setValue:c,watch:d}=e,p=s.$a916eb452884faea$export$b7a616150fdb9f44(),u=s.$28f99e3e86e6ec45$export$e5fda3247f5d67f9({...e,numberFormatter:p,onChange($){c==null||c(l,$)},value:d==null?void 0:d(l)}),x=Co(r,o,u.getThumbValue(0)),{groupProps:f,trackProps:h}=s.$bcca50147b47f54d$export$56b2c08e277f365({...e,"aria-label":l,id:l},u,i);return t.jsx(V,{htmlFor:l,label:a,children:t.jsxs(y,{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 ${u.isDisabled?"disabled":""}`,ref:i,children:t.jsx(sn,{index:0,name:l,state:u,trackRef:i})}),t.jsxs(ko,{children:[t.jsx("p",{children:`${p.format(r)} (Low)`}),r<0&&t.jsx("p",{children:"0"}),t.jsx("p",{children:`${p.format(o)} (High)`})]})]}),t.jsx(vo,{children:t.jsx(C,{color:n.palette.gray[800],size:"sm",textAlign:"right",children:u.getThumbValueLabel(0)})})]})})},{getVariant:zo}=U(e=>({completed:`
|
|
3059
3059
|
background-color: ${e.palette.primary[500]};
|
|
3060
3060
|
color: ${e.palette.white};
|
|
3061
3061
|
|
|
@@ -3078,7 +3078,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
3078
3078
|
&::after {
|
|
3079
3079
|
background-color: ${e.palette.gray[200]};
|
|
3080
3080
|
}
|
|
3081
|
-
`})),
|
|
3081
|
+
`})),Io=s.dt.div`
|
|
3082
3082
|
${({theme:e})=>`
|
|
3083
3083
|
align-items: stretch;
|
|
3084
3084
|
background-color: ${e.palette.white};
|
|
@@ -3088,7 +3088,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
3088
3088
|
padding: ${`${e.spacing[1]} ${e.spacing[1]}`};
|
|
3089
3089
|
scroll-behavior: unset;
|
|
3090
3090
|
`}
|
|
3091
|
-
`,
|
|
3091
|
+
`,To=s.dt.div`
|
|
3092
3092
|
display: flex;
|
|
3093
3093
|
flex-direction: row;
|
|
3094
3094
|
margin-bottom: ${({theme:e})=>e.spacing[2]};
|
|
@@ -3096,7 +3096,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
3096
3096
|
&:last-child > div:first-child > span::after {
|
|
3097
3097
|
display: none;
|
|
3098
3098
|
}
|
|
3099
|
-
`,
|
|
3099
|
+
`,No=s.dt.div`
|
|
3100
3100
|
${({theme:e})=>`
|
|
3101
3101
|
display: inline-flex;
|
|
3102
3102
|
font-family: ${e.typography.type.primary};
|
|
@@ -3108,7 +3108,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
3108
3108
|
margin-right: ${e.spacing[.5]};
|
|
3109
3109
|
}
|
|
3110
3110
|
`}
|
|
3111
|
-
`,
|
|
3111
|
+
`,Eo=s.dt.span`
|
|
3112
3112
|
${({theme:e,$variant:n})=>`
|
|
3113
3113
|
border-radius: 6px;
|
|
3114
3114
|
display: inline-block;
|
|
@@ -3131,9 +3131,9 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
3131
3131
|
height: calc(100% - ${e.spacing[1]});
|
|
3132
3132
|
}
|
|
3133
3133
|
|
|
3134
|
-
${
|
|
3134
|
+
${zo(e,n)}
|
|
3135
3135
|
`}
|
|
3136
|
-
`,
|
|
3136
|
+
`,Fo=({button:{disabled:e=!1,text:n,type:i="button",onClick:a},steps:r})=>{const[o,l]=g.useState(1),c=g.useCallback((d,p)=>()=>{l(u=>u+d),p==null||p()},[]);return t.jsx(Io,{children:r.map((d,p)=>{const{content:u,title:x,nextAction:f,previousAction:h}=d,$=p+1,b=$===o?"current":"disabled",m=$<o?"completed":b;return t.jsxs(To,{children:[t.jsx(y,{maxWidth:"40px",position:"relative",children:t.jsx(Eo,{$variant:m,children:m==="completed"?t.jsx(z,{icon:"check",iconSize:"xs",iconType:"fa-solid"}):$})}),t.jsxs(y,{ml:1.5,width:"100%",children:[t.jsx(M,{fontWeight:"bold",lineSpacing:1.25,mb:1.5,size:"xs",children:x}),m==="current"&&t.jsxs(y,{children:[u,t.jsxs(No,{children:[o>1&&t.jsx(P,{disabled:d.isDisabledPrevious??!1,onClick:c(-1,h),variant:"tertiary",children:"Previous"}),o<r.length?t.jsx(P,{disabled:d.isDisabledNext??!1,onClick:c(1,f),variant:"primary",children:"Next step"}):t.jsx(P,{disabled:e,onClick:a,type:i,variant:"primary",children:n})]})]})]})]},d.title)})})},Ro=s.dt.button`
|
|
3137
3137
|
${({theme:e})=>`
|
|
3138
3138
|
align-items: center;
|
|
3139
3139
|
background-color: ${e.palette.white};
|
|
@@ -3175,7 +3175,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
3175
3175
|
background-color: ${e.palette.gray[100]};
|
|
3176
3176
|
}
|
|
3177
3177
|
`}
|
|
3178
|
-
`,
|
|
3178
|
+
`,Do={add:{icon:"plus"},approve:{icon:"check"},disabled:{icon:"ban"},reject:{icon:"xmark"},submit:{icon:"arrow-right"},success:{icon:"check"}},Po=({disabled:e=!1,icon:n,id:i,label:a,name:r,onClick:o,type:l="button",variant:c})=>{const d=s.nt(),p=t.jsxs(Ro,{"aria-label":r??void 0,className:c,disabled:e,id:i,onClick:o,type:l,children:[t.jsx(z,{clickable:!1,icon:n??Do[c].icon,iconSize:r===void 0?"xxs":"xs",iconType:"fa-light"}),r??void 0]});return t.jsxs(y,{alignItems:"center",display:"flex",children:[p,a&&t.jsx(C,{color:d.palette.gray[800],ml:.5,size:"sm",children:a})]})},Lo=({items:e})=>t.jsx(fa,{children:e.map(({isActive:n,label:i,onClick:a},r)=>t.jsx(xa,{className:n?"active":"",onClick:a,type:"button",children:t.jsx(M,{color:"inherit",fontWeight:"semibold",size:"sm",sizeSm:"xs",children:i})},`${i}-${r}`))}),Bo=s.dt.div`
|
|
3179
3179
|
${({theme:e})=>`
|
|
3180
3180
|
align-items: center;
|
|
3181
3181
|
background-color: ${e.palette.white};
|
|
@@ -3197,7 +3197,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
3197
3197
|
border: 1px solid ${e.palette.gray[600]};
|
|
3198
3198
|
}
|
|
3199
3199
|
`}
|
|
3200
|
-
`,
|
|
3200
|
+
`,Mo=s.dt.div`
|
|
3201
3201
|
${({theme:e})=>`
|
|
3202
3202
|
display: flex;
|
|
3203
3203
|
flex-direction: column;
|
|
@@ -3268,7 +3268,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
3268
3268
|
}
|
|
3269
3269
|
}
|
|
3270
3270
|
`}
|
|
3271
|
-
`,
|
|
3271
|
+
`,ln=({date:e,description:n,title:i})=>{const a=s.nt();return t.jsxs(Bo,{className:"timeline-card",children:[t.jsx(C,{color:a.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:e}),t.jsx(C,{color:a.palette.gray[800],fontWeight:"bold",lineSpacing:1.5,mb:.5,size:"md",textAlign:"center",children:i}),t.jsx("div",{children:n.map((r,o)=>{const l=`${r}#${o}`;return t.jsx(C,{size:"sm",textAlign:"center",wordBreak:"break-word",children:r},l)})})]})},Wo=({items:e})=>t.jsx(Mo,{children:e.map((n,i)=>t.jsx(ln,{date:n.date,description:n.description,title:n.title},`${n.title}-${i}`))}),Ao=s.dt.div`
|
|
3272
3272
|
${({theme:e})=>`
|
|
3273
3273
|
align-items: center;
|
|
3274
3274
|
display: flex;
|
|
@@ -3298,7 +3298,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
3298
3298
|
width: 320px;
|
|
3299
3299
|
}
|
|
3300
3300
|
`}
|
|
3301
|
-
`,
|
|
3301
|
+
`,Vo=s.dt.button`
|
|
3302
3302
|
${({theme:e})=>`
|
|
3303
3303
|
align-items: center;
|
|
3304
3304
|
background: linear-gradient(
|
|
@@ -3327,7 +3327,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
3327
3327
|
color: ${e.palette.white};
|
|
3328
3328
|
}
|
|
3329
3329
|
`}
|
|
3330
|
-
`,
|
|
3330
|
+
`,Ho=({defaultSelection:e,options:n,handleClick:i})=>{const[a,r]=g.useState(e??n[0]),o=g.useCallback(l=>()=>{r(l),i(l)},[i]);return t.jsx(Ao,{children:n.map((l,c)=>t.jsx(Vo,{className:`${l.includes(a)&&"selected"}`,onClick:o(l),children:t.jsx(C,{color:"inherit",fontWeight:"bold",size:"md",sizeSm:"sm",textAlign:"center",children:l})},`${l}-${c}`))})},Oo={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:""},_o=({run:e,steps:n,onFinish:i})=>{const[a,r]=g.useState(e),[o,l]=g.useState(0),c=g.useCallback(d=>{const{action:p,index:u,status:x,type:f}=d;[s.EVENTS.STEP_AFTER,s.EVENTS.TARGET_NOT_FOUND].includes(f)?l(u+(p===s.ACTIONS.PREV?-1:1)):([s.STATUS.FINISHED,s.STATUS.SKIPPED].includes(x)||p==="close")&&(r(!1),s.lodashExports.isUndefined(i)||i())},[i]);return t.jsx(s.components_default,{callback:c,continuous:!0,disableOverlayClose:!0,disableScrollParentFix:!0,run:a,spotlightClicks:!0,stepIndex:o,steps:n,styles:{buttonNext:{display:o===n.length-1?"none":"block"},options:{zIndex:9999}}})},Go=s.dt.form`
|
|
3331
3331
|
${({theme:e})=>`
|
|
3332
3332
|
align-items: center;
|
|
3333
3333
|
background: ${e.palette.gray[50]};
|
|
@@ -3355,7 +3355,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
3355
3355
|
width: 320px;
|
|
3356
3356
|
}
|
|
3357
3357
|
`}
|
|
3358
|
-
`,
|
|
3358
|
+
`,Uo=s.dt.div`
|
|
3359
3359
|
align-items: flex-start;
|
|
3360
3360
|
align-self: stretch;
|
|
3361
3361
|
display: flex;
|
|
@@ -3369,7 +3369,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
3369
3369
|
text-align: center;
|
|
3370
3370
|
}
|
|
3371
3371
|
}
|
|
3372
|
-
`,
|
|
3372
|
+
`,Yo=s.dt.div`
|
|
3373
3373
|
${({theme:e})=>`
|
|
3374
3374
|
align-items: flex-start;
|
|
3375
3375
|
align-self: stretch;
|
|
@@ -3390,4 +3390,4 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(a
|
|
|
3390
3390
|
flex-direction: column;
|
|
3391
3391
|
}
|
|
3392
3392
|
`}
|
|
3393
|
-
`,
|
|
3393
|
+
`,Ko=({children:e,name:n,onSubmit:i,submitDisabled:a,submitLabel:r="Submit"})=>t.jsx(Go,{"aria-label":n,name:n,onSubmit:i,children:t.jsxs(Uo,{children:[e,t.jsx(P,{disabled:a,type:"submit",children:r})]})});exports.Accordion=An;exports.AccordionContent=xt;exports.ActionButton=Be;exports.Alert=qn;exports.Avatar=ii;exports.BaseButtonComponent=_e;exports.BaseComponent=ee;exports.BaseSpanComponent=gt;exports.BaseTextComponent=Ge;exports.Button=P;exports.Button$1=ke;exports.ButtonToolbarCenter=ar;exports.ButtonToolbarRow=or;exports.ButtonToolbarStartRow=rr;exports.Calendar=wt;exports.Calendar$1=zt;exports.Calendar$2=It;exports.CalendarCell=mt;exports.CalendarGrid=ze;exports.CardHeader=Se;exports.CardWithImage=oi;exports.CardWithInput=Oi;exports.CardWithOptions=Et;exports.CardWithSelector=Xi;exports.CardWithSwitch=Qi;exports.Carousel=ra;exports.CategoryTag=Ve;exports.Checkbox=be;exports.CodeSnippet=sa;exports.Col=lr;exports.ColumnsModal=Sa;exports.ComboBox=pi;exports.ComboBoxField=De;exports.Container=y;exports.ContentCard=Jt;exports.ContentCardCarousel=Pa;exports.CustomThemeProvider=Fn;exports.DateField=kt;exports.DateSelector=se;exports.Description=an;exports.Dialog=Te;exports.Divider=J;exports.Editable=Ti;exports.EmptyButton=He;exports.EmptyState=Wa;exports.EventDate=Zt;exports.FilePreview=bt;exports.FilterControl=Kt;exports.FilterForm=We;exports.Filters=Na;exports.FiltersList=Ce;exports.FixedTabs=Lo;exports.Form=Ha;exports.FormItem=Yo;exports.Gap=dr;exports.GridContainer=_a;exports.GroupSelector=Ua;exports.Header=Ie;exports.Header$1=Vt;exports.Heading=M;exports.Icon=z;exports.IconButton=W;exports.IndicatorCard=Ya;exports.InfoSidebar=Ka;exports.InnerForm=Aa;exports.Input=Ke;exports.InputDate=St;exports.InputDateRange=Ci;exports.InputDateTime=Ii;exports.InputFile=Ri;exports.InputNumber=Tt;exports.InputNumberRange=Nt;exports.InputTags=Pi;exports.InteractiveCard=Za;exports.InteractiveIcon=en;exports.ItemList=tn;exports.ItemSearching=we;exports.Label=Ue;exports.LanguageSelector=ir;exports.Link=q;exports.ListItem=ye;exports.ListItemsWrapper=Ot;exports.LittleFlag=xr;exports.Loading=jr;exports.LocationCode=Bt;exports.Logo=Ir;exports.LogoCarousel=Sr;exports.MemoizedImage=G;exports.Menu=Tr;exports.MenuItem=on;exports.MessageBanner=Er;exports.Modal=Xt;exports.ModalConfirm=Ht;exports.ModalFooter=Mt;exports.Notification=Lr;exports.NotificationSign=Wt;exports.NumberField=ve;exports.NumberInput=Wr;exports.OAuthSelector=Vr;exports.Option=yt;exports.OptionBoxContainer=Ze;exports.OptionContainer=Oe;exports.OptionContainer$1=Qt;exports.OptionsSelector=Fr;exports.OutlineContainer=V;exports.PhoneInput=Vi;exports.PlanCard=_r;exports.PopUp=Gr;exports.Popover=he;exports.PremiumFeature=rn;exports.PreviewPanel=_t;exports.PriorityScore=Yr;exports.Progress=to;exports.ProgressBar=Jr;exports.RadioButton=qe;exports.RecommendedTag=nn;exports.Row=gr;exports.ScrollButtons=Ae;exports.ScrollUpButton=io;exports.Search=Q;exports.SearchBar=go;exports.SearchPanel=Ut;exports.SeverityBadge=xo;exports.SeverityOverview=ho;exports.SeverityOverviewBadge=oe;exports.ShowOnHover=yo;exports.SingleColumFilters=qt;exports.SlideOutMenu=mo;exports.Slider=So;exports.Span=je;exports.StepLapse=Fo;exports.Tab=At;exports.TableButton=Po;exports.Tabs=Xe;exports.Tag=X;exports.TagsField=Le;exports.Text=C;exports.TextArea=Hi;exports.Thumb=sn;exports.TimeField=vt;exports.TimeLine=Wo;exports.TimeLineCard=ln;exports.Toggle=Pt;exports.ToggleButton=Ho;exports.Tooltip=Y;exports.Tour=_o;exports.TwoColumnsFilters=Ia;exports.WebForm=Ko;exports.baseStep=Oo;exports.getStyledConfig=fe;exports.hiddenProps=pt;exports.icons=Nn;exports.setBorder=pe;exports.setDisplay=ge;exports.setInteraction=xe;exports.setMargin=ce;exports.setPadding=le;exports.setPosition=de;exports.setText=ue;exports.theme=I;exports.uniqueIcons=En;exports.useCarousel=Ft;exports.useClickOutside=te;exports.useCloudinaryImage=Rt;exports.useColumnsModal=Gi;exports.useConfirmDialog=Ea;exports.useDebouncedCallback=Dt;exports.useModal=Ne;exports.useSearch=Ui;exports.variantBuilder=U;
|