@orfium/ictinus 5.27.0 → 5.28.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 +3 -3
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -22105,11 +22105,11 @@ const QV = (e = !1) => (t) => /* @__PURE__ */ y("border:none;background:", t.tok
|
|
|
22105
22105
|
const {
|
|
22106
22106
|
id: u,
|
|
22107
22107
|
label: p,
|
|
22108
|
-
counter: f
|
|
22109
|
-
} = c, C = u === n;
|
|
22108
|
+
counter: f = null
|
|
22109
|
+
} = c, C = typeof f == "number", m = u === n;
|
|
22110
22110
|
return /* @__PURE__ */ E(A9, { id: u, "data-testid": `${i}_tab_${u}`, sx: s == null ? void 0 : s.tab, children: [
|
|
22111
22111
|
/* @__PURE__ */ d("span", { children: p }),
|
|
22112
|
-
|
|
22112
|
+
C && /* @__PURE__ */ d(tl, { css: QV(m), dataTestPrefixId: `${i}_tab_${u}_counter`, children: f })
|
|
22113
22113
|
] }, u);
|
|
22114
22114
|
}) }),
|
|
22115
22115
|
l
|
package/dist/index.umd.cjs
CHANGED
|
@@ -166,7 +166,7 @@ Unable to find an `+(n===!1?"accessible ":"")+'element with the role "'+t+'"'+s+
|
|
|
166
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&&`
|
|
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
|
-
`,";",""),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}=u,C=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}),!!p&&c.jsx(N1,{css:FN(C),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")}
|
|
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")}
|
|
170
170
|
`},_F=(e,t)=>r=>m.css("display:flex;flex-direction:column;overflow:hidden;border-radius:",P(8),";",EF(e,t,r),";",""),kF=e=>t=>m.css(n3(t),";color:",gt(e)?t.tokens.colors.get(`textColor.default.${pt(e)}`):t.globals.oldColors.white,";display:flex;justify-content:space-between;overflow:hidden;height:",P(58),";background:",gt(e)?t.tokens.colors.get(`palette.${Od(e)}.muted`):t.utils.getColor(e,500,"normal"),";",""),TF=()=>e=>m.css(Je,";padding:0 ",e.globals.spacing.get("6"),";",""),$F=()=>e=>m.css("padding-right:",e.globals.spacing.get("4"),";",""),AF=()=>e=>m.css("display:flex;align-items:center;padding-right:",e.globals.spacing.get("6"),";",""),PF=e=>()=>m.css("cursor:pointer;transform:rotate(",e?"180":"0","deg);",fe(.2),";",""),OF=(e,t,r)=>n=>m.css(fe(.1),";min-height:",P(r&&t?146:0),";",gt(e)?L9.notification:L9.generic," height:",t?"inherit":P(0),";font-size:",n.globals.typography.fontSize.get("3"),";position:relative;background:",n.globals.oldColors.white,";",""),gt=e=>["success","error","warning","info"].includes(e),MF=({message:e,type:t="primary",styleType:r="elevated",closeCTA:n,isExpanded:o=!1,hasMinimumHeight:a=!0,children:i,dataTestId:l})=>{const[s,u]=v.useState(o),d=N();return c.jsxs("div",{css:_F(t,r),...gt(t)&&{"notification-type":"toast"},children:[c.jsxs("div",{css:kF(t),children:[c.jsxs("div",{css:TF(),children:[gt(t)&&c.jsx("div",{css:$F(),children:c.jsx(H,{name:rc(t),color:d.tokens.colors.get(`textColor.default.${pt(t)}`),size:24})}),c.jsx("div",{children:e})]}),c.jsxs("div",{css:AF(),children:[c.jsx("span",{css:PF(s),onClick:()=>u(!s),"data-testid":K("toast-expand",l),children:c.jsx(H,{name:"chevronDown",color:gt(t)?d.tokens.colors.get("textColor.default.secondary"):"#ffffff",size:24})}),c.jsx("span",{css:V1(),onClick:n,"data-testid":K("toast-close",l),children:c.jsx(H,{name:"close",color:gt(t)?d.tokens.colors.get("textColor.default.secondary"):"#ffffff",size:24})})]})]}),c.jsx("div",{css:OF(t,s,a),"data-testid":K("expanded-container",l),children:i})]})},I9={wrapper:e=>m.css(Je,";background-color:transparent;margin:",e.globals.spacing.get("6")," ",e.globals.spacing.get("8")," ",e.globals.spacing.get("6")," ",e.globals.spacing.get("6"),";border-radius:",e.globals.spacing.get("3"),";max-width:",P(400),";",""),placeholderWrapper:{name:"179mfwc",styles:"margin:auto;height:100%;display:flex;justify-content:center;align-items:center;cursor:default"}},LF=()=>c.jsxs("div",{css:I9.placeholderWrapper,children:[c.jsx("strong",{children:"LOGO"}),"PLACEHOLDER"]}),IF=({logoIcon:e})=>c.jsx("div",{css:I9.wrapper,children:e||c.jsx(LF,{})}),BF={iconWrapper:e=>m.css("cursor:pointer;margin:",e.globals.spacing.get("8")," 0px ",e.globals.spacing.get("8")," ",e.globals.spacing.get("3"),";","")},qF=({onMenuIconClick:e})=>{const t=N();return c.jsx("div",{css:BF.iconWrapper,onClick:e,"data-testid":"menu-handler",children:c.jsx(H,{color:t.globals.oldColors.primary[500],name:"menu",size:24})})},DF=({items:e,userAvatar:t,userName:r,onSelect:n})=>{const[o,a]=v.useState(!1),i=v.useRef(null),l=()=>{a(d=>!d)},[s,u]=v.useState(new Set([]));return c.jsxs(c.Fragment,{children:[c.jsx(xe,{avatar:t,iconRightName:"chevronDown",ref:i,"aria-label":"Menu",dataTestId:"userMenu",type:"tertiary",onClick:l,"aria-controls":o?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":o?"true":void 0,children:r}),c.jsx(_d,{triggerRef:i,isOpen:o,onClose:l,selectedKeys:s,rowSize:"normal",onSelectionChange:u,onAction:n,children:e.map(d=>c.jsx(Le,{parentType:"Menu",children:c.jsx(Ve,{children:d})},d))})]})},RF=(e,t)=>e?t.tokens.colors.get("backgroundColor.invertedAlt"):t.tokens.colors.get("backgroundColor.alt"),NF=e=>t=>{const r=RF(e,t);return m.css("flex-grow:1;max-width:",P(520),";",me," ",Ut," height:",P(36),";background-color:",r,";padding-left:",t.globals.spacing.get("6"),";border-radius:",t.globals.spacing.get("3"),";&[aria-disabled='true']{opacity:0.5;pointer-events:none;}&:hover{background:",e?I.lighten(.03,r):I.darken(.03,r),";}&:focus-within{background:",r,";}","")},FF=(e,t)=>r=>{const n=Gr({placeholder:e})(r),o=`
|
|
171
171
|
border-radius: ${P(4)};
|
|
172
172
|
color: ${t?r.tokens.colors.get("textColor.inverted.secondary"):void 0};
|