@mesh.ai/rabbit 1.19.6 → 1.19.7

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.
@@ -25218,7 +25218,6 @@ const YB = ({ x: e, y: t, datum: n, size: r }) => /* @__PURE__ */ u(Fo, { cx: e,
25218
25218
  orientation: "bottom",
25219
25219
  stroke: "#CFD7DF",
25220
25220
  strokeWidth: 1,
25221
- numTicks: 6,
25222
25221
  tickFormat: (M) => c ? vh(M, c.symbol, c.position) : M,
25223
25222
  rangePadding: { end: 10 },
25224
25223
  tickComponent: (M) => /* @__PURE__ */ u(
@@ -26643,7 +26642,6 @@ const fz = ({ x: e, y: t, datum: n }) => /* @__PURE__ */ u(
26643
26642
  orientation: "bottom",
26644
26643
  stroke: "#CFD7DF",
26645
26644
  strokeWidth: 1,
26646
- numTicks: 6,
26647
26645
  tickFormat: ($) => c ? Ph($, c.symbol, c.position) : $,
26648
26646
  rangePadding: { end: 10 },
26649
26647
  tickComponent: ($) => /* @__PURE__ */ u(
@@ -93,4 +93,4 @@ z`).split(`
93
93
  `)} {
94
94
  ${dr}
95
95
  }
96
- `}),Z.appendChild(Y.createTextNode($t))}R.timeEnd("clone node"),ve==null||ve(ke),pe!==!1&&te(ke)&&(R.time("embed web font"),yield xj(ke,V),R.timeEnd("embed web font")),R.time("embed node"),jb(ke,V);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(ke);const Ve=kj(ke,V);return ae&&Ve.insertBefore(ae,Ve.children[0]),Z&&Ve.insertBefore(Z,Ve.children[0]),ye&&_b(V),Ae==null||Ae(Ve),Ve})}function kj(S,I){const{width:V,height:Y}=I,R=Bt(V,Y,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 Tl(S,I){return m(this,null,function*(){var V;const Y=yield zt(S,I),R=yield Vb(Y),ie=et(R,Y.isEnable("removeControlCharacter"));Y.autoDestruct||(Y.svgStyleElement=Mt(Y.ownerDocument),Y.svgDefsElement=(V=Y.ownerDocument)==null?void 0:V.createElementNS(Lt,"defs"),Y.svgStyles.clear());const Z=Ke(ie,R.ownerDocument);return yield In(Z,Y)})}function Oj(S,I){return m(this,null,function*(){const V=yield zt(S,I),{log:Y,type:R,quality:ie,dpi:Z}=V,ae=yield Tl(V);Y.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=M(ge,Z):R==="image/jpeg"&&(ge=x(ge,Z)),Y.timeEnd("canvas to blob"),new Blob([ge,fe.slice(33)],{type:R})}return Y.timeEnd("canvas to blob"),fe})}function No(S,I){return m(this,null,function*(){const V=yield zt(S,I),{log:Y,quality:R,type:ie,dpi:Z}=V,ae=yield Tl(V);Y.time("canvas to data url");let fe=ae.toDataURL(ie,R);if(["image/png","image/jpeg"].includes(ie)&&Z&&H&&z){const[pe,ge]=fe.split(",");let ye=0,ve=!1;if(ie==="image/png"){const Ve=U(ge);Ve>=0?(ye=Math.ceil((Ve+28)/3)*4,ve=!0):ye=33/3*4}else ie==="image/jpeg"&&(ye=18/3*4);const Ee=ge.substring(0,ye),Ae=ge.substring(ye),ke=window.atob(Ee),_e=new Uint8Array(ke.length);for(let Ve=0;Ve<_e.length;Ve++)_e[Ve]=ke.charCodeAt(Ve);const Ie=ie==="image/png"?M(_e,Z,ve):x(_e,Z),Xe=window.btoa(String.fromCharCode(...Ie));fe=[pe,",",Xe,Ae].join("")}return Y.timeEnd("canvas to data url"),fe})}function Ub(S,I){return m(this,null,function*(){const V=yield zt(S,I),{width:Y,height:R,ownerDocument:ie}=V,Z=yield No(V),ae=Bt(Y,R,ie),fe=ae.ownerDocument.createElementNS(ae.namespaceURI,"image");return fe.setAttributeNS(null,"href",Z),fe.setAttributeNS(null,"height","100%"),fe.setAttributeNS(null,"width","100%"),ae.appendChild(fe),et(ae,V.isEnable("removeControlCharacter"))})}function Nj(S,I){return m(this,null,function*(){const V=yield zt(S,I),{ownerDocument:Y,width:R,height:ie,scale:Z,type:ae}=V,fe=ae==="image/svg+xml"?yield Ub(V):yield No(V),pe=Ke(fe,Y);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 Dj(S,I){return m(this,null,function*(){return No(yield zt(S,v(h({},I),{type:"image/jpeg"})))})}function Fj(S,I){return m(this,null,function*(){const V=yield zt(S,I),Y=yield Tl(V);return Y.getContext("2d").getImageData(0,0,Y.width,Y.height).data})}function _j(S,I){return m(this,null,function*(){return No(yield zt(S,v(h({},I),{type:"image/png"})))})}function Ij(S,I){return m(this,null,function*(){return No(yield zt(S,v(h({},I),{type:"image/webp"})))})}n.createContext=Sl,n.destroyContext=_b,n.domToBlob=Oj,n.domToCanvas=Tl,n.domToDataUrl=No,n.domToForeignObjectSvg=Vb,n.domToImage=Nj,n.domToJpeg=Dj,n.domToPixel=Fj,n.domToPng=_j,n.domToSvg=Ub,n.domToWebp=Ij,n.loadMedia=yt,n.waitUntilLoad=yn,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})})})(Zf,Zf.exports);var oz=Zf.exports;const _n=(e,t,n)=>{d.useImperativeHandle(t,()=>({download(){e.current&&oz.domToPng(e.current,{scale:5}).then(r=>{const o=document.createElement("a");o.download=`${n}.png`,o.href=r,o.click()})}}))},m4=[{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 Ge(e){return m4[e%m4.length]}const fl=(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(un,{size:"md",children:c.jsx(dn,{src:r,alt:"Avatar"})}),c.jsx("div",{className:"flex items-start justify-start px-2 text-sm font-medium",children:n||"-"})]})}function Pe({children:e,showSideBySide:t,tooltipTitle:n}){const r=fl(e,Jf),o=fl(e,Rf),a=fl(e,e0),i=fl(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:ue("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:ue("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:ue("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",Pe.Legend=Jf,Pe.Item=Rf,Pe.Header=e0,Pe.Footer=t0,Pe.defaultProps={showSideBySide:!1};function b4({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(Pe,{tooltipTitle:n,showSideBySide:a,children:[c.jsx(Pe.Item,{label:r,value:u}),c.jsx(Pe.Item,{label:o,value:f}),c.jsx(Pe.Legend,{value:i,darkColor:s,lightColor:l})]})}b4.defaultProps={xValue:void 0,yValue:void 0};function az({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(p5,{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 iz=({x:e,y:t,datum:n,size:r})=>c.jsx(oo,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.light,r:r/2}),sz=({x:e,y:t,datum:n})=>c.jsx(oo,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.dark,r:5,style:{zIndex:1500}}),pl={xAccessor:e=>e.x,yAccessor:e=>e.y},y4=(e,t,n)=>n==="pre"?`${t}${e}`:`${e}${t}`,w4=10,lz=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=lz,tooltipStackCharLimit:x=w4,seriesSelectorTitle:w},y)=>{const[b,A]=d.useState(e.map(M=>M.id)),C=d.useRef(null);_n(C,y,`${a}-${i}-LineChart`);const $=d.useMemo(()=>o.map((M,P)=>{const L=e.find(W=>W.id===M.id);return{points:M.data.map((W,U)=>({x:r[U],y:W,nodeId:M.id,color:(L==null?void 0:L.color)??Ge(P)}))}}).slice(0,h==="mini"?m:o.length),[o,h,m,e,r]),k=d.useMemo(()=>h==="full"?$.filter(M=>b.includes(M.points[0].nodeId)):$,[$,b,h]),T=d.useMemo(()=>Math.floor((n-(h==="mini"?0:150))/(r.length*8)),[n,r,h]);return c.jsxs("div",{ref:C,id:"line-chart",className:"rabbit-ds flex flex-col bg-white",style:{width:n,height:t},children:[c.jsxs("div",{className:"flex h-full min-h-0 w-full min-w-0 flex-row",children:[c.jsx("div",{className:"h-full min-h-0 w-full min-w-0",children:c.jsxs(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(P5,{columns:!1,numTicks:6,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),c.jsx(Eo,{hideTicks:!0,orientation:"bottom",stroke:"#CFD7DF",strokeWidth:1,numTicks:6,tickFormat:M=>u?y4(M,u.symbol,u.position):M,rangePadding:{end:10},tickComponent:M=>c.jsx(Ya,{textLabel:M.formattedValue||"",x:M.x,y:M.y,textStyles:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle"},axisCharLimit:v??T}),label:`${a} ➔`,labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx(Eo,{hideTicks:!0,numTicks:6,strokeWidth:1,orientation:"left",stroke:"#CFD7DF",label:`${i} ➔`,tickFormat:M=>f?y4(M,f.symbol,f.position):M,tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666"},labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dx:-20,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),k.map((M,P)=>c.jsxs(c.Fragment,{children:[c.jsx(az,{data:M.points,xAccessor:pl.xAccessor,yAccessor:pl.yAccessor,connectNulls:g}),c.jsx(v4,{dataKey:`Performance Management ${P}`,data:M.points,size:8,renderGlyph:iz,xAccessor:pl.xAccessor,yAccessor:pl.yAccessor})]})),c.jsx(nl,{showDatumGlyph:!0,scroll:!0,debounce:500,snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,detectBounds:!0,unstyled:!0,applyPositionStyle:!0,renderGlyph:sz,renderTooltip:({tooltipData:M})=>{var W,U,B,E,_,H;const P=e.find(z=>{var N;return z.id===((N=M==null?void 0:M.nearestDatum)==null?void 0:N.datum.nodeId)}),L=((W=M==null?void 0:M.nearestDatum)==null?void 0:W.datum)&&((U=M==null?void 0:M.nearestDatum)==null?void 0:U.datum.x.length)<x;return c.jsx(b4,{xValue:(B=M==null?void 0:M.nearestDatum)==null?void 0:B.datum.x,yValue:(E=M==null?void 0:M.nearestDatum)==null?void 0:E.datum.y,xAxisLabel:a,yAxisLabel:i,showSideBySide:!!L,tooltipTitle:p,legendValue:(P==null?void 0:P.name)||"",legendDarkColor:((_=M==null?void 0:M.nearestDatum)==null?void 0:_.datum.color.dark)||Ge(0).dark,legendLightColor:((H=M==null?void 0:M.nearestDatum)==null?void 0:H.datum.color.light)||Ge(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:w??a}),"(",k.length??0,"/",$.length,")"]}),c.jsx("div",{className:"inline-flex h-[95%] w-full shrink-0 grow-0 flex-col items-start justify-start gap-1 overflow-scroll pr-4",children:$.map(M=>{const P=e.find(L=>L.id===M.points[0].nodeId);return P&&c.jsxs("div",{className:"flex w-full items-center justify-between gap-1 py-1",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("div",{style:{backgroundColor:M.points[0].color.light,borderColor:M.points[0].color.dark},className:"mr-1 h-3 w-3 rounded-full border"}),P.name]}),c.jsx("div",{className:"flex items-center",children:c.jsx(ei,{checked:b.includes(P.id),onCheckedChange:L=>{let W=[...b];L?W=[...b,P.id]:W.splice(b.indexOf(P.id),1),A(W)}})})]},P.id)})})]})]}),h==="mini"&&c.jsx("div",{className:"flex flex-row flex-wrap justify-center gap-4 text-[10px] font-semibold text-font-secondary",children:$.map(M=>{const P=e.find(L=>L.id===M.points[0].nodeId);return c.jsxs("div",{className:"flex items-center justify-center gap-1",children:[c.jsx("div",{style:{backgroundColor:M.points[0].color.light,borderColor:M.points[0].color.dark},className:"h-3 w-3 rounded-full border"}),P==null?void 0:P.name]},P==null?void 0:P.id)})})]})}),cz={xAxisUnitSymbol:void 0,yAxisUnitSymbol:void 0,mode:"mini",xAxisCharLimit:void 0,tooltipStackCharLimit:w4,xAxisDomain:void 0,yAxisDomain:void 0,connectNulls:!1};n0.defaultProps=cz,n0.displayName="LineBase";const x4=d.forwardRef((e,t)=>c.jsx(Jn,{debounceTime:10,children:({width:n,height:r})=>c.jsx(n0,{ref:t,width:n,height:r,...e})}));x4.displayName="LineChart";const uz=x4;function C4(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 dz(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 fz(e,t){return e.sourceLinks.length?e.depth:t-1}function hl(e){return function(){return e}}function A4(e,t){return gl(e.source,t.source)||e.index-t.index}function S4(e,t){return gl(e.target,t.target)||e.index-t.index}function gl(e,t){return e.y0-t.y0}function o0(e){return e.value}function pz(e){return e.index}function hz(e){return e.nodes}function gz(e){return e.links}function E4(e,t){const n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function M4({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 vz(){let e=0,t=0,n=1,r=1,o=24,a=8,i,s=pz,l=fz,u,f,p=hz,h=gz,v=6;function g(){const E={nodes:p.apply(null,arguments),links:h.apply(null,arguments)};return m(E),x(E),w(E),y(E),C(E),M4(E),E}g.update=function(E){return M4(E),E},g.nodeId=function(E){return arguments.length?(s=typeof E=="function"?E:hl(E),g):s},g.nodeAlign=function(E){return arguments.length?(l=typeof E=="function"?E:hl(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:hl(E),g):p},g.links=function(E){return arguments.length?(h=typeof E=="function"?E:hl(E),g):h},g.linkSort=function(E){return arguments.length?(f=E,g):f},g.size=function(E){return arguments.length?(e=t=0,n=+E[0],r=+E[1],g):[n-e,r-t]},g.extent=function(E){return arguments.length?(e=+E[0][0],n=+E[1][0],t=+E[0][1],r=+E[1][1],g):[[e,t],[n,r]]},g.iterations=function(E){return arguments.length?(v=+E,g):v};function m({nodes:E,links:_}){for(const[z,N]of E.entries())N.index=z,N.sourceLinks=[],N.targetLinks=[];const H=new Map(E.map((z,N)=>[s(z,N,E),z]));for(const[z,N]of _.entries()){N.index=z;let{source:O,target:F}=N;typeof O!="object"&&(O=N.source=E4(H,O)),typeof F!="object"&&(F=N.target=E4(H,F)),O.sourceLinks.push(N),F.targetLinks.push(N)}if(f!=null)for(const{sourceLinks:z,targetLinks:N}of E)z.sort(f),N.sort(f)}function x({nodes:E}){for(const _ of E)_.value=_.fixedValue===void 0?Math.max(r0(_.sourceLinks,o0),r0(_.targetLinks,o0)):_.fixedValue}function w({nodes:E}){const _=E.length;let H=new Set(E),z=new Set,N=0;for(;H.size;){for(const O of H){O.depth=N;for(const{target:F}of O.sourceLinks)z.add(F)}if(++N>_)throw new Error("circular link");H=z,z=new Set}}function y({nodes:E}){const _=E.length;let H=new Set(E),z=new Set,N=0;for(;H.size;){for(const O of H){O.height=N;for(const{source:F}of O.targetLinks)z.add(F)}if(++N>_)throw new Error("circular link");H=z,z=new Set}}function b({nodes:E}){const _=C4(E,N=>N.depth)+1,H=(n-e-o)/(_-1),z=new Array(_);for(const N of E){const O=Math.max(0,Math.min(_-1,Math.floor(l.call(null,N,_))));N.layer=O,N.x0=e+O*H,N.x1=N.x0+o,z[O]?z[O].push(N):z[O]=[N]}if(u)for(const N of z)N.sort(u);return z}function A(E){const _=dz(E,H=>(r-t-(H.length-1)*i)/r0(H,o0));for(const H of E){let z=t;for(const N of H){N.y0=z,N.y1=z+N.value*_,z=N.y1+i;for(const O of N.sourceLinks)O.width=O.value*_}z=(r-z+i)/(H.length+1);for(let N=0;N<H.length;++N){const O=H[N];O.y0+=z*(N+1),O.y1+=z*(N+1)}W(H)}}function C(E){const _=b(E);i=Math.min(a,(r-t)/(C4(_,H=>H.length)-1)),A(_);for(let H=0;H<v;++H){const z=Math.pow(.99,H),N=Math.max(1-z,(H+1)/v);k(_,z,N),$(_,z,N)}}function $(E,_,H){for(let z=1,N=E.length;z<N;++z){const O=E[z];for(const F of O){let K=0,G=0;for(const{source:ne,value:te}of F.targetLinks){let J=te*(F.layer-ne.layer);K+=U(ne,F)*J,G+=J}if(!(G>0))continue;let ee=(K/G-F.y0)*_;F.y0+=ee,F.y1+=ee,L(F)}u===void 0&&O.sort(gl),T(O,H)}}function k(E,_,H){for(let z=E.length,N=z-2;N>=0;--N){const O=E[N];for(const F of O){let K=0,G=0;for(const{target:ne,value:te}of F.sourceLinks){let J=te*(ne.layer-F.layer);K+=B(F,ne)*J,G+=J}if(!(G>0))continue;let ee=(K/G-F.y0)*_;F.y0+=ee,F.y1+=ee,L(F)}u===void 0&&O.sort(gl),T(O,H)}}function T(E,_){const H=E.length>>1,z=E[H];P(E,z.y0-i,H-1,_),M(E,z.y1+i,H+1,_),P(E,r,E.length-1,_),M(E,t,0,_)}function M(E,_,H,z){for(;H<E.length;++H){const N=E[H],O=(_-N.y0)*z;O>1e-6&&(N.y0+=O,N.y1+=O),_=N.y1+i}}function P(E,_,H,z){for(;H>=0;--H){const N=E[H],O=(N.y1-_)*z;O>1e-6&&(N.y0-=O,N.y1-=O),_=N.y0-i}}function L({sourceLinks:E,targetLinks:_}){if(f===void 0){for(const{source:{sourceLinks:H}}of _)H.sort(S4);for(const{target:{targetLinks:H}}of E)H.sort(A4)}}function W(E){if(f===void 0)for(const{sourceLinks:_,targetLinks:H}of E)_.sort(S4),H.sort(A4)}function U(E,_){let H=E.y0-(E.sourceLinks.length-1)*i/2;for(const{target:z,width:N}of E.sourceLinks){if(z===_)break;H+=N+i}for(const{source:z,width:N}of _.targetLinks){if(z===E)break;H-=N}return H}function B(E,_){let H=_.y0-(_.targetLinks.length-1)*i/2;for(const{source:z,width:N}of _.targetLinks){if(z===E)break;H+=N+i}for(const{target:z,width:N}of E.sourceLinks){if(z===_)break;H-=N}return H}return g}function mz({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(Pe,{tooltipTitle:o,children:[c.jsx(Pe.Item,{label:t,value:a.name}),c.jsx(Pe.Item,{label:n,value:i.name}),c.jsx(Pe.Item,{label:r,value:e.weight.toString()}),c.jsx(Pe.Legend,{value:a.name,darkColor:(s=Ge((a.index||0)+1))==null?void 0:s.dark,lightColor:(l=Ge((a.index||0)+1))==null?void 0:l.light}),c.jsx(Pe.Legend,{value:i.name,darkColor:(u=Ge((i.index||0)+1))==null?void 0:u.dark,lightColor:(f=Ge((i.index||0)+1))==null?void 0:f.light})]})}const $4=80,T4=20,bz=30,yz=12,P4=d.forwardRef(({height:e,width:t,tooltipTitle:n,nodes:r,links:o,groups:a,weightLabel:i},s)=>{const l=d.useMemo(()=>vz().nodeId(E=>E.id).nodeWidth(yz).nodePadding(bz).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:w,showTooltip:y,hideTooltip:b}=Ia(),{containerBounds:A,containerRef:C,TooltipInPortal:$}=La({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),k=d.useMemo(()=>l.extent([[$4,T4],[t-$4,e-T4-50]])({nodes:r,links:o.map(E=>({...E,value:Number(E.weight)}))}),[e,t,l,r,o]),T=d.useMemo(()=>Math.max(...k.nodes.map(E=>E.depth??0)),[k]),M=d.useMemo(()=>{const E={};let _=-1/0;return k.nodes.forEach(H=>{const{group:z}=H;E[z]?(E[z].x=Math.max(E[z].x??-1/0,H.x0??-1/0),E[z].y=Math.max(E[z].y??-1/0,H.y1??-1/0)):(E[z]={},E[z].x=H.x0,E[z].y=H.y1),_=Math.max(_,E[z].y??-1/0),E[z].y=_}),Object.keys(E).forEach(H=>{E[H].y=_}),E},[k]),P=d.useCallback(E=>{const _=l.nodeId()(E);p(f===_?"":_)},[f,l]),L=d.useCallback(()=>{p(""),v(null)},[]),W=d.useMemo(()=>f===""&&h===null?new Set:new Set(k.links.filter(E=>l.nodeId()(E.source)===f||l.nodeId()(E.target)===f||(h==null?void 0:h.source)===E.source&&(h==null?void 0:h.target)===E.target)),[f,k,h,l]),U=d.useCallback((E,_)=>{const H=("clientX"in E?E.clientX:0)-A.left,z=("clientY"in E?E.clientY:0)-A.top;v(_),H&&z&&y({tooltipLeft:H,tooltipTop:z,tooltipData:_})},[y,A]),B=d.useCallback(()=>{L(),b()},[L,b]);return c.jsxs("div",{ref:u,className:"rabbit-ds h-min w-min bg-white",id:"sankey-chart",children:[c.jsxs("svg",{height:e,width:t,ref:C,children:[c.jsx("g",{children:k.links.map(E=>c.jsx(eI,{data:E,source:_=>({x:_.source.x1,y:_.y0}),target:_=>({x:_.target.x0,y:_.y1}),x:_=>_.x??0,y:_=>_.y??0,fill:"none",pointerEvents:"stroke",onMouseLeave:()=>B(),onMouseMove:_=>U(_,E),stroke:Ge((E.source.index||0)+1).light,strokeWidth:E.width,strokeOpacity:W.has(E)?.7:.4},E.index))}),c.jsx("g",{children:k.nodes.map(E=>{var _,H,z;return c.jsx("g",{children:c.jsx(h5,{x:E.x0??0,height:(E.y1??0)-(E.y0??0)+10,width:(E.x1??0)-(E.x0??0),y:(E.y0??0)-5,onMouseEnter:()=>P(E),onMouseLeave:()=>L(),radius:2,fill:f===E.id?(_=Ge((E.index||0)+1))==null?void 0:_.dark:(H=Ge((E.index||0)+1))==null?void 0:H.light,stroke:(z=Ge((E.index||0)+1))==null?void 0:z.dark,all:!0})},E.index)})}),c.jsx("g",{children:a.map(E=>c.jsx(Ya,{axisCharLimit:20,x:M[E.id].x??0,y:(M[E.id].y??0)+40,textLabel:E.name,textStyles:{fontSize:10,fontWeight:600,textAnchor:"middle",fill:"#666666"}},E.id))}),c.jsxs("g",{children:[k.nodes.map(E=>c.jsx(Ya,{axisCharLimit:8,x:E.depth===T?(E.x1??0)+10:(E.x0??0)-10,y:(E.y0??0)+((E.y1??0)-(E.y0??0))/2,textLabel:E.name,textStyles:{fontSize:10,fontWeight:600,textAnchor:E.depth===T?"start":"end",fill:"#666666"}},E.index)),k.nodes.map(E=>E.value&&c.jsx(xs,{x:E.depth===T?(E.x1??0)+10:(E.x0??0)-10,y:(E.y0??0)+((E.y1??0)-(E.y0??0))/2+16,style:{fontSize:10,fontWeight:400,textAnchor:E.depth===T?"start":"end",fill:"#666666"},children:`(${E.value.toString()})`},E.index))]})]}),w&&g&&c.jsx($,{top:x,left:m,unstyled:!0,applyPositionStyle:!0,children:c.jsx(mz,{tooltipData:g,fromLabel:`From: ${a[g.source.group].name}`,toLabel:`To: ${a[g.target.group].name}`,weightLabel:i,tooltipTitle:n})},Math.random())]})});P4.displayName="Sankey";const k4=d.forwardRef((e,t)=>c.jsx(Jn,{debounceTime:10,children:({width:n,height:r})=>n&&r&&c.jsx(P4,{ref:t,width:n,height:r,...e})}));k4.displayName="SankeyChart";const wz=k4;function xz(e){return"bandwidth"in e?e.bandwidth():0}var Cz=["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 Az(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 O4(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,w=e.offset,y=e.tickValues,b=Az(e,Cz),A=y??Xd(a,m),C=(w??0)+xz(a)/2,$=A.map(function(k,T){var M,P=((M=Ys(a(k)))!=null?M:0)+C;return{index:T,from:new Tn({x:0,y:P}),to:new Tn({x:i,y:P})}});return d.createElement(pn,{className:gt("visx-rows",h),top:n,left:o},v?v({lines:$}):$.map(function(k){var T=k.from,M=k.to,P=k.index;return d.createElement(iI,a0({key:"row-line-"+P,from:T,to:M,stroke:l,strokeWidth:f,strokeDasharray:p,style:x},b))}))}O4.propTypes={tickValues:re.array,width:re.number.isRequired};function N4({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(Pe,{tooltipTitle:n,showSideBySide:!0,children:[c.jsx(Pe.Item,{label:r,value:l}),c.jsx(Pe.Item,{label:o,value:u}),c.jsx(Pe.Legend,{value:a,darkColor:i,lightColor:s})]})}N4.defaultProps={xValue:void 0,yValue:void 0};const D4=20,F4=50,i0=80,vl=50,Sz=10,Ez=25,s0=d.forwardRef(({tooltipTitle:e,xAxisLabel:t,yAxisLabel:n,domain:r,binCount:o,data:a,width:i,height:s,maxBinCount:l=Ez,minBinCount:u=Sz,integerBins:f=!1,integerYAxis:p=!1},h)=>{const v=d.useMemo(()=>Cs(a),[a]),{histogramDomain:g,threshold:m,thresholdInteger:x}=d.useMemo(()=>{const N=v[0]??0,O=N===v[1]?u+N:v[1]??0,F=O-N>u?O:u+N,K=Math.min(Math.max(O-N,u),l),G=Math.floor(v[0]??0),ee=Math.ceil(F);return{histogramDomain:r||(f?[G,ee]:[N,O]),threshold:K,thresholdInteger:Math.ceil(K)}},[v,r,f,l,u]),w=d.useMemo(()=>So({domain:g,range:[vl,i-F4],round:!0,nice:!0}),[g,i]),y=d.useMemo(()=>dN().domain(w.domain()).thresholds(o||(f?x:m))(a),[w,o,a,m,x,f]),b=d.useMemo(()=>So({domain:[0,id(y,N=>N.length)??0],range:[s-i0,D4],round:!0,nice:!0}),[y,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:$,tooltipLeft:k,tooltipTop:T,tooltipOpen:M,showTooltip:P,hideTooltip:L}=Ia(),{containerBounds:W,containerRef:U,TooltipInPortal:B}=La({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),E=i-vl-F4,_=s-D4-i0-100,H=d.useCallback((N,O)=>{const F=("clientX"in N?N.clientX:0)-W.left,K=("clientY"in N?N.clientY:0)-W.top;F&&K&&P({tooltipLeft:F,tooltipTop:K,tooltipData:O})},[P,W]),z=d.useCallback(()=>{L()},[L]);return c.jsxs("div",{className:"rabbit-ds flex flex-col bg-white",style:{width:i,height:s},ref:C,children:[c.jsxs("svg",{width:i,height:s,ref:U,children:[c.jsx(uf,{orientation:"bottom",scale:w,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:vl,hideTicks:!0,strokeWidth:1,stroke:"#CFD7DF",tickFormat:p?js("d"):void 0,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(pn,{children:[c.jsx(O4,{scale:b,width:E,height:_,left:vl,top:0,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),y.map(N=>{const O=Math.abs(b(0)-b(N.length)),F=Math.abs(w(N.x1??0)-w(N.x0??0));return c.jsx("g",{children:c.jsx(U_,{x:w(N.x0??0),y:b(N.length),width:F,height:O&&O-1,fill:Ge(0).light,stroke:Ge(0).dark,strokeWidth:1,onMouseMove:K=>H(K,N),onMouseLeave:()=>z()})},Math.random())})]})]}),M&&$&&c.jsx(B,{top:T,left:k,unstyled:!0,applyPositionStyle:!0,children:c.jsx(N4,{xAxisLabel:t,xValue:`${$.x0} to ${$.x1}`,yAxisLabel:n,yValue:$.length,tooltipTitle:e,legendValue:n,legendDarkColor:Ge(0).dark,legendLightColor:Ge(0).light})},Math.random()),b.domain()[2]]})}),_4=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",_4.displayName="HistogramChart";const Mz=_4;function I4({tooltipTitle:e,label:t,value:n,unit:r,legendValue:o,legendDarkColor:a,legendLightColor:i}){return c.jsxs(Pe,{tooltipTitle:e,children:[c.jsx(Pe.Item,{label:t,value:`${n} ${r}`}),c.jsx(Pe.Legend,{value:o,darkColor:a||"",lightColor:i||""})]})}I4.defaultProps={};const $z=e=>e.value,Tz=e=>e.label,L4=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}=Ia(),{containerBounds:x,containerRef:w,TooltipInPortal:y}=La({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),b=d.useRef(null),A=d.useCallback(($,k)=>{const T=("clientX"in $?$.clientX:0)-x.left,M=("clientY"in $?$.clientY:0)-x.top;T&&M&&g({tooltipLeft:T,tooltipTop:M,tooltipData:k})},[g,x]),C=d.useCallback(()=>{m()},[m]);return _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:w,children:c.jsx(pn,{top:l-20,left:s,children:c.jsx(I_,{data:r,pieValue:$z,outerRadius:u-10,innerRadius:u-Math.min(e*.07,22)-10,cornerRadius:2,padAngle:.025,children:$=>c.jsx(c.Fragment,{children:$.arcs.map(k=>{const T=Tz(k.data);return c.jsx("g",{children:c.jsx("path",{d:$.path(k)??void 0,fill:k.data.color,onMouseLeave:C,onMouseMove:M=>A(M,{label:a,value:k.value,tooltipTitle:o,unit:n,legendValue:T,legendDarkColor:k.data.labelColor,legendLightColor:k.data.color})})},`arc-${T}`)})})})})}),v&&f&&c.jsx(y,{top:h,left:p,unstyled:!0,applyPositionStyle:!0,children:c.jsx(I4,{unit:f.unit,label:f.label,value:f.value,tooltipTitle:o,legendValue:f.legendValue??"",legendDarkColor:f.legendDarkColor,legendLightColor:f.legendLightColor})},Math.random()),c.jsx("div",{className:"flex flex-row flex-wrap justify-center gap-2 text-[10px] font-semibold text-font-secondary",style:{fontSize:Math.min(e*.04,10)},children:r.map($=>c.jsxs("div",{className:"flex items-center justify-center gap-1",children:[c.jsx("div",{style:{backgroundColor:$.color,borderColor:$.labelColor,color:$.labelColor,width:Math.min(e*.04,10),height:Math.min(e*.04,10)},className:"h-3 w-3 rounded-full border"}),`${$.label}: ${$.value}${n}`]},$.label))})]})});L4.displayName="DonutChartBase";const B4=d.forwardRef((e,t)=>c.jsx(Jn,{debounceTime:10,children:({width:n,height:r})=>c.jsx(L4,{ref:t,width:n,height:r,...e})}));B4.displayName="DonutChart";const Pz=B4;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(Pe,{tooltipTitle:n,showSideBySide:a,children:[c.jsx(Pe.Item,{label:r,value:u}),c.jsx(Pe.Item,{label:o,value:f}),c.jsx(Pe.Legend,{value:i,darkColor:s,lightColor:l})]})}z4.defaultProps={xValue:void 0,yValue:void 0};const ml={top:60,left:20,right:20,bottom:20},W4={start:10,end:-10,middle:0},j4=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:w,hideTooltip:y}=Ia(),{containerBounds:b,containerRef:A,TooltipInPortal:C}=La({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),$=d.useCallback((O,F)=>{const K=Math.PI*2/O;return[...new Array(O)].map((G,ee)=>({x:F*Math.sin(ee*K),y:F*Math.cos(ee*K)}))},[]),k=d.useCallback((O,F,K)=>K==="pre"?`${F}${O}`:`${O}${F}`,[]),T=d.useCallback((O,F,K)=>{const G=Math.PI*2/O.length,ee=new Array(O.length).fill({x:0,y:0,data:null}),ne=new Array(O.length+1).fill("").reduce((te,J,oe)=>{if(oe>O.length)return te;const X=F(K(O[oe-1]))*Math.sin(oe*G),Q=F(K(O[oe-1]))*Math.cos(oe*G);return ee[oe-1]={x:X,y:Q,data:O[oe-1]},`${te}${X},${Q} `});return{points:ee,pointString:ne}},[]),M=d.useMemo(()=>new Tn({x:0,y:0}),[]),P=d.useCallback(O=>Math.round(O)===0?"middle":O>0?"start":"end",[]),L=d.useCallback((O,F)=>{const K=("clientX"in O?O.clientX:0)-b.left,G=("clientY"in O?O.clientY:0)-b.top;K&&G&&w({tooltipLeft:K,tooltipTop:G,tooltipData:F})},[w,b]),W=d.useCallback(()=>{y()},[y]),U=d.useMemo(()=>e-ml.left-ml.right,[e]),B=d.useMemo(()=>t-ml.top-ml.bottom,[t]),E=d.useMemo(()=>Math.min(U,B)/2,[U,B]),_=u.length?u.reduce((O,F)=>{const K=F.data.filter(G=>G);return Math.max(O,...K)},-1/0):0,H=So({range:[0,E],domain:l??[0,_]}),z=$(f.length,E),N=O=>T(O,F=>H(F)??0,F=>F);return c.jsxs("div",{className:"rabbit-ds flex flex-col bg-white",style:{width:e,height:t},ref:h,children:[c.jsxs("svg",{width:e,height:t,ref:A,pointerEvents:"all",onMouseLeave:W,children:[c.jsx("rect",{fill:"transparent",width:e,height:t,rx:14}),c.jsxs(pn,{top:t/2,left:e/2,children:[[...new Array(n)].map((O,F)=>c.jsx(g5,{x:e/2,y:t/2,fill:"none",stroke:"#CFD7DF",strokeWidth:1,strokeDasharray:4,r:E*(F+1)/n},`web1-${Math.random()}`)),f.map((O,F)=>c.jsxs(c.Fragment,{children:[c.jsx(Zd,{from:M,to:z[F],stroke:f.length===1?Ge(0).dark:"#CFD7DF",strokeWidth:1},`radar-line-${Math.random()}`),c.jsx(xs,{x:z[F].x,y:z[F].y,textAnchor:P(z[F].x),verticalAnchor:P(z[F].y),dx:W4[P(z[F].x)],dy:W4[P(z[F].y)],fontSize:10,fill:"#666666",width:a??100,children:`${s?k(f[(F+f.length-1)%f.length],s.symbol,s.position):f[(F+f.length-1)%f.length]}`})]})),u.map((O,F)=>c.jsx("polygon",{points:N(O.data).pointString,fill:Ge(F).light,fillOpacity:.2,stroke:Ge(F).dark,strokeWidth:1},`polypath-${Math.random()}`)),u.map((O,F)=>N(O.data).points.map((K,G)=>c.jsx(g5,{cx:K.x,cy:K.y,r:5,fill:"transparent",onMouseMove:ee=>{var ne;return L(ee,{yAxisLabel:((ne=r.find(te=>te.id===O.id))==null?void 0:ne.name)??"",xAxisValue:f[G],yAxisValue:O.data[G],xAxisLabel:o??"Category",legendDarkColor:Ge(F).dark,legendLightColor:Ge(F).light})},onMouseOut:W},`radar-point-${Math.random()}`)))]})]}),x&&v&&c.jsx(C,{top:m,left:g,unstyled:!0,applyPositionStyle:!0,children:c.jsx(z4,{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())]})});j4.displayName="RadarChartBase";const V4=d.forwardRef((e,t)=>c.jsx(Jn,{debounceTime:10,children:({width:n,height:r})=>c.jsx(j4,{ref:t,width:n,height:r,...e})}));V4.displayName="RadarChart";const kz=V4;function U4({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(Pe,{tooltipTitle:n,showSideBySide:a,children:[c.jsx(Pe.Item,{label:r,value:u}),c.jsx(Pe.Item,{label:o,value:f}),c.jsx(Pe.Legend,{value:i,darkColor:s,lightColor:l})]})}U4.defaultProps={xValue:void 0,yValue:void 0};const Oz=({x:e,y:t,datum:n})=>c.jsx(oo,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.dark,r:5,style:{zIndex:1500}}),H4={xAccessor:e=>e.x,yAccessor:e=>e.y},Y4=(e,t,n)=>n==="pre"?`${t}${e}`:`${e}${t}`,G4=10,Nz=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=Nz,tooltipStackCharLimit:m=G4,seriesSelectorTitle:x},w)=>{const[y,b]=d.useState(e.map(T=>T.id)),A=d.useRef(null);_n(A,w,`${a}-${i}-StackedBarChart`);const C=d.useMemo(()=>o.map((T,M)=>{const P=e.find(L=>L.id===T.id);return{points:T.data.map((L,W)=>({x:r[W],y:L,nodeId:T.id,color:(P==null?void 0:P.color)??Ge(M)}))}}).slice(0,h==="mini"?g:o.length),[o,h,g,e,r]),$=d.useMemo(()=>h==="full"?C.filter(T=>y.includes(T.points[0].nodeId)):C,[C,y,h]),k=d.useMemo(()=>Math.floor((n-(h==="mini"?0:150))/(r.length*8)),[n,r,h]);return c.jsxs("div",{ref:A,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(P5,{columns:!1,numTicks:6,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),c.jsx(Eo,{hideTicks:!0,orientation:"bottom",stroke:"#CFD7DF",strokeWidth:1,numTicks:6,tickFormat:T=>u?Y4(T,u.symbol,u.position):T,rangePadding:{end:10},tickComponent:T=>c.jsx(Ya,{textLabel:T.formattedValue||"",x:T.x,y:T.y,textStyles:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle"},axisCharLimit:v??k}),label:`${a} ➔`,labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx(Eo,{hideTicks:!0,numTicks:6,strokeWidth:1,orientation:"left",stroke:"#CFD7DF",label:`${i} ➔`,tickFormat:T=>f?Y4(T,f.symbol,f.position):T,tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666"},labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dx:-20,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx(tz,{children:$.map(T=>c.jsx(JB,{data:T.points,dataKey:T.points[0].nodeId,xAccessor:H4.xAccessor,yAccessor:H4.yAccessor,colorAccessor:M=>M.color.light,radiusTop:!0,radius:2},T.points[0].nodeId))}),c.jsx(nl,{showDatumGlyph:!0,scroll:!0,debounce:500,snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,detectBounds:!0,unstyled:!0,applyPositionStyle:!0,renderGlyph:Oz,renderTooltip:({tooltipData:T})=>{var L,W,U,B,E,_;const M=e.find(H=>{var z;return H.id===((z=T==null?void 0:T.nearestDatum)==null?void 0:z.datum.nodeId)}),P=((L=T==null?void 0:T.nearestDatum)==null?void 0:L.datum)&&((W=T==null?void 0:T.nearestDatum)==null?void 0:W.datum.x.length)<m;return c.jsx(U4,{xValue:(U=T==null?void 0:T.nearestDatum)==null?void 0:U.datum.x,yValue:(B=T==null?void 0:T.nearestDatum)==null?void 0:B.datum.y,xAxisLabel:a,yAxisLabel:i,showSideBySide:!!P,tooltipTitle:p,legendValue:(M==null?void 0:M.name)||"",legendDarkColor:((E=T==null?void 0:T.nearestDatum)==null?void 0:E.datum.color.dark)||Ge(0).dark,legendLightColor:((_=T==null?void 0:T.nearestDatum)==null?void 0:_.datum.color.light)||Ge(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}),"(",$.length??0,"/",C.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:C.map(T=>{const M=e.find(P=>P.id===T.points[0].nodeId);return M&&c.jsxs("div",{className:"flex w-full items-center justify-between gap-1 py-1",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("div",{style:{backgroundColor:T.points[0].color.light,borderColor:T.points[0].color.dark},className:"mr-1 h-3 w-3 rounded-full border"}),M.name]}),c.jsx("div",{className:"flex items-center",children:c.jsx(ei,{checked:y.includes(M.id),onCheckedChange:P=>{let L=[...y];P?L=[...y,M.id]:L.splice(y.indexOf(M.id),1),b(L)}})})]},M.id)})})]})]}),h==="mini"&&c.jsx("div",{className:"flex flex-row flex-wrap justify-center gap-4 text-[10px] font-semibold text-font-secondary",children:C.map(T=>{const M=e.find(P=>P.id===T.points[0].nodeId);return c.jsxs("div",{className:"flex items-center justify-center gap-1",children:[c.jsx("div",{style:{backgroundColor:T.points[0].color.light,borderColor:T.points[0].color.dark},className:"h-3 w-3 rounded-full border"}),M==null?void 0:M.name]},M==null?void 0:M.id)})})]})}),Dz={xAxisUnitSymbol:void 0,yAxisUnitSymbol:void 0,mode:"mini",xAxisCharLimit:void 0,tooltipStackCharLimit:G4,xAxisDomain:void 0,yAxisDomain:void 0,connectNulls:!1};l0.defaultProps=Dz,l0.displayName="StackedBarChartBase";const X4=d.forwardRef((e,t)=>c.jsx(Jn,{debounceTime:10,children:({width:n,height:r})=>c.jsx(l0,{ref:t,width:n,height:r,...e})}));X4.displayName="StackedBarChart";const Fz=X4,_z=({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(ei,{checked:t.includes(o),onCheckedChange:s=>{let l=[...t];s?l=[...t,o]:l.splice(t.indexOf(o),1),n(l)}})})]},o))})]});function q4({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(Pe,{tooltipTitle:n,showSideBySide:a,children:[c.jsx(Pe.Header,{label:"Review Cycle",value:(p=s==null?void 0:s.reviewCycle)==null?void 0:p.name}),c.jsx(Pe.Item,{label:r,value:u}),c.jsx(Pe.Item,{label:o,value:f}),i.map(({label:h,value:v})=>c.jsx(Pe.Item,{label:h,value:v},h)),c.jsx(Pe.Footer,{nodeData:l})]})}q4.defaultProps={xValue:void 0,yValue:void 0};var Iz=["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 Lz(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=Lz(e,Iz);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 Bz=["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 Wz(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,Bz),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 jz=["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 Vz(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 Uz(e){var t=e.id,n=e.size,r=n===void 0?9:n,o=e.strokeWidth,a=o===void 0?1:o,i=Vz(e,jz),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 Hz({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(Uz,{id:"marker-circle",stroke:"#666",size:6,refX:7,fill:"transparent",strokeWidth:2}),c.jsx(Wz,{id:"marker-arrow",stroke:"#666",size:14,strokeWidth:2,markerUnits:"userSpaceOnUse"}),c.jsx(p5,{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 Yz=({x:e,y:t,datum:n,size:r})=>c.jsx(oo,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.light,r:r/2}),Gz=({x:e,y:t,datum:n})=>c.jsx(oo,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.dark,r:5,style:{zIndex:1500}}),bl={xAccessor:e=>e==null?void 0:e.x,yAccessor:e=>e==null?void 0:e.y},K4=(e,t,n)=>n==="pre"?`${t}${e}`:`${e}${t}`,Xz=10,qz=5,Q4=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=qz,tooltipStackCharLimit:m=Xz,withBackground:x=!0},w)=>{const y=d.useRef(null),b=e===1;_n(y,w,`${o}-${a}-DirectedLineChart`);const A=d.useMemo(()=>t.map(({seriesMetaData:P},L)=>{const{employee:W}=P;return{id:W.id,name:W.name,color:Ge(L)}}).slice(0,p==="mini"?g:t.length),[t,p,g]),[C,$]=d.useState(()=>A.filter((P,L)=>p==="full"||L<g).map(P=>P.id)),k=d.useMemo(()=>t.map((P,L)=>({nodeId:P.seriesMetaData.employee.id,points:P.xValues.map((W,U)=>{var E;let B=null;return b?B=1/t.length*(L+1)+1/(t.length*10)*(U+1):B=((E=P==null?void 0:P.yValues)==null?void 0:E[U])??null,{x:P.xValues[U],y:B,pointMetaData:P.pointsMetaData[U],nodeId:P.seriesMetaData.employee.id,color:Ge(L)}})})).slice(0,p==="mini"?g:t.length),[t,p,g,b]),T=d.useMemo(()=>p==="full"?k.filter(({nodeId:P})=>C.includes(P)):k,[k,p,C]),M=d.useMemo(()=>Math.floor((r-(p==="mini"?0:150))/(t[0].xValues.length*8)),[r,p,t]);return c.jsx("div",{ref:y,id:"directed-line-chart",className:ue("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(Eo,{hideTicks:!0,orientation:"bottom",stroke:"#CFD7DF",strokeWidth:1,numTicks:6,tickFormat:P=>l?K4(P,l.symbol,l.position):P,tickComponent:P=>c.jsx(Ya,{textLabel:P.formattedValue||"",x:P.x,y:P.y,textStyles:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle"},axisCharLimit:h??M}),label:`${o} ➔`,labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx(Eo,{hideTicks:!0,numTicks:b?0:6,strokeWidth:b?0:1,orientation:"left",stroke:"#CFD7DF",label:a?`${a} ➔`:"",tickFormat:P=>u?K4(P,u.symbol,u.position):P,tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666"},labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dx:-20,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),T.map((P,L)=>c.jsxs(c.Fragment,{children:[c.jsx(Hz,{data:P.points,xAccessor:bl.xAccessor,yAccessor:bl.yAccessor,connectNulls:v}),c.jsx(v4,{dataKey:`Performance Management ${L}`,data:P.points,size:8,renderGlyph:Yz,xAccessor:bl.xAccessor,yAccessor:bl.yAccessor})]})),c.jsx(nl,{showDatumGlyph:!0,scroll:!0,showVerticalCrosshair:!0,showHorizontalCrosshair:!0,debounce:500,snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,detectBounds:!0,unstyled:!0,applyPositionStyle:!0,renderGlyph:Gz,renderTooltip:({tooltipData:P})=>{var U,B,E,_,H,z,N,O,F;const L=t.find(K=>{var G;return K.id===((G=P==null?void 0:P.nearestDatum)==null?void 0:G.datum.nodeId)}),W=((U=P==null?void 0:P.nearestDatum)==null?void 0:U.datum)&&String((B=P==null?void 0:P.nearestDatum)==null?void 0:B.datum.x).length<m;return c.jsx(q4,{xValue:(E=P==null?void 0:P.nearestDatum)==null?void 0:E.datum.x,yValue:(_=P==null?void 0:P.nearestDatum)==null?void 0:_.datum.y,xAxisLabel:o,yAxisLabel:a,showSideBySide:!!W,tooltipTitle:f,otherDataPoints:((N=(z=(H=P==null?void 0:P.nearestDatum)==null?void 0:H.datum)==null?void 0:z.pointMetaData)==null?void 0:N.otherDataPoints)??[],seriesMetaData:L==null?void 0:L.seriesMetaData,pointMetaData:(F=(O=P==null?void 0:P.nearestDatum)==null?void 0:O.datum)==null?void 0:F.pointMetaData})}})]})}),p==="full"&&c.jsx(_z,{nodes:A,seriesSelectorTitle:"Team members",selectedNodeIds:C,setSelectedNodeIds:$})]})})});Q4.displayName="LineBase";const Z4=d.forwardRef((e,t)=>c.jsx(Jn,{debounceTime:10,children:({width:n,height:r})=>c.jsx(Q4,{ref:t,width:n,height:r,...e})}));Z4.displayName="DirectedLineChart";const J4=Z4,Kz=[{"#FFEFD4":"#AF5C20"},{"#DBF2D3":"#44812F"},{"#BFE8C6":"#1A5724"},{"#FFE7C5":"#8C6A00"},{"#FAD4D4":"#C62C02"},{"#EAEAEA":"#333333"},{"#E6F1FD":"#1565BC"},{"#FFE1D9":"#C62C02"}];function Qz({box:e,showCountData:t=!1}){function n(r){if(!r)return"#333";const o=Kz.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",B8(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 Zz=({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},Jz=({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},R4=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:Jz({rows:e,columns:t,boxData:r}),gridTemplateColumns:Zz({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(Qz,{box:v,showCountData:f})},v.label+v.color+g))}),u==="full"&&c.jsx("div",{className:"inline-flex w-64 shrink-0 grow-0"})]})});R4.displayName="GridChart";const eb=R4,tb=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(eb,{...t,mode:n})}),c.jsxs("div",{className:"absolute h-full w-full",children:[c.jsx(J4,{...e,mode:n}),c.jsx("div",{})]})]})});tb.displayName="GridDirectedLineChart";const Rz=tb,yl="ToggleGroup",[nb,nU]=nt(yl,[Jr]),rb=Jr(),eW=d.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return d.createElement(tW,q({},o,{ref:t}))}if(n==="multiple"){const o=r;return d.createElement(nW,q({},o,{ref:t}))}throw new Error(`Missing prop \`type\` expected on \`${yl}\``)}),[ob,ab]=nb(yl),tW=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(ob,{scope:e.__scopeToggleGroup,type:"single",value:i?[i]:[],onItemActivate:s,onItemDeactivate:d.useCallback(()=>s(""),[s])},d.createElement(ib,q({},a,{ref:t})))}),nW=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(ob,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:l,onItemDeactivate:u},d.createElement(ib,q({},a,{ref:t})))}),[rW,oW]=nb(yl),ib=d.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...l}=e,u=rb(n),f=Wn(i),p={role:"group",dir:f,...l};return d.createElement(rW,{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",aW=d.forwardRef((e,t)=>{const n=ab(p0,e.__scopeToggleGroup),r=oW(p0,e.__scopeToggleGroup),o=rb(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(sb,q({},s,{ref:t}))):d.createElement(sb,q({},s,{ref:t}))}),sb=d.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=ab(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)}}))}),iW=eW,sW=aW;function lW({children:e,...t}){return c.jsx(iW,{className:"flex gap-2",...t,children:e})}function cW({value:e,disabled:t,selected:n,icon:r,label:o,count:a,...i}){return c.jsx(sW,{asChild:!0,value:e,...i,children:c.jsx("button",{"data-deer-btn":!0,type:"button",className:ue("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(Oe,{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 Ga="NavigationMenu",[h0,uW,dW]=vr(Ga),[g0,fW,pW]=vr(Ga),[v0,rU]=nt(Ga,[dW,pW]),[hW,Lr]=v0(Ga),[gW,oU]=v0(Ga),vW=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:a,delayDuration:i=200,skipDelayDuration:s=300,orientation:l="horizontal",dir:u,...f}=e,[p,h]=d.useState(null),v=Se(t,M=>h(M)),g=Wn(u),m=d.useRef(0),x=d.useRef(0),w=d.useRef(0),[y,b]=d.useState(!0),[A="",C]=ut({prop:r,onChange:M=>{const P=M!=="",L=s>0;P?(window.clearTimeout(w.current),L&&b(!1)):(window.clearTimeout(w.current),w.current=window.setTimeout(()=>b(!0),s)),o==null||o(M)},defaultProp:a}),$=d.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>C(""),150)},[C]),k=d.useCallback(M=>{window.clearTimeout(x.current),C(M)},[C]),T=d.useCallback(M=>{A===M?window.clearTimeout(x.current):m.current=window.setTimeout(()=>{window.clearTimeout(x.current),C(M)},i)},[A,C,i]);return d.useEffect(()=>()=>{window.clearTimeout(m.current),window.clearTimeout(x.current),window.clearTimeout(w.current)},[]),d.createElement(mW,{scope:n,isRootMenu:!0,value:A,dir:g,orientation:l,rootNavigationMenu:p,onTriggerEnter:M=>{window.clearTimeout(m.current),y?T(M):k(M)},onTriggerLeave:()=>{window.clearTimeout(m.current),$()},onContentEnter:()=>window.clearTimeout(x.current),onContentLeave:$,onItemSelect:M=>{C(P=>P===M?"":M)},onItemDismiss:()=>C("")},d.createElement(me.nav,q({"aria-label":"Main","data-orientation":l,dir:g},f,{ref:v})))}),mW=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,w]=d.useState(new Map),[y,b]=d.useState(null);return d.createElement(hW,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:s,previousValue:Qa(s),baseId:dt(),dir:o,orientation:a,viewport:g,onViewportChange:m,indicatorTrack:y,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)=>{w($=>($.set(A,C),new Map($)))},[]),onViewportContentRemove:d.useCallback(A=>{w(C=>C.has(A)?(C.delete(A),new Map(C)):C)},[])},d.createElement(h0.Provider,{scope:t},d.createElement(gW,{scope:t,items:x},i)))},bW="NavigationMenuList",yW=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Lr(bW,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(db,{asChild:!0},a):a))}),wW="NavigationMenuItem",[xW,lb]=v0(wW),CW=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=kW(g))}},[]);return d.createElement(xW,{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})))}),cb="NavigationMenuTrigger",AW=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,a=Lr(cb,e.__scopeNavigationMenu),i=lb(cb,e.__scopeNavigationMenu),s=d.useRef(null),l=Se(s,i.triggerRef,t),u=gb(a.baseId,i.value),f=vb(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(pb,{asChild:!0},d.createElement(me.button,q({id:u,disabled:r,"data-disabled":r?"":void 0,"data-state":hb(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(i2,{"aria-hidden":!0,tabIndex:0,ref:i.focusProxyRef,onFocus:g=>{const m=i.contentRef.current,x=g.relatedTarget,w=x===s.current,y=m==null?void 0:m.contains(x);(w||!y)&&i.onFocusProxyEnter(w?"start":"end")}}),a.viewport&&d.createElement("span",{"aria-owns":f})))}),ub="navigationMenu.linkSelect",SW=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...a}=e;return d.createElement(pb,{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(ub,{bubbles:!0,cancelable:!0});if(s.addEventListener(ub,u=>o==null?void 0:o(u),{once:!0}),Ja(s,l),!l.defaultPrevented&&!i.metaKey){const u=new CustomEvent(xl,{bubbles:!0,cancelable:!0});Ja(s,u)}},{checkForDefaultPrevented:!1})})))}),wl="NavigationMenuContent",EW=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Lr(wl,e.__scopeNavigationMenu),a=lb(wl,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(MW,q({forceMount:n},l,{ref:i})):d.createElement(Tt,{present:n||s},d.createElement($W,q({"data-state":hb(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}})))}),MW=d.forwardRef((e,t)=>{const n=Lr(wl,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}),xl="navigationMenu.rootContentDismiss",$W=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:a,wasEscapeCloseRef:i,onRootContentClose:s,onContentFocusOutside:l,...u}=e,f=Lr(wl,n),p=d.useRef(null),h=Se(p,t),v=gb(f.baseId,r),g=vb(f.baseId,r),m=uW(n),x=d.useRef(null),{onItemDismiss:w}=f;d.useEffect(()=>{const b=p.current;if(f.isRootMenu&&b){const A=()=>{var C;w(),s(),b.contains(document.activeElement)&&((C=o.current)===null||C===void 0||C.focus())};return b.addEventListener(xl,A),()=>b.removeEventListener(xl,A)}},[f.isRootMenu,e.value,o,w,s]);const y=d.useMemo(()=>{const A=m().map(P=>P.value);f.dir==="rtl"&&A.reverse();const C=A.indexOf(f.value),$=A.indexOf(f.previousValue),k=r===f.value,T=$===A.indexOf(r);if(!k&&!T)return x.current;const M=(()=>{if(C!==$){if(k&&$!==-1)return C>$?"from-end":"from-start";if(T&&C!==-1)return C>$?"to-start":"to-end"}return null})();return x.current=M,M},[f.previousValue,f.value,f.dir,m,r]);return d.createElement(db,{asChild:!0},d.createElement(Wo,q({id:g,"aria-labelledby":v,"data-motion":y,"data-orientation":f.orientation},u,{ref:h,onDismiss:()=>{var b;const A=new Event(xl,{bubbles:!0,cancelable:!0});(b=p.current)===null||b===void 0||b.dispatchEvent(A)},onFocusOutside:de(e.onFocusOutside,b=>{var A;l();const C=b.target;(A=f.rootNavigationMenu)!==null&&A!==void 0&&A.contains(C)&&b.preventDefault()}),onPointerDownOutside:de(e.onPointerDownOutside,b=>{var A;const C=b.target,$=m().some(T=>{var M;return(M=T.ref.current)===null||M===void 0?void 0:M.contains(C)}),k=f.isRootMenu&&((A=f.viewport)===null||A===void 0?void 0:A.contains(C));($||k||!f.isRootMenu)&&b.preventDefault()}),onKeyDown:de(e.onKeyDown,b=>{const A=b.altKey||b.ctrlKey||b.metaKey;if(b.key==="Tab"&&!A){const k=m0(b.currentTarget),T=document.activeElement,M=k.findIndex(W=>W===T),L=b.shiftKey?k.slice(0,M).reverse():k.slice(M+1,k.length);if(b0(L))b.preventDefault();else{var $;($=a.current)===null||$===void 0||$.focus()}}}),onEscapeKeyDown:de(e.onEscapeKeyDown,b=>{i.current=!0})})))}),TW="FocusGroup",db=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Lr(TW,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}))))}),fb=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],PW="FocusGroupItem",pb=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=fW(n),a=Lr(PW,n);return d.createElement(g0.ItemSlot,{scope:n},d.createElement(me.button,q({},r,{ref:t,onKeyDown:de(e.onKeyDown,i=>{if(["Home","End",...fb].includes(i.key)){let l=o().map(p=>p.ref.current);if([a.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(i.key)&&l.reverse(),fb.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 kW(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function hb(e){return e?"open":"closed"}function gb(e,t){return`${e}-trigger-${t}`}function vb(e,t){return`${e}-content-${t}`}function y0(e){return t=>t.pointerType==="mouse"?e(t):void 0}const OW=vW,NW=yW,DW=CW,FW=AW,mb=SW,_W=EW,IW=Ue(["rabbit-ds h-full w-full px-3 py-2 [&>*:first-child]:h-full"],{variants:{variant:{default:""},defaultVariant:{variant:"default"}}});function LW(){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 bb=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(LW,{})}),c.jsx(OW,{className:ue(IW({className:e})),orientation:"vertical",ref:r,...n,children:c.jsx(NW,{className:"m-0 flex h-full flex-col p-0",children:t})})]}));bb.displayName="LeftNav";const w0=d.forwardRef(({children:e,asChild:t=!1,...n},r)=>{const o=t?xn:"div";return c.jsx(DW,{asChild:!0,children:c.jsx(o,{ref:r,className:"rabbit-ds",...n,children:e})})});w0.displayName="LeftNavItem",w0.defaultProps={asChild:!1};const BW=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"}}}),yb=d.forwardRef(({children:e,align:t,...n},r)=>c.jsx("div",{ref:r,className:ue(BW({variant:t})),...n,children:e}));yb.displayName="LeftNavItem";const wb=d.forwardRef((e,t)=>c.jsx(mb,{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"})})]})]})}));wb.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"}}),WW=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"}}),xb=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(mb,{"data-deer-btn":!0,className:ue(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(Oe,{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:ue(WW({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(Oe,{IconSVG:X0,size:"large"})})]})}));xb.displayName="LeftNavButton";const jW=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 VW({className:e,isCollapsed:t,...n}){return c.jsx("button",{"data-deer-btn":!0,type:"button",className:ue(jW({variant:t?"collapsed":"default"}),e),...n,children:c.jsx(Oe,{IconSVG:U0,className:t?"rotate-180":""})})}const Cb=d.createContext({isOpen:!1,toggleOpen:()=>{}}),UW=()=>d.useContext(Cb);function Ab({...e}){const{isOpen:t,toggleOpen:n}=UW();return c.jsx(VW,{className:`absolute right-0 top-5 z-20 ${t?"":"translate-x-full"}`,isCollapsed:!t,onClick:n,...e})}function HW(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(Cb.Provider,{value:u,children:c.jsxs("div",{className:ue("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(Ab,{}),c.jsx("div",{className:s?"h-full p-5":"invisible h-0 w-0 scale-0 overflow-hidden opacity-0",children:t})]})})}function YW({children:e}){return c.jsx("div",{className:ue("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 GW({children:e}){return c.jsx("div",{className:"p-2 text-xs font-semibold text-font-secondary",children:e})}function XW({children:e,...t}){return c.jsx(o2,{...t,children:e})}const qW=Ue("shrink-0",{variants:{orientation:{horizontal:"ml-2",vertical:"mt-2 w-full [&>div]:w-full [&_button]:w-full"}},defaultVariants:{orientation:"horizontal"}});function KW({className:e,orientation:t,...n}){return c.jsx("div",{className:qW({orientation:t}),children:c.jsx(Dt,{className:e,variant:"outline",...n})})}const QW={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 ZW({title:e,achieved:t,status:n}){const r=QW[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:ue(r.colorScheme,"font-semibold text-3xl !bg-transparent"),children:[t,"%"]})]}),c.jsx(Zi,{colorScheme:r.colorScheme,className:"mb-1",children:r.label})]})]})})}function JW({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(un,{size:"xl",children:c.jsx(dn,{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(Zi,{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 RW({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(un,{size:"xl",children:c.jsx(dn,{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 ej({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(un,{size:"xl",children:c.jsx(dn,{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(Zi,{variant:"outlined",children:n}),c.jsx("span",{className:"mt-1 w-full truncate text-font-secondary",children:r})]})]})})}const tj=Ue("",{variants:{orientation:{horizontal:"flex-row",vertical:"min-w-max flex-col"}},defaultVariants:{orientation:"horizontal"}});function nj({className:e,children:t,orientation:n}){return c.jsx("div",{className:ue("rabbit-ds","w-full flex items-center rounded-lg p-4 bg-[#FDFDFD] border border-solid border-[#F3F5F8]",tj({orientation:n}),e),children:t})}function rj({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:ue("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(un,{className:"h-16 w-16",children:c.jsx(dn,{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:Io,children:["View ",f?"less":"more"]})})]})}function oj({surveyName:e,date:t}){return c.jsx("div",{className:"rabbit-ds mr-auto",children:c.jsxs("div",{className:"flex gap-2",children:[c.jsx(Oe,{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 aj=Ue("",{variants:{variant:{single:"flex-row [&>div]:items-start",multiple:"flex-col"}},defaultVariants:{variant:"single"}});function Sb({employeeName:e,employeeProfilePhoto:t,scheduleDate:n,duration:r,variant:o="single",subTitle:a}){return c.jsx("div",{className:ue("rabbit-ds",o==="single"?"mr-auto":"my-auto"),children:c.jsxs("div",{className:ue("flex items-center text-sm gap-2",aj({variant:o})),children:[c.jsx(un,{size:"xl",children:c.jsx(dn,{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})]})]})})}Sb.defaultProps={subTitle:void 0,scheduleDate:void 0};function ij({label:e,onClick:t,customCompProps:n}){const[r,o]=d.useState(1);return c.jsxs(Vc,{children:[c.jsx(ji,{children:c.jsx("span",{children:e})}),c.jsx(jc,{children:c.jsx(Vi,{children:c.jsx(Rr,{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 sj({options:e}){const[t,n]=d.useState(!1),r=(o,a)=>{o(a),n(!1)};return c.jsxs(Bi,{open:t,children:[c.jsx(zi,{asChild:!0,onClick:()=>n(!0),children:c.jsx(Dt,{variant:"text",size:"smallIcon",children:c.jsx(Oe,{IconSVG:G0})})}),c.jsx(Zo,{className:"w-56",onFocusOutside:()=>n(!1),onPointerDownOutside:()=>n(!1),children:c.jsx(Rr,{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(ij,{onClick:l=>r(a,l),label:i,customCompProps:s},i))})})]})}const Eb=Jo,Mb=Rr,$b=Wi,Tb=Yi,Pb=Ui,kb=Hi,Ob=d.forwardRef(({className:e,children:t,align:n="end",...r},o)=>c.jsx(Zo,{ref:o,align:n,...r,children:t}));Ob.displayName="SplitButtonDropdownContent";const lj=Ue("",{variants:{size:{normal:"icon",small:"smallIcon",icon:"icon",smallIcon:"smallIcon",nav:"icon"}},defaultVariants:{size:"normal"}});function cj({children:e,size:t,status:n,variant:r,...o}){return c.jsx("div",{className:"rabbit-ds flex flex-row",children:c.jsxs(Bi,{children:[c.jsx(Dt,{variant:r,status:n,size:t,...o,className:"rounded-r-none",children:e}),c.jsx(zi,{asChild:!0,children:c.jsx(Dt,{variant:r,status:n,className:"rounded-l-none border-l-0",size:lj({size:t}),iconLeft:Io})})]})})}Eb.displayName="SplitButtonDropdownItem",Mb.displayName="SplitButtonDropdownGroup",$b.displayName="SplitButtonDropdownRadioGroup",Tb.displayName="SplitButtonDropdownLabel",Pb.displayName="SplitButtonDropdownCheckboxItem",kb.displayName="SplitButtonDropdownRadioItem",j.Accordion=H1,j.AccordionContent=X1,j.AccordionItem=Y1,j.AccordionTrigger=G1,j.Add=z8,j.Alert=q1,j.AlertDescription=Q1,j.AlertDialogAction=zp,j.AlertDialogCancel=Bp,j.AlertDialogComponent=C9,j.AlertDialogContainer=Ip,j.AlertDialogContent=pc,j.AlertDialogDescription=gc,j.AlertDialogOverlay=fc,j.AlertDialogPortal=Lp,j.AlertDialogTitle=hc,j.AlertDialogTrigger=Wp,j.AlertIcon=K1,j.Avatar=un,j.AvatarBadge=Gi,j.AvatarFallback=yi,j.AvatarGroup=ou,j.AvatarImage=dn,j.Button=Dt,j.Calendar=W8,j.Caption=vc,j.Card=zo,j.CardContent=Gl,j.CardDescription=N1,j.CardHeader=O1,j.CardKPI=yE,j.CardTitle=Yl,j.Carousel=SM,j.CarouselContainer=EM,j.CarouselNextButton=$M,j.CarouselPrevButton=MM,j.Check=_o,j.CheckCircleOutline=B0,j.Checkbox=ei,j.ChevronDown=Io,j.ChevronLeft=j8,j.ChevronLeftCircle=z0,j.ChevronRight=_l,j.ChevronRightCircle=W0,j.ChevronUp=j0,j.Chip=m6,j.ChipGroup=lW,j.ChipGroupItem=cW,j.Close=V0,j.CollapseNavigation=U0,j.CollapsibleCard=gy,j.ColumnFilter=H0,j.ColumnFilterCheck=Z0,j.Company=V8,j.DateTime=yc,j.Develop=U8,j.DirectedLineChart=J4,j.DonutChart=Pz,j.Download=H8,j.Dropdown=Bi,j.DropdownCheckboxItem=Ui,j.DropdownContent=Zo,j.DropdownGroup=Rr,j.DropdownItem=Jo,j.DropdownLabel=Yi,j.DropdownPortal=jc,j.DropdownRadioGroup=Wi,j.DropdownRadioItem=Hi,j.DropdownSeparator=Uc,j.DropdownSub=Vc,j.DropdownSubContent=Vi,j.DropdownSubTrigger=ji,j.DropdownTrigger=zi,j.Engagement=Y8,j.EngagementNudgeData=oj,j.ErrorOutline=Il,j.ExpandDown=G8,j.ExpandRight=Y0,j.Feedback=X8,j.Goal=q8,j.GoalsNudgeData=ZW,j.GridChart=eb,j.GridDirectedLineChart=Rz,j.Help=K8,j.HistogramChart=Mz,j.Home=Q8,j.Icon=Oe,j.InfoWorkZero=Ll,j.Initiatives=Z8,j.Input=n1,j.KebabMenu=G0,j.KnowTeamNudgeData=Sb,j.Label=a1,j.LeftNav=bb,j.LeftNavButton=xb,j.LeftNavGroup=yb,j.LeftNavHome=wb,j.LeftNavItem=w0,j.LeftNavItemContent=_W,j.LeftNavItemDropdown=Bi,j.LeftNavItemDropdownCheckboxItem=Ui,j.LeftNavItemDropdownContent=Zo,j.LeftNavItemDropdownGroup=Rr,j.LeftNavItemDropdownItem=Jo,j.LeftNavItemDropdownLabel=Yi,j.LeftNavItemDropdownPortal=jc,j.LeftNavItemDropdownRadioGroup=Wi,j.LeftNavItemDropdownRadioItem=Hi,j.LeftNavItemDropdownSeparator=Uc,j.LeftNavItemDropdownSub=Vc,j.LeftNavItemDropdownSubContent=Vi,j.LeftNavItemDropdownSubTrigger=ji,j.LeftNavItemDropdownTrigger=zi,j.LeftNavItemTrigger=FW,j.LineChart=uz,j.ListItem=o2,j.ListItemIcon=yA,j.ListItemText=mA,j.Manager=J8,j.ManagerWithBorder=R8,j.MeshLogo=J0,j.MeshMaven=l6,j.MeshMavenAsk=c6,j.MeshMavenDisabledThumbsUp=u6,j.MeshMavenWithHording=d6,j.MeshMavenWithOrangeBulb=f6,j.MeshMavenWithThumbsUp=p6,j.Metric=G2,j.MetricCard=Y2,j.MetricCardText=au,j.MetricCardTitle=X2,j.MyOneOnOne=e6,j.NavCollapseButtonL2=Ab,j.NavGroupL2=YW,j.NavGroupTitleL2=GW,j.NavItemL2=XW,j.NavL2=HW,j.NudgeAction=KW,j.NudgeCard=rj,j.NudgeCardItem=nj,j.NudgeKebabMenu=sj,j.Overflow=X0,j.Person=t6,j.Product=n6,j.ProfileCard=iu,j.ProfileCardItem=q2,j.ProfileCardKey=K2,j.ProfileCardValue=Q2,j.ProgressBar=h1,j.ProgressInfo=mE,j.ProgressSlider=oy,j.RadarChart=kz,j.RequestFeedback=r6,j.RequestedFeedbackNudgeData=ej,j.Reviews=o6,j.ReviewsNudgeData=JW,j.Role=a6,j.SankeyChart=wz,j.Search=q0,j.Select=sS,j.SelectContent=x2,j.SelectGroup=lS,j.SelectItem=A2,j.SelectLabel=C2,j.SelectSeparator=S2,j.SelectTrigger=w2,j.SelectValue=cS,j.ShareFeedback=i6,j.SharePraiseNudgeData=RW,j.SliderDrag=K0,j.SplitButton=cj,j.SplitButtonDropdownCheckboxItem=Pb,j.SplitButtonDropdownContent=Ob,j.SplitButtonDropdownGroup=Mb,j.SplitButtonDropdownItem=Eb,j.SplitButtonDropdownLabel=Tb,j.SplitButtonDropdownRadioGroup=$b,j.SplitButtonDropdownRadioItem=kb,j.StackedBarChart=Fz,j.Survey=Q0,j.Tabs=F2,j.TabsContent=L2,j.TabsList=_2,j.TabsTrigger=I2,j.Tag=Zi,j.Team=s6,j.Toaster=vE,j.Tooltip=eu,j.TooltipContent=Ri,j.TooltipPortal=nu,j.TooltipProvider=Rc,j.TooltipTrigger=tu,j.TrendingDown=h6,j.TrendingUp=g6,j.getInitialsFromName=Gp,j.toast=iE,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
96
+ `}),Z.appendChild(Y.createTextNode($t))}R.timeEnd("clone node"),ve==null||ve(ke),pe!==!1&&te(ke)&&(R.time("embed web font"),yield xj(ke,V),R.timeEnd("embed web font")),R.time("embed node"),jb(ke,V);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(ke);const Ve=kj(ke,V);return ae&&Ve.insertBefore(ae,Ve.children[0]),Z&&Ve.insertBefore(Z,Ve.children[0]),ye&&_b(V),Ae==null||Ae(Ve),Ve})}function kj(S,I){const{width:V,height:Y}=I,R=Bt(V,Y,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 Tl(S,I){return m(this,null,function*(){var V;const Y=yield zt(S,I),R=yield Vb(Y),ie=et(R,Y.isEnable("removeControlCharacter"));Y.autoDestruct||(Y.svgStyleElement=Mt(Y.ownerDocument),Y.svgDefsElement=(V=Y.ownerDocument)==null?void 0:V.createElementNS(Lt,"defs"),Y.svgStyles.clear());const Z=Ke(ie,R.ownerDocument);return yield In(Z,Y)})}function Oj(S,I){return m(this,null,function*(){const V=yield zt(S,I),{log:Y,type:R,quality:ie,dpi:Z}=V,ae=yield Tl(V);Y.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=M(ge,Z):R==="image/jpeg"&&(ge=x(ge,Z)),Y.timeEnd("canvas to blob"),new Blob([ge,fe.slice(33)],{type:R})}return Y.timeEnd("canvas to blob"),fe})}function No(S,I){return m(this,null,function*(){const V=yield zt(S,I),{log:Y,quality:R,type:ie,dpi:Z}=V,ae=yield Tl(V);Y.time("canvas to data url");let fe=ae.toDataURL(ie,R);if(["image/png","image/jpeg"].includes(ie)&&Z&&H&&z){const[pe,ge]=fe.split(",");let ye=0,ve=!1;if(ie==="image/png"){const Ve=U(ge);Ve>=0?(ye=Math.ceil((Ve+28)/3)*4,ve=!0):ye=33/3*4}else ie==="image/jpeg"&&(ye=18/3*4);const Ee=ge.substring(0,ye),Ae=ge.substring(ye),ke=window.atob(Ee),_e=new Uint8Array(ke.length);for(let Ve=0;Ve<_e.length;Ve++)_e[Ve]=ke.charCodeAt(Ve);const Ie=ie==="image/png"?M(_e,Z,ve):x(_e,Z),Xe=window.btoa(String.fromCharCode(...Ie));fe=[pe,",",Xe,Ae].join("")}return Y.timeEnd("canvas to data url"),fe})}function Ub(S,I){return m(this,null,function*(){const V=yield zt(S,I),{width:Y,height:R,ownerDocument:ie}=V,Z=yield No(V),ae=Bt(Y,R,ie),fe=ae.ownerDocument.createElementNS(ae.namespaceURI,"image");return fe.setAttributeNS(null,"href",Z),fe.setAttributeNS(null,"height","100%"),fe.setAttributeNS(null,"width","100%"),ae.appendChild(fe),et(ae,V.isEnable("removeControlCharacter"))})}function Nj(S,I){return m(this,null,function*(){const V=yield zt(S,I),{ownerDocument:Y,width:R,height:ie,scale:Z,type:ae}=V,fe=ae==="image/svg+xml"?yield Ub(V):yield No(V),pe=Ke(fe,Y);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 Dj(S,I){return m(this,null,function*(){return No(yield zt(S,v(h({},I),{type:"image/jpeg"})))})}function Fj(S,I){return m(this,null,function*(){const V=yield zt(S,I),Y=yield Tl(V);return Y.getContext("2d").getImageData(0,0,Y.width,Y.height).data})}function _j(S,I){return m(this,null,function*(){return No(yield zt(S,v(h({},I),{type:"image/png"})))})}function Ij(S,I){return m(this,null,function*(){return No(yield zt(S,v(h({},I),{type:"image/webp"})))})}n.createContext=Sl,n.destroyContext=_b,n.domToBlob=Oj,n.domToCanvas=Tl,n.domToDataUrl=No,n.domToForeignObjectSvg=Vb,n.domToImage=Nj,n.domToJpeg=Dj,n.domToPixel=Fj,n.domToPng=_j,n.domToSvg=Ub,n.domToWebp=Ij,n.loadMedia=yt,n.waitUntilLoad=yn,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})})})(Zf,Zf.exports);var oz=Zf.exports;const _n=(e,t,n)=>{d.useImperativeHandle(t,()=>({download(){e.current&&oz.domToPng(e.current,{scale:5}).then(r=>{const o=document.createElement("a");o.download=`${n}.png`,o.href=r,o.click()})}}))},m4=[{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 Ge(e){return m4[e%m4.length]}const fl=(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(un,{size:"md",children:c.jsx(dn,{src:r,alt:"Avatar"})}),c.jsx("div",{className:"flex items-start justify-start px-2 text-sm font-medium",children:n||"-"})]})}function Pe({children:e,showSideBySide:t,tooltipTitle:n}){const r=fl(e,Jf),o=fl(e,Rf),a=fl(e,e0),i=fl(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:ue("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:ue("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:ue("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",Pe.Legend=Jf,Pe.Item=Rf,Pe.Header=e0,Pe.Footer=t0,Pe.defaultProps={showSideBySide:!1};function b4({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(Pe,{tooltipTitle:n,showSideBySide:a,children:[c.jsx(Pe.Item,{label:r,value:u}),c.jsx(Pe.Item,{label:o,value:f}),c.jsx(Pe.Legend,{value:i,darkColor:s,lightColor:l})]})}b4.defaultProps={xValue:void 0,yValue:void 0};function az({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(p5,{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 iz=({x:e,y:t,datum:n,size:r})=>c.jsx(oo,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.light,r:r/2}),sz=({x:e,y:t,datum:n})=>c.jsx(oo,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.dark,r:5,style:{zIndex:1500}}),pl={xAccessor:e=>e.x,yAccessor:e=>e.y},y4=(e,t,n)=>n==="pre"?`${t}${e}`:`${e}${t}`,w4=10,lz=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=lz,tooltipStackCharLimit:x=w4,seriesSelectorTitle:w},y)=>{const[b,A]=d.useState(e.map(M=>M.id)),C=d.useRef(null);_n(C,y,`${a}-${i}-LineChart`);const $=d.useMemo(()=>o.map((M,P)=>{const L=e.find(W=>W.id===M.id);return{points:M.data.map((W,U)=>({x:r[U],y:W,nodeId:M.id,color:(L==null?void 0:L.color)??Ge(P)}))}}).slice(0,h==="mini"?m:o.length),[o,h,m,e,r]),k=d.useMemo(()=>h==="full"?$.filter(M=>b.includes(M.points[0].nodeId)):$,[$,b,h]),T=d.useMemo(()=>Math.floor((n-(h==="mini"?0:150))/(r.length*8)),[n,r,h]);return c.jsxs("div",{ref:C,id:"line-chart",className:"rabbit-ds flex flex-col bg-white",style:{width:n,height:t},children:[c.jsxs("div",{className:"flex h-full min-h-0 w-full min-w-0 flex-row",children:[c.jsx("div",{className:"h-full min-h-0 w-full min-w-0",children:c.jsxs(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(P5,{columns:!1,numTicks:6,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),c.jsx(Eo,{hideTicks:!0,orientation:"bottom",stroke:"#CFD7DF",strokeWidth:1,tickFormat:M=>u?y4(M,u.symbol,u.position):M,rangePadding:{end:10},tickComponent:M=>c.jsx(Ya,{textLabel:M.formattedValue||"",x:M.x,y:M.y,textStyles:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle"},axisCharLimit:v??T}),label:`${a} ➔`,labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx(Eo,{hideTicks:!0,numTicks:6,strokeWidth:1,orientation:"left",stroke:"#CFD7DF",label:`${i} ➔`,tickFormat:M=>f?y4(M,f.symbol,f.position):M,tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666"},labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dx:-20,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),k.map((M,P)=>c.jsxs(c.Fragment,{children:[c.jsx(az,{data:M.points,xAccessor:pl.xAccessor,yAccessor:pl.yAccessor,connectNulls:g}),c.jsx(v4,{dataKey:`Performance Management ${P}`,data:M.points,size:8,renderGlyph:iz,xAccessor:pl.xAccessor,yAccessor:pl.yAccessor})]})),c.jsx(nl,{showDatumGlyph:!0,scroll:!0,debounce:500,snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,detectBounds:!0,unstyled:!0,applyPositionStyle:!0,renderGlyph:sz,renderTooltip:({tooltipData:M})=>{var W,U,B,E,_,H;const P=e.find(z=>{var N;return z.id===((N=M==null?void 0:M.nearestDatum)==null?void 0:N.datum.nodeId)}),L=((W=M==null?void 0:M.nearestDatum)==null?void 0:W.datum)&&((U=M==null?void 0:M.nearestDatum)==null?void 0:U.datum.x.length)<x;return c.jsx(b4,{xValue:(B=M==null?void 0:M.nearestDatum)==null?void 0:B.datum.x,yValue:(E=M==null?void 0:M.nearestDatum)==null?void 0:E.datum.y,xAxisLabel:a,yAxisLabel:i,showSideBySide:!!L,tooltipTitle:p,legendValue:(P==null?void 0:P.name)||"",legendDarkColor:((_=M==null?void 0:M.nearestDatum)==null?void 0:_.datum.color.dark)||Ge(0).dark,legendLightColor:((H=M==null?void 0:M.nearestDatum)==null?void 0:H.datum.color.light)||Ge(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:w??a}),"(",k.length??0,"/",$.length,")"]}),c.jsx("div",{className:"inline-flex h-[95%] w-full shrink-0 grow-0 flex-col items-start justify-start gap-1 overflow-scroll pr-4",children:$.map(M=>{const P=e.find(L=>L.id===M.points[0].nodeId);return P&&c.jsxs("div",{className:"flex w-full items-center justify-between gap-1 py-1",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("div",{style:{backgroundColor:M.points[0].color.light,borderColor:M.points[0].color.dark},className:"mr-1 h-3 w-3 rounded-full border"}),P.name]}),c.jsx("div",{className:"flex items-center",children:c.jsx(ei,{checked:b.includes(P.id),onCheckedChange:L=>{let W=[...b];L?W=[...b,P.id]:W.splice(b.indexOf(P.id),1),A(W)}})})]},P.id)})})]})]}),h==="mini"&&c.jsx("div",{className:"flex flex-row flex-wrap justify-center gap-4 text-[10px] font-semibold text-font-secondary",children:$.map(M=>{const P=e.find(L=>L.id===M.points[0].nodeId);return c.jsxs("div",{className:"flex items-center justify-center gap-1",children:[c.jsx("div",{style:{backgroundColor:M.points[0].color.light,borderColor:M.points[0].color.dark},className:"h-3 w-3 rounded-full border"}),P==null?void 0:P.name]},P==null?void 0:P.id)})})]})}),cz={xAxisUnitSymbol:void 0,yAxisUnitSymbol:void 0,mode:"mini",xAxisCharLimit:void 0,tooltipStackCharLimit:w4,xAxisDomain:void 0,yAxisDomain:void 0,connectNulls:!1};n0.defaultProps=cz,n0.displayName="LineBase";const x4=d.forwardRef((e,t)=>c.jsx(Jn,{debounceTime:10,children:({width:n,height:r})=>c.jsx(n0,{ref:t,width:n,height:r,...e})}));x4.displayName="LineChart";const uz=x4;function C4(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 dz(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 fz(e,t){return e.sourceLinks.length?e.depth:t-1}function hl(e){return function(){return e}}function A4(e,t){return gl(e.source,t.source)||e.index-t.index}function S4(e,t){return gl(e.target,t.target)||e.index-t.index}function gl(e,t){return e.y0-t.y0}function o0(e){return e.value}function pz(e){return e.index}function hz(e){return e.nodes}function gz(e){return e.links}function E4(e,t){const n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function M4({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 vz(){let e=0,t=0,n=1,r=1,o=24,a=8,i,s=pz,l=fz,u,f,p=hz,h=gz,v=6;function g(){const E={nodes:p.apply(null,arguments),links:h.apply(null,arguments)};return m(E),x(E),w(E),y(E),C(E),M4(E),E}g.update=function(E){return M4(E),E},g.nodeId=function(E){return arguments.length?(s=typeof E=="function"?E:hl(E),g):s},g.nodeAlign=function(E){return arguments.length?(l=typeof E=="function"?E:hl(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:hl(E),g):p},g.links=function(E){return arguments.length?(h=typeof E=="function"?E:hl(E),g):h},g.linkSort=function(E){return arguments.length?(f=E,g):f},g.size=function(E){return arguments.length?(e=t=0,n=+E[0],r=+E[1],g):[n-e,r-t]},g.extent=function(E){return arguments.length?(e=+E[0][0],n=+E[1][0],t=+E[0][1],r=+E[1][1],g):[[e,t],[n,r]]},g.iterations=function(E){return arguments.length?(v=+E,g):v};function m({nodes:E,links:_}){for(const[z,N]of E.entries())N.index=z,N.sourceLinks=[],N.targetLinks=[];const H=new Map(E.map((z,N)=>[s(z,N,E),z]));for(const[z,N]of _.entries()){N.index=z;let{source:O,target:F}=N;typeof O!="object"&&(O=N.source=E4(H,O)),typeof F!="object"&&(F=N.target=E4(H,F)),O.sourceLinks.push(N),F.targetLinks.push(N)}if(f!=null)for(const{sourceLinks:z,targetLinks:N}of E)z.sort(f),N.sort(f)}function x({nodes:E}){for(const _ of E)_.value=_.fixedValue===void 0?Math.max(r0(_.sourceLinks,o0),r0(_.targetLinks,o0)):_.fixedValue}function w({nodes:E}){const _=E.length;let H=new Set(E),z=new Set,N=0;for(;H.size;){for(const O of H){O.depth=N;for(const{target:F}of O.sourceLinks)z.add(F)}if(++N>_)throw new Error("circular link");H=z,z=new Set}}function y({nodes:E}){const _=E.length;let H=new Set(E),z=new Set,N=0;for(;H.size;){for(const O of H){O.height=N;for(const{source:F}of O.targetLinks)z.add(F)}if(++N>_)throw new Error("circular link");H=z,z=new Set}}function b({nodes:E}){const _=C4(E,N=>N.depth)+1,H=(n-e-o)/(_-1),z=new Array(_);for(const N of E){const O=Math.max(0,Math.min(_-1,Math.floor(l.call(null,N,_))));N.layer=O,N.x0=e+O*H,N.x1=N.x0+o,z[O]?z[O].push(N):z[O]=[N]}if(u)for(const N of z)N.sort(u);return z}function A(E){const _=dz(E,H=>(r-t-(H.length-1)*i)/r0(H,o0));for(const H of E){let z=t;for(const N of H){N.y0=z,N.y1=z+N.value*_,z=N.y1+i;for(const O of N.sourceLinks)O.width=O.value*_}z=(r-z+i)/(H.length+1);for(let N=0;N<H.length;++N){const O=H[N];O.y0+=z*(N+1),O.y1+=z*(N+1)}W(H)}}function C(E){const _=b(E);i=Math.min(a,(r-t)/(C4(_,H=>H.length)-1)),A(_);for(let H=0;H<v;++H){const z=Math.pow(.99,H),N=Math.max(1-z,(H+1)/v);k(_,z,N),$(_,z,N)}}function $(E,_,H){for(let z=1,N=E.length;z<N;++z){const O=E[z];for(const F of O){let K=0,G=0;for(const{source:ne,value:te}of F.targetLinks){let J=te*(F.layer-ne.layer);K+=U(ne,F)*J,G+=J}if(!(G>0))continue;let ee=(K/G-F.y0)*_;F.y0+=ee,F.y1+=ee,L(F)}u===void 0&&O.sort(gl),T(O,H)}}function k(E,_,H){for(let z=E.length,N=z-2;N>=0;--N){const O=E[N];for(const F of O){let K=0,G=0;for(const{target:ne,value:te}of F.sourceLinks){let J=te*(ne.layer-F.layer);K+=B(F,ne)*J,G+=J}if(!(G>0))continue;let ee=(K/G-F.y0)*_;F.y0+=ee,F.y1+=ee,L(F)}u===void 0&&O.sort(gl),T(O,H)}}function T(E,_){const H=E.length>>1,z=E[H];P(E,z.y0-i,H-1,_),M(E,z.y1+i,H+1,_),P(E,r,E.length-1,_),M(E,t,0,_)}function M(E,_,H,z){for(;H<E.length;++H){const N=E[H],O=(_-N.y0)*z;O>1e-6&&(N.y0+=O,N.y1+=O),_=N.y1+i}}function P(E,_,H,z){for(;H>=0;--H){const N=E[H],O=(N.y1-_)*z;O>1e-6&&(N.y0-=O,N.y1-=O),_=N.y0-i}}function L({sourceLinks:E,targetLinks:_}){if(f===void 0){for(const{source:{sourceLinks:H}}of _)H.sort(S4);for(const{target:{targetLinks:H}}of E)H.sort(A4)}}function W(E){if(f===void 0)for(const{sourceLinks:_,targetLinks:H}of E)_.sort(S4),H.sort(A4)}function U(E,_){let H=E.y0-(E.sourceLinks.length-1)*i/2;for(const{target:z,width:N}of E.sourceLinks){if(z===_)break;H+=N+i}for(const{source:z,width:N}of _.targetLinks){if(z===E)break;H-=N}return H}function B(E,_){let H=_.y0-(_.targetLinks.length-1)*i/2;for(const{source:z,width:N}of _.targetLinks){if(z===E)break;H+=N+i}for(const{target:z,width:N}of E.sourceLinks){if(z===_)break;H-=N}return H}return g}function mz({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(Pe,{tooltipTitle:o,children:[c.jsx(Pe.Item,{label:t,value:a.name}),c.jsx(Pe.Item,{label:n,value:i.name}),c.jsx(Pe.Item,{label:r,value:e.weight.toString()}),c.jsx(Pe.Legend,{value:a.name,darkColor:(s=Ge((a.index||0)+1))==null?void 0:s.dark,lightColor:(l=Ge((a.index||0)+1))==null?void 0:l.light}),c.jsx(Pe.Legend,{value:i.name,darkColor:(u=Ge((i.index||0)+1))==null?void 0:u.dark,lightColor:(f=Ge((i.index||0)+1))==null?void 0:f.light})]})}const $4=80,T4=20,bz=30,yz=12,P4=d.forwardRef(({height:e,width:t,tooltipTitle:n,nodes:r,links:o,groups:a,weightLabel:i},s)=>{const l=d.useMemo(()=>vz().nodeId(E=>E.id).nodeWidth(yz).nodePadding(bz).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:w,showTooltip:y,hideTooltip:b}=Ia(),{containerBounds:A,containerRef:C,TooltipInPortal:$}=La({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),k=d.useMemo(()=>l.extent([[$4,T4],[t-$4,e-T4-50]])({nodes:r,links:o.map(E=>({...E,value:Number(E.weight)}))}),[e,t,l,r,o]),T=d.useMemo(()=>Math.max(...k.nodes.map(E=>E.depth??0)),[k]),M=d.useMemo(()=>{const E={};let _=-1/0;return k.nodes.forEach(H=>{const{group:z}=H;E[z]?(E[z].x=Math.max(E[z].x??-1/0,H.x0??-1/0),E[z].y=Math.max(E[z].y??-1/0,H.y1??-1/0)):(E[z]={},E[z].x=H.x0,E[z].y=H.y1),_=Math.max(_,E[z].y??-1/0),E[z].y=_}),Object.keys(E).forEach(H=>{E[H].y=_}),E},[k]),P=d.useCallback(E=>{const _=l.nodeId()(E);p(f===_?"":_)},[f,l]),L=d.useCallback(()=>{p(""),v(null)},[]),W=d.useMemo(()=>f===""&&h===null?new Set:new Set(k.links.filter(E=>l.nodeId()(E.source)===f||l.nodeId()(E.target)===f||(h==null?void 0:h.source)===E.source&&(h==null?void 0:h.target)===E.target)),[f,k,h,l]),U=d.useCallback((E,_)=>{const H=("clientX"in E?E.clientX:0)-A.left,z=("clientY"in E?E.clientY:0)-A.top;v(_),H&&z&&y({tooltipLeft:H,tooltipTop:z,tooltipData:_})},[y,A]),B=d.useCallback(()=>{L(),b()},[L,b]);return c.jsxs("div",{ref:u,className:"rabbit-ds h-min w-min bg-white",id:"sankey-chart",children:[c.jsxs("svg",{height:e,width:t,ref:C,children:[c.jsx("g",{children:k.links.map(E=>c.jsx(eI,{data:E,source:_=>({x:_.source.x1,y:_.y0}),target:_=>({x:_.target.x0,y:_.y1}),x:_=>_.x??0,y:_=>_.y??0,fill:"none",pointerEvents:"stroke",onMouseLeave:()=>B(),onMouseMove:_=>U(_,E),stroke:Ge((E.source.index||0)+1).light,strokeWidth:E.width,strokeOpacity:W.has(E)?.7:.4},E.index))}),c.jsx("g",{children:k.nodes.map(E=>{var _,H,z;return c.jsx("g",{children:c.jsx(h5,{x:E.x0??0,height:(E.y1??0)-(E.y0??0)+10,width:(E.x1??0)-(E.x0??0),y:(E.y0??0)-5,onMouseEnter:()=>P(E),onMouseLeave:()=>L(),radius:2,fill:f===E.id?(_=Ge((E.index||0)+1))==null?void 0:_.dark:(H=Ge((E.index||0)+1))==null?void 0:H.light,stroke:(z=Ge((E.index||0)+1))==null?void 0:z.dark,all:!0})},E.index)})}),c.jsx("g",{children:a.map(E=>c.jsx(Ya,{axisCharLimit:20,x:M[E.id].x??0,y:(M[E.id].y??0)+40,textLabel:E.name,textStyles:{fontSize:10,fontWeight:600,textAnchor:"middle",fill:"#666666"}},E.id))}),c.jsxs("g",{children:[k.nodes.map(E=>c.jsx(Ya,{axisCharLimit:8,x:E.depth===T?(E.x1??0)+10:(E.x0??0)-10,y:(E.y0??0)+((E.y1??0)-(E.y0??0))/2,textLabel:E.name,textStyles:{fontSize:10,fontWeight:600,textAnchor:E.depth===T?"start":"end",fill:"#666666"}},E.index)),k.nodes.map(E=>E.value&&c.jsx(xs,{x:E.depth===T?(E.x1??0)+10:(E.x0??0)-10,y:(E.y0??0)+((E.y1??0)-(E.y0??0))/2+16,style:{fontSize:10,fontWeight:400,textAnchor:E.depth===T?"start":"end",fill:"#666666"},children:`(${E.value.toString()})`},E.index))]})]}),w&&g&&c.jsx($,{top:x,left:m,unstyled:!0,applyPositionStyle:!0,children:c.jsx(mz,{tooltipData:g,fromLabel:`From: ${a[g.source.group].name}`,toLabel:`To: ${a[g.target.group].name}`,weightLabel:i,tooltipTitle:n})},Math.random())]})});P4.displayName="Sankey";const k4=d.forwardRef((e,t)=>c.jsx(Jn,{debounceTime:10,children:({width:n,height:r})=>n&&r&&c.jsx(P4,{ref:t,width:n,height:r,...e})}));k4.displayName="SankeyChart";const wz=k4;function xz(e){return"bandwidth"in e?e.bandwidth():0}var Cz=["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 Az(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 O4(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,w=e.offset,y=e.tickValues,b=Az(e,Cz),A=y??Xd(a,m),C=(w??0)+xz(a)/2,$=A.map(function(k,T){var M,P=((M=Ys(a(k)))!=null?M:0)+C;return{index:T,from:new Tn({x:0,y:P}),to:new Tn({x:i,y:P})}});return d.createElement(pn,{className:gt("visx-rows",h),top:n,left:o},v?v({lines:$}):$.map(function(k){var T=k.from,M=k.to,P=k.index;return d.createElement(iI,a0({key:"row-line-"+P,from:T,to:M,stroke:l,strokeWidth:f,strokeDasharray:p,style:x},b))}))}O4.propTypes={tickValues:re.array,width:re.number.isRequired};function N4({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(Pe,{tooltipTitle:n,showSideBySide:!0,children:[c.jsx(Pe.Item,{label:r,value:l}),c.jsx(Pe.Item,{label:o,value:u}),c.jsx(Pe.Legend,{value:a,darkColor:i,lightColor:s})]})}N4.defaultProps={xValue:void 0,yValue:void 0};const D4=20,F4=50,i0=80,vl=50,Sz=10,Ez=25,s0=d.forwardRef(({tooltipTitle:e,xAxisLabel:t,yAxisLabel:n,domain:r,binCount:o,data:a,width:i,height:s,maxBinCount:l=Ez,minBinCount:u=Sz,integerBins:f=!1,integerYAxis:p=!1},h)=>{const v=d.useMemo(()=>Cs(a),[a]),{histogramDomain:g,threshold:m,thresholdInteger:x}=d.useMemo(()=>{const N=v[0]??0,O=N===v[1]?u+N:v[1]??0,F=O-N>u?O:u+N,K=Math.min(Math.max(O-N,u),l),G=Math.floor(v[0]??0),ee=Math.ceil(F);return{histogramDomain:r||(f?[G,ee]:[N,O]),threshold:K,thresholdInteger:Math.ceil(K)}},[v,r,f,l,u]),w=d.useMemo(()=>So({domain:g,range:[vl,i-F4],round:!0,nice:!0}),[g,i]),y=d.useMemo(()=>dN().domain(w.domain()).thresholds(o||(f?x:m))(a),[w,o,a,m,x,f]),b=d.useMemo(()=>So({domain:[0,id(y,N=>N.length)??0],range:[s-i0,D4],round:!0,nice:!0}),[y,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:$,tooltipLeft:k,tooltipTop:T,tooltipOpen:M,showTooltip:P,hideTooltip:L}=Ia(),{containerBounds:W,containerRef:U,TooltipInPortal:B}=La({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),E=i-vl-F4,_=s-D4-i0-100,H=d.useCallback((N,O)=>{const F=("clientX"in N?N.clientX:0)-W.left,K=("clientY"in N?N.clientY:0)-W.top;F&&K&&P({tooltipLeft:F,tooltipTop:K,tooltipData:O})},[P,W]),z=d.useCallback(()=>{L()},[L]);return c.jsxs("div",{className:"rabbit-ds flex flex-col bg-white",style:{width:i,height:s},ref:C,children:[c.jsxs("svg",{width:i,height:s,ref:U,children:[c.jsx(uf,{orientation:"bottom",scale:w,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:vl,hideTicks:!0,strokeWidth:1,stroke:"#CFD7DF",tickFormat:p?js("d"):void 0,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(pn,{children:[c.jsx(O4,{scale:b,width:E,height:_,left:vl,top:0,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),y.map(N=>{const O=Math.abs(b(0)-b(N.length)),F=Math.abs(w(N.x1??0)-w(N.x0??0));return c.jsx("g",{children:c.jsx(U_,{x:w(N.x0??0),y:b(N.length),width:F,height:O&&O-1,fill:Ge(0).light,stroke:Ge(0).dark,strokeWidth:1,onMouseMove:K=>H(K,N),onMouseLeave:()=>z()})},Math.random())})]})]}),M&&$&&c.jsx(B,{top:T,left:k,unstyled:!0,applyPositionStyle:!0,children:c.jsx(N4,{xAxisLabel:t,xValue:`${$.x0} to ${$.x1}`,yAxisLabel:n,yValue:$.length,tooltipTitle:e,legendValue:n,legendDarkColor:Ge(0).dark,legendLightColor:Ge(0).light})},Math.random()),b.domain()[2]]})}),_4=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",_4.displayName="HistogramChart";const Mz=_4;function I4({tooltipTitle:e,label:t,value:n,unit:r,legendValue:o,legendDarkColor:a,legendLightColor:i}){return c.jsxs(Pe,{tooltipTitle:e,children:[c.jsx(Pe.Item,{label:t,value:`${n} ${r}`}),c.jsx(Pe.Legend,{value:o,darkColor:a||"",lightColor:i||""})]})}I4.defaultProps={};const $z=e=>e.value,Tz=e=>e.label,L4=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}=Ia(),{containerBounds:x,containerRef:w,TooltipInPortal:y}=La({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),b=d.useRef(null),A=d.useCallback(($,k)=>{const T=("clientX"in $?$.clientX:0)-x.left,M=("clientY"in $?$.clientY:0)-x.top;T&&M&&g({tooltipLeft:T,tooltipTop:M,tooltipData:k})},[g,x]),C=d.useCallback(()=>{m()},[m]);return _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:w,children:c.jsx(pn,{top:l-20,left:s,children:c.jsx(I_,{data:r,pieValue:$z,outerRadius:u-10,innerRadius:u-Math.min(e*.07,22)-10,cornerRadius:2,padAngle:.025,children:$=>c.jsx(c.Fragment,{children:$.arcs.map(k=>{const T=Tz(k.data);return c.jsx("g",{children:c.jsx("path",{d:$.path(k)??void 0,fill:k.data.color,onMouseLeave:C,onMouseMove:M=>A(M,{label:a,value:k.value,tooltipTitle:o,unit:n,legendValue:T,legendDarkColor:k.data.labelColor,legendLightColor:k.data.color})})},`arc-${T}`)})})})})}),v&&f&&c.jsx(y,{top:h,left:p,unstyled:!0,applyPositionStyle:!0,children:c.jsx(I4,{unit:f.unit,label:f.label,value:f.value,tooltipTitle:o,legendValue:f.legendValue??"",legendDarkColor:f.legendDarkColor,legendLightColor:f.legendLightColor})},Math.random()),c.jsx("div",{className:"flex flex-row flex-wrap justify-center gap-2 text-[10px] font-semibold text-font-secondary",style:{fontSize:Math.min(e*.04,10)},children:r.map($=>c.jsxs("div",{className:"flex items-center justify-center gap-1",children:[c.jsx("div",{style:{backgroundColor:$.color,borderColor:$.labelColor,color:$.labelColor,width:Math.min(e*.04,10),height:Math.min(e*.04,10)},className:"h-3 w-3 rounded-full border"}),`${$.label}: ${$.value}${n}`]},$.label))})]})});L4.displayName="DonutChartBase";const B4=d.forwardRef((e,t)=>c.jsx(Jn,{debounceTime:10,children:({width:n,height:r})=>c.jsx(L4,{ref:t,width:n,height:r,...e})}));B4.displayName="DonutChart";const Pz=B4;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(Pe,{tooltipTitle:n,showSideBySide:a,children:[c.jsx(Pe.Item,{label:r,value:u}),c.jsx(Pe.Item,{label:o,value:f}),c.jsx(Pe.Legend,{value:i,darkColor:s,lightColor:l})]})}z4.defaultProps={xValue:void 0,yValue:void 0};const ml={top:60,left:20,right:20,bottom:20},W4={start:10,end:-10,middle:0},j4=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:w,hideTooltip:y}=Ia(),{containerBounds:b,containerRef:A,TooltipInPortal:C}=La({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),$=d.useCallback((O,F)=>{const K=Math.PI*2/O;return[...new Array(O)].map((G,ee)=>({x:F*Math.sin(ee*K),y:F*Math.cos(ee*K)}))},[]),k=d.useCallback((O,F,K)=>K==="pre"?`${F}${O}`:`${O}${F}`,[]),T=d.useCallback((O,F,K)=>{const G=Math.PI*2/O.length,ee=new Array(O.length).fill({x:0,y:0,data:null}),ne=new Array(O.length+1).fill("").reduce((te,J,oe)=>{if(oe>O.length)return te;const X=F(K(O[oe-1]))*Math.sin(oe*G),Q=F(K(O[oe-1]))*Math.cos(oe*G);return ee[oe-1]={x:X,y:Q,data:O[oe-1]},`${te}${X},${Q} `});return{points:ee,pointString:ne}},[]),M=d.useMemo(()=>new Tn({x:0,y:0}),[]),P=d.useCallback(O=>Math.round(O)===0?"middle":O>0?"start":"end",[]),L=d.useCallback((O,F)=>{const K=("clientX"in O?O.clientX:0)-b.left,G=("clientY"in O?O.clientY:0)-b.top;K&&G&&w({tooltipLeft:K,tooltipTop:G,tooltipData:F})},[w,b]),W=d.useCallback(()=>{y()},[y]),U=d.useMemo(()=>e-ml.left-ml.right,[e]),B=d.useMemo(()=>t-ml.top-ml.bottom,[t]),E=d.useMemo(()=>Math.min(U,B)/2,[U,B]),_=u.length?u.reduce((O,F)=>{const K=F.data.filter(G=>G);return Math.max(O,...K)},-1/0):0,H=So({range:[0,E],domain:l??[0,_]}),z=$(f.length,E),N=O=>T(O,F=>H(F)??0,F=>F);return c.jsxs("div",{className:"rabbit-ds flex flex-col bg-white",style:{width:e,height:t},ref:h,children:[c.jsxs("svg",{width:e,height:t,ref:A,pointerEvents:"all",onMouseLeave:W,children:[c.jsx("rect",{fill:"transparent",width:e,height:t,rx:14}),c.jsxs(pn,{top:t/2,left:e/2,children:[[...new Array(n)].map((O,F)=>c.jsx(g5,{x:e/2,y:t/2,fill:"none",stroke:"#CFD7DF",strokeWidth:1,strokeDasharray:4,r:E*(F+1)/n},`web1-${Math.random()}`)),f.map((O,F)=>c.jsxs(c.Fragment,{children:[c.jsx(Zd,{from:M,to:z[F],stroke:f.length===1?Ge(0).dark:"#CFD7DF",strokeWidth:1},`radar-line-${Math.random()}`),c.jsx(xs,{x:z[F].x,y:z[F].y,textAnchor:P(z[F].x),verticalAnchor:P(z[F].y),dx:W4[P(z[F].x)],dy:W4[P(z[F].y)],fontSize:10,fill:"#666666",width:a??100,children:`${s?k(f[(F+f.length-1)%f.length],s.symbol,s.position):f[(F+f.length-1)%f.length]}`})]})),u.map((O,F)=>c.jsx("polygon",{points:N(O.data).pointString,fill:Ge(F).light,fillOpacity:.2,stroke:Ge(F).dark,strokeWidth:1},`polypath-${Math.random()}`)),u.map((O,F)=>N(O.data).points.map((K,G)=>c.jsx(g5,{cx:K.x,cy:K.y,r:5,fill:"transparent",onMouseMove:ee=>{var ne;return L(ee,{yAxisLabel:((ne=r.find(te=>te.id===O.id))==null?void 0:ne.name)??"",xAxisValue:f[G],yAxisValue:O.data[G],xAxisLabel:o??"Category",legendDarkColor:Ge(F).dark,legendLightColor:Ge(F).light})},onMouseOut:W},`radar-point-${Math.random()}`)))]})]}),x&&v&&c.jsx(C,{top:m,left:g,unstyled:!0,applyPositionStyle:!0,children:c.jsx(z4,{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())]})});j4.displayName="RadarChartBase";const V4=d.forwardRef((e,t)=>c.jsx(Jn,{debounceTime:10,children:({width:n,height:r})=>c.jsx(j4,{ref:t,width:n,height:r,...e})}));V4.displayName="RadarChart";const kz=V4;function U4({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(Pe,{tooltipTitle:n,showSideBySide:a,children:[c.jsx(Pe.Item,{label:r,value:u}),c.jsx(Pe.Item,{label:o,value:f}),c.jsx(Pe.Legend,{value:i,darkColor:s,lightColor:l})]})}U4.defaultProps={xValue:void 0,yValue:void 0};const Oz=({x:e,y:t,datum:n})=>c.jsx(oo,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.dark,r:5,style:{zIndex:1500}}),H4={xAccessor:e=>e.x,yAccessor:e=>e.y},Y4=(e,t,n)=>n==="pre"?`${t}${e}`:`${e}${t}`,G4=10,Nz=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=Nz,tooltipStackCharLimit:m=G4,seriesSelectorTitle:x},w)=>{const[y,b]=d.useState(e.map(T=>T.id)),A=d.useRef(null);_n(A,w,`${a}-${i}-StackedBarChart`);const C=d.useMemo(()=>o.map((T,M)=>{const P=e.find(L=>L.id===T.id);return{points:T.data.map((L,W)=>({x:r[W],y:L,nodeId:T.id,color:(P==null?void 0:P.color)??Ge(M)}))}}).slice(0,h==="mini"?g:o.length),[o,h,g,e,r]),$=d.useMemo(()=>h==="full"?C.filter(T=>y.includes(T.points[0].nodeId)):C,[C,y,h]),k=d.useMemo(()=>Math.floor((n-(h==="mini"?0:150))/(r.length*8)),[n,r,h]);return c.jsxs("div",{ref:A,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(P5,{columns:!1,numTicks:6,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),c.jsx(Eo,{hideTicks:!0,orientation:"bottom",stroke:"#CFD7DF",strokeWidth:1,tickFormat:T=>u?Y4(T,u.symbol,u.position):T,rangePadding:{end:10},tickComponent:T=>c.jsx(Ya,{textLabel:T.formattedValue||"",x:T.x,y:T.y,textStyles:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle"},axisCharLimit:v??k}),label:`${a} ➔`,labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx(Eo,{hideTicks:!0,numTicks:6,strokeWidth:1,orientation:"left",stroke:"#CFD7DF",label:`${i} ➔`,tickFormat:T=>f?Y4(T,f.symbol,f.position):T,tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666"},labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dx:-20,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx(tz,{children:$.map(T=>c.jsx(JB,{data:T.points,dataKey:T.points[0].nodeId,xAccessor:H4.xAccessor,yAccessor:H4.yAccessor,colorAccessor:M=>M.color.light,radiusTop:!0,radius:2},T.points[0].nodeId))}),c.jsx(nl,{showDatumGlyph:!0,scroll:!0,debounce:500,snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,detectBounds:!0,unstyled:!0,applyPositionStyle:!0,renderGlyph:Oz,renderTooltip:({tooltipData:T})=>{var L,W,U,B,E,_;const M=e.find(H=>{var z;return H.id===((z=T==null?void 0:T.nearestDatum)==null?void 0:z.datum.nodeId)}),P=((L=T==null?void 0:T.nearestDatum)==null?void 0:L.datum)&&((W=T==null?void 0:T.nearestDatum)==null?void 0:W.datum.x.length)<m;return c.jsx(U4,{xValue:(U=T==null?void 0:T.nearestDatum)==null?void 0:U.datum.x,yValue:(B=T==null?void 0:T.nearestDatum)==null?void 0:B.datum.y,xAxisLabel:a,yAxisLabel:i,showSideBySide:!!P,tooltipTitle:p,legendValue:(M==null?void 0:M.name)||"",legendDarkColor:((E=T==null?void 0:T.nearestDatum)==null?void 0:E.datum.color.dark)||Ge(0).dark,legendLightColor:((_=T==null?void 0:T.nearestDatum)==null?void 0:_.datum.color.light)||Ge(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}),"(",$.length??0,"/",C.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:C.map(T=>{const M=e.find(P=>P.id===T.points[0].nodeId);return M&&c.jsxs("div",{className:"flex w-full items-center justify-between gap-1 py-1",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("div",{style:{backgroundColor:T.points[0].color.light,borderColor:T.points[0].color.dark},className:"mr-1 h-3 w-3 rounded-full border"}),M.name]}),c.jsx("div",{className:"flex items-center",children:c.jsx(ei,{checked:y.includes(M.id),onCheckedChange:P=>{let L=[...y];P?L=[...y,M.id]:L.splice(y.indexOf(M.id),1),b(L)}})})]},M.id)})})]})]}),h==="mini"&&c.jsx("div",{className:"flex flex-row flex-wrap justify-center gap-4 text-[10px] font-semibold text-font-secondary",children:C.map(T=>{const M=e.find(P=>P.id===T.points[0].nodeId);return c.jsxs("div",{className:"flex items-center justify-center gap-1",children:[c.jsx("div",{style:{backgroundColor:T.points[0].color.light,borderColor:T.points[0].color.dark},className:"h-3 w-3 rounded-full border"}),M==null?void 0:M.name]},M==null?void 0:M.id)})})]})}),Dz={xAxisUnitSymbol:void 0,yAxisUnitSymbol:void 0,mode:"mini",xAxisCharLimit:void 0,tooltipStackCharLimit:G4,xAxisDomain:void 0,yAxisDomain:void 0,connectNulls:!1};l0.defaultProps=Dz,l0.displayName="StackedBarChartBase";const X4=d.forwardRef((e,t)=>c.jsx(Jn,{debounceTime:10,children:({width:n,height:r})=>c.jsx(l0,{ref:t,width:n,height:r,...e})}));X4.displayName="StackedBarChart";const Fz=X4,_z=({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(ei,{checked:t.includes(o),onCheckedChange:s=>{let l=[...t];s?l=[...t,o]:l.splice(t.indexOf(o),1),n(l)}})})]},o))})]});function q4({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(Pe,{tooltipTitle:n,showSideBySide:a,children:[c.jsx(Pe.Header,{label:"Review Cycle",value:(p=s==null?void 0:s.reviewCycle)==null?void 0:p.name}),c.jsx(Pe.Item,{label:r,value:u}),c.jsx(Pe.Item,{label:o,value:f}),i.map(({label:h,value:v})=>c.jsx(Pe.Item,{label:h,value:v},h)),c.jsx(Pe.Footer,{nodeData:l})]})}q4.defaultProps={xValue:void 0,yValue:void 0};var Iz=["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 Lz(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=Lz(e,Iz);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 Bz=["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 Wz(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,Bz),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 jz=["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 Vz(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 Uz(e){var t=e.id,n=e.size,r=n===void 0?9:n,o=e.strokeWidth,a=o===void 0?1:o,i=Vz(e,jz),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 Hz({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(Uz,{id:"marker-circle",stroke:"#666",size:6,refX:7,fill:"transparent",strokeWidth:2}),c.jsx(Wz,{id:"marker-arrow",stroke:"#666",size:14,strokeWidth:2,markerUnits:"userSpaceOnUse"}),c.jsx(p5,{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 Yz=({x:e,y:t,datum:n,size:r})=>c.jsx(oo,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.light,r:r/2}),Gz=({x:e,y:t,datum:n})=>c.jsx(oo,{cx:e,cy:t,stroke:n.color.dark,strokeWidth:1,fill:n.color.dark,r:5,style:{zIndex:1500}}),bl={xAccessor:e=>e==null?void 0:e.x,yAccessor:e=>e==null?void 0:e.y},K4=(e,t,n)=>n==="pre"?`${t}${e}`:`${e}${t}`,Xz=10,qz=5,Q4=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=qz,tooltipStackCharLimit:m=Xz,withBackground:x=!0},w)=>{const y=d.useRef(null),b=e===1;_n(y,w,`${o}-${a}-DirectedLineChart`);const A=d.useMemo(()=>t.map(({seriesMetaData:P},L)=>{const{employee:W}=P;return{id:W.id,name:W.name,color:Ge(L)}}).slice(0,p==="mini"?g:t.length),[t,p,g]),[C,$]=d.useState(()=>A.filter((P,L)=>p==="full"||L<g).map(P=>P.id)),k=d.useMemo(()=>t.map((P,L)=>({nodeId:P.seriesMetaData.employee.id,points:P.xValues.map((W,U)=>{var E;let B=null;return b?B=1/t.length*(L+1)+1/(t.length*10)*(U+1):B=((E=P==null?void 0:P.yValues)==null?void 0:E[U])??null,{x:P.xValues[U],y:B,pointMetaData:P.pointsMetaData[U],nodeId:P.seriesMetaData.employee.id,color:Ge(L)}})})).slice(0,p==="mini"?g:t.length),[t,p,g,b]),T=d.useMemo(()=>p==="full"?k.filter(({nodeId:P})=>C.includes(P)):k,[k,p,C]),M=d.useMemo(()=>Math.floor((r-(p==="mini"?0:150))/(t[0].xValues.length*8)),[r,p,t]);return c.jsx("div",{ref:y,id:"directed-line-chart",className:ue("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(Eo,{hideTicks:!0,orientation:"bottom",stroke:"#CFD7DF",strokeWidth:1,numTicks:6,tickFormat:P=>l?K4(P,l.symbol,l.position):P,tickComponent:P=>c.jsx(Ya,{textLabel:P.formattedValue||"",x:P.x,y:P.y,textStyles:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle"},axisCharLimit:h??M}),label:`${o} ➔`,labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx(Eo,{hideTicks:!0,numTicks:b?0:6,strokeWidth:b?0:1,orientation:"left",stroke:"#CFD7DF",label:a?`${a} ➔`:"",tickFormat:P=>u?K4(P,u.symbol,u.position):P,tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666"},labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dx:-20,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),T.map((P,L)=>c.jsxs(c.Fragment,{children:[c.jsx(Hz,{data:P.points,xAccessor:bl.xAccessor,yAccessor:bl.yAccessor,connectNulls:v}),c.jsx(v4,{dataKey:`Performance Management ${L}`,data:P.points,size:8,renderGlyph:Yz,xAccessor:bl.xAccessor,yAccessor:bl.yAccessor})]})),c.jsx(nl,{showDatumGlyph:!0,scroll:!0,showVerticalCrosshair:!0,showHorizontalCrosshair:!0,debounce:500,snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,detectBounds:!0,unstyled:!0,applyPositionStyle:!0,renderGlyph:Gz,renderTooltip:({tooltipData:P})=>{var U,B,E,_,H,z,N,O,F;const L=t.find(K=>{var G;return K.id===((G=P==null?void 0:P.nearestDatum)==null?void 0:G.datum.nodeId)}),W=((U=P==null?void 0:P.nearestDatum)==null?void 0:U.datum)&&String((B=P==null?void 0:P.nearestDatum)==null?void 0:B.datum.x).length<m;return c.jsx(q4,{xValue:(E=P==null?void 0:P.nearestDatum)==null?void 0:E.datum.x,yValue:(_=P==null?void 0:P.nearestDatum)==null?void 0:_.datum.y,xAxisLabel:o,yAxisLabel:a,showSideBySide:!!W,tooltipTitle:f,otherDataPoints:((N=(z=(H=P==null?void 0:P.nearestDatum)==null?void 0:H.datum)==null?void 0:z.pointMetaData)==null?void 0:N.otherDataPoints)??[],seriesMetaData:L==null?void 0:L.seriesMetaData,pointMetaData:(F=(O=P==null?void 0:P.nearestDatum)==null?void 0:O.datum)==null?void 0:F.pointMetaData})}})]})}),p==="full"&&c.jsx(_z,{nodes:A,seriesSelectorTitle:"Team members",selectedNodeIds:C,setSelectedNodeIds:$})]})})});Q4.displayName="LineBase";const Z4=d.forwardRef((e,t)=>c.jsx(Jn,{debounceTime:10,children:({width:n,height:r})=>c.jsx(Q4,{ref:t,width:n,height:r,...e})}));Z4.displayName="DirectedLineChart";const J4=Z4,Kz=[{"#FFEFD4":"#AF5C20"},{"#DBF2D3":"#44812F"},{"#BFE8C6":"#1A5724"},{"#FFE7C5":"#8C6A00"},{"#FAD4D4":"#C62C02"},{"#EAEAEA":"#333333"},{"#E6F1FD":"#1565BC"},{"#FFE1D9":"#C62C02"}];function Qz({box:e,showCountData:t=!1}){function n(r){if(!r)return"#333";const o=Kz.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",B8(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 Zz=({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},Jz=({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},R4=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:Jz({rows:e,columns:t,boxData:r}),gridTemplateColumns:Zz({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(Qz,{box:v,showCountData:f})},v.label+v.color+g))}),u==="full"&&c.jsx("div",{className:"inline-flex w-64 shrink-0 grow-0"})]})});R4.displayName="GridChart";const eb=R4,tb=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(eb,{...t,mode:n})}),c.jsxs("div",{className:"absolute h-full w-full",children:[c.jsx(J4,{...e,mode:n}),c.jsx("div",{})]})]})});tb.displayName="GridDirectedLineChart";const Rz=tb,yl="ToggleGroup",[nb,nU]=nt(yl,[Jr]),rb=Jr(),eW=d.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return d.createElement(tW,q({},o,{ref:t}))}if(n==="multiple"){const o=r;return d.createElement(nW,q({},o,{ref:t}))}throw new Error(`Missing prop \`type\` expected on \`${yl}\``)}),[ob,ab]=nb(yl),tW=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(ob,{scope:e.__scopeToggleGroup,type:"single",value:i?[i]:[],onItemActivate:s,onItemDeactivate:d.useCallback(()=>s(""),[s])},d.createElement(ib,q({},a,{ref:t})))}),nW=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(ob,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:l,onItemDeactivate:u},d.createElement(ib,q({},a,{ref:t})))}),[rW,oW]=nb(yl),ib=d.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...l}=e,u=rb(n),f=Wn(i),p={role:"group",dir:f,...l};return d.createElement(rW,{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",aW=d.forwardRef((e,t)=>{const n=ab(p0,e.__scopeToggleGroup),r=oW(p0,e.__scopeToggleGroup),o=rb(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(sb,q({},s,{ref:t}))):d.createElement(sb,q({},s,{ref:t}))}),sb=d.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=ab(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)}}))}),iW=eW,sW=aW;function lW({children:e,...t}){return c.jsx(iW,{className:"flex gap-2",...t,children:e})}function cW({value:e,disabled:t,selected:n,icon:r,label:o,count:a,...i}){return c.jsx(sW,{asChild:!0,value:e,...i,children:c.jsx("button",{"data-deer-btn":!0,type:"button",className:ue("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(Oe,{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 Ga="NavigationMenu",[h0,uW,dW]=vr(Ga),[g0,fW,pW]=vr(Ga),[v0,rU]=nt(Ga,[dW,pW]),[hW,Lr]=v0(Ga),[gW,oU]=v0(Ga),vW=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:a,delayDuration:i=200,skipDelayDuration:s=300,orientation:l="horizontal",dir:u,...f}=e,[p,h]=d.useState(null),v=Se(t,M=>h(M)),g=Wn(u),m=d.useRef(0),x=d.useRef(0),w=d.useRef(0),[y,b]=d.useState(!0),[A="",C]=ut({prop:r,onChange:M=>{const P=M!=="",L=s>0;P?(window.clearTimeout(w.current),L&&b(!1)):(window.clearTimeout(w.current),w.current=window.setTimeout(()=>b(!0),s)),o==null||o(M)},defaultProp:a}),$=d.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>C(""),150)},[C]),k=d.useCallback(M=>{window.clearTimeout(x.current),C(M)},[C]),T=d.useCallback(M=>{A===M?window.clearTimeout(x.current):m.current=window.setTimeout(()=>{window.clearTimeout(x.current),C(M)},i)},[A,C,i]);return d.useEffect(()=>()=>{window.clearTimeout(m.current),window.clearTimeout(x.current),window.clearTimeout(w.current)},[]),d.createElement(mW,{scope:n,isRootMenu:!0,value:A,dir:g,orientation:l,rootNavigationMenu:p,onTriggerEnter:M=>{window.clearTimeout(m.current),y?T(M):k(M)},onTriggerLeave:()=>{window.clearTimeout(m.current),$()},onContentEnter:()=>window.clearTimeout(x.current),onContentLeave:$,onItemSelect:M=>{C(P=>P===M?"":M)},onItemDismiss:()=>C("")},d.createElement(me.nav,q({"aria-label":"Main","data-orientation":l,dir:g},f,{ref:v})))}),mW=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,w]=d.useState(new Map),[y,b]=d.useState(null);return d.createElement(hW,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:s,previousValue:Qa(s),baseId:dt(),dir:o,orientation:a,viewport:g,onViewportChange:m,indicatorTrack:y,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)=>{w($=>($.set(A,C),new Map($)))},[]),onViewportContentRemove:d.useCallback(A=>{w(C=>C.has(A)?(C.delete(A),new Map(C)):C)},[])},d.createElement(h0.Provider,{scope:t},d.createElement(gW,{scope:t,items:x},i)))},bW="NavigationMenuList",yW=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Lr(bW,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(db,{asChild:!0},a):a))}),wW="NavigationMenuItem",[xW,lb]=v0(wW),CW=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=kW(g))}},[]);return d.createElement(xW,{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})))}),cb="NavigationMenuTrigger",AW=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,a=Lr(cb,e.__scopeNavigationMenu),i=lb(cb,e.__scopeNavigationMenu),s=d.useRef(null),l=Se(s,i.triggerRef,t),u=gb(a.baseId,i.value),f=vb(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(pb,{asChild:!0},d.createElement(me.button,q({id:u,disabled:r,"data-disabled":r?"":void 0,"data-state":hb(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(i2,{"aria-hidden":!0,tabIndex:0,ref:i.focusProxyRef,onFocus:g=>{const m=i.contentRef.current,x=g.relatedTarget,w=x===s.current,y=m==null?void 0:m.contains(x);(w||!y)&&i.onFocusProxyEnter(w?"start":"end")}}),a.viewport&&d.createElement("span",{"aria-owns":f})))}),ub="navigationMenu.linkSelect",SW=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...a}=e;return d.createElement(pb,{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(ub,{bubbles:!0,cancelable:!0});if(s.addEventListener(ub,u=>o==null?void 0:o(u),{once:!0}),Ja(s,l),!l.defaultPrevented&&!i.metaKey){const u=new CustomEvent(xl,{bubbles:!0,cancelable:!0});Ja(s,u)}},{checkForDefaultPrevented:!1})})))}),wl="NavigationMenuContent",EW=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Lr(wl,e.__scopeNavigationMenu),a=lb(wl,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(MW,q({forceMount:n},l,{ref:i})):d.createElement(Tt,{present:n||s},d.createElement($W,q({"data-state":hb(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}})))}),MW=d.forwardRef((e,t)=>{const n=Lr(wl,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}),xl="navigationMenu.rootContentDismiss",$W=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:a,wasEscapeCloseRef:i,onRootContentClose:s,onContentFocusOutside:l,...u}=e,f=Lr(wl,n),p=d.useRef(null),h=Se(p,t),v=gb(f.baseId,r),g=vb(f.baseId,r),m=uW(n),x=d.useRef(null),{onItemDismiss:w}=f;d.useEffect(()=>{const b=p.current;if(f.isRootMenu&&b){const A=()=>{var C;w(),s(),b.contains(document.activeElement)&&((C=o.current)===null||C===void 0||C.focus())};return b.addEventListener(xl,A),()=>b.removeEventListener(xl,A)}},[f.isRootMenu,e.value,o,w,s]);const y=d.useMemo(()=>{const A=m().map(P=>P.value);f.dir==="rtl"&&A.reverse();const C=A.indexOf(f.value),$=A.indexOf(f.previousValue),k=r===f.value,T=$===A.indexOf(r);if(!k&&!T)return x.current;const M=(()=>{if(C!==$){if(k&&$!==-1)return C>$?"from-end":"from-start";if(T&&C!==-1)return C>$?"to-start":"to-end"}return null})();return x.current=M,M},[f.previousValue,f.value,f.dir,m,r]);return d.createElement(db,{asChild:!0},d.createElement(Wo,q({id:g,"aria-labelledby":v,"data-motion":y,"data-orientation":f.orientation},u,{ref:h,onDismiss:()=>{var b;const A=new Event(xl,{bubbles:!0,cancelable:!0});(b=p.current)===null||b===void 0||b.dispatchEvent(A)},onFocusOutside:de(e.onFocusOutside,b=>{var A;l();const C=b.target;(A=f.rootNavigationMenu)!==null&&A!==void 0&&A.contains(C)&&b.preventDefault()}),onPointerDownOutside:de(e.onPointerDownOutside,b=>{var A;const C=b.target,$=m().some(T=>{var M;return(M=T.ref.current)===null||M===void 0?void 0:M.contains(C)}),k=f.isRootMenu&&((A=f.viewport)===null||A===void 0?void 0:A.contains(C));($||k||!f.isRootMenu)&&b.preventDefault()}),onKeyDown:de(e.onKeyDown,b=>{const A=b.altKey||b.ctrlKey||b.metaKey;if(b.key==="Tab"&&!A){const k=m0(b.currentTarget),T=document.activeElement,M=k.findIndex(W=>W===T),L=b.shiftKey?k.slice(0,M).reverse():k.slice(M+1,k.length);if(b0(L))b.preventDefault();else{var $;($=a.current)===null||$===void 0||$.focus()}}}),onEscapeKeyDown:de(e.onEscapeKeyDown,b=>{i.current=!0})})))}),TW="FocusGroup",db=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Lr(TW,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}))))}),fb=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],PW="FocusGroupItem",pb=d.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=fW(n),a=Lr(PW,n);return d.createElement(g0.ItemSlot,{scope:n},d.createElement(me.button,q({},r,{ref:t,onKeyDown:de(e.onKeyDown,i=>{if(["Home","End",...fb].includes(i.key)){let l=o().map(p=>p.ref.current);if([a.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(i.key)&&l.reverse(),fb.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 kW(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function hb(e){return e?"open":"closed"}function gb(e,t){return`${e}-trigger-${t}`}function vb(e,t){return`${e}-content-${t}`}function y0(e){return t=>t.pointerType==="mouse"?e(t):void 0}const OW=vW,NW=yW,DW=CW,FW=AW,mb=SW,_W=EW,IW=Ue(["rabbit-ds h-full w-full px-3 py-2 [&>*:first-child]:h-full"],{variants:{variant:{default:""},defaultVariant:{variant:"default"}}});function LW(){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 bb=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(LW,{})}),c.jsx(OW,{className:ue(IW({className:e})),orientation:"vertical",ref:r,...n,children:c.jsx(NW,{className:"m-0 flex h-full flex-col p-0",children:t})})]}));bb.displayName="LeftNav";const w0=d.forwardRef(({children:e,asChild:t=!1,...n},r)=>{const o=t?xn:"div";return c.jsx(DW,{asChild:!0,children:c.jsx(o,{ref:r,className:"rabbit-ds",...n,children:e})})});w0.displayName="LeftNavItem",w0.defaultProps={asChild:!1};const BW=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"}}}),yb=d.forwardRef(({children:e,align:t,...n},r)=>c.jsx("div",{ref:r,className:ue(BW({variant:t})),...n,children:e}));yb.displayName="LeftNavItem";const wb=d.forwardRef((e,t)=>c.jsx(mb,{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"})})]})]})}));wb.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"}}),WW=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"}}),xb=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(mb,{"data-deer-btn":!0,className:ue(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(Oe,{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:ue(WW({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(Oe,{IconSVG:X0,size:"large"})})]})}));xb.displayName="LeftNavButton";const jW=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 VW({className:e,isCollapsed:t,...n}){return c.jsx("button",{"data-deer-btn":!0,type:"button",className:ue(jW({variant:t?"collapsed":"default"}),e),...n,children:c.jsx(Oe,{IconSVG:U0,className:t?"rotate-180":""})})}const Cb=d.createContext({isOpen:!1,toggleOpen:()=>{}}),UW=()=>d.useContext(Cb);function Ab({...e}){const{isOpen:t,toggleOpen:n}=UW();return c.jsx(VW,{className:`absolute right-0 top-5 z-20 ${t?"":"translate-x-full"}`,isCollapsed:!t,onClick:n,...e})}function HW(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(Cb.Provider,{value:u,children:c.jsxs("div",{className:ue("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(Ab,{}),c.jsx("div",{className:s?"h-full p-5":"invisible h-0 w-0 scale-0 overflow-hidden opacity-0",children:t})]})})}function YW({children:e}){return c.jsx("div",{className:ue("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 GW({children:e}){return c.jsx("div",{className:"p-2 text-xs font-semibold text-font-secondary",children:e})}function XW({children:e,...t}){return c.jsx(o2,{...t,children:e})}const qW=Ue("shrink-0",{variants:{orientation:{horizontal:"ml-2",vertical:"mt-2 w-full [&>div]:w-full [&_button]:w-full"}},defaultVariants:{orientation:"horizontal"}});function KW({className:e,orientation:t,...n}){return c.jsx("div",{className:qW({orientation:t}),children:c.jsx(Dt,{className:e,variant:"outline",...n})})}const QW={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 ZW({title:e,achieved:t,status:n}){const r=QW[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:ue(r.colorScheme,"font-semibold text-3xl !bg-transparent"),children:[t,"%"]})]}),c.jsx(Zi,{colorScheme:r.colorScheme,className:"mb-1",children:r.label})]})]})})}function JW({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(un,{size:"xl",children:c.jsx(dn,{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(Zi,{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 RW({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(un,{size:"xl",children:c.jsx(dn,{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 ej({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(un,{size:"xl",children:c.jsx(dn,{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(Zi,{variant:"outlined",children:n}),c.jsx("span",{className:"mt-1 w-full truncate text-font-secondary",children:r})]})]})})}const tj=Ue("",{variants:{orientation:{horizontal:"flex-row",vertical:"min-w-max flex-col"}},defaultVariants:{orientation:"horizontal"}});function nj({className:e,children:t,orientation:n}){return c.jsx("div",{className:ue("rabbit-ds","w-full flex items-center rounded-lg p-4 bg-[#FDFDFD] border border-solid border-[#F3F5F8]",tj({orientation:n}),e),children:t})}function rj({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:ue("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(un,{className:"h-16 w-16",children:c.jsx(dn,{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:Io,children:["View ",f?"less":"more"]})})]})}function oj({surveyName:e,date:t}){return c.jsx("div",{className:"rabbit-ds mr-auto",children:c.jsxs("div",{className:"flex gap-2",children:[c.jsx(Oe,{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 aj=Ue("",{variants:{variant:{single:"flex-row [&>div]:items-start",multiple:"flex-col"}},defaultVariants:{variant:"single"}});function Sb({employeeName:e,employeeProfilePhoto:t,scheduleDate:n,duration:r,variant:o="single",subTitle:a}){return c.jsx("div",{className:ue("rabbit-ds",o==="single"?"mr-auto":"my-auto"),children:c.jsxs("div",{className:ue("flex items-center text-sm gap-2",aj({variant:o})),children:[c.jsx(un,{size:"xl",children:c.jsx(dn,{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})]})]})})}Sb.defaultProps={subTitle:void 0,scheduleDate:void 0};function ij({label:e,onClick:t,customCompProps:n}){const[r,o]=d.useState(1);return c.jsxs(Vc,{children:[c.jsx(ji,{children:c.jsx("span",{children:e})}),c.jsx(jc,{children:c.jsx(Vi,{children:c.jsx(Rr,{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 sj({options:e}){const[t,n]=d.useState(!1),r=(o,a)=>{o(a),n(!1)};return c.jsxs(Bi,{open:t,children:[c.jsx(zi,{asChild:!0,onClick:()=>n(!0),children:c.jsx(Dt,{variant:"text",size:"smallIcon",children:c.jsx(Oe,{IconSVG:G0})})}),c.jsx(Zo,{className:"w-56",onFocusOutside:()=>n(!1),onPointerDownOutside:()=>n(!1),children:c.jsx(Rr,{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(ij,{onClick:l=>r(a,l),label:i,customCompProps:s},i))})})]})}const Eb=Jo,Mb=Rr,$b=Wi,Tb=Yi,Pb=Ui,kb=Hi,Ob=d.forwardRef(({className:e,children:t,align:n="end",...r},o)=>c.jsx(Zo,{ref:o,align:n,...r,children:t}));Ob.displayName="SplitButtonDropdownContent";const lj=Ue("",{variants:{size:{normal:"icon",small:"smallIcon",icon:"icon",smallIcon:"smallIcon",nav:"icon"}},defaultVariants:{size:"normal"}});function cj({children:e,size:t,status:n,variant:r,...o}){return c.jsx("div",{className:"rabbit-ds flex flex-row",children:c.jsxs(Bi,{children:[c.jsx(Dt,{variant:r,status:n,size:t,...o,className:"rounded-r-none",children:e}),c.jsx(zi,{asChild:!0,children:c.jsx(Dt,{variant:r,status:n,className:"rounded-l-none border-l-0",size:lj({size:t}),iconLeft:Io})})]})})}Eb.displayName="SplitButtonDropdownItem",Mb.displayName="SplitButtonDropdownGroup",$b.displayName="SplitButtonDropdownRadioGroup",Tb.displayName="SplitButtonDropdownLabel",Pb.displayName="SplitButtonDropdownCheckboxItem",kb.displayName="SplitButtonDropdownRadioItem",j.Accordion=H1,j.AccordionContent=X1,j.AccordionItem=Y1,j.AccordionTrigger=G1,j.Add=z8,j.Alert=q1,j.AlertDescription=Q1,j.AlertDialogAction=zp,j.AlertDialogCancel=Bp,j.AlertDialogComponent=C9,j.AlertDialogContainer=Ip,j.AlertDialogContent=pc,j.AlertDialogDescription=gc,j.AlertDialogOverlay=fc,j.AlertDialogPortal=Lp,j.AlertDialogTitle=hc,j.AlertDialogTrigger=Wp,j.AlertIcon=K1,j.Avatar=un,j.AvatarBadge=Gi,j.AvatarFallback=yi,j.AvatarGroup=ou,j.AvatarImage=dn,j.Button=Dt,j.Calendar=W8,j.Caption=vc,j.Card=zo,j.CardContent=Gl,j.CardDescription=N1,j.CardHeader=O1,j.CardKPI=yE,j.CardTitle=Yl,j.Carousel=SM,j.CarouselContainer=EM,j.CarouselNextButton=$M,j.CarouselPrevButton=MM,j.Check=_o,j.CheckCircleOutline=B0,j.Checkbox=ei,j.ChevronDown=Io,j.ChevronLeft=j8,j.ChevronLeftCircle=z0,j.ChevronRight=_l,j.ChevronRightCircle=W0,j.ChevronUp=j0,j.Chip=m6,j.ChipGroup=lW,j.ChipGroupItem=cW,j.Close=V0,j.CollapseNavigation=U0,j.CollapsibleCard=gy,j.ColumnFilter=H0,j.ColumnFilterCheck=Z0,j.Company=V8,j.DateTime=yc,j.Develop=U8,j.DirectedLineChart=J4,j.DonutChart=Pz,j.Download=H8,j.Dropdown=Bi,j.DropdownCheckboxItem=Ui,j.DropdownContent=Zo,j.DropdownGroup=Rr,j.DropdownItem=Jo,j.DropdownLabel=Yi,j.DropdownPortal=jc,j.DropdownRadioGroup=Wi,j.DropdownRadioItem=Hi,j.DropdownSeparator=Uc,j.DropdownSub=Vc,j.DropdownSubContent=Vi,j.DropdownSubTrigger=ji,j.DropdownTrigger=zi,j.Engagement=Y8,j.EngagementNudgeData=oj,j.ErrorOutline=Il,j.ExpandDown=G8,j.ExpandRight=Y0,j.Feedback=X8,j.Goal=q8,j.GoalsNudgeData=ZW,j.GridChart=eb,j.GridDirectedLineChart=Rz,j.Help=K8,j.HistogramChart=Mz,j.Home=Q8,j.Icon=Oe,j.InfoWorkZero=Ll,j.Initiatives=Z8,j.Input=n1,j.KebabMenu=G0,j.KnowTeamNudgeData=Sb,j.Label=a1,j.LeftNav=bb,j.LeftNavButton=xb,j.LeftNavGroup=yb,j.LeftNavHome=wb,j.LeftNavItem=w0,j.LeftNavItemContent=_W,j.LeftNavItemDropdown=Bi,j.LeftNavItemDropdownCheckboxItem=Ui,j.LeftNavItemDropdownContent=Zo,j.LeftNavItemDropdownGroup=Rr,j.LeftNavItemDropdownItem=Jo,j.LeftNavItemDropdownLabel=Yi,j.LeftNavItemDropdownPortal=jc,j.LeftNavItemDropdownRadioGroup=Wi,j.LeftNavItemDropdownRadioItem=Hi,j.LeftNavItemDropdownSeparator=Uc,j.LeftNavItemDropdownSub=Vc,j.LeftNavItemDropdownSubContent=Vi,j.LeftNavItemDropdownSubTrigger=ji,j.LeftNavItemDropdownTrigger=zi,j.LeftNavItemTrigger=FW,j.LineChart=uz,j.ListItem=o2,j.ListItemIcon=yA,j.ListItemText=mA,j.Manager=J8,j.ManagerWithBorder=R8,j.MeshLogo=J0,j.MeshMaven=l6,j.MeshMavenAsk=c6,j.MeshMavenDisabledThumbsUp=u6,j.MeshMavenWithHording=d6,j.MeshMavenWithOrangeBulb=f6,j.MeshMavenWithThumbsUp=p6,j.Metric=G2,j.MetricCard=Y2,j.MetricCardText=au,j.MetricCardTitle=X2,j.MyOneOnOne=e6,j.NavCollapseButtonL2=Ab,j.NavGroupL2=YW,j.NavGroupTitleL2=GW,j.NavItemL2=XW,j.NavL2=HW,j.NudgeAction=KW,j.NudgeCard=rj,j.NudgeCardItem=nj,j.NudgeKebabMenu=sj,j.Overflow=X0,j.Person=t6,j.Product=n6,j.ProfileCard=iu,j.ProfileCardItem=q2,j.ProfileCardKey=K2,j.ProfileCardValue=Q2,j.ProgressBar=h1,j.ProgressInfo=mE,j.ProgressSlider=oy,j.RadarChart=kz,j.RequestFeedback=r6,j.RequestedFeedbackNudgeData=ej,j.Reviews=o6,j.ReviewsNudgeData=JW,j.Role=a6,j.SankeyChart=wz,j.Search=q0,j.Select=sS,j.SelectContent=x2,j.SelectGroup=lS,j.SelectItem=A2,j.SelectLabel=C2,j.SelectSeparator=S2,j.SelectTrigger=w2,j.SelectValue=cS,j.ShareFeedback=i6,j.SharePraiseNudgeData=RW,j.SliderDrag=K0,j.SplitButton=cj,j.SplitButtonDropdownCheckboxItem=Pb,j.SplitButtonDropdownContent=Ob,j.SplitButtonDropdownGroup=Mb,j.SplitButtonDropdownItem=Eb,j.SplitButtonDropdownLabel=Tb,j.SplitButtonDropdownRadioGroup=$b,j.SplitButtonDropdownRadioItem=kb,j.StackedBarChart=Fz,j.Survey=Q0,j.Tabs=F2,j.TabsContent=L2,j.TabsList=_2,j.TabsTrigger=I2,j.Tag=Zi,j.Team=s6,j.Toaster=vE,j.Tooltip=eu,j.TooltipContent=Ri,j.TooltipPortal=nu,j.TooltipProvider=Rc,j.TooltipTrigger=tu,j.TrendingDown=h6,j.TrendingUp=g6,j.getInitialsFromName=Gp,j.toast=iE,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mesh.ai/rabbit",
3
3
  "private": false,
4
- "version": "1.19.6",
4
+ "version": "1.19.7",
5
5
  "packageManager": "pnpm@8.6.0",
6
6
  "main": "./dist/@mesh.ai/rabbit.umd.js",
7
7
  "module": "./dist/@mesh.ai/rabbit.es.js ",