@orfium/ictinus 5.2.0 → 5.3.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.d.ts +2 -2
- package/dist/index.mjs +10 -10
- package/dist/index.umd.js +3 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2103,7 +2103,7 @@ type IconButtonProps = Omit<ButtonBaseProps$1, 'type' | 'isBlock' | 'isLoading'
|
|
|
2103
2103
|
/** This property defines the type of the IconButton */
|
|
2104
2104
|
type?: PrimitiveButtonTypes;
|
|
2105
2105
|
/** This property defines witch icon to use */
|
|
2106
|
-
|
|
2106
|
+
iconName: AcceptedIconNames;
|
|
2107
2107
|
/** This property defines the shape of the IconButton */
|
|
2108
2108
|
shape?: IconButtonShape;
|
|
2109
2109
|
};
|
|
@@ -2111,7 +2111,7 @@ declare const IconButton: React__default.ForwardRefExoticComponent<Omit<ButtonBa
|
|
|
2111
2111
|
/** This property defines the type of the IconButton */
|
|
2112
2112
|
type?: PrimitiveButtonTypes;
|
|
2113
2113
|
/** This property defines witch icon to use */
|
|
2114
|
-
|
|
2114
|
+
iconName: AcceptedIconNames;
|
|
2115
2115
|
/** This property defines the shape of the IconButton */
|
|
2116
2116
|
shape?: IconButtonShape;
|
|
2117
2117
|
} & React__default.RefAttributes<HTMLButtonElement>>;
|
package/dist/index.mjs
CHANGED
|
@@ -2088,7 +2088,7 @@ const oy = H3, N3 = B.forwardRef((e, t) => {
|
|
|
2088
2088
|
isBlock: n
|
|
2089
2089
|
}), children: [
|
|
2090
2090
|
i && !a && /* @__PURE__ */ p(oy, { dataTestId: m }),
|
|
2091
|
-
/* @__PURE__ */ p("button", { ...fr(w, ["avatar", "iconRightName", "iconLeftName",
|
|
2091
|
+
/* @__PURE__ */ p("button", { ...fr(w, ["avatar", "iconRightName", "iconLeftName", "iconName"]), ref: t, type: d, "data-testid": oe(m, u), css: JC({
|
|
2092
2092
|
type: r,
|
|
2093
2093
|
size: o,
|
|
2094
2094
|
isLoading: i,
|
|
@@ -20995,7 +20995,7 @@ const RV = ["Monday", "Tuesday", "Wednesday", "Thurdsday", "Friday", "Saturday",
|
|
|
20995
20995
|
] });
|
|
20996
20996
|
}, _V = g.memo(PV), L9 = B.forwardRef((e, t) => {
|
|
20997
20997
|
const {
|
|
20998
|
-
|
|
20998
|
+
iconName: r,
|
|
20999
20999
|
size: o = "normal",
|
|
21000
21000
|
type: n = "primary",
|
|
21001
21001
|
shape: a = "circle",
|
|
@@ -22950,7 +22950,7 @@ const AW = ({
|
|
|
22950
22950
|
/* @__PURE__ */ O("div", { css: lV(), children: [
|
|
22951
22951
|
(a === "left" || a === "both") && /* @__PURE__ */ p("div", { css: k5({
|
|
22952
22952
|
position: "left"
|
|
22953
|
-
}), children: /* @__PURE__ */ p(At, {
|
|
22953
|
+
}), children: /* @__PURE__ */ p(At, { iconName: "triangleLeft", type: "tertiary", onClick: () => n("back"), dataTestId: "month_back" }) }),
|
|
22954
22954
|
/* @__PURE__ */ O(no, { onClick: () => {
|
|
22955
22955
|
c(!1);
|
|
22956
22956
|
}, children: [
|
|
@@ -22973,7 +22973,7 @@ const AW = ({
|
|
|
22973
22973
|
] }),
|
|
22974
22974
|
(a === "right" || a === "both") && /* @__PURE__ */ p("div", { css: k5({
|
|
22975
22975
|
position: "right"
|
|
22976
|
-
}), children: /* @__PURE__ */ p(At, {
|
|
22976
|
+
}), children: /* @__PURE__ */ p(At, { iconName: "triangleRight", type: "tertiary", onClick: () => n("forward"), dataTestId: "month_forward" }) })
|
|
22977
22977
|
] })
|
|
22978
22978
|
] }),
|
|
22979
22979
|
/* @__PURE__ */ p(_V, { year: o.year(), month: o.month(), onDaySelect: t, selectedDays: r, disabledDates: i, isFirstCalendar: u })
|
|
@@ -23498,7 +23498,7 @@ const hU = a8, mU = ({
|
|
|
23498
23498
|
return ee(() => (e && (document.body.style.overflow = "hidden"), () => {
|
|
23499
23499
|
document.body.style.overflow = "unset";
|
|
23500
23500
|
}), [e]), e ? /* @__PURE__ */ p("div", { css: PU, "data-testid": oe("modal-container", r), children: /* @__PURE__ */ p(no, { onClick: t, children: /* @__PURE__ */ p("div", { css: _U, children: /* @__PURE__ */ O(iy, { elevated: "02", radius: "3", children: [
|
|
23501
|
-
/* @__PURE__ */ p("div", { css: AU, children: /* @__PURE__ */ p(At, { type: "tertiary",
|
|
23501
|
+
/* @__PURE__ */ p("div", { css: AU, children: /* @__PURE__ */ p(At, { type: "tertiary", iconName: "close", onClick: t, color: i.tokens.colors.get("textColor.default.secondary"), dataTestId: "modal-close" }) }),
|
|
23502
23502
|
/* @__PURE__ */ p("div", { css: kU({
|
|
23503
23503
|
isContentPadded: a
|
|
23504
23504
|
}), children: n ? /* @__PURE__ */ p(FU, { ...n }) : o })
|
|
@@ -23961,16 +23961,16 @@ const cJ = m8, Oj = ({
|
|
|
23961
23961
|
padding: i.globals.spacing.get("4")
|
|
23962
23962
|
}
|
|
23963
23963
|
}, "", ""), children: [
|
|
23964
|
-
o && /* @__PURE__ */ p(At, {
|
|
23965
|
-
/* @__PURE__ */ p(At, {
|
|
23964
|
+
o && /* @__PURE__ */ p(At, { iconName: "pageFirst", onClick: u, type: "tertiary", isDisabled: a || !c }),
|
|
23965
|
+
/* @__PURE__ */ p(At, { iconName: "chevronLeft", type: "tertiary", onClick: v, isDisabled: a || !c }),
|
|
23966
23966
|
/* @__PURE__ */ O("div", { children: [
|
|
23967
23967
|
"Page ",
|
|
23968
23968
|
l,
|
|
23969
23969
|
" of ",
|
|
23970
23970
|
t
|
|
23971
23971
|
] }),
|
|
23972
|
-
/* @__PURE__ */ p(At, {
|
|
23973
|
-
o && /* @__PURE__ */ p(At, {
|
|
23972
|
+
/* @__PURE__ */ p(At, { iconName: "chevronRight", type: "tertiary", onClick: d, isDisabled: n || !s }),
|
|
23973
|
+
o && /* @__PURE__ */ p(At, { iconName: "pageLast", type: "tertiary", onClick: f, isDisabled: n || !s })
|
|
23974
23974
|
] });
|
|
23975
23975
|
}, fJ = Nj, zj = () => (e) => {
|
|
23976
23976
|
const t = me(e);
|
|
@@ -24616,7 +24616,7 @@ const ze = T8, SK = ({
|
|
|
24616
24616
|
transformOrigin: "center",
|
|
24617
24617
|
width: "fit-content",
|
|
24618
24618
|
transform: `rotate(${t ? "180" : "0"}deg)`
|
|
24619
|
-
}, "", ""), onClick: (u) => u.stopPropagation(), children: /* @__PURE__ */ p(At, { type: "tertiary",
|
|
24619
|
+
}, "", ""), onClick: (u) => u.stopPropagation(), children: /* @__PURE__ */ p(At, { type: "tertiary", iconName: "chevronDown", onClick: r, dataTestId: "expanded-button" }) }) }) }) }) : null;
|
|
24620
24620
|
}, _K = B.memo(PK), kK = ({
|
|
24621
24621
|
isBordered: e,
|
|
24622
24622
|
isCustomCell: t
|
package/dist/index.umd.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
}
|
|
10
10
|
`,";","")},yp=({color:e,size:t=20})=>()=>{const r=typeof t=="number"||t.includes("px")?R(t):t;return E.css("width:",r,";height:",r,";path{fill:",e,"!important;}","")},Yt=(...e)=>{const t=g.useRef(null);return g.useEffect(()=>{e.forEach(r=>{r&&(typeof r=="function"?r(t.current):r&&typeof r=="object"&&(r.current=t.current))})},[e]),t},m2=g.forwardRef((e,t)=>{const r=z(),{name:o,color:n=r.tokens.colors.get("textColor.default.secondary"),size:a=20,onClick:i,dataTestId:l,...s}=e,c=Yt(t,h.useRef(null)),d=!!i,{hasHover:p=d}=e,f=Cp[o];return u.jsx("div",{onClick:i,css:bp({size:a,hasHover:p,isInteractive:d}),"data-testid":l,ref:c,tabIndex:d?0:void 0,onKeyDown:v=>{v.key==="Enter"&&i&&c.current.click()},...s,children:u.jsx(f,{css:yp({color:n,size:a})})})});m2.displayName="Icon";const U=m2,w2=h.forwardRef((e,t)=>{const{type:r="primary",placement:o="block",size:n=1,iconName:a,isDisabled:i,component:l,dataTestPrefixId:s="",children:c,...d}=e,p=z(),f=y2(p),v=l??"a",y=l?{to:e.href}:{};return u.jsxs(v,{css:hp({placement:o,type:r,size:n,isDisabled:i}),ref:t,"data-testid":`${s}_link`,...y,...d,children:[u.jsx("span",{children:c}),a&&u.jsx(U,{name:a,color:f(`textColor.${r}.default`),size:f(`iconSize.${n}`),dataTestId:`${s}_link_icon`})]})});w2.displayName="Link";const Tl=w2,mp="Go back to",wp=({href:e,label:t,dataTestPrefixId:r=""})=>u.jsx("div",{css:gp(),children:u.jsx(Tl,{size:2,href:e,dataTestPrefixId:`${r}_breadcrumb_go_back_to_${t}`,children:`${mp} ${t}`})}),Sp=()=>e=>{const t=rn(e);return E.css(Se,";gap:",t("padding"),";flex-wrap:nowrap;list-style:none;padding:0;margin:0;","")};var Ep={name:"s5xdrg",styles:"display:flex;align-items:center"};const xp=()=>Ep,$p=({isLastItem:e})=>t=>{const r=rn(t);return E.css("display:flex;align-items:center;gap:",r("padding"),";",e&&G(r("defaultText"))," ",e&&`
|
|
11
11
|
color: ${r("defaultColor")};
|
|
12
|
-
`,";","")},Tp=({childComponent:e,isLastItem:t=!1})=>{const r=z(),o=rn(r);return u.jsx("li",{css:xp(),children:u.jsxs("div",{css:$p({isLastItem:t}),children:[e,!t&&u.jsx(U,{name:"triangleRight",color:o("defaultColor"),size:o("iconSize")})]})})},S2=(e,t)=>t===e.length-1,E2=g.forwardRef(({items:e=[],backTo:t,dataTestPrefixId:r=""},o)=>{const n=g.useCallback((l,s)=>{const{label:c,href:d}=l;return S2(e,s)?u.jsx("span",{"data-testid":`${r}_breadcrumb_${c}`,children:c}):u.jsx(Tl,{size:2,dataTestPrefixId:`${r}_breadcrumb_link_${c}`,...Ut(l,"label"),children:c},d)},[r,e]),a=g.useMemo(()=>(l,s)=>{const c=ml("data_item_"),d=S2(e,s);return u.jsx(Tp,{childComponent:l,isLastItem:d},c)},[e]),i=g.useMemo(()=>{if(!pl(e))return e.map(n).map(a);if(t)return u.jsx(wp,{href:t.href,label:t.label,dataTestPrefixId:r})},[t,r,a,e,n]);return u.jsx("ol",{"aria-label":"Breadcrumb",ref:o,css:Sp(),"data-testid":`${r}_breadcrumb`,children:i})});E2.displayName="Breadcrumb";const kp=E2,Pp=()=>e=>({display:"flex",alignItems:"center",justifyContent:"center",gap:e.globals.spacing.get("4")}),_p={primary:{backgroundColor:{default:{value:"{sem.colors.palette.primary.base}",type:"color",description:"Sets backgroundColor for primary default button"},hover:{value:"{sem.colors.palette.primary.muted}",type:"color",description:"Sets backgroundColor for primary hovered button"},active:{value:"{sem.colors.palette.primary.contrast}",type:"color",description:"Sets backgroundColor for primary active (pressed) button"}},textColor:{type:"color",value:"{sem.colors.textColor.inverted.primary}",description:"Sets text and icon color for primary button"}},secondary:{backgroundColor:{default:{value:"{sem.colors.palette.secondary.base}",type:"color",description:"Sets backgroundColor for secondary default button"},hover:{value:"{sem.colors.palette.secondary.muted}",type:"color",description:"Sets backgroundColor for secondary hovered button"},active:{value:"{sem.colors.palette.secondary.contrast}",type:"color",description:"Sets backgroundColor for secondary active button"}},textColor:{type:"color",value:"{sem.colors.textColor.default.active}",description:"Sets text and icon color for secondary button"}},tertiary:{backgroundColor:{default:{type:"color",value:"{sem.colors.palette.tertiary.base}",description:"Sets backgroundColor for tertiary default button"},hover:{value:"{sem.colors.palette.tertiary.muted}",type:"color",description:"Sets backgroundColor for tertiary hovered button"},active:{value:"{sem.colors.palette.tertiary.contrast}",type:"color"}},textColor:{value:"{sem.colors.textColor.default.active}",type:"color",description:"Sets text and icon color tertiary button"}},danger:{backgroundColor:{default:{value:"{sem.colors.palette.error.base}",type:"color",description:"Sets backgroundColor for danger default button"},hover:{value:"{sem.colors.palette.error.muted}",type:"color",description:"Sets backgroundColor for danger hovered button"},active:{value:"{sem.colors.palette.error.contrast}",type:"color",description:"Sets backgroundColor for danger active button"}},textColor:{type:"color",value:"{sem.colors.textColor.default.error}",description:"Sets text and icon color for danger button"}},borderRadius:{square:{value:"{borderRadius.2}",type:"borderRadius",description:"Sets borderRadius for textbutton, iconButton ('square' variant) and dropdown button wrapper"},rounded:{value:"{borderRadius.5}",type:"borderRadius",description:"Sets border Radius for iconButton ('round' variant)"},dropdownNested:{value:"{borderRadius.0}",type:"borderRadius",description:"Sets border radius for nested 'textButton' and 'iconButton' components within a dropdownButton"}},compact:{iconSize:{value:"{sem.icon.size.2}",type:"sizing",description:"Sets size for iconButton ('compact' variant)"},size:{value:"{sizing.7}",type:"sizing",description:"Sets size for iconButton ('compact' variant)"},paddingHorizontal:{value:"{spacing.4}",type:"spacing",description:"Sets left and right padding for textButton ('compact' variant)"}},normal:{iconSize:{value:"{sem.icon.size.3}",type:"sizing",description:"Sets size for iconButton icon"},size:{value:"{sizing.9}",type:"sizing",description:"Sets size for iconButtons"},gap:{value:"{spacing.4}",type:"spacing",description:"Sets content padding for textButton"},paddingVertical:{value:"{spacing.4}",type:"spacing",description:"Sets top and bottom padding for textButton"},paddingHorizontal:{value:"{spacing.6}",type:"spacing",description:"Sets left and right padding for textButton"}},loadingBar:{value:"{colors.gradient.1}",type:"color",description:"Sets gradient for 'loading' bar in buttons"},text:{normal:{value:"{sem.typography.normal.label02}",type:"typography",description:"Sets text for text button"},compact:{value:"{sem.typography.normal.label03}",type:"typography",description:"Sets text for text button ('compact' variant)"}}},on=e=>se(_p,e),Ap=({isBlock:e})=>E.css({position:"relative",width:e?"100%":"fit-content"},"",""),Mp=({type:e="primary",size:t="normal",isBlock:r,isLoading:o,isDisabled:n,isIconButton:a,shape:i,sx:l})=>s=>{const c=on(s),d=()=>{if(r)return"100%";if(a)return c(`${t}.size`)},p=()=>a?c(`${t}.size`):t==="compact"?c("compact.size"):"auto",f=()=>{if(a)return 0;const m=t==="normal"?c("normal.paddingVertical"):0,w=c(`${t}.paddingHorizontal`);return`${m} ${w}`},v={display:"flex",alignItems:"center",justifyContent:"center",color:c(`${e}.textColor`),width:d(),height:p(),backgroundColor:c(`${e}.backgroundColor.${o?"active":"default"}`),padding:f(),borderRadius:c(a&&i==="circle"?"borderRadius.rounded":"borderRadius.square"),border:"none",cursor:"pointer",transition:"background-color,border 150ms linear",":focus-visible:not(:disabled)":{backgroundColor:c(`${e}.backgroundColor.hover`)},":disabled":{opacity:s.tokens.disabledState.get("default"),cursor:"not-allowed"},":hover:not(:disabled)":{backgroundColor:c(`${e}.backgroundColor.hover`)},':active:not(:disabled), &[aria-expanded="true"]':{backgroundColor:c(`${e}.backgroundColor.active`)}},y=o&&!n?{pointerEvents:"none"}:{};return E.css(G(c(`text.${t}`)),";",v,";",y,";",l==null?void 0:l.container,";","")};var Lp={name:"1duu0ib",styles:"width:100%;position:absolute"};const Op=()=>Lp,Ip=()=>e=>{const t=on(e);return E.css({width:"100%",height:R(4),overflow:"hidden",borderTopLeftRadius:t("borderRadius.square"),borderTopRightRadius:t("borderRadius.square"),position:"relative",":before":{content:'""',width:"100%",height:R(2),display:"block"}},"","")},Bp=()=>{const e=E.keyframes({from:{left:"-50%"},to:{left:"100%"}});return E.css({width:"50%",background:"linear-gradient(270deg, #F814E1 0.02%, #4945EE 100%)",height:R(2),position:"absolute",bottom:"0",top:"0",animation:`${e} 1.5s infinite`},"","")},x2=({dataTestId:e})=>u.jsx("div",{css:Op(),"data-testid":e,children:u.jsx("div",{css:Ip(),children:u.jsx("div",{css:Bp()})})});x2.displayName="ButtonLoader";const Rp=x2,$2=h.forwardRef((e,t)=>{const{type:r="primary",size:o="normal",isBlock:n=!1,isDisabled:a=!1,isLoading:i=!1,isIconButton:l=!1,shape:s="circle",children:c,dataTestId:d="",dataTestPrefixId:p="",htmlType:f="button",onClick:v,onBlur:y,sx:m,...w}=e,b=`${p}button`;return u.jsxs("div",{css:Ap({isBlock:n}),children:[i&&!a&&u.jsx(Rp,{dataTestId:b}),u.jsx("button",{...Ut(w,["avatar","iconRightName","iconLeftName",l?"name":null]),ref:t,type:f,"data-testid":X(b,d),css:Mp({type:r,size:o,isLoading:i,isBlock:n,isDisabled:a,isIconButton:l,shape:s,sx:m}),onClick:$=>{v&&v($)},onBlur:y,disabled:a,children:c})]})});$2.displayName="ButtonBase";const T2=$2,k2=h.forwardRef((e,t)=>{const{type:r="primary",size:o="normal",iconLeftName:n,iconRightName:a,avatar:i,children:l,onClick:s,isLoading:c}=e,d=["primary","secondary","tertiary"].includes(r)&&i,p=z(),f=on(p);return u.jsx(T2,{...e,ref:t,isLoading:c,onClick:s,children:u.jsx("span",{css:Pp(),children:o==="compact"?u.jsx("span",{children:l}):u.jsxs(u.Fragment,{children:[d&&u.jsx($l,{src:i==null?void 0:i.src,children:i==null?void 0:i.label}),n&&!d&&u.jsx(U,{name:n,color:f(`${r}.textColor`)}),u.jsx("span",{children:l}),a&&u.jsx(U,{name:a,color:f(`${r}.textColor`)})]})})})});k2.displayName="Button";const ze=k2,Dp=({elevated:e,isTransparent:t,radius:r})=>o=>E.css("box-shadow:",e?o.globals.elevation[e]:void 0,";background:",t?o.tokens.colors.get("backgroundColor.transparent"):o.tokens.colors.get("backgroundColor.default"),";border-radius:",r?o.globals.spacing.get(r):0,";outline:",t?void 0:`${o.globals.borderWidth.get("1")} solid ${o.tokens.colors.get("borderColor.decorative.default")}`,";",""),P2=({elevated:e,isTransparent:t=!1,radius:r,children:o})=>u.jsx("div",{css:Dp({elevated:e,isTransparent:t,radius:r}),children:o}),Fp=()=>e=>({fontSize:e.globals.typography.fontSize.get("3"),padding:e.globals.spacing.get("4"),color:e.globals.colors.get("neutral.1"),background:e.tokens.colors.get("backgroundColor.inverted"),opacity:"90%",borderRadius:e.globals.spacing.get("3"),minWidth:R(200),whiteSpace:"nowrap"}),qp=()=>e=>({margin:`${e.globals.spacing.get("6")} 0`,height:R(1),borderWidth:0,backgroundColor:e.tokens.colors.get("backgroundColor.default"),opacity:"10%"}),Hp=()=>()=>({padding:0,margin:0}),Np=()=>e=>({listStyleType:"none",color:e.globals.colors.get("neutral.1"),width:"100%",display:"flex",justifyContent:"space-between",height:e.globals.spacing.get("6"),padding:`0px 0px ${R(-5)}`}),zp=({label:e,payload:t})=>u.jsxs("div",{className:"custom-tooltip",css:Fp(),children:[u.jsxs("p",{className:"label",style:{margin:"0px"},children:[`${e}`," "]}),t&&t.length>1&&u.jsx("hr",{css:qp()}),t&&u.jsx("ul",{css:Hp(),children:t.map(({name:r,value:o})=>u.jsxs("li",{css:Np(),children:[u.jsx("div",{children:r})," ",u.jsx("div",{children:o})]},r))})]}),Vp=({dataLabel:e,color:t})=>u.jsxs("linearGradient",{id:`color${e}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[u.jsx("stop",{offset:"5%",stopColor:`${t}`,stopOpacity:.4}),u.jsx("stop",{offset:"95%",stopColor:`${t}`,stopOpacity:0})]}),Wp=h.memo(Vp),Up=e=>U8(V8(e.map(t=>Xo(Ut(t,"name"))))),jp=({theme:e,uniqueKeyNames:t,color:r})=>{const o=W8(e.globals.oldColors.flat,t.length);return t.reduce((n,a,i)=>{var s;const l=typeof r=="function"&&r(a)?r(a):(s=o[i])==null?void 0:s[400];return n[a]=l,n},{})};function kl(e){return({children:r,...o})=>u.jsx(re.ResponsiveContainer,{aspect:o==null?void 0:o.aspect,children:u.jsx(e,{...o,children:r})})}const Kp=kl(re.AreaChart),Zp=({data:e,labelX:t,labelY:r,isLegendVisible:o=!1,color:n})=>{const a=z(),i=h.useMemo(()=>Up(e),[e]),l=h.useMemo(()=>jp({theme:a,uniqueKeyNames:i,color:n}),[a,i,n]),s=Object.entries(l);return i.length<=Object.keys(a.globals.oldColors.flat).length?u.jsxs(Kp,{data:e,margin:{top:10,right:20,left:20,bottom:50},aspect:1.5,children:[u.jsx("defs",{children:s.map(([c,d])=>u.jsx(Wp,{dataLabel:c,color:d},`color${c}`))}),u.jsx(re.XAxis,{dataKey:"name",tickMargin:31,axisLine:!1,tickLine:!1,label:t&&{value:t,angle:0,position:"bottom",offset:35}}),u.jsx(re.YAxis,{tick:{textAnchor:"start"},tickMargin:40,axisLine:!1,tickLine:!1,label:r&&{value:r,angle:-90,position:"left",offset:15}}),u.jsx(re.CartesianGrid,{vertical:!1}),o&&u.jsx(re.Legend,{align:"left",iconType:"circle",iconSize:16,wrapperStyle:{paddingTop:R(50),paddingLeft:R(13)}}),u.jsx(re.Tooltip,{cursor:{stroke:a.tokens.colors.get("backgroundColor.inverted"),strokeWidth:1},content:u.jsx(zp,{})}),s.map(([c,d])=>u.jsx(re.Area,{type:"linear",dataKey:c,stroke:d,fillOpacity:1,fill:`url(#color${c})`,activeDot:{r:3,stroke:"none"},dot:{r:3,fill:d}},c))]}):u.jsxs("p",{children:["You must define less than ",Object.keys(a.globals.oldColors.flat).length," different data"]})},_2=16,Gp=2,Yp=({colors:e,value:t,x:r,y:o,width:n,height:a,index:i})=>{const l=z(),s=r&&n?Number(r)+Number(n)+_2:_2,c=o&&a?Number(o)+Number(a)/Gp:0,d=i&&e[i]?e[i]:l.globals.oldColors.black;return u.jsx("text",{x:s,y:c,children:u.jsx("tspan",{dy:"0.335em",fontWeight:"bold",fill:d,children:t})})},Xp=e=>()=>E.css("width:inherit;height:inherit;color:",e,";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;",""),Jp=()=>e=>E.css("display:block;position:fixed;top:-33%;left:106%;color:",e.globals.colors.get("neutral.1"),";background-color:",e.tokens.colors.get("backgroundColor.inverted"),";opacity:90%;border-radius:",e.globals.spacing.get("3"),";padding:",e.globals.spacing.get("4"),";",""),Qp=()=>e=>E.css("content:'';position:absolute;border-style:solid;margin-top:",R(-5),";border-width:",R(5),";border-color:transparent ",e.tokens.colors.get("backgroundColor.inverted")," transparent transparent;top:50%;left:100%;opacity:90%;",""),eg=({content:e,fill:t})=>{const r=h.useRef(null),[o,n]=h.useState(!1),[a,i]=h.useState(!1);h.useEffect(()=>{i(r.current?r.current.scrollWidth>r.current.clientWidth:!1)},[i]);const l=h.useCallback(()=>{n(!0)},[n]),s=h.useCallback(()=>{n(!1)},[n]);return u.jsxs("div",{ref:r,onMouseEnter:l,onMouseLeave:s,css:Xp(t),children:[e,o&&a&&u.jsxs("div",{children:[u.jsx("div",{css:Jp(),children:e}),u.jsx("div",{css:Qp()})]})]})},tg=()=>e=>({fontSize:e.globals.typography.fontSize.get("3"),padding:`${e.globals.spacing.get("4")} ${e.globals.spacing.get("6")}`,margin:e.globals.spacing.get("4"),color:e.globals.colors.get("neutral.1"),background:e.tokens.colors.get("backgroundColor.inverted"),opacity:"90%",borderRadius:e.globals.spacing.get("3"),minWidth:R(200),whiteSpace:"nowrap"}),rg=()=>()=>({padding:"0px",margin:"0px"}),og=()=>e=>({listStyleType:"none",color:e.globals.colors.get("neutral.1"),width:"100%",display:"flex",justifyContent:"space-between",height:e.globals.spacing.get("6"),padding:`${e.globals.spacing.get("4")} 0px`,"div:last-child":{marginLeft:e.globals.spacing.get("6"),span:{marginLeft:e.globals.spacing.get("3")}}}),ng=({payload:e})=>{var r,o,n;const t=e&&((n=(o=(r=e[0])==null?void 0:r.payload)==null?void 0:o.options)==null?void 0:n.hoverInfo);return t?u.jsx("div",{className:"custom-tooltip",css:tg(),children:u.jsx("ul",{css:rg(),children:t.map(({name:a,value:i,percentage:l})=>u.jsxs("li",{css:og(),children:[u.jsx("div",{children:a}),u.jsxs("div",{children:[u.jsx("span",{children:u.jsx("b",{children:i})}),l&&u.jsxs("span",{children:["(",l,")"]})]})]},`${a}${i}`))})}):null},ag=.05,ig=.2,lg=e=>{const t=e||0,r=t?Math.pow(10,t==null?void 0:t.toString().length):0,o=ag*r,n=o*(Math.floor(t/o)+1),a=n/o,i=a%2?n/o+1:a/2+1;return{maxDomainValue:n,tickCount:i}},sg=(e,t)=>e===0?`${e}`:t>1e9||e===1e9?`${e/1e9}B`:t>1e6||e===1e6?`${e/1e6}M`:t>=1e3||e===1e3?`${e/1e3}K`:`${e}`,cg=(e,t)=>e.map(r=>{var o,n,a,i;return(o=r==null?void 0:r.options)!=null&&o.color?((n=r==null?void 0:r.options)==null?void 0:n.coloringOption)==="all"?H.lighten(ig,(a=r==null?void 0:r.options)==null?void 0:a.color):(i=r==null?void 0:r.options)==null?void 0:i.color:t}),ug=(e,t)=>e.reduce((r,o,n)=>{var a,i,l;return((a=o.options)==null?void 0:a.coloringOption)!=="all"||(t&&t(o)?r[t(o)]=(i=o.options)==null?void 0:i.color:r[n]=(l=o.options)==null?void 0:l.color),r},{}),A2=9.5,M2=160,dg=({colors:e,y:t,width:r,payload:o})=>{const n=z(),a=typeof o.value=="string"&&e[o.value]?e[o.value]:n.globals.oldColors.black;return u.jsx("g",{children:u.jsx("foreignObject",{y:t-10,width:r,height:"20",style:{overflow:"visible"},children:u.jsx(eg,{content:o.value,fill:a})})})},fg=kl(re.BarChart),pg=({data:e})=>{const t=z(),r=h.useMemo(()=>cg(e,t.globals.oldColors.flat.darkBlue[100]),[e,t.globals.oldColors.flat.darkBlue]),o=h.useCallback(f=>j8(e.map(f)),[e]),n=h.useCallback(f=>ug(e,f),[e]),a=o(f=>f.name.length),i=o(f=>f.value),l=a&&a*A2<M2?a*A2:M2,{maxDomainValue:s,tickCount:c}=lg(i),d=n(()=>!1),p=n(f=>f.name);return u.jsxs(fg,{data:e,margin:{top:5,right:60,left:20,bottom:15},layout:"vertical",barCategoryGap:"20%",maxBarSize:32,children:[u.jsx(re.CartesianGrid,{horizontal:!1}),u.jsx(re.XAxis,{type:"number",axisLine:!1,tickLine:!1,tickMargin:24,tickCount:c,domain:[0,s],tickFormatter:f=>sg(f,s)}),u.jsx(re.Tooltip,{cursor:{fill:t.tokens.colors.get("backgroundColor.alt")},content:u.jsx(ng,{})}),u.jsxs(re.Bar,{dataKey:"value",children:[u.jsx(re.LabelList,{dataKey:"barLabel",position:"right",content:u.jsx(Yp,{colors:d})}),e.map((f,v)=>u.jsx(re.Cell,{fill:r[v]},`cell-${f.name}-${f.value}`))," "]}),u.jsx(re.YAxis,{type:"category",dataKey:"name",tick:f=>u.jsx(dg,{...f,colors:p}),width:l,axisLine:!1,tickLine:!1})]})};var gg={name:"ih7ruz",styles:"display:flex;width:100%;justify-content:center"};const vg=()=>()=>gg,hg=()=>e=>E.css("width:80%;font-size:",e.globals.typography.fontSize.get("2"),";color:",e.tokens.colors.get("textColor.default.secondary"),";text-align:center;",""),Cg=({viewBox:e,value:t,units:r})=>{const{cx:o,cy:n}=e,a=z();return u.jsxs("g",{children:[u.jsx("text",{x:o,y:n,className:"recharts-text recharts-label",textAnchor:"middle",dominantBaseline:"central",children:u.jsx("tspan",{x:"50%",dy:"-7",alignmentBaseline:"middle",fontSize:a.globals.typography.fontSize.get("4"),fill:a.globals.oldColors.black,children:t})}),u.jsx("foreignObject",{y:"52%",width:"100%",height:n&&n/2.5,children:u.jsx("div",{css:vg(),children:u.jsx("div",{css:hg(),children:r})})})]})},bg=kl(re.PieChart),yg=({data:e,value:t,units:r})=>{const o=h.useMemo(()=>e.map(n=>(n==null?void 0:n.color)||""),[e]);return u.jsx(bg,{children:u.jsxs(re.Pie,{data:e,innerRadius:"85%",outerRadius:"100%",paddingAngle:0,startAngle:90,endAngle:-270,dataKey:"value",blendStroke:!0,children:[e.map((n,a)=>u.jsx(re.Cell,{fill:o[a]},`cell--${n.name}-${n.value}`)),u.jsx(re.Label,{position:"center",content:u.jsx(Cg,{value:t,units:r})})]})})},Pl=h.createContext(null),L2=()=>h.useContext(Pl),O2=g.forwardRef((e,t)=>{const{dataTestPrefixId:r,sx:o,children:n}=e,a=tf.useRadioGroupState(e),{radioGroupProps:i}=Sr.useRadioGroup(e,a);return u.jsx("div",{"aria-label":"RadioGroup",ref:t,...i,css:o,"data-testid":`${r}_radio_group_container`,children:u.jsx(Pl.Provider,{value:a,children:n})})});O2.displayName="RadioGroup";const mg=O2,wg={checkbox:{padding:{value:"{spacing.5}",type:"spacing",description:"Spacing between checkbox container and checkbox label (if shown)"},backgroundColor:{default:{type:"color",value:"{sem.colors.backgroundColor.transparent}",description:"Sets background color for checkbox's default state"},pressed:{value:"{sem.colors.palette.primary.base}",type:"color",description:"Sets background color for an pressed checkbox"}},borderColor:{default:{type:"color",value:"{sem.colors.borderColor.interactive.default}",description:"Sets borderColor for an default checkbox state"},pressed:{type:"color",value:"{sem.colors.borderColor.decorative.transparent}",description:"Sets borderColor for an pressed checkbox"}},iconColor:{pressed:{value:"{sem.colors.textColor.inverted.primary}",type:"color",description:"Sets color for the 'check' icon that appears when a checkbox is pressed"}},borderRadius:{value:"{borderRadius.2}",type:"borderRadius",description:"Sets borderRadius for the checkbox container"},borderWidth:{value:"{borderWidth.2}",type:"borderWidth",description:"Sets border width for checkbox"},size:{value:"{sizing.5}",type:"sizing",description:"Sets the size of checkbox"}},radio:{padding:{value:"{spacing.5}",type:"spacing",description:"Spacing between radio button container and radio button label(if shown)"},backgroundColor:{default:{type:"color",value:"{sem.colors.backgroundColor.transparent}",description:"Sets backgroundColor for default radio button state"},active:{type:"color",value:"{sem.colors.palette.primary.base}",description:"Sets backgroundColor for a pressed radio button"}},borderColor:{default:{type:"color",value:"{sem.colors.borderColor.interactive.default}",description:"Sets borderColor for default radio button state"},active:{type:"color",value:"{sem.colors.palette.primary.base}",description:"Sets borderColor for an pressed radio button"}},borderRadius:{value:"{borderRadius.7}",type:"borderRadius",description:"Sets borderRadius for the radio button container"},borderWidth:{value:"{borderWidth.2}",type:"borderWidth",description:"Sets border width for radio button"},size:{ring:{value:"{sizing.5}",type:"sizing",description:"Sets the size of outer ring radio button"},circle:{value:"{sizing.3}",type:"sizing",description:"Sets the size of inner circle radio button"}}},switch:{borderRadius:{value:"{borderRadius.7}",type:"borderRadius",description:"Sets 100% border radius for switch elements (thumb, track, hover circle)"},backgroundColor:{track:{value:"{sem.colors.palette.primaryAlt.contrast}",type:"color",description:"Sets backgroundColor for switch track"},thumb:{default:{value:"{sem.colors.backgroundColor.default}",type:"color",description:"Sets backgroundColor for default switch thumb state"},active:{value:"{sem.colors.palette.primary.base}",type:"color",description:"Sets backgroundColor for active switch thumb state"}}},height:{track:{value:"{sizing.2}",type:"sizing",description:"Sets the height of the track"}},width:{track:{value:"{sizing.9}",type:"sizing",description:"Sets the width of the track"}},size:{thumb:{value:"{sizing.5}",type:"sizing",description:"Sets size for switch thumb"}},borderColor:{thumb:{default:{value:"{sem.colors.borderColor.interactive.default}",type:"color",description:"Sets borderColor for default switch thumb state"},active:{value:"{sem.colors.borderColor.interactive.active}",type:"color",description:"Sets borderColor for active switch thumb state"}}},padding:{value:"{spacing.5}",type:"spacing",description:"Sets spacing between switch and label"},borderWidth:{value:"{borderWidth.2}",type:"borderWidth",description:"Sets borderWidth for switch thumb"}},label:{gap:{value:"{spacing.2}",type:"spacing",description:"Sets gap for label/input in controls "},normal:{value:"{sem.typography.normal.body02}",type:"typography",description:"Sets text style for control 'normal' label "},large:{value:"{sem.typography.normal.headline04}",type:"typography",description:"Sets text style for 'large' control label"}},textColor:{label:{value:"{sem.colors.textColor.default.primary}",type:"color",description:"Sets textColor for control label"},helpText:{value:"{sem.colors.textColor.default.secondary}",type:"color",description:"Sets textColor for optional control help text"}},helpText:{value:"{sem.typography.normal.body03}",type:"typography",description:"Sets text style for control help text (if shown)"}},bt=e=>se(wg,e),Sg=({placement:e="right",sx:t,isFocusVisible:r})=>o=>{const n=bt(o);return E.css("label{display:flex;flex-direction:",e==="right"?"row":"row-reverse",";align-items:center;gap:",n("radio.padding"),";position:relative;cursor:pointer;",t,";&:before{content:'';display:inline-block;width:",n("radio.size.ring"),";height:",n("radio.size.ring"),";box-sizing:border-box;border:",n("radio.borderWidth")," solid ",n("radio.borderColor.default"),";border-radius:",n("radio.borderRadius"),";transition:all 200ms;background:",n("radio.backgroundColor.default"),";",r&&`
|
|
12
|
+
`,";","")},Tp=({childComponent:e,isLastItem:t=!1})=>{const r=z(),o=rn(r);return u.jsx("li",{css:xp(),children:u.jsxs("div",{css:$p({isLastItem:t}),children:[e,!t&&u.jsx(U,{name:"triangleRight",color:o("defaultColor"),size:o("iconSize")})]})})},S2=(e,t)=>t===e.length-1,E2=g.forwardRef(({items:e=[],backTo:t,dataTestPrefixId:r=""},o)=>{const n=g.useCallback((l,s)=>{const{label:c,href:d}=l;return S2(e,s)?u.jsx("span",{"data-testid":`${r}_breadcrumb_${c}`,children:c}):u.jsx(Tl,{size:2,dataTestPrefixId:`${r}_breadcrumb_link_${c}`,...Ut(l,"label"),children:c},d)},[r,e]),a=g.useMemo(()=>(l,s)=>{const c=ml("data_item_"),d=S2(e,s);return u.jsx(Tp,{childComponent:l,isLastItem:d},c)},[e]),i=g.useMemo(()=>{if(!pl(e))return e.map(n).map(a);if(t)return u.jsx(wp,{href:t.href,label:t.label,dataTestPrefixId:r})},[t,r,a,e,n]);return u.jsx("ol",{"aria-label":"Breadcrumb",ref:o,css:Sp(),"data-testid":`${r}_breadcrumb`,children:i})});E2.displayName="Breadcrumb";const kp=E2,Pp=()=>e=>({display:"flex",alignItems:"center",justifyContent:"center",gap:e.globals.spacing.get("4")}),_p={primary:{backgroundColor:{default:{value:"{sem.colors.palette.primary.base}",type:"color",description:"Sets backgroundColor for primary default button"},hover:{value:"{sem.colors.palette.primary.muted}",type:"color",description:"Sets backgroundColor for primary hovered button"},active:{value:"{sem.colors.palette.primary.contrast}",type:"color",description:"Sets backgroundColor for primary active (pressed) button"}},textColor:{type:"color",value:"{sem.colors.textColor.inverted.primary}",description:"Sets text and icon color for primary button"}},secondary:{backgroundColor:{default:{value:"{sem.colors.palette.secondary.base}",type:"color",description:"Sets backgroundColor for secondary default button"},hover:{value:"{sem.colors.palette.secondary.muted}",type:"color",description:"Sets backgroundColor for secondary hovered button"},active:{value:"{sem.colors.palette.secondary.contrast}",type:"color",description:"Sets backgroundColor for secondary active button"}},textColor:{type:"color",value:"{sem.colors.textColor.default.active}",description:"Sets text and icon color for secondary button"}},tertiary:{backgroundColor:{default:{type:"color",value:"{sem.colors.palette.tertiary.base}",description:"Sets backgroundColor for tertiary default button"},hover:{value:"{sem.colors.palette.tertiary.muted}",type:"color",description:"Sets backgroundColor for tertiary hovered button"},active:{value:"{sem.colors.palette.tertiary.contrast}",type:"color"}},textColor:{value:"{sem.colors.textColor.default.active}",type:"color",description:"Sets text and icon color tertiary button"}},danger:{backgroundColor:{default:{value:"{sem.colors.palette.error.base}",type:"color",description:"Sets backgroundColor for danger default button"},hover:{value:"{sem.colors.palette.error.muted}",type:"color",description:"Sets backgroundColor for danger hovered button"},active:{value:"{sem.colors.palette.error.contrast}",type:"color",description:"Sets backgroundColor for danger active button"}},textColor:{type:"color",value:"{sem.colors.textColor.default.error}",description:"Sets text and icon color for danger button"}},borderRadius:{square:{value:"{borderRadius.2}",type:"borderRadius",description:"Sets borderRadius for textbutton, iconButton ('square' variant) and dropdown button wrapper"},rounded:{value:"{borderRadius.5}",type:"borderRadius",description:"Sets border Radius for iconButton ('round' variant)"},dropdownNested:{value:"{borderRadius.0}",type:"borderRadius",description:"Sets border radius for nested 'textButton' and 'iconButton' components within a dropdownButton"}},compact:{iconSize:{value:"{sem.icon.size.2}",type:"sizing",description:"Sets size for iconButton ('compact' variant)"},size:{value:"{sizing.7}",type:"sizing",description:"Sets size for iconButton ('compact' variant)"},paddingHorizontal:{value:"{spacing.4}",type:"spacing",description:"Sets left and right padding for textButton ('compact' variant)"}},normal:{iconSize:{value:"{sem.icon.size.3}",type:"sizing",description:"Sets size for iconButton icon"},size:{value:"{sizing.9}",type:"sizing",description:"Sets size for iconButtons"},gap:{value:"{spacing.4}",type:"spacing",description:"Sets content padding for textButton"},paddingVertical:{value:"{spacing.4}",type:"spacing",description:"Sets top and bottom padding for textButton"},paddingHorizontal:{value:"{spacing.6}",type:"spacing",description:"Sets left and right padding for textButton"}},loadingBar:{value:"{colors.gradient.1}",type:"color",description:"Sets gradient for 'loading' bar in buttons"},text:{normal:{value:"{sem.typography.normal.label02}",type:"typography",description:"Sets text for text button"},compact:{value:"{sem.typography.normal.label03}",type:"typography",description:"Sets text for text button ('compact' variant)"}}},on=e=>se(_p,e),Ap=({isBlock:e})=>E.css({position:"relative",width:e?"100%":"fit-content"},"",""),Mp=({type:e="primary",size:t="normal",isBlock:r,isLoading:o,isDisabled:n,isIconButton:a,shape:i,sx:l})=>s=>{const c=on(s),d=()=>{if(r)return"100%";if(a)return c(`${t}.size`)},p=()=>a?c(`${t}.size`):t==="compact"?c("compact.size"):"auto",f=()=>{if(a)return 0;const m=t==="normal"?c("normal.paddingVertical"):0,w=c(`${t}.paddingHorizontal`);return`${m} ${w}`},v={display:"flex",alignItems:"center",justifyContent:"center",color:c(`${e}.textColor`),width:d(),height:p(),backgroundColor:c(`${e}.backgroundColor.${o?"active":"default"}`),padding:f(),borderRadius:c(a&&i==="circle"?"borderRadius.rounded":"borderRadius.square"),border:"none",cursor:"pointer",transition:"background-color,border 150ms linear",":focus-visible:not(:disabled)":{backgroundColor:c(`${e}.backgroundColor.hover`)},":disabled":{opacity:s.tokens.disabledState.get("default"),cursor:"not-allowed"},":hover:not(:disabled)":{backgroundColor:c(`${e}.backgroundColor.hover`)},':active:not(:disabled), &[aria-expanded="true"]':{backgroundColor:c(`${e}.backgroundColor.active`)}},y=o&&!n?{pointerEvents:"none"}:{};return E.css(G(c(`text.${t}`)),";",v,";",y,";",l==null?void 0:l.container,";","")};var Lp={name:"1duu0ib",styles:"width:100%;position:absolute"};const Op=()=>Lp,Ip=()=>e=>{const t=on(e);return E.css({width:"100%",height:R(4),overflow:"hidden",borderTopLeftRadius:t("borderRadius.square"),borderTopRightRadius:t("borderRadius.square"),position:"relative",":before":{content:'""',width:"100%",height:R(2),display:"block"}},"","")},Bp=()=>{const e=E.keyframes({from:{left:"-50%"},to:{left:"100%"}});return E.css({width:"50%",background:"linear-gradient(270deg, #F814E1 0.02%, #4945EE 100%)",height:R(2),position:"absolute",bottom:"0",top:"0",animation:`${e} 1.5s infinite`},"","")},x2=({dataTestId:e})=>u.jsx("div",{css:Op(),"data-testid":e,children:u.jsx("div",{css:Ip(),children:u.jsx("div",{css:Bp()})})});x2.displayName="ButtonLoader";const Rp=x2,$2=h.forwardRef((e,t)=>{const{type:r="primary",size:o="normal",isBlock:n=!1,isDisabled:a=!1,isLoading:i=!1,isIconButton:l=!1,shape:s="circle",children:c,dataTestId:d="",dataTestPrefixId:p="",htmlType:f="button",onClick:v,onBlur:y,sx:m,...w}=e,b=`${p}button`;return u.jsxs("div",{css:Ap({isBlock:n}),children:[i&&!a&&u.jsx(Rp,{dataTestId:b}),u.jsx("button",{...Ut(w,["avatar","iconRightName","iconLeftName","iconName"]),ref:t,type:f,"data-testid":X(b,d),css:Mp({type:r,size:o,isLoading:i,isBlock:n,isDisabled:a,isIconButton:l,shape:s,sx:m}),onClick:$=>{v&&v($)},onBlur:y,disabled:a,children:c})]})});$2.displayName="ButtonBase";const T2=$2,k2=h.forwardRef((e,t)=>{const{type:r="primary",size:o="normal",iconLeftName:n,iconRightName:a,avatar:i,children:l,onClick:s,isLoading:c}=e,d=["primary","secondary","tertiary"].includes(r)&&i,p=z(),f=on(p);return u.jsx(T2,{...e,ref:t,isLoading:c,onClick:s,children:u.jsx("span",{css:Pp(),children:o==="compact"?u.jsx("span",{children:l}):u.jsxs(u.Fragment,{children:[d&&u.jsx($l,{src:i==null?void 0:i.src,children:i==null?void 0:i.label}),n&&!d&&u.jsx(U,{name:n,color:f(`${r}.textColor`)}),u.jsx("span",{children:l}),a&&u.jsx(U,{name:a,color:f(`${r}.textColor`)})]})})})});k2.displayName="Button";const ze=k2,Dp=({elevated:e,isTransparent:t,radius:r})=>o=>E.css("box-shadow:",e?o.globals.elevation[e]:void 0,";background:",t?o.tokens.colors.get("backgroundColor.transparent"):o.tokens.colors.get("backgroundColor.default"),";border-radius:",r?o.globals.spacing.get(r):0,";outline:",t?void 0:`${o.globals.borderWidth.get("1")} solid ${o.tokens.colors.get("borderColor.decorative.default")}`,";",""),P2=({elevated:e,isTransparent:t=!1,radius:r,children:o})=>u.jsx("div",{css:Dp({elevated:e,isTransparent:t,radius:r}),children:o}),Fp=()=>e=>({fontSize:e.globals.typography.fontSize.get("3"),padding:e.globals.spacing.get("4"),color:e.globals.colors.get("neutral.1"),background:e.tokens.colors.get("backgroundColor.inverted"),opacity:"90%",borderRadius:e.globals.spacing.get("3"),minWidth:R(200),whiteSpace:"nowrap"}),qp=()=>e=>({margin:`${e.globals.spacing.get("6")} 0`,height:R(1),borderWidth:0,backgroundColor:e.tokens.colors.get("backgroundColor.default"),opacity:"10%"}),Hp=()=>()=>({padding:0,margin:0}),Np=()=>e=>({listStyleType:"none",color:e.globals.colors.get("neutral.1"),width:"100%",display:"flex",justifyContent:"space-between",height:e.globals.spacing.get("6"),padding:`0px 0px ${R(-5)}`}),zp=({label:e,payload:t})=>u.jsxs("div",{className:"custom-tooltip",css:Fp(),children:[u.jsxs("p",{className:"label",style:{margin:"0px"},children:[`${e}`," "]}),t&&t.length>1&&u.jsx("hr",{css:qp()}),t&&u.jsx("ul",{css:Hp(),children:t.map(({name:r,value:o})=>u.jsxs("li",{css:Np(),children:[u.jsx("div",{children:r})," ",u.jsx("div",{children:o})]},r))})]}),Vp=({dataLabel:e,color:t})=>u.jsxs("linearGradient",{id:`color${e}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[u.jsx("stop",{offset:"5%",stopColor:`${t}`,stopOpacity:.4}),u.jsx("stop",{offset:"95%",stopColor:`${t}`,stopOpacity:0})]}),Wp=h.memo(Vp),Up=e=>U8(V8(e.map(t=>Xo(Ut(t,"name"))))),jp=({theme:e,uniqueKeyNames:t,color:r})=>{const o=W8(e.globals.oldColors.flat,t.length);return t.reduce((n,a,i)=>{var s;const l=typeof r=="function"&&r(a)?r(a):(s=o[i])==null?void 0:s[400];return n[a]=l,n},{})};function kl(e){return({children:r,...o})=>u.jsx(re.ResponsiveContainer,{aspect:o==null?void 0:o.aspect,children:u.jsx(e,{...o,children:r})})}const Kp=kl(re.AreaChart),Zp=({data:e,labelX:t,labelY:r,isLegendVisible:o=!1,color:n})=>{const a=z(),i=h.useMemo(()=>Up(e),[e]),l=h.useMemo(()=>jp({theme:a,uniqueKeyNames:i,color:n}),[a,i,n]),s=Object.entries(l);return i.length<=Object.keys(a.globals.oldColors.flat).length?u.jsxs(Kp,{data:e,margin:{top:10,right:20,left:20,bottom:50},aspect:1.5,children:[u.jsx("defs",{children:s.map(([c,d])=>u.jsx(Wp,{dataLabel:c,color:d},`color${c}`))}),u.jsx(re.XAxis,{dataKey:"name",tickMargin:31,axisLine:!1,tickLine:!1,label:t&&{value:t,angle:0,position:"bottom",offset:35}}),u.jsx(re.YAxis,{tick:{textAnchor:"start"},tickMargin:40,axisLine:!1,tickLine:!1,label:r&&{value:r,angle:-90,position:"left",offset:15}}),u.jsx(re.CartesianGrid,{vertical:!1}),o&&u.jsx(re.Legend,{align:"left",iconType:"circle",iconSize:16,wrapperStyle:{paddingTop:R(50),paddingLeft:R(13)}}),u.jsx(re.Tooltip,{cursor:{stroke:a.tokens.colors.get("backgroundColor.inverted"),strokeWidth:1},content:u.jsx(zp,{})}),s.map(([c,d])=>u.jsx(re.Area,{type:"linear",dataKey:c,stroke:d,fillOpacity:1,fill:`url(#color${c})`,activeDot:{r:3,stroke:"none"},dot:{r:3,fill:d}},c))]}):u.jsxs("p",{children:["You must define less than ",Object.keys(a.globals.oldColors.flat).length," different data"]})},_2=16,Gp=2,Yp=({colors:e,value:t,x:r,y:o,width:n,height:a,index:i})=>{const l=z(),s=r&&n?Number(r)+Number(n)+_2:_2,c=o&&a?Number(o)+Number(a)/Gp:0,d=i&&e[i]?e[i]:l.globals.oldColors.black;return u.jsx("text",{x:s,y:c,children:u.jsx("tspan",{dy:"0.335em",fontWeight:"bold",fill:d,children:t})})},Xp=e=>()=>E.css("width:inherit;height:inherit;color:",e,";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;",""),Jp=()=>e=>E.css("display:block;position:fixed;top:-33%;left:106%;color:",e.globals.colors.get("neutral.1"),";background-color:",e.tokens.colors.get("backgroundColor.inverted"),";opacity:90%;border-radius:",e.globals.spacing.get("3"),";padding:",e.globals.spacing.get("4"),";",""),Qp=()=>e=>E.css("content:'';position:absolute;border-style:solid;margin-top:",R(-5),";border-width:",R(5),";border-color:transparent ",e.tokens.colors.get("backgroundColor.inverted")," transparent transparent;top:50%;left:100%;opacity:90%;",""),eg=({content:e,fill:t})=>{const r=h.useRef(null),[o,n]=h.useState(!1),[a,i]=h.useState(!1);h.useEffect(()=>{i(r.current?r.current.scrollWidth>r.current.clientWidth:!1)},[i]);const l=h.useCallback(()=>{n(!0)},[n]),s=h.useCallback(()=>{n(!1)},[n]);return u.jsxs("div",{ref:r,onMouseEnter:l,onMouseLeave:s,css:Xp(t),children:[e,o&&a&&u.jsxs("div",{children:[u.jsx("div",{css:Jp(),children:e}),u.jsx("div",{css:Qp()})]})]})},tg=()=>e=>({fontSize:e.globals.typography.fontSize.get("3"),padding:`${e.globals.spacing.get("4")} ${e.globals.spacing.get("6")}`,margin:e.globals.spacing.get("4"),color:e.globals.colors.get("neutral.1"),background:e.tokens.colors.get("backgroundColor.inverted"),opacity:"90%",borderRadius:e.globals.spacing.get("3"),minWidth:R(200),whiteSpace:"nowrap"}),rg=()=>()=>({padding:"0px",margin:"0px"}),og=()=>e=>({listStyleType:"none",color:e.globals.colors.get("neutral.1"),width:"100%",display:"flex",justifyContent:"space-between",height:e.globals.spacing.get("6"),padding:`${e.globals.spacing.get("4")} 0px`,"div:last-child":{marginLeft:e.globals.spacing.get("6"),span:{marginLeft:e.globals.spacing.get("3")}}}),ng=({payload:e})=>{var r,o,n;const t=e&&((n=(o=(r=e[0])==null?void 0:r.payload)==null?void 0:o.options)==null?void 0:n.hoverInfo);return t?u.jsx("div",{className:"custom-tooltip",css:tg(),children:u.jsx("ul",{css:rg(),children:t.map(({name:a,value:i,percentage:l})=>u.jsxs("li",{css:og(),children:[u.jsx("div",{children:a}),u.jsxs("div",{children:[u.jsx("span",{children:u.jsx("b",{children:i})}),l&&u.jsxs("span",{children:["(",l,")"]})]})]},`${a}${i}`))})}):null},ag=.05,ig=.2,lg=e=>{const t=e||0,r=t?Math.pow(10,t==null?void 0:t.toString().length):0,o=ag*r,n=o*(Math.floor(t/o)+1),a=n/o,i=a%2?n/o+1:a/2+1;return{maxDomainValue:n,tickCount:i}},sg=(e,t)=>e===0?`${e}`:t>1e9||e===1e9?`${e/1e9}B`:t>1e6||e===1e6?`${e/1e6}M`:t>=1e3||e===1e3?`${e/1e3}K`:`${e}`,cg=(e,t)=>e.map(r=>{var o,n,a,i;return(o=r==null?void 0:r.options)!=null&&o.color?((n=r==null?void 0:r.options)==null?void 0:n.coloringOption)==="all"?H.lighten(ig,(a=r==null?void 0:r.options)==null?void 0:a.color):(i=r==null?void 0:r.options)==null?void 0:i.color:t}),ug=(e,t)=>e.reduce((r,o,n)=>{var a,i,l;return((a=o.options)==null?void 0:a.coloringOption)!=="all"||(t&&t(o)?r[t(o)]=(i=o.options)==null?void 0:i.color:r[n]=(l=o.options)==null?void 0:l.color),r},{}),A2=9.5,M2=160,dg=({colors:e,y:t,width:r,payload:o})=>{const n=z(),a=typeof o.value=="string"&&e[o.value]?e[o.value]:n.globals.oldColors.black;return u.jsx("g",{children:u.jsx("foreignObject",{y:t-10,width:r,height:"20",style:{overflow:"visible"},children:u.jsx(eg,{content:o.value,fill:a})})})},fg=kl(re.BarChart),pg=({data:e})=>{const t=z(),r=h.useMemo(()=>cg(e,t.globals.oldColors.flat.darkBlue[100]),[e,t.globals.oldColors.flat.darkBlue]),o=h.useCallback(f=>j8(e.map(f)),[e]),n=h.useCallback(f=>ug(e,f),[e]),a=o(f=>f.name.length),i=o(f=>f.value),l=a&&a*A2<M2?a*A2:M2,{maxDomainValue:s,tickCount:c}=lg(i),d=n(()=>!1),p=n(f=>f.name);return u.jsxs(fg,{data:e,margin:{top:5,right:60,left:20,bottom:15},layout:"vertical",barCategoryGap:"20%",maxBarSize:32,children:[u.jsx(re.CartesianGrid,{horizontal:!1}),u.jsx(re.XAxis,{type:"number",axisLine:!1,tickLine:!1,tickMargin:24,tickCount:c,domain:[0,s],tickFormatter:f=>sg(f,s)}),u.jsx(re.Tooltip,{cursor:{fill:t.tokens.colors.get("backgroundColor.alt")},content:u.jsx(ng,{})}),u.jsxs(re.Bar,{dataKey:"value",children:[u.jsx(re.LabelList,{dataKey:"barLabel",position:"right",content:u.jsx(Yp,{colors:d})}),e.map((f,v)=>u.jsx(re.Cell,{fill:r[v]},`cell-${f.name}-${f.value}`))," "]}),u.jsx(re.YAxis,{type:"category",dataKey:"name",tick:f=>u.jsx(dg,{...f,colors:p}),width:l,axisLine:!1,tickLine:!1})]})};var gg={name:"ih7ruz",styles:"display:flex;width:100%;justify-content:center"};const vg=()=>()=>gg,hg=()=>e=>E.css("width:80%;font-size:",e.globals.typography.fontSize.get("2"),";color:",e.tokens.colors.get("textColor.default.secondary"),";text-align:center;",""),Cg=({viewBox:e,value:t,units:r})=>{const{cx:o,cy:n}=e,a=z();return u.jsxs("g",{children:[u.jsx("text",{x:o,y:n,className:"recharts-text recharts-label",textAnchor:"middle",dominantBaseline:"central",children:u.jsx("tspan",{x:"50%",dy:"-7",alignmentBaseline:"middle",fontSize:a.globals.typography.fontSize.get("4"),fill:a.globals.oldColors.black,children:t})}),u.jsx("foreignObject",{y:"52%",width:"100%",height:n&&n/2.5,children:u.jsx("div",{css:vg(),children:u.jsx("div",{css:hg(),children:r})})})]})},bg=kl(re.PieChart),yg=({data:e,value:t,units:r})=>{const o=h.useMemo(()=>e.map(n=>(n==null?void 0:n.color)||""),[e]);return u.jsx(bg,{children:u.jsxs(re.Pie,{data:e,innerRadius:"85%",outerRadius:"100%",paddingAngle:0,startAngle:90,endAngle:-270,dataKey:"value",blendStroke:!0,children:[e.map((n,a)=>u.jsx(re.Cell,{fill:o[a]},`cell--${n.name}-${n.value}`)),u.jsx(re.Label,{position:"center",content:u.jsx(Cg,{value:t,units:r})})]})})},Pl=h.createContext(null),L2=()=>h.useContext(Pl),O2=g.forwardRef((e,t)=>{const{dataTestPrefixId:r,sx:o,children:n}=e,a=tf.useRadioGroupState(e),{radioGroupProps:i}=Sr.useRadioGroup(e,a);return u.jsx("div",{"aria-label":"RadioGroup",ref:t,...i,css:o,"data-testid":`${r}_radio_group_container`,children:u.jsx(Pl.Provider,{value:a,children:n})})});O2.displayName="RadioGroup";const mg=O2,wg={checkbox:{padding:{value:"{spacing.5}",type:"spacing",description:"Spacing between checkbox container and checkbox label (if shown)"},backgroundColor:{default:{type:"color",value:"{sem.colors.backgroundColor.transparent}",description:"Sets background color for checkbox's default state"},pressed:{value:"{sem.colors.palette.primary.base}",type:"color",description:"Sets background color for an pressed checkbox"}},borderColor:{default:{type:"color",value:"{sem.colors.borderColor.interactive.default}",description:"Sets borderColor for an default checkbox state"},pressed:{type:"color",value:"{sem.colors.borderColor.decorative.transparent}",description:"Sets borderColor for an pressed checkbox"}},iconColor:{pressed:{value:"{sem.colors.textColor.inverted.primary}",type:"color",description:"Sets color for the 'check' icon that appears when a checkbox is pressed"}},borderRadius:{value:"{borderRadius.2}",type:"borderRadius",description:"Sets borderRadius for the checkbox container"},borderWidth:{value:"{borderWidth.2}",type:"borderWidth",description:"Sets border width for checkbox"},size:{value:"{sizing.5}",type:"sizing",description:"Sets the size of checkbox"}},radio:{padding:{value:"{spacing.5}",type:"spacing",description:"Spacing between radio button container and radio button label(if shown)"},backgroundColor:{default:{type:"color",value:"{sem.colors.backgroundColor.transparent}",description:"Sets backgroundColor for default radio button state"},active:{type:"color",value:"{sem.colors.palette.primary.base}",description:"Sets backgroundColor for a pressed radio button"}},borderColor:{default:{type:"color",value:"{sem.colors.borderColor.interactive.default}",description:"Sets borderColor for default radio button state"},active:{type:"color",value:"{sem.colors.palette.primary.base}",description:"Sets borderColor for an pressed radio button"}},borderRadius:{value:"{borderRadius.7}",type:"borderRadius",description:"Sets borderRadius for the radio button container"},borderWidth:{value:"{borderWidth.2}",type:"borderWidth",description:"Sets border width for radio button"},size:{ring:{value:"{sizing.5}",type:"sizing",description:"Sets the size of outer ring radio button"},circle:{value:"{sizing.3}",type:"sizing",description:"Sets the size of inner circle radio button"}}},switch:{borderRadius:{value:"{borderRadius.7}",type:"borderRadius",description:"Sets 100% border radius for switch elements (thumb, track, hover circle)"},backgroundColor:{track:{value:"{sem.colors.palette.primaryAlt.contrast}",type:"color",description:"Sets backgroundColor for switch track"},thumb:{default:{value:"{sem.colors.backgroundColor.default}",type:"color",description:"Sets backgroundColor for default switch thumb state"},active:{value:"{sem.colors.palette.primary.base}",type:"color",description:"Sets backgroundColor for active switch thumb state"}}},height:{track:{value:"{sizing.2}",type:"sizing",description:"Sets the height of the track"}},width:{track:{value:"{sizing.9}",type:"sizing",description:"Sets the width of the track"}},size:{thumb:{value:"{sizing.5}",type:"sizing",description:"Sets size for switch thumb"}},borderColor:{thumb:{default:{value:"{sem.colors.borderColor.interactive.default}",type:"color",description:"Sets borderColor for default switch thumb state"},active:{value:"{sem.colors.borderColor.interactive.active}",type:"color",description:"Sets borderColor for active switch thumb state"}}},padding:{value:"{spacing.5}",type:"spacing",description:"Sets spacing between switch and label"},borderWidth:{value:"{borderWidth.2}",type:"borderWidth",description:"Sets borderWidth for switch thumb"}},label:{gap:{value:"{spacing.2}",type:"spacing",description:"Sets gap for label/input in controls "},normal:{value:"{sem.typography.normal.body02}",type:"typography",description:"Sets text style for control 'normal' label "},large:{value:"{sem.typography.normal.headline04}",type:"typography",description:"Sets text style for 'large' control label"}},textColor:{label:{value:"{sem.colors.textColor.default.primary}",type:"color",description:"Sets textColor for control label"},helpText:{value:"{sem.colors.textColor.default.secondary}",type:"color",description:"Sets textColor for optional control help text"}},helpText:{value:"{sem.typography.normal.body03}",type:"typography",description:"Sets text style for control help text (if shown)"}},bt=e=>se(wg,e),Sg=({placement:e="right",sx:t,isFocusVisible:r})=>o=>{const n=bt(o);return E.css("label{display:flex;flex-direction:",e==="right"?"row":"row-reverse",";align-items:center;gap:",n("radio.padding"),";position:relative;cursor:pointer;",t,";&:before{content:'';display:inline-block;width:",n("radio.size.ring"),";height:",n("radio.size.ring"),";box-sizing:border-box;border:",n("radio.borderWidth")," solid ",n("radio.borderColor.default"),";border-radius:",n("radio.borderRadius"),";transition:all 200ms;background:",n("radio.backgroundColor.default"),";",r&&`
|
|
13
13
|
background: ${o.tokens.state.get("backgroundColor.hover")};
|
|
14
14
|
box-shadow: 0px 0px 0px 8px ${o.tokens.state.get("backgroundColor.hover")};
|
|
15
15
|
`,";}&:hover::before{background:",o.tokens.state.get("backgroundColor.hover"),";box-shadow:0px 0px 0px 8px ",o.tokens.state.get("backgroundColor.hover"),";}&[data-selected='true']{&:before{border-color:",n("radio.borderColor.active"),";border-radius:50%;}&:hover::before{background:none;box-shadow:none;}&:after{content:'';display:block;position:absolute;border-radius:50%;width:",n("radio.size.circle"),";height:",n("radio.size.circle"),";background:",n("radio.backgroundColor.active"),";",e==="right"?"left":"right",":4px;animation:circle 0.15s ease-in-out;}}&[data-disabled='true']{opacity:",o.tokens.disabledState.get("default"),";cursor:not-allowed;&:hover::before{background:none;box-shadow:none;}}@keyframes circle{0%{transform:scale(0);}100%{transform:scale(1);}}}","")},Eg=()=>e=>{const t=bt(e);return E.css("display:flex;flex-direction:column;gap:",t("label.gap"),";","")},xg=({size:e="normal"})=>t=>{const r=bt(t);return E.css(G(r(`label.${e}`)),";color:",r("textColor.label"),";","")},$g=()=>e=>{const t=bt(e);return E.css(G(t("helpText")),";color:",t("textColor.helpText"),";","")},_l=({size:e="normal",helpText:t,dataTestPrefixId:r,children:o})=>typeof o=="string"?u.jsxs("div",{css:Eg(),children:[u.jsx("div",{css:xg({size:e}),"data-testid":`${r}_label`,children:o}),t&&u.jsx("div",{css:$g(),"data-testid":`${r}_helpText`,children:t})]}):u.jsx(u.Fragment,{children:o}),I2=g.forwardRef((e,t)=>{const{id:r,value:o,labelConfig:n={},dataTestPrefixId:a,children:i}=e,{placement:l="right",size:s="normal",helpText:c,sx:d}=n,p=g.useRef(null),f=Yt(p,t),v=L2(),y=Sr.useRadio(e,v??{},p),{inputProps:m,isSelected:w,isDisabled:b}=v?y:e,{isFocusVisible:$,focusProps:P}=Sr.useFocusRing();return u.jsx("div",{"data-testid":`${a}_radio_${o.split(" ").join("_")}_container`,css:Sg({placement:l,sx:d,isFocusVisible:$}),children:u.jsxs("label",{"data-selected":w,"data-disabled":b,children:[u.jsx(Sr.VisuallyHidden,{children:u.jsx("input",{id:r,...Sr.mergeProps(m,P),ref:f,tabIndex:0})}),i&&u.jsx(_l,{size:s,helpText:c,dataTestPrefixId:`${a}_radio_${o.split(" ").join("_")}`,children:i})]})})});I2.displayName="Radio";const Tg=I2,kg=({placement:e="right",sx:t,isDisabled:r})=>o=>{const n=bt(o);return E.css("display:flex;flex-direction:",e==="right"?"row":"row-reverse",";align-items:center;gap:",n("checkbox.padding"),";",r&&`
|
|
@@ -118,7 +118,7 @@ Unable to find an `+(o===!1?"accessible ":"")+'element with the role "'+t+'"'+s+
|
|
|
118
118
|
}`,";","")},IR=({isBetween:e})=>t=>{const r=Ge(t);return E.css("vertical-align:middle;text-align:center;cursor:pointer;position:relative;background:",r(e?"date.backgroundColor.focused":"date.backgroundColor.default"),";","")},BR=({isSelected:e,isToday:t,isDisabled:r,isBetween:o})=>n=>{const a=Ge(n);return E.css(zo(n),";border:",e?0:a("date.borderWidth")," solid ",a(t?"date.borderColor.present":"date.borderColor.default"),";border-radius:",(t||e)&&a("date.borderRadius.2"),";width:",a("dateSize"),";height:",a("dateSize"),";color:",a(e?"date.textColor.active":"date.textColor.default"),";box-sizing:border-box;display:flex;align-items:center;justify-content:center;background:",e?a("date.backgroundColor.active"):"transparent",";",!r&&`&:hover {
|
|
119
119
|
border-radius: ${a("date.borderRadius.2")};
|
|
120
120
|
background: ${!e&&(o?"transparent":a("date.backgroundColor.focused"))};
|
|
121
|
-
}`,";","")},RR=({day:e,month:t,year:r,onSelect:o,isSelected:n=!1,isBetween:a=!1,isLast:i=!1,isFirst:l=!1,isDisabled:s=!1,tabIndex:c})=>{const d=h.useMemo(()=>e&&te.month(t).date(e).year(r),[r,e,t]),p=h.useMemo(()=>te.month()===t&&te.year()===r&&te.date()===e,[r,t,e]),f=h.useCallback(y=>{y.preventDefault(),o&&d&&o(d)},[o,d]),{keyboardProps:v}=tr({events:{keydown:{onEnter:y=>{s||f(y)}}},hasPropagation:!0});return e?u.jsx("td",{style:{padding:0},onClick:s?void 0:f,children:u.jsx("div",{css:OR({isSelected:n,isBetween:a,isLast:i,isFirst:l,isToday:p,isDisabled:s}),tabIndex:c,"data-testid":`${e}_${t+1}_${r}${n?"_selected":""}`,...v,children:u.jsx("div",{css:BR({isSelected:n,isBetween:a,isLast:i,isFirst:l,isToday:p,isDisabled:s}),children:e})})}):u.jsx("td",{css:IR({isBetween:a})})},DR=h.memo(RR);le.extend(G8);const FR=["Monday","Tuesday","Wednesday","Thurdsday","Friday","Saturday","Sunday"],qR=({year:e,month:t,onDaySelect:r,selectedDays:o,disabledDates:n,isFirstCalendar:a})=>{const i=g.useMemo(()=>{const m=te.month(t).year(e).date(1),w=m.daysInMonth(),b=m.day()||7,$=7,P=LR(e,t),I=Array(P*$).fill(null).reduce((x,O,C)=>{const B=C+1,_=X8(B,b,w+b)?B-b+1:void 0;return[...x,_]},[]);return Y8(I,$)},[e,t]),l=h.useCallback(MR,[]),s=h.useCallback(PR,[]),c=h.useCallback(_R,[]),d=h.useCallback(AR,[]),{focusedDay:p,setFocusedDay:f,calendarRef:v,keyboardProps:y}=ER({selectedDays:o,isFirstCalendar:a,month:t,year:e});return u.jsxs(g.Fragment,{children:[u.jsx("div",{css:$R(),children:FR.map(m=>u.jsx("div",{css:TR(),children:m.substr(0,2)},m))}),u.jsx("table",{css:kR(),ref:v,tabIndex:0,"data-testid":"calendar_table",...y,onFocus:()=>{p===0&&f(1)},children:u.jsx("tbody",{children:i.map((m,w)=>u.jsx("tr",{children:m.map((b,$)=>u.jsx(DR,{tabIndex:p===b?0:-1,year:e,month:t,day:b,onSelect:r,isDisabled:!!s(b,t,e,n),isSelected:!!l(b,t,e,o.from,o.to),isBetween:!!c(b,t,e,o.from,o.to),isLast:!!d(b,"last",t,e,o.from,o.to),isFirst:!!d(b,"first",t,e,o.from,o.to)},`${e}-${t}-${w}-${$}-day`))},`${e}-${t}-${w}-week`))})})]})},HR=g.memo(qR),i9=h.forwardRef((e,t)=>{const{name:r,size:o="normal",type:n="primary",shape:a="circle",dataTestPrefixId:i}=e,l=z(),s=on(l),c=s(`${n}.textColor`);return u.jsx(T2,{...e,ref:t,isIconButton:!0,shape:a,dataTestPrefixId:i?`${i}-icon-`:"icon-",children:u.jsx(U,{size:s(`${o}.iconSize`),name:r,color:c})})});i9.displayName="IconButton";const vt=i9,NR={iconColor:{type:"color",value:"{sem.colors.textColor.default.secondary}",description:"Sets color for list item icons"},iconSize:{value:"{sem.icon.size.3}",type:"sizing",description:"Sets fixed size for list item icon"},height:{value:"{sizing.13}",type:"sizing",description:"Sets fixed height for all list items"},heightCompact:{value:"{sizing.10}",type:"sizing",description:"Sets fixed height for _block pagination list item"},padding:{value:"{spacing.5}",type:"spacing",description:"sets padding between avatar and list item text"},paddingHorizontal:{value:"{spacing.5}",type:"spacing",description:"Left and right padding for list items"},backgroundColor:{default:{value:"{sem.colors.palette.tertiary.base}",type:"color",description:"Sets backgroundColor for default list item"},active:{type:"color",value:"{sem.colors.palette.tertiary.muted}",description:"Sets backgroundColor for active list item"}},textColor:{default:{type:"color",value:"{sem.colors.textColor.default.primary}",description:"Sets textColor for primary list item copy"},secondary:{type:"color",value:"{sem.colors.textColor.default.secondary}",description:"Sets textColor for secondary list item copy and content variants (e.g. loading, no results)"},active:{type:"color",value:"{sem.colors.textColor.default.active}",description:"Sets textColor for active list item copy"}},default:{value:"{sem.typography.normal.body02}",type:"typography",description:"Sets text style for default list item ('normal' size variant)"},defaultCompact:{value:"{sem.typography.normal.body03}",type:"typography",description:"Sets text style for default list item ('compact' size variant)"},active:{value:"{sem.typography.normal.label02}",type:"typography",description:"Sets text style for active list item ('normal' size variant)"},activeCompact:{value:"{sem.typography.normal.label03}",type:"typography",description:"Sets text style for active list item ('compact' size variant)"},secondaryText:{value:"{sem.typography.normal.body03}",type:"typography",description:"Sets text style for secondary copy ('help text') in list items, if shown"}},l9={backgroundColor:{value:"{sem.colors.backgroundColor.default}",type:"color",description:"Background color for menu container"},borderColor:{value:"{sem.colors.borderColor.decorative.default}",type:"color",description:"Border color for menu container"},borderRadius:{value:"{borderRadius.2}",type:"borderRadius",description:"Applies to menu container"},boxShadow:{value:"{sem.boxShadow.2}",type:"boxShadow",description:"Applies to menu container"},borderWidth:{value:"{borderWidth.1}",type:"borderWidth",description:"Sets borderWidth for menu"}},s9=e=>se(l9,e),yr=e=>se(NR,e),c9=({isSelected:e,hasNoResultsExist:t})=>r=>{const o=yr(r);return E.css("padding:",r.globals.spacing.get("6"),";font-size:",r.globals.typography.fontSize.get("4"),";background-color:",e?H.darken(.07,r.globals.oldColors.white):r.globals.oldColors.white,";cursor:default;color:",t?o("textColor.secondary"):"initial",";text-align:",t?"center":"initial",";text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;&:hover{background-color:",H.darken(.03,r.globals.oldColors.white),";}","")},zR=({status:e,isVirtualized:t,height:r,sx:o})=>n=>E.css("background-color:",n.globals.oldColors.white,";border-radius:4px;box-shadow:",n.globals.elevation["02"],";top:",(e==null?void 0:e.type)!=="normal"?"70%":"110%",";z-index:500;position:absolute;max-height:",R(r),";overflow-y:",t?"hidden":"auto",";min-width:100%;max-width:",R(620),";",o,";","");function Cu(e){if(jl()==="virtual"){let t=document.activeElement;K2(()=>{document.activeElement===t&&document.contains(e)&&rt(e)})}else rt(e)}function VR(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return!1;let{display:t,visibility:r}=e.style,o=t!=="none"&&r!=="hidden"&&r!=="collapse";if(o){const{getComputedStyle:n}=e.ownerDocument.defaultView;let{display:a,visibility:i}=n(e);o=a!=="none"&&i!=="hidden"&&i!=="collapse"}return o}function WR(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function u9(e,t){return e.nodeName!=="#comment"&&VR(e)&&WR(e,t)&&(!e.parentElement||u9(e.parentElement,e))}const bu=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],UR=bu.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";bu.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const jR=bu.join(':not([hidden]):not([tabindex="-1"]),');function d9(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function KR(e,t,r){let o=t!=null&&t.tabbable?jR:UR,n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var i;return!(t==null||(i=t.from)===null||i===void 0)&&i.contains(a)?NodeFilter.FILTER_REJECT:a.matches(o)&&u9(a)&&(!r||d9(a,r))&&(!(t!=null&&t.accept)||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(n.currentNode=t.from),n}class yu{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,o){let n=this.fastMap.get(r??null);if(!n)return;let a=new f9({scopeRef:t});n.addChild(a),a.parent=n,this.fastMap.set(t,a),o&&(a.nodeToRestore=o)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let o=r.parent;for(let a of this.traverse())a!==r&&r.nodeToRestore&&a.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&d9(a.nodeToRestore,r.scopeRef.current)&&(a.nodeToRestore=r.nodeToRestore);let n=r.children;o&&(o.removeChild(r),n.size>0&&n.forEach(a=>o&&o.addChild(a))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var t;let r=new yu;var o;for(let n of this.traverse())r.addTreeNode(n.scopeRef,(o=(t=n.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&o!==void 0?o:null,n.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new f9({scopeRef:null}),this.fastMap.set(null,this.root)}}class f9{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}new yu;function ZR(e={}){let{autoFocus:t=!1,isTextInput:r,within:o}=e,n=h.useRef({isFocused:!1,isFocusVisible:t||gn()}),[a,i]=h.useState(!1),[l,s]=h.useState(()=>n.current.isFocused&&n.current.isFocusVisible),c=h.useCallback(()=>s(n.current.isFocused&&n.current.isFocusVisible),[]),d=h.useCallback(v=>{n.current.isFocused=v,i(v),c()},[c]);Mv(v=>{n.current.isFocusVisible=v,c()},[],{isTextInput:r});let{focusProps:p}=Ev({isDisabled:o,onFocusChange:d}),{focusWithinProps:f}=dd({isDisabled:!o,onFocusWithinChange:d});return{isFocused:a,isFocusVisible:l,focusProps:o?f:p}}function GR(e){let{id:t,label:r,"aria-labelledby":o,"aria-label":n,labelElementType:a="label"}=e;t=uo(t);let i=uo(),l={};r?(o=o?`${i} ${o}`:i,l={id:i,htmlFor:a==="label"?t:void 0}):!o&&!n&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let s=iv({id:t,"aria-label":n,"aria-labelledby":o});return{labelProps:l,fieldProps:s}}const YR=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),XR=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function JR(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize().script;return r?YR.has(r):!1}let t=e.split("-")[0];return XR.has(t)}function p9(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:JR(e)?"rtl":"ltr"}}let mu=p9(),Uo=new Set;function g9(){mu=p9();for(let e of Uo)e(mu)}function QR(){let e=F2(),[t,r]=h.useState(mu);return h.useEffect(()=>(Uo.size===0&&window.addEventListener("languagechange",g9),Uo.add(r),()=>{Uo.delete(r),Uo.size===0&&window.removeEventListener("languagechange",g9)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const eD=h.createContext(null);function v9(){let e=QR();return h.useContext(eD)||e}let wu=new Map;function tD(e){let{locale:t}=v9(),r=t+(e?Object.entries(e).sort((n,a)=>n[0]<a[0]?-1:1).join():"");if(wu.has(r))return wu.get(r);let o=new Intl.Collator(t,e);return wu.set(r,o),o}function Su(e){return ev()?e.altKey:e.ctrlKey}function no(e){return mt()?e.metaKey:e.ctrlKey}const rD=1e3;function oD(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:o}=e,n=h.useRef({search:"",timeout:null}).current,a=i=>{let l=nD(i.key);if(!l||i.ctrlKey||i.metaKey||!i.currentTarget.contains(i.target))return;l===" "&&n.search.trim().length>0&&(i.preventDefault(),"continuePropagation"in i||i.stopPropagation()),n.search+=l;let s=t.getKeyForSearch(n.search,r.focusedKey);s==null&&(s=t.getKeyForSearch(n.search)),s!=null&&(r.setFocusedKey(s),o&&o(s)),clearTimeout(n.timeout),n.timeout=setTimeout(()=>{n.search=""},rD)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:null}}}function nD(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function aD(e){let{selectionManager:t,keyboardDelegate:r,ref:o,autoFocus:n=!1,shouldFocusWrap:a=!1,disallowEmptySelection:i=!1,disallowSelectAll:l=!1,selectOnFocus:s=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:d,allowsTabNavigation:p=!1,isVirtualized:f,scrollRef:v=o,linkBehavior:y="action"}=e,{direction:m}=v9(),w=U2(),b=_=>{if(_.altKey&&_.key==="Tab"&&_.preventDefault(),!o.current.contains(_.target))return;const A=(N,we)=>{if(N!=null){if(t.isLink(N)&&y==="selection"&&s&&!Su(_)){gl.flushSync(()=>{t.setFocusedKey(N,we)});let Ae=v.current.querySelector(`[data-key="${N}"]`);w.open(Ae,_);return}if(t.setFocusedKey(N,we),t.isLink(N)&&y==="override")return;_.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(N):s&&!Su(_)&&t.replaceSelection(N)}};switch(_.key){case"ArrowDown":if(r.getKeyBelow){var M,S;_.preventDefault();let N=t.focusedKey!=null?r.getKeyBelow(t.focusedKey):(M=r.getFirstKey)===null||M===void 0?void 0:M.call(r);N==null&&a&&(N=(S=r.getFirstKey)===null||S===void 0?void 0:S.call(r,t.focusedKey)),A(N)}break;case"ArrowUp":if(r.getKeyAbove){var k,q;_.preventDefault();let N=t.focusedKey!=null?r.getKeyAbove(t.focusedKey):(k=r.getLastKey)===null||k===void 0?void 0:k.call(r);N==null&&a&&(N=(q=r.getLastKey)===null||q===void 0?void 0:q.call(r,t.focusedKey)),A(N)}break;case"ArrowLeft":if(r.getKeyLeftOf){var K,F;_.preventDefault();let N=r.getKeyLeftOf(t.focusedKey);N==null&&a&&(N=m==="rtl"?(K=r.getFirstKey)===null||K===void 0?void 0:K.call(r,t.focusedKey):(F=r.getLastKey)===null||F===void 0?void 0:F.call(r,t.focusedKey)),A(N,m==="rtl"?"first":"last")}break;case"ArrowRight":if(r.getKeyRightOf){var me,Ne;_.preventDefault();let N=r.getKeyRightOf(t.focusedKey);N==null&&a&&(N=m==="rtl"?(me=r.getLastKey)===null||me===void 0?void 0:me.call(r,t.focusedKey):(Ne=r.getFirstKey)===null||Ne===void 0?void 0:Ne.call(r,t.focusedKey)),A(N,m==="rtl"?"last":"first")}break;case"Home":if(r.getFirstKey){_.preventDefault();let N=r.getFirstKey(t.focusedKey,no(_));t.setFocusedKey(N),no(_)&&_.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(N):s&&t.replaceSelection(N)}break;case"End":if(r.getLastKey){_.preventDefault();let N=r.getLastKey(t.focusedKey,no(_));t.setFocusedKey(N),no(_)&&_.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(N):s&&t.replaceSelection(N)}break;case"PageDown":if(r.getKeyPageBelow){_.preventDefault();let N=r.getKeyPageBelow(t.focusedKey);A(N)}break;case"PageUp":if(r.getKeyPageAbove){_.preventDefault();let N=r.getKeyPageAbove(t.focusedKey);A(N)}break;case"a":no(_)&&t.selectionMode==="multiple"&&l!==!0&&(_.preventDefault(),t.selectAll());break;case"Escape":_.preventDefault(),i||t.clearSelection();break;case"Tab":if(!p){if(_.shiftKey)o.current.focus();else{let N=KR(o.current,{tabbable:!0}),we,Ae;do Ae=N.lastChild(),Ae&&(we=Ae);while(Ae);we&&!we.contains(document.activeElement)&&rt(we)}break}}},$=h.useRef({top:0,left:0});uv(v,"scroll",f?null:()=>{$.current={top:v.current.scrollTop,left:v.current.scrollLeft}});let P=_=>{if(t.isFocused){_.currentTarget.contains(_.target)||t.setFocused(!1);return}if(_.currentTarget.contains(_.target)){if(t.setFocused(!0),t.focusedKey==null){let S=q=>{q!=null&&(t.setFocusedKey(q),s&&t.replaceSelection(q))},k=_.relatedTarget;var A,M;k&&_.currentTarget.compareDocumentPosition(k)&Node.DOCUMENT_POSITION_FOLLOWING?S((A=t.lastSelectedKey)!==null&&A!==void 0?A:r.getLastKey()):S((M=t.firstSelectedKey)!==null&&M!==void 0?M:r.getFirstKey())}else f||(v.current.scrollTop=$.current.top,v.current.scrollLeft=$.current.left);if(!f&&t.focusedKey!=null){let S=v.current.querySelector(`[data-key="${t.focusedKey}"]`);S&&(S.contains(document.activeElement)||rt(S),jl()==="keyboard"&&J2(S,{containingElement:o.current}))}}},L=_=>{_.currentTarget.contains(_.relatedTarget)||t.setFocused(!1)};const I=h.useRef(n);h.useEffect(()=>{if(I.current){let _=null;n==="first"&&(_=r.getFirstKey()),n==="last"&&(_=r.getLastKey());let A=t.selectedKeys;A.size&&(_=A.values().next().value),t.setFocused(!0),t.setFocusedKey(_),_==null&&!d&&Cu(o.current)}I.current=!1},[]);let x=h.useRef(t.focusedKey);h.useEffect(()=>{let _=jl();if(t.isFocused&&t.focusedKey!=null&&(v!=null&&v.current)){let A=v.current.querySelector(`[data-key="${t.focusedKey}"]`);A&&_==="keyboard"&&(f||Y2(v.current,A),J2(A,{containingElement:o.current}))}t.isFocused&&t.focusedKey==null&&x.current!=null&&Cu(o.current),x.current=t.focusedKey},[f,v,t.focusedKey,t.isFocused,o]);let O={onKeyDown:b,onFocus:P,onBlur:L,onMouseDown(_){v.current===_.target&&_.preventDefault()}},{typeSelectProps:C}=oD({keyboardDelegate:r,selectionManager:t});c||(O=tt(C,O));let B;return d||(B=t.focusedKey==null?0:-1),{collectionProps:{...O,tabIndex:B}}}function iD(e){let{selectionManager:t,key:r,ref:o,shouldSelectOnPressUp:n,shouldUseVirtualFocus:a,focus:i,isDisabled:l,onAction:s,allowsDifferentPressOrigin:c,linkBehavior:d="action"}=e,p=U2(),f=F=>{if(F.pointerType==="keyboard"&&Su(F))t.toggleSelection(r);else{if(t.selectionMode==="none")return;if(t.isLink(r)){if(d==="selection"){p.open(o.current,F),t.setSelectedKeys(t.selectedKeys);return}else if(d==="override"||d==="none")return}t.selectionMode==="single"?t.isSelected(r)&&!t.disallowEmptySelection?t.toggleSelection(r):t.replaceSelection(r):F&&F.shiftKey?t.extendSelection(r):t.selectionBehavior==="toggle"||F&&(no(F)||F.pointerType==="touch"||F.pointerType==="virtual")?t.toggleSelection(r):t.replaceSelection(r)}};h.useEffect(()=>{r===t.focusedKey&&t.isFocused&&!a&&(i?i():document.activeElement!==o.current&&Cu(o.current))},[o,r,t.focusedKey,t.childFocusStrategy,t.isFocused,a]),l=l||t.isDisabled(r);let v={};!a&&!l?v={tabIndex:r===t.focusedKey?0:-1,onFocus(F){F.target===o.current&&t.setFocusedKey(r)}}:l&&(v.onMouseDown=F=>{F.preventDefault()});let y=t.isLink(r)&&d==="override",m=t.isLink(r)&&d!=="selection"&&d!=="none",w=!l&&t.canSelectItem(r)&&!y,b=(s||m)&&!l,$=b&&(t.selectionBehavior==="replace"?!w:!w||t.isEmpty),P=b&&w&&t.selectionBehavior==="replace",L=$||P,I=h.useRef(null),x=L&&w,O=h.useRef(!1),C=h.useRef(!1),B=F=>{s&&s(),m&&p.open(o.current,F)},_={};n?(_.onPressStart=F=>{I.current=F.pointerType,O.current=x,F.pointerType==="keyboard"&&(!L||C9())&&f(F)},c?(_.onPressUp=$?null:F=>{F.pointerType!=="keyboard"&&w&&f(F)},_.onPress=$?B:null):_.onPress=F=>{if($||P&&F.pointerType!=="mouse"){if(F.pointerType==="keyboard"&&!h9())return;B(F)}else F.pointerType!=="keyboard"&&w&&f(F)}):(_.onPressStart=F=>{I.current=F.pointerType,O.current=x,C.current=$,w&&(F.pointerType==="mouse"&&!$||F.pointerType==="keyboard"&&(!b||C9()))&&f(F)},_.onPress=F=>{(F.pointerType==="touch"||F.pointerType==="pen"||F.pointerType==="virtual"||F.pointerType==="keyboard"&&L&&h9()||F.pointerType==="mouse"&&C.current)&&(L?B(F):w&&f(F))}),v["data-key"]=r,_.preventFocusOnPress=a;let{pressProps:A,isPressed:M}=nd(_),S=P?F=>{I.current==="mouse"&&(F.stopPropagation(),F.preventDefault(),B(F))}:void 0,{longPressProps:k}=Rv({isDisabled:!x,onLongPress(F){F.pointerType==="touch"&&(f(F),t.setSelectionBehavior("toggle"))}}),q=F=>{I.current==="touch"&&O.current&&F.preventDefault()},K=t.isLink(r)?F=>{Jt.isOpening||F.preventDefault()}:void 0;return{itemProps:tt(v,w||$?A:{},x?k:{},{onDoubleClick:S,onDragStartCapture:q,onClick:K}),isPressed:M,isSelected:t.isSelected(r),isFocused:t.isFocused&&t.focusedKey===r,isDisabled:l,allowsSelection:w,hasAction:L}}function h9(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function C9(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class lD{getNextKey(t){for(t=this.collection.getKeyAfter(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getPreviousKey(t){for(t=this.collection.getKeyBefore(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}findKey(t,r,o){let n=this.getItem(t);if(!n)return null;let a=n.getBoundingClientRect();do t=r(t),n=this.getItem(t);while(n&&o(a,n.getBoundingClientRect()));return t}isSameRow(t,r){return t.top===r.top||t.left!==r.left}isSameColumn(t,r){return t.left===r.left||t.top!==r.top}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getNextKey(r),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getPreviousKey(r),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,r){return r?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();for(;t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getLastKey(){let t=this.collection.getLastKey();for(;t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}getItem(t){return this.ref.current.querySelector(`[data-key="${t}"]`)}getKeyPageAbove(t){let r=this.ref.current,o=this.getItem(t);if(!o)return null;if(!cn(r))return this.getFirstKey();let n=r.getBoundingClientRect(),a=o.getBoundingClientRect();if(this.orientation==="horizontal"){let i=n.x-r.scrollLeft,l=Math.max(0,a.x-i+a.width-n.width);for(;o&&a.x-i>l;)t=this.getKeyAbove(t),o=t==null?null:this.getItem(t),a=o==null?void 0:o.getBoundingClientRect()}else{let i=n.y-r.scrollTop,l=Math.max(0,a.y-i+a.height-n.height);for(;o&&a.y-i>l;)t=this.getKeyAbove(t),o=t==null?null:this.getItem(t),a=o==null?void 0:o.getBoundingClientRect()}return t??this.getFirstKey()}getKeyPageBelow(t){let r=this.ref.current,o=this.getItem(t);if(!o)return null;if(!cn(r))return this.getLastKey();let n=r.getBoundingClientRect(),a=o.getBoundingClientRect();if(this.orientation==="horizontal"){let i=n.x-r.scrollLeft,l=Math.min(r.scrollWidth,a.x-i-a.width+n.width);for(;o&&a.x-i<l;)t=this.getKeyBelow(t),o=t==null?null:this.getItem(t),a=o==null?void 0:o.getBoundingClientRect()}else{let i=n.y-r.scrollTop,l=Math.min(r.scrollHeight,a.y-i-a.height+n.height);for(;o&&a.y-i<l;)t=this.getKeyBelow(t),o=t==null?null:this.getItem(t),a=o==null?void 0:o.getBoundingClientRect()}return t??this.getLastKey()}getKeyForSearch(t,r){if(!this.collator)return null;let o=this.collection,n=r||this.getFirstKey();for(;n!=null;){let a=o.getItem(n),i=a.textValue.slice(0,t.length);if(a.textValue&&this.collator.compare(i,t)===0)return n;n=this.getKeyBelow(n)}return null}constructor(...t){if(t.length===1){let r=t[0];this.collection=r.collection,this.ref=r.ref,this.collator=r.collator,this.disabledKeys=r.disabledKeys||new Set,this.orientation=r.orientation,this.direction=r.direction,this.layout=r.layout||"stack"}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical";this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function sD(e){let{selectionManager:t,collection:r,disabledKeys:o,ref:n,keyboardDelegate:a}=e,i=tD({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,s=h.useMemo(()=>a||new lD(r,l==="selection"?new Set:o,n,i),[a,r,o,n,i,l]),{collectionProps:c}=aD({...e,ref:n,selectionManager:t,keyboardDelegate:s});return{listProps:c}}function b9(e){return null}b9.getCollectionNode=function*(t,r){let{childItems:o,title:n,children:a}=t,i=t.title||t.children,l=t.textValue||(typeof i=="string"?i:"")||t["aria-label"]||"";!l&&!(r!=null&&r.suppressTextValueWarning)&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:i,textValue:l,"aria-label":t["aria-label"],hasChildNodes:cD(t),*childNodes(){if(o)for(let s of o)yield{type:"item",value:s};else if(n){let s=[];h.Children.forEach(a,c=>{s.push({type:"item",element:c})}),yield*s}}}};function cD(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&h.Children.count(e.children)>0)}let y9=b9;function m9(e){return null}m9.getCollectionNode=function*(t){let{children:r,title:o,items:n}=t;yield{type:"section",props:t,hasChildNodes:!0,rendered:o,"aria-label":t["aria-label"],*childNodes(){if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");for(let a of n)yield{type:"item",value:a,renderer:r}}else{let a=[];h.Children.forEach(r,i=>{a.push({type:"item",element:i})}),yield*a}}}};let w9=m9;class uD{build(t,r){return this.context=r,S9(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:r,items:o}=t;if(typeof r=="function"){if(!o)throw new Error("props.children was a function but props.items is missing");for(let n of t.items)yield*this.getFullNode({value:n},{renderer:r})}else{let n=[];h.Children.forEach(r,i=>{n.push(i)});let a=0;for(let i of n){let l=this.getFullNode({element:i,index:a},{});for(let s of l)a++,yield s}}}getKey(t,r,o,n){if(t.key!=null)return t.key;if(r.type==="cell"&&r.key!=null)return`${n}${r.key}`;let a=r.value;if(a!=null){var i;let l=(i=a.key)!==null&&i!==void 0?i:a.id;if(l==null)throw new Error("No key found for item");return l}return n?`${n}.${r.index}`:`$.${r.index}`}getChildState(t,r){return{renderer:r.renderer||t.renderer}}*getFullNode(t,r,o,n){let a=t.element;if(!a&&t.value&&r&&r.renderer){let s=this.cache.get(t.value);if(s&&(!s.shouldInvalidate||!s.shouldInvalidate(this.context))){s.index=t.index,s.parentKey=n?n.key:null,yield s;return}a=r.renderer(t.value)}if(h.isValidElement(a)){let s=a.type;if(typeof s!="function"&&typeof s.getCollectionNode!="function"){let f=typeof a.type=="function"?a.type.name:a.type;throw new Error(`Unknown element <${f}> in collection.`)}let c=s.getCollectionNode(a.props,this.context),d=t.index,p=c.next();for(;!p.done&&p.value;){let f=p.value;t.index=d;let v=f.key;v||(v=f.element?null:this.getKey(a,t,r,o));let m=[...this.getFullNode({...f,key:v,index:d,wrapper:dD(t.wrapper,f.wrapper)},this.getChildState(r,f),o?`${o}${a.key}`:a.key,n)];for(let w of m){if(w.value=f.value||t.value,w.value&&this.cache.set(w.value,w),t.type&&w.type!==t.type)throw new Error(`Unsupported type <${Eu(w.type)}> in <${Eu(n.type)}>. Only <${Eu(t.type)}> is supported.`);d++,yield w}p=c.next(m)}return}if(t.key==null)return;let i=this,l={type:t.type,props:t.props,key:t.key,parentKey:n?n.key:null,value:t.value,level:n?n.level+1:0,index:t.index,rendered:t.rendered,textValue:t.textValue,"aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes,childNodes:S9(function*(){if(!t.hasChildNodes)return;let s=0;for(let c of t.childNodes()){c.key!=null&&(c.key=`${l.key}${c.key}`),c.index=s;let d=i.getFullNode(c,i.getChildState(r,c),l.key,l);for(let p of d)s++,yield p}})};yield l}constructor(){this.cache=new WeakMap}}function S9(e){let t=[],r=null;return{*[Symbol.iterator](){for(let o of t)yield o;r||(r=e());for(let o of r)t.push(o),yield o}}}function dD(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function Eu(e){return e[0].toUpperCase()+e.slice(1)}function fD(e,t,r){let o=h.useMemo(()=>new uD,[]),{children:n,items:a,collection:i}=e;return h.useMemo(()=>{if(i)return i;let s=o.build({children:n,items:a},r);return t(s)},[o,n,a,i,r,t])}function E9(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function pD(e){return gD(e,0)}function gD(e,t){if(t<0)return;let r=0;for(let o of e){if(r===t)return o;r++}}function xu(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let o=[...x9(e,t),t],n=[...x9(e,r),r],a=o.slice(0,n.length).findIndex((i,l)=>i!==n[l]);return a!==-1?(t=o[a],r=n[a],t.index-r.index):o.findIndex(i=>i===r)>=0?1:(n.findIndex(i=>i===t)>=0,-1)}function x9(e,t){let r=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),r.unshift(t);return r}const $9=new WeakMap;function vD(e){let t=$9.get(e);if(t!=null)return t;t=0;let r=o=>{for(let n of o)n.type==="section"?r(E9(n,e)):t++};return r(e),$9.set(e,t),t}const $u=new WeakMap;function hD(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function CD(e,t){let r=$u.get(e);if(!r)throw new Error("Unknown list");return`${r.id}-option-${hD(t)}`}function bD(e,t,r){let o=N2(e,{labelable:!0}),n=e.selectionBehavior||"toggle",a=e.linkBehavior||(n==="replace"?"action":"override");n==="toggle"&&a==="action"&&(a="override");let{listProps:i}=sD({...e,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:a}),{focusWithinProps:l}=dd({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),s=uo(e.id);$u.set(t,{id:s,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:a});let{labelProps:c,fieldProps:d}=GR({...e,id:s,labelElementType:"span"});return{labelProps:c,listBoxProps:tt(o,l,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...tt(d,i)})}}function yD(e,t,r){var o;let{key:n}=e,a=$u.get(t);var i;let l=(i=e.isDisabled)!==null&&i!==void 0?i:t.disabledKeys.has(n);var s;let c=(s=e.isSelected)!==null&&s!==void 0?s:t.selectionManager.isSelected(n);var d;let p=(d=e.shouldSelectOnPressUp)!==null&&d!==void 0?d:a==null?void 0:a.shouldSelectOnPressUp;var f;let v=(f=e.shouldFocusOnHover)!==null&&f!==void 0?f:a==null?void 0:a.shouldFocusOnHover;var y;let m=(y=e.shouldUseVirtualFocus)!==null&&y!==void 0?y:a==null?void 0:a.shouldUseVirtualFocus;var w;let b=(w=e.isVirtualized)!==null&&w!==void 0?w:a==null?void 0:a.isVirtualized,$=H2(),P=H2(),L={role:"option","aria-disabled":l||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?c:void 0};mt()&&V2()||(L["aria-label"]=e["aria-label"],L["aria-labelledby"]=$,L["aria-describedby"]=P);let I=t.collection.getItem(n);if(b){let S=Number(I==null?void 0:I.index);L["aria-posinset"]=Number.isNaN(S)?void 0:S+1,L["aria-setsize"]=vD(t.collection)}let{itemProps:x,isPressed:O,isFocused:C,hasAction:B,allowsSelection:_}=iD({selectionManager:t.selectionManager,key:n,ref:r,shouldSelectOnPressUp:p,allowsDifferentPressOrigin:p&&v,isVirtualized:b,shouldUseVirtualFocus:m,isDisabled:l,onAction:a!=null&&a.onAction?()=>{var S;return a==null||(S=a.onAction)===null||S===void 0?void 0:S.call(a,n)}:void 0,linkBehavior:a==null?void 0:a.linkBehavior}),{hoverProps:A}=Ov({isDisabled:l||!v,onHoverStart(){gn()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(n))}}),M=N2(I==null?void 0:I.props,{isLink:!!(!(I==null||(o=I.props)===null||o===void 0)&&o.href)});return delete M.id,{optionProps:{...L,...tt(M,x,A),id:CD(t,n)},labelProps:{id:$},descriptionProps:{id:P},isFocused:C,isFocusVisible:C&&gn(),isSelected:c,isDisabled:l,isPressed:O,allowsSelection:_,hasAction:B}}class qe extends Set{constructor(t,r,o){super(t),t instanceof qe?(this.anchorKey=r||t.anchorKey,this.currentKey=o||t.currentKey):(this.anchorKey=r,this.currentKey=o)}}function mD(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function wD(e){let{selectionMode:t="none",disallowEmptySelection:r,allowDuplicateSelectionEvents:o,selectionBehavior:n="toggle",disabledBehavior:a="all"}=e,i=h.useRef(!1),[,l]=h.useState(!1),s=h.useRef(null),c=h.useRef(null),[,d]=h.useState(null),p=h.useMemo(()=>T9(e.selectedKeys),[e.selectedKeys]),f=h.useMemo(()=>T9(e.defaultSelectedKeys,new qe),[e.defaultSelectedKeys]),[v,y]=Mg(p,f,e.onSelectionChange),m=h.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[w,b]=h.useState(n);n==="replace"&&w==="toggle"&&typeof v=="object"&&v.size===0&&b("replace");let $=h.useRef(n);return h.useEffect(()=>{n!==$.current&&(b(n),$.current=n)},[n]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:w,setSelectionBehavior:b,get isFocused(){return i.current},setFocused(P){i.current=P,l(P)},get focusedKey(){return s.current},get childFocusStrategy(){return c.current},setFocusedKey(P,L="first"){s.current=P,c.current=L,d(P)},selectedKeys:v,setSelectedKeys(P){(o||!mD(P,v))&&y(P)},disabledKeys:m,disabledBehavior:a}}function T9(e,t){return e?e==="all"?"all":new qe(e):t}class SD{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){return this.state.selectionMode==="none"?!1:(t=this.getKey(t),this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(o=>r.has(o)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let o=this.collection.getItem(r);(!t||o&&xu(this.collection,o,t)<0)&&(t=o)}return t==null?void 0:t.key}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let o=this.collection.getItem(r);(!t||o&&xu(this.collection,o,t)>0)&&(t=o)}return t==null?void 0:t.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}t=this.getKey(t);let r;if(this.state.selectedKeys==="all")r=new qe([t],t,t);else{let o=this.state.selectedKeys,n=o.anchorKey||t;r=new qe(o,n,t);for(let a of this.getKeyRange(n,o.currentKey||t))r.delete(a);for(let a of this.getKeyRange(t,n))this.canSelectItem(a)&&r.add(a)}this.state.setSelectedKeys(r)}getKeyRange(t,r){let o=this.collection.getItem(t),n=this.collection.getItem(r);return o&&n?xu(this.collection,o,n)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){let o=[],n=t;for(;n;){let a=this.collection.getItem(n);if((a&&a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&o.push(n),n===r)return o;n=this.collection.getKeyAfter(n)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}if(t=this.getKey(t),t==null)return;let r=new qe(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(t)?r.delete(t):this.canSelectItem(t)&&(r.add(t),r.anchorKey=t,r.currentKey=t),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none"||(t=this.getKey(t),t==null))return;let r=this.canSelectItem(t)?new qe([t],t,t):new qe;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new qe;for(let o of t)if(o=this.getKey(o),o!=null&&(r.add(o),this.selectionMode==="single"))break;this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=o=>{for(;o;){if(this.canSelectItem(o)){let n=this.collection.getItem(o);n.type==="item"&&t.push(o),n.hasChildNodes&&(this.allowsCellSelection||n.type!=="item")&&r(pD(E9(n,this.collection)).key)}o=this.collection.getKeyAfter(o)}};return r(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new qe)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let o of t)if(!r.has(o))return!1;for(let o of r)if(!t.has(o))return!1;return!0}canSelectItem(t){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){return this.state.disabledKeys.has(t)&&this.state.disabledBehavior==="all"}isLink(t){var r,o;return!!(!((o=this.collection.getItem(t))===null||o===void 0||(r=o.props)===null||r===void 0)&&r.href)}constructor(t,r,o){this.collection=t,this.state=r;var n;this.allowsCellSelection=(n=o==null?void 0:o.allowsCellSelection)!==null&&n!==void 0?n:!1,this._isSelectAll=null}}class k9{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);return r?r.prevKey:null}getKeyAfter(t){let r=this.keyMap.get(t);return r?r.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){let r=this.keyMap.get(t);return(r==null?void 0:r.childNodes)||[]}constructor(t){this.keyMap=new Map,this.iterable=t;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let i of a.childNodes)r(i)};for(let a of t)r(a);let o,n=0;for(let[a,i]of this.keyMap)o?(o.nextKey=a,i.prevKey=o.key):(this.firstKey=a,i.prevKey=void 0),i.type==="item"&&(i.index=n++),o=i,o.nextKey=void 0;this.lastKey=o==null?void 0:o.key}}function ED(e){let{filter:t}=e,r=wD(e),o=h.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),n=h.useCallback(c=>t?new k9(t(c)):new k9(c),[t]),a=h.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),i=fD(e,n,a),l=h.useMemo(()=>new SD(i,r),[i,r]);const s=h.useRef(null);return h.useEffect(()=>{if(r.focusedKey!=null&&!i.getItem(r.focusedKey)){const c=s.current.getItem(r.focusedKey),d=[...s.current.getKeys()].map(m=>{const w=s.current.getItem(m);return w.type==="item"?w:null}).filter(m=>m!==null),p=[...i.getKeys()].map(m=>{const w=i.getItem(m);return w.type==="item"?w:null}).filter(m=>m!==null),f=d.length-p.length;let v=Math.min(f>1?Math.max(c.index-f+1,0):c.index,p.length-1),y;for(;v>=0;){if(!l.isDisabled(p[v].key)){y=p[v];break}v<p.length-1?v++:(v>c.index&&(v=c.index),v--)}r.setFocusedKey(y?y.key:null)}s.current=i},[i,l,r,r.focusedKey]),{collection:i,disabledKeys:o,selectionManager:l}}const xD=6,P9=5,sl={compact:40,normal:52},_9=xe("li",{target:""})(({rowSize:e="normal",isDisabled:t,theme:r})=>{const o=yr(r),n=e==="compact",a=R(sl[e]),i=E.css("0 ",o("paddingHorizontal"),";",""),l=n?Vo(r):vu(r);return E.css("background-color:",o("backgroundColor.default"),";&>div{",l,";}span[role='presentation']{padding:",i,";min-height:",a,";align-items:center;display:flex;",l,";font-weight:",r.globals.typography.fontWeight.get("bold"),";}&[role='option']{padding:",i,";min-height:",a,";display:flex;flex-direction:row;gap:",R(12),";&:hover{background-color:",t?void 0:o("backgroundColor.active"),";cursor:",t?"initial":"pointer",";}}&[data-focus-visible]{background-color:",o("backgroundColor.active"),";}&[aria-selected='true']{background-color:",o("backgroundColor.active"),";&>div{color:",o("textColor.active"),";",n?gu(r):zo(r),";}&[data-focus-visible]{background-color:",o("backgroundColor.active"),";}}opacity:",t?"0.5":"1",";cursor:",t?"not-allowed":"initial",";","")},""),A9=h.forwardRef(({children:e,rowSize:t,isDisabled:r=!1,isHighlighted:o=!1,searchTerm:n,dataTestId:a,...i},l)=>{var s;return u.jsx(_9,{"data-testid":`ictinus_list_item_${(s=i["data-key"])==null?void 0:s.replace(/ /g,"_")}`,...i,rowSize:t,isDisabled:r,ref:l,children:e})});A9.displayName="ListItem";const $D=A9,TD=({width:e,isSearchable:t})=>r=>{const o=s9(r);return E.css("border:",t?"initial":`${o("borderWidth")} solid ${o("borderColor")}`,";border-radius:",t?"initial":o("borderRadius"),";width:",`${e}px`||"100%",";box-shadow:",o("boxShadow"),";","")},M9=({width:e,height:t,isSearchable:r})=>o=>{const n=s9(o);return E.css("padding-left:0;margin-top:0;margin-bottom:0;border-radius:",r?"initial":n("borderRadius"),";width:",e?R(e):"100%",";height:",t?R(t):"auto",";overflow:auto;overflow-x:hidden;background:",n("backgroundColor"),";","")};var kD={name:"n1lsvi",styles:"padding:0;list-style:none"};const PD=()=>kD,L9=typeof window<"u"?h.useLayoutEffect:h.useEffect;function _D(e,t,r){const o=h.useRef(t);L9(()=>{o.current=t},[t]),h.useEffect(()=>{const n=(r==null?void 0:r.current)||window;if(!(n&&n.addEventListener))return;const a=i=>o.current(i);return n.addEventListener(e,a),()=>{n.removeEventListener(e,a)}},[e,r])}function AD(){const[e,t]=h.useState(null),[r,o]=h.useState({width:0,height:0}),n=h.useCallback(()=>{o({width:(e==null?void 0:e.offsetWidth)||0,height:(e==null?void 0:e.offsetHeight)||0})},[e==null?void 0:e.offsetHeight,e==null?void 0:e.offsetWidth]);return _D("resize",n),L9(()=>{n()},[e==null?void 0:e.offsetHeight,e==null?void 0:e.offsetWidth]),[t,r,e]}const O9=5,I9=h.forwardRef(({rowHeight:e,children:t,gap:r=0,isVirtualizationEnabled:o=!0,...n},a)=>{const[i,{height:l}]=AD(),s=Yt(i,a),[c,d]=h.useState(0),p=h.useMemo(()=>{if(!o)return t.map((m,w)=>h.cloneElement(m,{}));const v=Math.max(Math.floor(c/e)-O9,0),y=Math.min(Math.ceil((c+l)/e-1)+O9,t.length-1);return t.slice(v,y+1).map((m,w)=>h.cloneElement(m,{style:{position:"absolute",top:(v+w)*e+w*r,height:e,left:0,right:0,lineHeight:`${e}px`}}))},[t,l,e,c,r,o]),f=h.useMemo(()=>J8(function(v){d(v.target.scrollTop)},50,{leading:!1}),[]);return u.jsx("ul",{onScroll:f,...n,style:{overflowY:"auto",position:"relative",display:"flex",flexDirection:"column",height:"100%",listStyle:"none",padding:0},ref:s,children:p})});I9.displayName="Window";const MD=I9,B9=h.forwardRef((e,t)=>{const{width:r,height:o,isVirtualized:n=!1,dataTestId:a}=e,i=ED({...e,selectionMode:"single"}),l=h.useRef(null),s=Yt(l,t),{listBoxProps:c}=bD(e,i,s),d=i.collection.getFirstKey(),p=d?i.collection.getItem(d):null;return u.jsx("div",{css:TD({width:r}),children:u.jsx("div",{"data-testid":a?`${a}_list`:"ictinus_list",children:u.jsx("div",{style:{height:n&&o?o:"100%"},children:u.jsx(MD,{...c,css:M9({width:r,height:o}),id:c.id,isVirtualizationEnabled:n,rowHeight:sl[(p==null?void 0:p.props.rowSize)??"normal"],ref:s,children:Array.from(i.collection).map(f=>f.type==="section"?u.jsx(LD,{section:f,state:i},f.key):u.jsx(R9,{item:f,state:i},f.key))})})})})});B9.displayName="List";function R9({item:e,state:t,style:r}){var c;const o=h.useRef(null),{optionProps:n,isDisabled:a}=yD({key:e.key},t,o),{isFocusVisible:i,isFocused:l,focusProps:s}=ZR();return u.jsx($D,{...tt(n,s),id:n.id,ref:o,isDisabled:a,style:r,"data-focus-visible":i||void 0,"data-focused":l||void 0,"data-empty":t.collection.size===0||void 0,rowSize:((c=e.props)==null?void 0:c.rowSize)||"normal",children:e.rendered})}function LD({section:e,state:t}){var a;const{itemProps:r,headingProps:o,groupProps:n}=Sr.useListBoxSection({heading:e.rendered,"aria-label":e["aria-label"]});return u.jsx(u.Fragment,{children:u.jsxs(_9,{...r,rowSize:((a=e.props)==null?void 0:a.rowSize)||"normal",isDisabled:!1,children:[e.rendered&&u.jsx("span",{...o,id:o.id,children:e.rendered}),u.jsx("ul",{...n,"aria-labelledby":n["aria-labelledby"],css:PD,children:[...e.childNodes].map(i=>{var l;return u.jsx(R9,{item:{...i,props:{...i.props,rowSize:((l=e.props)==null?void 0:l.rowSize)||"normal"}},state:t},i.key)})})]})})}const Tu=B9,OD=(e,t)=>r=>{const o=yr(r);return E.css("color:",o("textColor.default"),";font-weight:",e||t?"bold":"initial",";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:inherit;flex:1;display:flex;flex-direction:column;justify-content:center;strong{font-weight:bold;}span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}","")},ID=()=>e=>{const t=yr(e);return E.css(G(t("secondaryText")),";color:",t("textColor.secondary"),";","")},mr=e=>u.jsxs("div",{css:OD(!1,!1),children:[u.jsx("span",{children:e.children}),e.description&&u.jsx("p",{css:ID(),children:e.description})]});var BD={name:"o2d6zf",styles:"display:flex;flex-direction:row;align-items:center;justify-content:center"};const RD=()=>()=>BD,DD=e=>u.jsx("div",{css:RD(),children:e.children}),D9=e=>{const t=e.parentType==="Menu"?"div":y9;return E.createElement(t,{...e,key:String(e.key)},e.children)};D9.getCollectionNode=y9.getCollectionNode;const wr=D9,F9=e=>u.jsx(w9,{...e});F9.getCollectionNode=w9.getCollectionNode;const q9=F9,_e={value:"select_all",label:"Select All"},H9=h.forwardRef((e,t)=>{const{filteredOptions:r,handleOptionClick:o,selectedOption:n,isLoading:a,isVirtualized:i,size:l="normal",hasSelectAllOption:s=!1}=e,c=h.useRef(null),d=Yt(c,t),p=P9*sl[l],f=()=>{var m,w;return((m=c.current)==null?void 0:m.scrollIntoView)&&((w=c.current)==null?void 0:w.scrollIntoView({block:"nearest",inline:"start"}))},v=h.useCallback(m=>{const w=String(jt(Array.from(m)));if(w===_e.value)o(_e);else{const b=Nu(r,$=>$.options||$).find($=>String($.value)===w);b&&o(b)}},[r,o]);h.useEffect(()=>{f()},[n]);const y=()=>r.length>0?u.jsxs(Tu,{label:Hu("menu_list"),ref:d,height:p,isVirtualized:i&&r.length>P9,onSelectionChange:v,selectedKeys:[n.value],disabledKeys:r.filter(m=>m.isDisabled).map(m=>m.value),children:[s?u.jsx(wr,{rowSize:l,textValue:_e.label,children:u.jsx(mr,{children:_e.label})},_e.value):null,r.map(m=>{var w;return m.options&&((w=m.options)==null?void 0:w.length)>0?u.jsx(q9,{title:m.value,children:m.options.map(b=>u.jsx(wr,{rowSize:l,textValue:b.label,children:u.jsx(mr,{description:b.helperText,children:b.label})},b.value))},m.value):u.jsx(wr,{rowSize:l,textValue:m.label,children:u.jsx(mr,{description:m.helperText,children:m.label})},m.value)})]}):u.jsx("div",{css:c9({isSelected:!1,hasNoResultsExist:!0}),children:"No options"});return u.jsx("div",{css:zR({...e,height:p}),tabIndex:-1,children:a?u.jsx("div",{css:c9({isSelected:!1,hasNoResultsExist:!0}),children:"Loading..."}):y()})});H9.displayName="SelectMenu";const N9=H9;function FD(e){const r=new Date().getFullYear()+10,o=new Date().getFullYear()-10;return Z8(o,r).map(a=>({value:a.toString(),label:`${e.format("MMMM")} ${a.toString()}`}))}const qD=({setDate:e,onDaySelect:t=()=>{},selectedDays:r,date:o,handleArrow:n=()=>{},showedArrows:a="both",disabledDates:i,isRangePicker:l=!1})=>{const[s,c]=h.useState(!1),d=a!=="right",p=h.useMemo(()=>FD(o),[o]),f=h.useRef(null),{keyboardProps:v}=tr({events:{keydown:{onArrowDown:()=>{setTimeout(()=>{var m;const y=(m=f.current)==null?void 0:m.querySelectorAll('[role="option"]');if(y&&(y==null?void 0:y.length)>0){const w=jt(y);w instanceof HTMLElement&&typeof w.focus=="function"&&w.focus()}},0)}}},hasPropagation:!0});return u.jsx(h.Fragment,{children:u.jsxs("div",{css:CR(),children:[u.jsxs("div",{css:yR(),children:[(a==="left"||a==="both")&&u.jsx("div",{css:a9({position:"left"}),children:u.jsx(vt,{name:"triangleLeft",type:"tertiary",onClick:()=>n("back"),dataTestId:"month_back"})}),u.jsxs(Zt,{onClick:()=>{c(!1)},children:[u.jsxs("div",{css:wR(),children:[u.jsx("div",{css:SR({isRangePicker:l}),"data-testid":"month_header",...l?{}:v,children:u.jsxs(ze,{onClick:l?void 0:()=>c(!s),type:"tertiary",dataTestId:`${a!=="both"?a+"_":""}month`,children:[o.format("MMMM")," ",o.format("YYYY")]})}),s&&u.jsx(N9,{ref:f,filteredOptions:p,handleOptionClick:y=>{e(o.year(Number(y.value))),c(!1)},selectedOption:{value:o.format("YYYY"),label:o.format("YYYY")},sx:{top:"124%"}})]}),(a==="right"||a==="both")&&u.jsx("div",{css:a9({position:"right"}),children:u.jsx(vt,{name:"triangleRight",type:"tertiary",onClick:()=>n("forward"),dataTestId:"month_forward"})})]})]}),u.jsx(HR,{year:o.year(),month:o.month(),onDaySelect:t,selectedDays:r,disabledDates:i,isFirstCalendar:d})]})})},z9=h.memo(qD),HD=()=>e=>{const t=Ge(e);return E.css(Se,";border:",t("date.borderWidth")," solid ",t("container.borderColor"),";border-radius:",t("date.container.borderRadius"),";width:fit-content;","")},ND=()=>e=>{const t=Ge(e);return E.css("border-right:",t("date.borderWidth")," solid ",t("container.borderColor"),";","")},zD=({isSelected:e})=>t=>{const r=yr(t);return E.css(zo(t),";white-space:nowrap;padding:",t.globals.spacing.get("6"),";font-weight:",e?t.globals.typography.fontWeight.get("medium"):t.globals.typography.fontWeight.get("regular"),";color:",e&&r("textColor.active"),";cursor:pointer;background-color:",e?r("backgroundColor.active"):"transparent",";position:relative;&:hover{background-color:",r("backgroundColor.active"),";}","")};var VD={name:"yqjhl6",styles:"display:flex;flex-direction:column;position:relative"};const WD=()=>VD;var UD={name:"1wbxrzl",styles:"display:flex;flex-direction:row;position:relative;z-index:10"};const jD=()=>UD,KD=()=>e=>{const t=Ge(e);return E.css("display:flex;justify-content:flex-end;height:",t("actionsContainer"),";align-items:center;gap:",t("actionsSpacing"),";padding:0 ",t("padding"),";border-top:",t("date.borderWidth")," solid ",t("container.borderColor"),";","")},ZD=e=>e.from??te,GD=e=>{var t,r;return((r=e.from)==null?void 0:r.month(((t=e.from)==null?void 0:t.month())+1))??te.month(te.month()+1)};var YD={name:"zjik7",styles:"display:flex"};const XD=({selectedOption:e,setSelectedOption:t=()=>{},isRangePicker:r=!1,extraOptions:o=[],onDaySelect:n,selectedDays:a,disabledDates:i,onClearAll:l=()=>{},onApply:s=()=>{}})=>{const[c,d]=h.useState(ZD(a)),[p,f]=h.useState(GD(a)),v=h.useCallback((y="back")=>{d(m=>m.month(m.month()+(y==="forward"?1:-1))),f(m=>m.month(m.month()+(y==="forward"?1:-1)))},[c,p]);return u.jsx("div",{css:HD(),children:u.jsxs("div",{css:WD(),"data-testid":"buttonMonthsWrapperStyle",children:[u.jsxs("div",{css:YD,children:[o.length>0&&r&&u.jsx("div",{css:ND(),"data-testid":"optionsWrapperStyle",children:o.map(y=>u.jsx("div",{css:zD({isSelected:e===y.value}),onClick:()=>t(y.value),children:y.label},y.value))}),u.jsxs("div",{css:jD(),children:[u.jsx(z9,{date:c,onDaySelect:n,selectedDays:a,setDate:d,handleArrow:v,showedArrows:r?"left":"both",disabledDates:i,isRangePicker:r}),r&&u.jsx(z9,{date:p,onDaySelect:n,selectedDays:a,setDate:f,handleArrow:v,showedArrows:r?"right":"both",disabledDates:i,isRangePicker:r})]})]}),u.jsxs("div",{css:KD(),children:[u.jsx(ze,{onClick:l,dataTestId:"cancel",type:"tertiary",children:mB}),u.jsx(ze,{onClick:s,dataTestId:"apply",isDisabled:!a.from||!a.to,children:yB})]})]})})},JD=g.memo(XD),V9=e=>new ResizeObserver(t=>{const r=vl(t);(r==null?void 0:r.target)!==(r==null?void 0:r.contentRect)&&r&&e(r.contentRect.height)}),QD=(e,t)=>{var i;const[r,o]=h.useState(0),[n,a]=h.useState(0);return h.useEffect(()=>{if(!e.current)return;const l=V9(o);return l.observe(e.current),()=>l.disconnect()},[e]),h.useEffect(()=>{var c;const l=vl((c=t.current)==null?void 0:c.children);if(!l)return;const s=V9(a);return s.observe(l),()=>s.disconnect()},[t,(i=t.current)==null?void 0:i.children]),{parentHeight:r,childHeight:n}},eF=(e,t,r,o,n)=>{const[a,i]=h.useState({x:-1,y:-1}),{parentHeight:l,childHeight:s}=QD(e,t);return h.useEffect(()=>{var b,$,P;const{x:c,y:d,width:p}=e!=null&&e.current?(b=e==null?void 0:e.current)==null?void 0:b.getBoundingClientRect():{x:0,y:0,width:0},{width:f}=t!=null&&t.current?(P=($=t==null?void 0:t.current)==null?void 0:$.children[0])==null?void 0:P.getBoundingClientRect():{width:0},v=d+l+s>window.innerHeight;let y=0,m=0;v?(m=m-s-o,d+m<0&&(m=l+o)):m=l+o,c+f>window.innerWidth?y=y+p-f-r:y=r,i({x:y,y:m})},[e,t,n,o,r,l,s]),a},tF=(e,t)=>{var n,a;const[r,o]=h.useState();return h.useEffect(()=>{var i,l;e&&o((l=(i=t==null?void 0:t.current)==null?void 0:i.getBoundingClientRect())==null?void 0:l.width)},[e,t,(a=(n=t==null?void 0:t.current)==null?void 0:n.getBoundingClientRect())==null?void 0:a.width]),[r]},rF=(e,t,r)=>()=>E.css({overflow:e?"hidden":"inherit",textOverflow:e?"ellipsis":"inherit",width:"100%",height:"inherit",position:"relative","#unique-tooltip-id":{display:t?"block !important":"none !important"},...r==null?void 0:r.container},"",""),oF=(e,t,r,o)=>()=>E.css({position:"absolute",opacity:"1 !important",top:H.rem(t),left:H.rem(e),zIndex:999999999,width:r?H.rem(r):"fit-content",height:"fit-content",...o==null?void 0:o.itemContainer},"",""),ku=({id:e="unique-tooltip-id",isVisible:t,parent:r,isOverflowAllowed:o,hasWrapperWidth:n=!1,offsetX:a=0,offsetY:i=0,sx:l,children:s})=>{const c=h.useRef(null),d=h.useRef(null),[p]=tF(n,c),{x:f,y:v}=eF(c,d,a,i,t),y=t&&f!==-1&&v!==-1;return u.jsxs("div",{css:rF(o,y,l),ref:c,children:[r,y&&u.jsx("div",{css:oF(f,v,p,l),id:e,ref:d,children:s})]})},nF=({isRangePicker:e=!1,onChange:t=()=>{},disableDates:r,value:o,inputProps:n,dateFormatOverride:a=void 0,isClearable:i=!1,filterConfig:l,options:s,dataTestId:c})=>{const d=h.useMemo(()=>bB(o||{}),[o]),[p,f]=h.useState(!1),[v,y]=h.useState(""),[m,w]=h.useState(d),{keyboardProps:b}=tr({events:{keydown:{onEscape:()=>{f(!1)}}},hasPropagation:!0}),$=h.useCallback(_=>{const A=s==null?void 0:s.find(M=>M.value===_);A&&(w(Array.isArray(A.dates)?{from:A.dates[0],to:A.dates[1]}:{from:A.dates,to:A.dates}),y(_))},[s]),P=h.useCallback(_=>{var k,q,K,F;const A=_.to&&((k=_.from)!=null&&k.isAfter(_.to))?_.to:_.from,M=_.to&&((q=_.from)!=null&&q.isAfter(_.to))?_.from:_.to,S={from:A,to:M};S.to&&f(!1),t({from:(K=S.from)==null?void 0:K.toDate(),to:(F=S.to)==null?void 0:F.toDate()})},[t]),L=h.useCallback(_=>{const A=_.startOf("day"),M=_.endOf("day");return w(e?S=>S.from&&S.to?{from:A,to:void 0}:S.from?{...S,to:M}:{...S,from:A}:S=>S.from&&S.to&&_.isBetween(S.from,S.to)?hr:{from:A,to:M})},[e]),I=h.useCallback(()=>{f(!1)},[]),x=h.useCallback(()=>{w(hr),t(hr),f(!1)},[t]),O=h.useCallback(()=>{f(!p)},[p]),C=h.useCallback(_=>{if(!i&&!l.filterType)return!1;if(l!=null&&l.filterType)return f(!1),w(hr),t(hr);if((_==null?void 0:_.keyCode)===27)return f(!1);if((_==null?void 0:_.keyCode)===8){if(e&&d.from&&d.to)return w({from:d.from,to:void 0}),t({from:d.from.toDate(),to:void 0});w(hr),t(hr)}},[i,l==null?void 0:l.filterType,t,d,e]),B=h.useCallback(()=>{P(m)},[P,m]);return u.jsx(Zt,{onClick:I,children:u.jsx("div",{...b,children:u.jsx(ku,{isVisible:p,parent:u.jsx(hR,{filterConfig:l,isRangePicker:e,selectedDay:d,inputProps:n,dateFormatOverride:a,handleIconClick:O,handleClear:C,isOpen:p,dataTestId:c}),children:u.jsx("div",{css:TB(),children:u.jsx(JD,{selectedOption:v,setSelectedOption:$,extraOptions:s,isRangePicker:e,onDaySelect:L,selectedDays:m,disabledDates:r,onClearAll:x,onApply:B})})})})})},aF=h.memo(nF,Me),iF=(e,t)=>{const r=Cl.useLocation(),[o,n]=h.useState();return h.useLayoutEffect(()=>{e.forEach(a=>{(a.options.map(s=>s.url).includes(r.pathname)||a.url===r.pathname)&&(n(a.url),t([a.url]))})},[r.pathname,e,t]),[o]},W9={semantic:{hover:{backgroundColor:{step:50}},focus:{border:{width:{step:1},color:{name:"magenta",shade:500}}},pressed:{backgroundColor:{step:100}},disabled:{opacity:{amount:.5},cursor:{name:"not-allowed"}}},dark:{hover:{backgroundColor:{step:50}},focus:{border:{width:{step:1},color:{name:"magenta",shade:500}}},pressed:{backgroundColor:{step:100}},disabled:{opacity:{amount:.5},cursor:{name:"not-allowed"}}}},lF=W9.semantic.focus.border.width.step,U9=W9.semantic.focus.border.color,sF=({theme:e,borderWidth:t=0})=>{const r=t+lF,o=e.utils.getColor(U9.name,U9.shade);return{borderWidth:R(r),focusColor:o,styleBorder:`${R(r)} solid ${o}`,styleOutline:`${o} auto ${R(r)}`}},cF=39,uF=e=>()=>E.css(ie(10.2),";width:100%;background-color:white;height:100%;padding:",R(24)," 0;box-sizing:border-box;.menu-item-text,.submenu-item-text{opacity:",e?1:0,";width:",R(e?204:16),";white-space:nowrap;}",""),j9=e=>E.css(so,";height:",R(44),";color:",e.tokens.colors.get("textColor.default.primary"),";cursor:default;",""),K9=()=>e=>E.css(j9(e),";width:100%;font-size:",R(16),";font-weight:",e.globals.typography.fontWeight.get("regular"),";padding:0 ",e.globals.spacing.get("6"),";background:transparent;border:0 solid transparent;display:flex;text-align:left;text-decoration:none;&:hover{background-color:",e.tokens.colors.get("palette.tertiary.muted"),";}&:focus-visible{outline:",e.tokens.colors.get("palette.tertiary.muted"),";}",""),dF=()=>e=>E.css(K9()(e),";text-decoration:none;",""),fF=e=>t=>E.css(ie(.2),";color:",e?t.tokens.colors.get("textColor.default.active"):t.tokens.colors.get("textColor.default.primary"),";font-weight:",e?t.globals.typography.fontWeight.get("bold"):"initial",";",""),pF=()=>e=>E.css(j9(e),";",ie(.2),";box-sizing:border-box;font-size:",e.globals.typography.fontSize.get("3"),";color:",e.tokens.colors.get("textColor.default.primary"),";margin:",e.globals.spacing.get("3")," 0 ",e.globals.spacing.get("3")," 0;padding-left:",R(cF),";&:hover{background-color:",e.tokens.colors.get("palette.tertiary.muted"),"!important;}&.active:hover{background-color:",e.tokens.colors.get("palette.tertiary.contrast"),"!important;}&.active{font-weight:",e.globals.typography.fontWeight.get("bold"),";background-color:",e.tokens.colors.get("palette.tertiary.muted"),"!important;color:",e.tokens.colors.get("textColor.default.active"),";path{fill:",e.tokens.colors.get("textColor.default.active"),"!important;}}&:focus-visible{outline:",sF({theme:e}).styleOutline,";}text-decoration:none;",""),gF=(e,t)=>()=>E.css(ie(.2),";opacity:",t?"1":"0",";transform:",e?"rotate(90deg)":"rotate(0deg);",";",""),vF=()=>e=>E.css(ie(.2),";",Qe,";margin-right:",e.globals.spacing.get("4"),";width:",R(32),";height:",R(32),";border-radius:50%;flex-shrink:0;",""),hF=()=>e=>E.css(Qe,";width:",R(32),";height:",R(32),";margin-right:",e.globals.spacing.get("4"),";flex-shrink:0;",""),CF=(e,t)=>E.css("transition:opacity ",e?t+100:0,"ms ease,transform ",e?t+100:0,"ms ease;opacity:",Number(e),";transform:translateY(",e?0:R("-10px"),");",""),bF=(e,t)=>{const r=g.useRef(null),o=()=>{if(r.current===null)throw new Error("Uninitialised element ref");e?r.current.style.height="":r.current.style.height="0"},n=()=>{if(r.current===null)throw new Error("Uninitialised element ref");let a;return e?r.current.style.visibility="":a=window.setTimeout(()=>{if(r.current===null)throw new Error("Uninitialised element ref");r.current.style.visibility="hidden"},t),function(){clearTimeout(a)}};return g.useLayoutEffect(o,[e]),g.useLayoutEffect(n,[e,t]),r},yF=[{condition:({isExpanded:e,onChange:t})=>!!(e===void 0&&t||t===void 0&&typeof e=="boolean"),error:new Kt("If expanded is defined onChange must be defined too and vice versa")},{condition:({content:e,children:t})=>e===void 0&&t===void 0,error:new Kt("Either content or children must be defined")}],Z9=e=>{const{textAndControl:t,component:r="div",transitionDuration:o=200,content:n,children:a,isInitiallyExpanded:i=!1,isExpanded:l,onChange:s,dataTestId:c}=e;en(yF,e);const[d,p]=g.useState(i),f=r,v=n??a,y=l??d,m=bF(y,o),w=b=>{typeof l!="boolean"?p($=>!$):s&&s(b)};return u.jsxs(f,{"data-testid":X("expand-collapse",c),children:[t(w,y),u.jsx("div",{css:CF(y,o),ref:m,children:v(y)})]})},G9=h.memo(({isCurrent:e,isExpanded:t,name:r,url:o,iconName:n,options:a,toggleMenuItem:i,state:l})=>{const s=z(),c=h.useMemo(()=>a.length>0,[a.length]),d=u.jsxs(h.Fragment,{children:[u.jsx("div",{css:gF(t,c),children:u.jsx(U,{name:"triangleRight",color:s.tokens.colors.get("textColor.default.primary"),size:20})}),u.jsx("div",{css:vF(),children:u.jsx(U,{name:n,color:e?s.tokens.colors.get("textColor.default.active"):s.tokens.colors.get("textColor.default.primary"),size:20})}),u.jsx("span",{className:"menu-item-text",css:fF(e),children:r})]});return u.jsx(h.Fragment,{children:c?u.jsx(Z9,{isExpanded:t,onChange:()=>i(o),textAndControl:p=>u.jsx("button",{type:"button",css:K9(),"data-testid":o,onClick:p,children:d}),children:()=>u.jsx(h.Fragment,{children:a.map(p=>p.isVisible&&u.jsxs(Cl.NavLink,{to:p.url,state:p.state,"data-testid":p.url,className:({isActive:f,isPending:v})=>v?"pending":f?"active":"",css:pF(),id:"submenu-item-link",children:[u.jsx("div",{css:hF(),children:u.jsx(U,{name:p.iconName,color:s.tokens.colors.get("textColor.default.primary"),size:20})}),u.jsx("span",{className:"submenu-item-text",children:p.name})]},p.url))})}):u.jsx(Cl.NavLink,{to:o,state:l,"data-testid":o,className:({isActive:p,isPending:f})=>f?"pending":p?"active":"",css:dF(),children:d},o)})});G9.displayName="MenuItem";const mF=G9,wF=({menuItems:e,isExpanded:t})=>{const[r,o]=h.useState([]),[n]=iF(e,o),a=h.useCallback(i=>{o(l=>l.indexOf(i)!==-1?[]:[i])},[]);return u.jsx("div",{css:uF(t),children:e.map(i=>i.isVisible&&u.jsx(mF,{isCurrent:n===i.url,isExpanded:r.includes(i.url),toggleMenuItem:a,...i},i.url))})},SF=(e,t,r)=>o=>E.css(ie(.2),";width:",R(e?"308px":t?"112px":"0px"),";background-color:",o.tokens.colors.get("backgroundColor.default"),";overflow:hidden;flex-grow:0;flex-shrink:0;height:100%;min-height:100%;z-index:100;position:",r?"absolute":"relative",";border-right:",R(1)," solid ",o.tokens.colors.get("borderColor.decorative.default"),";",""),EF=e=>{var o;const t=lo(),r=t.des1200&&!t.des1440;return u.jsxs("div",{css:SF(e.isExpanded,t.des1200,!t.des1440),onMouseEnter:()=>r&&e.setExpanded(!0),onMouseLeave:()=>r&&e.setExpanded(!1),"data-testid":"sidebar",children:[(o=e.renderHeader)==null?void 0:o.call(e),u.jsx(wF,{...Ut(e,"renderHeader")})]})},Y9=e=>se(l9,e),xF={name:"np6l6x",styles:"min-width:150px;background:#ffffff"},$F=xe(Je.MenuItem,{target:"e73b2cc1"})(({rowSize:e,isCompact:t,isDisabled:r,theme:o})=>{const n=yr(o),a=H.rem(sl[e]),i=E.css("0 ",n("paddingHorizontal"),";",""),l=t?Vo(o):vu(o);return E.css("background-color:",n("backgroundColor.default"),";&>div{",l,";}div[parenttype='Menu']{display:flex;flex-direction:row;gap:",H.rem(12),";}padding:",i,";min-height:",a,";display:flex;flex-direction:row;&:hover{background-color:",r?void 0:n("backgroundColor.active"),";cursor:",r?"initial":"pointer",";}span[role='presentation']{align-items:center;",l,";font-weight:",o.globals.typography.fontWeight.get("bold"),";}&[role='option']{gap:",H.rem(12),";}&[data-focus-visible]{background-color:",n("backgroundColor.active"),";}&[aria-selected='true']{background-color:",n("backgroundColor.active"),";&>div{color:",n("textColor.active"),";",t?gu(o):zo(o),";}&[data-focus-visible]{background-color:",n("backgroundColor.active"),";}}opacity:",r?"0.5":"1",";cursor:",r?"not-allowed":"initial",";","")},""),TF=xe(Je.Menu,{target:"e73b2cc0"})(({theme:e})=>{const t=Y9(e);return E.css("background-color:",t("backgroundColor"),";border-color:",t("borderColor"),";border-radius:",t("borderRadius"),";box-shadow:",t("boxShadow"),";border-width:",t("borderWidth"),";","")},""),kF=({sx:e})=>{const t=z();return u.jsx(Je.Separator,{css:[E.css("height:",H.rem(1),";border-color:",t.tokens.colors.get("borderColor.decorative.default"),";width:100%;margin:auto;border-bottom-width:",H.rem(1),";border-bottom-style:solid;",""),e,"",""]})},X9=({selectionMode:e="single",rowSize:t="normal",children:r,onSelectionChange:o=()=>{},disabledKeys:n=new Set,selectedKeys:a=new Set,triggerRef:i=null,isOpen:l=!1,onClose:s=()=>{},onAction:c=()=>{},dataTestId:d})=>{const p=t==="compact";return u.jsx(Je.MenuTrigger,{isOpen:l,onOpenChange:s,children:u.jsx(Je.Popover,{triggerRef:i,css:xF,children:u.jsx(TF,{selectionMode:e,selectedKeys:a,disabledKeys:n,onSelectionChange:o,css:M9({}),"data-testid":d,onAction:c,children:g.Children.map(r,f=>{const{key:v=""}=f;return f.type===kF?f:u.jsx($F,{isCompact:p,rowSize:t,isDisabled:n.has(v),id:v,children:f},v)})})})})},PF=e=>E.css("position:fixed;z-index:3000;width:100vw;height:100vh;top:0;left:0;background-color:",e.tokens.colors.get("backdrop.default"),";display:flex;justify-content:center;align-items:center;",""),_F=E.css("max-width:",R(500),";max-height:",R(684),";",""),AF=({isContentPadded:e})=>t=>E.css("display:flex;flex-direction:row;flex-wrap:wrap;padding:",e?`${t.globals.spacing.get("8")} ${t.globals.spacing.get("9")} ${t.globals.spacing.get("9")} ${t.globals.spacing.get("9")}`:void 0,";",""),MF=e=>E.css("width:100%;display:flex;justify-content:flex-end;padding:",e.globals.spacing.get("4")," ",e.globals.spacing.get("4")," 0 0;box-sizing:border-box;",""),LF=e=>E.css("width:100%;height:100%;display:flex;flex-direction:column;flex-wrap:wrap;text-align:left;color:",e.tokens.colors.get("textColor.default.primary"),";font-weight:",e.globals.typography.fontWeight.get("regular"),";",""),OF=e=>E.css("font-size:",e.globals.typography.fontSize.get("3"),";margin:0 0 ",e.globals.spacing.get("3")," 0;",""),IF=e=>E.css("font-size:",e.globals.typography.fontSize.get("9"),";color:",e.tokens.colors.get("textColor.default.primary"),";font-weight:",e.globals.typography.fontWeight.get("medium"),";margin:0 0 ",e.globals.spacing.get("9")," 0;",""),BF=e=>E.css("font-size:",e.globals.typography.fontSize.get("4"),";color:",e.tokens.colors.get("textColor.default.secondary"),";max-height:",R(430),";overflow-y:hidden;margin:0;",""),RF=e=>E.css("width:100%;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-end;margin:",e.globals.spacing.get("9")," 0 0 0;button{margin-left:",e.globals.spacing.get("6"),";}",""),DF=({label:e,heading:t,message:r,primaryCTA:o,primaryCTALabel:n,secondaryCTA:a,secondaryCTALabel:i,dataTestId:l})=>u.jsxs("div",{role:"dialog",css:LF,"data-testid":X("modal-content",l),children:[!!e&&u.jsx("p",{css:OF,children:e}),u.jsx("h5",{css:IF,"data-testid":X("modal-content-header",l),children:t}),u.jsx("p",{css:BF,"data-testid":X("modal-content-message",l),children:r}),u.jsxs("div",{css:RF,children:[!!(a&&i)&&u.jsx(ze,{onClick:a,type:"tertiary",dataTestId:"modal-content-secondaryCTA",children:i}),!!(o&&n)&&u.jsx(ze,{onClick:o,dataTestId:"modal-content-primaryCTA",children:n})]})]}),cl=e=>{h.useEffect(()=>{const t=r=>{r.key==="Escape"&&e()};return window.addEventListener("keydown",t),()=>{window.removeEventListener("keydown",t)}},[e])},FF=({isOpen:e=!1,onClose:t,dataTestId:r,children:o,contentProps:n,isContentPadded:a=!0})=>{cl(()=>{t()});const i=z();return h.useEffect(()=>(e&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="unset"}),[e]),e?u.jsx("div",{css:PF,"data-testid":X("modal-container",r),children:u.jsx(Zt,{onClick:t,children:u.jsx("div",{css:_F,children:u.jsxs(P2,{elevated:"02",radius:"3",children:[u.jsx("div",{css:MF,children:u.jsx(vt,{type:"tertiary",name:"close",onClick:t,color:i.tokens.colors.get("textColor.default.secondary"),dataTestId:"modal-close"})}),u.jsx("div",{css:AF({isContentPadded:a}),children:n?u.jsx(DF,{...n}):o})]})})})}):null},ht=e=>e==="info"?"active":e,J9=e=>e==="info"?"primaryAlt":e,qF=(e,t,r)=>E.css("border:",r.globals.borderWidth.get("2")," solid ",r.tokens.colors.get(`borderColor.interactive.${ht(e)}`),";&[notification-type='banner']{box-shadow:",r.globals.elevation["02"],";}",t==="outlined"?`
|
|
121
|
+
}`,";","")},RR=({day:e,month:t,year:r,onSelect:o,isSelected:n=!1,isBetween:a=!1,isLast:i=!1,isFirst:l=!1,isDisabled:s=!1,tabIndex:c})=>{const d=h.useMemo(()=>e&&te.month(t).date(e).year(r),[r,e,t]),p=h.useMemo(()=>te.month()===t&&te.year()===r&&te.date()===e,[r,t,e]),f=h.useCallback(y=>{y.preventDefault(),o&&d&&o(d)},[o,d]),{keyboardProps:v}=tr({events:{keydown:{onEnter:y=>{s||f(y)}}},hasPropagation:!0});return e?u.jsx("td",{style:{padding:0},onClick:s?void 0:f,children:u.jsx("div",{css:OR({isSelected:n,isBetween:a,isLast:i,isFirst:l,isToday:p,isDisabled:s}),tabIndex:c,"data-testid":`${e}_${t+1}_${r}${n?"_selected":""}`,...v,children:u.jsx("div",{css:BR({isSelected:n,isBetween:a,isLast:i,isFirst:l,isToday:p,isDisabled:s}),children:e})})}):u.jsx("td",{css:IR({isBetween:a})})},DR=h.memo(RR);le.extend(G8);const FR=["Monday","Tuesday","Wednesday","Thurdsday","Friday","Saturday","Sunday"],qR=({year:e,month:t,onDaySelect:r,selectedDays:o,disabledDates:n,isFirstCalendar:a})=>{const i=g.useMemo(()=>{const m=te.month(t).year(e).date(1),w=m.daysInMonth(),b=m.day()||7,$=7,P=LR(e,t),I=Array(P*$).fill(null).reduce((x,O,C)=>{const B=C+1,_=X8(B,b,w+b)?B-b+1:void 0;return[...x,_]},[]);return Y8(I,$)},[e,t]),l=h.useCallback(MR,[]),s=h.useCallback(PR,[]),c=h.useCallback(_R,[]),d=h.useCallback(AR,[]),{focusedDay:p,setFocusedDay:f,calendarRef:v,keyboardProps:y}=ER({selectedDays:o,isFirstCalendar:a,month:t,year:e});return u.jsxs(g.Fragment,{children:[u.jsx("div",{css:$R(),children:FR.map(m=>u.jsx("div",{css:TR(),children:m.substr(0,2)},m))}),u.jsx("table",{css:kR(),ref:v,tabIndex:0,"data-testid":"calendar_table",...y,onFocus:()=>{p===0&&f(1)},children:u.jsx("tbody",{children:i.map((m,w)=>u.jsx("tr",{children:m.map((b,$)=>u.jsx(DR,{tabIndex:p===b?0:-1,year:e,month:t,day:b,onSelect:r,isDisabled:!!s(b,t,e,n),isSelected:!!l(b,t,e,o.from,o.to),isBetween:!!c(b,t,e,o.from,o.to),isLast:!!d(b,"last",t,e,o.from,o.to),isFirst:!!d(b,"first",t,e,o.from,o.to)},`${e}-${t}-${w}-${$}-day`))},`${e}-${t}-${w}-week`))})})]})},HR=g.memo(qR),i9=h.forwardRef((e,t)=>{const{iconName:r,size:o="normal",type:n="primary",shape:a="circle",dataTestPrefixId:i}=e,l=z(),s=on(l),c=s(`${n}.textColor`);return u.jsx(T2,{...e,ref:t,isIconButton:!0,shape:a,dataTestPrefixId:i?`${i}-icon-`:"icon-",children:u.jsx(U,{size:s(`${o}.iconSize`),name:r,color:c})})});i9.displayName="IconButton";const vt=i9,NR={iconColor:{type:"color",value:"{sem.colors.textColor.default.secondary}",description:"Sets color for list item icons"},iconSize:{value:"{sem.icon.size.3}",type:"sizing",description:"Sets fixed size for list item icon"},height:{value:"{sizing.13}",type:"sizing",description:"Sets fixed height for all list items"},heightCompact:{value:"{sizing.10}",type:"sizing",description:"Sets fixed height for _block pagination list item"},padding:{value:"{spacing.5}",type:"spacing",description:"sets padding between avatar and list item text"},paddingHorizontal:{value:"{spacing.5}",type:"spacing",description:"Left and right padding for list items"},backgroundColor:{default:{value:"{sem.colors.palette.tertiary.base}",type:"color",description:"Sets backgroundColor for default list item"},active:{type:"color",value:"{sem.colors.palette.tertiary.muted}",description:"Sets backgroundColor for active list item"}},textColor:{default:{type:"color",value:"{sem.colors.textColor.default.primary}",description:"Sets textColor for primary list item copy"},secondary:{type:"color",value:"{sem.colors.textColor.default.secondary}",description:"Sets textColor for secondary list item copy and content variants (e.g. loading, no results)"},active:{type:"color",value:"{sem.colors.textColor.default.active}",description:"Sets textColor for active list item copy"}},default:{value:"{sem.typography.normal.body02}",type:"typography",description:"Sets text style for default list item ('normal' size variant)"},defaultCompact:{value:"{sem.typography.normal.body03}",type:"typography",description:"Sets text style for default list item ('compact' size variant)"},active:{value:"{sem.typography.normal.label02}",type:"typography",description:"Sets text style for active list item ('normal' size variant)"},activeCompact:{value:"{sem.typography.normal.label03}",type:"typography",description:"Sets text style for active list item ('compact' size variant)"},secondaryText:{value:"{sem.typography.normal.body03}",type:"typography",description:"Sets text style for secondary copy ('help text') in list items, if shown"}},l9={backgroundColor:{value:"{sem.colors.backgroundColor.default}",type:"color",description:"Background color for menu container"},borderColor:{value:"{sem.colors.borderColor.decorative.default}",type:"color",description:"Border color for menu container"},borderRadius:{value:"{borderRadius.2}",type:"borderRadius",description:"Applies to menu container"},boxShadow:{value:"{sem.boxShadow.2}",type:"boxShadow",description:"Applies to menu container"},borderWidth:{value:"{borderWidth.1}",type:"borderWidth",description:"Sets borderWidth for menu"}},s9=e=>se(l9,e),yr=e=>se(NR,e),c9=({isSelected:e,hasNoResultsExist:t})=>r=>{const o=yr(r);return E.css("padding:",r.globals.spacing.get("6"),";font-size:",r.globals.typography.fontSize.get("4"),";background-color:",e?H.darken(.07,r.globals.oldColors.white):r.globals.oldColors.white,";cursor:default;color:",t?o("textColor.secondary"):"initial",";text-align:",t?"center":"initial",";text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;&:hover{background-color:",H.darken(.03,r.globals.oldColors.white),";}","")},zR=({status:e,isVirtualized:t,height:r,sx:o})=>n=>E.css("background-color:",n.globals.oldColors.white,";border-radius:4px;box-shadow:",n.globals.elevation["02"],";top:",(e==null?void 0:e.type)!=="normal"?"70%":"110%",";z-index:500;position:absolute;max-height:",R(r),";overflow-y:",t?"hidden":"auto",";min-width:100%;max-width:",R(620),";",o,";","");function Cu(e){if(jl()==="virtual"){let t=document.activeElement;K2(()=>{document.activeElement===t&&document.contains(e)&&rt(e)})}else rt(e)}function VR(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return!1;let{display:t,visibility:r}=e.style,o=t!=="none"&&r!=="hidden"&&r!=="collapse";if(o){const{getComputedStyle:n}=e.ownerDocument.defaultView;let{display:a,visibility:i}=n(e);o=a!=="none"&&i!=="hidden"&&i!=="collapse"}return o}function WR(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function u9(e,t){return e.nodeName!=="#comment"&&VR(e)&&WR(e,t)&&(!e.parentElement||u9(e.parentElement,e))}const bu=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],UR=bu.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";bu.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const jR=bu.join(':not([hidden]):not([tabindex="-1"]),');function d9(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function KR(e,t,r){let o=t!=null&&t.tabbable?jR:UR,n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var i;return!(t==null||(i=t.from)===null||i===void 0)&&i.contains(a)?NodeFilter.FILTER_REJECT:a.matches(o)&&u9(a)&&(!r||d9(a,r))&&(!(t!=null&&t.accept)||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(n.currentNode=t.from),n}class yu{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,o){let n=this.fastMap.get(r??null);if(!n)return;let a=new f9({scopeRef:t});n.addChild(a),a.parent=n,this.fastMap.set(t,a),o&&(a.nodeToRestore=o)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let o=r.parent;for(let a of this.traverse())a!==r&&r.nodeToRestore&&a.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&d9(a.nodeToRestore,r.scopeRef.current)&&(a.nodeToRestore=r.nodeToRestore);let n=r.children;o&&(o.removeChild(r),n.size>0&&n.forEach(a=>o&&o.addChild(a))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var t;let r=new yu;var o;for(let n of this.traverse())r.addTreeNode(n.scopeRef,(o=(t=n.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&o!==void 0?o:null,n.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new f9({scopeRef:null}),this.fastMap.set(null,this.root)}}class f9{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}new yu;function ZR(e={}){let{autoFocus:t=!1,isTextInput:r,within:o}=e,n=h.useRef({isFocused:!1,isFocusVisible:t||gn()}),[a,i]=h.useState(!1),[l,s]=h.useState(()=>n.current.isFocused&&n.current.isFocusVisible),c=h.useCallback(()=>s(n.current.isFocused&&n.current.isFocusVisible),[]),d=h.useCallback(v=>{n.current.isFocused=v,i(v),c()},[c]);Mv(v=>{n.current.isFocusVisible=v,c()},[],{isTextInput:r});let{focusProps:p}=Ev({isDisabled:o,onFocusChange:d}),{focusWithinProps:f}=dd({isDisabled:!o,onFocusWithinChange:d});return{isFocused:a,isFocusVisible:l,focusProps:o?f:p}}function GR(e){let{id:t,label:r,"aria-labelledby":o,"aria-label":n,labelElementType:a="label"}=e;t=uo(t);let i=uo(),l={};r?(o=o?`${i} ${o}`:i,l={id:i,htmlFor:a==="label"?t:void 0}):!o&&!n&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let s=iv({id:t,"aria-label":n,"aria-labelledby":o});return{labelProps:l,fieldProps:s}}const YR=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),XR=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function JR(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize().script;return r?YR.has(r):!1}let t=e.split("-")[0];return XR.has(t)}function p9(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:JR(e)?"rtl":"ltr"}}let mu=p9(),Uo=new Set;function g9(){mu=p9();for(let e of Uo)e(mu)}function QR(){let e=F2(),[t,r]=h.useState(mu);return h.useEffect(()=>(Uo.size===0&&window.addEventListener("languagechange",g9),Uo.add(r),()=>{Uo.delete(r),Uo.size===0&&window.removeEventListener("languagechange",g9)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const eD=h.createContext(null);function v9(){let e=QR();return h.useContext(eD)||e}let wu=new Map;function tD(e){let{locale:t}=v9(),r=t+(e?Object.entries(e).sort((n,a)=>n[0]<a[0]?-1:1).join():"");if(wu.has(r))return wu.get(r);let o=new Intl.Collator(t,e);return wu.set(r,o),o}function Su(e){return ev()?e.altKey:e.ctrlKey}function no(e){return mt()?e.metaKey:e.ctrlKey}const rD=1e3;function oD(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:o}=e,n=h.useRef({search:"",timeout:null}).current,a=i=>{let l=nD(i.key);if(!l||i.ctrlKey||i.metaKey||!i.currentTarget.contains(i.target))return;l===" "&&n.search.trim().length>0&&(i.preventDefault(),"continuePropagation"in i||i.stopPropagation()),n.search+=l;let s=t.getKeyForSearch(n.search,r.focusedKey);s==null&&(s=t.getKeyForSearch(n.search)),s!=null&&(r.setFocusedKey(s),o&&o(s)),clearTimeout(n.timeout),n.timeout=setTimeout(()=>{n.search=""},rD)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:null}}}function nD(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function aD(e){let{selectionManager:t,keyboardDelegate:r,ref:o,autoFocus:n=!1,shouldFocusWrap:a=!1,disallowEmptySelection:i=!1,disallowSelectAll:l=!1,selectOnFocus:s=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:d,allowsTabNavigation:p=!1,isVirtualized:f,scrollRef:v=o,linkBehavior:y="action"}=e,{direction:m}=v9(),w=U2(),b=_=>{if(_.altKey&&_.key==="Tab"&&_.preventDefault(),!o.current.contains(_.target))return;const A=(N,we)=>{if(N!=null){if(t.isLink(N)&&y==="selection"&&s&&!Su(_)){gl.flushSync(()=>{t.setFocusedKey(N,we)});let Ae=v.current.querySelector(`[data-key="${N}"]`);w.open(Ae,_);return}if(t.setFocusedKey(N,we),t.isLink(N)&&y==="override")return;_.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(N):s&&!Su(_)&&t.replaceSelection(N)}};switch(_.key){case"ArrowDown":if(r.getKeyBelow){var M,S;_.preventDefault();let N=t.focusedKey!=null?r.getKeyBelow(t.focusedKey):(M=r.getFirstKey)===null||M===void 0?void 0:M.call(r);N==null&&a&&(N=(S=r.getFirstKey)===null||S===void 0?void 0:S.call(r,t.focusedKey)),A(N)}break;case"ArrowUp":if(r.getKeyAbove){var k,q;_.preventDefault();let N=t.focusedKey!=null?r.getKeyAbove(t.focusedKey):(k=r.getLastKey)===null||k===void 0?void 0:k.call(r);N==null&&a&&(N=(q=r.getLastKey)===null||q===void 0?void 0:q.call(r,t.focusedKey)),A(N)}break;case"ArrowLeft":if(r.getKeyLeftOf){var K,F;_.preventDefault();let N=r.getKeyLeftOf(t.focusedKey);N==null&&a&&(N=m==="rtl"?(K=r.getFirstKey)===null||K===void 0?void 0:K.call(r,t.focusedKey):(F=r.getLastKey)===null||F===void 0?void 0:F.call(r,t.focusedKey)),A(N,m==="rtl"?"first":"last")}break;case"ArrowRight":if(r.getKeyRightOf){var me,Ne;_.preventDefault();let N=r.getKeyRightOf(t.focusedKey);N==null&&a&&(N=m==="rtl"?(me=r.getLastKey)===null||me===void 0?void 0:me.call(r,t.focusedKey):(Ne=r.getFirstKey)===null||Ne===void 0?void 0:Ne.call(r,t.focusedKey)),A(N,m==="rtl"?"last":"first")}break;case"Home":if(r.getFirstKey){_.preventDefault();let N=r.getFirstKey(t.focusedKey,no(_));t.setFocusedKey(N),no(_)&&_.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(N):s&&t.replaceSelection(N)}break;case"End":if(r.getLastKey){_.preventDefault();let N=r.getLastKey(t.focusedKey,no(_));t.setFocusedKey(N),no(_)&&_.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(N):s&&t.replaceSelection(N)}break;case"PageDown":if(r.getKeyPageBelow){_.preventDefault();let N=r.getKeyPageBelow(t.focusedKey);A(N)}break;case"PageUp":if(r.getKeyPageAbove){_.preventDefault();let N=r.getKeyPageAbove(t.focusedKey);A(N)}break;case"a":no(_)&&t.selectionMode==="multiple"&&l!==!0&&(_.preventDefault(),t.selectAll());break;case"Escape":_.preventDefault(),i||t.clearSelection();break;case"Tab":if(!p){if(_.shiftKey)o.current.focus();else{let N=KR(o.current,{tabbable:!0}),we,Ae;do Ae=N.lastChild(),Ae&&(we=Ae);while(Ae);we&&!we.contains(document.activeElement)&&rt(we)}break}}},$=h.useRef({top:0,left:0});uv(v,"scroll",f?null:()=>{$.current={top:v.current.scrollTop,left:v.current.scrollLeft}});let P=_=>{if(t.isFocused){_.currentTarget.contains(_.target)||t.setFocused(!1);return}if(_.currentTarget.contains(_.target)){if(t.setFocused(!0),t.focusedKey==null){let S=q=>{q!=null&&(t.setFocusedKey(q),s&&t.replaceSelection(q))},k=_.relatedTarget;var A,M;k&&_.currentTarget.compareDocumentPosition(k)&Node.DOCUMENT_POSITION_FOLLOWING?S((A=t.lastSelectedKey)!==null&&A!==void 0?A:r.getLastKey()):S((M=t.firstSelectedKey)!==null&&M!==void 0?M:r.getFirstKey())}else f||(v.current.scrollTop=$.current.top,v.current.scrollLeft=$.current.left);if(!f&&t.focusedKey!=null){let S=v.current.querySelector(`[data-key="${t.focusedKey}"]`);S&&(S.contains(document.activeElement)||rt(S),jl()==="keyboard"&&J2(S,{containingElement:o.current}))}}},L=_=>{_.currentTarget.contains(_.relatedTarget)||t.setFocused(!1)};const I=h.useRef(n);h.useEffect(()=>{if(I.current){let _=null;n==="first"&&(_=r.getFirstKey()),n==="last"&&(_=r.getLastKey());let A=t.selectedKeys;A.size&&(_=A.values().next().value),t.setFocused(!0),t.setFocusedKey(_),_==null&&!d&&Cu(o.current)}I.current=!1},[]);let x=h.useRef(t.focusedKey);h.useEffect(()=>{let _=jl();if(t.isFocused&&t.focusedKey!=null&&(v!=null&&v.current)){let A=v.current.querySelector(`[data-key="${t.focusedKey}"]`);A&&_==="keyboard"&&(f||Y2(v.current,A),J2(A,{containingElement:o.current}))}t.isFocused&&t.focusedKey==null&&x.current!=null&&Cu(o.current),x.current=t.focusedKey},[f,v,t.focusedKey,t.isFocused,o]);let O={onKeyDown:b,onFocus:P,onBlur:L,onMouseDown(_){v.current===_.target&&_.preventDefault()}},{typeSelectProps:C}=oD({keyboardDelegate:r,selectionManager:t});c||(O=tt(C,O));let B;return d||(B=t.focusedKey==null?0:-1),{collectionProps:{...O,tabIndex:B}}}function iD(e){let{selectionManager:t,key:r,ref:o,shouldSelectOnPressUp:n,shouldUseVirtualFocus:a,focus:i,isDisabled:l,onAction:s,allowsDifferentPressOrigin:c,linkBehavior:d="action"}=e,p=U2(),f=F=>{if(F.pointerType==="keyboard"&&Su(F))t.toggleSelection(r);else{if(t.selectionMode==="none")return;if(t.isLink(r)){if(d==="selection"){p.open(o.current,F),t.setSelectedKeys(t.selectedKeys);return}else if(d==="override"||d==="none")return}t.selectionMode==="single"?t.isSelected(r)&&!t.disallowEmptySelection?t.toggleSelection(r):t.replaceSelection(r):F&&F.shiftKey?t.extendSelection(r):t.selectionBehavior==="toggle"||F&&(no(F)||F.pointerType==="touch"||F.pointerType==="virtual")?t.toggleSelection(r):t.replaceSelection(r)}};h.useEffect(()=>{r===t.focusedKey&&t.isFocused&&!a&&(i?i():document.activeElement!==o.current&&Cu(o.current))},[o,r,t.focusedKey,t.childFocusStrategy,t.isFocused,a]),l=l||t.isDisabled(r);let v={};!a&&!l?v={tabIndex:r===t.focusedKey?0:-1,onFocus(F){F.target===o.current&&t.setFocusedKey(r)}}:l&&(v.onMouseDown=F=>{F.preventDefault()});let y=t.isLink(r)&&d==="override",m=t.isLink(r)&&d!=="selection"&&d!=="none",w=!l&&t.canSelectItem(r)&&!y,b=(s||m)&&!l,$=b&&(t.selectionBehavior==="replace"?!w:!w||t.isEmpty),P=b&&w&&t.selectionBehavior==="replace",L=$||P,I=h.useRef(null),x=L&&w,O=h.useRef(!1),C=h.useRef(!1),B=F=>{s&&s(),m&&p.open(o.current,F)},_={};n?(_.onPressStart=F=>{I.current=F.pointerType,O.current=x,F.pointerType==="keyboard"&&(!L||C9())&&f(F)},c?(_.onPressUp=$?null:F=>{F.pointerType!=="keyboard"&&w&&f(F)},_.onPress=$?B:null):_.onPress=F=>{if($||P&&F.pointerType!=="mouse"){if(F.pointerType==="keyboard"&&!h9())return;B(F)}else F.pointerType!=="keyboard"&&w&&f(F)}):(_.onPressStart=F=>{I.current=F.pointerType,O.current=x,C.current=$,w&&(F.pointerType==="mouse"&&!$||F.pointerType==="keyboard"&&(!b||C9()))&&f(F)},_.onPress=F=>{(F.pointerType==="touch"||F.pointerType==="pen"||F.pointerType==="virtual"||F.pointerType==="keyboard"&&L&&h9()||F.pointerType==="mouse"&&C.current)&&(L?B(F):w&&f(F))}),v["data-key"]=r,_.preventFocusOnPress=a;let{pressProps:A,isPressed:M}=nd(_),S=P?F=>{I.current==="mouse"&&(F.stopPropagation(),F.preventDefault(),B(F))}:void 0,{longPressProps:k}=Rv({isDisabled:!x,onLongPress(F){F.pointerType==="touch"&&(f(F),t.setSelectionBehavior("toggle"))}}),q=F=>{I.current==="touch"&&O.current&&F.preventDefault()},K=t.isLink(r)?F=>{Jt.isOpening||F.preventDefault()}:void 0;return{itemProps:tt(v,w||$?A:{},x?k:{},{onDoubleClick:S,onDragStartCapture:q,onClick:K}),isPressed:M,isSelected:t.isSelected(r),isFocused:t.isFocused&&t.focusedKey===r,isDisabled:l,allowsSelection:w,hasAction:L}}function h9(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function C9(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class lD{getNextKey(t){for(t=this.collection.getKeyAfter(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getPreviousKey(t){for(t=this.collection.getKeyBefore(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}findKey(t,r,o){let n=this.getItem(t);if(!n)return null;let a=n.getBoundingClientRect();do t=r(t),n=this.getItem(t);while(n&&o(a,n.getBoundingClientRect()));return t}isSameRow(t,r){return t.top===r.top||t.left!==r.left}isSameColumn(t,r){return t.left===r.left||t.top!==r.top}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getNextKey(r),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getPreviousKey(r),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,r){return r?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();for(;t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getLastKey(){let t=this.collection.getLastKey();for(;t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}getItem(t){return this.ref.current.querySelector(`[data-key="${t}"]`)}getKeyPageAbove(t){let r=this.ref.current,o=this.getItem(t);if(!o)return null;if(!cn(r))return this.getFirstKey();let n=r.getBoundingClientRect(),a=o.getBoundingClientRect();if(this.orientation==="horizontal"){let i=n.x-r.scrollLeft,l=Math.max(0,a.x-i+a.width-n.width);for(;o&&a.x-i>l;)t=this.getKeyAbove(t),o=t==null?null:this.getItem(t),a=o==null?void 0:o.getBoundingClientRect()}else{let i=n.y-r.scrollTop,l=Math.max(0,a.y-i+a.height-n.height);for(;o&&a.y-i>l;)t=this.getKeyAbove(t),o=t==null?null:this.getItem(t),a=o==null?void 0:o.getBoundingClientRect()}return t??this.getFirstKey()}getKeyPageBelow(t){let r=this.ref.current,o=this.getItem(t);if(!o)return null;if(!cn(r))return this.getLastKey();let n=r.getBoundingClientRect(),a=o.getBoundingClientRect();if(this.orientation==="horizontal"){let i=n.x-r.scrollLeft,l=Math.min(r.scrollWidth,a.x-i-a.width+n.width);for(;o&&a.x-i<l;)t=this.getKeyBelow(t),o=t==null?null:this.getItem(t),a=o==null?void 0:o.getBoundingClientRect()}else{let i=n.y-r.scrollTop,l=Math.min(r.scrollHeight,a.y-i-a.height+n.height);for(;o&&a.y-i<l;)t=this.getKeyBelow(t),o=t==null?null:this.getItem(t),a=o==null?void 0:o.getBoundingClientRect()}return t??this.getLastKey()}getKeyForSearch(t,r){if(!this.collator)return null;let o=this.collection,n=r||this.getFirstKey();for(;n!=null;){let a=o.getItem(n),i=a.textValue.slice(0,t.length);if(a.textValue&&this.collator.compare(i,t)===0)return n;n=this.getKeyBelow(n)}return null}constructor(...t){if(t.length===1){let r=t[0];this.collection=r.collection,this.ref=r.ref,this.collator=r.collator,this.disabledKeys=r.disabledKeys||new Set,this.orientation=r.orientation,this.direction=r.direction,this.layout=r.layout||"stack"}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical";this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function sD(e){let{selectionManager:t,collection:r,disabledKeys:o,ref:n,keyboardDelegate:a}=e,i=tD({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,s=h.useMemo(()=>a||new lD(r,l==="selection"?new Set:o,n,i),[a,r,o,n,i,l]),{collectionProps:c}=aD({...e,ref:n,selectionManager:t,keyboardDelegate:s});return{listProps:c}}function b9(e){return null}b9.getCollectionNode=function*(t,r){let{childItems:o,title:n,children:a}=t,i=t.title||t.children,l=t.textValue||(typeof i=="string"?i:"")||t["aria-label"]||"";!l&&!(r!=null&&r.suppressTextValueWarning)&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:i,textValue:l,"aria-label":t["aria-label"],hasChildNodes:cD(t),*childNodes(){if(o)for(let s of o)yield{type:"item",value:s};else if(n){let s=[];h.Children.forEach(a,c=>{s.push({type:"item",element:c})}),yield*s}}}};function cD(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&h.Children.count(e.children)>0)}let y9=b9;function m9(e){return null}m9.getCollectionNode=function*(t){let{children:r,title:o,items:n}=t;yield{type:"section",props:t,hasChildNodes:!0,rendered:o,"aria-label":t["aria-label"],*childNodes(){if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");for(let a of n)yield{type:"item",value:a,renderer:r}}else{let a=[];h.Children.forEach(r,i=>{a.push({type:"item",element:i})}),yield*a}}}};let w9=m9;class uD{build(t,r){return this.context=r,S9(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:r,items:o}=t;if(typeof r=="function"){if(!o)throw new Error("props.children was a function but props.items is missing");for(let n of t.items)yield*this.getFullNode({value:n},{renderer:r})}else{let n=[];h.Children.forEach(r,i=>{n.push(i)});let a=0;for(let i of n){let l=this.getFullNode({element:i,index:a},{});for(let s of l)a++,yield s}}}getKey(t,r,o,n){if(t.key!=null)return t.key;if(r.type==="cell"&&r.key!=null)return`${n}${r.key}`;let a=r.value;if(a!=null){var i;let l=(i=a.key)!==null&&i!==void 0?i:a.id;if(l==null)throw new Error("No key found for item");return l}return n?`${n}.${r.index}`:`$.${r.index}`}getChildState(t,r){return{renderer:r.renderer||t.renderer}}*getFullNode(t,r,o,n){let a=t.element;if(!a&&t.value&&r&&r.renderer){let s=this.cache.get(t.value);if(s&&(!s.shouldInvalidate||!s.shouldInvalidate(this.context))){s.index=t.index,s.parentKey=n?n.key:null,yield s;return}a=r.renderer(t.value)}if(h.isValidElement(a)){let s=a.type;if(typeof s!="function"&&typeof s.getCollectionNode!="function"){let f=typeof a.type=="function"?a.type.name:a.type;throw new Error(`Unknown element <${f}> in collection.`)}let c=s.getCollectionNode(a.props,this.context),d=t.index,p=c.next();for(;!p.done&&p.value;){let f=p.value;t.index=d;let v=f.key;v||(v=f.element?null:this.getKey(a,t,r,o));let m=[...this.getFullNode({...f,key:v,index:d,wrapper:dD(t.wrapper,f.wrapper)},this.getChildState(r,f),o?`${o}${a.key}`:a.key,n)];for(let w of m){if(w.value=f.value||t.value,w.value&&this.cache.set(w.value,w),t.type&&w.type!==t.type)throw new Error(`Unsupported type <${Eu(w.type)}> in <${Eu(n.type)}>. Only <${Eu(t.type)}> is supported.`);d++,yield w}p=c.next(m)}return}if(t.key==null)return;let i=this,l={type:t.type,props:t.props,key:t.key,parentKey:n?n.key:null,value:t.value,level:n?n.level+1:0,index:t.index,rendered:t.rendered,textValue:t.textValue,"aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes,childNodes:S9(function*(){if(!t.hasChildNodes)return;let s=0;for(let c of t.childNodes()){c.key!=null&&(c.key=`${l.key}${c.key}`),c.index=s;let d=i.getFullNode(c,i.getChildState(r,c),l.key,l);for(let p of d)s++,yield p}})};yield l}constructor(){this.cache=new WeakMap}}function S9(e){let t=[],r=null;return{*[Symbol.iterator](){for(let o of t)yield o;r||(r=e());for(let o of r)t.push(o),yield o}}}function dD(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function Eu(e){return e[0].toUpperCase()+e.slice(1)}function fD(e,t,r){let o=h.useMemo(()=>new uD,[]),{children:n,items:a,collection:i}=e;return h.useMemo(()=>{if(i)return i;let s=o.build({children:n,items:a},r);return t(s)},[o,n,a,i,r,t])}function E9(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function pD(e){return gD(e,0)}function gD(e,t){if(t<0)return;let r=0;for(let o of e){if(r===t)return o;r++}}function xu(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let o=[...x9(e,t),t],n=[...x9(e,r),r],a=o.slice(0,n.length).findIndex((i,l)=>i!==n[l]);return a!==-1?(t=o[a],r=n[a],t.index-r.index):o.findIndex(i=>i===r)>=0?1:(n.findIndex(i=>i===t)>=0,-1)}function x9(e,t){let r=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),r.unshift(t);return r}const $9=new WeakMap;function vD(e){let t=$9.get(e);if(t!=null)return t;t=0;let r=o=>{for(let n of o)n.type==="section"?r(E9(n,e)):t++};return r(e),$9.set(e,t),t}const $u=new WeakMap;function hD(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function CD(e,t){let r=$u.get(e);if(!r)throw new Error("Unknown list");return`${r.id}-option-${hD(t)}`}function bD(e,t,r){let o=N2(e,{labelable:!0}),n=e.selectionBehavior||"toggle",a=e.linkBehavior||(n==="replace"?"action":"override");n==="toggle"&&a==="action"&&(a="override");let{listProps:i}=sD({...e,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:a}),{focusWithinProps:l}=dd({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),s=uo(e.id);$u.set(t,{id:s,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:a});let{labelProps:c,fieldProps:d}=GR({...e,id:s,labelElementType:"span"});return{labelProps:c,listBoxProps:tt(o,l,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...tt(d,i)})}}function yD(e,t,r){var o;let{key:n}=e,a=$u.get(t);var i;let l=(i=e.isDisabled)!==null&&i!==void 0?i:t.disabledKeys.has(n);var s;let c=(s=e.isSelected)!==null&&s!==void 0?s:t.selectionManager.isSelected(n);var d;let p=(d=e.shouldSelectOnPressUp)!==null&&d!==void 0?d:a==null?void 0:a.shouldSelectOnPressUp;var f;let v=(f=e.shouldFocusOnHover)!==null&&f!==void 0?f:a==null?void 0:a.shouldFocusOnHover;var y;let m=(y=e.shouldUseVirtualFocus)!==null&&y!==void 0?y:a==null?void 0:a.shouldUseVirtualFocus;var w;let b=(w=e.isVirtualized)!==null&&w!==void 0?w:a==null?void 0:a.isVirtualized,$=H2(),P=H2(),L={role:"option","aria-disabled":l||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?c:void 0};mt()&&V2()||(L["aria-label"]=e["aria-label"],L["aria-labelledby"]=$,L["aria-describedby"]=P);let I=t.collection.getItem(n);if(b){let S=Number(I==null?void 0:I.index);L["aria-posinset"]=Number.isNaN(S)?void 0:S+1,L["aria-setsize"]=vD(t.collection)}let{itemProps:x,isPressed:O,isFocused:C,hasAction:B,allowsSelection:_}=iD({selectionManager:t.selectionManager,key:n,ref:r,shouldSelectOnPressUp:p,allowsDifferentPressOrigin:p&&v,isVirtualized:b,shouldUseVirtualFocus:m,isDisabled:l,onAction:a!=null&&a.onAction?()=>{var S;return a==null||(S=a.onAction)===null||S===void 0?void 0:S.call(a,n)}:void 0,linkBehavior:a==null?void 0:a.linkBehavior}),{hoverProps:A}=Ov({isDisabled:l||!v,onHoverStart(){gn()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(n))}}),M=N2(I==null?void 0:I.props,{isLink:!!(!(I==null||(o=I.props)===null||o===void 0)&&o.href)});return delete M.id,{optionProps:{...L,...tt(M,x,A),id:CD(t,n)},labelProps:{id:$},descriptionProps:{id:P},isFocused:C,isFocusVisible:C&&gn(),isSelected:c,isDisabled:l,isPressed:O,allowsSelection:_,hasAction:B}}class qe extends Set{constructor(t,r,o){super(t),t instanceof qe?(this.anchorKey=r||t.anchorKey,this.currentKey=o||t.currentKey):(this.anchorKey=r,this.currentKey=o)}}function mD(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function wD(e){let{selectionMode:t="none",disallowEmptySelection:r,allowDuplicateSelectionEvents:o,selectionBehavior:n="toggle",disabledBehavior:a="all"}=e,i=h.useRef(!1),[,l]=h.useState(!1),s=h.useRef(null),c=h.useRef(null),[,d]=h.useState(null),p=h.useMemo(()=>T9(e.selectedKeys),[e.selectedKeys]),f=h.useMemo(()=>T9(e.defaultSelectedKeys,new qe),[e.defaultSelectedKeys]),[v,y]=Mg(p,f,e.onSelectionChange),m=h.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[w,b]=h.useState(n);n==="replace"&&w==="toggle"&&typeof v=="object"&&v.size===0&&b("replace");let $=h.useRef(n);return h.useEffect(()=>{n!==$.current&&(b(n),$.current=n)},[n]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:w,setSelectionBehavior:b,get isFocused(){return i.current},setFocused(P){i.current=P,l(P)},get focusedKey(){return s.current},get childFocusStrategy(){return c.current},setFocusedKey(P,L="first"){s.current=P,c.current=L,d(P)},selectedKeys:v,setSelectedKeys(P){(o||!mD(P,v))&&y(P)},disabledKeys:m,disabledBehavior:a}}function T9(e,t){return e?e==="all"?"all":new qe(e):t}class SD{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){return this.state.selectionMode==="none"?!1:(t=this.getKey(t),this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(o=>r.has(o)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let o=this.collection.getItem(r);(!t||o&&xu(this.collection,o,t)<0)&&(t=o)}return t==null?void 0:t.key}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let o=this.collection.getItem(r);(!t||o&&xu(this.collection,o,t)>0)&&(t=o)}return t==null?void 0:t.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}t=this.getKey(t);let r;if(this.state.selectedKeys==="all")r=new qe([t],t,t);else{let o=this.state.selectedKeys,n=o.anchorKey||t;r=new qe(o,n,t);for(let a of this.getKeyRange(n,o.currentKey||t))r.delete(a);for(let a of this.getKeyRange(t,n))this.canSelectItem(a)&&r.add(a)}this.state.setSelectedKeys(r)}getKeyRange(t,r){let o=this.collection.getItem(t),n=this.collection.getItem(r);return o&&n?xu(this.collection,o,n)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){let o=[],n=t;for(;n;){let a=this.collection.getItem(n);if((a&&a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&o.push(n),n===r)return o;n=this.collection.getKeyAfter(n)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}if(t=this.getKey(t),t==null)return;let r=new qe(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(t)?r.delete(t):this.canSelectItem(t)&&(r.add(t),r.anchorKey=t,r.currentKey=t),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none"||(t=this.getKey(t),t==null))return;let r=this.canSelectItem(t)?new qe([t],t,t):new qe;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new qe;for(let o of t)if(o=this.getKey(o),o!=null&&(r.add(o),this.selectionMode==="single"))break;this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=o=>{for(;o;){if(this.canSelectItem(o)){let n=this.collection.getItem(o);n.type==="item"&&t.push(o),n.hasChildNodes&&(this.allowsCellSelection||n.type!=="item")&&r(pD(E9(n,this.collection)).key)}o=this.collection.getKeyAfter(o)}};return r(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new qe)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let o of t)if(!r.has(o))return!1;for(let o of r)if(!t.has(o))return!1;return!0}canSelectItem(t){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){return this.state.disabledKeys.has(t)&&this.state.disabledBehavior==="all"}isLink(t){var r,o;return!!(!((o=this.collection.getItem(t))===null||o===void 0||(r=o.props)===null||r===void 0)&&r.href)}constructor(t,r,o){this.collection=t,this.state=r;var n;this.allowsCellSelection=(n=o==null?void 0:o.allowsCellSelection)!==null&&n!==void 0?n:!1,this._isSelectAll=null}}class k9{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);return r?r.prevKey:null}getKeyAfter(t){let r=this.keyMap.get(t);return r?r.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){let r=this.keyMap.get(t);return(r==null?void 0:r.childNodes)||[]}constructor(t){this.keyMap=new Map,this.iterable=t;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let i of a.childNodes)r(i)};for(let a of t)r(a);let o,n=0;for(let[a,i]of this.keyMap)o?(o.nextKey=a,i.prevKey=o.key):(this.firstKey=a,i.prevKey=void 0),i.type==="item"&&(i.index=n++),o=i,o.nextKey=void 0;this.lastKey=o==null?void 0:o.key}}function ED(e){let{filter:t}=e,r=wD(e),o=h.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),n=h.useCallback(c=>t?new k9(t(c)):new k9(c),[t]),a=h.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),i=fD(e,n,a),l=h.useMemo(()=>new SD(i,r),[i,r]);const s=h.useRef(null);return h.useEffect(()=>{if(r.focusedKey!=null&&!i.getItem(r.focusedKey)){const c=s.current.getItem(r.focusedKey),d=[...s.current.getKeys()].map(m=>{const w=s.current.getItem(m);return w.type==="item"?w:null}).filter(m=>m!==null),p=[...i.getKeys()].map(m=>{const w=i.getItem(m);return w.type==="item"?w:null}).filter(m=>m!==null),f=d.length-p.length;let v=Math.min(f>1?Math.max(c.index-f+1,0):c.index,p.length-1),y;for(;v>=0;){if(!l.isDisabled(p[v].key)){y=p[v];break}v<p.length-1?v++:(v>c.index&&(v=c.index),v--)}r.setFocusedKey(y?y.key:null)}s.current=i},[i,l,r,r.focusedKey]),{collection:i,disabledKeys:o,selectionManager:l}}const xD=6,P9=5,sl={compact:40,normal:52},_9=xe("li",{target:""})(({rowSize:e="normal",isDisabled:t,theme:r})=>{const o=yr(r),n=e==="compact",a=R(sl[e]),i=E.css("0 ",o("paddingHorizontal"),";",""),l=n?Vo(r):vu(r);return E.css("background-color:",o("backgroundColor.default"),";&>div{",l,";}span[role='presentation']{padding:",i,";min-height:",a,";align-items:center;display:flex;",l,";font-weight:",r.globals.typography.fontWeight.get("bold"),";}&[role='option']{padding:",i,";min-height:",a,";display:flex;flex-direction:row;gap:",R(12),";&:hover{background-color:",t?void 0:o("backgroundColor.active"),";cursor:",t?"initial":"pointer",";}}&[data-focus-visible]{background-color:",o("backgroundColor.active"),";}&[aria-selected='true']{background-color:",o("backgroundColor.active"),";&>div{color:",o("textColor.active"),";",n?gu(r):zo(r),";}&[data-focus-visible]{background-color:",o("backgroundColor.active"),";}}opacity:",t?"0.5":"1",";cursor:",t?"not-allowed":"initial",";","")},""),A9=h.forwardRef(({children:e,rowSize:t,isDisabled:r=!1,isHighlighted:o=!1,searchTerm:n,dataTestId:a,...i},l)=>{var s;return u.jsx(_9,{"data-testid":`ictinus_list_item_${(s=i["data-key"])==null?void 0:s.replace(/ /g,"_")}`,...i,rowSize:t,isDisabled:r,ref:l,children:e})});A9.displayName="ListItem";const $D=A9,TD=({width:e,isSearchable:t})=>r=>{const o=s9(r);return E.css("border:",t?"initial":`${o("borderWidth")} solid ${o("borderColor")}`,";border-radius:",t?"initial":o("borderRadius"),";width:",`${e}px`||"100%",";box-shadow:",o("boxShadow"),";","")},M9=({width:e,height:t,isSearchable:r})=>o=>{const n=s9(o);return E.css("padding-left:0;margin-top:0;margin-bottom:0;border-radius:",r?"initial":n("borderRadius"),";width:",e?R(e):"100%",";height:",t?R(t):"auto",";overflow:auto;overflow-x:hidden;background:",n("backgroundColor"),";","")};var kD={name:"n1lsvi",styles:"padding:0;list-style:none"};const PD=()=>kD,L9=typeof window<"u"?h.useLayoutEffect:h.useEffect;function _D(e,t,r){const o=h.useRef(t);L9(()=>{o.current=t},[t]),h.useEffect(()=>{const n=(r==null?void 0:r.current)||window;if(!(n&&n.addEventListener))return;const a=i=>o.current(i);return n.addEventListener(e,a),()=>{n.removeEventListener(e,a)}},[e,r])}function AD(){const[e,t]=h.useState(null),[r,o]=h.useState({width:0,height:0}),n=h.useCallback(()=>{o({width:(e==null?void 0:e.offsetWidth)||0,height:(e==null?void 0:e.offsetHeight)||0})},[e==null?void 0:e.offsetHeight,e==null?void 0:e.offsetWidth]);return _D("resize",n),L9(()=>{n()},[e==null?void 0:e.offsetHeight,e==null?void 0:e.offsetWidth]),[t,r,e]}const O9=5,I9=h.forwardRef(({rowHeight:e,children:t,gap:r=0,isVirtualizationEnabled:o=!0,...n},a)=>{const[i,{height:l}]=AD(),s=Yt(i,a),[c,d]=h.useState(0),p=h.useMemo(()=>{if(!o)return t.map((m,w)=>h.cloneElement(m,{}));const v=Math.max(Math.floor(c/e)-O9,0),y=Math.min(Math.ceil((c+l)/e-1)+O9,t.length-1);return t.slice(v,y+1).map((m,w)=>h.cloneElement(m,{style:{position:"absolute",top:(v+w)*e+w*r,height:e,left:0,right:0,lineHeight:`${e}px`}}))},[t,l,e,c,r,o]),f=h.useMemo(()=>J8(function(v){d(v.target.scrollTop)},50,{leading:!1}),[]);return u.jsx("ul",{onScroll:f,...n,style:{overflowY:"auto",position:"relative",display:"flex",flexDirection:"column",height:"100%",listStyle:"none",padding:0},ref:s,children:p})});I9.displayName="Window";const MD=I9,B9=h.forwardRef((e,t)=>{const{width:r,height:o,isVirtualized:n=!1,dataTestId:a}=e,i=ED({...e,selectionMode:"single"}),l=h.useRef(null),s=Yt(l,t),{listBoxProps:c}=bD(e,i,s),d=i.collection.getFirstKey(),p=d?i.collection.getItem(d):null;return u.jsx("div",{css:TD({width:r}),children:u.jsx("div",{"data-testid":a?`${a}_list`:"ictinus_list",children:u.jsx("div",{style:{height:n&&o?o:"100%"},children:u.jsx(MD,{...c,css:M9({width:r,height:o}),id:c.id,isVirtualizationEnabled:n,rowHeight:sl[(p==null?void 0:p.props.rowSize)??"normal"],ref:s,children:Array.from(i.collection).map(f=>f.type==="section"?u.jsx(LD,{section:f,state:i},f.key):u.jsx(R9,{item:f,state:i},f.key))})})})})});B9.displayName="List";function R9({item:e,state:t,style:r}){var c;const o=h.useRef(null),{optionProps:n,isDisabled:a}=yD({key:e.key},t,o),{isFocusVisible:i,isFocused:l,focusProps:s}=ZR();return u.jsx($D,{...tt(n,s),id:n.id,ref:o,isDisabled:a,style:r,"data-focus-visible":i||void 0,"data-focused":l||void 0,"data-empty":t.collection.size===0||void 0,rowSize:((c=e.props)==null?void 0:c.rowSize)||"normal",children:e.rendered})}function LD({section:e,state:t}){var a;const{itemProps:r,headingProps:o,groupProps:n}=Sr.useListBoxSection({heading:e.rendered,"aria-label":e["aria-label"]});return u.jsx(u.Fragment,{children:u.jsxs(_9,{...r,rowSize:((a=e.props)==null?void 0:a.rowSize)||"normal",isDisabled:!1,children:[e.rendered&&u.jsx("span",{...o,id:o.id,children:e.rendered}),u.jsx("ul",{...n,"aria-labelledby":n["aria-labelledby"],css:PD,children:[...e.childNodes].map(i=>{var l;return u.jsx(R9,{item:{...i,props:{...i.props,rowSize:((l=e.props)==null?void 0:l.rowSize)||"normal"}},state:t},i.key)})})]})})}const Tu=B9,OD=(e,t)=>r=>{const o=yr(r);return E.css("color:",o("textColor.default"),";font-weight:",e||t?"bold":"initial",";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:inherit;flex:1;display:flex;flex-direction:column;justify-content:center;strong{font-weight:bold;}span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}","")},ID=()=>e=>{const t=yr(e);return E.css(G(t("secondaryText")),";color:",t("textColor.secondary"),";","")},mr=e=>u.jsxs("div",{css:OD(!1,!1),children:[u.jsx("span",{children:e.children}),e.description&&u.jsx("p",{css:ID(),children:e.description})]});var BD={name:"o2d6zf",styles:"display:flex;flex-direction:row;align-items:center;justify-content:center"};const RD=()=>()=>BD,DD=e=>u.jsx("div",{css:RD(),children:e.children}),D9=e=>{const t=e.parentType==="Menu"?"div":y9;return E.createElement(t,{...e,key:String(e.key)},e.children)};D9.getCollectionNode=y9.getCollectionNode;const wr=D9,F9=e=>u.jsx(w9,{...e});F9.getCollectionNode=w9.getCollectionNode;const q9=F9,_e={value:"select_all",label:"Select All"},H9=h.forwardRef((e,t)=>{const{filteredOptions:r,handleOptionClick:o,selectedOption:n,isLoading:a,isVirtualized:i,size:l="normal",hasSelectAllOption:s=!1}=e,c=h.useRef(null),d=Yt(c,t),p=P9*sl[l],f=()=>{var m,w;return((m=c.current)==null?void 0:m.scrollIntoView)&&((w=c.current)==null?void 0:w.scrollIntoView({block:"nearest",inline:"start"}))},v=h.useCallback(m=>{const w=String(jt(Array.from(m)));if(w===_e.value)o(_e);else{const b=Nu(r,$=>$.options||$).find($=>String($.value)===w);b&&o(b)}},[r,o]);h.useEffect(()=>{f()},[n]);const y=()=>r.length>0?u.jsxs(Tu,{label:Hu("menu_list"),ref:d,height:p,isVirtualized:i&&r.length>P9,onSelectionChange:v,selectedKeys:[n.value],disabledKeys:r.filter(m=>m.isDisabled).map(m=>m.value),children:[s?u.jsx(wr,{rowSize:l,textValue:_e.label,children:u.jsx(mr,{children:_e.label})},_e.value):null,r.map(m=>{var w;return m.options&&((w=m.options)==null?void 0:w.length)>0?u.jsx(q9,{title:m.value,children:m.options.map(b=>u.jsx(wr,{rowSize:l,textValue:b.label,children:u.jsx(mr,{description:b.helperText,children:b.label})},b.value))},m.value):u.jsx(wr,{rowSize:l,textValue:m.label,children:u.jsx(mr,{description:m.helperText,children:m.label})},m.value)})]}):u.jsx("div",{css:c9({isSelected:!1,hasNoResultsExist:!0}),children:"No options"});return u.jsx("div",{css:zR({...e,height:p}),tabIndex:-1,children:a?u.jsx("div",{css:c9({isSelected:!1,hasNoResultsExist:!0}),children:"Loading..."}):y()})});H9.displayName="SelectMenu";const N9=H9;function FD(e){const r=new Date().getFullYear()+10,o=new Date().getFullYear()-10;return Z8(o,r).map(a=>({value:a.toString(),label:`${e.format("MMMM")} ${a.toString()}`}))}const qD=({setDate:e,onDaySelect:t=()=>{},selectedDays:r,date:o,handleArrow:n=()=>{},showedArrows:a="both",disabledDates:i,isRangePicker:l=!1})=>{const[s,c]=h.useState(!1),d=a!=="right",p=h.useMemo(()=>FD(o),[o]),f=h.useRef(null),{keyboardProps:v}=tr({events:{keydown:{onArrowDown:()=>{setTimeout(()=>{var m;const y=(m=f.current)==null?void 0:m.querySelectorAll('[role="option"]');if(y&&(y==null?void 0:y.length)>0){const w=jt(y);w instanceof HTMLElement&&typeof w.focus=="function"&&w.focus()}},0)}}},hasPropagation:!0});return u.jsx(h.Fragment,{children:u.jsxs("div",{css:CR(),children:[u.jsxs("div",{css:yR(),children:[(a==="left"||a==="both")&&u.jsx("div",{css:a9({position:"left"}),children:u.jsx(vt,{iconName:"triangleLeft",type:"tertiary",onClick:()=>n("back"),dataTestId:"month_back"})}),u.jsxs(Zt,{onClick:()=>{c(!1)},children:[u.jsxs("div",{css:wR(),children:[u.jsx("div",{css:SR({isRangePicker:l}),"data-testid":"month_header",...l?{}:v,children:u.jsxs(ze,{onClick:l?void 0:()=>c(!s),type:"tertiary",dataTestId:`${a!=="both"?a+"_":""}month`,children:[o.format("MMMM")," ",o.format("YYYY")]})}),s&&u.jsx(N9,{ref:f,filteredOptions:p,handleOptionClick:y=>{e(o.year(Number(y.value))),c(!1)},selectedOption:{value:o.format("YYYY"),label:o.format("YYYY")},sx:{top:"124%"}})]}),(a==="right"||a==="both")&&u.jsx("div",{css:a9({position:"right"}),children:u.jsx(vt,{iconName:"triangleRight",type:"tertiary",onClick:()=>n("forward"),dataTestId:"month_forward"})})]})]}),u.jsx(HR,{year:o.year(),month:o.month(),onDaySelect:t,selectedDays:r,disabledDates:i,isFirstCalendar:d})]})})},z9=h.memo(qD),HD=()=>e=>{const t=Ge(e);return E.css(Se,";border:",t("date.borderWidth")," solid ",t("container.borderColor"),";border-radius:",t("date.container.borderRadius"),";width:fit-content;","")},ND=()=>e=>{const t=Ge(e);return E.css("border-right:",t("date.borderWidth")," solid ",t("container.borderColor"),";","")},zD=({isSelected:e})=>t=>{const r=yr(t);return E.css(zo(t),";white-space:nowrap;padding:",t.globals.spacing.get("6"),";font-weight:",e?t.globals.typography.fontWeight.get("medium"):t.globals.typography.fontWeight.get("regular"),";color:",e&&r("textColor.active"),";cursor:pointer;background-color:",e?r("backgroundColor.active"):"transparent",";position:relative;&:hover{background-color:",r("backgroundColor.active"),";}","")};var VD={name:"yqjhl6",styles:"display:flex;flex-direction:column;position:relative"};const WD=()=>VD;var UD={name:"1wbxrzl",styles:"display:flex;flex-direction:row;position:relative;z-index:10"};const jD=()=>UD,KD=()=>e=>{const t=Ge(e);return E.css("display:flex;justify-content:flex-end;height:",t("actionsContainer"),";align-items:center;gap:",t("actionsSpacing"),";padding:0 ",t("padding"),";border-top:",t("date.borderWidth")," solid ",t("container.borderColor"),";","")},ZD=e=>e.from??te,GD=e=>{var t,r;return((r=e.from)==null?void 0:r.month(((t=e.from)==null?void 0:t.month())+1))??te.month(te.month()+1)};var YD={name:"zjik7",styles:"display:flex"};const XD=({selectedOption:e,setSelectedOption:t=()=>{},isRangePicker:r=!1,extraOptions:o=[],onDaySelect:n,selectedDays:a,disabledDates:i,onClearAll:l=()=>{},onApply:s=()=>{}})=>{const[c,d]=h.useState(ZD(a)),[p,f]=h.useState(GD(a)),v=h.useCallback((y="back")=>{d(m=>m.month(m.month()+(y==="forward"?1:-1))),f(m=>m.month(m.month()+(y==="forward"?1:-1)))},[c,p]);return u.jsx("div",{css:HD(),children:u.jsxs("div",{css:WD(),"data-testid":"buttonMonthsWrapperStyle",children:[u.jsxs("div",{css:YD,children:[o.length>0&&r&&u.jsx("div",{css:ND(),"data-testid":"optionsWrapperStyle",children:o.map(y=>u.jsx("div",{css:zD({isSelected:e===y.value}),onClick:()=>t(y.value),children:y.label},y.value))}),u.jsxs("div",{css:jD(),children:[u.jsx(z9,{date:c,onDaySelect:n,selectedDays:a,setDate:d,handleArrow:v,showedArrows:r?"left":"both",disabledDates:i,isRangePicker:r}),r&&u.jsx(z9,{date:p,onDaySelect:n,selectedDays:a,setDate:f,handleArrow:v,showedArrows:r?"right":"both",disabledDates:i,isRangePicker:r})]})]}),u.jsxs("div",{css:KD(),children:[u.jsx(ze,{onClick:l,dataTestId:"cancel",type:"tertiary",children:mB}),u.jsx(ze,{onClick:s,dataTestId:"apply",isDisabled:!a.from||!a.to,children:yB})]})]})})},JD=g.memo(XD),V9=e=>new ResizeObserver(t=>{const r=vl(t);(r==null?void 0:r.target)!==(r==null?void 0:r.contentRect)&&r&&e(r.contentRect.height)}),QD=(e,t)=>{var i;const[r,o]=h.useState(0),[n,a]=h.useState(0);return h.useEffect(()=>{if(!e.current)return;const l=V9(o);return l.observe(e.current),()=>l.disconnect()},[e]),h.useEffect(()=>{var c;const l=vl((c=t.current)==null?void 0:c.children);if(!l)return;const s=V9(a);return s.observe(l),()=>s.disconnect()},[t,(i=t.current)==null?void 0:i.children]),{parentHeight:r,childHeight:n}},eF=(e,t,r,o,n)=>{const[a,i]=h.useState({x:-1,y:-1}),{parentHeight:l,childHeight:s}=QD(e,t);return h.useEffect(()=>{var b,$,P;const{x:c,y:d,width:p}=e!=null&&e.current?(b=e==null?void 0:e.current)==null?void 0:b.getBoundingClientRect():{x:0,y:0,width:0},{width:f}=t!=null&&t.current?(P=($=t==null?void 0:t.current)==null?void 0:$.children[0])==null?void 0:P.getBoundingClientRect():{width:0},v=d+l+s>window.innerHeight;let y=0,m=0;v?(m=m-s-o,d+m<0&&(m=l+o)):m=l+o,c+f>window.innerWidth?y=y+p-f-r:y=r,i({x:y,y:m})},[e,t,n,o,r,l,s]),a},tF=(e,t)=>{var n,a;const[r,o]=h.useState();return h.useEffect(()=>{var i,l;e&&o((l=(i=t==null?void 0:t.current)==null?void 0:i.getBoundingClientRect())==null?void 0:l.width)},[e,t,(a=(n=t==null?void 0:t.current)==null?void 0:n.getBoundingClientRect())==null?void 0:a.width]),[r]},rF=(e,t,r)=>()=>E.css({overflow:e?"hidden":"inherit",textOverflow:e?"ellipsis":"inherit",width:"100%",height:"inherit",position:"relative","#unique-tooltip-id":{display:t?"block !important":"none !important"},...r==null?void 0:r.container},"",""),oF=(e,t,r,o)=>()=>E.css({position:"absolute",opacity:"1 !important",top:H.rem(t),left:H.rem(e),zIndex:999999999,width:r?H.rem(r):"fit-content",height:"fit-content",...o==null?void 0:o.itemContainer},"",""),ku=({id:e="unique-tooltip-id",isVisible:t,parent:r,isOverflowAllowed:o,hasWrapperWidth:n=!1,offsetX:a=0,offsetY:i=0,sx:l,children:s})=>{const c=h.useRef(null),d=h.useRef(null),[p]=tF(n,c),{x:f,y:v}=eF(c,d,a,i,t),y=t&&f!==-1&&v!==-1;return u.jsxs("div",{css:rF(o,y,l),ref:c,children:[r,y&&u.jsx("div",{css:oF(f,v,p,l),id:e,ref:d,children:s})]})},nF=({isRangePicker:e=!1,onChange:t=()=>{},disableDates:r,value:o,inputProps:n,dateFormatOverride:a=void 0,isClearable:i=!1,filterConfig:l,options:s,dataTestId:c})=>{const d=h.useMemo(()=>bB(o||{}),[o]),[p,f]=h.useState(!1),[v,y]=h.useState(""),[m,w]=h.useState(d),{keyboardProps:b}=tr({events:{keydown:{onEscape:()=>{f(!1)}}},hasPropagation:!0}),$=h.useCallback(_=>{const A=s==null?void 0:s.find(M=>M.value===_);A&&(w(Array.isArray(A.dates)?{from:A.dates[0],to:A.dates[1]}:{from:A.dates,to:A.dates}),y(_))},[s]),P=h.useCallback(_=>{var k,q,K,F;const A=_.to&&((k=_.from)!=null&&k.isAfter(_.to))?_.to:_.from,M=_.to&&((q=_.from)!=null&&q.isAfter(_.to))?_.from:_.to,S={from:A,to:M};S.to&&f(!1),t({from:(K=S.from)==null?void 0:K.toDate(),to:(F=S.to)==null?void 0:F.toDate()})},[t]),L=h.useCallback(_=>{const A=_.startOf("day"),M=_.endOf("day");return w(e?S=>S.from&&S.to?{from:A,to:void 0}:S.from?{...S,to:M}:{...S,from:A}:S=>S.from&&S.to&&_.isBetween(S.from,S.to)?hr:{from:A,to:M})},[e]),I=h.useCallback(()=>{f(!1)},[]),x=h.useCallback(()=>{w(hr),t(hr),f(!1)},[t]),O=h.useCallback(()=>{f(!p)},[p]),C=h.useCallback(_=>{if(!i&&!l.filterType)return!1;if(l!=null&&l.filterType)return f(!1),w(hr),t(hr);if((_==null?void 0:_.keyCode)===27)return f(!1);if((_==null?void 0:_.keyCode)===8){if(e&&d.from&&d.to)return w({from:d.from,to:void 0}),t({from:d.from.toDate(),to:void 0});w(hr),t(hr)}},[i,l==null?void 0:l.filterType,t,d,e]),B=h.useCallback(()=>{P(m)},[P,m]);return u.jsx(Zt,{onClick:I,children:u.jsx("div",{...b,children:u.jsx(ku,{isVisible:p,parent:u.jsx(hR,{filterConfig:l,isRangePicker:e,selectedDay:d,inputProps:n,dateFormatOverride:a,handleIconClick:O,handleClear:C,isOpen:p,dataTestId:c}),children:u.jsx("div",{css:TB(),children:u.jsx(JD,{selectedOption:v,setSelectedOption:$,extraOptions:s,isRangePicker:e,onDaySelect:L,selectedDays:m,disabledDates:r,onClearAll:x,onApply:B})})})})})},aF=h.memo(nF,Me),iF=(e,t)=>{const r=Cl.useLocation(),[o,n]=h.useState();return h.useLayoutEffect(()=>{e.forEach(a=>{(a.options.map(s=>s.url).includes(r.pathname)||a.url===r.pathname)&&(n(a.url),t([a.url]))})},[r.pathname,e,t]),[o]},W9={semantic:{hover:{backgroundColor:{step:50}},focus:{border:{width:{step:1},color:{name:"magenta",shade:500}}},pressed:{backgroundColor:{step:100}},disabled:{opacity:{amount:.5},cursor:{name:"not-allowed"}}},dark:{hover:{backgroundColor:{step:50}},focus:{border:{width:{step:1},color:{name:"magenta",shade:500}}},pressed:{backgroundColor:{step:100}},disabled:{opacity:{amount:.5},cursor:{name:"not-allowed"}}}},lF=W9.semantic.focus.border.width.step,U9=W9.semantic.focus.border.color,sF=({theme:e,borderWidth:t=0})=>{const r=t+lF,o=e.utils.getColor(U9.name,U9.shade);return{borderWidth:R(r),focusColor:o,styleBorder:`${R(r)} solid ${o}`,styleOutline:`${o} auto ${R(r)}`}},cF=39,uF=e=>()=>E.css(ie(10.2),";width:100%;background-color:white;height:100%;padding:",R(24)," 0;box-sizing:border-box;.menu-item-text,.submenu-item-text{opacity:",e?1:0,";width:",R(e?204:16),";white-space:nowrap;}",""),j9=e=>E.css(so,";height:",R(44),";color:",e.tokens.colors.get("textColor.default.primary"),";cursor:default;",""),K9=()=>e=>E.css(j9(e),";width:100%;font-size:",R(16),";font-weight:",e.globals.typography.fontWeight.get("regular"),";padding:0 ",e.globals.spacing.get("6"),";background:transparent;border:0 solid transparent;display:flex;text-align:left;text-decoration:none;&:hover{background-color:",e.tokens.colors.get("palette.tertiary.muted"),";}&:focus-visible{outline:",e.tokens.colors.get("palette.tertiary.muted"),";}",""),dF=()=>e=>E.css(K9()(e),";text-decoration:none;",""),fF=e=>t=>E.css(ie(.2),";color:",e?t.tokens.colors.get("textColor.default.active"):t.tokens.colors.get("textColor.default.primary"),";font-weight:",e?t.globals.typography.fontWeight.get("bold"):"initial",";",""),pF=()=>e=>E.css(j9(e),";",ie(.2),";box-sizing:border-box;font-size:",e.globals.typography.fontSize.get("3"),";color:",e.tokens.colors.get("textColor.default.primary"),";margin:",e.globals.spacing.get("3")," 0 ",e.globals.spacing.get("3")," 0;padding-left:",R(cF),";&:hover{background-color:",e.tokens.colors.get("palette.tertiary.muted"),"!important;}&.active:hover{background-color:",e.tokens.colors.get("palette.tertiary.contrast"),"!important;}&.active{font-weight:",e.globals.typography.fontWeight.get("bold"),";background-color:",e.tokens.colors.get("palette.tertiary.muted"),"!important;color:",e.tokens.colors.get("textColor.default.active"),";path{fill:",e.tokens.colors.get("textColor.default.active"),"!important;}}&:focus-visible{outline:",sF({theme:e}).styleOutline,";}text-decoration:none;",""),gF=(e,t)=>()=>E.css(ie(.2),";opacity:",t?"1":"0",";transform:",e?"rotate(90deg)":"rotate(0deg);",";",""),vF=()=>e=>E.css(ie(.2),";",Qe,";margin-right:",e.globals.spacing.get("4"),";width:",R(32),";height:",R(32),";border-radius:50%;flex-shrink:0;",""),hF=()=>e=>E.css(Qe,";width:",R(32),";height:",R(32),";margin-right:",e.globals.spacing.get("4"),";flex-shrink:0;",""),CF=(e,t)=>E.css("transition:opacity ",e?t+100:0,"ms ease,transform ",e?t+100:0,"ms ease;opacity:",Number(e),";transform:translateY(",e?0:R("-10px"),");",""),bF=(e,t)=>{const r=g.useRef(null),o=()=>{if(r.current===null)throw new Error("Uninitialised element ref");e?r.current.style.height="":r.current.style.height="0"},n=()=>{if(r.current===null)throw new Error("Uninitialised element ref");let a;return e?r.current.style.visibility="":a=window.setTimeout(()=>{if(r.current===null)throw new Error("Uninitialised element ref");r.current.style.visibility="hidden"},t),function(){clearTimeout(a)}};return g.useLayoutEffect(o,[e]),g.useLayoutEffect(n,[e,t]),r},yF=[{condition:({isExpanded:e,onChange:t})=>!!(e===void 0&&t||t===void 0&&typeof e=="boolean"),error:new Kt("If expanded is defined onChange must be defined too and vice versa")},{condition:({content:e,children:t})=>e===void 0&&t===void 0,error:new Kt("Either content or children must be defined")}],Z9=e=>{const{textAndControl:t,component:r="div",transitionDuration:o=200,content:n,children:a,isInitiallyExpanded:i=!1,isExpanded:l,onChange:s,dataTestId:c}=e;en(yF,e);const[d,p]=g.useState(i),f=r,v=n??a,y=l??d,m=bF(y,o),w=b=>{typeof l!="boolean"?p($=>!$):s&&s(b)};return u.jsxs(f,{"data-testid":X("expand-collapse",c),children:[t(w,y),u.jsx("div",{css:CF(y,o),ref:m,children:v(y)})]})},G9=h.memo(({isCurrent:e,isExpanded:t,name:r,url:o,iconName:n,options:a,toggleMenuItem:i,state:l})=>{const s=z(),c=h.useMemo(()=>a.length>0,[a.length]),d=u.jsxs(h.Fragment,{children:[u.jsx("div",{css:gF(t,c),children:u.jsx(U,{name:"triangleRight",color:s.tokens.colors.get("textColor.default.primary"),size:20})}),u.jsx("div",{css:vF(),children:u.jsx(U,{name:n,color:e?s.tokens.colors.get("textColor.default.active"):s.tokens.colors.get("textColor.default.primary"),size:20})}),u.jsx("span",{className:"menu-item-text",css:fF(e),children:r})]});return u.jsx(h.Fragment,{children:c?u.jsx(Z9,{isExpanded:t,onChange:()=>i(o),textAndControl:p=>u.jsx("button",{type:"button",css:K9(),"data-testid":o,onClick:p,children:d}),children:()=>u.jsx(h.Fragment,{children:a.map(p=>p.isVisible&&u.jsxs(Cl.NavLink,{to:p.url,state:p.state,"data-testid":p.url,className:({isActive:f,isPending:v})=>v?"pending":f?"active":"",css:pF(),id:"submenu-item-link",children:[u.jsx("div",{css:hF(),children:u.jsx(U,{name:p.iconName,color:s.tokens.colors.get("textColor.default.primary"),size:20})}),u.jsx("span",{className:"submenu-item-text",children:p.name})]},p.url))})}):u.jsx(Cl.NavLink,{to:o,state:l,"data-testid":o,className:({isActive:p,isPending:f})=>f?"pending":p?"active":"",css:dF(),children:d},o)})});G9.displayName="MenuItem";const mF=G9,wF=({menuItems:e,isExpanded:t})=>{const[r,o]=h.useState([]),[n]=iF(e,o),a=h.useCallback(i=>{o(l=>l.indexOf(i)!==-1?[]:[i])},[]);return u.jsx("div",{css:uF(t),children:e.map(i=>i.isVisible&&u.jsx(mF,{isCurrent:n===i.url,isExpanded:r.includes(i.url),toggleMenuItem:a,...i},i.url))})},SF=(e,t,r)=>o=>E.css(ie(.2),";width:",R(e?"308px":t?"112px":"0px"),";background-color:",o.tokens.colors.get("backgroundColor.default"),";overflow:hidden;flex-grow:0;flex-shrink:0;height:100%;min-height:100%;z-index:100;position:",r?"absolute":"relative",";border-right:",R(1)," solid ",o.tokens.colors.get("borderColor.decorative.default"),";",""),EF=e=>{var o;const t=lo(),r=t.des1200&&!t.des1440;return u.jsxs("div",{css:SF(e.isExpanded,t.des1200,!t.des1440),onMouseEnter:()=>r&&e.setExpanded(!0),onMouseLeave:()=>r&&e.setExpanded(!1),"data-testid":"sidebar",children:[(o=e.renderHeader)==null?void 0:o.call(e),u.jsx(wF,{...Ut(e,"renderHeader")})]})},Y9=e=>se(l9,e),xF={name:"np6l6x",styles:"min-width:150px;background:#ffffff"},$F=xe(Je.MenuItem,{target:"e73b2cc1"})(({rowSize:e,isCompact:t,isDisabled:r,theme:o})=>{const n=yr(o),a=H.rem(sl[e]),i=E.css("0 ",n("paddingHorizontal"),";",""),l=t?Vo(o):vu(o);return E.css("background-color:",n("backgroundColor.default"),";&>div{",l,";}div[parenttype='Menu']{display:flex;flex-direction:row;gap:",H.rem(12),";}padding:",i,";min-height:",a,";display:flex;flex-direction:row;&:hover{background-color:",r?void 0:n("backgroundColor.active"),";cursor:",r?"initial":"pointer",";}span[role='presentation']{align-items:center;",l,";font-weight:",o.globals.typography.fontWeight.get("bold"),";}&[role='option']{gap:",H.rem(12),";}&[data-focus-visible]{background-color:",n("backgroundColor.active"),";}&[aria-selected='true']{background-color:",n("backgroundColor.active"),";&>div{color:",n("textColor.active"),";",t?gu(o):zo(o),";}&[data-focus-visible]{background-color:",n("backgroundColor.active"),";}}opacity:",r?"0.5":"1",";cursor:",r?"not-allowed":"initial",";","")},""),TF=xe(Je.Menu,{target:"e73b2cc0"})(({theme:e})=>{const t=Y9(e);return E.css("background-color:",t("backgroundColor"),";border-color:",t("borderColor"),";border-radius:",t("borderRadius"),";box-shadow:",t("boxShadow"),";border-width:",t("borderWidth"),";","")},""),kF=({sx:e})=>{const t=z();return u.jsx(Je.Separator,{css:[E.css("height:",H.rem(1),";border-color:",t.tokens.colors.get("borderColor.decorative.default"),";width:100%;margin:auto;border-bottom-width:",H.rem(1),";border-bottom-style:solid;",""),e,"",""]})},X9=({selectionMode:e="single",rowSize:t="normal",children:r,onSelectionChange:o=()=>{},disabledKeys:n=new Set,selectedKeys:a=new Set,triggerRef:i=null,isOpen:l=!1,onClose:s=()=>{},onAction:c=()=>{},dataTestId:d})=>{const p=t==="compact";return u.jsx(Je.MenuTrigger,{isOpen:l,onOpenChange:s,children:u.jsx(Je.Popover,{triggerRef:i,css:xF,children:u.jsx(TF,{selectionMode:e,selectedKeys:a,disabledKeys:n,onSelectionChange:o,css:M9({}),"data-testid":d,onAction:c,children:g.Children.map(r,f=>{const{key:v=""}=f;return f.type===kF?f:u.jsx($F,{isCompact:p,rowSize:t,isDisabled:n.has(v),id:v,children:f},v)})})})})},PF=e=>E.css("position:fixed;z-index:3000;width:100vw;height:100vh;top:0;left:0;background-color:",e.tokens.colors.get("backdrop.default"),";display:flex;justify-content:center;align-items:center;",""),_F=E.css("max-width:",R(500),";max-height:",R(684),";",""),AF=({isContentPadded:e})=>t=>E.css("display:flex;flex-direction:row;flex-wrap:wrap;padding:",e?`${t.globals.spacing.get("8")} ${t.globals.spacing.get("9")} ${t.globals.spacing.get("9")} ${t.globals.spacing.get("9")}`:void 0,";",""),MF=e=>E.css("width:100%;display:flex;justify-content:flex-end;padding:",e.globals.spacing.get("4")," ",e.globals.spacing.get("4")," 0 0;box-sizing:border-box;",""),LF=e=>E.css("width:100%;height:100%;display:flex;flex-direction:column;flex-wrap:wrap;text-align:left;color:",e.tokens.colors.get("textColor.default.primary"),";font-weight:",e.globals.typography.fontWeight.get("regular"),";",""),OF=e=>E.css("font-size:",e.globals.typography.fontSize.get("3"),";margin:0 0 ",e.globals.spacing.get("3")," 0;",""),IF=e=>E.css("font-size:",e.globals.typography.fontSize.get("9"),";color:",e.tokens.colors.get("textColor.default.primary"),";font-weight:",e.globals.typography.fontWeight.get("medium"),";margin:0 0 ",e.globals.spacing.get("9")," 0;",""),BF=e=>E.css("font-size:",e.globals.typography.fontSize.get("4"),";color:",e.tokens.colors.get("textColor.default.secondary"),";max-height:",R(430),";overflow-y:hidden;margin:0;",""),RF=e=>E.css("width:100%;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-end;margin:",e.globals.spacing.get("9")," 0 0 0;button{margin-left:",e.globals.spacing.get("6"),";}",""),DF=({label:e,heading:t,message:r,primaryCTA:o,primaryCTALabel:n,secondaryCTA:a,secondaryCTALabel:i,dataTestId:l})=>u.jsxs("div",{role:"dialog",css:LF,"data-testid":X("modal-content",l),children:[!!e&&u.jsx("p",{css:OF,children:e}),u.jsx("h5",{css:IF,"data-testid":X("modal-content-header",l),children:t}),u.jsx("p",{css:BF,"data-testid":X("modal-content-message",l),children:r}),u.jsxs("div",{css:RF,children:[!!(a&&i)&&u.jsx(ze,{onClick:a,type:"tertiary",dataTestId:"modal-content-secondaryCTA",children:i}),!!(o&&n)&&u.jsx(ze,{onClick:o,dataTestId:"modal-content-primaryCTA",children:n})]})]}),cl=e=>{h.useEffect(()=>{const t=r=>{r.key==="Escape"&&e()};return window.addEventListener("keydown",t),()=>{window.removeEventListener("keydown",t)}},[e])},FF=({isOpen:e=!1,onClose:t,dataTestId:r,children:o,contentProps:n,isContentPadded:a=!0})=>{cl(()=>{t()});const i=z();return h.useEffect(()=>(e&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="unset"}),[e]),e?u.jsx("div",{css:PF,"data-testid":X("modal-container",r),children:u.jsx(Zt,{onClick:t,children:u.jsx("div",{css:_F,children:u.jsxs(P2,{elevated:"02",radius:"3",children:[u.jsx("div",{css:MF,children:u.jsx(vt,{type:"tertiary",iconName:"close",onClick:t,color:i.tokens.colors.get("textColor.default.secondary"),dataTestId:"modal-close"})}),u.jsx("div",{css:AF({isContentPadded:a}),children:n?u.jsx(DF,{...n}):o})]})})})}):null},ht=e=>e==="info"?"active":e,J9=e=>e==="info"?"primaryAlt":e,qF=(e,t,r)=>E.css("border:",r.globals.borderWidth.get("2")," solid ",r.tokens.colors.get(`borderColor.interactive.${ht(e)}`),";&[notification-type='banner']{box-shadow:",r.globals.elevation["02"],";}",t==="outlined"?`
|
|
122
122
|
background: ${r.tokens.colors.get("backgroundColor.default")};
|
|
123
123
|
`:`
|
|
124
124
|
background: ${r.tokens.colors.get(`palette.${J9(e)}.muted`)};
|
|
@@ -128,7 +128,7 @@ Unable to find an `+(o===!1?"accessible ":"")+'element with the role "'+t+'"'+s+
|
|
|
128
128
|
`:`
|
|
129
129
|
border-left: ${r.tokens.colors.get(`borderColor.interactive.${ht(e)}`)} ${r.globals.borderWidth.get("3")} solid;
|
|
130
130
|
box-shadow: ${r.globals.elevation["02"]};
|
|
131
|
-
`,nq=(e,t)=>r=>E.css("display:flex;flex-direction:column;overflow:hidden;padding:",r.globals.spacing.get("6"),";box-sizing:border-box;max-height:",R(294),";border-radius:",r.globals.borderRadius.get("3"),";background:",r.tokens.colors.get("backgroundColor.default"),";",oq(e,t,r),";",""),aq=()=>e=>E.css("display:flex;align-items:center;justify-content:space-between;padding-bottom:",e.globals.spacing.get("6"),";","");var iq={name:"s5xdrg",styles:"display:flex;align-items:center"};const lq=()=>()=>iq,sq=()=>e=>E.css("font-size:",e.globals.typography.fontSize.get("3"),";max-height:",R(194),";overflow:auto;width:",R(547),";",""),cq=({message:e,type:t,styleType:r="elevated",primaryCTALabel:o="OK",primaryCTA:n,secondaryCTALabel:a="Cancel",secondaryCTA:i,description:l,closeCTA:s,dataTestId:c})=>{const d=n&&o||i&&a,p=z();return u.jsxs("div",{css:nq(t,r),"notification-type":"snackbar",children:[u.jsxs("div",{css:aq(),children:[u.jsxs("div",{css:lq(),children:[u.jsx("div",{css:Q9(),children:u.jsx(U,{name:Pu(t),color:p.tokens.colors.get(`textColor.default.${ht(t)}`),size:24})}),u.jsx("div",{css:e8(t),children:e})]}),u.jsx("span",{css:jo(),onClick:s,"data-testid":X("snackbar-close",c),children:u.jsx(U,{name:"close",color:p.tokens.colors.get("textColor.default.secondary"),size:24})})]}),u.jsx("div",{css:sq(),"data-testid":X("snackbar-description",c),children:l}),d&&u.jsx(r8,{primaryCTA:n,primaryCTALabel:o,secondaryCTA:i,secondaryCTALabel:a,dataTestPrefixId:"snackbar",dataTestId:c})]})},uq={backgroundColor:{value:"{sem.colors.backgroundColor.default}",type:"color",description:"Sets backgroundColor for drawer container"},borderColor:{value:"{sem.colors.borderColor.decorative.default}",type:"color",description:"Sets borderColor for drawer container"},borderWidth:{value:"{borderWidth.1}",type:"borderWidth",description:"Sets borderWidth for drawer container"},boxShadow:{value:"{sem.boxShadow.3}",type:"boxShadow",description:"Sets boxShadow for drawer container"},backdropColor:{value:"{sem.colors.backdrop.default}",type:"color",description:"Sets color for content backdrop appearing behind drawer (if used)"},padding:{value:"{spacing.8}",type:"spacing",description:"Sets padding for drawer"}},Ko=e=>se(uq,e);var dq={name:"1x3zd6m",styles:"justify-content:flex-end;flex-direction:column"},fq={name:"1f60if8",styles:"justify-content:flex-end"},pq={name:"qdeacm",styles:"flex-direction:column"};const gq=e=>{switch(e){case"top":return pq;case"right":return fq;case"bottom":return dq;default:return E.css("","")}},vq=(e,t)=>{switch(t){case"top":return e?"translateY(0)":"translateY(-100%)";case"right":return e?"translateX(0)":"translateX(100%)";case"bottom":return e?"translateY(0)":"translateY(100%)";default:return e?"translateX(0)":"translateX(-100%)"}};var hq={name:"1y3chaq",styles:"right:0;bottom:0;top:0;left:0"},Cq={name:"s1n8ed",styles:"height:100vh"},bq={name:"lcsd53",styles:"width:100vw"};const yq=({isOpen:e,anchor:t,size:r,isBackgroundActive:o})=>()=>{const n=()=>(t==="left"||t==="right")&&o?E.css("width:",r,"%;",""):bq,a=()=>(t==="top"||t==="bottom")&&o?E.css("height:",r,"%;",""):Cq,i=()=>o?E.css("top:",t==="bottom"?void 0:0,";bottom:",t==="top"?void 0:0,";right:",t==="left"?void 0:0,";left:",t==="right"?void 0:0,";",""):hq;return E.css(Se,";position:fixed;",n(),";",a(),";z-index:2500;",i(),";background:",o?void 0:"rgba(200, 206, 255, 0.45)",";visibility:",e?"visible":"hidden",";opacity:",e?1:0,";",ie(.2)," ",gq(t),";","")},mq=({anchor:e,size:t,isBackgroundActive:r})=>e==="top"||e==="bottom"?{display:"flex",height:r?"100%":`${t}%`,width:"100%"}:{display:"flex",height:"100%",width:r?"100%":`${t}%`},wq=({isOpen:e,anchor:t,hasFixedLayout:r})=>o=>{const n=Ko(o);return E.css(Se,";flex-direction:column;overflow-y:",r?void 0:"auto",";background-color:",n("backgroundColor"),";box-shadow:",n("boxShadow"),";border:",n("borderWidth")," solid ",n("borderColor"),";width:100%;height:100%;transform:",vq(e,t),";",ie(.3),";","")},Sq=()=>e=>{const t=Ko(e);return E.css("position:absolute;top:",t("padding"),";right:",t("padding"),";","")},Eq=({isFixed:e,hasBoxShadow:t})=>r=>{const o=Ko(r);return e?E.css("padding:",o("padding"),";position:sticky;top:0;box-shadow:",t?r.tokens.boxShadow.get("2"):void 0,";transition:box-shadow 0.2s ease-in-out;",""):E.css("padding:",o("padding"),";flex:0;","")},xq=({hasFixedHeader:e})=>t=>{const r=Ko(t);return E.css("flex:1;overflow-y:",e?"auto":void 0,";padding:calc(",r("padding")," - ",H.rem(1),") ",r("padding"),";","")},$q=({isFixed:e,hasBoxShadow:t})=>r=>{const o=Ko(r);return e?E.css("position:sticky;bottom:0;padding:",o("padding"),";box-shadow:",t?r.tokens.boxShadow.get("5"):void 0,";transition:box-shadow 0.2s ease-in-out;",""):E.css("padding:",o("padding"),";","")},o8="SET_HAS_FIXED_LAYOUT",n8="SET_ON_CLOSE",a8="TOGGLE_IS_SCROLLBAR_ON_TOP",i8="TOGGLE_IS_SCROLLBAR_ON_BOTTOM",Tq=e=>({type:o8,payload:e}),kq=e=>({type:n8,payload:e}),l8=e=>({type:a8,payload:e}),s8=e=>({type:i8,payload:e}),_u=h.createContext(null),Pq=(e,t)=>{switch(t.type){case o8:return{...e,hasFixedLayout:t.payload};case n8:return{...e,onClose:t.payload};case a8:return{...e,isScrollbarOnTop:t.payload};case i8:return{...e,isScrollbarOnBottom:t.payload};default:return e}},c8=({hasFixedLayout:e=!1,onClose:t=()=>null,children:r})=>{const[o,n]=h.useReducer(Pq,{hasFixedLayout:e,onClose:t,isScrollbarOnTop:!1,isScrollbarOnBottom:!1});return u.jsx(_u.Provider,{value:[o,n],children:r})},Zo=()=>h.useContext(_u),u8=h.forwardRef(({isOpen:e,onClose:t,anchor:r,size:o,isBackgroundActive:n=!1,dataTestPrefixId:a="ictinus_drawer",hasFixedLayout:i=!1,parent:l=document.body,children:s},c)=>(cl(()=>{n||t()}),h.useEffect(()=>{e?l.style.overflow="hidden":l.style.overflow="unset"},[e,l.style]),l===null?null:gl.createPortal(u.jsx(c8,{hasFixedLayout:i,onClose:t,children:u.jsx("div",{css:yq({isOpen:e,anchor:r,size:o,isBackgroundActive:n}),children:u.jsx(Zt,{onClick:()=>{n||t()},cssStyles:mq({anchor:r,size:o,isBackgroundActive:n}),children:u.jsx("div",{ref:c,css:wq({isOpen:e,anchor:r,hasFixedLayout:i}),"data-testid":`${a}_drawer_container`,children:s})})})}),l)));u8.displayName="Drawer";const _q=u8,Aq=({children:e,dataTestPrefixId:t="ictinus_drawer"})=>{const[{hasFixedLayout:r,onClose:o=()=>null,isScrollbarOnTop:n}]=Zo();return u.jsxs("div",{css:Eq({isFixed:r,hasBoxShadow:!n}),children:[e,u.jsx("div",{css:Sq(),children:u.jsx(U,{name:"close",onClick:o,dataTestId:`${t}_close_button`})})]})},Mq=()=>{const[,e]=Zo(),t=h.useRef(),r=h.useRef(),o=h.useCallback(a=>{e(l8(a[0].isIntersecting))},[e]),n=h.useCallback(a=>{e(s8(a[0].isIntersecting))},[e]);return h.useEffect(()=>{const a=new IntersectionObserver(o);return t.current&&a.observe(t.current),()=>a.disconnect()},[o,t]),h.useEffect(()=>{const a=new IntersectionObserver(n);return r.current&&a.observe(r.current),()=>a.disconnect()},[n,r]),{contentTopRef:t,contentBottomRef:r}},Lq=({children:e,dataTestPrefixId:t="ictinus_drawer"})=>{const[{hasFixedLayout:r}]=Zo(),{contentTopRef:o,contentBottomRef:n}=Mq();return u.jsxs("div",{"data-testid":`${t}_content`,css:xq({hasFixedHeader:r}),children:[u.jsx("div",{css:E.css({height:H.rem(1)},"",""),ref:o}),e,u.jsx("div",{css:E.css({height:H.rem(1)},"",""),ref:n})]})},Oq=({children:e,dataTestPrefixId:t="ictinus_drawer"})=>{const[{hasFixedLayout:r,isScrollbarOnBottom:o}]=Zo();return u.jsx("div",{"data-testid":`${t}_footer`,css:$q({isFixed:r,hasBoxShadow:!o}),children:e})},Iq=({page:e=1,count:t=1,onChange:r})=>{const[o,n]=g.useState(e),a=o+1,i=o-1,l=a<=t,s=i>=1;g.useEffect(()=>{n(e)},[e]);const c=g.useCallback(()=>{n(1),r(1)},[r]),d=g.useCallback(()=>{n(t),r(t)},[r,t]),p=g.useCallback(()=>{let v=o;v+1<=t&&(v+=1),n(v),r(v)},[r,t,o]),f=g.useCallback(()=>{let v=o;v-1>=1&&(v-=1),n(v),r(v)},[r,o]);return{currentPage:o,hasNextPage:l,hasPrevPage:s,navigateToFirstPage:c,navigateToLastPage:d,navigateToNextPage:p,navigateToPrevPage:f}},Bq=({page:e=1,count:t,onChange:r=()=>{},isEnhancedPaginationVisible:o=!1,isNextPageDisabled:n,isPrevPageDisabled:a})=>{const i=z(),{currentPage:l,hasNextPage:s,hasPrevPage:c,navigateToFirstPage:d,navigateToLastPage:p,navigateToNextPage:f,navigateToPrevPage:v}=Iq({page:e,count:t,onChange:r});return u.jsxs("div",{css:E.css({flex:1,display:"flex",alignItems:"center",justifyContent:"space-between",color:i.tokens.colors.get("textColor.default.primary"),"> *":{padding:i.globals.spacing.get("4")}},"",""),children:[o&&u.jsx(vt,{name:"pageFirst",onClick:d,type:"tertiary",isDisabled:a||!c}),u.jsx(vt,{name:"chevronLeft",type:"tertiary",onClick:v,isDisabled:a||!c}),u.jsxs("div",{children:["Page ",l," of ",t]}),u.jsx(vt,{name:"chevronRight",type:"tertiary",onClick:f,isDisabled:n||!s}),o&&u.jsx(vt,{name:"pageLast",type:"tertiary",onClick:p,isDisabled:n||!s})]})},Rq=()=>e=>{const t=ge(e);return E.css("position:relative;min-width:",R(t("minWidth.small.normal")),";","")},Dq=(e,t)=>r=>{const o=ge(r);return E.css("padding:",o("addOn.padding.normal.left"),";display:flex;cursor:pointer;transform:rotate(",e&&!t?"180":"0","deg);",ie(.2),";","")},Fq=xe("div",{target:"exejjox0"})(""),qq=["p","pt","pr","pb","pl","px","py","m","mt","mr","mb","ml","mx","my"],d8=["color","backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundRepeat","backgroundSize","alignContent","alignItems","alignSelf","flexDirection","display","flex","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","justifyContent","justifyItems","justifySelf","position","width","minWidth","maxWidth","height","minHeight","maxHeight","overflow","m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","placeContent","placeItems","placeSelf","flexWrap","left","top","right","bottom","textOverflow","whiteSpace"],Hq=e=>bl(e,d8),Nq=e=>Ut(e,d8),zq=of((e,t,r,o,n)=>{if(t[o])return n==="spacing"?o==="px"||o==="mx"?{[r]:`0 ${e.globals[n].get(t[o]||"0")}`}:o==="py"||o==="my"?{[r]:`${e.globals[n].get(t[o]||"0")} 0`}:{[r]:e.globals[n].get(t[o])}:n==="color"?{[r]:e.tokens.colors.get(`textColor.${t[o]}`)}:{[r]:e.tokens.colors.get(`backgroundColor.${t[o]}`)}}),f8=h.forwardRef(({children:e,...t},r)=>{const o=z(),n=Hq(t),a=Nq(t),i=zq(o,n),l={...Ut(n,qq),...i("padding","p","spacing"),...i("paddingTop","pt","spacing"),...i("paddingRight","pr","spacing"),...i("paddingLeft","pl","spacing"),...i("paddingBottom","pb","spacing"),...i("padding","py","spacing"),...i("padding","px","spacing"),...i("margin","m","spacing"),...i("marginTop","mt","spacing"),...i("marginRight","mr","spacing"),...i("marginLeft","ml","spacing"),...i("marginBottom","mb","spacing"),...i("margin","my","spacing"),...i("margin","mx","spacing"),...i("top","top","spacing"),...i("right","right","spacing"),...i("left","left","spacing"),...i("bottom","bottom","spacing"),...i("color","color","color"),...i("backgroundColor","backgroundColor","backgroundColor")};return u.jsx(Fq,{ref:r,css:[E.css(l,"",""),"",""],...a,children:e})});f8.displayName="Box";const Vq=f8,Wq=({event:e,isSearchable:t,setSearchValue:r,isAsync:o,onChange:n,minCharactersToSearch:a=0})=>{const{target:{value:i}}=e;if(t&&r(i),o){if(e.persist(),a&&i.length&&i.length<a)return;n(i.trim())}},Au={label:"",value:""},p8=h.forwardRef((e,t)=>{const{selectedOption:r,isMulti:o,options:n,size:a="normal",isAsync:i=!1,isLoading:l=!1,asyncSearch:s=()=>{},status:c={type:"normal"},minCharactersToSearch:d=0,hasHighlightSearch:p=!1,isSearchable:f=!0,isVirtualized:v=!1,isDisabled:y,dataTestId:m,onChange:w,isCreatable:b=!1,hasSelectAllOption:$=!1,...P}=e,L=h.useRef(null),{keyboardProps:I}=tr({events:{keydown:{onArrowDown:()=>{_(!0),setTimeout(()=>{var ae;const Z=(ae=L.current)==null?void 0:ae.querySelectorAll('[role="option"]');if(Z&&(Z==null?void 0:Z.length)>0){const ee=jt(Z);ee instanceof HTMLElement&&typeof ee.focus=="function"&&ee.focus()}},0)},onEscape:()=>{var Z;(Z=M==null?void 0:M.current)==null||Z.blur(),_(!1),we()},onEnter:Z=>{Z.target.value.length>0&&setTimeout(()=>{var Xe;const ee=(Xe=L.current)==null?void 0:Xe.firstChild;ee instanceof HTMLElement&&typeof ee.click=="function"&&ee.click()},0)},onBackspace:()=>{F(""),_(!0),o||r&&w&&"label"in r&&r.label===q&&(w(void 0),k(""),s(""))},onAlphaNumerical:()=>{f&&_(!0)}}}}),{keyboardProps:x}=tr({events:{keydown:{onEscape:()=>{var Z;_(!1),(Z=M.current)==null||Z.focus()}}}}),O=z(),C=ge(O),[B,_]=h.useState(!1),A=h.useRef(null),M=Yt(A,t),[S,k]=h.useState(""),q=h.useMemo(()=>Array.isArray(r)||!r?S:S||(r==null?void 0:r.label),[S,r]),K=Z=>{var ae;if(o||_(!1),f&&k(""),o===!0){if(w&&r)if(Me(Z,_e))w(n.filter(ee=>!ee.isDisabled));else if(Z.isCreated){const ee={value:Z.value,label:Z.value.toString(),isCreated:!0};w([...r,ee])}else w([...r,Z])}else w&&w(Z);(ae=M.current)==null||ae.focus()},F=h.useCallback(rf(Z=>{s(Z)},400),[]),me=h.useCallback(Z=>{B||_(!0),Wq({event:Z,isSearchable:f,isAsync:i,setSearchValue:k,onChange:F,minCharactersToSearch:d})},[F,i,B,f,d]),Ne=h.useMemo(()=>{const Z=o&&Array.isArray(r)?Wu(n,r,"value"):n,ae=[];return i?ae.push(...Z):ae.push(...Z.filter(ee=>{var Xe;return!S||ee.label.toLowerCase().includes(S.toLowerCase())||!!((Xe=ee.options)!=null&&Xe.find(qu=>qu.label.toLowerCase().includes(S.toLowerCase())))}).map(ee=>{var Xe;return ee.label.toLowerCase().includes(S.toLowerCase())?ee:{...ee,options:(Xe=ee.options)==null?void 0:Xe.filter(qu=>qu.label.toLowerCase().includes(S.toLowerCase()))}})),b&&!ae.map(Xe=>Xe.label.toLowerCase()).includes(S.toLowerCase())&&S.length>0&&ae.push({value:S,label:`Create "${S}"`,isCreated:!0}),ae},[o,n,r,i,b,S]),N=h.useMemo(()=>f&&!Array.isArray(r)?S||r!=null&&r.value?"close":"search":"triangleDown",[r,f,S]),we=h.useCallback(()=>{f||_(!B),f&&!Array.isArray(r)&&(S||r!=null&&r.value)&&(k(""),w&&w(o?[]:void 0),s(""))},[f,B,r,S,w,s,o]),Ae=h.useMemo(()=>u.jsx("div",{css:Dq(B,f),children:l?u.jsx(Vq,{py:"2",display:"flex",alignItems:"center",children:u.jsx(al,{type:"circular",dataTestPrefixId:"select"})}):u.jsx(U,{size:C(`addOn.iconSize.${a}`),name:N,color:C("addOn.iconColor"),onClick:we,hasHover:!1,dataTestId:"select-right-icon"})}),[B,f,l,C,a,N,we]),HN=()=>{var Z,ae;B?f||(ae=M==null?void 0:M.current)==null||ae.blur():(Z=M==null?void 0:M.current)==null||Z.focus()},NN=b&&Ne.length===1&&Ne[0].isCreated,Fu=h.useRef(Qo("select_")).current;return u.jsx(Zt,{onClick:()=>{_(!1),k("")},children:u.jsx("div",{...!(y||c.type==="read-only")&&{onClick:HN},css:Rq(),...x,children:u.jsx(ku,{id:Fu,isVisible:B,hasWrapperWidth:!0,offsetY:8,parent:o?u.jsx(ll,{selectedOptions:r,onInput:me,onOptionDelete:Z=>{const ae=Array.isArray(r)?r.filter(ee=>typeof Z!="string"&&Z?ee.value!==Z.value:ee.value!==Z):[];w&&w(ae)},onClearAllOptions:()=>w&&w([]),isLoading:l,isDisabled:y,readOnly:!f,dataTestId:X("select-input",m),...P,status:c,value:q,ref:M,autoComplete:"off",...I,onClick:()=>_(!0),role:"combobox","aria-expanded":B,"aria-controls":Fu}):u.jsx(br,{suffix:Ae,...I,onInput:me,isReadOnly:!f,isDisabled:y,dataTestId:X("select-input",m),...P,onClick:()=>_(!0),status:c,value:q,size:a,ref:M,autoComplete:"off",role:"combobox","aria-expanded":B,"aria-controls":Fu}),children:u.jsx(N9,{ref:L,filteredOptions:Ne,handleOptionClick:K,selectedOption:o===!0||!r?Au:r,status:c,isLoading:l,isVirtualized:v,size:a,hasSelectAllOption:o&&$&&!NN})})})})});p8.displayName="Select";const g8=h.memo(p8,Me),v8=h.forwardRef(({isMulti:e,selectedOption:t,onChange:r=()=>{},...o},n)=>{const[a,i]=h.useState(e?t||[]:t||Au),l=h.useCallback(s=>{i(s),r(s)},[r]);return u.jsx(g8,{...o,selectedOption:a,isMulti:e,onChange:l,ref:n})});v8.displayName="StatefulSelect";const Uq=h.memo(v8,Me),jq=xe("div",{target:"ekzqro1"})("height:",H.rem(7),";width:",H.rem(7),";border-radius:100%;background:",({background:e})=>e,";position:relative;cursor:",({isDisabled:e})=>e?"not-allowed":"unset",";:hover{background:",({theme:e,isDisabled:t})=>t?void 0:e.tokens.colors.get("palette.primary.base"),";::before{content:'",({labelValue:e})=>e,"';color:white;display:",({isDisabled:e})=>e?"none":"flex",";justify-content:center;font-size:",({theme:e})=>e.globals.typography.fontSize[11],";background:black;position:absolute;padding:",({theme:e})=>e.globals.spacing.get("4"),";box-sizing:border-box;top:",H.rem(-35),";left:",H.rem(-14.5),";width:",H.rem(35),";height:",H.rem(27),";border-radius:2px;}::after{content:' ';display:",({isDisabled:e})=>e?"none":"unset",";position:absolute;top:",H.rem(-10),";left:",H.rem(-2.5),";width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #000;}}"),Kq=xe("div",{target:"ekzqro0"})("::after{content:' ';height:",H.rem(7),";width:",H.rem(7),";border:4px solid transparent;border-radius:100px;position:absolute;top:",H.rem(-4),";left:",H.rem(-4),";}:hover{&::after{border-color:",({isDisabled:e})=>e?void 0:H.rgba(14,14,23,.1),";}}"),Zq=({values:e,index:t,isDisabled:r,isSelector:o,dataTestPrefixId:n="",restProps:a})=>{const i=z(),l=h.useMemo(()=>o?t*20>e[0]?i.tokens.colors.get("palette.primaryAlt.base"):i.tokens.colors.get("palette.primary.base"):t*20<e[0]||t*20>e[1]?i.tokens.colors.get("palette.primaryAlt.base"):i.tokens.colors.get("palette.primary.base"),[o,t,e,i.tokens.colors]),s=h.useMemo(()=>(ul*t).toString(),[t]);return u.jsx(jq,{"data-testid":`${n}mark_${t}`,...a,isDisabled:r,labelValue:s?`${s}%`:" ",restStyleProps:a.style,background:l,children:u.jsx(Kq,{isDisabled:r})})},Gq=xe("div",{target:"e76yl4h0"})("height:",H.rem(16),";width:",H.rem(16),";border-radius:100px;background-color:",({theme:e,isChanged:t})=>t?e.tokens.colors.get("palette.primary.base"):"#fff",";border:2px solid ",({theme:e})=>e.tokens.colors.get("palette.primary.base"),";",({restStyleProps:e})=>({...e}),";box-sizing:border-box;cursor:",({isDisabled:e})=>e?"not-allowed":"unset","!important;&::after{content:'';height:",H.rem(16),";width:",H.rem(16),";border:8px solid transparent;border-radius:100px;position:absolute;top:",H.rem(-10),";left:",H.rem(-10),";",ie(.15),";}:hover{&::after{border-color:",({isDisabled:e})=>e?void 0:H.rgba(14,14,23,.1),";}}"),Yq=({isDisabled:e,value:t,initialValue:r,dataTestId:o,restProps:n})=>{const a=h.useMemo(()=>r!==t,[r,t]);return u.jsx(Gq,{"data-testid":o,...n,isChanged:a,isDisabled:e,restStyleProps:n.style})},Xq=xe("div",{target:"ecb6cmq0"})("height:",H.rem(3),";border-radius:4px;background:",({background:e})=>e,";cursor:",({isDisabled:e})=>e?"not-allowed":"unset","!important;"),Jq=({values:e,isDisabled:t,isSelector:r,dataTestPrefixId:o="",restProps:n,children:a})=>{const i=z(),l=h.useMemo(()=>Uu.getTrackBackground({values:e,colors:r?[i.tokens.colors.get("palette.primary.base"),i.tokens.colors.get("palette.primaryAlt.base")]:[i.tokens.colors.get("palette.primaryAlt.base"),i.tokens.colors.get("palette.primary.base"),i.tokens.colors.get("palette.primaryAlt.base")],min:ao,max:Go,rtl:!1}),[r,i.tokens.colors,e]);return u.jsx(Xq,{"data-testid":`${o}track_component`,...n,isDisabled:t,restStyleProps:n.style,background:l,children:a})},Qq=xe("div",{target:"ems0q502"})(Se,";flex-direction:column;gap:",H.rem(22),";"),eH=xe("div",{target:"ems0q501"})(Se,";margin-left:",H.rem(-7),";margin-right:",H.rem(-7),";gap:",H.rem(20),";align-items:center;justify-content:space-between;"),h8=xe("div",{target:"ems0q500"})("width:",H.rem(80),";"),tH=1,ul=20,ao=0,Go=100,C8=({values:e,onChange:t,onBlur:r,hasIncrements:o=!1,isDisabled:n=!1,dataTestPrefixId:a})=>{const i=z(),l=h.useRef(e),s=l.current.length===1;if(s&&e.length!==1)throw new Error("The Selector type Slider can only accept one initial value in the array, since it only has one thumb. Try changing the `values` prop.");if(!s&&e.length!==2)throw new Error("The Range type Slider only accepts two initial values in the array, since it has two thumbs. Try changing the `values` prop.");const c=v=>v<ao?0:v>Go?100:v,d=({props:v,index:y})=>{const m=s?y>ao:y>ao&&y<Go/ul;return o&&m&&u.jsx(Zq,{dataTestPrefixId:a,restProps:v,values:e,index:y,isSelector:s,isDisabled:n},`mark_${y}`)},p=({props:v,children:y})=>u.jsx(Jq,{dataTestPrefixId:a,isSelector:s,restProps:v,values:e,isDisabled:n,children:y}),f=({props:v,value:y,index:m})=>{var w;return u.jsx(Yq,{dataTestId:`${a??""}thumb_${m}`,restProps:v,isDisabled:n,value:y,initialValue:(w=l.current)==null?void 0:w[m]},`thumb_${m}`)};return u.jsxs(Qq,{"data-testid":`${a??""}slider_component`,children:[u.jsx("div",{css:E.css({opacity:n?i.tokens.disabledState.get("default"):"inherit"},"",""),children:u.jsx(Uu.Range,{step:o?ul:tH,min:ao,max:Go,disabled:n,values:e,onChange:t,onFinalChange:r,renderMark:d,renderTrack:p,renderThumb:f})}),!s&&!o&&e.length===2&&u.jsxs(eH,{children:[u.jsx(h8,{children:u.jsx(br,{label:"Start",size:"compact",isDisabled:n,value:e[0],onChange:v=>{const y=c(parseInt((v==null?void 0:v.target.value)||"0"));t([y,e[1]])},onBlur:v=>{if(r){const y=c(parseInt((v==null?void 0:v.target.value)||"0"));r([y,e[1]])}},suffix:u.jsx(u.Fragment,{children:"%"})})}),u.jsx(h8,{children:u.jsx(br,{label:"End",size:"compact",isDisabled:n,value:e[1],onChange:v=>{const y=c(parseInt((v==null?void 0:v.target.value)||"100"));t([e[0],y])},onBlur:v=>{if(r){const y=c(parseInt((v==null?void 0:v.target.value)||"100"));r([e[0],y])}},suffix:u.jsx(u.Fragment,{children:"%"})})})]})]})};C8.displayName="Slider";const rH=C8,b8=e=>()=>E.css(so,";display:inline-flex;gap:",R(`${e}px`),";",""),Mu=()=>e=>E.css("font-weight:",e.globals.typography.fontWeight.get("medium"),";color:",e.tokens.colors.get("textColor.default.secondary"),";",""),Ye=e=>typeof e=="string",oH=e=>!!(e.isSortable||e.tooltip),io=e=>e.tokens.colors.get("borderColor.decorative.default"),nH={padding:{text:{value:"{spacing.4}",type:"spacing",description:"Sets padding for text tooltip"},interactive:{value:"{spacing.6}",type:"spacing",description:"Sets padding for interactive tooltip"}},borderRadius:{value:"{borderRadius.2}",type:"borderRadius",description:"Sets borderRadius for a tooltip"},borderWidth:{default:{value:"{borderWidth.1}",type:"borderWidth",description:"Sets border width for tooltips"}},backgroundColor:{default:{value:"{sem.colors.backgroundColor.inverted}",type:"color",description:"Sets backgroundColor for tooltip container (including direction 'triangle' indicator)"},inverted:{value:"{sem.colors.backgroundColor.alt}",type:"color",description:"Sets backgroundColor for tooltip container with light color (including direction 'triangle' indicator)"}},borderColor:{default:{value:"{sem.colors.borderColor.decorative.transparent}",type:"color",description:"Sets borderColor for tooltip (default variant)"},inverted:{value:"{sem.colors.borderColor.decorative.default}",type:"color",description:"Sets borderColor for tooltip (inverted variant)"}},boxShadow:{value:"{sem.boxShadow.2}",type:"boxShadow",description:"Sets boxShadow for inverted tooltip variant"},textColor:{default:{value:"{sem.colors.textColor.inverted.primary}",type:"color",description:"Sets textColor for tooltip"},inverted:{value:"{sem.colors.textColor.default.primary}",type:"color",description:"Sets textColor for tooltip"}},text:{value:"{sem.typography.normal.body03}",type:"typography",description:"Sets text style for default tooltip"}},aH=e=>se(nH,e),$G="",iH=({isInverted:e=!1,isInteractive:t=!1})=>r=>{const o=aH(r),n=o(`backgroundColor.${e?"inverted":"default"}`),a={"text-align":"start","white-space":"pre-wrap","word-break":"break-word"};return E.css("background-color:",n,";border:",o("borderWidth.default")," solid ",o(`borderColor.${e?"inverted":"default"}`),";box-shadow:",o("boxShadow"),";.tippy-content{background-color:",n,";max-width:",!t&&R(256),";padding:",o(`padding.${t?"interactive":"text"}`),";border-radius:",o("borderRadius"),";color:",!t&&o(`textColor.${e?"inverted":"default"}`),";",!t&&G(o("text")),";",!t&&a,";}.tippy-arrow::before{color:",n,";}","")},y8=h.forwardRef(({children:e,content:t,placement:r="right",isInverted:o=!1,isInteractive:n=!1,delayIn:a=500,delayOut:i=500},l)=>u.jsx(af,{css:iH({isInverted:o,isInteractive:n}),content:t,placement:r,interactive:n,arrow:!n,delay:[a,i],ref:l,children:e}));y8.displayName="Tooltip";const Lu=y8;var lH={name:"1tjylrs",styles:"width:fit-content"},sH={name:"1tjylrs",styles:"width:fit-content"};const m8=({item:e,sorting:t,isNumerical:r})=>{const o=z(),n=Ye(e)?e.trim().toLowerCase().replace(/ /g,"_"):e.content.sortingKey.trim().toLowerCase().replace(/ /g,"_"),a=()=>!Ye(e)&&(e==null?void 0:e.isSortable)&&(e.content.sortingKey===(t==null?void 0:t.column)?u.jsx("div",{css:E.css({transition:"0.3s all ease-in-out",transformOrigin:"center",width:"fit-content",transform:`rotate(${t.order==="asc"?"180":"0"}deg)`},"",""),children:u.jsx(U,{name:"triangleDown",dataTestId:`table_icon_sort_${n}_${t.order==="desc"?"desc":"asc"}`,color:o.tokens.colors.get("textColor.default.secondary")})},`table_icon_sort_${n}`):u.jsx("div",{css:lH,children:u.jsx(U,{name:"sort",dataTestId:`table_icon_sort_${n}`,color:o.tokens.colors.get("textColor.default.secondary")})},`table_icon_sort_${n}`)),i=()=>{var s,c;return!Ye(e)&&((s=e==null?void 0:e.tooltip)==null?void 0:s.content)&&u.jsx("div",{css:sH,children:u.jsx(Lu,{content:(c=e==null?void 0:e.tooltip)==null?void 0:c.content,placement:e==null?void 0:e.tooltip.placement,children:u.jsx(U,{name:"informational",dataTestId:`table_icon_tooltip_${n}`,color:o.tokens.colors.get("textColor.default.secondary")})})},`table_icon_tooltip_${n}`)},l=()=>r?[a(),i()]:[i(),a()];return Ye(e)?u.jsx("div",{css:Mu(),children:e}):oH(e)?u.jsxs("div",{"data-testid":`header_${n}`,css:b8("8"),children:[u.jsx("span",{css:Mu(),children:e.content.label}),u.jsx("div",{css:b8("4"),children:l()})]}):u.jsx("div",{css:Mu(),children:e.content.label})};var cH={name:"1sdvxj3",styles:"&>div>span{color:black;font-weight:700;}"};const w8=()=>cH,uH=({isActive:e})=>t=>E.css("cursor:pointer;position:relative;height:",R(64),";",e&&w8()," &:hover{",w8(),";background-color:",t.tokens.colors.get("palette.secondary.muted"),";}",""),dH=(e,t,r,o,n)=>{if(e)return t==="th"&&typeof e=="string"?[r,"table_header",e==null?void 0:e.replace(/ /g,"_").toLowerCase()].filter(a=>a).join("_"):[r,o!==void 0?`table_row_${o}`:"",n!==void 0?`cell_${n}`:""].filter(a=>a).join("_")},S8=g.memo(({textAlign:e="left",component:t="td",width:r,isSticky:o=!1,isPaddedSticky:n=!1,colSpan:a,children:i,isSortable:l=!1,isActive:s=!1,type:c="normal",isPadded:d=!1,dataTestIdPrefix:p,rowIndex:f,onClick:v,index:y})=>{const m=z(),w=t,b=dH(i,t,p,f,y);return u.jsx(w,{colSpan:a,css:[{position:"relative",textAlign:e,padding:`${m.globals.spacing.get("3")} ${d?m.globals.spacing.get("4"):0}`,width:r},t==="th"&&{paddingTop:m.globals.spacing.get("4"),paddingBottom:m.globals.spacing.get("4"),fontWeight:m.globals.typography.fontWeight.get("bold"),fontSize:m.globals.typography.fontSize.get("3")},t==="th"&&l&&{...uH({isActive:s})(m)},o&&{top:n?H.rem(64):0,left:0,zIndex:2,position:"sticky",background:m.globals.oldColors.white,boxShadow:`inset 0px -1px 0px 0px ${io(m)}`},c==="financial"&&{borderLeft:`1px solid ${io(m)}`},"",""],onClick:v,"data-testid":b,children:i})});S8.displayName="TableCell";const He=S8,Yo=({isNested:e,isSelected:t,children:r,onClick:o,...n})=>{const a=z();return u.jsx("tr",{onClick:()=>{o&&o()},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:o&&"pointer","&:hover":{backgroundColor:o&&a.tokens.colors.get("palette.secondary.base")},"> td":{paddingTop:e?0:void 0,paddingBottom:e?0:void 0}},"",""],...n,children:r})},Ou=g.createContext({row:{id:0,cells:[]},columnsWithWidth:[],isPadded:!1,hasOnSelectionChange:!1,isRowSelected:!1,columnCount:0,columns:[],hasFixedHeader:!1,tChange:()=>{},type:"normal",isBordered:!1}),fH=()=>e=>E.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")},"",""),E8=xe("div",{target:"ep8j7z50"})({name:"1h52dri",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap"}),x8=({children:e,isAlwaysVisible:t=!1,tooltipContent:r,placement:o="bottom"})=>{const[n,a]=h.useState(!1),i=h.useRef(null),l=i.current,s=h.useCallback(()=>{a(!0)},[]),c=h.useCallback(()=>{a(!1)},[]),d=h.useMemo(()=>!!l&&l.scrollWidth>l.offsetWidth,[l]);return h.useCallback((f,v,y,m)=>f===void 0?!1:m?!0:v&&y,[])(r,n,d,t)&&r?u.jsx(Lu,{placement:o,content:r,children:u.jsx(E8,{ref:i,onMouseEnter:s,onMouseLeave:c,children:e})}):u.jsx(E8,{ref:i,onMouseEnter:s,onMouseLeave:c,children:e})},pH=({columns:e,isPadded:t,columnWidth:r,tooltipContent:o,content:n,colSpan:a,rowType:i,cellType:l,align:s,cellCounter:c,dataTestIdPrefix:d,rowIndex:p,index:f})=>{const v=!Number.isNaN(Number(n));return u.jsxs(He,{textAlign:s||(v?"right":"left"),colSpan:a,type:l,isPadded:t,width:r?`${r}%`:"initial",dataTestIdPrefix:d,rowIndex:p,index:f,children:[i==="nested-header"&&u.jsx("div",{css:fH(),children:e[c]}),u.jsx(x8,{placement:"bottom",tooltipContent:o,children:wl(n)?n({content:n,colSpan:a}):u.jsx("span",{"data-column":e[c],children:n})})]})},gH=h.memo(pH),vH=({isExpandedExists:e,isChecked:t,toggleIsChecked:r,actionWidth:o,dataTestIdPrefix:n,rowIndex:a,index:i})=>{const l=z(),s=lo(),c=o?`${o}%`:s.des1920?"5%":"7%";return e?u.jsx(He,{width:c,dataTestIdPrefix:n,rowIndex:a,index:i,children:u.jsx("div",{children:u.jsx("div",{css:E.css({display:"flex",justifyContent:"center",padding:`${l.globals.spacing.get("3")} ${l.globals.spacing.get("4")}`},"",""),children:u.jsx("div",{css:E.css({transition:"0.3s all ease-in-out",transformOrigin:"center",width:"fit-content",transform:`rotate(${t?"180":"0"}deg)`},"",""),onClick:d=>d.stopPropagation(),children:u.jsx(vt,{type:"tertiary",name:"chevronDown",onClick:r,dataTestId:"expanded-button"})})})})}):null},hH=h.memo(vH),CH=({isBordered:e,isCustomCell:t})=>r=>E.css({borderBottom:e?`${yl(1)} solid ${io(r)}`:"none","td:first-of-type":{paddingLeft:r.globals.spacing.get("6")},"td:last-child":{paddingRight:t?"inherit":r.globals.spacing.get("6")}},"",""),bH=({isFirstRow:e,hasFixedHeader:t})=>r=>E.css({flex:1,flexDirection:"row",display:"flex",borderTop:e&&!t?`${yl(1)} solid ${io(r)}`:"none",borderBottom:`${yl(1)} solid ${io(r)}`},"",""),yH=(e=!1)=>{const[t,r]=g.useState(e),o=g.useCallback(()=>r(n=>!n),[r]);return[t,o]};var mH={name:"1hsa9kz",styles:"width:100%;border-collapse:collapse;table-layout:fixed"};const $8=()=>()=>mH,wH=e=>t=>E.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},"",""),SH=(e,t,r)=>o=>E.css({paddingTop:o.globals.spacing.get("6"),paddingBottom:o.globals.spacing.get("6"),borderBottomWidth:R(e||r?0:1),borderBottomStyle:"solid",borderBottomColor:io(o),"th:first-of-type":{paddingLeft:t?void 0:o.globals.spacing.get("6")},"th:last-child":{paddingRight:e?void 0:o.globals.spacing.get("6")}},"",""),Iu=g.memo(({isChecked:e=!1,toggleIsChecked:t=()=>{},dataTestIdPrefix:r,rowIndex:o})=>{var b,$,P;const{columnsWithWidth:n,hasOnSelectionChange:a,isPadded:i,columns:l,tChange:s,row:c,type:d,isRowSelected:p,isBordered:f,actionWidth:v}=g.useContext(Ou),{expanded:y}=c,m=!!y,[w]=(b=c.cells)==null?void 0:b.slice(-1);return u.jsxs(Yo,{isSelected:p,onClick:m?t:void 0,css:CH({isBordered:f,isCustomCell:m||wl(w.content)}),children:[a&&u.jsx(He,{component:"th",isSticky:!1,width:50,isPadded:i,dataTestIdPrefix:r,rowIndex:o,index:0,children:u.jsx("div",{onClick:L=>L.stopPropagation(),children:u.jsx(Al,{dataTestPrefixId:"row-check",isSelected:p,onChange:s})})}),($=c.cells)==null?void 0:$.map(({content:L,tooltipContent:I,hasTruncatedTooltip:x=!0,colSpan:O,type:C,align:B},_)=>u.jsx(gH,{cellCounter:_,columnWidth:n[_],columns:l,tooltipContent:x?wl(L)?I:I??L.toString():void 0,isPadded:i,colSpan:O,content:L,cellType:C,rowType:d,align:B,dataTestIdPrefix:r,rowIndex:o,index:_+1},`${c.id}-${_}`)),u.jsx(hH,{isExpandedExists:m,isChecked:e,toggleIsChecked:t,actionWidth:v,dataTestIdPrefix:r,rowIndex:o,index:((P=c.cells)==null?void 0:P.length)+1})]})});Iu.displayName="RenderRowWithCells";const T8=({row:e,dataTestIdPrefix:t,rowIndex:r,isInitiallyExpanded:o})=>{const{isRowSelected:n,columnCount:a,hasFixedHeader:i}=g.useContext(Ou),{expanded:l}=e,[s,c]=yH(o),d=l?l({row:e,isSelected:n,isExpanded:s}):null;return u.jsx(g.Fragment,{children:l?u.jsx(Yo,{isNested:!0,isSelected:n,children:u.jsx(He,{colSpan:a,isPadded:!1,dataTestIdPrefix:t,rowIndex:r,children:u.jsx("div",{css:bH({isFirstRow:r===1,hasFixedHeader:i}),children:u.jsx("table",{css:$8()(),children:u.jsxs("tbody",{children:[u.jsx(Iu,{isChecked:s,toggleIsChecked:c,dataTestIdPrefix:t,rowIndex:r}),s&&u.jsx(Yo,{isNested:!0,children:u.jsx(He,{colSpan:a,dataTestIdPrefix:t,rowIndex:r,index:"expanded",children:d})})]})})})})}):u.jsx(Iu,{dataTestIdPrefix:t,rowIndex:r})})};T8.displayName="RenderRowOrNestedRow";const EH=g.memo(T8),xH=e=>{const{row:t,isRowSelected:r,onSelectionAdd:o,isPadded:n,columns:a,hasFixedHeader:i,type:l,columnsWithWidth:s,columnCount:c,hasOnSelectionChange:d,isExpanded:p,actionWidth:f,isInitiallyExpanded:v,dataTestIdPrefix:y,rowIndex:m}=e,w=h.useCallback(()=>{o(t.id)},[o,t.id]);return u.jsx(Ou.Provider,{value:{row:t,columnsWithWidth:s,hasOnSelectionChange:d,isPadded:n,columns:a,hasFixedHeader:i,tChange:w,type:l,columnCount:c,isRowSelected:r,isBordered:!p,actionWidth:f},children:u.jsx(EH,{row:t,dataTestIdPrefix:y,rowIndex:m,isInitiallyExpanded:v})})},$H=h.memo(xH),TH=(e,t,r)=>!t&&!r?e.length:t&&r?e.length+2:e.length+1;function kH({data:e,columns:t,type:r="normal",hasFixedHeader:o=!1,hasFixedCTA:n=!1,onCheck:a,isPadded:i=!1,onSort:l,initialSort:s={column:"",order:"desc"},sortDir:c,topLeftText:d,topRightArea:p,actionWidth:f,isInitiallyExpanded:v=!1,dataTestIdPrefix:y}){const m=lo(),w=f?`${f}%`:m.des1920?"5%":"7%",[b,$]=h.useState(void 0),[P,L]=h.useState(s),I=e.some(M=>!!M.expanded),x=TH(t,a,I);h.useEffect(()=>{a&&b&&a(b)},[a,b]),h.useEffect(()=>{$(void 0)},[e]);const O=h.useCallback(M=>{$((S=[])=>S.indexOf(M)===-1?[...S,M]:S.filter(k=>k!==M))},[]),C=h.useMemo(()=>{var M,S;return((S=(M=jt(e))==null?void 0:M.cells)==null?void 0:S.map(({content:k})=>!Number.isNaN(Number(k))))||[]},[e]),B=h.useMemo(()=>{var M,S;return((S=(M=jt(e))==null?void 0:M.cells)==null?void 0:S.map(({align:k})=>k))||[]},[e]),_=h.useMemo(()=>{var M,S;return((S=(M=jt(e))==null?void 0:M.cells)==null?void 0:S.map(({widthPercentage:k})=>k))||[]},[e]),A=M=>{L(S=>c?(l==null||l(M,c),{column:M,order:c}):S.column!==M?(l==null||l(M,"asc"),{column:M,order:"asc"}):(l==null||l(M,S.order==="asc"?"desc":"asc"),{column:M,order:S.order==="asc"?"desc":"asc"}))};return u.jsxs(h.Fragment,{children:[(a||p||d)&&u.jsx("table",{css:wH(n),children:u.jsx("thead",{children:u.jsxs(Yo,{children:[a&&u.jsx(He,{component:"th",width:50,isPadded:i,dataTestIdPrefix:y,rowIndex:0,index:0,children:u.jsx(Al,{isSelected:!!(b&&b.length>0),isIndeterminate:b&&b.length>0&&(b==null?void 0:b.length)!==e.length,onChange:()=>{(b==null?void 0:b.length)===e.length?$([]):$(e.map(({id:M})=>M))}})}),u.jsx(He,{isPadded:i,dataTestIdPrefix:y,rowIndex:0,index:1,children:b&&(b==null?void 0:b.length)>0?u.jsxs("span",{children:[u.jsx("b",{children:b.length})," ",nf("item",b.length)," selected"]}):d}),p&&u.jsx(He,{textAlign:"right",isPadded:i,colSpan:x-(a?2:1),dataTestIdPrefix:y,rowIndex:0,index:2,children:p(e,b)})]})})}),u.jsxs("table",{css:$8(),children:[(a||p||r==="normal")&&u.jsx("thead",{children:r==="normal"&&u.jsxs(Yo,{css:SH(I,!!a,o),children:[a&&u.jsx(He,{component:"th",isPaddedSticky:n,isSticky:o,width:50,isPadded:i,dataTestIdPrefix:y}),t.map((M,S)=>u.jsx(He,{textAlign:B&&B[S]?B[S]:C&&C[S]?"right":"left",component:"th",isSticky:o,isPaddedSticky:n,isPadded:i,width:_[S]?`${_[S]}%`:"initial",isSortable:!Ye(M)&&M.isSortable,isActive:!Ye(M)&&M.content.sortingKey===P.column,onClick:()=>{!Ye(M)&&M.isSortable&&A(M.content.sortingKey)},dataTestIdPrefix:`${y}_${Ye(M)?M.trim().toLowerCase().replace(/ /g,"_"):M.content.sortingKey.trim().toLowerCase().replace(/ /g,"_")}`,children:Ye(M)?u.jsx(m8,{item:M}):u.jsx(m8,{sorting:P,isNumerical:C&&C[S],item:M})},`${Ye(M)?M:M.content.sortingKey}`)),I&&u.jsx(He,{component:"th",isSticky:o,isPaddedSticky:n,width:w,dataTestIdPrefix:y})]})}),u.jsx("tbody",{children:e.map((M,S)=>u.jsx($H,{row:M,isRowSelected:b?b.indexOf(M.id)!==-1:!1,onSelectionAdd:O,isPadded:i,columns:t,hasFixedHeader:o,type:r,columnCount:x,columnsWithWidth:_,hasOnSelectionChange:!!a,isExpanded:!!M.expanded,actionWidth:f,isInitiallyExpanded:v,dataTestIdPrefix:y,rowIndex:S+1},M.id))})]})]})}const PH=h.memo(kH,Me),_H={paddingVerticalInline:{value:"{spacing.6}",type:"spacing",description:"sets both top and bottom padding for _block search bar used only menus (with larger height)"},backgroundColor:{default:{value:"{sem.colors.backgroundColor.default}",type:"color",description:"Sets backgroundColor for default search component"},focused:{value:"{sem.colors.palette.tertiary.muted}",type:"color",description:"Sets backgroundColor for focused search component"}},iconSize:{value:"{sem.icon.size.3}",type:"sizing",description:"Sets icon size for search"},paddingHorizontalRounded:{value:"{spacing.6}",type:"spacing",description:"Sets left and right padding for rounded search variant"},paddingHorizontalSquare:{value:"{spacing.5}",type:"spacing",description:"Sets left and right padding for square search variant"},borderColor:{default:{value:"{sem.colors.borderColor.interactive.default}",type:"color",description:"Sets borderColor for default search component"},active:{value:"{sem.colors.borderColor.interactive.active}",type:"color",description:"Sets borderColor for active search component"}},textColor:{default:{value:"{sem.colors.textColor.default.secondary}",type:"color",description:"Sets textColor in default state"},focused:{value:"{sem.colors.textColor.default.primary}",type:"color",description:"Sets textColor in focused and populated state"}},borderRadius:{rounded:{value:"{borderRadius.7}",type:"borderRadius",description:"Sets rounded borderRadius for rounded search variant"},inline:{value:"{borderRadius.0}",type:"borderRadius",description:"Sets square borderRadius for inline search variant"},square:{value:"{borderRadius.2}",type:"borderRadius",description:"Sets square borderRadius for search square variant"}},borderWidth:{1:{value:"{borderWidth.1}",type:"borderWidth",description:"Sets borderWidth for default search component"},2:{value:"{borderWidth.2}",type:"borderWidth",description:"Sets borderWidth for active search component"}},height:{normal:{value:"{sizing.9}",type:"sizing",description:"Sets height for search (normal size variant)"}},gap:{value:"{spacing.4}",type:"spacing",description:"Sets gap for search field"},text:{value:"{sem.typography.normal.body02}",type:"typography",description:"Sets text style for search copy"}},dl=e=>se(_H,e);var AH={name:"zjik7",styles:"display:flex"};const MH=()=>AH,LH=()=>e=>{const t=dl(e);return E.css("width:100%;input{",G(t("text")),";&::placeholder{color:",t("textColor.default"),";}::-webkit-search-cancel-button{appearance:none;}}","")},OH=()=>e=>{const t=dl(e);return E.css("button{border-top-left-radius:0;border-bottom-left-radius:0;border:none;box-shadow:",`inset 0 0 0 ${t("borderWidth.1")} ${t("borderColor.default")}`,";position:relative;z-index:0;margin-left:-1px;&:hover[data-active='false']:enabled{background:",t("backgroundColor.focused"),";}&:focus-within:enabled{border-left:none;box-shadow:",`inset 0 0 0 ${t("borderWidth.2")} ${t("borderColor.active")}`,";z-index:1;&[data-active='false']{background:",t("backgroundColor.focused"),";}}}","")},IH=({hasFilter:e,isDisabled:t,sx:r})=>o=>{const n=dl(o);return{wrapper:{height:n("height.normal"),...e&&{minWidth:R(240)},zIndex:1,borderRadius:e?`${n("borderRadius.rounded")} 0 0 ${n("borderRadius.rounded")}`:n("borderRadius.rounded"),background:n("backgroundColor.default"),boxShadow:`inset 0 0 0 ${n("borderWidth.1")} ${n("borderColor.default")}`,...!t&&{"&:hover":{background:n("backgroundColor.focused")},"&:focus-within":{background:n("backgroundColor.focused"),outline:"none",boxShadow:`inset 0 0 0 ${n("borderWidth.2")} ${n("borderColor.active")}`}},...r==null?void 0:r.wrapper},textField:{gap:R(8),paddingRight:n("paddingHorizontalRounded"),paddingLeft:n("paddingHorizontalRounded"),...r==null?void 0:r.textField}}};var BH={name:"jl0oj1",styles:"/** @TODO replace with search tokens */border-bottom:1px solid #b9cdfc;label{display:none;}input{border:none;top:0;&:focus{outline:none;border:none;box-shadow:none;}}"};const RH=()=>BH,DH=({onInputChange:e,value:t,dataTestId:r,isLoading:o,isMulti:n,isSearchable:a,onClear:i,selectedFilter:l,onFilterDelete:s,dataTestPrefixId:c})=>{const d=z(),p=h.useMemo(()=>o?u.jsx(al,{type:"circular",dataTestPrefixId:"search"}):u.jsx(U,{size:d.tokens.icon.get("size.3"),name:"search",color:d.tokens.colors.get("textColor.default.secondary")}),[o,d.tokens.colors,d.tokens.icon]);return u.jsxs("div",{css:RH(),children:[!n&&a&&u.jsx(br,{autoFocus:!0,dataTestPrefixId:`${c}_filter_search`,onChange:e,"data-testid":X("filter-input",r),status:{type:"normal"},label:"Search",placeholder:"Search",value:t,suffix:p,sx:{wrapper:{"&, &:focus-within, &:hover":{outline:"none",border:"none",boxShadow:"none",backgroundColor:"white"}}}}),n===!0&&u.jsx(ll,{selectedOptions:l||[],dataTestPrefixId:`${c}_filter_search`,onInput:e,onOptionDelete:s,onClearAllOptions:i,isInteractive:!1,value:t,label:"Search",placeholder:"Search",isResponsive:!0,isLoading:o,sx:{textField:{paddingTop:"12px",paddingBottom:"12px",width:"100%"},wrapper:{boxShadow:"none",borderRadius:0,background:"white"}}})]})},FH=({isMulti:e})=>()=>E.css("&>div,ul{border:none;border-radius:0;}&>div{max-width:",R(hu[e?"multi":"single"].maxWidth),";}ul{max-height:",R(hu.maxHeight),";}",""),qH=()=>e=>{const t=yr(e);return E.css("color:",t("textColor.secondary"),";height:",t("height"),";padding:0 ",t("paddingHorizontal"),";",Qe,";",G(t("default")),";","")},HH=({items:e,onOptionSelect:t,defaultValue:r,selectedFilter:o,isVirtualized:n,hasSelectAllOption:a,isMulti:i,dataTestPrefixId:l,listRef:s})=>{const c=e.length>xD,d=c?sR:void 0,p=h.useCallback(f=>{const v=String(jt(Array.from(f)));if(v===_e.value)t(_e);else{const y=Nu(e,m=>m.options||m).find(m=>String(m.value)===v);y&&t(y)}},[e,t]);return e.length?u.jsx("div",{css:FH({isMulti:i}),children:u.jsxs(Tu,{ref:s,label:"filter-options",selectedKeys:i===!1&&o?[o.value]:[],disabledKeys:e.filter(f=>f.isDisabled).map(f=>f.value),onSelectionChange:p,isVirtualized:n&&c,height:d,dataTestPrefixId:`${l}_filter_list`,children:[a?u.jsx(wr,{textValue:_e.label,children:u.jsx(mr,{children:_e.label})},_e.value):null,e.filter(f=>f.value!==r.value).map(f=>u.jsx(wr,{children:u.jsx(mr,{children:f.label})},f.value))]})}):u.jsx("div",{css:qH(),"data-testid":`${l}_filter_list_no_options`,children:"No options"})},NH=()=>e=>{const t=Y9(e);return E.css("position:absolute;left:0;height:auto;border:",R(1)," solid ",t("borderColor"),";border-radius:",e.globals.spacing.get("3"),";background-color:",e.globals.colors.get("neutral.1"),";box-shadow:",t("boxShadow"),";z-index:500;overflow:hidden;min-width:100%;","")},zH=({isSearchable:e,isMulti:t,searchValue:r,handleChange:o,onClear:n,isLoading:a,filteredOptions:i,selectedFilter:l,isVirtualized:s,hasSelectAllOption:c,handleSelect:d,onFilterDelete:p,dataTestPrefixId:f,listRef:v})=>u.jsxs("div",{css:NH(),children:[(t===!0||e)&&u.jsx(DH,{isMulti:t,isSearchable:e,value:r,onInputChange:o,onClear:n,onFilterDelete:p,selectedFilter:l,dataTestPrefixId:f,isLoading:a}),u.jsx(HH,{listRef:v,dataTestPrefixId:f,items:i,isVirtualized:s,defaultValue:{label:"",value:""},isSearchable:e,selectedFilter:l,onOptionSelect:d,hasSelectAllOption:c,isMulti:t})]}),VH=({isMulti:e,setIsOpen:t,isSearchable:r,onChange:o,selectedFilter:n,onAsyncSearch:a,isAsync:i,minCharactersToSearch:l,items:s,onClear:c})=>{const[d,p]=h.useState(""),f=h.useMemo(()=>{if(!s)return;const $=e&&Array.isArray(n)?Wu(s,n,"value"):s;return i?$:$.filter(P=>!d||P.label.toLowerCase().includes(d.toLowerCase()))},[i,s,e,n,d]),v=$=>{e||t(!1),r&&p(""),e===!0?o&&n&&(sf($,_e)?o([...n,...f.filter(P=>!P.isDisabled)]):o([...n,$])):o($)},y=h.useCallback(lf($=>{a==null||a($)},400),[]);return{searchValue:d,handleFilterClick:v,handleInput:$=>{const{target:{value:P}}=$;if(r&&p(P),i){if($.persist(),l&&P.length&&P.length<l)return;y(P.trim())}},filteredOptions:f,handleFilterDelete:$=>{const P=Array.isArray(n)?n.filter(L=>L.value!==$.value):[];e===!0&&o&&o(P)},handleClear:()=>{c&&c(),p("")}}},k8=h.forwardRef((e,t)=>{const{label:r="Filter",filterType:o="preset",items:n,children:a,onChange:i,isMulti:l,selectedFilter:s,isVirtualized:c=!1,defaultValue:d,isDisabled:p,onClear:f,isAsync:v,onAsyncSearch:y,isLoading:m,isSearchable:w,minCharactersToSearch:b,hasSelectAllOption:$=!1,dataTestPrefixId:P="ictinus_filter"}=e,[L,I]=h.useState(!1),{searchValue:x,handleFilterClick:O,handleInput:C,filteredOptions:B,handleFilterDelete:_,handleClear:A}=VH({isMulti:l,setIsOpen:I,isSearchable:w,onChange:i,selectedFilter:s,onAsyncSearch:y,isAsync:v,minCharactersToSearch:b,items:n,onClear:f}),M=h.useMemo(()=>{var N;return l?`${r}: ${s!=null&&s.length?(N=s[0])==null?void 0:N.label:d.label}`:`${r}: ${(s==null?void 0:s.label)??d.label}`},[d.label,l,r,s]),[S,k]=h.useState(M);h.useEffect(()=>{k(M)},[M]);const q=l&&(s==null?void 0:s.length)>1?s.length-1:void 0,K=()=>{I(!L)},F=h.useRef(null),{keyboardProps:me}=tr({events:{keydown:{onArrowDown:()=>{L&&setTimeout(()=>{var we;const N=(we=F.current)==null?void 0:we.querySelectorAll('[role="option"]');if(N&&(N==null?void 0:N.length)>0){const Ae=vl(N);Ae instanceof HTMLElement&&typeof Ae.focus=="function"&&Ae.focus()}},0)}}}}),Ne=B?u.jsx(zH,{listRef:F,isMulti:l,isVirtualized:c,isSearchable:w,searchValue:x,handleChange:C,handleSelect:O,onFilterDelete:_,onClear:A,selectedFilter:s,filteredOptions:B,isLoading:m,hasSelectAllOption:$,dataTestPrefixId:P}):u.jsx("div",{"data-testid":`${P}_filter_overlay`,children:a({isOpen:L,setIsOpen:I,filterLabel:S,setFilterLabel:k})});return u.jsx(Zt,{onClick:()=>I(!1),children:u.jsx(ku,{isVisible:L,offsetY:8,hasWrapperWidth:!0,sx:{container:{width:"max-content"}},parent:u.jsx(r9,{ref:t,...Vu(me,"onBlur"),isMulti:l,isActive:L,moreFilters:q,onClear:A,onClick:K,filterType:o,isPopulated:!!(l?s!=null&&s.length:s),dataTestPrefixId:P,isDisabled:p,children:S}),children:L&&Ne})})});k8.displayName="Filter";const Bu=k8,P8=h.forwardRef(({isMulti:e,selectedFilter:t,onChange:r=()=>{},...o},n)=>{const[a,i]=h.useState(e?t||[]:t||void 0),l=h.useCallback(s=>{i(s),r(s)},[r]);return u.jsx(Bu,{...o,selectedFilter:a,isMulti:e,onChange:l,onClear:()=>i(e?[]:void 0),ref:n})});P8.displayName="StatefulFilter";const WH=h.memo(P8,Me),_8=h.forwardRef((e,t)=>{const{placeholder:r="Search",isDisabled:o,onClear:n,value:a,dataTestPrefixId:i="search",filterConfig:l,sx:s,...c}=e,d=z(),p=dl(d),f=a&&a.length>0,v=!!(l!=null&&l.defaultValue&&(l!=null&&l.label)&&(l!=null&&l.items));return cl(()=>{n&&n()}),u.jsxs("div",{css:MH(),"data-testid":"search_container",children:[u.jsxs(il,{dataTestPrefixId:i,isDisabled:o,sx:IH({hasFilter:v,isDisabled:o,sx:s})(d),children:[u.jsx(U,{name:"search",size:p("iconSize"),color:p("textColor.default")}),u.jsx("div",{css:LH(),children:u.jsx("input",{type:"search",css:Wo({placeholder:r}),placeholder:r,disabled:o,value:a,ref:t,"data-testid":`${i}_search_input`,...c})}),f&&!o&&u.jsx(U,{name:"close",size:p("iconSize"),color:p("textColor.default"),onClick:()=>{n()},dataTestId:"search-clear"})]}),v&&u.jsx("div",{css:OH(),children:u.jsx(Bu,{...l,isDisabled:o,dataTestPrefixId:`${i}_search_filter`})})]})});_8.displayName="Search";const A8=h.memo(_8,Me),M8=h.forwardRef((e,t)=>{const{onClear:r,onInput:o,filterConfig:n,...a}=e,[i,l]=h.useState(),[s,c]=h.useState(void 0),d=()=>{l(""),r&&r()},p=()=>{c(void 0),n!=null&&n.onClear&&(n==null||n.onClear())},f=m=>{l(m.target.value),o&&o(m.target.value)},y=!!(n!=null&&n.defaultValue&&(n!=null&&n.label)&&(n!=null&&n.items))?{filterConfig:{defaultValue:{label:"All",value:"all"},selectedFilter:s,onChange:c,onClear:p,...n}}:{};return u.jsx(A8,{ref:t,value:i,onClear:d,onInput:f,...y,...a})});M8.displayName="StatefulSearch";const UH=h.memo(M8,Me),jH=({isResizeEnabled:e=!1})=>t=>{const r=ge(t);return{wrapper:{width:"auto",height:"auto",minWidth:R(r("minWidth.large.normal"))},textField:{padding:`${r("paddingVertical")} ${r("paddingContentLeft")}`},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")}}}}},KH=({isDisabled:e})=>t=>{const r=ge(t);return E.css({display:"flex",alignItems:"center",justifyContent:"flex-end",padding:`${r("hintPadding")} 0 0`,color:r("textColor.inputColorAlt"),span:{alignItems:"stretch",padding:0},opacity:e?t.tokens.disabledState.get("default"):1},Vo(t),"","")};var ZH={name:"1d3w5wq",styles:"width:100%"};const L8=g.forwardRef((e,t)=>{var $;const{id:r=void 0,label:o,placeholder:n,isRequired:a=!1,isReadOnly:i,isDisabled:l,status:s,isResizeEnabled:c=!0,maxCharacters:d,...p}=e,f=(s==null?void 0:s.type)==="read-only",v=z(),y=jH({isResizeEnabled:!l&&!f&&c,label:o,placeholder:n})(v),m=d&&(s==null?void 0:s.type)!="error",w=m?u.jsxs("div",{css:KH({isDisabled:l}),children:[($=p.value)==null?void 0:$.length,"/",d]}):void 0,b=s?{...s,hintMessage:m?void 0:s.hintMessage}:void 0;return u.jsxs(g.Fragment,{children:[u.jsx(il,{...e,status:b,sx:y,children:u.jsxs("div",{css:ZH,children:[u.jsx("textarea",{role:"textbox","aria-multiline":!0,readOnly:f||i,css:Wo({placeholder:n,label:o,sx:y,isLocked:f,isDisabled:l}),placeholder:n?`${n} ${a?"*":""}`:o,required:a,id:r,maxLength:d,disabled:l||f,...p,ref:t}),u.jsx(ol,{htmlFor:r,label:o,isRequired:a,isAnimated:!!p.value,hasError:!l&&(s==null?void 0:s.type)==="error"})]})}),w]})});L8.displayName="TextArea";const GH=g.memo(L8,Me),YH={isDark:!1,toggle:()=>{}},O8=g.createContext(YH),XH=()=>g.useContext(O8),JH=({children:e})=>{const[t,r]=g.useState({isDark:!1});return u.jsx(O8.Provider,{value:{isDark:t.isDark,toggle:()=>{r(o=>({isDark:!o.isDark}))}},children:e})},QH={get:Ee({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"}},be.BoxShadow)},eN={get:co({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"}}},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"}}})},tN={get:co({default:{value:"{opacity.4}",type:"opacity"}})},rN={get:co({size:{1:{value:"{sizing.3}",type:"sizing",description:"Sets extra small icon size"},2:{value:"{sizing.4}",type:"sizing",description:"Sets small icon size"},3:{value:"{sizing.5}",type:"sizing",description:"Sets medium icon size"},4:{value:"{sizing.6}",type:"sizing",description:"Sets lage icon size"}}})},oN={get:co({hover:{1:{value:"{sizing.7}",type:"sizing",description:"Sets extra small hover size"},2:{value:"{sizing.8}",type:"sizing",description:"Sets small hover size"},3:{value:"{sizing.9}",type:"sizing",description:"Sets medium hover size"},4:{value:"{sizing.10}",type:"sizing",description:"Sets lage hover size"}},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"}}})},nN={get:p2({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"}}})},I8={semantic:{disabledState:tN,colors:eN,icon:rN,state:oN,typography:nN,boxShadow:QH}},Ru=e=>({globals:Gt,colorScheme:e,overrides:i2,tokens:{...ve(I8,e||"semantic",I8.semantic)},utils:{getColor:El(Gt.oldColors),getAAColorFromSwatches:d2(Gt.oldColors),getAAColor:xl(Gt.oldColors)}}),aN=e=>E.css("::-webkit-scrollbar{width:",e.globals.spacing.get("4"),";height:",e.globals.spacing.get("4"),";}::-webkit-scrollbar-track{background:transparent;}::-webkit-scrollbar-thumb{background:",e.tokens.colors.get("palette.primary.muted"),";border-radius:",e.globals.spacing.get("9"),";}::-webkit-scrollbar-thumb:hover{background:",e.tokens.colors.get("palette.primary.base"),";}@-moz-document url-prefix(){*{scrollbar-width:thin;}}",""),iN=e=>E.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');{}",cf,";",aN(e)," body,html{font-family:'Roboto',Tahoma,sans-serif;font-size:16px;font-weight:normal;}body{",J7(e),";}#root{}h1{",j7(e),";}h2{",K7(e),";}h3{",Z7(e),";}h4{",G7(e),";}h5{",Y7(e),";}*:focus{outline:0;}",""),lN=[{condition:({colorAfterSplit:e})=>e.length!==2,error:({color:e})=>new Kt(`Error trying to translate your component color: ${e}`)},{condition:({colorAfterSplit:e})=>!s2.includes(e[0]),error:({color:e})=>new Kt(`You passed a wrong color for the first argument: ${e} - try something like red-500`)},{condition:({colorAfterSplit:e})=>!c2.includes(Number(e[1])),error:({color:e})=>new Kt(`You passed a wrong shade for the second argument: ${e} - try something like red-500`)}],sN=e=>{const t=e.split("-");en(lN,{color:e,colorAfterSplit:t});const r=t[0],o=Number(t[1]);return{color:r,shade:o}},cN={typesShadesColor:{},calculateColorBetweenColorAndType:(e,t)=>{}},uN=g.createContext(cN),dN=(e,t)=>Sl.reduce((r,o)=>{const n=e[o][u2],a=Xo(t);return r[o]=a.reduce((i,l)=>{const c=Xo(t[l]).find(d=>t[l][d].toLowerCase()===n.toLowerCase());return c?{shade:Number(c),color:l}:i},{}),r},{}),fN=({children:e})=>{const t=z(),r=bl(t.globals.oldColors,Sl),o=g.useMemo(()=>dN(r,t.globals.oldColors.flat),[r,t]),n=g.useCallback((a,i)=>{const l=a?sN(a):void 0;return l||o[i]},[r,t,o]);return u.jsx(uN.Provider,{value:{typesShadesColor:o,calculateColorBetweenColorAndType:n},children:e})},pN=(e,t)=>zu(Ru(t),bl(e,Xo(Ru(t)))),gN=({theme:e={},children:t})=>u.jsx(JH,{children:u.jsx(vN,{theme:e,children:t})}),vN=({theme:e={},children:t})=>{const o=XH().isDark?"dark":"semantic",n={colorScheme:o,overrides:e==null?void 0:e.overrides};return u.jsx(E.ThemeProvider,{theme:pN(n,o),children:u.jsxs(fN,{children:[u.jsx(E.Global,{styles:iN}),t]})})},hN=gN,B8={notification:`max-height: ${R(294)};`,generic:"max-height: none;"},CN=(e,t,r)=>{const o=Ct(e)?r.tokens.colors.get(`borderColor.interactive.${ht(e)}`):r.utils.getColor(e,500,"normal");return t==="outlined"?`border: ${r.globals.borderWidth.get("2")} solid ${o}`:`box-shadow: ${r.tokens.boxShadow.get("2")}
|
|
131
|
+
`,nq=(e,t)=>r=>E.css("display:flex;flex-direction:column;overflow:hidden;padding:",r.globals.spacing.get("6"),";box-sizing:border-box;max-height:",R(294),";border-radius:",r.globals.borderRadius.get("3"),";background:",r.tokens.colors.get("backgroundColor.default"),";",oq(e,t,r),";",""),aq=()=>e=>E.css("display:flex;align-items:center;justify-content:space-between;padding-bottom:",e.globals.spacing.get("6"),";","");var iq={name:"s5xdrg",styles:"display:flex;align-items:center"};const lq=()=>()=>iq,sq=()=>e=>E.css("font-size:",e.globals.typography.fontSize.get("3"),";max-height:",R(194),";overflow:auto;width:",R(547),";",""),cq=({message:e,type:t,styleType:r="elevated",primaryCTALabel:o="OK",primaryCTA:n,secondaryCTALabel:a="Cancel",secondaryCTA:i,description:l,closeCTA:s,dataTestId:c})=>{const d=n&&o||i&&a,p=z();return u.jsxs("div",{css:nq(t,r),"notification-type":"snackbar",children:[u.jsxs("div",{css:aq(),children:[u.jsxs("div",{css:lq(),children:[u.jsx("div",{css:Q9(),children:u.jsx(U,{name:Pu(t),color:p.tokens.colors.get(`textColor.default.${ht(t)}`),size:24})}),u.jsx("div",{css:e8(t),children:e})]}),u.jsx("span",{css:jo(),onClick:s,"data-testid":X("snackbar-close",c),children:u.jsx(U,{name:"close",color:p.tokens.colors.get("textColor.default.secondary"),size:24})})]}),u.jsx("div",{css:sq(),"data-testid":X("snackbar-description",c),children:l}),d&&u.jsx(r8,{primaryCTA:n,primaryCTALabel:o,secondaryCTA:i,secondaryCTALabel:a,dataTestPrefixId:"snackbar",dataTestId:c})]})},uq={backgroundColor:{value:"{sem.colors.backgroundColor.default}",type:"color",description:"Sets backgroundColor for drawer container"},borderColor:{value:"{sem.colors.borderColor.decorative.default}",type:"color",description:"Sets borderColor for drawer container"},borderWidth:{value:"{borderWidth.1}",type:"borderWidth",description:"Sets borderWidth for drawer container"},boxShadow:{value:"{sem.boxShadow.3}",type:"boxShadow",description:"Sets boxShadow for drawer container"},backdropColor:{value:"{sem.colors.backdrop.default}",type:"color",description:"Sets color for content backdrop appearing behind drawer (if used)"},padding:{value:"{spacing.8}",type:"spacing",description:"Sets padding for drawer"}},Ko=e=>se(uq,e);var dq={name:"1x3zd6m",styles:"justify-content:flex-end;flex-direction:column"},fq={name:"1f60if8",styles:"justify-content:flex-end"},pq={name:"qdeacm",styles:"flex-direction:column"};const gq=e=>{switch(e){case"top":return pq;case"right":return fq;case"bottom":return dq;default:return E.css("","")}},vq=(e,t)=>{switch(t){case"top":return e?"translateY(0)":"translateY(-100%)";case"right":return e?"translateX(0)":"translateX(100%)";case"bottom":return e?"translateY(0)":"translateY(100%)";default:return e?"translateX(0)":"translateX(-100%)"}};var hq={name:"1y3chaq",styles:"right:0;bottom:0;top:0;left:0"},Cq={name:"s1n8ed",styles:"height:100vh"},bq={name:"lcsd53",styles:"width:100vw"};const yq=({isOpen:e,anchor:t,size:r,isBackgroundActive:o})=>()=>{const n=()=>(t==="left"||t==="right")&&o?E.css("width:",r,"%;",""):bq,a=()=>(t==="top"||t==="bottom")&&o?E.css("height:",r,"%;",""):Cq,i=()=>o?E.css("top:",t==="bottom"?void 0:0,";bottom:",t==="top"?void 0:0,";right:",t==="left"?void 0:0,";left:",t==="right"?void 0:0,";",""):hq;return E.css(Se,";position:fixed;",n(),";",a(),";z-index:2500;",i(),";background:",o?void 0:"rgba(200, 206, 255, 0.45)",";visibility:",e?"visible":"hidden",";opacity:",e?1:0,";",ie(.2)," ",gq(t),";","")},mq=({anchor:e,size:t,isBackgroundActive:r})=>e==="top"||e==="bottom"?{display:"flex",height:r?"100%":`${t}%`,width:"100%"}:{display:"flex",height:"100%",width:r?"100%":`${t}%`},wq=({isOpen:e,anchor:t,hasFixedLayout:r})=>o=>{const n=Ko(o);return E.css(Se,";flex-direction:column;overflow-y:",r?void 0:"auto",";background-color:",n("backgroundColor"),";box-shadow:",n("boxShadow"),";border:",n("borderWidth")," solid ",n("borderColor"),";width:100%;height:100%;transform:",vq(e,t),";",ie(.3),";","")},Sq=()=>e=>{const t=Ko(e);return E.css("position:absolute;top:",t("padding"),";right:",t("padding"),";","")},Eq=({isFixed:e,hasBoxShadow:t})=>r=>{const o=Ko(r);return e?E.css("padding:",o("padding"),";position:sticky;top:0;box-shadow:",t?r.tokens.boxShadow.get("2"):void 0,";transition:box-shadow 0.2s ease-in-out;",""):E.css("padding:",o("padding"),";flex:0;","")},xq=({hasFixedHeader:e})=>t=>{const r=Ko(t);return E.css("flex:1;overflow-y:",e?"auto":void 0,";padding:calc(",r("padding")," - ",H.rem(1),") ",r("padding"),";","")},$q=({isFixed:e,hasBoxShadow:t})=>r=>{const o=Ko(r);return e?E.css("position:sticky;bottom:0;padding:",o("padding"),";box-shadow:",t?r.tokens.boxShadow.get("5"):void 0,";transition:box-shadow 0.2s ease-in-out;",""):E.css("padding:",o("padding"),";","")},o8="SET_HAS_FIXED_LAYOUT",n8="SET_ON_CLOSE",a8="TOGGLE_IS_SCROLLBAR_ON_TOP",i8="TOGGLE_IS_SCROLLBAR_ON_BOTTOM",Tq=e=>({type:o8,payload:e}),kq=e=>({type:n8,payload:e}),l8=e=>({type:a8,payload:e}),s8=e=>({type:i8,payload:e}),_u=h.createContext(null),Pq=(e,t)=>{switch(t.type){case o8:return{...e,hasFixedLayout:t.payload};case n8:return{...e,onClose:t.payload};case a8:return{...e,isScrollbarOnTop:t.payload};case i8:return{...e,isScrollbarOnBottom:t.payload};default:return e}},c8=({hasFixedLayout:e=!1,onClose:t=()=>null,children:r})=>{const[o,n]=h.useReducer(Pq,{hasFixedLayout:e,onClose:t,isScrollbarOnTop:!1,isScrollbarOnBottom:!1});return u.jsx(_u.Provider,{value:[o,n],children:r})},Zo=()=>h.useContext(_u),u8=h.forwardRef(({isOpen:e,onClose:t,anchor:r,size:o,isBackgroundActive:n=!1,dataTestPrefixId:a="ictinus_drawer",hasFixedLayout:i=!1,parent:l=document.body,children:s},c)=>(cl(()=>{n||t()}),h.useEffect(()=>{e?l.style.overflow="hidden":l.style.overflow="unset"},[e,l.style]),l===null?null:gl.createPortal(u.jsx(c8,{hasFixedLayout:i,onClose:t,children:u.jsx("div",{css:yq({isOpen:e,anchor:r,size:o,isBackgroundActive:n}),children:u.jsx(Zt,{onClick:()=>{n||t()},cssStyles:mq({anchor:r,size:o,isBackgroundActive:n}),children:u.jsx("div",{ref:c,css:wq({isOpen:e,anchor:r,hasFixedLayout:i}),"data-testid":`${a}_drawer_container`,children:s})})})}),l)));u8.displayName="Drawer";const _q=u8,Aq=({children:e,dataTestPrefixId:t="ictinus_drawer"})=>{const[{hasFixedLayout:r,onClose:o=()=>null,isScrollbarOnTop:n}]=Zo();return u.jsxs("div",{css:Eq({isFixed:r,hasBoxShadow:!n}),children:[e,u.jsx("div",{css:Sq(),children:u.jsx(U,{name:"close",onClick:o,dataTestId:`${t}_close_button`})})]})},Mq=()=>{const[,e]=Zo(),t=h.useRef(),r=h.useRef(),o=h.useCallback(a=>{e(l8(a[0].isIntersecting))},[e]),n=h.useCallback(a=>{e(s8(a[0].isIntersecting))},[e]);return h.useEffect(()=>{const a=new IntersectionObserver(o);return t.current&&a.observe(t.current),()=>a.disconnect()},[o,t]),h.useEffect(()=>{const a=new IntersectionObserver(n);return r.current&&a.observe(r.current),()=>a.disconnect()},[n,r]),{contentTopRef:t,contentBottomRef:r}},Lq=({children:e,dataTestPrefixId:t="ictinus_drawer"})=>{const[{hasFixedLayout:r}]=Zo(),{contentTopRef:o,contentBottomRef:n}=Mq();return u.jsxs("div",{"data-testid":`${t}_content`,css:xq({hasFixedHeader:r}),children:[u.jsx("div",{css:E.css({height:H.rem(1)},"",""),ref:o}),e,u.jsx("div",{css:E.css({height:H.rem(1)},"",""),ref:n})]})},Oq=({children:e,dataTestPrefixId:t="ictinus_drawer"})=>{const[{hasFixedLayout:r,isScrollbarOnBottom:o}]=Zo();return u.jsx("div",{"data-testid":`${t}_footer`,css:$q({isFixed:r,hasBoxShadow:!o}),children:e})},Iq=({page:e=1,count:t=1,onChange:r})=>{const[o,n]=g.useState(e),a=o+1,i=o-1,l=a<=t,s=i>=1;g.useEffect(()=>{n(e)},[e]);const c=g.useCallback(()=>{n(1),r(1)},[r]),d=g.useCallback(()=>{n(t),r(t)},[r,t]),p=g.useCallback(()=>{let v=o;v+1<=t&&(v+=1),n(v),r(v)},[r,t,o]),f=g.useCallback(()=>{let v=o;v-1>=1&&(v-=1),n(v),r(v)},[r,o]);return{currentPage:o,hasNextPage:l,hasPrevPage:s,navigateToFirstPage:c,navigateToLastPage:d,navigateToNextPage:p,navigateToPrevPage:f}},Bq=({page:e=1,count:t,onChange:r=()=>{},isEnhancedPaginationVisible:o=!1,isNextPageDisabled:n,isPrevPageDisabled:a})=>{const i=z(),{currentPage:l,hasNextPage:s,hasPrevPage:c,navigateToFirstPage:d,navigateToLastPage:p,navigateToNextPage:f,navigateToPrevPage:v}=Iq({page:e,count:t,onChange:r});return u.jsxs("div",{css:E.css({flex:1,display:"flex",alignItems:"center",justifyContent:"space-between",color:i.tokens.colors.get("textColor.default.primary"),"> *":{padding:i.globals.spacing.get("4")}},"",""),children:[o&&u.jsx(vt,{iconName:"pageFirst",onClick:d,type:"tertiary",isDisabled:a||!c}),u.jsx(vt,{iconName:"chevronLeft",type:"tertiary",onClick:v,isDisabled:a||!c}),u.jsxs("div",{children:["Page ",l," of ",t]}),u.jsx(vt,{iconName:"chevronRight",type:"tertiary",onClick:f,isDisabled:n||!s}),o&&u.jsx(vt,{iconName:"pageLast",type:"tertiary",onClick:p,isDisabled:n||!s})]})},Rq=()=>e=>{const t=ge(e);return E.css("position:relative;min-width:",R(t("minWidth.small.normal")),";","")},Dq=(e,t)=>r=>{const o=ge(r);return E.css("padding:",o("addOn.padding.normal.left"),";display:flex;cursor:pointer;transform:rotate(",e&&!t?"180":"0","deg);",ie(.2),";","")},Fq=xe("div",{target:"exejjox0"})(""),qq=["p","pt","pr","pb","pl","px","py","m","mt","mr","mb","ml","mx","my"],d8=["color","backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundRepeat","backgroundSize","alignContent","alignItems","alignSelf","flexDirection","display","flex","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","justifyContent","justifyItems","justifySelf","position","width","minWidth","maxWidth","height","minHeight","maxHeight","overflow","m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","placeContent","placeItems","placeSelf","flexWrap","left","top","right","bottom","textOverflow","whiteSpace"],Hq=e=>bl(e,d8),Nq=e=>Ut(e,d8),zq=of((e,t,r,o,n)=>{if(t[o])return n==="spacing"?o==="px"||o==="mx"?{[r]:`0 ${e.globals[n].get(t[o]||"0")}`}:o==="py"||o==="my"?{[r]:`${e.globals[n].get(t[o]||"0")} 0`}:{[r]:e.globals[n].get(t[o])}:n==="color"?{[r]:e.tokens.colors.get(`textColor.${t[o]}`)}:{[r]:e.tokens.colors.get(`backgroundColor.${t[o]}`)}}),f8=h.forwardRef(({children:e,...t},r)=>{const o=z(),n=Hq(t),a=Nq(t),i=zq(o,n),l={...Ut(n,qq),...i("padding","p","spacing"),...i("paddingTop","pt","spacing"),...i("paddingRight","pr","spacing"),...i("paddingLeft","pl","spacing"),...i("paddingBottom","pb","spacing"),...i("padding","py","spacing"),...i("padding","px","spacing"),...i("margin","m","spacing"),...i("marginTop","mt","spacing"),...i("marginRight","mr","spacing"),...i("marginLeft","ml","spacing"),...i("marginBottom","mb","spacing"),...i("margin","my","spacing"),...i("margin","mx","spacing"),...i("top","top","spacing"),...i("right","right","spacing"),...i("left","left","spacing"),...i("bottom","bottom","spacing"),...i("color","color","color"),...i("backgroundColor","backgroundColor","backgroundColor")};return u.jsx(Fq,{ref:r,css:[E.css(l,"",""),"",""],...a,children:e})});f8.displayName="Box";const Vq=f8,Wq=({event:e,isSearchable:t,setSearchValue:r,isAsync:o,onChange:n,minCharactersToSearch:a=0})=>{const{target:{value:i}}=e;if(t&&r(i),o){if(e.persist(),a&&i.length&&i.length<a)return;n(i.trim())}},Au={label:"",value:""},p8=h.forwardRef((e,t)=>{const{selectedOption:r,isMulti:o,options:n,size:a="normal",isAsync:i=!1,isLoading:l=!1,asyncSearch:s=()=>{},status:c={type:"normal"},minCharactersToSearch:d=0,hasHighlightSearch:p=!1,isSearchable:f=!0,isVirtualized:v=!1,isDisabled:y,dataTestId:m,onChange:w,isCreatable:b=!1,hasSelectAllOption:$=!1,...P}=e,L=h.useRef(null),{keyboardProps:I}=tr({events:{keydown:{onArrowDown:()=>{_(!0),setTimeout(()=>{var ae;const Z=(ae=L.current)==null?void 0:ae.querySelectorAll('[role="option"]');if(Z&&(Z==null?void 0:Z.length)>0){const ee=jt(Z);ee instanceof HTMLElement&&typeof ee.focus=="function"&&ee.focus()}},0)},onEscape:()=>{var Z;(Z=M==null?void 0:M.current)==null||Z.blur(),_(!1),we()},onEnter:Z=>{Z.target.value.length>0&&setTimeout(()=>{var Xe;const ee=(Xe=L.current)==null?void 0:Xe.firstChild;ee instanceof HTMLElement&&typeof ee.click=="function"&&ee.click()},0)},onBackspace:()=>{F(""),_(!0),o||r&&w&&"label"in r&&r.label===q&&(w(void 0),k(""),s(""))},onAlphaNumerical:()=>{f&&_(!0)}}}}),{keyboardProps:x}=tr({events:{keydown:{onEscape:()=>{var Z;_(!1),(Z=M.current)==null||Z.focus()}}}}),O=z(),C=ge(O),[B,_]=h.useState(!1),A=h.useRef(null),M=Yt(A,t),[S,k]=h.useState(""),q=h.useMemo(()=>Array.isArray(r)||!r?S:S||(r==null?void 0:r.label),[S,r]),K=Z=>{var ae;if(o||_(!1),f&&k(""),o===!0){if(w&&r)if(Me(Z,_e))w(n.filter(ee=>!ee.isDisabled));else if(Z.isCreated){const ee={value:Z.value,label:Z.value.toString(),isCreated:!0};w([...r,ee])}else w([...r,Z])}else w&&w(Z);(ae=M.current)==null||ae.focus()},F=h.useCallback(rf(Z=>{s(Z)},400),[]),me=h.useCallback(Z=>{B||_(!0),Wq({event:Z,isSearchable:f,isAsync:i,setSearchValue:k,onChange:F,minCharactersToSearch:d})},[F,i,B,f,d]),Ne=h.useMemo(()=>{const Z=o&&Array.isArray(r)?Wu(n,r,"value"):n,ae=[];return i?ae.push(...Z):ae.push(...Z.filter(ee=>{var Xe;return!S||ee.label.toLowerCase().includes(S.toLowerCase())||!!((Xe=ee.options)!=null&&Xe.find(qu=>qu.label.toLowerCase().includes(S.toLowerCase())))}).map(ee=>{var Xe;return ee.label.toLowerCase().includes(S.toLowerCase())?ee:{...ee,options:(Xe=ee.options)==null?void 0:Xe.filter(qu=>qu.label.toLowerCase().includes(S.toLowerCase()))}})),b&&!ae.map(Xe=>Xe.label.toLowerCase()).includes(S.toLowerCase())&&S.length>0&&ae.push({value:S,label:`Create "${S}"`,isCreated:!0}),ae},[o,n,r,i,b,S]),N=h.useMemo(()=>f&&!Array.isArray(r)?S||r!=null&&r.value?"close":"search":"triangleDown",[r,f,S]),we=h.useCallback(()=>{f||_(!B),f&&!Array.isArray(r)&&(S||r!=null&&r.value)&&(k(""),w&&w(o?[]:void 0),s(""))},[f,B,r,S,w,s,o]),Ae=h.useMemo(()=>u.jsx("div",{css:Dq(B,f),children:l?u.jsx(Vq,{py:"2",display:"flex",alignItems:"center",children:u.jsx(al,{type:"circular",dataTestPrefixId:"select"})}):u.jsx(U,{size:C(`addOn.iconSize.${a}`),name:N,color:C("addOn.iconColor"),onClick:we,hasHover:!1,dataTestId:"select-right-icon"})}),[B,f,l,C,a,N,we]),HN=()=>{var Z,ae;B?f||(ae=M==null?void 0:M.current)==null||ae.blur():(Z=M==null?void 0:M.current)==null||Z.focus()},NN=b&&Ne.length===1&&Ne[0].isCreated,Fu=h.useRef(Qo("select_")).current;return u.jsx(Zt,{onClick:()=>{_(!1),k("")},children:u.jsx("div",{...!(y||c.type==="read-only")&&{onClick:HN},css:Rq(),...x,children:u.jsx(ku,{id:Fu,isVisible:B,hasWrapperWidth:!0,offsetY:8,parent:o?u.jsx(ll,{selectedOptions:r,onInput:me,onOptionDelete:Z=>{const ae=Array.isArray(r)?r.filter(ee=>typeof Z!="string"&&Z?ee.value!==Z.value:ee.value!==Z):[];w&&w(ae)},onClearAllOptions:()=>w&&w([]),isLoading:l,isDisabled:y,readOnly:!f,dataTestId:X("select-input",m),...P,status:c,value:q,ref:M,autoComplete:"off",...I,onClick:()=>_(!0),role:"combobox","aria-expanded":B,"aria-controls":Fu}):u.jsx(br,{suffix:Ae,...I,onInput:me,isReadOnly:!f,isDisabled:y,dataTestId:X("select-input",m),...P,onClick:()=>_(!0),status:c,value:q,size:a,ref:M,autoComplete:"off",role:"combobox","aria-expanded":B,"aria-controls":Fu}),children:u.jsx(N9,{ref:L,filteredOptions:Ne,handleOptionClick:K,selectedOption:o===!0||!r?Au:r,status:c,isLoading:l,isVirtualized:v,size:a,hasSelectAllOption:o&&$&&!NN})})})})});p8.displayName="Select";const g8=h.memo(p8,Me),v8=h.forwardRef(({isMulti:e,selectedOption:t,onChange:r=()=>{},...o},n)=>{const[a,i]=h.useState(e?t||[]:t||Au),l=h.useCallback(s=>{i(s),r(s)},[r]);return u.jsx(g8,{...o,selectedOption:a,isMulti:e,onChange:l,ref:n})});v8.displayName="StatefulSelect";const Uq=h.memo(v8,Me),jq=xe("div",{target:"ekzqro1"})("height:",H.rem(7),";width:",H.rem(7),";border-radius:100%;background:",({background:e})=>e,";position:relative;cursor:",({isDisabled:e})=>e?"not-allowed":"unset",";:hover{background:",({theme:e,isDisabled:t})=>t?void 0:e.tokens.colors.get("palette.primary.base"),";::before{content:'",({labelValue:e})=>e,"';color:white;display:",({isDisabled:e})=>e?"none":"flex",";justify-content:center;font-size:",({theme:e})=>e.globals.typography.fontSize[11],";background:black;position:absolute;padding:",({theme:e})=>e.globals.spacing.get("4"),";box-sizing:border-box;top:",H.rem(-35),";left:",H.rem(-14.5),";width:",H.rem(35),";height:",H.rem(27),";border-radius:2px;}::after{content:' ';display:",({isDisabled:e})=>e?"none":"unset",";position:absolute;top:",H.rem(-10),";left:",H.rem(-2.5),";width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #000;}}"),Kq=xe("div",{target:"ekzqro0"})("::after{content:' ';height:",H.rem(7),";width:",H.rem(7),";border:4px solid transparent;border-radius:100px;position:absolute;top:",H.rem(-4),";left:",H.rem(-4),";}:hover{&::after{border-color:",({isDisabled:e})=>e?void 0:H.rgba(14,14,23,.1),";}}"),Zq=({values:e,index:t,isDisabled:r,isSelector:o,dataTestPrefixId:n="",restProps:a})=>{const i=z(),l=h.useMemo(()=>o?t*20>e[0]?i.tokens.colors.get("palette.primaryAlt.base"):i.tokens.colors.get("palette.primary.base"):t*20<e[0]||t*20>e[1]?i.tokens.colors.get("palette.primaryAlt.base"):i.tokens.colors.get("palette.primary.base"),[o,t,e,i.tokens.colors]),s=h.useMemo(()=>(ul*t).toString(),[t]);return u.jsx(jq,{"data-testid":`${n}mark_${t}`,...a,isDisabled:r,labelValue:s?`${s}%`:" ",restStyleProps:a.style,background:l,children:u.jsx(Kq,{isDisabled:r})})},Gq=xe("div",{target:"e76yl4h0"})("height:",H.rem(16),";width:",H.rem(16),";border-radius:100px;background-color:",({theme:e,isChanged:t})=>t?e.tokens.colors.get("palette.primary.base"):"#fff",";border:2px solid ",({theme:e})=>e.tokens.colors.get("palette.primary.base"),";",({restStyleProps:e})=>({...e}),";box-sizing:border-box;cursor:",({isDisabled:e})=>e?"not-allowed":"unset","!important;&::after{content:'';height:",H.rem(16),";width:",H.rem(16),";border:8px solid transparent;border-radius:100px;position:absolute;top:",H.rem(-10),";left:",H.rem(-10),";",ie(.15),";}:hover{&::after{border-color:",({isDisabled:e})=>e?void 0:H.rgba(14,14,23,.1),";}}"),Yq=({isDisabled:e,value:t,initialValue:r,dataTestId:o,restProps:n})=>{const a=h.useMemo(()=>r!==t,[r,t]);return u.jsx(Gq,{"data-testid":o,...n,isChanged:a,isDisabled:e,restStyleProps:n.style})},Xq=xe("div",{target:"ecb6cmq0"})("height:",H.rem(3),";border-radius:4px;background:",({background:e})=>e,";cursor:",({isDisabled:e})=>e?"not-allowed":"unset","!important;"),Jq=({values:e,isDisabled:t,isSelector:r,dataTestPrefixId:o="",restProps:n,children:a})=>{const i=z(),l=h.useMemo(()=>Uu.getTrackBackground({values:e,colors:r?[i.tokens.colors.get("palette.primary.base"),i.tokens.colors.get("palette.primaryAlt.base")]:[i.tokens.colors.get("palette.primaryAlt.base"),i.tokens.colors.get("palette.primary.base"),i.tokens.colors.get("palette.primaryAlt.base")],min:ao,max:Go,rtl:!1}),[r,i.tokens.colors,e]);return u.jsx(Xq,{"data-testid":`${o}track_component`,...n,isDisabled:t,restStyleProps:n.style,background:l,children:a})},Qq=xe("div",{target:"ems0q502"})(Se,";flex-direction:column;gap:",H.rem(22),";"),eH=xe("div",{target:"ems0q501"})(Se,";margin-left:",H.rem(-7),";margin-right:",H.rem(-7),";gap:",H.rem(20),";align-items:center;justify-content:space-between;"),h8=xe("div",{target:"ems0q500"})("width:",H.rem(80),";"),tH=1,ul=20,ao=0,Go=100,C8=({values:e,onChange:t,onBlur:r,hasIncrements:o=!1,isDisabled:n=!1,dataTestPrefixId:a})=>{const i=z(),l=h.useRef(e),s=l.current.length===1;if(s&&e.length!==1)throw new Error("The Selector type Slider can only accept one initial value in the array, since it only has one thumb. Try changing the `values` prop.");if(!s&&e.length!==2)throw new Error("The Range type Slider only accepts two initial values in the array, since it has two thumbs. Try changing the `values` prop.");const c=v=>v<ao?0:v>Go?100:v,d=({props:v,index:y})=>{const m=s?y>ao:y>ao&&y<Go/ul;return o&&m&&u.jsx(Zq,{dataTestPrefixId:a,restProps:v,values:e,index:y,isSelector:s,isDisabled:n},`mark_${y}`)},p=({props:v,children:y})=>u.jsx(Jq,{dataTestPrefixId:a,isSelector:s,restProps:v,values:e,isDisabled:n,children:y}),f=({props:v,value:y,index:m})=>{var w;return u.jsx(Yq,{dataTestId:`${a??""}thumb_${m}`,restProps:v,isDisabled:n,value:y,initialValue:(w=l.current)==null?void 0:w[m]},`thumb_${m}`)};return u.jsxs(Qq,{"data-testid":`${a??""}slider_component`,children:[u.jsx("div",{css:E.css({opacity:n?i.tokens.disabledState.get("default"):"inherit"},"",""),children:u.jsx(Uu.Range,{step:o?ul:tH,min:ao,max:Go,disabled:n,values:e,onChange:t,onFinalChange:r,renderMark:d,renderTrack:p,renderThumb:f})}),!s&&!o&&e.length===2&&u.jsxs(eH,{children:[u.jsx(h8,{children:u.jsx(br,{label:"Start",size:"compact",isDisabled:n,value:e[0],onChange:v=>{const y=c(parseInt((v==null?void 0:v.target.value)||"0"));t([y,e[1]])},onBlur:v=>{if(r){const y=c(parseInt((v==null?void 0:v.target.value)||"0"));r([y,e[1]])}},suffix:u.jsx(u.Fragment,{children:"%"})})}),u.jsx(h8,{children:u.jsx(br,{label:"End",size:"compact",isDisabled:n,value:e[1],onChange:v=>{const y=c(parseInt((v==null?void 0:v.target.value)||"100"));t([e[0],y])},onBlur:v=>{if(r){const y=c(parseInt((v==null?void 0:v.target.value)||"100"));r([e[0],y])}},suffix:u.jsx(u.Fragment,{children:"%"})})})]})]})};C8.displayName="Slider";const rH=C8,b8=e=>()=>E.css(so,";display:inline-flex;gap:",R(`${e}px`),";",""),Mu=()=>e=>E.css("font-weight:",e.globals.typography.fontWeight.get("medium"),";color:",e.tokens.colors.get("textColor.default.secondary"),";",""),Ye=e=>typeof e=="string",oH=e=>!!(e.isSortable||e.tooltip),io=e=>e.tokens.colors.get("borderColor.decorative.default"),nH={padding:{text:{value:"{spacing.4}",type:"spacing",description:"Sets padding for text tooltip"},interactive:{value:"{spacing.6}",type:"spacing",description:"Sets padding for interactive tooltip"}},borderRadius:{value:"{borderRadius.2}",type:"borderRadius",description:"Sets borderRadius for a tooltip"},borderWidth:{default:{value:"{borderWidth.1}",type:"borderWidth",description:"Sets border width for tooltips"}},backgroundColor:{default:{value:"{sem.colors.backgroundColor.inverted}",type:"color",description:"Sets backgroundColor for tooltip container (including direction 'triangle' indicator)"},inverted:{value:"{sem.colors.backgroundColor.alt}",type:"color",description:"Sets backgroundColor for tooltip container with light color (including direction 'triangle' indicator)"}},borderColor:{default:{value:"{sem.colors.borderColor.decorative.transparent}",type:"color",description:"Sets borderColor for tooltip (default variant)"},inverted:{value:"{sem.colors.borderColor.decorative.default}",type:"color",description:"Sets borderColor for tooltip (inverted variant)"}},boxShadow:{value:"{sem.boxShadow.2}",type:"boxShadow",description:"Sets boxShadow for inverted tooltip variant"},textColor:{default:{value:"{sem.colors.textColor.inverted.primary}",type:"color",description:"Sets textColor for tooltip"},inverted:{value:"{sem.colors.textColor.default.primary}",type:"color",description:"Sets textColor for tooltip"}},text:{value:"{sem.typography.normal.body03}",type:"typography",description:"Sets text style for default tooltip"}},aH=e=>se(nH,e),$G="",iH=({isInverted:e=!1,isInteractive:t=!1})=>r=>{const o=aH(r),n=o(`backgroundColor.${e?"inverted":"default"}`),a={"text-align":"start","white-space":"pre-wrap","word-break":"break-word"};return E.css("background-color:",n,";border:",o("borderWidth.default")," solid ",o(`borderColor.${e?"inverted":"default"}`),";box-shadow:",o("boxShadow"),";.tippy-content{background-color:",n,";max-width:",!t&&R(256),";padding:",o(`padding.${t?"interactive":"text"}`),";border-radius:",o("borderRadius"),";color:",!t&&o(`textColor.${e?"inverted":"default"}`),";",!t&&G(o("text")),";",!t&&a,";}.tippy-arrow::before{color:",n,";}","")},y8=h.forwardRef(({children:e,content:t,placement:r="right",isInverted:o=!1,isInteractive:n=!1,delayIn:a=500,delayOut:i=500},l)=>u.jsx(af,{css:iH({isInverted:o,isInteractive:n}),content:t,placement:r,interactive:n,arrow:!n,delay:[a,i],ref:l,children:e}));y8.displayName="Tooltip";const Lu=y8;var lH={name:"1tjylrs",styles:"width:fit-content"},sH={name:"1tjylrs",styles:"width:fit-content"};const m8=({item:e,sorting:t,isNumerical:r})=>{const o=z(),n=Ye(e)?e.trim().toLowerCase().replace(/ /g,"_"):e.content.sortingKey.trim().toLowerCase().replace(/ /g,"_"),a=()=>!Ye(e)&&(e==null?void 0:e.isSortable)&&(e.content.sortingKey===(t==null?void 0:t.column)?u.jsx("div",{css:E.css({transition:"0.3s all ease-in-out",transformOrigin:"center",width:"fit-content",transform:`rotate(${t.order==="asc"?"180":"0"}deg)`},"",""),children:u.jsx(U,{name:"triangleDown",dataTestId:`table_icon_sort_${n}_${t.order==="desc"?"desc":"asc"}`,color:o.tokens.colors.get("textColor.default.secondary")})},`table_icon_sort_${n}`):u.jsx("div",{css:lH,children:u.jsx(U,{name:"sort",dataTestId:`table_icon_sort_${n}`,color:o.tokens.colors.get("textColor.default.secondary")})},`table_icon_sort_${n}`)),i=()=>{var s,c;return!Ye(e)&&((s=e==null?void 0:e.tooltip)==null?void 0:s.content)&&u.jsx("div",{css:sH,children:u.jsx(Lu,{content:(c=e==null?void 0:e.tooltip)==null?void 0:c.content,placement:e==null?void 0:e.tooltip.placement,children:u.jsx(U,{name:"informational",dataTestId:`table_icon_tooltip_${n}`,color:o.tokens.colors.get("textColor.default.secondary")})})},`table_icon_tooltip_${n}`)},l=()=>r?[a(),i()]:[i(),a()];return Ye(e)?u.jsx("div",{css:Mu(),children:e}):oH(e)?u.jsxs("div",{"data-testid":`header_${n}`,css:b8("8"),children:[u.jsx("span",{css:Mu(),children:e.content.label}),u.jsx("div",{css:b8("4"),children:l()})]}):u.jsx("div",{css:Mu(),children:e.content.label})};var cH={name:"1sdvxj3",styles:"&>div>span{color:black;font-weight:700;}"};const w8=()=>cH,uH=({isActive:e})=>t=>E.css("cursor:pointer;position:relative;height:",R(64),";",e&&w8()," &:hover{",w8(),";background-color:",t.tokens.colors.get("palette.secondary.muted"),";}",""),dH=(e,t,r,o,n)=>{if(e)return t==="th"&&typeof e=="string"?[r,"table_header",e==null?void 0:e.replace(/ /g,"_").toLowerCase()].filter(a=>a).join("_"):[r,o!==void 0?`table_row_${o}`:"",n!==void 0?`cell_${n}`:""].filter(a=>a).join("_")},S8=g.memo(({textAlign:e="left",component:t="td",width:r,isSticky:o=!1,isPaddedSticky:n=!1,colSpan:a,children:i,isSortable:l=!1,isActive:s=!1,type:c="normal",isPadded:d=!1,dataTestIdPrefix:p,rowIndex:f,onClick:v,index:y})=>{const m=z(),w=t,b=dH(i,t,p,f,y);return u.jsx(w,{colSpan:a,css:[{position:"relative",textAlign:e,padding:`${m.globals.spacing.get("3")} ${d?m.globals.spacing.get("4"):0}`,width:r},t==="th"&&{paddingTop:m.globals.spacing.get("4"),paddingBottom:m.globals.spacing.get("4"),fontWeight:m.globals.typography.fontWeight.get("bold"),fontSize:m.globals.typography.fontSize.get("3")},t==="th"&&l&&{...uH({isActive:s})(m)},o&&{top:n?H.rem(64):0,left:0,zIndex:2,position:"sticky",background:m.globals.oldColors.white,boxShadow:`inset 0px -1px 0px 0px ${io(m)}`},c==="financial"&&{borderLeft:`1px solid ${io(m)}`},"",""],onClick:v,"data-testid":b,children:i})});S8.displayName="TableCell";const He=S8,Yo=({isNested:e,isSelected:t,children:r,onClick:o,...n})=>{const a=z();return u.jsx("tr",{onClick:()=>{o&&o()},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:o&&"pointer","&:hover":{backgroundColor:o&&a.tokens.colors.get("palette.secondary.base")},"> td":{paddingTop:e?0:void 0,paddingBottom:e?0:void 0}},"",""],...n,children:r})},Ou=g.createContext({row:{id:0,cells:[]},columnsWithWidth:[],isPadded:!1,hasOnSelectionChange:!1,isRowSelected:!1,columnCount:0,columns:[],hasFixedHeader:!1,tChange:()=>{},type:"normal",isBordered:!1}),fH=()=>e=>E.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")},"",""),E8=xe("div",{target:"ep8j7z50"})({name:"1h52dri",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap"}),x8=({children:e,isAlwaysVisible:t=!1,tooltipContent:r,placement:o="bottom"})=>{const[n,a]=h.useState(!1),i=h.useRef(null),l=i.current,s=h.useCallback(()=>{a(!0)},[]),c=h.useCallback(()=>{a(!1)},[]),d=h.useMemo(()=>!!l&&l.scrollWidth>l.offsetWidth,[l]);return h.useCallback((f,v,y,m)=>f===void 0?!1:m?!0:v&&y,[])(r,n,d,t)&&r?u.jsx(Lu,{placement:o,content:r,children:u.jsx(E8,{ref:i,onMouseEnter:s,onMouseLeave:c,children:e})}):u.jsx(E8,{ref:i,onMouseEnter:s,onMouseLeave:c,children:e})},pH=({columns:e,isPadded:t,columnWidth:r,tooltipContent:o,content:n,colSpan:a,rowType:i,cellType:l,align:s,cellCounter:c,dataTestIdPrefix:d,rowIndex:p,index:f})=>{const v=!Number.isNaN(Number(n));return u.jsxs(He,{textAlign:s||(v?"right":"left"),colSpan:a,type:l,isPadded:t,width:r?`${r}%`:"initial",dataTestIdPrefix:d,rowIndex:p,index:f,children:[i==="nested-header"&&u.jsx("div",{css:fH(),children:e[c]}),u.jsx(x8,{placement:"bottom",tooltipContent:o,children:wl(n)?n({content:n,colSpan:a}):u.jsx("span",{"data-column":e[c],children:n})})]})},gH=h.memo(pH),vH=({isExpandedExists:e,isChecked:t,toggleIsChecked:r,actionWidth:o,dataTestIdPrefix:n,rowIndex:a,index:i})=>{const l=z(),s=lo(),c=o?`${o}%`:s.des1920?"5%":"7%";return e?u.jsx(He,{width:c,dataTestIdPrefix:n,rowIndex:a,index:i,children:u.jsx("div",{children:u.jsx("div",{css:E.css({display:"flex",justifyContent:"center",padding:`${l.globals.spacing.get("3")} ${l.globals.spacing.get("4")}`},"",""),children:u.jsx("div",{css:E.css({transition:"0.3s all ease-in-out",transformOrigin:"center",width:"fit-content",transform:`rotate(${t?"180":"0"}deg)`},"",""),onClick:d=>d.stopPropagation(),children:u.jsx(vt,{type:"tertiary",iconName:"chevronDown",onClick:r,dataTestId:"expanded-button"})})})})}):null},hH=h.memo(vH),CH=({isBordered:e,isCustomCell:t})=>r=>E.css({borderBottom:e?`${yl(1)} solid ${io(r)}`:"none","td:first-of-type":{paddingLeft:r.globals.spacing.get("6")},"td:last-child":{paddingRight:t?"inherit":r.globals.spacing.get("6")}},"",""),bH=({isFirstRow:e,hasFixedHeader:t})=>r=>E.css({flex:1,flexDirection:"row",display:"flex",borderTop:e&&!t?`${yl(1)} solid ${io(r)}`:"none",borderBottom:`${yl(1)} solid ${io(r)}`},"",""),yH=(e=!1)=>{const[t,r]=g.useState(e),o=g.useCallback(()=>r(n=>!n),[r]);return[t,o]};var mH={name:"1hsa9kz",styles:"width:100%;border-collapse:collapse;table-layout:fixed"};const $8=()=>()=>mH,wH=e=>t=>E.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},"",""),SH=(e,t,r)=>o=>E.css({paddingTop:o.globals.spacing.get("6"),paddingBottom:o.globals.spacing.get("6"),borderBottomWidth:R(e||r?0:1),borderBottomStyle:"solid",borderBottomColor:io(o),"th:first-of-type":{paddingLeft:t?void 0:o.globals.spacing.get("6")},"th:last-child":{paddingRight:e?void 0:o.globals.spacing.get("6")}},"",""),Iu=g.memo(({isChecked:e=!1,toggleIsChecked:t=()=>{},dataTestIdPrefix:r,rowIndex:o})=>{var b,$,P;const{columnsWithWidth:n,hasOnSelectionChange:a,isPadded:i,columns:l,tChange:s,row:c,type:d,isRowSelected:p,isBordered:f,actionWidth:v}=g.useContext(Ou),{expanded:y}=c,m=!!y,[w]=(b=c.cells)==null?void 0:b.slice(-1);return u.jsxs(Yo,{isSelected:p,onClick:m?t:void 0,css:CH({isBordered:f,isCustomCell:m||wl(w.content)}),children:[a&&u.jsx(He,{component:"th",isSticky:!1,width:50,isPadded:i,dataTestIdPrefix:r,rowIndex:o,index:0,children:u.jsx("div",{onClick:L=>L.stopPropagation(),children:u.jsx(Al,{dataTestPrefixId:"row-check",isSelected:p,onChange:s})})}),($=c.cells)==null?void 0:$.map(({content:L,tooltipContent:I,hasTruncatedTooltip:x=!0,colSpan:O,type:C,align:B},_)=>u.jsx(gH,{cellCounter:_,columnWidth:n[_],columns:l,tooltipContent:x?wl(L)?I:I??L.toString():void 0,isPadded:i,colSpan:O,content:L,cellType:C,rowType:d,align:B,dataTestIdPrefix:r,rowIndex:o,index:_+1},`${c.id}-${_}`)),u.jsx(hH,{isExpandedExists:m,isChecked:e,toggleIsChecked:t,actionWidth:v,dataTestIdPrefix:r,rowIndex:o,index:((P=c.cells)==null?void 0:P.length)+1})]})});Iu.displayName="RenderRowWithCells";const T8=({row:e,dataTestIdPrefix:t,rowIndex:r,isInitiallyExpanded:o})=>{const{isRowSelected:n,columnCount:a,hasFixedHeader:i}=g.useContext(Ou),{expanded:l}=e,[s,c]=yH(o),d=l?l({row:e,isSelected:n,isExpanded:s}):null;return u.jsx(g.Fragment,{children:l?u.jsx(Yo,{isNested:!0,isSelected:n,children:u.jsx(He,{colSpan:a,isPadded:!1,dataTestIdPrefix:t,rowIndex:r,children:u.jsx("div",{css:bH({isFirstRow:r===1,hasFixedHeader:i}),children:u.jsx("table",{css:$8()(),children:u.jsxs("tbody",{children:[u.jsx(Iu,{isChecked:s,toggleIsChecked:c,dataTestIdPrefix:t,rowIndex:r}),s&&u.jsx(Yo,{isNested:!0,children:u.jsx(He,{colSpan:a,dataTestIdPrefix:t,rowIndex:r,index:"expanded",children:d})})]})})})})}):u.jsx(Iu,{dataTestIdPrefix:t,rowIndex:r})})};T8.displayName="RenderRowOrNestedRow";const EH=g.memo(T8),xH=e=>{const{row:t,isRowSelected:r,onSelectionAdd:o,isPadded:n,columns:a,hasFixedHeader:i,type:l,columnsWithWidth:s,columnCount:c,hasOnSelectionChange:d,isExpanded:p,actionWidth:f,isInitiallyExpanded:v,dataTestIdPrefix:y,rowIndex:m}=e,w=h.useCallback(()=>{o(t.id)},[o,t.id]);return u.jsx(Ou.Provider,{value:{row:t,columnsWithWidth:s,hasOnSelectionChange:d,isPadded:n,columns:a,hasFixedHeader:i,tChange:w,type:l,columnCount:c,isRowSelected:r,isBordered:!p,actionWidth:f},children:u.jsx(EH,{row:t,dataTestIdPrefix:y,rowIndex:m,isInitiallyExpanded:v})})},$H=h.memo(xH),TH=(e,t,r)=>!t&&!r?e.length:t&&r?e.length+2:e.length+1;function kH({data:e,columns:t,type:r="normal",hasFixedHeader:o=!1,hasFixedCTA:n=!1,onCheck:a,isPadded:i=!1,onSort:l,initialSort:s={column:"",order:"desc"},sortDir:c,topLeftText:d,topRightArea:p,actionWidth:f,isInitiallyExpanded:v=!1,dataTestIdPrefix:y}){const m=lo(),w=f?`${f}%`:m.des1920?"5%":"7%",[b,$]=h.useState(void 0),[P,L]=h.useState(s),I=e.some(M=>!!M.expanded),x=TH(t,a,I);h.useEffect(()=>{a&&b&&a(b)},[a,b]),h.useEffect(()=>{$(void 0)},[e]);const O=h.useCallback(M=>{$((S=[])=>S.indexOf(M)===-1?[...S,M]:S.filter(k=>k!==M))},[]),C=h.useMemo(()=>{var M,S;return((S=(M=jt(e))==null?void 0:M.cells)==null?void 0:S.map(({content:k})=>!Number.isNaN(Number(k))))||[]},[e]),B=h.useMemo(()=>{var M,S;return((S=(M=jt(e))==null?void 0:M.cells)==null?void 0:S.map(({align:k})=>k))||[]},[e]),_=h.useMemo(()=>{var M,S;return((S=(M=jt(e))==null?void 0:M.cells)==null?void 0:S.map(({widthPercentage:k})=>k))||[]},[e]),A=M=>{L(S=>c?(l==null||l(M,c),{column:M,order:c}):S.column!==M?(l==null||l(M,"asc"),{column:M,order:"asc"}):(l==null||l(M,S.order==="asc"?"desc":"asc"),{column:M,order:S.order==="asc"?"desc":"asc"}))};return u.jsxs(h.Fragment,{children:[(a||p||d)&&u.jsx("table",{css:wH(n),children:u.jsx("thead",{children:u.jsxs(Yo,{children:[a&&u.jsx(He,{component:"th",width:50,isPadded:i,dataTestIdPrefix:y,rowIndex:0,index:0,children:u.jsx(Al,{isSelected:!!(b&&b.length>0),isIndeterminate:b&&b.length>0&&(b==null?void 0:b.length)!==e.length,onChange:()=>{(b==null?void 0:b.length)===e.length?$([]):$(e.map(({id:M})=>M))}})}),u.jsx(He,{isPadded:i,dataTestIdPrefix:y,rowIndex:0,index:1,children:b&&(b==null?void 0:b.length)>0?u.jsxs("span",{children:[u.jsx("b",{children:b.length})," ",nf("item",b.length)," selected"]}):d}),p&&u.jsx(He,{textAlign:"right",isPadded:i,colSpan:x-(a?2:1),dataTestIdPrefix:y,rowIndex:0,index:2,children:p(e,b)})]})})}),u.jsxs("table",{css:$8(),children:[(a||p||r==="normal")&&u.jsx("thead",{children:r==="normal"&&u.jsxs(Yo,{css:SH(I,!!a,o),children:[a&&u.jsx(He,{component:"th",isPaddedSticky:n,isSticky:o,width:50,isPadded:i,dataTestIdPrefix:y}),t.map((M,S)=>u.jsx(He,{textAlign:B&&B[S]?B[S]:C&&C[S]?"right":"left",component:"th",isSticky:o,isPaddedSticky:n,isPadded:i,width:_[S]?`${_[S]}%`:"initial",isSortable:!Ye(M)&&M.isSortable,isActive:!Ye(M)&&M.content.sortingKey===P.column,onClick:()=>{!Ye(M)&&M.isSortable&&A(M.content.sortingKey)},dataTestIdPrefix:`${y}_${Ye(M)?M.trim().toLowerCase().replace(/ /g,"_"):M.content.sortingKey.trim().toLowerCase().replace(/ /g,"_")}`,children:Ye(M)?u.jsx(m8,{item:M}):u.jsx(m8,{sorting:P,isNumerical:C&&C[S],item:M})},`${Ye(M)?M:M.content.sortingKey}`)),I&&u.jsx(He,{component:"th",isSticky:o,isPaddedSticky:n,width:w,dataTestIdPrefix:y})]})}),u.jsx("tbody",{children:e.map((M,S)=>u.jsx($H,{row:M,isRowSelected:b?b.indexOf(M.id)!==-1:!1,onSelectionAdd:O,isPadded:i,columns:t,hasFixedHeader:o,type:r,columnCount:x,columnsWithWidth:_,hasOnSelectionChange:!!a,isExpanded:!!M.expanded,actionWidth:f,isInitiallyExpanded:v,dataTestIdPrefix:y,rowIndex:S+1},M.id))})]})]})}const PH=h.memo(kH,Me),_H={paddingVerticalInline:{value:"{spacing.6}",type:"spacing",description:"sets both top and bottom padding for _block search bar used only menus (with larger height)"},backgroundColor:{default:{value:"{sem.colors.backgroundColor.default}",type:"color",description:"Sets backgroundColor for default search component"},focused:{value:"{sem.colors.palette.tertiary.muted}",type:"color",description:"Sets backgroundColor for focused search component"}},iconSize:{value:"{sem.icon.size.3}",type:"sizing",description:"Sets icon size for search"},paddingHorizontalRounded:{value:"{spacing.6}",type:"spacing",description:"Sets left and right padding for rounded search variant"},paddingHorizontalSquare:{value:"{spacing.5}",type:"spacing",description:"Sets left and right padding for square search variant"},borderColor:{default:{value:"{sem.colors.borderColor.interactive.default}",type:"color",description:"Sets borderColor for default search component"},active:{value:"{sem.colors.borderColor.interactive.active}",type:"color",description:"Sets borderColor for active search component"}},textColor:{default:{value:"{sem.colors.textColor.default.secondary}",type:"color",description:"Sets textColor in default state"},focused:{value:"{sem.colors.textColor.default.primary}",type:"color",description:"Sets textColor in focused and populated state"}},borderRadius:{rounded:{value:"{borderRadius.7}",type:"borderRadius",description:"Sets rounded borderRadius for rounded search variant"},inline:{value:"{borderRadius.0}",type:"borderRadius",description:"Sets square borderRadius for inline search variant"},square:{value:"{borderRadius.2}",type:"borderRadius",description:"Sets square borderRadius for search square variant"}},borderWidth:{1:{value:"{borderWidth.1}",type:"borderWidth",description:"Sets borderWidth for default search component"},2:{value:"{borderWidth.2}",type:"borderWidth",description:"Sets borderWidth for active search component"}},height:{normal:{value:"{sizing.9}",type:"sizing",description:"Sets height for search (normal size variant)"}},gap:{value:"{spacing.4}",type:"spacing",description:"Sets gap for search field"},text:{value:"{sem.typography.normal.body02}",type:"typography",description:"Sets text style for search copy"}},dl=e=>se(_H,e);var AH={name:"zjik7",styles:"display:flex"};const MH=()=>AH,LH=()=>e=>{const t=dl(e);return E.css("width:100%;input{",G(t("text")),";&::placeholder{color:",t("textColor.default"),";}::-webkit-search-cancel-button{appearance:none;}}","")},OH=()=>e=>{const t=dl(e);return E.css("button{border-top-left-radius:0;border-bottom-left-radius:0;border:none;box-shadow:",`inset 0 0 0 ${t("borderWidth.1")} ${t("borderColor.default")}`,";position:relative;z-index:0;margin-left:-1px;&:hover[data-active='false']:enabled{background:",t("backgroundColor.focused"),";}&:focus-within:enabled{border-left:none;box-shadow:",`inset 0 0 0 ${t("borderWidth.2")} ${t("borderColor.active")}`,";z-index:1;&[data-active='false']{background:",t("backgroundColor.focused"),";}}}","")},IH=({hasFilter:e,isDisabled:t,sx:r})=>o=>{const n=dl(o);return{wrapper:{height:n("height.normal"),...e&&{minWidth:R(240)},zIndex:1,borderRadius:e?`${n("borderRadius.rounded")} 0 0 ${n("borderRadius.rounded")}`:n("borderRadius.rounded"),background:n("backgroundColor.default"),boxShadow:`inset 0 0 0 ${n("borderWidth.1")} ${n("borderColor.default")}`,...!t&&{"&:hover":{background:n("backgroundColor.focused")},"&:focus-within":{background:n("backgroundColor.focused"),outline:"none",boxShadow:`inset 0 0 0 ${n("borderWidth.2")} ${n("borderColor.active")}`}},...r==null?void 0:r.wrapper},textField:{gap:R(8),paddingRight:n("paddingHorizontalRounded"),paddingLeft:n("paddingHorizontalRounded"),...r==null?void 0:r.textField}}};var BH={name:"jl0oj1",styles:"/** @TODO replace with search tokens */border-bottom:1px solid #b9cdfc;label{display:none;}input{border:none;top:0;&:focus{outline:none;border:none;box-shadow:none;}}"};const RH=()=>BH,DH=({onInputChange:e,value:t,dataTestId:r,isLoading:o,isMulti:n,isSearchable:a,onClear:i,selectedFilter:l,onFilterDelete:s,dataTestPrefixId:c})=>{const d=z(),p=h.useMemo(()=>o?u.jsx(al,{type:"circular",dataTestPrefixId:"search"}):u.jsx(U,{size:d.tokens.icon.get("size.3"),name:"search",color:d.tokens.colors.get("textColor.default.secondary")}),[o,d.tokens.colors,d.tokens.icon]);return u.jsxs("div",{css:RH(),children:[!n&&a&&u.jsx(br,{autoFocus:!0,dataTestPrefixId:`${c}_filter_search`,onChange:e,"data-testid":X("filter-input",r),status:{type:"normal"},label:"Search",placeholder:"Search",value:t,suffix:p,sx:{wrapper:{"&, &:focus-within, &:hover":{outline:"none",border:"none",boxShadow:"none",backgroundColor:"white"}}}}),n===!0&&u.jsx(ll,{selectedOptions:l||[],dataTestPrefixId:`${c}_filter_search`,onInput:e,onOptionDelete:s,onClearAllOptions:i,isInteractive:!1,value:t,label:"Search",placeholder:"Search",isResponsive:!0,isLoading:o,sx:{textField:{paddingTop:"12px",paddingBottom:"12px",width:"100%"},wrapper:{boxShadow:"none",borderRadius:0,background:"white"}}})]})},FH=({isMulti:e})=>()=>E.css("&>div,ul{border:none;border-radius:0;}&>div{max-width:",R(hu[e?"multi":"single"].maxWidth),";}ul{max-height:",R(hu.maxHeight),";}",""),qH=()=>e=>{const t=yr(e);return E.css("color:",t("textColor.secondary"),";height:",t("height"),";padding:0 ",t("paddingHorizontal"),";",Qe,";",G(t("default")),";","")},HH=({items:e,onOptionSelect:t,defaultValue:r,selectedFilter:o,isVirtualized:n,hasSelectAllOption:a,isMulti:i,dataTestPrefixId:l,listRef:s})=>{const c=e.length>xD,d=c?sR:void 0,p=h.useCallback(f=>{const v=String(jt(Array.from(f)));if(v===_e.value)t(_e);else{const y=Nu(e,m=>m.options||m).find(m=>String(m.value)===v);y&&t(y)}},[e,t]);return e.length?u.jsx("div",{css:FH({isMulti:i}),children:u.jsxs(Tu,{ref:s,label:"filter-options",selectedKeys:i===!1&&o?[o.value]:[],disabledKeys:e.filter(f=>f.isDisabled).map(f=>f.value),onSelectionChange:p,isVirtualized:n&&c,height:d,dataTestPrefixId:`${l}_filter_list`,children:[a?u.jsx(wr,{textValue:_e.label,children:u.jsx(mr,{children:_e.label})},_e.value):null,e.filter(f=>f.value!==r.value).map(f=>u.jsx(wr,{children:u.jsx(mr,{children:f.label})},f.value))]})}):u.jsx("div",{css:qH(),"data-testid":`${l}_filter_list_no_options`,children:"No options"})},NH=()=>e=>{const t=Y9(e);return E.css("position:absolute;left:0;height:auto;border:",R(1)," solid ",t("borderColor"),";border-radius:",e.globals.spacing.get("3"),";background-color:",e.globals.colors.get("neutral.1"),";box-shadow:",t("boxShadow"),";z-index:500;overflow:hidden;min-width:100%;","")},zH=({isSearchable:e,isMulti:t,searchValue:r,handleChange:o,onClear:n,isLoading:a,filteredOptions:i,selectedFilter:l,isVirtualized:s,hasSelectAllOption:c,handleSelect:d,onFilterDelete:p,dataTestPrefixId:f,listRef:v})=>u.jsxs("div",{css:NH(),children:[(t===!0||e)&&u.jsx(DH,{isMulti:t,isSearchable:e,value:r,onInputChange:o,onClear:n,onFilterDelete:p,selectedFilter:l,dataTestPrefixId:f,isLoading:a}),u.jsx(HH,{listRef:v,dataTestPrefixId:f,items:i,isVirtualized:s,defaultValue:{label:"",value:""},isSearchable:e,selectedFilter:l,onOptionSelect:d,hasSelectAllOption:c,isMulti:t})]}),VH=({isMulti:e,setIsOpen:t,isSearchable:r,onChange:o,selectedFilter:n,onAsyncSearch:a,isAsync:i,minCharactersToSearch:l,items:s,onClear:c})=>{const[d,p]=h.useState(""),f=h.useMemo(()=>{if(!s)return;const $=e&&Array.isArray(n)?Wu(s,n,"value"):s;return i?$:$.filter(P=>!d||P.label.toLowerCase().includes(d.toLowerCase()))},[i,s,e,n,d]),v=$=>{e||t(!1),r&&p(""),e===!0?o&&n&&(sf($,_e)?o([...n,...f.filter(P=>!P.isDisabled)]):o([...n,$])):o($)},y=h.useCallback(lf($=>{a==null||a($)},400),[]);return{searchValue:d,handleFilterClick:v,handleInput:$=>{const{target:{value:P}}=$;if(r&&p(P),i){if($.persist(),l&&P.length&&P.length<l)return;y(P.trim())}},filteredOptions:f,handleFilterDelete:$=>{const P=Array.isArray(n)?n.filter(L=>L.value!==$.value):[];e===!0&&o&&o(P)},handleClear:()=>{c&&c(),p("")}}},k8=h.forwardRef((e,t)=>{const{label:r="Filter",filterType:o="preset",items:n,children:a,onChange:i,isMulti:l,selectedFilter:s,isVirtualized:c=!1,defaultValue:d,isDisabled:p,onClear:f,isAsync:v,onAsyncSearch:y,isLoading:m,isSearchable:w,minCharactersToSearch:b,hasSelectAllOption:$=!1,dataTestPrefixId:P="ictinus_filter"}=e,[L,I]=h.useState(!1),{searchValue:x,handleFilterClick:O,handleInput:C,filteredOptions:B,handleFilterDelete:_,handleClear:A}=VH({isMulti:l,setIsOpen:I,isSearchable:w,onChange:i,selectedFilter:s,onAsyncSearch:y,isAsync:v,minCharactersToSearch:b,items:n,onClear:f}),M=h.useMemo(()=>{var N;return l?`${r}: ${s!=null&&s.length?(N=s[0])==null?void 0:N.label:d.label}`:`${r}: ${(s==null?void 0:s.label)??d.label}`},[d.label,l,r,s]),[S,k]=h.useState(M);h.useEffect(()=>{k(M)},[M]);const q=l&&(s==null?void 0:s.length)>1?s.length-1:void 0,K=()=>{I(!L)},F=h.useRef(null),{keyboardProps:me}=tr({events:{keydown:{onArrowDown:()=>{L&&setTimeout(()=>{var we;const N=(we=F.current)==null?void 0:we.querySelectorAll('[role="option"]');if(N&&(N==null?void 0:N.length)>0){const Ae=vl(N);Ae instanceof HTMLElement&&typeof Ae.focus=="function"&&Ae.focus()}},0)}}}}),Ne=B?u.jsx(zH,{listRef:F,isMulti:l,isVirtualized:c,isSearchable:w,searchValue:x,handleChange:C,handleSelect:O,onFilterDelete:_,onClear:A,selectedFilter:s,filteredOptions:B,isLoading:m,hasSelectAllOption:$,dataTestPrefixId:P}):u.jsx("div",{"data-testid":`${P}_filter_overlay`,children:a({isOpen:L,setIsOpen:I,filterLabel:S,setFilterLabel:k})});return u.jsx(Zt,{onClick:()=>I(!1),children:u.jsx(ku,{isVisible:L,offsetY:8,hasWrapperWidth:!0,sx:{container:{width:"max-content"}},parent:u.jsx(r9,{ref:t,...Vu(me,"onBlur"),isMulti:l,isActive:L,moreFilters:q,onClear:A,onClick:K,filterType:o,isPopulated:!!(l?s!=null&&s.length:s),dataTestPrefixId:P,isDisabled:p,children:S}),children:L&&Ne})})});k8.displayName="Filter";const Bu=k8,P8=h.forwardRef(({isMulti:e,selectedFilter:t,onChange:r=()=>{},...o},n)=>{const[a,i]=h.useState(e?t||[]:t||void 0),l=h.useCallback(s=>{i(s),r(s)},[r]);return u.jsx(Bu,{...o,selectedFilter:a,isMulti:e,onChange:l,onClear:()=>i(e?[]:void 0),ref:n})});P8.displayName="StatefulFilter";const WH=h.memo(P8,Me),_8=h.forwardRef((e,t)=>{const{placeholder:r="Search",isDisabled:o,onClear:n,value:a,dataTestPrefixId:i="search",filterConfig:l,sx:s,...c}=e,d=z(),p=dl(d),f=a&&a.length>0,v=!!(l!=null&&l.defaultValue&&(l!=null&&l.label)&&(l!=null&&l.items));return cl(()=>{n&&n()}),u.jsxs("div",{css:MH(),"data-testid":"search_container",children:[u.jsxs(il,{dataTestPrefixId:i,isDisabled:o,sx:IH({hasFilter:v,isDisabled:o,sx:s})(d),children:[u.jsx(U,{name:"search",size:p("iconSize"),color:p("textColor.default")}),u.jsx("div",{css:LH(),children:u.jsx("input",{type:"search",css:Wo({placeholder:r}),placeholder:r,disabled:o,value:a,ref:t,"data-testid":`${i}_search_input`,...c})}),f&&!o&&u.jsx(U,{name:"close",size:p("iconSize"),color:p("textColor.default"),onClick:()=>{n()},dataTestId:"search-clear"})]}),v&&u.jsx("div",{css:OH(),children:u.jsx(Bu,{...l,isDisabled:o,dataTestPrefixId:`${i}_search_filter`})})]})});_8.displayName="Search";const A8=h.memo(_8,Me),M8=h.forwardRef((e,t)=>{const{onClear:r,onInput:o,filterConfig:n,...a}=e,[i,l]=h.useState(),[s,c]=h.useState(void 0),d=()=>{l(""),r&&r()},p=()=>{c(void 0),n!=null&&n.onClear&&(n==null||n.onClear())},f=m=>{l(m.target.value),o&&o(m.target.value)},y=!!(n!=null&&n.defaultValue&&(n!=null&&n.label)&&(n!=null&&n.items))?{filterConfig:{defaultValue:{label:"All",value:"all"},selectedFilter:s,onChange:c,onClear:p,...n}}:{};return u.jsx(A8,{ref:t,value:i,onClear:d,onInput:f,...y,...a})});M8.displayName="StatefulSearch";const UH=h.memo(M8,Me),jH=({isResizeEnabled:e=!1})=>t=>{const r=ge(t);return{wrapper:{width:"auto",height:"auto",minWidth:R(r("minWidth.large.normal"))},textField:{padding:`${r("paddingVertical")} ${r("paddingContentLeft")}`},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")}}}}},KH=({isDisabled:e})=>t=>{const r=ge(t);return E.css({display:"flex",alignItems:"center",justifyContent:"flex-end",padding:`${r("hintPadding")} 0 0`,color:r("textColor.inputColorAlt"),span:{alignItems:"stretch",padding:0},opacity:e?t.tokens.disabledState.get("default"):1},Vo(t),"","")};var ZH={name:"1d3w5wq",styles:"width:100%"};const L8=g.forwardRef((e,t)=>{var $;const{id:r=void 0,label:o,placeholder:n,isRequired:a=!1,isReadOnly:i,isDisabled:l,status:s,isResizeEnabled:c=!0,maxCharacters:d,...p}=e,f=(s==null?void 0:s.type)==="read-only",v=z(),y=jH({isResizeEnabled:!l&&!f&&c,label:o,placeholder:n})(v),m=d&&(s==null?void 0:s.type)!="error",w=m?u.jsxs("div",{css:KH({isDisabled:l}),children:[($=p.value)==null?void 0:$.length,"/",d]}):void 0,b=s?{...s,hintMessage:m?void 0:s.hintMessage}:void 0;return u.jsxs(g.Fragment,{children:[u.jsx(il,{...e,status:b,sx:y,children:u.jsxs("div",{css:ZH,children:[u.jsx("textarea",{role:"textbox","aria-multiline":!0,readOnly:f||i,css:Wo({placeholder:n,label:o,sx:y,isLocked:f,isDisabled:l}),placeholder:n?`${n} ${a?"*":""}`:o,required:a,id:r,maxLength:d,disabled:l||f,...p,ref:t}),u.jsx(ol,{htmlFor:r,label:o,isRequired:a,isAnimated:!!p.value,hasError:!l&&(s==null?void 0:s.type)==="error"})]})}),w]})});L8.displayName="TextArea";const GH=g.memo(L8,Me),YH={isDark:!1,toggle:()=>{}},O8=g.createContext(YH),XH=()=>g.useContext(O8),JH=({children:e})=>{const[t,r]=g.useState({isDark:!1});return u.jsx(O8.Provider,{value:{isDark:t.isDark,toggle:()=>{r(o=>({isDark:!o.isDark}))}},children:e})},QH={get:Ee({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"}},be.BoxShadow)},eN={get:co({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"}}},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"}}})},tN={get:co({default:{value:"{opacity.4}",type:"opacity"}})},rN={get:co({size:{1:{value:"{sizing.3}",type:"sizing",description:"Sets extra small icon size"},2:{value:"{sizing.4}",type:"sizing",description:"Sets small icon size"},3:{value:"{sizing.5}",type:"sizing",description:"Sets medium icon size"},4:{value:"{sizing.6}",type:"sizing",description:"Sets lage icon size"}}})},oN={get:co({hover:{1:{value:"{sizing.7}",type:"sizing",description:"Sets extra small hover size"},2:{value:"{sizing.8}",type:"sizing",description:"Sets small hover size"},3:{value:"{sizing.9}",type:"sizing",description:"Sets medium hover size"},4:{value:"{sizing.10}",type:"sizing",description:"Sets lage hover size"}},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"}}})},nN={get:p2({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"}}})},I8={semantic:{disabledState:tN,colors:eN,icon:rN,state:oN,typography:nN,boxShadow:QH}},Ru=e=>({globals:Gt,colorScheme:e,overrides:i2,tokens:{...ve(I8,e||"semantic",I8.semantic)},utils:{getColor:El(Gt.oldColors),getAAColorFromSwatches:d2(Gt.oldColors),getAAColor:xl(Gt.oldColors)}}),aN=e=>E.css("::-webkit-scrollbar{width:",e.globals.spacing.get("4"),";height:",e.globals.spacing.get("4"),";}::-webkit-scrollbar-track{background:transparent;}::-webkit-scrollbar-thumb{background:",e.tokens.colors.get("palette.primary.muted"),";border-radius:",e.globals.spacing.get("9"),";}::-webkit-scrollbar-thumb:hover{background:",e.tokens.colors.get("palette.primary.base"),";}@-moz-document url-prefix(){*{scrollbar-width:thin;}}",""),iN=e=>E.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');{}",cf,";",aN(e)," body,html{font-family:'Roboto',Tahoma,sans-serif;font-size:16px;font-weight:normal;}body{",J7(e),";}#root{}h1{",j7(e),";}h2{",K7(e),";}h3{",Z7(e),";}h4{",G7(e),";}h5{",Y7(e),";}*:focus{outline:0;}",""),lN=[{condition:({colorAfterSplit:e})=>e.length!==2,error:({color:e})=>new Kt(`Error trying to translate your component color: ${e}`)},{condition:({colorAfterSplit:e})=>!s2.includes(e[0]),error:({color:e})=>new Kt(`You passed a wrong color for the first argument: ${e} - try something like red-500`)},{condition:({colorAfterSplit:e})=>!c2.includes(Number(e[1])),error:({color:e})=>new Kt(`You passed a wrong shade for the second argument: ${e} - try something like red-500`)}],sN=e=>{const t=e.split("-");en(lN,{color:e,colorAfterSplit:t});const r=t[0],o=Number(t[1]);return{color:r,shade:o}},cN={typesShadesColor:{},calculateColorBetweenColorAndType:(e,t)=>{}},uN=g.createContext(cN),dN=(e,t)=>Sl.reduce((r,o)=>{const n=e[o][u2],a=Xo(t);return r[o]=a.reduce((i,l)=>{const c=Xo(t[l]).find(d=>t[l][d].toLowerCase()===n.toLowerCase());return c?{shade:Number(c),color:l}:i},{}),r},{}),fN=({children:e})=>{const t=z(),r=bl(t.globals.oldColors,Sl),o=g.useMemo(()=>dN(r,t.globals.oldColors.flat),[r,t]),n=g.useCallback((a,i)=>{const l=a?sN(a):void 0;return l||o[i]},[r,t,o]);return u.jsx(uN.Provider,{value:{typesShadesColor:o,calculateColorBetweenColorAndType:n},children:e})},pN=(e,t)=>zu(Ru(t),bl(e,Xo(Ru(t)))),gN=({theme:e={},children:t})=>u.jsx(JH,{children:u.jsx(vN,{theme:e,children:t})}),vN=({theme:e={},children:t})=>{const o=XH().isDark?"dark":"semantic",n={colorScheme:o,overrides:e==null?void 0:e.overrides};return u.jsx(E.ThemeProvider,{theme:pN(n,o),children:u.jsxs(fN,{children:[u.jsx(E.Global,{styles:iN}),t]})})},hN=gN,B8={notification:`max-height: ${R(294)};`,generic:"max-height: none;"},CN=(e,t,r)=>{const o=Ct(e)?r.tokens.colors.get(`borderColor.interactive.${ht(e)}`):r.utils.getColor(e,500,"normal");return t==="outlined"?`border: ${r.globals.borderWidth.get("2")} solid ${o}`:`box-shadow: ${r.tokens.boxShadow.get("2")}
|
|
132
132
|
`},bN=(e,t)=>r=>E.css("display:flex;flex-direction:column;overflow:hidden;border-radius:",R(8),";",CN(e,t,r),";",""),yN=e=>t=>E.css(X7(t),";color:",Ct(e)?t.tokens.colors.get(`textColor.default.${ht(e)}`):t.globals.oldColors.white,";display:flex;justify-content:space-between;overflow:hidden;height:",R(58),";background:",Ct(e)?t.tokens.colors.get(`palette.${J9(e)}.muted`):t.utils.getColor(e,500,"normal"),";",""),mN=()=>e=>E.css(Qe,";padding:0 ",e.globals.spacing.get("6"),";",""),wN=()=>e=>E.css("padding-right:",e.globals.spacing.get("4"),";",""),SN=()=>e=>E.css("display:flex;align-items:center;padding-right:",e.globals.spacing.get("6"),";",""),EN=e=>()=>E.css("cursor:pointer;transform:rotate(",e?"180":"0","deg);",ie(.2),";",""),xN=(e,t,r)=>o=>E.css(ie(.1),";min-height:",R(r&&t?146:0),";",Ct(e)?B8.notification:B8.generic," height:",t?"inherit":R(0),";font-size:",o.globals.typography.fontSize.get("3"),";position:relative;background:",o.globals.oldColors.white,";",""),Ct=e=>["success","error","warning","info"].includes(e),$N=({message:e,type:t="primary",styleType:r="elevated",closeCTA:o,isExpanded:n=!1,hasMinimumHeight:a=!0,children:i,dataTestId:l})=>{const[s,c]=h.useState(n),d=z();return u.jsxs("div",{css:bN(t,r),...Ct(t)&&{"notification-type":"toast"},children:[u.jsxs("div",{css:yN(t),children:[u.jsxs("div",{css:mN(),children:[Ct(t)&&u.jsx("div",{css:wN(),children:u.jsx(U,{name:Pu(t),color:d.tokens.colors.get(`textColor.default.${ht(t)}`),size:24})}),u.jsx("div",{children:e})]}),u.jsxs("div",{css:SN(),children:[u.jsx("span",{css:EN(s),onClick:()=>c(!s),"data-testid":X("toast-expand",l),children:u.jsx(U,{name:"chevronDown",color:Ct(t)?d.tokens.colors.get("textColor.default.secondary"):"#ffffff",size:24})}),u.jsx("span",{css:jo(),onClick:o,"data-testid":X("toast-close",l),children:u.jsx(U,{name:"close",color:Ct(t)?d.tokens.colors.get("textColor.default.secondary"):"#ffffff",size:24})})]})]}),u.jsx("div",{css:xN(t,s,a),"data-testid":X("expanded-container",l),children:i})]})},R8={wrapper:e=>E.css(Qe,";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:",R(400),";",""),placeholderWrapper:{name:"179mfwc",styles:"margin:auto;height:100%;display:flex;justify-content:center;align-items:center;cursor:default"}},TN=()=>u.jsxs("div",{css:R8.placeholderWrapper,children:[u.jsx("strong",{children:"LOGO"}),"PLACEHOLDER"]}),kN=({logoIcon:e})=>u.jsx("div",{css:R8.wrapper,children:e||u.jsx(TN,{})}),PN={iconWrapper:e=>E.css("cursor:pointer;margin:",e.globals.spacing.get("8")," 0px ",e.globals.spacing.get("8")," ",e.globals.spacing.get("3"),";","")},_N=({onMenuIconClick:e})=>{const t=z();return u.jsx("div",{css:PN.iconWrapper,onClick:e,"data-testid":"menu-handler",children:u.jsx(U,{color:t.globals.oldColors.primary[500],name:"menu",size:24})})},AN=({items:e,userAvatar:t,userName:r,onSelect:o})=>{const[n,a]=h.useState(!1),i=h.useRef(null),l=()=>{a(d=>!d)},[s,c]=h.useState(new Set([]));return u.jsxs(u.Fragment,{children:[u.jsx(ze,{avatar:t,iconRightName:"chevronDown",ref:i,"aria-label":"Menu",dataTestId:"userMenu",type:"tertiary",onClick:l,"aria-controls":n?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":n?"true":void 0,children:r}),u.jsx(X9,{triggerRef:i,isOpen:n,onClose:l,selectedKeys:s,rowSize:"normal",onSelectionChange:c,onAction:o,children:e.map(d=>u.jsx(wr,{parentType:"Menu",children:u.jsx(mr,{children:d})},d))})]})},MN=(e,t)=>e?t.tokens.colors.get("backgroundColor.invertedAlt"):t.tokens.colors.get("backgroundColor.alt"),LN=e=>t=>{const r=MN(e,t);return E.css("flex-grow:1;max-width:",R(520),";",Se," ",so," height:",R(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?H.lighten(.03,r):H.darken(.03,r),";}&:focus-within{background:",r,";}","")},ON=(e,t)=>r=>{const o=Wo({placeholder:e})(r),n=`
|
|
133
133
|
border-radius: ${R(4)};
|
|
134
134
|
color: ${t?r.tokens.colors.get("textColor.inverted.secondary"):void 0};
|