@fluidattacks/design 3.24.4-pr → 3.24.5-pr
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/@core/index.js +1 -1
- package/dist/components/accordion/accordion-content/index.js +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/card/card-header/index.js +1 -1
- package/dist/components/card/card-with-image/index.js +1 -1
- package/dist/components/card/card-with-input/index.js +1 -1
- package/dist/components/card/card-with-options/index.js +1 -1
- package/dist/components/card/card-with-selector/index.js +1 -1
- package/dist/components/card/card-with-switch/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/cloud-image/index.js +1 -1
- package/dist/components/code-snippet/index.js +1 -1
- package/dist/components/code-snippet/location-code/index.js +1 -1
- package/dist/components/colors/index.js +1 -1
- package/dist/components/conditions-dialog/index.js +1 -1
- package/dist/components/confirm-dialog/index.js +1 -1
- package/dist/components/container/index.js +1 -1
- package/dist/components/copy-button/index.js +1 -1
- package/dist/components/divider/index.js +1 -1
- package/dist/components/dropdown/index.js +1 -1
- package/dist/components/empty-state/empty-button/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/file-preview/index.js +1 -1
- package/dist/components/form/index.js +1 -1
- package/dist/components/form/inner-form/index.js +1 -1
- package/dist/components/grid-container/index.js +1 -1
- package/dist/components/group-selector/index.js +1 -1
- package/dist/components/group-selector/option-container/index.js +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/indicator-card/index.js +1 -1
- package/dist/components/info-sidebar/index.js +1 -1
- package/dist/components/inputs/fields/combobox/field/index.js +1 -1
- package/dist/components/inputs/fields/combobox/index.js +1 -1
- package/dist/components/inputs/fields/combobox/option/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date/index.js +1 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-range/index.js +1 -1
- package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-time/index.js +1 -1
- package/dist/components/inputs/fields/editable/index.js +1 -1
- package/dist/components/inputs/fields/input/index.js +1 -1
- package/dist/components/inputs/fields/input-array/field/index.js +1 -1
- package/dist/components/inputs/fields/input-array/index.js +1 -1
- package/dist/components/inputs/fields/input-file/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/field/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/index.js +1 -1
- package/dist/components/inputs/fields/number/index.js +1 -1
- package/dist/components/inputs/fields/number-range/index.js +1 -1
- package/dist/components/inputs/fields/phone/index.js +1 -1
- package/dist/components/inputs/fields/text-area/index.js +1 -1
- package/dist/components/inputs/index.js +1 -1
- package/dist/components/inputs/label/index.js +1 -1
- package/dist/components/inputs/outline-container/index.js +1 -1
- package/dist/components/inputs/utils/action-button/index.js +1 -1
- package/dist/components/inputs/utils/calendar-button/index.js +1 -1
- package/dist/components/inputs/utils/date-selector/index.js +1 -1
- package/dist/components/inputs/utils/date-time-field/index.js +1 -1
- package/dist/components/inputs/utils/dialog/index.js +1 -1
- package/dist/components/inputs/utils/number-field/index.js +1 -1
- package/dist/components/inputs/utils/popover/index.js +1 -1
- package/dist/components/layout/categories/buttons/index.js +1 -1
- package/dist/components/layout/categories/column/index.js +1 -1
- package/dist/components/layout/categories/gap/index.js +1 -1
- package/dist/components/layout/categories/row/index.js +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list-item/index.js +1 -1
- package/dist/components/little-flag/index.js +1 -1
- package/dist/components/loading/index.js +1 -1
- package/dist/components/logo/index.js +1 -1
- package/dist/components/lottie/index.js +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/message-banner/index.js +1 -1
- package/dist/components/modal/columns-modal/index.js +1 -1
- package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
- package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
- package/dist/components/modal/filters-modal/applied-filter/index.js +1 -1
- package/dist/components/modal/filters-modal/applied-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/column-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-control/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/form-content/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/hooks/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/index.js +1 -1
- package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
- package/dist/components/modal/filters-modal/index.js +1 -1
- package/dist/components/modal/footer/index.js +1 -1
- package/dist/components/modal/header/index.js +1 -1
- package/dist/components/modal/index.js +1 -1
- package/dist/components/modal/modal-confirm/index.js +1 -1
- package/dist/components/notification/index.js +1 -1
- package/dist/components/notification-sign/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/oauth-selector/index.js +1 -1
- package/dist/components/oauth-selector/option-container/index.js +1 -1
- package/dist/components/plan-card/index.js +1 -1
- package/dist/components/plan-card/recommended-tag/index.js +1 -1
- package/dist/components/pop-up/description/index.js +1 -1
- package/dist/components/pop-up/index.js +1 -1
- package/dist/components/premium-feature/index.js +1 -1
- package/dist/components/priority-score/index.js +1 -1
- package/dist/components/progress-bar/index.js +1 -1
- package/dist/components/progress-indicator/in-progress-icon/index.js +1 -1
- package/dist/components/progress-indicator/index.js +1 -1
- package/dist/components/progress-indicator/step/index.js +1 -1
- package/dist/components/radio-button/index.js +1 -1
- package/dist/components/scroll-button/index.js +1 -1
- package/dist/components/search/index.js +1 -1
- package/dist/components/severity-badge/index.js +1 -1
- package/dist/components/severity-overview/badge/index.js +1 -1
- package/dist/components/severity-overview/index.js +1 -1
- package/dist/components/show-on-hover/index.js +1 -1
- package/dist/components/slide-out-menu/index.js +1 -1
- package/dist/components/slide-out-menu/menu-item/index.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/thumb/index.js +1 -1
- package/dist/components/step-lapse/index.js +1 -1
- package/dist/components/table/context/index.js +1 -1
- package/dist/components/table/export-csv/index.js +1 -1
- package/dist/components/table/index.js +1 -1
- package/dist/components/table/pagination/pagination-control/index.js +1 -1
- package/dist/components/table/pagination/pagination-dropdown/index.js +1 -1
- package/dist/components/table/pagination/pagination-size/index.js +1 -1
- package/dist/components/table/sort-icon/index.js +1 -1
- package/dist/components/table/table-body/index.js +1 -1
- package/dist/components/table/table-column-toggle/index.js +1 -1
- package/dist/components/table/table-content/head/index.js +1 -1
- package/dist/components/table/table-content/index.js +1 -1
- package/dist/components/table/table-footer/footer-content/index.js +1 -1
- package/dist/components/table/table-footer/index.js +1 -1
- package/dist/components/table/table-options/caption-content/index.js +1 -1
- package/dist/components/table/table-options/controls-content/index.js +1 -1
- package/dist/components/table/table-options/highlighted-content/index.js +1 -1
- package/dist/components/table/table-options/index.js +1 -1
- package/dist/components/table/wrapper/index.js +1 -1
- package/dist/components/table-button/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/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-B4ncEwW8.js → components-D7f7nxmJ.js} +37 -37
- package/dist/{components-DQ552aTg.mjs → components-VbHoecE9.mjs} +209 -203
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),x=require("react"),l=require("./vendor-9f4XgOcG.js"),se=require("react-dom"),Oe=require("react-router-dom"),K=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"],Qn={25:"#fcfcfd",50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#2f394b",800:"#212a36",900:"#161b25"},ei={25:"#fef2f3",50:"#fddfe2",100:"#fbbac0",200:"#f9959e",300:"#f65e6a",400:"#f32637",500:"#bf0b1a",600:"#ac0a17",700:"#9a0915",800:"#870812",900:"#750710"},ti={25:"",50:"",100:"#ffe6ff",200:"",300:"#b8075d",400:"",500:"#7f0540",600:"",700:"#59042d",800:"",900:"#460323"},ni={25:"",50:"#fef3f2",100:"",200:"#fecdca",300:"",400:"",500:"#f04438",600:"",700:"#b42318",800:"",900:""},ii={25:"",50:"#fffaeb",100:"",200:"#fef0c7",300:"",400:"#ffd562",500:"#fdb022",600:"#dc6803",700:"#b54708",800:"",900:""},oi={25:"",50:"#f6fef9",100:"",200:"#a6f4c5",300:"",400:"",500:"#12b76a",600:"",700:"#027a48",800:"",900:""},ri={25:"",50:"#eff8ff",100:"",200:"#b2ddff",300:"",400:"",500:"#2e90fa",600:"",700:"#175cd3",800:"",900:""},ai={"01":"linear-gradient(45deg, #f32637 0%, #b8075d 100%)","02":"linear-gradient(45deg, #fcfcfd 0%, #667085 100%)"},si={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"}},li={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)"},ci={mobile:"480px",tablet:"960px",sm:"1024px",md:"1440px",lg:"1920px"},di={0:"0rem",.125:"0.125rem",.188:"0.188rem",.25:"0.25rem",.5:"0.5rem",.625:"0.625rem",.75:"0.75rem",1:"1rem",1.25:"1.25rem",1.5:"1.5rem",1.75:"1.75rem",2:"2rem",2.25:"2.25rem",2.5:"2.5rem",3:"3rem",3.5:"3.5rem",4:"4rem",4.5:"4.5rem",5:"5rem",6:"6rem"},pi=["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"],gi=[["fal","arrow-down"],["fal","arrow-left"],["fal","arrow-right"],["fal","arrow-up"],["fal","plus"],["fal","minus"],["fas","check"],["fas","circle-question"]],
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),x=require("react"),l=require("./vendor-9f4XgOcG.js"),se=require("react-dom"),Oe=require("react-router-dom"),K=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"],Qn={25:"#fcfcfd",50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#2f394b",800:"#212a36",900:"#161b25"},ei={25:"#fef2f3",50:"#fddfe2",100:"#fbbac0",200:"#f9959e",300:"#f65e6a",400:"#f32637",500:"#bf0b1a",600:"#ac0a17",700:"#9a0915",800:"#870812",900:"#750710"},ti={25:"",50:"",100:"#ffe6ff",200:"",300:"#b8075d",400:"",500:"#7f0540",600:"",700:"#59042d",800:"",900:"#460323"},ni={25:"",50:"#fef3f2",100:"",200:"#fecdca",300:"",400:"",500:"#f04438",600:"",700:"#b42318",800:"",900:""},ii={25:"",50:"#fffaeb",100:"",200:"#fef0c7",300:"",400:"#ffd562",500:"#fdb022",600:"#dc6803",700:"#b54708",800:"",900:""},oi={25:"",50:"#f6fef9",100:"",200:"#a6f4c5",300:"",400:"",500:"#12b76a",600:"",700:"#027a48",800:"",900:""},ri={25:"",50:"#eff8ff",100:"",200:"#b2ddff",300:"",400:"",500:"#2e90fa",600:"",700:"#175cd3",800:"",900:""},ai={"01":"linear-gradient(45deg, #f32637 0%, #b8075d 100%)","02":"linear-gradient(45deg, #fcfcfd 0%, #667085 100%)"},si={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"}},li={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)"},ci={mobile:"480px",tablet:"960px",sm:"1024px",md:"1440px",lg:"1920px"},di={0:"0rem",.125:"0.125rem",.188:"0.188rem",.25:"0.25rem",.5:"0.5rem",.625:"0.625rem",.75:"0.75rem",1:"1rem",1.25:"1.25rem",1.5:"1.5rem",1.75:"1.75rem",2:"2rem",2.25:"2.25rem",2.5:"2.5rem",3:"3rem",3.5:"3.5rem",4:"4rem",4.5:"4.5rem",5:"5rem",6:"6rem"},pi=["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"],gi=[["fal","arrow-down"],["fal","arrow-left"],["fal","arrow-right"],["fal","arrow-up"],["fal","plus"],["fal","minus"],["fas","check"],["fas","circle-question"]],F={typography:si,shadows:li,breakpoints:ci,spacing:di,palette:{primary:ei,complementary:ti,error:ni,info:ri,warning:ii,success:oi,black:"#0c111d",white:"#ffffff",gray:Qn,gradients:ai}},ui=({children:e})=>t.jsx(l.Xe,{theme:F,children:e}),N=(e,n)=>n===void 0?"":`${e}: ${n};`,he=e=>{const n=e.py??e.pt??0,i=e.px??e.pr??0,o=e.py??e.pb??0,r=e.px??e.pl??0;if(e.padding){const[a,c,s,d]=e.padding;return`padding: ${F.spacing[a]} ${F.spacing[c]} ${F.spacing[s]} ${F.spacing[d]};`}return`padding: ${F.spacing[n]} ${F.spacing[i]} ${F.spacing[o]} ${F.spacing[r]};`},be=e=>{const n=e.my??e.mt??0,i=e.mx??e.mr??0,o=e.my??e.mb??0,r=e.mx??e.ml??0;if(e.margin){const[a,c,s,d]=e.margin;return`margin: ${F.spacing[a]} ${F.spacing[c]} ${F.spacing[s]} ${F.spacing[d]};`}return`margin: ${F.spacing[n]} ${F.spacing[i]} ${F.spacing[o]} ${F.spacing[r]};`},ye=e=>{const n=N("position",e.position),i=N("top",e.top),o=N("right",e.right),r=N("bottom",e.bottom),a=N("left",e.left),c=N("z-index",e.zIndex);return`
|
|
2
2
|
${n}
|
|
3
3
|
${i}
|
|
4
4
|
${o}
|
|
5
5
|
${r}
|
|
6
6
|
${a}
|
|
7
7
|
${c}
|
|
8
|
-
`},$e=e=>{const n=
|
|
8
|
+
`},$e=e=>{const n=N("border",e.border),i=N("border-top",e.borderTop),o=N("border-right",e.borderRight),r=N("border-bottom",e.borderBottom),a=N("border-left",e.borderLeft),c=N("border-color",e.borderColor),s=N("border-radius",e.borderRadius);return`
|
|
9
9
|
${n}
|
|
10
10
|
${i}
|
|
11
11
|
${o}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
`},xi=e=>e.includes("x")?"overflow-x: auto;":"",fi=e=>e.includes("y")?"overflow-y: auto;":"",me=e=>{const n=e.scroll?`
|
|
17
17
|
${xi(e.scroll)}
|
|
18
18
|
${fi(e.scroll)}
|
|
19
|
-
`:"",i=
|
|
19
|
+
`:"",i=N("visibility",e.visibility),o=N("display",e.display),r=N("height",e.height),a=N("width",e.width),c=N("max-height",e.maxHeight),s=N("max-width",e.maxWidth),d=N("min-height",e.minHeight),p=N("min-width",e.minWidth),g=N("box-shadow",e.shadow?F.shadows[e.shadow]:void 0),u=N("gap",e.gap===void 0?void 0:F.spacing[e.gap]),f=N("background-color",e.bgColor),h=N("background",e.bgGradient),b=N("flex-direction",e.flexDirection),$=N("flex-grow",e.flexGrow),m=N("justify-content",e.justify),j=N("justify-self",e.justifySelf),w=N("align-items",e.alignItems),v=N("align-self",e.alignSelf),k=N("flex-wrap",e.wrap);return`
|
|
20
20
|
${n}
|
|
21
21
|
${i}
|
|
22
22
|
${o}
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
${w}
|
|
38
38
|
${v}
|
|
39
39
|
${k}
|
|
40
|
-
`},we=e=>{const n=
|
|
40
|
+
`},we=e=>{const n=N("color",e.color),i=N("font-family",e.fontFamily),o=N("font-size",e.fontSize),r=N("font-weight",e.fontWeight),a=N("line-spacing",e.letterSpacing),c=N("line-height",e.lineSpacing),s=N("text-align",e.textAlign),d=N("text-decoration",e.textDecoration),p=N("text-overflow",e.textOverflow),g=N("white-space",e.whiteSpace),u=N("word-break",e.wordBreak),f=N("word-wrap",e.wordWrap);return`
|
|
41
41
|
${n}
|
|
42
42
|
${i}
|
|
43
43
|
${o}
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
${g}
|
|
51
51
|
${u}
|
|
52
52
|
${f}
|
|
53
|
-
`},je=e=>{const n=
|
|
53
|
+
`},je=e=>{const n=N("cursor",e.cursor),i=N("border-color",e.borderColorHover),o=N("background-color",e.bgColorHover),r=N("box-shadow",e.shadowHover===void 0?void 0:F.shadows[e.shadowHover]),a=N("transition",e.transition);return`
|
|
54
54
|
${n}
|
|
55
55
|
|
|
56
56
|
&:hover {
|
|
@@ -498,7 +498,7 @@
|
|
|
498
498
|
#menu-profile-container li div {
|
|
499
499
|
min-width: unset;
|
|
500
500
|
}
|
|
501
|
-
`,{getVariant:
|
|
501
|
+
`,{getVariant:Fi}=K(e=>({default:`
|
|
502
502
|
background-color: ${e.palette.gray[200]};
|
|
503
503
|
color: ${e.palette.gray[800]};
|
|
504
504
|
`,error:`
|
|
@@ -573,7 +573,7 @@
|
|
|
573
573
|
background-color: ${e.palette.warning[400]};
|
|
574
574
|
color: ${e.palette.warning[700]};
|
|
575
575
|
}
|
|
576
|
-
`})),
|
|
576
|
+
`})),Ni=l.st.span`
|
|
577
577
|
${({theme:e,$fontSize:n=e.typography.text.xs,$variant:i})=>`
|
|
578
578
|
align-items: center;
|
|
579
579
|
border-radius: ${e.spacing[i==="technique"?1:.25]};
|
|
@@ -594,7 +594,7 @@
|
|
|
594
594
|
display: flex;
|
|
595
595
|
}
|
|
596
596
|
|
|
597
|
-
${
|
|
597
|
+
${Fi(e,i)}
|
|
598
598
|
`}
|
|
599
599
|
`,{getVariant:Di}=K(e=>({highRelevance:`
|
|
600
600
|
color: ${e.palette.primary[500]};
|
|
@@ -636,7 +636,7 @@
|
|
|
636
636
|
${Tt}
|
|
637
637
|
`,Ai=l.st(Oe.Link)`
|
|
638
638
|
${Tt}
|
|
639
|
-
`,Z=({children:e,color:n,download:i,href:o,iconPosition:r="right",onClick:a,target:c,variant:s="lowRelevance"})=>{const d=o.startsWith("https://"),p=t.jsx(E,{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(Li,{$color:n,$variant:s,download:i,href:o,onClick:a,rel:"nofollow noopener noreferrer",target:c??"_blank",children:[r==="left"?p:void 0,e,r==="right"?p:void 0]}):t.jsxs(Ai,{$variant:s,download:i,onClick:a,rel:"nofollow noopener noreferrer",target:c,to:o,children:[c!==void 0&&r==="left"?p:void 0,e,c!==void 0&&r==="right"?p:void 0]})},G=({disabled:e,icon:n,iconColor:i="inherit",iconType:o="fa-light",id:r="close-tag",filterValues:a="",fontSize:c,href:s,linkLabel:d,onClose:p,priority:g="default",tagTitle:u="",tagLabel:f,variant:h="default"})=>{const b=f.length>25&&l.lodashExports.isEmpty(u+a),$=`${f.slice(0,25)}...`;return t.jsxs(ue,{className:"gap-0.5",display:s===void 0?"initial":"flex",size:"sm",children:[t.jsxs(
|
|
639
|
+
`,Z=({children:e,color:n,download:i,href:o,iconPosition:r="right",onClick:a,target:c,variant:s="lowRelevance"})=>{const d=o.startsWith("https://"),p=t.jsx(E,{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(Li,{$color:n,$variant:s,download:i,href:o,onClick:a,rel:"nofollow noopener noreferrer",target:c??"_blank",children:[r==="left"?p:void 0,e,r==="right"?p:void 0]}):t.jsxs(Ai,{$variant:s,download:i,onClick:a,rel:"nofollow noopener noreferrer",target:c,to:o,children:[c!==void 0&&r==="left"?p:void 0,e,c!==void 0&&r==="right"?p:void 0]})},G=({disabled:e,icon:n,iconColor:i="inherit",iconType:o="fa-light",id:r="close-tag",filterValues:a="",fontSize:c,href:s,linkLabel:d,onClose:p,priority:g="default",tagTitle:u="",tagLabel:f,variant:h="default"})=>{const b=f.length>25&&l.lodashExports.isEmpty(u+a),$=`${f.slice(0,25)}...`;return t.jsxs(ue,{className:"gap-0.5",display:s===void 0?"initial":"flex",size:"sm",children:[t.jsxs(Ni,{$fontSize:c,$variant:h,className:g,children:[n&&t.jsx(E,{icon:n,iconColor:i,iconSize:"xxs",iconType:o}),t.jsxs("span",{className:"w-full",children:[t.jsx("strong",{children:u}),t.jsx("span",{children:b?$:f}),t.jsx("strong",{className:"w-full",children:a})]}),p?t.jsx(M,{disabled:e,icon:"xmark",iconSize:"xxs",iconType:"fa-light",id:r,onClick:p,px:.125,py:.125,variant:"ghost"}):void 0]}),s===void 0?void 0:t.jsx(Z,{href:s,children:d})]})},Et=(e,n=!0)=>{const i=window.open(e,n?void 0:"_self","noopener,noreferrer,");l.lodashExports.isObject(i)&&(i.opener=null)},P=x.forwardRef(function({children:n,disabled:i=!1,external:o=!1,fontSize:r,href:a,id:c,icon:s,iconColor:d,iconType:p,name:g,onClick:u,rightIcon:f,tag:h,type:b="button",tooltip:$,tooltipPlace:m="bottom",underline:j=!1,value:w,variant:v="primary",width:k,...C},I){const R=$!==void 0,S=`${c}-tooltip`,D=x.useCallback(()=>{a&&Et(a,o)},[o,a]),T=t.jsxs(It,{$size:r,$variant:v,"aria-disabled":i,className:j?"underline":void 0,disabled:i,id:c,name:g,onClick:v==="link"?D:u,ref:I,type:b,value:w,width:k,...R?{"data-tooltip-id":S}:{},...C,children:[s!==void 0&&t.jsx(E,{icon:s,iconColor:d??void 0,iconSize:"xs",iconType:p??"fa-light"}),n,f||v==="link"?t.jsx(E,{icon:f??"arrow-right",iconSize:"xs",iconType:"fa-light"}):void 0,h===void 0?null:t.jsx(G,{tagLabel:h,variant:"default"})]});return R?t.jsx(U,{disabled:!R,id:S,place:m,tip:$,width:k,children:T}):T}),Pi=x.forwardRef(function({children:n,onClick:i,userName:o,showIcon:r=!1,showUsername:a=!1},c){const s=!!i;return t.jsx(y,{id:"navbar-user-profile",ref:c,zIndex:9999,children:t.jsxs(y,{alignItems:"end",display:"flex",flexDirection:"column",position:"relative",zIndex:30,children:[s?t.jsxs(P,{onClick:i,pb:.5,pl:.5,pr:.5,pt:.5,variant:"ghost",children:[t.jsx(gt,{children:o[0].toUpperCase()}),a?t.jsx(z,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:o.split(" ")[0]}):void 0,r?t.jsx(E,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}):t.jsxs(y,{alignItems:"center",display:"flex",px:.5,py:.5,children:[t.jsx(gt,{children:o[0].toUpperCase()}),a?t.jsxs(z,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:["Hi ",o.split(" ")[0],"!"]}):void 0,r?t.jsx(E,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}),t.jsx(Ri,{children:n})]})})}),Fe=({authorEmail:e,date:n,description:i,descriptionColor:o,id:r,title:a,titleColor:c,textAlign:s,textSpacing:d=0,tooltip:p})=>{const g=l.Je();return t.jsxs(y,{width:"100%",children:[typeof a=="string"||p?t.jsxs(y,{alignItems:"center",display:"inline-flex",gap:.5,width:"100%",children:[typeof a=="string"?t.jsx(z,{color:c??g.palette.gray[800],fontWeight:"bold",mb:d,size:"sm",textAlign:s,wordBreak:"break-word",children:a}):a,p&&t.jsx(U,{icon:"circle-info",id:r,place:"top",tip:p})]}):void 0,t.jsxs(y,{alignItems:"start",display:"flex",flexDirection:"column",gap:.25,children:[i&&t.jsx(z,{color:o??g.palette.gray[800],fontWeight:i===void 0?"bold":"regular",size:"sm",textAlign:s,wordBreak:"break-word",children:i}),n&&t.jsx(z,{color:g.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:s,wordBreak:"break-word",children:`Date: ${n.split(" ")[0]}`}),e&&t.jsx(z,{color:g.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:s,wordBreak:"break-word",children:`Author: ${e}`})]})]})},ut=l.st(y).attrs(({...e})=>({display:"inline-block",position:"relative",...e}))`
|
|
640
640
|
& img {
|
|
641
641
|
display: block;
|
|
642
642
|
}
|
|
@@ -651,7 +651,7 @@
|
|
|
651
651
|
pointer-events: none;
|
|
652
652
|
${({$opacity:e=0})=>`background-color: rgba(0, 0, 0, ${e});`}
|
|
653
653
|
}
|
|
654
|
-
`,Mi=e=>{if(l._.isNil(e))return"";const n=e.split(".");return(n.length>1?l._.last(n):"").toLowerCase()},Oi=(e,n)=>l._.isUndefined(n)?!1:l._.includes(e,Mi(n)),Rt=({alt:e,fileType:n,width:i="100%",opacity:o=0,src:r,height:a="auto",videoViewStatus:c})=>{const[s,d]=x.useState({start:!1,half:!1,end:!1}),p=x.useCallback(g=>{if(!c)return;const u=g.target,f=u.currentTime/u.duration*100;f>5&&f<50?(s.start||c("start"),d({start:!0,half:!1,end:!1})):f>=50&&f<99?(s.half||c("half"),d({start:!0,half:!0,end:!1})):f>=99?(s.end||c("end"),d({start:!0,half:!0,end:!0})):d({start:!1,half:!1,end:!1})},[c,s]);return n==="video"||Oi(["webm"],r)?t.jsx(ut,{$opacity:o,children:t.jsx(Z,{href:r,iconPosition:"hidden",children:t.jsxs("video",{controls:!0,muted:!0,onTimeUpdate:p,style:{height:a,width:i},children:[t.jsx("source",{src:r,type:"video/webm"}),r]})})}):t.jsx(ut,{$opacity:o,children:t.jsx("img",{alt:e,src:r,style:{height:a,width:i}})})},Wi=({alt:e,authorEmail:n,date:i,description:o,src:r,children:a,isEditing:c,onClick:s,title:d,hideDescription:p=!1,headerType:g="image",showMaximize:u=!0,videoViewStatus:f})=>{const h=l.Je(),[b,$]=x.useState(!1),m=x.useCallback(()=>{$(!0)},[]),j=x.useCallback(()=>{$(!1)},[]);return t.jsxs(y,{bgColor:"transparent",border:"1px solid transparent",borderColorHover:"black",borderRadius:h.spacing[.25],display:"flex",flexDirection:"column",gap:1,onHover:m,onLeave:j,padding:[.5,.5,.5,.5],width:"100%",children:[t.jsx(y,{cursor:c?"unset":"pointer",display:"inline-flex",justify:"center",onClick:s,position:"relative",width:"100%",children:a===void 0?t.jsxs(x.Fragment,{children:[t.jsx(Rt,{alt:e,fileType:g,height:"147px",opacity:b?.3:0,src:r,videoViewStatus:f,width:"100%"}),u?t.jsx(y,{bottom:"10px",position:"absolute",right:"10px",children:t.jsx(M,{color:"white",icon:"arrows-maximize",iconSize:"xxs",iconType:"fa-light",variant:"secondary"})}):void 0]}):a}),p?null:t.jsx(
|
|
654
|
+
`,Mi=e=>{if(l._.isNil(e))return"";const n=e.split(".");return(n.length>1?l._.last(n):"").toLowerCase()},Oi=(e,n)=>l._.isUndefined(n)?!1:l._.includes(e,Mi(n)),Rt=({alt:e,fileType:n,width:i="100%",opacity:o=0,src:r,height:a="auto",videoViewStatus:c})=>{const[s,d]=x.useState({start:!1,half:!1,end:!1}),p=x.useCallback(g=>{if(!c)return;const u=g.target,f=u.currentTime/u.duration*100;f>5&&f<50?(s.start||c("start"),d({start:!0,half:!1,end:!1})):f>=50&&f<99?(s.half||c("half"),d({start:!0,half:!0,end:!1})):f>=99?(s.end||c("end"),d({start:!0,half:!0,end:!0})):d({start:!1,half:!1,end:!1})},[c,s]);return n==="video"||Oi(["webm"],r)?t.jsx(ut,{$opacity:o,children:t.jsx(Z,{href:r,iconPosition:"hidden",children:t.jsxs("video",{controls:!0,muted:!0,onTimeUpdate:p,style:{height:a,width:i},children:[t.jsx("source",{src:r,type:"video/webm"}),r]})})}):t.jsx(ut,{$opacity:o,children:t.jsx("img",{alt:e,src:r,style:{height:a,width:i}})})},Wi=({alt:e,authorEmail:n,date:i,description:o,src:r,children:a,isEditing:c,onClick:s,title:d,hideDescription:p=!1,headerType:g="image",showMaximize:u=!0,videoViewStatus:f})=>{const h=l.Je(),[b,$]=x.useState(!1),m=x.useCallback(()=>{$(!0)},[]),j=x.useCallback(()=>{$(!1)},[]);return t.jsxs(y,{bgColor:"transparent",border:"1px solid transparent",borderColorHover:"black",borderRadius:h.spacing[.25],display:"flex",flexDirection:"column",gap:1,onHover:m,onLeave:j,padding:[.5,.5,.5,.5],width:"100%",children:[t.jsx(y,{cursor:c?"unset":"pointer",display:"inline-flex",justify:"center",onClick:s,position:"relative",width:"100%",children:a===void 0?t.jsxs(x.Fragment,{children:[t.jsx(Rt,{alt:e,fileType:g,height:"147px",opacity:b?.3:0,src:r,videoViewStatus:f,width:"100%"}),u?t.jsx(y,{bottom:"10px",position:"absolute",right:"10px",children:t.jsx(M,{color:"white",icon:"arrows-maximize",iconSize:"xxs",iconType:"fa-light",variant:"secondary"})}):void 0]}):a}),p?null:t.jsx(Fe,{authorEmail:n,date:i,description:o,descriptionColor:h.palette.gray[600],id:`${e}-card-header`,title:d})]})},Hi=l.st.div`
|
|
655
655
|
${({theme:e,$align:n="center",$minWidth:i="auto",$minHeight:o="auto"})=>`
|
|
656
656
|
display: flex;
|
|
657
657
|
background-color: ${e.palette.white};
|
|
@@ -948,7 +948,7 @@
|
|
|
948
948
|
fill: ${e.palette.white};
|
|
949
949
|
}
|
|
950
950
|
`}
|
|
951
|
-
`,oe=x.forwardRef(function({checked:n,disabled:i=!1,label:o,name:r,onChange:a,onClick:c,onFocus:s,onKeyDown:d,tooltip:p,value:g,...u},f){return t.jsxs("div",{className:"gap-1 inline-flex items-start",children:[t.jsxs(Ui,{"aria-disabled":i,children:[t.jsx("input",{"aria-checked":n,"aria-disabled":i,"aria-hidden":!1,"aria-label":r,checked:n,"data-testid":o??g,disabled:i,id:r,name:r,onChange:a,onClick:c,onFocus:s,onKeyDown:d,ref:f,type:"checkbox",value:g,...u}),t.jsx(E,{disabled:i,icon:"check",iconSize:"sm"}),o??g]}),p===void 0?void 0:t.jsx(U,{icon:"circle-info",id:p,place:"right",tip:p})]})}),ne=(e,n,i=!1,o)=>{x.useEffect(()=>{var a;const r=c=>{e&&!e.contains(c.target)&&!(o!=null&&o.contains(c.target))&&n()};return i?(document.addEventListener("mousedown",r,!0),()=>{document.removeEventListener("mousedown",r,!0)}):((a=document.getElementById("root"))==null||a.addEventListener("mousedown",r,!0),()=>{var c;(c=document.getElementById("root"))==null||c.removeEventListener("mousedown",r,!0)})},[i,e,o,n])},
|
|
951
|
+
`,oe=x.forwardRef(function({checked:n,disabled:i=!1,label:o,name:r,onChange:a,onClick:c,onFocus:s,onKeyDown:d,tooltip:p,value:g,...u},f){return t.jsxs("div",{className:"gap-1 inline-flex items-start",children:[t.jsxs(Ui,{"aria-disabled":i,children:[t.jsx("input",{"aria-checked":n,"aria-disabled":i,"aria-hidden":!1,"aria-label":r,checked:n,"data-testid":o??g,disabled:i,id:r,name:r,onChange:a,onClick:c,onFocus:s,onKeyDown:d,ref:f,type:"checkbox",value:g,...u}),t.jsx(E,{disabled:i,icon:"check",iconSize:"sm"}),o??g]}),p===void 0?void 0:t.jsx(U,{icon:"circle-info",id:p,place:"right",tip:p})]})}),ne=(e,n,i=!1,o)=>{x.useEffect(()=>{var a;const r=c=>{e&&!e.contains(c.target)&&!(o!=null&&o.contains(c.target))&&n()};return i?(document.addEventListener("mousedown",r,!0),()=>{document.removeEventListener("mousedown",r,!0)}):((a=document.getElementById("root"))==null||a.addEventListener("mousedown",r,!0),()=>{var c;(c=document.getElementById("root"))==null||c.removeEventListener("mousedown",r,!0)})},[i,e,o,n])},Ft=({item:e,multiSelection:n,name:i,register:o,setInputValue:r,setValue:a,state:c,watch:s})=>{var R,S,D;const d=l.Je(),p=x.useRef(null),g=e.props.hrefLang,u=c.disabledKeys,f=Array.from(c.collection.getKeys()).filter(T=>!Array.from(u).includes(T)&&T!=="All"),{optionProps:h,isSelected:b,isFocused:$,isDisabled:m}=l.$293f70390ea03370$export$497855f14858aa34({key:e.key},c,p),j=[b?"selected":"",$?"focused":"",m?"disabled":""].join(" "),w=x.useCallback(T=>{r(""),a==null||a(`${i}Options`,""),T.currentTarget.checked&&(r(T.currentTarget.value),a==null||a(`${i}Options`,f))},[f,i,r,a]),v=x.useCallback(()=>{const T=s==null?void 0:s(`${i}Options`),L=typeof T=="string"?[T]:T;l.isEqual(f,L)&&!Array.from(u).includes("All")?(a==null||a("checkAll","All vulnerability types"),r("All vulnerability types")):(a==null||a("checkAll",""),r((L==null?void 0:L.length)<=2?L.join(", "):`${L.slice(0,2).join(", ")+`, +${L.length-2} more`}`))},[u,f,i,r,a,s]),k=e.key==="All"?t.jsx(oe,{...o==null?void 0:o("checkAll",{onChange:w}),label:(R=e.rendered)==null?void 0:R.toString(),name:"checkAll",value:(S=e.rendered)==null?void 0:S.toString()}):t.jsx(oe,{...o==null?void 0:o(`${i}Options`,{onChange:v}),label:(D=e.rendered)==null?void 0:D.toString(),name:`${i}Options`,value:e.key.toString()}),C=n&&!m?k:t.jsx(z,{color:d.palette.gray[800],size:"sm",textOverflow:"ellipsis",whiteSpace:"nowrap",children:e.rendered}),I=x.useCallback(T=>{var L;T.preventDefault(),r(((L=e.rendered)==null?void 0:L.toString())??""),c.setSelectedKey(e.key),setTimeout(()=>{c.setOpen(!1)},50),Et(g)},[g,e.key,e.rendered,c,r]);return ne(document.getElementsByClassName("dropdown")[0],()=>{n&&c.close()},!0,document.getElementById("combobox")),t.jsxs(Ji,{...!n&&!g?h:{},$multiSelection:n,className:j,ref:p,children:[g?t.jsx(Z,{href:g,onClick:I,children:C}):C,b&&!m&&!n?t.jsx(E,{icon:"check",iconSize:"xxs",iconType:"fa-light"}):void 0,e.rendered===e.textValue?void 0:t.jsx(G,{tagLabel:e.textValue,variant:"inactive"})]})},We=({field:e,disabled:n=!1,disabledKeys:i,error:o,helpLink:r,helpLinkText:a,helpText:c,label:s,loadingItems:d,name:p,multiSelection:g=!1,items:u,onBlur:f,onChange:h,placeholder:b,register:$,required:m,setValue:j,tooltip:w,value:v,watch:k,weight:C})=>{var dt;const I=l.Je(),R=n?void 0:o,S=(e==null?void 0:e.value)??v,[D,T]=x.useState(((dt=u.find(A=>A.value===S))==null?void 0:dt.name)??""),[L,Y]=x.useState(S),[X,ie]=x.useState(u),[O,H]=x.useState(!1),{contains:W}=l.$bb77f239b46e8c72$export$3274cf84b703fff({sensitivity:"base"}),le=x.useRef(null),Pe=x.useRef(null),Me=x.useRef(null),st=x.useRef(null),lt=x.useRef(null),_n=x.useMemo(()=>u.toSorted((A,B)=>{const _=Array.from(i??[]),ce=_.includes(A.value),pt=_.includes(B.value);return ce&&!pt?1:!ce&&pt?-1:0}).map(A=>W(A.name,D)||O?t.jsx(l.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,{"aria-label":A.value,hrefLang:A.href,textValue:A.tag,children:A.name},A.value):null),[W,i,D,u,O]),Jn=x.useCallback(A=>{const B=A.split(/,|\s/u).slice(-1)[0].trim();T(g?B:A),A===""||A.endsWith(",")?H(!0):(H(!1),Y(_=>{const ce=A===""?"":_;return e&&e.onChange(ce),h&&h(A),ce}),ie(u.filter(_=>W(_.name,g?B:A))))},[W,u,e,g,h]),Un=x.useCallback(A=>{var B;T(((B=u.find(_=>_.value===A))==null?void 0:B.name)??""),Y(A?String(A):""),e&&e.onChange(A),h&&h(A?String(A):""),ie(u)},[u,e,h]),ct=x.useCallback(A=>{A.key==="Enter"&&A.preventDefault(),H(!1)},[]),Vn=x.useCallback(()=>{f&&f(),e&&e.onBlur()},[e,f]),Gn=x.useCallback(()=>{H(!0)},[]),Q=l.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({allowsCustomValue:g,allowsEmptyCollection:!0,disabledKeys:i,inputValue:D,items:X,menuTrigger:"focus",shouldCloseOnBlur:!g,selectedKey:L,onBlur:Vn,onInputChange:Jn,onKeyDown:ct,onKeyUp:Gn,onOpenChange(A,B){H(A&&(B==="manual"||B==="focus")),A&&setTimeout(()=>{var _;return(_=le.current)==null?void 0:_.focus()},50)},onSelectionChange:g?void 0:Un,children:_n}),{buttonProps:Yn,inputProps:Kn,listBoxProps:Zn}=l.$c350ade66beef0af$export$8c18d1b4f7232bbf({inputValue:D,buttonRef:Pe,id:p,inputRef:le,label:s??p,listBoxRef:Me,name:p,placeholder:b,popoverRef:lt},Q),{listBoxProps:qn}=l.$c132121280ec012d$export$50eacbbf140a3141(Zn,Q,Me),{buttonProps:Xn}=l.$701a24aa0da5b062$export$ea18c227d4417cc3(Yn,Pe);return x.useEffect(()=>{var A;if((d===!1||!S)&&!g){const B=((A=u.find(_=>_.value===S))==null?void 0:A.name)??"";T(B),Y(B)}},[S,u,d,g]),t.jsxs(J,{error:R,helpLink:r,helpLinkText:a,helpText:c,htmlFor:p,id:"combobox",label:s,required:m,tooltip:w,weight:C,children:[t.jsxs(te,{className:`${n?"disabled":""} ${R?"error":""}`,ref:st,children:[t.jsx("input",{...Kn,"aria-invalid":R?"true":"false","aria-label":p,disabled:n,onKeyDown:ct,ref:le}),R?t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:I.palette.error[500],iconSize:"xs"}):void 0,t.jsx(M,{...Xn,className:"action",disabled:n,icon:Q.isOpen&&!n?"chevron-up":"chevron-down",iconColor:I.palette.gray[400],iconSize:"xxs",iconType:"fa-light",px:.125,py:.125,ref:Pe,type:"button",variant:"ghost"})]}),Q.isOpen&&Q.collection.size>0&&!n?t.jsx(Ce,{className:"dropdown",offset:4,placement:"bottom start",popoverRef:lt,state:Q,triggerRef:st,children:t.jsx(_i,{...qn,$multiSelection:g&&!Array.from(i??[]).includes("All"),ref:Me,children:[...Q.collection].map(A=>t.jsx(Ft,{item:A,multiSelection:g,name:p,register:$,setInputValue:T,setValue:j,state:Q,watch:k},A.key))})}):null]})},Qe=({control:e,disabled:n=!1,disabledKeys:i,error:o,helpLink:r,helpLinkText:a,helpText:c,label:s,loadingItems:d,name:p,multiSelection:g,items:u,onBlur:f,onChange:h,placeholder:b,register:$,required:m,setValue:j,tooltip:w,value:v,watch:k,weight:C})=>e?t.jsx(l.Controller,{control:e,name:p,render:({field:I,fieldState:R})=>{var S;return t.jsx(We,{disabled:n,disabledKeys:i,error:(S=R.error)==null?void 0:S.message,field:I,helpLink:r,helpLinkText:a,helpText:c,items:u,label:s,loadingItems:d,multiSelection:g,name:p,onBlur:f,onChange:h,placeholder:b,register:$,required:m,setValue:j,tooltip:w,value:v,watch:k,weight:C})},rules:{required:m}}):t.jsx(We,{disabled:n,disabledKeys:i,error:o,helpLink:r,helpLinkText:a,helpText:c,items:u,label:s,loadingItems:d,multiSelection:g,name:p,onBlur:f,onChange:h,placeholder:b,required:m,tooltip:w,value:v,weight:C}),Vi=l.st.div`
|
|
952
952
|
${({theme:e})=>`
|
|
953
953
|
align-items: center;
|
|
954
954
|
color: ${e.palette.gray[800]};
|
|
@@ -985,7 +985,7 @@
|
|
|
985
985
|
display: flex;
|
|
986
986
|
padding: ${({theme:e})=>e.spacing[.25]} 0;
|
|
987
987
|
width: 100%;
|
|
988
|
-
`,
|
|
988
|
+
`,Nt=l.nt`
|
|
989
989
|
${({theme:e})=>`
|
|
990
990
|
align-items: center;
|
|
991
991
|
color: ${e.palette.gray[800]};
|
|
@@ -1002,10 +1002,10 @@
|
|
|
1002
1002
|
width: ${e.spacing[2.5]};
|
|
1003
1003
|
`}
|
|
1004
1004
|
`,Yi=l.st.th`
|
|
1005
|
-
${
|
|
1005
|
+
${Nt}
|
|
1006
1006
|
`,Ki=l.st.td`
|
|
1007
1007
|
${({theme:e})=>`
|
|
1008
|
-
${
|
|
1008
|
+
${Nt}
|
|
1009
1009
|
height: ${e.spacing[2.5]};
|
|
1010
1010
|
width: ${e.spacing[2.5]};
|
|
1011
1011
|
|
|
@@ -1082,7 +1082,7 @@
|
|
|
1082
1082
|
`}
|
|
1083
1083
|
`,Dt=({state:e,date:n})=>{const i=x.useRef(null),o=l.$14e0f24ef4ac5c92$export$629b0a497aa65267(n,l.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),{cellProps:r,buttonProps:a,isSelected:c,isDisabled:s,formattedDate:d}=l.$36a0ac60f04457c5$export$136073280381448e({date:n},e,i),p="highlightedRange"in e&&!l.lodashExports.isNull(e.highlightedRange)?l.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.start):c,g="highlightedRange"in e&&!l.lodashExports.isNull(e.highlightedRange)?l.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.end):c,u=c&&!s&&!(p||g)?"range":"";return t.jsx(Ki,{id:u,...r,children:t.jsxs("div",{...a,className:`cell ${p||g?"selected":""}
|
|
1084
1084
|
${s?"disabled":""} ${o?"today":""}
|
|
1085
|
-
${!e.isFocused&&!o?"focused":""} ${u}`,ref:i,children:[d,o?t.jsx(Zi,{children:t.jsx(E,{clickable:!1,icon:"circle",iconSize:"xxs"})}):void 0]})})},
|
|
1085
|
+
${!e.isFocused&&!o?"focused":""} ${u}`,ref:i,children:[d,o?t.jsx(Zi,{children:t.jsx(E,{clickable:!1,icon:"circle",iconSize:"xxs"})}):void 0]})})},Ne=({state:e,...n})=>{const{locale:i}=l.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{weekDays:o}=l.$e3031d1f8c9d64eb$export$cb95147730a423f5(n,e),r=l.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654(e.visibleRange.start,i);return t.jsxs("table",{children:[t.jsx("thead",{children:t.jsx(xt,{children:o.map((a,c)=>{const s=`key_${c}`;return t.jsx(Yi,{children:a},s)})})}),t.jsx("tbody",{children:[...new Array(r).keys()].map(a=>t.jsx(xt,{children:e.getDatesInWeek(a).map((c,s)=>{const d=`key_${s}`;return c?t.jsx(Dt,{date:c,state:e},d):t.jsx("td",{},d)})},a))})]})},qi=l.st(Ke)`
|
|
1086
1086
|
align-items: center;
|
|
1087
1087
|
background-color: inherit;
|
|
1088
1088
|
border-color: inherit;
|
|
@@ -1180,7 +1180,7 @@
|
|
|
1180
1180
|
font-weight: ${e.typography.weight.bold};
|
|
1181
1181
|
}
|
|
1182
1182
|
`}
|
|
1183
|
-
`,Te=({disabled:e=!1,icon:n,props:i})=>{const o=x.useRef(null),{buttonProps:r}=l.$701a24aa0da5b062$export$ea18c227d4417cc3(i,o);return t.jsx(Qi,{...r,$disabled:e,$focus:!!r["aria-expanded"],$header:n==="calendar"||n==="calendar-clock",disabled:e,ref:o,type:"button",children:t.jsx(E,{icon:n,iconColor:
|
|
1183
|
+
`,Te=({disabled:e=!1,icon:n,props:i})=>{const o=x.useRef(null),{buttonProps:r}=l.$701a24aa0da5b062$export$ea18c227d4417cc3(i,o);return t.jsx(Qi,{...r,$disabled:e,$focus:!!r["aria-expanded"],$header:n==="calendar"||n==="calendar-clock",disabled:e,ref:o,type:"button",children:t.jsx(E,{icon:n,iconColor:F.palette.gray[e?400:700],iconSize:"xs",iconType:"fa-light"})})},De=({state:e,prevButtonProps:n,nextButtonProps:i,title:o})=>{const r=e.focusedDate,a=x.useCallback(()=>{e.setFocusedDate(r.add({years:1}))},[r,e]),c=x.useCallback(()=>{e.setFocusedDate(r.subtract({years:1}))},[r,e]);return t.jsxs("div",{className:"header flex items-start",children:[t.jsx(Te,{icon:"chevron-left",props:n}),t.jsxs(Vi,{children:[o,t.jsxs(Gi,{children:[t.jsx(ft,{"aria-label":"top",onClick:a,children:t.jsx(E,{icon:"caret-up",iconClass:"fa-sharp",iconSize:"xxss"})}),t.jsx(ft,{"aria-label":"bottom",onClick:c,children:t.jsx(E,{icon:"caret-down",iconClass:"fa-sharp",iconSize:"xxss"})})]})]}),t.jsx(Te,{icon:"chevron-right",props:i})]})},Lt=({onClose:e,props:n})=>{const{locale:i}=l.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),o=l.$131cf43a05231e1e$export$6d095e787d2b5e1f({...n,createCalendar:l.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:r,nextButtonProps:a,title:c}=l.$9942cad8a072a530$export$3ee915f8151bd4f1(n,o);return t.jsxs("div",{className:"calendar",children:[t.jsx(De,{nextButtonProps:a,prevButtonProps:r,state:o,title:c}),t.jsx(Ne,{state:o}),t.jsx(et,{children:t.jsx(P,{onClick:e,variant:"ghost",children:"Cancel"})})]})},At=({segment:e,state:n})=>{const i=l.Je(),o=x.useRef(null),a={...e,placeholder:{day:"dd",dayPeriod:"(AM/PM)",era:"",hour:"hh",literal:"",minute:"mm",month:"mm",second:"",timeZoneName:"",year:"yyyy"}[e.type]},{segmentProps:c}=l.$32489daedd52963e$export$1315d136e6f7581(a,n,o),s=i.palette.gray[a.isEditable?800:500];return t.jsx("div",{...a.type!=="literal"&&{...c,className:"segment-cell"},ref:o,style:a.type==="literal"?void 0:{color:a.isPlaceholder?i.palette.gray[400]:s},children:a.isPlaceholder?a.placeholder:a.text})},Pt=({disabled:e,error:n=!1,props:i})=>{const o=l.Je(),r=x.useRef(null),a=l.$3c0fc76039f1c516$export$60e84778edff6d26({...i,createCalendar:l.$64244302c3013299$export$dd0bbc9b26defe37,locale:"en-US"}),{fieldProps:c}=l.$16f0b7bb276bc17e$export$5591b0b878c1a989(i,a,r),s=x.useCallback(d=>{const p=document.getElementsByClassName("segment-cell"),g=d.currentTarget;Object.values(p).some(u=>u.contains(g))||(d.preventDefault(),d.stopPropagation())},[]);return t.jsxs(eo,{...c,onClick:s,children:[t.jsx("div",{className:"flex flex-row",style:{color:o.palette.gray[l.lodashExports.isNil(a.value)?400:800]},tabIndex:-1,children:a.segments.map((d,p)=>{const g=`key_${p}`;return t.jsx(At,{segment:{...d,isEditable:!e},state:a},g)})}),n?t.jsx(E,{icon:"exclamation-circle",iconColor:o.palette.error[500],iconSize:"xs"}):void 0]})},Mt=e=>{const n=x.useRef(null),i=l.$eff5d8ee529ac4bb$export$fd53cef0cc796101({...e,locale:"en-US",shouldForceLeadingZeros:!0}),{timeValue:o}=i,r=!l.lodashExports.isNil(o)&&o.hour<12?"AM":"PM",[a,c]=x.useState(l.lodashExports.isNil(o)?"AM":r),{fieldProps:s}=l.$16f0b7bb276bc17e$export$4c842f6a241dc825(e,i,n),d=x.useCallback(p=>{const g=p.currentTarget.name;g!==a&&(l.lodashExports.isNil(o)||(g==="AM"?i.setSegment("dayPeriod",0):g==="PM"&&i.setSegment("dayPeriod",12))),c(g)},[a,i,o]);return t.jsxs(to,{children:[t.jsx(ht,{...s,ref:n,children:i.segments.slice(0,-2).map((p,g)=>{const u=`key_${g}`;return t.jsx(At,{segment:p,state:i},u)})}),t.jsxs(ht,{children:[t.jsx(bt,{id:a==="AM"?"active":"",name:"AM",onClick:d,type:"button",children:"AM"}),t.jsx(bt,{id:a==="PM"?"active":"",name:"PM",onClick:d,type:"button",children:"PM"})]})]})},Ee=e=>e&&e!=="-"?l.dayjs(e).format("YYYY-MM-DD"):"-",no=e=>e&&e!=="-"?l.dayjs(e).format("YYYY-MM-DD hh:mm A"):"-",yt=(e,n)=>l.dayjs(String(e).replace(/-/gu,"/")).hour(n.hour).minute(n.minute).second(n.second).format("YYYY/MM/DD hh:mm A"),xe=({error:e,buttonProps:n,datePickerRef:i,disabled:o=!1,granularity:r="day",fieldProps:a,groupProps:c,name:s,register:d,required:p,setValue:g,value:u})=>{const f=x.useCallback(h=>{if(!h)return;const b=r==="day"?Ee(String(h)):no(String(h));a.onChange&&a.onChange(h??null),g&&g(s,b,{shouldDirty:!0})},[a,r,s,g]);return t.jsxs(te,{...c,className:`${o?"disabled":""} ${e?"error":""}`,ref:i,children:[t.jsx(Pt,{disabled:o,error:e!=null,props:{...a,autoFocus:!1,granularity:r,onChange:f,shouldForceLeadingZeros:!0}}),t.jsx(Te,{disabled:o,icon:r==="minute"?"calendar-clock":"calendar",props:n}),t.jsx("input",{...d==null?void 0:d(s,{required:p}),"aria-label":s,className:"date-input",disabled:o,id:s,name:s,type:"text",value:u??""})]})},Le=({children:e,...n})=>{const i=x.useRef(null),{dialogProps:o}=l.$40df3f8667284809$export$d55e7ee900f34e93(n,i);return t.jsx(Xi,{...o,ref:i,children:e})},Ot=({disabled:e=!1,error:n,helpLink:i,helpLinkText:o,helpText:r,required:a,label:c,name:s,register:d,setValue:p,tooltip:g,watch:u,...f})=>{const h=x.useRef(null),b=u==null?void 0:u(s),$=x.useCallback(R=>{p&&R&&p(s,Ee(String(R)),{shouldDirty:!0})},[s,p]),m=l.$ab5bf3f618090389$export$87194bb378cc3ac2({...f,onChange(R){$(R)},...!l._.isNil(b)&&!l._.isEmpty(b)&&l.dayjs(b).isValid()?{defaultValue:l.$fae977aafc393c5c$export$6b862160d295c8e(b.replace(/\//gu,"-"))}:{}}),{close:j}=m,{groupProps:w,fieldProps:v,buttonProps:k,dialogProps:C,calendarProps:I}=l.$6057a3d2a53a12fd$export$42df105a73306d51({...f,"aria-label":c??s,name:s},m,h);return t.jsxs(J,{error:n,helpLink:i,helpLinkText:o,helpText:r,htmlFor:s,label:c,required:a,tooltip:g,children:[t.jsx(xe,{buttonProps:k,datePickerRef:h,disabled:e,error:n,fieldProps:v,groupProps:w,name:s,register:d,required:a,setValue:p,value:b}),m.isOpen&&!e?t.jsx(Ce,{offset:8,placement:"bottom start",state:m,triggerRef:h,children:t.jsx(Le,{...C,children:t.jsx(Lt,{onClose:j,props:I})})}):null]})},Wt=({onClose:e,props:n})=>{const{locale:i}=l.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),o=x.useRef(null),r=l.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90({...n,createCalendar:l.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:a,nextButtonProps:c,title:s}=l.$46a4342aab3d8076$export$87e0539f600c24e5(n,r,o);return t.jsxs("div",{className:"calendar-range",ref:o,children:[t.jsx(De,{nextButtonProps:c,prevButtonProps:a,state:r,title:s}),t.jsx(Ne,{state:r}),t.jsx(et,{children:t.jsx(P,{onClick:e,variant:"ghost",children:"Cancel"})})]})},io=l.st.div`
|
|
1184
1184
|
${({theme:e,$disabled:n,$show:i})=>`
|
|
1185
1185
|
border-color: ${i?e.palette.error[500]:e.palette.gray[300]};
|
|
1186
1186
|
display: flex;
|
|
@@ -1206,7 +1206,7 @@
|
|
|
1206
1206
|
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1207
1207
|
justify-content: flex-end;
|
|
1208
1208
|
flex: 1 0 0;
|
|
1209
|
-
`,Bt=({handleTimeChange:e,onClose:n,props:i,timeState:o})=>{const r=l.Je(),{locale:a}=l.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),c=l.$131cf43a05231e1e$export$6d095e787d2b5e1f({...i,createCalendar:l.$64244302c3013299$export$dd0bbc9b26defe37,locale:a}),{prevButtonProps:s,nextButtonProps:d,title:p}=l.$9942cad8a072a530$export$3ee915f8151bd4f1(i,c);return t.jsxs("div",{className:"calendar",children:[t.jsx(De,{nextButtonProps:d,prevButtonProps:s,state:c,title:p}),t.jsx(
|
|
1209
|
+
`,Bt=({handleTimeChange:e,onClose:n,props:i,timeState:o})=>{const r=l.Je(),{locale:a}=l.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),c=l.$131cf43a05231e1e$export$6d095e787d2b5e1f({...i,createCalendar:l.$64244302c3013299$export$dd0bbc9b26defe37,locale:a}),{prevButtonProps:s,nextButtonProps:d,title:p}=l.$9942cad8a072a530$export$3ee915f8151bd4f1(i,c);return t.jsxs("div",{className:"calendar",children:[t.jsx(De,{nextButtonProps:d,prevButtonProps:s,state:c,title:p}),t.jsx(Ne,{state:c}),t.jsxs(oo,{children:[t.jsx(z,{color:r.palette.gray[800],fontWeight:"bold",size:"sm",children:"Time"}),t.jsx(ro,{children:t.jsx(Mt,{hourCycle:12,label:"time-field",onChange:e,value:o.timeValue})})]}),t.jsx(et,{children:t.jsx(P,{onClick:n,variant:"ghost",children:"Cancel"})})]})},ao=e=>{const{disabled:n=!1,error:i,required:o,label:r,name:a,tooltip:c,register:s,setValue:d,watch:p}=e,g=p==null?void 0:p(a),u=x.useRef(null),f=l.$ab5bf3f618090389$export$87194bb378cc3ac2({...e,granularity:"minute",hourCycle:12,isDisabled:n,isRequired:o,shouldCloseOnSelect:!1,value:l._.isNil(g)||l._.isEmpty(g)||g==="-"||l.dayjs(g,"YYYY/MM/DD hh:mm A").isValid()===!1?null:l.$fae977aafc393c5c$export$588937bcd60ade55(l.dayjs(g,"YYYY/MM/DD hh:mm A").format("YYYY-MM-DDTHH:mm:ss"))}),{close:h}=f,{groupProps:b,fieldProps:$,buttonProps:m,dialogProps:j,calendarProps:w}=l.$6057a3d2a53a12fd$export$42df105a73306d51(e,f,u),v=x.useCallback(C=>{if(w.onChange&&w.onChange(C),f.timeValue){const I=yt(C,f.timeValue);d==null||d(a,I,{shouldDirty:!0})}else f.setDateValue(C)},[w,a,d,f]),k=x.useCallback(C=>{if(C){f.setTimeValue(C);const I=f.dateValue;if(I){const R=yt(I,C);d==null||d(a,R,{shouldDirty:!0})}}},[f,d,a]);return t.jsxs(J,{error:i,htmlFor:a,label:r,required:o,tooltip:c,children:[t.jsx(xe,{buttonProps:m,datePickerRef:u,disabled:n,error:i,fieldProps:$,granularity:"minute",groupProps:b,name:a,register:s,setValue:d,value:g}),f.isOpen&&!n?t.jsx(Ce,{offset:8,placement:"bottom start",state:f,triggerRef:u,children:t.jsx(Le,{...j,children:t.jsx(Bt,{handleTimeChange:k,onClose:h,props:{...w,onChange:v},timeState:f})})}):null]})},so=({children:e,currentValue:n,externalLink:i,isEditing:o,label:r,name:a,tooltip:c})=>{if(o)return t.jsx("div",{children:e});const s=l.lodashExports.isNil(n)?"":n,d=String(i??s);return t.jsxs(y,{children:[t.jsx(Xe,{htmlFor:a,label:r,tooltip:c,weight:"bold"}),d.startsWith("https://")?t.jsx(Z,{href:d,children:s}):t.jsx(z,{size:"md",children:s})]})},Ae=({disabled:e=!1,hasIcon:n=!1,helpLink:i,helpLinkText:o,helpText:r,error:a,id:c,indexArray:s=0,isValid:d,isTouched:p,label:g,linkPosition:u,name:f,maskValue:h=!1,onPaste:b,placeholder:$,removeItemArray:m,register:j,suggestions:w,tooltip:v,type:k="text",weight:C,...I})=>{const{required:R,onBlur:S,onChange:D}=I,T=l.Je(),L=e?void 0:a,[Y,X]=x.useState(""),ie=x.useCallback(W=>{X(W.target.value),D==null||D(W)},[D]),O=d&&p&&!e&&Y.trim()!=="",H=x.useCallback(W=>{W.key==="Enter"&&W.preventDefault()},[]);return t.jsxs(J,{error:L,helpLink:i,helpLinkText:o,helpText:r,htmlFor:f,label:g,linkPosition:u,required:R,tooltip:v,weight:C,children:[t.jsxs(te,{className:`
|
|
1210
1210
|
${e?"disabled":""} ${L?"error":""} ${O?"success":""}
|
|
1211
1211
|
`,children:[n?t.jsx(E,{icon:"user",iconSize:"sm",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":L?"true":"false","aria-label":f,"aria-required":R,autoComplete:"off",className:h?"sr-block":"","data-testid":`${f}-input`,disabled:e,id:f,list:w?`list_${f}`:void 0,onKeyDown:H,onPaste:b,placeholder:$,type:k,...j?j(f,{required:R,onBlur:S,onChange:ie}):{...I,onChange:ie}}),L?t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:T.palette.error[500],iconSize:"xs"}):void 0,O?t.jsx(E,{icon:"check-circle",iconClass:"success-icon",iconColor:T.palette.success[500],iconSize:"xs"}):void 0,c==="array"&&s>0?t.jsx(M,{color:T.palette.gray[400],icon:"trash",iconSize:"xxs",iconType:"fa-light",onClick:m?m(s):void 0,variant:"ghost"}):void 0]}),w?t.jsx("datalist",{id:`list_${f}`,children:w.map(W=>t.jsx("option",{value:W},W))}):void 0]})},lo=l.st.div.attrs({className:"flex flex-wrap justify-center pv3 w-100"})``,co=l.st.div.attrs({className:"flex flex-wrap items-center justify-start mb2"})`
|
|
1212
1212
|
gap: 12px;
|
|
@@ -1377,13 +1377,13 @@
|
|
|
1377
1377
|
white-space: nowrap;
|
|
1378
1378
|
`,Io=({disabled:e,error:n,label:i,name:o,placeholder:r,required:a,register:c,tooltip:s,value:d,watch:p,weight:g})=>{const u=l.Je(),f=x.useRef(null),h=e?void 0:n,b=(p==null?void 0:p(o))??d,[$,m]=x.useState(!1),[j,w]=x.useState(""),{refs:v,floatingStyles:k}=l.useFloating$1({placement:"bottom-start",whileElementsMounted:l.autoUpdate}),{inputRef:C,inputValue:I,handlePhoneValueChange:R,country:S,setCountry:D}=l.ee({countries:l.R,defaultCountry:"co",forceDialCode:!0,value:b?String(b):""}),T=x.useCallback(O=>{O.key==="Enter"&&O.preventDefault()},[]),L=x.useCallback(O=>{O.preventDefault(),m(H=>!H),$||w("")},[$]),Y=x.useCallback(O=>()=>{D(O),m(!1),w("")},[D,m]),X=x.useCallback(O=>{O.key.length===1?w(H=>H+O.key):O.key==="Backspace"&&w(H=>H.slice(0,-1))},[]),ie=l.R.filter(O=>{const{name:H}=l.M(O);return H.toLowerCase().includes(j.toLowerCase())});return ne(v.floating.current,()=>{m(!1),w("")},!0),t.jsx(J,{error:h,htmlFor:o,label:i,required:a,tooltip:s,weight:g,children:t.jsxs(vo,{className:`${e?"disabled":""} ${h?"error":""}`,ref:f,children:[t.jsxs(ko,{"aria-label":"country-selector","data-testid":"country-selector",disabled:e,id:"country-selector",onClick:L,onKeyDown:X,ref:v.setReference,children:[t.jsx(l.q,{iso2:S.iso2,size:"16px"}),t.jsx(E,{icon:"angle-down",iconColor:u.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(te,{className:`${e?"disabled":""} ${h?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":h?"true":"false","aria-label":o,"aria-required":a,autoComplete:"off","data-testid":`${o}-input`,disabled:e,id:o,name:o,onKeyDown:T,placeholder:r,ref:C,type:"tel",value:I,...c==null?void 0:c(o,{required:a,onChange:R})}),h?t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:u.palette.error[500],iconSize:"xs"}):void 0]}),$&&se.createPortal(t.jsx(Co,{ref:v.setFloating,style:k,children:ie.map(O=>{const{dialCode:H,iso2:W,name:le}=l.M(O);return t.jsxs(So,{onClick:Y(W),value:W,children:[t.jsx(l.q,{iso2:W,size:"16px"}),t.jsx(zo,{children:le}),t.jsx(z,{color:u.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+H})]},W)})}),document.getElementById("modal-wrapper")??document.getElementById("root")??document.body)]})})},To=({disabled:e=!1,error:n,helpLink:i,helpText:o,isTouched:r,isValid:a,label:c,name:s="input-text",id:d,maskValue:p=!1,maxLength:g,onBlur:u,placeholder:f,register:h,required:b,rows:$,tooltip:m,watch:j,weight:w,value:v})=>{const k=l.Je(),C=(j==null?void 0:j(s))??v,I=a&&r&&!e,R=e?void 0:n;return t.jsx(J,{error:R,helpLink:i,helpText:o,htmlFor:s,label:c,maxLength:g,required:b,tooltip:m,value:C?String(C):void 0,weight:w,children:t.jsxs(te,{className:`
|
|
1379
1379
|
${e?"disabled":""} ${R?"error":""} ${I?"success":""}
|
|
1380
|
-
`,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":R?"true":"false","aria-label":s,"aria-required":b,className:p?"sr-block":"","data-testid":`${s}-text-area`,disabled:e,id:d??s,maxLength:g,placeholder:f,rows:$,value:C,...h==null?void 0:h(s,{required:b,onBlur:u})}),R?t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:k.palette.error[500],iconSize:"xs"}):void 0,I?t.jsx(E,{icon:"check-circle",iconClass:"success-icon",iconColor:k.palette.success[500],iconSize:"xs"}):void 0]})})},Eo=({control:e,description:n,disabled:i,id:o,items:r,align:a,inputType:c="text",inputNumberProps:s,minHeight:d,minWidth:p,name:g,placeholder:u,textAlign:f,tooltip:h,title:b,value:$,isTouched:m,isValid:j,error:w,onChange:v,register:k,setValue:C,watch:I})=>{const R=x.useMemo(()=>{if(c==="text")return t.jsx(Ae,{disabled:i,error:w,isTouched:m,isValid:j,name:g,placeholder:u,register:k});if(c==="date")return t.jsx(Ot,{disabled:i,error:w,name:g,register:k,setValue:C,watch:I});if(c==="select"&&r)return t.jsx(Qe,{control:e,disabled:i,items:r,name:g,placeholder:u,value:$});const{decimalPlaces:S,max:D,min:T}=s??{};return t.jsx(Jt,{decimalPlaces:S,disabled:i,error:w,max:D,min:T,name:g,onChange:v,placeholder:u,register:k,setValue:C,value:$,watch:I})},[e,i,w,s,c,m,j,r,g,v,u,k,C,$,I]);return t.jsxs(Hi,{$align:a,$minHeight:d,$minWidth:p,children:[t.jsx(
|
|
1380
|
+
`,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":R?"true":"false","aria-label":s,"aria-required":b,className:p?"sr-block":"","data-testid":`${s}-text-area`,disabled:e,id:d??s,maxLength:g,placeholder:f,rows:$,value:C,...h==null?void 0:h(s,{required:b,onBlur:u})}),R?t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:k.palette.error[500],iconSize:"xs"}):void 0,I?t.jsx(E,{icon:"check-circle",iconClass:"success-icon",iconColor:k.palette.success[500],iconSize:"xs"}):void 0]})})},Eo=({control:e,description:n,disabled:i,id:o,items:r,align:a,inputType:c="text",inputNumberProps:s,minHeight:d,minWidth:p,name:g,placeholder:u,textAlign:f,tooltip:h,title:b,value:$,isTouched:m,isValid:j,error:w,onChange:v,register:k,setValue:C,watch:I})=>{const R=x.useMemo(()=>{if(c==="text")return t.jsx(Ae,{disabled:i,error:w,isTouched:m,isValid:j,name:g,placeholder:u,register:k});if(c==="date")return t.jsx(Ot,{disabled:i,error:w,name:g,register:k,setValue:C,watch:I});if(c==="select"&&r)return t.jsx(Qe,{control:e,disabled:i,items:r,name:g,placeholder:u,value:$});const{decimalPlaces:S,max:D,min:T}=s??{};return t.jsx(Jt,{decimalPlaces:S,disabled:i,error:w,max:D,min:T,name:g,onChange:v,placeholder:u,register:k,setValue:C,value:$,watch:I})},[e,i,w,s,c,m,j,r,g,v,u,k,C,$,I]);return t.jsxs(Hi,{$align:a,$minHeight:d,$minWidth:p,children:[t.jsx(Fe,{description:n,id:o,textAlign:f,title:b,tooltip:h}),R]})},Ro=l.st.div`
|
|
1381
1381
|
display: flex;
|
|
1382
1382
|
align-self: flex-start;
|
|
1383
1383
|
margin-left: auto;
|
|
1384
1384
|
width: 40px;
|
|
1385
1385
|
height: auto;
|
|
1386
|
-
`,Vt=(e,n)=>{const[o,r]=x.useState(0),[a,c]=x.useState(0);return x.useEffect(()=>{a===100&&(()=>{r(d=>d===n-1?0:d+1)})()},[a,n]),x.useEffect(()=>{const s=setInterval(()=>{c(d=>d===100?0:d+1)},e);return()=>{clearInterval(s)}},[e]),{cycle:o,progress:a,setCycle:r,setProgress:c}},Gt=({publicId:e,format:n="webp"})=>{const i=x.useMemo(()=>new l.Cloudinary({cloud:{cloudName:"fluid-attacks"}}),[]);return x.useMemo(()=>i.image(e).format(n),[i,e,n])},Se=e=>{const[n,i]=x.useState(!1),o=x.useCallback(()=>{i(!0)},[]),r=x.useCallback(()=>{i(!1)},[]),a=x.useCallback(()=>{i(c=>!c)},[]);return{close:r,isOpen:n,name:e,open:o,setIsOpen:i,toggle:a}},Yt=({name:e,items:n,columnOrder:i,setColumnOrder:o})=>{const r=x.useMemo(()=>[...n.filter(({locked:g})=>g).map(({locked:g,...u})=>({...u,visible:!0,locked:g})),...n.filter(({locked:g})=>!g)],[n]),[a,c]=x.useState(r),s=x.useCallback(g=>{const u=g.filter(({locked:$})=>!$),h=[...g.filter(({locked:$})=>$),...u],b=h.map(({name:$})=>$);c($=>[...h,...$.filter(({name:m})=>!b.includes(m))]),o&&o(h.map(({id:$})=>$))},[o]),d=x.useCallback(()=>{const g=a.map(u=>{var h;const f=(i==null?void 0:i.includes(u.id))??!1;return(h=u.toggleVisibility)==null||h.call(u,f),{...u,visible:f}}).toSorted((u,f)=>{const h=(i==null?void 0:i.indexOf(u.id))??0,b=(i==null?void 0:i.indexOf(f.id))??0;return Number(f.visible)!==Number(u.visible)?Number(f.visible)-Number(u.visible):h-b});c(g),o==null||o(i)},[a,i,o]),p=x.useMemo(()=>l.some(a,g=>((i==null?void 0:i.includes(g.id))??!1)!==g.visible),[a,i]);return{setColumns:s,resetToDefault:d,columns:a,...Se(e),hasChanged:p}},tt=(e,n)=>x.useMemo(()=>l._.debounce(e,n),[e,n]),
|
|
1386
|
+
`,Vt=(e,n)=>{const[o,r]=x.useState(0),[a,c]=x.useState(0);return x.useEffect(()=>{a===100&&(()=>{r(d=>d===n-1?0:d+1)})()},[a,n]),x.useEffect(()=>{const s=setInterval(()=>{c(d=>d===100?0:d+1)},e);return()=>{clearInterval(s)}},[e]),{cycle:o,progress:a,setCycle:r,setProgress:c}},Gt=({publicId:e,format:n="webp"})=>{const i=x.useMemo(()=>new l.Cloudinary({cloud:{cloudName:"fluid-attacks"}}),[]);return x.useMemo(()=>i.image(e).format(n),[i,e,n])},Se=e=>{const[n,i]=x.useState(!1),o=x.useCallback(()=>{i(!0)},[]),r=x.useCallback(()=>{i(!1)},[]),a=x.useCallback(()=>{i(c=>!c)},[]);return{close:r,isOpen:n,name:e,open:o,setIsOpen:i,toggle:a}},Yt=({name:e,items:n,columnOrder:i,setColumnOrder:o})=>{const r=x.useMemo(()=>[...n.filter(({locked:g})=>g).map(({locked:g,...u})=>({...u,visible:!0,locked:g})),...n.filter(({locked:g})=>!g)],[n]),[a,c]=x.useState(r),s=x.useCallback(g=>{const u=g.filter(({locked:$})=>!$),h=[...g.filter(({locked:$})=>$),...u],b=h.map(({name:$})=>$);c($=>[...h,...$.filter(({name:m})=>!b.includes(m))]),o&&o(h.map(({id:$})=>$))},[o]),d=x.useCallback(()=>{const g=a.map(u=>{var h;const f=(i==null?void 0:i.includes(u.id))??!1;return(h=u.toggleVisibility)==null||h.call(u,f),{...u,visible:f}}).toSorted((u,f)=>{const h=(i==null?void 0:i.indexOf(u.id))??0,b=(i==null?void 0:i.indexOf(f.id))??0;return Number(f.visible)!==Number(u.visible)?Number(f.visible)-Number(u.visible):h-b});c(g),o==null||o(i)},[a,i,o]),p=x.useMemo(()=>l.some(a,g=>((i==null?void 0:i.includes(g.id))??!1)!==g.visible),[a,i]);return{setColumns:s,resetToDefault:d,columns:a,...Se(e),hasChanged:p}},tt=(e,n)=>x.useMemo(()=>l._.debounce(e,n),[e,n]),Fo=e=>{const[n,i]=x.useState(),o=tt(r=>{i(r)},(e==null?void 0:e.debounceWait)??300);return[n,o]},No=({alt:e="img",height:n="",width:i="",plugins:o=[l.lazyload(),l.placeholder()],publicId:r})=>{const a=Gt({publicId:r});return t.jsx(l.AdvancedImage,{alt:e,cldImg:a,height:n,plugins:o,width:i})},ee=x.memo(No),Do=l.st.label`
|
|
1387
1387
|
${({theme:e})=>`
|
|
1388
1388
|
align-items: center;
|
|
1389
1389
|
display: flex;
|
|
@@ -1512,7 +1512,7 @@
|
|
|
1512
1512
|
background-color: ${({theme:e})=>e.palette.gray[200]};
|
|
1513
1513
|
border: 1px solid ${({theme:e})=>e.palette.gray[200]};
|
|
1514
1514
|
}
|
|
1515
|
-
`,Kt=x.forwardRef(function({defaultChecked:n,disabled:i=!1,justify:o,name:r,leftDescription:a,leftDescriptionMinWidth:c,rightDescription:s,onChange:d,...p},g){const u=n===!0?"on":"off",f=typeof a=="object"&&a.on&&a.off?a[u]:a,h=x.useCallback(b=>{b.stopPropagation()},[]);return t.jsxs(y,{alignItems:"center",display:"flex",fontSize:"14px",gap:.75,justify:o,children:[t.jsx(y,{minWidth:c,children:f}),t.jsxs(Mo,{onClick:h,role:"switch",children:[t.jsx("input",{...p,"aria-disabled":i,"aria-label":r,checked:n===!0,disabled:i,name:r,onChange:d,ref:g,type:"checkbox"}),t.jsx(de,{"aria-label":"Toggle Switch",id:`${r}Toggle`,children:t.jsx(Po,{})})]}),s]})}),Oo=({id:e,title:n,toggles:i,minWidth:o="auto",height:r="auto"})=>{const a=l.Je();return t.jsxs(y,{alignItems:"center",bgColor:a.palette.white,border:`1px solid ${a.palette.gray[200]}`,borderRadius:a.spacing[.25],display:"flex",flexDirection:"column",gap:.5,height:r,justify:"center",minHeight:"100px",minWidth:o,padding:[1.25,1.25,1.25,1.25],children:[t.jsx(
|
|
1515
|
+
`,Kt=x.forwardRef(function({defaultChecked:n,disabled:i=!1,justify:o,name:r,leftDescription:a,leftDescriptionMinWidth:c,rightDescription:s,onChange:d,...p},g){const u=n===!0?"on":"off",f=typeof a=="object"&&a.on&&a.off?a[u]:a,h=x.useCallback(b=>{b.stopPropagation()},[]);return t.jsxs(y,{alignItems:"center",display:"flex",fontSize:"14px",gap:.75,justify:o,children:[t.jsx(y,{minWidth:c,children:f}),t.jsxs(Mo,{onClick:h,role:"switch",children:[t.jsx("input",{...p,"aria-disabled":i,"aria-label":r,checked:n===!0,disabled:i,name:r,onChange:d,ref:g,type:"checkbox"}),t.jsx(de,{"aria-label":"Toggle Switch",id:`${r}Toggle`,children:t.jsx(Po,{})})]}),s]})}),Oo=({id:e,title:n,toggles:i,minWidth:o="auto",height:r="auto"})=>{const a=l.Je();return t.jsxs(y,{alignItems:"center",bgColor:a.palette.white,border:`1px solid ${a.palette.gray[200]}`,borderRadius:a.spacing[.25],display:"flex",flexDirection:"column",gap:.5,height:r,justify:"center",minHeight:"100px",minWidth:o,padding:[1.25,1.25,1.25,1.25],children:[t.jsx(Fe,{id:e,title:n}),t.jsx(y,{display:"flex",flexDirection:"column",gap:.5,minHeight:"40px",width:"100%",children:i.map(c=>t.jsx(Kt,{...c},`$card-toggle-${c.name}`))})]})},Wo=l.st.div`
|
|
1516
1516
|
position: relative;
|
|
1517
1517
|
margin: auto;
|
|
1518
1518
|
overflow: hidden;
|
|
@@ -1799,7 +1799,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
|
|
|
1799
1799
|
font-size: 6px;
|
|
1800
1800
|
font-weight: ${({theme:e})=>e.typography.weight.bold};
|
|
1801
1801
|
justify-content: center;
|
|
1802
|
-
`,nn=x.forwardRef(function({numberIndicator:n,show:i,variant:o="error",...r},a){return t.jsx(nr,{$variant:o,className:i?"flex":"hidden","data-testid":"notification-sign",ref:a,...r,children:n&&t.jsx(ir,{children:n<=9?n:9})})}),on=({end:e=!1,label:n,id:i,isActive:o=!1,link:r,notificationSign:a,onClick:c,tooltip:s="",variant:d="primary",tag:p})=>{const{pathname:g}=Oe.useLocation(),u=o||(d==="primary"?g.includes(r):g.endsWith(r));return t.jsx(U,{display:"flex",id:`${i}-tooltip`,tip:s,children:t.jsxs(tr,{$borderButton:u,$variant:d,children:[t.jsxs(Oe.NavLink,{end:e,id:i,onClick:c,to:r,children:[n,t.jsx(nn,{left:a==null?void 0:a.left,numberIndicator:a==null?void 0:a.numberIndicator,show:a==null?void 0:a.show,top:a==null?void 0:a.top,variant:a==null?void 0:a.variant})]}),p===void 0?null:t.jsx(G,{tagLabel:`${p}`,variant:"default"})]})})},ot=({items:e,borders:n=!0,box:i=!1,variant:o="primary"})=>{const r=l.Je();return t.jsx(y,{alignItems:"center",bgColor:r.palette.white,border:i?"1px solid":void 0,borderBottom:n?`1px solid ${r.palette.gray[300]}`:void 0,borderColor:i?r.palette.gray[200]:void 0,borderRadius:i?r.spacing[.25]:void 0,display:"inline-flex",gap:.25,id:"tablist",padding:i?[0,0,0,0]:void 0,pl:n?1.25:void 0,pr:n?1.25:void 0,role:"tablist",width:i?"max-content":"100%",children:e.map(({end:a,id:c,isActive:s,link:d,label:p,notificationSign:g,onClick:u,tag:f,tooltip:h})=>t.jsx(on,{end:a,id:c,isActive:s,label:p,link:d,notificationSign:g,onClick:u,tag:f,tooltip:h,variant:o},c))})},re=x.forwardRef(function({color:n=
|
|
1802
|
+
`,nn=x.forwardRef(function({numberIndicator:n,show:i,variant:o="error",...r},a){return t.jsx(nr,{$variant:o,className:i?"flex":"hidden","data-testid":"notification-sign",ref:a,...r,children:n&&t.jsx(ir,{children:n<=9?n:9})})}),on=({end:e=!1,label:n,id:i,isActive:o=!1,link:r,notificationSign:a,onClick:c,tooltip:s="",variant:d="primary",tag:p})=>{const{pathname:g}=Oe.useLocation(),u=o||(d==="primary"?g.includes(r):g.endsWith(r));return t.jsx(U,{display:"flex",id:`${i}-tooltip`,tip:s,children:t.jsxs(tr,{$borderButton:u,$variant:d,children:[t.jsxs(Oe.NavLink,{end:e,id:i,onClick:c,to:r,children:[n,t.jsx(nn,{left:a==null?void 0:a.left,numberIndicator:a==null?void 0:a.numberIndicator,show:a==null?void 0:a.show,top:a==null?void 0:a.top,variant:a==null?void 0:a.variant})]}),p===void 0?null:t.jsx(G,{tagLabel:`${p}`,variant:"default"})]})})},ot=({items:e,borders:n=!0,box:i=!1,variant:o="primary"})=>{const r=l.Je();return t.jsx(y,{alignItems:"center",bgColor:r.palette.white,border:i?"1px solid":void 0,borderBottom:n?`1px solid ${r.palette.gray[300]}`:void 0,borderColor:i?r.palette.gray[200]:void 0,borderRadius:i?r.spacing[.25]:void 0,display:"inline-flex",gap:.25,id:"tablist",padding:i?[0,0,0,0]:void 0,pl:n?1.25:void 0,pr:n?1.25:void 0,role:"tablist",width:i?"max-content":"100%",children:e.map(({end:a,id:c,isActive:s,link:d,label:p,notificationSign:g,onClick:u,tag:f,tooltip:h})=>t.jsx(on,{end:a,id:c,isActive:s,label:p,link:d,notificationSign:g,onClick:u,tag:f,tooltip:h,variant:o},c))})},re=x.forwardRef(function({color:n=F.palette.gray[100],mt:i=.5,mb:o=.5,width:r,...a},c){return t.jsx(y,{as:"hr",borderTop:`1px solid ${n}`,mb:o,mt:i,ref:c,width:r??"100%",...a})}),or=l.st.li`
|
|
1803
1803
|
${({theme:e})=>`
|
|
1804
1804
|
align-items: center;
|
|
1805
1805
|
background-color: ${e.palette.white};
|
|
@@ -2024,7 +2024,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
|
|
|
2024
2024
|
> img {
|
|
2025
2025
|
width: 100%;
|
|
2026
2026
|
}
|
|
2027
|
-
`,
|
|
2027
|
+
`,Fr=l.st.div`
|
|
2028
2028
|
display: flex;
|
|
2029
2029
|
flex-direction: row;
|
|
2030
2030
|
margin: 0;
|
|
@@ -2037,7 +2037,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
|
|
|
2037
2037
|
> *:last-child {
|
|
2038
2038
|
margin-right: 0;
|
|
2039
2039
|
}
|
|
2040
|
-
`,wt={md:{description:"md",title:"md"},sm:{description:"sm",title:"xs"}},
|
|
2040
|
+
`,wt={md:{description:"md",title:"md"},sm:{description:"sm",title:"xs"}},Nr=({cancelButton:e=void 0,confirmButton:n=void 0,description:i,imageSrc:o="integrates/empty/addRoot",padding:r=1.25,title:a,size:c="md"})=>{const s=(n??e)!==void 0;return t.jsxs(Er,{$padding:r,children:[t.jsx(Rr,{children:t.jsx(ee,{alt:"empty-icon",publicId:o})}),t.jsx(V,{fontWeight:"bold",lineSpacing:1.75,mb:.25,size:wt[c].title,textAlign:"center",children:a}),t.jsx(z,{mb:s?2:void 0,size:wt[c].description,textAlign:"center",children:i}),s?t.jsxs(Fr,{children:[e&&t.jsx(Ve,{buttonProps:e,variant:"tertiary"}),n&&t.jsx(Ve,{buttonProps:n,variant:"primary"})]}):void 0]})},Dr=({children:e})=>{const n=l.useFormContext();return e({...n})},Lr=l.st.form`
|
|
2041
2041
|
${({theme:e})=>`
|
|
2042
2042
|
align-items: flex-start;
|
|
2043
2043
|
align-self: stretch;
|
|
@@ -2178,11 +2178,11 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
|
|
|
2178
2178
|
padding: 0;
|
|
2179
2179
|
|
|
2180
2180
|
&:hover p {
|
|
2181
|
-
color: ${
|
|
2181
|
+
color: ${F.palette.primary[200]};
|
|
2182
2182
|
}
|
|
2183
2183
|
|
|
2184
2184
|
&:hover span {
|
|
2185
|
-
color: ${
|
|
2185
|
+
color: ${F.palette.primary[200]};
|
|
2186
2186
|
}
|
|
2187
2187
|
`,oa=({message:e,onClickButton:n,buttonText:i,buttonFontWeight:o="regular",show:r=!0,icon:a,onClose:c,buttonSide:s="end"})=>{const d=l.Je(),[p,g]=x.useState(r),u=x.useCallback(()=>{g(!1),c==null||c()},[c]);x.useEffect(()=>{g(r)},[r,g]);const f=t.jsxs(ia,{onClick:n,children:[t.jsx(z,{color:d.palette.white,fontWeight:o,size:"sm",textDecoration:"underline",children:i}),t.jsx(E,{icon:a??"arrow-right",iconColor:d.palette.white,iconSize:"xs",iconType:o==="bold"?"fa-regular":"fa-light"})]});return t.jsxs(y,{alignItems:"center",bgGradient:d.palette.gradients["01"],display:p?"flex":"none",id:"message-banner",justify:"space-between",padding:[.75,.75,.75,.75],children:[t.jsxs(y,{display:"flex",gap:.5,justify:"center",width:"100%",children:[s==="start"&&n?f:void 0,t.jsx(y,{children:typeof e=="string"?t.jsx(z,{color:d.palette.white,display:"inline",size:"sm",children:e}):e}),s==="end"&&n?f:void 0]}),t.jsx(E,{clickable:!0,hoverColor:d.palette.primary[200],icon:"close",iconColor:d.palette.white,iconSize:"xs",iconType:"fa-light",onClick:u})]})},ra=l.st.div`
|
|
2188
2188
|
${({theme:e,$variant:n})=>`
|
|
@@ -2399,7 +2399,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
|
|
|
2399
2399
|
right: ${({right:e})=>e??"unset"};
|
|
2400
2400
|
z-index: ${({zIndex:e})=>e??"unset"};
|
|
2401
2401
|
left: ${({left:e})=>e??"unset"};
|
|
2402
|
-
`,Ia=({scrollerId:e="dashboard",left:n,visibleAt:i=500,bottom:o,right:r,zIndex:a=100})=>{const[c,s]=x.useState(!1),[d,p]=x.useState(null),g=l.Je();x.useEffect(()=>{p(document.getElementById(e)),d==null||d.addEventListener("scroll",()=>{s(d.scrollTop>i)})},[d,e,i]);const u=x.useCallback(()=>{d==null||d.scrollTo({behavior:"smooth",top:0})},[d]);return c?t.jsx(za,{bottom:o,left:n,right:r,zIndex:a,children:t.jsx(M,{borderRadius:"50%",height:"40px",icon:"arrow-up",iconSize:"sm",id:"scroll-up",onClick:u,style:{backgroundColor:g.palette.black,borderRadius:"50%",color:g.palette.white},width:"40px"})}):null},Ta={critical:{bgColor:
|
|
2402
|
+
`,Ia=({scrollerId:e="dashboard",left:n,visibleAt:i=500,bottom:o,right:r,zIndex:a=100})=>{const[c,s]=x.useState(!1),[d,p]=x.useState(null),g=l.Je();x.useEffect(()=>{p(document.getElementById(e)),d==null||d.addEventListener("scroll",()=>{s(d.scrollTop>i)})},[d,e,i]);const u=x.useCallback(()=>{d==null||d.scrollTo({behavior:"smooth",top:0})},[d]);return c?t.jsx(za,{bottom:o,left:n,right:r,zIndex:a,children:t.jsx(M,{borderRadius:"50%",height:"40px",icon:"arrow-up",iconSize:"sm",id:"scroll-up",onClick:u,style:{backgroundColor:g.palette.black,borderRadius:"50%",color:g.palette.white},width:"40px"})}):null},Ta={critical:{bgColor:F.palette.primary[700],colorL:F.palette.gray[800],colorR:F.palette.white},disable:{bgColor:F.palette.gray[200],colorL:F.palette.gray[400],colorR:F.palette.gray[400]},high:{bgColor:F.palette.error[500],colorL:F.palette.gray[800],colorR:F.palette.white},low:{bgColor:F.palette.warning[200],colorL:F.palette.gray[800],colorR:F.palette.gray[800]},medium:{bgColor:F.palette.warning[500],colorL:F.palette.gray[800],colorR:F.palette.gray[800]}},Ea=({textL:e,textR:n,variant:i})=>{const o=l.Je(),{bgColor:r,colorL:a,colorR:c}=Ta[i];return t.jsxs(y,{alignItems:"flex-start",display:"inline-flex",children:[e?t.jsx(y,{alignItems:"center",bgColor:o.palette.white,border:`1px solid ${r}`,borderRadius:"4px 0px 0px 4px",display:"flex",justify:"center",padding:[0,.25,0,.25],children:t.jsx(z,{color:a,size:"xs",children:e})}):void 0,t.jsx(y,{alignItems:"center",bgColor:r,border:`1px solid ${r}`,borderRadius:e?"0px 4px 4px 0px":"4px",display:"flex",padding:e?[0,.25,0,.125]:[0,.25,0,.25],pb:.125,pl:.125,pr:.125,pt:.125,children:t.jsx(z,{color:c,size:"xs",children:n})})]})},Ra=(e,n)=>{const i={critical:F.palette.primary[700],high:F.palette.error[500],low:F.palette.warning[200],medium:F.palette.warning[500],none:F.palette.gray[200]},o={disabled:F.palette.gray[400],enabled:F.palette.gray[800]},r={critical:F.palette.white,high:F.palette.white,low:F.palette.gray[800],medium:F.palette.gray[800],none:F.palette.gray[400]};return{iconColor:n<1?i.none:i[e],iconText:l.lodashExports.capitalize(e.charAt(0)),iconTextColor:n<1?r.none:r[e],textColor:n<1?o.disabled:o.enabled}},ge=({variant:e,value:n})=>{const{iconColor:i,iconText:o,iconTextColor:r,textColor:a}=Ra(e,n),c=l.lodashExports.capitalize(e.charAt(0))+e.slice(1);return t.jsxs(y,{alignItems:"center",display:"inline-flex",gap:.5,minWidth:"43px",children:[t.jsx(U,{id:c,place:"top",tip:c,children:t.jsx(y,{alignItems:"center",bgColor:i,borderRadius:"4px",cursor:"pointer",display:"flex",height:"22px",maxWidth:"22px",minWidth:"22px",children:t.jsx(z,{color:r,size:"sm",textAlign:"center",children:o})})}),t.jsx(z,{color:a,size:"sm",children:n})]})},Fa=({critical:e,high:n,medium:i,low:o})=>t.jsxs(y,{alignItems:"center",display:"inline-flex",gap:1,children:[t.jsx(ge,{value:e,variant:"critical"}),t.jsx(ge,{value:n,variant:"high"}),t.jsx(ge,{value:i,variant:"medium"}),t.jsx(ge,{value:o,variant:"low"})]}),Na=l.st.div`
|
|
2403
2403
|
${({theme:e})=>`
|
|
2404
2404
|
border-radius: ${e.spacing[.25]};
|
|
2405
2405
|
cursor: pointer;
|
|
@@ -2417,7 +2417,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
|
|
|
2417
2417
|
display: block;
|
|
2418
2418
|
}
|
|
2419
2419
|
`}
|
|
2420
|
-
`,Da=({visibleElement:e,hiddenElement:n})=>t.jsxs(
|
|
2420
|
+
`,Da=({visibleElement:e,hiddenElement:n})=>t.jsxs(Na,{children:[e,t.jsx(y,{display:"none",position:"absolute",top:"100%",zIndex:10,children:n})]}),kn=({customBadge:e=void 0,description:n,icon:i,onClick:o,requiresUpgrade:r=!1,title:a})=>{const c=l.Je();return t.jsxs(y,{bgColor:c.palette.white,bgColorHover:c.palette.gray[100],cursor:"pointer",display:"flex",gap:.5,onClick:o,px:1.25,py:1,width:"100%",children:[t.jsx(y,{alignItems:"center",bgColor:c.palette.gray[300],borderRadius:c.spacing[.25],display:"flex",height:"24px",justify:"center",width:"24px",children:t.jsx(E,{icon:i,iconColor:c.palette.gray[800],iconSize:"xxs",ml:.5,mr:.5})}),t.jsxs(y,{children:[t.jsxs(y,{alignItems:"center",display:"inline-flex",gap:.5,children:[t.jsx(z,{color:c.palette.gray[800],size:"sm",children:a}),r?t.jsx($n,{text:"Upgrade"}):void 0,e]}),t.jsx(z,{color:c.palette.gray[400],size:"xs",children:n})]})]})},La=l.st(l.m.div)`
|
|
2421
2421
|
${({theme:e})=>`
|
|
2422
2422
|
background-color: ${e.palette.white};
|
|
2423
2423
|
box-shadow: ${e.shadows.lg};
|
|
@@ -2862,7 +2862,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
|
|
|
2862
2862
|
display: flex;
|
|
2863
2863
|
overflow-wrap: anywhere;
|
|
2864
2864
|
width: ${({$width:e})=>e}px;
|
|
2865
|
-
`,Tn=()=>{const e=l.Je(),{table:n}=x.useContext(q),{loading:i}=(n==null?void 0:n.options.meta)??{},o=x.useMemo(()=>{const{enableRowSelection:s,enableMultiRowSelection:d}=(n==null?void 0:n.options)??{};return s||d?1:0},[n==null?void 0:n.options]),r=x.useCallback((s,d)=>{if(d===o)return p=>{var g,u;p.stopPropagation(),(u=(g=n==null?void 0:n.options)==null?void 0:g.onRowClick)==null||u.call(g,s)}},[o,n]),a=x.useCallback(s=>d=>{d.stopPropagation(),s.toggleExpanded()},[]),c=x.useCallback(s=>{const{meta:d}=(n==null?void 0:n.options)??{},{onExpand:p=void 0}=d??{};return p?p(s):null},[n]);return i?t.jsx("tbody",{children:t.jsx("tr",{className:"row-loading","data-testid":"row-loading",children:t.jsx("td",{colSpan:(n==null?void 0:n.getVisibleLeafColumns().length)??0,children:t.jsx(y,{alignItems:"center",display:"flex",justify:"center",width:"100%",children:t.jsx(yn,{size:"md"})})})})}):(n==null?void 0:n.getRowModel().rows.length)===0?t.jsx("tbody",{children:t.jsx("tr",{className:"row-no-data","data-testid":"row-no-data",children:t.jsx("td",{colSpan:n.getVisibleLeafColumns().length+1,children:t.jsx(z,{color:e.palette.gray[800],size:"sm",textAlign:"center",children:"No data to display"})})})}):t.jsx("tbody",{children:n==null?void 0:n.getRowModel().rows.map(s=>t.jsxs(x.Fragment,{children:[t.jsx("tr",{"aria-expanded":s.getIsExpanded(),"data-testid":`row-${s.id}`,children:s.getVisibleCells().map((d,p)=>t.jsx("td",{className:p===o&&n.options.onRowClick?"clickable":"","data-testid":`cell-${d.id}`,onClick:r(s,p),children:t.jsxs(es,{$width:`${d.column.getSize()}`,children:[p===o&&s.getCanExpand()?t.jsx("button",{onClick:a(s),style:{cursor:"pointer",marginRight:"1rem"},children:t.jsx(E,{icon:s.getIsExpanded()?"angle-up":"angle-down",iconSize:"xs",iconType:"fa-light"})}):void 0,l.flexRender(d.column.columnDef.cell,d.getContext())]})},d.id))}),s.getIsExpanded()?t.jsx("tr",{"data-testid":`row-${s.id}-expand`,id:"description",children:t.jsx("td",{colSpan:100,children:c(s)})}):void 0]},s.id))})},En=()=>{const{containerRef:e,hidden:n,elementName:i,handleUnselectAll:o,onKeyDown:r,selected:a,tableSize:c,tableRef:s}=x.useContext(q);return t.jsxs("div",{ref:e,children:[n?void 0:t.jsx(Xa,{$width:c,children:t.jsxs("div",{children:[t.jsx("b",{children:`${a} ${i} `}),`${a===1?"has":"have"} been selected. `,t.jsx("span",{onClick:o,onKeyDown:r,role:"link",tabIndex:0,children:"Unselect all"})]})}),t.jsxs("table",{ref:s,children:[t.jsx(In,{}),t.jsx(Tn,{})]})]})},kt=l.st(M)`
|
|
2865
|
+
`,ts=50,Tn=()=>{const e=l.Je(),{table:n}=x.useContext(q),{loading:i}=(n==null?void 0:n.options.meta)??{},o=x.useMemo(()=>{const{enableRowSelection:s,enableMultiRowSelection:d}=(n==null?void 0:n.options)??{};return s||d?1:0},[n==null?void 0:n.options]),r=x.useCallback((s,d)=>{if(d===o)return p=>{var g,u;p.stopPropagation(),(u=(g=n==null?void 0:n.options)==null?void 0:g.onRowClick)==null||u.call(g,s)}},[o,n]),a=x.useCallback(s=>d=>{d.stopPropagation(),s.toggleExpanded()},[]),c=x.useCallback(s=>{const{meta:d}=(n==null?void 0:n.options)??{},{onExpand:p=void 0}=d??{};return p?p(s):null},[n]);return i?t.jsx("tbody",{children:t.jsx("tr",{className:"row-loading","data-testid":"row-loading",children:t.jsx("td",{colSpan:(n==null?void 0:n.getVisibleLeafColumns().length)??0,children:t.jsx(y,{alignItems:"center",display:"flex",justify:"center",width:"100%",children:t.jsx(yn,{size:"md"})})})})}):(n==null?void 0:n.getRowModel().rows.length)===0?t.jsx("tbody",{children:t.jsx("tr",{className:"row-no-data","data-testid":"row-no-data",children:t.jsx("td",{colSpan:n.getVisibleLeafColumns().length+1,children:t.jsx(z,{color:e.palette.gray[800],size:"sm",textAlign:"center",children:"No data to display"})})})}):t.jsx("tbody",{children:n==null?void 0:n.getRowModel().rows.map(s=>t.jsxs(x.Fragment,{children:[t.jsx("tr",{"aria-expanded":s.getIsExpanded(),"data-testid":`row-${s.id}`,children:s.getVisibleCells().map((d,p)=>t.jsx("td",{className:p===o&&n.options.onRowClick?"clickable":"","data-testid":`cell-${d.id}`,onClick:r(s,p),children:t.jsxs(es,{$width:`${d.column.getSize()+ts}`,children:[p===o&&s.getCanExpand()?t.jsx("button",{onClick:a(s),style:{cursor:"pointer",marginRight:"1rem"},children:t.jsx(E,{icon:s.getIsExpanded()?"angle-up":"angle-down",iconSize:"xs",iconType:"fa-light"})}):void 0,l.flexRender(d.column.columnDef.cell,d.getContext())]})},d.id))}),s.getIsExpanded()?t.jsx("tr",{"data-testid":`row-${s.id}-expand`,id:"description",children:t.jsx("td",{colSpan:100,children:c(s)})}):void 0]},s.id))})},En=()=>{const{containerRef:e,hidden:n,elementName:i,handleUnselectAll:o,onKeyDown:r,selected:a,tableSize:c,tableRef:s}=x.useContext(q);return t.jsxs("div",{ref:e,children:[n?void 0:t.jsx(Xa,{$width:c,children:t.jsxs("div",{children:[t.jsx("b",{children:`${a} ${i} `}),`${a===1?"has":"have"} been selected. `,t.jsx("span",{onClick:o,onKeyDown:r,role:"link",tabIndex:0,children:"Unselect all"})]})}),t.jsxs("table",{ref:s,children:[t.jsx(In,{}),t.jsx(Tn,{})]})]})},kt=l.st(M)`
|
|
2866
2866
|
${({theme:e,$padding:n})=>`
|
|
2867
2867
|
background-color: ${e.palette.white};
|
|
2868
2868
|
border: 1px solid ${e.palette.gray[200]};
|
|
@@ -2888,7 +2888,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
|
|
|
2888
2888
|
background-color: ${e.palette.gray[100]};
|
|
2889
2889
|
}
|
|
2890
2890
|
`}
|
|
2891
|
-
`,Rn=()=>{const{table:e}=x.useContext(q),{pagination:{pageIndex:n}={pageIndex:0}}=(e==null?void 0:e.getState())??{},i=(e==null?void 0:e.getPageCount())??0,o=x.useCallback(()=>{e==null||e.setPageIndex(n+1)},[n,e]),r=x.useCallback(()=>{e==null||e.previousPage()},[e]);return t.jsxs(y,{alignItems:"center",display:"flex",gap:.5,children:[t.jsx(kt,{$padding:"4px 6px",disabled:!(e!=null&&e.getCanPreviousPage()),icon:"chevron-left",iconSize:"xxs",id:"go-previous",onClick:r,variant:"ghost"}),t.jsx(kt,{$padding:"4px 6px",disabled:n>i-2,icon:"chevron-right",iconSize:"xxs",id:"go-next",onClick:o,variant:"ghost"})]})},
|
|
2891
|
+
`,Rn=()=>{const{table:e}=x.useContext(q),{pagination:{pageIndex:n}={pageIndex:0}}=(e==null?void 0:e.getState())??{},i=(e==null?void 0:e.getPageCount())??0,o=x.useCallback(()=>{e==null||e.setPageIndex(n+1)},[n,e]),r=x.useCallback(()=>{e==null||e.previousPage()},[e]);return t.jsxs(y,{alignItems:"center",display:"flex",gap:.5,children:[t.jsx(kt,{$padding:"4px 6px",disabled:!(e!=null&&e.getCanPreviousPage()),icon:"chevron-left",iconSize:"xxs",id:"go-previous",onClick:r,variant:"ghost"}),t.jsx(kt,{$padding:"4px 6px",disabled:n>i-2,icon:"chevron-right",iconSize:"xxs",id:"go-next",onClick:o,variant:"ghost"})]})},ns=10,is=20,os=50,rs=100,Fn=()=>{const e=l.Je(),{table:n}=x.useContext(q),i=(n==null?void 0:n.getRowCount())??0,[o,r]=x.useState(!1),[a,c]=x.useState((n==null?void 0:n.getState().pagination.pageSize)??10),{refs:s,floatingStyles:d}=l.useFloating$1({middleware:[l.offset({mainAxis:4})],open:o,placement:"top-end",whileElementsMounted:l.autoUpdate}),p=x.useMemo(()=>l.transform([ns,is,os,rs],(h,b)=>{(b<=i||h.length===0)&&h.push(b)},[]),[i]),g=x.useCallback(()=>{o&&r(!1)},[o]),u=x.useCallback(()=>{r(h=>!h)},[]),f=x.useCallback(h=>()=>{c(h),n==null||n.setPageSize(h),r(!1)},[n,c]);return ne(s.reference.current,()=>{r(!1)},!0,s.floating.current),x.useEffect(()=>(window.addEventListener("scrollend",g,!0),()=>{window.removeEventListener("scrollend",g,!0)}),[g]),t.jsxs(x.Fragment,{children:[t.jsxs(y,{alignItems:"center",bgColor:e.palette.white,border:"1px solid",borderColor:e.palette.gray[200],borderRadius:"4px",display:"flex",minHeight:"24px",px:.25,children:[t.jsx(z,{pr:.25,size:"sm",children:a}),t.jsx(M,{color:e.palette.gray[400],icon:o?"chevron-up":"chevron-down",iconSize:"xxs",id:"paginator-dropdown",onClick:u,ref:s.setReference,variant:"ghost"})]}),o?t.jsx(y,{bgColor:e.palette.white,border:`1px solid ${e.palette.gray[200]}`,borderRadius:e.spacing[.5],display:"flex",flexDirection:"column",px:.25,py:.25,ref:s.setFloating,shadow:"md",style:d,children:p.map(h=>{const b=f(h);return t.jsx(y,{bgColor:a===h?e.palette.gray[800]:"transparent",bgColorHover:e.palette.gray[a===h?800:100],borderRadius:e.spacing["0.25"],cursor:"pointer",maxWidth:"40px",minWidth:"40px",onClick:b,px:.25,py:.25,children:t.jsx(z,{color:a===h?e.palette.white:e.palette.gray[600],size:"sm",textAlign:"center",children:h})},h)})}):void 0]})},Nn=()=>{const{table:e}=x.useContext(q),{pagination:{pageIndex:n,pageSize:i}={pageIndex:0,pageSize:10}}=(e==null?void 0:e.getState())??{},o=(e==null?void 0:e.getRowCount())??0,r=x.useCallback((a,c,s)=>{if(s===0)return"0 of 0";if(c*a>=s)return`${s} of ${s}`;const d=c*a+1,p=Math.min(c*(a+1),s);return`${d}-${p} of ${s}`},[]);return t.jsx(z,{display:"inline-block",fontWeight:"bold",size:"sm",children:r(n,i,o)})},Dn=({children:e})=>t.jsxs(Qa,{children:[t.jsxs("div",{className:"pagination-container",children:[t.jsx(Nn,{}),t.jsx(Fn,{}),t.jsx(Rn,{})]}),e]}),Ln=({children:e})=>t.jsx("div",{className:"footer-container",children:e}),as=l.st.div.attrs({className:"search-container"})`
|
|
2892
2892
|
${({theme:e})=>`
|
|
2893
2893
|
display: flex;
|
|
2894
2894
|
flex-direction: column;
|
|
@@ -2935,7 +2935,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
|
|
|
2935
2935
|
}
|
|
2936
2936
|
}
|
|
2937
2937
|
`}
|
|
2938
|
-
`,
|
|
2938
|
+
`,ss=l.st.div.attrs({className:"controls-container"})`
|
|
2939
2939
|
display: flex;
|
|
2940
2940
|
flex: 1 0 50%;
|
|
2941
2941
|
|
|
@@ -2951,7 +2951,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
|
|
|
2951
2951
|
justify-content: flex-end;
|
|
2952
2952
|
width: 100%;
|
|
2953
2953
|
}
|
|
2954
|
-
`,
|
|
2954
|
+
`,ls=l.st.div`
|
|
2955
2955
|
display: flex;
|
|
2956
2956
|
flex-wrap: wrap;
|
|
2957
2957
|
width: 100%;
|
|
@@ -2966,7 +2966,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
|
|
|
2966
2966
|
.highlight-container ~ .controls-container {
|
|
2967
2967
|
flex: 1 0 100%;
|
|
2968
2968
|
}
|
|
2969
|
-
`,
|
|
2969
|
+
`,cs=500,An=({children:e})=>{const{table:n}=x.useContext(q),{onSearch:i,search:o,searchPlaceholder:r}=(n==null?void 0:n.options.meta)??{},a=x.useRef(null);x.useEffect(()=>{o===""&&(a.current.value="")},[o]);const c=tt(s=>{i==null||i(s.target.value)},cs);return t.jsxs(ls,{children:[i===void 0?void 0:t.jsx(as,{children:t.jsx(ae,{name:"search",onChange:c,placeholder:r,ref:a})}),e]})},Pn=({children:e})=>t.jsx(y,{display:"flex",flexDirection:"column",children:t.jsx("div",{className:"caption-container",children:e})}),Mn=({children:e})=>t.jsx(ss,{children:e}),On=({children:e})=>t.jsx("div",{className:"highlight-container",children:e}),ds=160,Wn=({children:e,table:n})=>{var f;const i=x.useRef(null),o=x.useRef(null),{id:r}=n.options.meta??{},{enableMultiRowSelection:a}=(n==null?void 0:n.options)??{},c=Object.keys(n.getState().rowSelection).length,s=c===1?"item":"items",d=c===0||!a,p=Math.max(((f=i.current)==null?void 0:f.clientWidth)??0,n.getTotalSize()+ds),g=x.useCallback(()=>{n.resetRowSelection()},[n]),u=x.useCallback(h=>{h.key==="Enter"&&g()},[g]);return x.useEffect(()=>{n.setPageIndex(0)},[n]),t.jsx(q.Provider,{value:{containerRef:i,elementName:s,handleUnselectAll:g,hidden:d,onKeyDown:u,selected:c,tableSize:p,tableRef:o,table:n},children:t.jsx(qa,{id:r,children:e})})},ps=Object.assign(Wn,{Caption:Pn,Columns:zn,Content:En,Controls:Mn,Export:Sn,Footer:Dn,FooterContent:Ln,Highlighted:On,Options:An}),gs=l.st.button`
|
|
2970
2970
|
${({theme:e})=>`
|
|
2971
2971
|
align-items: center;
|
|
2972
2972
|
background-color: ${e.palette.white};
|
|
@@ -3008,7 +3008,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
|
|
|
3008
3008
|
background-color: ${e.palette.gray[100]};
|
|
3009
3009
|
}
|
|
3010
3010
|
`}
|
|
3011
|
-
`,
|
|
3011
|
+
`,us={add:{icon:"plus"},approve:{icon:"check"},disabled:{icon:"ban"},reject:{icon:"xmark"},submit:{icon:"arrow-right"},success:{icon:"check"}},xs=({disabled:e=!1,icon:n,id:i,label:o,name:r,onClick:a,type:c="button",variant:s})=>{const d=l.Je(),p=t.jsxs(gs,{"aria-label":r??void 0,className:s,disabled:e,id:i,onClick:a,type:c,children:[t.jsx(E,{clickable:!1,icon:n??us[s].icon,iconSize:r===void 0?"xxs":"xs",iconType:"fa-light"}),r??void 0]});return t.jsxs(y,{alignItems:"center",display:"flex",children:[p,o&&t.jsx(z,{color:d.palette.gray[800],ml:.5,size:"sm",children:o})]})},fs=l.st.div`
|
|
3012
3012
|
${({theme:e,$size:n})=>`
|
|
3013
3013
|
align-items: center;
|
|
3014
3014
|
background-color: ${e.palette.white};
|
|
@@ -3031,7 +3031,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
|
|
|
3031
3031
|
border: 1px solid ${e.palette.gray[600]};
|
|
3032
3032
|
}
|
|
3033
3033
|
`}
|
|
3034
|
-
`,
|
|
3034
|
+
`,hs=l.st.div`
|
|
3035
3035
|
${({theme:e,$size:n})=>`
|
|
3036
3036
|
display: ${n==="long"?"flex":"block"};
|
|
3037
3037
|
flex-direction: column;
|
|
@@ -3081,7 +3081,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
|
|
|
3081
3081
|
transform: translateX(-50%);
|
|
3082
3082
|
}
|
|
3083
3083
|
`}
|
|
3084
|
-
`,Hn=({date:e,description:n,title:i,size:o="long"})=>{const r=l.Je();return t.jsxs(
|
|
3084
|
+
`,Hn=({date:e,description:n,title:i,size:o="long"})=>{const r=l.Je();return t.jsxs(fs,{$size:o,className:"timeline-card",children:[t.jsx(z,{color:r.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:e}),t.jsx(z,{color:r.palette.gray[800],fontWeight:"bold",lineSpacing:1.5,mb:.5,size:"md",textAlign:"center",children:i}),t.jsx("div",{children:n.map((a,c)=>{const s=`${a}#${c}`;return t.jsx(z,{size:"sm",textAlign:"center",wordBreak:"break-word",children:a},s)})})]})},bs=({items:e})=>{const n=x.useRef(null),[i,o]=x.useState("long");return x.useEffect(()=>{n.current&&o(n.current.offsetWidth<=1100?"small":"long")},[]),t.jsx(y,{ref:n,width:"100%",children:t.jsx(hs,{$size:i,children:e.map((r,a)=>t.jsx(Hn,{date:r.date,description:r.description,size:i,title:r.title},`${r.title}-${a}`))})})},ys={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:""},$s=({run:e,steps:n,onFinish:i})=>{const[o,r]=x.useState(e),[a,c]=x.useState(0),s=x.useCallback(d=>{const{action:p,index:g,status:u,type:f}=d;[l.EVENTS.STEP_AFTER,l.EVENTS.TARGET_NOT_FOUND].includes(f)?c(g+(p===l.ACTIONS.PREV?-1:1)):([l.STATUS.FINISHED,l.STATUS.SKIPPED].includes(u)||p==="close")&&(r(!1),l.lodashExports.isUndefined(i)||i())},[i]);return t.jsx(l.components_default,{callback:s,continuous:!0,disableOverlayClose:!0,disableScrollParentFix:!0,run:o,spotlightClicks:!0,stepIndex:a,steps:n,styles:{buttonNext:{display:a===n.length-1?"none":"block"},options:{zIndex:9999}}})},Bn=t.jsx(y,{alignItems:"center",bgColor:F.palette.primary[25],borderRadius:"8px",gap:.5,justify:"center",padding:[.125,.25,.125,.25],width:"max-content",children:t.jsx(z,{bgGradient:F.palette.gradients["01"],fontWeight:"semibold",size:"xs",textFill:"transparent",children:"Recommended"})}),ms=l.st.div`
|
|
3085
3085
|
${({className:e,theme:n})=>`
|
|
3086
3086
|
align-items: flex-start;
|
|
3087
3087
|
border-radius: ${n.spacing[1]};
|
|
@@ -3146,5 +3146,5 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
|
|
|
3146
3146
|
width: 320px;
|
|
3147
3147
|
}
|
|
3148
3148
|
`}
|
|
3149
|
-
`;const
|
|
3150
|
-
through our scanning tool.`,priceAuthor:"$499",priceGroup:"$1,579"}},
|
|
3149
|
+
`;const ws={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
|
|
3150
|
+
through our scanning tool.`,priceAuthor:"$499",priceGroup:"$1,579"}},js=({description:e,onClick:n,plan:i})=>{const{title:o,description:r,benefits:a,buttonText:c}=ws[i],s=e??r;return t.jsxs(ms,{className:i,children:[t.jsxs(y,{display:"flex",flexDirection:"column",gap:.25,pt:i==="essential"?1.75:0,children:[i==="advanced"&&Bn,t.jsx(V,{color:F.palette.gray[900],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:o}),t.jsx(z,{color:F.palette.gray[400],fontWeight:"semibold",pb:i==="essential"?1.25:0,size:"sm",sizeSm:"xs",children:a})]}),t.jsx(z,{lineSpacing:1.5,lineSpacingSm:1.25,pb:i==="advanced"?1.5:0,size:"md",sizeSm:"sm",children:s}),t.jsx(P,{onClick:n,variant:"primary",children:c})]})};exports.Accordion=wi;exports.AccordionContent=zt;exports.ActionButton=Je;exports.Alert=Ei;exports.AppliedFilter=pe;exports.AppliedFilters=$r;exports.ArrayField=Be;exports.Avatar=Pi;exports.BaseButtonComponent=Ke;exports.BaseComponent=ke;exports.BaseSpanComponent=qe;exports.BaseTextComponent=Ze;exports.Body=Tn;exports.Button=P;exports.Button$1=Te;exports.ButtonToolbarCenter=lo;exports.ButtonToolbarRow=po;exports.ButtonToolbarStartRow=co;exports.Calendar=Lt;exports.Calendar$1=Wt;exports.Calendar$2=Bt;exports.CalendarCell=Dt;exports.CalendarGrid=Ne;exports.CaptionContent=Pn;exports.CardHeader=Fe;exports.CardWithImage=Wi;exports.CardWithInput=Eo;exports.CardWithOptions=sn;exports.CardWithSelector=Ao;exports.CardWithSwitch=Oo;exports.Carousel=Uo;exports.Checkbox=oe;exports.CodeSnippet=Go;exports.Col=He;exports.ColumFilters=fn;exports.ColumnToggle=zn;exports.ColumnsModal=dn;exports.ComboBox=Qe;exports.ComboBoxField=We;exports.Container=y;exports.ControlsContent=Mn;exports.CopyButton=Sr;exports.CustomThemeProvider=ui;exports.DateField=Pt;exports.DateSelector=xe;exports.Description=vn;exports.Dialog=Le;exports.Divider=re;exports.Dropdown=Tr;exports.Editable=so;exports.EmptyButton=Ve;exports.EmptyState=Nr;exports.ExportCsv=Sn;exports.FilePreview=Rt;exports.FilterControl=pn;exports.FilterForm=Ue;exports.FilterFormContent=gn;exports.FiltersList=xn;exports.FooterContent=Ln;exports.Form=Ar;exports.Gap=xo;exports.GridContainer=Mr;exports.GroupSelector=Wr;exports.Head=In;exports.Header=De;exports.Header$1=en;exports.Heading=V;exports.HighlightedContent=On;exports.Icon=E;exports.IconButton=M;exports.InProgressIcon=wn;exports.IndicatorCard=Hr;exports.InfoSidebar=Br;exports.InnerForm=Dr;exports.Input=Ae;exports.InputArray=ho;exports.InputDate=Ot;exports.InputDateRange=Ht;exports.InputDateTime=ao;exports.InputFile=mo;exports.InputNumber=Jt;exports.InputNumberRange=Ut;exports.InputTags=jo;exports.Label=Xe;exports.Link=Z;exports.ListItem=ze;exports.ListItemsWrapper=rn;exports.LittleFlag=Jr;exports.Loading=yn;exports.LocationCode=qt;exports.Logo=Qr;exports.Lottie=ta;exports.MemoizedImage=ee;exports.Menu=na;exports.MenuItem=kn;exports.MessageBanner=oa;exports.Modal=rt;exports.ModalConfirm=tn;exports.ModalFooter=Qt;exports.Notification=la;exports.NotificationSign=nn;exports.NumberField=Re;exports.NumberInput=pa;exports.OAuthSelector=ua;exports.Option=Ft;exports.OptionBoxContainer=at;exports.OptionContainer=Ge;exports.OptionContainer$1=bn;exports.OutlineContainer=J;exports.PaginationControl=Rn;exports.PaginationDropdown=Fn;exports.PaginationSize=Nn;exports.PhoneInput=Io;exports.PlanCard=js;exports.PopUp=Sa;exports.Popover=Ce;exports.PremiumFeature=$n;exports.PreviewPanel=an;exports.PriorityScore=fa;exports.ProgressBar=mn;exports.ProgressIndicator=Ca;exports.ProgressStep=va;exports.RadioButton=nt;exports.RecommendedTag=Bn;exports.Row=_t;exports.ScrollUpButton=Ia;exports.Search=ae;exports.SearchPanel=cn;exports.SeverityBadge=Ea;exports.SeverityOverview=Fa;exports.SeverityOverviewBadge=ge;exports.ShowOnHover=Da;exports.SlideOutMenu=Aa;exports.Slider=Ba;exports.SortIcon=Ye;exports.Span=ue;exports.StepLapse=Ya;exports.Tab=on;exports.Table=ps;exports.Table$1=Wn;exports.TableButton=xs;exports.TableContent=En;exports.TableContext=q;exports.TableFooter=Dn;exports.TableOptions=An;exports.Tabs=ot;exports.Tag=G;exports.TagsField=_e;exports.Text=z;exports.TextArea=To;exports.Thumb=Cn;exports.TimeField=Mt;exports.TimeLine=bs;exports.TimeLineCard=Hn;exports.Toggle=Kt;exports.Tooltip=U;exports.Tour=$s;exports.baseStep=ys;exports.formatCheckValues=hn;exports.getStyledConfig=ve;exports.hiddenProps=Ct;exports.icons=pi;exports.setBorder=$e;exports.setDisplay=me;exports.setInteraction=je;exports.setMargin=be;exports.setPadding=he;exports.setPosition=ye;exports.setText=we;exports.theme=F;exports.uniqueIcons=gi;exports.useCarousel=Vt;exports.useClickOutside=ne;exports.useCloudinaryImage=Gt;exports.useColumnsModal=Yt;exports.useConditionsDialog=vr;exports.useConfirmDialog=kr;exports.useDebouncedCallback=tt;exports.useFilterForm=un;exports.useFilters=jr;exports.useModal=Se;exports.useSearch=Fo;exports.variantBuilder=K;
|