@mesh.ai/rabbit 1.41.0 → 1.41.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34026,6 +34026,7 @@ const Yy = 20, Gy = 50, $0 = 80, Au = 50, U$ = 10, V$ = 25, Em = ue(
34026
34026
  height: s
34027
34027
  },
34028
34028
  ref: x,
34029
+ onMouseLeave: () => I(),
34029
34030
  children: [
34030
34031
  /* @__PURE__ */ B("svg", { width: i, height: s, ref: R, children: [
34031
34032
  /* @__PURE__ */ f(
@@ -99,4 +99,4 @@ z`).split(`
99
99
  `)} {
100
100
  ${_}
101
101
  }
102
- `}),i.appendChild(n.createTextNode(C))}o.timeEnd("clone node"),await(h==null?void 0:h(v)),u!==!1&&_r(v)&&(o.time("embed web font"),await TK(v,r),o.timeEnd("embed web font")),o.time("embed node"),TM(v,r);const m=a.length;let y=0;const b=async()=>{for(;;){const C=a.pop();if(!C)break;try{await C}catch(x){r.log.warn("Failed to run task",x)}f==null||f(++y,m)}};f==null||f(y,m),await Promise.all([...Array.from({length:4})].map(b)),o.timeEnd("embed node"),await(p==null?void 0:p(v));const w=IK(v,r);return s&&w.insertBefore(s,w.children[0]),i&&w.insertBefore(i,w.children[0]),d&&xK(r),await(g==null?void 0:g(w)),w}function IK(e,t){const{width:r,height:n}=t,o=KX(r,n,e.ownerDocument),a=o.ownerDocument.createElementNS(o.namespaceURI,"foreignObject");return a.setAttributeNS(null,"x","0%"),a.setAttributeNS(null,"y","0%"),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.append(e),o.appendChild(a),o}async function LK(e,t){var i;const r=await Ff(e,t),n=await FK(r),o=QX(n,r.isEnable("removeControlCharacter"));r.autoDestruct||(r.svgStyleElement=bM(r.ownerDocument),r.svgDefsElement=(i=r.ownerDocument)==null?void 0:i.createElementNS(Df,"defs"),r.svgStyles.clear());const a=ha(o,n.ownerDocument);return await oK(a,r)}async function BK(e,t){const r=await Ff(e,t),{log:n,quality:o,type:a,dpi:i}=r,s=await LK(r);n.time("canvas to data url");let l=s.toDataURL(a,o);if(["image/png","image/jpeg"].includes(a)&&i&&NX&&kX){const[u,f]=l.split(",");let d=0,h=!1;if(a==="image/png"){const w=TX(f);w>=0?(d=Math.ceil((w+28)/3)*4,h=!0):d=33/3*4}else a==="image/jpeg"&&(d=18/3*4);const p=f.substring(0,d),g=f.substring(d),v=window.atob(p),m=new Uint8Array(v.length);for(let w=0;w<m.length;w++)m[w]=v.charCodeAt(w);const y=a==="image/png"?SX(m,i,h):xX(m,i),b=window.btoa(String.fromCharCode(...y));l=[u,",",b,g].join("")}return n.timeEnd("canvas to data url"),l}async function zK(e,t){return BK(await Ff(e,{...t,type:"image/png"}))}const Or=(e,t,r)=>{M.useImperativeHandle(t,()=>({download(){e.current&&zK(e.current,{scale:5}).then(n=>{const o=document.createElement("a");o.download=`${r}.png`,o.href=n,o.click()})}}))},kM=[{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 ke(e){return kM[e%kM.length]}const If=(e,t)=>M.Children.map(e,r=>M.isValidElement(r)&&typeof r.type=="function"&&r.type.displayName===t.displayName?r:null);function N2({value:e,darkColor:t,lightColor:r}){return c.jsxs("div",{className:"inline-flex items-center justify-start gap-2 px-2 py-1",children:[c.jsx("div",{style:{backgroundColor:r,borderColor:t},className:"relative h-3 w-3 rounded-radius-600 border"}),c.jsx("div",{className:"flex items-start justify-start",children:c.jsx("div",{className:"text-xs font-normal leading-none text-body-primary",children:e})})]})}function k2({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-body-secondary",children:e}),c.jsx("div",{className:"flex items-start justify-start text-sm font-medium",children:t||"-"})]})}function D2({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-body-secondary",children:e}),c.jsx("div",{className:"flex items-start justify-start text-sm font-medium",children:t||"-"})]})}function F2({nodeData:e}){const{employee:t}=e,{name:r,imageUrl:n}=t;return c.jsxs("div",{className:"inline-flex max-w-sm items-center justify-start px-2 py-0.5",children:[c.jsx(pr,{size:"md",children:c.jsx(gr,{src:n,alt:"Avatar"})}),c.jsx("div",{className:"flex items-start justify-start px-2 text-sm font-medium",children:r||"-"})]})}function we({children:e,showSideBySide:t,tooltipTitle:r}){const n=If(e,N2),o=If(e,k2),a=If(e,D2),i=If(e,F2);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-radius-200 bg-white p-2 shadow-card-basic",children:[c.jsx("div",{className:"px-2 py-1 text-xs font-medium leading-none text-body-primary",children:r}),a,c.jsxs("div",{className:"flex w-full flex-col items-start justify-start rounded-radius-200 p-2",children:[t&&c.jsxs("div",{className:R("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:R("mt-3 flex w-full 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:R("grid w-full auto-rows-auto gap-3"),children:o})]}),n&&n.length>0?c.jsx("div",{className:"h-25 w-full bg-surface-grey-subtle px-2"}):null,n,i]})}N2.displayName="Legend",k2.displayName="Item",D2.displayName="Header",F2.displayName="Footer",we.Legend=N2,we.Item=k2,we.Header=D2,we.Footer=F2,we.defaultProps={showSideBySide:!1};function DM({xValue:e,yValue:t,tooltipTitle:r,xAxisLabel:n,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(we,{tooltipTitle:r,showSideBySide:a,children:[c.jsx(we.Item,{label:n,value:u}),c.jsx(we.Item,{label:o,value:f}),c.jsx(we.Legend,{value:i,darkColor:s,lightColor:l})]})}DM.defaultProps={xValue:void 0,yValue:void 0};function qK({data:e,xAccessor:t,yAccessor:r,connectNulls:n=!1}){const o=M.useContext(gt),a=n?e.filter(i=>i.y!==null):e;return a.length===0?null:c.jsx(dw,{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,r(i))}})}const WK=({x:e,y:t,datum:r,size:n})=>c.jsx(Fo,{cx:e,cy:t,stroke:r.color.dark,strokeWidth:1,fill:r.color.light,r:n/2}),jK=({tickData:e,xAxisCharLimit:t})=>{var a;const r=M.useContext(gt),n=(a=r==null?void 0:r.xScale)==null?void 0:a.bandwidth(),o=Math.floor(n/5);return c.jsx(fa,{textLabel:e.formattedValue||"",x:e.x,y:e.y,textStyles:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle",angle:n&&n<25?-45:0},axisCharLimit:t??o})},HK=({x:e,y:t,datum:r})=>c.jsx(Fo,{cx:e,cy:t,stroke:r.color.dark,strokeWidth:1,fill:r.color.dark,r:5,style:{zIndex:1500}}),Lf={xAccessor:e=>e.x,yAccessor:e=>e.y},FM=(e,t,r)=>r==="pre"?`${t}${e}`:`${e}${t}`,IM=10,UK=5,I2=M.forwardRef(({nodes:e,height:t,width:r,xAxisValues:n,series:o,xAxisLabel:a,yAxisLabel:i,xAxisDomain:s,yAxisDomain:l,xAxisUnitSymbol:u,yAxisUnitSymbol:f,tooltipTitle:d,mode:h,xAxisCharLimit:p,connectNulls:g=!1,maxNodesInMiniMode:v=UK,tooltipStackCharLimit:m=IM,seriesSelectorTitle:y,preselectedNodes:b},w)=>{const[C,x]=M.useState(()=>(b&&b<=e.length?e.slice(0,b):e).map(A=>A.id)),_=M.useRef(null);Or(_,w,`${a}-${i}-LineChart`);const T=M.useMemo(()=>o.map((P,A)=>{const N=e.find(k=>k.id===P.id);return{points:P.data.map((k,D)=>({x:n[D],y:Number(k),nodeId:P.id,color:(N==null?void 0:N.color)??ke(A)}))}}).slice(0,h==="mini"?v:o.length),[o,h,v,e,n]),O=M.useMemo(()=>h==="full"?T.filter(P=>C.includes(P.points[0].nodeId)):T,[T,C,h]);return c.jsxs("div",{ref:_,id:"line-chart",className:"rabbit-ds flex flex-col bg-white",style:{width:r,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(xn,{margin:{top:10,left:70,right:50,bottom:50},xScale:{type:"band",nice:!0,...s&&{domain:s}},yScale:{type:"linear",nice:!0,...l&&{domain:l}},children:[c.jsx(Aw,{columns:!1,numTicks:6,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),c.jsx(Xo,{hideTicks:!0,orientation:"bottom",stroke:"#CFD7DF",strokeWidth:1,numTicks:30,tickFormat:P=>u?FM(P,u.symbol,u.position):P,rangePadding:{end:10},tickComponent:P=>c.jsx(jK,{tickData:P,xAxisCharLimit:p}),label:`${a} ➔`,labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx(Xo,{hideTicks:!0,numTicks:6,strokeWidth:1,orientation:"left",stroke:"#CFD7DF",label:`${i} ➔`,tickFormat:P=>f?FM(qt(P>=1e3?"~s":"")(P),f.symbol,f.position):qt(P>=1e3?"~s":"")(P),tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666"},labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dx:-35,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),O.map((P,A)=>c.jsxs(c.Fragment,{children:[c.jsx(qK,{data:P.points,xAccessor:Lf.xAccessor,yAccessor:Lf.yAccessor,connectNulls:g}),c.jsx(sM,{dataKey:`Performance Management ${A}`,data:P.points,size:8,renderGlyph:WK,xAccessor:Lf.xAccessor,yAccessor:Lf.yAccessor})]})),c.jsx(bc,{showDatumGlyph:!0,scroll:!0,debounce:500,snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,detectBounds:!0,unstyled:!0,applyPositionStyle:!0,renderGlyph:HK,renderTooltip:({tooltipData:P})=>{var k,D,q,E,L,W;const A=e.find(B=>{var I;return B.id===((I=P==null?void 0:P.nearestDatum)==null?void 0:I.datum.nodeId)}),N=((k=P==null?void 0:P.nearestDatum)==null?void 0:k.datum)&&((D=P==null?void 0:P.nearestDatum)==null?void 0:D.datum.x.length)<m;return c.jsx(DM,{xValue:(q=P==null?void 0:P.nearestDatum)==null?void 0:q.datum.x,yValue:(E=P==null?void 0:P.nearestDatum)==null?void 0:E.datum.y,xAxisLabel:a,yAxisLabel:i,showSideBySide:!!N,tooltipTitle:d,legendValue:(A==null?void 0:A.name)||"",legendDarkColor:((L=P==null?void 0:P.nearestDatum)==null?void 0:L.datum.color.dark)||ke(0).dark,legendLightColor:((W=P==null?void 0:P.nearestDatum)==null?void 0:W.datum.color.light)||ke(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-radius-100 border border-solid border-[color:var(--Accent,#EBEFF3)] bg-[#FDFDFD] p-4 pr-0 text-xs",children:[c.jsxs("div",{className:"pb-1 text-xs font-semibold",children:[c.jsx("span",{className:"pr-1",children:y??a}),"(",O.length??0,"/",T.length,")"]}),c.jsx("div",{className:"inline-flex h-[95%] w-full shrink-0 grow-0 flex-col items-start justify-start gap-1 overflow-scroll pr-4",children:T.map(P=>{const A=e.find(N=>N.id===P.points[0].nodeId);return A&&c.jsxs("div",{className:"flex w-full items-center justify-between gap-1 py-1",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("div",{style:{backgroundColor:P.points[0].color.light,borderColor:P.points[0].color.dark},className:"mr-1 h-3 w-3 rounded-radius-round border"}),A.name]}),c.jsx("div",{className:"flex items-center",children:c.jsx(Ma,{checked:C.includes(A.id),onCheckedChange:N=>{let k=[...C];N?k=[...C,A.id]:k.splice(C.indexOf(A.id),1),x(k)}})})]},A.id)})})]})]}),h==="mini"&&c.jsx("div",{className:"flex flex-row flex-wrap justify-center gap-4 text-[10px] font-semibold text-body-secondary",children:T.map(P=>{const A=e.find(N=>N.id===P.points[0].nodeId);return c.jsxs("div",{className:"flex items-center justify-center gap-1",children:[c.jsx("div",{style:{backgroundColor:P.points[0].color.light,borderColor:P.points[0].color.dark},className:"h-3 w-3 rounded-radius-round border"}),A==null?void 0:A.name]},A==null?void 0:A.id)})})]})}),VK={xAxisUnitSymbol:void 0,yAxisUnitSymbol:void 0,mode:"mini",xAxisCharLimit:void 0,tooltipStackCharLimit:IM,xAxisDomain:void 0,yAxisDomain:void 0,connectNulls:!1};I2.defaultProps=VK,I2.displayName="LineBase";const LM=M.forwardRef((e,t)=>c.jsx(Br,{debounceTime:10,children:({width:r,height:n})=>c.jsx(I2,{ref:t,width:r,height:n,...e})}));LM.displayName="LineChart";function BM(e,t){let r;if(t===void 0)for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let o of e)(o=t(o,++n,e))!=null&&(r<o||r===void 0&&o>=o)&&(r=o)}return r}function YK(e,t){let r;if(t===void 0)for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let o of e)(o=t(o,++n,e))!=null&&(r>o||r===void 0&&o>=o)&&(r=o)}return r}function L2(e,t){let r=0;if(t===void 0)for(let n of e)(n=+n)&&(r+=n);else{let n=-1;for(let o of e)(o=+t(o,++n,e))&&(r+=o)}return r}function GK(e,t){return e.sourceLinks.length?e.depth:t-1}function Bf(e){return function(){return e}}function zM(e,t){return zf(e.source,t.source)||e.index-t.index}function qM(e,t){return zf(e.target,t.target)||e.index-t.index}function zf(e,t){return e.y0-t.y0}function B2(e){return e.value}function $K(e){return e.index}function XK(e){return e.nodes}function KK(e){return e.links}function WM(e,t){const r=e.get(t);if(!r)throw new Error("missing: "+t);return r}function jM({nodes:e}){for(const t of e){let r=t.y0,n=r;for(const o of t.sourceLinks)o.y0=r+o.width/2,r+=o.width;for(const o of t.targetLinks)o.y1=n+o.width/2,n+=o.width}}function QK(){let e=0,t=0,r=1,n=1,o=24,a=8,i,s=$K,l=GK,u,f,d=XK,h=KK,p=6;function g(){const E={nodes:d.apply(null,arguments),links:h.apply(null,arguments)};return v(E),m(E),y(E),b(E),x(E),jM(E),E}g.update=function(E){return jM(E),E},g.nodeId=function(E){return arguments.length?(s=typeof E=="function"?E:Bf(E),g):s},g.nodeAlign=function(E){return arguments.length?(l=typeof E=="function"?E:Bf(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?(d=typeof E=="function"?E:Bf(E),g):d},g.links=function(E){return arguments.length?(h=typeof E=="function"?E:Bf(E),g):h},g.linkSort=function(E){return arguments.length?(f=E,g):f},g.size=function(E){return arguments.length?(e=t=0,r=+E[0],n=+E[1],g):[r-e,n-t]},g.extent=function(E){return arguments.length?(e=+E[0][0],r=+E[1][0],t=+E[0][1],n=+E[1][1],g):[[e,t],[r,n]]},g.iterations=function(E){return arguments.length?(p=+E,g):p};function v({nodes:E,links:L}){for(const[B,I]of E.entries())I.index=B,I.sourceLinks=[],I.targetLinks=[];const W=new Map(E.map((B,I)=>[s(B,I,E),B]));for(const[B,I]of L.entries()){I.index=B;let{source:F,target:U}=I;typeof F!="object"&&(F=I.source=WM(W,F)),typeof U!="object"&&(U=I.target=WM(W,U)),F.sourceLinks.push(I),U.targetLinks.push(I)}if(f!=null)for(const{sourceLinks:B,targetLinks:I}of E)B.sort(f),I.sort(f)}function m({nodes:E}){for(const L of E)L.value=L.fixedValue===void 0?Math.max(L2(L.sourceLinks,B2),L2(L.targetLinks,B2)):L.fixedValue}function y({nodes:E}){const L=E.length;let W=new Set(E),B=new Set,I=0;for(;W.size;){for(const F of W){F.depth=I;for(const{target:U}of F.sourceLinks)B.add(U)}if(++I>L)throw new Error("circular link");W=B,B=new Set}}function b({nodes:E}){const L=E.length;let W=new Set(E),B=new Set,I=0;for(;W.size;){for(const F of W){F.height=I;for(const{source:U}of F.targetLinks)B.add(U)}if(++I>L)throw new Error("circular link");W=B,B=new Set}}function w({nodes:E}){const L=BM(E,I=>I.depth)+1,W=(r-e-o)/(L-1),B=new Array(L);for(const I of E){const F=Math.max(0,Math.min(L-1,Math.floor(l.call(null,I,L))));I.layer=F,I.x0=e+F*W,I.x1=I.x0+o,B[F]?B[F].push(I):B[F]=[I]}if(u)for(const I of B)I.sort(u);return B}function C(E){const L=YK(E,W=>(n-t-(W.length-1)*i)/L2(W,B2));for(const W of E){let B=t;for(const I of W){I.y0=B,I.y1=B+I.value*L,B=I.y1+i;for(const F of I.sourceLinks)F.width=F.value*L}B=(n-B+i)/(W.length+1);for(let I=0;I<W.length;++I){const F=W[I];F.y0+=B*(I+1),F.y1+=B*(I+1)}k(W)}}function x(E){const L=w(E);i=Math.min(a,(n-t)/(BM(L,W=>W.length)-1)),C(L);for(let W=0;W<p;++W){const B=Math.pow(.99,W),I=Math.max(1-B,(W+1)/p);T(L,B,I),_(L,B,I)}}function _(E,L,W){for(let B=1,I=E.length;B<I;++B){const F=E[B];for(const U of F){let K=0,G=0;for(const{source:V,value:Z}of U.targetLinks){let $=Z*(U.layer-V.layer);K+=D(V,U)*$,G+=$}if(!(G>0))continue;let z=(K/G-U.y0)*L;U.y0+=z,U.y1+=z,N(U)}u===void 0&&F.sort(zf),O(F,W)}}function T(E,L,W){for(let B=E.length,I=B-2;I>=0;--I){const F=E[I];for(const U of F){let K=0,G=0;for(const{target:V,value:Z}of U.sourceLinks){let $=Z*(V.layer-U.layer);K+=q(U,V)*$,G+=$}if(!(G>0))continue;let z=(K/G-U.y0)*L;U.y0+=z,U.y1+=z,N(U)}u===void 0&&F.sort(zf),O(F,W)}}function O(E,L){const W=E.length>>1,B=E[W];A(E,B.y0-i,W-1,L),P(E,B.y1+i,W+1,L),A(E,n,E.length-1,L),P(E,t,0,L)}function P(E,L,W,B){for(;W<E.length;++W){const I=E[W],F=(L-I.y0)*B;F>1e-6&&(I.y0+=F,I.y1+=F),L=I.y1+i}}function A(E,L,W,B){for(;W>=0;--W){const I=E[W],F=(I.y1-L)*B;F>1e-6&&(I.y0-=F,I.y1-=F),L=I.y0-i}}function N({sourceLinks:E,targetLinks:L}){if(f===void 0){for(const{source:{sourceLinks:W}}of L)W.sort(qM);for(const{target:{targetLinks:W}}of E)W.sort(zM)}}function k(E){if(f===void 0)for(const{sourceLinks:L,targetLinks:W}of E)L.sort(qM),W.sort(zM)}function D(E,L){let W=E.y0-(E.sourceLinks.length-1)*i/2;for(const{target:B,width:I}of E.sourceLinks){if(B===L)break;W+=I+i}for(const{source:B,width:I}of L.targetLinks){if(B===E)break;W-=I}return W}function q(E,L){let W=L.y0-(L.targetLinks.length-1)*i/2;for(const{source:B,width:I}of L.targetLinks){if(B===E)break;W+=I+i}for(const{target:B,width:I}of E.sourceLinks){if(B===L)break;W-=I}return W}return g}function ZK({tooltipData:e,fromLabel:t,toLabel:r,weightLabel:n,tooltipTitle:o}){var s,l,u,f;const a=e.source,i=e.target;return c.jsxs(we,{tooltipTitle:o,children:[c.jsx(we.Item,{label:t,value:a.name}),c.jsx(we.Item,{label:r,value:i.name}),c.jsx(we.Item,{label:n,value:e.weight.toString()}),c.jsx(we.Legend,{value:a.name,darkColor:(s=ke((a.index||0)+1))==null?void 0:s.dark,lightColor:(l=ke((a.index||0)+1))==null?void 0:l.light}),c.jsx(we.Legend,{value:i.name,darkColor:(u=ke((i.index||0)+1))==null?void 0:u.dark,lightColor:(f=ke((i.index||0)+1))==null?void 0:f.light})]})}const HM=80,UM=20,JK=30,RK=12,VM=M.forwardRef(({height:e,width:t,tooltipTitle:r,nodes:n,links:o,groups:a,weightLabel:i},s)=>{const l=M.useMemo(()=>QK().nodeId(E=>E.id).nodeWidth(RK).nodePadding(JK).nodeAlign(E=>E.group),[]),u=M.useRef(null);Or(u,s,`${r}-SankeyChart`);const[f,d]=M.useState(""),[h,p]=M.useState(null),{tooltipData:g,tooltipLeft:v,tooltipTop:m,tooltipOpen:y,showTooltip:b,hideTooltip:w}=Ko(),{containerBounds:C,containerRef:x,TooltipInPortal:_}=Qo({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),T=M.useMemo(()=>l.extent([[HM,UM],[t-HM,e-UM-50]])({nodes:n,links:o.map(E=>({...E,value:Number(E.weight)}))}),[e,t,l,n,o]),O=M.useMemo(()=>Math.max(...T.nodes.map(E=>E.depth??0)),[T]),P=M.useMemo(()=>{const E={};let L=-1/0;return T.nodes.forEach(W=>{const{group:B}=W;E[B]?(E[B].x=Math.max(E[B].x??-1/0,W.x0??-1/0),E[B].y=Math.max(E[B].y??-1/0,W.y1??-1/0)):(E[B]={},E[B].x=W.x0,E[B].y=W.y1),L=Math.max(L,E[B].y??-1/0),E[B].y=L}),Object.keys(E).forEach(W=>{E[W].y=L}),E},[T]),A=M.useCallback(E=>{const L=l.nodeId()(E);d(f===L?"":L)},[f,l]),N=M.useCallback(()=>{d(""),p(null)},[]),k=M.useMemo(()=>f===""&&h===null?new Set:new Set(T.links.filter(E=>l.nodeId()(E.source)===f||l.nodeId()(E.target)===f||(h==null?void 0:h.source)===E.source&&(h==null?void 0:h.target)===E.target)),[f,T,h,l]),D=M.useCallback((E,L)=>{const W=("clientX"in E?E.clientX:0)-C.left,B=("clientY"in E?E.clientY:0)-C.top;p(L),W&&B&&b({tooltipLeft:W,tooltipTop:B,tooltipData:L})},[b,C]),q=M.useCallback(()=>{N(),w()},[N,w]);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:x,children:[c.jsx("g",{children:T.links.map(E=>c.jsx(LV,{data:E,source:L=>({x:L.source.x1,y:L.y0}),target:L=>({x:L.target.x0,y:L.y1}),x:L=>L.x??0,y:L=>L.y??0,fill:"none",pointerEvents:"stroke",onMouseLeave:()=>q(),onMouseMove:L=>D(L,E),stroke:ke((E.source.index||0)+1).light,strokeWidth:E.width,strokeOpacity:k.has(E)?.7:.4},E.index))}),c.jsx("g",{children:T.nodes.map(E=>{var L,W,B;return c.jsx("g",{children:c.jsx(pw,{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:()=>A(E),onMouseLeave:()=>N(),radius:2,fill:f===E.id?(L=ke((E.index||0)+1))==null?void 0:L.dark:(W=ke((E.index||0)+1))==null?void 0:W.light,stroke:(B=ke((E.index||0)+1))==null?void 0:B.dark,all:!0})},E.index)})}),c.jsx("g",{children:a.map(E=>c.jsx(fa,{axisCharLimit:20,x:P[E.id].x??0,y:(P[E.id].y??0)+40,textLabel:E.name,textStyles:{fontSize:10,fontWeight:600,textAnchor:"middle",fill:"#666666"}},E.id))}),c.jsxs("g",{children:[T.nodes.map(E=>c.jsx(fa,{axisCharLimit:8,x:E.depth===O?(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===O?"start":"end",fill:"#666666"}},E.index)),T.nodes.map(E=>E.value&&c.jsx(ei,{x:E.depth===O?(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===O?"start":"end",fill:"#666666"},children:`(${E.value.toString()})`},E.index))]})]}),y&&g&&c.jsx(_,{top:m,left:v,unstyled:!0,applyPositionStyle:!0,children:c.jsx(ZK,{tooltipData:g,fromLabel:`From: ${a[g.source.group].name}`,toLabel:`To: ${a[g.target.group].name}`,weightLabel:i,tooltipTitle:r})},Xt(0,4294967295).toString(16))]})});VM.displayName="Sankey";const YM=M.forwardRef((e,t)=>c.jsx(Br,{debounceTime:10,children:({width:r,height:n})=>r&&n&&c.jsx(VM,{ref:t,width:r,height:n,...e})}));YM.displayName="SankeyChart";var eQ=Tp();const tQ=Mt(eQ);function rQ(e){return"bandwidth"in e?e.bandwidth():0}var nQ=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function z2(){return z2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},z2.apply(this,arguments)}function oQ(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function GM(e){var t=e.top,r=t===void 0?0:t,n=e.left,o=n===void 0?0:n,a=e.scale,i=e.width,s=e.stroke,l=s===void 0?"#eaf0f6":s,u=e.strokeWidth,f=u===void 0?1:u,d=e.strokeDasharray,h=e.className,p=e.children,g=e.numTicks,v=g===void 0?10:g,m=e.lineStyle,y=e.offset,b=e.tickValues,w=oQ(e,nQ),C=b??bp(a,v),x=(y??0)+rQ(a)/2,_=C.map(function(T,O){var P,A=((P=oc(a(T)))!=null?P:0)+x;return{index:O,from:new zr({x:0,y:A}),to:new zr({x:i,y:A})}});return M.createElement(rr,{className:nt("visx-rows",h),top:r,left:o},p?p({lines:_}):_.map(function(T){var O=T.from,P=T.to,A=T.index;return M.createElement(tQ,z2({key:"row-line-"+A,from:O,to:P,stroke:l,strokeWidth:f,strokeDasharray:d,style:m},w))}))}GM.propTypes={tickValues:re.array,width:re.number.isRequired};function $M({xValue:e,yValue:t,tooltipTitle:r,xAxisLabel:n,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(we,{tooltipTitle:r,showSideBySide:!0,children:[c.jsx(we.Item,{label:n,value:l}),c.jsx(we.Item,{label:o,value:u}),c.jsx(we.Legend,{value:a,darkColor:i,lightColor:s})]})}$M.defaultProps={xValue:void 0,yValue:void 0};const XM=20,KM=50,q2=80,qf=50,aQ=10,iQ=25,W2=M.forwardRef(({tooltipTitle:e,xAxisLabel:t,yAxisLabel:r,domain:n,binCount:o,data:a,width:i,height:s,maxBinCount:l=iQ,minBinCount:u=aQ,integerBins:f=!1,integerYAxis:d=!1},h)=>{const p=M.useMemo(()=>zl(a),[a]),{histogramDomain:g,threshold:v,thresholdInteger:m}=M.useMemo(()=>{const I=p[0]??0,F=I===p[1]?u+I:p[1]??0,U=F-I>u?F:u+I,K=Math.min(Math.max(F-I,u),l),G=Math.floor(p[0]??0),z=Math.ceil(U);return{histogramDomain:n||(f?[G,z]:[I,F]),threshold:K,thresholdInteger:Math.ceil(K)}},[p,n,f,l,u]),y=M.useMemo(()=>Gn({domain:g,range:[qf,i-KM],round:!0,nice:!0}),[g,i]),b=M.useMemo(()=>gj().domain(y.domain()).thresholds(o||(f?m:v))(a),[y,o,a,v,m,f]),w=M.useMemo(()=>Gn({domain:[0,vj(b,I=>I.length)??0],range:[s-q2,XM],round:!0,nice:!0}),[b,s]),C=M.useMemo(()=>w.ticks().filter(I=>d?Number.isInteger(I):I),[d,w]),x=M.useRef(null);Or(x,h,`${t}-${r}-Histogram`);const{tooltipData:_,tooltipLeft:T,tooltipTop:O,tooltipOpen:P,showTooltip:A,hideTooltip:N}=Ko(),{containerBounds:k,containerRef:D,TooltipInPortal:q}=Qo({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),E=i-qf-KM,L=s-XM-q2-100,W=M.useCallback((I,F)=>{const U=("clientX"in I?I.clientX:0)-k.left,K=("clientY"in I?I.clientY:0)-k.top;U&&K&&A({tooltipLeft:U,tooltipTop:K,tooltipData:F})},[A,k]),B=M.useCallback(()=>{N()},[N]);return c.jsxs("div",{className:"rabbit-ds flex flex-col bg-white",style:{width:i,height:s},ref:x,children:[c.jsxs("svg",{width:i,height:s,ref:D,children:[c.jsx(bi,{orientation:"bottom",scale:y,top:s-q2,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(bi,{orientation:"left",scale:w,left:qf,hideTicks:!0,strokeWidth:1,stroke:"#CFD7DF",tickFormat:I=>d?Number(I)>=1e3?qt("~s")(Number(qt("d")(I))):qt("d")(I):Number(I)>=1e3?qt("~s")(I):qt("")(I),tickValues:C,label:`${r} ➔`,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(rr,{children:[c.jsx(GM,{scale:w,width:E,height:L,left:qf,top:0,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),b.map(I=>{const F=Math.abs(w(0)-w(I.length)),U=Math.abs(y(I.x1??0)-y(I.x0??0));return c.jsx("g",{children:c.jsx(hw,{x:y(I.x0??0),y:w(I.length),width:U,height:F&&F-1,fill:ke(0).light,stroke:ke(0).dark,strokeWidth:1,onMouseMove:K=>W(K,I),onMouseLeave:()=>B()})},Xt(0,4294967295))})]})]}),P&&_&&c.jsx(q,{top:O,left:T,unstyled:!0,applyPositionStyle:!0,children:c.jsx($M,{xAxisLabel:t,xValue:`${_.x0} to ${_.x1}`,yAxisLabel:r,yValue:_.length,tooltipTitle:e,legendValue:r,legendDarkColor:ke(0).dark,legendLightColor:ke(0).light})},Xt(0,4294967295)),w.domain()[2]]})}),QM=M.forwardRef((e,t)=>c.jsx(Br,{debounceTime:10,children:({width:r,height:n})=>c.jsx(W2,{ref:t,width:r,height:n,...e})}));W2.defaultProps={domain:void 0,binCount:void 0,integerBins:!1,integerYAxis:!1},W2.displayName="HistogramBase",QM.displayName="HistogramChart";function ZM({tooltipTitle:e,label:t,value:r,unit:n,legendValue:o,legendDarkColor:a,legendLightColor:i}){return c.jsxs(we,{tooltipTitle:e,children:[c.jsx(we.Item,{label:t,value:`${r} ${n}`}),c.jsx(we.Legend,{value:o,darkColor:a||"",lightColor:i||""})]})}ZM.defaultProps={};const sQ=e=>e.value,lQ=e=>e.label,JM=M.forwardRef(({width:e,height:t,unit:r="%",data:n,tooltipTitle:o,legendTitle:a},i)=>{const s=e/2,l=t/2,u=M.useMemo(()=>Math.min(e-.35*e,t-50)/2,[e,t]),{tooltipData:f,tooltipLeft:d,tooltipTop:h,tooltipOpen:p,showTooltip:g,hideTooltip:v}=Ko(),{containerBounds:m,containerRef:y,TooltipInPortal:b}=Qo({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),w=M.useRef(null),C=M.useCallback((_,T)=>{const O=("clientX"in _?_.clientX:0)-m.left,P=("clientY"in _?_.clientY:0)-m.top;O&&P&&g({tooltipLeft:O,tooltipTop:P,tooltipData:T})},[g,m]),x=M.useCallback(()=>{v()},[v]);return Or(w,i,"DonutChart"),c.jsxs("div",{className:"rabbit-ds flex flex-col bg-white",style:{width:e,height:t},ref:w,children:[c.jsx("svg",{width:e,height:t,className:"rabbit-ds",ref:y,children:c.jsx(rr,{top:l-20,left:s,children:c.jsx(bV,{data:n,pieValue:sQ,outerRadius:u-10,innerRadius:u-Math.min(e*.07,22)-10,cornerRadius:2,padAngle:.025,children:_=>c.jsx(c.Fragment,{children:_.arcs.map(T=>{const O=lQ(T.data);return c.jsx("g",{children:c.jsx("path",{d:_.path(T)??void 0,fill:T.data.color,onMouseLeave:x,onMouseMove:P=>C(P,{label:a,value:T.value,tooltipTitle:o,unit:r,legendValue:O,legendDarkColor:T.data.labelColor,legendLightColor:T.data.color})})},`arc-${O}`)})})})})}),p&&f&&c.jsx(b,{top:h,left:d,unstyled:!0,applyPositionStyle:!0,children:c.jsx(ZM,{unit:f.unit,label:f.label,value:f.value,tooltipTitle:o,legendValue:f.legendValue??"",legendDarkColor:f.legendDarkColor,legendLightColor:f.legendLightColor})},Xt(0,4294967295)),c.jsx("div",{className:"flex flex-row flex-wrap justify-center gap-2 text-[10px] font-semibold text-body-secondary",style:{fontSize:Math.min(e*.04,10)},children:n.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-radius-round border"}),`${_.label}: ${_.value}${r}`]},_.label))})]})});JM.displayName="DonutChartBase";const RM=M.forwardRef((e,t)=>c.jsx(Br,{debounceTime:10,children:({width:r,height:n})=>c.jsx(JM,{ref:t,width:r,height:n,...e})}));RM.displayName="DonutChart";function eS({xValue:e,yValue:t,tooltipTitle:r,xAxisLabel:n,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(we,{tooltipTitle:r,showSideBySide:a,children:[c.jsx(we.Item,{label:n,value:u}),c.jsx(we.Item,{label:o,value:f}),c.jsx(we.Legend,{value:i,darkColor:s,lightColor:l})]})}eS.defaultProps={xValue:void 0,yValue:void 0};const Wf={top:60,left:20,right:20,bottom:20},tS={start:10,end:-10,middle:0},rS=M.forwardRef(({width:e,height:t,levels:r=5,nodes:n,xAxisLabel:o,xAxisCharLimit:a,tooltipTitle:i,xAxisUnitSymbol:s,yAxisDomain:l,series:u=[],xAxisValues:f},d)=>{const h=M.useRef(null);Or(h,d,"RadarChart");const{tooltipData:p,tooltipLeft:g,tooltipTop:v,tooltipOpen:m,showTooltip:y,hideTooltip:b}=Ko(),{containerBounds:w,containerRef:C,TooltipInPortal:x}=Qo({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),_=M.useCallback((F,U)=>{const K=Math.PI*2/F;return[...new Array(F)].map((G,z)=>({x:U*Math.sin(z*K),y:U*Math.cos(z*K)}))},[]),T=M.useCallback((F,U,K)=>K==="pre"?`${U}${F}`:`${F}${U}`,[]),O=M.useCallback((F,U,K)=>{const G=Math.PI*2/F.length,z=new Array(F.length).fill({x:0,y:0,data:null}),V=new Array(F.length+1).fill("").reduce((Z,$,ee)=>{if(ee>F.length)return Z;const X=U(K(F[ee-1]))*Math.sin(ee*G),Q=U(K(F[ee-1]))*Math.cos(ee*G);return z[ee-1]={x:X,y:Q,data:F[ee-1]},`${Z}${X},${Q} `});return{points:z,pointString:V}},[]),P=M.useMemo(()=>new zr({x:0,y:0}),[]),A=M.useCallback(F=>Math.round(F)===0?"middle":F>0?"start":"end",[]),N=M.useCallback((F,U)=>{const K=("clientX"in F?F.clientX:0)-w.left,G=("clientY"in F?F.clientY:0)-w.top;K&&G&&y({tooltipLeft:K,tooltipTop:G,tooltipData:U})},[y,w]),k=M.useCallback(()=>{b()},[b]),D=M.useMemo(()=>e-Wf.left-Wf.right,[e]),q=M.useMemo(()=>t-Wf.top-Wf.bottom,[t]),E=M.useMemo(()=>Math.min(D,q)/2,[D,q]),L=u.length?u.reduce((F,U)=>{const K=U.data.filter(G=>G);return Math.max(F,...K)},-1/0):0,W=Gn({range:[0,E],domain:l??[0,L]}),B=_(f.length,E),I=F=>O(F,U=>W(U)??0,U=>U);return c.jsxs("div",{className:"rabbit-ds flex flex-col gap-600 bg-white",style:{width:e,height:t},ref:h,children:[c.jsxs("svg",{width:e,height:t,ref:C,pointerEvents:"all",onMouseLeave:k,children:[c.jsx("rect",{fill:"transparent",width:e,height:t,rx:14}),c.jsxs(rr,{top:t/2,left:e/2,children:[[...new Array(r)].map((F,U)=>c.jsx(gw,{x:e/2,y:t/2,fill:"none",stroke:"#CFD7DF",strokeWidth:1,strokeDasharray:4,r:E*(U+1)/r},`web1-${Xt(0,4294967295).toString(16)}`)),f.map((F,U)=>c.jsxs(c.Fragment,{children:[c.jsx(Ap,{from:P,to:B[U],stroke:f.length===1?ke(0).dark:"#CFD7DF",strokeWidth:1},`radar-line-${Xt(0,4294967295).toString(16)}`),c.jsx(ei,{x:B[U].x,y:B[U].y,textAnchor:A(B[U].x),verticalAnchor:A(B[U].y),dx:tS[A(B[U].x)],dy:tS[A(B[U].y)],fontSize:10,fill:"#666666",width:a??100,children:`${s?T(f[(U+f.length-1)%f.length],s.symbol,s.position):f[(U+f.length-1)%f.length]}`})]})),u.map((F,U)=>c.jsx("polygon",{points:I(F.data).pointString,fill:ke(U).light,fillOpacity:.2,stroke:ke(U).dark,strokeWidth:1},`polypath-${Xt(0,4294967295).toString(16)}`)),u.map((F,U)=>I(F.data).points.map((K,G)=>c.jsx(gw,{cx:K.x,cy:K.y,r:5,fill:"transparent",onMouseMove:z=>{var V;return N(z,{yAxisLabel:((V=n.find(Z=>Z.id===F.id))==null?void 0:V.name)??"",xAxisValue:f[G],yAxisValue:F.data[G],xAxisLabel:o??"Category",legendDarkColor:ke(U).dark,legendLightColor:ke(U).light})},onMouseOut:k},`radar-point-${Xt(0,4294967295).toString(16)}`)))]})]}),m&&p&&c.jsx(x,{top:v,left:g,unstyled:!0,applyPositionStyle:!0,children:c.jsx(eS,{xAxisLabel:p.xAxisLabel??"",xValue:p.xAxisValue,yAxisLabel:p.yAxisLabel??"",yValue:p.yAxisValue,tooltipTitle:i,showSideBySide:!0,legendValue:p.yAxisLabel??"",legendDarkColor:p.legendDarkColor,legendLightColor:p.legendLightColor})},Xt(0,4294967295).toString(16)),c.jsx("div",{className:"flex flex-row flex-wrap justify-end gap-200",children:n.map((F,U)=>c.jsxs("div",{className:"flex items-center justify-center gap-100 text-300sm leading-400 text-body-secondary",children:[c.jsx("div",{style:{backgroundColor:ke(U).light,borderColor:ke(U).dark},className:"h-300 w-300 rounded-radius-round border"}),F.name]},F.id))})]})});rS.displayName="RadarChartBase";const nS=M.forwardRef((e,t)=>c.jsx(Br,{debounceTime:10,children:({width:r,height:n})=>c.jsx(rS,{ref:t,width:r,height:n,...e})}));nS.displayName="RadarChart";function oS({xValue:e,yValue:t,tooltipTitle:r,xAxisLabel:n,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(we,{tooltipTitle:r,showSideBySide:a,children:[c.jsx(we.Item,{label:n,value:u}),c.jsx(we.Item,{label:o,value:f}),c.jsx(we.Legend,{value:i,darkColor:s,lightColor:l})]})}oS.defaultProps={xValue:void 0,yValue:void 0};const cQ=({x:e,y:t,datum:r})=>c.jsx(Fo,{cx:e,cy:t,stroke:r.color.dark,strokeWidth:1,fill:r.color.dark,r:5,style:{zIndex:1500}}),uQ=({tickData:e,xAxisCharLimit:t})=>{var a;const r=M.useContext(gt),n=(a=r==null?void 0:r.xScale)==null?void 0:a.bandwidth(),o=Math.floor(n/5);return c.jsx(fa,{textLabel:e.formattedValue||"",x:e.x,y:e.y,textStyles:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle",angle:n&&n<25?-45:0},axisCharLimit:t??o})},aS={xAccessor:e=>e.x,yAccessor:e=>e.y},iS=(e,t,r)=>r==="pre"?`${t}${e}`:`${e}${t}`,sS=10,fQ=5,j2=M.forwardRef(({nodes:e,height:t,width:r,xAxisValues:n,series:o,xAxisLabel:a,yAxisLabel:i,xAxisDomain:s,yAxisDomain:l,xAxisUnitSymbol:u,yAxisUnitSymbol:f,tooltipTitle:d,mode:h,xAxisCharLimit:p,maxNodesInMiniMode:g=fQ,tooltipStackCharLimit:v=sS,seriesSelectorTitle:m,preselectedNodes:y},b)=>{const[w,C]=M.useState(()=>(y&&y<=e.length?e.slice(0,y):e).map(P=>P.id)),x=M.useRef(null);Or(x,b,`${a}-${i}-StackedBarChart`);const _=M.useMemo(()=>o.map((O,P)=>{const A=e.find(N=>N.id===O.id);return{points:O.data.map((N,k)=>({x:n[k],y:Number(N),nodeId:O.id,color:(A==null?void 0:A.color)??ke(P)}))}}).slice(0,h==="mini"?g:o.length),[o,h,g,e,n]),T=M.useMemo(()=>h==="full"?_.filter(O=>w.includes(O.points[0].nodeId)):_,[_,w,h]);return c.jsxs("div",{ref:x,id:"line-chart",className:"rabbit-ds flex flex-col bg-white",style:{width:r,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(xn,{margin:{top:10,left:70,right:50,bottom:50},xScale:{type:"band",nice:!0,padding:.5,...s&&{domain:s}},yScale:{type:"linear",nice:!0,...l&&{domain:l}},children:[c.jsx(Aw,{columns:!1,numTicks:6,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),c.jsx(Xo,{hideTicks:!0,orientation:"bottom",stroke:"#CFD7DF",strokeWidth:1,numTicks:30,tickFormat:O=>u?iS(O,u.symbol,u.position):O,rangePadding:{end:10},tickComponent:O=>c.jsx(uQ,{tickData:O,xAxisCharLimit:p}),label:`${a} ➔`,labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx(Xo,{hideTicks:!0,numTicks:6,strokeWidth:1,orientation:"left",stroke:"#CFD7DF",label:`${i} ➔`,tickFormat:O=>f?iS(qt(O>=1e3?"~s":"")(O),f.symbol,f.position):qt(O>=1e3?"~s":"")(O),tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666"},labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dx:-35,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx(yX,{children:T.map(O=>c.jsx(pX,{data:O.points,dataKey:O.points[0].nodeId,xAccessor:aS.xAccessor,yAccessor:aS.yAccessor,colorAccessor:P=>P.color.light,radiusTop:!0,radius:2},O.points[0].nodeId))}),c.jsx(bc,{showDatumGlyph:!0,scroll:!0,debounce:500,snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,detectBounds:!0,unstyled:!0,applyPositionStyle:!0,renderGlyph:cQ,renderTooltip:({tooltipData:O})=>{var N,k,D,q,E,L;const P=e.find(W=>{var B;return W.id===((B=O==null?void 0:O.nearestDatum)==null?void 0:B.datum.nodeId)}),A=((N=O==null?void 0:O.nearestDatum)==null?void 0:N.datum)&&((k=O==null?void 0:O.nearestDatum)==null?void 0:k.datum.x.length)<v;return c.jsx(oS,{xValue:(D=O==null?void 0:O.nearestDatum)==null?void 0:D.datum.x,yValue:(q=O==null?void 0:O.nearestDatum)==null?void 0:q.datum.y,xAxisLabel:a,yAxisLabel:i,showSideBySide:!!A,tooltipTitle:d,legendValue:(P==null?void 0:P.name)||"",legendDarkColor:((E=O==null?void 0:O.nearestDatum)==null?void 0:E.datum.color.dark)||ke(0).dark,legendLightColor:((L=O==null?void 0:O.nearestDatum)==null?void 0:L.datum.color.light)||ke(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-radius-100 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:m??a}),"(",T.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(O=>{const P=e.find(A=>A.id===O.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:O.points[0].color.light,borderColor:O.points[0].color.dark},className:"mr-1 h-3 w-3 rounded-radius-round border"}),P.name]}),c.jsx("div",{className:"flex items-center",children:c.jsx(Ma,{checked:w.includes(P.id),onCheckedChange:A=>{let N=[...w];A?N=[...w,P.id]:N.splice(w.indexOf(P.id),1),C(N)}})})]},P.id)})})]})]}),h==="mini"&&c.jsx("div",{className:"flex flex-row flex-wrap justify-center gap-4 text-[10px] font-semibold text-body-secondary",children:_.map(O=>{const P=e.find(A=>A.id===O.points[0].nodeId);return c.jsxs("div",{className:"flex items-center justify-center gap-1",children:[c.jsx("div",{style:{backgroundColor:O.points[0].color.light,borderColor:O.points[0].color.dark},className:"h-3 w-3 rounded-radius-round border"}),P==null?void 0:P.name]},P==null?void 0:P.id)})})]})}),dQ={xAxisUnitSymbol:void 0,yAxisUnitSymbol:void 0,mode:"mini",xAxisCharLimit:void 0,tooltipStackCharLimit:sS,xAxisDomain:void 0,yAxisDomain:void 0,connectNulls:!1};j2.defaultProps=dQ,j2.displayName="StackedBarChartBase";const lS=M.forwardRef((e,t)=>c.jsx(Br,{debounceTime:10,children:({width:r,height:n})=>c.jsx(j2,{ref:t,width:r,height:n,...e})}));lS.displayName="StackedBarChart";const hQ=({nodes:e,selectedNodeIds:t,setSelectedNodeIds:r,seriesSelectorTitle:n})=>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-radius-100 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:n}),"(",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-radius-round border"}),a]}),c.jsx("div",{className:"flex items-center",children:c.jsx(Ma,{checked:t.includes(o),onCheckedChange:s=>{let l=[...t];s?l=[...t,o]:l.splice(t.indexOf(o),1),r(l)}})})]},o))})]});function cS({xValue:e,yValue:t,tooltipTitle:r,xAxisLabel:n,yAxisLabel:o,showSideBySide:a,otherDataPoints:i=[],pointMetaData:s,seriesMetaData:l}){var d;const u=e==null?void 0:e.toString(),f=t==null?void 0:t.toString();return c.jsxs(we,{tooltipTitle:r,showSideBySide:a,children:[c.jsx(we.Header,{label:"Review Cycle",value:(d=s==null?void 0:s.reviewCycle)==null?void 0:d.name}),c.jsx(we.Item,{label:n,value:u}),c.jsx(we.Item,{label:o,value:f}),i.map(({label:h,value:p})=>c.jsx(we.Item,{label:h,value:p},h)),c.jsx(we.Footer,{nodeData:l})]})}cS.defaultProps={xValue:void 0,yValue:void 0};var pQ=["id","markerWidth","markerHeight","markerUnits","children"];function H2(){return H2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},H2.apply(this,arguments)}function gQ(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function U2(e){var t=e.id,r=e.markerWidth,n=r===void 0?3:r,o=e.markerHeight,a=o===void 0?3:o,i=e.markerUnits,s=i===void 0?"userSpaceOnUse":i,l=e.children,u=gQ(e,pQ);return M.createElement("defs",null,M.createElement("marker",H2({id:t,markerWidth:n,markerHeight:a,markerUnits:s},u),l))}U2.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 vQ=["id","size","strokeWidth"];function V2(){return V2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},V2.apply(this,arguments)}function mQ(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function yQ(e){var t=e.id,r=e.size,n=r===void 0?9:r,o=e.strokeWidth,a=o===void 0?1:o,i=mQ(e,vQ),s=n+a*2,l=n,u=s/2,f="0 0, "+n+" "+n/2+", 0 "+n;return M.createElement(U2,V2({id:t,markerWidth:s,markerHeight:s,refX:l,refY:u,orient:"auto",markerUnits:"strokeWidth",fill:"none",strokeWidth:a},i),M.createElement("g",{transform:"translate("+a+", "+a+")"},M.createElement("polyline",{points:f})))}var bQ=["id","size","strokeWidth"];function Y2(){return Y2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Y2.apply(this,arguments)}function wQ(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function xQ(e){var t=e.id,r=e.size,n=r===void 0?9:r,o=e.strokeWidth,a=o===void 0?1:o,i=wQ(e,bQ),s=n*2,l=s+a,u=l/2;return M.createElement(U2,Y2({id:t,markerWidth:l,markerHeight:l,refX:0,refY:u,orient:"auto-start-reverse",markerUnits:"strokeWidth",strokeWidth:a},i),M.createElement("circle",{r:n,cx:u,cy:u}))}function CQ({data:e,xAccessor:t,yAccessor:r,connectNulls:n=!1}){const o=M.useContext(gt),a=n?e.filter(i=>i.y!==null):e;return a.length===0?null:c.jsxs(c.Fragment,{children:[c.jsx(xQ,{id:"marker-circle",stroke:"#666",size:6,refX:7,fill:"transparent",strokeWidth:2}),c.jsx(yQ,{id:"marker-arrow",stroke:"#666",size:14,strokeWidth:2,markerUnits:"userSpaceOnUse"}),c.jsx(dw,{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,r(i)))??0},curve:Za,shapeRendering:"geometricPrecision",markerStart:"url(#marker-circle)",markerEnd:"url(#marker-arrow)"})]})}const AQ=({x:e,y:t,datum:r,size:n})=>c.jsx(Fo,{cx:e,cy:t,stroke:r.color.dark,strokeWidth:1,fill:r.color.light,r:n/2}),MQ=({x:e,y:t,datum:r})=>c.jsx(Fo,{cx:e,cy:t,stroke:r.color.dark,strokeWidth:1,fill:r.color.dark,r:5,style:{zIndex:1500}}),jf={xAccessor:e=>e==null?void 0:e.x,yAccessor:e=>e==null?void 0:e.y},uS=(e,t,r)=>r==="pre"?`${t}${e}`:`${e}${t}`,SQ=10,PQ=5,fS=M.forwardRef(({rowsCount:e=3,nodes:t,height:r,width:n,xAxisLabel:o,yAxisLabel:a,xAxisDomain:i,yAxisDomain:s,xAxisUnitSymbol:l,yAxisUnitSymbol:u,tooltipTitle:f,mode:d="mini",xAxisCharLimit:h,connectNulls:p=!1,maxNodesInMiniMode:g=PQ,tooltipStackCharLimit:v=SQ,withBackground:m=!0},y)=>{const b=M.useRef(null),w=e===1;Or(b,y,`${o}-${a}-DirectedLineChart`);const C=M.useMemo(()=>t.map(({seriesMetaData:A},N)=>{const{employee:k}=A;return{id:k.id,name:k.name,color:ke(N)}}).slice(0,d==="mini"?g:t.length),[t,d,g]),[x,_]=M.useState(()=>C.filter((A,N)=>d==="full"||N<g).map(A=>A.id)),T=M.useMemo(()=>t.map((A,N)=>({nodeId:A.seriesMetaData.employee.id,points:A.xValues.map((k,D)=>{var E;let q=null;return w?q=1/t.length*(N+1)+1/(t.length*10)*(D+1):q=((E=A==null?void 0:A.yValues)==null?void 0:E[D])??null,{x:A.xValues[D],y:q,pointMetaData:A.pointsMetaData[D],nodeId:A.seriesMetaData.employee.id,color:ke(N)}})})).slice(0,d==="mini"?g:t.length),[t,d,g,w]),O=M.useMemo(()=>d==="full"?T.filter(({nodeId:A})=>x.includes(A)):T,[T,d,x]),P=M.useMemo(()=>Math.floor((n-(d==="mini"?0:150))/(t[0].xValues.length*8)),[n,d,t]);return c.jsx("div",{ref:b,id:"directed-line-chart",className:R("rabbit-ds flex flex-col",m?"bg-[white]":""),style:{width:n,height:r},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(xn,{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(Xo,{hideTicks:!0,orientation:"bottom",stroke:"#CFD7DF",strokeWidth:1,numTicks:6,tickFormat:A=>l?uS(A,l.symbol,l.position):A,tickComponent:A=>c.jsx(fa,{textLabel:A.formattedValue||"",x:A.x,y:A.y,textStyles:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle"},axisCharLimit:h??P}),label:`${o} ➔`,labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx(Xo,{hideTicks:!0,numTicks:w?0:6,strokeWidth:w?0:1,orientation:"left",stroke:"#CFD7DF",label:a?`${a} ➔`:"",tickFormat:A=>u?uS(A,u.symbol,u.position):A,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"}}),O.map((A,N)=>c.jsxs(c.Fragment,{children:[c.jsx(CQ,{data:A.points,xAccessor:jf.xAccessor,yAccessor:jf.yAccessor,connectNulls:p}),c.jsx(sM,{dataKey:`Performance Management ${N}`,data:A.points,size:8,renderGlyph:AQ,xAccessor:jf.xAccessor,yAccessor:jf.yAccessor})]})),c.jsx(bc,{showDatumGlyph:!0,scroll:!0,showVerticalCrosshair:!0,showHorizontalCrosshair:!0,debounce:500,snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,detectBounds:!0,unstyled:!0,applyPositionStyle:!0,renderGlyph:MQ,renderTooltip:({tooltipData:A})=>{var D,q,E,L,W,B,I,F,U;const N=t.find(K=>{var G;return K.id===((G=A==null?void 0:A.nearestDatum)==null?void 0:G.datum.nodeId)}),k=((D=A==null?void 0:A.nearestDatum)==null?void 0:D.datum)&&String((q=A==null?void 0:A.nearestDatum)==null?void 0:q.datum.x).length<v;return c.jsx(cS,{xValue:(E=A==null?void 0:A.nearestDatum)==null?void 0:E.datum.x,yValue:(L=A==null?void 0:A.nearestDatum)==null?void 0:L.datum.y,xAxisLabel:o,yAxisLabel:a,showSideBySide:!!k,tooltipTitle:f,otherDataPoints:((I=(B=(W=A==null?void 0:A.nearestDatum)==null?void 0:W.datum)==null?void 0:B.pointMetaData)==null?void 0:I.otherDataPoints)??[],seriesMetaData:N==null?void 0:N.seriesMetaData,pointMetaData:(U=(F=A==null?void 0:A.nearestDatum)==null?void 0:F.datum)==null?void 0:U.pointMetaData})}})]})}),d==="full"&&c.jsx(hQ,{nodes:C,seriesSelectorTitle:"Team members",selectedNodeIds:x,setSelectedNodeIds:_})]})})});fS.displayName="LineBase";const G2=M.forwardRef((e,t)=>c.jsx(Br,{debounceTime:10,children:({width:r,height:n})=>c.jsx(fS,{ref:t,width:r,height:n,...e})}));G2.displayName="DirectedLineChart";const _Q=[{"#FFEFD4":"#AF5C20"},{"#DBF2D3":"#44812F"},{"#BFE8C6":"#1A5724"},{"#FFE7C5":"#8C6A00"},{"#FAD4D4":"#C62C02"},{"#EAEAEA":"#333333"},{"#E6F1FD":"#1565BC"},{"#FFE1D9":"#C62C02"}];function OQ({box:e,showCountData:t=!1}){function r(n){if(!n)return"#333";const o=_Q.find(a=>a[n]);return o?o[n]:n}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:r(r(e==null?void 0:e.color))},children:[" ",e==null?void 0:e.label]})}),t&&c.jsxs("span",{className:"text-3xs text-body-secondary",children:[e==null?void 0:e.count," Member",i_(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-radius-600 bg-surface-grey-subtle/40 px-0.5",children:c.jsxs("span",{className:"text-2xs leading-400 text-body-secondary",children:[e==null?void 0:e.percentage,"%"]})})})]})}const TQ=({rows:e,columns:t,boxData:r=[]})=>{let n="";return!r||(r==null?void 0:r.length)===0||(n=r.slice(0,t).reduce((a,i)=>{var f,d,h,p;const s=e===1?"OVERALL":"PERFORMANCE",l=((d=(f=i==null?void 0:i.scoreRange)==null?void 0:f[s])==null?void 0:d.maxScore)??0,u=((p=(h=i==null?void 0:i.scoreRange)==null?void 0:h[s])==null?void 0:p.minScore)??0;return`${a} minmax(20px, ${l-u}fr)`},"")),n},EQ=({rows:e,columns:t,boxData:r=[]})=>{if(e===1)return"1fr";let n="";return!r||(r==null?void 0:r.length)===0||(n=r.filter((a,i)=>i%t===0).reduce((a,i)=>{var f,d,h,p;const s="POTENTIAL",l=((d=(f=i==null?void 0:i.scoreRange)==null?void 0:f[s])==null?void 0:d.maxScore)??0,u=((p=(h=i==null?void 0:i.scoreRange)==null?void 0:h[s])==null?void 0:p.minScore)??0;return`${a} minmax(20px, ${l-u}fr)`},"")),n},$2=M.forwardRef(({rows:e=3,columns:t=3,spacing:r="1px",boxData:n=[],position:o="relative",margin:a="0",width:i="100%",left:s=0,top:l=0,mode:u="mini",showCountData:f=!1},d)=>{const h=M.useRef(null);return Or(h,d,"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:EQ({rows:e,columns:t,boxData:n}),gridTemplateColumns:TQ({rows:e,columns:t,boxData:n}),gap:r,height:"100%"},children:n==null?void 0:n.map((p,g)=>c.jsx("div",{style:{padding:"8px",backgroundColor:(p==null?void 0:p.color)??"#CFD7DF"},children:c.jsx(OQ,{box:p,showCountData:f})},p.label+p.color+g))}),u==="full"&&c.jsx("div",{className:"inline-flex w-64 shrink-0 grow-0"})]})});$2.displayName="GridChart";const dS=M.forwardRef(({directedLineChartProps:e,gridChartProps:t,mode:r="mini"},n)=>{const o=M.useRef(null);return Or(o,n,`${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($2,{...t,mode:r})}),c.jsxs("div",{className:"absolute h-full w-full",children:[c.jsx(G2,{...e,mode:r}),c.jsx("div",{})]})]})});dS.displayName="GridDirectedLineChart";const hS=({xValue:e,yValue:t,tooltipTitle:r,xAxisLabel:n,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(we,{tooltipTitle:r,showSideBySide:a,children:[c.jsx(we.Item,{label:n,value:u}),c.jsx(we.Item,{label:o,value:f}),c.jsx(we.Legend,{value:i,darkColor:s,lightColor:l})]})};hS.defaultProps={xValue:void 0,yValue:void 0};const pa={top:40,right:0,bottom:70,left:70},NQ={fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"},pS={fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"},kQ=({tickData:e,xAxisCharLimit:t,bandwidth:r})=>{const n=Math.floor(r/5);return c.jsx(fa,{textLabel:e.formattedValue||"",x:e.x,y:e.y,textStyles:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle",angle:r&&r<25?-45:0},axisCharLimit:t??n})},gS=M.forwardRef(({width:e,height:t,data:r,xAxisLabel:n="X",yAxisLabel:o="Y",tooltipTitle:a="",xAxisCharLimit:i},s)=>{const l=e-pa.left-pa.right,u=t-pa.top-pa.bottom,f=M.useMemo(()=>yp({range:[0,l],round:!0,domain:r.map(C=>C.x),padding:.4}),[l,r]),d=M.useMemo(()=>Gn({range:[u,0],round:!0,domain:[0,Math.max(...r.map(C=>C.y))]}),[u,r]),{showTooltip:h,hideTooltip:p,tooltipData:g,tooltipLeft:v=0,tooltipTop:m=0}=Ko(),{containerRef:y,TooltipInPortal:b}=Qo({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),w=M.useRef(null);return Or(w,s,`${n}-${o}-BarChart`),e<10?null:c.jsxs("div",{className:"rabbit-ds relative bg-white",ref:w,children:[c.jsx("svg",{width:e,height:t,ref:y,children:c.jsxs(rr,{top:pa.top,left:pa.left,children:[r.map((C,x)=>{const{x:_,y:T}=C,O=f.bandwidth(),P=u-(d(T)??0),A=f(_),N=u-P;return c.jsx(hw,{x:A,y:N,width:O,height:P,fill:"#E9F8FC",stroke:"#0D819F",strokeWidth:1,onMouseMove:k=>{const D=kb(k)||{x:0,y:0};h({tooltipData:{x:_,y:T},tooltipLeft:D.x,tooltipTop:D.y})},onMouseLeave:()=>p()},`bar-${_}-${x}`)}),c.jsx(sY,{top:u,scale:f,label:`${n} ➔`,labelProps:{...pS,dy:22},stroke:"#0D819F",hideTicks:!0,tickComponent:C=>c.jsx(kQ,{tickData:C,xAxisCharLimit:i,bandwidth:f.bandwidth()})}),c.jsx(nY,{scale:d,label:`${o} ➔`,labelProps:pS,stroke:"#0D819F",hideTicks:!0,tickLabelProps:{...NQ,dx:"-0.5em"},numTicks:5})]})}),g&&c.jsx(b,{top:m,left:v,unstyled:!0,applyPositionStyle:!0,children:c.jsx(hS,{xAxisLabel:n,yAxisLabel:o,xValue:g.x,yValue:g.y,showSideBySide:!0,tooltipTitle:a,legendValue:o,legendDarkColor:ke(0).dark,legendLightColor:ke(0).light})},Xt(0,4294967295))]})}),vS=M.forwardRef(({data:e,xAxisLabel:t,yAxisLabel:r,tooltipTitle:n,xAxisCharLimit:o},a)=>c.jsx(Br,{debounceTime:10,children:({width:i,height:s})=>c.jsx(gS,{ref:a,width:i,height:s,data:e,xAxisLabel:t,yAxisLabel:r,tooltipTitle:n,xAxisCharLimit:o})}));vS.displayName="BarChart",gS.displayName="BarChartBase";var ga="ToggleGroup",[mS,AJ]=Ke(ga,[_o]),yS=_o(),X2=M.forwardRef((e,t)=>{const{type:r,...n}=e;if(r==="single"){const o=n;return c.jsx(DQ,{...o,ref:t})}if(r==="multiple"){const o=n;return c.jsx(FQ,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${ga}\``)});X2.displayName=ga;var[bS,wS]=mS(ga),DQ=M.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[i,s]=Qe({prop:r,defaultProp:n,onChange:o});return c.jsx(bS,{scope:e.__scopeToggleGroup,type:"single",value:i?[i]:[],onItemActivate:s,onItemDeactivate:M.useCallback(()=>s(""),[s]),children:c.jsx(xS,{...a,ref:t})})}),FQ=M.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[i=[],s]=Qe({prop:r,defaultProp:n,onChange:o}),l=M.useCallback(f=>s((d=[])=>[...d,f]),[s]),u=M.useCallback(f=>s((d=[])=>d.filter(h=>h!==f)),[s]);return c.jsx(bS,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:l,onItemDeactivate:u,children:c.jsx(xS,{...a,ref:t})})});X2.displayName=ga;var[IQ,LQ]=mS(ga),xS=M.forwardRef((e,t)=>{const{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...l}=e,u=yS(r),f=tn(i),d={role:"group",dir:f,...l};return c.jsx(IQ,{scope:r,rovingFocus:o,disabled:n,children:o?c.jsx(i0,{asChild:!0,...u,orientation:a,dir:f,loop:s,children:c.jsx(ce.div,{...d,ref:t})}):c.jsx(ce.div,{...d,ref:t})})}),Hf="ToggleGroupItem",CS=M.forwardRef((e,t)=>{const r=wS(Hf,e.__scopeToggleGroup),n=LQ(Hf,e.__scopeToggleGroup),o=yS(e.__scopeToggleGroup),a=r.value.includes(e.value),i=n.disabled||e.disabled,s={...e,pressed:a,disabled:i},l=M.useRef(null);return n.rovingFocus?c.jsx(s0,{asChild:!0,...o,focusable:!i,active:a,ref:l,children:c.jsx(AS,{...s,ref:t})}):c.jsx(AS,{...s,ref:t})});CS.displayName=Hf;var AS=M.forwardRef((e,t)=>{const{__scopeToggleGroup:r,value:n,...o}=e,a=wS(Hf,r),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return c.jsx(td,{...s,...o,ref:t,onPressedChange:l=>{l?a.onItemActivate(n):a.onItemDeactivate(n)}})}),BQ=X2,zQ=CS;function qQ({children:e,...t}){return c.jsx(BQ,{className:"flex gap-2",...t,children:e})}function WQ({value:e,disabled:t,selected:r,icon:n,label:o,count:a,...i}){return c.jsx(zQ,{asChild:!0,value:e,...i,children:c.jsx("button",{"data-deer-btn":!0,type:"button",className:R("rabbit-ds inline-flex h-7 w-auto flex-col items-center justify-center rounded-radius-round border border-solid p-0 hover:cursor-pointer","data-[state=off]:border-card-grey-subtle data-[state=off]:bg-surface-grey-subtle data-[state=off]:text-body-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-radius-round px-4 py-1",children:[n?c.jsx(ye,{IconSVG:n,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]})]})})})}var va="NavigationMenu",[K2,MS,jQ]=Tn(va),[Q2,HQ,UQ]=Tn(va),[Z2,MJ]=Ke(va,[jQ,UQ]),[VQ,Gt]=Z2(va),[YQ,GQ]=Z2(va),SS=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,value:n,onValueChange:o,defaultValue:a,delayDuration:i=200,skipDelayDuration:s=300,orientation:l="horizontal",dir:u,...f}=e,[d,h]=S.useState(null),p=ve(t,P=>h(P)),g=tn(u),v=S.useRef(0),m=S.useRef(0),y=S.useRef(0),[b,w]=S.useState(!0),[C="",x]=Qe({prop:n,onChange:P=>{const A=P!=="",N=s>0;A?(window.clearTimeout(y.current),N&&w(!1)):(window.clearTimeout(y.current),y.current=window.setTimeout(()=>w(!0),s)),o==null||o(P)},defaultProp:a}),_=S.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>x(""),150)},[x]),T=S.useCallback(P=>{window.clearTimeout(m.current),x(P)},[x]),O=S.useCallback(P=>{C===P?window.clearTimeout(m.current):v.current=window.setTimeout(()=>{window.clearTimeout(m.current),x(P)},i)},[C,x,i]);return S.useEffect(()=>()=>{window.clearTimeout(v.current),window.clearTimeout(m.current),window.clearTimeout(y.current)},[]),c.jsx(_S,{scope:r,isRootMenu:!0,value:C,dir:g,orientation:l,rootNavigationMenu:d,onTriggerEnter:P=>{window.clearTimeout(v.current),b?O(P):T(P)},onTriggerLeave:()=>{window.clearTimeout(v.current),_()},onContentEnter:()=>window.clearTimeout(m.current),onContentLeave:_,onItemSelect:P=>{x(A=>A===P?"":P)},onItemDismiss:()=>x(""),children:c.jsx(ce.nav,{"aria-label":"Main","data-orientation":l,dir:g,...f,ref:p})})});SS.displayName=va;var PS="NavigationMenuSub",$Q=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,value:n,onValueChange:o,defaultValue:a,orientation:i="horizontal",...s}=e,l=Gt(PS,r),[u="",f]=Qe({prop:n,onChange:o,defaultProp:a});return c.jsx(_S,{scope:r,isRootMenu:!1,value:u,dir:l.dir,orientation:i,rootNavigationMenu:l.rootNavigationMenu,onTriggerEnter:d=>f(d),onItemSelect:d=>f(d),onItemDismiss:()=>f(""),children:c.jsx(ce.div,{"data-orientation":i,...s,ref:t})})});$Q.displayName=PS;var _S=e=>{const{scope:t,isRootMenu:r,rootNavigationMenu:n,dir:o,orientation:a,children:i,value:s,onItemSelect:l,onItemDismiss:u,onTriggerEnter:f,onTriggerLeave:d,onContentEnter:h,onContentLeave:p}=e,[g,v]=S.useState(null),[m,y]=S.useState(new Map),[b,w]=S.useState(null);return c.jsx(VQ,{scope:t,isRootMenu:r,rootNavigationMenu:n,value:s,previousValue:wa(s),baseId:ut(),dir:o,orientation:a,viewport:g,onViewportChange:v,indicatorTrack:b,onIndicatorTrackChange:w,onTriggerEnter:Ve(f),onTriggerLeave:Ve(d),onContentEnter:Ve(h),onContentLeave:Ve(p),onItemSelect:Ve(l),onItemDismiss:Ve(u),onViewportContentChange:S.useCallback((C,x)=>{y(_=>(_.set(C,x),new Map(_)))},[]),onViewportContentRemove:S.useCallback(C=>{y(x=>x.has(C)?(x.delete(C),new Map(x)):x)},[]),children:c.jsx(K2.Provider,{scope:t,children:c.jsx(YQ,{scope:t,items:m,children:i})})})},OS="NavigationMenuList",TS=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...n}=e,o=Gt(OS,r),a=c.jsx(ce.ul,{"data-orientation":o.orientation,...n,ref:t});return c.jsx(ce.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:c.jsx(K2.Slot,{scope:r,children:o.isRootMenu?c.jsx(zS,{asChild:!0,children:a}):a})})});TS.displayName=OS;var ES="NavigationMenuItem",[XQ,NS]=Z2(ES),kS=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,value:n,...o}=e,a=ut(),i=n||a||"LEGACY_REACT_AUTO_VALUE",s=S.useRef(null),l=S.useRef(null),u=S.useRef(null),f=S.useRef(()=>{}),d=S.useRef(!1),h=S.useCallback((g="start")=>{if(s.current){f.current();const v=tg(s.current);v.length&&rg(g==="start"?v:v.reverse())}},[]),p=S.useCallback(()=>{if(s.current){const g=tg(s.current);g.length&&(f.current=nZ(g))}},[]);return c.jsx(XQ,{scope:r,value:i,triggerRef:l,contentRef:s,focusProxyRef:u,wasEscapeCloseRef:d,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:p,onContentFocusOutside:p,children:c.jsx(ce.li,{...o,ref:t})})});kS.displayName=ES;var J2="NavigationMenuTrigger",DS=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,disabled:n,...o}=e,a=Gt(J2,e.__scopeNavigationMenu),i=NS(J2,e.__scopeNavigationMenu),s=S.useRef(null),l=ve(s,i.triggerRef,t),u=jS(a.baseId,i.value),f=HS(a.baseId,i.value),d=S.useRef(!1),h=S.useRef(!1),p=i.value===a.value;return c.jsxs(c.Fragment,{children:[c.jsx(K2.ItemSlot,{scope:r,value:i.value,children:c.jsx(WS,{asChild:!0,children:c.jsx(ce.button,{id:u,disabled:n,"data-disabled":n?"":void 0,"data-state":og(p),"aria-expanded":p,"aria-controls":f,...o,ref:l,onPointerEnter:ne(e.onPointerEnter,()=>{h.current=!1,i.wasEscapeCloseRef.current=!1}),onPointerMove:ne(e.onPointerMove,Vf(()=>{n||h.current||i.wasEscapeCloseRef.current||d.current||(a.onTriggerEnter(i.value),d.current=!0)})),onPointerLeave:ne(e.onPointerLeave,Vf(()=>{n||(a.onTriggerLeave(),d.current=!1)})),onClick:ne(e.onClick,()=>{a.onItemSelect(i.value),h.current=p}),onKeyDown:ne(e.onKeyDown,g=>{const m={horizontal:"ArrowDown",vertical:a.dir==="rtl"?"ArrowLeft":"ArrowRight"}[a.orientation];p&&g.key===m&&(i.onEntryKeyDown(),g.preventDefault())})})})}),p&&c.jsxs(c.Fragment,{children:[c.jsx(m4,{"aria-hidden":!0,tabIndex:0,ref:i.focusProxyRef,onFocus:g=>{const v=i.contentRef.current,m=g.relatedTarget,y=m===s.current,b=v==null?void 0:v.contains(m);(y||!b)&&i.onFocusProxyEnter(y?"start":"end")}}),a.viewport&&c.jsx("span",{"aria-owns":f})]})]})});DS.displayName=J2;var KQ="NavigationMenuLink",FS="navigationMenu.linkSelect",IS=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,active:n,onSelect:o,...a}=e;return c.jsx(WS,{asChild:!0,children:c.jsx(ce.a,{"data-active":n?"":void 0,"aria-current":n?"page":void 0,...a,ref:t,onClick:ne(e.onClick,i=>{const s=i.target,l=new CustomEvent(FS,{bubbles:!0,cancelable:!0});if(s.addEventListener(FS,u=>o==null?void 0:o(u),{once:!0}),es(s,l),!l.defaultPrevented&&!i.metaKey){const u=new CustomEvent(Uf,{bubbles:!0,cancelable:!0});es(s,u)}},{checkForDefaultPrevented:!1})})})});IS.displayName=KQ;var R2="NavigationMenuIndicator",QQ=S.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Gt(R2,e.__scopeNavigationMenu),a=!!o.value;return o.indicatorTrack?uo.createPortal(c.jsx(Re,{present:r||a,children:c.jsx(ZQ,{...n,ref:t})}),o.indicatorTrack):null});QQ.displayName=R2;var ZQ=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...n}=e,o=Gt(R2,r),a=MS(r),[i,s]=S.useState(null),[l,u]=S.useState(null),f=o.orientation==="horizontal",d=!!o.value;S.useEffect(()=>{var v;const g=(v=a().find(m=>m.value===o.value))==null?void 0:v.ref.current;g&&s(g)},[a,o.value]);const h=()=>{i&&u({size:f?i.offsetWidth:i.offsetHeight,offset:f?i.offsetLeft:i.offsetTop})};return ng(i,h),ng(o.indicatorTrack,h),l?c.jsx(ce.div,{"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":o.orientation,...n,ref:t,style:{position:"absolute",...f?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...n.style}}):null}),ma="NavigationMenuContent",LS=S.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Gt(ma,e.__scopeNavigationMenu),a=NS(ma,e.__scopeNavigationMenu),i=ve(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,...n};return o.viewport?c.jsx(JQ,{forceMount:r,...l,ref:i}):c.jsx(Re,{present:r||s,children:c.jsx(BS,{"data-state":og(s),...l,ref:i,onPointerEnter:ne(e.onPointerEnter,o.onContentEnter),onPointerLeave:ne(e.onPointerLeave,Vf(o.onContentLeave)),style:{pointerEvents:!s&&o.isRootMenu?"none":void 0,...l.style}})})});LS.displayName=ma;var JQ=S.forwardRef((e,t)=>{const r=Gt(ma,e.__scopeNavigationMenu),{onViewportContentChange:n,onViewportContentRemove:o}=r;return Ye(()=>{n(e.value,{ref:t,...e})},[e,t,n]),Ye(()=>()=>o(e.value),[e.value,o]),null}),Uf="navigationMenu.rootContentDismiss",BS=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,value:n,triggerRef:o,focusProxyRef:a,wasEscapeCloseRef:i,onRootContentClose:s,onContentFocusOutside:l,...u}=e,f=Gt(ma,r),d=S.useRef(null),h=ve(d,t),p=jS(f.baseId,n),g=HS(f.baseId,n),v=MS(r),m=S.useRef(null),{onItemDismiss:y}=f;S.useEffect(()=>{const w=d.current;if(f.isRootMenu&&w){const C=()=>{var x;y(),s(),w.contains(document.activeElement)&&((x=o.current)==null||x.focus())};return w.addEventListener(Uf,C),()=>w.removeEventListener(Uf,C)}},[f.isRootMenu,e.value,o,y,s]);const b=S.useMemo(()=>{const C=v().map(A=>A.value);f.dir==="rtl"&&C.reverse();const x=C.indexOf(f.value),_=C.indexOf(f.previousValue),T=n===f.value,O=_===C.indexOf(n);if(!T&&!O)return m.current;const P=(()=>{if(x!==_){if(T&&_!==-1)return x>_?"from-end":"from-start";if(O&&x!==-1)return x>_?"to-start":"to-end"}return null})();return m.current=P,P},[f.previousValue,f.value,f.dir,v,n]);return c.jsx(zS,{asChild:!0,children:c.jsx(En,{id:g,"aria-labelledby":p,"data-motion":b,"data-orientation":f.orientation,...u,ref:h,disableOutsidePointerEvents:!1,onDismiss:()=>{var C;const w=new Event(Uf,{bubbles:!0,cancelable:!0});(C=d.current)==null||C.dispatchEvent(w)},onFocusOutside:ne(e.onFocusOutside,w=>{var x;l();const C=w.target;(x=f.rootNavigationMenu)!=null&&x.contains(C)&&w.preventDefault()}),onPointerDownOutside:ne(e.onPointerDownOutside,w=>{var T;const C=w.target,x=v().some(O=>{var P;return(P=O.ref.current)==null?void 0:P.contains(C)}),_=f.isRootMenu&&((T=f.viewport)==null?void 0:T.contains(C));(x||_||!f.isRootMenu)&&w.preventDefault()}),onKeyDown:ne(e.onKeyDown,w=>{var _;const C=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!C){const T=tg(w.currentTarget),O=document.activeElement,P=T.findIndex(k=>k===O),N=w.shiftKey?T.slice(0,P).reverse():T.slice(P+1,T.length);rg(N)?w.preventDefault():(_=a.current)==null||_.focus()}}),onEscapeKeyDown:ne(e.onEscapeKeyDown,w=>{i.current=!0})})})}),eg="NavigationMenuViewport",RQ=S.forwardRef((e,t)=>{const{forceMount:r,...n}=e,a=!!Gt(eg,e.__scopeNavigationMenu).value;return c.jsx(Re,{present:r||a,children:c.jsx(eZ,{...n,ref:t})})});RQ.displayName=eg;var eZ=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,children:n,...o}=e,a=Gt(eg,r),i=ve(t,a.onViewportChange),s=GQ(ma,e.__scopeNavigationMenu),[l,u]=S.useState(null),[f,d]=S.useState(null),h=l?(l==null?void 0:l.width)+"px":void 0,p=l?(l==null?void 0:l.height)+"px":void 0,g=!!a.value,v=g?a.value:a.previousValue;return ng(f,()=>{f&&u({width:f.offsetWidth,height:f.offsetHeight})}),c.jsx(ce.div,{"data-state":og(g),"data-orientation":a.orientation,...o,ref:i,style:{pointerEvents:!g&&a.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":h,"--radix-navigation-menu-viewport-height":p,...o.style},onPointerEnter:ne(e.onPointerEnter,a.onContentEnter),onPointerLeave:ne(e.onPointerLeave,Vf(a.onContentLeave)),children:Array.from(s.items).map(([y,{ref:b,forceMount:w,...C}])=>{const x=v===y;return c.jsx(Re,{present:w||x,children:c.jsx(BS,{...C,ref:ba(b,_=>{x&&_&&d(_)})})},y)})})}),tZ="FocusGroup",zS=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...n}=e,o=Gt(tZ,r);return c.jsx(Q2.Provider,{scope:r,children:c.jsx(Q2.Slot,{scope:r,children:c.jsx(ce.div,{dir:o.dir,...n,ref:t})})})}),qS=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],rZ="FocusGroupItem",WS=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...n}=e,o=HQ(r),a=Gt(rZ,r);return c.jsx(Q2.ItemSlot,{scope:r,children:c.jsx(ce.button,{...n,ref:t,onKeyDown:ne(e.onKeyDown,i=>{if(["Home","End",...qS].includes(i.key)){let l=o().map(d=>d.ref.current);if([a.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(i.key)&&l.reverse(),qS.includes(i.key)){const d=l.indexOf(i.currentTarget);l=l.slice(d+1)}setTimeout(()=>rg(l)),i.preventDefault()}})})})});function tg(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function rg(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}function nZ(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const r=t.dataset.tabindex;t.setAttribute("tabindex",r)})}}function ng(e,t){const r=Ve(t);Ye(()=>{let n=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(e),()=>{window.cancelAnimationFrame(n),o.unobserve(e)}}},[e,r])}function og(e){return e?"open":"closed"}function jS(e,t){return`${e}-trigger-${t}`}function HS(e,t){return`${e}-content-${t}`}function Vf(e){return t=>t.pointerType==="mouse"?e(t):void 0}var oZ=SS,aZ=TS,iZ=kS,sZ=DS,US=IS,lZ=LS;const cZ=Be(["rabbit-ds h-full w-full px-3 py-2 [&>*:first-child]:h-full"],{variants:{variant:{default:""},defaultVariant:{variant:"default"}}});function uZ(){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 VS=M.forwardRef(({className:e,children:t,...r},n)=>c.jsxs("div",{className:"rabbit-ds relative h-screen w-20",children:[c.jsx("div",{className:"absolute h-full w-full",children:c.jsx(uZ,{})}),c.jsx(oZ,{className:R(cZ({className:e})),orientation:"vertical",ref:n,...r,children:c.jsx(aZ,{className:"m-0 flex h-full flex-col p-0",children:t})})]}));VS.displayName="LeftNav";const ag=M.forwardRef(({children:e,asChild:t=!1,...r},n)=>{const o=t?dr:"div";return c.jsx(iZ,{asChild:!0,children:c.jsx(o,{ref:n,className:"rabbit-ds",...r,children:e})})});ag.displayName="LeftNavItem",ag.defaultProps={asChild:!1};const fZ=Be(["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"}}}),YS=M.forwardRef(({children:e,align:t,...r},n)=>c.jsx("div",{ref:n,className:R(fZ({variant:t})),...r,children:e}));YS.displayName="LeftNavItem";const GS=M.forwardRef((e,t)=>c.jsx(US,{ref:t,...e,className:"rabbit-ds z-20 flex size-1400 h-1400 w-1400 cursor-pointer items-center justify-center rounded-radius-100 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"})})]})]})}));GS.displayName="LeftNavHome";const dZ=Be(["rabbit-ds relative flex h-14 w-14 items-center justify-center rounded-radius-200 font-sans text-[10px] text-body-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"}}),hZ=Be("",{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"}}),$S=M.forwardRef(({className:e,variant:t,badgeText:r,icon:n,iconSize:o,isActive:a=!1,children:i,...s},l)=>c.jsx("div",{className:"rabbit-ds",children:c.jsxs(US,{"data-deer-btn":!0,className:R(dZ({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(ye,{IconSVG:n,size:"large"}),t==="withNotification"&&c.jsxs("div",{className:"absolute left-3 flex h-5 w-6 items-center justify-center rounded-radius-300 bg-functional-warn px-2 text-xs text-white",children:[c.jsx("span",{className:"sr-only",children:"Notification"}),r]})]}),c.jsx("div",{className:R(hZ({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(ye,{IconSVG:Ig,size:"large"})})]})}));$S.displayName="LeftNavButton";const pZ=Be("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 gZ({className:e,isCollapsed:t,...r}){return c.jsx("button",{"data-deer-btn":!0,type:"button",className:R(pZ({variant:t?"collapsed":"default"}),e),...r,children:c.jsx(ye,{IconSVG:Eg,className:t?"rotate-180":""})})}const XS=M.createContext({isOpen:!1,toggleOpen:()=>{}}),vZ=()=>M.useContext(XS);function KS({...e}){const{isOpen:t,toggleOpen:r}=vZ();return c.jsx(gZ,{className:`absolute right-0 top-5 z-20 ${t?"":"translate-x-full"}`,isCollapsed:!t,onClick:r,...e})}function mZ(e){const{children:t,defaultOpen:r=!1,showCollapseButton:n=!0}=e,o=e.open!==void 0,[a,i]=M.useState(r),s=M.useCallback(()=>{i(d=>!d)},[]),l=o?e.open:a,u=o?e.onToggle:s,f=M.useMemo(()=>({isOpen:l,toggleOpen:u}),[l,u]);return c.jsx(XS.Provider,{value:f,children:c.jsxs("div",{className:R("rabbit-ds relative h-screen transition-all",l?"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:[n&&c.jsx(KS,{}),c.jsx("div",{className:l?"h-full p-5":"invisible h-0 w-0 scale-0 overflow-hidden opacity-0",children:t})]})})}function yZ({children:e}){return c.jsx("div",{className:R("nav-group flex flex-col gap-1","after:my-4 after:h-[1px] after:w-full after:bg-accent last:after:hidden"),children:e})}function bZ({children:e}){return c.jsx("div",{className:"p-2 text-xs font-semibold text-body-secondary",children:e})}function wZ({children:e,...t}){return c.jsx(v4,{...t,children:e})}const xZ=Be("max-w-[28%] shrink-0",{variants:{orientation:{horizontal:"ml-2",vertical:"mt-2 w-full [&>div]:w-full [&_button]:w-full"}},defaultVariants:{orientation:"horizontal"}});function CZ({className:e,orientation:t,...r}){return c.jsx("div",{className:xZ({orientation:t}),children:c.jsx(St,{className:R(e,"h-auto min-h-10"),variant:"transparentOutline",...r})})}const AZ={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"}},MZ=M.forwardRef(function({title:t,achieved:r,status:n,explanation:o,truncateExplanation:a=!0},i){const s=AZ[n];return c.jsx("div",{ref:i,className:R("rabbit-ds","mr-auto",a?"w-[70%]":""),children:c.jsxs("div",{className:"flex w-full flex-col gap-1",children:[c.jsxs("div",{className:"mt-1 flex items-center",children:[c.jsx(ye,{"aria-hidden":!0,size:"small",className:"text-body-secondary",IconSVG:Fg}),c.jsx("div",{className:"ml-1 text-sm",children:t})]}),c.jsxs("div",{className:"my-1 flex items-end gap-[18px]",children:[c.jsxs("div",{className:"flex flex-col",children:[c.jsx("span",{className:"text-xs text-body-secondary",children:"Achieved"}),c.jsxs("span",{className:R(s.colorScheme,"!bg-transparent text-3xl font-semibold"),children:[r,"%"]})]}),c.jsx(wy,{colorScheme:s.colorScheme,className:"mb-1",children:s.label})]}),o&&c.jsxs("div",{className:R("flex w-full gap-1",a?"items-center":"items-start"),children:[c.jsx(ye,{"aria-hidden":!0,size:"small",className:"text-body-secondary",IconSVG:On}),c.jsx("span",{className:R("w-full text-xs text-body-secondary",a?"truncate":""),children:o})]})]})})});function SZ({employeeName:e,employeeProfilePhoto:t,reviewCycleName:r,reviewType:n,dueBy:o}){return c.jsx("div",{className:"rabbit-ds mr-auto",children:c.jsxs("div",{className:"flex gap-2",children:[c.jsx(pr,{size:"xl",children:c.jsx(gr,{src:t,alt:"Avatar"})}),c.jsxs("div",{className:"flex flex-col items-start text-sm",children:[c.jsxs("div",{className:"flex w-full gap-1",children:[c.jsxs("span",{className:"font-semibold",children:[e," • "]}),c.jsx("span",{className:"text-sm text-body-secondary",children:n})]}),c.jsxs("div",{className:"flex w-full gap-1",children:[c.jsxs("span",{className:"text-body-secondary",children:[r," • "]}),c.jsxs("span",{className:"text-body-secondary",children:["Due by ",o]})]})]})]})})}const QS=M.forwardRef(({employeeName:e,employeeProfilePhoto:t,designation:r,explanation:n,truncateExplanation:o=!0},a)=>c.jsx("div",{ref:a,className:R("rabbit-ds mr-auto",o?"w-[65%]":""),children:c.jsxs("div",{className:"flex w-full gap-2",children:[c.jsx(pr,{size:"xl",children:c.jsx(gr,{src:t,alt:"Avatar"})}),c.jsxs("div",{className:R("flex w-full flex-col items-start text-sm","justify-center"),children:[c.jsxs("div",{className:"flex w-full gap-1",children:[c.jsxs("span",{className:"font-semibold",children:[e," • "]}),c.jsx("span",{className:"text-sm text-body-secondary",children:r})]}),n&&c.jsxs("div",{className:R("mt-1 flex w-full gap-1",o?"items-center":"items-start"),children:[c.jsx(ye,{"aria-hidden":!0,size:"small",className:"text-body-secondary",IconSVG:On}),c.jsx("span",{className:R("w-full text-xs text-body-secondary",o?"truncate":""),children:n})]})]})]})}));QS.displayName="SharePraiseNudgeData";const ZS=M.forwardRef(({employeeName:e,employeeProfilePhoto:t,designation:r,requestReason:n,truncateExplanation:o=!0},a)=>c.jsx("div",{ref:a,className:R("rabbit-ds mr-auto",o?"w-[65%]":""),children:c.jsxs("div",{className:"flex w-full gap-2",children:[c.jsx(pr,{size:"xl",children:c.jsx(gr,{src:t,alt:"Avatar"})}),c.jsxs("div",{className:"flex w-full flex-col items-start text-sm",children:[c.jsxs("div",{className:"flex w-full gap-1",children:[c.jsxs("span",{className:"font-semibold",children:[e," • "]}),c.jsx("span",{className:"text-sm text-body-secondary",children:r})]}),c.jsxs("div",{className:R("mt-1 flex w-full gap-1",o?"items-center":"items-start"),children:[c.jsx(ye,{"aria-hidden":!0,size:"small",className:"text-body-secondary",IconSVG:On}),c.jsx("span",{className:R("w-full text-xs text-body-secondary",o?"truncate":""),children:n})]})]})]})}));ZS.displayName="RequestedFeedbackNudgeData";const PZ=Be("",{variants:{orientation:{horizontal:"flex-row",vertical:"min-w-max flex-col"}},defaultVariants:{orientation:"horizontal"}});function _Z({className:e,children:t,orientation:r}){return c.jsx("div",{className:R("rabbit-ds","flex w-full items-center rounded-radius-200 border border-solid border-[#F3F5F8] bg-[#FDFDFD] p-2",PZ({orientation:r}),e),children:t})}function OZ({nudgeCardList:e,title:t,imgSrc:r,description:n,pageSize:o=3,kebabMenu:a,variant:i="default"}){const[s,l]=M.useState(1),u=e.slice(0,o*s),f=e.length>o,d=e.length===u.length,h=i==="informational",p=()=>{l(g=>d?1:g+1)};return c.jsxs("div",{className:R("rabbit-ds","flex w-full flex-col items-start gap-[7px] rounded-radius-200 bg-white px-4 py-3 shadow-[0px_0px_2px_0px_rgba(0,0,0,0.24)]"),children:[c.jsxs("div",{className:"flex w-full items-start justify-between",children:[c.jsxs("div",{className:"mt-1 flex items-center gap-4",children:[r?c.jsx(pr,{className:"h-16 w-16",children:c.jsx(gr,{src:r,alt:t})}):null,h?c.jsx("div",{className:"flex flex-col gap-[7px]",children:u}):c.jsxs("div",{className:"flex flex-col",children:[c.jsx("span",{className:"text-sm font-semibold",children:t}),c.jsx("span",{className:"text-sm",children:n})]})]}),a]}),!h&&u,f&&c.jsx("div",{className:"mx-auto",children:c.jsxs(St,{variant:"text",onClick:p,iconRight:d?Og:fo,children:["View ",d?"less":"more"]})})]})}function TZ({surveyName:e,date:t}){return c.jsx("div",{className:"rabbit-ds mr-auto",children:c.jsxs("div",{className:"flex gap-2",children:[c.jsx(ye,{IconSVG:zg}),c.jsxs("div",{className:"flex flex-col items-start text-sm",children:[c.jsx("span",{className:"font-semibold",children:e}),c.jsx(Ud,{date:t,showRelativeTime:!0})]})]})})}const JS=M.forwardRef(function({employeeProfilePhoto:t,employeeName:r,scheduleDate:n,duration:o,subTitle:a,explanation:i,truncateExplanation:s=!0},l){return c.jsx("div",{ref:l,className:R("rabbit-ds","mr-auto",s?"w-[70%]":""),children:c.jsxs("div",{className:R("flex items-center gap-2 text-sm","flex-row [&>div]:items-start"),children:[c.jsx(pr,{size:"xl",children:c.jsx(gr,{src:t,alt:r})}),c.jsxs("div",{className:"flex w-full flex-col items-center gap-1",children:[c.jsxs("div",{className:"flex items-center gap-1",children:[c.jsxs("span",{className:"font-semibold",children:[r," • "]}),n?c.jsx(Ud,{date:n,duration:o,timeFormat:"HH:mm a",showTime:!0,className:"text-body-secondary"}):c.jsx("span",{className:"font-semibold",style:{color:"#C62C02"},children:a})]}),i&&c.jsxs("div",{className:R("flex w-[90%] gap-1",s?"items-center":"items-start"),children:[c.jsx(ye,{"aria-hidden":!0,size:"small",className:"text-body-secondary",IconSVG:On}),c.jsx("span",{className:R("w-full text-xs text-body-secondary",s?"truncate":""),children:i})]})]})]})})});JS.defaultProps={subTitle:void 0,scheduleDate:void 0};function EZ({label:e,onClick:t,customCompProps:r}){const[n,o]=M.useState(1);return c.jsxs(b0,{children:[c.jsx(Ks,{children:c.jsx("span",{children:e})}),c.jsx(y0,{children:c.jsx(Qs,{children:c.jsx(Oo,{children:c.jsxs("div",{className:"flex flex-col p-2",children:[c.jsx(os,{htmlFor:r==null?void 0:r.label,className:"text-xs",children:r==null?void 0:r.label}),c.jsx(ns,{id:r==null?void 0:r.label,className:"mt-2 !min-w-[160px]",type:"number",value:n,onChange:a=>o(a.target.valueAsNumber),min:1}),c.jsx("div",{className:"flex justify-end",children:c.jsx(St,{className:"mt-2",onClick:()=>t(n),disabled:n<1||Number.isNaN(n),children:r==null?void 0:r.buttonText})})]})})})})]})}function NZ({options:e}){const[t,r]=M.useState(!1),n=(o,a)=>{o(a),r(!1)};return c.jsxs(Gs,{open:t,children:[c.jsx($s,{asChild:!0,onClick:()=>r(!0),children:c.jsx(St,{variant:"text",size:"smallIcon",children:c.jsx(ye,{IconSVG:Dg})})}),c.jsx(ja,{className:"w-56",onFocusOutside:()=>r(!1),onPointerDownOutside:()=>r(!1),children:c.jsx(Oo,{children:e.map(({type:o,onClick:a,label:i,customCompProps:s})=>!o||o==="default"?c.jsx(Ha,{onClick:()=>n(a),children:c.jsx("span",{children:i})},i):c.jsx(EZ,{onClick:l=>n(a,l),label:i,customCompProps:s},i))})})]})}const RS=Ha,eP=Oo,tP=Xs,rP=Rs,nP=Zs,oP=Js,aP=M.forwardRef(({className:e,children:t,align:r="end",...n},o)=>c.jsx(ja,{ref:o,align:r,...n,children:t}));aP.displayName="SplitButtonDropdownContent";const kZ=Be("",{variants:{size:{normal:"icon",small:"smallIcon",icon:"icon",smallIcon:"smallIcon",nav:"icon"}},defaultVariants:{size:"normal"}});function DZ({children:e,size:t,status:r,variant:n,...o}){return c.jsx("div",{className:"rabbit-ds flex flex-row",children:c.jsxs(Gs,{children:[c.jsx(St,{variant:n,status:r,size:t,...o,className:"rounded-r-none",children:e}),c.jsx($s,{asChild:!0,children:c.jsx(St,{variant:n,status:r,className:"rounded-l-none border-l-0",size:kZ({size:t}),iconLeft:fo})})]})})}RS.displayName="SplitButtonDropdownItem",eP.displayName="SplitButtonDropdownGroup",tP.displayName="SplitButtonDropdownRadioGroup",rP.displayName="SplitButtonDropdownLabel",nP.displayName="SplitButtonDropdownCheckboxItem",oP.displayName="SplitButtonDropdownRadioItem";const iP=({bold:e=!1,xbold:t=!1,color:r="text-body-primary"})=>R("rabbit-ds-text",t?"font-bold":e?"font-semibold":"font-normal",r),FZ=({children:e,className:t,...r})=>c.jsx("h3",{className:R("text-350sm leading-500",iP(r),t),children:e}),IZ=({children:e,className:t,...r})=>c.jsx("p",{className:R("text-300sm leading-400",iP(r),t),children:e}),sP=M.forwardRef(({children:e,className:t,...r},n)=>c.jsx("div",{className:R("rabbit-ds flex gap-200 p-300",t),...r,ref:n,children:e}));sP.displayName="ListItemComp";const lP=M.forwardRef(({children:e,className:t,...r},n)=>c.jsx("div",{className:R("flex shrink-0 items-center gap-200",t),...r,ref:n,children:e}));lP.displayName="ListItemCompLeading";const cP=M.forwardRef(({children:e,className:t,...r},n)=>c.jsx("div",{className:R("flex grow flex-col justify-center",t),...r,ref:n,children:e}));cP.displayName="ListItemCompContent";const uP=({children:e,className:t,...r})=>c.jsx(FZ,{bold:!0,className:R("text-body-primary",t),...r,children:e});uP.displayName="ListItemCompTitle";const fP=({children:e,className:t,...r})=>c.jsx(IZ,{className:R("text-body-secondary",t),...r,children:e});fP.displayName="ListItemCompDescription";const dP=M.forwardRef(({children:e,className:t,...r},n)=>c.jsx("div",{className:R("flex shrink-0 items-center gap-200",t),...r,ref:n,children:e}));dP.displayName="ListItemCompAction";const LZ=({maxRating:e=5,initialRating:t=0,onRatingChange:r,variant:n="number",customRatings:o})=>{const[a,i]=M.useState(t),s=u=>{i(u),r&&r(u)},l=u=>{if(o){const f=o.find(d=>d.value===u);if(f)return f.svg?f.svg:f.value}switch(n){case"star":return"★";case"emoji":return"😊";case"rate":return`${u}/10`;case"number":default:return u}};return c.jsx("div",{className:"flex gap-1",children:Array.from({length:e},(u,f)=>f+1).map(u=>c.jsx(St,{className:R(a===u?"border-[2px] border-solid border-button-primary-active bg-surface-alpha-primary text-active hover:bg-surface-alpha-primary focus:border-button-primary-active focus:bg-surface-alpha-primary":"border-card-neutral-moderate text-body-primary hover:border-card-grey-intense hover:bg-surface-grey-subtle hover:text-body-primary","h-[40px] w-[40px] border-[2px] border-solid"),variant:a===u?"filled":"outline",onClick:()=>s(u),children:l(u)},u))})};j.AICard=kv,j.Accordion=Xv,j.AccordionContent=Zv,j.AccordionItem=Kv,j.AccordionTrigger=Qv,j.Add=s_,j.AddPerson=l_,j.Alert=Jv,j.AlertDescription=em,j.AlertDialogAction=d3,j.AlertDialogCancel=f3,j.AlertDialogComponent=nN,j.AlertDialogContainer=c3,j.AlertDialogContent=Ld,j.AlertDialogDescription=zd,j.AlertDialogOverlay=Id,j.AlertDialogPortal=u3,j.AlertDialogTitle=Bd,j.AlertDialogTrigger=h3,j.AlertIcon=Rv,j.Avatar=pr,j.AvatarBadge=el,j.AvatarFallback=Ms,j.AvatarGroup=U0,j.AvatarImage=gr,j.BarChart=vS,j.Breadcrumb=ky,j.BreadcrumbEllipsis=zy,j.BreadcrumbItem=Fy,j.BreadcrumbLink=Iy,j.BreadcrumbList=Dy,j.BreadcrumbPage=Ly,j.BreadcrumbSeparator=By,j.Button=St,j.Calendar=c_,j.Caption=Wd,j.Card=Pa,j.CardContent=pd,j.CardDescription=Mv,j.CardHeader=Av,j.CardKPI=JL,j.CardTitle=hd,j.Carousel=az,j.CarouselContainer=iz,j.CarouselNextButton=lz,j.CarouselPrevButton=sz,j.Channel=u_,j.Check=Aa,j.CheckCircleOutline=Sg,j.Checkbox=Ma,j.ChevronDown=fo,j.ChevronLeft=f_,j.ChevronLeftCircle=Pg,j.ChevronRight=rs,j.ChevronRightCircle=_g,j.ChevronUp=Og,j.Chip=bO,j.ChipGroup=qQ,j.ChipGroupItem=WQ,j.CircleChevronRight=d_,j.Close=Tg,j.CollapseNavigation=Eg,j.CollapsibleCard=Sv,j.ColumnFilter=Ng,j.ColumnFilterCheck=qg,j.Company=h_,j.CompanySettings=p_,j.CompetenciesThin=g_,j.Country=v_,j.Cross=m_,j.Currency=y_,j.DateTime=Ud,j.Delete=b_,j.Develop=w_,j.DirectedLineChart=G2,j.DisplayName=x_,j.DonutChart=RM,j.Download=C_,j.Dropdown=Gs,j.DropdownCheckboxItem=Zs,j.DropdownChip=p4,j.DropdownContent=ja,j.DropdownGroup=Oo,j.DropdownItem=Ha,j.DropdownLabel=Rs,j.DropdownPortal=y0,j.DropdownRadioGroup=Xs,j.DropdownRadioItem=Js,j.DropdownSeparator=w0,j.DropdownSub=b0,j.DropdownSubContent=Qs,j.DropdownSubTrigger=Ks,j.DropdownTrigger=$s,j.EmployeeIdBadge=A_,j.Engagement=M_,j.EngagementNudgeData=TZ,j.ErrorOutline=ed,j.ExpandDown=S_,j.ExpandRight=kg,j.Feedback=P_,j.Gear=__,j.Goal=O_,j.GoalFrequency=T_,j.GoalsCollaborators=E_,j.GoalsNudgeData=MZ,j.GoalsThin=N_,j.GridChart=$2,j.GridDirectedLineChart=dS,j.Help=k_,j.Help2=D_,j.HistogramChart=QM,j.HistoryComments=F_,j.Home=I_,j.HoverCard=$L,j.HoverCardContent=Gy,j.HoverCardPortal=KL,j.HoverCardTrigger=XL,j.Icon=ye,j.Info=L_,j.InfoWorkZero=On,j.Initiatives=B_,j.Input=ns,j.KebabMenu=Dg,j.KnowTeamNudgeData=JS,j.Label=os,j.LeftNav=VS,j.LeftNavButton=$S,j.LeftNavGroup=YS,j.LeftNavHome=GS,j.LeftNavItem=ag,j.LeftNavItemContent=lZ,j.LeftNavItemDropdown=Gs,j.LeftNavItemDropdownCheckboxItem=Zs,j.LeftNavItemDropdownContent=ja,j.LeftNavItemDropdownGroup=Oo,j.LeftNavItemDropdownItem=Ha,j.LeftNavItemDropdownLabel=Rs,j.LeftNavItemDropdownPortal=y0,j.LeftNavItemDropdownRadioGroup=Xs,j.LeftNavItemDropdownRadioItem=Js,j.LeftNavItemDropdownSeparator=w0,j.LeftNavItemDropdownSub=b0,j.LeftNavItemDropdownSubContent=Qs,j.LeftNavItemDropdownSubTrigger=Ks,j.LeftNavItemDropdownTrigger=$s,j.LeftNavItemTrigger=sZ,j.LineChart=LM,j.ListItem=v4,j.ListItemComp=sP,j.ListItemCompAction=dP,j.ListItemCompContent=cP,j.ListItemCompDescription=fP,j.ListItemCompLeading=lP,j.ListItemCompTitle=uP,j.ListItemIcon=JF,j.ListItemText=QF,j.Logout=z_,j.Manager=q_,j.ManagerWithBorder=W_,j.MeshLogo=Wg,j.MeshMaven=uO,j.MeshMavenAsk=fO,j.MeshMavenDisabledThumbsUp=dO,j.MeshMavenGlassesOnDefault=hO,j.MeshMavenWithHording=pO,j.MeshMavenWithOrangeBulb=gO,j.MeshMavenWithThumbsUp=vO,j.Metric=Qy,j.MetricCard=Ky,j.MetricCardStatText=G0,j.MetricCardText=pl,j.MetricCardTitle=Zy,j.Milestone=j_,j.MyOneOnOne=H_,j.MySettings=U_,j.NavCollapseButtonL2=KS,j.NavGroupL2=yZ,j.NavGroupTitleL2=bZ,j.NavItemL2=wZ,j.NavL2=mZ,j.NewPassword=V_,j.Notifications=Y_,j.NudgeAction=CZ,j.NudgeCard=OZ,j.NudgeCardItem=_Z,j.NudgeKebabMenu=NZ,j.Objective=Fg,j.OneOnOne=G_,j.OneOnOneThin=$_,j.Overflow=Ig,j.Peer=X_,j.Person=K_,j.Product=Q_,j.ProfileCard=$0,j.ProfileCardItem=Jy,j.ProfileCardKey=Ry,j.ProfileCardValue=e8,j.ProgressBar=tv,j.ProgressInfo=QL,j.ProgressSlider=eT,j.RadarChart=nS,j.Rating=LZ,j.RequestFeedback=Z_,j.RequestedFeedbackNudgeData=ZS,j.Reset=J_,j.Reviews=R_,j.ReviewsNudgeData=SZ,j.Role=eO,j.SankeyChart=YM,j.Search=Lg,j.Select=TI,j.SelectContent=Z4,j.SelectGroup=EI,j.SelectItem=R4,j.SelectLabel=J4,j.SelectSeparator=ey,j.SelectTrigger=Q4,j.SelectValue=NI,j.SelfScore=tO,j.Settings=rO,j.SettingsFeedback=nO,j.SettingsGoals=oO,j.SettingsSchedule=aO,j.ShareFeedback=iO,j.SharePraiseNudgeData=QS,j.SliderDrag=Bg,j.SplitButton=DZ,j.SplitButtonDropdownCheckboxItem=nP,j.SplitButtonDropdownContent=aP,j.SplitButtonDropdownGroup=eP,j.SplitButtonDropdownItem=RS,j.SplitButtonDropdownLabel=rP,j.SplitButtonDropdownRadioGroup=tP,j.SplitButtonDropdownRadioItem=oP,j.SplitDetails=sO,j.StackedBarChart=lS,j.Survey=zg,j.Switch=Nv,j.Tabs=vy,j.TabsContent=by,j.TabsList=my,j.TabsTrigger=yy,j.Tag=wy,j.Task=lO,j.Team=cO,j.Toaster=DL,j.Tooltip=L0,j.TooltipContent=ll,j.TooltipPortal=z0,j.TooltipProvider=I0,j.TooltipTrigger=B0,j.TrendingDown=jg,j.TrendingUp=Hg,j.getInitialsFromName=A3,j.toast=wL,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
102
+ `}),i.appendChild(n.createTextNode(C))}o.timeEnd("clone node"),await(h==null?void 0:h(v)),u!==!1&&_r(v)&&(o.time("embed web font"),await TK(v,r),o.timeEnd("embed web font")),o.time("embed node"),TM(v,r);const m=a.length;let y=0;const b=async()=>{for(;;){const C=a.pop();if(!C)break;try{await C}catch(x){r.log.warn("Failed to run task",x)}f==null||f(++y,m)}};f==null||f(y,m),await Promise.all([...Array.from({length:4})].map(b)),o.timeEnd("embed node"),await(p==null?void 0:p(v));const w=IK(v,r);return s&&w.insertBefore(s,w.children[0]),i&&w.insertBefore(i,w.children[0]),d&&xK(r),await(g==null?void 0:g(w)),w}function IK(e,t){const{width:r,height:n}=t,o=KX(r,n,e.ownerDocument),a=o.ownerDocument.createElementNS(o.namespaceURI,"foreignObject");return a.setAttributeNS(null,"x","0%"),a.setAttributeNS(null,"y","0%"),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.append(e),o.appendChild(a),o}async function LK(e,t){var i;const r=await Ff(e,t),n=await FK(r),o=QX(n,r.isEnable("removeControlCharacter"));r.autoDestruct||(r.svgStyleElement=bM(r.ownerDocument),r.svgDefsElement=(i=r.ownerDocument)==null?void 0:i.createElementNS(Df,"defs"),r.svgStyles.clear());const a=ha(o,n.ownerDocument);return await oK(a,r)}async function BK(e,t){const r=await Ff(e,t),{log:n,quality:o,type:a,dpi:i}=r,s=await LK(r);n.time("canvas to data url");let l=s.toDataURL(a,o);if(["image/png","image/jpeg"].includes(a)&&i&&NX&&kX){const[u,f]=l.split(",");let d=0,h=!1;if(a==="image/png"){const w=TX(f);w>=0?(d=Math.ceil((w+28)/3)*4,h=!0):d=33/3*4}else a==="image/jpeg"&&(d=18/3*4);const p=f.substring(0,d),g=f.substring(d),v=window.atob(p),m=new Uint8Array(v.length);for(let w=0;w<m.length;w++)m[w]=v.charCodeAt(w);const y=a==="image/png"?SX(m,i,h):xX(m,i),b=window.btoa(String.fromCharCode(...y));l=[u,",",b,g].join("")}return n.timeEnd("canvas to data url"),l}async function zK(e,t){return BK(await Ff(e,{...t,type:"image/png"}))}const Or=(e,t,r)=>{M.useImperativeHandle(t,()=>({download(){e.current&&zK(e.current,{scale:5}).then(n=>{const o=document.createElement("a");o.download=`${r}.png`,o.href=n,o.click()})}}))},kM=[{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 ke(e){return kM[e%kM.length]}const If=(e,t)=>M.Children.map(e,r=>M.isValidElement(r)&&typeof r.type=="function"&&r.type.displayName===t.displayName?r:null);function N2({value:e,darkColor:t,lightColor:r}){return c.jsxs("div",{className:"inline-flex items-center justify-start gap-2 px-2 py-1",children:[c.jsx("div",{style:{backgroundColor:r,borderColor:t},className:"relative h-3 w-3 rounded-radius-600 border"}),c.jsx("div",{className:"flex items-start justify-start",children:c.jsx("div",{className:"text-xs font-normal leading-none text-body-primary",children:e})})]})}function k2({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-body-secondary",children:e}),c.jsx("div",{className:"flex items-start justify-start text-sm font-medium",children:t||"-"})]})}function D2({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-body-secondary",children:e}),c.jsx("div",{className:"flex items-start justify-start text-sm font-medium",children:t||"-"})]})}function F2({nodeData:e}){const{employee:t}=e,{name:r,imageUrl:n}=t;return c.jsxs("div",{className:"inline-flex max-w-sm items-center justify-start px-2 py-0.5",children:[c.jsx(pr,{size:"md",children:c.jsx(gr,{src:n,alt:"Avatar"})}),c.jsx("div",{className:"flex items-start justify-start px-2 text-sm font-medium",children:r||"-"})]})}function we({children:e,showSideBySide:t,tooltipTitle:r}){const n=If(e,N2),o=If(e,k2),a=If(e,D2),i=If(e,F2);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-radius-200 bg-white p-2 shadow-card-basic",children:[c.jsx("div",{className:"px-2 py-1 text-xs font-medium leading-none text-body-primary",children:r}),a,c.jsxs("div",{className:"flex w-full flex-col items-start justify-start rounded-radius-200 p-2",children:[t&&c.jsxs("div",{className:R("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:R("mt-3 flex w-full 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:R("grid w-full auto-rows-auto gap-3"),children:o})]}),n&&n.length>0?c.jsx("div",{className:"h-25 w-full bg-surface-grey-subtle px-2"}):null,n,i]})}N2.displayName="Legend",k2.displayName="Item",D2.displayName="Header",F2.displayName="Footer",we.Legend=N2,we.Item=k2,we.Header=D2,we.Footer=F2,we.defaultProps={showSideBySide:!1};function DM({xValue:e,yValue:t,tooltipTitle:r,xAxisLabel:n,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(we,{tooltipTitle:r,showSideBySide:a,children:[c.jsx(we.Item,{label:n,value:u}),c.jsx(we.Item,{label:o,value:f}),c.jsx(we.Legend,{value:i,darkColor:s,lightColor:l})]})}DM.defaultProps={xValue:void 0,yValue:void 0};function qK({data:e,xAccessor:t,yAccessor:r,connectNulls:n=!1}){const o=M.useContext(gt),a=n?e.filter(i=>i.y!==null):e;return a.length===0?null:c.jsx(dw,{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,r(i))}})}const WK=({x:e,y:t,datum:r,size:n})=>c.jsx(Fo,{cx:e,cy:t,stroke:r.color.dark,strokeWidth:1,fill:r.color.light,r:n/2}),jK=({tickData:e,xAxisCharLimit:t})=>{var a;const r=M.useContext(gt),n=(a=r==null?void 0:r.xScale)==null?void 0:a.bandwidth(),o=Math.floor(n/5);return c.jsx(fa,{textLabel:e.formattedValue||"",x:e.x,y:e.y,textStyles:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle",angle:n&&n<25?-45:0},axisCharLimit:t??o})},HK=({x:e,y:t,datum:r})=>c.jsx(Fo,{cx:e,cy:t,stroke:r.color.dark,strokeWidth:1,fill:r.color.dark,r:5,style:{zIndex:1500}}),Lf={xAccessor:e=>e.x,yAccessor:e=>e.y},FM=(e,t,r)=>r==="pre"?`${t}${e}`:`${e}${t}`,IM=10,UK=5,I2=M.forwardRef(({nodes:e,height:t,width:r,xAxisValues:n,series:o,xAxisLabel:a,yAxisLabel:i,xAxisDomain:s,yAxisDomain:l,xAxisUnitSymbol:u,yAxisUnitSymbol:f,tooltipTitle:d,mode:h,xAxisCharLimit:p,connectNulls:g=!1,maxNodesInMiniMode:v=UK,tooltipStackCharLimit:m=IM,seriesSelectorTitle:y,preselectedNodes:b},w)=>{const[C,x]=M.useState(()=>(b&&b<=e.length?e.slice(0,b):e).map(A=>A.id)),_=M.useRef(null);Or(_,w,`${a}-${i}-LineChart`);const T=M.useMemo(()=>o.map((P,A)=>{const N=e.find(k=>k.id===P.id);return{points:P.data.map((k,D)=>({x:n[D],y:Number(k),nodeId:P.id,color:(N==null?void 0:N.color)??ke(A)}))}}).slice(0,h==="mini"?v:o.length),[o,h,v,e,n]),O=M.useMemo(()=>h==="full"?T.filter(P=>C.includes(P.points[0].nodeId)):T,[T,C,h]);return c.jsxs("div",{ref:_,id:"line-chart",className:"rabbit-ds flex flex-col bg-white",style:{width:r,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(xn,{margin:{top:10,left:70,right:50,bottom:50},xScale:{type:"band",nice:!0,...s&&{domain:s}},yScale:{type:"linear",nice:!0,...l&&{domain:l}},children:[c.jsx(Aw,{columns:!1,numTicks:6,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),c.jsx(Xo,{hideTicks:!0,orientation:"bottom",stroke:"#CFD7DF",strokeWidth:1,numTicks:30,tickFormat:P=>u?FM(P,u.symbol,u.position):P,rangePadding:{end:10},tickComponent:P=>c.jsx(jK,{tickData:P,xAxisCharLimit:p}),label:`${a} ➔`,labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx(Xo,{hideTicks:!0,numTicks:6,strokeWidth:1,orientation:"left",stroke:"#CFD7DF",label:`${i} ➔`,tickFormat:P=>f?FM(qt(P>=1e3?"~s":"")(P),f.symbol,f.position):qt(P>=1e3?"~s":"")(P),tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666"},labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dx:-35,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),O.map((P,A)=>c.jsxs(c.Fragment,{children:[c.jsx(qK,{data:P.points,xAccessor:Lf.xAccessor,yAccessor:Lf.yAccessor,connectNulls:g}),c.jsx(sM,{dataKey:`Performance Management ${A}`,data:P.points,size:8,renderGlyph:WK,xAccessor:Lf.xAccessor,yAccessor:Lf.yAccessor})]})),c.jsx(bc,{showDatumGlyph:!0,scroll:!0,debounce:500,snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,detectBounds:!0,unstyled:!0,applyPositionStyle:!0,renderGlyph:HK,renderTooltip:({tooltipData:P})=>{var k,D,q,E,L,W;const A=e.find(B=>{var I;return B.id===((I=P==null?void 0:P.nearestDatum)==null?void 0:I.datum.nodeId)}),N=((k=P==null?void 0:P.nearestDatum)==null?void 0:k.datum)&&((D=P==null?void 0:P.nearestDatum)==null?void 0:D.datum.x.length)<m;return c.jsx(DM,{xValue:(q=P==null?void 0:P.nearestDatum)==null?void 0:q.datum.x,yValue:(E=P==null?void 0:P.nearestDatum)==null?void 0:E.datum.y,xAxisLabel:a,yAxisLabel:i,showSideBySide:!!N,tooltipTitle:d,legendValue:(A==null?void 0:A.name)||"",legendDarkColor:((L=P==null?void 0:P.nearestDatum)==null?void 0:L.datum.color.dark)||ke(0).dark,legendLightColor:((W=P==null?void 0:P.nearestDatum)==null?void 0:W.datum.color.light)||ke(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-radius-100 border border-solid border-[color:var(--Accent,#EBEFF3)] bg-[#FDFDFD] p-4 pr-0 text-xs",children:[c.jsxs("div",{className:"pb-1 text-xs font-semibold",children:[c.jsx("span",{className:"pr-1",children:y??a}),"(",O.length??0,"/",T.length,")"]}),c.jsx("div",{className:"inline-flex h-[95%] w-full shrink-0 grow-0 flex-col items-start justify-start gap-1 overflow-scroll pr-4",children:T.map(P=>{const A=e.find(N=>N.id===P.points[0].nodeId);return A&&c.jsxs("div",{className:"flex w-full items-center justify-between gap-1 py-1",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("div",{style:{backgroundColor:P.points[0].color.light,borderColor:P.points[0].color.dark},className:"mr-1 h-3 w-3 rounded-radius-round border"}),A.name]}),c.jsx("div",{className:"flex items-center",children:c.jsx(Ma,{checked:C.includes(A.id),onCheckedChange:N=>{let k=[...C];N?k=[...C,A.id]:k.splice(C.indexOf(A.id),1),x(k)}})})]},A.id)})})]})]}),h==="mini"&&c.jsx("div",{className:"flex flex-row flex-wrap justify-center gap-4 text-[10px] font-semibold text-body-secondary",children:T.map(P=>{const A=e.find(N=>N.id===P.points[0].nodeId);return c.jsxs("div",{className:"flex items-center justify-center gap-1",children:[c.jsx("div",{style:{backgroundColor:P.points[0].color.light,borderColor:P.points[0].color.dark},className:"h-3 w-3 rounded-radius-round border"}),A==null?void 0:A.name]},A==null?void 0:A.id)})})]})}),VK={xAxisUnitSymbol:void 0,yAxisUnitSymbol:void 0,mode:"mini",xAxisCharLimit:void 0,tooltipStackCharLimit:IM,xAxisDomain:void 0,yAxisDomain:void 0,connectNulls:!1};I2.defaultProps=VK,I2.displayName="LineBase";const LM=M.forwardRef((e,t)=>c.jsx(Br,{debounceTime:10,children:({width:r,height:n})=>c.jsx(I2,{ref:t,width:r,height:n,...e})}));LM.displayName="LineChart";function BM(e,t){let r;if(t===void 0)for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let o of e)(o=t(o,++n,e))!=null&&(r<o||r===void 0&&o>=o)&&(r=o)}return r}function YK(e,t){let r;if(t===void 0)for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let o of e)(o=t(o,++n,e))!=null&&(r>o||r===void 0&&o>=o)&&(r=o)}return r}function L2(e,t){let r=0;if(t===void 0)for(let n of e)(n=+n)&&(r+=n);else{let n=-1;for(let o of e)(o=+t(o,++n,e))&&(r+=o)}return r}function GK(e,t){return e.sourceLinks.length?e.depth:t-1}function Bf(e){return function(){return e}}function zM(e,t){return zf(e.source,t.source)||e.index-t.index}function qM(e,t){return zf(e.target,t.target)||e.index-t.index}function zf(e,t){return e.y0-t.y0}function B2(e){return e.value}function $K(e){return e.index}function XK(e){return e.nodes}function KK(e){return e.links}function WM(e,t){const r=e.get(t);if(!r)throw new Error("missing: "+t);return r}function jM({nodes:e}){for(const t of e){let r=t.y0,n=r;for(const o of t.sourceLinks)o.y0=r+o.width/2,r+=o.width;for(const o of t.targetLinks)o.y1=n+o.width/2,n+=o.width}}function QK(){let e=0,t=0,r=1,n=1,o=24,a=8,i,s=$K,l=GK,u,f,d=XK,h=KK,p=6;function g(){const E={nodes:d.apply(null,arguments),links:h.apply(null,arguments)};return v(E),m(E),y(E),b(E),x(E),jM(E),E}g.update=function(E){return jM(E),E},g.nodeId=function(E){return arguments.length?(s=typeof E=="function"?E:Bf(E),g):s},g.nodeAlign=function(E){return arguments.length?(l=typeof E=="function"?E:Bf(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?(d=typeof E=="function"?E:Bf(E),g):d},g.links=function(E){return arguments.length?(h=typeof E=="function"?E:Bf(E),g):h},g.linkSort=function(E){return arguments.length?(f=E,g):f},g.size=function(E){return arguments.length?(e=t=0,r=+E[0],n=+E[1],g):[r-e,n-t]},g.extent=function(E){return arguments.length?(e=+E[0][0],r=+E[1][0],t=+E[0][1],n=+E[1][1],g):[[e,t],[r,n]]},g.iterations=function(E){return arguments.length?(p=+E,g):p};function v({nodes:E,links:L}){for(const[B,I]of E.entries())I.index=B,I.sourceLinks=[],I.targetLinks=[];const W=new Map(E.map((B,I)=>[s(B,I,E),B]));for(const[B,I]of L.entries()){I.index=B;let{source:F,target:U}=I;typeof F!="object"&&(F=I.source=WM(W,F)),typeof U!="object"&&(U=I.target=WM(W,U)),F.sourceLinks.push(I),U.targetLinks.push(I)}if(f!=null)for(const{sourceLinks:B,targetLinks:I}of E)B.sort(f),I.sort(f)}function m({nodes:E}){for(const L of E)L.value=L.fixedValue===void 0?Math.max(L2(L.sourceLinks,B2),L2(L.targetLinks,B2)):L.fixedValue}function y({nodes:E}){const L=E.length;let W=new Set(E),B=new Set,I=0;for(;W.size;){for(const F of W){F.depth=I;for(const{target:U}of F.sourceLinks)B.add(U)}if(++I>L)throw new Error("circular link");W=B,B=new Set}}function b({nodes:E}){const L=E.length;let W=new Set(E),B=new Set,I=0;for(;W.size;){for(const F of W){F.height=I;for(const{source:U}of F.targetLinks)B.add(U)}if(++I>L)throw new Error("circular link");W=B,B=new Set}}function w({nodes:E}){const L=BM(E,I=>I.depth)+1,W=(r-e-o)/(L-1),B=new Array(L);for(const I of E){const F=Math.max(0,Math.min(L-1,Math.floor(l.call(null,I,L))));I.layer=F,I.x0=e+F*W,I.x1=I.x0+o,B[F]?B[F].push(I):B[F]=[I]}if(u)for(const I of B)I.sort(u);return B}function C(E){const L=YK(E,W=>(n-t-(W.length-1)*i)/L2(W,B2));for(const W of E){let B=t;for(const I of W){I.y0=B,I.y1=B+I.value*L,B=I.y1+i;for(const F of I.sourceLinks)F.width=F.value*L}B=(n-B+i)/(W.length+1);for(let I=0;I<W.length;++I){const F=W[I];F.y0+=B*(I+1),F.y1+=B*(I+1)}k(W)}}function x(E){const L=w(E);i=Math.min(a,(n-t)/(BM(L,W=>W.length)-1)),C(L);for(let W=0;W<p;++W){const B=Math.pow(.99,W),I=Math.max(1-B,(W+1)/p);T(L,B,I),_(L,B,I)}}function _(E,L,W){for(let B=1,I=E.length;B<I;++B){const F=E[B];for(const U of F){let K=0,G=0;for(const{source:V,value:Z}of U.targetLinks){let $=Z*(U.layer-V.layer);K+=D(V,U)*$,G+=$}if(!(G>0))continue;let z=(K/G-U.y0)*L;U.y0+=z,U.y1+=z,N(U)}u===void 0&&F.sort(zf),O(F,W)}}function T(E,L,W){for(let B=E.length,I=B-2;I>=0;--I){const F=E[I];for(const U of F){let K=0,G=0;for(const{target:V,value:Z}of U.sourceLinks){let $=Z*(V.layer-U.layer);K+=q(U,V)*$,G+=$}if(!(G>0))continue;let z=(K/G-U.y0)*L;U.y0+=z,U.y1+=z,N(U)}u===void 0&&F.sort(zf),O(F,W)}}function O(E,L){const W=E.length>>1,B=E[W];A(E,B.y0-i,W-1,L),P(E,B.y1+i,W+1,L),A(E,n,E.length-1,L),P(E,t,0,L)}function P(E,L,W,B){for(;W<E.length;++W){const I=E[W],F=(L-I.y0)*B;F>1e-6&&(I.y0+=F,I.y1+=F),L=I.y1+i}}function A(E,L,W,B){for(;W>=0;--W){const I=E[W],F=(I.y1-L)*B;F>1e-6&&(I.y0-=F,I.y1-=F),L=I.y0-i}}function N({sourceLinks:E,targetLinks:L}){if(f===void 0){for(const{source:{sourceLinks:W}}of L)W.sort(qM);for(const{target:{targetLinks:W}}of E)W.sort(zM)}}function k(E){if(f===void 0)for(const{sourceLinks:L,targetLinks:W}of E)L.sort(qM),W.sort(zM)}function D(E,L){let W=E.y0-(E.sourceLinks.length-1)*i/2;for(const{target:B,width:I}of E.sourceLinks){if(B===L)break;W+=I+i}for(const{source:B,width:I}of L.targetLinks){if(B===E)break;W-=I}return W}function q(E,L){let W=L.y0-(L.targetLinks.length-1)*i/2;for(const{source:B,width:I}of L.targetLinks){if(B===E)break;W+=I+i}for(const{target:B,width:I}of E.sourceLinks){if(B===L)break;W-=I}return W}return g}function ZK({tooltipData:e,fromLabel:t,toLabel:r,weightLabel:n,tooltipTitle:o}){var s,l,u,f;const a=e.source,i=e.target;return c.jsxs(we,{tooltipTitle:o,children:[c.jsx(we.Item,{label:t,value:a.name}),c.jsx(we.Item,{label:r,value:i.name}),c.jsx(we.Item,{label:n,value:e.weight.toString()}),c.jsx(we.Legend,{value:a.name,darkColor:(s=ke((a.index||0)+1))==null?void 0:s.dark,lightColor:(l=ke((a.index||0)+1))==null?void 0:l.light}),c.jsx(we.Legend,{value:i.name,darkColor:(u=ke((i.index||0)+1))==null?void 0:u.dark,lightColor:(f=ke((i.index||0)+1))==null?void 0:f.light})]})}const HM=80,UM=20,JK=30,RK=12,VM=M.forwardRef(({height:e,width:t,tooltipTitle:r,nodes:n,links:o,groups:a,weightLabel:i},s)=>{const l=M.useMemo(()=>QK().nodeId(E=>E.id).nodeWidth(RK).nodePadding(JK).nodeAlign(E=>E.group),[]),u=M.useRef(null);Or(u,s,`${r}-SankeyChart`);const[f,d]=M.useState(""),[h,p]=M.useState(null),{tooltipData:g,tooltipLeft:v,tooltipTop:m,tooltipOpen:y,showTooltip:b,hideTooltip:w}=Ko(),{containerBounds:C,containerRef:x,TooltipInPortal:_}=Qo({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),T=M.useMemo(()=>l.extent([[HM,UM],[t-HM,e-UM-50]])({nodes:n,links:o.map(E=>({...E,value:Number(E.weight)}))}),[e,t,l,n,o]),O=M.useMemo(()=>Math.max(...T.nodes.map(E=>E.depth??0)),[T]),P=M.useMemo(()=>{const E={};let L=-1/0;return T.nodes.forEach(W=>{const{group:B}=W;E[B]?(E[B].x=Math.max(E[B].x??-1/0,W.x0??-1/0),E[B].y=Math.max(E[B].y??-1/0,W.y1??-1/0)):(E[B]={},E[B].x=W.x0,E[B].y=W.y1),L=Math.max(L,E[B].y??-1/0),E[B].y=L}),Object.keys(E).forEach(W=>{E[W].y=L}),E},[T]),A=M.useCallback(E=>{const L=l.nodeId()(E);d(f===L?"":L)},[f,l]),N=M.useCallback(()=>{d(""),p(null)},[]),k=M.useMemo(()=>f===""&&h===null?new Set:new Set(T.links.filter(E=>l.nodeId()(E.source)===f||l.nodeId()(E.target)===f||(h==null?void 0:h.source)===E.source&&(h==null?void 0:h.target)===E.target)),[f,T,h,l]),D=M.useCallback((E,L)=>{const W=("clientX"in E?E.clientX:0)-C.left,B=("clientY"in E?E.clientY:0)-C.top;p(L),W&&B&&b({tooltipLeft:W,tooltipTop:B,tooltipData:L})},[b,C]),q=M.useCallback(()=>{N(),w()},[N,w]);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:x,children:[c.jsx("g",{children:T.links.map(E=>c.jsx(LV,{data:E,source:L=>({x:L.source.x1,y:L.y0}),target:L=>({x:L.target.x0,y:L.y1}),x:L=>L.x??0,y:L=>L.y??0,fill:"none",pointerEvents:"stroke",onMouseLeave:()=>q(),onMouseMove:L=>D(L,E),stroke:ke((E.source.index||0)+1).light,strokeWidth:E.width,strokeOpacity:k.has(E)?.7:.4},E.index))}),c.jsx("g",{children:T.nodes.map(E=>{var L,W,B;return c.jsx("g",{children:c.jsx(pw,{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:()=>A(E),onMouseLeave:()=>N(),radius:2,fill:f===E.id?(L=ke((E.index||0)+1))==null?void 0:L.dark:(W=ke((E.index||0)+1))==null?void 0:W.light,stroke:(B=ke((E.index||0)+1))==null?void 0:B.dark,all:!0})},E.index)})}),c.jsx("g",{children:a.map(E=>c.jsx(fa,{axisCharLimit:20,x:P[E.id].x??0,y:(P[E.id].y??0)+40,textLabel:E.name,textStyles:{fontSize:10,fontWeight:600,textAnchor:"middle",fill:"#666666"}},E.id))}),c.jsxs("g",{children:[T.nodes.map(E=>c.jsx(fa,{axisCharLimit:8,x:E.depth===O?(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===O?"start":"end",fill:"#666666"}},E.index)),T.nodes.map(E=>E.value&&c.jsx(ei,{x:E.depth===O?(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===O?"start":"end",fill:"#666666"},children:`(${E.value.toString()})`},E.index))]})]}),y&&g&&c.jsx(_,{top:m,left:v,unstyled:!0,applyPositionStyle:!0,children:c.jsx(ZK,{tooltipData:g,fromLabel:`From: ${a[g.source.group].name}`,toLabel:`To: ${a[g.target.group].name}`,weightLabel:i,tooltipTitle:r})},Xt(0,4294967295).toString(16))]})});VM.displayName="Sankey";const YM=M.forwardRef((e,t)=>c.jsx(Br,{debounceTime:10,children:({width:r,height:n})=>r&&n&&c.jsx(VM,{ref:t,width:r,height:n,...e})}));YM.displayName="SankeyChart";var eQ=Tp();const tQ=Mt(eQ);function rQ(e){return"bandwidth"in e?e.bandwidth():0}var nQ=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function z2(){return z2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},z2.apply(this,arguments)}function oQ(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function GM(e){var t=e.top,r=t===void 0?0:t,n=e.left,o=n===void 0?0:n,a=e.scale,i=e.width,s=e.stroke,l=s===void 0?"#eaf0f6":s,u=e.strokeWidth,f=u===void 0?1:u,d=e.strokeDasharray,h=e.className,p=e.children,g=e.numTicks,v=g===void 0?10:g,m=e.lineStyle,y=e.offset,b=e.tickValues,w=oQ(e,nQ),C=b??bp(a,v),x=(y??0)+rQ(a)/2,_=C.map(function(T,O){var P,A=((P=oc(a(T)))!=null?P:0)+x;return{index:O,from:new zr({x:0,y:A}),to:new zr({x:i,y:A})}});return M.createElement(rr,{className:nt("visx-rows",h),top:r,left:o},p?p({lines:_}):_.map(function(T){var O=T.from,P=T.to,A=T.index;return M.createElement(tQ,z2({key:"row-line-"+A,from:O,to:P,stroke:l,strokeWidth:f,strokeDasharray:d,style:m},w))}))}GM.propTypes={tickValues:re.array,width:re.number.isRequired};function $M({xValue:e,yValue:t,tooltipTitle:r,xAxisLabel:n,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(we,{tooltipTitle:r,showSideBySide:!0,children:[c.jsx(we.Item,{label:n,value:l}),c.jsx(we.Item,{label:o,value:u}),c.jsx(we.Legend,{value:a,darkColor:i,lightColor:s})]})}$M.defaultProps={xValue:void 0,yValue:void 0};const XM=20,KM=50,q2=80,qf=50,aQ=10,iQ=25,W2=M.forwardRef(({tooltipTitle:e,xAxisLabel:t,yAxisLabel:r,domain:n,binCount:o,data:a,width:i,height:s,maxBinCount:l=iQ,minBinCount:u=aQ,integerBins:f=!1,integerYAxis:d=!1},h)=>{const p=M.useMemo(()=>zl(a),[a]),{histogramDomain:g,threshold:v,thresholdInteger:m}=M.useMemo(()=>{const I=p[0]??0,F=I===p[1]?u+I:p[1]??0,U=F-I>u?F:u+I,K=Math.min(Math.max(F-I,u),l),G=Math.floor(p[0]??0),z=Math.ceil(U);return{histogramDomain:n||(f?[G,z]:[I,F]),threshold:K,thresholdInteger:Math.ceil(K)}},[p,n,f,l,u]),y=M.useMemo(()=>Gn({domain:g,range:[qf,i-KM],round:!0,nice:!0}),[g,i]),b=M.useMemo(()=>gj().domain(y.domain()).thresholds(o||(f?m:v))(a),[y,o,a,v,m,f]),w=M.useMemo(()=>Gn({domain:[0,vj(b,I=>I.length)??0],range:[s-q2,XM],round:!0,nice:!0}),[b,s]),C=M.useMemo(()=>w.ticks().filter(I=>d?Number.isInteger(I):I),[d,w]),x=M.useRef(null);Or(x,h,`${t}-${r}-Histogram`);const{tooltipData:_,tooltipLeft:T,tooltipTop:O,tooltipOpen:P,showTooltip:A,hideTooltip:N}=Ko(),{containerBounds:k,containerRef:D,TooltipInPortal:q}=Qo({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),E=i-qf-KM,L=s-XM-q2-100,W=M.useCallback((I,F)=>{const U=("clientX"in I?I.clientX:0)-k.left,K=("clientY"in I?I.clientY:0)-k.top;U&&K&&A({tooltipLeft:U,tooltipTop:K,tooltipData:F})},[A,k]),B=M.useCallback(()=>{N()},[N]);return c.jsxs("div",{className:"rabbit-ds flex flex-col bg-white",style:{width:i,height:s},ref:x,onMouseLeave:()=>B(),children:[c.jsxs("svg",{width:i,height:s,ref:D,children:[c.jsx(bi,{orientation:"bottom",scale:y,top:s-q2,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(bi,{orientation:"left",scale:w,left:qf,hideTicks:!0,strokeWidth:1,stroke:"#CFD7DF",tickFormat:I=>d?Number(I)>=1e3?qt("~s")(Number(qt("d")(I))):qt("d")(I):Number(I)>=1e3?qt("~s")(I):qt("")(I),tickValues:C,label:`${r} ➔`,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(rr,{children:[c.jsx(GM,{scale:w,width:E,height:L,left:qf,top:0,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),b.map(I=>{const F=Math.abs(w(0)-w(I.length)),U=Math.abs(y(I.x1??0)-y(I.x0??0));return c.jsx("g",{children:c.jsx(hw,{x:y(I.x0??0),y:w(I.length),width:U,height:F&&F-1,fill:ke(0).light,stroke:ke(0).dark,strokeWidth:1,onMouseMove:K=>W(K,I),onMouseLeave:()=>B()})},Xt(0,4294967295))})]})]}),P&&_&&c.jsx(q,{top:O,left:T,unstyled:!0,applyPositionStyle:!0,children:c.jsx($M,{xAxisLabel:t,xValue:`${_.x0} to ${_.x1}`,yAxisLabel:r,yValue:_.length,tooltipTitle:e,legendValue:r,legendDarkColor:ke(0).dark,legendLightColor:ke(0).light})},Xt(0,4294967295)),w.domain()[2]]})}),QM=M.forwardRef((e,t)=>c.jsx(Br,{debounceTime:10,children:({width:r,height:n})=>c.jsx(W2,{ref:t,width:r,height:n,...e})}));W2.defaultProps={domain:void 0,binCount:void 0,integerBins:!1,integerYAxis:!1},W2.displayName="HistogramBase",QM.displayName="HistogramChart";function ZM({tooltipTitle:e,label:t,value:r,unit:n,legendValue:o,legendDarkColor:a,legendLightColor:i}){return c.jsxs(we,{tooltipTitle:e,children:[c.jsx(we.Item,{label:t,value:`${r} ${n}`}),c.jsx(we.Legend,{value:o,darkColor:a||"",lightColor:i||""})]})}ZM.defaultProps={};const sQ=e=>e.value,lQ=e=>e.label,JM=M.forwardRef(({width:e,height:t,unit:r="%",data:n,tooltipTitle:o,legendTitle:a},i)=>{const s=e/2,l=t/2,u=M.useMemo(()=>Math.min(e-.35*e,t-50)/2,[e,t]),{tooltipData:f,tooltipLeft:d,tooltipTop:h,tooltipOpen:p,showTooltip:g,hideTooltip:v}=Ko(),{containerBounds:m,containerRef:y,TooltipInPortal:b}=Qo({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),w=M.useRef(null),C=M.useCallback((_,T)=>{const O=("clientX"in _?_.clientX:0)-m.left,P=("clientY"in _?_.clientY:0)-m.top;O&&P&&g({tooltipLeft:O,tooltipTop:P,tooltipData:T})},[g,m]),x=M.useCallback(()=>{v()},[v]);return Or(w,i,"DonutChart"),c.jsxs("div",{className:"rabbit-ds flex flex-col bg-white",style:{width:e,height:t},ref:w,children:[c.jsx("svg",{width:e,height:t,className:"rabbit-ds",ref:y,children:c.jsx(rr,{top:l-20,left:s,children:c.jsx(bV,{data:n,pieValue:sQ,outerRadius:u-10,innerRadius:u-Math.min(e*.07,22)-10,cornerRadius:2,padAngle:.025,children:_=>c.jsx(c.Fragment,{children:_.arcs.map(T=>{const O=lQ(T.data);return c.jsx("g",{children:c.jsx("path",{d:_.path(T)??void 0,fill:T.data.color,onMouseLeave:x,onMouseMove:P=>C(P,{label:a,value:T.value,tooltipTitle:o,unit:r,legendValue:O,legendDarkColor:T.data.labelColor,legendLightColor:T.data.color})})},`arc-${O}`)})})})})}),p&&f&&c.jsx(b,{top:h,left:d,unstyled:!0,applyPositionStyle:!0,children:c.jsx(ZM,{unit:f.unit,label:f.label,value:f.value,tooltipTitle:o,legendValue:f.legendValue??"",legendDarkColor:f.legendDarkColor,legendLightColor:f.legendLightColor})},Xt(0,4294967295)),c.jsx("div",{className:"flex flex-row flex-wrap justify-center gap-2 text-[10px] font-semibold text-body-secondary",style:{fontSize:Math.min(e*.04,10)},children:n.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-radius-round border"}),`${_.label}: ${_.value}${r}`]},_.label))})]})});JM.displayName="DonutChartBase";const RM=M.forwardRef((e,t)=>c.jsx(Br,{debounceTime:10,children:({width:r,height:n})=>c.jsx(JM,{ref:t,width:r,height:n,...e})}));RM.displayName="DonutChart";function eS({xValue:e,yValue:t,tooltipTitle:r,xAxisLabel:n,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(we,{tooltipTitle:r,showSideBySide:a,children:[c.jsx(we.Item,{label:n,value:u}),c.jsx(we.Item,{label:o,value:f}),c.jsx(we.Legend,{value:i,darkColor:s,lightColor:l})]})}eS.defaultProps={xValue:void 0,yValue:void 0};const Wf={top:60,left:20,right:20,bottom:20},tS={start:10,end:-10,middle:0},rS=M.forwardRef(({width:e,height:t,levels:r=5,nodes:n,xAxisLabel:o,xAxisCharLimit:a,tooltipTitle:i,xAxisUnitSymbol:s,yAxisDomain:l,series:u=[],xAxisValues:f},d)=>{const h=M.useRef(null);Or(h,d,"RadarChart");const{tooltipData:p,tooltipLeft:g,tooltipTop:v,tooltipOpen:m,showTooltip:y,hideTooltip:b}=Ko(),{containerBounds:w,containerRef:C,TooltipInPortal:x}=Qo({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),_=M.useCallback((F,U)=>{const K=Math.PI*2/F;return[...new Array(F)].map((G,z)=>({x:U*Math.sin(z*K),y:U*Math.cos(z*K)}))},[]),T=M.useCallback((F,U,K)=>K==="pre"?`${U}${F}`:`${F}${U}`,[]),O=M.useCallback((F,U,K)=>{const G=Math.PI*2/F.length,z=new Array(F.length).fill({x:0,y:0,data:null}),V=new Array(F.length+1).fill("").reduce((Z,$,ee)=>{if(ee>F.length)return Z;const X=U(K(F[ee-1]))*Math.sin(ee*G),Q=U(K(F[ee-1]))*Math.cos(ee*G);return z[ee-1]={x:X,y:Q,data:F[ee-1]},`${Z}${X},${Q} `});return{points:z,pointString:V}},[]),P=M.useMemo(()=>new zr({x:0,y:0}),[]),A=M.useCallback(F=>Math.round(F)===0?"middle":F>0?"start":"end",[]),N=M.useCallback((F,U)=>{const K=("clientX"in F?F.clientX:0)-w.left,G=("clientY"in F?F.clientY:0)-w.top;K&&G&&y({tooltipLeft:K,tooltipTop:G,tooltipData:U})},[y,w]),k=M.useCallback(()=>{b()},[b]),D=M.useMemo(()=>e-Wf.left-Wf.right,[e]),q=M.useMemo(()=>t-Wf.top-Wf.bottom,[t]),E=M.useMemo(()=>Math.min(D,q)/2,[D,q]),L=u.length?u.reduce((F,U)=>{const K=U.data.filter(G=>G);return Math.max(F,...K)},-1/0):0,W=Gn({range:[0,E],domain:l??[0,L]}),B=_(f.length,E),I=F=>O(F,U=>W(U)??0,U=>U);return c.jsxs("div",{className:"rabbit-ds flex flex-col gap-600 bg-white",style:{width:e,height:t},ref:h,children:[c.jsxs("svg",{width:e,height:t,ref:C,pointerEvents:"all",onMouseLeave:k,children:[c.jsx("rect",{fill:"transparent",width:e,height:t,rx:14}),c.jsxs(rr,{top:t/2,left:e/2,children:[[...new Array(r)].map((F,U)=>c.jsx(gw,{x:e/2,y:t/2,fill:"none",stroke:"#CFD7DF",strokeWidth:1,strokeDasharray:4,r:E*(U+1)/r},`web1-${Xt(0,4294967295).toString(16)}`)),f.map((F,U)=>c.jsxs(c.Fragment,{children:[c.jsx(Ap,{from:P,to:B[U],stroke:f.length===1?ke(0).dark:"#CFD7DF",strokeWidth:1},`radar-line-${Xt(0,4294967295).toString(16)}`),c.jsx(ei,{x:B[U].x,y:B[U].y,textAnchor:A(B[U].x),verticalAnchor:A(B[U].y),dx:tS[A(B[U].x)],dy:tS[A(B[U].y)],fontSize:10,fill:"#666666",width:a??100,children:`${s?T(f[(U+f.length-1)%f.length],s.symbol,s.position):f[(U+f.length-1)%f.length]}`})]})),u.map((F,U)=>c.jsx("polygon",{points:I(F.data).pointString,fill:ke(U).light,fillOpacity:.2,stroke:ke(U).dark,strokeWidth:1},`polypath-${Xt(0,4294967295).toString(16)}`)),u.map((F,U)=>I(F.data).points.map((K,G)=>c.jsx(gw,{cx:K.x,cy:K.y,r:5,fill:"transparent",onMouseMove:z=>{var V;return N(z,{yAxisLabel:((V=n.find(Z=>Z.id===F.id))==null?void 0:V.name)??"",xAxisValue:f[G],yAxisValue:F.data[G],xAxisLabel:o??"Category",legendDarkColor:ke(U).dark,legendLightColor:ke(U).light})},onMouseOut:k},`radar-point-${Xt(0,4294967295).toString(16)}`)))]})]}),m&&p&&c.jsx(x,{top:v,left:g,unstyled:!0,applyPositionStyle:!0,children:c.jsx(eS,{xAxisLabel:p.xAxisLabel??"",xValue:p.xAxisValue,yAxisLabel:p.yAxisLabel??"",yValue:p.yAxisValue,tooltipTitle:i,showSideBySide:!0,legendValue:p.yAxisLabel??"",legendDarkColor:p.legendDarkColor,legendLightColor:p.legendLightColor})},Xt(0,4294967295).toString(16)),c.jsx("div",{className:"flex flex-row flex-wrap justify-end gap-200",children:n.map((F,U)=>c.jsxs("div",{className:"flex items-center justify-center gap-100 text-300sm leading-400 text-body-secondary",children:[c.jsx("div",{style:{backgroundColor:ke(U).light,borderColor:ke(U).dark},className:"h-300 w-300 rounded-radius-round border"}),F.name]},F.id))})]})});rS.displayName="RadarChartBase";const nS=M.forwardRef((e,t)=>c.jsx(Br,{debounceTime:10,children:({width:r,height:n})=>c.jsx(rS,{ref:t,width:r,height:n,...e})}));nS.displayName="RadarChart";function oS({xValue:e,yValue:t,tooltipTitle:r,xAxisLabel:n,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(we,{tooltipTitle:r,showSideBySide:a,children:[c.jsx(we.Item,{label:n,value:u}),c.jsx(we.Item,{label:o,value:f}),c.jsx(we.Legend,{value:i,darkColor:s,lightColor:l})]})}oS.defaultProps={xValue:void 0,yValue:void 0};const cQ=({x:e,y:t,datum:r})=>c.jsx(Fo,{cx:e,cy:t,stroke:r.color.dark,strokeWidth:1,fill:r.color.dark,r:5,style:{zIndex:1500}}),uQ=({tickData:e,xAxisCharLimit:t})=>{var a;const r=M.useContext(gt),n=(a=r==null?void 0:r.xScale)==null?void 0:a.bandwidth(),o=Math.floor(n/5);return c.jsx(fa,{textLabel:e.formattedValue||"",x:e.x,y:e.y,textStyles:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle",angle:n&&n<25?-45:0},axisCharLimit:t??o})},aS={xAccessor:e=>e.x,yAccessor:e=>e.y},iS=(e,t,r)=>r==="pre"?`${t}${e}`:`${e}${t}`,sS=10,fQ=5,j2=M.forwardRef(({nodes:e,height:t,width:r,xAxisValues:n,series:o,xAxisLabel:a,yAxisLabel:i,xAxisDomain:s,yAxisDomain:l,xAxisUnitSymbol:u,yAxisUnitSymbol:f,tooltipTitle:d,mode:h,xAxisCharLimit:p,maxNodesInMiniMode:g=fQ,tooltipStackCharLimit:v=sS,seriesSelectorTitle:m,preselectedNodes:y},b)=>{const[w,C]=M.useState(()=>(y&&y<=e.length?e.slice(0,y):e).map(P=>P.id)),x=M.useRef(null);Or(x,b,`${a}-${i}-StackedBarChart`);const _=M.useMemo(()=>o.map((O,P)=>{const A=e.find(N=>N.id===O.id);return{points:O.data.map((N,k)=>({x:n[k],y:Number(N),nodeId:O.id,color:(A==null?void 0:A.color)??ke(P)}))}}).slice(0,h==="mini"?g:o.length),[o,h,g,e,n]),T=M.useMemo(()=>h==="full"?_.filter(O=>w.includes(O.points[0].nodeId)):_,[_,w,h]);return c.jsxs("div",{ref:x,id:"line-chart",className:"rabbit-ds flex flex-col bg-white",style:{width:r,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(xn,{margin:{top:10,left:70,right:50,bottom:50},xScale:{type:"band",nice:!0,padding:.5,...s&&{domain:s}},yScale:{type:"linear",nice:!0,...l&&{domain:l}},children:[c.jsx(Aw,{columns:!1,numTicks:6,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),c.jsx(Xo,{hideTicks:!0,orientation:"bottom",stroke:"#CFD7DF",strokeWidth:1,numTicks:30,tickFormat:O=>u?iS(O,u.symbol,u.position):O,rangePadding:{end:10},tickComponent:O=>c.jsx(uQ,{tickData:O,xAxisCharLimit:p}),label:`${a} ➔`,labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx(Xo,{hideTicks:!0,numTicks:6,strokeWidth:1,orientation:"left",stroke:"#CFD7DF",label:`${i} ➔`,tickFormat:O=>f?iS(qt(O>=1e3?"~s":"")(O),f.symbol,f.position):qt(O>=1e3?"~s":"")(O),tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666"},labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dx:-35,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx(yX,{children:T.map(O=>c.jsx(pX,{data:O.points,dataKey:O.points[0].nodeId,xAccessor:aS.xAccessor,yAccessor:aS.yAccessor,colorAccessor:P=>P.color.light,radiusTop:!0,radius:2},O.points[0].nodeId))}),c.jsx(bc,{showDatumGlyph:!0,scroll:!0,debounce:500,snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,detectBounds:!0,unstyled:!0,applyPositionStyle:!0,renderGlyph:cQ,renderTooltip:({tooltipData:O})=>{var N,k,D,q,E,L;const P=e.find(W=>{var B;return W.id===((B=O==null?void 0:O.nearestDatum)==null?void 0:B.datum.nodeId)}),A=((N=O==null?void 0:O.nearestDatum)==null?void 0:N.datum)&&((k=O==null?void 0:O.nearestDatum)==null?void 0:k.datum.x.length)<v;return c.jsx(oS,{xValue:(D=O==null?void 0:O.nearestDatum)==null?void 0:D.datum.x,yValue:(q=O==null?void 0:O.nearestDatum)==null?void 0:q.datum.y,xAxisLabel:a,yAxisLabel:i,showSideBySide:!!A,tooltipTitle:d,legendValue:(P==null?void 0:P.name)||"",legendDarkColor:((E=O==null?void 0:O.nearestDatum)==null?void 0:E.datum.color.dark)||ke(0).dark,legendLightColor:((L=O==null?void 0:O.nearestDatum)==null?void 0:L.datum.color.light)||ke(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-radius-100 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:m??a}),"(",T.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(O=>{const P=e.find(A=>A.id===O.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:O.points[0].color.light,borderColor:O.points[0].color.dark},className:"mr-1 h-3 w-3 rounded-radius-round border"}),P.name]}),c.jsx("div",{className:"flex items-center",children:c.jsx(Ma,{checked:w.includes(P.id),onCheckedChange:A=>{let N=[...w];A?N=[...w,P.id]:N.splice(w.indexOf(P.id),1),C(N)}})})]},P.id)})})]})]}),h==="mini"&&c.jsx("div",{className:"flex flex-row flex-wrap justify-center gap-4 text-[10px] font-semibold text-body-secondary",children:_.map(O=>{const P=e.find(A=>A.id===O.points[0].nodeId);return c.jsxs("div",{className:"flex items-center justify-center gap-1",children:[c.jsx("div",{style:{backgroundColor:O.points[0].color.light,borderColor:O.points[0].color.dark},className:"h-3 w-3 rounded-radius-round border"}),P==null?void 0:P.name]},P==null?void 0:P.id)})})]})}),dQ={xAxisUnitSymbol:void 0,yAxisUnitSymbol:void 0,mode:"mini",xAxisCharLimit:void 0,tooltipStackCharLimit:sS,xAxisDomain:void 0,yAxisDomain:void 0,connectNulls:!1};j2.defaultProps=dQ,j2.displayName="StackedBarChartBase";const lS=M.forwardRef((e,t)=>c.jsx(Br,{debounceTime:10,children:({width:r,height:n})=>c.jsx(j2,{ref:t,width:r,height:n,...e})}));lS.displayName="StackedBarChart";const hQ=({nodes:e,selectedNodeIds:t,setSelectedNodeIds:r,seriesSelectorTitle:n})=>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-radius-100 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:n}),"(",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-radius-round border"}),a]}),c.jsx("div",{className:"flex items-center",children:c.jsx(Ma,{checked:t.includes(o),onCheckedChange:s=>{let l=[...t];s?l=[...t,o]:l.splice(t.indexOf(o),1),r(l)}})})]},o))})]});function cS({xValue:e,yValue:t,tooltipTitle:r,xAxisLabel:n,yAxisLabel:o,showSideBySide:a,otherDataPoints:i=[],pointMetaData:s,seriesMetaData:l}){var d;const u=e==null?void 0:e.toString(),f=t==null?void 0:t.toString();return c.jsxs(we,{tooltipTitle:r,showSideBySide:a,children:[c.jsx(we.Header,{label:"Review Cycle",value:(d=s==null?void 0:s.reviewCycle)==null?void 0:d.name}),c.jsx(we.Item,{label:n,value:u}),c.jsx(we.Item,{label:o,value:f}),i.map(({label:h,value:p})=>c.jsx(we.Item,{label:h,value:p},h)),c.jsx(we.Footer,{nodeData:l})]})}cS.defaultProps={xValue:void 0,yValue:void 0};var pQ=["id","markerWidth","markerHeight","markerUnits","children"];function H2(){return H2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},H2.apply(this,arguments)}function gQ(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function U2(e){var t=e.id,r=e.markerWidth,n=r===void 0?3:r,o=e.markerHeight,a=o===void 0?3:o,i=e.markerUnits,s=i===void 0?"userSpaceOnUse":i,l=e.children,u=gQ(e,pQ);return M.createElement("defs",null,M.createElement("marker",H2({id:t,markerWidth:n,markerHeight:a,markerUnits:s},u),l))}U2.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 vQ=["id","size","strokeWidth"];function V2(){return V2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},V2.apply(this,arguments)}function mQ(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function yQ(e){var t=e.id,r=e.size,n=r===void 0?9:r,o=e.strokeWidth,a=o===void 0?1:o,i=mQ(e,vQ),s=n+a*2,l=n,u=s/2,f="0 0, "+n+" "+n/2+", 0 "+n;return M.createElement(U2,V2({id:t,markerWidth:s,markerHeight:s,refX:l,refY:u,orient:"auto",markerUnits:"strokeWidth",fill:"none",strokeWidth:a},i),M.createElement("g",{transform:"translate("+a+", "+a+")"},M.createElement("polyline",{points:f})))}var bQ=["id","size","strokeWidth"];function Y2(){return Y2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Y2.apply(this,arguments)}function wQ(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function xQ(e){var t=e.id,r=e.size,n=r===void 0?9:r,o=e.strokeWidth,a=o===void 0?1:o,i=wQ(e,bQ),s=n*2,l=s+a,u=l/2;return M.createElement(U2,Y2({id:t,markerWidth:l,markerHeight:l,refX:0,refY:u,orient:"auto-start-reverse",markerUnits:"strokeWidth",strokeWidth:a},i),M.createElement("circle",{r:n,cx:u,cy:u}))}function CQ({data:e,xAccessor:t,yAccessor:r,connectNulls:n=!1}){const o=M.useContext(gt),a=n?e.filter(i=>i.y!==null):e;return a.length===0?null:c.jsxs(c.Fragment,{children:[c.jsx(xQ,{id:"marker-circle",stroke:"#666",size:6,refX:7,fill:"transparent",strokeWidth:2}),c.jsx(yQ,{id:"marker-arrow",stroke:"#666",size:14,strokeWidth:2,markerUnits:"userSpaceOnUse"}),c.jsx(dw,{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,r(i)))??0},curve:Za,shapeRendering:"geometricPrecision",markerStart:"url(#marker-circle)",markerEnd:"url(#marker-arrow)"})]})}const AQ=({x:e,y:t,datum:r,size:n})=>c.jsx(Fo,{cx:e,cy:t,stroke:r.color.dark,strokeWidth:1,fill:r.color.light,r:n/2}),MQ=({x:e,y:t,datum:r})=>c.jsx(Fo,{cx:e,cy:t,stroke:r.color.dark,strokeWidth:1,fill:r.color.dark,r:5,style:{zIndex:1500}}),jf={xAccessor:e=>e==null?void 0:e.x,yAccessor:e=>e==null?void 0:e.y},uS=(e,t,r)=>r==="pre"?`${t}${e}`:`${e}${t}`,SQ=10,PQ=5,fS=M.forwardRef(({rowsCount:e=3,nodes:t,height:r,width:n,xAxisLabel:o,yAxisLabel:a,xAxisDomain:i,yAxisDomain:s,xAxisUnitSymbol:l,yAxisUnitSymbol:u,tooltipTitle:f,mode:d="mini",xAxisCharLimit:h,connectNulls:p=!1,maxNodesInMiniMode:g=PQ,tooltipStackCharLimit:v=SQ,withBackground:m=!0},y)=>{const b=M.useRef(null),w=e===1;Or(b,y,`${o}-${a}-DirectedLineChart`);const C=M.useMemo(()=>t.map(({seriesMetaData:A},N)=>{const{employee:k}=A;return{id:k.id,name:k.name,color:ke(N)}}).slice(0,d==="mini"?g:t.length),[t,d,g]),[x,_]=M.useState(()=>C.filter((A,N)=>d==="full"||N<g).map(A=>A.id)),T=M.useMemo(()=>t.map((A,N)=>({nodeId:A.seriesMetaData.employee.id,points:A.xValues.map((k,D)=>{var E;let q=null;return w?q=1/t.length*(N+1)+1/(t.length*10)*(D+1):q=((E=A==null?void 0:A.yValues)==null?void 0:E[D])??null,{x:A.xValues[D],y:q,pointMetaData:A.pointsMetaData[D],nodeId:A.seriesMetaData.employee.id,color:ke(N)}})})).slice(0,d==="mini"?g:t.length),[t,d,g,w]),O=M.useMemo(()=>d==="full"?T.filter(({nodeId:A})=>x.includes(A)):T,[T,d,x]),P=M.useMemo(()=>Math.floor((n-(d==="mini"?0:150))/(t[0].xValues.length*8)),[n,d,t]);return c.jsx("div",{ref:b,id:"directed-line-chart",className:R("rabbit-ds flex flex-col",m?"bg-[white]":""),style:{width:n,height:r},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(xn,{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(Xo,{hideTicks:!0,orientation:"bottom",stroke:"#CFD7DF",strokeWidth:1,numTicks:6,tickFormat:A=>l?uS(A,l.symbol,l.position):A,tickComponent:A=>c.jsx(fa,{textLabel:A.formattedValue||"",x:A.x,y:A.y,textStyles:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle"},axisCharLimit:h??P}),label:`${o} ➔`,labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx(Xo,{hideTicks:!0,numTicks:w?0:6,strokeWidth:w?0:1,orientation:"left",stroke:"#CFD7DF",label:a?`${a} ➔`:"",tickFormat:A=>u?uS(A,u.symbol,u.position):A,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"}}),O.map((A,N)=>c.jsxs(c.Fragment,{children:[c.jsx(CQ,{data:A.points,xAccessor:jf.xAccessor,yAccessor:jf.yAccessor,connectNulls:p}),c.jsx(sM,{dataKey:`Performance Management ${N}`,data:A.points,size:8,renderGlyph:AQ,xAccessor:jf.xAccessor,yAccessor:jf.yAccessor})]})),c.jsx(bc,{showDatumGlyph:!0,scroll:!0,showVerticalCrosshair:!0,showHorizontalCrosshair:!0,debounce:500,snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,detectBounds:!0,unstyled:!0,applyPositionStyle:!0,renderGlyph:MQ,renderTooltip:({tooltipData:A})=>{var D,q,E,L,W,B,I,F,U;const N=t.find(K=>{var G;return K.id===((G=A==null?void 0:A.nearestDatum)==null?void 0:G.datum.nodeId)}),k=((D=A==null?void 0:A.nearestDatum)==null?void 0:D.datum)&&String((q=A==null?void 0:A.nearestDatum)==null?void 0:q.datum.x).length<v;return c.jsx(cS,{xValue:(E=A==null?void 0:A.nearestDatum)==null?void 0:E.datum.x,yValue:(L=A==null?void 0:A.nearestDatum)==null?void 0:L.datum.y,xAxisLabel:o,yAxisLabel:a,showSideBySide:!!k,tooltipTitle:f,otherDataPoints:((I=(B=(W=A==null?void 0:A.nearestDatum)==null?void 0:W.datum)==null?void 0:B.pointMetaData)==null?void 0:I.otherDataPoints)??[],seriesMetaData:N==null?void 0:N.seriesMetaData,pointMetaData:(U=(F=A==null?void 0:A.nearestDatum)==null?void 0:F.datum)==null?void 0:U.pointMetaData})}})]})}),d==="full"&&c.jsx(hQ,{nodes:C,seriesSelectorTitle:"Team members",selectedNodeIds:x,setSelectedNodeIds:_})]})})});fS.displayName="LineBase";const G2=M.forwardRef((e,t)=>c.jsx(Br,{debounceTime:10,children:({width:r,height:n})=>c.jsx(fS,{ref:t,width:r,height:n,...e})}));G2.displayName="DirectedLineChart";const _Q=[{"#FFEFD4":"#AF5C20"},{"#DBF2D3":"#44812F"},{"#BFE8C6":"#1A5724"},{"#FFE7C5":"#8C6A00"},{"#FAD4D4":"#C62C02"},{"#EAEAEA":"#333333"},{"#E6F1FD":"#1565BC"},{"#FFE1D9":"#C62C02"}];function OQ({box:e,showCountData:t=!1}){function r(n){if(!n)return"#333";const o=_Q.find(a=>a[n]);return o?o[n]:n}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:r(r(e==null?void 0:e.color))},children:[" ",e==null?void 0:e.label]})}),t&&c.jsxs("span",{className:"text-3xs text-body-secondary",children:[e==null?void 0:e.count," Member",i_(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-radius-600 bg-surface-grey-subtle/40 px-0.5",children:c.jsxs("span",{className:"text-2xs leading-400 text-body-secondary",children:[e==null?void 0:e.percentage,"%"]})})})]})}const TQ=({rows:e,columns:t,boxData:r=[]})=>{let n="";return!r||(r==null?void 0:r.length)===0||(n=r.slice(0,t).reduce((a,i)=>{var f,d,h,p;const s=e===1?"OVERALL":"PERFORMANCE",l=((d=(f=i==null?void 0:i.scoreRange)==null?void 0:f[s])==null?void 0:d.maxScore)??0,u=((p=(h=i==null?void 0:i.scoreRange)==null?void 0:h[s])==null?void 0:p.minScore)??0;return`${a} minmax(20px, ${l-u}fr)`},"")),n},EQ=({rows:e,columns:t,boxData:r=[]})=>{if(e===1)return"1fr";let n="";return!r||(r==null?void 0:r.length)===0||(n=r.filter((a,i)=>i%t===0).reduce((a,i)=>{var f,d,h,p;const s="POTENTIAL",l=((d=(f=i==null?void 0:i.scoreRange)==null?void 0:f[s])==null?void 0:d.maxScore)??0,u=((p=(h=i==null?void 0:i.scoreRange)==null?void 0:h[s])==null?void 0:p.minScore)??0;return`${a} minmax(20px, ${l-u}fr)`},"")),n},$2=M.forwardRef(({rows:e=3,columns:t=3,spacing:r="1px",boxData:n=[],position:o="relative",margin:a="0",width:i="100%",left:s=0,top:l=0,mode:u="mini",showCountData:f=!1},d)=>{const h=M.useRef(null);return Or(h,d,"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:EQ({rows:e,columns:t,boxData:n}),gridTemplateColumns:TQ({rows:e,columns:t,boxData:n}),gap:r,height:"100%"},children:n==null?void 0:n.map((p,g)=>c.jsx("div",{style:{padding:"8px",backgroundColor:(p==null?void 0:p.color)??"#CFD7DF"},children:c.jsx(OQ,{box:p,showCountData:f})},p.label+p.color+g))}),u==="full"&&c.jsx("div",{className:"inline-flex w-64 shrink-0 grow-0"})]})});$2.displayName="GridChart";const dS=M.forwardRef(({directedLineChartProps:e,gridChartProps:t,mode:r="mini"},n)=>{const o=M.useRef(null);return Or(o,n,`${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($2,{...t,mode:r})}),c.jsxs("div",{className:"absolute h-full w-full",children:[c.jsx(G2,{...e,mode:r}),c.jsx("div",{})]})]})});dS.displayName="GridDirectedLineChart";const hS=({xValue:e,yValue:t,tooltipTitle:r,xAxisLabel:n,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(we,{tooltipTitle:r,showSideBySide:a,children:[c.jsx(we.Item,{label:n,value:u}),c.jsx(we.Item,{label:o,value:f}),c.jsx(we.Legend,{value:i,darkColor:s,lightColor:l})]})};hS.defaultProps={xValue:void 0,yValue:void 0};const pa={top:40,right:0,bottom:70,left:70},NQ={fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"},pS={fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"},kQ=({tickData:e,xAxisCharLimit:t,bandwidth:r})=>{const n=Math.floor(r/5);return c.jsx(fa,{textLabel:e.formattedValue||"",x:e.x,y:e.y,textStyles:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle",angle:r&&r<25?-45:0},axisCharLimit:t??n})},gS=M.forwardRef(({width:e,height:t,data:r,xAxisLabel:n="X",yAxisLabel:o="Y",tooltipTitle:a="",xAxisCharLimit:i},s)=>{const l=e-pa.left-pa.right,u=t-pa.top-pa.bottom,f=M.useMemo(()=>yp({range:[0,l],round:!0,domain:r.map(C=>C.x),padding:.4}),[l,r]),d=M.useMemo(()=>Gn({range:[u,0],round:!0,domain:[0,Math.max(...r.map(C=>C.y))]}),[u,r]),{showTooltip:h,hideTooltip:p,tooltipData:g,tooltipLeft:v=0,tooltipTop:m=0}=Ko(),{containerRef:y,TooltipInPortal:b}=Qo({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),w=M.useRef(null);return Or(w,s,`${n}-${o}-BarChart`),e<10?null:c.jsxs("div",{className:"rabbit-ds relative bg-white",ref:w,children:[c.jsx("svg",{width:e,height:t,ref:y,children:c.jsxs(rr,{top:pa.top,left:pa.left,children:[r.map((C,x)=>{const{x:_,y:T}=C,O=f.bandwidth(),P=u-(d(T)??0),A=f(_),N=u-P;return c.jsx(hw,{x:A,y:N,width:O,height:P,fill:"#E9F8FC",stroke:"#0D819F",strokeWidth:1,onMouseMove:k=>{const D=kb(k)||{x:0,y:0};h({tooltipData:{x:_,y:T},tooltipLeft:D.x,tooltipTop:D.y})},onMouseLeave:()=>p()},`bar-${_}-${x}`)}),c.jsx(sY,{top:u,scale:f,label:`${n} ➔`,labelProps:{...pS,dy:22},stroke:"#0D819F",hideTicks:!0,tickComponent:C=>c.jsx(kQ,{tickData:C,xAxisCharLimit:i,bandwidth:f.bandwidth()})}),c.jsx(nY,{scale:d,label:`${o} ➔`,labelProps:pS,stroke:"#0D819F",hideTicks:!0,tickLabelProps:{...NQ,dx:"-0.5em"},numTicks:5})]})}),g&&c.jsx(b,{top:m,left:v,unstyled:!0,applyPositionStyle:!0,children:c.jsx(hS,{xAxisLabel:n,yAxisLabel:o,xValue:g.x,yValue:g.y,showSideBySide:!0,tooltipTitle:a,legendValue:o,legendDarkColor:ke(0).dark,legendLightColor:ke(0).light})},Xt(0,4294967295))]})}),vS=M.forwardRef(({data:e,xAxisLabel:t,yAxisLabel:r,tooltipTitle:n,xAxisCharLimit:o},a)=>c.jsx(Br,{debounceTime:10,children:({width:i,height:s})=>c.jsx(gS,{ref:a,width:i,height:s,data:e,xAxisLabel:t,yAxisLabel:r,tooltipTitle:n,xAxisCharLimit:o})}));vS.displayName="BarChart",gS.displayName="BarChartBase";var ga="ToggleGroup",[mS,AJ]=Ke(ga,[_o]),yS=_o(),X2=M.forwardRef((e,t)=>{const{type:r,...n}=e;if(r==="single"){const o=n;return c.jsx(DQ,{...o,ref:t})}if(r==="multiple"){const o=n;return c.jsx(FQ,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${ga}\``)});X2.displayName=ga;var[bS,wS]=mS(ga),DQ=M.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[i,s]=Qe({prop:r,defaultProp:n,onChange:o});return c.jsx(bS,{scope:e.__scopeToggleGroup,type:"single",value:i?[i]:[],onItemActivate:s,onItemDeactivate:M.useCallback(()=>s(""),[s]),children:c.jsx(xS,{...a,ref:t})})}),FQ=M.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[i=[],s]=Qe({prop:r,defaultProp:n,onChange:o}),l=M.useCallback(f=>s((d=[])=>[...d,f]),[s]),u=M.useCallback(f=>s((d=[])=>d.filter(h=>h!==f)),[s]);return c.jsx(bS,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:l,onItemDeactivate:u,children:c.jsx(xS,{...a,ref:t})})});X2.displayName=ga;var[IQ,LQ]=mS(ga),xS=M.forwardRef((e,t)=>{const{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...l}=e,u=yS(r),f=tn(i),d={role:"group",dir:f,...l};return c.jsx(IQ,{scope:r,rovingFocus:o,disabled:n,children:o?c.jsx(i0,{asChild:!0,...u,orientation:a,dir:f,loop:s,children:c.jsx(ce.div,{...d,ref:t})}):c.jsx(ce.div,{...d,ref:t})})}),Hf="ToggleGroupItem",CS=M.forwardRef((e,t)=>{const r=wS(Hf,e.__scopeToggleGroup),n=LQ(Hf,e.__scopeToggleGroup),o=yS(e.__scopeToggleGroup),a=r.value.includes(e.value),i=n.disabled||e.disabled,s={...e,pressed:a,disabled:i},l=M.useRef(null);return n.rovingFocus?c.jsx(s0,{asChild:!0,...o,focusable:!i,active:a,ref:l,children:c.jsx(AS,{...s,ref:t})}):c.jsx(AS,{...s,ref:t})});CS.displayName=Hf;var AS=M.forwardRef((e,t)=>{const{__scopeToggleGroup:r,value:n,...o}=e,a=wS(Hf,r),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return c.jsx(td,{...s,...o,ref:t,onPressedChange:l=>{l?a.onItemActivate(n):a.onItemDeactivate(n)}})}),BQ=X2,zQ=CS;function qQ({children:e,...t}){return c.jsx(BQ,{className:"flex gap-2",...t,children:e})}function WQ({value:e,disabled:t,selected:r,icon:n,label:o,count:a,...i}){return c.jsx(zQ,{asChild:!0,value:e,...i,children:c.jsx("button",{"data-deer-btn":!0,type:"button",className:R("rabbit-ds inline-flex h-7 w-auto flex-col items-center justify-center rounded-radius-round border border-solid p-0 hover:cursor-pointer","data-[state=off]:border-card-grey-subtle data-[state=off]:bg-surface-grey-subtle data-[state=off]:text-body-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-radius-round px-4 py-1",children:[n?c.jsx(ye,{IconSVG:n,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]})]})})})}var va="NavigationMenu",[K2,MS,jQ]=Tn(va),[Q2,HQ,UQ]=Tn(va),[Z2,MJ]=Ke(va,[jQ,UQ]),[VQ,Gt]=Z2(va),[YQ,GQ]=Z2(va),SS=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,value:n,onValueChange:o,defaultValue:a,delayDuration:i=200,skipDelayDuration:s=300,orientation:l="horizontal",dir:u,...f}=e,[d,h]=S.useState(null),p=ve(t,P=>h(P)),g=tn(u),v=S.useRef(0),m=S.useRef(0),y=S.useRef(0),[b,w]=S.useState(!0),[C="",x]=Qe({prop:n,onChange:P=>{const A=P!=="",N=s>0;A?(window.clearTimeout(y.current),N&&w(!1)):(window.clearTimeout(y.current),y.current=window.setTimeout(()=>w(!0),s)),o==null||o(P)},defaultProp:a}),_=S.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>x(""),150)},[x]),T=S.useCallback(P=>{window.clearTimeout(m.current),x(P)},[x]),O=S.useCallback(P=>{C===P?window.clearTimeout(m.current):v.current=window.setTimeout(()=>{window.clearTimeout(m.current),x(P)},i)},[C,x,i]);return S.useEffect(()=>()=>{window.clearTimeout(v.current),window.clearTimeout(m.current),window.clearTimeout(y.current)},[]),c.jsx(_S,{scope:r,isRootMenu:!0,value:C,dir:g,orientation:l,rootNavigationMenu:d,onTriggerEnter:P=>{window.clearTimeout(v.current),b?O(P):T(P)},onTriggerLeave:()=>{window.clearTimeout(v.current),_()},onContentEnter:()=>window.clearTimeout(m.current),onContentLeave:_,onItemSelect:P=>{x(A=>A===P?"":P)},onItemDismiss:()=>x(""),children:c.jsx(ce.nav,{"aria-label":"Main","data-orientation":l,dir:g,...f,ref:p})})});SS.displayName=va;var PS="NavigationMenuSub",$Q=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,value:n,onValueChange:o,defaultValue:a,orientation:i="horizontal",...s}=e,l=Gt(PS,r),[u="",f]=Qe({prop:n,onChange:o,defaultProp:a});return c.jsx(_S,{scope:r,isRootMenu:!1,value:u,dir:l.dir,orientation:i,rootNavigationMenu:l.rootNavigationMenu,onTriggerEnter:d=>f(d),onItemSelect:d=>f(d),onItemDismiss:()=>f(""),children:c.jsx(ce.div,{"data-orientation":i,...s,ref:t})})});$Q.displayName=PS;var _S=e=>{const{scope:t,isRootMenu:r,rootNavigationMenu:n,dir:o,orientation:a,children:i,value:s,onItemSelect:l,onItemDismiss:u,onTriggerEnter:f,onTriggerLeave:d,onContentEnter:h,onContentLeave:p}=e,[g,v]=S.useState(null),[m,y]=S.useState(new Map),[b,w]=S.useState(null);return c.jsx(VQ,{scope:t,isRootMenu:r,rootNavigationMenu:n,value:s,previousValue:wa(s),baseId:ut(),dir:o,orientation:a,viewport:g,onViewportChange:v,indicatorTrack:b,onIndicatorTrackChange:w,onTriggerEnter:Ve(f),onTriggerLeave:Ve(d),onContentEnter:Ve(h),onContentLeave:Ve(p),onItemSelect:Ve(l),onItemDismiss:Ve(u),onViewportContentChange:S.useCallback((C,x)=>{y(_=>(_.set(C,x),new Map(_)))},[]),onViewportContentRemove:S.useCallback(C=>{y(x=>x.has(C)?(x.delete(C),new Map(x)):x)},[]),children:c.jsx(K2.Provider,{scope:t,children:c.jsx(YQ,{scope:t,items:m,children:i})})})},OS="NavigationMenuList",TS=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...n}=e,o=Gt(OS,r),a=c.jsx(ce.ul,{"data-orientation":o.orientation,...n,ref:t});return c.jsx(ce.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:c.jsx(K2.Slot,{scope:r,children:o.isRootMenu?c.jsx(zS,{asChild:!0,children:a}):a})})});TS.displayName=OS;var ES="NavigationMenuItem",[XQ,NS]=Z2(ES),kS=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,value:n,...o}=e,a=ut(),i=n||a||"LEGACY_REACT_AUTO_VALUE",s=S.useRef(null),l=S.useRef(null),u=S.useRef(null),f=S.useRef(()=>{}),d=S.useRef(!1),h=S.useCallback((g="start")=>{if(s.current){f.current();const v=tg(s.current);v.length&&rg(g==="start"?v:v.reverse())}},[]),p=S.useCallback(()=>{if(s.current){const g=tg(s.current);g.length&&(f.current=nZ(g))}},[]);return c.jsx(XQ,{scope:r,value:i,triggerRef:l,contentRef:s,focusProxyRef:u,wasEscapeCloseRef:d,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:p,onContentFocusOutside:p,children:c.jsx(ce.li,{...o,ref:t})})});kS.displayName=ES;var J2="NavigationMenuTrigger",DS=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,disabled:n,...o}=e,a=Gt(J2,e.__scopeNavigationMenu),i=NS(J2,e.__scopeNavigationMenu),s=S.useRef(null),l=ve(s,i.triggerRef,t),u=jS(a.baseId,i.value),f=HS(a.baseId,i.value),d=S.useRef(!1),h=S.useRef(!1),p=i.value===a.value;return c.jsxs(c.Fragment,{children:[c.jsx(K2.ItemSlot,{scope:r,value:i.value,children:c.jsx(WS,{asChild:!0,children:c.jsx(ce.button,{id:u,disabled:n,"data-disabled":n?"":void 0,"data-state":og(p),"aria-expanded":p,"aria-controls":f,...o,ref:l,onPointerEnter:ne(e.onPointerEnter,()=>{h.current=!1,i.wasEscapeCloseRef.current=!1}),onPointerMove:ne(e.onPointerMove,Vf(()=>{n||h.current||i.wasEscapeCloseRef.current||d.current||(a.onTriggerEnter(i.value),d.current=!0)})),onPointerLeave:ne(e.onPointerLeave,Vf(()=>{n||(a.onTriggerLeave(),d.current=!1)})),onClick:ne(e.onClick,()=>{a.onItemSelect(i.value),h.current=p}),onKeyDown:ne(e.onKeyDown,g=>{const m={horizontal:"ArrowDown",vertical:a.dir==="rtl"?"ArrowLeft":"ArrowRight"}[a.orientation];p&&g.key===m&&(i.onEntryKeyDown(),g.preventDefault())})})})}),p&&c.jsxs(c.Fragment,{children:[c.jsx(m4,{"aria-hidden":!0,tabIndex:0,ref:i.focusProxyRef,onFocus:g=>{const v=i.contentRef.current,m=g.relatedTarget,y=m===s.current,b=v==null?void 0:v.contains(m);(y||!b)&&i.onFocusProxyEnter(y?"start":"end")}}),a.viewport&&c.jsx("span",{"aria-owns":f})]})]})});DS.displayName=J2;var KQ="NavigationMenuLink",FS="navigationMenu.linkSelect",IS=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,active:n,onSelect:o,...a}=e;return c.jsx(WS,{asChild:!0,children:c.jsx(ce.a,{"data-active":n?"":void 0,"aria-current":n?"page":void 0,...a,ref:t,onClick:ne(e.onClick,i=>{const s=i.target,l=new CustomEvent(FS,{bubbles:!0,cancelable:!0});if(s.addEventListener(FS,u=>o==null?void 0:o(u),{once:!0}),es(s,l),!l.defaultPrevented&&!i.metaKey){const u=new CustomEvent(Uf,{bubbles:!0,cancelable:!0});es(s,u)}},{checkForDefaultPrevented:!1})})})});IS.displayName=KQ;var R2="NavigationMenuIndicator",QQ=S.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Gt(R2,e.__scopeNavigationMenu),a=!!o.value;return o.indicatorTrack?uo.createPortal(c.jsx(Re,{present:r||a,children:c.jsx(ZQ,{...n,ref:t})}),o.indicatorTrack):null});QQ.displayName=R2;var ZQ=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...n}=e,o=Gt(R2,r),a=MS(r),[i,s]=S.useState(null),[l,u]=S.useState(null),f=o.orientation==="horizontal",d=!!o.value;S.useEffect(()=>{var v;const g=(v=a().find(m=>m.value===o.value))==null?void 0:v.ref.current;g&&s(g)},[a,o.value]);const h=()=>{i&&u({size:f?i.offsetWidth:i.offsetHeight,offset:f?i.offsetLeft:i.offsetTop})};return ng(i,h),ng(o.indicatorTrack,h),l?c.jsx(ce.div,{"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":o.orientation,...n,ref:t,style:{position:"absolute",...f?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...n.style}}):null}),ma="NavigationMenuContent",LS=S.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Gt(ma,e.__scopeNavigationMenu),a=NS(ma,e.__scopeNavigationMenu),i=ve(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,...n};return o.viewport?c.jsx(JQ,{forceMount:r,...l,ref:i}):c.jsx(Re,{present:r||s,children:c.jsx(BS,{"data-state":og(s),...l,ref:i,onPointerEnter:ne(e.onPointerEnter,o.onContentEnter),onPointerLeave:ne(e.onPointerLeave,Vf(o.onContentLeave)),style:{pointerEvents:!s&&o.isRootMenu?"none":void 0,...l.style}})})});LS.displayName=ma;var JQ=S.forwardRef((e,t)=>{const r=Gt(ma,e.__scopeNavigationMenu),{onViewportContentChange:n,onViewportContentRemove:o}=r;return Ye(()=>{n(e.value,{ref:t,...e})},[e,t,n]),Ye(()=>()=>o(e.value),[e.value,o]),null}),Uf="navigationMenu.rootContentDismiss",BS=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,value:n,triggerRef:o,focusProxyRef:a,wasEscapeCloseRef:i,onRootContentClose:s,onContentFocusOutside:l,...u}=e,f=Gt(ma,r),d=S.useRef(null),h=ve(d,t),p=jS(f.baseId,n),g=HS(f.baseId,n),v=MS(r),m=S.useRef(null),{onItemDismiss:y}=f;S.useEffect(()=>{const w=d.current;if(f.isRootMenu&&w){const C=()=>{var x;y(),s(),w.contains(document.activeElement)&&((x=o.current)==null||x.focus())};return w.addEventListener(Uf,C),()=>w.removeEventListener(Uf,C)}},[f.isRootMenu,e.value,o,y,s]);const b=S.useMemo(()=>{const C=v().map(A=>A.value);f.dir==="rtl"&&C.reverse();const x=C.indexOf(f.value),_=C.indexOf(f.previousValue),T=n===f.value,O=_===C.indexOf(n);if(!T&&!O)return m.current;const P=(()=>{if(x!==_){if(T&&_!==-1)return x>_?"from-end":"from-start";if(O&&x!==-1)return x>_?"to-start":"to-end"}return null})();return m.current=P,P},[f.previousValue,f.value,f.dir,v,n]);return c.jsx(zS,{asChild:!0,children:c.jsx(En,{id:g,"aria-labelledby":p,"data-motion":b,"data-orientation":f.orientation,...u,ref:h,disableOutsidePointerEvents:!1,onDismiss:()=>{var C;const w=new Event(Uf,{bubbles:!0,cancelable:!0});(C=d.current)==null||C.dispatchEvent(w)},onFocusOutside:ne(e.onFocusOutside,w=>{var x;l();const C=w.target;(x=f.rootNavigationMenu)!=null&&x.contains(C)&&w.preventDefault()}),onPointerDownOutside:ne(e.onPointerDownOutside,w=>{var T;const C=w.target,x=v().some(O=>{var P;return(P=O.ref.current)==null?void 0:P.contains(C)}),_=f.isRootMenu&&((T=f.viewport)==null?void 0:T.contains(C));(x||_||!f.isRootMenu)&&w.preventDefault()}),onKeyDown:ne(e.onKeyDown,w=>{var _;const C=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!C){const T=tg(w.currentTarget),O=document.activeElement,P=T.findIndex(k=>k===O),N=w.shiftKey?T.slice(0,P).reverse():T.slice(P+1,T.length);rg(N)?w.preventDefault():(_=a.current)==null||_.focus()}}),onEscapeKeyDown:ne(e.onEscapeKeyDown,w=>{i.current=!0})})})}),eg="NavigationMenuViewport",RQ=S.forwardRef((e,t)=>{const{forceMount:r,...n}=e,a=!!Gt(eg,e.__scopeNavigationMenu).value;return c.jsx(Re,{present:r||a,children:c.jsx(eZ,{...n,ref:t})})});RQ.displayName=eg;var eZ=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,children:n,...o}=e,a=Gt(eg,r),i=ve(t,a.onViewportChange),s=GQ(ma,e.__scopeNavigationMenu),[l,u]=S.useState(null),[f,d]=S.useState(null),h=l?(l==null?void 0:l.width)+"px":void 0,p=l?(l==null?void 0:l.height)+"px":void 0,g=!!a.value,v=g?a.value:a.previousValue;return ng(f,()=>{f&&u({width:f.offsetWidth,height:f.offsetHeight})}),c.jsx(ce.div,{"data-state":og(g),"data-orientation":a.orientation,...o,ref:i,style:{pointerEvents:!g&&a.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":h,"--radix-navigation-menu-viewport-height":p,...o.style},onPointerEnter:ne(e.onPointerEnter,a.onContentEnter),onPointerLeave:ne(e.onPointerLeave,Vf(a.onContentLeave)),children:Array.from(s.items).map(([y,{ref:b,forceMount:w,...C}])=>{const x=v===y;return c.jsx(Re,{present:w||x,children:c.jsx(BS,{...C,ref:ba(b,_=>{x&&_&&d(_)})})},y)})})}),tZ="FocusGroup",zS=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...n}=e,o=Gt(tZ,r);return c.jsx(Q2.Provider,{scope:r,children:c.jsx(Q2.Slot,{scope:r,children:c.jsx(ce.div,{dir:o.dir,...n,ref:t})})})}),qS=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],rZ="FocusGroupItem",WS=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...n}=e,o=HQ(r),a=Gt(rZ,r);return c.jsx(Q2.ItemSlot,{scope:r,children:c.jsx(ce.button,{...n,ref:t,onKeyDown:ne(e.onKeyDown,i=>{if(["Home","End",...qS].includes(i.key)){let l=o().map(d=>d.ref.current);if([a.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(i.key)&&l.reverse(),qS.includes(i.key)){const d=l.indexOf(i.currentTarget);l=l.slice(d+1)}setTimeout(()=>rg(l)),i.preventDefault()}})})})});function tg(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function rg(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}function nZ(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const r=t.dataset.tabindex;t.setAttribute("tabindex",r)})}}function ng(e,t){const r=Ve(t);Ye(()=>{let n=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(e),()=>{window.cancelAnimationFrame(n),o.unobserve(e)}}},[e,r])}function og(e){return e?"open":"closed"}function jS(e,t){return`${e}-trigger-${t}`}function HS(e,t){return`${e}-content-${t}`}function Vf(e){return t=>t.pointerType==="mouse"?e(t):void 0}var oZ=SS,aZ=TS,iZ=kS,sZ=DS,US=IS,lZ=LS;const cZ=Be(["rabbit-ds h-full w-full px-3 py-2 [&>*:first-child]:h-full"],{variants:{variant:{default:""},defaultVariant:{variant:"default"}}});function uZ(){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 VS=M.forwardRef(({className:e,children:t,...r},n)=>c.jsxs("div",{className:"rabbit-ds relative h-screen w-20",children:[c.jsx("div",{className:"absolute h-full w-full",children:c.jsx(uZ,{})}),c.jsx(oZ,{className:R(cZ({className:e})),orientation:"vertical",ref:n,...r,children:c.jsx(aZ,{className:"m-0 flex h-full flex-col p-0",children:t})})]}));VS.displayName="LeftNav";const ag=M.forwardRef(({children:e,asChild:t=!1,...r},n)=>{const o=t?dr:"div";return c.jsx(iZ,{asChild:!0,children:c.jsx(o,{ref:n,className:"rabbit-ds",...r,children:e})})});ag.displayName="LeftNavItem",ag.defaultProps={asChild:!1};const fZ=Be(["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"}}}),YS=M.forwardRef(({children:e,align:t,...r},n)=>c.jsx("div",{ref:n,className:R(fZ({variant:t})),...r,children:e}));YS.displayName="LeftNavItem";const GS=M.forwardRef((e,t)=>c.jsx(US,{ref:t,...e,className:"rabbit-ds z-20 flex size-1400 h-1400 w-1400 cursor-pointer items-center justify-center rounded-radius-100 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"})})]})]})}));GS.displayName="LeftNavHome";const dZ=Be(["rabbit-ds relative flex h-14 w-14 items-center justify-center rounded-radius-200 font-sans text-[10px] text-body-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"}}),hZ=Be("",{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"}}),$S=M.forwardRef(({className:e,variant:t,badgeText:r,icon:n,iconSize:o,isActive:a=!1,children:i,...s},l)=>c.jsx("div",{className:"rabbit-ds",children:c.jsxs(US,{"data-deer-btn":!0,className:R(dZ({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(ye,{IconSVG:n,size:"large"}),t==="withNotification"&&c.jsxs("div",{className:"absolute left-3 flex h-5 w-6 items-center justify-center rounded-radius-300 bg-functional-warn px-2 text-xs text-white",children:[c.jsx("span",{className:"sr-only",children:"Notification"}),r]})]}),c.jsx("div",{className:R(hZ({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(ye,{IconSVG:Ig,size:"large"})})]})}));$S.displayName="LeftNavButton";const pZ=Be("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 gZ({className:e,isCollapsed:t,...r}){return c.jsx("button",{"data-deer-btn":!0,type:"button",className:R(pZ({variant:t?"collapsed":"default"}),e),...r,children:c.jsx(ye,{IconSVG:Eg,className:t?"rotate-180":""})})}const XS=M.createContext({isOpen:!1,toggleOpen:()=>{}}),vZ=()=>M.useContext(XS);function KS({...e}){const{isOpen:t,toggleOpen:r}=vZ();return c.jsx(gZ,{className:`absolute right-0 top-5 z-20 ${t?"":"translate-x-full"}`,isCollapsed:!t,onClick:r,...e})}function mZ(e){const{children:t,defaultOpen:r=!1,showCollapseButton:n=!0}=e,o=e.open!==void 0,[a,i]=M.useState(r),s=M.useCallback(()=>{i(d=>!d)},[]),l=o?e.open:a,u=o?e.onToggle:s,f=M.useMemo(()=>({isOpen:l,toggleOpen:u}),[l,u]);return c.jsx(XS.Provider,{value:f,children:c.jsxs("div",{className:R("rabbit-ds relative h-screen transition-all",l?"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:[n&&c.jsx(KS,{}),c.jsx("div",{className:l?"h-full p-5":"invisible h-0 w-0 scale-0 overflow-hidden opacity-0",children:t})]})})}function yZ({children:e}){return c.jsx("div",{className:R("nav-group flex flex-col gap-1","after:my-4 after:h-[1px] after:w-full after:bg-accent last:after:hidden"),children:e})}function bZ({children:e}){return c.jsx("div",{className:"p-2 text-xs font-semibold text-body-secondary",children:e})}function wZ({children:e,...t}){return c.jsx(v4,{...t,children:e})}const xZ=Be("max-w-[28%] shrink-0",{variants:{orientation:{horizontal:"ml-2",vertical:"mt-2 w-full [&>div]:w-full [&_button]:w-full"}},defaultVariants:{orientation:"horizontal"}});function CZ({className:e,orientation:t,...r}){return c.jsx("div",{className:xZ({orientation:t}),children:c.jsx(St,{className:R(e,"h-auto min-h-10"),variant:"transparentOutline",...r})})}const AZ={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"}},MZ=M.forwardRef(function({title:t,achieved:r,status:n,explanation:o,truncateExplanation:a=!0},i){const s=AZ[n];return c.jsx("div",{ref:i,className:R("rabbit-ds","mr-auto",a?"w-[70%]":""),children:c.jsxs("div",{className:"flex w-full flex-col gap-1",children:[c.jsxs("div",{className:"mt-1 flex items-center",children:[c.jsx(ye,{"aria-hidden":!0,size:"small",className:"text-body-secondary",IconSVG:Fg}),c.jsx("div",{className:"ml-1 text-sm",children:t})]}),c.jsxs("div",{className:"my-1 flex items-end gap-[18px]",children:[c.jsxs("div",{className:"flex flex-col",children:[c.jsx("span",{className:"text-xs text-body-secondary",children:"Achieved"}),c.jsxs("span",{className:R(s.colorScheme,"!bg-transparent text-3xl font-semibold"),children:[r,"%"]})]}),c.jsx(wy,{colorScheme:s.colorScheme,className:"mb-1",children:s.label})]}),o&&c.jsxs("div",{className:R("flex w-full gap-1",a?"items-center":"items-start"),children:[c.jsx(ye,{"aria-hidden":!0,size:"small",className:"text-body-secondary",IconSVG:On}),c.jsx("span",{className:R("w-full text-xs text-body-secondary",a?"truncate":""),children:o})]})]})})});function SZ({employeeName:e,employeeProfilePhoto:t,reviewCycleName:r,reviewType:n,dueBy:o}){return c.jsx("div",{className:"rabbit-ds mr-auto",children:c.jsxs("div",{className:"flex gap-2",children:[c.jsx(pr,{size:"xl",children:c.jsx(gr,{src:t,alt:"Avatar"})}),c.jsxs("div",{className:"flex flex-col items-start text-sm",children:[c.jsxs("div",{className:"flex w-full gap-1",children:[c.jsxs("span",{className:"font-semibold",children:[e," • "]}),c.jsx("span",{className:"text-sm text-body-secondary",children:n})]}),c.jsxs("div",{className:"flex w-full gap-1",children:[c.jsxs("span",{className:"text-body-secondary",children:[r," • "]}),c.jsxs("span",{className:"text-body-secondary",children:["Due by ",o]})]})]})]})})}const QS=M.forwardRef(({employeeName:e,employeeProfilePhoto:t,designation:r,explanation:n,truncateExplanation:o=!0},a)=>c.jsx("div",{ref:a,className:R("rabbit-ds mr-auto",o?"w-[65%]":""),children:c.jsxs("div",{className:"flex w-full gap-2",children:[c.jsx(pr,{size:"xl",children:c.jsx(gr,{src:t,alt:"Avatar"})}),c.jsxs("div",{className:R("flex w-full flex-col items-start text-sm","justify-center"),children:[c.jsxs("div",{className:"flex w-full gap-1",children:[c.jsxs("span",{className:"font-semibold",children:[e," • "]}),c.jsx("span",{className:"text-sm text-body-secondary",children:r})]}),n&&c.jsxs("div",{className:R("mt-1 flex w-full gap-1",o?"items-center":"items-start"),children:[c.jsx(ye,{"aria-hidden":!0,size:"small",className:"text-body-secondary",IconSVG:On}),c.jsx("span",{className:R("w-full text-xs text-body-secondary",o?"truncate":""),children:n})]})]})]})}));QS.displayName="SharePraiseNudgeData";const ZS=M.forwardRef(({employeeName:e,employeeProfilePhoto:t,designation:r,requestReason:n,truncateExplanation:o=!0},a)=>c.jsx("div",{ref:a,className:R("rabbit-ds mr-auto",o?"w-[65%]":""),children:c.jsxs("div",{className:"flex w-full gap-2",children:[c.jsx(pr,{size:"xl",children:c.jsx(gr,{src:t,alt:"Avatar"})}),c.jsxs("div",{className:"flex w-full flex-col items-start text-sm",children:[c.jsxs("div",{className:"flex w-full gap-1",children:[c.jsxs("span",{className:"font-semibold",children:[e," • "]}),c.jsx("span",{className:"text-sm text-body-secondary",children:r})]}),c.jsxs("div",{className:R("mt-1 flex w-full gap-1",o?"items-center":"items-start"),children:[c.jsx(ye,{"aria-hidden":!0,size:"small",className:"text-body-secondary",IconSVG:On}),c.jsx("span",{className:R("w-full text-xs text-body-secondary",o?"truncate":""),children:n})]})]})]})}));ZS.displayName="RequestedFeedbackNudgeData";const PZ=Be("",{variants:{orientation:{horizontal:"flex-row",vertical:"min-w-max flex-col"}},defaultVariants:{orientation:"horizontal"}});function _Z({className:e,children:t,orientation:r}){return c.jsx("div",{className:R("rabbit-ds","flex w-full items-center rounded-radius-200 border border-solid border-[#F3F5F8] bg-[#FDFDFD] p-2",PZ({orientation:r}),e),children:t})}function OZ({nudgeCardList:e,title:t,imgSrc:r,description:n,pageSize:o=3,kebabMenu:a,variant:i="default"}){const[s,l]=M.useState(1),u=e.slice(0,o*s),f=e.length>o,d=e.length===u.length,h=i==="informational",p=()=>{l(g=>d?1:g+1)};return c.jsxs("div",{className:R("rabbit-ds","flex w-full flex-col items-start gap-[7px] rounded-radius-200 bg-white px-4 py-3 shadow-[0px_0px_2px_0px_rgba(0,0,0,0.24)]"),children:[c.jsxs("div",{className:"flex w-full items-start justify-between",children:[c.jsxs("div",{className:"mt-1 flex items-center gap-4",children:[r?c.jsx(pr,{className:"h-16 w-16",children:c.jsx(gr,{src:r,alt:t})}):null,h?c.jsx("div",{className:"flex flex-col gap-[7px]",children:u}):c.jsxs("div",{className:"flex flex-col",children:[c.jsx("span",{className:"text-sm font-semibold",children:t}),c.jsx("span",{className:"text-sm",children:n})]})]}),a]}),!h&&u,f&&c.jsx("div",{className:"mx-auto",children:c.jsxs(St,{variant:"text",onClick:p,iconRight:d?Og:fo,children:["View ",d?"less":"more"]})})]})}function TZ({surveyName:e,date:t}){return c.jsx("div",{className:"rabbit-ds mr-auto",children:c.jsxs("div",{className:"flex gap-2",children:[c.jsx(ye,{IconSVG:zg}),c.jsxs("div",{className:"flex flex-col items-start text-sm",children:[c.jsx("span",{className:"font-semibold",children:e}),c.jsx(Ud,{date:t,showRelativeTime:!0})]})]})})}const JS=M.forwardRef(function({employeeProfilePhoto:t,employeeName:r,scheduleDate:n,duration:o,subTitle:a,explanation:i,truncateExplanation:s=!0},l){return c.jsx("div",{ref:l,className:R("rabbit-ds","mr-auto",s?"w-[70%]":""),children:c.jsxs("div",{className:R("flex items-center gap-2 text-sm","flex-row [&>div]:items-start"),children:[c.jsx(pr,{size:"xl",children:c.jsx(gr,{src:t,alt:r})}),c.jsxs("div",{className:"flex w-full flex-col items-center gap-1",children:[c.jsxs("div",{className:"flex items-center gap-1",children:[c.jsxs("span",{className:"font-semibold",children:[r," • "]}),n?c.jsx(Ud,{date:n,duration:o,timeFormat:"HH:mm a",showTime:!0,className:"text-body-secondary"}):c.jsx("span",{className:"font-semibold",style:{color:"#C62C02"},children:a})]}),i&&c.jsxs("div",{className:R("flex w-[90%] gap-1",s?"items-center":"items-start"),children:[c.jsx(ye,{"aria-hidden":!0,size:"small",className:"text-body-secondary",IconSVG:On}),c.jsx("span",{className:R("w-full text-xs text-body-secondary",s?"truncate":""),children:i})]})]})]})})});JS.defaultProps={subTitle:void 0,scheduleDate:void 0};function EZ({label:e,onClick:t,customCompProps:r}){const[n,o]=M.useState(1);return c.jsxs(b0,{children:[c.jsx(Ks,{children:c.jsx("span",{children:e})}),c.jsx(y0,{children:c.jsx(Qs,{children:c.jsx(Oo,{children:c.jsxs("div",{className:"flex flex-col p-2",children:[c.jsx(os,{htmlFor:r==null?void 0:r.label,className:"text-xs",children:r==null?void 0:r.label}),c.jsx(ns,{id:r==null?void 0:r.label,className:"mt-2 !min-w-[160px]",type:"number",value:n,onChange:a=>o(a.target.valueAsNumber),min:1}),c.jsx("div",{className:"flex justify-end",children:c.jsx(St,{className:"mt-2",onClick:()=>t(n),disabled:n<1||Number.isNaN(n),children:r==null?void 0:r.buttonText})})]})})})})]})}function NZ({options:e}){const[t,r]=M.useState(!1),n=(o,a)=>{o(a),r(!1)};return c.jsxs(Gs,{open:t,children:[c.jsx($s,{asChild:!0,onClick:()=>r(!0),children:c.jsx(St,{variant:"text",size:"smallIcon",children:c.jsx(ye,{IconSVG:Dg})})}),c.jsx(ja,{className:"w-56",onFocusOutside:()=>r(!1),onPointerDownOutside:()=>r(!1),children:c.jsx(Oo,{children:e.map(({type:o,onClick:a,label:i,customCompProps:s})=>!o||o==="default"?c.jsx(Ha,{onClick:()=>n(a),children:c.jsx("span",{children:i})},i):c.jsx(EZ,{onClick:l=>n(a,l),label:i,customCompProps:s},i))})})]})}const RS=Ha,eP=Oo,tP=Xs,rP=Rs,nP=Zs,oP=Js,aP=M.forwardRef(({className:e,children:t,align:r="end",...n},o)=>c.jsx(ja,{ref:o,align:r,...n,children:t}));aP.displayName="SplitButtonDropdownContent";const kZ=Be("",{variants:{size:{normal:"icon",small:"smallIcon",icon:"icon",smallIcon:"smallIcon",nav:"icon"}},defaultVariants:{size:"normal"}});function DZ({children:e,size:t,status:r,variant:n,...o}){return c.jsx("div",{className:"rabbit-ds flex flex-row",children:c.jsxs(Gs,{children:[c.jsx(St,{variant:n,status:r,size:t,...o,className:"rounded-r-none",children:e}),c.jsx($s,{asChild:!0,children:c.jsx(St,{variant:n,status:r,className:"rounded-l-none border-l-0",size:kZ({size:t}),iconLeft:fo})})]})})}RS.displayName="SplitButtonDropdownItem",eP.displayName="SplitButtonDropdownGroup",tP.displayName="SplitButtonDropdownRadioGroup",rP.displayName="SplitButtonDropdownLabel",nP.displayName="SplitButtonDropdownCheckboxItem",oP.displayName="SplitButtonDropdownRadioItem";const iP=({bold:e=!1,xbold:t=!1,color:r="text-body-primary"})=>R("rabbit-ds-text",t?"font-bold":e?"font-semibold":"font-normal",r),FZ=({children:e,className:t,...r})=>c.jsx("h3",{className:R("text-350sm leading-500",iP(r),t),children:e}),IZ=({children:e,className:t,...r})=>c.jsx("p",{className:R("text-300sm leading-400",iP(r),t),children:e}),sP=M.forwardRef(({children:e,className:t,...r},n)=>c.jsx("div",{className:R("rabbit-ds flex gap-200 p-300",t),...r,ref:n,children:e}));sP.displayName="ListItemComp";const lP=M.forwardRef(({children:e,className:t,...r},n)=>c.jsx("div",{className:R("flex shrink-0 items-center gap-200",t),...r,ref:n,children:e}));lP.displayName="ListItemCompLeading";const cP=M.forwardRef(({children:e,className:t,...r},n)=>c.jsx("div",{className:R("flex grow flex-col justify-center",t),...r,ref:n,children:e}));cP.displayName="ListItemCompContent";const uP=({children:e,className:t,...r})=>c.jsx(FZ,{bold:!0,className:R("text-body-primary",t),...r,children:e});uP.displayName="ListItemCompTitle";const fP=({children:e,className:t,...r})=>c.jsx(IZ,{className:R("text-body-secondary",t),...r,children:e});fP.displayName="ListItemCompDescription";const dP=M.forwardRef(({children:e,className:t,...r},n)=>c.jsx("div",{className:R("flex shrink-0 items-center gap-200",t),...r,ref:n,children:e}));dP.displayName="ListItemCompAction";const LZ=({maxRating:e=5,initialRating:t=0,onRatingChange:r,variant:n="number",customRatings:o})=>{const[a,i]=M.useState(t),s=u=>{i(u),r&&r(u)},l=u=>{if(o){const f=o.find(d=>d.value===u);if(f)return f.svg?f.svg:f.value}switch(n){case"star":return"★";case"emoji":return"😊";case"rate":return`${u}/10`;case"number":default:return u}};return c.jsx("div",{className:"flex gap-1",children:Array.from({length:e},(u,f)=>f+1).map(u=>c.jsx(St,{className:R(a===u?"border-[2px] border-solid border-button-primary-active bg-surface-alpha-primary text-active hover:bg-surface-alpha-primary focus:border-button-primary-active focus:bg-surface-alpha-primary":"border-card-neutral-moderate text-body-primary hover:border-card-grey-intense hover:bg-surface-grey-subtle hover:text-body-primary","h-[40px] w-[40px] border-[2px] border-solid"),variant:a===u?"filled":"outline",onClick:()=>s(u),children:l(u)},u))})};j.AICard=kv,j.Accordion=Xv,j.AccordionContent=Zv,j.AccordionItem=Kv,j.AccordionTrigger=Qv,j.Add=s_,j.AddPerson=l_,j.Alert=Jv,j.AlertDescription=em,j.AlertDialogAction=d3,j.AlertDialogCancel=f3,j.AlertDialogComponent=nN,j.AlertDialogContainer=c3,j.AlertDialogContent=Ld,j.AlertDialogDescription=zd,j.AlertDialogOverlay=Id,j.AlertDialogPortal=u3,j.AlertDialogTitle=Bd,j.AlertDialogTrigger=h3,j.AlertIcon=Rv,j.Avatar=pr,j.AvatarBadge=el,j.AvatarFallback=Ms,j.AvatarGroup=U0,j.AvatarImage=gr,j.BarChart=vS,j.Breadcrumb=ky,j.BreadcrumbEllipsis=zy,j.BreadcrumbItem=Fy,j.BreadcrumbLink=Iy,j.BreadcrumbList=Dy,j.BreadcrumbPage=Ly,j.BreadcrumbSeparator=By,j.Button=St,j.Calendar=c_,j.Caption=Wd,j.Card=Pa,j.CardContent=pd,j.CardDescription=Mv,j.CardHeader=Av,j.CardKPI=JL,j.CardTitle=hd,j.Carousel=az,j.CarouselContainer=iz,j.CarouselNextButton=lz,j.CarouselPrevButton=sz,j.Channel=u_,j.Check=Aa,j.CheckCircleOutline=Sg,j.Checkbox=Ma,j.ChevronDown=fo,j.ChevronLeft=f_,j.ChevronLeftCircle=Pg,j.ChevronRight=rs,j.ChevronRightCircle=_g,j.ChevronUp=Og,j.Chip=bO,j.ChipGroup=qQ,j.ChipGroupItem=WQ,j.CircleChevronRight=d_,j.Close=Tg,j.CollapseNavigation=Eg,j.CollapsibleCard=Sv,j.ColumnFilter=Ng,j.ColumnFilterCheck=qg,j.Company=h_,j.CompanySettings=p_,j.CompetenciesThin=g_,j.Country=v_,j.Cross=m_,j.Currency=y_,j.DateTime=Ud,j.Delete=b_,j.Develop=w_,j.DirectedLineChart=G2,j.DisplayName=x_,j.DonutChart=RM,j.Download=C_,j.Dropdown=Gs,j.DropdownCheckboxItem=Zs,j.DropdownChip=p4,j.DropdownContent=ja,j.DropdownGroup=Oo,j.DropdownItem=Ha,j.DropdownLabel=Rs,j.DropdownPortal=y0,j.DropdownRadioGroup=Xs,j.DropdownRadioItem=Js,j.DropdownSeparator=w0,j.DropdownSub=b0,j.DropdownSubContent=Qs,j.DropdownSubTrigger=Ks,j.DropdownTrigger=$s,j.EmployeeIdBadge=A_,j.Engagement=M_,j.EngagementNudgeData=TZ,j.ErrorOutline=ed,j.ExpandDown=S_,j.ExpandRight=kg,j.Feedback=P_,j.Gear=__,j.Goal=O_,j.GoalFrequency=T_,j.GoalsCollaborators=E_,j.GoalsNudgeData=MZ,j.GoalsThin=N_,j.GridChart=$2,j.GridDirectedLineChart=dS,j.Help=k_,j.Help2=D_,j.HistogramChart=QM,j.HistoryComments=F_,j.Home=I_,j.HoverCard=$L,j.HoverCardContent=Gy,j.HoverCardPortal=KL,j.HoverCardTrigger=XL,j.Icon=ye,j.Info=L_,j.InfoWorkZero=On,j.Initiatives=B_,j.Input=ns,j.KebabMenu=Dg,j.KnowTeamNudgeData=JS,j.Label=os,j.LeftNav=VS,j.LeftNavButton=$S,j.LeftNavGroup=YS,j.LeftNavHome=GS,j.LeftNavItem=ag,j.LeftNavItemContent=lZ,j.LeftNavItemDropdown=Gs,j.LeftNavItemDropdownCheckboxItem=Zs,j.LeftNavItemDropdownContent=ja,j.LeftNavItemDropdownGroup=Oo,j.LeftNavItemDropdownItem=Ha,j.LeftNavItemDropdownLabel=Rs,j.LeftNavItemDropdownPortal=y0,j.LeftNavItemDropdownRadioGroup=Xs,j.LeftNavItemDropdownRadioItem=Js,j.LeftNavItemDropdownSeparator=w0,j.LeftNavItemDropdownSub=b0,j.LeftNavItemDropdownSubContent=Qs,j.LeftNavItemDropdownSubTrigger=Ks,j.LeftNavItemDropdownTrigger=$s,j.LeftNavItemTrigger=sZ,j.LineChart=LM,j.ListItem=v4,j.ListItemComp=sP,j.ListItemCompAction=dP,j.ListItemCompContent=cP,j.ListItemCompDescription=fP,j.ListItemCompLeading=lP,j.ListItemCompTitle=uP,j.ListItemIcon=JF,j.ListItemText=QF,j.Logout=z_,j.Manager=q_,j.ManagerWithBorder=W_,j.MeshLogo=Wg,j.MeshMaven=uO,j.MeshMavenAsk=fO,j.MeshMavenDisabledThumbsUp=dO,j.MeshMavenGlassesOnDefault=hO,j.MeshMavenWithHording=pO,j.MeshMavenWithOrangeBulb=gO,j.MeshMavenWithThumbsUp=vO,j.Metric=Qy,j.MetricCard=Ky,j.MetricCardStatText=G0,j.MetricCardText=pl,j.MetricCardTitle=Zy,j.Milestone=j_,j.MyOneOnOne=H_,j.MySettings=U_,j.NavCollapseButtonL2=KS,j.NavGroupL2=yZ,j.NavGroupTitleL2=bZ,j.NavItemL2=wZ,j.NavL2=mZ,j.NewPassword=V_,j.Notifications=Y_,j.NudgeAction=CZ,j.NudgeCard=OZ,j.NudgeCardItem=_Z,j.NudgeKebabMenu=NZ,j.Objective=Fg,j.OneOnOne=G_,j.OneOnOneThin=$_,j.Overflow=Ig,j.Peer=X_,j.Person=K_,j.Product=Q_,j.ProfileCard=$0,j.ProfileCardItem=Jy,j.ProfileCardKey=Ry,j.ProfileCardValue=e8,j.ProgressBar=tv,j.ProgressInfo=QL,j.ProgressSlider=eT,j.RadarChart=nS,j.Rating=LZ,j.RequestFeedback=Z_,j.RequestedFeedbackNudgeData=ZS,j.Reset=J_,j.Reviews=R_,j.ReviewsNudgeData=SZ,j.Role=eO,j.SankeyChart=YM,j.Search=Lg,j.Select=TI,j.SelectContent=Z4,j.SelectGroup=EI,j.SelectItem=R4,j.SelectLabel=J4,j.SelectSeparator=ey,j.SelectTrigger=Q4,j.SelectValue=NI,j.SelfScore=tO,j.Settings=rO,j.SettingsFeedback=nO,j.SettingsGoals=oO,j.SettingsSchedule=aO,j.ShareFeedback=iO,j.SharePraiseNudgeData=QS,j.SliderDrag=Bg,j.SplitButton=DZ,j.SplitButtonDropdownCheckboxItem=nP,j.SplitButtonDropdownContent=aP,j.SplitButtonDropdownGroup=eP,j.SplitButtonDropdownItem=RS,j.SplitButtonDropdownLabel=rP,j.SplitButtonDropdownRadioGroup=tP,j.SplitButtonDropdownRadioItem=oP,j.SplitDetails=sO,j.StackedBarChart=lS,j.Survey=zg,j.Switch=Nv,j.Tabs=vy,j.TabsContent=by,j.TabsList=my,j.TabsTrigger=yy,j.Tag=wy,j.Task=lO,j.Team=cO,j.Toaster=DL,j.Tooltip=L0,j.TooltipContent=ll,j.TooltipPortal=z0,j.TooltipProvider=I0,j.TooltipTrigger=B0,j.TrendingDown=jg,j.TrendingUp=Hg,j.getInitialsFromName=A3,j.toast=wL,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.41.0",
4
+ "version": "1.41.1",
5
5
  "main": "./dist/@mesh.ai/rabbit.umd.js",
6
6
  "module": "./dist/@mesh.ai/rabbit.es.js ",
7
7
  "types": "./dist/index.d.ts",