@fluidattacks/design 3.7.4 → 3.7.5-pr
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/@core/index.js +1 -1
- package/dist/components/accordion/accordion-content/index.js +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/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.d.ts +3 -0
- package/dist/components/card/card-with-options/index.js +1 -0
- package/dist/components/card/card-with-options/types.d.ts +27 -0
- 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/index.js +1 -1
- package/dist/components/inputs/fields/combobox/option/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date/index.js +1 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-range/index.js +1 -1
- package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-time/index.js +1 -1
- package/dist/components/inputs/fields/editable/index.js +1 -1
- package/dist/components/inputs/fields/input/index.js +1 -1
- package/dist/components/inputs/fields/input-file/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/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/colums-modal/index.d.ts +1 -1
- package/dist/components/modal/colums-modal/index.js +1 -1
- package/dist/components/modal/colums-modal/types.d.ts +3 -8
- 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/modal/multiple-selection/index.js +1 -1
- package/dist/components/modal/multiple-selection/types.d.ts +4 -4
- 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/sortable-list/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-DC1NC91o.mjs → components-CxkuJqM2.mjs} +1023 -934
- package/dist/{components-DHCUDhFs.js → components-DRcw8i67.js} +264 -263
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-columns-modal.d.ts +22 -0
- package/dist/index.js +1 -1
- package/dist/{vendor-FQSEhQIt.js → vendor-BELJFpy_.js} +2 -2
- package/dist/{vendor-BYfrEtgG.mjs → vendor-C5t6BoBf.mjs} +6778 -6778
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),p=require("react"),a=require("./vendor-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),p=require("react"),a=require("./vendor-BELJFpy_.js"),ae=require("react-dom"),Ie=require("react-router-dom"),G=e=>({getVariant:(n,i)=>e(n)[i]}),Je=["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"],Zt={25:"#fcfcfd",50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#2f394b",800:"#212a36",900:"#161b25"},Jt={25:"#fef2f3",50:"#fddfe2",100:"#fbbac0",200:"#f9959e",300:"#f65e6a",400:"#f32637",500:"#bf0b1a",600:"#ac0a17",700:"#9a0915",800:"#870812",900:"#750710"},Qt={25:"",50:"",100:"#ffe6ff",200:"",300:"#b8075d",400:"",500:"#7f0540",600:"",700:"#59042d",800:"",900:"#460323"},en={25:"",50:"#fef3f2",100:"",200:"#fecdca",300:"",400:"",500:"#f04438",600:"",700:"#b42318",800:"",900:""},tn={25:"",50:"#fffaeb",100:"",200:"#fef0c7",300:"",400:"#ffd562",500:"#fdb022",600:"#dc6803",700:"#b54708",800:"",900:""},nn={25:"",50:"#f6fef9",100:"",200:"#a6f4c5",300:"",400:"",500:"#12b76a",600:"",700:"#027a48",800:"",900:""},rn={25:"",50:"#eff8ff",100:"",200:"#b2ddff",300:"",400:"",500:"#2e90fa",600:"",700:"#175cd3",800:"",900:""},an={"01":"linear-gradient(45deg, #f32637 0%, #b8075d 100%)","02":"linear-gradient(45deg, #fcfcfd 0%, #667085 100%)"},on={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"}},sn={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)"},ln={mobile:"480px",tablet:"960px",sm:"1024px",md:"1440px",lg:"1920px"},cn={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"},dn=["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"],pn=[["fal","arrow-down"],["fal","arrow-left"],["fal","arrow-right"],["fal","arrow-up"],["fal","plus"],["fal","minus"],["fas","check"],["fas","circle-question"]],k={typography:on,shadows:sn,breakpoints:ln,spacing:cn,palette:{primary:Jt,complementary:Qt,error:en,info:rn,warning:tn,success:nn,black:"#0c111d",white:"#ffffff",gray:Zt,gradients:an}},gn=({children:e})=>t.jsx(a.ot,{theme:k,children:e}),I=(e,n)=>n===void 0?"":`${e}: ${n};`,oe=e=>{const n=e.py??e.pt??0,i=e.px??e.pr??0,o=e.py??e.pb??0,r=e.px??e.pl??0;if(e.padding){const[s,l,c,d]=e.padding;return`padding: ${k.spacing[s]} ${k.spacing[l]} ${k.spacing[c]} ${k.spacing[d]};`}return`padding: ${k.spacing[n]} ${k.spacing[i]} ${k.spacing[o]} ${k.spacing[r]};`},se=e=>{const n=e.my??e.mt??0,i=e.mx??e.mr??0,o=e.my??e.mb??0,r=e.mx??e.ml??0;if(e.margin){const[s,l,c,d]=e.margin;return`margin: ${k.spacing[s]} ${k.spacing[l]} ${k.spacing[c]} ${k.spacing[d]};`}return`margin: ${k.spacing[n]} ${k.spacing[i]} ${k.spacing[o]} ${k.spacing[r]};`},le=e=>{const n=I("position",e.position),i=I("top",e.top),o=I("right",e.right),r=I("bottom",e.bottom),s=I("left",e.left),l=I("z-index",e.zIndex);return`
|
|
2
2
|
${n}
|
|
3
3
|
${i}
|
|
4
4
|
${o}
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
${s}
|
|
14
14
|
${l}
|
|
15
15
|
${c}
|
|
16
|
-
`},
|
|
17
|
-
${
|
|
18
|
-
${
|
|
19
|
-
`:"",i=I("visibility",e.visibility),o=I("display",e.display),r=I("height",e.height),s=I("width",e.width),l=I("max-height",e.maxHeight),c=I("max-width",e.maxWidth),d=I("min-height",e.minHeight),g=I("min-width",e.minWidth),u=I("box-shadow",e.shadow?k.shadows[e.shadow]:void 0),x=I("gap",e.gap===void 0?void 0:k.spacing[e.gap]),f=I("background-color",e.bgColor),h=I("background",e.bgGradient)
|
|
16
|
+
`},un=e=>e.includes("x")?"overflow-x: auto;":"",xn=e=>e.includes("y")?"overflow-y: auto;":"",de=e=>{const n=e.scroll?`
|
|
17
|
+
${un(e.scroll)}
|
|
18
|
+
${xn(e.scroll)}
|
|
19
|
+
`:"",i=I("visibility",e.visibility),o=I("display",e.display),r=I("height",e.height),s=I("width",e.width),l=I("max-height",e.maxHeight),c=I("max-width",e.maxWidth),d=I("min-height",e.minHeight),g=I("min-width",e.minWidth),u=I("box-shadow",e.shadow?k.shadows[e.shadow]:void 0),x=I("gap",e.gap===void 0?void 0:k.spacing[e.gap]),f=I("background-color",e.bgColor),h=I("background",e.bgGradient),$=I("flex-direction",e.flexDirection),m=I("flex-grow",e.flexGrow),y=I("justify-content",e.justify),w=I("justify-self",e.justifySelf),v=I("align-items",e.alignItems),S=I("align-self",e.alignSelf),z=I("flex-wrap",e.wrap);return`
|
|
20
20
|
${n}
|
|
21
21
|
${i}
|
|
22
22
|
${o}
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
${f}
|
|
31
31
|
${h}
|
|
32
32
|
${x}
|
|
33
|
-
${
|
|
33
|
+
${$}
|
|
34
34
|
${m}
|
|
35
35
|
${y}
|
|
36
36
|
${w}
|
|
37
|
-
${
|
|
37
|
+
${v}
|
|
38
38
|
${S}
|
|
39
39
|
${z}
|
|
40
40
|
`},pe=e=>{const n=I("color",e.color),i=I("font-family",e.fontFamily),o=I("font-size",e.fontSize),r=I("font-weight",e.fontWeight),s=I("line-spacing",e.letterSpacing),l=I("line-height",e.lineSpacing),c=I("text-align",e.textAlign),d=I("text-decoration",e.textDecoration),g=I("text-overflow",e.textOverflow),u=I("white-space",e.whiteSpace),x=I("word-break",e.wordBreak),f=I("word-wrap",e.wordWrap);return`
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
${o}
|
|
60
60
|
${r}
|
|
61
61
|
}
|
|
62
|
-
`},ue=()=>({shouldForwardProp:e=>!
|
|
62
|
+
`},ue=()=>({shouldForwardProp:e=>!Je.includes(e)}),te=a.dt.div.withConfig(ue())`
|
|
63
63
|
${oe}
|
|
64
64
|
${se}
|
|
65
65
|
${le}
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
${pe}
|
|
84
84
|
${ce}
|
|
85
85
|
${ge}
|
|
86
|
-
`,
|
|
86
|
+
`,Qe=a.dt.span.withConfig(ue())`
|
|
87
87
|
${oe}
|
|
88
88
|
${se}
|
|
89
89
|
${le}
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
${pe}
|
|
92
92
|
${ce}
|
|
93
93
|
${ge}
|
|
94
|
-
`,
|
|
94
|
+
`,fn=a.dt(te)`
|
|
95
95
|
${({theme:e,$center:n=!1,$styleMd:i,$styleSm:o})=>`
|
|
96
96
|
${n?"margin: auto;":""}
|
|
97
97
|
scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
${o};
|
|
109
109
|
}
|
|
110
110
|
`}
|
|
111
|
-
|
|
111
|
+
`,b=p.forwardRef(function({as:n="div",center:i,children:o,id:r,onHover:s,onLeave:l,styleMd:c,styleSm:d,...g},u){return t.jsx(fn,{$center:i,$styleMd:c,$styleSm:d,as:n,id:r,onMouseLeave:l,onMouseOver:s,ref:u,...g,children:o})}),hn=a.dt(We)`
|
|
112
112
|
${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[800],$display:o="block",$fontFamily:r=e.typography.type.primary,$fontWeight:s="bold",$letterSpacing:l=0,$lineSpacing:c=1.5,$lineSpacingSm:d,$size:g,$sizeMd:u,$sizeSm:x,$textFill:f="unset",$wordBreak:h="normal"})=>`
|
|
113
113
|
background: ${n};
|
|
114
114
|
color: ${i};
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
line-height: ${e.spacing[d??c]};
|
|
137
137
|
}
|
|
138
138
|
`}
|
|
139
|
-
`,
|
|
139
|
+
`,et=a.dt(We)`
|
|
140
140
|
${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[600],$display:o="block",$fontFamily:r=e.typography.type.primary,$fontWeight:s="regular",$letterSpacing:l=0,$lineSpacing:c=1.25,$lineSpacingSm:d,$size:g,$sizeMd:u,$sizeSm:x,$textFill:f="unset",$wordBreak:h="normal"})=>`
|
|
141
141
|
background: ${n};
|
|
142
142
|
color: ${i};
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
line-height: ${e.spacing[d??c]};
|
|
165
165
|
}
|
|
166
166
|
`}
|
|
167
|
-
`,
|
|
167
|
+
`,bn=a.dt.span`
|
|
168
168
|
${({theme:e,$color:n=e.palette.gray[600],$content:i=void 0,$display:o="inline",$fontWeight:r="regular",$size:s,$lineSpacing:l=1.25})=>`
|
|
169
169
|
color: ${n};
|
|
170
170
|
display: ${o};
|
|
@@ -176,11 +176,11 @@
|
|
|
176
176
|
|
|
177
177
|
${i===void 0?"":`&::after { content: "${i}"; }`}
|
|
178
178
|
`}
|
|
179
|
-
`,
|
|
179
|
+
`,L=p.forwardRef(function({bgGradient:n,children:i,className:o,color:r,display:s,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:g,lineSpacingSm:u,size:x,sizeMd:f,sizeSm:h,textFill:$,wordBreak:m,...y},w){return t.jsx(hn,{$bgGradient:n,$color:r,$display:s,$fontFamily:l,$fontWeight:c,$letterSpacing:d,$lineSpacing:g,$lineSpacingSm:u,$size:x,$sizeMd:f,$sizeSm:h,$textFill:$,$wordBreak:m,className:o,ref:w,...y,children:i})}),ye=p.forwardRef(function({children:n,color:i,content:o,display:r,fontFamily:s,fontWeight:l,letterSpacing:c,lineSpacing:d,lineSpacingSm:g,size:u,sizeMd:x,sizeSm:f,...h},$){return t.jsx(bn,{$color:i,$content:o,$display:r,$fontFamily:s,$fontWeight:l,$letterSpacing:c,$lineSpacing:d,$lineSpacingSm:g,$size:u,$sizeMd:x,$sizeSm:f,ref:$,...h,children:n})}),j=p.forwardRef(function({bgGradient:n,children:i,className:o,color:r,display:s,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:g,lineSpacingSm:u,size:x,sizeMd:f,sizeSm:h,textFill:$,wordBreak:m,...y},w){return t.jsx(et,{$bgGradient:n,$color:r,$display:s,$fontFamily:l,$fontWeight:c,$letterSpacing:d,$lineSpacing:g,$lineSpacingSm:u,$size:x,$sizeMd:f,$sizeSm:h,$textFill:$,$wordBreak:m,className:o,ref:w,...y,children:i})}),tt=({item:e})=>t.jsxs(b,{display:"block",id:`panel-${e.title}`,padding:[.75,.75,.75,.75],children:[e.description?t.jsx(j,{mb:e.extraElement?.5:void 0,size:"sm",children:e.description}):void 0,e.extraElement?t.jsx(b,{children:e.extraElement}):void 0]}),$n={xl:"96px",lg:"64px",md:"32px",sm:"24px",xs:"16px",xxs:"12px",xxss:"10px"},yn=a.dt(Qe)`
|
|
180
180
|
${({$clickable:e,$color:n="inherit",$disabled:i=!1,$hoverColor:o,$rotation:r,$size:s,$secondaryColor:l})=>{const c=o?"":"brightness(50%)",d=o??"";return`
|
|
181
181
|
color: ${n};
|
|
182
182
|
cursor: ${e?"pointer":"inherit"};
|
|
183
|
-
font-size: ${
|
|
183
|
+
font-size: ${$n[s]};
|
|
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
|
|
215
|
+
`;const C=p.forwardRef(function({clickable:n,disabled:i,hoverColor:o,icon:r,iconClass:s="",iconColor:l,iconMask:c,iconSize:d,iconTransform:g,iconType:u="fa-solid",onClick:x,rotation:f,spanClass:h,secondaryColor:$,...m},y){return t.jsx(yn,{$clickable:n,$color:l,$disabled:i,$hoverColor:o,$rotation:f,$secondaryColor:$,$size:d,className:h,"data-testid":`${r}-icon`,onClick:x,ref:y,...m,children:t.jsx("i",{className:`${u} fa-${r} ${s}`,...c!==void 0?{"data-fa-mask":c}:{},...g!==void 0?{"data-fa-transform":g}:{}})},`${u}-${r}`)}),mn=p.forwardRef(function({aligned:n="end",items:i,bgColor:o},r){const s=a.nt(),[l,c]=p.useState(!1),[d,g]=p.useState(-1),u=p.useCallback(x=>()=>{g(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:o??s.palette.white,children:[t.jsx(b,{"aria-controls":`panel-${x.title}`,"aria-expanded":l,"aria-label":x.title,as:"button",bgColor:o??s.palette.white,bgColorHover:s.palette.gray[100],borderBottom:h||f===i.length-1?"1px solid":void 0,borderColor:s.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(j,{color:s.palette.gray[800],fontWeight:"bold",size:"sm",sizeSm:"sm",textAlign:"start",children:x.title}),t.jsx(C,{icon:h?"chevron-up":"chevron-down",iconColor:s.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]})}),h&&t.jsx(tt,{item:x})]},x.title)})})}),wn=e=>{switch(e){case"warning":return"triangle-exclamation";case"info":return"circle-info";case"success":return"circle-check";case"error":default:return"circle-exclamation"}},{getVariant:jn}=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
|
+
`})),kn=a.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
|
+
${jn(e,n??"error")}
|
|
288
288
|
`}
|
|
289
|
-
`,
|
|
289
|
+
`,Cn=a.dt.div`
|
|
290
290
|
padding-right: 4px;
|
|
291
291
|
width: 100%;
|
|
292
|
-
`,{getVariant:
|
|
292
|
+
`,{getVariant:vn}=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
|
+
`})),nt=a.dt(Pe)`
|
|
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
|
+
${vn(e,n??"primary")}
|
|
389
389
|
`}
|
|
390
|
-
`,
|
|
390
|
+
`,Sn=a.dt(nt)`
|
|
391
391
|
${({theme:e,$borderRadius:n="4px",$px:i=.5,$py:o=.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
|
+
`,zn=a.dt(te)``,In=a.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=p.forwardRef(function({children:n,disabled:i=!1,display:o="inline-block",effect:r="solid",icon:s,iconColor:l,iconSize:c,id:d,maxWidth:g,nodeTip:u,place:x="bottom",tip:f="",title:h="",hide
|
|
417
|
+
`,U=p.forwardRef(function({children:n,disabled:i=!1,display:o="inline-block",effect:r="solid",icon:s,iconColor:l,iconSize:c,id:d,maxWidth:g,nodeTip:u,place:x="bottom",tip:f="",title:h="",hide:$=f===""&&h===""&&u===void 0,...m},y){const w=a.nt(),[v,S]=p.useState(!1),z=p.useRef(null),E=p.useCallback(()=>{z.current!==null&&clearTimeout(z.current),z.current=setTimeout(()=>{S(!0)},100)},[]),T=p.useCallback(()=>{z.current!==null&&clearTimeout(z.current),z.current=setTimeout(()=>{S(!1)},100)},[]);return i?t.jsx(p.StrictMode,{children:n}):t.jsxs(zn,{"data-tooltip-id":d,display:o,onMouseLeave:T,onMouseMove:E,ref:y,role:"tooltip",...m,children:[s?t.jsx(C,{clickable:!0,disabled:i,icon:s,iconColor:l,iconSize:c??"xxs",iconType:v?"fa-solid":"fa-light"}):n,ae.createPortal(t.jsx(In,{$maxWidth:g,children:t.jsxs(a.M,{delayShow:500,float:r==="float"?!0:void 0,globalCloseEvents:{resize:!0},hidden:$||!v,id:d,middlewares:[a.flip({fallbackAxisSideDirection:"start"}),a.offset({mainAxis:10})],noArrow:r==="float",place:x,children:[a.lodashExports.isEmpty(h)?void 0:t.jsx(j,{color:w.palette.white,fontWeight:"bold",lineSpacing:1.5,size:"xs",textAlign:"start",wordWrap:"break-word",children:h}),a.lodashExports.isEmpty(f)?void 0:t.jsx(j,{color:w.palette.gray[100],lineSpacing:1.5,size:"xs",textAlign:"start",wordWrap:"break-word",children:f}),a.lodashExports.isEmpty(u)?void 0:u]})}),document.getElementById("root")??document.body)]})}),A=p.forwardRef(function({borderRadius:n,disabled:i,icon:o,iconColor:r,iconSize:s="xxs",iconTransform:l,iconType:c,id:d,justify:g="center",onClick:u,px:x,py:f,type:h="button",tooltip:$,tooltipPlace:m,value:y,variant:w="primary",...v},S){const z=t.jsx(Sn,{$borderRadius:n,$px:x,$py:f,$variant:w,"aria-disabled":i,"aria-label":d,borderRadius:n,disabled:i,id:d,justify:g,onClick:u,ref:S,type:h,value:y,...v,children:t.jsx(C,{clickable:!1,icon:o,iconColor:r,iconSize:s,iconTransform:l,iconType:c})}),T=(h+(w??"")+(d??o)).replace(/ /u,"_");return $===void 0?z:t.jsx(U,{id:`${T}-tooltip`,place:m,tip:$,children:z})}),Tn=p.forwardRef(function({autoHide:n=!1,children:i,closable:o=!1,onTimeOut:r,show:s=!0,time:l=8,variant:c="error",id:d,...g},u){const[x,f]=p.useState(s),h=p.useCallback(()=>{f(!1)},[]);return p.useEffect(()=>{const $=setTimeout(()=>{r==null||r(!0),n&&h()},l*1e3);return()=>{clearTimeout($)}},[n,h,l,r]),p.useEffect(()=>{f(s)},[s,f]),t.jsx(b,{display:x?"block":"none",ref:u,role:"alert",...g,children:t.jsxs(kn,{$variant:c,id:d,children:[t.jsx(C,{clickable:!1,icon:wn(c),iconSize:"xs",iconType:"fa-light"}),t.jsx(Cn,{children:i}),o?t.jsx(A,{height:"fit-content",icon:"close",iconSize:"xs",iconType:"fa-light",onClick:h,px:.125,py:.125,variant:"ghost"}):void 0]})})}),{getVariant:Nn}=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
|
+
`})),Rn=a.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
|
+
${Nn(e,i)}
|
|
514
514
|
`}
|
|
515
|
-
`,{getVariant:
|
|
515
|
+
`,{getVariant:En}=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
|
+
`})),it=a.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??En(e,i)}
|
|
550
550
|
`}
|
|
551
|
-
`,
|
|
552
|
-
${
|
|
553
|
-
`,
|
|
554
|
-
${
|
|
555
|
-
`,K=({children:e,color:n,download:i,href:o,iconPosition:r="right",onClick:s,target:l,variant:c="lowRelevance"})=>{const d=o.startsWith("https://"),g=t.jsx(
|
|
551
|
+
`,Dn=a.dt.a`
|
|
552
|
+
${it}
|
|
553
|
+
`,Fn=a.dt(Ie.Link)`
|
|
554
|
+
${it}
|
|
555
|
+
`,K=({children:e,color:n,download:i,href:o,iconPosition:r="right",onClick:s,target:l,variant:c="lowRelevance"})=>{const d=o.startsWith("https://"),g=t.jsx(C,{icon:i===void 0?"arrow-up-right-from-square":"arrow-down-to-bracket",iconSize:"xxs",iconType:"fa-regular",ml:.25,mr:.25});return d?t.jsxs(Dn,{$color:n,$variant:c,download:i,href:o,onClick:s,rel:"nofollow noopener noreferrer",target:l??"_blank",children:[r==="left"?g:void 0,e,r==="right"?g:void 0]}):t.jsxs(Fn,{$variant:c,download:i,onClick:s,rel:"nofollow noopener noreferrer",target:l,to:o,children:[l!==void 0&&r==="left"?g:void 0,e,l!==void 0&&r==="right"?g:void 0]})},q=({disabled:e,icon:n,iconColor:i="inherit",iconType:o="fa-light",id:r="close-tag",filterValues:s="",fontSize:l,href:c,linkLabel:d,onClose:g,priority:u="default",tagTitle:x="",tagLabel:f,variant:h="default"})=>{const $=f.length>25&&a.lodashExports.isEmpty(x+s),m=`${f.slice(0,25)}...`;return t.jsxs(ye,{className:"gap-0.5",display:c===void 0?"initial":"flex",size:"sm",children:[t.jsxs(Rn,{$fontSize:l,$variant:h,className:u,children:[n&&t.jsx(C,{icon:n,iconColor:i,iconSize:"xxs",iconType:o}),t.jsxs("span",{children:[t.jsx("strong",{children:x}),t.jsx("span",{children:$?m:f}),t.jsx("strong",{children:s})]}),g?t.jsx(A,{disabled:e,icon:"xmark",iconSize:"xxs",iconType:"fa-light",id:r,onClick:g,px:.125,py:.125,variant:"ghost"}):void 0]}),c===void 0?void 0:t.jsx(K,{href:c,children:d})]})},Pn=(e,n=!0)=>{const i=window.open(e,n?void 0:"_self","noopener,noreferrer,");a.lodashExports.isObject(i)&&(i.opener=null)},R=p.forwardRef(function({children:n,disabled:i=!1,external:o=!1,href:r,id:s,icon:l,name:c,onClick:d,showArrow:g=!1,tag:u,type:x="button",tooltip:f,tooltipPlace:h="bottom",underline:$=!1,value:m,variant:y="primary",...w},v){const S=f!==void 0,z=`${s}-tooltip`,E=p.useCallback(()=>{r&&Pn(r,o)},[o,r]);return t.jsx(U,{disabled:!S,id:z,place:h,tip:f,children:t.jsxs(nt,{$variant:y,"aria-disabled":i,className:$?"underline":void 0,disabled:i,id:s,name:c,onClick:y==="link"?E:d,ref:v,type:x,value:m,...S?{"data-tooltip-id":z}:{},...w,children:[l!==void 0&&t.jsx(C,{icon:l,iconSize:"xs",iconType:"fa-light"}),n,(g||y==="link")&&t.jsx(C,{icon:"arrow-right",iconSize:"xs",iconType:"fa-light"}),u===void 0?null:t.jsx(q,{tagLabel:u,variant:"inactive"})]})})}),ke=({authorEmail:e,date:n,description:i,descriptionColor:o,id:r,title:s,titleColor:l,textAlign:c,textSpacing:d=0,tooltip:g})=>{const u=a.nt();return t.jsxs(b,{width:"100%",children:[typeof s=="string"?t.jsx(j,{color:l??u.palette.gray[800],fontWeight:"bold",mb:d,size:"sm",textAlign:c,wordBreak:"break-word",children:s}):s,t.jsxs(b,{alignItems:"start",display:"flex",flexDirection:"column",gap:.25,children:[i&&t.jsx(j,{color:o??u.palette.gray[800],fontWeight:i===void 0?"bold":"regular",size:"sm",textAlign:c,wordBreak:"break-word",children:i}),n&&t.jsx(j,{color:u.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`Date: ${n.split(" ")[0]}`}),e&&t.jsx(j,{color:u.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`$Author: ${e}`}),g&&t.jsx(U,{icon:"circle-info",id:r,tip:g})]})]})},Ve=a.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
|
+
`,Wn=e=>{if(a._.isNil(e))return"";const n=e.split(".");return(n.length>1?a._.last(n):"").toLowerCase()},Ln=(e,n)=>a._.isUndefined(n)?!1:a._.includes(e,Wn(n)),rt=({alt:e,fileType:n,width:i="100%",opacity:o=0,src:r,height:s="auto"})=>n==="video"||Ln(["webm"],r)?t.jsx(Ve,{$opacity:o,children:t.jsxs("video",{controls:!0,height:s,muted:!0,width:i,children:[t.jsx("source",{src:r,type:"video/webm"}),t.jsx(K,{href:r,iconPosition:"hidden",children:r})]})}):t.jsx(Ve,{$opacity:o,children:t.jsx("img",{alt:e,height:s,src:r,width:i})}),Mn=({alt:e,authorEmail:n,date:i,description:o,src:r,children:s,isEditing:l,onClick:c,title:d,hideDescription:g=!1,headerType:u="image",showMaximize:x=!0})=>{const f=a.nt(),[h,$]=p.useState(!1),m=p.useCallback(()=>{$(!0)},[]),y=p.useCallback(()=>{$(!1)},[]);return t.jsxs(b,{bgColor:"transparent",border:"1px solid transparent",borderColorHover:"black",borderRadius:f.spacing[.25],display:"flex",flexDirection:"column",gap:1,onHover:m,onLeave:y,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:s===void 0?t.jsxs(p.Fragment,{children:[t.jsx(rt,{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(A,{color:"white",icon:"arrows-maximize",iconSize:"xxs",iconType:"fa-light",variant:"secondary"})}):void 0]}):s}),g?null:t.jsx(ke,{authorEmail:n,date:i,description:o,descriptionColor:f.palette.gray[600],id:`${e}-card-header`,title:d})]})},Bn=a.dt.div`
|
|
571
571
|
${({theme:e,$align:n="center",$minWidth:i="auto",$minHeight:o="auto"})=>`
|
|
572
572
|
display: flex;
|
|
573
573
|
background-color: ${e.palette.white};
|
|
@@ -586,7 +586,7 @@
|
|
|
586
586
|
text-align: ${n};
|
|
587
587
|
}
|
|
588
588
|
`}
|
|
589
|
-
`,
|
|
589
|
+
`,An=a.dt.ul`
|
|
590
590
|
${({theme:e})=>`
|
|
591
591
|
align-self: center;
|
|
592
592
|
background: ${e.palette.white};
|
|
@@ -601,7 +601,7 @@
|
|
|
601
601
|
scroll-padding: ${e.spacing[.5]};
|
|
602
602
|
width: 95%;
|
|
603
603
|
`}
|
|
604
|
-
`,
|
|
604
|
+
`,On=a.dt.li`
|
|
605
605
|
${({theme:e})=>`
|
|
606
606
|
align-items: center;
|
|
607
607
|
color: ${e.palette.gray[800]};
|
|
@@ -634,7 +634,7 @@
|
|
|
634
634
|
cursor: not-allowed;
|
|
635
635
|
}
|
|
636
636
|
`}
|
|
637
|
-
`,
|
|
637
|
+
`,at=({item:e,state:n})=>{const i=p.useRef(null),{optionProps:o,isSelected:r,isFocused:s,isDisabled:l}=a.$293f70390ea03370$export$497855f14858aa34({key:e.key},n,i),c=[r?"selected":"",s?"focused":"",l?"disabled":""].join(" ");return t.jsxs(On,{...o,className:c,ref:i,children:[e.rendered,r?t.jsx(C,{icon:"check",iconSize:"xxs",iconType:"fa-light"}):void 0]})},Le=({htmlFor:e,label:n,required:i,tooltip:o,weight:r="normal"})=>{const s=a.nt(),l=`${e}-tooltip`,c=o!==void 0&&!a.lodashExports.isEmpty(o);return t.jsxs("label",{className:`flex font-${r} gap-1 w-full`,htmlFor:e,children:[n,i&&t.jsx(C,{icon:"asterisk",iconColor:s.palette.error[500],iconSize:"xxss"}),c?t.jsx(U,{display:"inline-flex",icon:"circle-info",id:l,place:"top",tip:o}):null]})},_n=a.dt.div`
|
|
638
638
|
${({theme:e})=>`
|
|
639
639
|
align-items: flex-start;
|
|
640
640
|
display: inline-flex;
|
|
@@ -773,7 +773,7 @@
|
|
|
773
773
|
border: 1px solid ${e.palette.gray[600]};
|
|
774
774
|
}
|
|
775
775
|
`}
|
|
776
|
-
`,O=({children:e,error:n,helpLink:i,helpLinkText:o="Link here",helpText:r,htmlFor:s,label:l,maxLength:c,required:d,tooltip:g,value:u,weight:x})=>{const f=a.nt(),h=u?u.length:0;return t.jsxs(
|
|
776
|
+
`,O=({children:e,error:n,helpLink:i,helpLinkText:o="Link here",helpText:r,htmlFor:s,label:l,maxLength:c,required:d,tooltip:g,value:u,weight:x})=>{const f=a.nt(),h=u?u.length:0;return t.jsxs(_n,{children:[l===void 0?void 0:t.jsx(Le,{htmlFor:s,label:l,required:d,tooltip:g,weight:x}),e,n||c?t.jsxs(b,{display:"flex",justify:n===void 0?"end":"space-between",width:"100%",children:[n&&t.jsx(j,{className:"error-msg",color:f.palette.error[500],display:"block",lineSpacing:1,size:"sm",children:n}),c&&t.jsx(q,{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(C,{icon:"circle-info",iconColor:f.palette.gray[400],iconSize:"xxs",iconType:"fa-light"}),t.jsx(j,{color:f.palette.gray[400],display:"inline-block",size:"sm",children:r})]}),i&&t.jsx(K,{href:i,children:o})]}):void 0]})},xe=({className:e,children:n,isFilter:i=!1,popoverRef:o,state:r,triggerRef:s,...l})=>{var x;const c=p.useRef(null),d=(x=s==null?void 0:s.current)==null?void 0:x.getBoundingClientRect(),{popoverProps:g}=a.$f2f8a6077418541e$export$542a6fd13ac93354({...l,popoverRef:o??c,triggerRef:s},r),u=p.useCallback(f=>{f.preventDefault()},[]);return t.jsx(a.$337b884510726a0d$export$c6fdb837b070b4ff,{children:t.jsx("div",{...g,className:e,onPointerDown:i?u:void 0,ref:o??c,style:{...g.style,...e==="dropdown"?{display:"flex",justifyContent:"center",width:d==null?void 0:d.width}:{}},children:n})})},Hn=({disabled:e=!1,helpLink:n,helpLinkText:i,helpText:o,label:r,name:s,items:l,placeholder:c,required:d,tooltip:g,weight:u})=>{var He;const x=a.nt(),{control:f,setValue:h}=a.useFormContext(),{field:{value:$,onBlur:m},fieldState:{error:y}}=a.useController({name:s,control:f,disabled:e,rules:{required:d}}),[w,v]=p.useState(((He=l.find(W=>W.value===$))==null?void 0:He.name)??""),[S,z]=p.useState($),[E,T]=p.useState(l),{contains:N}=a.$bb77f239b46e8c72$export$3274cf84b703fff({sensitivity:"base"}),P=p.useRef(null),F=p.useRef(null),D=p.useRef(null),M=p.useRef(null),Z=p.useRef(null),B=l.map(W=>N(W.name,w)?t.jsx(a.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,{children:W.name},W.value):null),V=p.useCallback(W=>{v(W),z(Q=>{const he=W===""?"":Q;return h(s,he),he}),T(l.filter(Q=>N(Q.name,W)))},[N,l,s,h]),J=p.useCallback(W=>{var Q;v(((Q=l.find(he=>he.value===W))==null?void 0:Q.name)??""),z(W?String(W):""),h(s,W),T(l)},[l,s,h]),_=a.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({allowsEmptyCollection:!0,inputValue:w,items:E,shouldCloseOnBlur:!0,selectedKey:S,onBlur:m,onInputChange:V,onSelectionChange:J,children:B}),{buttonProps:Ut,inputProps:fe,listBoxProps:Yt}=a.$c350ade66beef0af$export$8c18d1b4f7232bbf({inputValue:w,buttonRef:F,id:s,inputRef:P,label:r,listBoxRef:D,name:s,placeholder:c,popoverRef:Z},_),Kt=p.useCallback(W=>{fe.onKeyDown&&fe.onKeyDown(W),W.key==="Enter"&&W.preventDefault()},[fe]),{listBoxProps:qt}=a.$c132121280ec012d$export$50eacbbf140a3141(Yt,_,D),{buttonProps:Xt}=a.$701a24aa0da5b062$export$ea18c227d4417cc3(Ut,F);return t.jsxs(O,{error:y?y.message:void 0,helpLink:n,helpLinkText:i,helpText:o,htmlFor:s,label:r,required:d,tooltip:g,weight:u,children:[t.jsxs(Y,{className:`${e?"disabled":""} ${y?"error":""}`,ref:M,children:[t.jsx("input",{...fe,"aria-invalid":y?"true":"false","aria-label":s,onKeyDown:Kt,ref:P}),y?t.jsx(C,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:x.palette.error[500],iconSize:"xs"}):void 0,t.jsx(A,{...Xt,className:"action",icon:_.isOpen?"chevron-up":"chevron-down",iconColor:x.palette.gray[400],iconSize:"xxs",iconType:"fa-light",px:.125,py:.125,ref:F,type:"button",variant:"ghost"})]}),_.isOpen&&_.collection.size>0&&!e?t.jsx(xe,{className:"dropdown",offset:4,placement:"bottom start",popoverRef:Z,state:_,triggerRef:M,children:t.jsx(An,{...qt,ref:D,children:[..._.collection].map(W=>t.jsx(at,{item:W,state:_},W.key))})}):null]})},Vn=a.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
|
+
`,Gn=a.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
|
+
`,Ge=a.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
|
+
`,ot=a.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
|
+
`,Un=a.dt.th`
|
|
830
|
+
${ot}
|
|
831
|
+
`,Yn=a.dt.td`
|
|
832
832
|
${({theme:e})=>`
|
|
833
|
-
${
|
|
833
|
+
${ot}
|
|
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
|
+
`,Kn=a.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
|
+
`,Ue=a.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
|
+
`,Me=a.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
|
+
`,st=({state:e,date:n})=>{const i=p.useRef(null),o=a.$14e0f24ef4ac5c92$export$629b0a497aa65267(n,a.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),{cellProps:r,buttonProps:s,isSelected:l,isDisabled:c,formattedDate:d}=a.$36a0ac60f04457c5$export$136073280381448e({date:n},e,i),g="highlightedRange"in e&&!a.lodashExports.isNull(e.highlightedRange)?a.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.start):l,u="highlightedRange"in e&&!a.lodashExports.isNull(e.highlightedRange)?a.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.end):l,x=l&&!c&&!(g||u)?"range":"";return t.jsx(Yn,{id:x,...r,children:t.jsxs("div",{...s,className:`cell ${g||u?"selected":""}
|
|
909
909
|
${c?"disabled":""} ${o?"today":""}
|
|
910
|
-
${!e.isFocused&&!o?"focused":""} ${x}`,ref:i,children:[d,o?t.jsx(
|
|
910
|
+
${!e.isFocused&&!o?"focused":""} ${x}`,ref:i,children:[d,o?t.jsx(Kn,{children:t.jsx(C,{clickable:!1,icon:"circle",iconSize:"xxs"})}):void 0]})})},Ce=({state:e,...n})=>{const{locale:i}=a.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{weekDays:o}=a.$e3031d1f8c9d64eb$export$cb95147730a423f5(n,e),r=a.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654(e.visibleRange.start,i);return t.jsxs("table",{children:[t.jsx("thead",{children:t.jsx(Ge,{children:o.map((s,l)=>{const c=`key_${l}`;return t.jsx(Un,{children:s},c)})})}),t.jsx("tbody",{children:[...new Array(r).keys()].map(s=>t.jsx(Ge,{children:e.getDatesInWeek(s).map((l,c)=>{const d=`key_${c}`;return l?t.jsx(st,{date:l,state:e},d):t.jsx("td",{},d)})},s))})]})},qn=a.dt(Pe)`
|
|
911
911
|
align-items: center;
|
|
912
912
|
background-color: inherit;
|
|
913
913
|
border-color: inherit;
|
|
@@ -923,7 +923,7 @@
|
|
|
923
923
|
background-color: ${({theme:e})=>e.palette.gray[100]};
|
|
924
924
|
cursor: pointer;
|
|
925
925
|
}
|
|
926
|
-
`,
|
|
926
|
+
`,Xn=a.dt.div`
|
|
927
927
|
${({theme:e})=>`
|
|
928
928
|
align-items: flex-start;
|
|
929
929
|
background: ${e.palette.white};
|
|
@@ -937,7 +937,7 @@
|
|
|
937
937
|
padding: ${e.spacing[.25]};
|
|
938
938
|
width: 292px;
|
|
939
939
|
`}
|
|
940
|
-
`,
|
|
940
|
+
`,Zn=a.dt.button`
|
|
941
941
|
${({theme:e,$disabled:n,$focus:i,$header:o})=>{const r=i?"34px":"40px";return`
|
|
942
942
|
align-items: center;
|
|
943
943
|
border-radius: ${o?`0 ${e.spacing[.5]} ${e.spacing[.5]} 0`:"4px"};
|
|
@@ -952,7 +952,7 @@
|
|
|
952
952
|
background-color: ${e.palette.gray[n?500:100]};
|
|
953
953
|
}
|
|
954
954
|
`}}
|
|
955
|
-
`,
|
|
955
|
+
`,Jn=a.dt.div`
|
|
956
956
|
${({theme:e})=>`
|
|
957
957
|
align-items: center;
|
|
958
958
|
background: transparent;
|
|
@@ -963,13 +963,13 @@
|
|
|
963
963
|
justify-content: space-between;
|
|
964
964
|
width: calc(100% - 40px);
|
|
965
965
|
`}
|
|
966
|
-
`,
|
|
966
|
+
`,Qn=a.dt.div`
|
|
967
967
|
align-items: center;
|
|
968
968
|
display: flex;
|
|
969
969
|
justify-content: flex-end;
|
|
970
970
|
gap: ${({theme:e})=>e.spacing[.5]};
|
|
971
971
|
flex: 1 0 0;
|
|
972
|
-
`,
|
|
972
|
+
`,Ye=a.dt.div`
|
|
973
973
|
${({theme:e})=>`
|
|
974
974
|
align-items: center;
|
|
975
975
|
align-self: stretch;
|
|
@@ -981,7 +981,7 @@
|
|
|
981
981
|
line-height: ${e.spacing[1.5]};
|
|
982
982
|
padding: 2px ${e.spacing[.25]};
|
|
983
983
|
`}
|
|
984
|
-
`,
|
|
984
|
+
`,Ke=a.dt.button`
|
|
985
985
|
${({theme:e})=>`
|
|
986
986
|
align-items: center;
|
|
987
987
|
background-color: inherit;
|
|
@@ -1001,7 +1001,7 @@
|
|
|
1001
1001
|
font-weight: ${e.typography.weight.bold};
|
|
1002
1002
|
}
|
|
1003
1003
|
`}
|
|
1004
|
-
`,me=({disabled:e=!1,icon:n,props:i})=>{const o=p.useRef(null),{buttonProps:r}=a.$701a24aa0da5b062$export$ea18c227d4417cc3(i,o);return t.jsx(
|
|
1004
|
+
`,me=({disabled:e=!1,icon:n,props:i})=>{const o=p.useRef(null),{buttonProps:r}=a.$701a24aa0da5b062$export$ea18c227d4417cc3(i,o);return t.jsx(Zn,{...r,$disabled:e,$focus:!!r["aria-expanded"],$header:n==="calendar"||n==="calendar-clock",disabled:e,ref:o,type:"button",children:t.jsx(C,{icon:n,iconColor:k.palette.gray[e?400:700],iconSize:"xs",iconType:"fa-light"})})},ve=({state:e,prevButtonProps:n,nextButtonProps:i,title:o})=>{const r=e.focusedDate,s=p.useCallback(()=>{e.setFocusedDate(r.add({years:1}))},[r,e]),l=p.useCallback(()=>{e.setFocusedDate(r.subtract({years:1}))},[r,e]);return t.jsxs("div",{className:"header flex items-start",children:[t.jsx(me,{icon:"chevron-left",props:n}),t.jsxs(Vn,{children:[o,t.jsxs(Gn,{children:[t.jsx(Ue,{"aria-label":"top",onClick:s,children:t.jsx(C,{icon:"caret-up",iconClass:"fa-sharp",iconSize:"xxss"})}),t.jsx(Ue,{"aria-label":"bottom",onClick:l,children:t.jsx(C,{icon:"caret-down",iconClass:"fa-sharp",iconSize:"xxss"})})]})]}),t.jsx(me,{icon:"chevron-right",props:i})]})},lt=({onClose:e,props:n})=>{const{locale:i}=a.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),o=a.$131cf43a05231e1e$export$6d095e787d2b5e1f({...n,createCalendar:a.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:r,nextButtonProps:s,title:l}=a.$9942cad8a072a530$export$3ee915f8151bd4f1(n,o);return t.jsxs("div",{className:"calendar",children:[t.jsx(ve,{nextButtonProps:s,prevButtonProps:r,state:o,title:l}),t.jsx(Ce,{state:o}),t.jsx(Me,{children:t.jsx(R,{onClick:e,variant:"ghost",children:"Cancel"})})]})},ct=({segment:e,state:n})=>{const i=a.nt(),o=p.useRef(null),s={...e,placeholder:{day:"dd",dayPeriod:"(AM/PM)",era:"",hour:"hh",literal:"",minute:"mm",month:"mm",second:"",timeZoneName:"",year:"yyyy"}[e.type]},{segmentProps:l}=a.$32489daedd52963e$export$1315d136e6f7581(s,n,o),c=i.palette.gray[s.isEditable?800:500];return t.jsx("div",{...s.type!=="literal"&&{...l,className:"segment-cell"},ref:o,style:s.type==="literal"?void 0:{color:s.isPlaceholder?i.palette.gray[400]:c},children:s.isPlaceholder?s.placeholder:s.text})},dt=({disabled:e,error:n=!1,props:i})=>{const o=a.nt(),r=p.useRef(null),s=a.$3c0fc76039f1c516$export$60e84778edff6d26({...i,createCalendar:a.$64244302c3013299$export$dd0bbc9b26defe37,locale:"en-US"}),{fieldProps:l}=a.$16f0b7bb276bc17e$export$5591b0b878c1a989(i,s,r),c=p.useCallback(d=>{const g=document.getElementsByClassName("segment-cell"),u=d.currentTarget;Object.values(g).some(x=>x.contains(u))||(d.preventDefault(),d.stopPropagation())},[]);return t.jsxs(Jn,{...l,onClick:c,children:[t.jsx("div",{className:"flex flex-row",style:{color:o.palette.gray[a.lodashExports.isNil(s.value)?400:800]},tabIndex:-1,children:s.segments.map((d,g)=>{const u=`key_${g}`;return t.jsx(ct,{segment:{...d,isEditable:!e},state:s},u)})}),n?t.jsx(C,{icon:"exclamation-circle",iconColor:o.palette.error[500],iconSize:"xs"}):void 0]})},pt=e=>{const n=p.useRef(null),i=a.$eff5d8ee529ac4bb$export$fd53cef0cc796101({...e,locale:"en-US",shouldForceLeadingZeros:!0}),{timeValue:o}=i,r=!a.lodashExports.isNil(o)&&o.hour<12?"AM":"PM",[s,l]=p.useState(a.lodashExports.isNil(o)?"AM":r),{fieldProps:c}=a.$16f0b7bb276bc17e$export$4c842f6a241dc825(e,i,n),d=p.useCallback(g=>{const u=g.currentTarget.name;u!==s&&(a.lodashExports.isNil(o)||(u==="AM"?i.setSegment("dayPeriod",0):u==="PM"&&i.setSegment("dayPeriod",12))),l(u)},[s,i,o]);return t.jsxs(Qn,{children:[t.jsx(Ye,{...c,ref:n,children:i.segments.slice(0,-2).map((g,u)=>{const x=`key_${u}`;return t.jsx(ct,{segment:g,state:i},x)})}),t.jsxs(Ye,{children:[t.jsx(Ke,{id:s==="AM"?"active":"",name:"AM",onClick:d,type:"button",children:"AM"}),t.jsx(Ke,{id:s==="PM"?"active":"",name:"PM",onClick:d,type:"button",children:"PM"})]})]})},we=e=>e&&e!=="-"?a.dayjs(e).format("YYYY-MM-DD"):"-",ei=e=>e&&e!=="-"?a.dayjs(e).format("YYYY-MM-DD hh:mm A"):"-",ti=e=>e&&e!=="-"?a.dayjs(e).format("YYYY/MM/DD hh:mm A"):"-",re=({error:e,buttonProps:n,datePickerRef:i,disabled:o=!1,granularity:r="day",fieldProps:s,groupProps:l,name:c,onChange:d,setValue:g})=>{const u=p.useCallback(x=>{s.onChange&&s.onChange(x),r==="day"?g(c,we(String(x))):g(c,ei(String(x)))},[s,r,c,g]);return t.jsxs(Y,{...l,className:`${o?"disabled":""} ${e?"error":""}`,ref:i,children:[t.jsx(dt,{disabled:o,error:e!=null,props:{...s,autoFocus:!1,granularity:r,onChange:u,shouldForceLeadingZeros:!0}}),t.jsx(me,{disabled:o,icon:r==="minute"?"calendar-clock":"calendar",props:n}),t.jsx("input",{"aria-label":c,className:"date-input",disabled:o,name:c,onChange:d,type:"text"})]})},Se=({children:e,...n})=>{const i=p.useRef(null),{dialogProps:o}=a.$40df3f8667284809$export$d55e7ee900f34e93(n,i);return t.jsx(Xn,{...o,ref:i,children:e})},gt=({disabled:e=!1,helpLink:n,helpLinkText:i,helpText:o,required:r,label:s,name:l,tooltip:c,...d})=>{const{control:g,setValue:u}=a.useFormContext(),{field:{onBlur:x,onChange:f,value:h},fieldState:{error:$}}=a.useController({name:l,control:g,disabled:e,rules:{required:r}}),m=p.useRef(null),y=a.$ab5bf3f618090389$export$87194bb378cc3ac2({...d,onBlur:x,onChange:f,value:a._.isNil(h)||a._.isEmpty(h)||h==="-"?null:a.$fae977aafc393c5c$export$6b862160d295c8e(h.replace(/\//gu,"-"))}),{close:w}=y,{groupProps:v,fieldProps:S,buttonProps:z,dialogProps:E,calendarProps:T}=a.$6057a3d2a53a12fd$export$42df105a73306d51({...d,"aria-label":s??l,name:l},y,m),N=p.useCallback(P=>{T.onChange&&T.onChange(P),u(l,we(String(P)))},[T,l,u]);return t.jsxs(O,{error:$?$.message:void 0,helpLink:n,helpLinkText:i,helpText:o,htmlFor:l,label:s,required:r,tooltip:c,children:[t.jsx(re,{buttonProps:z,datePickerRef:m,disabled:e,error:$==null?void 0:$.message,fieldProps:S,groupProps:v,name:l,onChange:f,required:r,setValue:u}),y.isOpen&&!e?t.jsx(xe,{offset:8,placement:"bottom start",state:y,triggerRef:m,children:t.jsx(Se,{...E,children:t.jsx(lt,{onClose:w,props:{...T,onChange:N}})})}):null]})},ut=({onClose:e,props:n})=>{const{locale:i}=a.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),o=p.useRef(null),r=a.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90({...n,createCalendar:a.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:s,nextButtonProps:l,title:c}=a.$46a4342aab3d8076$export$87e0539f600c24e5(n,r,o);return t.jsxs("div",{className:"calendar-range",ref:o,children:[t.jsx(ve,{nextButtonProps:l,prevButtonProps:s,state:r,title:c}),t.jsx(Ce,{state:r}),t.jsx(Me,{children:t.jsx(R,{onClick:e,variant:"ghost",children:"Cancel"})})]})},ni=a.dt.div`
|
|
1005
1005
|
${({theme:e,$disabled:n,$show:i})=>`
|
|
1006
1006
|
border-color: ${i?e.palette.error[500]:e.palette.gray[300]};
|
|
1007
1007
|
display: flex;
|
|
@@ -1012,7 +1012,7 @@
|
|
|
1012
1012
|
background: ${n?e.palette.gray[200]:e.palette.white};
|
|
1013
1013
|
}
|
|
1014
1014
|
`}
|
|
1015
|
-
`,
|
|
1015
|
+
`,ii=({disabled:e=!1,label:n,name:i,required:o,tooltip:r,...s})=>{const{control:l,setValue:c}=a.useFormContext(),d=`${i}Max`,g=`${i}Min`,{field:{onChange:u},fieldState:{error:x}}=a.useController({name:d,control:l,disabled:e,rules:{required:o}}),{field:{onChange:f},fieldState:{error:h}}=a.useController({name:g,control:l,disabled:e,rules:{required:o}}),$=(x==null?void 0:x.message)??(h==null?void 0:h.message),m=p.useRef(null),y=a.$93c38a5e28be6249$export$e50a61c1de9f574(s),{close:w}=y,{groupProps:v,startFieldProps:S,endFieldProps:z,buttonProps:E,dialogProps:T,calendarProps:N}=a.$887cac91b7cc8801$export$12fd5f0e9f4bb192({...s,"aria-label":n??i},y,m),P=p.useCallback(F=>{F&&(N.onChange&&N.onChange(F),c(g,we(String(F.start))),c(d,we(String(F.end))))},[N,d,g,c]);return t.jsxs(O,{error:$,htmlFor:i,label:n,required:o,tooltip:r,children:[t.jsxs(ni,{$disabled:e,$show:$!==void 0,ref:m,children:[t.jsx(re,{buttonProps:E,datePickerRef:m,disabled:e,error:$,fieldProps:{...S,"aria-label":`${S["aria-label"]} ${i}`,validate:F=>z.value&&F>z.value?"Start date must be less than or equal to end date":null},groupProps:v,name:g,onChange:f,setValue:c}),t.jsx(re,{buttonProps:E,datePickerRef:m,disabled:e,error:$,fieldProps:{...z,"aria-label":`${z["aria-label"]} ${i}`,validate:F=>S.value&&F<S.value?"End date must be greater than or equal to start date":null},groupProps:v,name:d,onChange:u,setValue:c})]}),y.isOpen&&!e?t.jsx(xe,{offset:8,placement:"bottom start",state:y,triggerRef:m,children:t.jsx(Se,{...T,children:t.jsx(ut,{onClose:w,props:{...N,onChange:P}})})}):null]})},ri=a.dt.div`
|
|
1016
1016
|
${({theme:e})=>`
|
|
1017
1017
|
align-items: center;
|
|
1018
1018
|
border-top: 1px solid ${e.palette.gray[200]};
|
|
@@ -1021,32 +1021,32 @@
|
|
|
1021
1021
|
justify-content: center;
|
|
1022
1022
|
padding: ${e.spacing[.5]} ${e.spacing[1.25]};
|
|
1023
1023
|
`}
|
|
1024
|
-
`,
|
|
1024
|
+
`,ai=a.dt.div`
|
|
1025
1025
|
align-items: center;
|
|
1026
1026
|
display: flex;
|
|
1027
1027
|
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1028
1028
|
justify-content: flex-end;
|
|
1029
1029
|
flex: 1 0 0;
|
|
1030
|
-
`,
|
|
1031
|
-
${e?"disabled":""} ${
|
|
1032
|
-
`,children:[n?t.jsx(
|
|
1030
|
+
`,xt=({handleTimeChange:e,onClose:n,props:i,timeState:o})=>{const r=a.nt(),{locale:s}=a.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),l=a.$131cf43a05231e1e$export$6d095e787d2b5e1f({...i,createCalendar:a.$64244302c3013299$export$dd0bbc9b26defe37,locale:s}),{prevButtonProps:c,nextButtonProps:d,title:g}=a.$9942cad8a072a530$export$3ee915f8151bd4f1(i,l);return t.jsxs("div",{className:"calendar",children:[t.jsx(ve,{nextButtonProps:d,prevButtonProps:c,state:l,title:g}),t.jsx(Ce,{state:l}),t.jsxs(ri,{children:[t.jsx(j,{color:r.palette.gray[800],fontWeight:"bold",size:"sm",children:"Time"}),t.jsx(ai,{children:t.jsx(pt,{hourCycle:12,label:"time-field",onChange:e,value:o.timeValue})})]}),t.jsx(Me,{children:t.jsx(R,{onClick:n,variant:"ghost",children:"Cancel"})})]})},oi=e=>{const{disabled:n=!1,required:i,label:o,name:r,tooltip:s}=e,l=p.useRef(null),{control:c,setValue:d}=a.useFormContext(),{field:{onBlur:g,onChange:u,value:x},fieldState:{error:f}}=a.useController({name:r,control:c,disabled:n,rules:{required:i}}),h=a.$ab5bf3f618090389$export$87194bb378cc3ac2({...e,granularity:"minute",hourCycle:12,shouldCloseOnSelect:!1,onBlur:g,onChange:u,value:x}),{close:$}=h,{groupProps:m,fieldProps:y,buttonProps:w,dialogProps:v,calendarProps:S}=a.$6057a3d2a53a12fd$export$42df105a73306d51(e,h,l),z=p.useCallback(T=>{S.onChange&&S.onChange(T),d(r,ti(String(T).replace(/-/gu,"/")))},[S,r,d]),E=p.useCallback(T=>{T&&h.setTimeValue(T)},[h]);return t.jsxs(O,{error:f==null?void 0:f.message,htmlFor:r,label:o,required:i,tooltip:s,children:[t.jsx(re,{buttonProps:w,datePickerRef:l,disabled:n,error:f==null?void 0:f.message,fieldProps:y,granularity:"minute",groupProps:m,name:r,onChange:u,setValue:d}),h.isOpen&&!n?t.jsx(xe,{offset:8,placement:"bottom start",state:h,triggerRef:l,children:t.jsx(Se,{...v,children:t.jsx(xt,{handleTimeChange:E,onClose:$,props:{...S,onChange:z},timeState:h})})}):null]})},si=({children:e,currentValue:n,externalLink:i,isEditing:o,label:r,name:s,tooltip:l})=>{if(o)return t.jsx("div",{children:e});const c=a.lodashExports.isNil(n)?"":n,d=String(i??c);return t.jsxs(b,{children:[t.jsx(Le,{htmlFor:s,label:r,tooltip:l,weight:"bold"}),d.startsWith("https://")?t.jsx(K,{href:d,children:c}):t.jsx(j,{size:"md",children:c})]})},ft=({disabled:e=!1,hasIcon:n=!1,helpLink:i,helpLinkText:o,helpText:r,label:s,name:l,maskValue:c=!1,onBlur:d,onChange:g,onPaste:u,placeholder:x,required:f,tooltip:h,type:$="text",weight:m})=>{const y=a.nt(),{register:w,formState:{errors:v,isValid:S},getFieldState:z}=a.useFormContext(),{isTouched:E}=z(l),T=v[l]?String(v[l].message):void 0,N=S&&E&&!e,P=p.useCallback(F=>{F.key==="Enter"&&F.preventDefault()},[]);return t.jsx(O,{error:T,helpLink:i,helpLinkText:o,helpText:r,htmlFor:l,label:s,required:f,tooltip:h,weight:m,children:t.jsxs(Y,{className:`
|
|
1031
|
+
${e?"disabled":""} ${T?"error":""} ${N?"success":""}
|
|
1032
|
+
`,children:[n?t.jsx(C,{icon:"user",iconSize:"sm",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":T?"true":"false","aria-label":l,"aria-required":f,autoComplete:"off",className:c?"sr-block":"","data-testid":`${l}-input`,id:l,onKeyDown:P,onPaste:u,placeholder:x,type:$,...w(l,{disabled:e,required:f,onBlur:d,onChange:g})}),T?t.jsx(C,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:y.palette.error[500],iconSize:"xs"}):void 0,N?t.jsx(C,{icon:"check-circle",iconClass:"success-icon",iconColor:y.palette.success[500],iconSize:"xs"}):void 0]})})},li=a.dt(et)`
|
|
1033
1033
|
white-space: nowrap;
|
|
1034
1034
|
margin-right: ${({theme:e})=>e.spacing[.25]};
|
|
1035
1035
|
text-overflow: ellipsis;
|
|
1036
1036
|
overflow: hidden;
|
|
1037
1037
|
max-width: 80%;
|
|
1038
|
-
`,
|
|
1038
|
+
`,ci=a.dt.input`
|
|
1039
1039
|
opacity: 0;
|
|
1040
1040
|
position: absolute;
|
|
1041
1041
|
visibility: hidden;
|
|
1042
1042
|
width: 0;
|
|
1043
|
-
`,Te=(e,n,i)=>{const o=new Event(e);return Object.defineProperty(o,"target",{value:{name:n,value:i}}),o},
|
|
1043
|
+
`,Te=(e,n,i)=>{const o=new Event(e);return Object.defineProperty(o,"target",{value:{name:n,value:i}}),o},di=e=>{const n=e;return n?Array.from(n).map(i=>i.name).join(", "):""},pi=({accept:e,disabled:n=!1,label:i,helpLink:o,helpText:r,id:s,multiple:l,name:c,onChange:d,required:g,tooltip:u,weight:x})=>{const f=a.nt(),h=p.useRef(null),{control:$,setValue:m}=a.useFormContext(),{field:{value:y,onChange:w},fieldState:{error:v}}=a.useController({name:c,control:$,disabled:n,rules:{required:g}}),S=di(y),z=p.useCallback(()=>{const N=Te("change",c,void 0);w(N),m(c,"")},[c,w,m]),E=p.useCallback(N=>{const{files:P}=N.currentTarget,F=Te("change",c,P&&P.length>0?P:void 0);d==null||d(F),w(F)},[c,w,d]),T=p.useCallback(N=>{n?N.preventDefault():h.current&&h.current.click()},[n]);return t.jsxs(O,{error:v?v.message:void 0,helpLink:o,helpText:r,htmlFor:c,label:i,required:g,tooltip:u,weight:x,children:[t.jsxs(Y,{className:`${n?"disabled":""} ${v?"error":""}`,children:[t.jsx(li,{$size:"xs",children:S}),t.jsxs(b,{alignItems:"center",display:"flex",gap:.5,children:[a.lodashExports.isEmpty(S)?void 0:t.jsx(A,{color:f.palette.gray[400],height:"20px",icon:"xmark",iconSize:"lg",iconType:"fa-light",onClick:z,variant:"ghost",width:"20px"}),v&&t.jsx(C,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:f.palette.error[500],iconSize:"xs"})]}),t.jsxs(R,{border:n?`1px solid ${f.palette.gray[300]} !important`:"",borderRadius:"0px 8px 8px 0px !important",disabled:n,height:"40px",onClick:T,variant:"primary",width:"96px",children:[t.jsx(C,{icon:"search",iconSize:"sm",mr:.5}),"Add file"]})]}),t.jsx(ci,{accept:e,"aria-label":c,"data-testid":c,disabled:n,id:s,multiple:l,name:c,onChange:E,onClick:z,ref:h,required:void 0,type:"file",value:void 0})]})},gi=a.dt.input`
|
|
1044
1044
|
border: none;
|
|
1045
1045
|
background: transparent;
|
|
1046
1046
|
min-width: 15rem;
|
|
1047
1047
|
padding: 0;
|
|
1048
1048
|
flex: 1;
|
|
1049
|
-
`,
|
|
1049
|
+
`,ui=({disabled:e=!1,helpLink:n,helpLinkText:i,helpText:o,label:r,name:s="input-tag",onRemove:l,placeholder:c,required:d,tooltip:g,weight:u})=>{const x=a.nt(),[f,h]=p.useState(""),{control:$}=a.useFormContext(),{field:{value:m,onBlur:y,onChange:w,ref:v},fieldState:{error:S}}=a.useController({name:s,control:$,disabled:e,rules:{required:d}}),z=p.useMemo(()=>m&&typeof m=="string"?m.split(",").filter(Boolean):[],[m]),E=p.useCallback(D=>{const Z=[...new Set(D.filter(Boolean))].join(","),B=Te("change",s,Z);w(B)},[s,w]),T=p.useCallback(D=>{h(D.target.value)},[]),N=p.useCallback(D=>{const M=f.trim();M.length&&!z.includes(M)&&(D.preventDefault(),E([...z,M]),h("")),y()},[f,y,E,z]),P=p.useCallback(D=>{const M=f.trim();D.key==="Enter"&&M.length===0&&D.preventDefault(),["Enter",","].includes(D.key)&&M.length>0&&!z.includes(M)?(D.preventDefault(),E([...z,M]),h("")):D.key==="Backspace"&&!M.length&&z.length&&(D.preventDefault(),l==null||l(z[z.length-1]),E(z.slice(0,-1)))},[f,l,E,z]),F=p.useCallback(D=>()=>{l==null||l(D),E(z.filter(M=>M!==D))},[l,E,z]);return t.jsx(O,{error:S?S.message:void 0,helpLink:n,helpLinkText:i,helpText:o,htmlFor:s,label:r,required:d,tooltip:g,weight:u,children:t.jsxs(Y,{$overflowX:"auto",className:`${e?"disabled":""} ${S?"error":""}`,children:[z.map(D=>t.jsx(q,{disabled:e,onClose:F(D),tagLabel:D},D)),t.jsx(gi,{"aria-hidden":!1,"aria-invalid":S?"true":"false","aria-label":s,"aria-required":d,autoComplete:"off",onBlur:N,onChange:T,onKeyDown:P,placeholder:z.length===0?c:void 0,ref:v,type:"text",value:f}),S?t.jsx(C,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:x.palette.error[500],iconSize:"xs"}):void 0]})})},Ne=p.forwardRef(function({disabled:n,icon:i,margin:o,onClick:r,...s},l){return t.jsx(qn,{$margin:o,"aria-label":i,className:"action-btn",disabled:n,onClick:r,ref:l,type:"button",...s,children:t.jsx(C,{icon:i,iconClass:"action",iconSize:"xs",iconType:"fa-light"})})}),je=({error:e,decimalPlaces:n=0,disabled:i=!1,id:o,maxLength:r,max:s=1/0,min:l=0,name:c,onChange:d,placeholder:g,required:u})=>{const x=a.nt(),{control:f,setValue:h}=a.useFormContext(),{field:{value:$,onChange:m,onBlur:y,ref:w}}=a.useController({name:c,control:f,disabled:i,rules:{required:u,maxLength:r,max:s,min:l}}),v=p.useMemo(()=>n<0?0:n,[n]),S=p.useCallback(()=>$===void 0?0:a._.toNumber($),[$]),z=p.useCallback(()=>{const N=(S()-10**-v).toFixed(v);h(c,Math.max(Number(l),Number(N)))},[v,S,l,c,h]),E=p.useCallback(()=>{const N=(S()+10**-v).toFixed(v);h(c,Math.min(Number(s),Number(N)>Number(l)?Number(N):Number(l)))},[v,S,s,l,c,h]),T=p.useCallback(N=>{const{value:P}=N.target;/\d+/u.test(P)&&!a._.isEmpty(P)?d?d(N):m(N):h(c,void 0)},[c,m,d,h]);return t.jsxs(Y,{className:`${i?"disabled":""} ${e?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":e?"true":"false","aria-label":c,"aria-required":u,autoComplete:"off",disabled:i,id:o??c,max:s,min:l,name:c,onBlur:y,onChange:T,placeholder:g,ref:w,required:void 0,step:10**-v,type:"number",value:/^-?\d+/u.test(String($))?$:""}),e&&t.jsx(C,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:x.palette.error[500],iconSize:"xs"}),t.jsx(Ne,{borderLeft:"inherit",borderRight:"inherit",disabled:i,icon:"minus",margin:"0 -0.625rem 0 0",onClick:z,px:.75,py:.75}),t.jsx(Ne,{borderRadius:`0 ${x.spacing[.5]} ${x.spacing[.5]} 0`,disabled:i,icon:"plus",onClick:E,px:.75,py:.75})]})},ht=({decimalPlaces:e,disabled:n=!1,helpLink:i,helpText:o,id:r,label:s,maxLength:l,max:c,min:d,name:g,onChange:u,placeholder:x,required:f,tooltip:h,weight:$})=>{const{formState:{errors:m}}=a.useFormContext(),y=m[g]?String(m[g].message):void 0;return t.jsx(O,{error:y,helpLink:i,helpText:o,htmlFor:g,label:s,maxLength:l,required:f,tooltip:h,weight:$,children:t.jsx(je,{decimalPlaces:e,disabled:n,error:y,id:r,max:c,maxLength:l,min:d,name:g,onChange:u,placeholder:x,required:f})})},xi=({disabled:e=!1,name:n,label:i,propsMax:o,propsMin:r,required:s,tooltip:l})=>{const{formState:{errors:c}}=a.useFormContext(),d=`${n}Max`,g=`${n}Min`,u=c[d]?String(c[d].message):void 0,x=c[g]?String(c[g].message):void 0,f=u??x;return t.jsx(O,{error:f,htmlFor:n,label:i,required:s,tooltip:l,children:t.jsxs(b,{display:"flex",gap:.25,width:"100%",children:[t.jsx(je,{...r,disabled:e,error:f,name:d}),t.jsx(je,{...o,disabled:e,error:f,name:g})]})})},fi=a.dt.div`
|
|
1050
1050
|
${({theme:e})=>`
|
|
1051
1051
|
align-items: flex-start;
|
|
1052
1052
|
align-self: stretch;
|
|
@@ -1086,7 +1086,7 @@
|
|
|
1086
1086
|
}
|
|
1087
1087
|
}
|
|
1088
1088
|
`}
|
|
1089
|
-
`,
|
|
1089
|
+
`,hi=a.dt.button`
|
|
1090
1090
|
${({theme:e})=>`
|
|
1091
1091
|
align-items: center;
|
|
1092
1092
|
background: inherit;
|
|
@@ -1102,7 +1102,7 @@
|
|
|
1102
1102
|
cursor: not-allowed;
|
|
1103
1103
|
}
|
|
1104
1104
|
`}
|
|
1105
|
-
`,
|
|
1105
|
+
`,bi=a.dt.ul`
|
|
1106
1106
|
${({theme:e})=>`
|
|
1107
1107
|
align-items: flex-start;
|
|
1108
1108
|
box-shadow: ${e.shadows.md};
|
|
@@ -1115,7 +1115,7 @@
|
|
|
1115
1115
|
scrollbar-width: thin;
|
|
1116
1116
|
width: max-content;
|
|
1117
1117
|
`}
|
|
1118
|
-
|
|
1118
|
+
`,$i=a.dt.li`
|
|
1119
1119
|
${({theme:e})=>`
|
|
1120
1120
|
align-items: center;
|
|
1121
1121
|
background: ${e.palette.white};
|
|
@@ -1132,16 +1132,88 @@
|
|
|
1132
1132
|
background: ${e.palette.gray[100]};
|
|
1133
1133
|
}
|
|
1134
1134
|
`}
|
|
1135
|
-
|
|
1135
|
+
`,yi=a.dt.p`
|
|
1136
1136
|
color: ${({theme:e})=>e.palette.gray[800]};
|
|
1137
1137
|
font-size: inherit;
|
|
1138
1138
|
min-width: 55%;
|
|
1139
1139
|
overflow: hidden;
|
|
1140
1140
|
text-overflow: ellipsis;
|
|
1141
1141
|
white-space: nowrap;
|
|
1142
|
-
`,X=(e,n,i=!1)=>{p.useEffect(()=>{var r;const o=s=>{e&&!e.contains(s.target)&&n()};return i?(document.addEventListener("click",o,!0),()=>{document.removeEventListener("click",o,!0)}):((r=document.getElementById("root"))==null||r.addEventListener("click",o,!0),()=>{var s;(s=document.getElementById("root"))==null||s.removeEventListener("click",o,!0)})},[i,e,n])},
|
|
1142
|
+
`,X=(e,n,i=!1)=>{p.useEffect(()=>{var r;const o=s=>{e&&!e.contains(s.target)&&n()};return i?(document.addEventListener("click",o,!0),()=>{document.removeEventListener("click",o,!0)}):((r=document.getElementById("root"))==null||r.addEventListener("click",o,!0),()=>{var s;(s=document.getElementById("root"))==null||s.removeEventListener("click",o,!0)})},[i,e,n])},mi=({disabled:e,label:n,name:i,placeholder:o,required:r,tooltip:s,weight:l})=>{const c=a.nt(),d=p.useRef(null),{control:g}=a.useFormContext(),{field:{onBlur:u,onChange:x,ref:f,value:h},fieldState:{error:$}}=a.useController({name:i,control:g,disabled:e,rules:{required:r}}),[m,y]=p.useState(!1),[w,v]=p.useState(""),{refs:S,floatingStyles:z}=a.useFloating({placement:"bottom-start",whileElementsMounted:a.autoUpdate}),{inputValue:E,handlePhoneValueChange:T,country:N,setCountry:P}=a.ee({countries:a.R,defaultCountry:"us",forceDialCode:!0,onChange:x,value:h?String(h):void 0}),F=p.useCallback(()=>{y(B=>!B),m||v("")},[m]),D=p.useCallback(B=>()=>{P(B),y(!1),v("")},[P,y]),M=p.useCallback(B=>{B.key.length===1?v(V=>V+B.key):B.key==="Backspace"&&v(V=>V.slice(0,-1))},[]),Z=a.R.filter(B=>{const{name:V}=a.M$1(B);return V.toLowerCase().includes(w.toLowerCase())});return X(S.floating.current,()=>{y(!1),v("")},!0),t.jsx(O,{error:$?$.message:void 0,htmlFor:i,label:n,required:r,tooltip:s,weight:l,children:t.jsxs(fi,{className:`${e?"disabled":""} ${$?"error":""}`,ref:d,children:[t.jsxs(hi,{"aria-label":"country-selector","data-testid":"country-selector",disabled:e,id:"country-selector",onClick:F,onKeyDown:M,ref:S.setReference,children:[t.jsx(a.q,{iso2:N.iso2,size:"16px"}),t.jsx(C,{icon:"angle-down",iconColor:c.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(Y,{className:`${e?"disabled":""} ${$?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":$?"true":"false","aria-label":i,"aria-required":r,autoComplete:"off","data-testid":`${i}-input`,disabled:e,id:i,name:i,onBlur:u,onChange:T,placeholder:o,ref:f,type:"tel",value:E}),$?t.jsx(C,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:c.palette.error[500],iconSize:"xs"}):void 0]}),m&&ae.createPortal(t.jsx(bi,{ref:S.setFloating,style:z,children:Z.map(B=>{const{dialCode:V,iso2:J,name:_}=a.M$1(B);return t.jsxs($i,{onClick:D(J),value:J,children:[t.jsx(a.q,{iso2:J,size:"16px"}),t.jsx(yi,{children:_}),t.jsx(j,{color:c.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+V})]},J)})}),document.getElementById("root")??document.body)]})})},wi=({disabled:e=!1,helpLink:n,helpText:i,label:o,name:r="input-text",id:s,maskValue:l=!1,maxLength:c,placeholder:d,required:g,rows:u,tooltip:x,weight:f})=>{const h=a.nt(),{control:$}=a.useFormContext(),{field:m,fieldState:{error:y,isTouched:w},formState:{isValid:v}}=a.useController({name:r,control:$,disabled:e,rules:{maxLength:c,required:g}}),S=v&&w&&!e;return t.jsx(O,{error:y?y.message:void 0,helpLink:n,helpText:i,htmlFor:r,label:o,maxLength:c,required:g,tooltip:x,value:m.value?String(m.value):void 0,weight:f,children:t.jsxs(Y,{className:`
|
|
1143
1143
|
${e?"disabled":""} ${y?"error":""} ${S?"success":""}
|
|
1144
|
-
`,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":y?"true":"false","aria-label":r,"aria-required":g,className:l?"sr-block":"","data-testid":`${r}-text-area`,disabled:e,id:s??r,maxLength:c,placeholder:d,rows:u,...m}),y?t.jsx(
|
|
1144
|
+
`,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":y?"true":"false","aria-label":r,"aria-required":g,className:l?"sr-block":"","data-testid":`${r}-text-area`,disabled:e,id:s??r,maxLength:c,placeholder:d,rows:u,...m}),y?t.jsx(C,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:h.palette.error[500],iconSize:"xs"}):void 0,S?t.jsx(C,{icon:"check-circle",iconClass:"success-icon",iconColor:h.palette.success[500],iconSize:"xs"}):void 0]})})},ji=({description:e,disabled:n,id:i,align:o,inputType:r="text",inputNumberProps:s,minHeight:l,minWidth:c,name:d,placeholder:g,tooltip:u,title:x})=>{const f=p.useMemo(()=>{if(r==="text")return t.jsx(ft,{disabled:n,name:d,placeholder:g});if(r==="date")return t.jsx(gt,{disabled:n,name:d});const{decimalPlaces:h,max:$,min:m}=s??{};return t.jsx(ht,{decimalPlaces:h,disabled:n,max:$,min:m,name:d,placeholder:g})},[n,s,r,d,g]);return t.jsxs(Bn,{$align:o,$minHeight:l,$minWidth:c,children:[t.jsx(ke,{description:e,id:i,title:x,tooltip:u}),f]})},ki=a.dt.label`
|
|
1145
|
+
${({theme:e})=>`
|
|
1146
|
+
align-items: start;
|
|
1147
|
+
color: ${e.palette.gray[600]};
|
|
1148
|
+
display: flex;
|
|
1149
|
+
cursor: pointer;
|
|
1150
|
+
font-family: ${e.typography.type.primary};
|
|
1151
|
+
font-size: ${e.typography.text.sm};
|
|
1152
|
+
font-weight: ${e.typography.weight.regular};
|
|
1153
|
+
line-height: ${e.spacing[1]};
|
|
1154
|
+
letter-spacing: 0;
|
|
1155
|
+
position: relative;
|
|
1156
|
+
text-align: left;
|
|
1157
|
+
|
|
1158
|
+
&[aria-disabled="true"] {
|
|
1159
|
+
color: ${e.palette.gray[300]};
|
|
1160
|
+
cursor: not-allowed;
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
input {
|
|
1164
|
+
position: absolute;
|
|
1165
|
+
opacity: 0;
|
|
1166
|
+
cursor: pointer;
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
svg {
|
|
1170
|
+
background-color: ${e.palette.white};
|
|
1171
|
+
border-radius: ${e.spacing[.25]};
|
|
1172
|
+
border: 1px solid ${e.palette.gray[600]};
|
|
1173
|
+
top: 0;
|
|
1174
|
+
left: 0;
|
|
1175
|
+
height: ${e.spacing[.5]};
|
|
1176
|
+
margin-right: ${e.spacing[.5]};
|
|
1177
|
+
width: ${e.spacing[.5]};
|
|
1178
|
+
padding: ${e.spacing[.25]};
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
svg > path {
|
|
1182
|
+
fill: ${e.palette.white};
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
input:checked ~ span > svg {
|
|
1186
|
+
background-color: ${e.palette.primary[500]};
|
|
1187
|
+
border: 1px solid ${e.palette.primary[500]};
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
input:disabled ~ span > svg {
|
|
1191
|
+
border: 1px solid ${e.palette.gray[300]};
|
|
1192
|
+
cursor: not-allowed;
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
input:not(:disabled):hover ~ span > svg {
|
|
1196
|
+
box-shadow: 0 0 0 4px ${e.palette.gray[100]};
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
input:checked:disabled ~ span > svg {
|
|
1200
|
+
background-color: ${e.palette.gray[300]};
|
|
1201
|
+
border: 1px solid ${e.palette.gray[300]};
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
input:not(:disabled):hover:checked ~ span > svg {
|
|
1205
|
+
box-shadow: 0 0 0 4px ${e.palette.primary[50]};
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
input:checked ~ span > svg > path {
|
|
1209
|
+
fill: ${e.palette.white};
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
input:checked:disabled ~ span > svg > path {
|
|
1213
|
+
fill: ${e.palette.white};
|
|
1214
|
+
}
|
|
1215
|
+
`}
|
|
1216
|
+
`,Be=p.forwardRef(function({defaultChecked:n=!1,disabled:i=!1,label:o,name:r,onChange:s,onClick:l,onFocus:c,onKeyDown:d,value:g,...u},x){return t.jsxs(ki,{"aria-disabled":i,children:[t.jsx("input",{"aria-checked":n,"aria-disabled":i,"aria-label":r,defaultChecked:n,disabled:i,id:r,name:r,onChange:s,onClick:l,onFocus:c,onKeyDown:d,ref:x,type:"checkbox",value:g,...u}),t.jsx(C,{disabled:i,icon:"check",iconSize:"sm"}),o??g]})}),Ci=({options:e,title:n,checkboxesName:i})=>{const o=a.nt(),[r,s]=p.useState(!1),l=p.useCallback(()=>{s(c=>!c)},[]);return t.jsxs(b,{bgColor:o.palette.gray[50],border:"1px solid"+o.palette.gray[300],borderRadius:"4px",display:"inline-flex",flexDirection:"column",gap:1.25,px:.75,py:.625,width:"100%",children:[t.jsxs(b,{cursor:"pointer",display:"flex",onClick:l,children:[t.jsx(L,{size:"xs",children:n}),t.jsx(C,{icon:r?"chevron-up":"chevron-down",iconColor:o.palette.gray[400],iconSize:"xs"})]}),r?t.jsx(b,{display:"flex",gap:.75,children:e.map(c=>t.jsx(b,{border:"1px solid",borderColor:o.palette.gray[300],borderRadius:"4px",px:.5,py:.5,children:t.jsx(Be,{defaultChecked:c.checked,disabled:c.disabled,label:c.label,name:i,value:c.value})},c.value))}):void 0]})},bt=(e,n)=>{const[o,r]=p.useState(0),[s,l]=p.useState(0);return p.useEffect(()=>{s===100&&(()=>{r(d=>d===n-1?0:d+1)})()},[s,n]),p.useEffect(()=>{const c=setInterval(()=>{l(d=>d===100?0:d+1)},e);return()=>{clearInterval(c)}},[e]),{cycle:o,progress:s,setCycle:r,setProgress:l}},$t=({publicId:e,format:n="webp"})=>{const i=p.useMemo(()=>new a.Cloudinary({cloud:{cloudName:"fluid-attacks"}}),[]);return p.useMemo(()=>i.image(e).format(n),[i,e,n])},yt=(e,n)=>p.useMemo(()=>a._.debounce(e,n),[e,n]),mt=e=>{const[n,i]=p.useState(!1),o=p.useCallback(()=>{i(!0)},[]),r=p.useCallback(()=>{i(!1)},[]),s=p.useCallback(()=>{i(l=>!l)},[]);return{close:r,isOpen:n,name:e,open:o,setIsOpen:i,toggle:s}},vi=e=>{const[n,i]=p.useState(),o=yt(r=>{i(r)},(e==null?void 0:e.debounceWait)??300);return[n,o]},Si=({alt:e="img",height:n="",width:i="",plugins:o=[a.lazyload(),a.placeholder()],publicId:r})=>{const s=$t({publicId:r});return t.jsx(a.AdvancedImage,{alt:e,cldImg:s,height:n,plugins:o,width:i})},H=p.memo(Si),zi=a.dt.label`
|
|
1145
1217
|
${({theme:e})=>`
|
|
1146
1218
|
align-items: center;
|
|
1147
1219
|
display: flex;
|
|
@@ -1220,7 +1292,7 @@
|
|
|
1220
1292
|
}
|
|
1221
1293
|
|
|
1222
1294
|
`}
|
|
1223
|
-
`,
|
|
1295
|
+
`,Ii=a.dt.span.attrs({className:"checkmark"})``,wt=p.forwardRef(function({defaultChecked:n=!1,disabled:i=!1,label:o,name:r,onChange:s,onClick:l,value:c,...d},g){return t.jsxs(zi,{"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:s,onClick:l,ref:g,type:"radio",value:c,...d}),t.jsx(Ii,{}),o??null]})}),Ti=({alt:e,imageId:n,icon:i,selectorProps:o,onClick:r,title:s,width:l="fit-content"})=>{const c=a.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(wt,{name:o.name,onClick:r,value:o.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(H,{alt:e??"card image",height:"32px",publicId:n,width:"32px"}),i===void 0?void 0:t.jsx(C,{icon:i,iconSize:"sm",iconType:"fa-light"}),t.jsx(L,{fontWeight:"bold",lineSpacing:1.75,size:"xs",children:s})]})]})},ne=a.dt.div`
|
|
1224
1296
|
${({theme:e})=>`
|
|
1225
1297
|
align-items: center;
|
|
1226
1298
|
background-color: ${e.palette.gray[200]};
|
|
@@ -1232,7 +1304,7 @@
|
|
|
1232
1304
|
transition: 0.2s;
|
|
1233
1305
|
width: 36px;
|
|
1234
1306
|
`}
|
|
1235
|
-
`,
|
|
1307
|
+
`,Ni=a.dt.div`
|
|
1236
1308
|
${({theme:e})=>`
|
|
1237
1309
|
background-color: ${e.palette.white};
|
|
1238
1310
|
border-radius: 50%;
|
|
@@ -1243,7 +1315,7 @@
|
|
|
1243
1315
|
width: ${e.spacing[1]};
|
|
1244
1316
|
z-index: 1;
|
|
1245
1317
|
`}
|
|
1246
|
-
`,
|
|
1318
|
+
`,Ri=a.dt.label`
|
|
1247
1319
|
display: inline-block;
|
|
1248
1320
|
|
|
1249
1321
|
input {
|
|
@@ -1270,22 +1342,22 @@
|
|
|
1270
1342
|
background-color: ${({theme:e})=>e.palette.gray[200]};
|
|
1271
1343
|
border: 1px solid ${({theme:e})=>e.palette.gray[200]};
|
|
1272
1344
|
}
|
|
1273
|
-
`,
|
|
1345
|
+
`,jt=p.forwardRef(function({defaultChecked:n,disabled:i=!1,justify:o,name:r,leftDescription:s,rightDescription:l,...c},d){const g=n===!0?"on":"off",u=typeof s=="object"&&s.on&&s.off?s[g]:s,x=p.useCallback(f=>{f.stopPropagation()},[]);return t.jsxs(b,{alignItems:"center",display:"flex",fontSize:"14px",gap:.75,justify:o,children:[u,t.jsxs(Ri,{onClick:x,role:"switch",children:[t.jsx("input",{...c,"aria-disabled":i,"aria-label":r,checked:n===!0,disabled:i,name:r,ref:d,type:"checkbox"}),t.jsx(ne,{"aria-label":"Toggle Switch",id:`${r}Toggle`,children:t.jsx(Ni,{})})]}),l]})}),Ei=({id:e,title:n,toggles:i,minWidth:o="auto",height:r="auto"})=>{const s=a.nt();return t.jsxs(b,{alignItems:"center",bgColor:s.palette.white,border:`1px solid ${s.palette.gray[200]}`,borderRadius:s.spacing[.25],display:"flex",flexDirection:"column",gap:.5,height:r,justify:"center",minHeight:"100px",minWidth:o,padding:[1.25,1.25,1.25,1.25],children:[t.jsx(ke,{id:e,title:n}),t.jsx(b,{display:"flex",flexDirection:"column",gap:.5,minHeight:"40px",width:"100%",children:i.map(l=>t.jsx(jt,{...l},`$card-toggle-${l.name}`))})]})},Di=a.dt.div`
|
|
1274
1346
|
position: relative;
|
|
1275
1347
|
margin: auto;
|
|
1276
1348
|
overflow: hidden;
|
|
1277
|
-
`,
|
|
1349
|
+
`,Fi=a.dt.div`
|
|
1278
1350
|
display: flex;
|
|
1279
1351
|
transition: transform 0.5s ease-in-out;
|
|
1280
1352
|
transform: translateX(
|
|
1281
1353
|
${({$currentIndex:e})=>-e*100}%
|
|
1282
1354
|
);
|
|
1283
|
-
`,
|
|
1355
|
+
`,Pi=a.dt.div`
|
|
1284
1356
|
align-items: center;
|
|
1285
1357
|
display: flex;
|
|
1286
1358
|
justify-content: center;
|
|
1287
1359
|
min-width: 100%;
|
|
1288
|
-
`,
|
|
1360
|
+
`,Wi=a.dt.button`
|
|
1289
1361
|
${({theme:e,$isActive:n})=>`
|
|
1290
1362
|
background-color: ${n?e.palette.primary[400]:e.palette.white};
|
|
1291
1363
|
border: none;
|
|
@@ -1294,85 +1366,13 @@
|
|
|
1294
1366
|
height: ${e.spacing[.75]};
|
|
1295
1367
|
width: ${e.spacing[.75]};
|
|
1296
1368
|
`}
|
|
1297
|
-
`,
|
|
1369
|
+
`,Li=a.dt.div`
|
|
1298
1370
|
align-items: center;
|
|
1299
1371
|
display: flex;
|
|
1300
1372
|
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1301
1373
|
justify-content: center;
|
|
1302
1374
|
margin-top: ${({theme:e})=>e.spacing[2]};
|
|
1303
|
-
`,
|
|
1304
|
-
${({theme:e})=>`
|
|
1305
|
-
align-items: start;
|
|
1306
|
-
color: ${e.palette.gray[600]};
|
|
1307
|
-
display: flex;
|
|
1308
|
-
cursor: pointer;
|
|
1309
|
-
font-family: ${e.typography.type.primary};
|
|
1310
|
-
font-size: ${e.typography.text.sm};
|
|
1311
|
-
font-weight: ${e.typography.weight.regular};
|
|
1312
|
-
line-height: ${e.spacing[1]};
|
|
1313
|
-
letter-spacing: 0;
|
|
1314
|
-
position: relative;
|
|
1315
|
-
text-align: left;
|
|
1316
|
-
|
|
1317
|
-
&[aria-disabled="true"] {
|
|
1318
|
-
color: ${e.palette.gray[300]};
|
|
1319
|
-
cursor: not-allowed;
|
|
1320
|
-
}
|
|
1321
|
-
|
|
1322
|
-
input {
|
|
1323
|
-
position: absolute;
|
|
1324
|
-
opacity: 0;
|
|
1325
|
-
cursor: pointer;
|
|
1326
|
-
}
|
|
1327
|
-
|
|
1328
|
-
svg {
|
|
1329
|
-
background-color: ${e.palette.white};
|
|
1330
|
-
border-radius: ${e.spacing[.25]};
|
|
1331
|
-
border: 1px solid ${e.palette.gray[600]};
|
|
1332
|
-
top: 0;
|
|
1333
|
-
left: 0;
|
|
1334
|
-
height: ${e.spacing[.5]};
|
|
1335
|
-
margin-right: ${e.spacing[.5]};
|
|
1336
|
-
width: ${e.spacing[.5]};
|
|
1337
|
-
padding: ${e.spacing[.25]};
|
|
1338
|
-
}
|
|
1339
|
-
|
|
1340
|
-
svg > path {
|
|
1341
|
-
fill: ${e.palette.white};
|
|
1342
|
-
}
|
|
1343
|
-
|
|
1344
|
-
input:checked ~ span > svg {
|
|
1345
|
-
background-color: ${e.palette.primary[500]};
|
|
1346
|
-
border: 1px solid ${e.palette.primary[500]};
|
|
1347
|
-
}
|
|
1348
|
-
|
|
1349
|
-
input:disabled ~ span > svg {
|
|
1350
|
-
border: 1px solid ${e.palette.gray[300]};
|
|
1351
|
-
cursor: not-allowed;
|
|
1352
|
-
}
|
|
1353
|
-
|
|
1354
|
-
input:not(:disabled):hover ~ span > svg {
|
|
1355
|
-
box-shadow: 0 0 0 4px ${e.palette.gray[100]};
|
|
1356
|
-
}
|
|
1357
|
-
|
|
1358
|
-
input:checked:disabled ~ span > svg {
|
|
1359
|
-
background-color: ${e.palette.gray[300]};
|
|
1360
|
-
border: 1px solid ${e.palette.gray[300]};
|
|
1361
|
-
}
|
|
1362
|
-
|
|
1363
|
-
input:not(:disabled):hover:checked ~ span > svg {
|
|
1364
|
-
box-shadow: 0 0 0 4px ${e.palette.primary[50]};
|
|
1365
|
-
}
|
|
1366
|
-
|
|
1367
|
-
input:checked ~ span > svg > path {
|
|
1368
|
-
fill: ${e.palette.white};
|
|
1369
|
-
}
|
|
1370
|
-
|
|
1371
|
-
input:checked:disabled ~ span > svg > path {
|
|
1372
|
-
fill: ${e.palette.white};
|
|
1373
|
-
}
|
|
1374
|
-
`}
|
|
1375
|
-
`,jt=p.forwardRef(function({defaultChecked:n=!1,disabled:i=!1,label:o,name:r,onChange:s,onClick:l,onFocus:c,onKeyDown:d,value:g,...u},x){return t.jsxs(Pi,{"aria-disabled":i,children:[t.jsx("input",{"aria-checked":n,"aria-disabled":i,"aria-label":r,defaultChecked:n,disabled:i,id:r,name:r,onChange:s,onClick:l,onFocus:c,onKeyDown:d,ref:x,type:"checkbox",value:g,...u}),t.jsx(v,{disabled:i,icon:"check",iconSize:"sm"}),o??g]})}),kt=a.dt.div`
|
|
1375
|
+
`,Mi=({slides:e,interval:n=300})=>{const{cycle:i,setCycle:o,setProgress:r}=bt(n,e.length),s=p.useCallback(l=>()=>{o(l),r(0)},[o,r]);return t.jsxs(Di,{"aria-roledescription":"carousel",children:[t.jsx(Fi,{$currentIndex:i,children:e.map((l,c)=>{const d=`slide-${c}`;return t.jsx(Pi,{"aria-label":d,"aria-roledescription":"slide",children:l.content},d)})}),t.jsx(Li,{children:e.map((l,c)=>{const d=`nav-button-${c}`;return t.jsx(Wi,{$isActive:c===i,"aria-label":`Go to slide ${c+1}`,"data-testid":c===i?"active":"inactive",onClick:s(c)},d)})})]})},kt=a.dt.div`
|
|
1376
1376
|
${({theme:e})=>`
|
|
1377
1377
|
background-color: ${e.palette.gray[100]};
|
|
1378
1378
|
border-radius: ${e.spacing[.25]};
|
|
@@ -1424,7 +1424,7 @@
|
|
|
1424
1424
|
padding-bottom: unset;
|
|
1425
1425
|
}
|
|
1426
1426
|
`}
|
|
1427
|
-
`,
|
|
1427
|
+
`,Bi=a.dt.div`
|
|
1428
1428
|
${({theme:e})=>`
|
|
1429
1429
|
align-items: end;
|
|
1430
1430
|
background-color: ${e.palette.gray[100]};
|
|
@@ -1442,10 +1442,10 @@
|
|
|
1442
1442
|
background-color: ${e.palette.gray[200]};
|
|
1443
1443
|
}
|
|
1444
1444
|
`}
|
|
1445
|
-
`,
|
|
1445
|
+
`,Ai=({noCodeMessage:e="Code snippet not available",snippet:n})=>{const i=a.nt(),[o,r]=p.useState(!1),[s,l]=p.useState(!0),c=p.useCallback(()=>{r(x=>!x)},[r]),d=p.useCallback(()=>{if(a._.isNil(n)||a._.isEmpty(n)||!a._.isString(n))return l(!1),e;const x=n.split(`
|
|
1446
1446
|
`);return x.length>8&&!o?`${[...x].splice(0,7).join(`
|
|
1447
1447
|
`)}
|
|
1448
|
-
${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(async()=>{await navigator.clipboard.writeText(g)},[g]);return t.jsxs(
|
|
1448
|
+
${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(async()=>{await navigator.clipboard.writeText(g)},[g]);return t.jsxs(b,{bgColor:i.palette.gray[100],borderRadius:"4px",display:"inline-flex",minWidth:"565px",position:"relative",children:[t.jsx(kt,{"data-private":!0,children:t.jsx("pre",{children:t.jsx("code",{className:"language-none",children:g})})}),t.jsxs(Bi,{children:[t.jsx(A,{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]}),s?t.jsxs(R,{onClick:c,variant:"ghost",children:[o?"Show Less":"Show more",t.jsx(C,{icon:o?"chevron-up":"chevron-down",iconColor:i.palette.gray[700],iconSize:"xxs",iconType:"fa-light",ml:.25,onClick:u})]}):!1]})]})},Oi=({noCodeMessage:e="Code snippet not available",snippet:n,specific:i})=>(p.useEffect(()=>{a.prismExports.highlightAll()},[]),t.jsx(kt,{"data-private":!0,children:t.jsx("pre",{className:"line-highlight","data-line-offset":a._.isNil(n)||a._.isString(n)?0:n.offset+.7,...i!==void 0?{"data-line":String(Number(i))}:{},children:a._.isNil(n)||a._.isString(n)||a._.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:_i}=G(e=>({lg:`
|
|
1449
1449
|
@media screen and (min-width: ${e.breakpoints.md}) {
|
|
1450
1450
|
width: 72%;
|
|
1451
1451
|
}
|
|
@@ -1466,13 +1466,13 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1466
1466
|
@media screen and (max-width: ${e.breakpoints.sm}) {
|
|
1467
1467
|
width: 40%;
|
|
1468
1468
|
}
|
|
1469
|
-
`})),
|
|
1469
|
+
`})),Hi=a.dt.div.attrs({className:"comp-modal fixed inset-0 overflow-auto"})`
|
|
1470
1470
|
align-items: center;
|
|
1471
1471
|
background-color: rgb(52 64 84 / 70%);
|
|
1472
1472
|
display: flex;
|
|
1473
1473
|
justify-content: center;
|
|
1474
1474
|
z-index: 99999;
|
|
1475
|
-
`,Ct=a.dt(
|
|
1475
|
+
`,Ct=a.dt(b)`
|
|
1476
1476
|
${({theme:e,$size:n})=>`
|
|
1477
1477
|
background-color: ${e.palette.white};
|
|
1478
1478
|
border: 1px solid ${e.palette.gray[200]};
|
|
@@ -1497,9 +1497,9 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1497
1497
|
}
|
|
1498
1498
|
}
|
|
1499
1499
|
|
|
1500
|
-
${
|
|
1500
|
+
${_i(e,n)}
|
|
1501
1501
|
`}
|
|
1502
|
-
`,
|
|
1502
|
+
`,Vi=a.dt.div`
|
|
1503
1503
|
${({theme:e})=>`
|
|
1504
1504
|
background-color: ${e.palette.white};
|
|
1505
1505
|
border-bottom: 1px solid ${e.palette.gray[200]};
|
|
@@ -1515,7 +1515,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1515
1515
|
padding: 0;
|
|
1516
1516
|
}
|
|
1517
1517
|
`}
|
|
1518
|
-
`,
|
|
1518
|
+
`,Gi=a.dt.div`
|
|
1519
1519
|
border-radius: ${({theme:e})=>`${e.spacing[.25]} ${e.spacing[.25]} 0 0`};
|
|
1520
1520
|
display: block;
|
|
1521
1521
|
overflow: unset;
|
|
@@ -1524,7 +1524,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1524
1524
|
max-width: 100%;
|
|
1525
1525
|
padding: ${({theme:e})=>`${e.spacing[1.25]}`};
|
|
1526
1526
|
position: sticky;
|
|
1527
|
-
`,
|
|
1527
|
+
`,Ui=a.dt.div.attrs({className:"flex items-center justify-between mb-1.5"})``,Yi=a.dt.div`
|
|
1528
1528
|
${({theme:e})=>`
|
|
1529
1529
|
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
1530
1530
|
display: flex;
|
|
@@ -1555,7 +1555,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1555
1555
|
margin-right: 0;
|
|
1556
1556
|
}
|
|
1557
1557
|
`}
|
|
1558
|
-
`,
|
|
1558
|
+
`,Ki=a.dt.div`
|
|
1559
1559
|
img {
|
|
1560
1560
|
margin: 0 calc(-${({theme:e})=>e.spacing[1.25]} - 1px)
|
|
1561
1561
|
${({theme:e})=>e.spacing[1.25]};
|
|
@@ -1571,7 +1571,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1571
1571
|
margin-right: 0;
|
|
1572
1572
|
`:""}
|
|
1573
1573
|
}
|
|
1574
|
-
`,vt=({alert:e,modalRef:n,confirmButton:i=void 0,cancelButton:o=void 0})=>{const{close:r}=n,s=p.useCallback(()=>{o!=null&&o.onClick&&o.onClick(),r()},[o,r]),l=p.useCallback(()=>{i!=null&&i.onClick&&i.onClick(),r()},[i,r]);return[i,o].some(d=>!a.lodashExports.isEmpty(d))?t.jsxs(
|
|
1574
|
+
`,vt=({alert:e,modalRef:n,confirmButton:i=void 0,cancelButton:o=void 0})=>{const{close:r}=n,s=p.useCallback(()=>{o!=null&&o.onClick&&o.onClick(),r()},[o,r]),l=p.useCallback(()=>{i!=null&&i.onClick&&i.onClick(),r()},[i,r]);return[i,o].some(d=>!a.lodashExports.isEmpty(d))?t.jsxs(b,{display:"flex",flexDirection:"column",gap:.625,position:"sticky",px:1.25,py:1.25,children:[e,t.jsx(Yi,{children:t.jsxs("div",{children:[o&&t.jsx(R,{onClick:s,variant:"tertiary",width:"100%",children:o.text}),i&&t.jsx(R,{onClick:l,variant:"primary",width:"100%",children:i.text})]})})]}):null},St=({title:e,description:n,modalRef:i,otherActions:o,onClose:r})=>{const s=a.nt(),l=p.useCallback(()=>{r==null||r(),i.close()},[i,r]);return p.useEffect(()=>{const c=d=>{d.key==="Escape"&&l()};return window.addEventListener("keydown",c),()=>{window.removeEventListener("keydown",c)}},[l]),t.jsxs(Gi,{children:[t.jsxs(Ui,{children:[typeof e=="string"?t.jsx(L,{fontWeight:"bold",lineSpacing:1.75,mr:1,size:"sm",children:e}):e,t.jsxs("div",{className:"items-center flex gap-3",children:[o,t.jsx(A,{icon:"close",iconColor:s.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:l,px:.25,py:.25,variant:"ghost"})]})]}),n&&a.lodashExports.isString(n)&&!a.lodashExports.isEmpty(n)?t.jsx(j,{mt:.5,size:"sm",children:n}):n]})},zt=({disabled:e,id:n="modal-confirm",onCancel:i,onConfirm:o="submit",txtCancel:r,txtConfirm:s})=>{const l=o==="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:o,type:l?"submit":"button",variant:"primary",width:"100%",children:s??"Confirm"})]})},It=({_portal:e=!0,alert:n,cancelButton:i=void 0,children:o=void 0,confirmButton:r=void 0,content:s=void 0,description:l="",modalRef:c,otherActions:d=void 0,onClose:g=void 0,title:u="",size:x,id:f="modal-container"})=>{const h=()=>t.jsx(Hi,{"aria-label":c.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs(Ct,{$size:x,"data-testid":f,id:f,children:[!a._.isEmpty(u)&&t.jsx(St,{description:l,modalRef:c,onClose:g,otherActions:d,title:u}),(a._.isObject(s)||o)&&t.jsxs(Vi,{children:[o,a._.isObject(s)&&a._.isString(s.imageSrc)&&t.jsx(Ki,{$framed:s.imageFramed,children:t.jsx(H,{alt:"modal-img",publicId:s.imageSrc})}),a._.isObject(s)&&a._.isString(s.imageText)&&t.jsx(j,{size:"sm",children:s.imageText})]}),t.jsx(vt,{alert:n,cancelButton:i,confirmButton:r,modalRef:c})]})});return e&&c.isOpen?ae.createPortal(h(),document.getElementById("portals")??document.body):c.isOpen?h():null},qi=()=>{const[e,n]=p.useState(!1),[i,o]=p.useState(),r=p.useRef(null),s=mt("confirm-dialog-modal"),l=p.useCallback(async u=>(o(u),n(!0),new Promise(x=>{r.current=x})),[]),c=p.useCallback(()=>{var u;n(!1),o(void 0),(u=r.current)==null||u.call(r,!0)},[]),d=p.useCallback(()=>{var u;n(!1),o(void 0),(u=r.current)==null||u.call(r,!1)},[]);return p.useEffect(()=>{s.setIsOpen(e)},[e,s]),{ConfirmDialog:({id:u="confirm-dialog-modal",children:x})=>t.jsxs(It,{id:u,modalRef:{...s,close:d},size:"sm",title:i==null?void 0:i.title,children:[x,i==null?void 0:i.message,t.jsx(zt,{id:i==null?void 0:i.id,onCancel:d,onConfirm:c})]}),confirm:l}},Xi=a.dt.button`
|
|
1575
1575
|
display: flex;
|
|
1576
1576
|
position: relative;
|
|
1577
1577
|
height: 32px;
|
|
@@ -1594,7 +1594,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1594
1594
|
display: none;
|
|
1595
1595
|
}
|
|
1596
1596
|
}
|
|
1597
|
-
`,
|
|
1597
|
+
`,Zi=a.dt.div`
|
|
1598
1598
|
${({theme:e})=>`
|
|
1599
1599
|
display: flex;
|
|
1600
1600
|
flex-direction: column;
|
|
@@ -1635,7 +1635,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1635
1635
|
}
|
|
1636
1636
|
}
|
|
1637
1637
|
`}
|
|
1638
|
-
`,Re=({containerRef:e,id:n})=>{const i=a.nt(),o=n==="desktop"?380:342,r=p.useCallback(l=>()=>{if(e!=null&&e.current){const{current:c}=e;c.scrollBy({left:l==="right"?o:-o,behavior:"smooth"})}},[e,o]),s=p.useCallback(l=>t.jsxs(
|
|
1638
|
+
`,Re=({containerRef:e,id:n})=>{const i=a.nt(),o=n==="desktop"?380:342,r=p.useCallback(l=>()=>{if(e!=null&&e.current){const{current:c}=e;c.scrollBy({left:l==="right"?o:-o,behavior:"smooth"})}},[e,o]),s=p.useCallback(l=>t.jsxs(Xi,{onClick:r(l),children:[t.jsx(C,{clickable:!0,icon:`circle-arrow-${l}`,iconClass:"hovered",iconColor:i.palette.gray[800],iconSize:"md",iconType:"fa-solid"}),t.jsx(C,{clickable:!0,icon:`circle-arrow-${l}`,iconClass:"uncover",iconColor:i.palette.gray[800],iconSize:"md",iconType:"fa-light"})]}),[r,i]);return t.jsxs(b,{alignItems:"center",display:"flex",gap:1,id:n,width:"max-content",children:[s("left"),s("right")]})},Ee=({tag:e,tagPosition:n})=>{const i=a.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(j,{color:i.palette.gray[900],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:e})}):null},Tt=({eventDate:e})=>{const n=a.nt(),i=a.lodashExports.isEmpty(e)?null:e==null?void 0:e.split("-");if(i){const[o,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:o}),t.jsx(j,{color:n.palette.gray[800],fontWeight:"semibold",lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:r.toUpperCase()})]})}return null},Ji=a.dt.div`
|
|
1639
1639
|
${({theme:e})=>`
|
|
1640
1640
|
align-items: flex-start;
|
|
1641
1641
|
display: flex;
|
|
@@ -1680,7 +1680,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1680
1680
|
}
|
|
1681
1681
|
}
|
|
1682
1682
|
`}
|
|
1683
|
-
`,Nt=({author:e,buttonText:n,description:i,eventDate:o,href:r,imageId:s,mode:l="light",publishDate:c,readingTime:d,tag:g,tagPosition:u="top",title:x})=>{const f=a.nt(),h=c==null?void 0:c.split("-")
|
|
1683
|
+
`,Nt=({author:e,buttonText:n,description:i,eventDate:o,href:r,imageId:s,mode:l="light",publishDate:c,readingTime:d,tag:g,tagPosition:u="top",title:x})=>{const f=a.nt(),h=c==null?void 0:c.split("-"),$=l==="dark",m=t.jsxs(Ji,{"data-testid":`content-card-${x}`,children:[s||o||g&&u==="top"?t.jsxs(b,{id:"card-image",position:"relative",children:[s&&t.jsx(H,{publicId:s}),u==="top"&&t.jsx(Ee,{tag:g,tagPosition:u}),t.jsx(Tt,{eventDate:o})]}):void 0,t.jsxs(b,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.5,id:"card-content",children:[u==="bottom"&&t.jsx(Ee,{tag:g,tagPosition:u}),e||h||d?t.jsxs(b,{display:"flex",justify:"space-between",width:"100%",children:[e&&h&&t.jsx(j,{color:f.palette.gray[$?300:400],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:e+` • ${h[0]} ${h[1]}, ${h[2]}`}),d&&t.jsxs(b,{alignItems:"center",display:"flex",gap:.25,justify:"center",minWidth:"60px",children:[t.jsx(C,{icon:"eye",iconColor:f.palette.gray[$?300:400],iconSize:"xs",iconType:"fa-light"}),t.jsx(j,{color:f.palette.gray[$?300:400],size:"sm",sizeSm:"xs",textAlign:"right",children:d})]})]}):void 0,t.jsx(L,{className:`title-${l}`,color:$?f.palette.white:f.palette.gray[800],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:x}),i&&t.jsx(j,{color:f.palette.gray[$?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:m}):m},Qi=({description:e,items:n,title:i,titleHighlighted:o})=>{const r=p.useRef(null);return t.jsxs(Zi,{"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:o})]}),t.jsx(j,{lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:e})]}),t.jsx(Re,{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((s,l)=>t.jsx(Nt,{...s},`${l}-${s.title}`))})}),t.jsx(Re,{containerRef:r,id:"mobile"})]})},ee=p.forwardRef(function({color:n=k.palette.gray[100],mt:i=.5,mb:o=.5,...r},s){return t.jsx(b,{as:"hr",borderBottom:`1px solid ${n}`,mb:o,mt:i,ref:s,width:"100%",...r})}),De=({buttonProps:e,variant:n})=>t.jsx(R,{onClick:e.onClick,variant:n,children:e.text}),er=a.dt.div`
|
|
1684
1684
|
display: flex;
|
|
1685
1685
|
flex-direction: column;
|
|
1686
1686
|
align-items: center;
|
|
@@ -1688,7 +1688,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1688
1688
|
max-width: 900px;
|
|
1689
1689
|
white-space: pre-line;
|
|
1690
1690
|
margin: 0 auto;
|
|
1691
|
-
`,
|
|
1691
|
+
`,tr=a.dt.div`
|
|
1692
1692
|
display: flex;
|
|
1693
1693
|
flex-direction: row;
|
|
1694
1694
|
justify-content: center;
|
|
@@ -1701,7 +1701,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1701
1701
|
> img {
|
|
1702
1702
|
width: 100%;
|
|
1703
1703
|
}
|
|
1704
|
-
`,
|
|
1704
|
+
`,nr=a.dt.div`
|
|
1705
1705
|
display: flex;
|
|
1706
1706
|
flex-direction: row;
|
|
1707
1707
|
margin: 0;
|
|
@@ -1714,7 +1714,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1714
1714
|
> *:last-child {
|
|
1715
1715
|
margin-right: 0;
|
|
1716
1716
|
}
|
|
1717
|
-
`,
|
|
1717
|
+
`,qe={md:{description:"md",title:"lg"},sm:{description:"sm",title:"xs"}},ir=({cancelButton:e=void 0,confirmButton:n=void 0,description:i,imageSrc:o="integrates/empty/addRoot",padding:r=1.25,title:s,size:l="md"})=>{const c=(n??e)!==void 0;return t.jsxs(er,{$padding:r,children:[t.jsx(tr,{children:t.jsx(H,{alt:"empty-icon",publicId:o})}),t.jsx(L,{fontWeight:"bold",lineSpacing:1.75,mb:.25,size:qe[l].title,textAlign:"center",children:s}),t.jsx(j,{mb:c?2:void 0,size:qe[l].description,textAlign:"center",children:i}),c?t.jsxs(nr,{children:[e&&t.jsx(De,{buttonProps:e,variant:"tertiary"}),n&&t.jsx(De,{buttonProps:n,variant:"primary"})]}):void 0]})},rr=a.dt.form`
|
|
1718
1718
|
${({theme:e})=>`
|
|
1719
1719
|
align-items: flex-start;
|
|
1720
1720
|
align-self: stretch;
|
|
@@ -1724,7 +1724,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1724
1724
|
overflow: hidden auto;
|
|
1725
1725
|
width: 100%;
|
|
1726
1726
|
`}
|
|
1727
|
-
`,
|
|
1727
|
+
`,ar=({alert:e,cancelLabel:n,children:i,id:o="modal-confirm",mode:r,onCancel:s,onSubmit:l,showButtons:c=!0,submitLabel:d,submitDisabled:g=!1,yupSchema:u,...x})=>{const f=a.nt(),h=a.useForm({...x,mode:r??"all",resolver:u?a.o(u):void 0});return t.jsx(a.FormProvider,{...h,children:t.jsx(rr,{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: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:[s?t.jsx(R,{id:`${o}-cancel`,justify:"center",onClick:s,type:"reset",variant:"tertiary",width:"100%",children:n??"Cancel"}):void 0,t.jsx(R,{disabled:g,id:o,justify:"center",type:"submit",width:"100%",children:d??"Confirm"})]})]})]})})})},or=a.dt(te)`
|
|
1728
1728
|
display: grid;
|
|
1729
1729
|
gap: ${({$gap:e=1.25})=>`${e}rem`};
|
|
1730
1730
|
grid-template-columns: ${({$sm:e})=>`repeat(${e}, 1fr)`};
|
|
@@ -1742,7 +1742,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1742
1742
|
grid-template-columns: repeat(${n}, 1fr);
|
|
1743
1743
|
}
|
|
1744
1744
|
`}
|
|
1745
|
-
`,
|
|
1745
|
+
`,sr=p.forwardRef(function({children:n,md:i,sm:o,lg:r,xl:s,gap:l,...c},d){return t.jsx(or,{$gap:l,$lg:r,$md:i,$sm:o,$xl:s,ref:d,...c,children:n})}),lr=a.dt.div`
|
|
1746
1746
|
${({theme:e,$itemsLength:n})=>`
|
|
1747
1747
|
display: flex;
|
|
1748
1748
|
background-color: ${e.palette.white};
|
|
@@ -1761,7 +1761,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1761
1761
|
width: 507px;
|
|
1762
1762
|
}
|
|
1763
1763
|
`}
|
|
1764
|
-
`,
|
|
1764
|
+
`,Ae=a.dt.div`
|
|
1765
1765
|
${({theme:e,$isSelected:n})=>`
|
|
1766
1766
|
align-items: center;
|
|
1767
1767
|
background-color: ${n?e.palette.gray[100]:e.palette.white};
|
|
@@ -1778,7 +1778,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1778
1778
|
background-color: ${e.palette.gray[100]};
|
|
1779
1779
|
}
|
|
1780
1780
|
`}
|
|
1781
|
-
`,Rt=({isSelected:e=!1,label:n,onSelect:i})=>{const o=a.nt(),r=p.useCallback(()=>{i&&i(n)},[i,n]);return t.jsxs(
|
|
1781
|
+
`,Rt=({isSelected:e=!1,label:n,onSelect:i})=>{const o=a.nt(),r=p.useCallback(()=>{i&&i(n)},[i,n]);return t.jsxs(Ae,{$isSelected:e,onClick:r,children:[e?t.jsx(C,{icon:"check",iconColor:o.palette.gray[800],iconSize:"md"}):null,t.jsx(j,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",children:n})]})},cr=a.dt.input`
|
|
1782
1782
|
${({theme:e})=>`
|
|
1783
1783
|
background: none;
|
|
1784
1784
|
border: none !important;
|
|
@@ -1794,7 +1794,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1794
1794
|
color: ${e.palette.gray[400]};
|
|
1795
1795
|
}
|
|
1796
1796
|
`}
|
|
1797
|
-
`,
|
|
1797
|
+
`,dr=a.dt.div`
|
|
1798
1798
|
${({theme:e})=>`
|
|
1799
1799
|
align-items: center;
|
|
1800
1800
|
background-color: ${e.palette.white};
|
|
@@ -1814,13 +1814,13 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1814
1814
|
border: 2px solid ${e.palette.black};
|
|
1815
1815
|
}
|
|
1816
1816
|
`}
|
|
1817
|
-
`,
|
|
1817
|
+
`,pr=a.dt.div`
|
|
1818
1818
|
${({theme:e})=>`
|
|
1819
1819
|
background-color: ${e.palette.white};
|
|
1820
1820
|
border-radius: ${e.spacing[.5]};
|
|
1821
1821
|
width: 250px;
|
|
1822
1822
|
`}
|
|
1823
|
-
`,
|
|
1823
|
+
`,Oe=p.forwardRef(function({name:n,smallSearch:i=!1,value:o,...r},s){const l=a.nt(),[c,d]=p.useState(!1),{refs:g,floatingStyles:u}=a.useFloating(),x=p.useCallback(()=>{d(h=>!h)},[]);X(g.floating.current,()=>{d(!1)},!0);const f=t.jsxs(dr,{children:[t.jsx(C,{icon:"magnifying-glass",iconColor:l.palette.gray[700],iconSize:"xs",iconType:"fa-light"}),t.jsx(cr,{...r,id:n,name:n,ref:s,value:o}),!a.lodashExports.isEmpty(o)&&t.jsx(A,{icon:"xmark",iconColor:l.palette.gray[300],iconSize:"xs",iconType:"fa-light",px:.25,py:.25,type:"reset",variant:"ghost"})]});return i?t.jsxs(p.Fragment,{children:[t.jsx(A,{border:`1px solid ${l.palette.gray[300]} !important`,icon:"magnifying-glass",iconSize:"xs",iconType:"fa-light",onClick:x,ref:g.setReference,variant:"ghost"}),c?t.jsx(pr,{ref:g.setFloating,style:u,children:f}):void 0]}):f}),gr=({isOpen:e=!0,items:n,handleNewOrganization:i,onSelect:o,onClose:r,selectedItem:s,title:l,variant:c})=>{const d=a.nt(),[g,u]=p.useState(n),[x,f]=p.useState(""),h=p.useCallback(y=>{u(w=>w.filter(v=>String(v.name).toLowerCase().includes(y.toLocaleLowerCase())))},[u]),$=p.useCallback(y=>{y.currentTarget&&(f(y.currentTarget.value),h(y.currentTarget.value))},[f,h]);p.useEffect(()=>{u(n),h(x)},[n,h,x]);const m=()=>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(lr,{$itemsLength:g.length,children:[t.jsxs(b,{alignItems:"center",display:"flex",justify:"space-between",children:[t.jsx(j,{color:d.palette.gray[800],fontWeight:"bold",size:"lg",children:l}),t.jsx(A,{icon:"xmark",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:r,variant:"ghost"})]}),t.jsx(b,{mt:1,children:t.jsx(Oe,{onInput:$,placeholder:"Search"})}),t.jsx(ee,{mb:1,mt:1}),t.jsxs(b,{display:"inline-flex",gap:1,maxHeight:"332px",scroll:"y",wrap:"wrap",children:[c==="organization-selector"?t.jsx(Ae,{onClick:i,children:t.jsxs(b,{alignItems:"center",display:"flex",children:[t.jsx(C,{icon:"square-plus",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",mr:.5}),t.jsx(j,{color:d.palette.gray[400],size:"sm",children:"New organization"})]})}):void 0,g.map(y=>t.jsx(Rt,{isSelected:s.toLowerCase()===y.name,label:y.name.charAt(0).toUpperCase()+y.name.slice(1),onSelect:o},y.name))]})]})})});return e?ae.createPortal(m(),document.body):t.jsx("div",{})},ur=({description:e,height:n="auto",leftIconName:i,children:o,rightIconName:r,title:s,tooltipId:l,tooltipTip:c,tooltipPlace:d="bottom",variant:g="centered",width:u="318px"})=>{const x=a.nt(),f=g==="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||a.lodashExports.isUndefined(i)?void 0:h,t.jsx(j,{color:f?x.palette.gray[800]:x.palette.gray[400],size:"md",textAlign:f?"center":"start",children:e}),f||a.lodashExports.isUndefined(r)?void 0:h]}),t.jsxs(b,{alignItems:"center",display:"flex",gap:.5,my:.5,children:[f&&!a.lodashExports.isUndefined(i)?h:void 0,t.jsxs("div",{style:{display:"flex",gap:"12px"},children:[a.lodashExports.isUndefined(s)?void 0:t.jsx(L,{fontWeight:"bold",size:"md",children:s}),o]}),f&&!a.lodashExports.isUndefined(r)?h:void 0]})]})},xr=a.dt.button`
|
|
1824
1824
|
${({theme:e})=>`
|
|
1825
1825
|
align-items: center;
|
|
1826
1826
|
color: ${e.palette.gray[500]};
|
|
@@ -1840,7 +1840,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1840
1840
|
color: ${e.palette.gray[800]};
|
|
1841
1841
|
}
|
|
1842
1842
|
`}
|
|
1843
|
-
`,
|
|
1843
|
+
`,fr=a.dt.div`
|
|
1844
1844
|
${({theme:e})=>`
|
|
1845
1845
|
align-items: center;
|
|
1846
1846
|
border-bottom: 2px solid ${e.palette.gray[200]};
|
|
@@ -1849,11 +1849,11 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1849
1849
|
height: ${e.spacing[3]};
|
|
1850
1850
|
width: max-content;
|
|
1851
1851
|
`}
|
|
1852
|
-
`,
|
|
1852
|
+
`,hr=(e,n,i)=>i?n==="primary"?`3px solid ${e.palette.primary[500]}`:`3px solid ${e.palette.primary[100]}`:"unset",br=a.dt.div`
|
|
1853
1853
|
display: flex;
|
|
1854
1854
|
flex-direction: row;
|
|
1855
1855
|
gap: ${({theme:e})=>e.spacing[.25]};
|
|
1856
|
-
border-bottom: ${({theme:e,$borderButton:n,$variant:i})=>
|
|
1856
|
+
border-bottom: ${({theme:e,$borderButton:n,$variant:i})=>hr(e,i,n)};
|
|
1857
1857
|
align-items: center;
|
|
1858
1858
|
padding: ${({theme:e})=>e.spacing[.625]}
|
|
1859
1859
|
${({theme:e})=>e.spacing[.5]};
|
|
@@ -1892,7 +1892,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1892
1892
|
}
|
|
1893
1893
|
}
|
|
1894
1894
|
}
|
|
1895
|
-
|
|
1895
|
+
`,$r=a.dt(te)`
|
|
1896
1896
|
${({theme:e,$variant:n})=>`
|
|
1897
1897
|
align-items: center;
|
|
1898
1898
|
background: ${n==="error"?e.palette.primary[400]:e.palette.warning[500]};
|
|
@@ -1905,14 +1905,14 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1905
1905
|
width: ${e.spacing[.5]};
|
|
1906
1906
|
height: ${e.spacing[.5]};
|
|
1907
1907
|
`}
|
|
1908
|
-
`,
|
|
1908
|
+
`,yr=a.dt.div`
|
|
1909
1909
|
align-items: center;
|
|
1910
1910
|
color: ${({theme:e})=>e.palette.white};
|
|
1911
1911
|
display: flex;
|
|
1912
1912
|
font-size: 6px;
|
|
1913
1913
|
font-weight: ${({theme:e})=>e.typography.weight.bold};
|
|
1914
1914
|
justify-content: center;
|
|
1915
|
-
`,Et=p.forwardRef(function({numberIndicator:n,show:i,variant:o="error",...r},s){return t.jsx(
|
|
1915
|
+
`,Et=p.forwardRef(function({numberIndicator:n,show:i,variant:o="error",...r},s){return t.jsx($r,{$variant:o,className:i?"flex":"hidden","data-testid":"notification-sign",ref:s,...r,children:n&&t.jsx(yr,{children:n<=9?n:9})})}),Dt=({end:e=!1,label:n,id:i,isActive:o=!1,link:r,notificationSign:s,onClick:l,tooltip:c="",variant:d="primary",tag:g})=>{const{pathname:u}=Ie.useLocation(),x=o||(d==="primary"?u.includes(r):u.endsWith(r));return t.jsx(U,{display:"flex",id:`${i}-tooltip`,tip:c,children:t.jsxs(br,{$borderButton:x,$variant:d,children:[t.jsxs(Ie.NavLink,{end:e,id:i,onClick:l,to:r,children:[n,t.jsx(Et,{left:s==null?void 0:s.left,numberIndicator:s==null?void 0:s.numberIndicator,show:s==null?void 0:s.show,top:s==null?void 0:s.top,variant:s==null?void 0:s.variant})]}),g===void 0?null:t.jsx(q,{tagLabel:`${g}`,variant:"default"})]})})},Ft=({items:e,borders:n=!0,box:i=!1,variant:o="primary"})=>{const r=a.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,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:s,id:l,isActive:c,link:d,label:g,notificationSign:u,onClick:x,tag:f,tooltip:h})=>t.jsx(Dt,{end:s,id:l,isActive:c,label:g,link:d,notificationSign:u,onClick:x,tag:f,tooltip:h,variant:o},l))})},mr=({actions:e,children:n,header:i,title:o,tabs:r,footer:s})=>{const l=a.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(j,{color:l.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:o}),i]}),e&&t.jsx(b,{display:"flex",gap:.25,children:e.map(({icon:c,onClick:d},g)=>t.jsx(A,{icon:c??"paper-plane",iconColor:l.palette.gray[400],iconSize:"xxs",iconType:"fa-light",onClick:d,variant:"ghost"},`${g}-${c}`))})]}),t.jsx(b,{display:"flex",pt:.25,width:"100%",children:t.jsx(Ft,{items:r})}),t.jsx(b,{alignSelf:"stretch",display:"flex",flexDirection:"column",px:1.25,py:1,scroll:"y",children:n}),s&&t.jsx(b,{alignSelf:"stretch",borderTop:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.5,justify:"end",px:1.25,py:1,children:s.map(({icon:c,text:d,onClick:g},u)=>t.jsx(R,{icon:c,onClick:g,variant:u===0?"primary":"tertiary",width:"100%",children:d},`${u}-${d}`))})]})},wr=a.dt.div`
|
|
1916
1916
|
${({theme:e})=>`
|
|
1917
1917
|
align-items: flex-start;
|
|
1918
1918
|
backdrop-filter: blur(3.15px);
|
|
@@ -1964,7 +1964,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1964
1964
|
}
|
|
1965
1965
|
}
|
|
1966
1966
|
`}
|
|
1967
|
-
`,
|
|
1967
|
+
`,jr=a.dt.div`
|
|
1968
1968
|
align-items: center;
|
|
1969
1969
|
position: absolute;
|
|
1970
1970
|
justify-content: center;
|
|
@@ -1978,7 +1978,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1978
1978
|
height: 260px;
|
|
1979
1979
|
width: 260px;
|
|
1980
1980
|
}
|
|
1981
|
-
`,Pt=({icon:e})=>t.jsx(
|
|
1981
|
+
`,Pt=({icon:e})=>t.jsx(jr,{children:t.jsx(C,{icon:e,iconColor:k.palette.white,iconSize:"xs",iconTransform:"shrink-2",iconType:"fa-light"})}),kr=({category:e,description:n,href:i,icon:o,location:r,title:s})=>{const l=a.nt();return t.jsxs(wr,{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(j,{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:s})]}),t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx(j,{color:l.palette.white,size:"sm",sizeSm:"xs",children:"Location"}),t.jsx(j,{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:s}),t.jsxs("div",{className:"flex flex-col gap-8",children:[t.jsx(j,{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(Pt,{icon:o})]})},Cr=a.dt.button`
|
|
1982
1982
|
${({theme:e})=>`
|
|
1983
1983
|
align-items: center;
|
|
1984
1984
|
border-left: 3px solid transparent;
|
|
@@ -2021,7 +2021,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2021
2021
|
}
|
|
2022
2022
|
}
|
|
2023
2023
|
`}
|
|
2024
|
-
`,
|
|
2024
|
+
`,vr=a.dt.div`
|
|
2025
2025
|
${({theme:e})=>`
|
|
2026
2026
|
align-items: center;
|
|
2027
2027
|
background-color: transparent;
|
|
@@ -2051,7 +2051,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2051
2051
|
color: ${e.palette.gray[800]};
|
|
2052
2052
|
}
|
|
2053
2053
|
`}
|
|
2054
|
-
`,
|
|
2054
|
+
`,Sr=a.dt.div`
|
|
2055
2055
|
${({theme:e})=>`
|
|
2056
2056
|
background-color: ${e.palette.white};
|
|
2057
2057
|
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
@@ -2066,7 +2066,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2066
2066
|
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
2067
2067
|
}
|
|
2068
2068
|
`}
|
|
2069
|
-
`,
|
|
2069
|
+
`,zr=a.dt.div`
|
|
2070
2070
|
${({theme:e})=>`
|
|
2071
2071
|
align-items: flex-start;
|
|
2072
2072
|
cursor: pointer;
|
|
@@ -2088,11 +2088,11 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2088
2088
|
}
|
|
2089
2089
|
}
|
|
2090
2090
|
`}
|
|
2091
|
-
`,Wt=({disabled:e=!1,mode:n,onClick:i,text:o})=>t.jsx(
|
|
2091
|
+
`,Wt=({disabled:e=!1,mode:n,onClick:i,text:o})=>t.jsx(Cr,{className:`${e&&"disabled"} ${n}`,disabled:e,onClick:i,children:t.jsx(j,{color:"inherit",size:"sm",sizeSm:"xs",children:o})}),Ir=[{text:"EN"},{text:"ES"}],Tr=({items:e,handleClick:n,mode:i="light"})=>{const o=e??Ir,[r,s]=p.useState(o[0].text),l=p.useCallback(c=>()=>{n(c.text),s(c.text)},[n]);return t.jsxs(zr,{children:[t.jsxs(vr,{className:i,children:[t.jsx(C,{icon:"globe",iconSize:"xs",iconType:"fa-light"}),r]}),t.jsx(Sr,{children:o.map((c,d)=>t.jsx(Wt,{disabled:c.disabled,mode:i,onClick:l(c),text:c.text},`${c.text}_${d}`))})]})},Nr=a.dt.div.attrs({className:"flex flex-wrap justify-center pv3 w-100"})``,Rr=a.dt.div.attrs({className:"flex flex-wrap items-center justify-start mb2"})`
|
|
2092
2092
|
gap: 12px;
|
|
2093
|
-
`,
|
|
2093
|
+
`,Er=a.dt.div.attrs({className:"flex flex-wrap items-center justify-end mb2"})`
|
|
2094
2094
|
gap: 8px;
|
|
2095
|
-
|
|
2095
|
+
`,be=e=>e===void 0?"flex-grow: 1;":`width: calc(${e}00% / var(--cols));`,Dr=a.dt.div.attrs({className:"comp-col"})`
|
|
2096
2096
|
word-break: break-word;
|
|
2097
2097
|
|
|
2098
2098
|
${({$width:e=null})=>e===null?"":`width: ${e}`};
|
|
@@ -2100,23 +2100,23 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2100
2100
|
${({$paddingTop:e})=>`padding-top: ${e??0}px;`}
|
|
2101
2101
|
|
|
2102
2102
|
@media (width <= 768px) {
|
|
2103
|
-
${({$sm:e})
|
|
2103
|
+
${({$sm:e})=>be(e)}
|
|
2104
2104
|
}
|
|
2105
2105
|
|
|
2106
2106
|
@media (width >= 768px) and (width <= 992px) {
|
|
2107
|
-
${({$md:e})
|
|
2107
|
+
${({$md:e})=>be(e)}
|
|
2108
2108
|
}
|
|
2109
2109
|
|
|
2110
2110
|
@media (width >= 992px) {
|
|
2111
|
-
${({$lg:e})
|
|
2111
|
+
${({$lg:e})=>be(e)}
|
|
2112
2112
|
}
|
|
2113
2113
|
|
|
2114
|
-
${({$xl:e})=>a.isNumber(e)?`@media (min-width: 1200px) { ${
|
|
2114
|
+
${({$xl:e})=>a.isNumber(e)?`@media (min-width: 1200px) { ${be(e)} }`:""}
|
|
2115
2115
|
|
|
2116
2116
|
> .comp-card {
|
|
2117
2117
|
height: 100%;
|
|
2118
2118
|
}
|
|
2119
|
-
`,
|
|
2119
|
+
`,Fr=({children:e,xl:n,lg:i,md:o,sm:r,paddingTop:s,width:l})=>t.jsx(Dr,{$lg:i,$md:o,$paddingTop:s,$sm:r,$width:l,$xl:n,children:e}),Pr=a.dt.div.attrs({className:"comp-gap"})`
|
|
2120
2120
|
${({$disp:e="flex",$mh:n=4,$mv:i=4})=>`
|
|
2121
2121
|
align-items: center;
|
|
2122
2122
|
display: ${e};
|
|
@@ -2126,7 +2126,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2126
2126
|
margin: ${i}px ${n}px;
|
|
2127
2127
|
}
|
|
2128
2128
|
`}
|
|
2129
|
-
`,
|
|
2129
|
+
`,Wr=({children:e,disp:n,mh:i,mv:o})=>t.jsx(Pr,{$disp:n,$mh:i,$mv:o,children:e}),Lr=a.dt.div.attrs({className:"comp-row flex flex-row flex-wrap"})`
|
|
2130
2130
|
${({$align:e="stretch",$cols:n=100,$colsPadding:i=6,$justify:o="start"})=>`
|
|
2131
2131
|
align-items: ${e};
|
|
2132
2132
|
justify-content: ${o};
|
|
@@ -2144,7 +2144,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2144
2144
|
padding: ${i}px;
|
|
2145
2145
|
}
|
|
2146
2146
|
`}
|
|
2147
|
-
`,
|
|
2147
|
+
`,Mr=({align:e,children:n,cols:i,colsPadding:o,justify:r})=>t.jsx(Lr,{$align:e,$cols:i,$colsPadding:o,$justify:r,children:n}),Br=a.dt.li`
|
|
2148
2148
|
${({theme:e})=>`
|
|
2149
2149
|
align-items: center;
|
|
2150
2150
|
background-color: ${e.palette.white};
|
|
@@ -2192,7 +2192,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2192
2192
|
background-color: ${e.palette.gray[100]};
|
|
2193
2193
|
}
|
|
2194
2194
|
`}
|
|
2195
|
-
`,
|
|
2195
|
+
`,Lt=a.dt.ul`
|
|
2196
2196
|
${({theme:e})=>`
|
|
2197
2197
|
background-color: ${e.palette.white};
|
|
2198
2198
|
border: 1px solid ${e.palette.gray[200]};
|
|
@@ -2203,7 +2203,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2203
2203
|
min-width: 240px;
|
|
2204
2204
|
padding: ${e.spacing[.25]} 0 ${e.spacing[.25]} 0;
|
|
2205
2205
|
`}
|
|
2206
|
-
`,
|
|
2206
|
+
`,_e=({children:e,disabled:n=!1,icon:i,iconType:o="fa-light",href:r,onClick:s,onKeyDown:l,rightIcon:c,selected:d=!1,value:g,...u})=>{const f=a.nt().palette.gray[n?300:800],h=n?p.Children.map(e,$=>p.isValidElement($)?p.cloneElement($,{disabled:n,...$.props}):$):e;return t.jsxs(Br,{"aria-disabled":n,"aria-label":g,"aria-selected":d,"data-testid":g,onClick:s,onKeyDown:l,value:g,...u,children:[i!==void 0||g!==void 0?t.jsxs(b,{alignItems:"center",display:"flex",gap:.625,children:[i?t.jsx(C,{disabled:n,icon:i,iconColor:f,iconSize:"xs",iconType:o}):null,r===void 0?h:t.jsx(K,{href:r,children:h})]}):null,d||c?t.jsx(C,{disabled:n,icon:c??"check",iconColor:f,iconSize:"xs",iconType:o}):null]})},Ar=a.dt.span`
|
|
2207
2207
|
${({theme:e,$bgColor:n=e.palette.secondary[500],$txtDecoration:i="none"})=>`
|
|
2208
2208
|
background-color: ${n};
|
|
2209
2209
|
border-radius: 5px;
|
|
@@ -2212,14 +2212,14 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2212
2212
|
padding: ${e.spacing[.125]} ${e.spacing[.25]} ${e.spacing[.125]} ${e.spacing[.25]};
|
|
2213
2213
|
text-decoration: ${i}
|
|
2214
2214
|
`}
|
|
2215
|
-
`,
|
|
2215
|
+
`,Or=({bgColor:e,children:n,txtDecoration:i,ml:o=1})=>t.jsx(Ar,{$bgColor:e,$txtDecoration:i,className:`ml-${o}`,children:n}),_r={lg:"56",md:"30",sm:"12"},{getVariant:Hr}=G(e=>({red:`stroke: ${e.palette.primary[500]};`,white:`stroke: ${e.palette.white};`})),Vr=a.mt`
|
|
2216
2216
|
0% {
|
|
2217
2217
|
transform: rotateZ(0deg);
|
|
2218
2218
|
}
|
|
2219
2219
|
100% {
|
|
2220
2220
|
transform: rotateZ(360deg)
|
|
2221
2221
|
}
|
|
2222
|
-
`,
|
|
2222
|
+
`,Gr=a.mt`
|
|
2223
2223
|
0%,
|
|
2224
2224
|
25% {
|
|
2225
2225
|
stroke-dashoffset: 280;
|
|
@@ -2236,16 +2236,16 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2236
2236
|
stroke-dashoffset: 280;
|
|
2237
2237
|
transform: rotate(360deg);
|
|
2238
2238
|
}
|
|
2239
|
-
`,
|
|
2239
|
+
`,Ur=a.dt.svg`
|
|
2240
2240
|
${({$size:e="md"})=>a.lt`
|
|
2241
|
-
animation: ${
|
|
2241
|
+
animation: ${Vr} 2s linear infinite;
|
|
2242
2242
|
animation-timing-function: linear;
|
|
2243
2243
|
display: inline-block;
|
|
2244
|
-
width: ${
|
|
2244
|
+
width: ${_r[e]}px;
|
|
2245
2245
|
`}
|
|
2246
|
-
`,
|
|
2246
|
+
`,Yr=a.dt.circle`
|
|
2247
2247
|
${({theme:e,$color:n="red"})=>a.lt`
|
|
2248
|
-
animation: 1.4s ease-in-out infinite both ${
|
|
2248
|
+
animation: 1.4s ease-in-out infinite both ${Gr};
|
|
2249
2249
|
display: block;
|
|
2250
2250
|
fill: transparent;
|
|
2251
2251
|
stroke-linecap: round;
|
|
@@ -2254,9 +2254,9 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2254
2254
|
stroke-width: 10px;
|
|
2255
2255
|
transform-origin: 50% 50%;
|
|
2256
2256
|
|
|
2257
|
-
${
|
|
2257
|
+
${Hr(e,n)}
|
|
2258
2258
|
`}
|
|
2259
|
-
`,
|
|
2259
|
+
`,Kr=a.dt.circle`
|
|
2260
2260
|
display: block;
|
|
2261
2261
|
fill: transparent;
|
|
2262
2262
|
stroke: ${({theme:e})=>e.palette.gray[200]};
|
|
@@ -2264,13 +2264,13 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2264
2264
|
stroke-width: 10px;
|
|
2265
2265
|
transform-origin: 50% 50%;
|
|
2266
2266
|
opacity: ${({$color:e})=>e==="white"?"20%":"unset"};
|
|
2267
|
-
`,
|
|
2267
|
+
`,qr=({color:e="red",label:n,size:i})=>{const o=a.nt();return t.jsxs(b,{alignItems:"center",display:"flex",children:[t.jsxs(Ur,{$size:i,viewBox:"0 0 100 100",children:[t.jsx(Kr,{$color:e,cx:"50",cy:"50",r:"45"}),t.jsx(Yr,{$color:e,cx:"50",cy:"50",r:"45"})]}),n&&t.jsx(j,{color:e==="red"?o.palette.gray[700]:o.palette.white,ml:.5,size:"sm",children:n})]})},Xr=a.dt.div`
|
|
2268
2268
|
display: flex;
|
|
2269
2269
|
height: 80px;
|
|
2270
2270
|
max-width: 1440px;
|
|
2271
2271
|
overflow: hidden;
|
|
2272
2272
|
position: relative;
|
|
2273
|
-
`,
|
|
2273
|
+
`,Xe=a.dt.div`
|
|
2274
2274
|
height: 79px;
|
|
2275
2275
|
width: 64px;
|
|
2276
2276
|
flex-shrink: 0;
|
|
@@ -2294,7 +2294,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2294
2294
|
);
|
|
2295
2295
|
right: 0;
|
|
2296
2296
|
}
|
|
2297
|
-
`,
|
|
2297
|
+
`,Zr=a.dt.div`
|
|
2298
2298
|
display: flex;
|
|
2299
2299
|
gap: 40px;
|
|
2300
2300
|
animation: clients-animation 50s linear infinite;
|
|
@@ -2309,7 +2309,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2309
2309
|
transform: translateX(calc(-180px * 15));
|
|
2310
2310
|
}
|
|
2311
2311
|
}
|
|
2312
|
-
`,
|
|
2312
|
+
`,Jr=["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"],Qr=({fusion:e=!1,logos:n=Jr})=>t.jsxs(Xr,{children:[e&&t.jsx(Xe,{className:"left"}),t.jsx(Zr,{children:[...n,...n].map((i,o)=>t.jsx(H,{alt:`${i}-${o}`,height:"80px",plugins:[a.placeholder()],publicId:i,width:"140px"},`${i}-${o}`))}),e&&t.jsx(Xe,{className:"right"})]}),ea={company:{height:"83px",width:"460px"},footer:{height:"57px",width:"315px"},header:{height:"35px",width:"160px"},icon:{height:"40px",width:"40px"},inline:{width:"150px"}},ta=({publicId:e,variant:n})=>t.jsx(b,{...ea[n],children:t.jsx(H,{alt:"logo",publicId:e})}),na=({children:e,commitSha:n,commitShortSha:i,parentElement:o,userInfo:r,setVisibility:s})=>{const l=a.nt(),{userName:c,email:d,phone:g,userRole:u}=r;return X(o,()=>{s(!1)}),t.jsxs(Lt,{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(j,{color:l.palette.gray[800],fontWeight:"bold",size:"sm",children:c}),t.jsx(j,{color:l.palette.gray[400],size:"sm",children:d}),a.lodashExports.isUndefined(g)?void 0:t.jsx(j,{color:l.palette.gray[400],size:"sm",children:g})]}),t.jsx(b,{children:t.jsx(q,{tagLabel:u,variant:"role"})})]})}),t.jsx(ee,{}),e,t.jsx(ee,{}),t.jsx("li",{className:"commit-info",children:t.jsx(K,{href:`https://gitlab.com/fluidattacks/universe/-/tree/${n}`,iconPosition:"hidden",children:t.jsx(j,{color:l.palette.gray[400],size:"xs",children:`commit : ${i}`})})})]})},ia=a.dt.button`
|
|
2313
2313
|
align-items: center;
|
|
2314
2314
|
background-color: transparent;
|
|
2315
2315
|
border: unset;
|
|
@@ -2326,9 +2326,15 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2326
2326
|
&:hover span {
|
|
2327
2327
|
color: ${k.palette.primary[200]};
|
|
2328
2328
|
}
|
|
2329
|
-
`,
|
|
2330
|
-
padding-left:
|
|
2331
|
-
|
|
2329
|
+
`,ra=e=>e==="platform"?{normal:"sm",small:void 0}:{normal:"md",small:"sm"},aa=({message:e,onClickButton:n,buttonText:i,buttonFontWeight:o="regular",icon:r,onClose:s,variant:l="web"})=>{const c=a.nt(),[d,g]=p.useState(!0),u=p.useCallback(()=>{g(!1),s==null||s()},[s]),x=ra(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(j,{color:c.palette.white,display:"inline",size:x.normal,sizeSm:x.small,children:e}):e}),n?t.jsxs(ia,{onClick:n,children:[t.jsx(j,{color:c.palette.white,fontWeight:o,size:x.normal,sizeSm:x.small,textDecoration:"underline",children:i}),t.jsx(C,{icon:r??"arrow-right",iconColor:c.palette.white,iconSize:"xs",iconType:o==="bold"?"fa-regular":"fa-light"})]}):void 0]}),t.jsx(C,{clickable:!0,hoverColor:c.palette.primary[200],icon:"close",iconColor:c.palette.white,iconSize:"xs",iconType:"fa-light",onClick:u})]})},oa=a.dt(_e)`
|
|
2330
|
+
padding-left: 8px;
|
|
2331
|
+
padding-right: 8px;
|
|
2332
|
+
`,Mt=({options:e,onSubmit:n,id:i,showSubmitButton:o=!0})=>{const r=e.filter(d=>d.checked).map(d=>d.value),{register:s,handleSubmit:l}=a.useForm({defaultValues:{checkbox:r}}),c=p.useCallback(d=>{n&&n(d.checkbox)},[n]);return t.jsxs(p.Fragment,{children:[t.jsx(Oe,{}),t.jsxs("form",{id:i,onSubmit:l(c),children:[e.map((d,g)=>{const u=`li-checkbox${g}`;return t.jsx(oa,{value:u,width:"content",children:t.jsx(Be,{...s("checkbox"),label:d.label,value:d.value})},u)}),o?t.jsx(R,{form:"test",mt:.5,type:"submit",children:"Submit"}):void 0]})]})},sa=a.dt(_e)`
|
|
2333
|
+
margin-top: 10px;
|
|
2334
|
+
border: 1px solid ${({theme:e})=>e.palette.gray[300]};
|
|
2335
|
+
border-radius: 4px;
|
|
2336
|
+
min-width: unset;
|
|
2337
|
+
`,Bt=({items:e,onReorder:n,title:i,description:o})=>t.jsxs(a.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:"sm",children:i}),t.jsx(q,{priority:"high",tagLabel:String(e.length),variant:"error"})]}),t.jsx(j,{size:"sm",children:o}),e.map(r=>t.jsx(a.ReorderItem,{as:"div",dragListener:!r.disabled,item:r.value,value:r,children:t.jsx(sa,{...r,icon:"grid-horizontal",rightIcon:"lock",children:r.value})},r.value))]}),la=({title:e,modalRef:n})=>{const i=a.nt();return t.jsxs(Ct,{$size:"md",children:[t.jsx(L,{px:1.25,py:1.25,size:"md",children:e}),t.jsx(ee,{mb:0}),t.jsxs(b,{display:"flex",px:1.25,width:"100%",children:[t.jsx(b,{py:1.25,width:"55%",children:t.jsx(Mt,{id:"columns-visibility",options:n.columnVisibility,showSubmitButton:!1})}),t.jsx(b,{borderLeft:`2px solid ${i.palette.gray[100]}`,mx:1.25}),t.jsx(b,{py:1.25,width:"45%",children:t.jsx(Bt,{description:"Drag and drop to reorder columns",items:n.orderedColumns,onReorder:n.setOrderedColumns,title:"Columns"})})]}),t.jsx(ee,{mt:0}),t.jsxs(b,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(R,{id:"columns-modal-cancel",justify:"center",onClick:n.resetToDefault,variant:"tertiary",children:"Reset to Default"}),t.jsx(R,{id:"columns-modal-submit",justify:"center",onClick:n.close,variant:"primary",children:"Save Changes"})]})]})},ca=a.dt.div`
|
|
2332
2338
|
${({theme:e,$variant:n})=>`
|
|
2333
2339
|
background: ${e.palette.white};
|
|
2334
2340
|
border: 1px solid ${e.palette.gray[200]};
|
|
@@ -2347,7 +2353,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2347
2353
|
right: 16px;
|
|
2348
2354
|
}
|
|
2349
2355
|
`}
|
|
2350
|
-
`,
|
|
2356
|
+
`,da=a.dt.div`
|
|
2351
2357
|
${({theme:e,$variant:n})=>`
|
|
2352
2358
|
height: ${e.spacing[2.5]};
|
|
2353
2359
|
width: ${e.spacing[2.5]};
|
|
@@ -2378,7 +2384,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2378
2384
|
color: ${e.palette[n][500]};
|
|
2379
2385
|
}
|
|
2380
2386
|
`}
|
|
2381
|
-
`,
|
|
2387
|
+
`,pa=e=>e==="warning"?"triangle-exclamation":e==="info"?"circle-info":e==="success"?"circle-check":"circle-exclamation",ga=({description:e,onClose:n,title:i,variant:o})=>{const r=a.nt(),s=p.useCallback(()=>{n==null||n()},[n]);return t.jsxs(ca,{$variant:o,className:`notification notification__${o}`,role:"alertdialog",children:[t.jsxs(da,{$variant:o,children:[t.jsx(C,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),t.jsx(C,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),t.jsx(C,{icon:pa(o),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(j,{size:"sm",whiteSpace:"break-spaces",wordWrap:"break-word",children:e})]}),t.jsx(A,{height:"fit-content",icon:"close",iconColor:r.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:s,px:.125,py:.125,variant:"ghost"})]})},ua=a.dt.div`
|
|
2382
2388
|
width: fit-content;
|
|
2383
2389
|
border: ${({theme:e})=>`1px solid ${e.palette.gray[300]}`};
|
|
2384
2390
|
border-radius: 4px;
|
|
@@ -2391,7 +2397,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2391
2397
|
align-items: center;
|
|
2392
2398
|
justify-content: center;
|
|
2393
2399
|
padding: 0.5em;
|
|
2394
|
-
`,
|
|
2400
|
+
`,xa=a.dt.input`
|
|
2395
2401
|
width: 4em;
|
|
2396
2402
|
appearance: textfield;
|
|
2397
2403
|
border-style: none;
|
|
@@ -2411,7 +2417,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2411
2417
|
&::-webkit-inner-spin-button {
|
|
2412
2418
|
opacity: 1;
|
|
2413
2419
|
}
|
|
2414
|
-
`,
|
|
2420
|
+
`,fa=p.forwardRef(function({autoUpdate:n=!1,decimalPlaces:i=0,defaultValue:o=0,max:r,min:s,name:l,onEnter:c,tooltipMessage:d,...g},u){const x=i<0?0:i,[f,h]=p.useState(Number(o).toFixed(x)),$=p.useCallback(w=>{const v=a.lodashExports.toNumber(w.target.value);w.target.value.endsWith(".")?h(w.target.value):v>=Number(s)&&v<=Number(r)&&(h(String(v)),n&&c(a.lodashExports.toNumber(v.toFixed(x)))),w.stopPropagation()},[n,x,r,s,c]),m=p.useCallback(w=>{w.currentTarget.contains(w.relatedTarget)||h(Number(o).toFixed(x)),w.stopPropagation()},[x,o]),y=p.useCallback(w=>{w.stopPropagation(),w.key==="Enter"&&!a.lodashExports.isEmpty(w.currentTarget.value)&&c(a.lodashExports.toNumber(w.currentTarget.value))},[c]);return t.jsx(ua,{onBlur:m,tabIndex:-1,children:t.jsx(U,{id:"numberInputTooltip",tip:d,children:t.jsx(xa,{...g,"aria-label":l,"aria-valuemax":Number(r),"aria-valuemin":Number(s),"aria-valuenow":Number(f),max:r,min:s,name:l,onChange:$,onKeyUp:y,ref:u,step:10**-x,type:"number",value:f})})})}),ha={Azure:"integrates/autoenrollment/azureIcon",Bitbucket:"integrates/autoenrollment/bitbucketLogo",GitHub:"integrates/autoenrollment/githubLogo",GitLab:"integrates/autoenrollment/gitlabIcon"},Fe=({icon:e,label:n,onClick:i,onlyLabel:o=!1,provider:r="GitLab"})=>{const s=a.nt();return t.jsxs(b,{alignItems:"center",bgColorHover:s.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:[o?!1:t.jsx(b,{height:"24px",width:"24px",children:e===void 0?t.jsx(H,{alt:`${r} Logo`,height:"100%",publicId:ha[r],width:"100%"}):t.jsx(C,{icon:e,iconColor:"#000",iconSize:"sm",iconType:"fa-light"})}),t.jsx(b,{alignItems:"center",display:"flex",minWidth:"24px",children:t.jsx(j,{color:s.palette.gray[800],display:"inline",size:"xs",textAlign:"center",whiteSpace:o?"break-spaces":"nowrap",wordWrap:"unset",children:n??r})})]})},ba=({align:e="end",buttonLabel:n="Add Credential",children:i,id:o,manualOption:r,providers:s})=>{const l=a.nt(),[c,d]=p.useState(!1),g=p.useRef(null);X(g.current,()=>{d(!1)},!0);const u=p.useCallback(h=>{r==null||r.onClick(h),d(!1)},[r]),x=p.useCallback(()=>{d(h=>!h)},[d]),f=p.useCallback(h=>$=>{var m;(m=s[h])==null||m.onClick($),d(!1)},[s]);return t.jsxs(b,{alignItems:e,display:"flex",flexDirection:"column",position:"relative",ref:g,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:o,pb:.5,pl:.75,position:"absolute",pr:.75,pt:.5,shadow:"md",top:"40px",visibility:c?"visible":"hidden",zIndex:10,children:[Object.keys(s).map(h=>t.jsx(Fe,{onClick:f(h),provider:h},h)),r===void 0?void 0:t.jsx(Fe,{icon:"square-plus",label:r.label??"Add manually",onClick:u}),i]})]})},At=()=>t.jsx(b,{alignItems:"center",bgColor:k.palette.primary[25],borderRadius:"8px",gap:.5,justify:"center",padding:[.125,.25,.125,.25],width:"max-content",children:t.jsx(j,{bgGradient:k.palette.gradients["01"],fontWeight:"semibold",size:"xs",textFill:"transparent",children:"Recommended"})}),$a=a.dt.div`
|
|
2415
2421
|
${({className:e,theme:n})=>`
|
|
2416
2422
|
align-items: flex-start;
|
|
2417
2423
|
border-radius: ${n.spacing[1]};
|
|
@@ -2476,8 +2482,8 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2476
2482
|
width: 320px;
|
|
2477
2483
|
}
|
|
2478
2484
|
`}
|
|
2479
|
-
`;const
|
|
2480
|
-
through our scanning tool.`,priceAuthor:"$499",priceGroup:"$1,579"}}
|
|
2485
|
+
`;const ya={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
|
|
2486
|
+
through our scanning tool.`,priceAuthor:"$499",priceGroup:"$1,579"}},ma=({description:e,onClick:n,plan:i})=>{const{title:o,description:r,benefits:s,buttonText:l}=ya[i],c=e??r;return t.jsxs($a,{className:i,children:[t.jsxs(b,{display:"flex",flexDirection:"column",gap:.25,pt:i==="essential"?1.75:0,children:[i==="advanced"&&t.jsx(At,{}),t.jsx(L,{color:k.palette.gray[900],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:o}),t.jsx(j,{color:k.palette.gray[400],fontWeight:"semibold",pb:i==="essential"?1.25:0,size:"sm",sizeSm:"xs",children:s})]}),t.jsx(j,{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})]})},Ot=({description:e="",highlightDescription:n=""})=>{const i=a.nt(),o=typeof n=="string",r=o?"":new RegExp(`(${n.join("|")})`,"u");return n.length>0?t.jsx(j,{display:"inline",lineSpacing:1.5,size:"lg",textAlign:"center",children:o?t.jsxs(p.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((s,l)=>n.includes(s)?t.jsx(ye,{color:i.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:s},`${l+1}-bold`):s)}):t.jsx(j,{lineSpacing:1.5,size:"lg",textAlign:"center",children:e})},wa=({_portal:e=!1,cancelButton:n,darkBackground:i=!1,children:o,confirmButton:r,container:s,description:l,highlightDescription:c="",image:d,maxWidth:g,title:u,titleColor:x})=>{const f=a.nt(),{alt:h,src:$,width:m="77px",height:y="77px"}=d,w=p.useCallback(()=>{n==null||n.onClick()},[n]),v=p.useCallback(()=>{r==null||r.onClick()},[r]),S=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:g,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(H,{alt:h,height:y,publicId:$,width:m})}),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(Ot,{description:l,highlightDescription:c})]})]}),o&&t.jsx(b,{mb:1,scroll:"y",children:t.jsx(b,{height:"100%",children:o})}),t.jsxs(b,{alignItems:"flex-start",display:"flex",gap:1,justify:"center",children:[a.lodashExports.isObject(r)?t.jsx(R,{onClick:v,variant:(r==null?void 0:r.variant)??"primary",children:r==null?void 0:r.text},r==null?void 0:r.key):void 0,a.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?ae.createPortal(S,s??document.body):S},ja=a.dt.div`
|
|
2481
2487
|
${({theme:e})=>`
|
|
2482
2488
|
height: ${e.spacing[1]};
|
|
2483
2489
|
width: ${e.spacing[1]};
|
|
@@ -2508,7 +2514,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2508
2514
|
font-size: ${e.spacing[.5]};
|
|
2509
2515
|
}
|
|
2510
2516
|
`}
|
|
2511
|
-
`,
|
|
2517
|
+
`,_t=({margin:e,onClick:n,text:i})=>{const o=a.nt(),r=t.jsxs(ja,{children:[t.jsx(C,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),t.jsx(C,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),t.jsx(C,{icon:"crown",iconClass:"icon",iconSize:"xs"})]});return i!==void 0?t.jsx(b,{cursor:"pointer",display:"inline-block",mr:e,onClick:n,children:t.jsxs(b,{alignItems:"center",bgColor:o.palette.warning[50],borderRadius:"4px",display:"flex",padding:[.25,.25,.25,.25],width:"fit-content",children:[r,t.jsx(j,{color:o.palette.warning[500],display:"inline",ml:.25,size:"xs",children:i})]})}):t.jsx(b,{display:"inline-block",mr:e,onClick:n,children:r})},ka=({score:e})=>{const n=a.nt(),i=e<=33?"priority-bars-low":"priority-bars-medium",o=e>66||e===0?"priority-bars-high":i;return t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:.25,children:[t.jsx(C,{icon:o,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(j,{color:n.palette.gray[800],size:"sm",textAlign:"right",children:e+"%"})]})},{getVariant:Ca}=G(e=>({compliance:`
|
|
2512
2518
|
display: inline-flex;
|
|
2513
2519
|
|
|
2514
2520
|
&.horizontal {
|
|
@@ -2566,17 +2572,17 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2566
2572
|
.progress-bar {
|
|
2567
2573
|
background-color: ${e.palette.primary[500]};
|
|
2568
2574
|
}
|
|
2569
|
-
`})),
|
|
2575
|
+
`})),va=(e,n)=>n<50?e.palette.error[500]:n<80?e.palette.warning[500]:e.palette.success[500],Sa=a.dt.div`
|
|
2570
2576
|
${({theme:e,$minWidth:n,$orientation:i,$rounded:o,$variant:r})=>`
|
|
2571
2577
|
background-color: ${e.palette.gray[100]};
|
|
2572
2578
|
border-radius: ${o?"100px":"unset"};
|
|
2573
2579
|
${i==="horizontal"?"min-width":"min-height"}: ${n}px;
|
|
2574
2580
|
${i==="horizontal"?"":"height: 100%;"}
|
|
2575
2581
|
|
|
2576
|
-
${
|
|
2582
|
+
${Ca(e,r)}
|
|
2577
2583
|
|
|
2578
2584
|
`}
|
|
2579
|
-
`,
|
|
2585
|
+
`,za=a.dt.div`
|
|
2580
2586
|
${({theme:e,$percentage:n,$rounded:i,$variant:o})=>`
|
|
2581
2587
|
display: inline-flex;
|
|
2582
2588
|
width: ${n}%;
|
|
@@ -2586,9 +2592,9 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2586
2592
|
border-radius: ${i?"100px":"unset"};
|
|
2587
2593
|
border-end-end-radius: ${i&&n<100?"0":"inherit"};
|
|
2588
2594
|
border-start-end-radius: ${i&&n<100?"0":"inherit"};
|
|
2589
|
-
background-color: ${o==="compliance"?
|
|
2595
|
+
background-color: ${o==="compliance"?va(e,n):"inherit"};
|
|
2590
2596
|
`}
|
|
2591
|
-
`,
|
|
2597
|
+
`,Ia=({minWidth:e=100,percentage:n,percentageLocation:i="right",showPercentage:o=!1,orientation:r="horizontal",rounded:s=!0,variant:l="default"})=>{const c=o&&i==="left",d=o?t.jsx(b,{alignItems:"center",display:"flex",justify:c?"flex-end":"flex-start",width:"40px",children:t.jsx(j,{ml:.5,mr:c?.5:0,size:"sm",children:`${n}%`})}):null,g=t.jsx(Sa,{$minWidth:e,$orientation:r,$rounded:s,$variant:l,className:r,children:t.jsx(za,{$percentage:n,$rounded:s,$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:[g,d]})},Ta=a.dt(te)`
|
|
2592
2598
|
animation: ${({$animationTime:e})=>`progress-bar ${e}s ease-in-out`};
|
|
2593
2599
|
animation-fill-mode: both;
|
|
2594
2600
|
|
|
@@ -2601,12 +2607,12 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2601
2607
|
width: 100%;
|
|
2602
2608
|
}
|
|
2603
2609
|
}
|
|
2604
|
-
`,
|
|
2610
|
+
`,Na=e=>e*1e3/100,Ra=({progressTime:e=10,onComplete:n})=>{const i=a.nt(),o=100,[r,s]=p.useState(0);return p.useEffect(()=>{r===o&&(n==null||n())},[r,n]),p.useEffect(()=>{const l=setInterval(()=>{s(c=>c===o?0:c+1)},Na(e));return()=>{clearInterval(l)}},[r,e]),t.jsx(b,{bgColor:i.palette.gray[200],height:"4px",children:t.jsx(Ta,{$animationTime:e,bgGradient:i.palette.gradients["01"],height:"100%",width:`${r}%`})})},Ea=a.dt.div.attrs({className:"comp-scroll-up"})`
|
|
2605
2611
|
bottom: 15px;
|
|
2606
2612
|
position: fixed;
|
|
2607
2613
|
right: 140px;
|
|
2608
2614
|
z-index: 100;
|
|
2609
|
-
`,
|
|
2615
|
+
`,Da=({scrollerId:e="dashboard",visibleAt:n=500})=>{const[i,o]=p.useState(!1),[r,s]=p.useState(null);p.useEffect(()=>{s(document.getElementById(e)),r==null||r.addEventListener("scroll",()=>{o(r.scrollTop>n)})},[r,e,n]);const l=p.useCallback(()=>{r==null||r.scrollTo({behavior:"smooth",top:0})},[r]);return i?t.jsx(Ea,{children:t.jsx(A,{height:"40px",icon:"arrow-up",iconSize:"sm",id:"scroll-up",onClick:l,width:"40px"})}):null},Fa=a.dt.a`
|
|
2610
2616
|
${({theme:e})=>`
|
|
2611
2617
|
align-items: center;
|
|
2612
2618
|
display: flex;
|
|
@@ -2651,7 +2657,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2651
2657
|
width: 270px;
|
|
2652
2658
|
}
|
|
2653
2659
|
`}
|
|
2654
|
-
`,
|
|
2660
|
+
`,Pa=a.dt.div.attrs({className:"icon-wrap"})`
|
|
2655
2661
|
${({theme:e})=>`
|
|
2656
2662
|
align-items: center;
|
|
2657
2663
|
background: ${e.palette.primary[25]};
|
|
@@ -2666,7 +2672,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2666
2672
|
font-size: 20px;
|
|
2667
2673
|
}
|
|
2668
2674
|
`}
|
|
2669
|
-
`,
|
|
2675
|
+
`,Wa=a.dt.div`
|
|
2670
2676
|
${({theme:e})=>`
|
|
2671
2677
|
align-items: flex-start;
|
|
2672
2678
|
display: flex;
|
|
@@ -2698,7 +2704,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2698
2704
|
width: 320px;
|
|
2699
2705
|
}
|
|
2700
2706
|
`}
|
|
2701
|
-
`,
|
|
2707
|
+
`,La=a.dt.form`
|
|
2702
2708
|
${({theme:e})=>`
|
|
2703
2709
|
align-items: center;
|
|
2704
2710
|
display: flex;
|
|
@@ -2707,7 +2713,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2707
2713
|
padding: ${e.spacing[1]} ${e.spacing[1.5]};
|
|
2708
2714
|
width: 100%;
|
|
2709
2715
|
`}
|
|
2710
|
-
`,
|
|
2716
|
+
`,Ma=a.dt.input`
|
|
2711
2717
|
${({theme:e})=>`
|
|
2712
2718
|
flex: 1 0 0;
|
|
2713
2719
|
border: none;
|
|
@@ -2733,7 +2739,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2733
2739
|
font-size: ${e.typography.text.sm};
|
|
2734
2740
|
}
|
|
2735
2741
|
`}
|
|
2736
|
-
`,
|
|
2742
|
+
`,Ba=a.dt.button`
|
|
2737
2743
|
${({theme:e})=>`
|
|
2738
2744
|
align-items: center;
|
|
2739
2745
|
border-radius: ${e.spacing[.5]};
|
|
@@ -2796,7 +2802,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2796
2802
|
height: ${e.spacing[.5]};
|
|
2797
2803
|
}
|
|
2798
2804
|
`}
|
|
2799
|
-
|
|
2805
|
+
`,$e=({hit:e,icon:n="infinity",showIcon:i=!1})=>{const{slug:o,title:r}=e,s=String(o).startsWith("/pages/")?String(o).replace("/pages/","/"):String(o);return t.jsxs(Fa,{href:s,rel:"nofollow noopener noreferrer",children:[i&&t.jsx(Pa,{children:t.jsx(C,{icon:n,iconClass:"fill-gradient-01",iconSize:"sm",iconType:"fa-light"})}),t.jsx(j,{color:k.palette.gray[800],lineSpacing:1.5,size:"md",sizeSm:"sm",whiteSpace:"wrap",children:String(r)})]})},Aa=[{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"}],Ze={hit:{slug:"/contact-us/",title:"Contact Support"},icon:"envelope"},Oa=({items:e,placeholder:n="Search",refine:i,query:o})=>{const[r,s]=p.useState(o),[l,c]=p.useState(!1),d=p.useRef(null),g=p.useRef(null),u=r.length>=2,x=p.useCallback(w=>{s(w),i(w)},[i]),f=p.useCallback(()=>{x("")},[x]),h=p.useCallback(()=>{c(!0)},[]),$=p.useCallback(w=>{x(w.currentTarget.value)},[x]),m=p.useCallback(w=>{w.preventDefault(),w.stopPropagation(),f(),g.current&&g.current.focus()},[f]),y=p.useCallback(w=>{w.preventDefault(),w.stopPropagation(),g.current&&g.current.blur()},[]);return X(d.current,()=>{f(),c(!1)},!0),t.jsxs(Wa,{ref:d,children:[t.jsxs(La,{action:"",noValidate:!0,onReset:m,onSubmit:y,role:"search",children:[t.jsxs("div",{className:"flex gap-2 w-full",children:[t.jsx("div",{className:"h-10 p-2",children:t.jsx(C,{icon:"magnifying-glass",iconSize:"sm",iconType:"fa-light"})}),t.jsx(Ma,{autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",maxLength:512,onChange:$,onFocus:h,placeholder:n,ref:g,spellCheck:!1,type:"search",value:r})]}),u&&t.jsx(Ba,{type:"reset",children:t.jsx(C,{icon:"xmark",iconSize:"sm",iconType:"fa-light"})})]}),l&&r.length<2&&t.jsxs(ze,{children:[t.jsx(j,{color:k.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:Aa.map(({hit:w,icon:v},S)=>t.jsx($e,{hit:w,icon:v,showIcon:!0},`${v}-${S}`))}),t.jsx(j,{color:k.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:Ze.hit,icon:Ze.icon,showIcon:!0})]}),u&&e.length>0&&t.jsxs(ze,{$showHits:u,children:[t.jsx(j,{color:k.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(ze,{$empty:e.length===0,children:t.jsxs("div",{className:"items-center flex flex-col gap-4 py-[90px] w-full",children:[t.jsx(H,{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(j,{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"})]})})]})},_a={critical:{bgColor:k.palette.primary[700],colorL:k.palette.gray[800],colorR:k.palette.white},disable:{bgColor:k.palette.gray[200],colorL:k.palette.gray[400],colorR:k.palette.gray[400]},high:{bgColor:k.palette.error[500],colorL:k.palette.gray[800],colorR:k.palette.white},low:{bgColor:k.palette.warning[200],colorL:k.palette.gray[800],colorR:k.palette.gray[800]},medium:{bgColor:k.palette.warning[500],colorL:k.palette.gray[800],colorR:k.palette.gray[800]}},Ha=({textL:e,textR:n,variant:i})=>{const o=a.nt(),{bgColor:r,colorL:s,colorR:l}=_a[i];return t.jsxs(b,{alignItems:"flex-start",display:"inline-flex",children:[e?t.jsx(b,{alignItems:"center",bgColor:o.palette.white,border:`1px solid ${r}`,borderRadius:"4px 0px 0px 4px",display:"flex",justify:"center",padding:[0,.25,0,.25],children:t.jsx(j,{color:s,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(j,{color:l,size:"xs",children:n})})]})},Va=(e,n)=>{const i={critical:k.palette.primary[700],high:k.palette.error[500],low:k.palette.warning[200],medium:k.palette.warning[500],none:k.palette.gray[200]},o={disabled:k.palette.gray[400],enabled:k.palette.gray[800]},r={critical:k.palette.white,high:k.palette.white,low:k.palette.gray[800],medium:k.palette.gray[800],none:k.palette.gray[400]};return{iconColor:n<1?i.none:i[e],iconText:a.lodashExports.capitalize(e.charAt(0)),iconTextColor:n<1?r.none:r[e],textColor:n<1?o.disabled:o.enabled}},ie=({variant:e,value:n})=>{const{iconColor:i,iconText:o,iconTextColor:r,textColor:s}=Va(e,n),l=a.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(j,{color:r,size:"sm",textAlign:"center",children:o})})}),t.jsx(j,{color:s,size:"sm",children:n})]})},Ga=({critical:e,high:n,medium:i,low:o})=>t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:1,children:[t.jsx(ie,{value:e,variant:"critical"}),t.jsx(ie,{value:n,variant:"high"}),t.jsx(ie,{value:i,variant:"medium"}),t.jsx(ie,{value:o,variant:"low"})]}),Ua=a.dt.div`
|
|
2800
2806
|
${({theme:e})=>`
|
|
2801
2807
|
border-radius: ${e.spacing[.25]};
|
|
2802
2808
|
cursor: pointer;
|
|
@@ -2814,7 +2820,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2814
2820
|
display: block;
|
|
2815
2821
|
}
|
|
2816
2822
|
`}
|
|
2817
|
-
`,
|
|
2823
|
+
`,Ya=({visibleElement:e,hiddenElement:n})=>t.jsxs(Ua,{children:[e,t.jsx(b,{display:"none",position:"absolute",top:"100%",zIndex:10,children:n})]}),Ht=({customBadge:e=void 0,description:n,icon:i,onClick:o,requiresUpgrade:r=!1,title:s})=>{const l=a.nt();return t.jsxs(b,{bgColor:l.palette.white,bgColorHover:l.palette.gray[100],cursor:"pointer",display:"flex",gap:.5,onClick:o,px:1.25,py:1,width:"100%",children:[t.jsx(b,{alignItems:"center",bgColor:l.palette.gray[300],borderRadius:l.spacing[.25],display:"flex",height:"24px",justify:"center",width:"24px",children:t.jsx(C,{icon:i,iconColor:l.palette.gray[800],iconSize:"xxs",ml:.5,mr:.5})}),t.jsxs(b,{children:[t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:.5,children:[t.jsx(j,{color:l.palette.gray[800],size:"sm",children:s}),r?t.jsx(_t,{text:"Upgrade"}):void 0,e]}),t.jsx(j,{color:l.palette.gray[400],size:"xs",children:n})]})]})},Ka=a.dt(a.m.div)`
|
|
2818
2824
|
${({theme:e})=>`
|
|
2819
2825
|
background-color: ${e.palette.white};
|
|
2820
2826
|
box-shadow: ${e.shadows.lg};
|
|
@@ -2837,7 +2843,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2837
2843
|
height: auto;
|
|
2838
2844
|
}
|
|
2839
2845
|
`}
|
|
2840
|
-
`,
|
|
2846
|
+
`,qa=({children:e,closeIconId:n="close-menu",isOpen:i,items:o,onClose:r,primaryButtonText:s,primaryOnClick:l,secondaryButtonText:c,secondaryOnClick:d,title:g})=>{const u=a.nt(),x=p.useRef(null),f=p.useCallback(h=>()=>{h(),r()},[r]);return X(x.current,()=>{r()},!0),t.jsx(a.LazyMotion,{features:a.domAnimation,children:t.jsx(Ka,{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(j,{color:u.palette.black,display:"inline",fontWeight:"bold",size:"xl",children:g}),t.jsx(A,{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:[(o??[]).map(({customBadge:h,description:$,icon:m,onClick:y,requiresUpgrade:w,title:v})=>t.jsx(Ht,{customBadge:h,description:$,icon:m,onClick:f(y),requiresUpgrade:w,title:v},v)),e&&t.jsx(b,{px:1.25,children:e})]}),s===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:s})]})]})]})})})},Xa=(e,n)=>n>=50?`
|
|
2841
2847
|
${e.palette.gray[200]} 50%,
|
|
2842
2848
|
${e.palette.primary[500]} 50.05%,
|
|
2843
2849
|
${e.palette.primary[500]} ${n}%,
|
|
@@ -2848,7 +2854,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2848
2854
|
${e.palette.primary[500]} 50%,
|
|
2849
2855
|
${e.palette.gray[200]} 50.05%,
|
|
2850
2856
|
${e.palette.gray[200]} 100%
|
|
2851
|
-
`,
|
|
2857
|
+
`,Za=a.dt.div`
|
|
2852
2858
|
${({theme:e,$min:n,$value:i})=>`
|
|
2853
2859
|
align-items: center;
|
|
2854
2860
|
align-self: stretch;
|
|
@@ -2864,7 +2870,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2864
2870
|
${n>=0?`
|
|
2865
2871
|
${e.palette.primary[500]} ${i}%,
|
|
2866
2872
|
${e.palette.gray[200]} ${i}%
|
|
2867
|
-
`:
|
|
2873
|
+
`:Xa(e,i)}
|
|
2868
2874
|
);
|
|
2869
2875
|
border-radius: ${e.spacing[.125]};
|
|
2870
2876
|
height: ${e.spacing[.25]};
|
|
@@ -2888,7 +2894,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2888
2894
|
border: 1px solid ${e.palette.primary[500]};
|
|
2889
2895
|
}
|
|
2890
2896
|
`}
|
|
2891
|
-
`,
|
|
2897
|
+
`,Ja=a.dt.div`
|
|
2892
2898
|
${({theme:e})=>`
|
|
2893
2899
|
align-items: center;
|
|
2894
2900
|
display: flex;
|
|
@@ -2902,7 +2908,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2902
2908
|
font-size: ${e.spacing[.5]};
|
|
2903
2909
|
}
|
|
2904
2910
|
`}
|
|
2905
|
-
`,
|
|
2911
|
+
`,Qa=a.dt.output`
|
|
2906
2912
|
${({theme:e})=>`
|
|
2907
2913
|
align-items: flex-end;
|
|
2908
2914
|
border-radius: ${e.spacing[.5]};
|
|
@@ -2913,12 +2919,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2913
2919
|
padding: ${e.spacing[.625]} ${e.spacing[.75]};
|
|
2914
2920
|
width: 59px;
|
|
2915
2921
|
`}
|
|
2916
|
-
`,
|
|
2917
|
-
margin-top: 10px;
|
|
2918
|
-
border: 1px solid ${({theme:e})=>e.palette.gray[300]};
|
|
2919
|
-
border-radius: 4px;
|
|
2920
|
-
min-width: unset;
|
|
2921
|
-
`,eo=({items:e,onReorder:n,title:i,description:o})=>t.jsxs(a.ReorderGroup,{as:"div",axis:"y",layoutScroll:!0,onReorder:n,style:{overflowY:"auto",width:"content-fit"},values:e,children:[t.jsxs($,{display:"flex",gap:.25,children:[t.jsx(M,{display:"flex",size:"sm",children:i}),t.jsx(q,{priority:"high",tagLabel:String(e.length),variant:"error"})]}),t.jsx(j,{size:"sm",children:o}),e.map(r=>t.jsx(a.ReorderItem,{as:"div",dragListener:!r.disabled,item:r.value,value:r,children:t.jsx(Qa,{...r,icon:"grid-horizontal",rightIcon:"lock",children:r.value})},r.value))]}),{getVariant:to}=G(e=>({completed:`
|
|
2922
|
+
`,Vt=({state:e,trackRef:n,index:i})=>{const o=p.useRef(null),{thumbProps:r,inputProps:s,isDragging:l}=a.$47b897dc8cdb026b$export$8d15029008292ae({index:i,trackRef:n,inputRef:o},e);return t.jsx("div",{...r,className:`thumb ${l?"dragging":""}`,children:t.jsx(a.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:t.jsx("input",{ref:o,...s})})})},eo=(e,n,i)=>Math.round((i-e)/(n-e)*100),to=e=>{const n=a.nt(),i=p.useRef(null),{isDisabled:o,label:r,name:s}=e,{control:l}=a.useFormContext(),{field:{onChange:c,value:d}}=a.useController({name:s,control:l,disabled:o}),{minValue:g=0,maxValue:u=100}=e,x=a.$a916eb452884faea$export$b7a616150fdb9f44(),f=a.$28f99e3e86e6ec45$export$e5fda3247f5d67f9({...e,numberFormatter:x,onChange:c,value:d}),h=eo(g,u,f.getThumbValue(0)),{groupProps:$,trackProps:m}=a.$bcca50147b47f54d$export$56b2c08e277f365({...e,"aria-label":"slider"},f,i);return t.jsx(O,{htmlFor:s,label:r,children:t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:1.25,pl:.5,width:"100%",children:[t.jsxs(Za,{...$,$min:g??0,$value:h,className:"slider",children:[t.jsx("div",{...m,className:`track ${f.isDisabled?"disabled":""}`,ref:i,children:t.jsx(Vt,{index:0,state:f,trackRef:i})}),t.jsxs(Ja,{children:[t.jsx("p",{children:`${x.format(g)} (Low)`}),g<0&&t.jsx("p",{children:"0"}),t.jsx("p",{children:`${x.format(u)} (High)`})]})]}),t.jsx(Qa,{children:t.jsx(j,{color:n.palette.gray[800],size:"sm",textAlign:"right",children:f.getThumbValueLabel(0)})})]})})},{getVariant:no}=G(e=>({completed:`
|
|
2922
2923
|
background-color: ${e.palette.primary[500]};
|
|
2923
2924
|
color: ${e.palette.white};
|
|
2924
2925
|
|
|
@@ -2941,7 +2942,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2941
2942
|
&::after {
|
|
2942
2943
|
background-color: ${e.palette.gray[200]};
|
|
2943
2944
|
}
|
|
2944
|
-
`})),
|
|
2945
|
+
`})),io=a.dt.div`
|
|
2945
2946
|
${({theme:e})=>`
|
|
2946
2947
|
align-items: stretch;
|
|
2947
2948
|
background-color: ${e.palette.white};
|
|
@@ -2951,7 +2952,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2951
2952
|
padding: ${`${e.spacing[1]} ${e.spacing[1]}`};
|
|
2952
2953
|
scroll-behavior: unset;
|
|
2953
2954
|
`}
|
|
2954
|
-
`,
|
|
2955
|
+
`,ro=a.dt.div`
|
|
2955
2956
|
display: flex;
|
|
2956
2957
|
flex-direction: row;
|
|
2957
2958
|
margin-bottom: ${({theme:e})=>e.spacing[2]};
|
|
@@ -2959,7 +2960,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2959
2960
|
&:last-child > div:first-child > span::after {
|
|
2960
2961
|
display: none;
|
|
2961
2962
|
}
|
|
2962
|
-
`,
|
|
2963
|
+
`,ao=a.dt.div`
|
|
2963
2964
|
${({theme:e})=>`
|
|
2964
2965
|
display: inline-flex;
|
|
2965
2966
|
font-family: ${e.typography.type.primary};
|
|
@@ -2971,7 +2972,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2971
2972
|
margin-right: ${e.spacing[.5]};
|
|
2972
2973
|
}
|
|
2973
2974
|
`}
|
|
2974
|
-
`,
|
|
2975
|
+
`,oo=a.dt.span`
|
|
2975
2976
|
${({theme:e,$variant:n})=>`
|
|
2976
2977
|
border-radius: 6px;
|
|
2977
2978
|
display: inline-block;
|
|
@@ -2994,9 +2995,9 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2994
2995
|
height: calc(100% - ${e.spacing[1]});
|
|
2995
2996
|
}
|
|
2996
2997
|
|
|
2997
|
-
${
|
|
2998
|
+
${no(e,n)}
|
|
2998
2999
|
`}
|
|
2999
|
-
`,
|
|
3000
|
+
`,so=({button:{disabled:e=!1,text:n,type:i="button",onClick:o},steps:r})=>{const[s,l]=p.useState(1),c=p.useCallback((d,g)=>()=>{l(u=>u+d),g==null||g()},[]);return t.jsx(io,{children:r.map((d,g)=>{const{content:u,title:x,nextAction:f,previousAction:h}=d,$=g+1,m=$===s?"current":"disabled",y=$<s?"completed":m;return t.jsxs(ro,{children:[t.jsx(b,{maxWidth:"40px",position:"relative",children:t.jsx(oo,{$variant:y,children:y==="completed"?t.jsx(C,{icon:"check",iconSize:"xs",iconType:"fa-solid"}):$})}),t.jsxs(b,{ml:1.5,width:"100%",children:[t.jsx(L,{fontWeight:"bold",lineSpacing:1.25,mb:1.5,size:"xs",children:x}),y==="current"&&t.jsxs(b,{children:[u,t.jsxs(ao,{children:[s>1&&t.jsx(R,{disabled:d.isDisabledPrevious??!1,onClick:c(-1,h),variant:"tertiary",children:"Previous"}),s<r.length?t.jsx(R,{disabled:d.isDisabledNext??!1,onClick:c(1,f),variant:"primary",children:"Next step"}):t.jsx(R,{disabled:e,onClick:o,type:i,variant:"primary",children:n})]})]})]})]},d.title)})})},lo=a.dt.button`
|
|
3000
3001
|
${({theme:e})=>`
|
|
3001
3002
|
align-items: center;
|
|
3002
3003
|
background-color: ${e.palette.white};
|
|
@@ -3038,7 +3039,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
3038
3039
|
background-color: ${e.palette.gray[100]};
|
|
3039
3040
|
}
|
|
3040
3041
|
`}
|
|
3041
|
-
`,
|
|
3042
|
+
`,co={add:{icon:"plus"},approve:{icon:"check"},disabled:{icon:"ban"},reject:{icon:"xmark"},submit:{icon:"arrow-right"},success:{icon:"check"}},po=({disabled:e=!1,icon:n,id:i,label:o,name:r,onClick:s,type:l="button",variant:c})=>{const d=a.nt(),g=t.jsxs(lo,{"aria-label":r??void 0,className:c,disabled:e,id:i,onClick:s,type:l,children:[t.jsx(C,{clickable:!1,icon:n??co[c].icon,iconSize:r===void 0?"xxs":"xs",iconType:"fa-light"}),r??void 0]});return t.jsxs(b,{alignItems:"center",display:"flex",children:[g,o&&t.jsx(j,{color:d.palette.gray[800],ml:.5,size:"sm",children:o})]})},go=({items:e})=>t.jsx(fr,{children:e.map(({isActive:n,label:i,onClick:o},r)=>t.jsx(xr,{className:n?"active":"",onClick:o,type:"button",children:t.jsx(L,{color:"inherit",fontWeight:"semibold",size:"sm",sizeSm:"xs",children:i})},`${i}-${r}`))}),uo=a.dt.div`
|
|
3042
3043
|
${({theme:e})=>`
|
|
3043
3044
|
align-items: center;
|
|
3044
3045
|
background-color: ${e.palette.white};
|
|
@@ -3060,7 +3061,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
3060
3061
|
border: 1px solid ${e.palette.gray[600]};
|
|
3061
3062
|
}
|
|
3062
3063
|
`}
|
|
3063
|
-
`,
|
|
3064
|
+
`,xo=a.dt.div`
|
|
3064
3065
|
${({theme:e})=>`
|
|
3065
3066
|
display: flex;
|
|
3066
3067
|
flex-direction: column;
|
|
@@ -3131,7 +3132,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
3131
3132
|
}
|
|
3132
3133
|
}
|
|
3133
3134
|
`}
|
|
3134
|
-
`,
|
|
3135
|
+
`,Gt=({date:e,description:n,title:i})=>{const o=a.nt();return t.jsxs(uo,{className:"timeline-card",children:[t.jsx(j,{color:o.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:e}),t.jsx(j,{color:o.palette.gray[800],fontWeight:"bold",lineSpacing:1.5,mb:.5,size:"md",textAlign:"center",children:i}),t.jsx("div",{children:n.map((r,s)=>{const l=`${r}#${s}`;return t.jsx(j,{size:"sm",textAlign:"center",wordBreak:"break-word",children:r},l)})})]})},fo=({items:e})=>t.jsx(xo,{children:e.map((n,i)=>t.jsx(Gt,{date:n.date,description:n.description,title:n.title},`${n.title}-${i}`))}),ho=a.dt.div`
|
|
3135
3136
|
${({theme:e})=>`
|
|
3136
3137
|
align-items: center;
|
|
3137
3138
|
display: flex;
|
|
@@ -3161,7 +3162,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
3161
3162
|
width: 320px;
|
|
3162
3163
|
}
|
|
3163
3164
|
`}
|
|
3164
|
-
`,
|
|
3165
|
+
`,bo=a.dt.button`
|
|
3165
3166
|
${({theme:e})=>`
|
|
3166
3167
|
align-items: center;
|
|
3167
3168
|
background: linear-gradient(
|
|
@@ -3190,7 +3191,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
3190
3191
|
color: ${e.palette.white};
|
|
3191
3192
|
}
|
|
3192
3193
|
`}
|
|
3193
|
-
`,$o=({defaultSelection:e,options:n,handleClick:i})=>{const[o,r]=p.useState(e??n[0]),s=p.useCallback(l=>()=>{r(l),i(l)},[i]);return t.jsx(
|
|
3194
|
+
`,$o=({defaultSelection:e,options:n,handleClick:i})=>{const[o,r]=p.useState(e??n[0]),s=p.useCallback(l=>()=>{r(l),i(l)},[i]);return t.jsx(ho,{children:n.map((l,c)=>t.jsx(bo,{className:`${l.includes(o)&&"selected"}`,onClick:s(l),children:t.jsx(j,{color:"inherit",fontWeight:"bold",size:"md",sizeSm:"sm",textAlign:"center",children:l})},`${l}-${c}`))})},yo={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:""},mo=({run:e,steps:n,onFinish:i})=>{const[o,r]=p.useState(e),[s,l]=p.useState(0),c=p.useCallback(d=>{const{action:g,index:u,status:x,type:f}=d;[a.EVENTS.STEP_AFTER,a.EVENTS.TARGET_NOT_FOUND].includes(f)?l(u+(g===a.ACTIONS.PREV?-1:1)):([a.STATUS.FINISHED,a.STATUS.SKIPPED].includes(x)||g==="close")&&(r(!1),a.lodashExports.isUndefined(i)||i())},[i]);return t.jsx(a.components_default,{callback:c,continuous:!0,disableOverlayClose:!0,disableScrollParentFix:!0,run:o,spotlightClicks:!0,stepIndex:s,steps:n,styles:{buttonNext:{display:s===n.length-1?"none":"block"},options:{zIndex:9999}}})},wo=a.dt.form`
|
|
3194
3195
|
${({theme:e})=>`
|
|
3195
3196
|
align-items: center;
|
|
3196
3197
|
background: ${e.palette.gray[50]};
|
|
@@ -3218,7 +3219,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
3218
3219
|
width: 320px;
|
|
3219
3220
|
}
|
|
3220
3221
|
`}
|
|
3221
|
-
`,
|
|
3222
|
+
`,jo=a.dt.div`
|
|
3222
3223
|
align-items: flex-start;
|
|
3223
3224
|
align-self: stretch;
|
|
3224
3225
|
display: flex;
|
|
@@ -3232,7 +3233,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
3232
3233
|
text-align: center;
|
|
3233
3234
|
}
|
|
3234
3235
|
}
|
|
3235
|
-
`,
|
|
3236
|
+
`,ko=a.dt.div`
|
|
3236
3237
|
${({theme:e})=>`
|
|
3237
3238
|
align-items: flex-start;
|
|
3238
3239
|
align-self: stretch;
|
|
@@ -3253,4 +3254,4 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
3253
3254
|
flex-direction: column;
|
|
3254
3255
|
}
|
|
3255
3256
|
`}
|
|
3256
|
-
`,
|
|
3257
|
+
`,Co=({children:e,name:n,onSubmit:i,submitDisabled:o,submitLabel:r="Submit"})=>t.jsx(wo,{"aria-label":n,name:n,onSubmit:i,children:t.jsxs(jo,{children:[e,t.jsx(R,{disabled:o,type:"submit",children:r})]})});exports.Accordion=mn;exports.AccordionContent=tt;exports.ActionButton=Ne;exports.Alert=Tn;exports.BaseButtonComponent=Pe;exports.BaseComponent=te;exports.BaseSpanComponent=Qe;exports.BaseTextComponent=We;exports.Button=R;exports.Button$1=me;exports.ButtonToolbarCenter=Nr;exports.ButtonToolbarRow=Er;exports.ButtonToolbarStartRow=Rr;exports.Calendar=lt;exports.Calendar$1=ut;exports.Calendar$2=xt;exports.CalendarCell=st;exports.CalendarGrid=Ce;exports.CardHeader=ke;exports.CardWithImage=Mn;exports.CardWithInput=ji;exports.CardWithOptions=Ci;exports.CardWithSelector=Ti;exports.CardWithSwitch=Ei;exports.Carousel=Mi;exports.CategoryTag=Ee;exports.Checkbox=Be;exports.Code=Oi;exports.CodeSnippet=Ai;exports.Col=Fr;exports.ColumnsModal=la;exports.ComboBox=Hn;exports.Container=b;exports.ContentCard=Nt;exports.ContentCardCarousel=Qi;exports.CustomThemeProvider=gn;exports.DateField=dt;exports.DateSelector=re;exports.Description=Ot;exports.Dialog=Se;exports.Divider=ee;exports.Editable=si;exports.EmptyButton=De;exports.EmptyState=ir;exports.EventDate=Tt;exports.FilePreview=rt;exports.FixedTabs=go;exports.Form=ar;exports.FormItem=ko;exports.Gap=Wr;exports.GridContainer=sr;exports.GroupSelector=gr;exports.Header=ve;exports.Header$1=St;exports.Heading=L;exports.Icon=C;exports.IconButton=A;exports.IndicatorCard=ur;exports.InfoSidebar=mr;exports.Input=ft;exports.InputDate=gt;exports.InputDateRange=ii;exports.InputDateTime=oi;exports.InputFile=pi;exports.InputNumber=ht;exports.InputNumberRange=xi;exports.InputTags=ui;exports.InteractiveCard=kr;exports.InteractiveIcon=Pt;exports.ItemList=Wt;exports.ItemSearching=$e;exports.Label=Le;exports.LanguageSelector=Tr;exports.Link=K;exports.ListItem=_e;exports.ListItemsWrapper=Lt;exports.LittleFlag=Or;exports.Loading=qr;exports.Logo=ta;exports.LogoCarousel=Qr;exports.MemoizedImage=H;exports.Menu=na;exports.MenuItem=Ht;exports.MessageBanner=aa;exports.Modal=It;exports.ModalConfirm=zt;exports.ModalFooter=vt;exports.MultipleSelection=Mt;exports.Notification=ga;exports.NotificationSign=Et;exports.NumberField=je;exports.NumberInput=fa;exports.OAuthSelector=ba;exports.Option=at;exports.OptionBoxContainer=Ae;exports.OptionContainer=Fe;exports.OptionContainer$1=Rt;exports.OutlineContainer=O;exports.PhoneInput=mi;exports.PlanCard=ma;exports.PopUp=wa;exports.Popover=xe;exports.PremiumFeature=_t;exports.PriorityScore=ka;exports.Progress=Ra;exports.ProgressBar=Ia;exports.RadioButton=wt;exports.RecommendedTag=At;exports.Row=Mr;exports.ScrollButtons=Re;exports.ScrollUpButton=Da;exports.Search=Oe;exports.SearchBar=Oa;exports.SeverityBadge=Ha;exports.SeverityOverview=Ga;exports.SeverityOverviewBadge=ie;exports.ShowOnHover=Ya;exports.SlideOutMenu=qa;exports.Slider=to;exports.SortableList=Bt;exports.Span=ye;exports.StepLapse=so;exports.Tab=Dt;exports.TableButton=po;exports.Tabs=Ft;exports.Tag=q;exports.Text=j;exports.TextArea=wi;exports.Thumb=Vt;exports.TimeField=pt;exports.TimeLine=fo;exports.TimeLineCard=Gt;exports.Toggle=jt;exports.ToggleButton=$o;exports.Tooltip=U;exports.Tour=mo;exports.WebForm=Co;exports.baseStep=yo;exports.getStyledConfig=ue;exports.hiddenProps=Je;exports.icons=dn;exports.setBorder=ce;exports.setDisplay=de;exports.setInteraction=ge;exports.setMargin=se;exports.setPadding=oe;exports.setPosition=le;exports.setText=pe;exports.theme=k;exports.uniqueIcons=pn;exports.useCarousel=bt;exports.useClickOutside=X;exports.useCloudinaryImage=$t;exports.useConfirmDialog=qi;exports.useDebouncedCallback=yt;exports.useModal=mt;exports.useSearch=vi;exports.variantBuilder=G;
|