@fluidattacks/design 3.8.15-pr → 3.8.15
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/grid-container/index.js +1 -1
- package/dist/components/group-selector/index.js +1 -1
- package/dist/components/group-selector/option-container/index.js +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/indicator-card/index.js +1 -1
- package/dist/components/info-sidebar/index.js +1 -1
- package/dist/components/inputs/fields/combobox/field/index.js +1 -1
- package/dist/components/inputs/fields/combobox/index.js +1 -1
- package/dist/components/inputs/fields/combobox/option/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date/index.js +1 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-range/index.js +1 -1
- package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-time/index.js +1 -1
- package/dist/components/inputs/fields/editable/index.js +1 -1
- package/dist/components/inputs/fields/input/index.js +1 -1
- package/dist/components/inputs/fields/input-file/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/field/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/index.js +1 -1
- package/dist/components/inputs/fields/number/index.js +1 -1
- package/dist/components/inputs/fields/number-range/index.js +1 -1
- package/dist/components/inputs/fields/phone/index.js +1 -1
- package/dist/components/inputs/fields/text-area/index.js +1 -1
- package/dist/components/inputs/index.js +1 -1
- package/dist/components/inputs/label/index.js +1 -1
- package/dist/components/inputs/outline-container/index.js +1 -1
- package/dist/components/inputs/utils/action-button/index.js +1 -1
- package/dist/components/inputs/utils/calendar-button/index.js +1 -1
- package/dist/components/inputs/utils/date-selector/index.js +1 -1
- package/dist/components/inputs/utils/date-time-field/index.js +1 -1
- package/dist/components/inputs/utils/dialog/index.js +1 -1
- package/dist/components/inputs/utils/number-field/index.js +1 -1
- package/dist/components/inputs/utils/popover/index.js +1 -1
- package/dist/components/interactive-card/icon/index.js +1 -1
- package/dist/components/interactive-card/index.js +1 -1
- package/dist/components/language-selector/index.js +1 -1
- package/dist/components/language-selector/item-list/index.js +1 -1
- package/dist/components/layout/categories/buttons/index.js +1 -1
- package/dist/components/layout/categories/column/index.js +1 -1
- package/dist/components/layout/categories/gap/index.js +1 -1
- package/dist/components/layout/categories/row/index.js +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list-item/index.js +1 -1
- package/dist/components/little-flag/index.js +1 -1
- package/dist/components/loading/index.js +1 -1
- package/dist/components/logo/index.js +1 -1
- package/dist/components/logo-carousel/index.js +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/message-banner/index.js +1 -1
- package/dist/components/modal/columns-modal/index.js +1 -1
- package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
- package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
- package/dist/components/modal/filters-modal/fields/options-selector/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-control/index.js +1 -1
- package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
- package/dist/components/modal/filters-modal/single-column-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/two-columns-filters/index.js +1 -1
- package/dist/components/modal/footer/index.js +1 -1
- package/dist/components/modal/header/index.js +1 -1
- package/dist/components/modal/index.js +1 -1
- package/dist/components/modal/modal-confirm/index.js +1 -1
- package/dist/components/notification/index.js +1 -1
- package/dist/components/notification-sign/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/oauth-selector/index.js +1 -1
- package/dist/components/oauth-selector/option-container/index.js +1 -1
- package/dist/components/plan-card/index.js +1 -1
- package/dist/components/plan-card/recommended-tag/index.js +1 -1
- package/dist/components/pop-up/description/index.js +1 -1
- package/dist/components/pop-up/index.js +1 -1
- package/dist/components/premium-feature/index.js +1 -1
- package/dist/components/priority-score/index.js +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress-bar/index.js +1 -1
- package/dist/components/radio-button/index.js +1 -1
- package/dist/components/scroll-button/index.js +1 -1
- package/dist/components/search/index.js +1 -1
- package/dist/components/search/types.d.ts +2 -0
- 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-9CBd1KOj.js → components-CgpGhx0w.js} +166 -152
- package/dist/{components-Dvdp27ry.mjs → components-kSHn3dSW.mjs} +244 -206
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),p=require("react"),s=require("./vendor-BiCYkoh5.js"),G=require("react-dom"),Re=require("react-router-dom"),U=e=>({getVariant:(n,i)=>e(n)[i]}),ct=["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"],fn={25:"#fcfcfd",50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#2f394b",800:"#212a36",900:"#161b25"},hn={25:"#fef2f3",50:"#fddfe2",100:"#fbbac0",200:"#f9959e",300:"#f65e6a",400:"#f32637",500:"#bf0b1a",600:"#ac0a17",700:"#9a0915",800:"#870812",900:"#750710"},bn={25:"",50:"",100:"#ffe6ff",200:"",300:"#b8075d",400:"",500:"#7f0540",600:"",700:"#59042d",800:"",900:"#460323"},$n={25:"",50:"#fef3f2",100:"",200:"#fecdca",300:"",400:"",500:"#f04438",600:"",700:"#b42318",800:"",900:""},yn={25:"",50:"#fffaeb",100:"",200:"#fef0c7",300:"",400:"#ffd562",500:"#fdb022",600:"#dc6803",700:"#b54708",800:"",900:""},mn={25:"",50:"#f6fef9",100:"",200:"#a6f4c5",300:"",400:"",500:"#12b76a",600:"",700:"#027a48",800:"",900:""},wn={25:"",50:"#eff8ff",100:"",200:"#b2ddff",300:"",400:"",500:"#2e90fa",600:"",700:"#175cd3",800:"",900:""},jn={"01":"linear-gradient(45deg, #f32637 0%, #b8075d 100%)","02":"linear-gradient(45deg, #fcfcfd 0%, #667085 100%)"},kn={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"}},Cn={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)"},vn={mobile:"480px",tablet:"960px",sm:"1024px",md:"1440px",lg:"1920px"},Sn={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"},zn=["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"],In=[["fal","arrow-down"],["fal","arrow-left"],["fal","arrow-right"],["fal","arrow-up"],["fal","plus"],["fal","minus"],["fas","check"],["fas","circle-question"]],v={typography:kn,shadows:Cn,breakpoints:vn,spacing:Sn,palette:{primary:hn,complementary:bn,error:$n,info:wn,warning:yn,success:mn,black:"#0c111d",white:"#ffffff",gray:fn,gradients:jn}},Tn=({children:e})=>t.jsx(s.ot,{theme:v,children:e}),T=(e,n)=>n===void 0?"":`${e}: ${n};`,oe=e=>{const n=e.py??e.pt??0,i=e.px??e.pr??0,
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),p=require("react"),s=require("./vendor-BiCYkoh5.js"),G=require("react-dom"),Re=require("react-router-dom"),U=e=>({getVariant:(n,i)=>e(n)[i]}),ct=["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"],fn={25:"#fcfcfd",50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#2f394b",800:"#212a36",900:"#161b25"},hn={25:"#fef2f3",50:"#fddfe2",100:"#fbbac0",200:"#f9959e",300:"#f65e6a",400:"#f32637",500:"#bf0b1a",600:"#ac0a17",700:"#9a0915",800:"#870812",900:"#750710"},bn={25:"",50:"",100:"#ffe6ff",200:"",300:"#b8075d",400:"",500:"#7f0540",600:"",700:"#59042d",800:"",900:"#460323"},$n={25:"",50:"#fef3f2",100:"",200:"#fecdca",300:"",400:"",500:"#f04438",600:"",700:"#b42318",800:"",900:""},yn={25:"",50:"#fffaeb",100:"",200:"#fef0c7",300:"",400:"#ffd562",500:"#fdb022",600:"#dc6803",700:"#b54708",800:"",900:""},mn={25:"",50:"#f6fef9",100:"",200:"#a6f4c5",300:"",400:"",500:"#12b76a",600:"",700:"#027a48",800:"",900:""},wn={25:"",50:"#eff8ff",100:"",200:"#b2ddff",300:"",400:"",500:"#2e90fa",600:"",700:"#175cd3",800:"",900:""},jn={"01":"linear-gradient(45deg, #f32637 0%, #b8075d 100%)","02":"linear-gradient(45deg, #fcfcfd 0%, #667085 100%)"},kn={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"}},Cn={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)"},vn={mobile:"480px",tablet:"960px",sm:"1024px",md:"1440px",lg:"1920px"},Sn={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"},zn=["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"],In=[["fal","arrow-down"],["fal","arrow-left"],["fal","arrow-right"],["fal","arrow-up"],["fal","plus"],["fal","minus"],["fas","check"],["fas","circle-question"]],v={typography:kn,shadows:Cn,breakpoints:vn,spacing:Sn,palette:{primary:hn,complementary:bn,error:$n,info:wn,warning:yn,success:mn,black:"#0c111d",white:"#ffffff",gray:fn,gradients:jn}},Tn=({children:e})=>t.jsx(s.ot,{theme:v,children:e}),T=(e,n)=>n===void 0?"":`${e}: ${n};`,oe=e=>{const n=e.py??e.pt??0,i=e.px??e.pr??0,a=e.py??e.pb??0,r=e.px??e.pl??0;if(e.padding){const[o,l,c,d]=e.padding;return`padding: ${v.spacing[o]} ${v.spacing[l]} ${v.spacing[c]} ${v.spacing[d]};`}return`padding: ${v.spacing[n]} ${v.spacing[i]} ${v.spacing[a]} ${v.spacing[r]};`},se=e=>{const n=e.my??e.mt??0,i=e.mx??e.mr??0,a=e.my??e.mb??0,r=e.mx??e.ml??0;if(e.margin){const[o,l,c,d]=e.margin;return`margin: ${v.spacing[o]} ${v.spacing[l]} ${v.spacing[c]} ${v.spacing[d]};`}return`margin: ${v.spacing[n]} ${v.spacing[i]} ${v.spacing[a]} ${v.spacing[r]};`},le=e=>{const n=T("position",e.position),i=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
|
${n}
|
|
3
3
|
${i}
|
|
4
|
-
${r}
|
|
5
4
|
${a}
|
|
5
|
+
${r}
|
|
6
6
|
${o}
|
|
7
7
|
${l}
|
|
8
|
-
`},ce=e=>{const n=T("border",e.border),i=T("border-top",e.borderTop),
|
|
8
|
+
`},ce=e=>{const n=T("border",e.border),i=T("border-top",e.borderTop),a=T("border-right",e.borderRight),r=T("border-bottom",e.borderBottom),o=T("border-left",e.borderLeft),l=T("border-color",e.borderColor),c=T("border-radius",e.borderRadius);return`
|
|
9
9
|
${n}
|
|
10
10
|
${i}
|
|
11
|
-
${r}
|
|
12
11
|
${a}
|
|
12
|
+
${r}
|
|
13
13
|
${o}
|
|
14
14
|
${l}
|
|
15
15
|
${c}
|
|
16
16
|
`},Nn=e=>e.includes("x")?"overflow-x: auto;":"",En=e=>e.includes("y")?"overflow-y: auto;":"",de=e=>{const n=e.scroll?`
|
|
17
17
|
${Nn(e.scroll)}
|
|
18
18
|
${En(e.scroll)}
|
|
19
|
-
`:"",i=T("visibility",e.visibility),
|
|
19
|
+
`:"",i=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),u=T("min-width",e.minWidth),g=T("box-shadow",e.shadow?v.shadows[e.shadow]:void 0),x=T("gap",e.gap===void 0?void 0:v.spacing[e.gap]),f=T("background-color",e.bgColor),h=T("background",e.bgGradient),y=T("flex-direction",e.flexDirection),$=T("flex-grow",e.flexGrow),m=T("justify-content",e.justify),w=T("justify-self",e.justifySelf),j=T("align-items",e.alignItems),I=T("align-self",e.alignSelf),S=T("flex-wrap",e.wrap);return`
|
|
20
20
|
${n}
|
|
21
21
|
${i}
|
|
22
|
-
${r}
|
|
23
22
|
${a}
|
|
23
|
+
${r}
|
|
24
24
|
${o}
|
|
25
25
|
${l}
|
|
26
26
|
${c}
|
|
@@ -30,18 +30,18 @@
|
|
|
30
30
|
${f}
|
|
31
31
|
${h}
|
|
32
32
|
${x}
|
|
33
|
-
${$}
|
|
34
33
|
${y}
|
|
34
|
+
${$}
|
|
35
35
|
${m}
|
|
36
36
|
${w}
|
|
37
37
|
${j}
|
|
38
38
|
${I}
|
|
39
39
|
${S}
|
|
40
|
-
`},pe=e=>{const n=T("color",e.color),i=T("font-family",e.fontFamily),
|
|
40
|
+
`},pe=e=>{const n=T("color",e.color),i=T("font-family",e.fontFamily),a=T("font-size",e.fontSize),r=T("font-weight",e.fontWeight),o=T("line-spacing",e.letterSpacing),l=T("line-height",e.lineSpacing),c=T("text-align",e.textAlign),d=T("text-decoration",e.textDecoration),u=T("text-overflow",e.textOverflow),g=T("white-space",e.whiteSpace),x=T("word-break",e.wordBreak),f=T("word-wrap",e.wordWrap);return`
|
|
41
41
|
${n}
|
|
42
42
|
${i}
|
|
43
|
-
${r}
|
|
44
43
|
${a}
|
|
44
|
+
${r}
|
|
45
45
|
${o}
|
|
46
46
|
${l}
|
|
47
47
|
${c}
|
|
@@ -50,14 +50,14 @@
|
|
|
50
50
|
${g}
|
|
51
51
|
${x}
|
|
52
52
|
${f}
|
|
53
|
-
`},ge=e=>{const n=T("cursor",e.cursor),i=T("border-color",e.borderColorHover),
|
|
53
|
+
`},ge=e=>{const n=T("cursor",e.cursor),i=T("border-color",e.borderColorHover),a=T("background-color",e.bgColorHover),r=T("box-shadow",e.shadowHover===void 0?void 0:v.shadows[e.shadowHover]),o=T("transition",e.transition);return`
|
|
54
54
|
${n}
|
|
55
55
|
|
|
56
56
|
&:hover {
|
|
57
57
|
${o||"transition: all 0.2s;"}
|
|
58
58
|
${i}
|
|
59
|
-
${r}
|
|
60
59
|
${a}
|
|
60
|
+
${r}
|
|
61
61
|
}
|
|
62
62
|
`},ue=()=>({shouldForwardProp:e=>!ct.includes(e)}),ee=s.dt.div.withConfig(ue())`
|
|
63
63
|
${oe}
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
${ce}
|
|
93
93
|
${ge}
|
|
94
94
|
`,Rn=s.dt(ee)`
|
|
95
|
-
${({theme:e,$center:n=!1,$styleMd:i,$styleSm:
|
|
95
|
+
${({theme:e,$center:n=!1,$styleMd:i,$styleSm:a})=>`
|
|
96
96
|
${n?"margin: auto;":""}
|
|
97
97
|
scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
|
|
98
98
|
scroll-padding: ${e.spacing[.5]};
|
|
@@ -105,20 +105,20 @@
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
108
|
-
${
|
|
108
|
+
${a};
|
|
109
109
|
}
|
|
110
110
|
`}
|
|
111
|
-
`,b=p.forwardRef(function({as:n="div",center:i,children:
|
|
112
|
-
${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[800],$display:
|
|
111
|
+
`,b=p.forwardRef(function({as:n="div",center:i,children:a,id:r,onHover:o,onLeave:l,styleMd:c,styleSm:d,...u},g){return t.jsx(Rn,{$center:i,$styleMd:c,$styleSm:d,as:n,id:r,onMouseLeave:l,onMouseOver:o,ref:g,...u,children:a})}),Dn=s.dt(_e)`
|
|
112
|
+
${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[800],$display:a="block",$fontFamily:r=e.typography.type.primary,$fontWeight:o="bold",$letterSpacing:l=0,$lineSpacing:c=1.5,$lineSpacingSm:d,$size:u,$sizeMd:g,$sizeSm:x,$textFill:f="unset",$wordBreak:h="normal"})=>`
|
|
113
113
|
background: ${n};
|
|
114
114
|
color: ${i};
|
|
115
|
-
display: ${
|
|
116
|
-
font-family: ${
|
|
115
|
+
display: ${a};
|
|
116
|
+
font-family: ${r};
|
|
117
117
|
font-size: ${e.typography.heading[u]};
|
|
118
118
|
font-weight: ${e.typography.weight[o]};
|
|
119
119
|
letter-spacing: ${l};
|
|
120
120
|
line-height: ${e.spacing[c]};
|
|
121
|
-
width: ${
|
|
121
|
+
width: ${a==="block"?"100%":"auto"};
|
|
122
122
|
word-break: ${h};
|
|
123
123
|
background-clip: text;
|
|
124
124
|
-webkit-background-clip: text;
|
|
@@ -137,16 +137,16 @@
|
|
|
137
137
|
}
|
|
138
138
|
`}
|
|
139
139
|
`,pt=s.dt(_e)`
|
|
140
|
-
${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[600],$display:
|
|
140
|
+
${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[600],$display:a="block",$fontFamily:r=e.typography.type.primary,$fontWeight:o="regular",$letterSpacing:l=0,$lineSpacing:c=1.25,$lineSpacingSm:d,$size:u,$sizeMd:g,$sizeSm:x,$textFill:f="unset",$wordBreak:h="normal"})=>`
|
|
141
141
|
background: ${n};
|
|
142
142
|
color: ${i};
|
|
143
|
-
display: ${
|
|
144
|
-
font-family: ${
|
|
143
|
+
display: ${a};
|
|
144
|
+
font-family: ${r};
|
|
145
145
|
font-size: ${e.typography.text[u]};
|
|
146
146
|
font-weight: ${e.typography.weight[o]};
|
|
147
147
|
letter-spacing: ${l};
|
|
148
148
|
line-height: ${e.spacing[c]};
|
|
149
|
-
width: ${
|
|
149
|
+
width: ${a==="block"?"100%":"auto"};
|
|
150
150
|
word-break: ${h};
|
|
151
151
|
background-clip: text;
|
|
152
152
|
-webkit-background-clip: text;
|
|
@@ -165,19 +165,19 @@
|
|
|
165
165
|
}
|
|
166
166
|
`}
|
|
167
167
|
`,Fn=s.dt.span`
|
|
168
|
-
${({theme:e,$color:n=e.palette.gray[600],$content:i=void 0,$display:
|
|
168
|
+
${({theme:e,$color:n=e.palette.gray[600],$content:i=void 0,$display:a="inline",$fontWeight:r="regular",$size:o,$lineSpacing:l=1.25})=>`
|
|
169
169
|
color: ${n};
|
|
170
|
-
display: ${
|
|
170
|
+
display: ${a};
|
|
171
171
|
font-family: ${e.typography.type.primary};
|
|
172
172
|
font-size: ${e.typography.text[o]};
|
|
173
|
-
font-weight: ${e.typography.weight[
|
|
173
|
+
font-weight: ${e.typography.weight[r]};
|
|
174
174
|
line-height: ${e.spacing[l]};
|
|
175
|
-
width: ${
|
|
175
|
+
width: ${a==="block"?"100%":"auto"};
|
|
176
176
|
|
|
177
177
|
${i===void 0?"":`&::after { content: "${i}"; }`}
|
|
178
178
|
`}
|
|
179
|
-
`,M=p.forwardRef(function({bgGradient:n,children:i,className:
|
|
180
|
-
${({$clickable:e,$color:n="inherit",$disabled:i=!1,$hoverColor:
|
|
179
|
+
`,M=p.forwardRef(function({bgGradient:n,children:i,className:a,color:r,display:o,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:u,lineSpacingSm:g,size:x,sizeMd:f,sizeSm:h,textFill:y,wordBreak:$,...m},w){return t.jsx(Dn,{$bgGradient:n,$color:r,$display:o,$fontFamily:l,$fontWeight:c,$letterSpacing:d,$lineSpacing:u,$lineSpacingSm:g,$size:x,$sizeMd:f,$sizeSm:h,$textFill:y,$wordBreak:$,className:a,ref:w,...m,children:i})}),je=p.forwardRef(function({children:n,color:i,content:a,display:r,fontFamily:o,fontWeight:l,letterSpacing:c,lineSpacing:d,lineSpacingSm:u,size:g,sizeMd:x,sizeSm:f,...h},y){return t.jsx(Fn,{$color:i,$content:a,$display:r,$fontFamily:o,$fontWeight:l,$letterSpacing:c,$lineSpacing:d,$lineSpacingSm:u,$size:g,$sizeMd:x,$sizeSm:f,ref:y,...h,children:n})}),k=p.forwardRef(function({bgGradient:n,children:i,className:a,color:r,display:o,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:u,lineSpacingSm:g,size:x,sizeMd:f,sizeSm:h,textFill:y,wordBreak:$,...m},w){return t.jsx(pt,{$bgGradient:n,$color:r,$display:o,$fontFamily:l,$fontWeight:c,$letterSpacing:d,$lineSpacing:u,$lineSpacingSm:g,$size:x,$sizeMd:f,$sizeSm:h,$textFill:y,$wordBreak:$,className:a,ref:w,...m,children:i})}),gt=({item:e})=>{const n=e.description&&typeof e.description=="string"?t.jsx(k,{mb:e.extraElement?.5:void 0,size:"sm",children:e.description}):e.description??void 0;return t.jsxs(b,{display:"block",id:`panel-${e.title}`,padding:[.75,.75,.75,.75],children:[n,e.extraElement?t.jsx(b,{children:e.extraElement}):void 0]})},Pn={xl:"96px",lg:"64px",md:"32px",sm:"24px",xs:"16px",xxs:"12px",xxss:"10px"},Ln=s.dt(dt)`
|
|
180
|
+
${({$clickable:e,$color:n="inherit",$disabled:i=!1,$hoverColor:a,$rotation:r,$size:o,$secondaryColor:l})=>{const c=a?"":"brightness(50%)",d=a??"";return`
|
|
181
181
|
color: ${n};
|
|
182
182
|
cursor: ${e?"pointer":"inherit"};
|
|
183
183
|
font-size: ${Pn[o]};
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
|
|
189
189
|
> svg {
|
|
190
190
|
--fa-secondary-color: ${l};
|
|
191
|
-
transform: ${
|
|
191
|
+
transform: ${r===void 0?"":`rotate(${r}deg)`};
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
.fill-gradient-01 path {
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
&:hover:not([disabled]) {
|
|
213
213
|
transform: scale(1.2);
|
|
214
214
|
}
|
|
215
|
-
`;const C=p.forwardRef(function({clickable:n,disabled:i,hoverColor:
|
|
215
|
+
`;const C=p.forwardRef(function({clickable:n,disabled:i,hoverColor:a,icon:r,iconClass:o="",iconColor:l,iconMask:c,iconSize:d,iconTransform:u,iconType:g="fa-solid",onClick:x,rotation:f,spanClass:h,secondaryColor:y,...$},m){return t.jsx(Ln,{$clickable:n,$color:l,$disabled:i,$hoverColor:a,$rotation:f,$secondaryColor:y,$size:d,className:h,"data-testid":`${r}-icon`,onClick:x,ref:m,...$,children:t.jsx("i",{className:`${g} fa-${r} ${o}`,...c!==void 0?{"data-fa-mask":c}:{},...u!==void 0?{"data-fa-transform":u}:{}})},`${g}-${r}`)}),Mn=p.forwardRef(function({aligned:n="end",items:i,bgColor:a},r){const o=s.nt(),[l,c]=p.useState(!1),[d,u]=p.useState(-1),g=p.useCallback(x=>()=>{u(x),c(x===d?f=>!f:!0)},[d]);return t.jsx(b,{ref:r,children:i.map((x,f)=>{const h=f===d&&l;return t.jsxs(b,{bgColor:a??o.palette.white,children:[t.jsx(b,{"aria-controls":`panel-${x.title}`,"aria-expanded":l,"aria-label":x.title,as:"button",bgColor:a??o.palette.white,bgColorHover:o.palette.gray[100],borderBottom:h||f===i.length-1?"1px solid":void 0,borderColor:o.palette.gray[200],borderTop:"1px solid",cursor:"pointer",display:"flex",onClick:g(f),padding:[.75,.75,.75,.75],width:"100%",children:t.jsxs(b,{as:"summary",display:"flex",flexDirection:n==="end"?"row":"row-reverse",gap:.75,justify:"space-between",width:"100%",children:[t.jsx(k,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",sizeSm:"sm",textAlign:"start",children:x.title}),t.jsx(C,{icon:h?"chevron-up":"chevron-down",iconColor:o.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]})}),h&&t.jsx(gt,{item:x})]},x.title)})})}),Wn=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:Bn}=U(e=>({error:`
|
|
216
216
|
background: ${e.palette.error[50]};
|
|
217
217
|
border: 1px solid ${e.palette.error[500]};
|
|
218
218
|
color: ${e.palette.error[700]};
|
|
@@ -388,10 +388,10 @@
|
|
|
388
388
|
${Hn(e,n??"primary")}
|
|
389
389
|
`}
|
|
390
390
|
`,_n=s.dt(ut)`
|
|
391
|
-
${({theme:e,$borderRadius:n="4px",$px:i=.5,$py:
|
|
391
|
+
${({theme:e,$borderRadius:n="4px",$px:i=.5,$py:a=.5})=>`
|
|
392
392
|
--btn-spacing: ${n};
|
|
393
393
|
--btn-padding-x: ${e.spacing[i]};
|
|
394
|
-
--btn-padding-y: ${e.spacing[
|
|
394
|
+
--btn-padding-y: ${e.spacing[a]};
|
|
395
395
|
|
|
396
396
|
align-items: center;
|
|
397
397
|
line-height: 0;
|
|
@@ -414,7 +414,7 @@
|
|
|
414
414
|
--rt-opacity: 1;
|
|
415
415
|
}
|
|
416
416
|
`}
|
|
417
|
-
`,Y=p.forwardRef(function({children:n,disabled:i=!1,display:
|
|
417
|
+
`,Y=p.forwardRef(function({children:n,disabled:i=!1,display:a="inline-block",effect:r="solid",icon:o,iconColor:l,iconSize:c,id:d,maxWidth:u,nodeTip:g,place:x="bottom",tip:f="",title:h="",hide:y=f===""&&h===""&&g===void 0,...$},m){const w=s.nt(),[j,I]=p.useState(!1),S=p.useRef(null),z=p.useCallback(()=>{S.current!==null&&clearTimeout(S.current),S.current=setTimeout(()=>{I(!0)},100)},[]),R=p.useCallback(()=>{S.current!==null&&clearTimeout(S.current),S.current=setTimeout(()=>{I(!1)},100)},[]);return i?t.jsx(p.StrictMode,{children:n}):t.jsxs(Vn,{"data-tooltip-id":d,display:a,onMouseLeave:R,onMouseMove:z,ref:m,role:"tooltip",...$,children:[o?t.jsx(C,{clickable:!0,disabled:i,icon:o,iconColor:l,iconSize:c??"xxs",iconType:j?"fa-solid":"fa-light"}):n,G.createPortal(t.jsx(Gn,{$maxWidth:u,children:t.jsxs(s.M,{delayShow:500,disableStyleInjection:"core",float:r==="float"?!0:void 0,globalCloseEvents:{resize:!0},hidden:y||!j,id:d,middlewares:[s.flip({fallbackAxisSideDirection:"start"}),s.offset({mainAxis:10})],noArrow:r==="float",place:x,children:[s.lodashExports.isEmpty(h)?void 0:t.jsx(k,{color:w.palette.white,fontWeight:"bold",lineSpacing:1.5,size:"xs",textAlign:"start",wordWrap:"break-word",children:h}),s.lodashExports.isEmpty(f)?void 0:t.jsx(k,{color:w.palette.gray[100],lineSpacing:1.5,size:"xs",textAlign:"start",wordWrap:"break-word",children:f}),s.lodashExports.isEmpty(g)?void 0:g]})}),document.getElementById("root")??document.body)]})}),B=p.forwardRef(function({borderRadius:n,disabled:i,icon:a,iconColor:r,iconSize:o="xxs",iconTransform:l,iconType:c,id:d,justify:u="center",onClick:g,px:x,py:f,type:h="button",tooltip:y,tooltipPlace:$,value:m,variant:w="primary",...j},I){const S=t.jsx(_n,{$borderRadius:n,$px:x,$py:f,$variant:w,"aria-disabled":i,"aria-label":d,borderRadius:n,disabled:i,id:d,justify:u,onClick:g,ref:I,type:h,value:m,...j,children:t.jsx(C,{clickable:!1,icon:a,iconColor:r,iconSize:o,iconTransform:l,iconType:c})}),R=(h+(w??"")+(d??a)).replace(/ /u,"_");return y===void 0?S:t.jsx(Y,{id:`${R}-tooltip`,place:$,tip:y,children:S})}),Un=p.forwardRef(function({autoHide:n=!1,children:i,closable:a=!1,onTimeOut:r,show:o=!0,time:l=8,variant:c="error",id:d,...u},g){const[x,f]=p.useState(o),h=p.useCallback(()=>{f(!1)},[]);return p.useEffect(()=>{const y=setTimeout(()=>{r==null||r(!0),n&&h()},l*1e3);return()=>{clearTimeout(y)}},[n,h,l,r]),p.useEffect(()=>{f(o)},[o,f]),t.jsx(b,{display:x?"block":"none",ref:g,role:"alert",...u,children:t.jsxs(An,{$variant:c,id:d,children:[t.jsx(C,{clickable:!1,icon:Wn(c),iconSize:"xs",iconType:"fa-light"}),t.jsx(On,{children:i}),a?t.jsx(B,{height:"fit-content",icon:"close",iconSize:"xs",iconType:"fa-light",onClick:h,px:.125,py:.125,variant:"ghost"}):void 0]})})}),et=s.dt.div`
|
|
418
418
|
${({theme:e})=>`
|
|
419
419
|
align-items: center;
|
|
420
420
|
background-color: ${e.palette.gray[200]};
|
|
@@ -632,7 +632,7 @@
|
|
|
632
632
|
${xt}
|
|
633
633
|
`,Jn=s.dt(Re.Link)`
|
|
634
634
|
${xt}
|
|
635
|
-
`,q=({children:e,color:n,download:i,href:
|
|
635
|
+
`,q=({children:e,color:n,download:i,href:a,iconPosition:r="right",onClick:o,target:l,variant:c="lowRelevance"})=>{const d=a.startsWith("https://"),u=t.jsx(C,{icon:i===void 0?"arrow-up-right-from-square":"arrow-down-to-bracket",iconSize:"xxs",iconType:"fa-regular",ml:.25,mr:.25});return d?t.jsxs(Zn,{$color:n,$variant:c,download:i,href:a,onClick:o,rel:"nofollow noopener noreferrer",target:l??"_blank",children:[r==="left"?u:void 0,e,r==="right"?u:void 0]}):t.jsxs(Jn,{$variant:c,download:i,onClick:o,rel:"nofollow noopener noreferrer",target:l,to:a,children:[l!==void 0&&r==="left"?u:void 0,e,l!==void 0&&r==="right"?u:void 0]})},X=({disabled:e,icon:n,iconColor:i="inherit",iconType:a="fa-light",id:r="close-tag",filterValues:o="",fontSize:l,href:c,linkLabel:d,onClose:u,priority:g="default",tagTitle:x="",tagLabel:f,variant:h="default"})=>{const y=f.length>25&&s.lodashExports.isEmpty(x+o),$=`${f.slice(0,25)}...`;return t.jsxs(je,{className:"gap-0.5",display:c===void 0?"initial":"flex",size:"sm",children:[t.jsxs(qn,{$fontSize:l,$variant:h,className:g,children:[n&&t.jsx(C,{icon:n,iconColor:i,iconSize:"xxs",iconType:a}),t.jsxs("span",{children:[t.jsx("strong",{children:x}),t.jsx("span",{children:y?$:f}),t.jsx("strong",{children:o})]}),u?t.jsx(B,{disabled:e,icon:"xmark",iconSize:"xxs",iconType:"fa-light",id:r,onClick:u,px:.125,py:.125,variant:"ghost"}):void 0]}),c===void 0?void 0:t.jsx(q,{href:c,children:d})]})},Qn=(e,n=!0)=>{const i=window.open(e,n?void 0:"_self","noopener,noreferrer,");s.lodashExports.isObject(i)&&(i.opener=null)},D=p.forwardRef(function({children:n,disabled:i=!1,external:a=!1,href:r,id:o,icon:l,name:c,onClick:d,showArrow:u=!1,tag:g,type:x="button",tooltip:f,tooltipPlace:h="bottom",underline:y=!1,value:$,variant:m="primary",...w},j){const I=f!==void 0,S=`${o}-tooltip`,z=p.useCallback(()=>{r&&Qn(r,a)},[a,r]);return t.jsx(Y,{disabled:!I,id:S,place:h,tip:f,children:t.jsxs(ut,{$variant:m,"aria-disabled":i,className:y?"underline":void 0,disabled:i,id:o,name:c,onClick:m==="link"?z:d,ref:j,type:x,value:$,...I?{"data-tooltip-id":S}:{},...w,children:[l!==void 0&&t.jsx(C,{icon:l,iconSize:"xs",iconType:"fa-light"}),n,(u||m==="link")&&t.jsx(C,{icon:"arrow-right",iconSize:"xs",iconType:"fa-light"}),g===void 0?null:t.jsx(X,{tagLabel:g,variant:"inactive"})]})})}),ei=p.forwardRef(function({children:n,onClick:i,userName:a,showIcon:r=!1,showUsername:o=!1},l){const c=!!i;return t.jsx(b,{id:"navbar-user-profile",ref:l,zIndex:9999,children:t.jsxs(b,{alignItems:"end",display:"flex",flexDirection:"column",position:"relative",zIndex:30,children:[c?t.jsxs(D,{onClick:i,pb:.5,pl:.5,pr:.5,pt:.5,variant:"ghost",children:[t.jsx(et,{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(b,{alignItems:"center",display:"flex",px:.5,py:.5,children:[t.jsx(et,{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(Yn,{children:n})]})})}),Se=({authorEmail:e,date:n,description:i,descriptionColor:a,id:r,title:o,titleColor:l,textAlign:c,textSpacing:d=0,tooltip:u})=>{const g=s.nt();return t.jsxs(b,{width:"100%",children:[typeof o=="string"?t.jsx(k,{color:l??g.palette.gray[800],fontWeight:"bold",mb:d,size:"sm",textAlign:c,wordBreak:"break-word",children:o}):o,t.jsxs(b,{alignItems:"start",display:"flex",flexDirection:"column",gap:.25,children:[i&&t.jsx(k,{color:a??g.palette.gray[800],fontWeight:i===void 0?"bold":"regular",size:"sm",textAlign:c,wordBreak:"break-word",children:i}),n&&t.jsx(k,{color:g.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`Date: ${n.split(" ")[0]}`}),e&&t.jsx(k,{color:g.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`Author: ${e}`}),u&&t.jsx(Y,{icon:"circle-info",id:r,tip:u})]})]})},tt=s.dt(b).attrs(({...e})=>({display:"inline-block",position:"relative",...e}))`
|
|
636
636
|
& img {
|
|
637
637
|
display: block;
|
|
638
638
|
}
|
|
@@ -647,8 +647,8 @@
|
|
|
647
647
|
pointer-events: none;
|
|
648
648
|
${({$opacity:e=0})=>`background-color: rgba(0, 0, 0, ${e});`}
|
|
649
649
|
}
|
|
650
|
-
`,ti=e=>{if(s._.isNil(e))return"";const n=e.split(".");return(n.length>1?s._.last(n):"").toLowerCase()},ni=(e,n)=>s._.isUndefined(n)?!1:s._.includes(e,ti(n)),ft=({alt:e,fileType:n,width:i="100%",opacity:
|
|
651
|
-
${({theme:e,$align:n="center",$minWidth:i="auto",$minHeight:
|
|
650
|
+
`,ti=e=>{if(s._.isNil(e))return"";const n=e.split(".");return(n.length>1?s._.last(n):"").toLowerCase()},ni=(e,n)=>s._.isUndefined(n)?!1:s._.includes(e,ti(n)),ft=({alt:e,fileType:n,width:i="100%",opacity:a=0,src:r,height:o="auto"})=>n==="video"||ni(["webm"],r)?t.jsx(tt,{$opacity:a,children:t.jsxs("video",{controls:!0,muted:!0,style:{height:o,width:i},children:[t.jsx("source",{src:r,type:"video/webm"}),t.jsx(q,{href:r,iconPosition:"hidden",children:r})]})}):t.jsx(tt,{$opacity:a,children:t.jsx("img",{alt:e,src:r,style:{height:o,width:i}})}),ii=({alt:e,authorEmail:n,date:i,description:a,src:r,children:o,isEditing:l,onClick:c,title:d,hideDescription:u=!1,headerType:g="image",showMaximize:x=!0})=>{const f=s.nt(),[h,y]=p.useState(!1),$=p.useCallback(()=>{y(!0)},[]),m=p.useCallback(()=>{y(!1)},[]);return t.jsxs(b,{bgColor:"transparent",border:"1px solid transparent",borderColorHover:"black",borderRadius:f.spacing[.25],display:"flex",flexDirection:"column",gap:1,onHover:$,onLeave:m,padding:[.5,.5,.5,.5],width:"100%",children:[t.jsx(b,{cursor:l?"unset":"pointer",display:"inline-flex",justify:"center",onClick:c,position:"relative",width:"100%",children:o===void 0?t.jsxs(p.Fragment,{children:[t.jsx(ft,{alt:e,fileType:g,height:"147px",opacity:h?.3:0,src:r,width:"100%"}),x?t.jsx(b,{bottom:"10px",position:"absolute",right:"10px",children:t.jsx(B,{color:"white",icon:"arrows-maximize",iconSize:"xxs",iconType:"fa-light",variant:"secondary"})}):void 0]}):o}),u?null:t.jsx(Se,{authorEmail:n,date:i,description:a,descriptionColor:f.palette.gray[600],id:`${e}-card-header`,title:d})]})},ai=s.dt.div`
|
|
651
|
+
${({theme:e,$align:n="center",$minWidth:i="auto",$minHeight:a="auto"})=>`
|
|
652
652
|
display: flex;
|
|
653
653
|
background-color: ${e.palette.white};
|
|
654
654
|
border-radius: ${e.spacing[.25]};
|
|
@@ -657,7 +657,7 @@
|
|
|
657
657
|
justify-content: center;
|
|
658
658
|
gap: ${e.spacing[.5]};
|
|
659
659
|
min-width: ${i};
|
|
660
|
-
min-height: ${
|
|
660
|
+
min-height: ${a};
|
|
661
661
|
padding: ${e.spacing[1]};
|
|
662
662
|
|
|
663
663
|
input {
|
|
@@ -666,7 +666,7 @@
|
|
|
666
666
|
text-align: ${n};
|
|
667
667
|
}
|
|
668
668
|
`}
|
|
669
|
-
`,Ve=({htmlFor:e,label:n,link:i,required:
|
|
669
|
+
`,Ve=({htmlFor:e,label:n,link:i,required:a,tooltip:r,weight:o="normal"})=>{const l=s.nt(),c=`${e}-tooltip`,d=r!==void 0&&!s.lodashExports.isEmpty(r);return t.jsxs("label",{className:`flex font-${o} gap-1 w-full`,htmlFor:e,children:[n,a&&t.jsx(C,{icon:"asterisk",iconColor:l.palette.error[500],iconSize:"xxss"}),i?t.jsx(q,{href:i,target:"_blank"}):null,d?t.jsx(Y,{display:"inline-flex",icon:"circle-info",id:c,place:"top",tip:r}):null]})},ri=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:n,helpLink:i,helpLinkText:
|
|
808
|
+
`,O=({children:e,error:n,helpLink:i,helpLinkText:a="Link here",helpText:r,htmlFor:o,label:l,linkPosition:c="down",maxLength:d,required:u,tooltip:g,value:x,weight:f})=>{const h=s.nt(),y=x?x.length:0;return t.jsxs(ri,{children:[l===void 0?void 0:t.jsx(Ve,{htmlFor:o,label:l,link:c==="up"?i:void 0,required:u,tooltip:g,weight:f}),e,n||d?t.jsxs(b,{display:"flex",justify:n===void 0?"end":"space-between",width:"100%",children:[n&&t.jsx(k,{className:"error-msg",color:h.palette.error[500],display:"block",lineSpacing:1,size:"sm",children:n}),d&&t.jsx(X,{priority:"low",tagLabel:`${y}/${d}`,variant:"error"})]}):void 0,r||i?t.jsxs(b,{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})]}),i&&c==="down"?t.jsx(q,{href:i,children:a}):void 0]}):void 0]})},xe=({className:e,children:n,isFilter:i=!1,popoverRef:a,state:r,triggerRef:o,...l})=>{var x;const c=p.useRef(null),d=(x=o==null?void 0:o.current)==null?void 0:x.getBoundingClientRect(),{popoverProps:u}=s.$f2f8a6077418541e$export$542a6fd13ac93354({...l,popoverRef:a??c,triggerRef:o,isNonModal:a?!0:void 0},r),g=p.useCallback(f=>{f.preventDefault()},[]);return t.jsx(s.$337b884510726a0d$export$c6fdb837b070b4ff,{children:t.jsx("div",{...u,className:e,onPointerDown:i?g:void 0,ref:a??c,style:{...u.style,...e==="dropdown"?{display:"flex",justifyContent:"center",width:d==null?void 0:d.width}:{}},children:n})})},oi=s.dt.ul`
|
|
809
809
|
${({theme:e})=>`
|
|
810
810
|
align-self: center;
|
|
811
811
|
background: ${e.palette.white};
|
|
@@ -853,7 +853,7 @@
|
|
|
853
853
|
cursor: not-allowed;
|
|
854
854
|
}
|
|
855
855
|
`}
|
|
856
|
-
`,ht=({item:e,state:n})=>{const i=p.useRef(null),{optionProps:
|
|
856
|
+
`,ht=({item:e,state:n})=>{const i=p.useRef(null),{optionProps:a,isSelected:r,isFocused:o,isDisabled:l}=s.$293f70390ea03370$export$497855f14858aa34({key:e.key},n,i),c=[r?"selected":"",o?"focused":"",l?"disabled":""].join(" ");return t.jsxs(si,{...a,className:c,ref:i,children:[e.rendered,r?t.jsx(C,{icon:"check",iconSize:"xxs",iconType:"fa-light"}):void 0]})},De=({field:e,disabled:n=!1,error:i,helpLink:a,helpLinkText:r,helpText:o,label:l,loadingItems:c,name:d,items:u,onBlur:g,onChange:x,placeholder:f,required:h,tooltip:y,value:$,weight:m})=>{var Qe;const w=s.nt(),j=n?void 0:i,I=(e==null?void 0:e.value)??$,[S,z]=p.useState(((Qe=u.find(F=>F.value===I))==null?void 0:Qe.name)??""),[R,L]=p.useState(I),[P,W]=p.useState(u),[E,N]=p.useState(!1),{contains:A}=s.$bb77f239b46e8c72$export$3274cf84b703fff({sensitivity:"base"}),_=p.useRef(null),te=p.useRef(null),Ne=p.useRef(null),Xe=p.useRef(null),Ze=p.useRef(null),on=p.useMemo(()=>u.map(F=>A(F.name,S)||E?t.jsx(s.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,{children:F.name},F.value):null),[A,S,u,E]),sn=p.useCallback(F=>{z(F),F===""?N(!0):(N(!1),L(H=>{const ye=F===""?"":H;return e&&e.onChange(ye),x&&x(F),ye}),W(u.filter(H=>A(H.name,F))))},[A,u,e,x]),ln=p.useCallback(F=>{var H;z(((H=u.find(ye=>ye.value===F))==null?void 0:H.name)??""),L(F?String(F):""),e&&e.onChange(F),x&&x(F?String(F):""),W(u)},[u,e,x]),Je=p.useCallback(F=>{F.key==="Enter"&&F.preventDefault(),N(!1)},[]),cn=p.useCallback(()=>{g&&g(),e&&e.onBlur()},[e,g]),K=s.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({allowsEmptyCollection:!0,inputValue:S,items:P,menuTrigger:"focus",shouldCloseOnBlur:!0,selectedKey:R,onBlur:cn,onInputChange:sn,onKeyDown:Je,onKeyUp:()=>{N(!0)},onOpenChange(F,H){N(F&&(H==="manual"||H==="focus"))},onSelectionChange:ln,children:on}),{buttonProps:dn,inputProps:pn,listBoxProps:gn}=s.$c350ade66beef0af$export$8c18d1b4f7232bbf({inputValue:S,buttonRef:te,id:d,inputRef:_,label:l??d,listBoxRef:Ne,name:d,placeholder:f,popoverRef:Ze},K),{listBoxProps:un}=s.$c132121280ec012d$export$50eacbbf140a3141(gn,K,Ne),{buttonProps:xn}=s.$701a24aa0da5b062$export$ea18c227d4417cc3(dn,te);return p.useEffect(()=>{var F;(c===!1||!I)&&z(((F=u.find(H=>H.value===I))==null?void 0:F.name)??"")},[I,u,c]),t.jsxs(O,{error:j,helpLink:a,helpLinkText:r,helpText:o,htmlFor:d,label:l,required:h,tooltip:y,weight:m,children:[t.jsxs(Z,{className:`${n?"disabled":""} ${j?"error":""}`,ref:Xe,children:[t.jsx("input",{...pn,"aria-invalid":j?"true":"false","aria-label":d,onKeyDown:Je,ref:_}),j?t.jsx(C,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:w.palette.error[500],iconSize:"xs"}):void 0,t.jsx(B,{...xn,className:"action",icon:K.isOpen?"chevron-up":"chevron-down",iconColor:w.palette.gray[400],iconSize:"xxs",iconType:"fa-light",px:.125,py:.125,ref:te,type:"button",variant:"ghost"})]}),K.isOpen&&K.collection.size>0&&!n?t.jsx(xe,{className:"dropdown",offset:4,placement:"bottom start",popoverRef:Ze,state:K,triggerRef:Xe,children:t.jsx(oi,{...un,ref:Ne,children:[...K.collection].map(F=>t.jsx(ht,{item:F,state:K},F.key))})}):null]})},li=({control:e,disabled:n=!1,error:i,helpLink:a,helpLinkText:r,helpText:o,label:l,loadingItems:c,name:d,items:u,onBlur:g,onChange:x,placeholder:f,required:h,tooltip:y,value:$,weight:m})=>e?t.jsx(s.Controller,{control:e,name:d,render:({field:w})=>t.jsx(De,{disabled:n,error:i,field:w,helpLink:a,helpLinkText:r,helpText:o,items:u,label:l,loadingItems:c,name:d,onBlur:g,onChange:x,placeholder:f,required:h,tooltip:y,value:$,weight:m}),rules:{required:h}}):t.jsx(De,{disabled:n,error:i,helpLink:a,helpLinkText:r,helpText:o,items:u,label:l,loadingItems:c,name:d,onBlur:g,onChange:x,placeholder:f,required:h,tooltip:y,value:$,weight:m}),ci=s.dt.div`
|
|
857
857
|
${({theme:e})=>`
|
|
858
858
|
align-items: center;
|
|
859
859
|
color: ${e.palette.gray[800]};
|
|
@@ -985,9 +985,9 @@
|
|
|
985
985
|
padding: 0 ${e.spacing[.25]};
|
|
986
986
|
width: 100%;
|
|
987
987
|
`}
|
|
988
|
-
`,$t=({state:e,date:n})=>{const i=p.useRef(null),
|
|
989
|
-
${c?"disabled":""} ${
|
|
990
|
-
${!e.isFocused&&!
|
|
988
|
+
`,$t=({state:e,date:n})=>{const i=p.useRef(null),a=s.$14e0f24ef4ac5c92$export$629b0a497aa65267(n,s.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),{cellProps:r,buttonProps:o,isSelected:l,isDisabled:c,formattedDate:d}=s.$36a0ac60f04457c5$export$136073280381448e({date:n},e,i),u="highlightedRange"in e&&!s.lodashExports.isNull(e.highlightedRange)?s.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.start):l,g="highlightedRange"in e&&!s.lodashExports.isNull(e.highlightedRange)?s.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.end):l,x=l&&!c&&!(u||g)?"range":"";return t.jsx(gi,{id:x,...r,children:t.jsxs("div",{...o,className:`cell ${u||g?"selected":""}
|
|
989
|
+
${c?"disabled":""} ${a?"today":""}
|
|
990
|
+
${!e.isFocused&&!a?"focused":""} ${x}`,ref:i,children:[d,a?t.jsx(ui,{children:t.jsx(C,{clickable:!1,icon:"circle",iconSize:"xxs"})}):void 0]})})},ze=({state:e,...n})=>{const{locale:i}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{weekDays:a}=s.$e3031d1f8c9d64eb$export$cb95147730a423f5(n,e),r=s.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654(e.visibleRange.start,i);return t.jsxs("table",{children:[t.jsx("thead",{children:t.jsx(nt,{children:a.map((o,l)=>{const c=`key_${l}`;return t.jsx(pi,{children:o},c)})})}),t.jsx("tbody",{children:[...new Array(r).keys()].map(o=>t.jsx(nt,{children:e.getDatesInWeek(o).map((l,c)=>{const d=`key_${c}`;return l?t.jsx($t,{date:l,state:e},d):t.jsx("td",{},d)})},o))})]})},xi=s.dt(He)`
|
|
991
991
|
align-items: center;
|
|
992
992
|
background-color: inherit;
|
|
993
993
|
border-color: inherit;
|
|
@@ -1022,15 +1022,15 @@
|
|
|
1022
1022
|
width: 292px;
|
|
1023
1023
|
`}
|
|
1024
1024
|
`,hi=s.dt.button`
|
|
1025
|
-
${({theme:e,$disabled:n,$focus:i,$header:
|
|
1025
|
+
${({theme:e,$disabled:n,$focus:i,$header:a})=>{const r=i?"34px":"40px";return`
|
|
1026
1026
|
align-items: center;
|
|
1027
|
-
border-radius: ${
|
|
1027
|
+
border-radius: ${a?`0 ${e.spacing[.5]} ${e.spacing[.5]} 0`:"4px"};
|
|
1028
1028
|
border-left: inherit;
|
|
1029
1029
|
display: flex;
|
|
1030
|
-
height: ${
|
|
1030
|
+
height: ${a?"38px":r};
|
|
1031
1031
|
justify-content: center;
|
|
1032
1032
|
outline: none;
|
|
1033
|
-
width: ${
|
|
1033
|
+
width: ${a?"38px":"40px"};
|
|
1034
1034
|
|
|
1035
1035
|
&:hover {
|
|
1036
1036
|
background-color: ${e.palette.gray[n?500:100]};
|
|
@@ -1053,7 +1053,7 @@
|
|
|
1053
1053
|
justify-content: flex-end;
|
|
1054
1054
|
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1055
1055
|
flex: 1 0 0;
|
|
1056
|
-
`,
|
|
1056
|
+
`,at=s.dt.div`
|
|
1057
1057
|
${({theme:e})=>`
|
|
1058
1058
|
align-items: center;
|
|
1059
1059
|
align-self: stretch;
|
|
@@ -1065,7 +1065,7 @@
|
|
|
1065
1065
|
line-height: ${e.spacing[1.5]};
|
|
1066
1066
|
padding: 2px ${e.spacing[.25]};
|
|
1067
1067
|
`}
|
|
1068
|
-
`,
|
|
1068
|
+
`,rt=s.dt.button`
|
|
1069
1069
|
${({theme:e})=>`
|
|
1070
1070
|
align-items: center;
|
|
1071
1071
|
background-color: inherit;
|
|
@@ -1085,7 +1085,7 @@
|
|
|
1085
1085
|
font-weight: ${e.typography.weight.bold};
|
|
1086
1086
|
}
|
|
1087
1087
|
`}
|
|
1088
|
-
`,ke=({disabled:e=!1,icon:n,props:i})=>{const
|
|
1088
|
+
`,ke=({disabled:e=!1,icon:n,props:i})=>{const a=p.useRef(null),{buttonProps:r}=s.$701a24aa0da5b062$export$ea18c227d4417cc3(i,a);return t.jsx(hi,{...r,$disabled:e,$focus:!!r["aria-expanded"],$header:n==="calendar"||n==="calendar-clock",disabled:e,ref:a,type:"button",children:t.jsx(C,{icon:n,iconColor:v.palette.gray[e?400:700],iconSize:"xs",iconType:"fa-light"})})},Ie=({state:e,prevButtonProps:n,nextButtonProps:i,title:a})=>{const r=e.focusedDate,o=p.useCallback(()=>{e.setFocusedDate(r.add({years:1}))},[r,e]),l=p.useCallback(()=>{e.setFocusedDate(r.subtract({years:1}))},[r,e]);return t.jsxs("div",{className:"header flex items-start",children:[t.jsx(ke,{icon:"chevron-left",props:n}),t.jsxs(ci,{children:[a,t.jsxs(di,{children:[t.jsx(it,{"aria-label":"top",onClick:o,children:t.jsx(C,{icon:"caret-up",iconClass:"fa-sharp",iconSize:"xxss"})}),t.jsx(it,{"aria-label":"bottom",onClick:l,children:t.jsx(C,{icon:"caret-down",iconClass:"fa-sharp",iconSize:"xxss"})})]})]}),t.jsx(ke,{icon:"chevron-right",props:i})]})},yt=({onClose:e,props:n})=>{const{locale:i}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),a=s.$131cf43a05231e1e$export$6d095e787d2b5e1f({...n,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:r,nextButtonProps:o,title:l}=s.$9942cad8a072a530$export$3ee915f8151bd4f1(n,a);return t.jsxs("div",{className:"calendar",children:[t.jsx(Ie,{nextButtonProps:o,prevButtonProps:r,state:a,title:l}),t.jsx(ze,{state:a}),t.jsx(Ge,{children:t.jsx(D,{onClick:e,variant:"ghost",children:"Cancel"})})]})},mt=({segment:e,state:n})=>{const i=s.nt(),a=p.useRef(null),o={...e,placeholder:{day:"dd",dayPeriod:"(AM/PM)",era:"",hour:"hh",literal:"",minute:"mm",month:"mm",second:"",timeZoneName:"",year:"yyyy"}[e.type]},{segmentProps:l}=s.$32489daedd52963e$export$1315d136e6f7581(o,n,a),c=i.palette.gray[o.isEditable?800:500];return t.jsx("div",{...o.type!=="literal"&&{...l,className:"segment-cell"},ref:a,style:o.type==="literal"?void 0:{color:o.isPlaceholder?i.palette.gray[400]:c},children:o.isPlaceholder?o.placeholder:o.text})},wt=({disabled:e,error:n=!1,props:i})=>{const a=s.nt(),r=p.useRef(null),o=s.$3c0fc76039f1c516$export$60e84778edff6d26({...i,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:"en-US"}),{fieldProps:l}=s.$16f0b7bb276bc17e$export$5591b0b878c1a989(i,o,r),c=p.useCallback(d=>{const u=document.getElementsByClassName("segment-cell"),g=d.currentTarget;Object.values(u).some(x=>x.contains(g))||(d.preventDefault(),d.stopPropagation())},[]);return t.jsxs(bi,{...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,u)=>{const g=`key_${u}`;return t.jsx(mt,{segment:{...d,isEditable:!e},state:o},g)})}),n?t.jsx(C,{icon:"exclamation-circle",iconColor:a.palette.error[500],iconSize:"xs"}):void 0]})},jt=e=>{const n=p.useRef(null),i=s.$eff5d8ee529ac4bb$export$fd53cef0cc796101({...e,locale:"en-US",shouldForceLeadingZeros:!0}),{timeValue:a}=i,r=!s.lodashExports.isNil(a)&&a.hour<12?"AM":"PM",[o,l]=p.useState(s.lodashExports.isNil(a)?"AM":r),{fieldProps:c}=s.$16f0b7bb276bc17e$export$4c842f6a241dc825(e,i,n),d=p.useCallback(u=>{const g=u.currentTarget.name;g!==o&&(s.lodashExports.isNil(a)||(g==="AM"?i.setSegment("dayPeriod",0):g==="PM"&&i.setSegment("dayPeriod",12))),l(g)},[o,i,a]);return t.jsxs($i,{children:[t.jsx(at,{...c,ref:n,children:i.segments.slice(0,-2).map((u,g)=>{const x=`key_${g}`;return t.jsx(mt,{segment:u,state:i},x)})}),t.jsxs(at,{children:[t.jsx(rt,{id:o==="AM"?"active":"",name:"AM",onClick:d,type:"button",children:"AM"}),t.jsx(rt,{id:o==="PM"?"active":"",name:"PM",onClick:d,type:"button",children:"PM"})]})]})},kt=e=>e&&e!=="-"?s.dayjs(e).format("YYYY-MM-DD"):"-",yi=e=>e&&e!=="-"?s.dayjs(e).format("YYYY-MM-DD hh:mm A"):"-",mi=e=>e&&e!=="-"?s.dayjs(e).format("YYYY/MM/DD hh:mm A"):"-",ae=({error:e,buttonProps:n,datePickerRef:i,disabled:a=!1,granularity:r="day",fieldProps:o,groupProps:l,name:c,register:d,required:u,setValue:g,value:x})=>{const f=p.useCallback(h=>{o.onChange&&o.onChange(h),g&&g(c,r==="day"?kt(String(h)):yi(String(h)))},[o,r,c,g]);return t.jsxs(Z,{...l,className:`${a?"disabled":""} ${e?"error":""}`,ref:i,children:[t.jsx(wt,{disabled:a,error:e!=null,props:{...o,autoFocus:!1,granularity:r,onChange:f,shouldForceLeadingZeros:!0}}),t.jsx(ke,{disabled:a,icon:r==="minute"?"calendar-clock":"calendar",props:n}),t.jsx("input",{...d==null?void 0:d(c,{required:u}),"aria-label":c,className:"date-input",disabled:a,id:c,name:c,type:"text",value:x})]})},Te=({children:e,...n})=>{const i=p.useRef(null),{dialogProps:a}=s.$40df3f8667284809$export$d55e7ee900f34e93(n,i);return t.jsx(fi,{...a,ref:i,children:e})},Ct=({disabled:e=!1,error:n,helpLink:i,helpLinkText:a,helpText:r,required:o,label:l,name:c,register:d,setValue:u,tooltip:g,watch:x,...f})=>{const h=p.useRef(null),y=x==null?void 0:x(c),$=s.$ab5bf3f618090389$export$87194bb378cc3ac2({...f,value:s._.isNil(y)||s._.isEmpty(y)||y==="-"?null:s.$fae977aafc393c5c$export$6b862160d295c8e(y.replace(/\//gu,"-"))}),{close:m}=$,{groupProps:w,fieldProps:j,buttonProps:I,dialogProps:S,calendarProps:z}=s.$6057a3d2a53a12fd$export$42df105a73306d51({...f,"aria-label":l??c,name:c},$,h),R=p.useCallback(L=>{z.onChange&&z.onChange(L),u&&u(c,kt(L.toString()))},[z,c,u]);return t.jsxs(O,{error:n,helpLink:i,helpLinkText:a,helpText:r,htmlFor:c,label:l,required:o,tooltip:g,children:[t.jsx(ae,{buttonProps:I,datePickerRef:h,disabled:e,error:n,fieldProps:j,groupProps:w,name:c,register:d,required:o,setValue:u,value:y}),$.isOpen&&!e?t.jsx(xe,{offset:8,placement:"bottom start",state:$,triggerRef:h,children:t.jsx(Te,{...S,children:t.jsx(yt,{onClose:m,props:{...z,onChange:R}})})}):null]})},vt=({onClose:e,props:n})=>{const{locale:i}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),a=p.useRef(null),r=s.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90({...n,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:o,nextButtonProps:l,title:c}=s.$46a4342aab3d8076$export$87e0539f600c24e5(n,r,a);return t.jsxs("div",{className:"calendar-range",ref:a,children:[t.jsx(Ie,{nextButtonProps:l,prevButtonProps:o,state:r,title:c}),t.jsx(ze,{state:r}),t.jsx(Ge,{children:t.jsx(D,{onClick:e,variant:"ghost",children:"Cancel"})})]})},wi=s.dt.div`
|
|
1089
1089
|
${({theme:e,$disabled:n,$show:i})=>`
|
|
1090
1090
|
border-color: ${i?e.palette.error[500]:e.palette.gray[300]};
|
|
1091
1091
|
display: flex;
|
|
@@ -1096,7 +1096,7 @@
|
|
|
1096
1096
|
background: ${n?e.palette.gray[200]:e.palette.white};
|
|
1097
1097
|
}
|
|
1098
1098
|
`}
|
|
1099
|
-
`,ji=({disabled:e=!1,error:n,label:i,name:
|
|
1099
|
+
`,ji=({disabled:e=!1,error:n,label:i,name:a,required:r,tooltip:o,register:l,setValue:c,...d})=>{const u=`${a}Max`,g=`${a}Min`,x=p.useRef(null),f=s.$93c38a5e28be6249$export$e50a61c1de9f574(d),{close:h}=f,{groupProps:y,startFieldProps:$,endFieldProps:m,buttonProps:w,dialogProps:j,calendarProps:I}=s.$887cac91b7cc8801$export$12fd5f0e9f4bb192({...d,"aria-label":i??a},f,x),S=p.useCallback(z=>{z&&I.onChange&&I.onChange(z)},[I]);return t.jsxs(O,{error:n,htmlFor:a,label:i,required:r,tooltip:o,children:[t.jsxs(wi,{$disabled:e,$show:n!==void 0,ref:x,children:[t.jsx(ae,{buttonProps:w,datePickerRef:x,disabled:e,error:n,fieldProps:{...$,"aria-label":`${$["aria-label"]} ${a}`,validate:z=>m.value&&z>m.value?"Start date must be less than or equal to end date":null},groupProps:y,name:g,register:l,setValue:c}),t.jsx(ae,{buttonProps:w,datePickerRef:x,disabled:e,error:n,fieldProps:{...m,"aria-label":`${m["aria-label"]} ${a}`,validate:z=>$.value&&z<$.value?"End date must be greater than or equal to start date":null},groupProps:y,name:u,register:l,setValue:c})]}),f.isOpen&&!e?t.jsx(xe,{offset:8,placement:"bottom start",state:f,triggerRef:x,children:t.jsx(Te,{...j,children:t.jsx(vt,{onClose:h,props:{...I,onChange:S}})})}):null]})},ki=s.dt.div`
|
|
1100
1100
|
${({theme:e})=>`
|
|
1101
1101
|
align-items: center;
|
|
1102
1102
|
border-top: 1px solid ${e.palette.gray[200]};
|
|
@@ -1111,9 +1111,9 @@
|
|
|
1111
1111
|
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1112
1112
|
justify-content: flex-end;
|
|
1113
1113
|
flex: 1 0 0;
|
|
1114
|
-
`,St=({handleTimeChange:e,onClose:n,props:i,timeState:
|
|
1114
|
+
`,St=({handleTimeChange:e,onClose:n,props:i,timeState:a})=>{const r=s.nt(),{locale:o}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),l=s.$131cf43a05231e1e$export$6d095e787d2b5e1f({...i,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:o}),{prevButtonProps:c,nextButtonProps:d,title:u}=s.$9942cad8a072a530$export$3ee915f8151bd4f1(i,l);return t.jsxs("div",{className:"calendar",children:[t.jsx(Ie,{nextButtonProps:d,prevButtonProps:c,state:l,title:u}),t.jsx(ze,{state:l}),t.jsxs(ki,{children:[t.jsx(k,{color:r.palette.gray[800],fontWeight:"bold",size:"sm",children:"Time"}),t.jsx(Ci,{children:t.jsx(jt,{hourCycle:12,label:"time-field",onChange:e,value:a.timeValue})})]}),t.jsx(Ge,{children:t.jsx(D,{onClick:n,variant:"ghost",children:"Cancel"})})]})},vi=e=>{const{disabled:n=!1,error:i,required:a,label:r,name:o,tooltip:l,register:c,setValue:d,watch:u}=e,g=u==null?void 0:u(o),x=p.useRef(null),f=s.$ab5bf3f618090389$export$87194bb378cc3ac2({...e,granularity:"minute",hourCycle:12,isDisabled:n,isRequired:a,shouldCloseOnSelect:!1,value:s._.isNil(g)||s._.isEmpty(g)||g==="-"?null:s.$fae977aafc393c5c$export$588937bcd60ade55(g.replace(/\//gu,"-"))}),{close:h}=f,{groupProps:y,fieldProps:$,buttonProps:m,dialogProps:w,calendarProps:j}=s.$6057a3d2a53a12fd$export$42df105a73306d51(e,f,x),I=p.useCallback(z=>{j.onChange&&j.onChange(z),d==null||d(o,mi(String(z).replace(/-/gu,"/")))},[j,o,d]),S=p.useCallback(z=>{z&&f.setTimeValue(z)},[f]);return t.jsxs(O,{error:i,htmlFor:o,label:r,required:a,tooltip:l,children:[t.jsx(ae,{buttonProps:m,datePickerRef:x,disabled:n,error:i,fieldProps:$,granularity:"minute",groupProps:y,name:o,register:c,setValue:d,value:g}),f.isOpen&&!n?t.jsx(xe,{offset:8,placement:"bottom start",state:f,triggerRef:x,children:t.jsx(Te,{...w,children:t.jsx(St,{handleTimeChange:S,onClose:h,props:{...j,onChange:I},timeState:f})})}):null]})},Si=({children:e,currentValue:n,externalLink:i,isEditing:a,label:r,name:o,tooltip:l})=>{if(a)return t.jsx("div",{children:e});const c=s.lodashExports.isNil(n)?"":n,d=String(i??c);return t.jsxs(b,{children:[t.jsx(Ve,{htmlFor:o,label:r,tooltip:l,weight:"bold"}),d.startsWith("https://")?t.jsx(q,{href:d,children:c}):t.jsx(k,{size:"md",children:c})]})},Ue=({disabled:e=!1,hasIcon:n=!1,helpLink:i,helpLinkText:a,helpText:r,error:o,isValid:l,isTouched:c,label:d,linkPosition:u,name:g,maskValue:x=!1,onPaste:f,placeholder:h,register:y,tooltip:$,type:m="text",weight:w,...j})=>{const{required:I,onBlur:S,onChange:z}=j,R=s.nt(),L=e?void 0:o,P=l&&c&&!e,W=p.useCallback(E=>{E.key==="Enter"&&E.preventDefault()},[]);return t.jsx(O,{error:L,helpLink:i,helpLinkText:a,helpText:r,htmlFor:g,label:d,linkPosition:u,required:I,tooltip:$,weight:w,children:t.jsxs(Z,{className:`
|
|
1115
1115
|
${e?"disabled":""} ${L?"error":""} ${P?"success":""}
|
|
1116
|
-
`,children:[n?t.jsx(C,{icon:"user",iconSize:"sm",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":L?"true":"false","aria-label":g,"aria-required":I,autoComplete:"off",className:x?"sr-block":"","data-testid":`${g}-input`,disabled:e,id:g,onKeyDown:W,onPaste:f,placeholder:h,type:m
|
|
1116
|
+
`,children:[n?t.jsx(C,{icon:"user",iconSize:"sm",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":L?"true":"false","aria-label":g,"aria-required":I,autoComplete:"off",className:x?"sr-block":"","data-testid":`${g}-input`,disabled:e,id:g,onKeyDown:W,onPaste:f,placeholder:h,type:m,...y?y(g,{required:I,onBlur:S,onChange:z}):{...j}}),L?t.jsx(C,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:R.palette.error[500],iconSize:"xs"}):void 0,P?t.jsx(C,{icon:"check-circle",iconClass:"success-icon",iconColor:R.palette.success[500],iconSize:"xs"}):void 0]})})},zi=s.dt(pt)`
|
|
1117
1117
|
white-space: nowrap;
|
|
1118
1118
|
margin-right: ${({theme:e})=>e.spacing[.25]};
|
|
1119
1119
|
text-overflow: ellipsis;
|
|
@@ -1124,13 +1124,13 @@
|
|
|
1124
1124
|
position: absolute;
|
|
1125
1125
|
visibility: hidden;
|
|
1126
1126
|
width: 0;
|
|
1127
|
-
`,Fe=(e,n,i)=>{const
|
|
1127
|
+
`,Fe=(e,n,i)=>{const a=new Event(e);return Object.defineProperty(a,"target",{value:{name:n,value:i}}),a},Ti=e=>{const n=e;return n?Array.from(n).map(i=>i.name).join(", "):""},Ni=({accept:e,disabled:n=!1,error:i,label:a,helpLink:r,helpText:o,id:l,multiple:c,name:d,onChange:u,required:g,register:x,setValue:f,tooltip:h,watch:y,weight:$})=>{const m=s.nt(),w=n?void 0:i,j=p.useRef(null),I=y==null?void 0:y(d),S=Ti(I),z=x==null?void 0:x(d,{required:g}),R=p.useCallback(()=>{const W=Fe("change",d,void 0);f&&f(d,""),z&&z.onChange(W)},[z,d,f]),L=p.useCallback(W=>{const{files:E}=W.currentTarget,N=Fe("change",d,E&&E.length>0?E:void 0);u==null||u(N),z&&z.onChange(N)},[z,d,u]),P=p.useCallback(W=>{n?W.preventDefault():j.current&&j.current.click()},[n]);return t.jsxs(O,{error:w,helpLink:r,helpText:o,htmlFor:l??d,label:a,required:g,tooltip:h,weight:$,children:[t.jsxs(Z,{className:`${n?"disabled":""} ${w?"error":""}`,children:[t.jsx(zi,{$size:"xs",children:S}),t.jsxs(b,{alignItems:"center",display:"flex",gap:.5,children:[s.lodashExports.isEmpty(S)?void 0:t.jsx(B,{color:m.palette.gray[400],height:"20px",icon:"xmark",iconSize:"lg",iconType:"fa-light",onClick:R,variant:"ghost",width:"20px"}),w&&t.jsx(C,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:m.palette.error[500],iconSize:"xs"})]}),t.jsxs(D,{border:n?`1px solid ${m.palette.gray[300]} !important`:"",borderRadius:"0px 8px 8px 0px !important",disabled:n,height:"40px",onClick:P,variant:"primary",width:"96px",children:[t.jsx(C,{icon:"search",iconSize:"sm",mr:.5}),"Add file"]})]}),t.jsx(Ii,{...z&&{ref:z.ref,onBlur:z.onBlur},accept:e,"aria-label":d,"data-testid":d,disabled:n,id:l??d,multiple:c,name:d,onChange:L,onClick:R,ref:j,required:void 0,type:"file",value:void 0})]})},Ei=s.dt.input`
|
|
1128
1128
|
border: none;
|
|
1129
1129
|
background: transparent;
|
|
1130
1130
|
min-width: 15rem;
|
|
1131
1131
|
padding: 0;
|
|
1132
1132
|
flex: 1;
|
|
1133
|
-
`,Pe=({disabled:e=!1,error:n,field:i,helpLink:
|
|
1133
|
+
`,Pe=({disabled:e=!1,error:n,field:i,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:u,placeholder:g,required:x,tooltip:f,value:h,weight:y})=>{const $=s.nt(),m=e?void 0:n,[w,j]=p.useState(""),I=d?h:i==null?void 0:i.value,S=p.useMemo(()=>I&&typeof I=="string"?I.split(",").filter(Boolean):[],[I]),z=p.useCallback(E=>{const A=[...new Set(E.filter(Boolean))].join(","),_=Fe("change",c,A);i&&i.onChange(_),d&&d(_)},[i,c,d]),R=p.useCallback(E=>{j(E.target.value)},[]),L=p.useCallback(E=>{const N=w.trim();N.length&&!S.includes(N)&&(E.preventDefault(),z([...S,N]),j("")),i&&i.onBlur()},[w,i,z,S]),P=p.useCallback(E=>{const N=w.trim();E.key==="Enter"&&N.length===0&&E.preventDefault(),["Enter",","].includes(E.key)&&N.length>0&&!S.includes(N)?(E.preventDefault(),z([...S,N]),j("")):E.key==="Backspace"&&!N.length&&S.length&&(E.preventDefault(),u==null||u(S[S.length-1]),z(S.slice(0,-1)))},[w,u,z,S]),W=p.useCallback(E=>()=>{u==null||u(E),z(S.filter(N=>N!==E))},[u,z,S]);return t.jsx(O,{error:m,helpLink:a,helpLinkText:r,helpText:o,htmlFor:c,label:l,required:x,tooltip:f,weight:y,children:t.jsxs(Z,{$overflowX:"auto",className:`${e?"disabled":""} ${m?"error":""}`,children:[S.map(E=>t.jsx(X,{disabled:e,onClose:W(E),tagLabel:E},E)),t.jsx(Ei,{"aria-hidden":!1,"aria-invalid":m?"true":"false","aria-label":c,"aria-required":x,autoComplete:"off",id:c,onBlur:L,onChange:R,onKeyDown:P,placeholder:S.length===0?g:void 0,ref:i==null?void 0:i.ref,type:"text",value:w}),m?t.jsx(C,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:$.palette.error[500],iconSize:"xs"}):void 0]})})},Ri=({disabled:e=!1,control:n,error:i,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:u,placeholder:g,required:x,tooltip:f,value:h,weight:y})=>n?t.jsx(s.Controller,{control:n,name:c,render:({field:$})=>t.jsx(Pe,{disabled:e,error:i,field:$,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c,onRemove:u,placeholder:g,required:x,tooltip:f,weight:y}),rules:{required:x}}):t.jsx(Pe,{disabled:e,error:i,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c,onChange:d,onRemove:u,placeholder:g,required:x,tooltip:f,value:h,weight:y}),Le=p.forwardRef(function({disabled:n,icon:i,margin:a,onClick:r,...o},l){return t.jsx(xi,{$margin:a,"aria-label":i,className:"action-btn",disabled:n,onClick:r,ref:l,type:"button",...o,children:t.jsx(C,{icon:i,iconClass:"action",iconSize:"xs",iconType:"fa-light"})})}),Ce=({error:e,decimalPlaces:n=0,disabled:i=!1,id:a,maxLength:r,max:o=1/0,min:l=0,name:c,onChange:d,placeholder:u,register:g,required:x,setValue:f,value:h})=>{const y=s.nt(),$=i?void 0:e,m=p.useMemo(()=>n<0?0:n,[n]),w=p.useMemo(()=>h===void 0?0:s._.toNumber(h),[h]),j=p.useCallback(()=>{const R=(w-10**-m).toFixed(m);f&&f(c,Math.max(Number(l),Number(R)))},[m,w,l,c,f]),I=p.useCallback(()=>{const R=(w+10**-m).toFixed(m);f&&f(c,Math.min(Number(o),Number(R)>Number(l)?Number(R):Number(l)))},[m,w,o,l,c,f]),S=p.useCallback(R=>{const{value:L}=R.target,P=/\d+/u.test(L)&&!s._.isEmpty(L);f&&f(c,P?Number(L):void 0),d&&d(R)},[c,d,f]),z=p.useCallback(R=>{R.key==="Enter"&&R.preventDefault()},[]);return t.jsxs(Z,{className:`${i?"disabled":""} ${$?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":$?"true":"false","aria-label":c,"aria-required":x,autoComplete:"off",disabled:i,id:a??c,max:o,min:l,onKeyDown:z,placeholder:u,required:x,step:10**-m,type:"number",...g==null?void 0:g(c,{required:x,maxLength:r,max:o,min:l,onChange:S})}),$&&t.jsx(C,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:y.palette.error[500],iconSize:"xs"}),t.jsx(Le,{borderLeft:"inherit",borderRight:"inherit",disabled:i,icon:"minus",margin:"0 -0.625rem 0 0",onClick:j,px:.75,py:.75}),t.jsx(Le,{borderRadius:`0 ${y.spacing[.5]} ${y.spacing[.5]} 0`,disabled:i,icon:"plus",onClick:I,px:.75,py:.75})]})},zt=({decimalPlaces:e,disabled:n=!1,error:i,helpLink:a,helpText:r,id:o,label:l,linkPosition:c,maxLength:d,max:u,min:g,name:x,onChange:f,placeholder:h,register:y,required:$,setValue:m,tooltip:w,value:j,watch:I,weight:S})=>t.jsx(O,{error:n?void 0:i,helpLink:a,helpText:r,htmlFor:x,label:l,linkPosition:c,maxLength:d,required:$,tooltip:w,weight:S,children:t.jsx(Ce,{decimalPlaces:e,disabled:n,error:i,id:o,max:u,maxLength:d,min:g,name:x,onChange:f,placeholder:h,register:y,required:$,setValue:m,value:f?j:I==null?void 0:I(x)})}),Di=({disabled:e=!1,error:n,name:i,label:a,propsMax:r,propsMin:o,required:l,tooltip:c})=>{const d=`${i}Max`,u=`${i}Min`;return t.jsx(O,{error:n,htmlFor:i,label:a,required:l,tooltip:c,children:t.jsxs(b,{display:"flex",gap:.25,width:"100%",children:[t.jsx(Ce,{...o,disabled:e,error:n,name:d}),t.jsx(Ce,{...r,disabled:e,error:n,name:u})]})})},Fi=s.dt.div`
|
|
1134
1134
|
${({theme:e})=>`
|
|
1135
1135
|
align-items: flex-start;
|
|
1136
1136
|
align-self: stretch;
|
|
@@ -1223,9 +1223,9 @@
|
|
|
1223
1223
|
overflow: hidden;
|
|
1224
1224
|
text-overflow: ellipsis;
|
|
1225
1225
|
white-space: nowrap;
|
|
1226
|
-
`,J=(e,n,i=!1)=>{p.useEffect(()=>{var
|
|
1226
|
+
`,J=(e,n,i=!1)=>{p.useEffect(()=>{var r;const a=o=>{e&&!e.contains(o.target)&&n()};return i?(document.addEventListener("click",a,!0),()=>{document.removeEventListener("click",a,!0)}):((r=document.getElementById("root"))==null||r.addEventListener("click",a,!0),()=>{var o;(o=document.getElementById("root"))==null||o.removeEventListener("click",a,!0)})},[i,e,n])},Bi=({disabled:e,error:n,label:i,name:a,placeholder:r,required:o,register:l,tooltip:c,value:d,weight:u})=>{const g=s.nt(),x=p.useRef(null),f=e?void 0:n,[h,y]=p.useState(!1),[$,m]=p.useState(""),{refs:w,floatingStyles:j}=s.useFloating({placement:"bottom-start",whileElementsMounted:s.autoUpdate}),{inputValue:I,handlePhoneValueChange:S,country:z,setCountry:R}=s.ee({countries:s.R,defaultCountry:"us",forceDialCode:!0,value:d?String(d):void 0}),L=p.useCallback(()=>{y(N=>!N),h||m("")},[h]),P=p.useCallback(N=>()=>{R(N),y(!1),m("")},[R,y]),W=p.useCallback(N=>{N.key.length===1?m(A=>A+N.key):N.key==="Backspace"&&m(A=>A.slice(0,-1))},[]),E=s.R.filter(N=>{const{name:A}=s.M$1(N);return A.toLowerCase().includes($.toLowerCase())});return J(w.floating.current,()=>{y(!1),m("")},!0),t.jsx(O,{error:f,htmlFor:a,label:i,required:o,tooltip:c,weight:u,children:t.jsxs(Fi,{className:`${e?"disabled":""} ${f?"error":""}`,ref:x,children:[t.jsxs(Pi,{"aria-label":"country-selector","data-testid":"country-selector",disabled:e,id:"country-selector",onClick:L,onKeyDown:W,ref:w.setReference,children:[t.jsx(s.q,{iso2:z.iso2,size:"16px"}),t.jsx(C,{icon:"angle-down",iconColor:g.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(Z,{className:`${e?"disabled":""} ${f?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":f?"true":"false","aria-label":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:S})}),f?t.jsx(C,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:g.palette.error[500],iconSize:"xs"}):void 0]}),h&&G.createPortal(t.jsx(Li,{ref:w.setFloating,style:j,children:E.map(N=>{const{dialCode:A,iso2:_,name:te}=s.M$1(N);return t.jsxs(Mi,{onClick:P(_),value:_,children:[t.jsx(s.q,{iso2:_,size:"16px"}),t.jsx(Wi,{children:te}),t.jsx(k,{color:g.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+A})]},_)})}),document.getElementById("root")??document.body)]})})},Ai=({disabled:e=!1,error:n,helpLink:i,helpText:a,isTouched:r,isValid:o,label:l,name:c="input-text",id:d,maskValue:u=!1,maxLength:g,placeholder:x,register:f,required:h,rows:y,tooltip:$,watch:m,weight:w})=>{const j=s.nt(),I=m==null?void 0:m(c),S=o&&r&&!e,z=e?void 0:n;return t.jsx(O,{error:z,helpLink:i,helpText:a,htmlFor:c,label:l,maxLength:g,required:h,tooltip:$,value:I?String(I):void 0,weight:w,children:t.jsxs(Z,{className:`
|
|
1227
1227
|
${e?"disabled":""} ${z?"error":""} ${S?"success":""}
|
|
1228
|
-
`,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":z?"true":"false","aria-label":c,"aria-required":h,className:u?"sr-block":"","data-testid":`${c}-text-area`,disabled:e,id:d??c,maxLength:g,placeholder:x,rows
|
|
1228
|
+
`,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":z?"true":"false","aria-label":c,"aria-required":h,className:u?"sr-block":"","data-testid":`${c}-text-area`,disabled:e,id:d??c,maxLength:g,placeholder:x,rows:y,...f==null?void 0:f(c,{required:h})}),z?t.jsx(C,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:j.palette.error[500],iconSize:"xs"}):void 0,S?t.jsx(C,{icon:"check-circle",iconClass:"success-icon",iconColor:j.palette.success[500],iconSize:"xs"}):void 0]})})},Oi=({description:e,disabled:n,id:i,align:a,inputType:r="text",inputNumberProps:o,minHeight:l,minWidth:c,name:d,placeholder:u,tooltip:g,title:x})=>{const f=p.useMemo(()=>{if(r==="text")return t.jsx(Ue,{disabled:n,name:d,placeholder:u});if(r==="date")return t.jsx(Ct,{disabled:n,name:d});const{decimalPlaces:h,max:y,min:$}=o??{};return t.jsx(zt,{decimalPlaces:h,disabled:n,max:y,min:$,name:d,placeholder:u})},[n,o,r,d,u]);return t.jsxs(ai,{$align:a,$minHeight:l,$minWidth:c,children:[t.jsx(Se,{description:e,id:i,title:x,tooltip:g}),f]})},Hi=s.dt.label`
|
|
1229
1229
|
${({theme:e})=>`
|
|
1230
1230
|
align-items: center;
|
|
1231
1231
|
color: ${e.palette.gray[600]};
|
|
@@ -1297,7 +1297,7 @@
|
|
|
1297
1297
|
fill: ${e.palette.white};
|
|
1298
1298
|
}
|
|
1299
1299
|
`}
|
|
1300
|
-
`,fe=p.forwardRef(function({disabled:n=!1,label:i,name:
|
|
1300
|
+
`,fe=p.forwardRef(function({disabled:n=!1,label:i,name:a,onChange:r,onClick:o,onFocus:l,onKeyDown:c,value:d,...u},g){return t.jsxs(Hi,{"aria-disabled":n,children:[t.jsx("input",{"aria-disabled":n,"aria-hidden":!1,"aria-label":a,disabled:n,id:a,name:a,onChange:r,onClick:o,onFocus:l,onKeyDown:c,ref:g,type:"checkbox",value:d,...u}),t.jsx(C,{disabled:n,icon:"check",iconSize:"sm"}),i??d]})}),It=({options:e,title:n,checkboxesName:i,defaultCollapsed:a,onChange:r})=>{const o=s.nt(),[l,c]=p.useState(a??!1),d=p.useCallback(()=>{c(u=>!u)},[]);return t.jsxs(b,{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,width:"100%",children:[t.jsxs(b,{alignItems:"center",cursor:"pointer",display:"flex",onClick:d,children:[t.jsx(k,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",children:n}),t.jsx(C,{icon:l?"chevron-up":"chevron-down",iconColor:o.palette.gray[400],iconSize:"xs"})]}),l?t.jsx(b,{display:"flex",gap:.75,wrap:"wrap",children:e.map(u=>t.jsx(b,{border:"1px solid",borderColor:o.palette.gray[300],borderRadius:"4px",px:.5,py:.5,children:t.jsx(fe,{checked:u.visible,disabled:u.locked,label:u.name,name:i,onChange:r,value:u.name})},u.name))}):void 0]})},Tt=(e,n)=>{const[a,r]=p.useState(0),[o,l]=p.useState(0);return p.useEffect(()=>{o===100&&(()=>{r(d=>d===n-1?0:d+1)})()},[o,n]),p.useEffect(()=>{const c=setInterval(()=>{l(d=>d===100?0:d+1)},e);return()=>{clearInterval(c)}},[e]),{cycle:a,progress:o,setCycle:r,setProgress:l}},Nt=({publicId:e,format:n="webp"})=>{const i=p.useMemo(()=>new s.Cloudinary({cloud:{cloudName:"fluid-attacks"}}),[]);return p.useMemo(()=>i.image(e).format(n),[i,e,n])},Ye=e=>{const[n,i]=p.useState(!1),a=p.useCallback(()=>{i(!0)},[]),r=p.useCallback(()=>{i(!1)},[]),o=p.useCallback(()=>{i(l=>!l)},[]);return{close:r,isOpen:n,name:e,open:a,setIsOpen:i,toggle:o}},_i=({name:e,items:n,columnOrder:i,setColumnOrder:a})=>{const r=p.useMemo(()=>[...n.filter(({locked:g})=>g).map(({locked:g,...x})=>({...x,visible:!0,locked:g})),...n.filter(({locked:g})=>!g).sort((g,x)=>g.visible===x.visible?0:g.visible?-1:1)],[n]),[o,l]=p.useState(r),c=p.useCallback(g=>{const x=g.filter(({locked:$})=>!$),h=[...g.filter(({locked:$})=>$),...x],y=h.map(({name:$})=>$);l($=>[...h,...$.filter(({name:m})=>!y.includes(m))]),a&&a(h.map(({id:$})=>$))},[a]),d=p.useCallback(()=>{const g=o.map(x=>{var h;const f=(i==null?void 0:i.includes(x.id))??!1;return(h=x.toggleVisibility)==null||h.call(x,f),{...x,visible:f}}).toSorted((x,f)=>{const h=(i==null?void 0:i.indexOf(x.id))??0,y=(i==null?void 0:i.indexOf(f.id))??0;return Number(f.visible)!==Number(x.visible)?Number(f.visible)-Number(x.visible):h-y});l(g),a==null||a(i)},[o,i,a]),u=p.useMemo(()=>s.some(o,g=>((i==null?void 0:i.includes(g.id))??!1)!==g.visible),[o,i]);return{setColumns:c,resetToDefault:d,columns:o,...Ye(e),hasChanged:u}},Et=(e,n)=>p.useMemo(()=>s._.debounce(e,n),[e,n]),Vi=e=>{const[n,i]=p.useState(),a=Et(r=>{i(r)},(e==null?void 0:e.debounceWait)??300);return[n,a]},Gi=({alt:e="img",height:n="",width:i="",plugins:a=[s.lazyload(),s.placeholder()],publicId:r})=>{const o=Nt({publicId:r});return t.jsx(s.AdvancedImage,{alt:e,cldImg:o,height:n,plugins:a,width:i})},V=p.memo(Gi),Ui=s.dt.label`
|
|
1301
1301
|
${({theme:e})=>`
|
|
1302
1302
|
align-items: center;
|
|
1303
1303
|
display: flex;
|
|
@@ -1376,7 +1376,7 @@
|
|
|
1376
1376
|
}
|
|
1377
1377
|
|
|
1378
1378
|
`}
|
|
1379
|
-
`,Yi=s.dt.span.attrs({className:"checkmark"})``,Rt=p.forwardRef(function({defaultChecked:n=!1,disabled:i=!1,label:
|
|
1379
|
+
`,Yi=s.dt.span.attrs({className:"checkmark"})``,Rt=p.forwardRef(function({defaultChecked:n=!1,disabled:i=!1,label:a,name:r,onChange:o,onClick:l,value:c,...d},u){return t.jsxs(Ui,{"aria-disabled":i,"aria-label":r,role:"radiogroup",children:[t.jsx("input",{"aria-checked":n,"aria-disabled":i,"aria-label":r,defaultChecked:n,disabled:i,name:r,onChange:o,onClick:l,ref:u,type:"radio",value:c,...d}),t.jsx(Yi,{}),a??null]})}),Ki=({alt:e,imageId:n,icon:i,selectorProps:a,onClick:r,title:o,width:l="fit-content"})=>{const c=s.nt();return t.jsxs(b,{alignItems:"center",border:`1px solid ${c.palette.gray[200]}`,borderColorHover:c.palette.gray[600],borderRadius:c.spacing[.25],display:"inline-flex",padding:[1,1,1,1],shadowHover:"md",width:l,children:[t.jsx(b,{alignSelf:"start",display:"flex",width:"fit-content",children:t.jsx(Rt,{name:a.name,onClick:r,value:a.value})}),t.jsxs(b,{alignItems:"center",display:"flex",gap:.5,justify:"space-between",ml:1,mr:1,width:"100%",children:[n===void 0?void 0:t.jsx(V,{alt:e??"card image",height:"32px",publicId:n,width:"32px"}),i===void 0?void 0:t.jsx(C,{icon:i,iconSize:"sm",iconType:"fa-light"}),t.jsx(M,{fontWeight:"bold",lineSpacing:1.75,size:"xs",children:o})]})]})},ne=s.dt.div`
|
|
1380
1380
|
${({theme:e})=>`
|
|
1381
1381
|
align-items: center;
|
|
1382
1382
|
background-color: ${e.palette.gray[200]};
|
|
@@ -1426,7 +1426,7 @@
|
|
|
1426
1426
|
background-color: ${({theme:e})=>e.palette.gray[200]};
|
|
1427
1427
|
border: 1px solid ${({theme:e})=>e.palette.gray[200]};
|
|
1428
1428
|
}
|
|
1429
|
-
`,Dt=p.forwardRef(function({defaultChecked:n,disabled:i=!1,justify:
|
|
1429
|
+
`,Dt=p.forwardRef(function({defaultChecked:n,disabled:i=!1,justify:a,name:r,leftDescription:o,rightDescription:l,...c},d){const u=n===!0?"on":"off",g=typeof o=="object"&&o.on&&o.off?o[u]:o,x=p.useCallback(f=>{f.stopPropagation()},[]);return t.jsxs(b,{alignItems:"center",display:"flex",fontSize:"14px",gap:.75,justify:a,children:[g,t.jsxs(Xi,{onClick:x,role:"switch",children:[t.jsx("input",{...c,"aria-disabled":i,"aria-label":r,checked:n===!0,disabled:i,name:r,ref:d,type:"checkbox"}),t.jsx(ne,{"aria-label":"Toggle Switch",id:`${r}Toggle`,children:t.jsx(qi,{})})]}),l]})}),Zi=({id:e,title:n,toggles:i,minWidth:a="auto",height:r="auto"})=>{const o=s.nt();return t.jsxs(b,{alignItems:"center",bgColor:o.palette.white,border:`1px solid ${o.palette.gray[200]}`,borderRadius:o.spacing[.25],display:"flex",flexDirection:"column",gap:.5,height:r,justify:"center",minHeight:"100px",minWidth:a,padding:[1.25,1.25,1.25,1.25],children:[t.jsx(Se,{id:e,title:n}),t.jsx(b,{display:"flex",flexDirection:"column",gap:.5,minHeight:"40px",width:"100%",children:i.map(l=>t.jsx(Dt,{...l},`$card-toggle-${l.name}`))})]})},Ji=s.dt.div`
|
|
1430
1430
|
position: relative;
|
|
1431
1431
|
margin: auto;
|
|
1432
1432
|
overflow: hidden;
|
|
@@ -1436,12 +1436,12 @@
|
|
|
1436
1436
|
transform: translateX(
|
|
1437
1437
|
${({$currentIndex:e})=>-e*100}%
|
|
1438
1438
|
);
|
|
1439
|
-
`,
|
|
1439
|
+
`,ea=s.dt.div`
|
|
1440
1440
|
align-items: center;
|
|
1441
1441
|
display: flex;
|
|
1442
1442
|
justify-content: center;
|
|
1443
1443
|
min-width: 100%;
|
|
1444
|
-
`,
|
|
1444
|
+
`,ta=s.dt.button`
|
|
1445
1445
|
${({theme:e,$isActive:n})=>`
|
|
1446
1446
|
background-color: ${n?e.palette.primary[400]:e.palette.white};
|
|
1447
1447
|
border: none;
|
|
@@ -1450,13 +1450,13 @@
|
|
|
1450
1450
|
height: ${e.spacing[.75]};
|
|
1451
1451
|
width: ${e.spacing[.75]};
|
|
1452
1452
|
`}
|
|
1453
|
-
`,
|
|
1453
|
+
`,na=s.dt.div`
|
|
1454
1454
|
align-items: center;
|
|
1455
1455
|
display: flex;
|
|
1456
1456
|
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1457
1457
|
justify-content: center;
|
|
1458
1458
|
margin-top: ${({theme:e})=>e.spacing[2]};
|
|
1459
|
-
`,
|
|
1459
|
+
`,ia=({slides:e,interval:n=300})=>{const{cycle:i,setCycle:a,setProgress:r}=Tt(n,e.length),o=p.useCallback(l=>()=>{a(l),r(0)},[a,r]);return t.jsxs(Ji,{"aria-roledescription":"carousel",children:[t.jsx(Qi,{$currentIndex:i,children:e.map((l,c)=>{const d=`slide-${c}`;return t.jsx(ea,{"aria-label":d,"aria-roledescription":"slide",children:l.content},d)})}),t.jsx(na,{children:e.map((l,c)=>{const d=`nav-button-${c}`;return t.jsx(ta,{$isActive:c===i,"aria-label":`Go to slide ${c+1}`,"data-testid":c===i?"active":"inactive",onClick:o(c)},d)})})]})},Ft=s.dt.div`
|
|
1460
1460
|
${({theme:e})=>`
|
|
1461
1461
|
background-color: ${e.palette.gray[100]};
|
|
1462
1462
|
border-radius: ${e.spacing[.25]};
|
|
@@ -1508,7 +1508,7 @@
|
|
|
1508
1508
|
padding-bottom: unset;
|
|
1509
1509
|
}
|
|
1510
1510
|
`}
|
|
1511
|
-
`,
|
|
1511
|
+
`,aa=s.dt.div`
|
|
1512
1512
|
${({theme:e})=>`
|
|
1513
1513
|
align-items: end;
|
|
1514
1514
|
background-color: ${e.palette.gray[100]};
|
|
@@ -1526,10 +1526,10 @@
|
|
|
1526
1526
|
background-color: ${e.palette.gray[200]};
|
|
1527
1527
|
}
|
|
1528
1528
|
`}
|
|
1529
|
-
`,Pt=({noCodeMessage:e="Code snippet not available",snippet:n,specific:i})=>(p.useEffect(()=>{s.prismExports.highlightAll()},[]),t.jsx(Ft,{"data-private":!0,children:t.jsx("pre",{className:"line-highlight","data-line-offset":s._.isNil(n)||s._.isString(n)?0:n.offset+.7,...i!==void 0?{"data-line":String(Number(i))}:{},children:s._.isNil(n)||s._.isString(n)||s._.isEmpty(n.content)?t.jsx("div",{className:"no-data",children:t.jsx("p",{children:e})}):t.jsx("code",{className:"language-none",children:n.content})})})),
|
|
1529
|
+
`,Pt=({noCodeMessage:e="Code snippet not available",snippet:n,specific:i})=>(p.useEffect(()=>{s.prismExports.highlightAll()},[]),t.jsx(Ft,{"data-private":!0,children:t.jsx("pre",{className:"line-highlight","data-line-offset":s._.isNil(n)||s._.isString(n)?0:n.offset+.7,...i!==void 0?{"data-line":String(Number(i))}:{},children:s._.isNil(n)||s._.isString(n)||s._.isEmpty(n.content)?t.jsx("div",{className:"no-data",children:t.jsx("p",{children:e})}):t.jsx("code",{className:"language-none",children:n.content})})})),ra=({noCodeMessage:e="Code snippet not available",snippet:n,specific:i,variant:a="normal"})=>{const r=s.nt(),[o,l]=p.useState(!1),[c,d]=p.useState(!0),u=p.useCallback(()=>{l(h=>!h)},[l]),g=p.useCallback(()=>{if(s._.isNil(n)||s._.isEmpty(n)||!s._.isString(n))return d(!1),e;const h=n.split(`
|
|
1530
1530
|
`);return h.length>8&&!o?`${[...h].splice(0,7).join(`
|
|
1531
1531
|
`)}
|
|
1532
|
-
${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(async()=>{await navigator.clipboard.writeText(x)},[x]);return
|
|
1532
|
+
${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(async()=>{await navigator.clipboard.writeText(x)},[x]);return a==="location"?t.jsx(Pt,{noCodeMessage:e,snippet:n,specific:i}):t.jsxs(b,{bgColor:r.palette.gray[100],borderRadius:"4px",display:"inline-flex",minWidth:"565px",position:"relative",children:[t.jsx(Ft,{"data-private":!0,children:t.jsx("pre",{children:t.jsx("code",{className:"language-none",children:x})})}),t.jsxs(aa,{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:u,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:oa}=U(e=>({fixed:`
|
|
1533
1533
|
width: 300px;
|
|
1534
1534
|
padding: ${e.spacing[1.25]};
|
|
1535
1535
|
overflow: hidden auto;
|
|
@@ -1582,9 +1582,9 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
1582
1582
|
}
|
|
1583
1583
|
}
|
|
1584
1584
|
|
|
1585
|
-
${
|
|
1585
|
+
${oa(e,n)}
|
|
1586
1586
|
`}
|
|
1587
|
-
`,
|
|
1587
|
+
`,sa=s.dt.div`
|
|
1588
1588
|
${({theme:e})=>`
|
|
1589
1589
|
background-color: ${e.palette.white};
|
|
1590
1590
|
border-bottom: 1px solid ${e.palette.gray[200]};
|
|
@@ -1602,7 +1602,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
1602
1602
|
padding: 0;
|
|
1603
1603
|
}
|
|
1604
1604
|
`}
|
|
1605
|
-
`,
|
|
1605
|
+
`,la=s.dt.div`
|
|
1606
1606
|
border-radius: ${({theme:e})=>`${e.spacing[.25]} ${e.spacing[.25]} 0 0`};
|
|
1607
1607
|
display: block;
|
|
1608
1608
|
overflow: unset;
|
|
@@ -1611,7 +1611,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
1611
1611
|
max-width: 100%;
|
|
1612
1612
|
padding: ${({theme:e})=>`${e.spacing[1.25]}`};
|
|
1613
1613
|
position: sticky;
|
|
1614
|
-
`,
|
|
1614
|
+
`,ca=s.dt.div.attrs({className:"flex items-center justify-between mb-1.5"})``,da=s.dt.div`
|
|
1615
1615
|
${({theme:e})=>`
|
|
1616
1616
|
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
1617
1617
|
display: flex;
|
|
@@ -1642,7 +1642,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
1642
1642
|
margin-right: 0;
|
|
1643
1643
|
}
|
|
1644
1644
|
`}
|
|
1645
|
-
`,
|
|
1645
|
+
`,pa=s.dt.div`
|
|
1646
1646
|
img {
|
|
1647
1647
|
margin: 0 calc(-${({theme:e})=>e.spacing[1.25]} - 1px)
|
|
1648
1648
|
${({theme:e})=>e.spacing[1.25]};
|
|
@@ -1658,7 +1658,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
1658
1658
|
margin-right: 0;
|
|
1659
1659
|
`:""}
|
|
1660
1660
|
}
|
|
1661
|
-
`,Lt=({alert:e,modalRef:n,confirmButton:i=void 0,cancelButton:
|
|
1661
|
+
`,Lt=({alert:e,modalRef:n,confirmButton:i=void 0,cancelButton:a=void 0})=>{const{close:r}=n,o=p.useCallback(()=>{a!=null&&a.onClick&&a.onClick(),r()},[a,r]),l=p.useCallback(()=>{i!=null&&i.onClick&&i.onClick(),r()},[i,r]);return[i,a].some(d=>!s.lodashExports.isEmpty(d))?t.jsxs(b,{display:"flex",flexDirection:"column",gap:.625,position:"sticky",px:1.25,py:1.25,children:[e,t.jsx(da,{children:t.jsxs("div",{children:[a&&t.jsx(D,{onClick:o,variant:"tertiary",width:"100%",children:a.text}),i&&t.jsx(D,{onClick:l,variant:"primary",width:"100%",children:i.text})]})})]}):null},ga=s.dt.button`
|
|
1662
1662
|
${({theme:e})=>`
|
|
1663
1663
|
align-items: center;
|
|
1664
1664
|
color: ${e.palette.gray[500]};
|
|
@@ -1678,7 +1678,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
1678
1678
|
color: ${e.palette.gray[800]};
|
|
1679
1679
|
}
|
|
1680
1680
|
`}
|
|
1681
|
-
`,
|
|
1681
|
+
`,ua=s.dt.div`
|
|
1682
1682
|
${({theme:e})=>`
|
|
1683
1683
|
align-items: center;
|
|
1684
1684
|
border-bottom: 2px solid ${e.palette.gray[200]};
|
|
@@ -1687,11 +1687,11 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
1687
1687
|
height: ${e.spacing[3]};
|
|
1688
1688
|
width: max-content;
|
|
1689
1689
|
`}
|
|
1690
|
-
`,
|
|
1690
|
+
`,xa=(e,n,i)=>i?n==="secondary"?`3px solid ${e.palette.primary[100]}`:`3px solid ${e.palette.primary[500]}`:"unset",fa=s.dt.div`
|
|
1691
1691
|
display: flex;
|
|
1692
1692
|
flex-direction: row;
|
|
1693
1693
|
gap: ${({theme:e})=>e.spacing[.25]};
|
|
1694
|
-
border-bottom: ${({theme:e,$borderButton:n,$variant:i})=>
|
|
1694
|
+
border-bottom: ${({theme:e,$borderButton:n,$variant:i})=>xa(e,i,n)};
|
|
1695
1695
|
align-items: center;
|
|
1696
1696
|
padding: ${({theme:e})=>e.spacing[.625]}
|
|
1697
1697
|
${({theme:e})=>e.spacing[.5]};
|
|
@@ -1730,7 +1730,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
1730
1730
|
}
|
|
1731
1731
|
}
|
|
1732
1732
|
}
|
|
1733
|
-
`,
|
|
1733
|
+
`,ha=s.dt(ee)`
|
|
1734
1734
|
${({theme:e,$variant:n})=>`
|
|
1735
1735
|
align-items: center;
|
|
1736
1736
|
background: ${n==="error"?e.palette.primary[400]:e.palette.warning[500]};
|
|
@@ -1743,14 +1743,14 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
1743
1743
|
width: ${e.spacing[.5]};
|
|
1744
1744
|
height: ${e.spacing[.5]};
|
|
1745
1745
|
`}
|
|
1746
|
-
`,
|
|
1746
|
+
`,ba=s.dt.div`
|
|
1747
1747
|
align-items: center;
|
|
1748
1748
|
color: ${({theme:e})=>e.palette.white};
|
|
1749
1749
|
display: flex;
|
|
1750
1750
|
font-size: 6px;
|
|
1751
1751
|
font-weight: ${({theme:e})=>e.typography.weight.bold};
|
|
1752
1752
|
justify-content: center;
|
|
1753
|
-
`,Mt=p.forwardRef(function({numberIndicator:n,show:i,variant:
|
|
1753
|
+
`,Mt=p.forwardRef(function({numberIndicator:n,show:i,variant:a="error",...r},o){return t.jsx(ha,{$variant:a,className:i?"flex":"hidden","data-testid":"notification-sign",ref:o,...r,children:n&&t.jsx(ba,{children:n<=9?n:9})})}),Wt=({end:e=!1,label:n,id:i,isActive:a=!1,link:r,notificationSign:o,onClick:l,tooltip:c="",variant:d="primary",tag:u})=>{const{pathname:g}=Re.useLocation(),x=a||(d==="primary"?g.includes(r):g.endsWith(r));return t.jsx(Y,{display:"flex",id:`${i}-tooltip`,tip:c,children:t.jsxs(fa,{$borderButton:x,$variant:d,children:[t.jsxs(Re.NavLink,{end:e,id:i,onClick:l,to:r,children:[n,t.jsx(Mt,{left:o==null?void 0:o.left,numberIndicator:o==null?void 0:o.numberIndicator,show:o==null?void 0:o.show,top:o==null?void 0:o.top,variant:o==null?void 0:o.variant})]}),u===void 0?null:t.jsx(X,{tagLabel:`${u}`,variant:"default"})]})})},Ke=({items:e,borders:n=!0,box:i=!1,variant:a="primary"})=>{const r=s.nt();return t.jsx(b,{alignItems:"center",bgColor:r.palette.white,border:i?"1px solid":void 0,borderBottom:n?`1px solid ${r.palette.gray[300]}`:void 0,borderColor:i?r.palette.gray[200]:void 0,borderRadius:i?r.spacing[.25]:void 0,display:"inline-flex",gap:.25,id:"tablist",padding:i?[0,0,0,0]:void 0,pl:n?1.25:void 0,pr:n?1.25:void 0,role:"tablist",width:i?"max-content":"100%",children:e.map(({end:o,id:l,isActive:c,link:d,label:u,notificationSign:g,onClick:x,tag:f,tooltip:h})=>t.jsx(Wt,{end:o,id:l,isActive:c,label:u,link:d,notificationSign:g,onClick:x,tag:f,tooltip:h,variant:a},l))})},Bt=({tabItems:e,title:n,description:i,modalRef:a,otherActions:r,onClose:o})=>{const l=s.nt(),c=p.useCallback(()=>{o==null||o(),a.close()},[a,o]);return p.useEffect(()=>{const d=u=>{u.key==="Escape"&&c()};return window.addEventListener("keydown",d),()=>{window.removeEventListener("keydown",d)}},[c]),t.jsxs(t.Fragment,{children:[t.jsxs(la,{children:[t.jsxs(ca,{children:[typeof n=="string"?t.jsx(M,{fontWeight:"bold",lineSpacing:1.75,mr:1,size:"sm",children:n}):n,t.jsxs("div",{className:"items-center flex gap-3",children:[r,t.jsx(B,{icon:"close",iconColor:l.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:c,px:.25,py:.25,variant:"ghost"})]})]}),i&&s.lodashExports.isString(i)&&!s.lodashExports.isEmpty(i)?t.jsx(k,{mt:.5,size:"sm",children:i}):i]}),e&&t.jsx(b,{borderTop:`1px solid ${l.palette.gray[300]}`,display:"block",position:"sticky",children:t.jsx(Ke,{items:e})})]})},At=({disabled:e,id:n="modal-confirm",onCancel:i,onConfirm:a="submit",txtCancel:r,txtConfirm:o})=>{const l=a==="submit";return t.jsxs(b,{display:"flex",gap:.75,maxWidth:i?"392px":"190px",mt:1.5,children:[i?t.jsx(D,{id:`${n}-cancel`,justify:"center",onClick:i,variant:"tertiary",width:"100%",children:r??"Cancel"}):void 0,t.jsx(D,{disabled:e,id:n,justify:"center",onClick:l?void 0:a,type:l?"submit":"button",variant:"primary",width:"100%",children:o??"Confirm"})]})},Q=p.forwardRef(function({color:n=v.palette.gray[100],mt:i=.5,mb:a=.5,width:r,...o},l){return t.jsx(b,{as:"hr",borderBottom:`1px solid ${n}`,mb:a,mt:i,ref:l,width:r??"100%",...o})}),$a=s.dt.li`
|
|
1754
1754
|
${({theme:e})=>`
|
|
1755
1755
|
align-items: center;
|
|
1756
1756
|
background-color: ${e.palette.white};
|
|
@@ -1808,7 +1808,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
1808
1808
|
min-width: 240px;
|
|
1809
1809
|
padding: ${e.spacing[.25]} 0 ${e.spacing[.25]} 0;
|
|
1810
1810
|
`}
|
|
1811
|
-
`,$e=({children:e,disabled:n=!1,icon:i,iconType:
|
|
1811
|
+
`,$e=({children:e,disabled:n=!1,icon:i,iconType:a="fa-light",href:r,onClick:o,onClickIcon:l,onKeyDown:c,rightIcon:d,selected:u=!1,value:g,...x})=>{const h=s.nt().palette.gray[n?300:800],y=n?p.Children.map(e,$=>p.isValidElement($)?p.cloneElement($,{disabled:n,...$.props}):$):e;return t.jsxs($a,{"aria-disabled":n,"aria-label":g,"aria-selected":u,"data-testid":g,onClick:o,onKeyDown:c,value:g,...x,children:[i!==void 0||g!==void 0?t.jsxs(b,{alignItems:"center",display:"flex",gap:.625,children:[i?t.jsx(C,{disabled:n,icon:i,iconColor:h,iconSize:"xxs",iconType:a}):null,r===void 0?y:t.jsx(q,{href:r,children:y})]}):null,u||d?t.jsx(C,{disabled:n,icon:d??"check",iconClass:"selected",iconColor:h,iconSize:"xs",iconType:a,onClick:l}):null]})},ya=s.dt($e)`
|
|
1812
1812
|
margin-top: 10px;
|
|
1813
1813
|
border: 1px solid ${({theme:e})=>e.palette.gray[300]};
|
|
1814
1814
|
border-radius: 4px;
|
|
@@ -1826,7 +1826,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
1826
1826
|
&[aria-selected="true"]:not([aria-disabled="true"]) {
|
|
1827
1827
|
background-color: unset;
|
|
1828
1828
|
}
|
|
1829
|
-
`,Ht=({items:e,onReorder:n,title:i,description:
|
|
1829
|
+
`,Ht=({items:e,onReorder:n,title:i,description:a,onClickClose:r})=>{const o=p.useCallback(l=>()=>{r(l)},[r]);return t.jsxs(s.ReorderGroup,{as:"div",axis:"y",layoutScroll:!0,onReorder:n,style:{height:"max-content",padding:"1.25rem 0",width:"45%"},values:e,children:[t.jsxs(b,{display:"flex",gap:.25,children:[t.jsx(M,{display:"flex",size:"xs",children:i}),t.jsx(X,{priority:"high",tagLabel:String(e.filter(l=>l.visible).length),variant:"error"})]}),t.jsx(k,{size:"sm",children:a}),e.map(l=>l.visible?t.jsx(s.ReorderItem,{as:"div",dragListener:!l.locked,item:l.name,value:l,children:t.jsx(ya,{disabled:l.locked,icon:"grid-2",label:l.name,onClickIcon:o(l.id),rightIcon:l.locked?"lock":"close",selected:l.visible,value:l.name,children:l.name})},l.name):void 0)]})},ma=s.dt($e)`
|
|
1830
1830
|
padding: 7px 8px;
|
|
1831
1831
|
|
|
1832
1832
|
&[aria-selected="true"] {
|
|
@@ -1842,7 +1842,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
1842
1842
|
display: none;
|
|
1843
1843
|
}
|
|
1844
1844
|
}
|
|
1845
|
-
`,_t=e=>e.reduce((i,
|
|
1845
|
+
`,_t=e=>e.reduce((i,a)=>a.group?i[a.group]?{...i,[a.group]:[...i[a.group],a]}:{...i,[a.group]:[a]}:i,{}),wa=s.dt.input`
|
|
1846
1846
|
${({theme:e})=>`
|
|
1847
1847
|
background: none;
|
|
1848
1848
|
border: none !important;
|
|
@@ -1854,11 +1854,25 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
1854
1854
|
outline: none;
|
|
1855
1855
|
width: 100%;
|
|
1856
1856
|
|
|
1857
|
+
&:-webkit-autofill {
|
|
1858
|
+
-webkit-background-clip: text;
|
|
1859
|
+
}
|
|
1860
|
+
|
|
1857
1861
|
&::placeholder {
|
|
1858
1862
|
color: ${e.palette.gray[400]};
|
|
1859
1863
|
}
|
|
1864
|
+
|
|
1865
|
+
&:is(:hover, :focus)::-webkit-search-cancel-button {
|
|
1866
|
+
display:none;
|
|
1867
|
+
}
|
|
1868
|
+
|
|
1869
|
+
::-webkit-search-decoration,
|
|
1870
|
+
::-webkit-search-results-button,
|
|
1871
|
+
::-webkit-search-results-decoration {
|
|
1872
|
+
display:none;
|
|
1873
|
+
}
|
|
1860
1874
|
`}
|
|
1861
|
-
`,
|
|
1875
|
+
`,ja=s.dt.div`
|
|
1862
1876
|
${({theme:e})=>`
|
|
1863
1877
|
align-items: center;
|
|
1864
1878
|
background-color: ${e.palette.white};
|
|
@@ -1878,13 +1892,13 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
1878
1892
|
border: 2px solid ${e.palette.black};
|
|
1879
1893
|
}
|
|
1880
1894
|
`}
|
|
1881
|
-
`,
|
|
1895
|
+
`,ka=s.dt.div`
|
|
1882
1896
|
${({theme:e})=>`
|
|
1883
1897
|
background-color: ${e.palette.white};
|
|
1884
1898
|
border-radius: ${e.spacing[.5]};
|
|
1885
1899
|
width: 250px;
|
|
1886
1900
|
`}
|
|
1887
|
-
`,
|
|
1901
|
+
`,re=p.forwardRef(function({name:n,smallSearch:i=!1,onClear:a,value:r,...o},l){const c=s.nt(),[d,u]=p.useState(!1),{refs:g,floatingStyles:x}=s.useFloating(),f=p.useCallback(()=>{u($=>!$)},[]),h=p.useCallback($=>{$.key==="Enter"&&$.preventDefault()},[]);J(g.floating.current,()=>{u(!1)},!0);const y=t.jsxs(ja,{children:[t.jsx(C,{icon:"magnifying-glass",iconColor:c.palette.gray[700],iconSize:"xs",iconType:"fa-light"}),t.jsx(wa,{...o,id:n,name:n,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 i?t.jsxs(p.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(ka,{ref:g.setFloating,style:x,children:y}):void 0]}):y}),Vt=({columns:e,formId:n,onChangeHandler:i,variant:a})=>{const r=p.useRef(null),[o,l]=p.useState([]),[c,d]=p.useState(""),u=p.useCallback(x=>{const{value:f}=x.target;d(f)},[]),g=p.useCallback(()=>{r.current&&(r.current.reset(),d(""))},[r]);return p.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(b,{display:"flex",flexDirection:"column",gap:.625,height:"100%",py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:r,children:t.jsx(re,{name:"search",onChange:u,onClear:g,value:c})}),t.jsx("form",{"data-testid":n,id:n,onReset:g,style:{display:"flex",flexDirection:"column",gap:"0.625rem"},children:Object.entries(_t(o)).map(([x,f],h)=>{const y=`li-checkbox${x}`;return t.jsx(It,{checkboxesName:x,defaultCollapsed:h===0,onChange:i,options:f,title:x},y)})})]}):t.jsxs(b,{height:"100%",py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:r,children:t.jsx(re,{name:"search",onChange:u,onClear:g,value:c})}),t.jsx("form",{"data-testid":n,id:n,onReset:g,style:{paddingTop:"0.625rem"},children:o.map(x=>{const f=`li-checkbox-${x.name}`;return t.jsx(ma,{selected:x.visible,value:f,width:"content",children:t.jsx(fe,{checked:x.visible,disabled:x.locked,label:x.name,name:x.name,onChange:i,value:x.name})},f)})})]})},Ca=({_containerId:e="portals",title:n,modalRef:i,variant:a})=>{const r=s.nt(),o=p.useRef(null),[l,c]=p.useState(void 0),d=p.useCallback(x=>{const{checked:f,value:h}=x.target,y=i.columns.map($=>{var m;return $.name===h?((m=$.toggleVisibility)==null||m.call($,f),{...$,visible:f}):$});i.setColumns(y)},[i]),u=p.useCallback(x=>{const f=i.columns.map(h=>{var y;return h.id===x?((y=h.toggleVisibility)==null||y.call(h,!1),{...h,visible:!1}):h});i.setColumns(f)},[i]),g=p.useCallback(()=>{var f;const x=(f=o.current)==null?void 0:f.scrollHeight;l!==x&&c(x)},[l]);return i.isOpen?G.createPortal(t.jsx(he,{"aria-label":i.name,"aria-modal":"true",children:t.jsxs(be,{$size:"md",flexDirection:"column",children:[t.jsxs(b,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(M,{size:"sm",children:n}),t.jsx(B,{icon:"close",iconColor:r.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:i.close,px:.25,py:.25,variant:"ghost"})]}),t.jsx(Q,{mb:0,mt:0}),t.jsxs(b,{display:"flex",gap:1.25,onScroll:g,px:1.25,ref:o,scroll:"y",width:"100%",children:[t.jsx(Vt,{columns:i.columns,formId:"columns-visibility",onChangeHandler:d,variant:a}),t.jsx(b,{borderLeft:`2px solid ${r.palette.gray[100]}`,height:l?`${l}px`:"auto"}),t.jsx(Ht,{description:"Click and drag to reorder the columns",items:i.columns,onClickClose:u,onReorder:i.setColumns,title:"Reorder columns"})]}),t.jsx(Q,{mb:0,mt:0}),t.jsxs(b,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(D,{disabled:!i.hasChanged,form:"columns-visibility",id:"columns-modal-cancel",justify:"center",onClick:i.resetToDefault,type:"reset",variant:"tertiary",children:"Reset to Default"}),t.jsx(D,{id:"columns-modal-submit",justify:"center",onClick:i.close,variant:"primary",children:"Save Changes"})]})]})}),document.getElementById(e)??document.body):t.jsx("div",{})},va=s.dt($e)`
|
|
1888
1902
|
padding: 8px;
|
|
1889
1903
|
min-width: unset;
|
|
1890
1904
|
`,Gt=s.dt($e)`
|
|
@@ -1896,7 +1910,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
1896
1910
|
`,Ut=s.dt(B)`
|
|
1897
1911
|
background-color: ${({theme:e})=>e.palette.white};
|
|
1898
1912
|
color: ${({theme:e})=>e.palette.gray[400]};
|
|
1899
|
-
`,Me=({options:e,onSubmit:n,id:i,open:
|
|
1913
|
+
`,Me=({options:e,onSubmit:n,id:i,open:a})=>{const[r,o]=p.useState([]),{register:l,handleSubmit:c,setValue:d}=s.useForm({defaultValues:{checkbox:e.filter(f=>f.checked).map(f=>f.value)}}),u=p.useCallback(f=>{const{value:h}=f.target;o(e.filter(y=>{var $;return(($=y.label)==null?void 0:$.toLowerCase().includes(h.toLowerCase()))??y.value.toLowerCase().includes(h.toLowerCase())}))},[e]),g=p.useCallback(f=>{n&&n(f.checkbox)},[n]);p.useEffect(()=>{o(e),d("checkbox",e.filter(f=>f.checked).map(f=>f.value))},[e,d]);const x=t.jsx(he,{$bgColor:"transparent",children:t.jsxs(be,{$size:"fixed",flexDirection:"column",gap:1.25,children:[t.jsx(re,{onChange:u}),t.jsxs("form",{id:i,onSubmit:c(g),style:{overflowY:"auto"},children:[r.map(f=>{const h=`li-checkbox${f.value}`;return t.jsx(Gt,{value:h,width:"content",children:t.jsx(fe,{...l("checkbox"),label:f.label,value:f.value})},h)}),t.jsx(D,{mt:1,type:"submit",children:"Apply"})]})]})});return a?G.createPortal(x,document.getElementById("portals")??document.body):t.jsx("div",{})},ve=({options:e,variant:n,onApplyFilters:i})=>{const a=s.nt(),[r,o]=p.useState(e),[l,c]=p.useState([]),[d,u]=p.useState({}),[g,x]=p.useState(""),f=p.useCallback($=>()=>{const m=r.find(w=>w.label===$);x($),c((m==null?void 0:m.filterOptions)??[])},[r]),h=p.useCallback($=>{u(j=>$.length>0?{...j,[g]:$}:j);const m=j=>({...j,checked:$.includes(j.value)}),w=j=>j.label===g?{...j,filterOptions:j.filterOptions.map(m)}:j;o(j=>j.map(w)),i({[g]:$}),c([])},[i,g]),y=p.useCallback(($,m)=>{const w=`li-filter-option-${$}`;return t.jsxs(va,{icon:m,onClick:f($),value:w,width:"100%",children:[$,d[$]===void 0?void 0:t.jsx(X,{tagLabel:d[$].length.toString()})]},w)},[d,f]);return p.useEffect(()=>{const $=e.reduce((m,{label:w,filterOptions:j})=>{const I=j.filter(({checked:S=!1})=>S).map(({value:S})=>S);return I.length===0?m:{...m,[w]:I}},{});u($)},[e]),n==="grouped"?t.jsxs(b,{flexGrow:1,position:"relative",zIndex:80,children:[Object.entries(_t(e)).map(([$,m])=>t.jsxs(b,{width:"100%",children:[t.jsx(k,{color:a.palette.gray[400],mb:.25,size:"sm",children:$}),m.map(({label:w,icon:j="filter-list"})=>y(w,j))]},$)),t.jsx(Me,{id:"filters-options",onSubmit:h,open:l.length>0,options:l})]}):t.jsxs(b,{flexGrow:1,children:[e.map(({label:$,icon:m="filter-list"})=>y($,m)),t.jsx(Me,{id:"filters-options",onSubmit:h,open:l.length>0,options:l})]})},Sa=({_containerId:e="portals",options:n,onApplyFilters:i,modalRef:a})=>a.isOpen?G.createPortal(t.jsx(he,{$bgColor:"transparent","aria-label":a.name,"aria-modal":"true",children:t.jsxs(be,{$size:"fixed",alignItems:"start",display:"flex",flexDirection:"row",gap:.5,position:"relative",children:[t.jsx(ve,{onApplyFilters:i,options:n,variant:"ungrouped"}),t.jsx(Ut,{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",{}),za=({_containerId:e="portals",rightColumnOptions:n,leftColumnOptions:i,variant:a,onApplyFilters:r,modalRef:o})=>o.isOpen?G.createPortal(t.jsx(he,{$bgColor:"transparent","aria-label":o.name,"aria-modal":"true",children:t.jsxs(be,{$size:"lg",alignItems:"start",flexDirection:"row",gap:1,position:"relative",px:1.25,py:1.25,children:[t.jsxs(b,{display:"flex",flexGrow:1,gap:1,justify:"space-between",children:[t.jsx(ve,{onApplyFilters:r,options:i,variant:a}),t.jsx(ve,{onApplyFilters:r,options:n,variant:a})]}),t.jsx(Ut,{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",{}),Yt=({_portal:e=!0,alert:n,cancelButton:i=void 0,children:a=void 0,confirmButton:r=void 0,content:o=void 0,description:l="",modalRef:c,otherActions:d=void 0,onClose:u=void 0,tabItems:g,title:x="",size:f,id:h="modal-container"})=>{const y=()=>t.jsx(he,{"aria-label":c.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs(be,{$size:f,"data-testid":h,flexDirection:"column",id:h,children:[!s._.isEmpty(x)&&t.jsx(Bt,{description:l,modalRef:c,onClose:u,otherActions:d,tabItems:g,title:x}),(s._.isObject(o)||a)&&t.jsxs(sa,{children:[a,s._.isObject(o)&&s._.isString(o.imageSrc)&&t.jsx(pa,{$framed:o.imageFramed,children:t.jsx(V,{alt:"modal-img",publicId:o.imageSrc})}),s._.isObject(o)&&s._.isString(o.imageText)&&t.jsx(k,{size:"sm",children:o.imageText})]}),t.jsx(Lt,{alert:n,cancelButton:i,confirmButton:r,modalRef:c})]})});return e&&c.isOpen?G.createPortal(y(),document.getElementById("portals")??document.body):c.isOpen?y():null},Ia=()=>{const[e,n]=p.useState(!1),[i,a]=p.useState(),r=p.useRef(null),o=Ye("confirm-dialog-modal"),l=p.useCallback(async g=>(a(g),n(!0),new Promise(x=>{r.current=x})),[]),c=p.useCallback(()=>{var g;n(!1),a(void 0),(g=r.current)==null||g.call(r,!0)},[]),d=p.useCallback(()=>{var g;n(!1),a(void 0),(g=r.current)==null||g.call(r,!1)},[]);return p.useEffect(()=>{o.setIsOpen(e)},[e,o]),{ConfirmDialog:({id:g="confirm-dialog-modal",children:x})=>t.jsx(Yt,{id:g,modalRef:{...o,close:d},size:"sm",title:i==null?void 0:i.title,children:t.jsxs(b,{display:"flex",flexDirection:"column",children:[x,i==null?void 0:i.message,t.jsx(At,{id:i==null?void 0:i.id,onCancel:d,onConfirm:c})]})}),confirm:l}},Ta=s.dt.button`
|
|
1900
1914
|
display: flex;
|
|
1901
1915
|
position: relative;
|
|
1902
1916
|
height: 32px;
|
|
@@ -1919,7 +1933,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
1919
1933
|
display: none;
|
|
1920
1934
|
}
|
|
1921
1935
|
}
|
|
1922
|
-
`,
|
|
1936
|
+
`,Na=s.dt.div`
|
|
1923
1937
|
${({theme:e})=>`
|
|
1924
1938
|
display: flex;
|
|
1925
1939
|
flex-direction: column;
|
|
@@ -1960,7 +1974,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
1960
1974
|
}
|
|
1961
1975
|
}
|
|
1962
1976
|
`}
|
|
1963
|
-
`,We=({containerRef:e,id:n})=>{const i=s.nt(),
|
|
1977
|
+
`,We=({containerRef:e,id:n})=>{const i=s.nt(),a=n==="desktop"?380:342,r=p.useCallback(l=>()=>{if(e!=null&&e.current){const{current:c}=e;c.scrollBy({left:l==="right"?a:-a,behavior:"smooth"})}},[e,a]),o=p.useCallback(l=>t.jsxs(Ta,{onClick:r(l),children:[t.jsx(C,{clickable:!0,icon:`circle-arrow-${l}`,iconClass:"hovered",iconColor:i.palette.gray[800],iconSize:"md",iconType:"fa-solid"}),t.jsx(C,{clickable:!0,icon:`circle-arrow-${l}`,iconClass:"uncover",iconColor:i.palette.gray[800],iconSize:"md",iconType:"fa-light"})]}),[r,i]);return t.jsxs(b,{alignItems:"center",display:"flex",gap:1,id:n,width:"max-content",children:[o("left"),o("right")]})},Be=({tag:e,tagPosition:n})=>{const i=s.nt();return e?t.jsx(b,{alignItems:"center",bgColor:i.palette.white,borderRadius:"8px",display:"flex",justify:"center",margin:n==="top"?[.75,.75,.75,.75]:void 0,padding:[.25,.5,.25,.5],position:n==="top"?"absolute":"relative",top:"0",width:"max-content",children:t.jsx(k,{color:i.palette.gray[900],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:e})}):null},Kt=({eventDate:e})=>{const n=s.nt(),i=s.lodashExports.isEmpty(e)?null:e==null?void 0:e.split("-");if(i){const[a,r]=i;return t.jsxs(b,{alignItems:"center",bgColor:n.palette.white,borderRadius:"8px",display:"flex",flexDirection:"column",margin:[.75,.75,.75,.75],padding:[.75,1.5,.75,1.5],position:"absolute",right:"0",shadow:"md",top:"0",children:[t.jsx(M,{fontWeight:"semibold",lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:a}),t.jsx(k,{color:n.palette.gray[800],fontWeight:"semibold",lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:r.toUpperCase()})]})}return null},Ea=s.dt.div`
|
|
1964
1978
|
${({theme:e})=>`
|
|
1965
1979
|
align-items: flex-start;
|
|
1966
1980
|
display: flex;
|
|
@@ -2005,7 +2019,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2005
2019
|
}
|
|
2006
2020
|
}
|
|
2007
2021
|
`}
|
|
2008
|
-
`,qt=({author:e,buttonText:n,description:i,eventDate:
|
|
2022
|
+
`,qt=({author:e,buttonText:n,description:i,eventDate:a,href:r,imageId:o,mode:l="light",publishDate:c,readingTime:d,tag:u,tagPosition:g="top",title:x})=>{const f=s.nt(),h=c==null?void 0:c.split("-"),y=l==="dark",$=t.jsxs(Ea,{"data-testid":`content-card-${x}`,children:[o||a||u&&g==="top"?t.jsxs(b,{id:"card-image",position:"relative",children:[o&&t.jsx(V,{publicId:o}),g==="top"&&t.jsx(Be,{tag:u,tagPosition:g}),t.jsx(Kt,{eventDate:a})]}):void 0,t.jsxs(b,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.5,id:"card-content",children:[g==="bottom"&&t.jsx(Be,{tag:u,tagPosition:g}),e||h||d?t.jsxs(b,{display:"flex",justify:"space-between",width:"100%",children:[e&&h&&t.jsx(k,{color:f.palette.gray[y?300:400],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:e+` • ${h[0]} ${h[1]}, ${h[2]}`}),d&&t.jsxs(b,{alignItems:"center",display:"flex",gap:.25,justify:"center",minWidth:"60px",children:[t.jsx(C,{icon:"eye",iconColor:f.palette.gray[y?300:400],iconSize:"xs",iconType:"fa-light"}),t.jsx(k,{color:f.palette.gray[y?300:400],size:"sm",sizeSm:"xs",textAlign:"right",children:d})]})]}):void 0,t.jsx(M,{className:`title-${l}`,color:y?f.palette.white:f.palette.gray[800],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:x}),i&&t.jsx(k,{color:f.palette.gray[y?100:600],size:"md",sizeSm:"sm",children:i}),n&&r&&t.jsx(D,{href:r,variant:"link",children:n})]})]});return r?t.jsx("a",{className:"flex w-fit",href:r,rel:"noopener noreferrer",target:"_self",children:$}):$},Ra=({description:e,items:n,title:i,titleHighlighted:a})=>{const r=p.useRef(null);return t.jsxs(Na,{"data-testid":"content-card-carousel",children:[t.jsxs(b,{alignItems:"flex-start",display:"flex",justify:"space-between",children:[t.jsxs(b,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.625,maxWidth:"800px",children:[t.jsxs(M,{display:"inline",fontWeight:"semibold",lineSpacing:2.25,lineSpacingSm:1.75,size:"lg",sizeSm:"md",children:[i+" "," ",t.jsx("span",{className:"inline",children:a})]}),t.jsx(k,{lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:e})]}),t.jsx(We,{containerRef:r,id:"desktop"})]}),t.jsx(b,{alignSelf:"stretch",display:"flex",id:"carousel",pb:1,pr:2.25,ref:r,scroll:"x",children:t.jsx(b,{alignItems:"flex-start",display:"flex",gap:1.5,width:"max-content",children:n.map((o,l)=>t.jsx(qt,{...o},`${l}-${o.title}`))})}),t.jsx(We,{containerRef:r,id:"mobile"})]})},Ae=({buttonProps:e,variant:n})=>t.jsx(D,{onClick:e.onClick,variant:n,children:e.text}),Da=s.dt.div`
|
|
2009
2023
|
display: flex;
|
|
2010
2024
|
flex-direction: column;
|
|
2011
2025
|
align-items: center;
|
|
@@ -2013,7 +2027,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2013
2027
|
max-width: 900px;
|
|
2014
2028
|
white-space: pre-line;
|
|
2015
2029
|
margin: 0 auto;
|
|
2016
|
-
`,
|
|
2030
|
+
`,Fa=s.dt.div`
|
|
2017
2031
|
display: flex;
|
|
2018
2032
|
flex-direction: row;
|
|
2019
2033
|
justify-content: center;
|
|
@@ -2026,7 +2040,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2026
2040
|
> img {
|
|
2027
2041
|
width: 100%;
|
|
2028
2042
|
}
|
|
2029
|
-
`,
|
|
2043
|
+
`,Pa=s.dt.div`
|
|
2030
2044
|
display: flex;
|
|
2031
2045
|
flex-direction: row;
|
|
2032
2046
|
margin: 0;
|
|
@@ -2039,7 +2053,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2039
2053
|
> *:last-child {
|
|
2040
2054
|
margin-right: 0;
|
|
2041
2055
|
}
|
|
2042
|
-
`,ot={md:{description:"md",title:"lg"},sm:{description:"sm",title:"xs"}},
|
|
2056
|
+
`,ot={md:{description:"md",title:"lg"},sm:{description:"sm",title:"xs"}},La=({cancelButton:e=void 0,confirmButton:n=void 0,description:i,imageSrc:a="integrates/empty/addRoot",padding:r=1.25,title:o,size:l="md"})=>{const c=(n??e)!==void 0;return t.jsxs(Da,{$padding:r,children:[t.jsx(Fa,{children:t.jsx(V,{alt:"empty-icon",publicId:a})}),t.jsx(M,{fontWeight:"bold",lineSpacing:1.75,mb:.25,size:ot[l].title,textAlign:"center",children:o}),t.jsx(k,{mb:c?2:void 0,size:ot[l].description,textAlign:"center",children:i}),c?t.jsxs(Pa,{children:[e&&t.jsx(Ae,{buttonProps:e,variant:"tertiary"}),n&&t.jsx(Ae,{buttonProps:n,variant:"primary"})]}):void 0]})},Ma=s.dt.form`
|
|
2043
2057
|
${({theme:e})=>`
|
|
2044
2058
|
align-items: flex-start;
|
|
2045
2059
|
align-self: stretch;
|
|
@@ -2049,14 +2063,14 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2049
2063
|
overflow: hidden auto;
|
|
2050
2064
|
width: 100%;
|
|
2051
2065
|
`}
|
|
2052
|
-
`,
|
|
2066
|
+
`,Wa=({alert:e,cancelLabel:n,children:i,id:a="modal-confirm",mode:r,onCancel:o,onSubmit:l,showButtons:c=!0,submitLabel:d,submitDisabled:u=!1,yupSchema:g,...x})=>{const f=s.nt(),h=s.useForm({...x,mode:r??"all",resolver:g?s.o(g):void 0}),{control:y,getValues:$,setValue:m,register:w,watch:j,formState:{errors:I,isValid:S,dirtyFields:z}}=h,R=L=>p.Children.map(L,P=>{var W;if(P&&p.isValidElement(P)){const E=P.props.children,N=P.props.name?p.createElement(P.type,{...P.props,control:y,error:(W=I[P.props.name])==null?void 0:W.message,isValid:S,isTouched:z[P.props.name],register:w,setValue:m,value:$(P.props.name),watch:j,key:P.props.name}):P;return E?p.createElement(N.type,{...N.props,children:R(E)}):N}return P});return t.jsx(s.FormProvider,{...h,children:t.jsx(Ma,{onSubmit:h.handleSubmit(l),children:t.jsxs(b,{scroll:"y",width:"100%",children:[t.jsx(b,{borderRadius:`0 0 ${f.spacing[.25]} ${f.spacing[.25]}`,display:"flex",flexDirection:"column",gap:.5,height:e?"calc(100% - 139px)":"calc(100% - 83px)",px:1.5,py:1.5,scroll:"y",children:R(i)}),c&&t.jsxs(b,{borderRadius:`0 0 ${f.spacing[.25]} ${f.spacing[.25]}`,borderTop:`1px solid ${f.palette.gray[200]}`,display:"flex",flexDirection:"column",gap:.625,position:"sticky",px:1.25,py:1.25,children:[e,t.jsxs(b,{display:"flex",gap:.75,maxWidth:"392px",children:[o?t.jsx(D,{id:`${a}-cancel`,justify:"center",onClick:o,type:"reset",variant:"tertiary",width:"100%",children:n??"Cancel"}):void 0,t.jsx(D,{disabled:u,id:a,justify:"center",type:"submit",width:"100%",children:d??"Confirm"})]})]})]})})})},Ba=s.dt(ee)`
|
|
2053
2067
|
display: grid;
|
|
2054
2068
|
gap: ${({$gap:e=1.25})=>`${e}rem`};
|
|
2055
2069
|
grid-template-columns: ${({$sm:e})=>`repeat(${e}, 1fr)`};
|
|
2056
2070
|
|
|
2057
|
-
${({theme:e,$xl:n,$lg:i,$md:
|
|
2071
|
+
${({theme:e,$xl:n,$lg:i,$md:a})=>`
|
|
2058
2072
|
@media (width >= ${e.breakpoints.sm}) {
|
|
2059
|
-
grid-template-columns: repeat(${
|
|
2073
|
+
grid-template-columns: repeat(${a}, 1fr);
|
|
2060
2074
|
}
|
|
2061
2075
|
|
|
2062
2076
|
@media (width >= ${e.breakpoints.md}) {
|
|
@@ -2067,7 +2081,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2067
2081
|
grid-template-columns: repeat(${n}, 1fr);
|
|
2068
2082
|
}
|
|
2069
2083
|
`}
|
|
2070
|
-
`,
|
|
2084
|
+
`,Aa=p.forwardRef(function({children:n,md:i,sm:a,lg:r,xl:o,gap:l,...c},d){return t.jsx(Ba,{$gap:l,$lg:r,$md:i,$sm:a,$xl:o,ref:d,...c,children:n})}),Oa=s.dt.div`
|
|
2071
2085
|
${({theme:e,$itemsLength:n})=>`
|
|
2072
2086
|
display: flex;
|
|
2073
2087
|
background-color: ${e.palette.white};
|
|
@@ -2103,7 +2117,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2103
2117
|
background-color: ${e.palette.gray[100]};
|
|
2104
2118
|
}
|
|
2105
2119
|
`}
|
|
2106
|
-
`,Xt=({isSelected:e=!1,label:n,onSelect:i})=>{const
|
|
2120
|
+
`,Xt=({isSelected:e=!1,label:n,onSelect:i})=>{const a=s.nt(),r=p.useCallback(()=>{i&&i(n)},[i,n]);return t.jsxs(qe,{$isSelected:e,onClick:r,children:[e?t.jsx(C,{icon:"check",iconColor:a.palette.gray[800],iconSize:"md"}):null,t.jsx(k,{color:a.palette.gray[800],fontWeight:"bold",size:"sm",children:n})]})},Ha=({isOpen:e=!0,items:n,handleNewOrganization:i,onSelect:a,onClose:r,selectedItem:o,title:l,variant:c})=>{const d=s.nt(),[u,g]=p.useState(n),[x,f]=p.useState(""),h=p.useCallback(m=>{g(w=>w.filter(j=>String(j.name).toLowerCase().includes(m.toLocaleLowerCase())))},[g]),y=p.useCallback(m=>{m.currentTarget&&(f(m.currentTarget.value),h(m.currentTarget.value))},[f,h]);p.useEffect(()=>{g(n),h(x)},[n,h,x]);const $=()=>t.jsx(b,{"aria-modal":"true",className:"comp-modal fixed inset-0 overflow-auto",zIndex:99999,children:t.jsx(b,{alignItems:"center",bgColor:"rgb(52 64 84 / 70%)",display:"flex",height:"100vh",justify:"center",left:"0",top:"0",width:"100%",children:t.jsxs(Oa,{$itemsLength:u.length,children:[t.jsxs(b,{alignItems:"center",display:"flex",justify:"space-between",children:[t.jsx(k,{color:d.palette.gray[800],fontWeight:"bold",size:"lg",children:l}),t.jsx(B,{icon:"xmark",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:r,variant:"ghost"})]}),t.jsx(b,{mt:1,children:t.jsx(re,{onInput:y,placeholder:"Search"})}),t.jsx(Q,{mb:1,mt:1}),t.jsxs(b,{display:"inline-flex",gap:1,maxHeight:"332px",scroll:"y",wrap:"wrap",children:[c==="organization-selector"?t.jsx(qe,{onClick:i,children:t.jsxs(b,{alignItems:"center",display:"flex",children:[t.jsx(C,{icon:"square-plus",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",mr:.5}),t.jsx(k,{color:d.palette.gray[400],size:"sm",children:"New organization"})]})}):void 0,u.map(m=>t.jsx(Xt,{isSelected:o.toLowerCase()===m.name,label:m.name.charAt(0).toUpperCase()+m.name.slice(1),onSelect:a},m.name))]})]})})});return e?G.createPortal($(),document.body):t.jsx("div",{})},_a=({description:e,height:n="auto",leftIconName:i,children:a,rightIconName:r,title:o,tooltipId:l,tooltipTip:c,tooltipPlace:d="bottom",variant:u="centered",width:g="318px"})=>{const x=s.nt(),f=u==="centered",h=t.jsx(Y,{icon:r??i,iconColor:x.palette.gray[800],id:l,place:d,tip:c});return t.jsxs(b,{alignItems:f?"center":"flex-start",bgColor:x.palette.gray[50],border:`1px solid ${x.palette.gray[200]}`,borderRadius:"4px",display:"inline-flex",flexDirection:f?"column":"column-reverse",gap:.5,height:n,justify:"center",padding:[1.25,1.25,1.25,1.25],width:g,children:[t.jsxs(b,{alignItems:"center",display:"flex",gap:.5,children:[f||s.lodashExports.isUndefined(i)?void 0:h,t.jsx(k,{color:f?x.palette.gray[800]:x.palette.gray[400],size:"md",textAlign:f?"center":"start",children:e}),f||s.lodashExports.isUndefined(r)?void 0:h]}),t.jsxs(b,{alignItems:"center",display:"flex",gap:.5,my:.5,children:[f&&!s.lodashExports.isUndefined(i)?h:void 0,t.jsxs("div",{style:{display:"flex",gap:"12px"},children:[s.lodashExports.isUndefined(o)?void 0:t.jsx(M,{fontWeight:"bold",size:"md",children:o}),a]}),f&&!s.lodashExports.isUndefined(r)?h:void 0]})]})},Va=({actions:e,children:n,header:i,title:a,tabs:r,footer:o})=>{const l=s.nt();return t.jsxs(b,{alignItems:"flex-start",bgColor:l.palette.white,borderLeft:`1px solid ${l.palette.gray[300]}`,display:"flex",flexDirection:"column",maxHeight:"750px",width:"480px",children:[t.jsxs(b,{alignItems:"flex-start",alignSelf:"stretch",borderBottom:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.25,justify:"space-between",px:1.25,py:1,children:[t.jsxs(b,{display:"flex",flexDirection:"column",gap:.25,children:[t.jsx(k,{color:l.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:a}),i]}),e&&t.jsx(b,{display:"flex",gap:.25,children:e.map(({icon:c,onClick:d},u)=>t.jsx(B,{icon:c??"paper-plane",iconColor:l.palette.gray[400],iconSize:"xxs",iconType:"fa-light",onClick:d,variant:"ghost"},`${u}-${c}`))})]}),t.jsx(b,{display:"flex",pt:.25,width:"100%",children:t.jsx(Ke,{items:r})}),t.jsx(b,{alignSelf:"stretch",display:"flex",flexDirection:"column",px:1.25,py:1,scroll:"y",children:n}),o&&t.jsx(b,{alignSelf:"stretch",borderTop:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.5,justify:"end",px:1.25,py:1,children:o.map(({icon:c,text:d,onClick:u},g)=>t.jsx(D,{icon:c,onClick:u,variant:g===0?"primary":"tertiary",width:"100%",children:d},`${g}-${d}`))})]})},Ga=s.dt.div`
|
|
2107
2121
|
${({theme:e})=>`
|
|
2108
2122
|
align-items: flex-start;
|
|
2109
2123
|
backdrop-filter: blur(3.15px);
|
|
@@ -2155,7 +2169,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2155
2169
|
}
|
|
2156
2170
|
}
|
|
2157
2171
|
`}
|
|
2158
|
-
`,
|
|
2172
|
+
`,Ua=s.dt.div`
|
|
2159
2173
|
align-items: center;
|
|
2160
2174
|
position: absolute;
|
|
2161
2175
|
justify-content: center;
|
|
@@ -2169,7 +2183,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2169
2183
|
height: 260px;
|
|
2170
2184
|
width: 260px;
|
|
2171
2185
|
}
|
|
2172
|
-
`,Zt=({icon:e})=>t.jsx(
|
|
2186
|
+
`,Zt=({icon:e})=>t.jsx(Ua,{children:t.jsx(C,{icon:e,iconColor:v.palette.white,iconSize:"xs",iconTransform:"shrink-2",iconType:"fa-light"})}),Ya=({category:e,description:n,href:i,icon:a,location:r,title:o})=>{const l=s.nt();return t.jsxs(Ga,{children:[t.jsxs(b,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:1.5,height:"100%",id:"uncover",justify:"space-between",children:[t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx(k,{color:l.palette.white,size:"sm",sizeSm:"xs",children:e}),t.jsx(M,{color:l.palette.white,fontWeight:"bold",lineSpacing:2.25,lineSpacingSm:1.75,size:"lg",sizeSm:"md",children:o})]}),t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx(k,{color:l.palette.white,size:"sm",sizeSm:"xs",children:"Location"}),t.jsx(k,{color:l.palette.white,fontWeight:"bold",lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:r})]})]}),t.jsxs(b,{alignItems:"self-start",display:"flex",flexDirection:"column",gap:2,height:"100%",id:"hovered",justify:"space-between",pt:1,children:[t.jsx(M,{color:l.palette.white,fontWeight:"bold",lineSpacing:1.75,lineSpacingSm:1.5,size:"md",sizeSm:"sm",children:o}),t.jsxs("div",{className:"flex flex-col gap-8",children:[t.jsx(k,{color:l.palette.gray[100],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:n}),t.jsx(D,{external:!0,href:i,variant:"link",width:"max-content",children:"Download now"})]})]}),t.jsx(Zt,{icon:a})]})},Ka=s.dt.button`
|
|
2173
2187
|
${({theme:e})=>`
|
|
2174
2188
|
align-items: center;
|
|
2175
2189
|
border-left: 3px solid transparent;
|
|
@@ -2212,7 +2226,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2212
2226
|
}
|
|
2213
2227
|
}
|
|
2214
2228
|
`}
|
|
2215
|
-
`,
|
|
2229
|
+
`,qa=s.dt.div`
|
|
2216
2230
|
${({theme:e})=>`
|
|
2217
2231
|
align-items: center;
|
|
2218
2232
|
background-color: transparent;
|
|
@@ -2242,7 +2256,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2242
2256
|
color: ${e.palette.gray[800]};
|
|
2243
2257
|
}
|
|
2244
2258
|
`}
|
|
2245
|
-
`,
|
|
2259
|
+
`,Xa=s.dt.div`
|
|
2246
2260
|
${({theme:e})=>`
|
|
2247
2261
|
background-color: ${e.palette.white};
|
|
2248
2262
|
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
@@ -2257,7 +2271,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2257
2271
|
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
2258
2272
|
}
|
|
2259
2273
|
`}
|
|
2260
|
-
`,
|
|
2274
|
+
`,Za=s.dt.div`
|
|
2261
2275
|
${({theme:e})=>`
|
|
2262
2276
|
align-items: flex-start;
|
|
2263
2277
|
cursor: pointer;
|
|
@@ -2279,11 +2293,11 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2279
2293
|
}
|
|
2280
2294
|
}
|
|
2281
2295
|
`}
|
|
2282
|
-
`,Jt=({disabled:e=!1,mode:n,onClick:i,text:
|
|
2296
|
+
`,Jt=({disabled:e=!1,mode:n,onClick:i,text:a})=>t.jsx(Ka,{className:`${e&&"disabled"} ${n}`,disabled:e,onClick:i,children:t.jsx(k,{color:"inherit",size:"sm",sizeSm:"xs",children:a})}),Ja=[{text:"EN"},{text:"ES"}],Qa=({items:e,handleClick:n,mode:i="light"})=>{const a=e??Ja,[r,o]=p.useState(a[0].text),l=p.useCallback(c=>()=>{n(c.text),o(c.text)},[n]);return t.jsxs(Za,{children:[t.jsxs(qa,{className:i,children:[t.jsx(C,{icon:"globe",iconSize:"xs",iconType:"fa-light"}),r]}),t.jsx(Xa,{children:a.map((c,d)=>t.jsx(Jt,{disabled:c.disabled,mode:i,onClick:l(c),text:c.text},`${c.text}_${d}`))})]})},er=s.dt.div.attrs({className:"flex flex-wrap justify-center pv3 w-100"})``,tr=s.dt.div.attrs({className:"flex flex-wrap items-center justify-start mb2"})`
|
|
2283
2297
|
gap: 12px;
|
|
2284
|
-
`,
|
|
2298
|
+
`,nr=s.dt.div.attrs({className:"flex flex-wrap items-center justify-end mb2"})`
|
|
2285
2299
|
gap: 8px;
|
|
2286
|
-
`,me=e=>e===void 0?"flex-grow: 1;":`width: calc(${e}00% / var(--cols));`,
|
|
2300
|
+
`,me=e=>e===void 0?"flex-grow: 1;":`width: calc(${e}00% / var(--cols));`,ir=s.dt.div.attrs({className:"comp-col"})`
|
|
2287
2301
|
word-break: break-word;
|
|
2288
2302
|
|
|
2289
2303
|
${({$width:e=null})=>e===null?"":`width: ${e}`};
|
|
@@ -2307,7 +2321,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2307
2321
|
> .comp-card {
|
|
2308
2322
|
height: 100%;
|
|
2309
2323
|
}
|
|
2310
|
-
`,
|
|
2324
|
+
`,ar=({children:e,xl:n,lg:i,md:a,sm:r,paddingTop:o,width:l})=>t.jsx(ir,{$lg:i,$md:a,$paddingTop:o,$sm:r,$width:l,$xl:n,children:e}),rr=s.dt.div.attrs({className:"comp-gap"})`
|
|
2311
2325
|
${({$disp:e="flex",$mh:n=4,$mv:i=4})=>`
|
|
2312
2326
|
align-items: center;
|
|
2313
2327
|
display: ${e};
|
|
@@ -2317,12 +2331,12 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2317
2331
|
margin: ${i}px ${n}px;
|
|
2318
2332
|
}
|
|
2319
2333
|
`}
|
|
2320
|
-
`,
|
|
2321
|
-
${({$align:e="stretch",$cols:n=100,$colsPadding:i=6,$justify:
|
|
2334
|
+
`,or=({children:e,disp:n,mh:i,mv:a})=>t.jsx(rr,{$disp:n,$mh:i,$mv:a,children:e}),sr=s.dt.div.attrs({className:"comp-row flex flex-row flex-wrap"})`
|
|
2335
|
+
${({$align:e="stretch",$cols:n=100,$colsPadding:i=6,$justify:a="start"})=>`
|
|
2322
2336
|
align-items: ${e};
|
|
2323
|
-
justify-content: ${
|
|
2337
|
+
justify-content: ${a};
|
|
2324
2338
|
margin: -6px;
|
|
2325
|
-
text-align: ${
|
|
2339
|
+
text-align: ${a};
|
|
2326
2340
|
|
|
2327
2341
|
--cols: ${n};
|
|
2328
2342
|
|
|
@@ -2335,7 +2349,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2335
2349
|
padding: ${i}px;
|
|
2336
2350
|
}
|
|
2337
2351
|
`}
|
|
2338
|
-
`,
|
|
2352
|
+
`,lr=({align:e,children:n,cols:i,colsPadding:a,justify:r})=>t.jsx(sr,{$align:e,$cols:i,$colsPadding:a,$justify:r,children:n}),cr=s.dt.span`
|
|
2339
2353
|
${({theme:e,$bgColor:n=e.palette.secondary[500],$txtDecoration:i="none"})=>`
|
|
2340
2354
|
background-color: ${n};
|
|
2341
2355
|
border-radius: 5px;
|
|
@@ -2344,14 +2358,14 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2344
2358
|
padding: ${e.spacing[.125]} ${e.spacing[.25]} ${e.spacing[.125]} ${e.spacing[.25]};
|
|
2345
2359
|
text-decoration: ${i}
|
|
2346
2360
|
`}
|
|
2347
|
-
`,
|
|
2361
|
+
`,dr=({bgColor:e,children:n,txtDecoration:i,ml:a=1})=>t.jsx(cr,{$bgColor:e,$txtDecoration:i,className:`ml-${a}`,children:n}),pr={lg:"56",md:"30",sm:"12"},{getVariant:gr}=U(e=>({red:`stroke: ${e.palette.primary[500]};`,white:`stroke: ${e.palette.white};`})),ur=s.mt`
|
|
2348
2362
|
0% {
|
|
2349
2363
|
transform: rotateZ(0deg);
|
|
2350
2364
|
}
|
|
2351
2365
|
100% {
|
|
2352
2366
|
transform: rotateZ(360deg)
|
|
2353
2367
|
}
|
|
2354
|
-
`,
|
|
2368
|
+
`,xr=s.mt`
|
|
2355
2369
|
0%,
|
|
2356
2370
|
25% {
|
|
2357
2371
|
stroke-dashoffset: 280;
|
|
@@ -2368,16 +2382,16 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2368
2382
|
stroke-dashoffset: 280;
|
|
2369
2383
|
transform: rotate(360deg);
|
|
2370
2384
|
}
|
|
2371
|
-
`,
|
|
2385
|
+
`,fr=s.dt.svg`
|
|
2372
2386
|
${({$size:e="md"})=>s.lt`
|
|
2373
|
-
animation: ${
|
|
2387
|
+
animation: ${ur} 2s linear infinite;
|
|
2374
2388
|
animation-timing-function: linear;
|
|
2375
2389
|
display: inline-block;
|
|
2376
|
-
width: ${
|
|
2390
|
+
width: ${pr[e]}px;
|
|
2377
2391
|
`}
|
|
2378
|
-
`,
|
|
2392
|
+
`,hr=s.dt.circle`
|
|
2379
2393
|
${({theme:e,$color:n="red"})=>s.lt`
|
|
2380
|
-
animation: 1.4s ease-in-out infinite both ${
|
|
2394
|
+
animation: 1.4s ease-in-out infinite both ${xr};
|
|
2381
2395
|
display: block;
|
|
2382
2396
|
fill: transparent;
|
|
2383
2397
|
stroke-linecap: round;
|
|
@@ -2386,9 +2400,9 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2386
2400
|
stroke-width: 10px;
|
|
2387
2401
|
transform-origin: 50% 50%;
|
|
2388
2402
|
|
|
2389
|
-
${
|
|
2403
|
+
${gr(e,n)}
|
|
2390
2404
|
`}
|
|
2391
|
-
`,
|
|
2405
|
+
`,br=s.dt.circle`
|
|
2392
2406
|
display: block;
|
|
2393
2407
|
fill: transparent;
|
|
2394
2408
|
stroke: ${({theme:e})=>e.palette.gray[200]};
|
|
@@ -2396,7 +2410,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2396
2410
|
stroke-width: 10px;
|
|
2397
2411
|
transform-origin: 50% 50%;
|
|
2398
2412
|
opacity: ${({$color:e})=>e==="white"?"20%":"unset"};
|
|
2399
|
-
`,$
|
|
2413
|
+
`,$r=({color:e="red",label:n,size:i})=>{const a=s.nt();return t.jsxs(b,{alignItems:"center",display:"flex",children:[t.jsxs(fr,{$size:i,viewBox:"0 0 100 100",children:[t.jsx(br,{$color:e,cx:"50",cy:"50",r:"45"}),t.jsx(hr,{$color:e,cx:"50",cy:"50",r:"45"})]}),n&&t.jsx(k,{color:e==="red"?a.palette.gray[700]:a.palette.white,ml:.5,size:"sm",children:n})]})},yr=s.dt.div`
|
|
2400
2414
|
display: flex;
|
|
2401
2415
|
height: 80px;
|
|
2402
2416
|
max-width: 1440px;
|
|
@@ -2426,7 +2440,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2426
2440
|
);
|
|
2427
2441
|
right: 0;
|
|
2428
2442
|
}
|
|
2429
|
-
`,
|
|
2443
|
+
`,mr=s.dt.div`
|
|
2430
2444
|
display: flex;
|
|
2431
2445
|
gap: 40px;
|
|
2432
2446
|
animation: clients-animation 50s linear infinite;
|
|
@@ -2441,7 +2455,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2441
2455
|
transform: translateX(calc(-180px * 15));
|
|
2442
2456
|
}
|
|
2443
2457
|
}
|
|
2444
|
-
`,
|
|
2458
|
+
`,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"],jr=({fusion:e=!1,logos:n=wr})=>t.jsxs(yr,{children:[e&&t.jsx(st,{className:"left"}),t.jsx(mr,{children:[...n,...n].map((i,a)=>t.jsx(V,{alt:`${i}-${a}`,height:"80px",plugins:[s.placeholder()],publicId:i,width:"140px"},`${i}-${a}`))}),e&&t.jsx(st,{className:"right"})]}),kr={company:{height:"83px",width:"460px"},footer:{height:"57px",width:"315px"},header:{height:"35px",width:"160px"},icon:{height:"40px",width:"40px"},inline:{width:"150px"}},Cr=({publicId:e,variant:n})=>t.jsx(b,{...kr[n],children:t.jsx(V,{alt:"logo",publicId:e})}),vr=({children:e,commitSha:n,commitShortSha:i,parentElement:a,userInfo:r,setVisibility:o})=>{const l=s.nt(),{userName:c,email:d,phone:u,userRole:g}=r;return J(a,()=>{o(!1)}),t.jsxs(Ot,{children:[t.jsx("li",{className:"user-info",children:t.jsxs(b,{display:"inline-flex",gap:.25,width:"100%",children:[t.jsxs(b,{display:"flex",flexDirection:"column",gap:.25,width:"100%",children:[t.jsx(k,{color:l.palette.gray[800],fontWeight:"bold",size:"sm",children:c}),t.jsx(k,{color:l.palette.gray[400],size:"sm",children:d}),s.lodashExports.isUndefined(u)?void 0:t.jsx(k,{color:l.palette.gray[400],size:"sm",children:u})]}),t.jsx(b,{children:t.jsx(X,{tagLabel:g,variant:"role"})})]})}),t.jsx(Q,{}),e,t.jsx(Q,{}),t.jsx("li",{className:"commit-info",children:t.jsx(q,{href:`https://gitlab.com/fluidattacks/universe/-/tree/${n}`,iconPosition:"hidden",children:t.jsx(k,{color:l.palette.gray[400],size:"xs",children:`commit : ${i}`})})})]})},Sr=s.dt.button`
|
|
2445
2459
|
align-items: center;
|
|
2446
2460
|
background-color: transparent;
|
|
2447
2461
|
border: unset;
|
|
@@ -2458,7 +2472,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2458
2472
|
&:hover span {
|
|
2459
2473
|
color: ${v.palette.primary[200]};
|
|
2460
2474
|
}
|
|
2461
|
-
`,
|
|
2475
|
+
`,zr=({message:e,onClickButton:n,buttonText:i,buttonFontWeight:a="regular",icon:r,onClose:o,buttonSide:l="end"})=>{const c=s.nt(),[d,u]=p.useState(!0),g=p.useCallback(()=>{u(!1),o==null||o()},[o]),x=t.jsxs(Sr,{onClick:n,children:[t.jsx(k,{color:c.palette.white,fontWeight:a,size:"sm",textDecoration:"underline",children:i}),t.jsx(C,{icon:r??"arrow-right",iconColor:c.palette.white,iconSize:"xs",iconType:a==="bold"?"fa-regular":"fa-light"})]});return t.jsxs(b,{alignItems:"center",bgGradient:c.palette.gradients["01"],display:d?"flex":"none",id:"message-banner",justify:"space-between",padding:[.75,.75,.75,.75],children:[t.jsxs(b,{display:"flex",gap:.5,justify:"center",width:"100%",children:[l==="start"&&n?x:void 0,t.jsx(b,{children:typeof e=="string"?t.jsx(k,{color:c.palette.white,display:"inline",size:"sm",children:e}):e}),l==="end"&&n?x:void 0]}),t.jsx(C,{clickable:!0,hoverColor:c.palette.primary[200],icon:"close",iconColor:c.palette.white,iconSize:"xs",iconType:"fa-light",onClick:g})]})},Ir=({option:e,register:n})=>{var i;switch(e.type){case"checkboxes":return t.jsx("div",{style:{overflowY:"auto",maxHeight:"280px"},children:(i=e.options)==null?void 0:i.map(a=>t.jsx(Gt,{value:a.value,width:"content",children:t.jsx(fe,{...n("checkbox"),label:a.label,value:a.value})},`li-checkbox-${a.value}`))});case"text":return t.jsx(Ue,{...n("text"),label:e.label});default:return t.jsx("div",{})}},Tr=s.dt.div`
|
|
2462
2476
|
${({theme:e,$variant:n})=>`
|
|
2463
2477
|
background: ${e.palette.white};
|
|
2464
2478
|
border: 1px solid ${e.palette.gray[200]};
|
|
@@ -2477,7 +2491,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2477
2491
|
right: 16px;
|
|
2478
2492
|
}
|
|
2479
2493
|
`}
|
|
2480
|
-
`,
|
|
2494
|
+
`,Nr=s.dt.div`
|
|
2481
2495
|
${({theme:e,$variant:n})=>`
|
|
2482
2496
|
height: ${e.spacing[2.5]};
|
|
2483
2497
|
width: ${e.spacing[2.5]};
|
|
@@ -2508,7 +2522,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2508
2522
|
color: ${e.palette[n][500]};
|
|
2509
2523
|
}
|
|
2510
2524
|
`}
|
|
2511
|
-
`,
|
|
2525
|
+
`,Er=e=>e==="warning"?"triangle-exclamation":e==="info"?"circle-info":e==="success"?"circle-check":"circle-exclamation",Rr=({description:e,onClose:n,title:i,variant:a})=>{const r=s.nt(),o=p.useCallback(()=>{n==null||n()},[n]);return t.jsxs(Tr,{$variant:a,className:`notification notification__${a}`,role:"alertdialog",children:[t.jsxs(Nr,{$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:Er(a),iconClass:"icon",iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(b,{pr:1.5,children:[t.jsx(M,{fontWeight:"bold",size:"xs",children:i}),t.jsx(k,{size:"sm",whiteSpace:"break-spaces",wordWrap:"break-word",children:e})]}),t.jsx(B,{height:"fit-content",icon:"close",iconColor:r.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:o,px:.125,py:.125,variant:"ghost"})]})},Dr=s.dt.div`
|
|
2512
2526
|
width: fit-content;
|
|
2513
2527
|
border: ${({theme:e})=>`1px solid ${e.palette.gray[300]}`};
|
|
2514
2528
|
border-radius: 4px;
|
|
@@ -2521,7 +2535,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2521
2535
|
align-items: center;
|
|
2522
2536
|
justify-content: center;
|
|
2523
2537
|
padding: 0.5em;
|
|
2524
|
-
`,
|
|
2538
|
+
`,Fr=s.dt.input`
|
|
2525
2539
|
width: 4em;
|
|
2526
2540
|
appearance: textfield;
|
|
2527
2541
|
border-style: none;
|
|
@@ -2541,7 +2555,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2541
2555
|
&::-webkit-inner-spin-button {
|
|
2542
2556
|
opacity: 1;
|
|
2543
2557
|
}
|
|
2544
|
-
`,
|
|
2558
|
+
`,Pr=p.forwardRef(function({autoUpdate:n=!1,decimalPlaces:i=0,defaultValue:a=0,max:r,min:o,name:l,onEnter:c,tooltipMessage:d,...u},g){const x=i<0?0:i,[f,h]=p.useState(Number(a).toFixed(x)),y=p.useCallback(w=>{const j=s.lodashExports.toNumber(w.target.value);w.target.value.endsWith(".")?h(w.target.value):j>=Number(o)&&j<=Number(r)&&(h(String(j)),n&&c(s.lodashExports.toNumber(j.toFixed(x)))),w.stopPropagation()},[n,x,r,o,c]),$=p.useCallback(w=>{w.currentTarget.contains(w.relatedTarget)||h(Number(a).toFixed(x)),w.stopPropagation()},[x,a]),m=p.useCallback(w=>{w.stopPropagation(),w.key==="Enter"&&!s.lodashExports.isEmpty(w.currentTarget.value)&&c(s.lodashExports.toNumber(w.currentTarget.value))},[c]);return t.jsx(Dr,{onBlur:$,tabIndex:-1,children:t.jsx(Y,{id:"numberInputTooltip",tip:d,children:t.jsx(Fr,{...u,"aria-label":l,"aria-valuemax":Number(r),"aria-valuemin":Number(o),"aria-valuenow":Number(f),max:r,min:o,name:l,onChange:y,onKeyUp:m,ref:g,step:10**-x,type:"number",value:f})})})}),Lr={Azure:"integrates/autoenrollment/azureIcon",Bitbucket:"integrates/autoenrollment/bitbucketLogo",GitHub:"integrates/autoenrollment/githubLogo",GitLab:"integrates/autoenrollment/gitlabIcon"},Oe=({icon:e,label:n,onClick:i,onlyLabel:a=!1,provider:r="GitLab"})=>{const o=s.nt();return t.jsxs(b,{alignItems:"center",bgColorHover:o.palette.gray[100],borderRadius:"4px",cursor:"pointer",display:"flex",flexDirection:"column",gap:.25,height:"62px",justify:"center",minWidth:"64px",onClick:i,pb:.5,pl:.25,pr:.25,pt:.5,children:[a?!1:t.jsx(b,{height:"24px",width:"24px",children:e===void 0?t.jsx(V,{alt:`${r} Logo`,height:"100%",publicId:Lr[r],width:"100%"}):t.jsx(C,{icon:e,iconColor:"#000",iconSize:"sm",iconType:"fa-light"})}),t.jsx(b,{alignItems:"center",display:"flex",minWidth:"24px",children:t.jsx(k,{color:o.palette.gray[800],display:"inline",size:"xs",textAlign:"center",whiteSpace:a?"break-spaces":"nowrap",wordWrap:"unset",children:n??r})})]})},Mr=({align:e="end",buttonLabel:n="Add Credential",children:i,id:a,manualOption:r,providers:o})=>{const l=s.nt(),[c,d]=p.useState(!1),u=p.useRef(null);J(u.current,()=>{d(!1)},!0);const g=p.useCallback(h=>{r==null||r.onClick(h),d(!1)},[r]),x=p.useCallback(()=>{d(h=>!h)},[d]),f=p.useCallback(h=>y=>{var $;($=o[h])==null||$.onClick(y),d(!1)},[o]);return t.jsxs(b,{alignItems:e,display:"flex",flexDirection:"column",position:"relative",ref:u,width:"max-content",zIndex:10,children:[t.jsx(D,{icon:"plus",onClick:x,variant:"primary",children:n}),t.jsxs(b,{alignItems:"center",bgColor:"#fff",border:`1px solid ${l.palette.gray[200]}`,borderRadius:"4px",display:"flex",gap:.5,height:"78px",id:a,pb:.5,pl:.75,position:"absolute",pr:.75,pt:.5,shadow:"md",top:"40px",visibility:c?"visible":"hidden",zIndex:10,children:[Object.keys(o).map(h=>t.jsx(Oe,{onClick:f(h),provider:h},h)),r===void 0?void 0:t.jsx(Oe,{icon:"square-plus",label:r.label??"Add manually",onClick:g}),i]})]})},Qt=()=>t.jsx(b,{alignItems:"center",bgColor:v.palette.primary[25],borderRadius:"8px",gap:.5,justify:"center",padding:[.125,.25,.125,.25],width:"max-content",children:t.jsx(k,{bgGradient:v.palette.gradients["01"],fontWeight:"semibold",size:"xs",textFill:"transparent",children:"Recommended"})}),Wr=s.dt.div`
|
|
2545
2559
|
${({className:e,theme:n})=>`
|
|
2546
2560
|
align-items: flex-start;
|
|
2547
2561
|
border-radius: ${n.spacing[1]};
|
|
@@ -2606,8 +2620,8 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2606
2620
|
width: 320px;
|
|
2607
2621
|
}
|
|
2608
2622
|
`}
|
|
2609
|
-
`;const
|
|
2610
|
-
through our scanning tool.`,priceAuthor:"$499",priceGroup:"$1,579"}},
|
|
2623
|
+
`;const Br={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
|
|
2624
|
+
through our scanning tool.`,priceAuthor:"$499",priceGroup:"$1,579"}},Ar=({description:e,onClick:n,plan:i})=>{const{title:a,description:r,benefits:o,buttonText:l}=Br[i],c=e??r;return t.jsxs(Wr,{className:i,children:[t.jsxs(b,{display:"flex",flexDirection:"column",gap:.25,pt:i==="essential"?1.75:0,children:[i==="advanced"&&t.jsx(Qt,{}),t.jsx(M,{color:v.palette.gray[900],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:a}),t.jsx(k,{color:v.palette.gray[400],fontWeight:"semibold",pb:i==="essential"?1.25:0,size:"sm",sizeSm:"xs",children:o})]}),t.jsx(k,{lineSpacing:1.5,lineSpacingSm:1.25,pb:i==="advanced"?1.5:0,size:"md",sizeSm:"sm",children:c}),t.jsx(D,{onClick:n,variant:"primary",children:l})]})},en=({description:e="",highlightDescription:n=""})=>{const i=s.nt(),a=typeof n=="string",r=a?"":new RegExp(`(${n.join("|")})`,"u");return n.length>0?t.jsx(k,{display:"inline",lineSpacing:1.5,size:"lg",textAlign:"center",children:a?t.jsxs(p.Fragment,{children:[t.jsx(je,{color:i.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:n}),e]}):e.split(r).map((o,l)=>n.includes(o)?t.jsx(je,{color:i.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:o},`${l+1}-bold`):o)}):t.jsx(k,{lineSpacing:1.5,size:"lg",textAlign:"center",children:e})},Or=({_portal:e=!1,cancelButton:n,darkBackground:i=!1,children:a,confirmButton:r,container:o,description:l,highlightDescription:c="",image:d,maxWidth:u,title:g,titleColor:x})=>{const f=s.nt(),{alt:h,src:y,width:$="77px",height:m="77px"}=d,w=p.useCallback(()=>{n==null||n.onClick()},[n]),j=p.useCallback(()=>{r==null||r.onClick()},[r]),I=t.jsx(b,{alignItems:"center","aria-label":g,"aria-modal":"true",bgColor:i?"rgba(52, 64, 84, 70%)":"",display:"flex",height:"100vh",justify:"center",left:"0",position:e?"fixed":"absolute",top:"0px",width:"100%",zIndex:99999,children:t.jsxs(b,{bgColor:f.palette.white,border:`1px solid ${f.palette.gray[200]}`,borderRadius:"8px",display:"inline-flex",flexDirection:"column",maxWidth:u,pb:2.5,pl:2.5,pr:2.5,pt:2.5,shadow:"lg",width:"100%",zIndex:11,children:[t.jsxs(b,{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",children:[t.jsx(b,{children:t.jsx(V,{alt:h,height:m,publicId:y,width:$})}),t.jsxs(b,{display:"flex",flexDirection:"column",gap:.5,mb:1.5,mt:1.5,children:[t.jsx(M,{color:x,fontWeight:"bold",lineSpacing:2.5,size:"lg",textAlign:"center",children:g}),t.jsx(en,{description:l,highlightDescription:c})]})]}),a&&t.jsx(b,{mb:1,scroll:"y",children:t.jsx(b,{height:"100%",children:a})}),t.jsxs(b,{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(n)?t.jsx(D,{onClick:w,variant:(n==null?void 0:n.variant)??"tertiary",children:n==null?void 0:n.text},n==null?void 0:n.key):void 0]})]})});return e?G.createPortal(I,o??document.body):I},Hr=s.dt.div`
|
|
2611
2625
|
${({theme:e})=>`
|
|
2612
2626
|
height: ${e.spacing[1]};
|
|
2613
2627
|
width: ${e.spacing[1]};
|
|
@@ -2638,7 +2652,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2638
2652
|
font-size: ${e.spacing[.5]};
|
|
2639
2653
|
}
|
|
2640
2654
|
`}
|
|
2641
|
-
`,tn=({margin:e,onClick:n,text:i})=>{const
|
|
2655
|
+
`,tn=({margin:e,onClick:n,text:i})=>{const a=s.nt(),r=t.jsxs(Hr,{children:[t.jsx(C,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),t.jsx(C,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),t.jsx(C,{icon:"crown",iconClass:"icon",iconSize:"xs"})]});return i!==void 0?t.jsx(b,{cursor:"pointer",display:"inline-block",mr:e,onClick:n,children:t.jsxs(b,{alignItems:"center",bgColor: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:i})]})}):t.jsx(b,{display:"inline-block",mr:e,onClick:n,children:r})},_r=({score:e})=>{const n=s.nt(),i=e<=33?"priority-bars-low":"priority-bars-medium",a=e>66||e===0?"priority-bars-high":i;return t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:.25,children:[t.jsx(C,{icon:a,iconClass:e<=66?"fa-kit-duotone":"",iconColor:e>0?n.palette.primary[500]:n.palette.gray[200],iconSize:"xs",iconType:"fa-kit",secondaryColor:n.palette.gray[200]}),t.jsx(k,{color:n.palette.gray[800],size:"sm",textAlign:"right",children:e+"%"})]})},{getVariant:Vr}=U(e=>({compliance:`
|
|
2642
2656
|
display: inline-flex;
|
|
2643
2657
|
|
|
2644
2658
|
&.horizontal {
|
|
@@ -2696,18 +2710,18 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2696
2710
|
.progress-bar {
|
|
2697
2711
|
background-color: ${e.palette.primary[500]};
|
|
2698
2712
|
}
|
|
2699
|
-
`})),
|
|
2700
|
-
${({theme:e,$minWidth:n,$orientation:i,$rounded:
|
|
2713
|
+
`})),Gr=(e,n)=>n<50?e.palette.error[500]:n<80?e.palette.warning[500]:e.palette.success[500],Ur=s.dt.div`
|
|
2714
|
+
${({theme:e,$minWidth:n,$orientation:i,$rounded:a,$variant:r})=>`
|
|
2701
2715
|
background-color: ${e.palette.gray[100]};
|
|
2702
|
-
border-radius: ${
|
|
2716
|
+
border-radius: ${a?"100px":"unset"};
|
|
2703
2717
|
${i==="horizontal"?"min-width":"min-height"}: ${n}px;
|
|
2704
2718
|
${i==="horizontal"?"":"height: 100%;"}
|
|
2705
2719
|
|
|
2706
|
-
${
|
|
2720
|
+
${Vr(e,r)}
|
|
2707
2721
|
|
|
2708
2722
|
`}
|
|
2709
|
-
`,
|
|
2710
|
-
${({theme:e,$percentage:n,$rounded:i,$variant:
|
|
2723
|
+
`,Yr=s.dt.div`
|
|
2724
|
+
${({theme:e,$percentage:n,$rounded:i,$variant:a})=>`
|
|
2711
2725
|
display: inline-flex;
|
|
2712
2726
|
width: ${n}%;
|
|
2713
2727
|
max-width: 100%;
|
|
@@ -2716,9 +2730,9 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2716
2730
|
border-radius: ${i?"100px":"unset"};
|
|
2717
2731
|
border-end-end-radius: ${i&&n<100?"0":"inherit"};
|
|
2718
2732
|
border-start-end-radius: ${i&&n<100?"0":"inherit"};
|
|
2719
|
-
background-color: ${
|
|
2733
|
+
background-color: ${a==="compliance"?Gr(e,n):"inherit"};
|
|
2720
2734
|
`}
|
|
2721
|
-
`,
|
|
2735
|
+
`,Kr=({minWidth:e=100,percentage:n,percentageLocation:i="right",showPercentage:a=!1,orientation:r="horizontal",rounded:o=!0,variant:l="default"})=>{const c=a&&i==="left",d=a?t.jsx(b,{alignItems:"center",display:"flex",justify:c?"flex-end":"flex-start",width:"40px",children:t.jsx(k,{ml:.5,mr:c?.5:0,size:"sm",children:`${n}%`})}):null,u=t.jsx(Ur,{$minWidth:e,$orientation:r,$rounded:o,$variant:l,className:r,children:t.jsx(Yr,{$percentage:n,$rounded:o,$variant:l,className:"progress-bar"})});return t.jsxs(b,{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:[u,d]})},qr=s.dt(ee)`
|
|
2722
2736
|
animation: ${({$animationTime:e})=>`progress-bar ${e}s ease-in-out`};
|
|
2723
2737
|
animation-fill-mode: both;
|
|
2724
2738
|
|
|
@@ -2731,12 +2745,12 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2731
2745
|
width: 100%;
|
|
2732
2746
|
}
|
|
2733
2747
|
}
|
|
2734
|
-
`,
|
|
2748
|
+
`,Xr=e=>e*1e3/100,Zr=({progressTime:e=10,onComplete:n})=>{const i=s.nt(),a=100,[r,o]=p.useState(0);return p.useEffect(()=>{r===a&&(n==null||n())},[r,n]),p.useEffect(()=>{const l=setInterval(()=>{o(c=>c===a?0:c+1)},Xr(e));return()=>{clearInterval(l)}},[r,e]),t.jsx(b,{bgColor:i.palette.gray[200],height:"4px",children:t.jsx(qr,{$animationTime:e,bgGradient:i.palette.gradients["01"],height:"100%",width:`${r}%`})})},Jr=s.dt.div.attrs({className:"comp-scroll-up"})`
|
|
2735
2749
|
bottom: 15px;
|
|
2736
2750
|
position: fixed;
|
|
2737
2751
|
right: 140px;
|
|
2738
2752
|
z-index: 100;
|
|
2739
|
-
`,
|
|
2753
|
+
`,Qr=({scrollerId:e="dashboard",visibleAt:n=500})=>{const[i,a]=p.useState(!1),[r,o]=p.useState(null);p.useEffect(()=>{o(document.getElementById(e)),r==null||r.addEventListener("scroll",()=>{a(r.scrollTop>n)})},[r,e,n]);const l=p.useCallback(()=>{r==null||r.scrollTo({behavior:"smooth",top:0})},[r]);return i?t.jsx(Jr,{children:t.jsx(B,{height:"40px",icon:"arrow-up",iconSize:"sm",id:"scroll-up",onClick:l,width:"40px"})}):null},eo=s.dt.a`
|
|
2740
2754
|
${({theme:e})=>`
|
|
2741
2755
|
align-items: center;
|
|
2742
2756
|
display: flex;
|
|
@@ -2837,7 +2851,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2837
2851
|
padding: ${e.spacing[1]} ${e.spacing[1.5]};
|
|
2838
2852
|
width: 100%;
|
|
2839
2853
|
`}
|
|
2840
|
-
`,
|
|
2854
|
+
`,ao=s.dt.input`
|
|
2841
2855
|
${({theme:e})=>`
|
|
2842
2856
|
flex: 1 0 0;
|
|
2843
2857
|
border: none;
|
|
@@ -2863,7 +2877,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2863
2877
|
font-size: ${e.typography.text.sm};
|
|
2864
2878
|
}
|
|
2865
2879
|
`}
|
|
2866
|
-
`,
|
|
2880
|
+
`,ro=s.dt.button`
|
|
2867
2881
|
${({theme:e})=>`
|
|
2868
2882
|
align-items: center;
|
|
2869
2883
|
border-radius: ${e.spacing[.5]};
|
|
@@ -2926,7 +2940,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2926
2940
|
height: ${e.spacing[.5]};
|
|
2927
2941
|
}
|
|
2928
2942
|
`}
|
|
2929
|
-
`,we=({hit:e,icon:n="infinity",showIcon:i=!1})=>{const{slug:
|
|
2943
|
+
`,we=({hit:e,icon:n="infinity",showIcon:i=!1})=>{const{slug:a,title:r}=e,o=String(a).startsWith("/pages/")?String(a).replace("/pages/","/"):String(a);return t.jsxs(eo,{href:o,rel:"nofollow noopener noreferrer",children:[i&&t.jsx(to,{children:t.jsx(C,{icon:n,iconClass:"fill-gradient-01",iconSize:"sm",iconType:"fa-light"})}),t.jsx(k,{color:v.palette.gray[800],lineSpacing:1.5,size:"md",sizeSm:"sm",whiteSpace:"wrap",children:String(r)})]})},oo=[{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"}],lt={hit:{slug:"/contact-us/",title:"Contact Support"},icon:"envelope"},so=({items:e,placeholder:n="Search",refine:i,query:a})=>{const[r,o]=p.useState(a),[l,c]=p.useState(!1),d=p.useRef(null),u=p.useRef(null),g=r.length>=2,x=p.useCallback(w=>{o(w),i(w)},[i]),f=p.useCallback(()=>{x("")},[x]),h=p.useCallback(()=>{c(!0)},[]),y=p.useCallback(w=>{x(w.currentTarget.value)},[x]),$=p.useCallback(w=>{w.preventDefault(),w.stopPropagation(),f(),u.current&&u.current.focus()},[f]),m=p.useCallback(w=>{w.preventDefault(),w.stopPropagation(),u.current&&u.current.blur()},[]);return J(d.current,()=>{f(),c(!1)},!0),t.jsxs(no,{ref:d,children:[t.jsxs(io,{action:"",noValidate:!0,onReset:$,onSubmit:m,role:"search",children:[t.jsxs("div",{className:"flex gap-2 w-full",children:[t.jsx("div",{className:"h-10 p-2",children:t.jsx(C,{icon:"magnifying-glass",iconSize:"sm",iconType:"fa-light"})}),t.jsx(ao,{autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",maxLength:512,onChange:y,onFocus:h,placeholder:n,ref:u,spellCheck:!1,type:"search",value:r})]}),g&&t.jsx(ro,{type:"reset",children:t.jsx(C,{icon:"xmark",iconSize:"sm",iconType:"fa-light"})})]}),l&&r.length<2&&t.jsxs(Ee,{children:[t.jsx(k,{color:v.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Suggested"}),t.jsx("div",{className:"flex flex-col items-start self-stretch",children:oo.map(({hit:w,icon:j},I)=>t.jsx(we,{hit:w,icon:j,showIcon:!0},`${j}-${I}`))}),t.jsx(k,{color:v.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Can’t find what you’re looking for?"}),t.jsx(we,{hit:lt.hit,icon:lt.icon,showIcon:!0})]}),g&&e.length>0&&t.jsxs(Ee,{$showHits:g,children:[t.jsx(k,{color:v.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Results"}),t.jsx("div",{className:"flex flex-col items-start self-stretch",children:e.map(w=>t.jsx(we,{hit:w},w.objectID))})]}),g&&e.length===0&&t.jsx(Ee,{$empty:e.length===0,children:t.jsxs("div",{className:"items-center flex flex-col gap-4 py-[90px] w-full",children:[t.jsx(V,{height:96,publicId:"airs/search-bar/empty-state-icon",width:96}),t.jsx(M,{display:"flex",size:"sm",sizeSm:"xs",textAlign:"center",children:"No results found"}),t.jsxs(k,{display:"flex",lineSpacing:1.5,size:"md",sizeSm:"sm",textAlign:"center",children:[`“${r}” did not match.`,t.jsx("br",{}),"Please try again."]}),t.jsx(D,{onClick:f,variant:"secondary",children:"Clear search"})]})})]})},lo={critical:{bgColor:v.palette.primary[700],colorL:v.palette.gray[800],colorR:v.palette.white},disable:{bgColor:v.palette.gray[200],colorL:v.palette.gray[400],colorR:v.palette.gray[400]},high:{bgColor:v.palette.error[500],colorL:v.palette.gray[800],colorR:v.palette.white},low:{bgColor:v.palette.warning[200],colorL:v.palette.gray[800],colorR:v.palette.gray[800]},medium:{bgColor:v.palette.warning[500],colorL:v.palette.gray[800],colorR:v.palette.gray[800]}},co=({textL:e,textR:n,variant:i})=>{const a=s.nt(),{bgColor:r,colorL:o,colorR:l}=lo[i];return t.jsxs(b,{alignItems:"flex-start",display:"inline-flex",children:[e?t.jsx(b,{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(b,{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:n})})]})},po=(e,n)=>{const i={critical:v.palette.primary[700],high:v.palette.error[500],low:v.palette.warning[200],medium:v.palette.warning[500],none:v.palette.gray[200]},a={disabled:v.palette.gray[400],enabled:v.palette.gray[800]},r={critical:v.palette.white,high:v.palette.white,low:v.palette.gray[800],medium:v.palette.gray[800],none:v.palette.gray[400]};return{iconColor:n<1?i.none:i[e],iconText:s.lodashExports.capitalize(e.charAt(0)),iconTextColor:n<1?r.none:r[e],textColor:n<1?a.disabled:a.enabled}},ie=({variant:e,value:n})=>{const{iconColor:i,iconText:a,iconTextColor:r,textColor:o}=po(e,n),l=s.lodashExports.capitalize(e.charAt(0))+e.slice(1);return t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:.5,minWidth:"43px",children:[t.jsx(Y,{id:l,place:"top",tip:l,children:t.jsx(b,{alignItems:"center",bgColor:i,borderRadius:"4px",cursor:"pointer",display:"flex",height:"22px",maxWidth:"22px",minWidth:"22px",children:t.jsx(k,{color:r,size:"sm",textAlign:"center",children:a})})}),t.jsx(k,{color:o,size:"sm",children:n})]})},go=({critical:e,high:n,medium:i,low:a})=>t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:1,children:[t.jsx(ie,{value:e,variant:"critical"}),t.jsx(ie,{value:n,variant:"high"}),t.jsx(ie,{value:i,variant:"medium"}),t.jsx(ie,{value:a,variant:"low"})]}),uo=s.dt.div`
|
|
2930
2944
|
${({theme:e})=>`
|
|
2931
2945
|
border-radius: ${e.spacing[.25]};
|
|
2932
2946
|
cursor: pointer;
|
|
@@ -2944,7 +2958,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2944
2958
|
display: block;
|
|
2945
2959
|
}
|
|
2946
2960
|
`}
|
|
2947
|
-
`,xo=({visibleElement:e,hiddenElement:n})=>t.jsxs(uo,{children:[e,t.jsx(b,{display:"none",position:"absolute",top:"100%",zIndex:10,children:n})]}),nn=({customBadge:e=void 0,description:n,icon:i,onClick:
|
|
2961
|
+
`,xo=({visibleElement:e,hiddenElement:n})=>t.jsxs(uo,{children:[e,t.jsx(b,{display:"none",position:"absolute",top:"100%",zIndex:10,children:n})]}),nn=({customBadge:e=void 0,description:n,icon:i,onClick:a,requiresUpgrade:r=!1,title:o})=>{const l=s.nt();return t.jsxs(b,{bgColor:l.palette.white,bgColorHover:l.palette.gray[100],cursor:"pointer",display:"flex",gap:.5,onClick:a,px:1.25,py:1,width:"100%",children:[t.jsx(b,{alignItems:"center",bgColor:l.palette.gray[300],borderRadius:l.spacing[.25],display:"flex",height:"24px",justify:"center",width:"24px",children:t.jsx(C,{icon:i,iconColor:l.palette.gray[800],iconSize:"xxs",ml:.5,mr:.5})}),t.jsxs(b,{children:[t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:.5,children:[t.jsx(k,{color:l.palette.gray[800],size:"sm",children:o}),r?t.jsx(tn,{text:"Upgrade"}):void 0,e]}),t.jsx(k,{color:l.palette.gray[400],size:"xs",children:n})]})]})},fo=s.dt(s.m.div)`
|
|
2948
2962
|
${({theme:e})=>`
|
|
2949
2963
|
background-color: ${e.palette.white};
|
|
2950
2964
|
box-shadow: ${e.shadows.lg};
|
|
@@ -2967,7 +2981,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
2967
2981
|
height: auto;
|
|
2968
2982
|
}
|
|
2969
2983
|
`}
|
|
2970
|
-
`,ho=({children:e,closeIconId:n="close-menu",isOpen:i,items:
|
|
2984
|
+
`,ho=({children:e,closeIconId:n="close-menu",isOpen:i,items:a,onClose:r,primaryButtonText:o,primaryOnClick:l,secondaryButtonText:c,secondaryOnClick:d,title:u})=>{const g=s.nt(),x=p.useRef(null),f=p.useCallback(h=>()=>{h(),r()},[r]);return J(x.current,()=>{r()},!0),t.jsx(s.LazyMotion,{features:s.domAnimation,children:t.jsx(fo,{animate:i?{display:"block",x:0}:{transitionEnd:{display:"none"},x:"100%"},initial:{display:"none",x:"100%"},ref:x,transition:{bounce:0,duration:.6,type:"spring"},children:t.jsxs(b,{height:"100%",position:"relative",children:[t.jsxs(b,{alignItems:"center",bgColor:g.palette.white,borderBottom:"1px solid",borderColor:g.palette.gray[200],display:"flex",gap:1.25,justify:"space-between",padding:[1.25,1.25,1.25,1.25],position:"sticky",top:"0",zIndex:40,children:[t.jsx(k,{color:g.palette.black,display:"inline",fontWeight:"bold",size:"xl",children:u}),t.jsx(B,{icon:"close",iconColor:g.palette.gray[400],iconSize:"xs",iconTransform:"grow-4",iconType:"fa-light",id:n,onClick:r,px:.25,py:.25,variant:"ghost"})]}),t.jsxs(b,{display:"flex",flexDirection:"column",justify:"space-between",minHeight:"100vh",children:[t.jsxs(b,{py:1.25,children:[(a??[]).map(({customBadge:h,description:y,icon:$,onClick:m,requiresUpgrade:w,title:j})=>t.jsx(nn,{customBadge:h,description:y,icon:$,onClick:f(m),requiresUpgrade:w,title:j},j)),e&&t.jsx(b,{px:1.25,children:e})]}),o===void 0?void 0:t.jsxs(b,{alignItems:"center",bgColor:g.palette.white,borderColor:g.palette.gray[200],borderTop:"1px solid",bottom:"0",display:"flex",gap:1.25,justify:"end",padding:[1.25,1.25,1.25,1.25],position:"sticky",width:"100%",zIndex:40,children:[c===void 0?void 0:t.jsx(D,{color:`${g.palette.primary[500]} !important`,onClick:d,pl:.5,pr:.5,variant:"ghost",children:c}),t.jsx(D,{onClick:l,type:"submit",children:o})]})]})]})})})},bo=(e,n)=>n>=50?`
|
|
2971
2985
|
${e.palette.gray[200]} 50%,
|
|
2972
2986
|
${e.palette.primary[500]} 50.05%,
|
|
2973
2987
|
${e.palette.primary[500]} ${n}%,
|
|
@@ -3043,7 +3057,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
3043
3057
|
padding: ${e.spacing[.625]} ${e.spacing[.75]};
|
|
3044
3058
|
width: 59px;
|
|
3045
3059
|
`}
|
|
3046
|
-
`,
|
|
3060
|
+
`,an=({state:e,trackRef:n,index:i,name:a})=>{const r=p.useRef(null),{thumbProps:o,inputProps:l,isDragging:c}=s.$47b897dc8cdb026b$export$8d15029008292ae({index:i,trackRef:n,inputRef:r},e);return t.jsx("div",{...o,className:`thumb ${c?"dragging":""}`,children:t.jsx(s.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:t.jsx("input",{...l,"aria-label":a,ref:r})})})},wo=(e,n,i)=>Math.round((i-e)/(n-e)*100),jo=e=>{const n=s.nt(),i=p.useRef(null),{label:a,minValue:r=0,maxValue:o=100,name:l,setValue:c,watch:d}=e,u=s.$a916eb452884faea$export$b7a616150fdb9f44(),g=s.$28f99e3e86e6ec45$export$e5fda3247f5d67f9({...e,numberFormatter:u,onChange(y){c==null||c(l,y)},value:d==null?void 0:d(l)}),x=wo(r,o,g.getThumbValue(0)),{groupProps:f,trackProps:h}=s.$bcca50147b47f54d$export$56b2c08e277f365({...e,"aria-label":l,id:l},g,i);return t.jsx(O,{htmlFor:l,label:a,children:t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:1.25,pl:.5,width:"100%",children:[t.jsxs($o,{...f,$min:r??0,$value:x,className:"slider",children:[t.jsx("div",{...h,className:`track ${g.isDisabled?"disabled":""}`,ref:i,children:t.jsx(an,{index:0,name:l,state:g,trackRef:i})}),t.jsxs(yo,{children:[t.jsx("p",{children:`${u.format(r)} (Low)`}),r<0&&t.jsx("p",{children:"0"}),t.jsx("p",{children:`${u.format(o)} (High)`})]})]}),t.jsx(mo,{children:t.jsx(k,{color:n.palette.gray[800],size:"sm",textAlign:"right",children:g.getThumbValueLabel(0)})})]})})},{getVariant:ko}=U(e=>({completed:`
|
|
3047
3061
|
background-color: ${e.palette.primary[500]};
|
|
3048
3062
|
color: ${e.palette.white};
|
|
3049
3063
|
|
|
@@ -3121,7 +3135,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
3121
3135
|
|
|
3122
3136
|
${ko(e,n)}
|
|
3123
3137
|
`}
|
|
3124
|
-
`,Io=({button:{disabled:e=!1,text:n,type:i="button",onClick:
|
|
3138
|
+
`,Io=({button:{disabled:e=!1,text:n,type:i="button",onClick:a},steps:r})=>{const[o,l]=p.useState(1),c=p.useCallback((d,u)=>()=>{l(g=>g+d),u==null||u()},[]);return t.jsx(Co,{children:r.map((d,u)=>{const{content:g,title:x,nextAction:f,previousAction:h}=d,y=u+1,$=y===o?"current":"disabled",m=y<o?"completed":$;return t.jsxs(vo,{children:[t.jsx(b,{maxWidth:"40px",position:"relative",children:t.jsx(zo,{$variant:m,children:m==="completed"?t.jsx(C,{icon:"check",iconSize:"xs",iconType:"fa-solid"}):y})}),t.jsxs(b,{ml:1.5,width:"100%",children:[t.jsx(M,{fontWeight:"bold",lineSpacing:1.25,mb:1.5,size:"xs",children:x}),m==="current"&&t.jsxs(b,{children:[g,t.jsxs(So,{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:i,variant:"primary",children:n})]})]})]})]},d.title)})})},To=s.dt.button`
|
|
3125
3139
|
${({theme:e})=>`
|
|
3126
3140
|
align-items: center;
|
|
3127
3141
|
background-color: ${e.palette.white};
|
|
@@ -3163,7 +3177,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
3163
3177
|
background-color: ${e.palette.gray[100]};
|
|
3164
3178
|
}
|
|
3165
3179
|
`}
|
|
3166
|
-
`,No={add:{icon:"plus"},approve:{icon:"check"},disabled:{icon:"ban"},reject:{icon:"xmark"},submit:{icon:"arrow-right"},success:{icon:"check"}},Eo=({disabled:e=!1,icon:n,id:i,label:
|
|
3180
|
+
`,No={add:{icon:"plus"},approve:{icon:"check"},disabled:{icon:"ban"},reject:{icon:"xmark"},submit:{icon:"arrow-right"},success:{icon:"check"}},Eo=({disabled:e=!1,icon:n,id:i,label:a,name:r,onClick:o,type:l="button",variant:c})=>{const d=s.nt(),u=t.jsxs(To,{"aria-label":r??void 0,className:c,disabled:e,id:i,onClick:o,type:l,children:[t.jsx(C,{clickable:!1,icon:n??No[c].icon,iconSize:r===void 0?"xxs":"xs",iconType:"fa-light"}),r??void 0]});return t.jsxs(b,{alignItems:"center",display:"flex",children:[u,a&&t.jsx(k,{color:d.palette.gray[800],ml:.5,size:"sm",children:a})]})},Ro=({items:e})=>t.jsx(ua,{children:e.map(({isActive:n,label:i,onClick:a},r)=>t.jsx(ga,{className:n?"active":"",onClick:a,type:"button",children:t.jsx(M,{color:"inherit",fontWeight:"semibold",size:"sm",sizeSm:"xs",children:i})},`${i}-${r}`))}),Do=s.dt.div`
|
|
3167
3181
|
${({theme:e})=>`
|
|
3168
3182
|
align-items: center;
|
|
3169
3183
|
background-color: ${e.palette.white};
|
|
@@ -3256,7 +3270,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
3256
3270
|
}
|
|
3257
3271
|
}
|
|
3258
3272
|
`}
|
|
3259
|
-
`,
|
|
3273
|
+
`,rn=({date:e,description:n,title:i})=>{const a=s.nt();return t.jsxs(Do,{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:i}),t.jsx("div",{children:n.map((r,o)=>{const l=`${r}#${o}`;return t.jsx(k,{size:"sm",textAlign:"center",wordBreak:"break-word",children:r},l)})})]})},Po=({items:e})=>t.jsx(Fo,{children:e.map((n,i)=>t.jsx(rn,{date:n.date,description:n.description,title:n.title},`${n.title}-${i}`))}),Lo=s.dt.div`
|
|
3260
3274
|
${({theme:e})=>`
|
|
3261
3275
|
align-items: center;
|
|
3262
3276
|
display: flex;
|
|
@@ -3315,7 +3329,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
3315
3329
|
color: ${e.palette.white};
|
|
3316
3330
|
}
|
|
3317
3331
|
`}
|
|
3318
|
-
`,Wo=({defaultSelection:e,options:n,handleClick:i})=>{const[r
|
|
3332
|
+
`,Wo=({defaultSelection:e,options:n,handleClick:i})=>{const[a,r]=p.useState(e??n[0]),o=p.useCallback(l=>()=>{r(l),i(l)},[i]);return t.jsx(Lo,{children:n.map((l,c)=>t.jsx(Mo,{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}`))})},Bo={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:""},Ao=({run:e,steps:n,onFinish:i})=>{const[a,r]=p.useState(e),[o,l]=p.useState(0),c=p.useCallback(d=>{const{action:u,index:g,status:x,type:f}=d;[s.EVENTS.STEP_AFTER,s.EVENTS.TARGET_NOT_FOUND].includes(f)?l(g+(u===s.ACTIONS.PREV?-1:1)):([s.STATUS.FINISHED,s.STATUS.SKIPPED].includes(x)||u==="close")&&(r(!1),s.lodashExports.isUndefined(i)||i())},[i]);return t.jsx(s.components_default,{callback:c,continuous:!0,disableOverlayClose:!0,disableScrollParentFix:!0,run:a,spotlightClicks:!0,stepIndex:o,steps:n,styles:{buttonNext:{display:o===n.length-1?"none":"block"},options:{zIndex:9999}}})},Oo=s.dt.form`
|
|
3319
3333
|
${({theme:e})=>`
|
|
3320
3334
|
align-items: center;
|
|
3321
3335
|
background: ${e.palette.gray[50]};
|
|
@@ -3378,4 +3392,4 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(g,[g]),f=p.useCallback(a
|
|
|
3378
3392
|
flex-direction: column;
|
|
3379
3393
|
}
|
|
3380
3394
|
`}
|
|
3381
|
-
`,Vo=({children:e,name:n,onSubmit:i,submitDisabled:
|
|
3395
|
+
`,Vo=({children:e,name:n,onSubmit:i,submitDisabled:a,submitLabel:r="Submit"})=>t.jsx(Oo,{"aria-label":n,name:n,onSubmit:i,children:t.jsxs(Ho,{children:[e,t.jsx(D,{disabled:a,type:"submit",children:r})]})});exports.Accordion=Mn;exports.AccordionContent=gt;exports.ActionButton=Le;exports.Alert=Un;exports.Avatar=ei;exports.BaseButtonComponent=He;exports.BaseComponent=ee;exports.BaseSpanComponent=dt;exports.BaseTextComponent=_e;exports.Button=D;exports.Button$1=ke;exports.ButtonToolbarCenter=er;exports.ButtonToolbarRow=nr;exports.ButtonToolbarStartRow=tr;exports.Calendar=yt;exports.Calendar$1=vt;exports.Calendar$2=St;exports.CalendarCell=$t;exports.CalendarGrid=ze;exports.CardHeader=Se;exports.CardWithImage=ii;exports.CardWithInput=Oi;exports.CardWithOptions=It;exports.CardWithSelector=Ki;exports.CardWithSwitch=Zi;exports.Carousel=ia;exports.CategoryTag=Be;exports.Checkbox=fe;exports.CodeSnippet=ra;exports.Col=ar;exports.ColumnsModal=Ca;exports.ComboBox=li;exports.ComboBoxField=De;exports.Container=b;exports.ContentCard=qt;exports.ContentCardCarousel=Ra;exports.CustomThemeProvider=Tn;exports.DateField=wt;exports.DateSelector=ae;exports.Description=en;exports.Dialog=Te;exports.Divider=Q;exports.Editable=Si;exports.EmptyButton=Ae;exports.EmptyState=La;exports.EventDate=Kt;exports.FilePreview=ft;exports.FilterControl=Ir;exports.FiltersList=ve;exports.FixedTabs=Ro;exports.Form=Wa;exports.FormItem=_o;exports.Gap=or;exports.GridContainer=Aa;exports.GroupSelector=Ha;exports.Header=Ie;exports.Header$1=Bt;exports.Heading=M;exports.Icon=C;exports.IconButton=B;exports.IndicatorCard=_a;exports.InfoSidebar=Va;exports.Input=Ue;exports.InputDate=Ct;exports.InputDateRange=ji;exports.InputDateTime=vi;exports.InputFile=Ni;exports.InputNumber=zt;exports.InputNumberRange=Di;exports.InputTags=Ri;exports.InteractiveCard=Ya;exports.InteractiveIcon=Zt;exports.ItemList=Jt;exports.ItemSearching=we;exports.Label=Ve;exports.LanguageSelector=Qa;exports.Link=q;exports.ListItem=$e;exports.ListItemsWrapper=Ot;exports.LittleFlag=dr;exports.Loading=$r;exports.LocationCode=Pt;exports.Logo=Cr;exports.LogoCarousel=jr;exports.MemoizedImage=V;exports.Menu=vr;exports.MenuItem=nn;exports.MessageBanner=zr;exports.Modal=Yt;exports.ModalConfirm=At;exports.ModalFooter=Lt;exports.Notification=Rr;exports.NotificationSign=Mt;exports.NumberField=Ce;exports.NumberInput=Pr;exports.OAuthSelector=Mr;exports.Option=ht;exports.OptionBoxContainer=qe;exports.OptionContainer=Oe;exports.OptionContainer$1=Xt;exports.OptionsSelector=Me;exports.OutlineContainer=O;exports.PhoneInput=Bi;exports.PlanCard=Ar;exports.PopUp=Or;exports.Popover=xe;exports.PremiumFeature=tn;exports.PreviewPanel=Ht;exports.PriorityScore=_r;exports.Progress=Zr;exports.ProgressBar=Kr;exports.RadioButton=Rt;exports.RecommendedTag=Qt;exports.Row=lr;exports.ScrollButtons=We;exports.ScrollUpButton=Qr;exports.Search=re;exports.SearchBar=so;exports.SearchPanel=Vt;exports.SeverityBadge=co;exports.SeverityOverview=go;exports.SeverityOverviewBadge=ie;exports.ShowOnHover=xo;exports.SingleColumFilters=Sa;exports.SlideOutMenu=ho;exports.Slider=jo;exports.Span=je;exports.StepLapse=Io;exports.Tab=Wt;exports.TableButton=Eo;exports.Tabs=Ke;exports.Tag=X;exports.TagsField=Pe;exports.Text=k;exports.TextArea=Ai;exports.Thumb=an;exports.TimeField=jt;exports.TimeLine=Po;exports.TimeLineCard=rn;exports.Toggle=Dt;exports.ToggleButton=Wo;exports.Tooltip=Y;exports.Tour=Ao;exports.TwoColumnsFilters=za;exports.WebForm=Vo;exports.baseStep=Bo;exports.getStyledConfig=ue;exports.hiddenProps=ct;exports.icons=zn;exports.setBorder=ce;exports.setDisplay=de;exports.setInteraction=ge;exports.setMargin=se;exports.setPadding=oe;exports.setPosition=le;exports.setText=pe;exports.theme=v;exports.uniqueIcons=In;exports.useCarousel=Tt;exports.useClickOutside=J;exports.useCloudinaryImage=Nt;exports.useColumnsModal=_i;exports.useConfirmDialog=Ia;exports.useDebouncedCallback=Et;exports.useModal=Ye;exports.useSearch=Vi;exports.variantBuilder=U;
|