@fluidattacks/design 3.7.11 → 3.7.12-pr-01
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/@core/index.js +1 -1
- package/dist/components/accordion/accordion-content/index.js +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/card/card-header/index.js +1 -1
- package/dist/components/card/card-with-image/index.js +1 -1
- package/dist/components/card/card-with-input/index.js +1 -1
- package/dist/components/card/card-with-options/index.js +1 -1
- package/dist/components/card/card-with-selector/index.js +1 -1
- package/dist/components/card/card-with-switch/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/cloud-image/index.js +1 -1
- package/dist/components/code-snippet/index.js +1 -1
- package/dist/components/code-snippet/location-code/index.js +1 -1
- package/dist/components/colors/index.js +1 -1
- package/dist/components/confirm-dialog/index.js +1 -1
- package/dist/components/container/index.js +1 -1
- package/dist/components/content-card/category-tag/index.js +1 -1
- package/dist/components/content-card/event-date/index.js +1 -1
- package/dist/components/content-card/index.js +1 -1
- package/dist/components/content-card-carousel/index.js +1 -1
- package/dist/components/content-card-carousel/scroll-buttons/index.js +1 -1
- package/dist/components/divider/index.js +1 -1
- package/dist/components/empty-state/empty-button/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/file-preview/index.js +1 -1
- package/dist/components/form/index.js +1 -1
- package/dist/components/grid-container/index.js +1 -1
- package/dist/components/group-selector/index.js +1 -1
- package/dist/components/group-selector/option-container/index.js +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/indicator-card/index.js +1 -1
- package/dist/components/info-sidebar/index.js +1 -1
- package/dist/components/inputs/fields/combobox/field/index.d.ts +6 -0
- package/dist/components/inputs/fields/combobox/field/index.js +1 -0
- package/dist/components/inputs/fields/combobox/index.d.ts +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/combobox/types.d.ts +2 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date/index.js +1 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-range/index.js +1 -1
- package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-time/index.js +1 -1
- package/dist/components/inputs/fields/editable/index.js +1 -1
- package/dist/components/inputs/fields/input/index.js +1 -1
- package/dist/components/inputs/fields/input-file/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/field/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/index.js +1 -1
- package/dist/components/inputs/fields/number/index.js +1 -1
- package/dist/components/inputs/fields/number-range/index.js +1 -1
- package/dist/components/inputs/fields/phone/index.js +1 -1
- package/dist/components/inputs/fields/text-area/index.js +1 -1
- package/dist/components/inputs/index.js +1 -1
- package/dist/components/inputs/label/index.js +1 -1
- package/dist/components/inputs/outline-container/index.js +1 -1
- package/dist/components/inputs/utils/action-button/index.js +1 -1
- package/dist/components/inputs/utils/calendar-button/index.js +1 -1
- package/dist/components/inputs/utils/date-selector/index.js +1 -1
- package/dist/components/inputs/utils/date-time-field/index.js +1 -1
- package/dist/components/inputs/utils/dialog/index.js +1 -1
- package/dist/components/inputs/utils/number-field/index.js +1 -1
- package/dist/components/inputs/utils/popover/index.js +1 -1
- package/dist/components/interactive-card/icon/index.js +1 -1
- package/dist/components/interactive-card/index.js +1 -1
- package/dist/components/language-selector/index.js +1 -1
- package/dist/components/language-selector/item-list/index.js +1 -1
- package/dist/components/layout/categories/buttons/index.js +1 -1
- package/dist/components/layout/categories/column/index.js +1 -1
- package/dist/components/layout/categories/gap/index.js +1 -1
- package/dist/components/layout/categories/row/index.js +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list-item/index.js +1 -1
- package/dist/components/little-flag/index.js +1 -1
- package/dist/components/loading/index.js +1 -1
- package/dist/components/logo/index.js +1 -1
- package/dist/components/logo-carousel/index.js +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/message-banner/index.js +1 -1
- package/dist/components/modal/columns-modal/index.js +1 -1
- package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
- package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
- package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
- package/dist/components/modal/filters-modal/options-selector/index.js +1 -1
- package/dist/components/modal/filters-modal/single-column-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/styles.d.ts +2 -1
- package/dist/components/modal/filters-modal/two-columns-filters/index.js +1 -1
- package/dist/components/modal/footer/index.js +1 -1
- package/dist/components/modal/header/index.js +1 -1
- package/dist/components/modal/index.js +1 -1
- package/dist/components/modal/modal-confirm/index.js +1 -1
- package/dist/components/notification/index.js +1 -1
- package/dist/components/notification-sign/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/oauth-selector/index.js +1 -1
- package/dist/components/oauth-selector/option-container/index.js +1 -1
- package/dist/components/plan-card/index.js +1 -1
- package/dist/components/plan-card/recommended-tag/index.js +1 -1
- package/dist/components/pop-up/description/index.js +1 -1
- package/dist/components/pop-up/index.js +1 -1
- package/dist/components/premium-feature/index.js +1 -1
- package/dist/components/priority-score/index.js +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress-bar/index.js +1 -1
- package/dist/components/radio-button/index.js +1 -1
- package/dist/components/scroll-button/index.js +1 -1
- package/dist/components/search/index.js +1 -1
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-bar/item-searching/index.js +1 -1
- package/dist/components/severity-badge/index.js +1 -1
- package/dist/components/severity-overview/badge/index.js +1 -1
- package/dist/components/severity-overview/index.js +1 -1
- package/dist/components/show-on-hover/index.js +1 -1
- package/dist/components/slide-out-menu/index.js +1 -1
- package/dist/components/slide-out-menu/menu-item/index.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/thumb/index.js +1 -1
- package/dist/components/step-lapse/index.js +1 -1
- package/dist/components/table-button/index.js +1 -1
- package/dist/components/tabs/fixed-tabs/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/tab/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/timeline/card/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toggle/index.js +1 -1
- package/dist/components/toggle-buttons/index.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tour/index.js +1 -1
- package/dist/components/typography/heading/index.js +1 -1
- package/dist/components/typography/index.js +1 -1
- package/dist/components/typography/span/index.js +1 -1
- package/dist/components/typography/text/index.js +1 -1
- package/dist/components/web-form/index.js +1 -1
- package/dist/{components-B3dbWAOX.js → components-BZYBxxf4.js} +274 -268
- package/dist/{components-Cw3orcUd.mjs → components-D8xs8uyF.mjs} +1386 -1268
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{vendor-DLN39j-L.mjs → vendor-DnQeSF2D.mjs} +13446 -13446
- package/dist/{vendor-DNbqU5jS.js → vendor-W2AXDx_l.js} +3 -3
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),g=require("react"),s=require("./vendor-W2AXDx_l.js"),V=require("react-dom"),Ee=require("react-router-dom"),G=e=>({getVariant:(n,i)=>e(n)[i]}),rt=["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"],pn={25:"#fcfcfd",50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#2f394b",800:"#212a36",900:"#161b25"},gn={25:"#fef2f3",50:"#fddfe2",100:"#fbbac0",200:"#f9959e",300:"#f65e6a",400:"#f32637",500:"#bf0b1a",600:"#ac0a17",700:"#9a0915",800:"#870812",900:"#750710"},un={25:"",50:"",100:"#ffe6ff",200:"",300:"#b8075d",400:"",500:"#7f0540",600:"",700:"#59042d",800:"",900:"#460323"},xn={25:"",50:"#fef3f2",100:"",200:"#fecdca",300:"",400:"",500:"#f04438",600:"",700:"#b42318",800:"",900:""},fn={25:"",50:"#fffaeb",100:"",200:"#fef0c7",300:"",400:"#ffd562",500:"#fdb022",600:"#dc6803",700:"#b54708",800:"",900:""},hn={25:"",50:"#f6fef9",100:"",200:"#a6f4c5",300:"",400:"",500:"#12b76a",600:"",700:"#027a48",800:"",900:""},bn={25:"",50:"#eff8ff",100:"",200:"#b2ddff",300:"",400:"",500:"#2e90fa",600:"",700:"#175cd3",800:"",900:""},$n={"01":"linear-gradient(45deg, #f32637 0%, #b8075d 100%)","02":"linear-gradient(45deg, #fcfcfd 0%, #667085 100%)"},yn={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"}},mn={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)"},wn={mobile:"480px",tablet:"960px",sm:"1024px",md:"1440px",lg:"1920px"},jn={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"},kn=["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"],Cn=[["fal","arrow-down"],["fal","arrow-left"],["fal","arrow-right"],["fal","arrow-up"],["fal","plus"],["fal","minus"],["fas","check"],["fas","circle-question"]],v={typography:yn,shadows:mn,breakpoints:wn,spacing:jn,palette:{primary:gn,complementary:un,error:xn,info:bn,warning:fn,success:hn,black:"#0c111d",white:"#ffffff",gray:pn,gradients:$n}},vn=({children:e})=>t.jsx(s.ot,{theme:v,children:e}),I=(e,n)=>n===void 0?"":`${e}: ${n};`,re=e=>{const n=e.py??e.pt??0,i=e.px??e.pr??0,a=e.py??e.pb??0,r=e.px??e.pl??0;if(e.padding){const[o,l,c,d]=e.padding;return`padding: ${v.spacing[o]} ${v.spacing[l]} ${v.spacing[c]} ${v.spacing[d]};`}return`padding: ${v.spacing[n]} ${v.spacing[i]} ${v.spacing[a]} ${v.spacing[r]};`},oe=e=>{const n=e.my??e.mt??0,i=e.mx??e.mr??0,a=e.my??e.mb??0,r=e.mx??e.ml??0;if(e.margin){const[o,l,c,d]=e.margin;return`margin: ${v.spacing[o]} ${v.spacing[l]} ${v.spacing[c]} ${v.spacing[d]};`}return`margin: ${v.spacing[n]} ${v.spacing[i]} ${v.spacing[a]} ${v.spacing[r]};`},se=e=>{const n=I("position",e.position),i=I("top",e.top),a=I("right",e.right),r=I("bottom",e.bottom),o=I("left",e.left),l=I("z-index",e.zIndex);return`
|
|
2
2
|
${n}
|
|
3
3
|
${i}
|
|
4
4
|
${a}
|
|
5
5
|
${r}
|
|
6
6
|
${o}
|
|
7
7
|
${l}
|
|
8
|
-
`},
|
|
8
|
+
`},le=e=>{const n=I("border",e.border),i=I("border-top",e.borderTop),a=I("border-right",e.borderRight),r=I("border-bottom",e.borderBottom),o=I("border-left",e.borderLeft),l=I("border-color",e.borderColor),c=I("border-radius",e.borderRadius);return`
|
|
9
9
|
${n}
|
|
10
10
|
${i}
|
|
11
11
|
${a}
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
${o}
|
|
14
14
|
${l}
|
|
15
15
|
${c}
|
|
16
|
-
`},
|
|
17
|
-
${
|
|
18
|
-
${
|
|
19
|
-
`:"",i=
|
|
16
|
+
`},Sn=e=>e.includes("x")?"overflow-x: auto;":"",zn=e=>e.includes("y")?"overflow-y: auto;":"",ce=e=>{const n=e.scroll?`
|
|
17
|
+
${Sn(e.scroll)}
|
|
18
|
+
${zn(e.scroll)}
|
|
19
|
+
`:"",i=I("visibility",e.visibility),a=I("display",e.display),r=I("height",e.height),o=I("width",e.width),l=I("max-height",e.maxHeight),c=I("max-width",e.maxWidth),d=I("min-height",e.minHeight),p=I("min-width",e.minWidth),u=I("box-shadow",e.shadow?v.shadows[e.shadow]:void 0),x=I("gap",e.gap===void 0?void 0:v.spacing[e.gap]),f=I("background-color",e.bgColor),h=I("background",e.bgGradient),y=I("flex-direction",e.flexDirection),$=I("flex-grow",e.flexGrow),m=I("justify-content",e.justify),w=I("justify-self",e.justifySelf),j=I("align-items",e.alignItems),C=I("align-self",e.alignSelf),z=I("flex-wrap",e.wrap);return`
|
|
20
20
|
${n}
|
|
21
21
|
${i}
|
|
22
22
|
${a}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
${l}
|
|
26
26
|
${c}
|
|
27
27
|
${d}
|
|
28
|
-
${
|
|
28
|
+
${p}
|
|
29
29
|
${u}
|
|
30
30
|
${f}
|
|
31
31
|
${h}
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
${m}
|
|
36
36
|
${w}
|
|
37
37
|
${j}
|
|
38
|
-
${
|
|
38
|
+
${C}
|
|
39
39
|
${z}
|
|
40
|
-
`},
|
|
40
|
+
`},de=e=>{const n=I("color",e.color),i=I("font-family",e.fontFamily),a=I("font-size",e.fontSize),r=I("font-weight",e.fontWeight),o=I("line-spacing",e.letterSpacing),l=I("line-height",e.lineSpacing),c=I("text-align",e.textAlign),d=I("text-decoration",e.textDecoration),p=I("text-overflow",e.textOverflow),u=I("white-space",e.whiteSpace),x=I("word-break",e.wordBreak),f=I("word-wrap",e.wordWrap);return`
|
|
41
41
|
${n}
|
|
42
42
|
${i}
|
|
43
43
|
${a}
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
${l}
|
|
47
47
|
${c}
|
|
48
48
|
${d}
|
|
49
|
-
${
|
|
49
|
+
${p}
|
|
50
50
|
${u}
|
|
51
51
|
${x}
|
|
52
52
|
${f}
|
|
53
|
-
`},
|
|
53
|
+
`},pe=e=>{const n=I("cursor",e.cursor),i=I("border-color",e.borderColorHover),a=I("background-color",e.bgColorHover),r=I("box-shadow",e.shadowHover===void 0?void 0:v.shadows[e.shadowHover]),o=I("transition",e.transition);return`
|
|
54
54
|
${n}
|
|
55
55
|
|
|
56
56
|
&:hover {
|
|
@@ -59,39 +59,39 @@
|
|
|
59
59
|
${a}
|
|
60
60
|
${r}
|
|
61
61
|
}
|
|
62
|
-
`},
|
|
62
|
+
`},ge=()=>({shouldForwardProp:e=>!rt.includes(e)}),Q=s.dt.div.withConfig(ge())`
|
|
63
|
+
${re}
|
|
63
64
|
${oe}
|
|
64
65
|
${se}
|
|
65
|
-
${
|
|
66
|
+
${ce}
|
|
66
67
|
${de}
|
|
68
|
+
${le}
|
|
67
69
|
${pe}
|
|
68
|
-
|
|
69
|
-
${
|
|
70
|
-
`,Ae=s.dt.button.withConfig(ue())`
|
|
70
|
+
`,Ae=s.dt.button.withConfig(ge())`
|
|
71
|
+
${re}
|
|
71
72
|
${oe}
|
|
72
73
|
${se}
|
|
73
|
-
${
|
|
74
|
+
${ce}
|
|
74
75
|
${de}
|
|
76
|
+
${le}
|
|
75
77
|
${pe}
|
|
76
|
-
|
|
77
|
-
${
|
|
78
|
-
`,He=s.dt.p.withConfig(ue())`
|
|
78
|
+
`,He=s.dt.p.withConfig(ge())`
|
|
79
|
+
${re}
|
|
79
80
|
${oe}
|
|
80
81
|
${se}
|
|
81
|
-
${
|
|
82
|
+
${ce}
|
|
82
83
|
${de}
|
|
84
|
+
${le}
|
|
83
85
|
${pe}
|
|
84
|
-
|
|
85
|
-
${
|
|
86
|
-
`,at=s.dt.span.withConfig(ue())`
|
|
86
|
+
`,ot=s.dt.span.withConfig(ge())`
|
|
87
|
+
${re}
|
|
87
88
|
${oe}
|
|
88
89
|
${se}
|
|
89
|
-
${
|
|
90
|
+
${ce}
|
|
90
91
|
${de}
|
|
92
|
+
${le}
|
|
91
93
|
${pe}
|
|
92
|
-
|
|
93
|
-
${ge}
|
|
94
|
-
`,vn=s.dt(Q)`
|
|
94
|
+
`,In=s.dt(Q)`
|
|
95
95
|
${({theme:e,$center:n=!1,$styleMd:i,$styleSm:a})=>`
|
|
96
96
|
${n?"margin: auto;":""}
|
|
97
97
|
scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
|
|
@@ -108,13 +108,13 @@
|
|
|
108
108
|
${a};
|
|
109
109
|
}
|
|
110
110
|
`}
|
|
111
|
-
`,b=
|
|
112
|
-
${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[800],$display:a="block",$fontFamily:r=e.typography.type.primary,$fontWeight:o="bold",$letterSpacing:l=0,$lineSpacing:c=1.5,$lineSpacingSm:d,$size:
|
|
111
|
+
`,b=g.forwardRef(function({as:n="div",center:i,children:a,id:r,onHover:o,onLeave:l,styleMd:c,styleSm:d,...p},u){return t.jsx(In,{$center:i,$styleMd:c,$styleSm:d,as:n,id:r,onMouseLeave:l,onMouseOver:o,ref:u,...p,children:a})}),Tn=s.dt(He)`
|
|
112
|
+
${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[800],$display:a="block",$fontFamily:r=e.typography.type.primary,$fontWeight:o="bold",$letterSpacing:l=0,$lineSpacing:c=1.5,$lineSpacingSm:d,$size:p,$sizeMd:u,$sizeSm:x,$textFill:f="unset",$wordBreak:h="normal"})=>`
|
|
113
113
|
background: ${n};
|
|
114
114
|
color: ${i};
|
|
115
115
|
display: ${a};
|
|
116
116
|
font-family: ${r};
|
|
117
|
-
font-size: ${e.typography.heading[
|
|
117
|
+
font-size: ${e.typography.heading[p]};
|
|
118
118
|
font-weight: ${e.typography.weight[o]};
|
|
119
119
|
letter-spacing: ${l};
|
|
120
120
|
line-height: ${e.spacing[c]};
|
|
@@ -128,21 +128,21 @@
|
|
|
128
128
|
and (min-width: ${e.breakpoints.mobile})
|
|
129
129
|
and (max-width: ${e.breakpoints.tablet})
|
|
130
130
|
{
|
|
131
|
-
font-size: ${e.typography.heading[u??
|
|
131
|
+
font-size: ${e.typography.heading[u??p]};
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
135
|
-
font-size: ${e.typography.heading[x??
|
|
135
|
+
font-size: ${e.typography.heading[x??p]};
|
|
136
136
|
line-height: ${e.spacing[d??c]};
|
|
137
137
|
}
|
|
138
138
|
`}
|
|
139
|
-
`,
|
|
140
|
-
${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[600],$display:a="block",$fontFamily:r=e.typography.type.primary,$fontWeight:o="regular",$letterSpacing:l=0,$lineSpacing:c=1.25,$lineSpacingSm:d,$size:
|
|
139
|
+
`,st=s.dt(He)`
|
|
140
|
+
${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[600],$display:a="block",$fontFamily:r=e.typography.type.primary,$fontWeight:o="regular",$letterSpacing:l=0,$lineSpacing:c=1.25,$lineSpacingSm:d,$size:p,$sizeMd:u,$sizeSm:x,$textFill:f="unset",$wordBreak:h="normal"})=>`
|
|
141
141
|
background: ${n};
|
|
142
142
|
color: ${i};
|
|
143
143
|
display: ${a};
|
|
144
144
|
font-family: ${r};
|
|
145
|
-
font-size: ${e.typography.text[
|
|
145
|
+
font-size: ${e.typography.text[p]};
|
|
146
146
|
font-weight: ${e.typography.weight[o]};
|
|
147
147
|
letter-spacing: ${l};
|
|
148
148
|
line-height: ${e.spacing[c]};
|
|
@@ -156,15 +156,15 @@
|
|
|
156
156
|
and (min-width: ${e.breakpoints.mobile})
|
|
157
157
|
and (max-width: ${e.breakpoints.tablet})
|
|
158
158
|
{
|
|
159
|
-
font-size: ${e.typography.text[u??
|
|
159
|
+
font-size: ${e.typography.text[u??p]};
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
163
|
-
font-size: ${e.typography.text[x??
|
|
163
|
+
font-size: ${e.typography.text[x??p]};
|
|
164
164
|
line-height: ${e.spacing[d??c]};
|
|
165
165
|
}
|
|
166
166
|
`}
|
|
167
|
-
`,
|
|
167
|
+
`,Nn=s.dt.span`
|
|
168
168
|
${({theme:e,$color:n=e.palette.gray[600],$content:i=void 0,$display:a="inline",$fontWeight:r="regular",$size:o,$lineSpacing:l=1.25})=>`
|
|
169
169
|
color: ${n};
|
|
170
170
|
display: ${a};
|
|
@@ -176,11 +176,11 @@
|
|
|
176
176
|
|
|
177
177
|
${i===void 0?"":`&::after { content: "${i}"; }`}
|
|
178
178
|
`}
|
|
179
|
-
`,
|
|
179
|
+
`,L=g.forwardRef(function({bgGradient:n,children:i,className:a,color:r,display:o,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:p,lineSpacingSm:u,size:x,sizeMd:f,sizeSm:h,textFill:y,wordBreak:$,...m},w){return t.jsx(Tn,{$bgGradient:n,$color:r,$display:o,$fontFamily:l,$fontWeight:c,$letterSpacing:d,$lineSpacing:p,$lineSpacingSm:u,$size:x,$sizeMd:f,$sizeSm:h,$textFill:y,$wordBreak:$,className:a,ref:w,...m,children:i})}),ye=g.forwardRef(function({children:n,color:i,content:a,display:r,fontFamily:o,fontWeight:l,letterSpacing:c,lineSpacing:d,lineSpacingSm:p,size:u,sizeMd:x,sizeSm:f,...h},y){return t.jsx(Nn,{$color:i,$content:a,$display:r,$fontFamily:o,$fontWeight:l,$letterSpacing:c,$lineSpacing:d,$lineSpacingSm:p,$size:u,$sizeMd:x,$sizeSm:f,ref:y,...h,children:n})}),k=g.forwardRef(function({bgGradient:n,children:i,className:a,color:r,display:o,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:p,lineSpacingSm:u,size:x,sizeMd:f,sizeSm:h,textFill:y,wordBreak:$,...m},w){return t.jsx(st,{$bgGradient:n,$color:r,$display:o,$fontFamily:l,$fontWeight:c,$letterSpacing:d,$lineSpacing:p,$lineSpacingSm:u,$size:x,$sizeMd:f,$sizeSm:h,$textFill:y,$wordBreak:$,className:a,ref:w,...m,children:i})}),lt=({item:e})=>t.jsxs(b,{display:"block",id:`panel-${e.title}`,padding:[.75,.75,.75,.75],children:[e.description?t.jsx(k,{mb:e.extraElement?.5:void 0,size:"sm",children:e.description}):void 0,e.extraElement?t.jsx(b,{children:e.extraElement}):void 0]}),En={xl:"96px",lg:"64px",md:"32px",sm:"24px",xs:"16px",xxs:"12px",xxss:"10px"},Rn=s.dt(ot)`
|
|
180
180
|
${({$clickable:e,$color:n="inherit",$disabled:i=!1,$hoverColor:a,$rotation:r,$size:o,$secondaryColor:l})=>{const c=a?"":"brightness(50%)",d=a??"";return`
|
|
181
181
|
color: ${n};
|
|
182
182
|
cursor: ${e?"pointer":"inherit"};
|
|
183
|
-
font-size: ${
|
|
183
|
+
font-size: ${En[o]};
|
|
184
184
|
line-height: 0;
|
|
185
185
|
vertical-align: middle;
|
|
186
186
|
pointer-events: inherit;
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
&:hover:not([disabled]) {
|
|
213
213
|
transform: scale(1.2);
|
|
214
214
|
}
|
|
215
|
-
`;const S=
|
|
215
|
+
`;const S=g.forwardRef(function({clickable:n,disabled:i,hoverColor:a,icon:r,iconClass:o="",iconColor:l,iconMask:c,iconSize:d,iconTransform:p,iconType:u="fa-solid",onClick:x,rotation:f,spanClass:h,secondaryColor:y,...$},m){return t.jsx(Rn,{$clickable:n,$color:l,$disabled:i,$hoverColor:a,$rotation:f,$secondaryColor:y,$size:d,className:h,"data-testid":`${r}-icon`,onClick:x,ref:m,...$,children:t.jsx("i",{className:`${u} fa-${r} ${o}`,...c!==void 0?{"data-fa-mask":c}:{},...p!==void 0?{"data-fa-transform":p}:{}})},`${u}-${r}`)}),Dn=g.forwardRef(function({aligned:n="end",items:i,bgColor:a},r){const o=s.nt(),[l,c]=g.useState(!1),[d,p]=g.useState(-1),u=g.useCallback(x=>()=>{p(x),c(x===d?f=>!f:!0)},[d]);return t.jsx(b,{ref:r,children:i.map((x,f)=>{const h=f===d&&l;return t.jsxs(b,{bgColor:a??o.palette.white,children:[t.jsx(b,{"aria-controls":`panel-${x.title}`,"aria-expanded":l,"aria-label":x.title,as:"button",bgColor:a??o.palette.white,bgColorHover:o.palette.gray[100],borderBottom:h||f===i.length-1?"1px solid":void 0,borderColor:o.palette.gray[200],borderTop:"1px solid",cursor:"pointer",display:"flex",onClick:u(f),padding:[.75,.75,.75,.75],width:"100%",children:t.jsxs(b,{as:"summary",display:"flex",flexDirection:n==="end"?"row":"row-reverse",gap:.75,justify:"space-between",width:"100%",children:[t.jsx(k,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",sizeSm:"sm",textAlign:"start",children:x.title}),t.jsx(S,{icon:h?"chevron-up":"chevron-down",iconColor:o.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]})}),h&&t.jsx(lt,{item:x})]},x.title)})})}),Fn=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:Pn}=G(e=>({error:`
|
|
216
216
|
background: ${e.palette.error[50]};
|
|
217
217
|
border: 1px solid ${e.palette.error[500]};
|
|
218
218
|
color: ${e.palette.error[700]};
|
|
@@ -264,7 +264,7 @@
|
|
|
264
264
|
color: ${e.palette.warning[700]};
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
|
-
`})),
|
|
267
|
+
`})),Ln=s.dt.div`
|
|
268
268
|
${({theme:e,$variant:n})=>`
|
|
269
269
|
background: transparent;
|
|
270
270
|
align-items: center;
|
|
@@ -284,12 +284,12 @@
|
|
|
284
284
|
background-color: transparent;
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
-
${
|
|
287
|
+
${Pn(e,n??"error")}
|
|
288
288
|
`}
|
|
289
|
-
`,
|
|
289
|
+
`,Wn=s.dt.div`
|
|
290
290
|
padding-right: 4px;
|
|
291
291
|
width: 100%;
|
|
292
|
-
`,{getVariant:
|
|
292
|
+
`,{getVariant:Bn}=G(e=>({ghost:`
|
|
293
293
|
background: transparent;
|
|
294
294
|
border: none;
|
|
295
295
|
color: ${e.palette.gray[800]};
|
|
@@ -363,7 +363,7 @@
|
|
|
363
363
|
background-color: ${e.palette.primary[500]};
|
|
364
364
|
color: ${e.palette.white};
|
|
365
365
|
}
|
|
366
|
-
`})),
|
|
366
|
+
`})),ct=s.dt(Ae)`
|
|
367
367
|
${({theme:e,$variant:n})=>`
|
|
368
368
|
align-items: center;
|
|
369
369
|
border-radius: var(--btn-spacing);
|
|
@@ -385,9 +385,9 @@
|
|
|
385
385
|
${n!=="link"?`--btn-padding-y: ${e.spacing[1]}`:""};
|
|
386
386
|
}
|
|
387
387
|
|
|
388
|
-
${
|
|
388
|
+
${Bn(e,n??"primary")}
|
|
389
389
|
`}
|
|
390
|
-
`,
|
|
390
|
+
`,On=s.dt(ct)`
|
|
391
391
|
${({theme:e,$borderRadius:n="4px",$px:i=.5,$py:a=.5})=>`
|
|
392
392
|
--btn-spacing: ${n};
|
|
393
393
|
--btn-padding-x: ${e.spacing[i]};
|
|
@@ -401,7 +401,7 @@
|
|
|
401
401
|
margin: 0 !important;
|
|
402
402
|
}
|
|
403
403
|
`}
|
|
404
|
-
`,
|
|
404
|
+
`,Mn=s.dt(Q)``,An=s.dt.div`
|
|
405
405
|
${({theme:e,$maxWidth:n="320px"})=>`
|
|
406
406
|
> :is(.react-tooltip, .react-tooltip__show, .react-tooltip__closing) {
|
|
407
407
|
background-color: ${e.palette.gray[700]};
|
|
@@ -414,7 +414,7 @@
|
|
|
414
414
|
--rt-opacity: 1;
|
|
415
415
|
}
|
|
416
416
|
`}
|
|
417
|
-
`,U=
|
|
417
|
+
`,U=g.forwardRef(function({children:n,disabled:i=!1,display:a="inline-block",effect:r="solid",icon:o,iconColor:l,iconSize:c,id:d,maxWidth:p,nodeTip:u,place:x="bottom",tip:f="",title:h="",hide:y=f===""&&h===""&&u===void 0,...$},m){const w=s.nt(),[j,C]=g.useState(!1),z=g.useRef(null),T=g.useCallback(()=>{z.current!==null&&clearTimeout(z.current),z.current=setTimeout(()=>{C(!0)},100)},[]),P=g.useCallback(()=>{z.current!==null&&clearTimeout(z.current),z.current=setTimeout(()=>{C(!1)},100)},[]);return i?t.jsx(g.StrictMode,{children:n}):t.jsxs(Mn,{"data-tooltip-id":d,display:a,onMouseLeave:P,onMouseMove:T,ref:m,role:"tooltip",...$,children:[o?t.jsx(S,{clickable:!0,disabled:i,icon:o,iconColor:l,iconSize:c??"xxs",iconType:j?"fa-solid":"fa-light"}):n,V.createPortal(t.jsx(An,{$maxWidth:p,children:t.jsxs(s.M,{delayShow:500,disableStyleInjection:"core",float:r==="float"?!0:void 0,globalCloseEvents:{resize:!0},hidden:y||!j,id:d,middlewares:[s.flip({fallbackAxisSideDirection:"start"}),s.offset({mainAxis:10})],noArrow:r==="float",place:x,children:[s.lodashExports.isEmpty(h)?void 0:t.jsx(k,{color:w.palette.white,fontWeight:"bold",lineSpacing:1.5,size:"xs",textAlign:"start",wordWrap:"break-word",children:h}),s.lodashExports.isEmpty(f)?void 0:t.jsx(k,{color:w.palette.gray[100],lineSpacing:1.5,size:"xs",textAlign:"start",wordWrap:"break-word",children:f}),s.lodashExports.isEmpty(u)?void 0:u]})}),document.getElementById("root")??document.body)]})}),B=g.forwardRef(function({borderRadius:n,disabled:i,icon:a,iconColor:r,iconSize:o="xxs",iconTransform:l,iconType:c,id:d,justify:p="center",onClick:u,px:x,py:f,type:h="button",tooltip:y,tooltipPlace:$,value:m,variant:w="primary",...j},C){const z=t.jsx(On,{$borderRadius:n,$px:x,$py:f,$variant:w,"aria-disabled":i,"aria-label":d,borderRadius:n,disabled:i,id:d,justify:p,onClick:u,ref:C,type:h,value:m,...j,children:t.jsx(S,{clickable:!1,icon:a,iconColor:r,iconSize:o,iconTransform:l,iconType:c})}),P=(h+(w??"")+(d??a)).replace(/ /u,"_");return y===void 0?z:t.jsx(U,{id:`${P}-tooltip`,place:$,tip:y,children:z})}),Hn=g.forwardRef(function({autoHide:n=!1,children:i,closable:a=!1,onTimeOut:r,show:o=!0,time:l=8,variant:c="error",id:d,...p},u){const[x,f]=g.useState(o),h=g.useCallback(()=>{f(!1)},[]);return g.useEffect(()=>{const y=setTimeout(()=>{r==null||r(!0),n&&h()},l*1e3);return()=>{clearTimeout(y)}},[n,h,l,r]),g.useEffect(()=>{f(o)},[o,f]),t.jsx(b,{display:x?"block":"none",ref:u,role:"alert",...p,children:t.jsxs(Ln,{$variant:c,id:d,children:[t.jsx(S,{clickable:!1,icon:Fn(c),iconSize:"xs",iconType:"fa-light"}),t.jsx(Wn,{children:i}),a?t.jsx(B,{height:"fit-content",icon:"close",iconSize:"xs",iconType:"fa-light",onClick:h,px:.125,py:.125,variant:"ghost"}):void 0]})})}),{getVariant:_n}=G(e=>({default:`
|
|
418
418
|
background-color: ${e.palette.gray[200]};
|
|
419
419
|
color: ${e.palette.gray[800]};
|
|
420
420
|
`,error:`
|
|
@@ -489,7 +489,7 @@
|
|
|
489
489
|
background-color: ${e.palette.warning[400]};
|
|
490
490
|
color: ${e.palette.warning[700]};
|
|
491
491
|
}
|
|
492
|
-
`})),
|
|
492
|
+
`})),Vn=s.dt.span`
|
|
493
493
|
${({theme:e,$fontSize:n=e.typography.text.xs,$variant:i})=>`
|
|
494
494
|
align-items: center;
|
|
495
495
|
border-radius: ${e.spacing[i==="technique"?1:.25]};
|
|
@@ -510,9 +510,9 @@
|
|
|
510
510
|
display: flex;
|
|
511
511
|
}
|
|
512
512
|
|
|
513
|
-
${
|
|
513
|
+
${_n(e,i)}
|
|
514
514
|
`}
|
|
515
|
-
`,{getVariant:
|
|
515
|
+
`,{getVariant:Gn}=G(e=>({highRelevance:`
|
|
516
516
|
color: ${e.palette.primary[500]};
|
|
517
517
|
|
|
518
518
|
&:hover:not([disabled]) {
|
|
@@ -524,7 +524,7 @@
|
|
|
524
524
|
&:hover:not([disabled]) {
|
|
525
525
|
color: ${e.palette.gray[500]};
|
|
526
526
|
}
|
|
527
|
-
`})),
|
|
527
|
+
`})),dt=s.lt`
|
|
528
528
|
${({theme:e,$color:n,$variant:i})=>`
|
|
529
529
|
align-items: center;
|
|
530
530
|
cursor: pointer;
|
|
@@ -546,13 +546,13 @@
|
|
|
546
546
|
text-decoration: none;
|
|
547
547
|
}
|
|
548
548
|
|
|
549
|
-
${n??
|
|
549
|
+
${n??Gn(e,i)}
|
|
550
550
|
`}
|
|
551
|
-
`,
|
|
552
|
-
${
|
|
553
|
-
`,
|
|
554
|
-
${
|
|
555
|
-
`,X=({children:e,color:n,download:i,href:a,iconPosition:r="right",onClick:o,target:l,variant:c="lowRelevance"})=>{const d=a.startsWith("https://"),
|
|
551
|
+
`,Un=s.dt.a`
|
|
552
|
+
${dt}
|
|
553
|
+
`,Yn=s.dt(Ee.Link)`
|
|
554
|
+
${dt}
|
|
555
|
+
`,X=({children:e,color:n,download:i,href:a,iconPosition:r="right",onClick:o,target:l,variant:c="lowRelevance"})=>{const d=a.startsWith("https://"),p=t.jsx(S,{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(Un,{$color:n,$variant:c,download:i,href:a,onClick:o,rel:"nofollow noopener noreferrer",target:l??"_blank",children:[r==="left"?p:void 0,e,r==="right"?p:void 0]}):t.jsxs(Yn,{$variant:c,download:i,onClick:o,rel:"nofollow noopener noreferrer",target:l,to:a,children:[l!==void 0&&r==="left"?p:void 0,e,l!==void 0&&r==="right"?p:void 0]})},K=({disabled:e,icon:n,iconColor:i="inherit",iconType:a="fa-light",id:r="close-tag",filterValues:o="",fontSize:l,href:c,linkLabel:d,onClose:p,priority:u="default",tagTitle:x="",tagLabel:f,variant:h="default"})=>{const y=f.length>25&&s.lodashExports.isEmpty(x+o),$=`${f.slice(0,25)}...`;return t.jsxs(ye,{className:"gap-0.5",display:c===void 0?"initial":"flex",size:"sm",children:[t.jsxs(Vn,{$fontSize:l,$variant:h,className:u,children:[n&&t.jsx(S,{icon:n,iconColor:i,iconSize:"xxs",iconType:a}),t.jsxs("span",{children:[t.jsx("strong",{children:x}),t.jsx("span",{children:y?$:f}),t.jsx("strong",{children:o})]}),p?t.jsx(B,{disabled:e,icon:"xmark",iconSize:"xxs",iconType:"fa-light",id:r,onClick:p,px:.125,py:.125,variant:"ghost"}):void 0]}),c===void 0?void 0:t.jsx(X,{href:c,children:d})]})},Kn=(e,n=!0)=>{const i=window.open(e,n?void 0:"_self","noopener,noreferrer,");s.lodashExports.isObject(i)&&(i.opener=null)},R=g.forwardRef(function({children:n,disabled:i=!1,external:a=!1,href:r,id:o,icon:l,name:c,onClick:d,showArrow:p=!1,tag:u,type:x="button",tooltip:f,tooltipPlace:h="bottom",underline:y=!1,value:$,variant:m="primary",...w},j){const C=f!==void 0,z=`${o}-tooltip`,T=g.useCallback(()=>{r&&Kn(r,a)},[a,r]);return t.jsx(U,{disabled:!C,id:z,place:h,tip:f,children:t.jsxs(ct,{$variant:m,"aria-disabled":i,className:y?"underline":void 0,disabled:i,id:o,name:c,onClick:m==="link"?T:d,ref:j,type:x,value:$,...C?{"data-tooltip-id":z}:{},...w,children:[l!==void 0&&t.jsx(S,{icon:l,iconSize:"xs",iconType:"fa-light"}),n,(p||m==="link")&&t.jsx(S,{icon:"arrow-right",iconSize:"xs",iconType:"fa-light"}),u===void 0?null:t.jsx(K,{tagLabel:u,variant:"inactive"})]})})}),ke=({authorEmail:e,date:n,description:i,descriptionColor:a,id:r,title:o,titleColor:l,textAlign:c,textSpacing:d=0,tooltip:p})=>{const u=s.nt();return t.jsxs(b,{width:"100%",children:[typeof o=="string"?t.jsx(k,{color:l??u.palette.gray[800],fontWeight:"bold",mb:d,size:"sm",textAlign:c,wordBreak:"break-word",children:o}):o,t.jsxs(b,{alignItems:"start",display:"flex",flexDirection:"column",gap:.25,children:[i&&t.jsx(k,{color:a??u.palette.gray[800],fontWeight:i===void 0?"bold":"regular",size:"sm",textAlign:c,wordBreak:"break-word",children:i}),n&&t.jsx(k,{color:u.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`Date: ${n.split(" ")[0]}`}),e&&t.jsx(k,{color:u.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`$Author: ${e}`}),p&&t.jsx(U,{icon:"circle-info",id:r,tip:p})]})]})},Ze=s.dt(b).attrs(({...e})=>({display:"inline-block",position:"relative",...e}))`
|
|
556
556
|
& img {
|
|
557
557
|
display: block;
|
|
558
558
|
}
|
|
@@ -567,7 +567,7 @@
|
|
|
567
567
|
pointer-events: none;
|
|
568
568
|
${({$opacity:e=0})=>`background-color: rgba(0, 0, 0, ${e});`}
|
|
569
569
|
}
|
|
570
|
-
`,
|
|
570
|
+
`,qn=e=>{if(s._.isNil(e))return"";const n=e.split(".");return(n.length>1?s._.last(n):"").toLowerCase()},Xn=(e,n)=>s._.isUndefined(n)?!1:s._.includes(e,qn(n)),pt=({alt:e,fileType:n,width:i="100%",opacity:a=0,src:r,height:o="auto"})=>n==="video"||Xn(["webm"],r)?t.jsx(Ze,{$opacity:a,children:t.jsxs("video",{controls:!0,height:o,muted:!0,width:i,children:[t.jsx("source",{src:r,type:"video/webm"}),t.jsx(X,{href:r,iconPosition:"hidden",children:r})]})}):t.jsx(Ze,{$opacity:a,children:t.jsx("img",{alt:e,height:o,src:r,width:i})}),Zn=({alt:e,authorEmail:n,date:i,description:a,src:r,children:o,isEditing:l,onClick:c,title:d,hideDescription:p=!1,headerType:u="image",showMaximize:x=!0})=>{const f=s.nt(),[h,y]=g.useState(!1),$=g.useCallback(()=>{y(!0)},[]),m=g.useCallback(()=>{y(!1)},[]);return t.jsxs(b,{bgColor:"transparent",border:"1px solid transparent",borderColorHover:"black",borderRadius:f.spacing[.25],display:"flex",flexDirection:"column",gap:1,onHover:$,onLeave:m,padding:[.5,.5,.5,.5],width:"100%",children:[t.jsx(b,{cursor:l?"unset":"pointer",display:"inline-flex",justify:"center",onClick:c,position:"relative",width:"100%",children:o===void 0?t.jsxs(g.Fragment,{children:[t.jsx(pt,{alt:e,fileType:u,height:"147px",opacity:h?.3:0,src:r,width:"100%"}),x?t.jsx(b,{bottom:"10px",position:"absolute",right:"10px",children:t.jsx(B,{color:"white",icon:"arrows-maximize",iconSize:"xxs",iconType:"fa-light",variant:"secondary"})}):void 0]}):o}),p?null:t.jsx(ke,{authorEmail:n,date:i,description:a,descriptionColor:f.palette.gray[600],id:`${e}-card-header`,title:d})]})},Jn=s.dt.div`
|
|
571
571
|
${({theme:e,$align:n="center",$minWidth:i="auto",$minHeight:a="auto"})=>`
|
|
572
572
|
display: flex;
|
|
573
573
|
background-color: ${e.palette.white};
|
|
@@ -586,55 +586,7 @@
|
|
|
586
586
|
text-align: ${n};
|
|
587
587
|
}
|
|
588
588
|
`}
|
|
589
|
-
`,
|
|
590
|
-
${({theme:e})=>`
|
|
591
|
-
align-self: center;
|
|
592
|
-
background: ${e.palette.white};
|
|
593
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
594
|
-
border-radius: ${e.spacing[.25]};
|
|
595
|
-
box-shadow: ${e.shadows.md};
|
|
596
|
-
list-style: none;
|
|
597
|
-
max-height: 200px;
|
|
598
|
-
min-width: 240px;
|
|
599
|
-
overflow: hidden auto;
|
|
600
|
-
scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
|
|
601
|
-
scroll-padding: ${e.spacing[.5]};
|
|
602
|
-
width: 95%;
|
|
603
|
-
`}
|
|
604
|
-
`,Zn=s.dt.li`
|
|
605
|
-
${({theme:e})=>`
|
|
606
|
-
align-items: center;
|
|
607
|
-
color: ${e.palette.gray[800]};
|
|
608
|
-
cursor: pointer;
|
|
609
|
-
display: flex;
|
|
610
|
-
font-family: ${e.typography.type.primary};
|
|
611
|
-
font-size: ${e.typography.text.sm};
|
|
612
|
-
gap: ${e.spacing[.5]};
|
|
613
|
-
justify-content: space-between;
|
|
614
|
-
line-height: ${e.spacing[1.25]};
|
|
615
|
-
padding: ${e.spacing[.25]} ${e.spacing[1]};
|
|
616
|
-
overflow: hidden;
|
|
617
|
-
text-overflow: ellipsis;
|
|
618
|
-
white-space: nowrap;
|
|
619
|
-
|
|
620
|
-
span {
|
|
621
|
-
color: ${e.palette.gray[700]};
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
&:hover {
|
|
625
|
-
background: ${e.palette.gray[100]};
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
&.selected {
|
|
629
|
-
background: ${e.palette.gray[200]};
|
|
630
|
-
}
|
|
631
|
-
|
|
632
|
-
&.disabled {
|
|
633
|
-
color: ${e.palette.gray[400]};
|
|
634
|
-
cursor: not-allowed;
|
|
635
|
-
}
|
|
636
|
-
`}
|
|
637
|
-
`,dt=({item:e,state:n})=>{const i=p.useRef(null),{optionProps:a,isSelected:r,isFocused:o,isDisabled:l}=s.$293f70390ea03370$export$497855f14858aa34({key:e.key},n,i),c=[r?"selected":"",o?"focused":"",l?"disabled":""].join(" ");return t.jsxs(Zn,{...a,className:c,ref:i,children:[e.rendered,r?t.jsx(S,{icon:"check",iconSize:"xxs",iconType:"fa-light"}):void 0]})},_e=({htmlFor:e,label:n,required:i,tooltip:a,weight:r="normal"})=>{const o=s.nt(),l=`${e}-tooltip`,c=a!==void 0&&!s.lodashExports.isEmpty(a);return t.jsxs("label",{className:`flex font-${r} gap-1 w-full`,htmlFor:e,children:[n,i&&t.jsx(S,{icon:"asterisk",iconColor:o.palette.error[500],iconSize:"xxss"}),c?t.jsx(U,{display:"inline-flex",icon:"circle-info",id:l,place:"top",tip:a}):null]})},Jn=s.dt.div`
|
|
589
|
+
`,_e=({htmlFor:e,label:n,required:i,tooltip:a,weight:r="normal"})=>{const o=s.nt(),l=`${e}-tooltip`,c=a!==void 0&&!s.lodashExports.isEmpty(a);return t.jsxs("label",{className:`flex font-${r} gap-1 w-full`,htmlFor:e,children:[n,i&&t.jsx(S,{icon:"asterisk",iconColor:o.palette.error[500],iconSize:"xxss"}),c?t.jsx(U,{display:"inline-flex",icon:"circle-info",id:l,place:"top",tip:a}):null]})},Qn=s.dt.div`
|
|
638
590
|
${({theme:e})=>`
|
|
639
591
|
align-items: flex-start;
|
|
640
592
|
display: inline-flex;
|
|
@@ -672,7 +624,7 @@
|
|
|
672
624
|
line-height: ${e.spacing[1.25]};
|
|
673
625
|
}
|
|
674
626
|
`}
|
|
675
|
-
`,
|
|
627
|
+
`,q=s.dt.div`
|
|
676
628
|
${({theme:e,$overflowX:n})=>`
|
|
677
629
|
align-items: center;
|
|
678
630
|
display: flex;
|
|
@@ -773,7 +725,55 @@
|
|
|
773
725
|
border: 1px solid ${e.palette.gray[600]};
|
|
774
726
|
}
|
|
775
727
|
`}
|
|
776
|
-
`,
|
|
728
|
+
`,M=({children:e,error:n,helpLink:i,helpLinkText:a="Link here",helpText:r,htmlFor:o,label:l,maxLength:c,required:d,tooltip:p,value:u,weight:x})=>{const f=s.nt(),h=u?u.length:0;return t.jsxs(Qn,{children:[l===void 0?void 0:t.jsx(_e,{htmlFor:o,label:l,required:d,tooltip:p,weight:x}),e,n||c?t.jsxs(b,{display:"flex",justify:n===void 0?"end":"space-between",width:"100%",children:[n&&t.jsx(k,{className:"error-msg",color:f.palette.error[500],display:"block",lineSpacing:1,size:"sm",children:n}),c&&t.jsx(K,{priority:"low",tagLabel:`${h}/${c}`,variant:"error"})]}):void 0,r||i?t.jsxs(b,{alignItems:"center",display:"flex",gap:.25,width:"100%",children:[r&&t.jsxs(t.Fragment,{children:[t.jsx(S,{icon:"circle-info",iconColor:f.palette.gray[400],iconSize:"xxs",iconType:"fa-light"}),t.jsx(k,{color:f.palette.gray[400],display:"inline-block",size:"sm",children:r})]}),i&&t.jsx(X,{href:i,children:a})]}):void 0]})},ue=({className:e,children:n,isFilter:i=!1,popoverRef:a,state:r,triggerRef:o,...l})=>{var x;const c=g.useRef(null),d=(x=o==null?void 0:o.current)==null?void 0:x.getBoundingClientRect(),{popoverProps:p}=s.$f2f8a6077418541e$export$542a6fd13ac93354({...l,popoverRef:a??c,triggerRef:o,isNonModal:a?!0:void 0},r),u=g.useCallback(f=>{f.preventDefault()},[]);return t.jsx(s.$337b884510726a0d$export$c6fdb837b070b4ff,{children:t.jsx("div",{...p,className:e,onPointerDown:i?u:void 0,ref:a??c,style:{...p.style,...e==="dropdown"?{display:"flex",justifyContent:"center",width:d==null?void 0:d.width}:{}},children:n})})},ei=s.dt.ul`
|
|
729
|
+
${({theme:e})=>`
|
|
730
|
+
align-self: center;
|
|
731
|
+
background: ${e.palette.white};
|
|
732
|
+
border: 1px solid ${e.palette.gray[200]};
|
|
733
|
+
border-radius: ${e.spacing[.25]};
|
|
734
|
+
box-shadow: ${e.shadows.md};
|
|
735
|
+
list-style: none;
|
|
736
|
+
max-height: 200px;
|
|
737
|
+
min-width: 240px;
|
|
738
|
+
overflow: hidden auto;
|
|
739
|
+
scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
|
|
740
|
+
scroll-padding: ${e.spacing[.5]};
|
|
741
|
+
width: 95%;
|
|
742
|
+
`}
|
|
743
|
+
`,ti=s.dt.li`
|
|
744
|
+
${({theme:e})=>`
|
|
745
|
+
align-items: center;
|
|
746
|
+
color: ${e.palette.gray[800]};
|
|
747
|
+
cursor: pointer;
|
|
748
|
+
display: flex;
|
|
749
|
+
font-family: ${e.typography.type.primary};
|
|
750
|
+
font-size: ${e.typography.text.sm};
|
|
751
|
+
gap: ${e.spacing[.5]};
|
|
752
|
+
justify-content: space-between;
|
|
753
|
+
line-height: ${e.spacing[1.25]};
|
|
754
|
+
padding: ${e.spacing[.25]} ${e.spacing[1]};
|
|
755
|
+
overflow: hidden;
|
|
756
|
+
text-overflow: ellipsis;
|
|
757
|
+
white-space: nowrap;
|
|
758
|
+
|
|
759
|
+
span {
|
|
760
|
+
color: ${e.palette.gray[700]};
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
&:hover {
|
|
764
|
+
background: ${e.palette.gray[100]};
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
&.selected {
|
|
768
|
+
background: ${e.palette.gray[200]};
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
&.disabled {
|
|
772
|
+
color: ${e.palette.gray[400]};
|
|
773
|
+
cursor: not-allowed;
|
|
774
|
+
}
|
|
775
|
+
`}
|
|
776
|
+
`,gt=({item:e,state:n})=>{const i=g.useRef(null),{optionProps:a,isSelected:r,isFocused:o,isDisabled:l}=s.$293f70390ea03370$export$497855f14858aa34({key:e.key},n,i),c=[r?"selected":"",o?"focused":"",l?"disabled":""].join(" ");return t.jsxs(ti,{...a,className:c,ref:i,children:[e.rendered,r?t.jsx(S,{icon:"check",iconSize:"xxs",iconType:"fa-light"}):void 0]})},Re=({field:e,disabled:n=!1,error:i,helpLink:a,helpLinkText:r,helpText:o,label:l,loadingItems:c,name:d,items:p,onBlur:u,onChange:x,placeholder:f,required:h,tooltip:y,value:$,weight:m})=>{var Xe;const w=s.nt(),j=(e==null?void 0:e.value)??$,[C,z]=g.useState(((Xe=p.find(D=>D.value===j))==null?void 0:Xe.name)??""),[T,P]=g.useState(j),[O,F]=g.useState(p),[E,N]=g.useState(!1),{contains:W}=s.$bb77f239b46e8c72$export$3274cf84b703fff({sensitivity:"base"}),H=g.useRef(null),ee=g.useRef(null),Te=g.useRef(null),Ye=g.useRef(null),Ke=g.useRef(null),tn=g.useMemo(()=>p.map(D=>W(D.name,C)||E?t.jsx(s.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,{children:D.name},D.value):null),[W,C,p,E]),nn=g.useCallback(D=>{z(D),D===""?N(!0):(N(!1),P(A=>{const he=D===""?"":A;return e&&e.onChange(he),x&&x(D),he}),F(p.filter(A=>W(A.name,D))))},[W,p,e,x]),an=g.useCallback(D=>{var A;z(((A=p.find(he=>he.value===D))==null?void 0:A.name)??""),P(D?String(D):""),e&&e.onChange(D),x&&x(D?String(D):""),F(p)},[p,e,x]),qe=g.useCallback(D=>{D.key==="Enter"&&D.preventDefault(),N(!1)},[]),rn=g.useCallback(()=>{u&&u(),e&&e.onBlur()},[e,u]),Y=s.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({allowsEmptyCollection:!0,inputValue:C,items:O,menuTrigger:"focus",shouldCloseOnBlur:!0,selectedKey:T,onBlur:rn,onInputChange:nn,onKeyDown:qe,onKeyUp:()=>{N(!0)},onOpenChange(D,A){N(D&&(A==="manual"||A==="focus"))},onSelectionChange:an,children:tn}),{buttonProps:on,inputProps:sn,listBoxProps:ln}=s.$c350ade66beef0af$export$8c18d1b4f7232bbf({inputValue:C,buttonRef:ee,id:d,inputRef:H,label:l,listBoxRef:Te,name:d,placeholder:f,popoverRef:Ke},Y),{listBoxProps:cn}=s.$c132121280ec012d$export$50eacbbf140a3141(ln,Y,Te),{buttonProps:dn}=s.$701a24aa0da5b062$export$ea18c227d4417cc3(on,ee);return g.useEffect(()=>{var D;c===!1&&z(((D=p.find(A=>A.value===j))==null?void 0:D.name)??"")},[j,p,c]),t.jsxs(M,{error:i,helpLink:a,helpLinkText:r,helpText:o,htmlFor:d,label:l,required:h,tooltip:y,weight:m,children:[t.jsxs(q,{className:`${n?"disabled":""} ${i?"error":""}`,ref:Ye,children:[t.jsx("input",{...sn,"aria-invalid":i?"true":"false","aria-label":d,onKeyDown:qe,ref:H}),i?t.jsx(S,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:w.palette.error[500],iconSize:"xs"}):void 0,t.jsx(B,{...dn,className:"action",icon:Y.isOpen?"chevron-up":"chevron-down",iconColor:w.palette.gray[400],iconSize:"xxs",iconType:"fa-light",px:.125,py:.125,ref:ee,type:"button",variant:"ghost"})]}),Y.isOpen&&Y.collection.size>0&&!n?t.jsx(ue,{className:"dropdown",offset:4,placement:"bottom start",popoverRef:Ke,state:Y,triggerRef:Ye,children:t.jsx(ei,{...cn,ref:Te,children:[...Y.collection].map(D=>t.jsx(gt,{item:D,state:Y},D.key))})}):null]})},ni=({control:e,disabled:n=!1,error:i,helpLink:a,helpLinkText:r,helpText:o,label:l,loadingItems:c,name:d,items:p,onBlur:u,onChange:x,placeholder:f,required:h,tooltip:y,value:$,weight:m})=>e?t.jsx(s.Controller,{control:e,name:d,render:({field:w})=>t.jsx(Re,{disabled:n,error:i,field:w,helpLink:a,helpLinkText:r,helpText:o,items:p,label:l,loadingItems:c,name:d,onBlur:u,onChange:x,placeholder:f,required:h,tooltip:y,value:$,weight:m}),rules:{required:h}}):t.jsx(Re,{disabled:n,error:i,helpLink:a,helpLinkText:r,helpText:o,items:p,label:l,loadingItems:c,name:d,onBlur:u,onChange:x,placeholder:f,required:h,tooltip:y,value:$,weight:m}),ii=s.dt.div`
|
|
777
777
|
${({theme:e})=>`
|
|
778
778
|
align-items: center;
|
|
779
779
|
color: ${e.palette.gray[800]};
|
|
@@ -794,7 +794,7 @@
|
|
|
794
794
|
display: none;
|
|
795
795
|
}
|
|
796
796
|
`}
|
|
797
|
-
`,
|
|
797
|
+
`,ai=s.dt.div.attrs({className:"year-selection"})`
|
|
798
798
|
align-items: flex-start;
|
|
799
799
|
display: flex;
|
|
800
800
|
flex-direction: column;
|
|
@@ -805,12 +805,12 @@
|
|
|
805
805
|
padding: 0 0.5px;
|
|
806
806
|
position: relative;
|
|
807
807
|
width: 8px;
|
|
808
|
-
`,
|
|
808
|
+
`,Je=s.dt.tr`
|
|
809
809
|
align-items: flex-start;
|
|
810
810
|
display: flex;
|
|
811
811
|
padding: ${({theme:e})=>e.spacing[.25]} 0;
|
|
812
812
|
width: 100%;
|
|
813
|
-
`,
|
|
813
|
+
`,ut=s.lt`
|
|
814
814
|
${({theme:e})=>`
|
|
815
815
|
align-items: center;
|
|
816
816
|
color: ${e.palette.gray[800]};
|
|
@@ -826,11 +826,11 @@
|
|
|
826
826
|
text-align: center;
|
|
827
827
|
width: ${e.spacing[2.5]};
|
|
828
828
|
`}
|
|
829
|
-
`,
|
|
830
|
-
${
|
|
831
|
-
`,
|
|
829
|
+
`,ri=s.dt.th`
|
|
830
|
+
${ut}
|
|
831
|
+
`,oi=s.dt.td`
|
|
832
832
|
${({theme:e})=>`
|
|
833
|
-
${
|
|
833
|
+
${ut}
|
|
834
834
|
height: ${e.spacing[2.5]};
|
|
835
835
|
width: ${e.spacing[2.5]};
|
|
836
836
|
|
|
@@ -878,14 +878,14 @@
|
|
|
878
878
|
}
|
|
879
879
|
}
|
|
880
880
|
`}
|
|
881
|
-
`,
|
|
881
|
+
`,si=s.dt.div.attrs({className:"dot"})`
|
|
882
882
|
position: absolute;
|
|
883
883
|
top: 48%;
|
|
884
884
|
|
|
885
885
|
> span {
|
|
886
886
|
font-size: 4px;
|
|
887
887
|
}
|
|
888
|
-
`,
|
|
888
|
+
`,Qe=s.dt.button`
|
|
889
889
|
cursor: pointer;
|
|
890
890
|
display: flex;
|
|
891
891
|
|
|
@@ -893,7 +893,7 @@
|
|
|
893
893
|
height: 3.5px;
|
|
894
894
|
width: 7px;
|
|
895
895
|
}
|
|
896
|
-
`,
|
|
896
|
+
`,Ve=s.dt.div`
|
|
897
897
|
${({theme:e})=>`
|
|
898
898
|
align-items: end;
|
|
899
899
|
border-top: 1px solid ${e.palette.gray[200]};
|
|
@@ -905,9 +905,9 @@
|
|
|
905
905
|
padding: 0 ${e.spacing[.25]};
|
|
906
906
|
width: 100%;
|
|
907
907
|
`}
|
|
908
|
-
`,
|
|
908
|
+
`,xt=({state:e,date:n})=>{const i=g.useRef(null),a=s.$14e0f24ef4ac5c92$export$629b0a497aa65267(n,s.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),{cellProps:r,buttonProps:o,isSelected:l,isDisabled:c,formattedDate:d}=s.$36a0ac60f04457c5$export$136073280381448e({date:n},e,i),p="highlightedRange"in e&&!s.lodashExports.isNull(e.highlightedRange)?s.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.start):l,u="highlightedRange"in e&&!s.lodashExports.isNull(e.highlightedRange)?s.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.end):l,x=l&&!c&&!(p||u)?"range":"";return t.jsx(oi,{id:x,...r,children:t.jsxs("div",{...o,className:`cell ${p||u?"selected":""}
|
|
909
909
|
${c?"disabled":""} ${a?"today":""}
|
|
910
|
-
${!e.isFocused&&!a?"focused":""} ${x}`,ref:i,children:[d,a?t.jsx(
|
|
910
|
+
${!e.isFocused&&!a?"focused":""} ${x}`,ref:i,children:[d,a?t.jsx(si,{children:t.jsx(S,{clickable:!1,icon:"circle",iconSize:"xxs"})}):void 0]})})},Ce=({state:e,...n})=>{const{locale:i}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{weekDays:a}=s.$e3031d1f8c9d64eb$export$cb95147730a423f5(n,e),r=s.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654(e.visibleRange.start,i);return t.jsxs("table",{children:[t.jsx("thead",{children:t.jsx(Je,{children:a.map((o,l)=>{const c=`key_${l}`;return t.jsx(ri,{children:o},c)})})}),t.jsx("tbody",{children:[...new Array(r).keys()].map(o=>t.jsx(Je,{children:e.getDatesInWeek(o).map((l,c)=>{const d=`key_${c}`;return l?t.jsx(xt,{date:l,state:e},d):t.jsx("td",{},d)})},o))})]})},li=s.dt(Ae)`
|
|
911
911
|
align-items: center;
|
|
912
912
|
background-color: inherit;
|
|
913
913
|
border-color: inherit;
|
|
@@ -927,7 +927,7 @@
|
|
|
927
927
|
background-color: ${({theme:e})=>e.palette.gray[100]};
|
|
928
928
|
cursor: pointer;
|
|
929
929
|
}
|
|
930
|
-
`,
|
|
930
|
+
`,ci=s.dt.div`
|
|
931
931
|
${({theme:e})=>`
|
|
932
932
|
align-items: flex-start;
|
|
933
933
|
background: ${e.palette.white};
|
|
@@ -941,7 +941,7 @@
|
|
|
941
941
|
padding: ${e.spacing[.25]};
|
|
942
942
|
width: 292px;
|
|
943
943
|
`}
|
|
944
|
-
`,
|
|
944
|
+
`,di=s.dt.button`
|
|
945
945
|
${({theme:e,$disabled:n,$focus:i,$header:a})=>{const r=i?"34px":"40px";return`
|
|
946
946
|
align-items: center;
|
|
947
947
|
border-radius: ${a?`0 ${e.spacing[.5]} ${e.spacing[.5]} 0`:"4px"};
|
|
@@ -956,7 +956,7 @@
|
|
|
956
956
|
background-color: ${e.palette.gray[n?500:100]};
|
|
957
957
|
}
|
|
958
958
|
`}}
|
|
959
|
-
`,
|
|
959
|
+
`,pi=s.dt.div`
|
|
960
960
|
${({theme:e})=>`
|
|
961
961
|
align-items: center;
|
|
962
962
|
background: transparent;
|
|
@@ -967,13 +967,13 @@
|
|
|
967
967
|
justify-content: space-between;
|
|
968
968
|
width: calc(100% - 40px);
|
|
969
969
|
`}
|
|
970
|
-
`,
|
|
970
|
+
`,gi=s.dt.div`
|
|
971
971
|
align-items: center;
|
|
972
972
|
display: flex;
|
|
973
973
|
justify-content: flex-end;
|
|
974
974
|
gap: ${({theme:e})=>e.spacing[.5]};
|
|
975
975
|
flex: 1 0 0;
|
|
976
|
-
`,
|
|
976
|
+
`,et=s.dt.div`
|
|
977
977
|
${({theme:e})=>`
|
|
978
978
|
align-items: center;
|
|
979
979
|
align-self: stretch;
|
|
@@ -985,7 +985,7 @@
|
|
|
985
985
|
line-height: ${e.spacing[1.5]};
|
|
986
986
|
padding: 2px ${e.spacing[.25]};
|
|
987
987
|
`}
|
|
988
|
-
`,
|
|
988
|
+
`,tt=s.dt.button`
|
|
989
989
|
${({theme:e})=>`
|
|
990
990
|
align-items: center;
|
|
991
991
|
background-color: inherit;
|
|
@@ -1005,7 +1005,7 @@
|
|
|
1005
1005
|
font-weight: ${e.typography.weight.bold};
|
|
1006
1006
|
}
|
|
1007
1007
|
`}
|
|
1008
|
-
`,
|
|
1008
|
+
`,me=({disabled:e=!1,icon:n,props:i})=>{const a=g.useRef(null),{buttonProps:r}=s.$701a24aa0da5b062$export$ea18c227d4417cc3(i,a);return t.jsx(di,{...r,$disabled:e,$focus:!!r["aria-expanded"],$header:n==="calendar"||n==="calendar-clock",disabled:e,ref:a,type:"button",children:t.jsx(S,{icon:n,iconColor:v.palette.gray[e?400:700],iconSize:"xs",iconType:"fa-light"})})},ve=({state:e,prevButtonProps:n,nextButtonProps:i,title:a})=>{const r=e.focusedDate,o=g.useCallback(()=>{e.setFocusedDate(r.add({years:1}))},[r,e]),l=g.useCallback(()=>{e.setFocusedDate(r.subtract({years:1}))},[r,e]);return t.jsxs("div",{className:"header flex items-start",children:[t.jsx(me,{icon:"chevron-left",props:n}),t.jsxs(ii,{children:[a,t.jsxs(ai,{children:[t.jsx(Qe,{"aria-label":"top",onClick:o,children:t.jsx(S,{icon:"caret-up",iconClass:"fa-sharp",iconSize:"xxss"})}),t.jsx(Qe,{"aria-label":"bottom",onClick:l,children:t.jsx(S,{icon:"caret-down",iconClass:"fa-sharp",iconSize:"xxss"})})]})]}),t.jsx(me,{icon:"chevron-right",props:i})]})},ft=({onClose:e,props:n})=>{const{locale:i}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),a=s.$131cf43a05231e1e$export$6d095e787d2b5e1f({...n,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:r,nextButtonProps:o,title:l}=s.$9942cad8a072a530$export$3ee915f8151bd4f1(n,a);return t.jsxs("div",{className:"calendar",children:[t.jsx(ve,{nextButtonProps:o,prevButtonProps:r,state:a,title:l}),t.jsx(Ce,{state:a}),t.jsx(Ve,{children:t.jsx(R,{onClick:e,variant:"ghost",children:"Cancel"})})]})},ht=({segment:e,state:n})=>{const i=s.nt(),a=g.useRef(null),o={...e,placeholder:{day:"dd",dayPeriod:"(AM/PM)",era:"",hour:"hh",literal:"",minute:"mm",month:"mm",second:"",timeZoneName:"",year:"yyyy"}[e.type]},{segmentProps:l}=s.$32489daedd52963e$export$1315d136e6f7581(o,n,a),c=i.palette.gray[o.isEditable?800:500];return t.jsx("div",{...o.type!=="literal"&&{...l,className:"segment-cell"},ref:a,style:o.type==="literal"?void 0:{color:o.isPlaceholder?i.palette.gray[400]:c},children:o.isPlaceholder?o.placeholder:o.text})},bt=({disabled:e,error:n=!1,props:i})=>{const a=s.nt(),r=g.useRef(null),o=s.$3c0fc76039f1c516$export$60e84778edff6d26({...i,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:"en-US"}),{fieldProps:l}=s.$16f0b7bb276bc17e$export$5591b0b878c1a989(i,o,r),c=g.useCallback(d=>{const p=document.getElementsByClassName("segment-cell"),u=d.currentTarget;Object.values(p).some(x=>x.contains(u))||(d.preventDefault(),d.stopPropagation())},[]);return t.jsxs(pi,{...l,onClick:c,children:[t.jsx("div",{className:"flex flex-row",style:{color:a.palette.gray[s.lodashExports.isNil(o.value)?400:800]},tabIndex:-1,children:o.segments.map((d,p)=>{const u=`key_${p}`;return t.jsx(ht,{segment:{...d,isEditable:!e},state:o},u)})}),n?t.jsx(S,{icon:"exclamation-circle",iconColor:a.palette.error[500],iconSize:"xs"}):void 0]})},$t=e=>{const n=g.useRef(null),i=s.$eff5d8ee529ac4bb$export$fd53cef0cc796101({...e,locale:"en-US",shouldForceLeadingZeros:!0}),{timeValue:a}=i,r=!s.lodashExports.isNil(a)&&a.hour<12?"AM":"PM",[o,l]=g.useState(s.lodashExports.isNil(a)?"AM":r),{fieldProps:c}=s.$16f0b7bb276bc17e$export$4c842f6a241dc825(e,i,n),d=g.useCallback(p=>{const u=p.currentTarget.name;u!==o&&(s.lodashExports.isNil(a)||(u==="AM"?i.setSegment("dayPeriod",0):u==="PM"&&i.setSegment("dayPeriod",12))),l(u)},[o,i,a]);return t.jsxs(gi,{children:[t.jsx(et,{...c,ref:n,children:i.segments.slice(0,-2).map((p,u)=>{const x=`key_${u}`;return t.jsx(ht,{segment:p,state:i},x)})}),t.jsxs(et,{children:[t.jsx(tt,{id:o==="AM"?"active":"",name:"AM",onClick:d,type:"button",children:"AM"}),t.jsx(tt,{id:o==="PM"?"active":"",name:"PM",onClick:d,type:"button",children:"PM"})]})]})},yt=e=>e&&e!=="-"?s.dayjs(e).format("YYYY-MM-DD"):"-",ui=e=>e&&e!=="-"?s.dayjs(e).format("YYYY-MM-DD hh:mm A"):"-",xi=e=>e&&e!=="-"?s.dayjs(e).format("YYYY/MM/DD hh:mm A"):"-",ie=({error:e,buttonProps:n,datePickerRef:i,disabled:a=!1,granularity:r="day",fieldProps:o,groupProps:l,name:c,register:d,required:p,setValue:u,value:x})=>{const f=g.useCallback(h=>{o.onChange&&o.onChange(h),u&&u(c,r==="day"?yt(String(h)):ui(String(h)))},[o,r,c,u]);return t.jsxs(q,{...l,className:`${a?"disabled":""} ${e?"error":""}`,ref:i,children:[t.jsx(bt,{disabled:a,error:e!=null,props:{...o,autoFocus:!1,granularity:r,onChange:f,shouldForceLeadingZeros:!0}}),t.jsx(me,{disabled:a,icon:r==="minute"?"calendar-clock":"calendar",props:n}),t.jsx("input",{...d==null?void 0:d(c,{required:p}),"aria-label":c,className:"date-input",disabled:a,id:c,name:c,type:"text",value:x})]})},Se=({children:e,...n})=>{const i=g.useRef(null),{dialogProps:a}=s.$40df3f8667284809$export$d55e7ee900f34e93(n,i);return t.jsx(ci,{...a,ref:i,children:e})},mt=({disabled:e=!1,error:n,helpLink:i,helpLinkText:a,helpText:r,required:o,label:l,name:c,register:d,setValue:p,tooltip:u,watch:x,...f})=>{const h=g.useRef(null),y=x==null?void 0:x(c),$=s.$ab5bf3f618090389$export$87194bb378cc3ac2({...f,value:s._.isNil(y)||s._.isEmpty(y)||y==="-"?null:s.$fae977aafc393c5c$export$6b862160d295c8e(y.replace(/\//gu,"-"))}),{close:m}=$,{groupProps:w,fieldProps:j,buttonProps:C,dialogProps:z,calendarProps:T}=s.$6057a3d2a53a12fd$export$42df105a73306d51({...f,"aria-label":l??c,name:c},$,h),P=g.useCallback(O=>{T.onChange&&T.onChange(O),p&&p(c,yt(O.toString()))},[T,c,p]);return t.jsxs(M,{error:n,helpLink:i,helpLinkText:a,helpText:r,htmlFor:c,label:l,required:o,tooltip:u,children:[t.jsx(ie,{buttonProps:C,datePickerRef:h,disabled:e,error:n,fieldProps:j,groupProps:w,name:c,register:d,required:o,setValue:p,value:y}),$.isOpen&&!e?t.jsx(ue,{offset:8,placement:"bottom start",state:$,triggerRef:h,children:t.jsx(Se,{...z,children:t.jsx(ft,{onClose:m,props:{...T,onChange:P}})})}):null]})},wt=({onClose:e,props:n})=>{const{locale:i}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),a=g.useRef(null),r=s.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90({...n,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:o,nextButtonProps:l,title:c}=s.$46a4342aab3d8076$export$87e0539f600c24e5(n,r,a);return t.jsxs("div",{className:"calendar-range",ref:a,children:[t.jsx(ve,{nextButtonProps:l,prevButtonProps:o,state:r,title:c}),t.jsx(Ce,{state:r}),t.jsx(Ve,{children:t.jsx(R,{onClick:e,variant:"ghost",children:"Cancel"})})]})},fi=s.dt.div`
|
|
1009
1009
|
${({theme:e,$disabled:n,$show:i})=>`
|
|
1010
1010
|
border-color: ${i?e.palette.error[500]:e.palette.gray[300]};
|
|
1011
1011
|
display: flex;
|
|
@@ -1016,7 +1016,7 @@
|
|
|
1016
1016
|
background: ${n?e.palette.gray[200]:e.palette.white};
|
|
1017
1017
|
}
|
|
1018
1018
|
`}
|
|
1019
|
-
`,
|
|
1019
|
+
`,hi=({disabled:e=!1,error:n,label:i,name:a,required:r,tooltip:o,register:l,setValue:c,...d})=>{const p=`${a}Max`,u=`${a}Min`,x=g.useRef(null),f=s.$93c38a5e28be6249$export$e50a61c1de9f574(d),{close:h}=f,{groupProps:y,startFieldProps:$,endFieldProps:m,buttonProps:w,dialogProps:j,calendarProps:C}=s.$887cac91b7cc8801$export$12fd5f0e9f4bb192({...d,"aria-label":i??a},f,x),z=g.useCallback(T=>{T&&C.onChange&&C.onChange(T)},[C]);return t.jsxs(M,{error:n,htmlFor:a,label:i,required:r,tooltip:o,children:[t.jsxs(fi,{$disabled:e,$show:n!==void 0,ref:x,children:[t.jsx(ie,{buttonProps:w,datePickerRef:x,disabled:e,error:n,fieldProps:{...$,"aria-label":`${$["aria-label"]} ${a}`,validate:T=>m.value&&T>m.value?"Start date must be less than or equal to end date":null},groupProps:y,name:u,register:l,setValue:c}),t.jsx(ie,{buttonProps:w,datePickerRef:x,disabled:e,error:n,fieldProps:{...m,"aria-label":`${m["aria-label"]} ${a}`,validate:T=>$.value&&T<$.value?"End date must be greater than or equal to start date":null},groupProps:y,name:p,register:l,setValue:c})]}),f.isOpen&&!e?t.jsx(ue,{offset:8,placement:"bottom start",state:f,triggerRef:x,children:t.jsx(Se,{...j,children:t.jsx(wt,{onClose:h,props:{...C,onChange:z}})})}):null]})},bi=s.dt.div`
|
|
1020
1020
|
${({theme:e})=>`
|
|
1021
1021
|
align-items: center;
|
|
1022
1022
|
border-top: 1px solid ${e.palette.gray[200]};
|
|
@@ -1025,32 +1025,32 @@
|
|
|
1025
1025
|
justify-content: center;
|
|
1026
1026
|
padding: ${e.spacing[.5]} ${e.spacing[1.25]};
|
|
1027
1027
|
`}
|
|
1028
|
-
|
|
1028
|
+
`,$i=s.dt.div`
|
|
1029
1029
|
align-items: center;
|
|
1030
1030
|
display: flex;
|
|
1031
1031
|
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1032
1032
|
justify-content: flex-end;
|
|
1033
1033
|
flex: 1 0 0;
|
|
1034
|
-
`,
|
|
1035
|
-
${e?"disabled":""} ${o?"error":""} ${
|
|
1036
|
-
`,children:[n?t.jsx(S,{icon:"user",iconSize:"sm",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":o?"true":"false","aria-label":
|
|
1034
|
+
`,jt=({handleTimeChange:e,onClose:n,props:i,timeState:a})=>{const r=s.nt(),{locale:o}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),l=s.$131cf43a05231e1e$export$6d095e787d2b5e1f({...i,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:o}),{prevButtonProps:c,nextButtonProps:d,title:p}=s.$9942cad8a072a530$export$3ee915f8151bd4f1(i,l);return t.jsxs("div",{className:"calendar",children:[t.jsx(ve,{nextButtonProps:d,prevButtonProps:c,state:l,title:p}),t.jsx(Ce,{state:l}),t.jsxs(bi,{children:[t.jsx(k,{color:r.palette.gray[800],fontWeight:"bold",size:"sm",children:"Time"}),t.jsx($i,{children:t.jsx($t,{hourCycle:12,label:"time-field",onChange:e,value:a.timeValue})})]}),t.jsx(Ve,{children:t.jsx(R,{onClick:n,variant:"ghost",children:"Cancel"})})]})},yi=e=>{const{disabled:n=!1,error:i,required:a,label:r,name:o,tooltip:l,register:c,setValue:d,watch:p}=e,u=p==null?void 0:p(o),x=g.useRef(null),f=s.$ab5bf3f618090389$export$87194bb378cc3ac2({...e,granularity:"minute",hourCycle:12,isDisabled:n,isRequired:a,shouldCloseOnSelect:!1,value:s._.isNil(u)||s._.isEmpty(u)||u==="-"?null:s.$fae977aafc393c5c$export$588937bcd60ade55(u.replace(/\//gu,"-"))}),{close:h}=f,{groupProps:y,fieldProps:$,buttonProps:m,dialogProps:w,calendarProps:j}=s.$6057a3d2a53a12fd$export$42df105a73306d51(e,f,x),C=g.useCallback(T=>{j.onChange&&j.onChange(T),d==null||d(o,xi(String(T).replace(/-/gu,"/")))},[j,o,d]),z=g.useCallback(T=>{T&&f.setTimeValue(T)},[f]);return t.jsxs(M,{error:i,htmlFor:o,label:r,required:a,tooltip:l,children:[t.jsx(ie,{buttonProps:m,datePickerRef:x,disabled:n,error:i,fieldProps:$,granularity:"minute",groupProps:y,name:o,register:c,setValue:d,value:u}),f.isOpen&&!n?t.jsx(ue,{offset:8,placement:"bottom start",state:f,triggerRef:x,children:t.jsx(Se,{...w,children:t.jsx(jt,{handleTimeChange:z,onClose:h,props:{...j,onChange:C},timeState:f})})}):null]})},mi=({children:e,currentValue:n,externalLink:i,isEditing:a,label:r,name:o,tooltip:l})=>{if(a)return t.jsx("div",{children:e});const c=s.lodashExports.isNil(n)?"":n,d=String(i??c);return t.jsxs(b,{children:[t.jsx(_e,{htmlFor:o,label:r,tooltip:l,weight:"bold"}),d.startsWith("https://")?t.jsx(X,{href:d,children:c}):t.jsx(k,{size:"md",children:c})]})},kt=({disabled:e=!1,hasIcon:n=!1,helpLink:i,helpLinkText:a,helpText:r,error:o,isValid:l,isTouched:c,label:d,name:p,maskValue:u=!1,onPaste:x,placeholder:f,register:h,tooltip:y,type:$="text",weight:m,...w})=>{const{required:j,onBlur:C,onChange:z}=w,T=s.nt(),P=l&&c&&!e,O=g.useCallback(F=>{F.key==="Enter"&&F.preventDefault()},[]);return t.jsx(M,{error:o,helpLink:i,helpLinkText:a,helpText:r,htmlFor:p,label:d,required:j,tooltip:y,weight:m,children:t.jsxs(q,{className:`
|
|
1035
|
+
${e?"disabled":""} ${o?"error":""} ${P?"success":""}
|
|
1036
|
+
`,children:[n?t.jsx(S,{icon:"user",iconSize:"sm",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":o?"true":"false","aria-label":p,"aria-required":j,autoComplete:"off",className:u?"sr-block":"","data-testid":`${p}-input`,disabled:e,id:p,onKeyDown:O,onPaste:x,placeholder:f,type:$,...h?h(p,{required:j,onBlur:C,onChange:z}):{...w}}),o?t.jsx(S,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:T.palette.error[500],iconSize:"xs"}):void 0,P?t.jsx(S,{icon:"check-circle",iconClass:"success-icon",iconColor:T.palette.success[500],iconSize:"xs"}):void 0]})})},wi=s.dt(st)`
|
|
1037
1037
|
white-space: nowrap;
|
|
1038
1038
|
margin-right: ${({theme:e})=>e.spacing[.25]};
|
|
1039
1039
|
text-overflow: ellipsis;
|
|
1040
1040
|
overflow: hidden;
|
|
1041
1041
|
max-width: 80%;
|
|
1042
|
-
`,
|
|
1042
|
+
`,ji=s.dt.input`
|
|
1043
1043
|
opacity: 0;
|
|
1044
1044
|
position: absolute;
|
|
1045
1045
|
visibility: hidden;
|
|
1046
1046
|
width: 0;
|
|
1047
|
-
`,De=(e,n,i)=>{const a=new Event(e);return Object.defineProperty(a,"target",{value:{name:n,value:i}}),a},
|
|
1047
|
+
`,De=(e,n,i)=>{const a=new Event(e);return Object.defineProperty(a,"target",{value:{name:n,value:i}}),a},ki=e=>{const n=e;return n?Array.from(n).map(i=>i.name).join(", "):""},Ci=({accept:e,disabled:n=!1,error:i,label:a,helpLink:r,helpText:o,id:l,multiple:c,name:d,onChange:p,required:u,register:x,setValue:f,tooltip:h,watch:y,weight:$})=>{const m=s.nt(),w=g.useRef(null),j=y==null?void 0:y(d),C=ki(j),z=x==null?void 0:x(d,{required:u}),T=g.useCallback(()=>{const F=De("change",d,void 0);f&&f(d,""),z&&z.onChange(F)},[z,d,f]),P=g.useCallback(F=>{const{files:E}=F.currentTarget,N=De("change",d,E&&E.length>0?E:void 0);p==null||p(N),z&&z.onChange(N)},[z,d,p]),O=g.useCallback(F=>{n?F.preventDefault():w.current&&w.current.click()},[n]);return t.jsxs(M,{error:i,helpLink:r,helpText:o,htmlFor:l??d,label:a,required:u,tooltip:h,weight:$,children:[t.jsxs(q,{className:`${n?"disabled":""} ${i?"error":""}`,children:[t.jsx(wi,{$size:"xs",children:C}),t.jsxs(b,{alignItems:"center",display:"flex",gap:.5,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:T,variant:"ghost",width:"20px"}),i&&t.jsx(S,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:m.palette.error[500],iconSize:"xs"})]}),t.jsxs(R,{border:n?`1px solid ${m.palette.gray[300]} !important`:"",borderRadius:"0px 8px 8px 0px !important",disabled:n,height:"40px",onClick:O,variant:"primary",width:"96px",children:[t.jsx(S,{icon:"search",iconSize:"sm",mr:.5}),"Add file"]})]}),t.jsx(ji,{...z&&{ref:z.ref,onBlur:z.onBlur},accept:e,"aria-label":d,"data-testid":d,disabled:n,id:l??d,multiple:c,name:d,onChange:P,onClick:T,ref:w,required:void 0,type:"file",value:void 0})]})},vi=s.dt.input`
|
|
1048
1048
|
border: none;
|
|
1049
1049
|
background: transparent;
|
|
1050
1050
|
min-width: 15rem;
|
|
1051
1051
|
padding: 0;
|
|
1052
1052
|
flex: 1;
|
|
1053
|
-
`,
|
|
1053
|
+
`,Fe=({disabled:e=!1,error:n,field:i,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:p,placeholder:u,required:x,tooltip:f,value:h,weight:y})=>{const $=s.nt(),[m,w]=g.useState(""),j=d?h:i==null?void 0:i.value,C=g.useMemo(()=>j&&typeof j=="string"?j.split(",").filter(Boolean):[],[j]),z=g.useCallback(E=>{const W=[...new Set(E.filter(Boolean))].join(","),H=De("change",c,W);i&&i.onChange(H),d&&d(H)},[i,c,d]),T=g.useCallback(E=>{w(E.target.value)},[]),P=g.useCallback(E=>{const N=m.trim();N.length&&!C.includes(N)&&(E.preventDefault(),z([...C,N]),w("")),i&&i.onBlur()},[m,i,z,C]),O=g.useCallback(E=>{const N=m.trim();E.key==="Enter"&&N.length===0&&E.preventDefault(),["Enter",","].includes(E.key)&&N.length>0&&!C.includes(N)?(E.preventDefault(),z([...C,N]),w("")):E.key==="Backspace"&&!N.length&&C.length&&(E.preventDefault(),p==null||p(C[C.length-1]),z(C.slice(0,-1)))},[m,p,z,C]),F=g.useCallback(E=>()=>{p==null||p(E),z(C.filter(N=>N!==E))},[p,z,C]);return t.jsx(M,{error:n,helpLink:a,helpLinkText:r,helpText:o,htmlFor:c,label:l,required:x,tooltip:f,weight:y,children:t.jsxs(q,{$overflowX:"auto",className:`${e?"disabled":""} ${n?"error":""}`,children:[C.map(E=>t.jsx(K,{disabled:e,onClose:F(E),tagLabel:E},E)),t.jsx(vi,{"aria-hidden":!1,"aria-invalid":n?"true":"false","aria-label":c,"aria-required":x,autoComplete:"off",id:c,onBlur:P,onChange:T,onKeyDown:O,placeholder:C.length===0?u:void 0,ref:i==null?void 0:i.ref,type:"text",value:m}),n?t.jsx(S,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:$.palette.error[500],iconSize:"xs"}):void 0]})})},Si=({disabled:e=!1,control:n,error:i,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:p,placeholder:u,required:x,tooltip:f,value:h,weight:y})=>n?t.jsx(s.Controller,{control:n,name:c,render:({field:$})=>t.jsx(Fe,{disabled:e,error:i,field:$,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c,onRemove:p,placeholder:u,required:x,tooltip:f,weight:y}),rules:{required:x}}):t.jsx(Fe,{disabled:e,error:i,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c,onChange:d,onRemove:p,placeholder:u,required:x,tooltip:f,value:h,weight:y}),Pe=g.forwardRef(function({disabled:n,icon:i,margin:a,onClick:r,...o},l){return t.jsx(li,{$margin:a,"aria-label":i,className:"action-btn",disabled:n,onClick:r,ref:l,type:"button",...o,children:t.jsx(S,{icon:i,iconClass:"action",iconSize:"xs",iconType:"fa-light"})})}),we=({error:e,decimalPlaces:n=0,disabled:i=!1,id:a,maxLength:r,max:o=1/0,min:l=0,name:c,onChange:d,placeholder:p,register:u,required:x,setValue:f,value:h})=>{const y=s.nt(),$=g.useMemo(()=>n<0?0:n,[n]),m=g.useMemo(()=>h===void 0?0:s._.toNumber(h),[h]),w=g.useCallback(()=>{const T=(m-10**-$).toFixed($);f&&f(c,Math.max(Number(l),Number(T)))},[$,m,l,c,f]),j=g.useCallback(()=>{const T=(m+10**-$).toFixed($);f&&f(c,Math.min(Number(o),Number(T)>Number(l)?Number(T):Number(l)))},[$,m,o,l,c,f]),C=g.useCallback(T=>{const{value:P}=T.target,O=/\d+/u.test(P)&&!s._.isEmpty(P);f&&f(c,O?Number(P):void 0),d&&d(T)},[c,d,f]),z=g.useCallback(T=>{T.key==="Enter"&&T.preventDefault()},[]);return t.jsxs(q,{className:`${i?"disabled":""} ${e?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":e?"true":"false","aria-label":c,"aria-required":x,autoComplete:"off",disabled:i,id:a??c,max:o,min:l,onKeyDown:z,placeholder:p,required:x,step:10**-$,type:"number",...u==null?void 0:u(c,{required:x,maxLength:r,max:o,min:l,onChange:C})}),e&&t.jsx(S,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:y.palette.error[500],iconSize:"xs"}),t.jsx(Pe,{borderLeft:"inherit",borderRight:"inherit",disabled:i,icon:"minus",margin:"0 -0.625rem 0 0",onClick:w,px:.75,py:.75}),t.jsx(Pe,{borderRadius:`0 ${y.spacing[.5]} ${y.spacing[.5]} 0`,disabled:i,icon:"plus",onClick:j,px:.75,py:.75})]})},Ct=({decimalPlaces:e,disabled:n=!1,error:i,helpLink:a,helpText:r,id:o,label:l,maxLength:c,max:d,min:p,name:u,onChange:x,placeholder:f,register:h,required:y,setValue:$,tooltip:m,value:w,watch:j,weight:C})=>t.jsx(M,{error:i,helpLink:a,helpText:r,htmlFor:u,label:l,maxLength:c,required:y,tooltip:m,weight:C,children:t.jsx(we,{decimalPlaces:e,disabled:n,error:i,id:o,max:d,maxLength:c,min:p,name:u,onChange:x,placeholder:f,register:h,required:y,setValue:$,value:x?w:j==null?void 0:j(u)})}),zi=({disabled:e=!1,error:n,name:i,label:a,propsMax:r,propsMin:o,required:l,tooltip:c})=>{const d=`${i}Max`,p=`${i}Min`;return t.jsx(M,{error:n,htmlFor:i,label:a,required:l,tooltip:c,children:t.jsxs(b,{display:"flex",gap:.25,width:"100%",children:[t.jsx(we,{...o,disabled:e,error:n,name:d}),t.jsx(we,{...r,disabled:e,error:n,name:p})]})})},Ii=s.dt.div`
|
|
1054
1054
|
${({theme:e})=>`
|
|
1055
1055
|
align-items: flex-start;
|
|
1056
1056
|
align-self: stretch;
|
|
@@ -1090,7 +1090,7 @@
|
|
|
1090
1090
|
}
|
|
1091
1091
|
}
|
|
1092
1092
|
`}
|
|
1093
|
-
`,
|
|
1093
|
+
`,Ti=s.dt.button`
|
|
1094
1094
|
${({theme:e})=>`
|
|
1095
1095
|
align-items: center;
|
|
1096
1096
|
background: inherit;
|
|
@@ -1106,7 +1106,7 @@
|
|
|
1106
1106
|
cursor: not-allowed;
|
|
1107
1107
|
}
|
|
1108
1108
|
`}
|
|
1109
|
-
`,
|
|
1109
|
+
`,Ni=s.dt.ul`
|
|
1110
1110
|
${({theme:e})=>`
|
|
1111
1111
|
align-items: flex-start;
|
|
1112
1112
|
box-shadow: ${e.shadows.md};
|
|
@@ -1119,7 +1119,7 @@
|
|
|
1119
1119
|
scrollbar-width: thin;
|
|
1120
1120
|
width: max-content;
|
|
1121
1121
|
`}
|
|
1122
|
-
`,
|
|
1122
|
+
`,Ei=s.dt.li`
|
|
1123
1123
|
${({theme:e})=>`
|
|
1124
1124
|
align-items: center;
|
|
1125
1125
|
background: ${e.palette.white};
|
|
@@ -1136,16 +1136,16 @@
|
|
|
1136
1136
|
background: ${e.palette.gray[100]};
|
|
1137
1137
|
}
|
|
1138
1138
|
`}
|
|
1139
|
-
`,
|
|
1139
|
+
`,Ri=s.dt.p`
|
|
1140
1140
|
color: ${({theme:e})=>e.palette.gray[800]};
|
|
1141
1141
|
font-size: inherit;
|
|
1142
1142
|
min-width: 55%;
|
|
1143
1143
|
overflow: hidden;
|
|
1144
1144
|
text-overflow: ellipsis;
|
|
1145
1145
|
white-space: nowrap;
|
|
1146
|
-
`,Z=(e,n,i=!1)=>{
|
|
1146
|
+
`,Z=(e,n,i=!1)=>{g.useEffect(()=>{var r;const a=o=>{e&&!e.contains(o.target)&&n()};return i?(document.addEventListener("click",a,!0),()=>{document.removeEventListener("click",a,!0)}):((r=document.getElementById("root"))==null||r.addEventListener("click",a,!0),()=>{var o;(o=document.getElementById("root"))==null||o.removeEventListener("click",a,!0)})},[i,e,n])},Di=({disabled:e,error:n,label:i,name:a,placeholder:r,required:o,register:l,tooltip:c,value:d,weight:p})=>{const u=s.nt(),x=g.useRef(null),[f,h]=g.useState(!1),[y,$]=g.useState(""),{refs:m,floatingStyles:w}=s.useFloating({placement:"bottom-start",whileElementsMounted:s.autoUpdate}),{inputValue:j,handlePhoneValueChange:C,country:z,setCountry:T}=s.ee({countries:s.R,defaultCountry:"us",forceDialCode:!0,value:d?String(d):void 0}),P=g.useCallback(()=>{h(N=>!N),f||$("")},[f]),O=g.useCallback(N=>()=>{T(N),h(!1),$("")},[T,h]),F=g.useCallback(N=>{N.key.length===1?$(W=>W+N.key):N.key==="Backspace"&&$(W=>W.slice(0,-1))},[]),E=s.R.filter(N=>{const{name:W}=s.M$1(N);return W.toLowerCase().includes(y.toLowerCase())});return Z(m.floating.current,()=>{h(!1),$("")},!0),t.jsx(M,{error:n,htmlFor:a,label:i,required:o,tooltip:c,weight:p,children:t.jsxs(Ii,{className:`${e?"disabled":""} ${n?"error":""}`,ref:x,children:[t.jsxs(Ti,{"aria-label":"country-selector","data-testid":"country-selector",disabled:e,id:"country-selector",onClick:P,onKeyDown:F,ref:m.setReference,children:[t.jsx(s.q,{iso2:z.iso2,size:"16px"}),t.jsx(S,{icon:"angle-down",iconColor:u.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(q,{className:`${e?"disabled":""} ${n?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":n?"true":"false","aria-label":a,"aria-required":o,autoComplete:"off","data-testid":`${a}-input`,disabled:e,id:a,name:a,placeholder:r,type:"tel",value:j,...l==null?void 0:l(a,{required:o,onChange:C})}),n?t.jsx(S,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:u.palette.error[500],iconSize:"xs"}):void 0]}),f&&V.createPortal(t.jsx(Ni,{ref:m.setFloating,style:w,children:E.map(N=>{const{dialCode:W,iso2:H,name:ee}=s.M$1(N);return t.jsxs(Ei,{onClick:O(H),value:H,children:[t.jsx(s.q,{iso2:H,size:"16px"}),t.jsx(Ri,{children:ee}),t.jsx(k,{color:u.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+W})]},H)})}),document.getElementById("root")??document.body)]})})},Fi=({disabled:e=!1,error:n,helpLink:i,helpText:a,isTouched:r,isValid:o,label:l,name:c="input-text",id:d,maskValue:p=!1,maxLength:u,placeholder:x,register:f,required:h,rows:y,tooltip:$,watch:m,weight:w})=>{const j=s.nt(),C=m==null?void 0:m(c),z=o&&r&&!e;return t.jsx(M,{error:n,helpLink:i,helpText:a,htmlFor:c,label:l,maxLength:u,required:h,tooltip:$,value:C?String(C):void 0,weight:w,children:t.jsxs(q,{className:`
|
|
1147
1147
|
${e?"disabled":""} ${n?"error":""} ${z?"success":""}
|
|
1148
|
-
`,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":n?"true":"false","aria-label":c,"aria-required":h,className:
|
|
1148
|
+
`,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":n?"true":"false","aria-label":c,"aria-required":h,className:p?"sr-block":"","data-testid":`${c}-text-area`,disabled:e,id:d??c,maxLength:u,placeholder:x,rows:y,...f==null?void 0:f(c,{required:h})}),n?t.jsx(S,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:j.palette.error[500],iconSize:"xs"}):void 0,z?t.jsx(S,{icon:"check-circle",iconClass:"success-icon",iconColor:j.palette.success[500],iconSize:"xs"}):void 0]})})},Pi=({description:e,disabled:n,id:i,align:a,inputType:r="text",inputNumberProps:o,minHeight:l,minWidth:c,name:d,placeholder:p,tooltip:u,title:x})=>{const f=g.useMemo(()=>{if(r==="text")return t.jsx(kt,{disabled:n,name:d,placeholder:p});if(r==="date")return t.jsx(mt,{disabled:n,name:d});const{decimalPlaces:h,max:y,min:$}=o??{};return t.jsx(Ct,{decimalPlaces:h,disabled:n,max:y,min:$,name:d,placeholder:p})},[n,o,r,d,p]);return t.jsxs(Jn,{$align:a,$minHeight:l,$minWidth:c,children:[t.jsx(ke,{description:e,id:i,title:x,tooltip:u}),f]})},Li=s.dt.label`
|
|
1149
1149
|
${({theme:e})=>`
|
|
1150
1150
|
align-items: start;
|
|
1151
1151
|
color: ${e.palette.gray[600]};
|
|
@@ -1217,7 +1217,7 @@
|
|
|
1217
1217
|
fill: ${e.palette.white};
|
|
1218
1218
|
}
|
|
1219
1219
|
`}
|
|
1220
|
-
`,
|
|
1220
|
+
`,ze=g.forwardRef(function({disabled:n=!1,label:i,name:a,onChange:r,onClick:o,onFocus:l,onKeyDown:c,value:d,...p},u){return t.jsxs(Li,{"aria-disabled":n,children:[t.jsx("input",{"aria-disabled":n,"aria-label":a,disabled:n,id:a,name:a,onChange:r,onClick:o,onFocus:l,onKeyDown:c,ref:u,type:"checkbox",value:d,...p}),t.jsx(S,{disabled:n,icon:"check",iconSize:"sm"}),i??d]})}),vt=({options:e,title:n,checkboxesName:i,onChange:a})=>{const r=s.nt(),[o,l]=g.useState(!1),c=g.useCallback(()=>{l(d=>!d)},[]);return t.jsxs(b,{bgColor:o?r.palette.gray[50]:r.palette.white,border:"1px solid"+r.palette.gray[300],borderRadius:"8px",display:"inline-flex",flexDirection:"column",gap:1.25,px:.75,py:.625,width:"100%",children:[t.jsxs(b,{alignItems:"center",cursor:"pointer",display:"flex",onClick:c,children:[t.jsx(L,{size:"xs",children:n}),t.jsx(S,{icon:o?"chevron-up":"chevron-down",iconColor:r.palette.gray[400],iconSize:"xs"})]}),o?t.jsx(b,{display:"flex",gap:.75,wrap:"wrap",children:e.map(d=>t.jsx(b,{border:"1px solid",borderColor:r.palette.gray[300],borderRadius:"4px",px:.5,py:.5,children:t.jsx(ze,{checked:d.visible,disabled:d.locked,label:d.name,name:i,onChange:a,value:d.name})},d.name))}):void 0]})},St=(e,n)=>{const[a,r]=g.useState(0),[o,l]=g.useState(0);return g.useEffect(()=>{o===100&&(()=>{r(d=>d===n-1?0:d+1)})()},[o,n]),g.useEffect(()=>{const c=setInterval(()=>{l(d=>d===100?0:d+1)},e);return()=>{clearInterval(c)}},[e]),{cycle:a,progress:o,setCycle:r,setProgress:l}},zt=({publicId:e,format:n="webp"})=>{const i=g.useMemo(()=>new s.Cloudinary({cloud:{cloudName:"fluid-attacks"}}),[]);return g.useMemo(()=>i.image(e).format(n),[i,e,n])},It=(e,n)=>g.useMemo(()=>s._.debounce(e,n),[e,n]),Tt=e=>{const[n,i]=g.useState(!1),a=g.useCallback(()=>{i(!0)},[]),r=g.useCallback(()=>{i(!1)},[]),o=g.useCallback(()=>{i(l=>!l)},[]);return{close:r,isOpen:n,name:e,open:a,setIsOpen:i,toggle:o}},Wi=e=>{const[n,i]=g.useState(),a=It(r=>{i(r)},(e==null?void 0:e.debounceWait)??300);return[n,a]},Bi=({alt:e="img",height:n="",width:i="",plugins:a=[s.lazyload(),s.placeholder()],publicId:r})=>{const o=zt({publicId:r});return t.jsx(s.AdvancedImage,{alt:e,cldImg:o,height:n,plugins:a,width:i})},_=g.memo(Bi),Oi=s.dt.label`
|
|
1221
1221
|
${({theme:e})=>`
|
|
1222
1222
|
align-items: center;
|
|
1223
1223
|
display: flex;
|
|
@@ -1296,7 +1296,7 @@
|
|
|
1296
1296
|
}
|
|
1297
1297
|
|
|
1298
1298
|
`}
|
|
1299
|
-
`,
|
|
1299
|
+
`,Mi=s.dt.span.attrs({className:"checkmark"})``,Nt=g.forwardRef(function({defaultChecked:n=!1,disabled:i=!1,label:a,name:r,onChange:o,onClick:l,value:c,...d},p){return t.jsxs(Oi,{"aria-disabled":i,"aria-label":r,role:"radiogroup",children:[t.jsx("input",{"aria-checked":n,"aria-disabled":i,"aria-label":r,defaultChecked:n,disabled:i,name:r,onChange:o,onClick:l,ref:p,type:"radio",value:c,...d}),t.jsx(Mi,{}),a??null]})}),Ai=({alt:e,imageId:n,icon:i,selectorProps:a,onClick:r,title:o,width:l="fit-content"})=>{const c=s.nt();return t.jsxs(b,{alignItems:"center",border:`1px solid ${c.palette.gray[200]}`,borderColorHover:c.palette.gray[600],borderRadius:c.spacing[.25],display:"inline-flex",padding:[1,1,1,1],shadowHover:"md",width:l,children:[t.jsx(b,{alignSelf:"start",display:"flex",width:"fit-content",children:t.jsx(Nt,{name:a.name,onClick:r,value:a.value})}),t.jsxs(b,{alignItems:"center",display:"flex",gap:.5,justify:"space-between",ml:1,mr:1,width:"100%",children:[n===void 0?void 0:t.jsx(_,{alt:e??"card image",height:"32px",publicId:n,width:"32px"}),i===void 0?void 0:t.jsx(S,{icon:i,iconSize:"sm",iconType:"fa-light"}),t.jsx(L,{fontWeight:"bold",lineSpacing:1.75,size:"xs",children:o})]})]})},te=s.dt.div`
|
|
1300
1300
|
${({theme:e})=>`
|
|
1301
1301
|
align-items: center;
|
|
1302
1302
|
background-color: ${e.palette.gray[200]};
|
|
@@ -1308,7 +1308,7 @@
|
|
|
1308
1308
|
transition: 0.2s;
|
|
1309
1309
|
width: 36px;
|
|
1310
1310
|
`}
|
|
1311
|
-
`,
|
|
1311
|
+
`,Hi=s.dt.div`
|
|
1312
1312
|
${({theme:e})=>`
|
|
1313
1313
|
background-color: ${e.palette.white};
|
|
1314
1314
|
border-radius: 50%;
|
|
@@ -1319,7 +1319,7 @@
|
|
|
1319
1319
|
width: ${e.spacing[1]};
|
|
1320
1320
|
z-index: 1;
|
|
1321
1321
|
`}
|
|
1322
|
-
`,
|
|
1322
|
+
`,_i=s.dt.label`
|
|
1323
1323
|
display: inline-block;
|
|
1324
1324
|
|
|
1325
1325
|
input {
|
|
@@ -1329,39 +1329,39 @@
|
|
|
1329
1329
|
width: 0;
|
|
1330
1330
|
}
|
|
1331
1331
|
|
|
1332
|
-
input:checked + ${
|
|
1332
|
+
input:checked + ${te} {
|
|
1333
1333
|
background-color: ${({theme:e})=>e.palette.primary[500]};
|
|
1334
1334
|
}
|
|
1335
1335
|
|
|
1336
|
-
input:checked + ${
|
|
1336
|
+
input:checked + ${te} > div {
|
|
1337
1337
|
transform: translateX(100%);
|
|
1338
1338
|
}
|
|
1339
1339
|
|
|
1340
|
-
input:disabled + ${
|
|
1340
|
+
input:disabled + ${te} {
|
|
1341
1341
|
cursor: not-allowed;
|
|
1342
1342
|
background-color: ${({theme:e})=>e.palette.gray[100]};
|
|
1343
1343
|
}
|
|
1344
1344
|
|
|
1345
|
-
input:disabled + ${
|
|
1345
|
+
input:disabled + ${te} > div {
|
|
1346
1346
|
background-color: ${({theme:e})=>e.palette.gray[200]};
|
|
1347
1347
|
border: 1px solid ${({theme:e})=>e.palette.gray[200]};
|
|
1348
1348
|
}
|
|
1349
|
-
`,
|
|
1349
|
+
`,Et=g.forwardRef(function({defaultChecked:n,disabled:i=!1,justify:a,name:r,leftDescription:o,rightDescription:l,...c},d){const p=n===!0?"on":"off",u=typeof o=="object"&&o.on&&o.off?o[p]:o,x=g.useCallback(f=>{f.stopPropagation()},[]);return t.jsxs(b,{alignItems:"center",display:"flex",fontSize:"14px",gap:.75,justify:a,children:[u,t.jsxs(_i,{onClick:x,role:"switch",children:[t.jsx("input",{...c,"aria-disabled":i,"aria-label":r,checked:n===!0,disabled:i,name:r,ref:d,type:"checkbox"}),t.jsx(te,{"aria-label":"Toggle Switch",id:`${r}Toggle`,children:t.jsx(Hi,{})})]}),l]})}),Vi=({id:e,title:n,toggles:i,minWidth:a="auto",height:r="auto"})=>{const o=s.nt();return t.jsxs(b,{alignItems:"center",bgColor:o.palette.white,border:`1px solid ${o.palette.gray[200]}`,borderRadius:o.spacing[.25],display:"flex",flexDirection:"column",gap:.5,height:r,justify:"center",minHeight:"100px",minWidth:a,padding:[1.25,1.25,1.25,1.25],children:[t.jsx(ke,{id:e,title:n}),t.jsx(b,{display:"flex",flexDirection:"column",gap:.5,minHeight:"40px",width:"100%",children:i.map(l=>t.jsx(Et,{...l},`$card-toggle-${l.name}`))})]})},Gi=s.dt.div`
|
|
1350
1350
|
position: relative;
|
|
1351
1351
|
margin: auto;
|
|
1352
1352
|
overflow: hidden;
|
|
1353
|
-
`,
|
|
1353
|
+
`,Ui=s.dt.div`
|
|
1354
1354
|
display: flex;
|
|
1355
1355
|
transition: transform 0.5s ease-in-out;
|
|
1356
1356
|
transform: translateX(
|
|
1357
1357
|
${({$currentIndex:e})=>-e*100}%
|
|
1358
1358
|
);
|
|
1359
|
-
`,
|
|
1359
|
+
`,Yi=s.dt.div`
|
|
1360
1360
|
align-items: center;
|
|
1361
1361
|
display: flex;
|
|
1362
1362
|
justify-content: center;
|
|
1363
1363
|
min-width: 100%;
|
|
1364
|
-
`,
|
|
1364
|
+
`,Ki=s.dt.button`
|
|
1365
1365
|
${({theme:e,$isActive:n})=>`
|
|
1366
1366
|
background-color: ${n?e.palette.primary[400]:e.palette.white};
|
|
1367
1367
|
border: none;
|
|
@@ -1370,13 +1370,13 @@
|
|
|
1370
1370
|
height: ${e.spacing[.75]};
|
|
1371
1371
|
width: ${e.spacing[.75]};
|
|
1372
1372
|
`}
|
|
1373
|
-
`,
|
|
1373
|
+
`,qi=s.dt.div`
|
|
1374
1374
|
align-items: center;
|
|
1375
1375
|
display: flex;
|
|
1376
1376
|
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1377
1377
|
justify-content: center;
|
|
1378
1378
|
margin-top: ${({theme:e})=>e.spacing[2]};
|
|
1379
|
-
`,
|
|
1379
|
+
`,Xi=({slides:e,interval:n=300})=>{const{cycle:i,setCycle:a,setProgress:r}=St(n,e.length),o=g.useCallback(l=>()=>{a(l),r(0)},[a,r]);return t.jsxs(Gi,{"aria-roledescription":"carousel",children:[t.jsx(Ui,{$currentIndex:i,children:e.map((l,c)=>{const d=`slide-${c}`;return t.jsx(Yi,{"aria-label":d,"aria-roledescription":"slide",children:l.content},d)})}),t.jsx(qi,{children:e.map((l,c)=>{const d=`nav-button-${c}`;return t.jsx(Ki,{$isActive:c===i,"aria-label":`Go to slide ${c+1}`,"data-testid":c===i?"active":"inactive",onClick:o(c)},d)})})]})},Rt=s.dt.div`
|
|
1380
1380
|
${({theme:e})=>`
|
|
1381
1381
|
background-color: ${e.palette.gray[100]};
|
|
1382
1382
|
border-radius: ${e.spacing[.25]};
|
|
@@ -1428,7 +1428,7 @@
|
|
|
1428
1428
|
padding-bottom: unset;
|
|
1429
1429
|
}
|
|
1430
1430
|
`}
|
|
1431
|
-
`,
|
|
1431
|
+
`,Zi=s.dt.div`
|
|
1432
1432
|
${({theme:e})=>`
|
|
1433
1433
|
align-items: end;
|
|
1434
1434
|
background-color: ${e.palette.gray[100]};
|
|
@@ -1446,10 +1446,10 @@
|
|
|
1446
1446
|
background-color: ${e.palette.gray[200]};
|
|
1447
1447
|
}
|
|
1448
1448
|
`}
|
|
1449
|
-
`,
|
|
1449
|
+
`,Ji=({noCodeMessage:e="Code snippet not available",snippet:n})=>{const i=s.nt(),[a,r]=g.useState(!1),[o,l]=g.useState(!0),c=g.useCallback(()=>{r(x=>!x)},[r]),d=g.useCallback(()=>{if(s._.isNil(n)||s._.isEmpty(n)||!s._.isString(n))return l(!1),e;const x=n.split(`
|
|
1450
1450
|
`);return x.length>8&&!a?`${[...x].splice(0,7).join(`
|
|
1451
1451
|
`)}
|
|
1452
|
-
${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g
|
|
1452
|
+
${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(async()=>{await navigator.clipboard.writeText(p)},[p]);return t.jsxs(b,{bgColor:i.palette.gray[100],borderRadius:"4px",display:"inline-flex",minWidth:"565px",position:"relative",children:[t.jsx(Rt,{"data-private":!0,children:t.jsx("pre",{children:t.jsx("code",{className:"language-none",children:p})})}),t.jsxs(Zi,{children:[t.jsx(B,{height:i.spacing[2.5],icon:"copy",iconColor:i.palette.gray[700],iconSize:"xs",iconType:"fa-light",onClick:u,variant:"ghost",width:i.spacing[2.5]}),o?t.jsxs(R,{onClick:c,variant:"ghost",children:[a?"Show Less":"Show more",t.jsx(S,{icon:a?"chevron-up":"chevron-down",iconColor:i.palette.gray[700],iconSize:"xxs",iconType:"fa-light",ml:.25,onClick:u})]}):!1]})]})},Qi=({noCodeMessage:e="Code snippet not available",snippet:n,specific:i})=>(g.useEffect(()=>{s.prismExports.highlightAll()},[]),t.jsx(Rt,{"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})})})),{getVariant:ea}=G(e=>({fixed:`
|
|
1453
1453
|
width: 300px;
|
|
1454
1454
|
padding: ${e.spacing[1.25]};
|
|
1455
1455
|
overflow: hidden auto;
|
|
@@ -1471,13 +1471,13 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1471
1471
|
@media screen and (min-width: ${e.breakpoints.sm}) {
|
|
1472
1472
|
width: 32%;
|
|
1473
1473
|
}
|
|
1474
|
-
`})),
|
|
1474
|
+
`})),Ie=s.dt.div.attrs({className:"comp-modal fixed inset-0 overflow-auto"})`
|
|
1475
1475
|
align-items: center;
|
|
1476
1476
|
background-color: ${({$bgColor:e="rgb(52 64 84 / 70%)"})=>e};
|
|
1477
1477
|
display: flex;
|
|
1478
1478
|
justify-content: center;
|
|
1479
1479
|
z-index: 99999;
|
|
1480
|
-
`,
|
|
1480
|
+
`,xe=s.dt(b)`
|
|
1481
1481
|
${({theme:e,$size:n})=>`
|
|
1482
1482
|
background-color: ${e.palette.white};
|
|
1483
1483
|
border: 1px solid ${e.palette.gray[200]};
|
|
@@ -1503,9 +1503,9 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1503
1503
|
}
|
|
1504
1504
|
}
|
|
1505
1505
|
|
|
1506
|
-
${
|
|
1506
|
+
${ea(e,n)}
|
|
1507
1507
|
`}
|
|
1508
|
-
`,
|
|
1508
|
+
`,ta=s.dt.div`
|
|
1509
1509
|
${({theme:e})=>`
|
|
1510
1510
|
background-color: ${e.palette.white};
|
|
1511
1511
|
border-bottom: 1px solid ${e.palette.gray[200]};
|
|
@@ -1523,7 +1523,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1523
1523
|
padding: 0;
|
|
1524
1524
|
}
|
|
1525
1525
|
`}
|
|
1526
|
-
`,
|
|
1526
|
+
`,na=s.dt.div`
|
|
1527
1527
|
border-radius: ${({theme:e})=>`${e.spacing[.25]} ${e.spacing[.25]} 0 0`};
|
|
1528
1528
|
display: block;
|
|
1529
1529
|
overflow: unset;
|
|
@@ -1532,7 +1532,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1532
1532
|
max-width: 100%;
|
|
1533
1533
|
padding: ${({theme:e})=>`${e.spacing[1.25]}`};
|
|
1534
1534
|
position: sticky;
|
|
1535
|
-
`,
|
|
1535
|
+
`,ia=s.dt.div.attrs({className:"flex items-center justify-between mb-1.5"})``,aa=s.dt.div`
|
|
1536
1536
|
${({theme:e})=>`
|
|
1537
1537
|
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
1538
1538
|
display: flex;
|
|
@@ -1563,7 +1563,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1563
1563
|
margin-right: 0;
|
|
1564
1564
|
}
|
|
1565
1565
|
`}
|
|
1566
|
-
`,
|
|
1566
|
+
`,ra=s.dt.div`
|
|
1567
1567
|
img {
|
|
1568
1568
|
margin: 0 calc(-${({theme:e})=>e.spacing[1.25]} - 1px)
|
|
1569
1569
|
${({theme:e})=>e.spacing[1.25]};
|
|
@@ -1579,7 +1579,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1579
1579
|
margin-right: 0;
|
|
1580
1580
|
`:""}
|
|
1581
1581
|
}
|
|
1582
|
-
`,
|
|
1582
|
+
`,Dt=({alert:e,modalRef:n,confirmButton:i=void 0,cancelButton:a=void 0})=>{const{close:r}=n,o=g.useCallback(()=>{a!=null&&a.onClick&&a.onClick(),r()},[a,r]),l=g.useCallback(()=>{i!=null&&i.onClick&&i.onClick(),r()},[i,r]);return[i,a].some(d=>!s.lodashExports.isEmpty(d))?t.jsxs(b,{display:"flex",flexDirection:"column",gap:.625,position:"sticky",px:1.25,py:1.25,children:[e,t.jsx(aa,{children:t.jsxs("div",{children:[a&&t.jsx(R,{onClick:o,variant:"tertiary",width:"100%",children:a.text}),i&&t.jsx(R,{onClick:l,variant:"primary",width:"100%",children:i.text})]})})]}):null},oa=s.dt.button`
|
|
1583
1583
|
${({theme:e})=>`
|
|
1584
1584
|
align-items: center;
|
|
1585
1585
|
color: ${e.palette.gray[500]};
|
|
@@ -1599,7 +1599,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1599
1599
|
color: ${e.palette.gray[800]};
|
|
1600
1600
|
}
|
|
1601
1601
|
`}
|
|
1602
|
-
`,
|
|
1602
|
+
`,sa=s.dt.div`
|
|
1603
1603
|
${({theme:e})=>`
|
|
1604
1604
|
align-items: center;
|
|
1605
1605
|
border-bottom: 2px solid ${e.palette.gray[200]};
|
|
@@ -1608,11 +1608,11 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1608
1608
|
height: ${e.spacing[3]};
|
|
1609
1609
|
width: max-content;
|
|
1610
1610
|
`}
|
|
1611
|
-
`,
|
|
1611
|
+
`,la=(e,n,i)=>i?n==="secondary"?`3px solid ${e.palette.primary[100]}`:`3px solid ${e.palette.primary[500]}`:"unset",ca=s.dt.div`
|
|
1612
1612
|
display: flex;
|
|
1613
1613
|
flex-direction: row;
|
|
1614
1614
|
gap: ${({theme:e})=>e.spacing[.25]};
|
|
1615
|
-
border-bottom: ${({theme:e,$borderButton:n,$variant:i})=>
|
|
1615
|
+
border-bottom: ${({theme:e,$borderButton:n,$variant:i})=>la(e,i,n)};
|
|
1616
1616
|
align-items: center;
|
|
1617
1617
|
padding: ${({theme:e})=>e.spacing[.625]}
|
|
1618
1618
|
${({theme:e})=>e.spacing[.5]};
|
|
@@ -1651,7 +1651,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1651
1651
|
}
|
|
1652
1652
|
}
|
|
1653
1653
|
}
|
|
1654
|
-
`,
|
|
1654
|
+
`,da=s.dt(Q)`
|
|
1655
1655
|
${({theme:e,$variant:n})=>`
|
|
1656
1656
|
align-items: center;
|
|
1657
1657
|
background: ${n==="error"?e.palette.primary[400]:e.palette.warning[500]};
|
|
@@ -1664,14 +1664,14 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1664
1664
|
width: ${e.spacing[.5]};
|
|
1665
1665
|
height: ${e.spacing[.5]};
|
|
1666
1666
|
`}
|
|
1667
|
-
`,
|
|
1667
|
+
`,pa=s.dt.div`
|
|
1668
1668
|
align-items: center;
|
|
1669
1669
|
color: ${({theme:e})=>e.palette.white};
|
|
1670
1670
|
display: flex;
|
|
1671
1671
|
font-size: 6px;
|
|
1672
1672
|
font-weight: ${({theme:e})=>e.typography.weight.bold};
|
|
1673
1673
|
justify-content: center;
|
|
1674
|
-
`,
|
|
1674
|
+
`,Ft=g.forwardRef(function({numberIndicator:n,show:i,variant:a="error",...r},o){return t.jsx(da,{$variant:a,className:i?"flex":"hidden","data-testid":"notification-sign",ref:o,...r,children:n&&t.jsx(pa,{children:n<=9?n:9})})}),Pt=({end:e=!1,label:n,id:i,isActive:a=!1,link:r,notificationSign:o,onClick:l,tooltip:c="",variant:d="primary",tag:p})=>{const{pathname:u}=Ee.useLocation(),x=a||(d==="primary"?u.includes(r):u.endsWith(r));return t.jsx(U,{display:"flex",id:`${i}-tooltip`,tip:c,children:t.jsxs(ca,{$borderButton:x,$variant:d,children:[t.jsxs(Ee.NavLink,{end:e,id:i,onClick:l,to:r,children:[n,t.jsx(Ft,{left:o==null?void 0:o.left,numberIndicator:o==null?void 0:o.numberIndicator,show:o==null?void 0:o.show,top:o==null?void 0:o.top,variant:o==null?void 0:o.variant})]}),p===void 0?null:t.jsx(K,{tagLabel:`${p}`,variant:"default"})]})})},Ge=({items:e,borders:n=!0,box:i=!1,variant:a="primary"})=>{const r=s.nt();return t.jsx(b,{alignItems:"center",bgColor:r.palette.white,border:i?"1px solid":void 0,borderBottom:n?`1px solid ${r.palette.gray[300]}`:void 0,borderColor:i?r.palette.gray[200]:void 0,borderRadius:i?r.spacing[.25]:void 0,display:"inline-flex",gap:.25,id:"tablist",padding:i?[0,0,0,0]:void 0,pl:n?1.25:void 0,pr:n?1.25:void 0,role:"tablist",width:i?"max-content":"100%",children:e.map(({end:o,id:l,isActive:c,link:d,label:p,notificationSign:u,onClick:x,tag:f,tooltip:h})=>t.jsx(Pt,{end:o,id:l,isActive:c,label:p,link:d,notificationSign:u,onClick:x,tag:f,tooltip:h,variant:a},l))})},Lt=({tabItems:e,title:n,description:i,modalRef:a,otherActions:r,onClose:o})=>{const l=s.nt(),c=g.useCallback(()=>{o==null||o(),a.close()},[a,o]);return g.useEffect(()=>{const d=p=>{p.key==="Escape"&&c()};return window.addEventListener("keydown",d),()=>{window.removeEventListener("keydown",d)}},[c]),t.jsxs(t.Fragment,{children:[t.jsxs(na,{children:[t.jsxs(ia,{children:[typeof n=="string"?t.jsx(L,{fontWeight:"bold",lineSpacing:1.75,mr:1,size:"sm",children:n}):n,t.jsxs("div",{className:"items-center flex gap-3",children:[r,t.jsx(B,{icon:"close",iconColor:l.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:c,px:.25,py:.25,variant:"ghost"})]})]}),i&&s.lodashExports.isString(i)&&!s.lodashExports.isEmpty(i)?t.jsx(k,{mt:.5,size:"sm",children:i}):i]}),e&&t.jsx(b,{borderTop:`1px solid ${l.palette.gray[300]}`,display:"block",position:"sticky",children:t.jsx(Ge,{items:e})})]})},Wt=({disabled:e,id:n="modal-confirm",onCancel:i,onConfirm:a="submit",txtCancel:r,txtConfirm:o})=>{const l=a==="submit";return t.jsxs(b,{display:"flex",gap:.75,maxWidth:i?"392px":"190px",mt:1.5,children:[i?t.jsx(R,{id:`${n}-cancel`,justify:"center",onClick:i,variant:"tertiary",width:"100%",children:r??"Cancel"}):void 0,t.jsx(R,{disabled:e,id:n,justify:"center",onClick:l?void 0:a,type:l?"submit":"button",variant:"primary",width:"100%",children:o??"Confirm"})]})},Bt=({_portal:e=!0,alert:n,cancelButton:i=void 0,children:a=void 0,confirmButton:r=void 0,content:o=void 0,description:l="",modalRef:c,otherActions:d=void 0,onClose:p=void 0,tabItems:u,title:x="",size:f,id:h="modal-container"})=>{const y=()=>t.jsx(Ie,{"aria-label":c.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs(xe,{$size:f,"data-testid":h,id:h,children:[!s._.isEmpty(x)&&t.jsx(Lt,{description:l,modalRef:c,onClose:p,otherActions:d,tabItems:u,title:x}),(s._.isObject(o)||a)&&t.jsxs(ta,{children:[a,s._.isObject(o)&&s._.isString(o.imageSrc)&&t.jsx(ra,{$framed:o.imageFramed,children:t.jsx(_,{alt:"modal-img",publicId:o.imageSrc})}),s._.isObject(o)&&s._.isString(o.imageText)&&t.jsx(k,{size:"sm",children:o.imageText})]}),t.jsx(Dt,{alert:n,cancelButton:i,confirmButton:r,modalRef:c})]})});return e&&c.isOpen?V.createPortal(y(),document.getElementById("portals")??document.body):c.isOpen?y():null},ga=()=>{const[e,n]=g.useState(!1),[i,a]=g.useState(),r=g.useRef(null),o=Tt("confirm-dialog-modal"),l=g.useCallback(async u=>(a(u),n(!0),new Promise(x=>{r.current=x})),[]),c=g.useCallback(()=>{var u;n(!1),a(void 0),(u=r.current)==null||u.call(r,!0)},[]),d=g.useCallback(()=>{var u;n(!1),a(void 0),(u=r.current)==null||u.call(r,!1)},[]);return g.useEffect(()=>{o.setIsOpen(e)},[e,o]),{ConfirmDialog:({id:u="confirm-dialog-modal",children:x})=>t.jsx(Bt,{id:u,modalRef:{...o,close:d},size:"sm",title:i==null?void 0:i.title,children:t.jsxs(b,{display:"flex",flexDirection:"column",children:[x,i==null?void 0:i.message,t.jsx(Wt,{id:i==null?void 0:i.id,onCancel:d,onConfirm:c})]})}),confirm:l}},ua=s.dt.button`
|
|
1675
1675
|
display: flex;
|
|
1676
1676
|
position: relative;
|
|
1677
1677
|
height: 32px;
|
|
@@ -1694,7 +1694,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1694
1694
|
display: none;
|
|
1695
1695
|
}
|
|
1696
1696
|
}
|
|
1697
|
-
`,
|
|
1697
|
+
`,xa=s.dt.div`
|
|
1698
1698
|
${({theme:e})=>`
|
|
1699
1699
|
display: flex;
|
|
1700
1700
|
flex-direction: column;
|
|
@@ -1735,7 +1735,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1735
1735
|
}
|
|
1736
1736
|
}
|
|
1737
1737
|
`}
|
|
1738
|
-
`,Le=({containerRef:e,id:n})=>{const i=s.nt(),a=n==="desktop"?380:342,r=
|
|
1738
|
+
`,Le=({containerRef:e,id:n})=>{const i=s.nt(),a=n==="desktop"?380:342,r=g.useCallback(l=>()=>{if(e!=null&&e.current){const{current:c}=e;c.scrollBy({left:l==="right"?a:-a,behavior:"smooth"})}},[e,a]),o=g.useCallback(l=>t.jsxs(ua,{onClick:r(l),children:[t.jsx(S,{clickable:!0,icon:`circle-arrow-${l}`,iconClass:"hovered",iconColor:i.palette.gray[800],iconSize:"md",iconType:"fa-solid"}),t.jsx(S,{clickable:!0,icon:`circle-arrow-${l}`,iconClass:"uncover",iconColor:i.palette.gray[800],iconSize:"md",iconType:"fa-light"})]}),[r,i]);return t.jsxs(b,{alignItems:"center",display:"flex",gap:1,id:n,width:"max-content",children:[o("left"),o("right")]})},We=({tag:e,tagPosition:n})=>{const i=s.nt();return e?t.jsx(b,{alignItems:"center",bgColor:i.palette.white,borderRadius:"8px",display:"flex",justify:"center",margin:n==="top"?[.75,.75,.75,.75]:void 0,padding:[.25,.5,.25,.5],position:n==="top"?"absolute":"relative",top:"0",width:"max-content",children:t.jsx(k,{color:i.palette.gray[900],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:e})}):null},Ot=({eventDate:e})=>{const n=s.nt(),i=s.lodashExports.isEmpty(e)?null:e==null?void 0:e.split("-");if(i){const[a,r]=i;return t.jsxs(b,{alignItems:"center",bgColor:n.palette.white,borderRadius:"8px",display:"flex",flexDirection:"column",margin:[.75,.75,.75,.75],padding:[.75,1.5,.75,1.5],position:"absolute",right:"0",shadow:"md",top:"0",children:[t.jsx(L,{fontWeight:"semibold",lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:a}),t.jsx(k,{color:n.palette.gray[800],fontWeight:"semibold",lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:r.toUpperCase()})]})}return null},fa=s.dt.div`
|
|
1739
1739
|
${({theme:e})=>`
|
|
1740
1740
|
align-items: flex-start;
|
|
1741
1741
|
display: flex;
|
|
@@ -1780,7 +1780,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1780
1780
|
}
|
|
1781
1781
|
}
|
|
1782
1782
|
`}
|
|
1783
|
-
`,
|
|
1783
|
+
`,Mt=({author:e,buttonText:n,description:i,eventDate:a,href:r,imageId:o,mode:l="light",publishDate:c,readingTime:d,tag:p,tagPosition:u="top",title:x})=>{const f=s.nt(),h=c==null?void 0:c.split("-"),y=l==="dark",$=t.jsxs(fa,{"data-testid":`content-card-${x}`,children:[o||a||p&&u==="top"?t.jsxs(b,{id:"card-image",position:"relative",children:[o&&t.jsx(_,{publicId:o}),u==="top"&&t.jsx(We,{tag:p,tagPosition:u}),t.jsx(Ot,{eventDate:a})]}):void 0,t.jsxs(b,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.5,id:"card-content",children:[u==="bottom"&&t.jsx(We,{tag:p,tagPosition:u}),e||h||d?t.jsxs(b,{display:"flex",justify:"space-between",width:"100%",children:[e&&h&&t.jsx(k,{color:f.palette.gray[y?300:400],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:e+` • ${h[0]} ${h[1]}, ${h[2]}`}),d&&t.jsxs(b,{alignItems:"center",display:"flex",gap:.25,justify:"center",minWidth:"60px",children:[t.jsx(S,{icon:"eye",iconColor:f.palette.gray[y?300:400],iconSize:"xs",iconType:"fa-light"}),t.jsx(k,{color:f.palette.gray[y?300:400],size:"sm",sizeSm:"xs",textAlign:"right",children:d})]})]}):void 0,t.jsx(L,{className:`title-${l}`,color:y?f.palette.white:f.palette.gray[800],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:x}),i&&t.jsx(k,{color:f.palette.gray[y?100:600],size:"md",sizeSm:"sm",children:i}),n&&r&&t.jsx(R,{href:r,variant:"link",children:n})]})]});return r?t.jsx("a",{className:"flex w-fit",href:r,rel:"noopener noreferrer",target:"_self",children:$}):$},ha=({description:e,items:n,title:i,titleHighlighted:a})=>{const r=g.useRef(null);return t.jsxs(xa,{"data-testid":"content-card-carousel",children:[t.jsxs(b,{alignItems:"flex-start",display:"flex",justify:"space-between",children:[t.jsxs(b,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.625,maxWidth:"800px",children:[t.jsxs(L,{display:"inline",fontWeight:"semibold",lineSpacing:2.25,lineSpacingSm:1.75,size:"lg",sizeSm:"md",children:[i+" "," ",t.jsx("span",{className:"inline",children:a})]}),t.jsx(k,{lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:e})]}),t.jsx(Le,{containerRef:r,id:"desktop"})]}),t.jsx(b,{alignSelf:"stretch",display:"flex",id:"carousel",pb:1,pr:2.25,ref:r,scroll:"x",children:t.jsx(b,{alignItems:"flex-start",display:"flex",gap:1.5,width:"max-content",children:n.map((o,l)=>t.jsx(Mt,{...o},`${l}-${o.title}`))})}),t.jsx(Le,{containerRef:r,id:"mobile"})]})},J=g.forwardRef(function({color:n=v.palette.gray[100],mt:i=.5,mb:a=.5,...r},o){return t.jsx(b,{as:"hr",borderBottom:`1px solid ${n}`,mb:a,mt:i,ref:o,width:"100%",...r})}),Be=({buttonProps:e,variant:n})=>t.jsx(R,{onClick:e.onClick,variant:n,children:e.text}),ba=s.dt.div`
|
|
1784
1784
|
display: flex;
|
|
1785
1785
|
flex-direction: column;
|
|
1786
1786
|
align-items: center;
|
|
@@ -1788,7 +1788,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1788
1788
|
max-width: 900px;
|
|
1789
1789
|
white-space: pre-line;
|
|
1790
1790
|
margin: 0 auto;
|
|
1791
|
-
|
|
1791
|
+
`,$a=s.dt.div`
|
|
1792
1792
|
display: flex;
|
|
1793
1793
|
flex-direction: row;
|
|
1794
1794
|
justify-content: center;
|
|
@@ -1801,7 +1801,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1801
1801
|
> img {
|
|
1802
1802
|
width: 100%;
|
|
1803
1803
|
}
|
|
1804
|
-
`,
|
|
1804
|
+
`,ya=s.dt.div`
|
|
1805
1805
|
display: flex;
|
|
1806
1806
|
flex-direction: row;
|
|
1807
1807
|
margin: 0;
|
|
@@ -1814,7 +1814,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1814
1814
|
> *:last-child {
|
|
1815
1815
|
margin-right: 0;
|
|
1816
1816
|
}
|
|
1817
|
-
`,
|
|
1817
|
+
`,nt={md:{description:"md",title:"lg"},sm:{description:"sm",title:"xs"}},ma=({cancelButton:e=void 0,confirmButton:n=void 0,description:i,imageSrc:a="integrates/empty/addRoot",padding:r=1.25,title:o,size:l="md"})=>{const c=(n??e)!==void 0;return t.jsxs(ba,{$padding:r,children:[t.jsx($a,{children:t.jsx(_,{alt:"empty-icon",publicId:a})}),t.jsx(L,{fontWeight:"bold",lineSpacing:1.75,mb:.25,size:nt[l].title,textAlign:"center",children:o}),t.jsx(k,{mb:c?2:void 0,size:nt[l].description,textAlign:"center",children:i}),c?t.jsxs(ya,{children:[e&&t.jsx(Be,{buttonProps:e,variant:"tertiary"}),n&&t.jsx(Be,{buttonProps:n,variant:"primary"})]}):void 0]})},wa=s.dt.form`
|
|
1818
1818
|
${({theme:e})=>`
|
|
1819
1819
|
align-items: flex-start;
|
|
1820
1820
|
align-self: stretch;
|
|
@@ -1824,7 +1824,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1824
1824
|
overflow: hidden auto;
|
|
1825
1825
|
width: 100%;
|
|
1826
1826
|
`}
|
|
1827
|
-
`,
|
|
1827
|
+
`,ja=({alert:e,cancelLabel:n,children:i,id:a="modal-confirm",mode:r,onCancel:o,onSubmit:l,showButtons:c=!0,submitLabel:d,submitDisabled:p=!1,yupSchema:u,...x})=>{const f=s.nt(),h=s.useForm({...x,mode:r??"all",resolver:u?s.o(u):void 0}),{control:y,getValues:$,setValue:m,register:w,watch:j,formState:{errors:C,isValid:z,dirtyFields:T}}=h,P=O=>g.Children.map(O,F=>{var E;if(F&&g.isValidElement(F)){const N=F.props.children,W=F.props.name?g.createElement(F.type,{...F.props,control:y,error:(E=C[F.props.name])==null?void 0:E.message,isValid:z,isTouched:T[F.props.name],register:w,setValue:m,value:$(F.props.name),watch:j,key:F.props.name}):F;return N?g.createElement(W.type,{...W.props,children:P(N)}):W}return F});return t.jsx(s.FormProvider,{...h,children:t.jsx(wa,{onSubmit:h.handleSubmit(l),children:t.jsxs(b,{scroll:"y",width:"100%",children:[t.jsx(b,{borderRadius:`0 0 ${f.spacing[.25]} ${f.spacing[.25]}`,display:"flex",flexDirection:"column",gap:.5,height:e?"calc(100% - 139px)":"calc(100% - 83px)",px:1.5,py:1.5,scroll:"y",children:P(i)}),c&&t.jsxs(b,{borderRadius:`0 0 ${f.spacing[.25]} ${f.spacing[.25]}`,borderTop:`1px solid ${f.palette.gray[200]}`,display:"flex",flexDirection:"column",gap:.625,position:"sticky",px:1.25,py:1.25,children:[e,t.jsxs(b,{display:"flex",gap:.75,maxWidth:"392px",children:[o?t.jsx(R,{id:`${a}-cancel`,justify:"center",onClick:o,type:"reset",variant:"tertiary",width:"100%",children:n??"Cancel"}):void 0,t.jsx(R,{disabled:p,id:a,justify:"center",type:"submit",width:"100%",children:d??"Confirm"})]})]})]})})})},ka=s.dt(Q)`
|
|
1828
1828
|
display: grid;
|
|
1829
1829
|
gap: ${({$gap:e=1.25})=>`${e}rem`};
|
|
1830
1830
|
grid-template-columns: ${({$sm:e})=>`repeat(${e}, 1fr)`};
|
|
@@ -1842,7 +1842,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1842
1842
|
grid-template-columns: repeat(${n}, 1fr);
|
|
1843
1843
|
}
|
|
1844
1844
|
`}
|
|
1845
|
-
`,
|
|
1845
|
+
`,Ca=g.forwardRef(function({children:n,md:i,sm:a,lg:r,xl:o,gap:l,...c},d){return t.jsx(ka,{$gap:l,$lg:r,$md:i,$sm:a,$xl:o,ref:d,...c,children:n})}),va=s.dt.div`
|
|
1846
1846
|
${({theme:e,$itemsLength:n})=>`
|
|
1847
1847
|
display: flex;
|
|
1848
1848
|
background-color: ${e.palette.white};
|
|
@@ -1878,7 +1878,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1878
1878
|
background-color: ${e.palette.gray[100]};
|
|
1879
1879
|
}
|
|
1880
1880
|
`}
|
|
1881
|
-
`,
|
|
1881
|
+
`,At=({isSelected:e=!1,label:n,onSelect:i})=>{const a=s.nt(),r=g.useCallback(()=>{i&&i(n)},[i,n]);return t.jsxs(Ue,{$isSelected:e,onClick:r,children:[e?t.jsx(S,{icon:"check",iconColor:a.palette.gray[800],iconSize:"md"}):null,t.jsx(k,{color:a.palette.gray[800],fontWeight:"bold",size:"sm",children:n})]})},Sa=s.dt.input`
|
|
1882
1882
|
${({theme:e})=>`
|
|
1883
1883
|
background: none;
|
|
1884
1884
|
border: none !important;
|
|
@@ -1894,7 +1894,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1894
1894
|
color: ${e.palette.gray[400]};
|
|
1895
1895
|
}
|
|
1896
1896
|
`}
|
|
1897
|
-
`,
|
|
1897
|
+
`,za=s.dt.div`
|
|
1898
1898
|
${({theme:e})=>`
|
|
1899
1899
|
align-items: center;
|
|
1900
1900
|
background-color: ${e.palette.white};
|
|
@@ -1914,13 +1914,13 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1914
1914
|
border: 2px solid ${e.palette.black};
|
|
1915
1915
|
}
|
|
1916
1916
|
`}
|
|
1917
|
-
`,
|
|
1917
|
+
`,Ia=s.dt.div`
|
|
1918
1918
|
${({theme:e})=>`
|
|
1919
1919
|
background-color: ${e.palette.white};
|
|
1920
1920
|
border-radius: ${e.spacing[.5]};
|
|
1921
1921
|
width: 250px;
|
|
1922
1922
|
`}
|
|
1923
|
-
`,
|
|
1923
|
+
`,ae=g.forwardRef(function({name:n,smallSearch:i=!1,value:a,...r},o){const l=s.nt(),[c,d]=g.useState(!1),{refs:p,floatingStyles:u}=s.useFloating(),x=g.useCallback(()=>{d(h=>!h)},[]);Z(p.floating.current,()=>{d(!1)},!0);const f=t.jsxs(za,{children:[t.jsx(S,{icon:"magnifying-glass",iconColor:l.palette.gray[700],iconSize:"xs",iconType:"fa-light"}),t.jsx(Sa,{...r,id:n,name:n,ref:o,value:a}),!s.lodashExports.isEmpty(a)&&t.jsx(B,{icon:"xmark",iconColor:l.palette.gray[300],iconSize:"xs",iconType:"fa-light",px:.25,py:.25,type:"reset",variant:"ghost"})]});return i?t.jsxs(g.Fragment,{children:[t.jsx(B,{border:`1px solid ${l.palette.gray[300]} !important`,icon:"magnifying-glass",iconSize:"xs",iconType:"fa-light",onClick:x,ref:p.setReference,variant:"ghost"}),c?t.jsx(Ia,{ref:p.setFloating,style:u,children:f}):void 0]}):f}),Ta=({isOpen:e=!0,items:n,handleNewOrganization:i,onSelect:a,onClose:r,selectedItem:o,title:l,variant:c})=>{const d=s.nt(),[p,u]=g.useState(n),[x,f]=g.useState(""),h=g.useCallback(m=>{u(w=>w.filter(j=>String(j.name).toLowerCase().includes(m.toLocaleLowerCase())))},[u]),y=g.useCallback(m=>{m.currentTarget&&(f(m.currentTarget.value),h(m.currentTarget.value))},[f,h]);g.useEffect(()=>{u(n),h(x)},[n,h,x]);const $=()=>t.jsx(b,{"aria-modal":"true",className:"comp-modal fixed inset-0 overflow-auto",zIndex:99999,children:t.jsx(b,{alignItems:"center",bgColor:"rgb(52 64 84 / 70%)",display:"flex",height:"100vh",justify:"center",left:"0",top:"0",width:"100%",children:t.jsxs(va,{$itemsLength:p.length,children:[t.jsxs(b,{alignItems:"center",display:"flex",justify:"space-between",children:[t.jsx(k,{color:d.palette.gray[800],fontWeight:"bold",size:"lg",children:l}),t.jsx(B,{icon:"xmark",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:r,variant:"ghost"})]}),t.jsx(b,{mt:1,children:t.jsx(ae,{onInput:y,placeholder:"Search"})}),t.jsx(J,{mb:1,mt:1}),t.jsxs(b,{display:"inline-flex",gap:1,maxHeight:"332px",scroll:"y",wrap:"wrap",children:[c==="organization-selector"?t.jsx(Ue,{onClick:i,children:t.jsxs(b,{alignItems:"center",display:"flex",children:[t.jsx(S,{icon:"square-plus",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",mr:.5}),t.jsx(k,{color:d.palette.gray[400],size:"sm",children:"New organization"})]})}):void 0,p.map(m=>t.jsx(At,{isSelected:o.toLowerCase()===m.name,label:m.name.charAt(0).toUpperCase()+m.name.slice(1),onSelect:a},m.name))]})]})})});return e?V.createPortal($(),document.body):t.jsx("div",{})},Na=({description:e,height:n="auto",leftIconName:i,children:a,rightIconName:r,title:o,tooltipId:l,tooltipTip:c,tooltipPlace:d="bottom",variant:p="centered",width:u="318px"})=>{const x=s.nt(),f=p==="centered",h=t.jsx(U,{icon:r??i,iconColor:x.palette.gray[800],id:l,place:d,tip:c});return t.jsxs(b,{alignItems:f?"center":"flex-start",bgColor:x.palette.gray[50],border:`1px solid ${x.palette.gray[200]}`,borderRadius:"4px",display:"inline-flex",flexDirection:f?"column":"column-reverse",gap:.5,height:n,justify:"center",padding:[1.25,1.25,1.25,1.25],width:u,children:[t.jsxs(b,{alignItems:"center",display:"flex",gap:.5,children:[f||s.lodashExports.isUndefined(i)?void 0:h,t.jsx(k,{color:f?x.palette.gray[800]:x.palette.gray[400],size:"md",textAlign:f?"center":"start",children:e}),f||s.lodashExports.isUndefined(r)?void 0:h]}),t.jsxs(b,{alignItems:"center",display:"flex",gap:.5,my:.5,children:[f&&!s.lodashExports.isUndefined(i)?h:void 0,t.jsxs("div",{style:{display:"flex",gap:"12px"},children:[s.lodashExports.isUndefined(o)?void 0:t.jsx(L,{fontWeight:"bold",size:"md",children:o}),a]}),f&&!s.lodashExports.isUndefined(r)?h:void 0]})]})},Ea=({actions:e,children:n,header:i,title:a,tabs:r,footer:o})=>{const l=s.nt();return t.jsxs(b,{alignItems:"flex-start",bgColor:l.palette.white,borderLeft:`1px solid ${l.palette.gray[300]}`,display:"flex",flexDirection:"column",maxHeight:"750px",width:"480px",children:[t.jsxs(b,{alignItems:"flex-start",alignSelf:"stretch",borderBottom:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.25,justify:"space-between",px:1.25,py:1,children:[t.jsxs(b,{display:"flex",flexDirection:"column",gap:.25,children:[t.jsx(k,{color:l.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:a}),i]}),e&&t.jsx(b,{display:"flex",gap:.25,children:e.map(({icon:c,onClick:d},p)=>t.jsx(B,{icon:c??"paper-plane",iconColor:l.palette.gray[400],iconSize:"xxs",iconType:"fa-light",onClick:d,variant:"ghost"},`${p}-${c}`))})]}),t.jsx(b,{display:"flex",pt:.25,width:"100%",children:t.jsx(Ge,{items:r})}),t.jsx(b,{alignSelf:"stretch",display:"flex",flexDirection:"column",px:1.25,py:1,scroll:"y",children:n}),o&&t.jsx(b,{alignSelf:"stretch",borderTop:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.5,justify:"end",px:1.25,py:1,children:o.map(({icon:c,text:d,onClick:p},u)=>t.jsx(R,{icon:c,onClick:p,variant:u===0?"primary":"tertiary",width:"100%",children:d},`${u}-${d}`))})]})},Ra=s.dt.div`
|
|
1924
1924
|
${({theme:e})=>`
|
|
1925
1925
|
align-items: flex-start;
|
|
1926
1926
|
backdrop-filter: blur(3.15px);
|
|
@@ -1972,7 +1972,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1972
1972
|
}
|
|
1973
1973
|
}
|
|
1974
1974
|
`}
|
|
1975
|
-
`,
|
|
1975
|
+
`,Da=s.dt.div`
|
|
1976
1976
|
align-items: center;
|
|
1977
1977
|
position: absolute;
|
|
1978
1978
|
justify-content: center;
|
|
@@ -1986,7 +1986,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1986
1986
|
height: 260px;
|
|
1987
1987
|
width: 260px;
|
|
1988
1988
|
}
|
|
1989
|
-
`,
|
|
1989
|
+
`,Ht=({icon:e})=>t.jsx(Da,{children:t.jsx(S,{icon:e,iconColor:v.palette.white,iconSize:"xs",iconTransform:"shrink-2",iconType:"fa-light"})}),Fa=({category:e,description:n,href:i,icon:a,location:r,title:o})=>{const l=s.nt();return t.jsxs(Ra,{children:[t.jsxs(b,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:1.5,height:"100%",id:"uncover",justify:"space-between",children:[t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx(k,{color:l.palette.white,size:"sm",sizeSm:"xs",children:e}),t.jsx(L,{color:l.palette.white,fontWeight:"bold",lineSpacing:2.25,lineSpacingSm:1.75,size:"lg",sizeSm:"md",children:o})]}),t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx(k,{color:l.palette.white,size:"sm",sizeSm:"xs",children:"Location"}),t.jsx(k,{color:l.palette.white,fontWeight:"bold",lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:r})]})]}),t.jsxs(b,{alignItems:"self-start",display:"flex",flexDirection:"column",gap:2,height:"100%",id:"hovered",justify:"space-between",pt:1,children:[t.jsx(L,{color:l.palette.white,fontWeight:"bold",lineSpacing:1.75,lineSpacingSm:1.5,size:"md",sizeSm:"sm",children:o}),t.jsxs("div",{className:"flex flex-col gap-8",children:[t.jsx(k,{color:l.palette.gray[100],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:n}),t.jsx(R,{external:!0,href:i,variant:"link",width:"max-content",children:"Download now"})]})]}),t.jsx(Ht,{icon:a})]})},Pa=s.dt.button`
|
|
1990
1990
|
${({theme:e})=>`
|
|
1991
1991
|
align-items: center;
|
|
1992
1992
|
border-left: 3px solid transparent;
|
|
@@ -2029,7 +2029,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2029
2029
|
}
|
|
2030
2030
|
}
|
|
2031
2031
|
`}
|
|
2032
|
-
`,
|
|
2032
|
+
`,La=s.dt.div`
|
|
2033
2033
|
${({theme:e})=>`
|
|
2034
2034
|
align-items: center;
|
|
2035
2035
|
background-color: transparent;
|
|
@@ -2059,7 +2059,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2059
2059
|
color: ${e.palette.gray[800]};
|
|
2060
2060
|
}
|
|
2061
2061
|
`}
|
|
2062
|
-
`,
|
|
2062
|
+
`,Wa=s.dt.div`
|
|
2063
2063
|
${({theme:e})=>`
|
|
2064
2064
|
background-color: ${e.palette.white};
|
|
2065
2065
|
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
@@ -2074,7 +2074,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2074
2074
|
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
2075
2075
|
}
|
|
2076
2076
|
`}
|
|
2077
|
-
`,
|
|
2077
|
+
`,Ba=s.dt.div`
|
|
2078
2078
|
${({theme:e})=>`
|
|
2079
2079
|
align-items: flex-start;
|
|
2080
2080
|
cursor: pointer;
|
|
@@ -2096,11 +2096,11 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2096
2096
|
}
|
|
2097
2097
|
}
|
|
2098
2098
|
`}
|
|
2099
|
-
`,
|
|
2099
|
+
`,_t=({disabled:e=!1,mode:n,onClick:i,text:a})=>t.jsx(Pa,{className:`${e&&"disabled"} ${n}`,disabled:e,onClick:i,children:t.jsx(k,{color:"inherit",size:"sm",sizeSm:"xs",children:a})}),Oa=[{text:"EN"},{text:"ES"}],Ma=({items:e,handleClick:n,mode:i="light"})=>{const a=e??Oa,[r,o]=g.useState(a[0].text),l=g.useCallback(c=>()=>{n(c.text),o(c.text)},[n]);return t.jsxs(Ba,{children:[t.jsxs(La,{className:i,children:[t.jsx(S,{icon:"globe",iconSize:"xs",iconType:"fa-light"}),r]}),t.jsx(Wa,{children:a.map((c,d)=>t.jsx(_t,{disabled:c.disabled,mode:i,onClick:l(c),text:c.text},`${c.text}_${d}`))})]})},Aa=s.dt.div.attrs({className:"flex flex-wrap justify-center pv3 w-100"})``,Ha=s.dt.div.attrs({className:"flex flex-wrap items-center justify-start mb2"})`
|
|
2100
2100
|
gap: 12px;
|
|
2101
|
-
`,
|
|
2101
|
+
`,_a=s.dt.div.attrs({className:"flex flex-wrap items-center justify-end mb2"})`
|
|
2102
2102
|
gap: 8px;
|
|
2103
|
-
`,
|
|
2103
|
+
`,be=e=>e===void 0?"flex-grow: 1;":`width: calc(${e}00% / var(--cols));`,Va=s.dt.div.attrs({className:"comp-col"})`
|
|
2104
2104
|
word-break: break-word;
|
|
2105
2105
|
|
|
2106
2106
|
${({$width:e=null})=>e===null?"":`width: ${e}`};
|
|
@@ -2108,23 +2108,23 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2108
2108
|
${({$paddingTop:e})=>`padding-top: ${e??0}px;`}
|
|
2109
2109
|
|
|
2110
2110
|
@media (width <= 768px) {
|
|
2111
|
-
${({$sm:e})=>
|
|
2111
|
+
${({$sm:e})=>be(e)}
|
|
2112
2112
|
}
|
|
2113
2113
|
|
|
2114
2114
|
@media (width >= 768px) and (width <= 992px) {
|
|
2115
|
-
${({$md:e})=>
|
|
2115
|
+
${({$md:e})=>be(e)}
|
|
2116
2116
|
}
|
|
2117
2117
|
|
|
2118
2118
|
@media (width >= 992px) {
|
|
2119
|
-
${({$lg:e})=>
|
|
2119
|
+
${({$lg:e})=>be(e)}
|
|
2120
2120
|
}
|
|
2121
2121
|
|
|
2122
|
-
${({$xl:e})=>s.isNumber(e)?`@media (min-width: 1200px) { ${
|
|
2122
|
+
${({$xl:e})=>s.isNumber(e)?`@media (min-width: 1200px) { ${be(e)} }`:""}
|
|
2123
2123
|
|
|
2124
2124
|
> .comp-card {
|
|
2125
2125
|
height: 100%;
|
|
2126
2126
|
}
|
|
2127
|
-
`,
|
|
2127
|
+
`,Ga=({children:e,xl:n,lg:i,md:a,sm:r,paddingTop:o,width:l})=>t.jsx(Va,{$lg:i,$md:a,$paddingTop:o,$sm:r,$width:l,$xl:n,children:e}),Ua=s.dt.div.attrs({className:"comp-gap"})`
|
|
2128
2128
|
${({$disp:e="flex",$mh:n=4,$mv:i=4})=>`
|
|
2129
2129
|
align-items: center;
|
|
2130
2130
|
display: ${e};
|
|
@@ -2134,7 +2134,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2134
2134
|
margin: ${i}px ${n}px;
|
|
2135
2135
|
}
|
|
2136
2136
|
`}
|
|
2137
|
-
`,
|
|
2137
|
+
`,Ya=({children:e,disp:n,mh:i,mv:a})=>t.jsx(Ua,{$disp:n,$mh:i,$mv:a,children:e}),Ka=s.dt.div.attrs({className:"comp-row flex flex-row flex-wrap"})`
|
|
2138
2138
|
${({$align:e="stretch",$cols:n=100,$colsPadding:i=6,$justify:a="start"})=>`
|
|
2139
2139
|
align-items: ${e};
|
|
2140
2140
|
justify-content: ${a};
|
|
@@ -2152,7 +2152,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2152
2152
|
padding: ${i}px;
|
|
2153
2153
|
}
|
|
2154
2154
|
`}
|
|
2155
|
-
`,
|
|
2155
|
+
`,qa=({align:e,children:n,cols:i,colsPadding:a,justify:r})=>t.jsx(Ka,{$align:e,$cols:i,$colsPadding:a,$justify:r,children:n}),Xa=s.dt.li`
|
|
2156
2156
|
${({theme:e})=>`
|
|
2157
2157
|
align-items: center;
|
|
2158
2158
|
background-color: ${e.palette.white};
|
|
@@ -2200,7 +2200,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2200
2200
|
background-color: ${e.palette.gray[100]};
|
|
2201
2201
|
}
|
|
2202
2202
|
`}
|
|
2203
|
-
`,
|
|
2203
|
+
`,Vt=s.dt.ul`
|
|
2204
2204
|
${({theme:e})=>`
|
|
2205
2205
|
background-color: ${e.palette.white};
|
|
2206
2206
|
border: 1px solid ${e.palette.gray[200]};
|
|
@@ -2211,7 +2211,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2211
2211
|
min-width: 240px;
|
|
2212
2212
|
padding: ${e.spacing[.25]} 0 ${e.spacing[.25]} 0;
|
|
2213
2213
|
`}
|
|
2214
|
-
`,
|
|
2214
|
+
`,fe=({children:e,disabled:n=!1,icon:i,iconType:a="fa-light",href:r,onClick:o,onClickIcon:l,onKeyDown:c,rightIcon:d,selected:p=!1,value:u,...x})=>{const h=s.nt().palette.gray[n?300:800],y=n?g.Children.map(e,$=>g.isValidElement($)?g.cloneElement($,{disabled:n,...$.props}):$):e;return t.jsxs(Xa,{"aria-disabled":n,"aria-label":u,"aria-selected":p,"data-testid":u,onClick:o,onKeyDown:c,value:u,...x,children:[i!==void 0||u!==void 0?t.jsxs(b,{alignItems:"center",display:"flex",gap:.625,children:[i?t.jsx(S,{disabled:n,icon:i,iconColor:h,iconSize:"xs",iconType:a}):null,r===void 0?y:t.jsx(X,{href:r,children:y})]}):null,p||d?t.jsx(S,{disabled:n,icon:d??"check",iconColor:h,iconSize:"xs",iconType:a,onClick:l}):null]})},Za=s.dt.span`
|
|
2215
2215
|
${({theme:e,$bgColor:n=e.palette.secondary[500],$txtDecoration:i="none"})=>`
|
|
2216
2216
|
background-color: ${n};
|
|
2217
2217
|
border-radius: 5px;
|
|
@@ -2220,14 +2220,14 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2220
2220
|
padding: ${e.spacing[.125]} ${e.spacing[.25]} ${e.spacing[.125]} ${e.spacing[.25]};
|
|
2221
2221
|
text-decoration: ${i}
|
|
2222
2222
|
`}
|
|
2223
|
-
`,
|
|
2223
|
+
`,Ja=({bgColor:e,children:n,txtDecoration:i,ml:a=1})=>t.jsx(Za,{$bgColor:e,$txtDecoration:i,className:`ml-${a}`,children:n}),Qa={lg:"56",md:"30",sm:"12"},{getVariant:er}=G(e=>({red:`stroke: ${e.palette.primary[500]};`,white:`stroke: ${e.palette.white};`})),tr=s.mt`
|
|
2224
2224
|
0% {
|
|
2225
2225
|
transform: rotateZ(0deg);
|
|
2226
2226
|
}
|
|
2227
2227
|
100% {
|
|
2228
2228
|
transform: rotateZ(360deg)
|
|
2229
2229
|
}
|
|
2230
|
-
`,
|
|
2230
|
+
`,nr=s.mt`
|
|
2231
2231
|
0%,
|
|
2232
2232
|
25% {
|
|
2233
2233
|
stroke-dashoffset: 280;
|
|
@@ -2244,16 +2244,16 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2244
2244
|
stroke-dashoffset: 280;
|
|
2245
2245
|
transform: rotate(360deg);
|
|
2246
2246
|
}
|
|
2247
|
-
`,
|
|
2247
|
+
`,ir=s.dt.svg`
|
|
2248
2248
|
${({$size:e="md"})=>s.lt`
|
|
2249
|
-
animation: ${
|
|
2249
|
+
animation: ${tr} 2s linear infinite;
|
|
2250
2250
|
animation-timing-function: linear;
|
|
2251
2251
|
display: inline-block;
|
|
2252
|
-
width: ${
|
|
2252
|
+
width: ${Qa[e]}px;
|
|
2253
2253
|
`}
|
|
2254
|
-
`,
|
|
2254
|
+
`,ar=s.dt.circle`
|
|
2255
2255
|
${({theme:e,$color:n="red"})=>s.lt`
|
|
2256
|
-
animation: 1.4s ease-in-out infinite both ${
|
|
2256
|
+
animation: 1.4s ease-in-out infinite both ${nr};
|
|
2257
2257
|
display: block;
|
|
2258
2258
|
fill: transparent;
|
|
2259
2259
|
stroke-linecap: round;
|
|
@@ -2262,9 +2262,9 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2262
2262
|
stroke-width: 10px;
|
|
2263
2263
|
transform-origin: 50% 50%;
|
|
2264
2264
|
|
|
2265
|
-
${
|
|
2265
|
+
${er(e,n)}
|
|
2266
2266
|
`}
|
|
2267
|
-
`,
|
|
2267
|
+
`,rr=s.dt.circle`
|
|
2268
2268
|
display: block;
|
|
2269
2269
|
fill: transparent;
|
|
2270
2270
|
stroke: ${({theme:e})=>e.palette.gray[200]};
|
|
@@ -2272,13 +2272,13 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2272
2272
|
stroke-width: 10px;
|
|
2273
2273
|
transform-origin: 50% 50%;
|
|
2274
2274
|
opacity: ${({$color:e})=>e==="white"?"20%":"unset"};
|
|
2275
|
-
`,
|
|
2275
|
+
`,or=({color:e="red",label:n,size:i})=>{const a=s.nt();return t.jsxs(b,{alignItems:"center",display:"flex",children:[t.jsxs(ir,{$size:i,viewBox:"0 0 100 100",children:[t.jsx(rr,{$color:e,cx:"50",cy:"50",r:"45"}),t.jsx(ar,{$color:e,cx:"50",cy:"50",r:"45"})]}),n&&t.jsx(k,{color:e==="red"?a.palette.gray[700]:a.palette.white,ml:.5,size:"sm",children:n})]})},sr=s.dt.div`
|
|
2276
2276
|
display: flex;
|
|
2277
2277
|
height: 80px;
|
|
2278
2278
|
max-width: 1440px;
|
|
2279
2279
|
overflow: hidden;
|
|
2280
2280
|
position: relative;
|
|
2281
|
-
`,
|
|
2281
|
+
`,it=s.dt.div`
|
|
2282
2282
|
height: 79px;
|
|
2283
2283
|
width: 64px;
|
|
2284
2284
|
flex-shrink: 0;
|
|
@@ -2302,7 +2302,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2302
2302
|
);
|
|
2303
2303
|
right: 0;
|
|
2304
2304
|
}
|
|
2305
|
-
`,
|
|
2305
|
+
`,lr=s.dt.div`
|
|
2306
2306
|
display: flex;
|
|
2307
2307
|
gap: 40px;
|
|
2308
2308
|
animation: clients-animation 50s linear infinite;
|
|
@@ -2317,7 +2317,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2317
2317
|
transform: translateX(calc(-180px * 15));
|
|
2318
2318
|
}
|
|
2319
2319
|
}
|
|
2320
|
-
`,
|
|
2320
|
+
`,cr=["airs/clients-carousel/color/bancolombia","airs/clients-carousel/color/itau_colombia","airs/clients-carousel/color/lulo_bank","airs/clients-carousel/color/oxxo_international","airs/clients-carousel/color/interbank","airs/clients-carousel/color/global_bank","airs/clients-carousel/color/gesa","airs/clients-carousel/color/copa_airlines","airs/clients-carousel/color/consubanco","airs/clients-carousel/color/bantrab","airs/clients-carousel/color/banistmo","airs/clients-carousel/color/banco_internacional","airs/clients-carousel/color/banco_general","airs/clients-carousel/color/banbif","airs/clients-carousel/color/avianca"],dr=({fusion:e=!1,logos:n=cr})=>t.jsxs(sr,{children:[e&&t.jsx(it,{className:"left"}),t.jsx(lr,{children:[...n,...n].map((i,a)=>t.jsx(_,{alt:`${i}-${a}`,height:"80px",plugins:[s.placeholder()],publicId:i,width:"140px"},`${i}-${a}`))}),e&&t.jsx(it,{className:"right"})]}),pr={company:{height:"83px",width:"460px"},footer:{height:"57px",width:"315px"},header:{height:"35px",width:"160px"},icon:{height:"40px",width:"40px"},inline:{width:"150px"}},gr=({publicId:e,variant:n})=>t.jsx(b,{...pr[n],children:t.jsx(_,{alt:"logo",publicId:e})}),ur=({children:e,commitSha:n,commitShortSha:i,parentElement:a,userInfo:r,setVisibility:o})=>{const l=s.nt(),{userName:c,email:d,phone:p,userRole:u}=r;return Z(a,()=>{o(!1)}),t.jsxs(Vt,{children:[t.jsx("li",{className:"user-info",children:t.jsxs(b,{display:"inline-flex",gap:.25,width:"100%",children:[t.jsxs(b,{display:"flex",flexDirection:"column",gap:.25,width:"100%",children:[t.jsx(k,{color:l.palette.gray[800],fontWeight:"bold",size:"sm",children:c}),t.jsx(k,{color:l.palette.gray[400],size:"sm",children:d}),s.lodashExports.isUndefined(p)?void 0:t.jsx(k,{color:l.palette.gray[400],size:"sm",children:p})]}),t.jsx(b,{children:t.jsx(K,{tagLabel:u,variant:"role"})})]})}),t.jsx(J,{}),e,t.jsx(J,{}),t.jsx("li",{className:"commit-info",children:t.jsx(X,{href:`https://gitlab.com/fluidattacks/universe/-/tree/${n}`,iconPosition:"hidden",children:t.jsx(k,{color:l.palette.gray[400],size:"xs",children:`commit : ${i}`})})})]})},xr=s.dt.button`
|
|
2321
2321
|
align-items: center;
|
|
2322
2322
|
background-color: transparent;
|
|
2323
2323
|
border: unset;
|
|
@@ -2328,32 +2328,38 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2328
2328
|
padding: 0;
|
|
2329
2329
|
|
|
2330
2330
|
&:hover p {
|
|
2331
|
-
color: ${
|
|
2331
|
+
color: ${v.palette.primary[200]};
|
|
2332
2332
|
}
|
|
2333
2333
|
|
|
2334
2334
|
&:hover span {
|
|
2335
|
-
color: ${
|
|
2335
|
+
color: ${v.palette.primary[200]};
|
|
2336
2336
|
}
|
|
2337
|
-
`,
|
|
2337
|
+
`,fr=e=>e==="platform"?{normal:"sm",small:void 0}:{normal:"md",small:"sm"},hr=({message:e,onClickButton:n,buttonText:i,buttonFontWeight:a="regular",icon:r,onClose:o,variant:l="web"})=>{const c=s.nt(),[d,p]=g.useState(!0),u=g.useCallback(()=>{p(!1),o==null||o()},[o]),x=fr(l);return t.jsxs(b,{alignItems:"center",bgGradient:c.palette.gradients["01"],display:d?"flex":"none",id:"message-banner",justify:"space-between",padding:[.75,.75,.75,.75],children:[t.jsxs(b,{display:"flex",gap:.5,justify:"center",width:"100%",children:[t.jsx(b,{children:typeof e=="string"?t.jsx(k,{color:c.palette.white,display:"inline",size:x.normal,sizeSm:x.small,children:e}):e}),n?t.jsxs(xr,{onClick:n,children:[t.jsx(k,{color:c.palette.white,fontWeight:a,size:x.normal,sizeSm:x.small,textDecoration:"underline",children:i}),t.jsx(S,{icon:r??"arrow-right",iconColor:c.palette.white,iconSize:"xs",iconType:a==="bold"?"fa-regular":"fa-light"})]}):void 0]}),t.jsx(S,{clickable:!0,hoverColor:c.palette.primary[200],icon:"close",iconColor:c.palette.white,iconSize:"xs",iconType:"fa-light",onClick:u})]})},br=s.dt(fe)`
|
|
2338
2338
|
margin-top: 10px;
|
|
2339
2339
|
border: 1px solid ${({theme:e})=>e.palette.gray[300]};
|
|
2340
2340
|
border-radius: 4px;
|
|
2341
2341
|
min-width: unset;
|
|
2342
|
-
`,
|
|
2342
|
+
`,Gt=({items:e,onReorder:n,title:i,description:a,onClickClose:r})=>{const o=g.useCallback(l=>()=>{r(l)},[r]);return t.jsxs(s.ReorderGroup,{as:"div",axis:"y",layoutScroll:!0,onReorder:n,style:{overflowY:"auto",width:"content-fit"},values:e,children:[t.jsxs(b,{display:"flex",gap:.25,children:[t.jsx(L,{display:"flex",size:"xs",children:i}),t.jsx(K,{priority:"high",tagLabel:String(e.length),variant:"error"})]}),t.jsx(k,{size:"sm",children:a}),e.map(l=>l.visible?t.jsx(s.ReorderItem,{as:"div",dragListener:!l.locked,item:l.name,value:l,children:t.jsx(br,{disabled:l.locked,icon:"grid-horizontal",label:l.name,onClickIcon:o(l.name),rightIcon:l.locked?"lock":"close",value:l.name,children:l.name})},l.name):void 0)]})},$r=s.dt(fe)`
|
|
2343
2343
|
padding: 7px 8px;
|
|
2344
2344
|
|
|
2345
2345
|
svg.fa-check {
|
|
2346
2346
|
border-radius: 2px;
|
|
2347
2347
|
}
|
|
2348
|
-
`,
|
|
2348
|
+
`,Ut=e=>e.reduce((i,a)=>a.group?i[a.group]?{...i,[a.group]:[...i[a.group],a]}:{...i,[a.group]:[a]}:i,{}),Yt=({columns:e,formId:n,onChangeHandler:i,variant:a})=>{const[r,o]=g.useState([]),[l,c]=g.useState(""),d=g.useRef(null),p=g.useCallback(x=>{const{value:f}=x.target;c(f)},[]),u=g.useCallback(()=>{d.current&&(d.current.reset(),c(""))},[d]);return g.useEffect(()=>{o(e.filter(x=>{var f;return a==="grouped"?x.name.toLowerCase().includes(l.toLowerCase())||((f=x.group)==null?void 0:f.includes(l.toLowerCase())):x.name.toLowerCase().includes(l.toLowerCase())}))},[e,l,a]),a==="grouped"?t.jsxs(b,{display:"flex",flexDirection:"column",gap:.625,py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:d,children:t.jsx(ae,{name:"search",onChange:p,type:"search"})}),t.jsx("form",{id:n,onReset:u,style:{display:"flex",flexDirection:"column",gap:"0.625rem",overflowY:"auto",overflowX:"hidden"},children:Object.entries(Ut(r)).map(([x,f])=>{const h=`li-checkbox${x}`;return t.jsx(vt,{checkboxesName:x,onChange:i,options:f,title:x},h)})})]}):t.jsxs(b,{py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:d,children:t.jsx(ae,{name:"search",onChange:p,type:"search"})}),t.jsx("form",{id:n,onReset:u,style:{paddingTop:"0.625rem",overflowY:"auto",overflowX:"hidden"},children:r.map(x=>{const f=`li-checkbox-${x.name}`;return t.jsx($r,{value:f,width:"content",children:t.jsx(ze,{checked:x.visible,disabled:x.locked,label:x.name,name:x.name,onChange:i,value:x.name})},f)})})]})},yr=({_containerId:e="portals",title:n,modalRef:i,variant:a})=>{const r=s.nt(),o=g.useCallback(c=>{const{checked:d,value:p}=c.target;i.setColumns(i.columns.map(u=>u.name===p?{...u,visible:d}:u))},[i]),l=g.useCallback(c=>{const d=i.columns.map(p=>p.name===c?{...p,visible:!1}:p);i.setColumns(d)},[i]);return i.isOpen?V.createPortal(t.jsxs(xe,{$size:"md",children:[t.jsxs(b,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(L,{size:"sm",children:n}),t.jsx(B,{icon:"close",iconColor:r.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:i.close,px:.25,py:.25,variant:"ghost"})]}),t.jsx(J,{mb:0,mt:0}),t.jsxs(b,{display:"flex",px:1.25,width:"100%",children:[t.jsx(Yt,{columns:i.columns,formId:"columns-visibility",onChangeHandler:o,variant:a}),t.jsx(b,{borderLeft:`2px solid ${r.palette.gray[100]}`,mx:1.25}),t.jsx(b,{py:1.25,width:"45%",children:t.jsx(Gt,{description:"Drag and drop to reorder columns",items:i.columns,onClickClose:l,onReorder:i.setColumns,title:"Columns"})})]}),t.jsx(J,{mb:0,mt:0}),t.jsxs(b,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(R,{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(R,{id:"columns-modal-submit",justify:"center",onClick:i.close,variant:"primary",children:"Save Changes"})]})]}),document.getElementById(e)??document.body):t.jsx("div",{})},mr=s.dt(fe)`
|
|
2349
2349
|
padding: 8px;
|
|
2350
|
-
|
|
2350
|
+
`,wr=s.dt(fe)`
|
|
2351
2351
|
padding: 7px 8px;
|
|
2352
2352
|
|
|
2353
2353
|
svg.fa-check {
|
|
2354
2354
|
border-radius: 2px;
|
|
2355
2355
|
}
|
|
2356
|
-
`,
|
|
2356
|
+
`,Kt=s.dt(B)`
|
|
2357
|
+
position: absolute;
|
|
2358
|
+
right: 20px;
|
|
2359
|
+
top: 20px;
|
|
2360
|
+
background-color: ${({theme:e})=>e.palette.white};
|
|
2361
|
+
color: ${({theme:e})=>e.palette.gray[400]};
|
|
2362
|
+
`,Oe=({options:e,onSubmit:n,id:i,open:a})=>{const[r,o]=g.useState([]),{register:l,handleSubmit:c,setValue:d}=s.useForm({defaultValues:{checkbox:e.filter(f=>f.checked).map(f=>f.value)}}),p=g.useCallback(f=>{const{value:h}=f.target;o(e.filter(y=>{var $;return(($=y.label)==null?void 0:$.toLowerCase().includes(h.toLowerCase()))??y.value.toLowerCase().includes(h.toLowerCase())}))},[e]),u=g.useCallback(f=>{n&&n(f.checkbox)},[n]);g.useEffect(()=>{o(e),d("checkbox",e.filter(f=>f.checked).map(f=>f.value))},[e,d]);const x=t.jsx(Ie,{$bgColor:"transparent",children:t.jsxs(xe,{$size:"fixed",gap:1.25,children:[t.jsx(ae,{onChange:p}),t.jsxs("form",{id:i,onSubmit:c(u),style:{overflowY:"auto"},children:[r.map(f=>{const h=`li-checkbox${f.value}`;return t.jsx(wr,{value:h,width:"content",children:t.jsx(ze,{...l("checkbox"),label:f.label,value:f.value})},h)}),t.jsx(R,{mt:1,type:"submit",children:"Apply"})]})]})});return a?V.createPortal(x,document.getElementById("portals")??document.body):t.jsx("div",{})},je=({options:e,variant:n,onApplyFilters:i})=>{const a=s.nt(),[r,o]=g.useState(e),[l,c]=g.useState([]),[d,p]=g.useState({}),[u,x]=g.useState(""),f=g.useCallback($=>()=>{const m=r.find(w=>w.label===$);x($),c((m==null?void 0:m.filterOptions)??[])},[r]),h=g.useCallback($=>{p(j=>$.length>0?{...j,[u]:$}:j);const m=j=>({...j,checked:$.includes(j.value)}),w=j=>j.label===u?{...j,filterOptions:j.filterOptions.map(m)}:j;o(j=>j.map(w)),i({[u]:$}),c([])},[i,u]),y=g.useCallback(($,m)=>{const w=`li-filter-option-${$}`;return t.jsxs(mr,{icon:m,onClick:f($),value:w,width:"100%",children:[$,d[$]===void 0?void 0:t.jsx(K,{tagLabel:d[$].length.toString()})]},w)},[d,f]);return g.useEffect(()=>{const $=e.reduce((m,{label:w,filterOptions:j})=>{const C=j.filter(({checked:z=!1})=>z).map(({value:z})=>z);return C.length===0?m:{...m,[w]:C}},{});p($)},[e]),n==="grouped"?t.jsxs(b,{flexGrow:1,position:"relative",zIndex:80,children:[Object.entries(Ut(e)).map(([$,m])=>t.jsxs(b,{width:"100%",children:[t.jsx(k,{color:a.palette.gray[400],mb:.25,size:"sm",children:$}),m.map(({label:w,icon:j="filter-list"})=>y(w,j))]},$)),t.jsx(Oe,{id:"filters-options",onSubmit:h,open:l.length>0,options:l})]}):t.jsxs(b,{flexGrow:1,children:[e.map(({label:$,icon:m="filter-list"})=>y($,m)),t.jsx(Oe,{id:"filters-options",onSubmit:h,open:l.length>0,options:l})]})},jr=({_containerId:e="portals",options:n,onApplyFilters:i,modalRef:a})=>a.isOpen?V.createPortal(t.jsx(Ie,{$bgColor:"transparent",children:t.jsxs(xe,{$size:"fixed",position:"relative",children:[t.jsx(Kt,{icon:"close",iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:a.close,px:.25,py:.25,variant:"ghost"}),t.jsx(je,{onApplyFilters:i,options:n,variant:"ungrouped"})]})}),document.getElementById(e)??document.body):t.jsx("div",{}),kr=({_containerId:e="portals",rightColumnOptions:n,leftColumnOptions:i,variant:a,onApplyFilters:r,modalRef:o})=>o.isOpen?V.createPortal(t.jsx(Ie,{$bgColor:"transparent",children:t.jsxs(xe,{$size:"lg",position:"relative",children:[t.jsx(Kt,{icon:"close",iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:o.close,px:.25,py:.25,variant:"ghost"}),t.jsxs(b,{display:"flex",gap:1,justify:"space-between",px:1.25,py:1.25,children:[t.jsx(je,{onApplyFilters:r,options:i,variant:a}),t.jsx(je,{onApplyFilters:r,options:n,variant:a})]})]})}),document.getElementById(e)??document.body):t.jsx("div",{}),Cr=s.dt.div`
|
|
2357
2363
|
${({theme:e,$variant:n})=>`
|
|
2358
2364
|
background: ${e.palette.white};
|
|
2359
2365
|
border: 1px solid ${e.palette.gray[200]};
|
|
@@ -2372,7 +2378,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2372
2378
|
right: 16px;
|
|
2373
2379
|
}
|
|
2374
2380
|
`}
|
|
2375
|
-
`,
|
|
2381
|
+
`,vr=s.dt.div`
|
|
2376
2382
|
${({theme:e,$variant:n})=>`
|
|
2377
2383
|
height: ${e.spacing[2.5]};
|
|
2378
2384
|
width: ${e.spacing[2.5]};
|
|
@@ -2403,7 +2409,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2403
2409
|
color: ${e.palette[n][500]};
|
|
2404
2410
|
}
|
|
2405
2411
|
`}
|
|
2406
|
-
`,
|
|
2412
|
+
`,Sr=e=>e==="warning"?"triangle-exclamation":e==="info"?"circle-info":e==="success"?"circle-check":"circle-exclamation",zr=({description:e,onClose:n,title:i,variant:a})=>{const r=s.nt(),o=g.useCallback(()=>{n==null||n()},[n]);return t.jsxs(Cr,{$variant:a,className:`notification notification__${a}`,role:"alertdialog",children:[t.jsxs(vr,{$variant:a,children:[t.jsx(S,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),t.jsx(S,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),t.jsx(S,{icon:Sr(a),iconClass:"icon",iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(b,{pr:1.5,children:[t.jsx(L,{fontWeight:"bold",size:"xs",children:i}),t.jsx(k,{size:"sm",whiteSpace:"break-spaces",wordWrap:"break-word",children:e})]}),t.jsx(B,{height:"fit-content",icon:"close",iconColor:r.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:o,px:.125,py:.125,variant:"ghost"})]})},Ir=s.dt.div`
|
|
2407
2413
|
width: fit-content;
|
|
2408
2414
|
border: ${({theme:e})=>`1px solid ${e.palette.gray[300]}`};
|
|
2409
2415
|
border-radius: 4px;
|
|
@@ -2416,7 +2422,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2416
2422
|
align-items: center;
|
|
2417
2423
|
justify-content: center;
|
|
2418
2424
|
padding: 0.5em;
|
|
2419
|
-
`,
|
|
2425
|
+
`,Tr=s.dt.input`
|
|
2420
2426
|
width: 4em;
|
|
2421
2427
|
appearance: textfield;
|
|
2422
2428
|
border-style: none;
|
|
@@ -2436,7 +2442,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2436
2442
|
&::-webkit-inner-spin-button {
|
|
2437
2443
|
opacity: 1;
|
|
2438
2444
|
}
|
|
2439
|
-
`,
|
|
2445
|
+
`,Nr=g.forwardRef(function({autoUpdate:n=!1,decimalPlaces:i=0,defaultValue:a=0,max:r,min:o,name:l,onEnter:c,tooltipMessage:d,...p},u){const x=i<0?0:i,[f,h]=g.useState(Number(a).toFixed(x)),y=g.useCallback(w=>{const j=s.lodashExports.toNumber(w.target.value);w.target.value.endsWith(".")?h(w.target.value):j>=Number(o)&&j<=Number(r)&&(h(String(j)),n&&c(s.lodashExports.toNumber(j.toFixed(x)))),w.stopPropagation()},[n,x,r,o,c]),$=g.useCallback(w=>{w.currentTarget.contains(w.relatedTarget)||h(Number(a).toFixed(x)),w.stopPropagation()},[x,a]),m=g.useCallback(w=>{w.stopPropagation(),w.key==="Enter"&&!s.lodashExports.isEmpty(w.currentTarget.value)&&c(s.lodashExports.toNumber(w.currentTarget.value))},[c]);return t.jsx(Ir,{onBlur:$,tabIndex:-1,children:t.jsx(U,{id:"numberInputTooltip",tip:d,children:t.jsx(Tr,{...p,"aria-label":l,"aria-valuemax":Number(r),"aria-valuemin":Number(o),"aria-valuenow":Number(f),max:r,min:o,name:l,onChange:y,onKeyUp:m,ref:u,step:10**-x,type:"number",value:f})})})}),Er={Azure:"integrates/autoenrollment/azureIcon",Bitbucket:"integrates/autoenrollment/bitbucketLogo",GitHub:"integrates/autoenrollment/githubLogo",GitLab:"integrates/autoenrollment/gitlabIcon"},Me=({icon:e,label:n,onClick:i,onlyLabel:a=!1,provider:r="GitLab"})=>{const o=s.nt();return t.jsxs(b,{alignItems:"center",bgColorHover:o.palette.gray[100],borderRadius:"4px",cursor:"pointer",display:"flex",flexDirection:"column",gap:.25,height:"62px",justify:"center",minWidth:"64px",onClick:i,pb:.5,pl:.25,pr:.25,pt:.5,children:[a?!1:t.jsx(b,{height:"24px",width:"24px",children:e===void 0?t.jsx(_,{alt:`${r} Logo`,height:"100%",publicId:Er[r],width:"100%"}):t.jsx(S,{icon:e,iconColor:"#000",iconSize:"sm",iconType:"fa-light"})}),t.jsx(b,{alignItems:"center",display:"flex",minWidth:"24px",children:t.jsx(k,{color:o.palette.gray[800],display:"inline",size:"xs",textAlign:"center",whiteSpace:a?"break-spaces":"nowrap",wordWrap:"unset",children:n??r})})]})},Rr=({align:e="end",buttonLabel:n="Add Credential",children:i,id:a,manualOption:r,providers:o})=>{const l=s.nt(),[c,d]=g.useState(!1),p=g.useRef(null);Z(p.current,()=>{d(!1)},!0);const u=g.useCallback(h=>{r==null||r.onClick(h),d(!1)},[r]),x=g.useCallback(()=>{d(h=>!h)},[d]),f=g.useCallback(h=>y=>{var $;($=o[h])==null||$.onClick(y),d(!1)},[o]);return t.jsxs(b,{alignItems:e,display:"flex",flexDirection:"column",position:"relative",ref:p,width:"max-content",zIndex:10,children:[t.jsx(R,{icon:"plus",onClick:x,variant:"primary",children:n}),t.jsxs(b,{alignItems:"center",bgColor:"#fff",border:`1px solid ${l.palette.gray[200]}`,borderRadius:"4px",display:"flex",gap:.5,height:"78px",id:a,pb:.5,pl:.75,position:"absolute",pr:.75,pt:.5,shadow:"md",top:"40px",visibility:c?"visible":"hidden",zIndex:10,children:[Object.keys(o).map(h=>t.jsx(Me,{onClick:f(h),provider:h},h)),r===void 0?void 0:t.jsx(Me,{icon:"square-plus",label:r.label??"Add manually",onClick:u}),i]})]})},qt=()=>t.jsx(b,{alignItems:"center",bgColor:v.palette.primary[25],borderRadius:"8px",gap:.5,justify:"center",padding:[.125,.25,.125,.25],width:"max-content",children:t.jsx(k,{bgGradient:v.palette.gradients["01"],fontWeight:"semibold",size:"xs",textFill:"transparent",children:"Recommended"})}),Dr=s.dt.div`
|
|
2440
2446
|
${({className:e,theme:n})=>`
|
|
2441
2447
|
align-items: flex-start;
|
|
2442
2448
|
border-radius: ${n.spacing[1]};
|
|
@@ -2501,8 +2507,8 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2501
2507
|
width: 320px;
|
|
2502
2508
|
}
|
|
2503
2509
|
`}
|
|
2504
|
-
`;const
|
|
2505
|
-
through our scanning tool.`,priceAuthor:"$499",priceGroup:"$1,579"}},
|
|
2510
|
+
`;const Fr={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
|
|
2511
|
+
through our scanning tool.`,priceAuthor:"$499",priceGroup:"$1,579"}},Pr=({description:e,onClick:n,plan:i})=>{const{title:a,description:r,benefits:o,buttonText:l}=Fr[i],c=e??r;return t.jsxs(Dr,{className:i,children:[t.jsxs(b,{display:"flex",flexDirection:"column",gap:.25,pt:i==="essential"?1.75:0,children:[i==="advanced"&&t.jsx(qt,{}),t.jsx(L,{color:v.palette.gray[900],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:a}),t.jsx(k,{color:v.palette.gray[400],fontWeight:"semibold",pb:i==="essential"?1.25:0,size:"sm",sizeSm:"xs",children:o})]}),t.jsx(k,{lineSpacing:1.5,lineSpacingSm:1.25,pb:i==="advanced"?1.5:0,size:"md",sizeSm:"sm",children:c}),t.jsx(R,{onClick:n,variant:"primary",children:l})]})},Xt=({description:e="",highlightDescription:n=""})=>{const i=s.nt(),a=typeof n=="string",r=a?"":new RegExp(`(${n.join("|")})`,"u");return n.length>0?t.jsx(k,{display:"inline",lineSpacing:1.5,size:"lg",textAlign:"center",children:a?t.jsxs(g.Fragment,{children:[t.jsx(ye,{color:i.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:n}),e]}):e.split(r).map((o,l)=>n.includes(o)?t.jsx(ye,{color:i.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:o},`${l+1}-bold`):o)}):t.jsx(k,{lineSpacing:1.5,size:"lg",textAlign:"center",children:e})},Lr=({_portal:e=!1,cancelButton:n,darkBackground:i=!1,children:a,confirmButton:r,container:o,description:l,highlightDescription:c="",image:d,maxWidth:p,title:u,titleColor:x})=>{const f=s.nt(),{alt:h,src:y,width:$="77px",height:m="77px"}=d,w=g.useCallback(()=>{n==null||n.onClick()},[n]),j=g.useCallback(()=>{r==null||r.onClick()},[r]),C=t.jsx(b,{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(b,{bgColor:f.palette.white,border:`1px solid ${f.palette.gray[200]}`,borderRadius:"8px",display:"inline-flex",flexDirection:"column",maxWidth:p,pb:2.5,pl:2.5,pr:2.5,pt:2.5,shadow:"lg",width:"100%",zIndex:11,children:[t.jsxs(b,{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",children:[t.jsx(b,{children:t.jsx(_,{alt:h,height:m,publicId:y,width:$})}),t.jsxs(b,{display:"flex",flexDirection:"column",gap:.5,mb:1.5,mt:1.5,children:[t.jsx(L,{color:x,fontWeight:"bold",lineSpacing:2.5,size:"lg",textAlign:"center",children:u}),t.jsx(Xt,{description:l,highlightDescription:c})]})]}),a&&t.jsx(b,{mb:1,scroll:"y",children:t.jsx(b,{height:"100%",children:a})}),t.jsxs(b,{alignItems:"flex-start",display:"flex",gap:1,justify:"center",children:[s.lodashExports.isObject(r)?t.jsx(R,{onClick:j,variant:(r==null?void 0:r.variant)??"primary",children:r==null?void 0:r.text},r==null?void 0:r.key):void 0,s.lodashExports.isObject(n)?t.jsx(R,{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?V.createPortal(C,o??document.body):C},Wr=s.dt.div`
|
|
2506
2512
|
${({theme:e})=>`
|
|
2507
2513
|
height: ${e.spacing[1]};
|
|
2508
2514
|
width: ${e.spacing[1]};
|
|
@@ -2533,7 +2539,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2533
2539
|
font-size: ${e.spacing[.5]};
|
|
2534
2540
|
}
|
|
2535
2541
|
`}
|
|
2536
|
-
`,
|
|
2542
|
+
`,Zt=({margin:e,onClick:n,text:i})=>{const a=s.nt(),r=t.jsxs(Wr,{children:[t.jsx(S,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),t.jsx(S,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),t.jsx(S,{icon:"crown",iconClass:"icon",iconSize:"xs"})]});return i!==void 0?t.jsx(b,{cursor:"pointer",display:"inline-block",mr:e,onClick:n,children:t.jsxs(b,{alignItems:"center",bgColor:a.palette.warning[50],borderRadius:"4px",display:"flex",padding:[.25,.25,.25,.25],width:"fit-content",children:[r,t.jsx(k,{color:a.palette.warning[500],display:"inline",ml:.25,size:"xs",children:i})]})}):t.jsx(b,{display:"inline-block",mr:e,onClick:n,children:r})},Br=({score:e})=>{const n=s.nt(),i=e<=33?"priority-bars-low":"priority-bars-medium",a=e>66||e===0?"priority-bars-high":i;return t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:.25,children:[t.jsx(S,{icon:a,iconClass:e<=66?"fa-kit-duotone":"",iconColor:e>0?n.palette.primary[500]:n.palette.gray[200],iconSize:"xs",iconType:"fa-kit",secondaryColor:n.palette.gray[200]}),t.jsx(k,{color:n.palette.gray[800],size:"sm",textAlign:"right",children:e+"%"})]})},{getVariant:Or}=G(e=>({compliance:`
|
|
2537
2543
|
display: inline-flex;
|
|
2538
2544
|
|
|
2539
2545
|
&.horizontal {
|
|
@@ -2591,17 +2597,17 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2591
2597
|
.progress-bar {
|
|
2592
2598
|
background-color: ${e.palette.primary[500]};
|
|
2593
2599
|
}
|
|
2594
|
-
`})),
|
|
2600
|
+
`})),Mr=(e,n)=>n<50?e.palette.error[500]:n<80?e.palette.warning[500]:e.palette.success[500],Ar=s.dt.div`
|
|
2595
2601
|
${({theme:e,$minWidth:n,$orientation:i,$rounded:a,$variant:r})=>`
|
|
2596
2602
|
background-color: ${e.palette.gray[100]};
|
|
2597
2603
|
border-radius: ${a?"100px":"unset"};
|
|
2598
2604
|
${i==="horizontal"?"min-width":"min-height"}: ${n}px;
|
|
2599
2605
|
${i==="horizontal"?"":"height: 100%;"}
|
|
2600
2606
|
|
|
2601
|
-
${
|
|
2607
|
+
${Or(e,r)}
|
|
2602
2608
|
|
|
2603
2609
|
`}
|
|
2604
|
-
`,
|
|
2610
|
+
`,Hr=s.dt.div`
|
|
2605
2611
|
${({theme:e,$percentage:n,$rounded:i,$variant:a})=>`
|
|
2606
2612
|
display: inline-flex;
|
|
2607
2613
|
width: ${n}%;
|
|
@@ -2611,9 +2617,9 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2611
2617
|
border-radius: ${i?"100px":"unset"};
|
|
2612
2618
|
border-end-end-radius: ${i&&n<100?"0":"inherit"};
|
|
2613
2619
|
border-start-end-radius: ${i&&n<100?"0":"inherit"};
|
|
2614
|
-
background-color: ${a==="compliance"?
|
|
2620
|
+
background-color: ${a==="compliance"?Mr(e,n):"inherit"};
|
|
2615
2621
|
`}
|
|
2616
|
-
`,
|
|
2622
|
+
`,_r=({minWidth:e=100,percentage:n,percentageLocation:i="right",showPercentage:a=!1,orientation:r="horizontal",rounded:o=!0,variant:l="default"})=>{const c=a&&i==="left",d=a?t.jsx(b,{alignItems:"center",display:"flex",justify:c?"flex-end":"flex-start",width:"40px",children:t.jsx(k,{ml:.5,mr:c?.5:0,size:"sm",children:`${n}%`})}):null,p=t.jsx(Ar,{$minWidth:e,$orientation:r,$rounded:o,$variant:l,className:r,children:t.jsx(Hr,{$percentage:n,$rounded:o,$variant:l,className:"progress-bar"})});return t.jsxs(b,{alignItems:"center",display:"inline-flex",flexDirection:c?"row-reverse":"row",height:r==="horizontal"?"auto":"100%",maxWidth:c?`${e+43}px`:void 0,minWidth:c?`${e+43}px`:void 0,textAlign:"end",children:[p,d]})},Vr=s.dt(Q)`
|
|
2617
2623
|
animation: ${({$animationTime:e})=>`progress-bar ${e}s ease-in-out`};
|
|
2618
2624
|
animation-fill-mode: both;
|
|
2619
2625
|
|
|
@@ -2626,12 +2632,12 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2626
2632
|
width: 100%;
|
|
2627
2633
|
}
|
|
2628
2634
|
}
|
|
2629
|
-
`,
|
|
2635
|
+
`,Gr=e=>e*1e3/100,Ur=({progressTime:e=10,onComplete:n})=>{const i=s.nt(),a=100,[r,o]=g.useState(0);return g.useEffect(()=>{r===a&&(n==null||n())},[r,n]),g.useEffect(()=>{const l=setInterval(()=>{o(c=>c===a?0:c+1)},Gr(e));return()=>{clearInterval(l)}},[r,e]),t.jsx(b,{bgColor:i.palette.gray[200],height:"4px",children:t.jsx(Vr,{$animationTime:e,bgGradient:i.palette.gradients["01"],height:"100%",width:`${r}%`})})},Yr=s.dt.div.attrs({className:"comp-scroll-up"})`
|
|
2630
2636
|
bottom: 15px;
|
|
2631
2637
|
position: fixed;
|
|
2632
2638
|
right: 140px;
|
|
2633
2639
|
z-index: 100;
|
|
2634
|
-
`,
|
|
2640
|
+
`,Kr=({scrollerId:e="dashboard",visibleAt:n=500})=>{const[i,a]=g.useState(!1),[r,o]=g.useState(null);g.useEffect(()=>{o(document.getElementById(e)),r==null||r.addEventListener("scroll",()=>{a(r.scrollTop>n)})},[r,e,n]);const l=g.useCallback(()=>{r==null||r.scrollTo({behavior:"smooth",top:0})},[r]);return i?t.jsx(Yr,{children:t.jsx(B,{height:"40px",icon:"arrow-up",iconSize:"sm",id:"scroll-up",onClick:l,width:"40px"})}):null},qr=s.dt.a`
|
|
2635
2641
|
${({theme:e})=>`
|
|
2636
2642
|
align-items: center;
|
|
2637
2643
|
display: flex;
|
|
@@ -2676,7 +2682,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2676
2682
|
width: 270px;
|
|
2677
2683
|
}
|
|
2678
2684
|
`}
|
|
2679
|
-
`,
|
|
2685
|
+
`,Xr=s.dt.div.attrs({className:"icon-wrap"})`
|
|
2680
2686
|
${({theme:e})=>`
|
|
2681
2687
|
align-items: center;
|
|
2682
2688
|
background: ${e.palette.primary[25]};
|
|
@@ -2691,7 +2697,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2691
2697
|
font-size: 20px;
|
|
2692
2698
|
}
|
|
2693
2699
|
`}
|
|
2694
|
-
`,
|
|
2700
|
+
`,Zr=s.dt.div`
|
|
2695
2701
|
${({theme:e})=>`
|
|
2696
2702
|
align-items: flex-start;
|
|
2697
2703
|
display: flex;
|
|
@@ -2723,7 +2729,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2723
2729
|
width: 320px;
|
|
2724
2730
|
}
|
|
2725
2731
|
`}
|
|
2726
|
-
`,
|
|
2732
|
+
`,Jr=s.dt.form`
|
|
2727
2733
|
${({theme:e})=>`
|
|
2728
2734
|
align-items: center;
|
|
2729
2735
|
display: flex;
|
|
@@ -2732,7 +2738,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2732
2738
|
padding: ${e.spacing[1]} ${e.spacing[1.5]};
|
|
2733
2739
|
width: 100%;
|
|
2734
2740
|
`}
|
|
2735
|
-
`,
|
|
2741
|
+
`,Qr=s.dt.input`
|
|
2736
2742
|
${({theme:e})=>`
|
|
2737
2743
|
flex: 1 0 0;
|
|
2738
2744
|
border: none;
|
|
@@ -2758,7 +2764,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2758
2764
|
font-size: ${e.typography.text.sm};
|
|
2759
2765
|
}
|
|
2760
2766
|
`}
|
|
2761
|
-
`,
|
|
2767
|
+
`,eo=s.dt.button`
|
|
2762
2768
|
${({theme:e})=>`
|
|
2763
2769
|
align-items: center;
|
|
2764
2770
|
border-radius: ${e.spacing[.5]};
|
|
@@ -2778,7 +2784,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2778
2784
|
background-color: ${e.palette.gray[100]};
|
|
2779
2785
|
}
|
|
2780
2786
|
`}
|
|
2781
|
-
`,
|
|
2787
|
+
`,Ne=s.dt.div.attrs({className:"dropdown"})`
|
|
2782
2788
|
${({theme:e,$empty:n=!1,$showHits:i=!1})=>`
|
|
2783
2789
|
align-items: flex-start;
|
|
2784
2790
|
align-self: stretch;
|
|
@@ -2821,7 +2827,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2821
2827
|
height: ${e.spacing[.5]};
|
|
2822
2828
|
}
|
|
2823
2829
|
`}
|
|
2824
|
-
|
|
2830
|
+
`,$e=({hit:e,icon:n="infinity",showIcon:i=!1})=>{const{slug:a,title:r}=e,o=String(a).startsWith("/pages/")?String(a).replace("/pages/","/"):String(a);return t.jsxs(qr,{href:o,rel:"nofollow noopener noreferrer",children:[i&&t.jsx(Xr,{children:t.jsx(S,{icon:n,iconClass:"fill-gradient-01",iconSize:"sm",iconType:"fa-light"})}),t.jsx(k,{color:v.palette.gray[800],lineSpacing:1.5,size:"md",sizeSm:"sm",whiteSpace:"wrap",children:String(r)})]})},to=[{hit:{slug:"/services/continuous-hacking/",title:"Continuous Hacking"},icon:"infinity"},{hit:{slug:"/platform/",title:"Platform"},icon:"sidebar"},{hit:{slug:"/plans/",title:"Plans"},icon:"star-christmas"},{hit:{slug:"/blog/",title:"Blog"},icon:"pen-line"}],at={hit:{slug:"/contact-us/",title:"Contact Support"},icon:"envelope"},no=({items:e,placeholder:n="Search",refine:i,query:a})=>{const[r,o]=g.useState(a),[l,c]=g.useState(!1),d=g.useRef(null),p=g.useRef(null),u=r.length>=2,x=g.useCallback(w=>{o(w),i(w)},[i]),f=g.useCallback(()=>{x("")},[x]),h=g.useCallback(()=>{c(!0)},[]),y=g.useCallback(w=>{x(w.currentTarget.value)},[x]),$=g.useCallback(w=>{w.preventDefault(),w.stopPropagation(),f(),p.current&&p.current.focus()},[f]),m=g.useCallback(w=>{w.preventDefault(),w.stopPropagation(),p.current&&p.current.blur()},[]);return Z(d.current,()=>{f(),c(!1)},!0),t.jsxs(Zr,{ref:d,children:[t.jsxs(Jr,{action:"",noValidate:!0,onReset:$,onSubmit:m,role:"search",children:[t.jsxs("div",{className:"flex gap-2 w-full",children:[t.jsx("div",{className:"h-10 p-2",children:t.jsx(S,{icon:"magnifying-glass",iconSize:"sm",iconType:"fa-light"})}),t.jsx(Qr,{autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",maxLength:512,onChange:y,onFocus:h,placeholder:n,ref:p,spellCheck:!1,type:"search",value:r})]}),u&&t.jsx(eo,{type:"reset",children:t.jsx(S,{icon:"xmark",iconSize:"sm",iconType:"fa-light"})})]}),l&&r.length<2&&t.jsxs(Ne,{children:[t.jsx(k,{color:v.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Suggested"}),t.jsx("div",{className:"flex flex-col items-start self-stretch",children:to.map(({hit:w,icon:j},C)=>t.jsx($e,{hit:w,icon:j,showIcon:!0},`${j}-${C}`))}),t.jsx(k,{color:v.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Can’t find what you’re looking for?"}),t.jsx($e,{hit:at.hit,icon:at.icon,showIcon:!0})]}),u&&e.length>0&&t.jsxs(Ne,{$showHits:u,children:[t.jsx(k,{color:v.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Results"}),t.jsx("div",{className:"flex flex-col items-start self-stretch",children:e.map(w=>t.jsx($e,{hit:w},w.objectID))})]}),u&&e.length===0&&t.jsx(Ne,{$empty:e.length===0,children:t.jsxs("div",{className:"items-center flex flex-col gap-4 py-[90px] w-full",children:[t.jsx(_,{height:96,publicId:"airs/search-bar/empty-state-icon",width:96}),t.jsx(L,{display:"flex",size:"sm",sizeSm:"xs",textAlign:"center",children:"No results found"}),t.jsxs(k,{display:"flex",lineSpacing:1.5,size:"md",sizeSm:"sm",textAlign:"center",children:[`“${r}” did not match.`,t.jsx("br",{}),"Please try again."]}),t.jsx(R,{onClick:f,variant:"secondary",children:"Clear search"})]})})]})},io={critical:{bgColor:v.palette.primary[700],colorL:v.palette.gray[800],colorR:v.palette.white},disable:{bgColor:v.palette.gray[200],colorL:v.palette.gray[400],colorR:v.palette.gray[400]},high:{bgColor:v.palette.error[500],colorL:v.palette.gray[800],colorR:v.palette.white},low:{bgColor:v.palette.warning[200],colorL:v.palette.gray[800],colorR:v.palette.gray[800]},medium:{bgColor:v.palette.warning[500],colorL:v.palette.gray[800],colorR:v.palette.gray[800]}},ao=({textL:e,textR:n,variant:i})=>{const a=s.nt(),{bgColor:r,colorL:o,colorR:l}=io[i];return t.jsxs(b,{alignItems:"flex-start",display:"inline-flex",children:[e?t.jsx(b,{alignItems:"center",bgColor:a.palette.white,border:`1px solid ${r}`,borderRadius:"4px 0px 0px 4px",display:"flex",justify:"center",padding:[0,.25,0,.25],children:t.jsx(k,{color:o,size:"xs",children:e})}):void 0,t.jsx(b,{alignItems:"center",bgColor:r,border:`1px solid ${r}`,borderRadius:e?"0px 4px 4px 0px":"4px",display:"flex",padding:e?[0,.25,0,.125]:[0,.25,0,.25],pb:.125,pl:.125,pr:.125,pt:.125,children:t.jsx(k,{color:l,size:"xs",children:n})})]})},ro=(e,n)=>{const i={critical:v.palette.primary[700],high:v.palette.error[500],low:v.palette.warning[200],medium:v.palette.warning[500],none:v.palette.gray[200]},a={disabled:v.palette.gray[400],enabled:v.palette.gray[800]},r={critical:v.palette.white,high:v.palette.white,low:v.palette.gray[800],medium:v.palette.gray[800],none:v.palette.gray[400]};return{iconColor:n<1?i.none:i[e],iconText:s.lodashExports.capitalize(e.charAt(0)),iconTextColor:n<1?r.none:r[e],textColor:n<1?a.disabled:a.enabled}},ne=({variant:e,value:n})=>{const{iconColor:i,iconText:a,iconTextColor:r,textColor:o}=ro(e,n),l=s.lodashExports.capitalize(e.charAt(0))+e.slice(1);return t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:.5,minWidth:"43px",children:[t.jsx(U,{id:l,place:"top",tip:l,children:t.jsx(b,{alignItems:"center",bgColor:i,borderRadius:"4px",cursor:"pointer",display:"flex",height:"22px",maxWidth:"22px",minWidth:"22px",children:t.jsx(k,{color:r,size:"sm",textAlign:"center",children:a})})}),t.jsx(k,{color:o,size:"sm",children:n})]})},oo=({critical:e,high:n,medium:i,low:a})=>t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:1,children:[t.jsx(ne,{value:e,variant:"critical"}),t.jsx(ne,{value:n,variant:"high"}),t.jsx(ne,{value:i,variant:"medium"}),t.jsx(ne,{value:a,variant:"low"})]}),so=s.dt.div`
|
|
2825
2831
|
${({theme:e})=>`
|
|
2826
2832
|
border-radius: ${e.spacing[.25]};
|
|
2827
2833
|
cursor: pointer;
|
|
@@ -2839,7 +2845,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2839
2845
|
display: block;
|
|
2840
2846
|
}
|
|
2841
2847
|
`}
|
|
2842
|
-
`,
|
|
2848
|
+
`,lo=({visibleElement:e,hiddenElement:n})=>t.jsxs(so,{children:[e,t.jsx(b,{display:"none",position:"absolute",top:"100%",zIndex:10,children:n})]}),Jt=({customBadge:e=void 0,description:n,icon:i,onClick:a,requiresUpgrade:r=!1,title:o})=>{const l=s.nt();return t.jsxs(b,{bgColor:l.palette.white,bgColorHover:l.palette.gray[100],cursor:"pointer",display:"flex",gap:.5,onClick:a,px:1.25,py:1,width:"100%",children:[t.jsx(b,{alignItems:"center",bgColor:l.palette.gray[300],borderRadius:l.spacing[.25],display:"flex",height:"24px",justify:"center",width:"24px",children:t.jsx(S,{icon:i,iconColor:l.palette.gray[800],iconSize:"xxs",ml:.5,mr:.5})}),t.jsxs(b,{children:[t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:.5,children:[t.jsx(k,{color:l.palette.gray[800],size:"sm",children:o}),r?t.jsx(Zt,{text:"Upgrade"}):void 0,e]}),t.jsx(k,{color:l.palette.gray[400],size:"xs",children:n})]})]})},co=s.dt(s.m.div)`
|
|
2843
2849
|
${({theme:e})=>`
|
|
2844
2850
|
background-color: ${e.palette.white};
|
|
2845
2851
|
box-shadow: ${e.shadows.lg};
|
|
@@ -2862,7 +2868,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2862
2868
|
height: auto;
|
|
2863
2869
|
}
|
|
2864
2870
|
`}
|
|
2865
|
-
`,
|
|
2871
|
+
`,po=({children:e,closeIconId:n="close-menu",isOpen:i,items:a,onClose:r,primaryButtonText:o,primaryOnClick:l,secondaryButtonText:c,secondaryOnClick:d,title:p})=>{const u=s.nt(),x=g.useRef(null),f=g.useCallback(h=>()=>{h(),r()},[r]);return Z(x.current,()=>{r()},!0),t.jsx(s.LazyMotion,{features:s.domAnimation,children:t.jsx(co,{animate:i?{display:"block",x:0}:{transitionEnd:{display:"none"},x:"100%"},initial:{display:"none",x:"100%"},ref:x,transition:{bounce:0,duration:.6,type:"spring"},children:t.jsxs(b,{height:"100%",position:"relative",children:[t.jsxs(b,{alignItems:"center",bgColor:u.palette.white,borderBottom:"1px solid",borderColor:u.palette.gray[200],display:"flex",gap:1.25,justify:"space-between",padding:[1.25,1.25,1.25,1.25],position:"sticky",top:"0",zIndex:40,children:[t.jsx(k,{color:u.palette.black,display:"inline",fontWeight:"bold",size:"xl",children:p}),t.jsx(B,{icon:"close",iconColor:u.palette.gray[400],iconSize:"xs",iconTransform:"grow-4",iconType:"fa-light",id:n,onClick:r,px:.25,py:.25,variant:"ghost"})]}),t.jsxs(b,{display:"flex",flexDirection:"column",justify:"space-between",minHeight:"100vh",children:[t.jsxs(b,{py:1.25,children:[(a??[]).map(({customBadge:h,description:y,icon:$,onClick:m,requiresUpgrade:w,title:j})=>t.jsx(Jt,{customBadge:h,description:y,icon:$,onClick:f(m),requiresUpgrade:w,title:j},j)),e&&t.jsx(b,{px:1.25,children:e})]}),o===void 0?void 0:t.jsxs(b,{alignItems:"center",bgColor:u.palette.white,borderColor:u.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(R,{color:`${u.palette.primary[500]} !important`,onClick:d,pl:.5,pr:.5,variant:"ghost",children:c}),t.jsx(R,{onClick:l,type:"submit",children:o})]})]})]})})})},go=(e,n)=>n>=50?`
|
|
2866
2872
|
${e.palette.gray[200]} 50%,
|
|
2867
2873
|
${e.palette.primary[500]} 50.05%,
|
|
2868
2874
|
${e.palette.primary[500]} ${n}%,
|
|
@@ -2873,7 +2879,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2873
2879
|
${e.palette.primary[500]} 50%,
|
|
2874
2880
|
${e.palette.gray[200]} 50.05%,
|
|
2875
2881
|
${e.palette.gray[200]} 100%
|
|
2876
|
-
`,
|
|
2882
|
+
`,uo=s.dt.div`
|
|
2877
2883
|
${({theme:e,$min:n,$value:i})=>`
|
|
2878
2884
|
align-items: center;
|
|
2879
2885
|
align-self: stretch;
|
|
@@ -2889,7 +2895,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2889
2895
|
${n>=0?`
|
|
2890
2896
|
${e.palette.primary[500]} ${i}%,
|
|
2891
2897
|
${e.palette.gray[200]} ${i}%
|
|
2892
|
-
`:
|
|
2898
|
+
`:go(e,i)}
|
|
2893
2899
|
);
|
|
2894
2900
|
border-radius: ${e.spacing[.125]};
|
|
2895
2901
|
height: ${e.spacing[.25]};
|
|
@@ -2913,7 +2919,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2913
2919
|
border: 1px solid ${e.palette.primary[500]};
|
|
2914
2920
|
}
|
|
2915
2921
|
`}
|
|
2916
|
-
`,
|
|
2922
|
+
`,xo=s.dt.div`
|
|
2917
2923
|
${({theme:e})=>`
|
|
2918
2924
|
align-items: center;
|
|
2919
2925
|
display: flex;
|
|
@@ -2927,7 +2933,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2927
2933
|
font-size: ${e.spacing[.5]};
|
|
2928
2934
|
}
|
|
2929
2935
|
`}
|
|
2930
|
-
`,
|
|
2936
|
+
`,fo=s.dt.output`
|
|
2931
2937
|
${({theme:e})=>`
|
|
2932
2938
|
align-items: flex-end;
|
|
2933
2939
|
border-radius: ${e.spacing[.5]};
|
|
@@ -2938,7 +2944,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2938
2944
|
padding: ${e.spacing[.625]} ${e.spacing[.75]};
|
|
2939
2945
|
width: 59px;
|
|
2940
2946
|
`}
|
|
2941
|
-
`,
|
|
2947
|
+
`,Qt=({state:e,trackRef:n,index:i,name:a})=>{const r=g.useRef(null),{thumbProps:o,inputProps:l,isDragging:c}=s.$47b897dc8cdb026b$export$8d15029008292ae({index:i,trackRef:n,inputRef:r},e);return t.jsx("div",{...o,className:`thumb ${c?"dragging":""}`,children:t.jsx(s.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:t.jsx("input",{...l,"aria-label":a,ref:r})})})},ho=(e,n,i)=>Math.round((i-e)/(n-e)*100),bo=e=>{const n=s.nt(),i=g.useRef(null),{label:a,minValue:r=0,maxValue:o=100,name:l,setValue:c,watch:d}=e,p=s.$a916eb452884faea$export$b7a616150fdb9f44(),u=s.$28f99e3e86e6ec45$export$e5fda3247f5d67f9({...e,numberFormatter:p,onChange(y){c==null||c(l,y)},value:d==null?void 0:d(l)}),x=ho(r,o,u.getThumbValue(0)),{groupProps:f,trackProps:h}=s.$bcca50147b47f54d$export$56b2c08e277f365({...e,"aria-label":l,id:l},u,i);return t.jsx(M,{htmlFor:l,label:a,children:t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:1.25,pl:.5,width:"100%",children:[t.jsxs(uo,{...f,$min:r??0,$value:x,className:"slider",children:[t.jsx("div",{...h,className:`track ${u.isDisabled?"disabled":""}`,ref:i,children:t.jsx(Qt,{index:0,name:l,state:u,trackRef:i})}),t.jsxs(xo,{children:[t.jsx("p",{children:`${p.format(r)} (Low)`}),r<0&&t.jsx("p",{children:"0"}),t.jsx("p",{children:`${p.format(o)} (High)`})]})]}),t.jsx(fo,{children:t.jsx(k,{color:n.palette.gray[800],size:"sm",textAlign:"right",children:u.getThumbValueLabel(0)})})]})})},{getVariant:$o}=G(e=>({completed:`
|
|
2942
2948
|
background-color: ${e.palette.primary[500]};
|
|
2943
2949
|
color: ${e.palette.white};
|
|
2944
2950
|
|
|
@@ -2961,7 +2967,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2961
2967
|
&::after {
|
|
2962
2968
|
background-color: ${e.palette.gray[200]};
|
|
2963
2969
|
}
|
|
2964
|
-
`})),
|
|
2970
|
+
`})),yo=s.dt.div`
|
|
2965
2971
|
${({theme:e})=>`
|
|
2966
2972
|
align-items: stretch;
|
|
2967
2973
|
background-color: ${e.palette.white};
|
|
@@ -2971,7 +2977,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2971
2977
|
padding: ${`${e.spacing[1]} ${e.spacing[1]}`};
|
|
2972
2978
|
scroll-behavior: unset;
|
|
2973
2979
|
`}
|
|
2974
|
-
`,
|
|
2980
|
+
`,mo=s.dt.div`
|
|
2975
2981
|
display: flex;
|
|
2976
2982
|
flex-direction: row;
|
|
2977
2983
|
margin-bottom: ${({theme:e})=>e.spacing[2]};
|
|
@@ -2979,7 +2985,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2979
2985
|
&:last-child > div:first-child > span::after {
|
|
2980
2986
|
display: none;
|
|
2981
2987
|
}
|
|
2982
|
-
|
|
2988
|
+
`,wo=s.dt.div`
|
|
2983
2989
|
${({theme:e})=>`
|
|
2984
2990
|
display: inline-flex;
|
|
2985
2991
|
font-family: ${e.typography.type.primary};
|
|
@@ -2991,7 +2997,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2991
2997
|
margin-right: ${e.spacing[.5]};
|
|
2992
2998
|
}
|
|
2993
2999
|
`}
|
|
2994
|
-
`,
|
|
3000
|
+
`,jo=s.dt.span`
|
|
2995
3001
|
${({theme:e,$variant:n})=>`
|
|
2996
3002
|
border-radius: 6px;
|
|
2997
3003
|
display: inline-block;
|
|
@@ -3014,9 +3020,9 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
3014
3020
|
height: calc(100% - ${e.spacing[1]});
|
|
3015
3021
|
}
|
|
3016
3022
|
|
|
3017
|
-
${
|
|
3023
|
+
${$o(e,n)}
|
|
3018
3024
|
`}
|
|
3019
|
-
`,
|
|
3025
|
+
`,ko=({button:{disabled:e=!1,text:n,type:i="button",onClick:a},steps:r})=>{const[o,l]=g.useState(1),c=g.useCallback((d,p)=>()=>{l(u=>u+d),p==null||p()},[]);return t.jsx(yo,{children:r.map((d,p)=>{const{content:u,title:x,nextAction:f,previousAction:h}=d,y=p+1,$=y===o?"current":"disabled",m=y<o?"completed":$;return t.jsxs(mo,{children:[t.jsx(b,{maxWidth:"40px",position:"relative",children:t.jsx(jo,{$variant:m,children:m==="completed"?t.jsx(S,{icon:"check",iconSize:"xs",iconType:"fa-solid"}):y})}),t.jsxs(b,{ml:1.5,width:"100%",children:[t.jsx(L,{fontWeight:"bold",lineSpacing:1.25,mb:1.5,size:"xs",children:x}),m==="current"&&t.jsxs(b,{children:[u,t.jsxs(wo,{children:[o>1&&t.jsx(R,{disabled:d.isDisabledPrevious??!1,onClick:c(-1,h),variant:"tertiary",children:"Previous"}),o<r.length?t.jsx(R,{disabled:d.isDisabledNext??!1,onClick:c(1,f),variant:"primary",children:"Next step"}):t.jsx(R,{disabled:e,onClick:a,type:i,variant:"primary",children:n})]})]})]})]},d.title)})})},Co=s.dt.button`
|
|
3020
3026
|
${({theme:e})=>`
|
|
3021
3027
|
align-items: center;
|
|
3022
3028
|
background-color: ${e.palette.white};
|
|
@@ -3058,7 +3064,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
3058
3064
|
background-color: ${e.palette.gray[100]};
|
|
3059
3065
|
}
|
|
3060
3066
|
`}
|
|
3061
|
-
`,
|
|
3067
|
+
`,vo={add:{icon:"plus"},approve:{icon:"check"},disabled:{icon:"ban"},reject:{icon:"xmark"},submit:{icon:"arrow-right"},success:{icon:"check"}},So=({disabled:e=!1,icon:n,id:i,label:a,name:r,onClick:o,type:l="button",variant:c})=>{const d=s.nt(),p=t.jsxs(Co,{"aria-label":r??void 0,className:c,disabled:e,id:i,onClick:o,type:l,children:[t.jsx(S,{clickable:!1,icon:n??vo[c].icon,iconSize:r===void 0?"xxs":"xs",iconType:"fa-light"}),r??void 0]});return t.jsxs(b,{alignItems:"center",display:"flex",children:[p,a&&t.jsx(k,{color:d.palette.gray[800],ml:.5,size:"sm",children:a})]})},zo=({items:e})=>t.jsx(sa,{children:e.map(({isActive:n,label:i,onClick:a},r)=>t.jsx(oa,{className:n?"active":"",onClick:a,type:"button",children:t.jsx(L,{color:"inherit",fontWeight:"semibold",size:"sm",sizeSm:"xs",children:i})},`${i}-${r}`))}),Io=s.dt.div`
|
|
3062
3068
|
${({theme:e})=>`
|
|
3063
3069
|
align-items: center;
|
|
3064
3070
|
background-color: ${e.palette.white};
|
|
@@ -3080,7 +3086,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
3080
3086
|
border: 1px solid ${e.palette.gray[600]};
|
|
3081
3087
|
}
|
|
3082
3088
|
`}
|
|
3083
|
-
`,
|
|
3089
|
+
`,To=s.dt.div`
|
|
3084
3090
|
${({theme:e})=>`
|
|
3085
3091
|
display: flex;
|
|
3086
3092
|
flex-direction: column;
|
|
@@ -3151,7 +3157,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
3151
3157
|
}
|
|
3152
3158
|
}
|
|
3153
3159
|
`}
|
|
3154
|
-
`,
|
|
3160
|
+
`,en=({date:e,description:n,title:i})=>{const a=s.nt();return t.jsxs(Io,{className:"timeline-card",children:[t.jsx(k,{color:a.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:e}),t.jsx(k,{color:a.palette.gray[800],fontWeight:"bold",lineSpacing:1.5,mb:.5,size:"md",textAlign:"center",children:i}),t.jsx("div",{children:n.map((r,o)=>{const l=`${r}#${o}`;return t.jsx(k,{size:"sm",textAlign:"center",wordBreak:"break-word",children:r},l)})})]})},No=({items:e})=>t.jsx(To,{children:e.map((n,i)=>t.jsx(en,{date:n.date,description:n.description,title:n.title},`${n.title}-${i}`))}),Eo=s.dt.div`
|
|
3155
3161
|
${({theme:e})=>`
|
|
3156
3162
|
align-items: center;
|
|
3157
3163
|
display: flex;
|
|
@@ -3181,7 +3187,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
3181
3187
|
width: 320px;
|
|
3182
3188
|
}
|
|
3183
3189
|
`}
|
|
3184
|
-
`,
|
|
3190
|
+
`,Ro=s.dt.button`
|
|
3185
3191
|
${({theme:e})=>`
|
|
3186
3192
|
align-items: center;
|
|
3187
3193
|
background: linear-gradient(
|
|
@@ -3210,7 +3216,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
3210
3216
|
color: ${e.palette.white};
|
|
3211
3217
|
}
|
|
3212
3218
|
`}
|
|
3213
|
-
`,
|
|
3219
|
+
`,Do=({defaultSelection:e,options:n,handleClick:i})=>{const[a,r]=g.useState(e??n[0]),o=g.useCallback(l=>()=>{r(l),i(l)},[i]);return t.jsx(Eo,{children:n.map((l,c)=>t.jsx(Ro,{className:`${l.includes(a)&&"selected"}`,onClick:o(l),children:t.jsx(k,{color:"inherit",fontWeight:"bold",size:"md",sizeSm:"sm",textAlign:"center",children:l})},`${l}-${c}`))})},Fo={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:""},Po=({run:e,steps:n,onFinish:i})=>{const[a,r]=g.useState(e),[o,l]=g.useState(0),c=g.useCallback(d=>{const{action:p,index:u,status:x,type:f}=d;[s.EVENTS.STEP_AFTER,s.EVENTS.TARGET_NOT_FOUND].includes(f)?l(u+(p===s.ACTIONS.PREV?-1:1)):([s.STATUS.FINISHED,s.STATUS.SKIPPED].includes(x)||p==="close")&&(r(!1),s.lodashExports.isUndefined(i)||i())},[i]);return t.jsx(s.components_default,{callback:c,continuous:!0,disableOverlayClose:!0,disableScrollParentFix:!0,run:a,spotlightClicks:!0,stepIndex:o,steps:n,styles:{buttonNext:{display:o===n.length-1?"none":"block"},options:{zIndex:9999}}})},Lo=s.dt.form`
|
|
3214
3220
|
${({theme:e})=>`
|
|
3215
3221
|
align-items: center;
|
|
3216
3222
|
background: ${e.palette.gray[50]};
|
|
@@ -3238,7 +3244,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
3238
3244
|
width: 320px;
|
|
3239
3245
|
}
|
|
3240
3246
|
`}
|
|
3241
|
-
`,
|
|
3247
|
+
`,Wo=s.dt.div`
|
|
3242
3248
|
align-items: flex-start;
|
|
3243
3249
|
align-self: stretch;
|
|
3244
3250
|
display: flex;
|
|
@@ -3252,7 +3258,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
3252
3258
|
text-align: center;
|
|
3253
3259
|
}
|
|
3254
3260
|
}
|
|
3255
|
-
`,
|
|
3261
|
+
`,Bo=s.dt.div`
|
|
3256
3262
|
${({theme:e})=>`
|
|
3257
3263
|
align-items: flex-start;
|
|
3258
3264
|
align-self: stretch;
|
|
@@ -3273,4 +3279,4 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
3273
3279
|
flex-direction: column;
|
|
3274
3280
|
}
|
|
3275
3281
|
`}
|
|
3276
|
-
`,
|
|
3282
|
+
`,Oo=({children:e,name:n,onSubmit:i,submitDisabled:a,submitLabel:r="Submit"})=>t.jsx(Lo,{"aria-label":n,name:n,onSubmit:i,children:t.jsxs(Wo,{children:[e,t.jsx(R,{disabled:a,type:"submit",children:r})]})});exports.Accordion=Dn;exports.AccordionContent=lt;exports.ActionButton=Pe;exports.Alert=Hn;exports.BaseButtonComponent=Ae;exports.BaseComponent=Q;exports.BaseSpanComponent=ot;exports.BaseTextComponent=He;exports.Button=R;exports.Button$1=me;exports.ButtonToolbarCenter=Aa;exports.ButtonToolbarRow=_a;exports.ButtonToolbarStartRow=Ha;exports.Calendar=ft;exports.Calendar$1=wt;exports.Calendar$2=jt;exports.CalendarCell=xt;exports.CalendarGrid=Ce;exports.CardHeader=ke;exports.CardWithImage=Zn;exports.CardWithInput=Pi;exports.CardWithOptions=vt;exports.CardWithSelector=Ai;exports.CardWithSwitch=Vi;exports.Carousel=Xi;exports.CategoryTag=We;exports.Checkbox=ze;exports.Code=Qi;exports.CodeSnippet=Ji;exports.Col=Ga;exports.ColumnsModal=yr;exports.ComboBox=ni;exports.ComboBoxField=Re;exports.Container=b;exports.ContentCard=Mt;exports.ContentCardCarousel=ha;exports.CustomThemeProvider=vn;exports.DateField=bt;exports.DateSelector=ie;exports.Description=Xt;exports.Dialog=Se;exports.Divider=J;exports.Editable=mi;exports.EmptyButton=Be;exports.EmptyState=ma;exports.EventDate=Ot;exports.FilePreview=pt;exports.FiltersList=je;exports.FixedTabs=zo;exports.Form=ja;exports.FormItem=Bo;exports.Gap=Ya;exports.GridContainer=Ca;exports.GroupSelector=Ta;exports.Header=ve;exports.Header$1=Lt;exports.Heading=L;exports.Icon=S;exports.IconButton=B;exports.IndicatorCard=Na;exports.InfoSidebar=Ea;exports.Input=kt;exports.InputDate=mt;exports.InputDateRange=hi;exports.InputDateTime=yi;exports.InputFile=Ci;exports.InputNumber=Ct;exports.InputNumberRange=zi;exports.InputTags=Si;exports.InteractiveCard=Fa;exports.InteractiveIcon=Ht;exports.ItemList=_t;exports.ItemSearching=$e;exports.Label=_e;exports.LanguageSelector=Ma;exports.Link=X;exports.ListItem=fe;exports.ListItemsWrapper=Vt;exports.LittleFlag=Ja;exports.Loading=or;exports.Logo=gr;exports.LogoCarousel=dr;exports.MemoizedImage=_;exports.Menu=ur;exports.MenuItem=Jt;exports.MessageBanner=hr;exports.Modal=Bt;exports.ModalConfirm=Wt;exports.ModalFooter=Dt;exports.Notification=zr;exports.NotificationSign=Ft;exports.NumberField=we;exports.NumberInput=Nr;exports.OAuthSelector=Rr;exports.Option=gt;exports.OptionBoxContainer=Ue;exports.OptionContainer=Me;exports.OptionContainer$1=At;exports.OptionsSelector=Oe;exports.OutlineContainer=M;exports.PhoneInput=Di;exports.PlanCard=Pr;exports.PopUp=Lr;exports.Popover=ue;exports.PremiumFeature=Zt;exports.PreviewPanel=Gt;exports.PriorityScore=Br;exports.Progress=Ur;exports.ProgressBar=_r;exports.RadioButton=Nt;exports.RecommendedTag=qt;exports.Row=qa;exports.ScrollButtons=Le;exports.ScrollUpButton=Kr;exports.Search=ae;exports.SearchBar=no;exports.SearchPanel=Yt;exports.SeverityBadge=ao;exports.SeverityOverview=oo;exports.SeverityOverviewBadge=ne;exports.ShowOnHover=lo;exports.SingleColumFilters=jr;exports.SlideOutMenu=po;exports.Slider=bo;exports.Span=ye;exports.StepLapse=ko;exports.Tab=Pt;exports.TableButton=So;exports.Tabs=Ge;exports.Tag=K;exports.TagsField=Fe;exports.Text=k;exports.TextArea=Fi;exports.Thumb=Qt;exports.TimeField=$t;exports.TimeLine=No;exports.TimeLineCard=en;exports.Toggle=Et;exports.ToggleButton=Do;exports.Tooltip=U;exports.Tour=Po;exports.TwoColumnsFilters=kr;exports.WebForm=Oo;exports.baseStep=Fo;exports.getStyledConfig=ge;exports.hiddenProps=rt;exports.icons=kn;exports.setBorder=le;exports.setDisplay=ce;exports.setInteraction=pe;exports.setMargin=oe;exports.setPadding=re;exports.setPosition=se;exports.setText=de;exports.theme=v;exports.uniqueIcons=Cn;exports.useCarousel=St;exports.useClickOutside=Z;exports.useCloudinaryImage=zt;exports.useConfirmDialog=ga;exports.useDebouncedCallback=It;exports.useModal=Tt;exports.useSearch=Wi;exports.variantBuilder=G;
|