@fluidattacks/design 3.8.10 → 3.8.11
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.d.ts +5 -0
- package/dist/components/avatar/index.js +1 -0
- package/dist/components/avatar/index.stories.d.ts +9 -0
- package/dist/components/avatar/styles.d.ts +3 -0
- package/dist/components/avatar/types.d.ts +15 -0
- package/dist/components/button/index.js +1 -1
- package/dist/components/card/card-header/index.js +1 -1
- package/dist/components/card/card-with-image/index.js +1 -1
- package/dist/components/card/card-with-input/index.js +1 -1
- package/dist/components/card/card-with-options/index.js +1 -1
- package/dist/components/card/card-with-selector/index.js +1 -1
- package/dist/components/card/card-with-switch/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/cloud-image/index.js +1 -1
- package/dist/components/code-snippet/index.js +1 -1
- package/dist/components/code-snippet/location-code/index.js +1 -1
- package/dist/components/colors/index.js +1 -1
- package/dist/components/confirm-dialog/index.js +1 -1
- package/dist/components/container/index.js +1 -1
- package/dist/components/content-card/category-tag/index.js +1 -1
- package/dist/components/content-card/event-date/index.js +1 -1
- package/dist/components/content-card/index.js +1 -1
- package/dist/components/content-card-carousel/index.js +1 -1
- package/dist/components/content-card-carousel/scroll-buttons/index.js +1 -1
- package/dist/components/divider/index.js +1 -1
- package/dist/components/empty-state/empty-button/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/file-preview/index.js +1 -1
- package/dist/components/form/index.js +1 -1
- package/dist/components/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/filters-list/index.js +1 -1
- package/dist/components/modal/filters-modal/single-column-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/two-columns-filters/index.js +1 -1
- package/dist/components/modal/footer/index.js +1 -1
- package/dist/components/modal/header/index.js +1 -1
- package/dist/components/modal/index.js +1 -1
- package/dist/components/modal/modal-confirm/index.js +1 -1
- package/dist/components/notification/index.js +1 -1
- package/dist/components/notification-sign/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/oauth-selector/index.js +1 -1
- package/dist/components/oauth-selector/option-container/index.js +1 -1
- package/dist/components/plan-card/index.js +1 -1
- package/dist/components/plan-card/recommended-tag/index.js +1 -1
- package/dist/components/pop-up/description/index.js +1 -1
- package/dist/components/pop-up/index.js +1 -1
- package/dist/components/premium-feature/index.js +1 -1
- package/dist/components/priority-score/index.js +1 -1
- package/dist/components/progress/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.js +1 -1
- package/dist/components/slide-out-menu/menu-item/index.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/thumb/index.js +1 -1
- package/dist/components/step-lapse/index.js +1 -1
- package/dist/components/table-button/index.js +1 -1
- package/dist/components/tabs/fixed-tabs/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/tab/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/timeline/card/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toggle/index.js +1 -1
- package/dist/components/toggle-buttons/index.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tour/index.js +1 -1
- package/dist/components/typography/heading/index.js +1 -1
- package/dist/components/typography/index.js +1 -1
- package/dist/components/typography/span/index.js +1 -1
- package/dist/components/typography/text/index.js +1 -1
- package/dist/components/web-form/index.js +1 -1
- package/dist/{components-BN5SnXhp.mjs → components-DAJj1RPV.mjs} +1942 -1796
- package/dist/{components-DdA5GVFG.js → components-DupQHKRW.js} +277 -197
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-columns-modal.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/vendor-BiCYkoh5.js +223 -0
- package/dist/{vendor-BPuY1wZ5.mjs → vendor-Cl-gDlvC.mjs} +15477 -14057
- package/package.json +4 -4
- package/dist/vendor-Du4Zm0P4.js +0 -223
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),p=require("react"),s=require("./vendor-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),p=require("react"),s=require("./vendor-BiCYkoh5.js"),V=require("react-dom"),Re=require("react-router-dom"),U=e=>({getVariant:(n,i)=>e(n)[i]}),lt=["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"],xn={25:"#fcfcfd",50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#2f394b",800:"#212a36",900:"#161b25"},fn={25:"#fef2f3",50:"#fddfe2",100:"#fbbac0",200:"#f9959e",300:"#f65e6a",400:"#f32637",500:"#bf0b1a",600:"#ac0a17",700:"#9a0915",800:"#870812",900:"#750710"},hn={25:"",50:"",100:"#ffe6ff",200:"",300:"#b8075d",400:"",500:"#7f0540",600:"",700:"#59042d",800:"",900:"#460323"},bn={25:"",50:"#fef3f2",100:"",200:"#fecdca",300:"",400:"",500:"#f04438",600:"",700:"#b42318",800:"",900:""},$n={25:"",50:"#fffaeb",100:"",200:"#fef0c7",300:"",400:"#ffd562",500:"#fdb022",600:"#dc6803",700:"#b54708",800:"",900:""},yn={25:"",50:"#f6fef9",100:"",200:"#a6f4c5",300:"",400:"",500:"#12b76a",600:"",700:"#027a48",800:"",900:""},mn={25:"",50:"#eff8ff",100:"",200:"#b2ddff",300:"",400:"",500:"#2e90fa",600:"",700:"#175cd3",800:"",900:""},wn={"01":"linear-gradient(45deg, #f32637 0%, #b8075d 100%)","02":"linear-gradient(45deg, #fcfcfd 0%, #667085 100%)"},jn={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"}},kn={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)"},Cn={mobile:"480px",tablet:"960px",sm:"1024px",md:"1440px",lg:"1920px"},vn={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"},Sn=["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"],zn=[["fal","arrow-down"],["fal","arrow-left"],["fal","arrow-right"],["fal","arrow-up"],["fal","plus"],["fal","minus"],["fas","check"],["fas","circle-question"]],v={typography:jn,shadows:kn,breakpoints:Cn,spacing:vn,palette:{primary:fn,complementary:hn,error:bn,info:mn,warning:$n,success:yn,black:"#0c111d",white:"#ffffff",gray:xn,gradients:wn}},In=({children:e})=>t.jsx(s.ot,{theme:v,children:e}),T=(e,n)=>n===void 0?"":`${e}: ${n};`,oe=e=>{const n=e.py??e.pt??0,i=e.px??e.pr??0,r=e.py??e.pb??0,a=e.px??e.pl??0;if(e.padding){const[o,l,c,d]=e.padding;return`padding: ${v.spacing[o]} ${v.spacing[l]} ${v.spacing[c]} ${v.spacing[d]};`}return`padding: ${v.spacing[n]} ${v.spacing[i]} ${v.spacing[r]} ${v.spacing[a]};`},se=e=>{const n=e.my??e.mt??0,i=e.mx??e.mr??0,r=e.my??e.mb??0,a=e.mx??e.ml??0;if(e.margin){const[o,l,c,d]=e.margin;return`margin: ${v.spacing[o]} ${v.spacing[l]} ${v.spacing[c]} ${v.spacing[d]};`}return`margin: ${v.spacing[n]} ${v.spacing[i]} ${v.spacing[r]} ${v.spacing[a]};`},le=e=>{const n=T("position",e.position),i=T("top",e.top),r=T("right",e.right),a=T("bottom",e.bottom),o=T("left",e.left),l=T("z-index",e.zIndex);return`
|
|
2
2
|
${n}
|
|
3
3
|
${i}
|
|
4
4
|
${r}
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
${o}
|
|
14
14
|
${l}
|
|
15
15
|
${c}
|
|
16
|
-
`},
|
|
17
|
-
${In(e.scroll)}
|
|
16
|
+
`},Tn=e=>e.includes("x")?"overflow-x: auto;":"",Nn=e=>e.includes("y")?"overflow-y: auto;":"",de=e=>{const n=e.scroll?`
|
|
18
17
|
${Tn(e.scroll)}
|
|
19
|
-
|
|
18
|
+
${Nn(e.scroll)}
|
|
19
|
+
`:"",i=T("visibility",e.visibility),r=T("display",e.display),a=T("height",e.height),o=T("width",e.width),l=T("max-height",e.maxHeight),c=T("max-width",e.maxWidth),d=T("min-height",e.minHeight),u=T("min-width",e.minWidth),g=T("box-shadow",e.shadow?v.shadows[e.shadow]:void 0),x=T("gap",e.gap===void 0?void 0:v.spacing[e.gap]),f=T("background-color",e.bgColor),h=T("background",e.bgGradient),y=T("flex-direction",e.flexDirection),$=T("flex-grow",e.flexGrow),m=T("justify-content",e.justify),w=T("justify-self",e.justifySelf),j=T("align-items",e.alignItems),I=T("align-self",e.alignSelf),S=T("flex-wrap",e.wrap);return`
|
|
20
20
|
${n}
|
|
21
21
|
${i}
|
|
22
22
|
${r}
|
|
@@ -25,19 +25,19 @@
|
|
|
25
25
|
${l}
|
|
26
26
|
${c}
|
|
27
27
|
${d}
|
|
28
|
-
${g}
|
|
29
28
|
${u}
|
|
30
|
-
${
|
|
31
|
-
${h}
|
|
29
|
+
${g}
|
|
32
30
|
${f}
|
|
33
|
-
${
|
|
31
|
+
${h}
|
|
32
|
+
${x}
|
|
34
33
|
${y}
|
|
34
|
+
${$}
|
|
35
35
|
${m}
|
|
36
36
|
${w}
|
|
37
37
|
${j}
|
|
38
38
|
${I}
|
|
39
|
-
${
|
|
40
|
-
`},pe=e=>{const n=T("color",e.color),i=T("font-family",e.fontFamily),r=T("font-size",e.fontSize),a=T("font-weight",e.fontWeight),o=T("line-spacing",e.letterSpacing),l=T("line-height",e.lineSpacing),c=T("text-align",e.textAlign),d=T("text-decoration",e.textDecoration),
|
|
39
|
+
${S}
|
|
40
|
+
`},pe=e=>{const n=T("color",e.color),i=T("font-family",e.fontFamily),r=T("font-size",e.fontSize),a=T("font-weight",e.fontWeight),o=T("line-spacing",e.letterSpacing),l=T("line-height",e.lineSpacing),c=T("text-align",e.textAlign),d=T("text-decoration",e.textDecoration),u=T("text-overflow",e.textOverflow),g=T("white-space",e.whiteSpace),x=T("word-break",e.wordBreak),f=T("word-wrap",e.wordWrap);return`
|
|
41
41
|
${n}
|
|
42
42
|
${i}
|
|
43
43
|
${r}
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
${l}
|
|
47
47
|
${c}
|
|
48
48
|
${d}
|
|
49
|
-
${g}
|
|
50
49
|
${u}
|
|
51
|
-
${
|
|
50
|
+
${g}
|
|
52
51
|
${x}
|
|
53
|
-
|
|
52
|
+
${f}
|
|
53
|
+
`},ge=e=>{const n=T("cursor",e.cursor),i=T("border-color",e.borderColorHover),r=T("background-color",e.bgColorHover),a=T("box-shadow",e.shadowHover===void 0?void 0:v.shadows[e.shadowHover]),o=T("transition",e.transition);return`
|
|
54
54
|
${n}
|
|
55
55
|
|
|
56
56
|
&:hover {
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
${r}
|
|
60
60
|
${a}
|
|
61
61
|
}
|
|
62
|
-
`},ue=()=>({shouldForwardProp:e=>!
|
|
62
|
+
`},ue=()=>({shouldForwardProp:e=>!lt.includes(e)}),ee=s.dt.div.withConfig(ue())`
|
|
63
63
|
${oe}
|
|
64
64
|
${se}
|
|
65
65
|
${le}
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
${pe}
|
|
84
84
|
${ce}
|
|
85
85
|
${ge}
|
|
86
|
-
`,
|
|
86
|
+
`,ct=s.dt.span.withConfig(ue())`
|
|
87
87
|
${oe}
|
|
88
88
|
${se}
|
|
89
89
|
${le}
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
${pe}
|
|
92
92
|
${ce}
|
|
93
93
|
${ge}
|
|
94
|
-
`,
|
|
94
|
+
`,En=s.dt(ee)`
|
|
95
95
|
${({theme:e,$center:n=!1,$styleMd:i,$styleSm:r})=>`
|
|
96
96
|
${n?"margin: auto;":""}
|
|
97
97
|
scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
|
|
@@ -108,13 +108,13 @@
|
|
|
108
108
|
${r};
|
|
109
109
|
}
|
|
110
110
|
`}
|
|
111
|
-
`,b=p.forwardRef(function({as:n="div",center:i,children:r,id:a,onHover:o,onLeave:l,styleMd:c,styleSm:d,...
|
|
112
|
-
${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[800],$display:r="block",$fontFamily:a=e.typography.type.primary,$fontWeight:o="bold",$letterSpacing:l=0,$lineSpacing:c=1.5,$lineSpacingSm:d,$size:
|
|
111
|
+
`,b=p.forwardRef(function({as:n="div",center:i,children:r,id:a,onHover:o,onLeave:l,styleMd:c,styleSm:d,...u},g){return t.jsx(En,{$center:i,$styleMd:c,$styleSm:d,as:n,id:a,onMouseLeave:l,onMouseOver:o,ref:g,...u,children:r})}),Rn=s.dt(_e)`
|
|
112
|
+
${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[800],$display:r="block",$fontFamily:a=e.typography.type.primary,$fontWeight:o="bold",$letterSpacing:l=0,$lineSpacing:c=1.5,$lineSpacingSm:d,$size:u,$sizeMd:g,$sizeSm:x,$textFill:f="unset",$wordBreak:h="normal"})=>`
|
|
113
113
|
background: ${n};
|
|
114
114
|
color: ${i};
|
|
115
115
|
display: ${r};
|
|
116
116
|
font-family: ${a};
|
|
117
|
-
font-size: ${e.typography.heading[
|
|
117
|
+
font-size: ${e.typography.heading[u]};
|
|
118
118
|
font-weight: ${e.typography.weight[o]};
|
|
119
119
|
letter-spacing: ${l};
|
|
120
120
|
line-height: ${e.spacing[c]};
|
|
@@ -122,27 +122,27 @@
|
|
|
122
122
|
word-break: ${h};
|
|
123
123
|
background-clip: text;
|
|
124
124
|
-webkit-background-clip: text;
|
|
125
|
-
-webkit-text-fill-color: ${
|
|
125
|
+
-webkit-text-fill-color: ${f};
|
|
126
126
|
|
|
127
127
|
@media screen
|
|
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[g??u]};
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
135
|
-
font-size: ${e.typography.heading[
|
|
135
|
+
font-size: ${e.typography.heading[x??u]};
|
|
136
136
|
line-height: ${e.spacing[d??c]};
|
|
137
137
|
}
|
|
138
138
|
`}
|
|
139
|
-
`,
|
|
140
|
-
${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[600],$display:r="block",$fontFamily:a=e.typography.type.primary,$fontWeight:o="regular",$letterSpacing:l=0,$lineSpacing:c=1.25,$lineSpacingSm:d,$size:
|
|
139
|
+
`,dt=s.dt(_e)`
|
|
140
|
+
${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[600],$display:r="block",$fontFamily:a=e.typography.type.primary,$fontWeight:o="regular",$letterSpacing:l=0,$lineSpacing:c=1.25,$lineSpacingSm:d,$size:u,$sizeMd:g,$sizeSm:x,$textFill:f="unset",$wordBreak:h="normal"})=>`
|
|
141
141
|
background: ${n};
|
|
142
142
|
color: ${i};
|
|
143
143
|
display: ${r};
|
|
144
144
|
font-family: ${a};
|
|
145
|
-
font-size: ${e.typography.text[
|
|
145
|
+
font-size: ${e.typography.text[u]};
|
|
146
146
|
font-weight: ${e.typography.weight[o]};
|
|
147
147
|
letter-spacing: ${l};
|
|
148
148
|
line-height: ${e.spacing[c]};
|
|
@@ -150,21 +150,21 @@
|
|
|
150
150
|
word-break: ${h};
|
|
151
151
|
background-clip: text;
|
|
152
152
|
-webkit-background-clip: text;
|
|
153
|
-
-webkit-text-fill-color: ${
|
|
153
|
+
-webkit-text-fill-color: ${f};
|
|
154
154
|
|
|
155
155
|
@media screen
|
|
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[g??u]};
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
163
|
-
font-size: ${e.typography.text[
|
|
163
|
+
font-size: ${e.typography.text[x??u]};
|
|
164
164
|
line-height: ${e.spacing[d??c]};
|
|
165
165
|
}
|
|
166
166
|
`}
|
|
167
|
-
`,
|
|
167
|
+
`,Dn=s.dt.span`
|
|
168
168
|
${({theme:e,$color:n=e.palette.gray[600],$content:i=void 0,$display:r="inline",$fontWeight:a="regular",$size:o,$lineSpacing:l=1.25})=>`
|
|
169
169
|
color: ${n};
|
|
170
170
|
display: ${r};
|
|
@@ -176,11 +176,11 @@
|
|
|
176
176
|
|
|
177
177
|
${i===void 0?"":`&::after { content: "${i}"; }`}
|
|
178
178
|
`}
|
|
179
|
-
`,M=p.forwardRef(function({bgGradient:n,children:i,className:r,color:a,display:o,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:
|
|
179
|
+
`,M=p.forwardRef(function({bgGradient:n,children:i,className:r,color:a,display:o,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:u,lineSpacingSm:g,size:x,sizeMd:f,sizeSm:h,textFill:y,wordBreak:$,...m},w){return t.jsx(Rn,{$bgGradient:n,$color:a,$display:o,$fontFamily:l,$fontWeight:c,$letterSpacing:d,$lineSpacing:u,$lineSpacingSm:g,$size:x,$sizeMd:f,$sizeSm:h,$textFill:y,$wordBreak:$,className:r,ref:w,...m,children:i})}),we=p.forwardRef(function({children:n,color:i,content:r,display:a,fontFamily:o,fontWeight:l,letterSpacing:c,lineSpacing:d,lineSpacingSm:u,size:g,sizeMd:x,sizeSm:f,...h},y){return t.jsx(Dn,{$color:i,$content:r,$display:a,$fontFamily:o,$fontWeight:l,$letterSpacing:c,$lineSpacing:d,$lineSpacingSm:u,$size:g,$sizeMd:x,$sizeSm:f,ref:y,...h,children:n})}),k=p.forwardRef(function({bgGradient:n,children:i,className:r,color:a,display:o,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:u,lineSpacingSm:g,size:x,sizeMd:f,sizeSm:h,textFill:y,wordBreak:$,...m},w){return t.jsx(dt,{$bgGradient:n,$color:a,$display:o,$fontFamily:l,$fontWeight:c,$letterSpacing:d,$lineSpacing:u,$lineSpacingSm:g,$size:x,$sizeMd:f,$sizeSm:h,$textFill:y,$wordBreak:$,className:r,ref:w,...m,children:i})}),pt=({item:e})=>{const n=e.description&&typeof e.description=="string"?t.jsx(k,{mb:e.extraElement?.5:void 0,size:"sm",children:e.description}):e.description??void 0;return t.jsxs(b,{display:"block",id:`panel-${e.title}`,padding:[.75,.75,.75,.75],children:[n,e.extraElement?t.jsx(b,{children:e.extraElement}):void 0]})},Fn={xl:"96px",lg:"64px",md:"32px",sm:"24px",xs:"16px",xxs:"12px",xxss:"10px"},Pn=s.dt(ct)`
|
|
180
180
|
${({$clickable:e,$color:n="inherit",$disabled:i=!1,$hoverColor:r,$rotation:a,$size:o,$secondaryColor:l})=>{const c=r?"":"brightness(50%)",d=r??"";return`
|
|
181
181
|
color: ${n};
|
|
182
182
|
cursor: ${e?"pointer":"inherit"};
|
|
183
|
-
font-size: ${
|
|
183
|
+
font-size: ${Fn[o]};
|
|
184
184
|
line-height: 0;
|
|
185
185
|
vertical-align: middle;
|
|
186
186
|
pointer-events: inherit;
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
&:hover:not([disabled]) {
|
|
213
213
|
transform: scale(1.2);
|
|
214
214
|
}
|
|
215
|
-
`;const
|
|
215
|
+
`;const C=p.forwardRef(function({clickable:n,disabled:i,hoverColor:r,icon:a,iconClass:o="",iconColor:l,iconMask:c,iconSize:d,iconTransform:u,iconType:g="fa-solid",onClick:x,rotation:f,spanClass:h,secondaryColor:y,...$},m){return t.jsx(Pn,{$clickable:n,$color:l,$disabled:i,$hoverColor:r,$rotation:f,$secondaryColor:y,$size:d,className:h,"data-testid":`${a}-icon`,onClick:x,ref:m,...$,children:t.jsx("i",{className:`${g} fa-${a} ${o}`,...c!==void 0?{"data-fa-mask":c}:{},...u!==void 0?{"data-fa-transform":u}:{}})},`${g}-${a}`)}),Ln=p.forwardRef(function({aligned:n="end",items:i,bgColor:r},a){const o=s.nt(),[l,c]=p.useState(!1),[d,u]=p.useState(-1),g=p.useCallback(x=>()=>{u(x),c(x===d?f=>!f:!0)},[d]);return t.jsx(b,{ref:a,children:i.map((x,f)=>{const h=f===d&&l;return t.jsxs(b,{bgColor:r??o.palette.white,children:[t.jsx(b,{"aria-controls":`panel-${x.title}`,"aria-expanded":l,"aria-label":x.title,as:"button",bgColor:r??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:g(f),padding:[.75,.75,.75,.75],width:"100%",children:t.jsxs(b,{as:"summary",display:"flex",flexDirection:n==="end"?"row":"row-reverse",gap:.75,justify:"space-between",width:"100%",children:[t.jsx(k,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",sizeSm:"sm",textAlign:"start",children:x.title}),t.jsx(C,{icon:h?"chevron-up":"chevron-down",iconColor:o.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]})}),h&&t.jsx(pt,{item:x})]},x.title)})})}),Mn=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:Wn}=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
|
+
`})),Bn=s.dt.div`
|
|
268
268
|
${({theme:e,$variant:n})=>`
|
|
269
269
|
background: transparent;
|
|
270
270
|
align-items: center;
|
|
@@ -284,9 +284,9 @@
|
|
|
284
284
|
background-color: transparent;
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
-
${
|
|
287
|
+
${Wn(e,n??"error")}
|
|
288
288
|
`}
|
|
289
|
-
`,
|
|
289
|
+
`,An=s.dt.div`
|
|
290
290
|
padding-right: 4px;
|
|
291
291
|
width: 100%;
|
|
292
292
|
`,{getVariant:On}=U(e=>({ghost:`
|
|
@@ -363,7 +363,7 @@
|
|
|
363
363
|
background-color: ${e.palette.primary[500]};
|
|
364
364
|
color: ${e.palette.white};
|
|
365
365
|
}
|
|
366
|
-
`})),
|
|
366
|
+
`})),gt=s.dt(He)`
|
|
367
367
|
${({theme:e,$variant:n})=>`
|
|
368
368
|
align-items: center;
|
|
369
369
|
border-radius: var(--btn-spacing);
|
|
@@ -387,7 +387,7 @@
|
|
|
387
387
|
|
|
388
388
|
${On(e,n??"primary")}
|
|
389
389
|
`}
|
|
390
|
-
`,
|
|
390
|
+
`,Hn=s.dt(gt)`
|
|
391
391
|
${({theme:e,$borderRadius:n="4px",$px:i=.5,$py:r=.5})=>`
|
|
392
392
|
--btn-spacing: ${n};
|
|
393
393
|
--btn-padding-x: ${e.spacing[i]};
|
|
@@ -401,7 +401,7 @@
|
|
|
401
401
|
margin: 0 !important;
|
|
402
402
|
}
|
|
403
403
|
`}
|
|
404
|
-
`,
|
|
404
|
+
`,_n=s.dt(ee)``,Gn=s.dt.div`
|
|
405
405
|
${({theme:e,$maxWidth:n="320px"})=>`
|
|
406
406
|
> :is(.react-tooltip, .react-tooltip__show, .react-tooltip__closing) {
|
|
407
407
|
background-color: ${e.palette.gray[700]};
|
|
@@ -414,7 +414,87 @@
|
|
|
414
414
|
--rt-opacity: 1;
|
|
415
415
|
}
|
|
416
416
|
`}
|
|
417
|
-
`,Y=p.forwardRef(function({children:n,disabled:i=!1,display:r="inline-block",effect:a="solid",icon:o,iconColor:l,iconSize:c,id:d,maxWidth:
|
|
417
|
+
`,Y=p.forwardRef(function({children:n,disabled:i=!1,display:r="inline-block",effect:a="solid",icon:o,iconColor:l,iconSize:c,id:d,maxWidth:u,nodeTip:g,place:x="bottom",tip:f="",title:h="",hide:y=f===""&&h===""&&g===void 0,...$},m){const w=s.nt(),[j,I]=p.useState(!1),S=p.useRef(null),z=p.useCallback(()=>{S.current!==null&&clearTimeout(S.current),S.current=setTimeout(()=>{I(!0)},100)},[]),R=p.useCallback(()=>{S.current!==null&&clearTimeout(S.current),S.current=setTimeout(()=>{I(!1)},100)},[]);return i?t.jsx(p.StrictMode,{children:n}):t.jsxs(_n,{"data-tooltip-id":d,display:r,onMouseLeave:R,onMouseMove:z,ref:m,role:"tooltip",...$,children:[o?t.jsx(C,{clickable:!0,disabled:i,icon:o,iconColor:l,iconSize:c??"xxs",iconType:j?"fa-solid":"fa-light"}):n,V.createPortal(t.jsx(Gn,{$maxWidth:u,children:t.jsxs(s.M,{delayShow:500,disableStyleInjection:"core",float:a==="float"?!0:void 0,globalCloseEvents:{resize:!0},hidden:y||!j,id:d,middlewares:[s.flip({fallbackAxisSideDirection:"start"}),s.offset({mainAxis:10})],noArrow:a==="float",place:x,children:[s.lodashExports.isEmpty(h)?void 0:t.jsx(k,{color:w.palette.white,fontWeight:"bold",lineSpacing:1.5,size:"xs",textAlign:"start",wordWrap:"break-word",children:h}),s.lodashExports.isEmpty(f)?void 0:t.jsx(k,{color:w.palette.gray[100],lineSpacing:1.5,size:"xs",textAlign:"start",wordWrap:"break-word",children:f}),s.lodashExports.isEmpty(g)?void 0:g]})}),document.getElementById("root")??document.body)]})}),B=p.forwardRef(function({borderRadius:n,disabled:i,icon:r,iconColor:a,iconSize:o="xxs",iconTransform:l,iconType:c,id:d,justify:u="center",onClick:g,px:x,py:f,type:h="button",tooltip:y,tooltipPlace:$,value:m,variant:w="primary",...j},I){const S=t.jsx(Hn,{$borderRadius:n,$px:x,$py:f,$variant:w,"aria-disabled":i,"aria-label":d,borderRadius:n,disabled:i,id:d,justify:u,onClick:g,ref:I,type:h,value:m,...j,children:t.jsx(C,{clickable:!1,icon:r,iconColor:a,iconSize:o,iconTransform:l,iconType:c})}),R=(h+(w??"")+(d??r)).replace(/ /u,"_");return y===void 0?S:t.jsx(Y,{id:`${R}-tooltip`,place:$,tip:y,children:S})}),Vn=p.forwardRef(function({autoHide:n=!1,children:i,closable:r=!1,onTimeOut:a,show:o=!0,time:l=8,variant:c="error",id:d,...u},g){const[x,f]=p.useState(o),h=p.useCallback(()=>{f(!1)},[]);return p.useEffect(()=>{const y=setTimeout(()=>{a==null||a(!0),n&&h()},l*1e3);return()=>{clearTimeout(y)}},[n,h,l,a]),p.useEffect(()=>{f(o)},[o,f]),t.jsx(b,{display:x?"block":"none",ref:g,role:"alert",...u,children:t.jsxs(Bn,{$variant:c,id:d,children:[t.jsx(C,{clickable:!1,icon:Mn(c),iconSize:"xs",iconType:"fa-light"}),t.jsx(An,{children:i}),r?t.jsx(B,{height:"fit-content",icon:"close",iconSize:"xs",iconType:"fa-light",onClick:h,px:.125,py:.125,variant:"ghost"}):void 0]})})}),Qe=s.dt.div`
|
|
418
|
+
${({theme:e})=>`
|
|
419
|
+
align-items: center;
|
|
420
|
+
background-color: ${e.palette.gray[200]};
|
|
421
|
+
border-radius: 100%;
|
|
422
|
+
color: ${e.palette.gray[800]};
|
|
423
|
+
display: flex;
|
|
424
|
+
font-family: ${e.typography.type.primary};
|
|
425
|
+
font-size: ${e.typography.text.xs};
|
|
426
|
+
font-weight: 500;
|
|
427
|
+
line-height: 18px;
|
|
428
|
+
justify-content: center;
|
|
429
|
+
text-align: center;
|
|
430
|
+
width: ${e.spacing[1.25]};
|
|
431
|
+
height: ${e.spacing[1.25]};
|
|
432
|
+
`}
|
|
433
|
+
`,Un=s.dt.div`
|
|
434
|
+
ul,
|
|
435
|
+
ol {
|
|
436
|
+
padding-top: 6px;
|
|
437
|
+
padding-bottom: 6px;
|
|
438
|
+
background-color: #fff;
|
|
439
|
+
position: absolute;
|
|
440
|
+
top: 40px;
|
|
441
|
+
right: 1px;
|
|
442
|
+
z-index: 1;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
.no-hover,
|
|
446
|
+
.user-info {
|
|
447
|
+
text-decoration: none;
|
|
448
|
+
display: flex;
|
|
449
|
+
justify-content: space-between;
|
|
450
|
+
height: auto;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.user-info,
|
|
454
|
+
.commit-info {
|
|
455
|
+
padding-left: 16px;
|
|
456
|
+
padding-right: 16px;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.user-info {
|
|
460
|
+
padding-top: 10px;
|
|
461
|
+
padding-bottom: 1px;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
.commit-info {
|
|
465
|
+
padding-top: 1px;
|
|
466
|
+
padding-bottom: 10px;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
li {
|
|
470
|
+
list-style-type: none;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
span {
|
|
474
|
+
white-space: nowrap;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
a {
|
|
478
|
+
color: ${({theme:e})=>e.palette.gray[800]};
|
|
479
|
+
text-decoration: none;
|
|
480
|
+
padding: unset;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
a:hover {
|
|
484
|
+
text-decoration: none;
|
|
485
|
+
color: ${({theme:e})=>e.palette.gray[800]};
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
#menu-profile-container ul {
|
|
489
|
+
min-width: unset;
|
|
490
|
+
width: auto;
|
|
491
|
+
z-index: 10;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
#menu-profile-container li div {
|
|
495
|
+
min-width: unset;
|
|
496
|
+
}
|
|
497
|
+
`,{getVariant:Yn}=U(e=>({default:`
|
|
418
498
|
background-color: ${e.palette.gray[200]};
|
|
419
499
|
color: ${e.palette.gray[800]};
|
|
420
500
|
`,error:`
|
|
@@ -489,7 +569,7 @@
|
|
|
489
569
|
background-color: ${e.palette.warning[400]};
|
|
490
570
|
color: ${e.palette.warning[700]};
|
|
491
571
|
}
|
|
492
|
-
`})),
|
|
572
|
+
`})),Kn=s.dt.span`
|
|
493
573
|
${({theme:e,$fontSize:n=e.typography.text.xs,$variant:i})=>`
|
|
494
574
|
align-items: center;
|
|
495
575
|
border-radius: ${e.spacing[i==="technique"?1:.25]};
|
|
@@ -510,9 +590,9 @@
|
|
|
510
590
|
display: flex;
|
|
511
591
|
}
|
|
512
592
|
|
|
513
|
-
${
|
|
593
|
+
${Yn(e,i)}
|
|
514
594
|
`}
|
|
515
|
-
`,{getVariant:
|
|
595
|
+
`,{getVariant:qn}=U(e=>({highRelevance:`
|
|
516
596
|
color: ${e.palette.primary[500]};
|
|
517
597
|
|
|
518
598
|
&:hover:not([disabled]) {
|
|
@@ -524,7 +604,7 @@
|
|
|
524
604
|
&:hover:not([disabled]) {
|
|
525
605
|
color: ${e.palette.gray[500]};
|
|
526
606
|
}
|
|
527
|
-
`})),
|
|
607
|
+
`})),ut=s.lt`
|
|
528
608
|
${({theme:e,$color:n,$variant:i})=>`
|
|
529
609
|
align-items: center;
|
|
530
610
|
cursor: pointer;
|
|
@@ -546,13 +626,13 @@
|
|
|
546
626
|
text-decoration: none;
|
|
547
627
|
}
|
|
548
628
|
|
|
549
|
-
${n??
|
|
629
|
+
${n??qn(e,i)}
|
|
550
630
|
`}
|
|
551
|
-
`,
|
|
552
|
-
${
|
|
553
|
-
`,
|
|
554
|
-
${
|
|
555
|
-
`,q=({children:e,color:n,download:i,href:r,iconPosition:a="right",onClick:o,target:l,variant:c="lowRelevance"})=>{const d=r.startsWith("https://"),
|
|
631
|
+
`,Xn=s.dt.a`
|
|
632
|
+
${ut}
|
|
633
|
+
`,Zn=s.dt(Re.Link)`
|
|
634
|
+
${ut}
|
|
635
|
+
`,q=({children:e,color:n,download:i,href:r,iconPosition:a="right",onClick:o,target:l,variant:c="lowRelevance"})=>{const d=r.startsWith("https://"),u=t.jsx(C,{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(Xn,{$color:n,$variant:c,download:i,href:r,onClick:o,rel:"nofollow noopener noreferrer",target:l??"_blank",children:[a==="left"?u:void 0,e,a==="right"?u:void 0]}):t.jsxs(Zn,{$variant:c,download:i,onClick:o,rel:"nofollow noopener noreferrer",target:l,to:r,children:[l!==void 0&&a==="left"?u:void 0,e,l!==void 0&&a==="right"?u:void 0]})},X=({disabled:e,icon:n,iconColor:i="inherit",iconType:r="fa-light",id:a="close-tag",filterValues:o="",fontSize:l,href:c,linkLabel:d,onClose:u,priority:g="default",tagTitle:x="",tagLabel:f,variant:h="default"})=>{const y=f.length>25&&s.lodashExports.isEmpty(x+o),$=`${f.slice(0,25)}...`;return t.jsxs(we,{className:"gap-0.5",display:c===void 0?"initial":"flex",size:"sm",children:[t.jsxs(Kn,{$fontSize:l,$variant:h,className:g,children:[n&&t.jsx(C,{icon:n,iconColor:i,iconSize:"xxs",iconType:r}),t.jsxs("span",{children:[t.jsx("strong",{children:x}),t.jsx("span",{children:y?$:f}),t.jsx("strong",{children:o})]}),u?t.jsx(B,{disabled:e,icon:"xmark",iconSize:"xxs",iconType:"fa-light",id:a,onClick:u,px:.125,py:.125,variant:"ghost"}):void 0]}),c===void 0?void 0:t.jsx(q,{href:c,children:d})]})},Jn=(e,n=!0)=>{const i=window.open(e,n?void 0:"_self","noopener,noreferrer,");s.lodashExports.isObject(i)&&(i.opener=null)},D=p.forwardRef(function({children:n,disabled:i=!1,external:r=!1,href:a,id:o,icon:l,name:c,onClick:d,showArrow:u=!1,tag:g,type:x="button",tooltip:f,tooltipPlace:h="bottom",underline:y=!1,value:$,variant:m="primary",...w},j){const I=f!==void 0,S=`${o}-tooltip`,z=p.useCallback(()=>{a&&Jn(a,r)},[r,a]);return t.jsx(Y,{disabled:!I,id:S,place:h,tip:f,children:t.jsxs(gt,{$variant:m,"aria-disabled":i,className:y?"underline":void 0,disabled:i,id:o,name:c,onClick:m==="link"?z:d,ref:j,type:x,value:$,...I?{"data-tooltip-id":S}:{},...w,children:[l!==void 0&&t.jsx(C,{icon:l,iconSize:"xs",iconType:"fa-light"}),n,(u||m==="link")&&t.jsx(C,{icon:"arrow-right",iconSize:"xs",iconType:"fa-light"}),g===void 0?null:t.jsx(X,{tagLabel:g,variant:"inactive"})]})})}),Qn=p.forwardRef(function({children:n,onClick:i,userName:r,showIcon:a=!1,showUsername:o=!1},l){const c=!!i;return t.jsx(b,{id:"navbar-user-profile",ref:l,zIndex:9999,children:t.jsxs(b,{alignItems:"end",display:"flex",flexDirection:"column",position:"relative",zIndex:30,children:[c?t.jsxs(D,{onClick:i,pb:.5,pl:.5,pr:.5,pt:.5,variant:"ghost",children:[t.jsx(Qe,{children:r[0].toUpperCase()}),o?t.jsx(k,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:r.split(" ")[0]}):void 0,a?t.jsx(C,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}):t.jsxs(b,{alignItems:"center",display:"flex",px:.5,py:.5,children:[t.jsx(Qe,{children:r[0].toUpperCase()}),o?t.jsxs(k,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:["Hi ",r.split(" ")[0],"!"]}):void 0,a?t.jsx(C,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}),t.jsx(Un,{children:n})]})})}),ve=({authorEmail:e,date:n,description:i,descriptionColor:r,id:a,title:o,titleColor:l,textAlign:c,textSpacing:d=0,tooltip:u})=>{const g=s.nt();return t.jsxs(b,{width:"100%",children:[typeof o=="string"?t.jsx(k,{color:l??g.palette.gray[800],fontWeight:"bold",mb:d,size:"sm",textAlign:c,wordBreak:"break-word",children:o}):o,t.jsxs(b,{alignItems:"start",display:"flex",flexDirection:"column",gap:.25,children:[i&&t.jsx(k,{color:r??g.palette.gray[800],fontWeight:i===void 0?"bold":"regular",size:"sm",textAlign:c,wordBreak:"break-word",children:i}),n&&t.jsx(k,{color:g.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`Date: ${n.split(" ")[0]}`}),e&&t.jsx(k,{color:g.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`Author: ${e}`}),u&&t.jsx(Y,{icon:"circle-info",id:a,tip:u})]})]})},et=s.dt(b).attrs(({...e})=>({display:"inline-block",position:"relative",...e}))`
|
|
556
636
|
& img {
|
|
557
637
|
display: block;
|
|
558
638
|
}
|
|
@@ -567,7 +647,7 @@
|
|
|
567
647
|
pointer-events: none;
|
|
568
648
|
${({$opacity:e=0})=>`background-color: rgba(0, 0, 0, ${e});`}
|
|
569
649
|
}
|
|
570
|
-
`,
|
|
650
|
+
`,ei=e=>{if(s._.isNil(e))return"";const n=e.split(".");return(n.length>1?s._.last(n):"").toLowerCase()},ti=(e,n)=>s._.isUndefined(n)?!1:s._.includes(e,ei(n)),xt=({alt:e,fileType:n,width:i="100%",opacity:r=0,src:a,height:o="auto"})=>n==="video"||ti(["webm"],a)?t.jsx(et,{$opacity:r,children:t.jsxs("video",{controls:!0,muted:!0,style:{height:o,width:i},children:[t.jsx("source",{src:a,type:"video/webm"}),t.jsx(q,{href:a,iconPosition:"hidden",children:a})]})}):t.jsx(et,{$opacity:r,children:t.jsx("img",{alt:e,src:a,style:{height:o,width:i}})}),ni=({alt:e,authorEmail:n,date:i,description:r,src:a,children:o,isEditing:l,onClick:c,title:d,hideDescription:u=!1,headerType:g="image",showMaximize:x=!0})=>{const f=s.nt(),[h,y]=p.useState(!1),$=p.useCallback(()=>{y(!0)},[]),m=p.useCallback(()=>{y(!1)},[]);return t.jsxs(b,{bgColor:"transparent",border:"1px solid transparent",borderColorHover:"black",borderRadius:f.spacing[.25],display:"flex",flexDirection:"column",gap:1,onHover:$,onLeave:m,padding:[.5,.5,.5,.5],width:"100%",children:[t.jsx(b,{cursor:l?"unset":"pointer",display:"inline-flex",justify:"center",onClick:c,position:"relative",width:"100%",children:o===void 0?t.jsxs(p.Fragment,{children:[t.jsx(xt,{alt:e,fileType:g,height:"147px",opacity:h?.3:0,src:a,width:"100%"}),x?t.jsx(b,{bottom:"10px",position:"absolute",right:"10px",children:t.jsx(B,{color:"white",icon:"arrows-maximize",iconSize:"xxs",iconType:"fa-light",variant:"secondary"})}):void 0]}):o}),u?null:t.jsx(ve,{authorEmail:n,date:i,description:r,descriptionColor:f.palette.gray[600],id:`${e}-card-header`,title:d})]})},ii=s.dt.div`
|
|
571
651
|
${({theme:e,$align:n="center",$minWidth:i="auto",$minHeight:r="auto"})=>`
|
|
572
652
|
display: flex;
|
|
573
653
|
background-color: ${e.palette.white};
|
|
@@ -586,7 +666,7 @@
|
|
|
586
666
|
text-align: ${n};
|
|
587
667
|
}
|
|
588
668
|
`}
|
|
589
|
-
`,
|
|
669
|
+
`,Ge=({htmlFor:e,label:n,link:i,required:r,tooltip:a,weight:o="normal"})=>{const l=s.nt(),c=`${e}-tooltip`,d=a!==void 0&&!s.lodashExports.isEmpty(a);return t.jsxs("label",{className:`flex font-${o} gap-1 w-full`,htmlFor:e,children:[n,r&&t.jsx(C,{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:a}):null]})},ri=s.dt.div`
|
|
590
670
|
${({theme:e})=>`
|
|
591
671
|
align-items: flex-start;
|
|
592
672
|
display: inline-flex;
|
|
@@ -725,7 +805,7 @@
|
|
|
725
805
|
border: 1px solid ${e.palette.gray[600]};
|
|
726
806
|
}
|
|
727
807
|
`}
|
|
728
|
-
`,
|
|
808
|
+
`,O=({children:e,error:n,helpLink:i,helpLinkText:r="Link here",helpText:a,htmlFor:o,label:l,linkPosition:c,maxLength:d,required:u,tooltip:g,value:x,weight:f})=>{const h=s.nt(),y=x?x.length:0;return t.jsxs(ri,{children:[l===void 0?void 0:t.jsx(Ge,{htmlFor:o,label:l,link:c==="up"?i:void 0,required:u,tooltip:g,weight:f}),e,n||d?t.jsxs(b,{display:"flex",justify:n===void 0?"end":"space-between",width:"100%",children:[n&&t.jsx(k,{className:"error-msg",color:h.palette.error[500],display:"block",lineSpacing:1,size:"sm",children:n}),d&&t.jsx(X,{priority:"low",tagLabel:`${y}/${d}`,variant:"error"})]}):void 0,a||i?t.jsxs(b,{alignItems:"center",display:"flex",gap:.25,width:"100%",children:[a&&t.jsxs(t.Fragment,{children:[t.jsx(C,{icon:"circle-info",iconColor:h.palette.gray[400],iconSize:"xxs",iconType:"fa-light"}),t.jsx(k,{color:h.palette.gray[400],display:"inline-block",size:"sm",children:a})]}),i&&c==="down"?t.jsx(q,{href:i,children:r}):void 0]}):void 0]})},xe=({className:e,children:n,isFilter:i=!1,popoverRef:r,state:a,triggerRef:o,...l})=>{var x;const c=p.useRef(null),d=(x=o==null?void 0:o.current)==null?void 0:x.getBoundingClientRect(),{popoverProps:u}=s.$f2f8a6077418541e$export$542a6fd13ac93354({...l,popoverRef:r??c,triggerRef:o,isNonModal:r?!0:void 0},a),g=p.useCallback(f=>{f.preventDefault()},[]);return t.jsx(s.$337b884510726a0d$export$c6fdb837b070b4ff,{children:t.jsx("div",{...u,className:e,onPointerDown:i?g:void 0,ref:r??c,style:{...u.style,...e==="dropdown"?{display:"flex",justifyContent:"center",width:d==null?void 0:d.width}:{}},children:n})})},ai=s.dt.ul`
|
|
729
809
|
${({theme:e})=>`
|
|
730
810
|
align-self: center;
|
|
731
811
|
background: ${e.palette.white};
|
|
@@ -740,7 +820,7 @@
|
|
|
740
820
|
scroll-padding: ${e.spacing[.5]};
|
|
741
821
|
width: 95%;
|
|
742
822
|
`}
|
|
743
|
-
`,
|
|
823
|
+
`,oi=s.dt.li`
|
|
744
824
|
${({theme:e})=>`
|
|
745
825
|
align-items: center;
|
|
746
826
|
color: ${e.palette.gray[800]};
|
|
@@ -773,7 +853,7 @@
|
|
|
773
853
|
cursor: not-allowed;
|
|
774
854
|
}
|
|
775
855
|
`}
|
|
776
|
-
`,
|
|
856
|
+
`,ft=({item:e,state:n})=>{const i=p.useRef(null),{optionProps:r,isSelected:a,isFocused:o,isDisabled:l}=s.$293f70390ea03370$export$497855f14858aa34({key:e.key},n,i),c=[a?"selected":"",o?"focused":"",l?"disabled":""].join(" ");return t.jsxs(oi,{...r,className:c,ref:i,children:[e.rendered,a?t.jsx(C,{icon:"check",iconSize:"xxs",iconType:"fa-light"}):void 0]})},De=({field:e,disabled:n=!1,error:i,helpLink:r,helpLinkText:a,helpText:o,label:l,loadingItems:c,name:d,items:u,onBlur:g,onChange:x,placeholder:f,required:h,tooltip:y,value:$,weight:m})=>{var Je;const w=s.nt(),j=n?void 0:i,I=(e==null?void 0:e.value)??$,[S,z]=p.useState(((Je=u.find(F=>F.value===I))==null?void 0:Je.name)??""),[R,L]=p.useState(I),[P,W]=p.useState(u),[E,N]=p.useState(!1),{contains:A}=s.$bb77f239b46e8c72$export$3274cf84b703fff({sensitivity:"base"}),_=p.useRef(null),te=p.useRef(null),Ne=p.useRef(null),qe=p.useRef(null),Xe=p.useRef(null),an=p.useMemo(()=>u.map(F=>A(F.name,S)||E?t.jsx(s.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,{children:F.name},F.value):null),[A,S,u,E]),on=p.useCallback(F=>{z(F),F===""?N(!0):(N(!1),L(H=>{const $e=F===""?"":H;return e&&e.onChange($e),x&&x(F),$e}),W(u.filter(H=>A(H.name,F))))},[A,u,e,x]),sn=p.useCallback(F=>{var H;z(((H=u.find($e=>$e.value===F))==null?void 0:H.name)??""),L(F?String(F):""),e&&e.onChange(F),x&&x(F?String(F):""),W(u)},[u,e,x]),Ze=p.useCallback(F=>{F.key==="Enter"&&F.preventDefault(),N(!1)},[]),ln=p.useCallback(()=>{g&&g(),e&&e.onBlur()},[e,g]),K=s.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({allowsEmptyCollection:!0,inputValue:S,items:P,menuTrigger:"focus",shouldCloseOnBlur:!0,selectedKey:R,onBlur:ln,onInputChange:on,onKeyDown:Ze,onKeyUp:()=>{N(!0)},onOpenChange(F,H){N(F&&(H==="manual"||H==="focus"))},onSelectionChange:sn,children:an}),{buttonProps:cn,inputProps:dn,listBoxProps:pn}=s.$c350ade66beef0af$export$8c18d1b4f7232bbf({inputValue:S,buttonRef:te,id:d,inputRef:_,label:l??d,listBoxRef:Ne,name:d,placeholder:f,popoverRef:Xe},K),{listBoxProps:gn}=s.$c132121280ec012d$export$50eacbbf140a3141(pn,K,Ne),{buttonProps:un}=s.$701a24aa0da5b062$export$ea18c227d4417cc3(cn,te);return p.useEffect(()=>{var F;(c===!1||!I)&&z(((F=u.find(H=>H.value===I))==null?void 0:F.name)??"")},[I,u,c]),t.jsxs(O,{error:j,helpLink:r,helpLinkText:a,helpText:o,htmlFor:d,label:l,required:h,tooltip:y,weight:m,children:[t.jsxs(Z,{className:`${n?"disabled":""} ${j?"error":""}`,ref:qe,children:[t.jsx("input",{...dn,"aria-invalid":j?"true":"false","aria-label":d,onKeyDown:Ze,ref:_}),j?t.jsx(C,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:w.palette.error[500],iconSize:"xs"}):void 0,t.jsx(B,{...un,className:"action",icon:K.isOpen?"chevron-up":"chevron-down",iconColor:w.palette.gray[400],iconSize:"xxs",iconType:"fa-light",px:.125,py:.125,ref:te,type:"button",variant:"ghost"})]}),K.isOpen&&K.collection.size>0&&!n?t.jsx(xe,{className:"dropdown",offset:4,placement:"bottom start",popoverRef:Xe,state:K,triggerRef:qe,children:t.jsx(ai,{...gn,ref:Ne,children:[...K.collection].map(F=>t.jsx(ft,{item:F,state:K},F.key))})}):null]})},si=({control:e,disabled:n=!1,error:i,helpLink:r,helpLinkText:a,helpText:o,label:l,loadingItems:c,name:d,items:u,onBlur:g,onChange:x,placeholder:f,required:h,tooltip:y,value:$,weight:m})=>e?t.jsx(s.Controller,{control:e,name:d,render:({field:w})=>t.jsx(De,{disabled:n,error:i,field:w,helpLink:r,helpLinkText:a,helpText:o,items:u,label:l,loadingItems:c,name:d,onBlur:g,onChange:x,placeholder:f,required:h,tooltip:y,value:$,weight:m}),rules:{required:h}}):t.jsx(De,{disabled:n,error:i,helpLink:r,helpLinkText:a,helpText:o,items:u,label:l,loadingItems:c,name:d,onBlur:g,onChange:x,placeholder:f,required:h,tooltip:y,value:$,weight:m}),li=s.dt.div`
|
|
777
857
|
${({theme:e})=>`
|
|
778
858
|
align-items: center;
|
|
779
859
|
color: ${e.palette.gray[800]};
|
|
@@ -794,7 +874,7 @@
|
|
|
794
874
|
display: none;
|
|
795
875
|
}
|
|
796
876
|
`}
|
|
797
|
-
`,
|
|
877
|
+
`,ci=s.dt.div.attrs({className:"year-selection"})`
|
|
798
878
|
align-items: flex-start;
|
|
799
879
|
display: flex;
|
|
800
880
|
flex-direction: column;
|
|
@@ -805,12 +885,12 @@
|
|
|
805
885
|
padding: 0 0.5px;
|
|
806
886
|
position: relative;
|
|
807
887
|
width: 8px;
|
|
808
|
-
`,
|
|
888
|
+
`,tt=s.dt.tr`
|
|
809
889
|
align-items: flex-start;
|
|
810
890
|
display: flex;
|
|
811
891
|
padding: ${({theme:e})=>e.spacing[.25]} 0;
|
|
812
892
|
width: 100%;
|
|
813
|
-
`,
|
|
893
|
+
`,ht=s.lt`
|
|
814
894
|
${({theme:e})=>`
|
|
815
895
|
align-items: center;
|
|
816
896
|
color: ${e.palette.gray[800]};
|
|
@@ -826,11 +906,11 @@
|
|
|
826
906
|
text-align: center;
|
|
827
907
|
width: ${e.spacing[2.5]};
|
|
828
908
|
`}
|
|
829
|
-
`,
|
|
830
|
-
${
|
|
831
|
-
`,
|
|
909
|
+
`,di=s.dt.th`
|
|
910
|
+
${ht}
|
|
911
|
+
`,pi=s.dt.td`
|
|
832
912
|
${({theme:e})=>`
|
|
833
|
-
${
|
|
913
|
+
${ht}
|
|
834
914
|
height: ${e.spacing[2.5]};
|
|
835
915
|
width: ${e.spacing[2.5]};
|
|
836
916
|
|
|
@@ -878,14 +958,14 @@
|
|
|
878
958
|
}
|
|
879
959
|
}
|
|
880
960
|
`}
|
|
881
|
-
`,
|
|
961
|
+
`,gi=s.dt.div.attrs({className:"dot"})`
|
|
882
962
|
position: absolute;
|
|
883
963
|
top: 48%;
|
|
884
964
|
|
|
885
965
|
> span {
|
|
886
966
|
font-size: 4px;
|
|
887
967
|
}
|
|
888
|
-
`,
|
|
968
|
+
`,nt=s.dt.button`
|
|
889
969
|
cursor: pointer;
|
|
890
970
|
display: flex;
|
|
891
971
|
|
|
@@ -893,7 +973,7 @@
|
|
|
893
973
|
height: 3.5px;
|
|
894
974
|
width: 7px;
|
|
895
975
|
}
|
|
896
|
-
`,
|
|
976
|
+
`,Ve=s.dt.div`
|
|
897
977
|
${({theme:e})=>`
|
|
898
978
|
align-items: end;
|
|
899
979
|
border-top: 1px solid ${e.palette.gray[200]};
|
|
@@ -905,9 +985,9 @@
|
|
|
905
985
|
padding: 0 ${e.spacing[.25]};
|
|
906
986
|
width: 100%;
|
|
907
987
|
`}
|
|
908
|
-
`,
|
|
988
|
+
`,bt=({state:e,date:n})=>{const i=p.useRef(null),r=s.$14e0f24ef4ac5c92$export$629b0a497aa65267(n,s.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),{cellProps:a,buttonProps:o,isSelected:l,isDisabled:c,formattedDate:d}=s.$36a0ac60f04457c5$export$136073280381448e({date:n},e,i),u="highlightedRange"in e&&!s.lodashExports.isNull(e.highlightedRange)?s.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.start):l,g="highlightedRange"in e&&!s.lodashExports.isNull(e.highlightedRange)?s.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.end):l,x=l&&!c&&!(u||g)?"range":"";return t.jsx(pi,{id:x,...a,children:t.jsxs("div",{...o,className:`cell ${u||g?"selected":""}
|
|
909
989
|
${c?"disabled":""} ${r?"today":""}
|
|
910
|
-
${!e.isFocused&&!r?"focused":""} ${
|
|
990
|
+
${!e.isFocused&&!r?"focused":""} ${x}`,ref:i,children:[d,r?t.jsx(gi,{children:t.jsx(C,{clickable:!1,icon:"circle",iconSize:"xxs"})}):void 0]})})},Se=({state:e,...n})=>{const{locale:i}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{weekDays:r}=s.$e3031d1f8c9d64eb$export$cb95147730a423f5(n,e),a=s.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654(e.visibleRange.start,i);return t.jsxs("table",{children:[t.jsx("thead",{children:t.jsx(tt,{children:r.map((o,l)=>{const c=`key_${l}`;return t.jsx(di,{children:o},c)})})}),t.jsx("tbody",{children:[...new Array(a).keys()].map(o=>t.jsx(tt,{children:e.getDatesInWeek(o).map((l,c)=>{const d=`key_${c}`;return l?t.jsx(bt,{date:l,state:e},d):t.jsx("td",{},d)})},o))})]})},ui=s.dt(He)`
|
|
911
991
|
align-items: center;
|
|
912
992
|
background-color: inherit;
|
|
913
993
|
border-color: inherit;
|
|
@@ -927,7 +1007,7 @@
|
|
|
927
1007
|
background-color: ${({theme:e})=>e.palette.gray[100]};
|
|
928
1008
|
cursor: pointer;
|
|
929
1009
|
}
|
|
930
|
-
`,
|
|
1010
|
+
`,xi=s.dt.div`
|
|
931
1011
|
${({theme:e})=>`
|
|
932
1012
|
align-items: flex-start;
|
|
933
1013
|
background: ${e.palette.white};
|
|
@@ -941,7 +1021,7 @@
|
|
|
941
1021
|
padding: ${e.spacing[.25]};
|
|
942
1022
|
width: 292px;
|
|
943
1023
|
`}
|
|
944
|
-
`,
|
|
1024
|
+
`,fi=s.dt.button`
|
|
945
1025
|
${({theme:e,$disabled:n,$focus:i,$header:r})=>{const a=i?"34px":"40px";return`
|
|
946
1026
|
align-items: center;
|
|
947
1027
|
border-radius: ${r?`0 ${e.spacing[.5]} ${e.spacing[.5]} 0`:"4px"};
|
|
@@ -956,7 +1036,7 @@
|
|
|
956
1036
|
background-color: ${e.palette.gray[n?500:100]};
|
|
957
1037
|
}
|
|
958
1038
|
`}}
|
|
959
|
-
`,
|
|
1039
|
+
`,hi=s.dt.div`
|
|
960
1040
|
${({theme:e})=>`
|
|
961
1041
|
align-items: center;
|
|
962
1042
|
background: transparent;
|
|
@@ -967,13 +1047,13 @@
|
|
|
967
1047
|
justify-content: space-between;
|
|
968
1048
|
width: calc(100% - 40px);
|
|
969
1049
|
`}
|
|
970
|
-
`,
|
|
1050
|
+
`,bi=s.dt.div`
|
|
971
1051
|
align-items: center;
|
|
972
1052
|
display: flex;
|
|
973
1053
|
justify-content: flex-end;
|
|
974
1054
|
gap: ${({theme:e})=>e.spacing[.5]};
|
|
975
1055
|
flex: 1 0 0;
|
|
976
|
-
`,
|
|
1056
|
+
`,it=s.dt.div`
|
|
977
1057
|
${({theme:e})=>`
|
|
978
1058
|
align-items: center;
|
|
979
1059
|
align-self: stretch;
|
|
@@ -985,7 +1065,7 @@
|
|
|
985
1065
|
line-height: ${e.spacing[1.5]};
|
|
986
1066
|
padding: 2px ${e.spacing[.25]};
|
|
987
1067
|
`}
|
|
988
|
-
`,
|
|
1068
|
+
`,rt=s.dt.button`
|
|
989
1069
|
${({theme:e})=>`
|
|
990
1070
|
align-items: center;
|
|
991
1071
|
background-color: inherit;
|
|
@@ -1005,7 +1085,7 @@
|
|
|
1005
1085
|
font-weight: ${e.typography.weight.bold};
|
|
1006
1086
|
}
|
|
1007
1087
|
`}
|
|
1008
|
-
`,je=({disabled:e=!1,icon:n,props:i})=>{const r=p.useRef(null),{buttonProps:a}=s.$701a24aa0da5b062$export$ea18c227d4417cc3(i,r);return t.jsx(
|
|
1088
|
+
`,je=({disabled:e=!1,icon:n,props:i})=>{const r=p.useRef(null),{buttonProps:a}=s.$701a24aa0da5b062$export$ea18c227d4417cc3(i,r);return t.jsx(fi,{...a,$disabled:e,$focus:!!a["aria-expanded"],$header:n==="calendar"||n==="calendar-clock",disabled:e,ref:r,type:"button",children:t.jsx(C,{icon:n,iconColor:v.palette.gray[e?400:700],iconSize:"xs",iconType:"fa-light"})})},ze=({state:e,prevButtonProps:n,nextButtonProps:i,title:r})=>{const a=e.focusedDate,o=p.useCallback(()=>{e.setFocusedDate(a.add({years:1}))},[a,e]),l=p.useCallback(()=>{e.setFocusedDate(a.subtract({years:1}))},[a,e]);return t.jsxs("div",{className:"header flex items-start",children:[t.jsx(je,{icon:"chevron-left",props:n}),t.jsxs(li,{children:[r,t.jsxs(ci,{children:[t.jsx(nt,{"aria-label":"top",onClick:o,children:t.jsx(C,{icon:"caret-up",iconClass:"fa-sharp",iconSize:"xxss"})}),t.jsx(nt,{"aria-label":"bottom",onClick:l,children:t.jsx(C,{icon:"caret-down",iconClass:"fa-sharp",iconSize:"xxss"})})]})]}),t.jsx(je,{icon:"chevron-right",props:i})]})},$t=({onClose:e,props:n})=>{const{locale:i}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),r=s.$131cf43a05231e1e$export$6d095e787d2b5e1f({...n,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:a,nextButtonProps:o,title:l}=s.$9942cad8a072a530$export$3ee915f8151bd4f1(n,r);return t.jsxs("div",{className:"calendar",children:[t.jsx(ze,{nextButtonProps:o,prevButtonProps:a,state:r,title:l}),t.jsx(Se,{state:r}),t.jsx(Ve,{children:t.jsx(D,{onClick:e,variant:"ghost",children:"Cancel"})})]})},yt=({segment:e,state:n})=>{const i=s.nt(),r=p.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,r),c=i.palette.gray[o.isEditable?800:500];return t.jsx("div",{...o.type!=="literal"&&{...l,className:"segment-cell"},ref:r,style:o.type==="literal"?void 0:{color:o.isPlaceholder?i.palette.gray[400]:c},children:o.isPlaceholder?o.placeholder:o.text})},mt=({disabled:e,error:n=!1,props:i})=>{const r=s.nt(),a=p.useRef(null),o=s.$3c0fc76039f1c516$export$60e84778edff6d26({...i,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:"en-US"}),{fieldProps:l}=s.$16f0b7bb276bc17e$export$5591b0b878c1a989(i,o,a),c=p.useCallback(d=>{const u=document.getElementsByClassName("segment-cell"),g=d.currentTarget;Object.values(u).some(x=>x.contains(g))||(d.preventDefault(),d.stopPropagation())},[]);return t.jsxs(hi,{...l,onClick:c,children:[t.jsx("div",{className:"flex flex-row",style:{color:r.palette.gray[s.lodashExports.isNil(o.value)?400:800]},tabIndex:-1,children:o.segments.map((d,u)=>{const g=`key_${u}`;return t.jsx(yt,{segment:{...d,isEditable:!e},state:o},g)})}),n?t.jsx(C,{icon:"exclamation-circle",iconColor:r.palette.error[500],iconSize:"xs"}):void 0]})},wt=e=>{const n=p.useRef(null),i=s.$eff5d8ee529ac4bb$export$fd53cef0cc796101({...e,locale:"en-US",shouldForceLeadingZeros:!0}),{timeValue:r}=i,a=!s.lodashExports.isNil(r)&&r.hour<12?"AM":"PM",[o,l]=p.useState(s.lodashExports.isNil(r)?"AM":a),{fieldProps:c}=s.$16f0b7bb276bc17e$export$4c842f6a241dc825(e,i,n),d=p.useCallback(u=>{const g=u.currentTarget.name;g!==o&&(s.lodashExports.isNil(r)||(g==="AM"?i.setSegment("dayPeriod",0):g==="PM"&&i.setSegment("dayPeriod",12))),l(g)},[o,i,r]);return t.jsxs(bi,{children:[t.jsx(it,{...c,ref:n,children:i.segments.slice(0,-2).map((u,g)=>{const x=`key_${g}`;return t.jsx(yt,{segment:u,state:i},x)})}),t.jsxs(it,{children:[t.jsx(rt,{id:o==="AM"?"active":"",name:"AM",onClick:d,type:"button",children:"AM"}),t.jsx(rt,{id:o==="PM"?"active":"",name:"PM",onClick:d,type:"button",children:"PM"})]})]})},jt=e=>e&&e!=="-"?s.dayjs(e).format("YYYY-MM-DD"):"-",$i=e=>e&&e!=="-"?s.dayjs(e).format("YYYY-MM-DD hh:mm A"):"-",yi=e=>e&&e!=="-"?s.dayjs(e).format("YYYY/MM/DD hh:mm A"):"-",re=({error:e,buttonProps:n,datePickerRef:i,disabled:r=!1,granularity:a="day",fieldProps:o,groupProps:l,name:c,register:d,required:u,setValue:g,value:x})=>{const f=p.useCallback(h=>{o.onChange&&o.onChange(h),g&&g(c,a==="day"?jt(String(h)):$i(String(h)))},[o,a,c,g]);return t.jsxs(Z,{...l,className:`${r?"disabled":""} ${e?"error":""}`,ref:i,children:[t.jsx(mt,{disabled:r,error:e!=null,props:{...o,autoFocus:!1,granularity:a,onChange:f,shouldForceLeadingZeros:!0}}),t.jsx(je,{disabled:r,icon:a==="minute"?"calendar-clock":"calendar",props:n}),t.jsx("input",{...d==null?void 0:d(c,{required:u}),"aria-label":c,className:"date-input",disabled:r,id:c,name:c,type:"text",value:x})]})},Ie=({children:e,...n})=>{const i=p.useRef(null),{dialogProps:r}=s.$40df3f8667284809$export$d55e7ee900f34e93(n,i);return t.jsx(xi,{...r,ref:i,children:e})},kt=({disabled:e=!1,error:n,helpLink:i,helpLinkText:r,helpText:a,required:o,label:l,name:c,register:d,setValue:u,tooltip:g,watch:x,...f})=>{const h=p.useRef(null),y=x==null?void 0:x(c),$=s.$ab5bf3f618090389$export$87194bb378cc3ac2({...f,value:s._.isNil(y)||s._.isEmpty(y)||y==="-"?null:s.$fae977aafc393c5c$export$6b862160d295c8e(y.replace(/\//gu,"-"))}),{close:m}=$,{groupProps:w,fieldProps:j,buttonProps:I,dialogProps:S,calendarProps:z}=s.$6057a3d2a53a12fd$export$42df105a73306d51({...f,"aria-label":l??c,name:c},$,h),R=p.useCallback(L=>{z.onChange&&z.onChange(L),u&&u(c,jt(L.toString()))},[z,c,u]);return t.jsxs(O,{error:n,helpLink:i,helpLinkText:r,helpText:a,htmlFor:c,label:l,required:o,tooltip:g,children:[t.jsx(re,{buttonProps:I,datePickerRef:h,disabled:e,error:n,fieldProps:j,groupProps:w,name:c,register:d,required:o,setValue:u,value:y}),$.isOpen&&!e?t.jsx(xe,{offset:8,placement:"bottom start",state:$,triggerRef:h,children:t.jsx(Ie,{...S,children:t.jsx($t,{onClose:m,props:{...z,onChange:R}})})}):null]})},Ct=({onClose:e,props:n})=>{const{locale:i}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),r=p.useRef(null),a=s.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90({...n,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:o,nextButtonProps:l,title:c}=s.$46a4342aab3d8076$export$87e0539f600c24e5(n,a,r);return t.jsxs("div",{className:"calendar-range",ref:r,children:[t.jsx(ze,{nextButtonProps:l,prevButtonProps:o,state:a,title:c}),t.jsx(Se,{state:a}),t.jsx(Ve,{children:t.jsx(D,{onClick:e,variant:"ghost",children:"Cancel"})})]})},mi=s.dt.div`
|
|
1009
1089
|
${({theme:e,$disabled:n,$show:i})=>`
|
|
1010
1090
|
border-color: ${i?e.palette.error[500]:e.palette.gray[300]};
|
|
1011
1091
|
display: flex;
|
|
@@ -1016,7 +1096,7 @@
|
|
|
1016
1096
|
background: ${n?e.palette.gray[200]:e.palette.white};
|
|
1017
1097
|
}
|
|
1018
1098
|
`}
|
|
1019
|
-
|
|
1099
|
+
`,wi=({disabled:e=!1,error:n,label:i,name:r,required:a,tooltip:o,register:l,setValue:c,...d})=>{const u=`${r}Max`,g=`${r}Min`,x=p.useRef(null),f=s.$93c38a5e28be6249$export$e50a61c1de9f574(d),{close:h}=f,{groupProps:y,startFieldProps:$,endFieldProps:m,buttonProps:w,dialogProps:j,calendarProps:I}=s.$887cac91b7cc8801$export$12fd5f0e9f4bb192({...d,"aria-label":i??r},f,x),S=p.useCallback(z=>{z&&I.onChange&&I.onChange(z)},[I]);return t.jsxs(O,{error:n,htmlFor:r,label:i,required:a,tooltip:o,children:[t.jsxs(mi,{$disabled:e,$show:n!==void 0,ref:x,children:[t.jsx(re,{buttonProps:w,datePickerRef:x,disabled:e,error:n,fieldProps:{...$,"aria-label":`${$["aria-label"]} ${r}`,validate:z=>m.value&&z>m.value?"Start date must be less than or equal to end date":null},groupProps:y,name:g,register:l,setValue:c}),t.jsx(re,{buttonProps:w,datePickerRef:x,disabled:e,error:n,fieldProps:{...m,"aria-label":`${m["aria-label"]} ${r}`,validate:z=>$.value&&z<$.value?"End date must be greater than or equal to start date":null},groupProps:y,name:u,register:l,setValue:c})]}),f.isOpen&&!e?t.jsx(xe,{offset:8,placement:"bottom start",state:f,triggerRef:x,children:t.jsx(Ie,{...j,children:t.jsx(Ct,{onClose:h,props:{...I,onChange:S}})})}):null]})},ji=s.dt.div`
|
|
1020
1100
|
${({theme:e})=>`
|
|
1021
1101
|
align-items: center;
|
|
1022
1102
|
border-top: 1px solid ${e.palette.gray[200]};
|
|
@@ -1025,32 +1105,32 @@
|
|
|
1025
1105
|
justify-content: center;
|
|
1026
1106
|
padding: ${e.spacing[.5]} ${e.spacing[1.25]};
|
|
1027
1107
|
`}
|
|
1028
|
-
`,
|
|
1108
|
+
`,ki=s.dt.div`
|
|
1029
1109
|
align-items: center;
|
|
1030
1110
|
display: flex;
|
|
1031
1111
|
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1032
1112
|
justify-content: flex-end;
|
|
1033
1113
|
flex: 1 0 0;
|
|
1034
|
-
`,
|
|
1114
|
+
`,vt=({handleTimeChange:e,onClose:n,props:i,timeState:r})=>{const a=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:u}=s.$9942cad8a072a530$export$3ee915f8151bd4f1(i,l);return t.jsxs("div",{className:"calendar",children:[t.jsx(ze,{nextButtonProps:d,prevButtonProps:c,state:l,title:u}),t.jsx(Se,{state:l}),t.jsxs(ji,{children:[t.jsx(k,{color:a.palette.gray[800],fontWeight:"bold",size:"sm",children:"Time"}),t.jsx(ki,{children:t.jsx(wt,{hourCycle:12,label:"time-field",onChange:e,value:r.timeValue})})]}),t.jsx(Ve,{children:t.jsx(D,{onClick:n,variant:"ghost",children:"Cancel"})})]})},Ci=e=>{const{disabled:n=!1,error:i,required:r,label:a,name:o,tooltip:l,register:c,setValue:d,watch:u}=e,g=u==null?void 0:u(o),x=p.useRef(null),f=s.$ab5bf3f618090389$export$87194bb378cc3ac2({...e,granularity:"minute",hourCycle:12,isDisabled:n,isRequired:r,shouldCloseOnSelect:!1,value:s._.isNil(g)||s._.isEmpty(g)||g==="-"?null:s.$fae977aafc393c5c$export$588937bcd60ade55(g.replace(/\//gu,"-"))}),{close:h}=f,{groupProps:y,fieldProps:$,buttonProps:m,dialogProps:w,calendarProps:j}=s.$6057a3d2a53a12fd$export$42df105a73306d51(e,f,x),I=p.useCallback(z=>{j.onChange&&j.onChange(z),d==null||d(o,yi(String(z).replace(/-/gu,"/")))},[j,o,d]),S=p.useCallback(z=>{z&&f.setTimeValue(z)},[f]);return t.jsxs(O,{error:i,htmlFor:o,label:a,required:r,tooltip:l,children:[t.jsx(re,{buttonProps:m,datePickerRef:x,disabled:n,error:i,fieldProps:$,granularity:"minute",groupProps:y,name:o,register:c,setValue:d,value:g}),f.isOpen&&!n?t.jsx(xe,{offset:8,placement:"bottom start",state:f,triggerRef:x,children:t.jsx(Ie,{...w,children:t.jsx(vt,{handleTimeChange:S,onClose:h,props:{...j,onChange:I},timeState:f})})}):null]})},vi=({children:e,currentValue:n,externalLink:i,isEditing:r,label:a,name:o,tooltip:l})=>{if(r)return t.jsx("div",{children:e});const c=s.lodashExports.isNil(n)?"":n,d=String(i??c);return t.jsxs(b,{children:[t.jsx(Ge,{htmlFor:o,label:a,tooltip:l,weight:"bold"}),d.startsWith("https://")?t.jsx(q,{href:d,children:c}):t.jsx(k,{size:"md",children:c})]})},St=({disabled:e=!1,hasIcon:n=!1,helpLink:i,helpLinkText:r,helpText:a,error:o,isValid:l,isTouched:c,label:d,linkPosition:u,name:g,maskValue:x=!1,onPaste:f,placeholder:h,register:y,tooltip:$,type:m="text",weight:w,...j})=>{const{required:I,onBlur:S,onChange:z}=j,R=s.nt(),L=e?void 0:o,P=l&&c&&!e,W=p.useCallback(E=>{E.key==="Enter"&&E.preventDefault()},[]);return t.jsx(O,{error:L,helpLink:i,helpLinkText:r,helpText:a,htmlFor:g,label:d,linkPosition:u,required:I,tooltip:$,weight:w,children:t.jsxs(Z,{className:`
|
|
1035
1115
|
${e?"disabled":""} ${L?"error":""} ${P?"success":""}
|
|
1036
|
-
`,children:[n?t.jsx(
|
|
1116
|
+
`,children:[n?t.jsx(C,{icon:"user",iconSize:"sm",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":L?"true":"false","aria-label":g,"aria-required":I,autoComplete:"off",className:x?"sr-block":"","data-testid":`${g}-input`,disabled:e,id:g,onKeyDown:W,onPaste:f,placeholder:h,type:m,...y?y(g,{required:I,onBlur:S,onChange:z}):{...j}}),L?t.jsx(C,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:R.palette.error[500],iconSize:"xs"}):void 0,P?t.jsx(C,{icon:"check-circle",iconClass:"success-icon",iconColor:R.palette.success[500],iconSize:"xs"}):void 0]})})},Si=s.dt(dt)`
|
|
1037
1117
|
white-space: nowrap;
|
|
1038
1118
|
margin-right: ${({theme:e})=>e.spacing[.25]};
|
|
1039
1119
|
text-overflow: ellipsis;
|
|
1040
1120
|
overflow: hidden;
|
|
1041
1121
|
max-width: 80%;
|
|
1042
|
-
`,
|
|
1122
|
+
`,zi=s.dt.input`
|
|
1043
1123
|
opacity: 0;
|
|
1044
1124
|
position: absolute;
|
|
1045
1125
|
visibility: hidden;
|
|
1046
1126
|
width: 0;
|
|
1047
|
-
`,Fe=(e,n,i)=>{const r=new Event(e);return Object.defineProperty(r,"target",{value:{name:n,value:i}}),r},
|
|
1127
|
+
`,Fe=(e,n,i)=>{const r=new Event(e);return Object.defineProperty(r,"target",{value:{name:n,value:i}}),r},Ii=e=>{const n=e;return n?Array.from(n).map(i=>i.name).join(", "):""},Ti=({accept:e,disabled:n=!1,error:i,label:r,helpLink:a,helpText:o,id:l,multiple:c,name:d,onChange:u,required:g,register:x,setValue:f,tooltip:h,watch:y,weight:$})=>{const m=s.nt(),w=n?void 0:i,j=p.useRef(null),I=y==null?void 0:y(d),S=Ii(I),z=x==null?void 0:x(d,{required:g}),R=p.useCallback(()=>{const W=Fe("change",d,void 0);f&&f(d,""),z&&z.onChange(W)},[z,d,f]),L=p.useCallback(W=>{const{files:E}=W.currentTarget,N=Fe("change",d,E&&E.length>0?E:void 0);u==null||u(N),z&&z.onChange(N)},[z,d,u]),P=p.useCallback(W=>{n?W.preventDefault():j.current&&j.current.click()},[n]);return t.jsxs(O,{error:w,helpLink:a,helpText:o,htmlFor:l??d,label:r,required:g,tooltip:h,weight:$,children:[t.jsxs(Z,{className:`${n?"disabled":""} ${w?"error":""}`,children:[t.jsx(Si,{$size:"xs",children:S}),t.jsxs(b,{alignItems:"center",display:"flex",gap:.5,children:[s.lodashExports.isEmpty(S)?void 0:t.jsx(B,{color:m.palette.gray[400],height:"20px",icon:"xmark",iconSize:"lg",iconType:"fa-light",onClick:R,variant:"ghost",width:"20px"}),w&&t.jsx(C,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:m.palette.error[500],iconSize:"xs"})]}),t.jsxs(D,{border:n?`1px solid ${m.palette.gray[300]} !important`:"",borderRadius:"0px 8px 8px 0px !important",disabled:n,height:"40px",onClick:P,variant:"primary",width:"96px",children:[t.jsx(C,{icon:"search",iconSize:"sm",mr:.5}),"Add file"]})]}),t.jsx(zi,{...z&&{ref:z.ref,onBlur:z.onBlur},accept:e,"aria-label":d,"data-testid":d,disabled:n,id:l??d,multiple:c,name:d,onChange:L,onClick:R,ref:j,required:void 0,type:"file",value:void 0})]})},Ni=s.dt.input`
|
|
1048
1128
|
border: none;
|
|
1049
1129
|
background: transparent;
|
|
1050
1130
|
min-width: 15rem;
|
|
1051
1131
|
padding: 0;
|
|
1052
1132
|
flex: 1;
|
|
1053
|
-
`,Pe=({disabled:e=!1,error:n,field:i,helpLink:r,helpLinkText:a,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:
|
|
1133
|
+
`,Pe=({disabled:e=!1,error:n,field:i,helpLink:r,helpLinkText:a,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:u,placeholder:g,required:x,tooltip:f,value:h,weight:y})=>{const $=s.nt(),m=e?void 0:n,[w,j]=p.useState(""),I=d?h:i==null?void 0:i.value,S=p.useMemo(()=>I&&typeof I=="string"?I.split(",").filter(Boolean):[],[I]),z=p.useCallback(E=>{const A=[...new Set(E.filter(Boolean))].join(","),_=Fe("change",c,A);i&&i.onChange(_),d&&d(_)},[i,c,d]),R=p.useCallback(E=>{j(E.target.value)},[]),L=p.useCallback(E=>{const N=w.trim();N.length&&!S.includes(N)&&(E.preventDefault(),z([...S,N]),j("")),i&&i.onBlur()},[w,i,z,S]),P=p.useCallback(E=>{const N=w.trim();E.key==="Enter"&&N.length===0&&E.preventDefault(),["Enter",","].includes(E.key)&&N.length>0&&!S.includes(N)?(E.preventDefault(),z([...S,N]),j("")):E.key==="Backspace"&&!N.length&&S.length&&(E.preventDefault(),u==null||u(S[S.length-1]),z(S.slice(0,-1)))},[w,u,z,S]),W=p.useCallback(E=>()=>{u==null||u(E),z(S.filter(N=>N!==E))},[u,z,S]);return t.jsx(O,{error:m,helpLink:r,helpLinkText:a,helpText:o,htmlFor:c,label:l,required:x,tooltip:f,weight:y,children:t.jsxs(Z,{$overflowX:"auto",className:`${e?"disabled":""} ${m?"error":""}`,children:[S.map(E=>t.jsx(X,{disabled:e,onClose:W(E),tagLabel:E},E)),t.jsx(Ni,{"aria-hidden":!1,"aria-invalid":m?"true":"false","aria-label":c,"aria-required":x,autoComplete:"off",id:c,onBlur:L,onChange:R,onKeyDown:P,placeholder:S.length===0?g:void 0,ref:i==null?void 0:i.ref,type:"text",value:w}),m?t.jsx(C,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:$.palette.error[500],iconSize:"xs"}):void 0]})})},Ei=({disabled:e=!1,control:n,error:i,helpLink:r,helpLinkText:a,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:u,placeholder:g,required:x,tooltip:f,value:h,weight:y})=>n?t.jsx(s.Controller,{control:n,name:c,render:({field:$})=>t.jsx(Pe,{disabled:e,error:i,field:$,helpLink:r,helpLinkText:a,helpText:o,label:l,name:c,onRemove:u,placeholder:g,required:x,tooltip:f,weight:y}),rules:{required:x}}):t.jsx(Pe,{disabled:e,error:i,helpLink:r,helpLinkText:a,helpText:o,label:l,name:c,onChange:d,onRemove:u,placeholder:g,required:x,tooltip:f,value:h,weight:y}),Le=p.forwardRef(function({disabled:n,icon:i,margin:r,onClick:a,...o},l){return t.jsx(ui,{$margin:r,"aria-label":i,className:"action-btn",disabled:n,onClick:a,ref:l,type:"button",...o,children:t.jsx(C,{icon:i,iconClass:"action",iconSize:"xs",iconType:"fa-light"})})}),ke=({error:e,decimalPlaces:n=0,disabled:i=!1,id:r,maxLength:a,max:o=1/0,min:l=0,name:c,onChange:d,placeholder:u,register:g,required:x,setValue:f,value:h})=>{const y=s.nt(),$=i?void 0:e,m=p.useMemo(()=>n<0?0:n,[n]),w=p.useMemo(()=>h===void 0?0:s._.toNumber(h),[h]),j=p.useCallback(()=>{const R=(w-10**-m).toFixed(m);f&&f(c,Math.max(Number(l),Number(R)))},[m,w,l,c,f]),I=p.useCallback(()=>{const R=(w+10**-m).toFixed(m);f&&f(c,Math.min(Number(o),Number(R)>Number(l)?Number(R):Number(l)))},[m,w,o,l,c,f]),S=p.useCallback(R=>{const{value:L}=R.target,P=/\d+/u.test(L)&&!s._.isEmpty(L);f&&f(c,P?Number(L):void 0),d&&d(R)},[c,d,f]),z=p.useCallback(R=>{R.key==="Enter"&&R.preventDefault()},[]);return t.jsxs(Z,{className:`${i?"disabled":""} ${$?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":$?"true":"false","aria-label":c,"aria-required":x,autoComplete:"off",disabled:i,id:r??c,max:o,min:l,onKeyDown:z,placeholder:u,required:x,step:10**-m,type:"number",...g==null?void 0:g(c,{required:x,maxLength:a,max:o,min:l,onChange:S})}),$&&t.jsx(C,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:y.palette.error[500],iconSize:"xs"}),t.jsx(Le,{borderLeft:"inherit",borderRight:"inherit",disabled:i,icon:"minus",margin:"0 -0.625rem 0 0",onClick:j,px:.75,py:.75}),t.jsx(Le,{borderRadius:`0 ${y.spacing[.5]} ${y.spacing[.5]} 0`,disabled:i,icon:"plus",onClick:I,px:.75,py:.75})]})},zt=({decimalPlaces:e,disabled:n=!1,error:i,helpLink:r,helpText:a,id:o,label:l,linkPosition:c,maxLength:d,max:u,min:g,name:x,onChange:f,placeholder:h,register:y,required:$,setValue:m,tooltip:w,value:j,watch:I,weight:S})=>t.jsx(O,{error:n?void 0:i,helpLink:r,helpText:a,htmlFor:x,label:l,linkPosition:c,maxLength:d,required:$,tooltip:w,weight:S,children:t.jsx(ke,{decimalPlaces:e,disabled:n,error:i,id:o,max:u,maxLength:d,min:g,name:x,onChange:f,placeholder:h,register:y,required:$,setValue:m,value:f?j:I==null?void 0:I(x)})}),Ri=({disabled:e=!1,error:n,name:i,label:r,propsMax:a,propsMin:o,required:l,tooltip:c})=>{const d=`${i}Max`,u=`${i}Min`;return t.jsx(O,{error:n,htmlFor:i,label:r,required:l,tooltip:c,children:t.jsxs(b,{display:"flex",gap:.25,width:"100%",children:[t.jsx(ke,{...o,disabled:e,error:n,name:d}),t.jsx(ke,{...a,disabled:e,error:n,name:u})]})})},Di=s.dt.div`
|
|
1054
1134
|
${({theme:e})=>`
|
|
1055
1135
|
align-items: flex-start;
|
|
1056
1136
|
align-self: stretch;
|
|
@@ -1090,7 +1170,7 @@
|
|
|
1090
1170
|
}
|
|
1091
1171
|
}
|
|
1092
1172
|
`}
|
|
1093
|
-
`,
|
|
1173
|
+
`,Fi=s.dt.button`
|
|
1094
1174
|
${({theme:e})=>`
|
|
1095
1175
|
align-items: center;
|
|
1096
1176
|
background: inherit;
|
|
@@ -1106,7 +1186,7 @@
|
|
|
1106
1186
|
cursor: not-allowed;
|
|
1107
1187
|
}
|
|
1108
1188
|
`}
|
|
1109
|
-
`,
|
|
1189
|
+
`,Pi=s.dt.ul`
|
|
1110
1190
|
${({theme:e})=>`
|
|
1111
1191
|
align-items: flex-start;
|
|
1112
1192
|
box-shadow: ${e.shadows.md};
|
|
@@ -1119,7 +1199,7 @@
|
|
|
1119
1199
|
scrollbar-width: thin;
|
|
1120
1200
|
width: max-content;
|
|
1121
1201
|
`}
|
|
1122
|
-
`,
|
|
1202
|
+
`,Li=s.dt.li`
|
|
1123
1203
|
${({theme:e})=>`
|
|
1124
1204
|
align-items: center;
|
|
1125
1205
|
background: ${e.palette.white};
|
|
@@ -1136,16 +1216,16 @@
|
|
|
1136
1216
|
background: ${e.palette.gray[100]};
|
|
1137
1217
|
}
|
|
1138
1218
|
`}
|
|
1139
|
-
`,
|
|
1219
|
+
`,Mi=s.dt.p`
|
|
1140
1220
|
color: ${({theme:e})=>e.palette.gray[800]};
|
|
1141
1221
|
font-size: inherit;
|
|
1142
1222
|
min-width: 55%;
|
|
1143
1223
|
overflow: hidden;
|
|
1144
1224
|
text-overflow: ellipsis;
|
|
1145
1225
|
white-space: nowrap;
|
|
1146
|
-
`,J=(e,n,i=!1)=>{p.useEffect(()=>{var a;const r=o=>{e&&!e.contains(o.target)&&n()};return i?(document.addEventListener("click",r,!0),()=>{document.removeEventListener("click",r,!0)}):((a=document.getElementById("root"))==null||a.addEventListener("click",r,!0),()=>{var o;(o=document.getElementById("root"))==null||o.removeEventListener("click",r,!0)})},[i,e,n])},
|
|
1147
|
-
${e?"disabled":""} ${z?"error":""} ${
|
|
1148
|
-
`,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":z?"true":"false","aria-label":c,"aria-required":h,className:
|
|
1226
|
+
`,J=(e,n,i=!1)=>{p.useEffect(()=>{var a;const r=o=>{e&&!e.contains(o.target)&&n()};return i?(document.addEventListener("click",r,!0),()=>{document.removeEventListener("click",r,!0)}):((a=document.getElementById("root"))==null||a.addEventListener("click",r,!0),()=>{var o;(o=document.getElementById("root"))==null||o.removeEventListener("click",r,!0)})},[i,e,n])},Wi=({disabled:e,error:n,label:i,name:r,placeholder:a,required:o,register:l,tooltip:c,value:d,weight:u})=>{const g=s.nt(),x=p.useRef(null),f=e?void 0:n,[h,y]=p.useState(!1),[$,m]=p.useState(""),{refs:w,floatingStyles:j}=s.useFloating({placement:"bottom-start",whileElementsMounted:s.autoUpdate}),{inputValue:I,handlePhoneValueChange:S,country:z,setCountry:R}=s.ee({countries:s.R,defaultCountry:"us",forceDialCode:!0,value:d?String(d):void 0}),L=p.useCallback(()=>{y(N=>!N),h||m("")},[h]),P=p.useCallback(N=>()=>{R(N),y(!1),m("")},[R,y]),W=p.useCallback(N=>{N.key.length===1?m(A=>A+N.key):N.key==="Backspace"&&m(A=>A.slice(0,-1))},[]),E=s.R.filter(N=>{const{name:A}=s.M$1(N);return A.toLowerCase().includes($.toLowerCase())});return J(w.floating.current,()=>{y(!1),m("")},!0),t.jsx(O,{error:f,htmlFor:r,label:i,required:o,tooltip:c,weight:u,children:t.jsxs(Di,{className:`${e?"disabled":""} ${f?"error":""}`,ref:x,children:[t.jsxs(Fi,{"aria-label":"country-selector","data-testid":"country-selector",disabled:e,id:"country-selector",onClick:L,onKeyDown:W,ref:w.setReference,children:[t.jsx(s.q,{iso2:z.iso2,size:"16px"}),t.jsx(C,{icon:"angle-down",iconColor:g.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":r,"aria-required":o,autoComplete:"off","data-testid":`${r}-input`,disabled:e,id:r,name:r,placeholder:a,type:"tel",value:I,...l==null?void 0:l(r,{required:o,onChange:S})}),f?t.jsx(C,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:g.palette.error[500],iconSize:"xs"}):void 0]}),h&&V.createPortal(t.jsx(Pi,{ref:w.setFloating,style:j,children:E.map(N=>{const{dialCode:A,iso2:_,name:te}=s.M$1(N);return t.jsxs(Li,{onClick:P(_),value:_,children:[t.jsx(s.q,{iso2:_,size:"16px"}),t.jsx(Mi,{children:te}),t.jsx(k,{color:g.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+A})]},_)})}),document.getElementById("root")??document.body)]})})},Bi=({disabled:e=!1,error:n,helpLink:i,helpText:r,isTouched:a,isValid:o,label:l,name:c="input-text",id:d,maskValue:u=!1,maxLength:g,placeholder:x,register:f,required:h,rows:y,tooltip:$,watch:m,weight:w})=>{const j=s.nt(),I=m==null?void 0:m(c),S=o&&a&&!e,z=e?void 0:n;return t.jsx(O,{error:z,helpLink:i,helpText:r,htmlFor:c,label:l,maxLength:g,required:h,tooltip:$,value:I?String(I):void 0,weight:w,children:t.jsxs(Z,{className:`
|
|
1227
|
+
${e?"disabled":""} ${z?"error":""} ${S?"success":""}
|
|
1228
|
+
`,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":z?"true":"false","aria-label":c,"aria-required":h,className:u?"sr-block":"","data-testid":`${c}-text-area`,disabled:e,id:d??c,maxLength:g,placeholder:x,rows:y,...f==null?void 0:f(c,{required:h})}),z?t.jsx(C,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:j.palette.error[500],iconSize:"xs"}):void 0,S?t.jsx(C,{icon:"check-circle",iconClass:"success-icon",iconColor:j.palette.success[500],iconSize:"xs"}):void 0]})})},Ai=({description:e,disabled:n,id:i,align:r,inputType:a="text",inputNumberProps:o,minHeight:l,minWidth:c,name:d,placeholder:u,tooltip:g,title:x})=>{const f=p.useMemo(()=>{if(a==="text")return t.jsx(St,{disabled:n,name:d,placeholder:u});if(a==="date")return t.jsx(kt,{disabled:n,name:d});const{decimalPlaces:h,max:y,min:$}=o??{};return t.jsx(zt,{decimalPlaces:h,disabled:n,max:y,min:$,name:d,placeholder:u})},[n,o,a,d,u]);return t.jsxs(ii,{$align:r,$minHeight:l,$minWidth:c,children:[t.jsx(ve,{description:e,id:i,title:x,tooltip:g}),f]})},Oi=s.dt.label`
|
|
1149
1229
|
${({theme:e})=>`
|
|
1150
1230
|
align-items: center;
|
|
1151
1231
|
color: ${e.palette.gray[600]};
|
|
@@ -1217,7 +1297,7 @@
|
|
|
1217
1297
|
fill: ${e.palette.white};
|
|
1218
1298
|
}
|
|
1219
1299
|
`}
|
|
1220
|
-
`,Te=p.forwardRef(function({disabled:n=!1,label:i,name:r,onChange:a,onClick:o,onFocus:l,onKeyDown:c,value:d,...
|
|
1300
|
+
`,Te=p.forwardRef(function({disabled:n=!1,label:i,name:r,onChange:a,onClick:o,onFocus:l,onKeyDown:c,value:d,...u},g){return t.jsxs(Oi,{"aria-disabled":n,children:[t.jsx("input",{"aria-disabled":n,"aria-hidden":!1,"aria-label":r,disabled:n,id:r,name:r,onChange:a,onClick:o,onFocus:l,onKeyDown:c,ref:g,type:"checkbox",value:d,...u}),t.jsx(C,{disabled:n,icon:"check",iconSize:"sm"}),i??d]})}),It=({options:e,title:n,checkboxesName:i,onChange:r})=>{const a=s.nt(),[o,l]=p.useState(!1),c=p.useCallback(()=>{l(d=>!d)},[]);return t.jsxs(b,{bgColor:o?a.palette.gray[50]:a.palette.white,border:"1px solid"+a.palette.gray[300],borderRadius:"8px",display:"inline-flex",flexDirection:"column",gap:.625,px:.75,py:.625,width:"100%",children:[t.jsxs(b,{alignItems:"center",cursor:"pointer",display:"flex",onClick:c,children:[t.jsx(k,{color:a.palette.gray[800],fontWeight:"bold",size:"sm",children:n}),t.jsx(C,{icon:o?"chevron-up":"chevron-down",iconColor:a.palette.gray[400],iconSize:"xs"})]}),o?t.jsx(b,{display:"flex",gap:.75,wrap:"wrap",children:e.map(d=>t.jsx(b,{border:"1px solid",borderColor:a.palette.gray[300],borderRadius:"4px",px:.5,py:.5,children:t.jsx(Te,{checked:d.visible,disabled:d.locked,label:d.name,name:i,onChange:r,value:d.name})},d.name))}):void 0]})},Tt=(e,n)=>{const[r,a]=p.useState(0),[o,l]=p.useState(0);return p.useEffect(()=>{o===100&&(()=>{a(d=>d===n-1?0:d+1)})()},[o,n]),p.useEffect(()=>{const c=setInterval(()=>{l(d=>d===100?0:d+1)},e);return()=>{clearInterval(c)}},[e]),{cycle:r,progress:o,setCycle:a,setProgress:l}},Nt=({publicId:e,format:n="webp"})=>{const i=p.useMemo(()=>new s.Cloudinary({cloud:{cloudName:"fluid-attacks"}}),[]);return p.useMemo(()=>i.image(e).format(n),[i,e,n])},Ue=e=>{const[n,i]=p.useState(!1),r=p.useCallback(()=>{i(!0)},[]),a=p.useCallback(()=>{i(!1)},[]),o=p.useCallback(()=>{i(l=>!l)},[]);return{close:a,isOpen:n,name:e,open:r,setIsOpen:i,toggle:o}},Hi=({name:e,items:n,defaultVisibility:i,setColumnOrder:r})=>{const a=p.useMemo(()=>[...n.filter(({locked:g})=>g).map(({locked:g,...x})=>({...x,visible:!0,locked:g})),...n.filter(({locked:g})=>!g).sort((g,x)=>g.visible===x.visible?0:g.visible?-1:1)],[n]),[o,l]=p.useState(a),c=p.useMemo(()=>s.some(o,g=>((i==null?void 0:i[g.id])??!0)!==g.visible),[o,i]),d=p.useCallback(g=>{const x=g.filter(({locked:$})=>!$),h=[...g.filter(({locked:$})=>$),...x],y=h.map(({name:$})=>$);l($=>[...h,...$.filter(({name:m})=>!y.includes(m))]),r&&r(h.map(({id:$})=>$))},[r]),u=p.useCallback(()=>{const g=o.map(x=>{var h;const f=(i==null?void 0:i[x.id])??!0;return(h=x.toggleVisibility)==null||h.call(x,f),{...x,visible:f}});l(g),r&&r(g.map(({id:x})=>x))},[i,o,r]);return{setColumns:d,resetToDefault:u,columns:o,...Ue(e),hasChanged:c}},Et=(e,n)=>p.useMemo(()=>s._.debounce(e,n),[e,n]),_i=e=>{const[n,i]=p.useState(),r=Et(a=>{i(a)},(e==null?void 0:e.debounceWait)??300);return[n,r]},Gi=({alt:e="img",height:n="",width:i="",plugins:r=[s.lazyload(),s.placeholder()],publicId:a})=>{const o=Nt({publicId:a});return t.jsx(s.AdvancedImage,{alt:e,cldImg:o,height:n,plugins:r,width:i})},G=p.memo(Gi),Vi=s.dt.label`
|
|
1221
1301
|
${({theme:e})=>`
|
|
1222
1302
|
align-items: center;
|
|
1223
1303
|
display: flex;
|
|
@@ -1296,7 +1376,7 @@
|
|
|
1296
1376
|
}
|
|
1297
1377
|
|
|
1298
1378
|
`}
|
|
1299
|
-
`,
|
|
1379
|
+
`,Ui=s.dt.span.attrs({className:"checkmark"})``,Rt=p.forwardRef(function({defaultChecked:n=!1,disabled:i=!1,label:r,name:a,onChange:o,onClick:l,value:c,...d},u){return t.jsxs(Vi,{"aria-disabled":i,"aria-label":a,role:"radiogroup",children:[t.jsx("input",{"aria-checked":n,"aria-disabled":i,"aria-label":a,defaultChecked:n,disabled:i,name:a,onChange:o,onClick:l,ref:u,type:"radio",value:c,...d}),t.jsx(Ui,{}),r??null]})}),Yi=({alt:e,imageId:n,icon:i,selectorProps:r,onClick:a,title:o,width:l="fit-content"})=>{const c=s.nt();return t.jsxs(b,{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(b,{alignSelf:"start",display:"flex",width:"fit-content",children:t.jsx(Rt,{name:r.name,onClick:a,value:r.value})}),t.jsxs(b,{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(C,{icon:i,iconSize:"sm",iconType:"fa-light"}),t.jsx(M,{fontWeight:"bold",lineSpacing:1.75,size:"xs",children:o})]})]})},ne=s.dt.div`
|
|
1300
1380
|
${({theme:e})=>`
|
|
1301
1381
|
align-items: center;
|
|
1302
1382
|
background-color: ${e.palette.gray[200]};
|
|
@@ -1308,7 +1388,7 @@
|
|
|
1308
1388
|
transition: 0.2s;
|
|
1309
1389
|
width: 36px;
|
|
1310
1390
|
`}
|
|
1311
|
-
`,
|
|
1391
|
+
`,Ki=s.dt.div`
|
|
1312
1392
|
${({theme:e})=>`
|
|
1313
1393
|
background-color: ${e.palette.white};
|
|
1314
1394
|
border-radius: 50%;
|
|
@@ -1319,7 +1399,7 @@
|
|
|
1319
1399
|
width: ${e.spacing[1]};
|
|
1320
1400
|
z-index: 1;
|
|
1321
1401
|
`}
|
|
1322
|
-
`,
|
|
1402
|
+
`,qi=s.dt.label`
|
|
1323
1403
|
display: inline-block;
|
|
1324
1404
|
|
|
1325
1405
|
input {
|
|
@@ -1346,22 +1426,22 @@
|
|
|
1346
1426
|
background-color: ${({theme:e})=>e.palette.gray[200]};
|
|
1347
1427
|
border: 1px solid ${({theme:e})=>e.palette.gray[200]};
|
|
1348
1428
|
}
|
|
1349
|
-
`,
|
|
1429
|
+
`,Dt=p.forwardRef(function({defaultChecked:n,disabled:i=!1,justify:r,name:a,leftDescription:o,rightDescription:l,...c},d){const u=n===!0?"on":"off",g=typeof o=="object"&&o.on&&o.off?o[u]:o,x=p.useCallback(f=>{f.stopPropagation()},[]);return t.jsxs(b,{alignItems:"center",display:"flex",fontSize:"14px",gap:.75,justify:r,children:[g,t.jsxs(qi,{onClick:x,role:"switch",children:[t.jsx("input",{...c,"aria-disabled":i,"aria-label":a,checked:n===!0,disabled:i,name:a,ref:d,type:"checkbox"}),t.jsx(ne,{"aria-label":"Toggle Switch",id:`${a}Toggle`,children:t.jsx(Ki,{})})]}),l]})}),Xi=({id:e,title:n,toggles:i,minWidth:r="auto",height:a="auto"})=>{const o=s.nt();return t.jsxs(b,{alignItems:"center",bgColor:o.palette.white,border:`1px solid ${o.palette.gray[200]}`,borderRadius:o.spacing[.25],display:"flex",flexDirection:"column",gap:.5,height:a,justify:"center",minHeight:"100px",minWidth:r,padding:[1.25,1.25,1.25,1.25],children:[t.jsx(ve,{id:e,title:n}),t.jsx(b,{display:"flex",flexDirection:"column",gap:.5,minHeight:"40px",width:"100%",children:i.map(l=>t.jsx(Dt,{...l},`$card-toggle-${l.name}`))})]})},Zi=s.dt.div`
|
|
1350
1430
|
position: relative;
|
|
1351
1431
|
margin: auto;
|
|
1352
1432
|
overflow: hidden;
|
|
1353
|
-
`,
|
|
1433
|
+
`,Ji=s.dt.div`
|
|
1354
1434
|
display: flex;
|
|
1355
1435
|
transition: transform 0.5s ease-in-out;
|
|
1356
1436
|
transform: translateX(
|
|
1357
1437
|
${({$currentIndex:e})=>-e*100}%
|
|
1358
1438
|
);
|
|
1359
|
-
`,
|
|
1439
|
+
`,Qi=s.dt.div`
|
|
1360
1440
|
align-items: center;
|
|
1361
1441
|
display: flex;
|
|
1362
1442
|
justify-content: center;
|
|
1363
1443
|
min-width: 100%;
|
|
1364
|
-
`,
|
|
1444
|
+
`,er=s.dt.button`
|
|
1365
1445
|
${({theme:e,$isActive:n})=>`
|
|
1366
1446
|
background-color: ${n?e.palette.primary[400]:e.palette.white};
|
|
1367
1447
|
border: none;
|
|
@@ -1370,13 +1450,13 @@
|
|
|
1370
1450
|
height: ${e.spacing[.75]};
|
|
1371
1451
|
width: ${e.spacing[.75]};
|
|
1372
1452
|
`}
|
|
1373
|
-
`,
|
|
1453
|
+
`,tr=s.dt.div`
|
|
1374
1454
|
align-items: center;
|
|
1375
1455
|
display: flex;
|
|
1376
1456
|
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1377
1457
|
justify-content: center;
|
|
1378
1458
|
margin-top: ${({theme:e})=>e.spacing[2]};
|
|
1379
|
-
`,
|
|
1459
|
+
`,nr=({slides:e,interval:n=300})=>{const{cycle:i,setCycle:r,setProgress:a}=Tt(n,e.length),o=p.useCallback(l=>()=>{r(l),a(0)},[r,a]);return t.jsxs(Zi,{"aria-roledescription":"carousel",children:[t.jsx(Ji,{$currentIndex:i,children:e.map((l,c)=>{const d=`slide-${c}`;return t.jsx(Qi,{"aria-label":d,"aria-roledescription":"slide",children:l.content},d)})}),t.jsx(tr,{children:e.map((l,c)=>{const d=`nav-button-${c}`;return t.jsx(er,{$isActive:c===i,"aria-label":`Go to slide ${c+1}`,"data-testid":c===i?"active":"inactive",onClick:o(c)},d)})})]})},Ft=s.dt.div`
|
|
1380
1460
|
${({theme:e})=>`
|
|
1381
1461
|
background-color: ${e.palette.gray[100]};
|
|
1382
1462
|
border-radius: ${e.spacing[.25]};
|
|
@@ -1428,7 +1508,7 @@
|
|
|
1428
1508
|
padding-bottom: unset;
|
|
1429
1509
|
}
|
|
1430
1510
|
`}
|
|
1431
|
-
`,
|
|
1511
|
+
`,ir=s.dt.div`
|
|
1432
1512
|
${({theme:e})=>`
|
|
1433
1513
|
align-items: end;
|
|
1434
1514
|
background-color: ${e.palette.gray[100]};
|
|
@@ -1446,10 +1526,10 @@
|
|
|
1446
1526
|
background-color: ${e.palette.gray[200]};
|
|
1447
1527
|
}
|
|
1448
1528
|
`}
|
|
1449
|
-
`,
|
|
1529
|
+
`,Pt=({noCodeMessage:e="Code snippet not available",snippet:n,specific:i})=>(p.useEffect(()=>{s.prismExports.highlightAll()},[]),t.jsx(Ft,{"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})})})),rr=({noCodeMessage:e="Code snippet not available",snippet:n,specific:i,variant:r="normal"})=>{const a=s.nt(),[o,l]=p.useState(!1),[c,d]=p.useState(!0),u=p.useCallback(()=>{l(h=>!h)},[l]),g=p.useCallback(()=>{if(s._.isNil(n)||s._.isEmpty(n)||!s._.isString(n))return d(!1),e;const h=n.split(`
|
|
1450
1530
|
`);return h.length>8&&!o?`${[...h].splice(0,7).join(`
|
|
1451
1531
|
`)}
|
|
1452
|
-
${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),
|
|
1532
|
+
${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(async()=>{await navigator.clipboard.writeText(x)},[x]);return r==="location"?t.jsx(Pt,{noCodeMessage:e,snippet:n,specific:i}):t.jsxs(b,{bgColor:a.palette.gray[100],borderRadius:"4px",display:"inline-flex",minWidth:"565px",position:"relative",children:[t.jsx(Ft,{"data-private":!0,children:t.jsx("pre",{children:t.jsx("code",{className:"language-none",children:x})})}),t.jsxs(ir,{children:[t.jsx(B,{height:a.spacing[2.5],icon:"copy",iconColor:a.palette.gray[700],iconSize:"xs",iconType:"fa-light",onClick:f,variant:"ghost",width:a.spacing[2.5]}),c?t.jsxs(D,{onClick:u,variant:"ghost",children:[o?"Show Less":"Show more",t.jsx(C,{icon:o?"chevron-up":"chevron-down",iconColor:a.palette.gray[700],iconSize:"xxs",iconType:"fa-light",ml:.25,onClick:f})]}):!1]})]})},{getVariant:ar}=U(e=>({fixed:`
|
|
1453
1533
|
width: 300px;
|
|
1454
1534
|
padding: ${e.spacing[1.25]};
|
|
1455
1535
|
overflow: hidden auto;
|
|
@@ -1502,9 +1582,9 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
1502
1582
|
}
|
|
1503
1583
|
}
|
|
1504
1584
|
|
|
1505
|
-
${
|
|
1585
|
+
${ar(e,n)}
|
|
1506
1586
|
`}
|
|
1507
|
-
`,
|
|
1587
|
+
`,or=s.dt.div`
|
|
1508
1588
|
${({theme:e})=>`
|
|
1509
1589
|
background-color: ${e.palette.white};
|
|
1510
1590
|
border-bottom: 1px solid ${e.palette.gray[200]};
|
|
@@ -1522,7 +1602,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
1522
1602
|
padding: 0;
|
|
1523
1603
|
}
|
|
1524
1604
|
`}
|
|
1525
|
-
`,
|
|
1605
|
+
`,sr=s.dt.div`
|
|
1526
1606
|
border-radius: ${({theme:e})=>`${e.spacing[.25]} ${e.spacing[.25]} 0 0`};
|
|
1527
1607
|
display: block;
|
|
1528
1608
|
overflow: unset;
|
|
@@ -1531,7 +1611,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
1531
1611
|
max-width: 100%;
|
|
1532
1612
|
padding: ${({theme:e})=>`${e.spacing[1.25]}`};
|
|
1533
1613
|
position: sticky;
|
|
1534
|
-
`,
|
|
1614
|
+
`,lr=s.dt.div.attrs({className:"flex items-center justify-between mb-1.5"})``,cr=s.dt.div`
|
|
1535
1615
|
${({theme:e})=>`
|
|
1536
1616
|
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
1537
1617
|
display: flex;
|
|
@@ -1562,7 +1642,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
1562
1642
|
margin-right: 0;
|
|
1563
1643
|
}
|
|
1564
1644
|
`}
|
|
1565
|
-
`,
|
|
1645
|
+
`,dr=s.dt.div`
|
|
1566
1646
|
img {
|
|
1567
1647
|
margin: 0 calc(-${({theme:e})=>e.spacing[1.25]} - 1px)
|
|
1568
1648
|
${({theme:e})=>e.spacing[1.25]};
|
|
@@ -1578,7 +1658,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
1578
1658
|
margin-right: 0;
|
|
1579
1659
|
`:""}
|
|
1580
1660
|
}
|
|
1581
|
-
`,
|
|
1661
|
+
`,Lt=({alert:e,modalRef:n,confirmButton:i=void 0,cancelButton:r=void 0})=>{const{close:a}=n,o=p.useCallback(()=>{r!=null&&r.onClick&&r.onClick(),a()},[r,a]),l=p.useCallback(()=>{i!=null&&i.onClick&&i.onClick(),a()},[i,a]);return[i,r].some(d=>!s.lodashExports.isEmpty(d))?t.jsxs(b,{display:"flex",flexDirection:"column",gap:.625,position:"sticky",px:1.25,py:1.25,children:[e,t.jsx(cr,{children:t.jsxs("div",{children:[r&&t.jsx(D,{onClick:o,variant:"tertiary",width:"100%",children:r.text}),i&&t.jsx(D,{onClick:l,variant:"primary",width:"100%",children:i.text})]})})]}):null},pr=s.dt.button`
|
|
1582
1662
|
${({theme:e})=>`
|
|
1583
1663
|
align-items: center;
|
|
1584
1664
|
color: ${e.palette.gray[500]};
|
|
@@ -1598,7 +1678,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
1598
1678
|
color: ${e.palette.gray[800]};
|
|
1599
1679
|
}
|
|
1600
1680
|
`}
|
|
1601
|
-
`,
|
|
1681
|
+
`,gr=s.dt.div`
|
|
1602
1682
|
${({theme:e})=>`
|
|
1603
1683
|
align-items: center;
|
|
1604
1684
|
border-bottom: 2px solid ${e.palette.gray[200]};
|
|
@@ -1607,11 +1687,11 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
1607
1687
|
height: ${e.spacing[3]};
|
|
1608
1688
|
width: max-content;
|
|
1609
1689
|
`}
|
|
1610
|
-
`,
|
|
1690
|
+
`,ur=(e,n,i)=>i?n==="secondary"?`3px solid ${e.palette.primary[100]}`:`3px solid ${e.palette.primary[500]}`:"unset",xr=s.dt.div`
|
|
1611
1691
|
display: flex;
|
|
1612
1692
|
flex-direction: row;
|
|
1613
1693
|
gap: ${({theme:e})=>e.spacing[.25]};
|
|
1614
|
-
border-bottom: ${({theme:e,$borderButton:n,$variant:i})=>
|
|
1694
|
+
border-bottom: ${({theme:e,$borderButton:n,$variant:i})=>ur(e,i,n)};
|
|
1615
1695
|
align-items: center;
|
|
1616
1696
|
padding: ${({theme:e})=>e.spacing[.625]}
|
|
1617
1697
|
${({theme:e})=>e.spacing[.5]};
|
|
@@ -1650,7 +1730,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
1650
1730
|
}
|
|
1651
1731
|
}
|
|
1652
1732
|
}
|
|
1653
|
-
`,
|
|
1733
|
+
`,fr=s.dt(ee)`
|
|
1654
1734
|
${({theme:e,$variant:n})=>`
|
|
1655
1735
|
align-items: center;
|
|
1656
1736
|
background: ${n==="error"?e.palette.primary[400]:e.palette.warning[500]};
|
|
@@ -1663,14 +1743,14 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
1663
1743
|
width: ${e.spacing[.5]};
|
|
1664
1744
|
height: ${e.spacing[.5]};
|
|
1665
1745
|
`}
|
|
1666
|
-
`,
|
|
1746
|
+
`,hr=s.dt.div`
|
|
1667
1747
|
align-items: center;
|
|
1668
1748
|
color: ${({theme:e})=>e.palette.white};
|
|
1669
1749
|
display: flex;
|
|
1670
1750
|
font-size: 6px;
|
|
1671
1751
|
font-weight: ${({theme:e})=>e.typography.weight.bold};
|
|
1672
1752
|
justify-content: center;
|
|
1673
|
-
`,
|
|
1753
|
+
`,Mt=p.forwardRef(function({numberIndicator:n,show:i,variant:r="error",...a},o){return t.jsx(fr,{$variant:r,className:i?"flex":"hidden","data-testid":"notification-sign",ref:o,...a,children:n&&t.jsx(hr,{children:n<=9?n:9})})}),Wt=({end:e=!1,label:n,id:i,isActive:r=!1,link:a,notificationSign:o,onClick:l,tooltip:c="",variant:d="primary",tag:u})=>{const{pathname:g}=Re.useLocation(),x=r||(d==="primary"?g.includes(a):g.endsWith(a));return t.jsx(Y,{display:"flex",id:`${i}-tooltip`,tip:c,children:t.jsxs(xr,{$borderButton:x,$variant:d,children:[t.jsxs(Re.NavLink,{end:e,id:i,onClick:l,to:a,children:[n,t.jsx(Mt,{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})]}),u===void 0?null:t.jsx(X,{tagLabel:`${u}`,variant:"default"})]})})},Ye=({items:e,borders:n=!0,box:i=!1,variant:r="primary"})=>{const a=s.nt();return t.jsx(b,{alignItems:"center",bgColor:a.palette.white,border:i?"1px solid":void 0,borderBottom:n?`1px solid ${a.palette.gray[300]}`:void 0,borderColor:i?a.palette.gray[200]:void 0,borderRadius:i?a.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:u,notificationSign:g,onClick:x,tag:f,tooltip:h})=>t.jsx(Wt,{end:o,id:l,isActive:c,label:u,link:d,notificationSign:g,onClick:x,tag:f,tooltip:h,variant:r},l))})},Bt=({tabItems:e,title:n,description:i,modalRef:r,otherActions:a,onClose:o})=>{const l=s.nt(),c=p.useCallback(()=>{o==null||o(),r.close()},[r,o]);return p.useEffect(()=>{const d=u=>{u.key==="Escape"&&c()};return window.addEventListener("keydown",d),()=>{window.removeEventListener("keydown",d)}},[c]),t.jsxs(t.Fragment,{children:[t.jsxs(sr,{children:[t.jsxs(lr,{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:[a,t.jsx(B,{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(k,{mt:.5,size:"sm",children:i}):i]}),e&&t.jsx(b,{borderTop:`1px solid ${l.palette.gray[300]}`,display:"block",position:"sticky",children:t.jsx(Ye,{items:e})})]})},At=({disabled:e,id:n="modal-confirm",onCancel:i,onConfirm:r="submit",txtCancel:a,txtConfirm:o})=>{const l=r==="submit";return t.jsxs(b,{display:"flex",gap:.75,maxWidth:i?"392px":"190px",mt:1.5,children:[i?t.jsx(D,{id:`${n}-cancel`,justify:"center",onClick:i,variant:"tertiary",width:"100%",children:a??"Cancel"}):void 0,t.jsx(D,{disabled:e,id:n,justify:"center",onClick:l?void 0:r,type:l?"submit":"button",variant:"primary",width:"100%",children:o??"Confirm"})]})},Q=p.forwardRef(function({color:n=v.palette.gray[100],mt:i=.5,mb:r=.5,width:a,...o},l){return t.jsx(b,{as:"hr",borderBottom:`1px solid ${n}`,mb:r,mt:i,ref:l,width:a??"100%",...o})}),br=s.dt.li`
|
|
1674
1754
|
${({theme:e})=>`
|
|
1675
1755
|
align-items: center;
|
|
1676
1756
|
background-color: ${e.palette.white};
|
|
@@ -1729,7 +1809,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
1729
1809
|
min-width: 240px;
|
|
1730
1810
|
padding: ${e.spacing[.25]} 0 ${e.spacing[.25]} 0;
|
|
1731
1811
|
`}
|
|
1732
|
-
`,be=({children:e,disabled:n=!1,icon:i,iconType:r="fa-light",href:a,onClick:o,onClickIcon:l,onKeyDown:c,rightIcon:d,selected:
|
|
1812
|
+
`,be=({children:e,disabled:n=!1,icon:i,iconType:r="fa-light",href:a,onClick:o,onClickIcon:l,onKeyDown:c,rightIcon:d,selected:u=!1,value:g,...x})=>{const h=s.nt().palette.gray[n?300:800],y=n?p.Children.map(e,$=>p.isValidElement($)?p.cloneElement($,{disabled:n,...$.props}):$):e;return t.jsxs(br,{"aria-disabled":n,"aria-label":g,"aria-selected":u,"data-testid":g,onClick:o,onKeyDown:c,value:g,...x,children:[i!==void 0||g!==void 0?t.jsxs(b,{alignItems:"center",display:"flex",gap:.625,children:[i?t.jsx(C,{disabled:n,icon:i,iconColor:h,iconSize:"xs",iconType:r}):null,a===void 0?y:t.jsx(q,{href:a,children:y})]}):null,u||d?t.jsx(C,{disabled:n,icon:d??"check",iconClass:"selected",iconColor:h,iconSize:"xs",iconType:r,onClick:l}):null]})},$r=s.dt(be)`
|
|
1733
1813
|
margin-top: 10px;
|
|
1734
1814
|
border: 1px solid ${({theme:e})=>e.palette.gray[300]};
|
|
1735
1815
|
border-radius: 4px;
|
|
@@ -1738,7 +1818,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
1738
1818
|
&[aria-selected="true"] {
|
|
1739
1819
|
background-color: unset;
|
|
1740
1820
|
}
|
|
1741
|
-
`,
|
|
1821
|
+
`,Ht=({items:e,onReorder:n,title:i,description:r,onClickClose:a})=>{const o=p.useCallback(l=>()=>{a(l)},[a]);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(b,{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(k,{size:"sm",children:r}),e.map(l=>l.visible?t.jsx(s.ReorderItem,{as:"div",dragListener:!l.locked,item:l.name,value:l,children:t.jsx($r,{disabled:l.locked,icon:"grid-horizontal",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)]})},yr=s.dt(be)`
|
|
1742
1822
|
padding: 7px 8px;
|
|
1743
1823
|
|
|
1744
1824
|
&[aria-selected="true"] {
|
|
@@ -1754,7 +1834,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
1754
1834
|
display: none;
|
|
1755
1835
|
}
|
|
1756
1836
|
}
|
|
1757
|
-
`,
|
|
1837
|
+
`,_t=e=>e.reduce((i,r)=>r.group?i[r.group]?{...i,[r.group]:[...i[r.group],r]}:{...i,[r.group]:[r]}:i,{}),mr=s.dt.input`
|
|
1758
1838
|
${({theme:e})=>`
|
|
1759
1839
|
background: none;
|
|
1760
1840
|
border: none !important;
|
|
@@ -1770,7 +1850,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
1770
1850
|
color: ${e.palette.gray[400]};
|
|
1771
1851
|
}
|
|
1772
1852
|
`}
|
|
1773
|
-
|
|
1853
|
+
`,wr=s.dt.div`
|
|
1774
1854
|
${({theme:e})=>`
|
|
1775
1855
|
align-items: center;
|
|
1776
1856
|
background-color: ${e.palette.white};
|
|
@@ -1790,16 +1870,16 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
1790
1870
|
border: 2px solid ${e.palette.black};
|
|
1791
1871
|
}
|
|
1792
1872
|
`}
|
|
1793
|
-
`,
|
|
1873
|
+
`,jr=s.dt.div`
|
|
1794
1874
|
${({theme:e})=>`
|
|
1795
1875
|
background-color: ${e.palette.white};
|
|
1796
1876
|
border-radius: ${e.spacing[.5]};
|
|
1797
1877
|
width: 250px;
|
|
1798
1878
|
`}
|
|
1799
|
-
`,ae=p.forwardRef(function({name:n,smallSearch:i=!1,value:r,...a},o){const l=s.nt(),[c,d]=p.useState(!1),{refs:
|
|
1879
|
+
`,ae=p.forwardRef(function({name:n,smallSearch:i=!1,value:r,...a},o){const l=s.nt(),[c,d]=p.useState(!1),{refs:u,floatingStyles:g}=s.useFloating(),x=p.useCallback(()=>{d(h=>!h)},[]);J(u.floating.current,()=>{d(!1)},!0);const f=t.jsxs(wr,{children:[t.jsx(C,{icon:"magnifying-glass",iconColor:l.palette.gray[700],iconSize:"xs",iconType:"fa-light"}),t.jsx(mr,{...a,id:n,name:n,ref:o,value:r}),!s.lodashExports.isEmpty(r)&&t.jsx(B,{icon:"xmark",iconColor:l.palette.gray[300],iconSize:"xs",iconType:"fa-light",px:.25,py:.25,type:"reset",variant:"ghost"})]});return i?t.jsxs(p.Fragment,{children:[t.jsx(B,{border:`1px solid ${l.palette.gray[300]} !important`,icon:"magnifying-glass",iconSize:"xs",iconType:"fa-light",onClick:x,ref:u.setReference,variant:"ghost"}),c?t.jsx(jr,{ref:u.setFloating,style:g,children:f}):void 0]}):f}),Gt=({columns:e,formId:n,onChangeHandler:i,variant:r})=>{const[a,o]=p.useState([]),[l,c]=p.useState(""),d=p.useRef(null),u=p.useCallback(x=>{const{value:f}=x.target;c(f)},[]),g=p.useCallback(()=>{d.current&&(d.current.reset(),c(""))},[d]);return p.useEffect(()=>{o(e.filter(x=>{var f;return r==="grouped"?x.name.toLowerCase().includes(l.toLowerCase())||((f=x.group)==null?void 0:f.includes(l.toLowerCase())):x.name.toLowerCase().includes(l.toLowerCase())}))},[e,l,r]),r==="grouped"?t.jsxs(b,{display:"flex",flexDirection:"column",gap:.625,height:"100%",py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:d,children:t.jsx(ae,{name:"search",onChange:u,type:"search"})}),t.jsx("form",{"data-testid":n,id:n,onReset:g,style:{display:"flex",flexDirection:"column",gap:"0.625rem"},children:Object.entries(_t(a)).map(([x,f])=>{const h=`li-checkbox${x}`;return t.jsx(It,{checkboxesName:x,onChange:i,options:f,title:x},h)})})]}):t.jsxs(b,{height:"100%",py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:d,children:t.jsx(ae,{name:"search",onChange:u,type:"search"})}),t.jsx("form",{"data-testid":n,id:n,onReset:g,style:{paddingTop:"0.625rem"},children:a.map(x=>{const f=`li-checkbox-${x.name}`;return t.jsx(yr,{selected:x.visible,value:f,width:"content",children:t.jsx(Te,{checked:x.visible,disabled:x.locked,label:x.name,name:x.name,onChange:i,value:x.name})},f)})})]})},kr=({_containerId:e="portals",title:n,modalRef:i,variant:r})=>{const a=s.nt(),o=p.useRef(null),[l,c]=p.useState(void 0),d=p.useCallback(x=>{const{checked:f,value:h}=x.target,y=i.columns.map($=>{var m;return $.name===h?((m=$.toggleVisibility)==null||m.call($,f),{...$,visible:f}):$});i.setColumns(y)},[i]),u=p.useCallback(x=>{const f=i.columns.map(h=>{var y;return h.id===x?((y=h.toggleVisibility)==null||y.call(h,!1),{...h,visible:!1}):h});i.setColumns(f)},[i]),g=p.useCallback(()=>{var f;const x=(f=o.current)==null?void 0:f.scrollHeight;l!==x&&c(x)},[l]);return i.isOpen?V.createPortal(t.jsx(fe,{"aria-label":i.name,"aria-modal":"true",children:t.jsxs(he,{$size:"md",flexDirection:"column",children:[t.jsxs(b,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(M,{size:"sm",children:n}),t.jsx(B,{icon:"close",iconColor:a.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(Q,{mb:0,mt:0}),t.jsxs(b,{display:"flex",gap:1.25,onScroll:g,px:1.25,ref:o,scroll:"y",width:"100%",children:[t.jsx(Gt,{columns:i.columns,formId:"columns-visibility",onChangeHandler:d,variant:r}),t.jsx(b,{borderLeft:`2px solid ${a.palette.gray[100]}`,height:l?`${l}px`:"auto"}),t.jsx(Ht,{description:"Click and drag to reorder the columns",items:i.columns,onClickClose:u,onReorder:i.setColumns,title:"Reorder columns"})]}),t.jsx(Q,{mb:0,mt:0}),t.jsxs(b,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(D,{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(D,{id:"columns-modal-submit",justify:"center",onClick:i.close,variant:"primary",children:"Save Changes"})]})]})}),document.getElementById(e)??document.body):t.jsx("div",{})},Cr=s.dt(be)`
|
|
1800
1880
|
padding: 8px;
|
|
1801
1881
|
min-width: unset;
|
|
1802
|
-
`,
|
|
1882
|
+
`,vr=s.dt(be)`
|
|
1803
1883
|
padding: 7px 8px;
|
|
1804
1884
|
|
|
1805
1885
|
svg.fa-check {
|
|
@@ -1808,7 +1888,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
1808
1888
|
`,Vt=s.dt(B)`
|
|
1809
1889
|
background-color: ${({theme:e})=>e.palette.white};
|
|
1810
1890
|
color: ${({theme:e})=>e.palette.gray[400]};
|
|
1811
|
-
`,Me=({options:e,onSubmit:n,id:i,open:r})=>{const[a,o]=p.useState([]),{register:l,handleSubmit:c,setValue:d}=s.useForm({defaultValues:{checkbox:e.filter(
|
|
1891
|
+
`,Me=({options:e,onSubmit:n,id:i,open:r})=>{const[a,o]=p.useState([]),{register:l,handleSubmit:c,setValue:d}=s.useForm({defaultValues:{checkbox:e.filter(f=>f.checked).map(f=>f.value)}}),u=p.useCallback(f=>{const{value:h}=f.target;o(e.filter(y=>{var $;return(($=y.label)==null?void 0:$.toLowerCase().includes(h.toLowerCase()))??y.value.toLowerCase().includes(h.toLowerCase())}))},[e]),g=p.useCallback(f=>{n&&n(f.checkbox)},[n]);p.useEffect(()=>{o(e),d("checkbox",e.filter(f=>f.checked).map(f=>f.value))},[e,d]);const x=t.jsx(fe,{$bgColor:"transparent",children:t.jsxs(he,{$size:"fixed",flexDirection:"column",gap:1.25,children:[t.jsx(ae,{onChange:u}),t.jsxs("form",{id:i,onSubmit:c(g),style:{overflowY:"auto"},children:[a.map(f=>{const h=`li-checkbox${f.value}`;return t.jsx(vr,{value:h,width:"content",children:t.jsx(Te,{...l("checkbox"),label:f.label,value:f.value})},h)}),t.jsx(D,{mt:1,type:"submit",children:"Apply"})]})]})});return r?V.createPortal(x,document.getElementById("portals")??document.body):t.jsx("div",{})},Ce=({options:e,variant:n,onApplyFilters:i})=>{const r=s.nt(),[a,o]=p.useState(e),[l,c]=p.useState([]),[d,u]=p.useState({}),[g,x]=p.useState(""),f=p.useCallback($=>()=>{const m=a.find(w=>w.label===$);x($),c((m==null?void 0:m.filterOptions)??[])},[a]),h=p.useCallback($=>{u(j=>$.length>0?{...j,[g]:$}:j);const m=j=>({...j,checked:$.includes(j.value)}),w=j=>j.label===g?{...j,filterOptions:j.filterOptions.map(m)}:j;o(j=>j.map(w)),i({[g]:$}),c([])},[i,g]),y=p.useCallback(($,m)=>{const w=`li-filter-option-${$}`;return t.jsxs(Cr,{icon:m,onClick:f($),value:w,width:"100%",children:[$,d[$]===void 0?void 0:t.jsx(X,{tagLabel:d[$].length.toString()})]},w)},[d,f]);return p.useEffect(()=>{const $=e.reduce((m,{label:w,filterOptions:j})=>{const I=j.filter(({checked:S=!1})=>S).map(({value:S})=>S);return I.length===0?m:{...m,[w]:I}},{});u($)},[e]),n==="grouped"?t.jsxs(b,{flexGrow:1,position:"relative",zIndex:80,children:[Object.entries(_t(e)).map(([$,m])=>t.jsxs(b,{width:"100%",children:[t.jsx(k,{color:r.palette.gray[400],mb:.25,size:"sm",children:$}),m.map(({label:w,icon:j="filter-list"})=>y(w,j))]},$)),t.jsx(Me,{id:"filters-options",onSubmit:h,open:l.length>0,options:l})]}):t.jsxs(b,{flexGrow:1,children:[e.map(({label:$,icon:m="filter-list"})=>y($,m)),t.jsx(Me,{id:"filters-options",onSubmit:h,open:l.length>0,options:l})]})},Sr=({_containerId:e="portals",options:n,onApplyFilters:i,modalRef:r})=>r.isOpen?V.createPortal(t.jsx(fe,{$bgColor:"transparent","aria-label":r.name,"aria-modal":"true",children:t.jsxs(he,{$size:"fixed",alignItems:"start",display:"flex",flexDirection:"row",gap:.5,position:"relative",children:[t.jsx(Ce,{onApplyFilters:i,options:n,variant:"ungrouped"}),t.jsx(Vt,{icon:"close",iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:r.close,variant:"ghost"})]})}),document.getElementById(e)??document.body):t.jsx("div",{}),zr=({_containerId:e="portals",rightColumnOptions:n,leftColumnOptions:i,variant:r,onApplyFilters:a,modalRef:o})=>o.isOpen?V.createPortal(t.jsx(fe,{$bgColor:"transparent","aria-label":o.name,"aria-modal":"true",children:t.jsxs(he,{$size:"lg",alignItems:"start",flexDirection:"row",gap:1,position:"relative",px:1.25,py:1.25,children:[t.jsxs(b,{display:"flex",flexGrow:1,gap:1,justify:"space-between",children:[t.jsx(Ce,{onApplyFilters:a,options:i,variant:r}),t.jsx(Ce,{onApplyFilters:a,options:n,variant:r})]}),t.jsx(Vt,{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",{}),Ut=({_portal:e=!0,alert:n,cancelButton:i=void 0,children:r=void 0,confirmButton:a=void 0,content:o=void 0,description:l="",modalRef:c,otherActions:d=void 0,onClose:u=void 0,tabItems:g,title:x="",size:f,id:h="modal-container"})=>{const y=()=>t.jsx(fe,{"aria-label":c.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs(he,{$size:f,"data-testid":h,flexDirection:"column",id:h,children:[!s._.isEmpty(x)&&t.jsx(Bt,{description:l,modalRef:c,onClose:u,otherActions:d,tabItems:g,title:x}),(s._.isObject(o)||r)&&t.jsxs(or,{children:[r,s._.isObject(o)&&s._.isString(o.imageSrc)&&t.jsx(dr,{$framed:o.imageFramed,children:t.jsx(G,{alt:"modal-img",publicId:o.imageSrc})}),s._.isObject(o)&&s._.isString(o.imageText)&&t.jsx(k,{size:"sm",children:o.imageText})]}),t.jsx(Lt,{alert:n,cancelButton:i,confirmButton:a,modalRef:c})]})});return e&&c.isOpen?V.createPortal(y(),document.getElementById("portals")??document.body):c.isOpen?y():null},Ir=()=>{const[e,n]=p.useState(!1),[i,r]=p.useState(),a=p.useRef(null),o=Ue("confirm-dialog-modal"),l=p.useCallback(async g=>(r(g),n(!0),new Promise(x=>{a.current=x})),[]),c=p.useCallback(()=>{var g;n(!1),r(void 0),(g=a.current)==null||g.call(a,!0)},[]),d=p.useCallback(()=>{var g;n(!1),r(void 0),(g=a.current)==null||g.call(a,!1)},[]);return p.useEffect(()=>{o.setIsOpen(e)},[e,o]),{ConfirmDialog:({id:g="confirm-dialog-modal",children:x})=>t.jsx(Ut,{id:g,modalRef:{...o,close:d},size:"sm",title:i==null?void 0:i.title,children:t.jsxs(b,{display:"flex",flexDirection:"column",children:[x,i==null?void 0:i.message,t.jsx(At,{id:i==null?void 0:i.id,onCancel:d,onConfirm:c})]})}),confirm:l}},Tr=s.dt.button`
|
|
1812
1892
|
display: flex;
|
|
1813
1893
|
position: relative;
|
|
1814
1894
|
height: 32px;
|
|
@@ -1831,7 +1911,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
1831
1911
|
display: none;
|
|
1832
1912
|
}
|
|
1833
1913
|
}
|
|
1834
|
-
`,
|
|
1914
|
+
`,Nr=s.dt.div`
|
|
1835
1915
|
${({theme:e})=>`
|
|
1836
1916
|
display: flex;
|
|
1837
1917
|
flex-direction: column;
|
|
@@ -1872,7 +1952,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
1872
1952
|
}
|
|
1873
1953
|
}
|
|
1874
1954
|
`}
|
|
1875
|
-
`,We=({containerRef:e,id:n})=>{const i=s.nt(),r=n==="desktop"?380:342,a=p.useCallback(l=>()=>{if(e!=null&&e.current){const{current:c}=e;c.scrollBy({left:l==="right"?r:-r,behavior:"smooth"})}},[e,r]),o=p.useCallback(l=>t.jsxs(
|
|
1955
|
+
`,We=({containerRef:e,id:n})=>{const i=s.nt(),r=n==="desktop"?380:342,a=p.useCallback(l=>()=>{if(e!=null&&e.current){const{current:c}=e;c.scrollBy({left:l==="right"?r:-r,behavior:"smooth"})}},[e,r]),o=p.useCallback(l=>t.jsxs(Tr,{onClick:a(l),children:[t.jsx(C,{clickable:!0,icon:`circle-arrow-${l}`,iconClass:"hovered",iconColor:i.palette.gray[800],iconSize:"md",iconType:"fa-solid"}),t.jsx(C,{clickable:!0,icon:`circle-arrow-${l}`,iconClass:"uncover",iconColor:i.palette.gray[800],iconSize:"md",iconType:"fa-light"})]}),[a,i]);return t.jsxs(b,{alignItems:"center",display:"flex",gap:1,id:n,width:"max-content",children:[o("left"),o("right")]})},Be=({tag:e,tagPosition:n})=>{const i=s.nt();return e?t.jsx(b,{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(k,{color:i.palette.gray[900],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:e})}):null},Yt=({eventDate:e})=>{const n=s.nt(),i=s.lodashExports.isEmpty(e)?null:e==null?void 0:e.split("-");if(i){const[r,a]=i;return t.jsxs(b,{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:r}),t.jsx(k,{color:n.palette.gray[800],fontWeight:"semibold",lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:a.toUpperCase()})]})}return null},Er=s.dt.div`
|
|
1876
1956
|
${({theme:e})=>`
|
|
1877
1957
|
align-items: flex-start;
|
|
1878
1958
|
display: flex;
|
|
@@ -1917,7 +1997,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
1917
1997
|
}
|
|
1918
1998
|
}
|
|
1919
1999
|
`}
|
|
1920
|
-
`,
|
|
2000
|
+
`,Kt=({author:e,buttonText:n,description:i,eventDate:r,href:a,imageId:o,mode:l="light",publishDate:c,readingTime:d,tag:u,tagPosition:g="top",title:x})=>{const f=s.nt(),h=c==null?void 0:c.split("-"),y=l==="dark",$=t.jsxs(Er,{"data-testid":`content-card-${x}`,children:[o||r||u&&g==="top"?t.jsxs(b,{id:"card-image",position:"relative",children:[o&&t.jsx(G,{publicId:o}),g==="top"&&t.jsx(Be,{tag:u,tagPosition:g}),t.jsx(Yt,{eventDate:r})]}):void 0,t.jsxs(b,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.5,id:"card-content",children:[g==="bottom"&&t.jsx(Be,{tag:u,tagPosition:g}),e||h||d?t.jsxs(b,{display:"flex",justify:"space-between",width:"100%",children:[e&&h&&t.jsx(k,{color:f.palette.gray[y?300:400],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:e+` • ${h[0]} ${h[1]}, ${h[2]}`}),d&&t.jsxs(b,{alignItems:"center",display:"flex",gap:.25,justify:"center",minWidth:"60px",children:[t.jsx(C,{icon:"eye",iconColor:f.palette.gray[y?300:400],iconSize:"xs",iconType:"fa-light"}),t.jsx(k,{color:f.palette.gray[y?300:400],size:"sm",sizeSm:"xs",textAlign:"right",children:d})]})]}):void 0,t.jsx(M,{className:`title-${l}`,color:y?f.palette.white:f.palette.gray[800],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:x}),i&&t.jsx(k,{color:f.palette.gray[y?100:600],size:"md",sizeSm:"sm",children:i}),n&&a&&t.jsx(D,{href:a,variant:"link",children:n})]})]});return a?t.jsx("a",{className:"flex w-fit",href:a,rel:"noopener noreferrer",target:"_self",children:$}):$},Rr=({description:e,items:n,title:i,titleHighlighted:r})=>{const a=p.useRef(null);return t.jsxs(Nr,{"data-testid":"content-card-carousel",children:[t.jsxs(b,{alignItems:"flex-start",display:"flex",justify:"space-between",children:[t.jsxs(b,{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:r})]}),t.jsx(k,{lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:e})]}),t.jsx(We,{containerRef:a,id:"desktop"})]}),t.jsx(b,{alignSelf:"stretch",display:"flex",id:"carousel",pb:1,pr:2.25,ref:a,scroll:"x",children:t.jsx(b,{alignItems:"flex-start",display:"flex",gap:1.5,width:"max-content",children:n.map((o,l)=>t.jsx(Kt,{...o},`${l}-${o.title}`))})}),t.jsx(We,{containerRef:a,id:"mobile"})]})},Ae=({buttonProps:e,variant:n})=>t.jsx(D,{onClick:e.onClick,variant:n,children:e.text}),Dr=s.dt.div`
|
|
1921
2001
|
display: flex;
|
|
1922
2002
|
flex-direction: column;
|
|
1923
2003
|
align-items: center;
|
|
@@ -1925,7 +2005,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
1925
2005
|
max-width: 900px;
|
|
1926
2006
|
white-space: pre-line;
|
|
1927
2007
|
margin: 0 auto;
|
|
1928
|
-
`,
|
|
2008
|
+
`,Fr=s.dt.div`
|
|
1929
2009
|
display: flex;
|
|
1930
2010
|
flex-direction: row;
|
|
1931
2011
|
justify-content: center;
|
|
@@ -1938,7 +2018,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
1938
2018
|
> img {
|
|
1939
2019
|
width: 100%;
|
|
1940
2020
|
}
|
|
1941
|
-
`,
|
|
2021
|
+
`,Pr=s.dt.div`
|
|
1942
2022
|
display: flex;
|
|
1943
2023
|
flex-direction: row;
|
|
1944
2024
|
margin: 0;
|
|
@@ -1951,7 +2031,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
1951
2031
|
> *:last-child {
|
|
1952
2032
|
margin-right: 0;
|
|
1953
2033
|
}
|
|
1954
|
-
`,
|
|
2034
|
+
`,at={md:{description:"md",title:"lg"},sm:{description:"sm",title:"xs"}},Lr=({cancelButton:e=void 0,confirmButton:n=void 0,description:i,imageSrc:r="integrates/empty/addRoot",padding:a=1.25,title:o,size:l="md"})=>{const c=(n??e)!==void 0;return t.jsxs(Dr,{$padding:a,children:[t.jsx(Fr,{children:t.jsx(G,{alt:"empty-icon",publicId:r})}),t.jsx(M,{fontWeight:"bold",lineSpacing:1.75,mb:.25,size:at[l].title,textAlign:"center",children:o}),t.jsx(k,{mb:c?2:void 0,size:at[l].description,textAlign:"center",children:i}),c?t.jsxs(Pr,{children:[e&&t.jsx(Ae,{buttonProps:e,variant:"tertiary"}),n&&t.jsx(Ae,{buttonProps:n,variant:"primary"})]}):void 0]})},Mr=s.dt.form`
|
|
1955
2035
|
${({theme:e})=>`
|
|
1956
2036
|
align-items: flex-start;
|
|
1957
2037
|
align-self: stretch;
|
|
@@ -1961,7 +2041,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
1961
2041
|
overflow: hidden auto;
|
|
1962
2042
|
width: 100%;
|
|
1963
2043
|
`}
|
|
1964
|
-
`,
|
|
2044
|
+
`,Wr=({alert:e,cancelLabel:n,children:i,id:r="modal-confirm",mode:a,onCancel:o,onSubmit:l,showButtons:c=!0,submitLabel:d,submitDisabled:u=!1,yupSchema:g,...x})=>{const f=s.nt(),h=s.useForm({...x,mode:a??"all",resolver:g?s.o(g):void 0}),{control:y,getValues:$,setValue:m,register:w,watch:j,formState:{errors:I,isValid:S,dirtyFields:z}}=h,R=L=>p.Children.map(L,P=>{var W;if(P&&p.isValidElement(P)){const E=P.props.children,N=P.props.name?p.createElement(P.type,{...P.props,control:y,error:(W=I[P.props.name])==null?void 0:W.message,isValid:S,isTouched:z[P.props.name],register:w,setValue:m,value:$(P.props.name),watch:j,key:P.props.name}):P;return E?p.createElement(N.type,{...N.props,children:R(E)}):N}return P});return t.jsx(s.FormProvider,{...h,children:t.jsx(Mr,{onSubmit:h.handleSubmit(l),children:t.jsxs(b,{scroll:"y",width:"100%",children:[t.jsx(b,{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:R(i)}),c&&t.jsxs(b,{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(b,{display:"flex",gap:.75,maxWidth:"392px",children:[o?t.jsx(D,{id:`${r}-cancel`,justify:"center",onClick:o,type:"reset",variant:"tertiary",width:"100%",children:n??"Cancel"}):void 0,t.jsx(D,{disabled:u,id:r,justify:"center",type:"submit",width:"100%",children:d??"Confirm"})]})]})]})})})},Br=s.dt(ee)`
|
|
1965
2045
|
display: grid;
|
|
1966
2046
|
gap: ${({$gap:e=1.25})=>`${e}rem`};
|
|
1967
2047
|
grid-template-columns: ${({$sm:e})=>`repeat(${e}, 1fr)`};
|
|
@@ -1979,7 +2059,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
1979
2059
|
grid-template-columns: repeat(${n}, 1fr);
|
|
1980
2060
|
}
|
|
1981
2061
|
`}
|
|
1982
|
-
`,
|
|
2062
|
+
`,Ar=p.forwardRef(function({children:n,md:i,sm:r,lg:a,xl:o,gap:l,...c},d){return t.jsx(Br,{$gap:l,$lg:a,$md:i,$sm:r,$xl:o,ref:d,...c,children:n})}),Or=s.dt.div`
|
|
1983
2063
|
${({theme:e,$itemsLength:n})=>`
|
|
1984
2064
|
display: flex;
|
|
1985
2065
|
background-color: ${e.palette.white};
|
|
@@ -2015,7 +2095,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2015
2095
|
background-color: ${e.palette.gray[100]};
|
|
2016
2096
|
}
|
|
2017
2097
|
`}
|
|
2018
|
-
`,
|
|
2098
|
+
`,qt=({isSelected:e=!1,label:n,onSelect:i})=>{const r=s.nt(),a=p.useCallback(()=>{i&&i(n)},[i,n]);return t.jsxs(Ke,{$isSelected:e,onClick:a,children:[e?t.jsx(C,{icon:"check",iconColor:r.palette.gray[800],iconSize:"md"}):null,t.jsx(k,{color:r.palette.gray[800],fontWeight:"bold",size:"sm",children:n})]})},Hr=({isOpen:e=!0,items:n,handleNewOrganization:i,onSelect:r,onClose:a,selectedItem:o,title:l,variant:c})=>{const d=s.nt(),[u,g]=p.useState(n),[x,f]=p.useState(""),h=p.useCallback(m=>{g(w=>w.filter(j=>String(j.name).toLowerCase().includes(m.toLocaleLowerCase())))},[g]),y=p.useCallback(m=>{m.currentTarget&&(f(m.currentTarget.value),h(m.currentTarget.value))},[f,h]);p.useEffect(()=>{g(n),h(x)},[n,h,x]);const $=()=>t.jsx(b,{"aria-modal":"true",className:"comp-modal fixed inset-0 overflow-auto",zIndex:99999,children:t.jsx(b,{alignItems:"center",bgColor:"rgb(52 64 84 / 70%)",display:"flex",height:"100vh",justify:"center",left:"0",top:"0",width:"100%",children:t.jsxs(Or,{$itemsLength:u.length,children:[t.jsxs(b,{alignItems:"center",display:"flex",justify:"space-between",children:[t.jsx(k,{color:d.palette.gray[800],fontWeight:"bold",size:"lg",children:l}),t.jsx(B,{icon:"xmark",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:a,variant:"ghost"})]}),t.jsx(b,{mt:1,children:t.jsx(ae,{onInput:y,placeholder:"Search"})}),t.jsx(Q,{mb:1,mt:1}),t.jsxs(b,{display:"inline-flex",gap:1,maxHeight:"332px",scroll:"y",wrap:"wrap",children:[c==="organization-selector"?t.jsx(Ke,{onClick:i,children:t.jsxs(b,{alignItems:"center",display:"flex",children:[t.jsx(C,{icon:"square-plus",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",mr:.5}),t.jsx(k,{color:d.palette.gray[400],size:"sm",children:"New organization"})]})}):void 0,u.map(m=>t.jsx(qt,{isSelected:o.toLowerCase()===m.name,label:m.name.charAt(0).toUpperCase()+m.name.slice(1),onSelect:r},m.name))]})]})})});return e?V.createPortal($(),document.body):t.jsx("div",{})},_r=({description:e,height:n="auto",leftIconName:i,children:r,rightIconName:a,title:o,tooltipId:l,tooltipTip:c,tooltipPlace:d="bottom",variant:u="centered",width:g="318px"})=>{const x=s.nt(),f=u==="centered",h=t.jsx(Y,{icon:a??i,iconColor:x.palette.gray[800],id:l,place:d,tip:c});return t.jsxs(b,{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:g,children:[t.jsxs(b,{alignItems:"center",display:"flex",gap:.5,children:[f||s.lodashExports.isUndefined(i)?void 0:h,t.jsx(k,{color:f?x.palette.gray[800]:x.palette.gray[400],size:"md",textAlign:f?"center":"start",children:e}),f||s.lodashExports.isUndefined(a)?void 0:h]}),t.jsxs(b,{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}),r]}),f&&!s.lodashExports.isUndefined(a)?h:void 0]})]})},Gr=({actions:e,children:n,header:i,title:r,tabs:a,footer:o})=>{const l=s.nt();return t.jsxs(b,{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(b,{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(b,{display:"flex",flexDirection:"column",gap:.25,children:[t.jsx(k,{color:l.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:r}),i]}),e&&t.jsx(b,{display:"flex",gap:.25,children:e.map(({icon:c,onClick:d},u)=>t.jsx(B,{icon:c??"paper-plane",iconColor:l.palette.gray[400],iconSize:"xxs",iconType:"fa-light",onClick:d,variant:"ghost"},`${u}-${c}`))})]}),t.jsx(b,{display:"flex",pt:.25,width:"100%",children:t.jsx(Ye,{items:a})}),t.jsx(b,{alignSelf:"stretch",display:"flex",flexDirection:"column",px:1.25,py:1,scroll:"y",children:n}),o&&t.jsx(b,{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:u},g)=>t.jsx(D,{icon:c,onClick:u,variant:g===0?"primary":"tertiary",width:"100%",children:d},`${g}-${d}`))})]})},Vr=s.dt.div`
|
|
2019
2099
|
${({theme:e})=>`
|
|
2020
2100
|
align-items: flex-start;
|
|
2021
2101
|
backdrop-filter: blur(3.15px);
|
|
@@ -2067,7 +2147,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2067
2147
|
}
|
|
2068
2148
|
}
|
|
2069
2149
|
`}
|
|
2070
|
-
`,
|
|
2150
|
+
`,Ur=s.dt.div`
|
|
2071
2151
|
align-items: center;
|
|
2072
2152
|
position: absolute;
|
|
2073
2153
|
justify-content: center;
|
|
@@ -2081,7 +2161,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2081
2161
|
height: 260px;
|
|
2082
2162
|
width: 260px;
|
|
2083
2163
|
}
|
|
2084
|
-
`,
|
|
2164
|
+
`,Xt=({icon:e})=>t.jsx(Ur,{children:t.jsx(C,{icon:e,iconColor:v.palette.white,iconSize:"xs",iconTransform:"shrink-2",iconType:"fa-light"})}),Yr=({category:e,description:n,href:i,icon:r,location:a,title:o})=>{const l=s.nt();return t.jsxs(Vr,{children:[t.jsxs(b,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:1.5,height:"100%",id:"uncover",justify:"space-between",children:[t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx(k,{color:l.palette.white,size:"sm",sizeSm:"xs",children:e}),t.jsx(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(k,{color:l.palette.white,size:"sm",sizeSm:"xs",children:"Location"}),t.jsx(k,{color:l.palette.white,fontWeight:"bold",lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:a})]})]}),t.jsxs(b,{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(k,{color:l.palette.gray[100],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:n}),t.jsx(D,{external:!0,href:i,variant:"link",width:"max-content",children:"Download now"})]})]}),t.jsx(Xt,{icon:r})]})},Kr=s.dt.button`
|
|
2085
2165
|
${({theme:e})=>`
|
|
2086
2166
|
align-items: center;
|
|
2087
2167
|
border-left: 3px solid transparent;
|
|
@@ -2124,7 +2204,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2124
2204
|
}
|
|
2125
2205
|
}
|
|
2126
2206
|
`}
|
|
2127
|
-
`,
|
|
2207
|
+
`,qr=s.dt.div`
|
|
2128
2208
|
${({theme:e})=>`
|
|
2129
2209
|
align-items: center;
|
|
2130
2210
|
background-color: transparent;
|
|
@@ -2154,7 +2234,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2154
2234
|
color: ${e.palette.gray[800]};
|
|
2155
2235
|
}
|
|
2156
2236
|
`}
|
|
2157
|
-
`,
|
|
2237
|
+
`,Xr=s.dt.div`
|
|
2158
2238
|
${({theme:e})=>`
|
|
2159
2239
|
background-color: ${e.palette.white};
|
|
2160
2240
|
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
@@ -2169,7 +2249,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2169
2249
|
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
2170
2250
|
}
|
|
2171
2251
|
`}
|
|
2172
|
-
`,
|
|
2252
|
+
`,Zr=s.dt.div`
|
|
2173
2253
|
${({theme:e})=>`
|
|
2174
2254
|
align-items: flex-start;
|
|
2175
2255
|
cursor: pointer;
|
|
@@ -2191,11 +2271,11 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2191
2271
|
}
|
|
2192
2272
|
}
|
|
2193
2273
|
`}
|
|
2194
|
-
`,
|
|
2274
|
+
`,Zt=({disabled:e=!1,mode:n,onClick:i,text:r})=>t.jsx(Kr,{className:`${e&&"disabled"} ${n}`,disabled:e,onClick:i,children:t.jsx(k,{color:"inherit",size:"sm",sizeSm:"xs",children:r})}),Jr=[{text:"EN"},{text:"ES"}],Qr=({items:e,handleClick:n,mode:i="light"})=>{const r=e??Jr,[a,o]=p.useState(r[0].text),l=p.useCallback(c=>()=>{n(c.text),o(c.text)},[n]);return t.jsxs(Zr,{children:[t.jsxs(qr,{className:i,children:[t.jsx(C,{icon:"globe",iconSize:"xs",iconType:"fa-light"}),a]}),t.jsx(Xr,{children:r.map((c,d)=>t.jsx(Zt,{disabled:c.disabled,mode:i,onClick:l(c),text:c.text},`${c.text}_${d}`))})]})},ea=s.dt.div.attrs({className:"flex flex-wrap justify-center pv3 w-100"})``,ta=s.dt.div.attrs({className:"flex flex-wrap items-center justify-start mb2"})`
|
|
2195
2275
|
gap: 12px;
|
|
2196
|
-
`,
|
|
2276
|
+
`,na=s.dt.div.attrs({className:"flex flex-wrap items-center justify-end mb2"})`
|
|
2197
2277
|
gap: 8px;
|
|
2198
|
-
`,ye=e=>e===void 0?"flex-grow: 1;":`width: calc(${e}00% / var(--cols));`,
|
|
2278
|
+
`,ye=e=>e===void 0?"flex-grow: 1;":`width: calc(${e}00% / var(--cols));`,ia=s.dt.div.attrs({className:"comp-col"})`
|
|
2199
2279
|
word-break: break-word;
|
|
2200
2280
|
|
|
2201
2281
|
${({$width:e=null})=>e===null?"":`width: ${e}`};
|
|
@@ -2219,7 +2299,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2219
2299
|
> .comp-card {
|
|
2220
2300
|
height: 100%;
|
|
2221
2301
|
}
|
|
2222
|
-
`,
|
|
2302
|
+
`,ra=({children:e,xl:n,lg:i,md:r,sm:a,paddingTop:o,width:l})=>t.jsx(ia,{$lg:i,$md:r,$paddingTop:o,$sm:a,$width:l,$xl:n,children:e}),aa=s.dt.div.attrs({className:"comp-gap"})`
|
|
2223
2303
|
${({$disp:e="flex",$mh:n=4,$mv:i=4})=>`
|
|
2224
2304
|
align-items: center;
|
|
2225
2305
|
display: ${e};
|
|
@@ -2229,7 +2309,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2229
2309
|
margin: ${i}px ${n}px;
|
|
2230
2310
|
}
|
|
2231
2311
|
`}
|
|
2232
|
-
`,
|
|
2312
|
+
`,oa=({children:e,disp:n,mh:i,mv:r})=>t.jsx(aa,{$disp:n,$mh:i,$mv:r,children:e}),sa=s.dt.div.attrs({className:"comp-row flex flex-row flex-wrap"})`
|
|
2233
2313
|
${({$align:e="stretch",$cols:n=100,$colsPadding:i=6,$justify:r="start"})=>`
|
|
2234
2314
|
align-items: ${e};
|
|
2235
2315
|
justify-content: ${r};
|
|
@@ -2247,7 +2327,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2247
2327
|
padding: ${i}px;
|
|
2248
2328
|
}
|
|
2249
2329
|
`}
|
|
2250
|
-
`,
|
|
2330
|
+
`,la=({align:e,children:n,cols:i,colsPadding:r,justify:a})=>t.jsx(sa,{$align:e,$cols:i,$colsPadding:r,$justify:a,children:n}),ca=s.dt.span`
|
|
2251
2331
|
${({theme:e,$bgColor:n=e.palette.secondary[500],$txtDecoration:i="none"})=>`
|
|
2252
2332
|
background-color: ${n};
|
|
2253
2333
|
border-radius: 5px;
|
|
@@ -2256,14 +2336,14 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2256
2336
|
padding: ${e.spacing[.125]} ${e.spacing[.25]} ${e.spacing[.125]} ${e.spacing[.25]};
|
|
2257
2337
|
text-decoration: ${i}
|
|
2258
2338
|
`}
|
|
2259
|
-
`,
|
|
2339
|
+
`,da=({bgColor:e,children:n,txtDecoration:i,ml:r=1})=>t.jsx(ca,{$bgColor:e,$txtDecoration:i,className:`ml-${r}`,children:n}),pa={lg:"56",md:"30",sm:"12"},{getVariant:ga}=U(e=>({red:`stroke: ${e.palette.primary[500]};`,white:`stroke: ${e.palette.white};`})),ua=s.mt`
|
|
2260
2340
|
0% {
|
|
2261
2341
|
transform: rotateZ(0deg);
|
|
2262
2342
|
}
|
|
2263
2343
|
100% {
|
|
2264
2344
|
transform: rotateZ(360deg)
|
|
2265
2345
|
}
|
|
2266
|
-
`,
|
|
2346
|
+
`,xa=s.mt`
|
|
2267
2347
|
0%,
|
|
2268
2348
|
25% {
|
|
2269
2349
|
stroke-dashoffset: 280;
|
|
@@ -2280,16 +2360,16 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2280
2360
|
stroke-dashoffset: 280;
|
|
2281
2361
|
transform: rotate(360deg);
|
|
2282
2362
|
}
|
|
2283
|
-
`,
|
|
2363
|
+
`,fa=s.dt.svg`
|
|
2284
2364
|
${({$size:e="md"})=>s.lt`
|
|
2285
|
-
animation: ${
|
|
2365
|
+
animation: ${ua} 2s linear infinite;
|
|
2286
2366
|
animation-timing-function: linear;
|
|
2287
2367
|
display: inline-block;
|
|
2288
|
-
width: ${
|
|
2368
|
+
width: ${pa[e]}px;
|
|
2289
2369
|
`}
|
|
2290
|
-
`,
|
|
2370
|
+
`,ha=s.dt.circle`
|
|
2291
2371
|
${({theme:e,$color:n="red"})=>s.lt`
|
|
2292
|
-
animation: 1.4s ease-in-out infinite both ${
|
|
2372
|
+
animation: 1.4s ease-in-out infinite both ${xa};
|
|
2293
2373
|
display: block;
|
|
2294
2374
|
fill: transparent;
|
|
2295
2375
|
stroke-linecap: round;
|
|
@@ -2298,9 +2378,9 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2298
2378
|
stroke-width: 10px;
|
|
2299
2379
|
transform-origin: 50% 50%;
|
|
2300
2380
|
|
|
2301
|
-
${
|
|
2381
|
+
${ga(e,n)}
|
|
2302
2382
|
`}
|
|
2303
|
-
`,
|
|
2383
|
+
`,ba=s.dt.circle`
|
|
2304
2384
|
display: block;
|
|
2305
2385
|
fill: transparent;
|
|
2306
2386
|
stroke: ${({theme:e})=>e.palette.gray[200]};
|
|
@@ -2308,13 +2388,13 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2308
2388
|
stroke-width: 10px;
|
|
2309
2389
|
transform-origin: 50% 50%;
|
|
2310
2390
|
opacity: ${({$color:e})=>e==="white"?"20%":"unset"};
|
|
2311
|
-
|
|
2391
|
+
`,$a=({color:e="red",label:n,size:i})=>{const r=s.nt();return t.jsxs(b,{alignItems:"center",display:"flex",children:[t.jsxs(fa,{$size:i,viewBox:"0 0 100 100",children:[t.jsx(ba,{$color:e,cx:"50",cy:"50",r:"45"}),t.jsx(ha,{$color:e,cx:"50",cy:"50",r:"45"})]}),n&&t.jsx(k,{color:e==="red"?r.palette.gray[700]:r.palette.white,ml:.5,size:"sm",children:n})]})},ya=s.dt.div`
|
|
2312
2392
|
display: flex;
|
|
2313
2393
|
height: 80px;
|
|
2314
2394
|
max-width: 1440px;
|
|
2315
2395
|
overflow: hidden;
|
|
2316
2396
|
position: relative;
|
|
2317
|
-
`,
|
|
2397
|
+
`,ot=s.dt.div`
|
|
2318
2398
|
height: 79px;
|
|
2319
2399
|
width: 64px;
|
|
2320
2400
|
flex-shrink: 0;
|
|
@@ -2338,7 +2418,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2338
2418
|
);
|
|
2339
2419
|
right: 0;
|
|
2340
2420
|
}
|
|
2341
|
-
`,
|
|
2421
|
+
`,ma=s.dt.div`
|
|
2342
2422
|
display: flex;
|
|
2343
2423
|
gap: 40px;
|
|
2344
2424
|
animation: clients-animation 50s linear infinite;
|
|
@@ -2353,7 +2433,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2353
2433
|
transform: translateX(calc(-180px * 15));
|
|
2354
2434
|
}
|
|
2355
2435
|
}
|
|
2356
|
-
|
|
2436
|
+
`,wa=["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"],ja=({fusion:e=!1,logos:n=wa})=>t.jsxs(ya,{children:[e&&t.jsx(ot,{className:"left"}),t.jsx(ma,{children:[...n,...n].map((i,r)=>t.jsx(G,{alt:`${i}-${r}`,height:"80px",plugins:[s.placeholder()],publicId:i,width:"140px"},`${i}-${r}`))}),e&&t.jsx(ot,{className:"right"})]}),ka={company:{height:"83px",width:"460px"},footer:{height:"57px",width:"315px"},header:{height:"35px",width:"160px"},icon:{height:"40px",width:"40px"},inline:{width:"150px"}},Ca=({publicId:e,variant:n})=>t.jsx(b,{...ka[n],children:t.jsx(G,{alt:"logo",publicId:e})}),va=({children:e,commitSha:n,commitShortSha:i,parentElement:r,userInfo:a,setVisibility:o})=>{const l=s.nt(),{userName:c,email:d,phone:u,userRole:g}=a;return J(r,()=>{o(!1)}),t.jsxs(Ot,{children:[t.jsx("li",{className:"user-info",children:t.jsxs(b,{display:"inline-flex",gap:.25,width:"100%",children:[t.jsxs(b,{display:"flex",flexDirection:"column",gap:.25,width:"100%",children:[t.jsx(k,{color:l.palette.gray[800],fontWeight:"bold",size:"sm",children:c}),t.jsx(k,{color:l.palette.gray[400],size:"sm",children:d}),s.lodashExports.isUndefined(u)?void 0:t.jsx(k,{color:l.palette.gray[400],size:"sm",children:u})]}),t.jsx(b,{children:t.jsx(X,{tagLabel:g,variant:"role"})})]})}),t.jsx(Q,{}),e,t.jsx(Q,{}),t.jsx("li",{className:"commit-info",children:t.jsx(q,{href:`https://gitlab.com/fluidattacks/universe/-/tree/${n}`,iconPosition:"hidden",children:t.jsx(k,{color:l.palette.gray[400],size:"xs",children:`commit : ${i}`})})})]})},Sa=s.dt.button`
|
|
2357
2437
|
align-items: center;
|
|
2358
2438
|
background-color: transparent;
|
|
2359
2439
|
border: unset;
|
|
@@ -2364,13 +2444,13 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2364
2444
|
padding: 0;
|
|
2365
2445
|
|
|
2366
2446
|
&:hover p {
|
|
2367
|
-
color: ${
|
|
2447
|
+
color: ${v.palette.primary[200]};
|
|
2368
2448
|
}
|
|
2369
2449
|
|
|
2370
2450
|
&:hover span {
|
|
2371
|
-
color: ${
|
|
2451
|
+
color: ${v.palette.primary[200]};
|
|
2372
2452
|
}
|
|
2373
|
-
`,
|
|
2453
|
+
`,za=({message:e,onClickButton:n,buttonText:i,buttonFontWeight:r="regular",icon:a,onClose:o,buttonSide:l="end"})=>{const c=s.nt(),[d,u]=p.useState(!0),g=p.useCallback(()=>{u(!1),o==null||o()},[o]),x=t.jsxs(Sa,{onClick:n,children:[t.jsx(k,{color:c.palette.white,fontWeight:r,size:"sm",textDecoration:"underline",children:i}),t.jsx(C,{icon:a??"arrow-right",iconColor:c.palette.white,iconSize:"xs",iconType:r==="bold"?"fa-regular":"fa-light"})]});return t.jsxs(b,{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(b,{display:"flex",gap:.5,justify:"center",width:"100%",children:[l==="end"&&n?x:void 0,t.jsx(b,{children:typeof e=="string"?t.jsx(k,{color:c.palette.white,display:"inline",size:"sm",children:e}):e}),l==="start"&&n?x:void 0]}),t.jsx(C,{clickable:!0,hoverColor:c.palette.primary[200],icon:"close",iconColor:c.palette.white,iconSize:"xs",iconType:"fa-light",onClick:g})]})},Ia=s.dt.div`
|
|
2374
2454
|
${({theme:e,$variant:n})=>`
|
|
2375
2455
|
background: ${e.palette.white};
|
|
2376
2456
|
border: 1px solid ${e.palette.gray[200]};
|
|
@@ -2389,7 +2469,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2389
2469
|
right: 16px;
|
|
2390
2470
|
}
|
|
2391
2471
|
`}
|
|
2392
|
-
`,
|
|
2472
|
+
`,Ta=s.dt.div`
|
|
2393
2473
|
${({theme:e,$variant:n})=>`
|
|
2394
2474
|
height: ${e.spacing[2.5]};
|
|
2395
2475
|
width: ${e.spacing[2.5]};
|
|
@@ -2420,7 +2500,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2420
2500
|
color: ${e.palette[n][500]};
|
|
2421
2501
|
}
|
|
2422
2502
|
`}
|
|
2423
|
-
`,
|
|
2503
|
+
`,Na=e=>e==="warning"?"triangle-exclamation":e==="info"?"circle-info":e==="success"?"circle-check":"circle-exclamation",Ea=({description:e,onClose:n,title:i,variant:r})=>{const a=s.nt(),o=p.useCallback(()=>{n==null||n()},[n]);return t.jsxs(Ia,{$variant:r,className:`notification notification__${r}`,role:"alertdialog",children:[t.jsxs(Ta,{$variant:r,children:[t.jsx(C,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),t.jsx(C,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),t.jsx(C,{icon:Na(r),iconClass:"icon",iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(b,{pr:1.5,children:[t.jsx(M,{fontWeight:"bold",size:"xs",children:i}),t.jsx(k,{size:"sm",whiteSpace:"break-spaces",wordWrap:"break-word",children:e})]}),t.jsx(B,{height:"fit-content",icon:"close",iconColor:a.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:o,px:.125,py:.125,variant:"ghost"})]})},Ra=s.dt.div`
|
|
2424
2504
|
width: fit-content;
|
|
2425
2505
|
border: ${({theme:e})=>`1px solid ${e.palette.gray[300]}`};
|
|
2426
2506
|
border-radius: 4px;
|
|
@@ -2433,7 +2513,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2433
2513
|
align-items: center;
|
|
2434
2514
|
justify-content: center;
|
|
2435
2515
|
padding: 0.5em;
|
|
2436
|
-
`,
|
|
2516
|
+
`,Da=s.dt.input`
|
|
2437
2517
|
width: 4em;
|
|
2438
2518
|
appearance: textfield;
|
|
2439
2519
|
border-style: none;
|
|
@@ -2453,7 +2533,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2453
2533
|
&::-webkit-inner-spin-button {
|
|
2454
2534
|
opacity: 1;
|
|
2455
2535
|
}
|
|
2456
|
-
`,
|
|
2536
|
+
`,Fa=p.forwardRef(function({autoUpdate:n=!1,decimalPlaces:i=0,defaultValue:r=0,max:a,min:o,name:l,onEnter:c,tooltipMessage:d,...u},g){const x=i<0?0:i,[f,h]=p.useState(Number(r).toFixed(x)),y=p.useCallback(w=>{const j=s.lodashExports.toNumber(w.target.value);w.target.value.endsWith(".")?h(w.target.value):j>=Number(o)&&j<=Number(a)&&(h(String(j)),n&&c(s.lodashExports.toNumber(j.toFixed(x)))),w.stopPropagation()},[n,x,a,o,c]),$=p.useCallback(w=>{w.currentTarget.contains(w.relatedTarget)||h(Number(r).toFixed(x)),w.stopPropagation()},[x,r]),m=p.useCallback(w=>{w.stopPropagation(),w.key==="Enter"&&!s.lodashExports.isEmpty(w.currentTarget.value)&&c(s.lodashExports.toNumber(w.currentTarget.value))},[c]);return t.jsx(Ra,{onBlur:$,tabIndex:-1,children:t.jsx(Y,{id:"numberInputTooltip",tip:d,children:t.jsx(Da,{...u,"aria-label":l,"aria-valuemax":Number(a),"aria-valuemin":Number(o),"aria-valuenow":Number(f),max:a,min:o,name:l,onChange:y,onKeyUp:m,ref:g,step:10**-x,type:"number",value:f})})})}),Pa={Azure:"integrates/autoenrollment/azureIcon",Bitbucket:"integrates/autoenrollment/bitbucketLogo",GitHub:"integrates/autoenrollment/githubLogo",GitLab:"integrates/autoenrollment/gitlabIcon"},Oe=({icon:e,label:n,onClick:i,onlyLabel:r=!1,provider:a="GitLab"})=>{const o=s.nt();return t.jsxs(b,{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:[r?!1:t.jsx(b,{height:"24px",width:"24px",children:e===void 0?t.jsx(G,{alt:`${a} Logo`,height:"100%",publicId:Pa[a],width:"100%"}):t.jsx(C,{icon:e,iconColor:"#000",iconSize:"sm",iconType:"fa-light"})}),t.jsx(b,{alignItems:"center",display:"flex",minWidth:"24px",children:t.jsx(k,{color:o.palette.gray[800],display:"inline",size:"xs",textAlign:"center",whiteSpace:r?"break-spaces":"nowrap",wordWrap:"unset",children:n??a})})]})},La=({align:e="end",buttonLabel:n="Add Credential",children:i,id:r,manualOption:a,providers:o})=>{const l=s.nt(),[c,d]=p.useState(!1),u=p.useRef(null);J(u.current,()=>{d(!1)},!0);const g=p.useCallback(h=>{a==null||a.onClick(h),d(!1)},[a]),x=p.useCallback(()=>{d(h=>!h)},[d]),f=p.useCallback(h=>y=>{var $;($=o[h])==null||$.onClick(y),d(!1)},[o]);return t.jsxs(b,{alignItems:e,display:"flex",flexDirection:"column",position:"relative",ref:u,width:"max-content",zIndex:10,children:[t.jsx(D,{icon:"plus",onClick:x,variant:"primary",children:n}),t.jsxs(b,{alignItems:"center",bgColor:"#fff",border:`1px solid ${l.palette.gray[200]}`,borderRadius:"4px",display:"flex",gap:.5,height:"78px",id:r,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)),a===void 0?void 0:t.jsx(Oe,{icon:"square-plus",label:a.label??"Add manually",onClick:g}),i]})]})},Jt=()=>t.jsx(b,{alignItems:"center",bgColor:v.palette.primary[25],borderRadius:"8px",gap:.5,justify:"center",padding:[.125,.25,.125,.25],width:"max-content",children:t.jsx(k,{bgGradient:v.palette.gradients["01"],fontWeight:"semibold",size:"xs",textFill:"transparent",children:"Recommended"})}),Ma=s.dt.div`
|
|
2457
2537
|
${({className:e,theme:n})=>`
|
|
2458
2538
|
align-items: flex-start;
|
|
2459
2539
|
border-radius: ${n.spacing[1]};
|
|
@@ -2518,8 +2598,8 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2518
2598
|
width: 320px;
|
|
2519
2599
|
}
|
|
2520
2600
|
`}
|
|
2521
|
-
`;const
|
|
2522
|
-
through our scanning tool.`,priceAuthor:"$499",priceGroup:"$1,579"}},
|
|
2601
|
+
`;const Wa={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
|
|
2602
|
+
through our scanning tool.`,priceAuthor:"$499",priceGroup:"$1,579"}},Ba=({description:e,onClick:n,plan:i})=>{const{title:r,description:a,benefits:o,buttonText:l}=Wa[i],c=e??a;return t.jsxs(Ma,{className:i,children:[t.jsxs(b,{display:"flex",flexDirection:"column",gap:.25,pt:i==="essential"?1.75:0,children:[i==="advanced"&&t.jsx(Jt,{}),t.jsx(M,{color:v.palette.gray[900],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:r}),t.jsx(k,{color:v.palette.gray[400],fontWeight:"semibold",pb:i==="essential"?1.25:0,size:"sm",sizeSm:"xs",children:o})]}),t.jsx(k,{lineSpacing:1.5,lineSpacingSm:1.25,pb:i==="advanced"?1.5:0,size:"md",sizeSm:"sm",children:c}),t.jsx(D,{onClick:n,variant:"primary",children:l})]})},Qt=({description:e="",highlightDescription:n=""})=>{const i=s.nt(),r=typeof n=="string",a=r?"":new RegExp(`(${n.join("|")})`,"u");return n.length>0?t.jsx(k,{display:"inline",lineSpacing:1.5,size:"lg",textAlign:"center",children:r?t.jsxs(p.Fragment,{children:[t.jsx(we,{color:i.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:n}),e]}):e.split(a).map((o,l)=>n.includes(o)?t.jsx(we,{color:i.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:o},`${l+1}-bold`):o)}):t.jsx(k,{lineSpacing:1.5,size:"lg",textAlign:"center",children:e})},Aa=({_portal:e=!1,cancelButton:n,darkBackground:i=!1,children:r,confirmButton:a,container:o,description:l,highlightDescription:c="",image:d,maxWidth:u,title:g,titleColor:x})=>{const f=s.nt(),{alt:h,src:y,width:$="77px",height:m="77px"}=d,w=p.useCallback(()=>{n==null||n.onClick()},[n]),j=p.useCallback(()=>{a==null||a.onClick()},[a]),I=t.jsx(b,{alignItems:"center","aria-label":g,"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(b,{bgColor:f.palette.white,border:`1px solid ${f.palette.gray[200]}`,borderRadius:"8px",display:"inline-flex",flexDirection:"column",maxWidth:u,pb:2.5,pl:2.5,pr:2.5,pt:2.5,shadow:"lg",width:"100%",zIndex:11,children:[t.jsxs(b,{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",children:[t.jsx(b,{children:t.jsx(G,{alt:h,height:m,publicId:y,width:$})}),t.jsxs(b,{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:g}),t.jsx(Qt,{description:l,highlightDescription:c})]})]}),r&&t.jsx(b,{mb:1,scroll:"y",children:t.jsx(b,{height:"100%",children:r})}),t.jsxs(b,{alignItems:"flex-start",display:"flex",gap:1,justify:"center",children:[s.lodashExports.isObject(a)?t.jsx(D,{onClick:j,variant:(a==null?void 0:a.variant)??"primary",children:a==null?void 0:a.text},a==null?void 0:a.key):void 0,s.lodashExports.isObject(n)?t.jsx(D,{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?V.createPortal(I,o??document.body):I},Oa=s.dt.div`
|
|
2523
2603
|
${({theme:e})=>`
|
|
2524
2604
|
height: ${e.spacing[1]};
|
|
2525
2605
|
width: ${e.spacing[1]};
|
|
@@ -2550,7 +2630,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2550
2630
|
font-size: ${e.spacing[.5]};
|
|
2551
2631
|
}
|
|
2552
2632
|
`}
|
|
2553
|
-
`,
|
|
2633
|
+
`,en=({margin:e,onClick:n,text:i})=>{const r=s.nt(),a=t.jsxs(Oa,{children:[t.jsx(C,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),t.jsx(C,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),t.jsx(C,{icon:"crown",iconClass:"icon",iconSize:"xs"})]});return i!==void 0?t.jsx(b,{cursor:"pointer",display:"inline-block",mr:e,onClick:n,children:t.jsxs(b,{alignItems:"center",bgColor:r.palette.warning[50],borderRadius:"4px",display:"flex",padding:[.25,.25,.25,.25],width:"fit-content",children:[a,t.jsx(k,{color:r.palette.warning[500],display:"inline",ml:.25,size:"xs",children:i})]})}):t.jsx(b,{display:"inline-block",mr:e,onClick:n,children:a})},Ha=({score:e})=>{const n=s.nt(),i=e<=33?"priority-bars-low":"priority-bars-medium",r=e>66||e===0?"priority-bars-high":i;return t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:.25,children:[t.jsx(C,{icon:r,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(k,{color:n.palette.gray[800],size:"sm",textAlign:"right",children:e+"%"})]})},{getVariant:_a}=U(e=>({compliance:`
|
|
2554
2634
|
display: inline-flex;
|
|
2555
2635
|
|
|
2556
2636
|
&.horizontal {
|
|
@@ -2608,17 +2688,17 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2608
2688
|
.progress-bar {
|
|
2609
2689
|
background-color: ${e.palette.primary[500]};
|
|
2610
2690
|
}
|
|
2611
|
-
`})),
|
|
2691
|
+
`})),Ga=(e,n)=>n<50?e.palette.error[500]:n<80?e.palette.warning[500]:e.palette.success[500],Va=s.dt.div`
|
|
2612
2692
|
${({theme:e,$minWidth:n,$orientation:i,$rounded:r,$variant:a})=>`
|
|
2613
2693
|
background-color: ${e.palette.gray[100]};
|
|
2614
2694
|
border-radius: ${r?"100px":"unset"};
|
|
2615
2695
|
${i==="horizontal"?"min-width":"min-height"}: ${n}px;
|
|
2616
2696
|
${i==="horizontal"?"":"height: 100%;"}
|
|
2617
2697
|
|
|
2618
|
-
${
|
|
2698
|
+
${_a(e,a)}
|
|
2619
2699
|
|
|
2620
2700
|
`}
|
|
2621
|
-
`,
|
|
2701
|
+
`,Ua=s.dt.div`
|
|
2622
2702
|
${({theme:e,$percentage:n,$rounded:i,$variant:r})=>`
|
|
2623
2703
|
display: inline-flex;
|
|
2624
2704
|
width: ${n}%;
|
|
@@ -2628,9 +2708,9 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2628
2708
|
border-radius: ${i?"100px":"unset"};
|
|
2629
2709
|
border-end-end-radius: ${i&&n<100?"0":"inherit"};
|
|
2630
2710
|
border-start-end-radius: ${i&&n<100?"0":"inherit"};
|
|
2631
|
-
background-color: ${r==="compliance"?
|
|
2711
|
+
background-color: ${r==="compliance"?Ga(e,n):"inherit"};
|
|
2632
2712
|
`}
|
|
2633
|
-
`,
|
|
2713
|
+
`,Ya=({minWidth:e=100,percentage:n,percentageLocation:i="right",showPercentage:r=!1,orientation:a="horizontal",rounded:o=!0,variant:l="default"})=>{const c=r&&i==="left",d=r?t.jsx(b,{alignItems:"center",display:"flex",justify:c?"flex-end":"flex-start",width:"40px",children:t.jsx(k,{ml:.5,mr:c?.5:0,size:"sm",children:`${n}%`})}):null,u=t.jsx(Va,{$minWidth:e,$orientation:a,$rounded:o,$variant:l,className:a,children:t.jsx(Ua,{$percentage:n,$rounded:o,$variant:l,className:"progress-bar"})});return t.jsxs(b,{alignItems:"center",display:"inline-flex",flexDirection:c?"row-reverse":"row",height:a==="horizontal"?"auto":"100%",maxWidth:c?`${e+43}px`:void 0,minWidth:c?`${e+43}px`:void 0,textAlign:"end",children:[u,d]})},Ka=s.dt(ee)`
|
|
2634
2714
|
animation: ${({$animationTime:e})=>`progress-bar ${e}s ease-in-out`};
|
|
2635
2715
|
animation-fill-mode: both;
|
|
2636
2716
|
|
|
@@ -2643,12 +2723,12 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2643
2723
|
width: 100%;
|
|
2644
2724
|
}
|
|
2645
2725
|
}
|
|
2646
|
-
`,
|
|
2726
|
+
`,qa=e=>e*1e3/100,Xa=({progressTime:e=10,onComplete:n})=>{const i=s.nt(),r=100,[a,o]=p.useState(0);return p.useEffect(()=>{a===r&&(n==null||n())},[a,n]),p.useEffect(()=>{const l=setInterval(()=>{o(c=>c===r?0:c+1)},qa(e));return()=>{clearInterval(l)}},[a,e]),t.jsx(b,{bgColor:i.palette.gray[200],height:"4px",children:t.jsx(Ka,{$animationTime:e,bgGradient:i.palette.gradients["01"],height:"100%",width:`${a}%`})})},Za=s.dt.div.attrs({className:"comp-scroll-up"})`
|
|
2647
2727
|
bottom: 15px;
|
|
2648
2728
|
position: fixed;
|
|
2649
2729
|
right: 140px;
|
|
2650
2730
|
z-index: 100;
|
|
2651
|
-
`,
|
|
2731
|
+
`,Ja=({scrollerId:e="dashboard",visibleAt:n=500})=>{const[i,r]=p.useState(!1),[a,o]=p.useState(null);p.useEffect(()=>{o(document.getElementById(e)),a==null||a.addEventListener("scroll",()=>{r(a.scrollTop>n)})},[a,e,n]);const l=p.useCallback(()=>{a==null||a.scrollTo({behavior:"smooth",top:0})},[a]);return i?t.jsx(Za,{children:t.jsx(B,{height:"40px",icon:"arrow-up",iconSize:"sm",id:"scroll-up",onClick:l,width:"40px"})}):null},Qa=s.dt.a`
|
|
2652
2732
|
${({theme:e})=>`
|
|
2653
2733
|
align-items: center;
|
|
2654
2734
|
display: flex;
|
|
@@ -2693,7 +2773,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2693
2773
|
width: 270px;
|
|
2694
2774
|
}
|
|
2695
2775
|
`}
|
|
2696
|
-
`,
|
|
2776
|
+
`,eo=s.dt.div.attrs({className:"icon-wrap"})`
|
|
2697
2777
|
${({theme:e})=>`
|
|
2698
2778
|
align-items: center;
|
|
2699
2779
|
background: ${e.palette.primary[25]};
|
|
@@ -2708,7 +2788,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2708
2788
|
font-size: 20px;
|
|
2709
2789
|
}
|
|
2710
2790
|
`}
|
|
2711
|
-
`,
|
|
2791
|
+
`,to=s.dt.div`
|
|
2712
2792
|
${({theme:e})=>`
|
|
2713
2793
|
align-items: flex-start;
|
|
2714
2794
|
display: flex;
|
|
@@ -2740,7 +2820,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2740
2820
|
width: 320px;
|
|
2741
2821
|
}
|
|
2742
2822
|
`}
|
|
2743
|
-
`,
|
|
2823
|
+
`,no=s.dt.form`
|
|
2744
2824
|
${({theme:e})=>`
|
|
2745
2825
|
align-items: center;
|
|
2746
2826
|
display: flex;
|
|
@@ -2749,7 +2829,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2749
2829
|
padding: ${e.spacing[1]} ${e.spacing[1.5]};
|
|
2750
2830
|
width: 100%;
|
|
2751
2831
|
`}
|
|
2752
|
-
`,
|
|
2832
|
+
`,io=s.dt.input`
|
|
2753
2833
|
${({theme:e})=>`
|
|
2754
2834
|
flex: 1 0 0;
|
|
2755
2835
|
border: none;
|
|
@@ -2775,7 +2855,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2775
2855
|
font-size: ${e.typography.text.sm};
|
|
2776
2856
|
}
|
|
2777
2857
|
`}
|
|
2778
|
-
`,
|
|
2858
|
+
`,ro=s.dt.button`
|
|
2779
2859
|
${({theme:e})=>`
|
|
2780
2860
|
align-items: center;
|
|
2781
2861
|
border-radius: ${e.spacing[.5]};
|
|
@@ -2838,7 +2918,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2838
2918
|
height: ${e.spacing[.5]};
|
|
2839
2919
|
}
|
|
2840
2920
|
`}
|
|
2841
|
-
`,me=({hit:e,icon:n="infinity",showIcon:i=!1})=>{const{slug:r,title:a}=e,o=String(r).startsWith("/pages/")?String(r).replace("/pages/","/"):String(r);return t.jsxs(
|
|
2921
|
+
`,me=({hit:e,icon:n="infinity",showIcon:i=!1})=>{const{slug:r,title:a}=e,o=String(r).startsWith("/pages/")?String(r).replace("/pages/","/"):String(r);return t.jsxs(Qa,{href:o,rel:"nofollow noopener noreferrer",children:[i&&t.jsx(eo,{children:t.jsx(C,{icon:n,iconClass:"fill-gradient-01",iconSize:"sm",iconType:"fa-light"})}),t.jsx(k,{color:v.palette.gray[800],lineSpacing:1.5,size:"md",sizeSm:"sm",whiteSpace:"wrap",children:String(a)})]})},ao=[{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"}],st={hit:{slug:"/contact-us/",title:"Contact Support"},icon:"envelope"},oo=({items:e,placeholder:n="Search",refine:i,query:r})=>{const[a,o]=p.useState(r),[l,c]=p.useState(!1),d=p.useRef(null),u=p.useRef(null),g=a.length>=2,x=p.useCallback(w=>{o(w),i(w)},[i]),f=p.useCallback(()=>{x("")},[x]),h=p.useCallback(()=>{c(!0)},[]),y=p.useCallback(w=>{x(w.currentTarget.value)},[x]),$=p.useCallback(w=>{w.preventDefault(),w.stopPropagation(),f(),u.current&&u.current.focus()},[f]),m=p.useCallback(w=>{w.preventDefault(),w.stopPropagation(),u.current&&u.current.blur()},[]);return J(d.current,()=>{f(),c(!1)},!0),t.jsxs(to,{ref:d,children:[t.jsxs(no,{action:"",noValidate:!0,onReset:$,onSubmit:m,role:"search",children:[t.jsxs("div",{className:"flex gap-2 w-full",children:[t.jsx("div",{className:"h-10 p-2",children:t.jsx(C,{icon:"magnifying-glass",iconSize:"sm",iconType:"fa-light"})}),t.jsx(io,{autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",maxLength:512,onChange:y,onFocus:h,placeholder:n,ref:u,spellCheck:!1,type:"search",value:a})]}),g&&t.jsx(ro,{type:"reset",children:t.jsx(C,{icon:"xmark",iconSize:"sm",iconType:"fa-light"})})]}),l&&a.length<2&&t.jsxs(Ee,{children:[t.jsx(k,{color:v.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:ao.map(({hit:w,icon:j},I)=>t.jsx(me,{hit:w,icon:j,showIcon:!0},`${j}-${I}`))}),t.jsx(k,{color:v.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Can’t find what you’re looking for?"}),t.jsx(me,{hit:st.hit,icon:st.icon,showIcon:!0})]}),g&&e.length>0&&t.jsxs(Ee,{$showHits:g,children:[t.jsx(k,{color:v.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(me,{hit:w},w.objectID))})]}),g&&e.length===0&&t.jsx(Ee,{$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(k,{display:"flex",lineSpacing:1.5,size:"md",sizeSm:"sm",textAlign:"center",children:[`“${a}” did not match.`,t.jsx("br",{}),"Please try again."]}),t.jsx(D,{onClick:f,variant:"secondary",children:"Clear search"})]})})]})},so={critical:{bgColor:v.palette.primary[700],colorL:v.palette.gray[800],colorR:v.palette.white},disable:{bgColor:v.palette.gray[200],colorL:v.palette.gray[400],colorR:v.palette.gray[400]},high:{bgColor:v.palette.error[500],colorL:v.palette.gray[800],colorR:v.palette.white},low:{bgColor:v.palette.warning[200],colorL:v.palette.gray[800],colorR:v.palette.gray[800]},medium:{bgColor:v.palette.warning[500],colorL:v.palette.gray[800],colorR:v.palette.gray[800]}},lo=({textL:e,textR:n,variant:i})=>{const r=s.nt(),{bgColor:a,colorL:o,colorR:l}=so[i];return t.jsxs(b,{alignItems:"flex-start",display:"inline-flex",children:[e?t.jsx(b,{alignItems:"center",bgColor:r.palette.white,border:`1px solid ${a}`,borderRadius:"4px 0px 0px 4px",display:"flex",justify:"center",padding:[0,.25,0,.25],children:t.jsx(k,{color:o,size:"xs",children:e})}):void 0,t.jsx(b,{alignItems:"center",bgColor:a,border:`1px solid ${a}`,borderRadius:e?"0px 4px 4px 0px":"4px",display:"flex",padding:e?[0,.25,0,.125]:[0,.25,0,.25],pb:.125,pl:.125,pr:.125,pt:.125,children:t.jsx(k,{color:l,size:"xs",children:n})})]})},co=(e,n)=>{const i={critical:v.palette.primary[700],high:v.palette.error[500],low:v.palette.warning[200],medium:v.palette.warning[500],none:v.palette.gray[200]},r={disabled:v.palette.gray[400],enabled:v.palette.gray[800]},a={critical:v.palette.white,high:v.palette.white,low:v.palette.gray[800],medium:v.palette.gray[800],none:v.palette.gray[400]};return{iconColor:n<1?i.none:i[e],iconText:s.lodashExports.capitalize(e.charAt(0)),iconTextColor:n<1?a.none:a[e],textColor:n<1?r.disabled:r.enabled}},ie=({variant:e,value:n})=>{const{iconColor:i,iconText:r,iconTextColor:a,textColor:o}=co(e,n),l=s.lodashExports.capitalize(e.charAt(0))+e.slice(1);return t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:.5,minWidth:"43px",children:[t.jsx(Y,{id:l,place:"top",tip:l,children:t.jsx(b,{alignItems:"center",bgColor:i,borderRadius:"4px",cursor:"pointer",display:"flex",height:"22px",maxWidth:"22px",minWidth:"22px",children:t.jsx(k,{color:a,size:"sm",textAlign:"center",children:r})})}),t.jsx(k,{color:o,size:"sm",children:n})]})},po=({critical:e,high:n,medium:i,low:r})=>t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:1,children:[t.jsx(ie,{value:e,variant:"critical"}),t.jsx(ie,{value:n,variant:"high"}),t.jsx(ie,{value:i,variant:"medium"}),t.jsx(ie,{value:r,variant:"low"})]}),go=s.dt.div`
|
|
2842
2922
|
${({theme:e})=>`
|
|
2843
2923
|
border-radius: ${e.spacing[.25]};
|
|
2844
2924
|
cursor: pointer;
|
|
@@ -2856,7 +2936,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2856
2936
|
display: block;
|
|
2857
2937
|
}
|
|
2858
2938
|
`}
|
|
2859
|
-
`,
|
|
2939
|
+
`,uo=({visibleElement:e,hiddenElement:n})=>t.jsxs(go,{children:[e,t.jsx(b,{display:"none",position:"absolute",top:"100%",zIndex:10,children:n})]}),tn=({customBadge:e=void 0,description:n,icon:i,onClick:r,requiresUpgrade:a=!1,title:o})=>{const l=s.nt();return t.jsxs(b,{bgColor:l.palette.white,bgColorHover:l.palette.gray[100],cursor:"pointer",display:"flex",gap:.5,onClick:r,px:1.25,py:1,width:"100%",children:[t.jsx(b,{alignItems:"center",bgColor:l.palette.gray[300],borderRadius:l.spacing[.25],display:"flex",height:"24px",justify:"center",width:"24px",children:t.jsx(C,{icon:i,iconColor:l.palette.gray[800],iconSize:"xxs",ml:.5,mr:.5})}),t.jsxs(b,{children:[t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:.5,children:[t.jsx(k,{color:l.palette.gray[800],size:"sm",children:o}),a?t.jsx(en,{text:"Upgrade"}):void 0,e]}),t.jsx(k,{color:l.palette.gray[400],size:"xs",children:n})]})]})},xo=s.dt(s.m.div)`
|
|
2860
2940
|
${({theme:e})=>`
|
|
2861
2941
|
background-color: ${e.palette.white};
|
|
2862
2942
|
box-shadow: ${e.shadows.lg};
|
|
@@ -2879,7 +2959,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2879
2959
|
height: auto;
|
|
2880
2960
|
}
|
|
2881
2961
|
`}
|
|
2882
|
-
`,
|
|
2962
|
+
`,fo=({children:e,closeIconId:n="close-menu",isOpen:i,items:r,onClose:a,primaryButtonText:o,primaryOnClick:l,secondaryButtonText:c,secondaryOnClick:d,title:u})=>{const g=s.nt(),x=p.useRef(null),f=p.useCallback(h=>()=>{h(),a()},[a]);return J(x.current,()=>{a()},!0),t.jsx(s.LazyMotion,{features:s.domAnimation,children:t.jsx(xo,{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(b,{height:"100%",position:"relative",children:[t.jsxs(b,{alignItems:"center",bgColor:g.palette.white,borderBottom:"1px solid",borderColor:g.palette.gray[200],display:"flex",gap:1.25,justify:"space-between",padding:[1.25,1.25,1.25,1.25],position:"sticky",top:"0",zIndex:40,children:[t.jsx(k,{color:g.palette.black,display:"inline",fontWeight:"bold",size:"xl",children:u}),t.jsx(B,{icon:"close",iconColor:g.palette.gray[400],iconSize:"xs",iconTransform:"grow-4",iconType:"fa-light",id:n,onClick:a,px:.25,py:.25,variant:"ghost"})]}),t.jsxs(b,{display:"flex",flexDirection:"column",justify:"space-between",minHeight:"100vh",children:[t.jsxs(b,{py:1.25,children:[(r??[]).map(({customBadge:h,description:y,icon:$,onClick:m,requiresUpgrade:w,title:j})=>t.jsx(tn,{customBadge:h,description:y,icon:$,onClick:f(m),requiresUpgrade:w,title:j},j)),e&&t.jsx(b,{px:1.25,children:e})]}),o===void 0?void 0:t.jsxs(b,{alignItems:"center",bgColor:g.palette.white,borderColor:g.palette.gray[200],borderTop:"1px solid",bottom:"0",display:"flex",gap:1.25,justify:"end",padding:[1.25,1.25,1.25,1.25],position:"sticky",width:"100%",zIndex:40,children:[c===void 0?void 0:t.jsx(D,{color:`${g.palette.primary[500]} !important`,onClick:d,pl:.5,pr:.5,variant:"ghost",children:c}),t.jsx(D,{onClick:l,type:"submit",children:o})]})]})]})})})},ho=(e,n)=>n>=50?`
|
|
2883
2963
|
${e.palette.gray[200]} 50%,
|
|
2884
2964
|
${e.palette.primary[500]} 50.05%,
|
|
2885
2965
|
${e.palette.primary[500]} ${n}%,
|
|
@@ -2890,7 +2970,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2890
2970
|
${e.palette.primary[500]} 50%,
|
|
2891
2971
|
${e.palette.gray[200]} 50.05%,
|
|
2892
2972
|
${e.palette.gray[200]} 100%
|
|
2893
|
-
`,
|
|
2973
|
+
`,bo=s.dt.div`
|
|
2894
2974
|
${({theme:e,$min:n,$value:i})=>`
|
|
2895
2975
|
align-items: center;
|
|
2896
2976
|
align-self: stretch;
|
|
@@ -2906,7 +2986,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2906
2986
|
${n>=0?`
|
|
2907
2987
|
${e.palette.primary[500]} ${i}%,
|
|
2908
2988
|
${e.palette.gray[200]} ${i}%
|
|
2909
|
-
`:
|
|
2989
|
+
`:ho(e,i)}
|
|
2910
2990
|
);
|
|
2911
2991
|
border-radius: ${e.spacing[.125]};
|
|
2912
2992
|
height: ${e.spacing[.25]};
|
|
@@ -2930,7 +3010,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2930
3010
|
border: 1px solid ${e.palette.primary[500]};
|
|
2931
3011
|
}
|
|
2932
3012
|
`}
|
|
2933
|
-
|
|
3013
|
+
`,$o=s.dt.div`
|
|
2934
3014
|
${({theme:e})=>`
|
|
2935
3015
|
align-items: center;
|
|
2936
3016
|
display: flex;
|
|
@@ -2944,7 +3024,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2944
3024
|
font-size: ${e.spacing[.5]};
|
|
2945
3025
|
}
|
|
2946
3026
|
`}
|
|
2947
|
-
`,
|
|
3027
|
+
`,yo=s.dt.output`
|
|
2948
3028
|
${({theme:e})=>`
|
|
2949
3029
|
align-items: flex-end;
|
|
2950
3030
|
border-radius: ${e.spacing[.5]};
|
|
@@ -2955,7 +3035,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2955
3035
|
padding: ${e.spacing[.625]} ${e.spacing[.75]};
|
|
2956
3036
|
width: 59px;
|
|
2957
3037
|
`}
|
|
2958
|
-
`,
|
|
3038
|
+
`,nn=({state:e,trackRef:n,index:i,name:r})=>{const a=p.useRef(null),{thumbProps:o,inputProps:l,isDragging:c}=s.$47b897dc8cdb026b$export$8d15029008292ae({index:i,trackRef:n,inputRef:a},e);return t.jsx("div",{...o,className:`thumb ${c?"dragging":""}`,children:t.jsx(s.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:t.jsx("input",{...l,"aria-label":r,ref:a})})})},mo=(e,n,i)=>Math.round((i-e)/(n-e)*100),wo=e=>{const n=s.nt(),i=p.useRef(null),{label:r,minValue:a=0,maxValue:o=100,name:l,setValue:c,watch:d}=e,u=s.$a916eb452884faea$export$b7a616150fdb9f44(),g=s.$28f99e3e86e6ec45$export$e5fda3247f5d67f9({...e,numberFormatter:u,onChange(y){c==null||c(l,y)},value:d==null?void 0:d(l)}),x=mo(a,o,g.getThumbValue(0)),{groupProps:f,trackProps:h}=s.$bcca50147b47f54d$export$56b2c08e277f365({...e,"aria-label":l,id:l},g,i);return t.jsx(O,{htmlFor:l,label:r,children:t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:1.25,pl:.5,width:"100%",children:[t.jsxs(bo,{...f,$min:a??0,$value:x,className:"slider",children:[t.jsx("div",{...h,className:`track ${g.isDisabled?"disabled":""}`,ref:i,children:t.jsx(nn,{index:0,name:l,state:g,trackRef:i})}),t.jsxs($o,{children:[t.jsx("p",{children:`${u.format(a)} (Low)`}),a<0&&t.jsx("p",{children:"0"}),t.jsx("p",{children:`${u.format(o)} (High)`})]})]}),t.jsx(yo,{children:t.jsx(k,{color:n.palette.gray[800],size:"sm",textAlign:"right",children:g.getThumbValueLabel(0)})})]})})},{getVariant:jo}=U(e=>({completed:`
|
|
2959
3039
|
background-color: ${e.palette.primary[500]};
|
|
2960
3040
|
color: ${e.palette.white};
|
|
2961
3041
|
|
|
@@ -2978,7 +3058,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2978
3058
|
&::after {
|
|
2979
3059
|
background-color: ${e.palette.gray[200]};
|
|
2980
3060
|
}
|
|
2981
|
-
`})),
|
|
3061
|
+
`})),ko=s.dt.div`
|
|
2982
3062
|
${({theme:e})=>`
|
|
2983
3063
|
align-items: stretch;
|
|
2984
3064
|
background-color: ${e.palette.white};
|
|
@@ -2988,7 +3068,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2988
3068
|
padding: ${`${e.spacing[1]} ${e.spacing[1]}`};
|
|
2989
3069
|
scroll-behavior: unset;
|
|
2990
3070
|
`}
|
|
2991
|
-
`,
|
|
3071
|
+
`,Co=s.dt.div`
|
|
2992
3072
|
display: flex;
|
|
2993
3073
|
flex-direction: row;
|
|
2994
3074
|
margin-bottom: ${({theme:e})=>e.spacing[2]};
|
|
@@ -2996,7 +3076,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
2996
3076
|
&:last-child > div:first-child > span::after {
|
|
2997
3077
|
display: none;
|
|
2998
3078
|
}
|
|
2999
|
-
`,
|
|
3079
|
+
`,vo=s.dt.div`
|
|
3000
3080
|
${({theme:e})=>`
|
|
3001
3081
|
display: inline-flex;
|
|
3002
3082
|
font-family: ${e.typography.type.primary};
|
|
@@ -3008,7 +3088,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
3008
3088
|
margin-right: ${e.spacing[.5]};
|
|
3009
3089
|
}
|
|
3010
3090
|
`}
|
|
3011
|
-
`,
|
|
3091
|
+
`,So=s.dt.span`
|
|
3012
3092
|
${({theme:e,$variant:n})=>`
|
|
3013
3093
|
border-radius: 6px;
|
|
3014
3094
|
display: inline-block;
|
|
@@ -3031,9 +3111,9 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
3031
3111
|
height: calc(100% - ${e.spacing[1]});
|
|
3032
3112
|
}
|
|
3033
3113
|
|
|
3034
|
-
${
|
|
3114
|
+
${jo(e,n)}
|
|
3035
3115
|
`}
|
|
3036
|
-
`,
|
|
3116
|
+
`,zo=({button:{disabled:e=!1,text:n,type:i="button",onClick:r},steps:a})=>{const[o,l]=p.useState(1),c=p.useCallback((d,u)=>()=>{l(g=>g+d),u==null||u()},[]);return t.jsx(ko,{children:a.map((d,u)=>{const{content:g,title:x,nextAction:f,previousAction:h}=d,y=u+1,$=y===o?"current":"disabled",m=y<o?"completed":$;return t.jsxs(Co,{children:[t.jsx(b,{maxWidth:"40px",position:"relative",children:t.jsx(So,{$variant:m,children:m==="completed"?t.jsx(C,{icon:"check",iconSize:"xs",iconType:"fa-solid"}):y})}),t.jsxs(b,{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(b,{children:[g,t.jsxs(vo,{children:[o>1&&t.jsx(D,{disabled:d.isDisabledPrevious??!1,onClick:c(-1,h),variant:"tertiary",children:"Previous"}),o<a.length?t.jsx(D,{disabled:d.isDisabledNext??!1,onClick:c(1,f),variant:"primary",children:"Next step"}):t.jsx(D,{disabled:e,onClick:r,type:i,variant:"primary",children:n})]})]})]})]},d.title)})})},Io=s.dt.button`
|
|
3037
3117
|
${({theme:e})=>`
|
|
3038
3118
|
align-items: center;
|
|
3039
3119
|
background-color: ${e.palette.white};
|
|
@@ -3075,7 +3155,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
3075
3155
|
background-color: ${e.palette.gray[100]};
|
|
3076
3156
|
}
|
|
3077
3157
|
`}
|
|
3078
|
-
`,
|
|
3158
|
+
`,To={add:{icon:"plus"},approve:{icon:"check"},disabled:{icon:"ban"},reject:{icon:"xmark"},submit:{icon:"arrow-right"},success:{icon:"check"}},No=({disabled:e=!1,icon:n,id:i,label:r,name:a,onClick:o,type:l="button",variant:c})=>{const d=s.nt(),u=t.jsxs(Io,{"aria-label":a??void 0,className:c,disabled:e,id:i,onClick:o,type:l,children:[t.jsx(C,{clickable:!1,icon:n??To[c].icon,iconSize:a===void 0?"xxs":"xs",iconType:"fa-light"}),a??void 0]});return t.jsxs(b,{alignItems:"center",display:"flex",children:[u,r&&t.jsx(k,{color:d.palette.gray[800],ml:.5,size:"sm",children:r})]})},Eo=({items:e})=>t.jsx(gr,{children:e.map(({isActive:n,label:i,onClick:r},a)=>t.jsx(pr,{className:n?"active":"",onClick:r,type:"button",children:t.jsx(M,{color:"inherit",fontWeight:"semibold",size:"sm",sizeSm:"xs",children:i})},`${i}-${a}`))}),Ro=s.dt.div`
|
|
3079
3159
|
${({theme:e})=>`
|
|
3080
3160
|
align-items: center;
|
|
3081
3161
|
background-color: ${e.palette.white};
|
|
@@ -3097,7 +3177,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
3097
3177
|
border: 1px solid ${e.palette.gray[600]};
|
|
3098
3178
|
}
|
|
3099
3179
|
`}
|
|
3100
|
-
`,
|
|
3180
|
+
`,Do=s.dt.div`
|
|
3101
3181
|
${({theme:e})=>`
|
|
3102
3182
|
display: flex;
|
|
3103
3183
|
flex-direction: column;
|
|
@@ -3168,7 +3248,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
3168
3248
|
}
|
|
3169
3249
|
}
|
|
3170
3250
|
`}
|
|
3171
|
-
`,
|
|
3251
|
+
`,rn=({date:e,description:n,title:i})=>{const r=s.nt();return t.jsxs(Ro,{className:"timeline-card",children:[t.jsx(k,{color:r.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:e}),t.jsx(k,{color:r.palette.gray[800],fontWeight:"bold",lineSpacing:1.5,mb:.5,size:"md",textAlign:"center",children:i}),t.jsx("div",{children:n.map((a,o)=>{const l=`${a}#${o}`;return t.jsx(k,{size:"sm",textAlign:"center",wordBreak:"break-word",children:a},l)})})]})},Fo=({items:e})=>t.jsx(Do,{children:e.map((n,i)=>t.jsx(rn,{date:n.date,description:n.description,title:n.title},`${n.title}-${i}`))}),Po=s.dt.div`
|
|
3172
3252
|
${({theme:e})=>`
|
|
3173
3253
|
align-items: center;
|
|
3174
3254
|
display: flex;
|
|
@@ -3198,7 +3278,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
3198
3278
|
width: 320px;
|
|
3199
3279
|
}
|
|
3200
3280
|
`}
|
|
3201
|
-
`,
|
|
3281
|
+
`,Lo=s.dt.button`
|
|
3202
3282
|
${({theme:e})=>`
|
|
3203
3283
|
align-items: center;
|
|
3204
3284
|
background: linear-gradient(
|
|
@@ -3227,7 +3307,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
3227
3307
|
color: ${e.palette.white};
|
|
3228
3308
|
}
|
|
3229
3309
|
`}
|
|
3230
|
-
`,
|
|
3310
|
+
`,Mo=({defaultSelection:e,options:n,handleClick:i})=>{const[r,a]=p.useState(e??n[0]),o=p.useCallback(l=>()=>{a(l),i(l)},[i]);return t.jsx(Po,{children:n.map((l,c)=>t.jsx(Lo,{className:`${l.includes(r)&&"selected"}`,onClick:o(l),children:t.jsx(k,{color:"inherit",fontWeight:"bold",size:"md",sizeSm:"sm",textAlign:"center",children:l})},`${l}-${c}`))})},Wo={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:""},Bo=({run:e,steps:n,onFinish:i})=>{const[r,a]=p.useState(e),[o,l]=p.useState(0),c=p.useCallback(d=>{const{action:u,index:g,status:x,type:f}=d;[s.EVENTS.STEP_AFTER,s.EVENTS.TARGET_NOT_FOUND].includes(f)?l(g+(u===s.ACTIONS.PREV?-1:1)):([s.STATUS.FINISHED,s.STATUS.SKIPPED].includes(x)||u==="close")&&(a(!1),s.lodashExports.isUndefined(i)||i())},[i]);return t.jsx(s.components_default,{callback:c,continuous:!0,disableOverlayClose:!0,disableScrollParentFix:!0,run:r,spotlightClicks:!0,stepIndex:o,steps:n,styles:{buttonNext:{display:o===n.length-1?"none":"block"},options:{zIndex:9999}}})},Ao=s.dt.form`
|
|
3231
3311
|
${({theme:e})=>`
|
|
3232
3312
|
align-items: center;
|
|
3233
3313
|
background: ${e.palette.gray[50]};
|
|
@@ -3255,7 +3335,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
3255
3335
|
width: 320px;
|
|
3256
3336
|
}
|
|
3257
3337
|
`}
|
|
3258
|
-
`,
|
|
3338
|
+
`,Oo=s.dt.div`
|
|
3259
3339
|
align-items: flex-start;
|
|
3260
3340
|
align-self: stretch;
|
|
3261
3341
|
display: flex;
|
|
@@ -3269,7 +3349,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
3269
3349
|
text-align: center;
|
|
3270
3350
|
}
|
|
3271
3351
|
}
|
|
3272
|
-
`,
|
|
3352
|
+
`,Ho=s.dt.div`
|
|
3273
3353
|
${({theme:e})=>`
|
|
3274
3354
|
align-items: flex-start;
|
|
3275
3355
|
align-self: stretch;
|
|
@@ -3290,4 +3370,4 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),f=p.useMemo(u,[u]),x=p.useCallback(a
|
|
|
3290
3370
|
flex-direction: column;
|
|
3291
3371
|
}
|
|
3292
3372
|
`}
|
|
3293
|
-
`,
|
|
3373
|
+
`,_o=({children:e,name:n,onSubmit:i,submitDisabled:r,submitLabel:a="Submit"})=>t.jsx(Ao,{"aria-label":n,name:n,onSubmit:i,children:t.jsxs(Oo,{children:[e,t.jsx(D,{disabled:r,type:"submit",children:a})]})});exports.Accordion=Ln;exports.AccordionContent=pt;exports.ActionButton=Le;exports.Alert=Vn;exports.Avatar=Qn;exports.BaseButtonComponent=He;exports.BaseComponent=ee;exports.BaseSpanComponent=ct;exports.BaseTextComponent=_e;exports.Button=D;exports.Button$1=je;exports.ButtonToolbarCenter=ea;exports.ButtonToolbarRow=na;exports.ButtonToolbarStartRow=ta;exports.Calendar=$t;exports.Calendar$1=Ct;exports.Calendar$2=vt;exports.CalendarCell=bt;exports.CalendarGrid=Se;exports.CardHeader=ve;exports.CardWithImage=ni;exports.CardWithInput=Ai;exports.CardWithOptions=It;exports.CardWithSelector=Yi;exports.CardWithSwitch=Xi;exports.Carousel=nr;exports.CategoryTag=Be;exports.Checkbox=Te;exports.CodeSnippet=rr;exports.Col=ra;exports.ColumnsModal=kr;exports.ComboBox=si;exports.ComboBoxField=De;exports.Container=b;exports.ContentCard=Kt;exports.ContentCardCarousel=Rr;exports.CustomThemeProvider=In;exports.DateField=mt;exports.DateSelector=re;exports.Description=Qt;exports.Dialog=Ie;exports.Divider=Q;exports.Editable=vi;exports.EmptyButton=Ae;exports.EmptyState=Lr;exports.EventDate=Yt;exports.FilePreview=xt;exports.FiltersList=Ce;exports.FixedTabs=Eo;exports.Form=Wr;exports.FormItem=Ho;exports.Gap=oa;exports.GridContainer=Ar;exports.GroupSelector=Hr;exports.Header=ze;exports.Header$1=Bt;exports.Heading=M;exports.Icon=C;exports.IconButton=B;exports.IndicatorCard=_r;exports.InfoSidebar=Gr;exports.Input=St;exports.InputDate=kt;exports.InputDateRange=wi;exports.InputDateTime=Ci;exports.InputFile=Ti;exports.InputNumber=zt;exports.InputNumberRange=Ri;exports.InputTags=Ei;exports.InteractiveCard=Yr;exports.InteractiveIcon=Xt;exports.ItemList=Zt;exports.ItemSearching=me;exports.Label=Ge;exports.LanguageSelector=Qr;exports.Link=q;exports.ListItem=be;exports.ListItemsWrapper=Ot;exports.LittleFlag=da;exports.Loading=$a;exports.LocationCode=Pt;exports.Logo=Ca;exports.LogoCarousel=ja;exports.MemoizedImage=G;exports.Menu=va;exports.MenuItem=tn;exports.MessageBanner=za;exports.Modal=Ut;exports.ModalConfirm=At;exports.ModalFooter=Lt;exports.Notification=Ea;exports.NotificationSign=Mt;exports.NumberField=ke;exports.NumberInput=Fa;exports.OAuthSelector=La;exports.Option=ft;exports.OptionBoxContainer=Ke;exports.OptionContainer=Oe;exports.OptionContainer$1=qt;exports.OptionsSelector=Me;exports.OutlineContainer=O;exports.PhoneInput=Wi;exports.PlanCard=Ba;exports.PopUp=Aa;exports.Popover=xe;exports.PremiumFeature=en;exports.PreviewPanel=Ht;exports.PriorityScore=Ha;exports.Progress=Xa;exports.ProgressBar=Ya;exports.RadioButton=Rt;exports.RecommendedTag=Jt;exports.Row=la;exports.ScrollButtons=We;exports.ScrollUpButton=Ja;exports.Search=ae;exports.SearchBar=oo;exports.SearchPanel=Gt;exports.SeverityBadge=lo;exports.SeverityOverview=po;exports.SeverityOverviewBadge=ie;exports.ShowOnHover=uo;exports.SingleColumFilters=Sr;exports.SlideOutMenu=fo;exports.Slider=wo;exports.Span=we;exports.StepLapse=zo;exports.Tab=Wt;exports.TableButton=No;exports.Tabs=Ye;exports.Tag=X;exports.TagsField=Pe;exports.Text=k;exports.TextArea=Bi;exports.Thumb=nn;exports.TimeField=wt;exports.TimeLine=Fo;exports.TimeLineCard=rn;exports.Toggle=Dt;exports.ToggleButton=Mo;exports.Tooltip=Y;exports.Tour=Bo;exports.TwoColumnsFilters=zr;exports.WebForm=_o;exports.baseStep=Wo;exports.getStyledConfig=ue;exports.hiddenProps=lt;exports.icons=Sn;exports.setBorder=ce;exports.setDisplay=de;exports.setInteraction=ge;exports.setMargin=se;exports.setPadding=oe;exports.setPosition=le;exports.setText=pe;exports.theme=v;exports.uniqueIcons=zn;exports.useCarousel=Tt;exports.useClickOutside=J;exports.useCloudinaryImage=Nt;exports.useColumnsModal=Hi;exports.useConfirmDialog=Ir;exports.useDebouncedCallback=Et;exports.useModal=Ue;exports.useSearch=_i;exports.variantBuilder=U;
|