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