@fluidattacks/design 3.10.4 → 3.10.5-pr-01
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/@core/index.js +1 -1
- package/dist/components/accordion/accordion-content/index.js +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/card/card-header/index.js +1 -1
- package/dist/components/card/card-with-image/index.js +1 -1
- package/dist/components/card/card-with-input/index.js +1 -1
- package/dist/components/card/card-with-options/index.js +1 -1
- package/dist/components/card/card-with-selector/index.js +1 -1
- package/dist/components/card/card-with-switch/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/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.d.ts +1 -1
- package/dist/components/form/index.js +1 -1
- package/dist/components/form/inner-form/index.js +1 -1
- package/dist/components/form/types.d.ts +19 -9
- package/dist/components/grid-container/index.js +1 -1
- package/dist/components/group-selector/index.js +1 -1
- package/dist/components/group-selector/option-container/index.js +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/indicator-card/index.js +1 -1
- package/dist/components/info-sidebar/index.js +1 -1
- package/dist/components/inputs/fields/combobox/field/index.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/field/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/index.js +1 -1
- package/dist/components/inputs/fields/number/index.js +1 -1
- package/dist/components/inputs/fields/number-range/index.js +1 -1
- package/dist/components/inputs/fields/phone/index.js +1 -1
- package/dist/components/inputs/fields/text-area/index.js +1 -1
- package/dist/components/inputs/index.js +1 -1
- package/dist/components/inputs/label/index.js +1 -1
- package/dist/components/inputs/outline-container/index.js +1 -1
- package/dist/components/inputs/utils/action-button/index.js +1 -1
- package/dist/components/inputs/utils/calendar-button/index.js +1 -1
- package/dist/components/inputs/utils/date-selector/index.js +1 -1
- package/dist/components/inputs/utils/date-time-field/index.js +1 -1
- package/dist/components/inputs/utils/dialog/index.js +1 -1
- package/dist/components/inputs/utils/number-field/index.js +1 -1
- package/dist/components/inputs/utils/popover/index.js +1 -1
- package/dist/components/interactive-card/icon/index.js +1 -1
- package/dist/components/interactive-card/index.js +1 -1
- package/dist/components/language-selector/index.js +1 -1
- package/dist/components/language-selector/item-list/index.js +1 -1
- package/dist/components/layout/categories/buttons/index.js +1 -1
- package/dist/components/layout/categories/column/index.js +1 -1
- package/dist/components/layout/categories/gap/index.js +1 -1
- package/dist/components/layout/categories/row/index.js +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list-item/index.js +1 -1
- package/dist/components/little-flag/index.js +1 -1
- package/dist/components/loading/index.js +1 -1
- package/dist/components/logo/index.js +1 -1
- package/dist/components/logo-carousel/index.js +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/message-banner/index.js +1 -1
- package/dist/components/modal/columns-modal/index.js +1 -1
- package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
- package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-control/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/index.js +1 -1
- package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
- package/dist/components/modal/filters-modal/index.js +1 -1
- package/dist/components/modal/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-Da8k01uM.js → components-BsQYJp-f.js} +41 -41
- package/dist/{components-Be5vY-MX.mjs → components-CsFXi8G7.mjs} +136 -134
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -178,11 +178,11 @@
|
|
|
178
178
|
|
|
179
179
|
${i===void 0?"":`&::after { content: "${i}"; }`}
|
|
180
180
|
`}
|
|
181
|
-
`,
|
|
181
|
+
`,W=u.forwardRef(function({bgGradient:n,children:i,className:a,color:r,display:o,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:p,lineSpacingSm:g,size:x,sizeMd:f,sizeSm:h,textFill:y,whiteSpace:$,wordBreak:m,...w},j){return t.jsx(Ln,{$bgGradient:n,$color:r,$display:o,$fontFamily:l,$fontWeight:c,$letterSpacing:d,$lineSpacing:p,$lineSpacingSm:g,$size:x,$sizeMd:f,$sizeSm:h,$textFill:y,$whiteSpace:$,$wordBreak:m,className:a,ref:j,...w,children:i})}),we=u.forwardRef(function({children:n,color:i,content:a,display:r,fontFamily:o,fontWeight:l,letterSpacing:c,lineSpacing:d,lineSpacingSm:p,size:g,sizeMd:x,sizeSm:f,...h},y){return t.jsx(Mn,{$color:i,$content:a,$display:r,$fontFamily:o,$fontWeight:l,$letterSpacing:c,$lineSpacing:d,$lineSpacingSm:p,$size:g,$sizeMd:x,$sizeSm:f,ref:y,...h,children:n})}),v=u.forwardRef(function({bgGradient:n,children:i,className:a,color:r,display:o,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:p,lineSpacingSm:g,size:x,sizeMd:f,sizeSm:h,textFill:y,whiteSpace:$,wordBreak:m,...w},j){return t.jsx(ut,{$bgGradient:n,$color:r,$display:o,$fontFamily:l,$fontWeight:c,$letterSpacing:d,$lineSpacing:p,$lineSpacingSm:g,$size:x,$sizeMd:f,$sizeSm:h,$textFill:y,$whiteSpace:$,$wordBreak:m,className:a,ref:j,...w,children:i})}),xt=({item:e})=>{const n=e.description&&typeof e.description=="string"?t.jsx(v,{mb:e.extraElement?.5:void 0,size:"sm",children:e.description}):e.description??void 0;return t.jsxs(b,{display:"block",id:`panel-${e.title}`,padding:[.75,.75,.75,.75],children:[n,e.extraElement?t.jsx(b,{children:e.extraElement}):void 0]})},Wn={xl:"96px",lg:"64px",md:"32px",sm:"24px",xs:"16px",xxs:"12px",xxss:"10px"},An=s.dt(gt)`
|
|
182
182
|
${({$clickable:e,$color:n="inherit",$disabled:i=!1,$hoverColor:a,$rotation:r,$size:o,$secondaryColor:l})=>{const c=a?"":"brightness(50%)",d=a??"";return`
|
|
183
183
|
color: ${n};
|
|
184
184
|
cursor: ${e?"pointer":"inherit"};
|
|
185
|
-
font-size: ${
|
|
185
|
+
font-size: ${Wn[o]};
|
|
186
186
|
line-height: 0;
|
|
187
187
|
vertical-align: middle;
|
|
188
188
|
pointer-events: inherit;
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
&:hover:not([disabled]) {
|
|
215
215
|
transform: scale(1.2);
|
|
216
216
|
}
|
|
217
|
-
`;const z=u.forwardRef(function({clickable:n,disabled:i,hoverColor:a,icon:r,iconClass:o="",iconColor:l,iconMask:c,iconSize:d,iconTransform:p,iconType:g="fa-solid",onClick:x,rotation:f,spanClass:h,secondaryColor:y,...$},m){return t.jsx(
|
|
217
|
+
`;const z=u.forwardRef(function({clickable:n,disabled:i,hoverColor:a,icon:r,iconClass:o="",iconColor:l,iconMask:c,iconSize:d,iconTransform:p,iconType:g="fa-solid",onClick:x,rotation:f,spanClass:h,secondaryColor:y,...$},m){return t.jsx(An,{$clickable:n,$color:l,$disabled:i,$hoverColor:a,$rotation:f,$secondaryColor:y,$size:d,className:h,"data-testid":`${r}-icon`,onClick:x,ref:m,...$,children:t.jsx("i",{className:`${g} fa-${r} ${o}`,...c!==void 0?{"data-fa-mask":c}:{},...p!==void 0?{"data-fa-transform":p}:{}})},`${g}-${r}`)}),Bn=u.forwardRef(function({aligned:n="end",items:i,bgColor:a},r){const o=s.nt(),[l,c]=u.useState(!1),[d,p]=u.useState(-1),g=u.useCallback(x=>()=>{p(x),c(x===d?f=>!f:!0)},[d]);return t.jsx(b,{ref:r,children:i.map((x,f)=>{const h=f===d&&l;return t.jsxs(b,{bgColor:a??o.palette.white,children:[t.jsx(b,{"aria-controls":`panel-${x.title}`,"aria-expanded":l,"aria-label":x.title,as:"button",bgColor:a??o.palette.white,bgColorHover:o.palette.gray[100],borderBottom:h||f===i.length-1?"1px solid":void 0,borderColor:o.palette.gray[200],borderTop:"1px solid",cursor:"pointer",display:"flex",onClick:g(f),padding:[.75,.75,.75,.75],width:"100%",children:t.jsxs(b,{as:"summary",display:"flex",flexDirection:n==="end"?"row":"row-reverse",gap:.75,justify:"space-between",width:"100%",children:[t.jsx(v,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",sizeSm:"sm",textAlign:"start",children:x.title}),t.jsx(z,{icon:h?"chevron-up":"chevron-down",iconColor:o.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]})}),h&&t.jsx(xt,{item:x})]},x.title)})})}),Hn=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:Vn}=U(e=>({error:`
|
|
218
218
|
background: ${e.palette.error[50]};
|
|
219
219
|
border: 1px solid ${e.palette.error[500]};
|
|
220
220
|
color: ${e.palette.error[700]};
|
|
@@ -414,7 +414,7 @@
|
|
|
414
414
|
width: max-content;
|
|
415
415
|
z-index: 999999;
|
|
416
416
|
`}
|
|
417
|
-
`,Y=({children:e,disabled:n=!1,display:i="inline-block",height:a,icon:r,iconColor:o,iconSize:l,id:c,maxWidth:d,nodeTip:p,place:g="bottom",tip:x="",title:f="",hide:h=x===""&&f===""&&p===void 0,width:y})=>{const $=s.nt(),[m,w]=u.useState(!1),{refs:j,floatingStyles:C,context:S}=s.useFloating({middleware:[s.flip({fallbackAxisSideDirection:"start"}),s.offset({mainAxis:10}),s.shift()],onOpenChange:w,open:m,placement:g,whileElementsMounted:s.autoUpdate}),k=s.useHover(S,{delay:{close:0,open:500},move:!1}),N=s.useFocus(S),E=s.useRole(S,{role:r?"label":"tooltip"}),{getReferenceProps:P,getFloatingProps:M}=s.useInteractions([k,N,E]);return n?t.jsx(u.StrictMode,{children:e}):t.jsxs(t.Fragment,{children:[t.jsx(Yn,{...P(),display:i,height:a,id:c,ref:j.setReference,width:y,children:r?t.jsx(z,{clickable:!0,disabled:n,icon:r,iconColor:o,iconSize:l??"xxs",iconType:m?"fa-solid":"fa-light"}):e}),m&&!h&&G.createPortal(t.jsxs(Kn,{...M(),$maxWidth:d,id:`floating-${c}`,ref:j.setFloating,style:C,children:[s.lodashExports.isEmpty(f)?void 0:t.jsx(v,{color:$.palette.white,fontWeight:"bold",lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:f}),s.lodashExports.isEmpty(x)?void 0:t.jsx(v,{color:$.palette.gray[100],lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:x}),s.lodashExports.isEmpty(p)?void 0:p]}),document.getElementById("root")??document.body)]})},
|
|
417
|
+
`,Y=({children:e,disabled:n=!1,display:i="inline-block",height:a,icon:r,iconColor:o,iconSize:l,id:c,maxWidth:d,nodeTip:p,place:g="bottom",tip:x="",title:f="",hide:h=x===""&&f===""&&p===void 0,width:y})=>{const $=s.nt(),[m,w]=u.useState(!1),{refs:j,floatingStyles:C,context:S}=s.useFloating({middleware:[s.flip({fallbackAxisSideDirection:"start"}),s.offset({mainAxis:10}),s.shift()],onOpenChange:w,open:m,placement:g,whileElementsMounted:s.autoUpdate}),k=s.useHover(S,{delay:{close:0,open:500},move:!1}),N=s.useFocus(S),E=s.useRole(S,{role:r?"label":"tooltip"}),{getReferenceProps:P,getFloatingProps:M}=s.useInteractions([k,N,E]);return n?t.jsx(u.StrictMode,{children:e}):t.jsxs(t.Fragment,{children:[t.jsx(Yn,{...P(),display:i,height:a,id:c,ref:j.setReference,width:y,children:r?t.jsx(z,{clickable:!0,disabled:n,icon:r,iconColor:o,iconSize:l??"xxs",iconType:m?"fa-solid":"fa-light"}):e}),m&&!h&&G.createPortal(t.jsxs(Kn,{...M(),$maxWidth:d,id:`floating-${c}`,ref:j.setFloating,style:C,children:[s.lodashExports.isEmpty(f)?void 0:t.jsx(v,{color:$.palette.white,fontWeight:"bold",lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:f}),s.lodashExports.isEmpty(x)?void 0:t.jsx(v,{color:$.palette.gray[100],lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:x}),s.lodashExports.isEmpty(p)?void 0:p]}),document.getElementById("root")??document.body)]})},A=u.forwardRef(function({borderRadius:n,disabled:i,icon:a,iconColor:r,iconSize:o="xxs",iconTransform:l,iconType:c,id:d,justify:p="center",onClick:g,px:x,py:f,type:h="button",tooltip:y,tooltipPlace:$,value:m,variant:w="primary",...j},C){const S=t.jsx(Un,{$borderRadius:n,$px:x,$py:f,$variant:w,"aria-disabled":i,"aria-label":d,borderRadius:n,disabled:i,id:d,justify:p,onClick:g,ref:C,type:h,value:m,...j,children:t.jsx(z,{clickable:!1,icon:a,iconColor:r,iconSize:o,iconTransform:l,iconType:c})}),N=(h+(w??"")+(d??a)).replace(/ /u,"_");return y===void 0?S:t.jsx(Y,{id:`${N}-tooltip`,place:$,tip:y,children:S})}),qn=u.forwardRef(function({autoHide:n=!1,children:i,closable:a=!1,onTimeOut:r,show:o=!0,time:l=8,variant:c="error",id:d,...p},g){const[x,f]=u.useState(o),h=u.useCallback(()=>{f(!1)},[]);return u.useEffect(()=>{const y=setTimeout(()=>{r==null||r(!0),n&&h()},l*1e3);return()=>{clearTimeout(y)}},[n,h,l,r]),u.useEffect(()=>{f(o)},[o,f]),t.jsx(b,{display:x?"block":"none",ref:g,role:"alert",...p,children:t.jsxs(On,{$variant:c,id:d,children:[t.jsx(z,{clickable:!1,icon:Hn(c),iconSize:"xs",iconType:"fa-light"}),t.jsx(_n,{children:i}),a?t.jsx(A,{height:"fit-content",icon:"close",iconSize:"xs",iconType:"fa-light",onClick:h,px:.125,py:.125,variant:"ghost"}):void 0]})})}),tt=s.dt.div`
|
|
418
418
|
${({theme:e})=>`
|
|
419
419
|
align-items: center;
|
|
420
420
|
background-color: ${e.palette.gray[200]};
|
|
@@ -632,7 +632,7 @@
|
|
|
632
632
|
${ht}
|
|
633
633
|
`,ti=s.dt(Re.Link)`
|
|
634
634
|
${ht}
|
|
635
|
-
`,q=({children:e,color:n,download:i,href:a,iconPosition:r="right",onClick:o,target:l,variant:c="lowRelevance"})=>{const d=a.startsWith("https://"),p=t.jsx(z,{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(ei,{$color:n,$variant:c,download:i,href:a,onClick:o,rel:"nofollow noopener noreferrer",target:l??"_blank",children:[r==="left"?p:void 0,e,r==="right"?p:void 0]}):t.jsxs(ti,{$variant:c,download:i,onClick:o,rel:"nofollow noopener noreferrer",target:l,to:a,children:[l!==void 0&&r==="left"?p:void 0,e,l!==void 0&&r==="right"?p:void 0]})},X=({disabled:e,icon:n,iconColor:i="inherit",iconType:a="fa-light",id:r="close-tag",filterValues:o="",fontSize:l,href:c,linkLabel:d,onClose:p,priority:g="default",tagTitle:x="",tagLabel:f,variant:h="default"})=>{const y=f.length>25&&s.lodashExports.isEmpty(x+o),$=`${f.slice(0,25)}...`;return t.jsxs(we,{className:"gap-0.5",display:c===void 0?"initial":"flex",size:"sm",children:[t.jsxs(Jn,{$fontSize:l,$variant:h,className:g,children:[n&&t.jsx(z,{icon:n,iconColor:i,iconSize:"xxs",iconType:a}),t.jsxs("span",{children:[t.jsx("strong",{children:x}),t.jsx("span",{children:y?$:f}),t.jsx("strong",{children:o})]}),p?t.jsx(
|
|
635
|
+
`,q=({children:e,color:n,download:i,href:a,iconPosition:r="right",onClick:o,target:l,variant:c="lowRelevance"})=>{const d=a.startsWith("https://"),p=t.jsx(z,{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(ei,{$color:n,$variant:c,download:i,href:a,onClick:o,rel:"nofollow noopener noreferrer",target:l??"_blank",children:[r==="left"?p:void 0,e,r==="right"?p:void 0]}):t.jsxs(ti,{$variant:c,download:i,onClick:o,rel:"nofollow noopener noreferrer",target:l,to:a,children:[l!==void 0&&r==="left"?p:void 0,e,l!==void 0&&r==="right"?p:void 0]})},X=({disabled:e,icon:n,iconColor:i="inherit",iconType:a="fa-light",id:r="close-tag",filterValues:o="",fontSize:l,href:c,linkLabel:d,onClose:p,priority:g="default",tagTitle:x="",tagLabel:f,variant:h="default"})=>{const y=f.length>25&&s.lodashExports.isEmpty(x+o),$=`${f.slice(0,25)}...`;return t.jsxs(we,{className:"gap-0.5",display:c===void 0?"initial":"flex",size:"sm",children:[t.jsxs(Jn,{$fontSize:l,$variant:h,className:g,children:[n&&t.jsx(z,{icon:n,iconColor:i,iconSize:"xxs",iconType:a}),t.jsxs("span",{children:[t.jsx("strong",{children:x}),t.jsx("span",{children:y?$:f}),t.jsx("strong",{children:o})]}),p?t.jsx(A,{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(q,{href:c,children:d})]})},ni=(e,n=!0)=>{const i=window.open(e,n?void 0:"_self","noopener,noreferrer,");s.lodashExports.isObject(i)&&(i.opener=null)},R=u.forwardRef(function({children:n,disabled:i=!1,external:a=!1,href:r,id:o,icon:l,name:c,onClick:d,showArrow:p=!1,tag:g,type:x="button",tooltip:f,tooltipPlace:h="bottom",underline:y=!1,value:$,variant:m="primary",...w},j){const C=f!==void 0,S=`${o}-tooltip`,k=u.useCallback(()=>{r&&ni(r,a)},[a,r]);return t.jsx(Y,{disabled:!C,id:S,place:h,tip:f,children:t.jsxs(ft,{$variant:m,"aria-disabled":i,className:y?"underline":void 0,disabled:i,id:o,name:c,onClick:m==="link"?k:d,ref:j,type:x,value:$,...C?{"data-tooltip-id":S}:{},...w,children:[l!==void 0&&t.jsx(z,{icon:l,iconSize:"xs",iconType:"fa-light"}),n,(p||m==="link")&&t.jsx(z,{icon:"arrow-right",iconSize:"xs",iconType:"fa-light"}),g===void 0?null:t.jsx(X,{tagLabel:g,variant:"inactive"})]})})}),ii=u.forwardRef(function({children:n,onClick:i,userName:a,showIcon:r=!1,showUsername:o=!1},l){const c=!!i;return t.jsx(b,{id:"navbar-user-profile",ref:l,zIndex:9999,children:t.jsxs(b,{alignItems:"end",display:"flex",flexDirection:"column",position:"relative",zIndex:30,children:[c?t.jsxs(R,{onClick:i,pb:.5,pl:.5,pr:.5,pt:.5,variant:"ghost",children:[t.jsx(tt,{children:a[0].toUpperCase()}),o?t.jsx(v,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:a.split(" ")[0]}):void 0,r?t.jsx(z,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}):t.jsxs(b,{alignItems:"center",display:"flex",px:.5,py:.5,children:[t.jsx(tt,{children:a[0].toUpperCase()}),o?t.jsxs(v,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:["Hi ",a.split(" ")[0],"!"]}):void 0,r?t.jsx(z,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}),t.jsx(Xn,{children:n})]})})}),Ce=({authorEmail:e,date:n,description:i,descriptionColor:a,id:r,title:o,titleColor:l,textAlign:c,textSpacing:d=0,tooltip:p})=>{const g=s.nt();return t.jsxs(b,{width:"100%",children:[typeof o=="string"?t.jsx(v,{color:l??g.palette.gray[800],fontWeight:"bold",mb:d,size:"sm",textAlign:c,wordBreak:"break-word",children:o}):o,t.jsxs(b,{alignItems:"start",display:"flex",flexDirection:"column",gap:.25,children:[i&&t.jsx(v,{color:a??g.palette.gray[800],fontWeight:i===void 0?"bold":"regular",size:"sm",textAlign:c,wordBreak:"break-word",children:i}),n&&t.jsx(v,{color:g.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`Date: ${n.split(" ")[0]}`}),e&&t.jsx(v,{color:g.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})]})]})},nt=s.dt(b).attrs(({...e})=>({display:"inline-block",position:"relative",...e}))`
|
|
636
636
|
& img {
|
|
637
637
|
display: block;
|
|
638
638
|
}
|
|
@@ -647,7 +647,7 @@
|
|
|
647
647
|
pointer-events: none;
|
|
648
648
|
${({$opacity:e=0})=>`background-color: rgba(0, 0, 0, ${e});`}
|
|
649
649
|
}
|
|
650
|
-
`,ai=e=>{if(s._.isNil(e))return"";const n=e.split(".");return(n.length>1?s._.last(n):"").toLowerCase()},ri=(e,n)=>s._.isUndefined(n)?!1:s._.includes(e,ai(n)),bt=({alt:e,fileType:n,width:i="100%",opacity:a=0,src:r,height:o="auto"})=>n==="video"||ri(["webm"],r)?t.jsx(nt,{$opacity:a,children:t.jsxs("video",{controls:!0,muted:!0,style:{height:o,width:i},children:[t.jsx("source",{src:r,type:"video/webm"}),t.jsx(q,{href:r,iconPosition:"hidden",children:r})]})}):t.jsx(nt,{$opacity:a,children:t.jsx("img",{alt:e,src:r,style:{height:o,width:i}})}),oi=({alt:e,authorEmail:n,date:i,description:a,src:r,children:o,isEditing:l,onClick:c,title:d,hideDescription:p=!1,headerType:g="image",showMaximize:x=!0})=>{const f=s.nt(),[h,y]=u.useState(!1),$=u.useCallback(()=>{y(!0)},[]),m=u.useCallback(()=>{y(!1)},[]);return t.jsxs(b,{bgColor:"transparent",border:"1px solid transparent",borderColorHover:"black",borderRadius:f.spacing[.25],display:"flex",flexDirection:"column",gap:1,onHover:$,onLeave:m,padding:[.5,.5,.5,.5],width:"100%",children:[t.jsx(b,{cursor:l?"unset":"pointer",display:"inline-flex",justify:"center",onClick:c,position:"relative",width:"100%",children:o===void 0?t.jsxs(u.Fragment,{children:[t.jsx(bt,{alt:e,fileType:g,height:"147px",opacity:h?.3:0,src:r,width:"100%"}),x?t.jsx(b,{bottom:"10px",position:"absolute",right:"10px",children:t.jsx(
|
|
650
|
+
`,ai=e=>{if(s._.isNil(e))return"";const n=e.split(".");return(n.length>1?s._.last(n):"").toLowerCase()},ri=(e,n)=>s._.isUndefined(n)?!1:s._.includes(e,ai(n)),bt=({alt:e,fileType:n,width:i="100%",opacity:a=0,src:r,height:o="auto"})=>n==="video"||ri(["webm"],r)?t.jsx(nt,{$opacity:a,children:t.jsxs("video",{controls:!0,muted:!0,style:{height:o,width:i},children:[t.jsx("source",{src:r,type:"video/webm"}),t.jsx(q,{href:r,iconPosition:"hidden",children:r})]})}):t.jsx(nt,{$opacity:a,children:t.jsx("img",{alt:e,src:r,style:{height:o,width:i}})}),oi=({alt:e,authorEmail:n,date:i,description:a,src:r,children:o,isEditing:l,onClick:c,title:d,hideDescription:p=!1,headerType:g="image",showMaximize:x=!0})=>{const f=s.nt(),[h,y]=u.useState(!1),$=u.useCallback(()=>{y(!0)},[]),m=u.useCallback(()=>{y(!1)},[]);return t.jsxs(b,{bgColor:"transparent",border:"1px solid transparent",borderColorHover:"black",borderRadius:f.spacing[.25],display:"flex",flexDirection:"column",gap:1,onHover:$,onLeave:m,padding:[.5,.5,.5,.5],width:"100%",children:[t.jsx(b,{cursor:l?"unset":"pointer",display:"inline-flex",justify:"center",onClick:c,position:"relative",width:"100%",children:o===void 0?t.jsxs(u.Fragment,{children:[t.jsx(bt,{alt:e,fileType:g,height:"147px",opacity:h?.3:0,src:r,width:"100%"}),x?t.jsx(b,{bottom:"10px",position:"absolute",right:"10px",children:t.jsx(A,{color:"white",icon:"arrows-maximize",iconSize:"xxs",iconType:"fa-light",variant:"secondary"})}):void 0]}):o}),p?null:t.jsx(Ce,{authorEmail:n,date:i,description:a,descriptionColor:f.palette.gray[600],id:`${e}-card-header`,title:d})]})},si=s.dt.div`
|
|
651
651
|
${({theme:e,$align:n="center",$minWidth:i="auto",$minHeight:a="auto"})=>`
|
|
652
652
|
display: flex;
|
|
653
653
|
background-color: ${e.palette.white};
|
|
@@ -855,7 +855,7 @@
|
|
|
855
855
|
}
|
|
856
856
|
}
|
|
857
857
|
`}
|
|
858
|
-
`,$t=({item:e,state:n})=>{const i=s.nt(),a=u.useRef(null),{optionProps:r,isSelected:o,isFocused:l,isDisabled:c}=s.$293f70390ea03370$export$497855f14858aa34({key:e.key},n,a),d=[o?"selected":"",l?"focused":"",c?"disabled":""].join(" ");return t.jsxs(di,{...r,className:d,ref:a,children:[t.jsx(v,{color:i.palette.gray[800],size:"sm",textOverflow:"ellipsis",whiteSpace:"nowrap",children:e.rendered}),o?t.jsx(z,{icon:"check",iconSize:"xxs",iconType:"fa-light"}):void 0]})},De=({field:e,disabled:n=!1,error:i,helpLink:a,helpLinkText:r,helpText:o,label:l,loadingItems:c,name:d,items:p,onBlur:g,onChange:x,placeholder:f,required:h,tooltip:y,value:$,weight:m})=>{var et;const w=s.nt(),j=n?void 0:i,C=(e==null?void 0:e.value)??$,[S,k]=u.useState(((et=p.find(L=>L.value===C))==null?void 0:et.name)??""),[N,E]=u.useState(C),[P,M]=u.useState(p),[D,F]=u.useState(!1),{contains:
|
|
858
|
+
`,$t=({item:e,state:n})=>{const i=s.nt(),a=u.useRef(null),{optionProps:r,isSelected:o,isFocused:l,isDisabled:c}=s.$293f70390ea03370$export$497855f14858aa34({key:e.key},n,a),d=[o?"selected":"",l?"focused":"",c?"disabled":""].join(" ");return t.jsxs(di,{...r,className:d,ref:a,children:[t.jsx(v,{color:i.palette.gray[800],size:"sm",textOverflow:"ellipsis",whiteSpace:"nowrap",children:e.rendered}),o?t.jsx(z,{icon:"check",iconSize:"xxs",iconType:"fa-light"}):void 0]})},De=({field:e,disabled:n=!1,error:i,helpLink:a,helpLinkText:r,helpText:o,label:l,loadingItems:c,name:d,items:p,onBlur:g,onChange:x,placeholder:f,required:h,tooltip:y,value:$,weight:m})=>{var et;const w=s.nt(),j=n?void 0:i,C=(e==null?void 0:e.value)??$,[S,k]=u.useState(((et=p.find(L=>L.value===C))==null?void 0:et.name)??""),[N,E]=u.useState(C),[P,M]=u.useState(p),[D,F]=u.useState(!1),{contains:B}=s.$bb77f239b46e8c72$export$3274cf84b703fff({sensitivity:"base"}),O=u.useRef(null),te=u.useRef(null),Ee=u.useRef(null),Ze=u.useRef(null),Je=u.useRef(null),cn=u.useMemo(()=>p.map(L=>B(L.name,S)||D?t.jsx(s.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,{children:L.name},L.value):null),[B,S,p,D]),dn=u.useCallback(L=>{k(L),L===""?F(!0):(F(!1),E(V=>{const $e=L===""?"":V;return e&&e.onChange($e),x&&x(L),$e}),M(p.filter(V=>B(V.name,L))))},[B,p,e,x]),pn=u.useCallback(L=>{var V;k(((V=p.find($e=>$e.value===L))==null?void 0:V.name)??""),E(L?String(L):""),e&&e.onChange(L),x&&x(L?String(L):""),M(p)},[p,e,x]),Qe=u.useCallback(L=>{L.key==="Enter"&&L.preventDefault(),F(!1)},[]),gn=u.useCallback(()=>{g&&g(),e&&e.onBlur()},[e,g]),K=s.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({allowsEmptyCollection:!0,inputValue:S,items:P,menuTrigger:"focus",shouldCloseOnBlur:!0,selectedKey:N,onBlur:gn,onInputChange:dn,onKeyDown:Qe,onKeyUp:()=>{F(!0)},onOpenChange(L,V){F(L&&(V==="manual"||V==="focus"))},onSelectionChange:pn,children:cn}),{buttonProps:un,inputProps:xn,listBoxProps:fn}=s.$c350ade66beef0af$export$8c18d1b4f7232bbf({inputValue:S,buttonRef:te,id:d,inputRef:O,label:l??d,listBoxRef:Ee,name:d,placeholder:f,popoverRef:Je},K),{listBoxProps:hn}=s.$c132121280ec012d$export$50eacbbf140a3141(fn,K,Ee),{buttonProps:bn}=s.$701a24aa0da5b062$export$ea18c227d4417cc3(un,te);return u.useEffect(()=>{var L;(c===!1||!C)&&k(((L=p.find(V=>V.value===C))==null?void 0:L.name)??"")},[C,p,c]),t.jsxs(H,{error:j,helpLink:a,helpLinkText:r,helpText:o,htmlFor:d,label:l,required:h,tooltip:y,weight:m,children:[t.jsxs(Z,{className:`${n?"disabled":""} ${j?"error":""}`,ref:Ze,children:[t.jsx("input",{...xn,"aria-invalid":j?"true":"false","aria-label":d,onKeyDown:Qe,ref:O}),j?t.jsx(z,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:w.palette.error[500],iconSize:"xs"}):void 0,t.jsx(A,{...bn,className:"action",icon:K.isOpen?"chevron-up":"chevron-down",iconColor:w.palette.gray[400],iconSize:"xxs",iconType:"fa-light",px:.125,py:.125,ref:te,type:"button",variant:"ghost"})]}),K.isOpen&&K.collection.size>0&&!n?t.jsx(xe,{className:"dropdown",offset:4,placement:"bottom start",popoverRef:Je,state:K,triggerRef:Ze,children:t.jsx(ci,{...hn,ref:Ee,children:[...K.collection].map(L=>t.jsx($t,{item:L,state:K},L.key))})}):null]})},pi=({control:e,disabled:n=!1,error:i,helpLink:a,helpLinkText:r,helpText:o,label:l,loadingItems:c,name:d,items:p,onBlur:g,onChange:x,placeholder:f,required:h,tooltip:y,value:$,weight:m})=>e?t.jsx(s.Controller,{control:e,name:d,render:({field:w})=>t.jsx(De,{disabled:n,error:i,field:w,helpLink:a,helpLinkText:r,helpText:o,items:p,label:l,loadingItems:c,name:d,onBlur:g,onChange:x,placeholder:f,required:h,tooltip:y,value:$,weight:m}),rules:{required:h}}):t.jsx(De,{disabled:n,error:i,helpLink:a,helpLinkText:r,helpText:o,items:p,label:l,loadingItems:c,name:d,onBlur:g,onChange:x,placeholder:f,required:h,tooltip:y,value:$,weight:m}),gi=s.dt.div`
|
|
859
859
|
${({theme:e})=>`
|
|
860
860
|
align-items: center;
|
|
861
861
|
color: ${e.palette.gray[800]};
|
|
@@ -1087,7 +1087,7 @@
|
|
|
1087
1087
|
font-weight: ${e.typography.weight.bold};
|
|
1088
1088
|
}
|
|
1089
1089
|
`}
|
|
1090
|
-
`,je=({disabled:e=!1,icon:n,props:i})=>{const a=u.useRef(null),{buttonProps:r}=s.$701a24aa0da5b062$export$ea18c227d4417cc3(i,a);return t.jsx(yi,{...r,$disabled:e,$focus:!!r["aria-expanded"],$header:n==="calendar"||n==="calendar-clock",disabled:e,ref:a,type:"button",children:t.jsx(z,{icon:n,iconColor:I.palette.gray[e?400:700],iconSize:"xs",iconType:"fa-light"})})},ze=({state:e,prevButtonProps:n,nextButtonProps:i,title:a})=>{const r=e.focusedDate,o=u.useCallback(()=>{e.setFocusedDate(r.add({years:1}))},[r,e]),l=u.useCallback(()=>{e.setFocusedDate(r.subtract({years:1}))},[r,e]);return t.jsxs("div",{className:"header flex items-start",children:[t.jsx(je,{icon:"chevron-left",props:n}),t.jsxs(gi,{children:[a,t.jsxs(ui,{children:[t.jsx(at,{"aria-label":"top",onClick:o,children:t.jsx(z,{icon:"caret-up",iconClass:"fa-sharp",iconSize:"xxss"})}),t.jsx(at,{"aria-label":"bottom",onClick:l,children:t.jsx(z,{icon:"caret-down",iconClass:"fa-sharp",iconSize:"xxss"})})]})]}),t.jsx(je,{icon:"chevron-right",props:i})]})},wt=({onClose:e,props:n})=>{const{locale:i}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),a=s.$131cf43a05231e1e$export$6d095e787d2b5e1f({...n,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:r,nextButtonProps:o,title:l}=s.$9942cad8a072a530$export$3ee915f8151bd4f1(n,a);return t.jsxs("div",{className:"calendar",children:[t.jsx(ze,{nextButtonProps:o,prevButtonProps:r,state:a,title:l}),t.jsx(Se,{state:a}),t.jsx(Ue,{children:t.jsx(R,{onClick:e,variant:"ghost",children:"Cancel"})})]})},jt=({segment:e,state:n})=>{const i=s.nt(),a=u.useRef(null),o={...e,placeholder:{day:"dd",dayPeriod:"(AM/PM)",era:"",hour:"hh",literal:"",minute:"mm",month:"mm",second:"",timeZoneName:"",year:"yyyy"}[e.type]},{segmentProps:l}=s.$32489daedd52963e$export$1315d136e6f7581(o,n,a),c=i.palette.gray[o.isEditable?800:500];return t.jsx("div",{...o.type!=="literal"&&{...l,className:"segment-cell"},ref:a,style:o.type==="literal"?void 0:{color:o.isPlaceholder?i.palette.gray[400]:c},children:o.isPlaceholder?o.placeholder:o.text})},kt=({disabled:e,error:n=!1,props:i})=>{const a=s.nt(),r=u.useRef(null),o=s.$3c0fc76039f1c516$export$60e84778edff6d26({...i,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:"en-US"}),{fieldProps:l}=s.$16f0b7bb276bc17e$export$5591b0b878c1a989(i,o,r),c=u.useCallback(d=>{const p=document.getElementsByClassName("segment-cell"),g=d.currentTarget;Object.values(p).some(x=>x.contains(g))||(d.preventDefault(),d.stopPropagation())},[]);return t.jsxs(mi,{...l,onClick:c,children:[t.jsx("div",{className:"flex flex-row",style:{color:a.palette.gray[s.lodashExports.isNil(o.value)?400:800]},tabIndex:-1,children:o.segments.map((d,p)=>{const g=`key_${p}`;return t.jsx(jt,{segment:{...d,isEditable:!e},state:o},g)})}),n?t.jsx(z,{icon:"exclamation-circle",iconColor:a.palette.error[500],iconSize:"xs"}):void 0]})},vt=e=>{const n=u.useRef(null),i=s.$eff5d8ee529ac4bb$export$fd53cef0cc796101({...e,locale:"en-US",shouldForceLeadingZeros:!0}),{timeValue:a}=i,r=!s.lodashExports.isNil(a)&&a.hour<12?"AM":"PM",[o,l]=u.useState(s.lodashExports.isNil(a)?"AM":r),{fieldProps:c}=s.$16f0b7bb276bc17e$export$4c842f6a241dc825(e,i,n),d=u.useCallback(p=>{const g=p.currentTarget.name;g!==o&&(s.lodashExports.isNil(a)||(g==="AM"?i.setSegment("dayPeriod",0):g==="PM"&&i.setSegment("dayPeriod",12))),l(g)},[o,i,a]);return t.jsxs(wi,{children:[t.jsx(rt,{...c,ref:n,children:i.segments.slice(0,-2).map((p,g)=>{const x=`key_${g}`;return t.jsx(jt,{segment:p,state:i},x)})}),t.jsxs(rt,{children:[t.jsx(ot,{id:o==="AM"?"active":"",name:"AM",onClick:d,type:"button",children:"AM"}),t.jsx(ot,{id:o==="PM"?"active":"",name:"PM",onClick:d,type:"button",children:"PM"})]})]})},Ct=e=>e&&e!=="-"?s.dayjs(e).format("YYYY-MM-DD"):"-",ji=e=>e&&e!=="-"?s.dayjs(e).format("YYYY-MM-DD hh:mm A"):"-",ki=e=>e&&e!=="-"?s.dayjs(e).format("YYYY/MM/DD hh:mm A"):"-",ae=({error:e,buttonProps:n,datePickerRef:i,disabled:a=!1,granularity:r="day",fieldProps:o,groupProps:l,name:c,register:d,required:p,setValue:g,value:x})=>{const f=u.useCallback(h=>{o.onChange&&o.onChange(h),g&&g(c,r==="day"?Ct(String(h)):ji(String(h)))},[o,r,c,g]);return t.jsxs(Z,{...l,className:`${a?"disabled":""} ${e?"error":""}`,ref:i,children:[t.jsx(kt,{disabled:a,error:e!=null,props:{...o,autoFocus:!1,granularity:r,onChange:f,shouldForceLeadingZeros:!0}}),t.jsx(je,{disabled:a,icon:r==="minute"?"calendar-clock":"calendar",props:n}),t.jsx("input",{...d==null?void 0:d(c,{required:p}),"aria-label":c,className:"date-input",disabled:a,id:c,name:c,type:"text",value:x})]})},Ie=({children:e,...n})=>{const i=u.useRef(null),{dialogProps:a}=s.$40df3f8667284809$export$d55e7ee900f34e93(n,i);return t.jsx($i,{...a,ref:i,children:e})},St=({disabled:e=!1,error:n,helpLink:i,helpLinkText:a,helpText:r,required:o,label:l,name:c,register:d,setValue:p,tooltip:g,watch:x,...f})=>{const h=u.useRef(null),y=x==null?void 0:x(c),$=s.$ab5bf3f618090389$export$87194bb378cc3ac2({...f,value:s._.isNil(y)||s._.isEmpty(y)||y==="-"?null:s.$fae977aafc393c5c$export$6b862160d295c8e(y.replace(/\//gu,"-"))}),{close:m}=$,{groupProps:w,fieldProps:j,buttonProps:C,dialogProps:S,calendarProps:k}=s.$6057a3d2a53a12fd$export$42df105a73306d51({...f,"aria-label":l??c,name:c},$,h),N=u.useCallback(E=>{k.onChange&&k.onChange(E),p&&p(c,Ct(E.toString()))},[k,c,p]);return t.jsxs(H,{error:n,helpLink:i,helpLinkText:a,helpText:r,htmlFor:c,label:l,required:o,tooltip:g,children:[t.jsx(ae,{buttonProps:C,datePickerRef:h,disabled:e,error:n,fieldProps:j,groupProps:w,name:c,register:d,required:o,setValue:p,value:y}),$.isOpen&&!e?t.jsx(xe,{offset:8,placement:"bottom start",state:$,triggerRef:h,children:t.jsx(Ie,{...S,children:t.jsx(wt,{onClose:m,props:{...k,onChange:N}})})}):null]})},zt=({onClose:e,props:n})=>{const{locale:i}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),a=u.useRef(null),r=s.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90({...n,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:o,nextButtonProps:l,title:c}=s.$46a4342aab3d8076$export$87e0539f600c24e5(n,r,a);return t.jsxs("div",{className:"calendar-range",ref:a,children:[t.jsx(ze,{nextButtonProps:l,prevButtonProps:o,state:r,title:c}),t.jsx(Se,{state:r}),t.jsx(Ue,{children:t.jsx(R,{onClick:e,variant:"ghost",children:"Cancel"})})]})},vi=s.dt.div`
|
|
1090
|
+
`,je=({disabled:e=!1,icon:n,props:i})=>{const a=u.useRef(null),{buttonProps:r}=s.$701a24aa0da5b062$export$ea18c227d4417cc3(i,a);return t.jsx(yi,{...r,$disabled:e,$focus:!!r["aria-expanded"],$header:n==="calendar"||n==="calendar-clock",disabled:e,ref:a,type:"button",children:t.jsx(z,{icon:n,iconColor:I.palette.gray[e?400:700],iconSize:"xs",iconType:"fa-light"})})},ze=({state:e,prevButtonProps:n,nextButtonProps:i,title:a})=>{const r=e.focusedDate,o=u.useCallback(()=>{e.setFocusedDate(r.add({years:1}))},[r,e]),l=u.useCallback(()=>{e.setFocusedDate(r.subtract({years:1}))},[r,e]);return t.jsxs("div",{className:"header flex items-start",children:[t.jsx(je,{icon:"chevron-left",props:n}),t.jsxs(gi,{children:[a,t.jsxs(ui,{children:[t.jsx(at,{"aria-label":"top",onClick:o,children:t.jsx(z,{icon:"caret-up",iconClass:"fa-sharp",iconSize:"xxss"})}),t.jsx(at,{"aria-label":"bottom",onClick:l,children:t.jsx(z,{icon:"caret-down",iconClass:"fa-sharp",iconSize:"xxss"})})]})]}),t.jsx(je,{icon:"chevron-right",props:i})]})},wt=({onClose:e,props:n})=>{const{locale:i}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),a=s.$131cf43a05231e1e$export$6d095e787d2b5e1f({...n,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:r,nextButtonProps:o,title:l}=s.$9942cad8a072a530$export$3ee915f8151bd4f1(n,a);return t.jsxs("div",{className:"calendar",children:[t.jsx(ze,{nextButtonProps:o,prevButtonProps:r,state:a,title:l}),t.jsx(Se,{state:a}),t.jsx(Ue,{children:t.jsx(R,{onClick:e,variant:"ghost",children:"Cancel"})})]})},jt=({segment:e,state:n})=>{const i=s.nt(),a=u.useRef(null),o={...e,placeholder:{day:"dd",dayPeriod:"(AM/PM)",era:"",hour:"hh",literal:"",minute:"mm",month:"mm",second:"",timeZoneName:"",year:"yyyy"}[e.type]},{segmentProps:l}=s.$32489daedd52963e$export$1315d136e6f7581(o,n,a),c=i.palette.gray[o.isEditable?800:500];return t.jsx("div",{...o.type!=="literal"&&{...l,className:"segment-cell"},ref:a,style:o.type==="literal"?void 0:{color:o.isPlaceholder?i.palette.gray[400]:c},children:o.isPlaceholder?o.placeholder:o.text})},kt=({disabled:e,error:n=!1,props:i})=>{const a=s.nt(),r=u.useRef(null),o=s.$3c0fc76039f1c516$export$60e84778edff6d26({...i,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:"en-US"}),{fieldProps:l}=s.$16f0b7bb276bc17e$export$5591b0b878c1a989(i,o,r),c=u.useCallback(d=>{const p=document.getElementsByClassName("segment-cell"),g=d.currentTarget;Object.values(p).some(x=>x.contains(g))||(d.preventDefault(),d.stopPropagation())},[]);return u.useEffect(()=>{i.onChange&&o.value&&i.onChange(o.value)},[o.value]),t.jsxs(mi,{...l,onClick:c,children:[t.jsx("div",{className:"flex flex-row",style:{color:a.palette.gray[s.lodashExports.isNil(o.value)?400:800]},tabIndex:-1,children:o.segments.map((d,p)=>{const g=`key_${p}`;return t.jsx(jt,{segment:{...d,isEditable:!e},state:o},g)})}),n?t.jsx(z,{icon:"exclamation-circle",iconColor:a.palette.error[500],iconSize:"xs"}):void 0]})},vt=e=>{const n=u.useRef(null),i=s.$eff5d8ee529ac4bb$export$fd53cef0cc796101({...e,locale:"en-US",shouldForceLeadingZeros:!0}),{timeValue:a}=i,r=!s.lodashExports.isNil(a)&&a.hour<12?"AM":"PM",[o,l]=u.useState(s.lodashExports.isNil(a)?"AM":r),{fieldProps:c}=s.$16f0b7bb276bc17e$export$4c842f6a241dc825(e,i,n),d=u.useCallback(p=>{const g=p.currentTarget.name;g!==o&&(s.lodashExports.isNil(a)||(g==="AM"?i.setSegment("dayPeriod",0):g==="PM"&&i.setSegment("dayPeriod",12))),l(g)},[o,i,a]);return t.jsxs(wi,{children:[t.jsx(rt,{...c,ref:n,children:i.segments.slice(0,-2).map((p,g)=>{const x=`key_${g}`;return t.jsx(jt,{segment:p,state:i},x)})}),t.jsxs(rt,{children:[t.jsx(ot,{id:o==="AM"?"active":"",name:"AM",onClick:d,type:"button",children:"AM"}),t.jsx(ot,{id:o==="PM"?"active":"",name:"PM",onClick:d,type:"button",children:"PM"})]})]})},Ct=e=>e&&e!=="-"?s.dayjs(e).format("YYYY-MM-DD"):"-",ji=e=>e&&e!=="-"?s.dayjs(e).format("YYYY-MM-DD hh:mm A"):"-",ki=e=>e&&e!=="-"?s.dayjs(e).format("YYYY/MM/DD hh:mm A"):"-",ae=({error:e,buttonProps:n,datePickerRef:i,disabled:a=!1,granularity:r="day",fieldProps:o,groupProps:l,name:c,register:d,required:p,setValue:g,value:x})=>{const f=u.useCallback(h=>{o.onChange&&o.onChange(h),g&&g(c,r==="day"?Ct(String(h)):ji(String(h)))},[o,r,c,g]);return t.jsxs(Z,{...l,className:`${a?"disabled":""} ${e?"error":""}`,ref:i,children:[t.jsx(kt,{disabled:a,error:e!=null,props:{...o,autoFocus:!1,granularity:r,onChange:f,shouldForceLeadingZeros:!0}}),t.jsx(je,{disabled:a,icon:r==="minute"?"calendar-clock":"calendar",props:n}),t.jsx("input",{...d==null?void 0:d(c,{required:p}),"aria-label":c,className:"date-input",disabled:a,id:c,name:c,type:"text",value:x})]})},Ie=({children:e,...n})=>{const i=u.useRef(null),{dialogProps:a}=s.$40df3f8667284809$export$d55e7ee900f34e93(n,i);return t.jsx($i,{...a,ref:i,children:e})},St=({disabled:e=!1,error:n,helpLink:i,helpLinkText:a,helpText:r,required:o,label:l,name:c,register:d,setValue:p,tooltip:g,watch:x,...f})=>{const h=u.useRef(null),y=x==null?void 0:x(c),$=s.$ab5bf3f618090389$export$87194bb378cc3ac2({...f,value:s._.isNil(y)||s._.isEmpty(y)||y==="-"?null:s.$fae977aafc393c5c$export$6b862160d295c8e(y.replace(/\//gu,"-"))}),{close:m}=$,{groupProps:w,fieldProps:j,buttonProps:C,dialogProps:S,calendarProps:k}=s.$6057a3d2a53a12fd$export$42df105a73306d51({...f,"aria-label":l??c,name:c},$,h),N=u.useCallback(E=>{k.onChange&&k.onChange(E),p&&p(c,Ct(E.toString()))},[k,c,p]);return t.jsxs(H,{error:n,helpLink:i,helpLinkText:a,helpText:r,htmlFor:c,label:l,required:o,tooltip:g,children:[t.jsx(ae,{buttonProps:C,datePickerRef:h,disabled:e,error:n,fieldProps:j,groupProps:w,name:c,register:d,required:o,setValue:p,value:y}),$.isOpen&&!e?t.jsx(xe,{offset:8,placement:"bottom start",state:$,triggerRef:h,children:t.jsx(Ie,{...S,children:t.jsx(wt,{onClose:m,props:{...k,onChange:N}})})}):null]})},zt=({onClose:e,props:n})=>{const{locale:i}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),a=u.useRef(null),r=s.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90({...n,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:o,nextButtonProps:l,title:c}=s.$46a4342aab3d8076$export$87e0539f600c24e5(n,r,a);return t.jsxs("div",{className:"calendar-range",ref:a,children:[t.jsx(ze,{nextButtonProps:l,prevButtonProps:o,state:r,title:c}),t.jsx(Se,{state:r}),t.jsx(Ue,{children:t.jsx(R,{onClick:e,variant:"ghost",children:"Cancel"})})]})},vi=s.dt.div`
|
|
1091
1091
|
${({theme:e,$disabled:n,$show:i})=>`
|
|
1092
1092
|
border-color: ${i?e.palette.error[500]:e.palette.gray[300]};
|
|
1093
1093
|
display: flex;
|
|
@@ -1126,13 +1126,13 @@
|
|
|
1126
1126
|
position: absolute;
|
|
1127
1127
|
visibility: hidden;
|
|
1128
1128
|
width: 0;
|
|
1129
|
-
`,Pe=(e,n,i)=>{const a=new Event(e);return Object.defineProperty(a,"target",{value:{name:n,value:i}}),a},Fi=e=>{const n=e;return n?Array.from(n).map(i=>i.name).join(", "):""},Ri=({accept:e,disabled:n=!1,error:i,label:a,helpLink:r,helpText:o,id:l,multiple:c,name:d,onChange:p,required:g,register:x,setValue:f,tooltip:h,watch:y,weight:$})=>{const m=s.nt(),w=n?void 0:i,j=u.useRef(null),C=y==null?void 0:y(d),S=Fi(C),k=x==null?void 0:x(d,{required:g}),N=u.useCallback(()=>{const M=Pe("change",d,void 0);f&&f(d,""),k&&k.onChange(M)},[k,d,f]),E=u.useCallback(M=>{const{files:D}=M.currentTarget,F=Pe("change",d,D&&D.length>0?D:void 0);p==null||p(F),k&&k.onChange(F)},[k,d,p]),P=u.useCallback(M=>{n?M.preventDefault():j.current&&j.current.click()},[n]);return t.jsxs(H,{error:w,helpLink:r,helpText:o,htmlFor:l??d,label:a,required:g,tooltip:h,weight:$,children:[t.jsxs(Z,{className:`${n?"disabled":""} ${w?"error":""}`,children:[t.jsx(Ni,{$size:"xs",children:S}),t.jsxs(b,{alignItems:"center",display:"flex",gap:.5,children:[s.lodashExports.isEmpty(S)?void 0:t.jsx(
|
|
1129
|
+
`,Pe=(e,n,i)=>{const a=new Event(e);return Object.defineProperty(a,"target",{value:{name:n,value:i}}),a},Fi=e=>{const n=e;return n?Array.from(n).map(i=>i.name).join(", "):""},Ri=({accept:e,disabled:n=!1,error:i,label:a,helpLink:r,helpText:o,id:l,multiple:c,name:d,onChange:p,required:g,register:x,setValue:f,tooltip:h,watch:y,weight:$})=>{const m=s.nt(),w=n?void 0:i,j=u.useRef(null),C=y==null?void 0:y(d),S=Fi(C),k=x==null?void 0:x(d,{required:g}),N=u.useCallback(()=>{const M=Pe("change",d,void 0);f&&f(d,""),k&&k.onChange(M)},[k,d,f]),E=u.useCallback(M=>{const{files:D}=M.currentTarget,F=Pe("change",d,D&&D.length>0?D:void 0);p==null||p(F),k&&k.onChange(F)},[k,d,p]),P=u.useCallback(M=>{n?M.preventDefault():j.current&&j.current.click()},[n]);return t.jsxs(H,{error:w,helpLink:r,helpText:o,htmlFor:l??d,label:a,required:g,tooltip:h,weight:$,children:[t.jsxs(Z,{className:`${n?"disabled":""} ${w?"error":""}`,children:[t.jsx(Ni,{$size:"xs",children:S}),t.jsxs(b,{alignItems:"center",display:"flex",gap:.5,children:[s.lodashExports.isEmpty(S)?void 0:t.jsx(A,{color:m.palette.gray[400],height:"20px",icon:"xmark",iconSize:"lg",iconType:"fa-light",onClick:N,variant:"ghost",width:"20px"}),w&&t.jsx(z,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:m.palette.error[500],iconSize:"xs"})]}),t.jsxs(R,{border:n?`1px solid ${m.palette.gray[300]} !important`:"",borderRadius:"0px 8px 8px 0px !important",disabled:n,height:"40px",onClick:P,variant:"primary",width:"96px",children:[t.jsx(z,{icon:"search",iconSize:"sm",mr:.5}),"Add file"]})]}),t.jsx(Ei,{...k&&{ref:k.ref,onBlur:k.onBlur},accept:e,"aria-label":d,"data-testid":d,disabled:n,id:l??d,multiple:c,name:d,onChange:E,onClick:N,ref:j,required:void 0,type:"file",value:void 0})]})},Di=s.dt.input`
|
|
1130
1130
|
border: none;
|
|
1131
1131
|
background: transparent;
|
|
1132
1132
|
min-width: 15rem;
|
|
1133
1133
|
padding: 0;
|
|
1134
1134
|
flex: 1;
|
|
1135
|
-
`,Le=({disabled:e=!1,error:n,field:i,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:p,placeholder:g,required:x,tooltip:f,value:h,weight:y})=>{const $=s.nt(),m=e?void 0:n,[w,j]=u.useState(""),C=d?h:i==null?void 0:i.value,S=u.useMemo(()=>C&&typeof C=="string"?C.split(",").filter(Boolean):[],[C]),k=u.useCallback(D=>{const
|
|
1135
|
+
`,Le=({disabled:e=!1,error:n,field:i,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:p,placeholder:g,required:x,tooltip:f,value:h,weight:y})=>{const $=s.nt(),m=e?void 0:n,[w,j]=u.useState(""),C=d?h:i==null?void 0:i.value,S=u.useMemo(()=>C&&typeof C=="string"?C.split(",").filter(Boolean):[],[C]),k=u.useCallback(D=>{const B=[...new Set(D.filter(Boolean))].join(","),O=Pe("change",c,B);i&&i.onChange(O),d&&d(O)},[i,c,d]),N=u.useCallback(D=>{j(D.target.value)},[]),E=u.useCallback(D=>{const F=w.trim();F.length&&!S.includes(F)&&(D.preventDefault(),k([...S,F]),j("")),i&&i.onBlur()},[w,i,k,S]),P=u.useCallback(D=>{const F=w.trim();D.key==="Enter"&&F.length===0&&D.preventDefault(),["Enter",","].includes(D.key)&&F.length>0&&!S.includes(F)?(D.preventDefault(),k([...S,F]),j("")):D.key==="Backspace"&&!F.length&&S.length&&(D.preventDefault(),p==null||p(S[S.length-1]),k(S.slice(0,-1)))},[w,p,k,S]),M=u.useCallback(D=>()=>{p==null||p(D),k(S.filter(F=>F!==D))},[p,k,S]);return t.jsx(H,{error:m,helpLink:a,helpLinkText:r,helpText:o,htmlFor:c,label:l,required:x,tooltip:f,weight:y,children:t.jsxs(Z,{$overflowX:"auto",className:`${e?"disabled":""} ${m?"error":""}`,children:[S.map(D=>t.jsx(X,{disabled:e,onClose:M(D),tagLabel:D},D)),t.jsx(Di,{"aria-hidden":!1,"aria-invalid":m?"true":"false","aria-label":c,"aria-required":x,autoComplete:"off",id:c,onBlur:E,onChange:N,onKeyDown:P,placeholder:S.length===0?g:void 0,ref:i==null?void 0:i.ref,type:"text",value:w}),m?t.jsx(z,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:$.palette.error[500],iconSize:"xs"}):void 0]})})},Pi=({disabled:e=!1,control:n,error:i,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:p,placeholder:g,required:x,tooltip:f,value:h,weight:y})=>n?t.jsx(s.Controller,{control:n,name:c,render:({field:$})=>t.jsx(Le,{disabled:e,error:i,field:$,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c,onRemove:p,placeholder:g,required:x,tooltip:f,weight:y}),rules:{required:x}}):t.jsx(Le,{disabled:e,error:i,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c,onChange:d,onRemove:p,placeholder:g,required:x,tooltip:f,value:h,weight:y}),Me=u.forwardRef(function({disabled:n,icon:i,margin:a,onClick:r,...o},l){return t.jsx(bi,{$margin:a,"aria-label":i,className:"action-btn",disabled:n,onClick:r,ref:l,type:"button",...o,children:t.jsx(z,{icon:i,iconClass:"action",iconSize:"xs",iconType:"fa-light"})})}),ke=({error:e,decimalPlaces:n=0,disabled:i=!1,id:a,maxLength:r,max:o=1/0,min:l=0,name:c,onChange:d,placeholder:p,register:g,required:x,setValue:f,value:h})=>{const y=s.nt(),$=i?void 0:e,m=u.useMemo(()=>n<0?0:n,[n]),w=u.useMemo(()=>h===void 0?0:s._.toNumber(h),[h]),j=u.useCallback(()=>{const N=(w-10**-m).toFixed(m);f&&f(c,Math.max(Number(l),Number(N)))},[m,w,l,c,f]),C=u.useCallback(()=>{const N=(w+10**-m).toFixed(m);f&&f(c,Math.min(Number(o),Number(N)>Number(l)?Number(N):Number(l)))},[m,w,o,l,c,f]),S=u.useCallback(N=>{const{value:E}=N.target,P=/\d+/u.test(E)&&!s._.isEmpty(E);f&&f(c,P?Number(E):void 0),d&&d(N)},[c,d,f]),k=u.useCallback(N=>{N.key==="Enter"&&N.preventDefault()},[]);return t.jsxs(Z,{className:`${i?"disabled":""} ${$?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":$?"true":"false","aria-label":c,"aria-required":x,autoComplete:"off",disabled:i,id:a??c,max:o,min:l,onKeyDown:k,placeholder:p,required:x,step:10**-m,type:"number",...g==null?void 0:g(c,{required:x,maxLength:r,max:o,min:l,onChange:S})}),$&&t.jsx(z,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:y.palette.error[500],iconSize:"xs"}),t.jsx(Me,{borderLeft:"inherit",borderRight:"inherit",disabled:i,icon:"minus",margin:"0 -0.625rem 0 0",onClick:j,px:.75,py:.75}),t.jsx(Me,{borderRadius:`0 ${y.spacing[.5]} ${y.spacing[.5]} 0`,disabled:i,icon:"plus",onClick:C,px:.75,py:.75})]})},Tt=({decimalPlaces:e,disabled:n=!1,error:i,helpLink:a,helpText:r,id:o,label:l,linkPosition:c,maxLength:d,max:p,min:g,name:x,onChange:f,placeholder:h,register:y,required:$,setValue:m,tooltip:w,value:j,watch:C,weight:S})=>t.jsx(H,{error:n?void 0:i,helpLink:a,helpText:r,htmlFor:x,label:l,linkPosition:c,maxLength:d,required:$,tooltip:w,weight:S,children:t.jsx(ke,{decimalPlaces:e,disabled:n,error:i,id:o,max:p,maxLength:d,min:g,name:x,onChange:f,placeholder:h,register:y,required:$,setValue:m,value:f?j:C==null?void 0:C(x)})}),Nt=({disabled:e=!1,error:n,name:i,label:a,propsMax:r,propsMin:o,required:l,tooltip:c})=>{const d=`${i}Max`,p=`${i}Min`;return t.jsx(H,{error:n,htmlFor:i,label:a,required:l,tooltip:c,children:t.jsxs(b,{display:"flex",flexDirection:"column",gap:.25,width:"100%",children:[t.jsx(ke,{...o,disabled:e,error:n,name:o.name??p}),t.jsx(ke,{...r,disabled:e,error:n,name:r.name??d})]})})},Li=s.dt.div`
|
|
1136
1136
|
${({theme:e})=>`
|
|
1137
1137
|
align-items: flex-start;
|
|
1138
1138
|
align-self: stretch;
|
|
@@ -1188,7 +1188,7 @@
|
|
|
1188
1188
|
cursor: not-allowed;
|
|
1189
1189
|
}
|
|
1190
1190
|
`}
|
|
1191
|
-
`,
|
|
1191
|
+
`,Wi=s.dt.ul`
|
|
1192
1192
|
${({theme:e})=>`
|
|
1193
1193
|
align-items: flex-start;
|
|
1194
1194
|
box-shadow: ${e.shadows.md};
|
|
@@ -1201,7 +1201,7 @@
|
|
|
1201
1201
|
scrollbar-width: thin;
|
|
1202
1202
|
width: max-content;
|
|
1203
1203
|
`}
|
|
1204
|
-
`,
|
|
1204
|
+
`,Ai=s.dt.li`
|
|
1205
1205
|
${({theme:e})=>`
|
|
1206
1206
|
align-items: center;
|
|
1207
1207
|
background: ${e.palette.white};
|
|
@@ -1218,14 +1218,14 @@
|
|
|
1218
1218
|
background: ${e.palette.gray[100]};
|
|
1219
1219
|
}
|
|
1220
1220
|
`}
|
|
1221
|
-
`,
|
|
1221
|
+
`,Bi=s.dt.p`
|
|
1222
1222
|
color: ${({theme:e})=>e.palette.gray[800]};
|
|
1223
1223
|
font-size: inherit;
|
|
1224
1224
|
min-width: 55%;
|
|
1225
1225
|
overflow: hidden;
|
|
1226
1226
|
text-overflow: ellipsis;
|
|
1227
1227
|
white-space: nowrap;
|
|
1228
|
-
`,ee=(e,n,i=!1)=>{u.useEffect(()=>{var r;const a=o=>{e&&!e.contains(o.target)&&n()};return i?(document.addEventListener("click",a,!0),()=>{document.removeEventListener("click",a,!0)}):((r=document.getElementById("root"))==null||r.addEventListener("click",a,!0),()=>{var o;(o=document.getElementById("root"))==null||o.removeEventListener("click",a,!0)})},[i,e,n])},Hi=({disabled:e,error:n,label:i,name:a,placeholder:r,required:o,register:l,tooltip:c,value:d,weight:p})=>{const g=s.nt(),x=u.useRef(null),f=e?void 0:n,[h,y]=u.useState(!1),[$,m]=u.useState(""),{refs:w,floatingStyles:j}=s.useFloating$1({placement:"bottom-start",whileElementsMounted:s.autoUpdate}),{inputValue:C,handlePhoneValueChange:S,country:k,setCountry:N}=s.ee({countries:s.R,defaultCountry:"us",forceDialCode:!0,value:d?String(d):void 0}),E=u.useCallback(()=>{y(F=>!F),h||m("")},[h]),P=u.useCallback(F=>()=>{N(F),y(!1),m("")},[N,y]),M=u.useCallback(F=>{F.key.length===1?m(
|
|
1228
|
+
`,ee=(e,n,i=!1)=>{u.useEffect(()=>{var r;const a=o=>{e&&!e.contains(o.target)&&n()};return i?(document.addEventListener("click",a,!0),()=>{document.removeEventListener("click",a,!0)}):((r=document.getElementById("root"))==null||r.addEventListener("click",a,!0),()=>{var o;(o=document.getElementById("root"))==null||o.removeEventListener("click",a,!0)})},[i,e,n])},Hi=({disabled:e,error:n,label:i,name:a,placeholder:r,required:o,register:l,tooltip:c,value:d,weight:p})=>{const g=s.nt(),x=u.useRef(null),f=e?void 0:n,[h,y]=u.useState(!1),[$,m]=u.useState(""),{refs:w,floatingStyles:j}=s.useFloating$1({placement:"bottom-start",whileElementsMounted:s.autoUpdate}),{inputValue:C,handlePhoneValueChange:S,country:k,setCountry:N}=s.ee({countries:s.R,defaultCountry:"us",forceDialCode:!0,value:d?String(d):void 0}),E=u.useCallback(()=>{y(F=>!F),h||m("")},[h]),P=u.useCallback(F=>()=>{N(F),y(!1),m("")},[N,y]),M=u.useCallback(F=>{F.key.length===1?m(B=>B+F.key):F.key==="Backspace"&&m(B=>B.slice(0,-1))},[]),D=s.R.filter(F=>{const{name:B}=s.M(F);return B.toLowerCase().includes($.toLowerCase())});return ee(w.floating.current,()=>{y(!1),m("")},!0),t.jsx(H,{error:f,htmlFor:a,label:i,required:o,tooltip:c,weight:p,children:t.jsxs(Li,{className:`${e?"disabled":""} ${f?"error":""}`,ref:x,children:[t.jsxs(Mi,{"aria-label":"country-selector","data-testid":"country-selector",disabled:e,id:"country-selector",onClick:E,onKeyDown:M,ref:w.setReference,children:[t.jsx(s.q,{iso2:k.iso2,size:"16px"}),t.jsx(z,{icon:"angle-down",iconColor:g.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(Z,{className:`${e?"disabled":""} ${f?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":f?"true":"false","aria-label":a,"aria-required":o,autoComplete:"off","data-testid":`${a}-input`,disabled:e,id:a,name:a,placeholder:r,type:"tel",value:C,...l==null?void 0:l(a,{required:o,onChange:S})}),f?t.jsx(z,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:g.palette.error[500],iconSize:"xs"}):void 0]}),h&&G.createPortal(t.jsx(Wi,{ref:w.setFloating,style:j,children:D.map(F=>{const{dialCode:B,iso2:O,name:te}=s.M(F);return t.jsxs(Ai,{onClick:P(O),value:O,children:[t.jsx(s.q,{iso2:O,size:"16px"}),t.jsx(Bi,{children:te}),t.jsx(v,{color:g.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+B})]},O)})}),document.getElementById("root")??document.body)]})})},Vi=({disabled:e=!1,error:n,helpLink:i,helpText:a,isTouched:r,isValid:o,label:l,name:c="input-text",id:d,maskValue:p=!1,maxLength:g,placeholder:x,register:f,required:h,rows:y,tooltip:$,watch:m,weight:w})=>{const j=s.nt(),C=m==null?void 0:m(c),S=o&&r&&!e,k=e?void 0:n;return t.jsx(H,{error:k,helpLink:i,helpText:a,htmlFor:c,label:l,maxLength:g,required:h,tooltip:$,value:C?String(C):void 0,weight:w,children:t.jsxs(Z,{className:`
|
|
1229
1229
|
${e?"disabled":""} ${k?"error":""} ${S?"success":""}
|
|
1230
1230
|
`,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":k?"true":"false","aria-label":c,"aria-required":h,className:p?"sr-block":"","data-testid":`${c}-text-area`,disabled:e,id:d??c,maxLength:g,placeholder:x,rows:y,...f==null?void 0:f(c,{required:h})}),k?t.jsx(z,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:j.palette.error[500],iconSize:"xs"}):void 0,S?t.jsx(z,{icon:"check-circle",iconClass:"success-icon",iconColor:j.palette.success[500],iconSize:"xs"}):void 0]})})},Oi=({description:e,disabled:n,id:i,align:a,inputType:r="text",inputNumberProps:o,minHeight:l,minWidth:c,name:d,placeholder:p,tooltip:g,title:x})=>{const f=u.useMemo(()=>{if(r==="text")return t.jsx(Ye,{disabled:n,name:d,placeholder:p});if(r==="date")return t.jsx(St,{disabled:n,name:d});const{decimalPlaces:h,max:y,min:$}=o??{};return t.jsx(Tt,{decimalPlaces:h,disabled:n,max:y,min:$,name:d,placeholder:p})},[n,o,r,d,p]);return t.jsxs(si,{$align:a,$minHeight:l,$minWidth:c,children:[t.jsx(Ce,{description:e,id:i,title:x,tooltip:g}),f]})},_i=s.dt.label`
|
|
1231
1231
|
${({theme:e})=>`
|
|
@@ -1378,7 +1378,7 @@
|
|
|
1378
1378
|
}
|
|
1379
1379
|
|
|
1380
1380
|
`}
|
|
1381
|
-
`,qi=s.dt.span.attrs({className:"checkmark"})``,Ke=u.forwardRef(function({defaultChecked:n=!1,disabled:i=!1,label:a,name:r,onChange:o,onClick:l,value:c,...d},p){return t.jsxs(Ki,{"aria-disabled":i,"aria-label":r,role:"radiogroup",children:[t.jsx("input",{"aria-checked":n,"aria-disabled":i,"aria-label":r,defaultChecked:n,disabled:i,name:r,onChange:o,onClick:l,ref:p,type:"radio",value:c,...d}),t.jsx(qi,{}),a??null]})}),Xi=({alt:e,imageId:n,icon:i,selectorProps:a,onClick:r,title:o,width:l="fit-content"})=>{const c=s.nt();return t.jsxs(b,{alignItems:"center",border:`1px solid ${c.palette.gray[200]}`,borderColorHover:c.palette.gray[600],borderRadius:c.spacing[.25],display:"inline-flex",padding:[1,1,1,1],shadowHover:"md",width:l,children:[t.jsx(b,{alignSelf:"start",display:"flex",width:"fit-content",children:t.jsx(Ke,{name:a.name,onClick:r,value:a.value})}),t.jsxs(b,{alignItems:"center",display:"flex",gap:.5,justify:"space-between",ml:1,mr:1,width:"100%",children:[n===void 0?void 0:t.jsx(_,{alt:e??"card image",height:"32px",publicId:n,width:"32px"}),i===void 0?void 0:t.jsx(z,{icon:i,iconSize:"sm",iconType:"fa-light"}),t.jsx(
|
|
1381
|
+
`,qi=s.dt.span.attrs({className:"checkmark"})``,Ke=u.forwardRef(function({defaultChecked:n=!1,disabled:i=!1,label:a,name:r,onChange:o,onClick:l,value:c,...d},p){return t.jsxs(Ki,{"aria-disabled":i,"aria-label":r,role:"radiogroup",children:[t.jsx("input",{"aria-checked":n,"aria-disabled":i,"aria-label":r,defaultChecked:n,disabled:i,name:r,onChange:o,onClick:l,ref:p,type:"radio",value:c,...d}),t.jsx(qi,{}),a??null]})}),Xi=({alt:e,imageId:n,icon:i,selectorProps:a,onClick:r,title:o,width:l="fit-content"})=>{const c=s.nt();return t.jsxs(b,{alignItems:"center",border:`1px solid ${c.palette.gray[200]}`,borderColorHover:c.palette.gray[600],borderRadius:c.spacing[.25],display:"inline-flex",padding:[1,1,1,1],shadowHover:"md",width:l,children:[t.jsx(b,{alignSelf:"start",display:"flex",width:"fit-content",children:t.jsx(Ke,{name:a.name,onClick:r,value:a.value})}),t.jsxs(b,{alignItems:"center",display:"flex",gap:.5,justify:"space-between",ml:1,mr:1,width:"100%",children:[n===void 0?void 0:t.jsx(_,{alt:e??"card image",height:"32px",publicId:n,width:"32px"}),i===void 0?void 0:t.jsx(z,{icon:i,iconSize:"sm",iconType:"fa-light"}),t.jsx(W,{fontWeight:"bold",lineSpacing:1.75,size:"xs",children:o})]})]})},ne=s.dt.div`
|
|
1382
1382
|
${({theme:e})=>`
|
|
1383
1383
|
align-items: center;
|
|
1384
1384
|
background-color: ${e.palette.gray[200]};
|
|
@@ -1531,7 +1531,7 @@
|
|
|
1531
1531
|
`,Mt=({noCodeMessage:e="Code snippet not available",snippet:n,specific:i})=>(u.useEffect(()=>{s.prismExports.highlightAll()},[]),t.jsx(Lt,{"data-private":!0,children:t.jsx("pre",{className:"line-highlight","data-line-offset":s._.isNil(n)||s._.isString(n)?0:n.offset+.7,...i!==void 0?{"data-line":String(Number(i))}:{},children:s._.isNil(n)||s._.isString(n)||s._.isEmpty(n.content)?t.jsx("div",{className:"no-data",children:t.jsx("p",{children:e})}):t.jsx("code",{className:"language-none",children:n.content})})})),sa=({noCodeMessage:e="Code snippet not available",snippet:n,specific:i,variant:a="normal"})=>{const r=s.nt(),[o,l]=u.useState(!1),[c,d]=u.useState(!0),p=u.useCallback(()=>{l(h=>!h)},[l]),g=u.useCallback(()=>{if(s._.isNil(n)||s._.isEmpty(n)||!s._.isString(n))return d(!1),e;const h=n.split(`
|
|
1532
1532
|
`);return h.length>8&&!o?`${[...h].splice(0,7).join(`
|
|
1533
1533
|
`)}
|
|
1534
|
-
${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=u.useMemo(g,[g]),f=u.useCallback(async()=>{await navigator.clipboard.writeText(x)},[x]);return a==="location"?t.jsx(Mt,{noCodeMessage:e,snippet:n,specific:i}):t.jsxs(b,{bgColor:r.palette.gray[100],borderRadius:"4px",display:"inline-flex",minWidth:"565px",position:"relative",children:[t.jsx(Lt,{"data-private":!0,children:t.jsx("pre",{children:t.jsx("code",{className:"language-none",children:x})})}),t.jsxs(oa,{children:[t.jsx(
|
|
1534
|
+
${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=u.useMemo(g,[g]),f=u.useCallback(async()=>{await navigator.clipboard.writeText(x)},[x]);return a==="location"?t.jsx(Mt,{noCodeMessage:e,snippet:n,specific:i}):t.jsxs(b,{bgColor:r.palette.gray[100],borderRadius:"4px",display:"inline-flex",minWidth:"565px",position:"relative",children:[t.jsx(Lt,{"data-private":!0,children:t.jsx("pre",{children:t.jsx("code",{className:"language-none",children:x})})}),t.jsxs(oa,{children:[t.jsx(A,{height:r.spacing[2.5],icon:"copy",iconColor:r.palette.gray[700],iconSize:"xs",iconType:"fa-light",onClick:f,variant:"ghost",width:r.spacing[2.5]}),c?t.jsxs(R,{onClick:p,variant:"ghost",children:[o?"Show Less":"Show more",t.jsx(z,{icon:o?"chevron-up":"chevron-down",iconColor:r.palette.gray[700],iconSize:"xxs",iconType:"fa-light",ml:.25,onClick:f})]}):!1]})]})},{getVariant:la}=U(e=>({fixed:`
|
|
1535
1535
|
width: 300px;
|
|
1536
1536
|
padding: ${e.spacing[1.25]};
|
|
1537
1537
|
overflow: hidden auto;
|
|
@@ -1660,7 +1660,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1660
1660
|
margin-right: 0;
|
|
1661
1661
|
`:""}
|
|
1662
1662
|
}
|
|
1663
|
-
`,
|
|
1663
|
+
`,Wt=({alert:e,modalRef:n,confirmButton:i=void 0,cancelButton:a=void 0})=>{const{close:r}=n,o=u.useCallback(()=>{a!=null&&a.onClick&&a.onClick(),r()},[a,r]),l=u.useCallback(()=>{i!=null&&i.onClick&&i.onClick(),r()},[i,r]);return[i,a].some(d=>!s.lodashExports.isEmpty(d))?t.jsxs(b,{display:"flex",flexDirection:"column",gap:.625,position:"sticky",px:1.25,py:1.25,children:[e,t.jsx(ga,{children:t.jsxs("div",{children:[a&&t.jsx(R,{onClick:o,variant:"tertiary",width:"100%",children:a.text}),i&&t.jsx(R,{onClick:l,variant:"primary",width:"100%",children:i.text})]})})]}):null},xa=s.dt.button`
|
|
1664
1664
|
${({theme:e})=>`
|
|
1665
1665
|
align-items: center;
|
|
1666
1666
|
color: ${e.palette.gray[500]};
|
|
@@ -1752,7 +1752,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1752
1752
|
font-size: 6px;
|
|
1753
1753
|
font-weight: ${({theme:e})=>e.typography.weight.bold};
|
|
1754
1754
|
justify-content: center;
|
|
1755
|
-
`,
|
|
1755
|
+
`,At=u.forwardRef(function({numberIndicator:n,show:i,variant:a="error",...r},o){return t.jsx($a,{$variant:a,className:i?"flex":"hidden","data-testid":"notification-sign",ref:o,...r,children:n&&t.jsx(ya,{children:n<=9?n:9})})}),Bt=({end:e=!1,label:n,id:i,isActive:a=!1,link:r,notificationSign:o,onClick:l,tooltip:c="",variant:d="primary",tag:p})=>{const{pathname:g}=Re.useLocation(),x=a||(d==="primary"?g.includes(r):g.endsWith(r));return t.jsx(Y,{display:"flex",id:`${i}-tooltip`,tip:c,children:t.jsxs(ba,{$borderButton:x,$variant:d,children:[t.jsxs(Re.NavLink,{end:e,id:i,onClick:l,to:r,children:[n,t.jsx(At,{left:o==null?void 0:o.left,numberIndicator:o==null?void 0:o.numberIndicator,show:o==null?void 0:o.show,top:o==null?void 0:o.top,variant:o==null?void 0:o.variant})]}),p===void 0?null:t.jsx(X,{tagLabel:`${p}`,variant:"default"})]})})},qe=({items:e,borders:n=!0,box:i=!1,variant:a="primary"})=>{const r=s.nt();return t.jsx(b,{alignItems:"center",bgColor:r.palette.white,border:i?"1px solid":void 0,borderBottom:n?`1px solid ${r.palette.gray[300]}`:void 0,borderColor:i?r.palette.gray[200]:void 0,borderRadius:i?r.spacing[.25]:void 0,display:"inline-flex",gap:.25,id:"tablist",padding:i?[0,0,0,0]:void 0,pl:n?1.25:void 0,pr:n?1.25:void 0,role:"tablist",width:i?"max-content":"100%",children:e.map(({end:o,id:l,isActive:c,link:d,label:p,notificationSign:g,onClick:x,tag:f,tooltip:h})=>t.jsx(Bt,{end:o,id:l,isActive:c,label:p,link:d,notificationSign:g,onClick:x,tag:f,tooltip:h,variant:a},l))})},Ht=({tabItems:e,title:n,description:i,modalRef:a,otherActions:r,onClose:o})=>{const l=s.nt(),c=u.useCallback(()=>{o==null||o(),a.close()},[a,o]);return u.useEffect(()=>{const d=p=>{p.key==="Escape"&&c()};return window.addEventListener("keydown",d),()=>{window.removeEventListener("keydown",d)}},[c]),t.jsxs(t.Fragment,{children:[t.jsxs(da,{children:[t.jsxs(pa,{children:[typeof n=="string"?t.jsx(W,{fontWeight:"bold",lineSpacing:1.75,mr:1,size:"sm",children:n}):n,t.jsxs("div",{className:"items-center flex gap-3",children:[r,t.jsx(A,{icon:"close",iconColor:l.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:c,px:.25,py:.25,variant:"ghost"})]})]}),i&&s.lodashExports.isString(i)&&!s.lodashExports.isEmpty(i)?t.jsx(v,{mt:.5,size:"sm",children:i}):i]}),e&&t.jsx(b,{borderTop:`1px solid ${l.palette.gray[300]}`,display:"block",position:"sticky",children:t.jsx(qe,{items:e})})]})},Vt=({disabled:e,id:n="modal-confirm",onCancel:i,onConfirm:a="submit",txtCancel:r,txtConfirm:o})=>{const l=a==="submit";return t.jsxs(b,{display:"flex",gap:.75,maxWidth:i?"392px":"190px",mt:1.5,children:[i?t.jsx(R,{id:`${n}-cancel`,justify:"center",onClick:i,variant:"tertiary",width:"100%",children:r??"Cancel"}):void 0,t.jsx(R,{disabled:e,id:n,justify:"center",onClick:l?void 0:a,type:l?"submit":"button",variant:"primary",width:"100%",children:o??"Confirm"})]})},J=u.forwardRef(function({color:n=I.palette.gray[100],mt:i=.5,mb:a=.5,width:r,...o},l){return t.jsx(b,{as:"hr",borderTop:`1px solid ${n}`,mb:a,mt:i,ref:l,width:r??"100%",...o})}),ma=s.dt.li`
|
|
1756
1756
|
${({theme:e})=>`
|
|
1757
1757
|
align-items: center;
|
|
1758
1758
|
background-color: ${e.palette.white};
|
|
@@ -1828,7 +1828,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1828
1828
|
&[aria-selected="true"]:not([aria-disabled="true"]) {
|
|
1829
1829
|
background-color: unset;
|
|
1830
1830
|
}
|
|
1831
|
-
`,_t=({items:e,onReorder:n,title:i,description:a,onClickClose:r})=>{const o=u.useCallback(l=>()=>{r(l)},[r]);return t.jsxs(s.ReorderGroup,{as:"div",axis:"y",layoutScroll:!0,onReorder:n,style:{height:"max-content",padding:"1.25rem 0",width:"45%"},values:e,children:[t.jsxs(b,{display:"flex",gap:.25,children:[t.jsx(
|
|
1831
|
+
`,_t=({items:e,onReorder:n,title:i,description:a,onClickClose:r})=>{const o=u.useCallback(l=>()=>{r(l)},[r]);return t.jsxs(s.ReorderGroup,{as:"div",axis:"y",layoutScroll:!0,onReorder:n,style:{height:"max-content",padding:"1.25rem 0",width:"45%"},values:e,children:[t.jsxs(b,{display:"flex",gap:.25,children:[t.jsx(W,{display:"flex",size:"xs",children:i}),t.jsx(X,{priority:"high",tagLabel:String(e.filter(l=>l.visible).length),variant:"error"})]}),t.jsx(v,{size:"sm",children:a}),e.map(l=>l.visible?t.jsx(s.ReorderItem,{as:"div",dragListener:!l.locked,item:l.name,value:l,children:t.jsx(wa,{disabled:l.locked,icon:"grid-2",label:l.name,onClickIcon:l.locked?void 0:o(l.id),rightIcon:l.locked?"lock":"close",selected:l.visible,value:l.name,children:l.name})},l.name):void 0)]})},ja=s.dt(be)`
|
|
1832
1832
|
padding: 7px 8px;
|
|
1833
1833
|
|
|
1834
1834
|
&[aria-selected="true"] {
|
|
@@ -1900,7 +1900,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1900
1900
|
border-radius: ${e.spacing[.5]};
|
|
1901
1901
|
width: 250px;
|
|
1902
1902
|
`}
|
|
1903
|
-
`,re=u.forwardRef(function({name:n,smallSearch:i=!1,onClear:a,value:r,...o},l){const c=s.nt(),[d,p]=u.useState(!1),{refs:g,floatingStyles:x}=s.useFloating$1(),f=u.useCallback(()=>{p($=>!$)},[]),h=u.useCallback($=>{$.key==="Enter"&&$.preventDefault()},[]);ee(g.floating.current,()=>{p(!1)},!0);const y=t.jsxs(va,{children:[t.jsx(z,{icon:"magnifying-glass",iconColor:c.palette.gray[700],iconSize:"xs",iconType:"fa-light"}),t.jsx(ka,{...o,id:n,name:n,onKeyDown:h,ref:l,type:"search",value:r}),!s.lodashExports.isEmpty(r)&&t.jsx(
|
|
1903
|
+
`,re=u.forwardRef(function({name:n,smallSearch:i=!1,onClear:a,value:r,...o},l){const c=s.nt(),[d,p]=u.useState(!1),{refs:g,floatingStyles:x}=s.useFloating$1(),f=u.useCallback(()=>{p($=>!$)},[]),h=u.useCallback($=>{$.key==="Enter"&&$.preventDefault()},[]);ee(g.floating.current,()=>{p(!1)},!0);const y=t.jsxs(va,{children:[t.jsx(z,{icon:"magnifying-glass",iconColor:c.palette.gray[700],iconSize:"xs",iconType:"fa-light"}),t.jsx(ka,{...o,id:n,name:n,onKeyDown:h,ref:l,type:"search",value:r}),!s.lodashExports.isEmpty(r)&&t.jsx(A,{icon:"xmark",iconColor:c.palette.gray[300],iconSize:"xs",iconType:"fa-light",onClick:a,px:.25,py:.25,type:"reset",variant:"ghost"})]});return i?t.jsxs(u.Fragment,{children:[t.jsx(A,{border:`1px solid ${c.palette.gray[300]} !important`,icon:"magnifying-glass",iconSize:"xs",iconType:"fa-light",onClick:f,ref:g.setReference,variant:"ghost"}),d?t.jsx(Ca,{ref:g.setFloating,style:x,children:y}):void 0]}):y}),Ut=({columns:e,formId:n,onChangeHandler:i,variant:a})=>{const r=u.useRef(null),[o,l]=u.useState([]),[c,d]=u.useState(""),p=u.useCallback(x=>{const{value:f}=x.target;d(f)},[]),g=u.useCallback(()=>{r.current&&(r.current.reset(),d(""))},[r]);return u.useEffect(()=>{l(e.filter(x=>{var f;return a==="grouped"?x.name.toLowerCase().includes(c.toLowerCase())||((f=x.group)==null?void 0:f.includes(c.toLowerCase())):x.name.toLowerCase().includes(c.toLowerCase())}))},[e,c,a]),a==="grouped"?t.jsxs(b,{display:"flex",flexDirection:"column",gap:.625,height:"100%",id:"columns-buttons",py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:r,children:t.jsx(re,{name:"search",onChange:p,onClear:g,value:c})}),t.jsx("form",{"data-testid":n,id:n,onReset:g,style:{display:"flex",flexDirection:"column",gap:"0.625rem"},children:Object.entries(Gt(o)).map(([x,f],h)=>{const y=`li-checkbox${x}`;return t.jsx(Et,{checkboxesName:x,defaultCollapsed:h===0,onChange:i,options:f,title:x},y)})})]}):t.jsxs(b,{height:"100%",id:"columns-buttons",py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:r,children:t.jsx(re,{name:"search",onChange:p,onClear:g,value:c})}),t.jsx("form",{"data-testid":n,id:n,onReset:g,style:{paddingTop:"0.625rem"},children:o.map(x=>{const f=`li-checkbox-${x.name}`;return t.jsx(ja,{selected:x.visible,value:f,width:"content",children:t.jsx(Te,{checked:x.visible,disabled:x.locked,label:x.name,name:x.name,onChange:i,value:x.name})},f)})})]})},Sa=({_containerId:e="portals",title:n,modalRef:i,variant:a})=>{const r=s.nt(),o=u.useRef(null),[l,c]=u.useState(void 0),d=u.useCallback(x=>{const{checked:f,value:h}=x.target,y=i.columns.map($=>{var m;return $.name===h?((m=$.toggleVisibility)==null||m.call($,f),{...$,visible:f}):$});i.setColumns(y)},[i]),p=u.useCallback(x=>{const f=i.columns.map(h=>{var y;return h.id===x?((y=h.toggleVisibility)==null||y.call(h,!1),{...h,visible:!1}):h});i.setColumns(f)},[i]),g=u.useCallback(()=>{var f;const x=(f=o.current)==null?void 0:f.scrollHeight;l!==x&&c(x)},[l]);return i.isOpen?G.createPortal(t.jsx(fe,{"aria-label":i.name,"aria-modal":"true",children:t.jsxs(he,{$size:"md",flexDirection:"column",children:[t.jsxs(b,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(W,{size:"sm",children:n}),t.jsx(A,{icon:"close",iconColor:r.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:i.close,px:.25,py:.25,variant:"ghost"})]}),t.jsx(J,{mb:0,mt:0}),t.jsxs(b,{display:"flex",gap:1.25,onScroll:g,px:1.25,ref:o,scroll:"y",width:"100%",children:[t.jsx(Ut,{columns:i.columns,formId:"columns-visibility",onChangeHandler:d,variant:a}),t.jsx(b,{borderLeft:`2px solid ${r.palette.gray[100]}`,height:l?`${l}px`:"auto"}),t.jsx(_t,{description:"Click and drag to reorder the columns",items:i.columns,onClickClose:p,onReorder:i.setColumns,title:"Reorder columns"})]}),t.jsx(J,{mb:0,mt:0}),t.jsxs(b,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(R,{disabled:!i.hasChanged,form:"columns-visibility",id:"columns-modal-cancel",justify:"center",onClick:i.resetToDefault,type:"reset",variant:"tertiary",children:"Reset to default"}),t.jsx(R,{id:"columns-modal-submit",justify:"center",onClick:i.close,variant:"primary",children:"Save"})]})]})}),document.getElementById(e)??document.body):t.jsx("div",{})},za=s.dt(be)`
|
|
1904
1904
|
padding: 8px;
|
|
1905
1905
|
min-width: unset;
|
|
1906
1906
|
`,st=s.dt(be)`
|
|
@@ -1909,10 +1909,10 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1909
1909
|
svg.fa-check {
|
|
1910
1910
|
border-radius: 2px;
|
|
1911
1911
|
}
|
|
1912
|
-
`,Yt=s.dt(
|
|
1912
|
+
`,Yt=s.dt(A)`
|
|
1913
1913
|
background-color: ${({theme:e})=>e.palette.white};
|
|
1914
1914
|
color: ${({theme:e})=>e.palette.gray[400]};
|
|
1915
|
-
`,Kt=({option:e,register:n})=>{var i,a;switch(e.type){case"checkboxes":return t.jsx("div",{style:{overflowY:"auto",maxHeight:"280px"},children:(i=e.options)==null?void 0:i.map(o=>t.jsx(st,{value:o.value,width:"content",children:t.jsx(Te,{...n("checkbox"),label:o.label,value:o.value})},`li-checkbox-${o.value}`))});case"radioButton":return t.jsx("div",{style:{overflowY:"auto",maxHeight:"280px"},children:(a=e.options)==null?void 0:a.map(o=>t.jsx(st,{value:o.value,width:"content",children:t.jsx(Ke,{...n("radio"),label:o.label,value:o.value})},`li-radio-${o.value}`))});case"text":const r=`text.${String(e.key)}-${e.filterFn??"caseInsensitive"}`;return t.jsx(Ye,{label:e.label,name:r,register:n,value:e.value});case"numberRange":return t.jsx(Nt,{label:e.label,name:String(e.key),propsMax:{label:"Max",register:n,name:"maxValue",value:e.maxValue},propsMin:{label:"Min",register:n,name:"minValue",value:e.minValue}});default:return t.jsx("div",{})}},
|
|
1915
|
+
`,Kt=({option:e,register:n})=>{var i,a;switch(e.type){case"checkboxes":return t.jsx("div",{style:{overflowY:"auto",maxHeight:"280px"},children:(i=e.options)==null?void 0:i.map(o=>t.jsx(st,{value:o.value,width:"content",children:t.jsx(Te,{...n("checkbox"),label:o.label,value:o.value})},`li-checkbox-${o.value}`))});case"radioButton":return t.jsx("div",{style:{overflowY:"auto",maxHeight:"280px"},children:(a=e.options)==null?void 0:a.map(o=>t.jsx(st,{value:o.value,width:"content",children:t.jsx(Ke,{...n("radio"),label:o.label,value:o.value})},`li-radio-${o.value}`))});case"text":const r=`text.${String(e.key)}-${e.filterFn??"caseInsensitive"}`;return t.jsx(Ye,{label:e.label,name:r,register:n,value:e.value});case"numberRange":return t.jsx(Nt,{label:e.label,name:String(e.key),propsMax:{label:"Max",register:n,name:"maxValue",value:e.maxValue},propsMin:{label:"Min",register:n,name:"minValue",value:e.minValue}});default:return t.jsx("div",{})}},We=({options:e,onSubmit:n,id:i,open:a})=>{var h,y,$,m,w;const[r,o]=u.useState(e),{register:l,handleSubmit:c,setValue:d}=s.useForm({defaultValues:{checkbox:e.filter(j=>j.type==="checkboxes").flatMap(j=>{var C;return((C=j.options)==null?void 0:C.filter(S=>S.checked).map(S=>S.value))??[]}),radio:(($=(y=(h=e.find(j=>j.type==="radioButton"))==null?void 0:h.options)==null?void 0:y.find(({checked:j})=>j))==null?void 0:$.value)??"",text:e.filter(j=>j.type==="text").reduce((j,C)=>({...j,[`${String(C.key)}-${C.filterFn??"caseInsensitive"}`]:C.value??""}),{}),minValue:(m=e.find(j=>j.type==="numberRange"))==null?void 0:m.minValue,maxValue:(w=e.find(j=>j.type==="numberRange"))==null?void 0:w.maxValue}}),p=e.some(j=>j.type==="checkboxes"),g=u.useCallback(j=>{const{value:C}=j.target,S=e.map(k=>{var N;return k.type==="checkboxes"?{...k,options:(N=k.options)==null?void 0:N.filter(E=>{var P;return((P=E.label)==null?void 0:P.toLowerCase().includes(C.toLowerCase()))??E.value.toLowerCase().includes(C.toLowerCase())})}:k});o(S)},[e]),x=u.useCallback(j=>{n&&n(j)},[n]);u.useEffect(()=>{var j,C,S,k,N;o(e),d("checkbox",e.filter(E=>E.type==="checkboxes").flatMap(E=>{var P;return((P=E.options)==null?void 0:P.filter(M=>M.checked).map(M=>M.value))??[]})),d("radio",((S=(C=(j=e.find(E=>E.type==="radioButton"))==null?void 0:j.options)==null?void 0:C.find(({checked:E})=>E))==null?void 0:S.value)??""),d("text",e.filter(E=>E.type==="text").reduce((E,P)=>({...E,[`${String(P.key)}-${P.filterFn??"caseInsensitive"}`]:P.value??""}),{})),d("minValue",(k=e.find(E=>E.type==="numberRange"))==null?void 0:k.minValue),d("maxValue",(N=e.find(E=>E.type==="numberRange"))==null?void 0:N.maxValue)},[e,d]);const f=t.jsx(fe,{$bgColor:"transparent",children:t.jsxs(he,{$size:"fixed",flexDirection:"column",gap:1.25,children:[p&&t.jsx(re,{onChange:g}),t.jsxs("form",{id:i,onSubmit:c(x),children:[r.map((j,C)=>{const S=`${j.type}-${j.value}-${j.filterFn??"default"}`;return t.jsxs("div",{children:[t.jsx(Kt,{option:j,register:l}),C<r.length-1&&t.jsx("hr",{style:{margin:"1.25rem 0 0.625rem"}})]},S)}),t.jsx(R,{mt:1,type:"submit",children:"Apply"})]})]})});return a?G.createPortal(f,document.getElementById("portals")??document.body):t.jsx("div",{})},ve=({options:e,variant:n,onApplyFilters:i})=>{const a=s.nt(),[r,o]=u.useState(e),[l,c]=u.useState([]),[d,p]=u.useState({}),[g,x]=u.useState(""),f=u.useCallback($=>()=>{const m=r.find(w=>w.label===$);x($),c((m==null?void 0:m.filterOptions)??[])},[r]),h=u.useCallback($=>{const m=[...$.checkbox,...Object.values($.text??{}),...$.radio?[$.radio]:[],...$.minValue?[String($.minValue)]:[],...$.maxValue?[String($.maxValue)]:[]];p(k=>m.length>0?{...k,[g]:m}:k);const w=k=>{var N,E;return{...k,options:(N=k.options)==null?void 0:N.map(P=>({...P,checked:$.checkbox.includes(P.value)||$.radio===P.value})),value:k.type==="text"?((E=$.text)==null?void 0:E[`${String(k.key)}-${k.filterFn??"caseInsensitive"}`])??k.value:k.value,minValue:k.type==="numberRange"?$.minValue:k.minValue,maxValue:k.type==="numberRange"?$.maxValue:k.maxValue}},j=k=>k.label===g?{...k,filterOptions:k.filterOptions.map(w)}:k,C=r.map(j);o(k=>k.map(j));const S=C.flatMap(({filterOptions:k})=>k);i(S),c([])},[r,i,g]),y=u.useCallback(($,m)=>{const w=`li-filter-option-${$}`;return t.jsxs(za,{icon:m,onClick:f($),value:w,width:"100%",children:[$,d[$]===void 0?void 0:t.jsx(X,{tagLabel:d[$].length.toString()})]},w)},[d,f]);return u.useEffect(()=>{const $=e.reduce((m,{label:w,filterOptions:j})=>{const C=j.flatMap(({value:N,minValue:E,maxValue:P})=>[E,P,N]).filter(Boolean),S=j.flatMap(({options:N})=>N??[]).filter(({checked:N=!1})=>N).map(({value:N})=>N),k=[...C,...S];return k.length===0?m:{...m,[w]:k}},{});p($)},[e]),n==="grouped"?t.jsxs(b,{flexGrow:1,position:"relative",zIndex:80,children:[Object.entries(Gt(e)).map(([$,m])=>t.jsxs(b,{width:"100%",children:[t.jsx(v,{color:a.palette.gray[400],mb:.25,size:"sm",children:$}),m.map(({label:w,icon:j="filter-list"})=>y(w,j))]},$)),t.jsx(We,{id:"filters-options",onSubmit:h,open:l.length>0,options:l})]}):t.jsxs(b,{flexGrow:1,children:[e.map(({label:$,icon:m="filter-list"})=>y($,m)),t.jsx(We,{id:"filters-options",onSubmit:h,open:l.length>0,options:l})]})},qt=({_containerId:e="portals",options:n,onApplyFilters:i,modalRef:a})=>a.isOpen?G.createPortal(t.jsx(fe,{$bgColor:"transparent","aria-label":a.name,"aria-modal":"true",children:t.jsxs(he,{$size:"fixed",alignItems:"start",display:"flex",flexDirection:"row",gap:.5,position:"relative",children:[t.jsx(ve,{onApplyFilters:i,options:n,variant:"ungrouped"}),t.jsx(Yt,{icon:"close",iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:a.close,variant:"ghost"})]})}),document.getElementById(e)??document.body):t.jsx("div",{}),Ia=({_containerId:e="portals",rightColumnOptions:n,leftColumnOptions:i,variant:a,onApplyFilters:r,modalRef:o})=>o.isOpen?G.createPortal(t.jsx(fe,{$bgColor:"transparent","aria-label":o.name,"aria-modal":"true",children:t.jsxs(he,{$size:"lg",alignItems:"start",flexDirection:"row",gap:1,position:"relative",px:1.25,py:1.25,children:[t.jsxs(b,{display:"flex",flexGrow:1,gap:1,justify:"space-between",children:[t.jsx(ve,{onApplyFilters:r,options:i,variant:a}),t.jsx(ve,{onApplyFilters:r,options:n,variant:a})]}),t.jsx(Yt,{icon:"close",iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:o.close,variant:"ghost"})]})}),document.getElementById(e)??document.body):t.jsx("div",{}),Ta=(e,n)=>{function i(l,c){if(c.value===""||c.value===void 0||s._.defaultTo(c.isBackFilter,!1))return!0;switch(c.filterFn){case"includesInsensitive":return String(l[c.key]).toLowerCase().includes(c.value.toLowerCase());case"caseInsensitive":case void 0:default:return String(l[c.key]).toLowerCase()===c.value.toLowerCase()}}function a(l,c){if(!c.options||c.options.length===0)return!0;const d=c.options.filter(p=>p.checked).map(p=>p.value);return d.length===0?!0:d.includes(String(l[c.key]))}function r(l,c){const d=Number(l[c.key]),{minValue:p,maxValue:g}=c,x=s._.isEmpty(p)?void 0:p,f=s._.isEmpty(g)?void 0:g;return x===void 0&&f===void 0?!0:(x??-1/0)<=d&&d<=(f??1/0)}function o(l){return n.every(c=>{if(typeof c.key=="function")return c.key(l,c.value);switch(c.type){case"radioButton":case"checkboxes":return a(l,c);case"numberRange":return r(l,c);case"text":default:return i(l,c)}})}return e.filter(o)},Na=({dataset:e,key:n,options:i,setFilteredDataset:a})=>{const r=Ne("filters-modal"),[o,l]=u.useState([]);u.useEffect(()=>{const p=localStorage.getItem(n);p&&l(JSON.parse(p))},[n]);const c=i.map(p=>({...p,filterOptions:p.filterOptions.map(g=>o.find(f=>f.key===g.key&&f.type===g.type&&f.filterFn===g.filterFn)??{...g})})),d=u.useCallback(p=>{l([...p]),localStorage.setItem(n,JSON.stringify(p))},[l,n]);return u.useEffect(()=>{a(Ta(e,o))},[e,o,a]),t.jsxs(u.Fragment,{children:[t.jsx(b,{alignItems:"center",display:"flex",gap:.25,maxWidth:"100%",wrap:"wrap",children:t.jsx(b,{pr:.25,children:t.jsx(R,{icon:"filter",id:"filterBtn",onClick:r.toggle,variant:"ghost"})})}),t.jsx(qt,{modalRef:r,onApplyFilters:d,options:c})]})},Xt=({_portal:e=!0,alert:n,cancelButton:i=void 0,children:a=void 0,confirmButton:r=void 0,content:o=void 0,description:l="",modalRef:c,otherActions:d=void 0,onClose:p=void 0,tabItems:g,title:x="",size:f,id:h="modal-container"})=>{const y=()=>t.jsx(fe,{"aria-label":c.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs(he,{$size:f,"data-testid":h,flexDirection:"column",id:h,children:[!s._.isEmpty(x)&&t.jsx(Ht,{description:l,modalRef:c,onClose:p,otherActions:d,tabItems:g,title:x}),(s._.isObject(o)||a)&&t.jsxs(ca,{children:[a,s._.isObject(o)&&s._.isString(o.imageSrc)&&t.jsx(ua,{$framed:o.imageFramed,children:t.jsx(_,{alt:"modal-img",publicId:o.imageSrc})}),s._.isObject(o)&&s._.isString(o.imageText)&&t.jsx(v,{size:"sm",children:o.imageText})]}),t.jsx(Wt,{alert:n,cancelButton:i,confirmButton:r,modalRef:c})]})});return e&&c.isOpen?G.createPortal(y(),document.getElementById("portals")??document.body):c.isOpen?y():null},Ea=()=>{const[e,n]=u.useState(!1),[i,a]=u.useState(),r=u.useRef(null),o=Ne("confirm-dialog-modal"),l=u.useCallback(async g=>(a(g),n(!0),new Promise(x=>{r.current=x})),[]),c=u.useCallback(()=>{var g;n(!1),a(void 0),(g=r.current)==null||g.call(r,!0)},[]),d=u.useCallback(()=>{var g;n(!1),a(void 0),(g=r.current)==null||g.call(r,!1)},[]);return u.useEffect(()=>{o.setIsOpen(e)},[e,o]),{ConfirmDialog:({id:g="confirm-dialog-modal",children:x})=>t.jsx(Xt,{id:g,modalRef:{...o,close:d},size:"sm",title:i==null?void 0:i.title,children:t.jsxs(b,{display:"flex",flexDirection:"column",children:[x,i==null?void 0:i.message,t.jsx(Vt,{id:i==null?void 0:i.id,onCancel:d,onConfirm:c})]})}),confirm:l}},Fa=s.dt.button`
|
|
1916
1916
|
display: flex;
|
|
1917
1917
|
position: relative;
|
|
1918
1918
|
height: 32px;
|
|
@@ -1976,7 +1976,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
1976
1976
|
}
|
|
1977
1977
|
}
|
|
1978
1978
|
`}
|
|
1979
|
-
`,
|
|
1979
|
+
`,Ae=({containerRef:e,id:n})=>{const i=s.nt(),a=n==="desktop"?380:342,r=u.useCallback(l=>()=>{if(e!=null&&e.current){const{current:c}=e;c.scrollBy({left:l==="right"?a:-a,behavior:"smooth"})}},[e,a]),o=u.useCallback(l=>t.jsxs(Fa,{onClick:r(l),children:[t.jsx(z,{clickable:!0,icon:`circle-arrow-${l}`,iconClass:"hovered",iconColor:i.palette.gray[800],iconSize:"md",iconType:"fa-solid"}),t.jsx(z,{clickable:!0,icon:`circle-arrow-${l}`,iconClass:"uncover",iconColor:i.palette.gray[800],iconSize:"md",iconType:"fa-light"})]}),[r,i]);return t.jsxs(b,{alignItems:"center",display:"flex",gap:1,id:n,width:"max-content",children:[o("left"),o("right")]})},Be=({tag:e,tagPosition:n})=>{const i=s.nt();return e?t.jsx(b,{alignItems:"center",bgColor:i.palette.white,borderRadius:"8px",display:"flex",justify:"center",margin:n==="top"?[.75,.75,.75,.75]:void 0,padding:[.25,.5,.25,.5],position:n==="top"?"absolute":"relative",top:"0",width:"max-content",children:t.jsx(v,{color:i.palette.gray[900],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:e})}):null},Zt=({eventDate:e})=>{const n=s.nt(),i=s.lodashExports.isEmpty(e)?null:e==null?void 0:e.split("-");if(i){const[a,r]=i;return t.jsxs(b,{alignItems:"center",bgColor:n.palette.white,borderRadius:"8px",display:"flex",flexDirection:"column",margin:[.75,.75,.75,.75],padding:[.75,1.5,.75,1.5],position:"absolute",right:"0",shadow:"md",top:"0",children:[t.jsx(W,{fontWeight:"semibold",lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:a}),t.jsx(v,{color:n.palette.gray[800],fontWeight:"semibold",lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:r.toUpperCase()})]})}return null},Da=s.dt.div`
|
|
1980
1980
|
${({theme:e})=>`
|
|
1981
1981
|
align-items: flex-start;
|
|
1982
1982
|
display: flex;
|
|
@@ -2021,7 +2021,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2021
2021
|
}
|
|
2022
2022
|
}
|
|
2023
2023
|
`}
|
|
2024
|
-
`,Jt=({author:e,buttonText:n,description:i,eventDate:a,href:r,imageId:o,mode:l="light",publishDate:c,readingTime:d,tag:p,tagPosition:g="top",title:x})=>{const f=s.nt(),h=c==null?void 0:c.split("-"),y=l==="dark",$=t.jsxs(Da,{"data-testid":`content-card-${x}`,children:[o||a||p&&g==="top"?t.jsxs(b,{id:"card-image",position:"relative",children:[o&&t.jsx(_,{publicId:o}),g==="top"&&t.jsx(
|
|
2024
|
+
`,Jt=({author:e,buttonText:n,description:i,eventDate:a,href:r,imageId:o,mode:l="light",publishDate:c,readingTime:d,tag:p,tagPosition:g="top",title:x})=>{const f=s.nt(),h=c==null?void 0:c.split("-"),y=l==="dark",$=t.jsxs(Da,{"data-testid":`content-card-${x}`,children:[o||a||p&&g==="top"?t.jsxs(b,{id:"card-image",position:"relative",children:[o&&t.jsx(_,{publicId:o}),g==="top"&&t.jsx(Be,{tag:p,tagPosition:g}),t.jsx(Zt,{eventDate:a})]}):void 0,t.jsxs(b,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.5,id:"card-content",children:[g==="bottom"&&t.jsx(Be,{tag:p,tagPosition:g}),e||h||d?t.jsxs(b,{display:"flex",justify:"space-between",width:"100%",children:[e&&h&&t.jsx(v,{color:f.palette.gray[y?300:400],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:e+` • ${h[0]} ${h[1]}, ${h[2]}`}),d&&t.jsxs(b,{alignItems:"center",display:"flex",gap:.25,justify:"center",minWidth:"60px",children:[t.jsx(z,{icon:"eye",iconColor:f.palette.gray[y?300:400],iconSize:"xs",iconType:"fa-light"}),t.jsx(v,{color:f.palette.gray[y?300:400],size:"sm",sizeSm:"xs",textAlign:"right",children:d})]})]}):void 0,t.jsx(W,{className:`title-${l}`,color:y?f.palette.white:f.palette.gray[800],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:x}),i&&t.jsx(v,{color:f.palette.gray[y?100:600],size:"md",sizeSm:"sm",children:i}),n&&r&&t.jsx(R,{href:r,variant:"link",children:n})]})]});return r?t.jsx("a",{className:"flex w-fit",href:r,rel:"noopener noreferrer",target:"_self",children:$}):$},Pa=({description:e,items:n,title:i,titleHighlighted:a})=>{const r=u.useRef(null);return t.jsxs(Ra,{"data-testid":"content-card-carousel",children:[t.jsxs(b,{alignItems:"flex-start",display:"flex",justify:"space-between",children:[t.jsxs(b,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.625,maxWidth:"800px",children:[t.jsxs(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(v,{lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:e})]}),t.jsx(Ae,{containerRef:r,id:"desktop"})]}),t.jsx(b,{alignSelf:"stretch",display:"flex",id:"carousel",pb:1,pr:2.25,ref:r,scroll:"x",children:t.jsx(b,{alignItems:"flex-start",display:"flex",gap:1.5,width:"max-content",children:n.map((o,l)=>t.jsx(Jt,{...o},`${l}-${o.title}`))})}),t.jsx(Ae,{containerRef:r,id:"mobile"})]})},He=({buttonProps:e,variant:n})=>t.jsx(R,{onClick:e.onClick,variant:n,children:e.text}),La=s.dt.div`
|
|
2025
2025
|
display: flex;
|
|
2026
2026
|
flex-direction: column;
|
|
2027
2027
|
align-items: center;
|
|
@@ -2042,7 +2042,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2042
2042
|
> img {
|
|
2043
2043
|
width: 100%;
|
|
2044
2044
|
}
|
|
2045
|
-
`,
|
|
2045
|
+
`,Wa=s.dt.div`
|
|
2046
2046
|
display: flex;
|
|
2047
2047
|
flex-direction: row;
|
|
2048
2048
|
margin: 0;
|
|
@@ -2055,7 +2055,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2055
2055
|
> *:last-child {
|
|
2056
2056
|
margin-right: 0;
|
|
2057
2057
|
}
|
|
2058
|
-
`,lt={md:{description:"md",title:"
|
|
2058
|
+
`,lt={md:{description:"md",title:"md"},sm:{description:"sm",title:"xs"}},Aa=({cancelButton:e=void 0,confirmButton:n=void 0,description:i,imageSrc:a="integrates/empty/addRoot",padding:r=1.25,title:o,size:l="md"})=>{const c=(n??e)!==void 0;return t.jsxs(La,{$padding:r,children:[t.jsx(Ma,{children:t.jsx(_,{alt:"empty-icon",publicId:a})}),t.jsx(W,{fontWeight:"bold",lineSpacing:1.75,mb:.25,size:lt[l].title,textAlign:"center",children:o}),t.jsx(v,{mb:c?2:void 0,size:lt[l].description,textAlign:"center",children:i}),c?t.jsxs(Wa,{children:[e&&t.jsx(He,{buttonProps:e,variant:"tertiary"}),n&&t.jsx(He,{buttonProps:n,variant:"primary"})]}):void 0]})},Ba=({children:e})=>{const n=s.useFormContext();return e({...n})},Ha=s.dt.form`
|
|
2059
2059
|
${({theme:e})=>`
|
|
2060
2060
|
align-items: flex-start;
|
|
2061
2061
|
align-self: stretch;
|
|
@@ -2065,7 +2065,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2065
2065
|
overflow: hidden auto;
|
|
2066
2066
|
width: 100%;
|
|
2067
2067
|
`}
|
|
2068
|
-
`,Va=({alert:e,
|
|
2068
|
+
`,Va=({alert:e,cancelButton:n,children:i,confirmButton:a,id:r="modal-confirm",mode:o,onSubmit:l,showButtons:c=!0,yupSchema:d,...p})=>{const g=s.nt(),x=s.useForm({...p,mode:o??"all",resolver:d?s.o(d):void 0});return t.jsx(s.FormProvider,{...x,children:t.jsx(Ha,{onSubmit:x.handleSubmit(l),children:t.jsxs(b,{scroll:"y",width:"100%",children:[t.jsx(b,{borderRadius:`0 0 ${g.spacing[.25]} ${g.spacing[.25]}`,display:"flex",flexDirection:"column",gap:.5,height:e?"calc(100% - 139px)":"calc(100% - 83px)",px:1.5,py:1.5,scroll:"y",children:i}),c&&t.jsxs(b,{borderRadius:`0 0 ${g.spacing[.25]} ${g.spacing[.25]}`,borderTop:`1px solid ${g.palette.gray[200]}`,display:"flex",flexDirection:"column",gap:.625,position:"sticky",px:1.25,py:1.25,children:[e,t.jsxs(b,{display:"flex",gap:.75,maxWidth:"392px",children:[n?t.jsx(R,{id:`${r}-cancel`,justify:"center",onClick:n.onClick,type:"reset",icon:n.icon,variant:"tertiary",width:"100%",children:n.label??"Cancel"}):void 0,t.jsx(R,{disabled:(a==null?void 0:a.disabled)||!x.formState.isDirty,id:r,icon:a==null?void 0:a.icon,justify:"center",type:"submit",width:"100%",children:(a==null?void 0:a.label)??"Confirm"})]})]})]})})})},Oa=s.dt(Q)`
|
|
2069
2069
|
display: grid;
|
|
2070
2070
|
gap: ${({$gap:e=1.25})=>`${e}rem`};
|
|
2071
2071
|
grid-template-columns: ${({$sm:e})=>`repeat(${e}, 1fr)`};
|
|
@@ -2119,7 +2119,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2119
2119
|
background-color: ${e.palette.gray[100]};
|
|
2120
2120
|
}
|
|
2121
2121
|
`}
|
|
2122
|
-
`,Qt=({isSelected:e=!1,label:n,onSelect:i})=>{const a=s.nt(),r=u.useCallback(()=>{i&&i(n)},[i,n]);return t.jsxs(Xe,{$isSelected:e,onClick:r,children:[e?t.jsx(z,{icon:"check",iconColor:a.palette.gray[800],iconSize:"md"}):null,t.jsx(v,{color:a.palette.gray[800],fontWeight:"bold",size:"sm",children:n})]})},Ua=({isOpen:e=!0,items:n,handleNewOrganization:i,onSelect:a,onClose:r,selectedItem:o,title:l,variant:c})=>{const d=s.nt(),[p,g]=u.useState(n),[x,f]=u.useState(""),h=u.useCallback(m=>{g(w=>w.filter(j=>String(j.name).toLowerCase().includes(m.toLocaleLowerCase())))},[g]),y=u.useCallback(m=>{m.currentTarget&&(f(m.currentTarget.value),h(m.currentTarget.value))},[f,h]);u.useEffect(()=>{g(n),h(x)},[n,h,x]);const $=()=>t.jsx(b,{"aria-modal":"true",className:"comp-modal fixed inset-0 overflow-auto",zIndex:99999,children:t.jsx(b,{alignItems:"center",bgColor:"rgb(52 64 84 / 70%)",display:"flex",height:"100vh",justify:"center",left:"0",top:"0",width:"100%",children:t.jsxs(Ga,{$itemsLength:p.length,children:[t.jsxs(b,{alignItems:"center",display:"flex",justify:"space-between",children:[t.jsx(v,{color:d.palette.gray[800],fontWeight:"bold",size:"lg",children:l}),t.jsx(
|
|
2122
|
+
`,Qt=({isSelected:e=!1,label:n,onSelect:i})=>{const a=s.nt(),r=u.useCallback(()=>{i&&i(n)},[i,n]);return t.jsxs(Xe,{$isSelected:e,onClick:r,children:[e?t.jsx(z,{icon:"check",iconColor:a.palette.gray[800],iconSize:"md"}):null,t.jsx(v,{color:a.palette.gray[800],fontWeight:"bold",size:"sm",children:n})]})},Ua=({isOpen:e=!0,items:n,handleNewOrganization:i,onSelect:a,onClose:r,selectedItem:o,title:l,variant:c})=>{const d=s.nt(),[p,g]=u.useState(n),[x,f]=u.useState(""),h=u.useCallback(m=>{g(w=>w.filter(j=>String(j.name).toLowerCase().includes(m.toLocaleLowerCase())))},[g]),y=u.useCallback(m=>{m.currentTarget&&(f(m.currentTarget.value),h(m.currentTarget.value))},[f,h]);u.useEffect(()=>{g(n),h(x)},[n,h,x]);const $=()=>t.jsx(b,{"aria-modal":"true",className:"comp-modal fixed inset-0 overflow-auto",zIndex:99999,children:t.jsx(b,{alignItems:"center",bgColor:"rgb(52 64 84 / 70%)",display:"flex",height:"100vh",justify:"center",left:"0",top:"0",width:"100%",children:t.jsxs(Ga,{$itemsLength:p.length,children:[t.jsxs(b,{alignItems:"center",display:"flex",justify:"space-between",children:[t.jsx(v,{color:d.palette.gray[800],fontWeight:"bold",size:"lg",children:l}),t.jsx(A,{icon:"xmark",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:r,variant:"ghost"})]}),t.jsx(b,{mt:1,children:t.jsx(re,{onInput:y,placeholder:"Search"})}),t.jsx(J,{mb:1,mt:1}),t.jsxs(b,{display:"inline-flex",gap:1,maxHeight:"332px",scroll:"y",wrap:"wrap",children:[c==="organization-selector"?t.jsx(Xe,{onClick:i,children:t.jsxs(b,{alignItems:"center",display:"flex",children:[t.jsx(z,{icon:"square-plus",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",mr:.5}),t.jsx(v,{color:d.palette.gray[400],size:"sm",children:"New organization"})]})}):void 0,p.map(m=>t.jsx(Qt,{isSelected:o.toLowerCase()===m.name,label:m.name.charAt(0).toUpperCase()+m.name.slice(1),onSelect:a},m.name))]})]})})});return e?G.createPortal($(),document.body):t.jsx("div",{})},Ya=({description:e,height:n="auto",leftIconName:i,children:a,rightIconName:r,title:o,tooltipId:l,tooltipTip:c,tooltipPlace:d="bottom",variant:p="centered",width:g="318px"})=>{const x=s.nt(),f=p==="centered",h=l&&t.jsx(Y,{icon:r??i,iconColor:x.palette.gray[800],id:l,place:d,tip:c});return t.jsxs(b,{alignItems:f?"center":"flex-start",bgColor:x.palette.gray[50],border:`1px solid ${x.palette.gray[200]}`,borderRadius:"4px",display:"inline-flex",flexDirection:f?"column":"column-reverse",gap:.5,height:n,justify:"center",padding:[1.25,1.25,1.25,1.25],width:g,children:[t.jsxs(b,{alignItems:"center",display:"flex",gap:.5,children:[f||s.lodashExports.isUndefined(i)?void 0:h,t.jsx(v,{color:f?x.palette.gray[800]:x.palette.gray[400],size:"md",textAlign:f?"center":"start",children:e}),f||s.lodashExports.isUndefined(r)?void 0:h]}),t.jsxs(b,{alignItems:"center",display:"flex",gap:.5,my:.5,children:[f&&!s.lodashExports.isUndefined(i)?h:void 0,t.jsxs("div",{style:{display:"flex",gap:"12px"},children:[s.lodashExports.isUndefined(o)?void 0:t.jsx(W,{fontWeight:"bold",size:"md",children:o}),a]}),f&&!s.lodashExports.isUndefined(r)?h:void 0]})]})},Ka=({actions:e,children:n,header:i,title:a,tabs:r,footer:o})=>{const l=s.nt();return t.jsxs(b,{alignItems:"flex-start",bgColor:l.palette.white,borderLeft:`1px solid ${l.palette.gray[300]}`,display:"flex",flexDirection:"column",maxHeight:"750px",width:"480px",children:[t.jsxs(b,{alignItems:"flex-start",alignSelf:"stretch",borderBottom:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.25,justify:"space-between",px:1.25,py:1,children:[t.jsxs(b,{display:"flex",flexDirection:"column",gap:.25,children:[t.jsx(v,{color:l.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:a}),i]}),e&&t.jsx(b,{display:"flex",gap:.25,children:e.map(({icon:c,onClick:d},p)=>t.jsx(A,{icon:c??"paper-plane",iconColor:l.palette.gray[400],iconSize:"xxs",iconType:"fa-light",onClick:d,variant:"ghost"},`${p}-${c}`))})]}),t.jsx(b,{display:"flex",pt:.25,width:"100%",children:t.jsx(qe,{items:r})}),t.jsx(b,{alignSelf:"stretch",display:"flex",flexDirection:"column",px:1.25,py:1,scroll:"y",children:n}),o&&t.jsx(b,{alignSelf:"stretch",borderTop:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.5,justify:"end",px:1.25,py:1,children:o.map(({icon:c,text:d,onClick:p},g)=>t.jsx(R,{icon:c,onClick:p,variant:g===0?"primary":"tertiary",width:"100%",children:d},`${g}-${d}`))})]})},qa=s.dt.div`
|
|
2123
2123
|
${({theme:e})=>`
|
|
2124
2124
|
align-items: flex-start;
|
|
2125
2125
|
backdrop-filter: blur(3.15px);
|
|
@@ -2185,7 +2185,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2185
2185
|
height: 260px;
|
|
2186
2186
|
width: 260px;
|
|
2187
2187
|
}
|
|
2188
|
-
`,en=({icon:e})=>t.jsx(Xa,{children:t.jsx(z,{icon:e,iconColor:I.palette.white,iconSize:"xs",iconTransform:"shrink-2",iconType:"fa-light"})}),Za=({category:e,description:n,href:i,icon:a,location:r,title:o})=>{const l=s.nt();return t.jsxs(qa,{children:[t.jsxs(b,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:1.5,height:"100%",id:"uncover",justify:"space-between",children:[t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx(v,{color:l.palette.white,size:"sm",sizeSm:"xs",children:e}),t.jsx(
|
|
2188
|
+
`,en=({icon:e})=>t.jsx(Xa,{children:t.jsx(z,{icon:e,iconColor:I.palette.white,iconSize:"xs",iconTransform:"shrink-2",iconType:"fa-light"})}),Za=({category:e,description:n,href:i,icon:a,location:r,title:o})=>{const l=s.nt();return t.jsxs(qa,{children:[t.jsxs(b,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:1.5,height:"100%",id:"uncover",justify:"space-between",children:[t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx(v,{color:l.palette.white,size:"sm",sizeSm:"xs",children:e}),t.jsx(W,{color:l.palette.white,fontWeight:"bold",lineSpacing:2.25,lineSpacingSm:1.75,size:"lg",sizeSm:"md",children:o})]}),t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx(v,{color:l.palette.white,size:"sm",sizeSm:"xs",children:"Location"}),t.jsx(v,{color:l.palette.white,fontWeight:"bold",lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:r})]})]}),t.jsxs(b,{alignItems:"self-start",display:"flex",flexDirection:"column",gap:2,height:"100%",id:"hovered",justify:"space-between",pt:1,children:[t.jsx(W,{color:l.palette.white,fontWeight:"bold",lineSpacing:1.75,lineSpacingSm:1.5,size:"md",sizeSm:"sm",children:o}),t.jsxs("div",{className:"flex flex-col gap-8",children:[t.jsx(v,{color:l.palette.gray[100],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:n}),t.jsx(R,{external:!0,href:i,variant:"link",width:"max-content",children:"Download now"})]})]}),t.jsx(en,{icon:a})]})},Ja=s.dt.button`
|
|
2189
2189
|
${({theme:e})=>`
|
|
2190
2190
|
align-items: center;
|
|
2191
2191
|
border-left: 3px solid transparent;
|
|
@@ -2524,7 +2524,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2524
2524
|
color: ${e.palette[n][500]};
|
|
2525
2525
|
}
|
|
2526
2526
|
`}
|
|
2527
|
-
`,Dr=e=>e==="warning"?"triangle-exclamation":e==="info"?"circle-info":e==="success"?"circle-check":"circle-exclamation",Pr=({description:e,onClose:n,title:i,variant:a})=>{const r=s.nt(),o=u.useCallback(()=>{n==null||n()},[n]);return t.jsxs(Fr,{$variant:a,className:`notification notification__${a}`,role:"alertdialog",children:[t.jsxs(Rr,{$variant:a,children:[t.jsx(z,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),t.jsx(z,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),t.jsx(z,{icon:Dr(a),iconClass:"icon",iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(b,{pr:1.5,children:[t.jsx(
|
|
2527
|
+
`,Dr=e=>e==="warning"?"triangle-exclamation":e==="info"?"circle-info":e==="success"?"circle-check":"circle-exclamation",Pr=({description:e,onClose:n,title:i,variant:a})=>{const r=s.nt(),o=u.useCallback(()=>{n==null||n()},[n]);return t.jsxs(Fr,{$variant:a,className:`notification notification__${a}`,role:"alertdialog",children:[t.jsxs(Rr,{$variant:a,children:[t.jsx(z,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),t.jsx(z,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),t.jsx(z,{icon:Dr(a),iconClass:"icon",iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(b,{pr:1.5,children:[t.jsx(W,{fontWeight:"bold",size:"xs",children:i}),t.jsx(v,{size:"sm",whiteSpace:"break-spaces",wordWrap:"break-word",children:e})]}),t.jsx(A,{height:"fit-content",icon:"close",iconColor:r.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:o,px:.125,py:.125,variant:"ghost"})]})},Lr=s.dt.div`
|
|
2528
2528
|
width: fit-content;
|
|
2529
2529
|
border: ${({theme:e})=>`1px solid ${e.palette.gray[300]}`};
|
|
2530
2530
|
border-radius: 4px;
|
|
@@ -2557,7 +2557,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2557
2557
|
&::-webkit-inner-spin-button {
|
|
2558
2558
|
opacity: 1;
|
|
2559
2559
|
}
|
|
2560
|
-
`,
|
|
2560
|
+
`,Wr=u.forwardRef(function({autoUpdate:n=!1,decimalPlaces:i=0,defaultValue:a=0,max:r,min:o,name:l,onEnter:c,tooltipMessage:d,...p},g){const x=i<0?0:i,[f,h]=u.useState(Number(a).toFixed(x)),y=u.useCallback(w=>{const j=s.lodashExports.toNumber(w.target.value);w.target.value.endsWith(".")?h(w.target.value):j>=Number(o)&&j<=Number(r)&&(h(String(j)),n&&c(s.lodashExports.toNumber(j.toFixed(x)))),w.stopPropagation()},[n,x,r,o,c]),$=u.useCallback(w=>{w.currentTarget.contains(w.relatedTarget)||h(Number(a).toFixed(x)),w.stopPropagation()},[x,a]),m=u.useCallback(w=>{w.stopPropagation(),w.key==="Enter"&&!s.lodashExports.isEmpty(w.currentTarget.value)&&c(s.lodashExports.toNumber(w.currentTarget.value))},[c]);return t.jsx(Lr,{onBlur:$,tabIndex:-1,children:t.jsx(Y,{id:"numberInputTooltip",tip:d,children:t.jsx(Mr,{...p,"aria-label":l,"aria-valuemax":Number(r),"aria-valuemin":Number(o),"aria-valuenow":Number(f),max:r,min:o,name:l,onChange:y,onKeyUp:m,ref:g,step:10**-x,type:"number",value:f})})})}),Ar={Azure:"integrates/autoenrollment/azureIcon",Bitbucket:"integrates/autoenrollment/bitbucketLogo",GitHub:"integrates/autoenrollment/githubLogo",GitLab:"integrates/autoenrollment/gitlabIcon"},Ve=({icon:e,label:n,onClick:i,onlyLabel:a=!1,provider:r="GitLab"})=>{const o=s.nt();return t.jsxs(b,{alignItems:"center",bgColorHover:o.palette.gray[100],borderRadius:"4px",cursor:"pointer",display:"flex",flexDirection:"column",gap:.25,height:"62px",justify:"center",minWidth:"64px",onClick:i,pb:.5,pl:.25,pr:.25,pt:.5,children:[a?!1:t.jsx(b,{height:"24px",width:"24px",children:e===void 0?t.jsx(_,{alt:`${r} Logo`,height:"100%",publicId:Ar[r],width:"100%"}):t.jsx(z,{icon:e,iconColor:"#000",iconSize:"sm",iconType:"fa-light"})}),t.jsx(b,{alignItems:"center",display:"flex",minWidth:"24px",children:t.jsx(v,{color:o.palette.gray[800],display:"inline",size:"xs",textAlign:"center",whiteSpace:a?"break-spaces":"nowrap",wordWrap:"unset",children:n??r})})]})},Br=({align:e="end",buttonLabel:n="Add Credential",children:i,id:a,manualOption:r,providers:o})=>{const l=s.nt(),[c,d]=u.useState(!1),p=u.useRef(null);ee(p.current,()=>{d(!1)},!0);const g=u.useCallback(h=>{r==null||r.onClick(h),d(!1)},[r]),x=u.useCallback(()=>{d(h=>!h)},[d]),f=u.useCallback(h=>y=>{var $;($=o[h])==null||$.onClick(y),d(!1)},[o]);return t.jsxs(b,{alignItems:e,display:"flex",flexDirection:"column",position:"relative",ref:p,width:"max-content",zIndex:10,children:[t.jsx(R,{icon:"plus",onClick:x,variant:"primary",children:n}),t.jsxs(b,{alignItems:"center",bgColor:"#fff",border:`1px solid ${l.palette.gray[200]}`,borderRadius:"4px",display:"flex",gap:.5,height:"78px",id:a,pb:.5,pl:.75,position:"absolute",pr:.75,pt:.5,shadow:"md",top:"40px",visibility:c?"visible":"hidden",zIndex:10,children:[Object.keys(o).map(h=>t.jsx(Ve,{onClick:f(h),provider:h},h)),r===void 0?void 0:t.jsx(Ve,{icon:"square-plus",label:r.label??"Add manually",onClick:g}),i]})]})},nn=()=>t.jsx(b,{alignItems:"center",bgColor:I.palette.primary[25],borderRadius:"8px",gap:.5,justify:"center",padding:[.125,.25,.125,.25],width:"max-content",children:t.jsx(v,{bgGradient:I.palette.gradients["01"],fontWeight:"semibold",size:"xs",textFill:"transparent",children:"Recommended"})}),Hr=s.dt.div`
|
|
2561
2561
|
${({className:e,theme:n})=>`
|
|
2562
2562
|
align-items: flex-start;
|
|
2563
2563
|
border-radius: ${n.spacing[1]};
|
|
@@ -2623,7 +2623,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2623
2623
|
}
|
|
2624
2624
|
`}
|
|
2625
2625
|
`;const Vr={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
|
|
2626
|
-
through our scanning tool.`,priceAuthor:"$499",priceGroup:"$1,579"}},Or=({description:e,onClick:n,plan:i})=>{const{title:a,description:r,benefits:o,buttonText:l}=Vr[i],c=e??r;return t.jsxs(Hr,{className:i,children:[t.jsxs(b,{display:"flex",flexDirection:"column",gap:.25,pt:i==="essential"?1.75:0,children:[i==="advanced"&&t.jsx(nn,{}),t.jsx(
|
|
2626
|
+
through our scanning tool.`,priceAuthor:"$499",priceGroup:"$1,579"}},Or=({description:e,onClick:n,plan:i})=>{const{title:a,description:r,benefits:o,buttonText:l}=Vr[i],c=e??r;return t.jsxs(Hr,{className:i,children:[t.jsxs(b,{display:"flex",flexDirection:"column",gap:.25,pt:i==="essential"?1.75:0,children:[i==="advanced"&&t.jsx(nn,{}),t.jsx(W,{color:I.palette.gray[900],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:a}),t.jsx(v,{color:I.palette.gray[400],fontWeight:"semibold",pb:i==="essential"?1.25:0,size:"sm",sizeSm:"xs",children:o})]}),t.jsx(v,{lineSpacing:1.5,lineSpacingSm:1.25,pb:i==="advanced"?1.5:0,size:"md",sizeSm:"sm",children:c}),t.jsx(R,{onClick:n,variant:"primary",children:l})]})},an=({description:e="",highlightDescription:n=""})=>{const i=s.nt(),a=typeof n=="string",r=a?"":new RegExp(`(${n.join("|")})`,"u");return n.length>0?t.jsx(v,{display:"inline",lineSpacing:1.5,size:"lg",textAlign:"center",children:a?t.jsxs(u.Fragment,{children:[t.jsx(we,{color:i.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:n}),e]}):e.split(r).map((o,l)=>n.includes(o)?t.jsx(we,{color:i.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:o},`${l+1}-bold`):o)}):t.jsx(v,{lineSpacing:1.5,size:"lg",textAlign:"center",children:e})},_r=({_portal:e=!1,cancelButton:n,darkBackground:i=!1,children:a,confirmButton:r,container:o,description:l,highlightDescription:c="",image:d,maxWidth:p,title:g,titleColor:x})=>{const f=s.nt(),{alt:h,src:y,width:$="77px",height:m="77px"}=d,w=u.useCallback(()=>{n==null||n.onClick()},[n]),j=u.useCallback(()=>{r==null||r.onClick()},[r]),C=t.jsx(b,{alignItems:"center","aria-label":g,"aria-modal":"true",bgColor:i?"rgba(52, 64, 84, 70%)":"",display:"flex",height:"100vh",justify:"center",left:"0",position:e?"fixed":"absolute",top:"0px",width:"100%",zIndex:99999,children:t.jsxs(b,{bgColor:f.palette.white,border:`1px solid ${f.palette.gray[200]}`,borderRadius:"8px",display:"inline-flex",flexDirection:"column",maxWidth:p,pb:2.5,pl:2.5,pr:2.5,pt:2.5,shadow:"lg",width:"100%",zIndex:11,children:[t.jsxs(b,{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",children:[t.jsx(b,{children:t.jsx(_,{alt:h,height:m,publicId:y,width:$})}),t.jsxs(b,{display:"flex",flexDirection:"column",gap:.5,mb:1.5,mt:1.5,children:[t.jsx(W,{color:x,fontWeight:"bold",lineSpacing:2.5,size:"lg",textAlign:"center",children:g}),t.jsx(an,{description:l,highlightDescription:c})]})]}),a&&t.jsx(b,{mb:1,scroll:"y",children:t.jsx(b,{height:"100%",children:a})}),t.jsxs(b,{alignItems:"flex-start",display:"flex",gap:1,justify:"center",children:[s.lodashExports.isObject(r)?t.jsx(R,{onClick:j,variant:(r==null?void 0:r.variant)??"primary",children:r==null?void 0:r.text},r==null?void 0:r.key):void 0,s.lodashExports.isObject(n)?t.jsx(R,{onClick:w,variant:(n==null?void 0:n.variant)??"tertiary",children:n==null?void 0:n.text},n==null?void 0:n.key):void 0]})]})});return e?G.createPortal(C,o??document.body):C},Gr=s.dt.div`
|
|
2627
2627
|
${({theme:e})=>`
|
|
2628
2628
|
height: ${e.spacing[1]};
|
|
2629
2629
|
width: ${e.spacing[1]};
|
|
@@ -2752,7 +2752,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2752
2752
|
position: fixed;
|
|
2753
2753
|
right: 140px;
|
|
2754
2754
|
z-index: 100;
|
|
2755
|
-
`,no=({scrollerId:e="dashboard",visibleAt:n=500})=>{const[i,a]=u.useState(!1),[r,o]=u.useState(null);u.useEffect(()=>{o(document.getElementById(e)),r==null||r.addEventListener("scroll",()=>{a(r.scrollTop>n)})},[r,e,n]);const l=u.useCallback(()=>{r==null||r.scrollTo({behavior:"smooth",top:0})},[r]);return i?t.jsx(to,{children:t.jsx(
|
|
2755
|
+
`,no=({scrollerId:e="dashboard",visibleAt:n=500})=>{const[i,a]=u.useState(!1),[r,o]=u.useState(null);u.useEffect(()=>{o(document.getElementById(e)),r==null||r.addEventListener("scroll",()=>{a(r.scrollTop>n)})},[r,e,n]);const l=u.useCallback(()=>{r==null||r.scrollTo({behavior:"smooth",top:0})},[r]);return i?t.jsx(to,{children:t.jsx(A,{height:"40px",icon:"arrow-up",iconSize:"sm",id:"scroll-up",onClick:l,width:"40px"})}):null},io=s.dt.a`
|
|
2756
2756
|
${({theme:e})=>`
|
|
2757
2757
|
align-items: center;
|
|
2758
2758
|
display: flex;
|
|
@@ -2942,7 +2942,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2942
2942
|
height: ${e.spacing[.5]};
|
|
2943
2943
|
}
|
|
2944
2944
|
`}
|
|
2945
|
-
`,me=({hit:e,icon:n="infinity",showIcon:i=!1})=>{const{slug:a,title:r}=e,o=String(a).startsWith("/pages/")?String(a).replace("/pages/","/"):String(a);return t.jsxs(io,{href:o,rel:"nofollow noopener noreferrer",children:[i&&t.jsx(ao,{children:t.jsx(z,{icon:n,iconClass:"fill-gradient-01",iconSize:"sm",iconType:"fa-light"})}),t.jsx(v,{color:I.palette.gray[800],lineSpacing:1.5,size:"md",sizeSm:"sm",whiteSpace:"wrap",children:String(r)})]})},co=[{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"}],dt={hit:{slug:"/contact-us/",title:"Contact Support"},icon:"envelope"},po=({items:e,placeholder:n="Search",refine:i,query:a})=>{const[r,o]=u.useState(a),[l,c]=u.useState(!1),d=u.useRef(null),p=u.useRef(null),g=r.length>=2,x=u.useCallback(w=>{o(w),i(w)},[i]),f=u.useCallback(()=>{x("")},[x]),h=u.useCallback(()=>{c(!0)},[]),y=u.useCallback(w=>{x(w.currentTarget.value)},[x]),$=u.useCallback(w=>{w.preventDefault(),w.stopPropagation(),f(),p.current&&p.current.focus()},[f]),m=u.useCallback(w=>{w.preventDefault(),w.stopPropagation(),p.current&&p.current.blur()},[]);return ee(d.current,()=>{f(),c(!1)},!0),t.jsxs(ro,{ref:d,children:[t.jsxs(oo,{action:"",noValidate:!0,onReset:$,onSubmit:m,role:"search",children:[t.jsxs("div",{className:"flex gap-2 w-full",children:[t.jsx("div",{className:"h-10 p-2",children:t.jsx(z,{icon:"magnifying-glass",iconSize:"sm",iconType:"fa-light"})}),t.jsx(so,{autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",maxLength:512,onChange:y,onFocus:h,placeholder:n,ref:p,spellCheck:!1,type:"search",value:r})]}),g&&t.jsx(lo,{type:"reset",children:t.jsx(z,{icon:"xmark",iconSize:"sm",iconType:"fa-light"})})]}),l&&r.length<2&&t.jsxs(Fe,{children:[t.jsx(v,{color:I.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:co.map(({hit:w,icon:j},C)=>t.jsx(me,{hit:w,icon:j,showIcon:!0},`${j}-${C}`))}),t.jsx(v,{color:I.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Can’t find what you’re looking for?"}),t.jsx(me,{hit:dt.hit,icon:dt.icon,showIcon:!0})]}),g&&e.length>0&&t.jsxs(Fe,{$showHits:g,children:[t.jsx(v,{color:I.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Results"}),t.jsx("div",{className:"flex flex-col items-start self-stretch",children:e.map(w=>t.jsx(me,{hit:w},w.objectID))})]}),g&&e.length===0&&t.jsx(Fe,{$empty:e.length===0,children:t.jsxs("div",{className:"items-center flex flex-col gap-4 py-[90px] w-full",children:[t.jsx(_,{height:96,publicId:"airs/search-bar/empty-state-icon",width:96}),t.jsx(
|
|
2945
|
+
`,me=({hit:e,icon:n="infinity",showIcon:i=!1})=>{const{slug:a,title:r}=e,o=String(a).startsWith("/pages/")?String(a).replace("/pages/","/"):String(a);return t.jsxs(io,{href:o,rel:"nofollow noopener noreferrer",children:[i&&t.jsx(ao,{children:t.jsx(z,{icon:n,iconClass:"fill-gradient-01",iconSize:"sm",iconType:"fa-light"})}),t.jsx(v,{color:I.palette.gray[800],lineSpacing:1.5,size:"md",sizeSm:"sm",whiteSpace:"wrap",children:String(r)})]})},co=[{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"}],dt={hit:{slug:"/contact-us/",title:"Contact Support"},icon:"envelope"},po=({items:e,placeholder:n="Search",refine:i,query:a})=>{const[r,o]=u.useState(a),[l,c]=u.useState(!1),d=u.useRef(null),p=u.useRef(null),g=r.length>=2,x=u.useCallback(w=>{o(w),i(w)},[i]),f=u.useCallback(()=>{x("")},[x]),h=u.useCallback(()=>{c(!0)},[]),y=u.useCallback(w=>{x(w.currentTarget.value)},[x]),$=u.useCallback(w=>{w.preventDefault(),w.stopPropagation(),f(),p.current&&p.current.focus()},[f]),m=u.useCallback(w=>{w.preventDefault(),w.stopPropagation(),p.current&&p.current.blur()},[]);return ee(d.current,()=>{f(),c(!1)},!0),t.jsxs(ro,{ref:d,children:[t.jsxs(oo,{action:"",noValidate:!0,onReset:$,onSubmit:m,role:"search",children:[t.jsxs("div",{className:"flex gap-2 w-full",children:[t.jsx("div",{className:"h-10 p-2",children:t.jsx(z,{icon:"magnifying-glass",iconSize:"sm",iconType:"fa-light"})}),t.jsx(so,{autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",maxLength:512,onChange:y,onFocus:h,placeholder:n,ref:p,spellCheck:!1,type:"search",value:r})]}),g&&t.jsx(lo,{type:"reset",children:t.jsx(z,{icon:"xmark",iconSize:"sm",iconType:"fa-light"})})]}),l&&r.length<2&&t.jsxs(Fe,{children:[t.jsx(v,{color:I.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:co.map(({hit:w,icon:j},C)=>t.jsx(me,{hit:w,icon:j,showIcon:!0},`${j}-${C}`))}),t.jsx(v,{color:I.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Can’t find what you’re looking for?"}),t.jsx(me,{hit:dt.hit,icon:dt.icon,showIcon:!0})]}),g&&e.length>0&&t.jsxs(Fe,{$showHits:g,children:[t.jsx(v,{color:I.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Results"}),t.jsx("div",{className:"flex flex-col items-start self-stretch",children:e.map(w=>t.jsx(me,{hit:w},w.objectID))})]}),g&&e.length===0&&t.jsx(Fe,{$empty:e.length===0,children:t.jsxs("div",{className:"items-center flex flex-col gap-4 py-[90px] w-full",children:[t.jsx(_,{height:96,publicId:"airs/search-bar/empty-state-icon",width:96}),t.jsx(W,{display:"flex",size:"sm",sizeSm:"xs",textAlign:"center",children:"No results found"}),t.jsxs(v,{display:"flex",lineSpacing:1.5,size:"md",sizeSm:"sm",textAlign:"center",children:[`“${r}” did not match.`,t.jsx("br",{}),"Please try again."]}),t.jsx(R,{onClick:f,variant:"secondary",children:"Clear search"})]})})]})},go={critical:{bgColor:I.palette.primary[700],colorL:I.palette.gray[800],colorR:I.palette.white},disable:{bgColor:I.palette.gray[200],colorL:I.palette.gray[400],colorR:I.palette.gray[400]},high:{bgColor:I.palette.error[500],colorL:I.palette.gray[800],colorR:I.palette.white},low:{bgColor:I.palette.warning[200],colorL:I.palette.gray[800],colorR:I.palette.gray[800]},medium:{bgColor:I.palette.warning[500],colorL:I.palette.gray[800],colorR:I.palette.gray[800]}},uo=({textL:e,textR:n,variant:i})=>{const a=s.nt(),{bgColor:r,colorL:o,colorR:l}=go[i];return t.jsxs(b,{alignItems:"flex-start",display:"inline-flex",children:[e?t.jsx(b,{alignItems:"center",bgColor:a.palette.white,border:`1px solid ${r}`,borderRadius:"4px 0px 0px 4px",display:"flex",justify:"center",padding:[0,.25,0,.25],children:t.jsx(v,{color:o,size:"xs",children:e})}):void 0,t.jsx(b,{alignItems:"center",bgColor:r,border:`1px solid ${r}`,borderRadius:e?"0px 4px 4px 0px":"4px",display:"flex",padding:e?[0,.25,0,.125]:[0,.25,0,.25],pb:.125,pl:.125,pr:.125,pt:.125,children:t.jsx(v,{color:l,size:"xs",children:n})})]})},xo=(e,n)=>{const i={critical:I.palette.primary[700],high:I.palette.error[500],low:I.palette.warning[200],medium:I.palette.warning[500],none:I.palette.gray[200]},a={disabled:I.palette.gray[400],enabled:I.palette.gray[800]},r={critical:I.palette.white,high:I.palette.white,low:I.palette.gray[800],medium:I.palette.gray[800],none:I.palette.gray[400]};return{iconColor:n<1?i.none:i[e],iconText:s.lodashExports.capitalize(e.charAt(0)),iconTextColor:n<1?r.none:r[e],textColor:n<1?a.disabled:a.enabled}},ie=({variant:e,value:n})=>{const{iconColor:i,iconText:a,iconTextColor:r,textColor:o}=xo(e,n),l=s.lodashExports.capitalize(e.charAt(0))+e.slice(1);return t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:.5,minWidth:"43px",children:[t.jsx(Y,{id:l,place:"top",tip:l,children:t.jsx(b,{alignItems:"center",bgColor:i,borderRadius:"4px",cursor:"pointer",display:"flex",height:"22px",maxWidth:"22px",minWidth:"22px",children:t.jsx(v,{color:r,size:"sm",textAlign:"center",children:a})})}),t.jsx(v,{color:o,size:"sm",children:n})]})},fo=({critical:e,high:n,medium:i,low:a})=>t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:1,children:[t.jsx(ie,{value:e,variant:"critical"}),t.jsx(ie,{value:n,variant:"high"}),t.jsx(ie,{value:i,variant:"medium"}),t.jsx(ie,{value:a,variant:"low"})]}),ho=s.dt.div`
|
|
2946
2946
|
${({theme:e})=>`
|
|
2947
2947
|
border-radius: ${e.spacing[.25]};
|
|
2948
2948
|
cursor: pointer;
|
|
@@ -2983,7 +2983,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
2983
2983
|
height: auto;
|
|
2984
2984
|
}
|
|
2985
2985
|
`}
|
|
2986
|
-
`,yo=({children:e,closeIconId:n="close-menu",isOpen:i,items:a,onClose:r,primaryButtonText:o,primaryOnClick:l,secondaryButtonText:c,secondaryOnClick:d,title:p})=>{const g=s.nt(),x=u.useRef(null),f=u.useCallback(h=>()=>{h(),r()},[r]);return u.useEffect(()=>{const h=["mousedown","touchstart"],y=$=>{var S;const m=$.target,w=document.getElementById("helpBtn"),j=document.getElementById("filterBtn"),C=(m===w||((w==null?void 0:w.contains(m))??!1)||m===j||(j==null?void 0:j.contains(m)))??!1;i&&!C&&!(((S=x.current)==null?void 0:S.contains(m))??!1)&&r()};return h.forEach($=>{document.addEventListener($,y,{passive:!0})}),()=>{h.forEach($=>{document.removeEventListener($,y)})}},[i,r]),t.jsx(s.LazyMotion,{features:s.domAnimation,children:t.jsx($o,{animate:i?{display:"block",x:0}:{transitionEnd:{display:"none"},x:"100%"},initial:{display:"none",x:"100%"},ref:x,transition:{bounce:0,duration:.6,type:"spring"},children:t.jsxs(b,{height:"100%",position:"relative",children:[t.jsxs(b,{alignItems:"center",bgColor:g.palette.white,borderBottom:"1px solid",borderColor:g.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(v,{color:g.palette.black,display:"inline",fontWeight:"bold",size:"xl",children:p}),t.jsx(
|
|
2986
|
+
`,yo=({children:e,closeIconId:n="close-menu",isOpen:i,items:a,onClose:r,primaryButtonText:o,primaryOnClick:l,secondaryButtonText:c,secondaryOnClick:d,title:p})=>{const g=s.nt(),x=u.useRef(null),f=u.useCallback(h=>()=>{h(),r()},[r]);return u.useEffect(()=>{const h=["mousedown","touchstart"],y=$=>{var S;const m=$.target,w=document.getElementById("helpBtn"),j=document.getElementById("filterBtn"),C=(m===w||((w==null?void 0:w.contains(m))??!1)||m===j||(j==null?void 0:j.contains(m)))??!1;i&&!C&&!(((S=x.current)==null?void 0:S.contains(m))??!1)&&r()};return h.forEach($=>{document.addEventListener($,y,{passive:!0})}),()=>{h.forEach($=>{document.removeEventListener($,y)})}},[i,r]),t.jsx(s.LazyMotion,{features:s.domAnimation,children:t.jsx($o,{animate:i?{display:"block",x:0}:{transitionEnd:{display:"none"},x:"100%"},initial:{display:"none",x:"100%"},ref:x,transition:{bounce:0,duration:.6,type:"spring"},children:t.jsxs(b,{height:"100%",position:"relative",children:[t.jsxs(b,{alignItems:"center",bgColor:g.palette.white,borderBottom:"1px solid",borderColor:g.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(v,{color:g.palette.black,display:"inline",fontWeight:"bold",size:"xl",children:p}),t.jsx(A,{icon:"close",iconColor:g.palette.gray[400],iconSize:"xs",iconTransform:"grow-4",iconType:"fa-light",id:n,onClick:r,px:.25,py:.25,variant:"ghost"})]}),t.jsxs(b,{display:"flex",flexDirection:"column",justify:"space-between",minHeight:"100vh",children:[t.jsxs(b,{py:1.25,children:[(a??[]).map(({customBadge:h,description:y,icon:$,onClick:m,requiresUpgrade:w,title:j})=>t.jsx(on,{customBadge:h,description:y,icon:$,onClick:f(m),requiresUpgrade:w,title:j},j)),e&&t.jsx(b,{px:1.25,children:e})]}),o===void 0?void 0:t.jsxs(b,{alignItems:"center",bgColor:g.palette.white,borderColor:g.palette.gray[200],borderTop:"1px solid",bottom:"0",display:"flex",gap:1.25,justify:"end",padding:[1.25,1.25,1.25,1.25],position:"sticky",width:"100%",zIndex:40,children:[c===void 0?void 0:t.jsx(R,{color:`${g.palette.primary[500]} !important`,onClick:d,pl:.5,pr:.5,variant:"ghost",children:c}),t.jsx(R,{onClick:l,type:"submit",children:o})]})]})]})})})},mo=(e,n)=>n>=50?`
|
|
2987
2987
|
${e.palette.gray[200]} 50%,
|
|
2988
2988
|
${e.palette.primary[500]} 50.05%,
|
|
2989
2989
|
${e.palette.primary[500]} ${n}%,
|
|
@@ -3137,7 +3137,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3137
3137
|
|
|
3138
3138
|
${So(e,n)}
|
|
3139
3139
|
`}
|
|
3140
|
-
`,Eo=({button:{disabled:e=!1,text:n,type:i="button",onClick:a},steps:r})=>{const[o,l]=u.useState(1),c=u.useCallback((d,p)=>()=>{l(g=>g+d),p==null||p()},[]);return t.jsx(zo,{children:r.map((d,p)=>{const{content:g,title:x,nextAction:f,previousAction:h}=d,y=p+1,$=y===o?"current":"disabled",m=y<o?"completed":$;return t.jsxs(Io,{children:[t.jsx(b,{maxWidth:"40px",position:"relative",children:t.jsx(No,{$variant:m,children:m==="completed"?t.jsx(z,{icon:"check",iconSize:"xs",iconType:"fa-solid"}):y})}),t.jsxs(b,{ml:1.5,width:"100%",children:[t.jsx(
|
|
3140
|
+
`,Eo=({button:{disabled:e=!1,text:n,type:i="button",onClick:a},steps:r})=>{const[o,l]=u.useState(1),c=u.useCallback((d,p)=>()=>{l(g=>g+d),p==null||p()},[]);return t.jsx(zo,{children:r.map((d,p)=>{const{content:g,title:x,nextAction:f,previousAction:h}=d,y=p+1,$=y===o?"current":"disabled",m=y<o?"completed":$;return t.jsxs(Io,{children:[t.jsx(b,{maxWidth:"40px",position:"relative",children:t.jsx(No,{$variant:m,children:m==="completed"?t.jsx(z,{icon:"check",iconSize:"xs",iconType:"fa-solid"}):y})}),t.jsxs(b,{ml:1.5,width:"100%",children:[t.jsx(W,{fontWeight:"bold",lineSpacing:1.25,mb:1.5,size:"xs",children:x}),m==="current"&&t.jsxs(b,{children:[g,t.jsxs(To,{children:[o>1&&t.jsx(R,{disabled:d.isDisabledPrevious??!1,onClick:c(-1,h),variant:"tertiary",children:"Previous"}),o<r.length?t.jsx(R,{disabled:d.isDisabledNext??!1,onClick:c(1,f),variant:"primary",children:"Next step"}):t.jsx(R,{disabled:e,onClick:a,type:i,variant:"primary",children:n})]})]})]})]},d.title)})})},Fo=s.dt.button`
|
|
3141
3141
|
${({theme:e})=>`
|
|
3142
3142
|
align-items: center;
|
|
3143
3143
|
background-color: ${e.palette.white};
|
|
@@ -3179,7 +3179,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3179
3179
|
background-color: ${e.palette.gray[100]};
|
|
3180
3180
|
}
|
|
3181
3181
|
`}
|
|
3182
|
-
`,Ro={add:{icon:"plus"},approve:{icon:"check"},disabled:{icon:"ban"},reject:{icon:"xmark"},submit:{icon:"arrow-right"},success:{icon:"check"}},Do=({disabled:e=!1,icon:n,id:i,label:a,name:r,onClick:o,type:l="button",variant:c})=>{const d=s.nt(),p=t.jsxs(Fo,{"aria-label":r??void 0,className:c,disabled:e,id:i,onClick:o,type:l,children:[t.jsx(z,{clickable:!1,icon:n??Ro[c].icon,iconSize:r===void 0?"xxs":"xs",iconType:"fa-light"}),r??void 0]});return t.jsxs(b,{alignItems:"center",display:"flex",children:[p,a&&t.jsx(v,{color:d.palette.gray[800],ml:.5,size:"sm",children:a})]})},Po=({items:e})=>t.jsx(fa,{children:e.map(({isActive:n,label:i,onClick:a},r)=>t.jsx(xa,{className:n?"active":"",onClick:a,type:"button",children:t.jsx(
|
|
3182
|
+
`,Ro={add:{icon:"plus"},approve:{icon:"check"},disabled:{icon:"ban"},reject:{icon:"xmark"},submit:{icon:"arrow-right"},success:{icon:"check"}},Do=({disabled:e=!1,icon:n,id:i,label:a,name:r,onClick:o,type:l="button",variant:c})=>{const d=s.nt(),p=t.jsxs(Fo,{"aria-label":r??void 0,className:c,disabled:e,id:i,onClick:o,type:l,children:[t.jsx(z,{clickable:!1,icon:n??Ro[c].icon,iconSize:r===void 0?"xxs":"xs",iconType:"fa-light"}),r??void 0]});return t.jsxs(b,{alignItems:"center",display:"flex",children:[p,a&&t.jsx(v,{color:d.palette.gray[800],ml:.5,size:"sm",children:a})]})},Po=({items:e})=>t.jsx(fa,{children:e.map(({isActive:n,label:i,onClick:a},r)=>t.jsx(xa,{className:n?"active":"",onClick:a,type:"button",children:t.jsx(W,{color:"inherit",fontWeight:"semibold",size:"sm",sizeSm:"xs",children:i})},`${i}-${r}`))}),Lo=s.dt.div`
|
|
3183
3183
|
${({theme:e})=>`
|
|
3184
3184
|
align-items: center;
|
|
3185
3185
|
background-color: ${e.palette.white};
|
|
@@ -3272,7 +3272,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3272
3272
|
}
|
|
3273
3273
|
}
|
|
3274
3274
|
`}
|
|
3275
|
-
`,ln=({date:e,description:n,title:i})=>{const a=s.nt();return t.jsxs(Lo,{className:"timeline-card",children:[t.jsx(v,{color:a.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:e}),t.jsx(v,{color:a.palette.gray[800],fontWeight:"bold",lineSpacing:1.5,mb:.5,size:"md",textAlign:"center",children:i}),t.jsx("div",{children:n.map((r,o)=>{const l=`${r}#${o}`;return t.jsx(v,{size:"sm",textAlign:"center",wordBreak:"break-word",children:r},l)})})]})},
|
|
3275
|
+
`,ln=({date:e,description:n,title:i})=>{const a=s.nt();return t.jsxs(Lo,{className:"timeline-card",children:[t.jsx(v,{color:a.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:e}),t.jsx(v,{color:a.palette.gray[800],fontWeight:"bold",lineSpacing:1.5,mb:.5,size:"md",textAlign:"center",children:i}),t.jsx("div",{children:n.map((r,o)=>{const l=`${r}#${o}`;return t.jsx(v,{size:"sm",textAlign:"center",wordBreak:"break-word",children:r},l)})})]})},Wo=({items:e})=>t.jsx(Mo,{children:e.map((n,i)=>t.jsx(ln,{date:n.date,description:n.description,title:n.title},`${n.title}-${i}`))}),Ao=s.dt.div`
|
|
3276
3276
|
${({theme:e})=>`
|
|
3277
3277
|
align-items: center;
|
|
3278
3278
|
display: flex;
|
|
@@ -3302,7 +3302,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3302
3302
|
width: 320px;
|
|
3303
3303
|
}
|
|
3304
3304
|
`}
|
|
3305
|
-
`,
|
|
3305
|
+
`,Bo=s.dt.button`
|
|
3306
3306
|
${({theme:e})=>`
|
|
3307
3307
|
align-items: center;
|
|
3308
3308
|
background: linear-gradient(
|
|
@@ -3331,7 +3331,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3331
3331
|
color: ${e.palette.white};
|
|
3332
3332
|
}
|
|
3333
3333
|
`}
|
|
3334
|
-
`,Ho=({defaultSelection:e,options:n,handleClick:i})=>{const[a,r]=u.useState(e??n[0]),o=u.useCallback(l=>()=>{r(l),i(l)},[i]);return t.jsx(
|
|
3334
|
+
`,Ho=({defaultSelection:e,options:n,handleClick:i})=>{const[a,r]=u.useState(e??n[0]),o=u.useCallback(l=>()=>{r(l),i(l)},[i]);return t.jsx(Ao,{children:n.map((l,c)=>t.jsx(Bo,{className:`${l.includes(a)&&"selected"}`,onClick:o(l),children:t.jsx(v,{color:"inherit",fontWeight:"bold",size:"md",sizeSm:"sm",textAlign:"center",children:l})},`${l}-${c}`))})},Vo={content:"",disableBeacon:!0,hideCloseButton:!1,locale:{back:"Back",close:"Close",last:"Close",next:"Next",open:"Open the dialog",skip:"Skip"},showSkipButton:!0,styles:{buttonBack:{fontFamily:"roboto"},buttonNext:{fontFamily:"roboto"},buttonSkip:{fontFamily:"roboto"},options:{zIndex:9999},tooltipContainer:{fontFamily:"roboto",textAlign:"left"}},target:""},Oo=({run:e,steps:n,onFinish:i})=>{const[a,r]=u.useState(e),[o,l]=u.useState(0),c=u.useCallback(d=>{const{action:p,index:g,status:x,type:f}=d;[s.EVENTS.STEP_AFTER,s.EVENTS.TARGET_NOT_FOUND].includes(f)?l(g+(p===s.ACTIONS.PREV?-1:1)):([s.STATUS.FINISHED,s.STATUS.SKIPPED].includes(x)||p==="close")&&(r(!1),s.lodashExports.isUndefined(i)||i())},[i]);return t.jsx(s.components_default,{callback:c,continuous:!0,disableOverlayClose:!0,disableScrollParentFix:!0,run:a,spotlightClicks:!0,stepIndex:o,steps:n,styles:{buttonNext:{display:o===n.length-1?"none":"block"},options:{zIndex:9999}}})},_o=s.dt.form`
|
|
3335
3335
|
${({theme:e})=>`
|
|
3336
3336
|
align-items: center;
|
|
3337
3337
|
background: ${e.palette.gray[50]};
|
|
@@ -3394,4 +3394,4 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=u.useMemo(g,[g]),f=u.useCallback(a
|
|
|
3394
3394
|
flex-direction: column;
|
|
3395
3395
|
}
|
|
3396
3396
|
`}
|
|
3397
|
-
`,Yo=({children:e,name:n,onSubmit:i,submitDisabled:a,submitLabel:r="Submit"})=>t.jsx(_o,{"aria-label":n,name:n,onSubmit:i,children:t.jsxs(Go,{children:[e,t.jsx(R,{disabled:a,type:"submit",children:r})]})});exports.Accordion=
|
|
3397
|
+
`,Yo=({children:e,name:n,onSubmit:i,submitDisabled:a,submitLabel:r="Submit"})=>t.jsx(_o,{"aria-label":n,name:n,onSubmit:i,children:t.jsxs(Go,{children:[e,t.jsx(R,{disabled:a,type:"submit",children:r})]})});exports.Accordion=Bn;exports.AccordionContent=xt;exports.ActionButton=Me;exports.Alert=qn;exports.Avatar=ii;exports.BaseButtonComponent=Oe;exports.BaseComponent=Q;exports.BaseSpanComponent=gt;exports.BaseTextComponent=_e;exports.Button=R;exports.Button$1=je;exports.ButtonToolbarCenter=ar;exports.ButtonToolbarRow=or;exports.ButtonToolbarStartRow=rr;exports.Calendar=wt;exports.Calendar$1=zt;exports.Calendar$2=It;exports.CalendarCell=mt;exports.CalendarGrid=Se;exports.CardHeader=Ce;exports.CardWithImage=oi;exports.CardWithInput=Oi;exports.CardWithOptions=Et;exports.CardWithSelector=Xi;exports.CardWithSwitch=Qi;exports.Carousel=ra;exports.CategoryTag=Be;exports.Checkbox=Te;exports.CodeSnippet=sa;exports.Col=lr;exports.ColumnsModal=Sa;exports.ComboBox=pi;exports.ComboBoxField=De;exports.Container=b;exports.ContentCard=Jt;exports.ContentCardCarousel=Pa;exports.CustomThemeProvider=Fn;exports.DateField=kt;exports.DateSelector=ae;exports.Description=an;exports.Dialog=Ie;exports.Divider=J;exports.Editable=Ti;exports.EmptyButton=He;exports.EmptyState=Aa;exports.EventDate=Zt;exports.FilePreview=bt;exports.FilterControl=Kt;exports.FilterForm=We;exports.Filters=Na;exports.FiltersList=ve;exports.FixedTabs=Po;exports.Form=Va;exports.FormItem=Uo;exports.Gap=dr;exports.GridContainer=_a;exports.GroupSelector=Ua;exports.Header=ze;exports.Header$1=Ht;exports.Heading=W;exports.Icon=z;exports.IconButton=A;exports.IndicatorCard=Ya;exports.InfoSidebar=Ka;exports.InnerForm=Ba;exports.Input=Ye;exports.InputDate=St;exports.InputDateRange=Ci;exports.InputDateTime=Ii;exports.InputFile=Ri;exports.InputNumber=Tt;exports.InputNumberRange=Nt;exports.InputTags=Pi;exports.InteractiveCard=Za;exports.InteractiveIcon=en;exports.ItemList=tn;exports.ItemSearching=me;exports.Label=Ge;exports.LanguageSelector=ir;exports.Link=q;exports.ListItem=be;exports.ListItemsWrapper=Ot;exports.LittleFlag=xr;exports.Loading=jr;exports.LocationCode=Mt;exports.Logo=Ir;exports.LogoCarousel=Sr;exports.MemoizedImage=_;exports.Menu=Tr;exports.MenuItem=on;exports.MessageBanner=Er;exports.Modal=Xt;exports.ModalConfirm=Vt;exports.ModalFooter=Wt;exports.Notification=Pr;exports.NotificationSign=At;exports.NumberField=ke;exports.NumberInput=Wr;exports.OAuthSelector=Br;exports.Option=$t;exports.OptionBoxContainer=Xe;exports.OptionContainer=Ve;exports.OptionContainer$1=Qt;exports.OutlineContainer=H;exports.PhoneInput=Hi;exports.PlanCard=Or;exports.PopUp=_r;exports.Popover=xe;exports.PremiumFeature=rn;exports.PreviewPanel=_t;exports.PriorityScore=Ur;exports.Progress=eo;exports.ProgressBar=Zr;exports.RadioButton=Ke;exports.RecommendedTag=nn;exports.Row=gr;exports.ScrollButtons=Ae;exports.ScrollUpButton=no;exports.Search=re;exports.SearchBar=po;exports.SearchPanel=Ut;exports.SeverityBadge=uo;exports.SeverityOverview=fo;exports.SeverityOverviewBadge=ie;exports.ShowOnHover=bo;exports.SingleColumFilters=qt;exports.SlideOutMenu=yo;exports.Slider=Co;exports.Span=we;exports.StepLapse=Eo;exports.Tab=Bt;exports.TableButton=Do;exports.Tabs=qe;exports.Tag=X;exports.TagsField=Le;exports.Text=v;exports.TextArea=Vi;exports.Thumb=sn;exports.TimeField=vt;exports.TimeLine=Wo;exports.TimeLineCard=ln;exports.Toggle=Pt;exports.ToggleButton=Ho;exports.Tooltip=Y;exports.Tour=Oo;exports.TwoColumnsFilters=Ia;exports.WebForm=Yo;exports.baseStep=Vo;exports.getStyledConfig=ue;exports.hiddenProps=pt;exports.icons=Nn;exports.setBorder=ce;exports.setDisplay=de;exports.setInteraction=ge;exports.setMargin=se;exports.setPadding=oe;exports.setPosition=le;exports.setText=pe;exports.theme=I;exports.uniqueIcons=En;exports.useCarousel=Ft;exports.useClickOutside=ee;exports.useCloudinaryImage=Rt;exports.useColumnsModal=Gi;exports.useConfirmDialog=Ea;exports.useDebouncedCallback=Dt;exports.useModal=Ne;exports.useSearch=Ui;exports.variantBuilder=U;
|