@mesh.ai/rabbit 1.43.3 → 1.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@mesh.ai/rabbit.es.js +11 -10
- package/dist/@mesh.ai/rabbit.umd.js +1 -1
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -36751,26 +36751,27 @@ function dK({ ...e }) {
|
|
|
36751
36751
|
);
|
|
36752
36752
|
}
|
|
36753
36753
|
function kZ(e) {
|
|
36754
|
-
const { children: t, defaultOpen: n = !1, showCollapseButton: r = !0 } = e,
|
|
36755
|
-
|
|
36756
|
-
}, []),
|
|
36757
|
-
() => ({ isOpen:
|
|
36758
|
-
[
|
|
36754
|
+
const { children: t, defaultOpen: n = !1, showCollapseButton: r = !0, isNetchexStyle: o = !1 } = e, a = e.open !== void 0, [i, s] = Ye(n), l = ye(() => {
|
|
36755
|
+
s((h) => !h);
|
|
36756
|
+
}, []), u = a ? e.open : i, c = a ? e.onToggle : l, d = fe(
|
|
36757
|
+
() => ({ isOpen: u, toggleOpen: c }),
|
|
36758
|
+
[u, c]
|
|
36759
36759
|
);
|
|
36760
|
-
return /* @__PURE__ */ f(qM.Provider, { value:
|
|
36760
|
+
return /* @__PURE__ */ f(qM.Provider, { value: d, children: /* @__PURE__ */ B(
|
|
36761
36761
|
"div",
|
|
36762
36762
|
{
|
|
36763
36763
|
className: J(
|
|
36764
36764
|
"rabbit-ds relative h-screen transition-all",
|
|
36765
|
-
|
|
36766
|
-
"shadow-[-8px_-2px_8px_0px_rgba(0,0,0,0.08)_inset]"
|
|
36765
|
+
u ? "w-full" : "w-0",
|
|
36766
|
+
o ? "" : "shadow-[-8px_-2px_8px_0px_rgba(0,0,0,0.08)_inset]"
|
|
36767
36767
|
),
|
|
36768
36768
|
style: {
|
|
36769
|
-
background: "linear-gradient(273deg, #E7EFF1 0%, #EEF5F8 11%, #EFFAFE 100%)"
|
|
36769
|
+
background: o ? "#f9fafb" : "linear-gradient(273deg, #E7EFF1 0%, #EEF5F8 11%, #EFFAFE 100%)",
|
|
36770
|
+
borderRight: o && u ? "1px solid #e5e7eb" : "none"
|
|
36770
36771
|
},
|
|
36771
36772
|
children: [
|
|
36772
36773
|
r && /* @__PURE__ */ f(dK, {}),
|
|
36773
|
-
/* @__PURE__ */ f("div", { className:
|
|
36774
|
+
/* @__PURE__ */ f("div", { className: u ? "h-full p-5" : "invisible size-0 scale-0 overflow-hidden opacity-0", children: t })
|
|
36774
36775
|
]
|
|
36775
36776
|
}
|
|
36776
36777
|
) });
|
|
@@ -99,4 +99,4 @@ z`).split(`
|
|
|
99
99
|
`)} {
|
|
100
100
|
${O}
|
|
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 DK(v,r),o.timeEnd("embed web font")),o.time("embed node"),NM(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(g==null?void 0:g(v));const w=qK(v,r);return s&&w.insertBefore(s,w.children[0]),i&&w.insertBefore(i,w.children[0]),d&&SK(r),await(p==null?void 0:p(w)),w}function qK(e,t){const{width:r,height:n}=t,o=RX(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 WK(e,t){var i;const r=await If(e,t),n=await zK(r),o=eK(n,r.isEnable("removeControlCharacter"));r.autoDestruct||(r.svgStyleElement=xM(r.ownerDocument),r.svgDefsElement=(i=r.ownerDocument)==null?void 0:i.createElementNS(Ff,"defs"),r.svgStyles.clear());const a=pa(o,n.ownerDocument);return await lK(a,r)}async function HK(e,t){const r=await If(e,t),{log:n,quality:o,type:a,dpi:i}=r,s=await WK(r);n.time("canvas to data url");let l=s.toDataURL(a,o);if(["image/png","image/jpeg"].includes(a)&&i&&IX&&LX){const[u,f]=l.split(",");let d=0,h=!1;if(a==="image/png"){const w=DX(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 g=f.substring(0,d),p=f.substring(d),v=window.atob(g),m=new Uint8Array(v.length);for(let w=0;w<m.length;w++)m[w]=v.charCodeAt(w);const y=a==="image/png"?TX(m,i,h):SX(m,i),b=window.btoa(String.fromCharCode(...y));l=[u,",",b,p].join("")}return n.timeEnd("canvas to data url"),l}async function jK(e,t){return HK(await If(e,{...t,type:"image/png"}))}const Or=(e,t,r)=>{M.useImperativeHandle(t,()=>({download(){e.current&&jK(e.current,{scale:5}).then(n=>{const o=document.createElement("a");o.download=`${r}.png`,o.href=n,o.click()})}}))},FM=[{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 FM[e%FM.length]}const Lf=(e,t)=>M.Children.map(e,r=>M.isValidElement(r)&&typeof r.type=="function"&&r.type.displayName===t.displayName?r:null);function D2({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 size-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 F2({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 I2({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 L2({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=Lf(e,D2),o=Lf(e,F2),a=Lf(e,I2),i=Lf(e,L2);return c.jsxs("div",{className:"rabbit-ds relative z-[1500] inline-flex size-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]})}D2.displayName="Legend",F2.displayName="Item",I2.displayName="Header",L2.displayName="Footer",we.Legend=D2,we.Item=F2,we.Header=I2,we.Footer=L2,we.defaultProps={showSideBySide:!1};function IM({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})]})}IM.defaultProps={xValue:void 0,yValue:void 0};function UK({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(pw,{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 VK=({x:e,y:t,datum:r,size:n})=>c.jsx(Io,{cx:e,cy:t,stroke:r.color.dark,strokeWidth:1,fill:r.color.light,r:n/2}),YK=({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(da,{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})},GK=({x:e,y:t,datum:r})=>c.jsx(Io,{cx:e,cy:t,stroke:r.color.dark,strokeWidth:1,fill:r.color.dark,r:5,style:{zIndex:1500}}),Bf={xAccessor:e=>e.x,yAccessor:e=>e.y},LM=(e,t,r)=>r==="pre"?`${t}${e}`:`${e}${t}`,BM=10,$K=5,B2=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:g,connectNulls:p=!1,maxNodesInMiniMode:v=$K,tooltipStackCharLimit:m=BM,seriesSelectorTitle:y,preselectedNodes:b},w)=>{const[C,x]=M.useState(()=>(b&&b<=e.length?e.slice(0,b):e).map(A=>A.id)),O=M.useRef(null);Or(O,w,`${a}-${i}-LineChart`);const T=M.useMemo(()=>o.map((P,A)=>{const N=e.find(D=>D.id===P.id);return{points:P.data.map((D,F)=>({x:n[F],y:Number(D),nodeId:P.id,color:(N==null?void 0:N.color)??ke(A)}))}}).slice(0,h==="mini"?v:o.length),[o,h,v,e,n]),E=M.useMemo(()=>h==="full"?T.filter(P=>C.includes(P.points[0].nodeId)):T,[T,C,h]);return c.jsxs("div",{ref:O,id:"line-chart",className:"rabbit-ds flex flex-col bg-white",style:{width:r,height:t},children:[c.jsxs("div",{className:"flex size-full min-h-0 min-w-0 flex-row",children:[c.jsx("div",{className:"size-full min-h-0 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(Sw,{columns:!1,numTicks:6,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),c.jsx(Ko,{hideTicks:!0,orientation:"bottom",stroke:"#CFD7DF",strokeWidth:1,numTicks:30,tickFormat:P=>u?LM(P,u.symbol,u.position):P,rangePadding:{end:10},tickComponent:P=>c.jsx(YK,{tickData:P,xAxisCharLimit:g}),label:`${a} ➔`,labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx(Ko,{hideTicks:!0,numTicks:6,strokeWidth:1,orientation:"left",stroke:"#CFD7DF",label:`${i} ➔`,tickFormat:P=>f?LM(_t(P>=1e3?"~s":"")(P),f.symbol,f.position):_t(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"}}),E.map((P,A)=>c.jsxs(c.Fragment,{children:[c.jsx(UK,{data:P.points,xAccessor:Bf.xAccessor,yAccessor:Bf.yAccessor,connectNulls:p}),c.jsx(cM,{dataKey:`Performance Management ${A}`,data:P.points,size:8,renderGlyph:VK,xAccessor:Bf.xAccessor,yAccessor:Bf.yAccessor})]})),c.jsx(wc,{showDatumGlyph:!0,scroll:!0,debounce:500,snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,detectBounds:!0,unstyled:!0,applyPositionStyle:!0,renderGlyph:GK,renderTooltip:({tooltipData:P})=>{var D,F,W,_,k,q;const A=e.find(B=>{var I;return B.id===((I=P==null?void 0:P.nearestDatum)==null?void 0:I.datum.nodeId)}),N=((D=P==null?void 0:P.nearestDatum)==null?void 0:D.datum)&&((F=P==null?void 0:P.nearestDatum)==null?void 0:F.datum.x.length)<m;return c.jsx(IM,{xValue:(W=P==null?void 0:P.nearestDatum)==null?void 0:W.datum.x,yValue:(_=P==null?void 0:P.nearestDatum)==null?void 0:_.datum.y,xAxisLabel:a,yAxisLabel:i,showSideBySide:!!N,tooltipTitle:d,legendValue:(A==null?void 0:A.name)||"",legendDarkColor:((k=P==null?void 0:P.nearestDatum)==null?void 0:k.datum.color.dark)||ke(0).dark,legendLightColor:((q=P==null?void 0:P.nearestDatum)==null?void 0:q.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}),"(",E.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 size-3 rounded-radius-round border"}),A.name]}),c.jsx("div",{className:"flex items-center",children:c.jsx(Sa,{checked:C.includes(A.id),onCheckedChange:N=>{let D=[...C];N?D=[...C,A.id]:D.splice(C.indexOf(A.id),1),x(D)}})})]},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:"size-3 rounded-radius-round border"}),A==null?void 0:A.name]},A==null?void 0:A.id)})})]})}),XK={xAxisUnitSymbol:void 0,yAxisUnitSymbol:void 0,mode:"mini",xAxisCharLimit:void 0,tooltipStackCharLimit:BM,xAxisDomain:void 0,yAxisDomain:void 0,connectNulls:!1};B2.defaultProps=XK,B2.displayName="LineBase";const zM=M.forwardRef((e,t)=>c.jsx(Br,{debounceTime:10,children:({width:r,height:n})=>c.jsx(B2,{ref:t,width:r,height:n,...e})}));zM.displayName="LineChart";function qM(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 KK(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 z2(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 QK(e,t){return e.sourceLinks.length?e.depth:t-1}function zf(e){return function(){return e}}function WM(e,t){return qf(e.source,t.source)||e.index-t.index}function HM(e,t){return qf(e.target,t.target)||e.index-t.index}function qf(e,t){return e.y0-t.y0}function q2(e){return e.value}function ZK(e){return e.index}function JK(e){return e.nodes}function RK(e){return e.links}function jM(e,t){const r=e.get(t);if(!r)throw new Error("missing: "+t);return r}function UM({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 eQ(){let e=0,t=0,r=1,n=1,o=24,a=8,i,s=ZK,l=QK,u,f,d=JK,h=RK,g=6;function p(){const _={nodes:d.apply(null,arguments),links:h.apply(null,arguments)};return v(_),m(_),y(_),b(_),x(_),UM(_),_}p.update=function(_){return UM(_),_},p.nodeId=function(_){return arguments.length?(s=typeof _=="function"?_:zf(_),p):s},p.nodeAlign=function(_){return arguments.length?(l=typeof _=="function"?_:zf(_),p):l},p.nodeSort=function(_){return arguments.length?(u=_,p):u},p.nodeWidth=function(_){return arguments.length?(o=+_,p):o},p.nodePadding=function(_){return arguments.length?(a=i=+_,p):a},p.nodes=function(_){return arguments.length?(d=typeof _=="function"?_:zf(_),p):d},p.links=function(_){return arguments.length?(h=typeof _=="function"?_:zf(_),p):h},p.linkSort=function(_){return arguments.length?(f=_,p):f},p.size=function(_){return arguments.length?(e=t=0,r=+_[0],n=+_[1],p):[r-e,n-t]},p.extent=function(_){return arguments.length?(e=+_[0][0],r=+_[1][0],t=+_[0][1],n=+_[1][1],p):[[e,t],[r,n]]},p.iterations=function(_){return arguments.length?(g=+_,p):g};function v({nodes:_,links:k}){for(const[B,I]of _.entries())I.index=B,I.sourceLinks=[],I.targetLinks=[];const q=new Map(_.map((B,I)=>[s(B,I,_),B]));for(const[B,I]of k.entries()){I.index=B;let{source:L,target:U}=I;typeof L!="object"&&(L=I.source=jM(q,L)),typeof U!="object"&&(U=I.target=jM(q,U)),L.sourceLinks.push(I),U.targetLinks.push(I)}if(f!=null)for(const{sourceLinks:B,targetLinks:I}of _)B.sort(f),I.sort(f)}function m({nodes:_}){for(const k of _)k.value=k.fixedValue===void 0?Math.max(z2(k.sourceLinks,q2),z2(k.targetLinks,q2)):k.fixedValue}function y({nodes:_}){const k=_.length;let q=new Set(_),B=new Set,I=0;for(;q.size;){for(const L of q){L.depth=I;for(const{target:U}of L.sourceLinks)B.add(U)}if(++I>k)throw new Error("circular link");q=B,B=new Set}}function b({nodes:_}){const k=_.length;let q=new Set(_),B=new Set,I=0;for(;q.size;){for(const L of q){L.height=I;for(const{source:U}of L.targetLinks)B.add(U)}if(++I>k)throw new Error("circular link");q=B,B=new Set}}function w({nodes:_}){const k=qM(_,I=>I.depth)+1,q=(r-e-o)/(k-1),B=new Array(k);for(const I of _){const L=Math.max(0,Math.min(k-1,Math.floor(l.call(null,I,k))));I.layer=L,I.x0=e+L*q,I.x1=I.x0+o,B[L]?B[L].push(I):B[L]=[I]}if(u)for(const I of B)I.sort(u);return B}function C(_){const k=KK(_,q=>(n-t-(q.length-1)*i)/z2(q,q2));for(const q of _){let B=t;for(const I of q){I.y0=B,I.y1=B+I.value*k,B=I.y1+i;for(const L of I.sourceLinks)L.width=L.value*k}B=(n-B+i)/(q.length+1);for(let I=0;I<q.length;++I){const L=q[I];L.y0+=B*(I+1),L.y1+=B*(I+1)}D(q)}}function x(_){const k=w(_);i=Math.min(a,(n-t)/(qM(k,q=>q.length)-1)),C(k);for(let q=0;q<g;++q){const B=Math.pow(.99,q),I=Math.max(1-B,(q+1)/g);T(k,B,I),O(k,B,I)}}function O(_,k,q){for(let B=1,I=_.length;B<I;++B){const L=_[B];for(const U of L){let X=0,G=0;for(const{source:V,value:Z}of U.targetLinks){let $=Z*(U.layer-V.layer);X+=F(V,U)*$,G+=$}if(!(G>0))continue;let z=(X/G-U.y0)*k;U.y0+=z,U.y1+=z,N(U)}u===void 0&&L.sort(qf),E(L,q)}}function T(_,k,q){for(let B=_.length,I=B-2;I>=0;--I){const L=_[I];for(const U of L){let X=0,G=0;for(const{target:V,value:Z}of U.sourceLinks){let $=Z*(V.layer-U.layer);X+=W(U,V)*$,G+=$}if(!(G>0))continue;let z=(X/G-U.y0)*k;U.y0+=z,U.y1+=z,N(U)}u===void 0&&L.sort(qf),E(L,q)}}function E(_,k){const q=_.length>>1,B=_[q];A(_,B.y0-i,q-1,k),P(_,B.y1+i,q+1,k),A(_,n,_.length-1,k),P(_,t,0,k)}function P(_,k,q,B){for(;q<_.length;++q){const I=_[q],L=(k-I.y0)*B;L>1e-6&&(I.y0+=L,I.y1+=L),k=I.y1+i}}function A(_,k,q,B){for(;q>=0;--q){const I=_[q],L=(I.y1-k)*B;L>1e-6&&(I.y0-=L,I.y1-=L),k=I.y0-i}}function N({sourceLinks:_,targetLinks:k}){if(f===void 0){for(const{source:{sourceLinks:q}}of k)q.sort(HM);for(const{target:{targetLinks:q}}of _)q.sort(WM)}}function D(_){if(f===void 0)for(const{sourceLinks:k,targetLinks:q}of _)k.sort(HM),q.sort(WM)}function F(_,k){let q=_.y0-(_.sourceLinks.length-1)*i/2;for(const{target:B,width:I}of _.sourceLinks){if(B===k)break;q+=I+i}for(const{source:B,width:I}of k.targetLinks){if(B===_)break;q-=I}return q}function W(_,k){let q=k.y0-(k.targetLinks.length-1)*i/2;for(const{source:B,width:I}of k.targetLinks){if(B===_)break;q+=I+i}for(const{target:B,width:I}of _.sourceLinks){if(B===k)break;q-=I}return q}return p}function tQ({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 VM=80,YM=20,rQ=30,nQ=12,GM=M.forwardRef(({height:e,width:t,tooltipTitle:r,nodes:n,links:o,groups:a,weightLabel:i},s)=>{const l=M.useMemo(()=>eQ().nodeId(_=>_.id).nodeWidth(nQ).nodePadding(rQ).nodeAlign(_=>_.group),[]),u=M.useRef(null);Or(u,s,`${r}-SankeyChart`);const[f,d]=M.useState(""),[h,g]=M.useState(null),{tooltipData:p,tooltipLeft:v,tooltipTop:m,tooltipOpen:y,showTooltip:b,hideTooltip:w}=Qo(),{containerBounds:C,containerRef:x,TooltipInPortal:O}=Zo({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),T=M.useMemo(()=>l.extent([[VM,YM],[t-VM,e-YM-50]])({nodes:n,links:o.map(_=>({..._,value:Number(_.weight)}))}),[e,t,l,n,o]),E=M.useMemo(()=>Math.max(...T.nodes.map(_=>_.depth??0)),[T]),P=M.useMemo(()=>{const _={};let k=-1/0;return T.nodes.forEach(q=>{const{group:B}=q;_[B]?(_[B].x=Math.max(_[B].x??-1/0,q.x0??-1/0),_[B].y=Math.max(_[B].y??-1/0,q.y1??-1/0)):(_[B]={},_[B].x=q.x0,_[B].y=q.y1),k=Math.max(k,_[B].y??-1/0),_[B].y=k}),Object.keys(_).forEach(q=>{_[q].y=k}),_},[T]),A=M.useCallback(_=>{const k=l.nodeId()(_);d(f===k?"":k)},[f,l]),N=M.useCallback(()=>{d(""),g(null)},[]),D=M.useMemo(()=>f===""&&h===null?new Set:new Set(T.links.filter(_=>l.nodeId()(_.source)===f||l.nodeId()(_.target)===f||(h==null?void 0:h.source)===_.source&&(h==null?void 0:h.target)===_.target)),[f,T,h,l]),F=M.useCallback((_,k)=>{const q=("clientX"in _?_.clientX:0)-C.left,B=("clientY"in _?_.clientY:0)-C.top;g(k),q&&B&&b({tooltipLeft:q,tooltipTop:B,tooltipData:k})},[b,C]),W=M.useCallback(()=>{N(),w()},[N,w]);return c.jsxs("div",{ref:u,className:"rabbit-ds size-min bg-white",id:"sankey-chart",children:[c.jsxs("svg",{height:e,width:t,ref:x,children:[c.jsx("g",{children:T.links.map(_=>c.jsx(WV,{data:_,source:k=>({x:k.source.x1,y:k.y0}),target:k=>({x:k.target.x0,y:k.y1}),x:k=>k.x??0,y:k=>k.y??0,fill:"none",pointerEvents:"stroke",onMouseLeave:()=>W(),onMouseMove:k=>F(k,_),stroke:ke((_.source.index||0)+1).light,strokeWidth:_.width,strokeOpacity:D.has(_)?.7:.4},_.index))}),c.jsx("g",{children:T.nodes.map(_=>{var k,q,B;return c.jsx("g",{children:c.jsx(vw,{x:_.x0??0,height:(_.y1??0)-(_.y0??0)+10,width:(_.x1??0)-(_.x0??0),y:(_.y0??0)-5,onMouseEnter:()=>A(_),onMouseLeave:()=>N(),radius:2,fill:f===_.id?(k=ke((_.index||0)+1))==null?void 0:k.dark:(q=ke((_.index||0)+1))==null?void 0:q.light,stroke:(B=ke((_.index||0)+1))==null?void 0:B.dark,all:!0})},_.index)})}),c.jsx("g",{children:a.map(_=>c.jsx(da,{axisCharLimit:20,x:P[_.id].x??0,y:(P[_.id].y??0)+40,textLabel:_.name,textStyles:{fontSize:10,fontWeight:600,textAnchor:"middle",fill:"#666666"}},_.id))}),c.jsxs("g",{children:[T.nodes.map(_=>c.jsx(da,{axisCharLimit:8,x:_.depth===E?(_.x1??0)+10:(_.x0??0)-10,y:(_.y0??0)+((_.y1??0)-(_.y0??0))/2,textLabel:_.name,textStyles:{fontSize:10,fontWeight:600,textAnchor:_.depth===E?"start":"end",fill:"#666666"}},_.index)),T.nodes.map(_=>_.value&&c.jsx(ti,{x:_.depth===E?(_.x1??0)+10:(_.x0??0)-10,y:(_.y0??0)+((_.y1??0)-(_.y0??0))/2+16,style:{fontSize:10,fontWeight:400,textAnchor:_.depth===E?"start":"end",fill:"#666666"},children:`(${_.value.toString()})`},_.index))]})]}),y&&p&&c.jsx(O,{top:m,left:v,unstyled:!0,applyPositionStyle:!0,children:c.jsx(tQ,{tooltipData:p,fromLabel:`From: ${a[p.source.group].name}`,toLabel:`To: ${a[p.target.group].name}`,weightLabel:i,tooltipTitle:r})},Xt(0,4294967295).toString(16))]})});GM.displayName="Sankey";const $M=M.forwardRef((e,t)=>c.jsx(Br,{debounceTime:10,children:({width:r,height:n})=>r&&n&&c.jsx(GM,{ref:t,width:r,height:n,...e})}));$M.displayName="SankeyChart";var oQ=Np();const aQ=Mt(oQ);function iQ(e){return"bandwidth"in e?e.bandwidth():0}var sQ=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function W2(){return W2=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},W2.apply(this,arguments)}function lQ(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 XM(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,g=e.children,p=e.numTicks,v=p===void 0?10:p,m=e.lineStyle,y=e.offset,b=e.tickValues,w=lQ(e,sQ),C=b??xp(a,v),x=(y??0)+iQ(a)/2,O=C.map(function(T,E){var P,A=((P=ac(a(T)))!=null?P:0)+x;return{index:E,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},g?g({lines:O}):O.map(function(T){var E=T.from,P=T.to,A=T.index;return M.createElement(aQ,W2({key:"row-line-"+A,from:E,to:P,stroke:l,strokeWidth:f,strokeDasharray:d,style:m},w))}))}XM.propTypes={tickValues:re.array,width:re.number.isRequired};function KM({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})]})}KM.defaultProps={xValue:void 0,yValue:void 0};const QM=20,ZM=50,H2=80,Wf=50,cQ=10,uQ=25,j2=M.forwardRef(({tooltipTitle:e,xAxisLabel:t,yAxisLabel:r,domain:n,binCount:o,data:a,width:i,height:s,maxBinCount:l=uQ,minBinCount:u=cQ,integerBins:f=!1,integerYAxis:d=!1},h)=>{const g=M.useMemo(()=>ql(a),[a]),{histogramDomain:p,threshold:v,thresholdInteger:m}=M.useMemo(()=>{const I=g[0]??0,L=I===g[1]?u+I:g[1]??0,U=L-I>u?L:u+I,X=Math.min(Math.max(L-I,u),l),G=Math.floor(g[0]??0),z=Math.ceil(U);return{histogramDomain:n||(f?[G,z]:[I,L]),threshold:X,thresholdInteger:Math.ceil(X)}},[g,n,f,l,u]),y=M.useMemo(()=>$n({domain:p,range:[Wf,i-ZM],round:!0,nice:!0}),[p,i]),b=M.useMemo(()=>bH().domain(y.domain()).thresholds(o||(f?m:v))(a),[y,o,a,v,m,f]),w=M.useMemo(()=>$n({domain:[0,wH(b,I=>I.length)??0],range:[s-H2,QM],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:O,tooltipLeft:T,tooltipTop:E,tooltipOpen:P,showTooltip:A,hideTooltip:N}=Qo(),{containerBounds:D,containerRef:F,TooltipInPortal:W}=Zo({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),_=i-Wf-ZM,k=s-QM-H2-100,q=M.useCallback((I,L)=>{const U=("clientX"in I?I.clientX:0)-D.left,X=("clientY"in I?I.clientY:0)-D.top;U&&X&&A({tooltipLeft:U,tooltipTop:X,tooltipData:L})},[A,D]),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:F,children:[c.jsx(wi,{orientation:"bottom",scale:y,top:s-H2,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(wi,{orientation:"left",scale:w,left:Wf,hideTicks:!0,strokeWidth:1,stroke:"#CFD7DF",tickFormat:I=>d?Number(I)>=1e3?_t("~s")(Number(_t("d")(I))):_t("d")(I):Number(I)>=1e3?_t("~s")(I):_t("")(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(XM,{scale:w,width:_,height:k,left:Wf,top:0,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),b.map(I=>{const L=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(gw,{x:y(I.x0??0),y:w(I.length),width:U,height:L&&L-1,fill:ke(0).light,stroke:ke(0).dark,strokeWidth:1,onMouseMove:X=>q(X,I),onMouseLeave:()=>B()})},Xt(0,4294967295))})]})]}),P&&O&&c.jsx(W,{top:E,left:T,unstyled:!0,applyPositionStyle:!0,children:c.jsx(KM,{xAxisLabel:t,xValue:`${O.x0} to ${O.x1}`,yAxisLabel:r,yValue:O.length,tooltipTitle:e,legendValue:r,legendDarkColor:ke(0).dark,legendLightColor:ke(0).light})},Xt(0,4294967295)),w.domain()[2]]})}),JM=M.forwardRef((e,t)=>c.jsx(Br,{debounceTime:10,children:({width:r,height:n})=>c.jsx(j2,{ref:t,width:r,height:n,...e})}));j2.defaultProps={domain:void 0,binCount:void 0,integerBins:!1,integerYAxis:!1},j2.displayName="HistogramBase",JM.displayName="HistogramChart";function RM({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||""})]})}RM.defaultProps={};const fQ=e=>e.value,dQ=e=>e.label,eS=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:g,showTooltip:p,hideTooltip:v}=Qo(),{containerBounds:m,containerRef:y,TooltipInPortal:b}=Zo({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),w=M.useRef(null),C=M.useCallback((O,T)=>{const E=("clientX"in O?O.clientX:0)-m.left,P=("clientY"in O?O.clientY:0)-m.top;E&&P&&p({tooltipLeft:E,tooltipTop:P,tooltipData:T})},[p,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(AV,{data:n,pieValue:fQ,outerRadius:u-10,innerRadius:u-Math.min(e*.07,22)-10,cornerRadius:2,padAngle:.025,children:O=>c.jsx(c.Fragment,{children:O.arcs.map(T=>{const E=dQ(T.data);return c.jsx("g",{children:c.jsx("path",{d:O.path(T)??void 0,fill:T.data.color,onMouseLeave:x,onMouseMove:P=>C(P,{label:a,value:T.value,tooltipTitle:o,unit:r,legendValue:E,legendDarkColor:T.data.labelColor,legendLightColor:T.data.color})})},`arc-${E}`)})})})})}),g&&f&&c.jsx(b,{top:h,left:d,unstyled:!0,applyPositionStyle:!0,children:c.jsx(RM,{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(O=>c.jsxs("div",{className:"flex items-center justify-center gap-1",children:[c.jsx("div",{style:{backgroundColor:O.color,borderColor:O.labelColor,color:O.labelColor,width:Math.min(e*.04,10),height:Math.min(e*.04,10)},className:"size-3 rounded-radius-round border"}),`${O.label}: ${O.value}${r}`]},O.label))})]})});eS.displayName="DonutChartBase";const tS=M.forwardRef((e,t)=>c.jsx(Br,{debounceTime:10,children:({width:r,height:n})=>c.jsx(eS,{ref:t,width:r,height:n,...e})}));tS.displayName="DonutChart";function rS({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})]})}rS.defaultProps={xValue:void 0,yValue:void 0};const Hf={top:60,left:20,right:20,bottom:20},nS={start:10,end:-10,middle:0},oS=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:g,tooltipLeft:p,tooltipTop:v,tooltipOpen:m,showTooltip:y,hideTooltip:b}=Qo(),{containerBounds:w,containerRef:C,TooltipInPortal:x}=Zo({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),O=M.useCallback((L,U)=>{const X=Math.PI*2/L;return[...new Array(L)].map((G,z)=>({x:U*Math.sin(z*X),y:U*Math.cos(z*X)}))},[]),T=M.useCallback((L,U,X)=>X==="pre"?`${U}${L}`:`${L}${U}`,[]),E=M.useCallback((L,U,X)=>{const G=Math.PI*2/L.length,z=new Array(L.length).fill({x:0,y:0,data:null}),V=new Array(L.length+1).fill("").reduce((Z,$,ee)=>{if(ee>L.length)return Z;const K=U(X(L[ee-1]))*Math.sin(ee*G),Q=U(X(L[ee-1]))*Math.cos(ee*G);return z[ee-1]={x:K,y:Q,data:L[ee-1]},`${Z}${K},${Q} `});return{points:z,pointString:V}},[]),P=M.useMemo(()=>new zr({x:0,y:0}),[]),A=M.useCallback(L=>Math.round(L)===0?"middle":L>0?"start":"end",[]),N=M.useCallback((L,U)=>{const X=("clientX"in L?L.clientX:0)-w.left,G=("clientY"in L?L.clientY:0)-w.top;X&&G&&y({tooltipLeft:X,tooltipTop:G,tooltipData:U})},[y,w]),D=M.useCallback(()=>{b()},[b]),F=M.useMemo(()=>e-Hf.left-Hf.right,[e]),W=M.useMemo(()=>t-Hf.top-Hf.bottom,[t]),_=M.useMemo(()=>Math.min(F,W)/2,[F,W]),k=u.length?u.reduce((L,U)=>{const X=U.data.filter(G=>G);return Math.max(L,...X)},-1/0):0,q=$n({range:[0,_],domain:l??[0,k]}),B=O(f.length,_),I=L=>E(L,U=>q(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:D,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((L,U)=>c.jsx(mw,{x:e/2,y:t/2,fill:"none",stroke:"#CFD7DF",strokeWidth:1,strokeDasharray:4,r:_*(U+1)/r},`web1-${Xt(0,4294967295).toString(16)}`)),f.map((L,U)=>c.jsxs(c.Fragment,{children:[c.jsx(Sp,{from:P,to:B[U],stroke:f.length===1?ke(0).dark:"#CFD7DF",strokeWidth:1},`radar-line-${Xt(0,4294967295).toString(16)}`),c.jsx(ti,{x:B[U].x,y:B[U].y,textAnchor:A(B[U].x),verticalAnchor:A(B[U].y),dx:nS[A(B[U].x)],dy:nS[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((L,U)=>c.jsx("polygon",{points:I(L.data).pointString,fill:ke(U).light,fillOpacity:.2,stroke:ke(U).dark,strokeWidth:1},`polypath-${Xt(0,4294967295).toString(16)}`)),u.map((L,U)=>I(L.data).points.map((X,G)=>c.jsx(mw,{cx:X.x,cy:X.y,r:5,fill:"transparent",onMouseMove:z=>{var V;return N(z,{yAxisLabel:((V=n.find(Z=>Z.id===L.id))==null?void 0:V.name)??"",xAxisValue:f[G],yAxisValue:L.data[G],xAxisLabel:o??"Category",legendDarkColor:ke(U).dark,legendLightColor:ke(U).light})},onMouseOut:D},`radar-point-${Xt(0,4294967295).toString(16)}`)))]})]}),m&&g&&c.jsx(x,{top:v,left:p,unstyled:!0,applyPositionStyle:!0,children:c.jsx(rS,{xAxisLabel:g.xAxisLabel??"",xValue:g.xAxisValue,yAxisLabel:g.yAxisLabel??"",yValue:g.yAxisValue,tooltipTitle:i,showSideBySide:!0,legendValue:g.yAxisLabel??"",legendDarkColor:g.legendDarkColor,legendLightColor:g.legendLightColor})},Xt(0,4294967295).toString(16)),c.jsx("div",{className:"flex flex-row flex-wrap justify-end gap-200",children:n.map((L,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:"size-300 rounded-radius-round border"}),L.name]},L.id))})]})});oS.displayName="RadarChartBase";const aS=M.forwardRef((e,t)=>c.jsx(Br,{debounceTime:10,children:({width:r,height:n})=>c.jsx(oS,{ref:t,width:r,height:n,...e})}));aS.displayName="RadarChart";function iS({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})]})}iS.defaultProps={xValue:void 0,yValue:void 0};const hQ=({x:e,y:t,datum:r})=>c.jsx(Io,{cx:e,cy:t,stroke:r.color.dark,strokeWidth:1,fill:r.color.dark,r:5,style:{zIndex:1500}}),sS=({tickData:e,axisCharLimit:t,orientation:r})=>{var i,s;const n=M.useContext(gt),o=r==="vertical"?(i=n==null?void 0:n.xScale)==null?void 0:i.bandwidth():(s=n==null?void 0:n.yScale)==null?void 0:s.bandwidth(),a=Math.floor(o/5);return c.jsx(da,{textLabel:e.formattedValue||"",x:e.x,y:e.y,textStyles:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:r==="vertical"?"middle":"end",angle:r==="vertical"&&o&&o<25?-45:0},axisCharLimit:t??a})},jf=(e,t,r)=>r==="pre"?`${t}${e}`:`${e}${t}`,lS=10,pQ=5,cS=({tickData:e,axisCharLimit:t,orientation:r="vertical"})=>c.jsx(sS,{tickData:e,axisCharLimit:t,orientation:r});cS.displayName="XAxisTickComponent";const uS=({tickData:e,axisCharLimit:t,orientation:r="vertical"})=>c.jsx(sS,{tickData:e,axisCharLimit:t,orientation:r});uS.displayName="YAxisTickComponent";const gQ=(e,t)=>{const r=n=>c.jsx(cS,{tickData:n,axisCharLimit:t,orientation:e});return r.displayName=`XAxisTickComponent(${e})`,r},vQ=(e,t)=>{const r=n=>c.jsx(uS,{tickData:n,axisCharLimit:t,orientation:e});return r.displayName=`YAxisTickComponent(${e})`,r},U2=M.forwardRef((e,t)=>{const{nodes:r,height:n,width:o,xAxisValues:a,series:i,xAxisLabel:s,yAxisLabel:l,xAxisDomain:u,yAxisDomain:f,xAxisUnitSymbol:d,yAxisUnitSymbol:h,tooltipTitle:g,mode:p,maxNodesInMiniMode:v=pQ,tooltipStackCharLimit:m=lS,seriesSelectorTitle:y,preselectedNodes:b}=e,w="orientation"in e&&e.orientation||"vertical";let C;"axisCharLimit"in e?C=e.axisCharLimit:"xAxisCharLimit"in e?C=e.xAxisCharLimit:C=void 0;const[x,O]=M.useState(()=>(b&&b<=r.length?r.slice(0,b):r).map(k=>k.id)),T=M.useRef(null);Or(T,t,`${s}-${l}-StackedBarChart-${w}`);const E=M.useMemo(()=>i.map((_,k)=>{const q=r.find(B=>B.id===_.id);return{points:_.data.map((B,I)=>({category:a[I],value:Number(B),nodeId:_.id,color:(q==null?void 0:q.color)??ke(k)}))}}).slice(0,p==="mini"?v:i.length),[i,p,v,r,a]),P=M.useMemo(()=>p==="full"?E.filter(_=>x.includes(_.points[0].nodeId)):E,[E,x,p]),A=M.useMemo(()=>w==="horizontal"?{xAccessor:_=>_.value,yAccessor:_=>_.category}:{xAccessor:_=>_.category,yAccessor:_=>_.value},[w]),N=M.useMemo(()=>w==="horizontal"?{xScale:{type:"linear",nice:!0,...f&&{domain:f}},yScale:{type:"band",nice:!0,padding:.3,...u&&{domain:u}}}:{xScale:{type:"band",nice:!0,padding:.5,...u&&{domain:u}},yScale:{type:"linear",nice:!0,...f&&{domain:f}}},[w,u,f]),D=M.useMemo(()=>w==="horizontal"?{top:10,left:120,right:50,bottom:50}:{top:10,left:70,right:50,bottom:50},[w]),F=M.useMemo(()=>gQ(w,C),[C,w]),W=M.useMemo(()=>vQ(w,C),[C,w]);return c.jsxs("div",{ref:T,id:"stacked-bar-chart",className:"rabbit-ds flex flex-col bg-white",style:{width:o,height:n},children:[c.jsxs("div",{className:"flex size-full min-h-0 min-w-0 flex-row",children:[c.jsx("div",{className:"size-full min-h-0 min-w-0",children:c.jsxs(xn,{margin:D,xScale:N.xScale,yScale:N.yScale,children:[c.jsx(Sw,{columns:w==="vertical",rows:w==="horizontal",numTicks:6,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),c.jsx(Ko,{hideTicks:!0,orientation:"bottom",stroke:"#CFD7DF",strokeWidth:1,numTicks:w==="vertical"?30:6,tickFormat:_=>{const k=w==="vertical"?d:h;return w==="horizontal"&&typeof _=="number"?k?jf(_t(_>=1e3?"~s":"")(_),k.symbol,k.position):_t(_>=1e3?"~s":"")(_):k?jf(_,k.symbol,k.position):_},rangePadding:w==="vertical"?{end:10}:void 0,tickComponent:w==="vertical"?F:void 0,label:`${w==="vertical"?s:l} ➔`,labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx(Ko,{hideTicks:!0,numTicks:w==="vertical"?6:30,strokeWidth:1,orientation:"left",stroke:"#CFD7DF",tickFormat:_=>{const k=w==="vertical"?h:d;return w==="vertical"&&typeof _=="number"?k?jf(_t(_>=1e3?"~s":"")(_),k.symbol,k.position):_t(_>=1e3?"~s":"")(_):k?jf(_,k.symbol,k.position):_},tickComponent:w==="horizontal"?W:void 0,label:`${w==="vertical"?l:s} ➔`,tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666"},labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dx:w==="horizontal"?-90:-35,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx(CX,{children:P.map(_=>c.jsx(yX,{data:_.points,dataKey:_.points[0].nodeId,xAccessor:A.xAccessor,yAccessor:A.yAccessor,colorAccessor:k=>k.color.light,radiusTop:w==="vertical",radiusRight:w==="horizontal",radius:2},_.points[0].nodeId))}),c.jsx(wc,{showDatumGlyph:!0,scroll:!0,debounce:500,snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,detectBounds:!0,unstyled:!0,applyPositionStyle:!0,renderGlyph:hQ,renderTooltip:({tooltipData:_})=>{var B,I,L,U,X,G;const k=r.find(z=>{var V;return z.id===((V=_==null?void 0:_.nearestDatum)==null?void 0:V.datum.nodeId)}),q=((B=_==null?void 0:_.nearestDatum)==null?void 0:B.datum)&&((I=_==null?void 0:_.nearestDatum)==null?void 0:I.datum.category.length)<m;return c.jsx(iS,{xValue:(L=_==null?void 0:_.nearestDatum)==null?void 0:L.datum.category,yValue:(U=_==null?void 0:_.nearestDatum)==null?void 0:U.datum.value,xAxisLabel:s,yAxisLabel:l,showSideBySide:!!q,tooltipTitle:g,legendValue:(k==null?void 0:k.name)||"",legendDarkColor:((X=_==null?void 0:_.nearestDatum)==null?void 0:X.datum.color.dark)||ke(0).dark,legendLightColor:((G=_==null?void 0:_.nearestDatum)==null?void 0:G.datum.color.light)||ke(0).light})}})]})}),p==="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??s}),"(",P.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(_=>{const k=r.find(q=>q.id===_.points[0].nodeId);return k&&c.jsxs("div",{className:"flex w-full items-center justify-between gap-1 py-1",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("div",{style:{backgroundColor:_.points[0].color.light,borderColor:_.points[0].color.dark},className:"mr-1 size-3 rounded-radius-round border"}),k.name]}),c.jsx("div",{className:"flex items-center",children:c.jsx(Sa,{checked:x.includes(k.id),onCheckedChange:q=>{let B=[...x];q?B=[...x,k.id]:B.splice(x.indexOf(k.id),1),O(B)}})})]},k.id)})})]})]}),p==="mini"&&c.jsx("div",{className:"flex flex-row flex-wrap justify-center gap-4 text-[10px] font-semibold text-body-secondary",children:E.map(_=>{const k=r.find(q=>q.id===_.points[0].nodeId);return c.jsxs("div",{className:"flex items-center justify-center gap-1",children:[c.jsx("div",{style:{backgroundColor:_.points[0].color.light,borderColor:_.points[0].color.dark},className:"size-3 rounded-radius-round border"}),k==null?void 0:k.name]},k==null?void 0:k.id)})})]})}),mQ={orientation:"vertical",xAxisUnitSymbol:void 0,yAxisUnitSymbol:void 0,mode:"mini",axisCharLimit:void 0,tooltipStackCharLimit:lS,xAxisDomain:void 0,yAxisDomain:void 0,connectNulls:!1};U2.defaultProps=mQ,U2.displayName="StackedBarChartBase";const fS=M.forwardRef((e,t)=>c.jsx(Br,{debounceTime:10,children:({width:r,height:n})=>c.jsx(U2,{ref:t,width:r,height:n,...e})}));fS.displayName="StackedBarChart";const yQ=({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 size-3 rounded-radius-round border"}),a]}),c.jsx("div",{className:"flex items-center",children:c.jsx(Sa,{checked:t.includes(o),onCheckedChange:s=>{let l=[...t];s?l=[...t,o]:l.splice(t.indexOf(o),1),r(l)}})})]},o))})]});function dS({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:g})=>c.jsx(we.Item,{label:h,value:g},h)),c.jsx(we.Footer,{nodeData:l})]})}dS.defaultProps={xValue:void 0,yValue:void 0};var bQ=["id","markerWidth","markerHeight","markerUnits","children"];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 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 Y2(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=wQ(e,bQ);return M.createElement("defs",null,M.createElement("marker",V2({id:t,markerWidth:n,markerHeight:a,markerUnits:s},u),l))}Y2.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 xQ=["id","size","strokeWidth"];function G2(){return G2=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},G2.apply(this,arguments)}function CQ(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 AQ(e){var t=e.id,r=e.size,n=r===void 0?9:r,o=e.strokeWidth,a=o===void 0?1:o,i=CQ(e,xQ),s=n+a*2,l=n,u=s/2,f="0 0, "+n+" "+n/2+", 0 "+n;return M.createElement(Y2,G2({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 MQ=["id","size","strokeWidth"];function $2(){return $2=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},$2.apply(this,arguments)}function SQ(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 PQ(e){var t=e.id,r=e.size,n=r===void 0?9:r,o=e.strokeWidth,a=o===void 0?1:o,i=SQ(e,MQ),s=n*2,l=s+a,u=l/2;return M.createElement(Y2,$2({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 _Q({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(PQ,{id:"marker-circle",stroke:"#666",size:6,refX:7,fill:"transparent",strokeWidth:2}),c.jsx(AQ,{id:"marker-arrow",stroke:"#666",size:14,strokeWidth:2,markerUnits:"userSpaceOnUse"}),c.jsx(pw,{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:Ja,shapeRendering:"geometricPrecision",markerStart:"url(#marker-circle)",markerEnd:"url(#marker-arrow)"})]})}const OQ=({x:e,y:t,datum:r,size:n})=>c.jsx(Io,{cx:e,cy:t,stroke:r.color.dark,strokeWidth:1,fill:r.color.light,r:n/2}),TQ=({x:e,y:t,datum:r})=>c.jsx(Io,{cx:e,cy:t,stroke:r.color.dark,strokeWidth:1,fill:r.color.dark,r:5,style:{zIndex:1500}}),Uf={xAccessor:e=>e==null?void 0:e.x,yAccessor:e=>e==null?void 0:e.y},hS=(e,t,r)=>r==="pre"?`${t}${e}`:`${e}${t}`,EQ=10,NQ=5,pS=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:g=!1,maxNodesInMiniMode:p=NQ,tooltipStackCharLimit:v=EQ,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:D}=A;return{id:D.id,name:D.name,color:ke(N)}}).slice(0,d==="mini"?p:t.length),[t,d,p]),[x,O]=M.useState(()=>C.filter((A,N)=>d==="full"||N<p).map(A=>A.id)),T=M.useMemo(()=>t.map((A,N)=>({nodeId:A.seriesMetaData.employee.id,points:A.xValues.map((D,F)=>{var _;let W=null;return w?W=1/t.length*(N+1)+1/(t.length*10)*(F+1):W=((_=A==null?void 0:A.yValues)==null?void 0:_[F])??null,{x:A.xValues[F],y:W,pointMetaData:A.pointsMetaData[F],nodeId:A.seriesMetaData.employee.id,color:ke(N)}})})).slice(0,d==="mini"?p:t.length),[t,d,p,w]),E=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 size-full min-h-0 min-w-0 flex-row",children:[c.jsx("div",{className:"size-full min-h-0 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(Ko,{hideTicks:!0,orientation:"bottom",stroke:"#CFD7DF",strokeWidth:1,numTicks:6,tickFormat:A=>l?hS(A,l.symbol,l.position):A,tickComponent:A=>c.jsx(da,{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(Ko,{hideTicks:!0,numTicks:w?0:6,strokeWidth:w?0:1,orientation:"left",stroke:"#CFD7DF",label:a?`${a} ➔`:"",tickFormat:A=>u?hS(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"}}),E.map((A,N)=>c.jsxs(c.Fragment,{children:[c.jsx(_Q,{data:A.points,xAccessor:Uf.xAccessor,yAccessor:Uf.yAccessor,connectNulls:g}),c.jsx(cM,{dataKey:`Performance Management ${N}`,data:A.points,size:8,renderGlyph:OQ,xAccessor:Uf.xAccessor,yAccessor:Uf.yAccessor})]})),c.jsx(wc,{showDatumGlyph:!0,scroll:!0,showVerticalCrosshair:!0,showHorizontalCrosshair:!0,debounce:500,snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,detectBounds:!0,unstyled:!0,applyPositionStyle:!0,renderGlyph:TQ,renderTooltip:({tooltipData:A})=>{var F,W,_,k,q,B,I,L,U;const N=t.find(X=>{var G;return X.id===((G=A==null?void 0:A.nearestDatum)==null?void 0:G.datum.nodeId)}),D=((F=A==null?void 0:A.nearestDatum)==null?void 0:F.datum)&&String((W=A==null?void 0:A.nearestDatum)==null?void 0:W.datum.x).length<v;return c.jsx(dS,{xValue:(_=A==null?void 0:A.nearestDatum)==null?void 0:_.datum.x,yValue:(k=A==null?void 0:A.nearestDatum)==null?void 0:k.datum.y,xAxisLabel:o,yAxisLabel:a,showSideBySide:!!D,tooltipTitle:f,otherDataPoints:((I=(B=(q=A==null?void 0:A.nearestDatum)==null?void 0:q.datum)==null?void 0:B.pointMetaData)==null?void 0:I.otherDataPoints)??[],seriesMetaData:N==null?void 0:N.seriesMetaData,pointMetaData:(U=(L=A==null?void 0:A.nearestDatum)==null?void 0:L.datum)==null?void 0:U.pointMetaData})}})]})}),d==="full"&&c.jsx(yQ,{nodes:C,seriesSelectorTitle:"Team members",selectedNodeIds:x,setSelectedNodeIds:O})]})})});pS.displayName="LineBase";const X2=M.forwardRef((e,t)=>c.jsx(Br,{debounceTime:10,children:({width:r,height:n})=>c.jsx(pS,{ref:t,width:r,height:n,...e})}));X2.displayName="DirectedLineChart";const kQ=[{"#FFEFD4":"#AF5C20"},{"#DBF2D3":"#44812F"},{"#BFE8C6":"#1A5724"},{"#FFE7C5":"#8C6A00"},{"#FAD4D4":"#C62C02"},{"#EAEAEA":"#333333"},{"#E6F1FD":"#1565BC"},{"#FFE1D9":"#C62C02"}];function DQ({box:e,showCountData:t=!1}){function r(n){if(!n)return"#333";const o=kQ.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",c_(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 FQ=({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,g;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=((g=(h=i==null?void 0:i.scoreRange)==null?void 0:h[s])==null?void 0:g.minScore)??0;return`${a} minmax(20px, ${l-u}fr)`},"")),n},IQ=({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,g;const s="POTENTIAL",l=((d=(f=i==null?void 0:i.scoreRange)==null?void 0:f[s])==null?void 0:d.maxScore)??0,u=((g=(h=i==null?void 0:i.scoreRange)==null?void 0:h[s])==null?void 0:g.minScore)??0;return`${a} minmax(20px, ${l-u}fr)`},"")),n},K2=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:IQ({rows:e,columns:t,boxData:n}),gridTemplateColumns:FQ({rows:e,columns:t,boxData:n}),gap:r,height:"100%"},children:n==null?void 0:n.map((g,p)=>c.jsx("div",{style:{padding:"8px",backgroundColor:(g==null?void 0:g.color)??"#CFD7DF"},children:c.jsx(DQ,{box:g,showCountData:f})},g.label+g.color+p))}),u==="full"&&c.jsx("div",{className:"inline-flex w-64 shrink-0 grow-0"})]})});K2.displayName="GridChart";const gS=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 size-full",children:[c.jsx("div",{className:"absolute mx-[50px] mb-[50px] mt-[10px] h-[calc(100%-60px)] w-[calc(100%-100px)]",children:c.jsx(K2,{...t,mode:r})}),c.jsxs("div",{className:"absolute size-full",children:[c.jsx(X2,{...e,mode:r}),c.jsx("div",{})]})]})});gS.displayName="GridDirectedLineChart";const vS=({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})]})};vS.defaultProps={xValue:void 0,yValue:void 0};const ga={top:40,right:0,bottom:70,left:70},LQ={fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"},mS={fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"},BQ=({tickData:e,xAxisCharLimit:t,bandwidth:r})=>{const n=Math.floor(r/5);return c.jsx(da,{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})},yS=M.forwardRef(({width:e,height:t,data:r,xAxisLabel:n="X",yAxisLabel:o="Y",tooltipTitle:a="",xAxisCharLimit:i},s)=>{const l=e-ga.left-ga.right,u=t-ga.top-ga.bottom,f=M.useMemo(()=>wp({range:[0,l],round:!0,domain:r.map(C=>C.x),padding:.4}),[l,r]),d=M.useMemo(()=>$n({range:[u,0],round:!0,domain:[0,Math.max(...r.map(C=>C.y))]}),[u,r]),{showTooltip:h,hideTooltip:g,tooltipData:p,tooltipLeft:v=0,tooltipTop:m=0}=Qo(),{containerRef:y,TooltipInPortal:b}=Zo({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:ga.top,left:ga.left,children:[r.map((C,x)=>{const{x:O,y:T}=C,E=f.bandwidth(),P=u-(d(T)??0),A=f(O),N=u-P;return c.jsx(gw,{x:A,y:N,width:E,height:P,fill:"#E9F8FC",stroke:"#0D819F",strokeWidth:1,onMouseMove:D=>{const F=Fb(D)||{x:0,y:0};h({tooltipData:{x:O,y:T},tooltipLeft:F.x,tooltipTop:F.y})},onMouseLeave:()=>g()},`bar-${O}-${x}`)}),c.jsx(fY,{top:u,scale:f,label:`${n} ➔`,labelProps:{...mS,dy:22},stroke:"#0D819F",hideTicks:!0,tickComponent:C=>c.jsx(BQ,{tickData:C,xAxisCharLimit:i,bandwidth:f.bandwidth()})}),c.jsx(sY,{scale:d,label:`${o} ➔`,labelProps:mS,stroke:"#0D819F",hideTicks:!0,tickLabelProps:{...LQ,dx:"-0.5em"},numTicks:5})]})}),p&&c.jsx(b,{top:m,left:v,unstyled:!0,applyPositionStyle:!0,children:c.jsx(vS,{xAxisLabel:n,yAxisLabel:o,xValue:p.x,yValue:p.y,showSideBySide:!0,tooltipTitle:a,legendValue:o,legendDarkColor:ke(0).dark,legendLightColor:ke(0).light})},Xt(0,4294967295))]})}),bS=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(yS,{ref:a,width:i,height:s,data:e,xAxisLabel:t,yAxisLabel:r,tooltipTitle:n,xAxisCharLimit:o})}));bS.displayName="BarChart",yS.displayName="BarChartBase";var va="ToggleGroup",[wS,OJ]=Ke(va,[Oo]),xS=Oo(),Q2=M.forwardRef((e,t)=>{const{type:r,...n}=e;if(r==="single"){const o=n;return c.jsx(zQ,{...o,ref:t})}if(r==="multiple"){const o=n;return c.jsx(qQ,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${va}\``)});Q2.displayName=va;var[CS,AS]=wS(va),zQ=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(CS,{scope:e.__scopeToggleGroup,type:"single",value:i?[i]:[],onItemActivate:s,onItemDeactivate:M.useCallback(()=>s(""),[s]),children:c.jsx(MS,{...a,ref:t})})}),qQ=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(CS,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:l,onItemDeactivate:u,children:c.jsx(MS,{...a,ref:t})})});Q2.displayName=va;var[WQ,HQ]=wS(va),MS=M.forwardRef((e,t)=>{const{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...l}=e,u=xS(r),f=tn(i),d={role:"group",dir:f,...l};return c.jsx(WQ,{scope:r,rovingFocus:o,disabled:n,children:o?c.jsx(l0,{asChild:!0,...u,orientation:a,dir:f,loop:s,children:c.jsx(ce.div,{...d,ref:t})}):c.jsx(ce.div,{...d,ref:t})})}),Vf="ToggleGroupItem",SS=M.forwardRef((e,t)=>{const r=AS(Vf,e.__scopeToggleGroup),n=HQ(Vf,e.__scopeToggleGroup),o=xS(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(c0,{asChild:!0,...o,focusable:!i,active:a,ref:l,children:c.jsx(PS,{...s,ref:t})}):c.jsx(PS,{...s,ref:t})});SS.displayName=Vf;var PS=M.forwardRef((e,t)=>{const{__scopeToggleGroup:r,value:n,...o}=e,a=AS(Vf,r),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return c.jsx(nd,{...s,...o,ref:t,onPressedChange:l=>{l?a.onItemActivate(n):a.onItemDeactivate(n)}})}),jQ=Q2,UQ=SS;function VQ({children:e,...t}){return c.jsx(jQ,{className:"flex gap-2",...t,children:e})}function YQ({value:e,disabled:t,selected:r,icon:n,label:o,count:a,...i}){return c.jsx(UQ,{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 ma="NavigationMenu",[Z2,_S,GQ]=Tn(ma),[J2,$Q,XQ]=Tn(ma),[R2,TJ]=Ke(ma,[GQ,XQ]),[KQ,Gt]=R2(ma),[QQ,ZQ]=R2(ma),OS=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),g=ve(t,P=>h(P)),p=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}),O=S.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>x(""),150)},[x]),T=S.useCallback(P=>{window.clearTimeout(m.current),x(P)},[x]),E=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(ES,{scope:r,isRootMenu:!0,value:C,dir:p,orientation:l,rootNavigationMenu:d,onTriggerEnter:P=>{window.clearTimeout(v.current),b?E(P):T(P)},onTriggerLeave:()=>{window.clearTimeout(v.current),O()},onContentEnter:()=>window.clearTimeout(m.current),onContentLeave:O,onItemSelect:P=>{x(A=>A===P?"":P)},onItemDismiss:()=>x(""),children:c.jsx(ce.nav,{"aria-label":"Main","data-orientation":l,dir:p,...f,ref:g})})});OS.displayName=ma;var TS="NavigationMenuSub",JQ=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,value:n,onValueChange:o,defaultValue:a,orientation:i="horizontal",...s}=e,l=Gt(TS,r),[u="",f]=Qe({prop:n,onChange:o,defaultProp:a});return c.jsx(ES,{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})})});JQ.displayName=TS;var ES=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:g}=e,[p,v]=S.useState(null),[m,y]=S.useState(new Map),[b,w]=S.useState(null);return c.jsx(KQ,{scope:t,isRootMenu:r,rootNavigationMenu:n,value:s,previousValue:xa(s),baseId:ut(),dir:o,orientation:a,viewport:p,onViewportChange:v,indicatorTrack:b,onIndicatorTrackChange:w,onTriggerEnter:Ve(f),onTriggerLeave:Ve(d),onContentEnter:Ve(h),onContentLeave:Ve(g),onItemSelect:Ve(l),onItemDismiss:Ve(u),onViewportContentChange:S.useCallback((C,x)=>{y(O=>(O.set(C,x),new Map(O)))},[]),onViewportContentRemove:S.useCallback(C=>{y(x=>x.has(C)?(x.delete(C),new Map(x)):x)},[]),children:c.jsx(Z2.Provider,{scope:t,children:c.jsx(QQ,{scope:t,items:m,children:i})})})},NS="NavigationMenuList",kS=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...n}=e,o=Gt(NS,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(Z2.Slot,{scope:r,children:o.isRootMenu?c.jsx(HS,{asChild:!0,children:a}):a})})});kS.displayName=NS;var DS="NavigationMenuItem",[RQ,FS]=R2(DS),IS=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((p="start")=>{if(s.current){f.current();const v=ng(s.current);v.length&&og(p==="start"?v:v.reverse())}},[]),g=S.useCallback(()=>{if(s.current){const p=ng(s.current);p.length&&(f.current=lZ(p))}},[]);return c.jsx(RQ,{scope:r,value:i,triggerRef:l,contentRef:s,focusProxyRef:u,wasEscapeCloseRef:d,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:g,onContentFocusOutside:g,children:c.jsx(ce.li,{...o,ref:t})})});IS.displayName=DS;var eg="NavigationMenuTrigger",LS=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,disabled:n,...o}=e,a=Gt(eg,e.__scopeNavigationMenu),i=FS(eg,e.__scopeNavigationMenu),s=S.useRef(null),l=ve(s,i.triggerRef,t),u=VS(a.baseId,i.value),f=YS(a.baseId,i.value),d=S.useRef(!1),h=S.useRef(!1),g=i.value===a.value;return c.jsxs(c.Fragment,{children:[c.jsx(Z2.ItemSlot,{scope:r,value:i.value,children:c.jsx(US,{asChild:!0,children:c.jsx(ce.button,{id:u,disabled:n,"data-disabled":n?"":void 0,"data-state":ig(g),"aria-expanded":g,"aria-controls":f,...o,ref:l,onPointerEnter:ne(e.onPointerEnter,()=>{h.current=!1,i.wasEscapeCloseRef.current=!1}),onPointerMove:ne(e.onPointerMove,Gf(()=>{n||h.current||i.wasEscapeCloseRef.current||d.current||(a.onTriggerEnter(i.value),d.current=!0)})),onPointerLeave:ne(e.onPointerLeave,Gf(()=>{n||(a.onTriggerLeave(),d.current=!1)})),onClick:ne(e.onClick,()=>{a.onItemSelect(i.value),h.current=g}),onKeyDown:ne(e.onKeyDown,p=>{const m={horizontal:"ArrowDown",vertical:a.dir==="rtl"?"ArrowLeft":"ArrowRight"}[a.orientation];g&&p.key===m&&(i.onEntryKeyDown(),p.preventDefault())})})})}),g&&c.jsxs(c.Fragment,{children:[c.jsx(b4,{"aria-hidden":!0,tabIndex:0,ref:i.focusProxyRef,onFocus:p=>{const v=i.contentRef.current,m=p.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})]})]})});LS.displayName=eg;var eZ="NavigationMenuLink",BS="navigationMenu.linkSelect",zS=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,active:n,onSelect:o,...a}=e;return c.jsx(US,{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(BS,{bubbles:!0,cancelable:!0});if(s.addEventListener(BS,u=>o==null?void 0:o(u),{once:!0}),ts(s,l),!l.defaultPrevented&&!i.metaKey){const u=new CustomEvent(Yf,{bubbles:!0,cancelable:!0});ts(s,u)}},{checkForDefaultPrevented:!1})})})});zS.displayName=eZ;var tg="NavigationMenuIndicator",tZ=S.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Gt(tg,e.__scopeNavigationMenu),a=!!o.value;return o.indicatorTrack?fo.createPortal(c.jsx(Re,{present:r||a,children:c.jsx(rZ,{...n,ref:t})}),o.indicatorTrack):null});tZ.displayName=tg;var rZ=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...n}=e,o=Gt(tg,r),a=_S(r),[i,s]=S.useState(null),[l,u]=S.useState(null),f=o.orientation==="horizontal",d=!!o.value;S.useEffect(()=>{var v;const p=(v=a().find(m=>m.value===o.value))==null?void 0:v.ref.current;p&&s(p)},[a,o.value]);const h=()=>{i&&u({size:f?i.offsetWidth:i.offsetHeight,offset:f?i.offsetLeft:i.offsetTop})};return ag(i,h),ag(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}),ya="NavigationMenuContent",qS=S.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Gt(ya,e.__scopeNavigationMenu),a=FS(ya,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(nZ,{forceMount:r,...l,ref:i}):c.jsx(Re,{present:r||s,children:c.jsx(WS,{"data-state":ig(s),...l,ref:i,onPointerEnter:ne(e.onPointerEnter,o.onContentEnter),onPointerLeave:ne(e.onPointerLeave,Gf(o.onContentLeave)),style:{pointerEvents:!s&&o.isRootMenu?"none":void 0,...l.style}})})});qS.displayName=ya;var nZ=S.forwardRef((e,t)=>{const r=Gt(ya,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}),Yf="navigationMenu.rootContentDismiss",WS=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,value:n,triggerRef:o,focusProxyRef:a,wasEscapeCloseRef:i,onRootContentClose:s,onContentFocusOutside:l,...u}=e,f=Gt(ya,r),d=S.useRef(null),h=ve(d,t),g=VS(f.baseId,n),p=YS(f.baseId,n),v=_S(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(Yf,C),()=>w.removeEventListener(Yf,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),O=C.indexOf(f.previousValue),T=n===f.value,E=O===C.indexOf(n);if(!T&&!E)return m.current;const P=(()=>{if(x!==O){if(T&&O!==-1)return x>O?"from-end":"from-start";if(E&&x!==-1)return x>O?"to-start":"to-end"}return null})();return m.current=P,P},[f.previousValue,f.value,f.dir,v,n]);return c.jsx(HS,{asChild:!0,children:c.jsx(En,{id:p,"aria-labelledby":g,"data-motion":b,"data-orientation":f.orientation,...u,ref:h,disableOutsidePointerEvents:!1,onDismiss:()=>{var C;const w=new Event(Yf,{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(E=>{var P;return(P=E.ref.current)==null?void 0:P.contains(C)}),O=f.isRootMenu&&((T=f.viewport)==null?void 0:T.contains(C));(x||O||!f.isRootMenu)&&w.preventDefault()}),onKeyDown:ne(e.onKeyDown,w=>{var O;const C=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!C){const T=ng(w.currentTarget),E=document.activeElement,P=T.findIndex(D=>D===E),N=w.shiftKey?T.slice(0,P).reverse():T.slice(P+1,T.length);og(N)?w.preventDefault():(O=a.current)==null||O.focus()}}),onEscapeKeyDown:ne(e.onEscapeKeyDown,w=>{i.current=!0})})})}),rg="NavigationMenuViewport",oZ=S.forwardRef((e,t)=>{const{forceMount:r,...n}=e,a=!!Gt(rg,e.__scopeNavigationMenu).value;return c.jsx(Re,{present:r||a,children:c.jsx(aZ,{...n,ref:t})})});oZ.displayName=rg;var aZ=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,children:n,...o}=e,a=Gt(rg,r),i=ve(t,a.onViewportChange),s=ZQ(ya,e.__scopeNavigationMenu),[l,u]=S.useState(null),[f,d]=S.useState(null),h=l?(l==null?void 0:l.width)+"px":void 0,g=l?(l==null?void 0:l.height)+"px":void 0,p=!!a.value,v=p?a.value:a.previousValue;return ag(f,()=>{f&&u({width:f.offsetWidth,height:f.offsetHeight})}),c.jsx(ce.div,{"data-state":ig(p),"data-orientation":a.orientation,...o,ref:i,style:{pointerEvents:!p&&a.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":h,"--radix-navigation-menu-viewport-height":g,...o.style},onPointerEnter:ne(e.onPointerEnter,a.onContentEnter),onPointerLeave:ne(e.onPointerLeave,Gf(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(WS,{...C,ref:wa(b,O=>{x&&O&&d(O)})})},y)})})}),iZ="FocusGroup",HS=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...n}=e,o=Gt(iZ,r);return c.jsx(J2.Provider,{scope:r,children:c.jsx(J2.Slot,{scope:r,children:c.jsx(ce.div,{dir:o.dir,...n,ref:t})})})}),jS=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],sZ="FocusGroupItem",US=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...n}=e,o=$Q(r),a=Gt(sZ,r);return c.jsx(J2.ItemSlot,{scope:r,children:c.jsx(ce.button,{...n,ref:t,onKeyDown:ne(e.onKeyDown,i=>{if(["Home","End",...jS].includes(i.key)){let l=o().map(d=>d.ref.current);if([a.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(i.key)&&l.reverse(),jS.includes(i.key)){const d=l.indexOf(i.currentTarget);l=l.slice(d+1)}setTimeout(()=>og(l)),i.preventDefault()}})})})});function ng(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 og(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}function lZ(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 ag(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 ig(e){return e?"open":"closed"}function VS(e,t){return`${e}-trigger-${t}`}function YS(e,t){return`${e}-content-${t}`}function Gf(e){return t=>t.pointerType==="mouse"?e(t):void 0}var cZ=OS,uZ=kS,fZ=IS,dZ=LS,GS=zS,hZ=qS;const pZ=Be(["rabbit-ds size-full px-3 py-2 [&>*:first-child]:h-full"],{variants:{variant:{default:""},defaultVariant:{variant:"default"}}});function gZ(){return c.jsx("div",{className:"relative size-full",children:c.jsxs("div",{className:"absolute left-0 top-0 size-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 size-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 size-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 size-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 size-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 size-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 size-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 $S=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 size-full",children:c.jsx(gZ,{})}),c.jsx(cZ,{className:R(pZ({className:e})),orientation:"vertical",ref:n,...r,children:c.jsx(uZ,{className:"m-0 flex h-full flex-col p-0",children:t})})]}));$S.displayName="LeftNav";const sg=M.forwardRef(({children:e,asChild:t=!1,...r},n)=>{const o=t?dr:"div";return c.jsx(fZ,{asChild:!0,children:c.jsx(o,{ref:n,className:"rabbit-ds",...r,children:e})})});sg.displayName="LeftNavItem",sg.defaultProps={asChild:!1};const vZ=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"}}}),XS=M.forwardRef(({children:e,align:t,...r},n)=>c.jsx("div",{ref:n,className:R(vZ({variant:t})),...r,children:e}));XS.displayName="LeftNavItem";const KS=M.forwardRef((e,t)=>c.jsx(GS,{ref:t,...e,className:"rabbit-ds z-20 flex size-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 size-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"})})]})]})}));KS.displayName="LeftNavHome";const mZ=Be(["rabbit-ds relative flex size-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"}}),yZ=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"}}),QS=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(GS,{"data-deer-btn":!0,className:R(mZ({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(yZ({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:Bg,size:"large"})})]})}));QS.displayName="LeftNavButton";const bZ=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 wZ({className:e,isCollapsed:t,...r}){return c.jsx("button",{"data-deer-btn":!0,type:"button",className:R(bZ({variant:t?"collapsed":"default"}),e),...r,children:c.jsx(ye,{IconSVG:kg,className:t?"rotate-180":""})})}const ZS=M.createContext({isOpen:!1,toggleOpen:()=>{}}),xZ=()=>M.useContext(ZS);function JS({...e}){const{isOpen:t,toggleOpen:r}=xZ();return c.jsx(wZ,{className:`absolute right-0 top-5 z-20 ${t?"":"translate-x-full"}`,isCollapsed:!t,onClick:r,...e})}function CZ(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(ZS.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(JS,{}),c.jsx("div",{className:l?"h-full p-5":"invisible size-0 scale-0 overflow-hidden opacity-0",children:t})]})})}function AZ({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 MZ({children:e}){return c.jsx("div",{className:"p-2 text-xs font-semibold text-body-secondary",children:e})}function SZ({children:e,...t}){return c.jsx(y4,{...t,children:e})}const PZ=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 _Z({className:e,orientation:t,...r}){return c.jsx("div",{className:PZ({orientation:t}),children:c.jsx(St,{className:R(e,"h-auto min-h-10"),variant:"transparentOutline",...r})})}const OZ={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"}},TZ=M.forwardRef(function({title:t,achieved:r,status:n,explanation:o,truncateExplanation:a=!0},i){const s=OZ[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:Lg}),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(Cy,{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 EZ({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 RS=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})]})]})]})}));RS.displayName="SharePraiseNudgeData";const eP=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})]})]})]})}));eP.displayName="RequestedFeedbackNudgeData";const NZ=Be("",{variants:{orientation:{horizontal:"flex-row",vertical:"min-w-max flex-col"}},defaultVariants:{orientation:"horizontal"}});function kZ({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",NZ({orientation:r}),e),children:t})}function DZ({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",g=()=>{l(p=>d?1:p+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:"size-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:g,iconRight:d?Eg:ho,children:["View ",d?"less":"more"]})})]})}function FZ({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:Wg}),c.jsxs("div",{className:"flex flex-col items-start text-sm",children:[c.jsx("span",{className:"font-semibold",children:e}),c.jsx(Yd,{date:t,showRelativeTime:!0})]})]})})}const tP=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(Yd,{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})]})]})]})})});tP.defaultProps={subTitle:void 0,scheduleDate:void 0};function IZ({label:e,onClick:t,customCompProps:r}){const[n,o]=M.useState(1);return c.jsxs(x0,{children:[c.jsx(Qs,{children:c.jsx("span",{children:e})}),c.jsx(w0,{children:c.jsx(Zs,{children:c.jsx(To,{children:c.jsxs("div",{className:"flex flex-col p-2",children:[c.jsx(as,{htmlFor:r==null?void 0:r.label,className:"text-xs",children:r==null?void 0:r.label}),c.jsx(os,{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 LZ({options:e}){const[t,r]=M.useState(!1),n=(o,a)=>{o(a),r(!1)};return c.jsxs($s,{open:t,children:[c.jsx(Xs,{asChild:!0,onClick:()=>r(!0),children:c.jsx(St,{variant:"text",size:"smallIcon",children:c.jsx(ye,{IconSVG:Ig})})}),c.jsx(ja,{className:"w-56",onFocusOutside:()=>r(!1),onPointerDownOutside:()=>r(!1),children:c.jsx(To,{children:e.map(({type:o,onClick:a,label:i,customCompProps:s})=>!o||o==="default"?c.jsx(Ua,{onClick:()=>n(a),children:c.jsx("span",{children:i})},i):c.jsx(IZ,{onClick:l=>n(a,l),label:i,customCompProps:s},i))})})]})}const rP=Ua,nP=To,oP=Ks,aP=el,iP=Js,sP=Rs,lP=M.forwardRef(({className:e,children:t,align:r="end",...n},o)=>c.jsx(ja,{ref:o,align:r,...n,children:t}));lP.displayName="SplitButtonDropdownContent";const BZ=Be("",{variants:{size:{normal:"icon",small:"smallIcon",icon:"icon",smallIcon:"smallIcon",nav:"icon"}},defaultVariants:{size:"normal"}});function zZ({children:e,size:t,status:r,variant:n,...o}){return c.jsx("div",{className:"rabbit-ds flex flex-row",children:c.jsxs($s,{children:[c.jsx(St,{variant:n,status:r,size:t,...o,className:"rounded-r-none",children:e}),c.jsx(Xs,{asChild:!0,children:c.jsx(St,{variant:n,status:r,className:"rounded-l-none border-l-0",size:BZ({size:t}),iconLeft:ho})})]})})}rP.displayName="SplitButtonDropdownItem",nP.displayName="SplitButtonDropdownGroup",oP.displayName="SplitButtonDropdownRadioGroup",aP.displayName="SplitButtonDropdownLabel",iP.displayName="SplitButtonDropdownCheckboxItem",sP.displayName="SplitButtonDropdownRadioItem";const cP=({bold:e=!1,xbold:t=!1,color:r="text-body-primary"})=>R("rabbit-ds-text",t?"font-bold":e?"font-semibold":"font-normal",r),qZ=({children:e,className:t,...r})=>c.jsx("h3",{className:R("text-350sm leading-500",cP(r),t),children:e}),WZ=({children:e,className:t,...r})=>c.jsx("p",{className:R("text-300sm leading-400",cP(r),t),children:e}),uP=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}));uP.displayName="ListItemComp";const fP=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}));fP.displayName="ListItemCompLeading";const dP=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}));dP.displayName="ListItemCompContent";const hP=({children:e,className:t,...r})=>c.jsx(qZ,{bold:!0,className:R("text-body-primary",t),...r,children:e});hP.displayName="ListItemCompTitle";const pP=({children:e,className:t,...r})=>c.jsx(WZ,{className:R("text-body-secondary",t),...r,children:e});pP.displayName="ListItemCompDescription";const gP=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}));gP.displayName="ListItemCompAction";const HZ=({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-2 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","size-[40px] border-2 border-solid"),variant:a===u?"filled":"outline",onClick:()=>s(u),children:l(u)},u))})};H.AICard=Fv,H.Accordion=Qv,H.AccordionContent=Rv,H.AccordionItem=Zv,H.AccordionTrigger=Jv,H.Add=u_,H.AddPerson=f_,H.Alert=em,H.AlertDescription=rm,H.AlertDialogAction=p3,H.AlertDialogCancel=h3,H.AlertDialogComponent=iN,H.AlertDialogContainer=f3,H.AlertDialogContent=zd,H.AlertDialogDescription=Wd,H.AlertDialogOverlay=Bd,H.AlertDialogPortal=d3,H.AlertDialogTitle=qd,H.AlertDialogTrigger=g3,H.AlertIcon=tm,H.Avatar=pr,H.AvatarBadge=tl,H.AvatarFallback=Ss,H.AvatarGroup=Y0,H.AvatarImage=gr,H.BarChart=bS,H.Breadcrumb=Fy,H.BreadcrumbEllipsis=Wy,H.BreadcrumbItem=Ly,H.BreadcrumbLink=By,H.BreadcrumbList=Iy,H.BreadcrumbPage=zy,H.BreadcrumbSeparator=qy,H.Button=St,H.Calendar=d_,H.Caption=jd,H.Card=_a,H.CardContent=vd,H.CardDescription=Pv,H.CardHeader=Sv,H.CardKPI=rB,H.CardTitle=gd,H.Carousel=cz,H.CarouselContainer=uz,H.CarouselNextButton=dz,H.CarouselPrevButton=fz,H.Channel=h_,H.Check=Ma,H.CheckCircleOutline=_g,H.Checkbox=Sa,H.ChevronDown=ho,H.ChevronLeft=p_,H.ChevronLeftCircle=Og,H.ChevronRight=ns,H.ChevronRightCircle=Tg,H.ChevronUp=Eg,H.Chip=CO,H.ChipGroup=VQ,H.ChipGroupItem=YQ,H.CircleChevronRight=g_,H.Close=Ng,H.CollapseNavigation=kg,H.CollapsibleCard=_v,H.ColumnFilter=Dg,H.ColumnFilterCheck=Hg,H.CompaRatio=RL,H.Company=v_,H.CompanySettings=m_,H.CompetenciesThin=y_,H.Country=b_,H.Cross=w_,H.Currency=x_,H.DateTime=Yd,H.Delete=C_,H.Develop=A_,H.DirectedLineChart=X2,H.DisplayName=M_,H.DonutChart=tS,H.Download=S_,H.Dropdown=$s,H.DropdownCheckboxItem=Js,H.DropdownChip=v4,H.DropdownContent=ja,H.DropdownGroup=To,H.DropdownItem=Ua,H.DropdownLabel=el,H.DropdownPortal=w0,H.DropdownRadioGroup=Ks,H.DropdownRadioItem=Rs,H.DropdownSeparator=C0,H.DropdownSub=x0,H.DropdownSubContent=Zs,H.DropdownSubTrigger=Qs,H.DropdownTrigger=Xs,H.EmployeeIdBadge=P_,H.Engagement=__,H.EngagementNudgeData=FZ,H.ErrorOutline=rd,H.ExpandDown=O_,H.ExpandRight=Fg,H.Feedback=T_,H.Gear=E_,H.Goal=N_,H.GoalFrequency=k_,H.GoalsCollaborators=D_,H.GoalsNudgeData=TZ,H.GoalsThin=F_,H.GridChart=K2,H.GridDirectedLineChart=gS,H.Help=I_,H.Help2=L_,H.HistogramChart=JM,H.HistoryComments=B_,H.Home=z_,H.HoverCard=QL,H.HoverCardContent=Xy,H.HoverCardPortal=JL,H.HoverCardTrigger=ZL,H.Icon=ye,H.Info=q_,H.InfoWorkZero=On,H.Initiatives=W_,H.Input=os,H.KebabMenu=Ig,H.KnowTeamNudgeData=tP,H.Label=as,H.LeftNav=$S,H.LeftNavButton=QS,H.LeftNavGroup=XS,H.LeftNavHome=KS,H.LeftNavItem=sg,H.LeftNavItemContent=hZ,H.LeftNavItemDropdown=$s,H.LeftNavItemDropdownCheckboxItem=Js,H.LeftNavItemDropdownContent=ja,H.LeftNavItemDropdownGroup=To,H.LeftNavItemDropdownItem=Ua,H.LeftNavItemDropdownLabel=el,H.LeftNavItemDropdownPortal=w0,H.LeftNavItemDropdownRadioGroup=Ks,H.LeftNavItemDropdownRadioItem=Rs,H.LeftNavItemDropdownSeparator=C0,H.LeftNavItemDropdownSub=x0,H.LeftNavItemDropdownSubContent=Zs,H.LeftNavItemDropdownSubTrigger=Qs,H.LeftNavItemDropdownTrigger=Xs,H.LeftNavItemTrigger=dZ,H.LineChart=zM,H.ListItem=y4,H.ListItemComp=uP,H.ListItemCompAction=gP,H.ListItemCompContent=dP,H.ListItemCompDescription=pP,H.ListItemCompLeading=fP,H.ListItemCompTitle=hP,H.ListItemIcon=tI,H.ListItemText=RF,H.Logout=H_,H.Manager=j_,H.ManagerWithBorder=U_,H.MeshLogo=jg,H.MeshMaven=hO,H.MeshMavenAsk=pO,H.MeshMavenDisabledThumbsUp=gO,H.MeshMavenGlassesOnDefault=vO,H.MeshMavenWithHording=mO,H.MeshMavenWithOrangeBulb=yO,H.MeshMavenWithThumbsUp=bO,H.Metric=Jy,H.MetricCard=Zy,H.MetricCardStatText=X0,H.MetricCardText=gl,H.MetricCardTitle=Ry,H.Milestone=V_,H.MyOneOnOne=Y_,H.MySettings=G_,H.NavCollapseButtonL2=JS,H.NavGroupL2=AZ,H.NavGroupTitleL2=MZ,H.NavItemL2=SZ,H.NavL2=CZ,H.NewPassword=$_,H.Notifications=X_,H.NudgeAction=_Z,H.NudgeCard=DZ,H.NudgeCardItem=kZ,H.NudgeKebabMenu=LZ,H.Objective=Lg,H.OneOnOne=K_,H.OneOnOneThin=Q_,H.Overflow=Bg,H.Peer=Z_,H.Person=J_,H.Product=R_,H.ProfileCard=K0,H.ProfileCardItem=e8,H.ProfileCardKey=t8,H.ProfileCardValue=r8,H.ProgressBar=nv,H.ProgressInfo=eB,H.ProgressSlider=nT,H.RadarChart=aS,H.Rating=HZ,H.RequestFeedback=eO,H.RequestedFeedbackNudgeData=eP,H.Reset=tO,H.Reviews=rO,H.ReviewsNudgeData=EZ,H.Role=nO,H.SankeyChart=$M,H.Search=zg,H.Select=kI,H.SelectContent=R4,H.SelectGroup=DI,H.SelectItem=ty,H.SelectLabel=ey,H.SelectSeparator=ry,H.SelectTrigger=J4,H.SelectValue=FI,H.SelfScore=oO,H.Settings=aO,H.SettingsFeedback=iO,H.SettingsGoals=sO,H.SettingsSchedule=lO,H.ShareFeedback=cO,H.SharePraiseNudgeData=RS,H.SliderDrag=qg,H.SplitButton=zZ,H.SplitButtonDropdownCheckboxItem=iP,H.SplitButtonDropdownContent=lP,H.SplitButtonDropdownGroup=nP,H.SplitButtonDropdownItem=rP,H.SplitButtonDropdownLabel=aP,H.SplitButtonDropdownRadioGroup=oP,H.SplitButtonDropdownRadioItem=sP,H.SplitDetails=uO,H.StackedBarChart=fS,H.Survey=Wg,H.Switch=Dv,H.Tabs=yy,H.TabsContent=xy,H.TabsList=by,H.TabsTrigger=wy,H.Tag=Cy,H.Task=fO,H.Team=dO,H.Toaster=LL,H.Tooltip=z0,H.TooltipContent=cl,H.TooltipPortal=W0,H.TooltipProvider=B0,H.TooltipTrigger=q0,H.TrendingDown=Ug,H.TrendingUp=Vg,H.getInitialsFromName=S3,H.toast=AL,Object.defineProperty(H,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 DK(v,r),o.timeEnd("embed web font")),o.time("embed node"),NM(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(g==null?void 0:g(v));const w=qK(v,r);return s&&w.insertBefore(s,w.children[0]),i&&w.insertBefore(i,w.children[0]),d&&SK(r),await(p==null?void 0:p(w)),w}function qK(e,t){const{width:r,height:n}=t,o=RX(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 WK(e,t){var i;const r=await If(e,t),n=await zK(r),o=eK(n,r.isEnable("removeControlCharacter"));r.autoDestruct||(r.svgStyleElement=xM(r.ownerDocument),r.svgDefsElement=(i=r.ownerDocument)==null?void 0:i.createElementNS(Ff,"defs"),r.svgStyles.clear());const a=pa(o,n.ownerDocument);return await lK(a,r)}async function HK(e,t){const r=await If(e,t),{log:n,quality:o,type:a,dpi:i}=r,s=await WK(r);n.time("canvas to data url");let l=s.toDataURL(a,o);if(["image/png","image/jpeg"].includes(a)&&i&&IX&&LX){const[u,f]=l.split(",");let d=0,h=!1;if(a==="image/png"){const w=DX(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 g=f.substring(0,d),p=f.substring(d),v=window.atob(g),m=new Uint8Array(v.length);for(let w=0;w<m.length;w++)m[w]=v.charCodeAt(w);const y=a==="image/png"?TX(m,i,h):SX(m,i),b=window.btoa(String.fromCharCode(...y));l=[u,",",b,p].join("")}return n.timeEnd("canvas to data url"),l}async function jK(e,t){return HK(await If(e,{...t,type:"image/png"}))}const Or=(e,t,r)=>{M.useImperativeHandle(t,()=>({download(){e.current&&jK(e.current,{scale:5}).then(n=>{const o=document.createElement("a");o.download=`${r}.png`,o.href=n,o.click()})}}))},FM=[{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 FM[e%FM.length]}const Lf=(e,t)=>M.Children.map(e,r=>M.isValidElement(r)&&typeof r.type=="function"&&r.type.displayName===t.displayName?r:null);function D2({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 size-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 F2({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 I2({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 L2({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=Lf(e,D2),o=Lf(e,F2),a=Lf(e,I2),i=Lf(e,L2);return c.jsxs("div",{className:"rabbit-ds relative z-[1500] inline-flex size-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]})}D2.displayName="Legend",F2.displayName="Item",I2.displayName="Header",L2.displayName="Footer",we.Legend=D2,we.Item=F2,we.Header=I2,we.Footer=L2,we.defaultProps={showSideBySide:!1};function IM({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})]})}IM.defaultProps={xValue:void 0,yValue:void 0};function UK({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(pw,{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 VK=({x:e,y:t,datum:r,size:n})=>c.jsx(Io,{cx:e,cy:t,stroke:r.color.dark,strokeWidth:1,fill:r.color.light,r:n/2}),YK=({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(da,{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})},GK=({x:e,y:t,datum:r})=>c.jsx(Io,{cx:e,cy:t,stroke:r.color.dark,strokeWidth:1,fill:r.color.dark,r:5,style:{zIndex:1500}}),Bf={xAccessor:e=>e.x,yAccessor:e=>e.y},LM=(e,t,r)=>r==="pre"?`${t}${e}`:`${e}${t}`,BM=10,$K=5,B2=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:g,connectNulls:p=!1,maxNodesInMiniMode:v=$K,tooltipStackCharLimit:m=BM,seriesSelectorTitle:y,preselectedNodes:b},w)=>{const[C,x]=M.useState(()=>(b&&b<=e.length?e.slice(0,b):e).map(A=>A.id)),O=M.useRef(null);Or(O,w,`${a}-${i}-LineChart`);const T=M.useMemo(()=>o.map((P,A)=>{const N=e.find(D=>D.id===P.id);return{points:P.data.map((D,F)=>({x:n[F],y:Number(D),nodeId:P.id,color:(N==null?void 0:N.color)??ke(A)}))}}).slice(0,h==="mini"?v:o.length),[o,h,v,e,n]),E=M.useMemo(()=>h==="full"?T.filter(P=>C.includes(P.points[0].nodeId)):T,[T,C,h]);return c.jsxs("div",{ref:O,id:"line-chart",className:"rabbit-ds flex flex-col bg-white",style:{width:r,height:t},children:[c.jsxs("div",{className:"flex size-full min-h-0 min-w-0 flex-row",children:[c.jsx("div",{className:"size-full min-h-0 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(Sw,{columns:!1,numTicks:6,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),c.jsx(Ko,{hideTicks:!0,orientation:"bottom",stroke:"#CFD7DF",strokeWidth:1,numTicks:30,tickFormat:P=>u?LM(P,u.symbol,u.position):P,rangePadding:{end:10},tickComponent:P=>c.jsx(YK,{tickData:P,xAxisCharLimit:g}),label:`${a} ➔`,labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx(Ko,{hideTicks:!0,numTicks:6,strokeWidth:1,orientation:"left",stroke:"#CFD7DF",label:`${i} ➔`,tickFormat:P=>f?LM(_t(P>=1e3?"~s":"")(P),f.symbol,f.position):_t(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"}}),E.map((P,A)=>c.jsxs(c.Fragment,{children:[c.jsx(UK,{data:P.points,xAccessor:Bf.xAccessor,yAccessor:Bf.yAccessor,connectNulls:p}),c.jsx(cM,{dataKey:`Performance Management ${A}`,data:P.points,size:8,renderGlyph:VK,xAccessor:Bf.xAccessor,yAccessor:Bf.yAccessor})]})),c.jsx(wc,{showDatumGlyph:!0,scroll:!0,debounce:500,snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,detectBounds:!0,unstyled:!0,applyPositionStyle:!0,renderGlyph:GK,renderTooltip:({tooltipData:P})=>{var D,F,W,_,k,q;const A=e.find(B=>{var I;return B.id===((I=P==null?void 0:P.nearestDatum)==null?void 0:I.datum.nodeId)}),N=((D=P==null?void 0:P.nearestDatum)==null?void 0:D.datum)&&((F=P==null?void 0:P.nearestDatum)==null?void 0:F.datum.x.length)<m;return c.jsx(IM,{xValue:(W=P==null?void 0:P.nearestDatum)==null?void 0:W.datum.x,yValue:(_=P==null?void 0:P.nearestDatum)==null?void 0:_.datum.y,xAxisLabel:a,yAxisLabel:i,showSideBySide:!!N,tooltipTitle:d,legendValue:(A==null?void 0:A.name)||"",legendDarkColor:((k=P==null?void 0:P.nearestDatum)==null?void 0:k.datum.color.dark)||ke(0).dark,legendLightColor:((q=P==null?void 0:P.nearestDatum)==null?void 0:q.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}),"(",E.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 size-3 rounded-radius-round border"}),A.name]}),c.jsx("div",{className:"flex items-center",children:c.jsx(Sa,{checked:C.includes(A.id),onCheckedChange:N=>{let D=[...C];N?D=[...C,A.id]:D.splice(C.indexOf(A.id),1),x(D)}})})]},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:"size-3 rounded-radius-round border"}),A==null?void 0:A.name]},A==null?void 0:A.id)})})]})}),XK={xAxisUnitSymbol:void 0,yAxisUnitSymbol:void 0,mode:"mini",xAxisCharLimit:void 0,tooltipStackCharLimit:BM,xAxisDomain:void 0,yAxisDomain:void 0,connectNulls:!1};B2.defaultProps=XK,B2.displayName="LineBase";const zM=M.forwardRef((e,t)=>c.jsx(Br,{debounceTime:10,children:({width:r,height:n})=>c.jsx(B2,{ref:t,width:r,height:n,...e})}));zM.displayName="LineChart";function qM(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 KK(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 z2(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 QK(e,t){return e.sourceLinks.length?e.depth:t-1}function zf(e){return function(){return e}}function WM(e,t){return qf(e.source,t.source)||e.index-t.index}function HM(e,t){return qf(e.target,t.target)||e.index-t.index}function qf(e,t){return e.y0-t.y0}function q2(e){return e.value}function ZK(e){return e.index}function JK(e){return e.nodes}function RK(e){return e.links}function jM(e,t){const r=e.get(t);if(!r)throw new Error("missing: "+t);return r}function UM({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 eQ(){let e=0,t=0,r=1,n=1,o=24,a=8,i,s=ZK,l=QK,u,f,d=JK,h=RK,g=6;function p(){const _={nodes:d.apply(null,arguments),links:h.apply(null,arguments)};return v(_),m(_),y(_),b(_),x(_),UM(_),_}p.update=function(_){return UM(_),_},p.nodeId=function(_){return arguments.length?(s=typeof _=="function"?_:zf(_),p):s},p.nodeAlign=function(_){return arguments.length?(l=typeof _=="function"?_:zf(_),p):l},p.nodeSort=function(_){return arguments.length?(u=_,p):u},p.nodeWidth=function(_){return arguments.length?(o=+_,p):o},p.nodePadding=function(_){return arguments.length?(a=i=+_,p):a},p.nodes=function(_){return arguments.length?(d=typeof _=="function"?_:zf(_),p):d},p.links=function(_){return arguments.length?(h=typeof _=="function"?_:zf(_),p):h},p.linkSort=function(_){return arguments.length?(f=_,p):f},p.size=function(_){return arguments.length?(e=t=0,r=+_[0],n=+_[1],p):[r-e,n-t]},p.extent=function(_){return arguments.length?(e=+_[0][0],r=+_[1][0],t=+_[0][1],n=+_[1][1],p):[[e,t],[r,n]]},p.iterations=function(_){return arguments.length?(g=+_,p):g};function v({nodes:_,links:k}){for(const[B,I]of _.entries())I.index=B,I.sourceLinks=[],I.targetLinks=[];const q=new Map(_.map((B,I)=>[s(B,I,_),B]));for(const[B,I]of k.entries()){I.index=B;let{source:L,target:U}=I;typeof L!="object"&&(L=I.source=jM(q,L)),typeof U!="object"&&(U=I.target=jM(q,U)),L.sourceLinks.push(I),U.targetLinks.push(I)}if(f!=null)for(const{sourceLinks:B,targetLinks:I}of _)B.sort(f),I.sort(f)}function m({nodes:_}){for(const k of _)k.value=k.fixedValue===void 0?Math.max(z2(k.sourceLinks,q2),z2(k.targetLinks,q2)):k.fixedValue}function y({nodes:_}){const k=_.length;let q=new Set(_),B=new Set,I=0;for(;q.size;){for(const L of q){L.depth=I;for(const{target:U}of L.sourceLinks)B.add(U)}if(++I>k)throw new Error("circular link");q=B,B=new Set}}function b({nodes:_}){const k=_.length;let q=new Set(_),B=new Set,I=0;for(;q.size;){for(const L of q){L.height=I;for(const{source:U}of L.targetLinks)B.add(U)}if(++I>k)throw new Error("circular link");q=B,B=new Set}}function w({nodes:_}){const k=qM(_,I=>I.depth)+1,q=(r-e-o)/(k-1),B=new Array(k);for(const I of _){const L=Math.max(0,Math.min(k-1,Math.floor(l.call(null,I,k))));I.layer=L,I.x0=e+L*q,I.x1=I.x0+o,B[L]?B[L].push(I):B[L]=[I]}if(u)for(const I of B)I.sort(u);return B}function C(_){const k=KK(_,q=>(n-t-(q.length-1)*i)/z2(q,q2));for(const q of _){let B=t;for(const I of q){I.y0=B,I.y1=B+I.value*k,B=I.y1+i;for(const L of I.sourceLinks)L.width=L.value*k}B=(n-B+i)/(q.length+1);for(let I=0;I<q.length;++I){const L=q[I];L.y0+=B*(I+1),L.y1+=B*(I+1)}D(q)}}function x(_){const k=w(_);i=Math.min(a,(n-t)/(qM(k,q=>q.length)-1)),C(k);for(let q=0;q<g;++q){const B=Math.pow(.99,q),I=Math.max(1-B,(q+1)/g);T(k,B,I),O(k,B,I)}}function O(_,k,q){for(let B=1,I=_.length;B<I;++B){const L=_[B];for(const U of L){let X=0,G=0;for(const{source:V,value:Z}of U.targetLinks){let $=Z*(U.layer-V.layer);X+=F(V,U)*$,G+=$}if(!(G>0))continue;let z=(X/G-U.y0)*k;U.y0+=z,U.y1+=z,N(U)}u===void 0&&L.sort(qf),E(L,q)}}function T(_,k,q){for(let B=_.length,I=B-2;I>=0;--I){const L=_[I];for(const U of L){let X=0,G=0;for(const{target:V,value:Z}of U.sourceLinks){let $=Z*(V.layer-U.layer);X+=W(U,V)*$,G+=$}if(!(G>0))continue;let z=(X/G-U.y0)*k;U.y0+=z,U.y1+=z,N(U)}u===void 0&&L.sort(qf),E(L,q)}}function E(_,k){const q=_.length>>1,B=_[q];A(_,B.y0-i,q-1,k),P(_,B.y1+i,q+1,k),A(_,n,_.length-1,k),P(_,t,0,k)}function P(_,k,q,B){for(;q<_.length;++q){const I=_[q],L=(k-I.y0)*B;L>1e-6&&(I.y0+=L,I.y1+=L),k=I.y1+i}}function A(_,k,q,B){for(;q>=0;--q){const I=_[q],L=(I.y1-k)*B;L>1e-6&&(I.y0-=L,I.y1-=L),k=I.y0-i}}function N({sourceLinks:_,targetLinks:k}){if(f===void 0){for(const{source:{sourceLinks:q}}of k)q.sort(HM);for(const{target:{targetLinks:q}}of _)q.sort(WM)}}function D(_){if(f===void 0)for(const{sourceLinks:k,targetLinks:q}of _)k.sort(HM),q.sort(WM)}function F(_,k){let q=_.y0-(_.sourceLinks.length-1)*i/2;for(const{target:B,width:I}of _.sourceLinks){if(B===k)break;q+=I+i}for(const{source:B,width:I}of k.targetLinks){if(B===_)break;q-=I}return q}function W(_,k){let q=k.y0-(k.targetLinks.length-1)*i/2;for(const{source:B,width:I}of k.targetLinks){if(B===_)break;q+=I+i}for(const{target:B,width:I}of _.sourceLinks){if(B===k)break;q-=I}return q}return p}function tQ({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 VM=80,YM=20,rQ=30,nQ=12,GM=M.forwardRef(({height:e,width:t,tooltipTitle:r,nodes:n,links:o,groups:a,weightLabel:i},s)=>{const l=M.useMemo(()=>eQ().nodeId(_=>_.id).nodeWidth(nQ).nodePadding(rQ).nodeAlign(_=>_.group),[]),u=M.useRef(null);Or(u,s,`${r}-SankeyChart`);const[f,d]=M.useState(""),[h,g]=M.useState(null),{tooltipData:p,tooltipLeft:v,tooltipTop:m,tooltipOpen:y,showTooltip:b,hideTooltip:w}=Qo(),{containerBounds:C,containerRef:x,TooltipInPortal:O}=Zo({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),T=M.useMemo(()=>l.extent([[VM,YM],[t-VM,e-YM-50]])({nodes:n,links:o.map(_=>({..._,value:Number(_.weight)}))}),[e,t,l,n,o]),E=M.useMemo(()=>Math.max(...T.nodes.map(_=>_.depth??0)),[T]),P=M.useMemo(()=>{const _={};let k=-1/0;return T.nodes.forEach(q=>{const{group:B}=q;_[B]?(_[B].x=Math.max(_[B].x??-1/0,q.x0??-1/0),_[B].y=Math.max(_[B].y??-1/0,q.y1??-1/0)):(_[B]={},_[B].x=q.x0,_[B].y=q.y1),k=Math.max(k,_[B].y??-1/0),_[B].y=k}),Object.keys(_).forEach(q=>{_[q].y=k}),_},[T]),A=M.useCallback(_=>{const k=l.nodeId()(_);d(f===k?"":k)},[f,l]),N=M.useCallback(()=>{d(""),g(null)},[]),D=M.useMemo(()=>f===""&&h===null?new Set:new Set(T.links.filter(_=>l.nodeId()(_.source)===f||l.nodeId()(_.target)===f||(h==null?void 0:h.source)===_.source&&(h==null?void 0:h.target)===_.target)),[f,T,h,l]),F=M.useCallback((_,k)=>{const q=("clientX"in _?_.clientX:0)-C.left,B=("clientY"in _?_.clientY:0)-C.top;g(k),q&&B&&b({tooltipLeft:q,tooltipTop:B,tooltipData:k})},[b,C]),W=M.useCallback(()=>{N(),w()},[N,w]);return c.jsxs("div",{ref:u,className:"rabbit-ds size-min bg-white",id:"sankey-chart",children:[c.jsxs("svg",{height:e,width:t,ref:x,children:[c.jsx("g",{children:T.links.map(_=>c.jsx(WV,{data:_,source:k=>({x:k.source.x1,y:k.y0}),target:k=>({x:k.target.x0,y:k.y1}),x:k=>k.x??0,y:k=>k.y??0,fill:"none",pointerEvents:"stroke",onMouseLeave:()=>W(),onMouseMove:k=>F(k,_),stroke:ke((_.source.index||0)+1).light,strokeWidth:_.width,strokeOpacity:D.has(_)?.7:.4},_.index))}),c.jsx("g",{children:T.nodes.map(_=>{var k,q,B;return c.jsx("g",{children:c.jsx(vw,{x:_.x0??0,height:(_.y1??0)-(_.y0??0)+10,width:(_.x1??0)-(_.x0??0),y:(_.y0??0)-5,onMouseEnter:()=>A(_),onMouseLeave:()=>N(),radius:2,fill:f===_.id?(k=ke((_.index||0)+1))==null?void 0:k.dark:(q=ke((_.index||0)+1))==null?void 0:q.light,stroke:(B=ke((_.index||0)+1))==null?void 0:B.dark,all:!0})},_.index)})}),c.jsx("g",{children:a.map(_=>c.jsx(da,{axisCharLimit:20,x:P[_.id].x??0,y:(P[_.id].y??0)+40,textLabel:_.name,textStyles:{fontSize:10,fontWeight:600,textAnchor:"middle",fill:"#666666"}},_.id))}),c.jsxs("g",{children:[T.nodes.map(_=>c.jsx(da,{axisCharLimit:8,x:_.depth===E?(_.x1??0)+10:(_.x0??0)-10,y:(_.y0??0)+((_.y1??0)-(_.y0??0))/2,textLabel:_.name,textStyles:{fontSize:10,fontWeight:600,textAnchor:_.depth===E?"start":"end",fill:"#666666"}},_.index)),T.nodes.map(_=>_.value&&c.jsx(ti,{x:_.depth===E?(_.x1??0)+10:(_.x0??0)-10,y:(_.y0??0)+((_.y1??0)-(_.y0??0))/2+16,style:{fontSize:10,fontWeight:400,textAnchor:_.depth===E?"start":"end",fill:"#666666"},children:`(${_.value.toString()})`},_.index))]})]}),y&&p&&c.jsx(O,{top:m,left:v,unstyled:!0,applyPositionStyle:!0,children:c.jsx(tQ,{tooltipData:p,fromLabel:`From: ${a[p.source.group].name}`,toLabel:`To: ${a[p.target.group].name}`,weightLabel:i,tooltipTitle:r})},Xt(0,4294967295).toString(16))]})});GM.displayName="Sankey";const $M=M.forwardRef((e,t)=>c.jsx(Br,{debounceTime:10,children:({width:r,height:n})=>r&&n&&c.jsx(GM,{ref:t,width:r,height:n,...e})}));$M.displayName="SankeyChart";var oQ=Np();const aQ=Mt(oQ);function iQ(e){return"bandwidth"in e?e.bandwidth():0}var sQ=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function W2(){return W2=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},W2.apply(this,arguments)}function lQ(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 XM(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,g=e.children,p=e.numTicks,v=p===void 0?10:p,m=e.lineStyle,y=e.offset,b=e.tickValues,w=lQ(e,sQ),C=b??xp(a,v),x=(y??0)+iQ(a)/2,O=C.map(function(T,E){var P,A=((P=ac(a(T)))!=null?P:0)+x;return{index:E,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},g?g({lines:O}):O.map(function(T){var E=T.from,P=T.to,A=T.index;return M.createElement(aQ,W2({key:"row-line-"+A,from:E,to:P,stroke:l,strokeWidth:f,strokeDasharray:d,style:m},w))}))}XM.propTypes={tickValues:re.array,width:re.number.isRequired};function KM({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})]})}KM.defaultProps={xValue:void 0,yValue:void 0};const QM=20,ZM=50,H2=80,Wf=50,cQ=10,uQ=25,j2=M.forwardRef(({tooltipTitle:e,xAxisLabel:t,yAxisLabel:r,domain:n,binCount:o,data:a,width:i,height:s,maxBinCount:l=uQ,minBinCount:u=cQ,integerBins:f=!1,integerYAxis:d=!1},h)=>{const g=M.useMemo(()=>ql(a),[a]),{histogramDomain:p,threshold:v,thresholdInteger:m}=M.useMemo(()=>{const I=g[0]??0,L=I===g[1]?u+I:g[1]??0,U=L-I>u?L:u+I,X=Math.min(Math.max(L-I,u),l),G=Math.floor(g[0]??0),z=Math.ceil(U);return{histogramDomain:n||(f?[G,z]:[I,L]),threshold:X,thresholdInteger:Math.ceil(X)}},[g,n,f,l,u]),y=M.useMemo(()=>$n({domain:p,range:[Wf,i-ZM],round:!0,nice:!0}),[p,i]),b=M.useMemo(()=>bH().domain(y.domain()).thresholds(o||(f?m:v))(a),[y,o,a,v,m,f]),w=M.useMemo(()=>$n({domain:[0,wH(b,I=>I.length)??0],range:[s-H2,QM],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:O,tooltipLeft:T,tooltipTop:E,tooltipOpen:P,showTooltip:A,hideTooltip:N}=Qo(),{containerBounds:D,containerRef:F,TooltipInPortal:W}=Zo({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),_=i-Wf-ZM,k=s-QM-H2-100,q=M.useCallback((I,L)=>{const U=("clientX"in I?I.clientX:0)-D.left,X=("clientY"in I?I.clientY:0)-D.top;U&&X&&A({tooltipLeft:U,tooltipTop:X,tooltipData:L})},[A,D]),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:F,children:[c.jsx(wi,{orientation:"bottom",scale:y,top:s-H2,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(wi,{orientation:"left",scale:w,left:Wf,hideTicks:!0,strokeWidth:1,stroke:"#CFD7DF",tickFormat:I=>d?Number(I)>=1e3?_t("~s")(Number(_t("d")(I))):_t("d")(I):Number(I)>=1e3?_t("~s")(I):_t("")(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(XM,{scale:w,width:_,height:k,left:Wf,top:0,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),b.map(I=>{const L=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(gw,{x:y(I.x0??0),y:w(I.length),width:U,height:L&&L-1,fill:ke(0).light,stroke:ke(0).dark,strokeWidth:1,onMouseMove:X=>q(X,I),onMouseLeave:()=>B()})},Xt(0,4294967295))})]})]}),P&&O&&c.jsx(W,{top:E,left:T,unstyled:!0,applyPositionStyle:!0,children:c.jsx(KM,{xAxisLabel:t,xValue:`${O.x0} to ${O.x1}`,yAxisLabel:r,yValue:O.length,tooltipTitle:e,legendValue:r,legendDarkColor:ke(0).dark,legendLightColor:ke(0).light})},Xt(0,4294967295)),w.domain()[2]]})}),JM=M.forwardRef((e,t)=>c.jsx(Br,{debounceTime:10,children:({width:r,height:n})=>c.jsx(j2,{ref:t,width:r,height:n,...e})}));j2.defaultProps={domain:void 0,binCount:void 0,integerBins:!1,integerYAxis:!1},j2.displayName="HistogramBase",JM.displayName="HistogramChart";function RM({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||""})]})}RM.defaultProps={};const fQ=e=>e.value,dQ=e=>e.label,eS=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:g,showTooltip:p,hideTooltip:v}=Qo(),{containerBounds:m,containerRef:y,TooltipInPortal:b}=Zo({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),w=M.useRef(null),C=M.useCallback((O,T)=>{const E=("clientX"in O?O.clientX:0)-m.left,P=("clientY"in O?O.clientY:0)-m.top;E&&P&&p({tooltipLeft:E,tooltipTop:P,tooltipData:T})},[p,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(AV,{data:n,pieValue:fQ,outerRadius:u-10,innerRadius:u-Math.min(e*.07,22)-10,cornerRadius:2,padAngle:.025,children:O=>c.jsx(c.Fragment,{children:O.arcs.map(T=>{const E=dQ(T.data);return c.jsx("g",{children:c.jsx("path",{d:O.path(T)??void 0,fill:T.data.color,onMouseLeave:x,onMouseMove:P=>C(P,{label:a,value:T.value,tooltipTitle:o,unit:r,legendValue:E,legendDarkColor:T.data.labelColor,legendLightColor:T.data.color})})},`arc-${E}`)})})})})}),g&&f&&c.jsx(b,{top:h,left:d,unstyled:!0,applyPositionStyle:!0,children:c.jsx(RM,{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(O=>c.jsxs("div",{className:"flex items-center justify-center gap-1",children:[c.jsx("div",{style:{backgroundColor:O.color,borderColor:O.labelColor,color:O.labelColor,width:Math.min(e*.04,10),height:Math.min(e*.04,10)},className:"size-3 rounded-radius-round border"}),`${O.label}: ${O.value}${r}`]},O.label))})]})});eS.displayName="DonutChartBase";const tS=M.forwardRef((e,t)=>c.jsx(Br,{debounceTime:10,children:({width:r,height:n})=>c.jsx(eS,{ref:t,width:r,height:n,...e})}));tS.displayName="DonutChart";function rS({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})]})}rS.defaultProps={xValue:void 0,yValue:void 0};const Hf={top:60,left:20,right:20,bottom:20},nS={start:10,end:-10,middle:0},oS=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:g,tooltipLeft:p,tooltipTop:v,tooltipOpen:m,showTooltip:y,hideTooltip:b}=Qo(),{containerBounds:w,containerRef:C,TooltipInPortal:x}=Zo({detectBounds:!0,debounce:500,scroll:!0,zIndex:1500}),O=M.useCallback((L,U)=>{const X=Math.PI*2/L;return[...new Array(L)].map((G,z)=>({x:U*Math.sin(z*X),y:U*Math.cos(z*X)}))},[]),T=M.useCallback((L,U,X)=>X==="pre"?`${U}${L}`:`${L}${U}`,[]),E=M.useCallback((L,U,X)=>{const G=Math.PI*2/L.length,z=new Array(L.length).fill({x:0,y:0,data:null}),V=new Array(L.length+1).fill("").reduce((Z,$,ee)=>{if(ee>L.length)return Z;const K=U(X(L[ee-1]))*Math.sin(ee*G),Q=U(X(L[ee-1]))*Math.cos(ee*G);return z[ee-1]={x:K,y:Q,data:L[ee-1]},`${Z}${K},${Q} `});return{points:z,pointString:V}},[]),P=M.useMemo(()=>new zr({x:0,y:0}),[]),A=M.useCallback(L=>Math.round(L)===0?"middle":L>0?"start":"end",[]),N=M.useCallback((L,U)=>{const X=("clientX"in L?L.clientX:0)-w.left,G=("clientY"in L?L.clientY:0)-w.top;X&&G&&y({tooltipLeft:X,tooltipTop:G,tooltipData:U})},[y,w]),D=M.useCallback(()=>{b()},[b]),F=M.useMemo(()=>e-Hf.left-Hf.right,[e]),W=M.useMemo(()=>t-Hf.top-Hf.bottom,[t]),_=M.useMemo(()=>Math.min(F,W)/2,[F,W]),k=u.length?u.reduce((L,U)=>{const X=U.data.filter(G=>G);return Math.max(L,...X)},-1/0):0,q=$n({range:[0,_],domain:l??[0,k]}),B=O(f.length,_),I=L=>E(L,U=>q(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:D,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((L,U)=>c.jsx(mw,{x:e/2,y:t/2,fill:"none",stroke:"#CFD7DF",strokeWidth:1,strokeDasharray:4,r:_*(U+1)/r},`web1-${Xt(0,4294967295).toString(16)}`)),f.map((L,U)=>c.jsxs(c.Fragment,{children:[c.jsx(Sp,{from:P,to:B[U],stroke:f.length===1?ke(0).dark:"#CFD7DF",strokeWidth:1},`radar-line-${Xt(0,4294967295).toString(16)}`),c.jsx(ti,{x:B[U].x,y:B[U].y,textAnchor:A(B[U].x),verticalAnchor:A(B[U].y),dx:nS[A(B[U].x)],dy:nS[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((L,U)=>c.jsx("polygon",{points:I(L.data).pointString,fill:ke(U).light,fillOpacity:.2,stroke:ke(U).dark,strokeWidth:1},`polypath-${Xt(0,4294967295).toString(16)}`)),u.map((L,U)=>I(L.data).points.map((X,G)=>c.jsx(mw,{cx:X.x,cy:X.y,r:5,fill:"transparent",onMouseMove:z=>{var V;return N(z,{yAxisLabel:((V=n.find(Z=>Z.id===L.id))==null?void 0:V.name)??"",xAxisValue:f[G],yAxisValue:L.data[G],xAxisLabel:o??"Category",legendDarkColor:ke(U).dark,legendLightColor:ke(U).light})},onMouseOut:D},`radar-point-${Xt(0,4294967295).toString(16)}`)))]})]}),m&&g&&c.jsx(x,{top:v,left:p,unstyled:!0,applyPositionStyle:!0,children:c.jsx(rS,{xAxisLabel:g.xAxisLabel??"",xValue:g.xAxisValue,yAxisLabel:g.yAxisLabel??"",yValue:g.yAxisValue,tooltipTitle:i,showSideBySide:!0,legendValue:g.yAxisLabel??"",legendDarkColor:g.legendDarkColor,legendLightColor:g.legendLightColor})},Xt(0,4294967295).toString(16)),c.jsx("div",{className:"flex flex-row flex-wrap justify-end gap-200",children:n.map((L,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:"size-300 rounded-radius-round border"}),L.name]},L.id))})]})});oS.displayName="RadarChartBase";const aS=M.forwardRef((e,t)=>c.jsx(Br,{debounceTime:10,children:({width:r,height:n})=>c.jsx(oS,{ref:t,width:r,height:n,...e})}));aS.displayName="RadarChart";function iS({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})]})}iS.defaultProps={xValue:void 0,yValue:void 0};const hQ=({x:e,y:t,datum:r})=>c.jsx(Io,{cx:e,cy:t,stroke:r.color.dark,strokeWidth:1,fill:r.color.dark,r:5,style:{zIndex:1500}}),sS=({tickData:e,axisCharLimit:t,orientation:r})=>{var i,s;const n=M.useContext(gt),o=r==="vertical"?(i=n==null?void 0:n.xScale)==null?void 0:i.bandwidth():(s=n==null?void 0:n.yScale)==null?void 0:s.bandwidth(),a=Math.floor(o/5);return c.jsx(da,{textLabel:e.formattedValue||"",x:e.x,y:e.y,textStyles:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:r==="vertical"?"middle":"end",angle:r==="vertical"&&o&&o<25?-45:0},axisCharLimit:t??a})},jf=(e,t,r)=>r==="pre"?`${t}${e}`:`${e}${t}`,lS=10,pQ=5,cS=({tickData:e,axisCharLimit:t,orientation:r="vertical"})=>c.jsx(sS,{tickData:e,axisCharLimit:t,orientation:r});cS.displayName="XAxisTickComponent";const uS=({tickData:e,axisCharLimit:t,orientation:r="vertical"})=>c.jsx(sS,{tickData:e,axisCharLimit:t,orientation:r});uS.displayName="YAxisTickComponent";const gQ=(e,t)=>{const r=n=>c.jsx(cS,{tickData:n,axisCharLimit:t,orientation:e});return r.displayName=`XAxisTickComponent(${e})`,r},vQ=(e,t)=>{const r=n=>c.jsx(uS,{tickData:n,axisCharLimit:t,orientation:e});return r.displayName=`YAxisTickComponent(${e})`,r},U2=M.forwardRef((e,t)=>{const{nodes:r,height:n,width:o,xAxisValues:a,series:i,xAxisLabel:s,yAxisLabel:l,xAxisDomain:u,yAxisDomain:f,xAxisUnitSymbol:d,yAxisUnitSymbol:h,tooltipTitle:g,mode:p,maxNodesInMiniMode:v=pQ,tooltipStackCharLimit:m=lS,seriesSelectorTitle:y,preselectedNodes:b}=e,w="orientation"in e&&e.orientation||"vertical";let C;"axisCharLimit"in e?C=e.axisCharLimit:"xAxisCharLimit"in e?C=e.xAxisCharLimit:C=void 0;const[x,O]=M.useState(()=>(b&&b<=r.length?r.slice(0,b):r).map(k=>k.id)),T=M.useRef(null);Or(T,t,`${s}-${l}-StackedBarChart-${w}`);const E=M.useMemo(()=>i.map((_,k)=>{const q=r.find(B=>B.id===_.id);return{points:_.data.map((B,I)=>({category:a[I],value:Number(B),nodeId:_.id,color:(q==null?void 0:q.color)??ke(k)}))}}).slice(0,p==="mini"?v:i.length),[i,p,v,r,a]),P=M.useMemo(()=>p==="full"?E.filter(_=>x.includes(_.points[0].nodeId)):E,[E,x,p]),A=M.useMemo(()=>w==="horizontal"?{xAccessor:_=>_.value,yAccessor:_=>_.category}:{xAccessor:_=>_.category,yAccessor:_=>_.value},[w]),N=M.useMemo(()=>w==="horizontal"?{xScale:{type:"linear",nice:!0,...f&&{domain:f}},yScale:{type:"band",nice:!0,padding:.3,...u&&{domain:u}}}:{xScale:{type:"band",nice:!0,padding:.5,...u&&{domain:u}},yScale:{type:"linear",nice:!0,...f&&{domain:f}}},[w,u,f]),D=M.useMemo(()=>w==="horizontal"?{top:10,left:120,right:50,bottom:50}:{top:10,left:70,right:50,bottom:50},[w]),F=M.useMemo(()=>gQ(w,C),[C,w]),W=M.useMemo(()=>vQ(w,C),[C,w]);return c.jsxs("div",{ref:T,id:"stacked-bar-chart",className:"rabbit-ds flex flex-col bg-white",style:{width:o,height:n},children:[c.jsxs("div",{className:"flex size-full min-h-0 min-w-0 flex-row",children:[c.jsx("div",{className:"size-full min-h-0 min-w-0",children:c.jsxs(xn,{margin:D,xScale:N.xScale,yScale:N.yScale,children:[c.jsx(Sw,{columns:w==="vertical",rows:w==="horizontal",numTicks:6,lineStyle:{stroke:"#EBEFF3",strokeWidth:1}}),c.jsx(Ko,{hideTicks:!0,orientation:"bottom",stroke:"#CFD7DF",strokeWidth:1,numTicks:w==="vertical"?30:6,tickFormat:_=>{const k=w==="vertical"?d:h;return w==="horizontal"&&typeof _=="number"?k?jf(_t(_>=1e3?"~s":"")(_),k.symbol,k.position):_t(_>=1e3?"~s":"")(_):k?jf(_,k.symbol,k.position):_},rangePadding:w==="vertical"?{end:10}:void 0,tickComponent:w==="vertical"?F:void 0,label:`${w==="vertical"?s:l} ➔`,labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dy:10,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx(Ko,{hideTicks:!0,numTicks:w==="vertical"?6:30,strokeWidth:1,orientation:"left",stroke:"#CFD7DF",tickFormat:_=>{const k=w==="vertical"?h:d;return w==="vertical"&&typeof _=="number"?k?jf(_t(_>=1e3?"~s":"")(_),k.symbol,k.position):_t(_>=1e3?"~s":"")(_):k?jf(_,k.symbol,k.position):_},tickComponent:w==="horizontal"?W:void 0,label:`${w==="vertical"?l:s} ➔`,tickLabelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666"},labelProps:{fontFamily:"system-ui",fontSize:"10px",fontWeight:600,dx:w==="horizontal"?-90:-35,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"}}),c.jsx(CX,{children:P.map(_=>c.jsx(yX,{data:_.points,dataKey:_.points[0].nodeId,xAccessor:A.xAccessor,yAccessor:A.yAccessor,colorAccessor:k=>k.color.light,radiusTop:w==="vertical",radiusRight:w==="horizontal",radius:2},_.points[0].nodeId))}),c.jsx(wc,{showDatumGlyph:!0,scroll:!0,debounce:500,snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,detectBounds:!0,unstyled:!0,applyPositionStyle:!0,renderGlyph:hQ,renderTooltip:({tooltipData:_})=>{var B,I,L,U,X,G;const k=r.find(z=>{var V;return z.id===((V=_==null?void 0:_.nearestDatum)==null?void 0:V.datum.nodeId)}),q=((B=_==null?void 0:_.nearestDatum)==null?void 0:B.datum)&&((I=_==null?void 0:_.nearestDatum)==null?void 0:I.datum.category.length)<m;return c.jsx(iS,{xValue:(L=_==null?void 0:_.nearestDatum)==null?void 0:L.datum.category,yValue:(U=_==null?void 0:_.nearestDatum)==null?void 0:U.datum.value,xAxisLabel:s,yAxisLabel:l,showSideBySide:!!q,tooltipTitle:g,legendValue:(k==null?void 0:k.name)||"",legendDarkColor:((X=_==null?void 0:_.nearestDatum)==null?void 0:X.datum.color.dark)||ke(0).dark,legendLightColor:((G=_==null?void 0:_.nearestDatum)==null?void 0:G.datum.color.light)||ke(0).light})}})]})}),p==="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??s}),"(",P.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(_=>{const k=r.find(q=>q.id===_.points[0].nodeId);return k&&c.jsxs("div",{className:"flex w-full items-center justify-between gap-1 py-1",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("div",{style:{backgroundColor:_.points[0].color.light,borderColor:_.points[0].color.dark},className:"mr-1 size-3 rounded-radius-round border"}),k.name]}),c.jsx("div",{className:"flex items-center",children:c.jsx(Sa,{checked:x.includes(k.id),onCheckedChange:q=>{let B=[...x];q?B=[...x,k.id]:B.splice(x.indexOf(k.id),1),O(B)}})})]},k.id)})})]})]}),p==="mini"&&c.jsx("div",{className:"flex flex-row flex-wrap justify-center gap-4 text-[10px] font-semibold text-body-secondary",children:E.map(_=>{const k=r.find(q=>q.id===_.points[0].nodeId);return c.jsxs("div",{className:"flex items-center justify-center gap-1",children:[c.jsx("div",{style:{backgroundColor:_.points[0].color.light,borderColor:_.points[0].color.dark},className:"size-3 rounded-radius-round border"}),k==null?void 0:k.name]},k==null?void 0:k.id)})})]})}),mQ={orientation:"vertical",xAxisUnitSymbol:void 0,yAxisUnitSymbol:void 0,mode:"mini",axisCharLimit:void 0,tooltipStackCharLimit:lS,xAxisDomain:void 0,yAxisDomain:void 0,connectNulls:!1};U2.defaultProps=mQ,U2.displayName="StackedBarChartBase";const fS=M.forwardRef((e,t)=>c.jsx(Br,{debounceTime:10,children:({width:r,height:n})=>c.jsx(U2,{ref:t,width:r,height:n,...e})}));fS.displayName="StackedBarChart";const yQ=({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 size-3 rounded-radius-round border"}),a]}),c.jsx("div",{className:"flex items-center",children:c.jsx(Sa,{checked:t.includes(o),onCheckedChange:s=>{let l=[...t];s?l=[...t,o]:l.splice(t.indexOf(o),1),r(l)}})})]},o))})]});function dS({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:g})=>c.jsx(we.Item,{label:h,value:g},h)),c.jsx(we.Footer,{nodeData:l})]})}dS.defaultProps={xValue:void 0,yValue:void 0};var bQ=["id","markerWidth","markerHeight","markerUnits","children"];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 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 Y2(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=wQ(e,bQ);return M.createElement("defs",null,M.createElement("marker",V2({id:t,markerWidth:n,markerHeight:a,markerUnits:s},u),l))}Y2.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 xQ=["id","size","strokeWidth"];function G2(){return G2=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},G2.apply(this,arguments)}function CQ(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 AQ(e){var t=e.id,r=e.size,n=r===void 0?9:r,o=e.strokeWidth,a=o===void 0?1:o,i=CQ(e,xQ),s=n+a*2,l=n,u=s/2,f="0 0, "+n+" "+n/2+", 0 "+n;return M.createElement(Y2,G2({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 MQ=["id","size","strokeWidth"];function $2(){return $2=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},$2.apply(this,arguments)}function SQ(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 PQ(e){var t=e.id,r=e.size,n=r===void 0?9:r,o=e.strokeWidth,a=o===void 0?1:o,i=SQ(e,MQ),s=n*2,l=s+a,u=l/2;return M.createElement(Y2,$2({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 _Q({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(PQ,{id:"marker-circle",stroke:"#666",size:6,refX:7,fill:"transparent",strokeWidth:2}),c.jsx(AQ,{id:"marker-arrow",stroke:"#666",size:14,strokeWidth:2,markerUnits:"userSpaceOnUse"}),c.jsx(pw,{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:Ja,shapeRendering:"geometricPrecision",markerStart:"url(#marker-circle)",markerEnd:"url(#marker-arrow)"})]})}const OQ=({x:e,y:t,datum:r,size:n})=>c.jsx(Io,{cx:e,cy:t,stroke:r.color.dark,strokeWidth:1,fill:r.color.light,r:n/2}),TQ=({x:e,y:t,datum:r})=>c.jsx(Io,{cx:e,cy:t,stroke:r.color.dark,strokeWidth:1,fill:r.color.dark,r:5,style:{zIndex:1500}}),Uf={xAccessor:e=>e==null?void 0:e.x,yAccessor:e=>e==null?void 0:e.y},hS=(e,t,r)=>r==="pre"?`${t}${e}`:`${e}${t}`,EQ=10,NQ=5,pS=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:g=!1,maxNodesInMiniMode:p=NQ,tooltipStackCharLimit:v=EQ,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:D}=A;return{id:D.id,name:D.name,color:ke(N)}}).slice(0,d==="mini"?p:t.length),[t,d,p]),[x,O]=M.useState(()=>C.filter((A,N)=>d==="full"||N<p).map(A=>A.id)),T=M.useMemo(()=>t.map((A,N)=>({nodeId:A.seriesMetaData.employee.id,points:A.xValues.map((D,F)=>{var _;let W=null;return w?W=1/t.length*(N+1)+1/(t.length*10)*(F+1):W=((_=A==null?void 0:A.yValues)==null?void 0:_[F])??null,{x:A.xValues[F],y:W,pointMetaData:A.pointsMetaData[F],nodeId:A.seriesMetaData.employee.id,color:ke(N)}})})).slice(0,d==="mini"?p:t.length),[t,d,p,w]),E=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 size-full min-h-0 min-w-0 flex-row",children:[c.jsx("div",{className:"size-full min-h-0 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(Ko,{hideTicks:!0,orientation:"bottom",stroke:"#CFD7DF",strokeWidth:1,numTicks:6,tickFormat:A=>l?hS(A,l.symbol,l.position):A,tickComponent:A=>c.jsx(da,{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(Ko,{hideTicks:!0,numTicks:w?0:6,strokeWidth:w?0:1,orientation:"left",stroke:"#CFD7DF",label:a?`${a} ➔`:"",tickFormat:A=>u?hS(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"}}),E.map((A,N)=>c.jsxs(c.Fragment,{children:[c.jsx(_Q,{data:A.points,xAccessor:Uf.xAccessor,yAccessor:Uf.yAccessor,connectNulls:g}),c.jsx(cM,{dataKey:`Performance Management ${N}`,data:A.points,size:8,renderGlyph:OQ,xAccessor:Uf.xAccessor,yAccessor:Uf.yAccessor})]})),c.jsx(wc,{showDatumGlyph:!0,scroll:!0,showVerticalCrosshair:!0,showHorizontalCrosshair:!0,debounce:500,snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,detectBounds:!0,unstyled:!0,applyPositionStyle:!0,renderGlyph:TQ,renderTooltip:({tooltipData:A})=>{var F,W,_,k,q,B,I,L,U;const N=t.find(X=>{var G;return X.id===((G=A==null?void 0:A.nearestDatum)==null?void 0:G.datum.nodeId)}),D=((F=A==null?void 0:A.nearestDatum)==null?void 0:F.datum)&&String((W=A==null?void 0:A.nearestDatum)==null?void 0:W.datum.x).length<v;return c.jsx(dS,{xValue:(_=A==null?void 0:A.nearestDatum)==null?void 0:_.datum.x,yValue:(k=A==null?void 0:A.nearestDatum)==null?void 0:k.datum.y,xAxisLabel:o,yAxisLabel:a,showSideBySide:!!D,tooltipTitle:f,otherDataPoints:((I=(B=(q=A==null?void 0:A.nearestDatum)==null?void 0:q.datum)==null?void 0:B.pointMetaData)==null?void 0:I.otherDataPoints)??[],seriesMetaData:N==null?void 0:N.seriesMetaData,pointMetaData:(U=(L=A==null?void 0:A.nearestDatum)==null?void 0:L.datum)==null?void 0:U.pointMetaData})}})]})}),d==="full"&&c.jsx(yQ,{nodes:C,seriesSelectorTitle:"Team members",selectedNodeIds:x,setSelectedNodeIds:O})]})})});pS.displayName="LineBase";const X2=M.forwardRef((e,t)=>c.jsx(Br,{debounceTime:10,children:({width:r,height:n})=>c.jsx(pS,{ref:t,width:r,height:n,...e})}));X2.displayName="DirectedLineChart";const kQ=[{"#FFEFD4":"#AF5C20"},{"#DBF2D3":"#44812F"},{"#BFE8C6":"#1A5724"},{"#FFE7C5":"#8C6A00"},{"#FAD4D4":"#C62C02"},{"#EAEAEA":"#333333"},{"#E6F1FD":"#1565BC"},{"#FFE1D9":"#C62C02"}];function DQ({box:e,showCountData:t=!1}){function r(n){if(!n)return"#333";const o=kQ.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",c_(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 FQ=({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,g;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=((g=(h=i==null?void 0:i.scoreRange)==null?void 0:h[s])==null?void 0:g.minScore)??0;return`${a} minmax(20px, ${l-u}fr)`},"")),n},IQ=({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,g;const s="POTENTIAL",l=((d=(f=i==null?void 0:i.scoreRange)==null?void 0:f[s])==null?void 0:d.maxScore)??0,u=((g=(h=i==null?void 0:i.scoreRange)==null?void 0:h[s])==null?void 0:g.minScore)??0;return`${a} minmax(20px, ${l-u}fr)`},"")),n},K2=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:IQ({rows:e,columns:t,boxData:n}),gridTemplateColumns:FQ({rows:e,columns:t,boxData:n}),gap:r,height:"100%"},children:n==null?void 0:n.map((g,p)=>c.jsx("div",{style:{padding:"8px",backgroundColor:(g==null?void 0:g.color)??"#CFD7DF"},children:c.jsx(DQ,{box:g,showCountData:f})},g.label+g.color+p))}),u==="full"&&c.jsx("div",{className:"inline-flex w-64 shrink-0 grow-0"})]})});K2.displayName="GridChart";const gS=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 size-full",children:[c.jsx("div",{className:"absolute mx-[50px] mb-[50px] mt-[10px] h-[calc(100%-60px)] w-[calc(100%-100px)]",children:c.jsx(K2,{...t,mode:r})}),c.jsxs("div",{className:"absolute size-full",children:[c.jsx(X2,{...e,mode:r}),c.jsx("div",{})]})]})});gS.displayName="GridDirectedLineChart";const vS=({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})]})};vS.defaultProps={xValue:void 0,yValue:void 0};const ga={top:40,right:0,bottom:70,left:70},LQ={fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"},mS={fontFamily:"system-ui",fontSize:"10px",fontWeight:600,fill:"#666666",textAnchor:"middle",verticalAnchor:"middle"},BQ=({tickData:e,xAxisCharLimit:t,bandwidth:r})=>{const n=Math.floor(r/5);return c.jsx(da,{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})},yS=M.forwardRef(({width:e,height:t,data:r,xAxisLabel:n="X",yAxisLabel:o="Y",tooltipTitle:a="",xAxisCharLimit:i},s)=>{const l=e-ga.left-ga.right,u=t-ga.top-ga.bottom,f=M.useMemo(()=>wp({range:[0,l],round:!0,domain:r.map(C=>C.x),padding:.4}),[l,r]),d=M.useMemo(()=>$n({range:[u,0],round:!0,domain:[0,Math.max(...r.map(C=>C.y))]}),[u,r]),{showTooltip:h,hideTooltip:g,tooltipData:p,tooltipLeft:v=0,tooltipTop:m=0}=Qo(),{containerRef:y,TooltipInPortal:b}=Zo({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:ga.top,left:ga.left,children:[r.map((C,x)=>{const{x:O,y:T}=C,E=f.bandwidth(),P=u-(d(T)??0),A=f(O),N=u-P;return c.jsx(gw,{x:A,y:N,width:E,height:P,fill:"#E9F8FC",stroke:"#0D819F",strokeWidth:1,onMouseMove:D=>{const F=Fb(D)||{x:0,y:0};h({tooltipData:{x:O,y:T},tooltipLeft:F.x,tooltipTop:F.y})},onMouseLeave:()=>g()},`bar-${O}-${x}`)}),c.jsx(fY,{top:u,scale:f,label:`${n} ➔`,labelProps:{...mS,dy:22},stroke:"#0D819F",hideTicks:!0,tickComponent:C=>c.jsx(BQ,{tickData:C,xAxisCharLimit:i,bandwidth:f.bandwidth()})}),c.jsx(sY,{scale:d,label:`${o} ➔`,labelProps:mS,stroke:"#0D819F",hideTicks:!0,tickLabelProps:{...LQ,dx:"-0.5em"},numTicks:5})]})}),p&&c.jsx(b,{top:m,left:v,unstyled:!0,applyPositionStyle:!0,children:c.jsx(vS,{xAxisLabel:n,yAxisLabel:o,xValue:p.x,yValue:p.y,showSideBySide:!0,tooltipTitle:a,legendValue:o,legendDarkColor:ke(0).dark,legendLightColor:ke(0).light})},Xt(0,4294967295))]})}),bS=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(yS,{ref:a,width:i,height:s,data:e,xAxisLabel:t,yAxisLabel:r,tooltipTitle:n,xAxisCharLimit:o})}));bS.displayName="BarChart",yS.displayName="BarChartBase";var va="ToggleGroup",[wS,OJ]=Ke(va,[Oo]),xS=Oo(),Q2=M.forwardRef((e,t)=>{const{type:r,...n}=e;if(r==="single"){const o=n;return c.jsx(zQ,{...o,ref:t})}if(r==="multiple"){const o=n;return c.jsx(qQ,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${va}\``)});Q2.displayName=va;var[CS,AS]=wS(va),zQ=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(CS,{scope:e.__scopeToggleGroup,type:"single",value:i?[i]:[],onItemActivate:s,onItemDeactivate:M.useCallback(()=>s(""),[s]),children:c.jsx(MS,{...a,ref:t})})}),qQ=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(CS,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:l,onItemDeactivate:u,children:c.jsx(MS,{...a,ref:t})})});Q2.displayName=va;var[WQ,HQ]=wS(va),MS=M.forwardRef((e,t)=>{const{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...l}=e,u=xS(r),f=tn(i),d={role:"group",dir:f,...l};return c.jsx(WQ,{scope:r,rovingFocus:o,disabled:n,children:o?c.jsx(l0,{asChild:!0,...u,orientation:a,dir:f,loop:s,children:c.jsx(ce.div,{...d,ref:t})}):c.jsx(ce.div,{...d,ref:t})})}),Vf="ToggleGroupItem",SS=M.forwardRef((e,t)=>{const r=AS(Vf,e.__scopeToggleGroup),n=HQ(Vf,e.__scopeToggleGroup),o=xS(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(c0,{asChild:!0,...o,focusable:!i,active:a,ref:l,children:c.jsx(PS,{...s,ref:t})}):c.jsx(PS,{...s,ref:t})});SS.displayName=Vf;var PS=M.forwardRef((e,t)=>{const{__scopeToggleGroup:r,value:n,...o}=e,a=AS(Vf,r),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return c.jsx(nd,{...s,...o,ref:t,onPressedChange:l=>{l?a.onItemActivate(n):a.onItemDeactivate(n)}})}),jQ=Q2,UQ=SS;function VQ({children:e,...t}){return c.jsx(jQ,{className:"flex gap-2",...t,children:e})}function YQ({value:e,disabled:t,selected:r,icon:n,label:o,count:a,...i}){return c.jsx(UQ,{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 ma="NavigationMenu",[Z2,_S,GQ]=Tn(ma),[J2,$Q,XQ]=Tn(ma),[R2,TJ]=Ke(ma,[GQ,XQ]),[KQ,Gt]=R2(ma),[QQ,ZQ]=R2(ma),OS=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),g=ve(t,P=>h(P)),p=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}),O=S.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>x(""),150)},[x]),T=S.useCallback(P=>{window.clearTimeout(m.current),x(P)},[x]),E=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(ES,{scope:r,isRootMenu:!0,value:C,dir:p,orientation:l,rootNavigationMenu:d,onTriggerEnter:P=>{window.clearTimeout(v.current),b?E(P):T(P)},onTriggerLeave:()=>{window.clearTimeout(v.current),O()},onContentEnter:()=>window.clearTimeout(m.current),onContentLeave:O,onItemSelect:P=>{x(A=>A===P?"":P)},onItemDismiss:()=>x(""),children:c.jsx(ce.nav,{"aria-label":"Main","data-orientation":l,dir:p,...f,ref:g})})});OS.displayName=ma;var TS="NavigationMenuSub",JQ=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,value:n,onValueChange:o,defaultValue:a,orientation:i="horizontal",...s}=e,l=Gt(TS,r),[u="",f]=Qe({prop:n,onChange:o,defaultProp:a});return c.jsx(ES,{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})})});JQ.displayName=TS;var ES=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:g}=e,[p,v]=S.useState(null),[m,y]=S.useState(new Map),[b,w]=S.useState(null);return c.jsx(KQ,{scope:t,isRootMenu:r,rootNavigationMenu:n,value:s,previousValue:xa(s),baseId:ut(),dir:o,orientation:a,viewport:p,onViewportChange:v,indicatorTrack:b,onIndicatorTrackChange:w,onTriggerEnter:Ve(f),onTriggerLeave:Ve(d),onContentEnter:Ve(h),onContentLeave:Ve(g),onItemSelect:Ve(l),onItemDismiss:Ve(u),onViewportContentChange:S.useCallback((C,x)=>{y(O=>(O.set(C,x),new Map(O)))},[]),onViewportContentRemove:S.useCallback(C=>{y(x=>x.has(C)?(x.delete(C),new Map(x)):x)},[]),children:c.jsx(Z2.Provider,{scope:t,children:c.jsx(QQ,{scope:t,items:m,children:i})})})},NS="NavigationMenuList",kS=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...n}=e,o=Gt(NS,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(Z2.Slot,{scope:r,children:o.isRootMenu?c.jsx(HS,{asChild:!0,children:a}):a})})});kS.displayName=NS;var DS="NavigationMenuItem",[RQ,FS]=R2(DS),IS=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((p="start")=>{if(s.current){f.current();const v=ng(s.current);v.length&&og(p==="start"?v:v.reverse())}},[]),g=S.useCallback(()=>{if(s.current){const p=ng(s.current);p.length&&(f.current=lZ(p))}},[]);return c.jsx(RQ,{scope:r,value:i,triggerRef:l,contentRef:s,focusProxyRef:u,wasEscapeCloseRef:d,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:g,onContentFocusOutside:g,children:c.jsx(ce.li,{...o,ref:t})})});IS.displayName=DS;var eg="NavigationMenuTrigger",LS=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,disabled:n,...o}=e,a=Gt(eg,e.__scopeNavigationMenu),i=FS(eg,e.__scopeNavigationMenu),s=S.useRef(null),l=ve(s,i.triggerRef,t),u=VS(a.baseId,i.value),f=YS(a.baseId,i.value),d=S.useRef(!1),h=S.useRef(!1),g=i.value===a.value;return c.jsxs(c.Fragment,{children:[c.jsx(Z2.ItemSlot,{scope:r,value:i.value,children:c.jsx(US,{asChild:!0,children:c.jsx(ce.button,{id:u,disabled:n,"data-disabled":n?"":void 0,"data-state":ig(g),"aria-expanded":g,"aria-controls":f,...o,ref:l,onPointerEnter:ne(e.onPointerEnter,()=>{h.current=!1,i.wasEscapeCloseRef.current=!1}),onPointerMove:ne(e.onPointerMove,Gf(()=>{n||h.current||i.wasEscapeCloseRef.current||d.current||(a.onTriggerEnter(i.value),d.current=!0)})),onPointerLeave:ne(e.onPointerLeave,Gf(()=>{n||(a.onTriggerLeave(),d.current=!1)})),onClick:ne(e.onClick,()=>{a.onItemSelect(i.value),h.current=g}),onKeyDown:ne(e.onKeyDown,p=>{const m={horizontal:"ArrowDown",vertical:a.dir==="rtl"?"ArrowLeft":"ArrowRight"}[a.orientation];g&&p.key===m&&(i.onEntryKeyDown(),p.preventDefault())})})})}),g&&c.jsxs(c.Fragment,{children:[c.jsx(b4,{"aria-hidden":!0,tabIndex:0,ref:i.focusProxyRef,onFocus:p=>{const v=i.contentRef.current,m=p.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})]})]})});LS.displayName=eg;var eZ="NavigationMenuLink",BS="navigationMenu.linkSelect",zS=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,active:n,onSelect:o,...a}=e;return c.jsx(US,{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(BS,{bubbles:!0,cancelable:!0});if(s.addEventListener(BS,u=>o==null?void 0:o(u),{once:!0}),ts(s,l),!l.defaultPrevented&&!i.metaKey){const u=new CustomEvent(Yf,{bubbles:!0,cancelable:!0});ts(s,u)}},{checkForDefaultPrevented:!1})})})});zS.displayName=eZ;var tg="NavigationMenuIndicator",tZ=S.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Gt(tg,e.__scopeNavigationMenu),a=!!o.value;return o.indicatorTrack?fo.createPortal(c.jsx(Re,{present:r||a,children:c.jsx(rZ,{...n,ref:t})}),o.indicatorTrack):null});tZ.displayName=tg;var rZ=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...n}=e,o=Gt(tg,r),a=_S(r),[i,s]=S.useState(null),[l,u]=S.useState(null),f=o.orientation==="horizontal",d=!!o.value;S.useEffect(()=>{var v;const p=(v=a().find(m=>m.value===o.value))==null?void 0:v.ref.current;p&&s(p)},[a,o.value]);const h=()=>{i&&u({size:f?i.offsetWidth:i.offsetHeight,offset:f?i.offsetLeft:i.offsetTop})};return ag(i,h),ag(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}),ya="NavigationMenuContent",qS=S.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Gt(ya,e.__scopeNavigationMenu),a=FS(ya,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(nZ,{forceMount:r,...l,ref:i}):c.jsx(Re,{present:r||s,children:c.jsx(WS,{"data-state":ig(s),...l,ref:i,onPointerEnter:ne(e.onPointerEnter,o.onContentEnter),onPointerLeave:ne(e.onPointerLeave,Gf(o.onContentLeave)),style:{pointerEvents:!s&&o.isRootMenu?"none":void 0,...l.style}})})});qS.displayName=ya;var nZ=S.forwardRef((e,t)=>{const r=Gt(ya,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}),Yf="navigationMenu.rootContentDismiss",WS=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,value:n,triggerRef:o,focusProxyRef:a,wasEscapeCloseRef:i,onRootContentClose:s,onContentFocusOutside:l,...u}=e,f=Gt(ya,r),d=S.useRef(null),h=ve(d,t),g=VS(f.baseId,n),p=YS(f.baseId,n),v=_S(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(Yf,C),()=>w.removeEventListener(Yf,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),O=C.indexOf(f.previousValue),T=n===f.value,E=O===C.indexOf(n);if(!T&&!E)return m.current;const P=(()=>{if(x!==O){if(T&&O!==-1)return x>O?"from-end":"from-start";if(E&&x!==-1)return x>O?"to-start":"to-end"}return null})();return m.current=P,P},[f.previousValue,f.value,f.dir,v,n]);return c.jsx(HS,{asChild:!0,children:c.jsx(En,{id:p,"aria-labelledby":g,"data-motion":b,"data-orientation":f.orientation,...u,ref:h,disableOutsidePointerEvents:!1,onDismiss:()=>{var C;const w=new Event(Yf,{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(E=>{var P;return(P=E.ref.current)==null?void 0:P.contains(C)}),O=f.isRootMenu&&((T=f.viewport)==null?void 0:T.contains(C));(x||O||!f.isRootMenu)&&w.preventDefault()}),onKeyDown:ne(e.onKeyDown,w=>{var O;const C=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!C){const T=ng(w.currentTarget),E=document.activeElement,P=T.findIndex(D=>D===E),N=w.shiftKey?T.slice(0,P).reverse():T.slice(P+1,T.length);og(N)?w.preventDefault():(O=a.current)==null||O.focus()}}),onEscapeKeyDown:ne(e.onEscapeKeyDown,w=>{i.current=!0})})})}),rg="NavigationMenuViewport",oZ=S.forwardRef((e,t)=>{const{forceMount:r,...n}=e,a=!!Gt(rg,e.__scopeNavigationMenu).value;return c.jsx(Re,{present:r||a,children:c.jsx(aZ,{...n,ref:t})})});oZ.displayName=rg;var aZ=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,children:n,...o}=e,a=Gt(rg,r),i=ve(t,a.onViewportChange),s=ZQ(ya,e.__scopeNavigationMenu),[l,u]=S.useState(null),[f,d]=S.useState(null),h=l?(l==null?void 0:l.width)+"px":void 0,g=l?(l==null?void 0:l.height)+"px":void 0,p=!!a.value,v=p?a.value:a.previousValue;return ag(f,()=>{f&&u({width:f.offsetWidth,height:f.offsetHeight})}),c.jsx(ce.div,{"data-state":ig(p),"data-orientation":a.orientation,...o,ref:i,style:{pointerEvents:!p&&a.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":h,"--radix-navigation-menu-viewport-height":g,...o.style},onPointerEnter:ne(e.onPointerEnter,a.onContentEnter),onPointerLeave:ne(e.onPointerLeave,Gf(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(WS,{...C,ref:wa(b,O=>{x&&O&&d(O)})})},y)})})}),iZ="FocusGroup",HS=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...n}=e,o=Gt(iZ,r);return c.jsx(J2.Provider,{scope:r,children:c.jsx(J2.Slot,{scope:r,children:c.jsx(ce.div,{dir:o.dir,...n,ref:t})})})}),jS=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],sZ="FocusGroupItem",US=S.forwardRef((e,t)=>{const{__scopeNavigationMenu:r,...n}=e,o=$Q(r),a=Gt(sZ,r);return c.jsx(J2.ItemSlot,{scope:r,children:c.jsx(ce.button,{...n,ref:t,onKeyDown:ne(e.onKeyDown,i=>{if(["Home","End",...jS].includes(i.key)){let l=o().map(d=>d.ref.current);if([a.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(i.key)&&l.reverse(),jS.includes(i.key)){const d=l.indexOf(i.currentTarget);l=l.slice(d+1)}setTimeout(()=>og(l)),i.preventDefault()}})})})});function ng(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 og(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}function lZ(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 ag(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 ig(e){return e?"open":"closed"}function VS(e,t){return`${e}-trigger-${t}`}function YS(e,t){return`${e}-content-${t}`}function Gf(e){return t=>t.pointerType==="mouse"?e(t):void 0}var cZ=OS,uZ=kS,fZ=IS,dZ=LS,GS=zS,hZ=qS;const pZ=Be(["rabbit-ds size-full px-3 py-2 [&>*:first-child]:h-full"],{variants:{variant:{default:""},defaultVariant:{variant:"default"}}});function gZ(){return c.jsx("div",{className:"relative size-full",children:c.jsxs("div",{className:"absolute left-0 top-0 size-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 size-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 size-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 size-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 size-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 size-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 size-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 $S=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 size-full",children:c.jsx(gZ,{})}),c.jsx(cZ,{className:R(pZ({className:e})),orientation:"vertical",ref:n,...r,children:c.jsx(uZ,{className:"m-0 flex h-full flex-col p-0",children:t})})]}));$S.displayName="LeftNav";const sg=M.forwardRef(({children:e,asChild:t=!1,...r},n)=>{const o=t?dr:"div";return c.jsx(fZ,{asChild:!0,children:c.jsx(o,{ref:n,className:"rabbit-ds",...r,children:e})})});sg.displayName="LeftNavItem",sg.defaultProps={asChild:!1};const vZ=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"}}}),XS=M.forwardRef(({children:e,align:t,...r},n)=>c.jsx("div",{ref:n,className:R(vZ({variant:t})),...r,children:e}));XS.displayName="LeftNavItem";const KS=M.forwardRef((e,t)=>c.jsx(GS,{ref:t,...e,className:"rabbit-ds z-20 flex size-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 size-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"})})]})]})}));KS.displayName="LeftNavHome";const mZ=Be(["rabbit-ds relative flex size-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"}}),yZ=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"}}),QS=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(GS,{"data-deer-btn":!0,className:R(mZ({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(yZ({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:Bg,size:"large"})})]})}));QS.displayName="LeftNavButton";const bZ=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 wZ({className:e,isCollapsed:t,...r}){return c.jsx("button",{"data-deer-btn":!0,type:"button",className:R(bZ({variant:t?"collapsed":"default"}),e),...r,children:c.jsx(ye,{IconSVG:kg,className:t?"rotate-180":""})})}const ZS=M.createContext({isOpen:!1,toggleOpen:()=>{}}),xZ=()=>M.useContext(ZS);function JS({...e}){const{isOpen:t,toggleOpen:r}=xZ();return c.jsx(wZ,{className:`absolute right-0 top-5 z-20 ${t?"":"translate-x-full"}`,isCollapsed:!t,onClick:r,...e})}function CZ(e){const{children:t,defaultOpen:r=!1,showCollapseButton:n=!0,isNetchexStyle:o=!1}=e,a=e.open!==void 0,[i,s]=M.useState(r),l=M.useCallback(()=>{s(h=>!h)},[]),u=a?e.open:i,f=a?e.onToggle:l,d=M.useMemo(()=>({isOpen:u,toggleOpen:f}),[u,f]);return c.jsx(ZS.Provider,{value:d,children:c.jsxs("div",{className:R("rabbit-ds relative h-screen transition-all",u?"w-full":"w-0",o?"":"shadow-[-8px_-2px_8px_0px_rgba(0,0,0,0.08)_inset]"),style:{background:o?"#f9fafb":"linear-gradient(273deg, #E7EFF1 0%, #EEF5F8 11%, #EFFAFE 100%)",borderRight:o&&u?"1px solid #e5e7eb":"none"},children:[n&&c.jsx(JS,{}),c.jsx("div",{className:u?"h-full p-5":"invisible size-0 scale-0 overflow-hidden opacity-0",children:t})]})})}function AZ({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 MZ({children:e}){return c.jsx("div",{className:"p-2 text-xs font-semibold text-body-secondary",children:e})}function SZ({children:e,...t}){return c.jsx(y4,{...t,children:e})}const PZ=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 _Z({className:e,orientation:t,...r}){return c.jsx("div",{className:PZ({orientation:t}),children:c.jsx(St,{className:R(e,"h-auto min-h-10"),variant:"transparentOutline",...r})})}const OZ={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"}},TZ=M.forwardRef(function({title:t,achieved:r,status:n,explanation:o,truncateExplanation:a=!0},i){const s=OZ[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:Lg}),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(Cy,{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 EZ({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 RS=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})]})]})]})}));RS.displayName="SharePraiseNudgeData";const eP=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})]})]})]})}));eP.displayName="RequestedFeedbackNudgeData";const NZ=Be("",{variants:{orientation:{horizontal:"flex-row",vertical:"min-w-max flex-col"}},defaultVariants:{orientation:"horizontal"}});function kZ({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",NZ({orientation:r}),e),children:t})}function DZ({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",g=()=>{l(p=>d?1:p+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:"size-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:g,iconRight:d?Eg:ho,children:["View ",d?"less":"more"]})})]})}function FZ({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:Wg}),c.jsxs("div",{className:"flex flex-col items-start text-sm",children:[c.jsx("span",{className:"font-semibold",children:e}),c.jsx(Yd,{date:t,showRelativeTime:!0})]})]})})}const tP=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(Yd,{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})]})]})]})})});tP.defaultProps={subTitle:void 0,scheduleDate:void 0};function IZ({label:e,onClick:t,customCompProps:r}){const[n,o]=M.useState(1);return c.jsxs(x0,{children:[c.jsx(Qs,{children:c.jsx("span",{children:e})}),c.jsx(w0,{children:c.jsx(Zs,{children:c.jsx(To,{children:c.jsxs("div",{className:"flex flex-col p-2",children:[c.jsx(as,{htmlFor:r==null?void 0:r.label,className:"text-xs",children:r==null?void 0:r.label}),c.jsx(os,{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 LZ({options:e}){const[t,r]=M.useState(!1),n=(o,a)=>{o(a),r(!1)};return c.jsxs($s,{open:t,children:[c.jsx(Xs,{asChild:!0,onClick:()=>r(!0),children:c.jsx(St,{variant:"text",size:"smallIcon",children:c.jsx(ye,{IconSVG:Ig})})}),c.jsx(ja,{className:"w-56",onFocusOutside:()=>r(!1),onPointerDownOutside:()=>r(!1),children:c.jsx(To,{children:e.map(({type:o,onClick:a,label:i,customCompProps:s})=>!o||o==="default"?c.jsx(Ua,{onClick:()=>n(a),children:c.jsx("span",{children:i})},i):c.jsx(IZ,{onClick:l=>n(a,l),label:i,customCompProps:s},i))})})]})}const rP=Ua,nP=To,oP=Ks,aP=el,iP=Js,sP=Rs,lP=M.forwardRef(({className:e,children:t,align:r="end",...n},o)=>c.jsx(ja,{ref:o,align:r,...n,children:t}));lP.displayName="SplitButtonDropdownContent";const BZ=Be("",{variants:{size:{normal:"icon",small:"smallIcon",icon:"icon",smallIcon:"smallIcon",nav:"icon"}},defaultVariants:{size:"normal"}});function zZ({children:e,size:t,status:r,variant:n,...o}){return c.jsx("div",{className:"rabbit-ds flex flex-row",children:c.jsxs($s,{children:[c.jsx(St,{variant:n,status:r,size:t,...o,className:"rounded-r-none",children:e}),c.jsx(Xs,{asChild:!0,children:c.jsx(St,{variant:n,status:r,className:"rounded-l-none border-l-0",size:BZ({size:t}),iconLeft:ho})})]})})}rP.displayName="SplitButtonDropdownItem",nP.displayName="SplitButtonDropdownGroup",oP.displayName="SplitButtonDropdownRadioGroup",aP.displayName="SplitButtonDropdownLabel",iP.displayName="SplitButtonDropdownCheckboxItem",sP.displayName="SplitButtonDropdownRadioItem";const cP=({bold:e=!1,xbold:t=!1,color:r="text-body-primary"})=>R("rabbit-ds-text",t?"font-bold":e?"font-semibold":"font-normal",r),qZ=({children:e,className:t,...r})=>c.jsx("h3",{className:R("text-350sm leading-500",cP(r),t),children:e}),WZ=({children:e,className:t,...r})=>c.jsx("p",{className:R("text-300sm leading-400",cP(r),t),children:e}),uP=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}));uP.displayName="ListItemComp";const fP=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}));fP.displayName="ListItemCompLeading";const dP=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}));dP.displayName="ListItemCompContent";const hP=({children:e,className:t,...r})=>c.jsx(qZ,{bold:!0,className:R("text-body-primary",t),...r,children:e});hP.displayName="ListItemCompTitle";const pP=({children:e,className:t,...r})=>c.jsx(WZ,{className:R("text-body-secondary",t),...r,children:e});pP.displayName="ListItemCompDescription";const gP=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}));gP.displayName="ListItemCompAction";const HZ=({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-2 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","size-[40px] border-2 border-solid"),variant:a===u?"filled":"outline",onClick:()=>s(u),children:l(u)},u))})};H.AICard=Fv,H.Accordion=Qv,H.AccordionContent=Rv,H.AccordionItem=Zv,H.AccordionTrigger=Jv,H.Add=u_,H.AddPerson=f_,H.Alert=em,H.AlertDescription=rm,H.AlertDialogAction=p3,H.AlertDialogCancel=h3,H.AlertDialogComponent=iN,H.AlertDialogContainer=f3,H.AlertDialogContent=zd,H.AlertDialogDescription=Wd,H.AlertDialogOverlay=Bd,H.AlertDialogPortal=d3,H.AlertDialogTitle=qd,H.AlertDialogTrigger=g3,H.AlertIcon=tm,H.Avatar=pr,H.AvatarBadge=tl,H.AvatarFallback=Ss,H.AvatarGroup=Y0,H.AvatarImage=gr,H.BarChart=bS,H.Breadcrumb=Fy,H.BreadcrumbEllipsis=Wy,H.BreadcrumbItem=Ly,H.BreadcrumbLink=By,H.BreadcrumbList=Iy,H.BreadcrumbPage=zy,H.BreadcrumbSeparator=qy,H.Button=St,H.Calendar=d_,H.Caption=jd,H.Card=_a,H.CardContent=vd,H.CardDescription=Pv,H.CardHeader=Sv,H.CardKPI=rB,H.CardTitle=gd,H.Carousel=cz,H.CarouselContainer=uz,H.CarouselNextButton=dz,H.CarouselPrevButton=fz,H.Channel=h_,H.Check=Ma,H.CheckCircleOutline=_g,H.Checkbox=Sa,H.ChevronDown=ho,H.ChevronLeft=p_,H.ChevronLeftCircle=Og,H.ChevronRight=ns,H.ChevronRightCircle=Tg,H.ChevronUp=Eg,H.Chip=CO,H.ChipGroup=VQ,H.ChipGroupItem=YQ,H.CircleChevronRight=g_,H.Close=Ng,H.CollapseNavigation=kg,H.CollapsibleCard=_v,H.ColumnFilter=Dg,H.ColumnFilterCheck=Hg,H.CompaRatio=RL,H.Company=v_,H.CompanySettings=m_,H.CompetenciesThin=y_,H.Country=b_,H.Cross=w_,H.Currency=x_,H.DateTime=Yd,H.Delete=C_,H.Develop=A_,H.DirectedLineChart=X2,H.DisplayName=M_,H.DonutChart=tS,H.Download=S_,H.Dropdown=$s,H.DropdownCheckboxItem=Js,H.DropdownChip=v4,H.DropdownContent=ja,H.DropdownGroup=To,H.DropdownItem=Ua,H.DropdownLabel=el,H.DropdownPortal=w0,H.DropdownRadioGroup=Ks,H.DropdownRadioItem=Rs,H.DropdownSeparator=C0,H.DropdownSub=x0,H.DropdownSubContent=Zs,H.DropdownSubTrigger=Qs,H.DropdownTrigger=Xs,H.EmployeeIdBadge=P_,H.Engagement=__,H.EngagementNudgeData=FZ,H.ErrorOutline=rd,H.ExpandDown=O_,H.ExpandRight=Fg,H.Feedback=T_,H.Gear=E_,H.Goal=N_,H.GoalFrequency=k_,H.GoalsCollaborators=D_,H.GoalsNudgeData=TZ,H.GoalsThin=F_,H.GridChart=K2,H.GridDirectedLineChart=gS,H.Help=I_,H.Help2=L_,H.HistogramChart=JM,H.HistoryComments=B_,H.Home=z_,H.HoverCard=QL,H.HoverCardContent=Xy,H.HoverCardPortal=JL,H.HoverCardTrigger=ZL,H.Icon=ye,H.Info=q_,H.InfoWorkZero=On,H.Initiatives=W_,H.Input=os,H.KebabMenu=Ig,H.KnowTeamNudgeData=tP,H.Label=as,H.LeftNav=$S,H.LeftNavButton=QS,H.LeftNavGroup=XS,H.LeftNavHome=KS,H.LeftNavItem=sg,H.LeftNavItemContent=hZ,H.LeftNavItemDropdown=$s,H.LeftNavItemDropdownCheckboxItem=Js,H.LeftNavItemDropdownContent=ja,H.LeftNavItemDropdownGroup=To,H.LeftNavItemDropdownItem=Ua,H.LeftNavItemDropdownLabel=el,H.LeftNavItemDropdownPortal=w0,H.LeftNavItemDropdownRadioGroup=Ks,H.LeftNavItemDropdownRadioItem=Rs,H.LeftNavItemDropdownSeparator=C0,H.LeftNavItemDropdownSub=x0,H.LeftNavItemDropdownSubContent=Zs,H.LeftNavItemDropdownSubTrigger=Qs,H.LeftNavItemDropdownTrigger=Xs,H.LeftNavItemTrigger=dZ,H.LineChart=zM,H.ListItem=y4,H.ListItemComp=uP,H.ListItemCompAction=gP,H.ListItemCompContent=dP,H.ListItemCompDescription=pP,H.ListItemCompLeading=fP,H.ListItemCompTitle=hP,H.ListItemIcon=tI,H.ListItemText=RF,H.Logout=H_,H.Manager=j_,H.ManagerWithBorder=U_,H.MeshLogo=jg,H.MeshMaven=hO,H.MeshMavenAsk=pO,H.MeshMavenDisabledThumbsUp=gO,H.MeshMavenGlassesOnDefault=vO,H.MeshMavenWithHording=mO,H.MeshMavenWithOrangeBulb=yO,H.MeshMavenWithThumbsUp=bO,H.Metric=Jy,H.MetricCard=Zy,H.MetricCardStatText=X0,H.MetricCardText=gl,H.MetricCardTitle=Ry,H.Milestone=V_,H.MyOneOnOne=Y_,H.MySettings=G_,H.NavCollapseButtonL2=JS,H.NavGroupL2=AZ,H.NavGroupTitleL2=MZ,H.NavItemL2=SZ,H.NavL2=CZ,H.NewPassword=$_,H.Notifications=X_,H.NudgeAction=_Z,H.NudgeCard=DZ,H.NudgeCardItem=kZ,H.NudgeKebabMenu=LZ,H.Objective=Lg,H.OneOnOne=K_,H.OneOnOneThin=Q_,H.Overflow=Bg,H.Peer=Z_,H.Person=J_,H.Product=R_,H.ProfileCard=K0,H.ProfileCardItem=e8,H.ProfileCardKey=t8,H.ProfileCardValue=r8,H.ProgressBar=nv,H.ProgressInfo=eB,H.ProgressSlider=nT,H.RadarChart=aS,H.Rating=HZ,H.RequestFeedback=eO,H.RequestedFeedbackNudgeData=eP,H.Reset=tO,H.Reviews=rO,H.ReviewsNudgeData=EZ,H.Role=nO,H.SankeyChart=$M,H.Search=zg,H.Select=kI,H.SelectContent=R4,H.SelectGroup=DI,H.SelectItem=ty,H.SelectLabel=ey,H.SelectSeparator=ry,H.SelectTrigger=J4,H.SelectValue=FI,H.SelfScore=oO,H.Settings=aO,H.SettingsFeedback=iO,H.SettingsGoals=sO,H.SettingsSchedule=lO,H.ShareFeedback=cO,H.SharePraiseNudgeData=RS,H.SliderDrag=qg,H.SplitButton=zZ,H.SplitButtonDropdownCheckboxItem=iP,H.SplitButtonDropdownContent=lP,H.SplitButtonDropdownGroup=nP,H.SplitButtonDropdownItem=rP,H.SplitButtonDropdownLabel=aP,H.SplitButtonDropdownRadioGroup=oP,H.SplitButtonDropdownRadioItem=sP,H.SplitDetails=uO,H.StackedBarChart=fS,H.Survey=Wg,H.Switch=Dv,H.Tabs=yy,H.TabsContent=xy,H.TabsList=by,H.TabsTrigger=wy,H.Tag=Cy,H.Task=fO,H.Team=dO,H.Toaster=LL,H.Tooltip=z0,H.TooltipContent=cl,H.TooltipPortal=W0,H.TooltipProvider=B0,H.TooltipTrigger=q0,H.TrendingDown=Ug,H.TrendingUp=Vg,H.getInitialsFromName=S3,H.toast=AL,Object.defineProperty(H,Symbol.toStringTag,{value:"Module"})});
|
package/dist/index.d.ts
CHANGED
|
@@ -797,6 +797,7 @@ export declare const ColumnFilterCheck: (props: SVGProps<SVGSVGElement>) => JSX_
|
|
|
797
797
|
declare interface CommonNavL2Props {
|
|
798
798
|
children: React.ReactNode | React.ReactNode[];
|
|
799
799
|
defaultOpen?: boolean;
|
|
800
|
+
isNetchexStyle?: boolean;
|
|
800
801
|
}
|
|
801
802
|
|
|
802
803
|
export declare const Company: (props: SVGProps<SVGSVGElement>) => JSX_2.Element;
|