@fluidattacks/design 3.25.14-pr.9 → 3.25.15-pr
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/@core/index.js +1 -1
- package/dist/components/accordion/accordion-content/index.js +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/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/card-container/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/conditions-dialog/index.js +1 -1
- package/dist/components/confirm-dialog/index.js +1 -1
- package/dist/components/container/index.js +1 -1
- package/dist/components/copy-button/index.js +1 -1
- package/dist/components/divider/index.js +1 -1
- package/dist/components/dropdown/index.js +1 -1
- package/dist/components/empty-state/empty-button/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/file-preview/index.js +1 -1
- package/dist/components/form/index.js +1 -1
- package/dist/components/form/inner-form/index.js +1 -1
- package/dist/components/grid-container/index.js +1 -1
- package/dist/components/group-selector/index.js +1 -1
- package/dist/components/group-selector/option-container/index.js +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/indicator-card/index.js +1 -1
- package/dist/components/info-sidebar/index.js +1 -1
- package/dist/components/inputs/fields/combobox/field/index.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-array/field/index.js +1 -1
- package/dist/components/inputs/fields/input-array/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/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/lottie/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/applied-filter/index.js +1 -1
- package/dist/components/modal/filters-modal/applied-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/column-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-control/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/form-content/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/hooks/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/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/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-bar/index.js +1 -1
- package/dist/components/progress-indicator/in-progress-icon/index.js +1 -1
- package/dist/components/progress-indicator/index.js +1 -1
- package/dist/components/progress-indicator/step/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/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/context/index.js +1 -1
- package/dist/components/table/export-csv/index.js +1 -1
- package/dist/components/table/index.js +1 -1
- package/dist/components/table/pagination/pagination-control/index.js +1 -1
- package/dist/components/table/pagination/pagination-dropdown/index.js +1 -1
- package/dist/components/table/pagination/pagination-size/index.js +1 -1
- package/dist/components/table/sort-icon/index.js +1 -1
- package/dist/components/table/table-body/index.js +1 -1
- package/dist/components/table/table-column-toggle/index.js +1 -1
- package/dist/components/table/table-content/head/index.js +1 -1
- package/dist/components/table/table-content/index.js +1 -1
- package/dist/components/table/table-footer/footer-content/index.js +1 -1
- package/dist/components/table/table-footer/index.js +1 -1
- package/dist/components/table/table-options/caption-content/index.js +1 -1
- package/dist/components/table/table-options/controls-content/index.js +1 -1
- package/dist/components/table/table-options/highlighted-content/index.js +1 -1
- package/dist/components/table/table-options/index.js +1 -1
- package/dist/components/table/wrapper/index.js +1 -1
- package/dist/components/table-button/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/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-DISna-M0.js → components-BCQqdqFn.js} +30 -30
- package/dist/{components-Do1h4Cy1.mjs → components-qHyCIzOi.mjs} +156 -143
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -418,7 +418,7 @@
|
|
|
418
418
|
width: max-content;
|
|
419
419
|
z-index: 999999;
|
|
420
420
|
`}
|
|
421
|
-
`,J=({children:e,disabled:n=!1,display:i="inline-block",height:o,icon:r,iconColor:a,iconSize:c,id:s,maxWidth:d,nodeTip:p,place:g="bottom",tip:u="",title:f="",hide:h=u===""&&f===""&&p===void 0,width:y})=>{const $=l.Je(),[m,j]=x.useState(!1),{refs:w,floatingStyles:k,context:v}=l.useFloating({middleware:[l.flip({fallbackAxisSideDirection:"start"}),l.offset({mainAxis:10}),l.shift()],onOpenChange:j,open:m,placement:g,whileElementsMounted:l.autoUpdate}),S=l.useHover(v,{delay:{close:0,open:500},move:!1}),R=l.useFocus(v),z=l.useRole(v,{role:r?"label":"tooltip"}),{getReferenceProps:C,getFloatingProps:F}=l.useInteractions([S,R,z]);return n?t.jsx(x.StrictMode,{children:e}):t.jsxs(t.Fragment,{children:[t.jsx(Ii,{...C(),display:i,height:o,id:s,ref:w.setReference,width:y,children:r?t.jsx(E,{clickable:!0,disabled:n,icon:r,iconColor:a,iconSize:c??"xxs",iconType:m?"fa-solid":"fa-light"}):e}),m&&!h&&se.createPortal(t.jsxs(Ti,{...F(),$maxWidth:d,id:`floating-${s}`,ref:w.setFloating,style:k,children:[l.lodashExports.isEmpty(f)?void 0:t.jsx(I,{color:$.palette.white,fontWeight:"bold",lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:f}),l.lodashExports.isEmpty(u)?void 0:t.jsx(I,{color:$.palette.gray[100],lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:u}),l.lodashExports.isEmpty(p)?void 0:p]}),document.getElementById("root")??document.body)]})},
|
|
421
|
+
`,J=({children:e,disabled:n=!1,display:i="inline-block",height:o,icon:r,iconColor:a,iconSize:c,id:s,maxWidth:d,nodeTip:p,place:g="bottom",tip:u="",title:f="",hide:h=u===""&&f===""&&p===void 0,width:y})=>{const $=l.Je(),[m,j]=x.useState(!1),{refs:w,floatingStyles:k,context:v}=l.useFloating({middleware:[l.flip({fallbackAxisSideDirection:"start"}),l.offset({mainAxis:10}),l.shift()],onOpenChange:j,open:m,placement:g,whileElementsMounted:l.autoUpdate}),S=l.useHover(v,{delay:{close:0,open:500},move:!1}),R=l.useFocus(v),z=l.useRole(v,{role:r?"label":"tooltip"}),{getReferenceProps:C,getFloatingProps:F}=l.useInteractions([S,R,z]);return n?t.jsx(x.StrictMode,{children:e}):t.jsxs(t.Fragment,{children:[t.jsx(Ii,{...C(),display:i,height:o,id:s,ref:w.setReference,width:y,children:r?t.jsx(E,{clickable:!0,disabled:n,icon:r,iconColor:a,iconSize:c??"xxs",iconType:m?"fa-solid":"fa-light"}):e}),m&&!h&&se.createPortal(t.jsxs(Ti,{...F(),$maxWidth:d,id:`floating-${s}`,ref:w.setFloating,style:k,children:[l.lodashExports.isEmpty(f)?void 0:t.jsx(I,{color:$.palette.white,fontWeight:"bold",lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:f}),l.lodashExports.isEmpty(u)?void 0:t.jsx(I,{color:$.palette.gray[100],lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:u}),l.lodashExports.isEmpty(p)?void 0:p]}),document.getElementById("root")??document.body)]})},O=x.forwardRef(function({borderRadius:n,disabled:i,icon:o,iconColor:r,iconSize:a="xxs",iconTransform:c,iconType:s,id:d,justify:p="center",onClick:g,px:u,py:f,type:h="button",tooltip:y,tooltipPlace:$,value:m,variant:j="primary",...w},k){const v=t.jsx(zi,{$variant:j,"aria-disabled":i,"aria-label":d,borderRadius:n,disabled:i,id:d,justify:p,onClick:g,px:u,py:f,ref:k,type:h,value:m,...w,children:t.jsx(E,{clickable:!1,icon:o,iconColor:r,iconSize:a,iconTransform:c,iconType:s})}),R=(h+(j??"")+(d??o)).replace(/ /u,"_");return y===void 0?v:t.jsx(J,{id:`${R}-tooltip`,place:$,tip:y,children:v})}),Ei=x.forwardRef(function({autoHide:n=!1,children:i,closable:o=!1,iconEnabled:r=!0,onTimeOut:a,show:c=!0,time:s=8,variant:d="error",id:p,...g},u){const[f,h]=x.useState(c),y=x.useCallback(()=>{h(!1)},[]);return x.useEffect(()=>{const $=setTimeout(()=>{a==null||a(!0),n&&y()},s*1e3);return()=>{clearTimeout($)}},[n,y,s,a]),x.useEffect(()=>{h(c)},[c,h]),t.jsx(b,{display:f?"block":"none",ref:u,role:"alert",...g,children:t.jsxs(ki,{$variant:d,id:p,children:[r?t.jsx(E,{clickable:!1,icon:ji(d),iconSize:"xs",iconType:"fa-light"}):void 0,t.jsx(Ci,{children:i}),o?t.jsx(O,{height:"fit-content",icon:"close",iconSize:"xs",iconType:"fa-light",onClick:y,px:.125,py:.125,variant:"ghost"}):void 0]})})}),ut=l.st.div`
|
|
422
422
|
${({theme:e})=>`
|
|
423
423
|
align-items: center;
|
|
424
424
|
background-color: ${e.palette.gray[200]};
|
|
@@ -636,7 +636,7 @@
|
|
|
636
636
|
${Et}
|
|
637
637
|
`,Ai=l.st(Be.Link)`
|
|
638
638
|
${Et}
|
|
639
|
-
`,q=({children:e,color:n,download:i,href:o,iconPosition:r="right",onClick:a,target:c,variant:s="lowRelevance"})=>{const d=o.startsWith("https://"),p=t.jsx(E,{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(Li,{$color:n,$variant:s,download:i,href:o,onClick:a,rel:"nofollow noopener noreferrer",target:c??"_blank",children:[r==="left"?p:void 0,e,r==="right"?p:void 0]}):t.jsxs(Ai,{$variant:s,download:i,onClick:a,rel:"nofollow noopener noreferrer",target:c,to:o,children:[c!==void 0&&r==="left"?p:void 0,e,c!==void 0&&r==="right"?p:void 0]})},G=({disabled:e,icon:n,iconColor:i="inherit",iconType:o="fa-light",id:r="close-tag",filterValues:a="",fontSize:c,href:s,linkLabel:d,onClose:p,priority:g="default",tagTitle:u="",tagLabel:f,variant:h="default"})=>{const y=f.length>25&&l.lodashExports.isEmpty(u+a),$=`${f.slice(0,25)}...`;return t.jsxs(ue,{className:"gap-0.5",display:s===void 0?"initial":"flex",size:"sm",children:[t.jsxs(Ni,{$fontSize:c,$variant:h,className:g,children:[n&&t.jsx(E,{icon:n,iconColor:i,iconSize:"xxs",iconType:o}),t.jsxs("span",{className:"w-full",children:[t.jsx("strong",{children:u}),t.jsx("span",{children:y?$:f}),t.jsx("strong",{className:"w-full",children:a})]}),p?t.jsx(
|
|
639
|
+
`,q=({children:e,color:n,download:i,href:o,iconPosition:r="right",onClick:a,target:c,variant:s="lowRelevance"})=>{const d=o.startsWith("https://"),p=t.jsx(E,{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(Li,{$color:n,$variant:s,download:i,href:o,onClick:a,rel:"nofollow noopener noreferrer",target:c??"_blank",children:[r==="left"?p:void 0,e,r==="right"?p:void 0]}):t.jsxs(Ai,{$variant:s,download:i,onClick:a,rel:"nofollow noopener noreferrer",target:c,to:o,children:[c!==void 0&&r==="left"?p:void 0,e,c!==void 0&&r==="right"?p:void 0]})},G=({disabled:e,icon:n,iconColor:i="inherit",iconType:o="fa-light",id:r="close-tag",filterValues:a="",fontSize:c,href:s,linkLabel:d,onClose:p,priority:g="default",tagTitle:u="",tagLabel:f,variant:h="default"})=>{const y=f.length>25&&l.lodashExports.isEmpty(u+a),$=`${f.slice(0,25)}...`;return t.jsxs(ue,{className:"gap-0.5",display:s===void 0?"initial":"flex",size:"sm",children:[t.jsxs(Ni,{$fontSize:c,$variant:h,className:g,children:[n&&t.jsx(E,{icon:n,iconColor:i,iconSize:"xxs",iconType:o}),t.jsxs("span",{className:"w-full",children:[t.jsx("strong",{children:u}),t.jsx("span",{children:y?$:f}),t.jsx("strong",{className:"w-full",children:a})]}),p?t.jsx(O,{disabled:e,icon:"xmark",iconSize:"xxs",iconType:"fa-light",id:r,onClick:p,px:.125,py:.125,variant:"ghost"}):void 0]}),s===void 0?void 0:t.jsx(q,{href:s,children:d})]})},Rt=(e,n=!0)=>{const i=window.open(e,n?void 0:"_self","noopener,noreferrer,");l.lodashExports.isObject(i)&&(i.opener=null)},P=x.forwardRef(function({children:n,disabled:i=!1,external:o=!1,fontSize:r,href:a,id:c,icon:s,iconColor:d,iconType:p,name:g,onClick:u,rightIcon:f,tag:h,type:y="button",tooltip:$,tooltipPlace:m="bottom",underline:j=!1,value:w,variant:k="primary",width:v,...S},R){const z=$!==void 0,C=`${c}-tooltip`,F=x.useCallback(()=>{a&&Rt(a,o)},[o,a]),T=t.jsxs(Tt,{$size:r,$variant:k,"aria-disabled":i,className:j?"underline":void 0,disabled:i,id:c,name:g,onClick:k==="link"?F:u,ref:R,type:y,value:w,width:v,...z?{"data-tooltip-id":C}:{},...S,children:[s!==void 0&&t.jsx(E,{icon:s,iconColor:d??void 0,iconSize:"xs",iconType:p??"fa-light"}),n,f||k==="link"?t.jsx(E,{icon:f??"arrow-right",iconSize:"xs",iconType:"fa-light"}):void 0,h===void 0?null:t.jsx(G,{tagLabel:h,variant:"default"})]});return z?t.jsx(J,{disabled:!z,id:C,place:m,tip:$,width:v,children:T}):T}),Pi=x.forwardRef(function({children:n,onClick:i,userName:o,showIcon:r=!1,showUsername:a=!1},c){const s=!!i;return t.jsx(b,{id:"navbar-user-profile",ref:c,zIndex:9999,children:t.jsxs(b,{alignItems:"end",display:"flex",flexDirection:"column",position:"relative",zIndex:30,children:[s?t.jsxs(P,{onClick:i,pb:.5,pl:.5,pr:.5,pt:.5,variant:"ghost",children:[t.jsx(ut,{children:o[0].toUpperCase()}),a?t.jsx(I,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:o.split(" ")[0]}):void 0,r?t.jsx(E,{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(ut,{children:o[0].toUpperCase()}),a?t.jsxs(I,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:["Hi ",o.split(" ")[0],"!"]}):void 0,r?t.jsx(E,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}),t.jsx(Ri,{children:n})]})})}),De=({authorEmail:e,date:n,description:i,descriptionColor:o,id:r,title:a,titleColor:c,textAlign:s,textSpacing:d=0,tooltip:p})=>{const g=l.Je();return t.jsxs(b,{width:"100%",children:[typeof a=="string"||p?t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:.5,width:"100%",children:[typeof a=="string"?t.jsx(I,{color:c??g.palette.gray[800],fontWeight:"bold",mb:d,size:"sm",textAlign:s,wordBreak:"break-word",children:a}):a,p&&t.jsx(J,{icon:"circle-info",id:r,place:"top",tip:p})]}):void 0,t.jsxs(b,{alignItems:"start",display:"flex",flexDirection:"column",gap:.25,children:[i&&t.jsx(I,{color:o??g.palette.gray[800],fontWeight:i===void 0?"bold":"regular",size:"sm",textAlign:s,wordBreak:"break-word",children:i}),n&&t.jsx(I,{color:g.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:s,wordBreak:"break-word",children:`Date: ${n.split(" ")[0]}`}),e&&t.jsx(I,{color:g.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:s,wordBreak:"break-word",children:`Author: ${e}`})]})]})},xt=l.st(b).attrs(({...e})=>({display:"inline-block",position:"relative",...e}))`
|
|
640
640
|
& img {
|
|
641
641
|
display: block;
|
|
642
642
|
}
|
|
@@ -651,7 +651,7 @@
|
|
|
651
651
|
pointer-events: none;
|
|
652
652
|
${({$opacity:e=0})=>`background-color: rgba(0, 0, 0, ${e});`}
|
|
653
653
|
}
|
|
654
|
-
`,
|
|
654
|
+
`,Oi=e=>{if(l._.isNil(e))return"";const n=e.split(".");return(n.length>1?l._.last(n):"").toLowerCase()},Mi=(e,n)=>l._.isUndefined(n)?!1:l._.includes(e,Oi(n)),Dt=({alt:e,fileType:n,width:i="100%",opacity:o=0,src:r,height:a="auto",videoViewStatus:c})=>{const[s,d]=x.useState({start:!1,half:!1,end:!1}),p=x.useCallback(g=>{if(!c)return;const u=g.target,f=u.currentTime/u.duration*100;f>5&&f<50?(s.start||c("start"),d({start:!0,half:!1,end:!1})):f>=50&&f<99?(s.half||c("half"),d({start:!0,half:!0,end:!1})):f>=99?(s.end||c("end"),d({start:!0,half:!0,end:!0})):d({start:!1,half:!1,end:!1})},[c,s]);return n==="video"||Mi(["webm"],r)?t.jsx(xt,{$opacity:o,children:t.jsx(q,{href:r,iconPosition:"hidden",children:t.jsxs("video",{controls:!0,muted:!0,onTimeUpdate:p,style:{height:a,width:i},children:[t.jsx("source",{src:r,type:"video/webm"}),r]})})}):t.jsx(xt,{$opacity:o,children:t.jsx("img",{alt:e,src:r,style:{height:a,width:i}})})},Wi=({alt:e,authorEmail:n,date:i,description:o,src:r,children:a,isEditing:c,onClick:s,title:d,hideDescription:p=!1,headerType:g="image",showMaximize:u=!0,videoViewStatus:f})=>{const h=l.Je(),[y,$]=x.useState(!1),m=x.useCallback(()=>{$(!0)},[]),j=x.useCallback(()=>{$(!1)},[]);return t.jsxs(b,{bgColor:"transparent",border:"1px solid transparent",borderColorHover:"black",borderRadius:h.spacing[.25],display:"flex",flexDirection:"column",gap:1,onHover:m,onLeave:j,padding:[.5,.5,.5,.5],width:"100%",children:[t.jsx(b,{cursor:c?"unset":"pointer",display:"inline-flex",justify:"center",onClick:s,position:"relative",width:"100%",children:a===void 0?t.jsxs(x.Fragment,{children:[t.jsx(Dt,{alt:e,fileType:g,height:"147px",opacity:y?.3:0,src:r,videoViewStatus:f,width:"100%"}),u?t.jsx(b,{bottom:"10px",position:"absolute",right:"10px",children:t.jsx(O,{color:"white",icon:"arrows-maximize",iconSize:"xxs",iconType:"fa-light",variant:"secondary"})}):void 0]}):a}),p?null:t.jsx(De,{authorEmail:n,date:i,description:o,descriptionColor:h.palette.gray[600],id:`${e}-card-header`,title:d})]})},Hi=l.st.div`
|
|
655
655
|
${({theme:e,$align:n="center",$minWidth:i="auto",$minHeight:o="auto"})=>`
|
|
656
656
|
display: flex;
|
|
657
657
|
background-color: ${e.palette.white};
|
|
@@ -826,7 +826,7 @@
|
|
|
826
826
|
line-height: 18px;
|
|
827
827
|
text-align: left;
|
|
828
828
|
`}
|
|
829
|
-
`,V=({children:e,id:n,error:i,helpLink:o,helpLinkText:r="Link here",helpText:a,htmlFor:c,label:s,linkPosition:d="down",maxLength:p,required:g,tooltip:u,value:f,weight:h})=>{const y=l.Je(),$=f?f.length:0;return t.jsxs(Bi,{id:n,children:[s===void 0?void 0:t.jsx(tt,{htmlFor:c,label:s,link:d==="up"?o:void 0,required:g,tooltip:u,weight:h}),e,i||p?t.jsxs(b,{display:"flex",justify:i===void 0?"end":"space-between",width:"100%",children:[i&&t.jsx(I,{className:"error-msg",color:y.palette.error[500],display:"block",lineSpacing:1,size:"sm",children:i}),p&&t.jsx(G,{priority:"low",tagLabel:`${$}/${p}`,variant:"error"})]}):void 0,a||o?t.jsxs(b,{alignItems:"center",display:"flex",gap:.25,width:"100%",children:[a&&t.jsxs(t.Fragment,{children:[t.jsx(E,{icon:"circle-info",iconColor:y.palette.gray[400],iconSize:"xxs",iconType:"fa-light"}),t.jsx(I,{color:y.palette.gray[400],display:"inline-block",size:"sm",children:a})]}),o&&d==="down"?t.jsx(q,{href:o,children:r}):void 0]}):void 0]})},Ce=({className:e,children:n,isFilter:i=!1,popoverRef:o,state:r,triggerRef:a,...c})=>{var u;const s=x.useRef(null),d=(u=a==null?void 0:a.current)==null?void 0:u.getBoundingClientRect(),{popoverProps:p}=l.$f2f8a6077418541e$export$542a6fd13ac93354({...c,popoverRef:o??s,triggerRef:a,isNonModal:o?!0:void 0},r),g=x.useCallback(f=>{f.preventDefault()},[]);return t.jsx(l.$337b884510726a0d$export$c6fdb837b070b4ff,{children:t.jsx("div",{...p,className:e,id:"popover",onPointerDown:i?g:void 0,ref:o??s,style:{...p.style,...e==="dropdown"?{display:"flex",justifyContent:"center",width:d==null?void 0:d.width}:{}},children:n})})},Vi=l.st.ul`
|
|
829
|
+
`,V=({children:e,id:n,error:i,helpLink:o,helpLinkText:r="Link here",helpText:a,htmlFor:c,label:s,linkPosition:d="down",maxLength:p,required:g,tooltip:u,value:f,weight:h})=>{const y=l.Je(),$=f?f.length:0;return t.jsxs(Bi,{id:n,children:[s===void 0?void 0:t.jsx(tt,{htmlFor:c,label:s,link:d==="up"?o:void 0,required:g,tooltip:u,weight:h}),e,i||p?t.jsxs(b,{display:"flex",justify:i===void 0?"end":"space-between",width:"100%",children:[i&&t.jsx(I,{className:"error-msg",color:y.palette.error[500],display:"block",lineSpacing:1,size:"sm",children:i}),p&&t.jsx(G,{priority:"low",tagLabel:`${$}/${p}`,variant:"error"})]}):void 0,a||o?t.jsxs(b,{alignItems:"center",display:"flex",gap:.25,width:"100%",children:[a&&t.jsxs(t.Fragment,{children:[t.jsx(E,{icon:"circle-info",iconColor:y.palette.gray[400],iconSize:"xxs",iconType:"fa-light"}),t.jsx(I,{color:y.palette.gray[400],display:"inline-block",size:"sm",children:a})]}),o&&d==="down"?t.jsx(q,{href:o,children:r}):void 0]}):void 0]})},Ce=({className:e,children:n,isFilter:i=!1,popoverRef:o,state:r,triggerRef:a,...c})=>{var u;const s=x.useRef(null),d=(u=a==null?void 0:a.current)==null?void 0:u.getBoundingClientRect(),{popoverProps:p}=l.$f2f8a6077418541e$export$542a6fd13ac93354({...c,popoverRef:o??s,triggerRef:a,isNonModal:o?!0:void 0,shouldFlip:e==="dropdown"},r),g=x.useCallback(f=>{f.preventDefault()},[]);return t.jsx(l.$337b884510726a0d$export$c6fdb837b070b4ff,{children:t.jsx("div",{...p,className:e,id:"popover",onPointerDown:i?g:void 0,ref:o??s,style:{...p.style,maxHeight:300,overflowY:"auto",...e==="dropdown"?{display:"flex",justifyContent:"center",width:d==null?void 0:d.width}:{}},children:n})})},Vi=l.st.ul`
|
|
830
830
|
${({theme:e,$multiSelection:n})=>`
|
|
831
831
|
align-self: center;
|
|
832
832
|
background: ${e.palette.white};
|
|
@@ -961,7 +961,7 @@
|
|
|
961
961
|
fill: ${e.palette.white};
|
|
962
962
|
}
|
|
963
963
|
`}
|
|
964
|
-
`,oe=x.forwardRef(function({checked:n,disabled:i=!1,label:o,name:r,onChange:a,onClick:c,onFocus:s,onKeyDown:d,tooltip:p,value:g,...u},f){return t.jsxs("div",{className:"gap-1 inline-flex items-start",children:[t.jsxs(Ui,{"aria-disabled":i,children:[t.jsx("input",{"aria-checked":n,"aria-disabled":i,"aria-hidden":!1,"aria-label":r,checked:n,"data-testid":o??g,disabled:i,id:r,name:r,onChange:a,onClick:c,onFocus:s,onKeyDown:d,ref:f,type:"checkbox",value:g,...u}),t.jsx(E,{disabled:i,icon:"check",iconSize:"sm"}),o??g]}),p===void 0?void 0:t.jsx(J,{icon:"circle-info",id:p,place:"right",tip:p})]})}),X=(e,n,i=!1,o)=>{x.useEffect(()=>{var a;const r=c=>{e&&!e.contains(c.target)&&!(o!=null&&o.contains(c.target))&&n()};return i?(document.addEventListener("mousedown",r,!0),()=>{document.removeEventListener("mousedown",r,!0)}):((a=document.getElementById("root"))==null||a.addEventListener("mousedown",r,!0),()=>{var c;(c=document.getElementById("root"))==null||c.removeEventListener("mousedown",r,!0)})},[i,e,o,n])},Nt=({item:e,multiSelection:n,name:i,register:o,setInputValue:r,setValue:a,state:c,watch:s})=>{var z,C,F;const d=l.Je(),p=x.useRef(null),g=e.props.hrefLang,u=c.disabledKeys,f=Array.from(c.collection.getKeys()).filter(T=>!Array.from(u).includes(T)&&T!=="All"),{optionProps:h,isSelected:y,isFocused:$,isDisabled:m}=l.$293f70390ea03370$export$497855f14858aa34({key:e.key},c,p),j=[y?"selected":"",$?"focused":"",m?"disabled":""].join(" "),w=x.useCallback(T=>{r(""),a==null||a(`${i}Options`,""),T.currentTarget.checked&&(r(T.currentTarget.value),a==null||a(`${i}Options`,f))},[f,i,r,a]),k=x.useCallback(()=>{const T=s==null?void 0:s(`${i}Options`),L=typeof T=="string"?[T]:T;l.isEqual(f,L)&&!Array.from(u).includes("All")?(a==null||a("checkAll","All vulnerability types"),r("All vulnerability types")):(a==null||a("checkAll",""),r((L==null?void 0:L.length)<=2?L.join(", "):`${L.slice(0,2).join(", ")+`, +${L.length-2} more`}`))},[u,f,i,r,a,s]),v=e.key==="All"?t.jsx(oe,{...o==null?void 0:o("checkAll",{onChange:w}),label:(z=e.rendered)==null?void 0:z.toString(),name:"checkAll",value:(C=e.rendered)==null?void 0:C.toString()}):t.jsx(oe,{...o==null?void 0:o(`${i}Options`,{onChange:k}),label:(F=e.rendered)==null?void 0:F.toString(),name:`${i}Options`,value:e.key.toString()}),S=n&&!m?v:t.jsx(I,{color:d.palette.gray[800],size:"sm",textOverflow:"ellipsis",whiteSpace:"nowrap",children:e.rendered}),R=x.useCallback(T=>{var L;T.preventDefault(),r(((L=e.rendered)==null?void 0:L.toString())??""),c.setSelectedKey(e.key),setTimeout(()=>{c.setOpen(!1)},50),Rt(g)},[g,e.key,e.rendered,c,r]);return X(document.getElementsByClassName("dropdown")[0],()=>{n&&c.close()},!0,document.getElementById("combobox")),t.jsxs(Ji,{...!n&&!g?h:{},$multiSelection:n,className:j,ref:p,children:[g?t.jsx(q,{href:g,onClick:R,children:S}):S,y&&!m&&!n?t.jsx(E,{icon:"check",iconSize:"xxs",iconType:"fa-light"}):void 0,e.rendered===e.textValue?void 0:t.jsx(G,{tagLabel:e.textValue,variant:"inactive"})]})},_e=({field:e,disabled:n=!1,disabledKeys:i,error:o,helpLink:r,helpLinkText:a,helpText:c,label:s,loadingItems:d,name:p,multiSelection:g=!1,items:u,onBlur:f,onChange:h,placeholder:y,register:$,required:m,setValue:j,tooltip:w,value:k,watch:v,weight:S})=>{var pt;const R=l.Je(),z=n?void 0:o,C=(e==null?void 0:e.value)??k,[F,T]=x.useState(((pt=u.find(A=>A.value===C))==null?void 0:pt.name)??""),[L,Y]=x.useState(C),[ee,ie]=x.useState(u),[
|
|
964
|
+
`,oe=x.forwardRef(function({checked:n,disabled:i=!1,label:o,name:r,onChange:a,onClick:c,onFocus:s,onKeyDown:d,tooltip:p,value:g,...u},f){return t.jsxs("div",{className:"gap-1 inline-flex items-start",children:[t.jsxs(Ui,{"aria-disabled":i,children:[t.jsx("input",{"aria-checked":n,"aria-disabled":i,"aria-hidden":!1,"aria-label":r,checked:n,"data-testid":o??g,disabled:i,id:r,name:r,onChange:a,onClick:c,onFocus:s,onKeyDown:d,ref:f,type:"checkbox",value:g,...u}),t.jsx(E,{disabled:i,icon:"check",iconSize:"sm"}),o??g]}),p===void 0?void 0:t.jsx(J,{icon:"circle-info",id:p,place:"right",tip:p})]})}),X=(e,n,i=!1,o)=>{x.useEffect(()=>{var a;const r=c=>{e&&!e.contains(c.target)&&!(o!=null&&o.contains(c.target))&&n()};return i?(document.addEventListener("mousedown",r,!0),()=>{document.removeEventListener("mousedown",r,!0)}):((a=document.getElementById("root"))==null||a.addEventListener("mousedown",r,!0),()=>{var c;(c=document.getElementById("root"))==null||c.removeEventListener("mousedown",r,!0)})},[i,e,o,n])},Nt=({item:e,multiSelection:n,name:i,register:o,setInputValue:r,setValue:a,state:c,watch:s})=>{var z,C,F;const d=l.Je(),p=x.useRef(null),g=e.props.hrefLang,u=c.disabledKeys,f=Array.from(c.collection.getKeys()).filter(T=>!Array.from(u).includes(T)&&T!=="All"),{optionProps:h,isSelected:y,isFocused:$,isDisabled:m}=l.$293f70390ea03370$export$497855f14858aa34({key:e.key},c,p),j=[y?"selected":"",$?"focused":"",m?"disabled":""].join(" "),w=x.useCallback(T=>{r(""),a==null||a(`${i}Options`,""),T.currentTarget.checked&&(r(T.currentTarget.value),a==null||a(`${i}Options`,f))},[f,i,r,a]),k=x.useCallback(()=>{const T=s==null?void 0:s(`${i}Options`),L=typeof T=="string"?[T]:T;l.isEqual(f,L)&&!Array.from(u).includes("All")?(a==null||a("checkAll","All vulnerability types"),r("All vulnerability types")):(a==null||a("checkAll",""),r((L==null?void 0:L.length)<=2?L.join(", "):`${L.slice(0,2).join(", ")+`, +${L.length-2} more`}`))},[u,f,i,r,a,s]),v=e.key==="All"?t.jsx(oe,{...o==null?void 0:o("checkAll",{onChange:w}),label:(z=e.rendered)==null?void 0:z.toString(),name:"checkAll",value:(C=e.rendered)==null?void 0:C.toString()}):t.jsx(oe,{...o==null?void 0:o(`${i}Options`,{onChange:k}),label:(F=e.rendered)==null?void 0:F.toString(),name:`${i}Options`,value:e.key.toString()}),S=n&&!m?v:t.jsx(I,{color:d.palette.gray[800],size:"sm",textOverflow:"ellipsis",whiteSpace:"nowrap",children:e.rendered}),R=x.useCallback(T=>{var L;T.preventDefault(),r(((L=e.rendered)==null?void 0:L.toString())??""),c.setSelectedKey(e.key),setTimeout(()=>{c.setOpen(!1)},50),Rt(g)},[g,e.key,e.rendered,c,r]);return X(document.getElementsByClassName("dropdown")[0],()=>{n&&c.close()},!0,document.getElementById("combobox")),t.jsxs(Ji,{...!n&&!g?h:{},$multiSelection:n,className:j,ref:p,children:[g?t.jsx(q,{href:g,onClick:R,children:S}):S,y&&!m&&!n?t.jsx(E,{icon:"check",iconSize:"xxs",iconType:"fa-light"}):void 0,e.rendered===e.textValue?void 0:t.jsx(G,{tagLabel:e.textValue,variant:"inactive"})]})},_e=({field:e,disabled:n=!1,disabledKeys:i,error:o,helpLink:r,helpLinkText:a,helpText:c,label:s,loadingItems:d,name:p,multiSelection:g=!1,items:u,onBlur:f,onChange:h,placeholder:y,register:$,required:m,setValue:j,tooltip:w,value:k,watch:v,weight:S})=>{var pt;const R=l.Je(),z=n?void 0:o,C=(e==null?void 0:e.value)??k,[F,T]=x.useState(((pt=u.find(A=>A.value===C))==null?void 0:pt.name)??""),[L,Y]=x.useState(C),[ee,ie]=x.useState(u),[M,H]=x.useState(!1),{contains:W}=l.$bb77f239b46e8c72$export$3274cf84b703fff({sensitivity:"base"}),le=x.useRef(null),Pe=x.useRef(null),Oe=x.useRef(null),Me=x.useRef(null),We=x.useRef(null),_n=x.useMemo(()=>u.toSorted((A,B)=>{const _=Array.from(i??[]),ce=_.includes(A.value),gt=_.includes(B.value);return ce&&!gt?1:!ce&>?-1:0}).map(A=>W(A.name,F)||M?t.jsx(l.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,{"aria-label":A.value,hrefLang:A.href,textValue:A.tag,children:A.name},A.value):null),[W,i,F,u,M]),Vn=x.useCallback(A=>{const B=A.split(/,|\s/u).slice(-1)[0].trim();T(g?B:A),A===""||A.endsWith(",")?H(!0):(H(!1),Y(_=>{const ce=A===""?"":_;return e&&e.onChange(ce),h&&h(A),ce}),ie(u.filter(_=>W(_.name,g?B:A))))},[W,u,e,g,h]),Jn=x.useCallback(A=>{var B;T(((B=u.find(_=>_.value===A))==null?void 0:B.name)??""),Y(A?String(A):""),e&&e.onChange(A),h&&h(A?String(A):""),ie(u)},[u,e,h]),dt=x.useCallback(A=>{A.key==="Enter"&&A.preventDefault(),H(!1)},[]),Un=x.useCallback(()=>{f&&f(),e&&e.onBlur()},[e,f]),Gn=x.useCallback(()=>{H(!0)},[]),U=l.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({allowsCustomValue:g,allowsEmptyCollection:!0,disabledKeys:i,inputValue:F,items:ee,menuTrigger:"focus",shouldCloseOnBlur:!g,selectedKey:L,onBlur:Un,onInputChange:Vn,onKeyDown:dt,onKeyUp:Gn,onOpenChange(A,B){H(A&&(B==="manual"||B==="focus")),A&&setTimeout(()=>{var _;return(_=le.current)==null?void 0:_.focus()},50)},onSelectionChange:g?void 0:Jn,children:_n}),{buttonProps:Yn,inputProps:Kn,listBoxProps:Zn}=l.$c350ade66beef0af$export$8c18d1b4f7232bbf({inputValue:F,buttonRef:Pe,id:p,inputRef:le,label:s??p,listBoxRef:Oe,name:p,placeholder:y,popoverRef:We},U),{listBoxProps:qn}=l.$c132121280ec012d$export$50eacbbf140a3141(Zn,U,Oe),{buttonProps:Xn}=l.$701a24aa0da5b062$export$ea18c227d4417cc3(Yn,Pe);return X(Me.current,()=>{U.isOpen&&!g&&U.close()},!0,We.current),x.useEffect(()=>{var A;if((d===!1||!C)&&!g){const B=((A=u.find(_=>_.value===C))==null?void 0:A.name)??"";T(B),Y(B)}},[C,u,d,g]),t.jsxs(V,{error:z,helpLink:r,helpLinkText:a,helpText:c,htmlFor:p,id:"combobox",label:s,required:m,tooltip:w,weight:S,children:[t.jsxs(ne,{className:`${n?"disabled":""} ${z?"error":""}`,ref:Me,children:[t.jsx("input",{...Kn,"aria-invalid":z?"true":"false","aria-label":p,disabled:n,onKeyDown:dt,ref:le}),z?t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:R.palette.error[500],iconSize:"xs"}):void 0,t.jsx(O,{...Xn,className:"action",disabled:n,icon:U.isOpen&&!n?"chevron-up":"chevron-down",iconColor:R.palette.gray[400],iconSize:"xxs",iconType:"fa-light",px:.125,py:.125,ref:Pe,type:"button",variant:"ghost"})]}),U.isOpen&&U.collection.size>0&&!n?t.jsx(Ce,{className:"dropdown",offset:4,placement:"bottom start",popoverRef:We,state:U,triggerRef:Me,children:t.jsx(Vi,{...qn,$multiSelection:g&&!Array.from(i??[]).includes("All"),ref:Oe,children:[...U.collection].map(A=>t.jsx(Nt,{item:A,multiSelection:g,name:p,register:$,setInputValue:T,setValue:j,state:U,watch:v},A.key))})}):null]})},nt=({control:e,disabled:n=!1,disabledKeys:i,error:o,helpLink:r,helpLinkText:a,helpText:c,label:s,loadingItems:d,name:p,multiSelection:g,items:u,onBlur:f,onChange:h,placeholder:y,register:$,required:m,setValue:j,tooltip:w,value:k,watch:v,weight:S})=>e?t.jsx(l.Controller,{control:e,name:p,render:({field:R,fieldState:z})=>{var C;return t.jsx(_e,{disabled:n,disabledKeys:i,error:(C=z.error)==null?void 0:C.message,field:R,helpLink:r,helpLinkText:a,helpText:c,items:u,label:s,loadingItems:d,multiSelection:g,name:p,onBlur:f,onChange:h,placeholder:y,register:$,required:m,setValue:j,tooltip:w,value:k,watch:v,weight:S})},rules:{required:m}}):t.jsx(_e,{disabled:n,disabledKeys:i,error:o,helpLink:r,helpLinkText:a,helpText:c,items:u,label:s,loadingItems:d,multiSelection:g,name:p,onBlur:f,onChange:h,placeholder:y,required:m,tooltip:w,value:k,weight:S}),Gi=l.st.div`
|
|
965
965
|
${({theme:e})=>`
|
|
966
966
|
align-items: center;
|
|
967
967
|
color: ${e.palette.gray[800]};
|
|
@@ -1193,7 +1193,7 @@
|
|
|
1193
1193
|
font-weight: ${e.typography.weight.bold};
|
|
1194
1194
|
}
|
|
1195
1195
|
`}
|
|
1196
|
-
`,Te=({disabled:e=!1,icon:n,props:i})=>{const o=x.useRef(null),{buttonProps:r}=l.$701a24aa0da5b062$export$ea18c227d4417cc3(i,o);return t.jsx(eo,{...r,$disabled:e,$focus:!!r["aria-expanded"],$header:n==="calendar"||n==="calendar-clock",disabled:e,ref:o,type:"button",children:t.jsx(E,{icon:n,iconColor:D.palette.gray[e?400:700],iconSize:"xs",iconType:"fa-light"})})},Fe=({state:e,prevButtonProps:n,nextButtonProps:i,title:o})=>{const r=e.focusedDate,a=x.useCallback(()=>{e.setFocusedDate(r.add({years:1}))},[r,e]),
|
|
1196
|
+
`,Te=({disabled:e=!1,icon:n,props:i})=>{const o=x.useRef(null),{buttonProps:r}=l.$701a24aa0da5b062$export$ea18c227d4417cc3(i,o);return t.jsx(eo,{...r,$disabled:e,$focus:!!r["aria-expanded"],$header:n==="calendar"||n==="calendar-clock",disabled:e,ref:o,type:"button",children:t.jsx(E,{icon:n,iconColor:D.palette.gray[e?400:700],iconSize:"xs",iconType:"fa-light"})})},Fe=({state:e,prevButtonProps:n,nextButtonProps:i,title:o})=>{const r=e.focusedDate,a=l.Je(),c=x.useCallback(()=>{e.setFocusedDate(r.add({years:1}))},[r,e]),s=x.useCallback(()=>{e.setFocusedDate(r.subtract({years:1}))},[r,e]);return t.jsxs("div",{className:"header flex items-start",style:{position:"sticky",top:0,zIndex:2,background:a.palette.white},children:[t.jsx(Te,{icon:"chevron-left",props:n}),t.jsxs(Gi,{children:[o,t.jsxs(Yi,{children:[t.jsx(ht,{"aria-label":"top",onClick:c,children:t.jsx(E,{icon:"caret-up",iconClass:"fa-sharp",iconSize:"xxss"})}),t.jsx(ht,{"aria-label":"bottom",onClick:s,children:t.jsx(E,{icon:"caret-down",iconClass:"fa-sharp",iconSize:"xxss"})})]})]}),t.jsx(Te,{icon:"chevron-right",props:i})]})},At=({onClose:e,props:n})=>{const{locale:i}=l.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),o=l.$131cf43a05231e1e$export$6d095e787d2b5e1f({...n,createCalendar:l.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:r,nextButtonProps:a,title:c}=l.$9942cad8a072a530$export$3ee915f8151bd4f1(n,o);return t.jsxs("div",{className:"calendar",children:[t.jsx(Fe,{nextButtonProps:a,prevButtonProps:r,state:o,title:c}),t.jsx(Ne,{state:o}),t.jsx(it,{children:t.jsx(P,{onClick:e,variant:"ghost",children:"Cancel"})})]})},Pt=({segment:e,state:n})=>{const i=l.Je(),o=x.useRef(null),a={...e,placeholder:{day:"dd",dayPeriod:"(AM/PM)",era:"",hour:"hh",literal:"",minute:"mm",month:"mm",second:"",timeZoneName:"",year:"yyyy"}[e.type]},{segmentProps:c}=l.$32489daedd52963e$export$1315d136e6f7581(a,n,o),s=i.palette.gray[a.isEditable?800:500];return t.jsx("div",{...a.type!=="literal"&&{...c,className:"segment-cell"},ref:o,style:a.type==="literal"?void 0:{color:a.isPlaceholder?i.palette.gray[400]:s},children:a.isPlaceholder?a.placeholder:a.text})},Ot=({disabled:e,error:n=!1,props:i})=>{const o=l.Je(),r=x.useRef(null),a=l.$3c0fc76039f1c516$export$60e84778edff6d26({...i,createCalendar:l.$64244302c3013299$export$dd0bbc9b26defe37,locale:"en-US"}),{fieldProps:c}=l.$16f0b7bb276bc17e$export$5591b0b878c1a989(i,a,r),s=x.useCallback(d=>{const p=document.getElementsByClassName("segment-cell"),g=d.currentTarget;Object.values(p).some(u=>u.contains(g))||(d.preventDefault(),d.stopPropagation())},[]);return t.jsxs(to,{...c,onClick:s,children:[t.jsx("div",{className:"flex flex-row",style:{color:o.palette.gray[l.lodashExports.isNil(a.value)?400:800]},tabIndex:-1,children:a.segments.map((d,p)=>{const g=`key_${p}`;return t.jsx(Pt,{segment:{...d,isEditable:!e},state:a},g)})}),n?t.jsx(E,{icon:"exclamation-circle",iconColor:o.palette.error[500],iconSize:"xs"}):void 0]})},Mt=e=>{const n=x.useRef(null),i=l.$eff5d8ee529ac4bb$export$fd53cef0cc796101({...e,locale:"en-US",shouldForceLeadingZeros:!0}),{timeValue:o}=i,r=!l.lodashExports.isNil(o)&&o.hour<12?"AM":"PM",[a,c]=x.useState(l.lodashExports.isNil(o)?"AM":r),{fieldProps:s}=l.$16f0b7bb276bc17e$export$4c842f6a241dc825(e,i,n),d=x.useCallback(p=>{const g=p.currentTarget.name;g!==a&&(l.lodashExports.isNil(o)||(g==="AM"?i.setSegment("dayPeriod",0):g==="PM"&&i.setSegment("dayPeriod",12))),c(g)},[a,i,o]);return t.jsxs(no,{children:[t.jsx(yt,{...s,ref:n,children:i.segments.slice(0,-2).map((p,g)=>{const u=`key_${g}`;return t.jsx(Pt,{segment:p,state:i},u)})}),t.jsxs(yt,{children:[t.jsx(bt,{id:a==="AM"?"active":"",name:"AM",onClick:d,type:"button",children:"AM"}),t.jsx(bt,{id:a==="PM"?"active":"",name:"PM",onClick:d,type:"button",children:"PM"})]})]})},Ee=e=>e&&e!=="-"?l.dayjs(e).format("YYYY-MM-DD"):"-",io=e=>e&&e!=="-"?l.dayjs(e).format("YYYY-MM-DD hh:mm A"):"-",$t=(e,n)=>l.dayjs(String(e).replace(/-/gu,"/")).hour(n.hour).minute(n.minute).second(n.second).format("YYYY/MM/DD hh:mm A"),xe=({error:e,buttonProps:n,datePickerRef:i,disabled:o=!1,granularity:r="day",fieldProps:a,groupProps:c,name:s,register:d,required:p,setValue:g,value:u})=>{const f=x.useCallback(h=>{if(!h)return;const y=r==="day"?Ee(String(h)):io(String(h));a.onChange&&a.onChange(h??null),g&&g(s,y,{shouldDirty:!0})},[a,r,s,g]);return t.jsxs(ne,{...c,className:`${o?"disabled":""} ${e?"error":""}`,ref:i,children:[t.jsx(Ot,{disabled:o,error:e!=null,props:{...a,autoFocus:!1,granularity:r,onChange:f,shouldForceLeadingZeros:!0}}),t.jsx(Te,{disabled:o,icon:r==="minute"?"calendar-clock":"calendar",props:n}),t.jsx("input",{...d==null?void 0:d(s,{required:p}),"aria-label":s,className:"date-input",disabled:o,id:s,name:s,type:"text",value:u??""})]})},Le=({children:e,...n})=>{const i=x.useRef(null),{dialogProps:o}=l.$40df3f8667284809$export$d55e7ee900f34e93(n,i);return t.jsx(Qi,{...o,ref:i,children:e})},Wt=({disabled:e=!1,error:n,helpLink:i,helpLinkText:o,helpText:r,required:a,label:c,name:s,register:d,setValue:p,tooltip:g,watch:u,...f})=>{const h=x.useRef(null),y=u==null?void 0:u(s),$=x.useCallback(z=>{p&&z&&p(s,Ee(String(z)),{shouldDirty:!0})},[s,p]),m=l.$ab5bf3f618090389$export$87194bb378cc3ac2({...f,onChange(z){$(z)},...!l._.isNil(y)&&!l._.isEmpty(y)&&l.dayjs(y).isValid()?{defaultValue:l.$fae977aafc393c5c$export$6b862160d295c8e(y.replace(/\//gu,"-"))}:{}}),{close:j}=m,{groupProps:w,fieldProps:k,buttonProps:v,dialogProps:S,calendarProps:R}=l.$6057a3d2a53a12fd$export$42df105a73306d51({...f,"aria-label":c??s,name:s},m,h);return t.jsxs(V,{error:n,helpLink:i,helpLinkText:o,helpText:r,htmlFor:s,label:c,required:a,tooltip:g,children:[t.jsx(xe,{buttonProps:v,datePickerRef:h,disabled:e,error:n,fieldProps:k,groupProps:w,name:s,register:d,required:a,setValue:p,value:y}),m.isOpen&&!e?t.jsx(Ce,{offset:8,placement:"bottom start",state:m,triggerRef:h,children:t.jsx(Le,{...S,children:t.jsx(At,{onClose:j,props:R})})}):null]})},Ht=({onClose:e,props:n})=>{const{locale:i}=l.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),o=x.useRef(null),r=l.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90({...n,createCalendar:l.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:a,nextButtonProps:c,title:s}=l.$46a4342aab3d8076$export$87e0539f600c24e5(n,r,o);return t.jsxs("div",{className:"calendar-range",ref:o,children:[t.jsx(Fe,{nextButtonProps:c,prevButtonProps:a,state:r,title:s}),t.jsx(Ne,{state:r}),t.jsx(it,{children:t.jsx(P,{onClick:e,variant:"ghost",children:"Cancel"})})]})},oo=l.st.div`
|
|
1197
1197
|
${({theme:e,$disabled:n,$show:i})=>`
|
|
1198
1198
|
border-color: ${i?e.palette.error[500]:e.palette.gray[300]};
|
|
1199
1199
|
display: flex;
|
|
@@ -1219,9 +1219,9 @@
|
|
|
1219
1219
|
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1220
1220
|
justify-content: flex-end;
|
|
1221
1221
|
flex: 1 0 0;
|
|
1222
|
-
`,_t=({handleTimeChange:e,onClose:n,props:i,timeState:o})=>{const r=l.Je(),{locale:a}=l.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),c=l.$131cf43a05231e1e$export$6d095e787d2b5e1f({...i,createCalendar:l.$64244302c3013299$export$dd0bbc9b26defe37,locale:a}),{prevButtonProps:s,nextButtonProps:d,title:p}=l.$9942cad8a072a530$export$3ee915f8151bd4f1(i,c);return t.jsxs("div",{className:"calendar",children:[t.jsx(Fe,{nextButtonProps:d,prevButtonProps:s,state:c,title:p}),t.jsx(Ne,{state:c}),t.jsxs(ro,{children:[t.jsx(I,{color:r.palette.gray[800],fontWeight:"bold",size:"sm",children:"Time"}),t.jsx(ao,{children:t.jsx(
|
|
1223
|
-
${e?"disabled":""} ${L?"error":""} ${
|
|
1224
|
-
`,children:[n?t.jsx(E,{icon:"user",iconSize:"sm",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":L?"true":"false","aria-label":f,"aria-required":z,autoComplete:"off",className:h?"sr-block":"","data-testid":`${f}-input`,disabled:e,id:f,list:w?`list_${f}`:void 0,onKeyDown:H,onPaste:y,placeholder:$,type:v,...j?j(f,{required:z,onBlur:C,onChange:ie}):{...R,onChange:ie}}),L?t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:T.palette.error[500],iconSize:"xs"}):void 0,
|
|
1222
|
+
`,_t=({handleTimeChange:e,onClose:n,props:i,timeState:o})=>{const r=l.Je(),{locale:a}=l.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),c=l.$131cf43a05231e1e$export$6d095e787d2b5e1f({...i,createCalendar:l.$64244302c3013299$export$dd0bbc9b26defe37,locale:a}),{prevButtonProps:s,nextButtonProps:d,title:p}=l.$9942cad8a072a530$export$3ee915f8151bd4f1(i,c);return t.jsxs("div",{className:"calendar",children:[t.jsx(Fe,{nextButtonProps:d,prevButtonProps:s,state:c,title:p}),t.jsx(Ne,{state:c}),t.jsxs(ro,{children:[t.jsx(I,{color:r.palette.gray[800],fontWeight:"bold",size:"sm",children:"Time"}),t.jsx(ao,{children:t.jsx(Mt,{hourCycle:12,label:"time-field",onChange:e,value:o.timeValue})})]}),t.jsx(it,{children:t.jsx(P,{onClick:n,variant:"ghost",children:"Cancel"})})]})},so=e=>{const{disabled:n=!1,error:i,required:o,label:r,name:a,tooltip:c,register:s,setValue:d,watch:p}=e,g=p==null?void 0:p(a),u=x.useRef(null),f=l.$ab5bf3f618090389$export$87194bb378cc3ac2({...e,granularity:"minute",hourCycle:12,isDisabled:n,isRequired:o,shouldCloseOnSelect:!1,value:l._.isNil(g)||l._.isEmpty(g)||g==="-"||l.dayjs(g,"YYYY/MM/DD hh:mm A").isValid()===!1?null:l.$fae977aafc393c5c$export$588937bcd60ade55(l.dayjs(g,"YYYY/MM/DD hh:mm A").format("YYYY-MM-DDTHH:mm:ss"))}),{close:h}=f,{groupProps:y,fieldProps:$,buttonProps:m,dialogProps:j,calendarProps:w}=l.$6057a3d2a53a12fd$export$42df105a73306d51(e,f,u),k=x.useCallback(S=>{if(w.onChange&&w.onChange(S),f.timeValue){const R=$t(S,f.timeValue);d==null||d(a,R,{shouldDirty:!0})}else f.setDateValue(S)},[w,a,d,f]),v=x.useCallback(S=>{if(S){f.setTimeValue(S);const R=f.dateValue;if(R){const z=$t(R,S);d==null||d(a,z,{shouldDirty:!0})}}},[f,d,a]);return t.jsxs(V,{error:i,htmlFor:a,label:r,required:o,tooltip:c,children:[t.jsx(xe,{buttonProps:m,datePickerRef:u,disabled:n,error:i,fieldProps:$,granularity:"minute",groupProps:y,name:a,register:s,setValue:d,value:g}),f.isOpen&&!n?t.jsx(Ce,{offset:8,placement:"bottom start",state:f,triggerRef:u,children:t.jsx(Le,{...j,children:t.jsx(_t,{handleTimeChange:v,onClose:h,props:{...w,onChange:k},timeState:f})})}):null]})},lo=({children:e,currentValue:n,externalLink:i,isEditing:o,label:r,name:a,tooltip:c})=>{if(o)return t.jsx("div",{children:e});const s=l.lodashExports.isNil(n)?"":n,d=String(i??s);return t.jsxs(b,{children:[t.jsx(tt,{htmlFor:a,label:r,tooltip:c,weight:"bold"}),d.startsWith("https://")?t.jsx(q,{href:d,children:s}):t.jsx(I,{size:"md",children:s})]})},Ae=({disabled:e=!1,hasIcon:n=!1,helpLink:i,helpLinkText:o,helpText:r,error:a,id:c,indexArray:s=0,isValid:d,isTouched:p,label:g,linkPosition:u,name:f,maskValue:h=!1,onPaste:y,placeholder:$,removeItemArray:m,register:j,suggestions:w,tooltip:k,type:v="text",weight:S,...R})=>{const{required:z,onBlur:C,onChange:F}=R,T=l.Je(),L=e?void 0:a,[Y,ee]=x.useState(""),ie=x.useCallback(W=>{ee(W.target.value),F==null||F(W)},[F]),M=d&&p&&!e&&Y.trim()!=="",H=x.useCallback(W=>{W.key==="Enter"&&W.preventDefault()},[]);return t.jsxs(V,{error:L,helpLink:i,helpLinkText:o,helpText:r,htmlFor:f,label:g,linkPosition:u,required:z,tooltip:k,weight:S,children:[t.jsxs(ne,{className:`
|
|
1223
|
+
${e?"disabled":""} ${L?"error":""} ${M?"success":""}
|
|
1224
|
+
`,children:[n?t.jsx(E,{icon:"user",iconSize:"sm",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":L?"true":"false","aria-label":f,"aria-required":z,autoComplete:"off",className:h?"sr-block":"","data-testid":`${f}-input`,disabled:e,id:f,list:w?`list_${f}`:void 0,onKeyDown:H,onPaste:y,placeholder:$,type:v,...j?j(f,{required:z,onBlur:C,onChange:ie}):{...R,onChange:ie}}),L?t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:T.palette.error[500],iconSize:"xs"}):void 0,M?t.jsx(E,{icon:"check-circle",iconClass:"success-icon",iconColor:T.palette.success[500],iconSize:"xs"}):void 0,c==="array"&&s>0?t.jsx(O,{color:T.palette.gray[400],icon:"trash",iconSize:"xxs",iconType:"fa-light",onClick:m?m(s):void 0,variant:"ghost"}):void 0]}),w?t.jsx("datalist",{id:`list_${f}`,children:w.map(W=>t.jsx("option",{value:W},W))}):void 0]})},co=l.st.div.attrs({className:"flex flex-wrap justify-center pv3 w-100"})``,po=l.st.div.attrs({className:"flex flex-wrap items-center justify-start mb2"})`
|
|
1225
1225
|
gap: 12px;
|
|
1226
1226
|
`,go=l.st.div.attrs({className:"flex flex-wrap items-center justify-end mb2"})`
|
|
1227
1227
|
gap: 8px;
|
|
@@ -1288,7 +1288,7 @@
|
|
|
1288
1288
|
position: absolute;
|
|
1289
1289
|
visibility: hidden;
|
|
1290
1290
|
width: 0;
|
|
1291
|
-
`,fe=(e,n,i)=>{const o=new Event(e);return Object.defineProperty(o,"target",{value:{name:n,value:i}}),o},mo=e=>{const n=e;return n?Array.from(n).map(i=>i.name).join(", "):""},wo=({accept:e,disabled:n=!1,error:i,label:o,helpLink:r,helpText:a,id:c,multiple:s,name:d,onChange:p,required:g,register:u,setValue:f,tooltip:h,watch:y,weight:$})=>{const m=l.Je(),j=n?void 0:i,w=x.useRef(null),k=u==null?void 0:u(d,{required:g}),v=y==null?void 0:y(d),S=mo(v),R=x.useCallback(()=>{const F=fe("change",d,void 0);f&&f(d,void 0),k&&k.onChange(F)},[k,d,f]),z=x.useCallback(F=>{const{files:T}=F.currentTarget,L=fe("change",d,T&&T.length>0?T:void 0);T&&T.length>0&&(p==null||p(L),f&&f(d,T),k&&k.onChange(L))},[k,d,p,f]),C=x.useCallback(F=>{n?F.preventDefault():w.current&&w.current.click()},[n]);return t.jsxs(V,{error:j,helpLink:r,helpText:a,htmlFor:c??d,label:o,required:g,tooltip:h,weight:$,children:[t.jsxs(ne,{className:`${n?"disabled":""} ${j?"error":""}`,children:[t.jsx(bo,{$size:"xs",children:S}),t.jsxs(b,{alignItems:"center",display:"flex",gap:.625,children:[l.lodashExports.isEmpty(S)?void 0:t.jsx(
|
|
1291
|
+
`,fe=(e,n,i)=>{const o=new Event(e);return Object.defineProperty(o,"target",{value:{name:n,value:i}}),o},mo=e=>{const n=e;return n?Array.from(n).map(i=>i.name).join(", "):""},wo=({accept:e,disabled:n=!1,error:i,label:o,helpLink:r,helpText:a,id:c,multiple:s,name:d,onChange:p,required:g,register:u,setValue:f,tooltip:h,watch:y,weight:$})=>{const m=l.Je(),j=n?void 0:i,w=x.useRef(null),k=u==null?void 0:u(d,{required:g}),v=y==null?void 0:y(d),S=mo(v),R=x.useCallback(()=>{const F=fe("change",d,void 0);f&&f(d,void 0),k&&k.onChange(F)},[k,d,f]),z=x.useCallback(F=>{const{files:T}=F.currentTarget,L=fe("change",d,T&&T.length>0?T:void 0);T&&T.length>0&&(p==null||p(L),f&&f(d,T),k&&k.onChange(L))},[k,d,p,f]),C=x.useCallback(F=>{n?F.preventDefault():w.current&&w.current.click()},[n]);return t.jsxs(V,{error:j,helpLink:r,helpText:a,htmlFor:c??d,label:o,required:g,tooltip:h,weight:$,children:[t.jsxs(ne,{className:`${n?"disabled":""} ${j?"error":""}`,children:[t.jsx(bo,{$size:"xs",children:S}),t.jsxs(b,{alignItems:"center",display:"flex",gap:.625,children:[l.lodashExports.isEmpty(S)?void 0:t.jsx(O,{color:m.palette.gray[400],height:"20px",icon:"xmark",iconSize:"lg",iconType:"fa-light",onClick:R,variant:"ghost",width:"20px"}),j&&t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:m.palette.error[500],iconSize:"xs"}),t.jsxs(P,{border:n?`1px solid ${m.palette.gray[300]} !important`:"",borderRadius:"0px 8px 8px 0px !important",disabled:n,height:"40px",onClick:C,variant:"primary",width:"96px",children:[t.jsx(E,{icon:"search",iconSize:"sm",mr:.5}),"Add file"]})]})]}),t.jsx($o,{...k,accept:e,"aria-label":d,"data-testid":d,disabled:n,id:c??d,multiple:s,name:d,onChange:z,ref:w,type:"file"})]})},jo=l.st.input`
|
|
1292
1292
|
border: none;
|
|
1293
1293
|
background: transparent;
|
|
1294
1294
|
min-width: 15rem;
|
|
@@ -1388,7 +1388,7 @@
|
|
|
1388
1388
|
overflow: hidden;
|
|
1389
1389
|
text-overflow: ellipsis;
|
|
1390
1390
|
white-space: nowrap;
|
|
1391
|
-
`,To=({disabled:e,error:n,label:i,name:o,placeholder:r,required:a,register:c,tooltip:s,value:d,watch:p,weight:g})=>{const u=l.Je(),f=x.useRef(null),h=e?void 0:n,y=(p==null?void 0:p(o))??d,[$,m]=x.useState(!1),[j,w]=x.useState(""),{refs:k,floatingStyles:v}=l.useFloating$1({placement:"bottom-start",whileElementsMounted:l.autoUpdate}),{inputRef:S,inputValue:R,handlePhoneValueChange:z,country:C,setCountry:F}=l.ee({countries:l.R,defaultCountry:"co",forceDialCode:!0,value:y?String(y):""}),T=x.useCallback(
|
|
1391
|
+
`,To=({disabled:e,error:n,label:i,name:o,placeholder:r,required:a,register:c,tooltip:s,value:d,watch:p,weight:g})=>{const u=l.Je(),f=x.useRef(null),h=e?void 0:n,y=(p==null?void 0:p(o))??d,[$,m]=x.useState(!1),[j,w]=x.useState(""),{refs:k,floatingStyles:v}=l.useFloating$1({placement:"bottom-start",whileElementsMounted:l.autoUpdate}),{inputRef:S,inputValue:R,handlePhoneValueChange:z,country:C,setCountry:F}=l.ee({countries:l.R,defaultCountry:"co",forceDialCode:!0,value:y?String(y):""}),T=x.useCallback(M=>{M.key==="Enter"&&M.preventDefault()},[]),L=x.useCallback(M=>{M.preventDefault(),m(H=>!H),$||w("")},[$]),Y=x.useCallback(M=>()=>{F(M),m(!1),w("")},[F,m]),ee=x.useCallback(M=>{M.key.length===1?w(H=>H+M.key):M.key==="Backspace"&&w(H=>H.slice(0,-1))},[]),ie=l.R.filter(M=>{const{name:H}=l.M(M);return H.toLowerCase().includes(j.toLowerCase())});return X(k.floating.current,()=>{m(!1),w("")},!0),t.jsx(V,{error:h,htmlFor:o,label:i,required:a,tooltip:s,weight:g,children:t.jsxs(ko,{className:`${e?"disabled":""} ${h?"error":""}`,ref:f,children:[t.jsxs(Co,{"aria-label":"country-selector","data-testid":"country-selector",disabled:e,id:"country-selector",onClick:L,onKeyDown:ee,ref:k.setReference,children:[t.jsx(l.q,{iso2:C.iso2,size:"16px"}),t.jsx(E,{icon:"angle-down",iconColor:u.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(ne,{className:`${e?"disabled":""} ${h?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":h?"true":"false","aria-label":o,"aria-required":a,autoComplete:"off","data-testid":`${o}-input`,disabled:e,id:o,name:o,onKeyDown:T,placeholder:r,ref:S,type:"tel",value:R,...c==null?void 0:c(o,{required:a,onChange:z})}),h?t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:u.palette.error[500],iconSize:"xs"}):void 0]}),$&&se.createPortal(t.jsx(So,{ref:k.setFloating,style:v,children:ie.map(M=>{const{dialCode:H,iso2:W,name:le}=l.M(M);return t.jsxs(zo,{onClick:Y(W),value:W,children:[t.jsx(l.q,{iso2:W,size:"16px"}),t.jsx(Io,{children:le}),t.jsx(I,{color:u.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+H})]},W)})}),document.getElementById("modal-wrapper")??document.getElementById("root")??document.body)]})})},Eo=({disabled:e=!1,error:n,helpLink:i,helpText:o,isTouched:r,isValid:a,label:c,name:s="input-text",id:d,maskValue:p=!1,maxLength:g,onBlur:u,placeholder:f,register:h,required:y,rows:$,tooltip:m,watch:j,weight:w,value:k})=>{const v=l.Je(),S=(j==null?void 0:j(s))??k,R=a&&r&&!e,z=e?void 0:n;return t.jsx(V,{error:z,helpLink:i,helpText:o,htmlFor:s,label:c,maxLength:g,required:y,tooltip:m,value:S?String(S):void 0,weight:w,children:t.jsxs(ne,{className:`
|
|
1392
1392
|
${e?"disabled":""} ${z?"error":""} ${R?"success":""}
|
|
1393
1393
|
`,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":z?"true":"false","aria-label":s,"aria-required":y,className:p?"sr-block":"","data-testid":`${s}-text-area`,disabled:e,id:d??s,maxLength:g,placeholder:f,rows:$,value:S,...h==null?void 0:h(s,{required:y,onBlur:u})}),z?t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:v.palette.error[500],iconSize:"xs"}):void 0,R?t.jsx(E,{icon:"check-circle",iconClass:"success-icon",iconColor:v.palette.success[500],iconSize:"xs"}):void 0]})})},Ro=({control:e,description:n,disabled:i,id:o,items:r,align:a,inputType:c="text",inputNumberProps:s,minHeight:d,minWidth:p,name:g,placeholder:u,textAlign:f,tooltip:h,title:y,value:$,isTouched:m,isValid:j,error:w,onChange:k,register:v,setValue:S,watch:R})=>{const z=x.useMemo(()=>{if(c==="text")return t.jsx(Ae,{disabled:i,error:w,isTouched:m,isValid:j,name:g,placeholder:u,register:v});if(c==="date")return t.jsx(Wt,{disabled:i,error:w,name:g,register:v,setValue:S,watch:R});if(c==="select"&&r)return t.jsx(nt,{control:e,disabled:i,items:r,name:g,placeholder:u,value:$});const{decimalPlaces:C,max:F,min:T}=s??{};return t.jsx(Jt,{decimalPlaces:C,disabled:i,error:w,max:F,min:T,name:g,onChange:k,placeholder:u,register:v,setValue:S,value:$,watch:R})},[e,i,w,s,c,m,j,r,g,k,u,v,S,$,R]);return t.jsxs(Hi,{$align:a,$minHeight:d,$minWidth:p,children:[t.jsx(De,{description:n,id:o,textAlign:f,title:y,tooltip:h}),z]})},Do=l.st.div`
|
|
1394
1394
|
display: flex;
|
|
@@ -1396,7 +1396,7 @@
|
|
|
1396
1396
|
margin-left: auto;
|
|
1397
1397
|
width: 40px;
|
|
1398
1398
|
height: auto;
|
|
1399
|
-
`,Gt=(e,n)=>{const[o,r]=x.useState(0),[a,c]=x.useState(0);return x.useEffect(()=>{a===100&&(()=>{r(d=>d===n-1?0:d+1)})()},[a,n]),x.useEffect(()=>{const s=setInterval(()=>{c(d=>d===100?0:d+1)},e);return()=>{clearInterval(s)}},[e]),{cycle:o,progress:a,setCycle:r,setProgress:c}},Yt=({publicId:e,format:n="webp"})=>{const i=x.useMemo(()=>new l.Cloudinary({cloud:{cloudName:"fluid-attacks"}}),[]);return x.useMemo(()=>i.image(e).format(n),[i,e,n])},Se=e=>{const[n,i]=x.useState(!1),o=x.useCallback(()=>{i(!0)},[]),r=x.useCallback(()=>{i(!1)},[]),a=x.useCallback(()=>{i(c=>!c)},[]);return{close:r,isOpen:n,name:e,open:o,setIsOpen:i,toggle:a}},Kt=({name:e,items:n,columnOrder:i,setColumnOrder:o})=>{const r=x.useMemo(()=>[...n.filter(({locked:g})=>g).map(({locked:g,...u})=>({...u,visible:!0,locked:g})),...n.filter(({locked:g})=>!g)],[n]),[a,c]=x.useState(r)
|
|
1399
|
+
`,Gt=(e,n)=>{const[o,r]=x.useState(0),[a,c]=x.useState(0);return x.useEffect(()=>{a===100&&(()=>{r(d=>d===n-1?0:d+1)})()},[a,n]),x.useEffect(()=>{const s=setInterval(()=>{c(d=>d===100?0:d+1)},e);return()=>{clearInterval(s)}},[e]),{cycle:o,progress:a,setCycle:r,setProgress:c}},Yt=({publicId:e,format:n="webp"})=>{const i=x.useMemo(()=>new l.Cloudinary({cloud:{cloudName:"fluid-attacks"}}),[]);return x.useMemo(()=>i.image(e).format(n),[i,e,n])},Se=e=>{const[n,i]=x.useState(!1),o=x.useCallback(()=>{i(!0)},[]),r=x.useCallback(()=>{i(!1)},[]),a=x.useCallback(()=>{i(c=>!c)},[]);return{close:r,isOpen:n,name:e,open:o,setIsOpen:i,toggle:a}},Kt=({name:e,items:n,columnOrder:i,setColumnOrder:o})=>{const r=x.useMemo(()=>[...n.filter(({locked:g})=>g).map(({locked:g,...u})=>({...u,visible:!0,locked:g})),...n.filter(({locked:g})=>!g)],[n]),[a,c]=x.useState(r),s=x.useCallback(g=>{const u=g.filter(({locked:$})=>!$),h=[...g.filter(({locked:$})=>$),...u],y=h.map(({name:$})=>$);c($=>[...h,...$.filter(({name:m})=>!y.includes(m))]),o&&o(h.map(({id:$})=>$))},[o]),d=x.useCallback(()=>{const g=a.map(u=>{var h;const f=u.locked||((i==null?void 0:i.includes(u.id))??!1);return u.visible!==f&&((h=u.toggleVisibility)==null||h.call(u,f)),{...u,visible:f}}).toSorted((u,f)=>{if(u.locked&&!f.locked)return-1;if(!u.locked&&f.locked)return 1;if(Number(f.visible)!==Number(u.visible))return Number(f.visible)-Number(u.visible);const h=(i==null?void 0:i.indexOf(u.id))??0,y=(i==null?void 0:i.indexOf(f.id))??0;return h-y});s(g)},[a,i,s]),p=x.useMemo(()=>l.some(a,g=>((i==null?void 0:i.includes(g.id))??!1)!==g.visible),[a,i]);return{setColumns:s,resetToDefault:d,columns:a,...Se(e),hasChanged:p}},ot=(e,n)=>x.useMemo(()=>l._.debounce(e,n),[e,n]),No=e=>{const[n,i]=x.useState(),o=ot(r=>{i(r)},(e==null?void 0:e.debounceWait)??300);return[n,o]},Fo=({alt:e="img",height:n="",width:i="",plugins:o=[l.lazyload(),l.placeholder()],publicId:r})=>{const a=Yt({publicId:r});return t.jsx(l.AdvancedImage,{alt:e,cldImg:a,height:n,plugins:o,width:i})},te=x.memo(Fo),Lo=l.st.label`
|
|
1400
1400
|
${({theme:e})=>`
|
|
1401
1401
|
align-items: center;
|
|
1402
1402
|
display: flex;
|
|
@@ -1487,7 +1487,7 @@
|
|
|
1487
1487
|
transition: 0.2s;
|
|
1488
1488
|
width: 36px;
|
|
1489
1489
|
`}
|
|
1490
|
-
`,
|
|
1490
|
+
`,Oo=l.st.div`
|
|
1491
1491
|
${({theme:e})=>`
|
|
1492
1492
|
background-color: ${e.palette.white};
|
|
1493
1493
|
border-radius: 50%;
|
|
@@ -1498,7 +1498,7 @@
|
|
|
1498
1498
|
width: ${e.spacing[1]};
|
|
1499
1499
|
z-index: 1;
|
|
1500
1500
|
`}
|
|
1501
|
-
`,
|
|
1501
|
+
`,Mo=l.st.label`
|
|
1502
1502
|
display: inline-block;
|
|
1503
1503
|
|
|
1504
1504
|
input {
|
|
@@ -1525,7 +1525,7 @@
|
|
|
1525
1525
|
background-color: ${({theme:e})=>e.palette.gray[200]};
|
|
1526
1526
|
border: 1px solid ${({theme:e})=>e.palette.gray[200]};
|
|
1527
1527
|
}
|
|
1528
|
-
`,Zt=x.forwardRef(function({defaultChecked:n,disabled:i=!1,justify:o,name:r,leftDescription:a,leftDescriptionMinWidth:c,rightDescription:s,onChange:d,...p},g){const u=n===!0?"on":"off",f=typeof a=="object"&&a.on&&a.off?a[u]:a,h=x.useCallback(y=>{y.stopPropagation()},[]);return t.jsxs(b,{alignItems:"center",display:"flex",fontSize:"14px",gap:.75,justify:o,children:[t.jsx(b,{minWidth:c,children:f}),t.jsxs(
|
|
1528
|
+
`,Zt=x.forwardRef(function({defaultChecked:n,disabled:i=!1,justify:o,name:r,leftDescription:a,leftDescriptionMinWidth:c,rightDescription:s,onChange:d,...p},g){const u=n===!0?"on":"off",f=typeof a=="object"&&a.on&&a.off?a[u]:a,h=x.useCallback(y=>{y.stopPropagation()},[]);return t.jsxs(b,{alignItems:"center",display:"flex",fontSize:"14px",gap:.75,justify:o,children:[t.jsx(b,{minWidth:c,children:f}),t.jsxs(Mo,{onClick:h,role:"switch",children:[t.jsx("input",{...p,"aria-disabled":i,"aria-label":r,checked:n===!0,disabled:i,name:r,onChange:d,ref:g,type:"checkbox"}),t.jsx(de,{"aria-label":"Toggle Switch",id:`${r}Toggle`,children:t.jsx(Oo,{})})]}),s]})}),Wo=({id:e,title:n,toggles:i,minWidth:o="auto",height:r="auto"})=>{const a=l.Je();return t.jsxs(b,{alignItems:"center",bgColor:a.palette.white,border:`1px solid ${a.palette.gray[200]}`,borderRadius:a.spacing[.25],display:"flex",flexDirection:"column",gap:.5,height:r,justify:"center",minHeight:"100px",minWidth:o,padding:[1.25,1.25,1.25,1.25],children:[t.jsx(De,{id:e,title:n}),t.jsx(b,{display:"flex",flexDirection:"column",gap:.5,minHeight:"40px",width:"100%",children:i.map(c=>t.jsx(Zt,{...c},`$card-toggle-${c.name}`))})]})},Ho=.5,mt=1.25,Bo=({children:e,bgColor:n,border:i,gap:o=Ho,px:r=mt,py:a=mt,...c})=>{const s=l.Je();return t.jsx(b,{bgColor:n??s.palette.white,border:i??`1px solid ${s.palette.gray[200]}`,borderRadius:"4px",display:"inline-flex",flexDirection:"column",gap:o,px:r,py:a,...c,children:e})},_o=l.st.div`
|
|
1529
1529
|
position: relative;
|
|
1530
1530
|
margin: auto;
|
|
1531
1531
|
overflow: hidden;
|
|
@@ -1628,7 +1628,7 @@
|
|
|
1628
1628
|
`,Xt=({noCodeMessage:e="Code snippet not available",snippet:n,specific:i})=>(x.useEffect(()=>{l.prismExports.highlightAll()},[]),t.jsx(qt,{"data-private":!0,children:t.jsx("pre",{className:"line-highlight","data-line-offset":l._.isNil(n)||l._.isString(n)?0:n.offset+.7,...i!==void 0?{"data-line":String(Number(i))}:{},children:l._.isNil(n)||l._.isString(n)||l._.isEmpty(n.content)?t.jsx("div",{className:"no-data",children:t.jsx("p",{children:e})}):t.jsx("code",{className:"language-none",children:n.content})})})),Zo=({noCodeMessage:e="Code snippet not available",snippet:n,specific:i,variant:o="normal",expanded:r=!1})=>{const a=l.Je(),[c,s]=x.useState(!1),[d,p]=x.useState(!0),g=x.useCallback(()=>{s(y=>!y)},[s]),u=x.useCallback(()=>{if(l._.isNil(n)||l._.isEmpty(n)||!l._.isString(n))return p(!1),e;const y=n.split(`
|
|
1629
1629
|
`);return y.length>8&&!c?`${[...y].splice(0,7).join(`
|
|
1630
1630
|
`)}
|
|
1631
|
-
${y[8]}...`:(y.length<8&&p(!1),n)},[c,n,e]),f=x.useMemo(u,[u]),h=x.useCallback(async()=>{await navigator.clipboard.writeText(f)},[f]);return o==="location"?t.jsx(Xt,{noCodeMessage:e,snippet:n,specific:i}):t.jsxs(b,{bgColor:a.palette.gray[100],borderRadius:"4px",display:"inline-flex",justify:r?"space-between":"center",minWidth:"565px",position:"relative",width:r?"100%":"565px",children:[t.jsx(qt,{"data-private":!0,children:t.jsx("pre",{children:t.jsx("code",{className:"language-none",children:f})})}),t.jsxs(Ko,{children:[t.jsx(
|
|
1631
|
+
${y[8]}...`:(y.length<8&&p(!1),n)},[c,n,e]),f=x.useMemo(u,[u]),h=x.useCallback(async()=>{await navigator.clipboard.writeText(f)},[f]);return o==="location"?t.jsx(Xt,{noCodeMessage:e,snippet:n,specific:i}):t.jsxs(b,{bgColor:a.palette.gray[100],borderRadius:"4px",display:"inline-flex",justify:r?"space-between":"center",minWidth:"565px",position:"relative",width:r?"100%":"565px",children:[t.jsx(qt,{"data-private":!0,children:t.jsx("pre",{children:t.jsx("code",{className:"language-none",children:f})})}),t.jsxs(Ko,{children:[t.jsx(O,{height:a.spacing[2.5],icon:"copy",iconColor:a.palette.gray[700],iconSize:"xs",iconType:"fa-light",onClick:h,variant:"ghost",width:a.spacing[2.5]}),d?t.jsxs(P,{onClick:g,variant:"ghost",children:[c?"Show Less":"Show more",t.jsx(E,{icon:c?"chevron-up":"chevron-down",iconColor:a.palette.gray[700],iconSize:"xxs",iconType:"fa-light",ml:.25,onClick:h})]}):!1]})]})},{getVariant:qo}=K(e=>({fixed:`
|
|
1632
1632
|
height: auto;
|
|
1633
1633
|
min-width: 300px;
|
|
1634
1634
|
padding: ${e.spacing[1.25]};
|
|
@@ -1749,7 +1749,7 @@ ${y[8]}...`:(y.length<8&&p(!1),n)},[c,n,e]),f=x.useMemo(u,[u]),h=x.useCallback(a
|
|
|
1749
1749
|
margin-right: 0;
|
|
1750
1750
|
`:""}
|
|
1751
1751
|
}
|
|
1752
|
-
`,en=({alert:e,modalRef:n,confirmButton:i=void 0,cancelButton:o=void 0})=>{const{close:r}=n,a=x.useCallback(()=>{o!=null&&o.onClick&&o.onClick(),r()},[o,r]),c=x.useCallback(()=>{i!=null&&i.onClick&&i.onClick(),r()},[i,r]);return[i,o].some(d=>!l.lodashExports.isEmpty(d))?t.jsxs(b,{display:"flex",flexDirection:"column",gap:.625,position:"sticky",px:1.25,py:1.25,children:[e,t.jsx(tr,{children:t.jsxs("div",{children:[o&&t.jsx(P,{id:o.id,onClick:a,variant:"tertiary",width:"100%",children:o.text}),i&&t.jsx(P,{id:i.id,onClick:c,variant:"primary",width:"100%",children:i.text})]})})]}):null},tn=({title:e,description:n,modalRef:i,otherActions:o,onClose:r})=>{const a=l.Je(),c=x.useCallback(()=>{r==null||r(),i.close()},[i,r]);return x.useEffect(()=>{const s=d=>{d.key==="Escape"&&c()};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[c]),t.jsxs(Qo,{children:[t.jsxs(er,{children:[typeof e=="string"?t.jsx(Z,{fontWeight:"bold",lineSpacing:1.75,mr:1,size:"sm",wordBreak:"break-word",children:e}):e,t.jsxs("div",{className:"items-center flex gap-3",children:[o,t.jsx(
|
|
1752
|
+
`,en=({alert:e,modalRef:n,confirmButton:i=void 0,cancelButton:o=void 0})=>{const{close:r}=n,a=x.useCallback(()=>{o!=null&&o.onClick&&o.onClick(),r()},[o,r]),c=x.useCallback(()=>{i!=null&&i.onClick&&i.onClick(),r()},[i,r]);return[i,o].some(d=>!l.lodashExports.isEmpty(d))?t.jsxs(b,{display:"flex",flexDirection:"column",gap:.625,position:"sticky",px:1.25,py:1.25,children:[e,t.jsx(tr,{children:t.jsxs("div",{children:[o&&t.jsx(P,{id:o.id,onClick:a,variant:"tertiary",width:"100%",children:o.text}),i&&t.jsx(P,{id:i.id,onClick:c,variant:"primary",width:"100%",children:i.text})]})})]}):null},tn=({title:e,description:n,modalRef:i,otherActions:o,onClose:r})=>{const a=l.Je(),c=x.useCallback(()=>{r==null||r(),i.close()},[i,r]);return x.useEffect(()=>{const s=d=>{d.key==="Escape"&&c()};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[c]),t.jsxs(Qo,{children:[t.jsxs(er,{children:[typeof e=="string"?t.jsx(Z,{fontWeight:"bold",lineSpacing:1.75,mr:1,size:"sm",wordBreak:"break-word",children:e}):e,t.jsxs("div",{className:"items-center flex gap-3",children:[o,t.jsx(O,{icon:"close",iconColor:a.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:c,px:.25,py:.25,variant:"ghost"})]})]}),n&&l.lodashExports.isString(n)&&!l.lodashExports.isEmpty(n)?t.jsx(I,{mt:.5,size:"sm",children:n}):void 0,n&&!l.lodashExports.isString(n)&&t.jsx(ue,{display:"block",mt:.5,size:"sm",children:n})]})},nn=({disabled:e,id:n="modal-confirm",onCancel:i,onConfirm:o="submit",txtCancel:r,txtConfirm:a})=>{const c=o==="submit";return t.jsxs(b,{display:"flex",gap:.75,maxWidth:i?"392px":"190px",mt:1.5,children:[i?t.jsx(P,{id:`${n}-cancel`,justify:"center",onClick:i,variant:"tertiary",width:"100%",children:r??"Cancel"}):void 0,t.jsx(P,{disabled:e,id:n,justify:"center",onClick:c?void 0:o,type:c?"submit":"button",variant:"primary",width:"100%",children:a??"Confirm"})]})},ir=(e,n,i)=>i?n==="secondary"?`3px solid ${e.palette.primary[100]}`:`3px solid ${e.palette.primary[500]}`:"unset",or=l.st.div`
|
|
1753
1753
|
display: flex;
|
|
1754
1754
|
flex-direction: row;
|
|
1755
1755
|
gap: ${({theme:e})=>e.spacing[.25]};
|
|
@@ -1960,7 +1960,7 @@ ${y[8]}...`:(y.length<8&&p(!1),n)},[c,n,e]),f=x.useMemo(u,[u]),h=x.useCallback(a
|
|
|
1960
1960
|
border-radius: ${e.spacing[.5]};
|
|
1961
1961
|
width: 250px;
|
|
1962
1962
|
`}
|
|
1963
|
-
`,ae=({name:e,smallSearch:n=!1,onClear:i,onChange:o,value:r,...a})=>{const c=x.useRef(null),s=l.Je(),[d,p]=x.useState(!1),[g,u]=x.useState(r??""),{refs:f,floatingStyles:h}=l.useFloating$1(),y=x.useCallback(()=>{p(k=>!k)},[]),$=x.useCallback(k=>{k.key==="Enter"&&k.preventDefault()},[]),m=x.useCallback(k=>{u(k.target.value),o==null||o(k)},[o]),j=x.useCallback(()=>{u(""),i==null||i()},[i]);X(f.floating.current,()=>{p(!1)},!0);const w=t.jsxs(pr,{children:[t.jsx(E,{icon:"magnifying-glass",iconColor:s.palette.gray[700],iconSize:"xs",iconType:"fa-light"}),t.jsx(dr,{id:e,name:e,onChange:m,onKeyDown:$,ref:c,type:"search",value:g,...a}),!l.lodashExports.isEmpty(g)&&t.jsx(
|
|
1963
|
+
`,ae=({name:e,smallSearch:n=!1,onClear:i,onChange:o,value:r,...a})=>{const c=x.useRef(null),s=l.Je(),[d,p]=x.useState(!1),[g,u]=x.useState(r??""),{refs:f,floatingStyles:h}=l.useFloating$1(),y=x.useCallback(()=>{p(k=>!k)},[]),$=x.useCallback(k=>{k.key==="Enter"&&k.preventDefault()},[]),m=x.useCallback(k=>{u(k.target.value),o==null||o(k)},[o]),j=x.useCallback(()=>{u(""),i==null||i()},[i]);X(f.floating.current,()=>{p(!1)},!0);const w=t.jsxs(pr,{children:[t.jsx(E,{icon:"magnifying-glass",iconColor:s.palette.gray[700],iconSize:"xs",iconType:"fa-light"}),t.jsx(dr,{id:e,name:e,onChange:m,onKeyDown:$,ref:c,type:"search",value:g,...a}),!l.lodashExports.isEmpty(g)&&t.jsx(O,{icon:"xmark",iconColor:s.palette.gray[300],iconSize:"xs",iconType:"fa-light",onClick:j,px:.25,py:.25,type:"reset",variant:"ghost"})]});return n?t.jsxs(x.Fragment,{children:[t.jsx(O,{border:`1px solid ${s.palette.gray[300]} !important`,icon:"magnifying-glass",iconSize:"xs",iconType:"fa-light",onClick:y,ref:f.setReference,variant:"ghost"}),d?t.jsx(gr,{ref:f.setFloating,style:h,children:w}):void 0]}):w},dn=({columns:e,formId:n,onChangeHandler:i,variant:o})=>{const r=x.useRef(null),[a,c]=x.useState([]),[s,d]=x.useState(""),p=x.useCallback(u=>{const{value:f}=u.target;d(f)},[]),g=x.useCallback(()=>{r.current&&(r.current.reset(),d(""))},[r]);return x.useEffect(()=>{c(e.filter(u=>{var f;return o==="grouped"?u.name.toLowerCase().includes(s.toLowerCase())||((f=u.group)==null?void 0:f.includes(s.toLowerCase())):u.name.toLowerCase().includes(s.toLowerCase())}))},[e,s,o]),o==="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(ae,{name:"search",onChange:p,onClear:g,value:s})}),t.jsx("form",{"data-testid":n,id:n,onReset:g,style:{display:"flex",flexDirection:"column",gap:"0.625rem"},children:Object.entries(cn(a)).map(([u,f],h)=>{const y=`li-checkbox${u}`;return t.jsx(ln,{checkboxesName:u,defaultCollapsed:h===0,onChange:i,options:f,title:u},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(ae,{name:"search",onChange:p,onClear:g,value:s})}),t.jsx("form",{"data-testid":n,id:n,onReset:g,style:{paddingTop:"0.625rem"},children:a.map(u=>{const f=`li-checkbox-${u.name}`;return t.jsx(cr,{selected:u.visible,value:f,width:"content",children:t.jsx(oe,{checked:u.visible,disabled:u.locked,label:u.name,name:u.name,onChange:i,value:u.name})},f)})})]})},pn=({_containerId:e="portals",title:n,modalRef:i,variant:o})=>{const r=l.Je(),a=x.useRef(null),[c,s]=x.useState(void 0),d=x.useCallback(u=>{const{checked:f,value:h}=u.target,y=i.columns.map($=>{var m;return $.name===h?((m=$.toggleVisibility)==null||m.call($,f),{...$,visible:f}):$});i.setColumns(y)},[i]),p=x.useCallback(u=>{const f=i.columns.map(h=>{var y;return h.id===u?((y=h.toggleVisibility)==null||y.call(h,!1),{...h,visible:!1}):h});i.setColumns(f)},[i]),g=x.useCallback(()=>{var f;const u=(f=a.current)==null?void 0:f.scrollHeight;c!==u&&s(u)},[c]);return i.isOpen?se.createPortal(t.jsx(Qt,{"aria-label":i.name,"aria-modal":"true",children:t.jsxs(at,{$size:"md",flexDirection:"column",children:[t.jsxs(b,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(Z,{size:"sm",children:n}),t.jsx(O,{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(re,{mb:0,mt:0}),t.jsxs(b,{display:"flex",gap:1.25,onScroll:g,px:1.25,ref:a,scroll:"y",width:"100%",children:[t.jsx(dn,{columns:i.columns,formId:"columns-visibility",onChangeHandler:d,variant:o}),t.jsx(b,{borderLeft:`2px solid ${r.palette.gray[100]}`,height:c?`${c}px`:"auto"}),t.jsx(sn,{description:"Click and drag to reorder the columns",items:i.columns,onClickClose:p,onReorder:i.setColumns,title:"Reorder columns"})]}),t.jsx(re,{mb:0,mt:0}),t.jsxs(b,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(P,{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(P,{id:"columns-modal-submit",justify:"center",onClick:i.close,variant:"primary",children:"Save"})]})]})}),document.getElementById(e)??document.body):t.jsx("div",{})},ur=l.st(ze)`
|
|
1964
1964
|
padding: 8px;
|
|
1965
1965
|
min-height: 36px;
|
|
1966
1966
|
min-width: unset;
|
|
@@ -1977,7 +1977,7 @@ ${y[8]}...`:(y.length<8&&p(!1),n)},[c,n,e]),f=x.useMemo(u,[u]),h=x.useCallback(a
|
|
|
1977
1977
|
svg.fa-check {
|
|
1978
1978
|
border-radius: 2px;
|
|
1979
1979
|
}
|
|
1980
|
-
`,gn=({control:e,option:n,register:i,setValue:o})=>{var r,a,c,s,d;switch(n.type){case"checkboxes":return t.jsx("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:(r=n.options)==null?void 0:r.map(g=>t.jsx(wt,{value:g.value,width:"content",children:t.jsx(oe,{...i("checkbox"),label:g.label,value:g.value})},`li-checkbox-${g.value}`))});case"radioButton":return t.jsxs("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:[n.label,(a=n.options)==null?void 0:a.map(g=>t.jsx(wt,{value:g.value,width:"content",children:t.jsx(rt,{...i("radio"),label:g.label,value:g.value})},`li-radio-${g.value}`))]});case"select":return t.jsx(nt,{control:e,items:((c=n.options)==null?void 0:c.map(g=>({name:g.label??"",value:g.value})))??[],label:n.label,name:`text.${String(n.key)}-${n.filterFn??"caseInsensitive"}`,placeholder:n.placeholder,value:n.value});case"text":const p=`text.${String(n.key)}-${n.filterFn??"caseInsensitive"}`;return t.jsx(Ae,{label:n.label,name:p,placeholder:n.placeholder,register:i,value:n.value});case"numberRange":return t.jsx(Ut,{label:n.label,name:String(n.key),propsMax:{placeholder:n.placeholder?`${n.placeholder} Max`:"Max",register:i,name:"maxValue",value:n.maxValue,setValue:o},propsMin:{placeholder:n.placeholder?`${n.placeholder} Min`:"Min",register:i,name:"minValue",value:n.minValue,setValue:o},variant:"filters"});case"dateRange":return t.jsx(Bt,{label:n.label,name:String(n.key),propsMax:{name:"maxValue",value:(s=n.maxValue)==null?void 0:s.toString()},propsMin:{name:"minValue",value:(d=n.minValue)==null?void 0:d.toString()},register:i,setValue:o,variant:"filters"});default:return t.jsx("div",{})}},un=({control:e,items:n,register:i,setValue:o})=>t.jsx(t.Fragment,{children:n.map((r,a)=>{const c=`${r.type}-${r.value}-${r.filterFn??"default"}`;return t.jsxs("div",{children:[t.jsx(gn,{control:e,option:r,register:i,setValue:o}),a<n.length-1&&t.jsx("hr",{style:{margin:"1.25rem 0 0.625rem"}})]},c)})}),xn=e=>{var s,d,p,g,u;const[n,i]=x.useState([...e]),{control:o,register:r,handleSubmit:a,setValue:c}=l.useForm({defaultValues:{checkbox:e.filter(f=>f.type==="checkboxes").flatMap(f=>{var h;return((h=f.options)==null?void 0:h.filter(y=>y.checked).map(y=>y.value))??[]}),radio:((p=(d=(s=e.find(f=>f.type==="radioButton"))==null?void 0:s.options)==null?void 0:d.find(({checked:f})=>f))==null?void 0:p.value)??"",text:e.filter(f=>["text","select"].includes(f.type)).reduce((f,h)=>({...f,[`${String(h.key)}-${h.filterFn??"caseInsensitive"}`]:h.value??""}),{}),minValue:(g=e.find(f=>["numberRange","dateRange"].includes(f.type)))==null?void 0:g.minValue,maxValue:(u=e.find(f=>["numberRange","dateRange"].includes(f.type)))==null?void 0:u.maxValue}});return{control:o,items:n,setItems:i,register:r,handleSubmit:a,setValue:c}},fr=(e,n)=>{var i,o,r,a,c;n("checkbox",e.filter(s=>s.type==="checkboxes").flatMap(s=>{var d;return((d=s.options)==null?void 0:d.filter(p=>p.checked).map(p=>p.value))??[]})),n("radio",((r=(o=(i=e.find(s=>s.type==="radioButton"))==null?void 0:i.options)==null?void 0:o.find(({checked:s})=>s))==null?void 0:r.value)??""),n("text",e.filter(s=>["text","select"].includes(s.type)).reduce((s,d)=>({...s,[`${String(d.key)}-${d.filterFn??"caseInsensitive"}`]:d.value??""}),{})),n("minValue",(a=e.find(s=>["numberRange","dateRange"].includes(s.type)))==null?void 0:a.minValue),n("maxValue",(c=e.find(s=>["numberRange","dateRange"].includes(s.type)))==null?void 0:c.maxValue)},hr=(e,n)=>(e==null?void 0:e.filter(i=>{var o;return((o=i.label)==null?void 0:o.toLowerCase().includes((n==null?void 0:n.toLowerCase())??""))??i.value.toLowerCase().includes((n==null?void 0:n.toLowerCase())??"")}))??[],yr=async(e,n)=>await Promise.all(e.map(async i=>{if(i.type==="checkboxes"){const r=(i.filterOptions?await i.filterOptions(i.options??[],n):hr(i.options??[],n)).filter((a,c,s)=>s.findIndex(d=>d.value===a.value)===c);return{...i,options:r}}return i})),Ye=({options:e,onSearch:n,onSubmit:i,id:o,selectedFilter:r})=>{const{control:a,items:c,setItems:s,register:d,handleSubmit:p,setValue:g}=xn(e),u=e.some(y=>y.type==="checkboxes"&&y.hideSearch!==!0),f=x.useCallback(async y=>{const{value:$}=y.target;n&&n($);const m=await yr(e,$);s(m)},[e,n,s]),h=x.useCallback(y=>{i&&i(y)},[i]);return x.useEffect(()=>{s(e),fr(e,g)},[e,s,g]),t.jsxs("div",{className:"flex flex-col gap-[8px]",id:o,style:{writingMode:"horizontal-tb",maxWidth:"300px",width:"100%"},children:[u&&t.jsxs("div",{children:[r,t.jsx(ae,{onChange:f})]}),t.jsxs("form",{id:o,onSubmit:p(h),children:[t.jsx(un,{control:a,items:c,register:d,setValue:g}),t.jsx(P,{mt:1,type:"submit",children:"Apply"})]})]})},fn=({options:e,variant:n,onApplyFilters:i,onSearch:o,setDirection:r,setHandler:a})=>{const c=l.Je(),[s,d]=x.useState(e),[p,g]=x.useState([]),[u,f]=x.useState({}),[h,y]=x.useState(""),$=x.useCallback(w=>()=>{const k=s.find(S=>S.label===w),v=!(k!=null&&k.filterOptions.some(S=>S.type==="dateRange"||S.type==="select"));a==null||a(v??!0),y(w),g((k==null?void 0:k.filterOptions)??[])},[s,a]),m=x.useCallback(w=>{const k=[...w.checkbox,...Object.values(w.text??{}),...w.radio?[w.radio]:[],...w.minValue?[String(w.minValue)]:[],...w.maxValue?[String(w.maxValue)]:[]];f(C=>k.length>0?{...C,[h]:k}:C);const v=C=>{var F,T;return{...C,options:(F=C.options)==null?void 0:F.map(L=>({...L,checked:w.checkbox.includes(L.value)||w.radio===L.value})),value:["text","select"].includes(C.type)?((T=w.text)==null?void 0:T[`${String(C.key)}-${C.filterFn??"caseInsensitive"}`])??C.value:C.value,minValue:["numberRange","dateRange"].includes(C.type)?w.minValue:C.minValue,maxValue:["numberRange","dateRange"].includes(C.type)?w.maxValue:C.maxValue}},S=C=>C.label===h?{...C,filterOptions:C.filterOptions.map(v)}:C,R=s.map(S);d(C=>C.map(S));const z=R.flatMap(({filterOptions:C})=>C);i(z),g([])},[s,i,h]),j=x.useCallback((w,k)=>{const v=`li-filter-option-${w}`;return t.jsxs(ur,{icon:k,onClick:$(w),style:{minWidth:"180px",writingMode:"horizontal-tb"},value:v,width:"100%",children:[w,u[w]===void 0?void 0:t.jsx(G,{tagLabel:u[w].length.toString()})]},v)},[u,$]);return x.useEffect(()=>{const w=e.reduce((k,{label:v,filterOptions:S})=>{const R=S.flatMap(({value:F,minValue:T,maxValue:L})=>[T,L,F]).filter(Boolean),z=S.flatMap(({options:F})=>F??[]).filter(({checked:F=!1})=>F).map(({value:F})=>F),C=[...R,...z];return C.length===0?k:{...k,[v]:C}},{});f(w),p.length>0&&r&&r("column")},[p,e,r]),n==="grouped"?t.jsx(b,{display:"flex",flexDirection:"row",maxHeight:p.length>0?"unset":"360px",style:{rowGap:"10px",writingMode:"vertical-lr"},wrap:"wrap",children:p.length>0?t.jsx(Ye,{id:"filters-options",onSearch:o,onSubmit:m,options:p,selectedFilter:h}):Object.entries(cn(e)).map(([w,k])=>t.jsxs(b,{style:{writingMode:"horizontal-tb"},children:[t.jsx(I,{color:c.palette.gray[400],mb:.25,size:"sm",children:w}),k.map(({label:v,icon:S="filter-list"})=>j(v,S))]},w))}):t.jsx(b,{display:"flex",flexDirection:"row",maxHeight:p.length>0?"unset":"200px",style:{rowGap:"10px",writingMode:"vertical-lr"},wrap:"wrap",children:p.length>0?t.jsx(Ye,{id:"filters-options",onSearch:o,onSubmit:m,options:p,selectedFilter:h}):e.map(({label:w,icon:k="filter-list"})=>j(w,k))})},hn=({options:e,onApplyFilters:n,onSearch:i,modalRef:o,variant:r})=>{const[a,c]=x.useState("row"),[s,d]=x.useState(!0),p=l.Je(),g=x.useRef(null),u=t.jsx(M,{icon:"close",iconColor:p.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:o.close,px:.25,py:.25,variant:"ghost"});return x.useEffect(()=>{const f=h=>{const y=g.current;y&&!y.contains(h.target)&&o.close()};if(s)return document.addEventListener("mousedown",f,!0),()=>{document.removeEventListener("mousedown",f,!0)}},[g,s,o]),t.jsx(xr,{$bgColor:"transparent","aria-label":o.name,children:t.jsxs(at,{$size:"fixed",alignItems:a==="row"?"start":"end",display:"flex",flexDirection:a,gap:.5,id:"filters-list",justify:"space-between",position:"relative",px:1.25,py:1.25,ref:g,style:{maxWidth:"620px",overflow:"hidden",width:"fit-content"},children:[a==="column"?u:void 0,t.jsx(fn,{onApplyFilters:n,onSearch:i,options:e,setDirection:c,setHandler:d,variant:r}),a==="row"?u:void 0]})})};function br(e){if(e)return e}function yn(e){if(!e||e.length===0)return;const n=e.filter(o=>o.checked).map(o=>o.label??o.value);return n.length===0?void 0:n.join(", ")}function $r(e,n,i){const o=i??"",r=l._.isEmpty(e)&&typeof e!="number"||Number.isNaN(e)?void 0:Number(e),a=l._.isEmpty(n)&&typeof n!="number"||Number.isNaN(n)?void 0:Number(String(n));if(!l._.isUndefined(r)&&!l._.isUndefined(a))return`${r}${o} - ${a}${o}`;if(!l._.isUndefined(r))return`Min ${r}${o}`;if(!l._.isUndefined(a))return`Max ${a}${o}`}function mr(e,n){if(l.dayjs_minExports.extend(l.localizedFormat),!(l._.isUndefined(e)&&l._.isUndefined(n))){if(e!==""&&n!==""&&!l._.isUndefined(e)&&!l._.isUndefined(n))return`${l.dayjs(e).format("LL")} - ${l.dayjs(n).format("LL")}`;if(e!==""&&!l._.isUndefined(e))return`From ${l.dayjs(e).format("LL")}`;if(n!==""&&!l._.isUndefined(n))return`To ${l.dayjs(n).format("LL")}`}}function wr(e,n,i){return e==="select"?n:`${n} ${i==="includesInsensitive"?"contains":"is"}`}const pe=({filter:e,icon:n="filter-list",label:i,onClose:o,filterValue:r})=>l._.isNil(r)||l._.isEmpty(String(r))?null:t.jsx(G,{filterValues:r,icon:n,id:"remove-filter",onClose:o(e),tagLabel:`${i} `}),jr=({options:e,onClose:n})=>{const i=e.flatMap(o=>o.filterOptions.map(r=>{const{filterFn:a,label:c,type:s,value:d,options:p,minValue:g,maxValue:u}=r;switch(s){case"numberRange":{const f=$r(g,u,o.placeholder);return t.jsx(pe,{filter:r,filterValue:f,icon:o.icon,label:o.label,onClose:n},c)}case"dateRange":{const f=mr(g==null?void 0:g.toString(),u==null?void 0:u.toString());return t.jsx(pe,{filter:r,filterValue:f,icon:o.icon,label:o.label,onClose:n},c)}case"radioButton":case"checkboxes":{const f=yn(p);return t.jsx(pe,{filter:r,filterValue:f,icon:o.icon,label:o.label,onClose:n},c)}case void 0:case"select":case"text":default:{const f=br(d),h=wr(s,o.label,a);return t.jsx(pe,{filter:r,filterValue:f,icon:o.icon,label:h,onClose:n},c)}}})).filter(o=>{if(o===null)return!1;const{filterValue:r}=o.props;return!l._.isNil(r)&&!l._.isEmpty(String(r))});return i.length>0?t.jsx(b,{alignItems:"center",display:"flex",gap:.5,pb:1,width:"100%",wrap:"wrap",children:i}):null},vr=e=>e.map(n=>{const i={key:String(n.key),type:n.type},o=(()=>{let r={...i};if(n.filterFn&&(r={...r,filterFn:n.filterFn}),n.value&&(r={...r,value:n.value}),n.minValue!==void 0&&n.minValue!==null&&(r={...r,minValue:n.minValue}),n.maxValue!==void 0&&n.maxValue!==null&&(r={...r,maxValue:n.maxValue}),n.options&&n.options.length>0){const a=n.options.filter(c=>c.checked).map(c=>c.value);a.length>0&&(r={...r,selectedValues:a})}return r})();return Object.keys(o).length>2?o:null}).filter(Boolean),kr=(e,n)=>n.map(i=>{const o=e.find(a=>a.key===String(i.key)&&a.type===i.type);return o?(()=>{let a={...i};return o.filterFn&&(a={...a,filterFn:o.filterFn}),o.value!==void 0&&o.value!==null&&(a={...a,value:o.value}),o.minValue!==void 0&&o.minValue!==null&&(a={...a,minValue:o.minValue}),o.maxValue!==void 0&&o.maxValue!==null&&(a={...a,maxValue:o.maxValue}),o.selectedValues&&i.options&&(a={...a,options:i.options.map(c=>{var s;return{...c,checked:((s=o.selectedValues)==null?void 0:s.includes(c.value))??!1}})}),a})():i}),He=(e,n)=>{const i=vr(e);n(JSON.stringify(i))},Cr=(e,n)=>{const i=e();if(!i)return n;try{const o=JSON.parse(i);return kr(o,n)}catch{return n}},Sr=(e,n)=>{function i(c,s){if(s.value===""||s.value===void 0||l._.defaultTo(s.isBackFilter,!1))return!0;switch(s.filterFn){case"includesInsensitive":return String(c[s.key]).toLowerCase().includes(s.value.toLowerCase());case"caseInsensitive":case void 0:default:return String(c[s.key]).toLowerCase()===s.value.toLowerCase()}}function o(c,s){if(!s.options||s.options.length===0)return!0;const d=s.options.filter(p=>p.checked).map(p=>p.value);return d.length===0?!0:d.includes(String(c[s.key]))}function r(c,s,d){const p=d(String(c[s.key])),{minValue:g,maxValue:u}=s,f=l._.isEmpty(g)&&typeof g!="number"?void 0:d(String(g)),h=l._.isEmpty(u)&&typeof u!="number"?void 0:d(String(u));return l._.isUndefined(f)&&l._.isUndefined(h)?!0:(f??-1/0)<=p&&p<=(h??1/0)}function a(c){return n.every(s=>{if(typeof s.key=="function")return s.key(c,s.value);switch(s.type){case"radioButton":case"checkboxes":return o(c,s);case"numberRange":return r(c,s,Number);case"dateRange":return r(c,s,d=>new Date(d));case"select":case"text":default:return i(c,s)}})}return e.filter(a)},zr=e=>[...e.flatMap(({options:i})=>i).filter(i=>i==null?void 0:i.checked),...e.flatMap(i=>[i.value,i.maxValue,i.minValue]).filter(Boolean)].length,Ir=e=>{var i;const n=((i=e.options)==null?void 0:i.map(o=>({...o,checked:void 0})))??void 0;return{...e,minValue:void 0,maxValue:void 0,value:void 0,options:n}},Tr=({dataset:e,setValues:n,getValues:i,options:o,setFilteredDataset:r,onFiltersChange:a,onReset:c,onSearch:s,variant:d="ungrouped"})=>{const p=Se("filters-modal"),[g,u]=x.useState(!1),[f,h]=x.useState([]),y=zr(f),$=o.map(v=>({...v,filterOptions:v.filterOptions.map(S=>f.find(z=>z.key===S.key&&z.type===S.type&&z.filterFn===S.filterFn)??{...S})})),m=x.useCallback(v=>{h([...v]),He(v,n)},[h,n]),j=x.useCallback(()=>{c&&c(),p.isOpen||u(!0),p.toggle()},[p,c]),w=x.useCallback(v=>()=>{c&&c();const S=f.map(R=>R.key===v.key&&R.type===v.type&&R.filterFn===v.filterFn?Ir(R):R);h(S),He(S,n)},[f,c,n]);return x.useEffect(()=>{const v=o.flatMap(z=>z.filterOptions),S=i();if((()=>{if(!S)return!1;try{const z=JSON.parse(S);return Array.isArray(z)&&z.length>0}catch{return!1}})()){const z=Cr(i,v);h(z)}else v.flatMap(C=>C.value).filter(Boolean).length>0||v.flatMap(C=>C.options).filter(C=>(C==null?void 0:C.checked)===!0).length>0?(h(v),g&&He(v,n)):h(v)},[o,h,n,i,g]),x.useEffect(()=>{r&&e!==void 0&&r(Sr(e,f)),a==null||a(f)},[e,f,r,a]),{Filters:()=>t.jsxs(b,{alignItems:"center",display:"flex",gap:.25,maxWidth:"100%",position:"relative",wrap:"wrap",children:[t.jsx(b,{pr:.25,children:t.jsx(P,{icon:"filter",id:"filter-btn",onClick:j,tag:y.toString(),variant:"ghost"})}),p.isOpen&&t.jsx(hn,{modalRef:p,onApplyFilters:m,onSearch:s,options:$,variant:d})]}),options:$,removeFilter:w}},lt=({_portal:e=!0,alert:n,cancelButton:i=void 0,children:o=void 0,confirmButton:r=void 0,content:a=void 0,description:c=void 0,modalRef:s,otherActions:d=void 0,onClose:p=void 0,tabItems:g=void 0,title:u=void 0,size:f,id:h="modal-container"})=>{const y=l.Je(),$=t.jsx(Qt,{"aria-label":s.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs(at,{$size:f,"data-testid":h,flexDirection:"column",id:h,children:[!l._.isEmpty(u)&&!l._.isNil(u)&&t.jsx(tn,{description:c,modalRef:s,onClose:p,otherActions:d,title:u}),g&&t.jsx(b,{borderTop:`1px solid ${y.palette.gray[300]}`,display:"block",mb:1.25,position:"sticky",children:t.jsx(st,{items:g})}),(l._.isObject(a)||o)&&t.jsxs(Xo,{children:[o,l._.isObject(a)&&l._.isString(a.imageSrc)&&t.jsx(nr,{$framed:a.imageFramed,children:t.jsx(te,{alt:"modal-img",publicId:a.imageSrc})}),l._.isObject(a)&&l._.isString(a.imageText)&&t.jsx(I,{size:"sm",children:a.imageText})]}),t.jsx(en,{alert:n,cancelButton:i,confirmButton:r,modalRef:s})]})});return e&&s.isOpen?se.createPortal($,document.getElementById("portals")??document.body):s.isOpen?$:null},Er=(e,n,i)=>{const o=Se("confirm-dialog-modal"),r=x.useRef(null),a=x.useCallback(async()=>(o.open(),new Promise(p=>{r.current=p})),[o]),c=x.useCallback(()=>{var p;o.close(),(p=r.current)==null||p.call(r,!0)},[o]),s=x.useCallback(()=>{var p;o.close(),(p=r.current)==null||p.call(r,!1)},[o]);return[a,({children:p})=>{const[g,u]=x.useState(i),f=x.useCallback(()=>{u({...i})},[]),h=x.useCallback(m=>()=>{u(j=>({...j,[m]:{...j[m],state:!j[m].state}}))},[]),y=!Object.values(g).every(({state:m})=>m),$=Object.entries(g).map(([m,{state:j,label:w}])=>t.jsx(oe,{defaultChecked:j,label:w,name:m,onChange:h(m)},m));return t.jsxs(lt,{"data-testid":e,id:e,modalRef:{...o,close:s},onClose:f,size:"sm",title:n,children:[p,t.jsx(b,{display:"flex",flexDirection:"column",gap:.5,children:$}),t.jsx(nn,{disabled:y,id:e,onConfirm:c})]})}]},Rr=()=>{const[e,n]=x.useState(!1),[i,o]=x.useState(),r=x.useRef(null),a=Se("confirm-dialog-modal"),c=x.useCallback(async g=>(o(g),n(!0),new Promise(u=>{r.current=u})),[]),s=x.useCallback(()=>{var g;n(!1),o(void 0),(g=r.current)==null||g.call(r,!0)},[]),d=x.useCallback(()=>{var g;n(!1),o(void 0),(g=r.current)==null||g.call(r,!1)},[]);return x.useEffect(()=>{a.setIsOpen(e)},[e,a]),{ConfirmDialog:({id:g="confirm-dialog-modal",children:u})=>t.jsxs(lt,{cancelButton:{onClick:d,text:"Cancel"},confirmButton:{id:(i==null?void 0:i.id)??"modal-confirm",onClick:s,text:"Confirm"},description:i==null?void 0:i.message,id:g,modalRef:{...a,close:d},size:"sm",title:i==null?void 0:i.title,children:[i==null?void 0:i.content,u]}),confirm:c}},Dr=2e3,Nr=({content:e})=>{const[n,i]=x.useState("Copy"),o=x.useCallback(()=>{navigator.clipboard.writeText(e).then(()=>{i("Copied"),setTimeout(()=>{i("Copy")},Dr)}).catch(()=>{i("Failed to copy")})},[e]);return t.jsx(M,{icon:"copy",iconSize:"xs",iconType:"fa-light",onClick:o,tooltip:n,variant:"ghost"})},Fr=l.st.ul`
|
|
1980
|
+
`,gn=({control:e,option:n,register:i,setValue:o})=>{var r,a,c,s,d;switch(n.type){case"checkboxes":return t.jsx("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:(r=n.options)==null?void 0:r.map(g=>t.jsx(wt,{value:g.value,width:"content",children:t.jsx(oe,{...i("checkbox"),label:g.label,value:g.value})},`li-checkbox-${g.value}`))});case"radioButton":return t.jsxs("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:[n.label,(a=n.options)==null?void 0:a.map(g=>t.jsx(wt,{value:g.value,width:"content",children:t.jsx(rt,{...i("radio"),label:g.label,value:g.value})},`li-radio-${g.value}`))]});case"select":return t.jsx(nt,{control:e,items:((c=n.options)==null?void 0:c.map(g=>({name:g.label??"",value:g.value})))??[],label:n.label,name:`text.${String(n.key)}-${n.filterFn??"caseInsensitive"}`,placeholder:n.placeholder,value:n.value});case"text":const p=`text.${String(n.key)}-${n.filterFn??"caseInsensitive"}`;return t.jsx(Ae,{label:n.label,name:p,placeholder:n.placeholder,register:i,value:n.value});case"numberRange":return t.jsx(Ut,{label:n.label,name:String(n.key),propsMax:{placeholder:n.placeholder?`${n.placeholder} Max`:"Max",register:i,name:"maxValue",value:n.maxValue,setValue:o},propsMin:{placeholder:n.placeholder?`${n.placeholder} Min`:"Min",register:i,name:"minValue",value:n.minValue,setValue:o},variant:"filters"});case"dateRange":return t.jsx(Bt,{label:n.label,name:String(n.key),propsMax:{name:"maxValue",value:(s=n.maxValue)==null?void 0:s.toString()},propsMin:{name:"minValue",value:(d=n.minValue)==null?void 0:d.toString()},register:i,setValue:o,variant:"filters"});default:return t.jsx("div",{})}},un=({control:e,items:n,register:i,setValue:o})=>t.jsx(t.Fragment,{children:n.map((r,a)=>{const c=`${r.type}-${r.value}-${r.filterFn??"default"}`;return t.jsxs("div",{children:[t.jsx(gn,{control:e,option:r,register:i,setValue:o}),a<n.length-1&&t.jsx("hr",{style:{margin:"1.25rem 0 0.625rem"}})]},c)})}),xn=e=>{var s,d,p,g,u;const[n,i]=x.useState([...e]),{control:o,register:r,handleSubmit:a,setValue:c}=l.useForm({defaultValues:{checkbox:e.filter(f=>f.type==="checkboxes").flatMap(f=>{var h;return((h=f.options)==null?void 0:h.filter(y=>y.checked).map(y=>y.value))??[]}),radio:((p=(d=(s=e.find(f=>f.type==="radioButton"))==null?void 0:s.options)==null?void 0:d.find(({checked:f})=>f))==null?void 0:p.value)??"",text:e.filter(f=>["text","select"].includes(f.type)).reduce((f,h)=>({...f,[`${String(h.key)}-${h.filterFn??"caseInsensitive"}`]:h.value??""}),{}),minValue:(g=e.find(f=>["numberRange","dateRange"].includes(f.type)))==null?void 0:g.minValue,maxValue:(u=e.find(f=>["numberRange","dateRange"].includes(f.type)))==null?void 0:u.maxValue}});return{control:o,items:n,setItems:i,register:r,handleSubmit:a,setValue:c}},fr=(e,n)=>{var i,o,r,a,c;n("checkbox",e.filter(s=>s.type==="checkboxes").flatMap(s=>{var d;return((d=s.options)==null?void 0:d.filter(p=>p.checked).map(p=>p.value))??[]})),n("radio",((r=(o=(i=e.find(s=>s.type==="radioButton"))==null?void 0:i.options)==null?void 0:o.find(({checked:s})=>s))==null?void 0:r.value)??""),n("text",e.filter(s=>["text","select"].includes(s.type)).reduce((s,d)=>({...s,[`${String(d.key)}-${d.filterFn??"caseInsensitive"}`]:d.value??""}),{})),n("minValue",(a=e.find(s=>["numberRange","dateRange"].includes(s.type)))==null?void 0:a.minValue),n("maxValue",(c=e.find(s=>["numberRange","dateRange"].includes(s.type)))==null?void 0:c.maxValue)},hr=(e,n)=>(e==null?void 0:e.filter(i=>{var o;return((o=i.label)==null?void 0:o.toLowerCase().includes((n==null?void 0:n.toLowerCase())??""))??i.value.toLowerCase().includes((n==null?void 0:n.toLowerCase())??"")}))??[],yr=async(e,n)=>await Promise.all(e.map(async i=>{if(i.type==="checkboxes"){const r=(i.filterOptions?await i.filterOptions(i.options??[],n):hr(i.options??[],n)).filter((a,c,s)=>s.findIndex(d=>d.value===a.value)===c);return{...i,options:r}}return i})),Ye=({options:e,onSearch:n,onSubmit:i,id:o,selectedFilter:r})=>{const{control:a,items:c,setItems:s,register:d,handleSubmit:p,setValue:g}=xn(e),u=e.some(y=>y.type==="checkboxes"&&y.hideSearch!==!0),f=x.useCallback(async y=>{const{value:$}=y.target;n&&n($);const m=await yr(e,$);s(m)},[e,n,s]),h=x.useCallback(y=>{i&&i(y)},[i]);return x.useEffect(()=>{s(e),fr(e,g)},[e,s,g]),t.jsxs("div",{className:"flex flex-col gap-[8px]",id:o,style:{writingMode:"horizontal-tb",maxWidth:"300px",width:"100%"},children:[u&&t.jsxs("div",{children:[r,t.jsx(ae,{onChange:f})]}),t.jsxs("form",{id:o,onSubmit:p(h),children:[t.jsx(un,{control:a,items:c,register:d,setValue:g}),t.jsx(P,{mt:1,type:"submit",children:"Apply"})]})]})},fn=({options:e,variant:n,onApplyFilters:i,onSearch:o,setDirection:r,setHandler:a})=>{const c=l.Je(),[s,d]=x.useState(e),[p,g]=x.useState([]),[u,f]=x.useState({}),[h,y]=x.useState(""),$=x.useCallback(w=>()=>{const k=s.find(S=>S.label===w),v=!(k!=null&&k.filterOptions.some(S=>S.type==="dateRange"||S.type==="select"));a==null||a(v??!0),y(w),g((k==null?void 0:k.filterOptions)??[])},[s,a]),m=x.useCallback(w=>{const k=[...w.checkbox,...Object.values(w.text??{}),...w.radio?[w.radio]:[],...w.minValue?[String(w.minValue)]:[],...w.maxValue?[String(w.maxValue)]:[]];f(C=>k.length>0?{...C,[h]:k}:C);const v=C=>{var F,T;return{...C,options:(F=C.options)==null?void 0:F.map(L=>({...L,checked:w.checkbox.includes(L.value)||w.radio===L.value})),value:["text","select"].includes(C.type)?((T=w.text)==null?void 0:T[`${String(C.key)}-${C.filterFn??"caseInsensitive"}`])??C.value:C.value,minValue:["numberRange","dateRange"].includes(C.type)?w.minValue:C.minValue,maxValue:["numberRange","dateRange"].includes(C.type)?w.maxValue:C.maxValue}},S=C=>C.label===h?{...C,filterOptions:C.filterOptions.map(v)}:C,R=s.map(S);d(C=>C.map(S));const z=R.flatMap(({filterOptions:C})=>C);i(z),g([])},[s,i,h]),j=x.useCallback((w,k)=>{const v=`li-filter-option-${w}`;return t.jsxs(ur,{icon:k,onClick:$(w),style:{minWidth:"180px",writingMode:"horizontal-tb"},value:v,width:"100%",children:[w,u[w]===void 0?void 0:t.jsx(G,{tagLabel:u[w].length.toString()})]},v)},[u,$]);return x.useEffect(()=>{const w=e.reduce((k,{label:v,filterOptions:S})=>{const R=S.flatMap(({value:F,minValue:T,maxValue:L})=>[T,L,F]).filter(Boolean),z=S.flatMap(({options:F})=>F??[]).filter(({checked:F=!1})=>F).map(({value:F})=>F),C=[...R,...z];return C.length===0?k:{...k,[v]:C}},{});f(w),p.length>0&&r&&r("column")},[p,e,r]),n==="grouped"?t.jsx(b,{display:"flex",flexDirection:"row",maxHeight:p.length>0?"unset":"360px",style:{rowGap:"10px",writingMode:"vertical-lr"},wrap:"wrap",children:p.length>0?t.jsx(Ye,{id:"filters-options",onSearch:o,onSubmit:m,options:p,selectedFilter:h}):Object.entries(cn(e)).map(([w,k])=>t.jsxs(b,{style:{writingMode:"horizontal-tb"},children:[t.jsx(I,{color:c.palette.gray[400],mb:.25,size:"sm",children:w}),k.map(({label:v,icon:S="filter-list"})=>j(v,S))]},w))}):t.jsx(b,{display:"flex",flexDirection:"row",maxHeight:p.length>0?"unset":"200px",style:{rowGap:"10px",writingMode:"vertical-lr"},wrap:"wrap",children:p.length>0?t.jsx(Ye,{id:"filters-options",onSearch:o,onSubmit:m,options:p,selectedFilter:h}):e.map(({label:w,icon:k="filter-list"})=>j(w,k))})},hn=({options:e,onApplyFilters:n,onSearch:i,modalRef:o,variant:r})=>{const[a,c]=x.useState("row"),[s,d]=x.useState(!0),p=l.Je(),g=x.useRef(null),u=t.jsx(O,{icon:"close",iconColor:p.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:o.close,px:.25,py:.25,variant:"ghost"});return x.useEffect(()=>{const f=h=>{const y=g.current;y&&!y.contains(h.target)&&o.close()};if(s)return document.addEventListener("mousedown",f,!0),()=>{document.removeEventListener("mousedown",f,!0)}},[g,s,o]),t.jsx(xr,{$bgColor:"transparent","aria-label":o.name,children:t.jsxs(at,{$size:"fixed",alignItems:a==="row"?"start":"end",display:"flex",flexDirection:a,gap:.5,id:"filters-list",justify:"space-between",position:"relative",px:1.25,py:1.25,ref:g,style:{maxWidth:"620px",overflow:"hidden",width:"fit-content"},children:[a==="column"?u:void 0,t.jsx(fn,{onApplyFilters:n,onSearch:i,options:e,setDirection:c,setHandler:d,variant:r}),a==="row"?u:void 0]})})};function br(e){if(e)return e}function yn(e){if(!e||e.length===0)return;const n=e.filter(o=>o.checked).map(o=>o.label??o.value);return n.length===0?void 0:n.join(", ")}function $r(e,n,i){const o=i??"",r=l._.isEmpty(e)&&typeof e!="number"||Number.isNaN(e)?void 0:Number(e),a=l._.isEmpty(n)&&typeof n!="number"||Number.isNaN(n)?void 0:Number(String(n));if(!l._.isUndefined(r)&&!l._.isUndefined(a))return`${r}${o} - ${a}${o}`;if(!l._.isUndefined(r))return`Min ${r}${o}`;if(!l._.isUndefined(a))return`Max ${a}${o}`}function mr(e,n){if(l.dayjs_minExports.extend(l.localizedFormat),!(l._.isUndefined(e)&&l._.isUndefined(n))){if(e!==""&&n!==""&&!l._.isUndefined(e)&&!l._.isUndefined(n))return`${l.dayjs(e).format("LL")} - ${l.dayjs(n).format("LL")}`;if(e!==""&&!l._.isUndefined(e))return`From ${l.dayjs(e).format("LL")}`;if(n!==""&&!l._.isUndefined(n))return`To ${l.dayjs(n).format("LL")}`}}function wr(e,n,i){return e==="select"?n:`${n} ${i==="includesInsensitive"?"contains":"is"}`}const pe=({filter:e,icon:n="filter-list",label:i,onClose:o,filterValue:r})=>l._.isNil(r)||l._.isEmpty(String(r))?null:t.jsx(G,{filterValues:r,icon:n,id:"remove-filter",onClose:o(e),tagLabel:`${i} `}),jr=({options:e,onClose:n})=>{const i=e.flatMap(o=>o.filterOptions.map(r=>{const{filterFn:a,label:c,type:s,value:d,options:p,minValue:g,maxValue:u}=r;switch(s){case"numberRange":{const f=$r(g,u,o.placeholder);return t.jsx(pe,{filter:r,filterValue:f,icon:o.icon,label:o.label,onClose:n},c)}case"dateRange":{const f=mr(g==null?void 0:g.toString(),u==null?void 0:u.toString());return t.jsx(pe,{filter:r,filterValue:f,icon:o.icon,label:o.label,onClose:n},c)}case"radioButton":case"checkboxes":{const f=yn(p);return t.jsx(pe,{filter:r,filterValue:f,icon:o.icon,label:o.label,onClose:n},c)}case void 0:case"select":case"text":default:{const f=br(d),h=wr(s,o.label,a);return t.jsx(pe,{filter:r,filterValue:f,icon:o.icon,label:h,onClose:n},c)}}})).filter(o=>{if(o===null)return!1;const{filterValue:r}=o.props;return!l._.isNil(r)&&!l._.isEmpty(String(r))});return i.length>0?t.jsx(b,{alignItems:"center",display:"flex",gap:.5,pb:1,width:"100%",wrap:"wrap",children:i}):null},vr=e=>e.map(n=>{const i={key:String(n.key),type:n.type},o=(()=>{let r={...i};if(n.filterFn&&(r={...r,filterFn:n.filterFn}),n.value&&(r={...r,value:n.value}),n.minValue!==void 0&&n.minValue!==null&&(r={...r,minValue:n.minValue}),n.maxValue!==void 0&&n.maxValue!==null&&(r={...r,maxValue:n.maxValue}),n.options&&n.options.length>0){const a=n.options.filter(c=>c.checked).map(c=>c.value);a.length>0&&(r={...r,selectedValues:a})}return r})();return Object.keys(o).length>2?o:null}).filter(Boolean),kr=(e,n)=>n.map(i=>{const o=e.find(a=>a.key===String(i.key)&&a.type===i.type);return o?(()=>{let a={...i};return o.filterFn&&(a={...a,filterFn:o.filterFn}),o.value!==void 0&&o.value!==null&&(a={...a,value:o.value}),o.minValue!==void 0&&o.minValue!==null&&(a={...a,minValue:o.minValue}),o.maxValue!==void 0&&o.maxValue!==null&&(a={...a,maxValue:o.maxValue}),o.selectedValues&&i.options&&(a={...a,options:i.options.map(c=>{var s;return{...c,checked:((s=o.selectedValues)==null?void 0:s.includes(c.value))??!1}})}),a})():i}),He=(e,n)=>{const i=vr(e);n(JSON.stringify(i))},Cr=(e,n)=>{const i=e();if(!i)return n;try{const o=JSON.parse(i);return kr(o,n)}catch{return n}},Sr=(e,n)=>{function i(c,s){if(s.value===""||s.value===void 0||l._.defaultTo(s.isBackFilter,!1))return!0;switch(s.filterFn){case"includesInsensitive":return String(c[s.key]).toLowerCase().includes(s.value.toLowerCase());case"caseInsensitive":case void 0:default:return String(c[s.key]).toLowerCase()===s.value.toLowerCase()}}function o(c,s){if(!s.options||s.options.length===0)return!0;const d=s.options.filter(p=>p.checked).map(p=>p.value);return d.length===0?!0:d.includes(String(c[s.key]))}function r(c,s,d){const p=d(String(c[s.key])),{minValue:g,maxValue:u}=s,f=l._.isEmpty(g)&&typeof g!="number"?void 0:d(String(g)),h=l._.isEmpty(u)&&typeof u!="number"?void 0:d(String(u));return l._.isUndefined(f)&&l._.isUndefined(h)?!0:(f??-1/0)<=p&&p<=(h??1/0)}function a(c){return n.every(s=>{if(typeof s.key=="function")return s.key(c,s.value);switch(s.type){case"radioButton":case"checkboxes":return o(c,s);case"numberRange":return r(c,s,Number);case"dateRange":return r(c,s,d=>new Date(d));case"select":case"text":default:return i(c,s)}})}return e.filter(a)},zr=e=>[...e.flatMap(({options:i})=>i).filter(i=>i==null?void 0:i.checked),...e.flatMap(i=>[i.value,i.maxValue,i.minValue]).filter(Boolean)].length,Ir=e=>{var i;const n=((i=e.options)==null?void 0:i.map(o=>({...o,checked:void 0})))??void 0;return{...e,minValue:void 0,maxValue:void 0,value:void 0,options:n}},Tr=({dataset:e,setValues:n,getValues:i,options:o,setFilteredDataset:r,onFiltersChange:a,onReset:c,onSearch:s,variant:d="ungrouped"})=>{const p=Se("filters-modal"),[g,u]=x.useState(!1),[f,h]=x.useState([]),y=zr(f),$=o.map(v=>({...v,filterOptions:v.filterOptions.map(S=>f.find(z=>z.key===S.key&&z.type===S.type&&z.filterFn===S.filterFn)??{...S})})),m=x.useCallback(v=>{h([...v]),He(v,n)},[h,n]),j=x.useCallback(()=>{c&&c(),p.isOpen||u(!0),p.toggle()},[p,c]),w=x.useCallback(v=>()=>{c&&c();const S=f.map(R=>R.key===v.key&&R.type===v.type&&R.filterFn===v.filterFn?Ir(R):R);h(S),He(S,n)},[f,c,n]);return x.useEffect(()=>{const v=o.flatMap(z=>z.filterOptions),S=i();if((()=>{if(!S)return!1;try{const z=JSON.parse(S);return Array.isArray(z)&&z.length>0}catch{return!1}})()){const z=Cr(i,v);h(z)}else v.flatMap(C=>C.value).filter(Boolean).length>0||v.flatMap(C=>C.options).filter(C=>(C==null?void 0:C.checked)===!0).length>0?(h(v),g&&He(v,n)):h(v)},[o,h,n,i,g]),x.useEffect(()=>{r&&e!==void 0&&r(Sr(e,f)),a==null||a(f)},[e,f,r,a]),{Filters:()=>t.jsxs(b,{alignItems:"center",display:"flex",gap:.25,maxWidth:"100%",position:"relative",wrap:"wrap",children:[t.jsx(b,{pr:.25,children:t.jsx(P,{icon:"filter",id:"filter-btn",onClick:j,tag:y.toString(),variant:"ghost"})}),p.isOpen&&t.jsx(hn,{modalRef:p,onApplyFilters:m,onSearch:s,options:$,variant:d})]}),options:$,removeFilter:w}},lt=({_portal:e=!0,alert:n,cancelButton:i=void 0,children:o=void 0,confirmButton:r=void 0,content:a=void 0,description:c=void 0,modalRef:s,otherActions:d=void 0,onClose:p=void 0,tabItems:g=void 0,title:u=void 0,size:f,id:h="modal-container"})=>{const y=l.Je(),$=t.jsx(Qt,{"aria-label":s.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs(at,{$size:f,"data-testid":h,flexDirection:"column",id:h,children:[!l._.isEmpty(u)&&!l._.isNil(u)&&t.jsx(tn,{description:c,modalRef:s,onClose:p,otherActions:d,title:u}),g&&t.jsx(b,{borderTop:`1px solid ${y.palette.gray[300]}`,display:"block",mb:1.25,position:"sticky",children:t.jsx(st,{items:g})}),(l._.isObject(a)||o)&&t.jsxs(Xo,{children:[o,l._.isObject(a)&&l._.isString(a.imageSrc)&&t.jsx(nr,{$framed:a.imageFramed,children:t.jsx(te,{alt:"modal-img",publicId:a.imageSrc})}),l._.isObject(a)&&l._.isString(a.imageText)&&t.jsx(I,{size:"sm",children:a.imageText})]}),t.jsx(en,{alert:n,cancelButton:i,confirmButton:r,modalRef:s})]})});return e&&s.isOpen?se.createPortal($,document.getElementById("portals")??document.body):s.isOpen?$:null},Er=(e,n,i)=>{const o=Se("confirm-dialog-modal"),r=x.useRef(null),a=x.useCallback(async()=>(o.open(),new Promise(p=>{r.current=p})),[o]),c=x.useCallback(()=>{var p;o.close(),(p=r.current)==null||p.call(r,!0)},[o]),s=x.useCallback(()=>{var p;o.close(),(p=r.current)==null||p.call(r,!1)},[o]);return[a,({children:p})=>{const[g,u]=x.useState(i),f=x.useCallback(()=>{u({...i})},[]),h=x.useCallback(m=>()=>{u(j=>({...j,[m]:{...j[m],state:!j[m].state}}))},[]),y=!Object.values(g).every(({state:m})=>m),$=Object.entries(g).map(([m,{state:j,label:w}])=>t.jsx(oe,{defaultChecked:j,label:w,name:m,onChange:h(m)},m));return t.jsxs(lt,{"data-testid":e,id:e,modalRef:{...o,close:s},onClose:f,size:"sm",title:n,children:[p,t.jsx(b,{display:"flex",flexDirection:"column",gap:.5,children:$}),t.jsx(nn,{disabled:y,id:e,onConfirm:c})]})}]},Rr=()=>{const[e,n]=x.useState(!1),[i,o]=x.useState(),r=x.useRef(null),a=Se("confirm-dialog-modal"),c=x.useCallback(async g=>(o(g),n(!0),new Promise(u=>{r.current=u})),[]),s=x.useCallback(()=>{var g;n(!1),o(void 0),(g=r.current)==null||g.call(r,!0)},[]),d=x.useCallback(()=>{var g;n(!1),o(void 0),(g=r.current)==null||g.call(r,!1)},[]);return x.useEffect(()=>{a.setIsOpen(e)},[e,a]),{ConfirmDialog:({id:g="confirm-dialog-modal",children:u})=>t.jsxs(lt,{cancelButton:{onClick:d,text:"Cancel"},confirmButton:{id:(i==null?void 0:i.id)??"modal-confirm",onClick:s,text:"Confirm"},description:i==null?void 0:i.message,id:g,modalRef:{...a,close:d},size:"sm",title:i==null?void 0:i.title,children:[i==null?void 0:i.content,u]}),confirm:c}},Dr=2e3,Nr=({content:e})=>{const[n,i]=x.useState("Copy"),o=x.useCallback(()=>{navigator.clipboard.writeText(e).then(()=>{i("Copied"),setTimeout(()=>{i("Copy")},Dr)}).catch(()=>{i("Failed to copy")})},[e]);return t.jsx(O,{icon:"copy",iconSize:"xs",iconType:"fa-light",onClick:o,tooltip:n,variant:"ghost"})},Fr=l.st.ul`
|
|
1981
1981
|
${({theme:e})=>`
|
|
1982
1982
|
align-items: flex-start;
|
|
1983
1983
|
border-radius: ${e.spacing[.25]};
|
|
@@ -2024,7 +2024,7 @@ ${y[8]}...`:(y.length<8&&p(!1),n)},[c,n,e]),f=x.useMemo(u,[u]),h=x.useCallback(a
|
|
|
2024
2024
|
max-width: 900px;
|
|
2025
2025
|
white-space: pre-line;
|
|
2026
2026
|
margin: 0 auto;
|
|
2027
|
-
`,
|
|
2027
|
+
`,Or=l.st.div`
|
|
2028
2028
|
display: flex;
|
|
2029
2029
|
flex-direction: row;
|
|
2030
2030
|
justify-content: center;
|
|
@@ -2037,7 +2037,7 @@ ${y[8]}...`:(y.length<8&&p(!1),n)},[c,n,e]),f=x.useMemo(u,[u]),h=x.useCallback(a
|
|
|
2037
2037
|
> img {
|
|
2038
2038
|
width: 100%;
|
|
2039
2039
|
}
|
|
2040
|
-
`,
|
|
2040
|
+
`,Mr=l.st.div`
|
|
2041
2041
|
display: flex;
|
|
2042
2042
|
flex-direction: row;
|
|
2043
2043
|
margin: 0;
|
|
@@ -2050,7 +2050,7 @@ ${y[8]}...`:(y.length<8&&p(!1),n)},[c,n,e]),f=x.useMemo(u,[u]),h=x.useCallback(a
|
|
|
2050
2050
|
> *:last-child {
|
|
2051
2051
|
margin-right: 0;
|
|
2052
2052
|
}
|
|
2053
|
-
`,jt={md:{description:"md",title:"md"},sm:{description:"sm",title:"xs"}},Wr=({cancelButton:e=void 0,confirmButton:n=void 0,description:i,imageSrc:o="integrates/empty/addRoot",padding:r=1.25,title:a,size:c="md"})=>{const s=(n??e)!==void 0;return t.jsxs(Pr,{$padding:r,children:[t.jsx(
|
|
2053
|
+
`,jt={md:{description:"md",title:"md"},sm:{description:"sm",title:"xs"}},Wr=({cancelButton:e=void 0,confirmButton:n=void 0,description:i,imageSrc:o="integrates/empty/addRoot",padding:r=1.25,title:a,size:c="md"})=>{const s=(n??e)!==void 0;return t.jsxs(Pr,{$padding:r,children:[t.jsx(Or,{children:t.jsx(te,{alt:"empty-icon",publicId:o})}),t.jsx(Z,{fontWeight:"bold",lineSpacing:1.75,mb:.25,size:jt[c].title,textAlign:"center",children:a}),t.jsx(I,{mb:s?2:void 0,size:jt[c].description,textAlign:"center",children:i}),s?t.jsxs(Mr,{children:[e&&t.jsx(Ke,{buttonProps:e,variant:"tertiary"}),n&&t.jsx(Ke,{buttonProps:n,variant:"primary"})]}):void 0]})},Hr=({children:e})=>{const n=l.useFormContext();return e({...n})},Br=l.st.form`
|
|
2054
2054
|
${({theme:e})=>`
|
|
2055
2055
|
align-items: flex-start;
|
|
2056
2056
|
align-self: stretch;
|
|
@@ -2114,7 +2114,7 @@ ${y[8]}...`:(y.length<8&&p(!1),n)},[c,n,e]),f=x.useMemo(u,[u]),h=x.useCallback(a
|
|
|
2114
2114
|
background-color: ${e.palette.gray[100]};
|
|
2115
2115
|
}
|
|
2116
2116
|
`}
|
|
2117
|
-
`,bn=({isSelected:e=!1,label:n,onSelect:i})=>{const o=l.Je(),r=x.useCallback(()=>{i&&i(n)},[i,n]);return t.jsxs(ct,{$isSelected:e,onClick:r,children:[e?t.jsx(E,{icon:"check",iconColor:o.palette.gray[800],iconSize:"xs"}):null,t.jsx(I,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",children:n})]})},Gr=({isOpen:e=!0,items:n,handleNewOrganization:i,onSelect:o,onClose:r,selectedItem:a,title:c,variant:s})=>{const d=l.Je(),[p,g]=x.useState(n),[u,f]=x.useState(""),h=x.useCallback(m=>{g(j=>j.filter(w=>String(w.name).toLowerCase().includes(m.toLocaleLowerCase())))},[g]),y=x.useCallback(m=>{m.currentTarget&&(f(m.currentTarget.value),h(m.currentTarget.value))},[f,h]);x.useEffect(()=>{g(n),h(u)},[n,h,u]);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(Ur,{$itemsLength:p.length,children:[t.jsxs(b,{alignItems:"center",display:"flex",justify:"space-between",children:[t.jsx(I,{color:d.palette.gray[800],fontWeight:"bold",size:"lg",children:c}),t.jsx(
|
|
2117
|
+
`,bn=({isSelected:e=!1,label:n,onSelect:i})=>{const o=l.Je(),r=x.useCallback(()=>{i&&i(n)},[i,n]);return t.jsxs(ct,{$isSelected:e,onClick:r,children:[e?t.jsx(E,{icon:"check",iconColor:o.palette.gray[800],iconSize:"xs"}):null,t.jsx(I,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",children:n})]})},Gr=({isOpen:e=!0,items:n,handleNewOrganization:i,onSelect:o,onClose:r,selectedItem:a,title:c,variant:s})=>{const d=l.Je(),[p,g]=x.useState(n),[u,f]=x.useState(""),h=x.useCallback(m=>{g(j=>j.filter(w=>String(w.name).toLowerCase().includes(m.toLocaleLowerCase())))},[g]),y=x.useCallback(m=>{m.currentTarget&&(f(m.currentTarget.value),h(m.currentTarget.value))},[f,h]);x.useEffect(()=>{g(n),h(u)},[n,h,u]);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(Ur,{$itemsLength:p.length,children:[t.jsxs(b,{alignItems:"center",display:"flex",justify:"space-between",children:[t.jsx(I,{color:d.palette.gray[800],fontWeight:"bold",size:"lg",children:c}),t.jsx(O,{icon:"xmark",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:r,variant:"ghost"})]}),t.jsx(b,{mt:1,children:t.jsx(ae,{onInput:y,placeholder:"Search"})}),t.jsx(re,{mb:1,mt:1}),t.jsxs(b,{display:"inline-flex",gap:1,maxHeight:"332px",scroll:"y",wrap:"wrap",children:[s==="organization-selector"?t.jsx(ct,{onClick:i,children:t.jsxs(b,{alignItems:"center",display:"flex",children:[t.jsx(E,{icon:"square-plus",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",mr:.5}),t.jsx(I,{color:d.palette.gray[400],size:"sm",children:"New organization"})]})}):void 0,p.map(m=>t.jsx(bn,{isSelected:a.toLowerCase()===m.name,label:m.name.charAt(0).toUpperCase()+m.name.slice(1),onSelect:o},m.name))]})]})})});return e?se.createPortal($,document.body):t.jsx("div",{})},Yr=({description:e,height:n="auto",leftIconName:i,children:o,rightIconName:r,title:a,tooltipId:c,tooltipTip:s,tooltipPlace:d="bottom",variant:p="centered",width:g="318px"})=>{const u=l.Je(),f=p==="centered",h=c&&t.jsx(J,{icon:r??i,iconColor:u.palette.gray[800],id:c,place:d,tip:s});return t.jsxs(b,{alignItems:f?"center":"flex-start",bgColor:u.palette.gray[50],border:`1px solid ${u.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||l.lodashExports.isUndefined(i)?void 0:h,t.jsx(I,{color:f?u.palette.gray[800]:u.palette.gray[400],size:"md",textAlign:f?"center":"start",children:e}),f||l.lodashExports.isUndefined(r)?void 0:h]}),t.jsxs(b,{alignItems:"center",display:"flex",gap:.5,my:.5,children:[f&&!l.lodashExports.isUndefined(i)?h:void 0,t.jsxs("div",{style:{display:"flex",gap:"12px"},children:[l.lodashExports.isUndefined(a)?void 0:t.jsx(Z,{fontWeight:"bold",size:"md",children:a}),o]}),f&&!l.lodashExports.isUndefined(r)?h:void 0]})]})},Kr=({actions:e,children:n,header:i,title:o,tabs:r,footer:a})=>{const c=l.Je();return t.jsxs(b,{alignItems:"flex-start",bgColor:c.palette.white,borderLeft:`1px solid ${c.palette.gray[300]}`,display:"flex",flexDirection:"column",maxHeight:"750px",width:"480px",children:[t.jsxs(b,{alignItems:"flex-start",alignSelf:"stretch",borderBottom:`1px solid ${c.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(I,{color:c.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:o}),i]}),e&&t.jsx(b,{display:"flex",gap:.25,children:e.map(({icon:s,onClick:d},p)=>t.jsx(O,{icon:s??"paper-plane",iconColor:c.palette.gray[400],iconSize:"xxs",iconType:"fa-light",onClick:d,variant:"ghost"},`${p}-${s}`))})]}),t.jsx(b,{display:"flex",pt:.25,width:"100%",children:t.jsx(st,{items:r})}),t.jsx(b,{alignSelf:"stretch",display:"flex",flexDirection:"column",px:1.25,py:1,scroll:"y",children:n}),a&&t.jsx(b,{alignSelf:"stretch",borderTop:`1px solid ${c.palette.gray[300]}`,display:"flex",gap:.5,justify:"end",px:1.25,py:1,children:a.map(({icon:s,text:d,onClick:p},g)=>t.jsx(P,{icon:s,onClick:p,variant:g===0?"primary":"tertiary",width:"100%",children:d},`${g}-${d}`))})]})},Zr=l.st.span`
|
|
2118
2118
|
${({theme:e,$bgColor:n=e.palette.secondary[500],$txtDecoration:i="none"})=>`
|
|
2119
2119
|
background-color: ${n};
|
|
2120
2120
|
border-radius: 5px;
|
|
@@ -2247,7 +2247,7 @@ ${y[8]}...`:(y.length<8&&p(!1),n)},[c,n,e]),f=x.useMemo(u,[u]),h=x.useCallback(a
|
|
|
2247
2247
|
color: ${e.palette[n][500]};
|
|
2248
2248
|
}
|
|
2249
2249
|
`}
|
|
2250
|
-
`,xa=e=>e==="warning"?"triangle-exclamation":e==="info"?"circle-info":e==="success"?"circle-check":"circle-exclamation",fa=({description:e,onClose:n,title:i,variant:o})=>{const r=l.Je(),a=x.useCallback(()=>{n==null||n()},[n]);return t.jsxs(ga,{$variant:o,className:`notification notification__${o}`,role:"alertdialog",children:[t.jsxs(ua,{$variant:o,children:[t.jsx(E,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),t.jsx(E,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),t.jsx(E,{icon:xa(o),iconClass:"icon",iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(b,{pr:1.5,children:[t.jsx(Z,{fontWeight:"bold",size:"xs",children:i}),t.jsx(I,{size:"sm",whiteSpace:"break-spaces",wordWrap:"break-word",children:e})]}),t.jsx(
|
|
2250
|
+
`,xa=e=>e==="warning"?"triangle-exclamation":e==="info"?"circle-info":e==="success"?"circle-check":"circle-exclamation",fa=({description:e,onClose:n,title:i,variant:o})=>{const r=l.Je(),a=x.useCallback(()=>{n==null||n()},[n]);return t.jsxs(ga,{$variant:o,className:`notification notification__${o}`,role:"alertdialog",children:[t.jsxs(ua,{$variant:o,children:[t.jsx(E,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),t.jsx(E,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),t.jsx(E,{icon:xa(o),iconClass:"icon",iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(b,{pr:1.5,children:[t.jsx(Z,{fontWeight:"bold",size:"xs",children:i}),t.jsx(I,{size:"sm",whiteSpace:"break-spaces",wordWrap:"break-word",children:e})]}),t.jsx(O,{height:"fit-content",icon:"close",iconColor:r.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:a,px:.125,py:.125,variant:"ghost"})]})},ha=l.st.div`
|
|
2251
2251
|
width: fit-content;
|
|
2252
2252
|
border: ${({theme:e})=>`1px solid ${e.palette.gray[300]}`};
|
|
2253
2253
|
border-radius: 4px;
|
|
@@ -2412,7 +2412,7 @@ ${y[8]}...`:(y.length<8&&p(!1),n)},[c,n,e]),f=x.useMemo(u,[u]),h=x.useCallback(a
|
|
|
2412
2412
|
right: ${({right:e})=>e??"unset"};
|
|
2413
2413
|
z-index: ${({zIndex:e})=>e??"unset"};
|
|
2414
2414
|
left: ${({left:e})=>e??"unset"};
|
|
2415
|
-
`,La=({scrollerId:e="dashboard",left:n,visibleAt:i=500,bottom:o,right:r,zIndex:a=100})=>{const[c,s]=x.useState(!1),[d,p]=x.useState(null),g=l.Je();x.useEffect(()=>{p(document.getElementById(e)),d==null||d.addEventListener("scroll",()=>{s(d.scrollTop>i)})},[d,e,i]);const u=x.useCallback(()=>{d==null||d.scrollTo({behavior:"smooth",top:0})},[d]);return c?t.jsx(Fa,{bottom:o,left:n,right:r,zIndex:a,children:t.jsx(
|
|
2415
|
+
`,La=({scrollerId:e="dashboard",left:n,visibleAt:i=500,bottom:o,right:r,zIndex:a=100})=>{const[c,s]=x.useState(!1),[d,p]=x.useState(null),g=l.Je();x.useEffect(()=>{p(document.getElementById(e)),d==null||d.addEventListener("scroll",()=>{s(d.scrollTop>i)})},[d,e,i]);const u=x.useCallback(()=>{d==null||d.scrollTo({behavior:"smooth",top:0})},[d]);return c?t.jsx(Fa,{bottom:o,left:n,right:r,zIndex:a,children:t.jsx(O,{borderRadius:"50%",height:"40px",icon:"arrow-up",iconSize:"sm",id:"scroll-up",onClick:u,style:{backgroundColor:g.palette.black,borderRadius:"50%",color:g.palette.white},width:"40px"})}):null},Aa={critical:{bgColor:D.palette.primary[700],colorL:D.palette.gray[800],colorR:D.palette.white},disable:{bgColor:D.palette.gray[200],colorL:D.palette.gray[400],colorR:D.palette.gray[400]},high:{bgColor:D.palette.error[500],colorL:D.palette.gray[800],colorR:D.palette.white},low:{bgColor:D.palette.warning[200],colorL:D.palette.gray[800],colorR:D.palette.gray[800]},medium:{bgColor:D.palette.warning[500],colorL:D.palette.gray[800],colorR:D.palette.gray[800]}},Pa=({textL:e,textR:n,variant:i})=>{const o=l.Je(),{bgColor:r,colorL:a,colorR:c}=Aa[i];return t.jsxs(b,{alignItems:"flex-start",display:"inline-flex",children:[e?t.jsx(b,{alignItems:"center",bgColor:o.palette.white,border:`1px solid ${r}`,borderRadius:"4px 0px 0px 4px",display:"flex",justify:"center",padding:[0,.25,0,.25],children:t.jsx(I,{color:a,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(I,{color:c,size:"xs",children:n})})]})},Oa=(e,n)=>{const i={critical:D.palette.primary[700],high:D.palette.error[500],low:D.palette.warning[200],medium:D.palette.warning[500],none:D.palette.gray[200]},o={disabled:D.palette.gray[400],enabled:D.palette.gray[800]},r={critical:D.palette.white,high:D.palette.white,low:D.palette.gray[800],medium:D.palette.gray[800],none:D.palette.gray[400]};return{iconColor:n<1?i.none:i[e],iconText:l.lodashExports.capitalize(e.charAt(0)),iconTextColor:n<1?r.none:r[e],textColor:n<1?o.disabled:o.enabled}},ge=({variant:e,value:n})=>{const{iconColor:i,iconText:o,iconTextColor:r,textColor:a}=Oa(e,n),c=l.lodashExports.capitalize(e.charAt(0))+e.slice(1);return t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:.5,minWidth:"43px",children:[t.jsx(J,{id:c,place:"top",tip:c,children:t.jsx(b,{alignItems:"center",bgColor:i,borderRadius:"4px",cursor:"pointer",display:"flex",height:"22px",maxWidth:"22px",minWidth:"22px",children:t.jsx(I,{color:r,size:"sm",textAlign:"center",children:o})})}),t.jsx(I,{color:a,size:"sm",children:n})]})},Ma=({critical:e,high:n,medium:i,low:o})=>t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:1,children:[t.jsx(ge,{value:e,variant:"critical"}),t.jsx(ge,{value:n,variant:"high"}),t.jsx(ge,{value:i,variant:"medium"}),t.jsx(ge,{value:o,variant:"low"})]}),Wa=l.st.div`
|
|
2416
2416
|
${({theme:e})=>`
|
|
2417
2417
|
border-radius: ${e.spacing[.25]};
|
|
2418
2418
|
cursor: pointer;
|
|
@@ -2453,7 +2453,7 @@ ${y[8]}...`:(y.length<8&&p(!1),n)},[c,n,e]),f=x.useMemo(u,[u]),h=x.useCallback(a
|
|
|
2453
2453
|
height: auto;
|
|
2454
2454
|
}
|
|
2455
2455
|
`}
|
|
2456
|
-
`,_a=({children:e,closeIconId:n="close-menu",isOpen:i,items:o,onClose:r,primaryButtonText:a,primaryOnClick:c,secondaryButtonText:s,secondaryOnClick:d,title:p})=>{const g=l.Je(),u=x.useRef(null),f=x.useCallback(h=>()=>{h(),r()},[r]);return x.useEffect(()=>{const h=["mousedown","touchstart"],y=$=>{var v;const m=$.target,j=document.getElementById("helpBtn"),w=document.getElementById("filter-btn"),k=(m===j||((j==null?void 0:j.contains(m))??!1)||m===w||(w==null?void 0:w.contains(m)))??!1;i&&!k&&!(((v=u.current)==null?void 0:v.contains(m))??!1)&&r()};return h.forEach($=>{document.addEventListener($,y,{passive:!0})}),()=>{h.forEach($=>{document.removeEventListener($,y)})}},[i,r]),t.jsx(l.LazyMotion,{features:l.domAnimation,children:t.jsx(Ba,{animate:i?{display:"block",x:0}:{transitionEnd:{display:"none"},x:"100%"},initial:{display:"none",x:"100%"},ref:u,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(I,{color:g.palette.black,display:"inline",fontWeight:"bold",size:"xl",children:p}),t.jsx(
|
|
2456
|
+
`,_a=({children:e,closeIconId:n="close-menu",isOpen:i,items:o,onClose:r,primaryButtonText:a,primaryOnClick:c,secondaryButtonText:s,secondaryOnClick:d,title:p})=>{const g=l.Je(),u=x.useRef(null),f=x.useCallback(h=>()=>{h(),r()},[r]);return x.useEffect(()=>{const h=["mousedown","touchstart"],y=$=>{var v;const m=$.target,j=document.getElementById("helpBtn"),w=document.getElementById("filter-btn"),k=(m===j||((j==null?void 0:j.contains(m))??!1)||m===w||(w==null?void 0:w.contains(m)))??!1;i&&!k&&!(((v=u.current)==null?void 0:v.contains(m))??!1)&&r()};return h.forEach($=>{document.addEventListener($,y,{passive:!0})}),()=>{h.forEach($=>{document.removeEventListener($,y)})}},[i,r]),t.jsx(l.LazyMotion,{features:l.domAnimation,children:t.jsx(Ba,{animate:i?{display:"block",x:0}:{transitionEnd:{display:"none"},x:"100%"},initial:{display:"none",x:"100%"},ref:u,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(I,{color:g.palette.black,display:"inline",fontWeight:"bold",size:"xl",children:p}),t.jsx(O,{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:[(o??[]).map(({customBadge:h,description:y,icon:$,onClick:m,requiresUpgrade:j,title:w})=>t.jsx(Cn,{customBadge:h,description:y,icon:$,onClick:f(m),requiresUpgrade:j,title:w},w)),e&&t.jsx(b,{px:1.25,children:e})]}),a===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:[s===void 0?void 0:t.jsx(P,{color:`${g.palette.primary[500]} !important`,onClick:d,pl:.5,pr:.5,variant:"ghost",children:s}),t.jsx(P,{onClick:c,type:"submit",children:a})]})]})]})})})},Va=(e,n)=>n>=50?`
|
|
2457
2457
|
${e.palette.gray[200]} 50%,
|
|
2458
2458
|
${e.palette.primary[500]} 50.05%,
|
|
2459
2459
|
${e.palette.primary[500]} ${n}%,
|
|
@@ -2875,7 +2875,7 @@ ${y[8]}...`:(y.length<8&&p(!1),n)},[c,n,e]),f=x.useMemo(u,[u]),h=x.useCallback(a
|
|
|
2875
2875
|
align-items: center;
|
|
2876
2876
|
display: flex;
|
|
2877
2877
|
width: 100%;
|
|
2878
|
-
`,En=()=>{const e=l.Je(),{table:n}=x.useContext(Q),{loading:i}=(n==null?void 0:n.options.meta)??{},o=x.useMemo(()=>{const{enableRowSelection:s,enableMultiRowSelection:d}=(n==null?void 0:n.options)??{};return s||d?1:0},[n==null?void 0:n.options]),r=x.useCallback((s,d)=>{if(d===o)return p=>{var g,u;p.stopPropagation(),(u=(g=n==null?void 0:n.options)==null?void 0:g.onRowClick)==null||u.call(g,s)}},[o,n]),a=x.useCallback(s=>d=>{d.stopPropagation(),s.toggleExpanded()},[]),c=x.useCallback(s=>{const{meta:d}=(n==null?void 0:n.options)??{},{onExpand:p=void 0}=d??{};return p?p(s):null},[n]);return i?t.jsx("tbody",{children:t.jsx("tr",{className:"row-loading","data-testid":"row-loading",children:t.jsx("td",{colSpan:(n==null?void 0:n.getVisibleLeafColumns().length)??0,children:t.jsx(b,{alignItems:"center",display:"flex",justify:"center",width:"100%",children:t.jsx($n,{size:"md"})})})})}):(n==null?void 0:n.getRowModel().rows.length)===0?t.jsx("tbody",{children:t.jsx("tr",{className:"row-no-data","data-testid":"row-no-data",children:t.jsx("td",{colSpan:n.getVisibleLeafColumns().length+1,children:t.jsx(I,{color:e.palette.gray[800],size:"sm",textAlign:"center",children:"No data to display"})})})}):t.jsx("tbody",{children:n==null?void 0:n.getRowModel().rows.map(s=>t.jsxs(x.Fragment,{children:[t.jsx("tr",{"aria-expanded":s.getIsExpanded(),"data-testid":`row-${s.id}`,children:s.getVisibleCells().map((d,p)=>t.jsx("td",{className:p===o&&n.options.onRowClick?"clickable":"","data-testid":`cell-${d.id}`,onClick:r(s,p),children:t.jsxs(ss,{children:[p===o&&s.getCanExpand()?t.jsx("button",{onClick:a(s),style:{cursor:"pointer",marginRight:"1rem"},children:t.jsx(E,{icon:s.getIsExpanded()?"angle-up":"angle-down",iconSize:"xs",iconType:"fa-light"})}):void 0,l.flexRender(d.column.columnDef.cell,d.getContext())]})},d.id))}),s.getIsExpanded()?t.jsx("tr",{"data-testid":`row-${s.id}-expand`,id:"description",children:t.jsx("td",{colSpan:100,children:c(s)})}):void 0]},s.id))})},Rn=()=>{const{containerRef:e,hidden:n,elementName:i,handleUnselectAll:o,onKeyDown:r,selected:a,tableSize:c,tableRef:s}=x.useContext(Q);return t.jsxs("div",{ref:e,children:[n?void 0:t.jsx(rs,{$width:c,children:t.jsxs("div",{children:[t.jsx("b",{children:`${a} ${i} `}),`${a===1?"has":"have"} been selected. `,t.jsx("span",{onClick:o,onKeyDown:r,role:"link",tabIndex:0,children:"Unselect all"})]})}),t.jsxs("table",{ref:s,children:[t.jsx(Tn,{}),t.jsx(En,{})]})]})},Ct=l.st(
|
|
2878
|
+
`,En=()=>{const e=l.Je(),{table:n}=x.useContext(Q),{loading:i}=(n==null?void 0:n.options.meta)??{},o=x.useMemo(()=>{const{enableRowSelection:s,enableMultiRowSelection:d}=(n==null?void 0:n.options)??{};return s||d?1:0},[n==null?void 0:n.options]),r=x.useCallback((s,d)=>{if(d===o)return p=>{var g,u;p.stopPropagation(),(u=(g=n==null?void 0:n.options)==null?void 0:g.onRowClick)==null||u.call(g,s)}},[o,n]),a=x.useCallback(s=>d=>{d.stopPropagation(),s.toggleExpanded()},[]),c=x.useCallback(s=>{const{meta:d}=(n==null?void 0:n.options)??{},{onExpand:p=void 0}=d??{};return p?p(s):null},[n]);return i?t.jsx("tbody",{children:t.jsx("tr",{className:"row-loading","data-testid":"row-loading",children:t.jsx("td",{colSpan:(n==null?void 0:n.getVisibleLeafColumns().length)??0,children:t.jsx(b,{alignItems:"center",display:"flex",justify:"center",width:"100%",children:t.jsx($n,{size:"md"})})})})}):(n==null?void 0:n.getRowModel().rows.length)===0?t.jsx("tbody",{children:t.jsx("tr",{className:"row-no-data","data-testid":"row-no-data",children:t.jsx("td",{colSpan:n.getVisibleLeafColumns().length+1,children:t.jsx(I,{color:e.palette.gray[800],size:"sm",textAlign:"center",children:"No data to display"})})})}):t.jsx("tbody",{children:n==null?void 0:n.getRowModel().rows.map(s=>t.jsxs(x.Fragment,{children:[t.jsx("tr",{"aria-expanded":s.getIsExpanded(),"data-testid":`row-${s.id}`,children:s.getVisibleCells().map((d,p)=>t.jsx("td",{className:p===o&&n.options.onRowClick?"clickable":"","data-testid":`cell-${d.id}`,onClick:r(s,p),children:t.jsxs(ss,{children:[p===o&&s.getCanExpand()?t.jsx("button",{onClick:a(s),style:{cursor:"pointer",marginRight:"1rem"},children:t.jsx(E,{icon:s.getIsExpanded()?"angle-up":"angle-down",iconSize:"xs",iconType:"fa-light"})}):void 0,l.flexRender(d.column.columnDef.cell,d.getContext())]})},d.id))}),s.getIsExpanded()?t.jsx("tr",{"data-testid":`row-${s.id}-expand`,id:"description",children:t.jsx("td",{colSpan:100,children:c(s)})}):void 0]},s.id))})},Rn=()=>{const{containerRef:e,hidden:n,elementName:i,handleUnselectAll:o,onKeyDown:r,selected:a,tableSize:c,tableRef:s}=x.useContext(Q);return t.jsxs("div",{ref:e,children:[n?void 0:t.jsx(rs,{$width:c,children:t.jsxs("div",{children:[t.jsx("b",{children:`${a} ${i} `}),`${a===1?"has":"have"} been selected. `,t.jsx("span",{onClick:o,onKeyDown:r,role:"link",tabIndex:0,children:"Unselect all"})]})}),t.jsxs("table",{ref:s,children:[t.jsx(Tn,{}),t.jsx(En,{})]})]})},Ct=l.st(O)`
|
|
2879
2879
|
${({theme:e,$padding:n})=>`
|
|
2880
2880
|
background-color: ${e.palette.white};
|
|
2881
2881
|
border: 1px solid ${e.palette.gray[200]};
|
|
@@ -2901,7 +2901,7 @@ ${y[8]}...`:(y.length<8&&p(!1),n)},[c,n,e]),f=x.useMemo(u,[u]),h=x.useCallback(a
|
|
|
2901
2901
|
background-color: ${e.palette.gray[100]};
|
|
2902
2902
|
}
|
|
2903
2903
|
`}
|
|
2904
|
-
`,Dn=()=>{const{table:e}=x.useContext(Q),{pagination:{pageIndex:n}={pageIndex:0}}=(e==null?void 0:e.getState())??{},i=(e==null?void 0:e.getPageCount())??0,o=x.useCallback(()=>{e==null||e.setPageIndex(n+1)},[n,e]),r=x.useCallback(()=>{e==null||e.previousPage()},[e]);return t.jsxs(b,{alignItems:"center",display:"flex",gap:.5,children:[t.jsx(Ct,{$padding:"4px 6px",disabled:!(e!=null&&e.getCanPreviousPage()),icon:"chevron-left",iconSize:"xxs",id:"go-previous",onClick:r,variant:"ghost"}),t.jsx(Ct,{$padding:"4px 6px",disabled:n>i-2,icon:"chevron-right",iconSize:"xxs",id:"go-next",onClick:o,variant:"ghost"})]})},ls=10,cs=20,ds=50,ps=100,Nn=()=>{const e=l.Je(),{table:n}=x.useContext(Q),i=(n==null?void 0:n.getRowCount())??0,[o,r]=x.useState(!1),[a,c]=x.useState((n==null?void 0:n.getState().pagination.pageSize)??10),{refs:s,floatingStyles:d}=l.useFloating$1({middleware:[l.offset({mainAxis:4})],open:o,placement:"top-end",whileElementsMounted:l.autoUpdate}),p=x.useMemo(()=>l.transform([ls,cs,ds,ps],(h,y)=>(h.push(y),y<=i),[]),[i]),g=x.useCallback(()=>{o&&r(!1)},[o]),u=x.useCallback(()=>{r(h=>!h)},[]),f=x.useCallback(h=>()=>{c(h),n==null||n.setPageSize(h),r(!1)},[n,c]);return X(s.reference.current,()=>{r(!1)},!0,s.floating.current),x.useEffect(()=>(window.addEventListener("scrollend",g,!0),()=>{window.removeEventListener("scrollend",g,!0)}),[g]),t.jsxs(x.Fragment,{children:[t.jsxs(b,{alignItems:"center",bgColor:e.palette.white,border:"1px solid",borderColor:e.palette.gray[200],borderRadius:"4px",display:"flex",minHeight:"24px",px:.25,children:[t.jsx(I,{pr:.25,size:"sm",children:a}),t.jsx(
|
|
2904
|
+
`,Dn=()=>{const{table:e}=x.useContext(Q),{pagination:{pageIndex:n}={pageIndex:0}}=(e==null?void 0:e.getState())??{},i=(e==null?void 0:e.getPageCount())??0,o=x.useCallback(()=>{e==null||e.setPageIndex(n+1)},[n,e]),r=x.useCallback(()=>{e==null||e.previousPage()},[e]);return t.jsxs(b,{alignItems:"center",display:"flex",gap:.5,children:[t.jsx(Ct,{$padding:"4px 6px",disabled:!(e!=null&&e.getCanPreviousPage()),icon:"chevron-left",iconSize:"xxs",id:"go-previous",onClick:r,variant:"ghost"}),t.jsx(Ct,{$padding:"4px 6px",disabled:n>i-2,icon:"chevron-right",iconSize:"xxs",id:"go-next",onClick:o,variant:"ghost"})]})},ls=10,cs=20,ds=50,ps=100,Nn=()=>{const e=l.Je(),{table:n}=x.useContext(Q),i=(n==null?void 0:n.getRowCount())??0,[o,r]=x.useState(!1),[a,c]=x.useState((n==null?void 0:n.getState().pagination.pageSize)??10),{refs:s,floatingStyles:d}=l.useFloating$1({middleware:[l.offset({mainAxis:4})],open:o,placement:"top-end",whileElementsMounted:l.autoUpdate}),p=x.useMemo(()=>l.transform([ls,cs,ds,ps],(h,y)=>(h.push(y),y<=i),[]),[i]),g=x.useCallback(()=>{o&&r(!1)},[o]),u=x.useCallback(()=>{r(h=>!h)},[]),f=x.useCallback(h=>()=>{c(h),n==null||n.setPageSize(h),r(!1)},[n,c]);return X(s.reference.current,()=>{r(!1)},!0,s.floating.current),x.useEffect(()=>(window.addEventListener("scrollend",g,!0),()=>{window.removeEventListener("scrollend",g,!0)}),[g]),t.jsxs(x.Fragment,{children:[t.jsxs(b,{alignItems:"center",bgColor:e.palette.white,border:"1px solid",borderColor:e.palette.gray[200],borderRadius:"4px",display:"flex",minHeight:"24px",px:.25,children:[t.jsx(I,{pr:.25,size:"sm",children:a}),t.jsx(O,{color:e.palette.gray[400],icon:o?"chevron-up":"chevron-down",iconSize:"xxs",id:"paginator-dropdown",onClick:u,ref:s.setReference,variant:"ghost"})]}),o?t.jsx(b,{bgColor:e.palette.white,border:`1px solid ${e.palette.gray[200]}`,borderRadius:e.spacing[.5],display:"flex",flexDirection:"column",px:.25,py:.25,ref:s.setFloating,shadow:"md",style:d,children:p.map(h=>{const y=f(h);return t.jsx(b,{bgColor:a===h?e.palette.gray[800]:"transparent",bgColorHover:e.palette.gray[a===h?800:100],borderRadius:e.spacing["0.25"],cursor:"pointer",maxWidth:"40px",minWidth:"40px",onClick:y,px:.25,py:.25,children:t.jsx(I,{color:a===h?e.palette.white:e.palette.gray[600],size:"sm",textAlign:"center",children:h})},h)})}):void 0]})},Fn=()=>{const{table:e}=x.useContext(Q),{pagination:{pageIndex:n,pageSize:i}={pageIndex:0,pageSize:10}}=(e==null?void 0:e.getState())??{},o=(e==null?void 0:e.getRowCount())??0,r=x.useCallback((a,c,s)=>{if(s===0)return"0 of 0";if(c*a>=s)return`${s} of ${s}`;const d=c*a+1,p=Math.min(c*(a+1),s);return`${d}-${p} of ${s}`},[]);return t.jsx(I,{display:"inline-block",fontWeight:"bold",size:"sm",children:r(n,i,o)})},Ln=({children:e})=>t.jsxs(as,{children:[t.jsxs("div",{className:"pagination-container",children:[t.jsx(Fn,{}),t.jsx(Nn,{}),t.jsx(Dn,{})]}),e]}),An=({children:e})=>t.jsx("div",{className:"footer-container",children:e}),gs=l.st.div.attrs({className:"search-container"})`
|
|
2905
2905
|
${({theme:e})=>`
|
|
2906
2906
|
display: flex;
|
|
2907
2907
|
flex-direction: column;
|
|
@@ -2979,7 +2979,7 @@ ${y[8]}...`:(y.length<8&&p(!1),n)},[c,n,e]),f=x.useMemo(u,[u]),h=x.useCallback(a
|
|
|
2979
2979
|
.highlight-container ~ .controls-container {
|
|
2980
2980
|
flex: 1 0 100%;
|
|
2981
2981
|
}
|
|
2982
|
-
`,fs=500,Pn=({children:e})=>{const{table:n}=x.useContext(Q),{onSearch:i,search:o,searchPlaceholder:r="Search"}=(n==null?void 0:n.options.meta)??{},a=ot(s=>{i==null||i(s.target.value)},fs),c=x.useCallback(()=>{i==null||i("")},[i]);return t.jsxs(xs,{children:[i===void 0?void 0:t.jsx(gs,{children:t.jsx(ae,{name:"search",onChange:a,onClear:c,placeholder:r,value:o})}),e]})},
|
|
2982
|
+
`,fs=500,Pn=({children:e})=>{const{table:n}=x.useContext(Q),{onSearch:i,search:o,searchPlaceholder:r="Search"}=(n==null?void 0:n.options.meta)??{},a=ot(s=>{i==null||i(s.target.value)},fs),c=x.useCallback(()=>{i==null||i("")},[i]);return t.jsxs(xs,{children:[i===void 0?void 0:t.jsx(gs,{children:t.jsx(ae,{name:"search",onChange:a,onClear:c,placeholder:r,value:o})}),e]})},On=({children:e})=>t.jsx(b,{display:"flex",flexDirection:"column",children:t.jsx("div",{className:"caption-container",children:e})}),Mn=({children:e})=>t.jsx(us,{children:e}),Wn=({children:e})=>t.jsx("div",{className:"highlight-container",children:e}),hs=160,Hn=({children:e,table:n})=>{var f;const i=x.useRef(null),o=x.useRef(null),{id:r}=n.options.meta??{},{enableMultiRowSelection:a}=(n==null?void 0:n.options)??{},c=Object.keys(n.getState().rowSelection).length,s=c===1?"item":"items",d=c===0||!a,p=Math.max(((f=i.current)==null?void 0:f.clientWidth)??0,n.getTotalSize()+hs),g=x.useCallback(()=>{n.resetRowSelection()},[n]),u=x.useCallback(h=>{h.key==="Enter"&&g()},[g]);return x.useEffect(()=>{n.setPageIndex(0)},[n]),t.jsx(Q.Provider,{value:{containerRef:i,elementName:s,handleUnselectAll:g,hidden:d,onKeyDown:u,selected:c,tableSize:p,tableRef:o,table:n},children:t.jsx(os,{id:r,children:e})})},ys=Object.assign(Hn,{Caption:On,Columns:In,Content:Rn,Controls:Mn,Export:zn,Footer:Ln,FooterContent:An,Highlighted:Wn,Options:Pn}),bs=l.st.button`
|
|
2983
2983
|
${({theme:e})=>`
|
|
2984
2984
|
align-items: center;
|
|
2985
2985
|
background-color: ${e.palette.white};
|
|
@@ -3094,4 +3094,4 @@ ${y[8]}...`:(y.length<8&&p(!1),n)},[c,n,e]),f=x.useMemo(u,[u]),h=x.useCallback(a
|
|
|
3094
3094
|
transform: translateX(-50%);
|
|
3095
3095
|
}
|
|
3096
3096
|
`}
|
|
3097
|
-
`,Bn=({date:e,description:n,title:i,size:o="long"})=>{const r=l.Je();return t.jsxs(ws,{$size:o,className:"timeline-card",children:[t.jsx(I,{color:r.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:e}),t.jsx(I,{color:r.palette.gray[800],fontWeight:"bold",lineSpacing:1.5,mb:.5,size:"md",textAlign:"center",children:i}),t.jsx("div",{children:n.map((a,c)=>{const s=`${a}#${c}`;return t.jsx(I,{size:"sm",textAlign:"center",wordBreak:"break-word",children:a},s)})})]})},vs=({items:e})=>{const n=x.useRef(null),[i,o]=x.useState("long");return x.useEffect(()=>{n.current&&o(n.current.offsetWidth<=1100?"small":"long")},[]),t.jsx(b,{ref:n,width:"100%",children:t.jsx(js,{$size:i,children:e.map((r,a)=>t.jsx(Bn,{date:r.date,description:r.description,size:i,title:r.title},`${r.title}-${a}`))})})},ks={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:""},Cs=({run:e,steps:n,onFinish:i})=>{const[o,r]=x.useState(e),[a,c]=x.useState(0),s=x.useCallback(d=>{const{action:p,index:g,status:u,type:f}=d;[l.EVENTS.STEP_AFTER,l.EVENTS.TARGET_NOT_FOUND].includes(f)?c(g+(p===l.ACTIONS.PREV?-1:1)):([l.STATUS.FINISHED,l.STATUS.SKIPPED].includes(u)||p==="close")&&(r(!1),l.lodashExports.isUndefined(i)||i())},[i]);return t.jsx(l.components_default,{callback:s,continuous:!0,disableOverlayClose:!0,disableScrollParentFix:!0,run:o,spotlightClicks:!0,stepIndex:a,steps:n,styles:{buttonNext:{display:a===n.length-1?"none":"block"},options:{zIndex:9999}}})};exports.Accordion=wi;exports.AccordionContent=It;exports.ActionButton=Ge;exports.Alert=Ei;exports.AppliedFilter=pe;exports.AppliedFilters=jr;exports.ArrayField=Je;exports.Avatar=Pi;exports.BaseButtonComponent=Xe;exports.BaseComponent=ke;exports.BaseSpanComponent=et;exports.BaseTextComponent=Qe;exports.Body=En;exports.Button=P;exports.Button$1=Te;exports.ButtonToolbarCenter=co;exports.ButtonToolbarRow=go;exports.ButtonToolbarStartRow=po;exports.Calendar=At;exports.Calendar$1=Ht;exports.Calendar$2=_t;exports.CalendarCell=Lt;exports.CalendarGrid=Ne;exports.CaptionContent=
|
|
3097
|
+
`,Bn=({date:e,description:n,title:i,size:o="long"})=>{const r=l.Je();return t.jsxs(ws,{$size:o,className:"timeline-card",children:[t.jsx(I,{color:r.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:e}),t.jsx(I,{color:r.palette.gray[800],fontWeight:"bold",lineSpacing:1.5,mb:.5,size:"md",textAlign:"center",children:i}),t.jsx("div",{children:n.map((a,c)=>{const s=`${a}#${c}`;return t.jsx(I,{size:"sm",textAlign:"center",wordBreak:"break-word",children:a},s)})})]})},vs=({items:e})=>{const n=x.useRef(null),[i,o]=x.useState("long");return x.useEffect(()=>{n.current&&o(n.current.offsetWidth<=1100?"small":"long")},[]),t.jsx(b,{ref:n,width:"100%",children:t.jsx(js,{$size:i,children:e.map((r,a)=>t.jsx(Bn,{date:r.date,description:r.description,size:i,title:r.title},`${r.title}-${a}`))})})},ks={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:""},Cs=({run:e,steps:n,onFinish:i})=>{const[o,r]=x.useState(e),[a,c]=x.useState(0),s=x.useCallback(d=>{const{action:p,index:g,status:u,type:f}=d;[l.EVENTS.STEP_AFTER,l.EVENTS.TARGET_NOT_FOUND].includes(f)?c(g+(p===l.ACTIONS.PREV?-1:1)):([l.STATUS.FINISHED,l.STATUS.SKIPPED].includes(u)||p==="close")&&(r(!1),l.lodashExports.isUndefined(i)||i())},[i]);return t.jsx(l.components_default,{callback:s,continuous:!0,disableOverlayClose:!0,disableScrollParentFix:!0,run:o,spotlightClicks:!0,stepIndex:a,steps:n,styles:{buttonNext:{display:a===n.length-1?"none":"block"},options:{zIndex:9999}}})};exports.Accordion=wi;exports.AccordionContent=It;exports.ActionButton=Ge;exports.Alert=Ei;exports.AppliedFilter=pe;exports.AppliedFilters=jr;exports.ArrayField=Je;exports.Avatar=Pi;exports.BaseButtonComponent=Xe;exports.BaseComponent=ke;exports.BaseSpanComponent=et;exports.BaseTextComponent=Qe;exports.Body=En;exports.Button=P;exports.Button$1=Te;exports.ButtonToolbarCenter=co;exports.ButtonToolbarRow=go;exports.ButtonToolbarStartRow=po;exports.Calendar=At;exports.Calendar$1=Ht;exports.Calendar$2=_t;exports.CalendarCell=Lt;exports.CalendarGrid=Ne;exports.CaptionContent=On;exports.CardContainer=Bo;exports.CardHeader=De;exports.CardWithImage=Wi;exports.CardWithInput=Ro;exports.CardWithOptions=ln;exports.CardWithSelector=Po;exports.CardWithSwitch=Wo;exports.Carousel=Yo;exports.Checkbox=oe;exports.CodeSnippet=Zo;exports.Col=Ve;exports.ColumFilters=hn;exports.ColumnToggle=In;exports.ColumnsModal=pn;exports.ComboBox=nt;exports.ComboBoxField=_e;exports.Container=b;exports.ControlsContent=Mn;exports.CopyButton=Nr;exports.CustomThemeProvider=ui;exports.DateField=Ot;exports.DateSelector=xe;exports.Description=kn;exports.Dialog=Le;exports.Divider=re;exports.Dropdown=Ar;exports.Editable=lo;exports.EmptyButton=Ke;exports.EmptyState=Wr;exports.ErrorMessage=_i;exports.ExportCsv=zn;exports.FilePreview=Dt;exports.FilterControl=gn;exports.FilterForm=Ye;exports.FilterFormContent=un;exports.FiltersList=fn;exports.FooterContent=An;exports.Form=_r;exports.Gap=fo;exports.GridContainer=Jr;exports.GroupSelector=Gr;exports.Head=Tn;exports.Header=Fe;exports.Header$1=tn;exports.Heading=Z;exports.HighlightedContent=Wn;exports.Icon=E;exports.IconButton=O;exports.InProgressIcon=jn;exports.IndicatorCard=Yr;exports.InfoSidebar=Kr;exports.InnerForm=Hr;exports.Input=Ae;exports.InputArray=yo;exports.InputDate=Wt;exports.InputDateRange=Bt;exports.InputDateTime=so;exports.InputFile=wo;exports.InputNumber=Jt;exports.InputNumberRange=Ut;exports.InputTags=vo;exports.Label=tt;exports.Link=q;exports.ListItem=ze;exports.ListItemsWrapper=an;exports.LittleFlag=qr;exports.Loading=$n;exports.LocationCode=Xt;exports.Logo=aa;exports.Lottie=la;exports.MemoizedImage=te;exports.Menu=ca;exports.MenuItem=Cn;exports.MessageBanner=pa;exports.Modal=lt;exports.ModalConfirm=nn;exports.ModalFooter=en;exports.Notification=fa;exports.NotificationSign=on;exports.NumberField=Re;exports.NumberInput=ba;exports.OAuthSelector=ma;exports.Option=Nt;exports.OptionBoxContainer=ct;exports.OptionContainer=Ze;exports.OptionContainer$1=bn;exports.OutlineContainer=V;exports.PaginationControl=Dn;exports.PaginationDropdown=Nn;exports.PaginationSize=Fn;exports.PhoneInput=To;exports.PopUp=Na;exports.Popover=Ce;exports.PremiumFeature=mn;exports.PreviewPanel=sn;exports.PriorityScore=ja;exports.ProgressBar=wn;exports.ProgressIndicator=Da;exports.ProgressStep=Ea;exports.RadioButton=rt;exports.Row=Vt;exports.ScrollUpButton=La;exports.Search=ae;exports.SearchPanel=dn;exports.SeverityBadge=Pa;exports.SeverityOverview=Ma;exports.SeverityOverviewBadge=ge;exports.ShowOnHover=Ha;exports.SlideOutMenu=_a;exports.Slider=Ka;exports.SortIcon=qe;exports.Span=ue;exports.StepLapse=ts;exports.Tab=rn;exports.Table=ys;exports.Table$1=Hn;exports.TableButton=ms;exports.TableContent=Rn;exports.TableContext=Q;exports.TableFooter=Ln;exports.TableOptions=Pn;exports.Tabs=st;exports.Tag=G;exports.TagsField=Ue;exports.Text=I;exports.TextArea=Eo;exports.Thumb=Sn;exports.TimeField=Mt;exports.TimeLine=vs;exports.TimeLineCard=Bn;exports.Toggle=Zt;exports.Tooltip=J;exports.Tour=Cs;exports.baseStep=ks;exports.formatCheckValues=yn;exports.getStyledConfig=ve;exports.hiddenProps=St;exports.icons=pi;exports.setBorder=$e;exports.setDisplay=me;exports.setInteraction=je;exports.setMargin=ye;exports.setPadding=he;exports.setPosition=be;exports.setText=we;exports.theme=D;exports.uniqueIcons=gi;exports.useCarousel=Gt;exports.useClickOutside=X;exports.useCloudinaryImage=Yt;exports.useColumnsModal=Kt;exports.useConditionsDialog=Er;exports.useConfirmDialog=Rr;exports.useDebouncedCallback=ot;exports.useFilterForm=xn;exports.useFilters=Tr;exports.useModal=Se;exports.useSearch=No;exports.variantBuilder=K;
|