@fluidattacks/design 3.20.1 → 3.20.2-pr.1
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.d.ts +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/types.d.ts +1 -0
- 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/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/combobox/types.d.ts +2 -0
- 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/plan-card/index.js +1 -1
- package/dist/components/plan-card/recommended-tag/index.js +1 -1
- package/dist/components/pop-up/description/index.js +1 -1
- package/dist/components/pop-up/index.js +1 -1
- package/dist/components/premium-feature/index.js +1 -1
- package/dist/components/priority-score/index.js +1 -1
- package/dist/components/progress-bar/index.js +1 -1
- package/dist/components/radio-button/index.js +1 -1
- package/dist/components/scroll-button/index.js +1 -1
- package/dist/components/search/index.js +1 -1
- package/dist/components/severity-badge/index.js +1 -1
- package/dist/components/severity-overview/badge/index.js +1 -1
- package/dist/components/severity-overview/index.js +1 -1
- package/dist/components/show-on-hover/index.js +1 -1
- package/dist/components/slide-out-menu/index.js +1 -1
- package/dist/components/slide-out-menu/menu-item/index.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/thumb/index.js +1 -1
- package/dist/components/step-lapse/index.js +1 -1
- package/dist/components/table-button/index.js +1 -1
- package/dist/components/tabs/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-Cj5cfiob.js → components-73Jvay7k.js} +30 -29
- package/dist/{components-Ty6RmecN.mjs → components-BtyCUsHI.mjs} +401 -389
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),x=require("react"),s=require("./vendor-DOfNkUnQ.js"),re=require("react-dom"),We=require("react-router-dom"),q=e=>({getVariant:(n,i)=>e(n)[i]}),$t=["padding","px","py","pl","pr","pt","pb","margin","mx","my","ml","mr","mt","mb","zIndex","position","top","right","bottom","left","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderRadius","scroll","visibility","display","height","width","maxHeight","maxWidth","minHeight","minWidth","shadow","bgColor","bgGradient","gap","flexDirection","flexGrow","justify","justifySelf","alignItems","alignSelf","wrap","color","fontFamily","fontSize","fontWeight","textAlign","whiteSpace","letterSpacing","lineSpacing","textDecoration","textOverflow","whiteSpace","wordBreak","wordWrap","cursor","transition","borderColorHover","bgColorHover","shadowHover"],Sn={25:"#fcfcfd",50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#2f394b",800:"#212a36",900:"#161b25"},zn={25:"#fef2f3",50:"#fddfe2",100:"#fbbac0",200:"#f9959e",300:"#f65e6a",400:"#f32637",500:"#bf0b1a",600:"#ac0a17",700:"#9a0915",800:"#870812",900:"#750710"},In={25:"",50:"",100:"#ffe6ff",200:"",300:"#b8075d",400:"",500:"#7f0540",600:"",700:"#59042d",800:"",900:"#460323"},Tn={25:"",50:"#fef3f2",100:"",200:"#fecdca",300:"",400:"",500:"#f04438",600:"",700:"#b42318",800:"",900:""},Fn={25:"",50:"#fffaeb",100:"",200:"#fef0c7",300:"",400:"#ffd562",500:"#fdb022",600:"#dc6803",700:"#b54708",800:"",900:""},Nn={25:"",50:"#f6fef9",100:"",200:"#a6f4c5",300:"",400:"",500:"#12b76a",600:"",700:"#027a48",800:"",900:""},Dn={25:"",50:"#eff8ff",100:"",200:"#b2ddff",300:"",400:"",500:"#2e90fa",600:"",700:"#175cd3",800:"",900:""},En={"01":"linear-gradient(45deg, #f32637 0%, #b8075d 100%)","02":"linear-gradient(45deg, #fcfcfd 0%, #667085 100%)"},Rn={type:{primary:"Roboto, sans-serif",poppins:"'Poppins', sans-serif",mono:"'Space Mono', monospace"},heading:{xxl:"64px",xl:"48px",lg:"32px",md:"24px",sm:"20px",xs:"16px"},text:{xl:"20px",lg:"18px",md:"16px",sm:"14px",xs:"12px"},weight:{bold:"700",semibold:"600",regular:"400"}},
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),x=require("react"),s=require("./vendor-DOfNkUnQ.js"),re=require("react-dom"),We=require("react-router-dom"),q=e=>({getVariant:(n,i)=>e(n)[i]}),$t=["padding","px","py","pl","pr","pt","pb","margin","mx","my","ml","mr","mt","mb","zIndex","position","top","right","bottom","left","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderRadius","scroll","visibility","display","height","width","maxHeight","maxWidth","minHeight","minWidth","shadow","bgColor","bgGradient","gap","flexDirection","flexGrow","justify","justifySelf","alignItems","alignSelf","wrap","color","fontFamily","fontSize","fontWeight","textAlign","whiteSpace","letterSpacing","lineSpacing","textDecoration","textOverflow","whiteSpace","wordBreak","wordWrap","cursor","transition","borderColorHover","bgColorHover","shadowHover"],Sn={25:"#fcfcfd",50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#2f394b",800:"#212a36",900:"#161b25"},zn={25:"#fef2f3",50:"#fddfe2",100:"#fbbac0",200:"#f9959e",300:"#f65e6a",400:"#f32637",500:"#bf0b1a",600:"#ac0a17",700:"#9a0915",800:"#870812",900:"#750710"},In={25:"",50:"",100:"#ffe6ff",200:"",300:"#b8075d",400:"",500:"#7f0540",600:"",700:"#59042d",800:"",900:"#460323"},Tn={25:"",50:"#fef3f2",100:"",200:"#fecdca",300:"",400:"",500:"#f04438",600:"",700:"#b42318",800:"",900:""},Fn={25:"",50:"#fffaeb",100:"",200:"#fef0c7",300:"",400:"#ffd562",500:"#fdb022",600:"#dc6803",700:"#b54708",800:"",900:""},Nn={25:"",50:"#f6fef9",100:"",200:"#a6f4c5",300:"",400:"",500:"#12b76a",600:"",700:"#027a48",800:"",900:""},Dn={25:"",50:"#eff8ff",100:"",200:"#b2ddff",300:"",400:"",500:"#2e90fa",600:"",700:"#175cd3",800:"",900:""},En={"01":"linear-gradient(45deg, #f32637 0%, #b8075d 100%)","02":"linear-gradient(45deg, #fcfcfd 0%, #667085 100%)"},Rn={type:{primary:"Roboto, sans-serif",poppins:"'Poppins', sans-serif",mono:"'Space Mono', monospace"},heading:{xxl:"64px",xl:"48px",lg:"32px",md:"24px",sm:"20px",xs:"16px"},text:{xl:"20px",lg:"18px",md:"16px",sm:"14px",xs:"12px"},weight:{bold:"700",semibold:"600",regular:"400"}},Ln={none:"none",sm:"0px 1px 2px 0px rgba(16, 24, 40, 0.15)",md:"0px 4px 6px 0px rgba(16, 24, 40, 0.15)",lg:"0px 8px 24px 0px rgba(16, 24, 40, 0.15)"},An={mobile:"480px",tablet:"960px",sm:"1024px",md:"1440px",lg:"1920px"},Pn={0:"0rem",.125:"0.125rem",.188:"0.188rem",.25:"0.25rem",.5:"0.5rem",.625:"0.625rem",.75:"0.75rem",1:"1rem",1.25:"1.25rem",1.5:"1.5rem",1.75:"1.75rem",2:"2rem",2.25:"2.25rem",2.5:"2.5rem",3:"3rem",3.5:"3.5rem",4:"4rem",4.5:"4.5rem",5:"5rem",6:"6rem"},Wn=["lock-keyhole","bars-sort","bolt","books","brain-circuit","briefcase","bug","buildings","bullseye-pointer","calendar-clock","calendar-xmark","chart-network","clipboard-check","comment","envelope","eye","file","flag","globe","hand-holding-dollar","hands-clapping","headset","hexagon-exclamation","light-emergency-on","magnifying-glass","pen-line","plane-departure","screwdriver-wrench","sensor-triangle-exclamation","shield-check","sidebar","skull","sliders","star-christmas","telescope","trash","unlock","user-group","user-hoodie","xmark"],Bn=[["fal","arrow-down"],["fal","arrow-left"],["fal","arrow-right"],["fal","arrow-up"],["fal","plus"],["fal","minus"],["fas","check"],["fas","circle-question"]],T={typography:Rn,shadows:Ln,breakpoints:An,spacing:Pn,palette:{primary:zn,complementary:In,error:Tn,info:Dn,warning:Fn,success:Nn,black:"#0c111d",white:"#ffffff",gray:Sn,gradients:En}},On=({children:e})=>t.jsx(s.Xe,{theme:T,children:e}),D=(e,n)=>n===void 0?"":`${e}: ${n};`,fe=e=>{const n=e.py??e.pt??0,i=e.px??e.pr??0,a=e.py??e.pb??0,r=e.px??e.pl??0;if(e.padding){const[o,l,c,d]=e.padding;return`padding: ${T.spacing[o]} ${T.spacing[l]} ${T.spacing[c]} ${T.spacing[d]};`}return`padding: ${T.spacing[n]} ${T.spacing[i]} ${T.spacing[a]} ${T.spacing[r]};`},he=e=>{const n=e.my??e.mt??0,i=e.mx??e.mr??0,a=e.my??e.mb??0,r=e.mx??e.ml??0;if(e.margin){const[o,l,c,d]=e.margin;return`margin: ${T.spacing[o]} ${T.spacing[l]} ${T.spacing[c]} ${T.spacing[d]};`}return`margin: ${T.spacing[n]} ${T.spacing[i]} ${T.spacing[a]} ${T.spacing[r]};`},be=e=>{const n=D("position",e.position),i=D("top",e.top),a=D("right",e.right),r=D("bottom",e.bottom),o=D("left",e.left),l=D("z-index",e.zIndex);return`
|
|
2
2
|
${n}
|
|
3
3
|
${i}
|
|
4
4
|
${a}
|
|
@@ -636,7 +636,7 @@
|
|
|
636
636
|
${vt}
|
|
637
637
|
`,ci=s.st(We.Link)`
|
|
638
638
|
${vt}
|
|
639
|
-
`,
|
|
639
|
+
`,K=({children:e,color:n,download:i,href:a,iconPosition:r="right",onClick:o,target:l,variant:c="lowRelevance"})=>{const d=a.startsWith("https://"),g=t.jsx(F,{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:c,download:i,href:a,onClick:o,rel:"nofollow noopener noreferrer",target:l??"_blank",children:[r==="left"?g:void 0,e,r==="right"?g:void 0]}):t.jsxs(ci,{$variant:c,download:i,onClick:o,rel:"nofollow noopener noreferrer",target:l,to:a,children:[l!==void 0&&r==="left"?g:void 0,e,l!==void 0&&r==="right"?g:void 0]})},V=({disabled:e,icon:n,iconColor:i="inherit",iconType:a="fa-light",id:r="close-tag",filterValues:o="",fontSize:l,href:c,linkLabel:d,onClose:g,priority:p="default",tagTitle:u="",tagLabel:f,variant:h="default"})=>{const b=f.length>25&&s.lodashExports.isEmpty(u+o),y=`${f.slice(0,25)}...`;return t.jsxs(pe,{className:"gap-0.5",display:c===void 0?"initial":"flex",size:"sm",children:[t.jsxs(oi,{$fontSize:l,$variant:h,className:p,children:[n&&t.jsx(F,{icon:n,iconColor:i,iconSize:"xxs",iconType:a}),t.jsxs("span",{className:"w-full",children:[t.jsx("strong",{children:u}),t.jsx("span",{children:b?y:f}),t.jsx("strong",{className:"w-full",children:o})]}),g?t.jsx(O,{disabled:e,icon:"xmark",iconSize:"xxs",iconType:"fa-light",id:r,onClick:g,px:.125,py:.125,variant:"ghost"}):void 0]}),c===void 0?void 0:t.jsx(K,{href:c,children:d})]})},di=(e,n=!0)=>{const i=window.open(e,n?void 0:"_self","noopener,noreferrer,");s.lodashExports.isObject(i)&&(i.opener=null)},P=x.forwardRef(function({children:n,disabled:i=!1,external:a=!1,fontSize:r,href:o,id:l,icon:c,iconColor:d,iconType:g,name:p,onClick:u,rightIcon:f,tag:h,type:b="button",tooltip:y,tooltipPlace:m="bottom",underline:j=!1,value:w,variant:v="primary",width:k,...C},E){const z=y!==void 0,S=`${l}-tooltip`,N=x.useCallback(()=>{o&&di(o,a)},[a,o]),R=t.jsxs(jt,{$size:r,$variant:v,"aria-disabled":i,className:j?"underline":void 0,disabled:i,id:l,name:p,onClick:v==="link"?N:u,ref:E,type:b,value:w,width:k,...z?{"data-tooltip-id":S}:{},...C,children:[c!==void 0&&t.jsx(F,{icon:c,iconColor:d??void 0,iconSize:"xs",iconType:g??"fa-light"}),n,f||v==="link"?t.jsx(F,{icon:f??"arrow-right",iconSize:"xs",iconType:"fa-light"}):void 0,h===void 0?null:t.jsx(V,{tagLabel:h,variant:"default"})]});return z?t.jsx(G,{disabled:!z,id:S,place:m,tip:y,width:k,children:R}):R}),pi=x.forwardRef(function({children:n,onClick:i,userName:a,showIcon:r=!1,showUsername:o=!1},l){const c=!!i;return t.jsx($,{id:"navbar-user-profile",ref:l,zIndex:9999,children:t.jsxs($,{alignItems:"end",display:"flex",flexDirection:"column",position:"relative",zIndex:30,children:[c?t.jsxs(P,{onClick:i,pb:.5,pl:.5,pr:.5,pt:.5,variant:"ghost",children:[t.jsx(ct,{children:a[0].toUpperCase()}),o?t.jsx(I,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:a.split(" ")[0]}):void 0,r?t.jsx(F,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}):t.jsxs($,{alignItems:"center",display:"flex",px:.5,py:.5,children:[t.jsx(ct,{children:a[0].toUpperCase()}),o?t.jsxs(I,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:["Hi ",a.split(" ")[0],"!"]}):void 0,r?t.jsx(F,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}),t.jsx(ai,{children:n})]})})}),Ne=({authorEmail:e,date:n,description:i,descriptionColor:a,id:r,title:o,titleColor:l,textAlign:c,textSpacing:d=0,tooltip:g})=>{const p=s.Je();return t.jsxs($,{width:"100%",children:[typeof o=="string"||g?t.jsxs($,{alignItems:"center",display:"inline-flex",gap:.5,children:[typeof o=="string"?t.jsx(I,{color:l??p.palette.gray[800],fontWeight:"bold",mb:d,size:"sm",textAlign:c,wordBreak:"break-word",children:o}):o,g&&t.jsx(G,{icon:"circle-info",id:r,place:"top",tip:g})]}):void 0,t.jsxs($,{alignItems:"start",display:"flex",flexDirection:"column",gap:.25,children:[i&&t.jsx(I,{color:a??p.palette.gray[800],fontWeight:i===void 0?"bold":"regular",size:"sm",textAlign:c,wordBreak:"break-word",children:i}),n&&t.jsx(I,{color:p.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`Date: ${n.split(" ")[0]}`}),e&&t.jsx(I,{color:p.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`Author: ${e}`})]})]})},dt=s.st($).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
|
-
`,gi=e=>{if(s._.isNil(e))return"";const n=e.split(".");return(n.length>1?s._.last(n):"").toLowerCase()},ui=(e,n)=>s._.isUndefined(n)?!1:s._.includes(e,gi(n)),kt=({alt:e,fileType:n,width:i="100%",opacity:a=0,src:r,height:o="auto",videoViewStatus:l})=>{const[c,d]=x.useState({start:!1,half:!1,end:!1}),g=x.useCallback(p=>{if(!l)return;const u=p.target,f=u.currentTime/u.duration*100;f>5&&f<50?(c.start||l("start"),d({start:!0,half:!1,end:!1})):f>=50&&f<99?(c.half||l("half"),d({start:!0,half:!0,end:!1})):f>=99?(c.end||l("end"),d({start:!0,half:!0,end:!0})):d({start:!1,half:!1,end:!1})},[l,c]);return n==="video"||ui(["webm"],r)?t.jsx(dt,{$opacity:a,children:t.jsx(
|
|
654
|
+
`,gi=e=>{if(s._.isNil(e))return"";const n=e.split(".");return(n.length>1?s._.last(n):"").toLowerCase()},ui=(e,n)=>s._.isUndefined(n)?!1:s._.includes(e,gi(n)),kt=({alt:e,fileType:n,width:i="100%",opacity:a=0,src:r,height:o="auto",videoViewStatus:l})=>{const[c,d]=x.useState({start:!1,half:!1,end:!1}),g=x.useCallback(p=>{if(!l)return;const u=p.target,f=u.currentTime/u.duration*100;f>5&&f<50?(c.start||l("start"),d({start:!0,half:!1,end:!1})):f>=50&&f<99?(c.half||l("half"),d({start:!0,half:!0,end:!1})):f>=99?(c.end||l("end"),d({start:!0,half:!0,end:!0})):d({start:!1,half:!1,end:!1})},[l,c]);return n==="video"||ui(["webm"],r)?t.jsx(dt,{$opacity:a,children:t.jsx(K,{href:r,iconPosition:"hidden",children:t.jsxs("video",{controls:!0,muted:!0,onTimeUpdate:g,style:{height:o,width:i},children:[t.jsx("source",{src:r,type:"video/webm"}),r]})})}):t.jsx(dt,{$opacity:a,children:t.jsx("img",{alt:e,src:r,style:{height:o,width:i}})})},xi=({alt:e,authorEmail:n,date:i,description:a,src:r,children:o,isEditing:l,onClick:c,title:d,hideDescription:g=!1,headerType:p="image",showMaximize:u=!0,videoViewStatus:f})=>{const h=s.Je(),[b,y]=x.useState(!1),m=x.useCallback(()=>{y(!0)},[]),j=x.useCallback(()=>{y(!1)},[]);return t.jsxs($,{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($,{cursor:l?"unset":"pointer",display:"inline-flex",justify:"center",onClick:c,position:"relative",width:"100%",children:o===void 0?t.jsxs(x.Fragment,{children:[t.jsx(kt,{alt:e,fileType:p,height:"147px",opacity:b?.3:0,src:r,videoViewStatus:f,width:"100%"}),u?t.jsx($,{bottom:"10px",position:"absolute",right:"10px",children:t.jsx(O,{color:"white",icon:"arrows-maximize",iconSize:"xxs",iconType:"fa-light",variant:"secondary"})}):void 0]}):o}),g?null:t.jsx(Ne,{authorEmail:n,date:i,description:a,descriptionColor:h.palette.gray[600],id:`${e}-card-header`,title:d})]})},fi=s.st.div`
|
|
655
655
|
${({theme:e,$align:n="center",$minWidth:i="auto",$minHeight:a="auto"})=>`
|
|
656
656
|
display: flex;
|
|
657
657
|
background-color: ${e.palette.white};
|
|
@@ -670,7 +670,7 @@
|
|
|
670
670
|
text-align: ${n};
|
|
671
671
|
}
|
|
672
672
|
`}
|
|
673
|
-
`,Ke=({htmlFor:e,label:n,link:i,required:a,tooltip:r,weight:o="normal"})=>{const l=s.Je(),c=`${e}-tooltip`,d=r!==void 0&&!s.lodashExports.isEmpty(r);return t.jsxs("label",{className:`flex font-${o} gap-1 w-full`,htmlFor:e,children:[n,a&&t.jsx(F,{icon:"asterisk",iconColor:l.palette.error[500],iconSize:"xxss"}),i?t.jsx(
|
|
673
|
+
`,Ke=({htmlFor:e,label:n,link:i,required:a,tooltip:r,weight:o="normal"})=>{const l=s.Je(),c=`${e}-tooltip`,d=r!==void 0&&!s.lodashExports.isEmpty(r);return t.jsxs("label",{className:`flex font-${o} gap-1 w-full`,htmlFor:e,children:[n,a&&t.jsx(F,{icon:"asterisk",iconColor:l.palette.error[500],iconSize:"xxss"}),i?t.jsx(K,{href:i,target:"_blank"}):null,d?t.jsx(G,{display:"inline-flex",icon:"circle-info",id:c,place:"top",tip:r}):null]})},hi=s.st.div`
|
|
674
674
|
${({theme:e})=>`
|
|
675
675
|
align-items: flex-start;
|
|
676
676
|
display: inline-flex;
|
|
@@ -813,7 +813,7 @@
|
|
|
813
813
|
border: 1px solid ${e.palette.gray[600]};
|
|
814
814
|
}
|
|
815
815
|
`}
|
|
816
|
-
`,J=({children:e,id:n,error:i,helpLink:a,helpLinkText:r="Link here",helpText:o,htmlFor:l,label:c,linkPosition:d="down",maxLength:g,required:p,tooltip:u,value:f,weight:h})=>{const b=s.Je(),y=f?f.length:0;return t.jsxs(hi,{id:n,children:[c===void 0?void 0:t.jsx(Ke,{htmlFor:l,label:c,link:d==="up"?a:void 0,required:p,tooltip:u,weight:h}),e,i||g?t.jsxs($,{display:"flex",justify:i===void 0?"end":"space-between",width:"100%",children:[i&&t.jsx(I,{className:"error-msg",color:b.palette.error[500],display:"block",lineSpacing:1,size:"sm",children:i}),g&&t.jsx(V,{priority:"low",tagLabel:`${y}/${g}`,variant:"error"})]}):void 0,o||a?t.jsxs($,{alignItems:"center",display:"flex",gap:.25,width:"100%",children:[o&&t.jsxs(t.Fragment,{children:[t.jsx(F,{icon:"circle-info",iconColor:b.palette.gray[400],iconSize:"xxs",iconType:"fa-light"}),t.jsx(I,{color:b.palette.gray[400],display:"inline-block",size:"sm",children:o})]}),a&&d==="down"?t.jsx(
|
|
816
|
+
`,J=({children:e,id:n,error:i,helpLink:a,helpLinkText:r="Link here",helpText:o,htmlFor:l,label:c,linkPosition:d="down",maxLength:g,required:p,tooltip:u,value:f,weight:h})=>{const b=s.Je(),y=f?f.length:0;return t.jsxs(hi,{id:n,children:[c===void 0?void 0:t.jsx(Ke,{htmlFor:l,label:c,link:d==="up"?a:void 0,required:p,tooltip:u,weight:h}),e,i||g?t.jsxs($,{display:"flex",justify:i===void 0?"end":"space-between",width:"100%",children:[i&&t.jsx(I,{className:"error-msg",color:b.palette.error[500],display:"block",lineSpacing:1,size:"sm",children:i}),g&&t.jsx(V,{priority:"low",tagLabel:`${y}/${g}`,variant:"error"})]}):void 0,o||a?t.jsxs($,{alignItems:"center",display:"flex",gap:.25,width:"100%",children:[o&&t.jsxs(t.Fragment,{children:[t.jsx(F,{icon:"circle-info",iconColor:b.palette.gray[400],iconSize:"xxs",iconType:"fa-light"}),t.jsx(I,{color:b.palette.gray[400],display:"inline-block",size:"sm",children:o})]}),a&&d==="down"?t.jsx(K,{href:a,children:r}):void 0]}):void 0]})},ke=({className:e,children:n,isFilter:i=!1,popoverRef:a,state:r,triggerRef:o,...l})=>{var u;const c=x.useRef(null),d=(u=o==null?void 0:o.current)==null?void 0:u.getBoundingClientRect(),{popoverProps:g}=s.$f2f8a6077418541e$export$542a6fd13ac93354({...l,popoverRef:a??c,triggerRef:o,isNonModal:a?!0:void 0},r),p=x.useCallback(f=>{f.preventDefault()},[]);return t.jsx(s.$337b884510726a0d$export$c6fdb837b070b4ff,{children:t.jsx("div",{...g,className:e,id:"popover",onPointerDown:i?p:void 0,ref:a??c,style:{...g.style,...e==="dropdown"?{display:"flex",justifyContent:"center",width:d==null?void 0:d.width}:{}},children:n})})},bi=s.st.ul`
|
|
817
817
|
${({theme:e,$multiSelection:n})=>`
|
|
818
818
|
align-self: center;
|
|
819
819
|
background: ${e.palette.white};
|
|
@@ -844,7 +844,8 @@
|
|
|
844
844
|
line-height: ${e.spacing[1.25]};
|
|
845
845
|
padding: ${n?`${e.spacing[.125]} ${e.spacing[.75]}`:`${e.spacing[.25]} ${e.spacing[1]}`};
|
|
846
846
|
|
|
847
|
-
p, label {
|
|
847
|
+
a, p, label {
|
|
848
|
+
display: inline-flex;
|
|
848
849
|
overflow: hidden;
|
|
849
850
|
padding: ${n?e.spacing[.25]:"0"};
|
|
850
851
|
width: 100%;
|
|
@@ -947,7 +948,7 @@
|
|
|
947
948
|
fill: ${e.palette.white};
|
|
948
949
|
}
|
|
949
950
|
`}
|
|
950
|
-
`,ne=x.forwardRef(function({checked:n,disabled:i=!1,label:a,name:r,onChange:o,onClick:l,onFocus:c,onKeyDown:d,tooltip:g,value:p,...u},f){return t.jsxs("div",{className:"gap-1 inline-flex items-start",children:[t.jsxs($i,{"aria-disabled":i,children:[t.jsx("input",{"aria-checked":n,"aria-disabled":i,"aria-hidden":!1,"aria-label":r,checked:n,"data-testid":a??p,disabled:i,id:r,name:r,onChange:o,onClick:l,onFocus:c,onKeyDown:d,ref:f,type:"checkbox",value:p,...u}),t.jsx(F,{disabled:i,icon:"check",iconSize:"sm"}),a??p]}),g===void 0?void 0:t.jsx(G,{icon:"circle-info",id:g,place:"right",tip:g})]})}),ie=(e,n,i=!1,a)=>{x.useEffect(()=>{var o;const r=l=>{e&&!e.contains(l.target)&&!(a!=null&&a.contains(l.target))&&n()};return i?(document.addEventListener("mousedown",r,!0),()=>{document.removeEventListener("mousedown",r,!0)}):((o=document.getElementById("root"))==null||o.addEventListener("mousedown",r,!0),()=>{var l;(l=document.getElementById("root"))==null||l.removeEventListener("mousedown",r,!0)})},[i,e,a,n])},Ct=({item:e,multiSelection:n,name:i,register:a,setInputValue:r,setValue:o,state:l,watch:c})=>{var C,E,z;const d=s.Je(),g=x.useRef(null),p=l.disabledKeys,u=Array.from(l.collection.getKeys()).filter(S=>!Array.from(p).includes(S)&&S!=="All"),{optionProps:f,isSelected:h,isFocused:b,isDisabled:y}=s.$293f70390ea03370$export$497855f14858aa34({key:e.key},l,g),m=[h?"selected":"",b?"focused":"",y?"disabled":""].join(" "),j=x.useCallback(S=>{r(""),o==null||o(`${i}Options`,""),S.currentTarget.checked&&(r(S.currentTarget.value),o==null||o(`${i}Options`,u))},[u,i,r,o]),w=x.useCallback(()=>{const S=c==null?void 0:c(`${i}Options`),N=typeof S=="string"?[S]:S;s.isEqual(u,N)&&!Array.from(p).includes("All")?(o==null||o("checkAll","All vulnerability types"),r("All vulnerability types")):(o==null||o("checkAll",""),r((N==null?void 0:N.length)<=2?N.join(", "):`${N.slice(0,2).join(", ")+`, +${N.length-2} more`}`))},[p,u,i,r,o,c]),v=e.key==="All"?t.jsx(ne,{...a==null?void 0:a("checkAll",{onChange:j}),label:(C=e.rendered)==null?void 0:C.toString(),name:"checkAll",value:(E=e.rendered)==null?void 0:E.toString()}):t.jsx(ne,{...a==null?void 0:a(`${i}Options`,{onChange:w}),label:(z=e.rendered)==null?void 0:z.toString(),name:`${i}Options`,value:e.key.toString()}),k=n&&!y?v:t.jsx(I,{color:d.palette.gray[800],size:"sm",textOverflow:"ellipsis",whiteSpace:"nowrap",children:e.rendered});return ie(document.getElementsByClassName("dropdown")[0],()=>{n&&l.close()},!0,document.getElementById("combobox")),t.jsxs(yi,{...n?{}:f,$multiSelection:n,className:m,ref:g,children:[k,h&&!y&&!n?t.jsx(F,{icon:"check",iconSize:"xxs",iconType:"fa-light"}):void 0,e.rendered===e.textValue?void 0:t.jsx(V,{tagLabel:e.textValue,variant:"inactive"})]})},Be=({field:e,disabled:n=!1,disabledKeys:i,error:a,helpLink:r,helpLinkText:o,helpText:l,label:c,loadingItems:d,name:g,multiSelection:p=!1,items:u,onBlur:f,onChange:h,placeholder:b,register:y,required:m,setValue:j,tooltip:w,value:v,watch:k,weight:C})=>{var st;const E=s.Je(),z=n?void 0:a,S=(e==null?void 0:e.value)??v,[N,R]=x.useState(((st=u.find(
|
|
951
|
+
`,ne=x.forwardRef(function({checked:n,disabled:i=!1,label:a,name:r,onChange:o,onClick:l,onFocus:c,onKeyDown:d,tooltip:g,value:p,...u},f){return t.jsxs("div",{className:"gap-1 inline-flex items-start",children:[t.jsxs($i,{"aria-disabled":i,children:[t.jsx("input",{"aria-checked":n,"aria-disabled":i,"aria-hidden":!1,"aria-label":r,checked:n,"data-testid":a??p,disabled:i,id:r,name:r,onChange:o,onClick:l,onFocus:c,onKeyDown:d,ref:f,type:"checkbox",value:p,...u}),t.jsx(F,{disabled:i,icon:"check",iconSize:"sm"}),a??p]}),g===void 0?void 0:t.jsx(G,{icon:"circle-info",id:g,place:"right",tip:g})]})}),ie=(e,n,i=!1,a)=>{x.useEffect(()=>{var o;const r=l=>{e&&!e.contains(l.target)&&!(a!=null&&a.contains(l.target))&&n()};return i?(document.addEventListener("mousedown",r,!0),()=>{document.removeEventListener("mousedown",r,!0)}):((o=document.getElementById("root"))==null||o.addEventListener("mousedown",r,!0),()=>{var l;(l=document.getElementById("root"))==null||l.removeEventListener("mousedown",r,!0)})},[i,e,a,n])},Ct=({item:e,multiSelection:n,name:i,register:a,setInputValue:r,setValue:o,state:l,watch:c})=>{var C,E,z;const d=s.Je(),g=x.useRef(null),p=l.disabledKeys,u=Array.from(l.collection.getKeys()).filter(S=>!Array.from(p).includes(S)&&S!=="All"),{optionProps:f,isSelected:h,isFocused:b,isDisabled:y}=s.$293f70390ea03370$export$497855f14858aa34({key:e.key},l,g),m=[h?"selected":"",b?"focused":"",y?"disabled":""].join(" "),j=x.useCallback(S=>{r(""),o==null||o(`${i}Options`,""),S.currentTarget.checked&&(r(S.currentTarget.value),o==null||o(`${i}Options`,u))},[u,i,r,o]),w=x.useCallback(()=>{const S=c==null?void 0:c(`${i}Options`),N=typeof S=="string"?[S]:S;s.isEqual(u,N)&&!Array.from(p).includes("All")?(o==null||o("checkAll","All vulnerability types"),r("All vulnerability types")):(o==null||o("checkAll",""),r((N==null?void 0:N.length)<=2?N.join(", "):`${N.slice(0,2).join(", ")+`, +${N.length-2} more`}`))},[p,u,i,r,o,c]),v=e.key==="All"?t.jsx(ne,{...a==null?void 0:a("checkAll",{onChange:j}),label:(C=e.rendered)==null?void 0:C.toString(),name:"checkAll",value:(E=e.rendered)==null?void 0:E.toString()}):t.jsx(ne,{...a==null?void 0:a(`${i}Options`,{onChange:w}),label:(z=e.rendered)==null?void 0:z.toString(),name:`${i}Options`,value:e.key.toString()}),k=n&&!y?v:t.jsx(I,{color:d.palette.gray[800],size:"sm",textOverflow:"ellipsis",whiteSpace:"nowrap",children:e.rendered});return ie(document.getElementsByClassName("dropdown")[0],()=>{n&&l.close()},!0,document.getElementById("combobox")),t.jsxs(yi,{...n?{}:f,$multiSelection:n,className:m,ref:g,children:[e.props.hrefLang?t.jsx(K,{href:e.props.hrefLang,target:"_blank",children:k}):k,h&&!y&&!n?t.jsx(F,{icon:"check",iconSize:"xxs",iconType:"fa-light"}):void 0,e.rendered===e.textValue?void 0:t.jsx(V,{tagLabel:e.textValue,variant:"inactive"})]})},Be=({field:e,disabled:n=!1,disabledKeys:i,error:a,helpLink:r,helpLinkText:o,helpText:l,label:c,loadingItems:d,name:g,multiSelection:p=!1,items:u,onBlur:f,onChange:h,placeholder:b,register:y,required:m,setValue:j,tooltip:w,value:v,watch:k,weight:C})=>{var st;const E=s.Je(),z=n?void 0:a,S=(e==null?void 0:e.value)??v,[N,R]=x.useState(((st=u.find(L=>L.value===S))==null?void 0:st.name)??""),[A,Y]=x.useState(S),[X,te]=x.useState(u),[W,H]=x.useState(!1),{contains:B}=s.$bb77f239b46e8c72$export$3274cf84b703fff({sensitivity:"base"}),oe=x.useRef(null),Ae=x.useRef(null),Pe=x.useRef(null),at=x.useRef(null),rt=x.useRef(null),hn=x.useMemo(()=>u.toSorted((L,M)=>{const _=Array.from(i??[]),se=_.includes(L.value),lt=_.includes(M.value);return se&&!lt?1:!se&<?-1:0}).map(L=>B(L.name,N)||W?t.jsx(s.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,{"aria-label":L.value,hrefLang:L.href,textValue:L.tag,children:L.name},L.value):null),[B,i,N,u,W]),bn=x.useCallback(L=>{const M=L.split(/,|\s/u).slice(-1)[0].trim();R(p?M:L),L===""||L.endsWith(",")?H(!0):(H(!1),Y(_=>{const se=L===""?"":_;return e&&e.onChange(se),h&&h(L),se}),te(u.filter(_=>B(_.name,p?M:L))))},[B,u,e,p,h]),yn=x.useCallback(L=>{var M;R(((M=u.find(_=>_.value===L))==null?void 0:M.name)??""),Y(L?String(L):""),e&&e.onChange(L),h&&h(L?String(L):""),te(u)},[u,e,h]),ot=x.useCallback(L=>{L.key==="Enter"&&L.preventDefault(),H(!1)},[]),$n=x.useCallback(()=>{f&&f(),e&&e.onBlur()},[e,f]),mn=x.useCallback(()=>{H(!0)},[]),Z=s.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({allowsCustomValue:p,allowsEmptyCollection:!0,disabledKeys:i,inputValue:N,items:X,menuTrigger:"focus",shouldCloseOnBlur:!p,selectedKey:A,onBlur:$n,onInputChange:bn,onKeyDown:ot,onKeyUp:mn,onOpenChange(L,M){H(L&&(M==="manual"||M==="focus")),L&&setTimeout(()=>{var _;return(_=oe.current)==null?void 0:_.focus()},50)},onSelectionChange:p?void 0:yn,children:hn}),{buttonProps:wn,inputProps:jn,listBoxProps:vn}=s.$c350ade66beef0af$export$8c18d1b4f7232bbf({inputValue:N,buttonRef:Ae,id:g,inputRef:oe,label:c??g,listBoxRef:Pe,name:g,placeholder:b,popoverRef:rt},Z),{listBoxProps:kn}=s.$c132121280ec012d$export$50eacbbf140a3141(vn,Z,Pe),{buttonProps:Cn}=s.$701a24aa0da5b062$export$ea18c227d4417cc3(wn,Ae);return x.useEffect(()=>{var L;if((d===!1||!S)&&!p){const M=((L=u.find(_=>_.value===S))==null?void 0:L.name)??"";R(M),Y(M)}},[S,u,d,p]),t.jsxs(J,{error:z,helpLink:r,helpLinkText:o,helpText:l,htmlFor:g,id:"combobox",label:c,required:m,tooltip:w,weight:C,children:[t.jsxs(ee,{className:`${n?"disabled":""} ${z?"error":""}`,ref:at,children:[t.jsx("input",{...jn,"aria-invalid":z?"true":"false","aria-label":g,disabled:n,onKeyDown:ot,ref:oe}),z?t.jsx(F,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:E.palette.error[500],iconSize:"xs"}):void 0,t.jsx(O,{...Cn,className:"action",disabled:n,icon:Z.isOpen&&!n?"chevron-up":"chevron-down",iconColor:E.palette.gray[400],iconSize:"xxs",iconType:"fa-light",px:.125,py:.125,ref:Ae,type:"button",variant:"ghost"})]}),Z.isOpen&&Z.collection.size>0&&!n?t.jsx(ke,{className:"dropdown",offset:4,placement:"bottom start",popoverRef:rt,state:Z,triggerRef:at,children:t.jsx(bi,{...kn,$multiSelection:p&&!Array.from(i??[]).includes("All"),ref:Pe,children:[...Z.collection].map(L=>t.jsx(Ct,{item:L,multiSelection:p,name:g,register:y,setInputValue:R,setValue:j,state:Z,watch:k},L.key))})}):null]})},Xe=({control:e,disabled:n=!1,disabledKeys:i,error:a,helpLink:r,helpLinkText:o,helpText:l,label:c,loadingItems:d,name:g,multiSelection:p,items:u,onBlur:f,onChange:h,placeholder:b,register:y,required:m,setValue:j,tooltip:w,value:v,watch:k,weight:C})=>e?t.jsx(s.Controller,{control:e,name:g,render:({field:E,fieldState:z})=>{var S;return t.jsx(Be,{disabled:n,disabledKeys:i,error:(S=z.error)==null?void 0:S.message,field:E,helpLink:r,helpLinkText:o,helpText:l,items:u,label:c,loadingItems:d,multiSelection:p,name:g,onBlur:f,onChange:h,placeholder:b,register:y,required:m,setValue:j,tooltip:w,value:v,watch:k,weight:C})},rules:{required:m}}):t.jsx(Be,{disabled:n,disabledKeys:i,error:a,helpLink:r,helpLinkText:o,helpText:l,items:u,label:c,loadingItems:d,multiSelection:p,name:g,onBlur:f,onChange:h,placeholder:b,required:m,tooltip:w,value:v,weight:C}),mi=s.st.div`
|
|
951
952
|
${({theme:e})=>`
|
|
952
953
|
align-items: center;
|
|
953
954
|
color: ${e.palette.gray[800]};
|
|
@@ -1205,9 +1206,9 @@
|
|
|
1205
1206
|
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1206
1207
|
justify-content: flex-end;
|
|
1207
1208
|
flex: 1 0 0;
|
|
1208
|
-
`,
|
|
1209
|
-
${e?"disabled":""} ${
|
|
1210
|
-
`,children:[n?t.jsx(F,{icon:"user",iconSize:"sm",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":
|
|
1209
|
+
`,Lt=({handleTimeChange:e,onClose:n,props:i,timeState:a})=>{const r=s.Je(),{locale:o}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),l=s.$131cf43a05231e1e$export$6d095e787d2b5e1f({...i,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:o}),{prevButtonProps:c,nextButtonProps:d,title:g}=s.$9942cad8a072a530$export$3ee915f8151bd4f1(i,l);return t.jsxs("div",{className:"calendar",children:[t.jsx(Ee,{nextButtonProps:d,prevButtonProps:c,state:l,title:g}),t.jsx(De,{state:l}),t.jsxs(Di,{children:[t.jsx(I,{color:r.palette.gray[800],fontWeight:"bold",size:"sm",children:"Time"}),t.jsx(Ei,{children:t.jsx(Nt,{hourCycle:12,label:"time-field",onChange:e,value:a.timeValue})})]}),t.jsx(Ze,{children:t.jsx(P,{onClick:n,variant:"ghost",children:"Cancel"})})]})},Ri=e=>{const{disabled:n=!1,error:i,required:a,label:r,name:o,tooltip:l,register:c,setValue:d,watch:g}=e,p=g==null?void 0:g(o),u=x.useRef(null),f=s.$ab5bf3f618090389$export$87194bb378cc3ac2({...e,granularity:"minute",hourCycle:12,isDisabled:n,isRequired:a,shouldCloseOnSelect:!1,value:s._.isNil(p)||s._.isEmpty(p)||p==="-"||s.dayjs(p,"YYYY/MM/DD hh:mm A").isValid()===!1?null:s.$fae977aafc393c5c$export$588937bcd60ade55(s.dayjs(p,"YYYY/MM/DD hh:mm A").format("YYYY-MM-DDTHH:mm:ss"))}),{close:h}=f,{groupProps:b,fieldProps:y,buttonProps:m,dialogProps:j,calendarProps:w}=s.$6057a3d2a53a12fd$export$42df105a73306d51(e,f,u),v=x.useCallback(C=>{if(w.onChange&&w.onChange(C),f.timeValue){const E=ft(C,f.timeValue);d==null||d(o,E,{shouldDirty:!0})}else f.setDateValue(C)},[w,o,d,f]),k=x.useCallback(C=>{if(C){f.setTimeValue(C);const E=f.dateValue;if(E){const z=ft(E,C);d==null||d(o,z,{shouldDirty:!0})}}},[f,d,o]);return t.jsxs(J,{error:i,htmlFor:o,label:r,required:a,tooltip:l,children:[t.jsx(ge,{buttonProps:m,datePickerRef:u,disabled:n,error:i,fieldProps:y,granularity:"minute",groupProps:b,name:o,register:c,setValue:d,value:p}),f.isOpen&&!n?t.jsx(ke,{offset:8,placement:"bottom start",state:f,triggerRef:u,children:t.jsx(Re,{...j,children:t.jsx(Lt,{handleTimeChange:k,onClose:h,props:{...w,onChange:v},timeState:f})})}):null]})},Li=({children:e,currentValue:n,externalLink:i,isEditing:a,label:r,name:o,tooltip:l})=>{if(a)return t.jsx("div",{children:e});const c=s.lodashExports.isNil(n)?"":n,d=String(i??c);return t.jsxs($,{children:[t.jsx(Ke,{htmlFor:o,label:r,tooltip:l,weight:"bold"}),d.startsWith("https://")?t.jsx(K,{href:d,children:c}):t.jsx(I,{size:"md",children:c})]})},Le=({disabled:e=!1,hasIcon:n=!1,helpLink:i,helpLinkText:a,helpText:r,error:o,id:l,indexArray:c=0,isValid:d,isTouched:g,label:p,linkPosition:u,name:f,maskValue:h=!1,onPaste:b,placeholder:y,removeItemArray:m,register:j,suggestions:w,tooltip:v,type:k="text",weight:C,...E})=>{const{required:z,onBlur:S,onChange:N}=E,R=s.Je(),A=e?void 0:o,[Y,X]=x.useState(""),te=x.useCallback(B=>{X(B.target.value),N==null||N(B)},[N]),W=d&&g&&!e&&Y.trim()!=="",H=x.useCallback(B=>{B.key==="Enter"&&B.preventDefault()},[]);return t.jsxs(J,{error:A,helpLink:i,helpLinkText:a,helpText:r,htmlFor:f,label:p,linkPosition:u,required:z,tooltip:v,weight:C,children:[t.jsxs(ee,{className:`
|
|
1210
|
+
${e?"disabled":""} ${A?"error":""} ${W?"success":""}
|
|
1211
|
+
`,children:[n?t.jsx(F,{icon:"user",iconSize:"sm",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":A?"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:b,placeholder:y,type:k,...j?j(f,{required:z,onBlur:S,onChange:te}):{...E,onChange:te}}),A?t.jsx(F,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:R.palette.error[500],iconSize:"xs"}):void 0,W?t.jsx(F,{icon:"check-circle",iconClass:"success-icon",iconColor:R.palette.success[500],iconSize:"xs"}):void 0,l==="array"&&c>0?t.jsx(O,{color:R.palette.gray[400],icon:"trash",iconSize:"xxs",iconType:"fa-light",onClick:m?m(c):void 0,variant:"ghost"}):void 0]}),w?t.jsx("datalist",{id:`list_${f}`,children:w.map(B=>t.jsx("option",{value:B},B))}):void 0]})},Ai=s.st.div.attrs({className:"flex flex-wrap justify-center pv3 w-100"})``,Pi=s.st.div.attrs({className:"flex flex-wrap items-center justify-start mb2"})`
|
|
1211
1212
|
gap: 12px;
|
|
1212
1213
|
`,Wi=s.st.div.attrs({className:"flex flex-wrap items-center justify-end mb2"})`
|
|
1213
1214
|
gap: 8px;
|
|
@@ -1263,7 +1264,7 @@
|
|
|
1263
1264
|
padding: ${i}px;
|
|
1264
1265
|
}
|
|
1265
1266
|
`}
|
|
1266
|
-
`,
|
|
1267
|
+
`,At=({align:e,children:n,cols:i,colsPadding:a,justify:r})=>t.jsx(Mi,{$align:e,$cols:i,$colsPadding:a,$justify:r,children:n}),He=({addText:e,append:n,disabled:i=!1,fields:a,fieldState:r,initValue:o="",index:l=0,required:c,label:d,max:g=100,name:p,onBlur:u,onChange:f,placeholder:h,tooltip:b,remove:y,value:m})=>{var v;const j=x.useCallback(()=>{n==null||n(o)},[n,o]),w=x.useCallback(k=>()=>{y==null||y(k)},[y]);return t.jsxs(At,{align:"start",children:[t.jsx(Oe,{lg:75,md:75,sm:75,children:t.jsx(Le,{disabled:i,error:r?(v=r.error)==null?void 0:v.message:void 0,id:"array",indexArray:l,isTouched:r?r.isTouched:void 0,isValid:r?!r.invalid:void 0,label:d,name:p,onBlur:u,onChange:f,placeholder:h,removeItemArray:w,required:c,tooltip:b,value:m})}),l<g-1&&l+1===(a==null?void 0:a.length)?t.jsx(Oe,{lg:25,md:25,sm:25,children:t.jsx(P,{disabled:i,icon:"plus",onClick:j,variant:"ghost",width:"100%",children:e??"Add"})}):void 0]})},_i=({addText:e,append:n,control:i,disabled:a,fields:r,initValue:o="",required:l,label:c,max:d=void 0,name:g="array-field",onChange:p,placeholder:u,remove:f,tooltip:h})=>i&&r?t.jsx(x.Fragment,{children:r.map((b,y)=>t.jsx(s.Controller,{control:i,name:`${g}.${y}`,render:({field:m,fieldState:j})=>t.jsx(He,{addText:e,append:n,disabled:a,fieldState:j,fields:r,index:y,initValue:o,label:c,max:d,name:m.name,onBlur:m.onBlur,onChange:p??m.onChange,placeholder:u,remove:f,required:l,tooltip:h,value:typeof m.value=="object"?m.value.value:m.value}),index:y},b.id))}):t.jsx(He,{addText:e,disabled:a,initValue:o,label:c,max:d,name:g,onChange:p,placeholder:u,required:l,tooltip:h}),Ji=s.st(mt)`
|
|
1267
1268
|
white-space: nowrap;
|
|
1268
1269
|
margin-right: ${({theme:e})=>e.spacing[.25]};
|
|
1269
1270
|
text-overflow: ellipsis;
|
|
@@ -1274,13 +1275,13 @@
|
|
|
1274
1275
|
position: absolute;
|
|
1275
1276
|
visibility: hidden;
|
|
1276
1277
|
width: 0;
|
|
1277
|
-
`,ue=(e,n,i)=>{const a=new Event(e);return Object.defineProperty(a,"target",{value:{name:n,value:i}}),a},Gi=e=>{const n=e;return n?Array.from(n).map(i=>i.name).join(", "):""},Vi=({accept:e,disabled:n=!1,error:i,label:a,helpLink:r,helpText:o,id:l,multiple:c,name:d,onChange:g,required:p,register:u,setValue:f,tooltip:h,watch:b,weight:y})=>{const m=s.Je(),j=n?void 0:i,w=x.useRef(null),v=u==null?void 0:u(d,{required:p}),k=b==null?void 0:b(d),C=Gi(k),E=x.useCallback(()=>{const N=ue("change",d,void 0);f&&f(d,void 0),v&&v.onChange(N)},[v,d,f]),z=x.useCallback(N=>{const{files:R}=N.currentTarget,
|
|
1278
|
+
`,ue=(e,n,i)=>{const a=new Event(e);return Object.defineProperty(a,"target",{value:{name:n,value:i}}),a},Gi=e=>{const n=e;return n?Array.from(n).map(i=>i.name).join(", "):""},Vi=({accept:e,disabled:n=!1,error:i,label:a,helpLink:r,helpText:o,id:l,multiple:c,name:d,onChange:g,required:p,register:u,setValue:f,tooltip:h,watch:b,weight:y})=>{const m=s.Je(),j=n?void 0:i,w=x.useRef(null),v=u==null?void 0:u(d,{required:p}),k=b==null?void 0:b(d),C=Gi(k),E=x.useCallback(()=>{const N=ue("change",d,void 0);f&&f(d,void 0),v&&v.onChange(N)},[v,d,f]),z=x.useCallback(N=>{const{files:R}=N.currentTarget,A=ue("change",d,R&&R.length>0?R:void 0);R&&R.length>0&&(g==null||g(A),f&&f(d,R),v&&v.onChange(A))},[v,d,g,f]),S=x.useCallback(N=>{n?N.preventDefault():w.current&&w.current.click()},[n]);return t.jsxs(J,{error:j,helpLink:r,helpText:o,htmlFor:l??d,label:a,required:p,tooltip:h,weight:y,children:[t.jsxs(ee,{className:`${n?"disabled":""} ${j?"error":""}`,children:[t.jsx(Ji,{$size:"xs",children:C}),t.jsxs($,{alignItems:"center",display:"flex",gap:.625,children:[s.lodashExports.isEmpty(C)?void 0:t.jsx(O,{color:m.palette.gray[400],height:"20px",icon:"xmark",iconSize:"lg",iconType:"fa-light",onClick:E,variant:"ghost",width:"20px"}),j&&t.jsx(F,{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:S,variant:"primary",width:"96px",children:[t.jsx(F,{icon:"search",iconSize:"sm",mr:.5}),"Add file"]})]})]}),t.jsx(Ui,{...v,accept:e,"aria-label":d,"data-testid":d,disabled:n,id:l??d,multiple:c,name:d,onChange:z,ref:w,type:"file"})]})},Yi=s.st.input`
|
|
1278
1279
|
border: none;
|
|
1279
1280
|
background: transparent;
|
|
1280
1281
|
min-width: 15rem;
|
|
1281
1282
|
padding: 0;
|
|
1282
1283
|
flex: 1;
|
|
1283
|
-
`,Me=({disabled:e=!1,error:n,field:i,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:g,placeholder:p,required:u,tooltip:f,value:h,weight:b})=>{const y=s.Je(),m=e?void 0:n,[j,w]=x.useState(""),v=d?h:i==null?void 0:i.value,k=x.useMemo(()=>v&&typeof v=="string"?v.split(",").filter(Boolean):[],[v]),C=x.useCallback(R=>{const Y=[...new Set(R.filter(Boolean))].join(","),
|
|
1284
|
+
`,Me=({disabled:e=!1,error:n,field:i,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:g,placeholder:p,required:u,tooltip:f,value:h,weight:b})=>{const y=s.Je(),m=e?void 0:n,[j,w]=x.useState(""),v=d?h:i==null?void 0:i.value,k=x.useMemo(()=>v&&typeof v=="string"?v.split(",").filter(Boolean):[],[v]),C=x.useCallback(R=>{const Y=[...new Set(R.filter(Boolean))].join(","),X=ue("change",c,Y);i&&i.onChange(X),d&&d(X)},[i,c,d]),E=x.useCallback(R=>{w(R.target.value)},[]),z=x.useCallback(R=>{const A=j.trim();A.length&&!k.includes(A)&&(R.preventDefault(),C([...k,A]),w("")),i&&i.onBlur()},[j,i,C,k]),S=x.useCallback(R=>{const A=j.trim();R.key==="Enter"&&A.length===0&&R.preventDefault(),["Enter",","].includes(R.key)&&A.length>0&&!k.includes(A)?(R.preventDefault(),C([...k,A]),w("")):R.key==="Backspace"&&!A.length&&k.length&&(R.preventDefault(),g==null||g(k[k.length-1]),C(k.slice(0,-1)))},[j,g,C,k]),N=x.useCallback(R=>()=>{g==null||g(R),C(k.filter(A=>A!==R))},[g,C,k]);return t.jsx(J,{error:m,helpLink:a,helpLinkText:r,helpText:o,htmlFor:c,label:l,required:u,tooltip:f,weight:b,children:t.jsxs(ee,{$overflowX:"auto",className:`${e?"disabled":""} ${m?"error":""}`,children:[k.map(R=>t.jsx(V,{disabled:e,onClose:N(R),tagLabel:R},R)),t.jsx(Yi,{"aria-hidden":!1,"aria-invalid":m?"true":"false","aria-label":c,"aria-required":u,autoComplete:"off",id:c,onBlur:z,onChange:E,onKeyDown:S,placeholder:k.length===0?p:void 0,ref:i==null?void 0:i.ref,type:"text",value:j}),m?t.jsx(F,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:y.palette.error[500],iconSize:"xs"}):void 0]})})},qi=({disabled:e=!1,control:n,error:i,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:g,placeholder:p,required:u,tooltip:f,value:h,weight:b})=>n?t.jsx(s.Controller,{control:n,name:c,render:({field:y})=>t.jsx(Me,{disabled:e,error:i,field:y,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c,onRemove:g,placeholder:p,required:u,tooltip:f,weight:b}),rules:{required:u}}):t.jsx(Me,{disabled:e,error:i,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c,onChange:d,onRemove:g,placeholder:p,required:u,tooltip:f,value:h,weight:b}),_e=x.forwardRef(function({disabled:n,icon:i,margin:a,onClick:r,...o},l){return t.jsx(Ci,{$margin:a,"aria-label":i,className:"action-btn",disabled:n,onClick:r,ref:l,type:"button",...o,children:t.jsx(F,{icon:i,iconClass:"action",iconSize:"xs",iconType:"fa-light"})})}),Fe=({error:e,decimalPlaces:n=0,disabled:i=!1,id:a,maxLength:r,max:o=1/0,min:l=0,name:c,onChange:d,placeholder:g,register:p,required:u,setValue:f,value:h})=>{const b=s.Je(),y=i?void 0:e,m=n<0?0:n,[j,w]=x.useState(h?s._.toNumber(h):0),v=x.useCallback(()=>{const z=(j-10**-m).toFixed(m),S=Math.max(Number(l),Number(z));f&&f(c,S,{shouldDirty:!0}),w(S);const N=ue("change",c,z);d&&d(N)},[j,m,l,f,c,d]),k=x.useCallback(()=>{const z=(j+10**-m).toFixed(m),S=Math.min(Number(o),Number(z)>Number(l)?Number(z):Number(l));f&&f(c,S,{shouldDirty:!0}),w(S);const N=ue("change",c,z);d&&d(N)},[j,m,o,l,f,c,d]),C=x.useCallback(z=>{const{value:S}=z.target,N=/\d+/u.test(S)&&!s._.isEmpty(S);f&&f(c,N?S:void 0),d&&d(z),w(Number(S))},[c,d,f]),E=x.useCallback(z=>{z.key==="Enter"&&z.preventDefault()},[]);return t.jsxs(ee,{className:`${i?"disabled":""} ${y?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":y?"true":"false","aria-label":c,"aria-required":u,autoComplete:"off",disabled:i,id:a??c,max:o,min:l,onChange:C,onKeyDown:E,placeholder:g,required:u,step:10**-m,type:"number",value:j,...p==null?void 0:p(c,{maxLength:r,max:o,min:l,onChange:C,value:h,valueAsNumber:!0})}),y&&t.jsx(F,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:b.palette.error[500],iconSize:"xs"}),t.jsx(_e,{borderLeft:"inherit",borderRight:"inherit",disabled:i,icon:"minus",margin:"0 -0.625rem 0 0",onClick:v,px:.75,py:.75}),t.jsx(_e,{borderRadius:`0 ${b.spacing[.5]} ${b.spacing[.5]} 0`,disabled:i,icon:"plus",onClick:k,px:.75,py:.75})]})},Pt=({decimalPlaces:e,disabled:n=!1,error:i,helpLink:a,helpText:r,id:o,label:l,linkPosition:c,maxLength:d,max:g,min:p,name:u,onChange:f,placeholder:h,register:b,required:y,setValue:m,tooltip:j,value:w,watch:v,weight:k})=>t.jsx(J,{error:n?void 0:i,helpLink:a,helpText:r,htmlFor:u,label:l,linkPosition:c,maxLength:d,required:y,tooltip:j,weight:k,children:t.jsx(Fe,{decimalPlaces:e,disabled:n,error:i,id:o,max:g,maxLength:d,min:p,name:u,onChange:f,placeholder:h,register:b,required:y,setValue:m,value:v?v(u):w})}),Wt=({disabled:e=!1,error:n,name:i,label:a,propsMax:r,propsMin:o,required:l,tooltip:c,variant:d="default"})=>{const g=`${i}Max`,p=`${i}Min`;return t.jsx(J,{error:n,htmlFor:i,label:a,required:l,tooltip:c,children:t.jsxs($,{display:"flex",flexDirection:d==="filters"?"column":"row",gap:.25,width:"100%",children:[t.jsx(Fe,{...o,disabled:e,error:n,name:(o==null?void 0:o.name)??p}),t.jsx(Fe,{...r,disabled:e,error:n,name:(r==null?void 0:r.name)??g})]})})},Ki=s.st.div`
|
|
1284
1285
|
${({theme:e})=>`
|
|
1285
1286
|
align-items: flex-start;
|
|
1286
1287
|
align-self: stretch;
|
|
@@ -1374,15 +1375,15 @@
|
|
|
1374
1375
|
overflow: hidden;
|
|
1375
1376
|
text-overflow: ellipsis;
|
|
1376
1377
|
white-space: nowrap;
|
|
1377
|
-
`,ta=({disabled:e,error:n,label:i,name:a,placeholder:r,required:o,register:l,tooltip:c,value:d,watch:g,weight:p})=>{const u=s.Je(),f=x.useRef(null),h=e?void 0:n,b=(g==null?void 0:g(a))??d,[y,m]=x.useState(!1),[j,w]=x.useState(""),{refs:v,floatingStyles:k}=s.useFloating$1({placement:"bottom-start",whileElementsMounted:s.autoUpdate}),{inputRef:C,inputValue:E,handlePhoneValueChange:z,country:S,setCountry:N}=s.ee({countries:s.R,defaultCountry:"co",forceDialCode:!0,value:b?String(b):""}),R=x.useCallback(W=>{W.key==="Enter"&&W.preventDefault()},[]),
|
|
1378
|
+
`,ta=({disabled:e,error:n,label:i,name:a,placeholder:r,required:o,register:l,tooltip:c,value:d,watch:g,weight:p})=>{const u=s.Je(),f=x.useRef(null),h=e?void 0:n,b=(g==null?void 0:g(a))??d,[y,m]=x.useState(!1),[j,w]=x.useState(""),{refs:v,floatingStyles:k}=s.useFloating$1({placement:"bottom-start",whileElementsMounted:s.autoUpdate}),{inputRef:C,inputValue:E,handlePhoneValueChange:z,country:S,setCountry:N}=s.ee({countries:s.R,defaultCountry:"co",forceDialCode:!0,value:b?String(b):""}),R=x.useCallback(W=>{W.key==="Enter"&&W.preventDefault()},[]),A=x.useCallback(W=>{W.preventDefault(),m(H=>!H),y||w("")},[y]),Y=x.useCallback(W=>()=>{N(W),m(!1),w("")},[N,m]),X=x.useCallback(W=>{W.key.length===1?w(H=>H+W.key):W.key==="Backspace"&&w(H=>H.slice(0,-1))},[]),te=s.R.filter(W=>{const{name:H}=s.M(W);return H.toLowerCase().includes(j.toLowerCase())});return ie(v.floating.current,()=>{m(!1),w("")},!0),t.jsx(J,{error:h,htmlFor:a,label:i,required:o,tooltip:c,weight:p,children:t.jsxs(Ki,{className:`${e?"disabled":""} ${h?"error":""}`,ref:f,children:[t.jsxs(Xi,{"aria-label":"country-selector","data-testid":"country-selector",disabled:e,id:"country-selector",onClick:A,onKeyDown:X,ref:v.setReference,children:[t.jsx(s.q,{iso2:S.iso2,size:"16px"}),t.jsx(F,{icon:"angle-down",iconColor:u.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(ee,{className:`${e?"disabled":""} ${h?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":h?"true":"false","aria-label":a,"aria-required":o,autoComplete:"off","data-testid":`${a}-input`,disabled:e,id:a,name:a,onKeyDown:R,placeholder:r,ref:C,type:"tel",value:E,...l==null?void 0:l(a,{required:o,onChange:z})}),h?t.jsx(F,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:u.palette.error[500],iconSize:"xs"}):void 0]}),y&&re.createPortal(t.jsx(Zi,{ref:v.setFloating,style:k,children:te.map(W=>{const{dialCode:H,iso2:B,name:oe}=s.M(W);return t.jsxs(Qi,{onClick:Y(B),value:B,children:[t.jsx(s.q,{iso2:B,size:"16px"}),t.jsx(ea,{children:oe}),t.jsx(I,{color:u.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+H})]},B)})}),document.getElementById("modal-wrapper")??document.getElementById("root")??document.body)]})})},na=({disabled:e=!1,error:n,helpLink:i,helpText:a,isTouched:r,isValid:o,label:l,name:c="input-text",id:d,maskValue:g=!1,maxLength:p,onBlur:u,placeholder:f,register:h,required:b,rows:y,tooltip:m,watch:j,weight:w,value:v})=>{const k=s.Je(),C=(j==null?void 0:j(c))??v,E=o&&r&&!e,z=e?void 0:n;return t.jsx(J,{error:z,helpLink:i,helpText:a,htmlFor:c,label:l,maxLength:p,required:b,tooltip:m,value:C?String(C):void 0,weight:w,children:t.jsxs(ee,{className:`
|
|
1378
1379
|
${e?"disabled":""} ${z?"error":""} ${E?"success":""}
|
|
1379
|
-
`,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":z?"true":"false","aria-label":c,"aria-required":b,className:g?"sr-block":"","data-testid":`${c}-text-area`,disabled:e,id:d??c,maxLength:p,placeholder:f,rows:y,value:C,...h==null?void 0:h(c,{required:b,onBlur:u})}),z?t.jsx(F,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:k.palette.error[500],iconSize:"xs"}):void 0,E?t.jsx(F,{icon:"check-circle",iconClass:"success-icon",iconColor:k.palette.success[500],iconSize:"xs"}):void 0]})})},ia=({control:e,description:n,disabled:i,id:a,items:r,align:o,inputType:l="text",inputNumberProps:c,minHeight:d,minWidth:g,name:p,placeholder:u,
|
|
1380
|
+
`,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":z?"true":"false","aria-label":c,"aria-required":b,className:g?"sr-block":"","data-testid":`${c}-text-area`,disabled:e,id:d??c,maxLength:p,placeholder:f,rows:y,value:C,...h==null?void 0:h(c,{required:b,onBlur:u})}),z?t.jsx(F,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:k.palette.error[500],iconSize:"xs"}):void 0,E?t.jsx(F,{icon:"check-circle",iconClass:"success-icon",iconColor:k.palette.success[500],iconSize:"xs"}):void 0]})})},ia=({control:e,description:n,disabled:i,id:a,items:r,align:o,inputType:l="text",inputNumberProps:c,minHeight:d,minWidth:g,name:p,placeholder:u,textAlign:f,tooltip:h,title:b,value:y,isTouched:m,isValid:j,error:w,onChange:v,register:k,setValue:C,watch:E})=>{const z=x.useMemo(()=>{if(l==="text")return t.jsx(Le,{disabled:i,error:w,isTouched:m,isValid:j,name:p,placeholder:u,register:k});if(l==="date")return t.jsx(Dt,{disabled:i,error:w,name:p,register:k,setValue:C,watch:E});if(l==="select"&&r)return t.jsx(Xe,{control:e,disabled:i,items:r,name:p,placeholder:u,value:y});const{decimalPlaces:S,max:N,min:R}=c??{};return t.jsx(Pt,{decimalPlaces:S,disabled:i,error:w,max:N,min:R,name:p,onChange:v,placeholder:u,register:k,setValue:C,value:y,watch:E})},[e,i,w,c,l,m,j,r,p,v,u,k,C,y,E]);return t.jsxs(fi,{$align:o,$minHeight:d,$minWidth:g,children:[t.jsx(Ne,{description:n,id:a,textAlign:f,title:b,tooltip:h}),z]})},aa=s.st.div`
|
|
1380
1381
|
display: flex;
|
|
1381
1382
|
align-self: flex-start;
|
|
1382
1383
|
margin-left: auto;
|
|
1383
1384
|
width: 40px;
|
|
1384
1385
|
height: auto;
|
|
1385
|
-
`,Bt=(e,n)=>{const[a,r]=x.useState(0),[o,l]=x.useState(0);return x.useEffect(()=>{o===100&&(()=>{r(d=>d===n-1?0:d+1)})()},[o,n]),x.useEffect(()=>{const c=setInterval(()=>{l(d=>d===100?0:d+1)},e);return()=>{clearInterval(c)}},[e]),{cycle:a,progress:o,setCycle:r,setProgress:l}},Ot=({publicId:e,format:n="webp"})=>{const i=x.useMemo(()=>new s.Cloudinary({cloud:{cloudName:"fluid-attacks"}}),[]);return x.useMemo(()=>i.image(e).format(n),[i,e,n])},Ce=e=>{const[n,i]=x.useState(!1),a=x.useCallback(()=>{i(!0)},[]),r=x.useCallback(()=>{i(!1)},[]),o=x.useCallback(()=>{i(l=>!l)},[]);return{close:r,isOpen:n,name:e,open:a,setIsOpen:i,toggle:o}},ra=({name:e,items:n,columnOrder:i,setColumnOrder:a})=>{const r=x.useMemo(()=>[...n.filter(({locked:p})=>p).map(({locked:p,...u})=>({...u,visible:!0,locked:p})),...n.filter(({locked:p})=>!p)],[n]),[o,l]=x.useState(r),c=x.useCallback(p=>{const u=p.filter(({locked:y})=>!y),h=[...p.filter(({locked:y})=>y),...u],b=h.map(({name:y})=>y);l(y=>[...h,...y.filter(({name:m})=>!b.includes(m))]),a&&a(h.map(({id:y})=>y))},[a]),d=x.useCallback(()=>{const p=o.map(u=>{var h;const f=(i==null?void 0:i.includes(u.id))??!1;return(h=u.toggleVisibility)==null||h.call(u,f),{...u,visible:f}}).toSorted((u,f)=>{const h=(i==null?void 0:i.indexOf(u.id))??0,b=(i==null?void 0:i.indexOf(f.id))??0;return Number(f.visible)!==Number(u.visible)?Number(f.visible)-Number(u.visible):h-b});l(p),a==null||a(i)},[o,i,a]),g=x.useMemo(()=>s.some(o,p=>((i==null?void 0:i.includes(p.id))??!1)!==p.visible),[o,i]);return{setColumns:c,resetToDefault:d,columns:o,...Ce(e),hasChanged:g}},Ht=(e,n)=>x.useMemo(()=>s._.debounce(e,n),[e,n]),oa=e=>{const[n,i]=x.useState(),a=Ht(r=>{i(r)},(e==null?void 0:e.debounceWait)??300);return[n,a]},sa=({alt:e="img",height:n="",width:i="",plugins:a=[s.lazyload(),s.placeholder()],publicId:r})=>{const o=Ot({publicId:r});return t.jsx(s.AdvancedImage,{alt:e,cldImg:o,height:n,plugins:a,width:i})},
|
|
1386
|
+
`,Bt=(e,n)=>{const[a,r]=x.useState(0),[o,l]=x.useState(0);return x.useEffect(()=>{o===100&&(()=>{r(d=>d===n-1?0:d+1)})()},[o,n]),x.useEffect(()=>{const c=setInterval(()=>{l(d=>d===100?0:d+1)},e);return()=>{clearInterval(c)}},[e]),{cycle:a,progress:o,setCycle:r,setProgress:l}},Ot=({publicId:e,format:n="webp"})=>{const i=x.useMemo(()=>new s.Cloudinary({cloud:{cloudName:"fluid-attacks"}}),[]);return x.useMemo(()=>i.image(e).format(n),[i,e,n])},Ce=e=>{const[n,i]=x.useState(!1),a=x.useCallback(()=>{i(!0)},[]),r=x.useCallback(()=>{i(!1)},[]),o=x.useCallback(()=>{i(l=>!l)},[]);return{close:r,isOpen:n,name:e,open:a,setIsOpen:i,toggle:o}},ra=({name:e,items:n,columnOrder:i,setColumnOrder:a})=>{const r=x.useMemo(()=>[...n.filter(({locked:p})=>p).map(({locked:p,...u})=>({...u,visible:!0,locked:p})),...n.filter(({locked:p})=>!p)],[n]),[o,l]=x.useState(r),c=x.useCallback(p=>{const u=p.filter(({locked:y})=>!y),h=[...p.filter(({locked:y})=>y),...u],b=h.map(({name:y})=>y);l(y=>[...h,...y.filter(({name:m})=>!b.includes(m))]),a&&a(h.map(({id:y})=>y))},[a]),d=x.useCallback(()=>{const p=o.map(u=>{var h;const f=(i==null?void 0:i.includes(u.id))??!1;return(h=u.toggleVisibility)==null||h.call(u,f),{...u,visible:f}}).toSorted((u,f)=>{const h=(i==null?void 0:i.indexOf(u.id))??0,b=(i==null?void 0:i.indexOf(f.id))??0;return Number(f.visible)!==Number(u.visible)?Number(f.visible)-Number(u.visible):h-b});l(p),a==null||a(i)},[o,i,a]),g=x.useMemo(()=>s.some(o,p=>((i==null?void 0:i.includes(p.id))??!1)!==p.visible),[o,i]);return{setColumns:c,resetToDefault:d,columns:o,...Ce(e),hasChanged:g}},Ht=(e,n)=>x.useMemo(()=>s._.debounce(e,n),[e,n]),oa=e=>{const[n,i]=x.useState(),a=Ht(r=>{i(r)},(e==null?void 0:e.debounceWait)??300);return[n,a]},sa=({alt:e="img",height:n="",width:i="",plugins:a=[s.lazyload(),s.placeholder()],publicId:r})=>{const o=Ot({publicId:r});return t.jsx(s.AdvancedImage,{alt:e,cldImg:o,height:n,plugins:a,width:i})},Q=x.memo(sa),la=s.st.label`
|
|
1386
1387
|
${({theme:e})=>`
|
|
1387
1388
|
align-items: center;
|
|
1388
1389
|
display: flex;
|
|
@@ -1461,7 +1462,7 @@
|
|
|
1461
1462
|
}
|
|
1462
1463
|
|
|
1463
1464
|
`}
|
|
1464
|
-
`,ca=s.st.span.attrs({className:"checkmark"})``,Qe=x.forwardRef(function({defaultChecked:n=!1,disabled:i=!1,label:a,name:r,onChange:o,onClick:l,value:c,...d},g){return t.jsxs(la,{"aria-disabled":i,"aria-label":a??r,role:"radiogroup",children:[t.jsx("input",{"aria-checked":n,"aria-disabled":i,"aria-label":a??r,defaultChecked:n,disabled:i,name:r,onChange:o,onClick:l,ref:g,type:"radio",value:c,...d}),t.jsx(ca,{}),a??null]})}),da=({alt:e,customDescription:n,imageId:i,icon:a,selectorProps:r,onClick:o,register:l,bgColor:c,title:d,isATag:g=!1,width:p="fit-content"})=>{const u=s.Je();return t.jsxs($,{alignItems:"center",bgColor:c??"",border:`1px solid ${u.palette.gray[200]}`,borderColorHover:u.palette.gray[600],borderRadius:u.spacing[.25],display:"inline-flex",pr:g?1:0,shadowHover:"md",width:p,children:[t.jsxs($,{display:"inline-flex",padding:[1,1,1,1],children:[t.jsx($,{alignSelf:"start",display:"flex",width:"fit-content",children:t.jsx(Qe,{defaultChecked:r.defaultChecked,name:r.name,onClick:o,value:r.value,...l==null?void 0:l(r.name)})}),t.jsxs($,{alignItems:"center",display:"flex",gap:.5,justify:"space-between",ml:1,mr:1,width:"100%",children:[!g&&i!==void 0&&t.jsx(
|
|
1465
|
+
`,ca=s.st.span.attrs({className:"checkmark"})``,Qe=x.forwardRef(function({defaultChecked:n=!1,disabled:i=!1,label:a,name:r,onChange:o,onClick:l,value:c,...d},g){return t.jsxs(la,{"aria-disabled":i,"aria-label":a??r,role:"radiogroup",children:[t.jsx("input",{"aria-checked":n,"aria-disabled":i,"aria-label":a??r,defaultChecked:n,disabled:i,name:r,onChange:o,onClick:l,ref:g,type:"radio",value:c,...d}),t.jsx(ca,{}),a??null]})}),da=({alt:e,customDescription:n,imageId:i,icon:a,selectorProps:r,onClick:o,register:l,bgColor:c,title:d,isATag:g=!1,width:p="fit-content"})=>{const u=s.Je();return t.jsxs($,{alignItems:"center",bgColor:c??"",border:`1px solid ${u.palette.gray[200]}`,borderColorHover:u.palette.gray[600],borderRadius:u.spacing[.25],display:"inline-flex",pr:g?1:0,shadowHover:"md",width:p,children:[t.jsxs($,{display:"inline-flex",padding:[1,1,1,1],children:[t.jsx($,{alignSelf:"start",display:"flex",width:"fit-content",children:t.jsx(Qe,{defaultChecked:r.defaultChecked,name:r.name,onClick:o,value:r.value,...l==null?void 0:l(r.name)})}),t.jsxs($,{alignItems:"center",display:"flex",gap:.5,justify:"space-between",ml:1,mr:1,width:"100%",children:[!g&&i!==void 0&&t.jsx(Q,{alt:e??"card image",height:"32px",publicId:i,width:"32px"}),a===void 0?void 0:t.jsx(F,{icon:a,iconSize:"sm",iconType:"fa-light"}),t.jsxs($,{display:"flex",flexDirection:"column",width:"100%",children:[t.jsx(I,{color:u.palette.gray[800],fontWeight:"bold",size:"sm",children:d}),n===void 0?void 0:t.jsx($,{children:n})]})]})]}),g&&t.jsx(aa,{children:t.jsx(Q,{alt:e??"tag image",height:"40px",publicId:i??"tag image",width:"40px"})})]})},le=s.st.div`
|
|
1465
1466
|
${({theme:e})=>`
|
|
1466
1467
|
align-items: center;
|
|
1467
1468
|
background-color: ${e.palette.gray[200]};
|
|
@@ -1856,7 +1857,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
1856
1857
|
min-width: 240px;
|
|
1857
1858
|
padding: ${e.spacing[.25]} 0 ${e.spacing[.25]} 0;
|
|
1858
1859
|
`}
|
|
1859
|
-
`,Se=({children:e,disabled:n=!1,icon:i,iconType:a="fa-light",href:r,onClick:o,onClickIcon:l,onKeyDown:c,rightIcon:d,selected:g=!1,value:p,...u})=>{const h=s.Je().palette.gray[n?300:800],b=n?x.Children.map(e,y=>x.isValidElement(y)?x.cloneElement(y,{disabled:n,...y.props}):y):e;return t.jsxs(Da,{"aria-disabled":n,"aria-label":p,"aria-selected":g,"data-testid":p,onClick:o,onKeyDown:c,value:p,...u,children:[i!==void 0||p!==void 0?t.jsxs($,{alignItems:"center",display:"flex",gap:.625,children:[i?t.jsx(F,{disabled:n,icon:i,iconColor:h,iconSize:"xxs",iconType:a}):null,r===void 0?b:t.jsx(
|
|
1860
|
+
`,Se=({children:e,disabled:n=!1,icon:i,iconType:a="fa-light",href:r,onClick:o,onClickIcon:l,onKeyDown:c,rightIcon:d,selected:g=!1,value:p,...u})=>{const h=s.Je().palette.gray[n?300:800],b=n?x.Children.map(e,y=>x.isValidElement(y)?x.cloneElement(y,{disabled:n,...y.props}):y):e;return t.jsxs(Da,{"aria-disabled":n,"aria-label":p,"aria-selected":g,"data-testid":p,onClick:o,onKeyDown:c,value:p,...u,children:[i!==void 0||p!==void 0?t.jsxs($,{alignItems:"center",display:"flex",gap:.625,children:[i?t.jsx(F,{disabled:n,icon:i,iconColor:h,iconSize:"xxs",iconType:a}):null,r===void 0?b:t.jsx(K,{href:r,children:b})]}):null,g||d?t.jsx(F,{disabled:n,icon:d??"check",iconClass:"selected",iconColor:h,iconSize:"xs",iconType:a,onClick:l}):null]})},Ea=s.st(Se)`
|
|
1860
1861
|
margin-top: 10px;
|
|
1861
1862
|
border: 1px solid ${({theme:e})=>e.palette.gray[300]};
|
|
1862
1863
|
border-radius: 4px;
|
|
@@ -1890,7 +1891,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
1890
1891
|
display: none;
|
|
1891
1892
|
}
|
|
1892
1893
|
}
|
|
1893
|
-
`,Qt=({options:e,title:n,checkboxesName:i,defaultCollapsed:a,onChange:r})=>{const o=s.Je(),[l,c]=x.useState(a??!1),d=x.useCallback(()=>{c(g=>!g)},[]);return t.jsxs($,{"aria-label":n,bgColor:l?o.palette.gray[50]:o.palette.white,border:"1px solid"+o.palette.gray[300],borderRadius:"8px",display:"inline-flex",flexDirection:"column",gap:.625,px:.75,py:.625,role:"region",width:"100%",children:[t.jsxs($,{alignItems:"center",cursor:"pointer",display:"flex",onClick:d,children:[t.jsx(I,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",children:n}),t.jsx(F,{icon:l?"chevron-up":"chevron-down",iconColor:o.palette.gray[400],iconSize:"xs"})]}),l?t.jsx($,{display:"flex",gap:.75,wrap:"wrap",children:e.map(g=>t.jsx($,{border:"1px solid",borderColor:o.palette.gray[300],borderRadius:"4px",px:.5,py:.5,children:t.jsx(ne,{checked:g.visible,disabled:g.locked,label:g.name,name:`${i}-${g.name}`,onChange:r,value:g.name})},g.name))}):void 0]})},en=e=>e.reduce((i,a)=>a.group?i[a.group]?{...i,[a.group]:[...i[a.group],a]}:{...i,[a.group]:[a]}:i,{}),
|
|
1894
|
+
`,Qt=({options:e,title:n,checkboxesName:i,defaultCollapsed:a,onChange:r})=>{const o=s.Je(),[l,c]=x.useState(a??!1),d=x.useCallback(()=>{c(g=>!g)},[]);return t.jsxs($,{"aria-label":n,bgColor:l?o.palette.gray[50]:o.palette.white,border:"1px solid"+o.palette.gray[300],borderRadius:"8px",display:"inline-flex",flexDirection:"column",gap:.625,px:.75,py:.625,role:"region",width:"100%",children:[t.jsxs($,{alignItems:"center",cursor:"pointer",display:"flex",onClick:d,children:[t.jsx(I,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",children:n}),t.jsx(F,{icon:l?"chevron-up":"chevron-down",iconColor:o.palette.gray[400],iconSize:"xs"})]}),l?t.jsx($,{display:"flex",gap:.75,wrap:"wrap",children:e.map(g=>t.jsx($,{border:"1px solid",borderColor:o.palette.gray[300],borderRadius:"4px",px:.5,py:.5,children:t.jsx(ne,{checked:g.visible,disabled:g.locked,label:g.name,name:`${i}-${g.name}`,onChange:r,value:g.name})},g.name))}):void 0]})},en=e=>e.reduce((i,a)=>a.group?i[a.group]?{...i,[a.group]:[...i[a.group],a]}:{...i,[a.group]:[a]}:i,{}),La=s.st.input`
|
|
1894
1895
|
${({theme:e})=>`
|
|
1895
1896
|
background: none;
|
|
1896
1897
|
border: none !important;
|
|
@@ -1920,7 +1921,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
1920
1921
|
display:none;
|
|
1921
1922
|
}
|
|
1922
1923
|
`}
|
|
1923
|
-
`,
|
|
1924
|
+
`,Aa=s.st.div`
|
|
1924
1925
|
${({theme:e})=>`
|
|
1925
1926
|
align-items: center;
|
|
1926
1927
|
background-color: ${e.palette.white};
|
|
@@ -1946,7 +1947,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
1946
1947
|
border-radius: ${e.spacing[.5]};
|
|
1947
1948
|
width: 250px;
|
|
1948
1949
|
`}
|
|
1949
|
-
`,xe=x.forwardRef(function({name:n,smallSearch:i=!1,onClear:a,value:r,...o},l){const c=s.Je(),[d,g]=x.useState(!1),{refs:p,floatingStyles:u}=s.useFloating$1(),f=x.useCallback(()=>{g(y=>!y)},[]),h=x.useCallback(y=>{y.key==="Enter"&&y.preventDefault()},[]);ie(p.floating.current,()=>{g(!1)},!0);const b=t.jsxs(
|
|
1950
|
+
`,xe=x.forwardRef(function({name:n,smallSearch:i=!1,onClear:a,value:r,...o},l){const c=s.Je(),[d,g]=x.useState(!1),{refs:p,floatingStyles:u}=s.useFloating$1(),f=x.useCallback(()=>{g(y=>!y)},[]),h=x.useCallback(y=>{y.key==="Enter"&&y.preventDefault()},[]);ie(p.floating.current,()=>{g(!1)},!0);const b=t.jsxs(Aa,{children:[t.jsx(F,{icon:"magnifying-glass",iconColor:c.palette.gray[700],iconSize:"xs",iconType:"fa-light"}),t.jsx(La,{...o,id:n,name:n,onKeyDown:h,ref:l,type:"search",value:r}),!s.lodashExports.isEmpty(r)&&t.jsx(O,{icon:"xmark",iconColor:c.palette.gray[300],iconSize:"xs",iconType:"fa-light",onClick:a,px:.25,py:.25,type:"reset",variant:"ghost"})]});return i?t.jsxs(x.Fragment,{children:[t.jsx(O,{border:`1px solid ${c.palette.gray[300]} !important`,icon:"magnifying-glass",iconSize:"xs",iconType:"fa-light",onClick:f,ref:p.setReference,variant:"ghost"}),d?t.jsx(Pa,{ref:p.setFloating,style:u,children:b}):void 0]}):b}),tn=({columns:e,formId:n,onChangeHandler:i,variant:a})=>{const r=x.useRef(null),[o,l]=x.useState([]),[c,d]=x.useState(""),g=x.useCallback(u=>{const{value:f}=u.target;d(f)},[]),p=x.useCallback(()=>{r.current&&(r.current.reset(),d(""))},[r]);return x.useEffect(()=>{l(e.filter(u=>{var f;return a==="grouped"?u.name.toLowerCase().includes(c.toLowerCase())||((f=u.group)==null?void 0:f.includes(c.toLowerCase())):u.name.toLowerCase().includes(c.toLowerCase())}))},[e,c,a]),a==="grouped"?t.jsxs($,{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(xe,{name:"search",onChange:g,onClear:p,value:c})}),t.jsx("form",{"data-testid":n,id:n,onReset:p,style:{display:"flex",flexDirection:"column",gap:"0.625rem"},children:Object.entries(en(o)).map(([u,f],h)=>{const b=`li-checkbox${u}`;return t.jsx(Qt,{checkboxesName:u,defaultCollapsed:h===0,onChange:i,options:f,title:u},b)})})]}):t.jsxs($,{height:"100%",id:"columns-buttons",py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:r,children:t.jsx(xe,{name:"search",onChange:g,onClear:p,value:c})}),t.jsx("form",{"data-testid":n,id:n,onReset:p,style:{paddingTop:"0.625rem"},children:o.map(u=>{const f=`li-checkbox-${u.name}`;return t.jsx(Ra,{selected:u.visible,value:f,width:"content",children:t.jsx(ne,{checked:u.visible,disabled:u.locked,label:u.name,name:u.name,onChange:i,value:u.name})},f)})})]})},Wa=({_containerId:e="portals",title:n,modalRef:i,variant:a})=>{const r=s.Je(),o=x.useRef(null),[l,c]=x.useState(void 0),d=x.useCallback(u=>{const{checked:f,value:h}=u.target,b=i.columns.map(y=>{var m;return y.name===h?((m=y.toggleVisibility)==null||m.call(y,f),{...y,visible:f}):y});i.setColumns(b)},[i]),g=x.useCallback(u=>{const f=i.columns.map(h=>{var b;return h.id===u?((b=h.toggleVisibility)==null||b.call(h,!1),{...h,visible:!1}):h});i.setColumns(f)},[i]),p=x.useCallback(()=>{var f;const u=(f=o.current)==null?void 0:f.scrollHeight;l!==u&&c(u)},[l]);return i.isOpen?re.createPortal(t.jsx(Ut,{"aria-label":i.name,"aria-modal":"true",children:t.jsxs(et,{$size:"md",flexDirection:"column",children:[t.jsxs($,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(U,{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(ae,{mb:0,mt:0}),t.jsxs($,{display:"flex",gap:1.25,onScroll:p,px:1.25,ref:o,scroll:"y",width:"100%",children:[t.jsx(tn,{columns:i.columns,formId:"columns-visibility",onChangeHandler:d,variant:a}),t.jsx($,{borderLeft:`2px solid ${r.palette.gray[100]}`,height:l?`${l}px`:"auto"}),t.jsx(Zt,{description:"Click and drag to reorder the columns",items:i.columns,onClickClose:g,onReorder:i.setColumns,title:"Reorder columns"})]}),t.jsx(ae,{mb:0,mt:0}),t.jsxs($,{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",{})},Ba=s.st(Se)`
|
|
1950
1951
|
padding: 8px;
|
|
1951
1952
|
min-height: 36px;
|
|
1952
1953
|
min-width: unset;
|
|
@@ -1963,7 +1964,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
1963
1964
|
svg.fa-check {
|
|
1964
1965
|
border-radius: 2px;
|
|
1965
1966
|
}
|
|
1966
|
-
`,nn=({control:e,option:n,register:i,setValue:a})=>{var r,o,l,c,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(p=>t.jsx(ht,{value:p.value,width:"content",children:t.jsx(ne,{...i("checkbox"),label:p.label,value:p.value})},`li-checkbox-${p.value}`))});case"radioButton":return t.jsxs("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:[n.label,(o=n.options)==null?void 0:o.map(p=>t.jsx(ht,{value:p.value,width:"content",children:t.jsx(Qe,{...i("radio"),label:p.label,value:p.value})},`li-radio-${p.value}`))]});case"select":return t.jsx(Xe,{control:e,items:((l=n.options)==null?void 0:l.map(p=>({name:p.label??"",value:p.value})))??[],label:n.label,name:`text.${String(n.key)}-${n.filterFn??"caseInsensitive"}`,placeholder:n.placeholder,value:n.value});case"text":const g=`text.${String(n.key)}-${n.filterFn??"caseInsensitive"}`;return t.jsx(Ae,{label:n.label,name:g,placeholder:n.placeholder,register:i,value:n.value});case"numberRange":return t.jsx(Wt,{label:n.label,name:String(n.key),propsMax:{placeholder:n.placeholder?`${n.placeholder} Max`:"Max",register:i,name:"maxValue",value:n.maxValue,setValue:a},propsMin:{placeholder:n.placeholder?`${n.placeholder} Min`:"Min",register:i,name:"minValue",value:n.minValue,setValue:a},variant:"filters"});case"dateRange":return t.jsx(Rt,{label:n.label,name:String(n.key),propsMax:{name:"maxValue",value:(c=n.maxValue)==null?void 0:c.toString()},propsMin:{name:"minValue",value:(d=n.minValue)==null?void 0:d.toString()},register:i,setValue:a,variant:"filters"});default:return t.jsx("div",{})}},an=({control:e,items:n,register:i,setValue:a})=>t.jsx(t.Fragment,{children:n.map((r,o)=>{const l=`${r.type}-${r.value}-${r.filterFn??"default"}`;return t.jsxs("div",{children:[t.jsx(nn,{control:e,option:r,register:i,setValue:a}),o<n.length-1&&t.jsx("hr",{style:{margin:"1.25rem 0 0.625rem"}})]},l)})}),rn=e=>{var c,d,g,p,u;const[n,i]=x.useState([...e]),{control:a,register:r,handleSubmit:o,setValue:l}=s.useForm({defaultValues:{checkbox:e.filter(f=>f.type==="checkboxes").flatMap(f=>{var h;return((h=f.options)==null?void 0:h.filter(b=>b.checked).map(b=>b.value))??[]}),radio:((g=(d=(c=e.find(f=>f.type==="radioButton"))==null?void 0:c.options)==null?void 0:d.find(({checked:f})=>f))==null?void 0:g.value)??"",text:e.filter(f=>["text","select"].includes(f.type)).reduce((f,h)=>({...f,[`${String(h.key)}-${h.filterFn??"caseInsensitive"}`]:h.value??""}),{}),minValue:(p=e.find(f=>["numberRange","dateRange"].includes(f.type)))==null?void 0:p.minValue,maxValue:(u=e.find(f=>["numberRange","dateRange"].includes(f.type)))==null?void 0:u.maxValue}});return{control:a,items:n,setItems:i,register:r,handleSubmit:o,setValue:l}},Ha=(e,n)=>{var i,a,r,o,l;n("checkbox",e.filter(c=>c.type==="checkboxes").flatMap(c=>{var d;return((d=c.options)==null?void 0:d.filter(g=>g.checked).map(g=>g.value))??[]})),n("radio",((r=(a=(i=e.find(c=>c.type==="radioButton"))==null?void 0:i.options)==null?void 0:a.find(({checked:c})=>c))==null?void 0:r.value)??""),n("text",e.filter(c=>["text","select"].includes(c.type)).reduce((c,d)=>({...c,[`${String(d.key)}-${d.filterFn??"caseInsensitive"}`]:d.value??""}),{})),n("minValue",(o=e.find(c=>["numberRange","dateRange"].includes(c.type)))==null?void 0:o.minValue),n("maxValue",(l=e.find(c=>["numberRange","dateRange"].includes(c.type)))==null?void 0:l.maxValue)},Ma=(e,n)=>(e==null?void 0:e.filter(i=>{var a;return((a=i.label)==null?void 0:a.toLowerCase().includes((n==null?void 0:n.toLowerCase())??""))??i.value.toLowerCase().includes((n==null?void 0:n.toLowerCase())??"")}))??[],_a=async(e,n)=>await Promise.all(e.map(async i=>i.type==="checkboxes"?{...i,options:i.filterOptions?await i.filterOptions(i.options??[],n):Ma(i.options??[],n)}:i)),Je=({options:e,onSearch:n,onSubmit:i,id:a,selectedFilter:r})=>{const{control:o,items:l,setItems:c,register:d,handleSubmit:g,setValue:p}=rn(e),u=e.some(b=>b.type==="checkboxes"&&b.hideSearch!==!0),f=x.useCallback(async b=>{const{value:y}=b.target;n&&n(y);const m=await _a(e,y);c(m)},[e,n,c]),h=x.useCallback(b=>{i&&i(b)},[i]);return x.useEffect(()=>{c(e),Ha(e,p)},[e,c,p]),t.jsxs("div",{className:"flex flex-col gap-[8px]",id:a,children:[u&&t.jsxs("div",{children:[r,t.jsx(xe,{onChange:f})]}),t.jsxs("form",{id:a,onSubmit:g(h),children:[t.jsx(an,{control:o,items:l,register:d,setValue:p}),t.jsx(P,{mt:1,type:"submit",children:"Apply"})]})]})},on=({options:e,variant:n,onApplyFilters:i,onSearch:a,setDirection:r,setHandler:o})=>{const l=s.Je(),[c,d]=x.useState(e),[g,p]=x.useState([]),[u,f]=x.useState({}),[h,b]=x.useState(""),y=x.useCallback(w=>()=>{const v=c.find(C=>C.label===w),k=!(v!=null&&v.filterOptions.some(C=>C.type==="dateRange"||C.type==="select"));o==null||o(k??!0),b(w),p((v==null?void 0:v.filterOptions)??[])},[c,o]),m=x.useCallback(w=>{const v=[...w.checkbox,...Object.values(w.text??{}),...w.radio?[w.radio]:[],...w.minValue?[String(w.minValue)]:[],...w.maxValue?[String(w.maxValue)]:[]];f(S=>v.length>0?{...S,[h]:v}:S);const k=S=>{var N,R;return{...S,options:(N=S.options)==null?void 0:N.map(L=>({...L,checked:w.checkbox.includes(L.value)||w.radio===L.value})),value:["text","select"].includes(S.type)?((R=w.text)==null?void 0:R[`${String(S.key)}-${S.filterFn??"caseInsensitive"}`])??S.value:S.value,minValue:["numberRange","dateRange"].includes(S.type)?w.minValue:S.minValue,maxValue:["numberRange","dateRange"].includes(S.type)?w.maxValue:S.maxValue}},C=S=>S.label===h?{...S,filterOptions:S.filterOptions.map(k)}:S,E=c.map(C);d(S=>S.map(C));const z=E.flatMap(({filterOptions:S})=>S);i(z),p([])},[c,i,h]),j=x.useCallback((w,v)=>{const k=`li-filter-option-${w}`;return t.jsxs(Ba,{icon:v,onClick:y(w),style:{minWidth:"180px"},value:k,width:"100%",children:[w,u[w]===void 0?void 0:t.jsx(V,{tagLabel:u[w].length.toString()})]},k)},[u,y]);return x.useEffect(()=>{const w=e.reduce((v,{label:k,filterOptions:C})=>{const E=C.flatMap(({value:N,minValue:R,maxValue:L})=>[R,L,N]).filter(Boolean),z=C.flatMap(({options:N})=>N??[]).filter(({checked:N=!1})=>N).map(({value:N})=>N),S=[...E,...z];return S.length===0?v:{...v,[k]:S}},{});f(w),g.length>0&&r&&r("column")},[g,e,r]),n==="grouped"?t.jsx($,{display:"flex",flexDirection:"column",flexGrow:1,maxHeight:g.length>0?"unset":"360px",style:{columnGap:"10px"},width:"100%",wrap:"wrap",children:g.length>0?t.jsx(Je,{id:"filters-options",onSearch:a,onSubmit:m,options:g,selectedFilter:h}):Object.entries(en(e)).map(([w,v])=>t.jsxs($,{children:[t.jsx(I,{color:l.palette.gray[400],mb:.25,size:"sm",children:w}),v.map(({label:k,icon:C="filter-list"})=>j(k,C))]},w))}):t.jsx($,{display:"flex",flexDirection:"column",flexGrow:1,maxHeight:g.length>0?"unset":"200px",style:{columnGap:"10px"},width:"100%",wrap:"wrap",children:g.length>0?t.jsx(Je,{id:"filters-options",onSearch:a,onSubmit:m,options:g,selectedFilter:h}):e.map(({label:w,icon:v="filter-list"})=>j(w,v))})},sn=({options:e,onApplyFilters:n,onSearch:i,modalRef:a,variant:r})=>{const[o,l]=x.useState("row"),[c,d]=x.useState(!0),g=s.Je(),p=x.useRef(null),u=t.jsx(O,{icon:"close",iconColor:g.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:a.close,px:.25,py:.25,variant:"ghost"});return x.useEffect(()=>{const f=h=>{const b=p.current;b&&!b.contains(h.target)&&a.close()};if(c)return document.addEventListener("mousedown",f,!0),()=>{document.removeEventListener("mousedown",f,!0)}},[p,c,a]),t.jsx(Oa,{$bgColor:"transparent","aria-label":a.name,children:t.jsxs(et,{$size:"fixed",alignItems:o==="row"?"start":"end",display:"flex",flexDirection:o,gap:.5,id:"filters-list",position:"relative",px:1.25,py:1.25,ref:p,style:{overflow:"hidden",width:"max-content"},children:[o==="column"?u:void 0,t.jsx(on,{onApplyFilters:n,onSearch:i,options:e,setDirection:l,setHandler:d,variant:r}),o==="row"?u:void 0]})})};function Ja(e){if(e)return e}function ln(e){if(!e||e.length===0)return;const n=e.filter(a=>a.checked).map(a=>a.label??a.value);return n.length===0?void 0:n.join(", ")}function Ua(e,n,i){const a=i??"",r=s._.isEmpty(e)&&typeof e!="number"||Number.isNaN(e)?void 0:Number(e),o=s._.isEmpty(n)&&typeof n!="number"||Number.isNaN(n)?void 0:Number(String(n));if(!s._.isUndefined(r)&&!s._.isUndefined(o))return`${r}${a} - ${o}${a}`;if(!s._.isUndefined(r))return`Min ${r}${a}`;if(!s._.isUndefined(o))return`Max ${o}${a}`}function Ga(e,n){if(s.dayjs_minExports.extend(s.localizedFormat),!(s._.isUndefined(e)&&s._.isUndefined(n))){if(e!==""&&n!==""&&!s._.isUndefined(e)&&!s._.isUndefined(n))return`${s.dayjs(e).format("LL")} - ${s.dayjs(n).format("LL")}`;if(e!==""&&!s._.isUndefined(e))return`From ${s.dayjs(e).format("LL")}`;if(n!==""&&!s._.isUndefined(n))return`To ${s.dayjs(n).format("LL")}`}}function Va(e,n,i){return e==="select"?n:`${n} ${i==="includesInsensitive"?"contains":"is"}`}const ce=({filter:e,icon:n="filter-list",label:i,onClose:a,filterValue:r})=>s._.isNil(r)||s._.isEmpty(String(r))?null:t.jsx(V,{filterValues:r,icon:n,id:"remove-filter",onClose:a(e),tagLabel:`${i} `}),Ya=({options:e,onClose:n})=>{const i=e.flatMap(a=>a.filterOptions.map(r=>{const{filterFn:o,label:l,type:c,value:d,options:g,minValue:p,maxValue:u}=r;switch(c){case"numberRange":{const f=Ua(p,u,a.placeholder);return t.jsx(ce,{filter:r,filterValue:f,icon:a.icon,label:a.label,onClose:n},l)}case"dateRange":{const f=Ga(p==null?void 0:p.toString(),u==null?void 0:u.toString());return t.jsx(ce,{filter:r,filterValue:f,icon:a.icon,label:a.label,onClose:n},l)}case"radioButton":case"checkboxes":{const f=ln(g);return t.jsx(ce,{filter:r,filterValue:f,icon:a.icon,label:a.label,onClose:n},l)}case void 0:case"select":case"text":default:{const f=Ja(d),h=Va(c,a.label,o);return t.jsx(ce,{filter:r,filterValue:f,icon:a.icon,label:h,onClose:n},l)}}})).filter(a=>{if(a===null)return!1;const{filterValue:r}=a.props;return!s._.isNil(r)&&!s._.isEmpty(String(r))});return i.length>0?t.jsx($,{alignItems:"center",display:"flex",gap:.5,pb:1,width:"100%",wrap:"wrap",children:i}):null},qa=(e,n)=>{function i(l,c){if(c.value===""||c.value===void 0||s._.defaultTo(c.isBackFilter,!1))return!0;switch(c.filterFn){case"includesInsensitive":return String(l[c.key]).toLowerCase().includes(c.value.toLowerCase());case"caseInsensitive":case void 0:default:return String(l[c.key]).toLowerCase()===c.value.toLowerCase()}}function a(l,c){if(!c.options||c.options.length===0)return!0;const d=c.options.filter(g=>g.checked).map(g=>g.value);return d.length===0?!0:d.includes(String(l[c.key]))}function r(l,c,d){const g=d(String(l[c.key])),{minValue:p,maxValue:u}=c,f=s._.isEmpty(p)&&typeof p!="number"?void 0:d(String(p)),h=s._.isEmpty(u)&&typeof u!="number"?void 0:d(String(u));return s._.isUndefined(f)&&s._.isUndefined(h)?!0:(f??-1/0)<=g&&g<=(h??1/0)}function o(l){return n.every(c=>{if(typeof c.key=="function")return c.key(l,c.value);switch(c.type){case"radioButton":case"checkboxes":return a(l,c);case"numberRange":return r(l,c,Number);case"dateRange":return r(l,c,d=>new Date(d));case"select":case"text":default:return i(l,c)}})}return e.filter(o)},bt=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,Ka=e=>{var i;const n=((i=e.options)==null?void 0:i.map(a=>({...a,checked:void 0})))??void 0;return{...e,minValue:void 0,maxValue:void 0,value:void 0,options:n}},Xa=({dataset:e,localStorageKey:n,options:i,setFilteredDataset:a,onFiltersChange:r,onReset:o,onSearch:l,variant:c="ungrouped"})=>{const d=Ce("filters-modal"),[g,p]=x.useState([]),[u,f]=x.useState(bt(g)),h=i.map(w=>({...w,filterOptions:w.filterOptions.map(v=>g.find(C=>C.key===v.key&&C.type===v.type&&C.filterFn===v.filterFn)??{...v})})),b=x.useCallback(w=>{p([...w]),localStorage.setItem(n,JSON.stringify(w))},[p,n]),y=x.useCallback(()=>{o&&o(),d.toggle()},[d,o]),m=x.useCallback(w=>()=>{o&&o();const v=g.map(k=>k.key===w.key&&k.type===w.type&&k.filterFn===w.filterFn?Ka(k):k);p(v),localStorage.setItem(n,JSON.stringify(v))},[g,n,o]);return x.useEffect(()=>{const w=localStorage.getItem(n),v=i.flatMap(C=>C.filterOptions),k=w?JSON.parse(w):v;v.flatMap(C=>C.value).filter(Boolean).length>0||v.flatMap(C=>C.options).filter(C=>(C==null?void 0:C.checked)===void 0).length>0?(p(v),localStorage.setItem(n,JSON.stringify(v))):p(k)},[n,i,p]),x.useEffect(()=>{a&&e!==void 0&&a(qa(e,g)),f(bt(g)),r==null||r(g)},[e,g,a,f,r]),{Filters:()=>t.jsxs($,{alignItems:"center",display:"flex",gap:.25,maxWidth:"100%",position:"relative",wrap:"wrap",children:[t.jsx($,{pr:.25,children:t.jsx(P,{icon:"filter",id:"filterBtn",onClick:y,tag:u.toString(),variant:"ghost"})}),d.isOpen&&t.jsx(sn,{modalRef:d,onApplyFilters:b,onSearch:l,options:h,variant:c})]}),options:h,removeFilter:m}},nt=({_portal:e=!0,alert:n,cancelButton:i=void 0,children:a=void 0,confirmButton:r=void 0,content:o=void 0,description:l=void 0,modalRef:c,otherActions:d=void 0,onClose:g=void 0,tabItems:p=void 0,title:u=void 0,size:f,id:h="modal-container"})=>{const b=s.Je(),y=t.jsx(Ut,{"aria-label":c.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs(et,{$size:f,"data-testid":h,flexDirection:"column",id:h,children:[!s._.isEmpty(u)&&!s._.isNil(u)&&t.jsx(Vt,{description:l,modalRef:c,onClose:g,otherActions:d,title:u}),p&&t.jsx($,{borderTop:`1px solid ${b.palette.gray[300]}`,display:"block",mb:1.25,position:"sticky",children:t.jsx(tt,{items:p})}),(s._.isObject(o)||a)&&t.jsxs(va,{children:[a,s._.isObject(o)&&s._.isString(o.imageSrc)&&t.jsx(za,{$framed:o.imageFramed,children:t.jsx(Z,{alt:"modal-img",publicId:o.imageSrc})}),s._.isObject(o)&&s._.isString(o.imageText)&&t.jsx(I,{size:"sm",children:o.imageText})]}),t.jsx(Gt,{alert:n,cancelButton:i,confirmButton:r,modalRef:c})]})});return e&&c.isOpen?re.createPortal(y,document.getElementById("portals")??document.body):c.isOpen?y:null},Za=(e,n,i)=>{const a=Ce("confirm-dialog-modal"),r=x.useRef(null),o=x.useCallback(async()=>(a.open(),new Promise(g=>{r.current=g})),[a]),l=x.useCallback(()=>{var g;a.close(),(g=r.current)==null||g.call(r,!0)},[a]),c=x.useCallback(()=>{var g;a.close(),(g=r.current)==null||g.call(r,!1)},[a]);return[o,({children:g})=>{const[p,u]=x.useState(i),f=x.useCallback(()=>{u({...i})},[]),h=x.useCallback(m=>()=>{u(j=>({...j,[m]:{...j[m],state:!j[m].state}}))},[]),b=!Object.values(p).every(({state:m})=>m),y=Object.entries(p).map(([m,{state:j,label:w}])=>t.jsx(ne,{defaultChecked:j,label:w,name:m,onChange:h(m)},m));return t.jsxs(nt,{"data-testid":e,id:e,modalRef:{...a,close:c},onClose:f,size:"sm",title:n,children:[g,t.jsx($,{display:"flex",flexDirection:"column",gap:.5,children:y}),t.jsx(Yt,{disabled:b,id:e,onConfirm:l})]})}]},Qa=()=>{const[e,n]=x.useState(!1),[i,a]=x.useState(),r=x.useRef(null),o=Ce("confirm-dialog-modal"),l=x.useCallback(async p=>(a(p),n(!0),new Promise(u=>{r.current=u})),[]),c=x.useCallback(()=>{var p;n(!1),a(void 0),(p=r.current)==null||p.call(r,!0)},[]),d=x.useCallback(()=>{var p;n(!1),a(void 0),(p=r.current)==null||p.call(r,!1)},[]);return x.useEffect(()=>{o.setIsOpen(e)},[e,o]),{ConfirmDialog:({id:p="confirm-dialog-modal",children:u})=>t.jsxs(nt,{cancelButton:{onClick:d,text:"Cancel"},confirmButton:{id:(i==null?void 0:i.id)??"modal-confirm",onClick:c,text:"Confirm"},description:i==null?void 0:i.message,id:p,modalRef:{...o,close:d},size:"sm",title:i==null?void 0:i.title,children:[i==null?void 0:i.content,u]}),confirm:l}},er=s.st.ul`
|
|
1967
|
+
`,nn=({control:e,option:n,register:i,setValue:a})=>{var r,o,l,c,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(p=>t.jsx(ht,{value:p.value,width:"content",children:t.jsx(ne,{...i("checkbox"),label:p.label,value:p.value})},`li-checkbox-${p.value}`))});case"radioButton":return t.jsxs("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:[n.label,(o=n.options)==null?void 0:o.map(p=>t.jsx(ht,{value:p.value,width:"content",children:t.jsx(Qe,{...i("radio"),label:p.label,value:p.value})},`li-radio-${p.value}`))]});case"select":return t.jsx(Xe,{control:e,items:((l=n.options)==null?void 0:l.map(p=>({name:p.label??"",value:p.value})))??[],label:n.label,name:`text.${String(n.key)}-${n.filterFn??"caseInsensitive"}`,placeholder:n.placeholder,value:n.value});case"text":const g=`text.${String(n.key)}-${n.filterFn??"caseInsensitive"}`;return t.jsx(Le,{label:n.label,name:g,placeholder:n.placeholder,register:i,value:n.value});case"numberRange":return t.jsx(Wt,{label:n.label,name:String(n.key),propsMax:{placeholder:n.placeholder?`${n.placeholder} Max`:"Max",register:i,name:"maxValue",value:n.maxValue,setValue:a},propsMin:{placeholder:n.placeholder?`${n.placeholder} Min`:"Min",register:i,name:"minValue",value:n.minValue,setValue:a},variant:"filters"});case"dateRange":return t.jsx(Rt,{label:n.label,name:String(n.key),propsMax:{name:"maxValue",value:(c=n.maxValue)==null?void 0:c.toString()},propsMin:{name:"minValue",value:(d=n.minValue)==null?void 0:d.toString()},register:i,setValue:a,variant:"filters"});default:return t.jsx("div",{})}},an=({control:e,items:n,register:i,setValue:a})=>t.jsx(t.Fragment,{children:n.map((r,o)=>{const l=`${r.type}-${r.value}-${r.filterFn??"default"}`;return t.jsxs("div",{children:[t.jsx(nn,{control:e,option:r,register:i,setValue:a}),o<n.length-1&&t.jsx("hr",{style:{margin:"1.25rem 0 0.625rem"}})]},l)})}),rn=e=>{var c,d,g,p,u;const[n,i]=x.useState([...e]),{control:a,register:r,handleSubmit:o,setValue:l}=s.useForm({defaultValues:{checkbox:e.filter(f=>f.type==="checkboxes").flatMap(f=>{var h;return((h=f.options)==null?void 0:h.filter(b=>b.checked).map(b=>b.value))??[]}),radio:((g=(d=(c=e.find(f=>f.type==="radioButton"))==null?void 0:c.options)==null?void 0:d.find(({checked:f})=>f))==null?void 0:g.value)??"",text:e.filter(f=>["text","select"].includes(f.type)).reduce((f,h)=>({...f,[`${String(h.key)}-${h.filterFn??"caseInsensitive"}`]:h.value??""}),{}),minValue:(p=e.find(f=>["numberRange","dateRange"].includes(f.type)))==null?void 0:p.minValue,maxValue:(u=e.find(f=>["numberRange","dateRange"].includes(f.type)))==null?void 0:u.maxValue}});return{control:a,items:n,setItems:i,register:r,handleSubmit:o,setValue:l}},Ha=(e,n)=>{var i,a,r,o,l;n("checkbox",e.filter(c=>c.type==="checkboxes").flatMap(c=>{var d;return((d=c.options)==null?void 0:d.filter(g=>g.checked).map(g=>g.value))??[]})),n("radio",((r=(a=(i=e.find(c=>c.type==="radioButton"))==null?void 0:i.options)==null?void 0:a.find(({checked:c})=>c))==null?void 0:r.value)??""),n("text",e.filter(c=>["text","select"].includes(c.type)).reduce((c,d)=>({...c,[`${String(d.key)}-${d.filterFn??"caseInsensitive"}`]:d.value??""}),{})),n("minValue",(o=e.find(c=>["numberRange","dateRange"].includes(c.type)))==null?void 0:o.minValue),n("maxValue",(l=e.find(c=>["numberRange","dateRange"].includes(c.type)))==null?void 0:l.maxValue)},Ma=(e,n)=>(e==null?void 0:e.filter(i=>{var a;return((a=i.label)==null?void 0:a.toLowerCase().includes((n==null?void 0:n.toLowerCase())??""))??i.value.toLowerCase().includes((n==null?void 0:n.toLowerCase())??"")}))??[],_a=async(e,n)=>await Promise.all(e.map(async i=>i.type==="checkboxes"?{...i,options:i.filterOptions?await i.filterOptions(i.options??[],n):Ma(i.options??[],n)}:i)),Je=({options:e,onSearch:n,onSubmit:i,id:a,selectedFilter:r})=>{const{control:o,items:l,setItems:c,register:d,handleSubmit:g,setValue:p}=rn(e),u=e.some(b=>b.type==="checkboxes"&&b.hideSearch!==!0),f=x.useCallback(async b=>{const{value:y}=b.target;n&&n(y);const m=await _a(e,y);c(m)},[e,n,c]),h=x.useCallback(b=>{i&&i(b)},[i]);return x.useEffect(()=>{c(e),Ha(e,p)},[e,c,p]),t.jsxs("div",{className:"flex flex-col gap-[8px]",id:a,children:[u&&t.jsxs("div",{children:[r,t.jsx(xe,{onChange:f})]}),t.jsxs("form",{id:a,onSubmit:g(h),children:[t.jsx(an,{control:o,items:l,register:d,setValue:p}),t.jsx(P,{mt:1,type:"submit",children:"Apply"})]})]})},on=({options:e,variant:n,onApplyFilters:i,onSearch:a,setDirection:r,setHandler:o})=>{const l=s.Je(),[c,d]=x.useState(e),[g,p]=x.useState([]),[u,f]=x.useState({}),[h,b]=x.useState(""),y=x.useCallback(w=>()=>{const v=c.find(C=>C.label===w),k=!(v!=null&&v.filterOptions.some(C=>C.type==="dateRange"||C.type==="select"));o==null||o(k??!0),b(w),p((v==null?void 0:v.filterOptions)??[])},[c,o]),m=x.useCallback(w=>{const v=[...w.checkbox,...Object.values(w.text??{}),...w.radio?[w.radio]:[],...w.minValue?[String(w.minValue)]:[],...w.maxValue?[String(w.maxValue)]:[]];f(S=>v.length>0?{...S,[h]:v}:S);const k=S=>{var N,R;return{...S,options:(N=S.options)==null?void 0:N.map(A=>({...A,checked:w.checkbox.includes(A.value)||w.radio===A.value})),value:["text","select"].includes(S.type)?((R=w.text)==null?void 0:R[`${String(S.key)}-${S.filterFn??"caseInsensitive"}`])??S.value:S.value,minValue:["numberRange","dateRange"].includes(S.type)?w.minValue:S.minValue,maxValue:["numberRange","dateRange"].includes(S.type)?w.maxValue:S.maxValue}},C=S=>S.label===h?{...S,filterOptions:S.filterOptions.map(k)}:S,E=c.map(C);d(S=>S.map(C));const z=E.flatMap(({filterOptions:S})=>S);i(z),p([])},[c,i,h]),j=x.useCallback((w,v)=>{const k=`li-filter-option-${w}`;return t.jsxs(Ba,{icon:v,onClick:y(w),style:{minWidth:"180px"},value:k,width:"100%",children:[w,u[w]===void 0?void 0:t.jsx(V,{tagLabel:u[w].length.toString()})]},k)},[u,y]);return x.useEffect(()=>{const w=e.reduce((v,{label:k,filterOptions:C})=>{const E=C.flatMap(({value:N,minValue:R,maxValue:A})=>[R,A,N]).filter(Boolean),z=C.flatMap(({options:N})=>N??[]).filter(({checked:N=!1})=>N).map(({value:N})=>N),S=[...E,...z];return S.length===0?v:{...v,[k]:S}},{});f(w),g.length>0&&r&&r("column")},[g,e,r]),n==="grouped"?t.jsx($,{display:"flex",flexDirection:"column",flexGrow:1,maxHeight:g.length>0?"unset":"360px",style:{columnGap:"10px"},width:"100%",wrap:"wrap",children:g.length>0?t.jsx(Je,{id:"filters-options",onSearch:a,onSubmit:m,options:g,selectedFilter:h}):Object.entries(en(e)).map(([w,v])=>t.jsxs($,{children:[t.jsx(I,{color:l.palette.gray[400],mb:.25,size:"sm",children:w}),v.map(({label:k,icon:C="filter-list"})=>j(k,C))]},w))}):t.jsx($,{display:"flex",flexDirection:"column",flexGrow:1,maxHeight:g.length>0?"unset":"200px",style:{columnGap:"10px"},width:"100%",wrap:"wrap",children:g.length>0?t.jsx(Je,{id:"filters-options",onSearch:a,onSubmit:m,options:g,selectedFilter:h}):e.map(({label:w,icon:v="filter-list"})=>j(w,v))})},sn=({options:e,onApplyFilters:n,onSearch:i,modalRef:a,variant:r})=>{const[o,l]=x.useState("row"),[c,d]=x.useState(!0),g=s.Je(),p=x.useRef(null),u=t.jsx(O,{icon:"close",iconColor:g.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:a.close,px:.25,py:.25,variant:"ghost"});return x.useEffect(()=>{const f=h=>{const b=p.current;b&&!b.contains(h.target)&&a.close()};if(c)return document.addEventListener("mousedown",f,!0),()=>{document.removeEventListener("mousedown",f,!0)}},[p,c,a]),t.jsx(Oa,{$bgColor:"transparent","aria-label":a.name,children:t.jsxs(et,{$size:"fixed",alignItems:o==="row"?"start":"end",display:"flex",flexDirection:o,gap:.5,id:"filters-list",position:"relative",px:1.25,py:1.25,ref:p,style:{overflow:"hidden",width:"max-content"},children:[o==="column"?u:void 0,t.jsx(on,{onApplyFilters:n,onSearch:i,options:e,setDirection:l,setHandler:d,variant:r}),o==="row"?u:void 0]})})};function Ja(e){if(e)return e}function ln(e){if(!e||e.length===0)return;const n=e.filter(a=>a.checked).map(a=>a.label??a.value);return n.length===0?void 0:n.join(", ")}function Ua(e,n,i){const a=i??"",r=s._.isEmpty(e)&&typeof e!="number"||Number.isNaN(e)?void 0:Number(e),o=s._.isEmpty(n)&&typeof n!="number"||Number.isNaN(n)?void 0:Number(String(n));if(!s._.isUndefined(r)&&!s._.isUndefined(o))return`${r}${a} - ${o}${a}`;if(!s._.isUndefined(r))return`Min ${r}${a}`;if(!s._.isUndefined(o))return`Max ${o}${a}`}function Ga(e,n){if(s.dayjs_minExports.extend(s.localizedFormat),!(s._.isUndefined(e)&&s._.isUndefined(n))){if(e!==""&&n!==""&&!s._.isUndefined(e)&&!s._.isUndefined(n))return`${s.dayjs(e).format("LL")} - ${s.dayjs(n).format("LL")}`;if(e!==""&&!s._.isUndefined(e))return`From ${s.dayjs(e).format("LL")}`;if(n!==""&&!s._.isUndefined(n))return`To ${s.dayjs(n).format("LL")}`}}function Va(e,n,i){return e==="select"?n:`${n} ${i==="includesInsensitive"?"contains":"is"}`}const ce=({filter:e,icon:n="filter-list",label:i,onClose:a,filterValue:r})=>s._.isNil(r)||s._.isEmpty(String(r))?null:t.jsx(V,{filterValues:r,icon:n,id:"remove-filter",onClose:a(e),tagLabel:`${i} `}),Ya=({options:e,onClose:n})=>{const i=e.flatMap(a=>a.filterOptions.map(r=>{const{filterFn:o,label:l,type:c,value:d,options:g,minValue:p,maxValue:u}=r;switch(c){case"numberRange":{const f=Ua(p,u,a.placeholder);return t.jsx(ce,{filter:r,filterValue:f,icon:a.icon,label:a.label,onClose:n},l)}case"dateRange":{const f=Ga(p==null?void 0:p.toString(),u==null?void 0:u.toString());return t.jsx(ce,{filter:r,filterValue:f,icon:a.icon,label:a.label,onClose:n},l)}case"radioButton":case"checkboxes":{const f=ln(g);return t.jsx(ce,{filter:r,filterValue:f,icon:a.icon,label:a.label,onClose:n},l)}case void 0:case"select":case"text":default:{const f=Ja(d),h=Va(c,a.label,o);return t.jsx(ce,{filter:r,filterValue:f,icon:a.icon,label:h,onClose:n},l)}}})).filter(a=>{if(a===null)return!1;const{filterValue:r}=a.props;return!s._.isNil(r)&&!s._.isEmpty(String(r))});return i.length>0?t.jsx($,{alignItems:"center",display:"flex",gap:.5,pb:1,width:"100%",wrap:"wrap",children:i}):null},qa=(e,n)=>{function i(l,c){if(c.value===""||c.value===void 0||s._.defaultTo(c.isBackFilter,!1))return!0;switch(c.filterFn){case"includesInsensitive":return String(l[c.key]).toLowerCase().includes(c.value.toLowerCase());case"caseInsensitive":case void 0:default:return String(l[c.key]).toLowerCase()===c.value.toLowerCase()}}function a(l,c){if(!c.options||c.options.length===0)return!0;const d=c.options.filter(g=>g.checked).map(g=>g.value);return d.length===0?!0:d.includes(String(l[c.key]))}function r(l,c,d){const g=d(String(l[c.key])),{minValue:p,maxValue:u}=c,f=s._.isEmpty(p)&&typeof p!="number"?void 0:d(String(p)),h=s._.isEmpty(u)&&typeof u!="number"?void 0:d(String(u));return s._.isUndefined(f)&&s._.isUndefined(h)?!0:(f??-1/0)<=g&&g<=(h??1/0)}function o(l){return n.every(c=>{if(typeof c.key=="function")return c.key(l,c.value);switch(c.type){case"radioButton":case"checkboxes":return a(l,c);case"numberRange":return r(l,c,Number);case"dateRange":return r(l,c,d=>new Date(d));case"select":case"text":default:return i(l,c)}})}return e.filter(o)},bt=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,Ka=e=>{var i;const n=((i=e.options)==null?void 0:i.map(a=>({...a,checked:void 0})))??void 0;return{...e,minValue:void 0,maxValue:void 0,value:void 0,options:n}},Xa=({dataset:e,localStorageKey:n,options:i,setFilteredDataset:a,onFiltersChange:r,onReset:o,onSearch:l,variant:c="ungrouped"})=>{const d=Ce("filters-modal"),[g,p]=x.useState([]),[u,f]=x.useState(bt(g)),h=i.map(w=>({...w,filterOptions:w.filterOptions.map(v=>g.find(C=>C.key===v.key&&C.type===v.type&&C.filterFn===v.filterFn)??{...v})})),b=x.useCallback(w=>{p([...w]),localStorage.setItem(n,JSON.stringify(w))},[p,n]),y=x.useCallback(()=>{o&&o(),d.toggle()},[d,o]),m=x.useCallback(w=>()=>{o&&o();const v=g.map(k=>k.key===w.key&&k.type===w.type&&k.filterFn===w.filterFn?Ka(k):k);p(v),localStorage.setItem(n,JSON.stringify(v))},[g,n,o]);return x.useEffect(()=>{const w=localStorage.getItem(n),v=i.flatMap(C=>C.filterOptions),k=w?JSON.parse(w):v;v.flatMap(C=>C.value).filter(Boolean).length>0||v.flatMap(C=>C.options).filter(C=>(C==null?void 0:C.checked)===void 0).length>0?(p(v),localStorage.setItem(n,JSON.stringify(v))):p(k)},[n,i,p]),x.useEffect(()=>{a&&e!==void 0&&a(qa(e,g)),f(bt(g)),r==null||r(g)},[e,g,a,f,r]),{Filters:()=>t.jsxs($,{alignItems:"center",display:"flex",gap:.25,maxWidth:"100%",position:"relative",wrap:"wrap",children:[t.jsx($,{pr:.25,children:t.jsx(P,{icon:"filter",id:"filterBtn",onClick:y,tag:u.toString(),variant:"ghost"})}),d.isOpen&&t.jsx(sn,{modalRef:d,onApplyFilters:b,onSearch:l,options:h,variant:c})]}),options:h,removeFilter:m}},nt=({_portal:e=!0,alert:n,cancelButton:i=void 0,children:a=void 0,confirmButton:r=void 0,content:o=void 0,description:l=void 0,modalRef:c,otherActions:d=void 0,onClose:g=void 0,tabItems:p=void 0,title:u=void 0,size:f,id:h="modal-container"})=>{const b=s.Je(),y=t.jsx(Ut,{"aria-label":c.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs(et,{$size:f,"data-testid":h,flexDirection:"column",id:h,children:[!s._.isEmpty(u)&&!s._.isNil(u)&&t.jsx(Vt,{description:l,modalRef:c,onClose:g,otherActions:d,title:u}),p&&t.jsx($,{borderTop:`1px solid ${b.palette.gray[300]}`,display:"block",mb:1.25,position:"sticky",children:t.jsx(tt,{items:p})}),(s._.isObject(o)||a)&&t.jsxs(va,{children:[a,s._.isObject(o)&&s._.isString(o.imageSrc)&&t.jsx(za,{$framed:o.imageFramed,children:t.jsx(Q,{alt:"modal-img",publicId:o.imageSrc})}),s._.isObject(o)&&s._.isString(o.imageText)&&t.jsx(I,{size:"sm",children:o.imageText})]}),t.jsx(Gt,{alert:n,cancelButton:i,confirmButton:r,modalRef:c})]})});return e&&c.isOpen?re.createPortal(y,document.getElementById("portals")??document.body):c.isOpen?y:null},Za=(e,n,i)=>{const a=Ce("confirm-dialog-modal"),r=x.useRef(null),o=x.useCallback(async()=>(a.open(),new Promise(g=>{r.current=g})),[a]),l=x.useCallback(()=>{var g;a.close(),(g=r.current)==null||g.call(r,!0)},[a]),c=x.useCallback(()=>{var g;a.close(),(g=r.current)==null||g.call(r,!1)},[a]);return[o,({children:g})=>{const[p,u]=x.useState(i),f=x.useCallback(()=>{u({...i})},[]),h=x.useCallback(m=>()=>{u(j=>({...j,[m]:{...j[m],state:!j[m].state}}))},[]),b=!Object.values(p).every(({state:m})=>m),y=Object.entries(p).map(([m,{state:j,label:w}])=>t.jsx(ne,{defaultChecked:j,label:w,name:m,onChange:h(m)},m));return t.jsxs(nt,{"data-testid":e,id:e,modalRef:{...a,close:c},onClose:f,size:"sm",title:n,children:[g,t.jsx($,{display:"flex",flexDirection:"column",gap:.5,children:y}),t.jsx(Yt,{disabled:b,id:e,onConfirm:l})]})}]},Qa=()=>{const[e,n]=x.useState(!1),[i,a]=x.useState(),r=x.useRef(null),o=Ce("confirm-dialog-modal"),l=x.useCallback(async p=>(a(p),n(!0),new Promise(u=>{r.current=u})),[]),c=x.useCallback(()=>{var p;n(!1),a(void 0),(p=r.current)==null||p.call(r,!0)},[]),d=x.useCallback(()=>{var p;n(!1),a(void 0),(p=r.current)==null||p.call(r,!1)},[]);return x.useEffect(()=>{o.setIsOpen(e)},[e,o]),{ConfirmDialog:({id:p="confirm-dialog-modal",children:u})=>t.jsxs(nt,{cancelButton:{onClick:d,text:"Cancel"},confirmButton:{id:(i==null?void 0:i.id)??"modal-confirm",onClick:c,text:"Confirm"},description:i==null?void 0:i.message,id:p,modalRef:{...o,close:d},size:"sm",title:i==null?void 0:i.title,children:[i==null?void 0:i.content,u]}),confirm:l}},er=s.st.ul`
|
|
1967
1968
|
${({theme:e})=>`
|
|
1968
1969
|
align-items: flex-start;
|
|
1969
1970
|
border-radius: ${e.spacing[.25]};
|
|
@@ -2036,7 +2037,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
2036
2037
|
> *:last-child {
|
|
2037
2038
|
margin-right: 0;
|
|
2038
2039
|
}
|
|
2039
|
-
`,yt={md:{description:"md",title:"md"},sm:{description:"sm",title:"xs"}},or=({cancelButton:e=void 0,confirmButton:n=void 0,description:i,imageSrc:a="integrates/empty/addRoot",padding:r=1.25,title:o,size:l="md"})=>{const c=(n??e)!==void 0;return t.jsxs(ir,{$padding:r,children:[t.jsx(ar,{children:t.jsx(
|
|
2040
|
+
`,yt={md:{description:"md",title:"md"},sm:{description:"sm",title:"xs"}},or=({cancelButton:e=void 0,confirmButton:n=void 0,description:i,imageSrc:a="integrates/empty/addRoot",padding:r=1.25,title:o,size:l="md"})=>{const c=(n??e)!==void 0;return t.jsxs(ir,{$padding:r,children:[t.jsx(ar,{children:t.jsx(Q,{alt:"empty-icon",publicId:a})}),t.jsx(U,{fontWeight:"bold",lineSpacing:1.75,mb:.25,size:yt[l].title,textAlign:"center",children:o}),t.jsx(I,{mb:c?2:void 0,size:yt[l].description,textAlign:"center",children:i}),c?t.jsxs(rr,{children:[e&&t.jsx(Ue,{buttonProps:e,variant:"tertiary"}),n&&t.jsx(Ue,{buttonProps:n,variant:"primary"})]}):void 0]})},sr=({children:e})=>{const n=s.useFormContext();return e({...n})},lr=s.st.form`
|
|
2040
2041
|
${({theme:e})=>`
|
|
2041
2042
|
align-items: flex-start;
|
|
2042
2043
|
align-self: stretch;
|
|
@@ -2161,12 +2162,12 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
2161
2162
|
stroke-width: 10px;
|
|
2162
2163
|
transform-origin: 50% 50%;
|
|
2163
2164
|
opacity: ${({$color:e})=>e==="white"?"20%":"unset"};
|
|
2164
|
-
`,Cr=({color:e="red",label:n,size:i})=>{const a=s.Je();return t.jsxs($,{alignItems:"center",display:"flex",children:[t.jsxs(jr,{$size:i,viewBox:"0 0 100 100",children:[t.jsx(kr,{$color:e,cx:"50",cy:"50",r:"45"}),t.jsx(vr,{$color:e,cx:"50",cy:"50",r:"45"})]}),n&&t.jsx(I,{color:e==="red"||e==="blue"?a.palette.gray[700]:a.palette.white,ml:.5,size:"sm",children:n})]})},Sr={company:{height:"83px",width:"460px"},footer:{height:"57px",width:"315px"},header:{height:"35px",width:"160px"},icon:{height:"40px",width:"40px"},inline:{width:"150px"}},zr=({publicId:e,variant:n})=>t.jsx($,{...Sr[n],children:t.jsx(
|
|
2165
|
+
`,Cr=({color:e="red",label:n,size:i})=>{const a=s.Je();return t.jsxs($,{alignItems:"center",display:"flex",children:[t.jsxs(jr,{$size:i,viewBox:"0 0 100 100",children:[t.jsx(kr,{$color:e,cx:"50",cy:"50",r:"45"}),t.jsx(vr,{$color:e,cx:"50",cy:"50",r:"45"})]}),n&&t.jsx(I,{color:e==="red"||e==="blue"?a.palette.gray[700]:a.palette.white,ml:.5,size:"sm",children:n})]})},Sr={company:{height:"83px",width:"460px"},footer:{height:"57px",width:"315px"},header:{height:"35px",width:"160px"},icon:{height:"40px",width:"40px"},inline:{width:"150px"}},zr=({publicId:e,variant:n})=>t.jsx($,{...Sr[n],children:t.jsx(Q,{alt:"logo",publicId:e})}),Ir=s.st(s.Lottie).attrs(({autoplay:e=!0})=>({autoplay:e,className:"comp-lottie"}))`
|
|
2165
2166
|
${({$size:e=16})=>`
|
|
2166
2167
|
height: ${e}px;
|
|
2167
2168
|
width: ${e}px;
|
|
2168
2169
|
`}
|
|
2169
|
-
`,Tr=e=>{const{size:n}=e;return t.jsx(Ir,{$size:n,...e})},Fr=({children:e,commitSha:n,commitShortSha:i,parentElement:a,userInfo:r,setVisibility:o})=>{const l=s.Je(),{userName:c,email:d,phone:g,userRole:p}=r;return ie(a,()=>{o(!1)}),t.jsxs(Xt,{children:[t.jsx("li",{className:"user-info",children:t.jsxs($,{display:"inline-flex",gap:.25,width:"100%",children:[t.jsxs($,{display:"flex",flexDirection:"column",gap:.25,width:"100%",children:[t.jsx(I,{color:l.palette.gray[800],fontWeight:"bold",size:"sm",children:c}),t.jsx(I,{color:l.palette.gray[400],size:"sm",children:d}),s.lodashExports.isUndefined(g)?void 0:t.jsx(I,{color:l.palette.gray[400],size:"sm",children:g})]}),t.jsx($,{children:t.jsx(V,{tagLabel:p,variant:"role"})})]})}),t.jsx(ae,{}),e,t.jsx(ae,{}),t.jsx("li",{className:"commit-info",children:t.jsx(
|
|
2170
|
+
`,Tr=e=>{const{size:n}=e;return t.jsx(Ir,{$size:n,...e})},Fr=({children:e,commitSha:n,commitShortSha:i,parentElement:a,userInfo:r,setVisibility:o})=>{const l=s.Je(),{userName:c,email:d,phone:g,userRole:p}=r;return ie(a,()=>{o(!1)}),t.jsxs(Xt,{children:[t.jsx("li",{className:"user-info",children:t.jsxs($,{display:"inline-flex",gap:.25,width:"100%",children:[t.jsxs($,{display:"flex",flexDirection:"column",gap:.25,width:"100%",children:[t.jsx(I,{color:l.palette.gray[800],fontWeight:"bold",size:"sm",children:c}),t.jsx(I,{color:l.palette.gray[400],size:"sm",children:d}),s.lodashExports.isUndefined(g)?void 0:t.jsx(I,{color:l.palette.gray[400],size:"sm",children:g})]}),t.jsx($,{children:t.jsx(V,{tagLabel:p,variant:"role"})})]})}),t.jsx(ae,{}),e,t.jsx(ae,{}),t.jsx("li",{className:"commit-info",children:t.jsx(K,{href:`https://gitlab.com/fluidattacks/universe/-/tree/${n}`,iconPosition:"hidden",children:t.jsx(I,{color:l.palette.gray[400],size:"xs",children:`commit : ${i}`})})})]})},Nr=s.st.button`
|
|
2170
2171
|
align-items: center;
|
|
2171
2172
|
background-color: transparent;
|
|
2172
2173
|
border: unset;
|
|
@@ -2233,7 +2234,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
2233
2234
|
color: ${e.palette[n][500]};
|
|
2234
2235
|
}
|
|
2235
2236
|
`}
|
|
2236
|
-
`,
|
|
2237
|
+
`,Lr=e=>e==="warning"?"triangle-exclamation":e==="info"?"circle-info":e==="success"?"circle-check":"circle-exclamation",Ar=({description:e,onClose:n,title:i,variant:a})=>{const r=s.Je(),o=x.useCallback(()=>{n==null||n()},[n]);return t.jsxs(Er,{$variant:a,className:`notification notification__${a}`,role:"alertdialog",children:[t.jsxs(Rr,{$variant:a,children:[t.jsx(F,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),t.jsx(F,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),t.jsx(F,{icon:Lr(a),iconClass:"icon",iconSize:"xs",iconType:"fa-light"})]}),t.jsxs($,{pr:1.5,children:[t.jsx(U,{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:o,px:.125,py:.125,variant:"ghost"})]})},Pr=s.st.div`
|
|
2237
2238
|
width: fit-content;
|
|
2238
2239
|
border: ${({theme:e})=>`1px solid ${e.palette.gray[300]}`};
|
|
2239
2240
|
border-radius: 4px;
|
|
@@ -2266,7 +2267,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
2266
2267
|
&::-webkit-inner-spin-button {
|
|
2267
2268
|
opacity: 1;
|
|
2268
2269
|
}
|
|
2269
|
-
`,Br=x.forwardRef(function({autoUpdate:n=!1,decimalPlaces:i=0,defaultValue:a=0,max:r,min:o,name:l,onEnter:c,tooltipMessage:d,...g},p){const u=i<0?0:i,[f,h]=x.useState(Number(a).toFixed(u)),b=x.useCallback(j=>{const w=s.lodashExports.toNumber(j.target.value);j.target.value.endsWith(".")?h(j.target.value):w>=Number(o)&&w<=Number(r)&&(h(String(w)),n&&c(s.lodashExports.toNumber(w.toFixed(u)))),j.stopPropagation()},[n,u,r,o,c]),y=x.useCallback(j=>{j.currentTarget.contains(j.relatedTarget)||h(Number(a).toFixed(u)),j.stopPropagation()},[u,a]),m=x.useCallback(j=>{j.stopPropagation(),j.key==="Enter"&&!s.lodashExports.isEmpty(j.currentTarget.value)&&c(s.lodashExports.toNumber(j.currentTarget.value))},[c]);return t.jsx(Pr,{onBlur:y,tabIndex:-1,children:t.jsx(G,{id:"numberInputTooltip",tip:d,children:t.jsx(Wr,{...g,"aria-label":l,"aria-valuemax":Number(r),"aria-valuemin":Number(o),"aria-valuenow":Number(f),max:r,min:o,name:l,onChange:b,onKeyUp:m,ref:p,step:10**-u,type:"number",value:f})})})}),Or={Azure:"integrates/autoenrollment/azureIcon",Bitbucket:"integrates/autoenrollment/bitbucketLogo",GitHub:"integrates/autoenrollment/githubLogo",GitLab:"integrates/autoenrollment/gitlabIcon"},Ge=({icon:e,label:n,onClick:i,onlyLabel:a=!1,provider:r="GitLab"})=>{const o=s.Je();return t.jsxs($,{alignItems:"center",bgColorHover:o.palette.gray[100],borderRadius:"4px",cursor:"pointer",display:"flex",flexDirection:"column",gap:.25,height:"62px",justify:"center",minWidth:"64px",onClick:i,pb:.5,pl:.25,pr:.25,pt:.5,children:[a?!1:t.jsx($,{height:"24px",width:"24px",children:e===void 0?t.jsx(
|
|
2270
|
+
`,Br=x.forwardRef(function({autoUpdate:n=!1,decimalPlaces:i=0,defaultValue:a=0,max:r,min:o,name:l,onEnter:c,tooltipMessage:d,...g},p){const u=i<0?0:i,[f,h]=x.useState(Number(a).toFixed(u)),b=x.useCallback(j=>{const w=s.lodashExports.toNumber(j.target.value);j.target.value.endsWith(".")?h(j.target.value):w>=Number(o)&&w<=Number(r)&&(h(String(w)),n&&c(s.lodashExports.toNumber(w.toFixed(u)))),j.stopPropagation()},[n,u,r,o,c]),y=x.useCallback(j=>{j.currentTarget.contains(j.relatedTarget)||h(Number(a).toFixed(u)),j.stopPropagation()},[u,a]),m=x.useCallback(j=>{j.stopPropagation(),j.key==="Enter"&&!s.lodashExports.isEmpty(j.currentTarget.value)&&c(s.lodashExports.toNumber(j.currentTarget.value))},[c]);return t.jsx(Pr,{onBlur:y,tabIndex:-1,children:t.jsx(G,{id:"numberInputTooltip",tip:d,children:t.jsx(Wr,{...g,"aria-label":l,"aria-valuemax":Number(r),"aria-valuemin":Number(o),"aria-valuenow":Number(f),max:r,min:o,name:l,onChange:b,onKeyUp:m,ref:p,step:10**-u,type:"number",value:f})})})}),Or={Azure:"integrates/autoenrollment/azureIcon",Bitbucket:"integrates/autoenrollment/bitbucketLogo",GitHub:"integrates/autoenrollment/githubLogo",GitLab:"integrates/autoenrollment/gitlabIcon"},Ge=({icon:e,label:n,onClick:i,onlyLabel:a=!1,provider:r="GitLab"})=>{const o=s.Je();return t.jsxs($,{alignItems:"center",bgColorHover:o.palette.gray[100],borderRadius:"4px",cursor:"pointer",display:"flex",flexDirection:"column",gap:.25,height:"62px",justify:"center",minWidth:"64px",onClick:i,pb:.5,pl:.25,pr:.25,pt:.5,children:[a?!1:t.jsx($,{height:"24px",width:"24px",children:e===void 0?t.jsx(Q,{alt:`${r} Logo`,height:"100%",publicId:Or[r],width:"100%"}):t.jsx(F,{icon:e,iconColor:"#000",iconSize:"sm",iconType:"fa-light"})}),t.jsx($,{alignItems:"center",display:"flex",minWidth:"24px",children:t.jsx(I,{color:o.palette.gray[800],display:"inline",size:"xs",textAlign:"center",whiteSpace:a?"break-spaces":"nowrap",wordWrap:"unset",children:n??r})})]})},Hr=({align:e="end",buttonLabel:n="Add Credential",children:i,id:a,manualOption:r,providers:o})=>{const l=s.Je(),[c,d]=x.useState(!1),g=x.useRef(null);ie(g.current,()=>{d(!1)},!0);const p=x.useCallback(h=>{r==null||r.onClick(h),d(!1)},[r]),u=x.useCallback(()=>{d(h=>!h)},[d]),f=x.useCallback(h=>b=>{var y;(y=o[h])==null||y.onClick(b),d(!1)},[o]);return t.jsxs($,{alignItems:e,display:"flex",flexDirection:"column",position:"relative",ref:g,width:"max-content",zIndex:10,children:[t.jsx(P,{icon:"plus",onClick:u,variant:"primary",children:n}),t.jsxs($,{alignItems:"center",bgColor:"#fff",border:`1px solid ${l.palette.gray[200]}`,borderRadius:"4px",display:"flex",gap:.5,height:"78px",id:a,pb:.5,pl:.75,position:"absolute",pr:.75,pt:.5,shadow:"md",top:"40px",visibility:c?"visible":"hidden",zIndex:10,children:[Object.keys(o).map(h=>t.jsx(Ge,{onClick:f(h),provider:h},h)),r===void 0?void 0:t.jsx(Ge,{icon:"square-plus",label:r.label??"Add manually",onClick:p}),i]})]})},Mr=s.st.div`
|
|
2270
2271
|
${({theme:e})=>`
|
|
2271
2272
|
height: ${e.spacing[1]};
|
|
2272
2273
|
width: ${e.spacing[1]};
|
|
@@ -2377,7 +2378,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
2377
2378
|
border-start-end-radius: ${i&&n<100?"0":"inherit"};
|
|
2378
2379
|
background-color: ${a==="compliance"?Ur(e,n):"inherit"};
|
|
2379
2380
|
`}
|
|
2380
|
-
`,Yr=({minWidth:e=100,percentage:n,percentageLocation:i="right",showPercentage:a=!1,orientation:r="horizontal",rounded:o=!0,variant:l="default"})=>{const c=a&&i==="left",d=a?t.jsx($,{alignItems:"center",display:"flex",justify:c?"flex-end":"flex-start",width:"40px",children:t.jsx(I,{ml:.5,mr:c?.5:0,size:"sm",children:`${n}%`})}):null,g=t.jsx(Gr,{$minWidth:e,$orientation:r,$rounded:o,$variant:l,className:r,children:t.jsx(Vr,{$percentage:n,$rounded:o,$variant:l,className:"progress-bar"})});return t.jsxs($,{alignItems:"center",display:"inline-flex",flexDirection:c?"row-reverse":"row",height:r==="horizontal"?"auto":"100%",maxWidth:c?`${e+43}px`:void 0,minWidth:c?`${e+43}px`:void 0,textAlign:"end",children:[g,d]})},pn=({description:e="",highlightDescription:n="",mobile:i})=>{const a=s.Je(),r=i?"md":"lg",o=typeof n=="string",l=o?"":new RegExp(`(${n.join("|")})`,"u");return n.length>0?t.jsx(I,{display:"inline",lineSpacing:1.5,size:r,textAlign:i?"start":"center",children:o?t.jsxs(x.Fragment,{children:[t.jsx(pe,{color:a.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:r,children:n}),e]}):e.split(l).map((c,d)=>n.includes(c)?t.jsx(pe,{color:a.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:r,children:c},`${d+1}-bold`):c)}):t.jsx(I,{lineSpacing:1.5,size:r,textAlign:i?"start":"center",children:e})},qr=({_portal:e=!1,cancelButton:n,darkBackground:i=!1,children:a,confirmButton:r,container:o,description:l,highlightDescription:c="",image:d,maxWidth:g,mobile:p=!1,title:u,titleColor:f})=>{const h=s.Je(),{alt:b,src:y,width:m="77px",height:j="77px"}=d,w=x.useCallback(()=>{n==null||n.onClick()},[n]),v=x.useCallback(()=>{r==null||r.onClick()},[r]),k=t.jsx(U,{color:f,fontWeight:"bold",lineSpacing:p?1.5:2.5,mb:p?1.5:0,size:p?"sm":"lg",textAlign:p?"start":"center",children:u}),C=t.jsx(
|
|
2381
|
+
`,Yr=({minWidth:e=100,percentage:n,percentageLocation:i="right",showPercentage:a=!1,orientation:r="horizontal",rounded:o=!0,variant:l="default"})=>{const c=a&&i==="left",d=a?t.jsx($,{alignItems:"center",display:"flex",justify:c?"flex-end":"flex-start",width:"40px",children:t.jsx(I,{ml:.5,mr:c?.5:0,size:"sm",children:`${n}%`})}):null,g=t.jsx(Gr,{$minWidth:e,$orientation:r,$rounded:o,$variant:l,className:r,children:t.jsx(Vr,{$percentage:n,$rounded:o,$variant:l,className:"progress-bar"})});return t.jsxs($,{alignItems:"center",display:"inline-flex",flexDirection:c?"row-reverse":"row",height:r==="horizontal"?"auto":"100%",maxWidth:c?`${e+43}px`:void 0,minWidth:c?`${e+43}px`:void 0,textAlign:"end",children:[g,d]})},pn=({description:e="",highlightDescription:n="",mobile:i})=>{const a=s.Je(),r=i?"md":"lg",o=typeof n=="string",l=o?"":new RegExp(`(${n.join("|")})`,"u");return n.length>0?t.jsx(I,{display:"inline",lineSpacing:1.5,size:r,textAlign:i?"start":"center",children:o?t.jsxs(x.Fragment,{children:[t.jsx(pe,{color:a.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:r,children:n}),e]}):e.split(l).map((c,d)=>n.includes(c)?t.jsx(pe,{color:a.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:r,children:c},`${d+1}-bold`):c)}):t.jsx(I,{lineSpacing:1.5,size:r,textAlign:i?"start":"center",children:e})},qr=({_portal:e=!1,cancelButton:n,darkBackground:i=!1,children:a,confirmButton:r,container:o,description:l,highlightDescription:c="",image:d,maxWidth:g,mobile:p=!1,title:u,titleColor:f})=>{const h=s.Je(),{alt:b,src:y,width:m="77px",height:j="77px"}=d,w=x.useCallback(()=>{n==null||n.onClick()},[n]),v=x.useCallback(()=>{r==null||r.onClick()},[r]),k=t.jsx(U,{color:f,fontWeight:"bold",lineSpacing:p?1.5:2.5,mb:p?1.5:0,size:p?"sm":"lg",textAlign:p?"start":"center",children:u}),C=t.jsx(Q,{alt:b,height:j,publicId:y,width:m}),E=t.jsx($,{alignItems:"center","aria-label":u,"aria-modal":"true",bgColor:i?"rgba(52, 64, 84, 70%)":"",display:"flex",height:"100vh",justify:"center",left:"0",position:e?"fixed":"absolute",top:"0px",width:"100%",zIndex:99999,children:t.jsxs($,{bgColor:h.palette.white,border:`1px solid ${h.palette.gray[200]}`,borderRadius:"8px",display:"inline-flex",flexDirection:"column",maxWidth:g,position:"relative",px:p?1.5:2.5,py:p?1.5:2.5,shadow:"lg",width:p?"335px":"100%",zIndex:11,children:[t.jsxs($,{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",children:[p?k:void 0,p?t.jsx($,{alignItems:"center",height:j,justify:"center",mr:0,children:t.jsx($,{bgColor:h.palette.gray[100],left:"0",position:"absolute",textAlign:"center",width:"100%",children:C})}):C,t.jsxs($,{display:"flex",flexDirection:"column",gap:.5,mb:1.5,mt:1.5,children:[p?void 0:k,t.jsx(pn,{description:l,highlightDescription:c,mobile:p})]})]}),a&&t.jsx($,{mb:1,scroll:"y",children:t.jsx($,{height:"100%",children:a})}),t.jsxs($,{alignItems:"flex-start",display:"flex",gap:1,justify:p?"start":"center",children:[s.lodashExports.isObject(r)?t.jsx(P,{onClick:v,variant:(r==null?void 0:r.variant)??"primary",children:r==null?void 0:r.text},r==null?void 0:r.key):void 0,s.lodashExports.isObject(n)?t.jsx(P,{onClick:w,variant:(n==null?void 0:n.variant)??"tertiary",children:n==null?void 0:n.text},n==null?void 0:n.key):void 0]})]})});return e?re.createPortal(E,o??document.body):E},Kr=s.st.div.attrs({className:"comp-scroll-up"})`
|
|
2381
2382
|
bottom: 15px;
|
|
2382
2383
|
position: fixed;
|
|
2383
2384
|
right: 140px;
|
|
@@ -2758,4 +2759,4 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
2758
2759
|
}
|
|
2759
2760
|
`}
|
|
2760
2761
|
`;const Io={advanced:{title:"Advanced plan",benefits:"Leverage vulnerability scanning + AI + expert intelligence",buttonText:"Contact sales",description:"For teams that want to discover risk exposure with speed and accuracy.",priceGroup:"$1,579"},essential:{title:"Essential plan",benefits:"Leverage vulnerability scanning",buttonText:"Start a 21-day free trial",description:`For teams that want to discover risk exposure quickly
|
|
2761
|
-
through our scanning tool.`,priceAuthor:"$499",priceGroup:"$1,579"}},To=({description:e,onClick:n,plan:i})=>{const{title:a,description:r,benefits:o,buttonText:l}=Io[i],c=e??r;return t.jsxs(zo,{className:i,children:[t.jsxs($,{display:"flex",flexDirection:"column",gap:.25,pt:i==="essential"?1.75:0,children:[i==="advanced"&&fn,t.jsx(U,{color:T.palette.gray[900],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:a}),t.jsx(I,{color:T.palette.gray[400],fontWeight:"semibold",pb:i==="essential"?1.25:0,size:"sm",sizeSm:"xs",children:o})]}),t.jsx(I,{lineSpacing:1.5,lineSpacingSm:1.25,pb:i==="advanced"?1.5:0,size:"md",sizeSm:"sm",children:c}),t.jsx(P,{onClick:n,variant:"primary",children:l})]})};exports.Accordion=Yn;exports.AccordionContent=wt;exports.ActionButton=_e;exports.Alert=ii;exports.AppliedFilter=ce;exports.AppliedFilters=Ya;exports.ArrayField=He;exports.Avatar=pi;exports.BaseButtonComponent=Ve;exports.BaseComponent=ve;exports.BaseSpanComponent=qe;exports.BaseTextComponent=Ye;exports.Button=P;exports.Button$1=Ie;exports.ButtonToolbarCenter=
|
|
2762
|
+
through our scanning tool.`,priceAuthor:"$499",priceGroup:"$1,579"}},To=({description:e,onClick:n,plan:i})=>{const{title:a,description:r,benefits:o,buttonText:l}=Io[i],c=e??r;return t.jsxs(zo,{className:i,children:[t.jsxs($,{display:"flex",flexDirection:"column",gap:.25,pt:i==="essential"?1.75:0,children:[i==="advanced"&&fn,t.jsx(U,{color:T.palette.gray[900],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:a}),t.jsx(I,{color:T.palette.gray[400],fontWeight:"semibold",pb:i==="essential"?1.25:0,size:"sm",sizeSm:"xs",children:o})]}),t.jsx(I,{lineSpacing:1.5,lineSpacingSm:1.25,pb:i==="advanced"?1.5:0,size:"md",sizeSm:"sm",children:c}),t.jsx(P,{onClick:n,variant:"primary",children:l})]})};exports.Accordion=Yn;exports.AccordionContent=wt;exports.ActionButton=_e;exports.Alert=ii;exports.AppliedFilter=ce;exports.AppliedFilters=Ya;exports.ArrayField=He;exports.Avatar=pi;exports.BaseButtonComponent=Ve;exports.BaseComponent=ve;exports.BaseSpanComponent=qe;exports.BaseTextComponent=Ye;exports.Button=P;exports.Button$1=Ie;exports.ButtonToolbarCenter=Ai;exports.ButtonToolbarRow=Wi;exports.ButtonToolbarStartRow=Pi;exports.Calendar=It;exports.Calendar$1=Et;exports.Calendar$2=Lt;exports.CalendarCell=zt;exports.CalendarGrid=De;exports.CardHeader=Ne;exports.CardWithImage=xi;exports.CardWithInput=ia;exports.CardWithOptions=Qt;exports.CardWithSelector=da;exports.CardWithSwitch=ua;exports.Carousel=$a;exports.Checkbox=ne;exports.CodeSnippet=wa;exports.Col=Oe;exports.ColumFilters=sn;exports.ColumnsModal=Wa;exports.ComboBox=Xe;exports.ComboBoxField=Be;exports.Container=$;exports.CustomThemeProvider=On;exports.DateField=Ft;exports.DateSelector=ge;exports.Description=pn;exports.Dialog=Re;exports.Divider=ae;exports.Dropdown=nr;exports.Editable=Li;exports.EmptyButton=Ue;exports.EmptyState=or;exports.FilePreview=kt;exports.FilterControl=nn;exports.FilterForm=Je;exports.FilterFormContent=an;exports.FiltersList=on;exports.Form=cr;exports.Gap=Hi;exports.GridContainer=pr;exports.GroupSelector=ur;exports.Header=Ee;exports.Header$1=Vt;exports.Heading=U;exports.Icon=F;exports.IconButton=O;exports.IndicatorCard=xr;exports.InfoSidebar=fr;exports.InnerForm=sr;exports.Input=Le;exports.InputArray=_i;exports.InputDate=Dt;exports.InputDateRange=Rt;exports.InputDateTime=Ri;exports.InputFile=Vi;exports.InputNumber=Pt;exports.InputNumberRange=Wt;exports.InputTags=qi;exports.Label=Ke;exports.Link=K;exports.ListItem=Se;exports.ListItemsWrapper=Xt;exports.LittleFlag=br;exports.Loading=Cr;exports.LocationCode=Jt;exports.Logo=zr;exports.Lottie=Tr;exports.MemoizedImage=Q;exports.Menu=Fr;exports.MenuItem=gn;exports.MessageBanner=Dr;exports.Modal=nt;exports.ModalConfirm=Yt;exports.ModalFooter=Gt;exports.Notification=Ar;exports.NotificationSign=qt;exports.NumberField=Fe;exports.NumberInput=Br;exports.OAuthSelector=Hr;exports.Option=Ct;exports.OptionBoxContainer=it;exports.OptionContainer=Ge;exports.OptionContainer$1=cn;exports.OutlineContainer=J;exports.PhoneInput=ta;exports.PlanCard=To;exports.PopUp=qr;exports.Popover=ke;exports.PremiumFeature=dn;exports.PreviewPanel=Zt;exports.PriorityScore=_r;exports.ProgressBar=Yr;exports.RadioButton=Qe;exports.RecommendedTag=fn;exports.Row=At;exports.ScrollUpButton=Xr;exports.Search=xe;exports.SearchPanel=tn;exports.SeverityBadge=Qr;exports.SeverityOverview=to;exports.SeverityOverviewBadge=de;exports.ShowOnHover=io;exports.SlideOutMenu=ro;exports.Slider=go;exports.Span=pe;exports.StepLapse=yo;exports.Tab=Kt;exports.TableButton=wo;exports.Tabs=tt;exports.Tag=V;exports.TagsField=Me;exports.Text=I;exports.TextArea=na;exports.Thumb=un;exports.TimeField=Nt;exports.TimeLine=ko;exports.TimeLineCard=xn;exports.Toggle=Mt;exports.Tooltip=G;exports.Tour=So;exports.baseStep=Co;exports.formatCheckValues=ln;exports.getStyledConfig=je;exports.hiddenProps=$t;exports.icons=Wn;exports.setBorder=ye;exports.setDisplay=$e;exports.setInteraction=we;exports.setMargin=he;exports.setPadding=fe;exports.setPosition=be;exports.setText=me;exports.theme=T;exports.uniqueIcons=Bn;exports.useCarousel=Bt;exports.useClickOutside=ie;exports.useCloudinaryImage=Ot;exports.useColumnsModal=ra;exports.useConditionsDialog=Za;exports.useConfirmDialog=Qa;exports.useDebouncedCallback=Ht;exports.useFilterForm=rn;exports.useFilters=Xa;exports.useModal=Ce;exports.useSearch=oa;exports.variantBuilder=q;
|