@fluidattacks/design 3.13.6-pr-01 → 3.13.7-pr-01
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/@core/index.js +1 -1
- package/dist/components/accordion/accordion-content/index.js +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/card/card-header/index.js +1 -1
- package/dist/components/card/card-with-image/index.js +1 -1
- package/dist/components/card/card-with-input/index.js +1 -1
- package/dist/components/card/card-with-options/index.js +1 -1
- package/dist/components/card/card-with-selector/index.js +1 -1
- package/dist/components/card/card-with-switch/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/cloud-image/index.js +1 -1
- package/dist/components/code-snippet/index.js +1 -1
- package/dist/components/code-snippet/location-code/index.js +1 -1
- package/dist/components/colors/index.js +1 -1
- package/dist/components/confirm-dialog/index.js +1 -1
- package/dist/components/container/index.js +1 -1
- package/dist/components/content-card/category-tag/index.js +1 -1
- package/dist/components/content-card/event-date/index.js +1 -1
- package/dist/components/content-card/index.js +1 -1
- package/dist/components/content-card-carousel/index.js +1 -1
- package/dist/components/content-card-carousel/scroll-buttons/index.js +1 -1
- package/dist/components/divider/index.js +1 -1
- package/dist/components/empty-state/empty-button/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/file-preview/index.js +1 -1
- package/dist/components/form/index.js +1 -1
- package/dist/components/form/inner-form/index.js +1 -1
- package/dist/components/grid-container/index.js +1 -1
- package/dist/components/group-selector/index.js +1 -1
- package/dist/components/group-selector/option-container/index.js +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/indicator-card/index.js +1 -1
- package/dist/components/info-sidebar/index.js +1 -1
- package/dist/components/inputs/fields/combobox/field/index.js +1 -1
- package/dist/components/inputs/fields/combobox/index.js +1 -1
- package/dist/components/inputs/fields/combobox/option/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date/index.js +1 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-range/index.js +1 -1
- package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-time/index.js +1 -1
- package/dist/components/inputs/fields/editable/index.js +1 -1
- package/dist/components/inputs/fields/input/index.js +1 -1
- package/dist/components/inputs/fields/input-file/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/field/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/index.js +1 -1
- package/dist/components/inputs/fields/number/index.js +1 -1
- package/dist/components/inputs/fields/number-range/index.js +1 -1
- package/dist/components/inputs/fields/phone/index.js +1 -1
- package/dist/components/inputs/fields/text-area/index.js +1 -1
- package/dist/components/inputs/index.js +1 -1
- package/dist/components/inputs/label/index.js +1 -1
- package/dist/components/inputs/outline-container/index.js +1 -1
- package/dist/components/inputs/utils/action-button/index.js +1 -1
- package/dist/components/inputs/utils/calendar-button/index.js +1 -1
- package/dist/components/inputs/utils/date-selector/index.js +1 -1
- package/dist/components/inputs/utils/date-time-field/index.js +1 -1
- package/dist/components/inputs/utils/dialog/index.js +1 -1
- package/dist/components/inputs/utils/number-field/index.js +1 -1
- package/dist/components/inputs/utils/popover/index.js +1 -1
- package/dist/components/interactive-card/icon/index.js +1 -1
- package/dist/components/interactive-card/index.js +1 -1
- package/dist/components/language-selector/index.js +1 -1
- package/dist/components/language-selector/item-list/index.js +1 -1
- package/dist/components/layout/categories/buttons/index.js +1 -1
- package/dist/components/layout/categories/column/index.js +1 -1
- package/dist/components/layout/categories/gap/index.js +1 -1
- package/dist/components/layout/categories/row/index.js +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list-item/index.js +1 -1
- package/dist/components/little-flag/index.js +1 -1
- package/dist/components/loading/index.js +1 -1
- package/dist/components/logo/index.js +1 -1
- package/dist/components/logo-carousel/index.js +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/message-banner/index.js +1 -1
- package/dist/components/modal/columns-modal/index.js +1 -1
- package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
- package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
- package/dist/components/modal/filters-modal/applied-filter/index.js +1 -1
- package/dist/components/modal/filters-modal/applied-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-control/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/form-content/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/hooks/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/index.js +1 -1
- package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
- package/dist/components/modal/filters-modal/index.js +1 -1
- package/dist/components/modal/filters-modal/single-column-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/two-columns-filters/index.js +1 -1
- package/dist/components/modal/footer/index.js +1 -1
- package/dist/components/modal/header/index.js +1 -1
- package/dist/components/modal/index.d.ts +1 -2
- package/dist/components/modal/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-DWbRdGiZ.js → components-BYYdjBRM.js} +169 -169
- package/dist/{components-xoLucG9Z.mjs → components-DenaOm3J.mjs} +610 -660
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/components/modal/modal-confirm/index.d.ts +0 -3
- package/dist/components/modal/modal-confirm/index.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),u=require("react"),s=require("./vendor-Fd8GJpo1.js"),U=require("react-dom"),Le=require("react-router-dom"),Y=e=>({getVariant:(i,n)=>e(i)[n]}),ft=["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"],
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),u=require("react"),s=require("./vendor-Fd8GJpo1.js"),U=require("react-dom"),Le=require("react-router-dom"),Y=e=>({getVariant:(i,n)=>e(i)[n]}),ft=["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"],vi={25:"#fcfcfd",50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#2f394b",800:"#212a36",900:"#161b25"},ki={25:"#fef2f3",50:"#fddfe2",100:"#fbbac0",200:"#f9959e",300:"#f65e6a",400:"#f32637",500:"#bf0b1a",600:"#ac0a17",700:"#9a0915",800:"#870812",900:"#750710"},Ci={25:"",50:"",100:"#ffe6ff",200:"",300:"#b8075d",400:"",500:"#7f0540",600:"",700:"#59042d",800:"",900:"#460323"},Si={25:"",50:"#fef3f2",100:"",200:"#fecdca",300:"",400:"",500:"#f04438",600:"",700:"#b42318",800:"",900:""},zi={25:"",50:"#fffaeb",100:"",200:"#fef0c7",300:"",400:"#ffd562",500:"#fdb022",600:"#dc6803",700:"#b54708",800:"",900:""},Ii={25:"",50:"#f6fef9",100:"",200:"#a6f4c5",300:"",400:"",500:"#12b76a",600:"",700:"#027a48",800:"",900:""},Ti={25:"",50:"#eff8ff",100:"",200:"#b2ddff",300:"",400:"",500:"#2e90fa",600:"",700:"#175cd3",800:"",900:""},Fi={"01":"linear-gradient(45deg, #f32637 0%, #b8075d 100%)","02":"linear-gradient(45deg, #fcfcfd 0%, #667085 100%)"},Ni={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"}},Ei={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)"},Ri={mobile:"480px",tablet:"960px",sm:"1024px",md:"1440px",lg:"1920px"},Di={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"},Li=["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"],Pi=[["fal","arrow-down"],["fal","arrow-left"],["fal","arrow-right"],["fal","arrow-up"],["fal","plus"],["fal","minus"],["fas","check"],["fas","circle-question"]],S={typography:Ni,shadows:Ei,breakpoints:Ri,spacing:Di,palette:{primary:ki,complementary:Ci,error:Si,info:Ti,warning:zi,success:Ii,black:"#0c111d",white:"#ffffff",gray:vi,gradients:Fi}},Wi=({children:e})=>t.jsx(s.ot,{theme:S,children:e}),T=(e,i)=>i===void 0?"":`${e}: ${i};`,le=e=>{const i=e.py??e.pt??0,n=e.px??e.pr??0,a=e.py??e.pb??0,r=e.px??e.pl??0;if(e.padding){const[o,l,c,d]=e.padding;return`padding: ${S.spacing[o]} ${S.spacing[l]} ${S.spacing[c]} ${S.spacing[d]};`}return`padding: ${S.spacing[i]} ${S.spacing[n]} ${S.spacing[a]} ${S.spacing[r]};`},ce=e=>{const i=e.my??e.mt??0,n=e.mx??e.mr??0,a=e.my??e.mb??0,r=e.mx??e.ml??0;if(e.margin){const[o,l,c,d]=e.margin;return`margin: ${S.spacing[o]} ${S.spacing[l]} ${S.spacing[c]} ${S.spacing[d]};`}return`margin: ${S.spacing[i]} ${S.spacing[n]} ${S.spacing[a]} ${S.spacing[r]};`},de=e=>{const i=T("position",e.position),n=T("top",e.top),a=T("right",e.right),r=T("bottom",e.bottom),o=T("left",e.left),l=T("z-index",e.zIndex);return`
|
|
2
2
|
${i}
|
|
3
3
|
${n}
|
|
4
4
|
${a}
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
${o}
|
|
14
14
|
${l}
|
|
15
15
|
${c}
|
|
16
|
-
`},
|
|
16
|
+
`},Ai=e=>e.includes("x")?"overflow-x: auto;":"",Bi=e=>e.includes("y")?"overflow-y: auto;":"",ge=e=>{const i=e.scroll?`
|
|
17
|
+
${Ai(e.scroll)}
|
|
17
18
|
${Bi(e.scroll)}
|
|
18
|
-
|
|
19
|
-
`:"",n=T("visibility",e.visibility),a=T("display",e.display),r=T("height",e.height),o=T("width",e.width),l=T("max-height",e.maxHeight),c=T("max-width",e.maxWidth),d=T("min-height",e.minHeight),p=T("min-width",e.minWidth),g=T("box-shadow",e.shadow?S.shadows[e.shadow]:void 0),x=T("gap",e.gap===void 0?void 0:S.spacing[e.gap]),f=T("background-color",e.bgColor),h=T("background",e.bgGradient),y=T("flex-direction",e.flexDirection),b=T("flex-grow",e.flexGrow),m=T("justify-content",e.justify),w=T("justify-self",e.justifySelf),j=T("align-items",e.alignItems),I=T("align-self",e.alignSelf),z=T("flex-wrap",e.wrap);return`
|
|
19
|
+
`:"",n=T("visibility",e.visibility),a=T("display",e.display),r=T("height",e.height),o=T("width",e.width),l=T("max-height",e.maxHeight),c=T("max-width",e.maxWidth),d=T("min-height",e.minHeight),p=T("min-width",e.minWidth),g=T("box-shadow",e.shadow?S.shadows[e.shadow]:void 0),x=T("gap",e.gap===void 0?void 0:S.spacing[e.gap]),f=T("background-color",e.bgColor),h=T("background",e.bgGradient),$=T("flex-direction",e.flexDirection),b=T("flex-grow",e.flexGrow),m=T("justify-content",e.justify),w=T("justify-self",e.justifySelf),j=T("align-items",e.alignItems),I=T("align-self",e.alignSelf),z=T("flex-wrap",e.wrap);return`
|
|
20
20
|
${i}
|
|
21
21
|
${n}
|
|
22
22
|
${a}
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
${f}
|
|
31
31
|
${h}
|
|
32
32
|
${x}
|
|
33
|
-
${
|
|
33
|
+
${$}
|
|
34
34
|
${b}
|
|
35
35
|
${m}
|
|
36
36
|
${w}
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
${ue}
|
|
92
92
|
${pe}
|
|
93
93
|
${xe}
|
|
94
|
-
`,
|
|
94
|
+
`,_i=s.dt(Q)`
|
|
95
95
|
${({theme:e,$center:i=!1,$styleMd:n,$styleSm:a})=>`
|
|
96
96
|
${i?"margin: auto;":""}
|
|
97
97
|
scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
|
|
@@ -108,8 +108,8 @@
|
|
|
108
108
|
${a};
|
|
109
109
|
}
|
|
110
110
|
`}
|
|
111
|
-
|
|
112
|
-
${({theme:e,$bgGradient:i="unset",$color:n=e.palette.gray[800],$display:a="block",$fontFamily:r=e.typography.type.primary,$fontWeight:o="bold",$letterSpacing:l=0,$lineSpacing:c=1.5,$lineSpacingSm:d,$size:p,$sizeMd:g,$sizeSm:x,$textFill:f="unset",$whiteSpace:h="pre-line",$wordBreak
|
|
111
|
+
`,y=u.forwardRef(function({as:i="div",center:n,children:a,id:r,onHover:o,onLeave:l,styleMd:c,styleSm:d,...p},g){return t.jsx(_i,{$center:n,$styleMd:c,$styleSm:d,as:i,id:r,onMouseLeave:l,onMouseOver:o,ref:g,...p,children:a})}),Oi=s.dt(Ue)`
|
|
112
|
+
${({theme:e,$bgGradient:i="unset",$color:n=e.palette.gray[800],$display:a="block",$fontFamily:r=e.typography.type.primary,$fontWeight:o="bold",$letterSpacing:l=0,$lineSpacing:c=1.5,$lineSpacingSm:d,$size:p,$sizeMd:g,$sizeSm:x,$textFill:f="unset",$whiteSpace:h="pre-line",$wordBreak:$="normal"})=>`
|
|
113
113
|
background: ${i};
|
|
114
114
|
color: ${n};
|
|
115
115
|
display: ${a};
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
line-height: ${e.spacing[c]};
|
|
121
121
|
width: ${a==="block"?"100%":"auto"};
|
|
122
122
|
white-space: ${h};
|
|
123
|
-
word-break: ${
|
|
123
|
+
word-break: ${$};
|
|
124
124
|
background-clip: text;
|
|
125
125
|
-webkit-background-clip: text;
|
|
126
126
|
-webkit-text-fill-color: ${f};
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
}
|
|
139
139
|
`}
|
|
140
140
|
`,ht=s.dt(Ue)`
|
|
141
|
-
${({theme:e,$bgGradient:i="unset",$color:n=e.palette.gray[600],$display:a="block",$fontFamily:r=e.typography.type.primary,$fontWeight:o="regular",$letterSpacing:l=0,$lineSpacing:c=1.25,$lineSpacingSm:d,$size:p,$sizeMd:g,$sizeSm:x,$textFill:f="unset",$whiteSpace:h="pre-line",$wordBreak
|
|
141
|
+
${({theme:e,$bgGradient:i="unset",$color:n=e.palette.gray[600],$display:a="block",$fontFamily:r=e.typography.type.primary,$fontWeight:o="regular",$letterSpacing:l=0,$lineSpacing:c=1.25,$lineSpacingSm:d,$size:p,$sizeMd:g,$sizeSm:x,$textFill:f="unset",$whiteSpace:h="pre-line",$wordBreak:$="normal"})=>`
|
|
142
142
|
background: ${i};
|
|
143
143
|
color: ${n};
|
|
144
144
|
display: ${a};
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
line-height: ${e.spacing[c]};
|
|
150
150
|
width: ${a==="block"?"100%":"auto"};
|
|
151
151
|
white-space: ${h};
|
|
152
|
-
word-break: ${
|
|
152
|
+
word-break: ${$};
|
|
153
153
|
background-clip: text;
|
|
154
154
|
-webkit-background-clip: text;
|
|
155
155
|
-webkit-text-fill-color: ${f};
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
line-height: ${e.spacing[d??c]};
|
|
167
167
|
}
|
|
168
168
|
`}
|
|
169
|
-
`,
|
|
169
|
+
`,Hi=s.dt(Ye)`
|
|
170
170
|
${({theme:e,$color:i=e.palette.gray[600],$content:n=void 0,$display:a="inline",$fontWeight:r="regular",$size:o,$lineSpacing:l=1.25})=>`
|
|
171
171
|
color: ${i};
|
|
172
172
|
display: ${a};
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
|
|
179
179
|
${n===void 0?"":`&::after { content: "${n}"; }`}
|
|
180
180
|
`}
|
|
181
|
-
`,A=u.forwardRef(function({bgGradient:i,children:n,className:a,color:r,display:o,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:p,lineSpacingSm:g,size:x,sizeMd:f,sizeSm:h,textFill
|
|
181
|
+
`,A=u.forwardRef(function({bgGradient:i,children:n,className:a,color:r,display:o,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:p,lineSpacingSm:g,size:x,sizeMd:f,sizeSm:h,textFill:$,whiteSpace:b,wordBreak:m,...w},j){return t.jsx(Oi,{$bgGradient:i,$color:r,$display:o,$fontFamily:l,$fontWeight:c,$letterSpacing:d,$lineSpacing:p,$lineSpacingSm:g,$size:x,$sizeMd:f,$sizeSm:h,$textFill:$,$whiteSpace:b,$wordBreak:m,className:a,ref:j,...w,children:n})}),re=u.forwardRef(function({children:i,color:n,content:a,display:r,fontFamily:o,fontWeight:l,letterSpacing:c,lineSpacing:d,lineSpacingSm:p,size:g,sizeMd:x,sizeSm:f,...h},$){return t.jsx(Hi,{$color:n,$content:a,$display:r,$fontFamily:o,$fontWeight:l,$letterSpacing:c,$lineSpacing:d,$lineSpacingSm:p,$size:g,$sizeMd:x,$sizeSm:f,ref:$,...h,children:i})}),k=u.forwardRef(function({bgGradient:i,children:n,className:a,color:r,display:o,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:p,lineSpacingSm:g,size:x,sizeMd:f,sizeSm:h,textFill:$,whiteSpace:b,wordBreak:m,...w},j){return t.jsx(ht,{$bgGradient:i,$color:r,$display:o,$fontFamily:l,$fontWeight:c,$letterSpacing:d,$lineSpacing:p,$lineSpacingSm:g,$size:x,$sizeMd:f,$sizeSm:h,$textFill:$,$whiteSpace:b,$wordBreak:m,className:a,ref:j,...w,children:n})}),bt=({item:e})=>{const i=e.description&&typeof e.description=="string"?t.jsx(k,{mb:e.extraElement?.5:void 0,size:"sm",children:e.description}):e.description??void 0;return t.jsxs(y,{display:"block",id:`panel-${e.title}`,padding:[.75,.75,.75,.75],children:[i,e.extraElement?t.jsx(y,{children:e.extraElement}):void 0]})},Vi={xl:"96px",lg:"64px",md:"32px",sm:"24px",xs:"16px",xxs:"12px",xxss:"10px"},Mi=s.dt(Ye)`
|
|
182
182
|
${({$clickable:e,$color:i="inherit",$disabled:n=!1,$hoverColor:a,$rotation:r,$size:o,$secondaryColor:l})=>{const c=a?"":"brightness(50%)",d=a??"";return`
|
|
183
183
|
color: ${i};
|
|
184
184
|
cursor: ${e?"pointer":"inherit"};
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
&:hover:not([disabled]) {
|
|
215
215
|
transform: scale(1.2);
|
|
216
216
|
}
|
|
217
|
-
`;const C=u.forwardRef(function({clickable:i,disabled:n,hoverColor:a,icon:r,iconClass:o="",iconColor:l,iconMask:c,iconSize:d,iconTransform:p,iconType:g="fa-solid",onClick:x,rotation:f,spanClass:h,secondaryColor
|
|
217
|
+
`;const C=u.forwardRef(function({clickable:i,disabled:n,hoverColor:a,icon:r,iconClass:o="",iconColor:l,iconMask:c,iconSize:d,iconTransform:p,iconType:g="fa-solid",onClick:x,rotation:f,spanClass:h,secondaryColor:$,...b},m){return t.jsx(Mi,{$clickable:i,$color:l,$disabled:n,$hoverColor:a,$rotation:f,$secondaryColor:$,$size:d,className:h,"data-testid":`${r}-icon`,onClick:x,ref:m,...b,children:t.jsx("i",{className:`${g} fa-${r} ${o}`,...c!==void 0?{"data-fa-mask":c}:{},...p!==void 0?{"data-fa-transform":p}:{}})},`${g}-${r}`)}),Gi=u.forwardRef(function({aligned:i="end",items:n,bgColor:a},r){const o=s.nt(),[l,c]=u.useState(!1),[d,p]=u.useState(-1),g=u.useCallback(x=>()=>{p(x),c(x===d?f=>!f:!0)},[d]);return t.jsx(y,{ref:r,children:n.map((x,f)=>{const h=f===d&&l;return t.jsxs(y,{bgColor:a??o.palette.white,children:[t.jsx(y,{"aria-controls":`panel-${x.title}`,"aria-expanded":l,"aria-label":x.title,as:"button",bgColor:a??o.palette.white,bgColorHover:o.palette.gray[100],borderBottom:h||f===n.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(y,{as:"summary",display:"flex",flexDirection:i==="end"?"row":"row-reverse",gap:.75,justify:"space-between",width:"100%",children:[t.jsx(k,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",sizeSm:"sm",textAlign:"start",children:x.title}),t.jsx(C,{icon:h?"chevron-up":"chevron-down",iconColor:o.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]})}),h&&t.jsx(bt,{item:x})]},x.title)})})}),Ui=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:Yi}=Y(e=>({error:`
|
|
218
218
|
background: ${e.palette.error[50]};
|
|
219
219
|
border: 1px solid ${e.palette.error[500]};
|
|
220
220
|
color: ${e.palette.error[700]};
|
|
@@ -266,7 +266,7 @@
|
|
|
266
266
|
color: ${e.palette.warning[700]};
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
|
-
`})),
|
|
269
|
+
`})),qi=s.dt.div`
|
|
270
270
|
${({theme:e,$variant:i})=>`
|
|
271
271
|
background: transparent;
|
|
272
272
|
align-items: center;
|
|
@@ -286,12 +286,12 @@
|
|
|
286
286
|
background-color: transparent;
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
-
${
|
|
289
|
+
${Yi(e,i??"error")}
|
|
290
290
|
`}
|
|
291
|
-
`,
|
|
291
|
+
`,Ki=s.dt.div`
|
|
292
292
|
padding-right: 4px;
|
|
293
293
|
width: 100%;
|
|
294
|
-
`,{getVariant:
|
|
294
|
+
`,{getVariant:Xi}=Y(e=>({ghost:`
|
|
295
295
|
background: transparent;
|
|
296
296
|
border: none;
|
|
297
297
|
color: ${e.palette.gray[800]};
|
|
@@ -387,9 +387,9 @@
|
|
|
387
387
|
${n!=="link"?`--btn-padding-y: ${e.spacing[1]}`:""};
|
|
388
388
|
}
|
|
389
389
|
|
|
390
|
-
${
|
|
390
|
+
${Xi(e,n??"primary")}
|
|
391
391
|
`}
|
|
392
|
-
`,
|
|
392
|
+
`,Zi=s.dt($t)`
|
|
393
393
|
${({theme:e,$borderRadius:i="4px",$px:n=.5,$py:a=.5})=>`
|
|
394
394
|
--btn-spacing: ${i};
|
|
395
395
|
--btn-padding-x: ${e.spacing[n]};
|
|
@@ -403,7 +403,7 @@
|
|
|
403
403
|
margin: 0 !important;
|
|
404
404
|
}
|
|
405
405
|
`}
|
|
406
|
-
`,
|
|
406
|
+
`,Ji=s.dt(Q)``,Qi=s.dt.div`
|
|
407
407
|
${({theme:e,$maxWidth:i="320px"})=>`
|
|
408
408
|
background-color: ${e.palette.gray[700]};
|
|
409
409
|
border-radius: 8px;
|
|
@@ -414,7 +414,7 @@
|
|
|
414
414
|
width: max-content;
|
|
415
415
|
z-index: 999999;
|
|
416
416
|
`}
|
|
417
|
-
`,
|
|
417
|
+
`,M=({children:e,disabled:i=!1,display:n="inline-block",height:a,icon:r,iconColor:o,iconSize:l,id:c,maxWidth:d,nodeTip:p,place:g="bottom",tip:x="",title:f="",hide:h=x===""&&f===""&&p===void 0,width:$})=>{const b=s.nt(),[m,w]=u.useState(!1),{refs:j,floatingStyles:I,context:z}=s.useFloating({middleware:[s.flip({fallbackAxisSideDirection:"start"}),s.offset({mainAxis:10}),s.shift()],onOpenChange:w,open:m,placement:g,whileElementsMounted:s.autoUpdate}),v=s.useHover(z,{delay:{close:0,open:500},move:!1}),N=s.useFocus(z),F=s.useRole(z,{role:r?"label":"tooltip"}),{getReferenceProps:P,getFloatingProps:W}=s.useInteractions([v,N,F]);return i?t.jsx(u.StrictMode,{children:e}):t.jsxs(t.Fragment,{children:[t.jsx(Ji,{...P(),display:n,height:a,id:c,ref:j.setReference,width:$,children:r?t.jsx(C,{clickable:!0,disabled:i,icon:r,iconColor:o,iconSize:l??"xxs",iconType:m?"fa-solid":"fa-light"}):e}),m&&!h&&U.createPortal(t.jsxs(Qi,{...W(),$maxWidth:d,id:`floating-${c}`,ref:j.setFloating,style:I,children:[s.lodashExports.isEmpty(f)?void 0:t.jsx(k,{color:b.palette.white,fontWeight:"bold",lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:f}),s.lodashExports.isEmpty(x)?void 0:t.jsx(k,{color:b.palette.gray[100],lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:x}),s.lodashExports.isEmpty(p)?void 0:p]}),document.getElementById("root")??document.body)]})},B=u.forwardRef(function({borderRadius:i,disabled:n,icon:a,iconColor:r,iconSize:o="xxs",iconTransform:l,iconType:c,id:d,justify:p="center",onClick:g,px:x,py:f,type:h="button",tooltip:$,tooltipPlace:b,value:m,variant:w="primary",...j},I){const z=t.jsx(Zi,{$borderRadius:i,$px:x,$py:f,$variant:w,"aria-disabled":n,"aria-label":d,borderRadius:i,disabled:n,id:d,justify:p,onClick:g,ref:I,type:h,value:m,...j,children:t.jsx(C,{clickable:!1,icon:a,iconColor:r,iconSize:o,iconTransform:l,iconType:c})}),N=(h+(w??"")+(d??a)).replace(/ /u,"_");return $===void 0?z:t.jsx(M,{id:`${N}-tooltip`,place:b,tip:$,children:z})}),en=u.forwardRef(function({autoHide:i=!1,children:n,closable:a=!1,onTimeOut:r,show:o=!0,time:l=8,variant:c="error",id:d,...p},g){const[x,f]=u.useState(o),h=u.useCallback(()=>{f(!1)},[]);return u.useEffect(()=>{const $=setTimeout(()=>{r==null||r(!0),i&&h()},l*1e3);return()=>{clearTimeout($)}},[i,h,l,r]),u.useEffect(()=>{f(o)},[o,f]),t.jsx(y,{display:x?"block":"none",ref:g,role:"alert",...p,children:t.jsxs(qi,{$variant:c,id:d,children:[t.jsx(C,{clickable:!1,icon:Ui(c),iconSize:"xs",iconType:"fa-light"}),t.jsx(Ki,{children:n}),a?t.jsx(B,{height:"fit-content",icon:"close",iconSize:"xs",iconType:"fa-light",onClick:h,px:.125,py:.125,variant:"ghost"}):void 0]})})}),at=s.dt.div`
|
|
418
418
|
${({theme:e})=>`
|
|
419
419
|
align-items: center;
|
|
420
420
|
background-color: ${e.palette.gray[200]};
|
|
@@ -430,7 +430,7 @@
|
|
|
430
430
|
width: ${e.spacing[1.25]};
|
|
431
431
|
height: ${e.spacing[1.25]};
|
|
432
432
|
`}
|
|
433
|
-
`,
|
|
433
|
+
`,tn=s.dt.div`
|
|
434
434
|
ul,
|
|
435
435
|
ol {
|
|
436
436
|
padding-top: 6px;
|
|
@@ -494,7 +494,7 @@
|
|
|
494
494
|
#menu-profile-container li div {
|
|
495
495
|
min-width: unset;
|
|
496
496
|
}
|
|
497
|
-
`,{getVariant:
|
|
497
|
+
`,{getVariant:nn}=Y(e=>({default:`
|
|
498
498
|
background-color: ${e.palette.gray[200]};
|
|
499
499
|
color: ${e.palette.gray[800]};
|
|
500
500
|
`,error:`
|
|
@@ -569,7 +569,7 @@
|
|
|
569
569
|
background-color: ${e.palette.warning[400]};
|
|
570
570
|
color: ${e.palette.warning[700]};
|
|
571
571
|
}
|
|
572
|
-
`})),
|
|
572
|
+
`})),an=s.dt.span`
|
|
573
573
|
${({theme:e,$fontSize:i=e.typography.text.xs,$variant:n})=>`
|
|
574
574
|
align-items: center;
|
|
575
575
|
border-radius: ${e.spacing[n==="technique"?1:.25]};
|
|
@@ -590,9 +590,9 @@
|
|
|
590
590
|
display: flex;
|
|
591
591
|
}
|
|
592
592
|
|
|
593
|
-
${
|
|
593
|
+
${nn(e,n)}
|
|
594
594
|
`}
|
|
595
|
-
`,{getVariant:
|
|
595
|
+
`,{getVariant:rn}=Y(e=>({highRelevance:`
|
|
596
596
|
color: ${e.palette.primary[500]};
|
|
597
597
|
|
|
598
598
|
&:hover:not([disabled]) {
|
|
@@ -626,13 +626,13 @@
|
|
|
626
626
|
text-decoration: none;
|
|
627
627
|
}
|
|
628
628
|
|
|
629
|
-
${i?`color: ${i}`:
|
|
629
|
+
${i?`color: ${i}`:rn(e,n)}
|
|
630
630
|
`}
|
|
631
|
-
`,
|
|
631
|
+
`,on=s.dt.a`
|
|
632
632
|
${yt}
|
|
633
|
-
`,
|
|
633
|
+
`,sn=s.dt(Le.Link)`
|
|
634
634
|
${yt}
|
|
635
|
-
`,X=({children:e,color:i,download:n,href:a,iconPosition:r="right",onClick:o,target:l,variant:c="lowRelevance"})=>{const d=a.startsWith("https://"),p=t.jsx(C,{icon:n===void 0?"arrow-up-right-from-square":"arrow-down-to-bracket",iconSize:"xxs",iconType:"fa-regular",ml:.25,mr:.25});return d?t.jsxs(
|
|
635
|
+
`,X=({children:e,color:i,download:n,href:a,iconPosition:r="right",onClick:o,target:l,variant:c="lowRelevance"})=>{const d=a.startsWith("https://"),p=t.jsx(C,{icon:n===void 0?"arrow-up-right-from-square":"arrow-down-to-bracket",iconSize:"xxs",iconType:"fa-regular",ml:.25,mr:.25});return d?t.jsxs(on,{$color:i,$variant:c,download:n,href:a,onClick:o,rel:"nofollow noopener noreferrer",target:l??"_blank",children:[r==="left"?p:void 0,e,r==="right"?p:void 0]}):t.jsxs(sn,{$variant:c,download:n,onClick:o,rel:"nofollow noopener noreferrer",target:l,to:a,children:[l!==void 0&&r==="left"?p:void 0,e,l!==void 0&&r==="right"?p:void 0]})},q=({disabled:e,icon:i,iconColor:n="inherit",iconType:a="fa-light",id:r="close-tag",filterValues:o="",fontSize:l,href:c,linkLabel:d,onClose:p,priority:g="default",tagTitle:x="",tagLabel:f,variant:h="default"})=>{const $=f.length>25&&s.lodashExports.isEmpty(x+o),b=`${f.slice(0,25)}...`;return t.jsxs(re,{className:"gap-0.5",display:c===void 0?"initial":"flex",size:"sm",children:[t.jsxs(an,{$fontSize:l,$variant:h,className:g,children:[i&&t.jsx(C,{icon:i,iconColor:n,iconSize:"xxs",iconType:a}),t.jsxs("span",{children:[t.jsx("strong",{children:x}),t.jsx("span",{children:$?b:f}),t.jsx("strong",{children:o})]}),p?t.jsx(B,{disabled:e,icon:"xmark",iconSize:"xxs",iconType:"fa-light",id:r,onClick:p,px:.125,py:.125,variant:"ghost"}):void 0]}),c===void 0?void 0:t.jsx(X,{href:c,children:d})]})},ln=(e,i=!0)=>{const n=window.open(e,i?void 0:"_self","noopener,noreferrer,");s.lodashExports.isObject(n)&&(n.opener=null)},D=u.forwardRef(function({children:i,disabled:n=!1,external:a=!1,fontSize:r,href:o,id:l,icon:c,name:d,onClick:p,showArrow:g=!1,tag:x,type:f="button",tooltip:h,tooltipPlace:$="bottom",underline:b=!1,value:m,variant:w="primary",...j},I){const z=h!==void 0,v=`${l}-tooltip`,N=u.useCallback(()=>{o&&ln(o,a)},[a,o]);return t.jsx(M,{disabled:!z,id:v,place:$,tip:h,children:t.jsxs($t,{$size:r,$variant:w,"aria-disabled":n,className:b?"underline":void 0,disabled:n,id:l,name:d,onClick:w==="link"?N:p,ref:I,type:f,value:m,...z?{"data-tooltip-id":v}:{},...j,children:[c!==void 0&&t.jsx(C,{icon:c,iconSize:"xs",iconType:"fa-light"}),i,(g||w==="link")&&t.jsx(C,{icon:"arrow-right",iconSize:"xs",iconType:"fa-light"}),x===void 0?null:t.jsx(q,{tagLabel:x,variant:"inactive"})]})})}),cn=u.forwardRef(function({children:i,onClick:n,userName:a,showIcon:r=!1,showUsername:o=!1},l){const c=!!n;return t.jsx(y,{id:"navbar-user-profile",ref:l,zIndex:9999,children:t.jsxs(y,{alignItems:"end",display:"flex",flexDirection:"column",position:"relative",zIndex:30,children:[c?t.jsxs(D,{onClick:n,pb:.5,pl:.5,pr:.5,pt:.5,variant:"ghost",children:[t.jsx(at,{children:a[0].toUpperCase()}),o?t.jsx(k,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:a.split(" ")[0]}):void 0,r?t.jsx(C,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}):t.jsxs(y,{alignItems:"center",display:"flex",px:.5,py:.5,children:[t.jsx(at,{children:a[0].toUpperCase()}),o?t.jsxs(k,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:["Hi ",a.split(" ")[0],"!"]}):void 0,r?t.jsx(C,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}),t.jsx(tn,{children:i})]})})}),ze=({authorEmail:e,date:i,description:n,descriptionColor:a,id:r,title:o,titleColor:l,textAlign:c,textSpacing:d=0,tooltip:p})=>{const g=s.nt();return t.jsxs(y,{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(y,{alignItems:"start",display:"flex",flexDirection:"column",gap:.25,children:[n&&t.jsx(k,{color:a??g.palette.gray[800],fontWeight:n===void 0?"bold":"regular",size:"sm",textAlign:c,wordBreak:"break-word",children:n}),i&&t.jsx(k,{color:g.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`Date: ${i.split(" ")[0]}`}),e&&t.jsx(k,{color:g.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`Author: ${e}`}),p&&t.jsx(M,{icon:"circle-info",id:r,tip:p})]})]})},rt=s.dt(y).attrs(({...e})=>({display:"inline-block",position:"relative",...e}))`
|
|
636
636
|
& img {
|
|
637
637
|
display: block;
|
|
638
638
|
}
|
|
@@ -647,7 +647,7 @@
|
|
|
647
647
|
pointer-events: none;
|
|
648
648
|
${({$opacity:e=0})=>`background-color: rgba(0, 0, 0, ${e});`}
|
|
649
649
|
}
|
|
650
|
-
`,
|
|
650
|
+
`,dn=e=>{if(s._.isNil(e))return"";const i=e.split(".");return(i.length>1?s._.last(i):"").toLowerCase()},pn=(e,i)=>s._.isUndefined(i)?!1:s._.includes(e,dn(i)),mt=({alt:e,fileType:i,width:n="100%",opacity:a=0,src:r,height:o="auto"})=>i==="video"||pn(["webm"],r)?t.jsx(rt,{$opacity:a,children:t.jsxs("video",{controls:!0,muted:!0,style:{height:o,width:n},children:[t.jsx("source",{src:r,type:"video/webm"}),t.jsx(X,{href:r,iconPosition:"hidden",children:r})]})}):t.jsx(rt,{$opacity:a,children:t.jsx("img",{alt:e,src:r,style:{height:o,width:n}})}),gn=({alt:e,authorEmail:i,date:n,description:a,src:r,children:o,isEditing:l,onClick:c,title:d,hideDescription:p=!1,headerType:g="image",showMaximize:x=!0})=>{const f=s.nt(),[h,$]=u.useState(!1),b=u.useCallback(()=>{$(!0)},[]),m=u.useCallback(()=>{$(!1)},[]);return t.jsxs(y,{bgColor:"transparent",border:"1px solid transparent",borderColorHover:"black",borderRadius:f.spacing[.25],display:"flex",flexDirection:"column",gap:1,onHover:b,onLeave:m,padding:[.5,.5,.5,.5],width:"100%",children:[t.jsx(y,{cursor:l?"unset":"pointer",display:"inline-flex",justify:"center",onClick:c,position:"relative",width:"100%",children:o===void 0?t.jsxs(u.Fragment,{children:[t.jsx(mt,{alt:e,fileType:g,height:"147px",opacity:h?.3:0,src:r,width:"100%"}),x?t.jsx(y,{bottom:"10px",position:"absolute",right:"10px",children:t.jsx(B,{color:"white",icon:"arrows-maximize",iconSize:"xxs",iconType:"fa-light",variant:"secondary"})}):void 0]}):o}),p?null:t.jsx(ze,{authorEmail:i,date:n,description:a,descriptionColor:f.palette.gray[600],id:`${e}-card-header`,title:d})]})},un=s.dt.div`
|
|
651
651
|
${({theme:e,$align:i="center",$minWidth:n="auto",$minHeight:a="auto"})=>`
|
|
652
652
|
display: flex;
|
|
653
653
|
background-color: ${e.palette.white};
|
|
@@ -666,7 +666,7 @@
|
|
|
666
666
|
text-align: ${i};
|
|
667
667
|
}
|
|
668
668
|
`}
|
|
669
|
-
`,qe=({htmlFor:e,label:i,link:n,required:a,tooltip:r,weight:o="normal"})=>{const l=s.nt(),c=`${e}-tooltip`,d=r!==void 0&&!s.lodashExports.isEmpty(r);return t.jsxs("label",{className:`flex font-${o} gap-1 w-full`,htmlFor:e,children:[i,a&&t.jsx(C,{icon:"asterisk",iconColor:l.palette.error[500],iconSize:"xxss"}),n?t.jsx(X,{href:n,target:"_blank"}):null,d?t.jsx(
|
|
669
|
+
`,qe=({htmlFor:e,label:i,link:n,required:a,tooltip:r,weight:o="normal"})=>{const l=s.nt(),c=`${e}-tooltip`,d=r!==void 0&&!s.lodashExports.isEmpty(r);return t.jsxs("label",{className:`flex font-${o} gap-1 w-full`,htmlFor:e,children:[i,a&&t.jsx(C,{icon:"asterisk",iconColor:l.palette.error[500],iconSize:"xxss"}),n?t.jsx(X,{href:n,target:"_blank"}):null,d?t.jsx(M,{display:"inline-flex",icon:"circle-info",id:c,place:"top",tip:r}):null]})},xn=s.dt.div`
|
|
670
670
|
${({theme:e})=>`
|
|
671
671
|
align-items: flex-start;
|
|
672
672
|
display: inline-flex;
|
|
@@ -805,7 +805,7 @@
|
|
|
805
805
|
border: 1px solid ${e.palette.gray[600]};
|
|
806
806
|
}
|
|
807
807
|
`}
|
|
808
|
-
`,O=({children:e,error:i,helpLink:n,helpLinkText:a="Link here",helpText:r,htmlFor:o,label:l,linkPosition:c="down",maxLength:d,required:p,tooltip:g,value:x,weight:f})=>{const h=s.nt()
|
|
808
|
+
`,O=({children:e,error:i,helpLink:n,helpLinkText:a="Link here",helpText:r,htmlFor:o,label:l,linkPosition:c="down",maxLength:d,required:p,tooltip:g,value:x,weight:f})=>{const h=s.nt(),$=x?x.length:0;return t.jsxs(xn,{children:[l===void 0?void 0:t.jsx(qe,{htmlFor:o,label:l,link:c==="up"?n:void 0,required:p,tooltip:g,weight:f}),e,i||d?t.jsxs(y,{display:"flex",justify:i===void 0?"end":"space-between",width:"100%",children:[i&&t.jsx(k,{className:"error-msg",color:h.palette.error[500],display:"block",lineSpacing:1,size:"sm",children:i}),d&&t.jsx(q,{priority:"low",tagLabel:`${$}/${d}`,variant:"error"})]}):void 0,r||n?t.jsxs(y,{alignItems:"center",display:"flex",gap:.25,width:"100%",children:[r&&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:r})]}),n&&c==="down"?t.jsx(X,{href:n,children:a}):void 0]}):void 0]})},he=({className:e,children:i,isFilter:n=!1,popoverRef:a,state:r,triggerRef:o,...l})=>{var x;const c=u.useRef(null),d=(x=o==null?void 0:o.current)==null?void 0:x.getBoundingClientRect(),{popoverProps:p}=s.$f2f8a6077418541e$export$542a6fd13ac93354({...l,popoverRef:a??c,triggerRef:o,isNonModal:a?!0:void 0},r),g=u.useCallback(f=>{f.preventDefault()},[]);return t.jsx(s.$337b884510726a0d$export$c6fdb837b070b4ff,{children:t.jsx("div",{...p,className:e,onPointerDown:n?g:void 0,ref:a??c,style:{...p.style,...e==="dropdown"?{display:"flex",justifyContent:"center",width:d==null?void 0:d.width}:{}},children:i})})},fn=s.dt.ul`
|
|
809
809
|
${({theme:e})=>`
|
|
810
810
|
align-self: center;
|
|
811
811
|
background: ${e.palette.white};
|
|
@@ -820,7 +820,7 @@
|
|
|
820
820
|
scroll-padding: ${e.spacing[.5]};
|
|
821
821
|
width: 95%;
|
|
822
822
|
`}
|
|
823
|
-
`,
|
|
823
|
+
`,hn=s.dt.li`
|
|
824
824
|
${({theme:e})=>`
|
|
825
825
|
align-items: center;
|
|
826
826
|
color: ${e.palette.gray[800]};
|
|
@@ -855,7 +855,7 @@
|
|
|
855
855
|
}
|
|
856
856
|
}
|
|
857
857
|
`}
|
|
858
|
-
`,wt=({item:e,state:i})=>{const n=s.nt(),a=u.useRef(null),{optionProps:r,isSelected:o,isFocused:l,isDisabled:c}=s.$293f70390ea03370$export$497855f14858aa34({key:e.key},i,a),d=[o?"selected":"",l?"focused":"",c?"disabled":""].join(" ");return t.jsxs(
|
|
858
|
+
`,wt=({item:e,state:i})=>{const n=s.nt(),a=u.useRef(null),{optionProps:r,isSelected:o,isFocused:l,isDisabled:c}=s.$293f70390ea03370$export$497855f14858aa34({key:e.key},i,a),d=[o?"selected":"",l?"focused":"",c?"disabled":""].join(" ");return t.jsxs(hn,{...r,className:d,ref:a,children:[t.jsx(k,{color:n.palette.gray[800],size:"sm",textOverflow:"ellipsis",whiteSpace:"nowrap",children:e.rendered}),o?t.jsx(C,{icon:"check",iconSize:"xxs",iconType:"fa-light"}):void 0]})},Pe=({field:e,disabled:i=!1,error:n,helpLink:a,helpLinkText:r,helpText:o,label:l,loadingItems:c,name:d,items:p,onBlur:g,onChange:x,placeholder:f,required:h,tooltip:$,value:b,weight:m})=>{var nt;const w=s.nt(),j=i?void 0:n,I=(e==null?void 0:e.value)??b,[z,v]=u.useState(((nt=p.find(L=>L.value===I))==null?void 0:nt.name)??""),[N,F]=u.useState(I),[P,W]=u.useState(p),[R,E]=u.useState(!1),{contains:_}=s.$bb77f239b46e8c72$export$3274cf84b703fff({sensitivity:"base"}),V=u.useRef(null),te=u.useRef(null),Re=u.useRef(null),et=u.useRef(null),tt=u.useRef(null),xi=u.useMemo(()=>p.map(L=>_(L.name,z)||R?t.jsx(s.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,{children:L.name},L.value):null),[_,z,p,R]),fi=u.useCallback(L=>{v(L),L===""?E(!0):(E(!1),F(H=>{const me=L===""?"":H;return e&&e.onChange(me),x&&x(L),me}),W(p.filter(H=>_(H.name,L))))},[_,p,e,x]),hi=u.useCallback(L=>{var H;v(((H=p.find(me=>me.value===L))==null?void 0:H.name)??""),F(L?String(L):""),e&&e.onChange(L),x&&x(L?String(L):""),W(p)},[p,e,x]),it=u.useCallback(L=>{L.key==="Enter"&&L.preventDefault(),E(!1)},[]),bi=u.useCallback(()=>{g&&g(),e&&e.onBlur()},[e,g]),K=s.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({allowsEmptyCollection:!0,inputValue:z,items:P,menuTrigger:"focus",shouldCloseOnBlur:!0,selectedKey:N,onBlur:bi,onInputChange:fi,onKeyDown:it,onKeyUp:()=>{E(!0)},onOpenChange(L,H){E(L&&(H==="manual"||H==="focus"))},onSelectionChange:hi,children:xi}),{buttonProps:$i,inputProps:yi,listBoxProps:mi}=s.$c350ade66beef0af$export$8c18d1b4f7232bbf({inputValue:z,buttonRef:te,id:d,inputRef:V,label:l??d,listBoxRef:Re,name:d,placeholder:f,popoverRef:tt},K),{listBoxProps:wi}=s.$c132121280ec012d$export$50eacbbf140a3141(mi,K,Re),{buttonProps:ji}=s.$701a24aa0da5b062$export$ea18c227d4417cc3($i,te);return u.useEffect(()=>{var L;(c===!1||!I)&&v(((L=p.find(H=>H.value===I))==null?void 0:L.name)??"")},[I,p,c]),t.jsxs(O,{error:j,helpLink:a,helpLinkText:r,helpText:o,htmlFor:d,label:l,required:h,tooltip:$,weight:m,children:[t.jsxs(Z,{className:`${i?"disabled":""} ${j?"error":""}`,ref:et,children:[t.jsx("input",{...yi,"aria-invalid":j?"true":"false","aria-label":d,onKeyDown:it,ref:V}),j?t.jsx(C,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:w.palette.error[500],iconSize:"xs"}):void 0,t.jsx(B,{...ji,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&&!i?t.jsx(he,{className:"dropdown",offset:4,placement:"bottom start",popoverRef:tt,state:K,triggerRef:et,children:t.jsx(fn,{...wi,ref:Re,children:[...K.collection].map(L=>t.jsx(wt,{item:L,state:K},L.key))})}):null]})},jt=({control:e,disabled:i=!1,error:n,helpLink:a,helpLinkText:r,helpText:o,label:l,loadingItems:c,name:d,items:p,onBlur:g,onChange:x,placeholder:f,required:h,tooltip:$,value:b,weight:m})=>e?t.jsx(s.Controller,{control:e,name:d,render:({field:w})=>t.jsx(Pe,{disabled:i,error:n,field:w,helpLink:a,helpLinkText:r,helpText:o,items:p,label:l,loadingItems:c,name:d,onBlur:g,onChange:x,placeholder:f,required:h,tooltip:$,value:b,weight:m}),rules:{required:h}}):t.jsx(Pe,{disabled:i,error:n,helpLink:a,helpLinkText:r,helpText:o,items:p,label:l,loadingItems:c,name:d,onBlur:g,onChange:x,placeholder:f,required:h,tooltip:$,value:b,weight:m}),bn=s.dt.div`
|
|
859
859
|
${({theme:e})=>`
|
|
860
860
|
align-items: center;
|
|
861
861
|
color: ${e.palette.gray[800]};
|
|
@@ -876,7 +876,7 @@
|
|
|
876
876
|
display: none;
|
|
877
877
|
}
|
|
878
878
|
`}
|
|
879
|
-
|
|
879
|
+
`,$n=s.dt.div.attrs({className:"year-selection"})`
|
|
880
880
|
align-items: flex-start;
|
|
881
881
|
display: flex;
|
|
882
882
|
flex-direction: column;
|
|
@@ -908,9 +908,9 @@
|
|
|
908
908
|
text-align: center;
|
|
909
909
|
width: ${e.spacing[2.5]};
|
|
910
910
|
`}
|
|
911
|
-
`,
|
|
911
|
+
`,yn=s.dt.th`
|
|
912
912
|
${vt}
|
|
913
|
-
`,
|
|
913
|
+
`,mn=s.dt.td`
|
|
914
914
|
${({theme:e})=>`
|
|
915
915
|
${vt}
|
|
916
916
|
height: ${e.spacing[2.5]};
|
|
@@ -960,7 +960,7 @@
|
|
|
960
960
|
}
|
|
961
961
|
}
|
|
962
962
|
`}
|
|
963
|
-
`,
|
|
963
|
+
`,wn=s.dt.div.attrs({className:"dot"})`
|
|
964
964
|
position: absolute;
|
|
965
965
|
top: 48%;
|
|
966
966
|
|
|
@@ -987,9 +987,9 @@
|
|
|
987
987
|
padding: 0 ${e.spacing[.25]};
|
|
988
988
|
width: 100%;
|
|
989
989
|
`}
|
|
990
|
-
`,kt=({state:e,date:i})=>{const n=u.useRef(null),a=s.$14e0f24ef4ac5c92$export$629b0a497aa65267(i,s.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),{cellProps:r,buttonProps:o,isSelected:l,isDisabled:c,formattedDate:d}=s.$36a0ac60f04457c5$export$136073280381448e({date:i},e,n),p="highlightedRange"in e&&!s.lodashExports.isNull(e.highlightedRange)?s.$14e0f24ef4ac5c92$export$ea39ec197993aef0(i,e.highlightedRange.start):l,g="highlightedRange"in e&&!s.lodashExports.isNull(e.highlightedRange)?s.$14e0f24ef4ac5c92$export$ea39ec197993aef0(i,e.highlightedRange.end):l,x=l&&!c&&!(p||g)?"range":"";return t.jsx(
|
|
990
|
+
`,kt=({state:e,date:i})=>{const n=u.useRef(null),a=s.$14e0f24ef4ac5c92$export$629b0a497aa65267(i,s.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),{cellProps:r,buttonProps:o,isSelected:l,isDisabled:c,formattedDate:d}=s.$36a0ac60f04457c5$export$136073280381448e({date:i},e,n),p="highlightedRange"in e&&!s.lodashExports.isNull(e.highlightedRange)?s.$14e0f24ef4ac5c92$export$ea39ec197993aef0(i,e.highlightedRange.start):l,g="highlightedRange"in e&&!s.lodashExports.isNull(e.highlightedRange)?s.$14e0f24ef4ac5c92$export$ea39ec197993aef0(i,e.highlightedRange.end):l,x=l&&!c&&!(p||g)?"range":"";return t.jsx(mn,{id:x,...r,children:t.jsxs("div",{...o,className:`cell ${p||g?"selected":""}
|
|
991
991
|
${c?"disabled":""} ${a?"today":""}
|
|
992
|
-
${!e.isFocused&&!a?"focused":""} ${x}`,ref:n,children:[d,a?t.jsx(
|
|
992
|
+
${!e.isFocused&&!a?"focused":""} ${x}`,ref:n,children:[d,a?t.jsx(wn,{children:t.jsx(C,{clickable:!1,icon:"circle",iconSize:"xxs"})}):void 0]})})},Ie=({state:e,...i})=>{const{locale:n}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{weekDays:a}=s.$e3031d1f8c9d64eb$export$cb95147730a423f5(i,e),r=s.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654(e.visibleRange.start,n);return t.jsxs("table",{children:[t.jsx("thead",{children:t.jsx(ot,{children:a.map((o,l)=>{const c=`key_${l}`;return t.jsx(yn,{children:o},c)})})}),t.jsx("tbody",{children:[...new Array(r).keys()].map(o=>t.jsx(ot,{children:e.getDatesInWeek(o).map((l,c)=>{const d=`key_${c}`;return l?t.jsx(kt,{date:l,state:e},d):t.jsx("td",{},d)})},o))})]})},jn=s.dt(Ge)`
|
|
993
993
|
align-items: center;
|
|
994
994
|
background-color: inherit;
|
|
995
995
|
border-color: inherit;
|
|
@@ -1009,7 +1009,7 @@
|
|
|
1009
1009
|
background-color: ${({theme:e})=>e.palette.gray[100]};
|
|
1010
1010
|
cursor: pointer;
|
|
1011
1011
|
}
|
|
1012
|
-
`,
|
|
1012
|
+
`,vn=s.dt.div`
|
|
1013
1013
|
${({theme:e})=>`
|
|
1014
1014
|
align-items: flex-start;
|
|
1015
1015
|
background: ${e.palette.white};
|
|
@@ -1023,7 +1023,7 @@
|
|
|
1023
1023
|
padding: ${e.spacing[.25]};
|
|
1024
1024
|
width: 292px;
|
|
1025
1025
|
`}
|
|
1026
|
-
`,
|
|
1026
|
+
`,kn=s.dt.button`
|
|
1027
1027
|
${({theme:e,$disabled:i,$focus:n,$header:a})=>{const r=n?"34px":"40px";return`
|
|
1028
1028
|
align-items: center;
|
|
1029
1029
|
border-radius: ${a?`0 ${e.spacing[.5]} ${e.spacing[.5]} 0`:"4px"};
|
|
@@ -1038,7 +1038,7 @@
|
|
|
1038
1038
|
background-color: ${e.palette.gray[i?500:100]};
|
|
1039
1039
|
}
|
|
1040
1040
|
`}}
|
|
1041
|
-
`,
|
|
1041
|
+
`,Cn=s.dt.div`
|
|
1042
1042
|
${({theme:e})=>`
|
|
1043
1043
|
align-items: center;
|
|
1044
1044
|
background: transparent;
|
|
@@ -1049,7 +1049,7 @@
|
|
|
1049
1049
|
justify-content: space-between;
|
|
1050
1050
|
width: calc(100% - 40px);
|
|
1051
1051
|
`}
|
|
1052
|
-
`,
|
|
1052
|
+
`,Sn=s.dt.div`
|
|
1053
1053
|
align-items: center;
|
|
1054
1054
|
display: flex;
|
|
1055
1055
|
justify-content: flex-end;
|
|
@@ -1087,7 +1087,7 @@
|
|
|
1087
1087
|
font-weight: ${e.typography.weight.bold};
|
|
1088
1088
|
}
|
|
1089
1089
|
`}
|
|
1090
|
-
`,ve=({disabled:e=!1,icon:i,props:n})=>{const a=u.useRef(null),{buttonProps:r}=s.$701a24aa0da5b062$export$ea18c227d4417cc3(n,a);return t.jsx(
|
|
1090
|
+
`,ve=({disabled:e=!1,icon:i,props:n})=>{const a=u.useRef(null),{buttonProps:r}=s.$701a24aa0da5b062$export$ea18c227d4417cc3(n,a);return t.jsx(kn,{...r,$disabled:e,$focus:!!r["aria-expanded"],$header:i==="calendar"||i==="calendar-clock",disabled:e,ref:a,type:"button",children:t.jsx(C,{icon:i,iconColor:S.palette.gray[e?400:700],iconSize:"xs",iconType:"fa-light"})})},Te=({state:e,prevButtonProps:i,nextButtonProps:n,title:a})=>{const r=e.focusedDate,o=u.useCallback(()=>{e.setFocusedDate(r.add({years:1}))},[r,e]),l=u.useCallback(()=>{e.setFocusedDate(r.subtract({years:1}))},[r,e]);return t.jsxs("div",{className:"header flex items-start",children:[t.jsx(ve,{icon:"chevron-left",props:i}),t.jsxs(bn,{children:[a,t.jsxs($n,{children:[t.jsx(st,{"aria-label":"top",onClick:o,children:t.jsx(C,{icon:"caret-up",iconClass:"fa-sharp",iconSize:"xxss"})}),t.jsx(st,{"aria-label":"bottom",onClick:l,children:t.jsx(C,{icon:"caret-down",iconClass:"fa-sharp",iconSize:"xxss"})})]})]}),t.jsx(ve,{icon:"chevron-right",props:n})]})},Ct=({onClose:e,props:i})=>{const{locale:n}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),a=s.$131cf43a05231e1e$export$6d095e787d2b5e1f({...i,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:n}),{prevButtonProps:r,nextButtonProps:o,title:l}=s.$9942cad8a072a530$export$3ee915f8151bd4f1(i,a);return t.jsxs("div",{className:"calendar",children:[t.jsx(Te,{nextButtonProps:o,prevButtonProps:r,state:a,title:l}),t.jsx(Ie,{state:a}),t.jsx(Ke,{children:t.jsx(D,{onClick:e,variant:"ghost",children:"Cancel"})})]})},St=({segment:e,state:i})=>{const n=s.nt(),a=u.useRef(null),o={...e,placeholder:{day:"dd",dayPeriod:"(AM/PM)",era:"",hour:"hh",literal:"",minute:"mm",month:"mm",second:"",timeZoneName:"",year:"yyyy"}[e.type]},{segmentProps:l}=s.$32489daedd52963e$export$1315d136e6f7581(o,i,a),c=n.palette.gray[o.isEditable?800:500];return t.jsx("div",{...o.type!=="literal"&&{...l,className:"segment-cell"},ref:a,style:o.type==="literal"?void 0:{color:o.isPlaceholder?n.palette.gray[400]:c},children:o.isPlaceholder?o.placeholder:o.text})},zt=({disabled:e,error:i=!1,props:n})=>{const a=s.nt(),r=u.useRef(null),o=s.$3c0fc76039f1c516$export$60e84778edff6d26({...n,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:"en-US"}),{fieldProps:l}=s.$16f0b7bb276bc17e$export$5591b0b878c1a989(n,o,r),c=u.useCallback(d=>{const p=document.getElementsByClassName("segment-cell"),g=d.currentTarget;Object.values(p).some(x=>x.contains(g))||(d.preventDefault(),d.stopPropagation())},[]);return t.jsxs(Cn,{...l,onClick:c,children:[t.jsx("div",{className:"flex flex-row",style:{color:a.palette.gray[s.lodashExports.isNil(o.value)?400:800]},tabIndex:-1,children:o.segments.map((d,p)=>{const g=`key_${p}`;return t.jsx(St,{segment:{...d,isEditable:!e},state:o},g)})}),i?t.jsx(C,{icon:"exclamation-circle",iconColor:a.palette.error[500],iconSize:"xs"}):void 0]})},It=e=>{const i=u.useRef(null),n=s.$eff5d8ee529ac4bb$export$fd53cef0cc796101({...e,locale:"en-US",shouldForceLeadingZeros:!0}),{timeValue:a}=n,r=!s.lodashExports.isNil(a)&&a.hour<12?"AM":"PM",[o,l]=u.useState(s.lodashExports.isNil(a)?"AM":r),{fieldProps:c}=s.$16f0b7bb276bc17e$export$4c842f6a241dc825(e,n,i),d=u.useCallback(p=>{const g=p.currentTarget.name;g!==o&&(s.lodashExports.isNil(a)||(g==="AM"?n.setSegment("dayPeriod",0):g==="PM"&&n.setSegment("dayPeriod",12))),l(g)},[o,n,a]);return t.jsxs(Sn,{children:[t.jsx(lt,{...c,ref:i,children:n.segments.slice(0,-2).map((p,g)=>{const x=`key_${g}`;return t.jsx(St,{segment:p,state:n},x)})}),t.jsxs(lt,{children:[t.jsx(ct,{id:o==="AM"?"active":"",name:"AM",onClick:d,type:"button",children:"AM"}),t.jsx(ct,{id:o==="PM"?"active":"",name:"PM",onClick:d,type:"button",children:"PM"})]})]})},ke=e=>e&&e!=="-"?s.dayjs(e).format("YYYY-MM-DD"):"-",zn=e=>e&&e!=="-"?s.dayjs(e).format("YYYY-MM-DD hh:mm A"):"-",In=e=>e&&e!=="-"?s.dayjs(e).format("YYYY/MM/DD hh:mm A"):"-",oe=({error:e,buttonProps:i,datePickerRef:n,disabled:a=!1,granularity:r="day",fieldProps:o,groupProps:l,name:c,register:d,required:p,setValue:g,value:x})=>{const f=u.useCallback(h=>{const $=r==="day"?ke(String(h)):zn(String(h));o.onChange&&o.onChange(h??null),g&&g(c,$)},[o,r,c,g]);return t.jsxs(Z,{...l,className:`${a?"disabled":""} ${e?"error":""}`,ref:n,children:[t.jsx(zt,{disabled:a,error:e!=null,props:{...o,autoFocus:!1,granularity:r,onChange:f,shouldForceLeadingZeros:!0}}),t.jsx(ve,{disabled:a,icon:r==="minute"?"calendar-clock":"calendar",props:i}),t.jsx("input",{...d==null?void 0:d(c,{required:p}),"aria-label":c,className:"date-input",disabled:a,id:c,name:c,type:"text",value:x??""})]})},Fe=({children:e,...i})=>{const n=u.useRef(null),{dialogProps:a}=s.$40df3f8667284809$export$d55e7ee900f34e93(i,n);return t.jsx(vn,{...a,ref:n,children:e})},Tt=({disabled:e=!1,error:i,helpLink:n,helpLinkText:a,helpText:r,required:o,label:l,name:c,register:d,setValue:p,tooltip:g,watch:x,...f})=>{const h=u.useRef(null),$=x==null?void 0:x(c),b=u.useCallback(F=>{p&&F&&p(c,ke(String(F)))},[c,p]),m=s.$ab5bf3f618090389$export$87194bb378cc3ac2({...f,onChange(F){b(F)},value:s._.isNil($)||s._.isEmpty($)||$==="-"?null:s.$fae977aafc393c5c$export$6b862160d295c8e($.replace(/\//gu,"-"))}),{close:w}=m,{groupProps:j,fieldProps:I,buttonProps:z,dialogProps:v,calendarProps:N}=s.$6057a3d2a53a12fd$export$42df105a73306d51({...f,"aria-label":l??c,name:c},m,h);return t.jsxs(O,{error:i,helpLink:n,helpLinkText:a,helpText:r,htmlFor:c,label:l,required:o,tooltip:g,children:[t.jsx(oe,{buttonProps:z,datePickerRef:h,disabled:e,error:i,fieldProps:I,groupProps:j,name:c,register:d,required:o,setValue:p,value:$}),m.isOpen&&!e?t.jsx(he,{offset:8,placement:"bottom start",state:m,triggerRef:h,children:t.jsx(Fe,{...v,children:t.jsx(Ct,{onClose:w,props:N})})}):null]})},Ft=({onClose:e,props:i})=>{const{locale:n}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),a=u.useRef(null),r=s.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90({...i,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:n}),{prevButtonProps:o,nextButtonProps:l,title:c}=s.$46a4342aab3d8076$export$87e0539f600c24e5(i,r,a);return t.jsxs("div",{className:"calendar-range",ref:a,children:[t.jsx(Te,{nextButtonProps:l,prevButtonProps:o,state:r,title:c}),t.jsx(Ie,{state:r}),t.jsx(Ke,{children:t.jsx(D,{onClick:e,variant:"ghost",children:"Cancel"})})]})},Tn=s.dt.div`
|
|
1091
1091
|
${({theme:e,$disabled:i,$show:n})=>`
|
|
1092
1092
|
border-color: ${n?e.palette.error[500]:e.palette.gray[300]};
|
|
1093
1093
|
display: flex;
|
|
@@ -1098,7 +1098,7 @@
|
|
|
1098
1098
|
background: ${i?e.palette.gray[200]:e.palette.white};
|
|
1099
1099
|
}
|
|
1100
1100
|
`}
|
|
1101
|
-
`,Nt=({disabled:e=!1,error:i,label:n,name:a,required:r,tooltip:o,register:l,setValue:c,propsMax:d,propsMin:p,...g})=>{const x=`${a}Max`,f=`${a}Min`,h=u.useRef(null)
|
|
1101
|
+
`,Nt=({disabled:e=!1,error:i,label:n,name:a,required:r,tooltip:o,register:l,setValue:c,propsMax:d,propsMin:p,...g})=>{const x=`${a}Max`,f=`${a}Min`,h=u.useRef(null),$=u.useCallback(F=>{c&&F&&(c((d==null?void 0:d.name)??x,ke(String(F.end))),c((p==null?void 0:p.name)??f,ke(String(F.start))))},[x,f,c,d,p]),b=s.$93c38a5e28be6249$export$e50a61c1de9f574({...g,endName:(d==null?void 0:d.name)??x,startName:(p==null?void 0:p.name)??f,onChange(F){$(F)}}),{close:m}=b,{groupProps:w,startFieldProps:j,endFieldProps:I,buttonProps:z,dialogProps:v,calendarProps:N}=s.$887cac91b7cc8801$export$12fd5f0e9f4bb192({...g,"aria-label":n??a},b,h);return t.jsxs(O,{error:i,htmlFor:a,label:n,required:r,tooltip:o,children:[t.jsxs(Tn,{$disabled:e,$show:i!==void 0,ref:h,style:{flexDirection:"column"},children:[t.jsx(oe,{buttonProps:z,datePickerRef:h,disabled:e,error:i,fieldProps:{...j,"aria-label":`${j["aria-label"]} ${a}`,validate:F=>I.value&&F>I.value?"Start date must be less than or equal to end date":null},groupProps:w,name:(p==null?void 0:p.name)??f,register:l,setValue:c,value:p==null?void 0:p.value}),t.jsx(oe,{buttonProps:z,datePickerRef:h,disabled:e,error:i,fieldProps:{...I,"aria-label":`${I["aria-label"]} ${a}`,validate:F=>j.value&&F<j.value?"End date must be greater than or equal to start date":null},groupProps:w,name:(d==null?void 0:d.name)??x,register:l,setValue:c,value:d==null?void 0:d.value})]}),b.isOpen&&!e?t.jsx(he,{offset:8,placement:"bottom start",state:b,triggerRef:h,children:t.jsx(Fe,{...v,children:t.jsx(Ft,{onClose:m,props:N})})}):null]})},Fn=s.dt.div`
|
|
1102
1102
|
${({theme:e})=>`
|
|
1103
1103
|
align-items: center;
|
|
1104
1104
|
border-top: 1px solid ${e.palette.gray[200]};
|
|
@@ -1107,32 +1107,32 @@
|
|
|
1107
1107
|
justify-content: center;
|
|
1108
1108
|
padding: ${e.spacing[.5]} ${e.spacing[1.25]};
|
|
1109
1109
|
`}
|
|
1110
|
-
`,
|
|
1110
|
+
`,Nn=s.dt.div`
|
|
1111
1111
|
align-items: center;
|
|
1112
1112
|
display: flex;
|
|
1113
1113
|
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1114
1114
|
justify-content: flex-end;
|
|
1115
1115
|
flex: 1 0 0;
|
|
1116
|
-
`,Et=({handleTimeChange:e,onClose:i,props:n,timeState:a})=>{const r=s.nt(),{locale:o}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),l=s.$131cf43a05231e1e$export$6d095e787d2b5e1f({...n,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:o}),{prevButtonProps:c,nextButtonProps:d,title:p}=s.$9942cad8a072a530$export$3ee915f8151bd4f1(n,l);return t.jsxs("div",{className:"calendar",children:[t.jsx(Te,{nextButtonProps:d,prevButtonProps:c,state:l,title:p}),t.jsx(Ie,{state:l}),t.jsxs(
|
|
1117
|
-
${e?"disabled":""} ${F?"error":""} ${
|
|
1118
|
-
`,children:[i?t.jsx(C,{icon:"user",iconSize:"sm",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":F?"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
|
|
1116
|
+
`,Et=({handleTimeChange:e,onClose:i,props:n,timeState:a})=>{const r=s.nt(),{locale:o}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),l=s.$131cf43a05231e1e$export$6d095e787d2b5e1f({...n,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:o}),{prevButtonProps:c,nextButtonProps:d,title:p}=s.$9942cad8a072a530$export$3ee915f8151bd4f1(n,l);return t.jsxs("div",{className:"calendar",children:[t.jsx(Te,{nextButtonProps:d,prevButtonProps:c,state:l,title:p}),t.jsx(Ie,{state:l}),t.jsxs(Fn,{children:[t.jsx(k,{color:r.palette.gray[800],fontWeight:"bold",size:"sm",children:"Time"}),t.jsx(Nn,{children:t.jsx(It,{hourCycle:12,label:"time-field",onChange:e,value:a.timeValue})})]}),t.jsx(Ke,{children:t.jsx(D,{onClick:i,variant:"ghost",children:"Cancel"})})]})},En=e=>{const{disabled:i=!1,error:n,required:a,label:r,name:o,tooltip:l,register:c,setValue:d,watch:p}=e,g=p==null?void 0:p(o),x=u.useRef(null),f=s.$ab5bf3f618090389$export$87194bb378cc3ac2({...e,granularity:"minute",hourCycle:12,isDisabled:i,isRequired:a,shouldCloseOnSelect:!1,value:s._.isNil(g)||s._.isEmpty(g)||g==="-"?null:s.$fae977aafc393c5c$export$588937bcd60ade55(g.replace(/\//gu,"-"))}),{close:h}=f,{groupProps:$,fieldProps:b,buttonProps:m,dialogProps:w,calendarProps:j}=s.$6057a3d2a53a12fd$export$42df105a73306d51(e,f,x),I=u.useCallback(v=>{j.onChange&&j.onChange(v),d==null||d(o,In(String(v).replace(/-/gu,"/")))},[j,o,d]),z=u.useCallback(v=>{v&&f.setTimeValue(v)},[f]);return t.jsxs(O,{error:n,htmlFor:o,label:r,required:a,tooltip:l,children:[t.jsx(oe,{buttonProps:m,datePickerRef:x,disabled:i,error:n,fieldProps:b,granularity:"minute",groupProps:$,name:o,register:c,setValue:d,value:g}),f.isOpen&&!i?t.jsx(he,{offset:8,placement:"bottom start",state:f,triggerRef:x,children:t.jsx(Fe,{...w,children:t.jsx(Et,{handleTimeChange:z,onClose:h,props:{...j,onChange:I},timeState:f})})}):null]})},Rn=({children:e,currentValue:i,externalLink:n,isEditing:a,label:r,name:o,tooltip:l})=>{if(a)return t.jsx("div",{children:e});const c=s.lodashExports.isNil(i)?"":i,d=String(n??c);return t.jsxs(y,{children:[t.jsx(qe,{htmlFor:o,label:r,tooltip:l,weight:"bold"}),d.startsWith("https://")?t.jsx(X,{href:d,children:c}):t.jsx(k,{size:"md",children:c})]})},Xe=({disabled:e=!1,hasIcon:i=!1,helpLink:n,helpLinkText:a,helpText:r,error:o,isValid:l,isTouched:c,label:d,linkPosition:p,name:g,maskValue:x=!1,onPaste:f,placeholder:h,register:$,tooltip:b,type:m="text",weight:w,...j})=>{const{required:I,onBlur:z,onChange:v}=j,N=s.nt(),F=e?void 0:o,P=l&&c&&!e,W=u.useCallback(R=>{R.key==="Enter"&&R.preventDefault()},[]);return t.jsx(O,{error:F,helpLink:n,helpLinkText:a,helpText:r,htmlFor:g,label:d,linkPosition:p,required:I,tooltip:b,weight:w,children:t.jsxs(Z,{className:`
|
|
1117
|
+
${e?"disabled":""} ${F?"error":""} ${P?"success":""}
|
|
1118
|
+
`,children:[i?t.jsx(C,{icon:"user",iconSize:"sm",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":F?"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,...$?$(g,{required:I,onBlur:z,onChange:v}):{...j}}),F?t.jsx(C,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:N.palette.error[500],iconSize:"xs"}):void 0,P?t.jsx(C,{icon:"check-circle",iconClass:"success-icon",iconColor:N.palette.success[500],iconSize:"xs"}):void 0]})})},Dn=s.dt(ht)`
|
|
1119
1119
|
white-space: nowrap;
|
|
1120
1120
|
margin-right: ${({theme:e})=>e.spacing[.25]};
|
|
1121
1121
|
text-overflow: ellipsis;
|
|
1122
1122
|
overflow: hidden;
|
|
1123
1123
|
max-width: 80%;
|
|
1124
|
-
`,
|
|
1124
|
+
`,Ln=s.dt.input`
|
|
1125
1125
|
opacity: 0;
|
|
1126
1126
|
position: absolute;
|
|
1127
1127
|
visibility: hidden;
|
|
1128
1128
|
width: 0;
|
|
1129
|
-
`,We=(e,i,n)=>{const a=new Event(e);return Object.defineProperty(a,"target",{value:{name:i,value:n}}),a},
|
|
1129
|
+
`,We=(e,i,n)=>{const a=new Event(e);return Object.defineProperty(a,"target",{value:{name:i,value:n}}),a},Pn=e=>{const i=e;return i?Array.from(i).map(n=>n.name).join(", "):""},Wn=({accept:e,disabled:i=!1,error:n,label:a,helpLink:r,helpText:o,id:l,multiple:c,name:d,onChange:p,required:g,register:x,setValue:f,tooltip:h,watch:$,weight:b})=>{const m=s.nt(),w=i?void 0:n,j=u.useRef(null),I=$==null?void 0:$(d),z=Pn(I),v=x==null?void 0:x(d,{required:g}),N=u.useCallback(()=>{const W=We("change",d,void 0);f&&f(d,""),v&&v.onChange(W)},[v,d,f]),F=u.useCallback(W=>{const{files:R}=W.currentTarget,E=We("change",d,R&&R.length>0?R:void 0);p==null||p(E),v&&v.onChange(E)},[v,d,p]),P=u.useCallback(W=>{i?W.preventDefault():j.current&&j.current.click()},[i]);return t.jsxs(O,{error:w,helpLink:r,helpText:o,htmlFor:l??d,label:a,required:g,tooltip:h,weight:b,children:[t.jsxs(Z,{className:`${i?"disabled":""} ${w?"error":""}`,children:[t.jsx(Dn,{$size:"xs",children:z}),t.jsxs(y,{alignItems:"center",display:"flex",gap:.625,children:[s.lodashExports.isEmpty(z)?void 0:t.jsx(B,{color:m.palette.gray[400],height:"20px",icon:"xmark",iconSize:"lg",iconType:"fa-light",onClick:N,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:i?`1px solid ${m.palette.gray[300]} !important`:"",borderRadius:"0px 8px 8px 0px !important",disabled:i,height:"40px",onClick:P,variant:"primary",width:"96px",children:[t.jsx(C,{icon:"search",iconSize:"sm",mr:.5}),"Add file"]})]})]}),t.jsx(Ln,{...v&&{ref:v.ref,onBlur:v.onBlur},accept:e,"aria-label":d,"data-testid":d,disabled:i,id:l??d,multiple:c,name:d,onChange:F,onClick:N,ref:j,required:void 0,type:"file",value:void 0})]})},An=s.dt.input`
|
|
1130
1130
|
border: none;
|
|
1131
1131
|
background: transparent;
|
|
1132
1132
|
min-width: 15rem;
|
|
1133
1133
|
padding: 0;
|
|
1134
1134
|
flex: 1;
|
|
1135
|
-
`,Ae=({disabled:e=!1,error:i,field:n,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:p,placeholder:g,required:x,tooltip:f,value:h,weight
|
|
1135
|
+
`,Ae=({disabled:e=!1,error:i,field:n,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:p,placeholder:g,required:x,tooltip:f,value:h,weight:$})=>{const b=s.nt(),m=e?void 0:i,[w,j]=u.useState(""),I=d?h:n==null?void 0:n.value,z=u.useMemo(()=>I&&typeof I=="string"?I.split(",").filter(Boolean):[],[I]),v=u.useCallback(R=>{const _=[...new Set(R.filter(Boolean))].join(","),V=We("change",c,_);n&&n.onChange(V),d&&d(V)},[n,c,d]),N=u.useCallback(R=>{j(R.target.value)},[]),F=u.useCallback(R=>{const E=w.trim();E.length&&!z.includes(E)&&(R.preventDefault(),v([...z,E]),j("")),n&&n.onBlur()},[w,n,v,z]),P=u.useCallback(R=>{const E=w.trim();R.key==="Enter"&&E.length===0&&R.preventDefault(),["Enter",","].includes(R.key)&&E.length>0&&!z.includes(E)?(R.preventDefault(),v([...z,E]),j("")):R.key==="Backspace"&&!E.length&&z.length&&(R.preventDefault(),p==null||p(z[z.length-1]),v(z.slice(0,-1)))},[w,p,v,z]),W=u.useCallback(R=>()=>{p==null||p(R),v(z.filter(E=>E!==R))},[p,v,z]);return t.jsx(O,{error:m,helpLink:a,helpLinkText:r,helpText:o,htmlFor:c,label:l,required:x,tooltip:f,weight:$,children:t.jsxs(Z,{$overflowX:"auto",className:`${e?"disabled":""} ${m?"error":""}`,children:[z.map(R=>t.jsx(q,{disabled:e,onClose:W(R),tagLabel:R},R)),t.jsx(An,{"aria-hidden":!1,"aria-invalid":m?"true":"false","aria-label":c,"aria-required":x,autoComplete:"off",id:c,onBlur:F,onChange:N,onKeyDown:P,placeholder:z.length===0?g:void 0,ref:n==null?void 0:n.ref,type:"text",value:w}),m?t.jsx(C,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:b.palette.error[500],iconSize:"xs"}):void 0]})})},Bn=({disabled:e=!1,control:i,error:n,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:p,placeholder:g,required:x,tooltip:f,value:h,weight:$})=>i?t.jsx(s.Controller,{control:i,name:c,render:({field:b})=>t.jsx(Ae,{disabled:e,error:n,field:b,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c,onRemove:p,placeholder:g,required:x,tooltip:f,weight:$}),rules:{required:x}}):t.jsx(Ae,{disabled:e,error:n,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c,onChange:d,onRemove:p,placeholder:g,required:x,tooltip:f,value:h,weight:$}),Be=u.forwardRef(function({disabled:i,icon:n,margin:a,onClick:r,...o},l){return t.jsx(jn,{$margin:a,"aria-label":n,className:"action-btn",disabled:i,onClick:r,ref:l,type:"button",...o,children:t.jsx(C,{icon:n,iconClass:"action",iconSize:"xs",iconType:"fa-light"})})}),Ce=({error:e,decimalPlaces:i=0,disabled:n=!1,id:a,maxLength:r,max:o=1/0,min:l=0,name:c,onChange:d,placeholder:p,register:g,required:x,setValue:f,value:h})=>{const $=s.nt(),b=n?void 0:e,m=u.useMemo(()=>i<0?0:i,[i]),[w,j]=u.useState(h?s._.toNumber(h):0),I=u.useCallback(()=>{const F=(w-10**-m).toFixed(m),P=Math.max(Number(l),Number(F));f&&f(c,P),j(P)},[m,w,l,c,f]),z=u.useCallback(()=>{const F=(w+10**-m).toFixed(m),P=Math.min(Number(o),Number(F)>Number(l)?Number(F):Number(l));f&&f(c,P),j(P)},[m,w,o,l,c,f]),v=u.useCallback(F=>{const{value:P}=F.target,W=/\d+/u.test(P)&&!s._.isEmpty(P);f&&f(c,W?Number(P):void 0),d&&d(F)},[c,d,f]),N=u.useCallback(F=>{F.key==="Enter"&&F.preventDefault()},[]);return t.jsxs(Z,{className:`${n?"disabled":""} ${b?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":b?"true":"false","aria-label":c,"aria-required":x,autoComplete:"off",disabled:n,id:a??c,max:o,min:l,onKeyDown:N,placeholder:p,required:x,step:10**-m,type:"number",...g==null?void 0:g(c,{required:x,maxLength:r,max:o,min:l,onChange:v})}),b&&t.jsx(C,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:$.palette.error[500],iconSize:"xs"}),t.jsx(Be,{borderLeft:"inherit",borderRight:"inherit",disabled:n,icon:"minus",margin:"0 -0.625rem 0 0",onClick:I,px:.75,py:.75}),t.jsx(Be,{borderRadius:`0 ${$.spacing[.5]} ${$.spacing[.5]} 0`,disabled:n,icon:"plus",onClick:z,px:.75,py:.75})]})},Rt=({decimalPlaces:e,disabled:i=!1,error:n,helpLink:a,helpText:r,id:o,label:l,linkPosition:c,maxLength:d,max:p,min:g,name:x,onChange:f,placeholder:h,register:$,required:b,setValue:m,tooltip:w,value:j,watch:I,weight:z})=>t.jsx(O,{error:i?void 0:n,helpLink:a,helpText:r,htmlFor:x,label:l,linkPosition:c,maxLength:d,required:b,tooltip:w,weight:z,children:t.jsx(Ce,{decimalPlaces:e,disabled:i,error:n,id:o,max:p,maxLength:d,min:g,name:x,onChange:f,placeholder:h,register:$,required:b,setValue:m,value:f?j:I==null?void 0:I(x)})}),Dt=({disabled:e=!1,error:i,name:n,label:a,propsMax:r,propsMin:o,required:l,tooltip:c})=>{const d=`${n}Max`,p=`${n}Min`;return t.jsx(O,{error:i,htmlFor:n,label:a,required:l,tooltip:c,children:t.jsxs(y,{display:"flex",flexDirection:"column",gap:.25,width:"100%",children:[t.jsx(Ce,{...o,disabled:e,error:i,name:o.name??p}),t.jsx(Ce,{...r,disabled:e,error:i,name:r.name??d})]})})},_n=s.dt.div`
|
|
1136
1136
|
${({theme:e})=>`
|
|
1137
1137
|
align-items: flex-start;
|
|
1138
1138
|
align-self: stretch;
|
|
@@ -1172,7 +1172,7 @@
|
|
|
1172
1172
|
}
|
|
1173
1173
|
}
|
|
1174
1174
|
`}
|
|
1175
|
-
`,
|
|
1175
|
+
`,On=s.dt.button`
|
|
1176
1176
|
${({theme:e})=>`
|
|
1177
1177
|
align-items: center;
|
|
1178
1178
|
background: inherit;
|
|
@@ -1188,7 +1188,7 @@
|
|
|
1188
1188
|
cursor: not-allowed;
|
|
1189
1189
|
}
|
|
1190
1190
|
`}
|
|
1191
|
-
`,
|
|
1191
|
+
`,Hn=s.dt.ul`
|
|
1192
1192
|
${({theme:e})=>`
|
|
1193
1193
|
align-items: flex-start;
|
|
1194
1194
|
box-shadow: ${e.shadows.md};
|
|
@@ -1218,16 +1218,16 @@
|
|
|
1218
1218
|
background: ${e.palette.gray[100]};
|
|
1219
1219
|
}
|
|
1220
1220
|
`}
|
|
1221
|
-
`,
|
|
1221
|
+
`,Mn=s.dt.p`
|
|
1222
1222
|
color: ${({theme:e})=>e.palette.gray[800]};
|
|
1223
1223
|
font-size: inherit;
|
|
1224
1224
|
min-width: 55%;
|
|
1225
1225
|
overflow: hidden;
|
|
1226
1226
|
text-overflow: ellipsis;
|
|
1227
1227
|
white-space: nowrap;
|
|
1228
|
-
`,ee=(e,i,n=!1)=>{u.useEffect(()=>{var r;const a=o=>{e&&!e.contains(o.target)&&i()};return n?(document.addEventListener("click",a,!0),()=>{document.removeEventListener("click",a,!0)}):((r=document.getElementById("root"))==null||r.addEventListener("click",a,!0),()=>{var o;(o=document.getElementById("root"))==null||o.removeEventListener("click",a,!0)})},[n,e,i])},
|
|
1228
|
+
`,ee=(e,i,n=!1)=>{u.useEffect(()=>{var r;const a=o=>{e&&!e.contains(o.target)&&i()};return n?(document.addEventListener("click",a,!0),()=>{document.removeEventListener("click",a,!0)}):((r=document.getElementById("root"))==null||r.addEventListener("click",a,!0),()=>{var o;(o=document.getElementById("root"))==null||o.removeEventListener("click",a,!0)})},[n,e,i])},Gn=({disabled:e,error:i,label:n,name:a,placeholder:r,required:o,register:l,tooltip:c,value:d,weight:p})=>{const g=s.nt(),x=u.useRef(null),f=e?void 0:i,[h,$]=u.useState(!1),[b,m]=u.useState(""),{refs:w,floatingStyles:j}=s.useFloating$1({placement:"bottom-start",whileElementsMounted:s.autoUpdate}),{inputValue:I,handlePhoneValueChange:z,country:v,setCountry:N}=s.ee({countries:s.R,defaultCountry:"us",forceDialCode:!0,value:d?String(d):void 0}),F=u.useCallback(()=>{$(E=>!E),h||m("")},[h]),P=u.useCallback(E=>()=>{N(E),$(!1),m("")},[N,$]),W=u.useCallback(E=>{E.key.length===1?m(_=>_+E.key):E.key==="Backspace"&&m(_=>_.slice(0,-1))},[]),R=s.R.filter(E=>{const{name:_}=s.M(E);return _.toLowerCase().includes(b.toLowerCase())});return ee(w.floating.current,()=>{$(!1),m("")},!0),t.jsx(O,{error:f,htmlFor:a,label:n,required:o,tooltip:c,weight:p,children:t.jsxs(_n,{className:`${e?"disabled":""} ${f?"error":""}`,ref:x,children:[t.jsxs(On,{"aria-label":"country-selector","data-testid":"country-selector",disabled:e,id:"country-selector",onClick:F,onKeyDown:W,ref:w.setReference,children:[t.jsx(s.q,{iso2:v.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":a,"aria-required":o,autoComplete:"off","data-testid":`${a}-input`,disabled:e,id:a,name:a,placeholder:r,type:"tel",value:I,...l==null?void 0:l(a,{required:o,onChange:z})}),f?t.jsx(C,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:g.palette.error[500],iconSize:"xs"}):void 0]}),h&&U.createPortal(t.jsx(Hn,{ref:w.setFloating,style:j,children:R.map(E=>{const{dialCode:_,iso2:V,name:te}=s.M(E);return t.jsxs(Vn,{onClick:P(V),value:V,children:[t.jsx(s.q,{iso2:V,size:"16px"}),t.jsx(Mn,{children:te}),t.jsx(k,{color:g.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+_})]},V)})}),document.getElementById("root")??document.body)]})})},Un=({disabled:e=!1,error:i,helpLink:n,helpText:a,isTouched:r,isValid:o,label:l,name:c="input-text",id:d,maskValue:p=!1,maxLength:g,placeholder:x,register:f,required:h,rows:$,tooltip:b,watch:m,weight:w})=>{const j=s.nt(),I=m==null?void 0:m(c),z=o&&r&&!e,v=e?void 0:i;return t.jsx(O,{error:v,helpLink:n,helpText:a,htmlFor:c,label:l,maxLength:g,required:h,tooltip:b,value:I?String(I):void 0,weight:w,children:t.jsxs(Z,{className:`
|
|
1229
1229
|
${e?"disabled":""} ${v?"error":""} ${z?"success":""}
|
|
1230
|
-
`,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":v?"true":"false","aria-label":c,"aria-required":h,className:p?"sr-block":"","data-testid":`${c}-text-area`,disabled:e,id:d??c,maxLength:g,placeholder:x,rows
|
|
1230
|
+
`,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":v?"true":"false","aria-label":c,"aria-required":h,className:p?"sr-block":"","data-testid":`${c}-text-area`,disabled:e,id:d??c,maxLength:g,placeholder:x,rows:$,...f==null?void 0:f(c,{required:h})}),v?t.jsx(C,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:j.palette.error[500],iconSize:"xs"}):void 0,z?t.jsx(C,{icon:"check-circle",iconClass:"success-icon",iconColor:j.palette.success[500],iconSize:"xs"}):void 0]})})},Yn=({description:e,disabled:i,id:n,align:a,inputType:r="text",inputNumberProps:o,minHeight:l,minWidth:c,name:d,placeholder:p,tooltip:g,title:x})=>{const f=u.useMemo(()=>{if(r==="text")return t.jsx(Xe,{disabled:i,name:d,placeholder:p});if(r==="date")return t.jsx(Tt,{disabled:i,name:d});const{decimalPlaces:h,max:$,min:b}=o??{};return t.jsx(Rt,{decimalPlaces:h,disabled:i,max:$,min:b,name:d,placeholder:p})},[i,o,r,d,p]);return t.jsxs(un,{$align:a,$minHeight:l,$minWidth:c,children:[t.jsx(ze,{description:e,id:n,title:x,tooltip:g}),f]})},qn=s.dt.label`
|
|
1231
1231
|
${({theme:e})=>`
|
|
1232
1232
|
align-items: center;
|
|
1233
1233
|
color: ${e.palette.gray[600]};
|
|
@@ -1299,7 +1299,7 @@
|
|
|
1299
1299
|
fill: ${e.palette.white};
|
|
1300
1300
|
}
|
|
1301
1301
|
`}
|
|
1302
|
-
`,Ne=u.forwardRef(function({checked:i,disabled:n=!1,label:a,name:r,onChange:o,onClick:l,onFocus:c,onKeyDown:d,tooltip:p,value:g,...x},f){return t.jsxs("div",{className:"gap-1 inline-flex items-start",children:[t.jsxs(
|
|
1302
|
+
`,Ne=u.forwardRef(function({checked:i,disabled:n=!1,label:a,name:r,onChange:o,onClick:l,onFocus:c,onKeyDown:d,tooltip:p,value:g,...x},f){return t.jsxs("div",{className:"gap-1 inline-flex items-start",children:[t.jsxs(qn,{"aria-disabled":n,children:[t.jsx("input",{"aria-checked":i,"aria-disabled":n,"aria-hidden":!1,"aria-label":a??r,checked:i,disabled:n,id:r,name:r,onChange:o,onClick:l,onFocus:c,onKeyDown:d,ref:f,type:"checkbox",value:g,...x}),t.jsx(C,{disabled:n,icon:"check",iconSize:"sm"}),a??g]}),p===void 0?void 0:t.jsx(M,{icon:"circle-info",id:p,place:"right",tip:p})]})}),Lt=({options:e,title:i,checkboxesName:n,defaultCollapsed:a,onChange:r})=>{const o=s.nt(),[l,c]=u.useState(a??!1),d=u.useCallback(()=>{c(p=>!p)},[]);return t.jsxs(y,{"aria-label":i,bgColor:l?o.palette.gray[50]:o.palette.white,border:"1px solid"+o.palette.gray[300],borderRadius:"8px",display:"inline-flex",flexDirection:"column",gap:.625,px:.75,py:.625,role:"region",width:"100%",children:[t.jsxs(y,{alignItems:"center",cursor:"pointer",display:"flex",onClick:d,children:[t.jsx(k,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",children:i}),t.jsx(C,{icon:l?"chevron-up":"chevron-down",iconColor:o.palette.gray[400],iconSize:"xs"})]}),l?t.jsx(y,{display:"flex",gap:.75,wrap:"wrap",children:e.map(p=>t.jsx(y,{border:"1px solid",borderColor:o.palette.gray[300],borderRadius:"4px",px:.5,py:.5,children:t.jsx(Ne,{checked:p.visible,disabled:p.locked,label:p.name,name:`${n}-${p.name}`,onChange:r,value:p.name})},p.name))}):void 0]})},Pt=(e,i)=>{const[a,r]=u.useState(0),[o,l]=u.useState(0);return u.useEffect(()=>{o===100&&(()=>{r(d=>d===i-1?0:d+1)})()},[o,i]),u.useEffect(()=>{const c=setInterval(()=>{l(d=>d===100?0:d+1)},e);return()=>{clearInterval(c)}},[e]),{cycle:a,progress:o,setCycle:r,setProgress:l}},Wt=({publicId:e,format:i="webp"})=>{const n=u.useMemo(()=>new s.Cloudinary({cloud:{cloudName:"fluid-attacks"}}),[]);return u.useMemo(()=>n.image(e).format(i),[n,e,i])},Ee=e=>{const[i,n]=u.useState(!1),a=u.useCallback(()=>{n(!0)},[]),r=u.useCallback(()=>{n(!1)},[]),o=u.useCallback(()=>{n(l=>!l)},[]);return{close:r,isOpen:i,name:e,open:a,setIsOpen:n,toggle:o}},Kn=({name:e,items:i,columnOrder:n,setColumnOrder:a})=>{const r=u.useMemo(()=>[...i.filter(({locked:g})=>g).map(({locked:g,...x})=>({...x,visible:!0,locked:g})),...i.filter(({locked:g})=>!g)],[i]),[o,l]=u.useState(r),c=u.useCallback(g=>{const x=g.filter(({locked:b})=>!b),h=[...g.filter(({locked:b})=>b),...x],$=h.map(({name:b})=>b);l(b=>[...h,...b.filter(({name:m})=>!$.includes(m))]),a&&a(h.map(({id:b})=>b))},[a]),d=u.useCallback(()=>{const g=o.map(x=>{var h;const f=(n==null?void 0:n.includes(x.id))??!1;return(h=x.toggleVisibility)==null||h.call(x,f),{...x,visible:f}}).toSorted((x,f)=>{const h=(n==null?void 0:n.indexOf(x.id))??0,$=(n==null?void 0:n.indexOf(f.id))??0;return Number(f.visible)!==Number(x.visible)?Number(f.visible)-Number(x.visible):h-$});l(g),a==null||a(n)},[o,n,a]),p=u.useMemo(()=>s.some(o,g=>((n==null?void 0:n.includes(g.id))??!1)!==g.visible),[o,n]);return{setColumns:c,resetToDefault:d,columns:o,...Ee(e),hasChanged:p}},At=(e,i)=>u.useMemo(()=>s._.debounce(e,i),[e,i]),Xn=e=>{const[i,n]=u.useState(),a=At(r=>{n(r)},(e==null?void 0:e.debounceWait)??300);return[i,a]},Zn=({alt:e="img",height:i="",width:n="",plugins:a=[s.lazyload(),s.placeholder()],publicId:r})=>{const o=Wt({publicId:r});return t.jsx(s.AdvancedImage,{alt:e,cldImg:o,height:i,plugins:a,width:n})},G=u.memo(Zn),Jn=s.dt.label`
|
|
1303
1303
|
${({theme:e})=>`
|
|
1304
1304
|
align-items: center;
|
|
1305
1305
|
display: flex;
|
|
@@ -1378,7 +1378,7 @@
|
|
|
1378
1378
|
}
|
|
1379
1379
|
|
|
1380
1380
|
`}
|
|
1381
|
-
`,
|
|
1381
|
+
`,Qn=s.dt.span.attrs({className:"checkmark"})``,Ze=u.forwardRef(function({defaultChecked:i=!1,disabled:n=!1,label:a,name:r,onChange:o,onClick:l,value:c,...d},p){return t.jsxs(Jn,{"aria-disabled":n,"aria-label":a??r,role:"radiogroup",children:[t.jsx("input",{"aria-checked":i,"aria-disabled":n,"aria-label":a??r,defaultChecked:i,disabled:n,name:r,onChange:o,onClick:l,ref:p,type:"radio",value:c,...d}),t.jsx(Qn,{}),a??null]})}),ea=({alt:e,imageId:i,icon:n,selectorProps:a,onClick:r,title:o,width:l="fit-content"})=>{const c=s.nt();return t.jsxs(y,{alignItems:"center",border:`1px solid ${c.palette.gray[200]}`,borderColorHover:c.palette.gray[600],borderRadius:c.spacing[.25],display:"inline-flex",padding:[1,1,1,1],shadowHover:"md",width:l,children:[t.jsx(y,{alignSelf:"start",display:"flex",width:"fit-content",children:t.jsx(Ze,{name:a.name,onClick:r,value:a.value})}),t.jsxs(y,{alignItems:"center",display:"flex",gap:.5,justify:"space-between",ml:1,mr:1,width:"100%",children:[i===void 0?void 0:t.jsx(G,{alt:e??"card image",height:"32px",publicId:i,width:"32px"}),n===void 0?void 0:t.jsx(C,{icon:n,iconSize:"sm",iconType:"fa-light"}),t.jsx(A,{fontWeight:"bold",lineSpacing:1.75,size:"xs",children:o})]})]})},ie=s.dt.div`
|
|
1382
1382
|
${({theme:e})=>`
|
|
1383
1383
|
align-items: center;
|
|
1384
1384
|
background-color: ${e.palette.gray[200]};
|
|
@@ -1390,7 +1390,7 @@
|
|
|
1390
1390
|
transition: 0.2s;
|
|
1391
1391
|
width: 36px;
|
|
1392
1392
|
`}
|
|
1393
|
-
`,
|
|
1393
|
+
`,ta=s.dt.div`
|
|
1394
1394
|
${({theme:e})=>`
|
|
1395
1395
|
background-color: ${e.palette.white};
|
|
1396
1396
|
border-radius: 50%;
|
|
@@ -1401,7 +1401,7 @@
|
|
|
1401
1401
|
width: ${e.spacing[1]};
|
|
1402
1402
|
z-index: 1;
|
|
1403
1403
|
`}
|
|
1404
|
-
`,
|
|
1404
|
+
`,ia=s.dt.label`
|
|
1405
1405
|
display: inline-block;
|
|
1406
1406
|
|
|
1407
1407
|
input {
|
|
@@ -1428,22 +1428,22 @@
|
|
|
1428
1428
|
background-color: ${({theme:e})=>e.palette.gray[200]};
|
|
1429
1429
|
border: 1px solid ${({theme:e})=>e.palette.gray[200]};
|
|
1430
1430
|
}
|
|
1431
|
-
`,Bt=u.forwardRef(function({defaultChecked:i,disabled:n=!1,justify:a,name:r,leftDescription:o,leftDescriptionMinWidth:l,rightDescription:c,...d},p){const g=i===!0?"on":"off",x=typeof o=="object"&&o.on&&o.off?o[g]:o,f=u.useCallback(h=>{h.stopPropagation()},[]);return t.jsxs(
|
|
1431
|
+
`,Bt=u.forwardRef(function({defaultChecked:i,disabled:n=!1,justify:a,name:r,leftDescription:o,leftDescriptionMinWidth:l,rightDescription:c,...d},p){const g=i===!0?"on":"off",x=typeof o=="object"&&o.on&&o.off?o[g]:o,f=u.useCallback(h=>{h.stopPropagation()},[]);return t.jsxs(y,{alignItems:"center",display:"flex",fontSize:"14px",gap:.75,justify:a,children:[t.jsx(y,{minWidth:l,children:x}),t.jsxs(ia,{onClick:f,role:"switch",children:[t.jsx("input",{...d,"aria-disabled":n,"aria-label":r,checked:i===!0,disabled:n,name:r,ref:p,type:"checkbox"}),t.jsx(ie,{"aria-label":"Toggle Switch",id:`${r}Toggle`,children:t.jsx(ta,{})})]}),c]})}),na=({id:e,title:i,toggles:n,minWidth:a="auto",height:r="auto"})=>{const o=s.nt();return t.jsxs(y,{alignItems:"center",bgColor:o.palette.white,border:`1px solid ${o.palette.gray[200]}`,borderRadius:o.spacing[.25],display:"flex",flexDirection:"column",gap:.5,height:r,justify:"center",minHeight:"100px",minWidth:a,padding:[1.25,1.25,1.25,1.25],children:[t.jsx(ze,{id:e,title:i}),t.jsx(y,{display:"flex",flexDirection:"column",gap:.5,minHeight:"40px",width:"100%",children:n.map(l=>t.jsx(Bt,{...l},`$card-toggle-${l.name}`))})]})},aa=s.dt.div`
|
|
1432
1432
|
position: relative;
|
|
1433
1433
|
margin: auto;
|
|
1434
1434
|
overflow: hidden;
|
|
1435
|
-
`,
|
|
1435
|
+
`,ra=s.dt.div`
|
|
1436
1436
|
display: flex;
|
|
1437
1437
|
transition: transform 0.5s ease-in-out;
|
|
1438
1438
|
transform: translateX(
|
|
1439
1439
|
${({$currentIndex:e})=>-e*100}%
|
|
1440
1440
|
);
|
|
1441
|
-
`,
|
|
1441
|
+
`,oa=s.dt.div`
|
|
1442
1442
|
align-items: center;
|
|
1443
1443
|
display: flex;
|
|
1444
1444
|
justify-content: center;
|
|
1445
1445
|
min-width: 100%;
|
|
1446
|
-
`,
|
|
1446
|
+
`,sa=s.dt.button`
|
|
1447
1447
|
${({theme:e,$isActive:i})=>`
|
|
1448
1448
|
background-color: ${i?e.palette.primary[400]:e.palette.white};
|
|
1449
1449
|
border: none;
|
|
@@ -1452,13 +1452,13 @@
|
|
|
1452
1452
|
height: ${e.spacing[.75]};
|
|
1453
1453
|
width: ${e.spacing[.75]};
|
|
1454
1454
|
`}
|
|
1455
|
-
`,
|
|
1455
|
+
`,la=s.dt.div`
|
|
1456
1456
|
align-items: center;
|
|
1457
1457
|
display: flex;
|
|
1458
1458
|
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1459
1459
|
justify-content: center;
|
|
1460
1460
|
margin-top: ${({theme:e})=>e.spacing[2]};
|
|
1461
|
-
`,
|
|
1461
|
+
`,ca=({slides:e,interval:i=300})=>{const{cycle:n,setCycle:a,setProgress:r}=Pt(i,e.length),o=u.useCallback(l=>()=>{a(l),r(0)},[a,r]);return t.jsxs(aa,{"aria-roledescription":"carousel",children:[t.jsx(ra,{$currentIndex:n,children:e.map((l,c)=>{const d=`slide-${c}`;return t.jsx(oa,{"aria-label":d,"aria-roledescription":"slide",children:l.content},d)})}),t.jsx(la,{children:e.map((l,c)=>{const d=`nav-button-${c}`;return t.jsx(sa,{$isActive:c===n,"aria-label":`Go to slide ${c+1}`,"data-testid":c===n?"active":"inactive",onClick:o(c)},d)})})]})},_t=s.dt.div`
|
|
1462
1462
|
${({theme:e})=>`
|
|
1463
1463
|
background-color: ${e.palette.gray[100]};
|
|
1464
1464
|
border-radius: ${e.spacing[.25]};
|
|
@@ -1510,7 +1510,7 @@
|
|
|
1510
1510
|
padding-bottom: unset;
|
|
1511
1511
|
}
|
|
1512
1512
|
`}
|
|
1513
|
-
`,
|
|
1513
|
+
`,da=s.dt.div`
|
|
1514
1514
|
${({theme:e})=>`
|
|
1515
1515
|
align-items: end;
|
|
1516
1516
|
background-color: ${e.palette.gray[100]};
|
|
@@ -1528,10 +1528,10 @@
|
|
|
1528
1528
|
background-color: ${e.palette.gray[200]};
|
|
1529
1529
|
}
|
|
1530
1530
|
`}
|
|
1531
|
-
`,Ot=({noCodeMessage:e="Code snippet not available",snippet:i,specific:n})=>(u.useEffect(()=>{s.prismExports.highlightAll()},[]),t.jsx(_t,{"data-private":!0,children:t.jsx("pre",{className:"line-highlight","data-line-offset":s._.isNil(i)||s._.isString(i)?0:i.offset+.7,...n!==void 0?{"data-line":String(Number(n))}:{},children:s._.isNil(i)||s._.isString(i)||s._.isEmpty(i.content)?t.jsx("div",{className:"no-data",children:t.jsx("p",{children:e})}):t.jsx("code",{className:"language-none",children:i.content})})})),
|
|
1531
|
+
`,Ot=({noCodeMessage:e="Code snippet not available",snippet:i,specific:n})=>(u.useEffect(()=>{s.prismExports.highlightAll()},[]),t.jsx(_t,{"data-private":!0,children:t.jsx("pre",{className:"line-highlight","data-line-offset":s._.isNil(i)||s._.isString(i)?0:i.offset+.7,...n!==void 0?{"data-line":String(Number(n))}:{},children:s._.isNil(i)||s._.isString(i)||s._.isEmpty(i.content)?t.jsx("div",{className:"no-data",children:t.jsx("p",{children:e})}):t.jsx("code",{className:"language-none",children:i.content})})})),pa=({noCodeMessage:e="Code snippet not available",snippet:i,specific:n,variant:a="normal"})=>{const r=s.nt(),[o,l]=u.useState(!1),[c,d]=u.useState(!0),p=u.useCallback(()=>{l(h=>!h)},[l]),g=u.useCallback(()=>{if(s._.isNil(i)||s._.isEmpty(i)||!s._.isString(i))return d(!1),e;const h=i.split(`
|
|
1532
1532
|
`);return h.length>8&&!o?`${[...h].splice(0,7).join(`
|
|
1533
1533
|
`)}
|
|
1534
|
-
${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(async()=>{await navigator.clipboard.writeText(x)},[x]);return a==="location"?t.jsx(Ot,{noCodeMessage:e,snippet:i,specific:n}):t.jsxs(
|
|
1534
|
+
${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(async()=>{await navigator.clipboard.writeText(x)},[x]);return a==="location"?t.jsx(Ot,{noCodeMessage:e,snippet:i,specific:n}):t.jsxs(y,{bgColor:r.palette.gray[100],borderRadius:"4px",display:"inline-flex",minWidth:"565px",position:"relative",children:[t.jsx(_t,{"data-private":!0,children:t.jsx("pre",{children:t.jsx("code",{className:"language-none",children:x})})}),t.jsxs(da,{children:[t.jsx(B,{height:r.spacing[2.5],icon:"copy",iconColor:r.palette.gray[700],iconSize:"xs",iconType:"fa-light",onClick:f,variant:"ghost",width:r.spacing[2.5]}),c?t.jsxs(D,{onClick:p,variant:"ghost",children:[o?"Show Less":"Show more",t.jsx(C,{icon:o?"chevron-up":"chevron-down",iconColor:r.palette.gray[700],iconSize:"xxs",iconType:"fa-light",ml:.25,onClick:f})]}):!1]})]})},{getVariant:ga}=Y(e=>({fixed:`
|
|
1535
1535
|
width: 300px;
|
|
1536
1536
|
padding: ${e.spacing[1.25]};
|
|
1537
1537
|
overflow: hidden auto;
|
|
@@ -1559,7 +1559,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1559
1559
|
display: flex;
|
|
1560
1560
|
justify-content: center;
|
|
1561
1561
|
z-index: 99999;
|
|
1562
|
-
`,$e=s.dt(
|
|
1562
|
+
`,$e=s.dt(y)`
|
|
1563
1563
|
${({theme:e,$size:i})=>`
|
|
1564
1564
|
background-color: ${e.palette.white};
|
|
1565
1565
|
border: 1px solid ${e.palette.gray[200]};
|
|
@@ -1584,9 +1584,9 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1584
1584
|
}
|
|
1585
1585
|
}
|
|
1586
1586
|
|
|
1587
|
-
${
|
|
1587
|
+
${ga(e,i)}
|
|
1588
1588
|
`}
|
|
1589
|
-
`,
|
|
1589
|
+
`,ua=s.dt.div`
|
|
1590
1590
|
${({theme:e})=>`
|
|
1591
1591
|
background-color: ${e.palette.white};
|
|
1592
1592
|
border-bottom: 1px solid ${e.palette.gray[200]};
|
|
@@ -1604,7 +1604,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1604
1604
|
padding: 0;
|
|
1605
1605
|
}
|
|
1606
1606
|
`}
|
|
1607
|
-
`,
|
|
1607
|
+
`,xa=s.dt.div`
|
|
1608
1608
|
border-radius: ${({theme:e})=>`${e.spacing[.25]} ${e.spacing[.25]} 0 0`};
|
|
1609
1609
|
display: block;
|
|
1610
1610
|
overflow: unset;
|
|
@@ -1619,7 +1619,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1619
1619
|
overflow: auto;
|
|
1620
1620
|
max-height: 60vh;
|
|
1621
1621
|
}
|
|
1622
|
-
`,
|
|
1622
|
+
`,fa=s.dt.div.attrs({className:"flex items-center justify-between"})``,ha=s.dt.div`
|
|
1623
1623
|
${({theme:e})=>`
|
|
1624
1624
|
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
1625
1625
|
display: flex;
|
|
@@ -1650,7 +1650,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1650
1650
|
margin-right: 0;
|
|
1651
1651
|
}
|
|
1652
1652
|
`}
|
|
1653
|
-
|
|
1653
|
+
`,ba=s.dt.div`
|
|
1654
1654
|
img {
|
|
1655
1655
|
margin: 0 calc(-${({theme:e})=>e.spacing[1.25]} - 1px)
|
|
1656
1656
|
${({theme:e})=>e.spacing[1.25]};
|
|
@@ -1666,7 +1666,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1666
1666
|
margin-right: 0;
|
|
1667
1667
|
`:""}
|
|
1668
1668
|
}
|
|
1669
|
-
`,Ht=({alert:e,modalRef:i,confirmButton:n=void 0,cancelButton:a=void 0})=>{const{close:r}=i,o=u.useCallback(()=>{a!=null&&a.onClick&&a.onClick(),r()},[a,r]),l=u.useCallback(()=>{n!=null&&n.onClick&&n.onClick(),r()},[n,r]);return[n,a].some(d=>!s.lodashExports.isEmpty(d))?t.jsxs(
|
|
1669
|
+
`,Ht=({alert:e,modalRef:i,confirmButton:n=void 0,cancelButton:a=void 0})=>{const{close:r}=i,o=u.useCallback(()=>{a!=null&&a.onClick&&a.onClick(),r()},[a,r]),l=u.useCallback(()=>{n!=null&&n.onClick&&n.onClick(),r()},[n,r]);return[n,a].some(d=>!s.lodashExports.isEmpty(d))?t.jsxs(y,{display:"flex",flexDirection:"column",gap:.625,position:"sticky",px:1.25,py:1.25,children:[e,t.jsx(ha,{children:t.jsxs("div",{children:[a&&t.jsx(D,{onClick:o,variant:"tertiary",width:"100%",children:a.text}),n&&t.jsx(D,{onClick:l,variant:"primary",width:"100%",children:n.text})]})})]}):null},Vt=({title:e,description:i,modalRef:n,otherActions:a,onClose:r})=>{const o=s.nt(),l=u.useCallback(()=>{r==null||r(),n.close()},[n,r]);return u.useEffect(()=>{const c=d=>{d.key==="Escape"&&l()};return window.addEventListener("keydown",c),()=>{window.removeEventListener("keydown",c)}},[l]),t.jsxs(xa,{children:[t.jsxs(fa,{children:[typeof e=="string"?t.jsx(A,{fontWeight:"bold",lineSpacing:1.75,mr:1,size:"sm",children:e}):e,t.jsxs("div",{className:"items-center flex gap-3",children:[a,t.jsx(B,{icon:"close",iconColor:o.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:l,px:.25,py:.25,variant:"ghost"})]})]}),i&&s.lodashExports.isString(i)&&!s.lodashExports.isEmpty(i)?t.jsx(k,{mt:.5,size:"sm",children:i}):t.jsx(re,{display:"block",mt:.5,size:"sm",children:i})]})},$a=s.dt.button`
|
|
1670
1670
|
${({theme:e})=>`
|
|
1671
1671
|
align-items: center;
|
|
1672
1672
|
color: ${e.palette.gray[500]};
|
|
@@ -1686,7 +1686,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1686
1686
|
color: ${e.palette.gray[800]};
|
|
1687
1687
|
}
|
|
1688
1688
|
`}
|
|
1689
|
-
`,
|
|
1689
|
+
`,ya=s.dt.div`
|
|
1690
1690
|
${({theme:e})=>`
|
|
1691
1691
|
align-items: center;
|
|
1692
1692
|
border-bottom: 2px solid ${e.palette.gray[200]};
|
|
@@ -1695,11 +1695,11 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1695
1695
|
height: ${e.spacing[3]};
|
|
1696
1696
|
width: max-content;
|
|
1697
1697
|
`}
|
|
1698
|
-
`,
|
|
1698
|
+
`,ma=(e,i,n)=>n?i==="secondary"?`3px solid ${e.palette.primary[100]}`:`3px solid ${e.palette.primary[500]}`:"unset",wa=s.dt.div`
|
|
1699
1699
|
display: flex;
|
|
1700
1700
|
flex-direction: row;
|
|
1701
1701
|
gap: ${({theme:e})=>e.spacing[.25]};
|
|
1702
|
-
border-bottom: ${({theme:e,$borderButton:i,$variant:n})=>
|
|
1702
|
+
border-bottom: ${({theme:e,$borderButton:i,$variant:n})=>ma(e,n,i)};
|
|
1703
1703
|
align-items: center;
|
|
1704
1704
|
padding: ${({theme:e})=>e.spacing[.625]}
|
|
1705
1705
|
${({theme:e})=>e.spacing[.5]};
|
|
@@ -1738,7 +1738,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1738
1738
|
}
|
|
1739
1739
|
}
|
|
1740
1740
|
}
|
|
1741
|
-
`,
|
|
1741
|
+
`,ja=s.dt(Q)`
|
|
1742
1742
|
${({theme:e,$variant:i})=>`
|
|
1743
1743
|
align-items: center;
|
|
1744
1744
|
background: ${i==="error"?e.palette.primary[400]:e.palette.warning[500]};
|
|
@@ -1751,14 +1751,14 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1751
1751
|
width: ${e.spacing[.5]};
|
|
1752
1752
|
height: ${e.spacing[.5]};
|
|
1753
1753
|
`}
|
|
1754
|
-
`,
|
|
1754
|
+
`,va=s.dt.div`
|
|
1755
1755
|
align-items: center;
|
|
1756
1756
|
color: ${({theme:e})=>e.palette.white};
|
|
1757
1757
|
display: flex;
|
|
1758
1758
|
font-size: 6px;
|
|
1759
1759
|
font-weight: ${({theme:e})=>e.typography.weight.bold};
|
|
1760
1760
|
justify-content: center;
|
|
1761
|
-
`,
|
|
1761
|
+
`,Mt=u.forwardRef(function({numberIndicator:i,show:n,variant:a="error",...r},o){return t.jsx(ja,{$variant:a,className:n?"flex":"hidden","data-testid":"notification-sign",ref:o,...r,children:i&&t.jsx(va,{children:i<=9?i:9})})}),Gt=({end:e=!1,label:i,id:n,isActive:a=!1,link:r,notificationSign:o,onClick:l,tooltip:c="",variant:d="primary",tag:p})=>{const{pathname:g}=Le.useLocation(),x=a||(d==="primary"?g.includes(r):g.endsWith(r));return t.jsx(M,{display:"flex",id:`${n}-tooltip`,tip:c,children:t.jsxs(wa,{$borderButton:x,$variant:d,children:[t.jsxs(Le.NavLink,{end:e,id:n,onClick:l,to:r,children:[i,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})]}),p===void 0?null:t.jsx(q,{tagLabel:`${p}`,variant:"default"})]})})},Je=({items:e,borders:i=!0,box:n=!1,variant:a="primary"})=>{const r=s.nt();return t.jsx(y,{alignItems:"center",bgColor:r.palette.white,border:n?"1px solid":void 0,borderBottom:i?`1px solid ${r.palette.gray[300]}`:void 0,borderColor:n?r.palette.gray[200]:void 0,borderRadius:n?r.spacing[.25]:void 0,display:"inline-flex",gap:.25,id:"tablist",padding:n?[0,0,0,0]:void 0,pl:i?1.25:void 0,pr:i?1.25:void 0,role:"tablist",width:n?"max-content":"100%",children:e.map(({end:o,id:l,isActive:c,link:d,label:p,notificationSign:g,onClick:x,tag:f,tooltip:h})=>t.jsx(Gt,{end:o,id:l,isActive:c,label:p,link:d,notificationSign:g,onClick:x,tag:f,tooltip:h,variant:a},l))})},J=u.forwardRef(function({color:i=S.palette.gray[100],mt:n=.5,mb:a=.5,width:r,...o},l){return t.jsx(y,{as:"hr",borderTop:`1px solid ${i}`,mb:a,mt:n,ref:l,width:r??"100%",...o})}),ka=s.dt.li`
|
|
1762
1762
|
${({theme:e})=>`
|
|
1763
1763
|
align-items: center;
|
|
1764
1764
|
background-color: ${e.palette.white};
|
|
@@ -1805,7 +1805,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1805
1805
|
background-color: ${e.palette.gray[100]};
|
|
1806
1806
|
}
|
|
1807
1807
|
`}
|
|
1808
|
-
`,
|
|
1808
|
+
`,Ut=s.dt.ul`
|
|
1809
1809
|
${({theme:e})=>`
|
|
1810
1810
|
background-color: ${e.palette.white};
|
|
1811
1811
|
border: 1px solid ${e.palette.gray[200]};
|
|
@@ -1816,7 +1816,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1816
1816
|
min-width: 240px;
|
|
1817
1817
|
padding: ${e.spacing[.25]} 0 ${e.spacing[.25]} 0;
|
|
1818
1818
|
`}
|
|
1819
|
-
`,ye=({children:e,disabled:i=!1,icon:n,iconType:a="fa-light",href:r,onClick:o,onClickIcon:l,onKeyDown:c,rightIcon:d,selected:p=!1,value:g,...x})=>{const h=s.nt().palette.gray[i?300:800]
|
|
1819
|
+
`,ye=({children:e,disabled:i=!1,icon:n,iconType:a="fa-light",href:r,onClick:o,onClickIcon:l,onKeyDown:c,rightIcon:d,selected:p=!1,value:g,...x})=>{const h=s.nt().palette.gray[i?300:800],$=i?u.Children.map(e,b=>u.isValidElement(b)?u.cloneElement(b,{disabled:i,...b.props}):b):e;return t.jsxs(ka,{"aria-disabled":i,"aria-label":g,"aria-selected":p,"data-testid":g,onClick:o,onKeyDown:c,value:g,...x,children:[n!==void 0||g!==void 0?t.jsxs(y,{alignItems:"center",display:"flex",gap:.625,children:[n?t.jsx(C,{disabled:i,icon:n,iconColor:h,iconSize:"xxs",iconType:a}):null,r===void 0?$:t.jsx(X,{href:r,children:$})]}):null,p||d?t.jsx(C,{disabled:i,icon:d??"check",iconClass:"selected",iconColor:h,iconSize:"xs",iconType:a,onClick:l}):null]})},Ca=s.dt(ye)`
|
|
1820
1820
|
margin-top: 10px;
|
|
1821
1821
|
border: 1px solid ${({theme:e})=>e.palette.gray[300]};
|
|
1822
1822
|
border-radius: 4px;
|
|
@@ -1834,7 +1834,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1834
1834
|
&[aria-selected="true"]:not([aria-disabled="true"]) {
|
|
1835
1835
|
background-color: unset;
|
|
1836
1836
|
}
|
|
1837
|
-
`,
|
|
1837
|
+
`,Yt=({items:e,onReorder:i,title:n,description:a,onClickClose:r})=>{const o=u.useCallback(l=>()=>{r(l)},[r]);return t.jsxs(s.ReorderGroup,{as:"div",axis:"y",layoutScroll:!0,onReorder:i,style:{height:"max-content",padding:"1.25rem 0",width:"45%"},values:e,children:[t.jsxs(y,{display:"flex",gap:.25,children:[t.jsx(A,{display:"flex",size:"xs",children:n}),t.jsx(q,{priority:"high",tagLabel:String(e.filter(l=>l.visible).length),variant:"error"})]}),t.jsx(k,{size:"sm",children:a}),e.map(l=>l.visible?t.jsx(s.ReorderItem,{as:"div",dragListener:!l.locked,item:l.name,value:l,children:t.jsx(Ca,{disabled:l.locked,icon:"grid-2",label:l.name,onClickIcon:l.locked?void 0:o(l.id),rightIcon:l.locked?"lock":"close",selected:l.visible,value:l.name,children:l.name})},l.name):void 0)]})},Sa=s.dt(ye)`
|
|
1838
1838
|
padding: 7px 8px;
|
|
1839
1839
|
|
|
1840
1840
|
&[aria-selected="true"] {
|
|
@@ -1850,7 +1850,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1850
1850
|
display: none;
|
|
1851
1851
|
}
|
|
1852
1852
|
}
|
|
1853
|
-
`,
|
|
1853
|
+
`,qt=e=>e.reduce((n,a)=>a.group?n[a.group]?{...n,[a.group]:[...n[a.group],a]}:{...n,[a.group]:[a]}:n,{}),za=s.dt.input`
|
|
1854
1854
|
${({theme:e})=>`
|
|
1855
1855
|
background: none;
|
|
1856
1856
|
border: none !important;
|
|
@@ -1880,7 +1880,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1880
1880
|
display:none;
|
|
1881
1881
|
}
|
|
1882
1882
|
`}
|
|
1883
|
-
`,
|
|
1883
|
+
`,Ia=s.dt.div`
|
|
1884
1884
|
${({theme:e})=>`
|
|
1885
1885
|
align-items: center;
|
|
1886
1886
|
background-color: ${e.palette.white};
|
|
@@ -1900,13 +1900,13 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1900
1900
|
border: 2px solid ${e.palette.black};
|
|
1901
1901
|
}
|
|
1902
1902
|
`}
|
|
1903
|
-
`,
|
|
1903
|
+
`,Ta=s.dt.div`
|
|
1904
1904
|
${({theme:e})=>`
|
|
1905
1905
|
background-color: ${e.palette.white};
|
|
1906
1906
|
border-radius: ${e.spacing[.5]};
|
|
1907
1907
|
width: 250px;
|
|
1908
1908
|
`}
|
|
1909
|
-
`,se=u.forwardRef(function({name:i,smallSearch:n=!1,onClear:a,value:r,...o},l){const c=s.nt(),[d,p]=u.useState(!1),{refs:g,floatingStyles:x}=s.useFloating$1(),f=u.useCallback(()=>{p(b=>!b)},[]),h=u.useCallback(b=>{b.key==="Enter"&&b.preventDefault()},[]);ee(g.floating.current,()=>{p(!1)},!0);const
|
|
1909
|
+
`,se=u.forwardRef(function({name:i,smallSearch:n=!1,onClear:a,value:r,...o},l){const c=s.nt(),[d,p]=u.useState(!1),{refs:g,floatingStyles:x}=s.useFloating$1(),f=u.useCallback(()=>{p(b=>!b)},[]),h=u.useCallback(b=>{b.key==="Enter"&&b.preventDefault()},[]);ee(g.floating.current,()=>{p(!1)},!0);const $=t.jsxs(Ia,{children:[t.jsx(C,{icon:"magnifying-glass",iconColor:c.palette.gray[700],iconSize:"xs",iconType:"fa-light"}),t.jsx(za,{...o,id:i,name:i,onKeyDown:h,ref:l,type:"search",value:r}),!s.lodashExports.isEmpty(r)&&t.jsx(B,{icon:"xmark",iconColor:c.palette.gray[300],iconSize:"xs",iconType:"fa-light",onClick:a,px:.25,py:.25,type:"reset",variant:"ghost"})]});return n?t.jsxs(u.Fragment,{children:[t.jsx(B,{border:`1px solid ${c.palette.gray[300]} !important`,icon:"magnifying-glass",iconSize:"xs",iconType:"fa-light",onClick:f,ref:g.setReference,variant:"ghost"}),d?t.jsx(Ta,{ref:g.setFloating,style:x,children:$}):void 0]}):$}),Kt=({columns:e,formId:i,onChangeHandler:n,variant:a})=>{const r=u.useRef(null),[o,l]=u.useState([]),[c,d]=u.useState(""),p=u.useCallback(x=>{const{value:f}=x.target;d(f)},[]),g=u.useCallback(()=>{r.current&&(r.current.reset(),d(""))},[r]);return u.useEffect(()=>{l(e.filter(x=>{var f;return a==="grouped"?x.name.toLowerCase().includes(c.toLowerCase())||((f=x.group)==null?void 0:f.includes(c.toLowerCase())):x.name.toLowerCase().includes(c.toLowerCase())}))},[e,c,a]),a==="grouped"?t.jsxs(y,{display:"flex",flexDirection:"column",gap:.625,height:"100%",id:"columns-buttons",py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:r,children:t.jsx(se,{name:"search",onChange:p,onClear:g,value:c})}),t.jsx("form",{"data-testid":i,id:i,onReset:g,style:{display:"flex",flexDirection:"column",gap:"0.625rem"},children:Object.entries(qt(o)).map(([x,f],h)=>{const $=`li-checkbox${x}`;return t.jsx(Lt,{checkboxesName:x,defaultCollapsed:h===0,onChange:n,options:f,title:x},$)})})]}):t.jsxs(y,{height:"100%",id:"columns-buttons",py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:r,children:t.jsx(se,{name:"search",onChange:p,onClear:g,value:c})}),t.jsx("form",{"data-testid":i,id:i,onReset:g,style:{paddingTop:"0.625rem"},children:o.map(x=>{const f=`li-checkbox-${x.name}`;return t.jsx(Sa,{selected:x.visible,value:f,width:"content",children:t.jsx(Ne,{checked:x.visible,disabled:x.locked,label:x.name,name:x.name,onChange:n,value:x.name})},f)})})]})},Fa=({_containerId:e="portals",title:i,modalRef:n,variant:a})=>{const r=s.nt(),o=u.useRef(null),[l,c]=u.useState(void 0),d=u.useCallback(x=>{const{checked:f,value:h}=x.target,$=n.columns.map(b=>{var m;return b.name===h?((m=b.toggleVisibility)==null||m.call(b,f),{...b,visible:f}):b});n.setColumns($)},[n]),p=u.useCallback(x=>{const f=n.columns.map(h=>{var $;return h.id===x?(($=h.toggleVisibility)==null||$.call(h,!1),{...h,visible:!1}):h});n.setColumns(f)},[n]),g=u.useCallback(()=>{var f;const x=(f=o.current)==null?void 0:f.scrollHeight;l!==x&&c(x)},[l]);return n.isOpen?U.createPortal(t.jsx(be,{"aria-label":n.name,"aria-modal":"true",children:t.jsxs($e,{$size:"md",flexDirection:"column",children:[t.jsxs(y,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(A,{size:"sm",children:i}),t.jsx(B,{icon:"close",iconColor:r.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:n.close,px:.25,py:.25,variant:"ghost"})]}),t.jsx(J,{mb:0,mt:0}),t.jsxs(y,{display:"flex",gap:1.25,onScroll:g,px:1.25,ref:o,scroll:"y",width:"100%",children:[t.jsx(Kt,{columns:n.columns,formId:"columns-visibility",onChangeHandler:d,variant:a}),t.jsx(y,{borderLeft:`2px solid ${r.palette.gray[100]}`,height:l?`${l}px`:"auto"}),t.jsx(Yt,{description:"Click and drag to reorder the columns",items:n.columns,onClickClose:p,onReorder:n.setColumns,title:"Reorder columns"})]}),t.jsx(J,{mb:0,mt:0}),t.jsxs(y,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(D,{disabled:!n.hasChanged,form:"columns-visibility",id:"columns-modal-cancel",justify:"center",onClick:n.resetToDefault,type:"reset",variant:"tertiary",children:"Reset to default"}),t.jsx(D,{id:"columns-modal-submit",justify:"center",onClick:n.close,variant:"primary",children:"Save"})]})]})}),document.getElementById(e)??document.body):t.jsx("div",{})},Na=s.dt(ye)`
|
|
1910
1910
|
padding: 8px;
|
|
1911
1911
|
min-width: unset;
|
|
1912
1912
|
`,dt=s.dt(ye)`
|
|
@@ -1916,10 +1916,10 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1916
1916
|
svg.fa-check {
|
|
1917
1917
|
border-radius: 2px;
|
|
1918
1918
|
}
|
|
1919
|
-
`,
|
|
1919
|
+
`,Xt=s.dt(B)`
|
|
1920
1920
|
background-color: ${({theme:e})=>e.palette.white};
|
|
1921
1921
|
color: ${({theme:e})=>e.palette.gray[400]};
|
|
1922
|
-
`,Jt=({control:e,option:i,register:n,setValue:a})=>{var r,o,l,c,d;switch(i.type){case"checkboxes":return t.jsx("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:(r=i.options)==null?void 0:r.map(g=>t.jsx(dt,{value:g.value,width:"content",children:t.jsx(Ne,{...n("checkbox"),label:g.label,value:g.value})},`li-checkbox-${g.value}`))});case"radioButton":return t.jsx("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:(o=i.options)==null?void 0:o.map(g=>t.jsx(dt,{value:g.value,width:"content",children:t.jsx(Ze,{...n("radio"),label:g.label,value:g.value})},`li-radio-${g.value}`))});case"select":return t.jsx(jt,{control:e,items:((l=i.options)==null?void 0:l.map(g=>({name:g.label??"",value:g.value})))??[],label:i.label,name:`text.${String(i.key)}-${i.filterFn??"caseInsensitive"}`,value:i.value});case"text":const p=`text.${String(i.key)}-${i.filterFn??"caseInsensitive"}`;return t.jsx(Xe,{label:i.label,name:p,register:n,value:i.value});case"numberRange":return t.jsx(Dt,{label:i.label,name:String(i.key),propsMax:{placeholder:"Max",register:n,name:"maxValue",value:i.maxValue,setValue:a},propsMin:{placeholder:"Min",register:n,name:"minValue",value:i.minValue,setValue:a}});case"dateRange":return t.jsx(Nt,{label:i.label,name:String(i.key),propsMax:{name:"maxValue",value:(c=i.maxValue)==null?void 0:c.toString()},propsMin:{name:"minValue",value:(d=i.minValue)==null?void 0:d.toString()},register:n,setValue:a});default:return t.jsx("div",{})}},Qt=({control:e,items:i,register:n,setValue:a})=>t.jsx(t.Fragment,{children:i.map((r,o)=>{const l=`${r.type}-${r.value}-${r.filterFn??"default"}`;return t.jsxs("div",{children:[t.jsx(Jt,{control:e,option:r,register:n,setValue:a}),o<i.length-1&&t.jsx("hr",{style:{margin:"1.25rem 0 0.625rem"}})]},l)})}),ei=e=>{var c,d,p,g,x;const[i,n]=u.useState([...e]),{control:a,register:r,handleSubmit:o,setValue:l}=s.useForm({defaultValues:{checkbox:e.filter(f=>f.type==="checkboxes").flatMap(f=>{var h;return((h=f.options)==null?void 0:h.filter(y=>y.checked).map(y=>y.value))??[]}),radio:((p=(d=(c=e.find(f=>f.type==="radioButton"))==null?void 0:c.options)==null?void 0:d.find(({checked:f})=>f))==null?void 0:p.value)??"",text:e.filter(f=>["text","select"].includes(f.type)).reduce((f,h)=>({...f,[`${String(h.key)}-${h.filterFn??"caseInsensitive"}`]:h.value??""}),{}),minValue:(g=e.find(f=>["numberRange","dateRange"].includes(f.type)))==null?void 0:g.minValue,maxValue:(x=e.find(f=>["numberRange","dateRange"].includes(f.type)))==null?void 0:x.maxValue}});return{control:a,items:i,setItems:n,register:r,handleSubmit:o,setValue:l}},Ra=(e,i)=>{var n,a,r,o,l;i("checkbox",e.filter(c=>c.type==="checkboxes").flatMap(c=>{var d;return((d=c.options)==null?void 0:d.filter(p=>p.checked).map(p=>p.value))??[]})),i("radio",((r=(a=(n=e.find(c=>c.type==="radioButton"))==null?void 0:n.options)==null?void 0:a.find(({checked:c})=>c))==null?void 0:r.value)??""),i("text",e.filter(c=>["text","select"].includes(c.type)).reduce((c,d)=>({...c,[`${String(d.key)}-${d.filterFn??"caseInsensitive"}`]:d.value??""}),{})),i("minValue",(o=e.find(c=>["numberRange","dateRange"].includes(c.type)))==null?void 0:o.minValue),i("maxValue",(l=e.find(c=>["numberRange","dateRange"].includes(c.type)))==null?void 0:l.maxValue)},Da=(e,i)=>e.map(n=>{var a;return n.type==="checkboxes"?{...n,options:(a=n.options)==null?void 0:a.filter(r=>{var o;return((o=r.label)==null?void 0:o.toLowerCase().includes(i.toLowerCase()))??r.value.toLowerCase().includes(i.toLowerCase())})}:n}),_e=({options:e,onSubmit:i,id:n,open:a})=>{const{control:r,items:o,setItems:l,register:c,handleSubmit:d,setValue:p}=ei(e),g=e.some(y=>y.type==="checkboxes"),x=u.useCallback(y=>{const{value:b}=y.target,m=Da(e,b);l(m)},[e,l]),f=u.useCallback(y=>{i&&i(y)},[i]);u.useEffect(()=>{l(e),Ra(e,p)},[e,l,p]);const h=t.jsx(be,{$bgColor:"transparent",children:t.jsxs($e,{$size:"fixed",flexDirection:"column",gap:1.25,style:{overflow:"hidden"},children:[g&&t.jsx(se,{onChange:x}),t.jsxs("form",{id:n,onSubmit:d(f),children:[t.jsx(Qt,{control:r,items:o,register:c,setValue:p}),t.jsx(R,{mt:1,type:"submit",children:"Apply"})]})]})});return a?U.createPortal(h,document.getElementById("portals")??document.body):t.jsx("div",{})},Se=({options:e,variant:i,onApplyFilters:n})=>{const a=s.nt(),[r,o]=u.useState(e),[l,c]=u.useState([]),[d,p]=u.useState({}),[g,x]=u.useState(""),f=u.useCallback(b=>()=>{const m=r.find(w=>w.label===b);x(b),c((m==null?void 0:m.filterOptions)??[])},[r]),h=u.useCallback(b=>{const m=[...b.checkbox,...Object.values(b.text??{}),...b.radio?[b.radio]:[],...b.minValue?[String(b.minValue)]:[],...b.maxValue?[String(b.maxValue)]:[]];p(v=>m.length>0?{...v,[g]:m}:v);const w=v=>{var N,F;return{...v,options:(N=v.options)==null?void 0:N.map(D=>({...D,checked:b.checkbox.includes(D.value)||b.radio===D.value})),value:["text","select"].includes(v.type)?((F=b.text)==null?void 0:F[`${String(v.key)}-${v.filterFn??"caseInsensitive"}`])??v.value:v.value,minValue:["numberRange","dateRange"].includes(v.type)?b.minValue:v.minValue,maxValue:["numberRange","dateRange"].includes(v.type)?b.maxValue:v.maxValue}},j=v=>v.label===g?{...v,filterOptions:v.filterOptions.map(w)}:v,I=r.map(j);o(v=>v.map(j));const z=I.flatMap(({filterOptions:v})=>v);n(z),c([])},[r,n,g]),y=u.useCallback((b,m)=>{const w=`li-filter-option-${b}`;return t.jsxs(Ea,{icon:m,onClick:f(b),style:{minWidth:"180px"},value:w,width:"100%",children:[b,d[b]===void 0?void 0:t.jsx(q,{tagLabel:d[b].length.toString()})]},w)},[d,f]);return u.useEffect(()=>{const b=e.reduce((m,{label:w,filterOptions:j})=>{const I=j.flatMap(({value:N,minValue:F,maxValue:D})=>[F,D,N]).filter(Boolean),z=j.flatMap(({options:N})=>N??[]).filter(({checked:N=!1})=>N).map(({value:N})=>N),v=[...I,...z];return v.length===0?m:{...m,[w]:v}},{});p(b)},[e]),i==="grouped"?t.jsxs($,{display:"flex",flexDirection:"column",flexGrow:1,maxHeight:"360px",position:"relative",style:{columnGap:"10px"},wrap:"wrap",children:[Object.entries(Kt(e)).map(([b,m])=>t.jsxs($,{children:[t.jsx(k,{color:a.palette.gray[400],mb:.25,size:"sm",children:b}),m.map(({label:w,icon:j="filter-list"})=>y(w,j))]},b)),t.jsx(_e,{id:"filters-options",onSubmit:h,open:l.length>0,options:l})]}):t.jsxs($,{display:"flex",flexDirection:"column",flexGrow:1,maxHeight:"200px",style:{columnGap:"10px"},wrap:"wrap",children:[e.map(({label:b,icon:m="filter-list"})=>y(b,m)),t.jsx(_e,{id:"filters-options",onSubmit:h,open:l.length>0,options:l})]})},ti=({_containerId:e="portals",options:i,onApplyFilters:n,modalRef:a,variant:r})=>a.isOpen?U.createPortal(t.jsx(be,{$bgColor:"transparent","aria-label":a.name,"aria-modal":"true",children:t.jsxs($e,{$size:"fixed",alignItems:"start",display:"flex",flexDirection:"row",gap:.5,position:"relative",px:1.25,py:1.25,style:{width:"auto"},children:[t.jsx(Se,{onApplyFilters:n,options:i,variant:r}),t.jsx(Zt,{icon:"close",iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:a.close,variant:"ghost"})]})}),document.getElementById(e)??document.body):t.jsx("div",{}),La=({_containerId:e="portals",rightColumnOptions:i,leftColumnOptions:n,variant:a,onApplyFilters:r,modalRef:o})=>o.isOpen?U.createPortal(t.jsx(be,{$bgColor:"transparent","aria-label":o.name,"aria-modal":"true",children:t.jsxs($e,{$size:"lg",alignItems:"start",flexDirection:"row",gap:1,position:"relative",px:1.25,py:1.25,children:[t.jsxs($,{display:"flex",flexGrow:1,gap:1,justify:"space-between",children:[t.jsx(Se,{onApplyFilters:r,options:n,variant:a}),t.jsx(Se,{onApplyFilters:r,options:i,variant:a})]}),t.jsx(Zt,{icon:"close",iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:o.close,variant:"ghost"})]})}),document.getElementById(e)??document.body):t.jsx("div",{});function Pa(e){if(e)return e}function Wa(e){if(!e||e.length===0)return;const i=e.filter(a=>a.checked).map(a=>a.value);return i.length===0?void 0:i.join(", ")}function Aa(e,i){const n=s._.isEmpty(e)&&typeof e!="number"?void 0:Number(e),a=s._.isEmpty(i)&&typeof i!="number"?void 0:Number(String(i));if(!s._.isUndefined(n)&&!s._.isUndefined(a))return`${n} - ${a}`;if(!s._.isUndefined(n))return`Min ${n}`;if(!s._.isUndefined(a))return`Max ${a}`}function Ba(e,i){if(s.dayjs_minExports.extend(s.localizedFormat),!(s._.isUndefined(e)||s._.isUndefined(i))){if(e!==""&&i!=="")return`${s.dayjs(e).format("LL")} - ${s.dayjs(i).format("LL")}`;if(e!=="")return`From ${s.dayjs(e).format("LL")}`;if(i!=="")return`To ${s.dayjs(i).format("LL")}`}}function _a(e,i,n){return e==="select"?i:`${i} ${n==="includesInsensitive"?"contains":"is"}`}const ne=({filter:e,icon:i="filter-list",label:n,onClose:a,filterValue:r})=>s._.isNil(r)||s._.isEmpty(String(r))?null:t.jsx($,{pr:.25,children:t.jsx(q,{filterValues:r,icon:i,id:"remove-filter",onClose:a(e),tagLabel:`${n} `})},n),ii=({options:e,onClose:i})=>{const n=e.flatMap(a=>a.filterOptions.map(r=>{const{filterFn:o,label:l,type:c,value:d,options:p,minValue:g,maxValue:x}=r;switch(c){case"numberRange":{const f=Aa(g,x);return t.jsx(ne,{filter:r,filterValue:f,icon:a.icon,label:a.label,onClose:i},l)}case"dateRange":{const f=Ba(g==null?void 0:g.toString(),x==null?void 0:x.toString());return t.jsx(ne,{filter:r,filterValue:f,icon:a.icon,label:a.label,onClose:i},l)}case"radioButton":case"checkboxes":{const f=Wa(p);return t.jsx(ne,{filter:r,filterValue:f,icon:a.icon,label:a.label,onClose:i},l)}case void 0:case"select":case"text":default:{const f=Pa(d),h=_a(c,a.label,o);return t.jsx(ne,{filter:r,filterValue:f,icon:a.icon,label:h,onClose:i},l)}}})).filter(a=>{if(a===null)return!1;const{filterValue:r}=a.props;return!s._.isNil(r)&&!s._.isEmpty(String(r))});return t.jsx($,{display:"flex",children:n})},Oa=(e,i)=>{function n(l,c){if(c.value===""||c.value===void 0||s._.defaultTo(c.isBackFilter,!1))return!0;switch(c.filterFn){case"includesInsensitive":return String(l[c.key]).toLowerCase().includes(c.value.toLowerCase());case"caseInsensitive":case void 0:default:return String(l[c.key]).toLowerCase()===c.value.toLowerCase()}}function a(l,c){if(!c.options||c.options.length===0)return!0;const d=c.options.filter(p=>p.checked).map(p=>p.value);return d.length===0?!0:d.includes(String(l[c.key]))}function r(l,c,d){const p=d(String(l[c.key])),{minValue:g,maxValue:x}=c,f=s._.isEmpty(g)&&typeof g!="number"?void 0:d(String(g)),h=s._.isEmpty(x)&&typeof x!="number"?void 0:d(String(x));return s._.isUndefined(f)&&s._.isUndefined(h)?!0:(f??-1/0)<=p&&p<=(h??1/0)}function o(l){return i.every(c=>{if(typeof c.key=="function")return c.key(l,c.value);switch(c.type){case"radioButton":case"checkboxes":return a(l,c);case"numberRange":return r(l,c,Number);case"dateRange":return r(l,c,d=>new Date(d));case"select":case"text":default:return n(l,c)}})}return e.filter(o)},pt=e=>[...e.flatMap(({options:n})=>n).filter(n=>n==null?void 0:n.checked),...e.flatMap(n=>[n.value,n.maxValue,n.minValue]).filter(Boolean)].length,Ha=e=>{var n;const i=((n=e.options)==null?void 0:n.map(a=>({...a,checked:void 0})))??void 0;return{...e,minValue:void 0,maxValue:void 0,value:void 0,options:i}},Ma=({dataset:e,localStorageKey:i,options:n,setFilteredDataset:a,variant:r="ungrouped"})=>{const o=Ee("filters-modal"),[l,c]=u.useState([]),[d,p]=u.useState(pt(l)),g=n.map(h=>({...h,filterOptions:h.filterOptions.map(y=>l.find(m=>m.key===y.key&&m.type===y.type&&m.filterFn===y.filterFn)??{...y})})),x=u.useCallback(h=>{c([...h]),localStorage.setItem(i,JSON.stringify(h))},[c,i]),f=u.useCallback(h=>()=>{const y=l.map(b=>b.key===h.key&&b.type===h.type&&b.filterFn===h.filterFn?Ha(b):b);c(y),localStorage.setItem(i,JSON.stringify(y))},[l,i]);return u.useEffect(()=>{const h=localStorage.getItem(i),y=h?JSON.parse(h):n.flatMap(b=>b.filterOptions);c(y)},[i,n,c]),u.useEffect(()=>{a(Oa(e,l)),p(pt(l))},[e,l,a,p]),t.jsxs(u.Fragment,{children:[t.jsx($,{alignItems:"center",display:"flex",gap:.25,maxWidth:"100%",wrap:"wrap",children:t.jsxs($,{pr:.25,children:[t.jsx(R,{icon:"filter",id:"filterBtn",onClick:o.toggle,tag:d.toString(),variant:"ghost"}),t.jsx(ii,{onClose:f,options:g})]})}),t.jsx(ti,{modalRef:o,onApplyFilters:x,options:g,variant:r})]})},ni=({_portal:e=!0,alert:i,cancelButton:n=void 0,children:a=void 0,confirmButton:r=void 0,content:o=void 0,description:l=void 0,modalRef:c,otherActions:d=void 0,onClose:p=void 0,tabItems:g=void 0,title:x=void 0,size:f,id:h="modal-container"})=>{const y=s.nt(),b=t.jsx(be,{"aria-label":c.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs($e,{$size:f,"data-testid":h,flexDirection:"column",id:h,children:[!s._.isEmpty(x)&&t.jsx(Mt,{description:l,modalRef:c,onClose:p,otherActions:d,title:x}),g&&t.jsx($,{borderTop:`1px solid ${y.palette.gray[300]}`,display:"block",mb:1.25,position:"sticky",children:t.jsx(Je,{items:g})}),(s._.isObject(o)||a)&&t.jsxs(xa,{children:[a,s._.isObject(o)&&s._.isString(o.imageSrc)&&t.jsx($a,{$framed:o.imageFramed,children:t.jsx(G,{alt:"modal-img",publicId:o.imageSrc})}),s._.isObject(o)&&s._.isString(o.imageText)&&t.jsx(k,{size:"sm",children:o.imageText})]}),t.jsx(Ht,{alert:i,cancelButton:n,confirmButton:r,modalRef:c})]})});return e&&c.isOpen?U.createPortal(b,document.getElementById("portals")??document.body):c.isOpen?b:null},Va=()=>{const[e,i]=u.useState(!1),[n,a]=u.useState(),r=u.useRef(null),o=Ee("confirm-dialog-modal"),l=u.useCallback(async g=>(a(g),i(!0),new Promise(x=>{r.current=x})),[]),c=u.useCallback(()=>{var g;i(!1),a(void 0),(g=r.current)==null||g.call(r,!0)},[]),d=u.useCallback(()=>{var g;i(!1),a(void 0),(g=r.current)==null||g.call(r,!1)},[]);return u.useEffect(()=>{o.setIsOpen(e)},[e,o]),{ConfirmDialog:({id:g="confirm-dialog-modal",children:x})=>t.jsx(ni,{description:n==null?void 0:n.message,id:g,modalRef:{...o,close:d},size:"sm",title:n==null?void 0:n.title,children:t.jsxs($,{display:"flex",flexDirection:"column",children:[x,t.jsx(Vt,{id:n==null?void 0:n.id,onCancel:d,onConfirm:c})]})}),confirm:l}},Ga=s.dt.button`
|
|
1922
|
+
`,Zt=({control:e,option:i,register:n,setValue:a})=>{var r,o,l,c,d;switch(i.type){case"checkboxes":return t.jsx("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:(r=i.options)==null?void 0:r.map(g=>t.jsx(dt,{value:g.value,width:"content",children:t.jsx(Ne,{...n("checkbox"),label:g.label,value:g.value})},`li-checkbox-${g.value}`))});case"radioButton":return t.jsx("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:(o=i.options)==null?void 0:o.map(g=>t.jsx(dt,{value:g.value,width:"content",children:t.jsx(Ze,{...n("radio"),label:g.label,value:g.value})},`li-radio-${g.value}`))});case"select":return t.jsx(jt,{control:e,items:((l=i.options)==null?void 0:l.map(g=>({name:g.label??"",value:g.value})))??[],label:i.label,name:`text.${String(i.key)}-${i.filterFn??"caseInsensitive"}`,value:i.value});case"text":const p=`text.${String(i.key)}-${i.filterFn??"caseInsensitive"}`;return t.jsx(Xe,{label:i.label,name:p,register:n,value:i.value});case"numberRange":return t.jsx(Dt,{label:i.label,name:String(i.key),propsMax:{placeholder:"Max",register:n,name:"maxValue",value:i.maxValue,setValue:a},propsMin:{placeholder:"Min",register:n,name:"minValue",value:i.minValue,setValue:a}});case"dateRange":return t.jsx(Nt,{label:i.label,name:String(i.key),propsMax:{name:"maxValue",value:(c=i.maxValue)==null?void 0:c.toString()},propsMin:{name:"minValue",value:(d=i.minValue)==null?void 0:d.toString()},register:n,setValue:a});default:return t.jsx("div",{})}},Jt=({control:e,items:i,register:n,setValue:a})=>t.jsx(t.Fragment,{children:i.map((r,o)=>{const l=`${r.type}-${r.value}-${r.filterFn??"default"}`;return t.jsxs("div",{children:[t.jsx(Zt,{control:e,option:r,register:n,setValue:a}),o<i.length-1&&t.jsx("hr",{style:{margin:"1.25rem 0 0.625rem"}})]},l)})}),Qt=e=>{var c,d,p,g,x;const[i,n]=u.useState([...e]),{control:a,register:r,handleSubmit:o,setValue:l}=s.useForm({defaultValues:{checkbox:e.filter(f=>f.type==="checkboxes").flatMap(f=>{var h;return((h=f.options)==null?void 0:h.filter($=>$.checked).map($=>$.value))??[]}),radio:((p=(d=(c=e.find(f=>f.type==="radioButton"))==null?void 0:c.options)==null?void 0:d.find(({checked:f})=>f))==null?void 0:p.value)??"",text:e.filter(f=>["text","select"].includes(f.type)).reduce((f,h)=>({...f,[`${String(h.key)}-${h.filterFn??"caseInsensitive"}`]:h.value??""}),{}),minValue:(g=e.find(f=>["numberRange","dateRange"].includes(f.type)))==null?void 0:g.minValue,maxValue:(x=e.find(f=>["numberRange","dateRange"].includes(f.type)))==null?void 0:x.maxValue}});return{control:a,items:i,setItems:n,register:r,handleSubmit:o,setValue:l}},Ea=(e,i)=>{var n,a,r,o,l;i("checkbox",e.filter(c=>c.type==="checkboxes").flatMap(c=>{var d;return((d=c.options)==null?void 0:d.filter(p=>p.checked).map(p=>p.value))??[]})),i("radio",((r=(a=(n=e.find(c=>c.type==="radioButton"))==null?void 0:n.options)==null?void 0:a.find(({checked:c})=>c))==null?void 0:r.value)??""),i("text",e.filter(c=>["text","select"].includes(c.type)).reduce((c,d)=>({...c,[`${String(d.key)}-${d.filterFn??"caseInsensitive"}`]:d.value??""}),{})),i("minValue",(o=e.find(c=>["numberRange","dateRange"].includes(c.type)))==null?void 0:o.minValue),i("maxValue",(l=e.find(c=>["numberRange","dateRange"].includes(c.type)))==null?void 0:l.maxValue)},Ra=(e,i)=>e.map(n=>{var a;return n.type==="checkboxes"?{...n,options:(a=n.options)==null?void 0:a.filter(r=>{var o;return((o=r.label)==null?void 0:o.toLowerCase().includes(i.toLowerCase()))??r.value.toLowerCase().includes(i.toLowerCase())})}:n}),_e=({options:e,onSubmit:i,id:n,open:a})=>{const{control:r,items:o,setItems:l,register:c,handleSubmit:d,setValue:p}=Qt(e),g=e.some($=>$.type==="checkboxes"),x=u.useCallback($=>{const{value:b}=$.target,m=Ra(e,b);l(m)},[e,l]),f=u.useCallback($=>{i&&i($)},[i]);u.useEffect(()=>{l(e),Ea(e,p)},[e,l,p]);const h=t.jsx(be,{$bgColor:"transparent",children:t.jsxs($e,{$size:"fixed",flexDirection:"column",gap:1.25,style:{overflow:"hidden"},children:[g&&t.jsx(se,{onChange:x}),t.jsxs("form",{id:n,onSubmit:d(f),children:[t.jsx(Jt,{control:r,items:o,register:c,setValue:p}),t.jsx(D,{mt:1,type:"submit",children:"Apply"})]})]})});return a?U.createPortal(h,document.getElementById("portals")??document.body):t.jsx("div",{})},Se=({options:e,variant:i,onApplyFilters:n})=>{const a=s.nt(),[r,o]=u.useState(e),[l,c]=u.useState([]),[d,p]=u.useState({}),[g,x]=u.useState(""),f=u.useCallback(b=>()=>{const m=r.find(w=>w.label===b);x(b),c((m==null?void 0:m.filterOptions)??[])},[r]),h=u.useCallback(b=>{const m=[...b.checkbox,...Object.values(b.text??{}),...b.radio?[b.radio]:[],...b.minValue?[String(b.minValue)]:[],...b.maxValue?[String(b.maxValue)]:[]];p(v=>m.length>0?{...v,[g]:m}:v);const w=v=>{var N,F;return{...v,options:(N=v.options)==null?void 0:N.map(P=>({...P,checked:b.checkbox.includes(P.value)||b.radio===P.value})),value:["text","select"].includes(v.type)?((F=b.text)==null?void 0:F[`${String(v.key)}-${v.filterFn??"caseInsensitive"}`])??v.value:v.value,minValue:["numberRange","dateRange"].includes(v.type)?b.minValue:v.minValue,maxValue:["numberRange","dateRange"].includes(v.type)?b.maxValue:v.maxValue}},j=v=>v.label===g?{...v,filterOptions:v.filterOptions.map(w)}:v,I=r.map(j);o(v=>v.map(j));const z=I.flatMap(({filterOptions:v})=>v);n(z),c([])},[r,n,g]),$=u.useCallback((b,m)=>{const w=`li-filter-option-${b}`;return t.jsxs(Na,{icon:m,onClick:f(b),style:{minWidth:"180px"},value:w,width:"100%",children:[b,d[b]===void 0?void 0:t.jsx(q,{tagLabel:d[b].length.toString()})]},w)},[d,f]);return u.useEffect(()=>{const b=e.reduce((m,{label:w,filterOptions:j})=>{const I=j.flatMap(({value:N,minValue:F,maxValue:P})=>[F,P,N]).filter(Boolean),z=j.flatMap(({options:N})=>N??[]).filter(({checked:N=!1})=>N).map(({value:N})=>N),v=[...I,...z];return v.length===0?m:{...m,[w]:v}},{});p(b)},[e]),i==="grouped"?t.jsxs(y,{display:"flex",flexDirection:"column",flexGrow:1,maxHeight:"360px",position:"relative",style:{columnGap:"10px"},wrap:"wrap",children:[Object.entries(qt(e)).map(([b,m])=>t.jsxs(y,{children:[t.jsx(k,{color:a.palette.gray[400],mb:.25,size:"sm",children:b}),m.map(({label:w,icon:j="filter-list"})=>$(w,j))]},b)),t.jsx(_e,{id:"filters-options",onSubmit:h,open:l.length>0,options:l})]}):t.jsxs(y,{display:"flex",flexDirection:"column",flexGrow:1,maxHeight:"200px",style:{columnGap:"10px"},wrap:"wrap",children:[e.map(({label:b,icon:m="filter-list"})=>$(b,m)),t.jsx(_e,{id:"filters-options",onSubmit:h,open:l.length>0,options:l})]})},ei=({_containerId:e="portals",options:i,onApplyFilters:n,modalRef:a,variant:r})=>a.isOpen?U.createPortal(t.jsx(be,{$bgColor:"transparent","aria-label":a.name,"aria-modal":"true",children:t.jsxs($e,{$size:"fixed",alignItems:"start",display:"flex",flexDirection:"row",gap:.5,position:"relative",px:1.25,py:1.25,style:{width:"auto"},children:[t.jsx(Se,{onApplyFilters:n,options:i,variant:r}),t.jsx(Xt,{icon:"close",iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:a.close,variant:"ghost"})]})}),document.getElementById(e)??document.body):t.jsx("div",{}),Da=({_containerId:e="portals",rightColumnOptions:i,leftColumnOptions:n,variant:a,onApplyFilters:r,modalRef:o})=>o.isOpen?U.createPortal(t.jsx(be,{$bgColor:"transparent","aria-label":o.name,"aria-modal":"true",children:t.jsxs($e,{$size:"lg",alignItems:"start",flexDirection:"row",gap:1,position:"relative",px:1.25,py:1.25,children:[t.jsxs(y,{display:"flex",flexGrow:1,gap:1,justify:"space-between",children:[t.jsx(Se,{onApplyFilters:r,options:n,variant:a}),t.jsx(Se,{onApplyFilters:r,options:i,variant:a})]}),t.jsx(Xt,{icon:"close",iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:o.close,variant:"ghost"})]})}),document.getElementById(e)??document.body):t.jsx("div",{});function La(e){if(e)return e}function Pa(e){if(!e||e.length===0)return;const i=e.filter(a=>a.checked).map(a=>a.value);return i.length===0?void 0:i.join(", ")}function Wa(e,i){const n=s._.isEmpty(e)&&typeof e!="number"?void 0:Number(e),a=s._.isEmpty(i)&&typeof i!="number"?void 0:Number(String(i));if(!s._.isUndefined(n)&&!s._.isUndefined(a))return`${n} - ${a}`;if(!s._.isUndefined(n))return`Min ${n}`;if(!s._.isUndefined(a))return`Max ${a}`}function Aa(e,i){if(s.dayjs_minExports.extend(s.localizedFormat),!(s._.isUndefined(e)||s._.isUndefined(i))){if(e!==""&&i!=="")return`${s.dayjs(e).format("LL")} - ${s.dayjs(i).format("LL")}`;if(e!=="")return`From ${s.dayjs(e).format("LL")}`;if(i!=="")return`To ${s.dayjs(i).format("LL")}`}}function Ba(e,i,n){return e==="select"?i:`${i} ${n==="includesInsensitive"?"contains":"is"}`}const ne=({filter:e,icon:i="filter-list",label:n,onClose:a,filterValue:r})=>s._.isNil(r)||s._.isEmpty(String(r))?null:t.jsx(y,{pr:.25,children:t.jsx(q,{filterValues:r,icon:i,id:"remove-filter",onClose:a(e),tagLabel:`${n} `})},n),ti=({options:e,onClose:i})=>{const n=e.flatMap(a=>a.filterOptions.map(r=>{const{filterFn:o,label:l,type:c,value:d,options:p,minValue:g,maxValue:x}=r;switch(c){case"numberRange":{const f=Wa(g,x);return t.jsx(ne,{filter:r,filterValue:f,icon:a.icon,label:a.label,onClose:i},l)}case"dateRange":{const f=Aa(g==null?void 0:g.toString(),x==null?void 0:x.toString());return t.jsx(ne,{filter:r,filterValue:f,icon:a.icon,label:a.label,onClose:i},l)}case"radioButton":case"checkboxes":{const f=Pa(p);return t.jsx(ne,{filter:r,filterValue:f,icon:a.icon,label:a.label,onClose:i},l)}case void 0:case"select":case"text":default:{const f=La(d),h=Ba(c,a.label,o);return t.jsx(ne,{filter:r,filterValue:f,icon:a.icon,label:h,onClose:i},l)}}})).filter(a=>{if(a===null)return!1;const{filterValue:r}=a.props;return!s._.isNil(r)&&!s._.isEmpty(String(r))});return t.jsx(y,{display:"flex",children:n})},_a=(e,i)=>{function n(l,c){if(c.value===""||c.value===void 0||s._.defaultTo(c.isBackFilter,!1))return!0;switch(c.filterFn){case"includesInsensitive":return String(l[c.key]).toLowerCase().includes(c.value.toLowerCase());case"caseInsensitive":case void 0:default:return String(l[c.key]).toLowerCase()===c.value.toLowerCase()}}function a(l,c){if(!c.options||c.options.length===0)return!0;const d=c.options.filter(p=>p.checked).map(p=>p.value);return d.length===0?!0:d.includes(String(l[c.key]))}function r(l,c,d){const p=d(String(l[c.key])),{minValue:g,maxValue:x}=c,f=s._.isEmpty(g)&&typeof g!="number"?void 0:d(String(g)),h=s._.isEmpty(x)&&typeof x!="number"?void 0:d(String(x));return s._.isUndefined(f)&&s._.isUndefined(h)?!0:(f??-1/0)<=p&&p<=(h??1/0)}function o(l){return i.every(c=>{if(typeof c.key=="function")return c.key(l,c.value);switch(c.type){case"radioButton":case"checkboxes":return a(l,c);case"numberRange":return r(l,c,Number);case"dateRange":return r(l,c,d=>new Date(d));case"select":case"text":default:return n(l,c)}})}return e.filter(o)},pt=e=>[...e.flatMap(({options:n})=>n).filter(n=>n==null?void 0:n.checked),...e.flatMap(n=>[n.value,n.maxValue,n.minValue]).filter(Boolean)].length,Oa=e=>{var n;const i=((n=e.options)==null?void 0:n.map(a=>({...a,checked:void 0})))??void 0;return{...e,minValue:void 0,maxValue:void 0,value:void 0,options:i}},Ha=({dataset:e,localStorageKey:i,options:n,setFilteredDataset:a,variant:r="ungrouped"})=>{const o=Ee("filters-modal"),[l,c]=u.useState([]),[d,p]=u.useState(pt(l)),g=n.map(h=>({...h,filterOptions:h.filterOptions.map($=>l.find(m=>m.key===$.key&&m.type===$.type&&m.filterFn===$.filterFn)??{...$})})),x=u.useCallback(h=>{c([...h]),localStorage.setItem(i,JSON.stringify(h))},[c,i]),f=u.useCallback(h=>()=>{const $=l.map(b=>b.key===h.key&&b.type===h.type&&b.filterFn===h.filterFn?Oa(b):b);c($),localStorage.setItem(i,JSON.stringify($))},[l,i]);return u.useEffect(()=>{const h=localStorage.getItem(i),$=h?JSON.parse(h):n.flatMap(b=>b.filterOptions);c($)},[i,n,c]),u.useEffect(()=>{a(_a(e,l)),p(pt(l))},[e,l,a,p]),t.jsxs(u.Fragment,{children:[t.jsx(y,{alignItems:"center",display:"flex",gap:.25,maxWidth:"100%",wrap:"wrap",children:t.jsxs(y,{pr:.25,children:[t.jsx(D,{icon:"filter",id:"filterBtn",onClick:o.toggle,tag:d.toString(),variant:"ghost"}),t.jsx(ti,{onClose:f,options:g})]})}),t.jsx(ei,{modalRef:o,onApplyFilters:x,options:g,variant:r})]})},ii=({_portal:e=!0,alert:i,cancelButton:n=void 0,children:a=void 0,confirmButton:r=void 0,content:o=void 0,description:l=void 0,modalRef:c,otherActions:d=void 0,onClose:p=void 0,tabItems:g=void 0,title:x=void 0,size:f,id:h="modal-container"})=>{const $=s.nt(),b=t.jsx(be,{"aria-label":c.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs($e,{$size:f,"data-testid":h,flexDirection:"column",id:h,children:[!s._.isEmpty(x)&&t.jsx(Vt,{description:l,modalRef:c,onClose:p,otherActions:d,title:x}),g&&t.jsx(y,{borderTop:`1px solid ${$.palette.gray[300]}`,display:"block",mb:1.25,position:"sticky",children:t.jsx(Je,{items:g})}),(s._.isObject(o)||a)&&t.jsxs(ua,{children:[a,s._.isObject(o)&&s._.isString(o.imageSrc)&&t.jsx(ba,{$framed:o.imageFramed,children:t.jsx(G,{alt:"modal-img",publicId:o.imageSrc})}),s._.isObject(o)&&s._.isString(o.imageText)&&t.jsx(k,{size:"sm",children:o.imageText})]}),t.jsx(Ht,{alert:i,cancelButton:n,confirmButton:r,modalRef:c})]})});return e&&c.isOpen?U.createPortal(b,document.getElementById("portals")??document.body):c.isOpen?b:null},Va=()=>{const[e,i]=u.useState(!1),[n,a]=u.useState(),r=u.useRef(null),o=Ee("confirm-dialog-modal"),l=u.useCallback(async g=>(a(g),i(!0),new Promise(x=>{r.current=x})),[]),c=u.useCallback(()=>{var g;i(!1),a(void 0),(g=r.current)==null||g.call(r,!0)},[]),d=u.useCallback(()=>{var g;i(!1),a(void 0),(g=r.current)==null||g.call(r,!1)},[]);return u.useEffect(()=>{o.setIsOpen(e)},[e,o]),{ConfirmDialog:({id:g="confirm-dialog-modal",children:x})=>t.jsx(ii,{confirmButton:{onClick:c,text:"Confirm"},cancelButton:{onClick:d,text:"Cancel"},description:n==null?void 0:n.message,id:g,modalRef:{...o,close:d},size:"sm",title:n==null?void 0:n.title,children:t.jsx(y,{display:"flex",flexDirection:"column",children:x})}),confirm:l}},Ma=s.dt.button`
|
|
1923
1923
|
display: flex;
|
|
1924
1924
|
position: relative;
|
|
1925
1925
|
height: 32px;
|
|
@@ -1942,7 +1942,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1942
1942
|
display: none;
|
|
1943
1943
|
}
|
|
1944
1944
|
}
|
|
1945
|
-
`,
|
|
1945
|
+
`,Ga=s.dt.div`
|
|
1946
1946
|
${({theme:e})=>`
|
|
1947
1947
|
display: flex;
|
|
1948
1948
|
flex-direction: column;
|
|
@@ -1983,7 +1983,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1983
1983
|
}
|
|
1984
1984
|
}
|
|
1985
1985
|
`}
|
|
1986
|
-
`,Oe=({containerRef:e,id:i})=>{const n=s.nt(),a=i==="desktop"?380:342,r=u.useCallback(l=>()=>{if(e!=null&&e.current){const{current:c}=e;c.scrollBy({left:l==="right"?a:-a,behavior:"smooth"})}},[e,a]),o=u.useCallback(l=>t.jsxs(
|
|
1986
|
+
`,Oe=({containerRef:e,id:i})=>{const n=s.nt(),a=i==="desktop"?380:342,r=u.useCallback(l=>()=>{if(e!=null&&e.current){const{current:c}=e;c.scrollBy({left:l==="right"?a:-a,behavior:"smooth"})}},[e,a]),o=u.useCallback(l=>t.jsxs(Ma,{onClick:r(l),children:[t.jsx(C,{clickable:!0,icon:`circle-arrow-${l}`,iconClass:"hovered",iconColor:n.palette.gray[800],iconSize:"md",iconType:"fa-solid"}),t.jsx(C,{clickable:!0,icon:`circle-arrow-${l}`,iconClass:"uncover",iconColor:n.palette.gray[800],iconSize:"md",iconType:"fa-light"})]}),[r,n]);return t.jsxs(y,{alignItems:"center",display:"flex",gap:1,id:i,width:"max-content",children:[o("left"),o("right")]})},He=({tag:e,tagPosition:i})=>{const n=s.nt();return e?t.jsx(y,{alignItems:"center",bgColor:n.palette.white,borderRadius:"8px",display:"flex",justify:"center",margin:i==="top"?[.75,.75,.75,.75]:void 0,padding:[.25,.5,.25,.5],position:i==="top"?"absolute":"relative",top:"0",width:"max-content",children:t.jsx(k,{color:n.palette.gray[900],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:e})}):null},ni=({eventDate:e})=>{const i=s.nt(),n=s.lodashExports.isEmpty(e)?null:e==null?void 0:e.split("-");if(n){const[a,r]=n;return t.jsxs(y,{alignItems:"center",bgColor:i.palette.white,borderRadius:"8px",display:"flex",flexDirection:"column",margin:[.75,.75,.75,.75],padding:[.75,1.5,.75,1.5],position:"absolute",right:"0",shadow:"md",top:"0",children:[t.jsx(A,{fontWeight:"semibold",lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:a}),t.jsx(k,{color:i.palette.gray[800],fontWeight:"semibold",lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:r.toUpperCase()})]})}return null},Ua=s.dt.div`
|
|
1987
1987
|
${({theme:e})=>`
|
|
1988
1988
|
align-items: flex-start;
|
|
1989
1989
|
display: flex;
|
|
@@ -2028,7 +2028,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2028
2028
|
}
|
|
2029
2029
|
}
|
|
2030
2030
|
`}
|
|
2031
|
-
`,
|
|
2031
|
+
`,ai=({author:e,buttonText:i,description:n,eventDate:a,href:r,imageId:o,mode:l="light",publishDate:c,readingTime:d,tag:p,tagPosition:g="top",title:x})=>{const f=s.nt(),h=c==null?void 0:c.split("-"),$=l==="dark",b=t.jsxs(Ua,{"data-testid":`content-card-${x}`,children:[o||a||p&&g==="top"?t.jsxs(y,{id:"card-image",position:"relative",children:[o&&t.jsx(G,{publicId:o}),g==="top"&&t.jsx(He,{tag:p,tagPosition:g}),t.jsx(ni,{eventDate:a})]}):void 0,t.jsxs(y,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.5,id:"card-content",children:[g==="bottom"&&t.jsx(He,{tag:p,tagPosition:g}),e||h||d?t.jsxs(y,{display:"flex",justify:"space-between",width:"100%",children:[e&&h&&t.jsx(k,{color:f.palette.gray[$?300:400],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:e+` • ${h[0]} ${h[1]}, ${h[2]}`}),d&&t.jsxs(y,{alignItems:"center",display:"flex",gap:.25,justify:"center",minWidth:"60px",children:[t.jsx(C,{icon:"eye",iconColor:f.palette.gray[$?300:400],iconSize:"xs",iconType:"fa-light"}),t.jsx(k,{color:f.palette.gray[$?300:400],size:"sm",sizeSm:"xs",textAlign:"right",children:d})]})]}):void 0,t.jsx(A,{className:`title-${l}`,color:$?f.palette.white:f.palette.gray[800],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:x}),n&&t.jsx(k,{color:f.palette.gray[$?100:600],size:"md",sizeSm:"sm",children:n}),i&&r&&t.jsx(D,{href:r,variant:"link",children:i})]})]});return r?t.jsx("a",{className:"flex w-fit",href:r,rel:"noopener noreferrer",target:"_self",children:b}):b},Ya=({description:e,items:i,title:n,titleHighlighted:a})=>{const r=u.useRef(null);return t.jsxs(Ga,{"data-testid":"content-card-carousel",children:[t.jsxs(y,{alignItems:"flex-start",display:"flex",justify:"space-between",children:[t.jsxs(y,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.625,maxWidth:"800px",children:[t.jsxs(A,{display:"inline",fontWeight:"semibold",lineSpacing:2.25,lineSpacingSm:1.75,size:"lg",sizeSm:"md",children:[n+" "," ",t.jsx("span",{className:"inline",children:a})]}),t.jsx(k,{lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:e})]}),t.jsx(Oe,{containerRef:r,id:"desktop"})]}),t.jsx(y,{alignSelf:"stretch",display:"flex",id:"carousel",pb:1,pr:2.25,ref:r,scroll:"x",children:t.jsx(y,{alignItems:"flex-start",display:"flex",gap:1.5,width:"max-content",children:i.map((o,l)=>t.jsx(ai,{...o},`${l}-${o.title}`))})}),t.jsx(Oe,{containerRef:r,id:"mobile"})]})},Ve=({buttonProps:e,variant:i})=>t.jsx(D,{onClick:e.onClick,variant:i,children:e.text}),qa=s.dt.div`
|
|
2032
2032
|
display: flex;
|
|
2033
2033
|
flex-direction: column;
|
|
2034
2034
|
align-items: center;
|
|
@@ -2036,7 +2036,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2036
2036
|
max-width: 900px;
|
|
2037
2037
|
white-space: pre-line;
|
|
2038
2038
|
margin: 0 auto;
|
|
2039
|
-
`,
|
|
2039
|
+
`,Ka=s.dt.div`
|
|
2040
2040
|
display: flex;
|
|
2041
2041
|
flex-direction: row;
|
|
2042
2042
|
justify-content: center;
|
|
@@ -2049,7 +2049,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2049
2049
|
> img {
|
|
2050
2050
|
width: 100%;
|
|
2051
2051
|
}
|
|
2052
|
-
`,
|
|
2052
|
+
`,Xa=s.dt.div`
|
|
2053
2053
|
display: flex;
|
|
2054
2054
|
flex-direction: row;
|
|
2055
2055
|
margin: 0;
|
|
@@ -2062,7 +2062,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2062
2062
|
> *:last-child {
|
|
2063
2063
|
margin-right: 0;
|
|
2064
2064
|
}
|
|
2065
|
-
`,gt={md:{description:"md",title:"md"},sm:{description:"sm",title:"xs"}},
|
|
2065
|
+
`,gt={md:{description:"md",title:"md"},sm:{description:"sm",title:"xs"}},Za=({cancelButton:e=void 0,confirmButton:i=void 0,description:n,imageSrc:a="integrates/empty/addRoot",padding:r=1.25,title:o,size:l="md"})=>{const c=(i??e)!==void 0;return t.jsxs(qa,{$padding:r,children:[t.jsx(Ka,{children:t.jsx(G,{alt:"empty-icon",publicId:a})}),t.jsx(A,{fontWeight:"bold",lineSpacing:1.75,mb:.25,size:gt[l].title,textAlign:"center",children:o}),t.jsx(k,{mb:c?2:void 0,size:gt[l].description,textAlign:"center",children:n}),c?t.jsxs(Xa,{children:[e&&t.jsx(Ve,{buttonProps:e,variant:"tertiary"}),i&&t.jsx(Ve,{buttonProps:i,variant:"primary"})]}):void 0]})},Ja=({children:e})=>{const i=s.useFormContext();return e({...i})},Qa=s.dt.form`
|
|
2066
2066
|
${({theme:e})=>`
|
|
2067
2067
|
align-items: flex-start;
|
|
2068
2068
|
align-self: stretch;
|
|
@@ -2072,7 +2072,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2072
2072
|
overflow: hidden auto;
|
|
2073
2073
|
width: 100%;
|
|
2074
2074
|
`}
|
|
2075
|
-
`,
|
|
2075
|
+
`,er=({alert:e,cancelButton:i,children:n,confirmButton:a,defaultDisabled:r=!0,id:o="modal-confirm",maxButtonWidth:l="392px",mode:c,onSubmit:d,showButtons:p=!0,yupSchema:g,...x})=>{const f=s.nt(),h=s.useForm({...x,mode:c??"all",resolver:g?s.o(g):void 0});return t.jsx(s.FormProvider,{...h,children:t.jsx(Qa,{onSubmit:h.handleSubmit(d),children:t.jsxs(y,{scroll:"y",width:"100%",children:[t.jsx(y,{borderRadius:`0 0 ${f.spacing[.25]} ${f.spacing[.25]}`,display:"flex",flexDirection:"column",gap:.5,height:e?"calc(100% - 139px)":"calc(100% - 83px)",pb:1.5,pt:0,px:1.5,scroll:"y",children:n}),p&&t.jsxs(y,{borderRadius:`0 0 ${f.spacing[.25]} ${f.spacing[.25]}`,borderTop:`1px solid ${f.palette.gray[200]}`,display:"flex",flexDirection:"column",gap:.625,position:"sticky",px:1.25,py:1.25,children:[e,t.jsxs(y,{display:"flex",gap:.75,maxWidth:l,children:[i?t.jsx(D,{icon:i.icon,id:`${o}-cancel`,justify:"center",onClick:i.onClick,type:"reset",variant:"tertiary",width:"100%",children:i.label??"Cancel"}):void 0,t.jsx(D,{disabled:((a==null?void 0:a.disabled)??!1)||h.formState.isSubmitting||r&&!h.formState.isDirty,icon:a==null?void 0:a.icon,id:o,justify:"center",type:"submit",width:"100%",children:(a==null?void 0:a.label)??"Confirm"})]})]})]})})})},tr=s.dt(Q)`
|
|
2076
2076
|
display: grid;
|
|
2077
2077
|
gap: ${({$gap:e=1.25})=>`${e}rem`};
|
|
2078
2078
|
grid-template-columns: ${({$sm:e})=>`repeat(${e}, 1fr)`};
|
|
@@ -2090,7 +2090,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2090
2090
|
grid-template-columns: repeat(${i}, 1fr);
|
|
2091
2091
|
}
|
|
2092
2092
|
`}
|
|
2093
|
-
`,
|
|
2093
|
+
`,ir=u.forwardRef(function({children:i,md:n,sm:a,lg:r,xl:o,gap:l,...c},d){return t.jsx(tr,{$gap:l,$lg:r,$md:n,$sm:a,$xl:o,ref:d,...c,children:i})}),nr=s.dt.div`
|
|
2094
2094
|
${({theme:e,$itemsLength:i})=>`
|
|
2095
2095
|
display: flex;
|
|
2096
2096
|
background-color: ${e.palette.white};
|
|
@@ -2126,7 +2126,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2126
2126
|
background-color: ${e.palette.gray[100]};
|
|
2127
2127
|
}
|
|
2128
2128
|
`}
|
|
2129
|
-
`,
|
|
2129
|
+
`,ri=({isSelected:e=!1,label:i,onSelect:n})=>{const a=s.nt(),r=u.useCallback(()=>{n&&n(i)},[n,i]);return t.jsxs(Qe,{$isSelected:e,onClick:r,children:[e?t.jsx(C,{icon:"check",iconColor:a.palette.gray[800],iconSize:"xs"}):null,t.jsx(k,{color:a.palette.gray[800],fontWeight:"bold",size:"sm",children:i})]})},ar=({isOpen:e=!0,items:i,handleNewOrganization:n,onSelect:a,onClose:r,selectedItem:o,title:l,variant:c})=>{const d=s.nt(),[p,g]=u.useState(i),[x,f]=u.useState(""),h=u.useCallback(m=>{g(w=>w.filter(j=>String(j.name).toLowerCase().includes(m.toLocaleLowerCase())))},[g]),$=u.useCallback(m=>{m.currentTarget&&(f(m.currentTarget.value),h(m.currentTarget.value))},[f,h]);u.useEffect(()=>{g(i),h(x)},[i,h,x]);const b=t.jsx(y,{"aria-modal":"true",className:"comp-modal fixed inset-0 overflow-auto",zIndex:99999,children:t.jsx(y,{alignItems:"center",bgColor:"rgb(52 64 84 / 70%)",display:"flex",height:"100vh",justify:"center",left:"0",top:"0",width:"100%",children:t.jsxs(nr,{$itemsLength:p.length,children:[t.jsxs(y,{alignItems:"center",display:"flex",justify:"space-between",children:[t.jsx(k,{color:d.palette.gray[800],fontWeight:"bold",size:"lg",children:l}),t.jsx(B,{icon:"xmark",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:r,variant:"ghost"})]}),t.jsx(y,{mt:1,children:t.jsx(se,{onInput:$,placeholder:"Search"})}),t.jsx(J,{mb:1,mt:1}),t.jsxs(y,{display:"inline-flex",gap:1,maxHeight:"332px",scroll:"y",wrap:"wrap",children:[c==="organization-selector"?t.jsx(Qe,{onClick:n,children:t.jsxs(y,{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,p.map(m=>t.jsx(ri,{isSelected:o.toLowerCase()===m.name,label:m.name.charAt(0).toUpperCase()+m.name.slice(1),onSelect:a},m.name))]})]})})});return e?U.createPortal(b,document.body):t.jsx("div",{})},rr=({description:e,height:i="auto",leftIconName:n,children:a,rightIconName:r,title:o,tooltipId:l,tooltipTip:c,tooltipPlace:d="bottom",variant:p="centered",width:g="318px"})=>{const x=s.nt(),f=p==="centered",h=l&&t.jsx(M,{icon:r??n,iconColor:x.palette.gray[800],id:l,place:d,tip:c});return t.jsxs(y,{alignItems:f?"center":"flex-start",bgColor:x.palette.gray[50],border:`1px solid ${x.palette.gray[200]}`,borderRadius:"4px",display:"inline-flex",flexDirection:f?"column":"column-reverse",gap:.5,height:i,justify:"center",padding:[1.25,1.25,1.25,1.25],width:g,children:[t.jsxs(y,{alignItems:"center",display:"flex",gap:.5,children:[f||s.lodashExports.isUndefined(n)?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(r)?void 0:h]}),t.jsxs(y,{alignItems:"center",display:"flex",gap:.5,my:.5,children:[f&&!s.lodashExports.isUndefined(n)?h:void 0,t.jsxs("div",{style:{display:"flex",gap:"12px"},children:[s.lodashExports.isUndefined(o)?void 0:t.jsx(A,{fontWeight:"bold",size:"md",children:o}),a]}),f&&!s.lodashExports.isUndefined(r)?h:void 0]})]})},or=({actions:e,children:i,header:n,title:a,tabs:r,footer:o})=>{const l=s.nt();return t.jsxs(y,{alignItems:"flex-start",bgColor:l.palette.white,borderLeft:`1px solid ${l.palette.gray[300]}`,display:"flex",flexDirection:"column",maxHeight:"750px",width:"480px",children:[t.jsxs(y,{alignItems:"flex-start",alignSelf:"stretch",borderBottom:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.25,justify:"space-between",px:1.25,py:1,children:[t.jsxs(y,{display:"flex",flexDirection:"column",gap:.25,children:[t.jsx(k,{color:l.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:a}),n]}),e&&t.jsx(y,{display:"flex",gap:.25,children:e.map(({icon:c,onClick:d},p)=>t.jsx(B,{icon:c??"paper-plane",iconColor:l.palette.gray[400],iconSize:"xxs",iconType:"fa-light",onClick:d,variant:"ghost"},`${p}-${c}`))})]}),t.jsx(y,{display:"flex",pt:.25,width:"100%",children:t.jsx(Je,{items:r})}),t.jsx(y,{alignSelf:"stretch",display:"flex",flexDirection:"column",px:1.25,py:1,scroll:"y",children:i}),o&&t.jsx(y,{alignSelf:"stretch",borderTop:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.5,justify:"end",px:1.25,py:1,children:o.map(({icon:c,text:d,onClick:p},g)=>t.jsx(D,{icon:c,onClick:p,variant:g===0?"primary":"tertiary",width:"100%",children:d},`${g}-${d}`))})]})},sr=s.dt.div`
|
|
2130
2130
|
${({theme:e})=>`
|
|
2131
2131
|
align-items: flex-start;
|
|
2132
2132
|
backdrop-filter: blur(3.15px);
|
|
@@ -2178,7 +2178,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2178
2178
|
}
|
|
2179
2179
|
}
|
|
2180
2180
|
`}
|
|
2181
|
-
`,
|
|
2181
|
+
`,lr=s.dt.div`
|
|
2182
2182
|
align-items: center;
|
|
2183
2183
|
position: absolute;
|
|
2184
2184
|
justify-content: center;
|
|
@@ -2192,7 +2192,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2192
2192
|
height: 260px;
|
|
2193
2193
|
width: 260px;
|
|
2194
2194
|
}
|
|
2195
|
-
`,
|
|
2195
|
+
`,oi=({icon:e})=>t.jsx(lr,{children:t.jsx(C,{icon:e,iconColor:S.palette.white,iconSize:"xs",iconTransform:"shrink-2",iconType:"fa-light"})}),cr=({category:e,description:i,href:n,icon:a,location:r,title:o})=>{const l=s.nt();return t.jsxs(sr,{children:[t.jsxs(y,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:1.5,height:"100%",id:"uncover",justify:"space-between",children:[t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx(k,{color:l.palette.white,size:"sm",sizeSm:"xs",children:e}),t.jsx(A,{color:l.palette.white,fontWeight:"bold",lineSpacing:2.25,lineSpacingSm:1.75,size:"lg",sizeSm:"md",children:o})]}),t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx(k,{color:l.palette.white,size:"sm",sizeSm:"xs",children:"Location"}),t.jsx(k,{color:l.palette.white,fontWeight:"bold",lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:r})]})]}),t.jsxs(y,{alignItems:"self-start",display:"flex",flexDirection:"column",gap:2,height:"100%",id:"hovered",justify:"space-between",pt:1,children:[t.jsx(A,{color:l.palette.white,fontWeight:"bold",lineSpacing:1.75,lineSpacingSm:1.5,size:"md",sizeSm:"sm",children:o}),t.jsxs("div",{className:"flex flex-col gap-8",children:[t.jsx(k,{color:l.palette.gray[100],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:i}),t.jsx(D,{external:!0,href:n,variant:"link",width:"max-content",children:"Download now"})]})]}),t.jsx(oi,{icon:a})]})},dr=s.dt.button`
|
|
2196
2196
|
${({theme:e})=>`
|
|
2197
2197
|
align-items: center;
|
|
2198
2198
|
border-left: 3px solid transparent;
|
|
@@ -2235,7 +2235,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2235
2235
|
}
|
|
2236
2236
|
}
|
|
2237
2237
|
`}
|
|
2238
|
-
`,
|
|
2238
|
+
`,pr=s.dt.div`
|
|
2239
2239
|
${({theme:e})=>`
|
|
2240
2240
|
align-items: center;
|
|
2241
2241
|
background-color: transparent;
|
|
@@ -2265,7 +2265,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2265
2265
|
color: ${e.palette.gray[800]};
|
|
2266
2266
|
}
|
|
2267
2267
|
`}
|
|
2268
|
-
`,
|
|
2268
|
+
`,gr=s.dt.div`
|
|
2269
2269
|
${({theme:e})=>`
|
|
2270
2270
|
background-color: ${e.palette.white};
|
|
2271
2271
|
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
@@ -2280,7 +2280,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2280
2280
|
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
2281
2281
|
}
|
|
2282
2282
|
`}
|
|
2283
|
-
`,
|
|
2283
|
+
`,ur=s.dt.div`
|
|
2284
2284
|
${({theme:e})=>`
|
|
2285
2285
|
align-items: flex-start;
|
|
2286
2286
|
cursor: pointer;
|
|
@@ -2302,11 +2302,11 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2302
2302
|
}
|
|
2303
2303
|
}
|
|
2304
2304
|
`}
|
|
2305
|
-
`,
|
|
2305
|
+
`,si=({disabled:e=!1,mode:i,onClick:n,text:a})=>t.jsx(dr,{className:`${e&&"disabled"} ${i}`,disabled:e,onClick:n,children:t.jsx(k,{color:"inherit",size:"sm",sizeSm:"xs",children:a})}),xr=[{text:"EN"},{text:"ES"}],fr=({items:e,handleClick:i,mode:n="light"})=>{const a=e??xr,[r,o]=u.useState(a[0].text),l=u.useCallback(c=>()=>{i(c.text),o(c.text)},[i]);return t.jsxs(ur,{children:[t.jsxs(pr,{className:n,children:[t.jsx(C,{icon:"globe",iconSize:"xs",iconType:"fa-light"}),r]}),t.jsx(gr,{children:a.map((c,d)=>t.jsx(si,{disabled:c.disabled,mode:n,onClick:l(c),text:c.text},`${c.text}_${d}`))})]})},hr=s.dt.div.attrs({className:"flex flex-wrap justify-center pv3 w-100"})``,br=s.dt.div.attrs({className:"flex flex-wrap items-center justify-start mb2"})`
|
|
2306
2306
|
gap: 12px;
|
|
2307
|
-
|
|
2307
|
+
`,$r=s.dt.div.attrs({className:"flex flex-wrap items-center justify-end mb2"})`
|
|
2308
2308
|
gap: 8px;
|
|
2309
|
-
`,we=e=>e===void 0?"flex-grow: 1;":`width: calc(${e}00% / var(--cols));`,
|
|
2309
|
+
`,we=e=>e===void 0?"flex-grow: 1;":`width: calc(${e}00% / var(--cols));`,yr=s.dt.div.attrs({className:"comp-col"})`
|
|
2310
2310
|
word-wrap: break-word;
|
|
2311
2311
|
|
|
2312
2312
|
${({$width:e=null})=>e===null?"":`width: ${e}`};
|
|
@@ -2330,7 +2330,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2330
2330
|
> .comp-card {
|
|
2331
2331
|
height: 100%;
|
|
2332
2332
|
}
|
|
2333
|
-
`,
|
|
2333
|
+
`,mr=({children:e,xl:i,lg:n,md:a,sm:r,paddingTop:o,width:l})=>t.jsx(yr,{$lg:n,$md:a,$paddingTop:o,$sm:r,$width:l,$xl:i,children:e}),wr=s.dt.div.attrs({className:"comp-gap"})`
|
|
2334
2334
|
${({$disp:e="flex",$mh:i=4,$mv:n=4})=>`
|
|
2335
2335
|
align-items: center;
|
|
2336
2336
|
display: ${e};
|
|
@@ -2340,7 +2340,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2340
2340
|
margin: ${n}px ${i}px;
|
|
2341
2341
|
}
|
|
2342
2342
|
`}
|
|
2343
|
-
`,
|
|
2343
|
+
`,jr=({children:e,disp:i,mh:n,mv:a})=>t.jsx(wr,{$disp:i,$mh:n,$mv:a,children:e}),vr=s.dt.div.attrs({className:"comp-row flex flex-row flex-wrap"})`
|
|
2344
2344
|
${({$align:e="stretch",$cols:i=100,$colsPadding:n=6,$justify:a="start"})=>`
|
|
2345
2345
|
align-items: ${e};
|
|
2346
2346
|
justify-content: ${a};
|
|
@@ -2358,7 +2358,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2358
2358
|
padding: ${n}px;
|
|
2359
2359
|
}
|
|
2360
2360
|
`}
|
|
2361
|
-
`,
|
|
2361
|
+
`,kr=({align:e,children:i,cols:n,colsPadding:a,justify:r})=>t.jsx(vr,{$align:e,$cols:n,$colsPadding:a,$justify:r,children:i}),Cr=s.dt.span`
|
|
2362
2362
|
${({theme:e,$bgColor:i=e.palette.secondary[500],$txtDecoration:n="none"})=>`
|
|
2363
2363
|
background-color: ${i};
|
|
2364
2364
|
border-radius: 5px;
|
|
@@ -2367,14 +2367,14 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2367
2367
|
padding: ${e.spacing[.125]} ${e.spacing[.25]} ${e.spacing[.125]} ${e.spacing[.25]};
|
|
2368
2368
|
text-decoration: ${n}
|
|
2369
2369
|
`}
|
|
2370
|
-
`,
|
|
2370
|
+
`,Sr=({bgColor:e,children:i,txtDecoration:n,ml:a=1})=>t.jsx(Cr,{$bgColor:e,$txtDecoration:n,className:`ml-${a}`,children:i}),zr={lg:"56",md:"30",sm:"12"},{getVariant:Ir}=Y(e=>({red:`stroke: ${e.palette.primary[500]};`,white:`stroke: ${e.palette.white};`})),Tr=s.mt`
|
|
2371
2371
|
0% {
|
|
2372
2372
|
transform: rotateZ(0deg);
|
|
2373
2373
|
}
|
|
2374
2374
|
100% {
|
|
2375
2375
|
transform: rotateZ(360deg)
|
|
2376
2376
|
}
|
|
2377
|
-
`,
|
|
2377
|
+
`,Fr=s.mt`
|
|
2378
2378
|
0%,
|
|
2379
2379
|
25% {
|
|
2380
2380
|
stroke-dashoffset: 280;
|
|
@@ -2391,16 +2391,16 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2391
2391
|
stroke-dashoffset: 280;
|
|
2392
2392
|
transform: rotate(360deg);
|
|
2393
2393
|
}
|
|
2394
|
-
`,
|
|
2394
|
+
`,Nr=s.dt.svg`
|
|
2395
2395
|
${({$size:e="md"})=>s.lt`
|
|
2396
|
-
animation: ${
|
|
2396
|
+
animation: ${Tr} 2s linear infinite;
|
|
2397
2397
|
animation-timing-function: linear;
|
|
2398
2398
|
display: inline-block;
|
|
2399
|
-
width: ${
|
|
2399
|
+
width: ${zr[e]}px;
|
|
2400
2400
|
`}
|
|
2401
|
-
`,
|
|
2401
|
+
`,Er=s.dt.circle`
|
|
2402
2402
|
${({theme:e,$color:i="red"})=>s.lt`
|
|
2403
|
-
animation: 1.4s ease-in-out infinite both ${
|
|
2403
|
+
animation: 1.4s ease-in-out infinite both ${Fr};
|
|
2404
2404
|
display: block;
|
|
2405
2405
|
fill: transparent;
|
|
2406
2406
|
stroke-linecap: round;
|
|
@@ -2409,9 +2409,9 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2409
2409
|
stroke-width: 10px;
|
|
2410
2410
|
transform-origin: 50% 50%;
|
|
2411
2411
|
|
|
2412
|
-
${
|
|
2412
|
+
${Ir(e,i)}
|
|
2413
2413
|
`}
|
|
2414
|
-
`,
|
|
2414
|
+
`,Rr=s.dt.circle`
|
|
2415
2415
|
display: block;
|
|
2416
2416
|
fill: transparent;
|
|
2417
2417
|
stroke: ${({theme:e})=>e.palette.gray[200]};
|
|
@@ -2419,7 +2419,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2419
2419
|
stroke-width: 10px;
|
|
2420
2420
|
transform-origin: 50% 50%;
|
|
2421
2421
|
opacity: ${({$color:e})=>e==="white"?"20%":"unset"};
|
|
2422
|
-
`,
|
|
2422
|
+
`,Dr=({color:e="red",label:i,size:n})=>{const a=s.nt();return t.jsxs(y,{alignItems:"center",display:"flex",children:[t.jsxs(Nr,{$size:n,viewBox:"0 0 100 100",children:[t.jsx(Rr,{$color:e,cx:"50",cy:"50",r:"45"}),t.jsx(Er,{$color:e,cx:"50",cy:"50",r:"45"})]}),i&&t.jsx(k,{color:e==="red"?a.palette.gray[700]:a.palette.white,ml:.5,size:"sm",children:i})]})},Lr=s.dt.div`
|
|
2423
2423
|
display: flex;
|
|
2424
2424
|
height: 80px;
|
|
2425
2425
|
max-width: 1440px;
|
|
@@ -2449,7 +2449,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2449
2449
|
);
|
|
2450
2450
|
right: 0;
|
|
2451
2451
|
}
|
|
2452
|
-
`,
|
|
2452
|
+
`,Pr=s.dt.div`
|
|
2453
2453
|
display: flex;
|
|
2454
2454
|
gap: 40px;
|
|
2455
2455
|
animation: clients-animation 50s linear infinite;
|
|
@@ -2464,7 +2464,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2464
2464
|
transform: translateX(calc(-180px * 15));
|
|
2465
2465
|
}
|
|
2466
2466
|
}
|
|
2467
|
-
`,
|
|
2467
|
+
`,Wr=["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"],Ar=({fusion:e=!1,logos:i=Wr})=>t.jsxs(Lr,{children:[e&&t.jsx(ut,{className:"left"}),t.jsx(Pr,{children:[...i,...i].map((n,a)=>t.jsx(G,{alt:`${n}-${a}`,height:"80px",plugins:[s.placeholder()],publicId:n,width:"140px"},`${n}-${a}`))}),e&&t.jsx(ut,{className:"right"})]}),Br={company:{height:"83px",width:"460px"},footer:{height:"57px",width:"315px"},header:{height:"35px",width:"160px"},icon:{height:"40px",width:"40px"},inline:{width:"150px"}},_r=({publicId:e,variant:i})=>t.jsx(y,{...Br[i],children:t.jsx(G,{alt:"logo",publicId:e})}),Or=({children:e,commitSha:i,commitShortSha:n,parentElement:a,userInfo:r,setVisibility:o})=>{const l=s.nt(),{userName:c,email:d,phone:p,userRole:g}=r;return ee(a,()=>{o(!1)}),t.jsxs(Ut,{children:[t.jsx("li",{className:"user-info",children:t.jsxs(y,{display:"inline-flex",gap:.25,width:"100%",children:[t.jsxs(y,{display:"flex",flexDirection:"column",gap:.25,width:"100%",children:[t.jsx(k,{color:l.palette.gray[800],fontWeight:"bold",size:"sm",children:c}),t.jsx(k,{color:l.palette.gray[400],size:"sm",children:d}),s.lodashExports.isUndefined(p)?void 0:t.jsx(k,{color:l.palette.gray[400],size:"sm",children:p})]}),t.jsx(y,{children:t.jsx(q,{tagLabel:g,variant:"role"})})]})}),t.jsx(J,{}),e,t.jsx(J,{}),t.jsx("li",{className:"commit-info",children:t.jsx(X,{href:`https://gitlab.com/fluidattacks/universe/-/tree/${i}`,iconPosition:"hidden",children:t.jsx(k,{color:l.palette.gray[400],size:"xs",children:`commit : ${n}`})})})]})},Hr=s.dt.button`
|
|
2468
2468
|
align-items: center;
|
|
2469
2469
|
background-color: transparent;
|
|
2470
2470
|
border: unset;
|
|
@@ -2481,7 +2481,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2481
2481
|
&:hover span {
|
|
2482
2482
|
color: ${S.palette.primary[200]};
|
|
2483
2483
|
}
|
|
2484
|
-
`,Vr=({message:e,onClickButton:i,buttonText:n,buttonFontWeight:a="regular",icon:r,onClose:o,buttonSide:l="end"})=>{const c=s.nt(),[d,p]=u.useState(!0),g=u.useCallback(()=>{p(!1),o==null||o()},[o]),x=t.jsxs(
|
|
2484
|
+
`,Vr=({message:e,onClickButton:i,buttonText:n,buttonFontWeight:a="regular",icon:r,onClose:o,buttonSide:l="end"})=>{const c=s.nt(),[d,p]=u.useState(!0),g=u.useCallback(()=>{p(!1),o==null||o()},[o]),x=t.jsxs(Hr,{onClick:i,children:[t.jsx(k,{color:c.palette.white,fontWeight:a,size:"sm",textDecoration:"underline",children:n}),t.jsx(C,{icon:r??"arrow-right",iconColor:c.palette.white,iconSize:"xs",iconType:a==="bold"?"fa-regular":"fa-light"})]});return t.jsxs(y,{alignItems:"center",bgGradient:c.palette.gradients["01"],display:d?"flex":"none",id:"message-banner",justify:"space-between",padding:[.75,.75,.75,.75],children:[t.jsxs(y,{display:"flex",gap:.5,justify:"center",width:"100%",children:[l==="start"&&i?x:void 0,t.jsx(y,{children:typeof e=="string"?t.jsx(k,{color:c.palette.white,display:"inline",size:"sm",children:e}):e}),l==="end"&&i?x:void 0]}),t.jsx(C,{clickable:!0,hoverColor:c.palette.primary[200],icon:"close",iconColor:c.palette.white,iconSize:"xs",iconType:"fa-light",onClick:g})]})},Mr=s.dt.div`
|
|
2485
2485
|
${({theme:e,$variant:i})=>`
|
|
2486
2486
|
background: ${e.palette.white};
|
|
2487
2487
|
border: 1px solid ${e.palette.gray[200]};
|
|
@@ -2500,7 +2500,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2500
2500
|
right: 16px;
|
|
2501
2501
|
}
|
|
2502
2502
|
`}
|
|
2503
|
-
`,
|
|
2503
|
+
`,Gr=s.dt.div`
|
|
2504
2504
|
${({theme:e,$variant:i})=>`
|
|
2505
2505
|
height: ${e.spacing[2.5]};
|
|
2506
2506
|
width: ${e.spacing[2.5]};
|
|
@@ -2531,7 +2531,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2531
2531
|
color: ${e.palette[i][500]};
|
|
2532
2532
|
}
|
|
2533
2533
|
`}
|
|
2534
|
-
`,
|
|
2534
|
+
`,Ur=e=>e==="warning"?"triangle-exclamation":e==="info"?"circle-info":e==="success"?"circle-check":"circle-exclamation",Yr=({description:e,onClose:i,title:n,variant:a})=>{const r=s.nt(),o=u.useCallback(()=>{i==null||i()},[i]);return t.jsxs(Mr,{$variant:a,className:`notification notification__${a}`,role:"alertdialog",children:[t.jsxs(Gr,{$variant:a,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:Ur(a),iconClass:"icon",iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(y,{pr:1.5,children:[t.jsx(A,{fontWeight:"bold",size:"xs",children:n}),t.jsx(k,{size:"sm",whiteSpace:"break-spaces",wordWrap:"break-word",children:e})]}),t.jsx(B,{height:"fit-content",icon:"close",iconColor:r.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:o,px:.125,py:.125,variant:"ghost"})]})},qr=s.dt.div`
|
|
2535
2535
|
width: fit-content;
|
|
2536
2536
|
border: ${({theme:e})=>`1px solid ${e.palette.gray[300]}`};
|
|
2537
2537
|
border-radius: 4px;
|
|
@@ -2544,7 +2544,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2544
2544
|
align-items: center;
|
|
2545
2545
|
justify-content: center;
|
|
2546
2546
|
padding: 0.5em;
|
|
2547
|
-
`,
|
|
2547
|
+
`,Kr=s.dt.input`
|
|
2548
2548
|
width: 4em;
|
|
2549
2549
|
appearance: textfield;
|
|
2550
2550
|
border-style: none;
|
|
@@ -2564,7 +2564,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2564
2564
|
&::-webkit-inner-spin-button {
|
|
2565
2565
|
opacity: 1;
|
|
2566
2566
|
}
|
|
2567
|
-
`,
|
|
2567
|
+
`,Xr=u.forwardRef(function({autoUpdate:i=!1,decimalPlaces:n=0,defaultValue:a=0,max:r,min:o,name:l,onEnter:c,tooltipMessage:d,...p},g){const x=n<0?0:n,[f,h]=u.useState(Number(a).toFixed(x)),$=u.useCallback(w=>{const j=s.lodashExports.toNumber(w.target.value);w.target.value.endsWith(".")?h(w.target.value):j>=Number(o)&&j<=Number(r)&&(h(String(j)),i&&c(s.lodashExports.toNumber(j.toFixed(x)))),w.stopPropagation()},[i,x,r,o,c]),b=u.useCallback(w=>{w.currentTarget.contains(w.relatedTarget)||h(Number(a).toFixed(x)),w.stopPropagation()},[x,a]),m=u.useCallback(w=>{w.stopPropagation(),w.key==="Enter"&&!s.lodashExports.isEmpty(w.currentTarget.value)&&c(s.lodashExports.toNumber(w.currentTarget.value))},[c]);return t.jsx(qr,{onBlur:b,tabIndex:-1,children:t.jsx(M,{id:"numberInputTooltip",tip:d,children:t.jsx(Kr,{...p,"aria-label":l,"aria-valuemax":Number(r),"aria-valuemin":Number(o),"aria-valuenow":Number(f),max:r,min:o,name:l,onChange:$,onKeyUp:m,ref:g,step:10**-x,type:"number",value:f})})})}),Zr={Azure:"integrates/autoenrollment/azureIcon",Bitbucket:"integrates/autoenrollment/bitbucketLogo",GitHub:"integrates/autoenrollment/githubLogo",GitLab:"integrates/autoenrollment/gitlabIcon"},Me=({icon:e,label:i,onClick:n,onlyLabel:a=!1,provider:r="GitLab"})=>{const o=s.nt();return t.jsxs(y,{alignItems:"center",bgColorHover:o.palette.gray[100],borderRadius:"4px",cursor:"pointer",display:"flex",flexDirection:"column",gap:.25,height:"62px",justify:"center",minWidth:"64px",onClick:n,pb:.5,pl:.25,pr:.25,pt:.5,children:[a?!1:t.jsx(y,{height:"24px",width:"24px",children:e===void 0?t.jsx(G,{alt:`${r} Logo`,height:"100%",publicId:Zr[r],width:"100%"}):t.jsx(C,{icon:e,iconColor:"#000",iconSize:"sm",iconType:"fa-light"})}),t.jsx(y,{alignItems:"center",display:"flex",minWidth:"24px",children:t.jsx(k,{color:o.palette.gray[800],display:"inline",size:"xs",textAlign:"center",whiteSpace:a?"break-spaces":"nowrap",wordWrap:"unset",children:i??r})})]})},Jr=({align:e="end",buttonLabel:i="Add Credential",children:n,id:a,manualOption:r,providers:o})=>{const l=s.nt(),[c,d]=u.useState(!1),p=u.useRef(null);ee(p.current,()=>{d(!1)},!0);const g=u.useCallback(h=>{r==null||r.onClick(h),d(!1)},[r]),x=u.useCallback(()=>{d(h=>!h)},[d]),f=u.useCallback(h=>$=>{var b;(b=o[h])==null||b.onClick($),d(!1)},[o]);return t.jsxs(y,{alignItems:e,display:"flex",flexDirection:"column",position:"relative",ref:p,width:"max-content",zIndex:10,children:[t.jsx(D,{icon:"plus",onClick:x,variant:"primary",children:i}),t.jsxs(y,{alignItems:"center",bgColor:"#fff",border:`1px solid ${l.palette.gray[200]}`,borderRadius:"4px",display:"flex",gap:.5,height:"78px",id:a,pb:.5,pl:.75,position:"absolute",pr:.75,pt:.5,shadow:"md",top:"40px",visibility:c?"visible":"hidden",zIndex:10,children:[Object.keys(o).map(h=>t.jsx(Me,{onClick:f(h),provider:h},h)),r===void 0?void 0:t.jsx(Me,{icon:"square-plus",label:r.label??"Add manually",onClick:g}),n]})]})},li=t.jsx(y,{alignItems:"center",bgColor:S.palette.primary[25],borderRadius:"8px",gap:.5,justify:"center",padding:[.125,.25,.125,.25],width:"max-content",children:t.jsx(k,{bgGradient:S.palette.gradients["01"],fontWeight:"semibold",size:"xs",textFill:"transparent",children:"Recommended"})}),Qr=s.dt.div`
|
|
2568
2568
|
${({className:e,theme:i})=>`
|
|
2569
2569
|
align-items: flex-start;
|
|
2570
2570
|
border-radius: ${i.spacing[1]};
|
|
@@ -2629,8 +2629,8 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2629
2629
|
width: 320px;
|
|
2630
2630
|
}
|
|
2631
2631
|
`}
|
|
2632
|
-
`;const
|
|
2633
|
-
through our scanning tool.`,priceAuthor:"$499",priceGroup:"$1,579"}},
|
|
2632
|
+
`;const eo={advanced:{title:"Advanced plan",benefits:"Leverage vulnerability scanning + AI + expert intelligence",buttonText:"Contact sales",description:"For teams that want to discover risk exposure with speed and accuracy.",priceGroup:"$1,579"},essential:{title:"Essential plan",benefits:"Leverage vulnerability scanning",buttonText:"Start a 21-day free trial",description:`For teams that want to discover risk exposure quickly
|
|
2633
|
+
through our scanning tool.`,priceAuthor:"$499",priceGroup:"$1,579"}},to=({description:e,onClick:i,plan:n})=>{const{title:a,description:r,benefits:o,buttonText:l}=eo[n],c=e??r;return t.jsxs(Qr,{className:n,children:[t.jsxs(y,{display:"flex",flexDirection:"column",gap:.25,pt:n==="essential"?1.75:0,children:[n==="advanced"&&li,t.jsx(A,{color:S.palette.gray[900],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:a}),t.jsx(k,{color:S.palette.gray[400],fontWeight:"semibold",pb:n==="essential"?1.25:0,size:"sm",sizeSm:"xs",children:o})]}),t.jsx(k,{lineSpacing:1.5,lineSpacingSm:1.25,pb:n==="advanced"?1.5:0,size:"md",sizeSm:"sm",children:c}),t.jsx(D,{onClick:i,variant:"primary",children:l})]})},ci=({description:e="",highlightDescription:i=""})=>{const n=s.nt(),a=typeof i=="string",r=a?"":new RegExp(`(${i.join("|")})`,"u");return i.length>0?t.jsx(k,{display:"inline",lineSpacing:1.5,size:"lg",textAlign:"center",children:a?t.jsxs(u.Fragment,{children:[t.jsx(re,{color:n.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:i}),e]}):e.split(r).map((o,l)=>i.includes(o)?t.jsx(re,{color:n.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:o},`${l+1}-bold`):o)}):t.jsx(k,{lineSpacing:1.5,size:"lg",textAlign:"center",children:e})},io=({_portal:e=!1,cancelButton:i,darkBackground:n=!1,children:a,confirmButton:r,container:o,description:l,highlightDescription:c="",image:d,maxWidth:p,title:g,titleColor:x})=>{const f=s.nt(),{alt:h,src:$,width:b="77px",height:m="77px"}=d,w=u.useCallback(()=>{i==null||i.onClick()},[i]),j=u.useCallback(()=>{r==null||r.onClick()},[r]),I=t.jsx(y,{alignItems:"center","aria-label":g,"aria-modal":"true",bgColor:n?"rgba(52, 64, 84, 70%)":"",display:"flex",height:"100vh",justify:"center",left:"0",position:e?"fixed":"absolute",top:"0px",width:"100%",zIndex:99999,children:t.jsxs(y,{bgColor:f.palette.white,border:`1px solid ${f.palette.gray[200]}`,borderRadius:"8px",display:"inline-flex",flexDirection:"column",maxWidth:p,pb:2.5,pl:2.5,pr:2.5,pt:2.5,shadow:"lg",width:"100%",zIndex:11,children:[t.jsxs(y,{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",children:[t.jsx(y,{children:t.jsx(G,{alt:h,height:m,publicId:$,width:b})}),t.jsxs(y,{display:"flex",flexDirection:"column",gap:.5,mb:1.5,mt:1.5,children:[t.jsx(A,{color:x,fontWeight:"bold",lineSpacing:2.5,size:"lg",textAlign:"center",children:g}),t.jsx(ci,{description:l,highlightDescription:c})]})]}),a&&t.jsx(y,{mb:1,scroll:"y",children:t.jsx(y,{height:"100%",children:a})}),t.jsxs(y,{alignItems:"flex-start",display:"flex",gap:1,justify:"center",children:[s.lodashExports.isObject(r)?t.jsx(D,{onClick:j,variant:(r==null?void 0:r.variant)??"primary",children:r==null?void 0:r.text},r==null?void 0:r.key):void 0,s.lodashExports.isObject(i)?t.jsx(D,{onClick:w,variant:(i==null?void 0:i.variant)??"tertiary",children:i==null?void 0:i.text},i==null?void 0:i.key):void 0]})]})});return e?U.createPortal(I,o??document.body):I},no=s.dt.div`
|
|
2634
2634
|
${({theme:e})=>`
|
|
2635
2635
|
height: ${e.spacing[1]};
|
|
2636
2636
|
width: ${e.spacing[1]};
|
|
@@ -2661,7 +2661,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2661
2661
|
font-size: ${e.spacing[.5]};
|
|
2662
2662
|
}
|
|
2663
2663
|
`}
|
|
2664
|
-
`,
|
|
2664
|
+
`,di=({margin:e,onClick:i,text:n})=>{const a=s.nt(),r=t.jsxs(no,{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 n!==void 0?t.jsx(y,{cursor:"pointer",display:"inline-block",mr:e,onClick:i,children:t.jsxs(y,{alignItems:"center",bgColor:a.palette.warning[50],borderRadius:"4px",display:"flex",padding:[.25,.25,.25,.25],width:"fit-content",children:[r,t.jsx(k,{color:a.palette.warning[500],display:"inline",ml:.25,size:"xs",children:n})]})}):t.jsx(y,{display:"inline-block",mr:e,onClick:i,children:r})},ao=({score:e})=>{const i=s.nt(),n=e<=33?"priority-bars-low":"priority-bars-medium",a=e>66||e===0?"priority-bars-high":n;return t.jsxs(y,{alignItems:"center",display:"inline-flex",gap:.25,children:[t.jsx(C,{icon:a,iconClass:e<=66?"fa-kit-duotone":"",iconColor:e>0?i.palette.primary[500]:i.palette.gray[200],iconSize:"xs",iconType:"fa-kit",secondaryColor:i.palette.gray[200]}),t.jsx(k,{color:i.palette.gray[800],size:"sm",textAlign:"right",children:e+"%"})]})},{getVariant:ro}=Y(e=>({compliance:`
|
|
2665
2665
|
display: inline-flex;
|
|
2666
2666
|
|
|
2667
2667
|
&.horizontal {
|
|
@@ -2719,17 +2719,17 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2719
2719
|
.progress-bar {
|
|
2720
2720
|
background-color: ${e.palette.primary[500]};
|
|
2721
2721
|
}
|
|
2722
|
-
`})),
|
|
2722
|
+
`})),oo=(e,i)=>i<50?e.palette.error[500]:i<80?e.palette.warning[500]:e.palette.success[500],so=s.dt.div`
|
|
2723
2723
|
${({theme:e,$minWidth:i,$orientation:n,$rounded:a,$variant:r})=>`
|
|
2724
2724
|
background-color: ${e.palette.gray[100]};
|
|
2725
2725
|
border-radius: ${a?"100px":"unset"};
|
|
2726
2726
|
${n==="horizontal"?"min-width":"min-height"}: ${i}px;
|
|
2727
2727
|
${n==="horizontal"?"":"height: 100%;"}
|
|
2728
2728
|
|
|
2729
|
-
${
|
|
2729
|
+
${ro(e,r)}
|
|
2730
2730
|
|
|
2731
2731
|
`}
|
|
2732
|
-
`,
|
|
2732
|
+
`,lo=s.dt.div`
|
|
2733
2733
|
${({theme:e,$percentage:i,$rounded:n,$variant:a})=>`
|
|
2734
2734
|
display: inline-flex;
|
|
2735
2735
|
width: ${i}%;
|
|
@@ -2739,9 +2739,9 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2739
2739
|
border-radius: ${n?"100px":"unset"};
|
|
2740
2740
|
border-end-end-radius: ${n&&i<100?"0":"inherit"};
|
|
2741
2741
|
border-start-end-radius: ${n&&i<100?"0":"inherit"};
|
|
2742
|
-
background-color: ${a==="compliance"?
|
|
2742
|
+
background-color: ${a==="compliance"?oo(e,i):"inherit"};
|
|
2743
2743
|
`}
|
|
2744
|
-
`,
|
|
2744
|
+
`,co=({minWidth:e=100,percentage:i,percentageLocation:n="right",showPercentage:a=!1,orientation:r="horizontal",rounded:o=!0,variant:l="default"})=>{const c=a&&n==="left",d=a?t.jsx(y,{alignItems:"center",display:"flex",justify:c?"flex-end":"flex-start",width:"40px",children:t.jsx(k,{ml:.5,mr:c?.5:0,size:"sm",children:`${i}%`})}):null,p=t.jsx(so,{$minWidth:e,$orientation:r,$rounded:o,$variant:l,className:r,children:t.jsx(lo,{$percentage:i,$rounded:o,$variant:l,className:"progress-bar"})});return t.jsxs(y,{alignItems:"center",display:"inline-flex",flexDirection:c?"row-reverse":"row",height:r==="horizontal"?"auto":"100%",maxWidth:c?`${e+43}px`:void 0,minWidth:c?`${e+43}px`:void 0,textAlign:"end",children:[p,d]})},po=s.dt(Q)`
|
|
2745
2745
|
animation: ${({$animationTime:e})=>`progress-bar ${e}s ease-in-out`};
|
|
2746
2746
|
animation-fill-mode: both;
|
|
2747
2747
|
|
|
@@ -2754,12 +2754,12 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2754
2754
|
width: 100%;
|
|
2755
2755
|
}
|
|
2756
2756
|
}
|
|
2757
|
-
`,
|
|
2757
|
+
`,go=e=>e*1e3/100,uo=({progressTime:e=10,onComplete:i})=>{const n=s.nt(),a=100,[r,o]=u.useState(0);return u.useEffect(()=>{r===a&&(i==null||i())},[r,i]),u.useEffect(()=>{const l=setInterval(()=>{o(c=>c===a?0:c+1)},go(e));return()=>{clearInterval(l)}},[r,e]),t.jsx(y,{bgColor:n.palette.gray[200],height:"4px",children:t.jsx(po,{$animationTime:e,bgGradient:n.palette.gradients["01"],height:"100%",width:`${r}%`})})},xo=s.dt.div.attrs({className:"comp-scroll-up"})`
|
|
2758
2758
|
bottom: 15px;
|
|
2759
2759
|
position: fixed;
|
|
2760
2760
|
right: 140px;
|
|
2761
2761
|
z-index: 100;
|
|
2762
|
-
`,
|
|
2762
|
+
`,fo=({scrollerId:e="dashboard",visibleAt:i=500})=>{const[n,a]=u.useState(!1),[r,o]=u.useState(null);u.useEffect(()=>{o(document.getElementById(e)),r==null||r.addEventListener("scroll",()=>{a(r.scrollTop>i)})},[r,e,i]);const l=u.useCallback(()=>{r==null||r.scrollTo({behavior:"smooth",top:0})},[r]);return n?t.jsx(xo,{children:t.jsx(B,{height:"40px",icon:"arrow-up",iconSize:"sm",id:"scroll-up",onClick:l,width:"40px"})}):null},ho=s.dt.a`
|
|
2763
2763
|
${({theme:e})=>`
|
|
2764
2764
|
align-items: center;
|
|
2765
2765
|
display: flex;
|
|
@@ -2804,7 +2804,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2804
2804
|
width: 270px;
|
|
2805
2805
|
}
|
|
2806
2806
|
`}
|
|
2807
|
-
|
|
2807
|
+
`,bo=s.dt.div.attrs({className:"icon-wrap"})`
|
|
2808
2808
|
${({theme:e})=>`
|
|
2809
2809
|
align-items: center;
|
|
2810
2810
|
background: ${e.palette.primary[25]};
|
|
@@ -2819,7 +2819,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2819
2819
|
font-size: 20px;
|
|
2820
2820
|
}
|
|
2821
2821
|
`}
|
|
2822
|
-
|
|
2822
|
+
`,$o=s.dt.div`
|
|
2823
2823
|
${({theme:e})=>`
|
|
2824
2824
|
align-items: flex-start;
|
|
2825
2825
|
display: flex;
|
|
@@ -2851,7 +2851,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2851
2851
|
width: 320px;
|
|
2852
2852
|
}
|
|
2853
2853
|
`}
|
|
2854
|
-
`,
|
|
2854
|
+
`,yo=s.dt.form`
|
|
2855
2855
|
${({theme:e})=>`
|
|
2856
2856
|
align-items: center;
|
|
2857
2857
|
display: flex;
|
|
@@ -2860,7 +2860,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2860
2860
|
padding: ${e.spacing[1]} ${e.spacing[1.5]};
|
|
2861
2861
|
width: 100%;
|
|
2862
2862
|
`}
|
|
2863
|
-
`,
|
|
2863
|
+
`,mo=s.dt.input`
|
|
2864
2864
|
${({theme:e})=>`
|
|
2865
2865
|
flex: 1 0 0;
|
|
2866
2866
|
border: none;
|
|
@@ -2886,7 +2886,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2886
2886
|
font-size: ${e.typography.text.sm};
|
|
2887
2887
|
}
|
|
2888
2888
|
`}
|
|
2889
|
-
`,
|
|
2889
|
+
`,wo=s.dt.button`
|
|
2890
2890
|
${({theme:e})=>`
|
|
2891
2891
|
align-items: center;
|
|
2892
2892
|
border-radius: ${e.spacing[.5]};
|
|
@@ -2949,7 +2949,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2949
2949
|
height: ${e.spacing[.5]};
|
|
2950
2950
|
}
|
|
2951
2951
|
`}
|
|
2952
|
-
`,je=({hit:e,icon:i="infinity",showIcon:n=!1})=>{const{slug:a,title:r}=e,o=String(a).startsWith("/pages/")?String(a).replace("/pages/","/"):String(a);return t.jsxs(
|
|
2952
|
+
`,je=({hit:e,icon:i="infinity",showIcon:n=!1})=>{const{slug:a,title:r}=e,o=String(a).startsWith("/pages/")?String(a).replace("/pages/","/"):String(a);return t.jsxs(ho,{href:o,rel:"nofollow noopener noreferrer",children:[n&&t.jsx(bo,{children:t.jsx(C,{icon:i,iconClass:"fill-gradient-01",iconSize:"sm",iconType:"fa-light"})}),t.jsx(k,{color:S.palette.gray[800],lineSpacing:1.5,size:"md",sizeSm:"sm",whiteSpace:"wrap",children:String(r)})]})},jo=[{hit:{slug:"/services/continuous-hacking/",title:"Continuous Hacking"},icon:"infinity"},{hit:{slug:"/platform/",title:"Platform"},icon:"sidebar"},{hit:{slug:"/plans/",title:"Plans"},icon:"star-christmas"},{hit:{slug:"/blog/",title:"Blog"},icon:"pen-line"}],xt={hit:{slug:"/contact-us/",title:"Contact Support"},icon:"envelope"},vo=({items:e,placeholder:i="Search",refine:n,query:a})=>{const[r,o]=u.useState(a),[l,c]=u.useState(!1),d=u.useRef(null),p=u.useRef(null),g=r.length>=2,x=u.useCallback(w=>{o(w),n(w)},[n]),f=u.useCallback(()=>{x("")},[x]),h=u.useCallback(()=>{c(!0)},[]),$=u.useCallback(w=>{x(w.currentTarget.value)},[x]),b=u.useCallback(w=>{w.preventDefault(),w.stopPropagation(),f(),p.current&&p.current.focus()},[f]),m=u.useCallback(w=>{w.preventDefault(),w.stopPropagation(),p.current&&p.current.blur()},[]);return ee(d.current,()=>{f(),c(!1)},!0),t.jsxs($o,{ref:d,children:[t.jsxs(yo,{action:"",noValidate:!0,onReset:b,onSubmit:m,role:"search",children:[t.jsxs("div",{className:"flex gap-2 w-full",children:[t.jsx("div",{className:"h-10 p-2",children:t.jsx(C,{icon:"magnifying-glass",iconSize:"sm",iconType:"fa-light"})}),t.jsx(mo,{autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",maxLength:512,onChange:$,onFocus:h,placeholder:i,ref:p,spellCheck:!1,type:"search",value:r})]}),g&&t.jsx(wo,{type:"reset",children:t.jsx(C,{icon:"xmark",iconSize:"sm",iconType:"fa-light"})})]}),l&&r.length<2&&t.jsxs(De,{children:[t.jsx(k,{color:S.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Suggested"}),t.jsx("div",{className:"flex flex-col items-start self-stretch",children:jo.map(({hit:w,icon:j},I)=>t.jsx(je,{hit:w,icon:j,showIcon:!0},`${j}-${I}`))}),t.jsx(k,{color:S.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Can’t find what you’re looking for?"}),t.jsx(je,{hit:xt.hit,icon:xt.icon,showIcon:!0})]}),g&&e.length>0&&t.jsxs(De,{$showHits:g,children:[t.jsx(k,{color:S.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Results"}),t.jsx("div",{className:"flex flex-col items-start self-stretch",children:e.map(w=>t.jsx(je,{hit:w},w.objectID))})]}),g&&e.length===0&&t.jsx(De,{$empty:e.length===0,children:t.jsxs("div",{className:"items-center flex flex-col gap-4 py-[90px] w-full",children:[t.jsx(G,{height:96,publicId:"airs/search-bar/empty-state-icon",width:96}),t.jsx(A,{display:"flex",size:"sm",sizeSm:"xs",textAlign:"center",children:"No results found"}),t.jsxs(k,{display:"flex",lineSpacing:1.5,size:"md",sizeSm:"sm",textAlign:"center",children:[`“${r}” did not match.`,t.jsx("br",{}),"Please try again."]}),t.jsx(D,{onClick:f,variant:"secondary",children:"Clear search"})]})})]})},ko={critical:{bgColor:S.palette.primary[700],colorL:S.palette.gray[800],colorR:S.palette.white},disable:{bgColor:S.palette.gray[200],colorL:S.palette.gray[400],colorR:S.palette.gray[400]},high:{bgColor:S.palette.error[500],colorL:S.palette.gray[800],colorR:S.palette.white},low:{bgColor:S.palette.warning[200],colorL:S.palette.gray[800],colorR:S.palette.gray[800]},medium:{bgColor:S.palette.warning[500],colorL:S.palette.gray[800],colorR:S.palette.gray[800]}},Co=({textL:e,textR:i,variant:n})=>{const a=s.nt(),{bgColor:r,colorL:o,colorR:l}=ko[n];return t.jsxs(y,{alignItems:"flex-start",display:"inline-flex",children:[e?t.jsx(y,{alignItems:"center",bgColor:a.palette.white,border:`1px solid ${r}`,borderRadius:"4px 0px 0px 4px",display:"flex",justify:"center",padding:[0,.25,0,.25],children:t.jsx(k,{color:o,size:"xs",children:e})}):void 0,t.jsx(y,{alignItems:"center",bgColor:r,border:`1px solid ${r}`,borderRadius:e?"0px 4px 4px 0px":"4px",display:"flex",padding:e?[0,.25,0,.125]:[0,.25,0,.25],pb:.125,pl:.125,pr:.125,pt:.125,children:t.jsx(k,{color:l,size:"xs",children:i})})]})},So=(e,i)=>{const n={critical:S.palette.primary[700],high:S.palette.error[500],low:S.palette.warning[200],medium:S.palette.warning[500],none:S.palette.gray[200]},a={disabled:S.palette.gray[400],enabled:S.palette.gray[800]},r={critical:S.palette.white,high:S.palette.white,low:S.palette.gray[800],medium:S.palette.gray[800],none:S.palette.gray[400]};return{iconColor:i<1?n.none:n[e],iconText:s.lodashExports.capitalize(e.charAt(0)),iconTextColor:i<1?r.none:r[e],textColor:i<1?a.disabled:a.enabled}},ae=({variant:e,value:i})=>{const{iconColor:n,iconText:a,iconTextColor:r,textColor:o}=So(e,i),l=s.lodashExports.capitalize(e.charAt(0))+e.slice(1);return t.jsxs(y,{alignItems:"center",display:"inline-flex",gap:.5,minWidth:"43px",children:[t.jsx(M,{id:l,place:"top",tip:l,children:t.jsx(y,{alignItems:"center",bgColor:n,borderRadius:"4px",cursor:"pointer",display:"flex",height:"22px",maxWidth:"22px",minWidth:"22px",children:t.jsx(k,{color:r,size:"sm",textAlign:"center",children:a})})}),t.jsx(k,{color:o,size:"sm",children:i})]})},zo=({critical:e,high:i,medium:n,low:a})=>t.jsxs(y,{alignItems:"center",display:"inline-flex",gap:1,children:[t.jsx(ae,{value:e,variant:"critical"}),t.jsx(ae,{value:i,variant:"high"}),t.jsx(ae,{value:n,variant:"medium"}),t.jsx(ae,{value:a,variant:"low"})]}),Io=s.dt.div`
|
|
2953
2953
|
${({theme:e})=>`
|
|
2954
2954
|
border-radius: ${e.spacing[.25]};
|
|
2955
2955
|
cursor: pointer;
|
|
@@ -2967,7 +2967,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2967
2967
|
display: block;
|
|
2968
2968
|
}
|
|
2969
2969
|
`}
|
|
2970
|
-
`,
|
|
2970
|
+
`,To=({visibleElement:e,hiddenElement:i})=>t.jsxs(Io,{children:[e,t.jsx(y,{display:"none",position:"absolute",top:"100%",zIndex:10,children:i})]}),pi=({customBadge:e=void 0,description:i,icon:n,onClick:a,requiresUpgrade:r=!1,title:o})=>{const l=s.nt();return t.jsxs(y,{bgColor:l.palette.white,bgColorHover:l.palette.gray[100],cursor:"pointer",display:"flex",gap:.5,onClick:a,px:1.25,py:1,width:"100%",children:[t.jsx(y,{alignItems:"center",bgColor:l.palette.gray[300],borderRadius:l.spacing[.25],display:"flex",height:"24px",justify:"center",width:"24px",children:t.jsx(C,{icon:n,iconColor:l.palette.gray[800],iconSize:"xxs",ml:.5,mr:.5})}),t.jsxs(y,{children:[t.jsxs(y,{alignItems:"center",display:"inline-flex",gap:.5,children:[t.jsx(k,{color:l.palette.gray[800],size:"sm",children:o}),r?t.jsx(di,{text:"Upgrade"}):void 0,e]}),t.jsx(k,{color:l.palette.gray[400],size:"xs",children:i})]})]})},Fo=s.dt(s.m.div)`
|
|
2971
2971
|
${({theme:e})=>`
|
|
2972
2972
|
background-color: ${e.palette.white};
|
|
2973
2973
|
box-shadow: ${e.shadows.lg};
|
|
@@ -2990,7 +2990,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2990
2990
|
height: auto;
|
|
2991
2991
|
}
|
|
2992
2992
|
`}
|
|
2993
|
-
`,
|
|
2993
|
+
`,No=({children:e,closeIconId:i="close-menu",isOpen:n,items:a,onClose:r,primaryButtonText:o,primaryOnClick:l,secondaryButtonText:c,secondaryOnClick:d,title:p})=>{const g=s.nt(),x=u.useRef(null),f=u.useCallback(h=>()=>{h(),r()},[r]);return u.useEffect(()=>{const h=["mousedown","touchstart"],$=b=>{var z;const m=b.target,w=document.getElementById("helpBtn"),j=document.getElementById("filterBtn"),I=(m===w||((w==null?void 0:w.contains(m))??!1)||m===j||(j==null?void 0:j.contains(m)))??!1;n&&!I&&!(((z=x.current)==null?void 0:z.contains(m))??!1)&&r()};return h.forEach(b=>{document.addEventListener(b,$,{passive:!0})}),()=>{h.forEach(b=>{document.removeEventListener(b,$)})}},[n,r]),t.jsx(s.LazyMotion,{features:s.domAnimation,children:t.jsx(Fo,{animate:n?{display:"block",x:0}:{transitionEnd:{display:"none"},x:"100%"},initial:{display:"none",x:"100%"},ref:x,transition:{bounce:0,duration:.6,type:"spring"},children:t.jsxs(y,{height:"100%",position:"relative",children:[t.jsxs(y,{alignItems:"center",bgColor:g.palette.white,borderBottom:"1px solid",borderColor:g.palette.gray[200],display:"flex",gap:1.25,justify:"space-between",padding:[1.25,1.25,1.25,1.25],position:"sticky",top:"0",zIndex:40,children:[t.jsx(k,{color:g.palette.black,display:"inline",fontWeight:"bold",size:"xl",children:p}),t.jsx(B,{icon:"close",iconColor:g.palette.gray[400],iconSize:"xs",iconTransform:"grow-4",iconType:"fa-light",id:i,onClick:r,px:.25,py:.25,variant:"ghost"})]}),t.jsxs(y,{display:"flex",flexDirection:"column",justify:"space-between",minHeight:"100vh",children:[t.jsxs(y,{py:1.25,children:[(a??[]).map(({customBadge:h,description:$,icon:b,onClick:m,requiresUpgrade:w,title:j})=>t.jsx(pi,{customBadge:h,description:$,icon:b,onClick:f(m),requiresUpgrade:w,title:j},j)),e&&t.jsx(y,{px:1.25,children:e})]}),o===void 0?void 0:t.jsxs(y,{alignItems:"center",bgColor: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})]})]})]})})})},Eo=(e,i)=>i>=50?`
|
|
2994
2994
|
${e.palette.gray[200]} 50%,
|
|
2995
2995
|
${e.palette.primary[500]} 50.05%,
|
|
2996
2996
|
${e.palette.primary[500]} ${i}%,
|
|
@@ -3001,7 +3001,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3001
3001
|
${e.palette.primary[500]} 50%,
|
|
3002
3002
|
${e.palette.gray[200]} 50.05%,
|
|
3003
3003
|
${e.palette.gray[200]} 100%
|
|
3004
|
-
`,
|
|
3004
|
+
`,Ro=s.dt.div`
|
|
3005
3005
|
${({theme:e,$min:i,$value:n})=>`
|
|
3006
3006
|
align-items: center;
|
|
3007
3007
|
align-self: stretch;
|
|
@@ -3017,7 +3017,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3017
3017
|
${i>=0?`
|
|
3018
3018
|
${e.palette.primary[500]} ${n}%,
|
|
3019
3019
|
${e.palette.gray[200]} ${n}%
|
|
3020
|
-
`:
|
|
3020
|
+
`:Eo(e,n)}
|
|
3021
3021
|
);
|
|
3022
3022
|
border-radius: ${e.spacing[.125]};
|
|
3023
3023
|
height: ${e.spacing[.25]};
|
|
@@ -3041,7 +3041,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3041
3041
|
border: 1px solid ${e.palette.primary[500]};
|
|
3042
3042
|
}
|
|
3043
3043
|
`}
|
|
3044
|
-
`,
|
|
3044
|
+
`,Do=s.dt.div`
|
|
3045
3045
|
${({theme:e})=>`
|
|
3046
3046
|
align-items: center;
|
|
3047
3047
|
display: flex;
|
|
@@ -3055,7 +3055,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3055
3055
|
font-size: ${e.spacing[.5]};
|
|
3056
3056
|
}
|
|
3057
3057
|
`}
|
|
3058
|
-
`,
|
|
3058
|
+
`,Lo=s.dt.output`
|
|
3059
3059
|
${({theme:e})=>`
|
|
3060
3060
|
align-items: flex-end;
|
|
3061
3061
|
border-radius: ${e.spacing[.5]};
|
|
@@ -3066,7 +3066,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3066
3066
|
padding: ${e.spacing[.625]} ${e.spacing[.75]};
|
|
3067
3067
|
width: 59px;
|
|
3068
3068
|
`}
|
|
3069
|
-
`,
|
|
3069
|
+
`,gi=({state:e,trackRef:i,index:n,name:a})=>{const r=u.useRef(null),{thumbProps:o,inputProps:l,isDragging:c}=s.$47b897dc8cdb026b$export$8d15029008292ae({index:n,trackRef:i,inputRef:r},e);return t.jsx("div",{...o,className:`thumb ${c?"dragging":""}`,children:t.jsx(s.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:t.jsx("input",{...l,"aria-label":a,ref:r})})})},Po=(e,i,n)=>Math.round((n-e)/(i-e)*100),Wo=e=>{const i=s.nt(),n=u.useRef(null),{label:a,minValue:r=0,maxValue:o=100,name:l,setValue:c,watch:d}=e,p=s.$a916eb452884faea$export$b7a616150fdb9f44(),g=s.$28f99e3e86e6ec45$export$e5fda3247f5d67f9({...e,numberFormatter:p,onChange($){c==null||c(l,$)},value:d==null?void 0:d(l)}),x=Po(r,o,g.getThumbValue(0)),{groupProps:f,trackProps:h}=s.$bcca50147b47f54d$export$56b2c08e277f365({...e,"aria-label":l,id:l},g,n);return t.jsx(O,{htmlFor:l,label:a,children:t.jsxs(y,{alignItems:"center",display:"inline-flex",gap:1.25,pl:.5,width:"100%",children:[t.jsxs(Ro,{...f,$min:r??0,$value:x,className:"slider",children:[t.jsx("div",{...h,className:`track ${g.isDisabled?"disabled":""}`,ref:n,children:t.jsx(gi,{index:0,name:l,state:g,trackRef:n})}),t.jsxs(Do,{children:[t.jsx("p",{children:`${p.format(r)} (Low)`}),r<0&&t.jsx("p",{children:"0"}),t.jsx("p",{children:`${p.format(o)} (High)`})]})]}),t.jsx(Lo,{children:t.jsx(k,{color:i.palette.gray[800],size:"sm",textAlign:"right",children:g.getThumbValueLabel(0)})})]})})},{getVariant:Ao}=Y(e=>({completed:`
|
|
3070
3070
|
background-color: ${e.palette.primary[500]};
|
|
3071
3071
|
color: ${e.palette.white};
|
|
3072
3072
|
|
|
@@ -3089,7 +3089,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3089
3089
|
&::after {
|
|
3090
3090
|
background-color: ${e.palette.gray[200]};
|
|
3091
3091
|
}
|
|
3092
|
-
`})),
|
|
3092
|
+
`})),Bo=s.dt.div`
|
|
3093
3093
|
${({theme:e})=>`
|
|
3094
3094
|
align-items: stretch;
|
|
3095
3095
|
background-color: ${e.palette.white};
|
|
@@ -3099,7 +3099,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3099
3099
|
padding: ${`${e.spacing[1]} ${e.spacing[1]}`};
|
|
3100
3100
|
scroll-behavior: unset;
|
|
3101
3101
|
`}
|
|
3102
|
-
`,
|
|
3102
|
+
`,_o=s.dt.div`
|
|
3103
3103
|
display: flex;
|
|
3104
3104
|
flex-direction: row;
|
|
3105
3105
|
margin-bottom: ${({theme:e})=>e.spacing[2]};
|
|
@@ -3107,7 +3107,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3107
3107
|
&:last-child > div:first-child > span::after {
|
|
3108
3108
|
display: none;
|
|
3109
3109
|
}
|
|
3110
|
-
`,
|
|
3110
|
+
`,Oo=s.dt.div`
|
|
3111
3111
|
${({theme:e})=>`
|
|
3112
3112
|
display: inline-flex;
|
|
3113
3113
|
font-family: ${e.typography.type.primary};
|
|
@@ -3119,7 +3119,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3119
3119
|
margin-right: ${e.spacing[.5]};
|
|
3120
3120
|
}
|
|
3121
3121
|
`}
|
|
3122
|
-
`,
|
|
3122
|
+
`,Ho=s.dt.span`
|
|
3123
3123
|
${({theme:e,$variant:i})=>`
|
|
3124
3124
|
border-radius: 6px;
|
|
3125
3125
|
display: inline-block;
|
|
@@ -3142,9 +3142,9 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3142
3142
|
height: calc(100% - ${e.spacing[1]});
|
|
3143
3143
|
}
|
|
3144
3144
|
|
|
3145
|
-
${
|
|
3145
|
+
${Ao(e,i)}
|
|
3146
3146
|
`}
|
|
3147
|
-
`,Vo=({button:{disabled:e=!1,text:i,type:n="button",onClick:a},steps:r})=>{const[o,l]=u.useState(1),c=u.useCallback((d,p)=>()=>{l(g=>g+d),p==null||p()},[]);return t.jsx(
|
|
3147
|
+
`,Vo=({button:{disabled:e=!1,text:i,type:n="button",onClick:a},steps:r})=>{const[o,l]=u.useState(1),c=u.useCallback((d,p)=>()=>{l(g=>g+d),p==null||p()},[]);return t.jsx(Bo,{children:r.map((d,p)=>{const{content:g,title:x,nextAction:f,previousAction:h}=d,$=p+1,b=$===o?"current":"disabled",m=$<o?"completed":b;return t.jsxs(_o,{children:[t.jsx(y,{maxWidth:"40px",position:"relative",children:t.jsx(Ho,{$variant:m,children:m==="completed"?t.jsx(C,{icon:"check",iconSize:"xs",iconType:"fa-solid"}):$})}),t.jsxs(y,{ml:1.5,width:"100%",children:[t.jsx(A,{fontWeight:"bold",lineSpacing:1.25,mb:1.5,size:"xs",children:x}),m==="current"&&t.jsxs(y,{children:[g,t.jsxs(Oo,{children:[o>1&&t.jsx(D,{disabled:d.isDisabledPrevious??!1,onClick:c(-1,h),variant:"tertiary",children:"Previous"}),o<r.length?t.jsx(D,{disabled:d.isDisabledNext??!1,onClick:c(1,f),variant:"primary",children:"Next step"}):t.jsx(D,{disabled:e,onClick:a,type:n,variant:"primary",children:i})]})]})]})]},d.title)})})},Mo=s.dt.button`
|
|
3148
3148
|
${({theme:e})=>`
|
|
3149
3149
|
align-items: center;
|
|
3150
3150
|
background-color: ${e.palette.white};
|
|
@@ -3186,7 +3186,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3186
3186
|
background-color: ${e.palette.gray[100]};
|
|
3187
3187
|
}
|
|
3188
3188
|
`}
|
|
3189
|
-
`,
|
|
3189
|
+
`,Go={add:{icon:"plus"},approve:{icon:"check"},disabled:{icon:"ban"},reject:{icon:"xmark"},submit:{icon:"arrow-right"},success:{icon:"check"}},Uo=({disabled:e=!1,icon:i,id:n,label:a,name:r,onClick:o,type:l="button",variant:c})=>{const d=s.nt(),p=t.jsxs(Mo,{"aria-label":r??void 0,className:c,disabled:e,id:n,onClick:o,type:l,children:[t.jsx(C,{clickable:!1,icon:i??Go[c].icon,iconSize:r===void 0?"xxs":"xs",iconType:"fa-light"}),r??void 0]});return t.jsxs(y,{alignItems:"center",display:"flex",children:[p,a&&t.jsx(k,{color:d.palette.gray[800],ml:.5,size:"sm",children:a})]})},Yo=({items:e})=>t.jsx(ya,{children:e.map(({isActive:i,label:n,onClick:a},r)=>t.jsx($a,{className:i?"active":"",onClick:a,type:"button",children:t.jsx(A,{color:"inherit",fontWeight:"semibold",size:"sm",sizeSm:"xs",children:n})},`${n}-${r}`))}),qo=s.dt.div`
|
|
3190
3190
|
${({theme:e})=>`
|
|
3191
3191
|
align-items: center;
|
|
3192
3192
|
background-color: ${e.palette.white};
|
|
@@ -3208,7 +3208,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3208
3208
|
border: 1px solid ${e.palette.gray[600]};
|
|
3209
3209
|
}
|
|
3210
3210
|
`}
|
|
3211
|
-
`,
|
|
3211
|
+
`,Ko=s.dt.div`
|
|
3212
3212
|
${({theme:e})=>`
|
|
3213
3213
|
display: flex;
|
|
3214
3214
|
flex-direction: column;
|
|
@@ -3279,7 +3279,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3279
3279
|
}
|
|
3280
3280
|
}
|
|
3281
3281
|
`}
|
|
3282
|
-
`,
|
|
3282
|
+
`,ui=({date:e,description:i,title:n})=>{const a=s.nt();return t.jsxs(qo,{className:"timeline-card",children:[t.jsx(k,{color:a.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:e}),t.jsx(k,{color:a.palette.gray[800],fontWeight:"bold",lineSpacing:1.5,mb:.5,size:"md",textAlign:"center",children:n}),t.jsx("div",{children:i.map((r,o)=>{const l=`${r}#${o}`;return t.jsx(k,{size:"sm",textAlign:"center",wordBreak:"break-word",children:r},l)})})]})},Xo=({items:e})=>t.jsx(Ko,{children:e.map((i,n)=>t.jsx(ui,{date:i.date,description:i.description,title:i.title},`${i.title}-${n}`))}),Zo=s.dt.div`
|
|
3283
3283
|
${({theme:e})=>`
|
|
3284
3284
|
align-items: center;
|
|
3285
3285
|
display: flex;
|
|
@@ -3309,7 +3309,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3309
3309
|
width: 320px;
|
|
3310
3310
|
}
|
|
3311
3311
|
`}
|
|
3312
|
-
`,
|
|
3312
|
+
`,Jo=s.dt.button`
|
|
3313
3313
|
${({theme:e})=>`
|
|
3314
3314
|
align-items: center;
|
|
3315
3315
|
background: linear-gradient(
|
|
@@ -3338,7 +3338,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3338
3338
|
color: ${e.palette.white};
|
|
3339
3339
|
}
|
|
3340
3340
|
`}
|
|
3341
|
-
`,
|
|
3341
|
+
`,Qo=({defaultSelection:e,options:i,handleClick:n})=>{const[a,r]=u.useState(e??i[0]),o=u.useCallback(l=>()=>{r(l),n(l)},[n]);return t.jsx(Zo,{children:i.map((l,c)=>t.jsx(Jo,{className:`${l.includes(a)&&"selected"}`,onClick:o(l),children:t.jsx(k,{color:"inherit",fontWeight:"bold",size:"md",sizeSm:"sm",textAlign:"center",children:l})},`${l}-${c}`))})},es={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:""},ts=({run:e,steps:i,onFinish:n})=>{const[a,r]=u.useState(e),[o,l]=u.useState(0),c=u.useCallback(d=>{const{action:p,index:g,status:x,type:f}=d;[s.EVENTS.STEP_AFTER,s.EVENTS.TARGET_NOT_FOUND].includes(f)?l(g+(p===s.ACTIONS.PREV?-1:1)):([s.STATUS.FINISHED,s.STATUS.SKIPPED].includes(x)||p==="close")&&(r(!1),s.lodashExports.isUndefined(n)||n())},[n]);return t.jsx(s.components_default,{callback:c,continuous:!0,disableOverlayClose:!0,disableScrollParentFix:!0,run:a,spotlightClicks:!0,stepIndex:o,steps:i,styles:{buttonNext:{display:o===i.length-1?"none":"block"},options:{zIndex:9999}}})},is=s.dt.form`
|
|
3342
3342
|
${({theme:e})=>`
|
|
3343
3343
|
align-items: center;
|
|
3344
3344
|
background: ${e.palette.gray[50]};
|
|
@@ -3366,7 +3366,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3366
3366
|
width: 320px;
|
|
3367
3367
|
}
|
|
3368
3368
|
`}
|
|
3369
|
-
`,
|
|
3369
|
+
`,ns=s.dt.div`
|
|
3370
3370
|
align-items: flex-start;
|
|
3371
3371
|
align-self: stretch;
|
|
3372
3372
|
display: flex;
|
|
@@ -3380,7 +3380,7 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3380
3380
|
text-align: center;
|
|
3381
3381
|
}
|
|
3382
3382
|
}
|
|
3383
|
-
`,
|
|
3383
|
+
`,as=s.dt.div`
|
|
3384
3384
|
${({theme:e})=>`
|
|
3385
3385
|
align-items: flex-start;
|
|
3386
3386
|
align-self: stretch;
|
|
@@ -3401,4 +3401,4 @@ ${h[8]}...`:(h.length<8&&d(!1),i)},[o,i,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3401
3401
|
flex-direction: column;
|
|
3402
3402
|
}
|
|
3403
3403
|
`}
|
|
3404
|
-
`,
|
|
3404
|
+
`,rs=({children:e,name:i,onSubmit:n,submitDisabled:a,submitLabel:r="Submit"})=>t.jsx(is,{"aria-label":i,name:i,onSubmit:n,children:t.jsxs(ns,{children:[e,t.jsx(D,{disabled:a,type:"submit",children:r})]})});exports.Accordion=Gi;exports.AccordionContent=bt;exports.ActionButton=Be;exports.Alert=en;exports.AppliedFilter=ne;exports.AppliedFilters=ti;exports.Avatar=cn;exports.BaseButtonComponent=Ge;exports.BaseComponent=Q;exports.BaseSpanComponent=Ye;exports.BaseTextComponent=Ue;exports.Button=D;exports.Button$1=ve;exports.ButtonToolbarCenter=hr;exports.ButtonToolbarRow=$r;exports.ButtonToolbarStartRow=br;exports.Calendar=Ct;exports.Calendar$1=Ft;exports.Calendar$2=Et;exports.CalendarCell=kt;exports.CalendarGrid=Ie;exports.CardHeader=ze;exports.CardWithImage=gn;exports.CardWithInput=Yn;exports.CardWithOptions=Lt;exports.CardWithSelector=ea;exports.CardWithSwitch=na;exports.Carousel=ca;exports.CategoryTag=He;exports.Checkbox=Ne;exports.CodeSnippet=pa;exports.Col=mr;exports.ColumnsModal=Fa;exports.ComboBox=jt;exports.ComboBoxField=Pe;exports.Container=y;exports.ContentCard=ai;exports.ContentCardCarousel=Ya;exports.CustomThemeProvider=Wi;exports.DateField=zt;exports.DateSelector=oe;exports.Description=ci;exports.Dialog=Fe;exports.Divider=J;exports.Editable=Rn;exports.EmptyButton=Ve;exports.EmptyState=Za;exports.EventDate=ni;exports.FilePreview=mt;exports.FilterControl=Zt;exports.FilterForm=_e;exports.FilterFormContent=Jt;exports.Filters=Ha;exports.FiltersList=Se;exports.FixedTabs=Yo;exports.Form=er;exports.FormItem=as;exports.Gap=jr;exports.GridContainer=ir;exports.GroupSelector=ar;exports.Header=Te;exports.Header$1=Vt;exports.Heading=A;exports.Icon=C;exports.IconButton=B;exports.IndicatorCard=rr;exports.InfoSidebar=or;exports.InnerForm=Ja;exports.Input=Xe;exports.InputDate=Tt;exports.InputDateRange=Nt;exports.InputDateTime=En;exports.InputFile=Wn;exports.InputNumber=Rt;exports.InputNumberRange=Dt;exports.InputTags=Bn;exports.InteractiveCard=cr;exports.InteractiveIcon=oi;exports.ItemList=si;exports.ItemSearching=je;exports.Label=qe;exports.LanguageSelector=fr;exports.Link=X;exports.ListItem=ye;exports.ListItemsWrapper=Ut;exports.LittleFlag=Sr;exports.Loading=Dr;exports.LocationCode=Ot;exports.Logo=_r;exports.LogoCarousel=Ar;exports.MemoizedImage=G;exports.Menu=Or;exports.MenuItem=pi;exports.MessageBanner=Vr;exports.Modal=ii;exports.ModalFooter=Ht;exports.Notification=Yr;exports.NotificationSign=Mt;exports.NumberField=Ce;exports.NumberInput=Xr;exports.OAuthSelector=Jr;exports.Option=wt;exports.OptionBoxContainer=Qe;exports.OptionContainer=Me;exports.OptionContainer$1=ri;exports.OutlineContainer=O;exports.PhoneInput=Gn;exports.PlanCard=to;exports.PopUp=io;exports.Popover=he;exports.PremiumFeature=di;exports.PreviewPanel=Yt;exports.PriorityScore=ao;exports.Progress=uo;exports.ProgressBar=co;exports.RadioButton=Ze;exports.RecommendedTag=li;exports.Row=kr;exports.ScrollButtons=Oe;exports.ScrollUpButton=fo;exports.Search=se;exports.SearchBar=vo;exports.SearchPanel=Kt;exports.SeverityBadge=Co;exports.SeverityOverview=zo;exports.SeverityOverviewBadge=ae;exports.ShowOnHover=To;exports.SingleColumFilters=ei;exports.SlideOutMenu=No;exports.Slider=Wo;exports.Span=re;exports.StepLapse=Vo;exports.Tab=Gt;exports.TableButton=Uo;exports.Tabs=Je;exports.Tag=q;exports.TagsField=Ae;exports.Text=k;exports.TextArea=Un;exports.Thumb=gi;exports.TimeField=It;exports.TimeLine=Xo;exports.TimeLineCard=ui;exports.Toggle=Bt;exports.ToggleButton=Qo;exports.Tooltip=M;exports.Tour=ts;exports.TwoColumnsFilters=Da;exports.WebForm=rs;exports.baseStep=es;exports.getStyledConfig=fe;exports.hiddenProps=ft;exports.icons=Li;exports.setBorder=pe;exports.setDisplay=ge;exports.setInteraction=xe;exports.setMargin=ce;exports.setPadding=le;exports.setPosition=de;exports.setText=ue;exports.theme=S;exports.uniqueIcons=Pi;exports.useCarousel=Pt;exports.useClickOutside=ee;exports.useCloudinaryImage=Wt;exports.useColumnsModal=Kn;exports.useConfirmDialog=Va;exports.useDebouncedCallback=At;exports.useFilterForm=Qt;exports.useModal=Ee;exports.useSearch=Xn;exports.variantBuilder=Y;
|