@fluidattacks/design 3.30.11-pr.2 → 3.30.11-pr.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/@core/index.js +1 -1
- package/dist/components/accordion/accordion-content/index.js +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/card/card-header/index.js +1 -1
- package/dist/components/card/card-with-image/index.js +1 -1
- package/dist/components/card/card-with-input/index.js +1 -1
- package/dist/components/card/card-with-options/index.js +1 -1
- package/dist/components/card/card-with-selector/index.js +1 -1
- package/dist/components/card/card-with-switch/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/card/indicator-card/index.js +1 -1
- package/dist/components/card-container/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-db/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-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/fields/text-input/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/item-card-db/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/oauth-selector/index.js +1 -1
- package/dist/components/oauth-selector/option-container/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-cards/card/index.js +1 -1
- package/dist/components/priority-cards/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/rank-position/icon/index.js +1 -1
- package/dist/components/rank-position/index.js +1 -1
- package/dist/components/scroll-button/index.js +1 -1
- package/dist/components/search/index.js +1 -1
- package/dist/components/severity-badge/index.js +1 -1
- package/dist/components/severity-overview/badge/index.js +1 -1
- package/dist/components/severity-overview/index.js +1 -1
- package/dist/components/show-on-hover/index.js +1 -1
- package/dist/components/slide-out-menu/index.js +1 -1
- package/dist/components/slide-out-menu/menu-item/index.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/thumb/index.js +1 -1
- package/dist/components/step-lapse/index.js +1 -1
- package/dist/components/table/context/index.js +1 -1
- package/dist/components/table/export-csv/index.js +1 -1
- package/dist/components/table/index.js +1 -1
- package/dist/components/table/pagination/pagination-control/index.js +1 -1
- package/dist/components/table/pagination/pagination-dropdown/index.js +1 -1
- package/dist/components/table/pagination/pagination-size/index.js +1 -1
- package/dist/components/table/sort-icon/index.js +1 -1
- package/dist/components/table/table-body/index.js +1 -1
- package/dist/components/table/table-column-toggle/index.js +1 -1
- package/dist/components/table/table-content/head/index.js +1 -1
- package/dist/components/table/table-content/index.js +1 -1
- package/dist/components/table/table-footer/footer-content/index.js +1 -1
- package/dist/components/table/table-footer/index.js +1 -1
- package/dist/components/table/table-options/caption-content/index.js +1 -1
- package/dist/components/table/table-options/controls-content/index.js +1 -1
- package/dist/components/table/table-options/highlighted-content/index.js +1 -1
- package/dist/components/table/table-options/index.js +1 -1
- package/dist/components/table/wrapper/index.js +1 -1
- package/dist/components/table-button/index.js +1 -1
- package/dist/components/table-content/index.js +1 -1
- package/dist/components/table-content/item-content/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/weaknesses-card/index.js +1 -1
- package/dist/{components-BZ87R_Uu.mjs → components-BOiUKBOp.mjs} +357 -357
- package/dist/{components-NH5sJc3E.js → components-Ch_d7ViF.js} +91 -91
- package/dist/hooks/index.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -2219,7 +2219,45 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
2219
2219
|
fill: url(#gradient-01);
|
|
2220
2220
|
}
|
|
2221
2221
|
`}
|
|
2222
|
-
`,xa=({backgroundColor:e,title:n,indicator:i,description:r,icon:o})=>{const a=f.useTheme(),s=e?a.palette.white:void 0,l=y.$a916eb452884faea$export$b7a616150fdb9f44();return t.jsxs(ua,{$backgroundColor:e,children:[t.jsxs($,{alignItems:"center","aria-label":n,"data-testid":n,display:"flex",gap:.75,justify:"space-between",width:"100%",children:[t.jsxs($,{alignItems:"start",display:"flex",flexDirection:"column",children:[t.jsx(T,{fontWeight:"bold",size:"lg",...s?{color:s}:{},children:n}),t.jsx(V,{fontWeight:"bold",size:"lg",...s?{color:s}:{},children:l.format(Number(i))})]}),t.jsxs("span",{className:"fa-stack fa-2x",children:[t.jsx("i",{className:"fa-solid fa-square fa-stack-2x",style:{color:a.palette.primary[25]}}),t.jsx("i",{className:`fa-solid fa-${o} fa-stack-1x fill-gradient-01`,style:{width:"24px",height:"24px"}})]},o)]}),r?t.jsx(T,{size:"md",...s?{color:s}:{},children:r}):void 0]})},ha=({actions:e,children:n,header:i,title:r,tabs:o,footer:a})=>{const s=f.useTheme();return t.jsxs($,{alignItems:"flex-start",bgColor:s.palette.white,borderLeft:`1px solid ${s.palette.gray[300]}`,display:"flex",flexDirection:"column",maxHeight:"750px",width:"480px",children:[t.jsxs($,{alignItems:"flex-start",alignSelf:"stretch",borderBottom:`1px solid ${s.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(T,{color:s.palette.gray[800],fontWeight:"bold",size:"lg",children:r}),i]}),e&&t.jsx($,{display:"flex",gap:.25,children:e.map(({icon:l,onClick:c},d)=>t.jsx(B,{icon:l??"paper-plane",iconColor:s.palette.gray[400],iconSize:"sm",iconType:"fa-light",onClick:c,variant:"ghost"},`${d}-${l}`))})]}),t.jsx($,{display:"flex",pt:.25,width:"100%",children:t.jsx(gt,{items:o})}),t.jsx($,{alignSelf:"stretch",display:"flex",flexDirection:"column",px:1.25,py:1,scroll:"y",children:n}),a&&t.jsx($,{alignSelf:"stretch",borderTop:`1px solid ${s.palette.gray[300]}`,display:"flex",gap:.5,justify:"end",px:1.25,py:1,children:a.map(({icon:l,text:c,onClick:d},p)=>t.jsx(O,{icon:l,onClick:d,variant:p===0?"primary":"tertiary",width:"100%",children:c},`${p}-${c}`))})]})},fa=f.styled.
|
|
2222
|
+
`,xa=({backgroundColor:e,title:n,indicator:i,description:r,icon:o})=>{const a=f.useTheme(),s=e?a.palette.white:void 0,l=y.$a916eb452884faea$export$b7a616150fdb9f44();return t.jsxs(ua,{$backgroundColor:e,children:[t.jsxs($,{alignItems:"center","aria-label":n,"data-testid":n,display:"flex",gap:.75,justify:"space-between",width:"100%",children:[t.jsxs($,{alignItems:"start",display:"flex",flexDirection:"column",children:[t.jsx(T,{fontWeight:"bold",size:"lg",...s?{color:s}:{},children:n}),t.jsx(V,{fontWeight:"bold",size:"lg",...s?{color:s}:{},children:l.format(Number(i))})]}),t.jsxs("span",{className:"fa-stack fa-2x",children:[t.jsx("i",{className:"fa-solid fa-square fa-stack-2x",style:{color:a.palette.primary[25]}}),t.jsx("i",{className:`fa-solid fa-${o} fa-stack-1x fill-gradient-01`,style:{width:"24px",height:"24px"}})]},o)]}),r?t.jsx(T,{size:"md",...s?{color:s}:{},children:r}):void 0]})},ha=({actions:e,children:n,header:i,title:r,tabs:o,footer:a})=>{const s=f.useTheme();return t.jsxs($,{alignItems:"flex-start",bgColor:s.palette.white,borderLeft:`1px solid ${s.palette.gray[300]}`,display:"flex",flexDirection:"column",maxHeight:"750px",width:"480px",children:[t.jsxs($,{alignItems:"flex-start",alignSelf:"stretch",borderBottom:`1px solid ${s.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(T,{color:s.palette.gray[800],fontWeight:"bold",size:"lg",children:r}),i]}),e&&t.jsx($,{display:"flex",gap:.25,children:e.map(({icon:l,onClick:c},d)=>t.jsx(B,{icon:l??"paper-plane",iconColor:s.palette.gray[400],iconSize:"sm",iconType:"fa-light",onClick:c,variant:"ghost"},`${d}-${l}`))})]}),t.jsx($,{display:"flex",pt:.25,width:"100%",children:t.jsx(gt,{items:o})}),t.jsx($,{alignSelf:"stretch",display:"flex",flexDirection:"column",px:1.25,py:1,scroll:"y",children:n}),a&&t.jsx($,{alignSelf:"stretch",borderTop:`1px solid ${s.palette.gray[300]}`,display:"flex",gap:.5,justify:"end",px:1.25,py:1,children:a.map(({icon:l,text:c,onClick:d},p)=>t.jsx(O,{icon:l,onClick:d,variant:p===0?"primary":"tertiary",width:"100%",children:c},`${p}-${c}`))})]})},fa=f.styled.article`
|
|
2223
|
+
${({theme:e})=>`
|
|
2224
|
+
align-items: flex-start;
|
|
2225
|
+
align-self: stretch;
|
|
2226
|
+
background: ${e.palette.white};
|
|
2227
|
+
border: 1px solid ${e.palette.gray[200]};
|
|
2228
|
+
border-radius: 8px;
|
|
2229
|
+
box-shadow: ${e.shadows.sm};
|
|
2230
|
+
display: flex;
|
|
2231
|
+
flex-direction: column;
|
|
2232
|
+
gap: ${e.spacing[.75]};
|
|
2233
|
+
height: 232px;
|
|
2234
|
+
padding: ${e.spacing[1.5]};
|
|
2235
|
+
transition: all .15s ease;
|
|
2236
|
+
width: 362px;
|
|
2237
|
+
|
|
2238
|
+
&:hover {
|
|
2239
|
+
background:
|
|
2240
|
+
linear-gradient(#fff, #fff) padding-box,
|
|
2241
|
+
${e.palette.gradient} border-box;
|
|
2242
|
+
border: 1px solid transparent;
|
|
2243
|
+
}
|
|
2244
|
+
|
|
2245
|
+
.fill-gradient-01 path {
|
|
2246
|
+
fill: url(/gradients.svg#gradient-01);
|
|
2247
|
+
fill: url(#gradient-01);
|
|
2248
|
+
}
|
|
2249
|
+
`}
|
|
2250
|
+
`,ya=f.styled.div`
|
|
2251
|
+
${({theme:e})=>`
|
|
2252
|
+
width: 48px;
|
|
2253
|
+
height: 48px;
|
|
2254
|
+
border-radius: 12px;
|
|
2255
|
+
background: ${e.palette.primary[25]};
|
|
2256
|
+
display: flex;
|
|
2257
|
+
align-items: center;
|
|
2258
|
+
justify-content: center;
|
|
2259
|
+
`}
|
|
2260
|
+
`,ba=({desc:e,href:n,icon:i,title:r})=>{const o=f.useTheme();return t.jsxs(fa,{"data-testid":r,children:[t.jsx(ya,{children:t.jsx("i",{className:`fa-solid fa-${i} fill-gradient-01`,style:{fontSize:24}})}),t.jsx(V,{size:"sm",children:r}),t.jsx(T,{color:o.palette.gray[600],size:"lg",children:e}),t.jsx("a",{href:n,style:{textDecoration:"none"},children:t.jsxs(T,{color:o.palette.primary[600],size:"lg",children:["Learn more ",t.jsx(R,{icon:"arrow-right",iconSize:"sm",iconType:"fa-light"})]})})]})},$a=f.styled.span`
|
|
2223
2261
|
${({theme:e,$bgColor:n=e.palette.secondary[500],$txtDecoration:i="none"})=>`
|
|
2224
2262
|
background-color: ${n};
|
|
2225
2263
|
border-radius: 5px;
|
|
@@ -2228,14 +2266,14 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
2228
2266
|
padding: ${e.spacing[.125]} ${e.spacing[.25]} ${e.spacing[.125]} ${e.spacing[.25]};
|
|
2229
2267
|
text-decoration: ${i}
|
|
2230
2268
|
`}
|
|
2231
|
-
`,
|
|
2269
|
+
`,ma=({bgColor:e,children:n,txtDecoration:i,ml:r=1})=>t.jsx($a,{$bgColor:e,$txtDecoration:i,className:`ml-${r}`,children:n}),wa={lg:"56",md:"30",sm:"12"},{getVariant:ja}=ee(e=>({blue:`stroke: ${e.palette.info[500]};`,red:`stroke: ${e.palette.primary[500]};`,white:`stroke: ${e.palette.white};`})),va=f.keyframes`
|
|
2232
2270
|
0% {
|
|
2233
2271
|
transform: rotateZ(0deg);
|
|
2234
2272
|
}
|
|
2235
2273
|
100% {
|
|
2236
2274
|
transform: rotateZ(360deg)
|
|
2237
2275
|
}
|
|
2238
|
-
`,
|
|
2276
|
+
`,ka=f.keyframes`
|
|
2239
2277
|
0%,
|
|
2240
2278
|
25% {
|
|
2241
2279
|
stroke-dashoffset: 280;
|
|
@@ -2252,16 +2290,16 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
2252
2290
|
stroke-dashoffset: 280;
|
|
2253
2291
|
transform: rotate(360deg);
|
|
2254
2292
|
}
|
|
2255
|
-
`,
|
|
2293
|
+
`,Ca=f.styled.svg`
|
|
2256
2294
|
${({$size:e="md"})=>f.css`
|
|
2257
|
-
animation: ${
|
|
2295
|
+
animation: ${va} 2s linear infinite;
|
|
2258
2296
|
animation-timing-function: linear;
|
|
2259
2297
|
display: inline-block;
|
|
2260
|
-
width: ${
|
|
2298
|
+
width: ${wa[e]}px;
|
|
2261
2299
|
`}
|
|
2262
|
-
`,
|
|
2300
|
+
`,Sa=f.styled.circle`
|
|
2263
2301
|
${({theme:e,$color:n="red"})=>f.css`
|
|
2264
|
-
animation: 1.4s ease-in-out infinite both ${
|
|
2302
|
+
animation: 1.4s ease-in-out infinite both ${ka};
|
|
2265
2303
|
display: block;
|
|
2266
2304
|
fill: transparent;
|
|
2267
2305
|
stroke-linecap: round;
|
|
@@ -2270,9 +2308,9 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
2270
2308
|
stroke-width: 10px;
|
|
2271
2309
|
transform-origin: 50% 50%;
|
|
2272
2310
|
|
|
2273
|
-
${
|
|
2311
|
+
${ja(e,n)}
|
|
2274
2312
|
`}
|
|
2275
|
-
`,
|
|
2313
|
+
`,za=f.styled.circle`
|
|
2276
2314
|
display: block;
|
|
2277
2315
|
fill: transparent;
|
|
2278
2316
|
stroke: ${({theme:e})=>e.palette.gray[200]};
|
|
@@ -2280,12 +2318,12 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
2280
2318
|
stroke-width: 10px;
|
|
2281
2319
|
transform-origin: 50% 50%;
|
|
2282
2320
|
opacity: ${({$color:e})=>e==="white"?"20%":"unset"};
|
|
2283
|
-
`,In=({color:e="red",label:n,size:i})=>{const r=f.useTheme();return t.jsxs($,{alignItems:"center",display:"flex",children:[t.jsxs(
|
|
2321
|
+
`,In=({color:e="red",label:n,size:i})=>{const r=f.useTheme();return t.jsxs($,{alignItems:"center",display:"flex",children:[t.jsxs(Ca,{$size:i,viewBox:"0 0 100 100",children:[t.jsx(za,{$color:e,cx:"50",cy:"50",r:"45"}),t.jsx(Sa,{$color:e,cx:"50",cy:"50",r:"45"})]}),n&&t.jsx(T,{color:e==="red"||e==="blue"?r.palette.gray[700]:r.palette.white,ml:.5,size:"md",children:n})]})},Ta={company:{height:"83px",width:"460px"},footer:{height:"57px",width:"315px"},header:{height:"35px",width:"160px"},icon:{height:"40px",width:"40px"},inline:{width:"150px"}},Ia=({publicId:e,variant:n})=>t.jsx($,{...Ta[n],children:t.jsx(re,{alt:"logo",publicId:e})}),Da=f.styled(y.Lottie).attrs(({autoplay:e=!0})=>({autoplay:e,className:"comp-lottie"}))`
|
|
2284
2322
|
${({$size:e=16})=>`
|
|
2285
2323
|
height: ${e}px;
|
|
2286
2324
|
width: ${e}px;
|
|
2287
2325
|
`}
|
|
2288
|
-
`,
|
|
2326
|
+
`,Ea=e=>{const{size:n}=e;return t.jsx(Da,{$size:n,...e})},Ra=({children:e,commitSha:n,commitShortSha:i,parentElement:r,userInfo:o,setVisibility:a})=>{const s=f.useTheme(),{userName:l,email:c,phone:d,userRole:p}=o;return ne(r,()=>{a(!1)}),t.jsxs(bn,{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(T,{color:s.palette.gray[800],fontWeight:"bold",size:"md",children:l}),t.jsx(T,{color:s.palette.gray[400],size:"md",children:c}),y.lodashExports.isUndefined(d)?void 0:t.jsx(T,{color:s.palette.gray[400],size:"md",children:d})]}),t.jsx($,{children:t.jsx(J,{tagLabel:p,variant:"role"})})]})}),t.jsx(ae,{}),e,t.jsx(ae,{}),t.jsx("li",{className:"commit-info",children:t.jsx(te,{href:`https://github.com/fluidattacks/universe/tree/${n}`,iconPosition:"hidden",children:t.jsx(T,{color:s.palette.gray[400],size:"sm",children:`commit : ${i}`})})})]})},Na=f.styled.button`
|
|
2289
2327
|
align-items: center;
|
|
2290
2328
|
background-color: transparent;
|
|
2291
2329
|
border: unset;
|
|
@@ -2302,7 +2340,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
2302
2340
|
&:hover span {
|
|
2303
2341
|
color: ${F.palette.primary[200]};
|
|
2304
2342
|
}
|
|
2305
|
-
`,
|
|
2343
|
+
`,Fa=({message:e,onClickButton:n,buttonText:i,buttonFontWeight:r="regular",show:o=!0,icon:a,onClose:s,buttonSide:l="end"})=>{const c=f.useTheme(),[d,p]=u.useState(o),g=u.useCallback(()=>{p(!1),s==null||s()},[s]);u.useEffect(()=>{p(o)},[o,p]);const x=t.jsxs(Na,{onClick:n,children:[t.jsx(T,{color:c.palette.white,fontWeight:r,size:"md",textDecoration:"underline",children:i}),t.jsx(R,{icon:a??"arrow-right",iconColor:c.palette.white,iconSize:"lg",iconType:r==="bold"?"fa-regular":"fa-light"})]});return t.jsxs($,{alignItems:"center",bgGradient:"linear-gradient(45deg, #f32637 0%, #b8075d 100%)",display:d?"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:[l==="start"&&n?x:void 0,t.jsx($,{children:typeof e=="string"?t.jsx(T,{color:c.palette.white,display:"inline",size:"md",children:e}):e}),l==="end"&&n?x:void 0]}),t.jsx(R,{clickable:!0,hoverColor:c.palette.primary[200],icon:"close",iconColor:c.palette.white,iconSize:"lg",iconType:"fa-light",onClick:g})]})},La=f.styled.div`
|
|
2306
2344
|
${({theme:e,$variant:n})=>`
|
|
2307
2345
|
background: ${e.palette.white};
|
|
2308
2346
|
border: 1px solid ${e.palette.gray[200]};
|
|
@@ -2321,9 +2359,9 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
2321
2359
|
right: 16px;
|
|
2322
2360
|
}
|
|
2323
2361
|
`}
|
|
2324
|
-
`,
|
|
2362
|
+
`,Aa=f.styled(V)`
|
|
2325
2363
|
font-size: ${({theme:e})=>e.typography.text.md};
|
|
2326
|
-
`,
|
|
2364
|
+
`,Pa=f.styled.div`
|
|
2327
2365
|
${({theme:e,$variant:n})=>`
|
|
2328
2366
|
height: ${e.spacing[2.5]};
|
|
2329
2367
|
width: ${e.spacing[2.5]};
|
|
@@ -2354,7 +2392,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
2354
2392
|
color: ${e.palette[n][500]};
|
|
2355
2393
|
}
|
|
2356
2394
|
`}
|
|
2357
|
-
`,
|
|
2395
|
+
`,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 o=f.useTheme(),a=u.useCallback(()=>{n==null||n()},[n]);return t.jsxs(La,{$variant:r,className:`notification notification__${r}`,role:"alertdialog",children:[t.jsxs(Pa,{$variant:r,children:[t.jsx(R,{icon:"circle",iconClass:"ellipse-1",iconSize:"lg"}),t.jsx(R,{icon:"circle",iconClass:"ellipse-2",iconSize:"lg"}),t.jsx(R,{icon:Ma(r),iconClass:"icon",iconSize:"lg",iconType:"fa-light"})]}),t.jsxs($,{pr:1.5,children:[t.jsx(Aa,{fontWeight:"bold",size:"xs",children:i}),t.jsx(T,{size:"md",whiteSpace:"break-spaces",wordWrap:"break-word",children:e})]}),t.jsx(B,{height:"fit-content",icon:"close",iconColor:o.palette.gray[400],iconSize:"lg",iconType:"fa-light",onClick:a,px:.125,py:.125,variant:"ghost"})]})},Wa={Azure:"integrates/autoenrollment/azureIcon",Bitbucket:"integrates/autoenrollment/bitbucketLogo",GitHub:"integrates/autoenrollment/githubLogo",GitLab:"integrates/autoenrollment/gitlabIcon"},et=({icon:e,label:n,onClick:i,onlyLabel:r=!1,provider:o="GitLab"})=>{const a=f.useTheme();return t.jsxs($,{alignItems:"center",bgColorHover:a.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(re,{alt:`${o} Logo`,height:"100%",publicId:Wa[o],width:"100%"}):t.jsx(R,{icon:e,iconColor:"#000",iconSize:"xl",iconType:"fa-light"})}),t.jsx($,{alignItems:"center",display:"flex",minWidth:"24px",children:t.jsx(T,{color:a.palette.gray[800],display:"inline",size:"sm",textAlign:"center",whiteSpace:r?"break-spaces":"nowrap",wordWrap:"unset",children:n??o})})]})},Ba=({align:e="end",buttonLabel:n="Add Credential",children:i,id:r,manualOption:o,providers:a})=>{const s=f.useTheme(),[l,c]=u.useState(!1),d=u.useRef(null);ne(d.current,()=>{c(!1)},!0);const p=u.useCallback(h=>{o==null||o.onClick(h),c(!1)},[o]),g=u.useCallback(()=>{c(h=>!h)},[c]),x=u.useCallback(h=>b=>{var w;(w=a[h])==null||w.onClick(b),c(!1)},[a]);return t.jsxs($,{alignItems:e,display:"flex",flexDirection:"column",position:"relative",ref:d,width:"max-content",zIndex:10,children:[t.jsx(O,{icon:"plus",onClick:g,variant:"primary",children:n}),t.jsxs($,{alignItems:"center",bgColor:"#fff",border:`1px solid ${s.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:l?"visible":"hidden",zIndex:10,children:[Object.keys(a).map(h=>t.jsx(et,{onClick:x(h),provider:h},h)),o===void 0?void 0:t.jsx(et,{icon:"square-plus",label:o.label??"Add manually",onClick:p}),i]})]})},Ha=f.styled.div`
|
|
2358
2396
|
${({theme:e})=>`
|
|
2359
2397
|
height: ${e.spacing[1]};
|
|
2360
2398
|
width: ${e.spacing[1]};
|
|
@@ -2385,7 +2423,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
2385
2423
|
font-size: ${e.spacing[.5]};
|
|
2386
2424
|
}
|
|
2387
2425
|
`}
|
|
2388
|
-
`,Dn=({margin:e,onClick:n,text:i})=>{const r=f.useTheme(),o=t.jsxs(
|
|
2426
|
+
`,Dn=({margin:e,onClick:n,text:i})=>{const r=f.useTheme(),o=t.jsxs(Ha,{children:[t.jsx(R,{icon:"circle",iconClass:"ellipse-1",iconSize:"lg"}),t.jsx(R,{icon:"circle",iconClass:"ellipse-2",iconSize:"lg"}),t.jsx(R,{icon:"crown",iconClass:"icon",iconSize:"lg"})]});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:[o,t.jsx(T,{color:r.palette.warning[500],display:"inline",ml:.25,size:"sm",children:i})]})}):t.jsx($,{display:"inline-block",mr:e,onClick:n,children:o})},_a=f.styled.div`
|
|
2389
2427
|
${({theme:e,$isDragging:n})=>`
|
|
2390
2428
|
align-items: center;
|
|
2391
2429
|
display: flex;
|
|
@@ -2398,7 +2436,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
2398
2436
|
|
|
2399
2437
|
${n?`border: 1px solid ${e.palette.black};`:""}
|
|
2400
2438
|
`}
|
|
2401
|
-
`,En=({color:e,icon:n})=>t.jsxs("span",{style:{display:"inline-flex",position:"relative"},children:[t.jsxs("span",{className:"fa-stack",style:{zIndex:0,height:"20px",width:"20px"},children:[t.jsx("i",{className:"fa-solid fa-square fa-stack-2x",style:{color:e,height:"20px",width:"20px"}}),t.jsx("i",{className:"fa-solid fa-circle fa-stack-1x",style:{color:"#ffffff",height:"14px",width:"14px"}})]}),t.jsx("i",{className:`fa-regular fa-${n}`,style:{color:e,position:"absolute",height:"14px",left:"3px",top:"3px",width:"14px"}})]},`${n}-${e}`),Rn=({rank:e})=>{const n=f.useTheme(),i={1:{color:n.palette.error[700],icon:"gauge-max"},2:{color:n.palette.error[500],icon:"gauge-high"},3:{color:n.palette.warning[500],icon:"gauge"},4:{color:n.palette.success[500],icon:"gauge-low"},5:{color:n.palette.info[700],icon:"gauge-min"},6:{color:n.palette.gray[400],icon:"gauge-min"}};return t.jsxs($,{alignItems:"center",display:"inline-flex",gap:.5,children:[t.jsx(En,{color:i[e].color,icon:i[e].icon}),t.jsx(V,{fontWeight:"bold",size:"xs",children:e})]})},Nn=({item:e,disabled:n,draggedItem:i,position:r,handleDragEnd:o,handleItemDragStart:a})=>{const s=f.useTheme();return t.jsx(y.ReorderItem,{as:"div",dragListener:!n,item:e.title,onDragEnd:o,onDragStart:a(e.title),style:{zIndex:i===e.title?9999:"auto",position:i===e.title?"relative":"static"},value:e,children:t.jsxs(
|
|
2439
|
+
`,En=({color:e,icon:n})=>t.jsxs("span",{style:{display:"inline-flex",position:"relative"},children:[t.jsxs("span",{className:"fa-stack",style:{zIndex:0,height:"20px",width:"20px"},children:[t.jsx("i",{className:"fa-solid fa-square fa-stack-2x",style:{color:e,height:"20px",width:"20px"}}),t.jsx("i",{className:"fa-solid fa-circle fa-stack-1x",style:{color:"#ffffff",height:"14px",width:"14px"}})]}),t.jsx("i",{className:`fa-regular fa-${n}`,style:{color:e,position:"absolute",height:"14px",left:"3px",top:"3px",width:"14px"}})]},`${n}-${e}`),Rn=({rank:e})=>{const n=f.useTheme(),i={1:{color:n.palette.error[700],icon:"gauge-max"},2:{color:n.palette.error[500],icon:"gauge-high"},3:{color:n.palette.warning[500],icon:"gauge"},4:{color:n.palette.success[500],icon:"gauge-low"},5:{color:n.palette.info[700],icon:"gauge-min"},6:{color:n.palette.gray[400],icon:"gauge-min"}};return t.jsxs($,{alignItems:"center",display:"inline-flex",gap:.5,children:[t.jsx(En,{color:i[e].color,icon:i[e].icon}),t.jsx(V,{fontWeight:"bold",size:"xs",children:e})]})},Nn=({item:e,disabled:n,draggedItem:i,position:r,handleDragEnd:o,handleItemDragStart:a})=>{const s=f.useTheme();return t.jsx(y.ReorderItem,{as:"div",dragListener:!n,item:e.title,onDragEnd:o,onDragStart:a(e.title),style:{zIndex:i===e.title?9999:"auto",position:i===e.title?"relative":"static"},value:e,children:t.jsxs(_a,{$isDragging:i===e.title,children:[t.jsxs($,{alignItems:"center",borderRight:"1px solid "+s.palette.gray[200],display:"flex",gap:.625,minWidth:"200px",px:1,py:1,width:"200px",children:[!n&&t.jsx(R,{icon:"grip-vertical",iconColor:s.palette.gray[400],iconSize:"md",mx:.75,my:.75}),t.jsx(V,{fontWeight:"bold",size:"xs",children:e.title})]}),t.jsxs($,{alignItems:"center",display:"flex",gap:.625,justify:"space-between",pl:1,pr:1.75,py:1,width:"100%",children:[t.jsx(T,{size:"sm",children:e.description}),t.jsx(Rn,{rank:r+1})]})]})},e.title)},Va=({disabled:e,items:n,handleSetItems:i})=>{const r=f.useTheme(),[o,a]=u.useState(n),[s,l]=u.useState(void 0);u.useEffect(()=>{a(n)},[n]);const c=u.useCallback(x=>{a([...x])},[]),d=u.useCallback(x=>{l(x)},[]),p=u.useCallback(()=>{l(void 0),i(o)},[i,o]),g=u.useCallback(x=>()=>{d(x)},[d]);return t.jsx(y.ReorderGroup,{as:"div",axis:"y",layoutScroll:!0,onReorder:c,style:{borderBottom:`1px solid ${r.palette.gray[200]}`},values:o,children:o.map((x,h)=>t.jsx(Nn,{disabled:e,draggedItem:s,handleDragEnd:p,handleItemDragStart:g,item:x,position:h},x.title))})},Ua=({score:e})=>{const n=f.useTheme(),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(R,{icon:r,iconClass:e<=66?"fa-kit-duotone":"",iconColor:e>0?n.palette.primary[500]:n.palette.gray[200],iconSize:"lg",iconType:"fa-kit",secondaryColor:n.palette.gray[200]}),t.jsx(T,{color:n.palette.gray[800],size:"md",textAlign:"right",children:e+"%"})]})},{getVariant:Ga}=ee(e=>({compliance:`
|
|
2402
2440
|
display: inline-flex;
|
|
2403
2441
|
|
|
2404
2442
|
&.horizontal {
|
|
@@ -2456,17 +2494,17 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
2456
2494
|
.progress-bar {
|
|
2457
2495
|
background-color: ${e.palette.primary[500]};
|
|
2458
2496
|
}
|
|
2459
|
-
`})),
|
|
2497
|
+
`})),Ya=(e,n)=>n<50?e.palette.error[500]:n<80?e.palette.warning[500]:e.palette.success[500],Ka=f.styled.div`
|
|
2460
2498
|
${({theme:e,$minWidth:n,$orientation:i,$rounded:r,$variant:o})=>`
|
|
2461
2499
|
background-color: ${e.palette.gray[100]};
|
|
2462
2500
|
border-radius: ${r?"100px":"unset"};
|
|
2463
2501
|
${i==="horizontal"?"min-width":"min-height"}: ${n}px;
|
|
2464
2502
|
${i==="horizontal"?"":"height: 100%;"}
|
|
2465
2503
|
|
|
2466
|
-
${
|
|
2504
|
+
${Ga(e,o)}
|
|
2467
2505
|
|
|
2468
2506
|
`}
|
|
2469
|
-
`,
|
|
2507
|
+
`,qa=f.styled.div`
|
|
2470
2508
|
${({theme:e,$percentage:n,$rounded:i,$variant:r})=>`
|
|
2471
2509
|
display: inline-flex;
|
|
2472
2510
|
width: ${n}%;
|
|
@@ -2476,14 +2514,14 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
2476
2514
|
border-radius: ${i?"100px":"unset"};
|
|
2477
2515
|
border-end-end-radius: ${i&&n<100?"0":"inherit"};
|
|
2478
2516
|
border-start-end-radius: ${i&&n<100?"0":"inherit"};
|
|
2479
|
-
background-color: ${r==="compliance"?
|
|
2517
|
+
background-color: ${r==="compliance"?Ya(e,n):"inherit"};
|
|
2480
2518
|
`}
|
|
2481
|
-
`,Fn=({minWidth:e=100,percentage:n,percentageLocation:i="right",showPercentage:r=!1,orientation:o="horizontal",rounded:a=!0,variant:s="default"})=>{const l=r&&i==="left",c=r?t.jsx($,{alignItems:"center",display:"flex",justify:l?"flex-end":"flex-start",width:"40px",children:t.jsx(T,{ml:.5,mr:l?.5:0,size:"md",children:`${n}%`})}):null,d=t.jsx(
|
|
2519
|
+
`,Fn=({minWidth:e=100,percentage:n,percentageLocation:i="right",showPercentage:r=!1,orientation:o="horizontal",rounded:a=!0,variant:s="default"})=>{const l=r&&i==="left",c=r?t.jsx($,{alignItems:"center",display:"flex",justify:l?"flex-end":"flex-start",width:"40px",children:t.jsx(T,{ml:.5,mr:l?.5:0,size:"md",children:`${n}%`})}):null,d=t.jsx(Ka,{$minWidth:e,$orientation:o,$rounded:a,$variant:s,className:o,children:t.jsx(qa,{$percentage:n,$rounded:a,$variant:s,className:"progress-bar"})});return t.jsxs($,{alignItems:"center",display:"inline-flex",flexDirection:l?"row-reverse":"row",height:o==="horizontal"?"auto":"100%",maxWidth:l?`${e+43}px`:void 0,minWidth:l?`${e+43}px`:void 0,textAlign:"end",children:[d,c]})},Ln=({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"})]})}),An=(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]}},Xa=f.styled(R)`
|
|
2482
2520
|
box-sizing: border-box;
|
|
2483
2521
|
|
|
2484
2522
|
border-right: ${({theme:e,$variant:n})=>n==="in progress"?`1px dashed ${An("in progress",e)}`:"unset"};
|
|
2485
2523
|
border-radius: 50%;
|
|
2486
|
-
`,
|
|
2524
|
+
`,Za=f.styled.div`
|
|
2487
2525
|
${({$minWidth:e,$orientation:n})=>`
|
|
2488
2526
|
display: flex;
|
|
2489
2527
|
flex-direction: ${n==="horizontal"?"row":"column"};
|
|
@@ -2493,13 +2531,13 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
2493
2531
|
flex-flow: row wrap;
|
|
2494
2532
|
}
|
|
2495
2533
|
`}
|
|
2496
|
-
`,
|
|
2534
|
+
`,Ja=150,Qa=({label:e,minWidth:n=Ja,state:i="not completed",stepNumber:r=1,title:o,onClick:a,orientation:s="horizontal"})=>{const l=f.useTheme(),c={completed:"circle-check",disabled:"circle-dashed",error:"circle-exclamation","in progress":"circle-half","not completed":"circle-dashed"},d=i==="disabled";return t.jsxs($,{display:"inline-flex",flexDirection:s==="horizontal"?"column":"row",minWidth:`${n}px`,children:[t.jsx(Fn,{minWidth:n,orientation:s,percentage:d||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(Ln,{onClick:a}):t.jsx(Xa,{$variant:i,clickable:!d,disabled:d,icon:c[i],iconColor:An(i,l),iconSize:"lg",iconType:"fa-light",onClick:d?void 0:a}),t.jsxs($,{children:[t.jsx(T,{color:l.palette.gray[d?300:800],fontWeight:"bold",size:"md",children:`${r}.${o}`}),e===void 0?null:t.jsx(T,{color:l.palette.gray[d?300:600],size:"sm",children:e})]})]})]})},es=150,ts=({children:e,orientation:n="horizontal",minWidth:i=es})=>{const r=u.Children.toArray(e),o=u.useMemo(()=>u.Children.count(e),[e]),a=u.useMemo(()=>o*i,[o,i]);return t.jsx(Za,{$minWidth:`${a}px`,$orientation:n,children:r.map(s=>u.cloneElement(s,{minWidth:i,orientation:n}))})},Pn=({description:e="",highlightDescription:n="",mobile:i})=>{const r=f.useTheme(),o=i?"md":"lg",a=typeof n=="string",s=a?"":new RegExp(`(${n.join("|")})`,"u");return n.length>0?t.jsx(T,{display:"inline",lineSpacing:1.5,size:o,textAlign:i?"start":"center",children:a?t.jsxs(u.Fragment,{children:[t.jsx(he,{color:r.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:o,children:n}),e]}):e.split(s).map((l,c)=>n.includes(l)?t.jsx(he,{color:r.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:o,children:l},`${c+1}-bold`):l)}):t.jsx(T,{lineSpacing:1.5,size:o,textAlign:i?"start":"center",children:e})},ns=({_portal:e=!1,cancelButton:n,darkBackground:i=!1,children:r,confirmButton:o,container:a,description:s,highlightDescription:l="",image:c,maxWidth:d,mobile:p=!1,title:g,titleColor:x})=>{const h=f.useTheme(),{alt:b,src:w,width:m="77px",height:v="77px"}=c,C=u.useCallback(()=>{n==null||n.onClick()},[n]),k=u.useCallback(()=>{o==null||o.onClick()},[o]),j=t.jsx(V,{color:x,fontWeight:"bold",lineSpacing:p?1.5:2.5,mb:p?1.5:0,size:p?"sm":"md",textAlign:p?"start":"center",children:g}),S=t.jsx(re,{alt:b,height:v,publicId:w,width:m}),z=t.jsx($,{alignItems:"center","aria-label":g,"aria-modal":"true",bgColor:i?"rgba(52, 64, 84, 70%)":"",display:"flex",height:"100vh",justify:"center",left:"0",position:e?"fixed":"absolute",top:"0px",width:"100%",zIndex:99999,children:t.jsxs($,{bgColor:h.palette.white,border:`1px solid ${h.palette.gray[200]}`,borderRadius:"8px",display:"inline-flex",flexDirection:"column",maxWidth:d,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?j:void 0,p?t.jsx($,{alignItems:"center",height:v,justify:"center",mr:0,children:t.jsx($,{bgColor:h.palette.gray[100],left:"0",position:"absolute",textAlign:"center",width:"100%",children:S})}):S,t.jsxs($,{display:"flex",flexDirection:"column",gap:.5,mb:1.5,mt:1.5,children:[p?void 0:j,t.jsx(Pn,{description:s,highlightDescription:l,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:[y.lodashExports.isObject(o)?t.jsx(O,{onClick:k,variant:(o==null?void 0:o.variant)??"primary",children:o==null?void 0:o.text},o==null?void 0:o.key):void 0,y.lodashExports.isObject(n)?t.jsx(O,{onClick:C,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?le.createPortal(z,a??document.body):z},is=f.styled.div.attrs({className:"comp-scroll-up"})`
|
|
2497
2535
|
position: fixed;
|
|
2498
2536
|
bottom: ${({bottom:e})=>e??"unset"};
|
|
2499
2537
|
right: ${({right:e})=>e??"unset"};
|
|
2500
2538
|
z-index: ${({zIndex:e})=>e??"unset"};
|
|
2501
2539
|
left: ${({left:e})=>e??"unset"};
|
|
2502
|
-
`,
|
|
2540
|
+
`,rs=({scrollerId:e="dashboard",left:n,visibleAt:i=500,bottom:r,right:o,zIndex:a=100})=>{const[s,l]=u.useState(!1),[c,d]=u.useState(null),p=f.useTheme();u.useEffect(()=>{d(document.getElementById(e)),c==null||c.addEventListener("scroll",()=>{l(c.scrollTop>i)})},[c,e,i]);const g=u.useCallback(()=>{c==null||c.scrollTo({behavior:"smooth",top:0})},[c]);return s?t.jsx(is,{bottom:r,left:n,right:o,zIndex:a,children:t.jsx(B,{borderRadius:"50%",height:"40px",icon:"arrow-up",iconSize:"xl",id:"scroll-up",onClick:g,style:{backgroundColor:p.palette.black,borderRadius:"50%",color:p.palette.white},width:"40px"})}):null},os={critical:{bgColor:F.palette.primary[700],colorL:F.palette.gray[800],colorR:F.palette.white},disable:{bgColor:F.palette.gray[200],colorL:F.palette.gray[400],colorR:F.palette.gray[400]},high:{bgColor:F.palette.error[500],colorL:F.palette.gray[800],colorR:F.palette.white},low:{bgColor:F.palette.warning[200],colorL:F.palette.gray[800],colorR:F.palette.gray[800]},medium:{bgColor:F.palette.warning[500],colorL:F.palette.gray[800],colorR:F.palette.gray[800]}},Mn=({textL:e,textR:n,variant:i})=>{const r=f.useTheme(),{bgColor:o,colorL:a,colorR:s}=os[i];return t.jsxs($,{alignItems:"flex-start",display:"inline-flex",children:[e?t.jsx($,{alignItems:"center",bgColor:r.palette.white,border:`1px solid ${o}`,borderRadius:"4px 0px 0px 4px",display:"flex",justify:"center",padding:[0,.25,0,.25],children:t.jsx(T,{color:a,size:"md",children:e})}):void 0,t.jsx($,{alignItems:"center",bgColor:o,border:`1px solid ${o}`,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(T,{color:s,size:"md",children:n})})]})},as=(e,n)=>{const i={critical:F.palette.primary[700],high:F.palette.error[500],low:F.palette.warning[200],medium:F.palette.warning[500],none:F.palette.gray[200]},r={disabled:F.palette.gray[400],enabled:F.palette.gray[800]},o={critical:F.palette.white,high:F.palette.white,low:F.palette.gray[800],medium:F.palette.gray[800],none:F.palette.gray[400]};return{iconColor:n<1?i.none:i[e],iconText:y.lodashExports.capitalize(e.charAt(0)),iconTextColor:n<1?o.none:o[e],textColor:n<1?r.disabled:r.enabled}},xe=({variant:e,value:n})=>{const{iconColor:i,iconText:r,iconTextColor:o,textColor:a}=as(e,n),s=y.lodashExports.capitalize(e.charAt(0))+e.slice(1);return t.jsxs($,{alignItems:"center",display:"inline-flex",gap:.5,minWidth:"43px",children:[t.jsx(q,{id:s,place:"top",tip:s,children:t.jsx($,{alignItems:"center",bgColor:i,borderRadius:"4px",cursor:"pointer",display:"flex",height:"22px",maxWidth:"22px",minWidth:"22px",children:t.jsx(T,{color:o,size:"md",textAlign:"center",children:r})})}),t.jsx(T,{color:a,size:"md",children:n})]})},ss=({critical:e,high:n,medium:i,low:r})=>t.jsxs($,{alignItems:"center",display:"inline-flex",gap:1,children:[t.jsx(xe,{value:e,variant:"critical"}),t.jsx(xe,{value:n,variant:"high"}),t.jsx(xe,{value:i,variant:"medium"}),t.jsx(xe,{value:r,variant:"low"})]}),ls=f.styled.div`
|
|
2503
2541
|
${({theme:e})=>`
|
|
2504
2542
|
border-radius: ${e.spacing[.25]};
|
|
2505
2543
|
cursor: pointer;
|
|
@@ -2517,7 +2555,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
2517
2555
|
display: block;
|
|
2518
2556
|
}
|
|
2519
2557
|
`}
|
|
2520
|
-
`,
|
|
2558
|
+
`,cs=({visibleElement:e,hiddenElement:n})=>t.jsxs(ls,{children:[e,t.jsx($,{display:"none",position:"absolute",top:"100%",zIndex:10,children:n})]}),On=({customBadge:e=void 0,description:n,icon:i,onClick:r,requiresUpgrade:o=!1,title:a})=>{const s=f.useTheme();return t.jsxs($,{bgColor:s.palette.white,bgColorHover:s.palette.gray[100],cursor:"pointer",display:"flex",gap:.5,onClick:r,px:1.25,py:1,width:"100%",children:[t.jsx($,{alignItems:"center",bgColor:s.palette.gray[300],borderRadius:s.spacing[.25],display:"flex",height:"24px",justify:"center",width:"24px",children:t.jsx(R,{icon:i,iconColor:s.palette.gray[800],iconSize:"sm",ml:.5,mr:.5})}),t.jsxs($,{children:[t.jsxs($,{alignItems:"center",display:"inline-flex",gap:.5,children:[t.jsx(T,{color:s.palette.gray[800],size:"md",children:a}),o?t.jsx(Dn,{text:"Upgrade"}):void 0,e]}),t.jsx(T,{color:s.palette.gray[400],size:"sm",children:n})]})]})},ds=f.styled(y.m.div)`
|
|
2521
2559
|
${({theme:e})=>`
|
|
2522
2560
|
background-color: ${e.palette.white};
|
|
2523
2561
|
box-shadow: ${e.shadows.lg};
|
|
@@ -2540,7 +2578,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
2540
2578
|
height: auto;
|
|
2541
2579
|
}
|
|
2542
2580
|
`}
|
|
2543
|
-
`,
|
|
2581
|
+
`,ps=({children:e,closeIconId:n="close-menu",isOpen:i,items:r,onClose:o,title:a})=>{const s=f.useTheme(),l=u.useRef(null),c=u.useCallback(d=>()=>{d(),o()},[o]);return u.useEffect(()=>{const d=["mousedown","touchstart"],p=g=>{var m;const x=g.target,h=document.getElementById("helpBtn"),b=document.getElementById("filter-btn"),w=(x===h||((h==null?void 0:h.contains(x))??!1)||x===b||(b==null?void 0:b.contains(x)))??!1;i&&!w&&!(((m=l.current)==null?void 0:m.contains(x))??!1)&&o()};return d.forEach(g=>{document.addEventListener(g,p,{passive:!0})}),()=>{d.forEach(g=>{document.removeEventListener(g,p)})}},[i,o]),t.jsx(y.LazyMotion,{features:y.domAnimation,children:t.jsx(ds,{animate:i?{display:"block",x:0}:{transitionEnd:{display:"none"},x:"100%"},initial:{display:"none",x:"100%"},ref:l,transition:{bounce:0,duration:.6,type:"spring"},children:t.jsxs($,{height:"100%",position:"relative",children:[t.jsxs($,{alignItems:"center",bgColor:s.palette.white,borderBottom:"1px solid",borderColor:s.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(T,{color:s.palette.black,display:"inline",fontWeight:"bold",size:"lg",children:a}),t.jsx(B,{icon:"close",iconColor:s.palette.gray[400],iconSize:"lg",iconTransform:"grow-4",iconType:"fa-light",id:n,onClick:o,px:.25,py:.25,variant:"ghost"})]}),t.jsx($,{display:"flex",flexDirection:"column",justify:"space-between",minHeight:"100vh",children:t.jsxs($,{py:1.25,children:[(r??[]).map(({customBadge:d,description:p,icon:g,onClick:x,requiresUpgrade:h,title:b})=>t.jsx(On,{customBadge:d,description:p,icon:g,onClick:c(x),requiresUpgrade:h,title:b},b)),e&&t.jsx($,{px:1.25,children:e})]})})]})})})},gs=(e,n)=>n>=50?`
|
|
2544
2582
|
${e.palette.gray[200]} 50%,
|
|
2545
2583
|
${e.palette.primary[500]} 50.05%,
|
|
2546
2584
|
${e.palette.primary[500]} ${n}%,
|
|
@@ -2551,7 +2589,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
2551
2589
|
${e.palette.primary[500]} 50%,
|
|
2552
2590
|
${e.palette.gray[200]} 50.05%,
|
|
2553
2591
|
${e.palette.gray[200]} 100%
|
|
2554
|
-
`,
|
|
2592
|
+
`,us=f.styled.div`
|
|
2555
2593
|
${({theme:e,$min:n,$value:i})=>`
|
|
2556
2594
|
align-items: center;
|
|
2557
2595
|
align-self: stretch;
|
|
@@ -2567,7 +2605,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
2567
2605
|
${n>=0?`
|
|
2568
2606
|
${e.palette.primary[500]} ${i}%,
|
|
2569
2607
|
${e.palette.gray[200]} ${i}%
|
|
2570
|
-
`:
|
|
2608
|
+
`:gs(e,i)}
|
|
2571
2609
|
);
|
|
2572
2610
|
border-radius: ${e.spacing[.125]};
|
|
2573
2611
|
height: ${e.spacing[.25]};
|
|
@@ -2591,7 +2629,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
2591
2629
|
border: 1px solid ${e.palette.primary[500]};
|
|
2592
2630
|
}
|
|
2593
2631
|
`}
|
|
2594
|
-
`,
|
|
2632
|
+
`,xs=f.styled.div`
|
|
2595
2633
|
${({theme:e})=>`
|
|
2596
2634
|
align-items: center;
|
|
2597
2635
|
display: flex;
|
|
@@ -2605,7 +2643,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
2605
2643
|
font-size: ${e.spacing[.5]};
|
|
2606
2644
|
}
|
|
2607
2645
|
`}
|
|
2608
|
-
`,
|
|
2646
|
+
`,hs=f.styled.output`
|
|
2609
2647
|
${({theme:e})=>`
|
|
2610
2648
|
align-items: flex-end;
|
|
2611
2649
|
border-radius: ${e.spacing[.5]};
|
|
@@ -2616,7 +2654,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
2616
2654
|
padding: ${e.spacing[.625]} ${e.spacing[.75]};
|
|
2617
2655
|
width: 59px;
|
|
2618
2656
|
`}
|
|
2619
|
-
`,Wn=({state:e,trackRef:n,index:i,name:r})=>{const o=u.useRef(null),{thumbProps:a,inputProps:s,isDragging:l}=y.$47b897dc8cdb026b$export$8d15029008292ae({index:i,trackRef:n,inputRef:o},e);return t.jsx("div",{...a,className:`thumb ${l?"dragging":""}`,children:t.jsx(y.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:t.jsx("input",{...s,"aria-label":r,ref:o})})})},
|
|
2657
|
+
`,Wn=({state:e,trackRef:n,index:i,name:r})=>{const o=u.useRef(null),{thumbProps:a,inputProps:s,isDragging:l}=y.$47b897dc8cdb026b$export$8d15029008292ae({index:i,trackRef:n,inputRef:o},e);return t.jsx("div",{...a,className:`thumb ${l?"dragging":""}`,children:t.jsx(y.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:t.jsx("input",{...s,"aria-label":r,ref:o})})})},fs=(e,n,i)=>Math.round((i-e)/(n-e)*100),ys=e=>{const n=f.useTheme(),i=u.useRef(null),{label:r,minValue:o=0,maxValue:a=100,name:s,setValue:l,watch:c}=e,d=y.$a916eb452884faea$export$b7a616150fdb9f44(),p=y.$28f99e3e86e6ec45$export$e5fda3247f5d67f9({...e,numberFormatter:d,onChange(b){l==null||l(s,b)},value:c==null?void 0:c(s)}),g=fs(o,a,p.getThumbValue(0)),{groupProps:x,trackProps:h}=y.$bcca50147b47f54d$export$56b2c08e277f365({...e,"aria-label":s,id:s},p,i);return t.jsx(K,{htmlFor:s,label:r,children:t.jsxs($,{alignItems:"center",display:"inline-flex",gap:1.25,pl:.5,width:"100%",children:[t.jsxs(us,{...x,$min:o??0,$value:g,className:"slider",children:[t.jsx("div",{...h,className:`track ${p.isDisabled?"disabled":""}`,ref:i,children:t.jsx(Wn,{index:0,name:s,state:p,trackRef:i})}),t.jsxs(xs,{children:[t.jsx("p",{children:`${d.format(o)} (Low)`}),o<0&&t.jsx("p",{children:"0"}),t.jsx("p",{children:`${d.format(a)} (High)`})]})]}),t.jsx(hs,{children:t.jsx(T,{color:n.palette.gray[800],size:"md",textAlign:"right",children:p.getThumbValueLabel(0)})})]})})},{getVariant:bs}=ee(e=>({completed:`
|
|
2620
2658
|
background-color: ${e.palette.primary[500]};
|
|
2621
2659
|
color: ${e.palette.white};
|
|
2622
2660
|
|
|
@@ -2639,7 +2677,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
2639
2677
|
&::after {
|
|
2640
2678
|
background-color: ${e.palette.gray[200]};
|
|
2641
2679
|
}
|
|
2642
|
-
`}))
|
|
2680
|
+
`})),$s=f.styled.div`
|
|
2643
2681
|
${({theme:e})=>`
|
|
2644
2682
|
align-items: stretch;
|
|
2645
2683
|
background-color: ${e.palette.white};
|
|
@@ -2649,7 +2687,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
2649
2687
|
padding: ${`${e.spacing[1]} ${e.spacing[1]}`};
|
|
2650
2688
|
scroll-behavior: unset;
|
|
2651
2689
|
`}
|
|
2652
|
-
`,
|
|
2690
|
+
`,ms=f.styled.div`
|
|
2653
2691
|
display: flex;
|
|
2654
2692
|
flex-direction: row;
|
|
2655
2693
|
margin-bottom: ${({theme:e})=>e.spacing[2]};
|
|
@@ -2657,7 +2695,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
2657
2695
|
&:last-child > div:first-child > span::after {
|
|
2658
2696
|
display: none;
|
|
2659
2697
|
}
|
|
2660
|
-
`,
|
|
2698
|
+
`,ws=f.styled.div`
|
|
2661
2699
|
${({theme:e})=>`
|
|
2662
2700
|
display: inline-flex;
|
|
2663
2701
|
font-family: ${e.typography.type.primary};
|
|
@@ -2669,7 +2707,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
2669
2707
|
margin-right: ${e.spacing[.5]};
|
|
2670
2708
|
}
|
|
2671
2709
|
`}
|
|
2672
|
-
|
|
2710
|
+
`,js=f.styled.span`
|
|
2673
2711
|
${({theme:e,$variant:n})=>`
|
|
2674
2712
|
border-radius: 6px;
|
|
2675
2713
|
display: inline-block;
|
|
@@ -2692,9 +2730,9 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
2692
2730
|
height: calc(100% - ${e.spacing[1]});
|
|
2693
2731
|
}
|
|
2694
2732
|
|
|
2695
|
-
${
|
|
2733
|
+
${bs(e,n)}
|
|
2696
2734
|
`}
|
|
2697
|
-
`,
|
|
2735
|
+
`,vs=({button:{disabled:e=!1,text:n,type:i="button",onClick:r},steps:o})=>{const[a,s]=u.useState(1),l=u.useCallback((c,d)=>()=>{s(p=>p+c),d==null||d()},[]);return t.jsx($s,{children:o.map((c,d)=>{const{content:p,title:g,nextAction:x,previousAction:h}=c,b=d+1,w=b===a?"current":"disabled",m=b<a?"completed":w;return t.jsxs(ms,{children:[t.jsx($,{maxWidth:"40px",position:"relative",children:t.jsx(js,{$variant:m,children:m==="completed"?t.jsx(R,{icon:"check",iconSize:"lg",iconType:"fa-solid"}):b})}),t.jsxs($,{ml:1.5,width:"100%",children:[t.jsx(V,{fontWeight:"bold",lineSpacing:1.25,mb:1.5,size:"xs",children:g}),m==="current"&&t.jsxs($,{children:[p,t.jsxs(ws,{children:[a>1&&t.jsx(O,{disabled:c.isDisabledPrevious??!1,onClick:l(-1,h),variant:"tertiary",children:"Previous"}),a<o.length?t.jsx(O,{disabled:c.isDisabledNext??!1,onClick:l(1,x),variant:"primary",children:"Next step"}):t.jsx(O,{disabled:e,onClick:r,type:i,variant:"primary",children:n})]})]})]})]},c.title)})})},ks=e=>{const n=(o,a)=>a.reduce((l,[c,d])=>{if(u.isValidElement(d)||c==="__typename")return l.concat([["",""]]);if(typeof d=="object"&&d){const g=Object.entries(d);return l.concat(n(c,g))}const p=o===""?"":`${o}.`;return l.concat([[p+c,d]])},[]),i=Object.entries(e),r=n("",i).filter(([o])=>o!=="");return Object.fromEntries(r)},Rt=e=>e.map(ks),Bn=({csvConfig:e={},data:n,children:i})=>{const{columns:r=void 0,export:o=!1,headers:a={},name:s="Report"}=e,l=u.useMemo(()=>y._.isUndefined(r)?Rt(n):Rt(n).map(p=>y._.pick(p,r)),[n,r]),c=u.useMemo(()=>l.length>0&&!y._.isEmpty(a),[l.length,a]),d=u.useMemo(()=>(c?Object.keys(l[0]):[]).map(p=>y._.includes(Object.keys(a),p)?{key:p,label:a[p]}:{key:p,label:p}),[c,l,a]);return o?t.jsx(y.CSVLink,{data:l,filename:s,headers:c?d:void 0,children:i}):t.jsx(u.Fragment,{children:i})},Hn=e=>{const{table:n}=e,{meta:i}=n.options,[r,o]=u.useState(0),[,a]=n.getHeaderGroups(),s=n.getState(),l=u.useMemo(()=>n.getAllLeafColumns().filter(g=>g.id!=="selection"),[n]),c=u.useMemo(()=>l.map(g=>{var x;return{group:(x=g.parent)==null?void 0:x.id,id:g.id,locked:g.getIsPinned()==="left",name:g.columnDef.header,toggleVisibility:g.toggleVisibility,visible:g.getIsVisible()}}),[l]),d=cn({columnOrder:(i==null?void 0:i.defaultColumnOrder)??[],items:c,name:"table-column-management",setColumnOrder:n.setColumnOrder,setColumnVisibility:n.setColumnVisibility}),p=u.useCallback(()=>{d.toggle()},[d]);return u.useEffect(()=>{o(n.getVisibleLeafColumns().filter(g=>g.id!=="selection").length)},[n,s]),t.jsxs("div",{id:"columns-filter",children:[t.jsx(O,{icon:"columns",id:"columns-toggle-btn",onClick:p,tag:r.toString(),variant:"ghost"}),t.jsx(wn,{modalRef:d,title:"Manage columns",variant:y.isNil(a)?"ungrouped":"grouped"})]})},ie=u.createContext({containerRef:void 0,elementName:"",handleUnselectAll:void 0,hidden:!1,onKeyDown:void 0,selected:0,tableSize:0,tableRef:void 0,table:void 0}),Cs=f.styled.span`
|
|
2698
2736
|
transition: all 150ms;
|
|
2699
2737
|
width: 5px;
|
|
2700
2738
|
height: 10px;
|
|
@@ -2719,7 +2757,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
2719
2757
|
transition: opacity 150ms;
|
|
2720
2758
|
opacity: ${({$variant:e})=>e==="asc"?0:1};
|
|
2721
2759
|
}
|
|
2722
|
-
`,tt=e=>{const n=f.useTheme(),{variant:i}=e;return t.jsxs(
|
|
2760
|
+
`,tt=e=>{const n=f.useTheme(),{variant:i}=e;return t.jsxs(Cs,{$variant:i,children:[t.jsx(R,{icon:"caret-up",iconColor:n.palette.gray[600],iconSize:"xs",iconType:"fa-solid"}),t.jsx(R,{icon:"caret-down",iconColor:n.palette.gray[600],iconSize:"xs",iconType:"fa-solid"})]})},Ss=f.styled.div`
|
|
2723
2761
|
position: relative;
|
|
2724
2762
|
|
|
2725
2763
|
div:has(table) {
|
|
@@ -2883,7 +2921,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
2883
2921
|
}
|
|
2884
2922
|
}
|
|
2885
2923
|
}
|
|
2886
|
-
`,
|
|
2924
|
+
`,zs=f.styled.div`
|
|
2887
2925
|
${({$width:e,theme:n})=>`
|
|
2888
2926
|
display: flex;
|
|
2889
2927
|
flex-direction: column;
|
|
@@ -2911,7 +2949,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
2911
2949
|
}
|
|
2912
2950
|
}
|
|
2913
2951
|
`}
|
|
2914
|
-
`,
|
|
2952
|
+
`,Ts=f.styled.div`
|
|
2915
2953
|
align-items: center;
|
|
2916
2954
|
background-color: transparent;
|
|
2917
2955
|
display: flex;
|
|
@@ -2959,11 +2997,11 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
2959
2997
|
transition: all 150ms;
|
|
2960
2998
|
border-right: 1px solid ${({theme:e})=>e.palette.black};
|
|
2961
2999
|
}
|
|
2962
|
-
`,_n=()=>{const e=f.useTheme(),{table:n}=u.useContext(ie),{groupHeaders:i,tooltips:r}=(n==null?void 0:n.options.meta)??{},o=u.useCallback(d=>()=>{d.column.getCanSort()&&(n==null||n.setPageIndex(0),d.column.toggleSorting())},[n]),a=d=>p=>{d.getResizeHandler()(p)};if(i)return t.jsx("thead",{children:n==null?void 0:n.getHeaderGroups().map(d=>t.jsx("tr",{"data-testid":"row-headers",children:d.headers.map(p=>{var b;const{isPlaceholder:g}=p,x=g?p.subHeaders[0]:p;return y._.isUndefined(p.column.parent)&&p.depth>1?null:t.jsxs("th",{colSpan:x.colSpan,id:`header-${x.id}`,rowSpan:g?0:1,style:{borderRight:p.headerGroup.headers.indexOf(p)!==p.headerGroup.headers.length-1?"1px solid white":void 0,position:"relative",width:p.getSize()},children:[t.jsxs($,{alignItems:"center",bgColor:e.palette.gray[200],borderBottom:g?void 0:`1px solid${e.palette.white}`,display:"flex",gap:.25,height:g?"6rem":"3rem",lineSpacing:0,onClick:o(x),pl:.5,pt:g?3:0,whiteSpace:"nowrap",width:"100%",children:[y.flexRender(x.column.columnDef.header,x.getContext()),x.column.getCanSort()?t.jsx(tt,{variant:x.column.getIsSorted()}):void 0,(r==null?void 0:r.map(w=>w.columnId).includes(x.id))??!1?t.jsx(q,{icon:"circle-info",id:x.id,place:"right",tip:((b=r==null?void 0:r.find(w=>w.columnId===x.id))==null?void 0:b.tip)??""}):void 0]}),x.column.getCanResize()&&t.jsx(Nt,{onMouseDown:a(p)})]},x.id)})},d.id))});const[s,l]=(n==null?void 0:n.getHeaderGroups())??[],c=y.lodashExports.isNil(l)?s:l;return t.jsx("thead",{children:t.jsx("tr",{"data-testid":"row-headers",children:c.headers.map(d=>{var p;return t.jsxs("th",{id:`header-${d.id}`,style:{position:"relative",width:d.getSize()},children:[t.jsxs($,{alignItems:"center",bgColor:e.palette.gray[200],display:"flex",gap:.25,height:"3rem",lineSpacing:0,onClick:o(d),px:.5,whiteSpace:"nowrap",width:"100%",children:[y.flexRender(d.column.columnDef.header,d.getContext()),d.column.getCanSort()?t.jsx(tt,{variant:d.column.getIsSorted()}):void 0,(r==null?void 0:r.map(g=>g.columnId).includes(d.id))??!1?t.jsx(q,{icon:"circle-info",id:d.id,place:"right",tip:((p=r==null?void 0:r.find(g=>g.columnId===d.id))==null?void 0:p.tip)??""}):void 0]}),d.column.getCanResize()&&t.jsx(Nt,{onMouseDown:a(d)})]},d.id)})})})},
|
|
3000
|
+
`,_n=()=>{const e=f.useTheme(),{table:n}=u.useContext(ie),{groupHeaders:i,tooltips:r}=(n==null?void 0:n.options.meta)??{},o=u.useCallback(d=>()=>{d.column.getCanSort()&&(n==null||n.setPageIndex(0),d.column.toggleSorting())},[n]),a=d=>p=>{d.getResizeHandler()(p)};if(i)return t.jsx("thead",{children:n==null?void 0:n.getHeaderGroups().map(d=>t.jsx("tr",{"data-testid":"row-headers",children:d.headers.map(p=>{var b;const{isPlaceholder:g}=p,x=g?p.subHeaders[0]:p;return y._.isUndefined(p.column.parent)&&p.depth>1?null:t.jsxs("th",{colSpan:x.colSpan,id:`header-${x.id}`,rowSpan:g?0:1,style:{borderRight:p.headerGroup.headers.indexOf(p)!==p.headerGroup.headers.length-1?"1px solid white":void 0,position:"relative",width:p.getSize()},children:[t.jsxs($,{alignItems:"center",bgColor:e.palette.gray[200],borderBottom:g?void 0:`1px solid${e.palette.white}`,display:"flex",gap:.25,height:g?"6rem":"3rem",lineSpacing:0,onClick:o(x),pl:.5,pt:g?3:0,whiteSpace:"nowrap",width:"100%",children:[y.flexRender(x.column.columnDef.header,x.getContext()),x.column.getCanSort()?t.jsx(tt,{variant:x.column.getIsSorted()}):void 0,(r==null?void 0:r.map(w=>w.columnId).includes(x.id))??!1?t.jsx(q,{icon:"circle-info",id:x.id,place:"right",tip:((b=r==null?void 0:r.find(w=>w.columnId===x.id))==null?void 0:b.tip)??""}):void 0]}),x.column.getCanResize()&&t.jsx(Nt,{onMouseDown:a(p)})]},x.id)})},d.id))});const[s,l]=(n==null?void 0:n.getHeaderGroups())??[],c=y.lodashExports.isNil(l)?s:l;return t.jsx("thead",{children:t.jsx("tr",{"data-testid":"row-headers",children:c.headers.map(d=>{var p;return t.jsxs("th",{id:`header-${d.id}`,style:{position:"relative",width:d.getSize()},children:[t.jsxs($,{alignItems:"center",bgColor:e.palette.gray[200],display:"flex",gap:.25,height:"3rem",lineSpacing:0,onClick:o(d),px:.5,whiteSpace:"nowrap",width:"100%",children:[y.flexRender(d.column.columnDef.header,d.getContext()),d.column.getCanSort()?t.jsx(tt,{variant:d.column.getIsSorted()}):void 0,(r==null?void 0:r.map(g=>g.columnId).includes(d.id))??!1?t.jsx(q,{icon:"circle-info",id:d.id,place:"right",tip:((p=r==null?void 0:r.find(g=>g.columnId===d.id))==null?void 0:p.tip)??""}):void 0]}),d.column.getCanResize()&&t.jsx(Nt,{onMouseDown:a(d)})]},d.id)})})})},Is=f.styled.div`
|
|
2963
3001
|
align-items: center;
|
|
2964
3002
|
display: flex;
|
|
2965
3003
|
width: 100%;
|
|
2966
|
-
`,Vn=()=>{const e=f.useTheme(),{table:n}=u.useContext(ie),{loading:i}=(n==null?void 0:n.options.meta)??{},r=u.useMemo(()=>{const{enableRowSelection:l,enableMultiRowSelection:c}=(n==null?void 0:n.options)??{};return l||c?1:0},[n==null?void 0:n.options]),o=u.useCallback((l,c)=>{if(c===r)return d=>{var p,g;d.stopPropagation(),(g=(p=n==null?void 0:n.options)==null?void 0:p.onRowClick)==null||g.call(p,l)}},[r,n]),a=u.useCallback(l=>c=>{c.stopPropagation(),l.toggleExpanded()},[]),s=u.useCallback(l=>{const{meta:c}=(n==null?void 0:n.options)??{},{onExpand:d=void 0}=c??{};return d?d(l):null},[n]);return i?t.jsx("tbody",{children:t.jsx("tr",{className:"row-loading","data-testid":"row-loading",children:t.jsx("td",{colSpan:(n==null?void 0:n.getVisibleLeafColumns().length)??0,children:t.jsx($,{alignItems:"center",display:"flex",justify:"center",width:"100%",children:t.jsx(In,{size:"md"})})})})}):(n==null?void 0:n.getRowModel().rows.length)===0?t.jsx("tbody",{children:t.jsx("tr",{className:"row-no-data","data-testid":"row-no-data",children:t.jsx("td",{colSpan:n.getVisibleLeafColumns().length+1,children:t.jsx(T,{color:e.palette.gray[800],size:"md",textAlign:"center",children:"No data to display"})})})}):t.jsx("tbody",{children:n==null?void 0:n.getRowModel().rows.map(l=>t.jsxs(nt.default.Fragment,{children:[t.jsx("tr",{"aria-expanded":l.getIsExpanded(),"data-testid":`row-${l.id}`,children:l.getVisibleCells().map((c,d)=>t.jsx("td",{className:d===r&&n.options.onRowClick?"clickable":"","data-testid":`cell-${c.id}`,onClick:o(l,d),children:t.jsxs(
|
|
3004
|
+
`,Vn=()=>{const e=f.useTheme(),{table:n}=u.useContext(ie),{loading:i}=(n==null?void 0:n.options.meta)??{},r=u.useMemo(()=>{const{enableRowSelection:l,enableMultiRowSelection:c}=(n==null?void 0:n.options)??{};return l||c?1:0},[n==null?void 0:n.options]),o=u.useCallback((l,c)=>{if(c===r)return d=>{var p,g;d.stopPropagation(),(g=(p=n==null?void 0:n.options)==null?void 0:p.onRowClick)==null||g.call(p,l)}},[r,n]),a=u.useCallback(l=>c=>{c.stopPropagation(),l.toggleExpanded()},[]),s=u.useCallback(l=>{const{meta:c}=(n==null?void 0:n.options)??{},{onExpand:d=void 0}=c??{};return d?d(l):null},[n]);return i?t.jsx("tbody",{children:t.jsx("tr",{className:"row-loading","data-testid":"row-loading",children:t.jsx("td",{colSpan:(n==null?void 0:n.getVisibleLeafColumns().length)??0,children:t.jsx($,{alignItems:"center",display:"flex",justify:"center",width:"100%",children:t.jsx(In,{size:"md"})})})})}):(n==null?void 0:n.getRowModel().rows.length)===0?t.jsx("tbody",{children:t.jsx("tr",{className:"row-no-data","data-testid":"row-no-data",children:t.jsx("td",{colSpan:n.getVisibleLeafColumns().length+1,children:t.jsx(T,{color:e.palette.gray[800],size:"md",textAlign:"center",children:"No data to display"})})})}):t.jsx("tbody",{children:n==null?void 0:n.getRowModel().rows.map(l=>t.jsxs(nt.default.Fragment,{children:[t.jsx("tr",{"aria-expanded":l.getIsExpanded(),"data-testid":`row-${l.id}`,children:l.getVisibleCells().map((c,d)=>t.jsx("td",{className:d===r&&n.options.onRowClick?"clickable":"","data-testid":`cell-${c.id}`,onClick:o(l,d),children:t.jsxs(Is,{children:[d===r&&l.getCanExpand()?t.jsx("button",{onClick:a(l),style:{cursor:"pointer",marginRight:"1rem"},children:t.jsx(R,{icon:l.getIsExpanded()?"angle-up":"angle-down",iconSize:"lg",iconType:"fa-light"})}):void 0,y.flexRender(c.column.columnDef.cell,c.getContext())]})},c.id))}),l.getIsExpanded()?t.jsx("tr",{"data-testid":`row-${l.id}-expand`,id:"description",children:t.jsx("td",{colSpan:100,children:s(l)})}):void 0]},l.id))})},Un=()=>{const{containerRef:e,hidden:n,elementName:i,handleUnselectAll:r,onKeyDown:o,selected:a,tableSize:s,tableRef:l}=u.useContext(ie);return t.jsxs("div",{ref:e,children:[n?void 0:t.jsx(zs,{$width:s,children:t.jsxs("div",{children:[t.jsx("b",{children:`${a} ${i} `}),`${a===1?"has":"have"} been selected. `,t.jsx("span",{onClick:r,onKeyDown:o,role:"link",tabIndex:0,children:"Unselect all"})]})}),t.jsxs("table",{ref:l,children:[t.jsx(_n,{}),t.jsx(Vn,{})]})]})},Ft=f.styled(B)`
|
|
2967
3005
|
${({theme:e,$padding:n})=>`
|
|
2968
3006
|
background-color: ${e.palette.white};
|
|
2969
3007
|
border: 1px solid ${e.palette.gray[200]};
|
|
@@ -2989,7 +3027,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
2989
3027
|
background-color: ${e.palette.gray[100]};
|
|
2990
3028
|
}
|
|
2991
3029
|
`}
|
|
2992
|
-
`,Gn=()=>{const{table:e}=u.useContext(ie),{pagination:{pageIndex:n}={pageIndex:0}}=(e==null?void 0:e.getState())??{},i=(e==null?void 0:e.getPageCount())??0,r=u.useCallback(()=>{e==null||e.setPageIndex(n+1)},[n,e]),o=u.useCallback(()=>{e==null||e.previousPage()},[e]);return t.jsxs($,{alignItems:"center",display:"flex",gap:.5,children:[t.jsx(Ft,{$padding:"4px 6px",disabled:!(e!=null&&e.getCanPreviousPage()),icon:"chevron-left",iconSize:"sm",iconType:"fa-light",id:"go-previous",onClick:o,variant:"ghost"}),t.jsx(Ft,{$padding:"4px 6px",disabled:n>i-2,icon:"chevron-right",iconSize:"sm",iconType:"fa-light",id:"go-next",onClick:r,variant:"ghost"})]})},
|
|
3030
|
+
`,Gn=()=>{const{table:e}=u.useContext(ie),{pagination:{pageIndex:n}={pageIndex:0}}=(e==null?void 0:e.getState())??{},i=(e==null?void 0:e.getPageCount())??0,r=u.useCallback(()=>{e==null||e.setPageIndex(n+1)},[n,e]),o=u.useCallback(()=>{e==null||e.previousPage()},[e]);return t.jsxs($,{alignItems:"center",display:"flex",gap:.5,children:[t.jsx(Ft,{$padding:"4px 6px",disabled:!(e!=null&&e.getCanPreviousPage()),icon:"chevron-left",iconSize:"sm",iconType:"fa-light",id:"go-previous",onClick:o,variant:"ghost"}),t.jsx(Ft,{$padding:"4px 6px",disabled:n>i-2,icon:"chevron-right",iconSize:"sm",iconType:"fa-light",id:"go-next",onClick:r,variant:"ghost"})]})},Ds=10,Es=20,Rs=50,Ns=100,Yn=()=>{const e=f.useTheme(),{table:n}=u.useContext(ie),i=(n==null?void 0:n.getRowCount())??0,[r,o]=u.useState(!1),[a,s]=u.useState((n==null?void 0:n.getState().pagination.pageSize)??10),{refs:l,floatingStyles:c}=y.useFloating$1({middleware:[y.offset({mainAxis:4})],open:r,placement:"top-end",whileElementsMounted:y.autoUpdate}),d=u.useMemo(()=>y.transform([Ds,Es,Rs,Ns],(h,b)=>(h.push(b),b<=i),[]),[i]),p=u.useCallback(()=>{r&&o(!1)},[r]),g=u.useCallback(()=>{o(h=>!h)},[]),x=u.useCallback(h=>()=>{s(h),n==null||n.setPageSize(h),o(!1)},[n,s]);return ne(l.reference.current,()=>{o(!1)},!0,l.floating.current),u.useEffect(()=>(window.addEventListener("scrollend",p,!0),()=>{window.removeEventListener("scrollend",p,!0)}),[p]),t.jsxs(u.Fragment,{children:[t.jsxs($,{alignItems:"center",bgColor:e.palette.white,border:"1px solid",borderColor:e.palette.gray[200],borderRadius:"4px",display:"flex",minHeight:"24px",px:.25,children:[t.jsx(T,{pr:.25,size:"md",children:a}),t.jsx(B,{color:e.palette.gray[400],icon:r?"chevron-up":"chevron-down",iconSize:"sm",iconType:"fa-light",id:"paginator-dropdown",onClick:g,px:.25,py:.25,ref:l.setReference,variant:"ghost"})]}),r?t.jsx($,{bgColor:e.palette.white,border:`1px solid ${e.palette.gray[200]}`,borderRadius:e.spacing[.5],display:"flex",flexDirection:"column",px:.25,py:.25,ref:l.setFloating,shadow:"md",style:c,children:d.map(h=>{const b=x(h);return t.jsx($,{bgColor:a===h?e.palette.gray[800]:"transparent",bgColorHover:e.palette.gray[a===h?800:100],borderRadius:e.spacing["0.25"],cursor:"pointer",maxWidth:"40px",minWidth:"40px",onClick:b,px:.25,py:.25,children:t.jsx(T,{color:a===h?e.palette.white:e.palette.gray[600],size:"md",textAlign:"center",children:h})},h)})}):void 0]})},Kn=()=>{const{table:e}=u.useContext(ie),{pagination:{pageIndex:n,pageSize:i}={pageIndex:0,pageSize:10}}=(e==null?void 0:e.getState())??{},r=(e==null?void 0:e.getRowCount())??0,o=u.useCallback((a,s,l)=>{if(l===0)return"0 of 0";if(s*a>=l)return`${l} of ${l}`;const c=s*a+1,d=Math.min(s*(a+1),l);return`${c}-${d} of ${l}`},[]);return t.jsx(T,{display:"inline-block",fontWeight:"bold",size:"md",children:o(n,i,r)})},qn=({children:e})=>t.jsxs(Ts,{children:[t.jsxs("div",{className:"pagination-container",children:[t.jsx(Kn,{}),t.jsx(Yn,{}),t.jsx(Gn,{})]}),e]}),Xn=({children:e})=>t.jsx("div",{className:"footer-container",children:e}),Fs=f.styled.div.attrs({className:"search-container"})`
|
|
2993
3031
|
${({theme:e})=>`
|
|
2994
3032
|
display: flex;
|
|
2995
3033
|
flex-direction: column;
|
|
@@ -3036,7 +3074,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
3036
3074
|
}
|
|
3037
3075
|
}
|
|
3038
3076
|
`}
|
|
3039
|
-
`,
|
|
3077
|
+
`,Ls=f.styled.div.attrs({className:"controls-container"})`
|
|
3040
3078
|
display: flex;
|
|
3041
3079
|
flex: 1 0 50%;
|
|
3042
3080
|
|
|
@@ -3052,7 +3090,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
3052
3090
|
justify-content: flex-end;
|
|
3053
3091
|
width: 100%;
|
|
3054
3092
|
}
|
|
3055
|
-
`,
|
|
3093
|
+
`,As=f.styled.div`
|
|
3056
3094
|
display: flex;
|
|
3057
3095
|
flex-wrap: wrap;
|
|
3058
3096
|
width: 100%;
|
|
@@ -3067,7 +3105,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
3067
3105
|
.highlight-container ~ .controls-container {
|
|
3068
3106
|
flex: 1 0 100%;
|
|
3069
3107
|
}
|
|
3070
|
-
`,
|
|
3108
|
+
`,Ps=500,Lt=300,Zn=({children:e})=>{const{table:n}=u.useContext(ie),{onSearch:i,search:r,searchPlaceholder:o="Search"}=(n==null?void 0:n.options.meta)??{},a=ct(l=>{const c=l.target.value.slice(0,Lt);i==null||i(c)},Ps),s=u.useCallback(()=>{i==null||i("")},[i]);return t.jsxs(As,{children:[i===void 0?void 0:t.jsx(Fs,{children:t.jsx(se,{maxLength:Lt,name:"search",onChange:a,onClear:s,placeholder:o,value:r})}),e]})},Jn=({children:e})=>t.jsx($,{display:"flex",flexDirection:"column",children:t.jsx("div",{className:"caption-container",children:e})}),Qn=({children:e})=>t.jsx(Ls,{children:e}),ei=({children:e})=>t.jsx("div",{className:"highlight-container",children:e}),Ms=160,ti=({children:e,table:n})=>{var x;const i=u.useRef(null),r=u.useRef(null),{id:o}=n.options.meta??{},{enableMultiRowSelection:a}=(n==null?void 0:n.options)??{},s=Object.keys(n.getState().rowSelection).length,l=s===1?"item":"items",c=s===0||!a,d=Math.max(((x=i.current)==null?void 0:x.clientWidth)??0,n.getTotalSize()+Ms),p=u.useCallback(()=>{n.resetRowSelection()},[n]),g=u.useCallback(h=>{h.key==="Enter"&&p()},[p]);return u.useEffect(()=>{n.setPageIndex(0)},[n]),t.jsx(ie.Provider,{value:{containerRef:i,elementName:l,handleUnselectAll:p,hidden:c,onKeyDown:g,selected:s,tableSize:d,tableRef:r,table:n},children:t.jsx(Ss,{id:o,children:e})})},Os=Object.assign(ti,{Caption:Jn,Columns:Hn,Content:Un,Controls:Qn,Export:Bn,Footer:qn,FooterContent:Xn,Highlighted:ei,Options:Zn}),Ws=f.styled.button`
|
|
3071
3109
|
${({theme:e})=>`
|
|
3072
3110
|
align-items: center;
|
|
3073
3111
|
background-color: ${e.palette.white};
|
|
@@ -3109,7 +3147,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
3109
3147
|
background-color: ${e.palette.gray[100]};
|
|
3110
3148
|
}
|
|
3111
3149
|
`}
|
|
3112
|
-
`,
|
|
3150
|
+
`,Bs={add:{icon:"plus"},approve:{icon:"check"},disabled:{icon:"ban"},reject:{icon:"xmark"},submit:{icon:"arrow-right"},success:{icon:"check"}},Hs=({disabled:e=!1,icon:n,id:i,label:r,name:o,onClick:a,type:s="button",variant:l})=>{const c=f.useTheme(),d=t.jsxs(Ws,{"aria-label":o??void 0,className:l,disabled:e,id:i,onClick:a,type:s,children:[t.jsx(R,{clickable:!1,icon:n??Bs[l].icon,iconSize:o===void 0?"sm":"lg",iconType:"fa-light"}),o??void 0]});return t.jsxs($,{alignItems:"center",display:"flex",children:[d,r&&t.jsx(T,{color:c.palette.gray[800],ml:.5,size:"md",children:r})]})},_s=({items:e})=>{const n=f.useTheme();return t.jsx($,{alignItems:"flex-start",display:"flex",flexDirection:"column",width:"100%",children:e.map(i=>t.jsxs($,{alignItems:"center",borderBottom:`1px solid ${n.palette.gray[200]}`,display:"flex",justify:"space-between",pr:3,py:.75,width:"100%",children:[t.jsx(T,{fontWeight:"bold",size:"lg",...i.backgroundColor?{bgGradient:i.backgroundColor,textFill:"transparent"}:{},children:i.header}),i.content??void 0]},i.header))})},Vs=f.styled.div`
|
|
3113
3151
|
${({theme:e})=>`
|
|
3114
3152
|
align-items: flex-start;
|
|
3115
3153
|
display: flex;
|
|
@@ -3126,7 +3164,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
3126
3164
|
fill: url(#gradient-01);
|
|
3127
3165
|
}
|
|
3128
3166
|
`}
|
|
3129
|
-
`,
|
|
3167
|
+
`,Us=({children:e,title:n,description:i,icon:r})=>{const o=f.useTheme();return t.jsxs(Vs,{children:[n||i?t.jsxs($,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.75,width:"100%",children:[t.jsxs($,{display:"flex",gap:.75,height:"max-content",children:[t.jsxs("span",{className:"fa-stack",children:[t.jsx("i",{className:"fa-solid fa-square fa-stack-2x",style:{color:o.palette.primary[25],width:"30px",height:"30px"}}),t.jsx("i",{className:`fa-solid fa-${r} fa-stack-1x fill-gradient-01`,style:{width:"14px",height:"14px",marginRight:"4.5px"}})]},r),n?t.jsx(V,{fontWeight:"bold",size:"sm",children:n}):void 0]}),i??void 0]}):void 0,e]})},Gs=f.styled.div`
|
|
3130
3168
|
${({theme:e})=>`
|
|
3131
3169
|
align-items: center;
|
|
3132
3170
|
background-color: ${e.palette.white};
|
|
@@ -3148,7 +3186,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
3148
3186
|
border: 1px solid ${e.palette.gray[600]};
|
|
3149
3187
|
}
|
|
3150
3188
|
`}
|
|
3151
|
-
`,
|
|
3189
|
+
`,Ys=f.styled.div`
|
|
3152
3190
|
${({theme:e,$size:n})=>`
|
|
3153
3191
|
display: ${n==="long"?"flex":"block"};
|
|
3154
3192
|
flex-direction: column;
|
|
@@ -3198,7 +3236,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
3198
3236
|
transform: translateX(-50%);
|
|
3199
3237
|
}
|
|
3200
3238
|
`}
|
|
3201
|
-
`,ni=({date:e,description:n,title:i})=>{const r=f.useTheme();return t.jsxs(
|
|
3239
|
+
`,ni=({date:e,description:n,title:i})=>{const r=f.useTheme();return t.jsxs(Gs,{className:"timeline-card",children:[t.jsx(T,{color:r.palette.gray[800],fontWeight:"bold",size:"md",textAlign:"start",children:e}),t.jsx(T,{color:r.palette.gray[800],fontWeight:"bold",mb:.5,size:"md",textAlign:"center",children:i}),t.jsx("div",{children:n.map((o,a)=>{const s=`${o}#${a}`;return t.jsx(T,{size:"md",textAlign:"center",wordBreak:"break-word",children:o},s)})})]})},Ks=({items:e})=>{const n=u.useRef(null),[i,r]=u.useState("long");return u.useEffect(()=>{n.current&&r(n.current.offsetWidth<=1100?"small":"long")},[]),t.jsx($,{ref:n,width:"100%",children:t.jsx(Ys,{$size:i,children:e.map((o,a)=>t.jsx(ni,{date:o.date,description:o.description,size:i,title:o.title},`${o.title}-${a}`))})})},qs={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:""},Xs=({run:e,steps:n,onFinish:i})=>{const[r,o]=u.useState(e),[a,s]=u.useState(0),l=u.useCallback(c=>{const{action:d,index:p,status:g,type:x}=c;[y.EVENTS.STEP_AFTER,y.EVENTS.TARGET_NOT_FOUND].includes(x)?s(p+(d===y.ACTIONS.PREV?-1:1)):([y.STATUS.FINISHED,y.STATUS.SKIPPED].includes(g)||d==="close")&&(o(!1),y.lodashExports.isUndefined(i)||i())},[i]);return t.jsx(y.components_default,{callback:l,continuous:!0,disableOverlayClose:!0,disableScrollParentFix:!0,run:r,spotlightClicks:!0,stepIndex:a,steps:n,styles:{buttonNext:{display:a===n.length-1?"none":"block"},options:{zIndex:9999}}})},Zs=f.styled.div`
|
|
3202
3240
|
${({theme:e})=>`
|
|
3203
3241
|
align-items: flex-start;
|
|
3204
3242
|
display: flex;
|
|
@@ -3240,42 +3278,4 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[s,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
|
|
|
3240
3278
|
content: "";
|
|
3241
3279
|
height: 24px;
|
|
3242
3280
|
border-left: 2px solid ${({theme:e})=>e.palette.gray[100]};
|
|
3243
|
-
`,
|
|
3244
|
-
${({theme:e})=>`
|
|
3245
|
-
align-items: flex-start;
|
|
3246
|
-
align-self: stretch;
|
|
3247
|
-
background: ${e.palette.white};
|
|
3248
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
3249
|
-
border-radius: 8px;
|
|
3250
|
-
box-shadow: ${e.shadows.sm};
|
|
3251
|
-
display: flex;
|
|
3252
|
-
flex-direction: column;
|
|
3253
|
-
gap: ${e.spacing[.75]};
|
|
3254
|
-
height: 232px;
|
|
3255
|
-
padding: ${e.spacing[1.5]};
|
|
3256
|
-
transition: all .15s ease;
|
|
3257
|
-
width: 362px;
|
|
3258
|
-
|
|
3259
|
-
&:hover {
|
|
3260
|
-
background:
|
|
3261
|
-
linear-gradient(#fff, #fff) padding-box,
|
|
3262
|
-
${e.palette.gradient} border-box;
|
|
3263
|
-
border: 1px solid transparent;
|
|
3264
|
-
}
|
|
3265
|
-
|
|
3266
|
-
.fill-gradient-01 path {
|
|
3267
|
-
fill: url(/gradients.svg#gradient-01);
|
|
3268
|
-
fill: url(#gradient-01);
|
|
3269
|
-
}
|
|
3270
|
-
`}
|
|
3271
|
-
`,Zs=f.styled.div`
|
|
3272
|
-
${({theme:e})=>`
|
|
3273
|
-
width: 48px;
|
|
3274
|
-
height: 48px;
|
|
3275
|
-
border-radius: 12px;
|
|
3276
|
-
background: ${e.palette.primary[25]};
|
|
3277
|
-
display: flex;
|
|
3278
|
-
align-items: center;
|
|
3279
|
-
justify-content: center;
|
|
3280
|
-
`}
|
|
3281
|
-
`,Js=({desc:e,href:n,icon:i,title:r})=>{const o=f.useTheme();return t.jsxs(Xs,{"data-testid":r,children:[t.jsx(Zs,{children:t.jsx("i",{className:`fa-solid fa-${i} fill-gradient-01`,style:{fontSize:24}})}),t.jsx(V,{size:"sm",children:r}),t.jsx(T,{color:o.palette.gray[600],size:"lg",children:e}),t.jsx("a",{href:n,style:{textDecoration:"none"},children:t.jsxs(T,{color:o.palette.primary[600],size:"lg",children:["Learn more ",t.jsx(R,{icon:"arrow-right",iconSize:"sm",iconType:"fa-light"})]})})]})};exports.Accordion=Ai;exports.AccordionContent=Wt;exports.ActionButton=pe;exports.Alert=Gi;exports.AppliedFilter=ue;exports.AppliedFilters=Bo;exports.ArrayField=Xe;exports.Avatar=tr;exports.BaseButtonComponent=it;exports.BaseComponent=ze;exports.BaseSpanComponent=ot;exports.BaseTextComponent=rt;exports.Body=Vn;exports.Button=O;exports.Button$1=Le;exports.ButtonToolbarCenter=Tr;exports.ButtonToolbarRow=Dr;exports.ButtonToolbarStartRow=Ir;exports.Calendar=Kt;exports.Calendar$1=Qt;exports.Calendar$2=tn;exports.CalendarCell=Yt;exports.CalendarGrid=Me;exports.CaptionContent=Jn;exports.CardContainer=lo;exports.CardHeader=Pe;exports.CardWithImage=rr;exports.CardWithInput=qr;exports.CardWithOptions=an;exports.CardWithSelector=no;exports.CardWithSwitch=oo;exports.Carousel=ho;exports.Checkbox=oe;exports.CodeSnippet=yo;exports.Col=qe;exports.ColumFilters=Sn;exports.ColumnToggle=Hn;exports.ColumnsModal=wn;exports.ComboBox=st;exports.ComboBoxField=Ke;exports.Container=$;exports.ControlsContent=Qn;exports.CopyButton=Jo;exports.CustomThemeProvider=Ti;exports.DateField=Xt;exports.DateSelector=fe;exports.Description=Pn;exports.Dialog=We;exports.Divider=ae;exports.Dropdown=ta;exports.Editable=zr;exports.EmptyButton=Qe;exports.EmptyState=oa;exports.ErrorMessage=lr;exports.ExportCsv=Bn;exports.FilePreview=Vt;exports.FilterControl=jn;exports.FilterForm=Je;exports.FilterFormContent=vn;exports.FiltersList=Cn;exports.FooterContent=Xn;exports.Form=la;exports.Gap=Nr;exports.GridContainer=da;exports.GroupSelector=ga;exports.Head=_n;exports.Header=Oe;exports.Header$1=hn;exports.Heading=V;exports.HighlightedContent=ei;exports.Icon=R;exports.IconButton=B;exports.InProgressIcon=Ln;exports.IndicatorCard=ao;exports.IndicatorCardDB=xa;exports.InfoSidebar=ha;exports.InnerForm=aa;exports.InputArray=Lr;exports.InputDate=Jt;exports.InputDateRange=en;exports.InputDateTime=Sr;exports.InputFile=Or;exports.InputNumber=rn;exports.InputNumberRange=on;exports.InputTags=Br;exports.ItemCardDB=Js;exports.ItemContent=Ws;exports.Label=at;exports.Link=te;exports.ListItem=De;exports.ListItemsWrapper=bn;exports.LittleFlag=ya;exports.Loading=In;exports.LocationCode=gn;exports.Logo=Sa;exports.Lottie=Ta;exports.MemoizedImage=re;exports.Menu=Ia;exports.MenuItem=On;exports.MessageBanner=Ea;exports.Modal=xt;exports.ModalConfirm=fn;exports.ModalFooter=xn;exports.Notification=Aa;exports.NotificationSign=Fe;exports.NumberField=be;exports.OAuthSelector=Ma;exports.Option=Ut;exports.OptionBoxContainer=ht;exports.OptionContainer=et;exports.OptionContainer$1=Tn;exports.OutlineContainer=K;exports.PaginationControl=Gn;exports.PaginationDropdown=Yn;exports.PaginationSize=Kn;exports.PhoneInput=Yr;exports.PopUp=Qa;exports.Popover=Te;exports.PremiumFeature=Dn;exports.PreviewPanel=$n;exports.PriorityCard=Nn;exports.PriorityCards=Ba;exports.PriorityScore=Ha;exports.ProgressBar=Fn;exports.ProgressIndicator=Ja;exports.ProgressStep=Xa;exports.RadioButton=dt;exports.RankPosition=Rn;exports.RankPositionIcon=En;exports.Row=nn;exports.ScrollUpButton=ts;exports.Search=se;exports.SearchPanel=mn;exports.SeverityBadge=Mn;exports.SeverityOverview=rs;exports.SeverityOverviewBadge=xe;exports.ShowOnHover=as;exports.SlideOutMenu=ls;exports.Slider=xs;exports.SortIcon=tt;exports.Span=he;exports.StepLapse=ms;exports.Tab=yn;exports.Table=As;exports.Table$1=ti;exports.TableButton=Os;exports.TableContent=Hs;exports.TableContent$1=Un;exports.TableContext=ie;exports.TableFooter=qn;exports.TableOptions=Zn;exports.Tabs=gt;exports.Tag=J;exports.TagsField=Ze;exports.Text=T;exports.TextArea=Kr;exports.TextInput=Be;exports.Thumb=Wn;exports.TimeField=Zt;exports.TimeLine=Us;exports.TimeLineCard=ni;exports.Toggle=dn;exports.Tooltip=q;exports.Tour=Ys;exports.WeaknessesCard=qs;exports.baseStep=Gs;exports.formatCheckValues=zn;exports.getStyledConfig=Se;exports.hiddenProps=Pt;exports.icons=zi;exports.setBorder=je;exports.setDisplay=ve;exports.setInteraction=Ce;exports.setMargin=me;exports.setPadding=$e;exports.setPosition=we;exports.setText=ke;exports.theme=F;exports.useCarousel=sn;exports.useClickOutside=ne;exports.useCloudinaryImage=ln;exports.useColumnsModal=cn;exports.useConditionsDialog=qo;exports.useConfirmDialog=Xo;exports.useDebouncedCallback=ct;exports.useFilterForm=kn;exports.useFilters=Ko;exports.useModal=Ie;exports.useSearch=Jr;exports.variantBuilder=ee;
|
|
3281
|
+
`,Js=({title:e,href:n,description:i,category:r,id:o,remediationTime:a,score:s,severity:l,requirements:c})=>{const d=f.useTheme();return t.jsxs(Zs,{children:[t.jsx(T,{bgGradient:d.palette.gradient,fontWeight:"bold",size:"md",textFill:"transparent",children:r}),t.jsxs("a",{href:n,children:[t.jsx(V,{color:d.palette.gray[400],display:"inline",fontWeight:"bold",size:"sm",children:o}),t.jsx(V,{display:"inline",fontWeight:"bold",ml:.25,size:"sm",children:e})]}),t.jsx(T,{size:"lg",children:i}),t.jsxs($,{alignItems:"center",display:"flex",flexDirection:"row",gap:.75,width:"100%",children:[t.jsxs(T,{color:d.palette.gray[400],display:"inline",size:"lg",children:[t.jsx("b",{children:"Remediation time: "}),`${a} min`]}),t.jsx(At,{}),t.jsx(T,{color:d.palette.gray[400],display:"inline",fontWeight:"bold",size:"lg",children:"Default score: "}),t.jsx(Mn,{textL:s,textR:y.capitalize(l),variant:l}),t.jsx(At,{}),t.jsxs($,{alignItems:"center",children:[t.jsx(T,{color:d.palette.gray[400],display:"inline",fontWeight:"bold",size:"lg",children:"Requirements: "}),c.map((p,g)=>t.jsxs(u.Fragment,{children:[g>0?t.jsx(T,{color:d.palette.gray[400],display:"inline",size:"lg",children:" / "}):void 0,t.jsx("a",{href:p.href,style:{color:d.palette.gray[400],textDecoration:"underline"},children:p.title})]},p.key))]})]})]})};exports.Accordion=Ai;exports.AccordionContent=Wt;exports.ActionButton=pe;exports.Alert=Gi;exports.AppliedFilter=ue;exports.AppliedFilters=Bo;exports.ArrayField=Xe;exports.Avatar=tr;exports.BaseButtonComponent=it;exports.BaseComponent=ze;exports.BaseSpanComponent=ot;exports.BaseTextComponent=rt;exports.Body=Vn;exports.Button=O;exports.Button$1=Le;exports.ButtonToolbarCenter=Tr;exports.ButtonToolbarRow=Dr;exports.ButtonToolbarStartRow=Ir;exports.Calendar=Kt;exports.Calendar$1=Qt;exports.Calendar$2=tn;exports.CalendarCell=Yt;exports.CalendarGrid=Me;exports.CaptionContent=Jn;exports.CardContainer=lo;exports.CardHeader=Pe;exports.CardWithImage=rr;exports.CardWithInput=qr;exports.CardWithOptions=an;exports.CardWithSelector=no;exports.CardWithSwitch=oo;exports.Carousel=ho;exports.Checkbox=oe;exports.CodeSnippet=yo;exports.Col=qe;exports.ColumFilters=Sn;exports.ColumnToggle=Hn;exports.ColumnsModal=wn;exports.ComboBox=st;exports.ComboBoxField=Ke;exports.Container=$;exports.ControlsContent=Qn;exports.CopyButton=Jo;exports.CustomThemeProvider=Ti;exports.DateField=Xt;exports.DateSelector=fe;exports.Description=Pn;exports.Dialog=We;exports.Divider=ae;exports.Dropdown=ta;exports.Editable=zr;exports.EmptyButton=Qe;exports.EmptyState=oa;exports.ErrorMessage=lr;exports.ExportCsv=Bn;exports.FilePreview=Vt;exports.FilterControl=jn;exports.FilterForm=Je;exports.FilterFormContent=vn;exports.FiltersList=Cn;exports.FooterContent=Xn;exports.Form=la;exports.Gap=Nr;exports.GridContainer=da;exports.GroupSelector=ga;exports.Head=_n;exports.Header=Oe;exports.Header$1=hn;exports.Heading=V;exports.HighlightedContent=ei;exports.Icon=R;exports.IconButton=B;exports.InProgressIcon=Ln;exports.IndicatorCard=ao;exports.IndicatorCardDB=xa;exports.InfoSidebar=ha;exports.InnerForm=aa;exports.InputArray=Lr;exports.InputDate=Jt;exports.InputDateRange=en;exports.InputDateTime=Sr;exports.InputFile=Or;exports.InputNumber=rn;exports.InputNumberRange=on;exports.InputTags=Br;exports.ItemCardDB=ba;exports.ItemContent=_s;exports.Label=at;exports.Link=te;exports.ListItem=De;exports.ListItemsWrapper=bn;exports.LittleFlag=ma;exports.Loading=In;exports.LocationCode=gn;exports.Logo=Ia;exports.Lottie=Ea;exports.MemoizedImage=re;exports.Menu=Ra;exports.MenuItem=On;exports.MessageBanner=Fa;exports.Modal=xt;exports.ModalConfirm=fn;exports.ModalFooter=xn;exports.Notification=Oa;exports.NotificationSign=Fe;exports.NumberField=be;exports.OAuthSelector=Ba;exports.Option=Ut;exports.OptionBoxContainer=ht;exports.OptionContainer=et;exports.OptionContainer$1=Tn;exports.OutlineContainer=K;exports.PaginationControl=Gn;exports.PaginationDropdown=Yn;exports.PaginationSize=Kn;exports.PhoneInput=Yr;exports.PopUp=ns;exports.Popover=Te;exports.PremiumFeature=Dn;exports.PreviewPanel=$n;exports.PriorityCard=Nn;exports.PriorityCards=Va;exports.PriorityScore=Ua;exports.ProgressBar=Fn;exports.ProgressIndicator=ts;exports.ProgressStep=Qa;exports.RadioButton=dt;exports.RankPosition=Rn;exports.RankPositionIcon=En;exports.Row=nn;exports.ScrollUpButton=rs;exports.Search=se;exports.SearchPanel=mn;exports.SeverityBadge=Mn;exports.SeverityOverview=ss;exports.SeverityOverviewBadge=xe;exports.ShowOnHover=cs;exports.SlideOutMenu=ps;exports.Slider=ys;exports.SortIcon=tt;exports.Span=he;exports.StepLapse=vs;exports.Tab=yn;exports.Table=Os;exports.Table$1=ti;exports.TableButton=Hs;exports.TableContent=Us;exports.TableContent$1=Un;exports.TableContext=ie;exports.TableFooter=qn;exports.TableOptions=Zn;exports.Tabs=gt;exports.Tag=J;exports.TagsField=Ze;exports.Text=T;exports.TextArea=Kr;exports.TextInput=Be;exports.Thumb=Wn;exports.TimeField=Zt;exports.TimeLine=Ks;exports.TimeLineCard=ni;exports.Toggle=dn;exports.Tooltip=q;exports.Tour=Xs;exports.WeaknessesCard=Js;exports.baseStep=qs;exports.formatCheckValues=zn;exports.getStyledConfig=Se;exports.hiddenProps=Pt;exports.icons=zi;exports.setBorder=je;exports.setDisplay=ve;exports.setInteraction=Ce;exports.setMargin=me;exports.setPadding=$e;exports.setPosition=we;exports.setText=ke;exports.theme=F;exports.useCarousel=sn;exports.useClickOutside=ne;exports.useCloudinaryImage=ln;exports.useColumnsModal=cn;exports.useConditionsDialog=qo;exports.useConfirmDialog=Xo;exports.useDebouncedCallback=ct;exports.useFilterForm=kn;exports.useFilters=Ko;exports.useModal=Ie;exports.useSearch=Jr;exports.variantBuilder=ee;
|