@orfium/ictinus 5.28.0 → 5.29.0

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/index.js CHANGED
@@ -21193,7 +21193,7 @@ const Pz = ({
21193
21193
  dataTestPrefixId: u
21194
21194
  }), x = !!(a || t);
21195
21195
  return /* @__PURE__ */ E("div", { css: Mz(), ref: w, "data-testid": `${u}_table_container`, children: [
21196
- x && /* @__PURE__ */ d(CV, { type: e, columnsConfig: a, columns: n, rowsConfig: t, containerRef: w, rowsCount: h.getRowModel().rows.length, dataTestPrefixId: u }),
21196
+ x && /* @__PURE__ */ d(CV, { type: e, columnsConfig: a, columns: n, rowsConfig: t, containerRef: w, rowsCount: (t == null ? void 0 : t.rowsCount) ?? h.getRowModel().rows.length, dataTestPrefixId: u }),
21197
21197
  /* @__PURE__ */ E("table", { css: Iz({
21198
21198
  sx: c == null ? void 0 : c.table
21199
21199
  }), "data-testid": `${u}_table`, children: [
@@ -21230,7 +21230,7 @@ const Pz = ({
21230
21230
  S.toggleExpanded(!_);
21231
21231
  } else C && S.toggleSelected();
21232
21232
  }
21233
- }, children: S.getVisibleCells().map((b) => /* @__PURE__ */ d(y4, { columnId: b.column.id, rowId: b.id, rowSize: o, width: b.column.getSize() || 100 / R, metaData: b.column.columnDef.meta, sx: c == null ? void 0 : c.td, dataTestPrefixId: u, children: vc(b.column.columnDef.cell, b.getContext()) }, b.id)) }, S.id),
21233
+ }, children: S.getVisibleCells().map((b) => /* @__PURE__ */ d(y4, { columnId: b.column.id, rowId: b.id, rowSize: o, width: b.column.getSize() || 100 / R, metaData: b.column.columnDef.meta, sx: typeof (c == null ? void 0 : c.td) == "function" ? c.td(b.row.original) : c == null ? void 0 : c.td, dataTestPrefixId: u, children: vc(b.column.columnDef.cell, b.getContext()) }, b.id)) }, S.id),
21234
21234
  S.getIsExpanded() && /* @__PURE__ */ d(ts, { children: /* @__PURE__ */ d(y4, { rowId: S.id, colSpan: h.getAllLeafColumns().length, isDetails: !0, dataTestPrefixId: u, children: r[T].details }) })
21235
21235
  ] });
21236
21236
  }) })
@@ -21536,7 +21536,7 @@ const uV = ({
21536
21536
  bulkActions: c,
21537
21537
  defaultAction: u
21538
21538
  } = n ?? {}, p = e === "interactive" && s, f = p ? Object.keys(s).length : l ? o : 0, C = p || l, m = p && f > 0, v = Q(() => /* @__PURE__ */ E("div", { "data-testid": `${i}_title`, children: [
21539
- /* @__PURE__ */ d(nr, { type: p ? "active" : "primary", variant: "label02", "data-testid": `${i}_title_items_count`, children: f }),
21539
+ /* @__PURE__ */ d(nr, { type: "active", variant: "label02", "data-testid": `${i}_title_items_count`, children: f }),
21540
21540
  /* @__PURE__ */ E(nr, { variant: "label02", children: [
21541
21541
  " items ",
21542
21542
  p ? "selected" : ""
@@ -137,7 +137,7 @@ Unable to find an `+(n===!1?"accessible ":"")+'element with the role "'+t+'"'+s+
137
137
  `:`
138
138
  border-left: ${r.tokens.colors.get(`borderColor.interactive.${pt(e)}`)} ${r.globals.borderWidth.get("3")} solid;
139
139
  box-shadow: ${r.globals.elevation["02"]};
140
- `,Zq=(e,t)=>r=>m.css("display:flex;flex-direction:column;overflow:hidden;padding:",r.globals.spacing.get("6"),";box-sizing:border-box;max-height:",P(294),";border-radius:",r.globals.borderRadius.get("3"),";background:",r.tokens.colors.get("backgroundColor.default"),";",Uq(e,t,r),";",""),Gq=()=>e=>m.css("display:flex;align-items:center;justify-content:space-between;padding-bottom:",e.globals.spacing.get("6"),";","");var Kq={name:"s5xdrg",styles:"display:flex;align-items:center"};const Yq=()=>()=>Kq,Xq=()=>e=>m.css("font-size:",e.globals.typography.fontSize.get("3"),";max-height:",P(194),";overflow:auto;width:",P(547),";",""),Qq=({message:e,type:t,styleType:r="elevated",primaryCTALabel:n="OK",primaryCTA:o,secondaryCTALabel:a="Cancel",secondaryCTA:i,description:l,closeCTA:s,dataTestId:u})=>{const d=o&&n||i&&a,f=N();return c.jsxs("div",{css:Zq(t,r),"notification-type":"snackbar",children:[c.jsxs("div",{css:Gq(),children:[c.jsxs("div",{css:Yq(),children:[c.jsx("div",{css:Md(),children:c.jsx(H,{name:rc(t),color:f.tokens.colors.get(`textColor.default.${pt(t)}`),size:24})}),c.jsx("div",{css:Ld(t),children:e})]}),c.jsx("span",{css:V1(),onClick:s,"data-testid":K("snackbar-close",u),children:c.jsx(H,{name:"close",color:f.tokens.colors.get("textColor.default.secondary"),size:24})})]}),c.jsx("div",{css:Xq(),"data-testid":K("snackbar-description",u),children:l}),d&&c.jsx(Bd,{primaryCTA:o,primaryCTALabel:n,secondaryCTA:i,secondaryCTALabel:a,dataTestPrefixId:"snackbar",dataTestId:u})]})},Jq=e=>t=>m.css("--_border-width:",t.dimension.borderWidth.get("default"),";--_outline-width:",t.dimension.borderWidth.get("focused"),";--_min-height:",I.rem(44),";--_min-content-width:",I.rem(100),";box-sizing:border-box;position:relative;isolation:isolate;padding:calc(",t.dimension.spacing.get("md")," - var(--_border-width)) calc(",t.dimension.spacing.get("md")," - var(--_border-width));display:inline-grid;grid-template-columns:auto minmax(var(--_min-content-width), 1fr) auto;grid-template-areas:'icon content actions close';align-items:center;background:",t.tokens.colors.get("palette.secondary.muted"),";border-radius:",t.dimension.borderRadius.get("md"),";border:var(--_border-width) solid ",oD(e.status,t),";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:sans-serif;min-height:var(--_min-height);outline:none;outline-offset:",I.rem(2),";transition:outline-offset 150ms cubic-bezier(0.4, 0, 0.2, 1);&:focus-visible{outline-offset:0;outline:var(--_outline-width) solid ",t.tokens.colors.get("borderColor.interactive.focused"),";}&:has([data-slot='button']){padding:calc(",t.dimension.spacing.get("sm")," - var(--_border-width)) calc(",t.dimension.spacing.get("md")," - var(--_border-width));}@container (max-width: calc(600px - 1px)){grid-template-areas:'icon content close' 'icon actions close';align-items:flex-start;&:has([data-slot='button']){padding:calc(",t.dimension.spacing.get("md")," - var(--_border-width)) calc(",t.dimension.spacing.get("md")," - var(--_border-width));}}@media (prefers-reduced-motion){transition:none;}",""),eD=()=>e=>m.css("grid-area:icon;margin-right:",e.dimension.spacing.get("md"),";pointer-events:none;",""),tD=()=>e=>m.css(j(e.tokens.typography.get("normal.body02")),";grid-area:content;cursor:default;",""),rD=()=>e=>m.css("grid-area:actions;display:flex;align-items:flex-start;flex-wrap:wrap;gap:",e.dimension.spacing.get("sm"),";margin-left:",e.globals.spacing.get("7"),";@container (max-width: calc(600px - 1px)){margin-left:0;margin-top:",e.dimension.spacing.get("sm"),";}",""),nD=()=>e=>m.css("grid-area:close;justify-self:end;margin-left:",e.dimension.spacing.get("lg"),";",""),oD=(e,t)=>{switch(e){case"informational":return t.tokens.colors.get("indicators.brand");case"error":return t.tokens.colors.get("textColor.default.error");case"warning":return t.tokens.colors.get("indicators.warning");case"success":return t.tokens.colors.get("indicators.success");default:return t.tokens.colors.get("borderColor.decorative.default")}},aD=(e,t)=>{switch(e){case"informational":return t.tokens.colors.get("indicators.brand");case"error":return t.tokens.colors.get("indicators.error");case"warning":return t.tokens.colors.get("indicators.warning");case"success":return t.tokens.colors.get("indicators.success");default:return t.tokens.colors.get("indicators.brand")}},W1={broadcast:Jq,icon:eD,content:tD,actions:rD,dismiss:nD};function iD(e){return e.current}function j1(e){const t=v.useRef(null);return v.useImperativeHandle(e,()=>iD(t)),t}const qd=v.forwardRef((e,t)=>{const{status:r="neutral",actions:n,children:o,onDismiss:a,dataTestPrefixId:i="",hasAutoFocus:l,...s}=e,u=N(),d=ie.useId(),f=j1(t),p=n&&n.type===v.Fragment?n.props.children:n,C=v.Children.toArray(p),y=v.useRef(l);return v.useEffect(()=>{y.current&&f.current&&f.current.focus(),y.current=!1},[f]),c.jsxs("div",{...s,css:W1.broadcast(e),ref:f,tabIndex:0,role:r==="warning"||r==="error"?"alert":"status","aria-describedby":a?d:void 0,"data-slot":"inline-alert","data-testid":`${i}broadcast`,children:[r!=="neutral"?c.jsx(H,{role:"img","aria-hidden":"true",name:r,css:W1.icon,color:aD(r,u)}):null,c.jsx("div",{css:W1.content,children:o}),C.length>0?c.jsx("div",{css:W1.actions,children:c.jsx(nn,{slots:{button:{size:"compact"},link:{size:2}},children:C})}):null,a?c.jsx(H,{role:"button","aria-label":"Dismiss notification",id:a?d:void 0,"data-testid":`${i}broadcast_dismiss`,name:"close",css:W1.dismiss,onClick:a,size:20}):null]})});qd.displayName="Broadcast";const lD=e=>t=>m.css("--_border-width:",t.dimension.borderWidth.get("default"),";--_outline-width:",t.dimension.borderWidth.get("focused"),";--_min-height:",I.rem(44),";--_min-content-width:",I.rem(100),";box-sizing:border-box;position:relative;isolation:isolate;padding:calc(",t.dimension.spacing.get("md")," - var(--_border-width)) calc(",t.dimension.spacing.get("md")," - var(--_border-width));display:inline-grid;grid-template-columns:auto minmax(var(--_min-content-width), 1fr) auto;grid-template-areas:'icon content actions close';align-items:center;background:",e.isAlt?t.tokens.colors.get("backgroundColor.default"):t.tokens.colors.get("palette.secondary.muted"),";border-radius:",t.dimension.borderRadius.get("md"),";border:var(--_border-width) solid ",t.tokens.colors.get("borderColor.decorative.default"),";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:sans-serif;min-height:var(--_min-height);outline:none;outline-offset:",I.rem(2),";transition:outline-offset 150ms cubic-bezier(0.4, 0, 0.2, 1);&:focus-visible{outline-offset:0;outline:var(--_outline-width) solid ",t.tokens.colors.get("borderColor.interactive.focused"),";}&:has([data-slot='button']){padding:calc(",t.dimension.spacing.get("sm")," - var(--_border-width)) calc(",t.dimension.spacing.get("md")," - var(--_border-width));}@container (max-width: calc(600px - 1px)){grid-template-areas:'icon content close' 'icon actions close';align-items:flex-start;&:has([data-slot='button']){padding:calc(",t.dimension.spacing.get("md")," - var(--_border-width)) calc(",t.dimension.spacing.get("md")," - var(--_border-width));}}@media (prefers-reduced-motion){transition:none;}",""),sD=()=>e=>m.css("grid-area:icon;margin-right:",e.dimension.spacing.get("md"),";pointer-events:none;",""),cD=()=>e=>m.css(j(e.tokens.typography.get("normal.body02")),";grid-area:content;cursor:default;",""),uD=()=>e=>m.css("grid-area:actions;display:flex;align-items:flex-start;flex-wrap:wrap;gap:",e.dimension.spacing.get("sm"),";margin-left:",e.globals.spacing.get("7"),";@container (max-width: calc(600px - 1px)){margin-left:0;margin-top:",e.dimension.spacing.get("sm"),";}",""),dD=()=>e=>m.css("grid-area:close;justify-self:end;margin-left:",e.dimension.spacing.get("lg"),";",""),fD=(e,t)=>{switch(e){case"informational":return t.tokens.colors.get("indicators.brand");case"error":return t.tokens.colors.get("indicators.error");case"warning":return t.tokens.colors.get("indicators.warning");case"success":return t.tokens.colors.get("indicators.success");default:return t.tokens.colors.get("indicators.brand")}},U1={"inline-alert":lD,icon:sD,content:cD,actions:uD,dismiss:dD},Dd=v.forwardRef((e,t)=>{e=rn(e,"inline-alert");const{status:r="neutral",actions:n,children:o,onDismiss:a,dataTestPrefixId:i="",hasAutoFocus:l,...s}=e,u=N(),d=ie.useId(),f=j1(t),p=n&&n.type===v.Fragment?n.props.children:n,C=v.Children.toArray(p),y=v.useRef(l);return v.useEffect(()=>{y.current&&f.current&&f.current.focus(),y.current=!1},[f]),c.jsxs("div",{...s,css:U1["inline-alert"](e),ref:f,tabIndex:0,role:r==="warning"||r==="error"?"alert":"status","aria-describedby":a?d:void 0,"data-testid":`${i}_inline_alert`,children:[r!=="neutral"?c.jsx(H,{role:"img","aria-hidden":"true",name:r,css:U1.icon,color:fD(r,u)}):null,c.jsx("div",{css:U1.content,children:o}),C.length>0?c.jsx("div",{css:U1.actions,children:c.jsx(nn,{slots:{button:{size:"compact"},link:{size:2}},children:C})}):null,a?c.jsx(H,{role:"button","aria-label":"Dismiss notification",id:a?d:void 0,"data-testid":`${i}_inline_alert_dismiss`,name:"close",css:U1.dismiss,onClick:a,size:20}):null]})});Dd.displayName="InlineAlert";const yr={toastRegion:e=>m.css("isolation:isolate;position:fixed;display:flex;flex-direction:column-reverse;container-type:inline-size;bottom:",e.dimension.spacing.get("3xl"),";left:",e.dimension.spacing.get("3xl"),";right:",e.dimension.spacing.get("3xl"),";gap:",e.dimension.spacing.get("sm"),";pointer-events:none;z-index:10;",""),"bottom left":{name:"5dh3r6",styles:"align-items:flex-start"},"bottom right":{name:"1kx2ysr",styles:"align-items:flex-end"},toast:e=>t=>m.css("--toast-border-width:",t.dimension.borderWidth.get("default"),";--toast-min-content-width:",P(100),";",t.tokens.typography.get("normal.body02"),";pointer-events:auto;box-sizing:border-box;position:relative;isolation:isolate;display:inline-grid;grid-template-columns:auto minmax(var(--toast-min-content-width), 1fr) auto;grid-template-areas:'icon content actions close';align-items:center;padding:calc(",t.dimension.spacing.get("md")," - ",P(1),");border-radius:",t.dimension.borderRadius.get("md"),";background:",t.tokens.colors.get("backgroundColor.alt"),";border:",P(1)," solid ",pD(e.status,t),";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;view-transition-class:toast;view-transition-name:var(--view-transition-name);&:has([data-slot='button']){padding:calc(",t.dimension.spacing.get("sm")," - var(--toast-border-width)) calc(",t.dimension.spacing.get("md")," - var(--toast-border-width));}@container (max-width: calc(600px - 1px)){grid-template-areas:'icon content close' 'icon actions close';align-items:flex-start;&:has([data-slot='button']){padding:calc(",t.dimension.spacing.get("md")," - var(--toast-border-width)) calc(",t.dimension.spacing.get("md")," - var(--toast-border-width));}}@media (prefers-reduced-motion){view-transition-name:none;view-transition-class:none;}",""),icon:e=>m.css("grid-area:icon;margin-right:",e.dimension.spacing.get("md"),";pointer-events:none;",""),dismiss:e=>m.css("grid-area:close;justify-self:end;margin-left:",e.dimension.spacing.get("lg"),";",""),toastContent:{name:"1vbirdn",styles:"grid-area:content;cursor:default"},toastActions:e=>m.css("grid-area:actions;display:flex;align-items:flex-start;flex-wrap:wrap;gap:",e.dimension.spacing.get("sm"),";margin-left:",e.globals.spacing.get("7"),";@container (max-width: calc(600px - 1px)){margin-left:0;margin-top:",e.dimension.spacing.get("sm"),";}","")},pD=(e,t)=>{switch(e){case"informational":return t.tokens.colors.get("indicators.brand");case"error":return t.tokens.colors.get("textColor.default.error");case"warning":return t.tokens.colors.get("indicators.warning");case"success":return t.tokens.colors.get("indicators.success");default:return t.tokens.colors.get("textColor.default.secondary")}},gD=(e,t)=>{switch(e){case"informational":return t.tokens.colors.get("indicators.brand");case"error":return t.tokens.colors.get("indicators.error");case"warning":return t.tokens.colors.get("indicators.warning");case"success":return t.tokens.colors.get("indicators.success");default:return t.tokens.colors.get("indicators.brand")}},CD=5e3,vD=5;function yD(e){"startViewTransition"in document?document.startViewTransition(()=>{Xr.flushSync(e)}).ready.catch(()=>{}):e()}const nc=new Ct.ToastQueue({maxVisibleToasts:vD,wrapUpdate:yD}),Rd=(e,{isDismissible:t=!0,timeout:r=CD,...n}={})=>{const o={children:e,status:n.status??"neutral",hasIcon:n.hasIcon??!0,...n};return nc.add(o,{timeout:t?r:void 0,onClose:n.onClose})};Rd.dismiss=e=>{nc.close(e)};const Nd=v.forwardRef(({state:e,...t},r)=>{const n=j1(r),o=N(),{toastProps:a,contentProps:i,titleProps:l}=ie.useToast(t,e,n),s=t.toast.content.actions&&t.toast.content.actions.type===v.Fragment?t.toast.content.actions.props.children:t.toast.content.actions,u=v.Children.toArray(s),d=()=>{t.toast.content.shouldCloseOnAction&&e.close(t.toast.key)};return c.jsxs("div",{...a,ref:n,css:yr.toast(t.toast.content),className:"toast",style:{"--view-transition-name":t.toast.key},children:[t.toast.content.status!=="neutral"&&t.toast.content.hasIcon?c.jsx(H,{role:"img","aria-hidden":"true",name:t.toast.content.status,css:yr.icon,color:gD(t.toast.content.status,o)}):null,c.jsx("div",{...i,css:yr.toastContent,children:c.jsx(nn,{slots:{icon:{size:20}},children:c.jsx("div",{...l,children:t.toast.content.children})})}),u.length>0?c.jsx("div",{css:yr.toastActions,children:c.jsx(nn,{slots:{button:{size:"compact",onClick:d},link:{size:2,onClick:d}},children:u})}):null,c.jsx(H,{role:"button","aria-label":"Dismiss toast",name:"close",onClick:()=>e.close(t.toast.key),css:yr.dismiss,size:20})]})});Nd.displayName="Toast";const Fd=v.forwardRef(({placement:e="bottom right",...t},r)=>{const n=Ct.useToastQueue(nc);return n.visibleToasts.length>0?Xr.createPortal(c.jsx(Hd,{ref:r,...t,placement:e,state:n}),document.body):null});Fd.displayName="ToastContainer";const Hd=v.forwardRef(({placement:e,state:t,...r},n)=>{const o=j1(n),{regionProps:a}=ie.useToastRegion(r,t,o);return c.jsx("div",{...a,ref:o,css:[yr.toastRegion,yr[e],"",""],children:t.visibleToasts.map(i=>c.jsx(Nd,{toast:i,state:t},i.key))})});Hd.displayName="ToastRegion";var hD={name:"1x3zd6m",styles:"justify-content:flex-end;flex-direction:column"},bD={name:"1f60if8",styles:"justify-content:flex-end"},mD={name:"qdeacm",styles:"flex-direction:column"};const wD=e=>{switch(e){case"top":return mD;case"right":return bD;case"bottom":return hD;default:return m.css("","")}},SD=(e,t)=>{switch(t){case"top":return e?"translateY(0)":"translateY(-100%)";case"right":return e?"translateX(0)":"translateX(100%)";case"bottom":return e?"translateY(0)":"translateY(100%)";default:return e?"translateX(0)":"translateX(-100%)"}};var xD={name:"1y3chaq",styles:"right:0;bottom:0;top:0;left:0"},ED={name:"s1n8ed",styles:"height:100vh"},_D={name:"lcsd53",styles:"width:100vw"};const kD=({isOpen:e,anchor:t,size:r,isBackgroundActive:n})=>o=>()=>{const a=()=>(t==="left"||t==="right")&&n?m.css("width:",r,";",""):_D,i=()=>(t==="top"||t==="bottom")&&n?m.css("height:",r,";",""):ED,l=()=>n?m.css("top:",t==="bottom"?void 0:0,";bottom:",t==="top"?void 0:0,";right:",t==="left"?void 0:0,";left:",t==="right"?void 0:0,";",""):xD;return m.css(me,";position:fixed;",a(),";",i(),";z-index:2500;",l(),";background:",n?void 0:I.transparentize(.3,o.tokens.colors.get("backgroundColor.invertedAlt")),";visibility:",e?"visible":"hidden",";opacity:",e?1:0,";",fe(.2)," ",wD(t),";","")},TD=({anchor:e,size:t,isBackgroundActive:r})=>e==="top"||e==="bottom"?{display:"flex",height:r?"100%":t,width:"100%"}:{display:"flex",height:"100%",width:r?"100%":t},$D=({isOpen:e,anchor:t,hasFixedLayout:r})=>n=>m.css(me,";flex-direction:column;overflow-y:",r?void 0:"auto",";background-color:",n.tokens.colors.get("backgroundColor.default"),";box-shadow:",n.tokens.boxShadow.get("3"),";border:",n.dimension.borderWidth.get("default")," solid ",n.tokens.colors.get("borderColor.decorative.default"),";width:100%;height:100%;transform:",SD(e,t),";",fe(.3),";",""),AD=()=>e=>m.css("position:absolute;top:",e.dimension.spacing.get("2xl"),";right:",e.dimension.spacing.get("2xl"),";",""),PD=({isFixed:e,hasBoxShadow:t})=>r=>e?m.css("padding:",r.dimension.spacing.get("2xl"),";position:sticky;top:0;box-shadow:",t?r.tokens.boxShadow.get("2"):void 0,";transition:box-shadow 0.2s ease-in-out;",""):m.css("padding:",r.dimension.spacing.get("2xl"),";flex:0;",""),OD=({hasFixedHeader:e})=>t=>m.css("flex:1;overflow-y:",e?"auto":void 0,";padding:calc(",t.dimension.spacing.get("2xl")," - ",I.rem(1),") ",t.dimension.spacing.get("2xl"),";",""),MD=({isFixed:e,hasBoxShadow:t})=>r=>e?m.css("position:sticky;bottom:0;padding:",r.dimension.spacing.get("2xl"),";box-shadow:",t?r.tokens.boxShadow.get("5"):void 0,";transition:box-shadow 0.2s ease-in-out;",""):m.css("padding:",r.dimension.spacing.get("2xl"),";",""),zd="SET_HAS_FIXED_LAYOUT",Vd="SET_ON_CLOSE",Wd="TOGGLE_IS_SCROLLBAR_ON_TOP",jd="TOGGLE_IS_SCROLLBAR_ON_BOTTOM",LD=e=>({type:zd,payload:e}),ID=e=>({type:Vd,payload:e}),Ud=e=>({type:Wd,payload:e}),Zd=e=>({type:jd,payload:e}),oc=v.createContext(null),BD=(e,t)=>{switch(t.type){case zd:return{...e,hasFixedLayout:t.payload};case Vd:return{...e,onClose:t.payload};case Wd:return{...e,isScrollbarOnTop:t.payload};case jd:return{...e,isScrollbarOnBottom:t.payload};default:return e}},Gd=({hasFixedLayout:e=!1,onClose:t=()=>null,children:r})=>{const[n,o]=v.useReducer(BD,{hasFixedLayout:e,onClose:t,isScrollbarOnTop:!1,isScrollbarOnBottom:!1});return c.jsx(oc.Provider,{value:[n,o],children:r})},Z1=()=>v.useContext(oc),Kd=v.forwardRef(({isOpen:e,onClose:t,anchor:r,size:n="auto",isBackgroundActive:o=!1,dataTestPrefixId:a="ictinus_drawer",hasFixedLayout:i=!1,parent:l=document.body,children:s},u)=>{const d=j1(u),{overlayProps:f}=$l({isVisible:e,isNonModal:!1,overlayRef:d,onClose:()=>{o||t()}});return rl(()=>{o||t()}),v.useEffect(()=>{e?l.style.overflow="hidden":l.style.overflow=""},[e,l.style]),l===null?null:Xr.createPortal(c.jsx(Gd,{hasFixedLayout:i,onClose:t,children:c.jsx("div",{css:kD({isOpen:e,anchor:r,size:n,isBackgroundActive:o}),children:c.jsx("div",{css:TD({anchor:r,size:n,isBackgroundActive:o}),children:c.jsx("div",{...f,ref:d,css:$D({isOpen:e,anchor:r,hasFixedLayout:i}),"data-testid":`${a}_drawer_container`,tabIndex:-1,children:s})})})}),l)});Kd.displayName="Drawer";const qD=({children:e,dataTestPrefixId:t="ictinus_drawer"})=>{const[{hasFixedLayout:r,onClose:n=()=>null,isScrollbarOnTop:o}]=Z1();return c.jsxs("div",{css:PD({isFixed:r,hasBoxShadow:!o}),children:[e,c.jsx("div",{css:AD(),children:c.jsx(H,{name:"close",onClick:n,dataTestId:`${t}_close_button`})})]})},DD=()=>{const[,e]=Z1(),t=v.useRef(),r=v.useRef(),n=v.useCallback(a=>{e(Ud(a[0].isIntersecting))},[e]),o=v.useCallback(a=>{e(Zd(a[0].isIntersecting))},[e]);return v.useEffect(()=>{const a=new IntersectionObserver(n);return t.current&&a.observe(t.current),()=>a.disconnect()},[n,t]),v.useEffect(()=>{const a=new IntersectionObserver(o);return r.current&&a.observe(r.current),()=>a.disconnect()},[o,r]),{contentTopRef:t,contentBottomRef:r}},RD=({children:e,dataTestPrefixId:t="ictinus_drawer"})=>{const[{hasFixedLayout:r}]=Z1(),{contentTopRef:n,contentBottomRef:o}=DD();return c.jsxs("div",{"data-testid":`${t}_content`,css:OD({hasFixedHeader:r}),children:[c.jsx("div",{css:m.css({height:I.rem(1)},"",""),ref:n}),e,c.jsx("div",{css:m.css({height:I.rem(1)},"",""),ref:o})]})},ND=({children:e,dataTestPrefixId:t="ictinus_drawer"})=>{const[{hasFixedLayout:r,isScrollbarOnBottom:n}]=Z1();return c.jsx("div",{"data-testid":`${t}_footer`,css:MD({isFixed:r,hasBoxShadow:!n}),children:e})};var FD={name:"jl0oj1",styles:"/** @TODO replace with search tokens */border-bottom:1px solid #b9cdfc;label{display:none;}input{border:none;top:0;&:focus{outline:none;border:none;box-shadow:none;}}"};const HD=()=>FD,zD=({onInputChange:e,value:t,dataTestId:r,isLoading:n,isMulti:o,isSearchable:a,onClear:i,selectedFilter:l,onFilterDelete:s,dataTestPrefixId:u})=>{const d=N(),f=v.useMemo(()=>n?c.jsx(H1,{type:"circular",dataTestPrefixId:"search"}):c.jsx(H,{size:d.dimension.sizing.get("icon.md"),name:"search",color:d.tokens.colors.get("textColor.default.secondary")}),[n,d.dimension.sizing,d.tokens.colors]);return c.jsxs("div",{css:HD(),children:[!o&&a&&c.jsx(vr,{autoFocus:!0,dataTestPrefixId:`${u}_filter_search`,onChange:e,"data-testid":K("filter-input",r),status:{type:"normal"},label:"Search",placeholder:"Search",value:t,suffix:f,sx:{wrapper:{"&, &:focus-within, &:hover":{outline:"none",border:"none",boxShadow:"none",backgroundColor:"white"}}}}),o===!0&&c.jsx(el,{autoFocus:!0,selectedOptions:l||[],dataTestPrefixId:`${u}_filter_search`,onInput:e,onOptionDelete:s,onClearAllOptions:i,isInteractive:!1,value:t,label:"Search",placeholder:"Search",isResponsive:!0,isLoading:n,sx:{textField:{paddingTop:"12px",paddingBottom:"12px",width:"100%"},wrapper:{boxShadow:"none",borderRadius:0,background:"white"}}})]})},VD={height:{value:"{sizing.13}",type:"sizing",description:"Sets fixed height for all list items"},heightCompact:{value:"{sizing.10}",type:"sizing",description:"Sets fixed height for _block pagination list item"}},WD=e=>Me(VD,e),jD=({isMulti:e})=>()=>m.css("max-height:",P(K2.maxHeight),";&>div,ul{border:none;border-radius:0;}&>div{max-width:",P(K2[e?"multi":"single"].maxWidth),";}",""),UD=()=>e=>{const t=WD(e);return m.css("color:",e.tokens.colors.get("textColor.default.secondary"),";height:",t("height"),";padding:0 ",e.dimension.spacing.get("md"),";",Je,";",j(e.tokens.typography.get("normal.body02")),";","")},ZD=({items:e,onOptionSelect:t,defaultValue:r,selectedFilter:n,isVirtualized:o,hasSelectAllOption:a,isMulti:i,dataTestPrefixId:l,listRef:s})=>{const u=e.length>Of,d=u?OI:void 0,f=v.useCallback(p=>{const C=String(q.head(Array.from(p)));if(C===Ae.value)t(Ae);else{const y=q.flatMap(e,b=>b.options||b).find(b=>String(b.value)===C);y&&t(y)}},[e,t]);return e.length?c.jsx("div",{css:jD({isMulti:i}),children:c.jsxs(r1,{ref:s,label:"filter-options",selectedKeys:i===!1&&n?[n.value]:[],disabledKeys:e.filter(p=>p.isDisabled).map(p=>p.value),onSelectionChange:f,isVirtualized:o&&u,height:d,dataTestPrefixId:`${l}_filter_list`,"aria-label":"Available options",children:[a?c.jsx(Le,{textValue:Ae.label,children:c.jsx(Ve,{children:Ae.label})},Ae.value):null,e.filter(p=>p.value!==r.value).map(p=>c.jsx(Le,{children:c.jsx(Ve,{children:p.label})},p.value))]})}):c.jsx("div",{css:UD(),"data-testid":`${l}_filter_list_no_options`,children:"No options"})},GD=()=>e=>m.css("max-height:inherit;overflow:auto;border:",P(1)," solid ",e.tokens.colors.get("borderColor.decorative.default"),";border-radius:",e.globals.spacing.get("3"),";background-color:",e.globals.colors.get("neutral.1"),";box-shadow:",e.tokens.boxShadow.get("2"),";",""),KD=({isSearchable:e,isMulti:t,searchValue:r,handleChange:n,onClear:o,isLoading:a,filteredOptions:i,selectedFilter:l,isVirtualized:s,hasSelectAllOption:u,handleSelect:d,onFilterDelete:f,dataTestPrefixId:p,listRef:C})=>c.jsxs("div",{css:GD(),children:[(t===!0||e)&&c.jsx(zD,{isMulti:t,isSearchable:e,value:r,onInputChange:n,onClear:o,onFilterDelete:f,selectedFilter:l,dataTestPrefixId:p,isLoading:a}),c.jsx(ZD,{listRef:C,dataTestPrefixId:p,items:i,isVirtualized:s,defaultValue:{label:"",value:""},isSearchable:e,selectedFilter:l,onOptionSelect:d,hasSelectAllOption:u,isMulti:t})]}),YD=({isMulti:e,setIsOpen:t,isSearchable:r,onChange:n,selectedFilter:o,onAsyncSearch:a,isAsync:i,minCharactersToSearch:l,items:s,onClear:u})=>{const[d,f]=v.useState(""),p=v.useMemo(()=>{if(!s)return;const x=e&&Array.isArray(o)?q.differenceBy(s,o,"value"):s;return i?x:x.filter(E=>!d||E.label.toLowerCase().includes(d.toLowerCase()))},[i,s,e,o,d]),C=x=>{e||t(!1),r&&f(""),e===!0?n&&o&&(q.isEqual(x,Ae)?n([...o,...p.filter(E=>!E.isDisabled)]):n([...o,x])):n(x)},y=v.useCallback(q.debounce(x=>{a==null||a(x)},400),[]);return{searchValue:d,handleFilterClick:C,handleInput:x=>{const{target:{value:E}}=x;if(r&&f(E),i){if(x.persist(),l&&E.length&&E.length<l)return;y(E.trim())}},filteredOptions:p,handleFilterDelete:x=>{const E=Array.isArray(o)?o.filter(A=>A.value!==x.value):[];e===!0&&n&&n(E)},handleClear:()=>{u&&u(),f("")}}},nl=v.forwardRef((e,t)=>{const{label:r="Filter",filterType:n="preset",items:o,children:a,onChange:i,isMulti:l,selectedFilter:s,isVirtualized:u=!1,defaultValue:d,isDisabled:f,onClear:p,isAsync:C,onAsyncSearch:y,isLoading:b,isSearchable:S,minCharactersToSearch:h,hasWrapperWidth:x=!1,hasSelectAllOption:E=!1,dataTestPrefixId:A="ictinus_filter"}=e,[T,w]=v.useState(!1),{searchValue:k,handleFilterClick:$,handleInput:B,filteredOptions:Z,handleFilterDelete:D,handleClear:O}=YD({isMulti:l,setIsOpen:w,isSearchable:S,onChange:i,selectedFilter:s,onAsyncSearch:y,isAsync:C,minCharactersToSearch:h,items:o,onClear:p}),R=v.useMemo(()=>{var Ye;return l?`${r}: ${s!=null&&s.length?(Ye=s[0])==null?void 0:Ye.label:d.label}`:`${r}: ${(s==null?void 0:s.label)??d.label}`},[d.label,l,r,s]),[L,F]=v.useState(R);v.useEffect(()=>{F(R)},[R]);const Y=l&&(s==null?void 0:s.length)>1?s.length-1:void 0,ne=()=>{w(!T)},ae=v.useRef(null),{keyboardProps:Vt}=Xt({events:{keydown:{onArrowDown:()=>{T&&setTimeout(()=>{var cl;const Ye=(cl=ae.current)==null?void 0:cl.querySelectorAll('[role="option"]');if(Ye&&(Ye==null?void 0:Ye.length)>0){const Y1=q.head(Ye);Y1 instanceof HTMLElement&&typeof Y1.focus=="function"&&Y1.focus()}},0)}}}}),Wt=Z?c.jsx(KD,{listRef:ae,isMulti:l,isVirtualized:u,isSearchable:S,searchValue:k,handleChange:B,handleSelect:$,onFilterDelete:D,onClear:O,selectedFilter:s,filteredOptions:Z,isLoading:b,hasSelectAllOption:E,dataTestPrefixId:A}):c.jsx("div",{"data-testid":`${A}_filter_overlay`,children:a({isOpen:T,setIsOpen:w,filterLabel:L,setFilterLabel:F})});return c.jsx(Al,{isVisible:T,setIsVisible:w,offsetY:8,hasWrapperWidth:x,isNonModal:l,sx:{container:{width:"max-content"}},parent:c.jsx(Y2,{ref:t,...q.omit(Vt,"onBlur"),isMulti:l,isActive:T,moreFilters:Y,onClear:O,onClick:ne,filterType:n,isPopulated:!!(l?s!=null&&s.length:s),dataTestPrefixId:A,isDisabled:f,children:L}),children:Wt})});nl.displayName="Filter";const Yd=v.forwardRef(({isMulti:e,selectedFilter:t,onChange:r=()=>{},...n},o)=>{const[a,i]=v.useState(e?t||[]:t||void 0),l=v.useCallback(s=>{i(s),r(s)},[r]);return c.jsx(nl,{...n,selectedFilter:a,isMulti:e,onChange:l,onClear:()=>i(e?[]:void 0),ref:o})});Yd.displayName="StatefulFilter";const XD=v.memo(Yd,le),QD=e=>m.css("display:flex;flex-direction:column;position:absolute;right:0;/** @TODO add tokens instead of rem */width:",P(e==="normal"?44:20),";top:",e==="normal"?`-${P(15)}`:`-${P(8)}`,";z-index:1;",""),Xd=()=>e=>{const t=Ht(e);return m.css("display:flex;justify-content:center;align-items:center;background:transparent;border:none;height:calc(",t("container.normal")," / 2);&:hover{cursor:pointer;background:",e.tokens.state.get("backgroundColor.hover"),";}","")},JD=({size:e,isDisabled:t,dataTestIdPrefix:r})=>{const n=N(),o=r?`${r}_number`:"number",a=e==="compact"?{height:I.rem(15)}:{};return c.jsxs("div",{css:QD(e),children:[c.jsx(ee.Button,{isDisabled:t,slot:"increment",css:Xd(),"data-testid":`${o}_increment`,style:a,children:c.jsx(H,{name:"triangleUp",color:n.tokens.colors.get("textColor.default.secondary"),size:n.dimension.sizing.get("icon.md")})}),c.jsx(ee.Button,{isDisabled:t,slot:"decrement",css:Xd(),"data-testid":`${o}_decrement`,style:a,children:c.jsx(H,{name:"triangleDown",color:n.tokens.colors.get("textColor.default.secondary"),size:n.dimension.sizing.get("icon.md")})})]})},eR=({size:e})=>m.css("/** @TODO: add tokens instead of rem */width:",`calc(100% - ${P(e==="normal"?44:20)})`,";","");var tR={name:"1d3w5wq",styles:"width:100%"};const Qd=v.forwardRef((e,t)=>{const{id:r=Jr("numberfield_"),suffix:n=null,hasStepper:o=!1,label:a,placeholder:i="",size:l="normal",isRequired:s=!1,isDisabled:u,isReadOnly:d,step:f,onChange:p,formatOptions:C,value:y,minValue:b,maxValue:S,status:h={type:"normal"},dataTestPrefixId:x,sx:E,...A}=e,{isLocked:T,hintMessageId:w,handleContainerClick:k,suffixContent:$,combinedRefs:B}=vd({id:r,suffix:n,status:h,size:l,isDisabled:u,ref:t}),Z=l==="normal"?i?`${i} ${s?"*":""}`:a:" ",D=l==="compact"?{wrapper:{minWidth:I.rem(90),...E==null?void 0:E.wrapper},...E}:E;return c.jsx("div",{onClick:k,children:c.jsxs(z1,{...e,status:{...h,id:w},sx:D,children:[c.jsx("div",{css:tR,children:c.jsx(ee.NumberField,{value:y,step:f,onChange:p,formatOptions:C,minValue:b,maxValue:S,children:c.jsxs(ee.Group,{css:o?eR({size:l}):{},children:[c.jsx(ee.Input,{id:r,readOnly:T||d,disabled:u||T,required:s,placeholder:Z,css:Gr({label:a,placeholder:i,isLocked:T,isDisabled:u,size:l}),"aria-invalid":(h==null?void 0:h.type)==="error","aria-describedby":w,"data-testid":e.dataTestId?`input_${e.dataTestId}`:"input",ref:B,...q.omit(A,["value","onChange","dataTestId"])}),c.jsx(F1,{htmlFor:r,label:a,size:l,isRequired:s,isAnimated:!!y,hasError:!u&&(h==null?void 0:h.type)==="error"}),o&&c.jsx(JD,{size:l,isDisabled:T||d||u,dataTestIdPrefix:x})]})})}),$&&!o&&c.jsx("div",{"aria-hidden":!$,css:yd({size:l}),children:$})]})})});Qd.displayName="NumberField";const rR=({page:e=1,count:t=1,onChange:r})=>{const[n,o]=g.useState(e),a=n+1,i=n-1,l=a<=t,s=i>=1;g.useEffect(()=>{o(e)},[e]);const u=g.useCallback(()=>{o(1),r(1)},[r]),d=g.useCallback(()=>{o(t),r(t)},[r,t]),f=g.useCallback(()=>{let C=n;C+1<=t&&(C+=1),o(C),r(C)},[r,t,n]),p=g.useCallback(()=>{let C=n;C-1>=1&&(C-=1),o(C),r(C)},[r,n]);return{currentPage:n,hasNextPage:l,hasPrevPage:s,navigateToFirstPage:u,navigateToLastPage:d,navigateToNextPage:f,navigateToPrevPage:p}},nR=({page:e=1,count:t,onChange:r=()=>{},isEnhancedPaginationVisible:n=!1,isNextPageDisabled:o,isPrevPageDisabled:a})=>{const i=N(),{currentPage:l,hasNextPage:s,hasPrevPage:u,navigateToFirstPage:d,navigateToLastPage:f,navigateToNextPage:p,navigateToPrevPage:C}=rR({page:e,count:t,onChange:r});return c.jsxs("div",{css:m.css({flex:1,display:"flex",alignItems:"center",justifyContent:"space-between",color:i.tokens.colors.get("textColor.default.primary"),"> *":{padding:i.globals.spacing.get("4")}},"",""),children:[n&&c.jsx(se,{iconName:"pageFirst",onClick:d,type:"tertiary",isDisabled:a||!u}),c.jsx(se,{iconName:"chevronLeft",type:"tertiary",onClick:C,isDisabled:a||!u}),c.jsxs("div",{children:["Page ",l," of ",t]}),c.jsx(se,{iconName:"chevronRight",type:"tertiary",onClick:p,isDisabled:o||!s}),n&&c.jsx(se,{iconName:"pageLast",type:"tertiary",onClick:f,isDisabled:o||!s})]})},oR={height:{normal:{value:"{sizing.9}",type:"sizing",description:"Sets fixed height for search component"}}},aR=e=>Me(oR,e);var iR={name:"zjik7",styles:"display:flex"};const lR=()=>iR,sR=()=>e=>m.css("width:100%;input{",j(e.tokens.typography.get("normal.body02")),";&::placeholder{color:",e.tokens.colors.get("textColor.default.secondary"),";}::-webkit-search-cancel-button{appearance:none;}}",""),cR=()=>e=>m.css(">div>button{border-top-left-radius:0;border-bottom-left-radius:0;border:none;box-shadow:",`inset 0 0 0 ${e.dimension.borderWidth.get("default")} ${e.tokens.colors.get("borderColor.interactive.default")}`,";position:relative;z-index:0;margin-left:-1px;&:hover[data-active='false']:enabled{background:",e.tokens.colors.get("palette.tertiary.muted"),";}&:focus-within:enabled{border-left:none;box-shadow:",`inset 0 0 0 ${e.dimension.borderWidth.get("active")} ${e.tokens.colors.get("borderColor.interactive.active")}`,";z-index:1;&[data-active='false']{background:",e.tokens.colors.get("palette.tertiary.muted"),";}}}",""),uR=({hasFilter:e,isDisabled:t,sx:r})=>n=>({wrapper:{height:aR(n)("height.normal"),...e&&{minWidth:P(240)},zIndex:1,borderRadius:e?`${n.dimension.borderRadius.get("circle")} 0 0 ${n.dimension.borderRadius.get("circle")}`:n.dimension.borderRadius.get("circle"),background:n.tokens.colors.get("backgroundColor.default"),boxShadow:`inset 0 0 0 ${n.dimension.borderWidth.get("default")} ${n.tokens.colors.get("borderColor.interactive.default")}`,...!t&&{"&:hover":{background:n.tokens.colors.get("palette.tertiary.muted")},"&:focus-within":{background:n.tokens.colors.get("palette.tertiary.muted"),outline:"none",boxShadow:`inset 0 0 0 ${n.dimension.borderWidth.get("active")} ${n.tokens.colors.get("borderColor.interactive.active")}`}},...r==null?void 0:r.wrapper},textField:{gap:P(8),paddingRight:n.dimension.spacing.get("lg"),paddingLeft:n.dimension.spacing.get("lg"),...r==null?void 0:r.textField}}),Jd=v.forwardRef((e,t)=>{const{placeholder:r="Search",isDisabled:n,onClear:o,value:a,dataTestPrefixId:i="search",filterConfig:l,sx:s,children:u,...d}=e,f=N(),p=a&&a.length>0,C=!!(l!=null&&l.defaultValue&&(l!=null&&l.label));return rl(()=>{o&&o()}),c.jsxs("div",{css:lR(),"data-testid":"search_container",children:[c.jsxs(z1,{dataTestPrefixId:i,isDisabled:n,sx:uR({hasFilter:C,isDisabled:n,sx:s})(f),children:[c.jsx(H,{name:"search",size:f.dimension.sizing.get("icon.md"),color:f.tokens.colors.get("textColor.default.secondary")}),c.jsx("div",{css:sR(),children:c.jsx("input",{type:"search",css:Gr({placeholder:r}),placeholder:r,disabled:n,value:a,ref:t,"data-testid":`${i}_search_input`,...d})}),p&&!n&&c.jsx(H,{name:"close",size:f.dimension.sizing.get("icon.md"),color:f.tokens.colors.get("textColor.default.secondary"),onClick:()=>{o()},dataTestId:"search-clear"})]}),C&&c.jsx("div",{css:cR(),children:c.jsx(nl,{...l,isDisabled:n,dataTestPrefixId:`${i}_search_filter`,children:u})})]})});Jd.displayName="Search";const e9=v.memo(Jd,le),t9=v.forwardRef((e,t)=>{const{onClear:r,onInput:n,filterConfig:o,...a}=e,[i,l]=v.useState(),[s,u]=v.useState(void 0),d=()=>{l(""),r&&r()},f=()=>{u(void 0),o!=null&&o.onClear&&(o==null||o.onClear())},p=b=>{l(b.target.value),n&&n(b.target.value)},y=!!(o!=null&&o.defaultValue&&(o!=null&&o.label)&&(o!=null&&o.items))?{filterConfig:{defaultValue:{label:"All",value:"all"},selectedFilter:s,onChange:u,onClear:f,...o}}:{};return c.jsx(e9,{ref:t,value:i,onClear:d,onInput:p,...y,...a})});t9.displayName="StatefulSearch";const dR=v.memo(t9,le),fR=({event:e,isSearchable:t,setSearchValue:r,isAsync:n,onChange:o,minCharactersToSearch:a=0})=>{const{target:{value:i}}=e;if(t&&r(i),n){if(e.persist(),a&&i.length&&i.length<a)return;o(i.trim())}},pR=()=>e=>{const t=Ht(e);return m.css("position:relative;min-width:",P(t("minWidth.small.normal")),";","")},gR=(e,t)=>()=>m.css("display:flex;cursor:pointer;transform:rotate(",e&&!t?"180":"0","deg);",fe(.2),";",""),ac={label:"",value:""},r9=v.forwardRef((e,t)=>{const{selectedOption:r,isMulti:n,options:o,size:a="normal",isAsync:i=!1,isLoading:l=!1,asyncSearch:s=()=>{},status:u={type:"normal"},minCharactersToSearch:d=0,hasHighlightSearch:f=!1,isSearchable:p=!0,isVirtualized:C=!1,isDisabled:y,dataTestId:b,onChange:S,isCreatable:h=!1,hasSelectAllOption:x=!1,...E}=e,A=v.useRef(null),{keyboardProps:T}=Xt({events:{keydown:{onArrowDown:()=>{B(!0),setTimeout(()=>{var de;const W=(de=A.current)==null?void 0:de.querySelectorAll('[role="option"]');if(W&&(W==null?void 0:W.length)>0){const Q=q.head(W);Q instanceof HTMLElement&&typeof Q.focus=="function"&&Q.focus()}},0)},onEscape:()=>{var W;(W=D==null?void 0:D.current)==null||W.blur(),B(!1),Wt()},onEnter:W=>{W.target.value.length>0&&setTimeout(()=>{var Xe;const Q=(Xe=A.current)==null?void 0:Xe.firstChild;Q instanceof HTMLElement&&typeof Q.click=="function"&&Q.click()},0)},onBackspace:()=>{Y(""),B(!0),n||r&&S&&"label"in r&&r.label===L&&(S(void 0),R(""),s(""))},onAlphaNumerical:()=>{p&&B(!0)}}}}),{keyboardProps:w}=Xt({events:{keydown:{onEscape:()=>{var W;B(!1),(W=D.current)==null||W.focus()}}}}),k=N(),[$,B]=v.useState(!1),Z=v.useRef(null),D=Kt(Z,t),[O,R]=v.useState(""),L=v.useMemo(()=>Array.isArray(r)||!r?O:O||(r==null?void 0:r.label),[O,r]),F=W=>{var de;if(n||B(!1),p&&R(""),n===!0){if(S&&r)if(le(W,Ae))S(o.filter(Q=>!Q.isDisabled));else if(W.isCreated){const Q={value:W.value,label:W.value.toString(),isCreated:!0};S([...r,Q])}else S([...r,W])}else if(S)if(W.isCreated){const Q={value:W.value,label:W.value.toString(),isCreated:!0};S(Q)}else S(W);(de=D.current)==null||de.focus()},Y=v.useCallback(q.debounce(W=>{s(W)},400),[]),ne=v.useCallback(W=>{$||B(!0),fR({event:W,isSearchable:p,isAsync:i,setSearchValue:R,onChange:Y,minCharactersToSearch:d})},[Y,i,$,p,d]),ae=v.useMemo(()=>{const W=n&&Array.isArray(r)?q.differenceBy(o,r,"value"):o,de=[];return i?de.push(...W):de.push(...W.filter(Q=>{var Xe;return!O||Q.label.toLowerCase().includes(O.toLowerCase())||!!((Xe=Q.options)!=null&&Xe.find(hc=>hc.label.toLowerCase().includes(O.toLowerCase())))}).map(Q=>{var Xe;return Q.label.toLowerCase().includes(O.toLowerCase())?Q:{...Q,options:(Xe=Q.options)==null?void 0:Xe.filter(hc=>hc.label.toLowerCase().includes(O.toLowerCase()))}})),h&&!de.map(Xe=>Xe.label.toLowerCase()).includes(O.toLowerCase())&&O.length>0&&de.push({value:O,label:`Create "${O}"`,isCreated:!0}),de},[n,o,r,i,h,O]),Vt=v.useMemo(()=>p&&!Array.isArray(r)?O||r!=null&&r.value?"close":"search":"triangleDown",[r,p,O]),Wt=v.useCallback(()=>{p||B(!$),p&&!Array.isArray(r)&&(O||r!=null&&r.value)&&(R(""),S&&S(n?[]:void 0),s(""))},[p,$,r,O,S,s,n]),Ye=v.useMemo(()=>c.jsx("div",{css:gR($,p),children:l?c.jsx(He,{py:"2",display:"flex",alignItems:"center",children:c.jsx(H1,{type:"circular",dataTestPrefixId:"select"})}):c.jsx(H,{size:k.dimension.sizing.get(`icon.${a==="compact"?"sm":"md"}`),name:Vt,color:k.tokens.colors.get("textColor.default.secondary"),onClick:Wt,hasHover:!1,dataTestId:"select-right-icon"})}),[$,p,l,k.dimension.sizing,k.tokens.colors,a,Vt,Wt]),cl=()=>{var W,de;$?p||(de=D==null?void 0:D.current)==null||de.blur():(W=D==null?void 0:D.current)==null||W.focus()},Y1=h&&ae.length===1&&ae[0].isCreated,yc=v.useRef(Jr("select_")).current;return c.jsx("div",{...!(y||u.type==="read-only")&&{onClick:cl},css:pR(),...w,children:c.jsx(Al,{id:yc,isVisible:$,setIsVisible:B,hasWrapperWidth:!0,isNonModal:n||p,offsetY:8,parent:n?c.jsx(el,{selectedOptions:r,onInput:ne,onOptionDelete:W=>{const de=Array.isArray(r)?r.filter(Q=>typeof W!="string"&&W?Q.value!==W.value:Q.value!==W):[];S&&S(de)},onClearAllOptions:()=>S&&S([]),isLoading:l,isDisabled:y,readOnly:!p,dataTestId:K("select-input",b),...E,status:u,value:L,ref:D,autoComplete:"off",...T,onClick:()=>B(!0),role:"combobox","aria-expanded":$,"aria-controls":yc}):c.jsx(vr,{suffix:Ye,...T,onInput:ne,isReadOnly:!p,isDisabled:y,dataTestId:K("select-input",b),...E,onClick:()=>B(!0),status:u,value:L,size:a,ref:D,autoComplete:"off",role:"combobox","aria-expanded":$,"aria-controls":yc}),children:c.jsx(X2,{ref:A,filteredOptions:ae,handleOptionClick:F,selectedOption:n===!0||!r?ac:r,status:u,isLoading:l,isVirtualized:C,size:a,hasSelectAllOption:n&&x&&!Y1})})})});r9.displayName="Select";const ic=v.memo(r9,le),n9=v.forwardRef(({isMulti:e,selectedOption:t,onChange:r=()=>{},...n},o)=>{const[a,i]=v.useState(e?t||[]:t||ac),l=v.useCallback(s=>{i(s),r(s)},[r]);return c.jsx(ic,{...n,selectedOption:a,isMulti:e,onChange:l,ref:o})});n9.displayName="StatefulSelect";const CR=v.memo(n9,le),vR=_e("div",{target:"ekzqro1"})("height:",I.rem(7),";width:",I.rem(7),";border-radius:100%;background:",({background:e})=>e,";position:relative;cursor:",({isDisabled:e})=>e?"not-allowed":"unset",";:hover{background:",({theme:e,isDisabled:t})=>t?void 0:e.tokens.colors.get("palette.primary.base"),";::before{content:'",({labelValue:e})=>e,"';color:white;display:",({isDisabled:e})=>e?"none":"flex",";justify-content:center;font-size:",({theme:e})=>e.globals.typography.fontSize[11],";background:black;position:absolute;padding:",({theme:e})=>e.globals.spacing.get("4"),";box-sizing:border-box;top:",I.rem(-35),";left:",I.rem(-14.5),";width:",I.rem(35),";height:",I.rem(27),";border-radius:2px;}::after{content:' ';display:",({isDisabled:e})=>e?"none":"unset",";position:absolute;top:",I.rem(-10),";left:",I.rem(-2.5),";width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #000;}}"),yR=_e("div",{target:"ekzqro0"})("::after{content:' ';height:",I.rem(7),";width:",I.rem(7),";border:4px solid transparent;border-radius:100px;position:absolute;top:",I.rem(-4),";left:",I.rem(-4),";}:hover{&::after{border-color:",({isDisabled:e})=>e?void 0:I.rgba(14,14,23,.1),";}}"),hR=({values:e,index:t,isDisabled:r,isSelector:n,dataTestPrefixId:o="",restProps:a})=>{const i=N(),l=v.useMemo(()=>n?t*20>e[0]?i.tokens.colors.get("palette.primaryAlt.base"):i.tokens.colors.get("palette.primary.base"):t*20<e[0]||t*20>e[1]?i.tokens.colors.get("palette.primaryAlt.base"):i.tokens.colors.get("palette.primary.base"),[n,t,e,i.tokens.colors]),s=v.useMemo(()=>(ol*t).toString(),[t]);return c.jsx(vR,{"data-testid":`${o}mark_${t}`,...a,isDisabled:r,labelValue:s?`${s}%`:" ",restStyleProps:a.style,background:l,children:c.jsx(yR,{isDisabled:r})})},bR=_e("div",{target:"e76yl4h0"})("height:",I.rem(16),";width:",I.rem(16),";border-radius:100px;background-color:",({theme:e,isChanged:t})=>t?e.tokens.colors.get("palette.primary.base"):"#fff",";border:2px solid ",({theme:e})=>e.tokens.colors.get("palette.primary.base"),";",({restStyleProps:e})=>({...e}),";box-sizing:border-box;cursor:",({isDisabled:e})=>e?"not-allowed":"unset","!important;&::after{content:'';height:",I.rem(16),";width:",I.rem(16),";border:8px solid transparent;border-radius:100px;position:absolute;top:",I.rem(-10),";left:",I.rem(-10),";",fe(.15),";}:hover{&::after{border-color:",({isDisabled:e})=>e?void 0:I.rgba(14,14,23,.1),";}}"),mR=({isDisabled:e,value:t,initialValue:r,dataTestId:n,restProps:o})=>{const a=v.useMemo(()=>r!==t,[r,t]);return c.jsx(bR,{"data-testid":n,...o,isChanged:a,isDisabled:e,restStyleProps:o.style})},wR=_e("div",{target:"ecb6cmq0"})("height:",I.rem(3),";border-radius:4px;background:",({background:e})=>e,";cursor:",({isDisabled:e})=>e?"not-allowed":"unset","!important;"),SR=({values:e,isDisabled:t,isSelector:r,dataTestPrefixId:n="",restProps:o,children:a})=>{const i=N(),l=v.useMemo(()=>bc.getTrackBackground({values:e,colors:r?[i.tokens.colors.get("palette.primary.base"),i.tokens.colors.get("palette.primaryAlt.base")]:[i.tokens.colors.get("palette.primaryAlt.base"),i.tokens.colors.get("palette.primary.base"),i.tokens.colors.get("palette.primaryAlt.base")],min:Kr,max:G1,rtl:!1}),[r,i.tokens.colors,e]);return c.jsx(wR,{"data-testid":`${n}track_component`,...o,isDisabled:t,restStyleProps:o.style,background:l,children:a})},xR=_e("div",{target:"ems0q502"})(me,";flex-direction:column;gap:",I.rem(22),";"),ER=_e("div",{target:"ems0q501"})(me,";margin-left:",I.rem(-7),";margin-right:",I.rem(-7),";gap:",I.rem(20),";align-items:center;justify-content:space-between;"),o9=_e("div",{target:"ems0q500"})("width:",I.rem(80),";"),_R=1,ol=20,Kr=0,G1=100,a9=({values:e,onChange:t,onBlur:r,hasIncrements:n=!1,isDisabled:o=!1,dataTestPrefixId:a})=>{const i=N(),l=v.useRef(e),s=l.current.length===1;if(s&&e.length!==1)throw new Error("The Selector type Slider can only accept one initial value in the array, since it only has one thumb. Try changing the `values` prop.");if(!s&&e.length!==2)throw new Error("The Range type Slider only accepts two initial values in the array, since it has two thumbs. Try changing the `values` prop.");const u=C=>C<Kr?0:C>G1?100:C,d=({props:C,index:y})=>{const b=s?y>Kr:y>Kr&&y<G1/ol;return n&&b&&c.jsx(hR,{dataTestPrefixId:a,restProps:C,values:e,index:y,isSelector:s,isDisabled:o},`mark_${y}`)},f=({props:C,children:y})=>c.jsx(SR,{dataTestPrefixId:a,isSelector:s,restProps:C,values:e,isDisabled:o,children:y}),p=({props:C,value:y,index:b})=>{var S;return c.jsx(mR,{dataTestId:`${a??""}thumb_${b}`,restProps:C,isDisabled:o,value:y,initialValue:(S=l.current)==null?void 0:S[b]},`thumb_${b}`)};return c.jsxs(xR,{"data-testid":`${a??""}slider_component`,"aria-disabled":o?"true":"false",children:[c.jsx("div",{css:m.css({opacity:o?i.tokens.disabledState.get("default"):"inherit"},"",""),children:c.jsx(bc.Range,{step:n?ol:_R,min:Kr,max:G1,disabled:o,values:e,onChange:t,onFinalChange:r,renderMark:d,renderTrack:f,renderThumb:p})}),!s&&!n&&e.length===2&&c.jsxs(ER,{children:[c.jsx(o9,{children:c.jsx(vr,{label:"Start",size:"compact",isDisabled:o,value:e[0],onChange:C=>{const y=u(parseInt((C==null?void 0:C.target.value)||"0"));t([y,e[1]])},onBlur:C=>{if(r){const y=u(parseInt((C==null?void 0:C.target.value)||"0"));r([y,e[1]])}},suffix:c.jsx(c.Fragment,{children:"%"})})}),c.jsx(o9,{children:c.jsx(vr,{label:"End",size:"compact",isDisabled:o,value:e[1],onChange:C=>{const y=u(parseInt((C==null?void 0:C.target.value)||"100"));t([e[0],y])},onBlur:C=>{if(r){const y=u(parseInt((C==null?void 0:C.target.value)||"100"));r([e[0],y])}},suffix:c.jsx(c.Fragment,{children:"%"})})})]})]})};a9.displayName="Slider";const kR=({variant:e,isInverted:t,fontSpacing:r="normal",isItalic:n,isBold:o,isUnderline:a,type:i})=>l=>{const s={headline01:Qc,headline02:Jc,headline03:e3,headline04:t3,headline05:r3,title01:Mf,title02:Lf,title03:If,label01:n3,label02:e1,label03:bl,label04:Bf,body01:o3,body02:ml,body03:t1,body04:qf},d=`textColor.${t?"inverted":"default"}.${i}`;return m.css(s[e](l,r),";font-style:",n?"italic":void 0,";font-weight:",o?l.globals.typography.fontWeight.get("bold"):void 0,";text-decoration:",a?l.globals.typography.textDecoration.get("link"):void 0,";color:",l.tokens.colors.get(d),";","")},i9=e=>e==="headline01"?"h1":e==="headline02"?"h2":e==="headline03"?"h3":e==="headline04"?"h4":e==="headline05"?"h5":e.includes("title")?"h6":e.includes("label")?"span":(e.includes("body"),"p"),zt=v.forwardRef(({type:e="primary",variant:t="body01",fontSpacing:r="normal",component:n,isInverted:o,isUnderline:a,isItalic:i,isBold:l,children:s,...u},d)=>{const f=n||i9(t);return c.jsx(f,{ref:d,css:kR({isInverted:o,type:e,variant:t,fontSpacing:r,isUnderline:a,isItalic:i,isBold:l}),...u,children:s})}),l9=(e,t,r,n,o)=>{const a=jt.createColumnHelper(),i=t?[{id:"checkbox_select",header:({table:u})=>c.jsx(br,{isSelected:u.getIsAllRowsSelected(),isIndeterminate:u.getIsSomeRowsSelected(),onChange:()=>{const d=u.getIsAllRowsSelected();u.toggleAllRowsSelected(!d)},dataTestPrefixId:`${o}_table_select_all`}),cell:({row:u})=>c.jsx("div",{className:"px-1",children:c.jsx(br,{isSelected:u.getIsSelected(),isDisabled:!u.getCanSelect(),isIndeterminate:u.getIsSomeSelected(),onChange:()=>{const d=u.getIsSelected();u.toggleSelected(!d)},dataTestPrefixId:`${o}_table_select_${u.id}`})}),meta:{contentAlign:"left"}}]:[],l=r?[{id:"details_iconButton",header:()=>c.jsx(c.Fragment,{}),cell:({row:u})=>c.jsx(H,{name:u.getIsExpanded()?"triangleDown":"triangleRight",size:n.dimension.sizing.get("icon.md"),color:n.tokens.colors.get("textColor.default.secondary"),onClick:()=>{const d=u.getIsExpanded();u.toggleExpanded(!d)},dataTestId:`${o}_table_expand_${u.id}`}),meta:{contentAlign:"left"}}]:[],s=e.reduce((u,d)=>{if("columns"in d){const f={id:d.id,header:d.header,columns:l9(d.columns,!1,!1,n,o)};u.push(a.group(f))}else u.push(a.accessor(d.id,{header:d.header,cell:f=>{const p=f.getValue();return typeof p=="string"||typeof p=="number"?c.jsx(zt,{variant:"body02",component:"span",css:hr,children:p}):p},size:d.width??"auto",minSize:d.width,enableSorting:d.isSortable??!1,meta:{contentAlign:d.contentAlign??"left"}}));return u},i);return q.concat(s,l)},s9=({type:e="read-only",data:t,columns:r,sorting:n,rowsConfig:o,columnsConfig:a,dataTestPrefixId:i,...l})=>{const s=N(),u=e==="interactive",{rowSelection:d,setRowSelection:f,expanded:p,setExpanded:C}=o??{},y=t.some(A=>A.details)&&!!p,b=v.useMemo(()=>t.map(A=>A.cells),[t]),h=l9(r,!!(d&&u),y,s,i),x=v.useMemo(()=>({...n&&{sorting:n.sortingColumn},...d&&u&&{rowSelection:d},...a&&{columnVisibility:a.columnVisibility},...p&&{expanded:p}}),[a,p,u,d,n]),E=jt.useReactTable({data:b,columns:h,getCoreRowModel:jt.getCoreRowModel(),state:x,...n&&{manualSorting:!0,onSortingChange:n.handleSorting,enableMultiSort:n.isMultiSortable??!1},...f&&u&&{enableRowSelection:!0,onRowSelectionChange:f},...p&&C&&{getExpandedRowModel:jt.getExpandedRowModel(),onExpandedChange:C},...a&&{onColumnVisibilityChange:a.setColumnVisibility},...l});return{getHeaderGroups:E.getHeaderGroups,getRowModel:E.getRowModel,getIsAllRowsSelected:E.getIsAllRowsSelected,getIsSomeRowsSelected:E.getIsSomeRowsSelected,getToggleAllRowsSelectedHandler:E.getToggleAllRowsSelectedHandler,toggleAllRowsSelected:E.toggleAllRowsSelected,getAllLeafColumns:E.getAllLeafColumns}},TR=()=>e=>m.css("display:inline-block;border:",e.dimension.borderWidth.get("default")," solid ",e.tokens.colors.get("borderColor.decorative.default"),";border-radius:",e.dimension.borderRadius.get("md"),";background:",e.tokens.colors.get("backgroundColor.default"),";",""),$R=({sx:e})=>m.css("width:100%;border-collapse:collapse;table-layout:fixed;thead>tr>th:last-child,tbody>tr>td:last-child{border-right:none;}tbody>tr:last-child>td{border-bottom:none;}",e,";",""),AR=({type:e="read-only",rowsConfig:t,data:r,columns:n,rowSize:o="sm",columnsConfig:a,sorting:i,hasStickyHeader:l=!1,pagination:s,sx:u,dataTestPrefixId:d="ictinus"})=>{const[f,p]=v.useState(!1),C=!!(e==="interactive"&&(t!=null&&t.rowSelection)),y=!!(t!=null&&t.expanded),b=v.useRef(),S=v.useRef(null);v.useEffect(()=>{var E,A;b!=null&&b.current&&p(((E=b==null?void 0:b.current)==null?void 0:E.scrollHeight)>((A=b==null?void 0:b.current)==null?void 0:A.clientHeight))},[b.current]);const h=s9({type:e,data:r,columns:n,sorting:i,rowsConfig:t,columnsConfig:a,dataTestPrefixId:d}),x=!!(a||t);return c.jsxs("div",{css:TR(),ref:S,"data-testid":`${d}_table_container`,children:[x&&c.jsx(h9,{type:e,columnsConfig:a,columns:n,rowsConfig:t,containerRef:S,rowsCount:h.getRowModel().rows.length,dataTestPrefixId:d}),c.jsxs("table",{css:$R({sx:u==null?void 0:u.table}),"data-testid":`${d}_table`,children:[c.jsx(d9,{hasStickyHeader:l,hasScrollbar:f,sx:u==null?void 0:u.thead,children:h.getHeaderGroups().map(E=>{const A=E.headers.length-+C-+y;return c.jsx(al,{sx:u==null?void 0:u.tr,children:E.headers.map(T=>{var w,k,$;return c.jsx(v9,{id:T.id,colSpan:T.colSpan,rowSize:o,width:T.getSize()||100/A,metaData:T.column.columnDef.meta,...T.column.getCanSort()&&{colSortingState:(w=i==null?void 0:i.sortingColumn)!=null&&w.find(B=>B.id===T.id)?{...(k=i==null?void 0:i.sortingColumn)==null?void 0:k.find(B=>B.id===T.id),...i.sortingColumn.length>1&&{badge:(($=i==null?void 0:i.sortingColumn)==null?void 0:$.findIndex(B=>B.id===T.id))+1}}:void 0,onSort:T.column.toggleSorting,isMultiSortable:T.column.getCanMultiSort(),resetSorting:T.column.clearSorting},sx:u==null?void 0:u.th,dataTestPrefixId:d,children:T.isPlaceholder?null:jt.flexRender(T.column.columnDef.header,T.getContext())},T.id)})},E.id)})}),c.jsx(u9,{hasStickyHeader:l,ref:b,sx:u==null?void 0:u.tbody,children:h.getRowModel().rows.map((E,A)=>{const T=E.getVisibleCells().length-+y-+C;return c.jsxs(c.Fragment,{children:[c.jsx(al,{sx:u==null?void 0:u.tr,...(C||y)&&{isSelectable:C,isExpandable:y,isSelected:E.getIsSelected(),isExpanded:E.getIsExpanded(),onClick:w=>{if(y){const k=E.getIsExpanded();E.toggleExpanded(!k)}else C&&E.toggleSelected()}},children:E.getVisibleCells().map(w=>c.jsx(lc,{columnId:w.column.id,rowId:w.id,rowSize:o,width:w.column.getSize()||100/T,metaData:w.column.columnDef.meta,sx:u==null?void 0:u.td,dataTestPrefixId:d,children:jt.flexRender(w.column.columnDef.cell,w.getContext())},w.id))},E.id),E.getIsExpanded()&&c.jsx(al,{children:c.jsx(lc,{rowId:E.id,colSpan:h.getAllLeafColumns().length,isDetails:!0,dataTestPrefixId:d,children:r[A].details})})]})})})]}),s&&c.jsx(b9,{pagination:s,isSticky:l&&f,dataTestPrefixId:d})]})},PR=v.memo(AR,le),OR=({hasStickyHeader:e,sx:t})=>()=>m.css(e&&`
140
+ `,Zq=(e,t)=>r=>m.css("display:flex;flex-direction:column;overflow:hidden;padding:",r.globals.spacing.get("6"),";box-sizing:border-box;max-height:",P(294),";border-radius:",r.globals.borderRadius.get("3"),";background:",r.tokens.colors.get("backgroundColor.default"),";",Uq(e,t,r),";",""),Gq=()=>e=>m.css("display:flex;align-items:center;justify-content:space-between;padding-bottom:",e.globals.spacing.get("6"),";","");var Kq={name:"s5xdrg",styles:"display:flex;align-items:center"};const Yq=()=>()=>Kq,Xq=()=>e=>m.css("font-size:",e.globals.typography.fontSize.get("3"),";max-height:",P(194),";overflow:auto;width:",P(547),";",""),Qq=({message:e,type:t,styleType:r="elevated",primaryCTALabel:n="OK",primaryCTA:o,secondaryCTALabel:a="Cancel",secondaryCTA:i,description:l,closeCTA:s,dataTestId:u})=>{const d=o&&n||i&&a,f=N();return c.jsxs("div",{css:Zq(t,r),"notification-type":"snackbar",children:[c.jsxs("div",{css:Gq(),children:[c.jsxs("div",{css:Yq(),children:[c.jsx("div",{css:Md(),children:c.jsx(H,{name:rc(t),color:f.tokens.colors.get(`textColor.default.${pt(t)}`),size:24})}),c.jsx("div",{css:Ld(t),children:e})]}),c.jsx("span",{css:V1(),onClick:s,"data-testid":K("snackbar-close",u),children:c.jsx(H,{name:"close",color:f.tokens.colors.get("textColor.default.secondary"),size:24})})]}),c.jsx("div",{css:Xq(),"data-testid":K("snackbar-description",u),children:l}),d&&c.jsx(Bd,{primaryCTA:o,primaryCTALabel:n,secondaryCTA:i,secondaryCTALabel:a,dataTestPrefixId:"snackbar",dataTestId:u})]})},Jq=e=>t=>m.css("--_border-width:",t.dimension.borderWidth.get("default"),";--_outline-width:",t.dimension.borderWidth.get("focused"),";--_min-height:",I.rem(44),";--_min-content-width:",I.rem(100),";box-sizing:border-box;position:relative;isolation:isolate;padding:calc(",t.dimension.spacing.get("md")," - var(--_border-width)) calc(",t.dimension.spacing.get("md")," - var(--_border-width));display:inline-grid;grid-template-columns:auto minmax(var(--_min-content-width), 1fr) auto;grid-template-areas:'icon content actions close';align-items:center;background:",t.tokens.colors.get("palette.secondary.muted"),";border-radius:",t.dimension.borderRadius.get("md"),";border:var(--_border-width) solid ",oD(e.status,t),";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:sans-serif;min-height:var(--_min-height);outline:none;outline-offset:",I.rem(2),";transition:outline-offset 150ms cubic-bezier(0.4, 0, 0.2, 1);&:focus-visible{outline-offset:0;outline:var(--_outline-width) solid ",t.tokens.colors.get("borderColor.interactive.focused"),";}&:has([data-slot='button']){padding:calc(",t.dimension.spacing.get("sm")," - var(--_border-width)) calc(",t.dimension.spacing.get("md")," - var(--_border-width));}@container (max-width: calc(600px - 1px)){grid-template-areas:'icon content close' 'icon actions close';align-items:flex-start;&:has([data-slot='button']){padding:calc(",t.dimension.spacing.get("md")," - var(--_border-width)) calc(",t.dimension.spacing.get("md")," - var(--_border-width));}}@media (prefers-reduced-motion){transition:none;}",""),eD=()=>e=>m.css("grid-area:icon;margin-right:",e.dimension.spacing.get("md"),";pointer-events:none;",""),tD=()=>e=>m.css(j(e.tokens.typography.get("normal.body02")),";grid-area:content;cursor:default;",""),rD=()=>e=>m.css("grid-area:actions;display:flex;align-items:flex-start;flex-wrap:wrap;gap:",e.dimension.spacing.get("sm"),";margin-left:",e.globals.spacing.get("7"),";@container (max-width: calc(600px - 1px)){margin-left:0;margin-top:",e.dimension.spacing.get("sm"),";}",""),nD=()=>e=>m.css("grid-area:close;justify-self:end;margin-left:",e.dimension.spacing.get("lg"),";",""),oD=(e,t)=>{switch(e){case"informational":return t.tokens.colors.get("indicators.brand");case"error":return t.tokens.colors.get("textColor.default.error");case"warning":return t.tokens.colors.get("indicators.warning");case"success":return t.tokens.colors.get("indicators.success");default:return t.tokens.colors.get("borderColor.decorative.default")}},aD=(e,t)=>{switch(e){case"informational":return t.tokens.colors.get("indicators.brand");case"error":return t.tokens.colors.get("indicators.error");case"warning":return t.tokens.colors.get("indicators.warning");case"success":return t.tokens.colors.get("indicators.success");default:return t.tokens.colors.get("indicators.brand")}},W1={broadcast:Jq,icon:eD,content:tD,actions:rD,dismiss:nD};function iD(e){return e.current}function j1(e){const t=v.useRef(null);return v.useImperativeHandle(e,()=>iD(t)),t}const qd=v.forwardRef((e,t)=>{const{status:r="neutral",actions:n,children:o,onDismiss:a,dataTestPrefixId:i="",hasAutoFocus:l,...s}=e,u=N(),d=ie.useId(),f=j1(t),p=n&&n.type===v.Fragment?n.props.children:n,C=v.Children.toArray(p),y=v.useRef(l);return v.useEffect(()=>{y.current&&f.current&&f.current.focus(),y.current=!1},[f]),c.jsxs("div",{...s,css:W1.broadcast(e),ref:f,tabIndex:0,role:r==="warning"||r==="error"?"alert":"status","aria-describedby":a?d:void 0,"data-slot":"inline-alert","data-testid":`${i}broadcast`,children:[r!=="neutral"?c.jsx(H,{role:"img","aria-hidden":"true",name:r,css:W1.icon,color:aD(r,u)}):null,c.jsx("div",{css:W1.content,children:o}),C.length>0?c.jsx("div",{css:W1.actions,children:c.jsx(nn,{slots:{button:{size:"compact"},link:{size:2}},children:C})}):null,a?c.jsx(H,{role:"button","aria-label":"Dismiss notification",id:a?d:void 0,"data-testid":`${i}broadcast_dismiss`,name:"close",css:W1.dismiss,onClick:a,size:20}):null]})});qd.displayName="Broadcast";const lD=e=>t=>m.css("--_border-width:",t.dimension.borderWidth.get("default"),";--_outline-width:",t.dimension.borderWidth.get("focused"),";--_min-height:",I.rem(44),";--_min-content-width:",I.rem(100),";box-sizing:border-box;position:relative;isolation:isolate;padding:calc(",t.dimension.spacing.get("md")," - var(--_border-width)) calc(",t.dimension.spacing.get("md")," - var(--_border-width));display:inline-grid;grid-template-columns:auto minmax(var(--_min-content-width), 1fr) auto;grid-template-areas:'icon content actions close';align-items:center;background:",e.isAlt?t.tokens.colors.get("backgroundColor.default"):t.tokens.colors.get("palette.secondary.muted"),";border-radius:",t.dimension.borderRadius.get("md"),";border:var(--_border-width) solid ",t.tokens.colors.get("borderColor.decorative.default"),";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:sans-serif;min-height:var(--_min-height);outline:none;outline-offset:",I.rem(2),";transition:outline-offset 150ms cubic-bezier(0.4, 0, 0.2, 1);&:focus-visible{outline-offset:0;outline:var(--_outline-width) solid ",t.tokens.colors.get("borderColor.interactive.focused"),";}&:has([data-slot='button']){padding:calc(",t.dimension.spacing.get("sm")," - var(--_border-width)) calc(",t.dimension.spacing.get("md")," - var(--_border-width));}@container (max-width: calc(600px - 1px)){grid-template-areas:'icon content close' 'icon actions close';align-items:flex-start;&:has([data-slot='button']){padding:calc(",t.dimension.spacing.get("md")," - var(--_border-width)) calc(",t.dimension.spacing.get("md")," - var(--_border-width));}}@media (prefers-reduced-motion){transition:none;}",""),sD=()=>e=>m.css("grid-area:icon;margin-right:",e.dimension.spacing.get("md"),";pointer-events:none;",""),cD=()=>e=>m.css(j(e.tokens.typography.get("normal.body02")),";grid-area:content;cursor:default;",""),uD=()=>e=>m.css("grid-area:actions;display:flex;align-items:flex-start;flex-wrap:wrap;gap:",e.dimension.spacing.get("sm"),";margin-left:",e.globals.spacing.get("7"),";@container (max-width: calc(600px - 1px)){margin-left:0;margin-top:",e.dimension.spacing.get("sm"),";}",""),dD=()=>e=>m.css("grid-area:close;justify-self:end;margin-left:",e.dimension.spacing.get("lg"),";",""),fD=(e,t)=>{switch(e){case"informational":return t.tokens.colors.get("indicators.brand");case"error":return t.tokens.colors.get("indicators.error");case"warning":return t.tokens.colors.get("indicators.warning");case"success":return t.tokens.colors.get("indicators.success");default:return t.tokens.colors.get("indicators.brand")}},U1={"inline-alert":lD,icon:sD,content:cD,actions:uD,dismiss:dD},Dd=v.forwardRef((e,t)=>{e=rn(e,"inline-alert");const{status:r="neutral",actions:n,children:o,onDismiss:a,dataTestPrefixId:i="",hasAutoFocus:l,...s}=e,u=N(),d=ie.useId(),f=j1(t),p=n&&n.type===v.Fragment?n.props.children:n,C=v.Children.toArray(p),y=v.useRef(l);return v.useEffect(()=>{y.current&&f.current&&f.current.focus(),y.current=!1},[f]),c.jsxs("div",{...s,css:U1["inline-alert"](e),ref:f,tabIndex:0,role:r==="warning"||r==="error"?"alert":"status","aria-describedby":a?d:void 0,"data-testid":`${i}_inline_alert`,children:[r!=="neutral"?c.jsx(H,{role:"img","aria-hidden":"true",name:r,css:U1.icon,color:fD(r,u)}):null,c.jsx("div",{css:U1.content,children:o}),C.length>0?c.jsx("div",{css:U1.actions,children:c.jsx(nn,{slots:{button:{size:"compact"},link:{size:2}},children:C})}):null,a?c.jsx(H,{role:"button","aria-label":"Dismiss notification",id:a?d:void 0,"data-testid":`${i}_inline_alert_dismiss`,name:"close",css:U1.dismiss,onClick:a,size:20}):null]})});Dd.displayName="InlineAlert";const yr={toastRegion:e=>m.css("isolation:isolate;position:fixed;display:flex;flex-direction:column-reverse;container-type:inline-size;bottom:",e.dimension.spacing.get("3xl"),";left:",e.dimension.spacing.get("3xl"),";right:",e.dimension.spacing.get("3xl"),";gap:",e.dimension.spacing.get("sm"),";pointer-events:none;z-index:10;",""),"bottom left":{name:"5dh3r6",styles:"align-items:flex-start"},"bottom right":{name:"1kx2ysr",styles:"align-items:flex-end"},toast:e=>t=>m.css("--toast-border-width:",t.dimension.borderWidth.get("default"),";--toast-min-content-width:",P(100),";",t.tokens.typography.get("normal.body02"),";pointer-events:auto;box-sizing:border-box;position:relative;isolation:isolate;display:inline-grid;grid-template-columns:auto minmax(var(--toast-min-content-width), 1fr) auto;grid-template-areas:'icon content actions close';align-items:center;padding:calc(",t.dimension.spacing.get("md")," - ",P(1),");border-radius:",t.dimension.borderRadius.get("md"),";background:",t.tokens.colors.get("backgroundColor.alt"),";border:",P(1)," solid ",pD(e.status,t),";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;view-transition-class:toast;view-transition-name:var(--view-transition-name);&:has([data-slot='button']){padding:calc(",t.dimension.spacing.get("sm")," - var(--toast-border-width)) calc(",t.dimension.spacing.get("md")," - var(--toast-border-width));}@container (max-width: calc(600px - 1px)){grid-template-areas:'icon content close' 'icon actions close';align-items:flex-start;&:has([data-slot='button']){padding:calc(",t.dimension.spacing.get("md")," - var(--toast-border-width)) calc(",t.dimension.spacing.get("md")," - var(--toast-border-width));}}@media (prefers-reduced-motion){view-transition-name:none;view-transition-class:none;}",""),icon:e=>m.css("grid-area:icon;margin-right:",e.dimension.spacing.get("md"),";pointer-events:none;",""),dismiss:e=>m.css("grid-area:close;justify-self:end;margin-left:",e.dimension.spacing.get("lg"),";",""),toastContent:{name:"1vbirdn",styles:"grid-area:content;cursor:default"},toastActions:e=>m.css("grid-area:actions;display:flex;align-items:flex-start;flex-wrap:wrap;gap:",e.dimension.spacing.get("sm"),";margin-left:",e.globals.spacing.get("7"),";@container (max-width: calc(600px - 1px)){margin-left:0;margin-top:",e.dimension.spacing.get("sm"),";}","")},pD=(e,t)=>{switch(e){case"informational":return t.tokens.colors.get("indicators.brand");case"error":return t.tokens.colors.get("textColor.default.error");case"warning":return t.tokens.colors.get("indicators.warning");case"success":return t.tokens.colors.get("indicators.success");default:return t.tokens.colors.get("textColor.default.secondary")}},gD=(e,t)=>{switch(e){case"informational":return t.tokens.colors.get("indicators.brand");case"error":return t.tokens.colors.get("indicators.error");case"warning":return t.tokens.colors.get("indicators.warning");case"success":return t.tokens.colors.get("indicators.success");default:return t.tokens.colors.get("indicators.brand")}},CD=5e3,vD=5;function yD(e){"startViewTransition"in document?document.startViewTransition(()=>{Xr.flushSync(e)}).ready.catch(()=>{}):e()}const nc=new Ct.ToastQueue({maxVisibleToasts:vD,wrapUpdate:yD}),Rd=(e,{isDismissible:t=!0,timeout:r=CD,...n}={})=>{const o={children:e,status:n.status??"neutral",hasIcon:n.hasIcon??!0,...n};return nc.add(o,{timeout:t?r:void 0,onClose:n.onClose})};Rd.dismiss=e=>{nc.close(e)};const Nd=v.forwardRef(({state:e,...t},r)=>{const n=j1(r),o=N(),{toastProps:a,contentProps:i,titleProps:l}=ie.useToast(t,e,n),s=t.toast.content.actions&&t.toast.content.actions.type===v.Fragment?t.toast.content.actions.props.children:t.toast.content.actions,u=v.Children.toArray(s),d=()=>{t.toast.content.shouldCloseOnAction&&e.close(t.toast.key)};return c.jsxs("div",{...a,ref:n,css:yr.toast(t.toast.content),className:"toast",style:{"--view-transition-name":t.toast.key},children:[t.toast.content.status!=="neutral"&&t.toast.content.hasIcon?c.jsx(H,{role:"img","aria-hidden":"true",name:t.toast.content.status,css:yr.icon,color:gD(t.toast.content.status,o)}):null,c.jsx("div",{...i,css:yr.toastContent,children:c.jsx(nn,{slots:{icon:{size:20}},children:c.jsx("div",{...l,children:t.toast.content.children})})}),u.length>0?c.jsx("div",{css:yr.toastActions,children:c.jsx(nn,{slots:{button:{size:"compact",onClick:d},link:{size:2,onClick:d}},children:u})}):null,c.jsx(H,{role:"button","aria-label":"Dismiss toast",name:"close",onClick:()=>e.close(t.toast.key),css:yr.dismiss,size:20})]})});Nd.displayName="Toast";const Fd=v.forwardRef(({placement:e="bottom right",...t},r)=>{const n=Ct.useToastQueue(nc);return n.visibleToasts.length>0?Xr.createPortal(c.jsx(Hd,{ref:r,...t,placement:e,state:n}),document.body):null});Fd.displayName="ToastContainer";const Hd=v.forwardRef(({placement:e,state:t,...r},n)=>{const o=j1(n),{regionProps:a}=ie.useToastRegion(r,t,o);return c.jsx("div",{...a,ref:o,css:[yr.toastRegion,yr[e],"",""],children:t.visibleToasts.map(i=>c.jsx(Nd,{toast:i,state:t},i.key))})});Hd.displayName="ToastRegion";var hD={name:"1x3zd6m",styles:"justify-content:flex-end;flex-direction:column"},bD={name:"1f60if8",styles:"justify-content:flex-end"},mD={name:"qdeacm",styles:"flex-direction:column"};const wD=e=>{switch(e){case"top":return mD;case"right":return bD;case"bottom":return hD;default:return m.css("","")}},SD=(e,t)=>{switch(t){case"top":return e?"translateY(0)":"translateY(-100%)";case"right":return e?"translateX(0)":"translateX(100%)";case"bottom":return e?"translateY(0)":"translateY(100%)";default:return e?"translateX(0)":"translateX(-100%)"}};var xD={name:"1y3chaq",styles:"right:0;bottom:0;top:0;left:0"},ED={name:"s1n8ed",styles:"height:100vh"},_D={name:"lcsd53",styles:"width:100vw"};const kD=({isOpen:e,anchor:t,size:r,isBackgroundActive:n})=>o=>()=>{const a=()=>(t==="left"||t==="right")&&n?m.css("width:",r,";",""):_D,i=()=>(t==="top"||t==="bottom")&&n?m.css("height:",r,";",""):ED,l=()=>n?m.css("top:",t==="bottom"?void 0:0,";bottom:",t==="top"?void 0:0,";right:",t==="left"?void 0:0,";left:",t==="right"?void 0:0,";",""):xD;return m.css(me,";position:fixed;",a(),";",i(),";z-index:2500;",l(),";background:",n?void 0:I.transparentize(.3,o.tokens.colors.get("backgroundColor.invertedAlt")),";visibility:",e?"visible":"hidden",";opacity:",e?1:0,";",fe(.2)," ",wD(t),";","")},TD=({anchor:e,size:t,isBackgroundActive:r})=>e==="top"||e==="bottom"?{display:"flex",height:r?"100%":t,width:"100%"}:{display:"flex",height:"100%",width:r?"100%":t},$D=({isOpen:e,anchor:t,hasFixedLayout:r})=>n=>m.css(me,";flex-direction:column;overflow-y:",r?void 0:"auto",";background-color:",n.tokens.colors.get("backgroundColor.default"),";box-shadow:",n.tokens.boxShadow.get("3"),";border:",n.dimension.borderWidth.get("default")," solid ",n.tokens.colors.get("borderColor.decorative.default"),";width:100%;height:100%;transform:",SD(e,t),";",fe(.3),";",""),AD=()=>e=>m.css("position:absolute;top:",e.dimension.spacing.get("2xl"),";right:",e.dimension.spacing.get("2xl"),";",""),PD=({isFixed:e,hasBoxShadow:t})=>r=>e?m.css("padding:",r.dimension.spacing.get("2xl"),";position:sticky;top:0;box-shadow:",t?r.tokens.boxShadow.get("2"):void 0,";transition:box-shadow 0.2s ease-in-out;",""):m.css("padding:",r.dimension.spacing.get("2xl"),";flex:0;",""),OD=({hasFixedHeader:e})=>t=>m.css("flex:1;overflow-y:",e?"auto":void 0,";padding:calc(",t.dimension.spacing.get("2xl")," - ",I.rem(1),") ",t.dimension.spacing.get("2xl"),";",""),MD=({isFixed:e,hasBoxShadow:t})=>r=>e?m.css("position:sticky;bottom:0;padding:",r.dimension.spacing.get("2xl"),";box-shadow:",t?r.tokens.boxShadow.get("5"):void 0,";transition:box-shadow 0.2s ease-in-out;",""):m.css("padding:",r.dimension.spacing.get("2xl"),";",""),zd="SET_HAS_FIXED_LAYOUT",Vd="SET_ON_CLOSE",Wd="TOGGLE_IS_SCROLLBAR_ON_TOP",jd="TOGGLE_IS_SCROLLBAR_ON_BOTTOM",LD=e=>({type:zd,payload:e}),ID=e=>({type:Vd,payload:e}),Ud=e=>({type:Wd,payload:e}),Zd=e=>({type:jd,payload:e}),oc=v.createContext(null),BD=(e,t)=>{switch(t.type){case zd:return{...e,hasFixedLayout:t.payload};case Vd:return{...e,onClose:t.payload};case Wd:return{...e,isScrollbarOnTop:t.payload};case jd:return{...e,isScrollbarOnBottom:t.payload};default:return e}},Gd=({hasFixedLayout:e=!1,onClose:t=()=>null,children:r})=>{const[n,o]=v.useReducer(BD,{hasFixedLayout:e,onClose:t,isScrollbarOnTop:!1,isScrollbarOnBottom:!1});return c.jsx(oc.Provider,{value:[n,o],children:r})},Z1=()=>v.useContext(oc),Kd=v.forwardRef(({isOpen:e,onClose:t,anchor:r,size:n="auto",isBackgroundActive:o=!1,dataTestPrefixId:a="ictinus_drawer",hasFixedLayout:i=!1,parent:l=document.body,children:s},u)=>{const d=j1(u),{overlayProps:f}=$l({isVisible:e,isNonModal:!1,overlayRef:d,onClose:()=>{o||t()}});return rl(()=>{o||t()}),v.useEffect(()=>{e?l.style.overflow="hidden":l.style.overflow=""},[e,l.style]),l===null?null:Xr.createPortal(c.jsx(Gd,{hasFixedLayout:i,onClose:t,children:c.jsx("div",{css:kD({isOpen:e,anchor:r,size:n,isBackgroundActive:o}),children:c.jsx("div",{css:TD({anchor:r,size:n,isBackgroundActive:o}),children:c.jsx("div",{...f,ref:d,css:$D({isOpen:e,anchor:r,hasFixedLayout:i}),"data-testid":`${a}_drawer_container`,tabIndex:-1,children:s})})})}),l)});Kd.displayName="Drawer";const qD=({children:e,dataTestPrefixId:t="ictinus_drawer"})=>{const[{hasFixedLayout:r,onClose:n=()=>null,isScrollbarOnTop:o}]=Z1();return c.jsxs("div",{css:PD({isFixed:r,hasBoxShadow:!o}),children:[e,c.jsx("div",{css:AD(),children:c.jsx(H,{name:"close",onClick:n,dataTestId:`${t}_close_button`})})]})},DD=()=>{const[,e]=Z1(),t=v.useRef(),r=v.useRef(),n=v.useCallback(a=>{e(Ud(a[0].isIntersecting))},[e]),o=v.useCallback(a=>{e(Zd(a[0].isIntersecting))},[e]);return v.useEffect(()=>{const a=new IntersectionObserver(n);return t.current&&a.observe(t.current),()=>a.disconnect()},[n,t]),v.useEffect(()=>{const a=new IntersectionObserver(o);return r.current&&a.observe(r.current),()=>a.disconnect()},[o,r]),{contentTopRef:t,contentBottomRef:r}},RD=({children:e,dataTestPrefixId:t="ictinus_drawer"})=>{const[{hasFixedLayout:r}]=Z1(),{contentTopRef:n,contentBottomRef:o}=DD();return c.jsxs("div",{"data-testid":`${t}_content`,css:OD({hasFixedHeader:r}),children:[c.jsx("div",{css:m.css({height:I.rem(1)},"",""),ref:n}),e,c.jsx("div",{css:m.css({height:I.rem(1)},"",""),ref:o})]})},ND=({children:e,dataTestPrefixId:t="ictinus_drawer"})=>{const[{hasFixedLayout:r,isScrollbarOnBottom:n}]=Z1();return c.jsx("div",{"data-testid":`${t}_footer`,css:MD({isFixed:r,hasBoxShadow:!n}),children:e})};var FD={name:"jl0oj1",styles:"/** @TODO replace with search tokens */border-bottom:1px solid #b9cdfc;label{display:none;}input{border:none;top:0;&:focus{outline:none;border:none;box-shadow:none;}}"};const HD=()=>FD,zD=({onInputChange:e,value:t,dataTestId:r,isLoading:n,isMulti:o,isSearchable:a,onClear:i,selectedFilter:l,onFilterDelete:s,dataTestPrefixId:u})=>{const d=N(),f=v.useMemo(()=>n?c.jsx(H1,{type:"circular",dataTestPrefixId:"search"}):c.jsx(H,{size:d.dimension.sizing.get("icon.md"),name:"search",color:d.tokens.colors.get("textColor.default.secondary")}),[n,d.dimension.sizing,d.tokens.colors]);return c.jsxs("div",{css:HD(),children:[!o&&a&&c.jsx(vr,{autoFocus:!0,dataTestPrefixId:`${u}_filter_search`,onChange:e,"data-testid":K("filter-input",r),status:{type:"normal"},label:"Search",placeholder:"Search",value:t,suffix:f,sx:{wrapper:{"&, &:focus-within, &:hover":{outline:"none",border:"none",boxShadow:"none",backgroundColor:"white"}}}}),o===!0&&c.jsx(el,{autoFocus:!0,selectedOptions:l||[],dataTestPrefixId:`${u}_filter_search`,onInput:e,onOptionDelete:s,onClearAllOptions:i,isInteractive:!1,value:t,label:"Search",placeholder:"Search",isResponsive:!0,isLoading:n,sx:{textField:{paddingTop:"12px",paddingBottom:"12px",width:"100%"},wrapper:{boxShadow:"none",borderRadius:0,background:"white"}}})]})},VD={height:{value:"{sizing.13}",type:"sizing",description:"Sets fixed height for all list items"},heightCompact:{value:"{sizing.10}",type:"sizing",description:"Sets fixed height for _block pagination list item"}},WD=e=>Me(VD,e),jD=({isMulti:e})=>()=>m.css("max-height:",P(K2.maxHeight),";&>div,ul{border:none;border-radius:0;}&>div{max-width:",P(K2[e?"multi":"single"].maxWidth),";}",""),UD=()=>e=>{const t=WD(e);return m.css("color:",e.tokens.colors.get("textColor.default.secondary"),";height:",t("height"),";padding:0 ",e.dimension.spacing.get("md"),";",Je,";",j(e.tokens.typography.get("normal.body02")),";","")},ZD=({items:e,onOptionSelect:t,defaultValue:r,selectedFilter:n,isVirtualized:o,hasSelectAllOption:a,isMulti:i,dataTestPrefixId:l,listRef:s})=>{const u=e.length>Of,d=u?OI:void 0,f=v.useCallback(p=>{const C=String(q.head(Array.from(p)));if(C===Ae.value)t(Ae);else{const y=q.flatMap(e,b=>b.options||b).find(b=>String(b.value)===C);y&&t(y)}},[e,t]);return e.length?c.jsx("div",{css:jD({isMulti:i}),children:c.jsxs(r1,{ref:s,label:"filter-options",selectedKeys:i===!1&&n?[n.value]:[],disabledKeys:e.filter(p=>p.isDisabled).map(p=>p.value),onSelectionChange:f,isVirtualized:o&&u,height:d,dataTestPrefixId:`${l}_filter_list`,"aria-label":"Available options",children:[a?c.jsx(Le,{textValue:Ae.label,children:c.jsx(Ve,{children:Ae.label})},Ae.value):null,e.filter(p=>p.value!==r.value).map(p=>c.jsx(Le,{children:c.jsx(Ve,{children:p.label})},p.value))]})}):c.jsx("div",{css:UD(),"data-testid":`${l}_filter_list_no_options`,children:"No options"})},GD=()=>e=>m.css("max-height:inherit;overflow:auto;border:",P(1)," solid ",e.tokens.colors.get("borderColor.decorative.default"),";border-radius:",e.globals.spacing.get("3"),";background-color:",e.globals.colors.get("neutral.1"),";box-shadow:",e.tokens.boxShadow.get("2"),";",""),KD=({isSearchable:e,isMulti:t,searchValue:r,handleChange:n,onClear:o,isLoading:a,filteredOptions:i,selectedFilter:l,isVirtualized:s,hasSelectAllOption:u,handleSelect:d,onFilterDelete:f,dataTestPrefixId:p,listRef:C})=>c.jsxs("div",{css:GD(),children:[(t===!0||e)&&c.jsx(zD,{isMulti:t,isSearchable:e,value:r,onInputChange:n,onClear:o,onFilterDelete:f,selectedFilter:l,dataTestPrefixId:p,isLoading:a}),c.jsx(ZD,{listRef:C,dataTestPrefixId:p,items:i,isVirtualized:s,defaultValue:{label:"",value:""},isSearchable:e,selectedFilter:l,onOptionSelect:d,hasSelectAllOption:u,isMulti:t})]}),YD=({isMulti:e,setIsOpen:t,isSearchable:r,onChange:n,selectedFilter:o,onAsyncSearch:a,isAsync:i,minCharactersToSearch:l,items:s,onClear:u})=>{const[d,f]=v.useState(""),p=v.useMemo(()=>{if(!s)return;const x=e&&Array.isArray(o)?q.differenceBy(s,o,"value"):s;return i?x:x.filter(E=>!d||E.label.toLowerCase().includes(d.toLowerCase()))},[i,s,e,o,d]),C=x=>{e||t(!1),r&&f(""),e===!0?n&&o&&(q.isEqual(x,Ae)?n([...o,...p.filter(E=>!E.isDisabled)]):n([...o,x])):n(x)},y=v.useCallback(q.debounce(x=>{a==null||a(x)},400),[]);return{searchValue:d,handleFilterClick:C,handleInput:x=>{const{target:{value:E}}=x;if(r&&f(E),i){if(x.persist(),l&&E.length&&E.length<l)return;y(E.trim())}},filteredOptions:p,handleFilterDelete:x=>{const E=Array.isArray(o)?o.filter(A=>A.value!==x.value):[];e===!0&&n&&n(E)},handleClear:()=>{u&&u(),f("")}}},nl=v.forwardRef((e,t)=>{const{label:r="Filter",filterType:n="preset",items:o,children:a,onChange:i,isMulti:l,selectedFilter:s,isVirtualized:u=!1,defaultValue:d,isDisabled:f,onClear:p,isAsync:C,onAsyncSearch:y,isLoading:b,isSearchable:S,minCharactersToSearch:h,hasWrapperWidth:x=!1,hasSelectAllOption:E=!1,dataTestPrefixId:A="ictinus_filter"}=e,[T,w]=v.useState(!1),{searchValue:k,handleFilterClick:$,handleInput:B,filteredOptions:Z,handleFilterDelete:D,handleClear:O}=YD({isMulti:l,setIsOpen:w,isSearchable:S,onChange:i,selectedFilter:s,onAsyncSearch:y,isAsync:C,minCharactersToSearch:h,items:o,onClear:p}),R=v.useMemo(()=>{var Ye;return l?`${r}: ${s!=null&&s.length?(Ye=s[0])==null?void 0:Ye.label:d.label}`:`${r}: ${(s==null?void 0:s.label)??d.label}`},[d.label,l,r,s]),[L,F]=v.useState(R);v.useEffect(()=>{F(R)},[R]);const Y=l&&(s==null?void 0:s.length)>1?s.length-1:void 0,ne=()=>{w(!T)},ae=v.useRef(null),{keyboardProps:Vt}=Xt({events:{keydown:{onArrowDown:()=>{T&&setTimeout(()=>{var cl;const Ye=(cl=ae.current)==null?void 0:cl.querySelectorAll('[role="option"]');if(Ye&&(Ye==null?void 0:Ye.length)>0){const Y1=q.head(Ye);Y1 instanceof HTMLElement&&typeof Y1.focus=="function"&&Y1.focus()}},0)}}}}),Wt=Z?c.jsx(KD,{listRef:ae,isMulti:l,isVirtualized:u,isSearchable:S,searchValue:k,handleChange:B,handleSelect:$,onFilterDelete:D,onClear:O,selectedFilter:s,filteredOptions:Z,isLoading:b,hasSelectAllOption:E,dataTestPrefixId:A}):c.jsx("div",{"data-testid":`${A}_filter_overlay`,children:a({isOpen:T,setIsOpen:w,filterLabel:L,setFilterLabel:F})});return c.jsx(Al,{isVisible:T,setIsVisible:w,offsetY:8,hasWrapperWidth:x,isNonModal:l,sx:{container:{width:"max-content"}},parent:c.jsx(Y2,{ref:t,...q.omit(Vt,"onBlur"),isMulti:l,isActive:T,moreFilters:Y,onClear:O,onClick:ne,filterType:n,isPopulated:!!(l?s!=null&&s.length:s),dataTestPrefixId:A,isDisabled:f,children:L}),children:Wt})});nl.displayName="Filter";const Yd=v.forwardRef(({isMulti:e,selectedFilter:t,onChange:r=()=>{},...n},o)=>{const[a,i]=v.useState(e?t||[]:t||void 0),l=v.useCallback(s=>{i(s),r(s)},[r]);return c.jsx(nl,{...n,selectedFilter:a,isMulti:e,onChange:l,onClear:()=>i(e?[]:void 0),ref:o})});Yd.displayName="StatefulFilter";const XD=v.memo(Yd,le),QD=e=>m.css("display:flex;flex-direction:column;position:absolute;right:0;/** @TODO add tokens instead of rem */width:",P(e==="normal"?44:20),";top:",e==="normal"?`-${P(15)}`:`-${P(8)}`,";z-index:1;",""),Xd=()=>e=>{const t=Ht(e);return m.css("display:flex;justify-content:center;align-items:center;background:transparent;border:none;height:calc(",t("container.normal")," / 2);&:hover{cursor:pointer;background:",e.tokens.state.get("backgroundColor.hover"),";}","")},JD=({size:e,isDisabled:t,dataTestIdPrefix:r})=>{const n=N(),o=r?`${r}_number`:"number",a=e==="compact"?{height:I.rem(15)}:{};return c.jsxs("div",{css:QD(e),children:[c.jsx(ee.Button,{isDisabled:t,slot:"increment",css:Xd(),"data-testid":`${o}_increment`,style:a,children:c.jsx(H,{name:"triangleUp",color:n.tokens.colors.get("textColor.default.secondary"),size:n.dimension.sizing.get("icon.md")})}),c.jsx(ee.Button,{isDisabled:t,slot:"decrement",css:Xd(),"data-testid":`${o}_decrement`,style:a,children:c.jsx(H,{name:"triangleDown",color:n.tokens.colors.get("textColor.default.secondary"),size:n.dimension.sizing.get("icon.md")})})]})},eR=({size:e})=>m.css("/** @TODO: add tokens instead of rem */width:",`calc(100% - ${P(e==="normal"?44:20)})`,";","");var tR={name:"1d3w5wq",styles:"width:100%"};const Qd=v.forwardRef((e,t)=>{const{id:r=Jr("numberfield_"),suffix:n=null,hasStepper:o=!1,label:a,placeholder:i="",size:l="normal",isRequired:s=!1,isDisabled:u,isReadOnly:d,step:f,onChange:p,formatOptions:C,value:y,minValue:b,maxValue:S,status:h={type:"normal"},dataTestPrefixId:x,sx:E,...A}=e,{isLocked:T,hintMessageId:w,handleContainerClick:k,suffixContent:$,combinedRefs:B}=vd({id:r,suffix:n,status:h,size:l,isDisabled:u,ref:t}),Z=l==="normal"?i?`${i} ${s?"*":""}`:a:" ",D=l==="compact"?{wrapper:{minWidth:I.rem(90),...E==null?void 0:E.wrapper},...E}:E;return c.jsx("div",{onClick:k,children:c.jsxs(z1,{...e,status:{...h,id:w},sx:D,children:[c.jsx("div",{css:tR,children:c.jsx(ee.NumberField,{value:y,step:f,onChange:p,formatOptions:C,minValue:b,maxValue:S,children:c.jsxs(ee.Group,{css:o?eR({size:l}):{},children:[c.jsx(ee.Input,{id:r,readOnly:T||d,disabled:u||T,required:s,placeholder:Z,css:Gr({label:a,placeholder:i,isLocked:T,isDisabled:u,size:l}),"aria-invalid":(h==null?void 0:h.type)==="error","aria-describedby":w,"data-testid":e.dataTestId?`input_${e.dataTestId}`:"input",ref:B,...q.omit(A,["value","onChange","dataTestId"])}),c.jsx(F1,{htmlFor:r,label:a,size:l,isRequired:s,isAnimated:!!y,hasError:!u&&(h==null?void 0:h.type)==="error"}),o&&c.jsx(JD,{size:l,isDisabled:T||d||u,dataTestIdPrefix:x})]})})}),$&&!o&&c.jsx("div",{"aria-hidden":!$,css:yd({size:l}),children:$})]})})});Qd.displayName="NumberField";const rR=({page:e=1,count:t=1,onChange:r})=>{const[n,o]=g.useState(e),a=n+1,i=n-1,l=a<=t,s=i>=1;g.useEffect(()=>{o(e)},[e]);const u=g.useCallback(()=>{o(1),r(1)},[r]),d=g.useCallback(()=>{o(t),r(t)},[r,t]),f=g.useCallback(()=>{let C=n;C+1<=t&&(C+=1),o(C),r(C)},[r,t,n]),p=g.useCallback(()=>{let C=n;C-1>=1&&(C-=1),o(C),r(C)},[r,n]);return{currentPage:n,hasNextPage:l,hasPrevPage:s,navigateToFirstPage:u,navigateToLastPage:d,navigateToNextPage:f,navigateToPrevPage:p}},nR=({page:e=1,count:t,onChange:r=()=>{},isEnhancedPaginationVisible:n=!1,isNextPageDisabled:o,isPrevPageDisabled:a})=>{const i=N(),{currentPage:l,hasNextPage:s,hasPrevPage:u,navigateToFirstPage:d,navigateToLastPage:f,navigateToNextPage:p,navigateToPrevPage:C}=rR({page:e,count:t,onChange:r});return c.jsxs("div",{css:m.css({flex:1,display:"flex",alignItems:"center",justifyContent:"space-between",color:i.tokens.colors.get("textColor.default.primary"),"> *":{padding:i.globals.spacing.get("4")}},"",""),children:[n&&c.jsx(se,{iconName:"pageFirst",onClick:d,type:"tertiary",isDisabled:a||!u}),c.jsx(se,{iconName:"chevronLeft",type:"tertiary",onClick:C,isDisabled:a||!u}),c.jsxs("div",{children:["Page ",l," of ",t]}),c.jsx(se,{iconName:"chevronRight",type:"tertiary",onClick:p,isDisabled:o||!s}),n&&c.jsx(se,{iconName:"pageLast",type:"tertiary",onClick:f,isDisabled:o||!s})]})},oR={height:{normal:{value:"{sizing.9}",type:"sizing",description:"Sets fixed height for search component"}}},aR=e=>Me(oR,e);var iR={name:"zjik7",styles:"display:flex"};const lR=()=>iR,sR=()=>e=>m.css("width:100%;input{",j(e.tokens.typography.get("normal.body02")),";&::placeholder{color:",e.tokens.colors.get("textColor.default.secondary"),";}::-webkit-search-cancel-button{appearance:none;}}",""),cR=()=>e=>m.css(">div>button{border-top-left-radius:0;border-bottom-left-radius:0;border:none;box-shadow:",`inset 0 0 0 ${e.dimension.borderWidth.get("default")} ${e.tokens.colors.get("borderColor.interactive.default")}`,";position:relative;z-index:0;margin-left:-1px;&:hover[data-active='false']:enabled{background:",e.tokens.colors.get("palette.tertiary.muted"),";}&:focus-within:enabled{border-left:none;box-shadow:",`inset 0 0 0 ${e.dimension.borderWidth.get("active")} ${e.tokens.colors.get("borderColor.interactive.active")}`,";z-index:1;&[data-active='false']{background:",e.tokens.colors.get("palette.tertiary.muted"),";}}}",""),uR=({hasFilter:e,isDisabled:t,sx:r})=>n=>({wrapper:{height:aR(n)("height.normal"),...e&&{minWidth:P(240)},zIndex:1,borderRadius:e?`${n.dimension.borderRadius.get("circle")} 0 0 ${n.dimension.borderRadius.get("circle")}`:n.dimension.borderRadius.get("circle"),background:n.tokens.colors.get("backgroundColor.default"),boxShadow:`inset 0 0 0 ${n.dimension.borderWidth.get("default")} ${n.tokens.colors.get("borderColor.interactive.default")}`,...!t&&{"&:hover":{background:n.tokens.colors.get("palette.tertiary.muted")},"&:focus-within":{background:n.tokens.colors.get("palette.tertiary.muted"),outline:"none",boxShadow:`inset 0 0 0 ${n.dimension.borderWidth.get("active")} ${n.tokens.colors.get("borderColor.interactive.active")}`}},...r==null?void 0:r.wrapper},textField:{gap:P(8),paddingRight:n.dimension.spacing.get("lg"),paddingLeft:n.dimension.spacing.get("lg"),...r==null?void 0:r.textField}}),Jd=v.forwardRef((e,t)=>{const{placeholder:r="Search",isDisabled:n,onClear:o,value:a,dataTestPrefixId:i="search",filterConfig:l,sx:s,children:u,...d}=e,f=N(),p=a&&a.length>0,C=!!(l!=null&&l.defaultValue&&(l!=null&&l.label));return rl(()=>{o&&o()}),c.jsxs("div",{css:lR(),"data-testid":"search_container",children:[c.jsxs(z1,{dataTestPrefixId:i,isDisabled:n,sx:uR({hasFilter:C,isDisabled:n,sx:s})(f),children:[c.jsx(H,{name:"search",size:f.dimension.sizing.get("icon.md"),color:f.tokens.colors.get("textColor.default.secondary")}),c.jsx("div",{css:sR(),children:c.jsx("input",{type:"search",css:Gr({placeholder:r}),placeholder:r,disabled:n,value:a,ref:t,"data-testid":`${i}_search_input`,...d})}),p&&!n&&c.jsx(H,{name:"close",size:f.dimension.sizing.get("icon.md"),color:f.tokens.colors.get("textColor.default.secondary"),onClick:()=>{o()},dataTestId:"search-clear"})]}),C&&c.jsx("div",{css:cR(),children:c.jsx(nl,{...l,isDisabled:n,dataTestPrefixId:`${i}_search_filter`,children:u})})]})});Jd.displayName="Search";const e9=v.memo(Jd,le),t9=v.forwardRef((e,t)=>{const{onClear:r,onInput:n,filterConfig:o,...a}=e,[i,l]=v.useState(),[s,u]=v.useState(void 0),d=()=>{l(""),r&&r()},f=()=>{u(void 0),o!=null&&o.onClear&&(o==null||o.onClear())},p=b=>{l(b.target.value),n&&n(b.target.value)},y=!!(o!=null&&o.defaultValue&&(o!=null&&o.label)&&(o!=null&&o.items))?{filterConfig:{defaultValue:{label:"All",value:"all"},selectedFilter:s,onChange:u,onClear:f,...o}}:{};return c.jsx(e9,{ref:t,value:i,onClear:d,onInput:p,...y,...a})});t9.displayName="StatefulSearch";const dR=v.memo(t9,le),fR=({event:e,isSearchable:t,setSearchValue:r,isAsync:n,onChange:o,minCharactersToSearch:a=0})=>{const{target:{value:i}}=e;if(t&&r(i),n){if(e.persist(),a&&i.length&&i.length<a)return;o(i.trim())}},pR=()=>e=>{const t=Ht(e);return m.css("position:relative;min-width:",P(t("minWidth.small.normal")),";","")},gR=(e,t)=>()=>m.css("display:flex;cursor:pointer;transform:rotate(",e&&!t?"180":"0","deg);",fe(.2),";",""),ac={label:"",value:""},r9=v.forwardRef((e,t)=>{const{selectedOption:r,isMulti:n,options:o,size:a="normal",isAsync:i=!1,isLoading:l=!1,asyncSearch:s=()=>{},status:u={type:"normal"},minCharactersToSearch:d=0,hasHighlightSearch:f=!1,isSearchable:p=!0,isVirtualized:C=!1,isDisabled:y,dataTestId:b,onChange:S,isCreatable:h=!1,hasSelectAllOption:x=!1,...E}=e,A=v.useRef(null),{keyboardProps:T}=Xt({events:{keydown:{onArrowDown:()=>{B(!0),setTimeout(()=>{var de;const W=(de=A.current)==null?void 0:de.querySelectorAll('[role="option"]');if(W&&(W==null?void 0:W.length)>0){const Q=q.head(W);Q instanceof HTMLElement&&typeof Q.focus=="function"&&Q.focus()}},0)},onEscape:()=>{var W;(W=D==null?void 0:D.current)==null||W.blur(),B(!1),Wt()},onEnter:W=>{W.target.value.length>0&&setTimeout(()=>{var Xe;const Q=(Xe=A.current)==null?void 0:Xe.firstChild;Q instanceof HTMLElement&&typeof Q.click=="function"&&Q.click()},0)},onBackspace:()=>{Y(""),B(!0),n||r&&S&&"label"in r&&r.label===L&&(S(void 0),R(""),s(""))},onAlphaNumerical:()=>{p&&B(!0)}}}}),{keyboardProps:w}=Xt({events:{keydown:{onEscape:()=>{var W;B(!1),(W=D.current)==null||W.focus()}}}}),k=N(),[$,B]=v.useState(!1),Z=v.useRef(null),D=Kt(Z,t),[O,R]=v.useState(""),L=v.useMemo(()=>Array.isArray(r)||!r?O:O||(r==null?void 0:r.label),[O,r]),F=W=>{var de;if(n||B(!1),p&&R(""),n===!0){if(S&&r)if(le(W,Ae))S(o.filter(Q=>!Q.isDisabled));else if(W.isCreated){const Q={value:W.value,label:W.value.toString(),isCreated:!0};S([...r,Q])}else S([...r,W])}else if(S)if(W.isCreated){const Q={value:W.value,label:W.value.toString(),isCreated:!0};S(Q)}else S(W);(de=D.current)==null||de.focus()},Y=v.useCallback(q.debounce(W=>{s(W)},400),[]),ne=v.useCallback(W=>{$||B(!0),fR({event:W,isSearchable:p,isAsync:i,setSearchValue:R,onChange:Y,minCharactersToSearch:d})},[Y,i,$,p,d]),ae=v.useMemo(()=>{const W=n&&Array.isArray(r)?q.differenceBy(o,r,"value"):o,de=[];return i?de.push(...W):de.push(...W.filter(Q=>{var Xe;return!O||Q.label.toLowerCase().includes(O.toLowerCase())||!!((Xe=Q.options)!=null&&Xe.find(hc=>hc.label.toLowerCase().includes(O.toLowerCase())))}).map(Q=>{var Xe;return Q.label.toLowerCase().includes(O.toLowerCase())?Q:{...Q,options:(Xe=Q.options)==null?void 0:Xe.filter(hc=>hc.label.toLowerCase().includes(O.toLowerCase()))}})),h&&!de.map(Xe=>Xe.label.toLowerCase()).includes(O.toLowerCase())&&O.length>0&&de.push({value:O,label:`Create "${O}"`,isCreated:!0}),de},[n,o,r,i,h,O]),Vt=v.useMemo(()=>p&&!Array.isArray(r)?O||r!=null&&r.value?"close":"search":"triangleDown",[r,p,O]),Wt=v.useCallback(()=>{p||B(!$),p&&!Array.isArray(r)&&(O||r!=null&&r.value)&&(R(""),S&&S(n?[]:void 0),s(""))},[p,$,r,O,S,s,n]),Ye=v.useMemo(()=>c.jsx("div",{css:gR($,p),children:l?c.jsx(He,{py:"2",display:"flex",alignItems:"center",children:c.jsx(H1,{type:"circular",dataTestPrefixId:"select"})}):c.jsx(H,{size:k.dimension.sizing.get(`icon.${a==="compact"?"sm":"md"}`),name:Vt,color:k.tokens.colors.get("textColor.default.secondary"),onClick:Wt,hasHover:!1,dataTestId:"select-right-icon"})}),[$,p,l,k.dimension.sizing,k.tokens.colors,a,Vt,Wt]),cl=()=>{var W,de;$?p||(de=D==null?void 0:D.current)==null||de.blur():(W=D==null?void 0:D.current)==null||W.focus()},Y1=h&&ae.length===1&&ae[0].isCreated,yc=v.useRef(Jr("select_")).current;return c.jsx("div",{...!(y||u.type==="read-only")&&{onClick:cl},css:pR(),...w,children:c.jsx(Al,{id:yc,isVisible:$,setIsVisible:B,hasWrapperWidth:!0,isNonModal:n||p,offsetY:8,parent:n?c.jsx(el,{selectedOptions:r,onInput:ne,onOptionDelete:W=>{const de=Array.isArray(r)?r.filter(Q=>typeof W!="string"&&W?Q.value!==W.value:Q.value!==W):[];S&&S(de)},onClearAllOptions:()=>S&&S([]),isLoading:l,isDisabled:y,readOnly:!p,dataTestId:K("select-input",b),...E,status:u,value:L,ref:D,autoComplete:"off",...T,onClick:()=>B(!0),role:"combobox","aria-expanded":$,"aria-controls":yc}):c.jsx(vr,{suffix:Ye,...T,onInput:ne,isReadOnly:!p,isDisabled:y,dataTestId:K("select-input",b),...E,onClick:()=>B(!0),status:u,value:L,size:a,ref:D,autoComplete:"off",role:"combobox","aria-expanded":$,"aria-controls":yc}),children:c.jsx(X2,{ref:A,filteredOptions:ae,handleOptionClick:F,selectedOption:n===!0||!r?ac:r,status:u,isLoading:l,isVirtualized:C,size:a,hasSelectAllOption:n&&x&&!Y1})})})});r9.displayName="Select";const ic=v.memo(r9,le),n9=v.forwardRef(({isMulti:e,selectedOption:t,onChange:r=()=>{},...n},o)=>{const[a,i]=v.useState(e?t||[]:t||ac),l=v.useCallback(s=>{i(s),r(s)},[r]);return c.jsx(ic,{...n,selectedOption:a,isMulti:e,onChange:l,ref:o})});n9.displayName="StatefulSelect";const CR=v.memo(n9,le),vR=_e("div",{target:"ekzqro1"})("height:",I.rem(7),";width:",I.rem(7),";border-radius:100%;background:",({background:e})=>e,";position:relative;cursor:",({isDisabled:e})=>e?"not-allowed":"unset",";:hover{background:",({theme:e,isDisabled:t})=>t?void 0:e.tokens.colors.get("palette.primary.base"),";::before{content:'",({labelValue:e})=>e,"';color:white;display:",({isDisabled:e})=>e?"none":"flex",";justify-content:center;font-size:",({theme:e})=>e.globals.typography.fontSize[11],";background:black;position:absolute;padding:",({theme:e})=>e.globals.spacing.get("4"),";box-sizing:border-box;top:",I.rem(-35),";left:",I.rem(-14.5),";width:",I.rem(35),";height:",I.rem(27),";border-radius:2px;}::after{content:' ';display:",({isDisabled:e})=>e?"none":"unset",";position:absolute;top:",I.rem(-10),";left:",I.rem(-2.5),";width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #000;}}"),yR=_e("div",{target:"ekzqro0"})("::after{content:' ';height:",I.rem(7),";width:",I.rem(7),";border:4px solid transparent;border-radius:100px;position:absolute;top:",I.rem(-4),";left:",I.rem(-4),";}:hover{&::after{border-color:",({isDisabled:e})=>e?void 0:I.rgba(14,14,23,.1),";}}"),hR=({values:e,index:t,isDisabled:r,isSelector:n,dataTestPrefixId:o="",restProps:a})=>{const i=N(),l=v.useMemo(()=>n?t*20>e[0]?i.tokens.colors.get("palette.primaryAlt.base"):i.tokens.colors.get("palette.primary.base"):t*20<e[0]||t*20>e[1]?i.tokens.colors.get("palette.primaryAlt.base"):i.tokens.colors.get("palette.primary.base"),[n,t,e,i.tokens.colors]),s=v.useMemo(()=>(ol*t).toString(),[t]);return c.jsx(vR,{"data-testid":`${o}mark_${t}`,...a,isDisabled:r,labelValue:s?`${s}%`:" ",restStyleProps:a.style,background:l,children:c.jsx(yR,{isDisabled:r})})},bR=_e("div",{target:"e76yl4h0"})("height:",I.rem(16),";width:",I.rem(16),";border-radius:100px;background-color:",({theme:e,isChanged:t})=>t?e.tokens.colors.get("palette.primary.base"):"#fff",";border:2px solid ",({theme:e})=>e.tokens.colors.get("palette.primary.base"),";",({restStyleProps:e})=>({...e}),";box-sizing:border-box;cursor:",({isDisabled:e})=>e?"not-allowed":"unset","!important;&::after{content:'';height:",I.rem(16),";width:",I.rem(16),";border:8px solid transparent;border-radius:100px;position:absolute;top:",I.rem(-10),";left:",I.rem(-10),";",fe(.15),";}:hover{&::after{border-color:",({isDisabled:e})=>e?void 0:I.rgba(14,14,23,.1),";}}"),mR=({isDisabled:e,value:t,initialValue:r,dataTestId:n,restProps:o})=>{const a=v.useMemo(()=>r!==t,[r,t]);return c.jsx(bR,{"data-testid":n,...o,isChanged:a,isDisabled:e,restStyleProps:o.style})},wR=_e("div",{target:"ecb6cmq0"})("height:",I.rem(3),";border-radius:4px;background:",({background:e})=>e,";cursor:",({isDisabled:e})=>e?"not-allowed":"unset","!important;"),SR=({values:e,isDisabled:t,isSelector:r,dataTestPrefixId:n="",restProps:o,children:a})=>{const i=N(),l=v.useMemo(()=>bc.getTrackBackground({values:e,colors:r?[i.tokens.colors.get("palette.primary.base"),i.tokens.colors.get("palette.primaryAlt.base")]:[i.tokens.colors.get("palette.primaryAlt.base"),i.tokens.colors.get("palette.primary.base"),i.tokens.colors.get("palette.primaryAlt.base")],min:Kr,max:G1,rtl:!1}),[r,i.tokens.colors,e]);return c.jsx(wR,{"data-testid":`${n}track_component`,...o,isDisabled:t,restStyleProps:o.style,background:l,children:a})},xR=_e("div",{target:"ems0q502"})(me,";flex-direction:column;gap:",I.rem(22),";"),ER=_e("div",{target:"ems0q501"})(me,";margin-left:",I.rem(-7),";margin-right:",I.rem(-7),";gap:",I.rem(20),";align-items:center;justify-content:space-between;"),o9=_e("div",{target:"ems0q500"})("width:",I.rem(80),";"),_R=1,ol=20,Kr=0,G1=100,a9=({values:e,onChange:t,onBlur:r,hasIncrements:n=!1,isDisabled:o=!1,dataTestPrefixId:a})=>{const i=N(),l=v.useRef(e),s=l.current.length===1;if(s&&e.length!==1)throw new Error("The Selector type Slider can only accept one initial value in the array, since it only has one thumb. Try changing the `values` prop.");if(!s&&e.length!==2)throw new Error("The Range type Slider only accepts two initial values in the array, since it has two thumbs. Try changing the `values` prop.");const u=C=>C<Kr?0:C>G1?100:C,d=({props:C,index:y})=>{const b=s?y>Kr:y>Kr&&y<G1/ol;return n&&b&&c.jsx(hR,{dataTestPrefixId:a,restProps:C,values:e,index:y,isSelector:s,isDisabled:o},`mark_${y}`)},f=({props:C,children:y})=>c.jsx(SR,{dataTestPrefixId:a,isSelector:s,restProps:C,values:e,isDisabled:o,children:y}),p=({props:C,value:y,index:b})=>{var S;return c.jsx(mR,{dataTestId:`${a??""}thumb_${b}`,restProps:C,isDisabled:o,value:y,initialValue:(S=l.current)==null?void 0:S[b]},`thumb_${b}`)};return c.jsxs(xR,{"data-testid":`${a??""}slider_component`,"aria-disabled":o?"true":"false",children:[c.jsx("div",{css:m.css({opacity:o?i.tokens.disabledState.get("default"):"inherit"},"",""),children:c.jsx(bc.Range,{step:n?ol:_R,min:Kr,max:G1,disabled:o,values:e,onChange:t,onFinalChange:r,renderMark:d,renderTrack:f,renderThumb:p})}),!s&&!n&&e.length===2&&c.jsxs(ER,{children:[c.jsx(o9,{children:c.jsx(vr,{label:"Start",size:"compact",isDisabled:o,value:e[0],onChange:C=>{const y=u(parseInt((C==null?void 0:C.target.value)||"0"));t([y,e[1]])},onBlur:C=>{if(r){const y=u(parseInt((C==null?void 0:C.target.value)||"0"));r([y,e[1]])}},suffix:c.jsx(c.Fragment,{children:"%"})})}),c.jsx(o9,{children:c.jsx(vr,{label:"End",size:"compact",isDisabled:o,value:e[1],onChange:C=>{const y=u(parseInt((C==null?void 0:C.target.value)||"100"));t([e[0],y])},onBlur:C=>{if(r){const y=u(parseInt((C==null?void 0:C.target.value)||"100"));r([e[0],y])}},suffix:c.jsx(c.Fragment,{children:"%"})})})]})]})};a9.displayName="Slider";const kR=({variant:e,isInverted:t,fontSpacing:r="normal",isItalic:n,isBold:o,isUnderline:a,type:i})=>l=>{const s={headline01:Qc,headline02:Jc,headline03:e3,headline04:t3,headline05:r3,title01:Mf,title02:Lf,title03:If,label01:n3,label02:e1,label03:bl,label04:Bf,body01:o3,body02:ml,body03:t1,body04:qf},d=`textColor.${t?"inverted":"default"}.${i}`;return m.css(s[e](l,r),";font-style:",n?"italic":void 0,";font-weight:",o?l.globals.typography.fontWeight.get("bold"):void 0,";text-decoration:",a?l.globals.typography.textDecoration.get("link"):void 0,";color:",l.tokens.colors.get(d),";","")},i9=e=>e==="headline01"?"h1":e==="headline02"?"h2":e==="headline03"?"h3":e==="headline04"?"h4":e==="headline05"?"h5":e.includes("title")?"h6":e.includes("label")?"span":(e.includes("body"),"p"),zt=v.forwardRef(({type:e="primary",variant:t="body01",fontSpacing:r="normal",component:n,isInverted:o,isUnderline:a,isItalic:i,isBold:l,children:s,...u},d)=>{const f=n||i9(t);return c.jsx(f,{ref:d,css:kR({isInverted:o,type:e,variant:t,fontSpacing:r,isUnderline:a,isItalic:i,isBold:l}),...u,children:s})}),l9=(e,t,r,n,o)=>{const a=jt.createColumnHelper(),i=t?[{id:"checkbox_select",header:({table:u})=>c.jsx(br,{isSelected:u.getIsAllRowsSelected(),isIndeterminate:u.getIsSomeRowsSelected(),onChange:()=>{const d=u.getIsAllRowsSelected();u.toggleAllRowsSelected(!d)},dataTestPrefixId:`${o}_table_select_all`}),cell:({row:u})=>c.jsx("div",{className:"px-1",children:c.jsx(br,{isSelected:u.getIsSelected(),isDisabled:!u.getCanSelect(),isIndeterminate:u.getIsSomeSelected(),onChange:()=>{const d=u.getIsSelected();u.toggleSelected(!d)},dataTestPrefixId:`${o}_table_select_${u.id}`})}),meta:{contentAlign:"left"}}]:[],l=r?[{id:"details_iconButton",header:()=>c.jsx(c.Fragment,{}),cell:({row:u})=>c.jsx(H,{name:u.getIsExpanded()?"triangleDown":"triangleRight",size:n.dimension.sizing.get("icon.md"),color:n.tokens.colors.get("textColor.default.secondary"),onClick:()=>{const d=u.getIsExpanded();u.toggleExpanded(!d)},dataTestId:`${o}_table_expand_${u.id}`}),meta:{contentAlign:"left"}}]:[],s=e.reduce((u,d)=>{if("columns"in d){const f={id:d.id,header:d.header,columns:l9(d.columns,!1,!1,n,o)};u.push(a.group(f))}else u.push(a.accessor(d.id,{header:d.header,cell:f=>{const p=f.getValue();return typeof p=="string"||typeof p=="number"?c.jsx(zt,{variant:"body02",component:"span",css:hr,children:p}):p},size:d.width??"auto",minSize:d.width,enableSorting:d.isSortable??!1,meta:{contentAlign:d.contentAlign??"left"}}));return u},i);return q.concat(s,l)},s9=({type:e="read-only",data:t,columns:r,sorting:n,rowsConfig:o,columnsConfig:a,dataTestPrefixId:i,...l})=>{const s=N(),u=e==="interactive",{rowSelection:d,setRowSelection:f,expanded:p,setExpanded:C}=o??{},y=t.some(A=>A.details)&&!!p,b=v.useMemo(()=>t.map(A=>A.cells),[t]),h=l9(r,!!(d&&u),y,s,i),x=v.useMemo(()=>({...n&&{sorting:n.sortingColumn},...d&&u&&{rowSelection:d},...a&&{columnVisibility:a.columnVisibility},...p&&{expanded:p}}),[a,p,u,d,n]),E=jt.useReactTable({data:b,columns:h,getCoreRowModel:jt.getCoreRowModel(),state:x,...n&&{manualSorting:!0,onSortingChange:n.handleSorting,enableMultiSort:n.isMultiSortable??!1},...f&&u&&{enableRowSelection:!0,onRowSelectionChange:f},...p&&C&&{getExpandedRowModel:jt.getExpandedRowModel(),onExpandedChange:C},...a&&{onColumnVisibilityChange:a.setColumnVisibility},...l});return{getHeaderGroups:E.getHeaderGroups,getRowModel:E.getRowModel,getIsAllRowsSelected:E.getIsAllRowsSelected,getIsSomeRowsSelected:E.getIsSomeRowsSelected,getToggleAllRowsSelectedHandler:E.getToggleAllRowsSelectedHandler,toggleAllRowsSelected:E.toggleAllRowsSelected,getAllLeafColumns:E.getAllLeafColumns}},TR=()=>e=>m.css("display:inline-block;border:",e.dimension.borderWidth.get("default")," solid ",e.tokens.colors.get("borderColor.decorative.default"),";border-radius:",e.dimension.borderRadius.get("md"),";background:",e.tokens.colors.get("backgroundColor.default"),";",""),$R=({sx:e})=>m.css("width:100%;border-collapse:collapse;table-layout:fixed;thead>tr>th:last-child,tbody>tr>td:last-child{border-right:none;}tbody>tr:last-child>td{border-bottom:none;}",e,";",""),AR=({type:e="read-only",rowsConfig:t,data:r,columns:n,rowSize:o="sm",columnsConfig:a,sorting:i,hasStickyHeader:l=!1,pagination:s,sx:u,dataTestPrefixId:d="ictinus"})=>{const[f,p]=v.useState(!1),C=!!(e==="interactive"&&(t!=null&&t.rowSelection)),y=!!(t!=null&&t.expanded),b=v.useRef(),S=v.useRef(null);v.useEffect(()=>{var E,A;b!=null&&b.current&&p(((E=b==null?void 0:b.current)==null?void 0:E.scrollHeight)>((A=b==null?void 0:b.current)==null?void 0:A.clientHeight))},[b.current]);const h=s9({type:e,data:r,columns:n,sorting:i,rowsConfig:t,columnsConfig:a,dataTestPrefixId:d}),x=!!(a||t);return c.jsxs("div",{css:TR(),ref:S,"data-testid":`${d}_table_container`,children:[x&&c.jsx(h9,{type:e,columnsConfig:a,columns:n,rowsConfig:t,containerRef:S,rowsCount:(t==null?void 0:t.rowsCount)??h.getRowModel().rows.length,dataTestPrefixId:d}),c.jsxs("table",{css:$R({sx:u==null?void 0:u.table}),"data-testid":`${d}_table`,children:[c.jsx(d9,{hasStickyHeader:l,hasScrollbar:f,sx:u==null?void 0:u.thead,children:h.getHeaderGroups().map(E=>{const A=E.headers.length-+C-+y;return c.jsx(al,{sx:u==null?void 0:u.tr,children:E.headers.map(T=>{var w,k,$;return c.jsx(v9,{id:T.id,colSpan:T.colSpan,rowSize:o,width:T.getSize()||100/A,metaData:T.column.columnDef.meta,...T.column.getCanSort()&&{colSortingState:(w=i==null?void 0:i.sortingColumn)!=null&&w.find(B=>B.id===T.id)?{...(k=i==null?void 0:i.sortingColumn)==null?void 0:k.find(B=>B.id===T.id),...i.sortingColumn.length>1&&{badge:(($=i==null?void 0:i.sortingColumn)==null?void 0:$.findIndex(B=>B.id===T.id))+1}}:void 0,onSort:T.column.toggleSorting,isMultiSortable:T.column.getCanMultiSort(),resetSorting:T.column.clearSorting},sx:u==null?void 0:u.th,dataTestPrefixId:d,children:T.isPlaceholder?null:jt.flexRender(T.column.columnDef.header,T.getContext())},T.id)})},E.id)})}),c.jsx(u9,{hasStickyHeader:l,ref:b,sx:u==null?void 0:u.tbody,children:h.getRowModel().rows.map((E,A)=>{const T=E.getVisibleCells().length-+y-+C;return c.jsxs(c.Fragment,{children:[c.jsx(al,{sx:u==null?void 0:u.tr,...(C||y)&&{isSelectable:C,isExpandable:y,isSelected:E.getIsSelected(),isExpanded:E.getIsExpanded(),onClick:w=>{if(y){const k=E.getIsExpanded();E.toggleExpanded(!k)}else C&&E.toggleSelected()}},children:E.getVisibleCells().map(w=>c.jsx(lc,{columnId:w.column.id,rowId:w.id,rowSize:o,width:w.column.getSize()||100/T,metaData:w.column.columnDef.meta,sx:typeof(u==null?void 0:u.td)=="function"?u.td(w.row.original):u==null?void 0:u.td,dataTestPrefixId:d,children:jt.flexRender(w.column.columnDef.cell,w.getContext())},w.id))},E.id),E.getIsExpanded()&&c.jsx(al,{children:c.jsx(lc,{rowId:E.id,colSpan:h.getAllLeafColumns().length,isDetails:!0,dataTestPrefixId:d,children:r[A].details})})]})})})]}),s&&c.jsx(b9,{pagination:s,isSticky:l&&f,dataTestPrefixId:d})]})},PR=v.memo(AR,le),OR=({hasStickyHeader:e,sx:t})=>()=>m.css(e&&`
141
141
  display: block;
142
142
  overflow-y: auto;
143
143
 
@@ -163,7 +163,7 @@ Unable to find an `+(n===!1?"accessible ":"")+'element with the role "'+t+'"'+s+
163
163
 
164
164
  `," ",(t||r)&&`
165
165
  background: ${a.tokens.colors.get("palette.tertiary.contrast")};
166
- `," ",o,";",""),GR=({onClick:e,isExpandable:t,isExpanded:r,isSelected:n,isSelectable:o,sx:a,children:i})=>c.jsx("tr",{onClick:e,css:ZR({isSelected:n,isSelectable:o,isExpandable:t,isExpanded:r,sx:a}),children:i}),al=v.memo(GR,le),KR=()=>e=>m.css("border-bottom:",e.dimension.borderWidth.get("default")," solid ",e.tokens.colors.get("borderColor.decorative.default"),";",""),YR=({rowSize:e,width:t,isCheckbox:r,isExpandedButton:n,sx:o})=>a=>{const i=()=>r||n?P(g9):t?`${t}%`:"100%";return m.css("width:",i(),";height:",a.dimension.minHeight.get(`tableRow.${e}`),";padding:",a.dimension.spacing.get("sm")," ",a.dimension.spacing.get("lg"),";border-bottom:",a.dimension.borderWidth.get("default")," solid ",a.tokens.colors.get("borderColor.decorative.default"),";box-sizing:border-box;align-content:center;",o,";","")},XR=({contentAlign:e})=>m.css("text-align:",e,";",""),QR=({colSpan:e,rowSize:t="sm",isDetails:r=!1,width:n,sx:o,children:a,columnId:i,rowId:l,metaData:s,dataTestPrefixId:u,...d})=>{const f=i==="checkbox_select",p=i==="details_iconButton",{contentAlign:C="left"}=s??{};return r?c.jsx("td",{colSpan:e,css:KR(),"data-testid":`${u}_table_row_${l}_details`,children:a}):c.jsx("td",{css:YR({rowSize:t,width:n,isCheckbox:f,isExpandedButton:p,sx:o}),colSpan:e,"data-testid":`${u}_table_row_${l}`,...d,children:c.jsx("div",{css:XR({contentAlign:C}),children:a})})},lc=v.memo(QR,le),JR=()=>e=>m.css("border:",e.globals.borderWidth.get("1")," solid ",e.tokens.colors.get("borderColor.decorative.default"),";",""),y9=e=>e.reduce((t,r)=>r.columns?t.concat(y9(r.columns)):t.concat(r),[]);var eN={name:"1d3w5wq",styles:"width:100%"};const tN=({columns:e,columnsConfig:t,containerRef:r,dataTestPrefixId:n})=>{const[o,a]=v.useState(!1),i=y9(e),l=v.useRef(null),[s,u]=v.useState(new Set(Object.keys(t.columnVisibility).filter(y=>t.columnVisibility[y]===!0))),d=i.filter(y=>y.isAlwaysVisible).map(y=>y.id),f=v.useRef(null),p=y=>{y!=null&&y.preventDefault&&(y==null||y.preventDefault()),a(b=>!b)},C=y=>{const b=Array.from(y);u(y),t.setColumnVisibility(i.reduce((S,h)=>(S[h.id]=b.includes(h.id),S),{}))};return c.jsxs(c.Fragment,{children:[c.jsx(xe,{ref:f,"aria-label":"Menu",onClick:p,"aria-controls":o?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":o?"true":void 0,size:"compact",type:"secondary",onKeyDown:y=>{y.key==="ArrowDown"&&l.current.focus()},dataTestPrefixId:`${n}_column_chooser_`,children:"Edit Columns"}),c.jsx(ee.Popover,{triggerRef:f,css:Q2,isOpen:o,onOpenChange:()=>a(y=>!y),shouldCloseOnInteractOutside:()=>!0,boundaryElement:r.current,crossOffset:-31,children:c.jsx(ec,{ref:l,"aria-label":"Menu",selectionMode:"multiple",selectedKeys:s,css:[ln({}),JR(),"",""],onSelectionChange:C,disabledKeys:d,children:i.map((y,b)=>{const S=y.id,h=y.header.toLowerCase().split(" ").join("_");return c.jsxs(c.Fragment,{children:[c.jsx(J2,{isCompact:!0,rowSize:"compact",isDisabled:y.isAlwaysVisible,id:S,children:c.jsxs(Le,{textValue:y.header,parentType:"Menu",css:eN,"data-testid":`${n}_column_chooser_${h}`,children:[c.jsx(Ve,{children:y.header}),c.jsx(wl,{children:c.jsx(Tl,{isDisabled:y.isAlwaysVisible,isSelected:s==null?void 0:s.has(S),dataTestPrefixId:`${n}_column_chooser_${h}`})})]},S)},S),b<i.length-1&&c.jsx(tc,{})]})})})})]})},rN=()=>e=>m.css("padding:",e.dimension.spacing.get("sm")," ",e.dimension.spacing.get("lg"),";border-bottom:",e.globals.borderWidth.get("1")," solid ",e.tokens.colors.get("borderColor.decorative.default"),";display:flex;justify-content:space-between;height:",P(C9),";box-sizing:border-box;",""),nN=()=>e=>m.css("display:flex;align-items:center;gap:",e.dimension.spacing.get("lg"),";",""),oN=()=>e=>m.css("display:flex;gap:",e.dimension.spacing.get("lg"),";",""),aN=({type:e="read-only",columns:t,columnsConfig:r,rowsConfig:n,rowsCount:o,containerRef:a,dataTestPrefixId:i})=>{const{hasRowsCount:l,rowSelection:s,bulkActions:u,defaultAction:d}=n??{},f=e==="interactive"&&s,p=f?Object.keys(s).length:l?o:0,C=f||l,y=f&&p>0,b=v.useMemo(()=>c.jsxs("div",{"data-testid":`${i}_title`,children:[c.jsx(zt,{type:f?"active":"primary",variant:"label02","data-testid":`${i}_title_items_count`,children:p}),c.jsxs(zt,{variant:"label02",children:[" items ",f?"selected":""]})]}),[i,f,p]);return c.jsxs("div",{css:rN(),children:[c.jsx("div",{css:nN(),children:C&&c.jsxs(c.Fragment,{children:[b,y&&u]})}),c.jsxs("div",{css:oN(),children:[d,r&&c.jsx(tN,{columns:t,columnsConfig:r,containerRef:a,dataTestPrefixId:i})]})]})},h9=v.memo(aN,le),iN=({isSticky:e})=>t=>m.css("display:flex;align-items:center;justify-content:space-between;background:",t.tokens.colors.get("backgroundColor.default"),";height:",P(C9),";width:100%;padding:",t.dimension.spacing.get("sm")," ",t.dimension.spacing.get("lg"),";box-sizing:border-box;border-top:",t.dimension.borderWidth.get("default")," solid ",t.tokens.colors.get("borderColor.decorative.default"),";border-bottom-left-radius:",t.dimension.borderRadius.get("md"),";border-bottom-right-radius:",t.dimension.borderRadius.get("md"),";",e&&`
166
+ `," ",o,";",""),GR=({onClick:e,isExpandable:t,isExpanded:r,isSelected:n,isSelectable:o,sx:a,children:i})=>c.jsx("tr",{onClick:e,css:ZR({isSelected:n,isSelectable:o,isExpandable:t,isExpanded:r,sx:a}),children:i}),al=v.memo(GR,le),KR=()=>e=>m.css("border-bottom:",e.dimension.borderWidth.get("default")," solid ",e.tokens.colors.get("borderColor.decorative.default"),";",""),YR=({rowSize:e,width:t,isCheckbox:r,isExpandedButton:n,sx:o})=>a=>{const i=()=>r||n?P(g9):t?`${t}%`:"100%";return m.css("width:",i(),";height:",a.dimension.minHeight.get(`tableRow.${e}`),";padding:",a.dimension.spacing.get("sm")," ",a.dimension.spacing.get("lg"),";border-bottom:",a.dimension.borderWidth.get("default")," solid ",a.tokens.colors.get("borderColor.decorative.default"),";box-sizing:border-box;align-content:center;",o,";","")},XR=({contentAlign:e})=>m.css("text-align:",e,";",""),QR=({colSpan:e,rowSize:t="sm",isDetails:r=!1,width:n,sx:o,children:a,columnId:i,rowId:l,metaData:s,dataTestPrefixId:u,...d})=>{const f=i==="checkbox_select",p=i==="details_iconButton",{contentAlign:C="left"}=s??{};return r?c.jsx("td",{colSpan:e,css:KR(),"data-testid":`${u}_table_row_${l}_details`,children:a}):c.jsx("td",{css:YR({rowSize:t,width:n,isCheckbox:f,isExpandedButton:p,sx:o}),colSpan:e,"data-testid":`${u}_table_row_${l}`,...d,children:c.jsx("div",{css:XR({contentAlign:C}),children:a})})},lc=v.memo(QR,le),JR=()=>e=>m.css("border:",e.globals.borderWidth.get("1")," solid ",e.tokens.colors.get("borderColor.decorative.default"),";",""),y9=e=>e.reduce((t,r)=>r.columns?t.concat(y9(r.columns)):t.concat(r),[]);var eN={name:"1d3w5wq",styles:"width:100%"};const tN=({columns:e,columnsConfig:t,containerRef:r,dataTestPrefixId:n})=>{const[o,a]=v.useState(!1),i=y9(e),l=v.useRef(null),[s,u]=v.useState(new Set(Object.keys(t.columnVisibility).filter(y=>t.columnVisibility[y]===!0))),d=i.filter(y=>y.isAlwaysVisible).map(y=>y.id),f=v.useRef(null),p=y=>{y!=null&&y.preventDefault&&(y==null||y.preventDefault()),a(b=>!b)},C=y=>{const b=Array.from(y);u(y),t.setColumnVisibility(i.reduce((S,h)=>(S[h.id]=b.includes(h.id),S),{}))};return c.jsxs(c.Fragment,{children:[c.jsx(xe,{ref:f,"aria-label":"Menu",onClick:p,"aria-controls":o?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":o?"true":void 0,size:"compact",type:"secondary",onKeyDown:y=>{y.key==="ArrowDown"&&l.current.focus()},dataTestPrefixId:`${n}_column_chooser_`,children:"Edit Columns"}),c.jsx(ee.Popover,{triggerRef:f,css:Q2,isOpen:o,onOpenChange:()=>a(y=>!y),shouldCloseOnInteractOutside:()=>!0,boundaryElement:r.current,crossOffset:-31,children:c.jsx(ec,{ref:l,"aria-label":"Menu",selectionMode:"multiple",selectedKeys:s,css:[ln({}),JR(),"",""],onSelectionChange:C,disabledKeys:d,children:i.map((y,b)=>{const S=y.id,h=y.header.toLowerCase().split(" ").join("_");return c.jsxs(c.Fragment,{children:[c.jsx(J2,{isCompact:!0,rowSize:"compact",isDisabled:y.isAlwaysVisible,id:S,children:c.jsxs(Le,{textValue:y.header,parentType:"Menu",css:eN,"data-testid":`${n}_column_chooser_${h}`,children:[c.jsx(Ve,{children:y.header}),c.jsx(wl,{children:c.jsx(Tl,{isDisabled:y.isAlwaysVisible,isSelected:s==null?void 0:s.has(S),dataTestPrefixId:`${n}_column_chooser_${h}`})})]},S)},S),b<i.length-1&&c.jsx(tc,{})]})})})})]})},rN=()=>e=>m.css("padding:",e.dimension.spacing.get("sm")," ",e.dimension.spacing.get("lg"),";border-bottom:",e.globals.borderWidth.get("1")," solid ",e.tokens.colors.get("borderColor.decorative.default"),";display:flex;justify-content:space-between;height:",P(C9),";box-sizing:border-box;",""),nN=()=>e=>m.css("display:flex;align-items:center;gap:",e.dimension.spacing.get("lg"),";",""),oN=()=>e=>m.css("display:flex;gap:",e.dimension.spacing.get("lg"),";",""),aN=({type:e="read-only",columns:t,columnsConfig:r,rowsConfig:n,rowsCount:o,containerRef:a,dataTestPrefixId:i})=>{const{hasRowsCount:l,rowSelection:s,bulkActions:u,defaultAction:d}=n??{},f=e==="interactive"&&s,p=f?Object.keys(s).length:l?o:0,C=f||l,y=f&&p>0,b=v.useMemo(()=>c.jsxs("div",{"data-testid":`${i}_title`,children:[c.jsx(zt,{type:"active",variant:"label02","data-testid":`${i}_title_items_count`,children:p}),c.jsxs(zt,{variant:"label02",children:[" items ",f?"selected":""]})]}),[i,f,p]);return c.jsxs("div",{css:rN(),children:[c.jsx("div",{css:nN(),children:C&&c.jsxs(c.Fragment,{children:[b,y&&u]})}),c.jsxs("div",{css:oN(),children:[d,r&&c.jsx(tN,{columns:t,columnsConfig:r,containerRef:a,dataTestPrefixId:i})]})]})},h9=v.memo(aN,le),iN=({isSticky:e})=>t=>m.css("display:flex;align-items:center;justify-content:space-between;background:",t.tokens.colors.get("backgroundColor.default"),";height:",P(C9),";width:100%;padding:",t.dimension.spacing.get("sm")," ",t.dimension.spacing.get("lg"),";box-sizing:border-box;border-top:",t.dimension.borderWidth.get("default")," solid ",t.tokens.colors.get("borderColor.decorative.default"),";border-bottom-left-radius:",t.dimension.borderRadius.get("md"),";border-bottom-right-radius:",t.dimension.borderRadius.get("md"),";",e&&`
167
167
  box-shadow: ${t.tokens.boxShadow.get("5")},
168
168
  0 ${t.dimension.borderWidth.get("default")} 0 0 ${t.tokens.colors.get("borderColor.decorative.default")};
169
169
  `,";",""),lN=()=>e=>m.css("display:flex;align-items:center;gap:",e.dimension.spacing.get("sm"),";",""),sN=()=>e=>m.css("display:flex;align-items:center;gap:",e.dimension.spacing.get("3xl"),";",""),cN=()=>e=>m.css("display:flex;gap:",e.globals.spacing.get("3"),";","");var uN={name:"zjik7",styles:"display:flex"};const dN=()=>uN,b9=({pagination:e,isSticky:t,dataTestPrefixId:r})=>{const{page:n,totalPages:o,onChange:a,showItems:i,showItemsOptions:l,onShowItemsChange:s,isEnhancedPaginationVisible:u,isNextPageDisabled:d,isPrevPageDisabled:f}=e,p=N();return c.jsxs("div",{css:iN({isSticky:t}),children:[c.jsx("div",{css:lN(),children:i&&l&&c.jsx(ic,{label:"",size:"compact",options:l,selectedOption:i,isSearchable:!1,onChange:s,dataTestId:`${r}_table_show_items`})}),c.jsxs("div",{css:sN(),children:[c.jsxs("div",{css:cN(),"data-testid":`${r}_table_pages_info`,children:[c.jsx(zt,{type:"secondary",variant:"body03",children:"page"}),c.jsx(zt,{variant:"label03","data-testid":`${r}_table_current_page`,children:n}),c.jsx(zt,{type:"secondary",variant:"body03",children:"of"}),c.jsx(zt,{variant:"label03","data-testid":`${r}_table_total_pages`,children:o})]}),c.jsxs("div",{css:dN(),children:[u&&c.jsx(se,{color:p.tokens.colors.get("textColor.default.secondary"),iconName:"pageFirst",size:"compact",type:"tertiary",onClick:()=>a(1),isDisabled:n===1||f,dataTestPrefixId:`${r}_table_go_to_first_page`}),c.jsx(se,{color:p.tokens.colors.get("textColor.default.secondary"),iconName:"chevronLeft",size:"compact",type:"tertiary",onClick:()=>a(n-1),isDisabled:n===1||f,dataTestPrefixId:`${r}_table_go_to_prev_page`}),c.jsx(se,{color:p.tokens.colors.get("textColor.default.secondary"),iconName:"chevronRight",size:"compact",type:"tertiary",onClick:()=>a(n+1),isDisabled:n===o||d,dataTestPrefixId:`${r}_table_go_to_next_page`}),u&&c.jsx(se,{color:p.tokens.colors.get("textColor.default.secondary"),iconName:"pageLast",size:"compact",type:"tertiary",onClick:()=>a(o),isDisabled:n===o||d,dataTestPrefixId:`${r}_table_go_to_last_page`})]})]})]})},m9=e=>()=>m.css(Ut,";display:inline-flex;gap:",P(`${e}px`),";",""),sc=()=>e=>m.css("font-weight:",e.globals.typography.fontWeight.get("medium"),";color:",e.tokens.colors.get("textColor.default.secondary"),";",""),Ke=e=>typeof e=="string",fN=e=>!!(e.isSortable||e.tooltip),Yr=e=>e.tokens.colors.get("borderColor.decorative.default");var pN={name:"18ev9ec",styles:"text-align:start;white-space:pre-wrap;word-break:break-word"};const gN=({isInverted:e=!1,isInteractive:t=!1})=>r=>{const n=r.tokens.colors.get(e?"backgroundColor.alt":"backgroundColor.inverted"),o=pN;return m.css(".tooltip{background-color:",n,";border:",r.dimension.borderWidth.get("default")," solid ",r.tokens.colors.get(e?"borderColor.decorative.default":"borderColor.decorative.transparent"),";box-shadow:",r.tokens.boxShadow.get("2"),";z-index:1000;max-width:",!t&&P(256),";padding:",r.dimension.spacing.get(t?"lg":"sm"),";border-radius:",r.dimension.borderRadius.get("md"),";color:",!t&&r.tokens.colors.get(e?"textColor.default.primary":"textColor.inverted.primary"),";",!t&&j(r.tokens.typography.get("normal.body03")),";",!t&&o,";}","")},il=v.forwardRef(({id:e=q.uniqueId("tooltip"),children:t,content:r,placement:n="right",isInverted:o=!1,isInteractive:a=!1,delayIn:i=500,delayOut:l=500,isOpen:s,...u},d)=>c.jsxs("div",{css:gN({isInverted:o,isInteractive:a}),children:[c.jsx("span",{...u,"data-tooltip-id":e,ref:d,children:t}),c.jsx(H9.Tooltip,{id:e,place:n,delayShow:i,delayHide:l,clickable:a,className:"tooltip",isOpen:s,role:"tooltip",children:r})]}));il.displayName="Tooltip";var CN={name:"1tjylrs",styles:"width:fit-content"},vN={name:"1tjylrs",styles:"width:fit-content"};const w9=({item:e,sorting:t,isNumerical:r})=>{const n=N(),o=Ke(e)?e.trim().toLowerCase().replace(/ /g,"_"):e.content.sortingKey.trim().toLowerCase().replace(/ /g,"_"),a=()=>!Ke(e)&&(e==null?void 0:e.isSortable)&&(e.content.sortingKey===(t==null?void 0:t.column)?c.jsx("div",{css:m.css({transition:"0.3s all ease-in-out",transformOrigin:"center",width:"fit-content",transform:`rotate(${t.order==="asc"?"180":"0"}deg)`},"",""),children:c.jsx(H,{name:"triangleDown",dataTestId:`table_icon_sort_${o}_${t.order==="desc"?"desc":"asc"}`,color:n.tokens.colors.get("textColor.default.secondary")})},`table_icon_sort_${o}`):c.jsx("div",{css:CN,children:c.jsx(H,{name:"sort",dataTestId:`table_icon_sort_${o}`,color:n.tokens.colors.get("textColor.default.secondary")})},`table_icon_sort_${o}`)),i=()=>{var s,u;return!Ke(e)&&((s=e==null?void 0:e.tooltip)==null?void 0:s.content)&&c.jsx("div",{css:vN,children:c.jsx(il,{content:(u=e==null?void 0:e.tooltip)==null?void 0:u.content,placement:e==null?void 0:e.tooltip.placement,children:c.jsx(H,{name:"informational",dataTestId:`table_icon_tooltip_${o}`,color:n.tokens.colors.get("textColor.default.secondary")})})},`table_icon_tooltip_${o}`)},l=()=>r?[a(),i()]:[i(),a()];return Ke(e)?c.jsx("div",{css:sc(),children:e}):fN(e)?c.jsxs("div",{"data-testid":`header_${o}`,css:m9("8"),children:[c.jsx("span",{css:sc(),children:e.content.label}),c.jsx("div",{css:m9("4"),children:l()})]}):c.jsx("div",{css:sc(),children:e.content.label})};var yN={name:"1sdvxj3",styles:"&>div>span{color:black;font-weight:700;}"};const S9=()=>yN,hN=({isActive:e})=>t=>m.css("cursor:pointer;position:relative;height:",P(64),";",e&&S9()," &:hover{",S9(),";background-color:",t.tokens.colors.get("palette.secondary.muted"),";}",""),bN=(e,t,r,n,o)=>{if(e)return t==="th"&&typeof e=="string"?[r,"table_header",e==null?void 0:e.replace(/ /g,"_").toLowerCase()].filter(a=>a).join("_"):[r,n!==void 0?`table_row_${n}`:"",o!==void 0?`cell_${o}`:""].filter(a=>a).join("_")},Pe=g.memo(({textAlign:e="left",component:t="td",width:r,isSticky:n=!1,isPaddedSticky:o=!1,colSpan:a,children:i,isSortable:l=!1,isActive:s=!1,type:u="normal",isPadded:d=!1,dataTestIdPrefix:f,rowIndex:p,onClick:C,index:y})=>{const b=N(),S=t,h=bN(i,t,f,p,y);return c.jsx(S,{colSpan:a,css:[{position:"relative",textAlign:e,padding:`${b.globals.spacing.get("3")} ${d?b.globals.spacing.get("4"):0}`,width:r},t==="th"&&{paddingTop:b.globals.spacing.get("4"),paddingBottom:b.globals.spacing.get("4"),fontWeight:b.globals.typography.fontWeight.get("bold"),fontSize:b.globals.typography.fontSize.get("3")},t==="th"&&l&&{...hN({isActive:s})(b)},n&&{top:o?I.rem(64):0,left:0,zIndex:2,position:"sticky",background:b.globals.oldColors.white,boxShadow:`inset 0px -1px 0px 0px ${Yr(b)}`},u==="financial"&&{borderLeft:`1px solid ${Yr(b)}`},"",""],onClick:C,"data-testid":h,children:i})});Pe.displayName="TableCell";const K1=({isNested:e,isSelected:t,children:r,onClick:n,...o})=>{const a=N();return c.jsx("tr",{onClick:()=>{n&&n()},css:[{backgroundColor:t?a.tokens.colors.get("palette.secondary.muted"):void 0,paddingTop:a.globals.spacing.get("3"),paddingBottom:a.globals.spacing.get("3"),cursor:n&&"pointer","&:hover":{backgroundColor:n&&a.tokens.colors.get("palette.secondary.base")},"> td":{paddingTop:e?0:void 0,paddingBottom:e?0:void 0}},"",""],...o,children:r})},cc=g.createContext({row:{id:0,cells:[]},columnsWithWidth:[],isPadded:!1,hasOnSelectionChange:!1,isRowSelected:!1,columnCount:0,columns:[],hasFixedHeader:!1,tChange:()=>{},type:"normal",isBordered:!1}),mN=(e=!1)=>{const[t,r]=g.useState(e),n=g.useCallback(()=>r(o=>!o),[r]);return[t,n]},wN=()=>e=>m.css({color:e.tokens.colors.get("textColor.default.primary"),fontSize:e.globals.typography.fontSize.get("2"),paddingBottom:e.globals.spacing.get("3"),fontWeight:e.globals.typography.fontWeight.get("bold")},"",""),x9=_e("div",{target:"ep8j7z50"})({name:"1h52dri",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap"}),E9=({children:e,isAlwaysVisible:t=!1,tooltipContent:r,placement:n="bottom"})=>{const[o,a]=v.useState(!1),i=v.useRef(null),l=i.current,s=v.useCallback(()=>{a(!0)},[]),u=v.useCallback(()=>{a(!1)},[]),d=v.useMemo(()=>!!l&&l.scrollWidth>l.offsetWidth,[l]);return v.useCallback((p,C,y,b)=>p===void 0?!1:b?!0:C&&y,[])(r,o,d,t)&&r?c.jsx(il,{placement:n,content:r,isOpen:o,children:c.jsx(x9,{ref:i,onMouseEnter:s,onMouseLeave:u,children:e})}):c.jsx(x9,{ref:i,onMouseEnter:s,onMouseLeave:u,children:e})},SN=({columns:e,isPadded:t,columnWidth:r,tooltipContent:n,content:o,colSpan:a,rowType:i,cellType:l,align:s,cellCounter:u,dataTestIdPrefix:d,rowIndex:f,index:p})=>{const C=!Number.isNaN(Number(o));return c.jsxs(Pe,{textAlign:s||(C?"right":"left"),colSpan:a,type:l,isPadded:t,width:r?`${r}%`:"initial",dataTestIdPrefix:d,rowIndex:f,index:p,children:[i==="nested-header"&&c.jsx("div",{css:wN(),children:e[u]}),c.jsx(E9,{placement:"bottom",tooltipContent:n,children:pl(o)?o({content:o,colSpan:a}):c.jsx("span",{"data-column":e[u],children:o})})]})},xN=v.memo(SN),EN=({isExpandedExists:e,isChecked:t,toggleIsChecked:r,actionWidth:n,dataTestIdPrefix:o,rowIndex:a,index:i})=>{const l=N(),s=Qr(),u=n?`${n}%`:s.des1920?"5%":"7%";return e?c.jsx(Pe,{width:u,dataTestIdPrefix:o,rowIndex:a,index:i,children:c.jsx("div",{children:c.jsx("div",{css:m.css({display:"flex",justifyContent:"center",padding:`${l.globals.spacing.get("3")} ${l.globals.spacing.get("4")}`},"",""),children:c.jsx("div",{css:m.css({transition:"0.3s all ease-in-out",transformOrigin:"center",width:"fit-content",transform:`rotate(${t?"180":"0"}deg)`},"",""),onClick:d=>d.stopPropagation(),children:c.jsx(se,{type:"tertiary",iconName:"chevronDown",onClick:r,dataTestId:"expanded-button"})})})})}):null},_N=v.memo(EN),kN=({isBordered:e,isCustomCell:t})=>r=>m.css({borderBottom:e?`${I.rem(1)} solid ${Yr(r)}`:"none","td:first-of-type":{paddingLeft:r.globals.spacing.get("6")},"td:last-child":{paddingRight:t?"inherit":r.globals.spacing.get("6")}},"",""),TN=({isFirstRow:e,hasFixedHeader:t})=>r=>m.css({flex:1,flexDirection:"row",display:"flex",borderTop:e&&!t?`${I.rem(1)} solid ${Yr(r)}`:"none",borderBottom:`${I.rem(1)} solid ${Yr(r)}`},"","");var $N={name:"1hsa9kz",styles:"width:100%;border-collapse:collapse;table-layout:fixed"};const _9=()=>()=>$N,AN=e=>t=>m.css({width:"100%",borderCollapse:"collapse",tableLayout:"fixed",position:e?"sticky":void 0,top:e?0:void 0,background:e?t.tokens.colors.get("backgroundColor.default"):void 0,zIndex:e?3:void 0},"",""),PN=(e,t,r)=>n=>m.css({paddingTop:n.globals.spacing.get("6"),paddingBottom:n.globals.spacing.get("6"),borderBottomWidth:P(e||r?0:1),borderBottomStyle:"solid",borderBottomColor:Yr(n),"th:first-of-type":{paddingLeft:t?void 0:n.globals.spacing.get("6")},"th:last-child":{paddingRight:e?void 0:n.globals.spacing.get("6")}},"",""),uc=g.memo(({isChecked:e=!1,toggleIsChecked:t=()=>{},dataTestIdPrefix:r,rowIndex:n})=>{var h,x;const{columnsWithWidth:o,hasOnSelectionChange:a,isPadded:i,columns:l,tChange:s,row:u,type:d,isRowSelected:f,isBordered:p,actionWidth:C}=g.useContext(cc),{expanded:y}=u,b=!!y,[S]=(u.cells??[]).slice(-1);return c.jsxs(K1,{isSelected:f,onClick:b?t:void 0,css:kN({isBordered:p,isCustomCell:b||pl(S.content)}),children:[a&&c.jsx(Pe,{component:"th",isSticky:!1,width:50,isPadded:i,dataTestIdPrefix:r,rowIndex:n,index:0,children:c.jsx("div",{onClick:E=>E.stopPropagation(),children:c.jsx(br,{dataTestPrefixId:"row-check",isSelected:f,onChange:s})})}),(h=u.cells)==null?void 0:h.map(({content:E,tooltipContent:A,hasTruncatedTooltip:T=!0,colSpan:w,type:k,align:$},B)=>c.jsx(xN,{cellCounter:B,columnWidth:o[B],columns:l,tooltipContent:T?pl(E)?A:A??E.toString():void 0,isPadded:i,colSpan:w,content:E,cellType:k,rowType:d,align:$,dataTestIdPrefix:r,rowIndex:n,index:B+1},`${u.id}-${B}`)),c.jsx(_N,{isExpandedExists:b,isChecked:e,toggleIsChecked:t,actionWidth:C,dataTestIdPrefix:r,rowIndex:n,index:((x=u.cells)==null?void 0:x.length)+1})]})});uc.displayName="RenderRowWithCells";const k9=({row:e,dataTestIdPrefix:t,rowIndex:r,isInitiallyExpanded:n})=>{const{isRowSelected:o,columnCount:a,hasFixedHeader:i}=g.useContext(cc),{expanded:l}=e,[s,u]=mN(n),d=l?l({row:e,isSelected:o,isExpanded:s}):null;return c.jsx(g.Fragment,{children:l?c.jsx(K1,{isNested:!0,isSelected:o,children:c.jsx(Pe,{colSpan:a,isPadded:!1,dataTestIdPrefix:t,rowIndex:r,children:c.jsx("div",{css:TN({isFirstRow:r===1,hasFixedHeader:i}),children:c.jsx("table",{css:_9()(),children:c.jsxs("tbody",{children:[c.jsx(uc,{isChecked:s,toggleIsChecked:u,dataTestIdPrefix:t,rowIndex:r}),s&&c.jsx(K1,{isNested:!0,children:c.jsx(Pe,{colSpan:a,dataTestIdPrefix:t,rowIndex:r,index:"expanded",children:d})})]})})})})}):c.jsx(uc,{dataTestIdPrefix:t,rowIndex:r})})};k9.displayName="RenderRowOrNestedRow";const ON=g.memo(k9),MN=e=>{const{row:t,isRowSelected:r,onSelectionAdd:n,isPadded:o,columns:a,hasFixedHeader:i,type:l,columnsWithWidth:s,columnCount:u,hasOnSelectionChange:d,isExpanded:f,actionWidth:p,isInitiallyExpanded:C,dataTestIdPrefix:y,rowIndex:b}=e,S=v.useCallback(()=>{n(t.id)},[n,t.id]);return c.jsx(cc.Provider,{value:{row:t,columnsWithWidth:s,hasOnSelectionChange:d,isPadded:o,columns:a,hasFixedHeader:i,tChange:S,type:l,columnCount:u,isRowSelected:r,isBordered:!f,actionWidth:p},children:c.jsx(ON,{row:t,dataTestIdPrefix:y,rowIndex:b,isInitiallyExpanded:C})})},LN=v.memo(MN),IN=(e,t,r)=>!t&&!r?e.length:t&&r?e.length+2:e.length+1;function BN({data:e,columns:t,type:r="normal",hasFixedHeader:n=!1,hasFixedCTA:o=!1,onCheck:a,isPadded:i=!1,onSort:l,initialSort:s={column:"",order:"desc"},sortDir:u,topLeftText:d,topRightArea:f,actionWidth:p,isInitiallyExpanded:C=!1,dataTestIdPrefix:y}){const b=Qr(),S=p?`${p}%`:b.des1920?"5%":"7%",[h,x]=v.useState(void 0),[E,A]=v.useState(s),T=e.some(O=>!!O.expanded),w=IN(t,a,T);v.useEffect(()=>{a&&h&&a(h)},[a,h]),v.useEffect(()=>{x(void 0)},[e]);const k=v.useCallback(O=>{x((R=[])=>R.indexOf(O)===-1?[...R,O]:R.filter(L=>L!==O))},[]),$=v.useMemo(()=>{var O,R;return((R=(O=q.head(e))==null?void 0:O.cells)==null?void 0:R.map(({content:L})=>!Number.isNaN(Number(L))))||[]},[e]),B=v.useMemo(()=>{var O,R;return((R=(O=q.head(e))==null?void 0:O.cells)==null?void 0:R.map(({align:L})=>L))||[]},[e]),Z=v.useMemo(()=>{var O,R;return((R=(O=q.head(e))==null?void 0:O.cells)==null?void 0:R.map(({widthPercentage:L})=>L))||[]},[e]),D=O=>{A(R=>u?(l==null||l(O,u),{column:O,order:u}):R.column!==O?(l==null||l(O,"asc"),{column:O,order:"asc"}):(l==null||l(O,R.order==="asc"?"desc":"asc"),{column:O,order:R.order==="asc"?"desc":"asc"}))};return c.jsxs(v.Fragment,{children:[(a||f||d)&&c.jsx("table",{css:AN(o),children:c.jsx("thead",{children:c.jsxs(K1,{children:[a&&c.jsx(Pe,{component:"th",width:50,isPadded:i,dataTestIdPrefix:y,rowIndex:0,index:0,children:c.jsx(br,{isSelected:!!(h&&h.length>0),isIndeterminate:h&&h.length>0&&(h==null?void 0:h.length)!==e.length,onChange:()=>{(h==null?void 0:h.length)===e.length?x([]):x(e.map(({id:O})=>O))}})}),c.jsx(Pe,{isPadded:i,dataTestIdPrefix:y,rowIndex:0,index:1,children:h&&(h==null?void 0:h.length)>0?c.jsxs("span",{children:[c.jsx("b",{children:h.length})," ",W9("item",h.length)," selected"]}):d}),f&&c.jsx(Pe,{textAlign:"right",isPadded:i,colSpan:w-(a?2:1),dataTestIdPrefix:y,rowIndex:0,index:2,children:f(e,h)})]})})}),c.jsxs("table",{css:_9(),children:[(a||f||r==="normal")&&c.jsx("thead",{children:r==="normal"&&c.jsxs(K1,{css:PN(T,!!a,n),children:[a&&c.jsx(Pe,{component:"th",isPaddedSticky:o,isSticky:n,width:50,isPadded:i,dataTestIdPrefix:y}),t.map((O,R)=>c.jsx(Pe,{textAlign:B&&B[R]?B[R]:$&&$[R]?"right":"left",component:"th",isSticky:n,isPaddedSticky:o,isPadded:i,width:Z[R]?`${Z[R]}%`:"initial",isSortable:!Ke(O)&&O.isSortable,isActive:!Ke(O)&&O.content.sortingKey===E.column,onClick:()=>{!Ke(O)&&O.isSortable&&D(O.content.sortingKey)},dataTestIdPrefix:`${y}_${Ke(O)?O.trim().toLowerCase().replace(/ /g,"_"):O.content.sortingKey.trim().toLowerCase().replace(/ /g,"_")}`,children:Ke(O)?c.jsx(w9,{item:O}):c.jsx(w9,{sorting:E,isNumerical:$&&$[R],item:O})},`${Ke(O)?O:O.content.sortingKey}`)),T&&c.jsx(Pe,{component:"th",isSticky:n,isPaddedSticky:o,width:S,dataTestIdPrefix:y})]})}),c.jsx("tbody",{children:e.map((O,R)=>c.jsx(LN,{row:O,isRowSelected:h?h.indexOf(O.id)!==-1:!1,onSelectionAdd:k,isPadded:i,columns:t,hasFixedHeader:n,type:r,columnCount:w,columnsWithWidth:Z,hasOnSelectionChange:!!a,isExpanded:!!O.expanded,actionWidth:p,isInitiallyExpanded:C,dataTestIdPrefix:y,rowIndex:R+1},O.id))})]})]})}const qN=v.memo(BN,le),DN=e=>t=>m.css("cursor:pointer;",Ut,";gap:",t.globals.spacing.get("4"),";padding:",t.globals.spacing.get("4"),";",e,";",""),dc=v.forwardRef((e,t)=>{const{children:r,sx:n,...o}=e;return c.jsx(ee.Tab,{css:DN(n),...o,ref:t,children:r})});dc.displayName="Tab";const RN=e=>t=>m.css("display:flex;[role='tab']{position:relative;width:fit-content;",t.tokens.typography.get("normal.body01"),";color:",t.tokens.colors.get("textColor.default.primary"),";}[role='tab'][data-selected]{color:",t.tokens.colors.get("textColor.default.active"),";",t.tokens.typography.get("normal.label01"),";}[role='tab'][data-focus-visible]:after{content:'';position:absolute;border-radius:",t.dimension.borderRadius.get("sm"),";border:",t.dimension.borderWidth.get("focused")," solid ",t.tokens.colors.get("borderColor.interactive.focused"),";}&[data-orientation='horizontal']{gap:",t.globals.spacing.get("5"),";[role='tab'][data-focus-visible]:after{inset:-3px -8px;}[role='tab']{border-bottom:",t.globals.borderWidth.get("2")," solid ",t.tokens.colors.get("borderColor.decorative.transparent"),";transition:color ease-in-out 0.2s;transition:border-bottom 0.2s;}[role='tab']:hover{border-color:",t.tokens.colors.get("borderColor.interactive.default"),";}[role='tab'][data-selected]{color:",t.tokens.colors.get("textColor.default.active"),";",t.tokens.typography.get("normal.label01"),";border-color:",t.tokens.colors.get("borderColor.interactive.active"),";}}&[data-orientation='vertical']{flex-direction:column;gap:",t.globals.spacing.get("4"),";[role='tab'][data-focus-visible]:after{inset:-4px -2px;}[role='tab']{padding:",t.globals.spacing.get("5")," ",t.globals.spacing.get("4"),";box-shadow:inset ",t.globals.borderWidth.get("2")," 0 0 0 ",t.tokens.colors.get("borderColor.decorative.transparent"),";transition:color ease-in-out 0.2s;transition:box-shadow 0.2s;}[role='tab']:hover{box-shadow:inset ",t.globals.borderWidth.get("2")," 0 0 0 ",t.tokens.colors.get("borderColor.interactive.default"),";}[role='tab'][data-selected]{box-shadow:inset ",t.globals.borderWidth.get("2")," 0 0 0 ",t.tokens.colors.get("borderColor.interactive.active"),";}}",e,";",""),fc=v.forwardRef((e,t)=>{const{children:r,sx:n,...o}=e;return c.jsx(ee.TabList,{css:RN(n),ref:t,...o,children:r})});fc.displayName="TabList";const NN=(e,t)=>m.css("display:flex;flex-direction:",e==="horizontal"?"column":"row",";",e==="horizontal"&&"width: fit-content;"," ",e==="vertical"&&"height: fit-content;"," ",t,";",""),ll=v.forwardRef((e,t)=>{const{selectedKey:r,onSelectionChange:n,orientation:o="horizontal",sx:a,children:i}=e;return c.jsx(ee.Tabs,{css:NN(o,a),orientation:o,selectedKey:r,onSelectionChange:n,ref:t,children:i})});ll.displayName="TabsContainer";const T9=v.forwardRef((e,t)=>{const{children:r,sx:n,...o}=e;return c.jsx(ee.TabPanel,{...o,ref:t,css:n,children:r})});T9.displayName="TabPanel";const FN=(e=!1)=>t=>m.css("border:none;background:",t.tokens.colors.get(`palette.${e?"primary":"primaryAlt"}.contrast`),";color:",t.tokens.colors.get(`textColor.${e?"inverted":"default"}.primary`),";transition:background 0.2s;transition:color 0.2s;",""),$9=v.forwardRef((e,t)=>{const{orientation:r="horizontal",selectedKey:n,onSelectionChange:o,items:a,dataTestPrefixId:i="ictinus",children:l,sx:s}=e;return c.jsxs(ll,{orientation:r,selectedKey:n,onSelectionChange:o,ref:t,sx:s==null?void 0:s.tabsContainer,children:[c.jsx(fc,{"aria-label":e["aria-label"],sx:s==null?void 0:s.tabList,children:a.map(u=>{const{id:d,label:f,counter:p=null}=u,C=typeof p=="number",y=d===n;return c.jsxs(dc,{id:d,"data-testid":`${i}_tab_${d}`,sx:s==null?void 0:s.tab,children:[c.jsx("span",{children:f}),C&&c.jsx(N1,{css:FN(y),dataTestPrefixId:`${i}_tab_${d}_counter`,children:p})]},d)})}),l]})});$9.displayName="Tabs";const HN=e=>m.css("cursor:pointer;display:flex;flex-direction:column;justify-content:center;",e,";",""),zN=()=>e=>m.css(me,";flex-direction:column;gap:",e.globals.spacing.get("3"),";padding:",e.globals.spacing.get("4"),";",""),VN=()=>e=>m.css(Ut,";justify-content:space-between;gap:",e.globals.spacing.get("7"),";",""),WN=()=>e=>m.css(e.tokens.typography.get("normal.body03")," color:",e.tokens.colors.get("textColor.default.secondary"),";",""),jN={done:{name:"success",color:"indicators.brand"},warning:{name:"warning",color:"indicators.error"}},pc=v.forwardRef((e,t)=>{const{children:r,id:n,title:o,subtitle:a,status:i="pending",dataTestPrefixId:l,sx:s,...u}=e,d=i!=="pending",f=N(),p=i!=="pending"?jN[i]:null;return c.jsx(ee.Tab,{id:n,...u,ref:t,css:HN(s),"data-status":i,children:r??c.jsxs("div",{css:zN(),children:[o&&c.jsxs("div",{css:VN(),"data-role":"title","data-testid":`${l}_title`,children:[o,d&&c.jsx(H,{name:p.name,color:f.tokens.colors.get(p.color),dataTestPrefixId:`${l}_icon`})]}),a&&c.jsx("div",{css:WN(),"data-role":"subtitle","data-testid":`${l}_subtitle`,children:a})]})})});pc.displayName="TabStep";const UN=e=>t=>m.css("display:flex;[role='tab']{position:relative;width:fit-content;",t.tokens.typography.get("normal.body01"),";}[role='tab'][data-selected]{",t.tokens.typography.get("normal.title01"),";}[role='tab']:not([data-selected]):hover{background:",t.tokens.colors.get("backgroundColor.alt"),";transition:background ease-in-out 0.2s;}[role='tab'][data-focus-visible]:after{content:'';position:absolute;border-radius:",t.dimension.borderRadius.get("sm"),";border:",t.dimension.borderWidth.get("focused")," solid ",t.tokens.colors.get("borderColor.interactive.focused"),";}[role='tab'][data-status='warning']{[data-role='title']{color:",t.tokens.colors.get("textColor.default.error"),";}}[role='tab'][data-selected]:not([data-status='warning']){[data-role='title']{color:",t.tokens.colors.get("textColor.default.active"),";}}&[data-orientation='horizontal']{gap:",t.globals.spacing.get("7"),";border-bottom:",t.globals.borderWidth.get("2")," solid ",t.tokens.colors.get("borderColor.decorative.default"),";[role='tab']{padding:",t.globals.spacing.get("3"),";}[role='tab']:after{inset:-3px -8px;}[role='tab'][data-selected]{border-bottom:",t.globals.borderWidth.get("2")," solid ",t.tokens.colors.get("borderColor.interactive.active"),";margin-bottom:-",t.globals.borderWidth.get("2"),";&[data-status='warning']{border-color:",t.tokens.colors.get("borderColor.interactive.error"),";}}}&[data-orientation='vertical']{flex-direction:column;gap:",t.globals.spacing.get("6"),";border-left:",t.globals.borderWidth.get("2")," solid ",t.tokens.colors.get("borderColor.decorative.default"),";[role='tab'][data-focus-visible]:after{inset:-4px -2px;}[role='tab']{padding:",t.globals.spacing.get("4")," ",t.globals.spacing.get("5"),";}[role='tab'][data-selected]{border-left:",t.globals.borderWidth.get("2")," solid ",t.tokens.colors.get("borderColor.interactive.active"),";margin-left:-",t.globals.borderWidth.get("2"),";&[data-status='warning']{border-color:",t.tokens.colors.get("indicators.error"),";}}}",e,";",""),gc=v.forwardRef((e,t)=>{const{children:r,sx:n,...o}=e;return c.jsx(ee.TabList,{css:UN(n),ref:t,...o,children:r})});gc.displayName="TabStepList";const A9=v.forwardRef((e,t)=>{const{orientation:r="horizontal",selectedKey:n,onSelectionChange:o,items:a,dataTestPrefixId:i="ictinus",children:l,sx:s}=e;return c.jsxs(ll,{orientation:r,selectedKey:n,onSelectionChange:o,ref:t,sx:s==null?void 0:s.tabsContainer,children:[c.jsx(gc,{"aria-label":e["aria-label"],sx:s==null?void 0:s.tabStepList,children:a.map(u=>c.jsx(pc,{...u,dataTestPrefixId:`${i}_tabstep_${u.id}`,sx:s==null?void 0:s.tabStep},u.id))}),l]})});A9.displayName="TabStepper";const ZN=({isResizeEnabled:e=!1})=>t=>{const r=Ht(t);return{wrapper:{width:"auto",height:"auto",minWidth:P(r("minWidth.large.normal"))},textField:{padding:`${r("addOn.padding.textArea")}`},input:{maxWidth:"100%",resize:e?"both":"none","& + label":{alignItems:"flex-start"},"&:focus-within, &:not(:placeholder-shown)":{"& + label":{transform:`translate(${Cr}, -4px) scale(0.8)`,fontWeight:t.globals.typography.fontWeight.get("bold")}}}}},GN=({isDisabled:e})=>t=>m.css({display:"flex",alignItems:"center",justifyContent:"flex-end",padding:`${t.dimension.spacing.get("sm")} 0 0`,color:t.tokens.colors.get("textColor.default.secondary"),span:{alignItems:"stretch",padding:0},opacity:e?t.tokens.disabledState.get("default"):1},t1(t),"","");var KN={name:"1d3w5wq",styles:"width:100%"};const P9=g.forwardRef((e,t)=>{var x;const{id:r=void 0,label:n,placeholder:o,isRequired:a=!1,isReadOnly:i,isDisabled:l,status:s,isResizeEnabled:u=!0,maxCharacters:d,...f}=e,p=(s==null?void 0:s.type)==="read-only",C=N(),y=ZN({isResizeEnabled:!l&&!p&&u})(C),b=d&&(s==null?void 0:s.type)!="error",S=b?c.jsxs("div",{css:GN({isDisabled:l}),children:[(x=f.value)==null?void 0:x.length,"/",d]}):void 0,h=s?{...s,hintMessage:b?void 0:s.hintMessage}:void 0;return c.jsxs(g.Fragment,{children:[c.jsx(z1,{...e,status:h,sx:y,children:c.jsxs("div",{css:KN,children:[c.jsx("textarea",{role:"textbox","aria-multiline":!0,readOnly:p||i,css:Gr({placeholder:o,label:n,sx:y,isLocked:p,isDisabled:l}),placeholder:o?`${o} ${a?"*":""}`:n,required:a,id:r,maxLength:d,disabled:l||p,...f,ref:t}),c.jsx(F1,{htmlFor:r,label:n,isRequired:a,isAnimated:!!f.value,hasError:!l&&(s==null?void 0:s.type)==="error"})]})}),S]})});P9.displayName="TextArea";const YN=g.memo(P9,le),XN={isDark:!1,toggle:()=>{}},O9=g.createContext(XN),QN=()=>g.useContext(O9),JN=({children:e})=>{const[t,r]=g.useState({isDark:!1});return c.jsx(O9.Provider,{value:{isDark:t.isDark,toggle:()=>{r(n=>({isDark:!n.isDark}))}},children:e})},eF=[{condition:({colorAfterSplit:e})=>e.length!==2,error:({color:e})=>new Zt(`Error trying to translate your component color: ${e}`)},{condition:({colorAfterSplit:e})=>!Ic.includes(e[0]),error:({color:e})=>new Zt(`You passed a wrong color for the first argument: ${e} - try something like red-500`)},{condition:({colorAfterSplit:e})=>!Bc.includes(Number(e[1])),error:({color:e})=>new Zt(`You passed a wrong shade for the second argument: ${e} - try something like red-500`)}],tF=e=>{const t=e.split("-");Q1(eF,{color:e,colorAfterSplit:t});const r=t[0],n=Number(t[1]);return{color:r,shade:n}},rF={typesShadesColor:{},calculateColorBetweenColorAndType:(e,t)=>{}},nF=g.createContext(rF),oF=(e,t)=>gl.reduce((r,n)=>{const o=e[n][qc],a=q.keys(t);return r[n]=a.reduce((i,l)=>{const u=q.keys(t[l]).find(d=>t[l][d].toLowerCase()===o.toLowerCase());return u?{shade:Number(u),color:l}:i},{}),r},{}),aF=({children:e})=>{const t=N(),r=q.pick(t.globals.oldColors,gl),n=g.useMemo(()=>oF(r,t.globals.oldColors.flat),[r,t]),o=g.useCallback((a,i)=>{const l=a?tF(a):void 0;return l||n[i]},[r,t,n]);return c.jsx(nF.Provider,{value:{typesShadesColor:n,calculateColorBetweenColorAndType:o},children:e})},iF={get:Fe({none:{value:"{borderRadius.0}",type:"borderRadius"},sm:{value:"{borderRadius.1}",type:"borderRadius"},md:{value:"{borderRadius.2}",type:"borderRadius"},lg:{value:"{borderRadius.3}",type:"borderRadius"},xl:{value:"{borderRadius.4}",type:"borderRadius"},circle:{value:"{borderRadius.7}",type:"borderRadius",description:"Circular border radius (100%)"}})},lF={get:Fe({default:{value:"{borderWidth.1}",type:"borderWidth",description:"Sets 'default' border width for components"},active:{value:"{borderWidth.2}",type:"borderWidth",description:"Sets 'active' border width for components "},focused:{value:"{borderWidth.3}",type:"borderWidth",description:"Sets focused container borderWidth for component"},innerFocused:{value:"{borderWidth.2}",type:"borderWidth",description:"Alternative borderWidth for nested focused elements"}})},sF={get:Fe({tableRow:{sm:{value:"{sizing.11}",type:"sizing",description:"Sets min.height for small table row (44px)"},md:{value:"{sizing.13}",type:"sizing",description:"Sets min. height for medium table row (52px)"},lg:{value:"{sizing.15}",type:"sizing",description:"Sets min. height for large table row (60px)"}}})},cF={get:we({disabled:{value:"50%",type:"opacity",description:"'Disabled' state"},enabled:{value:"100%",type:"opacity",description:"'enabled' state"},hidden:{value:"0%",type:"opacity",description:"'hidden' state"}},he.String)},uF={get:Fe({icon:{xs:{value:"{sizing.3}",type:"sizing",description:"Sets extra small size for icon"},sm:{value:"{sizing.4}",type:"sizing",description:"Sets small size for icon"},md:{value:"{sizing.5}",type:"sizing",description:"Sets medium size for icon"},lg:{value:"{sizing.6}",type:"sizing",description:"Sets large size for icon"},xl:{value:"{sizing.9}",type:"sizing",description:"Sets extra large size for icon"}}})},dF={get:Fe({none:{value:"{spacing.0}",type:"spacing"},"2xs":{value:"{spacing.2}",type:"spacing"},xs:{value:"{spacing.3}",type:"spacing"},sm:{value:"{spacing.4}",type:"spacing"},md:{value:"{spacing.5}",type:"spacing"},lg:{value:"{spacing.6}",type:"spacing"},xl:{value:"{spacing.7}",type:"spacing"},"2xl":{value:"{spacing.8}",type:"spacing"},"3xl":{value:"{spacing.9}",type:"spacing"},"4xl":{value:"{spacing.12}",type:"spacing"}})},fF={get:Fe({hover:{xs:{value:"{sizing.7}",type:"sizing",description:"Sets extra small hover size"},sm:{value:"{sizing.8}",type:"sizing",description:"Sets small hover size"},md:{value:"{sizing.9}",type:"sizing",description:"Sets medium hover size"},lg:{value:"{sizing.10}",type:"sizing",description:"Sets large hover size"}}})},pF={borderRadius:iF,borderWidth:lF,minHeight:sF,opacity:cF,sizing:uF,spacing:dF,state:fF},gF={get:we({0:{value:{x:"0",y:"0",blur:"0",spread:"0",color:"rgba(200,206,255,0.45)",type:"dropShadow"},type:"boxShadow",description:"No shadow variant"},1:{value:{x:"0",y:"2",blur:"4",spread:"0",color:"rgba(200,206,255,0.45)",type:"dropShadow"},type:"boxShadow"},2:{value:{x:"0",y:"4",blur:"8",spread:"0",color:"rgba(200,206,255,0.45)",type:"dropShadow"},type:"boxShadow"},3:{value:{x:"0",y:"8",blur:"16",spread:"0",color:"rgba(200,206,255,0.45)",type:"dropShadow"},type:"boxShadow"},4:{value:{x:"0",y:"16",blur:"24",spread:"0",color:"rgba(200,206,255,0.45)",type:"dropShadow"},type:"boxShadow"},5:{value:{x:"0",y:"-2",blur:"4",spread:"0",color:"rgba(200,206,255,0.45)",type:"dropShadow"},type:"boxShadow",description:"Used for sticky/fixed components"}},he.BoxShadow)},CF={get:Fe({backgroundColor:{default:{value:"{colors.neutral.1}",type:"color",description:"default backgroundColor variant"},transparent:{value:"{colors.transparent.1}",type:"color",description:"transparent backgroundColor variant"},alt:{value:"{colors.neutral.2}",type:"color",description:"alt backgroundColor variant"},inverted:{value:"{colors.neutral.6}",type:"color",description:"invertedBackgroundColor default variant"},invertedAlt:{value:"{colors.neutral.5}",type:"color",description:"invertedBackgroundColor, alt variant"}},backdrop:{default:{value:"{colors.transparent.5}",type:"color",description:"backdrop shade"}},palette:{error:{muted:{type:"color",value:"{colors.red.1}"},base:{type:"color",value:"{colors.red.2}"},contrast:{type:"color",value:"{colors.red.3}"}},warning:{muted:{type:"color",value:"{colors.orange.1}"},base:{type:"color",value:"{colors.orange.2}"},contrast:{type:"color",value:"{colors.orange.3}"}},primary:{muted:{type:"color",value:"{colors.blue.5}"},base:{type:"color",value:"{colors.blue.6}"},contrast:{type:"color",value:"{colors.blue.7}"}},secondary:{muted:{type:"color",value:"{colors.transparent.2}"},base:{type:"color",value:"{colors.transparent.3}"},contrast:{type:"color",value:"{colors.transparent.4}"}},success:{muted:{type:"color",value:"{colors.teal.1}"},base:{type:"color",value:"{colors.teal.2}"},contrast:{type:"color",value:"{colors.teal.3}"}},tertiary:{muted:{value:"{colors.transparent.2}",type:"color"},base:{value:"{colors.transparent.1}",type:"color"},contrast:{value:"{colors.transparent.3}",type:"color"}},upsell:{muted:{value:"{colors.purple.1}",type:"color"},base:{value:"{colors.purple.2}",type:"color"},contrast:{value:"{colors.purple.3}",type:"color"}},primaryAlt:{muted:{value:"{colors.blue.1}",type:"color"},base:{value:"{colors.blue.2}",type:"color"},contrast:{value:"{colors.blue.3}",type:"color"}}},textColor:{default:{primary:{value:"{colors.neutral.6}",type:"color",description:"Sets color for primary text"},secondary:{value:"{colors.neutral.4}",type:"color",description:"Sets color for secondary text"},error:{value:"{colors.red.7}",type:"color",description:"Sets color for error text"},active:{value:"{colors.blue.7}",type:"color",description:"Sets color for active text"},visited:{value:"{colors.purple.7}",type:"color",description:"Sets color for visited text (link)"},warning:{value:"{colors.orange.7}",type:"color",description:"Sets color for warning text"},success:{value:"{colors.teal.7}",type:"color",description:"Sets color for success text"}},inverted:{visited:{value:"{colors.purple.4}",type:"color",description:"Sets color for visited text (link)"},primary:{value:"{colors.neutral.1}",type:"color",description:"Sets color for inverted primary text"},secondary:{value:"{colors.neutral.3}",type:"color",description:"Sets color for inverted secondary text"},error:{value:"{colors.red.4}",type:"color",description:"Sets color for inverted error text"},active:{value:"{colors.blue.4}",type:"color",description:"Sets color for inverted active text"},warning:{value:"{colors.orange.4}",type:"color"},success:{value:"{colors.teal.4}",type:"color",description:"Sets color for inverted success text"}}},borderColor:{decorative:{transparent:{value:"{colors.transparent.1}",type:"color",description:"transparent borderColor variant"},default:{value:"{colors.transparent.5}",type:"color",description:"Default decorative borderColor"},inverted:{value:"{colors.transparent.10}",type:"color",description:"Inverted decorative borderColor"}},interactive:{default:{value:"{colors.blue.4}",type:"color",description:"Used in default component state"},active:{value:"{colors.blue.6}",type:"color",description:"Used in active component state"},error:{value:"{colors.red.5}",type:"color",description:"Sets borderColor for error"},upsell:{value:"{colors.purple.5}",type:"color",description:"Sets borderColor for upsell"},warning:{value:"{colors.orange.5}",type:"color",description:"Sets borderColor for warning"},success:{value:"{colors.teal.5}",type:"color",description:"Sets borderColor for success"},focused:{value:"{colors.purple.5}",type:"color",description:"Sets focused container borderColor for component"}}},indicators:{brand:{value:"{colors.blue.5}",type:"color"},success:{value:"{colors.teal.5}",type:"color"},pending:{value:"{colors.purple.4}",type:"color"},warning:{value:"{colors.orange.4}",type:"color"},error:{value:"{colors.red.5}",type:"color"},inactive:{value:"{colors.neutral.3}",type:"color"}}})},vF={get:Fe({default:{value:"{opacity.4}",type:"opacity"}})},yF={get:Fe({borderRadius:{hover:{value:"{borderRadius.7}",type:"borderRadius",description:"Sets border radius for circular hover shape"}},backgroundColor:{hover:{value:"{colors.transparent.2}",type:"color",description:"Sets transparent overlay for interactive icon on hover"}},loading:{gradient:{value:"{colors.gradient.1}",type:"color",description:"Alt loading state gradient"}}})},hF={get:Nc({normal:{headline01:{value:{fontFamily:"{fontFamily.roboto}",fontWeight:"{fontWeight.bold}",lineHeight:"{lineHeight.10}",fontSize:"{fontSize.10}",letterSpacing:"{letterSpacing.0}"},type:"typography",description:"Largest text on the screen, reserved for the page title. Can only appear once"},headline02:{value:{fontFamily:"{fontFamily.roboto}",fontWeight:"{fontWeight.bold}",lineHeight:"{lineHeight.9}",fontSize:"{fontSize.9}",letterSpacing:"{letterSpacing.0}"},type:"typography",description:"Headline variant 2, reserved for important copy that is not a title (e.g. section titles)"},headline03:{value:{fontFamily:"{fontFamily.roboto}",fontWeight:"{fontWeight.bold}",lineHeight:"{lineHeight.8}",fontSize:"{fontSize.8}",letterSpacing:"{letterSpacing.0}"},type:"typography",description:"Headline variant 3"},headline04:{value:{fontFamily:"{fontFamily.roboto}",fontWeight:"{fontWeight.bold}",lineHeight:"{lineHeight.7}",fontSize:"{fontSize.6}",letterSpacing:"{letterSpacing.0}"},type:"typography",description:"Headline variant 4"},headline05:{value:{fontFamily:"{fontFamily.roboto}",fontWeight:"{fontWeight.bold}",lineHeight:"{lineHeight.6}",fontSize:"{fontSize.5}",letterSpacing:"{letterSpacing.0}"},type:"typography",description:"Headline variant 5"},title01:{value:{fontFamily:"{fontFamily.roboto}",fontWeight:"{fontWeight.bold}",lineHeight:"{lineHeight.5}",fontSize:"{fontSize.4}",letterSpacing:"{letterSpacing.1}"},type:"typography",description:"Smaller than headline, reserved for short, medium emphasis text or text within components. Large variant"},title02:{value:{fontFamily:"{fontFamily.roboto}",fontWeight:"{fontWeight.bold}",lineHeight:"{lineHeight.4}",fontSize:"{fontSize.3}",letterSpacing:"{letterSpacing.2}"},type:"typography",description:"Smaller than headline, reserved for short, medium emphasis text or text within components. Medium variant"},title03:{value:{fontFamily:"{fontFamily.roboto}",fontWeight:"{fontWeight.bold}",lineHeight:"{lineHeight.2}",fontSize:"{fontSize.2}",letterSpacing:"{letterSpacing.1}"},type:"typography",description:"Smaller than headline, reserved for short, medium emphasis text or text within components. Small variant"},label01:{value:{fontFamily:"{fontFamily.roboto}",fontWeight:"{fontWeight.medium}",lineHeight:"{lineHeight.5}",fontSize:"{fontSize.4}",letterSpacing:"{letterSpacing.1}"},type:"typography",description:"Smaller than headline, resrved for short to medium, medium emphasis text (less than titles) or text within components. Large variant"},label02:{value:{fontFamily:"{fontFamily.roboto}",fontWeight:"{fontWeight.medium}",lineHeight:"{lineHeight.4}",fontSize:"{fontSize.3}",letterSpacing:"{letterSpacing.2}"},type:"typography",description:"Smaller than headline, resrved for short to medium, medium emphasis text (less than titles) or text within components. Medium variant"},label03:{value:{fontFamily:"{fontFamily.roboto}",fontWeight:"{fontWeight.medium}",lineHeight:"{lineHeight.2}",fontSize:"{fontSize.2}",letterSpacing:"{letterSpacing.2}"},type:"typography",description:"Smaller than headline, resrved for short to medium, medium emphasis text (less than titles) or text within components. Small variant"},label04:{value:{fontFamily:"{fontFamily.roboto}",fontWeight:"{fontWeight.medium}",lineHeight:"{lineHeight.1}",fontSize:"{fontSize.1}",letterSpacing:"{letterSpacing.1}"},type:"typography",description:"Resrved for short to medium, medium emphasis text (less than titles) or text within components. Extra small variant"},body01:{value:{fontFamily:"{fontFamily.roboto}",fontWeight:"{fontWeight.regular}",lineHeight:"{lineHeight.5}",fontSize:"{fontSize.4}",letterSpacing:"{letterSpacing.2}"},type:"typography",description:"Used for longer text string of regular emphasis or text within components. Large variant"},body02:{value:{fontFamily:"{fontFamily.roboto}",fontWeight:"{fontWeight.regular}",lineHeight:"{lineHeight.4}",fontSize:"{fontSize.3}",letterSpacing:"{letterSpacing.2}"},type:"typography",description:"Used for longer text string of regular emphasis or text within components. Medium variant"},body03:{value:{fontFamily:"{fontFamily.roboto}",fontWeight:"{fontWeight.regular}",lineHeight:"{lineHeight.2}",fontSize:"{fontSize.2}",letterSpacing:"{letterSpacing.2}"},type:"typography",description:"Used for longer text string of regular emphasis or text within components. Small variant"},body04:{value:{fontFamily:"{fontFamily.roboto}",fontWeight:"{fontWeight.regular}",lineHeight:"{lineHeight.1}",fontSize:"{fontSize.1}",letterSpacing:"{letterSpacing.1}"},type:"typography",description:"Used for text within components. Extra small variant"}},mono:{headline01:{value:{fontFamily:"{fontFamily.robotoMono}",fontWeight:"{fontWeight.bold}",lineHeight:"{lineHeight.10}",fontSize:"{fontSize.10}",letterSpacing:"{letterSpacing.0}"},type:"typography",description:"Largest text on the screen, reserved for the page title. Can only appear once"},body04:{value:{fontFamily:"{fontFamily.robotoMono}",fontWeight:"{fontWeight.regular}",lineHeight:"{lineHeight.1}",fontSize:"{fontSize.1}",letterSpacing:"{letterSpacing.1}"},type:"typography",description:"Used for text within components. Extra small variant"},headline02:{value:{fontFamily:"{fontFamily.robotoMono}",fontWeight:"{fontWeight.bold}",lineHeight:"{lineHeight.9}",fontSize:"{fontSize.9}",letterSpacing:"{letterSpacing.0}"},type:"typography",description:"Headline variant 2, reserved for important copy that is not a title (e.g. section titles)"},headline03:{value:{fontFamily:"{fontFamily.robotoMono}",fontWeight:"{fontWeight.bold}",lineHeight:"{lineHeight.8}",fontSize:"{fontSize.8}",letterSpacing:"{letterSpacing.0}"},type:"typography",description:"Headline variant 3"},headline04:{value:{fontFamily:"{fontFamily.robotoMono}",fontWeight:"{fontWeight.bold}",lineHeight:"{lineHeight.7}",fontSize:"{fontSize.6}",letterSpacing:"{letterSpacing.0}"},type:"typography",description:"Headline variant 4"},headline05:{value:{fontFamily:"{fontFamily.robotoMono}",fontWeight:"{fontWeight.bold}",lineHeight:"{lineHeight.6}",fontSize:"{fontSize.5}",letterSpacing:"{letterSpacing.0}"},type:"typography",description:"Headline variant 5"},title01:{value:{fontFamily:"{fontFamily.robotoMono}",fontWeight:"{fontWeight.bold}",lineHeight:"{lineHeight.5}",fontSize:"{fontSize.4}",letterSpacing:"{letterSpacing.1}"},type:"typography",description:"Smaller than headline, reserved for short, medium emphasis text or text within components. Large variant"},title02:{value:{fontFamily:"{fontFamily.robotoMono}",fontWeight:"{fontWeight.bold}",lineHeight:"{lineHeight.4}",fontSize:"{fontSize.3}",letterSpacing:"{letterSpacing.2}"},type:"typography",description:"Smaller than headline, reserved for short, medium emphasis text or text within components. Medium variant"},title03:{value:{fontFamily:"{fontFamily.robotoMono}",fontWeight:"{fontWeight.bold}",lineHeight:"{lineHeight.2}",fontSize:"{fontSize.2}",letterSpacing:"{letterSpacing.1}"},type:"typography",description:"Smaller than headline, reserved for short, medium emphasis text or text within components. Small variant"},label01:{value:{fontFamily:"{fontFamily.robotoMono}",fontWeight:"{fontWeight.medium}",lineHeight:"{lineHeight.5}",fontSize:"{fontSize.4}",letterSpacing:"{letterSpacing.1}"},type:"typography",description:"Smaller than headline, resrved for short to medium, medium emphasis text (less than titles) or text within components. Large variant"},label02:{value:{fontFamily:"{fontFamily.robotoMono}",fontWeight:"{fontWeight.medium}",lineHeight:"{lineHeight.4}",fontSize:"{fontSize.3}",letterSpacing:"{letterSpacing.2}"},type:"typography",description:"Smaller than headline, resrved for short to medium, medium emphasis text (less than titles) or text within components. Medium variant"},label03:{value:{fontFamily:"{fontFamily.robotoMono}",fontWeight:"{fontWeight.medium}",lineHeight:"{lineHeight.2}",fontSize:"{fontSize.2}",letterSpacing:"{letterSpacing.2}"},type:"typography",description:"Smaller than headline, resrved for short to medium, medium emphasis text (less than titles) or text within components. Small variant"},label04:{value:{fontFamily:"{fontFamily.robotoMono}",fontWeight:"{fontWeight.medium}",lineHeight:"{lineHeight.1}",fontSize:"{fontSize.1}",letterSpacing:"{letterSpacing.1}"},type:"typography",description:"Resrved for short to medium, medium emphasis text (less than titles) or text within components. Extra small variant"},body01:{value:{fontFamily:"{fontFamily.robotoMono}",fontWeight:"{fontWeight.regular}",lineHeight:"{lineHeight.5}",fontSize:"{fontSize.4}",letterSpacing:"{letterSpacing.2}"},type:"typography",description:"Used for longer text string of regular emphasis or text within components. Large variant"},body02:{value:{fontFamily:"{fontFamily.robotoMono}",fontWeight:"{fontWeight.regular}",lineHeight:"{lineHeight.4}",fontSize:"{fontSize.3}",letterSpacing:"{letterSpacing.2}"},type:"typography",description:"Used for longer text string of regular emphasis or text within components. Medium variant"},body03:{value:{fontFamily:"{fontFamily.robotoMono}",fontWeight:"{fontWeight.regular}",lineHeight:"{lineHeight.2}",fontSize:"{fontSize.2}",letterSpacing:"{letterSpacing.2}"},type:"typography",description:"Used for longer text string of regular emphasis or text within components. Small variant"}}})},M9={semantic:{disabledState:vF,colors:CF,state:yF,typography:hF,boxShadow:gF}},Cc=e=>({globals:Gt,colorScheme:e,overrides:Mc,dimension:pF,tokens:{...q.get(M9,e||"semantic",M9.semantic)},utils:{getColor:Cl(Gt.oldColors),getAAColorFromSwatches:Dc(Gt.oldColors),getAAColor:vl(Gt.oldColors)}}),bF=e=>m.css("::-webkit-scrollbar{width:5px;}::-webkit-scrollbar-track{background:transparent;}::-webkit-scrollbar-thumb{background:",e.tokens.colors.get("palette.primary.muted"),";border-radius:5px;}*{scrollbar-width:thin;scrollbar-color:",e.tokens.colors.get("palette.primary.muted")," transparent;}",""),mF=e=>m.css("@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400;500;700;900&family=Roboto:wght@300;400;500;700;900&display=swap');{}",F9,";",bF(e)," body,html{font-family:'Roboto',Tahoma,sans-serif;font-size:16px;font-weight:normal;}body{",o3(e),";}#root{}h1{",Qc(e),";}h2{",Jc(e),";}h3{",e3(e),";}h4{",t3(e),";}h5{",r3(e),";}*:focus{outline:0;}::view-transition-group(*){animation-duration:250ms;animation-timing-function:cubic-bezier(0.175, 0.885, 0.32, 1.1);}::view-transition-new(.toast):only-child{animation-name:fade-in-up;}::view-transition-old(.toast):only-child{animation-name:fade-out;}@keyframes fade-out{to{opacity:0;}}@keyframes fade-in-up{from{opacity:0;transform:translateY(24px);}}",""),wF=(e,t)=>q.merge(Cc(t),q.pick(e,q.keys(Cc(t)))),SF=({theme:e={},children:t})=>c.jsx(JN,{children:c.jsx(xF,{theme:e,children:t})}),xF=({theme:e={},children:t})=>{const n=QN().isDark?"dark":"semantic",o={colorScheme:n,overrides:e==null?void 0:e.overrides};return c.jsx(m.ThemeProvider,{theme:wF(o,n),children:c.jsxs(aF,{children:[c.jsx(m.Global,{styles:mF}),t]})})},L9={notification:`max-height: ${P(294)};`,generic:"max-height: none;"},EF=(e,t,r)=>{const n=gt(e)?r.tokens.colors.get(`borderColor.interactive.${pt(e)}`):r.utils.getColor(e,500,"normal");return t==="outlined"?`border: ${r.globals.borderWidth.get("2")} solid ${n}`:`box-shadow: ${r.tokens.boxShadow.get("2")}
@@ -8,6 +8,8 @@ declare const _default: {
8
8
  jobAlign: string;
9
9
  rowSize: string;
10
10
  maxHeight: number;
11
+ hasRowsCount: boolean;
12
+ rowsCount: any;
11
13
  };
12
14
  argTypes: {
13
15
  firstNameAlign: {
@@ -72,6 +74,10 @@ declare const _default: {
72
74
  name: string;
73
75
  type: string;
74
76
  };
77
+ rowsCount: {
78
+ name: string;
79
+ type: string;
80
+ };
75
81
  };
76
82
  };
77
83
  export default _default;
@@ -33,7 +33,7 @@ export type TableProps<TData extends NoUndefined<TData>> = {
33
33
  tbody?: CSSObject;
34
34
  th?: CSSObject;
35
35
  tr?: CSSObject;
36
- td?: CSSObject;
36
+ td?: ((originalRow: TData) => CSSObject) | CSSObject;
37
37
  };
38
38
  } & TestProps;
39
39
  export type UseTableProps<TData extends NoUndefined<TData>> = Pick<TableProps<TData>, 'columns' | 'data' | 'sorting' | 'rowsConfig' | 'columnsConfig'> & Partial<Omit<TableProps<TData>, 'columns' | 'data'>>;
@@ -71,6 +71,8 @@ export type TableColumn<TData> = {
71
71
  export type RowsConfig = {
72
72
  /** Whether a rows counter should be displayed, regardless of row selection functionality */
73
73
  hasRowsCount?: boolean;
74
+ /** The number of rows counter that will be displayed. If no number is provided it will default to the number of rows in the table */
75
+ rowsCount?: number;
74
76
  /** State which indicated which rows are selected */
75
77
  rowSelection?: RowSelectionState;
76
78
  /** Callback for row selection state change */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orfium/ictinus",
3
- "version": "5.28.0",
3
+ "version": "5.29.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.cjs",
6
6
  "module": "./dist/index.js",