@fluidattacks/design 3.23.1 → 3.23.2-pr
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index.css +1 -1
- 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.d.ts +3 -0
- package/dist/components/table/context/index.js +1 -0
- package/dist/components/table/context/types.d.ts +27 -0
- package/dist/components/table/export-csv/index.d.ts +4 -0
- package/dist/components/table/export-csv/index.js +1 -0
- package/dist/components/table/export-csv/types.d.ts +25 -0
- package/dist/components/table/export-csv/utils.d.ts +2 -0
- package/dist/components/table/index.d.ts +24 -0
- package/dist/components/table/index.js +1 -0
- package/dist/components/table/index.stories.d.ts +21 -0
- package/dist/components/table/pagination/pagination-control/index.d.ts +2 -0
- package/dist/components/table/pagination/pagination-control/index.js +1 -0
- package/dist/components/table/pagination/pagination-control/styles.d.ts +6 -0
- package/dist/components/table/pagination/pagination-dropdown/index.d.ts +2 -0
- package/dist/components/table/pagination/pagination-dropdown/index.js +1 -0
- package/dist/components/table/pagination/pagination-size/index.d.ts +2 -0
- package/dist/components/table/pagination/pagination-size/index.js +1 -0
- package/dist/components/table/sort-icon/index.d.ts +3 -0
- package/dist/components/table/sort-icon/index.js +1 -0
- package/dist/components/table/sort-icon/styles.d.ts +5 -0
- package/dist/components/table/sort-icon/types.d.ts +9 -0
- package/dist/components/table/styles.d.ts +812 -0
- package/dist/components/table/table-body/index.d.ts +3 -0
- package/dist/components/table/table-body/index.js +1 -0
- package/dist/components/table/table-body/styles.d.ts +4 -0
- package/dist/components/table/table-column-toggle/index.d.ts +3 -0
- package/dist/components/table/table-column-toggle/index.js +1 -0
- package/dist/components/table/table-content/head/index.d.ts +3 -0
- package/dist/components/table/table-content/head/index.js +1 -0
- package/dist/components/table/table-content/index.d.ts +2 -0
- package/dist/components/table/table-content/index.js +1 -0
- package/dist/components/table/table-footer/footer-content/index.d.ts +4 -0
- package/dist/components/table/table-footer/footer-content/index.js +1 -0
- package/dist/components/table/table-footer/index.d.ts +4 -0
- package/dist/components/table/table-footer/index.js +1 -0
- package/dist/components/table/table-options/caption-content/index.d.ts +4 -0
- package/dist/components/table/table-options/caption-content/index.js +1 -0
- package/dist/components/table/table-options/controls-content/index.d.ts +4 -0
- package/dist/components/table/table-options/controls-content/index.js +1 -0
- package/dist/components/table/table-options/highlighted-content/index.d.ts +4 -0
- package/dist/components/table/table-options/highlighted-content/index.js +1 -0
- package/dist/components/table/table-options/index.d.ts +4 -0
- package/dist/components/table/table-options/index.js +1 -0
- package/dist/components/table/table-options/styles.d.ts +808 -0
- package/dist/components/table/types.d.ts +34 -0
- package/dist/components/table/wrapper/index.d.ts +4 -0
- package/dist/components/table/wrapper/index.js +1 -0
- 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-DUqunRKA.mjs → components-C6ax3s2J.mjs} +3677 -2702
- package/dist/components-DF2jqJxA.js +3142 -0
- package/dist/hooks/index.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/vendor-9f4XgOcG.js +223 -0
- package/dist/{vendor-BzUP-0MT.mjs → vendor-BHA1JQg7.mjs} +19976 -19905
- package/package.json +12 -9
- package/dist/components-BINuORy2.js +0 -2778
- package/dist/vendor-CCqkJyOz.js +0 -206
|
@@ -1,2778 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),x=require("react"),s=require("./vendor-CCqkJyOz.js"),ae=require("react-dom"),We=require("react-router-dom"),q=e=>({getVariant:(n,i)=>e(n)[i]}),$t=["padding","px","py","pl","pr","pt","pb","margin","mx","my","ml","mr","mt","mb","zIndex","position","top","right","bottom","left","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderRadius","scroll","visibility","display","height","width","maxHeight","maxWidth","minHeight","minWidth","shadow","bgColor","bgGradient","gap","flexDirection","flexGrow","justify","justifySelf","alignItems","alignSelf","wrap","color","fontFamily","fontSize","fontWeight","textAlign","whiteSpace","letterSpacing","lineSpacing","textDecoration","textOverflow","whiteSpace","wordBreak","wordWrap","cursor","transition","borderColorHover","bgColorHover","shadowHover"],Fn={25:"#fcfcfd",50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#2f394b",800:"#212a36",900:"#161b25"},Nn={25:"#fef2f3",50:"#fddfe2",100:"#fbbac0",200:"#f9959e",300:"#f65e6a",400:"#f32637",500:"#bf0b1a",600:"#ac0a17",700:"#9a0915",800:"#870812",900:"#750710"},Dn={25:"",50:"",100:"#ffe6ff",200:"",300:"#b8075d",400:"",500:"#7f0540",600:"",700:"#59042d",800:"",900:"#460323"},En={25:"",50:"#fef3f2",100:"",200:"#fecdca",300:"",400:"",500:"#f04438",600:"",700:"#b42318",800:"",900:""},Rn={25:"",50:"#fffaeb",100:"",200:"#fef0c7",300:"",400:"#ffd562",500:"#fdb022",600:"#dc6803",700:"#b54708",800:"",900:""},Ln={25:"",50:"#f6fef9",100:"",200:"#a6f4c5",300:"",400:"",500:"#12b76a",600:"",700:"#027a48",800:"",900:""},An={25:"",50:"#eff8ff",100:"",200:"#b2ddff",300:"",400:"",500:"#2e90fa",600:"",700:"#175cd3",800:"",900:""},Pn={"01":"linear-gradient(45deg, #f32637 0%, #b8075d 100%)","02":"linear-gradient(45deg, #fcfcfd 0%, #667085 100%)"},Wn={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"}},Bn={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)"},Mn={mobile:"480px",tablet:"960px",sm:"1024px",md:"1440px",lg:"1920px"},On={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"},Hn=["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"],_n=[["fal","arrow-down"],["fal","arrow-left"],["fal","arrow-right"],["fal","arrow-up"],["fal","plus"],["fal","minus"],["fas","check"],["fas","circle-question"]],N={typography:Wn,shadows:Bn,breakpoints:Mn,spacing:On,palette:{primary:Nn,complementary:Dn,error:En,info:An,warning:Rn,success:Ln,black:"#0c111d",white:"#ffffff",gray:Fn,gradients:Pn}},Jn=({children:e})=>t.jsx(s.Xe,{theme:N,children:e}),E=(e,n)=>n===void 0?"":`${e}: ${n};`,fe=e=>{const n=e.py??e.pt??0,i=e.px??e.pr??0,r=e.py??e.pb??0,a=e.px??e.pl??0;if(e.padding){const[o,l,c,d]=e.padding;return`padding: ${N.spacing[o]} ${N.spacing[l]} ${N.spacing[c]} ${N.spacing[d]};`}return`padding: ${N.spacing[n]} ${N.spacing[i]} ${N.spacing[r]} ${N.spacing[a]};`},he=e=>{const n=e.my??e.mt??0,i=e.mx??e.mr??0,r=e.my??e.mb??0,a=e.mx??e.ml??0;if(e.margin){const[o,l,c,d]=e.margin;return`margin: ${N.spacing[o]} ${N.spacing[l]} ${N.spacing[c]} ${N.spacing[d]};`}return`margin: ${N.spacing[n]} ${N.spacing[i]} ${N.spacing[r]} ${N.spacing[a]};`},be=e=>{const n=E("position",e.position),i=E("top",e.top),r=E("right",e.right),a=E("bottom",e.bottom),o=E("left",e.left),l=E("z-index",e.zIndex);return`
|
|
2
|
-
${n}
|
|
3
|
-
${i}
|
|
4
|
-
${r}
|
|
5
|
-
${a}
|
|
6
|
-
${o}
|
|
7
|
-
${l}
|
|
8
|
-
`},ye=e=>{const n=E("border",e.border),i=E("border-top",e.borderTop),r=E("border-right",e.borderRight),a=E("border-bottom",e.borderBottom),o=E("border-left",e.borderLeft),l=E("border-color",e.borderColor),c=E("border-radius",e.borderRadius);return`
|
|
9
|
-
${n}
|
|
10
|
-
${i}
|
|
11
|
-
${r}
|
|
12
|
-
${a}
|
|
13
|
-
${o}
|
|
14
|
-
${l}
|
|
15
|
-
${c}
|
|
16
|
-
`},Un=e=>e.includes("x")?"overflow-x: auto;":"",Gn=e=>e.includes("y")?"overflow-y: auto;":"",$e=e=>{const n=e.scroll?`
|
|
17
|
-
${Un(e.scroll)}
|
|
18
|
-
${Gn(e.scroll)}
|
|
19
|
-
`:"",i=E("visibility",e.visibility),r=E("display",e.display),a=E("height",e.height),o=E("width",e.width),l=E("max-height",e.maxHeight),c=E("max-width",e.maxWidth),d=E("min-height",e.minHeight),g=E("min-width",e.minWidth),p=E("box-shadow",e.shadow?N.shadows[e.shadow]:void 0),u=E("gap",e.gap===void 0?void 0:N.spacing[e.gap]),f=E("background-color",e.bgColor),h=E("background",e.bgGradient),b=E("flex-direction",e.flexDirection),y=E("flex-grow",e.flexGrow),m=E("justify-content",e.justify),j=E("justify-self",e.justifySelf),w=E("align-items",e.alignItems),v=E("align-self",e.alignSelf),k=E("flex-wrap",e.wrap);return`
|
|
20
|
-
${n}
|
|
21
|
-
${i}
|
|
22
|
-
${r}
|
|
23
|
-
${a}
|
|
24
|
-
${o}
|
|
25
|
-
${l}
|
|
26
|
-
${c}
|
|
27
|
-
${d}
|
|
28
|
-
${g}
|
|
29
|
-
${p}
|
|
30
|
-
${f}
|
|
31
|
-
${h}
|
|
32
|
-
${u}
|
|
33
|
-
${b}
|
|
34
|
-
${y}
|
|
35
|
-
${m}
|
|
36
|
-
${j}
|
|
37
|
-
${w}
|
|
38
|
-
${v}
|
|
39
|
-
${k}
|
|
40
|
-
`},me=e=>{const n=E("color",e.color),i=E("font-family",e.fontFamily),r=E("font-size",e.fontSize),a=E("font-weight",e.fontWeight),o=E("line-spacing",e.letterSpacing),l=E("line-height",e.lineSpacing),c=E("text-align",e.textAlign),d=E("text-decoration",e.textDecoration),g=E("text-overflow",e.textOverflow),p=E("white-space",e.whiteSpace),u=E("word-break",e.wordBreak),f=E("word-wrap",e.wordWrap);return`
|
|
41
|
-
${n}
|
|
42
|
-
${i}
|
|
43
|
-
${r}
|
|
44
|
-
${a}
|
|
45
|
-
${o}
|
|
46
|
-
${l}
|
|
47
|
-
${c}
|
|
48
|
-
${d}
|
|
49
|
-
${g}
|
|
50
|
-
${p}
|
|
51
|
-
${u}
|
|
52
|
-
${f}
|
|
53
|
-
`},we=e=>{const n=E("cursor",e.cursor),i=E("border-color",e.borderColorHover),r=E("background-color",e.bgColorHover),a=E("box-shadow",e.shadowHover===void 0?void 0:N.shadows[e.shadowHover]),o=E("transition",e.transition);return`
|
|
54
|
-
${n}
|
|
55
|
-
|
|
56
|
-
&:hover {
|
|
57
|
-
${o||"transition: all 0.2s;"}
|
|
58
|
-
${i}
|
|
59
|
-
${r}
|
|
60
|
-
${a}
|
|
61
|
-
}
|
|
62
|
-
`},je={shouldForwardProp:e=>!$t.includes(e)},ve=s.st.div.withConfig(je)`
|
|
63
|
-
${fe}
|
|
64
|
-
${he}
|
|
65
|
-
${be}
|
|
66
|
-
${$e}
|
|
67
|
-
${me}
|
|
68
|
-
${ye}
|
|
69
|
-
${we}
|
|
70
|
-
`,Ve=s.st.button.withConfig(je)`
|
|
71
|
-
${fe}
|
|
72
|
-
${he}
|
|
73
|
-
${be}
|
|
74
|
-
${$e}
|
|
75
|
-
${me}
|
|
76
|
-
${ye}
|
|
77
|
-
${we}
|
|
78
|
-
`,Ye=s.st.p.withConfig(je)`
|
|
79
|
-
${fe}
|
|
80
|
-
${he}
|
|
81
|
-
${be}
|
|
82
|
-
${$e}
|
|
83
|
-
${me}
|
|
84
|
-
${ye}
|
|
85
|
-
${we}
|
|
86
|
-
`,qe=s.st.span.withConfig(je)`
|
|
87
|
-
${fe}
|
|
88
|
-
${he}
|
|
89
|
-
${be}
|
|
90
|
-
${$e}
|
|
91
|
-
${me}
|
|
92
|
-
${ye}
|
|
93
|
-
${we}
|
|
94
|
-
`,Vn=s.st(ve)`
|
|
95
|
-
${({theme:e,$center:n=!1,$styleMd:i,$styleSm:r})=>`
|
|
96
|
-
${n?"margin: auto;":""}
|
|
97
|
-
scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
|
|
98
|
-
scroll-padding: ${e.spacing[.5]};
|
|
99
|
-
|
|
100
|
-
@media screen
|
|
101
|
-
and (min-width: ${e.breakpoints.mobile})
|
|
102
|
-
and (max-width: ${e.breakpoints.tablet})
|
|
103
|
-
{
|
|
104
|
-
${i};
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
108
|
-
${r};
|
|
109
|
-
}
|
|
110
|
-
`}
|
|
111
|
-
`,$=x.forwardRef(function({as:n="div",center:i,children:r,id:a,onHover:o,onLeave:l,styleMd:c,styleSm:d,...g},p){return t.jsx(Vn,{$center:i,$styleMd:c,$styleSm:d,as:n,id:a,onMouseLeave:l,onMouseOver:o,ref:p,...g,children:r})}),Yn=s.st(Ye)`
|
|
112
|
-
${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[800],$display:r="block",$fontFamily:a=e.typography.type.primary,$fontWeight:o="bold",$letterSpacing:l=0,$lineSpacing:c=1.5,$lineSpacingSm:d,$overflow:g="unset",$size:p,$sizeMd:u,$sizeSm:f,$textFill:h="unset",$whiteSpace:b="pre-line",$wordBreak:y="normal"})=>`
|
|
113
|
-
background: ${n};
|
|
114
|
-
color: ${i};
|
|
115
|
-
display: ${r};
|
|
116
|
-
font-family: ${a};
|
|
117
|
-
font-size: ${e.typography.heading[p]};
|
|
118
|
-
font-weight: ${e.typography.weight[o]};
|
|
119
|
-
letter-spacing: ${l};
|
|
120
|
-
line-height: ${e.spacing[c]};
|
|
121
|
-
overflow: ${g};
|
|
122
|
-
width: ${r==="block"?"100%":"auto"};
|
|
123
|
-
white-space: ${b};
|
|
124
|
-
word-break: ${y};
|
|
125
|
-
background-clip: text;
|
|
126
|
-
-webkit-background-clip: text;
|
|
127
|
-
-webkit-text-fill-color: ${h};
|
|
128
|
-
|
|
129
|
-
@media screen
|
|
130
|
-
and (min-width: ${e.breakpoints.mobile})
|
|
131
|
-
and (max-width: ${e.breakpoints.tablet})
|
|
132
|
-
{
|
|
133
|
-
font-size: ${e.typography.heading[u??p]};
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
137
|
-
font-size: ${e.typography.heading[f??p]};
|
|
138
|
-
line-height: ${e.spacing[d??c]};
|
|
139
|
-
}
|
|
140
|
-
`}
|
|
141
|
-
`,mt=s.st(Ye)`
|
|
142
|
-
${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[600],$display:r="block",$fontFamily:a=e.typography.type.primary,$fontWeight:o="regular",$fontStyle:l="normal",$letterSpacing:c=0,$lineSpacing:d=1.25,$lineSpacingSm:g,$overflow:p="unset",$size:u,$sizeMd:f,$sizeSm:h,$textFill:b="unset",$whiteSpace:y="pre-line",$wordBreak:m="normal"})=>`
|
|
143
|
-
background: ${n};
|
|
144
|
-
color: ${i};
|
|
145
|
-
display: ${r};
|
|
146
|
-
font-family: ${a};
|
|
147
|
-
font-size: ${e.typography.text[u]};
|
|
148
|
-
font-style: ${l};
|
|
149
|
-
font-weight: ${e.typography.weight[o]};
|
|
150
|
-
letter-spacing: ${c};
|
|
151
|
-
line-height: ${e.spacing[d]};
|
|
152
|
-
overflow: ${p};
|
|
153
|
-
width: ${r==="block"?"100%":"auto"};
|
|
154
|
-
white-space: ${y};
|
|
155
|
-
word-break: ${m};
|
|
156
|
-
background-clip: text;
|
|
157
|
-
-webkit-background-clip: text;
|
|
158
|
-
-webkit-text-fill-color: ${b};
|
|
159
|
-
|
|
160
|
-
@media screen
|
|
161
|
-
and (min-width: ${e.breakpoints.mobile})
|
|
162
|
-
and (max-width: ${e.breakpoints.tablet})
|
|
163
|
-
{
|
|
164
|
-
font-size: ${e.typography.text[f??u]};
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
168
|
-
font-size: ${e.typography.text[h??u]};
|
|
169
|
-
line-height: ${e.spacing[g??d]};
|
|
170
|
-
}
|
|
171
|
-
`}
|
|
172
|
-
`,qn=s.st(qe)`
|
|
173
|
-
${({theme:e,$color:n=e.palette.gray[600],$content:i=void 0,$display:r="inline",$fontWeight:a="regular",$size:o,$lineSpacing:l=1.25})=>`
|
|
174
|
-
color: ${n};
|
|
175
|
-
display: ${r};
|
|
176
|
-
font-family: ${e.typography.type.primary};
|
|
177
|
-
font-size: ${e.typography.text[o]};
|
|
178
|
-
font-weight: ${e.typography.weight[a]};
|
|
179
|
-
line-height: ${e.spacing[l]};
|
|
180
|
-
max-width: 100%;
|
|
181
|
-
width: ${r==="block"?"100%":"auto"};
|
|
182
|
-
|
|
183
|
-
${i===void 0?"":`&::after { content: "${i}"; }`}
|
|
184
|
-
`}
|
|
185
|
-
`,U=x.forwardRef(function({bgGradient:n,children:i,className:r,color:a,display:o,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:g,lineSpacingSm:p,overflow:u,size:f,sizeMd:h,sizeSm:b,textFill:y,whiteSpace:m,wordBreak:j,...w},v){return t.jsx(Yn,{$bgGradient:n,$color:a,$display:o,$fontFamily:l,$fontWeight:c,$letterSpacing:d,$lineSpacing:g,$lineSpacingSm:p,$overflow:u,$size:f,$sizeMd:h,$sizeSm:b,$textFill:y,$whiteSpace:m,$wordBreak:j,className:r,ref:v,...w,children:i})}),pe=x.forwardRef(function({children:n,color:i,content:r,display:a,fontFamily:o,fontWeight:l,letterSpacing:c,lineSpacing:d,lineSpacingSm:g,size:p,sizeMd:u,sizeSm:f,...h},b){return t.jsx(qn,{$color:i,$content:r,$display:a,$fontFamily:o,$fontWeight:l,$letterSpacing:c,$lineSpacing:d,$lineSpacingSm:g,$size:p,$sizeMd:u,$sizeSm:f,ref:b,...h,children:n})}),I=x.forwardRef(function({bgGradient:n,children:i,className:r,color:a,display:o,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:g,lineSpacingSm:p,overflow:u,size:f,sizeMd:h,sizeSm:b,textFill:y,whiteSpace:m,wordBreak:j,fontStyle:w,...v},k){return t.jsx(mt,{$bgGradient:n,$color:a,$display:o,$fontFamily:l,$fontStyle:w,$fontWeight:c,$letterSpacing:d,$lineSpacing:g,$lineSpacingSm:p,$overflow:u,$size:f,$sizeMd:h,$sizeSm:b,$textFill:y,$whiteSpace:m,$wordBreak:j,className:r,ref:k,...v,children:i})}),wt=({item:e})=>{const n=e.description&&typeof e.description=="string"?t.jsx(I,{mb:e.extraElement?.5:void 0,size:"sm",children:e.description}):e.description??void 0;return t.jsxs($,{display:"block",id:`panel-${e.title}`,padding:[.75,.75,.75,.75],children:[n,e.extraElement?t.jsx($,{children:e.extraElement}):void 0]})},Kn={xl:"96px",lg:"64px",md:"32px",sm:"24px",xs:"16px",xxs:"12px",xxss:"10px"},Zn=s.st(qe)`
|
|
186
|
-
${({$clickable:e,$color:n="inherit",$disabled:i=!1,$hoverColor:r,$rotation:a,$size:o,$secondaryColor:l})=>{const c=r?"":"brightness(50%)",d=r??"";return`
|
|
187
|
-
color: ${n};
|
|
188
|
-
cursor: ${e?"pointer":"inherit"};
|
|
189
|
-
font-size: ${Kn[o]};
|
|
190
|
-
line-height: 0;
|
|
191
|
-
vertical-align: middle;
|
|
192
|
-
pointer-events: inherit;
|
|
193
|
-
opacity: ${i?"0.5":"1"};
|
|
194
|
-
|
|
195
|
-
> svg {
|
|
196
|
-
--fa-secondary-color: ${l};
|
|
197
|
-
transform: ${a===void 0?"":`rotate(${a}deg)`};
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
.fill-gradient-01 path {
|
|
201
|
-
fill: url(/gradients.svg#gradient-01);
|
|
202
|
-
fill: url(#gradient-01);
|
|
203
|
-
}
|
|
204
|
-
.fill-gradient-02 path {
|
|
205
|
-
fill: url(/gradients.svg#gradient-02);
|
|
206
|
-
fill: url(#gradient-02);
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
${e?`&:hover {
|
|
210
|
-
filter: ${c};
|
|
211
|
-
color: ${d};
|
|
212
|
-
}`:""}
|
|
213
|
-
`}}
|
|
214
|
-
`;s.st.div`
|
|
215
|
-
cursor: pointer;
|
|
216
|
-
transition: all 0.2s ease-in-out;
|
|
217
|
-
|
|
218
|
-
&:hover:not([disabled]) {
|
|
219
|
-
transform: scale(1.2);
|
|
220
|
-
}
|
|
221
|
-
`;const D=x.forwardRef(function({clickable:n,disabled:i,hoverColor:r,icon:a,iconClass:o="",iconColor:l,iconMask:c,iconSize:d,iconTransform:g,iconType:p="fa-solid",onClick:u,rotation:f,spanClass:h,secondaryColor:b,...y},m){return t.jsx(Zn,{$clickable:n,$color:l,$disabled:i,$hoverColor:r,$rotation:f,$secondaryColor:b,$size:d,className:h,"data-testid":`${a}-icon`,onClick:u,ref:m,...y,children:t.jsx("i",{className:`${p} fa-${a} ${o}`,...c!==void 0?{"data-fa-mask":c}:{},...g!==void 0?{"data-fa-transform":g}:{}})},`${p}-${a}`)}),Xn=x.forwardRef(function({aligned:n="end",items:i,bgColor:r},a){const o=s.Je(),[l,c]=x.useState(i.map(g=>g.expanded??!1)),d=x.useCallback(g=>p=>{p.preventDefault(),c(u=>u.map((f,h)=>h===g?!f:f))},[]);return t.jsx($,{borderColor:o.palette.gray[200],borderTop:"1px solid",ref:a,children:i.map((g,p)=>{const u=l[p];return t.jsxs($,{bgColor:r??o.palette.white,borderBottom:"1px solid",borderColor:o.palette.gray[200],children:[t.jsx($,{"aria-controls":`panel-${g.title}`,"aria-expanded":u,"aria-label":g.title,as:"button",bgColor:r??o.palette.white,bgColorHover:o.palette.gray[100],cursor:"pointer",display:"flex",onClick:d(p),padding:[.75,.75,.75,.75],width:"100%",children:t.jsxs($,{as:"summary",display:"flex",flexDirection:n==="end"?"row":"row-reverse",gap:.75,justify:"space-between",width:"100%",children:[t.jsx(I,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",sizeSm:"sm",textAlign:"start",children:g.title}),t.jsx(D,{icon:u?"chevron-up":"chevron-down",iconColor:o.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]})}),u&&t.jsx(wt,{item:g})]},g.title)})})}),Qn=e=>{switch(e){case"warning":return"triangle-exclamation";case"info":return"circle-info";case"success":return"circle-check";case"error":default:return"circle-exclamation"}},{getVariant:ei}=q(e=>({error:`
|
|
222
|
-
background: ${e.palette.error[50]};
|
|
223
|
-
border: 1px solid ${e.palette.error[500]};
|
|
224
|
-
color: ${e.palette.error[700]};
|
|
225
|
-
|
|
226
|
-
button {
|
|
227
|
-
color: ${e.palette.error[700]};
|
|
228
|
-
|
|
229
|
-
&:hover:not([disabled]) {
|
|
230
|
-
background-color: ${e.palette.error[200]};
|
|
231
|
-
color: ${e.palette.error[700]};
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
`,info:`
|
|
235
|
-
background: ${e.palette.info[50]};
|
|
236
|
-
border: 1px solid ${e.palette.info[500]};
|
|
237
|
-
color: ${e.palette.info[700]};
|
|
238
|
-
|
|
239
|
-
button {
|
|
240
|
-
color: ${e.palette.info[700]};
|
|
241
|
-
|
|
242
|
-
&:hover:not([disabled]) {
|
|
243
|
-
background-color: ${e.palette.info[200]};
|
|
244
|
-
color: ${e.palette.info[700]};
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
`,success:`
|
|
248
|
-
background: ${e.palette.success[50]};
|
|
249
|
-
border: 1px solid ${e.palette.success[500]};
|
|
250
|
-
color: ${e.palette.success[700]};
|
|
251
|
-
|
|
252
|
-
button {
|
|
253
|
-
color: ${e.palette.success[700]};
|
|
254
|
-
|
|
255
|
-
&:hover:not([disabled]) {
|
|
256
|
-
background-color: ${e.palette.success[200]};
|
|
257
|
-
color: ${e.palette.success[700]};
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
`,warning:`
|
|
261
|
-
background: ${e.palette.warning[50]};
|
|
262
|
-
border: 1px solid ${e.palette.warning[500]};
|
|
263
|
-
color: ${e.palette.warning[700]};
|
|
264
|
-
|
|
265
|
-
button {
|
|
266
|
-
color: ${e.palette.warning[700]};
|
|
267
|
-
|
|
268
|
-
&:hover:not([disabled]) {
|
|
269
|
-
background-color: ${e.palette.warning[200]};
|
|
270
|
-
color: ${e.palette.warning[700]};
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
`})),ti=s.st.div`
|
|
274
|
-
${({theme:e,$variant:n})=>`
|
|
275
|
-
background: transparent;
|
|
276
|
-
align-items: center;
|
|
277
|
-
border-radius: ${e.spacing[.25]};
|
|
278
|
-
display: inline-flex;
|
|
279
|
-
font-family: ${e.typography.type.primary};
|
|
280
|
-
font-size: ${e.typography.text.sm};
|
|
281
|
-
font-weight: ${e.typography.weight.bold};
|
|
282
|
-
line-height: ${e.spacing[1.25]};
|
|
283
|
-
min-width: 250px;
|
|
284
|
-
width: 100%;
|
|
285
|
-
padding: ${e.spacing[.75]};
|
|
286
|
-
position: relative;
|
|
287
|
-
gap: ${e.spacing[.75]};
|
|
288
|
-
|
|
289
|
-
button {
|
|
290
|
-
background-color: transparent;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
${ei(e,n??"error")}
|
|
294
|
-
`}
|
|
295
|
-
`,ni=s.st.div`
|
|
296
|
-
padding-right: 4px;
|
|
297
|
-
width: 100%;
|
|
298
|
-
`,{getVariant:ii}=q(e=>({ghost:`
|
|
299
|
-
background: transparent;
|
|
300
|
-
border: none;
|
|
301
|
-
color: ${e.palette.gray[800]};
|
|
302
|
-
--btn-padding-x: ${e.spacing[.5]};
|
|
303
|
-
--btn-padding-y: ${e.spacing[.625]};
|
|
304
|
-
--btn-spacing: ${e.spacing[.25]};
|
|
305
|
-
|
|
306
|
-
&:disabled {
|
|
307
|
-
color: ${e.palette.gray[400]};
|
|
308
|
-
cursor: not-allowed;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
&:hover:not([disabled]) {
|
|
312
|
-
background-color: ${e.palette.gray[100]};
|
|
313
|
-
color: ${e.palette.gray[800]};
|
|
314
|
-
}
|
|
315
|
-
`,link:`
|
|
316
|
-
--btn-padding-x: 0;
|
|
317
|
-
--btn-padding-y: 0;
|
|
318
|
-
color: ${e.palette.gray[800]};
|
|
319
|
-
|
|
320
|
-
&:hover {
|
|
321
|
-
color: ${e.palette.gray[500]};
|
|
322
|
-
}
|
|
323
|
-
`,primary:`
|
|
324
|
-
background: ${e.palette.primary[500]};
|
|
325
|
-
border: none;
|
|
326
|
-
color: ${e.palette.white};
|
|
327
|
-
--btn-spacing: ${e.spacing[.25]};
|
|
328
|
-
|
|
329
|
-
&:disabled {
|
|
330
|
-
background: ${e.palette.gray[200]};
|
|
331
|
-
color: ${e.palette.gray[400]};
|
|
332
|
-
cursor: not-allowed;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
&:hover:not([disabled]) {
|
|
336
|
-
background-color: ${e.palette.primary[700]};
|
|
337
|
-
color: ${e.palette.white};
|
|
338
|
-
}
|
|
339
|
-
`,secondary:`
|
|
340
|
-
background: ${e.palette.gray[800]};
|
|
341
|
-
border: none;
|
|
342
|
-
color: ${e.palette.white};
|
|
343
|
-
--btn-spacing: ${e.spacing[.25]};
|
|
344
|
-
|
|
345
|
-
&:disabled {
|
|
346
|
-
background: ${e.palette.gray[200]};
|
|
347
|
-
color: ${e.palette.gray[400]};
|
|
348
|
-
cursor: not-allowed;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
&:hover:not([disabled]) {
|
|
352
|
-
background-color: ${e.palette.gray[600]};
|
|
353
|
-
color: ${e.palette.white};
|
|
354
|
-
}
|
|
355
|
-
`,tertiary:`
|
|
356
|
-
background: transparent;
|
|
357
|
-
border: 1px solid ${e.palette.primary[500]};
|
|
358
|
-
color: ${e.palette.primary[500]};
|
|
359
|
-
--btn-spacing: ${e.spacing[.25]};
|
|
360
|
-
|
|
361
|
-
&:disabled {
|
|
362
|
-
background: transparent;
|
|
363
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
364
|
-
color: ${e.palette.gray[300]};
|
|
365
|
-
cursor: not-allowed;
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
&:hover:not([disabled]) {
|
|
369
|
-
background-color: ${e.palette.primary[500]};
|
|
370
|
-
color: ${e.palette.white};
|
|
371
|
-
}
|
|
372
|
-
`})),jt=s.st(Ve)`
|
|
373
|
-
${({theme:e,justify:n,$size:i,$variant:r})=>`
|
|
374
|
-
align-items: center;
|
|
375
|
-
border-radius: var(--btn-spacing);
|
|
376
|
-
cursor: pointer;
|
|
377
|
-
display: inline-flex;
|
|
378
|
-
font-family: ${e.typography.type.primary};
|
|
379
|
-
font-size: ${i??e.typography.text.sm};
|
|
380
|
-
font-weight: ${e.typography.weight.regular};
|
|
381
|
-
gap: var(--btn-spacing);
|
|
382
|
-
justify-content: ${n??"center"};
|
|
383
|
-
line-height: ${e.spacing[1.25]};
|
|
384
|
-
padding: var(--btn-padding-y) var(--btn-padding-x);
|
|
385
|
-
position: relative;
|
|
386
|
-
text-align: start;
|
|
387
|
-
transition: all 0.5s ease;
|
|
388
|
-
white-space: nowrap;
|
|
389
|
-
|
|
390
|
-
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
391
|
-
${r!=="link"?`--btn-padding-y: ${e.spacing[1]}`:""};
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
${ii(e,r??"primary")}
|
|
395
|
-
`}
|
|
396
|
-
`,ri=s.st(jt)`
|
|
397
|
-
${({theme:e,borderRadius:n="4px",px:i=.5,py:r=.5})=>`
|
|
398
|
-
--btn-spacing: ${n};
|
|
399
|
-
--btn-padding-x: ${e.spacing[i]};
|
|
400
|
-
--btn-padding-y: ${e.spacing[r]};
|
|
401
|
-
|
|
402
|
-
align-items: center;
|
|
403
|
-
line-height: 0;
|
|
404
|
-
text-align: center;
|
|
405
|
-
|
|
406
|
-
> span {
|
|
407
|
-
margin: 0 !important;
|
|
408
|
-
}
|
|
409
|
-
`}
|
|
410
|
-
`,ai=s.st(ve)``,oi=s.st.div`
|
|
411
|
-
${({theme:e,$maxWidth:n="320px"})=>`
|
|
412
|
-
background-color: ${e.palette.gray[700]};
|
|
413
|
-
border-radius: 8px;
|
|
414
|
-
color: ${e.palette.white};
|
|
415
|
-
font-size: ${e.typography.text.xs};
|
|
416
|
-
max-width: ${n};
|
|
417
|
-
padding: ${e.spacing[.75]};
|
|
418
|
-
width: max-content;
|
|
419
|
-
z-index: 999999;
|
|
420
|
-
`}
|
|
421
|
-
`,G=({children:e,disabled:n=!1,display:i="inline-block",height:r,icon:a,iconColor:o,iconSize:l,id:c,maxWidth:d,nodeTip:g,place:p="bottom",tip:u="",title:f="",hide:h=u===""&&f===""&&g===void 0,width:b})=>{const y=s.Je(),[m,j]=x.useState(!1),{refs:w,floatingStyles:v,context:k}=s.useFloating({middleware:[s.flip({fallbackAxisSideDirection:"start"}),s.offset({mainAxis:10}),s.shift()],onOpenChange:j,open:m,placement:p,whileElementsMounted:s.autoUpdate}),C=s.useHover(k,{delay:{close:0,open:500},move:!1}),z=s.useFocus(k),F=s.useRole(k,{role:a?"label":"tooltip"}),{getReferenceProps:S,getFloatingProps:R}=s.useInteractions([C,z,F]);return n?t.jsx(x.StrictMode,{children:e}):t.jsxs(t.Fragment,{children:[t.jsx(ai,{...S(),display:i,height:r,id:c,ref:w.setReference,width:b,children:a?t.jsx(D,{clickable:!0,disabled:n,icon:a,iconColor:o,iconSize:l??"xxs",iconType:m?"fa-solid":"fa-light"}):e}),m&&!h&&ae.createPortal(t.jsxs(oi,{...R(),$maxWidth:d,id:`floating-${c}`,ref:w.setFloating,style:v,children:[s.lodashExports.isEmpty(f)?void 0:t.jsx(I,{color:y.palette.white,fontWeight:"bold",lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:f}),s.lodashExports.isEmpty(u)?void 0:t.jsx(I,{color:y.palette.gray[100],lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:u}),s.lodashExports.isEmpty(g)?void 0:g]}),document.getElementById("root")??document.body)]})},B=x.forwardRef(function({borderRadius:n,disabled:i,icon:r,iconColor:a,iconSize:o="xxs",iconTransform:l,iconType:c,id:d,justify:g="center",onClick:p,px:u,py:f,type:h="button",tooltip:b,tooltipPlace:y,value:m,variant:j="primary",...w},v){const k=t.jsx(ri,{$variant:j,"aria-disabled":i,"aria-label":d,borderRadius:n,disabled:i,id:d,justify:g,onClick:p,px:u,py:f,ref:v,type:h,value:m,...w,children:t.jsx(D,{clickable:!1,icon:r,iconColor:a,iconSize:o,iconTransform:l,iconType:c})}),z=(h+(j??"")+(d??r)).replace(/ /u,"_");return b===void 0?k:t.jsx(G,{id:`${z}-tooltip`,place:y,tip:b,children:k})}),si=x.forwardRef(function({autoHide:n=!1,children:i,closable:r=!1,iconEnabled:a=!0,onTimeOut:o,show:l=!0,time:c=8,variant:d="error",id:g,...p},u){const[f,h]=x.useState(l),b=x.useCallback(()=>{h(!1)},[]);return x.useEffect(()=>{const y=setTimeout(()=>{o==null||o(!0),n&&b()},c*1e3);return()=>{clearTimeout(y)}},[n,b,c,o]),x.useEffect(()=>{h(l)},[l,h]),t.jsx($,{display:f?"block":"none",ref:u,role:"alert",...p,children:t.jsxs(ti,{$variant:d,id:g,children:[a?t.jsx(D,{clickable:!1,icon:Qn(d),iconSize:"xs",iconType:"fa-light"}):void 0,t.jsx(ni,{children:i}),r?t.jsx(B,{height:"fit-content",icon:"close",iconSize:"xs",iconType:"fa-light",onClick:b,px:.125,py:.125,variant:"ghost"}):void 0]})})}),ct=s.st.div`
|
|
422
|
-
${({theme:e})=>`
|
|
423
|
-
align-items: center;
|
|
424
|
-
background-color: ${e.palette.gray[200]};
|
|
425
|
-
border-radius: 100%;
|
|
426
|
-
color: ${e.palette.gray[800]};
|
|
427
|
-
display: flex;
|
|
428
|
-
font-family: ${e.typography.type.primary};
|
|
429
|
-
font-size: ${e.typography.text.xs};
|
|
430
|
-
font-weight: 500;
|
|
431
|
-
line-height: 18px;
|
|
432
|
-
justify-content: center;
|
|
433
|
-
text-align: center;
|
|
434
|
-
width: ${e.spacing[1.25]};
|
|
435
|
-
height: ${e.spacing[1.25]};
|
|
436
|
-
`}
|
|
437
|
-
`,li=s.st.div`
|
|
438
|
-
ul,
|
|
439
|
-
ol {
|
|
440
|
-
padding-top: 6px;
|
|
441
|
-
padding-bottom: 6px;
|
|
442
|
-
background-color: #fff;
|
|
443
|
-
position: absolute;
|
|
444
|
-
top: 40px;
|
|
445
|
-
right: 1px;
|
|
446
|
-
z-index: 1;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
.no-hover,
|
|
450
|
-
.user-info {
|
|
451
|
-
text-decoration: none;
|
|
452
|
-
display: flex;
|
|
453
|
-
justify-content: space-between;
|
|
454
|
-
height: auto;
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
.user-info,
|
|
458
|
-
.commit-info {
|
|
459
|
-
padding-left: 16px;
|
|
460
|
-
padding-right: 16px;
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
.user-info {
|
|
464
|
-
padding-top: 10px;
|
|
465
|
-
padding-bottom: 1px;
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
.commit-info {
|
|
469
|
-
padding-top: 1px;
|
|
470
|
-
padding-bottom: 10px;
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
li {
|
|
474
|
-
list-style-type: none;
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
span {
|
|
478
|
-
white-space: nowrap;
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
a {
|
|
482
|
-
color: ${({theme:e})=>e.palette.gray[800]};
|
|
483
|
-
text-decoration: none;
|
|
484
|
-
padding: unset;
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
a:hover {
|
|
488
|
-
text-decoration: none;
|
|
489
|
-
color: ${({theme:e})=>e.palette.gray[800]};
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
#menu-profile-container ul {
|
|
493
|
-
min-width: unset;
|
|
494
|
-
width: auto;
|
|
495
|
-
z-index: 10;
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
#menu-profile-container li div {
|
|
499
|
-
min-width: unset;
|
|
500
|
-
}
|
|
501
|
-
`,{getVariant:ci}=q(e=>({default:`
|
|
502
|
-
background-color: ${e.palette.gray[200]};
|
|
503
|
-
color: ${e.palette.gray[800]};
|
|
504
|
-
`,error:`
|
|
505
|
-
&.high {
|
|
506
|
-
background-color: ${e.palette.error[700]};
|
|
507
|
-
color: ${e.palette.white};
|
|
508
|
-
}
|
|
509
|
-
&.low {
|
|
510
|
-
background-color: ${e.palette.error[50]};
|
|
511
|
-
color: ${e.palette.error[700]};
|
|
512
|
-
}
|
|
513
|
-
&.medium {
|
|
514
|
-
background-color: ${e.palette.error[500]};
|
|
515
|
-
color: ${e.palette.error[50]};
|
|
516
|
-
}
|
|
517
|
-
`,inactive:`
|
|
518
|
-
background-color: ${e.palette.gray[200]};
|
|
519
|
-
color: ${e.palette.gray[600]};
|
|
520
|
-
`,info:`
|
|
521
|
-
&.high {
|
|
522
|
-
background-color: ${e.palette.info[700]};
|
|
523
|
-
color: ${e.palette.white};
|
|
524
|
-
}
|
|
525
|
-
&.low {
|
|
526
|
-
background-color: ${e.palette.info[50]};
|
|
527
|
-
color: ${e.palette.info[700]};
|
|
528
|
-
}
|
|
529
|
-
&.medium {
|
|
530
|
-
background-color: ${e.palette.info[500]};
|
|
531
|
-
color: ${e.palette.info[50]};
|
|
532
|
-
}
|
|
533
|
-
`,reachable:`
|
|
534
|
-
background-color: ${e.palette.gray[50]};
|
|
535
|
-
color: ${e.palette.gray[800]};
|
|
536
|
-
`,remediation:`
|
|
537
|
-
background-color: inherit;
|
|
538
|
-
border: 1px solid ${e.palette.gray[300]};
|
|
539
|
-
color: ${e.palette.gray[400]};
|
|
540
|
-
`,role:`
|
|
541
|
-
background-color: ${e.palette.gray[800]};
|
|
542
|
-
color: ${e.palette.white};
|
|
543
|
-
`,success:`
|
|
544
|
-
&.high {
|
|
545
|
-
background-color: ${e.palette.success[700]};
|
|
546
|
-
color: ${e.palette.white};
|
|
547
|
-
}
|
|
548
|
-
&.low {
|
|
549
|
-
background-color: ${e.palette.success[50]};
|
|
550
|
-
color: ${e.palette.success[700]};
|
|
551
|
-
}
|
|
552
|
-
&.medium {
|
|
553
|
-
background-color: ${e.palette.success[500]};
|
|
554
|
-
color: ${e.palette.success[50]};
|
|
555
|
-
}
|
|
556
|
-
`,technique:`
|
|
557
|
-
--tag-padding-y: ${e.spacing[.25]};
|
|
558
|
-
--tag-padding-x: ${e.spacing[.75]};
|
|
559
|
-
|
|
560
|
-
background-color: inherit;
|
|
561
|
-
border: 1px solid ${e.palette.success[800]};
|
|
562
|
-
color: ${e.palette.success[800]};
|
|
563
|
-
`,warning:`
|
|
564
|
-
&.high {
|
|
565
|
-
background-color: ${e.palette.warning[600]};
|
|
566
|
-
color: ${e.palette.white};
|
|
567
|
-
}
|
|
568
|
-
&.low {
|
|
569
|
-
background-color: ${e.palette.warning[50]};
|
|
570
|
-
color: ${e.palette.warning[700]};
|
|
571
|
-
}
|
|
572
|
-
&.medium {
|
|
573
|
-
background-color: ${e.palette.warning[400]};
|
|
574
|
-
color: ${e.palette.warning[700]};
|
|
575
|
-
}
|
|
576
|
-
`})),di=s.st.span`
|
|
577
|
-
${({theme:e,$fontSize:n=e.typography.text.xs,$variant:i})=>`
|
|
578
|
-
align-items: center;
|
|
579
|
-
border-radius: ${e.spacing[i==="technique"?1:.25]};
|
|
580
|
-
display: inline-flex;
|
|
581
|
-
gap: ${e.spacing[.25]};
|
|
582
|
-
font-family: ${e.typography.type.primary};
|
|
583
|
-
font-size: ${n};
|
|
584
|
-
font-style: normal;
|
|
585
|
-
font-weight: ${e.typography.weight.regular};
|
|
586
|
-
justify-content: center;
|
|
587
|
-
line-height: 18px;
|
|
588
|
-
padding: var(--tag-padding-y) var(--tag-padding-x);
|
|
589
|
-
white-space: nowrap;
|
|
590
|
-
width: max-content;
|
|
591
|
-
|
|
592
|
-
~ a {
|
|
593
|
-
font-size: ${e.typography.text.xs};
|
|
594
|
-
display: flex;
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
${ci(e,i)}
|
|
598
|
-
`}
|
|
599
|
-
`,{getVariant:pi}=q(e=>({highRelevance:`
|
|
600
|
-
color: ${e.palette.primary[500]};
|
|
601
|
-
|
|
602
|
-
&:hover:not([disabled]) {
|
|
603
|
-
color: ${e.palette.primary[400]};
|
|
604
|
-
}
|
|
605
|
-
`,lowRelevance:`
|
|
606
|
-
color: ${e.palette.gray[800]};
|
|
607
|
-
|
|
608
|
-
&:hover:not([disabled]) {
|
|
609
|
-
color: ${e.palette.gray[500]};
|
|
610
|
-
}
|
|
611
|
-
`})),vt=s.nt`
|
|
612
|
-
${({theme:e,$color:n,$variant:i})=>`
|
|
613
|
-
align-items: center;
|
|
614
|
-
cursor: pointer;
|
|
615
|
-
font-family: ${e.typography.type.primary};
|
|
616
|
-
font-size: ${e.typography.text.sm};
|
|
617
|
-
font-weight: ${e.typography.weight.regular};
|
|
618
|
-
gap: ${e.spacing[.25]};
|
|
619
|
-
line-height: ${e.spacing[1.25]};
|
|
620
|
-
text-decoration: underline;
|
|
621
|
-
word-break: break-word;
|
|
622
|
-
word-wrap: break-word;
|
|
623
|
-
|
|
624
|
-
&:disabled {
|
|
625
|
-
color: ${e.palette.gray[300]};
|
|
626
|
-
cursor: not-allowed;
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
&:has(button) {
|
|
630
|
-
text-decoration: none;
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
${n?`color: ${n}`:pi(e,i)}
|
|
634
|
-
`}
|
|
635
|
-
`,gi=s.st.a`
|
|
636
|
-
${vt}
|
|
637
|
-
`,ui=s.st(We.Link)`
|
|
638
|
-
${vt}
|
|
639
|
-
`,K=({children:e,color:n,download:i,href:r,iconPosition:a="right",onClick:o,target:l,variant:c="lowRelevance"})=>{const d=r.startsWith("https://"),g=t.jsx(D,{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(gi,{$color:n,$variant:c,download:i,href:r,onClick:o,rel:"nofollow noopener noreferrer",target:l??"_blank",children:[a==="left"?g:void 0,e,a==="right"?g:void 0]}):t.jsxs(ui,{$variant:c,download:i,onClick:o,rel:"nofollow noopener noreferrer",target:l,to:r,children:[l!==void 0&&a==="left"?g:void 0,e,l!==void 0&&a==="right"?g:void 0]})},V=({disabled:e,icon:n,iconColor:i="inherit",iconType:r="fa-light",id:a="close-tag",filterValues:o="",fontSize:l,href:c,linkLabel:d,onClose:g,priority:p="default",tagTitle:u="",tagLabel:f,variant:h="default"})=>{const b=f.length>25&&s.lodashExports.isEmpty(u+o),y=`${f.slice(0,25)}...`;return t.jsxs(pe,{className:"gap-0.5",display:c===void 0?"initial":"flex",size:"sm",children:[t.jsxs(di,{$fontSize:l,$variant:h,className:p,children:[n&&t.jsx(D,{icon:n,iconColor:i,iconSize:"xxs",iconType:r}),t.jsxs("span",{className:"w-full",children:[t.jsx("strong",{children:u}),t.jsx("span",{children:b?y:f}),t.jsx("strong",{className:"w-full",children:o})]}),g?t.jsx(B,{disabled:e,icon:"xmark",iconSize:"xxs",iconType:"fa-light",id:a,onClick:g,px:.125,py:.125,variant:"ghost"}):void 0]}),c===void 0?void 0:t.jsx(K,{href:c,children:d})]})},kt=(e,n=!0)=>{const i=window.open(e,n?void 0:"_self","noopener,noreferrer,");s.lodashExports.isObject(i)&&(i.opener=null)},P=x.forwardRef(function({children:n,disabled:i=!1,external:r=!1,fontSize:a,href:o,id:l,icon:c,iconColor:d,iconType:g,name:p,onClick:u,rightIcon:f,tag:h,type:b="button",tooltip:y,tooltipPlace:m="bottom",underline:j=!1,value:w,variant:v="primary",width:k,...C},z){const F=y!==void 0,S=`${l}-tooltip`,R=x.useCallback(()=>{o&&kt(o,r)},[r,o]),T=t.jsxs(jt,{$size:a,$variant:v,"aria-disabled":i,className:j?"underline":void 0,disabled:i,id:l,name:p,onClick:v==="link"?R:u,ref:z,type:b,value:w,width:k,...F?{"data-tooltip-id":S}:{},...C,children:[c!==void 0&&t.jsx(D,{icon:c,iconColor:d??void 0,iconSize:"xs",iconType:g??"fa-light"}),n,f||v==="link"?t.jsx(D,{icon:f??"arrow-right",iconSize:"xs",iconType:"fa-light"}):void 0,h===void 0?null:t.jsx(V,{tagLabel:h,variant:"default"})]});return F?t.jsx(G,{disabled:!F,id:S,place:m,tip:y,width:k,children:T}):T}),xi=x.forwardRef(function({children:n,onClick:i,userName:r,showIcon:a=!1,showUsername:o=!1},l){const c=!!i;return t.jsx($,{id:"navbar-user-profile",ref:l,zIndex:9999,children:t.jsxs($,{alignItems:"end",display:"flex",flexDirection:"column",position:"relative",zIndex:30,children:[c?t.jsxs(P,{onClick:i,pb:.5,pl:.5,pr:.5,pt:.5,variant:"ghost",children:[t.jsx(ct,{children:r[0].toUpperCase()}),o?t.jsx(I,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:r.split(" ")[0]}):void 0,a?t.jsx(D,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}):t.jsxs($,{alignItems:"center",display:"flex",px:.5,py:.5,children:[t.jsx(ct,{children:r[0].toUpperCase()}),o?t.jsxs(I,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:["Hi ",r.split(" ")[0],"!"]}):void 0,a?t.jsx(D,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}),t.jsx(li,{children:n})]})})}),Ne=({authorEmail:e,date:n,description:i,descriptionColor:r,id:a,title:o,titleColor:l,textAlign:c,textSpacing:d=0,tooltip:g})=>{const p=s.Je();return t.jsxs($,{width:"100%",children:[typeof o=="string"||g?t.jsxs($,{alignItems:"center",display:"inline-flex",gap:.5,width:"100%",children:[typeof o=="string"?t.jsx(I,{color:l??p.palette.gray[800],fontWeight:"bold",mb:d,size:"sm",textAlign:c,wordBreak:"break-word",children:o}):o,g&&t.jsx(G,{icon:"circle-info",id:a,place:"top",tip:g})]}):void 0,t.jsxs($,{alignItems:"start",display:"flex",flexDirection:"column",gap:.25,children:[i&&t.jsx(I,{color:r??p.palette.gray[800],fontWeight:i===void 0?"bold":"regular",size:"sm",textAlign:c,wordBreak:"break-word",children:i}),n&&t.jsx(I,{color:p.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`Date: ${n.split(" ")[0]}`}),e&&t.jsx(I,{color:p.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`Author: ${e}`})]})]})},dt=s.st($).attrs(({...e})=>({display:"inline-block",position:"relative",...e}))`
|
|
640
|
-
& img {
|
|
641
|
-
display: block;
|
|
642
|
-
}
|
|
643
|
-
|
|
644
|
-
&::after {
|
|
645
|
-
content: "";
|
|
646
|
-
position: absolute;
|
|
647
|
-
top: 0;
|
|
648
|
-
left: 0;
|
|
649
|
-
width: 100%;
|
|
650
|
-
height: 100%;
|
|
651
|
-
pointer-events: none;
|
|
652
|
-
${({$opacity:e=0})=>`background-color: rgba(0, 0, 0, ${e});`}
|
|
653
|
-
}
|
|
654
|
-
`,fi=e=>{if(s._.isNil(e))return"";const n=e.split(".");return(n.length>1?s._.last(n):"").toLowerCase()},hi=(e,n)=>s._.isUndefined(n)?!1:s._.includes(e,fi(n)),Ct=({alt:e,fileType:n,width:i="100%",opacity:r=0,src:a,height:o="auto",videoViewStatus:l})=>{const[c,d]=x.useState({start:!1,half:!1,end:!1}),g=x.useCallback(p=>{if(!l)return;const u=p.target,f=u.currentTime/u.duration*100;f>5&&f<50?(c.start||l("start"),d({start:!0,half:!1,end:!1})):f>=50&&f<99?(c.half||l("half"),d({start:!0,half:!0,end:!1})):f>=99?(c.end||l("end"),d({start:!0,half:!0,end:!0})):d({start:!1,half:!1,end:!1})},[l,c]);return n==="video"||hi(["webm"],a)?t.jsx(dt,{$opacity:r,children:t.jsx(K,{href:a,iconPosition:"hidden",children:t.jsxs("video",{controls:!0,muted:!0,onTimeUpdate:g,style:{height:o,width:i},children:[t.jsx("source",{src:a,type:"video/webm"}),a]})})}):t.jsx(dt,{$opacity:r,children:t.jsx("img",{alt:e,src:a,style:{height:o,width:i}})})},bi=({alt:e,authorEmail:n,date:i,description:r,src:a,children:o,isEditing:l,onClick:c,title:d,hideDescription:g=!1,headerType:p="image",showMaximize:u=!0,videoViewStatus:f})=>{const h=s.Je(),[b,y]=x.useState(!1),m=x.useCallback(()=>{y(!0)},[]),j=x.useCallback(()=>{y(!1)},[]);return t.jsxs($,{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($,{cursor:l?"unset":"pointer",display:"inline-flex",justify:"center",onClick:c,position:"relative",width:"100%",children:o===void 0?t.jsxs(x.Fragment,{children:[t.jsx(Ct,{alt:e,fileType:p,height:"147px",opacity:b?.3:0,src:a,videoViewStatus:f,width:"100%"}),u?t.jsx($,{bottom:"10px",position:"absolute",right:"10px",children:t.jsx(B,{color:"white",icon:"arrows-maximize",iconSize:"xxs",iconType:"fa-light",variant:"secondary"})}):void 0]}):o}),g?null:t.jsx(Ne,{authorEmail:n,date:i,description:r,descriptionColor:h.palette.gray[600],id:`${e}-card-header`,title:d})]})},yi=s.st.div`
|
|
655
|
-
${({theme:e,$align:n="center",$minWidth:i="auto",$minHeight:r="auto"})=>`
|
|
656
|
-
display: flex;
|
|
657
|
-
background-color: ${e.palette.white};
|
|
658
|
-
border-radius: ${e.spacing[.25]};
|
|
659
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
660
|
-
flex-direction: column;
|
|
661
|
-
justify-content: center;
|
|
662
|
-
gap: ${e.spacing[.5]};
|
|
663
|
-
min-width: ${i};
|
|
664
|
-
min-height: ${r};
|
|
665
|
-
padding: ${e.spacing[1]};
|
|
666
|
-
|
|
667
|
-
input {
|
|
668
|
-
color: ${e.palette.gray[800]};
|
|
669
|
-
line-height: ${e.spacing[1.5]};
|
|
670
|
-
text-align: ${n};
|
|
671
|
-
}
|
|
672
|
-
`}
|
|
673
|
-
`,Ke=({htmlFor:e,label:n,link:i,required:r,tooltip:a,weight:o="normal"})=>{const l=s.Je(),c=`${e}-tooltip`,d=a!==void 0&&!s.lodashExports.isEmpty(a);return t.jsxs("label",{className:"flex gap-1 w-full",htmlFor:e,style:{fontWeight:l.typography.weight[o]},children:[n,r&&t.jsx(D,{icon:"asterisk",iconColor:l.palette.error[500],iconSize:"xxss"}),i?t.jsx(K,{href:i,target:"_blank"}):null,d?t.jsx(G,{display:"inline-flex",icon:"circle-info",id:c,place:"top",tip:a}):null]})},$i=s.st.div`
|
|
674
|
-
${({theme:e})=>`
|
|
675
|
-
align-items: flex-start;
|
|
676
|
-
display: inline-flex;
|
|
677
|
-
flex-direction: column;
|
|
678
|
-
gap: ${e.spacing[.25]};
|
|
679
|
-
position: relative;
|
|
680
|
-
width: 100%;
|
|
681
|
-
|
|
682
|
-
label {
|
|
683
|
-
color: ${e.palette.gray[800]};
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
&:has(input.date-input) {
|
|
687
|
-
div {
|
|
688
|
-
padding-right: 0;
|
|
689
|
-
}
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
&:has(input[type="file"]) {
|
|
693
|
-
div {
|
|
694
|
-
border-right: unset;
|
|
695
|
-
padding-right: 0;
|
|
696
|
-
|
|
697
|
-
&:hover, &:focus-within {
|
|
698
|
-
border-right: unset;
|
|
699
|
-
}
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
|
|
703
|
-
> *:not(.error-msg) {
|
|
704
|
-
font-family: ${e.typography.type.primary};
|
|
705
|
-
font-size: ${e.typography.text.sm};
|
|
706
|
-
font-style: normal;
|
|
707
|
-
font-weight: ${e.typography.weight.regular};
|
|
708
|
-
line-height: ${e.spacing[1.25]};
|
|
709
|
-
}
|
|
710
|
-
`}
|
|
711
|
-
`,ee=s.st.div`
|
|
712
|
-
${({theme:e,$overflowX:n})=>`
|
|
713
|
-
align-items: center;
|
|
714
|
-
display: flex;
|
|
715
|
-
border-radius: ${e.spacing[.5]};
|
|
716
|
-
border: 1px solid;
|
|
717
|
-
border-color: ${e.palette.gray[300]};
|
|
718
|
-
color: ${e.palette.gray[600]};
|
|
719
|
-
gap: ${e.spacing[.625]};
|
|
720
|
-
justify-content: space-between;
|
|
721
|
-
height: 40px;
|
|
722
|
-
overflow-x: ${n??"unset"};
|
|
723
|
-
padding: ${n===void 0?`${e.spacing[.625]} ${e.spacing[.75]}`:`${e.spacing[.25]} ${e.spacing[.75]}`};
|
|
724
|
-
width: 100%;
|
|
725
|
-
white-space: nowrap;
|
|
726
|
-
|
|
727
|
-
input, textarea {
|
|
728
|
-
background: inherit;
|
|
729
|
-
color: ${e.palette.gray[800]};
|
|
730
|
-
cursor: inherit;
|
|
731
|
-
outline: none;
|
|
732
|
-
resize: none;
|
|
733
|
-
width: 100%;
|
|
734
|
-
|
|
735
|
-
&::placeholder {
|
|
736
|
-
color: ${e.palette.gray[400]};
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
&:focus-visible {
|
|
740
|
-
outline: none;
|
|
741
|
-
}
|
|
742
|
-
|
|
743
|
-
&[type="number"] {
|
|
744
|
-
appearance: textfield;
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
&::-webkit-outer-spin-button,
|
|
748
|
-
&::-webkit-inner-spin-button {
|
|
749
|
-
appearance: none;
|
|
750
|
-
margin: 0;
|
|
751
|
-
}
|
|
752
|
-
|
|
753
|
-
&::-webkit-calendar-picker-indicator {
|
|
754
|
-
display: none !important;
|
|
755
|
-
}
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
input.date-input {
|
|
759
|
-
display: none;
|
|
760
|
-
width: 0;
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
&:has(textarea) {
|
|
764
|
-
align-items: start;
|
|
765
|
-
height: auto;
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
&:has(input[type="number"]) {
|
|
769
|
-
padding-right: 0;
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
textarea {
|
|
773
|
-
min-height: ${e.spacing[6]};
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
span:not(.action) {
|
|
777
|
-
font-size: 14px;
|
|
778
|
-
}
|
|
779
|
-
|
|
780
|
-
&.disabled {
|
|
781
|
-
background: ${e.palette.gray[100]};
|
|
782
|
-
cursor: not-allowed;
|
|
783
|
-
|
|
784
|
-
> * {
|
|
785
|
-
color: ${e.palette.gray[400]};
|
|
786
|
-
}
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
&.error:not(.disabled) {
|
|
790
|
-
border: 1px solid ${e.palette.error[500]};
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
&.success:not(.disabled) {
|
|
794
|
-
border: 1px solid ${e.palette.success[500]};
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
&:focus-within:not(.disabled, .error) {
|
|
798
|
-
background: ${e.palette.white};
|
|
799
|
-
border: 2px solid ${e.palette.black};
|
|
800
|
-
|
|
801
|
-
button.action-btn {
|
|
802
|
-
height: 36px;
|
|
803
|
-
width: 40px;
|
|
804
|
-
}
|
|
805
|
-
|
|
806
|
-
* > .success-icon {
|
|
807
|
-
display: none;
|
|
808
|
-
}
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
&:hover:not(:focus-within, .disabled, .error, .success) {
|
|
812
|
-
background: ${e.palette.white};
|
|
813
|
-
border: 1px solid ${e.palette.gray[600]};
|
|
814
|
-
}
|
|
815
|
-
`}
|
|
816
|
-
`,J=({children:e,id:n,error:i,helpLink:r,helpLinkText:a="Link here",helpText:o,htmlFor:l,label:c,linkPosition:d="down",maxLength:g,required:p,tooltip:u,value:f,weight:h})=>{const b=s.Je(),y=f?f.length:0;return t.jsxs($i,{id:n,children:[c===void 0?void 0:t.jsx(Ke,{htmlFor:l,label:c,link:d==="up"?r:void 0,required:p,tooltip:u,weight:h}),e,i||g?t.jsxs($,{display:"flex",justify:i===void 0?"end":"space-between",width:"100%",children:[i&&t.jsx(I,{className:"error-msg",color:b.palette.error[500],display:"block",lineSpacing:1,size:"sm",children:i}),g&&t.jsx(V,{priority:"low",tagLabel:`${y}/${g}`,variant:"error"})]}):void 0,o||r?t.jsxs($,{alignItems:"center",display:"flex",gap:.25,width:"100%",children:[o&&t.jsxs(t.Fragment,{children:[t.jsx(D,{icon:"circle-info",iconColor:b.palette.gray[400],iconSize:"xxs",iconType:"fa-light"}),t.jsx(I,{color:b.palette.gray[400],display:"inline-block",size:"sm",children:o})]}),r&&d==="down"?t.jsx(K,{href:r,children:a}):void 0]}):void 0]})},ke=({className:e,children:n,isFilter:i=!1,popoverRef:r,state:a,triggerRef:o,...l})=>{var u;const c=x.useRef(null),d=(u=o==null?void 0:o.current)==null?void 0:u.getBoundingClientRect(),{popoverProps:g}=s.$f2f8a6077418541e$export$542a6fd13ac93354({...l,popoverRef:r??c,triggerRef:o,isNonModal:r?!0:void 0},a),p=x.useCallback(f=>{f.preventDefault()},[]);return t.jsx(s.$337b884510726a0d$export$c6fdb837b070b4ff,{children:t.jsx("div",{...g,className:e,id:"popover",onPointerDown:i?p:void 0,ref:r??c,style:{...g.style,...e==="dropdown"?{display:"flex",justifyContent:"center",width:d==null?void 0:d.width}:{}},children:n})})},mi=s.st.ul`
|
|
817
|
-
${({theme:e,$multiSelection:n})=>`
|
|
818
|
-
align-self: center;
|
|
819
|
-
background: ${e.palette.white};
|
|
820
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
821
|
-
border-radius: ${e.spacing[.25]};
|
|
822
|
-
box-shadow: ${e.shadows.md};
|
|
823
|
-
list-style: none;
|
|
824
|
-
max-height: 200px;
|
|
825
|
-
min-width: 240px;
|
|
826
|
-
overflow: hidden auto;
|
|
827
|
-
padding: ${e.spacing[.25]} 0;
|
|
828
|
-
scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
|
|
829
|
-
scroll-padding: ${e.spacing[.5]};
|
|
830
|
-
width: 95%;
|
|
831
|
-
|
|
832
|
-
> li:first-child {
|
|
833
|
-
border-bottom: ${n?`1px solid ${e.palette.gray[200]}`:"unset"};
|
|
834
|
-
}
|
|
835
|
-
`}
|
|
836
|
-
`,wi=s.st.li`
|
|
837
|
-
${({theme:e,$multiSelection:n})=>`
|
|
838
|
-
align-items: center;
|
|
839
|
-
color: ${e.palette.gray[800]};
|
|
840
|
-
cursor: pointer;
|
|
841
|
-
display: flex;
|
|
842
|
-
gap: ${e.spacing[.5]};
|
|
843
|
-
justify-content: space-between;
|
|
844
|
-
line-height: ${e.spacing[1.25]};
|
|
845
|
-
padding: ${n?`${e.spacing[.125]} ${e.spacing[.75]}`:`${e.spacing[.25]} ${e.spacing[1]}`};
|
|
846
|
-
|
|
847
|
-
a, p, label {
|
|
848
|
-
display: inline-flex;
|
|
849
|
-
overflow: hidden;
|
|
850
|
-
padding: ${n?e.spacing[.25]:"0"};
|
|
851
|
-
width: 100%;
|
|
852
|
-
}
|
|
853
|
-
|
|
854
|
-
> div {
|
|
855
|
-
width: 100%;
|
|
856
|
-
}
|
|
857
|
-
|
|
858
|
-
span {
|
|
859
|
-
color: ${e.palette.gray[700]};
|
|
860
|
-
}
|
|
861
|
-
|
|
862
|
-
&:hover:not(.disabled, .selected) {
|
|
863
|
-
background: ${e.palette.gray[100]};
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
&.selected {
|
|
867
|
-
background: ${n?"unset":e.palette.gray[200]};
|
|
868
|
-
}
|
|
869
|
-
|
|
870
|
-
&.disabled {
|
|
871
|
-
background: ${e.palette.gray[100]};
|
|
872
|
-
cursor: not-allowed;
|
|
873
|
-
|
|
874
|
-
p, span {
|
|
875
|
-
color: ${e.palette.gray[500]};
|
|
876
|
-
}
|
|
877
|
-
}
|
|
878
|
-
`}
|
|
879
|
-
`,ji=s.st.label`
|
|
880
|
-
${({theme:e})=>`
|
|
881
|
-
align-items: center;
|
|
882
|
-
color: ${e.palette.gray[600]};
|
|
883
|
-
display: flex;
|
|
884
|
-
cursor: pointer;
|
|
885
|
-
font-family: ${e.typography.type.primary};
|
|
886
|
-
font-size: ${e.typography.text.sm};
|
|
887
|
-
font-weight: ${e.typography.weight.regular};
|
|
888
|
-
line-height: ${e.spacing[1]};
|
|
889
|
-
letter-spacing: 0;
|
|
890
|
-
position: relative;
|
|
891
|
-
text-align: left;
|
|
892
|
-
|
|
893
|
-
&[aria-disabled="true"] {
|
|
894
|
-
color: ${e.palette.gray[300]};
|
|
895
|
-
cursor: not-allowed;
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
input {
|
|
899
|
-
position: absolute;
|
|
900
|
-
opacity: 0;
|
|
901
|
-
cursor: pointer;
|
|
902
|
-
}
|
|
903
|
-
|
|
904
|
-
svg {
|
|
905
|
-
background-color: ${e.palette.white};
|
|
906
|
-
border-radius: ${e.spacing[.25]};
|
|
907
|
-
border: 1px solid ${e.palette.gray[600]};
|
|
908
|
-
top: 0;
|
|
909
|
-
left: 0;
|
|
910
|
-
height: ${e.spacing[.5]};
|
|
911
|
-
margin-right: ${e.spacing[.5]};
|
|
912
|
-
width: ${e.spacing[.5]};
|
|
913
|
-
padding: ${e.spacing[.25]};
|
|
914
|
-
}
|
|
915
|
-
|
|
916
|
-
svg > path {
|
|
917
|
-
fill: ${e.palette.white};
|
|
918
|
-
}
|
|
919
|
-
|
|
920
|
-
input:checked ~ span > svg {
|
|
921
|
-
background-color: ${e.palette.primary[500]};
|
|
922
|
-
border: 1px solid ${e.palette.primary[500]};
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
input:disabled ~ span > svg {
|
|
926
|
-
border: 1px solid ${e.palette.gray[300]};
|
|
927
|
-
cursor: not-allowed;
|
|
928
|
-
}
|
|
929
|
-
|
|
930
|
-
input:not(:disabled):hover ~ span > svg {
|
|
931
|
-
box-shadow: 0 0 0 4px ${e.palette.gray[100]};
|
|
932
|
-
}
|
|
933
|
-
|
|
934
|
-
input:checked:disabled ~ span > svg {
|
|
935
|
-
background-color: ${e.palette.gray[300]};
|
|
936
|
-
border: 1px solid ${e.palette.gray[300]};
|
|
937
|
-
}
|
|
938
|
-
|
|
939
|
-
input:not(:disabled):hover:checked ~ span > svg {
|
|
940
|
-
box-shadow: 0 0 0 4px ${e.palette.primary[50]};
|
|
941
|
-
}
|
|
942
|
-
|
|
943
|
-
input:checked ~ span > svg > path {
|
|
944
|
-
fill: ${e.palette.white};
|
|
945
|
-
}
|
|
946
|
-
|
|
947
|
-
input:checked:disabled ~ span > svg > path {
|
|
948
|
-
fill: ${e.palette.white};
|
|
949
|
-
}
|
|
950
|
-
`}
|
|
951
|
-
`,ne=x.forwardRef(function({checked:n,disabled:i=!1,label:r,name:a,onChange:o,onClick:l,onFocus:c,onKeyDown:d,tooltip:g,value:p,...u},f){return t.jsxs("div",{className:"gap-1 inline-flex items-start",children:[t.jsxs(ji,{"aria-disabled":i,children:[t.jsx("input",{"aria-checked":n,"aria-disabled":i,"aria-hidden":!1,"aria-label":a,checked:n,"data-testid":r??p,disabled:i,id:a,name:a,onChange:o,onClick:l,onFocus:c,onKeyDown:d,ref:f,type:"checkbox",value:p,...u}),t.jsx(D,{disabled:i,icon:"check",iconSize:"sm"}),r??p]}),g===void 0?void 0:t.jsx(G,{icon:"circle-info",id:g,place:"right",tip:g})]})}),ie=(e,n,i=!1,r)=>{x.useEffect(()=>{var o;const a=l=>{e&&!e.contains(l.target)&&!(r!=null&&r.contains(l.target))&&n()};return i?(document.addEventListener("mousedown",a,!0),()=>{document.removeEventListener("mousedown",a,!0)}):((o=document.getElementById("root"))==null||o.addEventListener("mousedown",a,!0),()=>{var l;(l=document.getElementById("root"))==null||l.removeEventListener("mousedown",a,!0)})},[i,e,r,n])},St=({item:e,multiSelection:n,name:i,register:r,setInputValue:a,setValue:o,state:l,watch:c})=>{var F,S,R;const d=s.Je(),g=x.useRef(null),p=e.props.hrefLang,u=l.disabledKeys,f=Array.from(l.collection.getKeys()).filter(T=>!Array.from(u).includes(T)&&T!=="All"),{optionProps:h,isSelected:b,isFocused:y,isDisabled:m}=s.$293f70390ea03370$export$497855f14858aa34({key:e.key},l,g),j=[b?"selected":"",y?"focused":"",m?"disabled":""].join(" "),w=x.useCallback(T=>{a(""),o==null||o(`${i}Options`,""),T.currentTarget.checked&&(a(T.currentTarget.value),o==null||o(`${i}Options`,f))},[f,i,a,o]),v=x.useCallback(()=>{const T=c==null?void 0:c(`${i}Options`),L=typeof T=="string"?[T]:T;s.isEqual(f,L)&&!Array.from(u).includes("All")?(o==null||o("checkAll","All vulnerability types"),a("All vulnerability types")):(o==null||o("checkAll",""),a((L==null?void 0:L.length)<=2?L.join(", "):`${L.slice(0,2).join(", ")+`, +${L.length-2} more`}`))},[u,f,i,a,o,c]),k=e.key==="All"?t.jsx(ne,{...r==null?void 0:r("checkAll",{onChange:w}),label:(F=e.rendered)==null?void 0:F.toString(),name:"checkAll",value:(S=e.rendered)==null?void 0:S.toString()}):t.jsx(ne,{...r==null?void 0:r(`${i}Options`,{onChange:v}),label:(R=e.rendered)==null?void 0:R.toString(),name:`${i}Options`,value:e.key.toString()}),C=n&&!m?k:t.jsx(I,{color:d.palette.gray[800],size:"sm",textOverflow:"ellipsis",whiteSpace:"nowrap",children:e.rendered}),z=x.useCallback(T=>{var L;T.preventDefault(),a(((L=e.rendered)==null?void 0:L.toString())??""),l.setSelectedKey(e.key),setTimeout(()=>{l.setOpen(!1)},50),kt(p)},[p,e.key,e.rendered,l,a]);return ie(document.getElementsByClassName("dropdown")[0],()=>{n&&l.close()},!0,document.getElementById("combobox")),t.jsxs(wi,{...!n&&!p?h:{},$multiSelection:n,className:j,ref:g,children:[p?t.jsx(K,{href:p,onClick:z,children:C}):C,b&&!m&&!n?t.jsx(D,{icon:"check",iconSize:"xxs",iconType:"fa-light"}):void 0,e.rendered===e.textValue?void 0:t.jsx(V,{tagLabel:e.textValue,variant:"inactive"})]})},Be=({field:e,disabled:n=!1,disabledKeys:i,error:r,helpLink:a,helpLinkText:o,helpText:l,label:c,loadingItems:d,name:g,multiSelection:p=!1,items:u,onBlur:f,onChange:h,placeholder:b,register:y,required:m,setValue:j,tooltip:w,value:v,watch:k,weight:C})=>{var st;const z=s.Je(),F=n?void 0:r,S=(e==null?void 0:e.value)??v,[R,T]=x.useState(((st=u.find(A=>A.value===S))==null?void 0:st.name)??""),[L,Y]=x.useState(S),[Z,te]=x.useState(u),[W,O]=x.useState(!1),{contains:M}=s.$bb77f239b46e8c72$export$3274cf84b703fff({sensitivity:"base"}),oe=x.useRef(null),Ae=x.useRef(null),Pe=x.useRef(null),rt=x.useRef(null),at=x.useRef(null),mn=x.useMemo(()=>u.toSorted((A,H)=>{const _=Array.from(i??[]),se=_.includes(A.value),lt=_.includes(H.value);return se&&!lt?1:!se&<?-1:0}).map(A=>M(A.name,R)||W?t.jsx(s.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,{"aria-label":A.value,hrefLang:A.href,textValue:A.tag,children:A.name},A.value):null),[M,i,R,u,W]),wn=x.useCallback(A=>{const H=A.split(/,|\s/u).slice(-1)[0].trim();T(p?H:A),A===""||A.endsWith(",")?O(!0):(O(!1),Y(_=>{const se=A===""?"":_;return e&&e.onChange(se),h&&h(A),se}),te(u.filter(_=>M(_.name,p?H:A))))},[M,u,e,p,h]),jn=x.useCallback(A=>{var H;T(((H=u.find(_=>_.value===A))==null?void 0:H.name)??""),Y(A?String(A):""),e&&e.onChange(A),h&&h(A?String(A):""),te(u)},[u,e,h]),ot=x.useCallback(A=>{A.key==="Enter"&&A.preventDefault(),O(!1)},[]),vn=x.useCallback(()=>{f&&f(),e&&e.onBlur()},[e,f]),kn=x.useCallback(()=>{O(!0)},[]),X=s.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({allowsCustomValue:p,allowsEmptyCollection:!0,disabledKeys:i,inputValue:R,items:Z,menuTrigger:"focus",shouldCloseOnBlur:!p,selectedKey:L,onBlur:vn,onInputChange:wn,onKeyDown:ot,onKeyUp:kn,onOpenChange(A,H){O(A&&(H==="manual"||H==="focus")),A&&setTimeout(()=>{var _;return(_=oe.current)==null?void 0:_.focus()},50)},onSelectionChange:p?void 0:jn,children:mn}),{buttonProps:Cn,inputProps:Sn,listBoxProps:zn}=s.$c350ade66beef0af$export$8c18d1b4f7232bbf({inputValue:R,buttonRef:Ae,id:g,inputRef:oe,label:c??g,listBoxRef:Pe,name:g,placeholder:b,popoverRef:at},X),{listBoxProps:In}=s.$c132121280ec012d$export$50eacbbf140a3141(zn,X,Pe),{buttonProps:Tn}=s.$701a24aa0da5b062$export$ea18c227d4417cc3(Cn,Ae);return x.useEffect(()=>{var A;if((d===!1||!S)&&!p){const H=((A=u.find(_=>_.value===S))==null?void 0:A.name)??"";T(H),Y(H)}},[S,u,d,p]),t.jsxs(J,{error:F,helpLink:a,helpLinkText:o,helpText:l,htmlFor:g,id:"combobox",label:c,required:m,tooltip:w,weight:C,children:[t.jsxs(ee,{className:`${n?"disabled":""} ${F?"error":""}`,ref:rt,children:[t.jsx("input",{...Sn,"aria-invalid":F?"true":"false","aria-label":g,disabled:n,onKeyDown:ot,ref:oe}),F?t.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:z.palette.error[500],iconSize:"xs"}):void 0,t.jsx(B,{...Tn,className:"action",disabled:n,icon:X.isOpen&&!n?"chevron-up":"chevron-down",iconColor:z.palette.gray[400],iconSize:"xxs",iconType:"fa-light",px:.125,py:.125,ref:Ae,type:"button",variant:"ghost"})]}),X.isOpen&&X.collection.size>0&&!n?t.jsx(ke,{className:"dropdown",offset:4,placement:"bottom start",popoverRef:at,state:X,triggerRef:rt,children:t.jsx(mi,{...In,$multiSelection:p&&!Array.from(i??[]).includes("All"),ref:Pe,children:[...X.collection].map(A=>t.jsx(St,{item:A,multiSelection:p,name:g,register:y,setInputValue:T,setValue:j,state:X,watch:k},A.key))})}):null]})},Ze=({control:e,disabled:n=!1,disabledKeys:i,error:r,helpLink:a,helpLinkText:o,helpText:l,label:c,loadingItems:d,name:g,multiSelection:p,items:u,onBlur:f,onChange:h,placeholder:b,register:y,required:m,setValue:j,tooltip:w,value:v,watch:k,weight:C})=>e?t.jsx(s.Controller,{control:e,name:g,render:({field:z,fieldState:F})=>{var S;return t.jsx(Be,{disabled:n,disabledKeys:i,error:(S=F.error)==null?void 0:S.message,field:z,helpLink:a,helpLinkText:o,helpText:l,items:u,label:c,loadingItems:d,multiSelection:p,name:g,onBlur:f,onChange:h,placeholder:b,register:y,required:m,setValue:j,tooltip:w,value:v,watch:k,weight:C})},rules:{required:m}}):t.jsx(Be,{disabled:n,disabledKeys:i,error:r,helpLink:a,helpLinkText:o,helpText:l,items:u,label:c,loadingItems:d,multiSelection:p,name:g,onBlur:f,onChange:h,placeholder:b,required:m,tooltip:w,value:v,weight:C}),vi=s.st.div`
|
|
952
|
-
${({theme:e})=>`
|
|
953
|
-
align-items: center;
|
|
954
|
-
color: ${e.palette.gray[800]};
|
|
955
|
-
display: flex;
|
|
956
|
-
font-family: ${e.typography.type.primary};
|
|
957
|
-
font-size: ${e.typography.text.sm};
|
|
958
|
-
font-weight: ${e.typography.weight.bold};
|
|
959
|
-
gap: ${e.spacing[.5]};
|
|
960
|
-
height: 40px;
|
|
961
|
-
justify-content: center;
|
|
962
|
-
line-height: ${e.spacing[1.25]};
|
|
963
|
-
text-align: center;
|
|
964
|
-
padding: ${e.spacing[.5]} 0;
|
|
965
|
-
width: 200px;
|
|
966
|
-
word-spacing: ${e.spacing[.25]};
|
|
967
|
-
|
|
968
|
-
&:not(:hover) .year-selection {
|
|
969
|
-
display: none;
|
|
970
|
-
}
|
|
971
|
-
`}
|
|
972
|
-
`,ki=s.st.div.attrs({className:"year-selection"})`
|
|
973
|
-
align-items: flex-start;
|
|
974
|
-
display: flex;
|
|
975
|
-
flex-direction: column;
|
|
976
|
-
gap: 6px;
|
|
977
|
-
height: 14px;
|
|
978
|
-
justify-content: center;
|
|
979
|
-
margin-bottom: 10px;
|
|
980
|
-
padding: 0 0.5px;
|
|
981
|
-
position: relative;
|
|
982
|
-
width: 8px;
|
|
983
|
-
`,pt=s.st.tr`
|
|
984
|
-
align-items: flex-start;
|
|
985
|
-
display: flex;
|
|
986
|
-
padding: ${({theme:e})=>e.spacing[.25]} 0;
|
|
987
|
-
width: 100%;
|
|
988
|
-
`,zt=s.nt`
|
|
989
|
-
${({theme:e})=>`
|
|
990
|
-
align-items: center;
|
|
991
|
-
color: ${e.palette.gray[800]};
|
|
992
|
-
cursor: pointer;
|
|
993
|
-
display: flex;
|
|
994
|
-
flex-direction: column;
|
|
995
|
-
font-family: ${e.typography.type.primary};
|
|
996
|
-
font-size: ${e.typography.text.sm};
|
|
997
|
-
font-weight: ${e.typography.weight.regular};
|
|
998
|
-
height: ${e.spacing[2.5]};
|
|
999
|
-
justify-content: center;
|
|
1000
|
-
line-height: ${e.spacing[1.25]};
|
|
1001
|
-
text-align: center;
|
|
1002
|
-
width: ${e.spacing[2.5]};
|
|
1003
|
-
`}
|
|
1004
|
-
`,Ci=s.st.th`
|
|
1005
|
-
${zt}
|
|
1006
|
-
`,Si=s.st.td`
|
|
1007
|
-
${({theme:e})=>`
|
|
1008
|
-
${zt}
|
|
1009
|
-
height: ${e.spacing[2.5]};
|
|
1010
|
-
width: ${e.spacing[2.5]};
|
|
1011
|
-
|
|
1012
|
-
&#range {
|
|
1013
|
-
background: ${e.palette.primary[25]};
|
|
1014
|
-
}
|
|
1015
|
-
|
|
1016
|
-
div:not(.dot) {
|
|
1017
|
-
align-items: center;
|
|
1018
|
-
display: flex;
|
|
1019
|
-
flex-direction: column;
|
|
1020
|
-
font-size: ${e.typography.text.sm};
|
|
1021
|
-
justify-content: center;
|
|
1022
|
-
height: ${e.spacing[2.5]};
|
|
1023
|
-
line-height: ${e.spacing[1.25]};
|
|
1024
|
-
position: relative;
|
|
1025
|
-
text-align: center;
|
|
1026
|
-
width: ${e.spacing[2.5]};
|
|
1027
|
-
|
|
1028
|
-
&:focus-visible {
|
|
1029
|
-
outline: none;
|
|
1030
|
-
}
|
|
1031
|
-
|
|
1032
|
-
&:hover:not(.disabled, .selected, .range) {
|
|
1033
|
-
background: ${e.palette.gray[100]};
|
|
1034
|
-
}
|
|
1035
|
-
|
|
1036
|
-
&.disabled {
|
|
1037
|
-
color: ${e.palette.gray[400]};
|
|
1038
|
-
cursor: auto;
|
|
1039
|
-
}
|
|
1040
|
-
|
|
1041
|
-
&.selected {
|
|
1042
|
-
background: ${e.palette.primary[500]};
|
|
1043
|
-
color: ${e.palette.white};
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
|
-
&.focused {
|
|
1047
|
-
border: 2px solid ${e.palette.primary[500]};
|
|
1048
|
-
}
|
|
1049
|
-
|
|
1050
|
-
&.today:not(.selected) {
|
|
1051
|
-
color: ${e.palette.primary[500]};
|
|
1052
|
-
font-weight: ${e.typography.weight.bold};
|
|
1053
|
-
}
|
|
1054
|
-
}
|
|
1055
|
-
`}
|
|
1056
|
-
`,zi=s.st.div.attrs({className:"dot"})`
|
|
1057
|
-
position: absolute;
|
|
1058
|
-
top: 48%;
|
|
1059
|
-
|
|
1060
|
-
> span {
|
|
1061
|
-
font-size: 4px;
|
|
1062
|
-
}
|
|
1063
|
-
`,gt=s.st.button`
|
|
1064
|
-
cursor: pointer;
|
|
1065
|
-
display: flex;
|
|
1066
|
-
|
|
1067
|
-
> span {
|
|
1068
|
-
height: 3.5px;
|
|
1069
|
-
width: 7px;
|
|
1070
|
-
}
|
|
1071
|
-
`,Xe=s.st.div`
|
|
1072
|
-
${({theme:e})=>`
|
|
1073
|
-
align-items: end;
|
|
1074
|
-
border-top: 1px solid ${e.palette.gray[200]};
|
|
1075
|
-
display: flex;
|
|
1076
|
-
flex-direction: row-reverse;
|
|
1077
|
-
gap: ${e.spacing[.5]};
|
|
1078
|
-
height: 44px;
|
|
1079
|
-
margin-bottom: ${e.spacing[.25]};
|
|
1080
|
-
padding: 0 ${e.spacing[.25]};
|
|
1081
|
-
width: 100%;
|
|
1082
|
-
`}
|
|
1083
|
-
`,It=({state:e,date:n})=>{const i=x.useRef(null),r=s.$14e0f24ef4ac5c92$export$629b0a497aa65267(n,s.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),{cellProps:a,buttonProps:o,isSelected:l,isDisabled:c,formattedDate:d}=s.$36a0ac60f04457c5$export$136073280381448e({date:n},e,i),g="highlightedRange"in e&&!s.lodashExports.isNull(e.highlightedRange)?s.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.start):l,p="highlightedRange"in e&&!s.lodashExports.isNull(e.highlightedRange)?s.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.end):l,u=l&&!c&&!(g||p)?"range":"";return t.jsx(Si,{id:u,...a,children:t.jsxs("div",{...o,className:`cell ${g||p?"selected":""}
|
|
1084
|
-
${c?"disabled":""} ${r?"today":""}
|
|
1085
|
-
${!e.isFocused&&!r?"focused":""} ${u}`,ref:i,children:[d,r?t.jsx(zi,{children:t.jsx(D,{clickable:!1,icon:"circle",iconSize:"xxs"})}):void 0]})})},De=({state:e,...n})=>{const{locale:i}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{weekDays:r}=s.$e3031d1f8c9d64eb$export$cb95147730a423f5(n,e),a=s.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654(e.visibleRange.start,i);return t.jsxs("table",{children:[t.jsx("thead",{children:t.jsx(pt,{children:r.map((o,l)=>{const c=`key_${l}`;return t.jsx(Ci,{children:o},c)})})}),t.jsx("tbody",{children:[...new Array(a).keys()].map(o=>t.jsx(pt,{children:e.getDatesInWeek(o).map((l,c)=>{const d=`key_${c}`;return l?t.jsx(It,{date:l,state:e},d):t.jsx("td",{},d)})},o))})]})},Ii=s.st(Ve)`
|
|
1086
|
-
align-items: center;
|
|
1087
|
-
background-color: inherit;
|
|
1088
|
-
border-color: inherit;
|
|
1089
|
-
display: flex;
|
|
1090
|
-
height: 38px;
|
|
1091
|
-
justify-content: center;
|
|
1092
|
-
width: 40px;
|
|
1093
|
-
margin: ${({$margin:e="0"})=>s.nt`
|
|
1094
|
-
${e}
|
|
1095
|
-
`};
|
|
1096
|
-
|
|
1097
|
-
&:disabled {
|
|
1098
|
-
cursor: not-allowed;
|
|
1099
|
-
}
|
|
1100
|
-
|
|
1101
|
-
&:hover:not(:disabled) {
|
|
1102
|
-
background-color: ${({theme:e})=>e.palette.gray[100]};
|
|
1103
|
-
cursor: pointer;
|
|
1104
|
-
}
|
|
1105
|
-
`,Ti=s.st.div`
|
|
1106
|
-
${({theme:e})=>`
|
|
1107
|
-
align-items: flex-start;
|
|
1108
|
-
background: ${e.palette.white};
|
|
1109
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
1110
|
-
border-radius: ${e.spacing[.5]};
|
|
1111
|
-
box-shadow: ${e.shadows.md};
|
|
1112
|
-
display: inline-flex;
|
|
1113
|
-
flex-direction: column;
|
|
1114
|
-
gap: ${e.spacing[.25]};
|
|
1115
|
-
height: auto;
|
|
1116
|
-
padding: ${e.spacing[.25]};
|
|
1117
|
-
width: 292px;
|
|
1118
|
-
`}
|
|
1119
|
-
`,Fi=s.st.button`
|
|
1120
|
-
${({theme:e,$disabled:n,$focus:i,$header:r})=>{const a=i?"34px":"40px";return`
|
|
1121
|
-
align-items: center;
|
|
1122
|
-
border-radius: ${r?`0 ${e.spacing[.5]} ${e.spacing[.5]} 0`:"4px"};
|
|
1123
|
-
border-left: inherit;
|
|
1124
|
-
display: flex;
|
|
1125
|
-
height: ${r?"38px":a};
|
|
1126
|
-
justify-content: center;
|
|
1127
|
-
outline: none;
|
|
1128
|
-
width: ${r?"38px":"40px"};
|
|
1129
|
-
|
|
1130
|
-
&:hover {
|
|
1131
|
-
background-color: ${e.palette.gray[n?500:100]};
|
|
1132
|
-
}
|
|
1133
|
-
`}}
|
|
1134
|
-
`,Ni=s.st.div`
|
|
1135
|
-
${({theme:e})=>`
|
|
1136
|
-
align-items: center;
|
|
1137
|
-
background: transparent;
|
|
1138
|
-
border-radius: ${e.spacing[.5]} 0 0 ${e.spacing[.5]};
|
|
1139
|
-
border-color: inherit;
|
|
1140
|
-
display: flex;
|
|
1141
|
-
height: 100%;
|
|
1142
|
-
justify-content: space-between;
|
|
1143
|
-
width: calc(100% - 40px);
|
|
1144
|
-
`}
|
|
1145
|
-
`,Di=s.st.div`
|
|
1146
|
-
align-items: center;
|
|
1147
|
-
display: flex;
|
|
1148
|
-
justify-content: flex-end;
|
|
1149
|
-
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1150
|
-
flex: 1 0 0;
|
|
1151
|
-
`,ut=s.st.div`
|
|
1152
|
-
${({theme:e})=>`
|
|
1153
|
-
align-items: center;
|
|
1154
|
-
align-self: stretch;
|
|
1155
|
-
background-color: ${e.palette.gray[200]};
|
|
1156
|
-
border-radius: ${e.spacing[.25]};
|
|
1157
|
-
display: flex;
|
|
1158
|
-
font-family: ${e.typography.type.primary};
|
|
1159
|
-
gap: ${e.spacing[.25]};
|
|
1160
|
-
line-height: ${e.spacing[1.5]};
|
|
1161
|
-
padding: 2px ${e.spacing[.25]};
|
|
1162
|
-
`}
|
|
1163
|
-
`,xt=s.st.button`
|
|
1164
|
-
${({theme:e})=>`
|
|
1165
|
-
align-items: center;
|
|
1166
|
-
background-color: inherit;
|
|
1167
|
-
border: 0.5px solid ${e.palette.gray[200]};
|
|
1168
|
-
border-radius: 7px;
|
|
1169
|
-
color: ${e.palette.gray[800]};
|
|
1170
|
-
cursor: pointer;
|
|
1171
|
-
display: flex;
|
|
1172
|
-
font-weight: ${e.typography.weight.regular};
|
|
1173
|
-
justify-content: center;
|
|
1174
|
-
gap: 10px;
|
|
1175
|
-
padding: 2px 10px;
|
|
1176
|
-
|
|
1177
|
-
&#active {
|
|
1178
|
-
background-color: ${e.palette.white};
|
|
1179
|
-
box-shadow: ${e.shadows.md};
|
|
1180
|
-
font-weight: ${e.typography.weight.bold};
|
|
1181
|
-
}
|
|
1182
|
-
`}
|
|
1183
|
-
`,Ie=({disabled:e=!1,icon:n,props:i})=>{const r=x.useRef(null),{buttonProps:a}=s.$701a24aa0da5b062$export$ea18c227d4417cc3(i,r);return t.jsx(Fi,{...a,$disabled:e,$focus:!!a["aria-expanded"],$header:n==="calendar"||n==="calendar-clock",disabled:e,ref:r,type:"button",children:t.jsx(D,{icon:n,iconColor:N.palette.gray[e?400:700],iconSize:"xs",iconType:"fa-light"})})},Ee=({state:e,prevButtonProps:n,nextButtonProps:i,title:r})=>{const a=e.focusedDate,o=x.useCallback(()=>{e.setFocusedDate(a.add({years:1}))},[a,e]),l=x.useCallback(()=>{e.setFocusedDate(a.subtract({years:1}))},[a,e]);return t.jsxs("div",{className:"header flex items-start",children:[t.jsx(Ie,{icon:"chevron-left",props:n}),t.jsxs(vi,{children:[r,t.jsxs(ki,{children:[t.jsx(gt,{"aria-label":"top",onClick:o,children:t.jsx(D,{icon:"caret-up",iconClass:"fa-sharp",iconSize:"xxss"})}),t.jsx(gt,{"aria-label":"bottom",onClick:l,children:t.jsx(D,{icon:"caret-down",iconClass:"fa-sharp",iconSize:"xxss"})})]})]}),t.jsx(Ie,{icon:"chevron-right",props:i})]})},Tt=({onClose:e,props:n})=>{const{locale:i}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),r=s.$131cf43a05231e1e$export$6d095e787d2b5e1f({...n,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:a,nextButtonProps:o,title:l}=s.$9942cad8a072a530$export$3ee915f8151bd4f1(n,r);return t.jsxs("div",{className:"calendar",children:[t.jsx(Ee,{nextButtonProps:o,prevButtonProps:a,state:r,title:l}),t.jsx(De,{state:r}),t.jsx(Xe,{children:t.jsx(P,{onClick:e,variant:"ghost",children:"Cancel"})})]})},Ft=({segment:e,state:n})=>{const i=s.Je(),r=x.useRef(null),o={...e,placeholder:{day:"dd",dayPeriod:"(AM/PM)",era:"",hour:"hh",literal:"",minute:"mm",month:"mm",second:"",timeZoneName:"",year:"yyyy"}[e.type]},{segmentProps:l}=s.$32489daedd52963e$export$1315d136e6f7581(o,n,r),c=i.palette.gray[o.isEditable?800:500];return t.jsx("div",{...o.type!=="literal"&&{...l,className:"segment-cell"},ref:r,style:o.type==="literal"?void 0:{color:o.isPlaceholder?i.palette.gray[400]:c},children:o.isPlaceholder?o.placeholder:o.text})},Nt=({disabled:e,error:n=!1,props:i})=>{const r=s.Je(),a=x.useRef(null),o=s.$3c0fc76039f1c516$export$60e84778edff6d26({...i,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:"en-US"}),{fieldProps:l}=s.$16f0b7bb276bc17e$export$5591b0b878c1a989(i,o,a),c=x.useCallback(d=>{const g=document.getElementsByClassName("segment-cell"),p=d.currentTarget;Object.values(g).some(u=>u.contains(p))||(d.preventDefault(),d.stopPropagation())},[]);return t.jsxs(Ni,{...l,onClick:c,children:[t.jsx("div",{className:"flex flex-row",style:{color:r.palette.gray[s.lodashExports.isNil(o.value)?400:800]},tabIndex:-1,children:o.segments.map((d,g)=>{const p=`key_${g}`;return t.jsx(Ft,{segment:{...d,isEditable:!e},state:o},p)})}),n?t.jsx(D,{icon:"exclamation-circle",iconColor:r.palette.error[500],iconSize:"xs"}):void 0]})},Dt=e=>{const n=x.useRef(null),i=s.$eff5d8ee529ac4bb$export$fd53cef0cc796101({...e,locale:"en-US",shouldForceLeadingZeros:!0}),{timeValue:r}=i,a=!s.lodashExports.isNil(r)&&r.hour<12?"AM":"PM",[o,l]=x.useState(s.lodashExports.isNil(r)?"AM":a),{fieldProps:c}=s.$16f0b7bb276bc17e$export$4c842f6a241dc825(e,i,n),d=x.useCallback(g=>{const p=g.currentTarget.name;p!==o&&(s.lodashExports.isNil(r)||(p==="AM"?i.setSegment("dayPeriod",0):p==="PM"&&i.setSegment("dayPeriod",12))),l(p)},[o,i,r]);return t.jsxs(Di,{children:[t.jsx(ut,{...c,ref:n,children:i.segments.slice(0,-2).map((g,p)=>{const u=`key_${p}`;return t.jsx(Ft,{segment:g,state:i},u)})}),t.jsxs(ut,{children:[t.jsx(xt,{id:o==="AM"?"active":"",name:"AM",onClick:d,type:"button",children:"AM"}),t.jsx(xt,{id:o==="PM"?"active":"",name:"PM",onClick:d,type:"button",children:"PM"})]})]})},Te=e=>e&&e!=="-"?s.dayjs(e).format("YYYY-MM-DD"):"-",Ei=e=>e&&e!=="-"?s.dayjs(e).format("YYYY-MM-DD hh:mm A"):"-",ft=(e,n)=>s.dayjs(String(e).replace(/-/gu,"/")).hour(n.hour).minute(n.minute).second(n.second).format("YYYY/MM/DD hh:mm A"),ge=({error:e,buttonProps:n,datePickerRef:i,disabled:r=!1,granularity:a="day",fieldProps:o,groupProps:l,name:c,register:d,required:g,setValue:p,value:u})=>{const f=x.useCallback(h=>{if(!h)return;const b=a==="day"?Te(String(h)):Ei(String(h));o.onChange&&o.onChange(h??null),p&&p(c,b,{shouldDirty:!0})},[o,a,c,p]);return t.jsxs(ee,{...l,className:`${r?"disabled":""} ${e?"error":""}`,ref:i,children:[t.jsx(Nt,{disabled:r,error:e!=null,props:{...o,autoFocus:!1,granularity:a,onChange:f,shouldForceLeadingZeros:!0}}),t.jsx(Ie,{disabled:r,icon:a==="minute"?"calendar-clock":"calendar",props:n}),t.jsx("input",{...d==null?void 0:d(c,{required:g}),"aria-label":c,className:"date-input",disabled:r,id:c,name:c,type:"text",value:u??""})]})},Re=({children:e,...n})=>{const i=x.useRef(null),{dialogProps:r}=s.$40df3f8667284809$export$d55e7ee900f34e93(n,i);return t.jsx(Ti,{...r,ref:i,children:e})},Et=({disabled:e=!1,error:n,helpLink:i,helpLinkText:r,helpText:a,required:o,label:l,name:c,register:d,setValue:g,tooltip:p,watch:u,...f})=>{const h=x.useRef(null),b=u==null?void 0:u(c),y=x.useCallback(F=>{g&&F&&g(c,Te(String(F)),{shouldDirty:!0})},[c,g]),m=s.$ab5bf3f618090389$export$87194bb378cc3ac2({...f,onChange(F){y(F)},...!s._.isNil(b)&&!s._.isEmpty(b)&&s.dayjs(b).isValid()?{defaultValue:s.$fae977aafc393c5c$export$6b862160d295c8e(b.replace(/\//gu,"-"))}:{}}),{close:j}=m,{groupProps:w,fieldProps:v,buttonProps:k,dialogProps:C,calendarProps:z}=s.$6057a3d2a53a12fd$export$42df105a73306d51({...f,"aria-label":l??c,name:c},m,h);return t.jsxs(J,{error:n,helpLink:i,helpLinkText:r,helpText:a,htmlFor:c,label:l,required:o,tooltip:p,children:[t.jsx(ge,{buttonProps:k,datePickerRef:h,disabled:e,error:n,fieldProps:v,groupProps:w,name:c,register:d,required:o,setValue:g,value:b}),m.isOpen&&!e?t.jsx(ke,{offset:8,placement:"bottom start",state:m,triggerRef:h,children:t.jsx(Re,{...C,children:t.jsx(Tt,{onClose:j,props:z})})}):null]})},Rt=({onClose:e,props:n})=>{const{locale:i}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),r=x.useRef(null),a=s.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90({...n,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:o,nextButtonProps:l,title:c}=s.$46a4342aab3d8076$export$87e0539f600c24e5(n,a,r);return t.jsxs("div",{className:"calendar-range",ref:r,children:[t.jsx(Ee,{nextButtonProps:l,prevButtonProps:o,state:a,title:c}),t.jsx(De,{state:a}),t.jsx(Xe,{children:t.jsx(P,{onClick:e,variant:"ghost",children:"Cancel"})})]})},Ri=s.st.div`
|
|
1184
|
-
${({theme:e,$disabled:n,$show:i})=>`
|
|
1185
|
-
border-color: ${i?e.palette.error[500]:e.palette.gray[300]};
|
|
1186
|
-
display: flex;
|
|
1187
|
-
gap: ${e.spacing[.25]};
|
|
1188
|
-
width: 100%;
|
|
1189
|
-
|
|
1190
|
-
~ div {
|
|
1191
|
-
background: ${n?e.palette.gray[200]:e.palette.white};
|
|
1192
|
-
}
|
|
1193
|
-
`}
|
|
1194
|
-
`,Lt=({disabled:e=!1,error:n,label:i,name:r,required:a,tooltip:o,register:l,setValue:c,propsMax:d,propsMin:g,variant:p="default",...u})=>{const f=`${r}Max`,h=`${r}Min`,b=x.useRef(null),y=x.useCallback(S=>{c&&S&&(c((d==null?void 0:d.name)??f,Te(String(S.end))),c((g==null?void 0:g.name)??h,Te(String(S.start))))},[f,h,c,d,g]),m=s.$93c38a5e28be6249$export$e50a61c1de9f574({...u,endName:(d==null?void 0:d.name)??f,startName:(g==null?void 0:g.name)??h,onChange(S){y(S)}}),{close:j}=m,{groupProps:w,startFieldProps:v,endFieldProps:k,buttonProps:C,dialogProps:z,calendarProps:F}=s.$887cac91b7cc8801$export$12fd5f0e9f4bb192({...u,"aria-label":i??r},m,b);return t.jsxs(J,{error:n,htmlFor:r,label:i,required:a,tooltip:o,children:[t.jsxs(Ri,{$disabled:e,$show:n!==void 0,ref:b,style:{flexDirection:p==="filters"?"column":"row"},children:[t.jsx(ge,{buttonProps:C,datePickerRef:b,disabled:e,error:n,fieldProps:{...v,"aria-label":`${v["aria-label"]} ${r}`,validate:S=>k.value&&S>k.value?"Start date must be less than or equal to end date":null},groupProps:w,name:(g==null?void 0:g.name)??h,register:l,setValue:c,value:g==null?void 0:g.value}),t.jsx(ge,{buttonProps:C,datePickerRef:b,disabled:e,error:n,fieldProps:{...k,"aria-label":`${k["aria-label"]} ${r}`,validate:S=>v.value&&S<v.value?"End date must be greater than or equal to start date":null},groupProps:w,name:(d==null?void 0:d.name)??f,register:l,setValue:c,value:d==null?void 0:d.value})]}),m.isOpen&&!e?t.jsx(ke,{offset:8,placement:"bottom start",state:m,triggerRef:b,children:t.jsx(Re,{...z,children:t.jsx(Rt,{onClose:j,props:F})})}):null]})},Li=s.st.div`
|
|
1195
|
-
${({theme:e})=>`
|
|
1196
|
-
align-items: center;
|
|
1197
|
-
border-top: 1px solid ${e.palette.gray[200]};
|
|
1198
|
-
display: flex;
|
|
1199
|
-
gap: ${e.spacing[1.5]};
|
|
1200
|
-
justify-content: center;
|
|
1201
|
-
padding: ${e.spacing[.5]} ${e.spacing[1.25]};
|
|
1202
|
-
`}
|
|
1203
|
-
`,Ai=s.st.div`
|
|
1204
|
-
align-items: center;
|
|
1205
|
-
display: flex;
|
|
1206
|
-
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1207
|
-
justify-content: flex-end;
|
|
1208
|
-
flex: 1 0 0;
|
|
1209
|
-
`,At=({handleTimeChange:e,onClose:n,props:i,timeState:r})=>{const a=s.Je(),{locale:o}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),l=s.$131cf43a05231e1e$export$6d095e787d2b5e1f({...i,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:o}),{prevButtonProps:c,nextButtonProps:d,title:g}=s.$9942cad8a072a530$export$3ee915f8151bd4f1(i,l);return t.jsxs("div",{className:"calendar",children:[t.jsx(Ee,{nextButtonProps:d,prevButtonProps:c,state:l,title:g}),t.jsx(De,{state:l}),t.jsxs(Li,{children:[t.jsx(I,{color:a.palette.gray[800],fontWeight:"bold",size:"sm",children:"Time"}),t.jsx(Ai,{children:t.jsx(Dt,{hourCycle:12,label:"time-field",onChange:e,value:r.timeValue})})]}),t.jsx(Xe,{children:t.jsx(P,{onClick:n,variant:"ghost",children:"Cancel"})})]})},Pi=e=>{const{disabled:n=!1,error:i,required:r,label:a,name:o,tooltip:l,register:c,setValue:d,watch:g}=e,p=g==null?void 0:g(o),u=x.useRef(null),f=s.$ab5bf3f618090389$export$87194bb378cc3ac2({...e,granularity:"minute",hourCycle:12,isDisabled:n,isRequired:r,shouldCloseOnSelect:!1,value:s._.isNil(p)||s._.isEmpty(p)||p==="-"||s.dayjs(p,"YYYY/MM/DD hh:mm A").isValid()===!1?null:s.$fae977aafc393c5c$export$588937bcd60ade55(s.dayjs(p,"YYYY/MM/DD hh:mm A").format("YYYY-MM-DDTHH:mm:ss"))}),{close:h}=f,{groupProps:b,fieldProps:y,buttonProps:m,dialogProps:j,calendarProps:w}=s.$6057a3d2a53a12fd$export$42df105a73306d51(e,f,u),v=x.useCallback(C=>{if(w.onChange&&w.onChange(C),f.timeValue){const z=ft(C,f.timeValue);d==null||d(o,z,{shouldDirty:!0})}else f.setDateValue(C)},[w,o,d,f]),k=x.useCallback(C=>{if(C){f.setTimeValue(C);const z=f.dateValue;if(z){const F=ft(z,C);d==null||d(o,F,{shouldDirty:!0})}}},[f,d,o]);return t.jsxs(J,{error:i,htmlFor:o,label:a,required:r,tooltip:l,children:[t.jsx(ge,{buttonProps:m,datePickerRef:u,disabled:n,error:i,fieldProps:y,granularity:"minute",groupProps:b,name:o,register:c,setValue:d,value:p}),f.isOpen&&!n?t.jsx(ke,{offset:8,placement:"bottom start",state:f,triggerRef:u,children:t.jsx(Re,{...j,children:t.jsx(At,{handleTimeChange:k,onClose:h,props:{...w,onChange:v},timeState:f})})}):null]})},Wi=({children:e,currentValue:n,externalLink:i,isEditing:r,label:a,name:o,tooltip:l})=>{if(r)return t.jsx("div",{children:e});const c=s.lodashExports.isNil(n)?"":n,d=String(i??c);return t.jsxs($,{children:[t.jsx(Ke,{htmlFor:o,label:a,tooltip:l,weight:"bold"}),d.startsWith("https://")?t.jsx(K,{href:d,children:c}):t.jsx(I,{size:"md",children:c})]})},Le=({disabled:e=!1,hasIcon:n=!1,helpLink:i,helpLinkText:r,helpText:a,error:o,id:l,indexArray:c=0,isValid:d,isTouched:g,label:p,linkPosition:u,name:f,maskValue:h=!1,onPaste:b,placeholder:y,removeItemArray:m,register:j,suggestions:w,tooltip:v,type:k="text",weight:C,...z})=>{const{required:F,onBlur:S,onChange:R}=z,T=s.Je(),L=e?void 0:o,[Y,Z]=x.useState(""),te=x.useCallback(M=>{Z(M.target.value),R==null||R(M)},[R]),W=d&&g&&!e&&Y.trim()!=="",O=x.useCallback(M=>{M.key==="Enter"&&M.preventDefault()},[]);return t.jsxs(J,{error:L,helpLink:i,helpLinkText:r,helpText:a,htmlFor:f,label:p,linkPosition:u,required:F,tooltip:v,weight:C,children:[t.jsxs(ee,{className:`
|
|
1210
|
-
${e?"disabled":""} ${L?"error":""} ${W?"success":""}
|
|
1211
|
-
`,children:[n?t.jsx(D,{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":F,autoComplete:"off",className:h?"sr-block":"","data-testid":`${f}-input`,disabled:e,id:f,list:w?`list_${f}`:void 0,onKeyDown:O,onPaste:b,placeholder:y,type:k,...j?j(f,{required:F,onBlur:S,onChange:te}):{...z,onChange:te}}),L?t.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:T.palette.error[500],iconSize:"xs"}):void 0,W?t.jsx(D,{icon:"check-circle",iconClass:"success-icon",iconColor:T.palette.success[500],iconSize:"xs"}):void 0,l==="array"&&c>0?t.jsx(B,{color:T.palette.gray[400],icon:"trash",iconSize:"xxs",iconType:"fa-light",onClick:m?m(c):void 0,variant:"ghost"}):void 0]}),w?t.jsx("datalist",{id:`list_${f}`,children:w.map(M=>t.jsx("option",{value:M},M))}):void 0]})},Bi=s.st.div.attrs({className:"flex flex-wrap justify-center pv3 w-100"})``,Mi=s.st.div.attrs({className:"flex flex-wrap items-center justify-start mb2"})`
|
|
1212
|
-
gap: 12px;
|
|
1213
|
-
`,Oi=s.st.div.attrs({className:"flex flex-wrap items-center justify-end mb2"})`
|
|
1214
|
-
gap: 8px;
|
|
1215
|
-
`,ze=e=>e===void 0?"flex-grow: 1;":`width: calc(${e}00% / var(--cols));`,Hi=s.st.div.attrs({className:"comp-col"})`
|
|
1216
|
-
word-wrap: break-word;
|
|
1217
|
-
|
|
1218
|
-
${({$width:e=null})=>e===null?"":`width: ${e}`};
|
|
1219
|
-
|
|
1220
|
-
${({$paddingTop:e})=>`padding-top: ${e??0}px;`}
|
|
1221
|
-
|
|
1222
|
-
@media (width <= 768px) {
|
|
1223
|
-
${({$sm:e})=>ze(e)}
|
|
1224
|
-
}
|
|
1225
|
-
|
|
1226
|
-
@media (width >= 768px) and (width <= 992px) {
|
|
1227
|
-
${({$md:e})=>ze(e)}
|
|
1228
|
-
}
|
|
1229
|
-
|
|
1230
|
-
@media (width >= 992px) {
|
|
1231
|
-
${({$lg:e})=>ze(e)}
|
|
1232
|
-
}
|
|
1233
|
-
|
|
1234
|
-
${({$xl:e})=>s.isNumber(e)?`@media (min-width: 1200px) { ${ze(e)} }`:""}
|
|
1235
|
-
|
|
1236
|
-
> .comp-card {
|
|
1237
|
-
height: 100%;
|
|
1238
|
-
}
|
|
1239
|
-
`,Me=({children:e,xl:n,lg:i,md:r,sm:a,paddingTop:o,width:l})=>t.jsx(Hi,{$lg:i,$md:r,$paddingTop:o,$sm:a,$width:l,$xl:n,children:e}),_i=s.st.div.attrs({className:"comp-gap"})`
|
|
1240
|
-
${({$disp:e="flex",$mh:n=4,$mv:i=4})=>`
|
|
1241
|
-
align-items: center;
|
|
1242
|
-
display: ${e};
|
|
1243
|
-
margin: ${-i}px ${-n}px;
|
|
1244
|
-
|
|
1245
|
-
> * {
|
|
1246
|
-
margin: ${i}px ${n}px;
|
|
1247
|
-
}
|
|
1248
|
-
`}
|
|
1249
|
-
`,Ji=({children:e,disp:n,mh:i,mv:r})=>t.jsx(_i,{$disp:n,$mh:i,$mv:r,children:e}),Ui=s.st.div.attrs({className:"comp-row flex flex-row flex-wrap"})`
|
|
1250
|
-
${({$align:e="stretch",$cols:n=100,$colsPadding:i=6,$justify:r="start"})=>`
|
|
1251
|
-
align-items: ${e};
|
|
1252
|
-
justify-content: ${r};
|
|
1253
|
-
margin: -6px;
|
|
1254
|
-
text-align: ${r};
|
|
1255
|
-
|
|
1256
|
-
--cols: ${n};
|
|
1257
|
-
|
|
1258
|
-
> *:not(.comp-col) {
|
|
1259
|
-
width: 100%;
|
|
1260
|
-
margin: 6px;
|
|
1261
|
-
}
|
|
1262
|
-
|
|
1263
|
-
> .comp-col {
|
|
1264
|
-
padding: ${i}px;
|
|
1265
|
-
}
|
|
1266
|
-
`}
|
|
1267
|
-
`,Pt=({align:e,children:n,cols:i,colsPadding:r,justify:a})=>t.jsx(Ui,{$align:e,$cols:i,$colsPadding:r,$justify:a,children:n}),Oe=({addText:e,append:n,disabled:i=!1,fields:r,fieldState:a,initValue:o="",index:l=0,required:c,label:d,max:g=100,name:p,onBlur:u,onChange:f,placeholder:h,tooltip:b,remove:y,value:m})=>{var v;const j=x.useCallback(()=>{n==null||n(o)},[n,o]),w=x.useCallback(k=>()=>{y==null||y(k)},[y]);return t.jsxs(Pt,{align:"start",children:[t.jsx(Me,{lg:75,md:75,sm:75,children:t.jsx(Le,{disabled:i,error:a?(v=a.error)==null?void 0:v.message:void 0,id:"array",indexArray:l,isTouched:a?a.isTouched:void 0,isValid:a?!a.invalid:void 0,label:d,name:p,onBlur:u,onChange:f,placeholder:h,removeItemArray:w,required:c,tooltip:b,value:m})}),l<g-1&&l+1===(r==null?void 0:r.length)?t.jsx(Me,{lg:25,md:25,sm:25,children:t.jsx(P,{disabled:i,icon:"plus",onClick:j,variant:"ghost",width:"100%",children:e??"Add"})}):void 0]})},Gi=({addText:e,append:n,control:i,disabled:r,fields:a,initValue:o="",required:l,label:c,max:d=void 0,name:g="array-field",onChange:p,placeholder:u,remove:f,tooltip:h})=>i&&a?t.jsx(x.Fragment,{children:a.map((b,y)=>t.jsx(s.Controller,{control:i,name:`${g}.${y}`,render:({field:m,fieldState:j})=>t.jsx(Oe,{addText:e,append:n,disabled:r,fieldState:j,fields:a,index:y,initValue:o,label:c,max:d,name:m.name,onBlur:m.onBlur,onChange:p??m.onChange,placeholder:u,remove:f,required:l,tooltip:h,value:typeof m.value=="object"?m.value.value:m.value}),index:y},b.id))}):t.jsx(Oe,{addText:e,disabled:r,initValue:o,label:c,max:d,name:g,onChange:p,placeholder:u,required:l,tooltip:h}),Vi=s.st(mt)`
|
|
1268
|
-
white-space: nowrap;
|
|
1269
|
-
margin-right: ${({theme:e})=>e.spacing[.25]};
|
|
1270
|
-
text-overflow: ellipsis;
|
|
1271
|
-
overflow: hidden;
|
|
1272
|
-
max-width: 80%;
|
|
1273
|
-
`,Yi=s.st.input`
|
|
1274
|
-
opacity: 0;
|
|
1275
|
-
position: absolute;
|
|
1276
|
-
visibility: hidden;
|
|
1277
|
-
width: 0;
|
|
1278
|
-
`,ue=(e,n,i)=>{const r=new Event(e);return Object.defineProperty(r,"target",{value:{name:n,value:i}}),r},qi=e=>{const n=e;return n?Array.from(n).map(i=>i.name).join(", "):""},Ki=({accept:e,disabled:n=!1,error:i,label:r,helpLink:a,helpText:o,id:l,multiple:c,name:d,onChange:g,required:p,register:u,setValue:f,tooltip:h,watch:b,weight:y})=>{const m=s.Je(),j=n?void 0:i,w=x.useRef(null),v=u==null?void 0:u(d,{required:p}),k=b==null?void 0:b(d),C=qi(k),z=x.useCallback(()=>{const R=ue("change",d,void 0);f&&f(d,void 0),v&&v.onChange(R)},[v,d,f]),F=x.useCallback(R=>{const{files:T}=R.currentTarget,L=ue("change",d,T&&T.length>0?T:void 0);T&&T.length>0&&(g==null||g(L),f&&f(d,T),v&&v.onChange(L))},[v,d,g,f]),S=x.useCallback(R=>{n?R.preventDefault():w.current&&w.current.click()},[n]);return t.jsxs(J,{error:j,helpLink:a,helpText:o,htmlFor:l??d,label:r,required:p,tooltip:h,weight:y,children:[t.jsxs(ee,{className:`${n?"disabled":""} ${j?"error":""}`,children:[t.jsx(Vi,{$size:"xs",children:C}),t.jsxs($,{alignItems:"center",display:"flex",gap:.625,children:[s.lodashExports.isEmpty(C)?void 0:t.jsx(B,{color:m.palette.gray[400],height:"20px",icon:"xmark",iconSize:"lg",iconType:"fa-light",onClick:z,variant:"ghost",width:"20px"}),j&&t.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:m.palette.error[500],iconSize:"xs"}),t.jsxs(P,{border:n?`1px solid ${m.palette.gray[300]} !important`:"",borderRadius:"0px 8px 8px 0px !important",disabled:n,height:"40px",onClick:S,variant:"primary",width:"96px",children:[t.jsx(D,{icon:"search",iconSize:"sm",mr:.5}),"Add file"]})]})]}),t.jsx(Yi,{...v,accept:e,"aria-label":d,"data-testid":d,disabled:n,id:l??d,multiple:c,name:d,onChange:F,ref:w,type:"file"})]})},Zi=s.st.input`
|
|
1279
|
-
border: none;
|
|
1280
|
-
background: transparent;
|
|
1281
|
-
min-width: 15rem;
|
|
1282
|
-
padding: 0;
|
|
1283
|
-
flex: 1;
|
|
1284
|
-
`,He=({disabled:e=!1,error:n,field:i,helpLink:r,helpLinkText:a,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:g,placeholder:p,required:u,tooltip:f,value:h,weight:b})=>{const y=s.Je(),m=e?void 0:n,[j,w]=x.useState(""),v=d?h:i==null?void 0:i.value,k=x.useMemo(()=>v&&typeof v=="string"?v.split(",").filter(Boolean):[],[v]),C=x.useCallback(T=>{const Y=[...new Set(T.filter(Boolean))].join(","),Z=ue("change",c,Y);i&&i.onChange(Z),d&&d(Z)},[i,c,d]),z=x.useCallback(T=>{w(T.target.value)},[]),F=x.useCallback(T=>{const L=j.trim();L.length&&!k.includes(L)&&(T.preventDefault(),C([...k,L]),w("")),i&&i.onBlur()},[j,i,C,k]),S=x.useCallback(T=>{const L=j.trim();T.key==="Enter"&&L.length===0&&T.preventDefault(),["Enter",","].includes(T.key)&&L.length>0&&!k.includes(L)?(T.preventDefault(),C([...k,L]),w("")):T.key==="Backspace"&&!L.length&&k.length&&(T.preventDefault(),g==null||g(k[k.length-1]),C(k.slice(0,-1)))},[j,g,C,k]),R=x.useCallback(T=>()=>{g==null||g(T),C(k.filter(L=>L!==T))},[g,C,k]);return t.jsx(J,{error:m,helpLink:r,helpLinkText:a,helpText:o,htmlFor:c,label:l,required:u,tooltip:f,weight:b,children:t.jsxs(ee,{$overflowX:"auto",className:`${e?"disabled":""} ${m?"error":""}`,children:[k.map(T=>t.jsx(V,{disabled:e,onClose:R(T),tagLabel:T},T)),t.jsx(Zi,{"aria-hidden":!1,"aria-invalid":m?"true":"false","aria-label":c,"aria-required":u,autoComplete:"off",id:c,onBlur:F,onChange:z,onKeyDown:S,placeholder:k.length===0?p:void 0,ref:i==null?void 0:i.ref,type:"text",value:j}),m?t.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:y.palette.error[500],iconSize:"xs"}):void 0]})})},Xi=({disabled:e=!1,control:n,error:i,helpLink:r,helpLinkText:a,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:g,placeholder:p,required:u,tooltip:f,value:h,weight:b})=>n?t.jsx(s.Controller,{control:n,name:c,render:({field:y})=>t.jsx(He,{disabled:e,error:i,field:y,helpLink:r,helpLinkText:a,helpText:o,label:l,name:c,onRemove:g,placeholder:p,required:u,tooltip:f,weight:b}),rules:{required:u}}):t.jsx(He,{disabled:e,error:i,helpLink:r,helpLinkText:a,helpText:o,label:l,name:c,onChange:d,onRemove:g,placeholder:p,required:u,tooltip:f,value:h,weight:b}),_e=x.forwardRef(function({disabled:n,icon:i,margin:r,onClick:a,...o},l){return t.jsx(Ii,{$margin:r,"aria-label":i,className:"action-btn",disabled:n,onClick:a,ref:l,type:"button",...o,children:t.jsx(D,{icon:i,iconClass:"action",iconSize:"xs",iconType:"fa-light"})})}),Fe=({error:e,decimalPlaces:n=0,disabled:i=!1,id:r,maxLength:a,max:o=1/0,min:l=0,name:c,onChange:d,placeholder:g,register:p,required:u,setValue:f,value:h})=>{const b=s.Je(),y=i?void 0:e,m=n<0?0:n,[j,w]=x.useState(h?s._.toNumber(h):0),v=x.useCallback(()=>{const F=(j-10**-m).toFixed(m),S=Math.max(Number(l),Number(F));f&&f(c,S,{shouldDirty:!0}),w(S);const R=ue("change",c,F);d&&d(R)},[j,m,l,f,c,d]),k=x.useCallback(()=>{const F=(j+10**-m).toFixed(m),S=Math.min(Number(o),Number(F)>Number(l)?Number(F):Number(l));f&&f(c,S,{shouldDirty:!0}),w(S);const R=ue("change",c,F);d&&d(R)},[j,m,o,l,f,c,d]),C=x.useCallback(F=>{const{value:S}=F.target,R=/\d+/u.test(S)&&!s._.isEmpty(S);f&&f(c,R?S:void 0),d&&d(F),w(Number(S))},[c,d,f]),z=x.useCallback(F=>{F.key==="Enter"&&F.preventDefault()},[]);return t.jsxs(ee,{className:`${i?"disabled":""} ${y?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":y?"true":"false","aria-label":c,"aria-required":u,autoComplete:"off",disabled:i,id:r??c,max:o,min:l,onChange:C,onKeyDown:z,placeholder:g,required:u,step:10**-m,type:"number",value:j,...p==null?void 0:p(c,{maxLength:a,max:o,min:l,onChange:C,value:h,valueAsNumber:!0})}),y&&t.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:b.palette.error[500],iconSize:"xs"}),t.jsx(_e,{borderLeft:"inherit",borderRight:"inherit",disabled:i,icon:"minus",margin:"0 -0.625rem 0 0",onClick:v,px:.75,py:.75}),t.jsx(_e,{borderRadius:`0 ${b.spacing[.5]} ${b.spacing[.5]} 0`,disabled:i,icon:"plus",onClick:k,px:.75,py:.75})]})},Wt=({decimalPlaces:e,disabled:n=!1,error:i,helpLink:r,helpText:a,id:o,label:l,linkPosition:c,maxLength:d,max:g,min:p,name:u,onChange:f,placeholder:h,register:b,required:y,setValue:m,tooltip:j,value:w,watch:v,weight:k})=>t.jsx(J,{error:n?void 0:i,helpLink:r,helpText:a,htmlFor:u,label:l,linkPosition:c,maxLength:d,required:y,tooltip:j,weight:k,children:t.jsx(Fe,{decimalPlaces:e,disabled:n,error:i,id:o,max:g,maxLength:d,min:p,name:u,onChange:f,placeholder:h,register:b,required:y,setValue:m,value:v?v(u):w})}),Bt=({disabled:e=!1,error:n,name:i,label:r,propsMax:a,propsMin:o,required:l,tooltip:c,variant:d="default"})=>{const g=`${i}Max`,p=`${i}Min`;return t.jsx(J,{error:n,htmlFor:i,label:r,required:l,tooltip:c,children:t.jsxs($,{display:"flex",flexDirection:d==="filters"?"column":"row",gap:.25,width:"100%",children:[t.jsx(Fe,{...o,disabled:e,error:n,name:(o==null?void 0:o.name)??p}),t.jsx(Fe,{...a,disabled:e,error:n,name:(a==null?void 0:a.name)??g})]})})},Qi=s.st.div`
|
|
1285
|
-
${({theme:e})=>`
|
|
1286
|
-
align-items: flex-start;
|
|
1287
|
-
align-self: stretch;
|
|
1288
|
-
display: flex;
|
|
1289
|
-
gap: ${e.spacing[.5]};
|
|
1290
|
-
|
|
1291
|
-
> button, div {
|
|
1292
|
-
border: 1px solid ${e.palette.gray[300]};
|
|
1293
|
-
border-radius: ${e.spacing[.5]};
|
|
1294
|
-
}
|
|
1295
|
-
|
|
1296
|
-
&.disabled {
|
|
1297
|
-
> button, div {
|
|
1298
|
-
background: ${e.palette.gray[100]};
|
|
1299
|
-
color: ${e.palette.gray[400]};
|
|
1300
|
-
cursor: not-allowed;
|
|
1301
|
-
}
|
|
1302
|
-
}
|
|
1303
|
-
|
|
1304
|
-
&.error:not(.disabled) {
|
|
1305
|
-
> button, div {
|
|
1306
|
-
border: 1px solid ${e.palette.error[500]};
|
|
1307
|
-
}
|
|
1308
|
-
}
|
|
1309
|
-
|
|
1310
|
-
&:focus-within:not(.disabled, .error) {
|
|
1311
|
-
> button, div {
|
|
1312
|
-
background: ${e.palette.white};
|
|
1313
|
-
border: 2px solid ${e.palette.black};
|
|
1314
|
-
}
|
|
1315
|
-
}
|
|
1316
|
-
|
|
1317
|
-
&:hover:not(:focus-within, .disabled, .error) {
|
|
1318
|
-
> button, div {
|
|
1319
|
-
background: ${e.palette.white};
|
|
1320
|
-
border-color: ${e.palette.gray[600]};
|
|
1321
|
-
}
|
|
1322
|
-
}
|
|
1323
|
-
`}
|
|
1324
|
-
`,er=s.st.button`
|
|
1325
|
-
${({theme:e})=>`
|
|
1326
|
-
align-items: center;
|
|
1327
|
-
background: inherit;
|
|
1328
|
-
border-color: inherit;
|
|
1329
|
-
display: flex;
|
|
1330
|
-
gap: ${e.spacing[.25]};
|
|
1331
|
-
height: 40px;
|
|
1332
|
-
min-width: 67px;
|
|
1333
|
-
padding: ${e.spacing[.625]} ${e.spacing[1]};
|
|
1334
|
-
|
|
1335
|
-
&:disabled {
|
|
1336
|
-
background: ${e.palette.gray[100]};
|
|
1337
|
-
cursor: not-allowed;
|
|
1338
|
-
}
|
|
1339
|
-
`}
|
|
1340
|
-
`,tr=s.st.ul`
|
|
1341
|
-
${({theme:e})=>`
|
|
1342
|
-
align-items: flex-start;
|
|
1343
|
-
box-shadow: ${e.shadows.md};
|
|
1344
|
-
display: flex;
|
|
1345
|
-
flex-direction: column;
|
|
1346
|
-
margin-top: ${e.spacing[.25]};
|
|
1347
|
-
max-height: 190px;
|
|
1348
|
-
overflow: hidden auto;
|
|
1349
|
-
scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
|
|
1350
|
-
scroll-padding: ${e.spacing[.5]};
|
|
1351
|
-
scrollbar-width: thin;
|
|
1352
|
-
width: max-content;
|
|
1353
|
-
`}
|
|
1354
|
-
`,nr=s.st.li`
|
|
1355
|
-
${({theme:e})=>`
|
|
1356
|
-
align-items: center;
|
|
1357
|
-
background: ${e.palette.white};
|
|
1358
|
-
cursor: pointer;
|
|
1359
|
-
display: inline-flex;
|
|
1360
|
-
font-size: ${e.typography.text.sm};
|
|
1361
|
-
gap: ${e.spacing[.5]};
|
|
1362
|
-
height: 38px;
|
|
1363
|
-
line-height: ${e.spacing[1.25]};
|
|
1364
|
-
padding: ${e.spacing[.5]} ${e.spacing[1]};
|
|
1365
|
-
width: 190px;
|
|
1366
|
-
|
|
1367
|
-
&:hover {
|
|
1368
|
-
background: ${e.palette.gray[100]};
|
|
1369
|
-
}
|
|
1370
|
-
`}
|
|
1371
|
-
`,ir=s.st.p`
|
|
1372
|
-
color: ${({theme:e})=>e.palette.gray[800]};
|
|
1373
|
-
font-size: inherit;
|
|
1374
|
-
min-width: 55%;
|
|
1375
|
-
overflow: hidden;
|
|
1376
|
-
text-overflow: ellipsis;
|
|
1377
|
-
white-space: nowrap;
|
|
1378
|
-
`,rr=({disabled:e,error:n,label:i,name:r,placeholder:a,required:o,register:l,tooltip:c,value:d,watch:g,weight:p})=>{const u=s.Je(),f=x.useRef(null),h=e?void 0:n,b=(g==null?void 0:g(r))??d,[y,m]=x.useState(!1),[j,w]=x.useState(""),{refs:v,floatingStyles:k}=s.useFloating$1({placement:"bottom-start",whileElementsMounted:s.autoUpdate}),{inputRef:C,inputValue:z,handlePhoneValueChange:F,country:S,setCountry:R}=s.ee({countries:s.R,defaultCountry:"co",forceDialCode:!0,value:b?String(b):""}),T=x.useCallback(W=>{W.key==="Enter"&&W.preventDefault()},[]),L=x.useCallback(W=>{W.preventDefault(),m(O=>!O),y||w("")},[y]),Y=x.useCallback(W=>()=>{R(W),m(!1),w("")},[R,m]),Z=x.useCallback(W=>{W.key.length===1?w(O=>O+W.key):W.key==="Backspace"&&w(O=>O.slice(0,-1))},[]),te=s.R.filter(W=>{const{name:O}=s.M(W);return O.toLowerCase().includes(j.toLowerCase())});return ie(v.floating.current,()=>{m(!1),w("")},!0),t.jsx(J,{error:h,htmlFor:r,label:i,required:o,tooltip:c,weight:p,children:t.jsxs(Qi,{className:`${e?"disabled":""} ${h?"error":""}`,ref:f,children:[t.jsxs(er,{"aria-label":"country-selector","data-testid":"country-selector",disabled:e,id:"country-selector",onClick:L,onKeyDown:Z,ref:v.setReference,children:[t.jsx(s.q,{iso2:S.iso2,size:"16px"}),t.jsx(D,{icon:"angle-down",iconColor:u.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(ee,{className:`${e?"disabled":""} ${h?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":h?"true":"false","aria-label":r,"aria-required":o,autoComplete:"off","data-testid":`${r}-input`,disabled:e,id:r,name:r,onKeyDown:T,placeholder:a,ref:C,type:"tel",value:z,...l==null?void 0:l(r,{required:o,onChange:F})}),h?t.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:u.palette.error[500],iconSize:"xs"}):void 0]}),y&&ae.createPortal(t.jsx(tr,{ref:v.setFloating,style:k,children:te.map(W=>{const{dialCode:O,iso2:M,name:oe}=s.M(W);return t.jsxs(nr,{onClick:Y(M),value:M,children:[t.jsx(s.q,{iso2:M,size:"16px"}),t.jsx(ir,{children:oe}),t.jsx(I,{color:u.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+O})]},M)})}),document.getElementById("modal-wrapper")??document.getElementById("root")??document.body)]})})},ar=({disabled:e=!1,error:n,helpLink:i,helpText:r,isTouched:a,isValid:o,label:l,name:c="input-text",id:d,maskValue:g=!1,maxLength:p,onBlur:u,placeholder:f,register:h,required:b,rows:y,tooltip:m,watch:j,weight:w,value:v})=>{const k=s.Je(),C=(j==null?void 0:j(c))??v,z=o&&a&&!e,F=e?void 0:n;return t.jsx(J,{error:F,helpLink:i,helpText:r,htmlFor:c,label:l,maxLength:p,required:b,tooltip:m,value:C?String(C):void 0,weight:w,children:t.jsxs(ee,{className:`
|
|
1379
|
-
${e?"disabled":""} ${F?"error":""} ${z?"success":""}
|
|
1380
|
-
`,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":F?"true":"false","aria-label":c,"aria-required":b,className:g?"sr-block":"","data-testid":`${c}-text-area`,disabled:e,id:d??c,maxLength:p,placeholder:f,rows:y,value:C,...h==null?void 0:h(c,{required:b,onBlur:u})}),F?t.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:k.palette.error[500],iconSize:"xs"}):void 0,z?t.jsx(D,{icon:"check-circle",iconClass:"success-icon",iconColor:k.palette.success[500],iconSize:"xs"}):void 0]})})},or=({control:e,description:n,disabled:i,id:r,items:a,align:o,inputType:l="text",inputNumberProps:c,minHeight:d,minWidth:g,name:p,placeholder:u,textAlign:f,tooltip:h,title:b,value:y,isTouched:m,isValid:j,error:w,onChange:v,register:k,setValue:C,watch:z})=>{const F=x.useMemo(()=>{if(l==="text")return t.jsx(Le,{disabled:i,error:w,isTouched:m,isValid:j,name:p,placeholder:u,register:k});if(l==="date")return t.jsx(Et,{disabled:i,error:w,name:p,register:k,setValue:C,watch:z});if(l==="select"&&a)return t.jsx(Ze,{control:e,disabled:i,items:a,name:p,placeholder:u,value:y});const{decimalPlaces:S,max:R,min:T}=c??{};return t.jsx(Wt,{decimalPlaces:S,disabled:i,error:w,max:R,min:T,name:p,onChange:v,placeholder:u,register:k,setValue:C,value:y,watch:z})},[e,i,w,c,l,m,j,a,p,v,u,k,C,y,z]);return t.jsxs(yi,{$align:o,$minHeight:d,$minWidth:g,children:[t.jsx(Ne,{description:n,id:r,textAlign:f,title:b,tooltip:h}),F]})},sr=s.st.div`
|
|
1381
|
-
display: flex;
|
|
1382
|
-
align-self: flex-start;
|
|
1383
|
-
margin-left: auto;
|
|
1384
|
-
width: 40px;
|
|
1385
|
-
height: auto;
|
|
1386
|
-
`,Mt=(e,n)=>{const[r,a]=x.useState(0),[o,l]=x.useState(0);return x.useEffect(()=>{o===100&&(()=>{a(d=>d===n-1?0:d+1)})()},[o,n]),x.useEffect(()=>{const c=setInterval(()=>{l(d=>d===100?0:d+1)},e);return()=>{clearInterval(c)}},[e]),{cycle:r,progress:o,setCycle:a,setProgress:l}},Ot=({publicId:e,format:n="webp"})=>{const i=x.useMemo(()=>new s.Cloudinary({cloud:{cloudName:"fluid-attacks"}}),[]);return x.useMemo(()=>i.image(e).format(n),[i,e,n])},Ce=e=>{const[n,i]=x.useState(!1),r=x.useCallback(()=>{i(!0)},[]),a=x.useCallback(()=>{i(!1)},[]),o=x.useCallback(()=>{i(l=>!l)},[]);return{close:a,isOpen:n,name:e,open:r,setIsOpen:i,toggle:o}},lr=({name:e,items:n,columnOrder:i,setColumnOrder:r})=>{const a=x.useMemo(()=>[...n.filter(({locked:p})=>p).map(({locked:p,...u})=>({...u,visible:!0,locked:p})),...n.filter(({locked:p})=>!p)],[n]),[o,l]=x.useState(a),c=x.useCallback(p=>{const u=p.filter(({locked:y})=>!y),h=[...p.filter(({locked:y})=>y),...u],b=h.map(({name:y})=>y);l(y=>[...h,...y.filter(({name:m})=>!b.includes(m))]),r&&r(h.map(({id:y})=>y))},[r]),d=x.useCallback(()=>{const p=o.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});l(p),r==null||r(i)},[o,i,r]),g=x.useMemo(()=>s.some(o,p=>((i==null?void 0:i.includes(p.id))??!1)!==p.visible),[o,i]);return{setColumns:c,resetToDefault:d,columns:o,...Ce(e),hasChanged:g}},Ht=(e,n)=>x.useMemo(()=>s._.debounce(e,n),[e,n]),cr=e=>{const[n,i]=x.useState(),r=Ht(a=>{i(a)},(e==null?void 0:e.debounceWait)??300);return[n,r]},dr=({alt:e="img",height:n="",width:i="",plugins:r=[s.lazyload(),s.placeholder()],publicId:a})=>{const o=Ot({publicId:a});return t.jsx(s.AdvancedImage,{alt:e,cldImg:o,height:n,plugins:r,width:i})},Q=x.memo(dr),pr=s.st.label`
|
|
1387
|
-
${({theme:e})=>`
|
|
1388
|
-
align-items: center;
|
|
1389
|
-
display: flex;
|
|
1390
|
-
color: ${e.palette.gray[600]};
|
|
1391
|
-
cursor: pointer;
|
|
1392
|
-
font-family: ${e.typography.type.primary};
|
|
1393
|
-
font-size: ${e.typography.text.sm};
|
|
1394
|
-
font-weight: ${e.typography.weight.regular};
|
|
1395
|
-
gap: ${e.spacing[.5]};
|
|
1396
|
-
line-height: ${e.typography.text.lg};
|
|
1397
|
-
text-align: left;
|
|
1398
|
-
position: relative;
|
|
1399
|
-
|
|
1400
|
-
&[aria-disabled="true"] {
|
|
1401
|
-
color: ${e.palette.gray[300]};
|
|
1402
|
-
cursor: not-allowed;
|
|
1403
|
-
}
|
|
1404
|
-
|
|
1405
|
-
input {
|
|
1406
|
-
position: absolute;
|
|
1407
|
-
opacity: 0;
|
|
1408
|
-
cursor: pointer;
|
|
1409
|
-
width: 0;
|
|
1410
|
-
}
|
|
1411
|
-
|
|
1412
|
-
.checkmark {
|
|
1413
|
-
position: relative;
|
|
1414
|
-
top: 0;
|
|
1415
|
-
left: 0;
|
|
1416
|
-
height: 16px;
|
|
1417
|
-
width: 16px;
|
|
1418
|
-
background-color: ${e.palette.white};
|
|
1419
|
-
border-radius: 50%;
|
|
1420
|
-
border: 1px solid ${e.palette.gray[600]};
|
|
1421
|
-
}
|
|
1422
|
-
|
|
1423
|
-
input:disabled ~ .checkmark {
|
|
1424
|
-
border: 1px solid ${e.palette.gray[300]};
|
|
1425
|
-
background-color: ${e.palette.white};
|
|
1426
|
-
cursor: not-allowed;
|
|
1427
|
-
}
|
|
1428
|
-
|
|
1429
|
-
input:not(:disabled):checked ~ .checkmark {
|
|
1430
|
-
background-color: ${e.palette.white};
|
|
1431
|
-
border: 1px solid ${e.palette.primary[500]};
|
|
1432
|
-
}
|
|
1433
|
-
|
|
1434
|
-
input:not(:disabled):hover ~ .checkmark {
|
|
1435
|
-
background-color: ${e.palette.white};
|
|
1436
|
-
box-shadow: 0 0 0 4px ${e.palette.gray[100]};
|
|
1437
|
-
}
|
|
1438
|
-
|
|
1439
|
-
input:not(:disabled):hover:checked ~ .checkmark {
|
|
1440
|
-
background-color: ${e.palette.white};
|
|
1441
|
-
box-shadow: 0 0 0 4px ${e.palette.primary[50]};
|
|
1442
|
-
}
|
|
1443
|
-
|
|
1444
|
-
.checkmark::after {
|
|
1445
|
-
content: "";
|
|
1446
|
-
position: absolute;
|
|
1447
|
-
display: none;
|
|
1448
|
-
top: 3px;
|
|
1449
|
-
left: 3px;
|
|
1450
|
-
width: 8px;
|
|
1451
|
-
height: 8px;
|
|
1452
|
-
border-radius: 50%;
|
|
1453
|
-
background: ${e.palette.primary[500]};
|
|
1454
|
-
}
|
|
1455
|
-
|
|
1456
|
-
input:checked ~ .checkmark::after {
|
|
1457
|
-
display: block;
|
|
1458
|
-
}
|
|
1459
|
-
|
|
1460
|
-
input:disabled:checked ~ .checkmark::after {
|
|
1461
|
-
background-color: ${e.palette.gray[300]};
|
|
1462
|
-
}
|
|
1463
|
-
|
|
1464
|
-
`}
|
|
1465
|
-
`,gr=s.st.span.attrs({className:"checkmark"})``,Qe=x.forwardRef(function({defaultChecked:n=!1,disabled:i=!1,label:r,name:a,onChange:o,onClick:l,value:c,...d},g){return t.jsxs(pr,{"aria-disabled":i,"aria-label":r??a,role:"radiogroup",children:[t.jsx("input",{"aria-checked":n,"aria-disabled":i,"aria-label":r??a,defaultChecked:n,disabled:i,name:a,onChange:o,onClick:l,ref:g,type:"radio",value:c,...d}),t.jsx(gr,{}),r??null]})}),ur=({alt:e,customDescription:n,imageId:i,icon:r,selectorProps:a,onClick:o,register:l,bgColor:c,title:d,isATag:g=!1,width:p="fit-content"})=>{const u=s.Je();return t.jsxs($,{alignItems:"center",bgColor:c??"",border:`1px solid ${u.palette.gray[200]}`,borderColorHover:u.palette.gray[600],borderRadius:u.spacing[.25],display:"inline-flex",pr:g?1:0,shadowHover:"md",width:p,children:[t.jsxs($,{display:"inline-flex",padding:[1,1,1,1],children:[t.jsx($,{alignSelf:"start",display:"flex",width:"fit-content",children:t.jsx(Qe,{defaultChecked:a.defaultChecked,name:a.name,onClick:o,value:a.value,...l==null?void 0:l(a.name)})}),t.jsxs($,{alignItems:"center",display:"flex",gap:.5,justify:"space-between",ml:1,mr:1,width:"100%",children:[!g&&i!==void 0&&t.jsx(Q,{alt:e??"card image",height:"32px",publicId:i,width:"32px"}),r===void 0?void 0:t.jsx(D,{icon:r,iconSize:"sm",iconType:"fa-light"}),t.jsxs($,{display:"flex",flexDirection:"column",width:"100%",children:[t.jsx(I,{color:u.palette.gray[800],fontWeight:"bold",size:"sm",children:d}),n===void 0?void 0:t.jsx($,{children:n})]})]})]}),g&&t.jsx(sr,{children:t.jsx(Q,{alt:e??"tag image",height:"40px",publicId:i??"tag image",width:"40px"})})]})},le=s.st.div`
|
|
1466
|
-
${({theme:e})=>`
|
|
1467
|
-
align-items: center;
|
|
1468
|
-
background-color: ${e.palette.gray[200]};
|
|
1469
|
-
border-radius: 34px;
|
|
1470
|
-
cursor: pointer;
|
|
1471
|
-
display: flex;
|
|
1472
|
-
height: 20px;
|
|
1473
|
-
position: relative;
|
|
1474
|
-
transition: 0.2s;
|
|
1475
|
-
width: 36px;
|
|
1476
|
-
`}
|
|
1477
|
-
`,xr=s.st.div`
|
|
1478
|
-
${({theme:e})=>`
|
|
1479
|
-
background-color: ${e.palette.white};
|
|
1480
|
-
border-radius: 50%;
|
|
1481
|
-
height: ${e.spacing[1]};
|
|
1482
|
-
left: 2px;
|
|
1483
|
-
position: absolute;
|
|
1484
|
-
transition: 0.2s;
|
|
1485
|
-
width: ${e.spacing[1]};
|
|
1486
|
-
z-index: 1;
|
|
1487
|
-
`}
|
|
1488
|
-
`,fr=s.st.label`
|
|
1489
|
-
display: inline-block;
|
|
1490
|
-
|
|
1491
|
-
input {
|
|
1492
|
-
position: absolute;
|
|
1493
|
-
height: 0;
|
|
1494
|
-
opacity: 0;
|
|
1495
|
-
width: 0;
|
|
1496
|
-
}
|
|
1497
|
-
|
|
1498
|
-
input:checked + ${le} {
|
|
1499
|
-
background-color: ${({theme:e})=>e.palette.primary[500]};
|
|
1500
|
-
}
|
|
1501
|
-
|
|
1502
|
-
input:checked + ${le} > div {
|
|
1503
|
-
transform: translateX(100%);
|
|
1504
|
-
}
|
|
1505
|
-
|
|
1506
|
-
input:disabled + ${le} {
|
|
1507
|
-
cursor: not-allowed;
|
|
1508
|
-
background-color: ${({theme:e})=>e.palette.gray[100]};
|
|
1509
|
-
}
|
|
1510
|
-
|
|
1511
|
-
input:disabled + ${le} > div {
|
|
1512
|
-
background-color: ${({theme:e})=>e.palette.gray[200]};
|
|
1513
|
-
border: 1px solid ${({theme:e})=>e.palette.gray[200]};
|
|
1514
|
-
}
|
|
1515
|
-
`,_t=x.forwardRef(function({defaultChecked:n,disabled:i=!1,justify:r,name:a,leftDescription:o,leftDescriptionMinWidth:l,rightDescription:c,onChange:d,...g},p){const u=n===!0?"on":"off",f=typeof o=="object"&&o.on&&o.off?o[u]:o,h=x.useCallback(b=>{b.stopPropagation()},[]);return t.jsxs($,{alignItems:"center",display:"flex",fontSize:"14px",gap:.75,justify:r,children:[t.jsx($,{minWidth:l,children:f}),t.jsxs(fr,{onClick:h,role:"switch",children:[t.jsx("input",{...g,"aria-disabled":i,"aria-label":a,checked:n===!0,disabled:i,name:a,onChange:d,ref:p,type:"checkbox"}),t.jsx(le,{"aria-label":"Toggle Switch",id:`${a}Toggle`,children:t.jsx(xr,{})})]}),c]})}),hr=({id:e,title:n,toggles:i,minWidth:r="auto",height:a="auto"})=>{const o=s.Je();return t.jsxs($,{alignItems:"center",bgColor:o.palette.white,border:`1px solid ${o.palette.gray[200]}`,borderRadius:o.spacing[.25],display:"flex",flexDirection:"column",gap:.5,height:a,justify:"center",minHeight:"100px",minWidth:r,padding:[1.25,1.25,1.25,1.25],children:[t.jsx(Ne,{id:e,title:n}),t.jsx($,{display:"flex",flexDirection:"column",gap:.5,minHeight:"40px",width:"100%",children:i.map(l=>t.jsx(_t,{...l},`$card-toggle-${l.name}`))})]})},br=s.st.div`
|
|
1516
|
-
position: relative;
|
|
1517
|
-
margin: auto;
|
|
1518
|
-
overflow: hidden;
|
|
1519
|
-
`,yr=s.st.div`
|
|
1520
|
-
display: flex;
|
|
1521
|
-
transition: transform 0.5s ease-in-out;
|
|
1522
|
-
transform: translateX(
|
|
1523
|
-
${({$currentIndex:e})=>-e*100}%
|
|
1524
|
-
);
|
|
1525
|
-
`,$r=s.st.div`
|
|
1526
|
-
align-items: center;
|
|
1527
|
-
display: flex;
|
|
1528
|
-
justify-content: center;
|
|
1529
|
-
min-width: 100%;
|
|
1530
|
-
`,mr=s.st.button`
|
|
1531
|
-
${({theme:e,$isActive:n})=>`
|
|
1532
|
-
background-color: ${n?e.palette.primary[400]:e.palette.white};
|
|
1533
|
-
border: none;
|
|
1534
|
-
border-radius: 50%;
|
|
1535
|
-
cursor: pointer;
|
|
1536
|
-
height: ${e.spacing[.75]};
|
|
1537
|
-
width: ${e.spacing[.75]};
|
|
1538
|
-
`}
|
|
1539
|
-
`,wr=s.st.div`
|
|
1540
|
-
align-items: center;
|
|
1541
|
-
display: flex;
|
|
1542
|
-
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1543
|
-
justify-content: center;
|
|
1544
|
-
margin-top: ${({theme:e})=>e.spacing[2]};
|
|
1545
|
-
`,jr=({slides:e,interval:n=300})=>{const{cycle:i,setCycle:r,setProgress:a}=Mt(n,e.length),o=x.useCallback(l=>()=>{r(l),a(0)},[r,a]);return t.jsxs(br,{"aria-roledescription":"carousel",children:[t.jsx(yr,{$currentIndex:i,children:e.map((l,c)=>{const d=`slide-${c}`;return t.jsx($r,{"aria-label":d,"aria-roledescription":"slide",children:l.content},d)})}),t.jsx(wr,{children:e.map((l,c)=>{const d=`nav-button-${c}`;return t.jsx(mr,{$isActive:c===i,"aria-label":`Go to slide ${c+1}`,"data-testid":c===i?"active":"inactive",onClick:o(c)},d)})})]})},Jt=s.st.div`
|
|
1546
|
-
${({theme:e})=>`
|
|
1547
|
-
background-color: ${e.palette.gray[100]};
|
|
1548
|
-
border-radius: ${e.spacing[.25]};
|
|
1549
|
-
display: inline-flex;
|
|
1550
|
-
padding: ${e.spacing[1]};
|
|
1551
|
-
position: relative;
|
|
1552
|
-
width: fit-content;
|
|
1553
|
-
|
|
1554
|
-
.line-highlight.language-none {
|
|
1555
|
-
background: ${e.palette.gray[100]};
|
|
1556
|
-
}
|
|
1557
|
-
|
|
1558
|
-
.line-highlight {
|
|
1559
|
-
background: hsl(354deg 88% 93% / 50%);
|
|
1560
|
-
font-family: ${e.typography.type.mono};
|
|
1561
|
-
font-size: ${e.typography.text.xs};
|
|
1562
|
-
line-height: ${e.spacing[1]};
|
|
1563
|
-
}
|
|
1564
|
-
|
|
1565
|
-
.line-highlight::before,
|
|
1566
|
-
.line-highlight[data-end]::after {
|
|
1567
|
-
background: ${e.palette.primary[300]};
|
|
1568
|
-
background-color: hsl(355deg 89% 36%);
|
|
1569
|
-
color: ${e.palette.white};
|
|
1570
|
-
}
|
|
1571
|
-
|
|
1572
|
-
pre code {
|
|
1573
|
-
color: #161616;
|
|
1574
|
-
font-family: ${e.typography.type.mono};
|
|
1575
|
-
font-size: ${e.typography.text.xs};
|
|
1576
|
-
line-height: ${e.spacing[1]};
|
|
1577
|
-
}
|
|
1578
|
-
|
|
1579
|
-
pre:not(.line-highlight) {
|
|
1580
|
-
margin-top: unset;
|
|
1581
|
-
margin-bottom: unset;
|
|
1582
|
-
padding: unset;
|
|
1583
|
-
width: 100%;
|
|
1584
|
-
}
|
|
1585
|
-
|
|
1586
|
-
span:hover {
|
|
1587
|
-
background-color: ${e.palette.gray[200]};
|
|
1588
|
-
}
|
|
1589
|
-
|
|
1590
|
-
.no-data,
|
|
1591
|
-
pre.line-highlight {
|
|
1592
|
-
background-color: ${e.palette.gray[100]};
|
|
1593
|
-
padding-top: unset;
|
|
1594
|
-
padding-bottom: unset;
|
|
1595
|
-
}
|
|
1596
|
-
`}
|
|
1597
|
-
`,vr=s.st.div`
|
|
1598
|
-
${({theme:e})=>`
|
|
1599
|
-
align-items: end;
|
|
1600
|
-
background-color: ${e.palette.gray[100]};
|
|
1601
|
-
display: flex;
|
|
1602
|
-
flex-direction: column;
|
|
1603
|
-
justify-content: space-between;
|
|
1604
|
-
min-width: 103px;
|
|
1605
|
-
margin-right: ${e.spacing[1]};
|
|
1606
|
-
padding-top: ${e.spacing[1]};
|
|
1607
|
-
padding-bottom: ${e.spacing[1]};
|
|
1608
|
-
position: relative;
|
|
1609
|
-
padding-left: unset;
|
|
1610
|
-
|
|
1611
|
-
button:hover:not([disabled]) {
|
|
1612
|
-
background-color: ${e.palette.gray[200]};
|
|
1613
|
-
}
|
|
1614
|
-
`}
|
|
1615
|
-
`,Ut=({noCodeMessage:e="Code snippet not available",snippet:n,specific:i})=>(x.useEffect(()=>{s.prismExports.highlightAll()},[]),t.jsx(Jt,{"data-private":!0,children:t.jsx("pre",{className:"line-highlight","data-line-offset":s._.isNil(n)||s._.isString(n)?0:n.offset+.7,...i!==void 0?{"data-line":String(Number(i))}:{},children:s._.isNil(n)||s._.isString(n)||s._.isEmpty(n.content)?t.jsx("div",{className:"no-data",children:t.jsx("p",{children:e})}):t.jsx("code",{className:"language-none",children:n.content})})})),kr=({noCodeMessage:e="Code snippet not available",snippet:n,specific:i,variant:r="normal"})=>{const a=s.Je(),[o,l]=x.useState(!1),[c,d]=x.useState(!0),g=x.useCallback(()=>{l(h=>!h)},[l]),p=x.useCallback(()=>{if(s._.isNil(n)||s._.isEmpty(n)||!s._.isString(n))return d(!1),e;const h=n.split(`
|
|
1616
|
-
`);return h.length>8&&!o?`${[...h].splice(0,7).join(`
|
|
1617
|
-
`)}
|
|
1618
|
-
${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(async()=>{await navigator.clipboard.writeText(u)},[u]);return r==="location"?t.jsx(Ut,{noCodeMessage:e,snippet:n,specific:i}):t.jsxs($,{bgColor:a.palette.gray[100],borderRadius:"4px",display:"inline-flex",minWidth:"565px",position:"relative",children:[t.jsx(Jt,{"data-private":!0,children:t.jsx("pre",{children:t.jsx("code",{className:"language-none",children:u})})}),t.jsxs(vr,{children:[t.jsx(B,{height:a.spacing[2.5],icon:"copy",iconColor:a.palette.gray[700],iconSize:"xs",iconType:"fa-light",onClick:f,variant:"ghost",width:a.spacing[2.5]}),c?t.jsxs(P,{onClick:g,variant:"ghost",children:[o?"Show Less":"Show more",t.jsx(D,{icon:o?"chevron-up":"chevron-down",iconColor:a.palette.gray[700],iconSize:"xxs",iconType:"fa-light",ml:.25,onClick:f})]}):!1]})]})},{getVariant:Cr}=q(e=>({fixed:`
|
|
1619
|
-
height: auto;
|
|
1620
|
-
min-width: 300px;
|
|
1621
|
-
padding: ${e.spacing[1.25]};
|
|
1622
|
-
overflow: hidden auto;
|
|
1623
|
-
`,lg:`
|
|
1624
|
-
width: 80%;
|
|
1625
|
-
|
|
1626
|
-
@media screen and (min-width: ${e.breakpoints.sm}) {
|
|
1627
|
-
width: 72%;
|
|
1628
|
-
}
|
|
1629
|
-
`,md:`
|
|
1630
|
-
width: 60%;
|
|
1631
|
-
|
|
1632
|
-
@media screen and (min-width: ${e.breakpoints.sm}) {
|
|
1633
|
-
width: 48%;
|
|
1634
|
-
}
|
|
1635
|
-
`,sm:`
|
|
1636
|
-
width: 40%;
|
|
1637
|
-
|
|
1638
|
-
@media screen and (min-width: ${e.breakpoints.sm}) {
|
|
1639
|
-
width: 32%;
|
|
1640
|
-
}
|
|
1641
|
-
`})),Gt=s.st.div.attrs({className:"comp-modal fixed inset-0 overflow-auto"})`
|
|
1642
|
-
align-items: center;
|
|
1643
|
-
background-color: ${({$bgColor:e="rgb(52 64 84 / 70%)"})=>e};
|
|
1644
|
-
display: flex;
|
|
1645
|
-
justify-content: center;
|
|
1646
|
-
z-index: 99999;
|
|
1647
|
-
`,et=s.st($)`
|
|
1648
|
-
${({theme:e,$size:n})=>`
|
|
1649
|
-
background-color: ${e.palette.white};
|
|
1650
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
1651
|
-
border-radius: ${e.spacing[.25]};
|
|
1652
|
-
color: ${e.palette.gray[800]};
|
|
1653
|
-
display: flex;
|
|
1654
|
-
font-family: ${e.typography.type.primary};
|
|
1655
|
-
font-size: ${e.typography.text.sm};
|
|
1656
|
-
max-height: 80%;
|
|
1657
|
-
min-height: minmax(content-fit, 32%);
|
|
1658
|
-
box-shadow: ${e.shadows.lg};
|
|
1659
|
-
margin: auto;
|
|
1660
|
-
white-space: pre-line;
|
|
1661
|
-
|
|
1662
|
-
${Cr(e,n)}
|
|
1663
|
-
`}
|
|
1664
|
-
`,Sr=s.st.div`
|
|
1665
|
-
${({theme:e})=>`
|
|
1666
|
-
background-color: ${e.palette.white};
|
|
1667
|
-
border-bottom: 1px solid ${e.palette.gray[200]};
|
|
1668
|
-
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
1669
|
-
display: flex;
|
|
1670
|
-
flex-direction: column;
|
|
1671
|
-
overflow: hidden auto;
|
|
1672
|
-
padding: 0 ${e.spacing[1.5]} ${e.spacing[1.5]} ${e.spacing[1.5]};
|
|
1673
|
-
scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
|
|
1674
|
-
scroll-padding: ${e.spacing[.5]};
|
|
1675
|
-
|
|
1676
|
-
&:has(form) {
|
|
1677
|
-
flex-direction: unset;
|
|
1678
|
-
overflow: hidden;
|
|
1679
|
-
padding: 0;
|
|
1680
|
-
}
|
|
1681
|
-
`}
|
|
1682
|
-
`,zr=s.st.div`
|
|
1683
|
-
border-radius: ${({theme:e})=>`${e.spacing[.25]} ${e.spacing[.25]} 0 0`};
|
|
1684
|
-
display: block;
|
|
1685
|
-
overflow: unset;
|
|
1686
|
-
height: max-content;
|
|
1687
|
-
max-height: 100%;
|
|
1688
|
-
max-width: 100%;
|
|
1689
|
-
padding: ${({theme:e})=>`${e.spacing[1.25]}`};
|
|
1690
|
-
padding-bottom: ${({theme:e})=>`${e.spacing[1.5]}`};
|
|
1691
|
-
position: sticky;
|
|
1692
|
-
`,Ir=s.st.div.attrs({className:"flex items-center justify-between"})``,Tr=s.st.div`
|
|
1693
|
-
${({theme:e})=>`
|
|
1694
|
-
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
1695
|
-
display: flex;
|
|
1696
|
-
flex-direction: row;
|
|
1697
|
-
gap: ${e.spacing[.75]};
|
|
1698
|
-
justify-content: space-between;
|
|
1699
|
-
max-width: 392px;
|
|
1700
|
-
|
|
1701
|
-
> label {
|
|
1702
|
-
margin: 0;
|
|
1703
|
-
flex: 1 1 auto;
|
|
1704
|
-
}
|
|
1705
|
-
|
|
1706
|
-
> div {
|
|
1707
|
-
display: flex;
|
|
1708
|
-
flex-direction: row;
|
|
1709
|
-
flex: 1 1 auto;
|
|
1710
|
-
gap: ${e.spacing[.75]};
|
|
1711
|
-
margin-right: ${e.spacing[.75]};
|
|
1712
|
-
|
|
1713
|
-
> button {
|
|
1714
|
-
justify-content: center;
|
|
1715
|
-
max-width: 190px;
|
|
1716
|
-
}
|
|
1717
|
-
}
|
|
1718
|
-
|
|
1719
|
-
> div:last-child {
|
|
1720
|
-
margin-right: 0;
|
|
1721
|
-
}
|
|
1722
|
-
`}
|
|
1723
|
-
`,Fr=s.st.div`
|
|
1724
|
-
img {
|
|
1725
|
-
margin: 0 calc(-${({theme:e})=>e.spacing[1.25]} - 1px)
|
|
1726
|
-
${({theme:e})=>e.spacing[1.25]};
|
|
1727
|
-
|
|
1728
|
-
min-width: calc(100% + 2px + ${({theme:e})=>e.spacing[3]});
|
|
1729
|
-
height: 185px;
|
|
1730
|
-
object-fit: cover;
|
|
1731
|
-
|
|
1732
|
-
${({$framed:e=!1})=>e?`
|
|
1733
|
-
border-radius: 8px;
|
|
1734
|
-
min-width: 100%;
|
|
1735
|
-
margin-left: 0;
|
|
1736
|
-
margin-right: 0;
|
|
1737
|
-
`:""}
|
|
1738
|
-
}
|
|
1739
|
-
`,Vt=({alert:e,modalRef:n,confirmButton:i=void 0,cancelButton:r=void 0})=>{const{close:a}=n,o=x.useCallback(()=>{r!=null&&r.onClick&&r.onClick(),a()},[r,a]),l=x.useCallback(()=>{i!=null&&i.onClick&&i.onClick(),a()},[i,a]);return[i,r].some(d=>!s.lodashExports.isEmpty(d))?t.jsxs($,{display:"flex",flexDirection:"column",gap:.625,position:"sticky",px:1.25,py:1.25,children:[e,t.jsx(Tr,{children:t.jsxs("div",{children:[r&&t.jsx(P,{id:r.id,onClick:o,variant:"tertiary",width:"100%",children:r.text}),i&&t.jsx(P,{id:i.id,onClick:l,variant:"primary",width:"100%",children:i.text})]})})]}):null},Yt=({title:e,description:n,modalRef:i,otherActions:r,onClose:a})=>{const o=s.Je(),l=x.useCallback(()=>{a==null||a(),i.close()},[i,a]);return x.useEffect(()=>{const c=d=>{d.key==="Escape"&&l()};return window.addEventListener("keydown",c),()=>{window.removeEventListener("keydown",c)}},[l]),t.jsxs(zr,{children:[t.jsxs(Ir,{children:[typeof e=="string"?t.jsx(U,{fontWeight:"bold",lineSpacing:1.75,mr:1,size:"sm",wordBreak:"break-word",children:e}):e,t.jsxs("div",{className:"items-center flex gap-3",children:[r,t.jsx(B,{icon:"close",iconColor:o.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:l,px:.25,py:.25,variant:"ghost"})]})]}),n&&s.lodashExports.isString(n)&&!s.lodashExports.isEmpty(n)?t.jsx(I,{mt:.5,size:"sm",children:n}):void 0,n&&!s.lodashExports.isString(n)&&t.jsx(pe,{display:"block",mt:.5,size:"sm",children:n})]})},qt=({disabled:e,id:n="modal-confirm",onCancel:i,onConfirm:r="submit",txtCancel:a,txtConfirm:o})=>{const l=r==="submit";return t.jsxs($,{display:"flex",gap:.75,maxWidth:i?"392px":"190px",mt:1.5,children:[i?t.jsx(P,{id:`${n}-cancel`,justify:"center",onClick:i,variant:"tertiary",width:"100%",children:a??"Cancel"}):void 0,t.jsx(P,{disabled:e,id:n,justify:"center",onClick:l?void 0:r,type:l?"submit":"button",variant:"primary",width:"100%",children:o??"Confirm"})]})},Nr=(e,n,i)=>i?n==="secondary"?`3px solid ${e.palette.primary[100]}`:`3px solid ${e.palette.primary[500]}`:"unset",Dr=s.st.div`
|
|
1740
|
-
display: flex;
|
|
1741
|
-
flex-direction: row;
|
|
1742
|
-
gap: ${({theme:e})=>e.spacing[.25]};
|
|
1743
|
-
border-bottom: ${({theme:e,$borderButton:n,$variant:i})=>Nr(e,i,n)};
|
|
1744
|
-
align-items: center;
|
|
1745
|
-
padding: ${({theme:e})=>e.spacing[.625]}
|
|
1746
|
-
${({theme:e})=>e.spacing[.5]};
|
|
1747
|
-
padding-bottom: ${({theme:e,$borderButton:n})=>n?`calc(${e.spacing[.625]} - 2px)`:e.spacing[.625]};
|
|
1748
|
-
|
|
1749
|
-
&:hover:not([disabled]) {
|
|
1750
|
-
background-color: ${({theme:e})=>e.palette.gray[100]};
|
|
1751
|
-
color: ${({theme:e})=>e.palette.gray[800]};
|
|
1752
|
-
}
|
|
1753
|
-
|
|
1754
|
-
a {
|
|
1755
|
-
align-items: center;
|
|
1756
|
-
background: transparent;
|
|
1757
|
-
color: ${({theme:e})=>e.palette.gray[800]};
|
|
1758
|
-
font-family: ${({theme:e})=>e.typography.type.primary};
|
|
1759
|
-
font-size: ${({theme:e})=>e.typography.text.sm};
|
|
1760
|
-
display: flex;
|
|
1761
|
-
font-weight: ${({theme:e})=>e.typography.weight.regular};
|
|
1762
|
-
position: relative;
|
|
1763
|
-
text-align: center;
|
|
1764
|
-
text-decoration: unset;
|
|
1765
|
-
width: auto;
|
|
1766
|
-
cursor: pointer;
|
|
1767
|
-
|
|
1768
|
-
&:disabled {
|
|
1769
|
-
cursor: not-allowed;
|
|
1770
|
-
background-color: ${({theme:e})=>e.palette.gray[300]};
|
|
1771
|
-
color: ${({theme:e})=>e.palette.gray[300]};
|
|
1772
|
-
}
|
|
1773
|
-
|
|
1774
|
-
&.active {
|
|
1775
|
-
background-color: transparent;
|
|
1776
|
-
|
|
1777
|
-
&:hover {
|
|
1778
|
-
background-color: transparent;
|
|
1779
|
-
}
|
|
1780
|
-
}
|
|
1781
|
-
}
|
|
1782
|
-
`,Er=s.st(ve)`
|
|
1783
|
-
${({theme:e,$variant:n})=>`
|
|
1784
|
-
align-items: center;
|
|
1785
|
-
background: ${n==="error"?e.palette.primary[400]:e.palette.warning[500]};
|
|
1786
|
-
border-radius: 100%;
|
|
1787
|
-
font-family: ${e.typography.type.primary};
|
|
1788
|
-
justify-content: center;
|
|
1789
|
-
padding: 0;
|
|
1790
|
-
position: absolute;
|
|
1791
|
-
z-index: 11;
|
|
1792
|
-
width: ${e.spacing[.5]};
|
|
1793
|
-
height: ${e.spacing[.5]};
|
|
1794
|
-
`}
|
|
1795
|
-
`,Rr=s.st.div`
|
|
1796
|
-
align-items: center;
|
|
1797
|
-
color: ${({theme:e})=>e.palette.white};
|
|
1798
|
-
display: flex;
|
|
1799
|
-
font-size: 6px;
|
|
1800
|
-
font-weight: ${({theme:e})=>e.typography.weight.bold};
|
|
1801
|
-
justify-content: center;
|
|
1802
|
-
`,Kt=x.forwardRef(function({numberIndicator:n,show:i,variant:r="error",...a},o){return t.jsx(Er,{$variant:r,className:i?"flex":"hidden","data-testid":"notification-sign",ref:o,...a,children:n&&t.jsx(Rr,{children:n<=9?n:9})})}),Zt=({end:e=!1,label:n,id:i,isActive:r=!1,link:a,notificationSign:o,onClick:l,tooltip:c="",variant:d="primary",tag:g})=>{const{pathname:p}=We.useLocation(),u=r||(d==="primary"?p.includes(a):p.endsWith(a));return t.jsx(G,{display:"flex",id:`${i}-tooltip`,tip:c,children:t.jsxs(Dr,{$borderButton:u,$variant:d,children:[t.jsxs(We.NavLink,{end:e,id:i,onClick:l,to:a,children:[n,t.jsx(Kt,{left:o==null?void 0:o.left,numberIndicator:o==null?void 0:o.numberIndicator,show:o==null?void 0:o.show,top:o==null?void 0:o.top,variant:o==null?void 0:o.variant})]}),g===void 0?null:t.jsx(V,{tagLabel:`${g}`,variant:"default"})]})})},tt=({items:e,borders:n=!0,box:i=!1,variant:r="primary"})=>{const a=s.Je();return t.jsx($,{alignItems:"center",bgColor:a.palette.white,border:i?"1px solid":void 0,borderBottom:n?`1px solid ${a.palette.gray[300]}`:void 0,borderColor:i?a.palette.gray[200]:void 0,borderRadius:i?a.spacing[.25]:void 0,display:"inline-flex",gap:.25,id:"tablist",padding:i?[0,0,0,0]:void 0,pl:n?1.25:void 0,pr:n?1.25:void 0,role:"tablist",width:i?"max-content":"100%",children:e.map(({end:o,id:l,isActive:c,link:d,label:g,notificationSign:p,onClick:u,tag:f,tooltip:h})=>t.jsx(Zt,{end:o,id:l,isActive:c,label:g,link:d,notificationSign:p,onClick:u,tag:f,tooltip:h,variant:r},l))})},re=x.forwardRef(function({color:n=N.palette.gray[100],mt:i=.5,mb:r=.5,width:a,...o},l){return t.jsx($,{as:"hr",borderTop:`1px solid ${n}`,mb:r,mt:i,ref:l,width:a??"100%",...o})}),Lr=s.st.li`
|
|
1803
|
-
${({theme:e})=>`
|
|
1804
|
-
align-items: center;
|
|
1805
|
-
background-color: ${e.palette.white};
|
|
1806
|
-
color: ${e.palette.gray[800]};
|
|
1807
|
-
cursor: pointer;
|
|
1808
|
-
display: flex;
|
|
1809
|
-
font-size: ${e.typography.text.sm};
|
|
1810
|
-
font-weight: ${e.typography.weight.regular};
|
|
1811
|
-
justify-content: space-between;
|
|
1812
|
-
gap: ${e.spacing[.625]};
|
|
1813
|
-
line-height: ${e.spacing[1.25]};
|
|
1814
|
-
list-style-type: none;
|
|
1815
|
-
min-height: 40px;
|
|
1816
|
-
min-width: 240px;
|
|
1817
|
-
padding: ${e.spacing[.625]} ${e.spacing[1]};
|
|
1818
|
-
|
|
1819
|
-
p,
|
|
1820
|
-
a {
|
|
1821
|
-
word-break: break-word;
|
|
1822
|
-
}
|
|
1823
|
-
|
|
1824
|
-
& > label {
|
|
1825
|
-
margin: unset;
|
|
1826
|
-
}
|
|
1827
|
-
|
|
1828
|
-
a {
|
|
1829
|
-
color: ${e.palette.gray[500]};
|
|
1830
|
-
}
|
|
1831
|
-
|
|
1832
|
-
&[aria-disabled="true"] {
|
|
1833
|
-
color: ${e.palette.gray[300]};
|
|
1834
|
-
cursor: not-allowed;
|
|
1835
|
-
|
|
1836
|
-
a {
|
|
1837
|
-
color: ${e.palette.gray[300]};
|
|
1838
|
-
}
|
|
1839
|
-
}
|
|
1840
|
-
|
|
1841
|
-
&[aria-selected="true"] {
|
|
1842
|
-
background-color: ${e.palette.gray[200]};
|
|
1843
|
-
}
|
|
1844
|
-
|
|
1845
|
-
&:hover:not([aria-selected="true"]) {
|
|
1846
|
-
background-color: ${e.palette.gray[100]};
|
|
1847
|
-
}
|
|
1848
|
-
`}
|
|
1849
|
-
`,Xt=s.st.ul`
|
|
1850
|
-
${({theme:e})=>`
|
|
1851
|
-
background-color: ${e.palette.white};
|
|
1852
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
1853
|
-
border-radius: ${e.spacing[.25]};
|
|
1854
|
-
box-shadow: ${e.shadows.md};
|
|
1855
|
-
display: inline-block;
|
|
1856
|
-
margin: unset;
|
|
1857
|
-
min-width: 240px;
|
|
1858
|
-
padding: ${e.spacing[.25]} 0 ${e.spacing[.25]} 0;
|
|
1859
|
-
`}
|
|
1860
|
-
`,Se=({children:e,disabled:n=!1,icon:i,iconType:r="fa-light",href:a,onClick:o,onClickIcon:l,onKeyDown:c,rightIcon:d,selected:g=!1,value:p,...u})=>{const h=s.Je().palette.gray[n?300:800],b=n?x.Children.map(e,y=>x.isValidElement(y)?x.cloneElement(y,{disabled:n,...y.props}):y):e;return t.jsxs(Lr,{"aria-disabled":n,"aria-label":p,"aria-selected":g,"data-testid":p,onClick:o,onKeyDown:c,value:p,...u,children:[i!==void 0||p!==void 0?t.jsxs($,{alignItems:"center",display:"flex",gap:.625,children:[i?t.jsx(D,{disabled:n,icon:i,iconColor:h,iconSize:"xxs",iconType:r}):null,a===void 0?b:t.jsx(K,{href:a,children:b})]}):null,g||d?t.jsx(D,{disabled:n,icon:d??"check",iconClass:"selected",iconColor:h,iconSize:"xs",iconType:r,onClick:l}):null]})},Ar=s.st(Se)`
|
|
1861
|
-
margin-top: 10px;
|
|
1862
|
-
border: 1px solid ${({theme:e})=>e.palette.gray[300]};
|
|
1863
|
-
border-radius: 4px;
|
|
1864
|
-
min-width: unset;
|
|
1865
|
-
|
|
1866
|
-
svg {
|
|
1867
|
-
color: ${({theme:e})=>e.palette.gray[400]};
|
|
1868
|
-
}
|
|
1869
|
-
|
|
1870
|
-
&[aria-disabled="true"] {
|
|
1871
|
-
background: ${({theme:e})=>e.palette.gray[100]};
|
|
1872
|
-
color: ${({theme:e})=>e.palette.gray[500]};
|
|
1873
|
-
}
|
|
1874
|
-
|
|
1875
|
-
&[aria-selected="true"]:not([aria-disabled="true"]) {
|
|
1876
|
-
background-color: unset;
|
|
1877
|
-
}
|
|
1878
|
-
`,Qt=({items:e,onReorder:n,title:i,description:r,onClickClose:a})=>{const o=x.useCallback(l=>()=>{a(l)},[a]);return t.jsxs(s.ReorderGroup,{as:"div",axis:"y",layoutScroll:!0,onReorder:n,style:{height:"max-content",padding:"1.25rem 0",width:"45%"},values:e,children:[t.jsxs($,{display:"flex",gap:.25,children:[t.jsx(U,{display:"flex",size:"xs",children:i}),t.jsx(V,{priority:"high",tagLabel:String(e.filter(l=>l.visible).length),variant:"error"})]}),t.jsx(I,{size:"sm",children:r}),e.map(l=>l.visible?t.jsx(s.ReorderItem,{as:"div",dragListener:!l.locked,item:l.name,value:l,children:t.jsx(Ar,{disabled:l.locked,icon:"grid-2",label:l.name,onClickIcon:l.locked?void 0:o(l.id),rightIcon:l.locked?"lock":"close",selected:l.visible,value:l.name,children:l.name})},l.name):void 0)]})},Pr=s.st(Se)`
|
|
1879
|
-
padding: 7px 8px;
|
|
1880
|
-
|
|
1881
|
-
&[aria-selected="true"] {
|
|
1882
|
-
background-color: unset;
|
|
1883
|
-
}
|
|
1884
|
-
|
|
1885
|
-
svg {
|
|
1886
|
-
&.fa-check {
|
|
1887
|
-
border-radius: 2px;
|
|
1888
|
-
}
|
|
1889
|
-
|
|
1890
|
-
&.selected {
|
|
1891
|
-
display: none;
|
|
1892
|
-
}
|
|
1893
|
-
}
|
|
1894
|
-
`,en=({options:e,title:n,checkboxesName:i,defaultCollapsed:r,onChange:a})=>{const o=s.Je(),[l,c]=x.useState(r??!1),d=x.useCallback(()=>{c(g=>!g)},[]);return t.jsxs($,{"aria-label":n,bgColor:l?o.palette.gray[50]:o.palette.white,border:"1px solid"+o.palette.gray[300],borderRadius:"8px",display:"inline-flex",flexDirection:"column",gap:.625,px:.75,py:.625,role:"region",width:"100%",children:[t.jsxs($,{alignItems:"center",cursor:"pointer",display:"flex",onClick:d,children:[t.jsx(I,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",children:n}),t.jsx(D,{icon:l?"chevron-up":"chevron-down",iconColor:o.palette.gray[400],iconSize:"xs"})]}),l?t.jsx($,{display:"flex",gap:.75,wrap:"wrap",children:e.map(g=>t.jsx($,{border:"1px solid",borderColor:o.palette.gray[300],borderRadius:"4px",px:.5,py:.5,children:t.jsx(ne,{checked:g.visible,disabled:g.locked,label:g.name,name:`${i}-${g.name}`,onChange:a,value:g.name})},g.name))}):void 0]})},tn=e=>e.reduce((i,r)=>r.group?i[r.group]?{...i,[r.group]:[...i[r.group],r]}:{...i,[r.group]:[r]}:i,{}),Wr=s.st.input`
|
|
1895
|
-
${({theme:e})=>`
|
|
1896
|
-
background: none;
|
|
1897
|
-
border: none !important;
|
|
1898
|
-
box-shadow: none;
|
|
1899
|
-
box-sizing: border-box;
|
|
1900
|
-
color: ${e.palette.gray[800]};
|
|
1901
|
-
font-family: ${e.typography.type.primary};
|
|
1902
|
-
font-size: ${e.typography.text.sm};
|
|
1903
|
-
outline: none;
|
|
1904
|
-
width: 100%;
|
|
1905
|
-
|
|
1906
|
-
&:-webkit-autofill {
|
|
1907
|
-
-webkit-background-clip: text;
|
|
1908
|
-
}
|
|
1909
|
-
|
|
1910
|
-
&::placeholder {
|
|
1911
|
-
color: ${e.palette.gray[400]};
|
|
1912
|
-
}
|
|
1913
|
-
|
|
1914
|
-
&:is(:hover, :focus)::-webkit-search-cancel-button {
|
|
1915
|
-
display:none;
|
|
1916
|
-
}
|
|
1917
|
-
|
|
1918
|
-
::-webkit-search-decoration,
|
|
1919
|
-
::-webkit-search-results-button,
|
|
1920
|
-
::-webkit-search-results-decoration {
|
|
1921
|
-
display:none;
|
|
1922
|
-
}
|
|
1923
|
-
`}
|
|
1924
|
-
`,Br=s.st.div`
|
|
1925
|
-
${({theme:e})=>`
|
|
1926
|
-
align-items: center;
|
|
1927
|
-
background-color: ${e.palette.white};
|
|
1928
|
-
border: 1px solid ${e.palette.gray[300]};
|
|
1929
|
-
border-radius: ${e.spacing[.5]};
|
|
1930
|
-
display: flex;
|
|
1931
|
-
height: 40px;
|
|
1932
|
-
gap: ${e.spacing[.5]};
|
|
1933
|
-
padding: ${e.spacing[.5]};
|
|
1934
|
-
width: 100%;
|
|
1935
|
-
|
|
1936
|
-
&:hover {
|
|
1937
|
-
border-color: ${e.palette.gray[600]};
|
|
1938
|
-
}
|
|
1939
|
-
|
|
1940
|
-
&:focus-within {
|
|
1941
|
-
border: 2px solid ${e.palette.black};
|
|
1942
|
-
}
|
|
1943
|
-
`}
|
|
1944
|
-
`,Mr=s.st.div`
|
|
1945
|
-
${({theme:e})=>`
|
|
1946
|
-
background-color: ${e.palette.white};
|
|
1947
|
-
border-radius: ${e.spacing[.5]};
|
|
1948
|
-
width: 250px;
|
|
1949
|
-
`}
|
|
1950
|
-
`,xe=x.forwardRef(function({name:n,smallSearch:i=!1,onClear:r,value:a,...o},l){const c=s.Je(),[d,g]=x.useState(!1),{refs:p,floatingStyles:u}=s.useFloating$1(),f=x.useCallback(()=>{g(y=>!y)},[]),h=x.useCallback(y=>{y.key==="Enter"&&y.preventDefault()},[]);ie(p.floating.current,()=>{g(!1)},!0);const b=t.jsxs(Br,{children:[t.jsx(D,{icon:"magnifying-glass",iconColor:c.palette.gray[700],iconSize:"xs",iconType:"fa-light"}),t.jsx(Wr,{...o,id:n,name:n,onKeyDown:h,ref:l,type:"search",value:a}),!s.lodashExports.isEmpty(a)&&t.jsx(B,{icon:"xmark",iconColor:c.palette.gray[300],iconSize:"xs",iconType:"fa-light",onClick:r,px:.25,py:.25,type:"reset",variant:"ghost"})]});return i?t.jsxs(x.Fragment,{children:[t.jsx(B,{border:`1px solid ${c.palette.gray[300]} !important`,icon:"magnifying-glass",iconSize:"xs",iconType:"fa-light",onClick:f,ref:p.setReference,variant:"ghost"}),d?t.jsx(Mr,{ref:p.setFloating,style:u,children:b}):void 0]}):b}),nn=({columns:e,formId:n,onChangeHandler:i,variant:r})=>{const a=x.useRef(null),[o,l]=x.useState([]),[c,d]=x.useState(""),g=x.useCallback(u=>{const{value:f}=u.target;d(f)},[]),p=x.useCallback(()=>{a.current&&(a.current.reset(),d(""))},[a]);return x.useEffect(()=>{l(e.filter(u=>{var f;return r==="grouped"?u.name.toLowerCase().includes(c.toLowerCase())||((f=u.group)==null?void 0:f.includes(c.toLowerCase())):u.name.toLowerCase().includes(c.toLowerCase())}))},[e,c,r]),r==="grouped"?t.jsxs($,{display:"flex",flexDirection:"column",gap:.625,height:"100%",id:"columns-buttons",py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:a,children:t.jsx(xe,{name:"search",onChange:g,onClear:p,value:c})}),t.jsx("form",{"data-testid":n,id:n,onReset:p,style:{display:"flex",flexDirection:"column",gap:"0.625rem"},children:Object.entries(tn(o)).map(([u,f],h)=>{const b=`li-checkbox${u}`;return t.jsx(en,{checkboxesName:u,defaultCollapsed:h===0,onChange:i,options:f,title:u},b)})})]}):t.jsxs($,{height:"100%",id:"columns-buttons",py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:a,children:t.jsx(xe,{name:"search",onChange:g,onClear:p,value:c})}),t.jsx("form",{"data-testid":n,id:n,onReset:p,style:{paddingTop:"0.625rem"},children:o.map(u=>{const f=`li-checkbox-${u.name}`;return t.jsx(Pr,{selected:u.visible,value:f,width:"content",children:t.jsx(ne,{checked:u.visible,disabled:u.locked,label:u.name,name:u.name,onChange:i,value:u.name})},f)})})]})},Or=({_containerId:e="portals",title:n,modalRef:i,variant:r})=>{const a=s.Je(),o=x.useRef(null),[l,c]=x.useState(void 0),d=x.useCallback(u=>{const{checked:f,value:h}=u.target,b=i.columns.map(y=>{var m;return y.name===h?((m=y.toggleVisibility)==null||m.call(y,f),{...y,visible:f}):y});i.setColumns(b)},[i]),g=x.useCallback(u=>{const f=i.columns.map(h=>{var b;return h.id===u?((b=h.toggleVisibility)==null||b.call(h,!1),{...h,visible:!1}):h});i.setColumns(f)},[i]),p=x.useCallback(()=>{var f;const u=(f=o.current)==null?void 0:f.scrollHeight;l!==u&&c(u)},[l]);return i.isOpen?ae.createPortal(t.jsx(Gt,{"aria-label":i.name,"aria-modal":"true",children:t.jsxs(et,{$size:"md",flexDirection:"column",children:[t.jsxs($,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(U,{size:"sm",children:n}),t.jsx(B,{icon:"close",iconColor:a.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:i.close,px:.25,py:.25,variant:"ghost"})]}),t.jsx(re,{mb:0,mt:0}),t.jsxs($,{display:"flex",gap:1.25,onScroll:p,px:1.25,ref:o,scroll:"y",width:"100%",children:[t.jsx(nn,{columns:i.columns,formId:"columns-visibility",onChangeHandler:d,variant:r}),t.jsx($,{borderLeft:`2px solid ${a.palette.gray[100]}`,height:l?`${l}px`:"auto"}),t.jsx(Qt,{description:"Click and drag to reorder the columns",items:i.columns,onClickClose:g,onReorder:i.setColumns,title:"Reorder columns"})]}),t.jsx(re,{mb:0,mt:0}),t.jsxs($,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(P,{disabled:!i.hasChanged,form:"columns-visibility",id:"columns-modal-cancel",justify:"center",onClick:i.resetToDefault,type:"reset",variant:"tertiary",children:"Reset to default"}),t.jsx(P,{id:"columns-modal-submit",justify:"center",onClick:i.close,variant:"primary",children:"Save"})]})]})}),document.getElementById(e)??document.body):t.jsx("div",{})},Hr=s.st(Se)`
|
|
1951
|
-
padding: 8px;
|
|
1952
|
-
min-height: 36px;
|
|
1953
|
-
min-width: unset;
|
|
1954
|
-
`,_r=s.st.div.attrs({className:"comp-modal absolute top-[55px] overflow-auto"})`
|
|
1955
|
-
align-items: center;
|
|
1956
|
-
background-color: ${({$bgColor:e="rgb(52 64 84 / 70%)"})=>e};
|
|
1957
|
-
display: flex;
|
|
1958
|
-
justify-content: center;
|
|
1959
|
-
z-index: 99999;
|
|
1960
|
-
`,ht=s.st(Se)`
|
|
1961
|
-
padding: 7px 8px;
|
|
1962
|
-
word-wrap: break-word;
|
|
1963
|
-
|
|
1964
|
-
svg.fa-check {
|
|
1965
|
-
border-radius: 2px;
|
|
1966
|
-
}
|
|
1967
|
-
`,rn=({control:e,option:n,register:i,setValue:r})=>{var a,o,l,c,d;switch(n.type){case"checkboxes":return t.jsx("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:(a=n.options)==null?void 0:a.map(p=>t.jsx(ht,{value:p.value,width:"content",children:t.jsx(ne,{...i("checkbox"),label:p.label,value:p.value})},`li-checkbox-${p.value}`))});case"radioButton":return t.jsxs("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:[n.label,(o=n.options)==null?void 0:o.map(p=>t.jsx(ht,{value:p.value,width:"content",children:t.jsx(Qe,{...i("radio"),label:p.label,value:p.value})},`li-radio-${p.value}`))]});case"select":return t.jsx(Ze,{control:e,items:((l=n.options)==null?void 0:l.map(p=>({name:p.label??"",value:p.value})))??[],label:n.label,name:`text.${String(n.key)}-${n.filterFn??"caseInsensitive"}`,placeholder:n.placeholder,value:n.value});case"text":const g=`text.${String(n.key)}-${n.filterFn??"caseInsensitive"}`;return t.jsx(Le,{label:n.label,name:g,placeholder:n.placeholder,register:i,value:n.value});case"numberRange":return t.jsx(Bt,{label:n.label,name:String(n.key),propsMax:{placeholder:n.placeholder?`${n.placeholder} Max`:"Max",register:i,name:"maxValue",value:n.maxValue,setValue:r},propsMin:{placeholder:n.placeholder?`${n.placeholder} Min`:"Min",register:i,name:"minValue",value:n.minValue,setValue:r},variant:"filters"});case"dateRange":return t.jsx(Lt,{label:n.label,name:String(n.key),propsMax:{name:"maxValue",value:(c=n.maxValue)==null?void 0:c.toString()},propsMin:{name:"minValue",value:(d=n.minValue)==null?void 0:d.toString()},register:i,setValue:r,variant:"filters"});default:return t.jsx("div",{})}},an=({control:e,items:n,register:i,setValue:r})=>t.jsx(t.Fragment,{children:n.map((a,o)=>{const l=`${a.type}-${a.value}-${a.filterFn??"default"}`;return t.jsxs("div",{children:[t.jsx(rn,{control:e,option:a,register:i,setValue:r}),o<n.length-1&&t.jsx("hr",{style:{margin:"1.25rem 0 0.625rem"}})]},l)})}),on=e=>{var c,d,g,p,u;const[n,i]=x.useState([...e]),{control:r,register:a,handleSubmit:o,setValue:l}=s.useForm({defaultValues:{checkbox:e.filter(f=>f.type==="checkboxes").flatMap(f=>{var h;return((h=f.options)==null?void 0:h.filter(b=>b.checked).map(b=>b.value))??[]}),radio:((g=(d=(c=e.find(f=>f.type==="radioButton"))==null?void 0:c.options)==null?void 0:d.find(({checked:f})=>f))==null?void 0:g.value)??"",text:e.filter(f=>["text","select"].includes(f.type)).reduce((f,h)=>({...f,[`${String(h.key)}-${h.filterFn??"caseInsensitive"}`]:h.value??""}),{}),minValue:(p=e.find(f=>["numberRange","dateRange"].includes(f.type)))==null?void 0:p.minValue,maxValue:(u=e.find(f=>["numberRange","dateRange"].includes(f.type)))==null?void 0:u.maxValue}});return{control:r,items:n,setItems:i,register:a,handleSubmit:o,setValue:l}},Jr=(e,n)=>{var i,r,a,o,l;n("checkbox",e.filter(c=>c.type==="checkboxes").flatMap(c=>{var d;return((d=c.options)==null?void 0:d.filter(g=>g.checked).map(g=>g.value))??[]})),n("radio",((a=(r=(i=e.find(c=>c.type==="radioButton"))==null?void 0:i.options)==null?void 0:r.find(({checked:c})=>c))==null?void 0:a.value)??""),n("text",e.filter(c=>["text","select"].includes(c.type)).reduce((c,d)=>({...c,[`${String(d.key)}-${d.filterFn??"caseInsensitive"}`]:d.value??""}),{})),n("minValue",(o=e.find(c=>["numberRange","dateRange"].includes(c.type)))==null?void 0:o.minValue),n("maxValue",(l=e.find(c=>["numberRange","dateRange"].includes(c.type)))==null?void 0:l.maxValue)},Ur=(e,n)=>(e==null?void 0:e.filter(i=>{var r;return((r=i.label)==null?void 0:r.toLowerCase().includes((n==null?void 0:n.toLowerCase())??""))??i.value.toLowerCase().includes((n==null?void 0:n.toLowerCase())??"")}))??[],Gr=async(e,n)=>await Promise.all(e.map(async i=>i.type==="checkboxes"?{...i,options:i.filterOptions?await i.filterOptions(i.options??[],n):Ur(i.options??[],n)}:i)),Je=({options:e,onSearch:n,onSubmit:i,id:r,selectedFilter:a})=>{const{control:o,items:l,setItems:c,register:d,handleSubmit:g,setValue:p}=on(e),u=e.some(b=>b.type==="checkboxes"&&b.hideSearch!==!0),f=x.useCallback(async b=>{const{value:y}=b.target;n&&n(y);const m=await Gr(e,y);c(m)},[e,n,c]),h=x.useCallback(b=>{i&&i(b)},[i]);return x.useEffect(()=>{c(e),Jr(e,p)},[e,c,p]),t.jsxs("div",{className:"flex flex-col gap-[8px]",id:r,style:{writingMode:"horizontal-tb",maxWidth:"300px",width:"100%"},children:[u&&t.jsxs("div",{children:[a,t.jsx(xe,{onChange:f})]}),t.jsxs("form",{id:r,onSubmit:g(h),children:[t.jsx(an,{control:o,items:l,register:d,setValue:p}),t.jsx(P,{mt:1,type:"submit",children:"Apply"})]})]})},sn=({options:e,variant:n,onApplyFilters:i,onSearch:r,setDirection:a,setHandler:o})=>{const l=s.Je(),[c,d]=x.useState(e),[g,p]=x.useState([]),[u,f]=x.useState({}),[h,b]=x.useState(""),y=x.useCallback(w=>()=>{const v=c.find(C=>C.label===w),k=!(v!=null&&v.filterOptions.some(C=>C.type==="dateRange"||C.type==="select"));o==null||o(k??!0),b(w),p((v==null?void 0:v.filterOptions)??[])},[c,o]),m=x.useCallback(w=>{const v=[...w.checkbox,...Object.values(w.text??{}),...w.radio?[w.radio]:[],...w.minValue?[String(w.minValue)]:[],...w.maxValue?[String(w.maxValue)]:[]];f(S=>v.length>0?{...S,[h]:v}:S);const k=S=>{var R,T;return{...S,options:(R=S.options)==null?void 0:R.map(L=>({...L,checked:w.checkbox.includes(L.value)||w.radio===L.value})),value:["text","select"].includes(S.type)?((T=w.text)==null?void 0:T[`${String(S.key)}-${S.filterFn??"caseInsensitive"}`])??S.value:S.value,minValue:["numberRange","dateRange"].includes(S.type)?w.minValue:S.minValue,maxValue:["numberRange","dateRange"].includes(S.type)?w.maxValue:S.maxValue}},C=S=>S.label===h?{...S,filterOptions:S.filterOptions.map(k)}:S,z=c.map(C);d(S=>S.map(C));const F=z.flatMap(({filterOptions:S})=>S);i(F),p([])},[c,i,h]),j=x.useCallback((w,v)=>{const k=`li-filter-option-${w}`;return t.jsxs(Hr,{icon:v,onClick:y(w),style:{minWidth:"180px",writingMode:"horizontal-tb"},value:k,width:"100%",children:[w,u[w]===void 0?void 0:t.jsx(V,{tagLabel:u[w].length.toString()})]},k)},[u,y]);return x.useEffect(()=>{const w=e.reduce((v,{label:k,filterOptions:C})=>{const z=C.flatMap(({value:R,minValue:T,maxValue:L})=>[T,L,R]).filter(Boolean),F=C.flatMap(({options:R})=>R??[]).filter(({checked:R=!1})=>R).map(({value:R})=>R),S=[...z,...F];return S.length===0?v:{...v,[k]:S}},{});f(w),g.length>0&&a&&a("column")},[g,e,a]),n==="grouped"?t.jsx($,{display:"flex",flexDirection:"row",maxHeight:g.length>0?"unset":"360px",style:{rowGap:"10px",writingMode:"vertical-lr"},wrap:"wrap",children:g.length>0?t.jsx(Je,{id:"filters-options",onSearch:r,onSubmit:m,options:g,selectedFilter:h}):Object.entries(tn(e)).map(([w,v])=>t.jsxs($,{style:{writingMode:"horizontal-tb"},children:[t.jsx(I,{color:l.palette.gray[400],mb:.25,size:"sm",children:w}),v.map(({label:k,icon:C="filter-list"})=>j(k,C))]},w))}):t.jsx($,{display:"flex",flexDirection:"row",maxHeight:g.length>0?"unset":"200px",style:{rowGap:"10px",writingMode:"vertical-lr"},wrap:"wrap",children:g.length>0?t.jsx(Je,{id:"filters-options",onSearch:r,onSubmit:m,options:g,selectedFilter:h}):e.map(({label:w,icon:v="filter-list"})=>j(w,v))})},ln=({options:e,onApplyFilters:n,onSearch:i,modalRef:r,variant:a})=>{const[o,l]=x.useState("row"),[c,d]=x.useState(!0),g=s.Je(),p=x.useRef(null),u=t.jsx(B,{icon:"close",iconColor:g.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:r.close,px:.25,py:.25,variant:"ghost"});return x.useEffect(()=>{const f=h=>{const b=p.current;b&&!b.contains(h.target)&&r.close()};if(c)return document.addEventListener("mousedown",f,!0),()=>{document.removeEventListener("mousedown",f,!0)}},[p,c,r]),t.jsx(_r,{$bgColor:"transparent","aria-label":r.name,children:t.jsxs(et,{$size:"fixed",alignItems:o==="row"?"start":"end",display:"flex",flexDirection:o,gap:.5,id:"filters-list",justify:"space-between",position:"relative",px:1.25,py:1.25,ref:p,style:{maxWidth:"620px",overflow:"hidden",width:"fit-content"},children:[o==="column"?u:void 0,t.jsx(sn,{onApplyFilters:n,onSearch:i,options:e,setDirection:l,setHandler:d,variant:a}),o==="row"?u:void 0]})})};function Vr(e){if(e)return e}function cn(e){if(!e||e.length===0)return;const n=e.filter(r=>r.checked).map(r=>r.label??r.value);return n.length===0?void 0:n.join(", ")}function Yr(e,n,i){const r=i??"",a=s._.isEmpty(e)&&typeof e!="number"||Number.isNaN(e)?void 0:Number(e),o=s._.isEmpty(n)&&typeof n!="number"||Number.isNaN(n)?void 0:Number(String(n));if(!s._.isUndefined(a)&&!s._.isUndefined(o))return`${a}${r} - ${o}${r}`;if(!s._.isUndefined(a))return`Min ${a}${r}`;if(!s._.isUndefined(o))return`Max ${o}${r}`}function qr(e,n){if(s.dayjs_minExports.extend(s.localizedFormat),!(s._.isUndefined(e)&&s._.isUndefined(n))){if(e!==""&&n!==""&&!s._.isUndefined(e)&&!s._.isUndefined(n))return`${s.dayjs(e).format("LL")} - ${s.dayjs(n).format("LL")}`;if(e!==""&&!s._.isUndefined(e))return`From ${s.dayjs(e).format("LL")}`;if(n!==""&&!s._.isUndefined(n))return`To ${s.dayjs(n).format("LL")}`}}function Kr(e,n,i){return e==="select"?n:`${n} ${i==="includesInsensitive"?"contains":"is"}`}const ce=({filter:e,icon:n="filter-list",label:i,onClose:r,filterValue:a})=>s._.isNil(a)||s._.isEmpty(String(a))?null:t.jsx(V,{filterValues:a,icon:n,id:"remove-filter",onClose:r(e),tagLabel:`${i} `}),Zr=({options:e,onClose:n})=>{const i=e.flatMap(r=>r.filterOptions.map(a=>{const{filterFn:o,label:l,type:c,value:d,options:g,minValue:p,maxValue:u}=a;switch(c){case"numberRange":{const f=Yr(p,u,r.placeholder);return t.jsx(ce,{filter:a,filterValue:f,icon:r.icon,label:r.label,onClose:n},l)}case"dateRange":{const f=qr(p==null?void 0:p.toString(),u==null?void 0:u.toString());return t.jsx(ce,{filter:a,filterValue:f,icon:r.icon,label:r.label,onClose:n},l)}case"radioButton":case"checkboxes":{const f=cn(g);return t.jsx(ce,{filter:a,filterValue:f,icon:r.icon,label:r.label,onClose:n},l)}case void 0:case"select":case"text":default:{const f=Vr(d),h=Kr(c,r.label,o);return t.jsx(ce,{filter:a,filterValue:f,icon:r.icon,label:h,onClose:n},l)}}})).filter(r=>{if(r===null)return!1;const{filterValue:a}=r.props;return!s._.isNil(a)&&!s._.isEmpty(String(a))});return i.length>0?t.jsx($,{alignItems:"center",display:"flex",gap:.5,pb:1,width:"100%",wrap:"wrap",children:i}):null},Xr=(e,n)=>{function i(l,c){if(c.value===""||c.value===void 0||s._.defaultTo(c.isBackFilter,!1))return!0;switch(c.filterFn){case"includesInsensitive":return String(l[c.key]).toLowerCase().includes(c.value.toLowerCase());case"caseInsensitive":case void 0:default:return String(l[c.key]).toLowerCase()===c.value.toLowerCase()}}function r(l,c){if(!c.options||c.options.length===0)return!0;const d=c.options.filter(g=>g.checked).map(g=>g.value);return d.length===0?!0:d.includes(String(l[c.key]))}function a(l,c,d){const g=d(String(l[c.key])),{minValue:p,maxValue:u}=c,f=s._.isEmpty(p)&&typeof p!="number"?void 0:d(String(p)),h=s._.isEmpty(u)&&typeof u!="number"?void 0:d(String(u));return s._.isUndefined(f)&&s._.isUndefined(h)?!0:(f??-1/0)<=g&&g<=(h??1/0)}function o(l){return n.every(c=>{if(typeof c.key=="function")return c.key(l,c.value);switch(c.type){case"radioButton":case"checkboxes":return r(l,c);case"numberRange":return a(l,c,Number);case"dateRange":return a(l,c,d=>new Date(d));case"select":case"text":default:return i(l,c)}})}return e.filter(o)},bt=e=>[...e.flatMap(({options:i})=>i).filter(i=>i==null?void 0:i.checked),...e.flatMap(i=>[i.value,i.maxValue,i.minValue]).filter(Boolean)].length,Qr=e=>{var i;const n=((i=e.options)==null?void 0:i.map(r=>({...r,checked:void 0})))??void 0;return{...e,minValue:void 0,maxValue:void 0,value:void 0,options:n}},ea=({dataset:e,localStorageKey:n,storage:i,options:r,setFilteredDataset:a,onFiltersChange:o,onReset:l,onSearch:c,variant:d="ungrouped"})=>{const g=Ce("filters-modal"),[p,u]=x.useState([]),[f,h]=x.useState(bt(p)),b=r.map(v=>({...v,filterOptions:v.filterOptions.map(k=>p.find(z=>z.key===k.key&&z.type===k.type&&z.filterFn===k.filterFn)??{...k})})),y=x.useCallback(v=>{u([...v]),i.setItem(n,JSON.stringify(v))},[u,n,i]),m=x.useCallback(()=>{l&&l(),g.toggle()},[g,l]),j=x.useCallback(v=>()=>{l&&l();const k=p.map(C=>C.key===v.key&&C.type===v.type&&C.filterFn===v.filterFn?Qr(C):C);u(k),i.setItem(n,JSON.stringify(k))},[p,n,l,i]);return x.useEffect(()=>{const v=i.getItem(n),k=r.flatMap(z=>z.filterOptions),C=v?JSON.parse(v):k;k.flatMap(z=>z.value).filter(Boolean).length>0||k.flatMap(z=>z.options).filter(z=>(z==null?void 0:z.checked)===void 0).length>0?(u(k),i.setItem(n,JSON.stringify(k))):u(C)},[n,r,u,i]),x.useEffect(()=>{a&&e!==void 0&&a(Xr(e,p)),h(bt(p)),o==null||o(p)},[e,p,a,h,o]),{Filters:()=>t.jsxs($,{alignItems:"center",display:"flex",gap:.25,maxWidth:"100%",position:"relative",wrap:"wrap",children:[t.jsx($,{pr:.25,children:t.jsx(P,{icon:"filter",id:"filterBtn",onClick:m,tag:f.toString(),variant:"ghost"})}),g.isOpen&&t.jsx(ln,{modalRef:g,onApplyFilters:y,onSearch:c,options:b,variant:d})]}),options:b,removeFilter:j}},nt=({_portal:e=!0,alert:n,cancelButton:i=void 0,children:r=void 0,confirmButton:a=void 0,content:o=void 0,description:l=void 0,modalRef:c,otherActions:d=void 0,onClose:g=void 0,tabItems:p=void 0,title:u=void 0,size:f,id:h="modal-container"})=>{const b=s.Je(),y=t.jsx(Gt,{"aria-label":c.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs(et,{$size:f,"data-testid":h,flexDirection:"column",id:h,children:[!s._.isEmpty(u)&&!s._.isNil(u)&&t.jsx(Yt,{description:l,modalRef:c,onClose:g,otherActions:d,title:u}),p&&t.jsx($,{borderTop:`1px solid ${b.palette.gray[300]}`,display:"block",mb:1.25,position:"sticky",children:t.jsx(tt,{items:p})}),(s._.isObject(o)||r)&&t.jsxs(Sr,{children:[r,s._.isObject(o)&&s._.isString(o.imageSrc)&&t.jsx(Fr,{$framed:o.imageFramed,children:t.jsx(Q,{alt:"modal-img",publicId:o.imageSrc})}),s._.isObject(o)&&s._.isString(o.imageText)&&t.jsx(I,{size:"sm",children:o.imageText})]}),t.jsx(Vt,{alert:n,cancelButton:i,confirmButton:a,modalRef:c})]})});return e&&c.isOpen?ae.createPortal(y,document.getElementById("portals")??document.body):c.isOpen?y:null},ta=(e,n,i)=>{const r=Ce("confirm-dialog-modal"),a=x.useRef(null),o=x.useCallback(async()=>(r.open(),new Promise(g=>{a.current=g})),[r]),l=x.useCallback(()=>{var g;r.close(),(g=a.current)==null||g.call(a,!0)},[r]),c=x.useCallback(()=>{var g;r.close(),(g=a.current)==null||g.call(a,!1)},[r]);return[o,({children:g})=>{const[p,u]=x.useState(i),f=x.useCallback(()=>{u({...i})},[]),h=x.useCallback(m=>()=>{u(j=>({...j,[m]:{...j[m],state:!j[m].state}}))},[]),b=!Object.values(p).every(({state:m})=>m),y=Object.entries(p).map(([m,{state:j,label:w}])=>t.jsx(ne,{defaultChecked:j,label:w,name:m,onChange:h(m)},m));return t.jsxs(nt,{"data-testid":e,id:e,modalRef:{...r,close:c},onClose:f,size:"sm",title:n,children:[g,t.jsx($,{display:"flex",flexDirection:"column",gap:.5,children:y}),t.jsx(qt,{disabled:b,id:e,onConfirm:l})]})}]},na=()=>{const[e,n]=x.useState(!1),[i,r]=x.useState(),a=x.useRef(null),o=Ce("confirm-dialog-modal"),l=x.useCallback(async p=>(r(p),n(!0),new Promise(u=>{a.current=u})),[]),c=x.useCallback(()=>{var p;n(!1),r(void 0),(p=a.current)==null||p.call(a,!0)},[]),d=x.useCallback(()=>{var p;n(!1),r(void 0),(p=a.current)==null||p.call(a,!1)},[]);return x.useEffect(()=>{o.setIsOpen(e)},[e,o]),{ConfirmDialog:({id:p="confirm-dialog-modal",children:u})=>t.jsxs(nt,{cancelButton:{onClick:d,text:"Cancel"},confirmButton:{id:(i==null?void 0:i.id)??"modal-confirm",onClick:c,text:"Confirm"},description:i==null?void 0:i.message,id:p,modalRef:{...o,close:d},size:"sm",title:i==null?void 0:i.title,children:[i==null?void 0:i.content,u]}),confirm:l}},ia=2e3,ra=({content:e})=>{const[n,i]=x.useState("Copy"),r=x.useCallback(()=>{navigator.clipboard.writeText(e).then(()=>{i("Copied"),setTimeout(()=>{i("Copy")},ia)}).catch(()=>{i("Failed to copy")})},[e]);return t.jsx(B,{icon:"copy",iconSize:"xs",iconType:"fa-light",onClick:r,tooltip:n,variant:"ghost"})},aa=s.st.ul`
|
|
1968
|
-
${({theme:e})=>`
|
|
1969
|
-
align-items: flex-start;
|
|
1970
|
-
border-radius: ${e.spacing[.25]};
|
|
1971
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
1972
|
-
background: ${e.palette.white};
|
|
1973
|
-
box-shadow: ${e.shadows.md};
|
|
1974
|
-
display: flex;
|
|
1975
|
-
flex-direction: column;
|
|
1976
|
-
padding: ${e.spacing[.25]} 0;
|
|
1977
|
-
width: 166px;
|
|
1978
|
-
z-index: 9999;
|
|
1979
|
-
`}
|
|
1980
|
-
`,oa=s.st.li`
|
|
1981
|
-
${({theme:e})=>`
|
|
1982
|
-
align-items: center;
|
|
1983
|
-
background: ${e.palette.white}
|
|
1984
|
-
color: ${e.palette.gray[800]};
|
|
1985
|
-
cursor: pointer;
|
|
1986
|
-
display: flex;
|
|
1987
|
-
font-family: ${e.typography.type.primary};
|
|
1988
|
-
font-size: ${e.typography.text.sm};
|
|
1989
|
-
font-style: normal;
|
|
1990
|
-
font-weight: ${e.typography.weight.regular};
|
|
1991
|
-
gap: ${e.spacing[.5]};
|
|
1992
|
-
line-height: ${e.spacing[1.25]};
|
|
1993
|
-
padding: ${e.spacing[.25]} ${e.spacing[1]};
|
|
1994
|
-
width: 100%;
|
|
1995
|
-
|
|
1996
|
-
&:hover:not([aria-disabled="true"]) {
|
|
1997
|
-
background: ${e.palette.gray[100]};
|
|
1998
|
-
}
|
|
1999
|
-
|
|
2000
|
-
&[aria-disabled="true"] {
|
|
2001
|
-
background: ${e.palette.gray[100]};
|
|
2002
|
-
color: ${e.palette.gray[500]};
|
|
2003
|
-
cursor: not-allowed;
|
|
2004
|
-
}
|
|
2005
|
-
`}
|
|
2006
|
-
`,sa=({icon:e,iconColor:n,id:i,showChevron:r,options:a,title:o})=>{const l=s.Je(),[c,d]=x.useState(!1),g=c?"chevron-up":"chevron-down",{refs:p,floatingStyles:u}=s.useFloating({middleware:[s.offset({mainAxis:4})],placement:"bottom-start"}),f=x.useCallback(()=>{d(h=>!h)},[]);return ie(p.floating.current,()=>{d(!1)},!0,document.getElementById("dropdown-toggle")),t.jsxs(x.Fragment,{children:[t.jsx(P,{"aria-label":o,icon:e,iconColor:n,iconType:"fa-solid",id:`dropdown-toggle-${i}`,onClick:f,ref:p.setReference,rightIcon:r?g:void 0,variant:"ghost",children:o}),c?t.jsx(aa,{ref:p.setFloating,style:u,children:a.map(h=>{const b=({})=>{h.onClick(),d(!1)};return t.jsxs(oa,{"aria-disabled":h.disabled,"aria-label":h.label,onClick:h.disabled?void 0:b,children:[t.jsx(D,{icon:h.icon,iconColor:h.iconColor??l.palette.gray[300],iconSize:"xxs",iconType:"fa-light"}),h.label]},h.label)})}):void 0]})},Ue=({buttonProps:e,variant:n})=>t.jsx(P,{onClick:e.onClick,variant:n,children:e.text}),la=s.st.div`
|
|
2007
|
-
display: flex;
|
|
2008
|
-
flex-direction: column;
|
|
2009
|
-
align-items: center;
|
|
2010
|
-
padding: ${({theme:e,$padding:n})=>e.spacing[n]};
|
|
2011
|
-
max-width: 900px;
|
|
2012
|
-
white-space: pre-line;
|
|
2013
|
-
margin: 0 auto;
|
|
2014
|
-
`,ca=s.st.div`
|
|
2015
|
-
display: flex;
|
|
2016
|
-
flex-direction: row;
|
|
2017
|
-
justify-content: center;
|
|
2018
|
-
align-items: center;
|
|
2019
|
-
background-color: transparent;
|
|
2020
|
-
width: 96px;
|
|
2021
|
-
height: 96px;
|
|
2022
|
-
margin-bottom: ${({theme:e})=>e.spacing[2]};
|
|
2023
|
-
|
|
2024
|
-
> img {
|
|
2025
|
-
width: 100%;
|
|
2026
|
-
}
|
|
2027
|
-
`,da=s.st.div`
|
|
2028
|
-
display: flex;
|
|
2029
|
-
flex-direction: row;
|
|
2030
|
-
margin: 0;
|
|
2031
|
-
margin-bottom: ${({theme:e})=>e.spacing[2]};
|
|
2032
|
-
|
|
2033
|
-
> * {
|
|
2034
|
-
margin-right: ${({theme:e})=>e.spacing[.75]};
|
|
2035
|
-
}
|
|
2036
|
-
|
|
2037
|
-
> *:last-child {
|
|
2038
|
-
margin-right: 0;
|
|
2039
|
-
}
|
|
2040
|
-
`,yt={md:{description:"md",title:"md"},sm:{description:"sm",title:"xs"}},pa=({cancelButton:e=void 0,confirmButton:n=void 0,description:i,imageSrc:r="integrates/empty/addRoot",padding:a=1.25,title:o,size:l="md"})=>{const c=(n??e)!==void 0;return t.jsxs(la,{$padding:a,children:[t.jsx(ca,{children:t.jsx(Q,{alt:"empty-icon",publicId:r})}),t.jsx(U,{fontWeight:"bold",lineSpacing:1.75,mb:.25,size:yt[l].title,textAlign:"center",children:o}),t.jsx(I,{mb:c?2:void 0,size:yt[l].description,textAlign:"center",children:i}),c?t.jsxs(da,{children:[e&&t.jsx(Ue,{buttonProps:e,variant:"tertiary"}),n&&t.jsx(Ue,{buttonProps:n,variant:"primary"})]}):void 0]})},ga=({children:e})=>{const n=s.useFormContext();return e({...n})},ua=s.st.form`
|
|
2041
|
-
${({theme:e})=>`
|
|
2042
|
-
align-items: flex-start;
|
|
2043
|
-
align-self: stretch;
|
|
2044
|
-
display: flex;
|
|
2045
|
-
flex-direction: column;
|
|
2046
|
-
gap: ${e.spacing[.5]};
|
|
2047
|
-
overflow: hidden auto;
|
|
2048
|
-
width: 100%;
|
|
2049
|
-
`}
|
|
2050
|
-
`,xa=({alert:e,buttonAlignment:n,cancelButton:i,children:r,confirmButton:a,defaultDisabled:o=!0,id:l="modal-confirm",maxButtonWidth:c="392px",mode:d,onSubmit:g,padding:p=!0,showButtons:u=!0,yupSchema:f,...h})=>{const b=s.Je(),y=s.useForm({...h,mode:d??"all",resolver:f?s.o(f):void 0}),j=u?`calc(100% - ${e?"139px":"83px"})`:"100%",w=p?1.5:0;return t.jsx(s.FormProvider,{...y,children:t.jsx(ua,{onSubmit:y.handleSubmit(g),children:t.jsxs($,{scroll:"y",width:"100%",children:[t.jsx($,{borderRadius:`0 0 ${b.spacing[.25]} ${b.spacing[.25]}`,display:"flex",flexDirection:"column",gap:.5,height:j,pb:w,pt:0,px:w,scroll:"y",children:r}),u&&t.jsxs($,{borderRadius:`0 0 ${b.spacing[.25]} ${b.spacing[.25]}`,borderTop:`1px solid ${b.palette.gray[200]}`,display:"flex",flexDirection:n?"unset":"column",gap:.625,justify:n??"stretch",position:"sticky",px:1.25,py:1.25,children:[e,t.jsxs($,{display:"flex",gap:.75,maxWidth:c,children:[i?t.jsx(P,{icon:i.icon,id:`${l}-cancel`,justify:"center",onClick:i.onClick,type:"reset",variant:"tertiary",width:"100%",children:i.label??"Cancel"}):void 0,t.jsx(P,{disabled:((a==null?void 0:a.disabled)??!1)||y.formState.isSubmitting||o&&!y.formState.isDirty,icon:a==null?void 0:a.icon,id:l,justify:"center",type:"submit",width:"100%",children:(a==null?void 0:a.label)??"Confirm"})]})]})]})})})},fa=s.st(ve)`
|
|
2051
|
-
display: grid;
|
|
2052
|
-
gap: ${({$gap:e=1.25})=>`${e}rem`};
|
|
2053
|
-
grid-template-columns: ${({$sm:e})=>`repeat(${e}, 1fr)`};
|
|
2054
|
-
|
|
2055
|
-
${({theme:e,$xl:n,$lg:i,$md:r})=>`
|
|
2056
|
-
@media (width >= ${e.breakpoints.sm}) {
|
|
2057
|
-
grid-template-columns: repeat(${r}, 1fr);
|
|
2058
|
-
}
|
|
2059
|
-
|
|
2060
|
-
@media (width >= ${e.breakpoints.md}) {
|
|
2061
|
-
grid-template-columns: repeat(${i}, 1fr);
|
|
2062
|
-
}
|
|
2063
|
-
|
|
2064
|
-
@media (width >= ${e.breakpoints.lg}) {
|
|
2065
|
-
grid-template-columns: repeat(${n}, 1fr);
|
|
2066
|
-
}
|
|
2067
|
-
`}
|
|
2068
|
-
`,ha=x.forwardRef(function({children:n,md:i,sm:r,lg:a,xl:o,gap:l,...c},d){return t.jsx(fa,{$gap:l,$lg:a,$md:i,$sm:r,$xl:o,ref:d,...c,children:n})}),ba=s.st.div`
|
|
2069
|
-
${({theme:e,$itemsLength:n})=>`
|
|
2070
|
-
display: flex;
|
|
2071
|
-
background-color: ${e.palette.white};
|
|
2072
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
2073
|
-
border-radius: ${e.spacing[.25]};
|
|
2074
|
-
box-shadow: ${e.shadows.lg};
|
|
2075
|
-
flex-direction: column;
|
|
2076
|
-
min-width: 507px;
|
|
2077
|
-
max-width: ${n<=4?"507px":"980px"};
|
|
2078
|
-
padding: ${e.spacing[1.5]};
|
|
2079
|
-
|
|
2080
|
-
@media screen and (max-width: 980px) and (min-width: 742px) {
|
|
2081
|
-
width: 742px;
|
|
2082
|
-
}
|
|
2083
|
-
@media screen and (max-width: 742px) {
|
|
2084
|
-
width: 507px;
|
|
2085
|
-
}
|
|
2086
|
-
`}
|
|
2087
|
-
`,it=s.st.div`
|
|
2088
|
-
${({theme:e,$isSelected:n})=>`
|
|
2089
|
-
align-items: center;
|
|
2090
|
-
background-color: ${n?e.palette.gray[100]:e.palette.white};
|
|
2091
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
2092
|
-
border-radius: ${e.spacing[.25]};
|
|
2093
|
-
cursor: pointer;
|
|
2094
|
-
display: flex;
|
|
2095
|
-
flex-direction: ${n?"row-reverse":"row"};
|
|
2096
|
-
min-height: 50px;
|
|
2097
|
-
padding: ${e.spacing[1]} ${e.spacing[.625]};
|
|
2098
|
-
width: 215px;
|
|
2099
|
-
|
|
2100
|
-
&:hover {
|
|
2101
|
-
background-color: ${e.palette.gray[100]};
|
|
2102
|
-
}
|
|
2103
|
-
`}
|
|
2104
|
-
`,dn=({isSelected:e=!1,label:n,onSelect:i})=>{const r=s.Je(),a=x.useCallback(()=>{i&&i(n)},[i,n]);return t.jsxs(it,{$isSelected:e,onClick:a,children:[e?t.jsx(D,{icon:"check",iconColor:r.palette.gray[800],iconSize:"xs"}):null,t.jsx(I,{color:r.palette.gray[800],fontWeight:"bold",size:"sm",children:n})]})},ya=({isOpen:e=!0,items:n,handleNewOrganization:i,onSelect:r,onClose:a,selectedItem:o,title:l,variant:c})=>{const d=s.Je(),[g,p]=x.useState(n),[u,f]=x.useState(""),h=x.useCallback(m=>{p(j=>j.filter(w=>String(w.name).toLowerCase().includes(m.toLocaleLowerCase())))},[p]),b=x.useCallback(m=>{m.currentTarget&&(f(m.currentTarget.value),h(m.currentTarget.value))},[f,h]);x.useEffect(()=>{p(n),h(u)},[n,h,u]);const y=t.jsx($,{"aria-modal":"true",className:"comp-modal fixed inset-0 overflow-auto",zIndex:99999,children:t.jsx($,{alignItems:"center",bgColor:"rgb(52 64 84 / 70%)",display:"flex",height:"100vh",justify:"center",left:"0",top:"0",width:"100%",children:t.jsxs(ba,{$itemsLength:g.length,children:[t.jsxs($,{alignItems:"center",display:"flex",justify:"space-between",children:[t.jsx(I,{color:d.palette.gray[800],fontWeight:"bold",size:"lg",children:l}),t.jsx(B,{icon:"xmark",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:a,variant:"ghost"})]}),t.jsx($,{mt:1,children:t.jsx(xe,{onInput:b,placeholder:"Search"})}),t.jsx(re,{mb:1,mt:1}),t.jsxs($,{display:"inline-flex",gap:1,maxHeight:"332px",scroll:"y",wrap:"wrap",children:[c==="organization-selector"?t.jsx(it,{onClick:i,children:t.jsxs($,{alignItems:"center",display:"flex",children:[t.jsx(D,{icon:"square-plus",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",mr:.5}),t.jsx(I,{color:d.palette.gray[400],size:"sm",children:"New organization"})]})}):void 0,g.map(m=>t.jsx(dn,{isSelected:o.toLowerCase()===m.name,label:m.name.charAt(0).toUpperCase()+m.name.slice(1),onSelect:r},m.name))]})]})})});return e?ae.createPortal(y,document.body):t.jsx("div",{})},$a=({description:e,height:n="auto",leftIconName:i,children:r,rightIconName:a,title:o,tooltipId:l,tooltipTip:c,tooltipPlace:d="bottom",variant:g="centered",width:p="318px"})=>{const u=s.Je(),f=g==="centered",h=l&&t.jsx(G,{icon:a??i,iconColor:u.palette.gray[800],id:l,place:d,tip:c});return t.jsxs($,{alignItems:f?"center":"flex-start",bgColor:u.palette.gray[50],border:`1px solid ${u.palette.gray[200]}`,borderRadius:"4px",display:"inline-flex",flexDirection:f?"column":"column-reverse",gap:.5,height:n,justify:"center",padding:[1.25,1.25,1.25,1.25],width:p,children:[t.jsxs($,{alignItems:"center",display:"flex",gap:.5,children:[f||s.lodashExports.isUndefined(i)?void 0:h,t.jsx(I,{color:f?u.palette.gray[800]:u.palette.gray[400],size:"md",textAlign:f?"center":"start",children:e}),f||s.lodashExports.isUndefined(a)?void 0:h]}),t.jsxs($,{alignItems:"center",display:"flex",gap:.5,my:.5,children:[f&&!s.lodashExports.isUndefined(i)?h:void 0,t.jsxs("div",{style:{display:"flex",gap:"12px"},children:[s.lodashExports.isUndefined(o)?void 0:t.jsx(U,{fontWeight:"bold",size:"md",children:o}),r]}),f&&!s.lodashExports.isUndefined(a)?h:void 0]})]})},ma=({actions:e,children:n,header:i,title:r,tabs:a,footer:o})=>{const l=s.Je();return t.jsxs($,{alignItems:"flex-start",bgColor:l.palette.white,borderLeft:`1px solid ${l.palette.gray[300]}`,display:"flex",flexDirection:"column",maxHeight:"750px",width:"480px",children:[t.jsxs($,{alignItems:"flex-start",alignSelf:"stretch",borderBottom:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.25,justify:"space-between",px:1.25,py:1,children:[t.jsxs($,{display:"flex",flexDirection:"column",gap:.25,children:[t.jsx(I,{color:l.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:r}),i]}),e&&t.jsx($,{display:"flex",gap:.25,children:e.map(({icon:c,onClick:d},g)=>t.jsx(B,{icon:c??"paper-plane",iconColor:l.palette.gray[400],iconSize:"xxs",iconType:"fa-light",onClick:d,variant:"ghost"},`${g}-${c}`))})]}),t.jsx($,{display:"flex",pt:.25,width:"100%",children:t.jsx(tt,{items:a})}),t.jsx($,{alignSelf:"stretch",display:"flex",flexDirection:"column",px:1.25,py:1,scroll:"y",children:n}),o&&t.jsx($,{alignSelf:"stretch",borderTop:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.5,justify:"end",px:1.25,py:1,children:o.map(({icon:c,text:d,onClick:g},p)=>t.jsx(P,{icon:c,onClick:g,variant:p===0?"primary":"tertiary",width:"100%",children:d},`${p}-${d}`))})]})},wa=s.st.span`
|
|
2105
|
-
${({theme:e,$bgColor:n=e.palette.secondary[500],$txtDecoration:i="none"})=>`
|
|
2106
|
-
background-color: ${n};
|
|
2107
|
-
border-radius: 5px;
|
|
2108
|
-
color: ${e.palette.white};
|
|
2109
|
-
font-size: 10px;
|
|
2110
|
-
padding: ${e.spacing[.125]} ${e.spacing[.25]} ${e.spacing[.125]} ${e.spacing[.25]};
|
|
2111
|
-
text-decoration: ${i}
|
|
2112
|
-
`}
|
|
2113
|
-
`,ja=({bgColor:e,children:n,txtDecoration:i,ml:r=1})=>t.jsx(wa,{$bgColor:e,$txtDecoration:i,className:`ml-${r}`,children:n}),va={lg:"56",md:"30",sm:"12"},{getVariant:ka}=q(e=>({blue:`stroke: ${e.palette.info[500]};`,red:`stroke: ${e.palette.primary[500]};`,white:`stroke: ${e.palette.white};`})),Ca=s.ct`
|
|
2114
|
-
0% {
|
|
2115
|
-
transform: rotateZ(0deg);
|
|
2116
|
-
}
|
|
2117
|
-
100% {
|
|
2118
|
-
transform: rotateZ(360deg)
|
|
2119
|
-
}
|
|
2120
|
-
`,Sa=s.ct`
|
|
2121
|
-
0%,
|
|
2122
|
-
25% {
|
|
2123
|
-
stroke-dashoffset: 280;
|
|
2124
|
-
transform: rotate(0);
|
|
2125
|
-
}
|
|
2126
|
-
|
|
2127
|
-
50%,
|
|
2128
|
-
75% {
|
|
2129
|
-
stroke-dashoffset: 75;
|
|
2130
|
-
transform: rotate(45deg);
|
|
2131
|
-
}
|
|
2132
|
-
|
|
2133
|
-
100% {
|
|
2134
|
-
stroke-dashoffset: 280;
|
|
2135
|
-
transform: rotate(360deg);
|
|
2136
|
-
}
|
|
2137
|
-
`,za=s.st.svg`
|
|
2138
|
-
${({$size:e="md"})=>s.nt`
|
|
2139
|
-
animation: ${Ca} 2s linear infinite;
|
|
2140
|
-
animation-timing-function: linear;
|
|
2141
|
-
display: inline-block;
|
|
2142
|
-
width: ${va[e]}px;
|
|
2143
|
-
`}
|
|
2144
|
-
`,Ia=s.st.circle`
|
|
2145
|
-
${({theme:e,$color:n="red"})=>s.nt`
|
|
2146
|
-
animation: 1.4s ease-in-out infinite both ${Sa};
|
|
2147
|
-
display: block;
|
|
2148
|
-
fill: transparent;
|
|
2149
|
-
stroke-linecap: round;
|
|
2150
|
-
stroke-dasharray: 283;
|
|
2151
|
-
stroke-dashoffset: 280;
|
|
2152
|
-
stroke-width: 10px;
|
|
2153
|
-
transform-origin: 50% 50%;
|
|
2154
|
-
|
|
2155
|
-
${ka(e,n)}
|
|
2156
|
-
`}
|
|
2157
|
-
`,Ta=s.st.circle`
|
|
2158
|
-
display: block;
|
|
2159
|
-
fill: transparent;
|
|
2160
|
-
stroke: ${({theme:e})=>e.palette.gray[200]};
|
|
2161
|
-
stroke-linecap: round;
|
|
2162
|
-
stroke-width: 10px;
|
|
2163
|
-
transform-origin: 50% 50%;
|
|
2164
|
-
opacity: ${({$color:e})=>e==="white"?"20%":"unset"};
|
|
2165
|
-
`,Fa=({color:e="red",label:n,size:i})=>{const r=s.Je();return t.jsxs($,{alignItems:"center",display:"flex",children:[t.jsxs(za,{$size:i,viewBox:"0 0 100 100",children:[t.jsx(Ta,{$color:e,cx:"50",cy:"50",r:"45"}),t.jsx(Ia,{$color:e,cx:"50",cy:"50",r:"45"})]}),n&&t.jsx(I,{color:e==="red"||e==="blue"?r.palette.gray[700]:r.palette.white,ml:.5,size:"sm",children:n})]})},Na={company:{height:"83px",width:"460px"},footer:{height:"57px",width:"315px"},header:{height:"35px",width:"160px"},icon:{height:"40px",width:"40px"},inline:{width:"150px"}},Da=({publicId:e,variant:n})=>t.jsx($,{...Na[n],children:t.jsx(Q,{alt:"logo",publicId:e})}),Ea=s.st(s.Lottie).attrs(({autoplay:e=!0})=>({autoplay:e,className:"comp-lottie"}))`
|
|
2166
|
-
${({$size:e=16})=>`
|
|
2167
|
-
height: ${e}px;
|
|
2168
|
-
width: ${e}px;
|
|
2169
|
-
`}
|
|
2170
|
-
`,Ra=e=>{const{size:n}=e;return t.jsx(Ea,{$size:n,...e})},La=({children:e,commitSha:n,commitShortSha:i,parentElement:r,userInfo:a,setVisibility:o})=>{const l=s.Je(),{userName:c,email:d,phone:g,userRole:p}=a;return ie(r,()=>{o(!1)}),t.jsxs(Xt,{children:[t.jsx("li",{className:"user-info",children:t.jsxs($,{display:"inline-flex",gap:.25,width:"100%",children:[t.jsxs($,{display:"flex",flexDirection:"column",gap:.25,width:"100%",children:[t.jsx(I,{color:l.palette.gray[800],fontWeight:"bold",size:"sm",children:c}),t.jsx(I,{color:l.palette.gray[400],size:"sm",children:d}),s.lodashExports.isUndefined(g)?void 0:t.jsx(I,{color:l.palette.gray[400],size:"sm",children:g})]}),t.jsx($,{children:t.jsx(V,{tagLabel:p,variant:"role"})})]})}),t.jsx(re,{}),e,t.jsx(re,{}),t.jsx("li",{className:"commit-info",children:t.jsx(K,{href:`https://gitlab.com/fluidattacks/universe/-/tree/${n}`,iconPosition:"hidden",children:t.jsx(I,{color:l.palette.gray[400],size:"xs",children:`commit : ${i}`})})})]})},Aa=s.st.button`
|
|
2171
|
-
align-items: center;
|
|
2172
|
-
background-color: transparent;
|
|
2173
|
-
border: unset;
|
|
2174
|
-
cursor: pointer;
|
|
2175
|
-
display: flex;
|
|
2176
|
-
justify-content: center;
|
|
2177
|
-
gap: 5px;
|
|
2178
|
-
padding: 0;
|
|
2179
|
-
|
|
2180
|
-
&:hover p {
|
|
2181
|
-
color: ${N.palette.primary[200]};
|
|
2182
|
-
}
|
|
2183
|
-
|
|
2184
|
-
&:hover span {
|
|
2185
|
-
color: ${N.palette.primary[200]};
|
|
2186
|
-
}
|
|
2187
|
-
`,Pa=({message:e,onClickButton:n,buttonText:i,buttonFontWeight:r="regular",show:a=!0,icon:o,onClose:l,buttonSide:c="end"})=>{const d=s.Je(),[g,p]=x.useState(a),u=x.useCallback(()=>{p(!1),l==null||l()},[l]);x.useEffect(()=>{p(a)},[a,p]);const f=t.jsxs(Aa,{onClick:n,children:[t.jsx(I,{color:d.palette.white,fontWeight:r,size:"sm",textDecoration:"underline",children:i}),t.jsx(D,{icon:o??"arrow-right",iconColor:d.palette.white,iconSize:"xs",iconType:r==="bold"?"fa-regular":"fa-light"})]});return t.jsxs($,{alignItems:"center",bgGradient:d.palette.gradients["01"],display:g?"flex":"none",id:"message-banner",justify:"space-between",padding:[.75,.75,.75,.75],children:[t.jsxs($,{display:"flex",gap:.5,justify:"center",width:"100%",children:[c==="start"&&n?f:void 0,t.jsx($,{children:typeof e=="string"?t.jsx(I,{color:d.palette.white,display:"inline",size:"sm",children:e}):e}),c==="end"&&n?f:void 0]}),t.jsx(D,{clickable:!0,hoverColor:d.palette.primary[200],icon:"close",iconColor:d.palette.white,iconSize:"xs",iconType:"fa-light",onClick:u})]})},Wa=s.st.div`
|
|
2188
|
-
${({theme:e,$variant:n})=>`
|
|
2189
|
-
background: ${e.palette.white};
|
|
2190
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
2191
|
-
border-radius: ${e.spacing[.25]};
|
|
2192
|
-
border-left: 4px solid ${e.palette[n][500]};
|
|
2193
|
-
box-shadow: ${e.shadows.md};
|
|
2194
|
-
position: relative;
|
|
2195
|
-
display: flex;
|
|
2196
|
-
width: 360px;
|
|
2197
|
-
padding: ${e.spacing[1.25]} ${e.spacing[1]} ${e.spacing[1.25]} ${e.spacing[.75]};
|
|
2198
|
-
gap: ${e.spacing[.5]};
|
|
2199
|
-
|
|
2200
|
-
button {
|
|
2201
|
-
position: absolute;
|
|
2202
|
-
top: 20px;
|
|
2203
|
-
right: 16px;
|
|
2204
|
-
}
|
|
2205
|
-
`}
|
|
2206
|
-
`,Ba=s.st.div`
|
|
2207
|
-
${({theme:e,$variant:n})=>`
|
|
2208
|
-
height: ${e.spacing[2.5]};
|
|
2209
|
-
width: ${e.spacing[2.5]};
|
|
2210
|
-
position: relative;
|
|
2211
|
-
flex-shrink: 0;
|
|
2212
|
-
|
|
2213
|
-
& .ellipse-1,
|
|
2214
|
-
& .ellipse-2,
|
|
2215
|
-
& .icon {
|
|
2216
|
-
top: 50%;
|
|
2217
|
-
left: 50%;
|
|
2218
|
-
transform: translate(-50%, -50%);
|
|
2219
|
-
position: absolute;
|
|
2220
|
-
}
|
|
2221
|
-
|
|
2222
|
-
& .ellipse-1 {
|
|
2223
|
-
transform: scale(2.5) translate(-20%, -20%);
|
|
2224
|
-
color: ${e.palette[n][50]};
|
|
2225
|
-
position: absolute;
|
|
2226
|
-
}
|
|
2227
|
-
|
|
2228
|
-
& .ellipse-2 {
|
|
2229
|
-
transform: scale(2) translate(-25%, -25%);
|
|
2230
|
-
color: ${e.palette[n][200]};
|
|
2231
|
-
}
|
|
2232
|
-
|
|
2233
|
-
& .icon {
|
|
2234
|
-
color: ${e.palette[n][500]};
|
|
2235
|
-
}
|
|
2236
|
-
`}
|
|
2237
|
-
`,Ma=e=>e==="warning"?"triangle-exclamation":e==="info"?"circle-info":e==="success"?"circle-check":"circle-exclamation",Oa=({description:e,onClose:n,title:i,variant:r})=>{const a=s.Je(),o=x.useCallback(()=>{n==null||n()},[n]);return t.jsxs(Wa,{$variant:r,className:`notification notification__${r}`,role:"alertdialog",children:[t.jsxs(Ba,{$variant:r,children:[t.jsx(D,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),t.jsx(D,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),t.jsx(D,{icon:Ma(r),iconClass:"icon",iconSize:"xs",iconType:"fa-light"})]}),t.jsxs($,{pr:1.5,children:[t.jsx(U,{fontWeight:"bold",size:"xs",children:i}),t.jsx(I,{size:"sm",whiteSpace:"break-spaces",wordWrap:"break-word",children:e})]}),t.jsx(B,{height:"fit-content",icon:"close",iconColor:a.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:o,px:.125,py:.125,variant:"ghost"})]})},Ha=s.st.div`
|
|
2238
|
-
width: fit-content;
|
|
2239
|
-
border: ${({theme:e})=>`1px solid ${e.palette.gray[300]}`};
|
|
2240
|
-
border-radius: 4px;
|
|
2241
|
-
background: none;
|
|
2242
|
-
color: ${({theme:e})=>e.palette.black};
|
|
2243
|
-
font-family: ${({theme:e})=>e.typography.type.primary};
|
|
2244
|
-
font-size: ${({theme:e})=>e.typography.text.md};
|
|
2245
|
-
height: 40px;
|
|
2246
|
-
display: flex;
|
|
2247
|
-
align-items: center;
|
|
2248
|
-
justify-content: center;
|
|
2249
|
-
padding: 0.5em;
|
|
2250
|
-
`,_a=s.st.input`
|
|
2251
|
-
width: 4em;
|
|
2252
|
-
appearance: textfield;
|
|
2253
|
-
border-style: none;
|
|
2254
|
-
padding: 0.5rem;
|
|
2255
|
-
padding-top: 0.5rem;
|
|
2256
|
-
padding-bottom: 0.5rem;
|
|
2257
|
-
padding-left: 0.5rem;
|
|
2258
|
-
background: none;
|
|
2259
|
-
|
|
2260
|
-
&:focus {
|
|
2261
|
-
border-color: unset;
|
|
2262
|
-
box-shadow: none;
|
|
2263
|
-
outline: none;
|
|
2264
|
-
}
|
|
2265
|
-
|
|
2266
|
-
&::-webkit-outer-spin-button,
|
|
2267
|
-
&::-webkit-inner-spin-button {
|
|
2268
|
-
opacity: 1;
|
|
2269
|
-
}
|
|
2270
|
-
`,Ja=x.forwardRef(function({autoUpdate:n=!1,decimalPlaces:i=0,defaultValue:r=0,max:a,min:o,name:l,onEnter:c,tooltipMessage:d,...g},p){const u=i<0?0:i,[f,h]=x.useState(Number(r).toFixed(u)),b=x.useCallback(j=>{const w=s.lodashExports.toNumber(j.target.value);j.target.value.endsWith(".")?h(j.target.value):w>=Number(o)&&w<=Number(a)&&(h(String(w)),n&&c(s.lodashExports.toNumber(w.toFixed(u)))),j.stopPropagation()},[n,u,a,o,c]),y=x.useCallback(j=>{j.currentTarget.contains(j.relatedTarget)||h(Number(r).toFixed(u)),j.stopPropagation()},[u,r]),m=x.useCallback(j=>{j.stopPropagation(),j.key==="Enter"&&!s.lodashExports.isEmpty(j.currentTarget.value)&&c(s.lodashExports.toNumber(j.currentTarget.value))},[c]);return t.jsx(Ha,{onBlur:y,tabIndex:-1,children:t.jsx(G,{id:"numberInputTooltip",tip:d,children:t.jsx(_a,{...g,"aria-label":l,"aria-valuemax":Number(a),"aria-valuemin":Number(o),"aria-valuenow":Number(f),max:a,min:o,name:l,onChange:b,onKeyUp:m,ref:p,step:10**-u,type:"number",value:f})})})}),Ua={Azure:"integrates/autoenrollment/azureIcon",Bitbucket:"integrates/autoenrollment/bitbucketLogo",GitHub:"integrates/autoenrollment/githubLogo",GitLab:"integrates/autoenrollment/gitlabIcon"},Ge=({icon:e,label:n,onClick:i,onlyLabel:r=!1,provider:a="GitLab"})=>{const o=s.Je();return t.jsxs($,{alignItems:"center",bgColorHover:o.palette.gray[100],borderRadius:"4px",cursor:"pointer",display:"flex",flexDirection:"column",gap:.25,height:"62px",justify:"center",minWidth:"64px",onClick:i,pb:.5,pl:.25,pr:.25,pt:.5,children:[r?!1:t.jsx($,{height:"24px",width:"24px",children:e===void 0?t.jsx(Q,{alt:`${a} Logo`,height:"100%",publicId:Ua[a],width:"100%"}):t.jsx(D,{icon:e,iconColor:"#000",iconSize:"sm",iconType:"fa-light"})}),t.jsx($,{alignItems:"center",display:"flex",minWidth:"24px",children:t.jsx(I,{color:o.palette.gray[800],display:"inline",size:"xs",textAlign:"center",whiteSpace:r?"break-spaces":"nowrap",wordWrap:"unset",children:n??a})})]})},Ga=({align:e="end",buttonLabel:n="Add Credential",children:i,id:r,manualOption:a,providers:o})=>{const l=s.Je(),[c,d]=x.useState(!1),g=x.useRef(null);ie(g.current,()=>{d(!1)},!0);const p=x.useCallback(h=>{a==null||a.onClick(h),d(!1)},[a]),u=x.useCallback(()=>{d(h=>!h)},[d]),f=x.useCallback(h=>b=>{var y;(y=o[h])==null||y.onClick(b),d(!1)},[o]);return t.jsxs($,{alignItems:e,display:"flex",flexDirection:"column",position:"relative",ref:g,width:"max-content",zIndex:10,children:[t.jsx(P,{icon:"plus",onClick:u,variant:"primary",children:n}),t.jsxs($,{alignItems:"center",bgColor:"#fff",border:`1px solid ${l.palette.gray[200]}`,borderRadius:"4px",display:"flex",gap:.5,height:"78px",id:r,pb:.5,pl:.75,position:"absolute",pr:.75,pt:.5,shadow:"md",top:"40px",visibility:c?"visible":"hidden",zIndex:10,children:[Object.keys(o).map(h=>t.jsx(Ge,{onClick:f(h),provider:h},h)),a===void 0?void 0:t.jsx(Ge,{icon:"square-plus",label:a.label??"Add manually",onClick:p}),i]})]})},Va=s.st.div`
|
|
2271
|
-
${({theme:e})=>`
|
|
2272
|
-
height: ${e.spacing[1]};
|
|
2273
|
-
width: ${e.spacing[1]};
|
|
2274
|
-
position: relative;
|
|
2275
|
-
flex-shrink: 0;
|
|
2276
|
-
|
|
2277
|
-
& .ellipse-1,
|
|
2278
|
-
& .ellipse-2,
|
|
2279
|
-
& .icon {
|
|
2280
|
-
top: 50%;
|
|
2281
|
-
left: 50%;
|
|
2282
|
-
transform: translate(-50%, -50%);
|
|
2283
|
-
position: absolute;
|
|
2284
|
-
}
|
|
2285
|
-
|
|
2286
|
-
& .ellipse-1 {
|
|
2287
|
-
color: ${e.palette.warning[200]};
|
|
2288
|
-
position: absolute;
|
|
2289
|
-
}
|
|
2290
|
-
|
|
2291
|
-
& .ellipse-2 {
|
|
2292
|
-
transform: scale(0.75) translate(-67%, -66%);
|
|
2293
|
-
color: ${e.palette.warning[400]};
|
|
2294
|
-
}
|
|
2295
|
-
|
|
2296
|
-
& .icon {
|
|
2297
|
-
color: ${e.palette.warning[600]};
|
|
2298
|
-
font-size: ${e.spacing[.5]};
|
|
2299
|
-
}
|
|
2300
|
-
`}
|
|
2301
|
-
`,pn=({margin:e,onClick:n,text:i})=>{const r=s.Je(),a=t.jsxs(Va,{children:[t.jsx(D,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),t.jsx(D,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),t.jsx(D,{icon:"crown",iconClass:"icon",iconSize:"xs"})]});return i!==void 0?t.jsx($,{cursor:"pointer",display:"inline-block",mr:e,onClick:n,children:t.jsxs($,{alignItems:"center",bgColor:r.palette.warning[50],borderRadius:"4px",display:"flex",padding:[.25,.25,.25,.25],width:"fit-content",children:[a,t.jsx(I,{color:r.palette.warning[500],display:"inline",ml:.25,size:"xs",children:i})]})}):t.jsx($,{display:"inline-block",mr:e,onClick:n,children:a})},Ya=({score:e})=>{const n=s.Je(),i=e<=33?"priority-bars-low":"priority-bars-medium",r=e>66||e===0?"priority-bars-high":i;return t.jsxs($,{alignItems:"center",display:"inline-flex",gap:.25,children:[t.jsx(D,{icon:r,iconClass:e<=66?"fa-kit-duotone":"",iconColor:e>0?n.palette.primary[500]:n.palette.gray[200],iconSize:"xs",iconType:"fa-kit",secondaryColor:n.palette.gray[200]}),t.jsx(I,{color:n.palette.gray[800],size:"sm",textAlign:"right",children:e+"%"})]})},{getVariant:qa}=q(e=>({compliance:`
|
|
2302
|
-
display: inline-flex;
|
|
2303
|
-
|
|
2304
|
-
&.horizontal {
|
|
2305
|
-
height: ${e.spacing[.75]};
|
|
2306
|
-
}
|
|
2307
|
-
&.vertical {
|
|
2308
|
-
width: ${e.spacing[.75]};
|
|
2309
|
-
}
|
|
2310
|
-
`,default:`
|
|
2311
|
-
display: inline-flex;
|
|
2312
|
-
|
|
2313
|
-
&.horizontal {
|
|
2314
|
-
height: ${e.spacing[.5]};
|
|
2315
|
-
}
|
|
2316
|
-
&.vertical {
|
|
2317
|
-
width: ${e.spacing[.5]};
|
|
2318
|
-
}
|
|
2319
|
-
.progress-bar {
|
|
2320
|
-
background-color: ${e.palette.primary[500]};
|
|
2321
|
-
}
|
|
2322
|
-
`,progressIndicator:`
|
|
2323
|
-
display: flex;
|
|
2324
|
-
|
|
2325
|
-
&.horizontal {
|
|
2326
|
-
height: ${e.spacing[.125]};
|
|
2327
|
-
}
|
|
2328
|
-
&.vertical {
|
|
2329
|
-
width: ${e.spacing[.125]};
|
|
2330
|
-
}
|
|
2331
|
-
.progress-bar {
|
|
2332
|
-
background-color: ${e.palette.primary[500]};
|
|
2333
|
-
}
|
|
2334
|
-
`,progressIndicatorError:`
|
|
2335
|
-
display: flex;
|
|
2336
|
-
|
|
2337
|
-
&.horizontal {
|
|
2338
|
-
height: ${e.spacing[.125]};
|
|
2339
|
-
}
|
|
2340
|
-
&.vertical {
|
|
2341
|
-
width: ${e.spacing[.125]};
|
|
2342
|
-
}
|
|
2343
|
-
.progress-bar {
|
|
2344
|
-
background-color: ${e.palette.error[200]};
|
|
2345
|
-
}
|
|
2346
|
-
`,small:`
|
|
2347
|
-
color: ${e.palette.primary[500]};
|
|
2348
|
-
display: inline-flex;
|
|
2349
|
-
|
|
2350
|
-
&.horizontal {
|
|
2351
|
-
height: ${e.spacing[.25]};
|
|
2352
|
-
}
|
|
2353
|
-
&.vertical {
|
|
2354
|
-
width: ${e.spacing[.25]};
|
|
2355
|
-
}
|
|
2356
|
-
.progress-bar {
|
|
2357
|
-
background-color: ${e.palette.primary[500]};
|
|
2358
|
-
}
|
|
2359
|
-
`})),Ka=(e,n)=>n<50?e.palette.error[500]:n<80?e.palette.warning[500]:e.palette.success[500],Za=s.st.div`
|
|
2360
|
-
${({theme:e,$minWidth:n,$orientation:i,$rounded:r,$variant:a})=>`
|
|
2361
|
-
background-color: ${e.palette.gray[100]};
|
|
2362
|
-
border-radius: ${r?"100px":"unset"};
|
|
2363
|
-
${i==="horizontal"?"min-width":"min-height"}: ${n}px;
|
|
2364
|
-
${i==="horizontal"?"":"height: 100%;"}
|
|
2365
|
-
|
|
2366
|
-
${qa(e,a)}
|
|
2367
|
-
|
|
2368
|
-
`}
|
|
2369
|
-
`,Xa=s.st.div`
|
|
2370
|
-
${({theme:e,$percentage:n,$rounded:i,$variant:r})=>`
|
|
2371
|
-
display: inline-flex;
|
|
2372
|
-
width: ${n}%;
|
|
2373
|
-
max-width: 100%;
|
|
2374
|
-
min-width: 0%;
|
|
2375
|
-
height: 100%;
|
|
2376
|
-
border-radius: ${i?"100px":"unset"};
|
|
2377
|
-
border-end-end-radius: ${i&&n<100?"0":"inherit"};
|
|
2378
|
-
border-start-end-radius: ${i&&n<100?"0":"inherit"};
|
|
2379
|
-
background-color: ${r==="compliance"?Ka(e,n):"inherit"};
|
|
2380
|
-
`}
|
|
2381
|
-
`,gn=({minWidth:e=100,percentage:n,percentageLocation:i="right",showPercentage:r=!1,orientation:a="horizontal",rounded:o=!0,variant:l="default"})=>{const c=r&&i==="left",d=r?t.jsx($,{alignItems:"center",display:"flex",justify:c?"flex-end":"flex-start",width:"40px",children:t.jsx(I,{ml:.5,mr:c?.5:0,size:"sm",children:`${n}%`})}):null,g=t.jsx(Za,{$minWidth:e,$orientation:a,$rounded:o,$variant:l,className:a,children:t.jsx(Xa,{$percentage:n,$rounded:o,$variant:l,className:"progress-bar"})});return t.jsxs($,{alignItems:"center",display:"inline-flex",flexDirection:c?"row-reverse":"row",height:a==="horizontal"?"auto":"100%",maxWidth:c?`${e+43}px`:void 0,minWidth:c?`${e+43}px`:void 0,textAlign:"end",children:[g,d]})},un=({onClick:e})=>t.jsx("svg",{className:"in-progress-icon",fill:"none",height:"13",onClick:e,viewBox:"0 0 12 13",width:"12",xmlns:"http://www.w3.org/2000/svg",children:t.jsxs("g",{id:"Group 8",children:[t.jsx("path",{d:"M9.40199 3.00342L9.95715 2.34182C9.42087 1.88791 8.80949 1.53109 8.15051 1.28741L7.8552 2.09852C8.41952 2.30786 8.94298 2.61408 9.40199 3.00342Z",fill:"#1D2939"}),t.jsx("path",{d:"M11.1498 6.08815L11.9998 5.90982C11.8803 5.21957 11.6409 4.55558 11.2923 3.94793L10.5444 4.36018C10.8429 4.89758 11.0476 5.48194 11.1498 6.08815Z",fill:"#1D2939"}),t.jsx("path",{d:"M7.8552 11.8057L8.15051 12.6168C8.80949 12.3731 9.42087 12.0163 9.95715 11.5624L9.40199 10.9008C8.94298 11.2901 8.41952 11.5963 7.8552 11.8057Z",fill:"#1D2939"}),t.jsx("path",{d:"M10.5444 9.54409L11.2923 9.97608C11.6411 9.36144 11.8805 8.69095 12 7.99444L11.1498 7.84459C11.0476 8.44177 10.8427 9.01676 10.5444 9.54409Z",fill:"#1D2939"}),t.jsx("path",{d:"M6.04789 13V0.904236C4.44389 0.904236 2.90559 1.54142 1.77139 2.67562C0.637187 3.80982 0 5.34813 0 6.95213C0 8.55613 0.637187 10.0944 1.77139 11.2286C2.90559 12.3628 4.44389 13 6.04789 13Z",fill:"#1D2939"})]})}),xn=(e,n)=>{switch(e){case"completed":return n.palette.success[500];case"disabled":return n.palette.gray[300];case"error":return n.palette.error[500];case"in progress":return n.palette.gray[800];case"not completed":default:return n.palette.gray[800]}},Qa=s.st(D)`
|
|
2382
|
-
box-sizing: border-box;
|
|
2383
|
-
|
|
2384
|
-
border-right: ${({theme:e,$variant:n})=>n==="in progress"?`1px dashed ${xn("in progress",e)}`:"unset"};
|
|
2385
|
-
border-radius: 50%;
|
|
2386
|
-
`,eo=s.st.div`
|
|
2387
|
-
${({$minWidth:e,$orientation:n})=>`
|
|
2388
|
-
display: flex;
|
|
2389
|
-
flex-direction: ${n==="horizontal"?"row":"column"};
|
|
2390
|
-
|
|
2391
|
-
@media (width <= ${e}) {
|
|
2392
|
-
display: flex;
|
|
2393
|
-
flex-flow: row wrap;
|
|
2394
|
-
}
|
|
2395
|
-
`}
|
|
2396
|
-
`,to=150,no=({label:e,minWidth:n=to,state:i="not completed",stepNumber:r=1,title:a,onClick:o,orientation:l="horizontal"})=>{const c=s.Je(),d={completed:"circle-check",disabled:"circle-dashed",error:"circle-exclamation","in progress":"circle-half","not completed":"circle-dashed"},g=i==="disabled";return t.jsxs($,{display:"inline-flex",flexDirection:l==="horizontal"?"column":"row",minWidth:`${n}px`,children:[t.jsx(gn,{minWidth:n,orientation:l,percentage:g||i==="not completed"?0:100,rounded:!1,variant:i==="error"?"progressIndicatorError":"progressIndicator"}),t.jsxs($,{display:"flex",gap:.5,px:.5,py:.5,width:"100%",children:[i==="in progress"?t.jsx(un,{onClick:o}):t.jsx(Qa,{$variant:i,clickable:!g,disabled:g,icon:d[i],iconColor:xn(i,c),iconSize:"xs",iconType:"fa-light",onClick:g?void 0:o}),t.jsxs($,{children:[t.jsx(I,{color:c.palette.gray[g?300:800],fontWeight:"bold",size:"sm",children:`${r}.${a}`}),e===void 0?null:t.jsx(I,{color:c.palette.gray[g?300:600],size:"xs",children:e})]})]})]})},io=150,ro=({children:e,orientation:n="horizontal",minWidth:i=io})=>{const r=x.Children.toArray(e),a=x.useMemo(()=>x.Children.count(e),[e]),o=x.useMemo(()=>a*i,[a,i]);return t.jsx(eo,{$minWidth:`${o}px`,$orientation:n,children:r.map(l=>x.cloneElement(l,{minWidth:i,orientation:n}))})},fn=({description:e="",highlightDescription:n="",mobile:i})=>{const r=s.Je(),a=i?"md":"lg",o=typeof n=="string",l=o?"":new RegExp(`(${n.join("|")})`,"u");return n.length>0?t.jsx(I,{display:"inline",lineSpacing:1.5,size:a,textAlign:i?"start":"center",children:o?t.jsxs(x.Fragment,{children:[t.jsx(pe,{color:r.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:a,children:n}),e]}):e.split(l).map((c,d)=>n.includes(c)?t.jsx(pe,{color:r.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:a,children:c},`${d+1}-bold`):c)}):t.jsx(I,{lineSpacing:1.5,size:a,textAlign:i?"start":"center",children:e})},ao=({_portal:e=!1,cancelButton:n,darkBackground:i=!1,children:r,confirmButton:a,container:o,description:l,highlightDescription:c="",image:d,maxWidth:g,mobile:p=!1,title:u,titleColor:f})=>{const h=s.Je(),{alt:b,src:y,width:m="77px",height:j="77px"}=d,w=x.useCallback(()=>{n==null||n.onClick()},[n]),v=x.useCallback(()=>{a==null||a.onClick()},[a]),k=t.jsx(U,{color:f,fontWeight:"bold",lineSpacing:p?1.5:2.5,mb:p?1.5:0,size:p?"sm":"lg",textAlign:p?"start":"center",children:u}),C=t.jsx(Q,{alt:b,height:j,publicId:y,width:m}),z=t.jsx($,{alignItems:"center","aria-label":u,"aria-modal":"true",bgColor:i?"rgba(52, 64, 84, 70%)":"",display:"flex",height:"100vh",justify:"center",left:"0",position:e?"fixed":"absolute",top:"0px",width:"100%",zIndex:99999,children:t.jsxs($,{bgColor:h.palette.white,border:`1px solid ${h.palette.gray[200]}`,borderRadius:"8px",display:"inline-flex",flexDirection:"column",maxWidth:g,position:"relative",px:p?1.5:2.5,py:p?1.5:2.5,shadow:"lg",width:p?"335px":"100%",zIndex:11,children:[t.jsxs($,{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",children:[p?k:void 0,p?t.jsx($,{alignItems:"center",height:j,justify:"center",mr:0,children:t.jsx($,{bgColor:h.palette.gray[100],left:"0",position:"absolute",textAlign:"center",width:"100%",children:C})}):C,t.jsxs($,{display:"flex",flexDirection:"column",gap:.5,mb:1.5,mt:1.5,children:[p?void 0:k,t.jsx(fn,{description:l,highlightDescription:c,mobile:p})]})]}),r&&t.jsx($,{mb:1,scroll:"y",children:t.jsx($,{height:"100%",children:r})}),t.jsxs($,{alignItems:"flex-start",display:"flex",gap:1,justify:p?"start":"center",children:[s.lodashExports.isObject(a)?t.jsx(P,{onClick:v,variant:(a==null?void 0:a.variant)??"primary",children:a==null?void 0:a.text},a==null?void 0:a.key):void 0,s.lodashExports.isObject(n)?t.jsx(P,{onClick:w,variant:(n==null?void 0:n.variant)??"tertiary",children:n==null?void 0:n.text},n==null?void 0:n.key):void 0]})]})});return e?ae.createPortal(z,o??document.body):z},oo=s.st.div.attrs({className:"comp-scroll-up"})`
|
|
2397
|
-
position: fixed;
|
|
2398
|
-
bottom: ${({bottom:e})=>e??"unset"};
|
|
2399
|
-
right: ${({right:e})=>e??"unset"};
|
|
2400
|
-
z-index: ${({zIndex:e})=>e??"unset"};
|
|
2401
|
-
left: ${({left:e})=>e??"unset"};
|
|
2402
|
-
`,so=({scrollerId:e="dashboard",left:n,visibleAt:i=500,bottom:r,right:a,zIndex:o=100})=>{const[l,c]=x.useState(!1),[d,g]=x.useState(null),p=s.Je();x.useEffect(()=>{g(document.getElementById(e)),d==null||d.addEventListener("scroll",()=>{c(d.scrollTop>i)})},[d,e,i]);const u=x.useCallback(()=>{d==null||d.scrollTo({behavior:"smooth",top:0})},[d]);return l?t.jsx(oo,{bottom:r,right:a,zIndex:o,left:n,children:t.jsx(B,{borderRadius:"50%",height:"40px",icon:"arrow-up",iconSize:"sm",id:"scroll-up",onClick:u,style:{backgroundColor:p.palette.black,borderRadius:"50%",color:p.palette.white},width:"40px"})}):null},lo={critical:{bgColor:N.palette.primary[700],colorL:N.palette.gray[800],colorR:N.palette.white},disable:{bgColor:N.palette.gray[200],colorL:N.palette.gray[400],colorR:N.palette.gray[400]},high:{bgColor:N.palette.error[500],colorL:N.palette.gray[800],colorR:N.palette.white},low:{bgColor:N.palette.warning[200],colorL:N.palette.gray[800],colorR:N.palette.gray[800]},medium:{bgColor:N.palette.warning[500],colorL:N.palette.gray[800],colorR:N.palette.gray[800]}},co=({textL:e,textR:n,variant:i})=>{const r=s.Je(),{bgColor:a,colorL:o,colorR:l}=lo[i];return t.jsxs($,{alignItems:"flex-start",display:"inline-flex",children:[e?t.jsx($,{alignItems:"center",bgColor:r.palette.white,border:`1px solid ${a}`,borderRadius:"4px 0px 0px 4px",display:"flex",justify:"center",padding:[0,.25,0,.25],children:t.jsx(I,{color:o,size:"xs",children:e})}):void 0,t.jsx($,{alignItems:"center",bgColor:a,border:`1px solid ${a}`,borderRadius:e?"0px 4px 4px 0px":"4px",display:"flex",padding:e?[0,.25,0,.125]:[0,.25,0,.25],pb:.125,pl:.125,pr:.125,pt:.125,children:t.jsx(I,{color:l,size:"xs",children:n})})]})},po=(e,n)=>{const i={critical:N.palette.primary[700],high:N.palette.error[500],low:N.palette.warning[200],medium:N.palette.warning[500],none:N.palette.gray[200]},r={disabled:N.palette.gray[400],enabled:N.palette.gray[800]},a={critical:N.palette.white,high:N.palette.white,low:N.palette.gray[800],medium:N.palette.gray[800],none:N.palette.gray[400]};return{iconColor:n<1?i.none:i[e],iconText:s.lodashExports.capitalize(e.charAt(0)),iconTextColor:n<1?a.none:a[e],textColor:n<1?r.disabled:r.enabled}},de=({variant:e,value:n})=>{const{iconColor:i,iconText:r,iconTextColor:a,textColor:o}=po(e,n),l=s.lodashExports.capitalize(e.charAt(0))+e.slice(1);return t.jsxs($,{alignItems:"center",display:"inline-flex",gap:.5,minWidth:"43px",children:[t.jsx(G,{id:l,place:"top",tip:l,children:t.jsx($,{alignItems:"center",bgColor:i,borderRadius:"4px",cursor:"pointer",display:"flex",height:"22px",maxWidth:"22px",minWidth:"22px",children:t.jsx(I,{color:a,size:"sm",textAlign:"center",children:r})})}),t.jsx(I,{color:o,size:"sm",children:n})]})},go=({critical:e,high:n,medium:i,low:r})=>t.jsxs($,{alignItems:"center",display:"inline-flex",gap:1,children:[t.jsx(de,{value:e,variant:"critical"}),t.jsx(de,{value:n,variant:"high"}),t.jsx(de,{value:i,variant:"medium"}),t.jsx(de,{value:r,variant:"low"})]}),uo=s.st.div`
|
|
2403
|
-
${({theme:e})=>`
|
|
2404
|
-
border-radius: ${e.spacing[.25]};
|
|
2405
|
-
cursor: pointer;
|
|
2406
|
-
display: flex;
|
|
2407
|
-
gap: ${e.spacing[.5]};
|
|
2408
|
-
justify-content: end;
|
|
2409
|
-
position: relative;
|
|
2410
|
-
z-index: 20;
|
|
2411
|
-
|
|
2412
|
-
&:hover {
|
|
2413
|
-
background-color: ${e.palette.gray[100]};
|
|
2414
|
-
}
|
|
2415
|
-
|
|
2416
|
-
&:hover > div {
|
|
2417
|
-
display: block;
|
|
2418
|
-
}
|
|
2419
|
-
`}
|
|
2420
|
-
`,xo=({visibleElement:e,hiddenElement:n})=>t.jsxs(uo,{children:[e,t.jsx($,{display:"none",position:"absolute",top:"100%",zIndex:10,children:n})]}),hn=({customBadge:e=void 0,description:n,icon:i,onClick:r,requiresUpgrade:a=!1,title:o})=>{const l=s.Je();return t.jsxs($,{bgColor:l.palette.white,bgColorHover:l.palette.gray[100],cursor:"pointer",display:"flex",gap:.5,onClick:r,px:1.25,py:1,width:"100%",children:[t.jsx($,{alignItems:"center",bgColor:l.palette.gray[300],borderRadius:l.spacing[.25],display:"flex",height:"24px",justify:"center",width:"24px",children:t.jsx(D,{icon:i,iconColor:l.palette.gray[800],iconSize:"xxs",ml:.5,mr:.5})}),t.jsxs($,{children:[t.jsxs($,{alignItems:"center",display:"inline-flex",gap:.5,children:[t.jsx(I,{color:l.palette.gray[800],size:"sm",children:o}),a?t.jsx(pn,{text:"Upgrade"}):void 0,e]}),t.jsx(I,{color:l.palette.gray[400],size:"xs",children:n})]})]})},fo=s.st(s.m.div)`
|
|
2421
|
-
${({theme:e})=>`
|
|
2422
|
-
background-color: ${e.palette.white};
|
|
2423
|
-
box-shadow: ${e.shadows.lg};
|
|
2424
|
-
max-width: 350px;
|
|
2425
|
-
min-width: 350px;
|
|
2426
|
-
height: 100%;
|
|
2427
|
-
position: absolute;
|
|
2428
|
-
right: 0;
|
|
2429
|
-
top: 0;
|
|
2430
|
-
overflow: hidden auto;
|
|
2431
|
-
scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
|
|
2432
|
-
scroll-padding: ${e.spacing[.5]};
|
|
2433
|
-
scrollbar-width: thin;
|
|
2434
|
-
z-index: 99999;
|
|
2435
|
-
|
|
2436
|
-
> div {
|
|
2437
|
-
border: 1px solid ${e.palette.gray[100]};
|
|
2438
|
-
width: auto;
|
|
2439
|
-
min-height: 100vh;
|
|
2440
|
-
height: auto;
|
|
2441
|
-
}
|
|
2442
|
-
`}
|
|
2443
|
-
`,ho=({children:e,closeIconId:n="close-menu",isOpen:i,items:r,onClose:a,primaryButtonText:o,primaryOnClick:l,secondaryButtonText:c,secondaryOnClick:d,title:g})=>{const p=s.Je(),u=x.useRef(null),f=x.useCallback(h=>()=>{h(),a()},[a]);return x.useEffect(()=>{const h=["mousedown","touchstart"],b=y=>{var k;const m=y.target,j=document.getElementById("helpBtn"),w=document.getElementById("filterBtn"),v=(m===j||((j==null?void 0:j.contains(m))??!1)||m===w||(w==null?void 0:w.contains(m)))??!1;i&&!v&&!(((k=u.current)==null?void 0:k.contains(m))??!1)&&a()};return h.forEach(y=>{document.addEventListener(y,b,{passive:!0})}),()=>{h.forEach(y=>{document.removeEventListener(y,b)})}},[i,a]),t.jsx(s.LazyMotion,{features:s.domAnimation,children:t.jsx(fo,{animate:i?{display:"block",x:0}:{transitionEnd:{display:"none"},x:"100%"},initial:{display:"none",x:"100%"},ref:u,transition:{bounce:0,duration:.6,type:"spring"},children:t.jsxs($,{height:"100%",position:"relative",children:[t.jsxs($,{alignItems:"center",bgColor:p.palette.white,borderBottom:"1px solid",borderColor:p.palette.gray[200],display:"flex",gap:1.25,justify:"space-between",padding:[1.25,1.25,1.25,1.25],position:"sticky",top:"0",zIndex:40,children:[t.jsx(I,{color:p.palette.black,display:"inline",fontWeight:"bold",size:"xl",children:g}),t.jsx(B,{icon:"close",iconColor:p.palette.gray[400],iconSize:"xs",iconTransform:"grow-4",iconType:"fa-light",id:n,onClick:a,px:.25,py:.25,variant:"ghost"})]}),t.jsxs($,{display:"flex",flexDirection:"column",justify:"space-between",minHeight:"100vh",children:[t.jsxs($,{py:1.25,children:[(r??[]).map(({customBadge:h,description:b,icon:y,onClick:m,requiresUpgrade:j,title:w})=>t.jsx(hn,{customBadge:h,description:b,icon:y,onClick:f(m),requiresUpgrade:j,title:w},w)),e&&t.jsx($,{px:1.25,children:e})]}),o===void 0?void 0:t.jsxs($,{alignItems:"center",bgColor:p.palette.white,borderColor:p.palette.gray[200],borderTop:"1px solid",bottom:"0",display:"flex",gap:1.25,justify:"end",padding:[1.25,1.25,1.25,1.25],position:"sticky",width:"100%",zIndex:40,children:[c===void 0?void 0:t.jsx(P,{color:`${p.palette.primary[500]} !important`,onClick:d,pl:.5,pr:.5,variant:"ghost",children:c}),t.jsx(P,{onClick:l,type:"submit",children:o})]})]})]})})})},bo=(e,n)=>n>=50?`
|
|
2444
|
-
${e.palette.gray[200]} 50%,
|
|
2445
|
-
${e.palette.primary[500]} 50.05%,
|
|
2446
|
-
${e.palette.primary[500]} ${n}%,
|
|
2447
|
-
${e.palette.gray[200]} ${n}%
|
|
2448
|
-
`:`
|
|
2449
|
-
${e.palette.gray[200]} ${n}%,
|
|
2450
|
-
${e.palette.primary[500]} ${n}%,
|
|
2451
|
-
${e.palette.primary[500]} 50%,
|
|
2452
|
-
${e.palette.gray[200]} 50.05%,
|
|
2453
|
-
${e.palette.gray[200]} 100%
|
|
2454
|
-
`,yo=s.st.div`
|
|
2455
|
-
${({theme:e,$min:n,$value:i})=>`
|
|
2456
|
-
align-items: center;
|
|
2457
|
-
align-self: stretch;
|
|
2458
|
-
display: flex;
|
|
2459
|
-
flex-direction: column;
|
|
2460
|
-
justify-content: end;
|
|
2461
|
-
gap: ${e.spacing[.75]};
|
|
2462
|
-
width: 100%;
|
|
2463
|
-
|
|
2464
|
-
.track {
|
|
2465
|
-
background: linear-gradient(
|
|
2466
|
-
to right,
|
|
2467
|
-
${n>=0?`
|
|
2468
|
-
${e.palette.primary[500]} ${i}%,
|
|
2469
|
-
${e.palette.gray[200]} ${i}%
|
|
2470
|
-
`:bo(e,i)}
|
|
2471
|
-
);
|
|
2472
|
-
border-radius: ${e.spacing[.125]};
|
|
2473
|
-
height: ${e.spacing[.25]};
|
|
2474
|
-
width: 100%;
|
|
2475
|
-
}
|
|
2476
|
-
|
|
2477
|
-
.track.disabled {
|
|
2478
|
-
opacity: 0.4;
|
|
2479
|
-
}
|
|
2480
|
-
|
|
2481
|
-
.thumb {
|
|
2482
|
-
background: ${e.palette.white};
|
|
2483
|
-
border-radius: ${e.spacing[1.25]};
|
|
2484
|
-
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.30);
|
|
2485
|
-
top: 50%;
|
|
2486
|
-
height: 20px;
|
|
2487
|
-
width: 20px;
|
|
2488
|
-
}
|
|
2489
|
-
|
|
2490
|
-
.thumb.dragging {
|
|
2491
|
-
border: 1px solid ${e.palette.primary[500]};
|
|
2492
|
-
}
|
|
2493
|
-
`}
|
|
2494
|
-
`,$o=s.st.div`
|
|
2495
|
-
${({theme:e})=>`
|
|
2496
|
-
align-items: center;
|
|
2497
|
-
display: flex;
|
|
2498
|
-
justify-content: space-between;
|
|
2499
|
-
height: ${e.spacing[.625]};
|
|
2500
|
-
width: 100%;
|
|
2501
|
-
|
|
2502
|
-
p {
|
|
2503
|
-
color: ${e.palette.gray[400]};
|
|
2504
|
-
font-family: ${e.typography.type.primary};
|
|
2505
|
-
font-size: ${e.spacing[.5]};
|
|
2506
|
-
}
|
|
2507
|
-
`}
|
|
2508
|
-
`,mo=s.st.output`
|
|
2509
|
-
${({theme:e})=>`
|
|
2510
|
-
align-items: flex-end;
|
|
2511
|
-
border-radius: ${e.spacing[.5]};
|
|
2512
|
-
border: 1px solid ${e.palette.gray[300]};
|
|
2513
|
-
background: ${e.palette.white};
|
|
2514
|
-
display: flex;
|
|
2515
|
-
gap: ${e.spacing[.625]};
|
|
2516
|
-
padding: ${e.spacing[.625]} ${e.spacing[.75]};
|
|
2517
|
-
width: 59px;
|
|
2518
|
-
`}
|
|
2519
|
-
`,bn=({state:e,trackRef:n,index:i,name:r})=>{const a=x.useRef(null),{thumbProps:o,inputProps:l,isDragging:c}=s.$47b897dc8cdb026b$export$8d15029008292ae({index:i,trackRef:n,inputRef:a},e);return t.jsx("div",{...o,className:`thumb ${c?"dragging":""}`,children:t.jsx(s.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:t.jsx("input",{...l,"aria-label":r,ref:a})})})},wo=(e,n,i)=>Math.round((i-e)/(n-e)*100),jo=e=>{const n=s.Je(),i=x.useRef(null),{label:r,minValue:a=0,maxValue:o=100,name:l,setValue:c,watch:d}=e,g=s.$a916eb452884faea$export$b7a616150fdb9f44(),p=s.$28f99e3e86e6ec45$export$e5fda3247f5d67f9({...e,numberFormatter:g,onChange(b){c==null||c(l,b)},value:d==null?void 0:d(l)}),u=wo(a,o,p.getThumbValue(0)),{groupProps:f,trackProps:h}=s.$bcca50147b47f54d$export$56b2c08e277f365({...e,"aria-label":l,id:l},p,i);return t.jsx(J,{htmlFor:l,label:r,children:t.jsxs($,{alignItems:"center",display:"inline-flex",gap:1.25,pl:.5,width:"100%",children:[t.jsxs(yo,{...f,$min:a??0,$value:u,className:"slider",children:[t.jsx("div",{...h,className:`track ${p.isDisabled?"disabled":""}`,ref:i,children:t.jsx(bn,{index:0,name:l,state:p,trackRef:i})}),t.jsxs($o,{children:[t.jsx("p",{children:`${g.format(a)} (Low)`}),a<0&&t.jsx("p",{children:"0"}),t.jsx("p",{children:`${g.format(o)} (High)`})]})]}),t.jsx(mo,{children:t.jsx(I,{color:n.palette.gray[800],size:"sm",textAlign:"right",children:p.getThumbValueLabel(0)})})]})})},{getVariant:vo}=q(e=>({completed:`
|
|
2520
|
-
background-color: ${e.palette.primary[500]};
|
|
2521
|
-
color: ${e.palette.white};
|
|
2522
|
-
|
|
2523
|
-
&::after {
|
|
2524
|
-
background-color: ${e.palette.primary[500]};
|
|
2525
|
-
}
|
|
2526
|
-
`,current:`
|
|
2527
|
-
background-color: ${e.palette.primary[500]};
|
|
2528
|
-
color: ${e.palette.white};
|
|
2529
|
-
|
|
2530
|
-
&::after {
|
|
2531
|
-
background-color: ${e.palette.gray[200]};
|
|
2532
|
-
}
|
|
2533
|
-
`,disabled:`
|
|
2534
|
-
background-color: ${e.palette.gray[200]};
|
|
2535
|
-
outline: 1px solid ${e.palette.gray[400]};
|
|
2536
|
-
outline-offset: -1px;
|
|
2537
|
-
color: ${e.palette.gray[400]};
|
|
2538
|
-
|
|
2539
|
-
&::after {
|
|
2540
|
-
background-color: ${e.palette.gray[200]};
|
|
2541
|
-
}
|
|
2542
|
-
`})),ko=s.st.div`
|
|
2543
|
-
${({theme:e})=>`
|
|
2544
|
-
align-items: stretch;
|
|
2545
|
-
background-color: ${e.palette.white};
|
|
2546
|
-
display: flex;
|
|
2547
|
-
flex-direction: column;
|
|
2548
|
-
height: 100%;
|
|
2549
|
-
padding: ${`${e.spacing[1]} ${e.spacing[1]}`};
|
|
2550
|
-
scroll-behavior: unset;
|
|
2551
|
-
`}
|
|
2552
|
-
`,Co=s.st.div`
|
|
2553
|
-
display: flex;
|
|
2554
|
-
flex-direction: row;
|
|
2555
|
-
margin-bottom: ${({theme:e})=>e.spacing[2]};
|
|
2556
|
-
|
|
2557
|
-
&:last-child > div:first-child > span::after {
|
|
2558
|
-
display: none;
|
|
2559
|
-
}
|
|
2560
|
-
`,So=s.st.div`
|
|
2561
|
-
${({theme:e})=>`
|
|
2562
|
-
display: inline-flex;
|
|
2563
|
-
font-family: ${e.typography.type.primary};
|
|
2564
|
-
font-size: ${e.typography.text.sm};
|
|
2565
|
-
line-height: ${e.spacing[1.25]};
|
|
2566
|
-
margin-top: ${e.spacing[1]};
|
|
2567
|
-
|
|
2568
|
-
& > button:first-child {
|
|
2569
|
-
margin-right: ${e.spacing[.5]};
|
|
2570
|
-
}
|
|
2571
|
-
`}
|
|
2572
|
-
`,zo=s.st.span`
|
|
2573
|
-
${({theme:e,$variant:n})=>`
|
|
2574
|
-
border-radius: 6px;
|
|
2575
|
-
display: inline-block;
|
|
2576
|
-
text-align: center;
|
|
2577
|
-
font-size: ${e.typography.text.sm};
|
|
2578
|
-
font-weight: ${e.typography.weight.bold};
|
|
2579
|
-
font-family: ${e.typography.type.primary};
|
|
2580
|
-
line-height: ${e.spacing[1]};
|
|
2581
|
-
padding: ${`${e.spacing[.5]} ${e.spacing[.5]}`};
|
|
2582
|
-
height: ${e.spacing[2]};
|
|
2583
|
-
width: ${e.spacing[2]};
|
|
2584
|
-
|
|
2585
|
-
&::after {
|
|
2586
|
-
content: "";
|
|
2587
|
-
position: absolute;
|
|
2588
|
-
top: calc(32px + ${e.spacing[.5]});
|
|
2589
|
-
left: 50%;
|
|
2590
|
-
bottom: 0;
|
|
2591
|
-
width: 2px;
|
|
2592
|
-
height: calc(100% - ${e.spacing[1]});
|
|
2593
|
-
}
|
|
2594
|
-
|
|
2595
|
-
${vo(e,n)}
|
|
2596
|
-
`}
|
|
2597
|
-
`,Io=({button:{disabled:e=!1,text:n,type:i="button",onClick:r},steps:a})=>{const[o,l]=x.useState(1),c=x.useCallback((d,g)=>()=>{l(p=>p+d),g==null||g()},[]);return t.jsx(ko,{children:a.map((d,g)=>{const{content:p,title:u,nextAction:f,previousAction:h}=d,b=g+1,y=b===o?"current":"disabled",m=b<o?"completed":y;return t.jsxs(Co,{children:[t.jsx($,{maxWidth:"40px",position:"relative",children:t.jsx(zo,{$variant:m,children:m==="completed"?t.jsx(D,{icon:"check",iconSize:"xs",iconType:"fa-solid"}):b})}),t.jsxs($,{ml:1.5,width:"100%",children:[t.jsx(U,{fontWeight:"bold",lineSpacing:1.25,mb:1.5,size:"xs",children:u}),m==="current"&&t.jsxs($,{children:[p,t.jsxs(So,{children:[o>1&&t.jsx(P,{disabled:d.isDisabledPrevious??!1,onClick:c(-1,h),variant:"tertiary",children:"Previous"}),o<a.length?t.jsx(P,{disabled:d.isDisabledNext??!1,onClick:c(1,f),variant:"primary",children:"Next step"}):t.jsx(P,{disabled:e,onClick:r,type:i,variant:"primary",children:n})]})]})]})]},d.title)})})},To=s.st.button`
|
|
2598
|
-
${({theme:e})=>`
|
|
2599
|
-
align-items: center;
|
|
2600
|
-
background-color: ${e.palette.white};
|
|
2601
|
-
border: 1px solid ${e.palette.gray[100]};
|
|
2602
|
-
border-radius: ${e.spacing[.25]};
|
|
2603
|
-
color: ${e.palette.gray[800]};
|
|
2604
|
-
cursor: pointer;
|
|
2605
|
-
display: flex;
|
|
2606
|
-
font-size: ${e.typography.text.sm};
|
|
2607
|
-
gap: ${e.spacing[.25]};
|
|
2608
|
-
height: 21px;
|
|
2609
|
-
width: 21px;
|
|
2610
|
-
justify-content: center;
|
|
2611
|
-
padding: 6px;
|
|
2612
|
-
transition: all 0.25s ease;
|
|
2613
|
-
|
|
2614
|
-
&[aria-label] {
|
|
2615
|
-
height: auto;
|
|
2616
|
-
width: auto;
|
|
2617
|
-
}
|
|
2618
|
-
|
|
2619
|
-
&.success {
|
|
2620
|
-
border-color: ${e.palette.success[500]};
|
|
2621
|
-
color: ${e.palette.success[500]};
|
|
2622
|
-
|
|
2623
|
-
&:hover {
|
|
2624
|
-
background-color: ${e.palette.success[200]};
|
|
2625
|
-
}
|
|
2626
|
-
}
|
|
2627
|
-
|
|
2628
|
-
&:disabled {
|
|
2629
|
-
cursor: not-allowed;
|
|
2630
|
-
background: ${e.palette.gray[200]};
|
|
2631
|
-
border-color: ${e.palette.gray[200]};
|
|
2632
|
-
color: ${e.palette.gray[300]};
|
|
2633
|
-
}
|
|
2634
|
-
|
|
2635
|
-
&:hover:not(.success) {
|
|
2636
|
-
background-color: ${e.palette.gray[100]};
|
|
2637
|
-
}
|
|
2638
|
-
`}
|
|
2639
|
-
`,Fo={add:{icon:"plus"},approve:{icon:"check"},disabled:{icon:"ban"},reject:{icon:"xmark"},submit:{icon:"arrow-right"},success:{icon:"check"}},No=({disabled:e=!1,icon:n,id:i,label:r,name:a,onClick:o,type:l="button",variant:c})=>{const d=s.Je(),g=t.jsxs(To,{"aria-label":a??void 0,className:c,disabled:e,id:i,onClick:o,type:l,children:[t.jsx(D,{clickable:!1,icon:n??Fo[c].icon,iconSize:a===void 0?"xxs":"xs",iconType:"fa-light"}),a??void 0]});return t.jsxs($,{alignItems:"center",display:"flex",children:[g,r&&t.jsx(I,{color:d.palette.gray[800],ml:.5,size:"sm",children:r})]})},Do=s.st.div`
|
|
2640
|
-
${({theme:e,$size:n})=>`
|
|
2641
|
-
align-items: center;
|
|
2642
|
-
background-color: ${e.palette.white};
|
|
2643
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
2644
|
-
border-radius: ${e.spacing[.25]};
|
|
2645
|
-
display: flex;
|
|
2646
|
-
flex-direction: column;
|
|
2647
|
-
gap: ${e.spacing[.5]};
|
|
2648
|
-
min-height: 180px;
|
|
2649
|
-
padding: ${e.spacing[1.5]};
|
|
2650
|
-
width: 510px;
|
|
2651
|
-
|
|
2652
|
-
p {
|
|
2653
|
-
font-style: normal;
|
|
2654
|
-
line-height: ${e.spacing[1.25]};
|
|
2655
|
-
text-align: ${n==="long"?"":"center"};
|
|
2656
|
-
}
|
|
2657
|
-
|
|
2658
|
-
&:hover {
|
|
2659
|
-
border: 1px solid ${e.palette.gray[600]};
|
|
2660
|
-
}
|
|
2661
|
-
`}
|
|
2662
|
-
`,Eo=s.st.div`
|
|
2663
|
-
${({theme:e,$size:n})=>`
|
|
2664
|
-
display: ${n==="long"?"flex":"block"};
|
|
2665
|
-
flex-direction: column;
|
|
2666
|
-
gap: ${e.spacing[1.5]};
|
|
2667
|
-
position: relative;
|
|
2668
|
-
max-width: 1100px;
|
|
2669
|
-
margin: 0 auto 0 auto;
|
|
2670
|
-
|
|
2671
|
-
div.timeline-card {
|
|
2672
|
-
width: ${n==="long"?"510px":"auto"};
|
|
2673
|
-
margin-left: ${n==="long"?"0px":"30px"};
|
|
2674
|
-
margin-bottom: ${n==="long"?"0px":e.spacing[.5]};
|
|
2675
|
-
}
|
|
2676
|
-
|
|
2677
|
-
&::before {
|
|
2678
|
-
background-color: ${e.palette.gray[200]};
|
|
2679
|
-
border-radius: 5px;
|
|
2680
|
-
height: 100%;
|
|
2681
|
-
width: 4px;
|
|
2682
|
-
transform: translate(-50%, 0);
|
|
2683
|
-
}
|
|
2684
|
-
|
|
2685
|
-
> * {
|
|
2686
|
-
&:nth-child(even) {
|
|
2687
|
-
align-self: end;
|
|
2688
|
-
}
|
|
2689
|
-
|
|
2690
|
-
&:nth-child(odd) {
|
|
2691
|
-
align-self: start;
|
|
2692
|
-
}
|
|
2693
|
-
|
|
2694
|
-
&::before {
|
|
2695
|
-
position: absolute;
|
|
2696
|
-
background-color: ${e.palette.primary[500]};
|
|
2697
|
-
border-radius: 50%;
|
|
2698
|
-
height: 14px;
|
|
2699
|
-
width: 14px;
|
|
2700
|
-
z-index: 1;
|
|
2701
|
-
}
|
|
2702
|
-
}
|
|
2703
|
-
|
|
2704
|
-
&::before,
|
|
2705
|
-
> *::before {
|
|
2706
|
-
content: "";
|
|
2707
|
-
left: ${n==="long"?"50%":"0px"};
|
|
2708
|
-
position: absolute;
|
|
2709
|
-
transform: translateX(-50%);
|
|
2710
|
-
}
|
|
2711
|
-
`}
|
|
2712
|
-
`,yn=({date:e,description:n,title:i,size:r="long"})=>{const a=s.Je();return t.jsxs(Do,{$size:r,className:"timeline-card",children:[t.jsx(I,{color:a.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:e}),t.jsx(I,{color:a.palette.gray[800],fontWeight:"bold",lineSpacing:1.5,mb:.5,size:"md",textAlign:"center",children:i}),t.jsx("div",{children:n.map((o,l)=>{const c=`${o}#${l}`;return t.jsx(I,{size:"sm",textAlign:"center",wordBreak:"break-word",children:o},c)})})]})},Ro=({items:e})=>{const n=x.useRef(null),[i,r]=x.useState("long");return x.useEffect(()=>{n.current&&r(n.current.offsetWidth<=1100?"small":"long")},[]),t.jsx($,{ref:n,width:"100%",children:t.jsx(Eo,{$size:i,children:e.map((a,o)=>t.jsx(yn,{date:a.date,description:a.description,size:i,title:a.title},`${a.title}-${o}`))})})},Lo={content:"",disableBeacon:!0,hideCloseButton:!1,locale:{back:"Back",close:"Close",last:"Close",next:"Next",open:"Open the dialog",skip:"Skip"},showSkipButton:!0,styles:{buttonBack:{fontFamily:"roboto"},buttonNext:{fontFamily:"roboto"},buttonSkip:{fontFamily:"roboto"},options:{zIndex:9999},tooltipContainer:{fontFamily:"roboto",textAlign:"left"}},target:""},Ao=({run:e,steps:n,onFinish:i})=>{const[r,a]=x.useState(e),[o,l]=x.useState(0),c=x.useCallback(d=>{const{action:g,index:p,status:u,type:f}=d;[s.EVENTS.STEP_AFTER,s.EVENTS.TARGET_NOT_FOUND].includes(f)?l(p+(g===s.ACTIONS.PREV?-1:1)):([s.STATUS.FINISHED,s.STATUS.SKIPPED].includes(u)||g==="close")&&(a(!1),s.lodashExports.isUndefined(i)||i())},[i]);return t.jsx(s.components_default,{callback:c,continuous:!0,disableOverlayClose:!0,disableScrollParentFix:!0,run:r,spotlightClicks:!0,stepIndex:o,steps:n,styles:{buttonNext:{display:o===n.length-1?"none":"block"},options:{zIndex:9999}}})},$n=t.jsx($,{alignItems:"center",bgColor:N.palette.primary[25],borderRadius:"8px",gap:.5,justify:"center",padding:[.125,.25,.125,.25],width:"max-content",children:t.jsx(I,{bgGradient:N.palette.gradients["01"],fontWeight:"semibold",size:"xs",textFill:"transparent",children:"Recommended"})}),Po=s.st.div`
|
|
2713
|
-
${({className:e,theme:n})=>`
|
|
2714
|
-
align-items: flex-start;
|
|
2715
|
-
border-radius: ${n.spacing[1]};
|
|
2716
|
-
background: ${n.palette.white};
|
|
2717
|
-
display: flex;
|
|
2718
|
-
flex-direction: column;
|
|
2719
|
-
gap: ${n.spacing[1]};
|
|
2720
|
-
padding: ${n.spacing[1.5]};
|
|
2721
|
-
position: relative;
|
|
2722
|
-
width: 320px;
|
|
2723
|
-
|
|
2724
|
-
button {
|
|
2725
|
-
text-align: center;
|
|
2726
|
-
width: 100%;
|
|
2727
|
-
}
|
|
2728
|
-
|
|
2729
|
-
${e==="essential"?`border: 2px solid ${n.palette.gray[300]};`:`
|
|
2730
|
-
box-shadow: 0px 9px 18px 0px rgba(243, 38, 55, 0.06),
|
|
2731
|
-
0px 18px 27px 0px rgba(243, 38, 55, 0.10);
|
|
2732
|
-
|
|
2733
|
-
&::before {
|
|
2734
|
-
background: ${n.palette.gradients["01"]} border-box;
|
|
2735
|
-
border-radius: ${n.spacing[1]};
|
|
2736
|
-
content: "";
|
|
2737
|
-
position: absolute;
|
|
2738
|
-
inset: 0;
|
|
2739
|
-
border: 2px solid transparent;
|
|
2740
|
-
mask:
|
|
2741
|
-
linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
|
|
2742
|
-
mask-composite: exclude;
|
|
2743
|
-
}
|
|
2744
|
-
`}
|
|
2745
|
-
`}
|
|
2746
|
-
`;s.st.div`
|
|
2747
|
-
${({className:e,theme:n})=>`
|
|
2748
|
-
align-items: flex-start;
|
|
2749
|
-
border-radius: ${n.spacing[1]};
|
|
2750
|
-
display: flex;
|
|
2751
|
-
flex-direction: column;
|
|
2752
|
-
justify-content: center;
|
|
2753
|
-
gap: ${n.spacing[1.5]};
|
|
2754
|
-
padding: ${n.spacing[1.5]};
|
|
2755
|
-
width: 466px;
|
|
2756
|
-
|
|
2757
|
-
button {
|
|
2758
|
-
text-align: center;
|
|
2759
|
-
width: 100%;
|
|
2760
|
-
}
|
|
2761
|
-
|
|
2762
|
-
${e==="essential"?`
|
|
2763
|
-
background: linear-gradient(
|
|
2764
|
-
180deg,
|
|
2765
|
-
${n.palette.primary[400]} 0%,
|
|
2766
|
-
${n.palette.black} 100%
|
|
2767
|
-
);`:`
|
|
2768
|
-
background: ${n.palette.white};
|
|
2769
|
-
box-shadow: 0px 9px 18px 0px rgba(243, 38, 55, 0.06),
|
|
2770
|
-
0px 18px 27px 0px rgba(243, 38, 55, 0.10);
|
|
2771
|
-
`}
|
|
2772
|
-
|
|
2773
|
-
@media screen and (max-width: ${n.breakpoints.mobile}) {
|
|
2774
|
-
width: 320px;
|
|
2775
|
-
}
|
|
2776
|
-
`}
|
|
2777
|
-
`;const Wo={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
|
|
2778
|
-
through our scanning tool.`,priceAuthor:"$499",priceGroup:"$1,579"}},Bo=({description:e,onClick:n,plan:i})=>{const{title:r,description:a,benefits:o,buttonText:l}=Wo[i],c=e??a;return t.jsxs(Po,{className:i,children:[t.jsxs($,{display:"flex",flexDirection:"column",gap:.25,pt:i==="essential"?1.75:0,children:[i==="advanced"&&$n,t.jsx(U,{color:N.palette.gray[900],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:r}),t.jsx(I,{color:N.palette.gray[400],fontWeight:"semibold",pb:i==="essential"?1.25:0,size:"sm",sizeSm:"xs",children:o})]}),t.jsx(I,{lineSpacing:1.5,lineSpacingSm:1.25,pb:i==="advanced"?1.5:0,size:"md",sizeSm:"sm",children:c}),t.jsx(P,{onClick:n,variant:"primary",children:l})]})};exports.Accordion=Xn;exports.AccordionContent=wt;exports.ActionButton=_e;exports.Alert=si;exports.AppliedFilter=ce;exports.AppliedFilters=Zr;exports.ArrayField=Oe;exports.Avatar=xi;exports.BaseButtonComponent=Ve;exports.BaseComponent=ve;exports.BaseSpanComponent=qe;exports.BaseTextComponent=Ye;exports.Button=P;exports.Button$1=Ie;exports.ButtonToolbarCenter=Bi;exports.ButtonToolbarRow=Oi;exports.ButtonToolbarStartRow=Mi;exports.Calendar=Tt;exports.Calendar$1=Rt;exports.Calendar$2=At;exports.CalendarCell=It;exports.CalendarGrid=De;exports.CardHeader=Ne;exports.CardWithImage=bi;exports.CardWithInput=or;exports.CardWithOptions=en;exports.CardWithSelector=ur;exports.CardWithSwitch=hr;exports.Carousel=jr;exports.Checkbox=ne;exports.CodeSnippet=kr;exports.Col=Me;exports.ColumFilters=ln;exports.ColumnsModal=Or;exports.ComboBox=Ze;exports.ComboBoxField=Be;exports.Container=$;exports.CopyButton=ra;exports.CustomThemeProvider=Jn;exports.DateField=Nt;exports.DateSelector=ge;exports.Description=fn;exports.Dialog=Re;exports.Divider=re;exports.Dropdown=sa;exports.Editable=Wi;exports.EmptyButton=Ue;exports.EmptyState=pa;exports.FilePreview=Ct;exports.FilterControl=rn;exports.FilterForm=Je;exports.FilterFormContent=an;exports.FiltersList=sn;exports.Form=xa;exports.Gap=Ji;exports.GridContainer=ha;exports.GroupSelector=ya;exports.Header=Ee;exports.Header$1=Yt;exports.Heading=U;exports.Icon=D;exports.IconButton=B;exports.InProgressIcon=un;exports.IndicatorCard=$a;exports.InfoSidebar=ma;exports.InnerForm=ga;exports.Input=Le;exports.InputArray=Gi;exports.InputDate=Et;exports.InputDateRange=Lt;exports.InputDateTime=Pi;exports.InputFile=Ki;exports.InputNumber=Wt;exports.InputNumberRange=Bt;exports.InputTags=Xi;exports.Label=Ke;exports.Link=K;exports.ListItem=Se;exports.ListItemsWrapper=Xt;exports.LittleFlag=ja;exports.Loading=Fa;exports.LocationCode=Ut;exports.Logo=Da;exports.Lottie=Ra;exports.MemoizedImage=Q;exports.Menu=La;exports.MenuItem=hn;exports.MessageBanner=Pa;exports.Modal=nt;exports.ModalConfirm=qt;exports.ModalFooter=Vt;exports.Notification=Oa;exports.NotificationSign=Kt;exports.NumberField=Fe;exports.NumberInput=Ja;exports.OAuthSelector=Ga;exports.Option=St;exports.OptionBoxContainer=it;exports.OptionContainer=Ge;exports.OptionContainer$1=dn;exports.OutlineContainer=J;exports.PhoneInput=rr;exports.PlanCard=Bo;exports.PopUp=ao;exports.Popover=ke;exports.PremiumFeature=pn;exports.PreviewPanel=Qt;exports.PriorityScore=Ya;exports.ProgressBar=gn;exports.ProgressIndicator=ro;exports.ProgressStep=no;exports.RadioButton=Qe;exports.RecommendedTag=$n;exports.Row=Pt;exports.ScrollUpButton=so;exports.Search=xe;exports.SearchPanel=nn;exports.SeverityBadge=co;exports.SeverityOverview=go;exports.SeverityOverviewBadge=de;exports.ShowOnHover=xo;exports.SlideOutMenu=ho;exports.Slider=jo;exports.Span=pe;exports.StepLapse=Io;exports.Tab=Zt;exports.TableButton=No;exports.Tabs=tt;exports.Tag=V;exports.TagsField=He;exports.Text=I;exports.TextArea=ar;exports.Thumb=bn;exports.TimeField=Dt;exports.TimeLine=Ro;exports.TimeLineCard=yn;exports.Toggle=_t;exports.Tooltip=G;exports.Tour=Ao;exports.baseStep=Lo;exports.formatCheckValues=cn;exports.getStyledConfig=je;exports.hiddenProps=$t;exports.icons=Hn;exports.setBorder=ye;exports.setDisplay=$e;exports.setInteraction=we;exports.setMargin=he;exports.setPadding=fe;exports.setPosition=be;exports.setText=me;exports.theme=N;exports.uniqueIcons=_n;exports.useCarousel=Mt;exports.useClickOutside=ie;exports.useCloudinaryImage=Ot;exports.useColumnsModal=lr;exports.useConditionsDialog=ta;exports.useConfirmDialog=na;exports.useDebouncedCallback=Ht;exports.useFilterForm=on;exports.useFilters=ea;exports.useModal=Ce;exports.useSearch=cr;exports.variantBuilder=q;
|