@fluidattacks/design 3.7.10-pr-03 → 3.7.10-pr-05
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/@core/index.js +1 -1
- package/dist/components/accordion/accordion-content/index.js +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/card/card-header/index.js +1 -1
- package/dist/components/card/card-with-image/index.js +1 -1
- package/dist/components/card/card-with-input/index.js +1 -1
- package/dist/components/card/card-with-options/index.js +1 -1
- package/dist/components/card/card-with-selector/index.js +1 -1
- package/dist/components/card/card-with-switch/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/cloud-image/index.js +1 -1
- package/dist/components/code-snippet/index.js +1 -1
- package/dist/components/code-snippet/location-code/index.js +1 -1
- package/dist/components/colors/index.js +1 -1
- package/dist/components/confirm-dialog/index.js +1 -1
- package/dist/components/container/index.js +1 -1
- package/dist/components/content-card/category-tag/index.js +1 -1
- package/dist/components/content-card/event-date/index.js +1 -1
- package/dist/components/content-card/index.js +1 -1
- package/dist/components/content-card-carousel/index.js +1 -1
- package/dist/components/content-card-carousel/scroll-buttons/index.js +1 -1
- package/dist/components/divider/index.js +1 -1
- package/dist/components/empty-state/empty-button/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/file-preview/index.js +1 -1
- package/dist/components/form/index.js +1 -1
- package/dist/components/grid-container/index.js +1 -1
- package/dist/components/group-selector/index.js +1 -1
- package/dist/components/group-selector/option-container/index.js +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/indicator-card/index.js +1 -1
- package/dist/components/info-sidebar/index.js +1 -1
- package/dist/components/inputs/fields/combobox/index.js +1 -1
- package/dist/components/inputs/fields/combobox/option/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date/index.js +1 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-range/index.js +1 -1
- package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-time/index.js +1 -1
- package/dist/components/inputs/fields/editable/index.js +1 -1
- package/dist/components/inputs/fields/input/index.js +1 -1
- package/dist/components/inputs/fields/input-file/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/index.js +1 -1
- package/dist/components/inputs/fields/number/index.js +1 -1
- package/dist/components/inputs/fields/number-range/index.js +1 -1
- package/dist/components/inputs/fields/phone/index.js +1 -1
- package/dist/components/inputs/fields/text-area/index.js +1 -1
- package/dist/components/inputs/index.js +1 -1
- package/dist/components/inputs/label/index.js +1 -1
- package/dist/components/inputs/outline-container/index.js +1 -1
- package/dist/components/inputs/utils/action-button/index.js +1 -1
- package/dist/components/inputs/utils/calendar-button/index.js +1 -1
- package/dist/components/inputs/utils/date-selector/index.js +1 -1
- package/dist/components/inputs/utils/date-time-field/index.js +1 -1
- package/dist/components/inputs/utils/dialog/index.js +1 -1
- package/dist/components/inputs/utils/number-field/index.js +1 -1
- package/dist/components/inputs/utils/popover/index.js +1 -1
- package/dist/components/interactive-card/icon/index.js +1 -1
- package/dist/components/interactive-card/index.js +1 -1
- package/dist/components/language-selector/index.js +1 -1
- package/dist/components/language-selector/item-list/index.js +1 -1
- package/dist/components/layout/categories/buttons/index.js +1 -1
- package/dist/components/layout/categories/column/index.js +1 -1
- package/dist/components/layout/categories/gap/index.js +1 -1
- package/dist/components/layout/categories/row/index.js +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list-item/index.js +1 -1
- package/dist/components/little-flag/index.js +1 -1
- package/dist/components/loading/index.js +1 -1
- package/dist/components/logo/index.js +1 -1
- package/dist/components/logo-carousel/index.js +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/message-banner/index.js +1 -1
- package/dist/components/modal/columns-modal/index.js +1 -1
- package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
- package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
- package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
- package/dist/components/modal/filters-modal/options-selector/index.js +1 -1
- package/dist/components/modal/filters-modal/single-column-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/two-columns-filters/index.js +1 -1
- package/dist/components/modal/footer/index.js +1 -1
- package/dist/components/modal/header/index.js +1 -1
- package/dist/components/modal/index.js +1 -1
- package/dist/components/modal/modal-confirm/index.js +1 -1
- package/dist/components/notification/index.js +1 -1
- package/dist/components/notification-sign/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/oauth-selector/index.js +1 -1
- package/dist/components/oauth-selector/option-container/index.js +1 -1
- package/dist/components/plan-card/index.js +1 -1
- package/dist/components/plan-card/recommended-tag/index.js +1 -1
- package/dist/components/pop-up/description/index.js +1 -1
- package/dist/components/pop-up/index.js +1 -1
- package/dist/components/premium-feature/index.js +1 -1
- package/dist/components/priority-score/index.js +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress-bar/index.js +1 -1
- package/dist/components/radio-button/index.js +1 -1
- package/dist/components/scroll-button/index.js +1 -1
- package/dist/components/search/index.js +1 -1
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-bar/item-searching/index.js +1 -1
- package/dist/components/severity-badge/index.js +1 -1
- package/dist/components/severity-overview/badge/index.js +1 -1
- package/dist/components/severity-overview/index.js +1 -1
- package/dist/components/show-on-hover/index.js +1 -1
- package/dist/components/slide-out-menu/index.js +1 -1
- package/dist/components/slide-out-menu/menu-item/index.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/thumb/index.js +1 -1
- package/dist/components/step-lapse/index.js +1 -1
- package/dist/components/table-button/index.js +1 -1
- package/dist/components/tabs/fixed-tabs/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/tab/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/timeline/card/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toggle/index.js +1 -1
- package/dist/components/toggle-buttons/index.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tour/index.js +1 -1
- package/dist/components/typography/heading/index.js +1 -1
- package/dist/components/typography/index.js +1 -1
- package/dist/components/typography/span/index.js +1 -1
- package/dist/components/typography/text/index.js +1 -1
- package/dist/components/web-form/index.js +1 -1
- package/dist/{components-B7N1cqMm.js → components-BB0Bhkcx.js} +30 -26
- package/dist/{components-vWPwdxDl.mjs → components-D8r77Iwy.mjs} +147 -150
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
`},jn=e=>e.includes("x")?"overflow-x: auto;":"",kn=e=>e.includes("y")?"overflow-y: auto;":"",ge=e=>{const n=e.scroll?`
|
|
17
17
|
${jn(e.scroll)}
|
|
18
18
|
${kn(e.scroll)}
|
|
19
|
-
`:"",i=I("visibility",e.visibility),a=I("display",e.display),r=I("height",e.height),s=I("width",e.width),l=I("max-height",e.maxHeight),c=I("max-width",e.maxWidth),d=I("min-height",e.minHeight),p=I("min-width",e.minWidth),u=I("box-shadow",e.shadow?C.shadows[e.shadow]:void 0),x=I("gap",e.gap===void 0?void 0:C.spacing[e.gap]),f=I("background-color",e.bgColor),b=I("background",e.bgGradient),$=I("flex-direction",e.flexDirection),
|
|
19
|
+
`:"",i=I("visibility",e.visibility),a=I("display",e.display),r=I("height",e.height),s=I("width",e.width),l=I("max-height",e.maxHeight),c=I("max-width",e.maxWidth),d=I("min-height",e.minHeight),p=I("min-width",e.minWidth),u=I("box-shadow",e.shadow?C.shadows[e.shadow]:void 0),x=I("gap",e.gap===void 0?void 0:C.spacing[e.gap]),f=I("background-color",e.bgColor),b=I("background",e.bgGradient),$=I("flex-direction",e.flexDirection),w=I("flex-grow",e.flexGrow),y=I("justify-content",e.justify),m=I("justify-self",e.justifySelf),k=I("align-items",e.alignItems),S=I("align-self",e.alignSelf),z=I("flex-wrap",e.wrap);return`
|
|
20
20
|
${n}
|
|
21
21
|
${i}
|
|
22
22
|
${a}
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
${b}
|
|
32
32
|
${x}
|
|
33
33
|
${$}
|
|
34
|
-
${m}
|
|
35
|
-
${y}
|
|
36
34
|
${w}
|
|
35
|
+
${y}
|
|
36
|
+
${m}
|
|
37
37
|
${k}
|
|
38
38
|
${S}
|
|
39
39
|
${z}
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
|
|
177
177
|
${i===void 0?"":`&::after { content: "${i}"; }`}
|
|
178
178
|
`}
|
|
179
|
-
`,W=g.forwardRef(function({bgGradient:n,children:i,className:a,color:r,display:s,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:p,lineSpacingSm:u,size:x,sizeMd:f,sizeSm:b,textFill:$,wordBreak:
|
|
179
|
+
`,W=g.forwardRef(function({bgGradient:n,children:i,className:a,color:r,display:s,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:p,lineSpacingSm:u,size:x,sizeMd:f,sizeSm:b,textFill:$,wordBreak:w,...y},m){return t.jsx(vn,{$bgGradient:n,$color:r,$display:s,$fontFamily:l,$fontWeight:c,$letterSpacing:d,$lineSpacing:p,$lineSpacingSm:u,$size:x,$sizeMd:f,$sizeSm:b,$textFill:$,$wordBreak:w,className:a,ref:m,...y,children:i})}),je=g.forwardRef(function({children:n,color:i,content:a,display:r,fontFamily:s,fontWeight:l,letterSpacing:c,lineSpacing:d,lineSpacingSm:p,size:u,sizeMd:x,sizeSm:f,...b},$){return t.jsx(Sn,{$color:i,$content:a,$display:r,$fontFamily:s,$fontWeight:l,$letterSpacing:c,$lineSpacing:d,$lineSpacingSm:p,$size:u,$sizeMd:x,$sizeSm:f,ref:$,...b,children:n})}),j=g.forwardRef(function({bgGradient:n,children:i,className:a,color:r,display:s,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:p,lineSpacingSm:u,size:x,sizeMd:f,sizeSm:b,textFill:$,wordBreak:w,...y},m){return t.jsx(ot,{$bgGradient:n,$color:r,$display:s,$fontFamily:l,$fontWeight:c,$letterSpacing:d,$lineSpacing:p,$lineSpacingSm:u,$size:x,$sizeMd:f,$sizeSm:b,$textFill:$,$wordBreak:w,className:a,ref:m,...y,children:i})}),st=({item:e})=>t.jsxs(h,{display:"block",id:`panel-${e.title}`,padding:[.75,.75,.75,.75],children:[e.description?t.jsx(j,{mb:e.extraElement?.5:void 0,size:"sm",children:e.description}):void 0,e.extraElement?t.jsx(h,{children:e.extraElement}):void 0]}),zn={xl:"96px",lg:"64px",md:"32px",sm:"24px",xs:"16px",xxs:"12px",xxss:"10px"},In=o.dt(at)`
|
|
180
180
|
${({$clickable:e,$color:n="inherit",$disabled:i=!1,$hoverColor:a,$rotation:r,$size:s,$secondaryColor:l})=>{const c=a?"":"brightness(50%)",d=a??"";return`
|
|
181
181
|
color: ${n};
|
|
182
182
|
cursor: ${e?"pointer":"inherit"};
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
&:hover:not([disabled]) {
|
|
213
213
|
transform: scale(1.2);
|
|
214
214
|
}
|
|
215
|
-
`;const v=g.forwardRef(function({clickable:n,disabled:i,hoverColor:a,icon:r,iconClass:s="",iconColor:l,iconMask:c,iconSize:d,iconTransform:p,iconType:u="fa-solid",onClick:x,rotation:f,spanClass:b,secondaryColor:$,...
|
|
215
|
+
`;const v=g.forwardRef(function({clickable:n,disabled:i,hoverColor:a,icon:r,iconClass:s="",iconColor:l,iconMask:c,iconSize:d,iconTransform:p,iconType:u="fa-solid",onClick:x,rotation:f,spanClass:b,secondaryColor:$,...w},y){return t.jsx(In,{$clickable:n,$color:l,$disabled:i,$hoverColor:a,$rotation:f,$secondaryColor:$,$size:d,className:b,"data-testid":`${r}-icon`,onClick:x,ref:y,...w,children:t.jsx("i",{className:`${u} fa-${r} ${s}`,...c!==void 0?{"data-fa-mask":c}:{},...p!==void 0?{"data-fa-transform":p}:{}})},`${u}-${r}`)}),Tn=g.forwardRef(function({aligned:n="end",items:i,bgColor:a},r){const s=o.nt(),[l,c]=g.useState(!1),[d,p]=g.useState(-1),u=g.useCallback(x=>()=>{p(x),c(x===d?f=>!f:!0)},[d]);return t.jsx(h,{ref:r,children:i.map((x,f)=>{const b=f===d&&l;return t.jsxs(h,{bgColor:a??s.palette.white,children:[t.jsx(h,{"aria-controls":`panel-${x.title}`,"aria-expanded":l,"aria-label":x.title,as:"button",bgColor:a??s.palette.white,bgColorHover:s.palette.gray[100],borderBottom:b||f===i.length-1?"1px solid":void 0,borderColor:s.palette.gray[200],borderTop:"1px solid",cursor:"pointer",display:"flex",onClick:u(f),padding:[.75,.75,.75,.75],width:"100%",children:t.jsxs(h,{as:"summary",display:"flex",flexDirection:n==="end"?"row":"row-reverse",gap:.75,justify:"space-between",width:"100%",children:[t.jsx(j,{color:s.palette.gray[800],fontWeight:"bold",size:"sm",sizeSm:"sm",textAlign:"start",children:x.title}),t.jsx(v,{icon:b?"chevron-up":"chevron-down",iconColor:s.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]})}),b&&t.jsx(st,{item:x})]},x.title)})})}),Nn=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}=U(e=>({error:`
|
|
216
216
|
background: ${e.palette.error[50]};
|
|
217
217
|
border: 1px solid ${e.palette.error[500]};
|
|
218
218
|
color: ${e.palette.error[700]};
|
|
@@ -414,7 +414,7 @@
|
|
|
414
414
|
--rt-opacity: 1;
|
|
415
415
|
}
|
|
416
416
|
`}
|
|
417
|
-
`,Y=g.forwardRef(function({children:n,disabled:i=!1,display:a="inline-block",effect:r="solid",icon:s,iconColor:l,iconSize:c,id:d,maxWidth:p,nodeTip:u,place:x="bottom",tip:f="",title:b="",hide:$=f===""&&b===""&&u===void 0,...
|
|
417
|
+
`,Y=g.forwardRef(function({children:n,disabled:i=!1,display:a="inline-block",effect:r="solid",icon:s,iconColor:l,iconSize:c,id:d,maxWidth:p,nodeTip:u,place:x="bottom",tip:f="",title:b="",hide:$=f===""&&b===""&&u===void 0,...w},y){const m=o.nt(),[k,S]=g.useState(!1),z=g.useRef(null),N=g.useCallback(()=>{z.current!==null&&clearTimeout(z.current),z.current=setTimeout(()=>{S(!0)},100)},[]),T=g.useCallback(()=>{z.current!==null&&clearTimeout(z.current),z.current=setTimeout(()=>{S(!1)},100)},[]);return i?t.jsx(g.StrictMode,{children:n}):t.jsxs(Ln,{"data-tooltip-id":d,display:a,onMouseLeave:T,onMouseMove:N,ref:y,role:"tooltip",...w,children:[s?t.jsx(v,{clickable:!0,disabled:i,icon:s,iconColor:l,iconSize:c??"xxs",iconType:k?"fa-solid":"fa-light"}):n,te.createPortal(t.jsx(Wn,{$maxWidth:p,children:t.jsxs(o.M,{delayShow:500,float:r==="float"?!0:void 0,globalCloseEvents:{resize:!0},hidden:$||!k,id:d,middlewares:[o.flip({fallbackAxisSideDirection:"start"}),o.offset({mainAxis:10})],noArrow:r==="float",place:x,children:[o.lodashExports.isEmpty(b)?void 0:t.jsx(j,{color:m.palette.white,fontWeight:"bold",lineSpacing:1.5,size:"xs",textAlign:"start",wordWrap:"break-word",children:b}),o.lodashExports.isEmpty(f)?void 0:t.jsx(j,{color:m.palette.gray[100],lineSpacing:1.5,size:"xs",textAlign:"start",wordWrap:"break-word",children:f}),o.lodashExports.isEmpty(u)?void 0:u]})}),document.getElementById("root")??document.body)]})}),O=g.forwardRef(function({borderRadius:n,disabled:i,icon:a,iconColor:r,iconSize:s="xxs",iconTransform:l,iconType:c,id:d,justify:p="center",onClick:u,px:x,py:f,type:b="button",tooltip:$,tooltipPlace:w,value:y,variant:m="primary",...k},S){const z=t.jsx(Pn,{$borderRadius:n,$px:x,$py:f,$variant:m,"aria-disabled":i,"aria-label":d,borderRadius:n,disabled:i,id:d,justify:p,onClick:u,ref:S,type:b,value:y,...k,children:t.jsx(v,{clickable:!1,icon:a,iconColor:r,iconSize:s,iconTransform:l,iconType:c})}),T=(b+(m??"")+(d??a)).replace(/ /u,"_");return $===void 0?z:t.jsx(Y,{id:`${T}-tooltip`,place:w,tip:$,children:z})}),Bn=g.forwardRef(function({autoHide:n=!1,children:i,closable:a=!1,onTimeOut:r,show:s=!0,time:l=8,variant:c="error",id:d,...p},u){const[x,f]=g.useState(s),b=g.useCallback(()=>{f(!1)},[]);return g.useEffect(()=>{const $=setTimeout(()=>{r==null||r(!0),n&&b()},l*1e3);return()=>{clearTimeout($)}},[n,b,l,r]),g.useEffect(()=>{f(s)},[s,f]),t.jsx(h,{display:x?"block":"none",ref:u,role:"alert",...p,children:t.jsxs(En,{$variant:c,id:d,children:[t.jsx(v,{clickable:!1,icon:Nn(c),iconSize:"xs",iconType:"fa-light"}),t.jsx(Dn,{children:i}),a?t.jsx(O,{height:"fit-content",icon:"close",iconSize:"xs",iconType:"fa-light",onClick:b,px:.125,py:.125,variant:"ghost"}):void 0]})})}),{getVariant:Mn}=U(e=>({default:`
|
|
418
418
|
background-color: ${e.palette.gray[200]};
|
|
419
419
|
color: ${e.palette.gray[800]};
|
|
420
420
|
`,error:`
|
|
@@ -552,7 +552,7 @@
|
|
|
552
552
|
${ct}
|
|
553
553
|
`,_n=o.dt(De.Link)`
|
|
554
554
|
${ct}
|
|
555
|
-
`,Z=({children:e,color:n,download:i,href:a,iconPosition:r="right",onClick:s,target:l,variant:c="lowRelevance"})=>{const d=a.startsWith("https://"),p=t.jsx(v,{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(Hn,{$color:n,$variant:c,download:i,href:a,onClick:s,rel:"nofollow noopener noreferrer",target:l??"_blank",children:[r==="left"?p:void 0,e,r==="right"?p:void 0]}):t.jsxs(_n,{$variant:c,download:i,onClick:s,rel:"nofollow noopener noreferrer",target:l,to:a,children:[l!==void 0&&r==="left"?p:void 0,e,l!==void 0&&r==="right"?p:void 0]})},J=({disabled:e,icon:n,iconColor:i="inherit",iconType:a="fa-light",id:r="close-tag",filterValues:s="",fontSize:l,href:c,linkLabel:d,onClose:p,priority:u="default",tagTitle:x="",tagLabel:f,variant:b="default"})=>{const $=f.length>25&&o.lodashExports.isEmpty(x+s),
|
|
555
|
+
`,Z=({children:e,color:n,download:i,href:a,iconPosition:r="right",onClick:s,target:l,variant:c="lowRelevance"})=>{const d=a.startsWith("https://"),p=t.jsx(v,{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(Hn,{$color:n,$variant:c,download:i,href:a,onClick:s,rel:"nofollow noopener noreferrer",target:l??"_blank",children:[r==="left"?p:void 0,e,r==="right"?p:void 0]}):t.jsxs(_n,{$variant:c,download:i,onClick:s,rel:"nofollow noopener noreferrer",target:l,to:a,children:[l!==void 0&&r==="left"?p:void 0,e,l!==void 0&&r==="right"?p:void 0]})},J=({disabled:e,icon:n,iconColor:i="inherit",iconType:a="fa-light",id:r="close-tag",filterValues:s="",fontSize:l,href:c,linkLabel:d,onClose:p,priority:u="default",tagTitle:x="",tagLabel:f,variant:b="default"})=>{const $=f.length>25&&o.lodashExports.isEmpty(x+s),w=`${f.slice(0,25)}...`;return t.jsxs(je,{className:"gap-0.5",display:c===void 0?"initial":"flex",size:"sm",children:[t.jsxs(On,{$fontSize:l,$variant:b,className:u,children:[n&&t.jsx(v,{icon:n,iconColor:i,iconSize:"xxs",iconType:a}),t.jsxs("span",{children:[t.jsx("strong",{children:x}),t.jsx("span",{children:$?w:f}),t.jsx("strong",{children:s})]}),p?t.jsx(O,{disabled:e,icon:"xmark",iconSize:"xxs",iconType:"fa-light",id:r,onClick:p,px:.125,py:.125,variant:"ghost"}):void 0]}),c===void 0?void 0:t.jsx(Z,{href:c,children:d})]})},Vn=(e,n=!0)=>{const i=window.open(e,n?void 0:"_self","noopener,noreferrer,");o.lodashExports.isObject(i)&&(i.opener=null)},E=g.forwardRef(function({children:n,disabled:i=!1,external:a=!1,href:r,id:s,icon:l,name:c,onClick:d,showArrow:p=!1,tag:u,type:x="button",tooltip:f,tooltipPlace:b="bottom",underline:$=!1,value:w,variant:y="primary",...m},k){const S=f!==void 0,z=`${s}-tooltip`,N=g.useCallback(()=>{r&&Vn(r,a)},[a,r]);return t.jsx(Y,{disabled:!S,id:z,place:b,tip:f,children:t.jsxs(lt,{$variant:y,"aria-disabled":i,className:$?"underline":void 0,disabled:i,id:s,name:c,onClick:y==="link"?N:d,ref:k,type:x,value:w,...S?{"data-tooltip-id":z}:{},...m,children:[l!==void 0&&t.jsx(v,{icon:l,iconSize:"xs",iconType:"fa-light"}),n,(p||y==="link")&&t.jsx(v,{icon:"arrow-right",iconSize:"xs",iconType:"fa-light"}),u===void 0?null:t.jsx(J,{tagLabel:u,variant:"inactive"})]})})}),ze=({authorEmail:e,date:n,description:i,descriptionColor:a,id:r,title:s,titleColor:l,textAlign:c,textSpacing:d=0,tooltip:p})=>{const u=o.nt();return t.jsxs(h,{width:"100%",children:[typeof s=="string"?t.jsx(j,{color:l??u.palette.gray[800],fontWeight:"bold",mb:d,size:"sm",textAlign:c,wordBreak:"break-word",children:s}):s,t.jsxs(h,{alignItems:"start",display:"flex",flexDirection:"column",gap:.25,children:[i&&t.jsx(j,{color:a??u.palette.gray[800],fontWeight:i===void 0?"bold":"regular",size:"sm",textAlign:c,wordBreak:"break-word",children:i}),n&&t.jsx(j,{color:u.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`Date: ${n.split(" ")[0]}`}),e&&t.jsx(j,{color:u.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`$Author: ${e}`}),p&&t.jsx(Y,{icon:"circle-info",id:r,tip:p})]})]})},Xe=o.dt(h).attrs(({...e})=>({display:"inline-block",position:"relative",...e}))`
|
|
556
556
|
& img {
|
|
557
557
|
display: block;
|
|
558
558
|
}
|
|
@@ -567,7 +567,7 @@
|
|
|
567
567
|
pointer-events: none;
|
|
568
568
|
${({$opacity:e=0})=>`background-color: rgba(0, 0, 0, ${e});`}
|
|
569
569
|
}
|
|
570
|
-
`,Gn=e=>{if(o._.isNil(e))return"";const n=e.split(".");return(n.length>1?o._.last(n):"").toLowerCase()},Un=(e,n)=>o._.isUndefined(n)?!1:o._.includes(e,Gn(n)),dt=({alt:e,fileType:n,width:i="100%",opacity:a=0,src:r,height:s="auto"})=>n==="video"||Un(["webm"],r)?t.jsx(Xe,{$opacity:a,children:t.jsxs("video",{controls:!0,height:s,muted:!0,width:i,children:[t.jsx("source",{src:r,type:"video/webm"}),t.jsx(Z,{href:r,iconPosition:"hidden",children:r})]})}):t.jsx(Xe,{$opacity:a,children:t.jsx("img",{alt:e,height:s,src:r,width:i})}),Yn=({alt:e,authorEmail:n,date:i,description:a,src:r,children:s,isEditing:l,onClick:c,title:d,hideDescription:p=!1,headerType:u="image",showMaximize:x=!0})=>{const f=o.nt(),[b,$]=g.useState(!1),
|
|
570
|
+
`,Gn=e=>{if(o._.isNil(e))return"";const n=e.split(".");return(n.length>1?o._.last(n):"").toLowerCase()},Un=(e,n)=>o._.isUndefined(n)?!1:o._.includes(e,Gn(n)),dt=({alt:e,fileType:n,width:i="100%",opacity:a=0,src:r,height:s="auto"})=>n==="video"||Un(["webm"],r)?t.jsx(Xe,{$opacity:a,children:t.jsxs("video",{controls:!0,height:s,muted:!0,width:i,children:[t.jsx("source",{src:r,type:"video/webm"}),t.jsx(Z,{href:r,iconPosition:"hidden",children:r})]})}):t.jsx(Xe,{$opacity:a,children:t.jsx("img",{alt:e,height:s,src:r,width:i})}),Yn=({alt:e,authorEmail:n,date:i,description:a,src:r,children:s,isEditing:l,onClick:c,title:d,hideDescription:p=!1,headerType:u="image",showMaximize:x=!0})=>{const f=o.nt(),[b,$]=g.useState(!1),w=g.useCallback(()=>{$(!0)},[]),y=g.useCallback(()=>{$(!1)},[]);return t.jsxs(h,{bgColor:"transparent",border:"1px solid transparent",borderColorHover:"black",borderRadius:f.spacing[.25],display:"flex",flexDirection:"column",gap:1,onHover:w,onLeave:y,padding:[.5,.5,.5,.5],width:"100%",children:[t.jsx(h,{cursor:l?"unset":"pointer",display:"inline-flex",justify:"center",onClick:c,position:"relative",width:"100%",children:s===void 0?t.jsxs(g.Fragment,{children:[t.jsx(dt,{alt:e,fileType:u,height:"147px",opacity:b?.3:0,src:r,width:"100%"}),x?t.jsx(h,{bottom:"10px",position:"absolute",right:"10px",children:t.jsx(O,{color:"white",icon:"arrows-maximize",iconSize:"xxs",iconType:"fa-light",variant:"secondary"})}):void 0]}):s}),p?null:t.jsx(ze,{authorEmail:n,date:i,description:a,descriptionColor:f.palette.gray[600],id:`${e}-card-header`,title:d})]})},Kn=o.dt.div`
|
|
571
571
|
${({theme:e,$align:n="center",$minWidth:i="auto",$minHeight:a="auto"})=>`
|
|
572
572
|
display: flex;
|
|
573
573
|
background-color: ${e.palette.white};
|
|
@@ -773,7 +773,7 @@
|
|
|
773
773
|
border: 1px solid ${e.palette.gray[600]};
|
|
774
774
|
}
|
|
775
775
|
`}
|
|
776
|
-
`,H=({children:e,error:n,helpLink:i,helpLinkText:a="Link here",helpText:r,htmlFor:s,label:l,maxLength:c,required:d,tooltip:p,value:u,weight:x})=>{const f=o.nt(),b=u?u.length:0;return t.jsxs(Zn,{children:[l===void 0?void 0:t.jsx(He,{htmlFor:s,label:l,required:d,tooltip:p,weight:x}),e,n||c?t.jsxs(h,{display:"flex",justify:n===void 0?"end":"space-between",width:"100%",children:[n&&t.jsx(j,{className:"error-msg",color:f.palette.error[500],display:"block",lineSpacing:1,size:"sm",children:n}),c&&t.jsx(J,{priority:"low",tagLabel:`${b}/${c}`,variant:"error"})]}):void 0,r||i?t.jsxs(h,{alignItems:"center",display:"flex",gap:.25,width:"100%",children:[r&&t.jsxs(t.Fragment,{children:[t.jsx(v,{icon:"circle-info",iconColor:f.palette.gray[400],iconSize:"xxs",iconType:"fa-light"}),t.jsx(j,{color:f.palette.gray[400],display:"inline-block",size:"sm",children:r})]}),i&&t.jsx(Z,{href:i,children:a})]}):void 0]})},he=({className:e,children:n,isFilter:i=!1,popoverRef:a,state:r,triggerRef:s,...l})=>{var x;const c=g.useRef(null),d=(x=s==null?void 0:s.current)==null?void 0:x.getBoundingClientRect(),{popoverProps:p}=o.$f2f8a6077418541e$export$542a6fd13ac93354({...l,popoverRef:a??c,triggerRef:s,isNonModal:a?!0:void 0},r),u=g.useCallback(f=>{f.preventDefault()},[]);return t.jsx(o.$337b884510726a0d$export$c6fdb837b070b4ff,{children:t.jsx("div",{...p,className:e,onPointerDown:i?u:void 0,ref:a??c,style:{...p.style,...e==="dropdown"?{display:"flex",justifyContent:"center",width:d==null?void 0:d.width}:{}},children:n})})},Jn=({disabled:e=!1,helpLink:n,helpLinkText:i,helpText:a,label:r,loadingItems:s,name:l,items:c,onBlur:d,onChange:p,placeholder:u,required:x,tooltip:f,weight:b})=>{var qe;const $=o.nt(),{control:
|
|
776
|
+
`,H=({children:e,error:n,helpLink:i,helpLinkText:a="Link here",helpText:r,htmlFor:s,label:l,maxLength:c,required:d,tooltip:p,value:u,weight:x})=>{const f=o.nt(),b=u?u.length:0;return t.jsxs(Zn,{children:[l===void 0?void 0:t.jsx(He,{htmlFor:s,label:l,required:d,tooltip:p,weight:x}),e,n||c?t.jsxs(h,{display:"flex",justify:n===void 0?"end":"space-between",width:"100%",children:[n&&t.jsx(j,{className:"error-msg",color:f.palette.error[500],display:"block",lineSpacing:1,size:"sm",children:n}),c&&t.jsx(J,{priority:"low",tagLabel:`${b}/${c}`,variant:"error"})]}):void 0,r||i?t.jsxs(h,{alignItems:"center",display:"flex",gap:.25,width:"100%",children:[r&&t.jsxs(t.Fragment,{children:[t.jsx(v,{icon:"circle-info",iconColor:f.palette.gray[400],iconSize:"xxs",iconType:"fa-light"}),t.jsx(j,{color:f.palette.gray[400],display:"inline-block",size:"sm",children:r})]}),i&&t.jsx(Z,{href:i,children:a})]}):void 0]})},he=({className:e,children:n,isFilter:i=!1,popoverRef:a,state:r,triggerRef:s,...l})=>{var x;const c=g.useRef(null),d=(x=s==null?void 0:s.current)==null?void 0:x.getBoundingClientRect(),{popoverProps:p}=o.$f2f8a6077418541e$export$542a6fd13ac93354({...l,popoverRef:a??c,triggerRef:s,isNonModal:a?!0:void 0},r),u=g.useCallback(f=>{f.preventDefault()},[]);return t.jsx(o.$337b884510726a0d$export$c6fdb837b070b4ff,{children:t.jsx("div",{...p,className:e,onPointerDown:i?u:void 0,ref:a??c,style:{...p.style,...e==="dropdown"?{display:"flex",justifyContent:"center",width:d==null?void 0:d.width}:{}},children:n})})},Jn=({disabled:e=!1,helpLink:n,helpLinkText:i,helpText:a,label:r,loadingItems:s,name:l,items:c,onBlur:d,onChange:p,placeholder:u,required:x,tooltip:f,weight:b})=>{var qe;const $=o.nt(),{control:w}=o.useFormContext(),{field:{value:y,onBlur:m,onChange:k,...S},fieldState:{error:z}}=o.useController({name:l,control:w,rules:{required:x}}),[N,T]=g.useState(((qe=c.find(F=>F.value===y))==null?void 0:qe.name)??""),[R,P]=g.useState(y),[A,D]=g.useState(c),[L,M]=g.useState(!1),{contains:B}=o.$bb77f239b46e8c72$export$3274cf84b703fff({sensitivity:"base"}),V=g.useRef(null),K=g.useRef(null),ie=g.useRef(null),Ue=g.useRef(null),Ye=g.useRef(null),Zt=g.useMemo(()=>c.map(F=>B(F.name,N)||L?t.jsx(o.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,{children:F.name},F.value):null),[B,N,c,L]),Jt=g.useCallback(F=>{T(F),F===""?M(!0):(P(_=>{const ye=F===""?"":_;return k(ye),p&&p(F),ye}),D(c.filter(_=>B(_.name,F))))},[B,c,k,p]),Qt=g.useCallback(F=>{var _;T(((_=c.find(ye=>ye.value===F))==null?void 0:_.name)??""),P(F?String(F):""),k(F),p&&p(F?String(F):""),D(c)},[c,k,p]),Ke=g.useCallback(F=>{F.key==="Enter"&&F.preventDefault(),M(!1)},[]),en=g.useCallback(()=>{d&&d(),m()},[m,d]),q=o.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({allowsEmptyCollection:!0,autoFocus:!1,inputValue:N,items:A,menuTrigger:"focus",shouldCloseOnBlur:!0,selectedKey:R,onBlur:en,onInputChange:Jt,onKeyDown:Ke,onKeyUp:()=>{M(!0)},onOpenChange(F,_){M(F&&(_==="manual"||_==="focus"))},onSelectionChange:Qt,children:Zt}),{buttonProps:tn,inputProps:nn,listBoxProps:rn}=o.$c350ade66beef0af$export$8c18d1b4f7232bbf({inputValue:N,buttonRef:K,id:l,inputRef:V,label:r,listBoxRef:ie,name:l,placeholder:u,popoverRef:Ye},q),{listBoxProps:an}=o.$c132121280ec012d$export$50eacbbf140a3141(rn,q,ie),{buttonProps:on}=o.$701a24aa0da5b062$export$ea18c227d4417cc3(tn,K);return g.useEffect(()=>{var F;s===!1&&T(((F=c.find(_=>_.value===y))==null?void 0:F.name)??"")},[y,c,s]),t.jsxs(H,{error:z?z.message:void 0,helpLink:n,helpLinkText:i,helpText:a,htmlFor:l,label:r,required:x,tooltip:f,weight:b,children:[t.jsxs(X,{className:`${e?"disabled":""} ${z?"error":""}`,ref:Ue,children:[t.jsx("input",{...nn,...S,"aria-invalid":z?"true":"false","aria-label":l,disabled:e,onKeyDown:Ke,ref:V}),z?t.jsx(v,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:$.palette.error[500],iconSize:"xs"}):void 0,t.jsx(O,{...on,className:"action",icon:q.isOpen?"chevron-up":"chevron-down",iconColor:$.palette.gray[400],iconSize:"xxs",iconType:"fa-light",px:.125,py:.125,ref:K,type:"button",variant:"ghost"})]}),q.isOpen&&q.collection.size>0&&!e?t.jsx(he,{className:"dropdown",offset:4,placement:"bottom start",popoverRef:Ye,state:q,triggerRef:Ue,children:t.jsx(qn,{...an,ref:ie,children:[...q.collection].map(F=>t.jsx(pt,{item:F,state:q},F.key))})}):null]})},Qn=o.dt.div`
|
|
777
777
|
${({theme:e})=>`
|
|
778
778
|
align-items: center;
|
|
779
779
|
color: ${e.palette.gray[800]};
|
|
@@ -919,6 +919,10 @@
|
|
|
919
919
|
${e}
|
|
920
920
|
`};
|
|
921
921
|
|
|
922
|
+
&:disabled {
|
|
923
|
+
cursor: not-allowed;
|
|
924
|
+
}
|
|
925
|
+
|
|
922
926
|
&:hover:not(:disabled) {
|
|
923
927
|
background-color: ${({theme:e})=>e.palette.gray[100]};
|
|
924
928
|
cursor: pointer;
|
|
@@ -1001,7 +1005,7 @@
|
|
|
1001
1005
|
font-weight: ${e.typography.weight.bold};
|
|
1002
1006
|
}
|
|
1003
1007
|
`}
|
|
1004
|
-
`,ke=({disabled:e=!1,icon:n,props:i})=>{const a=g.useRef(null),{buttonProps:r}=o.$701a24aa0da5b062$export$ea18c227d4417cc3(i,a);return t.jsx(oi,{...r,$disabled:e,$focus:!!r["aria-expanded"],$header:n==="calendar"||n==="calendar-clock",disabled:e,ref:a,type:"button",children:t.jsx(v,{icon:n,iconColor:C.palette.gray[e?400:700],iconSize:"xs",iconType:"fa-light"})})},Te=({state:e,prevButtonProps:n,nextButtonProps:i,title:a})=>{const r=e.focusedDate,s=g.useCallback(()=>{e.setFocusedDate(r.add({years:1}))},[r,e]),l=g.useCallback(()=>{e.setFocusedDate(r.subtract({years:1}))},[r,e]);return t.jsxs("div",{className:"header flex items-start",children:[t.jsx(ke,{icon:"chevron-left",props:n}),t.jsxs(Qn,{children:[a,t.jsxs(ei,{children:[t.jsx(Je,{"aria-label":"top",onClick:s,children:t.jsx(v,{icon:"caret-up",iconClass:"fa-sharp",iconSize:"xxss"})}),t.jsx(Je,{"aria-label":"bottom",onClick:l,children:t.jsx(v,{icon:"caret-down",iconClass:"fa-sharp",iconSize:"xxss"})})]})]}),t.jsx(ke,{icon:"chevron-right",props:i})]})},xt=({onClose:e,props:n})=>{const{locale:i}=o.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),a=o.$131cf43a05231e1e$export$6d095e787d2b5e1f({...n,createCalendar:o.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:r,nextButtonProps:s,title:l}=o.$9942cad8a072a530$export$3ee915f8151bd4f1(n,a);return t.jsxs("div",{className:"calendar",children:[t.jsx(Te,{nextButtonProps:s,prevButtonProps:r,state:a,title:l}),t.jsx(Ie,{state:a}),t.jsx(_e,{children:t.jsx(E,{onClick:e,variant:"ghost",children:"Cancel"})})]})},ft=({segment:e,state:n})=>{const i=o.nt(),a=g.useRef(null),s={...e,placeholder:{day:"dd",dayPeriod:"(AM/PM)",era:"",hour:"hh",literal:"",minute:"mm",month:"mm",second:"",timeZoneName:"",year:"yyyy"}[e.type]},{segmentProps:l}=o.$32489daedd52963e$export$1315d136e6f7581(s,n,a),c=i.palette.gray[s.isEditable?800:500];return t.jsx("div",{...s.type!=="literal"&&{...l,className:"segment-cell"},ref:a,style:s.type==="literal"?void 0:{color:s.isPlaceholder?i.palette.gray[400]:c},children:s.isPlaceholder?s.placeholder:s.text})},ht=({disabled:e,error:n=!1,props:i})=>{const a=o.nt(),r=g.useRef(null),s=o.$3c0fc76039f1c516$export$60e84778edff6d26({...i,createCalendar:o.$64244302c3013299$export$dd0bbc9b26defe37,locale:"en-US"}),{fieldProps:l}=o.$16f0b7bb276bc17e$export$5591b0b878c1a989(i,s,r),c=g.useCallback(d=>{const p=document.getElementsByClassName("segment-cell"),u=d.currentTarget;Object.values(p).some(x=>x.contains(u))||(d.preventDefault(),d.stopPropagation())},[]);return t.jsxs(si,{...l,onClick:c,children:[t.jsx("div",{className:"flex flex-row",style:{color:a.palette.gray[o.lodashExports.isNil(s.value)?400:800]},tabIndex:-1,children:s.segments.map((d,p)=>{const u=`key_${p}`;return t.jsx(ft,{segment:{...d,isEditable:!e},state:s},u)})}),n?t.jsx(v,{icon:"exclamation-circle",iconColor:a.palette.error[500],iconSize:"xs"}):void 0]})},bt=e=>{const n=g.useRef(null),i=o.$eff5d8ee529ac4bb$export$fd53cef0cc796101({...e,locale:"en-US",shouldForceLeadingZeros:!0}),{timeValue:a}=i,r=!o.lodashExports.isNil(a)&&a.hour<12?"AM":"PM",[s,l]=g.useState(o.lodashExports.isNil(a)?"AM":r),{fieldProps:c}=o.$16f0b7bb276bc17e$export$4c842f6a241dc825(e,i,n),d=g.useCallback(p=>{const u=p.currentTarget.name;u!==s&&(o.lodashExports.isNil(a)||(u==="AM"?i.setSegment("dayPeriod",0):u==="PM"&&i.setSegment("dayPeriod",12))),l(u)},[s,i,a]);return t.jsxs(li,{children:[t.jsx(Qe,{...c,ref:n,children:i.segments.slice(0,-2).map((p,u)=>{const x=`key_${u}`;return t.jsx(ft,{segment:p,state:i},x)})}),t.jsxs(Qe,{children:[t.jsx(et,{id:s==="AM"?"active":"",name:"AM",onClick:d,type:"button",children:"AM"}),t.jsx(et,{id:s==="PM"?"active":"",name:"PM",onClick:d,type:"button",children:"PM"})]})]})},Ce=e=>e&&e!=="-"?o.dayjs(e).format("YYYY-MM-DD"):"-",ci=e=>e&&e!=="-"?o.dayjs(e).format("YYYY-MM-DD hh:mm A"):"-",di=e=>e&&e!=="-"?o.dayjs(e).format("YYYY/MM/DD hh:mm A"):"-",oe=({error:e,buttonProps:n,datePickerRef:i,disabled:a=!1,granularity:r="day",fieldProps:s,groupProps:l,name:c,onBlur:d,onChange:p,formRef:u})=>{const x=g.useCallback(f=>{s.onChange&&s.onChange(f),p&&p(r==="day"?Ce(String(f)):ci(String(f)))},[s,r,p]);return t.jsxs(X,{...l,className:`${a?"disabled":""} ${e?"error":""}`,ref:i,children:[t.jsx(ht,{disabled:a,error:e!=null,props:{...s,autoFocus:!1,granularity:r,onChange:x,shouldForceLeadingZeros:!0}}),t.jsx(ke,{disabled:a,icon:r==="minute"?"calendar-clock":"calendar",props:n}),t.jsx("input",{"aria-label":c,className:"date-input",disabled:a,id:c,name:c,onBlur:d,onChange:p,ref:u,type:"text"})]})},Ne=({children:e,...n})=>{const i=g.useRef(null),{dialogProps:a}=o.$40df3f8667284809$export$d55e7ee900f34e93(n,i);return t.jsx(ai,{...a,ref:i,children:e})},$t=({disabled:e=!1,helpLink:n,helpLinkText:i,helpText:a,required:r,label:s,name:l,tooltip:c,...d})=>{const{control:p}=o.useFormContext(),{field:{onBlur:u,onChange:x,value:f,ref:b},fieldState:{error:$}}=o.useController({name:l,control:p,
|
|
1008
|
+
`,ke=({disabled:e=!1,icon:n,props:i})=>{const a=g.useRef(null),{buttonProps:r}=o.$701a24aa0da5b062$export$ea18c227d4417cc3(i,a);return t.jsx(oi,{...r,$disabled:e,$focus:!!r["aria-expanded"],$header:n==="calendar"||n==="calendar-clock",disabled:e,ref:a,type:"button",children:t.jsx(v,{icon:n,iconColor:C.palette.gray[e?400:700],iconSize:"xs",iconType:"fa-light"})})},Te=({state:e,prevButtonProps:n,nextButtonProps:i,title:a})=>{const r=e.focusedDate,s=g.useCallback(()=>{e.setFocusedDate(r.add({years:1}))},[r,e]),l=g.useCallback(()=>{e.setFocusedDate(r.subtract({years:1}))},[r,e]);return t.jsxs("div",{className:"header flex items-start",children:[t.jsx(ke,{icon:"chevron-left",props:n}),t.jsxs(Qn,{children:[a,t.jsxs(ei,{children:[t.jsx(Je,{"aria-label":"top",onClick:s,children:t.jsx(v,{icon:"caret-up",iconClass:"fa-sharp",iconSize:"xxss"})}),t.jsx(Je,{"aria-label":"bottom",onClick:l,children:t.jsx(v,{icon:"caret-down",iconClass:"fa-sharp",iconSize:"xxss"})})]})]}),t.jsx(ke,{icon:"chevron-right",props:i})]})},xt=({onClose:e,props:n})=>{const{locale:i}=o.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),a=o.$131cf43a05231e1e$export$6d095e787d2b5e1f({...n,createCalendar:o.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:r,nextButtonProps:s,title:l}=o.$9942cad8a072a530$export$3ee915f8151bd4f1(n,a);return t.jsxs("div",{className:"calendar",children:[t.jsx(Te,{nextButtonProps:s,prevButtonProps:r,state:a,title:l}),t.jsx(Ie,{state:a}),t.jsx(_e,{children:t.jsx(E,{onClick:e,variant:"ghost",children:"Cancel"})})]})},ft=({segment:e,state:n})=>{const i=o.nt(),a=g.useRef(null),s={...e,placeholder:{day:"dd",dayPeriod:"(AM/PM)",era:"",hour:"hh",literal:"",minute:"mm",month:"mm",second:"",timeZoneName:"",year:"yyyy"}[e.type]},{segmentProps:l}=o.$32489daedd52963e$export$1315d136e6f7581(s,n,a),c=i.palette.gray[s.isEditable?800:500];return t.jsx("div",{...s.type!=="literal"&&{...l,className:"segment-cell"},ref:a,style:s.type==="literal"?void 0:{color:s.isPlaceholder?i.palette.gray[400]:c},children:s.isPlaceholder?s.placeholder:s.text})},ht=({disabled:e,error:n=!1,props:i})=>{const a=o.nt(),r=g.useRef(null),s=o.$3c0fc76039f1c516$export$60e84778edff6d26({...i,createCalendar:o.$64244302c3013299$export$dd0bbc9b26defe37,locale:"en-US"}),{fieldProps:l}=o.$16f0b7bb276bc17e$export$5591b0b878c1a989(i,s,r),c=g.useCallback(d=>{const p=document.getElementsByClassName("segment-cell"),u=d.currentTarget;Object.values(p).some(x=>x.contains(u))||(d.preventDefault(),d.stopPropagation())},[]);return t.jsxs(si,{...l,onClick:c,children:[t.jsx("div",{className:"flex flex-row",style:{color:a.palette.gray[o.lodashExports.isNil(s.value)?400:800]},tabIndex:-1,children:s.segments.map((d,p)=>{const u=`key_${p}`;return t.jsx(ft,{segment:{...d,isEditable:!e},state:s},u)})}),n?t.jsx(v,{icon:"exclamation-circle",iconColor:a.palette.error[500],iconSize:"xs"}):void 0]})},bt=e=>{const n=g.useRef(null),i=o.$eff5d8ee529ac4bb$export$fd53cef0cc796101({...e,locale:"en-US",shouldForceLeadingZeros:!0}),{timeValue:a}=i,r=!o.lodashExports.isNil(a)&&a.hour<12?"AM":"PM",[s,l]=g.useState(o.lodashExports.isNil(a)?"AM":r),{fieldProps:c}=o.$16f0b7bb276bc17e$export$4c842f6a241dc825(e,i,n),d=g.useCallback(p=>{const u=p.currentTarget.name;u!==s&&(o.lodashExports.isNil(a)||(u==="AM"?i.setSegment("dayPeriod",0):u==="PM"&&i.setSegment("dayPeriod",12))),l(u)},[s,i,a]);return t.jsxs(li,{children:[t.jsx(Qe,{...c,ref:n,children:i.segments.slice(0,-2).map((p,u)=>{const x=`key_${u}`;return t.jsx(ft,{segment:p,state:i},x)})}),t.jsxs(Qe,{children:[t.jsx(et,{id:s==="AM"?"active":"",name:"AM",onClick:d,type:"button",children:"AM"}),t.jsx(et,{id:s==="PM"?"active":"",name:"PM",onClick:d,type:"button",children:"PM"})]})]})},Ce=e=>e&&e!=="-"?o.dayjs(e).format("YYYY-MM-DD"):"-",ci=e=>e&&e!=="-"?o.dayjs(e).format("YYYY-MM-DD hh:mm A"):"-",di=e=>e&&e!=="-"?o.dayjs(e).format("YYYY/MM/DD hh:mm A"):"-",oe=({error:e,buttonProps:n,datePickerRef:i,disabled:a=!1,granularity:r="day",fieldProps:s,groupProps:l,name:c,onBlur:d,onChange:p,formRef:u})=>{const x=g.useCallback(f=>{s.onChange&&s.onChange(f),p&&p(r==="day"?Ce(String(f)):ci(String(f)))},[s,r,p]);return t.jsxs(X,{...l,className:`${a?"disabled":""} ${e?"error":""}`,ref:i,children:[t.jsx(ht,{disabled:a,error:e!=null,props:{...s,autoFocus:!1,granularity:r,onChange:x,shouldForceLeadingZeros:!0}}),t.jsx(ke,{disabled:a,icon:r==="minute"?"calendar-clock":"calendar",props:n}),t.jsx("input",{"aria-label":c,className:"date-input",disabled:a,id:c,name:c,onBlur:d,onChange:p,ref:u,type:"text"})]})},Ne=({children:e,...n})=>{const i=g.useRef(null),{dialogProps:a}=o.$40df3f8667284809$export$d55e7ee900f34e93(n,i);return t.jsx(ai,{...a,ref:i,children:e})},$t=({disabled:e=!1,helpLink:n,helpLinkText:i,helpText:a,required:r,label:s,name:l,tooltip:c,...d})=>{const{control:p}=o.useFormContext(),{field:{onBlur:u,onChange:x,value:f,ref:b},fieldState:{error:$}}=o.useController({name:l,control:p,rules:{required:r}}),w=g.useRef(null),y=o.$ab5bf3f618090389$export$87194bb378cc3ac2({...d,onBlur:u,onChange:x,value:o._.isNil(f)||o._.isEmpty(f)||f==="-"?null:o.$fae977aafc393c5c$export$6b862160d295c8e(f.replace(/\//gu,"-"))}),{close:m}=y,{groupProps:k,fieldProps:S,buttonProps:z,dialogProps:N,calendarProps:T}=o.$6057a3d2a53a12fd$export$42df105a73306d51({...d,"aria-label":s??l,name:l},y,w),R=g.useCallback(P=>{T.onChange&&T.onChange(P),x(Ce(P.toString()))},[T,x]);return t.jsxs(H,{error:$?$.message:void 0,helpLink:n,helpLinkText:i,helpText:a,htmlFor:l,label:s,required:r,tooltip:c,children:[t.jsx(oe,{buttonProps:z,datePickerRef:w,disabled:e,error:$==null?void 0:$.message,fieldProps:S,formRef:b,groupProps:k,name:l,onBlur:u,onChange:x,required:r}),y.isOpen&&!e?t.jsx(he,{offset:8,placement:"bottom start",state:y,triggerRef:w,children:t.jsx(Ne,{...N,children:t.jsx(xt,{onClose:m,props:{...T,onChange:R}})})}):null]})},yt=({onClose:e,props:n})=>{const{locale:i}=o.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),a=g.useRef(null),r=o.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90({...n,createCalendar:o.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:s,nextButtonProps:l,title:c}=o.$46a4342aab3d8076$export$87e0539f600c24e5(n,r,a);return t.jsxs("div",{className:"calendar-range",ref:a,children:[t.jsx(Te,{nextButtonProps:l,prevButtonProps:s,state:r,title:c}),t.jsx(Ie,{state:r}),t.jsx(_e,{children:t.jsx(E,{onClick:e,variant:"ghost",children:"Cancel"})})]})},pi=o.dt.div`
|
|
1005
1009
|
${({theme:e,$disabled:n,$show:i})=>`
|
|
1006
1010
|
border-color: ${i?e.palette.error[500]:e.palette.gray[300]};
|
|
1007
1011
|
display: flex;
|
|
@@ -1012,7 +1016,7 @@
|
|
|
1012
1016
|
background: ${n?e.palette.gray[200]:e.palette.white};
|
|
1013
1017
|
}
|
|
1014
1018
|
`}
|
|
1015
|
-
`,gi=({disabled:e=!1,label:n,name:i,required:a,tooltip:r,...s})=>{const{control:l}=o.useFormContext(),c=`${i}Max`,d=`${i}Min`,{field:{onBlur:p,onChange:u,ref:x},fieldState:{error:f}}=o.useController({name:c,control:l,
|
|
1019
|
+
`,gi=({disabled:e=!1,label:n,name:i,required:a,tooltip:r,...s})=>{const{control:l}=o.useFormContext(),c=`${i}Max`,d=`${i}Min`,{field:{onBlur:p,onChange:u,ref:x},fieldState:{error:f}}=o.useController({name:c,control:l,rules:{required:a}}),{field:{onBlur:b,onChange:$,ref:w},fieldState:{error:y}}=o.useController({name:d,control:l,disabled:e,rules:{required:a}}),m=(f==null?void 0:f.message)??(y==null?void 0:y.message),k=g.useRef(null),S=o.$93c38a5e28be6249$export$e50a61c1de9f574(s),{close:z}=S,{groupProps:N,startFieldProps:T,endFieldProps:R,buttonProps:P,dialogProps:A,calendarProps:D}=o.$887cac91b7cc8801$export$12fd5f0e9f4bb192({...s,"aria-label":n??i},S,k),L=g.useCallback(M=>{M&&(D.onChange&&D.onChange(M),$(Ce(String(M.start))),u(Ce(String(M.end))))},[D,$,u]);return t.jsxs(H,{error:m,htmlFor:i,label:n,required:a,tooltip:r,children:[t.jsxs(pi,{$disabled:e,$show:m!==void 0,ref:k,children:[t.jsx(oe,{buttonProps:P,datePickerRef:k,disabled:e,error:m,fieldProps:{...T,"aria-label":`${T["aria-label"]} ${i}`,validate:M=>R.value&&M>R.value?"Start date must be less than or equal to end date":null},formRef:w,groupProps:N,name:d,onBlur:b,onChange:$}),t.jsx(oe,{buttonProps:P,datePickerRef:k,disabled:e,error:m,fieldProps:{...R,"aria-label":`${R["aria-label"]} ${i}`,validate:M=>T.value&&M<T.value?"End date must be greater than or equal to start date":null},formRef:x,groupProps:N,name:c,onBlur:p,onChange:u})]}),S.isOpen&&!e?t.jsx(he,{offset:8,placement:"bottom start",state:S,triggerRef:k,children:t.jsx(Ne,{...A,children:t.jsx(yt,{onClose:z,props:{...D,onChange:L}})})}):null]})},ui=o.dt.div`
|
|
1016
1020
|
${({theme:e})=>`
|
|
1017
1021
|
align-items: center;
|
|
1018
1022
|
border-top: 1px solid ${e.palette.gray[200]};
|
|
@@ -1027,9 +1031,9 @@
|
|
|
1027
1031
|
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1028
1032
|
justify-content: flex-end;
|
|
1029
1033
|
flex: 1 0 0;
|
|
1030
|
-
`,mt=({handleTimeChange:e,onClose:n,props:i,timeState:a})=>{const r=o.nt(),{locale:s}=o.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),l=o.$131cf43a05231e1e$export$6d095e787d2b5e1f({...i,createCalendar:o.$64244302c3013299$export$dd0bbc9b26defe37,locale:s}),{prevButtonProps:c,nextButtonProps:d,title:p}=o.$9942cad8a072a530$export$3ee915f8151bd4f1(i,l);return t.jsxs("div",{className:"calendar",children:[t.jsx(Te,{nextButtonProps:d,prevButtonProps:c,state:l,title:p}),t.jsx(Ie,{state:l}),t.jsxs(ui,{children:[t.jsx(j,{color:r.palette.gray[800],fontWeight:"bold",size:"sm",children:"Time"}),t.jsx(xi,{children:t.jsx(bt,{hourCycle:12,label:"time-field",onChange:e,value:a.timeValue})})]}),t.jsx(_e,{children:t.jsx(E,{onClick:n,variant:"ghost",children:"Cancel"})})]})},fi=e=>{const{disabled:n=!1,required:i,label:a,name:r,tooltip:s}=e,l=g.useRef(null),{control:c}=o.useFormContext(),{field:{onBlur:d,onChange:p,ref:u,value:x},fieldState:{error:f}}=o.useController({name:r,control:c,
|
|
1034
|
+
`,mt=({handleTimeChange:e,onClose:n,props:i,timeState:a})=>{const r=o.nt(),{locale:s}=o.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),l=o.$131cf43a05231e1e$export$6d095e787d2b5e1f({...i,createCalendar:o.$64244302c3013299$export$dd0bbc9b26defe37,locale:s}),{prevButtonProps:c,nextButtonProps:d,title:p}=o.$9942cad8a072a530$export$3ee915f8151bd4f1(i,l);return t.jsxs("div",{className:"calendar",children:[t.jsx(Te,{nextButtonProps:d,prevButtonProps:c,state:l,title:p}),t.jsx(Ie,{state:l}),t.jsxs(ui,{children:[t.jsx(j,{color:r.palette.gray[800],fontWeight:"bold",size:"sm",children:"Time"}),t.jsx(xi,{children:t.jsx(bt,{hourCycle:12,label:"time-field",onChange:e,value:a.timeValue})})]}),t.jsx(_e,{children:t.jsx(E,{onClick:n,variant:"ghost",children:"Cancel"})})]})},fi=e=>{const{disabled:n=!1,required:i,label:a,name:r,tooltip:s}=e,l=g.useRef(null),{control:c}=o.useFormContext(),{field:{onBlur:d,onChange:p,ref:u,value:x},fieldState:{error:f}}=o.useController({name:r,control:c,rules:{required:i}}),b=o.$ab5bf3f618090389$export$87194bb378cc3ac2({...e,granularity:"minute",hourCycle:12,isDisabled:n,isRequired:i,shouldCloseOnSelect:!1,onBlur:d,onChange:p,value:o._.isNil(x)||o._.isEmpty(x)||x==="-"?null:o.$fae977aafc393c5c$export$588937bcd60ade55(x.replace(/\//gu,"-"))}),{close:$}=b,{groupProps:w,fieldProps:y,buttonProps:m,dialogProps:k,calendarProps:S}=o.$6057a3d2a53a12fd$export$42df105a73306d51(e,b,l),z=g.useCallback(T=>{S.onChange&&S.onChange(T),p(di(String(T).replace(/-/gu,"/")))},[S,p]),N=g.useCallback(T=>{T&&b.setTimeValue(T)},[b]);return t.jsxs(H,{error:f==null?void 0:f.message,htmlFor:r,label:a,required:i,tooltip:s,children:[t.jsx(oe,{buttonProps:m,datePickerRef:l,disabled:n,error:f==null?void 0:f.message,fieldProps:y,formRef:u,granularity:"minute",groupProps:w,name:r,onBlur:d,onChange:p}),b.isOpen&&!n?t.jsx(he,{offset:8,placement:"bottom start",state:b,triggerRef:l,children:t.jsx(Ne,{...k,children:t.jsx(mt,{handleTimeChange:N,onClose:$,props:{...S,onChange:z},timeState:b})})}):null]})},hi=({children:e,currentValue:n,externalLink:i,isEditing:a,label:r,name:s,tooltip:l})=>{if(a)return t.jsx("div",{children:e});const c=o.lodashExports.isNil(n)?"":n,d=String(i??c);return t.jsxs(h,{children:[t.jsx(He,{htmlFor:s,label:r,tooltip:l,weight:"bold"}),d.startsWith("https://")?t.jsx(Z,{href:d,children:c}):t.jsx(j,{size:"md",children:c})]})},wt=({disabled:e=!1,hasIcon:n=!1,helpLink:i,helpLinkText:a,helpText:r,label:s,name:l,maskValue:c=!1,onBlur:d,onChange:p,onPaste:u,placeholder:x,required:f,tooltip:b,type:$="text",weight:w})=>{const y=o.nt(),{register:m,formState:{errors:k,isValid:S},getFieldState:z}=o.useFormContext(),{isTouched:N}=z(l),T=k[l]?String(k[l].message):void 0,R=S&&N&&!e,P=g.useCallback(A=>{A.key==="Enter"&&A.preventDefault()},[]);return t.jsx(H,{error:T,helpLink:i,helpLinkText:a,helpText:r,htmlFor:l,label:s,required:f,tooltip:b,weight:w,children:t.jsxs(X,{className:`
|
|
1031
1035
|
${e?"disabled":""} ${T?"error":""} ${R?"success":""}
|
|
1032
|
-
`,children:[n?t.jsx(v,{icon:"user",iconSize:"sm",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":T?"true":"false","aria-label":l,"aria-required":f,autoComplete:"off",className:c?"sr-block":"","data-testid":`${l}-input`,id:l,onKeyDown:P,onPaste:u,placeholder:x,type:$,...
|
|
1036
|
+
`,children:[n?t.jsx(v,{icon:"user",iconSize:"sm",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":T?"true":"false","aria-label":l,"aria-required":f,autoComplete:"off",className:c?"sr-block":"","data-testid":`${l}-input`,id:l,onKeyDown:P,onPaste:u,placeholder:x,type:$,...m(l,{disabled:e,required:f,onBlur:d,onChange:p})}),T?t.jsx(v,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:y.palette.error[500],iconSize:"xs"}):void 0,R?t.jsx(v,{icon:"check-circle",iconClass:"success-icon",iconColor:y.palette.success[500],iconSize:"xs"}):void 0]})})},bi=o.dt(ot)`
|
|
1033
1037
|
white-space: nowrap;
|
|
1034
1038
|
margin-right: ${({theme:e})=>e.spacing[.25]};
|
|
1035
1039
|
text-overflow: ellipsis;
|
|
@@ -1040,13 +1044,13 @@
|
|
|
1040
1044
|
position: absolute;
|
|
1041
1045
|
visibility: hidden;
|
|
1042
1046
|
width: 0;
|
|
1043
|
-
`,Fe=(e,n,i)=>{const a=new Event(e);return Object.defineProperty(a,"target",{value:{name:n,value:i}}),a},yi=e=>{const n=e;return n?Array.from(n).map(i=>i.name).join(", "):""},mi=({accept:e,disabled:n=!1,label:i,helpLink:a,helpText:r,id:s,multiple:l,name:c,onChange:d,required:p,tooltip:u,weight:x})=>{const f=o.nt(),b=g.useRef(null),{control:$,setValue:
|
|
1047
|
+
`,Fe=(e,n,i)=>{const a=new Event(e);return Object.defineProperty(a,"target",{value:{name:n,value:i}}),a},yi=e=>{const n=e;return n?Array.from(n).map(i=>i.name).join(", "):""},mi=({accept:e,disabled:n=!1,label:i,helpLink:a,helpText:r,id:s,multiple:l,name:c,onChange:d,required:p,tooltip:u,weight:x})=>{const f=o.nt(),b=g.useRef(null),{control:$,setValue:w}=o.useFormContext(),{field:{value:y,onChange:m},fieldState:{error:k}}=o.useController({name:c,control:$,rules:{required:p}}),S=yi(y),z=g.useCallback(()=>{const R=Fe("change",c,void 0);m(R),w(c,"")},[c,m,w]),N=g.useCallback(R=>{const{files:P}=R.currentTarget,A=Fe("change",c,P&&P.length>0?P:void 0);d==null||d(A),m(A)},[c,m,d]),T=g.useCallback(R=>{n?R.preventDefault():b.current&&b.current.click()},[n]);return t.jsxs(H,{error:k?k.message:void 0,helpLink:a,helpText:r,htmlFor:s??c,label:i,required:p,tooltip:u,weight:x,children:[t.jsxs(X,{className:`${n?"disabled":""} ${k?"error":""}`,children:[t.jsx(bi,{$size:"xs",children:S}),t.jsxs(h,{alignItems:"center",display:"flex",gap:.5,children:[o.lodashExports.isEmpty(S)?void 0:t.jsx(O,{color:f.palette.gray[400],height:"20px",icon:"xmark",iconSize:"lg",iconType:"fa-light",onClick:z,variant:"ghost",width:"20px"}),k&&t.jsx(v,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:f.palette.error[500],iconSize:"xs"})]}),t.jsxs(E,{border:n?`1px solid ${f.palette.gray[300]} !important`:"",borderRadius:"0px 8px 8px 0px !important",disabled:n,height:"40px",onClick:T,variant:"primary",width:"96px",children:[t.jsx(v,{icon:"search",iconSize:"sm",mr:.5}),"Add file"]})]}),t.jsx($i,{accept:e,"aria-label":c,"data-testid":c,disabled:n,id:s??c,multiple:l,name:c,onChange:N,onClick:z,ref:b,required:void 0,type:"file",value:void 0})]})},wi=o.dt.input`
|
|
1044
1048
|
border: none;
|
|
1045
1049
|
background: transparent;
|
|
1046
1050
|
min-width: 15rem;
|
|
1047
1051
|
padding: 0;
|
|
1048
1052
|
flex: 1;
|
|
1049
|
-
`,ji=({disabled:e=!1,helpLink:n,helpLinkText:i,helpText:a,label:r,name:s="input-tag",onRemove:l,placeholder:c,required:d,tooltip:p,weight:u})=>{const x=o.nt(),[f,b]=g.useState(""),{control:$}=o.useFormContext(),{field:{value:
|
|
1053
|
+
`,ji=({disabled:e=!1,helpLink:n,helpLinkText:i,helpText:a,label:r,name:s="input-tag",onRemove:l,placeholder:c,required:d,tooltip:p,weight:u})=>{const x=o.nt(),[f,b]=g.useState(""),{control:$}=o.useFormContext(),{field:{value:w,onBlur:y,onChange:m,ref:k},fieldState:{error:S}}=o.useController({name:s,control:$,disabled:e,rules:{required:d}}),z=g.useMemo(()=>w&&typeof w=="string"?w.split(",").filter(Boolean):[],[w]),N=g.useCallback(D=>{const M=[...new Set(D.filter(Boolean))].join(","),B=Fe("change",s,M);m(B)},[s,m]),T=g.useCallback(D=>{b(D.target.value)},[]),R=g.useCallback(D=>{const L=f.trim();L.length&&!z.includes(L)&&(D.preventDefault(),N([...z,L]),b("")),y()},[f,y,N,z]),P=g.useCallback(D=>{const L=f.trim();D.key==="Enter"&&L.length===0&&D.preventDefault(),["Enter",","].includes(D.key)&&L.length>0&&!z.includes(L)?(D.preventDefault(),N([...z,L]),b("")):D.key==="Backspace"&&!L.length&&z.length&&(D.preventDefault(),l==null||l(z[z.length-1]),N(z.slice(0,-1)))},[f,l,N,z]),A=g.useCallback(D=>()=>{l==null||l(D),N(z.filter(L=>L!==D))},[l,N,z]);return t.jsx(H,{error:S?S.message:void 0,helpLink:n,helpLinkText:i,helpText:a,htmlFor:s,label:r,required:d,tooltip:p,weight:u,children:t.jsxs(X,{$overflowX:"auto",className:`${e?"disabled":""} ${S?"error":""}`,children:[z.map(D=>t.jsx(J,{disabled:e,onClose:A(D),tagLabel:D},D)),t.jsx(wi,{"aria-hidden":!1,"aria-invalid":S?"true":"false","aria-label":s,"aria-required":d,autoComplete:"off",disabled:e,id:s,onBlur:R,onChange:T,onKeyDown:P,placeholder:z.length===0?c:void 0,ref:k,type:"text",value:f}),S?t.jsx(v,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:x.palette.error[500],iconSize:"xs"}):void 0]})})},Pe=g.forwardRef(function({disabled:n,icon:i,margin:a,onClick:r,...s},l){return t.jsx(ri,{$margin:a,"aria-label":i,className:"action-btn",disabled:n,onClick:r,ref:l,type:"button",...s,children:t.jsx(v,{icon:i,iconClass:"action",iconSize:"xs",iconType:"fa-light"})})}),ve=({error:e,decimalPlaces:n=0,disabled:i=!1,id:a,maxLength:r,max:s=1/0,min:l=0,name:c,onChange:d,placeholder:p,required:u})=>{const x=o.nt(),{control:f,setValue:b}=o.useFormContext(),{field:{value:$,onChange:w,onBlur:y,ref:m}}=o.useController({name:c,control:f,rules:{required:u,maxLength:r,max:s,min:l}}),k=g.useMemo(()=>n<0?0:n,[n]),S=g.useCallback(()=>$===void 0?0:o._.toNumber($),[$]),z=g.useCallback(()=>{const R=(S()-10**-k).toFixed(k);b(c,Math.max(Number(l),Number(R)))},[k,S,l,c,b]),N=g.useCallback(()=>{const R=(S()+10**-k).toFixed(k);b(c,Math.min(Number(s),Number(R)>Number(l)?Number(R):Number(l)))},[k,S,s,l,c,b]),T=g.useCallback(R=>{const{value:P}=R.target;/\d+/u.test(P)&&!o._.isEmpty(P)?d?d(R):w(R):b(c,void 0)},[c,w,d,b]);return t.jsxs(X,{className:`${i?"disabled":""} ${e?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":e?"true":"false","aria-label":c,"aria-required":u,autoComplete:"off",disabled:i,id:a??c,max:s,min:l,name:c,onBlur:y,onChange:T,placeholder:p,ref:m,required:void 0,step:10**-k,type:"number",value:/^-?\d+/u.test(String($))?$:""}),e&&t.jsx(v,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:x.palette.error[500],iconSize:"xs"}),t.jsx(Pe,{borderLeft:"inherit",borderRight:"inherit",disabled:i,icon:"minus",margin:"0 -0.625rem 0 0",onClick:z,px:.75,py:.75}),t.jsx(Pe,{borderRadius:`0 ${x.spacing[.5]} ${x.spacing[.5]} 0`,disabled:i,icon:"plus",onClick:N,px:.75,py:.75})]})},jt=({decimalPlaces:e,disabled:n=!1,helpLink:i,helpText:a,id:r,label:s,maxLength:l,max:c,min:d,name:p,onChange:u,placeholder:x,required:f,tooltip:b,weight:$})=>{const{formState:{errors:w}}=o.useFormContext(),y=w[p]?String(w[p].message):void 0;return t.jsx(H,{error:y,helpLink:i,helpText:a,htmlFor:p,label:s,maxLength:l,required:f,tooltip:b,weight:$,children:t.jsx(ve,{decimalPlaces:e,disabled:n,error:y,id:r,max:c,maxLength:l,min:d,name:p,onChange:u,placeholder:x,required:f})})},ki=({disabled:e=!1,name:n,label:i,propsMax:a,propsMin:r,required:s,tooltip:l})=>{const{formState:{errors:c}}=o.useFormContext(),d=`${n}Max`,p=`${n}Min`,u=c[d]?String(c[d].message):void 0,x=c[p]?String(c[p].message):void 0,f=u??x;return t.jsx(H,{error:f,htmlFor:n,label:i,required:s,tooltip:l,children:t.jsxs(h,{display:"flex",gap:.25,width:"100%",children:[t.jsx(ve,{...r,disabled:e,error:f,name:d}),t.jsx(ve,{...a,disabled:e,error:f,name:p})]})})},Ci=o.dt.div`
|
|
1050
1054
|
${({theme:e})=>`
|
|
1051
1055
|
align-items: flex-start;
|
|
1052
1056
|
align-self: stretch;
|
|
@@ -1139,9 +1143,9 @@
|
|
|
1139
1143
|
overflow: hidden;
|
|
1140
1144
|
text-overflow: ellipsis;
|
|
1141
1145
|
white-space: nowrap;
|
|
1142
|
-
`,Q=(e,n,i=!1)=>{g.useEffect(()=>{var r;const a=s=>{e&&!e.contains(s.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 s;(s=document.getElementById("root"))==null||s.removeEventListener("click",a,!0)})},[i,e,n])},Ti=({disabled:e,label:n,name:i,placeholder:a,required:r,tooltip:s,weight:l})=>{const c=o.nt(),d=g.useRef(null),{control:p}=o.useFormContext(),{field:{onBlur:u,onChange:x,ref:f,value:b},fieldState:{error:$}}=o.useController({name:i,control:p,
|
|
1146
|
+
`,Q=(e,n,i=!1)=>{g.useEffect(()=>{var r;const a=s=>{e&&!e.contains(s.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 s;(s=document.getElementById("root"))==null||s.removeEventListener("click",a,!0)})},[i,e,n])},Ti=({disabled:e,label:n,name:i,placeholder:a,required:r,tooltip:s,weight:l})=>{const c=o.nt(),d=g.useRef(null),{control:p}=o.useFormContext(),{field:{onBlur:u,onChange:x,ref:f,value:b},fieldState:{error:$}}=o.useController({name:i,control:p,rules:{required:r}}),[w,y]=g.useState(!1),[m,k]=g.useState(""),{refs:S,floatingStyles:z}=o.useFloating({placement:"bottom-start",whileElementsMounted:o.autoUpdate}),{inputValue:N,handlePhoneValueChange:T,country:R,setCountry:P}=o.ee({countries:o.R,defaultCountry:"us",forceDialCode:!0,onChange:x,value:b?String(b):void 0}),A=g.useCallback(()=>{y(B=>!B),w||k("")},[w]),D=g.useCallback(B=>()=>{P(B),y(!1),k("")},[P,y]),L=g.useCallback(B=>{B.key.length===1?k(V=>V+B.key):B.key==="Backspace"&&k(V=>V.slice(0,-1))},[]),M=o.R.filter(B=>{const{name:V}=o.M$1(B);return V.toLowerCase().includes(m.toLowerCase())});return Q(S.floating.current,()=>{y(!1),k("")},!0),t.jsx(H,{error:$?$.message:void 0,htmlFor:i,label:n,required:r,tooltip:s,weight:l,children:t.jsxs(Ci,{className:`${e?"disabled":""} ${$?"error":""}`,ref:d,children:[t.jsxs(vi,{"aria-label":"country-selector","data-testid":"country-selector",disabled:e,id:"country-selector",onClick:A,onKeyDown:L,ref:S.setReference,children:[t.jsx(o.q,{iso2:R.iso2,size:"16px"}),t.jsx(v,{icon:"angle-down",iconColor:c.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(X,{className:`${e?"disabled":""} ${$?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":$?"true":"false","aria-label":i,"aria-required":r,autoComplete:"off","data-testid":`${i}-input`,disabled:e,id:i,name:i,onBlur:u,onChange:T,placeholder:a,ref:f,type:"tel",value:N}),$?t.jsx(v,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:c.palette.error[500],iconSize:"xs"}):void 0]}),w&&te.createPortal(t.jsx(Si,{ref:S.setFloating,style:z,children:M.map(B=>{const{dialCode:V,iso2:K,name:ie}=o.M$1(B);return t.jsxs(zi,{onClick:D(K),value:K,children:[t.jsx(o.q,{iso2:K,size:"16px"}),t.jsx(Ii,{children:ie}),t.jsx(j,{color:c.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+V})]},K)})}),document.getElementById("root")??document.body)]})})},Ni=({disabled:e=!1,helpLink:n,helpText:i,label:a,name:r="input-text",id:s,maskValue:l=!1,maxLength:c,placeholder:d,required:p,rows:u,tooltip:x,weight:f})=>{const b=o.nt(),{control:$}=o.useFormContext(),{field:w,fieldState:{error:y,isTouched:m},formState:{isValid:k}}=o.useController({name:r,control:$,rules:{maxLength:c,required:p}}),S=k&&m&&!e;return t.jsx(H,{error:y?y.message:void 0,helpLink:n,helpText:i,htmlFor:r,label:a,maxLength:c,required:p,tooltip:x,value:w.value?String(w.value):void 0,weight:f,children:t.jsxs(X,{className:`
|
|
1143
1147
|
${e?"disabled":""} ${y?"error":""} ${S?"success":""}
|
|
1144
|
-
`,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":y?"true":"false","aria-label":r,"aria-required":p,className:l?"sr-block":"","data-testid":`${r}-text-area`,disabled:e,id:s??r,maxLength:c,placeholder:d,rows:u,...
|
|
1148
|
+
`,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":y?"true":"false","aria-label":r,"aria-required":p,className:l?"sr-block":"","data-testid":`${r}-text-area`,disabled:e,id:s??r,maxLength:c,placeholder:d,rows:u,...w}),y?t.jsx(v,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:b.palette.error[500],iconSize:"xs"}):void 0,S?t.jsx(v,{icon:"check-circle",iconClass:"success-icon",iconColor:b.palette.success[500],iconSize:"xs"}):void 0]})})},Ri=({description:e,disabled:n,id:i,align:a,inputType:r="text",inputNumberProps:s,minHeight:l,minWidth:c,name:d,placeholder:p,tooltip:u,title:x})=>{const f=g.useMemo(()=>{if(r==="text")return t.jsx(wt,{disabled:n,name:d,placeholder:p});if(r==="date")return t.jsx($t,{disabled:n,name:d});const{decimalPlaces:b,max:$,min:w}=s??{};return t.jsx(jt,{decimalPlaces:b,disabled:n,max:$,min:w,name:d,placeholder:p})},[n,s,r,d,p]);return t.jsxs(Kn,{$align:a,$minHeight:l,$minWidth:c,children:[t.jsx(ze,{description:e,id:i,title:x,tooltip:u}),f]})},Ei=o.dt.label`
|
|
1145
1149
|
${({theme:e})=>`
|
|
1146
1150
|
align-items: start;
|
|
1147
1151
|
color: ${e.palette.gray[600]};
|
|
@@ -1775,7 +1779,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
1775
1779
|
}
|
|
1776
1780
|
}
|
|
1777
1781
|
`}
|
|
1778
|
-
`,Bt=({author:e,buttonText:n,description:i,eventDate:a,href:r,imageId:s,mode:l="light",publishDate:c,readingTime:d,tag:p,tagPosition:u="top",title:x})=>{const f=o.nt(),b=c==null?void 0:c.split("-"),$=l==="dark",
|
|
1782
|
+
`,Bt=({author:e,buttonText:n,description:i,eventDate:a,href:r,imageId:s,mode:l="light",publishDate:c,readingTime:d,tag:p,tagPosition:u="top",title:x})=>{const f=o.nt(),b=c==null?void 0:c.split("-"),$=l==="dark",w=t.jsxs(gr,{"data-testid":`content-card-${x}`,children:[s||a||p&&u==="top"?t.jsxs(h,{id:"card-image",position:"relative",children:[s&&t.jsx(G,{publicId:s}),u==="top"&&t.jsx(We,{tag:p,tagPosition:u}),t.jsx(Wt,{eventDate:a})]}):void 0,t.jsxs(h,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.5,id:"card-content",children:[u==="bottom"&&t.jsx(We,{tag:p,tagPosition:u}),e||b||d?t.jsxs(h,{display:"flex",justify:"space-between",width:"100%",children:[e&&b&&t.jsx(j,{color:f.palette.gray[$?300:400],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:e+` • ${b[0]} ${b[1]}, ${b[2]}`}),d&&t.jsxs(h,{alignItems:"center",display:"flex",gap:.25,justify:"center",minWidth:"60px",children:[t.jsx(v,{icon:"eye",iconColor:f.palette.gray[$?300:400],iconSize:"xs",iconType:"fa-light"}),t.jsx(j,{color:f.palette.gray[$?300:400],size:"sm",sizeSm:"xs",textAlign:"right",children:d})]})]}):void 0,t.jsx(W,{className:`title-${l}`,color:$?f.palette.white:f.palette.gray[800],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:x}),i&&t.jsx(j,{color:f.palette.gray[$?100:600],size:"md",sizeSm:"sm",children:i}),n&&r&&t.jsx(E,{href:r,variant:"link",children:n})]})]});return r?t.jsx("a",{className:"flex w-fit",href:r,rel:"noopener noreferrer",target:"_self",children:w}):w},ur=({description:e,items:n,title:i,titleHighlighted:a})=>{const r=g.useRef(null);return t.jsxs(pr,{"data-testid":"content-card-carousel",children:[t.jsxs(h,{alignItems:"flex-start",display:"flex",justify:"space-between",children:[t.jsxs(h,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.625,maxWidth:"800px",children:[t.jsxs(W,{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(j,{lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:e})]}),t.jsx(Le,{containerRef:r,id:"desktop"})]}),t.jsx(h,{alignSelf:"stretch",display:"flex",id:"carousel",pb:1,pr:2.25,ref:r,scroll:"x",children:t.jsx(h,{alignItems:"flex-start",display:"flex",gap:1.5,width:"max-content",children:n.map((s,l)=>t.jsx(Bt,{...s},`${l}-${s.title}`))})}),t.jsx(Le,{containerRef:r,id:"mobile"})]})},ee=g.forwardRef(function({color:n=C.palette.gray[100],mt:i=.5,mb:a=.5,...r},s){return t.jsx(h,{as:"hr",borderBottom:`1px solid ${n}`,mb:a,mt:i,ref:s,width:"100%",...r})}),Be=({buttonProps:e,variant:n})=>t.jsx(E,{onClick:e.onClick,variant:n,children:e.text}),xr=o.dt.div`
|
|
1779
1783
|
display: flex;
|
|
1780
1784
|
flex-direction: column;
|
|
1781
1785
|
align-items: center;
|
|
@@ -1915,7 +1919,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
1915
1919
|
border-radius: ${e.spacing[.5]};
|
|
1916
1920
|
width: 250px;
|
|
1917
1921
|
`}
|
|
1918
|
-
`,se=g.forwardRef(function({name:n,smallSearch:i=!1,value:a,...r},s){const l=o.nt(),[c,d]=g.useState(!1),{refs:p,floatingStyles:u}=o.useFloating(),x=g.useCallback(()=>{d(b=>!b)},[]);Q(p.floating.current,()=>{d(!1)},!0);const f=t.jsxs(Cr,{children:[t.jsx(v,{icon:"magnifying-glass",iconColor:l.palette.gray[700],iconSize:"xs",iconType:"fa-light"}),t.jsx(kr,{...r,id:n,name:n,ref:s,value:a}),!o.lodashExports.isEmpty(a)&&t.jsx(O,{icon:"xmark",iconColor:l.palette.gray[300],iconSize:"xs",iconType:"fa-light",px:.25,py:.25,type:"reset",variant:"ghost"})]});return i?t.jsxs(g.Fragment,{children:[t.jsx(O,{border:`1px solid ${l.palette.gray[300]} !important`,icon:"magnifying-glass",iconSize:"xs",iconType:"fa-light",onClick:x,ref:p.setReference,variant:"ghost"}),c?t.jsx(vr,{ref:p.setFloating,style:u,children:f}):void 0]}):f}),Sr=({isOpen:e=!0,items:n,handleNewOrganization:i,onSelect:a,onClose:r,selectedItem:s,title:l,variant:c})=>{const d=o.nt(),[p,u]=g.useState(n),[x,f]=g.useState(""),b=g.useCallback(y=>{u(
|
|
1922
|
+
`,se=g.forwardRef(function({name:n,smallSearch:i=!1,value:a,...r},s){const l=o.nt(),[c,d]=g.useState(!1),{refs:p,floatingStyles:u}=o.useFloating(),x=g.useCallback(()=>{d(b=>!b)},[]);Q(p.floating.current,()=>{d(!1)},!0);const f=t.jsxs(Cr,{children:[t.jsx(v,{icon:"magnifying-glass",iconColor:l.palette.gray[700],iconSize:"xs",iconType:"fa-light"}),t.jsx(kr,{...r,id:n,name:n,ref:s,value:a}),!o.lodashExports.isEmpty(a)&&t.jsx(O,{icon:"xmark",iconColor:l.palette.gray[300],iconSize:"xs",iconType:"fa-light",px:.25,py:.25,type:"reset",variant:"ghost"})]});return i?t.jsxs(g.Fragment,{children:[t.jsx(O,{border:`1px solid ${l.palette.gray[300]} !important`,icon:"magnifying-glass",iconSize:"xs",iconType:"fa-light",onClick:x,ref:p.setReference,variant:"ghost"}),c?t.jsx(vr,{ref:p.setFloating,style:u,children:f}):void 0]}):f}),Sr=({isOpen:e=!0,items:n,handleNewOrganization:i,onSelect:a,onClose:r,selectedItem:s,title:l,variant:c})=>{const d=o.nt(),[p,u]=g.useState(n),[x,f]=g.useState(""),b=g.useCallback(y=>{u(m=>m.filter(k=>String(k.name).toLowerCase().includes(y.toLocaleLowerCase())))},[u]),$=g.useCallback(y=>{y.currentTarget&&(f(y.currentTarget.value),b(y.currentTarget.value))},[f,b]);g.useEffect(()=>{u(n),b(x)},[n,b,x]);const w=()=>t.jsx(h,{"aria-modal":"true",className:"comp-modal fixed inset-0 overflow-auto",zIndex:99999,children:t.jsx(h,{alignItems:"center",bgColor:"rgb(52 64 84 / 70%)",display:"flex",height:"100vh",justify:"center",left:"0",top:"0",width:"100%",children:t.jsxs(jr,{$itemsLength:p.length,children:[t.jsxs(h,{alignItems:"center",display:"flex",justify:"space-between",children:[t.jsx(j,{color:d.palette.gray[800],fontWeight:"bold",size:"lg",children:l}),t.jsx(O,{icon:"xmark",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:r,variant:"ghost"})]}),t.jsx(h,{mt:1,children:t.jsx(se,{onInput:$,placeholder:"Search"})}),t.jsx(ee,{mb:1,mt:1}),t.jsxs(h,{display:"inline-flex",gap:1,maxHeight:"332px",scroll:"y",wrap:"wrap",children:[c==="organization-selector"?t.jsx(Ge,{onClick:i,children:t.jsxs(h,{alignItems:"center",display:"flex",children:[t.jsx(v,{icon:"square-plus",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",mr:.5}),t.jsx(j,{color:d.palette.gray[400],size:"sm",children:"New organization"})]})}):void 0,p.map(y=>t.jsx(Mt,{isSelected:s.toLowerCase()===y.name,label:y.name.charAt(0).toUpperCase()+y.name.slice(1),onSelect:a},y.name))]})]})})});return e?te.createPortal(w(),document.body):t.jsx("div",{})},zr=({description:e,height:n="auto",leftIconName:i,children:a,rightIconName:r,title:s,tooltipId:l,tooltipTip:c,tooltipPlace:d="bottom",variant:p="centered",width:u="318px"})=>{const x=o.nt(),f=p==="centered",b=t.jsx(Y,{icon:r??i,iconColor:x.palette.gray[800],id:l,place:d,tip:c});return t.jsxs(h,{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(h,{alignItems:"center",display:"flex",gap:.5,children:[f||o.lodashExports.isUndefined(i)?void 0:b,t.jsx(j,{color:f?x.palette.gray[800]:x.palette.gray[400],size:"md",textAlign:f?"center":"start",children:e}),f||o.lodashExports.isUndefined(r)?void 0:b]}),t.jsxs(h,{alignItems:"center",display:"flex",gap:.5,my:.5,children:[f&&!o.lodashExports.isUndefined(i)?b:void 0,t.jsxs("div",{style:{display:"flex",gap:"12px"},children:[o.lodashExports.isUndefined(s)?void 0:t.jsx(W,{fontWeight:"bold",size:"md",children:s}),a]}),f&&!o.lodashExports.isUndefined(r)?b:void 0]})]})},Ir=({actions:e,children:n,header:i,title:a,tabs:r,footer:s})=>{const l=o.nt();return t.jsxs(h,{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(h,{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(h,{display:"flex",flexDirection:"column",gap:.25,children:[t.jsx(j,{color:l.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:a}),i]}),e&&t.jsx(h,{display:"flex",gap:.25,children:e.map(({icon:c,onClick:d},p)=>t.jsx(O,{icon:c??"paper-plane",iconColor:l.palette.gray[400],iconSize:"xxs",iconType:"fa-light",onClick:d,variant:"ghost"},`${p}-${c}`))})]}),t.jsx(h,{display:"flex",pt:.25,width:"100%",children:t.jsx(Ve,{items:r})}),t.jsx(h,{alignSelf:"stretch",display:"flex",flexDirection:"column",px:1.25,py:1,scroll:"y",children:n}),s&&t.jsx(h,{alignSelf:"stretch",borderTop:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.5,justify:"end",px:1.25,py:1,children:s.map(({icon:c,text:d,onClick:p},u)=>t.jsx(E,{icon:c,onClick:p,variant:u===0?"primary":"tertiary",width:"100%",children:d},`${u}-${d}`))})]})},Tr=o.dt.div`
|
|
1919
1923
|
${({theme:e})=>`
|
|
1920
1924
|
align-items: flex-start;
|
|
1921
1925
|
backdrop-filter: blur(3.15px);
|
|
@@ -2206,7 +2210,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2206
2210
|
min-width: 240px;
|
|
2207
2211
|
padding: ${e.spacing[.25]} 0 ${e.spacing[.25]} 0;
|
|
2208
2212
|
`}
|
|
2209
|
-
`,$e=({children:e,disabled:n=!1,icon:i,iconType:a="fa-light",href:r,onClick:s,onClickIcon:l,onKeyDown:c,rightIcon:d,selected:p=!1,value:u,...x})=>{const b=o.nt().palette.gray[n?300:800],$=n?g.Children.map(e,
|
|
2213
|
+
`,$e=({children:e,disabled:n=!1,icon:i,iconType:a="fa-light",href:r,onClick:s,onClickIcon:l,onKeyDown:c,rightIcon:d,selected:p=!1,value:u,...x})=>{const b=o.nt().palette.gray[n?300:800],$=n?g.Children.map(e,w=>g.isValidElement(w)?g.cloneElement(w,{disabled:n,...w.props}):w):e;return t.jsxs(Yr,{"aria-disabled":n,"aria-label":u,"aria-selected":p,"data-testid":u,onClick:s,onKeyDown:c,value:u,...x,children:[i!==void 0||u!==void 0?t.jsxs(h,{alignItems:"center",display:"flex",gap:.625,children:[i?t.jsx(v,{disabled:n,icon:i,iconColor:b,iconSize:"xs",iconType:a}):null,r===void 0?$:t.jsx(Z,{href:r,children:$})]}):null,p||d?t.jsx(v,{disabled:n,icon:d??"check",iconColor:b,iconSize:"xs",iconType:a,onClick:l}):null]})},Kr=o.dt.span`
|
|
2210
2214
|
${({theme:e,$bgColor:n=e.palette.secondary[500],$txtDecoration:i="none"})=>`
|
|
2211
2215
|
background-color: ${n};
|
|
2212
2216
|
border-radius: 5px;
|
|
@@ -2431,7 +2435,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2431
2435
|
&::-webkit-inner-spin-button {
|
|
2432
2436
|
opacity: 1;
|
|
2433
2437
|
}
|
|
2434
|
-
`,Ta=g.forwardRef(function({autoUpdate:n=!1,decimalPlaces:i=0,defaultValue:a=0,max:r,min:s,name:l,onEnter:c,tooltipMessage:d,...p},u){const x=i<0?0:i,[f,b]=g.useState(Number(a).toFixed(x)),$=g.useCallback(
|
|
2438
|
+
`,Ta=g.forwardRef(function({autoUpdate:n=!1,decimalPlaces:i=0,defaultValue:a=0,max:r,min:s,name:l,onEnter:c,tooltipMessage:d,...p},u){const x=i<0?0:i,[f,b]=g.useState(Number(a).toFixed(x)),$=g.useCallback(m=>{const k=o.lodashExports.toNumber(m.target.value);m.target.value.endsWith(".")?b(m.target.value):k>=Number(s)&&k<=Number(r)&&(b(String(k)),n&&c(o.lodashExports.toNumber(k.toFixed(x)))),m.stopPropagation()},[n,x,r,s,c]),w=g.useCallback(m=>{m.currentTarget.contains(m.relatedTarget)||b(Number(a).toFixed(x)),m.stopPropagation()},[x,a]),y=g.useCallback(m=>{m.stopPropagation(),m.key==="Enter"&&!o.lodashExports.isEmpty(m.currentTarget.value)&&c(o.lodashExports.toNumber(m.currentTarget.value))},[c]);return t.jsx(za,{onBlur:w,tabIndex:-1,children:t.jsx(Y,{id:"numberInputTooltip",tip:d,children:t.jsx(Ia,{...p,"aria-label":l,"aria-valuemax":Number(r),"aria-valuemin":Number(s),"aria-valuenow":Number(f),max:r,min:s,name:l,onChange:$,onKeyUp:y,ref:u,step:10**-x,type:"number",value:f})})})}),Na={Azure:"integrates/autoenrollment/azureIcon",Bitbucket:"integrates/autoenrollment/bitbucketLogo",GitHub:"integrates/autoenrollment/githubLogo",GitLab:"integrates/autoenrollment/gitlabIcon"},Me=({icon:e,label:n,onClick:i,onlyLabel:a=!1,provider:r="GitLab"})=>{const s=o.nt();return t.jsxs(h,{alignItems:"center",bgColorHover:s.palette.gray[100],borderRadius:"4px",cursor:"pointer",display:"flex",flexDirection:"column",gap:.25,height:"62px",justify:"center",minWidth:"64px",onClick:i,pb:.5,pl:.25,pr:.25,pt:.5,children:[a?!1:t.jsx(h,{height:"24px",width:"24px",children:e===void 0?t.jsx(G,{alt:`${r} Logo`,height:"100%",publicId:Na[r],width:"100%"}):t.jsx(v,{icon:e,iconColor:"#000",iconSize:"sm",iconType:"fa-light"})}),t.jsx(h,{alignItems:"center",display:"flex",minWidth:"24px",children:t.jsx(j,{color:s.palette.gray[800],display:"inline",size:"xs",textAlign:"center",whiteSpace:a?"break-spaces":"nowrap",wordWrap:"unset",children:n??r})})]})},Ra=({align:e="end",buttonLabel:n="Add Credential",children:i,id:a,manualOption:r,providers:s})=>{const l=o.nt(),[c,d]=g.useState(!1),p=g.useRef(null);Q(p.current,()=>{d(!1)},!0);const u=g.useCallback(b=>{r==null||r.onClick(b),d(!1)},[r]),x=g.useCallback(()=>{d(b=>!b)},[d]),f=g.useCallback(b=>$=>{var w;(w=s[b])==null||w.onClick($),d(!1)},[s]);return t.jsxs(h,{alignItems:e,display:"flex",flexDirection:"column",position:"relative",ref:p,width:"max-content",zIndex:10,children:[t.jsx(E,{icon:"plus",onClick:x,variant:"primary",children:n}),t.jsxs(h,{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(s).map(b=>t.jsx(Me,{onClick:f(b),provider:b},b)),r===void 0?void 0:t.jsx(Me,{icon:"square-plus",label:r.label??"Add manually",onClick:u}),i]})]})},Gt=()=>t.jsx(h,{alignItems:"center",bgColor:C.palette.primary[25],borderRadius:"8px",gap:.5,justify:"center",padding:[.125,.25,.125,.25],width:"max-content",children:t.jsx(j,{bgGradient:C.palette.gradients["01"],fontWeight:"semibold",size:"xs",textFill:"transparent",children:"Recommended"})}),Ea=o.dt.div`
|
|
2435
2439
|
${({className:e,theme:n})=>`
|
|
2436
2440
|
align-items: flex-start;
|
|
2437
2441
|
border-radius: ${n.spacing[1]};
|
|
@@ -2497,7 +2501,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2497
2501
|
}
|
|
2498
2502
|
`}
|
|
2499
2503
|
`;const Da={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
|
|
2500
|
-
through our scanning tool.`,priceAuthor:"$499",priceGroup:"$1,579"}},Fa=({description:e,onClick:n,plan:i})=>{const{title:a,description:r,benefits:s,buttonText:l}=Da[i],c=e??r;return t.jsxs(Ea,{className:i,children:[t.jsxs(h,{display:"flex",flexDirection:"column",gap:.25,pt:i==="essential"?1.75:0,children:[i==="advanced"&&t.jsx(Gt,{}),t.jsx(W,{color:C.palette.gray[900],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:a}),t.jsx(j,{color:C.palette.gray[400],fontWeight:"semibold",pb:i==="essential"?1.25:0,size:"sm",sizeSm:"xs",children:s})]}),t.jsx(j,{lineSpacing:1.5,lineSpacingSm:1.25,pb:i==="advanced"?1.5:0,size:"md",sizeSm:"sm",children:c}),t.jsx(E,{onClick:n,variant:"primary",children:l})]})},Ut=({description:e="",highlightDescription:n=""})=>{const i=o.nt(),a=typeof n=="string",r=a?"":new RegExp(`(${n.join("|")})`,"u");return n.length>0?t.jsx(j,{display:"inline",lineSpacing:1.5,size:"lg",textAlign:"center",children:a?t.jsxs(g.Fragment,{children:[t.jsx(je,{color:i.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:n}),e]}):e.split(r).map((s,l)=>n.includes(s)?t.jsx(je,{color:i.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:s},`${l+1}-bold`):s)}):t.jsx(j,{lineSpacing:1.5,size:"lg",textAlign:"center",children:e})},Pa=({_portal:e=!1,cancelButton:n,darkBackground:i=!1,children:a,confirmButton:r,container:s,description:l,highlightDescription:c="",image:d,maxWidth:p,title:u,titleColor:x})=>{const f=o.nt(),{alt:b,src:$,width:
|
|
2504
|
+
through our scanning tool.`,priceAuthor:"$499",priceGroup:"$1,579"}},Fa=({description:e,onClick:n,plan:i})=>{const{title:a,description:r,benefits:s,buttonText:l}=Da[i],c=e??r;return t.jsxs(Ea,{className:i,children:[t.jsxs(h,{display:"flex",flexDirection:"column",gap:.25,pt:i==="essential"?1.75:0,children:[i==="advanced"&&t.jsx(Gt,{}),t.jsx(W,{color:C.palette.gray[900],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:a}),t.jsx(j,{color:C.palette.gray[400],fontWeight:"semibold",pb:i==="essential"?1.25:0,size:"sm",sizeSm:"xs",children:s})]}),t.jsx(j,{lineSpacing:1.5,lineSpacingSm:1.25,pb:i==="advanced"?1.5:0,size:"md",sizeSm:"sm",children:c}),t.jsx(E,{onClick:n,variant:"primary",children:l})]})},Ut=({description:e="",highlightDescription:n=""})=>{const i=o.nt(),a=typeof n=="string",r=a?"":new RegExp(`(${n.join("|")})`,"u");return n.length>0?t.jsx(j,{display:"inline",lineSpacing:1.5,size:"lg",textAlign:"center",children:a?t.jsxs(g.Fragment,{children:[t.jsx(je,{color:i.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:n}),e]}):e.split(r).map((s,l)=>n.includes(s)?t.jsx(je,{color:i.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:s},`${l+1}-bold`):s)}):t.jsx(j,{lineSpacing:1.5,size:"lg",textAlign:"center",children:e})},Pa=({_portal:e=!1,cancelButton:n,darkBackground:i=!1,children:a,confirmButton:r,container:s,description:l,highlightDescription:c="",image:d,maxWidth:p,title:u,titleColor:x})=>{const f=o.nt(),{alt:b,src:$,width:w="77px",height:y="77px"}=d,m=g.useCallback(()=>{n==null||n.onClick()},[n]),k=g.useCallback(()=>{r==null||r.onClick()},[r]),S=t.jsx(h,{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(h,{bgColor:f.palette.white,border:`1px solid ${f.palette.gray[200]}`,borderRadius:"8px",display:"inline-flex",flexDirection:"column",maxWidth:p,pb:2.5,pl:2.5,pr:2.5,pt:2.5,shadow:"lg",width:"100%",zIndex:11,children:[t.jsxs(h,{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",children:[t.jsx(h,{children:t.jsx(G,{alt:b,height:y,publicId:$,width:w})}),t.jsxs(h,{display:"flex",flexDirection:"column",gap:.5,mb:1.5,mt:1.5,children:[t.jsx(W,{color:x,fontWeight:"bold",lineSpacing:2.5,size:"lg",textAlign:"center",children:u}),t.jsx(Ut,{description:l,highlightDescription:c})]})]}),a&&t.jsx(h,{mb:1,scroll:"y",children:t.jsx(h,{height:"100%",children:a})}),t.jsxs(h,{alignItems:"flex-start",display:"flex",gap:1,justify:"center",children:[o.lodashExports.isObject(r)?t.jsx(E,{onClick:k,variant:(r==null?void 0:r.variant)??"primary",children:r==null?void 0:r.text},r==null?void 0:r.key):void 0,o.lodashExports.isObject(n)?t.jsx(E,{onClick:m,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?te.createPortal(S,s??document.body):S},La=o.dt.div`
|
|
2501
2505
|
${({theme:e})=>`
|
|
2502
2506
|
height: ${e.spacing[1]};
|
|
2503
2507
|
width: ${e.spacing[1]};
|
|
@@ -2816,7 +2820,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2816
2820
|
height: ${e.spacing[.5]};
|
|
2817
2821
|
}
|
|
2818
2822
|
`}
|
|
2819
|
-
`,we=({hit:e,icon:n="infinity",showIcon:i=!1})=>{const{slug:a,title:r}=e,s=String(a).startsWith("/pages/")?String(a).replace("/pages/","/"):String(a);return t.jsxs(Ka,{href:s,rel:"nofollow noopener noreferrer",children:[i&&t.jsx(qa,{children:t.jsx(v,{icon:n,iconClass:"fill-gradient-01",iconSize:"sm",iconType:"fa-light"})}),t.jsx(j,{color:C.palette.gray[800],lineSpacing:1.5,size:"md",sizeSm:"sm",whiteSpace:"wrap",children:String(r)})]})},eo=[{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"}],it={hit:{slug:"/contact-us/",title:"Contact Support"},icon:"envelope"},to=({items:e,placeholder:n="Search",refine:i,query:a})=>{const[r,s]=g.useState(a),[l,c]=g.useState(!1),d=g.useRef(null),p=g.useRef(null),u=r.length>=2,x=g.useCallback(
|
|
2823
|
+
`,we=({hit:e,icon:n="infinity",showIcon:i=!1})=>{const{slug:a,title:r}=e,s=String(a).startsWith("/pages/")?String(a).replace("/pages/","/"):String(a);return t.jsxs(Ka,{href:s,rel:"nofollow noopener noreferrer",children:[i&&t.jsx(qa,{children:t.jsx(v,{icon:n,iconClass:"fill-gradient-01",iconSize:"sm",iconType:"fa-light"})}),t.jsx(j,{color:C.palette.gray[800],lineSpacing:1.5,size:"md",sizeSm:"sm",whiteSpace:"wrap",children:String(r)})]})},eo=[{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"}],it={hit:{slug:"/contact-us/",title:"Contact Support"},icon:"envelope"},to=({items:e,placeholder:n="Search",refine:i,query:a})=>{const[r,s]=g.useState(a),[l,c]=g.useState(!1),d=g.useRef(null),p=g.useRef(null),u=r.length>=2,x=g.useCallback(m=>{s(m),i(m)},[i]),f=g.useCallback(()=>{x("")},[x]),b=g.useCallback(()=>{c(!0)},[]),$=g.useCallback(m=>{x(m.currentTarget.value)},[x]),w=g.useCallback(m=>{m.preventDefault(),m.stopPropagation(),f(),p.current&&p.current.focus()},[f]),y=g.useCallback(m=>{m.preventDefault(),m.stopPropagation(),p.current&&p.current.blur()},[]);return Q(d.current,()=>{f(),c(!1)},!0),t.jsxs(Xa,{ref:d,children:[t.jsxs(Za,{action:"",noValidate:!0,onReset:w,onSubmit:y,role:"search",children:[t.jsxs("div",{className:"flex gap-2 w-full",children:[t.jsx("div",{className:"h-10 p-2",children:t.jsx(v,{icon:"magnifying-glass",iconSize:"sm",iconType:"fa-light"})}),t.jsx(Ja,{autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",maxLength:512,onChange:$,onFocus:b,placeholder:n,ref:p,spellCheck:!1,type:"search",value:r})]}),u&&t.jsx(Qa,{type:"reset",children:t.jsx(v,{icon:"xmark",iconSize:"sm",iconType:"fa-light"})})]}),l&&r.length<2&&t.jsxs(Ee,{children:[t.jsx(j,{color:C.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:eo.map(({hit:m,icon:k},S)=>t.jsx(we,{hit:m,icon:k,showIcon:!0},`${k}-${S}`))}),t.jsx(j,{color:C.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Can’t find what you’re looking for?"}),t.jsx(we,{hit:it.hit,icon:it.icon,showIcon:!0})]}),u&&e.length>0&&t.jsxs(Ee,{$showHits:u,children:[t.jsx(j,{color:C.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(m=>t.jsx(we,{hit:m},m.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(G,{height:96,publicId:"airs/search-bar/empty-state-icon",width:96}),t.jsx(W,{display:"flex",size:"sm",sizeSm:"xs",textAlign:"center",children:"No results found"}),t.jsxs(j,{display:"flex",lineSpacing:1.5,size:"md",sizeSm:"sm",textAlign:"center",children:[`“${r}” did not match.`,t.jsx("br",{}),"Please try again."]}),t.jsx(E,{onClick:f,variant:"secondary",children:"Clear search"})]})})]})},no={critical:{bgColor:C.palette.primary[700],colorL:C.palette.gray[800],colorR:C.palette.white},disable:{bgColor:C.palette.gray[200],colorL:C.palette.gray[400],colorR:C.palette.gray[400]},high:{bgColor:C.palette.error[500],colorL:C.palette.gray[800],colorR:C.palette.white},low:{bgColor:C.palette.warning[200],colorL:C.palette.gray[800],colorR:C.palette.gray[800]},medium:{bgColor:C.palette.warning[500],colorL:C.palette.gray[800],colorR:C.palette.gray[800]}},io=({textL:e,textR:n,variant:i})=>{const a=o.nt(),{bgColor:r,colorL:s,colorR:l}=no[i];return t.jsxs(h,{alignItems:"flex-start",display:"inline-flex",children:[e?t.jsx(h,{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(j,{color:s,size:"xs",children:e})}):void 0,t.jsx(h,{alignItems:"center",bgColor:r,border:`1px solid ${r}`,borderRadius:e?"0px 4px 4px 0px":"4px",display:"flex",padding:e?[0,.25,0,.125]:[0,.25,0,.25],pb:.125,pl:.125,pr:.125,pt:.125,children:t.jsx(j,{color:l,size:"xs",children:n})})]})},ro=(e,n)=>{const i={critical:C.palette.primary[700],high:C.palette.error[500],low:C.palette.warning[200],medium:C.palette.warning[500],none:C.palette.gray[200]},a={disabled:C.palette.gray[400],enabled:C.palette.gray[800]},r={critical:C.palette.white,high:C.palette.white,low:C.palette.gray[800],medium:C.palette.gray[800],none:C.palette.gray[400]};return{iconColor:n<1?i.none:i[e],iconText:o.lodashExports.capitalize(e.charAt(0)),iconTextColor:n<1?r.none:r[e],textColor:n<1?a.disabled:a.enabled}},ae=({variant:e,value:n})=>{const{iconColor:i,iconText:a,iconTextColor:r,textColor:s}=ro(e,n),l=o.lodashExports.capitalize(e.charAt(0))+e.slice(1);return t.jsxs(h,{alignItems:"center",display:"inline-flex",gap:.5,minWidth:"43px",children:[t.jsx(Y,{id:l,place:"top",tip:l,children:t.jsx(h,{alignItems:"center",bgColor:i,borderRadius:"4px",cursor:"pointer",display:"flex",height:"22px",maxWidth:"22px",minWidth:"22px",children:t.jsx(j,{color:r,size:"sm",textAlign:"center",children:a})})}),t.jsx(j,{color:s,size:"sm",children:n})]})},ao=({critical:e,high:n,medium:i,low:a})=>t.jsxs(h,{alignItems:"center",display:"inline-flex",gap:1,children:[t.jsx(ae,{value:e,variant:"critical"}),t.jsx(ae,{value:n,variant:"high"}),t.jsx(ae,{value:i,variant:"medium"}),t.jsx(ae,{value:a,variant:"low"})]}),oo=o.dt.div`
|
|
2820
2824
|
${({theme:e})=>`
|
|
2821
2825
|
border-radius: ${e.spacing[.25]};
|
|
2822
2826
|
cursor: pointer;
|
|
@@ -2857,7 +2861,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2857
2861
|
height: auto;
|
|
2858
2862
|
}
|
|
2859
2863
|
`}
|
|
2860
|
-
`,co=({children:e,closeIconId:n="close-menu",isOpen:i,items:a,onClose:r,primaryButtonText:s,primaryOnClick:l,secondaryButtonText:c,secondaryOnClick:d,title:p})=>{const u=o.nt(),x=g.useRef(null),f=g.useCallback(b=>()=>{b(),r()},[r]);return Q(x.current,()=>{r()},!0),t.jsx(o.LazyMotion,{features:o.domAnimation,children:t.jsx(lo,{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(h,{height:"100%",position:"relative",children:[t.jsxs(h,{alignItems:"center",bgColor:u.palette.white,borderBottom:"1px solid",borderColor:u.palette.gray[200],display:"flex",gap:1.25,justify:"space-between",padding:[1.25,1.25,1.25,1.25],position:"sticky",top:"0",zIndex:40,children:[t.jsx(j,{color:u.palette.black,display:"inline",fontWeight:"bold",size:"xl",children:p}),t.jsx(O,{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(h,{display:"flex",flexDirection:"column",justify:"space-between",minHeight:"100vh",children:[t.jsxs(h,{py:1.25,children:[(a??[]).map(({customBadge:b,description:$,icon:
|
|
2864
|
+
`,co=({children:e,closeIconId:n="close-menu",isOpen:i,items:a,onClose:r,primaryButtonText:s,primaryOnClick:l,secondaryButtonText:c,secondaryOnClick:d,title:p})=>{const u=o.nt(),x=g.useRef(null),f=g.useCallback(b=>()=>{b(),r()},[r]);return Q(x.current,()=>{r()},!0),t.jsx(o.LazyMotion,{features:o.domAnimation,children:t.jsx(lo,{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(h,{height:"100%",position:"relative",children:[t.jsxs(h,{alignItems:"center",bgColor:u.palette.white,borderBottom:"1px solid",borderColor:u.palette.gray[200],display:"flex",gap:1.25,justify:"space-between",padding:[1.25,1.25,1.25,1.25],position:"sticky",top:"0",zIndex:40,children:[t.jsx(j,{color:u.palette.black,display:"inline",fontWeight:"bold",size:"xl",children:p}),t.jsx(O,{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(h,{display:"flex",flexDirection:"column",justify:"space-between",minHeight:"100vh",children:[t.jsxs(h,{py:1.25,children:[(a??[]).map(({customBadge:b,description:$,icon:w,onClick:y,requiresUpgrade:m,title:k})=>t.jsx(Kt,{customBadge:b,description:$,icon:w,onClick:f(y),requiresUpgrade:m,title:k},k)),e&&t.jsx(h,{px:1.25,children:e})]}),s===void 0?void 0:t.jsxs(h,{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:s})]})]})]})})})},po=(e,n)=>n>=50?`
|
|
2861
2865
|
${e.palette.gray[200]} 50%,
|
|
2862
2866
|
${e.palette.primary[500]} 50.05%,
|
|
2863
2867
|
${e.palette.primary[500]} ${n}%,
|
|
@@ -2933,7 +2937,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2933
2937
|
padding: ${e.spacing[.625]} ${e.spacing[.75]};
|
|
2934
2938
|
width: 59px;
|
|
2935
2939
|
`}
|
|
2936
|
-
`,qt=({state:e,trackRef:n,index:i,name:a})=>{const r=g.useRef(null),{thumbProps:s,inputProps:l,isDragging:c}=o.$47b897dc8cdb026b$export$8d15029008292ae({index:i,trackRef:n,inputRef:r},e);return t.jsx("div",{...s,className:`thumb ${c?"dragging":""}`,children:t.jsx(o.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:t.jsx("input",{...l,"aria-label":a,ref:r})})})},fo=(e,n,i)=>Math.round((i-e)/(n-e)*100),ho=e=>{const n=o.nt(),i=g.useRef(null),{
|
|
2940
|
+
`,qt=({state:e,trackRef:n,index:i,name:a})=>{const r=g.useRef(null),{thumbProps:s,inputProps:l,isDragging:c}=o.$47b897dc8cdb026b$export$8d15029008292ae({index:i,trackRef:n,inputRef:r},e);return t.jsx("div",{...s,className:`thumb ${c?"dragging":""}`,children:t.jsx(o.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:t.jsx("input",{...l,"aria-label":a,ref:r})})})},fo=(e,n,i)=>Math.round((i-e)/(n-e)*100),ho=e=>{const n=o.nt(),i=g.useRef(null),{label:a,name:r}=e,{control:s}=o.useFormContext(),{field:{onChange:l,value:c}}=o.useController({name:r,control:s}),{minValue:d=0,maxValue:p=100}=e,u=o.$a916eb452884faea$export$b7a616150fdb9f44(),x=o.$28f99e3e86e6ec45$export$e5fda3247f5d67f9({...e,numberFormatter:u,onChange:l,value:c}),f=fo(d,p,x.getThumbValue(0)),{groupProps:b,trackProps:$}=o.$bcca50147b47f54d$export$56b2c08e277f365({...e,"aria-label":r,id:r},x,i);return t.jsx(H,{htmlFor:r,label:a,children:t.jsxs(h,{alignItems:"center",display:"inline-flex",gap:1.25,pl:.5,width:"100%",children:[t.jsxs(go,{...b,$min:d??0,$value:f,className:"slider",children:[t.jsx("div",{...$,className:`track ${x.isDisabled?"disabled":""}`,ref:i,children:t.jsx(qt,{index:0,name:r,state:x,trackRef:i})}),t.jsxs(uo,{children:[t.jsx("p",{children:`${u.format(d)} (Low)`}),d<0&&t.jsx("p",{children:"0"}),t.jsx("p",{children:`${u.format(p)} (High)`})]})]}),t.jsx(xo,{children:t.jsx(j,{color:n.palette.gray[800],size:"sm",textAlign:"right",children:x.getThumbValueLabel(0)})})]})})},{getVariant:bo}=U(e=>({completed:`
|
|
2937
2941
|
background-color: ${e.palette.primary[500]};
|
|
2938
2942
|
color: ${e.palette.white};
|
|
2939
2943
|
|
|
@@ -3011,7 +3015,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
3011
3015
|
|
|
3012
3016
|
${bo(e,n)}
|
|
3013
3017
|
`}
|
|
3014
|
-
`,jo=({button:{disabled:e=!1,text:n,type:i="button",onClick:a},steps:r})=>{const[s,l]=g.useState(1),c=g.useCallback((d,p)=>()=>{l(u=>u+d),p==null||p()},[]);return t.jsx($o,{children:r.map((d,p)=>{const{content:u,title:x,nextAction:f,previousAction:b}=d,$=p+1,
|
|
3018
|
+
`,jo=({button:{disabled:e=!1,text:n,type:i="button",onClick:a},steps:r})=>{const[s,l]=g.useState(1),c=g.useCallback((d,p)=>()=>{l(u=>u+d),p==null||p()},[]);return t.jsx($o,{children:r.map((d,p)=>{const{content:u,title:x,nextAction:f,previousAction:b}=d,$=p+1,w=$===s?"current":"disabled",y=$<s?"completed":w;return t.jsxs(yo,{children:[t.jsx(h,{maxWidth:"40px",position:"relative",children:t.jsx(wo,{$variant:y,children:y==="completed"?t.jsx(v,{icon:"check",iconSize:"xs",iconType:"fa-solid"}):$})}),t.jsxs(h,{ml:1.5,width:"100%",children:[t.jsx(W,{fontWeight:"bold",lineSpacing:1.25,mb:1.5,size:"xs",children:x}),y==="current"&&t.jsxs(h,{children:[u,t.jsxs(mo,{children:[s>1&&t.jsx(E,{disabled:d.isDisabledPrevious??!1,onClick:c(-1,b),variant:"tertiary",children:"Previous"}),s<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)})})},ko=o.dt.button`
|
|
3015
3019
|
${({theme:e})=>`
|
|
3016
3020
|
align-items: center;
|
|
3017
3021
|
background-color: ${e.palette.white};
|