@mesh.ai/rabbit 1.21.0 → 1.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -25375,7 +25375,7 @@ const fz = ({ x: e, y: t, datum: n, size: r }) => /* @__PURE__ */ u(_o, { cx: e,
|
|
|
25375
25375
|
/* @__PURE__ */ u("div", { className: "h-full min-h-0 w-full min-w-0", children: /* @__PURE__ */ W(
|
|
25376
25376
|
or,
|
|
25377
25377
|
{
|
|
25378
|
-
margin: { top: 10, left:
|
|
25378
|
+
margin: { top: 10, left: 70, right: 50, bottom: 50 },
|
|
25379
25379
|
xScale: { type: "band", nice: !0, ...s && { domain: s } },
|
|
25380
25380
|
yScale: { type: "linear", nice: !0, ...l && { domain: l } },
|
|
25381
25381
|
children: [
|
|
@@ -25422,7 +25422,11 @@ const fz = ({ x: e, y: t, datum: n, size: r }) => /* @__PURE__ */ u(_o, { cx: e,
|
|
|
25422
25422
|
orientation: "left",
|
|
25423
25423
|
stroke: "#CFD7DF",
|
|
25424
25424
|
label: `${i} ➔`,
|
|
25425
|
-
tickFormat: (M) => d ? wh(
|
|
25425
|
+
tickFormat: (M) => d ? wh(
|
|
25426
|
+
Bn(M >= 1e3 ? "~s" : "")(M),
|
|
25427
|
+
d.symbol,
|
|
25428
|
+
d.position
|
|
25429
|
+
) : Bn(M >= 1e3 ? "~s" : "")(M),
|
|
25426
25430
|
tickLabelProps: {
|
|
25427
25431
|
fontFamily: "system-ui",
|
|
25428
25432
|
fontSize: "10px",
|
|
@@ -25433,7 +25437,7 @@ const fz = ({ x: e, y: t, datum: n, size: r }) => /* @__PURE__ */ u(_o, { cx: e,
|
|
|
25433
25437
|
fontFamily: "system-ui",
|
|
25434
25438
|
fontSize: "10px",
|
|
25435
25439
|
fontWeight: 600,
|
|
25436
|
-
dx: -
|
|
25440
|
+
dx: -35,
|
|
25437
25441
|
fill: "#666666",
|
|
25438
25442
|
textAnchor: "middle",
|
|
25439
25443
|
verticalAnchor: "middle"
|
|
@@ -26804,7 +26808,7 @@ const Dz = ({ x: e, y: t, datum: n }) => /* @__PURE__ */ u(
|
|
|
26804
26808
|
/* @__PURE__ */ u("div", { className: "h-full min-h-0 w-full min-w-0", children: /* @__PURE__ */ W(
|
|
26805
26809
|
or,
|
|
26806
26810
|
{
|
|
26807
|
-
margin: { top: 10, left:
|
|
26811
|
+
margin: { top: 10, left: 70, right: 50, bottom: 50 },
|
|
26808
26812
|
xScale: {
|
|
26809
26813
|
type: "band",
|
|
26810
26814
|
nice: !0,
|
|
@@ -26856,7 +26860,11 @@ const Dz = ({ x: e, y: t, datum: n }) => /* @__PURE__ */ u(
|
|
|
26856
26860
|
orientation: "left",
|
|
26857
26861
|
stroke: "#CFD7DF",
|
|
26858
26862
|
label: `${i} ➔`,
|
|
26859
|
-
tickFormat: ($) => d ? Dh(
|
|
26863
|
+
tickFormat: ($) => d ? Dh(
|
|
26864
|
+
Bn($ >= 1e3 ? "~s" : "")($),
|
|
26865
|
+
d.symbol,
|
|
26866
|
+
d.position
|
|
26867
|
+
) : Bn($ >= 1e3 ? "~s" : "")($),
|
|
26860
26868
|
tickLabelProps: {
|
|
26861
26869
|
fontFamily: "system-ui",
|
|
26862
26870
|
fontSize: "10px",
|
|
@@ -26867,7 +26875,7 @@ const Dz = ({ x: e, y: t, datum: n }) => /* @__PURE__ */ u(
|
|
|
26867
26875
|
fontFamily: "system-ui",
|
|
26868
26876
|
fontSize: "10px",
|
|
26869
26877
|
fontWeight: 600,
|
|
26870
|
-
dx: -
|
|
26878
|
+
dx: -35,
|
|
26871
26879
|
fill: "#666666",
|
|
26872
26880
|
textAnchor: "middle",
|
|
26873
26881
|
verticalAnchor: "middle"
|
|
@@ -93,4 +93,4 @@ z`).split(`
|
|
|
93
93
|
`)} {
|
|
94
94
|
${fr}
|
|
95
95
|
}
|
|
96
|
-
`}),Z.appendChild(G.createTextNode(Tt))}R.timeEnd("clone node"),ve==null||ve(Oe),pe!==!1&&te(Oe)&&(R.time("embed web font"),yield Wj(Oe,V),R.timeEnd("embed web font")),R.time("embed node"),tb(Oe,V);const _e=ie.length;let Ie=0;const Xe=()=>m(this,null,function*(){for(;;){const Tt=ie.pop();if(!Tt)break;try{yield Tt}catch(zn){De("Failed to run task",zn)}ge==null||ge(++Ie,_e)}});ge==null||ge(Ie,_e),yield Promise.all([...Array(4)].map(Xe)),R.timeEnd("embed node"),Ee==null||Ee(Oe);const Ve=Kj(Oe,V);return ae&&Ve.insertBefore(ae,Ve.children[0]),Z&&Ve.insertBefore(Z,Ve.children[0]),ye&&K8(V),Ae==null||Ae(Ve),Ve})}function Kj(S,I){const{width:V,height:G}=I,R=Bt(V,G,S.ownerDocument),ie=R.ownerDocument.createElementNS(R.namespaceURI,"foreignObject");return ie.setAttributeNS(null,"x","0%"),ie.setAttributeNS(null,"y","0%"),ie.setAttributeNS(null,"width","100%"),ie.setAttributeNS(null,"height","100%"),ie.append(S),R.appendChild(ie),R}function kl(S,I){return m(this,null,function*(){var V;const G=yield zt(S,I),R=yield nb(G),ie=et(R,G.isEnable("removeControlCharacter"));G.autoDestruct||(G.svgStyleElement=$t(G.ownerDocument),G.svgDefsElement=(V=G.ownerDocument)==null?void 0:V.createElementNS(Lt,"defs"),G.svgStyles.clear());const Z=Ke(ie,R.ownerDocument);return yield Ln(Z,G)})}function Qj(S,I){return m(this,null,function*(){const V=yield zt(S,I),{log:G,type:R,quality:ie,dpi:Z}=V,ae=yield kl(V);G.time("canvas to blob");const fe=yield ur(ae,R,ie);if(["image/png","image/jpeg"].includes(R)&&Z){const pe=yield ct(fe.slice(0,33));let ge=new Uint8Array(pe);return R==="image/png"?ge=M(ge,Z):R==="image/jpeg"&&(ge=x(ge,Z)),G.timeEnd("canvas to blob"),new Blob([ge,fe.slice(33)],{type:R})}return G.timeEnd("canvas to blob"),fe})}function Fo(S,I){return m(this,null,function*(){const V=yield zt(S,I),{log:G,quality:R,type:ie,dpi:Z}=V,ae=yield kl(V);G.time("canvas to data url");let fe=ae.toDataURL(ie,R);if(["image/png","image/jpeg"].includes(ie)&&Z&&H&&z){const[pe,ge]=fe.split(",");let ye=0,ve=!1;if(ie==="image/png"){const Ve=U(ge);Ve>=0?(ye=Math.ceil((Ve+28)/3)*4,ve=!0):ye=33/3*4}else ie==="image/jpeg"&&(ye=18/3*4);const Ee=ge.substring(0,ye),Ae=ge.substring(ye),Oe=window.atob(Ee),_e=new Uint8Array(Oe.length);for(let Ve=0;Ve<_e.length;Ve++)_e[Ve]=Oe.charCodeAt(Ve);const Ie=ie==="image/png"?M(_e,Z,ve):x(_e,Z),Xe=window.btoa(String.fromCharCode(...Ie));fe=[pe,",",Xe,Ae].join("")}return G.timeEnd("canvas to data url"),fe})}function rb(S,I){return m(this,null,function*(){const V=yield zt(S,I),{width:G,height:R,ownerDocument:ie}=V,Z=yield Fo(V),ae=Bt(G,R,ie),fe=ae.ownerDocument.createElementNS(ae.namespaceURI,"image");return fe.setAttributeNS(null,"href",Z),fe.setAttributeNS(null,"height","100%"),fe.setAttributeNS(null,"width","100%"),ae.appendChild(fe),et(ae,V.isEnable("removeControlCharacter"))})}function Zj(S,I){return m(this,null,function*(){const V=yield zt(S,I),{ownerDocument:G,width:R,height:ie,scale:Z,type:ae}=V,fe=ae==="image/svg+xml"?yield rb(V):yield Fo(V),pe=Ke(fe,G);return pe.width=Math.floor(R*Z),pe.height=Math.floor(ie*Z),pe.style.width=`${R}px`,pe.style.height=`${ie}px`,pe})}function Jj(S,I){return m(this,null,function*(){return Fo(yield zt(S,v(h({},I),{type:"image/jpeg"})))})}function Rj(S,I){return m(this,null,function*(){const V=yield zt(S,I),G=yield kl(V);return G.getContext("2d").getImageData(0,0,G.width,G.height).data})}function eV(S,I){return m(this,null,function*(){return Fo(yield zt(S,v(h({},I),{type:"image/png"})))})}function tV(S,I){return m(this,null,function*(){return Fo(yield zt(S,v(h({},I),{type:"image/webp"})))})}n.createContext=Ml,n.destroyContext=K8,n.domToBlob=Qj,n.domToCanvas=kl,n.domToDataUrl=Fo,n.domToForeignObjectSvg=nb,n.domToImage=Zj,n.domToJpeg=Jj,n.domToPixel=Rj,n.domToPng=eV,n.domToSvg=rb,n.domToWebp=tV,n.loadMedia=wt,n.waitUntilLoad=wn,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})})})(e0,e0.exports);var xz=e0.exports;const In=(e,t,n)=>{d.useImperativeHandle(t,()=>({download(){e.current&&xz.domToPng(e.current,{scale:5}).then(r=>{const o=document.createElement("a");o.download=`${n}.png`,o.href=r,o.click()})}}))},O4=[{name:"default",dark:"var(--chart-default-dark, #1565BC)",light:"var(--chart-default-light, #99D2F9)"},{name:"green",dark:"#1A6400",light:"#B1E39F"},{name:"purple",dark:"#734DBB",light:"#E7DAFF"},{name:"bronze_yellow",dark:"#7E6000",light:"#FFCEFB"},{name:"plum",dark:"#7D1779",light:"#E1AADD"},{name:"indigo",dark:"#4657AE",light:"#CDD5FF"},{name:"brown",dark:"#8A4A00",light:"#FCC88B"},{name:"cardinal",dark:"#BE1442",light:"#FFD0D0"},{name:"dark_green",dark:"#00675E",light:"#A1DFD5"},{name:"maroon",dark:"#891E01",light:"#FFAE99"},{name:"golden_brown",dark:"#90591A",light:"#FFDEB6"},{name:"maroon",dark:"#800000",light:"#F2CECE"},{name:"green_yellow",dark:"#6A6A00",light:"#FFFFC7"},{name:"blue",dark:"#000075",light:"#CFCFFF"},{name:"black",dark:"#000000",light:"#E3E1E1"},{name:"grey",dark:"#323846",light:"#D0DFFF"},{name:"pink",dark:"#BE012F",light:"#FFD9E2"},{name:"royal_blue",dark:"#002FDC",light:"#D7DFFF"},{name:"magenta",dark:"#B402AA",light:"#FFCEFB"}];function Ye(e){return O4[e%O4.length]}const hl=(e,t)=>d.Children.map(e,n=>d.isValidElement(n)&&typeof n.type=="function"&&n.type.displayName===t.displayName?n:null);function t0({value:e,darkColor:t,lightColor:n}){return c.jsxs("div",{className:"inline-flex items-center justify-start gap-2 px-2 py-1",children:[c.jsx("div",{style:{backgroundColor:n,borderColor:t},className:"relative h-3 w-3 rounded-3xl border"}),c.jsx("div",{className:"flex items-start justify-start",children:c.jsx("div",{className:"text-xs font-normal leading-none text-zinc-800",children:e})})]})}function n0({label:e,value:t}){return c.jsxs("div",{className:"inline-flex max-w-sm basis-full flex-col items-start justify-start px-1 py-0.5",children:[c.jsx("div",{className:" text-[10px] font-normal leading-none text-stone-500",children:e}),c.jsx("div",{className:"flex items-start justify-start text-sm font-medium",children:t||"-"})]})}function r0({label:e,value:t}){return c.jsxs("div",{className:"inline-flex max-w-sm flex-col items-start justify-start px-2 py-0.5",children:[c.jsx("div",{className:" text-[10px] font-normal leading-none text-stone-500",children:e}),c.jsx("div",{className:"flex items-start justify-start text-sm font-medium",children:t||"-"})]})}function o0({nodeData:e}){const{employee:t}=e,{name:n,imageUrl:r}=t;return c.jsxs("div",{className:"inline-flex max-w-sm items-center justify-start px-2 py-0.5",children:[c.jsx(dn,{size:"md",children:c.jsx(fn,{src:r,alt:"Avatar"})}),c.jsx("div",{className:"flex items-start justify-start px-2 text-sm font-medium",children:n||"-"})]})}function ke({children:e,showSideBySide:t,tooltipTitle:n}){const r=hl(e,t0),o=hl(e,n0),a=hl(e,r0),i=hl(e,o0);return c.jsxs("div",{className:"rabbit-ds relative z-[1500] inline-flex h-auto w-auto min-w-[200px] max-w-[400px] flex-col items-start justify-start gap-2 rounded-lg bg-white p-2 shadow",children:[c.jsx("div",{className:"px-2 py-1 text-xs font-medium leading-none text-zinc-800",children:n}),a,c.jsxs("div",{className:"flex w-full flex-col items-start justify-start rounded-lg p-2",children:[t&&c.jsxs("div",{className:le("flex w-full justify-between"),children:[o&&o[0],!!(o!=null&&o[1])&&c.jsx("div",{className:"mx-3 w-0 border-r"}),o&&o[1]]}),t&&(o==null?void 0:o[2])&&c.jsxs("div",{className:le("flex w-full mt-3 justify-between"),children:[o&&o[2],!!(o!=null&&o[3])&&c.jsx("div",{className:"mx-3 w-0 border-r"}),o&&o[3]]}),!t&&c.jsx("div",{className:le("grid w-full auto-rows-auto gap-3"),children:o})]}),r&&r.length>0?c.jsx("div",{className:"h-px w-full bg-gray-100 px-2"}):null,r,i]})}t0.displayName="Legend",n0.displayName="Item",r0.displayName="Header",o0.displayName="Footer",ke.Legend=t0,ke.Item=n0,ke.Header=r0,ke.Footer=o0,ke.defaultProps={showSideBySide:!1};function N4({xValue:e,yValue:t,tooltipTitle:n,xAxisLabel:r,yAxisLabel:o,showSideBySide:a,legendValue:i,legendDarkColor:s,legendLightColor:l}){const u=e==null?void 0:e.toString(),f=t==null?void 0:t.toString();return c.jsxs(ke,{tooltipTitle:n,showSideBySide:a,children:[c.jsx(ke.Item,{label:r,value:u}),c.jsx(ke.Item,{label:o,value:f}),c.jsx(ke.Legend,{value:i,darkColor:s,lightColor:l})]})}N4.defaultProps={xValue:void 0,yValue:void 0};function Cz({data:e,xAccessor:t,yAccessor:n,connectNulls:r=!1}){const o=d.useContext(bt),a=r?e.filter(i=>i.y!==null):e;return a.length===0?null:c.jsx($5,{data:a,stroke:a[0].color.dark,strokeWidth:1,x:i=>{var s,l;return((s=o==null?void 0:o.xScale)==null?void 0:s.call(o,t(i)))+((l=o==null?void 0:o.xScale)==null?void 0:l.bandwidth())/2},y:i=>{var s;return(s=o==null?void 0:o.yScale)==null?void 0:s.call(o,n(i))}})}const Az=({x:e,y:t,datum:n,size:r})=>c.jsx(so,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.light,r:r/2}),Sz=({tickData:e,xAxisCharLimit:t})=>{var a;const n=d.useContext(bt),r=(a=n==null?void 0:n.xScale)==null?void 0:a.bandwidth(),o=Math.floor(r/5);return c.jsx(Xa,{textLabel:e.formattedValue||"",x:e.x,y:e.y,textStyles:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle",angle:r&&r<25?-45:0},axisCharLimit:t??o})},Ez=({x:e,y:t,datum:n})=>c.jsx(so,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.dark,r:5,style:{zIndex:1500}}),gl={xAccessor:e=>e.x,yAccessor:e=>e.y},D4=(e,t,n)=>n==="pre"?`${t}${e}`:`${e}${t}`,F4=10,Mz=5,a0=d.forwardRef(({nodes:e,height:t,width:n,xAxisValues:r,series:o,xAxisLabel:a,yAxisLabel:i,xAxisDomain:s,yAxisDomain:l,xAxisUnitSymbol:u,yAxisUnitSymbol:f,tooltipTitle:p,mode:h,xAxisCharLimit:v,connectNulls:g=!1,maxNodesInMiniMode:m=Mz,tooltipStackCharLimit:x=F4,seriesSelectorTitle:y,preselectedNodes:w},b)=>{const[A,C]=d.useState(()=>(w&&w<=e.length?e.slice(0,w):e).map(P=>P.id)),$=d.useRef(null);In($,b,`${a}-${i}-LineChart`);const k=d.useMemo(()=>o.map((M,P)=>{const L=e.find(W=>W.id===M.id);return{points:M.data.map((W,U)=>({x:r[U],y:Number(W),nodeId:M.id,color:(L==null?void 0:L.color)??Ye(P)}))}}).slice(0,h==="mini"?m:o.length),[o,h,m,e,r]),T=d.useMemo(()=>h==="full"?k.filter(M=>A.includes(M.points[0].nodeId)):k,[k,A,h]);return c.jsxs("div",{ref:$,id:"line-chart",className:"rabbit-ds flex flex-col bg-white",style:{width:n,height:t},children:[c.jsxs("div",{className:"flex h-full min-h-0 w-full min-w-0 flex-row",children:[c.jsx("div",{className:"h-full min-h-0 w-full min-w-0",children:c.jsxs(cr,{margin:{top:10,left:50,right:50,bottom:50},xScale:{type:"band",nice:!0,...s&&{domain:s}},yScale:{type:"linear",nice:!0,...l&&{domain:l}},children:[c.jsx(U5,{columns:!1,numTicks:6,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),c.jsx($o,{hideTicks:!0,orientation:"bottom",stroke:"#CFD7DF",strokeWidth:1,numTicks:30,tickFormat:M=>u?D4(M,u.symbol,u.position):M,rangePadding:{end:10},tickComponent:M=>c.jsx(Sz,{tickData:M,xAxisCharLimit:v}),label:`${a} ➔`,labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx($o,{hideTicks:!0,numTicks:6,strokeWidth:1,orientation:"left",stroke:"#CFD7DF",label:`${i} ➔`,tickFormat:M=>f?D4(Tn("~s")(M),f.symbol,f.position):Tn("~s")(M),tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666"},labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dx:-20,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),T.map((M,P)=>c.jsxs(c.Fragment,{children:[c.jsx(Cz,{data:M.points,xAccessor:gl.xAccessor,yAccessor:gl.yAccessor,connectNulls:g}),c.jsx(k4,{dataKey:`Performance Management ${P}`,data:M.points,size:8,renderGlyph:Az,xAccessor:gl.xAccessor,yAccessor:gl.yAccessor})]})),c.jsx(ol,{showDatumGlyph:!0,scroll:!0,debounce:500,snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,detectBounds:!0,unstyled:!0,applyPositionStyle:!0,renderGlyph:Ez,renderTooltip:({tooltipData:M})=>{var W,U,B,E,_,H;const P=e.find(z=>{var N;return z.id===((N=M==null?void 0:M.nearestDatum)==null?void 0:N.datum.nodeId)}),L=((W=M==null?void 0:M.nearestDatum)==null?void 0:W.datum)&&((U=M==null?void 0:M.nearestDatum)==null?void 0:U.datum.x.length)<x;return c.jsx(N4,{xValue:(B=M==null?void 0:M.nearestDatum)==null?void 0:B.datum.x,yValue:(E=M==null?void 0:M.nearestDatum)==null?void 0:E.datum.y,xAxisLabel:a,yAxisLabel:i,showSideBySide:!!L,tooltipTitle:p,legendValue:(P==null?void 0:P.name)||"",legendDarkColor:((_=M==null?void 0:M.nearestDatum)==null?void 0:_.datum.color.dark)||Ye(0).dark,legendLightColor:((H=M==null?void 0:M.nearestDatum)==null?void 0:H.datum.color.light)||Ye(0).light})}})]})}),h==="full"&&c.jsxs("div",{className:"inline-flex w-64 shrink-0 grow-0 basis-auto flex-col items-start justify-start gap-0.5 rounded border border-solid border-[color:var(--Accent,#EBEFF3)] bg-[#FDFDFD] p-4 pr-0 text-xs",children:[c.jsxs("div",{className:"pb-1 text-xs font-semibold",children:[c.jsx("span",{className:"pr-1",children:y??a}),"(",T.length??0,"/",k.length,")"]}),c.jsx("div",{className:"inline-flex h-[95%] w-full shrink-0 grow-0 flex-col items-start justify-start gap-1 overflow-scroll pr-4",children:k.map(M=>{const P=e.find(L=>L.id===M.points[0].nodeId);return P&&c.jsxs("div",{className:"flex w-full items-center justify-between gap-1 py-1",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("div",{style:{backgroundColor:M.points[0].color.light,borderColor:M.points[0].color.dark},className:"mr-1 h-3 w-3 rounded-full border"}),P.name]}),c.jsx("div",{className:"flex items-center",children:c.jsx(ri,{checked:A.includes(P.id),onCheckedChange:L=>{let W=[...A];L?W=[...A,P.id]:W.splice(A.indexOf(P.id),1),C(W)}})})]},P.id)})})]})]}),h==="mini"&&c.jsx("div",{className:"flex flex-row flex-wrap justify-center gap-4 text-[10px] font-semibold text-font-secondary",children:k.map(M=>{const P=e.find(L=>L.id===M.points[0].nodeId);return c.jsxs("div",{className:"flex items-center justify-center gap-1",children:[c.jsx("div",{style:{backgroundColor:M.points[0].color.light,borderColor:M.points[0].color.dark},className:"h-3 w-3 rounded-full border"}),P==null?void 0:P.name]},P==null?void 0:P.id)})})]})}),$z={xAxisUnitSymbol:void 0,yAxisUnitSymbol:void 0,mode:"mini",xAxisCharLimit:void 0,tooltipStackCharLimit:F4,xAxisDomain:void 0,yAxisDomain:void 0,connectNulls:!1};a0.defaultProps=$z,a0.displayName="LineBase";const _4=d.forwardRef((e,t)=>c.jsx(Rn,{debounceTime:10,children:({width:n,height:r})=>c.jsx(a0,{ref:t,width:n,height:r,...e})}));_4.displayName="LineChart";const Tz=_4;function I4(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let o of e)(o=t(o,++r,e))!=null&&(n<o||n===void 0&&o>=o)&&(n=o)}return n}function Pz(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let o of e)(o=t(o,++r,e))!=null&&(n>o||n===void 0&&o>=o)&&(n=o)}return n}function i0(e,t){let n=0;if(t===void 0)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let o of e)(o=+t(o,++r,e))&&(n+=o)}return n}function kz(e,t){return e.sourceLinks.length?e.depth:t-1}function vl(e){return function(){return e}}function L4(e,t){return ml(e.source,t.source)||e.index-t.index}function B4(e,t){return ml(e.target,t.target)||e.index-t.index}function ml(e,t){return e.y0-t.y0}function s0(e){return e.value}function Oz(e){return e.index}function Nz(e){return e.nodes}function Dz(e){return e.links}function z4(e,t){const n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function W4({nodes:e}){for(const t of e){let n=t.y0,r=n;for(const o of t.sourceLinks)o.y0=n+o.width/2,n+=o.width;for(const o of t.targetLinks)o.y1=r+o.width/2,r+=o.width}}function Fz(){let e=0,t=0,n=1,r=1,o=24,a=8,i,s=Oz,l=kz,u,f,p=Nz,h=Dz,v=6;function g(){const E={nodes:p.apply(null,arguments),links:h.apply(null,arguments)};return m(E),x(E),y(E),w(E),C(E),W4(E),E}g.update=function(E){return W4(E),E},g.nodeId=function(E){return arguments.length?(s=typeof E=="function"?E:vl(E),g):s},g.nodeAlign=function(E){return arguments.length?(l=typeof E=="function"?E:vl(E),g):l},g.nodeSort=function(E){return arguments.length?(u=E,g):u},g.nodeWidth=function(E){return arguments.length?(o=+E,g):o},g.nodePadding=function(E){return arguments.length?(a=i=+E,g):a},g.nodes=function(E){return arguments.length?(p=typeof E=="function"?E:vl(E),g):p},g.links=function(E){return arguments.length?(h=typeof E=="function"?E:vl(E),g):h},g.linkSort=function(E){return arguments.length?(f=E,g):f},g.size=function(E){return arguments.length?(e=t=0,n=+E[0],r=+E[1],g):[n-e,r-t]},g.extent=function(E){return arguments.length?(e=+E[0][0],n=+E[1][0],t=+E[0][1],r=+E[1][1],g):[[e,t],[n,r]]},g.iterations=function(E){return arguments.length?(v=+E,g):v};function m({nodes:E,links:_}){for(const[z,N]of E.entries())N.index=z,N.sourceLinks=[],N.targetLinks=[];const H=new Map(E.map((z,N)=>[s(z,N,E),z]));for(const[z,N]of _.entries()){N.index=z;let{source:O,target:F}=N;typeof O!="object"&&(O=N.source=z4(H,O)),typeof F!="object"&&(F=N.target=z4(H,F)),O.sourceLinks.push(N),F.targetLinks.push(N)}if(f!=null)for(const{sourceLinks:z,targetLinks:N}of E)z.sort(f),N.sort(f)}function x({nodes:E}){for(const _ of E)_.value=_.fixedValue===void 0?Math.max(i0(_.sourceLinks,s0),i0(_.targetLinks,s0)):_.fixedValue}function y({nodes:E}){const _=E.length;let H=new Set(E),z=new Set,N=0;for(;H.size;){for(const O of H){O.depth=N;for(const{target:F}of O.sourceLinks)z.add(F)}if(++N>_)throw new Error("circular link");H=z,z=new Set}}function w({nodes:E}){const _=E.length;let H=new Set(E),z=new Set,N=0;for(;H.size;){for(const O of H){O.height=N;for(const{source:F}of O.targetLinks)z.add(F)}if(++N>_)throw new Error("circular link");H=z,z=new Set}}function b({nodes:E}){const _=I4(E,N=>N.depth)+1,H=(n-e-o)/(_-1),z=new Array(_);for(const N of E){const O=Math.max(0,Math.min(_-1,Math.floor(l.call(null,N,_))));N.layer=O,N.x0=e+O*H,N.x1=N.x0+o,z[O]?z[O].push(N):z[O]=[N]}if(u)for(const N of z)N.sort(u);return z}function A(E){const _=Pz(E,H=>(r-t-(H.length-1)*i)/i0(H,s0));for(const H of E){let z=t;for(const N of H){N.y0=z,N.y1=z+N.value*_,z=N.y1+i;for(const O of N.sourceLinks)O.width=O.value*_}z=(r-z+i)/(H.length+1);for(let N=0;N<H.length;++N){const O=H[N];O.y0+=z*(N+1),O.y1+=z*(N+1)}W(H)}}function C(E){const _=b(E);i=Math.min(a,(r-t)/(I4(_,H=>H.length)-1)),A(_);for(let H=0;H<v;++H){const z=Math.pow(.99,H),N=Math.max(1-z,(H+1)/v);k(_,z,N),$(_,z,N)}}function $(E,_,H){for(let z=1,N=E.length;z<N;++z){const O=E[z];for(const F of O){let K=0,Y=0;for(const{source:ne,value:te}of F.targetLinks){let J=te*(F.layer-ne.layer);K+=U(ne,F)*J,Y+=J}if(!(Y>0))continue;let ee=(K/Y-F.y0)*_;F.y0+=ee,F.y1+=ee,L(F)}u===void 0&&O.sort(ml),T(O,H)}}function k(E,_,H){for(let z=E.length,N=z-2;N>=0;--N){const O=E[N];for(const F of O){let K=0,Y=0;for(const{target:ne,value:te}of F.sourceLinks){let J=te*(ne.layer-F.layer);K+=B(F,ne)*J,Y+=J}if(!(Y>0))continue;let ee=(K/Y-F.y0)*_;F.y0+=ee,F.y1+=ee,L(F)}u===void 0&&O.sort(ml),T(O,H)}}function T(E,_){const H=E.length>>1,z=E[H];P(E,z.y0-i,H-1,_),M(E,z.y1+i,H+1,_),P(E,r,E.length-1,_),M(E,t,0,_)}function M(E,_,H,z){for(;H<E.length;++H){const N=E[H],O=(_-N.y0)*z;O>1e-6&&(N.y0+=O,N.y1+=O),_=N.y1+i}}function P(E,_,H,z){for(;H>=0;--H){const N=E[H],O=(N.y1-_)*z;O>1e-6&&(N.y0-=O,N.y1-=O),_=N.y0-i}}function L({sourceLinks:E,targetLinks:_}){if(f===void 0){for(const{source:{sourceLinks:H}}of _)H.sort(B4);for(const{target:{targetLinks:H}}of E)H.sort(L4)}}function W(E){if(f===void 0)for(const{sourceLinks:_,targetLinks:H}of E)_.sort(B4),H.sort(L4)}function U(E,_){let H=E.y0-(E.sourceLinks.length-1)*i/2;for(const{target:z,width:N}of E.sourceLinks){if(z===_)break;H+=N+i}for(const{source:z,width:N}of _.targetLinks){if(z===E)break;H-=N}return H}function B(E,_){let H=_.y0-(_.targetLinks.length-1)*i/2;for(const{source:z,width:N}of _.targetLinks){if(z===E)break;H+=N+i}for(const{target:z,width:N}of E.sourceLinks){if(z===_)break;H-=N}return H}return g}function _z({tooltipData:e,fromLabel:t,toLabel:n,weightLabel:r,tooltipTitle:o}){var s,l,u,f;const a=e.source,i=e.target;return c.jsxs(ke,{tooltipTitle:o,children:[c.jsx(ke.Item,{label:t,value:a.name}),c.jsx(ke.Item,{label:n,value:i.name}),c.jsx(ke.Item,{label:r,value:e.weight.toString()}),c.jsx(ke.Legend,{value:a.name,darkColor:(s=Ye((a.index||0)+1))==null?void 0:s.dark,lightColor:(l=Ye((a.index||0)+1))==null?void 0:l.light}),c.jsx(ke.Legend,{value:i.name,darkColor:(u=Ye((i.index||0)+1))==null?void 0:u.dark,lightColor:(f=Ye((i.index||0)+1))==null?void 0:f.light})]})}const j4=80,V4=20,Iz=30,Lz=12,U4=d.forwardRef(({height:e,width:t,tooltipTitle:n,nodes:r,links:o,groups:a,weightLabel:i},s)=>{const l=d.useMemo(()=>Fz().nodeId(E=>E.id).nodeWidth(Lz).nodePadding(Iz).nodeAlign(E=>E.group),[]),u=d.useRef(null);In(u,s,`${n}-SankeyChart`);const[f,p]=d.useState(""),[h,v]=d.useState(null),{tooltipData:g,tooltipLeft:m,tooltipTop:x,tooltipOpen:y,showTooltip:w,hideTooltip:b}=Ba(),{containerBounds:A,containerRef:C,TooltipInPortal:$}=za({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),k=d.useMemo(()=>l.extent([[j4,V4],[t-j4,e-V4-50]])({nodes:r,links:o.map(E=>({...E,value:Number(E.weight)}))}),[e,t,l,r,o]),T=d.useMemo(()=>Math.max(...k.nodes.map(E=>E.depth??0)),[k]),M=d.useMemo(()=>{const E={};let _=-1/0;return k.nodes.forEach(H=>{const{group:z}=H;E[z]?(E[z].x=Math.max(E[z].x??-1/0,H.x0??-1/0),E[z].y=Math.max(E[z].y??-1/0,H.y1??-1/0)):(E[z]={},E[z].x=H.x0,E[z].y=H.y1),_=Math.max(_,E[z].y??-1/0),E[z].y=_}),Object.keys(E).forEach(H=>{E[H].y=_}),E},[k]),P=d.useCallback(E=>{const _=l.nodeId()(E);p(f===_?"":_)},[f,l]),L=d.useCallback(()=>{p(""),v(null)},[]),W=d.useMemo(()=>f===""&&h===null?new Set:new Set(k.links.filter(E=>l.nodeId()(E.source)===f||l.nodeId()(E.target)===f||(h==null?void 0:h.source)===E.source&&(h==null?void 0:h.target)===E.target)),[f,k,h,l]),U=d.useCallback((E,_)=>{const H=("clientX"in E?E.clientX:0)-A.left,z=("clientY"in E?E.clientY:0)-A.top;v(_),H&&z&&w({tooltipLeft:H,tooltipTop:z,tooltipData:_})},[w,A]),B=d.useCallback(()=>{L(),b()},[L,b]);return c.jsxs("div",{ref:u,className:"rabbit-ds h-min w-min bg-white",id:"sankey-chart",children:[c.jsxs("svg",{height:e,width:t,ref:C,children:[c.jsx("g",{children:k.links.map(E=>c.jsx(mI,{data:E,source:_=>({x:_.source.x1,y:_.y0}),target:_=>({x:_.target.x0,y:_.y1}),x:_=>_.x??0,y:_=>_.y??0,fill:"none",pointerEvents:"stroke",onMouseLeave:()=>B(),onMouseMove:_=>U(_,E),stroke:Ye((E.source.index||0)+1).light,strokeWidth:E.width,strokeOpacity:W.has(E)?.7:.4},E.index))}),c.jsx("g",{children:k.nodes.map(E=>{var _,H,z;return c.jsx("g",{children:c.jsx(T5,{x:E.x0??0,height:(E.y1??0)-(E.y0??0)+10,width:(E.x1??0)-(E.x0??0),y:(E.y0??0)-5,onMouseEnter:()=>P(E),onMouseLeave:()=>L(),radius:2,fill:f===E.id?(_=Ye((E.index||0)+1))==null?void 0:_.dark:(H=Ye((E.index||0)+1))==null?void 0:H.light,stroke:(z=Ye((E.index||0)+1))==null?void 0:z.dark,all:!0})},E.index)})}),c.jsx("g",{children:a.map(E=>c.jsx(Xa,{axisCharLimit:20,x:M[E.id].x??0,y:(M[E.id].y??0)+40,textLabel:E.name,textStyles:{fontSize:10,fontWeight:600,textAnchor:"middle",fill:"#666666"}},E.id))}),c.jsxs("g",{children:[k.nodes.map(E=>c.jsx(Xa,{axisCharLimit:8,x:E.depth===T?(E.x1??0)+10:(E.x0??0)-10,y:(E.y0??0)+((E.y1??0)-(E.y0??0))/2,textLabel:E.name,textStyles:{fontSize:10,fontWeight:600,textAnchor:E.depth===T?"start":"end",fill:"#666666"}},E.index)),k.nodes.map(E=>E.value&&c.jsx(ha,{x:E.depth===T?(E.x1??0)+10:(E.x0??0)-10,y:(E.y0??0)+((E.y1??0)-(E.y0??0))/2+16,style:{fontSize:10,fontWeight:400,textAnchor:E.depth===T?"start":"end",fill:"#666666"},children:`(${E.value.toString()})`},E.index))]})]}),y&&g&&c.jsx($,{top:x,left:m,unstyled:!0,applyPositionStyle:!0,children:c.jsx(_z,{tooltipData:g,fromLabel:`From: ${a[g.source.group].name}`,toLabel:`To: ${a[g.target.group].name}`,weightLabel:i,tooltipTitle:n})},Math.random())]})});U4.displayName="Sankey";const H4=d.forwardRef((e,t)=>c.jsx(Rn,{debounceTime:10,children:({width:n,height:r})=>n&&r&&c.jsx(U4,{ref:t,width:n,height:r,...e})}));H4.displayName="SankeyChart";const Bz=H4;function zz(e){return"bandwidth"in e?e.bandwidth():0}var Wz=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function l0(){return l0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l0.apply(this,arguments)}function jz(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function G4(e){var t=e.top,n=t===void 0?0:t,r=e.left,o=r===void 0?0:r,a=e.scale,i=e.width,s=e.stroke,l=s===void 0?"#eaf0f6":s,u=e.strokeWidth,f=u===void 0?1:u,p=e.strokeDasharray,h=e.className,v=e.children,g=e.numTicks,m=g===void 0?10:g,x=e.lineStyle,y=e.offset,w=e.tickValues,b=jz(e,Wz),A=w??Qd(a,m),C=(y??0)+zz(a)/2,$=A.map(function(k,T){var M,P=((M=Xs(a(k)))!=null?M:0)+C;return{index:T,from:new Pn({x:0,y:P}),to:new Pn({x:i,y:P})}});return d.createElement(hn,{className:gt("visx-rows",h),top:n,left:o},v?v({lines:$}):$.map(function(k){var T=k.from,M=k.to,P=k.index;return d.createElement(AI,l0({key:"row-line-"+P,from:T,to:M,stroke:l,strokeWidth:f,strokeDasharray:p,style:x},b))}))}G4.propTypes={tickValues:re.array,width:re.number.isRequired};function Y4({xValue:e,yValue:t,tooltipTitle:n,xAxisLabel:r,yAxisLabel:o,legendValue:a,legendDarkColor:i,legendLightColor:s}){const l=e==null?void 0:e.toString(),u=t==null?void 0:t.toString();return c.jsxs(ke,{tooltipTitle:n,showSideBySide:!0,children:[c.jsx(ke.Item,{label:r,value:l}),c.jsx(ke.Item,{label:o,value:u}),c.jsx(ke.Legend,{value:a,darkColor:i,lightColor:s})]})}Y4.defaultProps={xValue:void 0,yValue:void 0};const X4=20,q4=50,c0=80,bl=50,Vz=10,Uz=25,u0=d.forwardRef(({tooltipTitle:e,xAxisLabel:t,yAxisLabel:n,domain:r,binCount:o,data:a,width:i,height:s,maxBinCount:l=Uz,minBinCount:u=Vz,integerBins:f=!1,integerYAxis:p=!1},h)=>{const v=d.useMemo(()=>$s(a),[a]),{histogramDomain:g,threshold:m,thresholdInteger:x}=d.useMemo(()=>{const N=v[0]??0,O=N===v[1]?u+N:v[1]??0,F=O-N>u?O:u+N,K=Math.min(Math.max(O-N,u),l),Y=Math.floor(v[0]??0),ee=Math.ceil(F);return{histogramDomain:r||(f?[Y,ee]:[N,O]),threshold:K,thresholdInteger:Math.ceil(K)}},[v,r,f,l,u]),y=d.useMemo(()=>Mo({domain:g,range:[bl,i-q4],round:!0,nice:!0}),[g,i]),w=d.useMemo(()=>zN().domain(y.domain()).thresholds(o||(f?x:m))(a),[y,o,a,m,x,f]),b=d.useMemo(()=>Mo({domain:[0,ud(w,N=>N.length)??0],range:[s-c0,X4],round:!0,nice:!0}),[w,s]),A=d.useMemo(()=>b.ticks().filter(N=>p?Number.isInteger(N):N),[p,b]),C=d.useRef(null);In(C,h,`${t}-${n}-Histogram`);const{tooltipData:$,tooltipLeft:k,tooltipTop:T,tooltipOpen:M,showTooltip:P,hideTooltip:L}=Ba(),{containerBounds:W,containerRef:U,TooltipInPortal:B}=za({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),E=i-bl-q4,_=s-X4-c0-100,H=d.useCallback((N,O)=>{const F=("clientX"in N?N.clientX:0)-W.left,K=("clientY"in N?N.clientY:0)-W.top;F&&K&&P({tooltipLeft:F,tooltipTop:K,tooltipData:O})},[P,W]),z=d.useCallback(()=>{L()},[L]);return c.jsxs("div",{className:"rabbit-ds flex flex-col bg-white",style:{width:i,height:s},ref:C,children:[c.jsxs("svg",{width:i,height:s,ref:U,children:[c.jsx(pf,{orientation:"bottom",scale:y,top:s-c0,hideTicks:!0,numTicks:6,stroke:"#CFD7DF",strokeWidth:1,rangePadding:{end:10},label:`${t} ➔`,tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle"},labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx(pf,{orientation:"left",scale:b,left:bl,hideTicks:!0,strokeWidth:1,stroke:"#CFD7DF",tickFormat:Tn(p?"d":"~s"),tickValues:A,label:`${n} ➔`,tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"end"},labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dx:-20,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsxs(hn,{children:[c.jsx(G4,{scale:b,width:E,height:_,left:bl,top:0,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),w.map(N=>{const O=Math.abs(b(0)-b(N.length)),F=Math.abs(y(N.x1??0)-y(N.x0??0));return c.jsx("g",{children:c.jsx(iI,{x:y(N.x0??0),y:b(N.length),width:F,height:O&&O-1,fill:Ye(0).light,stroke:Ye(0).dark,strokeWidth:1,onMouseMove:K=>H(K,N),onMouseLeave:()=>z()})},Math.random())})]})]}),M&&$&&c.jsx(B,{top:T,left:k,unstyled:!0,applyPositionStyle:!0,children:c.jsx(Y4,{xAxisLabel:t,xValue:`${$.x0} to ${$.x1}`,yAxisLabel:n,yValue:$.length,tooltipTitle:e,legendValue:n,legendDarkColor:Ye(0).dark,legendLightColor:Ye(0).light})},Math.random()),b.domain()[2]]})}),K4=d.forwardRef((e,t)=>c.jsx(Rn,{debounceTime:10,children:({width:n,height:r})=>c.jsx(u0,{ref:t,width:n,height:r,...e})}));u0.defaultProps={domain:void 0,binCount:void 0,integerBins:!1,integerYAxis:!1},u0.displayName="HistogramBase",K4.displayName="HistogramChart";const Hz=K4;function Q4({tooltipTitle:e,label:t,value:n,unit:r,legendValue:o,legendDarkColor:a,legendLightColor:i}){return c.jsxs(ke,{tooltipTitle:e,children:[c.jsx(ke.Item,{label:t,value:`${n} ${r}`}),c.jsx(ke.Legend,{value:o,darkColor:a||"",lightColor:i||""})]})}Q4.defaultProps={};const Gz=e=>e.value,Yz=e=>e.label,Z4=d.forwardRef(({width:e,height:t,unit:n="%",data:r,tooltipTitle:o,legendTitle:a},i)=>{const s=e/2,l=t/2,u=d.useMemo(()=>Math.min(e-.35*e,t-50)/2,[e,t]),{tooltipData:f,tooltipLeft:p,tooltipTop:h,tooltipOpen:v,showTooltip:g,hideTooltip:m}=Ba(),{containerBounds:x,containerRef:y,TooltipInPortal:w}=za({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),b=d.useRef(null),A=d.useCallback(($,k)=>{const T=("clientX"in $?$.clientX:0)-x.left,M=("clientY"in $?$.clientY:0)-x.top;T&&M&&g({tooltipLeft:T,tooltipTop:M,tooltipData:k})},[g,x]),C=d.useCallback(()=>{m()},[m]);return In(b,i,"DonutChart"),c.jsxs("div",{className:"rabbit-ds flex flex-col bg-white",style:{width:e,height:t},ref:b,children:[c.jsx("svg",{width:e,height:t,className:"rabbit-ds",ref:y,children:c.jsx(hn,{top:l-20,left:s,children:c.jsx(R_,{data:r,pieValue:Gz,outerRadius:u-10,innerRadius:u-Math.min(e*.07,22)-10,cornerRadius:2,padAngle:.025,children:$=>c.jsx(c.Fragment,{children:$.arcs.map(k=>{const T=Yz(k.data);return c.jsx("g",{children:c.jsx("path",{d:$.path(k)??void 0,fill:k.data.color,onMouseLeave:C,onMouseMove:M=>A(M,{label:a,value:k.value,tooltipTitle:o,unit:n,legendValue:T,legendDarkColor:k.data.labelColor,legendLightColor:k.data.color})})},`arc-${T}`)})})})})}),v&&f&&c.jsx(w,{top:h,left:p,unstyled:!0,applyPositionStyle:!0,children:c.jsx(Q4,{unit:f.unit,label:f.label,value:f.value,tooltipTitle:o,legendValue:f.legendValue??"",legendDarkColor:f.legendDarkColor,legendLightColor:f.legendLightColor})},Math.random()),c.jsx("div",{className:"flex flex-row flex-wrap justify-center gap-2 text-[10px] font-semibold text-font-secondary",style:{fontSize:Math.min(e*.04,10)},children:r.map($=>c.jsxs("div",{className:"flex items-center justify-center gap-1",children:[c.jsx("div",{style:{backgroundColor:$.color,borderColor:$.labelColor,color:$.labelColor,width:Math.min(e*.04,10),height:Math.min(e*.04,10)},className:"h-3 w-3 rounded-full border"}),`${$.label}: ${$.value}${n}`]},$.label))})]})});Z4.displayName="DonutChartBase";const J4=d.forwardRef((e,t)=>c.jsx(Rn,{debounceTime:10,children:({width:n,height:r})=>c.jsx(Z4,{ref:t,width:n,height:r,...e})}));J4.displayName="DonutChart";const Xz=J4;function R4({xValue:e,yValue:t,tooltipTitle:n,xAxisLabel:r,yAxisLabel:o,showSideBySide:a,legendValue:i,legendDarkColor:s,legendLightColor:l}){const u=e==null?void 0:e.toString(),f=t==null?void 0:t.toString();return c.jsxs(ke,{tooltipTitle:n,showSideBySide:a,children:[c.jsx(ke.Item,{label:r,value:u}),c.jsx(ke.Item,{label:o,value:f}),c.jsx(ke.Legend,{value:i,darkColor:s,lightColor:l})]})}R4.defaultProps={xValue:void 0,yValue:void 0};const yl={top:60,left:20,right:20,bottom:20},e8={start:10,end:-10,middle:0},t8=d.forwardRef(({width:e,height:t,levels:n=5,nodes:r,xAxisLabel:o,xAxisCharLimit:a,tooltipTitle:i,xAxisUnitSymbol:s,yAxisDomain:l,series:u=[],xAxisValues:f},p)=>{const h=d.useRef(null);In(h,p,"RadarChart");const{tooltipData:v,tooltipLeft:g,tooltipTop:m,tooltipOpen:x,showTooltip:y,hideTooltip:w}=Ba(),{containerBounds:b,containerRef:A,TooltipInPortal:C}=za({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),$=d.useCallback((O,F)=>{const K=Math.PI*2/O;return[...new Array(O)].map((Y,ee)=>({x:F*Math.sin(ee*K),y:F*Math.cos(ee*K)}))},[]),k=d.useCallback((O,F,K)=>K==="pre"?`${F}${O}`:`${O}${F}`,[]),T=d.useCallback((O,F,K)=>{const Y=Math.PI*2/O.length,ee=new Array(O.length).fill({x:0,y:0,data:null}),ne=new Array(O.length+1).fill("").reduce((te,J,oe)=>{if(oe>O.length)return te;const X=F(K(O[oe-1]))*Math.sin(oe*Y),Q=F(K(O[oe-1]))*Math.cos(oe*Y);return ee[oe-1]={x:X,y:Q,data:O[oe-1]},`${te}${X},${Q} `});return{points:ee,pointString:ne}},[]),M=d.useMemo(()=>new Pn({x:0,y:0}),[]),P=d.useCallback(O=>Math.round(O)===0?"middle":O>0?"start":"end",[]),L=d.useCallback((O,F)=>{const K=("clientX"in O?O.clientX:0)-b.left,Y=("clientY"in O?O.clientY:0)-b.top;K&&Y&&y({tooltipLeft:K,tooltipTop:Y,tooltipData:F})},[y,b]),W=d.useCallback(()=>{w()},[w]),U=d.useMemo(()=>e-yl.left-yl.right,[e]),B=d.useMemo(()=>t-yl.top-yl.bottom,[t]),E=d.useMemo(()=>Math.min(U,B)/2,[U,B]),_=u.length?u.reduce((O,F)=>{const K=F.data.filter(Y=>Y);return Math.max(O,...K)},-1/0):0,H=Mo({range:[0,E],domain:l??[0,_]}),z=$(f.length,E),N=O=>T(O,F=>H(F)??0,F=>F);return c.jsxs("div",{className:"rabbit-ds flex flex-col bg-white",style:{width:e,height:t},ref:h,children:[c.jsxs("svg",{width:e,height:t,ref:A,pointerEvents:"all",onMouseLeave:W,children:[c.jsx("rect",{fill:"transparent",width:e,height:t,rx:14}),c.jsxs(hn,{top:t/2,left:e/2,children:[[...new Array(n)].map((O,F)=>c.jsx(P5,{x:e/2,y:t/2,fill:"none",stroke:"#CFD7DF",strokeWidth:1,strokeDasharray:4,r:E*(F+1)/n},`web1-${Math.random()}`)),f.map((O,F)=>c.jsxs(c.Fragment,{children:[c.jsx(ef,{from:M,to:z[F],stroke:f.length===1?Ye(0).dark:"#CFD7DF",strokeWidth:1},`radar-line-${Math.random()}`),c.jsx(ha,{x:z[F].x,y:z[F].y,textAnchor:P(z[F].x),verticalAnchor:P(z[F].y),dx:e8[P(z[F].x)],dy:e8[P(z[F].y)],fontSize:10,fill:"#666666",width:a??100,children:`${s?k(f[(F+f.length-1)%f.length],s.symbol,s.position):f[(F+f.length-1)%f.length]}`})]})),u.map((O,F)=>c.jsx("polygon",{points:N(O.data).pointString,fill:Ye(F).light,fillOpacity:.2,stroke:Ye(F).dark,strokeWidth:1},`polypath-${Math.random()}`)),u.map((O,F)=>N(O.data).points.map((K,Y)=>c.jsx(P5,{cx:K.x,cy:K.y,r:5,fill:"transparent",onMouseMove:ee=>{var ne;return L(ee,{yAxisLabel:((ne=r.find(te=>te.id===O.id))==null?void 0:ne.name)??"",xAxisValue:f[Y],yAxisValue:O.data[Y],xAxisLabel:o??"Category",legendDarkColor:Ye(F).dark,legendLightColor:Ye(F).light})},onMouseOut:W},`radar-point-${Math.random()}`)))]})]}),x&&v&&c.jsx(C,{top:m,left:g,unstyled:!0,applyPositionStyle:!0,children:c.jsx(R4,{xAxisLabel:v.xAxisLabel??"",xValue:v.xAxisValue,yAxisLabel:v.yAxisLabel??"",yValue:v.yAxisValue,tooltipTitle:i,showSideBySide:!0,legendValue:v.yAxisLabel??"",legendDarkColor:v.legendDarkColor,legendLightColor:v.legendLightColor})},Math.random())]})});t8.displayName="RadarChartBase";const n8=d.forwardRef((e,t)=>c.jsx(Rn,{debounceTime:10,children:({width:n,height:r})=>c.jsx(t8,{ref:t,width:n,height:r,...e})}));n8.displayName="RadarChart";const qz=n8;function r8({xValue:e,yValue:t,tooltipTitle:n,xAxisLabel:r,yAxisLabel:o,showSideBySide:a,legendValue:i,legendDarkColor:s,legendLightColor:l}){const u=e==null?void 0:e.toString(),f=t==null?void 0:t.toString();return c.jsxs(ke,{tooltipTitle:n,showSideBySide:a,children:[c.jsx(ke.Item,{label:r,value:u}),c.jsx(ke.Item,{label:o,value:f}),c.jsx(ke.Legend,{value:i,darkColor:s,lightColor:l})]})}r8.defaultProps={xValue:void 0,yValue:void 0};const Kz=({x:e,y:t,datum:n})=>c.jsx(so,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.dark,r:5,style:{zIndex:1500}}),Qz=({tickData:e,xAxisCharLimit:t})=>{var a;const n=d.useContext(bt),r=(a=n==null?void 0:n.xScale)==null?void 0:a.bandwidth(),o=Math.floor(r/5);return c.jsx(Xa,{textLabel:e.formattedValue||"",x:e.x,y:e.y,textStyles:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle",angle:r&&r<25?-45:0},axisCharLimit:t??o})},o8={xAccessor:e=>e.x,yAccessor:e=>e.y},a8=(e,t,n)=>n==="pre"?`${t}${e}`:`${e}${t}`,i8=10,Zz=5,d0=d.forwardRef(({nodes:e,height:t,width:n,xAxisValues:r,series:o,xAxisLabel:a,yAxisLabel:i,xAxisDomain:s,yAxisDomain:l,xAxisUnitSymbol:u,yAxisUnitSymbol:f,tooltipTitle:p,mode:h,xAxisCharLimit:v,maxNodesInMiniMode:g=Zz,tooltipStackCharLimit:m=i8,seriesSelectorTitle:x,preselectedNodes:y},w)=>{const[b,A]=d.useState(()=>(y&&y<=e.length?e.slice(0,y):e).map(M=>M.id)),C=d.useRef(null);In(C,w,`${a}-${i}-StackedBarChart`);const $=d.useMemo(()=>o.map((T,M)=>{const P=e.find(L=>L.id===T.id);return{points:T.data.map((L,W)=>({x:r[W],y:Number(L),nodeId:T.id,color:(P==null?void 0:P.color)??Ye(M)}))}}).slice(0,h==="mini"?g:o.length),[o,h,g,e,r]),k=d.useMemo(()=>h==="full"?$.filter(T=>b.includes(T.points[0].nodeId)):$,[$,b,h]);return c.jsxs("div",{ref:C,id:"line-chart",className:"rabbit-ds flex flex-col bg-white",style:{width:n,height:t},children:[c.jsxs("div",{className:"flex h-full min-h-0 w-full min-w-0 flex-row",children:[c.jsx("div",{className:"h-full min-h-0 w-full min-w-0",children:c.jsxs(cr,{margin:{top:10,left:50,right:50,bottom:50},xScale:{type:"band",nice:!0,padding:.5,...s&&{domain:s}},yScale:{type:"linear",nice:!0,...l&&{domain:l}},children:[c.jsx(U5,{columns:!1,numTicks:6,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),c.jsx($o,{hideTicks:!0,orientation:"bottom",stroke:"#CFD7DF",strokeWidth:1,numTicks:30,tickFormat:T=>u?a8(T,u.symbol,u.position):T,rangePadding:{end:10},tickComponent:T=>c.jsx(Qz,{tickData:T,xAxisCharLimit:v}),label:`${a} ➔`,labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx($o,{hideTicks:!0,numTicks:6,strokeWidth:1,orientation:"left",stroke:"#CFD7DF",label:`${i} ➔`,tickFormat:T=>f?a8(Tn("~s")(T),f.symbol,f.position):Tn("~s")(T),tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666"},labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dx:-20,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx(bz,{children:k.map(T=>c.jsx(gz,{data:T.points,dataKey:T.points[0].nodeId,xAccessor:o8.xAccessor,yAccessor:o8.yAccessor,colorAccessor:M=>M.color.light,radiusTop:!0,radius:2},T.points[0].nodeId))}),c.jsx(ol,{showDatumGlyph:!0,scroll:!0,debounce:500,snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,detectBounds:!0,unstyled:!0,applyPositionStyle:!0,renderGlyph:Kz,renderTooltip:({tooltipData:T})=>{var L,W,U,B,E,_;const M=e.find(H=>{var z;return H.id===((z=T==null?void 0:T.nearestDatum)==null?void 0:z.datum.nodeId)}),P=((L=T==null?void 0:T.nearestDatum)==null?void 0:L.datum)&&((W=T==null?void 0:T.nearestDatum)==null?void 0:W.datum.x.length)<m;return c.jsx(r8,{xValue:(U=T==null?void 0:T.nearestDatum)==null?void 0:U.datum.x,yValue:(B=T==null?void 0:T.nearestDatum)==null?void 0:B.datum.y,xAxisLabel:a,yAxisLabel:i,showSideBySide:!!P,tooltipTitle:p,legendValue:(M==null?void 0:M.name)||"",legendDarkColor:((E=T==null?void 0:T.nearestDatum)==null?void 0:E.datum.color.dark)||Ye(0).dark,legendLightColor:((_=T==null?void 0:T.nearestDatum)==null?void 0:_.datum.color.light)||Ye(0).light})}})]})}),h==="full"&&c.jsxs("div",{className:"inline-flex w-64 shrink-0 grow-0 basis-auto flex-col items-start justify-start gap-0.5 rounded border border-solid border-[color:var(--Accent,#EBEFF3)] bg-[#FDFDFD] p-4 pr-0 text-xs",children:[c.jsxs("div",{className:"pb-1 text-xs font-semibold",children:[c.jsx("span",{className:"pr-1",children:x??a}),"(",k.length??0,"/",$.length,")"]}),c.jsx("div",{className:"inline-flex h-[95%] w-full shrink-0 grow-0 flex-col items-start justify-start gap-1 overflow-scroll pr-4",children:$.map(T=>{const M=e.find(P=>P.id===T.points[0].nodeId);return M&&c.jsxs("div",{className:"flex w-full items-center justify-between gap-1 py-1",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("div",{style:{backgroundColor:T.points[0].color.light,borderColor:T.points[0].color.dark},className:"mr-1 h-3 w-3 rounded-full border"}),M.name]}),c.jsx("div",{className:"flex items-center",children:c.jsx(ri,{checked:b.includes(M.id),onCheckedChange:P=>{let L=[...b];P?L=[...b,M.id]:L.splice(b.indexOf(M.id),1),A(L)}})})]},M.id)})})]})]}),h==="mini"&&c.jsx("div",{className:"flex flex-row flex-wrap justify-center gap-4 text-[10px] font-semibold text-font-secondary",children:$.map(T=>{const M=e.find(P=>P.id===T.points[0].nodeId);return c.jsxs("div",{className:"flex items-center justify-center gap-1",children:[c.jsx("div",{style:{backgroundColor:T.points[0].color.light,borderColor:T.points[0].color.dark},className:"h-3 w-3 rounded-full border"}),M==null?void 0:M.name]},M==null?void 0:M.id)})})]})}),Jz={xAxisUnitSymbol:void 0,yAxisUnitSymbol:void 0,mode:"mini",xAxisCharLimit:void 0,tooltipStackCharLimit:i8,xAxisDomain:void 0,yAxisDomain:void 0,connectNulls:!1};d0.defaultProps=Jz,d0.displayName="StackedBarChartBase";const s8=d.forwardRef((e,t)=>c.jsx(Rn,{debounceTime:10,children:({width:n,height:r})=>c.jsx(d0,{ref:t,width:n,height:r,...e})}));s8.displayName="StackedBarChart";const Rz=s8,eW=({nodes:e,selectedNodeIds:t,setSelectedNodeIds:n,seriesSelectorTitle:r})=>c.jsxs("div",{className:"rabbit-ds inline-flex w-64 shrink-0 grow-0 basis-auto flex-col items-start justify-start gap-0.5 rounded border border-solid border-[color:var(--Accent,#EBEFF3)] bg-[#FDFDFD] p-4 pr-0 text-xs",children:[c.jsxs("div",{className:"pb-1 text-xs font-semibold",children:[c.jsx("span",{className:"pr-1",children:r}),"(",t.length??0,"/",e.length,")"]}),c.jsx("div",{className:"inline-flex h-[95%] w-full shrink-0 grow-0 flex-col items-start justify-start gap-1 overflow-scroll pr-4",children:e.map(({id:o,name:a,color:i})=>c.jsxs("div",{className:"flex w-full items-center justify-between gap-1 py-1",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("div",{style:{backgroundColor:i.light,borderColor:i.dark},className:"mr-1 h-3 w-3 rounded-full border"}),a]}),c.jsx("div",{className:"flex items-center",children:c.jsx(ri,{checked:t.includes(o),onCheckedChange:s=>{let l=[...t];s?l=[...t,o]:l.splice(t.indexOf(o),1),n(l)}})})]},o))})]});function l8({xValue:e,yValue:t,tooltipTitle:n,xAxisLabel:r,yAxisLabel:o,showSideBySide:a,otherDataPoints:i=[],pointMetaData:s,seriesMetaData:l}){var p;const u=e==null?void 0:e.toString(),f=t==null?void 0:t.toString();return c.jsxs(ke,{tooltipTitle:n,showSideBySide:a,children:[c.jsx(ke.Header,{label:"Review Cycle",value:(p=s==null?void 0:s.reviewCycle)==null?void 0:p.name}),c.jsx(ke.Item,{label:r,value:u}),c.jsx(ke.Item,{label:o,value:f}),i.map(({label:h,value:v})=>c.jsx(ke.Item,{label:h,value:v},h)),c.jsx(ke.Footer,{nodeData:l})]})}l8.defaultProps={xValue:void 0,yValue:void 0};var tW=["id","markerWidth","markerHeight","markerUnits","children"];function f0(){return f0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f0.apply(this,arguments)}function nW(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function p0(e){var t=e.id,n=e.markerWidth,r=n===void 0?3:n,o=e.markerHeight,a=o===void 0?3:o,i=e.markerUnits,s=i===void 0?"userSpaceOnUse":i,l=e.children,u=nW(e,tW);return d.createElement("defs",null,d.createElement("marker",f0({id:t,markerWidth:r,markerHeight:a,markerUnits:s},u),l))}p0.propTypes={id:re.string.isRequired,size:re.number,markerWidth:re.oneOfType([re.string,re.number]),markerHeight:re.oneOfType([re.string,re.number]),markerUnits:re.string,refX:re.oneOfType([re.string,re.number]),refY:re.oneOfType([re.string,re.number]),strokeWidth:re.number,children:re.node.isRequired};var rW=["id","size","strokeWidth"];function h0(){return h0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h0.apply(this,arguments)}function oW(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function aW(e){var t=e.id,n=e.size,r=n===void 0?9:n,o=e.strokeWidth,a=o===void 0?1:o,i=oW(e,rW),s=r+a*2,l=r,u=s/2,f="0 0, "+r+" "+r/2+", 0 "+r;return d.createElement(p0,h0({id:t,markerWidth:s,markerHeight:s,refX:l,refY:u,orient:"auto",markerUnits:"strokeWidth",fill:"none",strokeWidth:a},i),d.createElement("g",{transform:"translate("+a+", "+a+")"},d.createElement("polyline",{points:f})))}var iW=["id","size","strokeWidth"];function g0(){return g0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g0.apply(this,arguments)}function sW(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function lW(e){var t=e.id,n=e.size,r=n===void 0?9:n,o=e.strokeWidth,a=o===void 0?1:o,i=sW(e,iW),s=r*2,l=s+a,u=l/2;return d.createElement(p0,g0({id:t,markerWidth:l,markerHeight:l,refX:0,refY:u,orient:"auto-start-reverse",markerUnits:"strokeWidth",strokeWidth:a},i),d.createElement("circle",{r,cx:u,cy:u}))}function cW({data:e,xAccessor:t,yAccessor:n,connectNulls:r=!1}){const o=d.useContext(bt),a=r?e.filter(i=>i.y!==null):e;return a.length===0?null:c.jsxs(c.Fragment,{children:[c.jsx(lW,{id:"marker-circle",stroke:"#666",size:6,refX:7,fill:"transparent",strokeWidth:2}),c.jsx(aW,{id:"marker-arrow",stroke:"#666",size:14,strokeWidth:2,markerUnits:"userSpaceOnUse"}),c.jsx($5,{data:a,stroke:a[0].color.dark,strokeWidth:1,x:i=>{var s;return((s=o==null?void 0:o.xScale)==null?void 0:s.call(o,t(i)))??0},y:i=>{var s;return((s=o==null?void 0:o.yScale)==null?void 0:s.call(o,n(i)))??0},curve:sa,shapeRendering:"geometricPrecision",markerStart:"url(#marker-circle)",markerEnd:"url(#marker-arrow)"})]})}const uW=({x:e,y:t,datum:n,size:r})=>c.jsx(so,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.light,r:r/2}),dW=({x:e,y:t,datum:n})=>c.jsx(so,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.dark,r:5,style:{zIndex:1500}}),wl={xAccessor:e=>e==null?void 0:e.x,yAccessor:e=>e==null?void 0:e.y},c8=(e,t,n)=>n==="pre"?`${t}${e}`:`${e}${t}`,fW=10,pW=5,u8=d.forwardRef(({rowsCount:e=3,nodes:t,height:n,width:r,xAxisLabel:o,yAxisLabel:a,xAxisDomain:i,yAxisDomain:s,xAxisUnitSymbol:l,yAxisUnitSymbol:u,tooltipTitle:f,mode:p="mini",xAxisCharLimit:h,connectNulls:v=!1,maxNodesInMiniMode:g=pW,tooltipStackCharLimit:m=fW,withBackground:x=!0},y)=>{const w=d.useRef(null),b=e===1;In(w,y,`${o}-${a}-DirectedLineChart`);const A=d.useMemo(()=>t.map(({seriesMetaData:P},L)=>{const{employee:W}=P;return{id:W.id,name:W.name,color:Ye(L)}}).slice(0,p==="mini"?g:t.length),[t,p,g]),[C,$]=d.useState(()=>A.filter((P,L)=>p==="full"||L<g).map(P=>P.id)),k=d.useMemo(()=>t.map((P,L)=>({nodeId:P.seriesMetaData.employee.id,points:P.xValues.map((W,U)=>{var E;let B=null;return b?B=1/t.length*(L+1)+1/(t.length*10)*(U+1):B=((E=P==null?void 0:P.yValues)==null?void 0:E[U])??null,{x:P.xValues[U],y:B,pointMetaData:P.pointsMetaData[U],nodeId:P.seriesMetaData.employee.id,color:Ye(L)}})})).slice(0,p==="mini"?g:t.length),[t,p,g,b]),T=d.useMemo(()=>p==="full"?k.filter(({nodeId:P})=>C.includes(P)):k,[k,p,C]),M=d.useMemo(()=>Math.floor((r-(p==="mini"?0:150))/(t[0].xValues.length*8)),[r,p,t]);return c.jsx("div",{ref:w,id:"directed-line-chart",className:le("rabbit-ds flex flex-col ",x?"bg-[white]":""),style:{width:r,height:n},children:c.jsxs("div",{className:"flex h-full min-h-0 w-full min-w-0 flex-row",children:[c.jsx("div",{className:"h-full min-h-0 w-full min-w-0",children:c.jsxs(cr,{margin:{top:10,left:50,right:50,bottom:50},xScale:typeof i[0]=="string"?{type:"band",domain:i,padding:1}:{type:"linear",domain:i},yScale:typeof s[0]=="string"?{type:"band",domain:s,padding:1}:{type:"linear",domain:s},children:[c.jsx($o,{hideTicks:!0,orientation:"bottom",stroke:"#CFD7DF",strokeWidth:1,numTicks:6,tickFormat:P=>l?c8(P,l.symbol,l.position):P,tickComponent:P=>c.jsx(Xa,{textLabel:P.formattedValue||"",x:P.x,y:P.y,textStyles:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle"},axisCharLimit:h??M}),label:`${o} ➔`,labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx($o,{hideTicks:!0,numTicks:b?0:6,strokeWidth:b?0:1,orientation:"left",stroke:"#CFD7DF",label:a?`${a} ➔`:"",tickFormat:P=>u?c8(P,u.symbol,u.position):P,tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666"},labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dx:-20,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),T.map((P,L)=>c.jsxs(c.Fragment,{children:[c.jsx(cW,{data:P.points,xAccessor:wl.xAccessor,yAccessor:wl.yAccessor,connectNulls:v}),c.jsx(k4,{dataKey:`Performance Management ${L}`,data:P.points,size:8,renderGlyph:uW,xAccessor:wl.xAccessor,yAccessor:wl.yAccessor})]})),c.jsx(ol,{showDatumGlyph:!0,scroll:!0,showVerticalCrosshair:!0,showHorizontalCrosshair:!0,debounce:500,snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,detectBounds:!0,unstyled:!0,applyPositionStyle:!0,renderGlyph:dW,renderTooltip:({tooltipData:P})=>{var U,B,E,_,H,z,N,O,F;const L=t.find(K=>{var Y;return K.id===((Y=P==null?void 0:P.nearestDatum)==null?void 0:Y.datum.nodeId)}),W=((U=P==null?void 0:P.nearestDatum)==null?void 0:U.datum)&&String((B=P==null?void 0:P.nearestDatum)==null?void 0:B.datum.x).length<m;return c.jsx(l8,{xValue:(E=P==null?void 0:P.nearestDatum)==null?void 0:E.datum.x,yValue:(_=P==null?void 0:P.nearestDatum)==null?void 0:_.datum.y,xAxisLabel:o,yAxisLabel:a,showSideBySide:!!W,tooltipTitle:f,otherDataPoints:((N=(z=(H=P==null?void 0:P.nearestDatum)==null?void 0:H.datum)==null?void 0:z.pointMetaData)==null?void 0:N.otherDataPoints)??[],seriesMetaData:L==null?void 0:L.seriesMetaData,pointMetaData:(F=(O=P==null?void 0:P.nearestDatum)==null?void 0:O.datum)==null?void 0:F.pointMetaData})}})]})}),p==="full"&&c.jsx(eW,{nodes:A,seriesSelectorTitle:"Team members",selectedNodeIds:C,setSelectedNodeIds:$})]})})});u8.displayName="LineBase";const d8=d.forwardRef((e,t)=>c.jsx(Rn,{debounceTime:10,children:({width:n,height:r})=>c.jsx(u8,{ref:t,width:n,height:r,...e})}));d8.displayName="DirectedLineChart";const f8=d8,hW=[{"#FFEFD4":"#AF5C20"},{"#DBF2D3":"#44812F"},{"#BFE8C6":"#1A5724"},{"#FFE7C5":"#8C6A00"},{"#FAD4D4":"#C62C02"},{"#EAEAEA":"#333333"},{"#E6F1FD":"#1565BC"},{"#FFE1D9":"#C62C02"}];function gW({box:e,showCountData:t=!1}){function n(r){if(!r)return"#333";const o=hW.find(a=>a[r]);return o?o[r]:r}return c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs("div",{className:"flex shrink grow basis-0 flex-col items-start ",children:[c.jsx("div",{className:"flex items-start gap-2.5",children:c.jsxs("span",{className:"text-3xs",style:{color:n(n(e==null?void 0:e.color))},children:[" ",e==null?void 0:e.label]})}),t&&c.jsxs("span",{className:" text-3xs text-stone-500",children:[e==null?void 0:e.count," Member",Jb(e==null?void 0:e.count)]})]}),t&&c.jsx("div",{className:"flex items-start ",children:c.jsx("div",{className:"flex items-center justify-center rounded-3xl bg-neutral-50/40 px-0.5",children:c.jsxs("span",{className:" text-2xs leading-4 text-stone-500",children:[e==null?void 0:e.percentage,"%"]})})})]})}const vW=({rows:e,columns:t,boxData:n=[]})=>{let r="";return!n||(n==null?void 0:n.length)===0||(r=n.slice(0,t).reduce((a,i)=>{var f,p,h,v;const s=e===1?"OVERALL":"PERFORMANCE",l=((p=(f=i==null?void 0:i.scoreRange)==null?void 0:f[s])==null?void 0:p.maxScore)??0,u=((v=(h=i==null?void 0:i.scoreRange)==null?void 0:h[s])==null?void 0:v.minScore)??0;return`${a} minmax(20px, ${l-u}fr)`},"")),r},mW=({rows:e,columns:t,boxData:n=[]})=>{if(e===1)return"1fr";let r="";return!n||(n==null?void 0:n.length)===0||(r=n.filter((a,i)=>i%t===0).reduce((a,i)=>{var f,p,h,v;const s="POTENTIAL",l=((p=(f=i==null?void 0:i.scoreRange)==null?void 0:f[s])==null?void 0:p.maxScore)??0,u=((v=(h=i==null?void 0:i.scoreRange)==null?void 0:h[s])==null?void 0:v.minScore)??0;return`${a} minmax(20px, ${l-u}fr)`},"")),r},p8=d.forwardRef(({rows:e=3,columns:t=3,spacing:n="1px",boxData:r=[],position:o="relative",margin:a="0",width:i="100%",left:s=0,top:l=0,mode:u="mini",showCountData:f=!1},p)=>{const h=d.useRef(null);return In(h,p,"GridChart"),c.jsxs("div",{ref:h,className:"flex flex-row",style:{position:o,top:l,left:s,width:i,margin:a,height:"100%"},children:[c.jsx("div",{style:{flexGrow:1,display:"grid",gridTemplateRows:mW({rows:e,columns:t,boxData:r}),gridTemplateColumns:vW({rows:e,columns:t,boxData:r}),gap:n,height:"100%"},children:r==null?void 0:r.map((v,g)=>c.jsx("div",{style:{padding:"8px",backgroundColor:(v==null?void 0:v.color)??"#CFD7DF"},children:c.jsx(gW,{box:v,showCountData:f})},v.label+v.color+g))}),u==="full"&&c.jsx("div",{className:"inline-flex w-64 shrink-0 grow-0"})]})});p8.displayName="GridChart";const h8=p8,g8=d.forwardRef(({directedLineChartProps:e,gridChartProps:t,mode:n="mini"},r)=>{const o=d.useRef(null);return In(o,r,`${e.xAxisLabel}-${e.yAxisLabel}-GridDirectedLineChart`),c.jsxs("div",{ref:o,className:"relative h-full w-full",children:[c.jsx("div",{className:"absolute mx-[50px] mb-[50px] mt-[10px] h-[calc(100%-60px)] w-[calc(100%-100px)]",children:c.jsx(h8,{...t,mode:n})}),c.jsxs("div",{className:"absolute h-full w-full",children:[c.jsx(f8,{...e,mode:n}),c.jsx("div",{})]})]})});g8.displayName="GridDirectedLineChart";const bW=g8,xl="ToggleGroup",[v8,AU]=nt(xl,[eo]),m8=eo(),yW=d.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return d.createElement(wW,q({},o,{ref:t}))}if(n==="multiple"){const o=r;return d.createElement(xW,q({},o,{ref:t}))}throw new Error(`Missing prop \`type\` expected on \`${xl}\``)}),[b8,y8]=v8(xl),wW=d.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,s]=ut({prop:n,defaultProp:r,onChange:o});return d.createElement(b8,{scope:e.__scopeToggleGroup,type:"single",value:i?[i]:[],onItemActivate:s,onItemDeactivate:d.useCallback(()=>s(""),[s])},d.createElement(w8,q({},a,{ref:t})))}),xW=d.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i=[],s]=ut({prop:n,defaultProp:r,onChange:o}),l=d.useCallback(f=>s((p=[])=>[...p,f]),[s]),u=d.useCallback(f=>s((p=[])=>p.filter(h=>h!==f)),[s]);return d.createElement(b8,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:l,onItemDeactivate:u},d.createElement(w8,q({},a,{ref:t})))}),[CW,AW]=v8(xl),w8=d.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...l}=e,u=m8(n),f=jn(i),p={role:"group",dir:f,...l};return d.createElement(CW,{scope:n,rovingFocus:o,disabled:r},o?d.createElement(Fc,q({asChild:!0},u,{orientation:a,dir:f,loop:s}),d.createElement(me.div,q({},p,{ref:t}))):d.createElement(me.div,q({},p,{ref:t})))}),v0="ToggleGroupItem",SW=d.forwardRef((e,t)=>{const n=y8(v0,e.__scopeToggleGroup),r=AW(v0,e.__scopeToggleGroup),o=m8(e.__scopeToggleGroup),a=n.value.includes(e.value),i=r.disabled||e.disabled,s={...e,pressed:a,disabled:i},l=d.useRef(null);return r.rovingFocus?d.createElement(_c,q({asChild:!0},o,{focusable:!i,active:a,ref:l}),d.createElement(x8,q({},s,{ref:t}))):d.createElement(x8,q({},s,{ref:t}))}),x8=d.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=y8(v0,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return d.createElement(i1,q({},s,o,{ref:t,onPressedChange:l=>{l?a.onItemActivate(r):a.onItemDeactivate(r)}}))}),EW=yW,MW=SW;function $W({children:e,...t}){return c.jsx(EW,{className:"flex gap-2",...t,children:e})}function TW({value:e,disabled:t,selected:n,icon:r,label:o,count:a,...i}){return c.jsx(MW,{asChild:!0,value:e,...i,children:c.jsx("button",{"data-deer-btn":!0,type:"button",className:le("rabbit-ds h-7 flex-col w-auto p-0 border border-solid rounded-full justify-center items-center inline-flex hover:cursor-pointer","data-[state=off]:border-gray-100 data-[state=off]:bg-gray-100 data-[state=off]:text-font-secondary","data-[state=on]:border-primary-hover data-[state=on]:bg-primary/10 data-[state=on]:text-primary-hover","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2"),children:c.jsxs("div",{className:"flex flex-row items-center justify-center gap-1 rounded-full px-4 py-1",children:[r?c.jsx(Te,{IconSVG:r,size:"small"}):null,c.jsxs("div",{className:"text-sm font-semibold",children:[o?c.jsx("span",{children:o}):null," ",a?c.jsxs("span",{children:["(",a,")"]}):null]})]})})})}const qa="NavigationMenu",[m0,PW,kW]=mr(qa),[b0,OW,NW]=mr(qa),[y0,SU]=nt(qa,[kW,NW]),[DW,Br]=y0(qa),[FW,EU]=y0(qa),_W=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:a,delayDuration:i=200,skipDelayDuration:s=300,orientation:l="horizontal",dir:u,...f}=e,[p,h]=d.useState(null),v=Se(t,M=>h(M)),g=jn(u),m=d.useRef(0),x=d.useRef(0),y=d.useRef(0),[w,b]=d.useState(!0),[A="",C]=ut({prop:r,onChange:M=>{const P=M!=="",L=s>0;P?(window.clearTimeout(y.current),L&&b(!1)):(window.clearTimeout(y.current),y.current=window.setTimeout(()=>b(!0),s)),o==null||o(M)},defaultProp:a}),$=d.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>C(""),150)},[C]),k=d.useCallback(M=>{window.clearTimeout(x.current),C(M)},[C]),T=d.useCallback(M=>{A===M?window.clearTimeout(x.current):m.current=window.setTimeout(()=>{window.clearTimeout(x.current),C(M)},i)},[A,C,i]);return d.useEffect(()=>()=>{window.clearTimeout(m.current),window.clearTimeout(x.current),window.clearTimeout(y.current)},[]),d.createElement(IW,{scope:n,isRootMenu:!0,value:A,dir:g,orientation:l,rootNavigationMenu:p,onTriggerEnter:M=>{window.clearTimeout(m.current),w?T(M):k(M)},onTriggerLeave:()=>{window.clearTimeout(m.current),$()},onContentEnter:()=>window.clearTimeout(x.current),onContentLeave:$,onItemSelect:M=>{C(P=>P===M?"":M)},onItemDismiss:()=>C("")},d.createElement(me.nav,q({"aria-label":"Main","data-orientation":l,dir:g},f,{ref:v})))}),IW=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:a,children:i,value:s,onItemSelect:l,onItemDismiss:u,onTriggerEnter:f,onTriggerLeave:p,onContentEnter:h,onContentLeave:v}=e,[g,m]=d.useState(null),[x,y]=d.useState(new Map),[w,b]=d.useState(null);return d.createElement(DW,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:s,previousValue:Ja(s),baseId:dt(),dir:o,orientation:a,viewport:g,onViewportChange:m,indicatorTrack:w,onIndicatorTrackChange:b,onTriggerEnter:Je(f),onTriggerLeave:Je(p),onContentEnter:Je(h),onContentLeave:Je(v),onItemSelect:Je(l),onItemDismiss:Je(u),onViewportContentChange:d.useCallback((A,C)=>{y($=>($.set(A,C),new Map($)))},[]),onViewportContentRemove:d.useCallback(A=>{y(C=>C.has(A)?(C.delete(A),new Map(C)):C)},[])},d.createElement(m0.Provider,{scope:t},d.createElement(FW,{scope:t,items:x},i)))},LW="NavigationMenuList",BW=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Br(LW,n),a=d.createElement(me.ul,q({"data-orientation":o.orientation},r,{ref:t}));return d.createElement(me.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange},d.createElement(m0.Slot,{scope:n},o.isRootMenu?d.createElement(E8,{asChild:!0},a):a))}),zW="NavigationMenuItem",[WW,C8]=y0(zW),jW=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,a=dt(),i=r||a||"LEGACY_REACT_AUTO_VALUE",s=d.useRef(null),l=d.useRef(null),u=d.useRef(null),f=d.useRef(()=>{}),p=d.useRef(!1),h=d.useCallback((g="start")=>{if(s.current){f.current();const m=w0(s.current);m.length&&x0(g==="start"?m:m.reverse())}},[]),v=d.useCallback(()=>{if(s.current){const g=w0(s.current);g.length&&(f.current=KW(g))}},[]);return d.createElement(WW,{scope:n,value:i,triggerRef:l,contentRef:s,focusProxyRef:u,wasEscapeCloseRef:p,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:v,onContentFocusOutside:v},d.createElement(me.li,q({},o,{ref:t})))}),A8="NavigationMenuTrigger",VW=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,a=Br(A8,e.__scopeNavigationMenu),i=C8(A8,e.__scopeNavigationMenu),s=d.useRef(null),l=Se(s,i.triggerRef,t),u=P8(a.baseId,i.value),f=k8(a.baseId,i.value),p=d.useRef(!1),h=d.useRef(!1),v=i.value===a.value;return d.createElement(d.Fragment,null,d.createElement(m0.ItemSlot,{scope:n,value:i.value},d.createElement($8,{asChild:!0},d.createElement(me.button,q({id:u,disabled:r,"data-disabled":r?"":void 0,"data-state":T8(v),"aria-expanded":v,"aria-controls":f},o,{ref:l,onPointerEnter:de(e.onPointerEnter,()=>{h.current=!1,i.wasEscapeCloseRef.current=!1}),onPointerMove:de(e.onPointerMove,C0(()=>{r||h.current||i.wasEscapeCloseRef.current||p.current||(a.onTriggerEnter(i.value),p.current=!0)})),onPointerLeave:de(e.onPointerLeave,C0(()=>{r||(a.onTriggerLeave(),p.current=!1)})),onClick:de(e.onClick,()=>{a.onItemSelect(i.value),h.current=v}),onKeyDown:de(e.onKeyDown,g=>{const x={horizontal:"ArrowDown",vertical:a.dir==="rtl"?"ArrowLeft":"ArrowRight"}[a.orientation];v&&g.key===x&&(i.onEntryKeyDown(),g.preventDefault())})})))),v&&d.createElement(d.Fragment,null,d.createElement(f2,{"aria-hidden":!0,tabIndex:0,ref:i.focusProxyRef,onFocus:g=>{const m=i.contentRef.current,x=g.relatedTarget,y=x===s.current,w=m==null?void 0:m.contains(x);(y||!w)&&i.onFocusProxyEnter(y?"start":"end")}}),a.viewport&&d.createElement("span",{"aria-owns":f})))}),S8="navigationMenu.linkSelect",UW=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...a}=e;return d.createElement($8,{asChild:!0},d.createElement(me.a,q({"data-active":r?"":void 0,"aria-current":r?"page":void 0},a,{ref:t,onClick:de(e.onClick,i=>{const s=i.target,l=new CustomEvent(S8,{bubbles:!0,cancelable:!0});if(s.addEventListener(S8,u=>o==null?void 0:o(u),{once:!0}),ei(s,l),!l.defaultPrevented&&!i.metaKey){const u=new CustomEvent(Al,{bubbles:!0,cancelable:!0});ei(s,u)}},{checkForDefaultPrevented:!1})})))}),Cl="NavigationMenuContent",HW=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Br(Cl,e.__scopeNavigationMenu),a=C8(Cl,e.__scopeNavigationMenu),i=Se(a.contentRef,t),s=a.value===o.value,l={value:a.value,triggerRef:a.triggerRef,focusProxyRef:a.focusProxyRef,wasEscapeCloseRef:a.wasEscapeCloseRef,onContentFocusOutside:a.onContentFocusOutside,onRootContentClose:a.onRootContentClose,...r};return o.viewport?d.createElement(GW,q({forceMount:n},l,{ref:i})):d.createElement(Pt,{present:n||s},d.createElement(YW,q({"data-state":T8(s)},l,{ref:i,onPointerEnter:de(e.onPointerEnter,o.onContentEnter),onPointerLeave:de(e.onPointerLeave,C0(o.onContentLeave)),style:{pointerEvents:!s&&o.isRootMenu?"none":void 0,...l.style}})))}),GW=d.forwardRef((e,t)=>{const n=Br(Cl,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return ht(()=>{r(e.value,{ref:t,...e})},[e,t,r]),ht(()=>()=>o(e.value),[e.value,o]),null}),Al="navigationMenu.rootContentDismiss",YW=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:a,wasEscapeCloseRef:i,onRootContentClose:s,onContentFocusOutside:l,...u}=e,f=Br(Cl,n),p=d.useRef(null),h=Se(p,t),v=P8(f.baseId,r),g=k8(f.baseId,r),m=PW(n),x=d.useRef(null),{onItemDismiss:y}=f;d.useEffect(()=>{const b=p.current;if(f.isRootMenu&&b){const A=()=>{var C;y(),s(),b.contains(document.activeElement)&&((C=o.current)===null||C===void 0||C.focus())};return b.addEventListener(Al,A),()=>b.removeEventListener(Al,A)}},[f.isRootMenu,e.value,o,y,s]);const w=d.useMemo(()=>{const A=m().map(P=>P.value);f.dir==="rtl"&&A.reverse();const C=A.indexOf(f.value),$=A.indexOf(f.previousValue),k=r===f.value,T=$===A.indexOf(r);if(!k&&!T)return x.current;const M=(()=>{if(C!==$){if(k&&$!==-1)return C>$?"from-end":"from-start";if(T&&C!==-1)return C>$?"to-start":"to-end"}return null})();return x.current=M,M},[f.previousValue,f.value,f.dir,m,r]);return d.createElement(E8,{asChild:!0},d.createElement(jo,q({id:g,"aria-labelledby":v,"data-motion":w,"data-orientation":f.orientation},u,{ref:h,onDismiss:()=>{var b;const A=new Event(Al,{bubbles:!0,cancelable:!0});(b=p.current)===null||b===void 0||b.dispatchEvent(A)},onFocusOutside:de(e.onFocusOutside,b=>{var A;l();const C=b.target;(A=f.rootNavigationMenu)!==null&&A!==void 0&&A.contains(C)&&b.preventDefault()}),onPointerDownOutside:de(e.onPointerDownOutside,b=>{var A;const C=b.target,$=m().some(T=>{var M;return(M=T.ref.current)===null||M===void 0?void 0:M.contains(C)}),k=f.isRootMenu&&((A=f.viewport)===null||A===void 0?void 0:A.contains(C));($||k||!f.isRootMenu)&&b.preventDefault()}),onKeyDown:de(e.onKeyDown,b=>{const A=b.altKey||b.ctrlKey||b.metaKey;if(b.key==="Tab"&&!A){const k=w0(b.currentTarget),T=document.activeElement,M=k.findIndex(W=>W===T),L=b.shiftKey?k.slice(0,M).reverse():k.slice(M+1,k.length);if(x0(L))b.preventDefault();else{var $;($=a.current)===null||$===void 0||$.focus()}}}),onEscapeKeyDown:de(e.onEscapeKeyDown,b=>{i.current=!0})})))}),XW="FocusGroup",E8=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Br(XW,n);return d.createElement(b0.Provider,{scope:n},d.createElement(b0.Slot,{scope:n},d.createElement(me.div,q({dir:o.dir},r,{ref:t}))))}),M8=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],qW="FocusGroupItem",$8=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=OW(n),a=Br(qW,n);return d.createElement(b0.ItemSlot,{scope:n},d.createElement(me.button,q({},r,{ref:t,onKeyDown:de(e.onKeyDown,i=>{if(["Home","End",...M8].includes(i.key)){let l=o().map(p=>p.ref.current);if([a.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(i.key)&&l.reverse(),M8.includes(i.key)){const p=l.indexOf(i.currentTarget);l=l.slice(p+1)}setTimeout(()=>x0(l)),i.preventDefault()}})})))});function w0(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function x0(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function KW(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function T8(e){return e?"open":"closed"}function P8(e,t){return`${e}-trigger-${t}`}function k8(e,t){return`${e}-content-${t}`}function C0(e){return t=>t.pointerType==="mouse"?e(t):void 0}const QW=_W,ZW=BW,JW=jW,RW=VW,O8=UW,ej=HW,tj=Ue(["rabbit-ds h-full w-full px-3 py-2 [&>*:first-child]:h-full"],{variants:{variant:{default:""},defaultVariant:{variant:"default"}}});function nj(){return c.jsx("div",{className:"relative h-full w-full",children:c.jsxs("div",{className:"absolute left-0 top-0 h-full w-full bg-gradient-to-b from-[#E9F5F8] via-[#F7F7F7] to-[#A1E7FC] shadow-[-4px_0px_4px_0px_rgba(0,0,0.05)_inset]",children:[c.jsx("div",{className:"absolute inset-0 h-full w-full",style:{background:"linear-gradient(180deg, rgba(231, 244, 247, 0.80) 0%, rgba(185, 239, 254, 0.80) 40%, rgba(136, 226, 252, 0.80) 100%)",boxShadow:"-2px 0px 4px rgba(0, 0, 0, 0.05) inset"}}),c.jsx("div",{className:"absolute inset-0 h-full w-full mix-blend-darken",style:{background:"linear-gradient(180deg, #DEEAED 0%, #F6F6F6 40%, #F5F7F7 100%)",boxShadow:"-2px 0px 4px rgba(0, 0, 0, 0.05) inset"}}),c.jsx("div",{className:"absolute inset-0 h-full w-full mix-blend-hard-light",style:{background:"linear-gradient(180deg, #DEEAED 0%, #F6F6F6 40%, #F5F7F7 100%)",boxShadow:"-4px 0px 4px rgba(0, 0, 0, 0.05) inset"}}),c.jsx("div",{className:"absolute inset-0 h-full w-full opacity-60 mix-blend-multiply",style:{background:"linear-gradient(89deg, #A0E7FC 0%, #A4E8FC 19%, #F5F7F7 100%)",boxShadow:"-4px 0px 4px rgba(0, 0, 0, 0.05) inset"}}),c.jsx("div",{className:"absolute inset-0 h-full w-full opacity-90 mix-blend-darken",style:{background:"linear-gradient(180deg, #AAE9FC 0%, #D7F1F8 40%, #F4FDFF 100%)",backdropFilter:"blur(4px)"}}),c.jsx("div",{className:"absolute inset-0 h-full w-full mix-blend-hard-light",style:{background:"linear-gradient(87deg, rgba(233, 245, 248, 0.60) 0%, rgba(247, 247, 247, 0.60) 19%, rgba(247, 247, 247, 0.60) 38%, rgba(161, 231, 252, 0.60) 100%)",boxShadow:"-4px 0px 4px rgba(0, 0, 0, 0.05) inset"}})]})})}const N8=d.forwardRef(({className:e,children:t,...n},r)=>c.jsxs("div",{className:"rabbit-ds relative h-screen w-20",children:[c.jsx("div",{className:"absolute h-full w-full",children:c.jsx(nj,{})}),c.jsx(QW,{className:le(tj({className:e})),orientation:"vertical",ref:r,...n,children:c.jsx(ZW,{className:"m-0 flex h-full flex-col p-0",children:t})})]}));N8.displayName="LeftNav";const A0=d.forwardRef(({children:e,asChild:t=!1,...n},r)=>{const o=t?ln:"div";return c.jsx(JW,{asChild:!0,children:c.jsx(o,{ref:r,className:"rabbit-ds",...n,children:e})})});A0.displayName="LeftNavItem",A0.defaultProps={asChild:!1};const rj=Ue(["inline-flex w-full flex-col items-center justify-start gap-1"],{variants:{variant:{top:"order-1 mb-auto",bottom:"order-2 mt-auto"},defaultVariant:{variant:"top"}}}),D8=d.forwardRef(({children:e,align:t,...n},r)=>c.jsx("div",{ref:r,className:le(rj({variant:t})),...n,children:e}));D8.displayName="LeftNavItem";const F8=d.forwardRef((e,t)=>c.jsx(O8,{ref:t,...e,className:"rabbit-ds z-20 flex size-14 h-14 w-14 cursor-pointer items-center justify-center rounded border-none bg-transparent focus:text-primary-focus focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",children:c.jsxs("svg",{className:"z-20 h-6 w-6",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("g",{clipPath:"url(#clip0_1397_29183)",children:c.jsxs("g",{clipPath:"url(#clip1_1397_29183)",filter:"url(#filter0_d_1397_29183)",children:[c.jsx("path",{d:"M22.1654 14.8101C22.1654 15.8326 21.3386 16.6614 20.3187 16.6614C19.2988 16.6614 18.472 15.8326 18.472 14.8101C18.472 13.7877 19.2988 12.9589 20.3187 12.9589C21.3386 12.9589 22.1654 13.7877 22.1654 14.8101Z",fill:"#008EF0"}),c.jsx("path",{d:"M9.50932 5.28316C9.14769 5.45665 8.74267 5.5538 8.315 5.5538C6.78513 5.5538 5.54492 4.31054 5.54492 2.7769C5.54492 1.24326 6.78513 0 8.315 0C9.84488 0 11.0851 1.24326 11.0851 2.7769C11.0851 3.20559 10.9882 3.6116 10.8151 3.9741L14.3002 7.46776C14.4528 7.42686 14.6131 7.40506 14.7785 7.40506C15.7984 7.40506 16.6253 8.2339 16.6253 9.25633C16.6253 10.2788 15.7984 11.1076 14.7785 11.1076C13.7586 11.1076 12.9318 10.2788 12.9318 9.25633C12.9318 9.09048 12.9536 8.92973 12.9944 8.77678L9.50932 5.28316Z",fill:"#008EF0"}),c.jsx("path",{d:"M5.53426 9.24775C5.53426 10.2702 4.70745 11.099 3.68754 11.099C2.66762 11.099 1.84082 10.2702 1.84082 9.24775C1.84082 8.22532 2.66762 7.39648 3.68754 7.39648C4.70745 7.39648 5.53426 8.22532 5.53426 9.24775Z",fill:"#FFC200"}),c.jsx("path",{d:"M9.99463 16.5323C9.84207 16.5732 9.68173 16.595 9.5163 16.595C8.49639 16.595 7.66958 15.7661 7.66958 14.7437C7.66958 13.7213 8.49639 12.8924 9.5163 12.8924C10.5362 12.8924 11.363 13.7213 11.363 14.7437C11.363 14.9095 11.3413 15.0703 11.3005 15.2232L14.7855 18.7169C15.1471 18.5434 15.5521 18.4462 15.9798 18.4462C17.5097 18.4462 18.7499 19.6895 18.7499 21.2231C18.7499 22.7568 17.5097 24 15.9798 24C14.4499 24 13.2097 22.7568 13.2097 21.2231C13.2097 20.7944 13.3066 20.3884 13.4797 20.0259L9.99463 16.5323Z",fill:"#FFC200"}),c.jsx("path",{d:"M11.087 20.3604C11.087 21.3828 10.2602 22.2117 9.24028 22.2117C8.22036 22.2117 7.39355 21.3828 7.39355 20.3604C7.39355 19.338 8.22036 18.5092 9.24028 18.5092C10.2602 18.5092 11.087 19.338 11.087 20.3604Z",fill:"#EC3B64"}),c.jsx("path",{d:"M24.014 8.32719C24.014 9.86083 22.7738 11.1041 21.2439 11.1041C20.8197 11.1041 20.4178 11.0085 20.0584 10.8377L16.5673 14.3374C16.6063 14.4873 16.6271 14.6445 16.6271 14.8066C16.6271 15.8291 15.8003 16.6579 14.7804 16.6579C13.7605 16.6579 12.9337 15.8291 12.9337 14.8066C12.9337 13.7842 13.7605 12.9554 14.7804 12.9554C14.9495 12.9554 15.1134 12.9782 15.269 13.0208L18.748 9.53324C18.5723 9.1685 18.4738 8.75938 18.4738 8.32719C18.4738 6.79355 19.714 5.55029 21.2439 5.55029C22.7738 5.55029 24.014 6.79355 24.014 8.32719Z",fill:"#EC3B64"}),c.jsx("path",{d:"M16.6205 3.69746C16.6205 4.71988 15.7937 5.54872 14.7737 5.54872C13.7538 5.54872 12.927 4.71988 12.927 3.69746C12.927 2.67503 13.7538 1.84619 14.7737 1.84619C15.7937 1.84619 16.6205 2.67503 16.6205 3.69746Z",fill:"#5CC461"}),c.jsx("path",{d:"M11.0803 9.25125C11.0803 10.2737 10.2535 11.1025 9.23361 11.1025C9.07191 11.1025 8.91506 11.0817 8.7656 11.0425L5.27441 14.5423C5.44482 14.9026 5.54016 15.3055 5.54016 15.7307C5.54016 17.2643 4.29995 18.5076 2.77008 18.5076C1.24021 18.5076 0 17.2643 0 15.7307C0 14.197 1.24021 12.9538 2.77008 12.9538C3.20121 12.9538 3.60934 13.0525 3.97319 13.2287L7.45222 9.74107C7.40963 9.58505 7.38689 9.42081 7.38689 9.25125C7.38689 8.22883 8.21369 7.39999 9.23361 7.39999C10.2535 7.39999 11.0803 8.22883 11.0803 9.25125Z",fill:"#5CC461"})]})}),c.jsxs("defs",{children:[c.jsxs("filter",{id:"filter0_d_1397_29183",x:"-8",y:"-6",width:"40",height:"40",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[c.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),c.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),c.jsx("feOffset",{dy:"2"}),c.jsx("feGaussianBlur",{stdDeviation:"4"}),c.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),c.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"}),c.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1397_29183"}),c.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_1397_29183",result:"shape"})]}),c.jsx("clipPath",{id:"clip0_1397_29183",children:c.jsx("rect",{width:"24",height:"24",rx:"8",fill:"white"})}),c.jsx("clipPath",{id:"clip1_1397_29183",children:c.jsx("rect",{width:"24",height:"24",fill:"white"})})]})]})}));F8.displayName="LeftNavHome";const oj=Ue(["rabbit-ds relative flex h-14 w-14 items-center justify-center rounded-lg font-sans text-[10px] text-font-secondary transition-colors disabled:pointer-events-none","hover:bg-card-bg-hover hover:font-semibold hover:text-primary-hover","focus:bg-card-bg-focus focus:font-semibold focus:text-primary-focus focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","active:bg-card-bg-focus active:font-semibold active:text-primary-focus","is-active:bg-card-bg-focus is-active:font-semibold is-active:text-primary-focus"],{variants:{variant:{default:"",withNotification:"",withMenu:"",gradient:""}},defaultVariants:{variant:"default"}}),aj=Ue("",{variants:{variant:{default:"",gradient:"bg-[linear-gradient(90deg,#038EEF_9.05%,#ED3C65_86.39%)] text-transparent [-webkit-background-clip:text] [background-clip:text]"}},defaultVariants:{variant:"default"}}),_8=d.forwardRef(({className:e,variant:t,badgeText:n,icon:r,iconSize:o,isActive:a=!1,children:i,...s},l)=>c.jsx("div",{className:"rabbit-ds",children:c.jsxs(O8,{"data-deer-btn":!0,className:le(oj({variant:t,className:e})),ref:l,"data-active":a,...s,children:[c.jsxs("div",{className:"flex flex-col items-center",children:[c.jsxs("div",{className:"relative flex items-center justify-center",children:[c.jsx(Te,{IconSVG:r,size:"large"}),t==="withNotification"&&c.jsxs("div",{className:"absolute left-3 flex h-5 w-6 items-center justify-center rounded-xl bg-functional-warn px-2 text-xs text-white",children:[c.jsx("span",{className:"sr-only",children:"Notification"}),n]})]}),c.jsx("div",{className:le(aj({variant:t==="gradient"?t:"default"}),"text-xs"),children:i})]}),t==="withMenu"&&c.jsx("div",{className:"absolute right-0 flex h-14 w-3 items-center justify-center",children:c.jsx(Te,{IconSVG:Q0,size:"large"})})]})}));_8.displayName="LeftNavButton";const ij=Ue("cursor-pointer border border-solid border-[#CFD7DF] bg-[#F5F7F9] px-1 py-[2px] text-primary transition-all hover:border-primary-hover hover:bg-primary-hover hover:text-white",{variants:{variant:{default:"rounded-l-full border-r-0",collapsed:"rounded-r-full border-l-0"}},defaultVariants:{variant:"default"}});function sj({className:e,isCollapsed:t,...n}){return c.jsx("button",{"data-deer-btn":!0,type:"button",className:le(ij({variant:t?"collapsed":"default"}),e),...n,children:c.jsx(Te,{IconSVG:Y0,className:t?"rotate-180":""})})}const I8=d.createContext({isOpen:!1,toggleOpen:()=>{}}),lj=()=>d.useContext(I8);function L8({...e}){const{isOpen:t,toggleOpen:n}=lj();return c.jsx(sj,{className:`absolute right-0 top-5 z-20 ${t?"":"translate-x-full"}`,isCollapsed:!t,onClick:n,...e})}function cj(e){const{children:t,defaultOpen:n=!1}=e,r=e.open!==void 0,[o,a]=d.useState(n),i=d.useCallback(()=>{a(f=>!f)},[]),s=r?e.open:o,l=r?e.onToggle:i,u=d.useMemo(()=>({isOpen:s,toggleOpen:l}),[s,l]);return c.jsx(I8.Provider,{value:u,children:c.jsxs("div",{className:le("rabbit-ds relative h-screen transition-all",s?"w-full":"w-0","shadow-[-8px_-2px_8px_0px_rgba(0,0,0,0.08)_inset]"),style:{background:"linear-gradient(273deg, #E7EFF1 0%, #EEF5F8 11%, #EFFAFE 100%)"},children:[c.jsx(L8,{}),c.jsx("div",{className:s?"h-full p-5":"invisible h-0 w-0 scale-0 overflow-hidden opacity-0",children:t})]})})}function uj({children:e}){return c.jsx("div",{className:le("nav-group flex flex-col gap-1","after:h-[1px] after:bg-accent after:w-full after:my-4 last:after:hidden"),children:e})}function dj({children:e}){return c.jsx("div",{className:"p-2 text-xs font-semibold text-font-secondary",children:e})}function fj({children:e,...t}){return c.jsx(u2,{...t,children:e})}const pj=Ue("shrink-0",{variants:{orientation:{horizontal:"ml-2",vertical:"mt-2 w-full [&>div]:w-full [&_button]:w-full"}},defaultVariants:{orientation:"horizontal"}});function hj({className:e,orientation:t,...n}){return c.jsx("div",{className:pj({orientation:t}),children:c.jsx(Dt,{className:e,variant:"outline",...n})})}const gj={ON_TRACK:{label:"On-track",colorScheme:"tag-green"},OFF_TRACK:{label:"Off-track",colorScheme:"tag-yellow"},AT_RISK:{label:"At-risk",colorScheme:"tag-red"},CLOSED:{label:"Closed",colorScheme:"tag-darkGray"},NOT_STARTED:{label:"Not started",colorScheme:"tag-lightGray"}};function vj({title:e,achieved:t,status:n}){const r=gj[n];return c.jsx("div",{className:"rabbit-ds mr-auto",children:c.jsxs("div",{className:"flex flex-col gap-1 p-2",children:[c.jsx("div",{className:"mt-1 text-sm",children:e}),c.jsxs("div",{className:"mt-[14px] flex items-end gap-[18px]",children:[c.jsxs("div",{className:"flex flex-col",children:[c.jsx("span",{className:"text-xs text-font-secondary",children:"Achieved"}),c.jsxs("span",{className:le(r.colorScheme,"font-semibold text-3xl !bg-transparent"),children:[t,"%"]})]}),c.jsx(es,{colorScheme:r.colorScheme,className:"mb-1",children:r.label})]})]})})}function mj({employeeName:e,employeeProfilePhoto:t,reviewCycleName:n,reviewType:r,dueBy:o}){return c.jsx("div",{className:"rabbit-ds mr-auto",children:c.jsxs("div",{className:"flex gap-2",children:[c.jsx(dn,{size:"xl",children:c.jsx(fn,{src:t,alt:"Avatar"})}),c.jsxs("div",{className:"flex flex-col items-start text-sm",children:[c.jsx("span",{className:"font-semibold",children:e}),c.jsx(es,{className:"mt-0.5",variant:"outlined",children:r}),c.jsx("span",{className:"mt-1.5 text-font-secondary",children:n}),c.jsxs("span",{className:"text-font-secondary",children:["Due by ",o]})]})]})})}function bj({employeeName:e,employeeProfilePhoto:t,designation:n}){return c.jsx("div",{className:"rabbit-ds mr-auto",children:c.jsxs("div",{className:"flex gap-2",children:[c.jsx(dn,{size:"xl",children:c.jsx(fn,{src:t,alt:"Avatar"})}),c.jsxs("div",{className:"flex flex-col items-start text-sm",children:[c.jsx("span",{className:"font-semibold",children:e}),c.jsx("span",{className:"text-font-secondary",children:n})]})]})})}function yj({employeeName:e,employeeProfilePhoto:t,designation:n,requestReason:r}){return c.jsx("div",{className:"rabbit-ds mr-auto w-[60%]",children:c.jsxs("div",{className:"flex w-full gap-2",children:[c.jsx(dn,{size:"xl",children:c.jsx(fn,{src:t,alt:"Avatar"})}),c.jsxs("div",{className:"flex w-full flex-col items-start text-sm",children:[c.jsx("span",{className:"font-semibold",children:e}),c.jsx(es,{variant:"outlined",children:n}),c.jsx("span",{className:"mt-1 w-full truncate text-font-secondary",children:r})]})]})})}const wj=Ue("",{variants:{orientation:{horizontal:"flex-row",vertical:"min-w-max flex-col"}},defaultVariants:{orientation:"horizontal"}});function xj({className:e,children:t,orientation:n}){return c.jsx("div",{className:le("rabbit-ds","w-full flex items-center rounded-lg p-4 bg-[#FDFDFD] border border-solid border-[#F3F5F8]",wj({orientation:n}),e),children:t})}function Cj({nudgeCardList:e,title:t,imgSrc:n,description:r,pageSize:o=3,kebabMenu:a}){const[i,s]=d.useState(1),l=e.slice(0,o*i),u=e.length>o,f=e.length===l.length,p=()=>{s(h=>f?1:h+1)};return c.jsxs("div",{className:le("rabbit-ds","w-full flex flex-col items-start rounded-lg px-4 py-3 gap-[7px] bg-white shadow-[0px_0px_2px_0px_rgba(0,0,0,0.24)]"),children:[c.jsxs("div",{className:"flex w-full items-center justify-between",children:[c.jsx("span",{className:"text-sm font-semibold",children:t}),a]}),c.jsxs("div",{className:"mt-1 flex items-center gap-4",children:[n?c.jsx(dn,{className:"h-16 w-16",children:c.jsx(fn,{src:n,alt:t})}):null,c.jsx("span",{className:"text-sm",children:r})]}),l,u&&c.jsx("div",{className:"mx-auto",children:c.jsxs(Dt,{variant:"text",onClick:p,iconRight:f?H0:jr,children:["View ",f?"less":"more"]})})]})}function Aj({surveyName:e,date:t}){return c.jsx("div",{className:"rabbit-ds mr-auto",children:c.jsxs("div",{className:"flex gap-2",children:[c.jsx(Te,{IconSVG:R0}),c.jsxs("div",{className:"flex flex-col items-start text-sm",children:[c.jsx("span",{className:"font-semibold",children:e}),c.jsx(wc,{date:t,showRelativeTime:!0})]})]})})}const Sj=Ue("",{variants:{variant:{single:"flex-row [&>div]:items-start",multiple:"flex-col"}},defaultVariants:{variant:"single"}});function B8({employeeName:e,employeeProfilePhoto:t,scheduleDate:n,duration:r,variant:o="single",subTitle:a}){return c.jsx("div",{className:le("rabbit-ds",o==="single"?"mr-auto":"my-auto"),children:c.jsxs("div",{className:le("flex items-center text-sm gap-2",Sj({variant:o})),children:[c.jsx(dn,{size:"xl",children:c.jsx(fn,{src:t,alt:e})}),c.jsxs("div",{className:"flex flex-col items-center gap-1",children:[c.jsx("span",{className:"font-semibold",children:e}),n?c.jsx(wc,{date:n,duration:r,timeFormat:"HH:mm a",showTime:!0,className:"text-font-secondary"}):c.jsx("span",{className:"font-semibold",style:{color:"#C62C02"},children:a})]})]})})}B8.defaultProps={subTitle:void 0,scheduleDate:void 0};function Ej({label:e,onClick:t,customCompProps:n}){const[r,o]=d.useState(1);return c.jsxs(Uc,{children:[c.jsx(Hi,{children:c.jsx("span",{children:e})}),c.jsx(Vc,{children:c.jsx(Gi,{children:c.jsx(to,{children:c.jsxs("div",{className:"flex flex-col p-2",children:[c.jsx(u1,{htmlFor:n==null?void 0:n.label,className:"text-xs",children:n==null?void 0:n.label}),c.jsx(s1,{id:n==null?void 0:n.label,className:"mt-2 !min-w-[160px]",type:"number",value:r,onChange:a=>o(a.target.valueAsNumber),min:1}),c.jsx("div",{className:"flex justify-end",children:c.jsx(Dt,{className:"mt-2",onClick:()=>t(r),disabled:r<1||Number.isNaN(r),children:n==null?void 0:n.buttonText})})]})})})})]})}function Mj({options:e}){const[t,n]=d.useState(!1),r=(o,a)=>{o(a),n(!1)};return c.jsxs(ji,{open:t,children:[c.jsx(Vi,{asChild:!0,onClick:()=>n(!0),children:c.jsx(Dt,{variant:"text",size:"smallIcon",children:c.jsx(Te,{IconSVG:K0})})}),c.jsx(Jo,{className:"w-56",onFocusOutside:()=>n(!1),onPointerDownOutside:()=>n(!1),children:c.jsx(to,{children:e.map(({type:o,onClick:a,label:i,customCompProps:s})=>!o||o==="default"?c.jsx(Ro,{onClick:()=>r(a),children:c.jsx("span",{children:i})},i):c.jsx(Ej,{onClick:l=>r(a,l),label:i,customCompProps:s},i))})})]})}const z8=Ro,W8=to,j8=Ui,V8=qi,U8=Yi,H8=Xi,G8=d.forwardRef(({className:e,children:t,align:n="end",...r},o)=>c.jsx(Jo,{ref:o,align:n,...r,children:t}));G8.displayName="SplitButtonDropdownContent";const $j=Ue("",{variants:{size:{normal:"icon",small:"smallIcon",icon:"icon",smallIcon:"smallIcon",nav:"icon"}},defaultVariants:{size:"normal"}});function Tj({children:e,size:t,status:n,variant:r,...o}){return c.jsx("div",{className:"rabbit-ds flex flex-row",children:c.jsxs(ji,{children:[c.jsx(Dt,{variant:r,status:n,size:t,...o,className:"rounded-r-none",children:e}),c.jsx(Vi,{asChild:!0,children:c.jsx(Dt,{variant:r,status:n,className:"rounded-l-none border-l-0",size:$j({size:t}),iconLeft:jr})})]})})}z8.displayName="SplitButtonDropdownItem",W8.displayName="SplitButtonDropdownGroup",j8.displayName="SplitButtonDropdownRadioGroup",V8.displayName="SplitButtonDropdownLabel",U8.displayName="SplitButtonDropdownCheckboxItem",H8.displayName="SplitButtonDropdownRadioItem",j.Accordion=K1,j.AccordionContent=J1,j.AccordionItem=Q1,j.AccordionTrigger=Z1,j.Add=Rb,j.Alert=R1,j.AlertDescription=tp,j.AlertDialogAction=Hp,j.AlertDialogCancel=Up,j.AlertDialogComponent=_9,j.AlertDialogContainer=jp,j.AlertDialogContent=hc,j.AlertDialogDescription=vc,j.AlertDialogOverlay=pc,j.AlertDialogPortal=Vp,j.AlertDialogTitle=gc,j.AlertDialogTrigger=Gp,j.AlertIcon=ep,j.Avatar=dn,j.AvatarBadge=Ki,j.AvatarFallback=Ci,j.AvatarGroup=au,j.AvatarImage=fn,j.Breadcrumb=Q2,j.BreadcrumbEllipsis=ng,j.BreadcrumbItem=J2,j.BreadcrumbLink=R2,j.BreadcrumbList=Z2,j.BreadcrumbPage=eg,j.BreadcrumbSeparator=tg,j.Button=Dt,j.Calendar=e6,j.Caption=mc,j.Card=Wo,j.CardContent=Xl,j.CardDescription=L1,j.CardHeader=I1,j.CardKPI=_E,j.CardTitle=Yl,j.Carousel=jM,j.CarouselContainer=VM,j.CarouselNextButton=HM,j.CarouselPrevButton=UM,j.Check=Lo,j.CheckCircleOutline=j0,j.Checkbox=ri,j.ChevronDown=jr,j.ChevronLeft=t6,j.ChevronLeftCircle=V0,j.ChevronRight=ni,j.ChevronRightCircle=U0,j.ChevronUp=H0,j.Chip=k6,j.ChipGroup=$W,j.ChipGroupItem=TW,j.Close=G0,j.CollapseNavigation=Y0,j.CollapsibleCard=Ty,j.ColumnFilter=X0,j.ColumnFilterCheck=e1,j.Company=n6,j.DateTime=wc,j.Develop=r6,j.DirectedLineChart=f8,j.DonutChart=Xz,j.Download=o6,j.Dropdown=ji,j.DropdownCheckboxItem=Yi,j.DropdownChip=l2,j.DropdownContent=Jo,j.DropdownGroup=to,j.DropdownItem=Ro,j.DropdownLabel=qi,j.DropdownPortal=Vc,j.DropdownRadioGroup=Ui,j.DropdownRadioItem=Xi,j.DropdownSeparator=Hc,j.DropdownSub=Uc,j.DropdownSubContent=Gi,j.DropdownSubTrigger=Hi,j.DropdownTrigger=Vi,j.Engagement=a6,j.EngagementNudgeData=Aj,j.ErrorOutline=Ll,j.ExpandDown=i6,j.ExpandRight=q0,j.Feedback=s6,j.Gear=l6,j.Goal=c6,j.GoalsNudgeData=vj,j.GridChart=h8,j.GridDirectedLineChart=bW,j.Help=u6,j.HistogramChart=Hz,j.Home=d6,j.Icon=Te,j.InfoWorkZero=Bl,j.Initiatives=f6,j.Input=s1,j.KebabMenu=K0,j.KnowTeamNudgeData=B8,j.Label=u1,j.LeftNav=N8,j.LeftNavButton=_8,j.LeftNavGroup=D8,j.LeftNavHome=F8,j.LeftNavItem=A0,j.LeftNavItemContent=ej,j.LeftNavItemDropdown=ji,j.LeftNavItemDropdownCheckboxItem=Yi,j.LeftNavItemDropdownContent=Jo,j.LeftNavItemDropdownGroup=to,j.LeftNavItemDropdownItem=Ro,j.LeftNavItemDropdownLabel=qi,j.LeftNavItemDropdownPortal=Vc,j.LeftNavItemDropdownRadioGroup=Ui,j.LeftNavItemDropdownRadioItem=Xi,j.LeftNavItemDropdownSeparator=Hc,j.LeftNavItemDropdownSub=Uc,j.LeftNavItemDropdownSubContent=Gi,j.LeftNavItemDropdownSubTrigger=Hi,j.LeftNavItemDropdownTrigger=Vi,j.LeftNavItemTrigger=RW,j.LineChart=Tz,j.ListItem=u2,j.ListItemIcon=NA,j.ListItemText=kA,j.Manager=p6,j.ManagerWithBorder=h6,j.MeshLogo=t1,j.MeshMaven=A6,j.MeshMavenAsk=S6,j.MeshMavenDisabledThumbsUp=E6,j.MeshMavenWithHording=M6,j.MeshMavenWithOrangeBulb=$6,j.MeshMavenWithThumbsUp=T6,j.Metric=ig,j.MetricCard=ag,j.MetricCardStatText=lu,j.MetricCardText=rs,j.MetricCardTitle=sg,j.MyOneOnOne=g6,j.NavCollapseButtonL2=L8,j.NavGroupL2=uj,j.NavGroupTitleL2=dj,j.NavItemL2=fj,j.NavL2=cj,j.NudgeAction=hj,j.NudgeCard=Cj,j.NudgeCardItem=xj,j.NudgeKebabMenu=Mj,j.Overflow=Q0,j.Person=v6,j.Product=m6,j.ProfileCard=cu,j.ProfileCardItem=lg,j.ProfileCardKey=cg,j.ProfileCardValue=ug,j.ProgressBar=y1,j.ProgressInfo=DE,j.ProgressSlider=my,j.RadarChart=qz,j.RequestFeedback=b6,j.RequestedFeedbackNudgeData=yj,j.Reviews=y6,j.ReviewsNudgeData=mj,j.Role=w6,j.SankeyChart=Bz,j.Search=Z0,j.Select=wS,j.SelectContent=$2,j.SelectGroup=xS,j.SelectItem=P2,j.SelectLabel=T2,j.SelectSeparator=k2,j.SelectTrigger=M2,j.SelectValue=CS,j.ShareFeedback=x6,j.SharePraiseNudgeData=bj,j.SliderDrag=J0,j.SplitButton=Tj,j.SplitButtonDropdownCheckboxItem=U8,j.SplitButtonDropdownContent=G8,j.SplitButtonDropdownGroup=W8,j.SplitButtonDropdownItem=z8,j.SplitButtonDropdownLabel=V8,j.SplitButtonDropdownRadioGroup=j8,j.SplitButtonDropdownRadioItem=H8,j.StackedBarChart=Rz,j.Survey=R0,j.Tabs=W2,j.TabsContent=U2,j.TabsList=j2,j.TabsTrigger=V2,j.Tag=es,j.Team=C6,j.Toaster=PE,j.Tooltip=tu,j.TooltipContent=ns,j.TooltipPortal=ru,j.TooltipProvider=eu,j.TooltipTrigger=nu,j.TrendingDown=n1,j.TrendingUp=r1,j.getInitialsFromName=Zp,j.toast=yE,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
|
|
96
|
+
`}),Z.appendChild(G.createTextNode(Tt))}R.timeEnd("clone node"),ve==null||ve(Oe),pe!==!1&&te(Oe)&&(R.time("embed web font"),yield Wj(Oe,V),R.timeEnd("embed web font")),R.time("embed node"),tb(Oe,V);const _e=ie.length;let Ie=0;const Xe=()=>m(this,null,function*(){for(;;){const Tt=ie.pop();if(!Tt)break;try{yield Tt}catch(zn){De("Failed to run task",zn)}ge==null||ge(++Ie,_e)}});ge==null||ge(Ie,_e),yield Promise.all([...Array(4)].map(Xe)),R.timeEnd("embed node"),Ee==null||Ee(Oe);const Ve=Kj(Oe,V);return ae&&Ve.insertBefore(ae,Ve.children[0]),Z&&Ve.insertBefore(Z,Ve.children[0]),ye&&K8(V),Ae==null||Ae(Ve),Ve})}function Kj(S,I){const{width:V,height:G}=I,R=Bt(V,G,S.ownerDocument),ie=R.ownerDocument.createElementNS(R.namespaceURI,"foreignObject");return ie.setAttributeNS(null,"x","0%"),ie.setAttributeNS(null,"y","0%"),ie.setAttributeNS(null,"width","100%"),ie.setAttributeNS(null,"height","100%"),ie.append(S),R.appendChild(ie),R}function kl(S,I){return m(this,null,function*(){var V;const G=yield zt(S,I),R=yield nb(G),ie=et(R,G.isEnable("removeControlCharacter"));G.autoDestruct||(G.svgStyleElement=$t(G.ownerDocument),G.svgDefsElement=(V=G.ownerDocument)==null?void 0:V.createElementNS(Lt,"defs"),G.svgStyles.clear());const Z=Ke(ie,R.ownerDocument);return yield Ln(Z,G)})}function Qj(S,I){return m(this,null,function*(){const V=yield zt(S,I),{log:G,type:R,quality:ie,dpi:Z}=V,ae=yield kl(V);G.time("canvas to blob");const fe=yield ur(ae,R,ie);if(["image/png","image/jpeg"].includes(R)&&Z){const pe=yield ct(fe.slice(0,33));let ge=new Uint8Array(pe);return R==="image/png"?ge=M(ge,Z):R==="image/jpeg"&&(ge=x(ge,Z)),G.timeEnd("canvas to blob"),new Blob([ge,fe.slice(33)],{type:R})}return G.timeEnd("canvas to blob"),fe})}function Fo(S,I){return m(this,null,function*(){const V=yield zt(S,I),{log:G,quality:R,type:ie,dpi:Z}=V,ae=yield kl(V);G.time("canvas to data url");let fe=ae.toDataURL(ie,R);if(["image/png","image/jpeg"].includes(ie)&&Z&&H&&z){const[pe,ge]=fe.split(",");let ye=0,ve=!1;if(ie==="image/png"){const Ve=U(ge);Ve>=0?(ye=Math.ceil((Ve+28)/3)*4,ve=!0):ye=33/3*4}else ie==="image/jpeg"&&(ye=18/3*4);const Ee=ge.substring(0,ye),Ae=ge.substring(ye),Oe=window.atob(Ee),_e=new Uint8Array(Oe.length);for(let Ve=0;Ve<_e.length;Ve++)_e[Ve]=Oe.charCodeAt(Ve);const Ie=ie==="image/png"?M(_e,Z,ve):x(_e,Z),Xe=window.btoa(String.fromCharCode(...Ie));fe=[pe,",",Xe,Ae].join("")}return G.timeEnd("canvas to data url"),fe})}function rb(S,I){return m(this,null,function*(){const V=yield zt(S,I),{width:G,height:R,ownerDocument:ie}=V,Z=yield Fo(V),ae=Bt(G,R,ie),fe=ae.ownerDocument.createElementNS(ae.namespaceURI,"image");return fe.setAttributeNS(null,"href",Z),fe.setAttributeNS(null,"height","100%"),fe.setAttributeNS(null,"width","100%"),ae.appendChild(fe),et(ae,V.isEnable("removeControlCharacter"))})}function Zj(S,I){return m(this,null,function*(){const V=yield zt(S,I),{ownerDocument:G,width:R,height:ie,scale:Z,type:ae}=V,fe=ae==="image/svg+xml"?yield rb(V):yield Fo(V),pe=Ke(fe,G);return pe.width=Math.floor(R*Z),pe.height=Math.floor(ie*Z),pe.style.width=`${R}px`,pe.style.height=`${ie}px`,pe})}function Jj(S,I){return m(this,null,function*(){return Fo(yield zt(S,v(h({},I),{type:"image/jpeg"})))})}function Rj(S,I){return m(this,null,function*(){const V=yield zt(S,I),G=yield kl(V);return G.getContext("2d").getImageData(0,0,G.width,G.height).data})}function eV(S,I){return m(this,null,function*(){return Fo(yield zt(S,v(h({},I),{type:"image/png"})))})}function tV(S,I){return m(this,null,function*(){return Fo(yield zt(S,v(h({},I),{type:"image/webp"})))})}n.createContext=Ml,n.destroyContext=K8,n.domToBlob=Qj,n.domToCanvas=kl,n.domToDataUrl=Fo,n.domToForeignObjectSvg=nb,n.domToImage=Zj,n.domToJpeg=Jj,n.domToPixel=Rj,n.domToPng=eV,n.domToSvg=rb,n.domToWebp=tV,n.loadMedia=wt,n.waitUntilLoad=wn,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})})})(e0,e0.exports);var xz=e0.exports;const In=(e,t,n)=>{d.useImperativeHandle(t,()=>({download(){e.current&&xz.domToPng(e.current,{scale:5}).then(r=>{const o=document.createElement("a");o.download=`${n}.png`,o.href=r,o.click()})}}))},O4=[{name:"default",dark:"var(--chart-default-dark, #1565BC)",light:"var(--chart-default-light, #99D2F9)"},{name:"green",dark:"#1A6400",light:"#B1E39F"},{name:"purple",dark:"#734DBB",light:"#E7DAFF"},{name:"bronze_yellow",dark:"#7E6000",light:"#FFCEFB"},{name:"plum",dark:"#7D1779",light:"#E1AADD"},{name:"indigo",dark:"#4657AE",light:"#CDD5FF"},{name:"brown",dark:"#8A4A00",light:"#FCC88B"},{name:"cardinal",dark:"#BE1442",light:"#FFD0D0"},{name:"dark_green",dark:"#00675E",light:"#A1DFD5"},{name:"maroon",dark:"#891E01",light:"#FFAE99"},{name:"golden_brown",dark:"#90591A",light:"#FFDEB6"},{name:"maroon",dark:"#800000",light:"#F2CECE"},{name:"green_yellow",dark:"#6A6A00",light:"#FFFFC7"},{name:"blue",dark:"#000075",light:"#CFCFFF"},{name:"black",dark:"#000000",light:"#E3E1E1"},{name:"grey",dark:"#323846",light:"#D0DFFF"},{name:"pink",dark:"#BE012F",light:"#FFD9E2"},{name:"royal_blue",dark:"#002FDC",light:"#D7DFFF"},{name:"magenta",dark:"#B402AA",light:"#FFCEFB"}];function Ye(e){return O4[e%O4.length]}const hl=(e,t)=>d.Children.map(e,n=>d.isValidElement(n)&&typeof n.type=="function"&&n.type.displayName===t.displayName?n:null);function t0({value:e,darkColor:t,lightColor:n}){return c.jsxs("div",{className:"inline-flex items-center justify-start gap-2 px-2 py-1",children:[c.jsx("div",{style:{backgroundColor:n,borderColor:t},className:"relative h-3 w-3 rounded-3xl border"}),c.jsx("div",{className:"flex items-start justify-start",children:c.jsx("div",{className:"text-xs font-normal leading-none text-zinc-800",children:e})})]})}function n0({label:e,value:t}){return c.jsxs("div",{className:"inline-flex max-w-sm basis-full flex-col items-start justify-start px-1 py-0.5",children:[c.jsx("div",{className:" text-[10px] font-normal leading-none text-stone-500",children:e}),c.jsx("div",{className:"flex items-start justify-start text-sm font-medium",children:t||"-"})]})}function r0({label:e,value:t}){return c.jsxs("div",{className:"inline-flex max-w-sm flex-col items-start justify-start px-2 py-0.5",children:[c.jsx("div",{className:" text-[10px] font-normal leading-none text-stone-500",children:e}),c.jsx("div",{className:"flex items-start justify-start text-sm font-medium",children:t||"-"})]})}function o0({nodeData:e}){const{employee:t}=e,{name:n,imageUrl:r}=t;return c.jsxs("div",{className:"inline-flex max-w-sm items-center justify-start px-2 py-0.5",children:[c.jsx(dn,{size:"md",children:c.jsx(fn,{src:r,alt:"Avatar"})}),c.jsx("div",{className:"flex items-start justify-start px-2 text-sm font-medium",children:n||"-"})]})}function ke({children:e,showSideBySide:t,tooltipTitle:n}){const r=hl(e,t0),o=hl(e,n0),a=hl(e,r0),i=hl(e,o0);return c.jsxs("div",{className:"rabbit-ds relative z-[1500] inline-flex h-auto w-auto min-w-[200px] max-w-[400px] flex-col items-start justify-start gap-2 rounded-lg bg-white p-2 shadow",children:[c.jsx("div",{className:"px-2 py-1 text-xs font-medium leading-none text-zinc-800",children:n}),a,c.jsxs("div",{className:"flex w-full flex-col items-start justify-start rounded-lg p-2",children:[t&&c.jsxs("div",{className:le("flex w-full justify-between"),children:[o&&o[0],!!(o!=null&&o[1])&&c.jsx("div",{className:"mx-3 w-0 border-r"}),o&&o[1]]}),t&&(o==null?void 0:o[2])&&c.jsxs("div",{className:le("flex w-full mt-3 justify-between"),children:[o&&o[2],!!(o!=null&&o[3])&&c.jsx("div",{className:"mx-3 w-0 border-r"}),o&&o[3]]}),!t&&c.jsx("div",{className:le("grid w-full auto-rows-auto gap-3"),children:o})]}),r&&r.length>0?c.jsx("div",{className:"h-px w-full bg-gray-100 px-2"}):null,r,i]})}t0.displayName="Legend",n0.displayName="Item",r0.displayName="Header",o0.displayName="Footer",ke.Legend=t0,ke.Item=n0,ke.Header=r0,ke.Footer=o0,ke.defaultProps={showSideBySide:!1};function N4({xValue:e,yValue:t,tooltipTitle:n,xAxisLabel:r,yAxisLabel:o,showSideBySide:a,legendValue:i,legendDarkColor:s,legendLightColor:l}){const u=e==null?void 0:e.toString(),f=t==null?void 0:t.toString();return c.jsxs(ke,{tooltipTitle:n,showSideBySide:a,children:[c.jsx(ke.Item,{label:r,value:u}),c.jsx(ke.Item,{label:o,value:f}),c.jsx(ke.Legend,{value:i,darkColor:s,lightColor:l})]})}N4.defaultProps={xValue:void 0,yValue:void 0};function Cz({data:e,xAccessor:t,yAccessor:n,connectNulls:r=!1}){const o=d.useContext(bt),a=r?e.filter(i=>i.y!==null):e;return a.length===0?null:c.jsx($5,{data:a,stroke:a[0].color.dark,strokeWidth:1,x:i=>{var s,l;return((s=o==null?void 0:o.xScale)==null?void 0:s.call(o,t(i)))+((l=o==null?void 0:o.xScale)==null?void 0:l.bandwidth())/2},y:i=>{var s;return(s=o==null?void 0:o.yScale)==null?void 0:s.call(o,n(i))}})}const Az=({x:e,y:t,datum:n,size:r})=>c.jsx(so,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.light,r:r/2}),Sz=({tickData:e,xAxisCharLimit:t})=>{var a;const n=d.useContext(bt),r=(a=n==null?void 0:n.xScale)==null?void 0:a.bandwidth(),o=Math.floor(r/5);return c.jsx(Xa,{textLabel:e.formattedValue||"",x:e.x,y:e.y,textStyles:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle",angle:r&&r<25?-45:0},axisCharLimit:t??o})},Ez=({x:e,y:t,datum:n})=>c.jsx(so,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.dark,r:5,style:{zIndex:1500}}),gl={xAccessor:e=>e.x,yAccessor:e=>e.y},D4=(e,t,n)=>n==="pre"?`${t}${e}`:`${e}${t}`,F4=10,Mz=5,a0=d.forwardRef(({nodes:e,height:t,width:n,xAxisValues:r,series:o,xAxisLabel:a,yAxisLabel:i,xAxisDomain:s,yAxisDomain:l,xAxisUnitSymbol:u,yAxisUnitSymbol:f,tooltipTitle:p,mode:h,xAxisCharLimit:v,connectNulls:g=!1,maxNodesInMiniMode:m=Mz,tooltipStackCharLimit:x=F4,seriesSelectorTitle:y,preselectedNodes:w},b)=>{const[A,C]=d.useState(()=>(w&&w<=e.length?e.slice(0,w):e).map(P=>P.id)),$=d.useRef(null);In($,b,`${a}-${i}-LineChart`);const k=d.useMemo(()=>o.map((M,P)=>{const L=e.find(W=>W.id===M.id);return{points:M.data.map((W,U)=>({x:r[U],y:Number(W),nodeId:M.id,color:(L==null?void 0:L.color)??Ye(P)}))}}).slice(0,h==="mini"?m:o.length),[o,h,m,e,r]),T=d.useMemo(()=>h==="full"?k.filter(M=>A.includes(M.points[0].nodeId)):k,[k,A,h]);return c.jsxs("div",{ref:$,id:"line-chart",className:"rabbit-ds flex flex-col bg-white",style:{width:n,height:t},children:[c.jsxs("div",{className:"flex h-full min-h-0 w-full min-w-0 flex-row",children:[c.jsx("div",{className:"h-full min-h-0 w-full min-w-0",children:c.jsxs(cr,{margin:{top:10,left:70,right:50,bottom:50},xScale:{type:"band",nice:!0,...s&&{domain:s}},yScale:{type:"linear",nice:!0,...l&&{domain:l}},children:[c.jsx(U5,{columns:!1,numTicks:6,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),c.jsx($o,{hideTicks:!0,orientation:"bottom",stroke:"#CFD7DF",strokeWidth:1,numTicks:30,tickFormat:M=>u?D4(M,u.symbol,u.position):M,rangePadding:{end:10},tickComponent:M=>c.jsx(Sz,{tickData:M,xAxisCharLimit:v}),label:`${a} ➔`,labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx($o,{hideTicks:!0,numTicks:6,strokeWidth:1,orientation:"left",stroke:"#CFD7DF",label:`${i} ➔`,tickFormat:M=>f?D4(Tn(M>=1e3?"~s":"")(M),f.symbol,f.position):Tn(M>=1e3?"~s":"")(M),tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666"},labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dx:-35,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),T.map((M,P)=>c.jsxs(c.Fragment,{children:[c.jsx(Cz,{data:M.points,xAccessor:gl.xAccessor,yAccessor:gl.yAccessor,connectNulls:g}),c.jsx(k4,{dataKey:`Performance Management ${P}`,data:M.points,size:8,renderGlyph:Az,xAccessor:gl.xAccessor,yAccessor:gl.yAccessor})]})),c.jsx(ol,{showDatumGlyph:!0,scroll:!0,debounce:500,snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,detectBounds:!0,unstyled:!0,applyPositionStyle:!0,renderGlyph:Ez,renderTooltip:({tooltipData:M})=>{var W,U,B,E,_,H;const P=e.find(z=>{var N;return z.id===((N=M==null?void 0:M.nearestDatum)==null?void 0:N.datum.nodeId)}),L=((W=M==null?void 0:M.nearestDatum)==null?void 0:W.datum)&&((U=M==null?void 0:M.nearestDatum)==null?void 0:U.datum.x.length)<x;return c.jsx(N4,{xValue:(B=M==null?void 0:M.nearestDatum)==null?void 0:B.datum.x,yValue:(E=M==null?void 0:M.nearestDatum)==null?void 0:E.datum.y,xAxisLabel:a,yAxisLabel:i,showSideBySide:!!L,tooltipTitle:p,legendValue:(P==null?void 0:P.name)||"",legendDarkColor:((_=M==null?void 0:M.nearestDatum)==null?void 0:_.datum.color.dark)||Ye(0).dark,legendLightColor:((H=M==null?void 0:M.nearestDatum)==null?void 0:H.datum.color.light)||Ye(0).light})}})]})}),h==="full"&&c.jsxs("div",{className:"inline-flex w-64 shrink-0 grow-0 basis-auto flex-col items-start justify-start gap-0.5 rounded border border-solid border-[color:var(--Accent,#EBEFF3)] bg-[#FDFDFD] p-4 pr-0 text-xs",children:[c.jsxs("div",{className:"pb-1 text-xs font-semibold",children:[c.jsx("span",{className:"pr-1",children:y??a}),"(",T.length??0,"/",k.length,")"]}),c.jsx("div",{className:"inline-flex h-[95%] w-full shrink-0 grow-0 flex-col items-start justify-start gap-1 overflow-scroll pr-4",children:k.map(M=>{const P=e.find(L=>L.id===M.points[0].nodeId);return P&&c.jsxs("div",{className:"flex w-full items-center justify-between gap-1 py-1",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("div",{style:{backgroundColor:M.points[0].color.light,borderColor:M.points[0].color.dark},className:"mr-1 h-3 w-3 rounded-full border"}),P.name]}),c.jsx("div",{className:"flex items-center",children:c.jsx(ri,{checked:A.includes(P.id),onCheckedChange:L=>{let W=[...A];L?W=[...A,P.id]:W.splice(A.indexOf(P.id),1),C(W)}})})]},P.id)})})]})]}),h==="mini"&&c.jsx("div",{className:"flex flex-row flex-wrap justify-center gap-4 text-[10px] font-semibold text-font-secondary",children:k.map(M=>{const P=e.find(L=>L.id===M.points[0].nodeId);return c.jsxs("div",{className:"flex items-center justify-center gap-1",children:[c.jsx("div",{style:{backgroundColor:M.points[0].color.light,borderColor:M.points[0].color.dark},className:"h-3 w-3 rounded-full border"}),P==null?void 0:P.name]},P==null?void 0:P.id)})})]})}),$z={xAxisUnitSymbol:void 0,yAxisUnitSymbol:void 0,mode:"mini",xAxisCharLimit:void 0,tooltipStackCharLimit:F4,xAxisDomain:void 0,yAxisDomain:void 0,connectNulls:!1};a0.defaultProps=$z,a0.displayName="LineBase";const _4=d.forwardRef((e,t)=>c.jsx(Rn,{debounceTime:10,children:({width:n,height:r})=>c.jsx(a0,{ref:t,width:n,height:r,...e})}));_4.displayName="LineChart";const Tz=_4;function I4(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let o of e)(o=t(o,++r,e))!=null&&(n<o||n===void 0&&o>=o)&&(n=o)}return n}function Pz(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let o of e)(o=t(o,++r,e))!=null&&(n>o||n===void 0&&o>=o)&&(n=o)}return n}function i0(e,t){let n=0;if(t===void 0)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let o of e)(o=+t(o,++r,e))&&(n+=o)}return n}function kz(e,t){return e.sourceLinks.length?e.depth:t-1}function vl(e){return function(){return e}}function L4(e,t){return ml(e.source,t.source)||e.index-t.index}function B4(e,t){return ml(e.target,t.target)||e.index-t.index}function ml(e,t){return e.y0-t.y0}function s0(e){return e.value}function Oz(e){return e.index}function Nz(e){return e.nodes}function Dz(e){return e.links}function z4(e,t){const n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function W4({nodes:e}){for(const t of e){let n=t.y0,r=n;for(const o of t.sourceLinks)o.y0=n+o.width/2,n+=o.width;for(const o of t.targetLinks)o.y1=r+o.width/2,r+=o.width}}function Fz(){let e=0,t=0,n=1,r=1,o=24,a=8,i,s=Oz,l=kz,u,f,p=Nz,h=Dz,v=6;function g(){const E={nodes:p.apply(null,arguments),links:h.apply(null,arguments)};return m(E),x(E),y(E),w(E),C(E),W4(E),E}g.update=function(E){return W4(E),E},g.nodeId=function(E){return arguments.length?(s=typeof E=="function"?E:vl(E),g):s},g.nodeAlign=function(E){return arguments.length?(l=typeof E=="function"?E:vl(E),g):l},g.nodeSort=function(E){return arguments.length?(u=E,g):u},g.nodeWidth=function(E){return arguments.length?(o=+E,g):o},g.nodePadding=function(E){return arguments.length?(a=i=+E,g):a},g.nodes=function(E){return arguments.length?(p=typeof E=="function"?E:vl(E),g):p},g.links=function(E){return arguments.length?(h=typeof E=="function"?E:vl(E),g):h},g.linkSort=function(E){return arguments.length?(f=E,g):f},g.size=function(E){return arguments.length?(e=t=0,n=+E[0],r=+E[1],g):[n-e,r-t]},g.extent=function(E){return arguments.length?(e=+E[0][0],n=+E[1][0],t=+E[0][1],r=+E[1][1],g):[[e,t],[n,r]]},g.iterations=function(E){return arguments.length?(v=+E,g):v};function m({nodes:E,links:_}){for(const[z,N]of E.entries())N.index=z,N.sourceLinks=[],N.targetLinks=[];const H=new Map(E.map((z,N)=>[s(z,N,E),z]));for(const[z,N]of _.entries()){N.index=z;let{source:O,target:F}=N;typeof O!="object"&&(O=N.source=z4(H,O)),typeof F!="object"&&(F=N.target=z4(H,F)),O.sourceLinks.push(N),F.targetLinks.push(N)}if(f!=null)for(const{sourceLinks:z,targetLinks:N}of E)z.sort(f),N.sort(f)}function x({nodes:E}){for(const _ of E)_.value=_.fixedValue===void 0?Math.max(i0(_.sourceLinks,s0),i0(_.targetLinks,s0)):_.fixedValue}function y({nodes:E}){const _=E.length;let H=new Set(E),z=new Set,N=0;for(;H.size;){for(const O of H){O.depth=N;for(const{target:F}of O.sourceLinks)z.add(F)}if(++N>_)throw new Error("circular link");H=z,z=new Set}}function w({nodes:E}){const _=E.length;let H=new Set(E),z=new Set,N=0;for(;H.size;){for(const O of H){O.height=N;for(const{source:F}of O.targetLinks)z.add(F)}if(++N>_)throw new Error("circular link");H=z,z=new Set}}function b({nodes:E}){const _=I4(E,N=>N.depth)+1,H=(n-e-o)/(_-1),z=new Array(_);for(const N of E){const O=Math.max(0,Math.min(_-1,Math.floor(l.call(null,N,_))));N.layer=O,N.x0=e+O*H,N.x1=N.x0+o,z[O]?z[O].push(N):z[O]=[N]}if(u)for(const N of z)N.sort(u);return z}function A(E){const _=Pz(E,H=>(r-t-(H.length-1)*i)/i0(H,s0));for(const H of E){let z=t;for(const N of H){N.y0=z,N.y1=z+N.value*_,z=N.y1+i;for(const O of N.sourceLinks)O.width=O.value*_}z=(r-z+i)/(H.length+1);for(let N=0;N<H.length;++N){const O=H[N];O.y0+=z*(N+1),O.y1+=z*(N+1)}W(H)}}function C(E){const _=b(E);i=Math.min(a,(r-t)/(I4(_,H=>H.length)-1)),A(_);for(let H=0;H<v;++H){const z=Math.pow(.99,H),N=Math.max(1-z,(H+1)/v);k(_,z,N),$(_,z,N)}}function $(E,_,H){for(let z=1,N=E.length;z<N;++z){const O=E[z];for(const F of O){let K=0,Y=0;for(const{source:ne,value:te}of F.targetLinks){let J=te*(F.layer-ne.layer);K+=U(ne,F)*J,Y+=J}if(!(Y>0))continue;let ee=(K/Y-F.y0)*_;F.y0+=ee,F.y1+=ee,L(F)}u===void 0&&O.sort(ml),T(O,H)}}function k(E,_,H){for(let z=E.length,N=z-2;N>=0;--N){const O=E[N];for(const F of O){let K=0,Y=0;for(const{target:ne,value:te}of F.sourceLinks){let J=te*(ne.layer-F.layer);K+=B(F,ne)*J,Y+=J}if(!(Y>0))continue;let ee=(K/Y-F.y0)*_;F.y0+=ee,F.y1+=ee,L(F)}u===void 0&&O.sort(ml),T(O,H)}}function T(E,_){const H=E.length>>1,z=E[H];P(E,z.y0-i,H-1,_),M(E,z.y1+i,H+1,_),P(E,r,E.length-1,_),M(E,t,0,_)}function M(E,_,H,z){for(;H<E.length;++H){const N=E[H],O=(_-N.y0)*z;O>1e-6&&(N.y0+=O,N.y1+=O),_=N.y1+i}}function P(E,_,H,z){for(;H>=0;--H){const N=E[H],O=(N.y1-_)*z;O>1e-6&&(N.y0-=O,N.y1-=O),_=N.y0-i}}function L({sourceLinks:E,targetLinks:_}){if(f===void 0){for(const{source:{sourceLinks:H}}of _)H.sort(B4);for(const{target:{targetLinks:H}}of E)H.sort(L4)}}function W(E){if(f===void 0)for(const{sourceLinks:_,targetLinks:H}of E)_.sort(B4),H.sort(L4)}function U(E,_){let H=E.y0-(E.sourceLinks.length-1)*i/2;for(const{target:z,width:N}of E.sourceLinks){if(z===_)break;H+=N+i}for(const{source:z,width:N}of _.targetLinks){if(z===E)break;H-=N}return H}function B(E,_){let H=_.y0-(_.targetLinks.length-1)*i/2;for(const{source:z,width:N}of _.targetLinks){if(z===E)break;H+=N+i}for(const{target:z,width:N}of E.sourceLinks){if(z===_)break;H-=N}return H}return g}function _z({tooltipData:e,fromLabel:t,toLabel:n,weightLabel:r,tooltipTitle:o}){var s,l,u,f;const a=e.source,i=e.target;return c.jsxs(ke,{tooltipTitle:o,children:[c.jsx(ke.Item,{label:t,value:a.name}),c.jsx(ke.Item,{label:n,value:i.name}),c.jsx(ke.Item,{label:r,value:e.weight.toString()}),c.jsx(ke.Legend,{value:a.name,darkColor:(s=Ye((a.index||0)+1))==null?void 0:s.dark,lightColor:(l=Ye((a.index||0)+1))==null?void 0:l.light}),c.jsx(ke.Legend,{value:i.name,darkColor:(u=Ye((i.index||0)+1))==null?void 0:u.dark,lightColor:(f=Ye((i.index||0)+1))==null?void 0:f.light})]})}const j4=80,V4=20,Iz=30,Lz=12,U4=d.forwardRef(({height:e,width:t,tooltipTitle:n,nodes:r,links:o,groups:a,weightLabel:i},s)=>{const l=d.useMemo(()=>Fz().nodeId(E=>E.id).nodeWidth(Lz).nodePadding(Iz).nodeAlign(E=>E.group),[]),u=d.useRef(null);In(u,s,`${n}-SankeyChart`);const[f,p]=d.useState(""),[h,v]=d.useState(null),{tooltipData:g,tooltipLeft:m,tooltipTop:x,tooltipOpen:y,showTooltip:w,hideTooltip:b}=Ba(),{containerBounds:A,containerRef:C,TooltipInPortal:$}=za({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),k=d.useMemo(()=>l.extent([[j4,V4],[t-j4,e-V4-50]])({nodes:r,links:o.map(E=>({...E,value:Number(E.weight)}))}),[e,t,l,r,o]),T=d.useMemo(()=>Math.max(...k.nodes.map(E=>E.depth??0)),[k]),M=d.useMemo(()=>{const E={};let _=-1/0;return k.nodes.forEach(H=>{const{group:z}=H;E[z]?(E[z].x=Math.max(E[z].x??-1/0,H.x0??-1/0),E[z].y=Math.max(E[z].y??-1/0,H.y1??-1/0)):(E[z]={},E[z].x=H.x0,E[z].y=H.y1),_=Math.max(_,E[z].y??-1/0),E[z].y=_}),Object.keys(E).forEach(H=>{E[H].y=_}),E},[k]),P=d.useCallback(E=>{const _=l.nodeId()(E);p(f===_?"":_)},[f,l]),L=d.useCallback(()=>{p(""),v(null)},[]),W=d.useMemo(()=>f===""&&h===null?new Set:new Set(k.links.filter(E=>l.nodeId()(E.source)===f||l.nodeId()(E.target)===f||(h==null?void 0:h.source)===E.source&&(h==null?void 0:h.target)===E.target)),[f,k,h,l]),U=d.useCallback((E,_)=>{const H=("clientX"in E?E.clientX:0)-A.left,z=("clientY"in E?E.clientY:0)-A.top;v(_),H&&z&&w({tooltipLeft:H,tooltipTop:z,tooltipData:_})},[w,A]),B=d.useCallback(()=>{L(),b()},[L,b]);return c.jsxs("div",{ref:u,className:"rabbit-ds h-min w-min bg-white",id:"sankey-chart",children:[c.jsxs("svg",{height:e,width:t,ref:C,children:[c.jsx("g",{children:k.links.map(E=>c.jsx(mI,{data:E,source:_=>({x:_.source.x1,y:_.y0}),target:_=>({x:_.target.x0,y:_.y1}),x:_=>_.x??0,y:_=>_.y??0,fill:"none",pointerEvents:"stroke",onMouseLeave:()=>B(),onMouseMove:_=>U(_,E),stroke:Ye((E.source.index||0)+1).light,strokeWidth:E.width,strokeOpacity:W.has(E)?.7:.4},E.index))}),c.jsx("g",{children:k.nodes.map(E=>{var _,H,z;return c.jsx("g",{children:c.jsx(T5,{x:E.x0??0,height:(E.y1??0)-(E.y0??0)+10,width:(E.x1??0)-(E.x0??0),y:(E.y0??0)-5,onMouseEnter:()=>P(E),onMouseLeave:()=>L(),radius:2,fill:f===E.id?(_=Ye((E.index||0)+1))==null?void 0:_.dark:(H=Ye((E.index||0)+1))==null?void 0:H.light,stroke:(z=Ye((E.index||0)+1))==null?void 0:z.dark,all:!0})},E.index)})}),c.jsx("g",{children:a.map(E=>c.jsx(Xa,{axisCharLimit:20,x:M[E.id].x??0,y:(M[E.id].y??0)+40,textLabel:E.name,textStyles:{fontSize:10,fontWeight:600,textAnchor:"middle",fill:"#666666"}},E.id))}),c.jsxs("g",{children:[k.nodes.map(E=>c.jsx(Xa,{axisCharLimit:8,x:E.depth===T?(E.x1??0)+10:(E.x0??0)-10,y:(E.y0??0)+((E.y1??0)-(E.y0??0))/2,textLabel:E.name,textStyles:{fontSize:10,fontWeight:600,textAnchor:E.depth===T?"start":"end",fill:"#666666"}},E.index)),k.nodes.map(E=>E.value&&c.jsx(ha,{x:E.depth===T?(E.x1??0)+10:(E.x0??0)-10,y:(E.y0??0)+((E.y1??0)-(E.y0??0))/2+16,style:{fontSize:10,fontWeight:400,textAnchor:E.depth===T?"start":"end",fill:"#666666"},children:`(${E.value.toString()})`},E.index))]})]}),y&&g&&c.jsx($,{top:x,left:m,unstyled:!0,applyPositionStyle:!0,children:c.jsx(_z,{tooltipData:g,fromLabel:`From: ${a[g.source.group].name}`,toLabel:`To: ${a[g.target.group].name}`,weightLabel:i,tooltipTitle:n})},Math.random())]})});U4.displayName="Sankey";const H4=d.forwardRef((e,t)=>c.jsx(Rn,{debounceTime:10,children:({width:n,height:r})=>n&&r&&c.jsx(U4,{ref:t,width:n,height:r,...e})}));H4.displayName="SankeyChart";const Bz=H4;function zz(e){return"bandwidth"in e?e.bandwidth():0}var Wz=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function l0(){return l0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l0.apply(this,arguments)}function jz(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function G4(e){var t=e.top,n=t===void 0?0:t,r=e.left,o=r===void 0?0:r,a=e.scale,i=e.width,s=e.stroke,l=s===void 0?"#eaf0f6":s,u=e.strokeWidth,f=u===void 0?1:u,p=e.strokeDasharray,h=e.className,v=e.children,g=e.numTicks,m=g===void 0?10:g,x=e.lineStyle,y=e.offset,w=e.tickValues,b=jz(e,Wz),A=w??Qd(a,m),C=(y??0)+zz(a)/2,$=A.map(function(k,T){var M,P=((M=Xs(a(k)))!=null?M:0)+C;return{index:T,from:new Pn({x:0,y:P}),to:new Pn({x:i,y:P})}});return d.createElement(hn,{className:gt("visx-rows",h),top:n,left:o},v?v({lines:$}):$.map(function(k){var T=k.from,M=k.to,P=k.index;return d.createElement(AI,l0({key:"row-line-"+P,from:T,to:M,stroke:l,strokeWidth:f,strokeDasharray:p,style:x},b))}))}G4.propTypes={tickValues:re.array,width:re.number.isRequired};function Y4({xValue:e,yValue:t,tooltipTitle:n,xAxisLabel:r,yAxisLabel:o,legendValue:a,legendDarkColor:i,legendLightColor:s}){const l=e==null?void 0:e.toString(),u=t==null?void 0:t.toString();return c.jsxs(ke,{tooltipTitle:n,showSideBySide:!0,children:[c.jsx(ke.Item,{label:r,value:l}),c.jsx(ke.Item,{label:o,value:u}),c.jsx(ke.Legend,{value:a,darkColor:i,lightColor:s})]})}Y4.defaultProps={xValue:void 0,yValue:void 0};const X4=20,q4=50,c0=80,bl=50,Vz=10,Uz=25,u0=d.forwardRef(({tooltipTitle:e,xAxisLabel:t,yAxisLabel:n,domain:r,binCount:o,data:a,width:i,height:s,maxBinCount:l=Uz,minBinCount:u=Vz,integerBins:f=!1,integerYAxis:p=!1},h)=>{const v=d.useMemo(()=>$s(a),[a]),{histogramDomain:g,threshold:m,thresholdInteger:x}=d.useMemo(()=>{const N=v[0]??0,O=N===v[1]?u+N:v[1]??0,F=O-N>u?O:u+N,K=Math.min(Math.max(O-N,u),l),Y=Math.floor(v[0]??0),ee=Math.ceil(F);return{histogramDomain:r||(f?[Y,ee]:[N,O]),threshold:K,thresholdInteger:Math.ceil(K)}},[v,r,f,l,u]),y=d.useMemo(()=>Mo({domain:g,range:[bl,i-q4],round:!0,nice:!0}),[g,i]),w=d.useMemo(()=>zN().domain(y.domain()).thresholds(o||(f?x:m))(a),[y,o,a,m,x,f]),b=d.useMemo(()=>Mo({domain:[0,ud(w,N=>N.length)??0],range:[s-c0,X4],round:!0,nice:!0}),[w,s]),A=d.useMemo(()=>b.ticks().filter(N=>p?Number.isInteger(N):N),[p,b]),C=d.useRef(null);In(C,h,`${t}-${n}-Histogram`);const{tooltipData:$,tooltipLeft:k,tooltipTop:T,tooltipOpen:M,showTooltip:P,hideTooltip:L}=Ba(),{containerBounds:W,containerRef:U,TooltipInPortal:B}=za({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),E=i-bl-q4,_=s-X4-c0-100,H=d.useCallback((N,O)=>{const F=("clientX"in N?N.clientX:0)-W.left,K=("clientY"in N?N.clientY:0)-W.top;F&&K&&P({tooltipLeft:F,tooltipTop:K,tooltipData:O})},[P,W]),z=d.useCallback(()=>{L()},[L]);return c.jsxs("div",{className:"rabbit-ds flex flex-col bg-white",style:{width:i,height:s},ref:C,children:[c.jsxs("svg",{width:i,height:s,ref:U,children:[c.jsx(pf,{orientation:"bottom",scale:y,top:s-c0,hideTicks:!0,numTicks:6,stroke:"#CFD7DF",strokeWidth:1,rangePadding:{end:10},label:`${t} ➔`,tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle"},labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx(pf,{orientation:"left",scale:b,left:bl,hideTicks:!0,strokeWidth:1,stroke:"#CFD7DF",tickFormat:Tn(p?"d":"~s"),tickValues:A,label:`${n} ➔`,tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"end"},labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dx:-20,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsxs(hn,{children:[c.jsx(G4,{scale:b,width:E,height:_,left:bl,top:0,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),w.map(N=>{const O=Math.abs(b(0)-b(N.length)),F=Math.abs(y(N.x1??0)-y(N.x0??0));return c.jsx("g",{children:c.jsx(iI,{x:y(N.x0??0),y:b(N.length),width:F,height:O&&O-1,fill:Ye(0).light,stroke:Ye(0).dark,strokeWidth:1,onMouseMove:K=>H(K,N),onMouseLeave:()=>z()})},Math.random())})]})]}),M&&$&&c.jsx(B,{top:T,left:k,unstyled:!0,applyPositionStyle:!0,children:c.jsx(Y4,{xAxisLabel:t,xValue:`${$.x0} to ${$.x1}`,yAxisLabel:n,yValue:$.length,tooltipTitle:e,legendValue:n,legendDarkColor:Ye(0).dark,legendLightColor:Ye(0).light})},Math.random()),b.domain()[2]]})}),K4=d.forwardRef((e,t)=>c.jsx(Rn,{debounceTime:10,children:({width:n,height:r})=>c.jsx(u0,{ref:t,width:n,height:r,...e})}));u0.defaultProps={domain:void 0,binCount:void 0,integerBins:!1,integerYAxis:!1},u0.displayName="HistogramBase",K4.displayName="HistogramChart";const Hz=K4;function Q4({tooltipTitle:e,label:t,value:n,unit:r,legendValue:o,legendDarkColor:a,legendLightColor:i}){return c.jsxs(ke,{tooltipTitle:e,children:[c.jsx(ke.Item,{label:t,value:`${n} ${r}`}),c.jsx(ke.Legend,{value:o,darkColor:a||"",lightColor:i||""})]})}Q4.defaultProps={};const Gz=e=>e.value,Yz=e=>e.label,Z4=d.forwardRef(({width:e,height:t,unit:n="%",data:r,tooltipTitle:o,legendTitle:a},i)=>{const s=e/2,l=t/2,u=d.useMemo(()=>Math.min(e-.35*e,t-50)/2,[e,t]),{tooltipData:f,tooltipLeft:p,tooltipTop:h,tooltipOpen:v,showTooltip:g,hideTooltip:m}=Ba(),{containerBounds:x,containerRef:y,TooltipInPortal:w}=za({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),b=d.useRef(null),A=d.useCallback(($,k)=>{const T=("clientX"in $?$.clientX:0)-x.left,M=("clientY"in $?$.clientY:0)-x.top;T&&M&&g({tooltipLeft:T,tooltipTop:M,tooltipData:k})},[g,x]),C=d.useCallback(()=>{m()},[m]);return In(b,i,"DonutChart"),c.jsxs("div",{className:"rabbit-ds flex flex-col bg-white",style:{width:e,height:t},ref:b,children:[c.jsx("svg",{width:e,height:t,className:"rabbit-ds",ref:y,children:c.jsx(hn,{top:l-20,left:s,children:c.jsx(R_,{data:r,pieValue:Gz,outerRadius:u-10,innerRadius:u-Math.min(e*.07,22)-10,cornerRadius:2,padAngle:.025,children:$=>c.jsx(c.Fragment,{children:$.arcs.map(k=>{const T=Yz(k.data);return c.jsx("g",{children:c.jsx("path",{d:$.path(k)??void 0,fill:k.data.color,onMouseLeave:C,onMouseMove:M=>A(M,{label:a,value:k.value,tooltipTitle:o,unit:n,legendValue:T,legendDarkColor:k.data.labelColor,legendLightColor:k.data.color})})},`arc-${T}`)})})})})}),v&&f&&c.jsx(w,{top:h,left:p,unstyled:!0,applyPositionStyle:!0,children:c.jsx(Q4,{unit:f.unit,label:f.label,value:f.value,tooltipTitle:o,legendValue:f.legendValue??"",legendDarkColor:f.legendDarkColor,legendLightColor:f.legendLightColor})},Math.random()),c.jsx("div",{className:"flex flex-row flex-wrap justify-center gap-2 text-[10px] font-semibold text-font-secondary",style:{fontSize:Math.min(e*.04,10)},children:r.map($=>c.jsxs("div",{className:"flex items-center justify-center gap-1",children:[c.jsx("div",{style:{backgroundColor:$.color,borderColor:$.labelColor,color:$.labelColor,width:Math.min(e*.04,10),height:Math.min(e*.04,10)},className:"h-3 w-3 rounded-full border"}),`${$.label}: ${$.value}${n}`]},$.label))})]})});Z4.displayName="DonutChartBase";const J4=d.forwardRef((e,t)=>c.jsx(Rn,{debounceTime:10,children:({width:n,height:r})=>c.jsx(Z4,{ref:t,width:n,height:r,...e})}));J4.displayName="DonutChart";const Xz=J4;function R4({xValue:e,yValue:t,tooltipTitle:n,xAxisLabel:r,yAxisLabel:o,showSideBySide:a,legendValue:i,legendDarkColor:s,legendLightColor:l}){const u=e==null?void 0:e.toString(),f=t==null?void 0:t.toString();return c.jsxs(ke,{tooltipTitle:n,showSideBySide:a,children:[c.jsx(ke.Item,{label:r,value:u}),c.jsx(ke.Item,{label:o,value:f}),c.jsx(ke.Legend,{value:i,darkColor:s,lightColor:l})]})}R4.defaultProps={xValue:void 0,yValue:void 0};const yl={top:60,left:20,right:20,bottom:20},e8={start:10,end:-10,middle:0},t8=d.forwardRef(({width:e,height:t,levels:n=5,nodes:r,xAxisLabel:o,xAxisCharLimit:a,tooltipTitle:i,xAxisUnitSymbol:s,yAxisDomain:l,series:u=[],xAxisValues:f},p)=>{const h=d.useRef(null);In(h,p,"RadarChart");const{tooltipData:v,tooltipLeft:g,tooltipTop:m,tooltipOpen:x,showTooltip:y,hideTooltip:w}=Ba(),{containerBounds:b,containerRef:A,TooltipInPortal:C}=za({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),$=d.useCallback((O,F)=>{const K=Math.PI*2/O;return[...new Array(O)].map((Y,ee)=>({x:F*Math.sin(ee*K),y:F*Math.cos(ee*K)}))},[]),k=d.useCallback((O,F,K)=>K==="pre"?`${F}${O}`:`${O}${F}`,[]),T=d.useCallback((O,F,K)=>{const Y=Math.PI*2/O.length,ee=new Array(O.length).fill({x:0,y:0,data:null}),ne=new Array(O.length+1).fill("").reduce((te,J,oe)=>{if(oe>O.length)return te;const X=F(K(O[oe-1]))*Math.sin(oe*Y),Q=F(K(O[oe-1]))*Math.cos(oe*Y);return ee[oe-1]={x:X,y:Q,data:O[oe-1]},`${te}${X},${Q} `});return{points:ee,pointString:ne}},[]),M=d.useMemo(()=>new Pn({x:0,y:0}),[]),P=d.useCallback(O=>Math.round(O)===0?"middle":O>0?"start":"end",[]),L=d.useCallback((O,F)=>{const K=("clientX"in O?O.clientX:0)-b.left,Y=("clientY"in O?O.clientY:0)-b.top;K&&Y&&y({tooltipLeft:K,tooltipTop:Y,tooltipData:F})},[y,b]),W=d.useCallback(()=>{w()},[w]),U=d.useMemo(()=>e-yl.left-yl.right,[e]),B=d.useMemo(()=>t-yl.top-yl.bottom,[t]),E=d.useMemo(()=>Math.min(U,B)/2,[U,B]),_=u.length?u.reduce((O,F)=>{const K=F.data.filter(Y=>Y);return Math.max(O,...K)},-1/0):0,H=Mo({range:[0,E],domain:l??[0,_]}),z=$(f.length,E),N=O=>T(O,F=>H(F)??0,F=>F);return c.jsxs("div",{className:"rabbit-ds flex flex-col bg-white",style:{width:e,height:t},ref:h,children:[c.jsxs("svg",{width:e,height:t,ref:A,pointerEvents:"all",onMouseLeave:W,children:[c.jsx("rect",{fill:"transparent",width:e,height:t,rx:14}),c.jsxs(hn,{top:t/2,left:e/2,children:[[...new Array(n)].map((O,F)=>c.jsx(P5,{x:e/2,y:t/2,fill:"none",stroke:"#CFD7DF",strokeWidth:1,strokeDasharray:4,r:E*(F+1)/n},`web1-${Math.random()}`)),f.map((O,F)=>c.jsxs(c.Fragment,{children:[c.jsx(ef,{from:M,to:z[F],stroke:f.length===1?Ye(0).dark:"#CFD7DF",strokeWidth:1},`radar-line-${Math.random()}`),c.jsx(ha,{x:z[F].x,y:z[F].y,textAnchor:P(z[F].x),verticalAnchor:P(z[F].y),dx:e8[P(z[F].x)],dy:e8[P(z[F].y)],fontSize:10,fill:"#666666",width:a??100,children:`${s?k(f[(F+f.length-1)%f.length],s.symbol,s.position):f[(F+f.length-1)%f.length]}`})]})),u.map((O,F)=>c.jsx("polygon",{points:N(O.data).pointString,fill:Ye(F).light,fillOpacity:.2,stroke:Ye(F).dark,strokeWidth:1},`polypath-${Math.random()}`)),u.map((O,F)=>N(O.data).points.map((K,Y)=>c.jsx(P5,{cx:K.x,cy:K.y,r:5,fill:"transparent",onMouseMove:ee=>{var ne;return L(ee,{yAxisLabel:((ne=r.find(te=>te.id===O.id))==null?void 0:ne.name)??"",xAxisValue:f[Y],yAxisValue:O.data[Y],xAxisLabel:o??"Category",legendDarkColor:Ye(F).dark,legendLightColor:Ye(F).light})},onMouseOut:W},`radar-point-${Math.random()}`)))]})]}),x&&v&&c.jsx(C,{top:m,left:g,unstyled:!0,applyPositionStyle:!0,children:c.jsx(R4,{xAxisLabel:v.xAxisLabel??"",xValue:v.xAxisValue,yAxisLabel:v.yAxisLabel??"",yValue:v.yAxisValue,tooltipTitle:i,showSideBySide:!0,legendValue:v.yAxisLabel??"",legendDarkColor:v.legendDarkColor,legendLightColor:v.legendLightColor})},Math.random())]})});t8.displayName="RadarChartBase";const n8=d.forwardRef((e,t)=>c.jsx(Rn,{debounceTime:10,children:({width:n,height:r})=>c.jsx(t8,{ref:t,width:n,height:r,...e})}));n8.displayName="RadarChart";const qz=n8;function r8({xValue:e,yValue:t,tooltipTitle:n,xAxisLabel:r,yAxisLabel:o,showSideBySide:a,legendValue:i,legendDarkColor:s,legendLightColor:l}){const u=e==null?void 0:e.toString(),f=t==null?void 0:t.toString();return c.jsxs(ke,{tooltipTitle:n,showSideBySide:a,children:[c.jsx(ke.Item,{label:r,value:u}),c.jsx(ke.Item,{label:o,value:f}),c.jsx(ke.Legend,{value:i,darkColor:s,lightColor:l})]})}r8.defaultProps={xValue:void 0,yValue:void 0};const Kz=({x:e,y:t,datum:n})=>c.jsx(so,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.dark,r:5,style:{zIndex:1500}}),Qz=({tickData:e,xAxisCharLimit:t})=>{var a;const n=d.useContext(bt),r=(a=n==null?void 0:n.xScale)==null?void 0:a.bandwidth(),o=Math.floor(r/5);return c.jsx(Xa,{textLabel:e.formattedValue||"",x:e.x,y:e.y,textStyles:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle",angle:r&&r<25?-45:0},axisCharLimit:t??o})},o8={xAccessor:e=>e.x,yAccessor:e=>e.y},a8=(e,t,n)=>n==="pre"?`${t}${e}`:`${e}${t}`,i8=10,Zz=5,d0=d.forwardRef(({nodes:e,height:t,width:n,xAxisValues:r,series:o,xAxisLabel:a,yAxisLabel:i,xAxisDomain:s,yAxisDomain:l,xAxisUnitSymbol:u,yAxisUnitSymbol:f,tooltipTitle:p,mode:h,xAxisCharLimit:v,maxNodesInMiniMode:g=Zz,tooltipStackCharLimit:m=i8,seriesSelectorTitle:x,preselectedNodes:y},w)=>{const[b,A]=d.useState(()=>(y&&y<=e.length?e.slice(0,y):e).map(M=>M.id)),C=d.useRef(null);In(C,w,`${a}-${i}-StackedBarChart`);const $=d.useMemo(()=>o.map((T,M)=>{const P=e.find(L=>L.id===T.id);return{points:T.data.map((L,W)=>({x:r[W],y:Number(L),nodeId:T.id,color:(P==null?void 0:P.color)??Ye(M)}))}}).slice(0,h==="mini"?g:o.length),[o,h,g,e,r]),k=d.useMemo(()=>h==="full"?$.filter(T=>b.includes(T.points[0].nodeId)):$,[$,b,h]);return c.jsxs("div",{ref:C,id:"line-chart",className:"rabbit-ds flex flex-col bg-white",style:{width:n,height:t},children:[c.jsxs("div",{className:"flex h-full min-h-0 w-full min-w-0 flex-row",children:[c.jsx("div",{className:"h-full min-h-0 w-full min-w-0",children:c.jsxs(cr,{margin:{top:10,left:70,right:50,bottom:50},xScale:{type:"band",nice:!0,padding:.5,...s&&{domain:s}},yScale:{type:"linear",nice:!0,...l&&{domain:l}},children:[c.jsx(U5,{columns:!1,numTicks:6,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),c.jsx($o,{hideTicks:!0,orientation:"bottom",stroke:"#CFD7DF",strokeWidth:1,numTicks:30,tickFormat:T=>u?a8(T,u.symbol,u.position):T,rangePadding:{end:10},tickComponent:T=>c.jsx(Qz,{tickData:T,xAxisCharLimit:v}),label:`${a} ➔`,labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx($o,{hideTicks:!0,numTicks:6,strokeWidth:1,orientation:"left",stroke:"#CFD7DF",label:`${i} ➔`,tickFormat:T=>f?a8(Tn(T>=1e3?"~s":"")(T),f.symbol,f.position):Tn(T>=1e3?"~s":"")(T),tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666"},labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dx:-35,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx(bz,{children:k.map(T=>c.jsx(gz,{data:T.points,dataKey:T.points[0].nodeId,xAccessor:o8.xAccessor,yAccessor:o8.yAccessor,colorAccessor:M=>M.color.light,radiusTop:!0,radius:2},T.points[0].nodeId))}),c.jsx(ol,{showDatumGlyph:!0,scroll:!0,debounce:500,snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,detectBounds:!0,unstyled:!0,applyPositionStyle:!0,renderGlyph:Kz,renderTooltip:({tooltipData:T})=>{var L,W,U,B,E,_;const M=e.find(H=>{var z;return H.id===((z=T==null?void 0:T.nearestDatum)==null?void 0:z.datum.nodeId)}),P=((L=T==null?void 0:T.nearestDatum)==null?void 0:L.datum)&&((W=T==null?void 0:T.nearestDatum)==null?void 0:W.datum.x.length)<m;return c.jsx(r8,{xValue:(U=T==null?void 0:T.nearestDatum)==null?void 0:U.datum.x,yValue:(B=T==null?void 0:T.nearestDatum)==null?void 0:B.datum.y,xAxisLabel:a,yAxisLabel:i,showSideBySide:!!P,tooltipTitle:p,legendValue:(M==null?void 0:M.name)||"",legendDarkColor:((E=T==null?void 0:T.nearestDatum)==null?void 0:E.datum.color.dark)||Ye(0).dark,legendLightColor:((_=T==null?void 0:T.nearestDatum)==null?void 0:_.datum.color.light)||Ye(0).light})}})]})}),h==="full"&&c.jsxs("div",{className:"inline-flex w-64 shrink-0 grow-0 basis-auto flex-col items-start justify-start gap-0.5 rounded border border-solid border-[color:var(--Accent,#EBEFF3)] bg-[#FDFDFD] p-4 pr-0 text-xs",children:[c.jsxs("div",{className:"pb-1 text-xs font-semibold",children:[c.jsx("span",{className:"pr-1",children:x??a}),"(",k.length??0,"/",$.length,")"]}),c.jsx("div",{className:"inline-flex h-[95%] w-full shrink-0 grow-0 flex-col items-start justify-start gap-1 overflow-scroll pr-4",children:$.map(T=>{const M=e.find(P=>P.id===T.points[0].nodeId);return M&&c.jsxs("div",{className:"flex w-full items-center justify-between gap-1 py-1",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("div",{style:{backgroundColor:T.points[0].color.light,borderColor:T.points[0].color.dark},className:"mr-1 h-3 w-3 rounded-full border"}),M.name]}),c.jsx("div",{className:"flex items-center",children:c.jsx(ri,{checked:b.includes(M.id),onCheckedChange:P=>{let L=[...b];P?L=[...b,M.id]:L.splice(b.indexOf(M.id),1),A(L)}})})]},M.id)})})]})]}),h==="mini"&&c.jsx("div",{className:"flex flex-row flex-wrap justify-center gap-4 text-[10px] font-semibold text-font-secondary",children:$.map(T=>{const M=e.find(P=>P.id===T.points[0].nodeId);return c.jsxs("div",{className:"flex items-center justify-center gap-1",children:[c.jsx("div",{style:{backgroundColor:T.points[0].color.light,borderColor:T.points[0].color.dark},className:"h-3 w-3 rounded-full border"}),M==null?void 0:M.name]},M==null?void 0:M.id)})})]})}),Jz={xAxisUnitSymbol:void 0,yAxisUnitSymbol:void 0,mode:"mini",xAxisCharLimit:void 0,tooltipStackCharLimit:i8,xAxisDomain:void 0,yAxisDomain:void 0,connectNulls:!1};d0.defaultProps=Jz,d0.displayName="StackedBarChartBase";const s8=d.forwardRef((e,t)=>c.jsx(Rn,{debounceTime:10,children:({width:n,height:r})=>c.jsx(d0,{ref:t,width:n,height:r,...e})}));s8.displayName="StackedBarChart";const Rz=s8,eW=({nodes:e,selectedNodeIds:t,setSelectedNodeIds:n,seriesSelectorTitle:r})=>c.jsxs("div",{className:"rabbit-ds inline-flex w-64 shrink-0 grow-0 basis-auto flex-col items-start justify-start gap-0.5 rounded border border-solid border-[color:var(--Accent,#EBEFF3)] bg-[#FDFDFD] p-4 pr-0 text-xs",children:[c.jsxs("div",{className:"pb-1 text-xs font-semibold",children:[c.jsx("span",{className:"pr-1",children:r}),"(",t.length??0,"/",e.length,")"]}),c.jsx("div",{className:"inline-flex h-[95%] w-full shrink-0 grow-0 flex-col items-start justify-start gap-1 overflow-scroll pr-4",children:e.map(({id:o,name:a,color:i})=>c.jsxs("div",{className:"flex w-full items-center justify-between gap-1 py-1",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("div",{style:{backgroundColor:i.light,borderColor:i.dark},className:"mr-1 h-3 w-3 rounded-full border"}),a]}),c.jsx("div",{className:"flex items-center",children:c.jsx(ri,{checked:t.includes(o),onCheckedChange:s=>{let l=[...t];s?l=[...t,o]:l.splice(t.indexOf(o),1),n(l)}})})]},o))})]});function l8({xValue:e,yValue:t,tooltipTitle:n,xAxisLabel:r,yAxisLabel:o,showSideBySide:a,otherDataPoints:i=[],pointMetaData:s,seriesMetaData:l}){var p;const u=e==null?void 0:e.toString(),f=t==null?void 0:t.toString();return c.jsxs(ke,{tooltipTitle:n,showSideBySide:a,children:[c.jsx(ke.Header,{label:"Review Cycle",value:(p=s==null?void 0:s.reviewCycle)==null?void 0:p.name}),c.jsx(ke.Item,{label:r,value:u}),c.jsx(ke.Item,{label:o,value:f}),i.map(({label:h,value:v})=>c.jsx(ke.Item,{label:h,value:v},h)),c.jsx(ke.Footer,{nodeData:l})]})}l8.defaultProps={xValue:void 0,yValue:void 0};var tW=["id","markerWidth","markerHeight","markerUnits","children"];function f0(){return f0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f0.apply(this,arguments)}function nW(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function p0(e){var t=e.id,n=e.markerWidth,r=n===void 0?3:n,o=e.markerHeight,a=o===void 0?3:o,i=e.markerUnits,s=i===void 0?"userSpaceOnUse":i,l=e.children,u=nW(e,tW);return d.createElement("defs",null,d.createElement("marker",f0({id:t,markerWidth:r,markerHeight:a,markerUnits:s},u),l))}p0.propTypes={id:re.string.isRequired,size:re.number,markerWidth:re.oneOfType([re.string,re.number]),markerHeight:re.oneOfType([re.string,re.number]),markerUnits:re.string,refX:re.oneOfType([re.string,re.number]),refY:re.oneOfType([re.string,re.number]),strokeWidth:re.number,children:re.node.isRequired};var rW=["id","size","strokeWidth"];function h0(){return h0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h0.apply(this,arguments)}function oW(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function aW(e){var t=e.id,n=e.size,r=n===void 0?9:n,o=e.strokeWidth,a=o===void 0?1:o,i=oW(e,rW),s=r+a*2,l=r,u=s/2,f="0 0, "+r+" "+r/2+", 0 "+r;return d.createElement(p0,h0({id:t,markerWidth:s,markerHeight:s,refX:l,refY:u,orient:"auto",markerUnits:"strokeWidth",fill:"none",strokeWidth:a},i),d.createElement("g",{transform:"translate("+a+", "+a+")"},d.createElement("polyline",{points:f})))}var iW=["id","size","strokeWidth"];function g0(){return g0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g0.apply(this,arguments)}function sW(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function lW(e){var t=e.id,n=e.size,r=n===void 0?9:n,o=e.strokeWidth,a=o===void 0?1:o,i=sW(e,iW),s=r*2,l=s+a,u=l/2;return d.createElement(p0,g0({id:t,markerWidth:l,markerHeight:l,refX:0,refY:u,orient:"auto-start-reverse",markerUnits:"strokeWidth",strokeWidth:a},i),d.createElement("circle",{r,cx:u,cy:u}))}function cW({data:e,xAccessor:t,yAccessor:n,connectNulls:r=!1}){const o=d.useContext(bt),a=r?e.filter(i=>i.y!==null):e;return a.length===0?null:c.jsxs(c.Fragment,{children:[c.jsx(lW,{id:"marker-circle",stroke:"#666",size:6,refX:7,fill:"transparent",strokeWidth:2}),c.jsx(aW,{id:"marker-arrow",stroke:"#666",size:14,strokeWidth:2,markerUnits:"userSpaceOnUse"}),c.jsx($5,{data:a,stroke:a[0].color.dark,strokeWidth:1,x:i=>{var s;return((s=o==null?void 0:o.xScale)==null?void 0:s.call(o,t(i)))??0},y:i=>{var s;return((s=o==null?void 0:o.yScale)==null?void 0:s.call(o,n(i)))??0},curve:sa,shapeRendering:"geometricPrecision",markerStart:"url(#marker-circle)",markerEnd:"url(#marker-arrow)"})]})}const uW=({x:e,y:t,datum:n,size:r})=>c.jsx(so,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.light,r:r/2}),dW=({x:e,y:t,datum:n})=>c.jsx(so,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.dark,r:5,style:{zIndex:1500}}),wl={xAccessor:e=>e==null?void 0:e.x,yAccessor:e=>e==null?void 0:e.y},c8=(e,t,n)=>n==="pre"?`${t}${e}`:`${e}${t}`,fW=10,pW=5,u8=d.forwardRef(({rowsCount:e=3,nodes:t,height:n,width:r,xAxisLabel:o,yAxisLabel:a,xAxisDomain:i,yAxisDomain:s,xAxisUnitSymbol:l,yAxisUnitSymbol:u,tooltipTitle:f,mode:p="mini",xAxisCharLimit:h,connectNulls:v=!1,maxNodesInMiniMode:g=pW,tooltipStackCharLimit:m=fW,withBackground:x=!0},y)=>{const w=d.useRef(null),b=e===1;In(w,y,`${o}-${a}-DirectedLineChart`);const A=d.useMemo(()=>t.map(({seriesMetaData:P},L)=>{const{employee:W}=P;return{id:W.id,name:W.name,color:Ye(L)}}).slice(0,p==="mini"?g:t.length),[t,p,g]),[C,$]=d.useState(()=>A.filter((P,L)=>p==="full"||L<g).map(P=>P.id)),k=d.useMemo(()=>t.map((P,L)=>({nodeId:P.seriesMetaData.employee.id,points:P.xValues.map((W,U)=>{var E;let B=null;return b?B=1/t.length*(L+1)+1/(t.length*10)*(U+1):B=((E=P==null?void 0:P.yValues)==null?void 0:E[U])??null,{x:P.xValues[U],y:B,pointMetaData:P.pointsMetaData[U],nodeId:P.seriesMetaData.employee.id,color:Ye(L)}})})).slice(0,p==="mini"?g:t.length),[t,p,g,b]),T=d.useMemo(()=>p==="full"?k.filter(({nodeId:P})=>C.includes(P)):k,[k,p,C]),M=d.useMemo(()=>Math.floor((r-(p==="mini"?0:150))/(t[0].xValues.length*8)),[r,p,t]);return c.jsx("div",{ref:w,id:"directed-line-chart",className:le("rabbit-ds flex flex-col ",x?"bg-[white]":""),style:{width:r,height:n},children:c.jsxs("div",{className:"flex h-full min-h-0 w-full min-w-0 flex-row",children:[c.jsx("div",{className:"h-full min-h-0 w-full min-w-0",children:c.jsxs(cr,{margin:{top:10,left:50,right:50,bottom:50},xScale:typeof i[0]=="string"?{type:"band",domain:i,padding:1}:{type:"linear",domain:i},yScale:typeof s[0]=="string"?{type:"band",domain:s,padding:1}:{type:"linear",domain:s},children:[c.jsx($o,{hideTicks:!0,orientation:"bottom",stroke:"#CFD7DF",strokeWidth:1,numTicks:6,tickFormat:P=>l?c8(P,l.symbol,l.position):P,tickComponent:P=>c.jsx(Xa,{textLabel:P.formattedValue||"",x:P.x,y:P.y,textStyles:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle"},axisCharLimit:h??M}),label:`${o} ➔`,labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx($o,{hideTicks:!0,numTicks:b?0:6,strokeWidth:b?0:1,orientation:"left",stroke:"#CFD7DF",label:a?`${a} ➔`:"",tickFormat:P=>u?c8(P,u.symbol,u.position):P,tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666"},labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dx:-20,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),T.map((P,L)=>c.jsxs(c.Fragment,{children:[c.jsx(cW,{data:P.points,xAccessor:wl.xAccessor,yAccessor:wl.yAccessor,connectNulls:v}),c.jsx(k4,{dataKey:`Performance Management ${L}`,data:P.points,size:8,renderGlyph:uW,xAccessor:wl.xAccessor,yAccessor:wl.yAccessor})]})),c.jsx(ol,{showDatumGlyph:!0,scroll:!0,showVerticalCrosshair:!0,showHorizontalCrosshair:!0,debounce:500,snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,detectBounds:!0,unstyled:!0,applyPositionStyle:!0,renderGlyph:dW,renderTooltip:({tooltipData:P})=>{var U,B,E,_,H,z,N,O,F;const L=t.find(K=>{var Y;return K.id===((Y=P==null?void 0:P.nearestDatum)==null?void 0:Y.datum.nodeId)}),W=((U=P==null?void 0:P.nearestDatum)==null?void 0:U.datum)&&String((B=P==null?void 0:P.nearestDatum)==null?void 0:B.datum.x).length<m;return c.jsx(l8,{xValue:(E=P==null?void 0:P.nearestDatum)==null?void 0:E.datum.x,yValue:(_=P==null?void 0:P.nearestDatum)==null?void 0:_.datum.y,xAxisLabel:o,yAxisLabel:a,showSideBySide:!!W,tooltipTitle:f,otherDataPoints:((N=(z=(H=P==null?void 0:P.nearestDatum)==null?void 0:H.datum)==null?void 0:z.pointMetaData)==null?void 0:N.otherDataPoints)??[],seriesMetaData:L==null?void 0:L.seriesMetaData,pointMetaData:(F=(O=P==null?void 0:P.nearestDatum)==null?void 0:O.datum)==null?void 0:F.pointMetaData})}})]})}),p==="full"&&c.jsx(eW,{nodes:A,seriesSelectorTitle:"Team members",selectedNodeIds:C,setSelectedNodeIds:$})]})})});u8.displayName="LineBase";const d8=d.forwardRef((e,t)=>c.jsx(Rn,{debounceTime:10,children:({width:n,height:r})=>c.jsx(u8,{ref:t,width:n,height:r,...e})}));d8.displayName="DirectedLineChart";const f8=d8,hW=[{"#FFEFD4":"#AF5C20"},{"#DBF2D3":"#44812F"},{"#BFE8C6":"#1A5724"},{"#FFE7C5":"#8C6A00"},{"#FAD4D4":"#C62C02"},{"#EAEAEA":"#333333"},{"#E6F1FD":"#1565BC"},{"#FFE1D9":"#C62C02"}];function gW({box:e,showCountData:t=!1}){function n(r){if(!r)return"#333";const o=hW.find(a=>a[r]);return o?o[r]:r}return c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs("div",{className:"flex shrink grow basis-0 flex-col items-start ",children:[c.jsx("div",{className:"flex items-start gap-2.5",children:c.jsxs("span",{className:"text-3xs",style:{color:n(n(e==null?void 0:e.color))},children:[" ",e==null?void 0:e.label]})}),t&&c.jsxs("span",{className:" text-3xs text-stone-500",children:[e==null?void 0:e.count," Member",Jb(e==null?void 0:e.count)]})]}),t&&c.jsx("div",{className:"flex items-start ",children:c.jsx("div",{className:"flex items-center justify-center rounded-3xl bg-neutral-50/40 px-0.5",children:c.jsxs("span",{className:" text-2xs leading-4 text-stone-500",children:[e==null?void 0:e.percentage,"%"]})})})]})}const vW=({rows:e,columns:t,boxData:n=[]})=>{let r="";return!n||(n==null?void 0:n.length)===0||(r=n.slice(0,t).reduce((a,i)=>{var f,p,h,v;const s=e===1?"OVERALL":"PERFORMANCE",l=((p=(f=i==null?void 0:i.scoreRange)==null?void 0:f[s])==null?void 0:p.maxScore)??0,u=((v=(h=i==null?void 0:i.scoreRange)==null?void 0:h[s])==null?void 0:v.minScore)??0;return`${a} minmax(20px, ${l-u}fr)`},"")),r},mW=({rows:e,columns:t,boxData:n=[]})=>{if(e===1)return"1fr";let r="";return!n||(n==null?void 0:n.length)===0||(r=n.filter((a,i)=>i%t===0).reduce((a,i)=>{var f,p,h,v;const s="POTENTIAL",l=((p=(f=i==null?void 0:i.scoreRange)==null?void 0:f[s])==null?void 0:p.maxScore)??0,u=((v=(h=i==null?void 0:i.scoreRange)==null?void 0:h[s])==null?void 0:v.minScore)??0;return`${a} minmax(20px, ${l-u}fr)`},"")),r},p8=d.forwardRef(({rows:e=3,columns:t=3,spacing:n="1px",boxData:r=[],position:o="relative",margin:a="0",width:i="100%",left:s=0,top:l=0,mode:u="mini",showCountData:f=!1},p)=>{const h=d.useRef(null);return In(h,p,"GridChart"),c.jsxs("div",{ref:h,className:"flex flex-row",style:{position:o,top:l,left:s,width:i,margin:a,height:"100%"},children:[c.jsx("div",{style:{flexGrow:1,display:"grid",gridTemplateRows:mW({rows:e,columns:t,boxData:r}),gridTemplateColumns:vW({rows:e,columns:t,boxData:r}),gap:n,height:"100%"},children:r==null?void 0:r.map((v,g)=>c.jsx("div",{style:{padding:"8px",backgroundColor:(v==null?void 0:v.color)??"#CFD7DF"},children:c.jsx(gW,{box:v,showCountData:f})},v.label+v.color+g))}),u==="full"&&c.jsx("div",{className:"inline-flex w-64 shrink-0 grow-0"})]})});p8.displayName="GridChart";const h8=p8,g8=d.forwardRef(({directedLineChartProps:e,gridChartProps:t,mode:n="mini"},r)=>{const o=d.useRef(null);return In(o,r,`${e.xAxisLabel}-${e.yAxisLabel}-GridDirectedLineChart`),c.jsxs("div",{ref:o,className:"relative h-full w-full",children:[c.jsx("div",{className:"absolute mx-[50px] mb-[50px] mt-[10px] h-[calc(100%-60px)] w-[calc(100%-100px)]",children:c.jsx(h8,{...t,mode:n})}),c.jsxs("div",{className:"absolute h-full w-full",children:[c.jsx(f8,{...e,mode:n}),c.jsx("div",{})]})]})});g8.displayName="GridDirectedLineChart";const bW=g8,xl="ToggleGroup",[v8,AU]=nt(xl,[eo]),m8=eo(),yW=d.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return d.createElement(wW,q({},o,{ref:t}))}if(n==="multiple"){const o=r;return d.createElement(xW,q({},o,{ref:t}))}throw new Error(`Missing prop \`type\` expected on \`${xl}\``)}),[b8,y8]=v8(xl),wW=d.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,s]=ut({prop:n,defaultProp:r,onChange:o});return d.createElement(b8,{scope:e.__scopeToggleGroup,type:"single",value:i?[i]:[],onItemActivate:s,onItemDeactivate:d.useCallback(()=>s(""),[s])},d.createElement(w8,q({},a,{ref:t})))}),xW=d.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i=[],s]=ut({prop:n,defaultProp:r,onChange:o}),l=d.useCallback(f=>s((p=[])=>[...p,f]),[s]),u=d.useCallback(f=>s((p=[])=>p.filter(h=>h!==f)),[s]);return d.createElement(b8,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:l,onItemDeactivate:u},d.createElement(w8,q({},a,{ref:t})))}),[CW,AW]=v8(xl),w8=d.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...l}=e,u=m8(n),f=jn(i),p={role:"group",dir:f,...l};return d.createElement(CW,{scope:n,rovingFocus:o,disabled:r},o?d.createElement(Fc,q({asChild:!0},u,{orientation:a,dir:f,loop:s}),d.createElement(me.div,q({},p,{ref:t}))):d.createElement(me.div,q({},p,{ref:t})))}),v0="ToggleGroupItem",SW=d.forwardRef((e,t)=>{const n=y8(v0,e.__scopeToggleGroup),r=AW(v0,e.__scopeToggleGroup),o=m8(e.__scopeToggleGroup),a=n.value.includes(e.value),i=r.disabled||e.disabled,s={...e,pressed:a,disabled:i},l=d.useRef(null);return r.rovingFocus?d.createElement(_c,q({asChild:!0},o,{focusable:!i,active:a,ref:l}),d.createElement(x8,q({},s,{ref:t}))):d.createElement(x8,q({},s,{ref:t}))}),x8=d.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=y8(v0,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return d.createElement(i1,q({},s,o,{ref:t,onPressedChange:l=>{l?a.onItemActivate(r):a.onItemDeactivate(r)}}))}),EW=yW,MW=SW;function $W({children:e,...t}){return c.jsx(EW,{className:"flex gap-2",...t,children:e})}function TW({value:e,disabled:t,selected:n,icon:r,label:o,count:a,...i}){return c.jsx(MW,{asChild:!0,value:e,...i,children:c.jsx("button",{"data-deer-btn":!0,type:"button",className:le("rabbit-ds h-7 flex-col w-auto p-0 border border-solid rounded-full justify-center items-center inline-flex hover:cursor-pointer","data-[state=off]:border-gray-100 data-[state=off]:bg-gray-100 data-[state=off]:text-font-secondary","data-[state=on]:border-primary-hover data-[state=on]:bg-primary/10 data-[state=on]:text-primary-hover","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2"),children:c.jsxs("div",{className:"flex flex-row items-center justify-center gap-1 rounded-full px-4 py-1",children:[r?c.jsx(Te,{IconSVG:r,size:"small"}):null,c.jsxs("div",{className:"text-sm font-semibold",children:[o?c.jsx("span",{children:o}):null," ",a?c.jsxs("span",{children:["(",a,")"]}):null]})]})})})}const qa="NavigationMenu",[m0,PW,kW]=mr(qa),[b0,OW,NW]=mr(qa),[y0,SU]=nt(qa,[kW,NW]),[DW,Br]=y0(qa),[FW,EU]=y0(qa),_W=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:a,delayDuration:i=200,skipDelayDuration:s=300,orientation:l="horizontal",dir:u,...f}=e,[p,h]=d.useState(null),v=Se(t,M=>h(M)),g=jn(u),m=d.useRef(0),x=d.useRef(0),y=d.useRef(0),[w,b]=d.useState(!0),[A="",C]=ut({prop:r,onChange:M=>{const P=M!=="",L=s>0;P?(window.clearTimeout(y.current),L&&b(!1)):(window.clearTimeout(y.current),y.current=window.setTimeout(()=>b(!0),s)),o==null||o(M)},defaultProp:a}),$=d.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>C(""),150)},[C]),k=d.useCallback(M=>{window.clearTimeout(x.current),C(M)},[C]),T=d.useCallback(M=>{A===M?window.clearTimeout(x.current):m.current=window.setTimeout(()=>{window.clearTimeout(x.current),C(M)},i)},[A,C,i]);return d.useEffect(()=>()=>{window.clearTimeout(m.current),window.clearTimeout(x.current),window.clearTimeout(y.current)},[]),d.createElement(IW,{scope:n,isRootMenu:!0,value:A,dir:g,orientation:l,rootNavigationMenu:p,onTriggerEnter:M=>{window.clearTimeout(m.current),w?T(M):k(M)},onTriggerLeave:()=>{window.clearTimeout(m.current),$()},onContentEnter:()=>window.clearTimeout(x.current),onContentLeave:$,onItemSelect:M=>{C(P=>P===M?"":M)},onItemDismiss:()=>C("")},d.createElement(me.nav,q({"aria-label":"Main","data-orientation":l,dir:g},f,{ref:v})))}),IW=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:a,children:i,value:s,onItemSelect:l,onItemDismiss:u,onTriggerEnter:f,onTriggerLeave:p,onContentEnter:h,onContentLeave:v}=e,[g,m]=d.useState(null),[x,y]=d.useState(new Map),[w,b]=d.useState(null);return d.createElement(DW,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:s,previousValue:Ja(s),baseId:dt(),dir:o,orientation:a,viewport:g,onViewportChange:m,indicatorTrack:w,onIndicatorTrackChange:b,onTriggerEnter:Je(f),onTriggerLeave:Je(p),onContentEnter:Je(h),onContentLeave:Je(v),onItemSelect:Je(l),onItemDismiss:Je(u),onViewportContentChange:d.useCallback((A,C)=>{y($=>($.set(A,C),new Map($)))},[]),onViewportContentRemove:d.useCallback(A=>{y(C=>C.has(A)?(C.delete(A),new Map(C)):C)},[])},d.createElement(m0.Provider,{scope:t},d.createElement(FW,{scope:t,items:x},i)))},LW="NavigationMenuList",BW=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Br(LW,n),a=d.createElement(me.ul,q({"data-orientation":o.orientation},r,{ref:t}));return d.createElement(me.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange},d.createElement(m0.Slot,{scope:n},o.isRootMenu?d.createElement(E8,{asChild:!0},a):a))}),zW="NavigationMenuItem",[WW,C8]=y0(zW),jW=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,a=dt(),i=r||a||"LEGACY_REACT_AUTO_VALUE",s=d.useRef(null),l=d.useRef(null),u=d.useRef(null),f=d.useRef(()=>{}),p=d.useRef(!1),h=d.useCallback((g="start")=>{if(s.current){f.current();const m=w0(s.current);m.length&&x0(g==="start"?m:m.reverse())}},[]),v=d.useCallback(()=>{if(s.current){const g=w0(s.current);g.length&&(f.current=KW(g))}},[]);return d.createElement(WW,{scope:n,value:i,triggerRef:l,contentRef:s,focusProxyRef:u,wasEscapeCloseRef:p,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:v,onContentFocusOutside:v},d.createElement(me.li,q({},o,{ref:t})))}),A8="NavigationMenuTrigger",VW=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,a=Br(A8,e.__scopeNavigationMenu),i=C8(A8,e.__scopeNavigationMenu),s=d.useRef(null),l=Se(s,i.triggerRef,t),u=P8(a.baseId,i.value),f=k8(a.baseId,i.value),p=d.useRef(!1),h=d.useRef(!1),v=i.value===a.value;return d.createElement(d.Fragment,null,d.createElement(m0.ItemSlot,{scope:n,value:i.value},d.createElement($8,{asChild:!0},d.createElement(me.button,q({id:u,disabled:r,"data-disabled":r?"":void 0,"data-state":T8(v),"aria-expanded":v,"aria-controls":f},o,{ref:l,onPointerEnter:de(e.onPointerEnter,()=>{h.current=!1,i.wasEscapeCloseRef.current=!1}),onPointerMove:de(e.onPointerMove,C0(()=>{r||h.current||i.wasEscapeCloseRef.current||p.current||(a.onTriggerEnter(i.value),p.current=!0)})),onPointerLeave:de(e.onPointerLeave,C0(()=>{r||(a.onTriggerLeave(),p.current=!1)})),onClick:de(e.onClick,()=>{a.onItemSelect(i.value),h.current=v}),onKeyDown:de(e.onKeyDown,g=>{const x={horizontal:"ArrowDown",vertical:a.dir==="rtl"?"ArrowLeft":"ArrowRight"}[a.orientation];v&&g.key===x&&(i.onEntryKeyDown(),g.preventDefault())})})))),v&&d.createElement(d.Fragment,null,d.createElement(f2,{"aria-hidden":!0,tabIndex:0,ref:i.focusProxyRef,onFocus:g=>{const m=i.contentRef.current,x=g.relatedTarget,y=x===s.current,w=m==null?void 0:m.contains(x);(y||!w)&&i.onFocusProxyEnter(y?"start":"end")}}),a.viewport&&d.createElement("span",{"aria-owns":f})))}),S8="navigationMenu.linkSelect",UW=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...a}=e;return d.createElement($8,{asChild:!0},d.createElement(me.a,q({"data-active":r?"":void 0,"aria-current":r?"page":void 0},a,{ref:t,onClick:de(e.onClick,i=>{const s=i.target,l=new CustomEvent(S8,{bubbles:!0,cancelable:!0});if(s.addEventListener(S8,u=>o==null?void 0:o(u),{once:!0}),ei(s,l),!l.defaultPrevented&&!i.metaKey){const u=new CustomEvent(Al,{bubbles:!0,cancelable:!0});ei(s,u)}},{checkForDefaultPrevented:!1})})))}),Cl="NavigationMenuContent",HW=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Br(Cl,e.__scopeNavigationMenu),a=C8(Cl,e.__scopeNavigationMenu),i=Se(a.contentRef,t),s=a.value===o.value,l={value:a.value,triggerRef:a.triggerRef,focusProxyRef:a.focusProxyRef,wasEscapeCloseRef:a.wasEscapeCloseRef,onContentFocusOutside:a.onContentFocusOutside,onRootContentClose:a.onRootContentClose,...r};return o.viewport?d.createElement(GW,q({forceMount:n},l,{ref:i})):d.createElement(Pt,{present:n||s},d.createElement(YW,q({"data-state":T8(s)},l,{ref:i,onPointerEnter:de(e.onPointerEnter,o.onContentEnter),onPointerLeave:de(e.onPointerLeave,C0(o.onContentLeave)),style:{pointerEvents:!s&&o.isRootMenu?"none":void 0,...l.style}})))}),GW=d.forwardRef((e,t)=>{const n=Br(Cl,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return ht(()=>{r(e.value,{ref:t,...e})},[e,t,r]),ht(()=>()=>o(e.value),[e.value,o]),null}),Al="navigationMenu.rootContentDismiss",YW=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:a,wasEscapeCloseRef:i,onRootContentClose:s,onContentFocusOutside:l,...u}=e,f=Br(Cl,n),p=d.useRef(null),h=Se(p,t),v=P8(f.baseId,r),g=k8(f.baseId,r),m=PW(n),x=d.useRef(null),{onItemDismiss:y}=f;d.useEffect(()=>{const b=p.current;if(f.isRootMenu&&b){const A=()=>{var C;y(),s(),b.contains(document.activeElement)&&((C=o.current)===null||C===void 0||C.focus())};return b.addEventListener(Al,A),()=>b.removeEventListener(Al,A)}},[f.isRootMenu,e.value,o,y,s]);const w=d.useMemo(()=>{const A=m().map(P=>P.value);f.dir==="rtl"&&A.reverse();const C=A.indexOf(f.value),$=A.indexOf(f.previousValue),k=r===f.value,T=$===A.indexOf(r);if(!k&&!T)return x.current;const M=(()=>{if(C!==$){if(k&&$!==-1)return C>$?"from-end":"from-start";if(T&&C!==-1)return C>$?"to-start":"to-end"}return null})();return x.current=M,M},[f.previousValue,f.value,f.dir,m,r]);return d.createElement(E8,{asChild:!0},d.createElement(jo,q({id:g,"aria-labelledby":v,"data-motion":w,"data-orientation":f.orientation},u,{ref:h,onDismiss:()=>{var b;const A=new Event(Al,{bubbles:!0,cancelable:!0});(b=p.current)===null||b===void 0||b.dispatchEvent(A)},onFocusOutside:de(e.onFocusOutside,b=>{var A;l();const C=b.target;(A=f.rootNavigationMenu)!==null&&A!==void 0&&A.contains(C)&&b.preventDefault()}),onPointerDownOutside:de(e.onPointerDownOutside,b=>{var A;const C=b.target,$=m().some(T=>{var M;return(M=T.ref.current)===null||M===void 0?void 0:M.contains(C)}),k=f.isRootMenu&&((A=f.viewport)===null||A===void 0?void 0:A.contains(C));($||k||!f.isRootMenu)&&b.preventDefault()}),onKeyDown:de(e.onKeyDown,b=>{const A=b.altKey||b.ctrlKey||b.metaKey;if(b.key==="Tab"&&!A){const k=w0(b.currentTarget),T=document.activeElement,M=k.findIndex(W=>W===T),L=b.shiftKey?k.slice(0,M).reverse():k.slice(M+1,k.length);if(x0(L))b.preventDefault();else{var $;($=a.current)===null||$===void 0||$.focus()}}}),onEscapeKeyDown:de(e.onEscapeKeyDown,b=>{i.current=!0})})))}),XW="FocusGroup",E8=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Br(XW,n);return d.createElement(b0.Provider,{scope:n},d.createElement(b0.Slot,{scope:n},d.createElement(me.div,q({dir:o.dir},r,{ref:t}))))}),M8=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],qW="FocusGroupItem",$8=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=OW(n),a=Br(qW,n);return d.createElement(b0.ItemSlot,{scope:n},d.createElement(me.button,q({},r,{ref:t,onKeyDown:de(e.onKeyDown,i=>{if(["Home","End",...M8].includes(i.key)){let l=o().map(p=>p.ref.current);if([a.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(i.key)&&l.reverse(),M8.includes(i.key)){const p=l.indexOf(i.currentTarget);l=l.slice(p+1)}setTimeout(()=>x0(l)),i.preventDefault()}})})))});function w0(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function x0(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function KW(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function T8(e){return e?"open":"closed"}function P8(e,t){return`${e}-trigger-${t}`}function k8(e,t){return`${e}-content-${t}`}function C0(e){return t=>t.pointerType==="mouse"?e(t):void 0}const QW=_W,ZW=BW,JW=jW,RW=VW,O8=UW,ej=HW,tj=Ue(["rabbit-ds h-full w-full px-3 py-2 [&>*:first-child]:h-full"],{variants:{variant:{default:""},defaultVariant:{variant:"default"}}});function nj(){return c.jsx("div",{className:"relative h-full w-full",children:c.jsxs("div",{className:"absolute left-0 top-0 h-full w-full bg-gradient-to-b from-[#E9F5F8] via-[#F7F7F7] to-[#A1E7FC] shadow-[-4px_0px_4px_0px_rgba(0,0,0.05)_inset]",children:[c.jsx("div",{className:"absolute inset-0 h-full w-full",style:{background:"linear-gradient(180deg, rgba(231, 244, 247, 0.80) 0%, rgba(185, 239, 254, 0.80) 40%, rgba(136, 226, 252, 0.80) 100%)",boxShadow:"-2px 0px 4px rgba(0, 0, 0, 0.05) inset"}}),c.jsx("div",{className:"absolute inset-0 h-full w-full mix-blend-darken",style:{background:"linear-gradient(180deg, #DEEAED 0%, #F6F6F6 40%, #F5F7F7 100%)",boxShadow:"-2px 0px 4px rgba(0, 0, 0, 0.05) inset"}}),c.jsx("div",{className:"absolute inset-0 h-full w-full mix-blend-hard-light",style:{background:"linear-gradient(180deg, #DEEAED 0%, #F6F6F6 40%, #F5F7F7 100%)",boxShadow:"-4px 0px 4px rgba(0, 0, 0, 0.05) inset"}}),c.jsx("div",{className:"absolute inset-0 h-full w-full opacity-60 mix-blend-multiply",style:{background:"linear-gradient(89deg, #A0E7FC 0%, #A4E8FC 19%, #F5F7F7 100%)",boxShadow:"-4px 0px 4px rgba(0, 0, 0, 0.05) inset"}}),c.jsx("div",{className:"absolute inset-0 h-full w-full opacity-90 mix-blend-darken",style:{background:"linear-gradient(180deg, #AAE9FC 0%, #D7F1F8 40%, #F4FDFF 100%)",backdropFilter:"blur(4px)"}}),c.jsx("div",{className:"absolute inset-0 h-full w-full mix-blend-hard-light",style:{background:"linear-gradient(87deg, rgba(233, 245, 248, 0.60) 0%, rgba(247, 247, 247, 0.60) 19%, rgba(247, 247, 247, 0.60) 38%, rgba(161, 231, 252, 0.60) 100%)",boxShadow:"-4px 0px 4px rgba(0, 0, 0, 0.05) inset"}})]})})}const N8=d.forwardRef(({className:e,children:t,...n},r)=>c.jsxs("div",{className:"rabbit-ds relative h-screen w-20",children:[c.jsx("div",{className:"absolute h-full w-full",children:c.jsx(nj,{})}),c.jsx(QW,{className:le(tj({className:e})),orientation:"vertical",ref:r,...n,children:c.jsx(ZW,{className:"m-0 flex h-full flex-col p-0",children:t})})]}));N8.displayName="LeftNav";const A0=d.forwardRef(({children:e,asChild:t=!1,...n},r)=>{const o=t?ln:"div";return c.jsx(JW,{asChild:!0,children:c.jsx(o,{ref:r,className:"rabbit-ds",...n,children:e})})});A0.displayName="LeftNavItem",A0.defaultProps={asChild:!1};const rj=Ue(["inline-flex w-full flex-col items-center justify-start gap-1"],{variants:{variant:{top:"order-1 mb-auto",bottom:"order-2 mt-auto"},defaultVariant:{variant:"top"}}}),D8=d.forwardRef(({children:e,align:t,...n},r)=>c.jsx("div",{ref:r,className:le(rj({variant:t})),...n,children:e}));D8.displayName="LeftNavItem";const F8=d.forwardRef((e,t)=>c.jsx(O8,{ref:t,...e,className:"rabbit-ds z-20 flex size-14 h-14 w-14 cursor-pointer items-center justify-center rounded border-none bg-transparent focus:text-primary-focus focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",children:c.jsxs("svg",{className:"z-20 h-6 w-6",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("g",{clipPath:"url(#clip0_1397_29183)",children:c.jsxs("g",{clipPath:"url(#clip1_1397_29183)",filter:"url(#filter0_d_1397_29183)",children:[c.jsx("path",{d:"M22.1654 14.8101C22.1654 15.8326 21.3386 16.6614 20.3187 16.6614C19.2988 16.6614 18.472 15.8326 18.472 14.8101C18.472 13.7877 19.2988 12.9589 20.3187 12.9589C21.3386 12.9589 22.1654 13.7877 22.1654 14.8101Z",fill:"#008EF0"}),c.jsx("path",{d:"M9.50932 5.28316C9.14769 5.45665 8.74267 5.5538 8.315 5.5538C6.78513 5.5538 5.54492 4.31054 5.54492 2.7769C5.54492 1.24326 6.78513 0 8.315 0C9.84488 0 11.0851 1.24326 11.0851 2.7769C11.0851 3.20559 10.9882 3.6116 10.8151 3.9741L14.3002 7.46776C14.4528 7.42686 14.6131 7.40506 14.7785 7.40506C15.7984 7.40506 16.6253 8.2339 16.6253 9.25633C16.6253 10.2788 15.7984 11.1076 14.7785 11.1076C13.7586 11.1076 12.9318 10.2788 12.9318 9.25633C12.9318 9.09048 12.9536 8.92973 12.9944 8.77678L9.50932 5.28316Z",fill:"#008EF0"}),c.jsx("path",{d:"M5.53426 9.24775C5.53426 10.2702 4.70745 11.099 3.68754 11.099C2.66762 11.099 1.84082 10.2702 1.84082 9.24775C1.84082 8.22532 2.66762 7.39648 3.68754 7.39648C4.70745 7.39648 5.53426 8.22532 5.53426 9.24775Z",fill:"#FFC200"}),c.jsx("path",{d:"M9.99463 16.5323C9.84207 16.5732 9.68173 16.595 9.5163 16.595C8.49639 16.595 7.66958 15.7661 7.66958 14.7437C7.66958 13.7213 8.49639 12.8924 9.5163 12.8924C10.5362 12.8924 11.363 13.7213 11.363 14.7437C11.363 14.9095 11.3413 15.0703 11.3005 15.2232L14.7855 18.7169C15.1471 18.5434 15.5521 18.4462 15.9798 18.4462C17.5097 18.4462 18.7499 19.6895 18.7499 21.2231C18.7499 22.7568 17.5097 24 15.9798 24C14.4499 24 13.2097 22.7568 13.2097 21.2231C13.2097 20.7944 13.3066 20.3884 13.4797 20.0259L9.99463 16.5323Z",fill:"#FFC200"}),c.jsx("path",{d:"M11.087 20.3604C11.087 21.3828 10.2602 22.2117 9.24028 22.2117C8.22036 22.2117 7.39355 21.3828 7.39355 20.3604C7.39355 19.338 8.22036 18.5092 9.24028 18.5092C10.2602 18.5092 11.087 19.338 11.087 20.3604Z",fill:"#EC3B64"}),c.jsx("path",{d:"M24.014 8.32719C24.014 9.86083 22.7738 11.1041 21.2439 11.1041C20.8197 11.1041 20.4178 11.0085 20.0584 10.8377L16.5673 14.3374C16.6063 14.4873 16.6271 14.6445 16.6271 14.8066C16.6271 15.8291 15.8003 16.6579 14.7804 16.6579C13.7605 16.6579 12.9337 15.8291 12.9337 14.8066C12.9337 13.7842 13.7605 12.9554 14.7804 12.9554C14.9495 12.9554 15.1134 12.9782 15.269 13.0208L18.748 9.53324C18.5723 9.1685 18.4738 8.75938 18.4738 8.32719C18.4738 6.79355 19.714 5.55029 21.2439 5.55029C22.7738 5.55029 24.014 6.79355 24.014 8.32719Z",fill:"#EC3B64"}),c.jsx("path",{d:"M16.6205 3.69746C16.6205 4.71988 15.7937 5.54872 14.7737 5.54872C13.7538 5.54872 12.927 4.71988 12.927 3.69746C12.927 2.67503 13.7538 1.84619 14.7737 1.84619C15.7937 1.84619 16.6205 2.67503 16.6205 3.69746Z",fill:"#5CC461"}),c.jsx("path",{d:"M11.0803 9.25125C11.0803 10.2737 10.2535 11.1025 9.23361 11.1025C9.07191 11.1025 8.91506 11.0817 8.7656 11.0425L5.27441 14.5423C5.44482 14.9026 5.54016 15.3055 5.54016 15.7307C5.54016 17.2643 4.29995 18.5076 2.77008 18.5076C1.24021 18.5076 0 17.2643 0 15.7307C0 14.197 1.24021 12.9538 2.77008 12.9538C3.20121 12.9538 3.60934 13.0525 3.97319 13.2287L7.45222 9.74107C7.40963 9.58505 7.38689 9.42081 7.38689 9.25125C7.38689 8.22883 8.21369 7.39999 9.23361 7.39999C10.2535 7.39999 11.0803 8.22883 11.0803 9.25125Z",fill:"#5CC461"})]})}),c.jsxs("defs",{children:[c.jsxs("filter",{id:"filter0_d_1397_29183",x:"-8",y:"-6",width:"40",height:"40",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[c.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),c.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),c.jsx("feOffset",{dy:"2"}),c.jsx("feGaussianBlur",{stdDeviation:"4"}),c.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),c.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"}),c.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1397_29183"}),c.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_1397_29183",result:"shape"})]}),c.jsx("clipPath",{id:"clip0_1397_29183",children:c.jsx("rect",{width:"24",height:"24",rx:"8",fill:"white"})}),c.jsx("clipPath",{id:"clip1_1397_29183",children:c.jsx("rect",{width:"24",height:"24",fill:"white"})})]})]})}));F8.displayName="LeftNavHome";const oj=Ue(["rabbit-ds relative flex h-14 w-14 items-center justify-center rounded-lg font-sans text-[10px] text-font-secondary transition-colors disabled:pointer-events-none","hover:bg-card-bg-hover hover:font-semibold hover:text-primary-hover","focus:bg-card-bg-focus focus:font-semibold focus:text-primary-focus focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","active:bg-card-bg-focus active:font-semibold active:text-primary-focus","is-active:bg-card-bg-focus is-active:font-semibold is-active:text-primary-focus"],{variants:{variant:{default:"",withNotification:"",withMenu:"",gradient:""}},defaultVariants:{variant:"default"}}),aj=Ue("",{variants:{variant:{default:"",gradient:"bg-[linear-gradient(90deg,#038EEF_9.05%,#ED3C65_86.39%)] text-transparent [-webkit-background-clip:text] [background-clip:text]"}},defaultVariants:{variant:"default"}}),_8=d.forwardRef(({className:e,variant:t,badgeText:n,icon:r,iconSize:o,isActive:a=!1,children:i,...s},l)=>c.jsx("div",{className:"rabbit-ds",children:c.jsxs(O8,{"data-deer-btn":!0,className:le(oj({variant:t,className:e})),ref:l,"data-active":a,...s,children:[c.jsxs("div",{className:"flex flex-col items-center",children:[c.jsxs("div",{className:"relative flex items-center justify-center",children:[c.jsx(Te,{IconSVG:r,size:"large"}),t==="withNotification"&&c.jsxs("div",{className:"absolute left-3 flex h-5 w-6 items-center justify-center rounded-xl bg-functional-warn px-2 text-xs text-white",children:[c.jsx("span",{className:"sr-only",children:"Notification"}),n]})]}),c.jsx("div",{className:le(aj({variant:t==="gradient"?t:"default"}),"text-xs"),children:i})]}),t==="withMenu"&&c.jsx("div",{className:"absolute right-0 flex h-14 w-3 items-center justify-center",children:c.jsx(Te,{IconSVG:Q0,size:"large"})})]})}));_8.displayName="LeftNavButton";const ij=Ue("cursor-pointer border border-solid border-[#CFD7DF] bg-[#F5F7F9] px-1 py-[2px] text-primary transition-all hover:border-primary-hover hover:bg-primary-hover hover:text-white",{variants:{variant:{default:"rounded-l-full border-r-0",collapsed:"rounded-r-full border-l-0"}},defaultVariants:{variant:"default"}});function sj({className:e,isCollapsed:t,...n}){return c.jsx("button",{"data-deer-btn":!0,type:"button",className:le(ij({variant:t?"collapsed":"default"}),e),...n,children:c.jsx(Te,{IconSVG:Y0,className:t?"rotate-180":""})})}const I8=d.createContext({isOpen:!1,toggleOpen:()=>{}}),lj=()=>d.useContext(I8);function L8({...e}){const{isOpen:t,toggleOpen:n}=lj();return c.jsx(sj,{className:`absolute right-0 top-5 z-20 ${t?"":"translate-x-full"}`,isCollapsed:!t,onClick:n,...e})}function cj(e){const{children:t,defaultOpen:n=!1}=e,r=e.open!==void 0,[o,a]=d.useState(n),i=d.useCallback(()=>{a(f=>!f)},[]),s=r?e.open:o,l=r?e.onToggle:i,u=d.useMemo(()=>({isOpen:s,toggleOpen:l}),[s,l]);return c.jsx(I8.Provider,{value:u,children:c.jsxs("div",{className:le("rabbit-ds relative h-screen transition-all",s?"w-full":"w-0","shadow-[-8px_-2px_8px_0px_rgba(0,0,0,0.08)_inset]"),style:{background:"linear-gradient(273deg, #E7EFF1 0%, #EEF5F8 11%, #EFFAFE 100%)"},children:[c.jsx(L8,{}),c.jsx("div",{className:s?"h-full p-5":"invisible h-0 w-0 scale-0 overflow-hidden opacity-0",children:t})]})})}function uj({children:e}){return c.jsx("div",{className:le("nav-group flex flex-col gap-1","after:h-[1px] after:bg-accent after:w-full after:my-4 last:after:hidden"),children:e})}function dj({children:e}){return c.jsx("div",{className:"p-2 text-xs font-semibold text-font-secondary",children:e})}function fj({children:e,...t}){return c.jsx(u2,{...t,children:e})}const pj=Ue("shrink-0",{variants:{orientation:{horizontal:"ml-2",vertical:"mt-2 w-full [&>div]:w-full [&_button]:w-full"}},defaultVariants:{orientation:"horizontal"}});function hj({className:e,orientation:t,...n}){return c.jsx("div",{className:pj({orientation:t}),children:c.jsx(Dt,{className:e,variant:"outline",...n})})}const gj={ON_TRACK:{label:"On-track",colorScheme:"tag-green"},OFF_TRACK:{label:"Off-track",colorScheme:"tag-yellow"},AT_RISK:{label:"At-risk",colorScheme:"tag-red"},CLOSED:{label:"Closed",colorScheme:"tag-darkGray"},NOT_STARTED:{label:"Not started",colorScheme:"tag-lightGray"}};function vj({title:e,achieved:t,status:n}){const r=gj[n];return c.jsx("div",{className:"rabbit-ds mr-auto",children:c.jsxs("div",{className:"flex flex-col gap-1 p-2",children:[c.jsx("div",{className:"mt-1 text-sm",children:e}),c.jsxs("div",{className:"mt-[14px] flex items-end gap-[18px]",children:[c.jsxs("div",{className:"flex flex-col",children:[c.jsx("span",{className:"text-xs text-font-secondary",children:"Achieved"}),c.jsxs("span",{className:le(r.colorScheme,"font-semibold text-3xl !bg-transparent"),children:[t,"%"]})]}),c.jsx(es,{colorScheme:r.colorScheme,className:"mb-1",children:r.label})]})]})})}function mj({employeeName:e,employeeProfilePhoto:t,reviewCycleName:n,reviewType:r,dueBy:o}){return c.jsx("div",{className:"rabbit-ds mr-auto",children:c.jsxs("div",{className:"flex gap-2",children:[c.jsx(dn,{size:"xl",children:c.jsx(fn,{src:t,alt:"Avatar"})}),c.jsxs("div",{className:"flex flex-col items-start text-sm",children:[c.jsx("span",{className:"font-semibold",children:e}),c.jsx(es,{className:"mt-0.5",variant:"outlined",children:r}),c.jsx("span",{className:"mt-1.5 text-font-secondary",children:n}),c.jsxs("span",{className:"text-font-secondary",children:["Due by ",o]})]})]})})}function bj({employeeName:e,employeeProfilePhoto:t,designation:n}){return c.jsx("div",{className:"rabbit-ds mr-auto",children:c.jsxs("div",{className:"flex gap-2",children:[c.jsx(dn,{size:"xl",children:c.jsx(fn,{src:t,alt:"Avatar"})}),c.jsxs("div",{className:"flex flex-col items-start text-sm",children:[c.jsx("span",{className:"font-semibold",children:e}),c.jsx("span",{className:"text-font-secondary",children:n})]})]})})}function yj({employeeName:e,employeeProfilePhoto:t,designation:n,requestReason:r}){return c.jsx("div",{className:"rabbit-ds mr-auto w-[60%]",children:c.jsxs("div",{className:"flex w-full gap-2",children:[c.jsx(dn,{size:"xl",children:c.jsx(fn,{src:t,alt:"Avatar"})}),c.jsxs("div",{className:"flex w-full flex-col items-start text-sm",children:[c.jsx("span",{className:"font-semibold",children:e}),c.jsx(es,{variant:"outlined",children:n}),c.jsx("span",{className:"mt-1 w-full truncate text-font-secondary",children:r})]})]})})}const wj=Ue("",{variants:{orientation:{horizontal:"flex-row",vertical:"min-w-max flex-col"}},defaultVariants:{orientation:"horizontal"}});function xj({className:e,children:t,orientation:n}){return c.jsx("div",{className:le("rabbit-ds","w-full flex items-center rounded-lg p-4 bg-[#FDFDFD] border border-solid border-[#F3F5F8]",wj({orientation:n}),e),children:t})}function Cj({nudgeCardList:e,title:t,imgSrc:n,description:r,pageSize:o=3,kebabMenu:a}){const[i,s]=d.useState(1),l=e.slice(0,o*i),u=e.length>o,f=e.length===l.length,p=()=>{s(h=>f?1:h+1)};return c.jsxs("div",{className:le("rabbit-ds","w-full flex flex-col items-start rounded-lg px-4 py-3 gap-[7px] bg-white shadow-[0px_0px_2px_0px_rgba(0,0,0,0.24)]"),children:[c.jsxs("div",{className:"flex w-full items-center justify-between",children:[c.jsx("span",{className:"text-sm font-semibold",children:t}),a]}),c.jsxs("div",{className:"mt-1 flex items-center gap-4",children:[n?c.jsx(dn,{className:"h-16 w-16",children:c.jsx(fn,{src:n,alt:t})}):null,c.jsx("span",{className:"text-sm",children:r})]}),l,u&&c.jsx("div",{className:"mx-auto",children:c.jsxs(Dt,{variant:"text",onClick:p,iconRight:f?H0:jr,children:["View ",f?"less":"more"]})})]})}function Aj({surveyName:e,date:t}){return c.jsx("div",{className:"rabbit-ds mr-auto",children:c.jsxs("div",{className:"flex gap-2",children:[c.jsx(Te,{IconSVG:R0}),c.jsxs("div",{className:"flex flex-col items-start text-sm",children:[c.jsx("span",{className:"font-semibold",children:e}),c.jsx(wc,{date:t,showRelativeTime:!0})]})]})})}const Sj=Ue("",{variants:{variant:{single:"flex-row [&>div]:items-start",multiple:"flex-col"}},defaultVariants:{variant:"single"}});function B8({employeeName:e,employeeProfilePhoto:t,scheduleDate:n,duration:r,variant:o="single",subTitle:a}){return c.jsx("div",{className:le("rabbit-ds",o==="single"?"mr-auto":"my-auto"),children:c.jsxs("div",{className:le("flex items-center text-sm gap-2",Sj({variant:o})),children:[c.jsx(dn,{size:"xl",children:c.jsx(fn,{src:t,alt:e})}),c.jsxs("div",{className:"flex flex-col items-center gap-1",children:[c.jsx("span",{className:"font-semibold",children:e}),n?c.jsx(wc,{date:n,duration:r,timeFormat:"HH:mm a",showTime:!0,className:"text-font-secondary"}):c.jsx("span",{className:"font-semibold",style:{color:"#C62C02"},children:a})]})]})})}B8.defaultProps={subTitle:void 0,scheduleDate:void 0};function Ej({label:e,onClick:t,customCompProps:n}){const[r,o]=d.useState(1);return c.jsxs(Uc,{children:[c.jsx(Hi,{children:c.jsx("span",{children:e})}),c.jsx(Vc,{children:c.jsx(Gi,{children:c.jsx(to,{children:c.jsxs("div",{className:"flex flex-col p-2",children:[c.jsx(u1,{htmlFor:n==null?void 0:n.label,className:"text-xs",children:n==null?void 0:n.label}),c.jsx(s1,{id:n==null?void 0:n.label,className:"mt-2 !min-w-[160px]",type:"number",value:r,onChange:a=>o(a.target.valueAsNumber),min:1}),c.jsx("div",{className:"flex justify-end",children:c.jsx(Dt,{className:"mt-2",onClick:()=>t(r),disabled:r<1||Number.isNaN(r),children:n==null?void 0:n.buttonText})})]})})})})]})}function Mj({options:e}){const[t,n]=d.useState(!1),r=(o,a)=>{o(a),n(!1)};return c.jsxs(ji,{open:t,children:[c.jsx(Vi,{asChild:!0,onClick:()=>n(!0),children:c.jsx(Dt,{variant:"text",size:"smallIcon",children:c.jsx(Te,{IconSVG:K0})})}),c.jsx(Jo,{className:"w-56",onFocusOutside:()=>n(!1),onPointerDownOutside:()=>n(!1),children:c.jsx(to,{children:e.map(({type:o,onClick:a,label:i,customCompProps:s})=>!o||o==="default"?c.jsx(Ro,{onClick:()=>r(a),children:c.jsx("span",{children:i})},i):c.jsx(Ej,{onClick:l=>r(a,l),label:i,customCompProps:s},i))})})]})}const z8=Ro,W8=to,j8=Ui,V8=qi,U8=Yi,H8=Xi,G8=d.forwardRef(({className:e,children:t,align:n="end",...r},o)=>c.jsx(Jo,{ref:o,align:n,...r,children:t}));G8.displayName="SplitButtonDropdownContent";const $j=Ue("",{variants:{size:{normal:"icon",small:"smallIcon",icon:"icon",smallIcon:"smallIcon",nav:"icon"}},defaultVariants:{size:"normal"}});function Tj({children:e,size:t,status:n,variant:r,...o}){return c.jsx("div",{className:"rabbit-ds flex flex-row",children:c.jsxs(ji,{children:[c.jsx(Dt,{variant:r,status:n,size:t,...o,className:"rounded-r-none",children:e}),c.jsx(Vi,{asChild:!0,children:c.jsx(Dt,{variant:r,status:n,className:"rounded-l-none border-l-0",size:$j({size:t}),iconLeft:jr})})]})})}z8.displayName="SplitButtonDropdownItem",W8.displayName="SplitButtonDropdownGroup",j8.displayName="SplitButtonDropdownRadioGroup",V8.displayName="SplitButtonDropdownLabel",U8.displayName="SplitButtonDropdownCheckboxItem",H8.displayName="SplitButtonDropdownRadioItem",j.Accordion=K1,j.AccordionContent=J1,j.AccordionItem=Q1,j.AccordionTrigger=Z1,j.Add=Rb,j.Alert=R1,j.AlertDescription=tp,j.AlertDialogAction=Hp,j.AlertDialogCancel=Up,j.AlertDialogComponent=_9,j.AlertDialogContainer=jp,j.AlertDialogContent=hc,j.AlertDialogDescription=vc,j.AlertDialogOverlay=pc,j.AlertDialogPortal=Vp,j.AlertDialogTitle=gc,j.AlertDialogTrigger=Gp,j.AlertIcon=ep,j.Avatar=dn,j.AvatarBadge=Ki,j.AvatarFallback=Ci,j.AvatarGroup=au,j.AvatarImage=fn,j.Breadcrumb=Q2,j.BreadcrumbEllipsis=ng,j.BreadcrumbItem=J2,j.BreadcrumbLink=R2,j.BreadcrumbList=Z2,j.BreadcrumbPage=eg,j.BreadcrumbSeparator=tg,j.Button=Dt,j.Calendar=e6,j.Caption=mc,j.Card=Wo,j.CardContent=Xl,j.CardDescription=L1,j.CardHeader=I1,j.CardKPI=_E,j.CardTitle=Yl,j.Carousel=jM,j.CarouselContainer=VM,j.CarouselNextButton=HM,j.CarouselPrevButton=UM,j.Check=Lo,j.CheckCircleOutline=j0,j.Checkbox=ri,j.ChevronDown=jr,j.ChevronLeft=t6,j.ChevronLeftCircle=V0,j.ChevronRight=ni,j.ChevronRightCircle=U0,j.ChevronUp=H0,j.Chip=k6,j.ChipGroup=$W,j.ChipGroupItem=TW,j.Close=G0,j.CollapseNavigation=Y0,j.CollapsibleCard=Ty,j.ColumnFilter=X0,j.ColumnFilterCheck=e1,j.Company=n6,j.DateTime=wc,j.Develop=r6,j.DirectedLineChart=f8,j.DonutChart=Xz,j.Download=o6,j.Dropdown=ji,j.DropdownCheckboxItem=Yi,j.DropdownChip=l2,j.DropdownContent=Jo,j.DropdownGroup=to,j.DropdownItem=Ro,j.DropdownLabel=qi,j.DropdownPortal=Vc,j.DropdownRadioGroup=Ui,j.DropdownRadioItem=Xi,j.DropdownSeparator=Hc,j.DropdownSub=Uc,j.DropdownSubContent=Gi,j.DropdownSubTrigger=Hi,j.DropdownTrigger=Vi,j.Engagement=a6,j.EngagementNudgeData=Aj,j.ErrorOutline=Ll,j.ExpandDown=i6,j.ExpandRight=q0,j.Feedback=s6,j.Gear=l6,j.Goal=c6,j.GoalsNudgeData=vj,j.GridChart=h8,j.GridDirectedLineChart=bW,j.Help=u6,j.HistogramChart=Hz,j.Home=d6,j.Icon=Te,j.InfoWorkZero=Bl,j.Initiatives=f6,j.Input=s1,j.KebabMenu=K0,j.KnowTeamNudgeData=B8,j.Label=u1,j.LeftNav=N8,j.LeftNavButton=_8,j.LeftNavGroup=D8,j.LeftNavHome=F8,j.LeftNavItem=A0,j.LeftNavItemContent=ej,j.LeftNavItemDropdown=ji,j.LeftNavItemDropdownCheckboxItem=Yi,j.LeftNavItemDropdownContent=Jo,j.LeftNavItemDropdownGroup=to,j.LeftNavItemDropdownItem=Ro,j.LeftNavItemDropdownLabel=qi,j.LeftNavItemDropdownPortal=Vc,j.LeftNavItemDropdownRadioGroup=Ui,j.LeftNavItemDropdownRadioItem=Xi,j.LeftNavItemDropdownSeparator=Hc,j.LeftNavItemDropdownSub=Uc,j.LeftNavItemDropdownSubContent=Gi,j.LeftNavItemDropdownSubTrigger=Hi,j.LeftNavItemDropdownTrigger=Vi,j.LeftNavItemTrigger=RW,j.LineChart=Tz,j.ListItem=u2,j.ListItemIcon=NA,j.ListItemText=kA,j.Manager=p6,j.ManagerWithBorder=h6,j.MeshLogo=t1,j.MeshMaven=A6,j.MeshMavenAsk=S6,j.MeshMavenDisabledThumbsUp=E6,j.MeshMavenWithHording=M6,j.MeshMavenWithOrangeBulb=$6,j.MeshMavenWithThumbsUp=T6,j.Metric=ig,j.MetricCard=ag,j.MetricCardStatText=lu,j.MetricCardText=rs,j.MetricCardTitle=sg,j.MyOneOnOne=g6,j.NavCollapseButtonL2=L8,j.NavGroupL2=uj,j.NavGroupTitleL2=dj,j.NavItemL2=fj,j.NavL2=cj,j.NudgeAction=hj,j.NudgeCard=Cj,j.NudgeCardItem=xj,j.NudgeKebabMenu=Mj,j.Overflow=Q0,j.Person=v6,j.Product=m6,j.ProfileCard=cu,j.ProfileCardItem=lg,j.ProfileCardKey=cg,j.ProfileCardValue=ug,j.ProgressBar=y1,j.ProgressInfo=DE,j.ProgressSlider=my,j.RadarChart=qz,j.RequestFeedback=b6,j.RequestedFeedbackNudgeData=yj,j.Reviews=y6,j.ReviewsNudgeData=mj,j.Role=w6,j.SankeyChart=Bz,j.Search=Z0,j.Select=wS,j.SelectContent=$2,j.SelectGroup=xS,j.SelectItem=P2,j.SelectLabel=T2,j.SelectSeparator=k2,j.SelectTrigger=M2,j.SelectValue=CS,j.ShareFeedback=x6,j.SharePraiseNudgeData=bj,j.SliderDrag=J0,j.SplitButton=Tj,j.SplitButtonDropdownCheckboxItem=U8,j.SplitButtonDropdownContent=G8,j.SplitButtonDropdownGroup=W8,j.SplitButtonDropdownItem=z8,j.SplitButtonDropdownLabel=V8,j.SplitButtonDropdownRadioGroup=j8,j.SplitButtonDropdownRadioItem=H8,j.StackedBarChart=Rz,j.Survey=R0,j.Tabs=W2,j.TabsContent=U2,j.TabsList=j2,j.TabsTrigger=V2,j.Tag=es,j.Team=C6,j.Toaster=PE,j.Tooltip=tu,j.TooltipContent=ns,j.TooltipPortal=ru,j.TooltipProvider=eu,j.TooltipTrigger=nu,j.TrendingDown=n1,j.TrendingUp=r1,j.getInitialsFromName=Zp,j.toast=yE,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
|