@mesh.ai/rabbit 1.20.7 → 1.20.8
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.
|
@@ -25308,7 +25308,7 @@ const az = ({ x: e, y: t, datum: n, size: r }) => /* @__PURE__ */ u(Fo, { cx: e,
|
|
|
25308
25308
|
return {
|
|
25309
25309
|
points: T.data.map((B, S) => ({
|
|
25310
25310
|
x: r[S],
|
|
25311
|
-
y: B,
|
|
25311
|
+
y: Number(B),
|
|
25312
25312
|
nodeId: T.id,
|
|
25313
25313
|
color: (V == null ? void 0 : V.color) ?? tt(R)
|
|
25314
25314
|
}))
|
|
@@ -26733,7 +26733,7 @@ const Mz = ({ x: e, y: t, datum: n }) => /* @__PURE__ */ u(
|
|
|
26733
26733
|
return {
|
|
26734
26734
|
points: E.data.map((V, B) => ({
|
|
26735
26735
|
x: r[B],
|
|
26736
|
-
y: V,
|
|
26736
|
+
y: Number(V),
|
|
26737
26737
|
nodeId: E.id,
|
|
26738
26738
|
color: (R == null ? void 0 : R.color) ?? tt(T)
|
|
26739
26739
|
}))
|
|
@@ -93,4 +93,4 @@ z`).split(`
|
|
|
93
93
|
`)} {
|
|
94
94
|
${dr}
|
|
95
95
|
}
|
|
96
|
-
`}),Z.appendChild(G.createTextNode($t))}R.timeEnd("clone node"),ve==null||ve(Oe),pe!==!1&&te(Oe)&&(R.time("embed web font"),yield Dj(Oe,U),R.timeEnd("embed web font")),R.time("embed node"),K8(Oe,U);const _e=ie.length;let Ie=0;const Xe=()=>m(this,null,function*(){for(;;){const $t=ie.pop();if(!$t)break;try{yield $t}catch(Bn){De("Failed to run task",Bn)}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=Vj(Oe,U);return ae&&Ve.insertBefore(ae,Ve.children[0]),Z&&Ve.insertBefore(Z,Ve.children[0]),ye&&U8(U),Ae==null||Ae(Ve),Ve})}function Vj(S,z){const{width:U,height:G}=z,R=Bt(U,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 Pl(S,z){return m(this,null,function*(){var U;const G=yield zt(S,z),R=yield Q8(G),ie=et(R,G.isEnable("removeControlCharacter"));G.autoDestruct||(G.svgStyleElement=Mt(G.ownerDocument),G.svgDefsElement=(U=G.ownerDocument)==null?void 0:U.createElementNS(Lt,"defs"),G.svgStyles.clear());const Z=Ke(ie,R.ownerDocument);return yield In(Z,G)})}function Uj(S,z){return m(this,null,function*(){const U=yield zt(S,z),{log:G,type:R,quality:ie,dpi:Z}=U,ae=yield Pl(U);G.time("canvas to blob");const fe=yield cr(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=k(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 Do(S,z){return m(this,null,function*(){const U=yield zt(S,z),{log:G,quality:R,type:ie,dpi:Z}=U,ae=yield Pl(U);G.time("canvas to data url");let fe=ae.toDataURL(ie,R);if(["image/png","image/jpeg"].includes(ie)&&Z&&H&&W){const[pe,ge]=fe.split(",");let ye=0,ve=!1;if(ie==="image/png"){const Ve=j(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"?k(_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 Z8(S,z){return m(this,null,function*(){const U=yield zt(S,z),{width:G,height:R,ownerDocument:ie}=U,Z=yield Do(U),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,U.isEnable("removeControlCharacter"))})}function Hj(S,z){return m(this,null,function*(){const U=yield zt(S,z),{ownerDocument:G,width:R,height:ie,scale:Z,type:ae}=U,fe=ae==="image/svg+xml"?yield Z8(U):yield Do(U),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 Gj(S,z){return m(this,null,function*(){return Do(yield zt(S,v(h({},z),{type:"image/jpeg"})))})}function Yj(S,z){return m(this,null,function*(){const U=yield zt(S,z),G=yield Pl(U);return G.getContext("2d").getImageData(0,0,G.width,G.height).data})}function Xj(S,z){return m(this,null,function*(){return Do(yield zt(S,v(h({},z),{type:"image/png"})))})}function qj(S,z){return m(this,null,function*(){return Do(yield zt(S,v(h({},z),{type:"image/webp"})))})}n.createContext=El,n.destroyContext=U8,n.domToBlob=Uj,n.domToCanvas=Pl,n.domToDataUrl=Do,n.domToForeignObjectSvg=Q8,n.domToImage=Hj,n.domToJpeg=Gj,n.domToPixel=Yj,n.domToPng=Xj,n.domToSvg=Z8,n.domToWebp=qj,n.loadMedia=yt,n.waitUntilLoad=wn,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})})})(Zf,Zf.exports);var vz=Zf.exports;const _n=(e,t,n)=>{d.useImperativeHandle(t,()=>({download(){e.current&&vz.domToPng(e.current,{scale:5}).then(r=>{const o=document.createElement("a");o.download=`${n}.png`,o.href=r,o.click()})}}))},E4=[{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 E4[e%E4.length]}const pl=(e,t)=>d.Children.map(e,n=>d.isValidElement(n)&&typeof n.type=="function"&&n.type.displayName===t.displayName?n:null);function Jf({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 Rf({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 e0({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 t0({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=pl(e,Jf),o=pl(e,Rf),a=pl(e,e0),i=pl(e,t0);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:ce("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:ce("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:ce("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]})}Jf.displayName="Legend",Rf.displayName="Item",e0.displayName="Header",t0.displayName="Footer",ke.Legend=Jf,ke.Item=Rf,ke.Header=e0,ke.Footer=t0,ke.defaultProps={showSideBySide:!1};function M4({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})]})}M4.defaultProps={xValue:void 0,yValue:void 0};function mz({data:e,xAccessor:t,yAccessor:n,connectNulls:r=!1}){const o=d.useContext(Pt),a=r?e.filter(i=>i.y!==null):e;return a.length===0?null:c.jsx(x5,{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 bz=({x:e,y:t,datum:n,size:r})=>c.jsx(ao,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.light,r:r/2}),yz=({x:e,y:t,datum:n})=>c.jsx(ao,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.dark,r:5,style:{zIndex:1500}}),hl={xAccessor:e=>e.x,yAccessor:e=>e.y},$4=(e,t,n)=>n==="pre"?`${t}${e}`:`${e}${t}`,T4=10,wz=5,n0=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=wz,tooltipStackCharLimit:x=T4,seriesSelectorTitle:y,preselectedNodes:w},b)=>{const[A,C]=d.useState(()=>(w&&w<e.length?e.slice(0,w+1):e).map(I=>I.id)),M=d.useRef(null);_n(M,b,`${a}-${i}-LineChart`);const T=d.useMemo(()=>o.map((P,I)=>{const j=e.find(B=>B.id===P.id);return{points:P.data.map((B,E)=>({x:r[E],y:B,nodeId:P.id,color:(j==null?void 0:j.color)??Ye(I)}))}}).slice(0,h==="mini"?m:o.length),[o,h,m,e,r]),_=d.useMemo(()=>h==="full"?T.filter(P=>A.includes(P.points[0].nodeId)):T,[T,A,h]),k=d.useMemo(()=>Math.floor((n-(h==="mini"?0:150))/(r.length*8)),[n,r,h]),$=d.useMemo(()=>T.reduce((P,I)=>I.points.length>P?I.points.length:P,0),[T]);return c.jsxs("div",{ref:M,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(lr,{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(L5,{columns:!1,numTicks:6,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),c.jsx(Mo,{hideTicks:!0,orientation:"bottom",stroke:"#CFD7DF",strokeWidth:1,numTicks:30,tickFormat:P=>u?$4(P,u.symbol,u.position):P,rangePadding:{end:10},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",angle:$>10?-90:0},axisCharLimit:v??k}),label:`${a} ➔`,labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx(Mo,{hideTicks:!0,numTicks:6,strokeWidth:1,orientation:"left",stroke:"#CFD7DF",label:`${i} ➔`,tickFormat:P=>f?$4(P,f.symbol,f.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"}}),_.map((P,I)=>c.jsxs(c.Fragment,{children:[c.jsx(mz,{data:P.points,xAccessor:hl.xAccessor,yAccessor:hl.yAccessor,connectNulls:g}),c.jsx(S4,{dataKey:`Performance Management ${I}`,data:P.points,size:8,renderGlyph:bz,xAccessor:hl.xAccessor,yAccessor:hl.yAccessor})]})),c.jsx(rl,{showDatumGlyph:!0,scroll:!0,debounce:500,snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,detectBounds:!0,unstyled:!0,applyPositionStyle:!0,renderGlyph:yz,renderTooltip:({tooltipData:P})=>{var B,E,L,H,W,N;const I=e.find(O=>{var D;return O.id===((D=P==null?void 0:P.nearestDatum)==null?void 0:D.datum.nodeId)}),j=((B=P==null?void 0:P.nearestDatum)==null?void 0:B.datum)&&((E=P==null?void 0:P.nearestDatum)==null?void 0:E.datum.x.length)<x;return c.jsx(M4,{xValue:(L=P==null?void 0:P.nearestDatum)==null?void 0:L.datum.x,yValue:(H=P==null?void 0:P.nearestDatum)==null?void 0:H.datum.y,xAxisLabel:a,yAxisLabel:i,showSideBySide:!!j,tooltipTitle:p,legendValue:(I==null?void 0:I.name)||"",legendDarkColor:((W=P==null?void 0:P.nearestDatum)==null?void 0:W.datum.color.dark)||Ye(0).dark,legendLightColor:((N=P==null?void 0:P.nearestDatum)==null?void 0:N.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}),"(",_.length??0,"/",T.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:T.map(P=>{const I=e.find(j=>j.id===P.points[0].nodeId);return 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:P.points[0].color.light,borderColor:P.points[0].color.dark},className:"mr-1 h-3 w-3 rounded-full border"}),I.name]}),c.jsx("div",{className:"flex items-center",children:c.jsx(ri,{checked:A.includes(I.id),onCheckedChange:j=>{let B=[...A];j?B=[...A,I.id]:B.splice(A.indexOf(I.id),1),C(B)}})})]},I.id)})})]})]}),h==="mini"&&c.jsx("div",{className:"flex flex-row flex-wrap justify-center gap-4 text-[10px] font-semibold text-font-secondary",children:T.map(P=>{const I=e.find(j=>j.id===P.points[0].nodeId);return c.jsxs("div",{className:"flex items-center justify-center gap-1",children:[c.jsx("div",{style:{backgroundColor:P.points[0].color.light,borderColor:P.points[0].color.dark},className:"h-3 w-3 rounded-full border"}),I==null?void 0:I.name]},I==null?void 0:I.id)})})]})}),xz={xAxisUnitSymbol:void 0,yAxisUnitSymbol:void 0,mode:"mini",xAxisCharLimit:void 0,tooltipStackCharLimit:T4,xAxisDomain:void 0,yAxisDomain:void 0,connectNulls:!1};n0.defaultProps=xz,n0.displayName="LineBase";const P4=d.forwardRef((e,t)=>c.jsx(Jn,{debounceTime:10,children:({width:n,height:r})=>c.jsx(n0,{ref:t,width:n,height:r,...e})}));P4.displayName="LineChart";const Cz=P4;function k4(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 Az(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 r0(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 Sz(e,t){return e.sourceLinks.length?e.depth:t-1}function gl(e){return function(){return e}}function O4(e,t){return vl(e.source,t.source)||e.index-t.index}function N4(e,t){return vl(e.target,t.target)||e.index-t.index}function vl(e,t){return e.y0-t.y0}function o0(e){return e.value}function Ez(e){return e.index}function Mz(e){return e.nodes}function $z(e){return e.links}function D4(e,t){const n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function F4({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 Tz(){let e=0,t=0,n=1,r=1,o=24,a=8,i,s=Ez,l=Sz,u,f,p=Mz,h=$z,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),F4(E),E}g.update=function(E){return F4(E),E},g.nodeId=function(E){return arguments.length?(s=typeof E=="function"?E:gl(E),g):s},g.nodeAlign=function(E){return arguments.length?(l=typeof E=="function"?E:gl(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:gl(E),g):p},g.links=function(E){return arguments.length?(h=typeof E=="function"?E:gl(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:L}){for(const[W,N]of E.entries())N.index=W,N.sourceLinks=[],N.targetLinks=[];const H=new Map(E.map((W,N)=>[s(W,N,E),W]));for(const[W,N]of L.entries()){N.index=W;let{source:O,target:D}=N;typeof O!="object"&&(O=N.source=D4(H,O)),typeof D!="object"&&(D=N.target=D4(H,D)),O.sourceLinks.push(N),D.targetLinks.push(N)}if(f!=null)for(const{sourceLinks:W,targetLinks:N}of E)W.sort(f),N.sort(f)}function x({nodes:E}){for(const L of E)L.value=L.fixedValue===void 0?Math.max(r0(L.sourceLinks,o0),r0(L.targetLinks,o0)):L.fixedValue}function y({nodes:E}){const L=E.length;let H=new Set(E),W=new Set,N=0;for(;H.size;){for(const O of H){O.depth=N;for(const{target:D}of O.sourceLinks)W.add(D)}if(++N>L)throw new Error("circular link");H=W,W=new Set}}function w({nodes:E}){const L=E.length;let H=new Set(E),W=new Set,N=0;for(;H.size;){for(const O of H){O.height=N;for(const{source:D}of O.targetLinks)W.add(D)}if(++N>L)throw new Error("circular link");H=W,W=new Set}}function b({nodes:E}){const L=k4(E,N=>N.depth)+1,H=(n-e-o)/(L-1),W=new Array(L);for(const N of E){const O=Math.max(0,Math.min(L-1,Math.floor(l.call(null,N,L))));N.layer=O,N.x0=e+O*H,N.x1=N.x0+o,W[O]?W[O].push(N):W[O]=[N]}if(u)for(const N of W)N.sort(u);return W}function A(E){const L=Az(E,H=>(r-t-(H.length-1)*i)/r0(H,o0));for(const H of E){let W=t;for(const N of H){N.y0=W,N.y1=W+N.value*L,W=N.y1+i;for(const O of N.sourceLinks)O.width=O.value*L}W=(r-W+i)/(H.length+1);for(let N=0;N<H.length;++N){const O=H[N];O.y0+=W*(N+1),O.y1+=W*(N+1)}I(H)}}function C(E){const L=b(E);i=Math.min(a,(r-t)/(k4(L,H=>H.length)-1)),A(L);for(let H=0;H<v;++H){const W=Math.pow(.99,H),N=Math.max(1-W,(H+1)/v);T(L,W,N),M(L,W,N)}}function M(E,L,H){for(let W=1,N=E.length;W<N;++W){const O=E[W];for(const D of O){let K=0,Y=0;for(const{source:ne,value:te}of D.targetLinks){let J=te*(D.layer-ne.layer);K+=j(ne,D)*J,Y+=J}if(!(Y>0))continue;let ee=(K/Y-D.y0)*L;D.y0+=ee,D.y1+=ee,P(D)}u===void 0&&O.sort(vl),_(O,H)}}function T(E,L,H){for(let W=E.length,N=W-2;N>=0;--N){const O=E[N];for(const D of O){let K=0,Y=0;for(const{target:ne,value:te}of D.sourceLinks){let J=te*(ne.layer-D.layer);K+=B(D,ne)*J,Y+=J}if(!(Y>0))continue;let ee=(K/Y-D.y0)*L;D.y0+=ee,D.y1+=ee,P(D)}u===void 0&&O.sort(vl),_(O,H)}}function _(E,L){const H=E.length>>1,W=E[H];$(E,W.y0-i,H-1,L),k(E,W.y1+i,H+1,L),$(E,r,E.length-1,L),k(E,t,0,L)}function k(E,L,H,W){for(;H<E.length;++H){const N=E[H],O=(L-N.y0)*W;O>1e-6&&(N.y0+=O,N.y1+=O),L=N.y1+i}}function $(E,L,H,W){for(;H>=0;--H){const N=E[H],O=(N.y1-L)*W;O>1e-6&&(N.y0-=O,N.y1-=O),L=N.y0-i}}function P({sourceLinks:E,targetLinks:L}){if(f===void 0){for(const{source:{sourceLinks:H}}of L)H.sort(N4);for(const{target:{targetLinks:H}}of E)H.sort(O4)}}function I(E){if(f===void 0)for(const{sourceLinks:L,targetLinks:H}of E)L.sort(N4),H.sort(O4)}function j(E,L){let H=E.y0-(E.sourceLinks.length-1)*i/2;for(const{target:W,width:N}of E.sourceLinks){if(W===L)break;H+=N+i}for(const{source:W,width:N}of L.targetLinks){if(W===E)break;H-=N}return H}function B(E,L){let H=L.y0-(L.targetLinks.length-1)*i/2;for(const{source:W,width:N}of L.targetLinks){if(W===E)break;H+=N+i}for(const{target:W,width:N}of E.sourceLinks){if(W===L)break;H-=N}return H}return g}function Pz({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 _4=80,I4=20,kz=30,Oz=12,L4=d.forwardRef(({height:e,width:t,tooltipTitle:n,nodes:r,links:o,groups:a,weightLabel:i},s)=>{const l=d.useMemo(()=>Tz().nodeId(E=>E.id).nodeWidth(Oz).nodePadding(kz).nodeAlign(E=>E.group),[]),u=d.useRef(null);_n(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:M}=za({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),T=d.useMemo(()=>l.extent([[_4,I4],[t-_4,e-I4-50]])({nodes:r,links:o.map(E=>({...E,value:Number(E.weight)}))}),[e,t,l,r,o]),_=d.useMemo(()=>Math.max(...T.nodes.map(E=>E.depth??0)),[T]),k=d.useMemo(()=>{const E={};let L=-1/0;return T.nodes.forEach(H=>{const{group:W}=H;E[W]?(E[W].x=Math.max(E[W].x??-1/0,H.x0??-1/0),E[W].y=Math.max(E[W].y??-1/0,H.y1??-1/0)):(E[W]={},E[W].x=H.x0,E[W].y=H.y1),L=Math.max(L,E[W].y??-1/0),E[W].y=L}),Object.keys(E).forEach(H=>{E[H].y=L}),E},[T]),$=d.useCallback(E=>{const L=l.nodeId()(E);p(f===L?"":L)},[f,l]),P=d.useCallback(()=>{p(""),v(null)},[]),I=d.useMemo(()=>f===""&&h===null?new Set:new Set(T.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,T,h,l]),j=d.useCallback((E,L)=>{const H=("clientX"in E?E.clientX:0)-A.left,W=("clientY"in E?E.clientY:0)-A.top;v(L),H&&W&&w({tooltipLeft:H,tooltipTop:W,tooltipData:L})},[w,A]),B=d.useCallback(()=>{P(),b()},[P,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:T.links.map(E=>c.jsx(fI,{data:E,source:L=>({x:L.source.x1,y:L.y0}),target:L=>({x:L.target.x0,y:L.y1}),x:L=>L.x??0,y:L=>L.y??0,fill:"none",pointerEvents:"stroke",onMouseLeave:()=>B(),onMouseMove:L=>j(L,E),stroke:Ye((E.source.index||0)+1).light,strokeWidth:E.width,strokeOpacity:I.has(E)?.7:.4},E.index))}),c.jsx("g",{children:T.nodes.map(E=>{var L,H,W;return c.jsx("g",{children:c.jsx(C5,{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:()=>$(E),onMouseLeave:()=>P(),radius:2,fill:f===E.id?(L=Ye((E.index||0)+1))==null?void 0:L.dark:(H=Ye((E.index||0)+1))==null?void 0:H.light,stroke:(W=Ye((E.index||0)+1))==null?void 0:W.dark,all:!0})},E.index)})}),c.jsx("g",{children:a.map(E=>c.jsx(Xa,{axisCharLimit:20,x:k[E.id].x??0,y:(k[E.id].y??0)+40,textLabel:E.name,textStyles:{fontSize:10,fontWeight:600,textAnchor:"middle",fill:"#666666"}},E.id))}),c.jsxs("g",{children:[T.nodes.map(E=>c.jsx(Xa,{axisCharLimit:8,x:E.depth===_?(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===_?"start":"end",fill:"#666666"}},E.index)),T.nodes.map(E=>E.value&&c.jsx(fa,{x:E.depth===_?(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===_?"start":"end",fill:"#666666"},children:`(${E.value.toString()})`},E.index))]})]}),y&&g&&c.jsx(M,{top:x,left:m,unstyled:!0,applyPositionStyle:!0,children:c.jsx(Pz,{tooltipData:g,fromLabel:`From: ${a[g.source.group].name}`,toLabel:`To: ${a[g.target.group].name}`,weightLabel:i,tooltipTitle:n})},Math.random())]})});L4.displayName="Sankey";const B4=d.forwardRef((e,t)=>c.jsx(Jn,{debounceTime:10,children:({width:n,height:r})=>n&&r&&c.jsx(L4,{ref:t,width:n,height:r,...e})}));B4.displayName="SankeyChart";const Nz=B4;function Dz(e){return"bandwidth"in e?e.bandwidth():0}var Fz=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function a0(){return a0=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},a0.apply(this,arguments)}function _z(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 z4(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=_z(e,Fz),A=w??Xd(a,m),C=(y??0)+Dz(a)/2,M=A.map(function(T,_){var k,$=((k=Ys(a(T)))!=null?k:0)+C;return{index:_,from:new Tn({x:0,y:$}),to:new Tn({x:i,y:$})}});return d.createElement(hn,{className:gt("visx-rows",h),top:n,left:o},v?v({lines:M}):M.map(function(T){var _=T.from,k=T.to,$=T.index;return d.createElement(bI,a0({key:"row-line-"+$,from:_,to:k,stroke:l,strokeWidth:f,strokeDasharray:p,style:x},b))}))}z4.propTypes={tickValues:re.array,width:re.number.isRequired};function W4({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})]})}W4.defaultProps={xValue:void 0,yValue:void 0};const j4=20,V4=50,i0=80,ml=50,Iz=10,Lz=25,s0=d.forwardRef(({tooltipTitle:e,xAxisLabel:t,yAxisLabel:n,domain:r,binCount:o,data:a,width:i,height:s,maxBinCount:l=Lz,minBinCount:u=Iz,integerBins:f=!1,integerYAxis:p=!1},h)=>{const v=d.useMemo(()=>Ss(a),[a]),{histogramDomain:g,threshold:m,thresholdInteger:x}=d.useMemo(()=>{const N=v[0]??0,O=N===v[1]?u+N:v[1]??0,D=O-N>u?O:u+N,K=Math.min(Math.max(O-N,u),l),Y=Math.floor(v[0]??0),ee=Math.ceil(D);return{histogramDomain:r||(f?[Y,ee]:[N,O]),threshold:K,thresholdInteger:Math.ceil(K)}},[v,r,f,l,u]),y=d.useMemo(()=>Eo({domain:g,range:[ml,i-V4],round:!0,nice:!0}),[g,i]),w=d.useMemo(()=>AN().domain(y.domain()).thresholds(o||(f?x:m))(a),[y,o,a,m,x,f]),b=d.useMemo(()=>Eo({domain:[0,id(w,N=>N.length)??0],range:[s-i0,j4],round:!0,nice:!0}),[w,s]),A=d.useMemo(()=>b.ticks().filter(N=>p?Number.isInteger(N):N),[p,b]),C=d.useRef(null);_n(C,h,`${t}-${n}-Histogram`);const{tooltipData:M,tooltipLeft:T,tooltipTop:_,tooltipOpen:k,showTooltip:$,hideTooltip:P}=Ba(),{containerBounds:I,containerRef:j,TooltipInPortal:B}=za({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),E=i-ml-V4,L=s-j4-i0-100,H=d.useCallback((N,O)=>{const D=("clientX"in N?N.clientX:0)-I.left,K=("clientY"in N?N.clientY:0)-I.top;D&&K&&$({tooltipLeft:D,tooltipTop:K,tooltipData:O})},[$,I]),W=d.useCallback(()=>{P()},[P]);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:j,children:[c.jsx(uf,{orientation:"bottom",scale:y,top:s-i0,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(uf,{orientation:"left",scale:b,left:ml,hideTicks:!0,strokeWidth:1,stroke:"#CFD7DF",tickFormat:Ca(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(z4,{scale:b,width:E,height:L,left:ml,top:0,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),w.map(N=>{const O=Math.abs(b(0)-b(N.length)),D=Math.abs(y(N.x1??0)-y(N.x0??0));return c.jsx("g",{children:c.jsx(tI,{x:y(N.x0??0),y:b(N.length),width:D,height:O&&O-1,fill:Ye(0).light,stroke:Ye(0).dark,strokeWidth:1,onMouseMove:K=>H(K,N),onMouseLeave:()=>W()})},Math.random())})]})]}),k&&M&&c.jsx(B,{top:_,left:T,unstyled:!0,applyPositionStyle:!0,children:c.jsx(W4,{xAxisLabel:t,xValue:`${M.x0} to ${M.x1}`,yAxisLabel:n,yValue:M.length,tooltipTitle:e,legendValue:n,legendDarkColor:Ye(0).dark,legendLightColor:Ye(0).light})},Math.random()),b.domain()[2]]})}),U4=d.forwardRef((e,t)=>c.jsx(Jn,{debounceTime:10,children:({width:n,height:r})=>c.jsx(s0,{ref:t,width:n,height:r,...e})}));s0.defaultProps={domain:void 0,binCount:void 0,integerBins:!1,integerYAxis:!1},s0.displayName="HistogramBase",U4.displayName="HistogramChart";const Bz=U4;function H4({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||""})]})}H4.defaultProps={};const zz=e=>e.value,Wz=e=>e.label,G4=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((M,T)=>{const _=("clientX"in M?M.clientX:0)-x.left,k=("clientY"in M?M.clientY:0)-x.top;_&&k&&g({tooltipLeft:_,tooltipTop:k,tooltipData:T})},[g,x]),C=d.useCallback(()=>{m()},[m]);return _n(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(q_,{data:r,pieValue:zz,outerRadius:u-10,innerRadius:u-Math.min(e*.07,22)-10,cornerRadius:2,padAngle:.025,children:M=>c.jsx(c.Fragment,{children:M.arcs.map(T=>{const _=Wz(T.data);return c.jsx("g",{children:c.jsx("path",{d:M.path(T)??void 0,fill:T.data.color,onMouseLeave:C,onMouseMove:k=>A(k,{label:a,value:T.value,tooltipTitle:o,unit:n,legendValue:_,legendDarkColor:T.data.labelColor,legendLightColor:T.data.color})})},`arc-${_}`)})})})})}),v&&f&&c.jsx(w,{top:h,left:p,unstyled:!0,applyPositionStyle:!0,children:c.jsx(H4,{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(M=>c.jsxs("div",{className:"flex items-center justify-center gap-1",children:[c.jsx("div",{style:{backgroundColor:M.color,borderColor:M.labelColor,color:M.labelColor,width:Math.min(e*.04,10),height:Math.min(e*.04,10)},className:"h-3 w-3 rounded-full border"}),`${M.label}: ${M.value}${n}`]},M.label))})]})});G4.displayName="DonutChartBase";const Y4=d.forwardRef((e,t)=>c.jsx(Jn,{debounceTime:10,children:({width:n,height:r})=>c.jsx(G4,{ref:t,width:n,height:r,...e})}));Y4.displayName="DonutChart";const jz=Y4;function X4({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})]})}X4.defaultProps={xValue:void 0,yValue:void 0};const bl={top:60,left:20,right:20,bottom:20},q4={start:10,end:-10,middle:0},K4=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);_n(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}),M=d.useCallback((O,D)=>{const K=Math.PI*2/O;return[...new Array(O)].map((Y,ee)=>({x:D*Math.sin(ee*K),y:D*Math.cos(ee*K)}))},[]),T=d.useCallback((O,D,K)=>K==="pre"?`${D}${O}`:`${O}${D}`,[]),_=d.useCallback((O,D,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=D(K(O[oe-1]))*Math.sin(oe*Y),Q=D(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}},[]),k=d.useMemo(()=>new Tn({x:0,y:0}),[]),$=d.useCallback(O=>Math.round(O)===0?"middle":O>0?"start":"end",[]),P=d.useCallback((O,D)=>{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:D})},[y,b]),I=d.useCallback(()=>{w()},[w]),j=d.useMemo(()=>e-bl.left-bl.right,[e]),B=d.useMemo(()=>t-bl.top-bl.bottom,[t]),E=d.useMemo(()=>Math.min(j,B)/2,[j,B]),L=u.length?u.reduce((O,D)=>{const K=D.data.filter(Y=>Y);return Math.max(O,...K)},-1/0):0,H=Eo({range:[0,E],domain:l??[0,L]}),W=M(f.length,E),N=O=>_(O,D=>H(D)??0,D=>D);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:I,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,D)=>c.jsx(A5,{x:e/2,y:t/2,fill:"none",stroke:"#CFD7DF",strokeWidth:1,strokeDasharray:4,r:E*(D+1)/n},`web1-${Math.random()}`)),f.map((O,D)=>c.jsxs(c.Fragment,{children:[c.jsx(Zd,{from:k,to:W[D],stroke:f.length===1?Ye(0).dark:"#CFD7DF",strokeWidth:1},`radar-line-${Math.random()}`),c.jsx(fa,{x:W[D].x,y:W[D].y,textAnchor:$(W[D].x),verticalAnchor:$(W[D].y),dx:q4[$(W[D].x)],dy:q4[$(W[D].y)],fontSize:10,fill:"#666666",width:a??100,children:`${s?T(f[(D+f.length-1)%f.length],s.symbol,s.position):f[(D+f.length-1)%f.length]}`})]})),u.map((O,D)=>c.jsx("polygon",{points:N(O.data).pointString,fill:Ye(D).light,fillOpacity:.2,stroke:Ye(D).dark,strokeWidth:1},`polypath-${Math.random()}`)),u.map((O,D)=>N(O.data).points.map((K,Y)=>c.jsx(A5,{cx:K.x,cy:K.y,r:5,fill:"transparent",onMouseMove:ee=>{var ne;return P(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(D).dark,legendLightColor:Ye(D).light})},onMouseOut:I},`radar-point-${Math.random()}`)))]})]}),x&&v&&c.jsx(C,{top:m,left:g,unstyled:!0,applyPositionStyle:!0,children:c.jsx(X4,{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())]})});K4.displayName="RadarChartBase";const Q4=d.forwardRef((e,t)=>c.jsx(Jn,{debounceTime:10,children:({width:n,height:r})=>c.jsx(K4,{ref:t,width:n,height:r,...e})}));Q4.displayName="RadarChart";const Vz=Q4;function Z4({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})]})}Z4.defaultProps={xValue:void 0,yValue:void 0};const Uz=({x:e,y:t,datum:n})=>c.jsx(ao,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.dark,r:5,style:{zIndex:1500}}),J4={xAccessor:e=>e.x,yAccessor:e=>e.y},R4=(e,t,n)=>n==="pre"?`${t}${e}`:`${e}${t}`,e8=10,Hz=5,l0=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=Hz,tooltipStackCharLimit:m=e8,seriesSelectorTitle:x,preselectedNodes:y},w)=>{const[b,A]=d.useState(()=>(y&&y<e.length?e.slice(0,y+1):e).map(P=>P.id)),C=d.useRef(null);_n(C,w,`${a}-${i}-StackedBarChart`);const M=d.useMemo(()=>o.map(($,P)=>{const I=e.find(j=>j.id===$.id);return{points:$.data.map((j,B)=>({x:r[B],y:j,nodeId:$.id,color:(I==null?void 0:I.color)??Ye(P)}))}}).slice(0,h==="mini"?g:o.length),[o,h,g,e,r]),T=d.useMemo(()=>h==="full"?M.filter($=>b.includes($.points[0].nodeId)):M,[M,b,h]),_=d.useMemo(()=>Math.floor((n-(h==="mini"?0:150))/(r.length*8)),[n,r,h]),k=d.useMemo(()=>M.reduce(($,P)=>P.points.length>$?P.points.length:$,0),[M]);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(lr,{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(L5,{columns:!1,numTicks:6,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),c.jsx(Mo,{hideTicks:!0,orientation:"bottom",stroke:"#CFD7DF",strokeWidth:1,numTicks:30,tickFormat:$=>u?R4($,u.symbol,u.position):$,rangePadding:{end:10},tickComponent:$=>c.jsx(Xa,{textLabel:$.formattedValue||"",x:$.x,y:$.y,textStyles:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle",angle:k>10?-90:0},axisCharLimit:v??_}),label:`${a} ➔`,labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx(Mo,{hideTicks:!0,numTicks:6,strokeWidth:1,orientation:"left",stroke:"#CFD7DF",label:`${i} ➔`,tickFormat:$=>f?R4($,f.symbol,f.position):$,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(pz,{children:T.map($=>c.jsx(uz,{data:$.points,dataKey:$.points[0].nodeId,xAccessor:J4.xAccessor,yAccessor:J4.yAccessor,colorAccessor:P=>P.color.light,radiusTop:!0,radius:2},$.points[0].nodeId))}),c.jsx(rl,{showDatumGlyph:!0,scroll:!0,debounce:500,snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,detectBounds:!0,unstyled:!0,applyPositionStyle:!0,renderGlyph:Uz,renderTooltip:({tooltipData:$})=>{var j,B,E,L,H,W;const P=e.find(N=>{var O;return N.id===((O=$==null?void 0:$.nearestDatum)==null?void 0:O.datum.nodeId)}),I=((j=$==null?void 0:$.nearestDatum)==null?void 0:j.datum)&&((B=$==null?void 0:$.nearestDatum)==null?void 0:B.datum.x.length)<m;return c.jsx(Z4,{xValue:(E=$==null?void 0:$.nearestDatum)==null?void 0:E.datum.x,yValue:(L=$==null?void 0:$.nearestDatum)==null?void 0:L.datum.y,xAxisLabel:a,yAxisLabel:i,showSideBySide:!!I,tooltipTitle:p,legendValue:(P==null?void 0:P.name)||"",legendDarkColor:((H=$==null?void 0:$.nearestDatum)==null?void 0:H.datum.color.dark)||Ye(0).dark,legendLightColor:((W=$==null?void 0:$.nearestDatum)==null?void 0:W.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}),"(",T.length??0,"/",M.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:M.map($=>{const P=e.find(I=>I.id===$.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:$.points[0].color.light,borderColor:$.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:b.includes(P.id),onCheckedChange:I=>{let j=[...b];I?j=[...b,P.id]:j.splice(b.indexOf(P.id),1),A(j)}})})]},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:M.map($=>{const P=e.find(I=>I.id===$.points[0].nodeId);return c.jsxs("div",{className:"flex items-center justify-center gap-1",children:[c.jsx("div",{style:{backgroundColor:$.points[0].color.light,borderColor:$.points[0].color.dark},className:"h-3 w-3 rounded-full border"}),P==null?void 0:P.name]},P==null?void 0:P.id)})})]})}),Gz={xAxisUnitSymbol:void 0,yAxisUnitSymbol:void 0,mode:"mini",xAxisCharLimit:void 0,tooltipStackCharLimit:e8,xAxisDomain:void 0,yAxisDomain:void 0,connectNulls:!1};l0.defaultProps=Gz,l0.displayName="StackedBarChartBase";const t8=d.forwardRef((e,t)=>c.jsx(Jn,{debounceTime:10,children:({width:n,height:r})=>c.jsx(l0,{ref:t,width:n,height:r,...e})}));t8.displayName="StackedBarChart";const Yz=t8,Xz=({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 n8({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})]})}n8.defaultProps={xValue:void 0,yValue:void 0};var qz=["id","markerWidth","markerHeight","markerUnits","children"];function c0(){return c0=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},c0.apply(this,arguments)}function Kz(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 u0(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=Kz(e,qz);return d.createElement("defs",null,d.createElement("marker",c0({id:t,markerWidth:r,markerHeight:a,markerUnits:s},u),l))}u0.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 Qz=["id","size","strokeWidth"];function d0(){return d0=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},d0.apply(this,arguments)}function Zz(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 Jz(e){var t=e.id,n=e.size,r=n===void 0?9:n,o=e.strokeWidth,a=o===void 0?1:o,i=Zz(e,Qz),s=r+a*2,l=r,u=s/2,f="0 0, "+r+" "+r/2+", 0 "+r;return d.createElement(u0,d0({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 Rz=["id","size","strokeWidth"];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 eW(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 tW(e){var t=e.id,n=e.size,r=n===void 0?9:n,o=e.strokeWidth,a=o===void 0?1:o,i=eW(e,Rz),s=r*2,l=s+a,u=l/2;return d.createElement(u0,f0({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 nW({data:e,xAccessor:t,yAccessor:n,connectNulls:r=!1}){const o=d.useContext(Pt),a=r?e.filter(i=>i.y!==null):e;return a.length===0?null:c.jsxs(c.Fragment,{children:[c.jsx(tW,{id:"marker-circle",stroke:"#666",size:6,refX:7,fill:"transparent",strokeWidth:2}),c.jsx(Jz,{id:"marker-arrow",stroke:"#666",size:14,strokeWidth:2,markerUnits:"userSpaceOnUse"}),c.jsx(x5,{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:aa,shapeRendering:"geometricPrecision",markerStart:"url(#marker-circle)",markerEnd:"url(#marker-arrow)"})]})}const rW=({x:e,y:t,datum:n,size:r})=>c.jsx(ao,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.light,r:r/2}),oW=({x:e,y:t,datum:n})=>c.jsx(ao,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.dark,r:5,style:{zIndex:1500}}),yl={xAccessor:e=>e==null?void 0:e.x,yAccessor:e=>e==null?void 0:e.y},r8=(e,t,n)=>n==="pre"?`${t}${e}`:`${e}${t}`,aW=10,iW=5,o8=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=iW,tooltipStackCharLimit:m=aW,withBackground:x=!0},y)=>{const w=d.useRef(null),b=e===1;_n(w,y,`${o}-${a}-DirectedLineChart`);const A=d.useMemo(()=>t.map(({seriesMetaData:$},P)=>{const{employee:I}=$;return{id:I.id,name:I.name,color:Ye(P)}}).slice(0,p==="mini"?g:t.length),[t,p,g]),[C,M]=d.useState(()=>A.filter(($,P)=>p==="full"||P<g).map($=>$.id)),T=d.useMemo(()=>t.map(($,P)=>({nodeId:$.seriesMetaData.employee.id,points:$.xValues.map((I,j)=>{var E;let B=null;return b?B=1/t.length*(P+1)+1/(t.length*10)*(j+1):B=((E=$==null?void 0:$.yValues)==null?void 0:E[j])??null,{x:$.xValues[j],y:B,pointMetaData:$.pointsMetaData[j],nodeId:$.seriesMetaData.employee.id,color:Ye(P)}})})).slice(0,p==="mini"?g:t.length),[t,p,g,b]),_=d.useMemo(()=>p==="full"?T.filter(({nodeId:$})=>C.includes($)):T,[T,p,C]),k=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:ce("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(lr,{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(Mo,{hideTicks:!0,orientation:"bottom",stroke:"#CFD7DF",strokeWidth:1,numTicks:6,tickFormat:$=>l?r8($,l.symbol,l.position):$,tickComponent:$=>c.jsx(Xa,{textLabel:$.formattedValue||"",x:$.x,y:$.y,textStyles:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle"},axisCharLimit:h??k}),label:`${o} ➔`,labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx(Mo,{hideTicks:!0,numTicks:b?0:6,strokeWidth:b?0:1,orientation:"left",stroke:"#CFD7DF",label:a?`${a} ➔`:"",tickFormat:$=>u?r8($,u.symbol,u.position):$,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"}}),_.map(($,P)=>c.jsxs(c.Fragment,{children:[c.jsx(nW,{data:$.points,xAccessor:yl.xAccessor,yAccessor:yl.yAccessor,connectNulls:v}),c.jsx(S4,{dataKey:`Performance Management ${P}`,data:$.points,size:8,renderGlyph:rW,xAccessor:yl.xAccessor,yAccessor:yl.yAccessor})]})),c.jsx(rl,{showDatumGlyph:!0,scroll:!0,showVerticalCrosshair:!0,showHorizontalCrosshair:!0,debounce:500,snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,detectBounds:!0,unstyled:!0,applyPositionStyle:!0,renderGlyph:oW,renderTooltip:({tooltipData:$})=>{var j,B,E,L,H,W,N,O,D;const P=t.find(K=>{var Y;return K.id===((Y=$==null?void 0:$.nearestDatum)==null?void 0:Y.datum.nodeId)}),I=((j=$==null?void 0:$.nearestDatum)==null?void 0:j.datum)&&String((B=$==null?void 0:$.nearestDatum)==null?void 0:B.datum.x).length<m;return c.jsx(n8,{xValue:(E=$==null?void 0:$.nearestDatum)==null?void 0:E.datum.x,yValue:(L=$==null?void 0:$.nearestDatum)==null?void 0:L.datum.y,xAxisLabel:o,yAxisLabel:a,showSideBySide:!!I,tooltipTitle:f,otherDataPoints:((N=(W=(H=$==null?void 0:$.nearestDatum)==null?void 0:H.datum)==null?void 0:W.pointMetaData)==null?void 0:N.otherDataPoints)??[],seriesMetaData:P==null?void 0:P.seriesMetaData,pointMetaData:(D=(O=$==null?void 0:$.nearestDatum)==null?void 0:O.datum)==null?void 0:D.pointMetaData})}})]})}),p==="full"&&c.jsx(Xz,{nodes:A,seriesSelectorTitle:"Team members",selectedNodeIds:C,setSelectedNodeIds:M})]})})});o8.displayName="LineBase";const a8=d.forwardRef((e,t)=>c.jsx(Jn,{debounceTime:10,children:({width:n,height:r})=>c.jsx(o8,{ref:t,width:n,height:r,...e})}));a8.displayName="DirectedLineChart";const i8=a8,sW=[{"#FFEFD4":"#AF5C20"},{"#DBF2D3":"#44812F"},{"#BFE8C6":"#1A5724"},{"#FFE7C5":"#8C6A00"},{"#FAD4D4":"#C62C02"},{"#EAEAEA":"#333333"},{"#E6F1FD":"#1565BC"},{"#FFE1D9":"#C62C02"}];function lW({box:e,showCountData:t=!1}){function n(r){if(!r)return"#333";const o=sW.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",Yb(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 cW=({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},uW=({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},s8=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 _n(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:uW({rows:e,columns:t,boxData:r}),gridTemplateColumns:cW({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(lW,{box:v,showCountData:f})},v.label+v.color+g))}),u==="full"&&c.jsx("div",{className:"inline-flex w-64 shrink-0 grow-0"})]})});s8.displayName="GridChart";const l8=s8,c8=d.forwardRef(({directedLineChartProps:e,gridChartProps:t,mode:n="mini"},r)=>{const o=d.useRef(null);return _n(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(l8,{...t,mode:n})}),c.jsxs("div",{className:"absolute h-full w-full",children:[c.jsx(i8,{...e,mode:n}),c.jsx("div",{})]})]})});c8.displayName="GridDirectedLineChart";const dW=c8,wl="ToggleGroup",[u8,vU]=nt(wl,[Rr]),d8=Rr(),fW=d.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return d.createElement(pW,q({},o,{ref:t}))}if(n==="multiple"){const o=r;return d.createElement(hW,q({},o,{ref:t}))}throw new Error(`Missing prop \`type\` expected on \`${wl}\``)}),[f8,p8]=u8(wl),pW=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(f8,{scope:e.__scopeToggleGroup,type:"single",value:i?[i]:[],onItemActivate:s,onItemDeactivate:d.useCallback(()=>s(""),[s])},d.createElement(h8,q({},a,{ref:t})))}),hW=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(f8,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:l,onItemDeactivate:u},d.createElement(h8,q({},a,{ref:t})))}),[gW,vW]=u8(wl),h8=d.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...l}=e,u=d8(n),f=Wn(i),p={role:"group",dir:f,...l};return d.createElement(gW,{scope:n,rovingFocus:o,disabled:r},o?d.createElement(Dc,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})))}),p0="ToggleGroupItem",mW=d.forwardRef((e,t)=>{const n=p8(p0,e.__scopeToggleGroup),r=vW(p0,e.__scopeToggleGroup),o=d8(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(Fc,q({asChild:!0},o,{focusable:!i,active:a,ref:l}),d.createElement(g8,q({},s,{ref:t}))):d.createElement(g8,q({},s,{ref:t}))}),g8=d.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=p8(p0,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return d.createElement(t1,q({},s,o,{ref:t,onPressedChange:l=>{l?a.onItemActivate(r):a.onItemDeactivate(r)}}))}),bW=fW,yW=mW;function wW({children:e,...t}){return c.jsx(bW,{className:"flex gap-2",...t,children:e})}function xW({value:e,disabled:t,selected:n,icon:r,label:o,count:a,...i}){return c.jsx(yW,{asChild:!0,value:e,...i,children:c.jsx("button",{"data-deer-btn":!0,type:"button",className:ce("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(Pe,{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",[h0,CW,AW]=vr(qa),[g0,SW,EW]=vr(qa),[v0,mU]=nt(qa,[AW,EW]),[MW,Lr]=v0(qa),[$W,bU]=v0(qa),TW=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,k=>h(k)),g=Wn(u),m=d.useRef(0),x=d.useRef(0),y=d.useRef(0),[w,b]=d.useState(!0),[A="",C]=ut({prop:r,onChange:k=>{const $=k!=="",P=s>0;$?(window.clearTimeout(y.current),P&&b(!1)):(window.clearTimeout(y.current),y.current=window.setTimeout(()=>b(!0),s)),o==null||o(k)},defaultProp:a}),M=d.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>C(""),150)},[C]),T=d.useCallback(k=>{window.clearTimeout(x.current),C(k)},[C]),_=d.useCallback(k=>{A===k?window.clearTimeout(x.current):m.current=window.setTimeout(()=>{window.clearTimeout(x.current),C(k)},i)},[A,C,i]);return d.useEffect(()=>()=>{window.clearTimeout(m.current),window.clearTimeout(x.current),window.clearTimeout(y.current)},[]),d.createElement(PW,{scope:n,isRootMenu:!0,value:A,dir:g,orientation:l,rootNavigationMenu:p,onTriggerEnter:k=>{window.clearTimeout(m.current),w?_(k):T(k)},onTriggerLeave:()=>{window.clearTimeout(m.current),M()},onContentEnter:()=>window.clearTimeout(x.current),onContentLeave:M,onItemSelect:k=>{C($=>$===k?"":k)},onItemDismiss:()=>C("")},d.createElement(me.nav,q({"aria-label":"Main","data-orientation":l,dir:g},f,{ref:v})))}),PW=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(MW,{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(M=>(M.set(A,C),new Map(M)))},[]),onViewportContentRemove:d.useCallback(A=>{y(C=>C.has(A)?(C.delete(A),new Map(C)):C)},[])},d.createElement(h0.Provider,{scope:t},d.createElement($W,{scope:t,items:x},i)))},kW="NavigationMenuList",OW=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Lr(kW,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(h0.Slot,{scope:n},o.isRootMenu?d.createElement(y8,{asChild:!0},a):a))}),NW="NavigationMenuItem",[DW,v8]=v0(NW),FW=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=m0(s.current);m.length&&b0(g==="start"?m:m.reverse())}},[]),v=d.useCallback(()=>{if(s.current){const g=m0(s.current);g.length&&(f.current=VW(g))}},[]);return d.createElement(DW,{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})))}),m8="NavigationMenuTrigger",_W=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,a=Lr(m8,e.__scopeNavigationMenu),i=v8(m8,e.__scopeNavigationMenu),s=d.useRef(null),l=Se(s,i.triggerRef,t),u=A8(a.baseId,i.value),f=S8(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(h0.ItemSlot,{scope:n,value:i.value},d.createElement(x8,{asChild:!0},d.createElement(me.button,q({id:u,disabled:r,"data-disabled":r?"":void 0,"data-state":C8(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,y0(()=>{r||h.current||i.wasEscapeCloseRef.current||p.current||(a.onTriggerEnter(i.value),p.current=!0)})),onPointerLeave:de(e.onPointerLeave,y0(()=>{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(s2,{"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})))}),b8="navigationMenu.linkSelect",IW=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...a}=e;return d.createElement(x8,{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(b8,{bubbles:!0,cancelable:!0});if(s.addEventListener(b8,u=>o==null?void 0:o(u),{once:!0}),ei(s,l),!l.defaultPrevented&&!i.metaKey){const u=new CustomEvent(Cl,{bubbles:!0,cancelable:!0});ei(s,u)}},{checkForDefaultPrevented:!1})})))}),xl="NavigationMenuContent",LW=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Lr(xl,e.__scopeNavigationMenu),a=v8(xl,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(BW,q({forceMount:n},l,{ref:i})):d.createElement(Tt,{present:n||s},d.createElement(zW,q({"data-state":C8(s)},l,{ref:i,onPointerEnter:de(e.onPointerEnter,o.onContentEnter),onPointerLeave:de(e.onPointerLeave,y0(o.onContentLeave)),style:{pointerEvents:!s&&o.isRootMenu?"none":void 0,...l.style}})))}),BW=d.forwardRef((e,t)=>{const n=Lr(xl,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}),Cl="navigationMenu.rootContentDismiss",zW=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:a,wasEscapeCloseRef:i,onRootContentClose:s,onContentFocusOutside:l,...u}=e,f=Lr(xl,n),p=d.useRef(null),h=Se(p,t),v=A8(f.baseId,r),g=S8(f.baseId,r),m=CW(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(Cl,A),()=>b.removeEventListener(Cl,A)}},[f.isRootMenu,e.value,o,y,s]);const w=d.useMemo(()=>{const A=m().map($=>$.value);f.dir==="rtl"&&A.reverse();const C=A.indexOf(f.value),M=A.indexOf(f.previousValue),T=r===f.value,_=M===A.indexOf(r);if(!T&&!_)return x.current;const k=(()=>{if(C!==M){if(T&&M!==-1)return C>M?"from-end":"from-start";if(_&&C!==-1)return C>M?"to-start":"to-end"}return null})();return x.current=k,k},[f.previousValue,f.value,f.dir,m,r]);return d.createElement(y8,{asChild:!0},d.createElement(Wo,q({id:g,"aria-labelledby":v,"data-motion":w,"data-orientation":f.orientation},u,{ref:h,onDismiss:()=>{var b;const A=new Event(Cl,{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=m().some(_=>{var k;return(k=_.ref.current)===null||k===void 0?void 0:k.contains(C)}),T=f.isRootMenu&&((A=f.viewport)===null||A===void 0?void 0:A.contains(C));(M||T||!f.isRootMenu)&&b.preventDefault()}),onKeyDown:de(e.onKeyDown,b=>{const A=b.altKey||b.ctrlKey||b.metaKey;if(b.key==="Tab"&&!A){const T=m0(b.currentTarget),_=document.activeElement,k=T.findIndex(I=>I===_),P=b.shiftKey?T.slice(0,k).reverse():T.slice(k+1,T.length);if(b0(P))b.preventDefault();else{var M;(M=a.current)===null||M===void 0||M.focus()}}}),onEscapeKeyDown:de(e.onEscapeKeyDown,b=>{i.current=!0})})))}),WW="FocusGroup",y8=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Lr(WW,n);return d.createElement(g0.Provider,{scope:n},d.createElement(g0.Slot,{scope:n},d.createElement(me.div,q({dir:o.dir},r,{ref:t}))))}),w8=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],jW="FocusGroupItem",x8=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=SW(n),a=Lr(jW,n);return d.createElement(g0.ItemSlot,{scope:n},d.createElement(me.button,q({},r,{ref:t,onKeyDown:de(e.onKeyDown,i=>{if(["Home","End",...w8].includes(i.key)){let l=o().map(p=>p.ref.current);if([a.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(i.key)&&l.reverse(),w8.includes(i.key)){const p=l.indexOf(i.currentTarget);l=l.slice(p+1)}setTimeout(()=>b0(l)),i.preventDefault()}})})))});function m0(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 b0(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function VW(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 C8(e){return e?"open":"closed"}function A8(e,t){return`${e}-trigger-${t}`}function S8(e,t){return`${e}-content-${t}`}function y0(e){return t=>t.pointerType==="mouse"?e(t):void 0}const UW=TW,HW=OW,GW=FW,YW=_W,E8=IW,XW=LW,qW=Ue(["rabbit-ds h-full w-full px-3 py-2 [&>*:first-child]:h-full"],{variants:{variant:{default:""},defaultVariant:{variant:"default"}}});function KW(){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 M8=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(KW,{})}),c.jsx(UW,{className:ce(qW({className:e})),orientation:"vertical",ref:r,...n,children:c.jsx(HW,{className:"m-0 flex h-full flex-col p-0",children:t})})]}));M8.displayName="LeftNav";const w0=d.forwardRef(({children:e,asChild:t=!1,...n},r)=>{const o=t?ln:"div";return c.jsx(GW,{asChild:!0,children:c.jsx(o,{ref:r,className:"rabbit-ds",...n,children:e})})});w0.displayName="LeftNavItem",w0.defaultProps={asChild:!1};const QW=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"}}}),$8=d.forwardRef(({children:e,align:t,...n},r)=>c.jsx("div",{ref:r,className:ce(QW({variant:t})),...n,children:e}));$8.displayName="LeftNavItem";const T8=d.forwardRef((e,t)=>c.jsx(E8,{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"})})]})]})}));T8.displayName="LeftNavHome";const ZW=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"}}),JW=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"}}),P8=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(E8,{"data-deer-btn":!0,className:ce(ZW({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(Pe,{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:ce(JW({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(Pe,{IconSVG:X0,size:"large"})})]})}));P8.displayName="LeftNavButton";const RW=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 ej({className:e,isCollapsed:t,...n}){return c.jsx("button",{"data-deer-btn":!0,type:"button",className:ce(RW({variant:t?"collapsed":"default"}),e),...n,children:c.jsx(Pe,{IconSVG:U0,className:t?"rotate-180":""})})}const k8=d.createContext({isOpen:!1,toggleOpen:()=>{}}),tj=()=>d.useContext(k8);function O8({...e}){const{isOpen:t,toggleOpen:n}=tj();return c.jsx(ej,{className:`absolute right-0 top-5 z-20 ${t?"":"translate-x-full"}`,isCollapsed:!t,onClick:n,...e})}function nj(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(k8.Provider,{value:u,children:c.jsxs("div",{className:ce("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(O8,{}),c.jsx("div",{className:s?"h-full p-5":"invisible h-0 w-0 scale-0 overflow-hidden opacity-0",children:t})]})})}function rj({children:e}){return c.jsx("div",{className:ce("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 oj({children:e}){return c.jsx("div",{className:"p-2 text-xs font-semibold text-font-secondary",children:e})}function aj({children:e,...t}){return c.jsx(a2,{...t,children:e})}const ij=Ue("shrink-0",{variants:{orientation:{horizontal:"ml-2",vertical:"mt-2 w-full [&>div]:w-full [&_button]:w-full"}},defaultVariants:{orientation:"horizontal"}});function sj({className:e,orientation:t,...n}){return c.jsx("div",{className:ij({orientation:t}),children:c.jsx(Dt,{className:e,variant:"outline",...n})})}const lj={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 cj({title:e,achieved:t,status:n}){const r=lj[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:ce(r.colorScheme,"font-semibold text-3xl !bg-transparent"),children:[t,"%"]})]}),c.jsx(es,{colorScheme:r.colorScheme,className:"mb-1",children:r.label})]})]})})}function uj({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 dj({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 fj({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 pj=Ue("",{variants:{orientation:{horizontal:"flex-row",vertical:"min-w-max flex-col"}},defaultVariants:{orientation:"horizontal"}});function hj({className:e,children:t,orientation:n}){return c.jsx("div",{className:ce("rabbit-ds","w-full flex items-center rounded-lg p-4 bg-[#FDFDFD] border border-solid border-[#F3F5F8]",pj({orientation:n}),e),children:t})}function gj({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:ce("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?j0:Wr,children:["View ",f?"less":"more"]})})]})}function vj({surveyName:e,date:t}){return c.jsx("div",{className:"rabbit-ds mr-auto",children:c.jsxs("div",{className:"flex gap-2",children:[c.jsx(Pe,{IconSVG:Q0}),c.jsxs("div",{className:"flex flex-col items-start text-sm",children:[c.jsx("span",{className:"font-semibold",children:e}),c.jsx(yc,{date:t,showRelativeTime:!0})]})]})})}const mj=Ue("",{variants:{variant:{single:"flex-row [&>div]:items-start",multiple:"flex-col"}},defaultVariants:{variant:"single"}});function N8({employeeName:e,employeeProfilePhoto:t,scheduleDate:n,duration:r,variant:o="single",subTitle:a}){return c.jsx("div",{className:ce("rabbit-ds",o==="single"?"mr-auto":"my-auto"),children:c.jsxs("div",{className:ce("flex items-center text-sm gap-2",mj({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(yc,{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})]})]})})}N8.defaultProps={subTitle:void 0,scheduleDate:void 0};function bj({label:e,onClick:t,customCompProps:n}){const[r,o]=d.useState(1);return c.jsxs(Vc,{children:[c.jsx(Hi,{children:c.jsx("span",{children:e})}),c.jsx(jc,{children:c.jsx(Gi,{children:c.jsx(eo,{children:c.jsxs("div",{className:"flex flex-col p-2",children:[c.jsx(a1,{htmlFor:n==null?void 0:n.label,className:"text-xs",children:n==null?void 0:n.label}),c.jsx(n1,{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 yj({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(Pe,{IconSVG:Y0})})}),c.jsx(Zo,{className:"w-56",onFocusOutside:()=>n(!1),onPointerDownOutside:()=>n(!1),children:c.jsx(eo,{children:e.map(({type:o,onClick:a,label:i,customCompProps:s})=>!o||o==="default"?c.jsx(Jo,{onClick:()=>r(a),children:c.jsx("span",{children:i})},i):c.jsx(bj,{onClick:l=>r(a,l),label:i,customCompProps:s},i))})})]})}const D8=Jo,F8=eo,_8=Ui,I8=qi,L8=Yi,B8=Xi,z8=d.forwardRef(({className:e,children:t,align:n="end",...r},o)=>c.jsx(Zo,{ref:o,align:n,...r,children:t}));z8.displayName="SplitButtonDropdownContent";const wj=Ue("",{variants:{size:{normal:"icon",small:"smallIcon",icon:"icon",smallIcon:"smallIcon",nav:"icon"}},defaultVariants:{size:"normal"}});function xj({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:wj({size:t}),iconLeft:Wr})})]})})}D8.displayName="SplitButtonDropdownItem",F8.displayName="SplitButtonDropdownGroup",_8.displayName="SplitButtonDropdownRadioGroup",I8.displayName="SplitButtonDropdownLabel",L8.displayName="SplitButtonDropdownCheckboxItem",B8.displayName="SplitButtonDropdownRadioItem",V.Accordion=H1,V.AccordionContent=X1,V.AccordionItem=G1,V.AccordionTrigger=Y1,V.Add=Xb,V.Alert=q1,V.AlertDescription=Q1,V.AlertDialogAction=zp,V.AlertDialogCancel=Bp,V.AlertDialogComponent=O9,V.AlertDialogContainer=Ip,V.AlertDialogContent=pc,V.AlertDialogDescription=gc,V.AlertDialogOverlay=fc,V.AlertDialogPortal=Lp,V.AlertDialogTitle=hc,V.AlertDialogTrigger=Wp,V.AlertIcon=K1,V.Avatar=dn,V.AvatarBadge=Ki,V.AvatarFallback=Ci,V.AvatarGroup=ou,V.AvatarImage=fn,V.Breadcrumb=G2,V.BreadcrumbEllipsis=Z2,V.BreadcrumbItem=X2,V.BreadcrumbLink=q2,V.BreadcrumbList=Y2,V.BreadcrumbPage=K2,V.BreadcrumbSeparator=Q2,V.Button=Dt,V.Calendar=qb,V.Caption=vc,V.Card=zo,V.CardContent=Yl,V.CardDescription=N1,V.CardHeader=O1,V.CardKPI=OE,V.CardTitle=Gl,V.Carousel=IM,V.CarouselContainer=LM,V.CarouselNextButton=zM,V.CarouselPrevButton=BM,V.Check=Io,V.CheckCircleOutline=B0,V.Checkbox=ri,V.ChevronDown=Wr,V.ChevronLeft=Kb,V.ChevronLeftCircle=z0,V.ChevronRight=ni,V.ChevronRightCircle=W0,V.ChevronUp=j0,V.Chip=M6,V.ChipGroup=wW,V.ChipGroupItem=xW,V.Close=V0,V.CollapseNavigation=U0,V.CollapsibleCard=Sy,V.ColumnFilter=H0,V.ColumnFilterCheck=Z0,V.Company=Qb,V.DateTime=yc,V.Develop=Zb,V.DirectedLineChart=i8,V.DonutChart=jz,V.Download=Jb,V.Dropdown=ji,V.DropdownCheckboxItem=Yi,V.DropdownChip=r2,V.DropdownContent=Zo,V.DropdownGroup=eo,V.DropdownItem=Jo,V.DropdownLabel=qi,V.DropdownPortal=jc,V.DropdownRadioGroup=Ui,V.DropdownRadioItem=Xi,V.DropdownSeparator=Uc,V.DropdownSub=Vc,V.DropdownSubContent=Gi,V.DropdownSubTrigger=Hi,V.DropdownTrigger=Vi,V.Engagement=Rb,V.EngagementNudgeData=vj,V.ErrorOutline=Il,V.ExpandDown=e6,V.ExpandRight=G0,V.Feedback=t6,V.Gear=n6,V.Goal=r6,V.GoalsNudgeData=cj,V.GridChart=l8,V.GridDirectedLineChart=dW,V.Help=o6,V.HistogramChart=Bz,V.Home=a6,V.Icon=Pe,V.InfoWorkZero=Ll,V.Initiatives=i6,V.Input=n1,V.KebabMenu=Y0,V.KnowTeamNudgeData=N8,V.Label=a1,V.LeftNav=M8,V.LeftNavButton=P8,V.LeftNavGroup=$8,V.LeftNavHome=T8,V.LeftNavItem=w0,V.LeftNavItemContent=XW,V.LeftNavItemDropdown=ji,V.LeftNavItemDropdownCheckboxItem=Yi,V.LeftNavItemDropdownContent=Zo,V.LeftNavItemDropdownGroup=eo,V.LeftNavItemDropdownItem=Jo,V.LeftNavItemDropdownLabel=qi,V.LeftNavItemDropdownPortal=jc,V.LeftNavItemDropdownRadioGroup=Ui,V.LeftNavItemDropdownRadioItem=Xi,V.LeftNavItemDropdownSeparator=Uc,V.LeftNavItemDropdownSub=Vc,V.LeftNavItemDropdownSubContent=Gi,V.LeftNavItemDropdownSubTrigger=Hi,V.LeftNavItemDropdownTrigger=Vi,V.LeftNavItemTrigger=YW,V.LineChart=Cz,V.ListItem=a2,V.ListItemIcon=TA,V.ListItemText=MA,V.Manager=s6,V.ManagerWithBorder=l6,V.MeshLogo=J0,V.MeshMaven=m6,V.MeshMavenAsk=b6,V.MeshMavenDisabledThumbsUp=y6,V.MeshMavenWithHording=w6,V.MeshMavenWithOrangeBulb=x6,V.MeshMavenWithThumbsUp=C6,V.Metric=eg,V.MetricCard=R2,V.MetricCardText=au,V.MetricCardTitle=tg,V.MyOneOnOne=c6,V.NavCollapseButtonL2=O8,V.NavGroupL2=rj,V.NavGroupTitleL2=oj,V.NavItemL2=aj,V.NavL2=nj,V.NudgeAction=sj,V.NudgeCard=gj,V.NudgeCardItem=hj,V.NudgeKebabMenu=yj,V.Overflow=X0,V.Person=u6,V.Product=d6,V.ProfileCard=iu,V.ProfileCardItem=ng,V.ProfileCardKey=rg,V.ProfileCardValue=og,V.ProgressBar=h1,V.ProgressInfo=PE,V.ProgressSlider=py,V.RadarChart=Vz,V.RequestFeedback=f6,V.RequestedFeedbackNudgeData=fj,V.Reviews=p6,V.ReviewsNudgeData=uj,V.Role=h6,V.SankeyChart=Nz,V.Search=q0,V.Select=vS,V.SelectContent=C2,V.SelectGroup=mS,V.SelectItem=S2,V.SelectLabel=A2,V.SelectSeparator=E2,V.SelectTrigger=x2,V.SelectValue=bS,V.ShareFeedback=g6,V.SharePraiseNudgeData=dj,V.SliderDrag=K0,V.SplitButton=xj,V.SplitButtonDropdownCheckboxItem=L8,V.SplitButtonDropdownContent=z8,V.SplitButtonDropdownGroup=F8,V.SplitButtonDropdownItem=D8,V.SplitButtonDropdownLabel=I8,V.SplitButtonDropdownRadioGroup=_8,V.SplitButtonDropdownRadioItem=B8,V.StackedBarChart=Yz,V.Survey=Q0,V.Tabs=_2,V.TabsContent=B2,V.TabsList=I2,V.TabsTrigger=L2,V.Tag=es,V.Team=v6,V.Toaster=EE,V.Tooltip=eu,V.TooltipContent=ns,V.TooltipPortal=nu,V.TooltipProvider=Rc,V.TooltipTrigger=tu,V.TrendingDown=A6,V.TrendingUp=S6,V.getInitialsFromName=Yp,V.toast=gE,Object.defineProperty(V,Symbol.toStringTag,{value:"Module"})});
|
|
96
|
+
`}),Z.appendChild(G.createTextNode($t))}R.timeEnd("clone node"),ve==null||ve(Oe),pe!==!1&&te(Oe)&&(R.time("embed web font"),yield Dj(Oe,U),R.timeEnd("embed web font")),R.time("embed node"),K8(Oe,U);const _e=ie.length;let Ie=0;const Xe=()=>m(this,null,function*(){for(;;){const $t=ie.pop();if(!$t)break;try{yield $t}catch(Bn){De("Failed to run task",Bn)}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=Vj(Oe,U);return ae&&Ve.insertBefore(ae,Ve.children[0]),Z&&Ve.insertBefore(Z,Ve.children[0]),ye&&U8(U),Ae==null||Ae(Ve),Ve})}function Vj(S,z){const{width:U,height:G}=z,R=Bt(U,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 Pl(S,z){return m(this,null,function*(){var U;const G=yield zt(S,z),R=yield Q8(G),ie=et(R,G.isEnable("removeControlCharacter"));G.autoDestruct||(G.svgStyleElement=Mt(G.ownerDocument),G.svgDefsElement=(U=G.ownerDocument)==null?void 0:U.createElementNS(Lt,"defs"),G.svgStyles.clear());const Z=Ke(ie,R.ownerDocument);return yield In(Z,G)})}function Uj(S,z){return m(this,null,function*(){const U=yield zt(S,z),{log:G,type:R,quality:ie,dpi:Z}=U,ae=yield Pl(U);G.time("canvas to blob");const fe=yield cr(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=k(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 Do(S,z){return m(this,null,function*(){const U=yield zt(S,z),{log:G,quality:R,type:ie,dpi:Z}=U,ae=yield Pl(U);G.time("canvas to data url");let fe=ae.toDataURL(ie,R);if(["image/png","image/jpeg"].includes(ie)&&Z&&H&&W){const[pe,ge]=fe.split(",");let ye=0,ve=!1;if(ie==="image/png"){const Ve=j(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"?k(_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 Z8(S,z){return m(this,null,function*(){const U=yield zt(S,z),{width:G,height:R,ownerDocument:ie}=U,Z=yield Do(U),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,U.isEnable("removeControlCharacter"))})}function Hj(S,z){return m(this,null,function*(){const U=yield zt(S,z),{ownerDocument:G,width:R,height:ie,scale:Z,type:ae}=U,fe=ae==="image/svg+xml"?yield Z8(U):yield Do(U),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 Gj(S,z){return m(this,null,function*(){return Do(yield zt(S,v(h({},z),{type:"image/jpeg"})))})}function Yj(S,z){return m(this,null,function*(){const U=yield zt(S,z),G=yield Pl(U);return G.getContext("2d").getImageData(0,0,G.width,G.height).data})}function Xj(S,z){return m(this,null,function*(){return Do(yield zt(S,v(h({},z),{type:"image/png"})))})}function qj(S,z){return m(this,null,function*(){return Do(yield zt(S,v(h({},z),{type:"image/webp"})))})}n.createContext=El,n.destroyContext=U8,n.domToBlob=Uj,n.domToCanvas=Pl,n.domToDataUrl=Do,n.domToForeignObjectSvg=Q8,n.domToImage=Hj,n.domToJpeg=Gj,n.domToPixel=Yj,n.domToPng=Xj,n.domToSvg=Z8,n.domToWebp=qj,n.loadMedia=yt,n.waitUntilLoad=wn,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})})})(Zf,Zf.exports);var vz=Zf.exports;const _n=(e,t,n)=>{d.useImperativeHandle(t,()=>({download(){e.current&&vz.domToPng(e.current,{scale:5}).then(r=>{const o=document.createElement("a");o.download=`${n}.png`,o.href=r,o.click()})}}))},E4=[{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 E4[e%E4.length]}const pl=(e,t)=>d.Children.map(e,n=>d.isValidElement(n)&&typeof n.type=="function"&&n.type.displayName===t.displayName?n:null);function Jf({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 Rf({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 e0({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 t0({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=pl(e,Jf),o=pl(e,Rf),a=pl(e,e0),i=pl(e,t0);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:ce("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:ce("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:ce("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]})}Jf.displayName="Legend",Rf.displayName="Item",e0.displayName="Header",t0.displayName="Footer",ke.Legend=Jf,ke.Item=Rf,ke.Header=e0,ke.Footer=t0,ke.defaultProps={showSideBySide:!1};function M4({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})]})}M4.defaultProps={xValue:void 0,yValue:void 0};function mz({data:e,xAccessor:t,yAccessor:n,connectNulls:r=!1}){const o=d.useContext(Pt),a=r?e.filter(i=>i.y!==null):e;return a.length===0?null:c.jsx(x5,{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 bz=({x:e,y:t,datum:n,size:r})=>c.jsx(ao,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.light,r:r/2}),yz=({x:e,y:t,datum:n})=>c.jsx(ao,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.dark,r:5,style:{zIndex:1500}}),hl={xAccessor:e=>e.x,yAccessor:e=>e.y},$4=(e,t,n)=>n==="pre"?`${t}${e}`:`${e}${t}`,T4=10,wz=5,n0=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=wz,tooltipStackCharLimit:x=T4,seriesSelectorTitle:y,preselectedNodes:w},b)=>{const[A,C]=d.useState(()=>(w&&w<e.length?e.slice(0,w+1):e).map(I=>I.id)),M=d.useRef(null);_n(M,b,`${a}-${i}-LineChart`);const T=d.useMemo(()=>o.map((P,I)=>{const j=e.find(B=>B.id===P.id);return{points:P.data.map((B,E)=>({x:r[E],y:Number(B),nodeId:P.id,color:(j==null?void 0:j.color)??Ye(I)}))}}).slice(0,h==="mini"?m:o.length),[o,h,m,e,r]),_=d.useMemo(()=>h==="full"?T.filter(P=>A.includes(P.points[0].nodeId)):T,[T,A,h]),k=d.useMemo(()=>Math.floor((n-(h==="mini"?0:150))/(r.length*8)),[n,r,h]),$=d.useMemo(()=>T.reduce((P,I)=>I.points.length>P?I.points.length:P,0),[T]);return c.jsxs("div",{ref:M,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(lr,{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(L5,{columns:!1,numTicks:6,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),c.jsx(Mo,{hideTicks:!0,orientation:"bottom",stroke:"#CFD7DF",strokeWidth:1,numTicks:30,tickFormat:P=>u?$4(P,u.symbol,u.position):P,rangePadding:{end:10},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",angle:$>10?-90:0},axisCharLimit:v??k}),label:`${a} ➔`,labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx(Mo,{hideTicks:!0,numTicks:6,strokeWidth:1,orientation:"left",stroke:"#CFD7DF",label:`${i} ➔`,tickFormat:P=>f?$4(P,f.symbol,f.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"}}),_.map((P,I)=>c.jsxs(c.Fragment,{children:[c.jsx(mz,{data:P.points,xAccessor:hl.xAccessor,yAccessor:hl.yAccessor,connectNulls:g}),c.jsx(S4,{dataKey:`Performance Management ${I}`,data:P.points,size:8,renderGlyph:bz,xAccessor:hl.xAccessor,yAccessor:hl.yAccessor})]})),c.jsx(rl,{showDatumGlyph:!0,scroll:!0,debounce:500,snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,detectBounds:!0,unstyled:!0,applyPositionStyle:!0,renderGlyph:yz,renderTooltip:({tooltipData:P})=>{var B,E,L,H,W,N;const I=e.find(O=>{var D;return O.id===((D=P==null?void 0:P.nearestDatum)==null?void 0:D.datum.nodeId)}),j=((B=P==null?void 0:P.nearestDatum)==null?void 0:B.datum)&&((E=P==null?void 0:P.nearestDatum)==null?void 0:E.datum.x.length)<x;return c.jsx(M4,{xValue:(L=P==null?void 0:P.nearestDatum)==null?void 0:L.datum.x,yValue:(H=P==null?void 0:P.nearestDatum)==null?void 0:H.datum.y,xAxisLabel:a,yAxisLabel:i,showSideBySide:!!j,tooltipTitle:p,legendValue:(I==null?void 0:I.name)||"",legendDarkColor:((W=P==null?void 0:P.nearestDatum)==null?void 0:W.datum.color.dark)||Ye(0).dark,legendLightColor:((N=P==null?void 0:P.nearestDatum)==null?void 0:N.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}),"(",_.length??0,"/",T.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:T.map(P=>{const I=e.find(j=>j.id===P.points[0].nodeId);return 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:P.points[0].color.light,borderColor:P.points[0].color.dark},className:"mr-1 h-3 w-3 rounded-full border"}),I.name]}),c.jsx("div",{className:"flex items-center",children:c.jsx(ri,{checked:A.includes(I.id),onCheckedChange:j=>{let B=[...A];j?B=[...A,I.id]:B.splice(A.indexOf(I.id),1),C(B)}})})]},I.id)})})]})]}),h==="mini"&&c.jsx("div",{className:"flex flex-row flex-wrap justify-center gap-4 text-[10px] font-semibold text-font-secondary",children:T.map(P=>{const I=e.find(j=>j.id===P.points[0].nodeId);return c.jsxs("div",{className:"flex items-center justify-center gap-1",children:[c.jsx("div",{style:{backgroundColor:P.points[0].color.light,borderColor:P.points[0].color.dark},className:"h-3 w-3 rounded-full border"}),I==null?void 0:I.name]},I==null?void 0:I.id)})})]})}),xz={xAxisUnitSymbol:void 0,yAxisUnitSymbol:void 0,mode:"mini",xAxisCharLimit:void 0,tooltipStackCharLimit:T4,xAxisDomain:void 0,yAxisDomain:void 0,connectNulls:!1};n0.defaultProps=xz,n0.displayName="LineBase";const P4=d.forwardRef((e,t)=>c.jsx(Jn,{debounceTime:10,children:({width:n,height:r})=>c.jsx(n0,{ref:t,width:n,height:r,...e})}));P4.displayName="LineChart";const Cz=P4;function k4(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 Az(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 r0(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 Sz(e,t){return e.sourceLinks.length?e.depth:t-1}function gl(e){return function(){return e}}function O4(e,t){return vl(e.source,t.source)||e.index-t.index}function N4(e,t){return vl(e.target,t.target)||e.index-t.index}function vl(e,t){return e.y0-t.y0}function o0(e){return e.value}function Ez(e){return e.index}function Mz(e){return e.nodes}function $z(e){return e.links}function D4(e,t){const n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function F4({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 Tz(){let e=0,t=0,n=1,r=1,o=24,a=8,i,s=Ez,l=Sz,u,f,p=Mz,h=$z,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),F4(E),E}g.update=function(E){return F4(E),E},g.nodeId=function(E){return arguments.length?(s=typeof E=="function"?E:gl(E),g):s},g.nodeAlign=function(E){return arguments.length?(l=typeof E=="function"?E:gl(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:gl(E),g):p},g.links=function(E){return arguments.length?(h=typeof E=="function"?E:gl(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:L}){for(const[W,N]of E.entries())N.index=W,N.sourceLinks=[],N.targetLinks=[];const H=new Map(E.map((W,N)=>[s(W,N,E),W]));for(const[W,N]of L.entries()){N.index=W;let{source:O,target:D}=N;typeof O!="object"&&(O=N.source=D4(H,O)),typeof D!="object"&&(D=N.target=D4(H,D)),O.sourceLinks.push(N),D.targetLinks.push(N)}if(f!=null)for(const{sourceLinks:W,targetLinks:N}of E)W.sort(f),N.sort(f)}function x({nodes:E}){for(const L of E)L.value=L.fixedValue===void 0?Math.max(r0(L.sourceLinks,o0),r0(L.targetLinks,o0)):L.fixedValue}function y({nodes:E}){const L=E.length;let H=new Set(E),W=new Set,N=0;for(;H.size;){for(const O of H){O.depth=N;for(const{target:D}of O.sourceLinks)W.add(D)}if(++N>L)throw new Error("circular link");H=W,W=new Set}}function w({nodes:E}){const L=E.length;let H=new Set(E),W=new Set,N=0;for(;H.size;){for(const O of H){O.height=N;for(const{source:D}of O.targetLinks)W.add(D)}if(++N>L)throw new Error("circular link");H=W,W=new Set}}function b({nodes:E}){const L=k4(E,N=>N.depth)+1,H=(n-e-o)/(L-1),W=new Array(L);for(const N of E){const O=Math.max(0,Math.min(L-1,Math.floor(l.call(null,N,L))));N.layer=O,N.x0=e+O*H,N.x1=N.x0+o,W[O]?W[O].push(N):W[O]=[N]}if(u)for(const N of W)N.sort(u);return W}function A(E){const L=Az(E,H=>(r-t-(H.length-1)*i)/r0(H,o0));for(const H of E){let W=t;for(const N of H){N.y0=W,N.y1=W+N.value*L,W=N.y1+i;for(const O of N.sourceLinks)O.width=O.value*L}W=(r-W+i)/(H.length+1);for(let N=0;N<H.length;++N){const O=H[N];O.y0+=W*(N+1),O.y1+=W*(N+1)}I(H)}}function C(E){const L=b(E);i=Math.min(a,(r-t)/(k4(L,H=>H.length)-1)),A(L);for(let H=0;H<v;++H){const W=Math.pow(.99,H),N=Math.max(1-W,(H+1)/v);T(L,W,N),M(L,W,N)}}function M(E,L,H){for(let W=1,N=E.length;W<N;++W){const O=E[W];for(const D of O){let K=0,Y=0;for(const{source:ne,value:te}of D.targetLinks){let J=te*(D.layer-ne.layer);K+=j(ne,D)*J,Y+=J}if(!(Y>0))continue;let ee=(K/Y-D.y0)*L;D.y0+=ee,D.y1+=ee,P(D)}u===void 0&&O.sort(vl),_(O,H)}}function T(E,L,H){for(let W=E.length,N=W-2;N>=0;--N){const O=E[N];for(const D of O){let K=0,Y=0;for(const{target:ne,value:te}of D.sourceLinks){let J=te*(ne.layer-D.layer);K+=B(D,ne)*J,Y+=J}if(!(Y>0))continue;let ee=(K/Y-D.y0)*L;D.y0+=ee,D.y1+=ee,P(D)}u===void 0&&O.sort(vl),_(O,H)}}function _(E,L){const H=E.length>>1,W=E[H];$(E,W.y0-i,H-1,L),k(E,W.y1+i,H+1,L),$(E,r,E.length-1,L),k(E,t,0,L)}function k(E,L,H,W){for(;H<E.length;++H){const N=E[H],O=(L-N.y0)*W;O>1e-6&&(N.y0+=O,N.y1+=O),L=N.y1+i}}function $(E,L,H,W){for(;H>=0;--H){const N=E[H],O=(N.y1-L)*W;O>1e-6&&(N.y0-=O,N.y1-=O),L=N.y0-i}}function P({sourceLinks:E,targetLinks:L}){if(f===void 0){for(const{source:{sourceLinks:H}}of L)H.sort(N4);for(const{target:{targetLinks:H}}of E)H.sort(O4)}}function I(E){if(f===void 0)for(const{sourceLinks:L,targetLinks:H}of E)L.sort(N4),H.sort(O4)}function j(E,L){let H=E.y0-(E.sourceLinks.length-1)*i/2;for(const{target:W,width:N}of E.sourceLinks){if(W===L)break;H+=N+i}for(const{source:W,width:N}of L.targetLinks){if(W===E)break;H-=N}return H}function B(E,L){let H=L.y0-(L.targetLinks.length-1)*i/2;for(const{source:W,width:N}of L.targetLinks){if(W===E)break;H+=N+i}for(const{target:W,width:N}of E.sourceLinks){if(W===L)break;H-=N}return H}return g}function Pz({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 _4=80,I4=20,kz=30,Oz=12,L4=d.forwardRef(({height:e,width:t,tooltipTitle:n,nodes:r,links:o,groups:a,weightLabel:i},s)=>{const l=d.useMemo(()=>Tz().nodeId(E=>E.id).nodeWidth(Oz).nodePadding(kz).nodeAlign(E=>E.group),[]),u=d.useRef(null);_n(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:M}=za({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),T=d.useMemo(()=>l.extent([[_4,I4],[t-_4,e-I4-50]])({nodes:r,links:o.map(E=>({...E,value:Number(E.weight)}))}),[e,t,l,r,o]),_=d.useMemo(()=>Math.max(...T.nodes.map(E=>E.depth??0)),[T]),k=d.useMemo(()=>{const E={};let L=-1/0;return T.nodes.forEach(H=>{const{group:W}=H;E[W]?(E[W].x=Math.max(E[W].x??-1/0,H.x0??-1/0),E[W].y=Math.max(E[W].y??-1/0,H.y1??-1/0)):(E[W]={},E[W].x=H.x0,E[W].y=H.y1),L=Math.max(L,E[W].y??-1/0),E[W].y=L}),Object.keys(E).forEach(H=>{E[H].y=L}),E},[T]),$=d.useCallback(E=>{const L=l.nodeId()(E);p(f===L?"":L)},[f,l]),P=d.useCallback(()=>{p(""),v(null)},[]),I=d.useMemo(()=>f===""&&h===null?new Set:new Set(T.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,T,h,l]),j=d.useCallback((E,L)=>{const H=("clientX"in E?E.clientX:0)-A.left,W=("clientY"in E?E.clientY:0)-A.top;v(L),H&&W&&w({tooltipLeft:H,tooltipTop:W,tooltipData:L})},[w,A]),B=d.useCallback(()=>{P(),b()},[P,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:T.links.map(E=>c.jsx(fI,{data:E,source:L=>({x:L.source.x1,y:L.y0}),target:L=>({x:L.target.x0,y:L.y1}),x:L=>L.x??0,y:L=>L.y??0,fill:"none",pointerEvents:"stroke",onMouseLeave:()=>B(),onMouseMove:L=>j(L,E),stroke:Ye((E.source.index||0)+1).light,strokeWidth:E.width,strokeOpacity:I.has(E)?.7:.4},E.index))}),c.jsx("g",{children:T.nodes.map(E=>{var L,H,W;return c.jsx("g",{children:c.jsx(C5,{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:()=>$(E),onMouseLeave:()=>P(),radius:2,fill:f===E.id?(L=Ye((E.index||0)+1))==null?void 0:L.dark:(H=Ye((E.index||0)+1))==null?void 0:H.light,stroke:(W=Ye((E.index||0)+1))==null?void 0:W.dark,all:!0})},E.index)})}),c.jsx("g",{children:a.map(E=>c.jsx(Xa,{axisCharLimit:20,x:k[E.id].x??0,y:(k[E.id].y??0)+40,textLabel:E.name,textStyles:{fontSize:10,fontWeight:600,textAnchor:"middle",fill:"#666666"}},E.id))}),c.jsxs("g",{children:[T.nodes.map(E=>c.jsx(Xa,{axisCharLimit:8,x:E.depth===_?(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===_?"start":"end",fill:"#666666"}},E.index)),T.nodes.map(E=>E.value&&c.jsx(fa,{x:E.depth===_?(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===_?"start":"end",fill:"#666666"},children:`(${E.value.toString()})`},E.index))]})]}),y&&g&&c.jsx(M,{top:x,left:m,unstyled:!0,applyPositionStyle:!0,children:c.jsx(Pz,{tooltipData:g,fromLabel:`From: ${a[g.source.group].name}`,toLabel:`To: ${a[g.target.group].name}`,weightLabel:i,tooltipTitle:n})},Math.random())]})});L4.displayName="Sankey";const B4=d.forwardRef((e,t)=>c.jsx(Jn,{debounceTime:10,children:({width:n,height:r})=>n&&r&&c.jsx(L4,{ref:t,width:n,height:r,...e})}));B4.displayName="SankeyChart";const Nz=B4;function Dz(e){return"bandwidth"in e?e.bandwidth():0}var Fz=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function a0(){return a0=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},a0.apply(this,arguments)}function _z(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 z4(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=_z(e,Fz),A=w??Xd(a,m),C=(y??0)+Dz(a)/2,M=A.map(function(T,_){var k,$=((k=Ys(a(T)))!=null?k:0)+C;return{index:_,from:new Tn({x:0,y:$}),to:new Tn({x:i,y:$})}});return d.createElement(hn,{className:gt("visx-rows",h),top:n,left:o},v?v({lines:M}):M.map(function(T){var _=T.from,k=T.to,$=T.index;return d.createElement(bI,a0({key:"row-line-"+$,from:_,to:k,stroke:l,strokeWidth:f,strokeDasharray:p,style:x},b))}))}z4.propTypes={tickValues:re.array,width:re.number.isRequired};function W4({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})]})}W4.defaultProps={xValue:void 0,yValue:void 0};const j4=20,V4=50,i0=80,ml=50,Iz=10,Lz=25,s0=d.forwardRef(({tooltipTitle:e,xAxisLabel:t,yAxisLabel:n,domain:r,binCount:o,data:a,width:i,height:s,maxBinCount:l=Lz,minBinCount:u=Iz,integerBins:f=!1,integerYAxis:p=!1},h)=>{const v=d.useMemo(()=>Ss(a),[a]),{histogramDomain:g,threshold:m,thresholdInteger:x}=d.useMemo(()=>{const N=v[0]??0,O=N===v[1]?u+N:v[1]??0,D=O-N>u?O:u+N,K=Math.min(Math.max(O-N,u),l),Y=Math.floor(v[0]??0),ee=Math.ceil(D);return{histogramDomain:r||(f?[Y,ee]:[N,O]),threshold:K,thresholdInteger:Math.ceil(K)}},[v,r,f,l,u]),y=d.useMemo(()=>Eo({domain:g,range:[ml,i-V4],round:!0,nice:!0}),[g,i]),w=d.useMemo(()=>AN().domain(y.domain()).thresholds(o||(f?x:m))(a),[y,o,a,m,x,f]),b=d.useMemo(()=>Eo({domain:[0,id(w,N=>N.length)??0],range:[s-i0,j4],round:!0,nice:!0}),[w,s]),A=d.useMemo(()=>b.ticks().filter(N=>p?Number.isInteger(N):N),[p,b]),C=d.useRef(null);_n(C,h,`${t}-${n}-Histogram`);const{tooltipData:M,tooltipLeft:T,tooltipTop:_,tooltipOpen:k,showTooltip:$,hideTooltip:P}=Ba(),{containerBounds:I,containerRef:j,TooltipInPortal:B}=za({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),E=i-ml-V4,L=s-j4-i0-100,H=d.useCallback((N,O)=>{const D=("clientX"in N?N.clientX:0)-I.left,K=("clientY"in N?N.clientY:0)-I.top;D&&K&&$({tooltipLeft:D,tooltipTop:K,tooltipData:O})},[$,I]),W=d.useCallback(()=>{P()},[P]);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:j,children:[c.jsx(uf,{orientation:"bottom",scale:y,top:s-i0,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(uf,{orientation:"left",scale:b,left:ml,hideTicks:!0,strokeWidth:1,stroke:"#CFD7DF",tickFormat:Ca(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(z4,{scale:b,width:E,height:L,left:ml,top:0,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),w.map(N=>{const O=Math.abs(b(0)-b(N.length)),D=Math.abs(y(N.x1??0)-y(N.x0??0));return c.jsx("g",{children:c.jsx(tI,{x:y(N.x0??0),y:b(N.length),width:D,height:O&&O-1,fill:Ye(0).light,stroke:Ye(0).dark,strokeWidth:1,onMouseMove:K=>H(K,N),onMouseLeave:()=>W()})},Math.random())})]})]}),k&&M&&c.jsx(B,{top:_,left:T,unstyled:!0,applyPositionStyle:!0,children:c.jsx(W4,{xAxisLabel:t,xValue:`${M.x0} to ${M.x1}`,yAxisLabel:n,yValue:M.length,tooltipTitle:e,legendValue:n,legendDarkColor:Ye(0).dark,legendLightColor:Ye(0).light})},Math.random()),b.domain()[2]]})}),U4=d.forwardRef((e,t)=>c.jsx(Jn,{debounceTime:10,children:({width:n,height:r})=>c.jsx(s0,{ref:t,width:n,height:r,...e})}));s0.defaultProps={domain:void 0,binCount:void 0,integerBins:!1,integerYAxis:!1},s0.displayName="HistogramBase",U4.displayName="HistogramChart";const Bz=U4;function H4({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||""})]})}H4.defaultProps={};const zz=e=>e.value,Wz=e=>e.label,G4=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((M,T)=>{const _=("clientX"in M?M.clientX:0)-x.left,k=("clientY"in M?M.clientY:0)-x.top;_&&k&&g({tooltipLeft:_,tooltipTop:k,tooltipData:T})},[g,x]),C=d.useCallback(()=>{m()},[m]);return _n(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(q_,{data:r,pieValue:zz,outerRadius:u-10,innerRadius:u-Math.min(e*.07,22)-10,cornerRadius:2,padAngle:.025,children:M=>c.jsx(c.Fragment,{children:M.arcs.map(T=>{const _=Wz(T.data);return c.jsx("g",{children:c.jsx("path",{d:M.path(T)??void 0,fill:T.data.color,onMouseLeave:C,onMouseMove:k=>A(k,{label:a,value:T.value,tooltipTitle:o,unit:n,legendValue:_,legendDarkColor:T.data.labelColor,legendLightColor:T.data.color})})},`arc-${_}`)})})})})}),v&&f&&c.jsx(w,{top:h,left:p,unstyled:!0,applyPositionStyle:!0,children:c.jsx(H4,{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(M=>c.jsxs("div",{className:"flex items-center justify-center gap-1",children:[c.jsx("div",{style:{backgroundColor:M.color,borderColor:M.labelColor,color:M.labelColor,width:Math.min(e*.04,10),height:Math.min(e*.04,10)},className:"h-3 w-3 rounded-full border"}),`${M.label}: ${M.value}${n}`]},M.label))})]})});G4.displayName="DonutChartBase";const Y4=d.forwardRef((e,t)=>c.jsx(Jn,{debounceTime:10,children:({width:n,height:r})=>c.jsx(G4,{ref:t,width:n,height:r,...e})}));Y4.displayName="DonutChart";const jz=Y4;function X4({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})]})}X4.defaultProps={xValue:void 0,yValue:void 0};const bl={top:60,left:20,right:20,bottom:20},q4={start:10,end:-10,middle:0},K4=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);_n(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}),M=d.useCallback((O,D)=>{const K=Math.PI*2/O;return[...new Array(O)].map((Y,ee)=>({x:D*Math.sin(ee*K),y:D*Math.cos(ee*K)}))},[]),T=d.useCallback((O,D,K)=>K==="pre"?`${D}${O}`:`${O}${D}`,[]),_=d.useCallback((O,D,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=D(K(O[oe-1]))*Math.sin(oe*Y),Q=D(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}},[]),k=d.useMemo(()=>new Tn({x:0,y:0}),[]),$=d.useCallback(O=>Math.round(O)===0?"middle":O>0?"start":"end",[]),P=d.useCallback((O,D)=>{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:D})},[y,b]),I=d.useCallback(()=>{w()},[w]),j=d.useMemo(()=>e-bl.left-bl.right,[e]),B=d.useMemo(()=>t-bl.top-bl.bottom,[t]),E=d.useMemo(()=>Math.min(j,B)/2,[j,B]),L=u.length?u.reduce((O,D)=>{const K=D.data.filter(Y=>Y);return Math.max(O,...K)},-1/0):0,H=Eo({range:[0,E],domain:l??[0,L]}),W=M(f.length,E),N=O=>_(O,D=>H(D)??0,D=>D);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:I,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,D)=>c.jsx(A5,{x:e/2,y:t/2,fill:"none",stroke:"#CFD7DF",strokeWidth:1,strokeDasharray:4,r:E*(D+1)/n},`web1-${Math.random()}`)),f.map((O,D)=>c.jsxs(c.Fragment,{children:[c.jsx(Zd,{from:k,to:W[D],stroke:f.length===1?Ye(0).dark:"#CFD7DF",strokeWidth:1},`radar-line-${Math.random()}`),c.jsx(fa,{x:W[D].x,y:W[D].y,textAnchor:$(W[D].x),verticalAnchor:$(W[D].y),dx:q4[$(W[D].x)],dy:q4[$(W[D].y)],fontSize:10,fill:"#666666",width:a??100,children:`${s?T(f[(D+f.length-1)%f.length],s.symbol,s.position):f[(D+f.length-1)%f.length]}`})]})),u.map((O,D)=>c.jsx("polygon",{points:N(O.data).pointString,fill:Ye(D).light,fillOpacity:.2,stroke:Ye(D).dark,strokeWidth:1},`polypath-${Math.random()}`)),u.map((O,D)=>N(O.data).points.map((K,Y)=>c.jsx(A5,{cx:K.x,cy:K.y,r:5,fill:"transparent",onMouseMove:ee=>{var ne;return P(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(D).dark,legendLightColor:Ye(D).light})},onMouseOut:I},`radar-point-${Math.random()}`)))]})]}),x&&v&&c.jsx(C,{top:m,left:g,unstyled:!0,applyPositionStyle:!0,children:c.jsx(X4,{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())]})});K4.displayName="RadarChartBase";const Q4=d.forwardRef((e,t)=>c.jsx(Jn,{debounceTime:10,children:({width:n,height:r})=>c.jsx(K4,{ref:t,width:n,height:r,...e})}));Q4.displayName="RadarChart";const Vz=Q4;function Z4({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})]})}Z4.defaultProps={xValue:void 0,yValue:void 0};const Uz=({x:e,y:t,datum:n})=>c.jsx(ao,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.dark,r:5,style:{zIndex:1500}}),J4={xAccessor:e=>e.x,yAccessor:e=>e.y},R4=(e,t,n)=>n==="pre"?`${t}${e}`:`${e}${t}`,e8=10,Hz=5,l0=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=Hz,tooltipStackCharLimit:m=e8,seriesSelectorTitle:x,preselectedNodes:y},w)=>{const[b,A]=d.useState(()=>(y&&y<e.length?e.slice(0,y+1):e).map(P=>P.id)),C=d.useRef(null);_n(C,w,`${a}-${i}-StackedBarChart`);const M=d.useMemo(()=>o.map(($,P)=>{const I=e.find(j=>j.id===$.id);return{points:$.data.map((j,B)=>({x:r[B],y:Number(j),nodeId:$.id,color:(I==null?void 0:I.color)??Ye(P)}))}}).slice(0,h==="mini"?g:o.length),[o,h,g,e,r]),T=d.useMemo(()=>h==="full"?M.filter($=>b.includes($.points[0].nodeId)):M,[M,b,h]),_=d.useMemo(()=>Math.floor((n-(h==="mini"?0:150))/(r.length*8)),[n,r,h]),k=d.useMemo(()=>M.reduce(($,P)=>P.points.length>$?P.points.length:$,0),[M]);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(lr,{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(L5,{columns:!1,numTicks:6,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),c.jsx(Mo,{hideTicks:!0,orientation:"bottom",stroke:"#CFD7DF",strokeWidth:1,numTicks:30,tickFormat:$=>u?R4($,u.symbol,u.position):$,rangePadding:{end:10},tickComponent:$=>c.jsx(Xa,{textLabel:$.formattedValue||"",x:$.x,y:$.y,textStyles:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle",angle:k>10?-90:0},axisCharLimit:v??_}),label:`${a} ➔`,labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx(Mo,{hideTicks:!0,numTicks:6,strokeWidth:1,orientation:"left",stroke:"#CFD7DF",label:`${i} ➔`,tickFormat:$=>f?R4($,f.symbol,f.position):$,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(pz,{children:T.map($=>c.jsx(uz,{data:$.points,dataKey:$.points[0].nodeId,xAccessor:J4.xAccessor,yAccessor:J4.yAccessor,colorAccessor:P=>P.color.light,radiusTop:!0,radius:2},$.points[0].nodeId))}),c.jsx(rl,{showDatumGlyph:!0,scroll:!0,debounce:500,snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,detectBounds:!0,unstyled:!0,applyPositionStyle:!0,renderGlyph:Uz,renderTooltip:({tooltipData:$})=>{var j,B,E,L,H,W;const P=e.find(N=>{var O;return N.id===((O=$==null?void 0:$.nearestDatum)==null?void 0:O.datum.nodeId)}),I=((j=$==null?void 0:$.nearestDatum)==null?void 0:j.datum)&&((B=$==null?void 0:$.nearestDatum)==null?void 0:B.datum.x.length)<m;return c.jsx(Z4,{xValue:(E=$==null?void 0:$.nearestDatum)==null?void 0:E.datum.x,yValue:(L=$==null?void 0:$.nearestDatum)==null?void 0:L.datum.y,xAxisLabel:a,yAxisLabel:i,showSideBySide:!!I,tooltipTitle:p,legendValue:(P==null?void 0:P.name)||"",legendDarkColor:((H=$==null?void 0:$.nearestDatum)==null?void 0:H.datum.color.dark)||Ye(0).dark,legendLightColor:((W=$==null?void 0:$.nearestDatum)==null?void 0:W.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}),"(",T.length??0,"/",M.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:M.map($=>{const P=e.find(I=>I.id===$.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:$.points[0].color.light,borderColor:$.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:b.includes(P.id),onCheckedChange:I=>{let j=[...b];I?j=[...b,P.id]:j.splice(b.indexOf(P.id),1),A(j)}})})]},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:M.map($=>{const P=e.find(I=>I.id===$.points[0].nodeId);return c.jsxs("div",{className:"flex items-center justify-center gap-1",children:[c.jsx("div",{style:{backgroundColor:$.points[0].color.light,borderColor:$.points[0].color.dark},className:"h-3 w-3 rounded-full border"}),P==null?void 0:P.name]},P==null?void 0:P.id)})})]})}),Gz={xAxisUnitSymbol:void 0,yAxisUnitSymbol:void 0,mode:"mini",xAxisCharLimit:void 0,tooltipStackCharLimit:e8,xAxisDomain:void 0,yAxisDomain:void 0,connectNulls:!1};l0.defaultProps=Gz,l0.displayName="StackedBarChartBase";const t8=d.forwardRef((e,t)=>c.jsx(Jn,{debounceTime:10,children:({width:n,height:r})=>c.jsx(l0,{ref:t,width:n,height:r,...e})}));t8.displayName="StackedBarChart";const Yz=t8,Xz=({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 n8({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})]})}n8.defaultProps={xValue:void 0,yValue:void 0};var qz=["id","markerWidth","markerHeight","markerUnits","children"];function c0(){return c0=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},c0.apply(this,arguments)}function Kz(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 u0(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=Kz(e,qz);return d.createElement("defs",null,d.createElement("marker",c0({id:t,markerWidth:r,markerHeight:a,markerUnits:s},u),l))}u0.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 Qz=["id","size","strokeWidth"];function d0(){return d0=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},d0.apply(this,arguments)}function Zz(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 Jz(e){var t=e.id,n=e.size,r=n===void 0?9:n,o=e.strokeWidth,a=o===void 0?1:o,i=Zz(e,Qz),s=r+a*2,l=r,u=s/2,f="0 0, "+r+" "+r/2+", 0 "+r;return d.createElement(u0,d0({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 Rz=["id","size","strokeWidth"];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 eW(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 tW(e){var t=e.id,n=e.size,r=n===void 0?9:n,o=e.strokeWidth,a=o===void 0?1:o,i=eW(e,Rz),s=r*2,l=s+a,u=l/2;return d.createElement(u0,f0({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 nW({data:e,xAccessor:t,yAccessor:n,connectNulls:r=!1}){const o=d.useContext(Pt),a=r?e.filter(i=>i.y!==null):e;return a.length===0?null:c.jsxs(c.Fragment,{children:[c.jsx(tW,{id:"marker-circle",stroke:"#666",size:6,refX:7,fill:"transparent",strokeWidth:2}),c.jsx(Jz,{id:"marker-arrow",stroke:"#666",size:14,strokeWidth:2,markerUnits:"userSpaceOnUse"}),c.jsx(x5,{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:aa,shapeRendering:"geometricPrecision",markerStart:"url(#marker-circle)",markerEnd:"url(#marker-arrow)"})]})}const rW=({x:e,y:t,datum:n,size:r})=>c.jsx(ao,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.light,r:r/2}),oW=({x:e,y:t,datum:n})=>c.jsx(ao,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.dark,r:5,style:{zIndex:1500}}),yl={xAccessor:e=>e==null?void 0:e.x,yAccessor:e=>e==null?void 0:e.y},r8=(e,t,n)=>n==="pre"?`${t}${e}`:`${e}${t}`,aW=10,iW=5,o8=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=iW,tooltipStackCharLimit:m=aW,withBackground:x=!0},y)=>{const w=d.useRef(null),b=e===1;_n(w,y,`${o}-${a}-DirectedLineChart`);const A=d.useMemo(()=>t.map(({seriesMetaData:$},P)=>{const{employee:I}=$;return{id:I.id,name:I.name,color:Ye(P)}}).slice(0,p==="mini"?g:t.length),[t,p,g]),[C,M]=d.useState(()=>A.filter(($,P)=>p==="full"||P<g).map($=>$.id)),T=d.useMemo(()=>t.map(($,P)=>({nodeId:$.seriesMetaData.employee.id,points:$.xValues.map((I,j)=>{var E;let B=null;return b?B=1/t.length*(P+1)+1/(t.length*10)*(j+1):B=((E=$==null?void 0:$.yValues)==null?void 0:E[j])??null,{x:$.xValues[j],y:B,pointMetaData:$.pointsMetaData[j],nodeId:$.seriesMetaData.employee.id,color:Ye(P)}})})).slice(0,p==="mini"?g:t.length),[t,p,g,b]),_=d.useMemo(()=>p==="full"?T.filter(({nodeId:$})=>C.includes($)):T,[T,p,C]),k=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:ce("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(lr,{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(Mo,{hideTicks:!0,orientation:"bottom",stroke:"#CFD7DF",strokeWidth:1,numTicks:6,tickFormat:$=>l?r8($,l.symbol,l.position):$,tickComponent:$=>c.jsx(Xa,{textLabel:$.formattedValue||"",x:$.x,y:$.y,textStyles:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle"},axisCharLimit:h??k}),label:`${o} ➔`,labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx(Mo,{hideTicks:!0,numTicks:b?0:6,strokeWidth:b?0:1,orientation:"left",stroke:"#CFD7DF",label:a?`${a} ➔`:"",tickFormat:$=>u?r8($,u.symbol,u.position):$,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"}}),_.map(($,P)=>c.jsxs(c.Fragment,{children:[c.jsx(nW,{data:$.points,xAccessor:yl.xAccessor,yAccessor:yl.yAccessor,connectNulls:v}),c.jsx(S4,{dataKey:`Performance Management ${P}`,data:$.points,size:8,renderGlyph:rW,xAccessor:yl.xAccessor,yAccessor:yl.yAccessor})]})),c.jsx(rl,{showDatumGlyph:!0,scroll:!0,showVerticalCrosshair:!0,showHorizontalCrosshair:!0,debounce:500,snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,detectBounds:!0,unstyled:!0,applyPositionStyle:!0,renderGlyph:oW,renderTooltip:({tooltipData:$})=>{var j,B,E,L,H,W,N,O,D;const P=t.find(K=>{var Y;return K.id===((Y=$==null?void 0:$.nearestDatum)==null?void 0:Y.datum.nodeId)}),I=((j=$==null?void 0:$.nearestDatum)==null?void 0:j.datum)&&String((B=$==null?void 0:$.nearestDatum)==null?void 0:B.datum.x).length<m;return c.jsx(n8,{xValue:(E=$==null?void 0:$.nearestDatum)==null?void 0:E.datum.x,yValue:(L=$==null?void 0:$.nearestDatum)==null?void 0:L.datum.y,xAxisLabel:o,yAxisLabel:a,showSideBySide:!!I,tooltipTitle:f,otherDataPoints:((N=(W=(H=$==null?void 0:$.nearestDatum)==null?void 0:H.datum)==null?void 0:W.pointMetaData)==null?void 0:N.otherDataPoints)??[],seriesMetaData:P==null?void 0:P.seriesMetaData,pointMetaData:(D=(O=$==null?void 0:$.nearestDatum)==null?void 0:O.datum)==null?void 0:D.pointMetaData})}})]})}),p==="full"&&c.jsx(Xz,{nodes:A,seriesSelectorTitle:"Team members",selectedNodeIds:C,setSelectedNodeIds:M})]})})});o8.displayName="LineBase";const a8=d.forwardRef((e,t)=>c.jsx(Jn,{debounceTime:10,children:({width:n,height:r})=>c.jsx(o8,{ref:t,width:n,height:r,...e})}));a8.displayName="DirectedLineChart";const i8=a8,sW=[{"#FFEFD4":"#AF5C20"},{"#DBF2D3":"#44812F"},{"#BFE8C6":"#1A5724"},{"#FFE7C5":"#8C6A00"},{"#FAD4D4":"#C62C02"},{"#EAEAEA":"#333333"},{"#E6F1FD":"#1565BC"},{"#FFE1D9":"#C62C02"}];function lW({box:e,showCountData:t=!1}){function n(r){if(!r)return"#333";const o=sW.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",Yb(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 cW=({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},uW=({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},s8=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 _n(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:uW({rows:e,columns:t,boxData:r}),gridTemplateColumns:cW({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(lW,{box:v,showCountData:f})},v.label+v.color+g))}),u==="full"&&c.jsx("div",{className:"inline-flex w-64 shrink-0 grow-0"})]})});s8.displayName="GridChart";const l8=s8,c8=d.forwardRef(({directedLineChartProps:e,gridChartProps:t,mode:n="mini"},r)=>{const o=d.useRef(null);return _n(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(l8,{...t,mode:n})}),c.jsxs("div",{className:"absolute h-full w-full",children:[c.jsx(i8,{...e,mode:n}),c.jsx("div",{})]})]})});c8.displayName="GridDirectedLineChart";const dW=c8,wl="ToggleGroup",[u8,vU]=nt(wl,[Rr]),d8=Rr(),fW=d.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return d.createElement(pW,q({},o,{ref:t}))}if(n==="multiple"){const o=r;return d.createElement(hW,q({},o,{ref:t}))}throw new Error(`Missing prop \`type\` expected on \`${wl}\``)}),[f8,p8]=u8(wl),pW=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(f8,{scope:e.__scopeToggleGroup,type:"single",value:i?[i]:[],onItemActivate:s,onItemDeactivate:d.useCallback(()=>s(""),[s])},d.createElement(h8,q({},a,{ref:t})))}),hW=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(f8,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:l,onItemDeactivate:u},d.createElement(h8,q({},a,{ref:t})))}),[gW,vW]=u8(wl),h8=d.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...l}=e,u=d8(n),f=Wn(i),p={role:"group",dir:f,...l};return d.createElement(gW,{scope:n,rovingFocus:o,disabled:r},o?d.createElement(Dc,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})))}),p0="ToggleGroupItem",mW=d.forwardRef((e,t)=>{const n=p8(p0,e.__scopeToggleGroup),r=vW(p0,e.__scopeToggleGroup),o=d8(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(Fc,q({asChild:!0},o,{focusable:!i,active:a,ref:l}),d.createElement(g8,q({},s,{ref:t}))):d.createElement(g8,q({},s,{ref:t}))}),g8=d.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=p8(p0,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return d.createElement(t1,q({},s,o,{ref:t,onPressedChange:l=>{l?a.onItemActivate(r):a.onItemDeactivate(r)}}))}),bW=fW,yW=mW;function wW({children:e,...t}){return c.jsx(bW,{className:"flex gap-2",...t,children:e})}function xW({value:e,disabled:t,selected:n,icon:r,label:o,count:a,...i}){return c.jsx(yW,{asChild:!0,value:e,...i,children:c.jsx("button",{"data-deer-btn":!0,type:"button",className:ce("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(Pe,{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",[h0,CW,AW]=vr(qa),[g0,SW,EW]=vr(qa),[v0,mU]=nt(qa,[AW,EW]),[MW,Lr]=v0(qa),[$W,bU]=v0(qa),TW=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,k=>h(k)),g=Wn(u),m=d.useRef(0),x=d.useRef(0),y=d.useRef(0),[w,b]=d.useState(!0),[A="",C]=ut({prop:r,onChange:k=>{const $=k!=="",P=s>0;$?(window.clearTimeout(y.current),P&&b(!1)):(window.clearTimeout(y.current),y.current=window.setTimeout(()=>b(!0),s)),o==null||o(k)},defaultProp:a}),M=d.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>C(""),150)},[C]),T=d.useCallback(k=>{window.clearTimeout(x.current),C(k)},[C]),_=d.useCallback(k=>{A===k?window.clearTimeout(x.current):m.current=window.setTimeout(()=>{window.clearTimeout(x.current),C(k)},i)},[A,C,i]);return d.useEffect(()=>()=>{window.clearTimeout(m.current),window.clearTimeout(x.current),window.clearTimeout(y.current)},[]),d.createElement(PW,{scope:n,isRootMenu:!0,value:A,dir:g,orientation:l,rootNavigationMenu:p,onTriggerEnter:k=>{window.clearTimeout(m.current),w?_(k):T(k)},onTriggerLeave:()=>{window.clearTimeout(m.current),M()},onContentEnter:()=>window.clearTimeout(x.current),onContentLeave:M,onItemSelect:k=>{C($=>$===k?"":k)},onItemDismiss:()=>C("")},d.createElement(me.nav,q({"aria-label":"Main","data-orientation":l,dir:g},f,{ref:v})))}),PW=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(MW,{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(M=>(M.set(A,C),new Map(M)))},[]),onViewportContentRemove:d.useCallback(A=>{y(C=>C.has(A)?(C.delete(A),new Map(C)):C)},[])},d.createElement(h0.Provider,{scope:t},d.createElement($W,{scope:t,items:x},i)))},kW="NavigationMenuList",OW=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Lr(kW,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(h0.Slot,{scope:n},o.isRootMenu?d.createElement(y8,{asChild:!0},a):a))}),NW="NavigationMenuItem",[DW,v8]=v0(NW),FW=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=m0(s.current);m.length&&b0(g==="start"?m:m.reverse())}},[]),v=d.useCallback(()=>{if(s.current){const g=m0(s.current);g.length&&(f.current=VW(g))}},[]);return d.createElement(DW,{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})))}),m8="NavigationMenuTrigger",_W=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,a=Lr(m8,e.__scopeNavigationMenu),i=v8(m8,e.__scopeNavigationMenu),s=d.useRef(null),l=Se(s,i.triggerRef,t),u=A8(a.baseId,i.value),f=S8(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(h0.ItemSlot,{scope:n,value:i.value},d.createElement(x8,{asChild:!0},d.createElement(me.button,q({id:u,disabled:r,"data-disabled":r?"":void 0,"data-state":C8(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,y0(()=>{r||h.current||i.wasEscapeCloseRef.current||p.current||(a.onTriggerEnter(i.value),p.current=!0)})),onPointerLeave:de(e.onPointerLeave,y0(()=>{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(s2,{"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})))}),b8="navigationMenu.linkSelect",IW=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...a}=e;return d.createElement(x8,{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(b8,{bubbles:!0,cancelable:!0});if(s.addEventListener(b8,u=>o==null?void 0:o(u),{once:!0}),ei(s,l),!l.defaultPrevented&&!i.metaKey){const u=new CustomEvent(Cl,{bubbles:!0,cancelable:!0});ei(s,u)}},{checkForDefaultPrevented:!1})})))}),xl="NavigationMenuContent",LW=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Lr(xl,e.__scopeNavigationMenu),a=v8(xl,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(BW,q({forceMount:n},l,{ref:i})):d.createElement(Tt,{present:n||s},d.createElement(zW,q({"data-state":C8(s)},l,{ref:i,onPointerEnter:de(e.onPointerEnter,o.onContentEnter),onPointerLeave:de(e.onPointerLeave,y0(o.onContentLeave)),style:{pointerEvents:!s&&o.isRootMenu?"none":void 0,...l.style}})))}),BW=d.forwardRef((e,t)=>{const n=Lr(xl,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}),Cl="navigationMenu.rootContentDismiss",zW=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:a,wasEscapeCloseRef:i,onRootContentClose:s,onContentFocusOutside:l,...u}=e,f=Lr(xl,n),p=d.useRef(null),h=Se(p,t),v=A8(f.baseId,r),g=S8(f.baseId,r),m=CW(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(Cl,A),()=>b.removeEventListener(Cl,A)}},[f.isRootMenu,e.value,o,y,s]);const w=d.useMemo(()=>{const A=m().map($=>$.value);f.dir==="rtl"&&A.reverse();const C=A.indexOf(f.value),M=A.indexOf(f.previousValue),T=r===f.value,_=M===A.indexOf(r);if(!T&&!_)return x.current;const k=(()=>{if(C!==M){if(T&&M!==-1)return C>M?"from-end":"from-start";if(_&&C!==-1)return C>M?"to-start":"to-end"}return null})();return x.current=k,k},[f.previousValue,f.value,f.dir,m,r]);return d.createElement(y8,{asChild:!0},d.createElement(Wo,q({id:g,"aria-labelledby":v,"data-motion":w,"data-orientation":f.orientation},u,{ref:h,onDismiss:()=>{var b;const A=new Event(Cl,{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=m().some(_=>{var k;return(k=_.ref.current)===null||k===void 0?void 0:k.contains(C)}),T=f.isRootMenu&&((A=f.viewport)===null||A===void 0?void 0:A.contains(C));(M||T||!f.isRootMenu)&&b.preventDefault()}),onKeyDown:de(e.onKeyDown,b=>{const A=b.altKey||b.ctrlKey||b.metaKey;if(b.key==="Tab"&&!A){const T=m0(b.currentTarget),_=document.activeElement,k=T.findIndex(I=>I===_),P=b.shiftKey?T.slice(0,k).reverse():T.slice(k+1,T.length);if(b0(P))b.preventDefault();else{var M;(M=a.current)===null||M===void 0||M.focus()}}}),onEscapeKeyDown:de(e.onEscapeKeyDown,b=>{i.current=!0})})))}),WW="FocusGroup",y8=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Lr(WW,n);return d.createElement(g0.Provider,{scope:n},d.createElement(g0.Slot,{scope:n},d.createElement(me.div,q({dir:o.dir},r,{ref:t}))))}),w8=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],jW="FocusGroupItem",x8=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=SW(n),a=Lr(jW,n);return d.createElement(g0.ItemSlot,{scope:n},d.createElement(me.button,q({},r,{ref:t,onKeyDown:de(e.onKeyDown,i=>{if(["Home","End",...w8].includes(i.key)){let l=o().map(p=>p.ref.current);if([a.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(i.key)&&l.reverse(),w8.includes(i.key)){const p=l.indexOf(i.currentTarget);l=l.slice(p+1)}setTimeout(()=>b0(l)),i.preventDefault()}})})))});function m0(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 b0(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function VW(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 C8(e){return e?"open":"closed"}function A8(e,t){return`${e}-trigger-${t}`}function S8(e,t){return`${e}-content-${t}`}function y0(e){return t=>t.pointerType==="mouse"?e(t):void 0}const UW=TW,HW=OW,GW=FW,YW=_W,E8=IW,XW=LW,qW=Ue(["rabbit-ds h-full w-full px-3 py-2 [&>*:first-child]:h-full"],{variants:{variant:{default:""},defaultVariant:{variant:"default"}}});function KW(){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 M8=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(KW,{})}),c.jsx(UW,{className:ce(qW({className:e})),orientation:"vertical",ref:r,...n,children:c.jsx(HW,{className:"m-0 flex h-full flex-col p-0",children:t})})]}));M8.displayName="LeftNav";const w0=d.forwardRef(({children:e,asChild:t=!1,...n},r)=>{const o=t?ln:"div";return c.jsx(GW,{asChild:!0,children:c.jsx(o,{ref:r,className:"rabbit-ds",...n,children:e})})});w0.displayName="LeftNavItem",w0.defaultProps={asChild:!1};const QW=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"}}}),$8=d.forwardRef(({children:e,align:t,...n},r)=>c.jsx("div",{ref:r,className:ce(QW({variant:t})),...n,children:e}));$8.displayName="LeftNavItem";const T8=d.forwardRef((e,t)=>c.jsx(E8,{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"})})]})]})}));T8.displayName="LeftNavHome";const ZW=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"}}),JW=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"}}),P8=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(E8,{"data-deer-btn":!0,className:ce(ZW({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(Pe,{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:ce(JW({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(Pe,{IconSVG:X0,size:"large"})})]})}));P8.displayName="LeftNavButton";const RW=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 ej({className:e,isCollapsed:t,...n}){return c.jsx("button",{"data-deer-btn":!0,type:"button",className:ce(RW({variant:t?"collapsed":"default"}),e),...n,children:c.jsx(Pe,{IconSVG:U0,className:t?"rotate-180":""})})}const k8=d.createContext({isOpen:!1,toggleOpen:()=>{}}),tj=()=>d.useContext(k8);function O8({...e}){const{isOpen:t,toggleOpen:n}=tj();return c.jsx(ej,{className:`absolute right-0 top-5 z-20 ${t?"":"translate-x-full"}`,isCollapsed:!t,onClick:n,...e})}function nj(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(k8.Provider,{value:u,children:c.jsxs("div",{className:ce("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(O8,{}),c.jsx("div",{className:s?"h-full p-5":"invisible h-0 w-0 scale-0 overflow-hidden opacity-0",children:t})]})})}function rj({children:e}){return c.jsx("div",{className:ce("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 oj({children:e}){return c.jsx("div",{className:"p-2 text-xs font-semibold text-font-secondary",children:e})}function aj({children:e,...t}){return c.jsx(a2,{...t,children:e})}const ij=Ue("shrink-0",{variants:{orientation:{horizontal:"ml-2",vertical:"mt-2 w-full [&>div]:w-full [&_button]:w-full"}},defaultVariants:{orientation:"horizontal"}});function sj({className:e,orientation:t,...n}){return c.jsx("div",{className:ij({orientation:t}),children:c.jsx(Dt,{className:e,variant:"outline",...n})})}const lj={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 cj({title:e,achieved:t,status:n}){const r=lj[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:ce(r.colorScheme,"font-semibold text-3xl !bg-transparent"),children:[t,"%"]})]}),c.jsx(es,{colorScheme:r.colorScheme,className:"mb-1",children:r.label})]})]})})}function uj({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 dj({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 fj({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 pj=Ue("",{variants:{orientation:{horizontal:"flex-row",vertical:"min-w-max flex-col"}},defaultVariants:{orientation:"horizontal"}});function hj({className:e,children:t,orientation:n}){return c.jsx("div",{className:ce("rabbit-ds","w-full flex items-center rounded-lg p-4 bg-[#FDFDFD] border border-solid border-[#F3F5F8]",pj({orientation:n}),e),children:t})}function gj({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:ce("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?j0:Wr,children:["View ",f?"less":"more"]})})]})}function vj({surveyName:e,date:t}){return c.jsx("div",{className:"rabbit-ds mr-auto",children:c.jsxs("div",{className:"flex gap-2",children:[c.jsx(Pe,{IconSVG:Q0}),c.jsxs("div",{className:"flex flex-col items-start text-sm",children:[c.jsx("span",{className:"font-semibold",children:e}),c.jsx(yc,{date:t,showRelativeTime:!0})]})]})})}const mj=Ue("",{variants:{variant:{single:"flex-row [&>div]:items-start",multiple:"flex-col"}},defaultVariants:{variant:"single"}});function N8({employeeName:e,employeeProfilePhoto:t,scheduleDate:n,duration:r,variant:o="single",subTitle:a}){return c.jsx("div",{className:ce("rabbit-ds",o==="single"?"mr-auto":"my-auto"),children:c.jsxs("div",{className:ce("flex items-center text-sm gap-2",mj({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(yc,{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})]})]})})}N8.defaultProps={subTitle:void 0,scheduleDate:void 0};function bj({label:e,onClick:t,customCompProps:n}){const[r,o]=d.useState(1);return c.jsxs(Vc,{children:[c.jsx(Hi,{children:c.jsx("span",{children:e})}),c.jsx(jc,{children:c.jsx(Gi,{children:c.jsx(eo,{children:c.jsxs("div",{className:"flex flex-col p-2",children:[c.jsx(a1,{htmlFor:n==null?void 0:n.label,className:"text-xs",children:n==null?void 0:n.label}),c.jsx(n1,{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 yj({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(Pe,{IconSVG:Y0})})}),c.jsx(Zo,{className:"w-56",onFocusOutside:()=>n(!1),onPointerDownOutside:()=>n(!1),children:c.jsx(eo,{children:e.map(({type:o,onClick:a,label:i,customCompProps:s})=>!o||o==="default"?c.jsx(Jo,{onClick:()=>r(a),children:c.jsx("span",{children:i})},i):c.jsx(bj,{onClick:l=>r(a,l),label:i,customCompProps:s},i))})})]})}const D8=Jo,F8=eo,_8=Ui,I8=qi,L8=Yi,B8=Xi,z8=d.forwardRef(({className:e,children:t,align:n="end",...r},o)=>c.jsx(Zo,{ref:o,align:n,...r,children:t}));z8.displayName="SplitButtonDropdownContent";const wj=Ue("",{variants:{size:{normal:"icon",small:"smallIcon",icon:"icon",smallIcon:"smallIcon",nav:"icon"}},defaultVariants:{size:"normal"}});function xj({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:wj({size:t}),iconLeft:Wr})})]})})}D8.displayName="SplitButtonDropdownItem",F8.displayName="SplitButtonDropdownGroup",_8.displayName="SplitButtonDropdownRadioGroup",I8.displayName="SplitButtonDropdownLabel",L8.displayName="SplitButtonDropdownCheckboxItem",B8.displayName="SplitButtonDropdownRadioItem",V.Accordion=H1,V.AccordionContent=X1,V.AccordionItem=G1,V.AccordionTrigger=Y1,V.Add=Xb,V.Alert=q1,V.AlertDescription=Q1,V.AlertDialogAction=zp,V.AlertDialogCancel=Bp,V.AlertDialogComponent=O9,V.AlertDialogContainer=Ip,V.AlertDialogContent=pc,V.AlertDialogDescription=gc,V.AlertDialogOverlay=fc,V.AlertDialogPortal=Lp,V.AlertDialogTitle=hc,V.AlertDialogTrigger=Wp,V.AlertIcon=K1,V.Avatar=dn,V.AvatarBadge=Ki,V.AvatarFallback=Ci,V.AvatarGroup=ou,V.AvatarImage=fn,V.Breadcrumb=G2,V.BreadcrumbEllipsis=Z2,V.BreadcrumbItem=X2,V.BreadcrumbLink=q2,V.BreadcrumbList=Y2,V.BreadcrumbPage=K2,V.BreadcrumbSeparator=Q2,V.Button=Dt,V.Calendar=qb,V.Caption=vc,V.Card=zo,V.CardContent=Yl,V.CardDescription=N1,V.CardHeader=O1,V.CardKPI=OE,V.CardTitle=Gl,V.Carousel=IM,V.CarouselContainer=LM,V.CarouselNextButton=zM,V.CarouselPrevButton=BM,V.Check=Io,V.CheckCircleOutline=B0,V.Checkbox=ri,V.ChevronDown=Wr,V.ChevronLeft=Kb,V.ChevronLeftCircle=z0,V.ChevronRight=ni,V.ChevronRightCircle=W0,V.ChevronUp=j0,V.Chip=M6,V.ChipGroup=wW,V.ChipGroupItem=xW,V.Close=V0,V.CollapseNavigation=U0,V.CollapsibleCard=Sy,V.ColumnFilter=H0,V.ColumnFilterCheck=Z0,V.Company=Qb,V.DateTime=yc,V.Develop=Zb,V.DirectedLineChart=i8,V.DonutChart=jz,V.Download=Jb,V.Dropdown=ji,V.DropdownCheckboxItem=Yi,V.DropdownChip=r2,V.DropdownContent=Zo,V.DropdownGroup=eo,V.DropdownItem=Jo,V.DropdownLabel=qi,V.DropdownPortal=jc,V.DropdownRadioGroup=Ui,V.DropdownRadioItem=Xi,V.DropdownSeparator=Uc,V.DropdownSub=Vc,V.DropdownSubContent=Gi,V.DropdownSubTrigger=Hi,V.DropdownTrigger=Vi,V.Engagement=Rb,V.EngagementNudgeData=vj,V.ErrorOutline=Il,V.ExpandDown=e6,V.ExpandRight=G0,V.Feedback=t6,V.Gear=n6,V.Goal=r6,V.GoalsNudgeData=cj,V.GridChart=l8,V.GridDirectedLineChart=dW,V.Help=o6,V.HistogramChart=Bz,V.Home=a6,V.Icon=Pe,V.InfoWorkZero=Ll,V.Initiatives=i6,V.Input=n1,V.KebabMenu=Y0,V.KnowTeamNudgeData=N8,V.Label=a1,V.LeftNav=M8,V.LeftNavButton=P8,V.LeftNavGroup=$8,V.LeftNavHome=T8,V.LeftNavItem=w0,V.LeftNavItemContent=XW,V.LeftNavItemDropdown=ji,V.LeftNavItemDropdownCheckboxItem=Yi,V.LeftNavItemDropdownContent=Zo,V.LeftNavItemDropdownGroup=eo,V.LeftNavItemDropdownItem=Jo,V.LeftNavItemDropdownLabel=qi,V.LeftNavItemDropdownPortal=jc,V.LeftNavItemDropdownRadioGroup=Ui,V.LeftNavItemDropdownRadioItem=Xi,V.LeftNavItemDropdownSeparator=Uc,V.LeftNavItemDropdownSub=Vc,V.LeftNavItemDropdownSubContent=Gi,V.LeftNavItemDropdownSubTrigger=Hi,V.LeftNavItemDropdownTrigger=Vi,V.LeftNavItemTrigger=YW,V.LineChart=Cz,V.ListItem=a2,V.ListItemIcon=TA,V.ListItemText=MA,V.Manager=s6,V.ManagerWithBorder=l6,V.MeshLogo=J0,V.MeshMaven=m6,V.MeshMavenAsk=b6,V.MeshMavenDisabledThumbsUp=y6,V.MeshMavenWithHording=w6,V.MeshMavenWithOrangeBulb=x6,V.MeshMavenWithThumbsUp=C6,V.Metric=eg,V.MetricCard=R2,V.MetricCardText=au,V.MetricCardTitle=tg,V.MyOneOnOne=c6,V.NavCollapseButtonL2=O8,V.NavGroupL2=rj,V.NavGroupTitleL2=oj,V.NavItemL2=aj,V.NavL2=nj,V.NudgeAction=sj,V.NudgeCard=gj,V.NudgeCardItem=hj,V.NudgeKebabMenu=yj,V.Overflow=X0,V.Person=u6,V.Product=d6,V.ProfileCard=iu,V.ProfileCardItem=ng,V.ProfileCardKey=rg,V.ProfileCardValue=og,V.ProgressBar=h1,V.ProgressInfo=PE,V.ProgressSlider=py,V.RadarChart=Vz,V.RequestFeedback=f6,V.RequestedFeedbackNudgeData=fj,V.Reviews=p6,V.ReviewsNudgeData=uj,V.Role=h6,V.SankeyChart=Nz,V.Search=q0,V.Select=vS,V.SelectContent=C2,V.SelectGroup=mS,V.SelectItem=S2,V.SelectLabel=A2,V.SelectSeparator=E2,V.SelectTrigger=x2,V.SelectValue=bS,V.ShareFeedback=g6,V.SharePraiseNudgeData=dj,V.SliderDrag=K0,V.SplitButton=xj,V.SplitButtonDropdownCheckboxItem=L8,V.SplitButtonDropdownContent=z8,V.SplitButtonDropdownGroup=F8,V.SplitButtonDropdownItem=D8,V.SplitButtonDropdownLabel=I8,V.SplitButtonDropdownRadioGroup=_8,V.SplitButtonDropdownRadioItem=B8,V.StackedBarChart=Yz,V.Survey=Q0,V.Tabs=_2,V.TabsContent=B2,V.TabsList=I2,V.TabsTrigger=L2,V.Tag=es,V.Team=v6,V.Toaster=EE,V.Tooltip=eu,V.TooltipContent=ns,V.TooltipPortal=nu,V.TooltipProvider=Rc,V.TooltipTrigger=tu,V.TrendingDown=A6,V.TrendingUp=S6,V.getInitialsFromName=Yp,V.toast=gE,Object.defineProperty(V,Symbol.toStringTag,{value:"Module"})});
|