@patterninc/pattern-ui 0.0.0-main.202611022009.697a2fa6f07f → 0.0.0-main.202611030431.8ecee517c09c

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.
Files changed (106) hide show
  1. package/dist/browser/@patterninc/pattern-ui/accordion.js +1 -1
  2. package/dist/browser/@patterninc/pattern-ui/actions.js +1 -1
  3. package/dist/browser/@patterninc/pattern-ui/activity-card.js +1 -1
  4. package/dist/browser/@patterninc/pattern-ui/artifact/Asset.js +1 -1
  5. package/dist/browser/@patterninc/pattern-ui/artifact/image-artifact/GalleryPanelContent.js +1 -1
  6. package/dist/browser/@patterninc/pattern-ui/artifact/image-artifact/ImageArtifact.js +1 -1
  7. package/dist/browser/@patterninc/pattern-ui/artifact/image-artifact/Lightbox.js +1 -1
  8. package/dist/browser/@patterninc/pattern-ui/brands.js +1 -1
  9. package/dist/browser/@patterninc/pattern-ui/breadcrumb.js +1 -1
  10. package/dist/browser/@patterninc/pattern-ui/button-group.js +1 -1
  11. package/dist/browser/@patterninc/pattern-ui/charts/area.js +1 -1
  12. package/dist/browser/@patterninc/pattern-ui/charts/bar.js +1 -1
  13. package/dist/browser/@patterninc/pattern-ui/charts/candlestick.js +1 -1
  14. package/dist/browser/@patterninc/pattern-ui/charts/composed.js +1 -1
  15. package/dist/browser/@patterninc/pattern-ui/charts/core.js +1 -1
  16. package/dist/browser/@patterninc/pattern-ui/charts/line.js +1 -1
  17. package/dist/browser/@patterninc/pattern-ui/charts/live.js +1 -1
  18. package/dist/browser/@patterninc/pattern-ui/charts/scatter.js +1 -1
  19. package/dist/browser/@patterninc/pattern-ui/command.js +1 -1
  20. package/dist/browser/@patterninc/pattern-ui/content-header.js +1 -1
  21. package/dist/browser/@patterninc/pattern-ui/data-grid.js +1 -1
  22. package/dist/browser/@patterninc/pattern-ui/detail-nav.js +1 -1
  23. package/dist/browser/@patterninc/pattern-ui/dev-tools.js +1 -1
  24. package/dist/browser/@patterninc/pattern-ui/dropdown.js +1 -1
  25. package/dist/browser/@patterninc/pattern-ui/feedback-gateway-provider.js +1 -1
  26. package/dist/browser/@patterninc/pattern-ui/feedback-gateway.js +1 -1
  27. package/dist/browser/@patterninc/pattern-ui/feedback-mode.js +1 -1
  28. package/dist/browser/@patterninc/pattern-ui/feedback-widget.js +1 -1
  29. package/dist/browser/@patterninc/pattern-ui/fields/select-field.js +1 -1
  30. package/dist/browser/@patterninc/pattern-ui/image-card.js +1 -1
  31. package/dist/browser/@patterninc/pattern-ui/image-compare.js +1 -1
  32. package/dist/browser/@patterninc/pattern-ui/image-grid.js +1 -1
  33. package/dist/browser/@patterninc/pattern-ui/list-item.js +1 -1
  34. package/dist/browser/@patterninc/pattern-ui/marketplace-pdp-card.js +1 -1
  35. package/dist/browser/@patterninc/pattern-ui/menu.js +1 -1
  36. package/dist/browser/@patterninc/pattern-ui/message-feedback.js +1 -1
  37. package/dist/browser/@patterninc/pattern-ui/metric.js +1 -1
  38. package/dist/browser/@patterninc/pattern-ui/modal.js +1 -1
  39. package/dist/browser/@patterninc/pattern-ui/nav-mobile-drawer.js +1 -1
  40. package/dist/browser/@patterninc/pattern-ui/nav.js +1 -1
  41. package/dist/browser/@patterninc/pattern-ui/number-badge.js +1 -1
  42. package/dist/browser/@patterninc/pattern-ui/pagination.js +1 -1
  43. package/dist/browser/@patterninc/pattern-ui/panel.js +1 -1
  44. package/dist/browser/@patterninc/pattern-ui/prefix.js +1 -1
  45. package/dist/browser/@patterninc/pattern-ui/prompt-queue.js +1 -1
  46. package/dist/browser/@patterninc/pattern-ui/queue-item.js +1 -1
  47. package/dist/browser/@patterninc/pattern-ui/section.js +1 -1
  48. package/dist/browser/@patterninc/pattern-ui/select-control.js +1 -1
  49. package/dist/browser/@patterninc/pattern-ui/select.js +1 -1
  50. package/dist/browser/@patterninc/pattern-ui/source.js +1 -1
  51. package/dist/browser/@patterninc/pattern-ui/sub-nav-row.js +1 -1
  52. package/dist/browser/@patterninc/pattern-ui/sub-nav.js +1 -1
  53. package/dist/browser/@patterninc/pattern-ui/suffix.js +1 -1
  54. package/dist/browser/@patterninc/pattern-ui/table.js +1 -1
  55. package/dist/browser/@patterninc/pattern-ui/tabs.js +1 -1
  56. package/dist/browser/@patterninc/pattern-ui/tool-call.js +1 -1
  57. package/dist/browser/@patterninc/pattern-ui/toolbar.js +1 -1
  58. package/dist/browser/@patterninc/pattern-ui/upload.js +1 -1
  59. package/dist/browser/@patterninc/pattern-ui/user-request.js +1 -1
  60. package/dist/browser/_chunks/Brands-BFCHD_gn.js +1 -0
  61. package/dist/browser/_chunks/{ButtonGroup-CnigUM7E.js → ButtonGroup-Xm6OYeiG.js} +1 -1
  62. package/dist/browser/_chunks/{ContentHeader-C2QxqfQb.js → ContentHeader-1RLEY0cP.js} +1 -1
  63. package/dist/browser/_chunks/Dropdown-gVYurhwr.js +1 -0
  64. package/dist/browser/_chunks/{FeedbackMode-canq5LK1.js → FeedbackMode-B827DiFK.js} +1 -1
  65. package/dist/browser/_chunks/{FeedbackWidget-BuVnn7SR.js → FeedbackWidget-BLvlkIyz.js} +1 -1
  66. package/dist/browser/_chunks/{ImageGrid-CUef0_My.js → ImageGrid-DAFpf1KJ.js} +1 -1
  67. package/dist/browser/_chunks/{Lightbox-BbUkfkCP.js → Lightbox-tD0ITLK_.js} +1 -1
  68. package/dist/browser/_chunks/{ListItem-44-5Eht6.js → ListItem-D60x86Ry.js} +1 -1
  69. package/dist/browser/_chunks/{Modal-Da9zmHLo.js → Modal-BbpsjLio.js} +1 -1
  70. package/dist/browser/_chunks/NumberBadge-Cm-SGPEM.js +1 -0
  71. package/dist/browser/_chunks/{Prefix-DtlCVS3L.js → Prefix-DiQ-Ofl9.js} +1 -1
  72. package/dist/browser/_chunks/{QueueItem-DlOoEEl2.js → QueueItem-ChE7WChz.js} +1 -1
  73. package/dist/browser/_chunks/{ReorderDragHandle-DXmzDK4O.js → ReorderDragHandle-BiVNgJsy.js} +1 -1
  74. package/dist/browser/_chunks/{Section-DiQycKuA.js → Section-CmsHfmQJ.js} +1 -1
  75. package/dist/browser/_chunks/{Select-C9Ox2nf9.js → Select-CuMCwX_y.js} +1 -1
  76. package/dist/browser/_chunks/{SelectControl-NHOAtLnF.js → SelectControl-CMLhVknt.js} +1 -1
  77. package/dist/browser/_chunks/{SubNavRow-CtiNTi-3.js → SubNavRow-C_TR_eVU.js} +1 -1
  78. package/dist/browser/_chunks/{Suffix-BErcrGIj.js → Suffix-BhwXL7yr.js} +1 -1
  79. package/dist/browser/_chunks/{Table-Ct_7lRuK.js → Table-CrxS33Fw.js} +1 -1
  80. package/dist/browser/_chunks/{TableRowFooter-CQqLeFHj.js → TableRowFooter-tOiEr-25.js} +1 -1
  81. package/dist/browser/_chunks/{Tabs-BcQL2S6J.js → Tabs-D1SJuPGd.js} +1 -1
  82. package/dist/browser/_chunks/{Toolbar-DNxqC_do.js → Toolbar-CEBAnhgb.js} +1 -1
  83. package/dist/browser/_chunks/{Upload-DciNbHai.js → Upload-DIrGdmkx.js} +1 -1
  84. package/dist/browser/_chunks/{actions-i_e_w6SV.js → actions-BKhQYiJM.js} +1 -1
  85. package/dist/browser/_chunks/{area-series-CJuoy0nm.js → area-series-AyZzEL9U.js} +1 -1
  86. package/dist/browser/_chunks/{command-Dt01rREB.js → command-C4aCH4Oh.js} +1 -1
  87. package/dist/browser/_chunks/{line-series-terminal-marker-a4xzvMaZ.js → line-series-terminal-marker-7fkPeYx9.js} +1 -1
  88. package/dist/browser/_chunks/{series-tag-Bg1kAB-R.js → series-tag-B5-Cbtpg.js} +1 -1
  89. package/dist/browser/_chunks/{source-BNGgpaoa.js → source-CaPOa6dW.js} +1 -1
  90. package/dist/browser/_chunks/{time-series-chart-shell-jt_eAlI8.js → time-series-chart-shell-CwnE5_zx.js} +1 -1
  91. package/dist/components/Brands/Brands.js +311 -294
  92. package/dist/components/Brands/brands-data.js +335 -0
  93. package/dist/components/Dropdown/Dropdown.js +380 -299
  94. package/dist/components/NumberBadge/NumberBadge.js +1 -1
  95. package/dist/components/PromptQueue/PromptQueue.js +101 -77
  96. package/dist/play-cdn-claude.js +1 -1
  97. package/package.json +1 -1
  98. package/src/components/Brands/Brands.tsx +109 -111
  99. package/src/components/Brands/brands-data.ts +359 -5
  100. package/src/components/Dropdown/Dropdown.tsx +76 -9
  101. package/src/components/FloatingToolbar/FloatingToolbar.tsx +0 -1
  102. package/src/components/NumberBadge/NumberBadge.tsx +2 -3
  103. package/src/components/PromptQueue/PromptQueue.tsx +9 -9
  104. package/dist/browser/_chunks/Brands-DAfm2bHa.js +0 -1
  105. package/dist/browser/_chunks/Dropdown-Dl5728MP.js +0 -1
  106. package/dist/browser/_chunks/NumberBadge-Df7OslSJ.js +0 -1
@@ -1 +1 @@
1
- import{a as e}from"../../_chunks/rolldown-runtime-BWaJ3C7D.js";import{o as t}from"../../_chunks/transitions-Cn0Tw_ua.js";import{t as n}from"../../_chunks/react-CUaU2Z9V.js";import{t as r}from"../../_chunks/ChevronRightIcon-Dgm8qBR8.js";import{t as i}from"../../_chunks/compiler-runtime-B3BlmaWz.js";import{t as a}from"../../_chunks/jsx-runtime-Dgn0yPdi.js";import{t as o}from"../../_chunks/dist-BNSTMZct.js";import{t as s}from"../../_chunks/Prefix-DtlCVS3L.js";import{n as c}from"../../_chunks/react-B3hSlcN2.js";import{t as l}from"../../_chunks/AnimatePresence-B0AmNCpD.js";import{t as u}from"../../_chunks/use-reduced-motion-CNBdBisf.js";var d=i(),f=/* @__PURE__ */ e(n(),1),p=/* @__PURE__ */ e(a(),1);const m={duration:.2,ease:`easeOut`};function h(e){let t=(0,d.c)(8),{isOpen:n}=e,i=u(),a=n?90:0,o;t[0]===a?o=t[1]:(o={rotate:a},t[0]=a,t[1]=o);let s;t[2]===i?s=t[3]:(s=i?{duration:0}:m,t[2]=i,t[3]=s);let l;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(l=/* @__PURE__ */ (0,p.jsx)(r,{size:20,color:`icon-sub`}),t[4]=l):l=t[4];let f;return t[5]!==o||t[6]!==s?(f=/* @__PURE__ */ (0,p.jsx)(`div`,{className:`flex shrink-0 items-center justify-center`,children:/* @__PURE__ */ (0,p.jsx)(c.div,{className:`transform-gpu will-change-transform backface-hidden`,animate:o,transition:s,children:l})}),t[5]=o,t[6]=s,t[7]=f):f=t[7],f}function g(e){let t=(0,d.c)(22),n,r,i,a,s;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],s=t[5]):({items:r,defaultActiveIndex:a,className:n,qaTestId:s,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=s);let c=a===void 0?null:a,l=s===void 0?`accordion`:s,[u,m]=(0,f.useState)(c),h;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(h=e=>{m(t=>t===e?null:e)},t[6]=h):h=t[6];let g=h,_;t[7]===n?_=t[8]:(_=o(`flex flex-col gap-0`,n),t[7]=n,t[8]=_);let v;if(t[9]!==u||t[10]!==c||t[11]!==r){let e;t[13]!==u||t[14]!==c||t[15]!==r.length?(e=(e,t)=>/* @__PURE__ */ (0,p.jsx)(ee,{item:e,index:t,isOpen:u===t,onToggle:g,totalItems:r.length,activeIndex:u,isInitialMount:c===t},e.id??t),t[13]=u,t[14]=c,t[15]=r.length,t[16]=e):e=t[16],v=r.map(e),t[9]=u,t[10]=c,t[11]=r,t[12]=v}else v=t[12];let y;return t[17]!==i||t[18]!==l||t[19]!==_||t[20]!==v?(y=/* @__PURE__ */ (0,p.jsx)(`ul`,{...i,className:_,"qa-test-id":l,children:v}),t[17]=i,t[18]=l,t[19]=_,t[20]=v,t[21]=y):y=t[21],y}function ee(e){let n=(0,d.c)(58),{item:r,index:i,isOpen:a,onToggle:g,totalItems:ee,activeIndex:_,isInitialMount:v}=e,y=u(),te=(0,f.useRef)(null),[b,ne]=(0,f.useState)(0),[x,re]=(0,f.useState)(!v||!a),S=f.useId(),C=`${S}-trigger`,w=`${S}-content`,T=r.subtext?62:44,E=i===0,D=i===ee-1,ie=_!==null&&i===_+1,ae=_!==null&&i===_-1,O=E||a||ie?`var(--radius-20)`:`0px`,k=E||a||ie?`var(--radius-20)`:`0px`,A=D||a||ae?`var(--radius-20)`:`0px`,j=D||a||ae?`var(--radius-20)`:`0px`,M;n[0]!==O||n[1]!==k||n[2]!==A||n[3]!==j?(M={borderTopLeftRadius:O,borderTopRightRadius:k,borderBottomRightRadius:A,borderBottomLeftRadius:j},n[0]=O,n[1]=k,n[2]=A,n[3]=j,n[4]=M):M=n[4];let N=M,P,F;n[5]!==v||n[6]!==a?(P=()=>{let e=te.current;if(!e||!a)return;let t=()=>{ne(e.scrollHeight)},n=null;v&&a?(t(),re(!0)):n=requestAnimationFrame(()=>{requestAnimationFrame(t)});let r=new ResizeObserver(()=>{a&&requestAnimationFrame(t)});return r.observe(e),()=>{r.disconnect(),n&&cancelAnimationFrame(n)}},F=[a,v],n[5]=v,n[6]=a,n[7]=P,n[8]=F):(P=n[7],F=n[8]),(0,f.useEffect)(P,F);let I=v&&a?!1:void 0,L=a?`8px`:`0px`,R=a&&b>0?`${b+T}px`:`${T}px`,z=a?`inset 0 0 0 1px var(--color-depth-black-4)`:`none`,B;n[9]!==N||n[10]!==R||n[11]!==z||n[12]!==L?(B={marginBlock:L,height:R,...N,boxShadow:z},n[9]=N,n[10]=R,n[11]=z,n[12]=L,n[13]=B):B=n[13];let V;n[14]!==x||n[15]!==y?(V=y||!x?{duration:0}:{...m,boxShadow:t},n[14]=x,n[15]=y,n[16]=V):V=n[16];let H;n[17]===Symbol.for(`react.memo_cache_sentinel`)?(H=o(`relative transform-gpu overflow-hidden bg-depth-black-4 transition-colors duration-150 backface-hidden hover:bg-depth-black-8 has-focus-visible:outline-2 has-focus-visible:-outline-offset-2 has-focus-visible:outline-primary-base motion-reduce:transition-none`,`will-change-[height,margin-block,border-radius,box-shadow]`),n[17]=H):H=n[17];let U;n[18]===r.prefix?U=n[19]:(U=r.prefix?/* @__PURE__ */ (0,p.jsx)(s,{...r.prefix,className:o(`shrink-0`,r.prefix.className)}):null,n[18]=r.prefix,n[19]=U);let W;n[20]!==i||n[21]!==g?(W=e=>{e.preventDefault(),e.stopPropagation(),g(i),re(!0)},n[20]=i,n[21]=g,n[22]=W):W=n[22];let G;n[23]===r.title?G=n[24]:(G=/* @__PURE__ */ (0,p.jsx)(`span`,{className:`pui-text-label-medium-loose truncate text-text-sub`,children:r.title}),n[23]=r.title,n[24]=G);let K;n[25]===r.subtext?K=n[26]:(K=r.subtext?/* @__PURE__ */ (0,p.jsx)(`span`,{className:`pui-text-mono-small truncate text-text-soft`,children:r.subtext}):null,n[25]=r.subtext,n[26]=K);let q;n[27]!==G||n[28]!==K?(q=/* @__PURE__ */ (0,p.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[G,K]}),n[27]=G,n[28]=K,n[29]=q):q=n[29];let J;n[30]===a?J=n[31]:(J=/* @__PURE__ */ (0,p.jsx)(h,{isOpen:a}),n[30]=a,n[31]=J);let Y;n[32]!==w||n[33]!==a||n[34]!==W||n[35]!==q||n[36]!==J||n[37]!==C?(Y=/* @__PURE__ */ (0,p.jsxs)(`button`,{id:C,type:`button`,"aria-expanded":a,"aria-controls":w,className:`flex min-w-0 flex-1 cursor-pointer items-center gap-2.5 text-left outline-none`,onClick:W,children:[q,J]}),n[32]=w,n[33]=a,n[34]=W,n[35]=q,n[36]=J,n[37]=C,n[38]=Y):Y=n[38];let X;n[39]!==U||n[40]!==Y?(X=/* @__PURE__ */ (0,p.jsxs)(`div`,{className:`flex h-fit items-center gap-2.5 px-4 py-2.5`,children:[U,Y]}),n[39]=U,n[40]=Y,n[41]=X):X=n[41];let Z;n[42]!==w||n[43]!==x||n[44]!==v||n[45]!==a||n[46]!==r.content||n[47]!==y||n[48]!==C?(Z=a&&/* @__PURE__ */ (0,p.jsx)(c.div,{id:w,ref:te,role:`region`,"aria-labelledby":C,initial:y||v&&a?!1:{opacity:0},animate:{opacity:1},exit:y?{opacity:1}:{opacity:0},transition:y||!x?{duration:0}:m,className:`transform-gpu px-4 pb-3 will-change-[opacity] backface-hidden`,children:/* @__PURE__ */ (0,p.jsx)(`div`,{className:`pui-text-body-medium text-text-sub`,children:r.content})}),n[42]=w,n[43]=x,n[44]=v,n[45]=a,n[46]=r.content,n[47]=y,n[48]=C,n[49]=Z):Z=n[49];let Q;n[50]===Z?Q=n[51]:(Q=/* @__PURE__ */ (0,p.jsx)(l,{children:Z}),n[50]=Z,n[51]=Q);let $;return n[52]!==B||n[53]!==V||n[54]!==X||n[55]!==Q||n[56]!==I?($=/* @__PURE__ */ (0,p.jsxs)(c.li,{initial:I,animate:B,transition:V,className:H,children:[X,Q]}),n[52]=B,n[53]=V,n[54]=X,n[55]=Q,n[56]=I,n[57]=$):$=n[57],$}export{g as Accordion};
1
+ import{a as e}from"../../_chunks/rolldown-runtime-BWaJ3C7D.js";import{o as t}from"../../_chunks/transitions-Cn0Tw_ua.js";import{t as n}from"../../_chunks/react-CUaU2Z9V.js";import{t as r}from"../../_chunks/ChevronRightIcon-Dgm8qBR8.js";import{t as i}from"../../_chunks/compiler-runtime-B3BlmaWz.js";import{t as a}from"../../_chunks/jsx-runtime-Dgn0yPdi.js";import{t as o}from"../../_chunks/dist-BNSTMZct.js";import{t as s}from"../../_chunks/Prefix-DiQ-Ofl9.js";import{n as c}from"../../_chunks/react-B3hSlcN2.js";import{t as l}from"../../_chunks/AnimatePresence-B0AmNCpD.js";import{t as u}from"../../_chunks/use-reduced-motion-CNBdBisf.js";var d=i(),f=/* @__PURE__ */ e(n(),1),p=/* @__PURE__ */ e(a(),1);const m={duration:.2,ease:`easeOut`};function h(e){let t=(0,d.c)(8),{isOpen:n}=e,i=u(),a=n?90:0,o;t[0]===a?o=t[1]:(o={rotate:a},t[0]=a,t[1]=o);let s;t[2]===i?s=t[3]:(s=i?{duration:0}:m,t[2]=i,t[3]=s);let l;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(l=/* @__PURE__ */ (0,p.jsx)(r,{size:20,color:`icon-sub`}),t[4]=l):l=t[4];let f;return t[5]!==o||t[6]!==s?(f=/* @__PURE__ */ (0,p.jsx)(`div`,{className:`flex shrink-0 items-center justify-center`,children:/* @__PURE__ */ (0,p.jsx)(c.div,{className:`transform-gpu will-change-transform backface-hidden`,animate:o,transition:s,children:l})}),t[5]=o,t[6]=s,t[7]=f):f=t[7],f}function g(e){let t=(0,d.c)(22),n,r,i,a,s;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],s=t[5]):({items:r,defaultActiveIndex:a,className:n,qaTestId:s,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=s);let c=a===void 0?null:a,l=s===void 0?`accordion`:s,[u,m]=(0,f.useState)(c),h;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(h=e=>{m(t=>t===e?null:e)},t[6]=h):h=t[6];let g=h,_;t[7]===n?_=t[8]:(_=o(`flex flex-col gap-0`,n),t[7]=n,t[8]=_);let v;if(t[9]!==u||t[10]!==c||t[11]!==r){let e;t[13]!==u||t[14]!==c||t[15]!==r.length?(e=(e,t)=>/* @__PURE__ */ (0,p.jsx)(ee,{item:e,index:t,isOpen:u===t,onToggle:g,totalItems:r.length,activeIndex:u,isInitialMount:c===t},e.id??t),t[13]=u,t[14]=c,t[15]=r.length,t[16]=e):e=t[16],v=r.map(e),t[9]=u,t[10]=c,t[11]=r,t[12]=v}else v=t[12];let y;return t[17]!==i||t[18]!==l||t[19]!==_||t[20]!==v?(y=/* @__PURE__ */ (0,p.jsx)(`ul`,{...i,className:_,"qa-test-id":l,children:v}),t[17]=i,t[18]=l,t[19]=_,t[20]=v,t[21]=y):y=t[21],y}function ee(e){let n=(0,d.c)(58),{item:r,index:i,isOpen:a,onToggle:g,totalItems:ee,activeIndex:_,isInitialMount:v}=e,y=u(),te=(0,f.useRef)(null),[b,ne]=(0,f.useState)(0),[x,re]=(0,f.useState)(!v||!a),S=f.useId(),C=`${S}-trigger`,w=`${S}-content`,T=r.subtext?62:44,E=i===0,D=i===ee-1,ie=_!==null&&i===_+1,ae=_!==null&&i===_-1,O=E||a||ie?`var(--radius-20)`:`0px`,k=E||a||ie?`var(--radius-20)`:`0px`,A=D||a||ae?`var(--radius-20)`:`0px`,j=D||a||ae?`var(--radius-20)`:`0px`,M;n[0]!==O||n[1]!==k||n[2]!==A||n[3]!==j?(M={borderTopLeftRadius:O,borderTopRightRadius:k,borderBottomRightRadius:A,borderBottomLeftRadius:j},n[0]=O,n[1]=k,n[2]=A,n[3]=j,n[4]=M):M=n[4];let N=M,P,F;n[5]!==v||n[6]!==a?(P=()=>{let e=te.current;if(!e||!a)return;let t=()=>{ne(e.scrollHeight)},n=null;v&&a?(t(),re(!0)):n=requestAnimationFrame(()=>{requestAnimationFrame(t)});let r=new ResizeObserver(()=>{a&&requestAnimationFrame(t)});return r.observe(e),()=>{r.disconnect(),n&&cancelAnimationFrame(n)}},F=[a,v],n[5]=v,n[6]=a,n[7]=P,n[8]=F):(P=n[7],F=n[8]),(0,f.useEffect)(P,F);let I=v&&a?!1:void 0,L=a?`8px`:`0px`,R=a&&b>0?`${b+T}px`:`${T}px`,z=a?`inset 0 0 0 1px var(--color-depth-black-4)`:`none`,B;n[9]!==N||n[10]!==R||n[11]!==z||n[12]!==L?(B={marginBlock:L,height:R,...N,boxShadow:z},n[9]=N,n[10]=R,n[11]=z,n[12]=L,n[13]=B):B=n[13];let V;n[14]!==x||n[15]!==y?(V=y||!x?{duration:0}:{...m,boxShadow:t},n[14]=x,n[15]=y,n[16]=V):V=n[16];let H;n[17]===Symbol.for(`react.memo_cache_sentinel`)?(H=o(`relative transform-gpu overflow-hidden bg-depth-black-4 transition-colors duration-150 backface-hidden hover:bg-depth-black-8 has-focus-visible:outline-2 has-focus-visible:-outline-offset-2 has-focus-visible:outline-primary-base motion-reduce:transition-none`,`will-change-[height,margin-block,border-radius,box-shadow]`),n[17]=H):H=n[17];let U;n[18]===r.prefix?U=n[19]:(U=r.prefix?/* @__PURE__ */ (0,p.jsx)(s,{...r.prefix,className:o(`shrink-0`,r.prefix.className)}):null,n[18]=r.prefix,n[19]=U);let W;n[20]!==i||n[21]!==g?(W=e=>{e.preventDefault(),e.stopPropagation(),g(i),re(!0)},n[20]=i,n[21]=g,n[22]=W):W=n[22];let G;n[23]===r.title?G=n[24]:(G=/* @__PURE__ */ (0,p.jsx)(`span`,{className:`pui-text-label-medium-loose truncate text-text-sub`,children:r.title}),n[23]=r.title,n[24]=G);let K;n[25]===r.subtext?K=n[26]:(K=r.subtext?/* @__PURE__ */ (0,p.jsx)(`span`,{className:`pui-text-mono-small truncate text-text-soft`,children:r.subtext}):null,n[25]=r.subtext,n[26]=K);let q;n[27]!==G||n[28]!==K?(q=/* @__PURE__ */ (0,p.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[G,K]}),n[27]=G,n[28]=K,n[29]=q):q=n[29];let J;n[30]===a?J=n[31]:(J=/* @__PURE__ */ (0,p.jsx)(h,{isOpen:a}),n[30]=a,n[31]=J);let Y;n[32]!==w||n[33]!==a||n[34]!==W||n[35]!==q||n[36]!==J||n[37]!==C?(Y=/* @__PURE__ */ (0,p.jsxs)(`button`,{id:C,type:`button`,"aria-expanded":a,"aria-controls":w,className:`flex min-w-0 flex-1 cursor-pointer items-center gap-2.5 text-left outline-none`,onClick:W,children:[q,J]}),n[32]=w,n[33]=a,n[34]=W,n[35]=q,n[36]=J,n[37]=C,n[38]=Y):Y=n[38];let X;n[39]!==U||n[40]!==Y?(X=/* @__PURE__ */ (0,p.jsxs)(`div`,{className:`flex h-fit items-center gap-2.5 px-4 py-2.5`,children:[U,Y]}),n[39]=U,n[40]=Y,n[41]=X):X=n[41];let Z;n[42]!==w||n[43]!==x||n[44]!==v||n[45]!==a||n[46]!==r.content||n[47]!==y||n[48]!==C?(Z=a&&/* @__PURE__ */ (0,p.jsx)(c.div,{id:w,ref:te,role:`region`,"aria-labelledby":C,initial:y||v&&a?!1:{opacity:0},animate:{opacity:1},exit:y?{opacity:1}:{opacity:0},transition:y||!x?{duration:0}:m,className:`transform-gpu px-4 pb-3 will-change-[opacity] backface-hidden`,children:/* @__PURE__ */ (0,p.jsx)(`div`,{className:`pui-text-body-medium text-text-sub`,children:r.content})}),n[42]=w,n[43]=x,n[44]=v,n[45]=a,n[46]=r.content,n[47]=y,n[48]=C,n[49]=Z):Z=n[49];let Q;n[50]===Z?Q=n[51]:(Q=/* @__PURE__ */ (0,p.jsx)(l,{children:Z}),n[50]=Z,n[51]=Q);let $;return n[52]!==B||n[53]!==V||n[54]!==X||n[55]!==Q||n[56]!==I?($=/* @__PURE__ */ (0,p.jsxs)(c.li,{initial:I,animate:B,transition:V,className:H,children:[X,Q]}),n[52]=B,n[53]=V,n[54]=X,n[55]=Q,n[56]=I,n[57]=$):$=n[57],$}export{g as Accordion};
@@ -1 +1 @@
1
- export{t as Action,n as Actions}from"../../_chunks/actions-i_e_w6SV.js";
1
+ export{t as Action,n as Actions}from"../../_chunks/actions-BKhQYiJM.js";
@@ -1 +1 @@
1
- import{a as e}from"../../_chunks/rolldown-runtime-BWaJ3C7D.js";import{d as t,m as n,u as r}from"../../_chunks/transitions-Cn0Tw_ua.js";import{t as i}from"../../_chunks/react-CUaU2Z9V.js";import{t as a}from"../../_chunks/ChevronRightIcon-Dgm8qBR8.js";import{t as o}from"../../_chunks/ArrowRightIcon-OEjQROCT.js";import{t as s}from"../../_chunks/compiler-runtime-B3BlmaWz.js";import{t as c}from"../../_chunks/jsx-runtime-Dgn0yPdi.js";import{t as l}from"../../_chunks/dist-BNSTMZct.js";import{t as u}from"../../_chunks/Prefix-DtlCVS3L.js";import{n as d}from"../../_chunks/react-B3hSlcN2.js";import{t as f}from"../../_chunks/AnimatePresence-B0AmNCpD.js";import{t as p}from"../../_chunks/use-reduced-motion-CNBdBisf.js";import{t as m}from"../../_chunks/Button-Dpj5VLQ7.js";import{t as h}from"../../_chunks/button-constants-BRLmyaWg.js";import{i as g}from"../../_chunks/dist-BRMXKypj.js";import{t as _}from"../../_chunks/Avatar-BMklFAjX.js";import{t as v}from"../../_chunks/TextareaField-BvvqZn7n.js";import{t as y}from"../../_chunks/Tag-DNMINhyy.js";import{t as b}from"../../_chunks/Suffix-BErcrGIj.js";import{t as x}from"../../_chunks/Divider-DsSqNbiK.js";import{t as S}from"../../_chunks/CalendarIcon-bZZA4ofp.js";import{t as C}from"../../_chunks/SpeechBubbleIcon-Dfrb59ah.js";import{t as w}from"../../_chunks/Section-DiQycKuA.js";import{t as T}from"../../_chunks/Skeleton-Cgi33Fpd.js";import{t as E}from"../../_chunks/ChevronLeftIcon-DixrWUUO.js";import{t as D}from"../../_chunks/ButtonGroup-CnigUM7E.js";import{t as O}from"../../_chunks/ThumbsDownAlt-ginNWj6S.js";import{t as k}from"../../_chunks/ThumbsUpAlt-Cz4utpd3.js";import{t as A}from"../../_chunks/StopFillIcon-BHTuKSSq.js";var j=s(),M=/* @__PURE__ */ e(c(),1);function N(e){let i=(0,j.c)(40),{variations:o,variationIndex:s,onVariationChange:c,qaTestId:u}=e,m=s===void 0?0:s,h=u===void 0?`activity-card-variations-carousel`:u,g=p(),_=o.length,v=m<=0,y=m>=_-1,b;i[0]!==v||i[1]!==c||i[2]!==m?(b=()=>!v&&c?.(m-1),i[0]=v,i[1]=c,i[2]=m,i[3]=b):b=i[3];let x=b,S;i[4]!==y||i[5]!==c||i[6]!==m?(S=()=>!y&&c?.(m+1),i[4]=y,i[5]=c,i[6]=m,i[7]=S):S=i[7];let C=S,w=v?`icon-disabled`:`icon-strong`,T;i[8]===w?T=i[9]:(T=/* @__PURE__ */ (0,M.jsx)(E,{color:w,size:20}),i[8]=w,i[9]=T);let D;i[10]!==v||i[11]!==x||i[12]!==T?(D=/* @__PURE__ */ (0,M.jsx)(`button`,{type:`button`,"aria-label":`Previous variation`,onClick:x,disabled:v,className:`flex w-6 shrink-0 items-center justify-center rounded-lg bg-depth-black-4 transition-colors hover:bg-depth-black-8 disabled:cursor-not-allowed disabled:hover:bg-depth-black-4`,children:T}),i[10]=v,i[11]=x,i[12]=T,i[13]=D):D=i[13];let O=g?void 0:t,k;i[14]===Symbol.for(`react.memo_cache_sentinel`)?(k={willChange:`opacity, transform`,transform:`translate3d(0, 0, 0)`,backfaceVisibility:`hidden`},i[14]=k):k=i[14];let A=o[m],N;i[15]!==A||i[16]!==O||i[17]!==m?(N=/* @__PURE__ */ (0,M.jsx)(`div`,{className:`relative flex flex-1 items-center overflow-hidden rounded-xl border border-depth-black-4 bg-base-inverse p-2.5 group-data-[selected]:border-transparent group-data-[selected]:bg-depth-black-4`,children:/* @__PURE__ */ (0,M.jsx)(f,{mode:`popLayout`,initial:!1,children:/* @__PURE__ */ (0,M.jsx)(d.p,{className:`pui-text-body-medium-compact text-text-strong`,variants:O,initial:`enter`,animate:`center`,exit:`exit`,transition:r,style:k,children:A},m)})}),i[15]=A,i[16]=O,i[17]=m,i[18]=N):N=i[18];let F=y?`icon-disabled`:`icon-strong`,I;i[19]===F?I=i[20]:(I=/* @__PURE__ */ (0,M.jsx)(a,{color:F,size:20}),i[19]=F,i[20]=I);let L;i[21]!==y||i[22]!==C||i[23]!==I?(L=/* @__PURE__ */ (0,M.jsx)(`button`,{type:`button`,"aria-label":`Next variation`,onClick:C,disabled:y,className:`flex w-6 shrink-0 items-center justify-center rounded-lg bg-depth-black-4 transition-colors hover:bg-depth-black-8 disabled:cursor-not-allowed disabled:hover:bg-depth-black-4`,children:I}),i[21]=y,i[22]=C,i[23]=I,i[24]=L):L=i[24];let R;i[25]!==N||i[26]!==L||i[27]!==D?(R=/* @__PURE__ */ (0,M.jsxs)(`div`,{className:`flex h-24 w-full items-stretch gap-2`,children:[D,N,L]}),i[25]=N,i[26]=L,i[27]=D,i[28]=R):R=i[28];let z;if(i[29]!==m||i[30]!==o){let e;i[32]===m?e=i[33]:(e=(e,t)=>/* @__PURE__ */ (0,M.jsx)(d.div,{className:l(`h-1.5 rounded-full`,t===m?`bg-depth-black-100`:`bg-depth-black-4`),animate:{width:t===m?16:6},transition:n},t),i[32]=m,i[33]=e),z=o.map(e),i[29]=m,i[30]=o,i[31]=z}else z=i[31];let B;i[34]===z?B=i[35]:(B=/* @__PURE__ */ (0,M.jsx)(`div`,{className:`flex w-full items-center justify-center gap-1`,children:z}),i[34]=z,i[35]=B);let V;return i[36]!==h||i[37]!==R||i[38]!==B?(V=/* @__PURE__ */ (0,M.jsxs)(`div`,{className:`flex w-full flex-col gap-2`,role:`group`,"aria-label":`Navigate variations`,onClick:P,"qa-test-id":h,children:[R,B]}),i[36]=h,i[37]=R,i[38]=B,i[39]=V):V=i[39],V}function P(e){return e.stopPropagation()}i();function F(e){let t=e.trim().split(/\s+/).filter(Boolean),n=t[0];if(!n)return``;let r=t.at(-1);return`${n[0]??``}${t.length>1?r?.[0]??``:n[1]??``}`.toUpperCase()}function I(e){let t=(0,j.c)(29),{name:n,role:r,avatarSrc:i,date:a,commentCount:o,onCommentCountClick:s}=e,{i18n:c,_:l}=g(),u=r??a,f=o!=null&&o>0,p;t[0]!==o||t[1]!==c?(p=o==null?void 0:c.number(o),t[0]=o,t[1]=c,t[2]=p):p=t[2];let m;t[3]===p?m=t[4]:(m=/* @__PURE__ */ (0,M.jsx)(b,{variant:`tag`,tagText:p,tagIcon:C,tagVariant:`stroke`,tagSize:`medium`,className:`shrink-0`}),t[3]=p,t[4]=m);let v=m,x;t[5]===n?x=t[6]:(x=F(n),t[5]=n,t[6]=x);let w;t[7]!==i||t[8]!==n||t[9]!==x?(w=/* @__PURE__ */ (0,M.jsx)(_,{src:i,alt:n,initials:x}),t[7]=i,t[8]=n,t[9]=x,t[10]=w):w=t[10];let T;t[11]===n?T=t[12]:(T=/* @__PURE__ */ (0,M.jsx)(`p`,{className:`pui-text-label-medium truncate text-text-strong`,children:n}),t[11]=n,t[12]=T);let E;t[13]===u?E=t[14]:(E=u?/* @__PURE__ */ (0,M.jsx)(`p`,{className:`pui-text-mono-small truncate text-text-soft`,children:u}):null,t[13]=u,t[14]=E);let D;t[15]!==T||t[16]!==E?(D=/* @__PURE__ */ (0,M.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col`,children:[T,E]}),t[15]=T,t[16]=E,t[17]=D):D=t[17];let O;t[18]!==l||t[19]!==v||t[20]!==a||t[21]!==s||t[22]!==r||t[23]!==f?(O=f?s?/* @__PURE__ */ (0,M.jsx)(d.button,{type:`button`,className:`inline-flex shrink-0 cursor-pointer items-center border-0 bg-transparent p-0`,whileTap:{scale:h},"aria-label":l({id:`Dd6j2Q`}),"qa-test-id":`activity-card-ownership-comments`,onClick:e=>{e.stopPropagation(),s()},onPointerDown:L,children:v}):v:a&&r?/* @__PURE__ */ (0,M.jsx)(y,{variant:`stroke`,size:`medium`,icon:S,className:`shrink-0`,children:a}):null,t[18]=l,t[19]=v,t[20]=a,t[21]=s,t[22]=r,t[23]=f,t[24]=O):O=t[24];let k;return t[25]!==w||t[26]!==D||t[27]!==O?(k=/* @__PURE__ */ (0,M.jsxs)(`div`,{className:`flex w-full items-center gap-2 overflow-hidden rounded-xl bg-depth-black-4 p-2.5`,"qa-test-id":`activity-card-ownership`,children:[w,D,O]}),t[25]=w,t[26]=D,t[27]=O,t[28]=k):k=t[28],k}function L(e){return e.stopPropagation()}function R(e){let t=(0,j.c)(18),{note:n,author:r,timestamp:i,className:a,isSwapVisible:o,swapNode:s}=e,{_:c}=g(),u;t[0]===a?u=t[1]:(u=l(`flex w-full flex-col gap-0.5 overflow-hidden rounded-xl border border-depth-black-4 px-3 py-2`,a),t[0]=a,t[1]=u);let d;t[2]!==c||t[3]!==r?(d=r?/* @__PURE__ */ (0,M.jsxs)(M.Fragment,{children:[/* @__PURE__ */ (0,M.jsx)(_,{size:`small`,alt:r,initials:F(r)}),/* @__PURE__ */ (0,M.jsx)(`p`,{className:`pui-text-mono-small min-w-0 flex-1 truncate text-depth-black-48`,"qa-test-id":`activity-card-note-author`,children:r})]}):/* @__PURE__ */ (0,M.jsx)(`p`,{className:`pui-text-mono-small-alt-bold min-w-0 flex-1 truncate text-text-sub uppercase`,"qa-test-id":`activity-card-note-label`,children:c({id:`KiJn9B`})}),t[2]=c,t[3]=r,t[4]=d):d=t[4];let f;t[5]!==o||t[6]!==s||t[7]!==i?(f=i?/* @__PURE__ */ (0,M.jsx)(`div`,{className:`shrink-0`,onClick:B,onPointerDown:z,children:/* @__PURE__ */ (0,M.jsx)(b,{variant:`text`,text:i,className:`shrink-0`,isSwapVisible:o,swapNode:s})}):null,t[5]=o,t[6]=s,t[7]=i,t[8]=f):f=t[8];let p;t[9]!==d||t[10]!==f?(p=/* @__PURE__ */ (0,M.jsxs)(`div`,{className:`flex h-6 w-full items-center gap-2`,children:[d,f]}),t[9]=d,t[10]=f,t[11]=p):p=t[11];let m;t[12]===n?m=t[13]:(m=/* @__PURE__ */ (0,M.jsx)(`p`,{className:`pui-text-body-medium-compact text-depth-black-64`,children:n}),t[12]=n,t[13]=m);let h;return t[14]!==u||t[15]!==p||t[16]!==m?(h=/* @__PURE__ */ (0,M.jsxs)(`div`,{className:u,"qa-test-id":`activity-card-note`,children:[p,m]}),t[14]=u,t[15]=p,t[16]=m,t[17]=h):h=t[17],h}function z(e){return e.stopPropagation()}function B(e){return e.stopPropagation()}function V(e){let t=(0,j.c)(15),{notes:n}=e,{_:r}=g(),i,a,o,s,c;if(t[0]!==r||t[1]!==n){let e=n.slice(-2).toReversed();i=w,a=!0,t[7]===r?o=t[8]:(o=r({id:`VbyRUy`}),t[7]=r,t[8]=o),s=`activity-card-notes`,c=e.map(H),t[0]=r,t[1]=n,t[2]=i,t[3]=a,t[4]=o,t[5]=s,t[6]=c}else i=t[2],a=t[3],o=t[4],s=t[5],c=t[6];let l;return t[9]!==i||t[10]!==a||t[11]!==o||t[12]!==s||t[13]!==c?(l=/* @__PURE__ */ (0,M.jsx)(i,{hideHeader:a,label:o,qaTestId:s,children:c}),t[9]=i,t[10]=a,t[11]=o,t[12]=s,t[13]=c,t[14]=l):l=t[14],l}function H(e,t){return/* @__PURE__ */ (0,M.jsxs)(`div`,{children:[t>0?/* @__PURE__ */ (0,M.jsx)(`div`,{className:`px-3`,children:/* @__PURE__ */ (0,M.jsx)(x,{type:`line`,qaTestId:`activity-card-notes-divider`})}):null,/* @__PURE__ */ (0,M.jsx)(R,{note:e.body,author:e.author,timestamp:e.timestamp,className:`rounded-none border-0`,isSwapVisible:e.isSwapVisible,swapNode:e.swapNode})]},e.id??`${e.author??``}-${e.timestamp??``}-${t}`)}function ee(e){let t=(0,j.c)(43),{skeleton:n,text:r,body:i,textareaFieldProps:a,variations:o,variationIndex:s,onVariationChange:c,ownership:u,note:d,noteAuthor:f,noteTimestamp:p,notes:m,media:h,qaTestId:_}=e,y=_===void 0?`activity-card-content`:_,{_:b}=g();if(n){let e,n,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=/* @__PURE__ */ (0,M.jsx)(T,{className:`h-2.5 w-full`}),n=/* @__PURE__ */ (0,M.jsx)(T,{className:`h-2.5 w-11/12`}),r=/* @__PURE__ */ (0,M.jsx)(T,{className:`h-2.5 w-2/3`}),t[0]=e,t[1]=n,t[2]=r):(e=t[0],n=t[1],r=t[2]);let i;return t[3]===y?i=t[4]:(i=/* @__PURE__ */ (0,M.jsxs)(`div`,{className:`flex w-full flex-col gap-2`,"qa-test-id":y,children:[e,n,r]}),t[3]=y,t[4]=i),i}if(a){let e;t[5]===u?e=t[6]:(e=u?/* @__PURE__ */ (0,M.jsx)(I,{...u}):null,t[5]=u,t[6]=e);let n;t[7]!==b||t[8]!==r?(n=r??b({id:`zqPbyw`}),t[7]=b,t[8]=r,t[9]=n):n=t[9];let i=a?.textareaControlProps,o;t[10]===i?o=t[11]:(o={variant:`stroke`,maxLength:200,...i},t[10]=i,t[11]=o);let s;t[12]!==n||t[13]!==o||t[14]!==a?(s=/* @__PURE__ */ (0,M.jsx)(v,{className:`w-full`,fieldLabel:n,...a,textareaControlProps:o}),t[12]=n,t[13]=o,t[14]=a,t[15]=s):s=t[15];let c;return t[16]!==y||t[17]!==e||t[18]!==s?(c=/* @__PURE__ */ (0,M.jsxs)(`div`,{className:`flex w-full flex-col gap-3`,"qa-test-id":y,onClick:K,onPointerDown:G,children:[e,s]}),t[16]=y,t[17]=e,t[18]=s,t[19]=c):c=t[19],c}if(o&&o.length>0){let e;return t[20]!==c||t[21]!==y||t[22]!==s||t[23]!==o?(e=/* @__PURE__ */ (0,M.jsx)(N,{variations:o,variationIndex:s,onVariationChange:c,qaTestId:y}),t[20]=c,t[21]=y,t[22]=s,t[23]=o,t[24]=e):e=t[24],e}let x;t[25]!==i||t[26]!==r?(x=i??(r?/* @__PURE__ */ (0,M.jsx)(`p`,{className:`pui-text-body-medium-compact w-full text-depth-black-48`,children:r}):null),t[25]=i,t[26]=r,t[27]=x):x=t[27];let S;t[28]===h?S=t[29]:(S=h?/* @__PURE__ */ (0,M.jsx)(`div`,{className:l(`w-full overflow-hidden rounded-2xl`,`has-[>[data-slot=image-compare]]:overflow-visible [&>[data-slot=image-compare]]:rounded-2xl!`),"data-slot":`activity-card-media`,"qa-test-id":`activity-card-media`,onClick:W,onPointerDown:U,children:h}):null,t[28]=h,t[29]=S);let C;t[30]===u?C=t[31]:(C=u&&/* @__PURE__ */ (0,M.jsx)(I,{...u}),t[30]=u,t[31]=C);let w;t[32]!==d||t[33]!==f||t[34]!==p||t[35]!==m?(w=m&&m.length>0?/* @__PURE__ */ (0,M.jsx)(V,{notes:m}):d?/* @__PURE__ */ (0,M.jsx)(R,{note:d,author:f,timestamp:p}):null,t[32]=d,t[33]=f,t[34]=p,t[35]=m,t[36]=w):w=t[36];let E;return t[37]!==y||t[38]!==x||t[39]!==S||t[40]!==C||t[41]!==w?(E=/* @__PURE__ */ (0,M.jsxs)(`div`,{className:`flex w-full flex-col gap-3 overflow-visible`,"qa-test-id":y,children:[x,S,C,w]}),t[37]=y,t[38]=x,t[39]=S,t[40]=C,t[41]=w,t[42]=E):E=t[42],E}function U(e){return e.stopPropagation()}function W(e){return e.stopPropagation()}function G(e){return e.stopPropagation()}function K(e){return e.stopPropagation()}const q={suggested:{secondary:{label:{id:`6Uau97`},variant:`weak`},primary:{label:{id:`PZ_kxo`},variant:`weak`},equalButtons:!0},variations:{secondary:{label:{id:`1t_NnN`},variant:`stroke`},primary:{label:{id:`DB8zMK`},variant:`strong`,icon:`arrow`}},editing:{secondary:{label:{id:`dEgA5A`},variant:`stroke`},primary:{label:{id:`hQRttt`},variant:`strong`,icon:`arrow`}},regenerating:{secondary:{label:{id:`dEgA5A`},variant:`stroke`},primary:{label:{id:`ygCKqB`},variant:`weak`,icon:`stop`},equalButtons:!0},rejected:{secondary:{label:{id:`ePK91l`},variant:`stroke`},primary:{label:{id:`9uI_rE`},variant:`weak`}},"in-approval":{secondary:{label:{id:`1t_NnN`},variant:`stroke`},primary:{label:{id:`Z7ZXbT`},variant:`strong`,icon:`arrow`}}};function J(e){let t=(0,j.c)(64),{variant:n,onPrimaryAction:r,onSecondaryAction:i,primaryLabel:a,secondaryLabel:s,timestamp:c,onLike:u,onDislike:d,qaTestId:f}=e,p=n===void 0?`suggested`:n,h=f===void 0?`activity-card-footer`:f,{i18n:_,_:v}=g();if(p===`view`){let e;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e={icon:o,color:`icon-sub`},t[0]=e):e=t[0];let n;t[1]!==v||t[2]!==a?(n=a??v({id:`jpctdh`}),t[1]=v,t[2]=a,t[3]=n):n=t[3];let i;t[4]!==r||t[5]!==n?(i=/* @__PURE__ */ (0,M.jsx)(m,{variant:`weak`,size:`large`,className:`min-w-20 flex-1`,suffix:e,animateIcon:!0,onClick:r,children:n}),t[4]=r,t[5]=n,t[6]=i):i=t[6];let s;return t[7]!==h||t[8]!==i?(s=/* @__PURE__ */ (0,M.jsx)(`div`,{className:`flex w-full items-center gap-2`,onClick:ne,onPointerDown:te,"qa-test-id":h,children:i}),t[7]=h,t[8]=i,t[9]=s):s=t[9],s}if(p===`comment`){let e;t[10]===v?e=t[11]:(e=v({id:`W9FRBT`}),t[10]=v,t[11]=e);let n;t[12]!==u||t[13]!==e?(n={icon:k,"aria-label":e,onClick:u},t[12]=u,t[13]=e,t[14]=n):n=t[14];let i;t[15]===v?i=t[16]:(i=v({id:`0JJQ_e`}),t[15]=v,t[16]=i);let o;t[17]!==d||t[18]!==i?(o={icon:O,"aria-label":i,onClick:d},t[17]=d,t[18]=i,t[19]=o):o=t[19];let s;t[20]!==n||t[21]!==o?(s=/* @__PURE__ */ (0,M.jsx)(D,{variant:`stroke`,size:`large`,actions:[n,o]}),t[20]=n,t[21]=o,t[22]=s):s=t[22];let c;t[23]!==v||t[24]!==a?(c=a??v({id:`ImOQa9`}),t[23]=v,t[24]=a,t[25]=c):c=t[25];let l;t[26]!==r||t[27]!==c?(l=/* @__PURE__ */ (0,M.jsx)(m,{variant:`weak`,size:`large`,className:`min-w-20`,onClick:r,children:c}),t[26]=r,t[27]=c,t[28]=l):l=t[28];let f;return t[29]!==h||t[30]!==s||t[31]!==l?(f=/* @__PURE__ */ (0,M.jsxs)(`div`,{className:`flex w-full items-center gap-2`,onClick:Q,onPointerDown:Z,"qa-test-id":h,children:[s,l]}),t[29]=h,t[30]=s,t[31]=l,t[32]=f):f=t[32],f}let y=q[p],b;t[33]!==y.secondary.label||t[34]!==_||t[35]!==s?(b=s??_.t(y.secondary.label),t[33]=y.secondary.label,t[34]=_,t[35]=s,t[36]=b):b=t[36];let x=b,S;t[37]!==y.primary.label||t[38]!==_||t[39]!==a?(S=a??_.t(y.primary.label),t[37]=y.primary.label,t[38]=_,t[39]=a,t[40]=S):S=t[40];let C=S,w=y.secondary.variant,T=y.equalButtons?`flex-1`:`shrink-0`,E;t[41]===T?E=t[42]:(E=l(`min-w-20`,T),t[41]=T,t[42]=E);let N;t[43]!==y.secondary.variant||t[44]!==i||t[45]!==x||t[46]!==E?(N=/* @__PURE__ */ (0,M.jsx)(m,{variant:w,size:`large`,className:E,onClick:i,children:x}),t[43]=y.secondary.variant,t[44]=i,t[45]=x,t[46]=E,t[47]=N):N=t[47];let P;t[48]===y.primary.icon?P=t[49]:(P=y.primary.icon===`arrow`?{icon:o,color:`icon-inverse`}:y.primary.icon===`stop`?{icon:A,color:`icon-sub`}:void 0,t[48]=y.primary.icon,t[49]=P);let F=y.primary.icon===`arrow`,I;t[50]!==y.primary.variant||t[51]!==r||t[52]!==C||t[53]!==F||t[54]!==P?(I=/* @__PURE__ */ (0,M.jsx)(m,{variant:y.primary.variant,size:`large`,className:`min-w-20 flex-1`,suffix:P,animateIcon:F,onClick:r,children:C}),t[50]=y.primary.variant,t[51]=r,t[52]=C,t[53]=F,t[54]=P,t[55]=I):I=t[55];let L;t[56]!==c||t[57]!==p?(L=p===`rejected`&&c&&/* @__PURE__ */ (0,M.jsx)(`span`,{className:`pui-text-mono-small flex-1 text-right text-text-soft`,children:c}),t[56]=c,t[57]=p,t[58]=L):L=t[58];let R;return t[59]!==h||t[60]!==I||t[61]!==L||t[62]!==N?(R=/* @__PURE__ */ (0,M.jsxs)(`div`,{className:`flex w-full items-center gap-2`,onClick:X,onPointerDown:Y,"qa-test-id":h,children:[N,I,L]}),t[59]=h,t[60]=I,t[61]=L,t[62]=N,t[63]=R):R=t[63],R}function Y(e){return e.stopPropagation()}function X(e){return e.stopPropagation()}function Z(e){return e.stopPropagation()}function Q(e){return e.stopPropagation()}function te(e){return e.stopPropagation()}function ne(e){return e.stopPropagation()}function re(e){let t=(0,j.c)(13),{suffix:n}=e,r,i;t[0]===n?(r=t[1],i=t[2]):({onClick:r,...i}=n,t[0]=n,t[1]=r,t[2]=i);let a;t[3]===n.className?a=t[4]:(a=l(`shrink-0`,n.className),t[3]=n.className,t[4]=a);let o;t[5]!==i||t[6]!==a?(o=/* @__PURE__ */ (0,M.jsx)(b,{...i,className:a}),t[5]=i,t[6]=a,t[7]=o):o=t[7];let s=o;if(!r)return s;let c;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(c={scale:h},t[8]=c):c=t[8];let u=r,f=typeof i[`aria-label`]==`string`?i[`aria-label`]:void 0,p;return t[9]!==s||t[10]!==u||t[11]!==f?(p=/* @__PURE__ */ (0,M.jsx)(d.button,{type:`button`,className:`inline-flex cursor-pointer items-center border-0 bg-transparent p-0`,whileTap:c,onClick:u,"aria-label":f,children:s}),t[9]=s,t[10]=u,t[11]=f,t[12]=p):p=t[12],p}function ie(){let e=(0,j.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=/* @__PURE__ */ (0,M.jsx)(`span`,{className:`pui-text-mono-small-alt-bold inline-flex h-6 min-w-6 shrink-0 items-center justify-center rounded-lg bg-depth-black-4 text-text-strong`,"aria-hidden":!0,children:`--`}),e[0]=t):t=e[0],t}function ae(e){let t=(0,j.c)(15),{title:n,prefix:r,suffix:i,strikethrough:a,qaTestId:o}=e,s=a!==void 0&&a,c=o===void 0?`activity-card-header`:o,d;t[0]!==r||t[1]!==s?(d=r?/* @__PURE__ */ (0,M.jsx)(u,{...r,className:l(`shrink-0`,r.className)}):s?/* @__PURE__ */ (0,M.jsx)(ie,{}):null,t[0]=r,t[1]=s,t[2]=d):d=t[2];let f=d,p=s?`text-text-sub line-through`:`text-text-strong`,m;t[3]===p?m=t[4]:(m=l(`pui-text-label-medium-compact min-w-0 flex-1 truncate`,p),t[3]=p,t[4]=m);let h;t[5]!==m||t[6]!==n?(h=/* @__PURE__ */ (0,M.jsx)(`p`,{className:m,children:n}),t[5]=m,t[6]=n,t[7]=h):h=t[7];let g;t[8]===i?g=t[9]:(g=i?/* @__PURE__ */ (0,M.jsx)(`div`,{className:`flex h-6 shrink-0 items-center`,onClick:oe,onPointerDown:$,children:/* @__PURE__ */ (0,M.jsx)(re,{suffix:i})}):null,t[8]=i,t[9]=g);let _;return t[10]!==c||t[11]!==f||t[12]!==h||t[13]!==g?(_=/* @__PURE__ */ (0,M.jsxs)(`div`,{className:`flex h-6 w-full items-center gap-2`,"qa-test-id":c,children:[f,h,g]}),t[10]=c,t[11]=f,t[12]=h,t[13]=g,t[14]=_):_=t[14],_}function $(e){return e.stopPropagation()}function oe(e){return e.stopPropagation()}const se={duration:.18,ease:[.32,.72,0,1]};function ce(e,t,n){let r=t?.skeleton?`skeleton`:t?.textareaFieldProps?`compose`:t?.variations&&t.variations.length>0?`variations`:t?`copy`:`empty`;return[e?.prefix?.variant??``,e?.suffix?.variant??``,e?.strikethrough?`struck`:``,r,t?.notes&&t.notes.length>0?`notes`:t?.note?`note`:``,t?.ownership?`own`:``,n?.variant??`none`].join(`:`)}function le(e){let t=(0,j.c)(60),n,r,i,a,o,s,c,u;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],u=t[8]):({header:a,content:r,footer:i,selection:c,className:n,qaTestId:u,onClick:o,...s}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c,t[8]=u);let m=u===void 0?`activity-card`:u,{_:h}=g(),_=c?.selected??!1,v=!!c?.onChange,y=p()??!1,b;t[9]!==v||t[10]!==y?(b=y||!v?void 0:{scale:.99},t[9]=v,t[10]=y,t[11]=b):b=t[11];let x=b,S=!y,C;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(C={scale:{duration:.12}},t[12]=C):C=t[12];let w=_?`border-transparent bg-secondary-lighter`:`border-depth-black-4 bg-base-inverse hover:border-transparent hover:bg-base-weak`,T;t[13]!==n||t[14]!==w?(T=l(`group relative flex w-full cursor-pointer flex-col items-start gap-3 overflow-visible p-4 transition-colors`,`rounded-20 border focus-visible:outline-hidden`,`has-[[data-slot=activity-card-select]:focus-visible]:shadow-outline-primary`,w,n),t[13]=n,t[14]=w,t[15]=T):T=t[15];let E=_||void 0,D=v?-1:void 0,O;t[16]!==_||t[17]!==o||t[18]!==c?(O=e=>{o?.(e),c?.onChange?.(!_)},t[16]=_,t[17]=o,t[18]=c,t[19]=O):O=t[19];let k;t[20]!==h||t[21]!==a?.title||t[22]!==v||t[23]!==_?(k=v?/* @__PURE__ */ (0,M.jsx)(`button`,{type:`button`,"data-slot":`activity-card-select`,className:`sr-only`,"aria-pressed":_,"aria-label":a?.title||h({id:`_z1gUL`})}):null,t[20]=h,t[21]=a?.title,t[22]=v,t[23]=_,t[24]=k):k=t[24];let A;t[25]===a?A=t[26]:(A=a?/* @__PURE__ */ (0,M.jsx)(ae,{...a}):null,t[25]=a,t[26]=A);let N;t[27]!==r||t[28]!==i||t[29]!==a?(N=ce(a,r,i),t[27]=r,t[28]=i,t[29]=a,t[30]=N):N=t[30];let P;t[31]===S?P=t[32]:(P=S?{opacity:0,y:6}:!1,t[31]=S,t[32]=P);let F;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(F={opacity:1,y:0},t[33]=F):F=t[33];let I,L;t[34]===S?(I=t[35],L=t[36]):(I=S?{opacity:0,y:-6}:{opacity:1},L=S?se:{duration:0},t[34]=S,t[35]=I,t[36]=L);let R;t[37]===Symbol.for(`react.memo_cache_sentinel`)?(R={willChange:`opacity, transform`,backfaceVisibility:`hidden`},t[37]=R):R=t[37];let z;t[38]===r?z=t[39]:(z=r?/* @__PURE__ */ (0,M.jsx)(ee,{...r}):null,t[38]=r,t[39]=z);let B;t[40]===i?B=t[41]:(B=i?/* @__PURE__ */ (0,M.jsx)(J,{...i}):null,t[40]=i,t[41]=B);let V;t[42]!==N||t[43]!==P||t[44]!==I||t[45]!==L||t[46]!==z||t[47]!==B?(V=/* @__PURE__ */ (0,M.jsx)(f,{mode:`popLayout`,initial:!1,children:/* @__PURE__ */ (0,M.jsxs)(d.div,{initial:P,animate:F,exit:I,transition:L,className:`flex w-full min-w-0 flex-col gap-3 overflow-visible`,style:R,children:[z,B]},N)}),t[42]=N,t[43]=P,t[44]=I,t[45]=L,t[46]=z,t[47]=B,t[48]=V):V=t[48];let H;return t[49]!==s||t[50]!==m||t[51]!==A||t[52]!==V||t[53]!==T||t[54]!==E||t[55]!==D||t[56]!==O||t[57]!==k||t[58]!==x?(H=/* @__PURE__ */ (0,M.jsxs)(d.div,{whileTap:x,transition:C,className:T,"data-slot":`activity-card`,"data-selected":E,tabIndex:D,"qa-test-id":m,...s,onClick:O,children:[k,A,V]}),t[49]=s,t[50]=m,t[51]=A,t[52]=V,t[53]=T,t[54]=E,t[55]=D,t[56]=O,t[57]=k,t[58]=x,t[59]=H):H=t[59],H}export{le as ActivityCard,R as NoteBlock};
1
+ import{a as e}from"../../_chunks/rolldown-runtime-BWaJ3C7D.js";import{d as t,m as n,u as r}from"../../_chunks/transitions-Cn0Tw_ua.js";import{t as i}from"../../_chunks/react-CUaU2Z9V.js";import{t as a}from"../../_chunks/ChevronRightIcon-Dgm8qBR8.js";import{t as o}from"../../_chunks/ArrowRightIcon-OEjQROCT.js";import{t as s}from"../../_chunks/compiler-runtime-B3BlmaWz.js";import{t as c}from"../../_chunks/jsx-runtime-Dgn0yPdi.js";import{t as l}from"../../_chunks/dist-BNSTMZct.js";import{t as u}from"../../_chunks/Prefix-DiQ-Ofl9.js";import{n as d}from"../../_chunks/react-B3hSlcN2.js";import{t as f}from"../../_chunks/AnimatePresence-B0AmNCpD.js";import{t as p}from"../../_chunks/use-reduced-motion-CNBdBisf.js";import{t as m}from"../../_chunks/Button-Dpj5VLQ7.js";import{t as h}from"../../_chunks/button-constants-BRLmyaWg.js";import{i as g}from"../../_chunks/dist-BRMXKypj.js";import{t as _}from"../../_chunks/Avatar-BMklFAjX.js";import{t as v}from"../../_chunks/TextareaField-BvvqZn7n.js";import{t as y}from"../../_chunks/Tag-DNMINhyy.js";import{t as b}from"../../_chunks/Suffix-BhwXL7yr.js";import{t as x}from"../../_chunks/Divider-DsSqNbiK.js";import{t as S}from"../../_chunks/CalendarIcon-bZZA4ofp.js";import{t as C}from"../../_chunks/SpeechBubbleIcon-Dfrb59ah.js";import{t as w}from"../../_chunks/Section-CmsHfmQJ.js";import{t as T}from"../../_chunks/Skeleton-Cgi33Fpd.js";import{t as E}from"../../_chunks/ChevronLeftIcon-DixrWUUO.js";import{t as D}from"../../_chunks/ButtonGroup-Xm6OYeiG.js";import{t as O}from"../../_chunks/ThumbsDownAlt-ginNWj6S.js";import{t as k}from"../../_chunks/ThumbsUpAlt-Cz4utpd3.js";import{t as A}from"../../_chunks/StopFillIcon-BHTuKSSq.js";var j=s(),M=/* @__PURE__ */ e(c(),1);function N(e){let i=(0,j.c)(40),{variations:o,variationIndex:s,onVariationChange:c,qaTestId:u}=e,m=s===void 0?0:s,h=u===void 0?`activity-card-variations-carousel`:u,g=p(),_=o.length,v=m<=0,y=m>=_-1,b;i[0]!==v||i[1]!==c||i[2]!==m?(b=()=>!v&&c?.(m-1),i[0]=v,i[1]=c,i[2]=m,i[3]=b):b=i[3];let x=b,S;i[4]!==y||i[5]!==c||i[6]!==m?(S=()=>!y&&c?.(m+1),i[4]=y,i[5]=c,i[6]=m,i[7]=S):S=i[7];let C=S,w=v?`icon-disabled`:`icon-strong`,T;i[8]===w?T=i[9]:(T=/* @__PURE__ */ (0,M.jsx)(E,{color:w,size:20}),i[8]=w,i[9]=T);let D;i[10]!==v||i[11]!==x||i[12]!==T?(D=/* @__PURE__ */ (0,M.jsx)(`button`,{type:`button`,"aria-label":`Previous variation`,onClick:x,disabled:v,className:`flex w-6 shrink-0 items-center justify-center rounded-lg bg-depth-black-4 transition-colors hover:bg-depth-black-8 disabled:cursor-not-allowed disabled:hover:bg-depth-black-4`,children:T}),i[10]=v,i[11]=x,i[12]=T,i[13]=D):D=i[13];let O=g?void 0:t,k;i[14]===Symbol.for(`react.memo_cache_sentinel`)?(k={willChange:`opacity, transform`,transform:`translate3d(0, 0, 0)`,backfaceVisibility:`hidden`},i[14]=k):k=i[14];let A=o[m],N;i[15]!==A||i[16]!==O||i[17]!==m?(N=/* @__PURE__ */ (0,M.jsx)(`div`,{className:`relative flex flex-1 items-center overflow-hidden rounded-xl border border-depth-black-4 bg-base-inverse p-2.5 group-data-[selected]:border-transparent group-data-[selected]:bg-depth-black-4`,children:/* @__PURE__ */ (0,M.jsx)(f,{mode:`popLayout`,initial:!1,children:/* @__PURE__ */ (0,M.jsx)(d.p,{className:`pui-text-body-medium-compact text-text-strong`,variants:O,initial:`enter`,animate:`center`,exit:`exit`,transition:r,style:k,children:A},m)})}),i[15]=A,i[16]=O,i[17]=m,i[18]=N):N=i[18];let F=y?`icon-disabled`:`icon-strong`,I;i[19]===F?I=i[20]:(I=/* @__PURE__ */ (0,M.jsx)(a,{color:F,size:20}),i[19]=F,i[20]=I);let L;i[21]!==y||i[22]!==C||i[23]!==I?(L=/* @__PURE__ */ (0,M.jsx)(`button`,{type:`button`,"aria-label":`Next variation`,onClick:C,disabled:y,className:`flex w-6 shrink-0 items-center justify-center rounded-lg bg-depth-black-4 transition-colors hover:bg-depth-black-8 disabled:cursor-not-allowed disabled:hover:bg-depth-black-4`,children:I}),i[21]=y,i[22]=C,i[23]=I,i[24]=L):L=i[24];let R;i[25]!==N||i[26]!==L||i[27]!==D?(R=/* @__PURE__ */ (0,M.jsxs)(`div`,{className:`flex h-24 w-full items-stretch gap-2`,children:[D,N,L]}),i[25]=N,i[26]=L,i[27]=D,i[28]=R):R=i[28];let z;if(i[29]!==m||i[30]!==o){let e;i[32]===m?e=i[33]:(e=(e,t)=>/* @__PURE__ */ (0,M.jsx)(d.div,{className:l(`h-1.5 rounded-full`,t===m?`bg-depth-black-100`:`bg-depth-black-4`),animate:{width:t===m?16:6},transition:n},t),i[32]=m,i[33]=e),z=o.map(e),i[29]=m,i[30]=o,i[31]=z}else z=i[31];let B;i[34]===z?B=i[35]:(B=/* @__PURE__ */ (0,M.jsx)(`div`,{className:`flex w-full items-center justify-center gap-1`,children:z}),i[34]=z,i[35]=B);let V;return i[36]!==h||i[37]!==R||i[38]!==B?(V=/* @__PURE__ */ (0,M.jsxs)(`div`,{className:`flex w-full flex-col gap-2`,role:`group`,"aria-label":`Navigate variations`,onClick:P,"qa-test-id":h,children:[R,B]}),i[36]=h,i[37]=R,i[38]=B,i[39]=V):V=i[39],V}function P(e){return e.stopPropagation()}i();function F(e){let t=e.trim().split(/\s+/).filter(Boolean),n=t[0];if(!n)return``;let r=t.at(-1);return`${n[0]??``}${t.length>1?r?.[0]??``:n[1]??``}`.toUpperCase()}function I(e){let t=(0,j.c)(29),{name:n,role:r,avatarSrc:i,date:a,commentCount:o,onCommentCountClick:s}=e,{i18n:c,_:l}=g(),u=r??a,f=o!=null&&o>0,p;t[0]!==o||t[1]!==c?(p=o==null?void 0:c.number(o),t[0]=o,t[1]=c,t[2]=p):p=t[2];let m;t[3]===p?m=t[4]:(m=/* @__PURE__ */ (0,M.jsx)(b,{variant:`tag`,tagText:p,tagIcon:C,tagVariant:`stroke`,tagSize:`medium`,className:`shrink-0`}),t[3]=p,t[4]=m);let v=m,x;t[5]===n?x=t[6]:(x=F(n),t[5]=n,t[6]=x);let w;t[7]!==i||t[8]!==n||t[9]!==x?(w=/* @__PURE__ */ (0,M.jsx)(_,{src:i,alt:n,initials:x}),t[7]=i,t[8]=n,t[9]=x,t[10]=w):w=t[10];let T;t[11]===n?T=t[12]:(T=/* @__PURE__ */ (0,M.jsx)(`p`,{className:`pui-text-label-medium truncate text-text-strong`,children:n}),t[11]=n,t[12]=T);let E;t[13]===u?E=t[14]:(E=u?/* @__PURE__ */ (0,M.jsx)(`p`,{className:`pui-text-mono-small truncate text-text-soft`,children:u}):null,t[13]=u,t[14]=E);let D;t[15]!==T||t[16]!==E?(D=/* @__PURE__ */ (0,M.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col`,children:[T,E]}),t[15]=T,t[16]=E,t[17]=D):D=t[17];let O;t[18]!==l||t[19]!==v||t[20]!==a||t[21]!==s||t[22]!==r||t[23]!==f?(O=f?s?/* @__PURE__ */ (0,M.jsx)(d.button,{type:`button`,className:`inline-flex shrink-0 cursor-pointer items-center border-0 bg-transparent p-0`,whileTap:{scale:h},"aria-label":l({id:`Dd6j2Q`}),"qa-test-id":`activity-card-ownership-comments`,onClick:e=>{e.stopPropagation(),s()},onPointerDown:L,children:v}):v:a&&r?/* @__PURE__ */ (0,M.jsx)(y,{variant:`stroke`,size:`medium`,icon:S,className:`shrink-0`,children:a}):null,t[18]=l,t[19]=v,t[20]=a,t[21]=s,t[22]=r,t[23]=f,t[24]=O):O=t[24];let k;return t[25]!==w||t[26]!==D||t[27]!==O?(k=/* @__PURE__ */ (0,M.jsxs)(`div`,{className:`flex w-full items-center gap-2 overflow-hidden rounded-xl bg-depth-black-4 p-2.5`,"qa-test-id":`activity-card-ownership`,children:[w,D,O]}),t[25]=w,t[26]=D,t[27]=O,t[28]=k):k=t[28],k}function L(e){return e.stopPropagation()}function R(e){let t=(0,j.c)(18),{note:n,author:r,timestamp:i,className:a,isSwapVisible:o,swapNode:s}=e,{_:c}=g(),u;t[0]===a?u=t[1]:(u=l(`flex w-full flex-col gap-0.5 overflow-hidden rounded-xl border border-depth-black-4 px-3 py-2`,a),t[0]=a,t[1]=u);let d;t[2]!==c||t[3]!==r?(d=r?/* @__PURE__ */ (0,M.jsxs)(M.Fragment,{children:[/* @__PURE__ */ (0,M.jsx)(_,{size:`small`,alt:r,initials:F(r)}),/* @__PURE__ */ (0,M.jsx)(`p`,{className:`pui-text-mono-small min-w-0 flex-1 truncate text-depth-black-48`,"qa-test-id":`activity-card-note-author`,children:r})]}):/* @__PURE__ */ (0,M.jsx)(`p`,{className:`pui-text-mono-small-alt-bold min-w-0 flex-1 truncate text-text-sub uppercase`,"qa-test-id":`activity-card-note-label`,children:c({id:`KiJn9B`})}),t[2]=c,t[3]=r,t[4]=d):d=t[4];let f;t[5]!==o||t[6]!==s||t[7]!==i?(f=i?/* @__PURE__ */ (0,M.jsx)(`div`,{className:`shrink-0`,onClick:B,onPointerDown:z,children:/* @__PURE__ */ (0,M.jsx)(b,{variant:`text`,text:i,className:`shrink-0`,isSwapVisible:o,swapNode:s})}):null,t[5]=o,t[6]=s,t[7]=i,t[8]=f):f=t[8];let p;t[9]!==d||t[10]!==f?(p=/* @__PURE__ */ (0,M.jsxs)(`div`,{className:`flex h-6 w-full items-center gap-2`,children:[d,f]}),t[9]=d,t[10]=f,t[11]=p):p=t[11];let m;t[12]===n?m=t[13]:(m=/* @__PURE__ */ (0,M.jsx)(`p`,{className:`pui-text-body-medium-compact text-depth-black-64`,children:n}),t[12]=n,t[13]=m);let h;return t[14]!==u||t[15]!==p||t[16]!==m?(h=/* @__PURE__ */ (0,M.jsxs)(`div`,{className:u,"qa-test-id":`activity-card-note`,children:[p,m]}),t[14]=u,t[15]=p,t[16]=m,t[17]=h):h=t[17],h}function z(e){return e.stopPropagation()}function B(e){return e.stopPropagation()}function V(e){let t=(0,j.c)(15),{notes:n}=e,{_:r}=g(),i,a,o,s,c;if(t[0]!==r||t[1]!==n){let e=n.slice(-2).toReversed();i=w,a=!0,t[7]===r?o=t[8]:(o=r({id:`VbyRUy`}),t[7]=r,t[8]=o),s=`activity-card-notes`,c=e.map(H),t[0]=r,t[1]=n,t[2]=i,t[3]=a,t[4]=o,t[5]=s,t[6]=c}else i=t[2],a=t[3],o=t[4],s=t[5],c=t[6];let l;return t[9]!==i||t[10]!==a||t[11]!==o||t[12]!==s||t[13]!==c?(l=/* @__PURE__ */ (0,M.jsx)(i,{hideHeader:a,label:o,qaTestId:s,children:c}),t[9]=i,t[10]=a,t[11]=o,t[12]=s,t[13]=c,t[14]=l):l=t[14],l}function H(e,t){return/* @__PURE__ */ (0,M.jsxs)(`div`,{children:[t>0?/* @__PURE__ */ (0,M.jsx)(`div`,{className:`px-3`,children:/* @__PURE__ */ (0,M.jsx)(x,{type:`line`,qaTestId:`activity-card-notes-divider`})}):null,/* @__PURE__ */ (0,M.jsx)(R,{note:e.body,author:e.author,timestamp:e.timestamp,className:`rounded-none border-0`,isSwapVisible:e.isSwapVisible,swapNode:e.swapNode})]},e.id??`${e.author??``}-${e.timestamp??``}-${t}`)}function ee(e){let t=(0,j.c)(43),{skeleton:n,text:r,body:i,textareaFieldProps:a,variations:o,variationIndex:s,onVariationChange:c,ownership:u,note:d,noteAuthor:f,noteTimestamp:p,notes:m,media:h,qaTestId:_}=e,y=_===void 0?`activity-card-content`:_,{_:b}=g();if(n){let e,n,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=/* @__PURE__ */ (0,M.jsx)(T,{className:`h-2.5 w-full`}),n=/* @__PURE__ */ (0,M.jsx)(T,{className:`h-2.5 w-11/12`}),r=/* @__PURE__ */ (0,M.jsx)(T,{className:`h-2.5 w-2/3`}),t[0]=e,t[1]=n,t[2]=r):(e=t[0],n=t[1],r=t[2]);let i;return t[3]===y?i=t[4]:(i=/* @__PURE__ */ (0,M.jsxs)(`div`,{className:`flex w-full flex-col gap-2`,"qa-test-id":y,children:[e,n,r]}),t[3]=y,t[4]=i),i}if(a){let e;t[5]===u?e=t[6]:(e=u?/* @__PURE__ */ (0,M.jsx)(I,{...u}):null,t[5]=u,t[6]=e);let n;t[7]!==b||t[8]!==r?(n=r??b({id:`zqPbyw`}),t[7]=b,t[8]=r,t[9]=n):n=t[9];let i=a?.textareaControlProps,o;t[10]===i?o=t[11]:(o={variant:`stroke`,maxLength:200,...i},t[10]=i,t[11]=o);let s;t[12]!==n||t[13]!==o||t[14]!==a?(s=/* @__PURE__ */ (0,M.jsx)(v,{className:`w-full`,fieldLabel:n,...a,textareaControlProps:o}),t[12]=n,t[13]=o,t[14]=a,t[15]=s):s=t[15];let c;return t[16]!==y||t[17]!==e||t[18]!==s?(c=/* @__PURE__ */ (0,M.jsxs)(`div`,{className:`flex w-full flex-col gap-3`,"qa-test-id":y,onClick:K,onPointerDown:G,children:[e,s]}),t[16]=y,t[17]=e,t[18]=s,t[19]=c):c=t[19],c}if(o&&o.length>0){let e;return t[20]!==c||t[21]!==y||t[22]!==s||t[23]!==o?(e=/* @__PURE__ */ (0,M.jsx)(N,{variations:o,variationIndex:s,onVariationChange:c,qaTestId:y}),t[20]=c,t[21]=y,t[22]=s,t[23]=o,t[24]=e):e=t[24],e}let x;t[25]!==i||t[26]!==r?(x=i??(r?/* @__PURE__ */ (0,M.jsx)(`p`,{className:`pui-text-body-medium-compact w-full text-depth-black-48`,children:r}):null),t[25]=i,t[26]=r,t[27]=x):x=t[27];let S;t[28]===h?S=t[29]:(S=h?/* @__PURE__ */ (0,M.jsx)(`div`,{className:l(`w-full overflow-hidden rounded-2xl`,`has-[>[data-slot=image-compare]]:overflow-visible [&>[data-slot=image-compare]]:rounded-2xl!`),"data-slot":`activity-card-media`,"qa-test-id":`activity-card-media`,onClick:W,onPointerDown:U,children:h}):null,t[28]=h,t[29]=S);let C;t[30]===u?C=t[31]:(C=u&&/* @__PURE__ */ (0,M.jsx)(I,{...u}),t[30]=u,t[31]=C);let w;t[32]!==d||t[33]!==f||t[34]!==p||t[35]!==m?(w=m&&m.length>0?/* @__PURE__ */ (0,M.jsx)(V,{notes:m}):d?/* @__PURE__ */ (0,M.jsx)(R,{note:d,author:f,timestamp:p}):null,t[32]=d,t[33]=f,t[34]=p,t[35]=m,t[36]=w):w=t[36];let E;return t[37]!==y||t[38]!==x||t[39]!==S||t[40]!==C||t[41]!==w?(E=/* @__PURE__ */ (0,M.jsxs)(`div`,{className:`flex w-full flex-col gap-3 overflow-visible`,"qa-test-id":y,children:[x,S,C,w]}),t[37]=y,t[38]=x,t[39]=S,t[40]=C,t[41]=w,t[42]=E):E=t[42],E}function U(e){return e.stopPropagation()}function W(e){return e.stopPropagation()}function G(e){return e.stopPropagation()}function K(e){return e.stopPropagation()}const q={suggested:{secondary:{label:{id:`6Uau97`},variant:`weak`},primary:{label:{id:`PZ_kxo`},variant:`weak`},equalButtons:!0},variations:{secondary:{label:{id:`1t_NnN`},variant:`stroke`},primary:{label:{id:`DB8zMK`},variant:`strong`,icon:`arrow`}},editing:{secondary:{label:{id:`dEgA5A`},variant:`stroke`},primary:{label:{id:`hQRttt`},variant:`strong`,icon:`arrow`}},regenerating:{secondary:{label:{id:`dEgA5A`},variant:`stroke`},primary:{label:{id:`ygCKqB`},variant:`weak`,icon:`stop`},equalButtons:!0},rejected:{secondary:{label:{id:`ePK91l`},variant:`stroke`},primary:{label:{id:`9uI_rE`},variant:`weak`}},"in-approval":{secondary:{label:{id:`1t_NnN`},variant:`stroke`},primary:{label:{id:`Z7ZXbT`},variant:`strong`,icon:`arrow`}}};function J(e){let t=(0,j.c)(64),{variant:n,onPrimaryAction:r,onSecondaryAction:i,primaryLabel:a,secondaryLabel:s,timestamp:c,onLike:u,onDislike:d,qaTestId:f}=e,p=n===void 0?`suggested`:n,h=f===void 0?`activity-card-footer`:f,{i18n:_,_:v}=g();if(p===`view`){let e;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e={icon:o,color:`icon-sub`},t[0]=e):e=t[0];let n;t[1]!==v||t[2]!==a?(n=a??v({id:`jpctdh`}),t[1]=v,t[2]=a,t[3]=n):n=t[3];let i;t[4]!==r||t[5]!==n?(i=/* @__PURE__ */ (0,M.jsx)(m,{variant:`weak`,size:`large`,className:`min-w-20 flex-1`,suffix:e,animateIcon:!0,onClick:r,children:n}),t[4]=r,t[5]=n,t[6]=i):i=t[6];let s;return t[7]!==h||t[8]!==i?(s=/* @__PURE__ */ (0,M.jsx)(`div`,{className:`flex w-full items-center gap-2`,onClick:ne,onPointerDown:te,"qa-test-id":h,children:i}),t[7]=h,t[8]=i,t[9]=s):s=t[9],s}if(p===`comment`){let e;t[10]===v?e=t[11]:(e=v({id:`W9FRBT`}),t[10]=v,t[11]=e);let n;t[12]!==u||t[13]!==e?(n={icon:k,"aria-label":e,onClick:u},t[12]=u,t[13]=e,t[14]=n):n=t[14];let i;t[15]===v?i=t[16]:(i=v({id:`0JJQ_e`}),t[15]=v,t[16]=i);let o;t[17]!==d||t[18]!==i?(o={icon:O,"aria-label":i,onClick:d},t[17]=d,t[18]=i,t[19]=o):o=t[19];let s;t[20]!==n||t[21]!==o?(s=/* @__PURE__ */ (0,M.jsx)(D,{variant:`stroke`,size:`large`,actions:[n,o]}),t[20]=n,t[21]=o,t[22]=s):s=t[22];let c;t[23]!==v||t[24]!==a?(c=a??v({id:`ImOQa9`}),t[23]=v,t[24]=a,t[25]=c):c=t[25];let l;t[26]!==r||t[27]!==c?(l=/* @__PURE__ */ (0,M.jsx)(m,{variant:`weak`,size:`large`,className:`min-w-20`,onClick:r,children:c}),t[26]=r,t[27]=c,t[28]=l):l=t[28];let f;return t[29]!==h||t[30]!==s||t[31]!==l?(f=/* @__PURE__ */ (0,M.jsxs)(`div`,{className:`flex w-full items-center gap-2`,onClick:Q,onPointerDown:Z,"qa-test-id":h,children:[s,l]}),t[29]=h,t[30]=s,t[31]=l,t[32]=f):f=t[32],f}let y=q[p],b;t[33]!==y.secondary.label||t[34]!==_||t[35]!==s?(b=s??_.t(y.secondary.label),t[33]=y.secondary.label,t[34]=_,t[35]=s,t[36]=b):b=t[36];let x=b,S;t[37]!==y.primary.label||t[38]!==_||t[39]!==a?(S=a??_.t(y.primary.label),t[37]=y.primary.label,t[38]=_,t[39]=a,t[40]=S):S=t[40];let C=S,w=y.secondary.variant,T=y.equalButtons?`flex-1`:`shrink-0`,E;t[41]===T?E=t[42]:(E=l(`min-w-20`,T),t[41]=T,t[42]=E);let N;t[43]!==y.secondary.variant||t[44]!==i||t[45]!==x||t[46]!==E?(N=/* @__PURE__ */ (0,M.jsx)(m,{variant:w,size:`large`,className:E,onClick:i,children:x}),t[43]=y.secondary.variant,t[44]=i,t[45]=x,t[46]=E,t[47]=N):N=t[47];let P;t[48]===y.primary.icon?P=t[49]:(P=y.primary.icon===`arrow`?{icon:o,color:`icon-inverse`}:y.primary.icon===`stop`?{icon:A,color:`icon-sub`}:void 0,t[48]=y.primary.icon,t[49]=P);let F=y.primary.icon===`arrow`,I;t[50]!==y.primary.variant||t[51]!==r||t[52]!==C||t[53]!==F||t[54]!==P?(I=/* @__PURE__ */ (0,M.jsx)(m,{variant:y.primary.variant,size:`large`,className:`min-w-20 flex-1`,suffix:P,animateIcon:F,onClick:r,children:C}),t[50]=y.primary.variant,t[51]=r,t[52]=C,t[53]=F,t[54]=P,t[55]=I):I=t[55];let L;t[56]!==c||t[57]!==p?(L=p===`rejected`&&c&&/* @__PURE__ */ (0,M.jsx)(`span`,{className:`pui-text-mono-small flex-1 text-right text-text-soft`,children:c}),t[56]=c,t[57]=p,t[58]=L):L=t[58];let R;return t[59]!==h||t[60]!==I||t[61]!==L||t[62]!==N?(R=/* @__PURE__ */ (0,M.jsxs)(`div`,{className:`flex w-full items-center gap-2`,onClick:X,onPointerDown:Y,"qa-test-id":h,children:[N,I,L]}),t[59]=h,t[60]=I,t[61]=L,t[62]=N,t[63]=R):R=t[63],R}function Y(e){return e.stopPropagation()}function X(e){return e.stopPropagation()}function Z(e){return e.stopPropagation()}function Q(e){return e.stopPropagation()}function te(e){return e.stopPropagation()}function ne(e){return e.stopPropagation()}function re(e){let t=(0,j.c)(13),{suffix:n}=e,r,i;t[0]===n?(r=t[1],i=t[2]):({onClick:r,...i}=n,t[0]=n,t[1]=r,t[2]=i);let a;t[3]===n.className?a=t[4]:(a=l(`shrink-0`,n.className),t[3]=n.className,t[4]=a);let o;t[5]!==i||t[6]!==a?(o=/* @__PURE__ */ (0,M.jsx)(b,{...i,className:a}),t[5]=i,t[6]=a,t[7]=o):o=t[7];let s=o;if(!r)return s;let c;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(c={scale:h},t[8]=c):c=t[8];let u=r,f=typeof i[`aria-label`]==`string`?i[`aria-label`]:void 0,p;return t[9]!==s||t[10]!==u||t[11]!==f?(p=/* @__PURE__ */ (0,M.jsx)(d.button,{type:`button`,className:`inline-flex cursor-pointer items-center border-0 bg-transparent p-0`,whileTap:c,onClick:u,"aria-label":f,children:s}),t[9]=s,t[10]=u,t[11]=f,t[12]=p):p=t[12],p}function ie(){let e=(0,j.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=/* @__PURE__ */ (0,M.jsx)(`span`,{className:`pui-text-mono-small-alt-bold inline-flex h-6 min-w-6 shrink-0 items-center justify-center rounded-lg bg-depth-black-4 text-text-strong`,"aria-hidden":!0,children:`--`}),e[0]=t):t=e[0],t}function ae(e){let t=(0,j.c)(15),{title:n,prefix:r,suffix:i,strikethrough:a,qaTestId:o}=e,s=a!==void 0&&a,c=o===void 0?`activity-card-header`:o,d;t[0]!==r||t[1]!==s?(d=r?/* @__PURE__ */ (0,M.jsx)(u,{...r,className:l(`shrink-0`,r.className)}):s?/* @__PURE__ */ (0,M.jsx)(ie,{}):null,t[0]=r,t[1]=s,t[2]=d):d=t[2];let f=d,p=s?`text-text-sub line-through`:`text-text-strong`,m;t[3]===p?m=t[4]:(m=l(`pui-text-label-medium-compact min-w-0 flex-1 truncate`,p),t[3]=p,t[4]=m);let h;t[5]!==m||t[6]!==n?(h=/* @__PURE__ */ (0,M.jsx)(`p`,{className:m,children:n}),t[5]=m,t[6]=n,t[7]=h):h=t[7];let g;t[8]===i?g=t[9]:(g=i?/* @__PURE__ */ (0,M.jsx)(`div`,{className:`flex h-6 shrink-0 items-center`,onClick:oe,onPointerDown:$,children:/* @__PURE__ */ (0,M.jsx)(re,{suffix:i})}):null,t[8]=i,t[9]=g);let _;return t[10]!==c||t[11]!==f||t[12]!==h||t[13]!==g?(_=/* @__PURE__ */ (0,M.jsxs)(`div`,{className:`flex h-6 w-full items-center gap-2`,"qa-test-id":c,children:[f,h,g]}),t[10]=c,t[11]=f,t[12]=h,t[13]=g,t[14]=_):_=t[14],_}function $(e){return e.stopPropagation()}function oe(e){return e.stopPropagation()}const se={duration:.18,ease:[.32,.72,0,1]};function ce(e,t,n){let r=t?.skeleton?`skeleton`:t?.textareaFieldProps?`compose`:t?.variations&&t.variations.length>0?`variations`:t?`copy`:`empty`;return[e?.prefix?.variant??``,e?.suffix?.variant??``,e?.strikethrough?`struck`:``,r,t?.notes&&t.notes.length>0?`notes`:t?.note?`note`:``,t?.ownership?`own`:``,n?.variant??`none`].join(`:`)}function le(e){let t=(0,j.c)(60),n,r,i,a,o,s,c,u;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],u=t[8]):({header:a,content:r,footer:i,selection:c,className:n,qaTestId:u,onClick:o,...s}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c,t[8]=u);let m=u===void 0?`activity-card`:u,{_:h}=g(),_=c?.selected??!1,v=!!c?.onChange,y=p()??!1,b;t[9]!==v||t[10]!==y?(b=y||!v?void 0:{scale:.99},t[9]=v,t[10]=y,t[11]=b):b=t[11];let x=b,S=!y,C;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(C={scale:{duration:.12}},t[12]=C):C=t[12];let w=_?`border-transparent bg-secondary-lighter`:`border-depth-black-4 bg-base-inverse hover:border-transparent hover:bg-base-weak`,T;t[13]!==n||t[14]!==w?(T=l(`group relative flex w-full cursor-pointer flex-col items-start gap-3 overflow-visible p-4 transition-colors`,`rounded-20 border focus-visible:outline-hidden`,`has-[[data-slot=activity-card-select]:focus-visible]:shadow-outline-primary`,w,n),t[13]=n,t[14]=w,t[15]=T):T=t[15];let E=_||void 0,D=v?-1:void 0,O;t[16]!==_||t[17]!==o||t[18]!==c?(O=e=>{o?.(e),c?.onChange?.(!_)},t[16]=_,t[17]=o,t[18]=c,t[19]=O):O=t[19];let k;t[20]!==h||t[21]!==a?.title||t[22]!==v||t[23]!==_?(k=v?/* @__PURE__ */ (0,M.jsx)(`button`,{type:`button`,"data-slot":`activity-card-select`,className:`sr-only`,"aria-pressed":_,"aria-label":a?.title||h({id:`_z1gUL`})}):null,t[20]=h,t[21]=a?.title,t[22]=v,t[23]=_,t[24]=k):k=t[24];let A;t[25]===a?A=t[26]:(A=a?/* @__PURE__ */ (0,M.jsx)(ae,{...a}):null,t[25]=a,t[26]=A);let N;t[27]!==r||t[28]!==i||t[29]!==a?(N=ce(a,r,i),t[27]=r,t[28]=i,t[29]=a,t[30]=N):N=t[30];let P;t[31]===S?P=t[32]:(P=S?{opacity:0,y:6}:!1,t[31]=S,t[32]=P);let F;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(F={opacity:1,y:0},t[33]=F):F=t[33];let I,L;t[34]===S?(I=t[35],L=t[36]):(I=S?{opacity:0,y:-6}:{opacity:1},L=S?se:{duration:0},t[34]=S,t[35]=I,t[36]=L);let R;t[37]===Symbol.for(`react.memo_cache_sentinel`)?(R={willChange:`opacity, transform`,backfaceVisibility:`hidden`},t[37]=R):R=t[37];let z;t[38]===r?z=t[39]:(z=r?/* @__PURE__ */ (0,M.jsx)(ee,{...r}):null,t[38]=r,t[39]=z);let B;t[40]===i?B=t[41]:(B=i?/* @__PURE__ */ (0,M.jsx)(J,{...i}):null,t[40]=i,t[41]=B);let V;t[42]!==N||t[43]!==P||t[44]!==I||t[45]!==L||t[46]!==z||t[47]!==B?(V=/* @__PURE__ */ (0,M.jsx)(f,{mode:`popLayout`,initial:!1,children:/* @__PURE__ */ (0,M.jsxs)(d.div,{initial:P,animate:F,exit:I,transition:L,className:`flex w-full min-w-0 flex-col gap-3 overflow-visible`,style:R,children:[z,B]},N)}),t[42]=N,t[43]=P,t[44]=I,t[45]=L,t[46]=z,t[47]=B,t[48]=V):V=t[48];let H;return t[49]!==s||t[50]!==m||t[51]!==A||t[52]!==V||t[53]!==T||t[54]!==E||t[55]!==D||t[56]!==O||t[57]!==k||t[58]!==x?(H=/* @__PURE__ */ (0,M.jsxs)(d.div,{whileTap:x,transition:C,className:T,"data-slot":`activity-card`,"data-selected":E,tabIndex:D,"qa-test-id":m,...s,onClick:O,children:[k,A,V]}),t[49]=s,t[50]=m,t[51]=A,t[52]=V,t[53]=T,t[54]=E,t[55]=D,t[56]=O,t[57]=k,t[58]=x,t[59]=H):H=t[59],H}export{le as ActivityCard,R as NoteBlock};
@@ -1 +1 @@
1
- import{a as e}from"../../../_chunks/rolldown-runtime-BWaJ3C7D.js";import{t}from"../../../_chunks/react-CUaU2Z9V.js";import{t as n}from"../../../_chunks/ArrowRightIcon-OEjQROCT.js";import{t as r}from"../../../_chunks/Brands-DAfm2bHa.js";import{t as i}from"../../../_chunks/compiler-runtime-B3BlmaWz.js";import{t as a}from"../../../_chunks/jsx-runtime-Dgn0yPdi.js";import{t as o}from"../../../_chunks/dist-BNSTMZct.js";import{t as s}from"../../../_chunks/Button-Dpj5VLQ7.js";var c=i();t();var l=/* @__PURE__ */ e(a(),1);const u=`-1px`;function d(e){let t=(0,c.c)(46),{onActionClick:i,buttonText:a,showButtonIcon:d,description:f,gradientFrom:p,gradientTo:m,blurGradient:h,blurLeft:g,blurRight:_,brandLogo:v,typeIcon:y,typeLabel:b,userContent:x,className:S,qaTestId:C}=e,w=a===void 0?``:a,T=d===void 0||d,E=C===void 0?`asset`:C,D;t[0]!==g||t[1]!==_?(D=g!==void 0||_!==void 0?{left:g??u,right:_??u}:void 0,t[0]=g,t[1]=_,t[2]=D):D=t[2];let O=D,k;t[3]!==p||t[4]!==m?(k={"--tw-gradient-from":p,"--tw-gradient-to":m},t[3]=p,t[4]=m,t[5]=k):k=t[5];let A=k,j=v||y||b||x,M=x||y||b,N=y?.icon,P=y?.size??20,F;t[6]===f?F=t[7]:(F=f?`Asset: ${f.slice(0,50)}...`:`Asset`,t[6]=f,t[7]=F);let I=F,L;t[8]===S?L=t[9]:(L=o(`text-left`,`relative z-30 flex w-full flex-col items-start`,`gap-4 p-4`,`overflow-hidden rounded-2xl`,`bg-linear-to-b from-[60.078%] to-[76.987%]`,`border border-solid border-depth-black-4`,`transition-opacity hover:opacity-90`,S),t[8]=S,t[9]=L);let R;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(R=o(`pointer-events-none absolute -bottom-px z-0 transition-[filter,opacity] duration-300`,`transform-[translate3d(0,0,0)] [-webkit-backface-visibility:hidden] backface-hidden`,`opacity-70 blur-3xl`,`h-32`),t[10]=R):R=t[10];let z;t[11]===h?z=t[12]:(z={background:h},t[11]=h,t[12]=z);let B=z,V;t[13]===B?V=t[14]:(V=/* @__PURE__ */ (0,l.jsx)(`div`,{className:`absolute inset-[-51.61%_-11.94%]`,style:B}),t[13]=B,t[14]=V);let H;t[15]!==O||t[16]!==V?(H=/* @__PURE__ */ (0,l.jsx)(`div`,{className:R,style:O,children:V}),t[15]=O,t[16]=V,t[17]=H):H=t[17];let U;t[18]!==N||t[19]!==v||t[20]!==j||t[21]!==M||t[22]!==P||t[23]!==b||t[24]!==x?(U=j?/* @__PURE__ */ (0,l.jsxs)(`div`,{className:`relative z-10 flex w-full shrink-0 items-center justify-between`,children:[/* @__PURE__ */ (0,l.jsx)(`div`,{className:`flex flex-1 items-center`,children:v?/* @__PURE__ */ (0,l.jsx)(r,{...v}):null}),M?/* @__PURE__ */ (0,l.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[x?/* @__PURE__ */ (0,l.jsx)(`div`,{className:`flex items-center`,children:x}):null,N||b?/* @__PURE__ */ (0,l.jsxs)(`div`,{className:`flex items-center gap-1`,children:[N?/* @__PURE__ */ (0,l.jsx)(`div`,{className:`flex items-center justify-center text-icon-sub`,children:/* @__PURE__ */ (0,l.jsx)(N,{size:P,color:`currentColor`})}):null,b?/* @__PURE__ */ (0,l.jsx)(`span`,{className:`pui-text-label-medium text-text-sub`,children:b}):null]}):null]}):null]}):null,t[18]=N,t[19]=v,t[20]=j,t[21]=M,t[22]=P,t[23]=b,t[24]=x,t[25]=U):U=t[25];let W;t[26]===f?W=t[27]:(W=f?/* @__PURE__ */ (0,l.jsx)(`div`,{className:`relative z-10 flex w-full shrink-0 flex-col`,children:/* @__PURE__ */ (0,l.jsx)(`p`,{className:`pui-text-body-medium whitespace-pre-wrap text-depth-black-56`,children:f})}):null,t[26]=f,t[27]=W);let G;t[28]===T?G=t[29]:(G=T?{icon:n}:void 0,t[28]=T,t[29]=G);let K;t[30]===i?K=t[31]:(K=()=>i?.(),t[30]=i,t[31]=K);let q;t[32]!==I||t[33]!==w||t[34]!==T||t[35]!==G||t[36]!==K?(q=/* @__PURE__ */ (0,l.jsx)(`div`,{className:`z-10 w-full shrink-0`,children:/* @__PURE__ */ (0,l.jsx)(s,{variant:`weak`,fullwidth:!0,suffix:G,animateIcon:T,"aria-label":I,type:`button`,onClick:K,className:`static! isolation-auto! before:absolute before:-inset-px before:z-20 before:content-[""]`,children:w})}),t[32]=I,t[33]=w,t[34]=T,t[35]=G,t[36]=K,t[37]=q):q=t[37];let J;return t[38]!==A||t[39]!==E||t[40]!==H||t[41]!==U||t[42]!==W||t[43]!==q||t[44]!==L?(J=/* @__PURE__ */ (0,l.jsxs)(`div`,{"qa-test-id":E,className:L,style:A,children:[H,U,W,q]}),t[38]=A,t[39]=E,t[40]=H,t[41]=U,t[42]=W,t[43]=q,t[44]=L,t[45]=J):J=t[45],J}export{d as Asset};
1
+ import{a as e}from"../../../_chunks/rolldown-runtime-BWaJ3C7D.js";import{t}from"../../../_chunks/react-CUaU2Z9V.js";import{t as n}from"../../../_chunks/ArrowRightIcon-OEjQROCT.js";import{t as r}from"../../../_chunks/Brands-BFCHD_gn.js";import{t as i}from"../../../_chunks/compiler-runtime-B3BlmaWz.js";import{t as a}from"../../../_chunks/jsx-runtime-Dgn0yPdi.js";import{t as o}from"../../../_chunks/dist-BNSTMZct.js";import{t as s}from"../../../_chunks/Button-Dpj5VLQ7.js";var c=i();t();var l=/* @__PURE__ */ e(a(),1);const u=`-1px`;function d(e){let t=(0,c.c)(46),{onActionClick:i,buttonText:a,showButtonIcon:d,description:f,gradientFrom:p,gradientTo:m,blurGradient:h,blurLeft:g,blurRight:_,brandLogo:v,typeIcon:y,typeLabel:b,userContent:x,className:S,qaTestId:C}=e,w=a===void 0?``:a,T=d===void 0||d,E=C===void 0?`asset`:C,D;t[0]!==g||t[1]!==_?(D=g!==void 0||_!==void 0?{left:g??u,right:_??u}:void 0,t[0]=g,t[1]=_,t[2]=D):D=t[2];let O=D,k;t[3]!==p||t[4]!==m?(k={"--tw-gradient-from":p,"--tw-gradient-to":m},t[3]=p,t[4]=m,t[5]=k):k=t[5];let A=k,j=v||y||b||x,M=x||y||b,N=y?.icon,P=y?.size??20,F;t[6]===f?F=t[7]:(F=f?`Asset: ${f.slice(0,50)}...`:`Asset`,t[6]=f,t[7]=F);let I=F,L;t[8]===S?L=t[9]:(L=o(`text-left`,`relative z-30 flex w-full flex-col items-start`,`gap-4 p-4`,`overflow-hidden rounded-2xl`,`bg-linear-to-b from-[60.078%] to-[76.987%]`,`border border-solid border-depth-black-4`,`transition-opacity hover:opacity-90`,S),t[8]=S,t[9]=L);let R;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(R=o(`pointer-events-none absolute -bottom-px z-0 transition-[filter,opacity] duration-300`,`transform-[translate3d(0,0,0)] [-webkit-backface-visibility:hidden] backface-hidden`,`opacity-70 blur-3xl`,`h-32`),t[10]=R):R=t[10];let z;t[11]===h?z=t[12]:(z={background:h},t[11]=h,t[12]=z);let B=z,V;t[13]===B?V=t[14]:(V=/* @__PURE__ */ (0,l.jsx)(`div`,{className:`absolute inset-[-51.61%_-11.94%]`,style:B}),t[13]=B,t[14]=V);let H;t[15]!==O||t[16]!==V?(H=/* @__PURE__ */ (0,l.jsx)(`div`,{className:R,style:O,children:V}),t[15]=O,t[16]=V,t[17]=H):H=t[17];let U;t[18]!==N||t[19]!==v||t[20]!==j||t[21]!==M||t[22]!==P||t[23]!==b||t[24]!==x?(U=j?/* @__PURE__ */ (0,l.jsxs)(`div`,{className:`relative z-10 flex w-full shrink-0 items-center justify-between`,children:[/* @__PURE__ */ (0,l.jsx)(`div`,{className:`flex flex-1 items-center`,children:v?/* @__PURE__ */ (0,l.jsx)(r,{...v}):null}),M?/* @__PURE__ */ (0,l.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[x?/* @__PURE__ */ (0,l.jsx)(`div`,{className:`flex items-center`,children:x}):null,N||b?/* @__PURE__ */ (0,l.jsxs)(`div`,{className:`flex items-center gap-1`,children:[N?/* @__PURE__ */ (0,l.jsx)(`div`,{className:`flex items-center justify-center text-icon-sub`,children:/* @__PURE__ */ (0,l.jsx)(N,{size:P,color:`currentColor`})}):null,b?/* @__PURE__ */ (0,l.jsx)(`span`,{className:`pui-text-label-medium text-text-sub`,children:b}):null]}):null]}):null]}):null,t[18]=N,t[19]=v,t[20]=j,t[21]=M,t[22]=P,t[23]=b,t[24]=x,t[25]=U):U=t[25];let W;t[26]===f?W=t[27]:(W=f?/* @__PURE__ */ (0,l.jsx)(`div`,{className:`relative z-10 flex w-full shrink-0 flex-col`,children:/* @__PURE__ */ (0,l.jsx)(`p`,{className:`pui-text-body-medium whitespace-pre-wrap text-depth-black-56`,children:f})}):null,t[26]=f,t[27]=W);let G;t[28]===T?G=t[29]:(G=T?{icon:n}:void 0,t[28]=T,t[29]=G);let K;t[30]===i?K=t[31]:(K=()=>i?.(),t[30]=i,t[31]=K);let q;t[32]!==I||t[33]!==w||t[34]!==T||t[35]!==G||t[36]!==K?(q=/* @__PURE__ */ (0,l.jsx)(`div`,{className:`z-10 w-full shrink-0`,children:/* @__PURE__ */ (0,l.jsx)(s,{variant:`weak`,fullwidth:!0,suffix:G,animateIcon:T,"aria-label":I,type:`button`,onClick:K,className:`static! isolation-auto! before:absolute before:-inset-px before:z-20 before:content-[""]`,children:w})}),t[32]=I,t[33]=w,t[34]=T,t[35]=G,t[36]=K,t[37]=q):q=t[37];let J;return t[38]!==A||t[39]!==E||t[40]!==H||t[41]!==U||t[42]!==W||t[43]!==q||t[44]!==L?(J=/* @__PURE__ */ (0,l.jsxs)(`div`,{"qa-test-id":E,className:L,style:A,children:[H,U,W,q]}),t[38]=A,t[39]=E,t[40]=H,t[41]=U,t[42]=W,t[43]=q,t[44]=L,t[45]=J):J=t[45],J}export{d as Asset};
@@ -1 +1 @@
1
- import{a as e}from"../../../../_chunks/rolldown-runtime-BWaJ3C7D.js";import{t}from"../../../../_chunks/react-CUaU2Z9V.js";import{t as n}from"../../../../_chunks/jsx-runtime-Dgn0yPdi.js";import{t as r}from"../../../../_chunks/dist-BNSTMZct.js";import{t as i}from"../../../../_chunks/GalleryCard-BUmNOHtx.js";import{t as a}from"../../../../_chunks/Lightbox-BbUkfkCP.js";import{n as o,t as s}from"../../../../_chunks/galleryLayouts-COa9PIJw.js";var c=/* @__PURE__ */ e(t(),1),l=/* @__PURE__ */ e(n(),1);const u={cols:12,rows:8,maxPerGroup:7,heightRatio:1/3},d={cols:8,rows:8,maxPerGroup:7,heightRatio:3/4},f={cols:4,rows:8,maxPerGroup:4,heightRatio:1},p={cols:1,rows:1,maxPerGroup:1,heightRatio:3/4};function m(e){return e>=60?u:e>=40?d:e>=25?f:p}function h(e){let t=window.innerWidth;return t===0?d:t<640?p:m(e/t*100)}function g({images:e,className:t,qaTestId:n=`gallery-panel-content`}){let u=(0,c.useRef)(null),d=(0,c.useRef)(/* @__PURE__ */ new Set),f=(0,c.useRef)(/* @__PURE__ */ new Set),[,p]=(0,c.useState)(0),[m,g]=(0,c.useState)(()=>h(400)),_=(0,c.useRef)(m);(0,c.useEffect)(()=>{let e=u.current;if(!e)return;let t=new ResizeObserver(e=>{let t=h(e[0]?.contentRect.width??0);t!==_.current&&(_.current=t,g(t))});return t.observe(e),()=>t.disconnect()},[]);let v=s(e.length,m.cols,m.rows,m.maxPerGroup),y=o(e.length,m.rows,m.maxPerGroup),b=Math.ceil(e.length/m.maxPerGroup),[x,S]=(0,c.useState)(!1),[C,w]=(0,c.useState)(0),[T,E]=(0,c.useState)(null),D=e.map(e=>({src:e.src,alt:e.alt,title:e.title,description:e.description}));return e.length===0?null:/* @__PURE__ */ (0,l.jsxs)(l.Fragment,{children:[/* @__PURE__ */ (0,l.jsxs)(`div`,{ref:u,className:r(`h-full overflow-x-hidden overflow-y-auto`,t),role:`grid`,"aria-label":`Image gallery`,"qa-test-id":n,children:[/* @__PURE__ */ (0,l.jsx)(`div`,{className:`grid overflow-clip rounded-2xl`,style:{gridTemplateColumns:`repeat(${m.cols}, 1fr)`,gridTemplateRows:`repeat(${y}, 1fr)`,aspectRatio:`1 / ${m.heightRatio*b}`,gap:`4px`},children:e.map((t,n)=>{let r=v[n];return/* @__PURE__ */ (0,l.jsx)(i,{src:t.src,index:n,total:e.length,isLoaded:d.current.has(t.src),isError:f.current.has(t.src),gridColumn:r?.gridColumn,gridRow:r?.gridRow,isHidden:x&&C===n,onLoad:e=>{d.current.has(e)||(d.current.add(e),p(e=>e+1))},onError:e=>{f.current.has(e)||(f.current.add(e),p(e=>e+1))},onClick:(e,t)=>{w(e),E(t),S(!0)}},`${t.src}-${n}`)})}),/* @__PURE__ */ (0,l.jsx)(`div`,{className:`h-16 w-full`,"aria-hidden":`true`})]}),/* @__PURE__ */ (0,l.jsx)(a,{images:D,open:x,onClose:()=>{S(!1),requestAnimationFrame(()=>{document.activeElement instanceof HTMLElement&&document.activeElement.blur()})},initialIndex:C,origin:T})]})}export{g as GalleryPanelContent};
1
+ import{a as e}from"../../../../_chunks/rolldown-runtime-BWaJ3C7D.js";import{t}from"../../../../_chunks/react-CUaU2Z9V.js";import{t as n}from"../../../../_chunks/jsx-runtime-Dgn0yPdi.js";import{t as r}from"../../../../_chunks/dist-BNSTMZct.js";import{t as i}from"../../../../_chunks/GalleryCard-BUmNOHtx.js";import{t as a}from"../../../../_chunks/Lightbox-tD0ITLK_.js";import{n as o,t as s}from"../../../../_chunks/galleryLayouts-COa9PIJw.js";var c=/* @__PURE__ */ e(t(),1),l=/* @__PURE__ */ e(n(),1);const u={cols:12,rows:8,maxPerGroup:7,heightRatio:1/3},d={cols:8,rows:8,maxPerGroup:7,heightRatio:3/4},f={cols:4,rows:8,maxPerGroup:4,heightRatio:1},p={cols:1,rows:1,maxPerGroup:1,heightRatio:3/4};function m(e){return e>=60?u:e>=40?d:e>=25?f:p}function h(e){let t=window.innerWidth;return t===0?d:t<640?p:m(e/t*100)}function g({images:e,className:t,qaTestId:n=`gallery-panel-content`}){let u=(0,c.useRef)(null),d=(0,c.useRef)(/* @__PURE__ */ new Set),f=(0,c.useRef)(/* @__PURE__ */ new Set),[,p]=(0,c.useState)(0),[m,g]=(0,c.useState)(()=>h(400)),_=(0,c.useRef)(m);(0,c.useEffect)(()=>{let e=u.current;if(!e)return;let t=new ResizeObserver(e=>{let t=h(e[0]?.contentRect.width??0);t!==_.current&&(_.current=t,g(t))});return t.observe(e),()=>t.disconnect()},[]);let v=s(e.length,m.cols,m.rows,m.maxPerGroup),y=o(e.length,m.rows,m.maxPerGroup),b=Math.ceil(e.length/m.maxPerGroup),[x,S]=(0,c.useState)(!1),[C,w]=(0,c.useState)(0),[T,E]=(0,c.useState)(null),D=e.map(e=>({src:e.src,alt:e.alt,title:e.title,description:e.description}));return e.length===0?null:/* @__PURE__ */ (0,l.jsxs)(l.Fragment,{children:[/* @__PURE__ */ (0,l.jsxs)(`div`,{ref:u,className:r(`h-full overflow-x-hidden overflow-y-auto`,t),role:`grid`,"aria-label":`Image gallery`,"qa-test-id":n,children:[/* @__PURE__ */ (0,l.jsx)(`div`,{className:`grid overflow-clip rounded-2xl`,style:{gridTemplateColumns:`repeat(${m.cols}, 1fr)`,gridTemplateRows:`repeat(${y}, 1fr)`,aspectRatio:`1 / ${m.heightRatio*b}`,gap:`4px`},children:e.map((t,n)=>{let r=v[n];return/* @__PURE__ */ (0,l.jsx)(i,{src:t.src,index:n,total:e.length,isLoaded:d.current.has(t.src),isError:f.current.has(t.src),gridColumn:r?.gridColumn,gridRow:r?.gridRow,isHidden:x&&C===n,onLoad:e=>{d.current.has(e)||(d.current.add(e),p(e=>e+1))},onError:e=>{f.current.has(e)||(f.current.add(e),p(e=>e+1))},onClick:(e,t)=>{w(e),E(t),S(!0)}},`${t.src}-${n}`)})}),/* @__PURE__ */ (0,l.jsx)(`div`,{className:`h-16 w-full`,"aria-hidden":`true`})]}),/* @__PURE__ */ (0,l.jsx)(a,{images:D,open:x,onClose:()=>{S(!1),requestAnimationFrame(()=>{document.activeElement instanceof HTMLElement&&document.activeElement.blur()})},initialIndex:C,origin:T})]})}export{g as GalleryPanelContent};
@@ -1 +1 @@
1
- import{a as e}from"../../../../_chunks/rolldown-runtime-BWaJ3C7D.js";import{t}from"../../../../_chunks/react-CUaU2Z9V.js";import{t as n}from"../../../../_chunks/ArrowRightIcon-OEjQROCT.js";import{t as r}from"../../../../_chunks/compiler-runtime-B3BlmaWz.js";import{t as i}from"../../../../_chunks/jsx-runtime-Dgn0yPdi.js";import{t as a}from"../../../../_chunks/dist-BNSTMZct.js";import{t as o}from"../../../../_chunks/Button-Dpj5VLQ7.js";import{t as s}from"../../../../_chunks/artifact-footer-DuduNfUg.js";import{t as c}from"../../../../_chunks/Lightbox-BbUkfkCP.js";import{r as l}from"../../../../_chunks/galleryLayouts-COa9PIJw.js";import{t as u}from"../../../../_chunks/ImageItem-CO80t6Tf.js";var d=r(),f=/* @__PURE__ */ e(t(),1),p=/* @__PURE__ */ e(i(),1);function m(e){let t=(0,d.c)(46),r,i,m,h,g,_,v;t[0]===e?(r=t[1],i=t[2],m=t[3],h=t[4],g=t[5],_=t[6],v=t[7]):({images:m,buttonText:r,onViewAllImages:g,onImageClick:h,className:i,qaTestId:v,..._}=e,t[0]=e,t[1]=r,t[2]=i,t[3]=m,t[4]=h,t[5]=g,t[6]=_,t[7]=v);let y=v===void 0?`image-artifact`:v,b=m.slice(0,5),x=b.length,S=l(x),[C,w]=f.useState(!1),T;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(T=[],t[8]=T):T=t[8];let[E,D]=f.useState(T),[O,k]=f.useState(0),[A,j]=f.useState(null),[M,N]=f.useState(null),P=m.length>5,F=`view ${m.length} ${m.length===1?`image`:`images`}`,I;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(I={icon:n},t[9]=I):I=t[9];let L=r??F,R;t[10]!==g||t[11]!==L?(R=/* @__PURE__ */ (0,p.jsx)(o,{variant:`weak`,fullwidth:!0,suffix:I,onClick:g,children:L}),t[10]=g,t[11]=L,t[12]=R):R=t[12];let z=R,B;t[13]!==m||t[14]!==h||t[15]!==N||t[16]!==w?(B=(e,t)=>{m[e]&&(h?h(e):(D(m),k(e),j(t),N(e),w(!0)))},t[13]=m,t[14]=h,t[15]=N,t[16]=w,t[17]=B):B=t[17];let V=B;if(x===0)return null;let H;t[18]===i?H=t[19]:(H=a(`mx-auto flex w-full max-w-[min(100%,calc(var(--artifact-breakout-column,680px)+2*var(--artifact-breakout-current,48px)))] min-w-0 flex-col items-stretch gap-6`,i),t[18]=i,t[19]=H);let U=x===1?`488 / 353`:`565 / 347`,W;t[20]===U?W=t[21]:(W={display:`grid`,width:`100%`,maxWidth:`100%`,minWidth:0,aspectRatio:U,gridTemplateColumns:`repeat(8, minmax(0, 1fr))`,gridTemplateRows:`repeat(6, minmax(0, 1fr))`,gap:4},t[20]=U,t[21]=W);let G=b.map((e,t)=>{let n=S[t];return n?/* @__PURE__ */ (0,p.jsx)(u,{src:e.src,alt:e.alt,onClick:e=>{let n=e.currentTarget.getBoundingClientRect();V(t,{x:n.left+n.width/2,y:n.top+n.height/2})},className:a(`h-full min-h-0 w-full min-w-0`,C&&M===t&&`invisible`),style:{gridColumn:n.gridColumn,gridRow:n.gridRow,minWidth:0,minHeight:0}},`${e.src}-${t}`):null}),K;t[22]!==W||t[23]!==G?(K=/* @__PURE__ */ (0,p.jsx)(`div`,{className:`overflow-clip rounded-2xl`,role:`group`,style:W,children:G}),t[22]=W,t[23]=G,t[24]=K):K=t[24];let q;t[25]!==z||t[26]!==P?(q=P?/* @__PURE__ */ (0,p.jsx)(s,{buttons:[z],layout:`full`,className:`w-full px-0`}):null,t[25]=z,t[26]=P,t[27]=q):q=t[27];let J;t[28]!==_||t[29]!==y||t[30]!==K||t[31]!==q||t[32]!==H?(J=/* @__PURE__ */ (0,p.jsxs)(`div`,{className:H,"qa-test-id":y,..._,children:[K,q]}),t[28]=_,t[29]=y,t[30]=K,t[31]=q,t[32]=H,t[33]=J):J=t[33];let Y;t[34]!==N||t[35]!==w?(Y=()=>{w(!1),N(null)},t[34]=N,t[35]=w,t[36]=Y):Y=t[36];let X;t[37]!==E||t[38]!==O||t[39]!==C||t[40]!==A||t[41]!==Y?(X=/* @__PURE__ */ (0,p.jsx)(c,{images:E,open:C,onClose:Y,initialIndex:O,origin:A}),t[37]=E,t[38]=O,t[39]=C,t[40]=A,t[41]=Y,t[42]=X):X=t[42];let Z;return t[43]!==J||t[44]!==X?(Z=/* @__PURE__ */ (0,p.jsxs)(p.Fragment,{children:[J,X]}),t[43]=J,t[44]=X,t[45]=Z):Z=t[45],Z}export{m as ImageArtifact};
1
+ import{a as e}from"../../../../_chunks/rolldown-runtime-BWaJ3C7D.js";import{t}from"../../../../_chunks/react-CUaU2Z9V.js";import{t as n}from"../../../../_chunks/ArrowRightIcon-OEjQROCT.js";import{t as r}from"../../../../_chunks/compiler-runtime-B3BlmaWz.js";import{t as i}from"../../../../_chunks/jsx-runtime-Dgn0yPdi.js";import{t as a}from"../../../../_chunks/dist-BNSTMZct.js";import{t as o}from"../../../../_chunks/Button-Dpj5VLQ7.js";import{t as s}from"../../../../_chunks/artifact-footer-DuduNfUg.js";import{t as c}from"../../../../_chunks/Lightbox-tD0ITLK_.js";import{r as l}from"../../../../_chunks/galleryLayouts-COa9PIJw.js";import{t as u}from"../../../../_chunks/ImageItem-CO80t6Tf.js";var d=r(),f=/* @__PURE__ */ e(t(),1),p=/* @__PURE__ */ e(i(),1);function m(e){let t=(0,d.c)(46),r,i,m,h,g,_,v;t[0]===e?(r=t[1],i=t[2],m=t[3],h=t[4],g=t[5],_=t[6],v=t[7]):({images:m,buttonText:r,onViewAllImages:g,onImageClick:h,className:i,qaTestId:v,..._}=e,t[0]=e,t[1]=r,t[2]=i,t[3]=m,t[4]=h,t[5]=g,t[6]=_,t[7]=v);let y=v===void 0?`image-artifact`:v,b=m.slice(0,5),x=b.length,S=l(x),[C,w]=f.useState(!1),T;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(T=[],t[8]=T):T=t[8];let[E,D]=f.useState(T),[O,k]=f.useState(0),[A,j]=f.useState(null),[M,N]=f.useState(null),P=m.length>5,F=`view ${m.length} ${m.length===1?`image`:`images`}`,I;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(I={icon:n},t[9]=I):I=t[9];let L=r??F,R;t[10]!==g||t[11]!==L?(R=/* @__PURE__ */ (0,p.jsx)(o,{variant:`weak`,fullwidth:!0,suffix:I,onClick:g,children:L}),t[10]=g,t[11]=L,t[12]=R):R=t[12];let z=R,B;t[13]!==m||t[14]!==h||t[15]!==N||t[16]!==w?(B=(e,t)=>{m[e]&&(h?h(e):(D(m),k(e),j(t),N(e),w(!0)))},t[13]=m,t[14]=h,t[15]=N,t[16]=w,t[17]=B):B=t[17];let V=B;if(x===0)return null;let H;t[18]===i?H=t[19]:(H=a(`mx-auto flex w-full max-w-[min(100%,calc(var(--artifact-breakout-column,680px)+2*var(--artifact-breakout-current,48px)))] min-w-0 flex-col items-stretch gap-6`,i),t[18]=i,t[19]=H);let U=x===1?`488 / 353`:`565 / 347`,W;t[20]===U?W=t[21]:(W={display:`grid`,width:`100%`,maxWidth:`100%`,minWidth:0,aspectRatio:U,gridTemplateColumns:`repeat(8, minmax(0, 1fr))`,gridTemplateRows:`repeat(6, minmax(0, 1fr))`,gap:4},t[20]=U,t[21]=W);let G=b.map((e,t)=>{let n=S[t];return n?/* @__PURE__ */ (0,p.jsx)(u,{src:e.src,alt:e.alt,onClick:e=>{let n=e.currentTarget.getBoundingClientRect();V(t,{x:n.left+n.width/2,y:n.top+n.height/2})},className:a(`h-full min-h-0 w-full min-w-0`,C&&M===t&&`invisible`),style:{gridColumn:n.gridColumn,gridRow:n.gridRow,minWidth:0,minHeight:0}},`${e.src}-${t}`):null}),K;t[22]!==W||t[23]!==G?(K=/* @__PURE__ */ (0,p.jsx)(`div`,{className:`overflow-clip rounded-2xl`,role:`group`,style:W,children:G}),t[22]=W,t[23]=G,t[24]=K):K=t[24];let q;t[25]!==z||t[26]!==P?(q=P?/* @__PURE__ */ (0,p.jsx)(s,{buttons:[z],layout:`full`,className:`w-full px-0`}):null,t[25]=z,t[26]=P,t[27]=q):q=t[27];let J;t[28]!==_||t[29]!==y||t[30]!==K||t[31]!==q||t[32]!==H?(J=/* @__PURE__ */ (0,p.jsxs)(`div`,{className:H,"qa-test-id":y,..._,children:[K,q]}),t[28]=_,t[29]=y,t[30]=K,t[31]=q,t[32]=H,t[33]=J):J=t[33];let Y;t[34]!==N||t[35]!==w?(Y=()=>{w(!1),N(null)},t[34]=N,t[35]=w,t[36]=Y):Y=t[36];let X;t[37]!==E||t[38]!==O||t[39]!==C||t[40]!==A||t[41]!==Y?(X=/* @__PURE__ */ (0,p.jsx)(c,{images:E,open:C,onClose:Y,initialIndex:O,origin:A}),t[37]=E,t[38]=O,t[39]=C,t[40]=A,t[41]=Y,t[42]=X):X=t[42];let Z;return t[43]!==J||t[44]!==X?(Z=/* @__PURE__ */ (0,p.jsxs)(p.Fragment,{children:[J,X]}),t[43]=J,t[44]=X,t[45]=Z):Z=t[45],Z}export{m as ImageArtifact};
@@ -1 +1 @@
1
- export{t as Lightbox}from"../../../../_chunks/Lightbox-BbUkfkCP.js";
1
+ export{t as Lightbox}from"../../../../_chunks/Lightbox-tD0ITLK_.js";
@@ -1 +1 @@
1
- "use client";export{t as BrandLogo,n as findBrand}from"../../_chunks/Brands-DAfm2bHa.js";
1
+ "use client";export{t as BrandLogo,n as findBrand}from"../../_chunks/Brands-BFCHD_gn.js";
@@ -1 +1 @@
1
- import{a as e}from"../../_chunks/rolldown-runtime-BWaJ3C7D.js";import{t}from"../../_chunks/react-CUaU2Z9V.js";import{t as n}from"../../_chunks/ChevronRightIcon-Dgm8qBR8.js";import{t as r}from"../../_chunks/compiler-runtime-B3BlmaWz.js";import{t as i}from"../../_chunks/jsx-runtime-Dgn0yPdi.js";import{t as a}from"../../_chunks/dist-BNSTMZct.js";import{n as o,t as s}from"../../_chunks/ListItem-44-5Eht6.js";import{t as c}from"../../_chunks/Button-Dpj5VLQ7.js";import{i as l}from"../../_chunks/dist-BRMXKypj.js";import{t as u}from"../../_chunks/DotsHorizontalAlt-D6tD0J4l.js";var d=r(),f=/* @__PURE__ */ e(t(),1),p=/* @__PURE__ */ e(i(),1);function m(e){let t=(0,d.c)(18),n,r,i,o;t[0]===e?(n=t[1],r=t[2],i=t[3],o=t[4]):({children:n,className:r,qaTestId:o,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o);let s=o===void 0?`breadcrumb-group`:o,{_:c}=l(),u;t[5]===c?u=t[6]:(u=c({id:`iu7tUI`}),t[5]=c,t[6]=u);let f;t[7]===r?f=t[8]:(f=a(`max-w-full min-w-0`,r),t[7]=r,t[8]=f);let m;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(m=a(`flex max-w-full min-w-0 items-center`,`[&>li:last-child_[data-slot=breadcrumb-separator]]:hidden`),t[9]=m):m=t[9];let h;t[10]===n?h=t[11]:(h=/* @__PURE__ */ (0,p.jsx)(`ol`,{className:m,children:n}),t[10]=n,t[11]=h);let g;return t[12]!==i||t[13]!==s||t[14]!==u||t[15]!==f||t[16]!==h?(g=/* @__PURE__ */ (0,p.jsx)(`nav`,{"aria-label":u,"data-slot":`breadcrumb-group`,className:f,"qa-test-id":s,...i,children:h}),t[12]=i,t[13]=s,t[14]=u,t[15]=f,t[16]=h,t[17]=g):g=t[17],g}function h(){return a(`[&>span]:min-w-0 [&>span]:px-0 [&>span]:font-sans [&>span]:text-sm [&>span]:leading-5 [&>span]:font-medium [&>span]:tracking-normal [&>span]:normal-case`,`[&>span]:text-text-soft hover:[&>span]:text-text-sub focus:[&>span]:text-text-sub`,`hover:[&_.text-icon-soft]:text-icon-sub focus:[&_.text-icon-soft]:text-icon-sub`)}function g(){return a(`relative isolate box-border flex max-w-full min-w-0 items-center overflow-hidden`,`rounded-10 p-1.5`,`pui-text-label-medium text-text-sub`,`bg-depth-black-0`,`transition-colors duration-150 ease-out`,`focus:bg-depth-black-4 focus:outline-none`)}function _(e){let t=(0,d.c)(7),{icon:n,children:r}=e,i;t[0]===n?i=t[1]:(i=n?/* @__PURE__ */ (0,p.jsx)(n,{size:20,color:`icon-sub`,className:`shrink-0`}):null,t[0]=n,t[1]=i);let a;t[2]===r?a=t[3]:(a=/* @__PURE__ */ (0,p.jsx)(`span`,{className:`min-w-0 truncate`,children:r}),t[2]=r,t[3]=a);let o;return t[4]!==i||t[5]!==a?(o=/* @__PURE__ */ (0,p.jsxs)(p.Fragment,{children:[i,a]}),t[4]=i,t[5]=a,t[6]=o):o=t[6],o}function v(e){let t=(0,d.c)(31),r,i,o,s,c,l,u,f,m,h,v;t[0]===e?(r=t[1],i=t[2],o=t[3],s=t[4],c=t[5],l=t[6],u=t[7],f=t[8],m=t[9],h=t[10],v=t[11]):({current:m,asChild:h,href:c,icon:r,overflow:u,onClick:l,children:o,className:s,qaTestId:v,"aria-label":i,...f}=e,t[0]=e,t[1]=r,t[2]=i,t[3]=o,t[4]=s,t[5]=c,t[6]=l,t[7]=u,t[8]=f,t[9]=m,t[10]=h,t[11]=v);let b=m!==void 0&&m,C=h!==void 0&&h,w=v===void 0?`breadcrumb`:v,T=!!(u&&u.length>0),E=b?`min-w-0 overflow-hidden`:`shrink-0`,D;t[12]!==s||t[13]!==E?(D=a(`flex items-center`,E,s),t[12]=s,t[13]=E,t[14]=D):D=t[14];let O;t[15]!==r||t[16]!==i||t[17]!==C||t[18]!==o||t[19]!==b||t[20]!==c||t[21]!==T||t[22]!==l||t[23]!==u?(O=T?/* @__PURE__ */ (0,p.jsx)(y,{items:u??[],ariaLabel:i}):r&&o==null?/* @__PURE__ */ (0,p.jsx)(x,{icon:r,href:c,onClick:l,ariaLabel:i}):b?/* @__PURE__ */ (0,p.jsx)(`span`,{"aria-current":`page`,"aria-label":i,className:g(),children:/* @__PURE__ */ (0,p.jsx)(_,{icon:r,children:o})}):/* @__PURE__ */ (0,p.jsx)(S,{asChild:C,href:c,onClick:l,icon:r,ariaLabel:i,children:o}),t[15]=r,t[16]=i,t[17]=C,t[18]=o,t[19]=b,t[20]=c,t[21]=T,t[22]=l,t[23]=u,t[24]=O):O=t[24];let k;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(k=/* @__PURE__ */ (0,p.jsx)(n,{size:20,color:`icon-soft`,"aria-hidden":!0,"data-slot":`breadcrumb-separator`,className:`shrink-0`}),t[25]=k):k=t[25];let A;return t[26]!==f||t[27]!==w||t[28]!==D||t[29]!==O?(A=/* @__PURE__ */ (0,p.jsxs)(`li`,{"data-slot":`breadcrumb`,className:D,"qa-test-id":w,...f,children:[O,k]}),t[26]=f,t[27]=w,t[28]=D,t[29]=O,t[30]=A):A=t[30],A}function y(e){let t=(0,d.c)(11),{items:n,ariaLabel:r}=e,{_:i}=l(),a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a={icon:u,color:`icon-soft`},t[0]=a):a=t[0];let s;t[1]!==i||t[2]!==r?(s=r??i({id:`2FYpfJ`}),t[1]=i,t[2]=r,t[3]=s):s=t[3];let f;t[4]===s?f=t[5]:(f=/* @__PURE__ */ (0,p.jsx)(c,{variant:`inverse`,size:`small`,prefix:a,"aria-label":s}),t[4]=s,t[5]=f);let m;t[6]===n?m=t[7]:(m=n.map(b),t[6]=n,t[7]=m);let h;return t[8]!==f||t[9]!==m?(h=/* @__PURE__ */ (0,p.jsx)(o,{trigger:f,position:`bottom-start`,sideOffset:4,children:m}),t[8]=f,t[9]=m,t[10]=h):h=t[10],h}function b(e,t){let n=e.href??(typeof e.children==`string`?e.children:t);return e.href?/* @__PURE__ */ (0,p.jsx)(s,{listItemType:`small`,asChild:!0,children:/* @__PURE__ */ (0,p.jsx)(`a`,{href:e.href,children:e.children})},n):/* @__PURE__ */ (0,p.jsx)(s,{listItemType:`small`,onClick:e.onClick,children:e.children},n)}function x(e){let t=(0,d.c)(17),{icon:n,href:r,onClick:i,ariaLabel:a}=e,{_:o}=l(),s;t[0]!==o||t[1]!==a?(s=a??o({id:`i0qMbr`}),t[0]=o,t[1]=a,t[2]=s):s=t[2];let u=s;if(r){let e;t[3]===n?e=t[4]:(e={icon:n},t[3]=n,t[4]=e);let i;t[5]===r?i=t[6]:(i=/* @__PURE__ */ (0,p.jsx)(`a`,{href:r}),t[5]=r,t[6]=i);let a;return t[7]!==u||t[8]!==e||t[9]!==i?(a=/* @__PURE__ */ (0,p.jsx)(c,{variant:`inverse`,size:`small`,prefix:e,"aria-label":u,asChild:!0,children:i}),t[7]=u,t[8]=e,t[9]=i,t[10]=a):a=t[10],a}let f;t[11]===n?f=t[12]:(f={icon:n},t[11]=n,t[12]=f);let m;return t[13]!==u||t[14]!==i||t[15]!==f?(m=/* @__PURE__ */ (0,p.jsx)(c,{variant:`inverse`,size:`small`,prefix:f,"aria-label":u,onClick:i}),t[13]=u,t[14]=i,t[15]=f,t[16]=m):m=t[16],m}function S(e){let t=(0,d.c)(21),{asChild:n,href:r,onClick:i,icon:a,ariaLabel:o,children:s}=e,l;t[0]===a?l=t[1]:(l=a?{icon:a,color:`icon-soft`,className:`text-icon-soft`}:void 0,t[0]=a,t[1]=l);let u=l,m;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(m=h(),t[2]=m):m=t[2];let g=m;if(n&&f.isValidElement(s)){let e;return t[3]!==o||t[4]!==s||t[5]!==i||t[6]!==u?(e=/* @__PURE__ */ (0,p.jsx)(c,{variant:`inverse`,size:`small`,prefix:u,className:g,onClick:i,"aria-label":o,asChild:!0,children:s}),t[3]=o,t[4]=s,t[5]=i,t[6]=u,t[7]=e):e=t[7],e}if(r){let e;t[8]!==s||t[9]!==r?(e=/* @__PURE__ */ (0,p.jsx)(`a`,{href:r,children:s}),t[8]=s,t[9]=r,t[10]=e):e=t[10];let n;return t[11]!==o||t[12]!==i||t[13]!==u||t[14]!==e?(n=/* @__PURE__ */ (0,p.jsx)(c,{variant:`inverse`,size:`small`,prefix:u,className:g,onClick:i,"aria-label":o,asChild:!0,children:e}),t[11]=o,t[12]=i,t[13]=u,t[14]=e,t[15]=n):n=t[15],n}let _;return t[16]!==o||t[17]!==s||t[18]!==i||t[19]!==u?(_=/* @__PURE__ */ (0,p.jsx)(c,{variant:`inverse`,size:`small`,prefix:u,className:g,onClick:i,"aria-label":o,children:s}),t[16]=o,t[17]=s,t[18]=i,t[19]=u,t[20]=_):_=t[20],_}(function(e){e.Group=m})(v||={});export{v as Breadcrumb,m as BreadcrumbGroup};
1
+ import{a as e}from"../../_chunks/rolldown-runtime-BWaJ3C7D.js";import{t}from"../../_chunks/react-CUaU2Z9V.js";import{t as n}from"../../_chunks/ChevronRightIcon-Dgm8qBR8.js";import{t as r}from"../../_chunks/compiler-runtime-B3BlmaWz.js";import{t as i}from"../../_chunks/jsx-runtime-Dgn0yPdi.js";import{t as a}from"../../_chunks/dist-BNSTMZct.js";import{n as o,t as s}from"../../_chunks/ListItem-D60x86Ry.js";import{t as c}from"../../_chunks/Button-Dpj5VLQ7.js";import{i as l}from"../../_chunks/dist-BRMXKypj.js";import{t as u}from"../../_chunks/DotsHorizontalAlt-D6tD0J4l.js";var d=r(),f=/* @__PURE__ */ e(t(),1),p=/* @__PURE__ */ e(i(),1);function m(e){let t=(0,d.c)(18),n,r,i,o;t[0]===e?(n=t[1],r=t[2],i=t[3],o=t[4]):({children:n,className:r,qaTestId:o,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o);let s=o===void 0?`breadcrumb-group`:o,{_:c}=l(),u;t[5]===c?u=t[6]:(u=c({id:`iu7tUI`}),t[5]=c,t[6]=u);let f;t[7]===r?f=t[8]:(f=a(`max-w-full min-w-0`,r),t[7]=r,t[8]=f);let m;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(m=a(`flex max-w-full min-w-0 items-center`,`[&>li:last-child_[data-slot=breadcrumb-separator]]:hidden`),t[9]=m):m=t[9];let h;t[10]===n?h=t[11]:(h=/* @__PURE__ */ (0,p.jsx)(`ol`,{className:m,children:n}),t[10]=n,t[11]=h);let g;return t[12]!==i||t[13]!==s||t[14]!==u||t[15]!==f||t[16]!==h?(g=/* @__PURE__ */ (0,p.jsx)(`nav`,{"aria-label":u,"data-slot":`breadcrumb-group`,className:f,"qa-test-id":s,...i,children:h}),t[12]=i,t[13]=s,t[14]=u,t[15]=f,t[16]=h,t[17]=g):g=t[17],g}function h(){return a(`[&>span]:min-w-0 [&>span]:px-0 [&>span]:font-sans [&>span]:text-sm [&>span]:leading-5 [&>span]:font-medium [&>span]:tracking-normal [&>span]:normal-case`,`[&>span]:text-text-soft hover:[&>span]:text-text-sub focus:[&>span]:text-text-sub`,`hover:[&_.text-icon-soft]:text-icon-sub focus:[&_.text-icon-soft]:text-icon-sub`)}function g(){return a(`relative isolate box-border flex max-w-full min-w-0 items-center overflow-hidden`,`rounded-10 p-1.5`,`pui-text-label-medium text-text-sub`,`bg-depth-black-0`,`transition-colors duration-150 ease-out`,`focus:bg-depth-black-4 focus:outline-none`)}function _(e){let t=(0,d.c)(7),{icon:n,children:r}=e,i;t[0]===n?i=t[1]:(i=n?/* @__PURE__ */ (0,p.jsx)(n,{size:20,color:`icon-sub`,className:`shrink-0`}):null,t[0]=n,t[1]=i);let a;t[2]===r?a=t[3]:(a=/* @__PURE__ */ (0,p.jsx)(`span`,{className:`min-w-0 truncate`,children:r}),t[2]=r,t[3]=a);let o;return t[4]!==i||t[5]!==a?(o=/* @__PURE__ */ (0,p.jsxs)(p.Fragment,{children:[i,a]}),t[4]=i,t[5]=a,t[6]=o):o=t[6],o}function v(e){let t=(0,d.c)(31),r,i,o,s,c,l,u,f,m,h,v;t[0]===e?(r=t[1],i=t[2],o=t[3],s=t[4],c=t[5],l=t[6],u=t[7],f=t[8],m=t[9],h=t[10],v=t[11]):({current:m,asChild:h,href:c,icon:r,overflow:u,onClick:l,children:o,className:s,qaTestId:v,"aria-label":i,...f}=e,t[0]=e,t[1]=r,t[2]=i,t[3]=o,t[4]=s,t[5]=c,t[6]=l,t[7]=u,t[8]=f,t[9]=m,t[10]=h,t[11]=v);let b=m!==void 0&&m,C=h!==void 0&&h,w=v===void 0?`breadcrumb`:v,T=!!(u&&u.length>0),E=b?`min-w-0 overflow-hidden`:`shrink-0`,D;t[12]!==s||t[13]!==E?(D=a(`flex items-center`,E,s),t[12]=s,t[13]=E,t[14]=D):D=t[14];let O;t[15]!==r||t[16]!==i||t[17]!==C||t[18]!==o||t[19]!==b||t[20]!==c||t[21]!==T||t[22]!==l||t[23]!==u?(O=T?/* @__PURE__ */ (0,p.jsx)(y,{items:u??[],ariaLabel:i}):r&&o==null?/* @__PURE__ */ (0,p.jsx)(x,{icon:r,href:c,onClick:l,ariaLabel:i}):b?/* @__PURE__ */ (0,p.jsx)(`span`,{"aria-current":`page`,"aria-label":i,className:g(),children:/* @__PURE__ */ (0,p.jsx)(_,{icon:r,children:o})}):/* @__PURE__ */ (0,p.jsx)(S,{asChild:C,href:c,onClick:l,icon:r,ariaLabel:i,children:o}),t[15]=r,t[16]=i,t[17]=C,t[18]=o,t[19]=b,t[20]=c,t[21]=T,t[22]=l,t[23]=u,t[24]=O):O=t[24];let k;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(k=/* @__PURE__ */ (0,p.jsx)(n,{size:20,color:`icon-soft`,"aria-hidden":!0,"data-slot":`breadcrumb-separator`,className:`shrink-0`}),t[25]=k):k=t[25];let A;return t[26]!==f||t[27]!==w||t[28]!==D||t[29]!==O?(A=/* @__PURE__ */ (0,p.jsxs)(`li`,{"data-slot":`breadcrumb`,className:D,"qa-test-id":w,...f,children:[O,k]}),t[26]=f,t[27]=w,t[28]=D,t[29]=O,t[30]=A):A=t[30],A}function y(e){let t=(0,d.c)(11),{items:n,ariaLabel:r}=e,{_:i}=l(),a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a={icon:u,color:`icon-soft`},t[0]=a):a=t[0];let s;t[1]!==i||t[2]!==r?(s=r??i({id:`2FYpfJ`}),t[1]=i,t[2]=r,t[3]=s):s=t[3];let f;t[4]===s?f=t[5]:(f=/* @__PURE__ */ (0,p.jsx)(c,{variant:`inverse`,size:`small`,prefix:a,"aria-label":s}),t[4]=s,t[5]=f);let m;t[6]===n?m=t[7]:(m=n.map(b),t[6]=n,t[7]=m);let h;return t[8]!==f||t[9]!==m?(h=/* @__PURE__ */ (0,p.jsx)(o,{trigger:f,position:`bottom-start`,sideOffset:4,children:m}),t[8]=f,t[9]=m,t[10]=h):h=t[10],h}function b(e,t){let n=e.href??(typeof e.children==`string`?e.children:t);return e.href?/* @__PURE__ */ (0,p.jsx)(s,{listItemType:`small`,asChild:!0,children:/* @__PURE__ */ (0,p.jsx)(`a`,{href:e.href,children:e.children})},n):/* @__PURE__ */ (0,p.jsx)(s,{listItemType:`small`,onClick:e.onClick,children:e.children},n)}function x(e){let t=(0,d.c)(17),{icon:n,href:r,onClick:i,ariaLabel:a}=e,{_:o}=l(),s;t[0]!==o||t[1]!==a?(s=a??o({id:`i0qMbr`}),t[0]=o,t[1]=a,t[2]=s):s=t[2];let u=s;if(r){let e;t[3]===n?e=t[4]:(e={icon:n},t[3]=n,t[4]=e);let i;t[5]===r?i=t[6]:(i=/* @__PURE__ */ (0,p.jsx)(`a`,{href:r}),t[5]=r,t[6]=i);let a;return t[7]!==u||t[8]!==e||t[9]!==i?(a=/* @__PURE__ */ (0,p.jsx)(c,{variant:`inverse`,size:`small`,prefix:e,"aria-label":u,asChild:!0,children:i}),t[7]=u,t[8]=e,t[9]=i,t[10]=a):a=t[10],a}let f;t[11]===n?f=t[12]:(f={icon:n},t[11]=n,t[12]=f);let m;return t[13]!==u||t[14]!==i||t[15]!==f?(m=/* @__PURE__ */ (0,p.jsx)(c,{variant:`inverse`,size:`small`,prefix:f,"aria-label":u,onClick:i}),t[13]=u,t[14]=i,t[15]=f,t[16]=m):m=t[16],m}function S(e){let t=(0,d.c)(21),{asChild:n,href:r,onClick:i,icon:a,ariaLabel:o,children:s}=e,l;t[0]===a?l=t[1]:(l=a?{icon:a,color:`icon-soft`,className:`text-icon-soft`}:void 0,t[0]=a,t[1]=l);let u=l,m;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(m=h(),t[2]=m):m=t[2];let g=m;if(n&&f.isValidElement(s)){let e;return t[3]!==o||t[4]!==s||t[5]!==i||t[6]!==u?(e=/* @__PURE__ */ (0,p.jsx)(c,{variant:`inverse`,size:`small`,prefix:u,className:g,onClick:i,"aria-label":o,asChild:!0,children:s}),t[3]=o,t[4]=s,t[5]=i,t[6]=u,t[7]=e):e=t[7],e}if(r){let e;t[8]!==s||t[9]!==r?(e=/* @__PURE__ */ (0,p.jsx)(`a`,{href:r,children:s}),t[8]=s,t[9]=r,t[10]=e):e=t[10];let n;return t[11]!==o||t[12]!==i||t[13]!==u||t[14]!==e?(n=/* @__PURE__ */ (0,p.jsx)(c,{variant:`inverse`,size:`small`,prefix:u,className:g,onClick:i,"aria-label":o,asChild:!0,children:e}),t[11]=o,t[12]=i,t[13]=u,t[14]=e,t[15]=n):n=t[15],n}let _;return t[16]!==o||t[17]!==s||t[18]!==i||t[19]!==u?(_=/* @__PURE__ */ (0,p.jsx)(c,{variant:`inverse`,size:`small`,prefix:u,className:g,onClick:i,"aria-label":o,children:s}),t[16]=o,t[17]=s,t[18]=i,t[19]=u,t[20]=_):_=t[20],_}(function(e){e.Group=m})(v||={});export{v as Breadcrumb,m as BreadcrumbGroup};
@@ -1 +1 @@
1
- export{t as ButtonGroup,t as default}from"../../_chunks/ButtonGroup-CnigUM7E.js";
1
+ export{t as ButtonGroup,t as default}from"../../_chunks/ButtonGroup-Xm6OYeiG.js";
@@ -1 +1 @@
1
- import{a as e}from"../../../_chunks/rolldown-runtime-BWaJ3C7D.js";import{t}from"../../../_chunks/react-CUaU2Z9V.js";import{S as n,_ as r,a as i,b as a,c as o,d as s,f as c,g as l,i as u,m as d,n as f,o as p,p as m,r as h,s as g,t as _,u as v,x as y}from"../../../_chunks/series-tag-Bg1kAB-R.js";import{t as b}from"../../../_chunks/compiler-runtime-B3BlmaWz.js";import{t as x}from"../../../_chunks/jsx-runtime-Dgn0yPdi.js";import{t as S}from"../../../_chunks/dist-BNSTMZct.js";import{n as C,r as w,t as T}from"../../../_chunks/animation-D8IqP_32.js";import{f as E,t as D}from"../../../_chunks/time-series-chart-shell-jt_eAlI8.js";import{t as O}from"../../../_chunks/grid-DmEGskok.js";import{i as k,t as A}from"../../../_chunks/y-axis-scales-Di1QS_P5.js";import{a as j,i as M,n as N,o as P,r as F,s as I,t as L}from"../../../_chunks/chart-context-DEIvTsqh.js";import{n as R,t as z}from"../../../_chunks/projection-line-end-marker-QD35F55G.js";import{i as ee,n as B,r as V,t as H}from"../../../_chunks/chart-config-context-BpwYTVdv.js";import{n as U,t as W}from"../../../_chunks/chart-legend-hover-BJijcIfO.js";import{i as G,n as K,t as te}from"../../../_chunks/series-markers-PiCafGdw.js";import{a as ne,i as q,n as re,o as ie,r as J,t as ae}from"../../../_chunks/chart-density-B2pG6con.js";import{a as Y,i as oe,n as se,o as ce,r as le,s as ue,t as de}from"../../../_chunks/chart-phase-BaIoHaYw.js";import{t as fe}from"../../../_chunks/chart-child-passthrough-CU3_U3Y7.js";import{a as pe,c as me,d as he,f as ge,i as _e,l as ve,n as ye,o as be,p as xe,r as Se,s as Ce,t as we,u as Te}from"../../../_chunks/projection-config-BrjUSVSl.js";import{c as Ee,f as De,i as Oe,l as ke,r as Ae,s as je}from"../../../_chunks/y-domain-utils-DBuIZ5LP.js";import{a as Me,n as Ne,t as Pe}from"../../../_chunks/x-axis-zEBQ8DnV.js";import{a as Fe,c as Ie,i as Le,l as Re,n as ze,o as Be,r as Ve,s as He,t as Ue}from"../../../_chunks/pattern-preset-CyGrTxZq.js";import{t as We}from"../../../_chunks/background-BL4j0Aup.js";import{a as Ge,i as Ke,o as qe,r as Je,s as Ye,t as Xe}from"../../../_chunks/chart-tooltip-BN_Xx-ha.js";import{t as Ze}from"../../../_chunks/reference-area-C1I15Ptt.js";import{t as Qe}from"../../../_chunks/tooltip-box-DTNmTvby.js";import{t as $e}from"../../../_chunks/tooltip-content-CEeyDbtg.js";import{a as et,i as tt,n as nt,r as rt,t as it}from"../../../_chunks/y-axis-R9BDlIer.js";import{t as X}from"../../../_chunks/area-series-CJuoy0nm.js";import{t as at}from"../../../_chunks/ParentSize-8O4qY4pg.js";var Z=b(),Q=/* @__PURE__ */ e(t(),1),$=/* @__PURE__ */ e(x(),1);const ot=/* @__PURE__ */ new Set([`LineSeriesTerminalMarker`,`SeriesPoint`,`SeriesTag`]);function st(e){let t=[];return Q.Children.forEach(e,e=>{if(!(0,Q.isValidElement)(e))return;let n=e.type,i=typeof e.type==`function`&&(n.displayName||n.name)||``,a=e.props,o=i===`PatternArea`||e.type===r,s=ot.has(i);(i===`Area`||e.type===X||a&&typeof a.dataKey==`string`&&a.dataKey.length>0&&!o&&!s)&&a?.dataKey&&t.push({dataKey:a.dataKey,stroke:a.stroke||a.fill||`var(--chart-line-primary)`,strokeWidth:a.strokeWidth||2,yAxisId:a.yAxisId})}),t}function ct(e){let t=(0,Z.c)(25),{width:n,height:r,data:i,xDataKey:a,margin:o,density:s,animationDuration:c,animationEasing:l,enterTransition:u,revealSignature:d,chartStatus:f,loadingLabel:p,yDomainTweenDuration:m,yDomainTween:h,xDomain:g,xDomainSlotCount:_,tweenYDomainOnXDomainChange:v,children:y,containerRef:b,onPhaseChange:x,clipPathId:S}=e,C;t[0]===y?C=t[1]:(C=st(y),t[0]=y,t[1]=C);let w=C,T;return t[2]!==c||t[3]!==l||t[4]!==f||t[5]!==y||t[6]!==S||t[7]!==b||t[8]!==i||t[9]!==s||t[10]!==u||t[11]!==r||t[12]!==w||t[13]!==p||t[14]!==o||t[15]!==x||t[16]!==d||t[17]!==v||t[18]!==n||t[19]!==a||t[20]!==g||t[21]!==_||t[22]!==h||t[23]!==m?(T=/* @__PURE__ */ (0,$.jsx)(D,{animationDuration:c,animationEasing:l,chartStatus:f,clipPathId:S,containerRef:b,data:i,enterTransition:u,height:r,lines:w,loadingLabel:p,density:s,margin:o,onPhaseChange:x,revealSignature:d,tweenYDomainOnXDomainChange:v,width:n,xDataKey:a,xDomain:g,xDomainSlotCount:_,yDomainTween:h,yDomainTweenDuration:m,children:y}),t[2]=c,t[3]=l,t[4]=f,t[5]=y,t[6]=S,t[7]=b,t[8]=i,t[9]=s,t[10]=u,t[11]=r,t[12]=w,t[13]=p,t[14]=o,t[15]=x,t[16]=d,t[17]=v,t[18]=n,t[19]=a,t[20]=g,t[21]=_,t[22]=h,t[23]=m,t[24]=T):T=t[24],T}function lt(e){let t=(0,Z.c)(44),{data:n,xDataKey:r,density:i,margin:a,animationDuration:o,animationEasing:s,enterTransition:c,revealSignature:l,aspectRatio:u,className:d,status:f,loadingLabel:p,yDomainTweenDuration:m,yDomainTween:h,xDomain:g,xDomainSlotCount:_,tweenYDomainOnXDomainChange:v,style:y,onPhaseChange:b,children:x}=e,C=r===void 0?`date`:r,w=i===void 0?J:i,T=o===void 0?1100:o,E=u===void 0?`2 / 1`:u,D=d===void 0?``:d,O=f===void 0?se:f,k=m===void 0?500:m,A=h===void 0||h,j=v!==void 0&&v,M=(0,Q.useId)(),N;if(t[0]!==M){let e;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=/:/g,t[2]=e):e=t[2],N=M.replace(e,``),t[0]=M,t[1]=N}else N=t[1];let P=`chart-area-grow-clip-${N}`,F=(0,Q.useRef)(null),I;t[3]!==w||t[4]!==a?(I=q(w,a),t[3]=w,t[4]=a,t[5]=I):I=t[5];let L=I,R;t[6]===O?R=t[7]:(R=()=>Y(O),t[6]=O,t[7]=R);let[z,ee]=(0,Q.useState)(R),B;t[8]!==z||t[9]!==p?(B=p?.trim()&&(z===`loading`||z===`exiting`||z===`gridTweenReady`||z===`revealingLoading`),t[8]=z,t[9]=p,t[10]=B):B=t[10];let V=!!B,H;t[11]===D?H=t[12]:(H=S(`relative w-full`,D),t[11]=D,t[12]=H);let U;t[13]!==E||t[14]!==y?(U={aspectRatio:E,touchAction:`none`,...y},t[13]=E,t[14]=y,t[15]=U):U=t[15];let W;t[16]!==T||t[17]!==s||t[18]!==x||t[19]!==P||t[20]!==n||t[21]!==w||t[22]!==c||t[23]!==p||t[24]!==L||t[25]!==b||t[26]!==l||t[27]!==O||t[28]!==j||t[29]!==C||t[30]!==g||t[31]!==_||t[32]!==A||t[33]!==k?(W=/* @__PURE__ */ (0,$.jsx)(at,{debounceTime:10,children:e=>{let{width:t,height:r}=e;return/* @__PURE__ */ (0,$.jsx)(ct,{animationDuration:T,animationEasing:s,chartStatus:O,containerRef:F,data:n,enterTransition:c,height:r,loadingLabel:p,density:w,margin:L,onPhaseChange:e=>{ee(e),b?.(e)},revealSignature:l,tweenYDomainOnXDomainChange:j,width:t,xDataKey:C,xDomain:g,xDomainSlotCount:_,yDomainTween:A,yDomainTweenDuration:k,clipPathId:P,children:x})}}),t[16]=T,t[17]=s,t[18]=x,t[19]=P,t[20]=n,t[21]=w,t[22]=c,t[23]=p,t[24]=L,t[25]=b,t[26]=l,t[27]=O,t[28]=j,t[29]=C,t[30]=g,t[31]=_,t[32]=A,t[33]=k,t[34]=W):W=t[34];let G;t[35]!==z||t[36]!==p||t[37]!==V?(G=V?/* @__PURE__ */ (0,$.jsx)(ce,{exiting:z!==`loading`,text:p}):null,t[35]=z,t[36]=p,t[37]=V,t[38]=G):G=t[38];let K;return t[39]!==H||t[40]!==U||t[41]!==W||t[42]!==G?(K=/* @__PURE__ */ (0,$.jsxs)(`div`,{className:H,ref:F,style:U,children:[W,G]}),t[39]=H,t[40]=U,t[41]=W,t[42]=G,t[43]=K):K=t[43],K}const ut=m;function dt(e){let t=(0,Z.c)(19),{margin:n,stroke:r,strokeOpacity:i,gridStroke:a,gridShimmerStroke:o,gridShimmer:s,gridShimmerLength:c,gridShimmerSpeed:l,gridShimmerSync:u,loadingStyle:f,label:p,aspectRatio:h,className:g}=e,_=r===void 0?`var(--chart-foreground)`:r,v=i===void 0?.5:i,y=a===void 0?`color-mix(in oklch, var(--chart-grid) 50%, transparent)`:a,b=o===void 0?`color-mix(in oklch, var(--chart-foreground) 68%, transparent)`:o,x=s===void 0||s,S=u!==void 0&&u,C=f===void 0?`pulse`:f,w=p===void 0?`Loading`:p,T=h===void 0?`2 / 1`:h,D=g===void 0?``:g,k;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(k=d({dataKey:m,pointCount:7}),t[0]=k):k=t[0];let A=k,j=C!==`sweep`&&x,M;t[1]!==c||t[2]!==l||t[3]!==b||t[4]!==S||t[5]!==y||t[6]!==j?(M=/* @__PURE__ */ (0,$.jsx)(O,{horizontal:!0,shimmer:j,shimmerLength:c,shimmerSpeed:l,shimmerStroke:b,shimmerSync:S,stroke:y}),t[1]=c,t[2]=l,t[3]=b,t[4]=S,t[5]=y,t[6]=j,t[7]=M):M=t[7];let N;t[8]!==C||t[9]!==_||t[10]!==v?(N=/* @__PURE__ */ (0,$.jsx)(X,{curve:E,dataKey:ut,fadeEdges:!1,fill:`transparent`,fillOpacity:0,loading:!0,loadingStroke:_,loadingStrokeOpacity:v,loadingStyle:C,showHighlight:!1,showLine:!0,stroke:`transparent`,strokeWidth:2}),t[8]=C,t[9]=_,t[10]=v,t[11]=N):N=t[11];let P;return t[12]!==T||t[13]!==D||t[14]!==w||t[15]!==n||t[16]!==M||t[17]!==N?(P=/* @__PURE__ */ (0,$.jsxs)(lt,{animationDuration:0,aspectRatio:T,className:D,data:A,loadingLabel:w,margin:n,status:`loading`,children:[M,N]}),t[12]=T,t[13]=D,t[14]=w,t[15]=n,t[16]=M,t[17]=N,t[18]=P):P=t[18],P}export{X as Area,lt as AreaChart,dt as AreaChartLoading,We as Background,a as BarLoadingSkeleton,fe as CHART_CLIP_PASSTHROUGH,ae as CHART_DENSITY,re as CHART_DENSITY_IDS,H as ChartConfigProvider,W as ChartLegendHoverProvider,ce as ChartLoadingLabel,u as ChartMarkers,L as ChartProvider,l as ChartRevealClip,Xe as ChartTooltip,T as DEFAULT_ANIMATION_DURATION_MS,C as DEFAULT_ANIMATION_EASING,B as DEFAULT_CHART_CONFIG,J as DEFAULT_CHART_DENSITY,w as DEFAULT_CHART_ENTER_TRANSITION,de as DEFAULT_CHART_LIFECYCLE,se as DEFAULT_CHART_STATUS,A as DEFAULT_Y_AXIS_ID,le as DEFAULT_Y_DOMAIN_TWEEN_MS,Ge as DateTicker,O as Grid,y as LineLoadingSweep,g as MarkerGroup,i as MarkerTooltipContent,Ue as PATTERN_PRESET_IDS,r as PatternArea,Be as PatternCircles,He as PatternHexagons,Ie as PatternLines,Re as PatternWaves,R as ProjectionLine,z as ProjectionLineEndMarker,Ze as ReferenceArea,te as SeriesMarkers,f as SeriesPoint,K as SeriesPointMarker,_ as SeriesTag,ue as ShimmeringText,s as StaticChartPreviewProvider,Qe as TooltipBox,$e as TooltipContent,Ke as TooltipDot,Je as TooltipIndicator,Pe as XAxis,it as YAxis,nt as Y_AXIS_DEFAULT_TICK_COUNT,rt as Y_AXIS_MAX_TICK_COUNT,tt as Y_AXIS_MIN_TICK_COUNT,ve as buildHorizontalTangentBezierPath,Te as buildProjectionPath,N as chartCssVars,we as clampHoverIndexToMaxTime,ye as clampPixelXToProjectionHoverMax,he as computeProjectionAnchorTangentSlope,Ae as computeYDomainsByAxis,F as defaultScatterColors,Se as extractProjectionLineConfigs,d as generateChartSkeletonData,k as getPrimaryYScale,G as getSeriesMarkerVisualExtent,n as getSkeletonHeights,qe as indicatorFadeGradientStops,oe as isChartInteractionPhase,ze as isCirclePattern,Ve as isCirclesPattern,Oe as isLoadingChromePhase,je as isYDomainTweenPhase,Ne as measureMaxLabelWidthPx,_e as mergeProjectionXDomainMax,pe as mergeProjectionYDomain,Ee as mergeYDomainRecords,ke as niceYDomain,Le as patternPresetTileSize,ge as projectionDateExtents,be as projectionHoverMaxBySeries,Ce as projectionHoverMaxTime,me as projectionPinnedOverlayX,xe as projectionValueExtents,Fe as renderPatternPreset,q as resolveChartMargin,ne as resolveDensityMaxLabels,ie as resolveDensityTickCount,Y as resolveRestingChartPhase,V as resolveTooltipBoxMotion,Ye as resolveVerticalFadeSides,Me as resolveYAxisMarginPx,et as resolveYAxisTickCount,De as shouldTweenYDomain,p as useActiveMarkers,v as useAnimatedYDomains,M as useChart,ee as useChartConfig,j as useChartHover,o as useChartInteraction,U as useChartLegendHover,P as useChartStable,h as useSeriesPoint,c as useStaticChartPreview,I as useYScale};
1
+ import{a as e}from"../../../_chunks/rolldown-runtime-BWaJ3C7D.js";import{t}from"../../../_chunks/react-CUaU2Z9V.js";import{S as n,_ as r,a as i,b as a,c as o,d as s,f as c,g as l,i as u,m as d,n as f,o as p,p as m,r as h,s as g,t as _,u as v,x as y}from"../../../_chunks/series-tag-B5-Cbtpg.js";import{t as b}from"../../../_chunks/compiler-runtime-B3BlmaWz.js";import{t as x}from"../../../_chunks/jsx-runtime-Dgn0yPdi.js";import{t as S}from"../../../_chunks/dist-BNSTMZct.js";import{n as C,r as w,t as T}from"../../../_chunks/animation-D8IqP_32.js";import{f as E,t as D}from"../../../_chunks/time-series-chart-shell-CwnE5_zx.js";import{t as O}from"../../../_chunks/grid-DmEGskok.js";import{i as k,t as A}from"../../../_chunks/y-axis-scales-Di1QS_P5.js";import{a as j,i as M,n as N,o as P,r as F,s as I,t as L}from"../../../_chunks/chart-context-DEIvTsqh.js";import{n as R,t as z}from"../../../_chunks/projection-line-end-marker-QD35F55G.js";import{i as ee,n as B,r as V,t as H}from"../../../_chunks/chart-config-context-BpwYTVdv.js";import{n as U,t as W}from"../../../_chunks/chart-legend-hover-BJijcIfO.js";import{i as G,n as K,t as te}from"../../../_chunks/series-markers-PiCafGdw.js";import{a as ne,i as q,n as re,o as ie,r as J,t as ae}from"../../../_chunks/chart-density-B2pG6con.js";import{a as Y,i as oe,n as se,o as ce,r as le,s as ue,t as de}from"../../../_chunks/chart-phase-BaIoHaYw.js";import{t as fe}from"../../../_chunks/chart-child-passthrough-CU3_U3Y7.js";import{a as pe,c as me,d as he,f as ge,i as _e,l as ve,n as ye,o as be,p as xe,r as Se,s as Ce,t as we,u as Te}from"../../../_chunks/projection-config-BrjUSVSl.js";import{c as Ee,f as De,i as Oe,l as ke,r as Ae,s as je}from"../../../_chunks/y-domain-utils-DBuIZ5LP.js";import{a as Me,n as Ne,t as Pe}from"../../../_chunks/x-axis-zEBQ8DnV.js";import{a as Fe,c as Ie,i as Le,l as Re,n as ze,o as Be,r as Ve,s as He,t as Ue}from"../../../_chunks/pattern-preset-CyGrTxZq.js";import{t as We}from"../../../_chunks/background-BL4j0Aup.js";import{a as Ge,i as Ke,o as qe,r as Je,s as Ye,t as Xe}from"../../../_chunks/chart-tooltip-BN_Xx-ha.js";import{t as Ze}from"../../../_chunks/reference-area-C1I15Ptt.js";import{t as Qe}from"../../../_chunks/tooltip-box-DTNmTvby.js";import{t as $e}from"../../../_chunks/tooltip-content-CEeyDbtg.js";import{a as et,i as tt,n as nt,r as rt,t as it}from"../../../_chunks/y-axis-R9BDlIer.js";import{t as X}from"../../../_chunks/area-series-AyZzEL9U.js";import{t as at}from"../../../_chunks/ParentSize-8O4qY4pg.js";var Z=b(),Q=/* @__PURE__ */ e(t(),1),$=/* @__PURE__ */ e(x(),1);const ot=/* @__PURE__ */ new Set([`LineSeriesTerminalMarker`,`SeriesPoint`,`SeriesTag`]);function st(e){let t=[];return Q.Children.forEach(e,e=>{if(!(0,Q.isValidElement)(e))return;let n=e.type,i=typeof e.type==`function`&&(n.displayName||n.name)||``,a=e.props,o=i===`PatternArea`||e.type===r,s=ot.has(i);(i===`Area`||e.type===X||a&&typeof a.dataKey==`string`&&a.dataKey.length>0&&!o&&!s)&&a?.dataKey&&t.push({dataKey:a.dataKey,stroke:a.stroke||a.fill||`var(--chart-line-primary)`,strokeWidth:a.strokeWidth||2,yAxisId:a.yAxisId})}),t}function ct(e){let t=(0,Z.c)(25),{width:n,height:r,data:i,xDataKey:a,margin:o,density:s,animationDuration:c,animationEasing:l,enterTransition:u,revealSignature:d,chartStatus:f,loadingLabel:p,yDomainTweenDuration:m,yDomainTween:h,xDomain:g,xDomainSlotCount:_,tweenYDomainOnXDomainChange:v,children:y,containerRef:b,onPhaseChange:x,clipPathId:S}=e,C;t[0]===y?C=t[1]:(C=st(y),t[0]=y,t[1]=C);let w=C,T;return t[2]!==c||t[3]!==l||t[4]!==f||t[5]!==y||t[6]!==S||t[7]!==b||t[8]!==i||t[9]!==s||t[10]!==u||t[11]!==r||t[12]!==w||t[13]!==p||t[14]!==o||t[15]!==x||t[16]!==d||t[17]!==v||t[18]!==n||t[19]!==a||t[20]!==g||t[21]!==_||t[22]!==h||t[23]!==m?(T=/* @__PURE__ */ (0,$.jsx)(D,{animationDuration:c,animationEasing:l,chartStatus:f,clipPathId:S,containerRef:b,data:i,enterTransition:u,height:r,lines:w,loadingLabel:p,density:s,margin:o,onPhaseChange:x,revealSignature:d,tweenYDomainOnXDomainChange:v,width:n,xDataKey:a,xDomain:g,xDomainSlotCount:_,yDomainTween:h,yDomainTweenDuration:m,children:y}),t[2]=c,t[3]=l,t[4]=f,t[5]=y,t[6]=S,t[7]=b,t[8]=i,t[9]=s,t[10]=u,t[11]=r,t[12]=w,t[13]=p,t[14]=o,t[15]=x,t[16]=d,t[17]=v,t[18]=n,t[19]=a,t[20]=g,t[21]=_,t[22]=h,t[23]=m,t[24]=T):T=t[24],T}function lt(e){let t=(0,Z.c)(44),{data:n,xDataKey:r,density:i,margin:a,animationDuration:o,animationEasing:s,enterTransition:c,revealSignature:l,aspectRatio:u,className:d,status:f,loadingLabel:p,yDomainTweenDuration:m,yDomainTween:h,xDomain:g,xDomainSlotCount:_,tweenYDomainOnXDomainChange:v,style:y,onPhaseChange:b,children:x}=e,C=r===void 0?`date`:r,w=i===void 0?J:i,T=o===void 0?1100:o,E=u===void 0?`2 / 1`:u,D=d===void 0?``:d,O=f===void 0?se:f,k=m===void 0?500:m,A=h===void 0||h,j=v!==void 0&&v,M=(0,Q.useId)(),N;if(t[0]!==M){let e;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=/:/g,t[2]=e):e=t[2],N=M.replace(e,``),t[0]=M,t[1]=N}else N=t[1];let P=`chart-area-grow-clip-${N}`,F=(0,Q.useRef)(null),I;t[3]!==w||t[4]!==a?(I=q(w,a),t[3]=w,t[4]=a,t[5]=I):I=t[5];let L=I,R;t[6]===O?R=t[7]:(R=()=>Y(O),t[6]=O,t[7]=R);let[z,ee]=(0,Q.useState)(R),B;t[8]!==z||t[9]!==p?(B=p?.trim()&&(z===`loading`||z===`exiting`||z===`gridTweenReady`||z===`revealingLoading`),t[8]=z,t[9]=p,t[10]=B):B=t[10];let V=!!B,H;t[11]===D?H=t[12]:(H=S(`relative w-full`,D),t[11]=D,t[12]=H);let U;t[13]!==E||t[14]!==y?(U={aspectRatio:E,touchAction:`none`,...y},t[13]=E,t[14]=y,t[15]=U):U=t[15];let W;t[16]!==T||t[17]!==s||t[18]!==x||t[19]!==P||t[20]!==n||t[21]!==w||t[22]!==c||t[23]!==p||t[24]!==L||t[25]!==b||t[26]!==l||t[27]!==O||t[28]!==j||t[29]!==C||t[30]!==g||t[31]!==_||t[32]!==A||t[33]!==k?(W=/* @__PURE__ */ (0,$.jsx)(at,{debounceTime:10,children:e=>{let{width:t,height:r}=e;return/* @__PURE__ */ (0,$.jsx)(ct,{animationDuration:T,animationEasing:s,chartStatus:O,containerRef:F,data:n,enterTransition:c,height:r,loadingLabel:p,density:w,margin:L,onPhaseChange:e=>{ee(e),b?.(e)},revealSignature:l,tweenYDomainOnXDomainChange:j,width:t,xDataKey:C,xDomain:g,xDomainSlotCount:_,yDomainTween:A,yDomainTweenDuration:k,clipPathId:P,children:x})}}),t[16]=T,t[17]=s,t[18]=x,t[19]=P,t[20]=n,t[21]=w,t[22]=c,t[23]=p,t[24]=L,t[25]=b,t[26]=l,t[27]=O,t[28]=j,t[29]=C,t[30]=g,t[31]=_,t[32]=A,t[33]=k,t[34]=W):W=t[34];let G;t[35]!==z||t[36]!==p||t[37]!==V?(G=V?/* @__PURE__ */ (0,$.jsx)(ce,{exiting:z!==`loading`,text:p}):null,t[35]=z,t[36]=p,t[37]=V,t[38]=G):G=t[38];let K;return t[39]!==H||t[40]!==U||t[41]!==W||t[42]!==G?(K=/* @__PURE__ */ (0,$.jsxs)(`div`,{className:H,ref:F,style:U,children:[W,G]}),t[39]=H,t[40]=U,t[41]=W,t[42]=G,t[43]=K):K=t[43],K}const ut=m;function dt(e){let t=(0,Z.c)(19),{margin:n,stroke:r,strokeOpacity:i,gridStroke:a,gridShimmerStroke:o,gridShimmer:s,gridShimmerLength:c,gridShimmerSpeed:l,gridShimmerSync:u,loadingStyle:f,label:p,aspectRatio:h,className:g}=e,_=r===void 0?`var(--chart-foreground)`:r,v=i===void 0?.5:i,y=a===void 0?`color-mix(in oklch, var(--chart-grid) 50%, transparent)`:a,b=o===void 0?`color-mix(in oklch, var(--chart-foreground) 68%, transparent)`:o,x=s===void 0||s,S=u!==void 0&&u,C=f===void 0?`pulse`:f,w=p===void 0?`Loading`:p,T=h===void 0?`2 / 1`:h,D=g===void 0?``:g,k;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(k=d({dataKey:m,pointCount:7}),t[0]=k):k=t[0];let A=k,j=C!==`sweep`&&x,M;t[1]!==c||t[2]!==l||t[3]!==b||t[4]!==S||t[5]!==y||t[6]!==j?(M=/* @__PURE__ */ (0,$.jsx)(O,{horizontal:!0,shimmer:j,shimmerLength:c,shimmerSpeed:l,shimmerStroke:b,shimmerSync:S,stroke:y}),t[1]=c,t[2]=l,t[3]=b,t[4]=S,t[5]=y,t[6]=j,t[7]=M):M=t[7];let N;t[8]!==C||t[9]!==_||t[10]!==v?(N=/* @__PURE__ */ (0,$.jsx)(X,{curve:E,dataKey:ut,fadeEdges:!1,fill:`transparent`,fillOpacity:0,loading:!0,loadingStroke:_,loadingStrokeOpacity:v,loadingStyle:C,showHighlight:!1,showLine:!0,stroke:`transparent`,strokeWidth:2}),t[8]=C,t[9]=_,t[10]=v,t[11]=N):N=t[11];let P;return t[12]!==T||t[13]!==D||t[14]!==w||t[15]!==n||t[16]!==M||t[17]!==N?(P=/* @__PURE__ */ (0,$.jsxs)(lt,{animationDuration:0,aspectRatio:T,className:D,data:A,loadingLabel:w,margin:n,status:`loading`,children:[M,N]}),t[12]=T,t[13]=D,t[14]=w,t[15]=n,t[16]=M,t[17]=N,t[18]=P):P=t[18],P}export{X as Area,lt as AreaChart,dt as AreaChartLoading,We as Background,a as BarLoadingSkeleton,fe as CHART_CLIP_PASSTHROUGH,ae as CHART_DENSITY,re as CHART_DENSITY_IDS,H as ChartConfigProvider,W as ChartLegendHoverProvider,ce as ChartLoadingLabel,u as ChartMarkers,L as ChartProvider,l as ChartRevealClip,Xe as ChartTooltip,T as DEFAULT_ANIMATION_DURATION_MS,C as DEFAULT_ANIMATION_EASING,B as DEFAULT_CHART_CONFIG,J as DEFAULT_CHART_DENSITY,w as DEFAULT_CHART_ENTER_TRANSITION,de as DEFAULT_CHART_LIFECYCLE,se as DEFAULT_CHART_STATUS,A as DEFAULT_Y_AXIS_ID,le as DEFAULT_Y_DOMAIN_TWEEN_MS,Ge as DateTicker,O as Grid,y as LineLoadingSweep,g as MarkerGroup,i as MarkerTooltipContent,Ue as PATTERN_PRESET_IDS,r as PatternArea,Be as PatternCircles,He as PatternHexagons,Ie as PatternLines,Re as PatternWaves,R as ProjectionLine,z as ProjectionLineEndMarker,Ze as ReferenceArea,te as SeriesMarkers,f as SeriesPoint,K as SeriesPointMarker,_ as SeriesTag,ue as ShimmeringText,s as StaticChartPreviewProvider,Qe as TooltipBox,$e as TooltipContent,Ke as TooltipDot,Je as TooltipIndicator,Pe as XAxis,it as YAxis,nt as Y_AXIS_DEFAULT_TICK_COUNT,rt as Y_AXIS_MAX_TICK_COUNT,tt as Y_AXIS_MIN_TICK_COUNT,ve as buildHorizontalTangentBezierPath,Te as buildProjectionPath,N as chartCssVars,we as clampHoverIndexToMaxTime,ye as clampPixelXToProjectionHoverMax,he as computeProjectionAnchorTangentSlope,Ae as computeYDomainsByAxis,F as defaultScatterColors,Se as extractProjectionLineConfigs,d as generateChartSkeletonData,k as getPrimaryYScale,G as getSeriesMarkerVisualExtent,n as getSkeletonHeights,qe as indicatorFadeGradientStops,oe as isChartInteractionPhase,ze as isCirclePattern,Ve as isCirclesPattern,Oe as isLoadingChromePhase,je as isYDomainTweenPhase,Ne as measureMaxLabelWidthPx,_e as mergeProjectionXDomainMax,pe as mergeProjectionYDomain,Ee as mergeYDomainRecords,ke as niceYDomain,Le as patternPresetTileSize,ge as projectionDateExtents,be as projectionHoverMaxBySeries,Ce as projectionHoverMaxTime,me as projectionPinnedOverlayX,xe as projectionValueExtents,Fe as renderPatternPreset,q as resolveChartMargin,ne as resolveDensityMaxLabels,ie as resolveDensityTickCount,Y as resolveRestingChartPhase,V as resolveTooltipBoxMotion,Ye as resolveVerticalFadeSides,Me as resolveYAxisMarginPx,et as resolveYAxisTickCount,De as shouldTweenYDomain,p as useActiveMarkers,v as useAnimatedYDomains,M as useChart,ee as useChartConfig,j as useChartHover,o as useChartInteraction,U as useChartLegendHover,P as useChartStable,h as useSeriesPoint,c as useStaticChartPreview,I as useYScale};
@@ -1 +1 @@
1
- import{a as e}from"../../../_chunks/rolldown-runtime-BWaJ3C7D.js";import{t}from"../../../_chunks/react-CUaU2Z9V.js";import{S as n,_ as r,a as i,b as a,c as o,d as s,f as c,g as l,i as u,l as d,m as f,n as p,o as m,r as h,s as g,t as _,u as v,v as y,x as b,y as x}from"../../../_chunks/series-tag-Bg1kAB-R.js";import{t as S}from"../../../_chunks/compiler-runtime-B3BlmaWz.js";import{t as C}from"../../../_chunks/jsx-runtime-Dgn0yPdi.js";import{t as w}from"../../../_chunks/dist-BNSTMZct.js";import{a as T,n as E,r as D}from"../../../_chunks/Tooltip-CZ9gmT5S.js";import{n as O}from"../../../_chunks/react-B3hSlcN2.js";import{t as k}from"../../../_chunks/use-reduced-motion-CNBdBisf.js";import{t as A}from"../../../_chunks/react-dom-BoXJ8nUa.js";import{n as j,r as M,t as N}from"../../../_chunks/animation-D8IqP_32.js";import{t as P}from"../../../_chunks/band-CBxHE99X.js";import{n as F,t as I}from"../../../_chunks/linear-CCtfjCEb.js";import{t as L}from"../../../_chunks/grid-DmEGskok.js";import{i as R,n as z,o as B,s as ee,t as V}from"../../../_chunks/y-axis-scales-Di1QS_P5.js";import{a as te,i as H,n as ne,o as U,r as W,s as re,t as G}from"../../../_chunks/chart-context-DEIvTsqh.js";import{n as ie,t as K}from"../../../_chunks/projection-line-end-marker-QD35F55G.js";import{i as q,n as J,r as Y,t as ae}from"../../../_chunks/chart-config-context-BpwYTVdv.js";import{n as oe,t as se}from"../../../_chunks/chart-legend-hover-BJijcIfO.js";import{i as ce,n as le,t as ue}from"../../../_chunks/series-markers-PiCafGdw.js";import{a as de,t as fe}from"../../../_chunks/chart-formatters-C23Gt1wa.js";import{a as pe,i as me,n as X,o as he,r as ge,t as _e}from"../../../_chunks/chart-density-B2pG6con.js";import{a as ve,i as ye,n as be,o as xe,r as Se,s as Ce,t as we}from"../../../_chunks/chart-phase-BaIoHaYw.js";import{a as Te,c as Ee,i as De,n as Oe,o as ke,r as Ae,s as je,t as Me}from"../../../_chunks/chart-child-passthrough-CU3_U3Y7.js";import{a as Ne,c as Pe,d as Fe,f as Ie,i as Le,l as Re,n as ze,o as Be,p as Ve,r as He,s as Ue,t as We,u as Ge}from"../../../_chunks/projection-config-BrjUSVSl.js";import{c as Ke,d as qe,f as Je,i as Ye,l as Xe,n as Ze,r as Qe,s as $e,t as et}from"../../../_chunks/y-domain-utils-DBuIZ5LP.js";import{t as tt}from"../../../_chunks/localPoint-BuWgV2HG.js";import{a as nt,i as rt,n as it,o as at,t as ot}from"../../../_chunks/x-axis-zEBQ8DnV.js";import{a as st,c as ct,i as lt,l as ut,n as dt,o as ft,r as pt,s as mt,t as ht}from"../../../_chunks/pattern-preset-CyGrTxZq.js";import{t as gt}from"../../../_chunks/background-BL4j0Aup.js";import{a as _t,i as vt,n as yt,o as bt,r as xt,s as St,t as Ct}from"../../../_chunks/chart-tooltip-BN_Xx-ha.js";import{t as wt}from"../../../_chunks/reference-area-C1I15Ptt.js";import{t as Tt}from"../../../_chunks/tooltip-box-DTNmTvby.js";import{t as Et}from"../../../_chunks/tooltip-content-CEeyDbtg.js";import{a as Dt,i as Ot,n as kt,r as At,t as jt}from"../../../_chunks/y-axis-R9BDlIer.js";import{n as Mt,t as Nt}from"../../../_chunks/chart-defs-DZc-Ynt6.js";import{t as Pt}from"../../../_chunks/reference-area-config-BIi3r2Ui.js";import{t as Ft}from"../../../_chunks/ParentSize-8O4qY4pg.js";import{t as It}from"../../../_chunks/motion-utils-FSUhZgF9.js";const Lt=F(`domain`,`range`,`reverse`,`align`,`padding`,`round`);function Rt(e){return Lt(P(),e)}function zt(e,t){let n=Math.max(0,e-t);return Math.min(t*.22,Math.max(0,n-1),7)}function Bt(e,t,n){let r=Math.min(1,Math.max(0,e))*Math.min(n,Math.max(0,t));return{depth:r,perspectiveRise:r*.45}}var Z=S(),Q=/* @__PURE__ */ e(t(),1),$=/* @__PURE__ */ e(C(),1);function Vt(e,t,n,r,i,a,o){let s=r/2;if(s<=0)return 0;let c=zt(e.step?.()??t,t),l=(e(n(i))??0)+t/2;return Bt(Math.min(1,Math.abs((l-s)/s)),Math.abs(o-a),c).perspectiveRise}function Ht(e){let t=(0,Z.c)(41),{x:n,y:r,width:i,height:a,fill:o,rx:s,ry:c,index:l,isFaded:u,animationType:d,growFromY:f,fadedOpacity:p,staggerDelay:m,startDelay:h,enterTransition:g,revealEpoch:_,isHorizontal:v}=e,y=h+l*m,b;t[0]!==g||t[1]!==y?(b=It(g,y),t[0]=g,t[1]=y,t[2]=b):b=t[2];let x=b;if(d===`fade`){let e=u?p:1,d;t[3]===e?d=t[4]:(d={opacity:e,filter:`blur(0px)`},t[3]=e,t[4]=d);let f;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(f={opacity:0,filter:`blur(2px)`},t[5]=f):f=t[5];let m=`fade-${l}-${_}`,h;return t[6]!==x||t[7]!==o||t[8]!==a||t[9]!==s||t[10]!==c||t[11]!==d||t[12]!==m||t[13]!==i||t[14]!==n||t[15]!==r?(h=/* @__PURE__ */ (0,$.jsx)(O.rect,{animate:d,fill:o,height:a,initial:f,rx:s,ry:c,transition:x,width:i,x:n,y:r},m),t[6]=x,t[7]=o,t[8]=a,t[9]=s,t[10]=c,t[11]=d,t[12]=m,t[13]=i,t[14]=n,t[15]=r,t[16]=h):h=t[16],h}let S;t[17]!==f||t[18]!==a||t[19]!==v||t[20]!==i||t[21]!==n||t[22]!==r?(S=v?{width:0,height:a,x:n,y:r}:{width:i,height:0,x:n,y:f},t[17]=f,t[18]=a,t[19]=v,t[20]=i,t[21]=n,t[22]=r,t[23]=S):S=t[23];let C=S,w;t[24]!==a||t[25]!==i||t[26]!==n||t[27]!==r?(w={width:i,height:a,x:n,y:r},t[24]=a,t[25]=i,t[26]=n,t[27]=r,t[28]=w):w=t[28];let T=w,E=u?p:1,D;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(D={transition:`opacity 0.15s ease-in-out`},t[29]=D):D=t[29];let k=`grow-${l}-${_}`,A;t[30]!==x||t[31]!==o||t[32]!==C||t[33]!==s||t[34]!==c||t[35]!==k||t[36]!==T?(A=/* @__PURE__ */ (0,$.jsx)(O.rect,{animate:T,fill:o,initial:C,rx:s,ry:c,transition:x},k),t[30]=x,t[31]=o,t[32]=C,t[33]=s,t[34]=c,t[35]=k,t[36]=T,t[37]=A):A=t[37];let j;return t[38]!==E||t[39]!==A?(j=/* @__PURE__ */ (0,$.jsx)(`g`,{opacity:E,style:D,children:A}),t[38]=E,t[39]=A,t[40]=j):j=t[40],j}function Ut(e,t){if(!t)return;let n=e[t];return typeof n==`number`?n:void 0}const Wt=(0,Q.memo)(function(e){let t=(0,Z.c)(82),{dataKey:n,baseDataKey:r,yAxisId:i,fill:a,lineCap:o,innerLineCap:s,animate:c,animationType:l,fadedOpacity:u,staggerDelay:d,stackGap:f,groupGap:p,perspective:m,minBarHeight:h,showValueLabels:g,valueLabelFormatter:_,valueLabelFill:v,valueLabelGap:y,valueLabelClassName:b,valueLabelPlacement:x,valueLabelInsideFill:S,deferValueLabels:C,barScale:w,bandWidth:T,barXAccessor:E}=e,D=a===void 0?ne.linePrimary:a,O=o===void 0?`round`:o,k=c===void 0||c,A=l===void 0?`grow`:l,j=u===void 0?.3:u,M=p===void 0?4:p,N=m!==void 0&&m,P=h===void 0?0:h,F=g!==void 0&&g,I=v===void 0?ne.label:v,L=y===void 0?8:y,R=x===void 0?`auto`:x,z=C!==void 0&&C,{data:B,yScale:ee,innerHeight:V,innerWidth:te,isLoaded:U,hoveredBarIndex:W,lines:G,orientation:ie,stacked:K,stackOffsets:q,stackGap:J,animationDuration:Y,animationDelay:ae,enterTransition:se,revealEpoch:ce}=H(),le=J===void 0?0:J,ue=ae===void 0?0:ae,de=ce===void 0?0:ce,fe=(Y||1100)*.4,pe=d??(B.length>1?fe/1e3/B.length:0),me=(0,Q.useId)(),X=ie===`horizontal`,he=f??le,{hoveredIndex:ge}=oe(),_e;if(t[0]!==n||t[1]!==G){let e;t[3]===n?e=t[4]:(e=e=>e.dataKey===n,t[3]=n,t[4]=e),_e=G.findIndex(e),t[0]=n,t[1]=G,t[2]=_e}else _e=t[2];let ve=Math.max(0,_e),ye=G[ve],be=re(i??ye?.yAxisId),xe=ge!==null&&ge!==ve,Se=G.length,Ce=ve===Se-1,we;bb0:{if(!T||Se===0){let e;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(e={barWidth:0,gap:0},t[5]=e):e=t[5],we=e;break bb0}if(K){let e;t[6]===T?e=t[7]:(e={barWidth:T,gap:0},t[6]=T,t[7]=e),we=e;break bb0}let e;t[8]!==T||t[9]!==M||t[10]!==Se?(e=yt(T,Se,M),t[8]=T,t[9]=M,t[10]=Se,t[11]=e):e=t[11],we=e}let{barWidth:Te,gap:Ee}=we,De;bb1:{if(N){De=0;break bb1}if(typeof O==`number`){De=O;break bb1}if(O===`round`&&Te){De=Math.min(Te/2,8);break bb1}De=0}let Oe=De,ke;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(ke=/* @__PURE__ */ new Map,t[12]=ke):ke=t[12];let Ae=(0,Q.useRef)(ke),[je,Me]=(0,Q.useState)(Kt),Ne;t[13]!==je||t[14]!==R?(Ne=()=>{if(R!==`fit`)return;let e=/* @__PURE__ */ new Map,t=!1;for(let[n,r]of Ae.current){let i=r.getComputedTextLength();e.set(n,i),je.get(n)!==i&&(t=!0)}(t||e.size!==je.size)&&Me(e)},t[13]=je,t[14]=R,t[15]=Ne):Ne=t[15],(0,Q.useLayoutEffect)(Ne);let Pe=K&&Oe>0&&(he===0||K&&he>0&&s!=null),Fe=he===0?0:Math.max(0,s??Oe),Ie;if(t[16]!==me){let e;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(e=/:/g,t[18]=e):e=t[18],Ie=me.replace(e,``),t[16]=me,t[17]=Ie}else Ie=t[17];let Le=`bar-stack-clip-${Ie}`,Re,ze;if(t[19]!==w||t[20]!==Te||t[21]!==E||t[22]!==ee||t[23]!==Oe||t[24]!==B||t[25]!==X||t[26]!==Pe||t[27]!==G||t[28]!==Le||t[29]!==me||t[30]!==be){let e=Pe?B.map(e=>{let t=0,n=0,r=0;for(let i of G){let a=e[i.dataKey];typeof a==`number`&&(t+=a,n=Math.min(n,t),r=Math.max(r,t))}let i=w(E(e))??0,a=X?ee:be,o=a(n)??0,s=a(r)??o;return X?{x:Math.min(o,s),y:i,width:Math.abs(s-o),height:Te}:{x:i,y:Math.min(o,s),width:Te,height:Math.abs(s-o)}}):[];Re=`bar-series-${me}`,ze=Pe?/* @__PURE__ */ (0,$.jsx)(`defs`,{children:e.map((e,t)=>/* @__PURE__ */ (0,$.jsx)(`clipPath`,{id:`${Le}-${t}`,children:/* @__PURE__ */ (0,$.jsx)(`rect`,{...e,rx:Oe,ry:Oe})},`${Le}-${t}`))}):null,t[19]=w,t[20]=Te,t[21]=E,t[22]=ee,t[23]=Oe,t[24]=B,t[25]=X,t[26]=Pe,t[27]=G,t[28]=Le,t[29]=me,t[30]=be,t[31]=Re,t[32]=ze}else Re=t[31],ze=t[32];let Be;t[33]!==k||t[34]!==ue||t[35]!==A||t[36]!==T||t[37]!==w||t[38]!==Te||t[39]!==E||t[40]!==r||t[41]!==pe||t[42]!==ee||t[43]!==Oe||t[44]!==B||t[45]!==n||t[46]!==z||t[47]!==Ee||t[48]!==se||t[49]!==j||t[50]!==D||t[51]!==W||t[52]!==V||t[53]!==te||t[54]!==X||t[55]!==Ce||t[56]!==xe||t[57]!==U||t[58]!==Pe||t[59]!==je||t[60]!==P||t[61]!==N||t[62]!==de||t[63]!==Le||t[64]!==Fe||t[65]!==ve||t[66]!==F||t[67]!==he||t[68]!==q||t[69]!==K||t[70]!==b||t[71]!==I||t[72]!==_||t[73]!==L||t[74]!==S||t[75]!==R||t[76]!==be?(Be=B.map((e,t)=>{let i=e[n];if(typeof i!=`number`)return null;let a=E(e),o=w(a)??0,s,c,l,u,d=X?ee:be,f=Ut(e,r)??0,p=r!==void 0;if(X){if(l=Te,K&&q){let e=q.get(t)?.get(n)??0,r=d(e)??0,a=d(e+i)??r;s=Math.min(r,a),u=Math.abs(a-r),!Ce&&he>0&&(u=Math.max(0,u-he))}else{let e=d(f)??0,t=d(i)??e;s=Math.min(e,t),u=Math.abs(t-e)}c=K?o:o+ve*(Te+Ee)}else{let r=d(f)??V,a=d(i)??r;if(u=Te,K&&q){let e=q.get(t)?.get(n)??0,r=d(e)??V,a=d(e+i)??r;c=Math.min(r,a),l=Math.abs(a-r),!Ce&&he>0&&(l=Math.max(0,l-he),a<r&&(c+=he))}else c=Math.min(r,a),l=Math.abs(a-r);s=K?o:o+ve*(Te+Ee);let m=!1;if(!K&&!p&&P>0&&i>=0&&l<P){let e=d(0)??V;l=P,c=e-P,m=!0}if(N&&i>0&&!m&&(!K||Ce)){let t=d(0)??V,n=Vt(w,T,E,te,e,c,t),r=Math.min(n,Math.max(0,l-1));c+=r,l-=r}}let m=W!==null&&W!==t||xe,h=`bar-${n}-${a}`,g=Pe?Fe:Oe,v=Pe?Fe:Oe,y=typeof D==`function`?D(e,t):D,x=k&&!U?/* @__PURE__ */ (0,$.jsx)(Ht,{animationType:A,enterTransition:se,fadedOpacity:j,fill:y,growFromY:X?c:be(f)??V,height:l,index:t,isFaded:m,isHorizontal:X,revealEpoch:de,rx:g,ry:v,staggerDelay:pe,startDelay:ue/1e3,width:u,x:s,y:c}):/* @__PURE__ */ (0,$.jsx)(`rect`,{fill:y,height:l,opacity:m?j:1,rx:g,ry:v,style:{cursor:`default`,transition:`opacity 0.15s ease-in-out`},width:u,x:s,y:c}),C=Pe?/* @__PURE__ */ (0,$.jsx)(`g`,{clipPath:`url(#${Le}-${t})`,children:x}):x;if(!F)return/* @__PURE__ */ (0,$.jsx)(Q.Fragment,{children:C},h);let O=_?_(i,e,t):String(i),M=je.get(h)??0,B=R!==`fit`||M<=0||s+u+L+M<=te,H=X&&(R===`inside`||R===`fit`&&!B),ne=typeof I==`function`?I(e,t):I,re=typeof S==`function`?S(e,t):S??ne,G=H?re:ne,ie=X?H?s+u-L:s+u+L:s+u/2,J=!X&&R===`auto`&&i<0&&!p,Y=X?c+l/2:J?c+l+L:c-L;return/* @__PURE__ */ (0,$.jsxs)(Q.Fragment,{children:[C,/* @__PURE__ */ (0,$.jsx)(`text`,{className:b,dominantBaseline:X?`central`:J?`hanging`:`auto`,fill:G,opacity:z?void 0:m?j:1,style:z?{opacity:U?m?j:1:0,transition:`opacity 280ms ease`}:void 0,ref:e=>{e?Ae.current.set(h,e):Ae.current.delete(h)},textAnchor:X?H?`end`:`start`:`middle`,x:ie,y:Y,children:O})]},h)}),t[33]=k,t[34]=ue,t[35]=A,t[36]=T,t[37]=w,t[38]=Te,t[39]=E,t[40]=r,t[41]=pe,t[42]=ee,t[43]=Oe,t[44]=B,t[45]=n,t[46]=z,t[47]=Ee,t[48]=se,t[49]=j,t[50]=D,t[51]=W,t[52]=V,t[53]=te,t[54]=X,t[55]=Ce,t[56]=xe,t[57]=U,t[58]=Pe,t[59]=je,t[60]=P,t[61]=N,t[62]=de,t[63]=Le,t[64]=Fe,t[65]=ve,t[66]=F,t[67]=he,t[68]=q,t[69]=K,t[70]=b,t[71]=I,t[72]=_,t[73]=L,t[74]=S,t[75]=R,t[76]=be,t[77]=Be):Be=t[77];let Ve;return t[78]!==Re||t[79]!==ze||t[80]!==Be?(Ve=/* @__PURE__ */ (0,$.jsxs)(`g`,{className:Re,children:[ze,Be]}),t[78]=Re,t[79]=ze,t[80]=Be,t[81]=Ve):Ve=t[81],Ve});function Gt(e){let t=(0,Z.c)(5),{barScale:n,bandWidth:r,barXAccessor:i}=U();if(!(n&&r&&i))return console.warn(`Bar component must be used within a BarChart`),null;let a;return t[0]!==r||t[1]!==n||t[2]!==i||t[3]!==e?(a=/* @__PURE__ */ (0,$.jsx)(Wt,{...e,bandWidth:r,barScale:n,barXAccessor:i}),t[0]=r,t[1]=n,t[2]=i,t[3]=e,t[4]=a):a=t[4],a}Gt.displayName=`Bar`;function Kt(){return/* @__PURE__ */ new Map}function qt({barLengthPx:e,squareSize:t,gap:n,fit:r=!1}){if(e<=0||t<=0)return{count:0,positions:[],columnHeight:0,squareSize:t,gap:n};if(r){let r=Math.max(1,Math.floor((e+n)/(t+n))),i=r>1?Math.max(0,(e-r*t)/(r-1)):0,a=t+i,o=e,s=[];for(let e=0;e<r;e++)s.push(o-t-e*a);return{count:r,positions:s,columnHeight:o,squareSize:t,gap:i}}let i=t+n,a=Math.max(1,Math.round(e/i)),o=a*t+Math.max(0,a-1)*n,s=[];for(let e=0;e<a;e++){let n=e*i;s.push(o-t-n)}return{count:a,positions:s,columnHeight:o,squareSize:t,gap:n}}function Jt({baselineY:e,barLengthPx:t,squareSize:n,gap:r,fit:i=!1}){let{count:a,squareSize:o,columnHeight:s}=qt({barLengthPx:t,squareSize:n,gap:r,fit:i});return a===0?e:e-s+o/2}function Yt(e,t,n,r){return e===`loading`&&t!==`loading`&&n===`fade`&&r===!1}function Xt(e){let t=[];return Oe(e,e=>{let n=e.type;if(n.__isBarDepthLayer)return;let r=typeof e.type==`function`&&(n.displayName||n.name)||``,i=e.props;if((r===`Bar`||r===`BarSquares`||i&&typeof i.dataKey==`string`&&i.dataKey.length>0)&&i?.dataKey){let e=typeof i.fill==`string`?i.fill:void 0,n=i.stroke||e||`var(--chart-line-primary)`;t.push({dataKey:i.dataKey,stroke:n,strokeWidth:0,yAxisId:i.yAxisId,baseDataKey:i.baseDataKey})}}),t}function Zt(e){let t=(0,Z.c)(2),{width:n,height:r}=e;if(n<10||r<10)return null;let i;return t[0]===e?i=t[1]:(i=/* @__PURE__ */ (0,$.jsx)(Qt,{...e}),t[0]=e,t[1]=i),i}const Qt=(0,Q.memo)(function({width:e,height:t,data:n,xDataKey:r,margin:i,density:o,animationDuration:s,animationDelay:c,animationEasing:l,enterTransition:u,revealSignature:f=``,barGap:p,barWidthProp:m,barAlign:h,orientation:g,loadingSkeletonOrientation:_,loadingExit:v,maxValue:b,stacked:S,stackGap:C,squareSnap:w,children:T,containerRef:E,onPhaseChange:D,status:O}){let{tooltipData:A,setTooltipData:j,scheduleTooltip:M,clearTooltip:N}=d(),[P,F]=(0,Q.useState)(!1),[L,V]=(0,Q.useState)(0),te=A?.index??null,H=k(),[ne,U]=(0,Q.useState)(O),[W,re]=(0,Q.useState)(!1);O!==ne&&(U(O),re(Yt(ne,O,v,H))),W&&H===!0&&re(!1),(0,Q.useEffect)(()=>{if(!W)return;let e=setTimeout(()=>re(!1),x);return()=>clearTimeout(e)},[W]);let ie=O===`loading`||W,K=g===`horizontal`,q=(0,Q.useMemo)(()=>Xt(T),[T]),J=e-i.left-i.right,Y=t-i.top-i.bottom,ae=(0,Q.useCallback)(e=>{let t=e[r];return t instanceof Date?de.format(t):String(t)},[r]),oe=(0,Q.useCallback)(e=>{let t=e[r];return t instanceof Date?t:/* @__PURE__ */ new Date},[r]),se=n.map(e=>ae(e)),ce=Rt({range:K?[0,Y]:[0,J],domain:se,padding:p}),le=h===`center`&&m!=null?(()=>{let e=(ce.bandwidth()-m)/2;return e>0?Object.assign(t=>{let n=ce(t);return n===void 0?void 0:n+e},ce):ce})():ce,ue=m??le.bandwidth(),fe=_===`match`&&K&&n.length>0?se.map(e=>({y:le(e)??0,thickness:ue})):void 0,pe=(0,Q.useMemo)(()=>{let e=S?Ze(n,q):et(n,q);return qe(e,b)},[n,q,S,b]),me=(0,Q.useMemo)(()=>I({range:K?[0,J]:[Y,0],domain:pe,nice:b===void 0}),[J,Y,K,b,pe]),X=(0,Q.useMemo)(()=>K?ee(me):z({lines:q,data:n,innerHeight:Y,resolveDomain:e=>{let t=q.filter(t=>e.includes(t.dataKey)),r=S?Ze(n,t):et(n,t);return qe(r,b)}}),[n,Y,K,q,b,S,me]),he=R(X,me),ge=(0,Q.useMemo)(()=>{if(!S)return;let e=/* @__PURE__ */ new Map;for(let t=0;t<n.length;t++){let r=n[t];if(!r)continue;let i=/* @__PURE__ */ new Map,a=0;for(let e of q){i.set(e.dataKey,a);let t=r[e.dataKey];typeof t==`number`&&(a+=t)}e.set(t,i)}return e},[n,q,S]),_e=(0,Q.useMemo)(()=>n.length<1?0:K?Y/n.length:J/n.length,[J,Y,n.length,K]),ye=(0,Q.useMemo)(()=>n.map(e=>ae(e)),[n,ae]),be=(0,Q.useMemo)(()=>{let e=Date.now(),t=e-n.length*24*60*60*1e3,r={...le,domain:()=>[new Date(t),new Date(e)],range:()=>[0,J],invert:n=>new Date(t+n/J*(e-t)),copy:()=>r};return r},[le,J,n.length]);(0,Q.useEffect)(()=>{if(V(e=>e+1),F(!1),O===`loading`)return;let e=n.length>1?s*.4:0,t=setTimeout(()=>{F(!0)},c+s+e);return()=>clearTimeout(t)},[c,s,f,O]),(0,Q.useEffect)(()=>{D?.(P?`ready`:`revealing`)},[P,D]);let xe=(0,Q.useCallback)(e=>{let t=tt(e);if(!t)return;let r=K?t.y-i.top:t.x-i.left,a=Math.floor(r/_e),o=Math.max(0,Math.min(n.length-1,a)),s=n[o];if(!s)return;let c={},l={},u=le(ae(s))??0;if(K){let e=q.length,{barWidth:t,gap:n}=yt(ue,e,4);if(S){let e=0;for(let t of q){let n=s[t.dataKey];if(typeof n==`number`){e+=n;let r=X[B(t.yAxisId)]??me;l[t.dataKey]=r(e)??0,c[t.dataKey]=u+ue/2}}}else q.forEach((e,r)=>{let i=s[e.dataKey];if(typeof i==`number`){let a=X[B(e.yAxisId)]??me;l[e.dataKey]=a(i)??0,c[e.dataKey]=u+r*(t+n)+t/2}})}else if(S){let e=0;q.forEach((t,n)=>{let r=s[t.dataKey];if(typeof r!=`number`)return;e+=r;let i=(X[B(t.yAxisId)]??he)(e)??0,a=n===q.length-1;c[t.dataKey]=!a&&C>0&&r>=0?i+C:i})}else{let e=q.length,{barWidth:t,gap:n}=yt(ue,e,4);q.forEach((e,r)=>{let i=s[e.dataKey];if(typeof i==`number`){let a=X[B(e.yAxisId)]??he,o=a(0)??Y,s=a(i)??0,d=o-s;w&&!K&&i>0?c[e.dataKey]=Jt({baselineY:o,barLengthPx:d,squareSize:t,gap:w.squareGap,fit:w.fit}):c[e.dataKey]=s,l[e.dataKey]=u+r*(t+n)+t/2}})}let d;d=K?Math.max(...Object.values(l),0):u+ue/2,M({point:s,index:o,x:d,yPositions:c,xPositions:Object.keys(l).length>0?l:void 0})},[le,me,n,q,i.left,i.top,ae,_e,ue,K,S,C,M,X,he,w,Y]),Se=(0,Q.useCallback)(()=>{N()},[N]),Ce=P,Me=[],Ne=[],Pe=[],Fe=[],Ie=[];Oe(T,e=>{let t=Ee(e);Nt(e)?Me.push(e):Mt(e)?Fe.push(e):Te(t)?Ie.push(t):De(t)?Ne.push(Ae(e.type)?t:e):ke(t)?Pe.push(t):Fe.push(e)});let Le=(0,Q.useMemo)(()=>Pt(T),[T]),Re={...we,chartPhase:ve(O),chartStatus:O,data:n,renderData:n,xScale:be,yScale:K?me:he,yScales:X,width:e,height:t,innerWidth:J,innerHeight:Y,margin:i,density:o,columnWidth:_e,tooltipData:A,setTooltipData:j,containerRef:E,lines:q,referenceAreas:Le,isLoaded:P,animationDuration:s,animationDelay:c,animationEasing:l,enterTransition:u,revealEpoch:L,xAccessor:oe,dateLabels:ye,xScaleType:`time`,barScale:le,bandWidth:ue,hoveredBarIndex:te,barXAccessor:ae,orientation:g,stacked:S,stackOffsets:ge,stackGap:C,squareSnap:w};return/* @__PURE__ */ (0,$.jsx)(G,{value:Re,children:/* @__PURE__ */ (0,$.jsxs)(`svg`,{"aria-hidden":`true`,className:`overflow-visible`,height:t,width:e,children:[Me.length>0&&/* @__PURE__ */ (0,$.jsx)(`defs`,{children:Me}),/* @__PURE__ */ (0,$.jsx)(`rect`,{fill:`transparent`,height:t,width:e,x:0,y:0}),/* @__PURE__ */ (0,$.jsxs)(`g`,{onMouseLeave:Ce?Se:void 0,onMouseMove:Ce?xe:void 0,style:{cursor:Ce?`crosshair`:`default`},transform:`translate(${i.left},${i.top})`,children:[/* @__PURE__ */ (0,$.jsx)(`rect`,{fill:`transparent`,height:Y,width:J,x:0,y:0}),je(Ne),je(Pe),O===`loading`?null:je(Fe),ie?/* @__PURE__ */ (0,$.jsx)(`g`,{"data-bar-loading-skeleton":``,"data-exiting":W?``:void 0,style:{opacity:+!W,transition:W?`opacity ${y}ms ease 150ms`:`none`},children:/* @__PURE__ */ (0,$.jsx)(a,{barCount:n.length||12,innerHeight:Y,innerWidth:J,orientation:_===`match`&&K?`horizontal`:`vertical`,rowSlots:fe})}):null,je(Ie)]})]})})});function $t(e){let t=(0,Z.c)(35),{data:n,xDataKey:r,density:i,margin:a,animationDuration:o,animationDelay:s,animationEasing:c,enterTransition:l,revealSignature:u,aspectRatio:d,height:f,className:p,barGap:m,barWidth:h,barAlign:g,orientation:_,loadingSkeletonOrientation:v,loadingExit:y,maxValue:b,stacked:x,stackGap:S,squareSnap:C,children:T,onPhaseChange:E,status:D}=e,O=r===void 0?`name`:r,k=i===void 0?ge:i,A=o===void 0?1100:o,M=s===void 0?0:s,N=c===void 0?j:c,P=d===void 0?`2 / 1`:d,F=p===void 0?``:p,I=m===void 0?.2:m,L=g===void 0?`start`:g,R=_===void 0?`vertical`:_,z=v===void 0?`vertical`:v,B=y===void 0?`fade`:y,ee=x!==void 0&&x,V=S===void 0?0:S,te=D===void 0?`ready`:D,H=(0,Q.useRef)(null),ne;t[0]!==k||t[1]!==a?(ne=me(k,a),t[0]=k,t[1]=a,t[2]=ne):ne=t[2];let U=ne,W;t[3]===F?W=t[4]:(W=w(`relative w-full overflow-visible`,F),t[3]=F,t[4]=W);let re;t[5]!==P||t[6]!==f?(re=f===void 0?{aspectRatio:P}:{height:f},t[5]=P,t[6]=f,t[7]=re):re=t[7];let G;t[8]!==M||t[9]!==A||t[10]!==N||t[11]!==L||t[12]!==I||t[13]!==h||t[14]!==T||t[15]!==n||t[16]!==k||t[17]!==l||t[18]!==B||t[19]!==z||t[20]!==U||t[21]!==b||t[22]!==E||t[23]!==R||t[24]!==u||t[25]!==C||t[26]!==V||t[27]!==ee||t[28]!==te||t[29]!==O?(G=/* @__PURE__ */ (0,$.jsx)(Ft,{debounceTime:10,children:e=>{let{width:t,height:r}=e;return/* @__PURE__ */ (0,$.jsx)(Zt,{animationDelay:M,animationDuration:A,animationEasing:N,barGap:I,barAlign:L,barWidthProp:h,containerRef:H,data:n,enterTransition:l,height:r,density:k,margin:U,maxValue:b,onPhaseChange:E,loadingExit:B,loadingSkeletonOrientation:z,orientation:R,revealSignature:u,squareSnap:C,stacked:ee,stackGap:V,status:te,width:t,xDataKey:O,children:T})}}),t[8]=M,t[9]=A,t[10]=N,t[11]=L,t[12]=I,t[13]=h,t[14]=T,t[15]=n,t[16]=k,t[17]=l,t[18]=B,t[19]=z,t[20]=U,t[21]=b,t[22]=E,t[23]=R,t[24]=u,t[25]=C,t[26]=V,t[27]=ee,t[28]=te,t[29]=O,t[30]=G):G=t[30];let ie;return t[31]!==W||t[32]!==re||t[33]!==G?(ie=/* @__PURE__ */ (0,$.jsx)(`div`,{className:W,ref:H,style:re,children:G}),t[31]=W,t[32]=re,t[33]=G,t[34]=ie):ie=t[34],ie}function en(e){let t=(0,Z.c)(26),{dataKey:n,stroke:r,strokeDasharray:i,strokeWidth:a,overhang:o,qaTestId:s}=e,c=r===void 0?`var(--color-depth-black-100)`:r,l=i===void 0?`2 2`:i,u=a===void 0?1.5:a,d=o===void 0?0:o,f=s===void 0?`bar-datum-marker`:s,{yScale:p,orientation:m,barScale:h,bandWidth:g,data:_,barXAccessor:v}=H();if(!h||!v||!g)return null;let y=m===`horizontal`,b=g,x;if(t[0]!==b||t[1]!==h||t[2]!==v||t[3]!==_||t[4]!==n||t[5]!==y||t[6]!==d||t[7]!==c||t[8]!==l||t[9]!==u||t[10]!==p){let e;t[12]!==b||t[13]!==h||t[14]!==v||t[15]!==n||t[16]!==y||t[17]!==d||t[18]!==c||t[19]!==l||t[20]!==u||t[21]!==p?(e=e=>{let t=v(e),r=fe(e[n]),i=h(t),a=r==null?void 0:p(r);if(i==null||a==null||!Number.isFinite(a))return null;let o=i-d,s=i+b+d;return/* @__PURE__ */ (0,$.jsx)(`line`,{stroke:c,strokeDasharray:l,strokeLinecap:`butt`,strokeWidth:u,x1:y?a:o,x2:y?a:s,y1:y?o:a,y2:y?s:a},t)},t[12]=b,t[13]=h,t[14]=v,t[15]=n,t[16]=y,t[17]=d,t[18]=c,t[19]=l,t[20]=u,t[21]=p,t[22]=e):e=t[22],x=_.map(e),t[0]=b,t[1]=h,t[2]=v,t[3]=_,t[4]=n,t[5]=y,t[6]=d,t[7]=c,t[8]=l,t[9]=u,t[10]=p,t[11]=x}else x=t[11];let S;return t[23]!==f||t[24]!==x?(S=/* @__PURE__ */ (0,$.jsx)(`g`,{pointerEvents:`none`,"qa-test-id":f,children:x}),t[23]=f,t[24]=x,t[25]=S):S=t[25],S}en.displayName=`BarDatumMarker`,en.__isBarDepthLayer=!0;function tn(e){let t=(0,Z.c)(32),{value:n,label:r,stroke:i,strokeDasharray:a,strokeWidth:o,qaTestId:s}=e,c=i===void 0?`var(--color-depth-black-100)`:i,l=a===void 0?`4 4`:a,u=o===void 0?1.5:o,d=s===void 0?`bar-reference-line`:s,{yScale:f,innerHeight:p,innerWidth:m,orientation:h,barScale:g,data:_,barXAccessor:v}=H(),y,b;if(t[0]!==n||t[1]!==f?(y=f(n),b=y==null||!Number.isFinite(y),t[0]=n,t[1]=f,t[2]=y,t[3]=b):(y=t[2],b=t[3]),b)return null;let x=h===`horizontal`,S=_[0],C,w;if(t[4]!==g||t[5]!==v||t[6]!==_||t[7]!==S){let e=_.at(-1),n=S&&v?v(S):void 0,r=e&&v?v(e):void 0;C=n!=null&&g?g(n)??0:0,w=r!=null&&g?g(r)??C:C,t[4]=g,t[5]=v,t[6]=_,t[7]=S,t[8]=C,t[9]=w}else C=t[8],w=t[9];let T=w,E;t[10]!==g||t[11]!==p||t[12]!==m||t[13]!==x?(E=g?.bandwidth()??(x?p:m),t[10]=g,t[11]=p,t[12]=m,t[13]=x,t[14]=E):E=t[14];let D=E,O=Math.min(C,T),k=Math.max(C,T)+D,A=x?y:0,j=x?y:m,M=x?O:y,N=x?k:y,P=r?r.length*7+12:0,F=x?y-P/2:m/2-P/2,I=x?-28:y-12,L;t[15]!==c||t[16]!==l||t[17]!==u||t[18]!==A||t[19]!==j||t[20]!==M||t[21]!==N?(L=/* @__PURE__ */ (0,$.jsx)(`line`,{stroke:c,strokeDasharray:l,strokeLinecap:`square`,strokeWidth:u,x1:A,x2:j,y1:M,y2:N}),t[15]=c,t[16]=l,t[17]=u,t[18]=A,t[19]=j,t[20]=M,t[21]=N,t[22]=L):L=t[22];let R;t[23]!==r||t[24]!==P||t[25]!==F||t[26]!==I?(R=r?/* @__PURE__ */ (0,$.jsxs)(`g`,{transform:`translate(${F}, ${I})`,children:[/* @__PURE__ */ (0,$.jsx)(`rect`,{fill:`var(--color-neutral-lighter)`,height:24,rx:8,ry:8,width:P}),/* @__PURE__ */ (0,$.jsx)(`text`,{className:`pui-text-mono-small`,dominantBaseline:`central`,fill:`var(--color-neutral-base)`,textAnchor:`middle`,x:P/2,y:12,children:r})]}):null,t[23]=r,t[24]=P,t[25]=F,t[26]=I,t[27]=R):R=t[27];let z;return t[28]!==d||t[29]!==L||t[30]!==R?(z=/* @__PURE__ */ (0,$.jsxs)(`g`,{pointerEvents:`none`,"qa-test-id":d,children:[L,R]}),t[28]=d,t[29]=L,t[30]=R,t[31]=z):z=t[31],z}tn.displayName=`BarReferenceLine`;const nn=[];function rn(e){let t=(0,Z.c)(4),{margin:n,aspectRatio:r,className:i}=e,a=r===void 0?`2 / 1`:r,o=i===void 0?``:i,s;return t[0]!==a||t[1]!==o||t[2]!==n?(s=/* @__PURE__ */ (0,$.jsx)($t,{aspectRatio:a,className:o,data:nn,margin:n,status:`loading`}),t[0]=a,t[1]=o,t[2]=n,t[3]=s):s=t[3],s}function an(e){return e.startsWith(`url(`)}function on(e,t,n){return n<=1?0:(e?.type===`tween`&&typeof e.duration==`number`?e.duration*1e3:t)*.4/1e3/(n-1)}function sn(e,t,n,r,i){let a=on(e,t,i),o=It(e,n*r);if(i<=1||o.type!==`tween`)return o;let s=typeof o.duration==`number`?o.duration:t/1e3;return{...o,duration:s+a*(i-1)}}function cn(e){let t=(0,Z.c)(39),{x:n,baselineY:r,barLengthPx:i,squareSize:a,squareGap:o,squareRadius:s,squareFit:c,fill:l,useGradient:u,gradientStops:d,patternPreset:f,index:p,isFaded:m,fadedOpacity:h,animate:g,staggerDelay:_,animationDuration:v,enterTransition:y,revealEpoch:b}=e,x,S;if(t[0]!==g||t[1]!==v||t[2]!==i||t[3]!==r||t[4]!==y||t[5]!==h||t[6]!==l||t[7]!==d||t[8]!==p||t[9]!==m||t[10]!==f||t[11]!==b||t[12]!==c||t[13]!==o||t[14]!==s||t[15]!==a||t[16]!==_||t[17]!==u||t[18]!==n){let e=qt({barLengthPx:i,squareSize:a,gap:o,fit:c}),C=a*s,w=r-e.columnHeight,T=`bar-squares-gradient-${p}-${b}`,E;t[21]===l?E=t[22]:(E=an(l),t[21]=l,t[22]=E);let D=E,k=`bar-squares-pattern-${p}-${b}`,A;bb0:{if(u){if(D&&f&&f!==`none`){A=`url(#${k})`;break bb0}A=`url(#${T})`;break bb0}A=l}let j=A,M=on(y,v,e.count),N=m?h:1,P;t[23]!==T||t[24]!==D||t[25]!==k||t[26]!==f||t[27]!==u?(P=u&&D&&f&&f!==`none`?st(f,k,{color:`url(#${T})`}):null,t[23]=T,t[24]=D,t[25]=k,t[26]=f,t[27]=u,t[28]=P):P=t[28];let F=P,I;t[29]!==r||t[30]!==w||t[31]!==T||t[32]!==F||t[33]!==d||t[34]!==u?(I=u?/* @__PURE__ */ (0,$.jsxs)(`defs`,{children:[/* @__PURE__ */ (0,$.jsx)(`linearGradient`,{gradientUnits:`userSpaceOnUse`,id:T,x1:0,x2:0,y1:r,y2:w,children:d.map(ln)}),F]}):null,t[29]=r,t[30]=w,t[31]=T,t[32]=F,t[33]=d,t[34]=u,t[35]=I):I=t[35],x=I,S=e.positions.map((e,t)=>{let r=w+e,i=r+a,o=`sq-${p}-${t}-${b}`;return g?/* @__PURE__ */ (0,$.jsx)(O.rect,{animate:{attrY:r,height:a,opacity:N},fill:j,height:a,initial:{attrY:i,height:0,opacity:1},rx:C,ry:C,transition:{...It(y,p*_+t*M),opacity:{duration:.15}},width:a,x:n},o):/* @__PURE__ */ (0,$.jsx)(`rect`,{fill:j,height:a,opacity:N,rx:C,ry:C,width:a,x:n,y:r},o)}),t[0]=g,t[1]=v,t[2]=i,t[3]=r,t[4]=y,t[5]=h,t[6]=l,t[7]=d,t[8]=p,t[9]=m,t[10]=f,t[11]=b,t[12]=c,t[13]=o,t[14]=s,t[15]=a,t[16]=_,t[17]=u,t[18]=n,t[19]=x,t[20]=S}else x=t[19],S=t[20];let C=S,w;return t[36]!==x||t[37]!==C?(w=/* @__PURE__ */ (0,$.jsxs)($.Fragment,{children:[x,C]}),t[36]=x,t[37]=C,t[38]=w):w=t[38],w}function ln(e){return/* @__PURE__ */ (0,$.jsx)(`stop`,{offset:`${e.offset}%`,stopColor:e.color},`${e.offset}-${e.color}`)}const un=(0,Q.memo)(function(e){let t=(0,Z.c)(69),{dataKey:n,yAxisId:r,fill:i,squareGap:a,squareRadius:o,squareFit:s,useGradient:c,gradientStops:l,patternPreset:u,animate:d,fadedOpacity:f,staggerDelay:p,groupGap:m,barScale:h,bandWidth:g,barXAccessor:_}=e,v=i===void 0?ne.linePrimary:i,y=a===void 0?3:a,b=o===void 0?.25:o,x=s!==void 0&&s,S=c!==void 0&&c,C;t[0]===l?C=t[1]:(C=l===void 0?[]:l,t[0]=l,t[1]=C);let w=C,T=d===void 0||d,E=f===void 0?.3:f,D=m===void 0?4:m,{data:O,innerHeight:k,hoveredBarIndex:A,lines:j,orientation:M,stacked:N,animationDuration:P,enterTransition:F,revealEpoch:I}=H(),L=I===void 0?0:I,{hoveredIndex:R}=oe(),z=(0,Q.useId)(),B=M===`horizontal`||N,ee;if(t[2]!==n||t[3]!==j){let e;t[5]===n?e=t[6]:(e=e=>e.dataKey===n,t[5]=n,t[6]=e),ee=j.findIndex(e),t[2]=n,t[3]=j,t[4]=ee}else ee=t[4];let V=Math.max(0,ee),te=j[V],U=re(r??te?.yAxisId),W=R!==null&&R!==V,G=j.length,ie;t[7]!==g||t[8]!==D||t[9]!==G?(ie=yt(g,G,D),t[7]=g,t[8]=D,t[9]=G,t[10]=ie):ie=t[10];let{barWidth:K,gap:q}=ie,J=(P||1100)*.4,Y=p??(O.length>1?J/1e3/O.length:0),ae;t[11]!==k||t[12]!==U?(ae=U(0)??k,t[11]=k,t[12]=U,t[13]=ae):ae=t[13];let se=ae,ce;t[14]!==v||t[15]!==w?(ce=w.length>=2?w:[{offset:0,color:v},{offset:100,color:v}],t[14]=v,t[15]=w,t[16]=ce):ce=t[16];let le=ce;if(B)return null;let ue=`bar-squares-${z}`,de;if(t[17]!==T||t[18]!==P||t[19]!==h||t[20]!==_||t[21]!==se||t[22]!==Y||t[23]!==O||t[24]!==n||t[25]!==q||t[26]!==F||t[27]!==E||t[28]!==v||t[29]!==A||t[30]!==W||t[31]!==u||t[32]!==L||t[33]!==V||t[34]!==x||t[35]!==y||t[36]!==b||t[37]!==K||t[38]!==le||t[39]!==S||t[40]!==U){let e;t[42]!==T||t[43]!==P||t[44]!==h||t[45]!==_||t[46]!==se||t[47]!==Y||t[48]!==n||t[49]!==q||t[50]!==F||t[51]!==E||t[52]!==v||t[53]!==A||t[54]!==W||t[55]!==u||t[56]!==L||t[57]!==V||t[58]!==x||t[59]!==y||t[60]!==b||t[61]!==K||t[62]!==le||t[63]!==S||t[64]!==U?(e=(e,t)=>{let r=e[n];if(typeof r!=`number`||r<=0)return null;let i=_(e),a=(h(i)??0)+V*(K+q),o=U(r)??0,s=se-o;return/* @__PURE__ */ (0,$.jsx)(cn,{animate:T,animationDuration:P||1100,barLengthPx:s,baselineY:se,enterTransition:F,fadedOpacity:E,fill:v,gradientStops:le,index:t,isFaded:A!==null&&A!==t||W,patternPreset:u,revealEpoch:L,squareFit:x,squareGap:y,squareRadius:b,squareSize:K,staggerDelay:Y,useGradient:S,x:a},`bar-squares-${n}-${i}`)},t[42]=T,t[43]=P,t[44]=h,t[45]=_,t[46]=se,t[47]=Y,t[48]=n,t[49]=q,t[50]=F,t[51]=E,t[52]=v,t[53]=A,t[54]=W,t[55]=u,t[56]=L,t[57]=V,t[58]=x,t[59]=y,t[60]=b,t[61]=K,t[62]=le,t[63]=S,t[64]=U,t[65]=e):e=t[65],de=O.map(e),t[17]=T,t[18]=P,t[19]=h,t[20]=_,t[21]=se,t[22]=Y,t[23]=O,t[24]=n,t[25]=q,t[26]=F,t[27]=E,t[28]=v,t[29]=A,t[30]=W,t[31]=u,t[32]=L,t[33]=V,t[34]=x,t[35]=y,t[36]=b,t[37]=K,t[38]=le,t[39]=S,t[40]=U,t[41]=de}else de=t[41];let fe;return t[66]!==ue||t[67]!==de?(fe=/* @__PURE__ */ (0,$.jsx)(`g`,{className:ue,children:de}),t[66]=ue,t[67]=de,t[68]=fe):fe=t[68],fe});function dn(e){let t=(0,Z.c)(5),{barScale:n,bandWidth:r,barXAccessor:i}=U();if(!(n&&r&&i))return console.warn(`BarSquares must be used within a BarChart`),null;let a;return t[0]!==r||t[1]!==n||t[2]!==i||t[3]!==e?(a=/* @__PURE__ */ (0,$.jsx)(un,{...e,bandWidth:r,barScale:n,barXAccessor:i}),t[0]=r,t[1]=n,t[2]=i,t[3]=e,t[4]=a):a=t[4],a}dn.displayName=`BarSquares`;const fn=(0,Q.memo)(function(e){let t=(0,Z.c)(37),{fill:n,opacity:r,squareGap:i,squareRadius:a,squareFit:o,groupGap:s,staggerDelay:c,barScale:l,bandWidth:u,barXAccessor:d}=e,f=n===void 0?ne.grid:n,p=r===void 0?.3:r,m=i===void 0?3:i,h=a===void 0?.25:a,g=o!==void 0&&o,_=s===void 0?4:s,{data:v,lines:y,orientation:b,stacked:x,hoveredBarIndex:S,animationDuration:C,enterTransition:w,revealEpoch:T}=H(),E=T===void 0?0:T,D=(0,Q.useId)(),O=b===`horizontal`||x,k=y.length,A;t[0]!==u||t[1]!==_||t[2]!==k?(A=yt(u,k,_),t[0]=u,t[1]=_,t[2]=k,t[3]=A):A=t[3];let{barWidth:j,gap:M}=A,N=(C||1100)*.4,P=c??(v.length>1?N/1e3/v.length:0);if(O)return null;let F=j*h,I=S===null?p:0,L=`bar-column-track-${D}`,R;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(R={transition:`opacity 0.15s ease-in-out`},t[4]=R):R=t[4];let z;if(t[5]!==l||t[6]!==d||t[7]!==P||t[8]!==v||t[9]!==M||t[10]!==I||t[11]!==w||t[12]!==f||t[13]!==y||t[14]!==E||t[15]!==F||t[16]!==g||t[17]!==m||t[18]!==j){let e;t[20]!==l||t[21]!==d||t[22]!==P||t[23]!==M||t[24]!==I||t[25]!==w||t[26]!==f||t[27]!==y||t[28]!==E||t[29]!==F||t[30]!==g||t[31]!==m||t[32]!==j?(e=(e,t)=>{let n=d(e),r=l(n)??0;return y.map((n,i)=>/* @__PURE__ */ (0,$.jsx)(pn,{animate:!0,bandPos:r,d:e,dataKey:n.dataKey,effectiveGroupGap:M,effectiveOpacity:I,enterTransition:w,fill:f,index:t,revealEpoch:E,rx:F,seriesIndex:i,squareFit:g,squareGap:m,squareSize:j,staggerDelay:P,yAxisId:n.yAxisId},`track-${t}-${n.dataKey}`))},t[20]=l,t[21]=d,t[22]=P,t[23]=M,t[24]=I,t[25]=w,t[26]=f,t[27]=y,t[28]=E,t[29]=F,t[30]=g,t[31]=m,t[32]=j,t[33]=e):e=t[33],z=v.map(e),t[5]=l,t[6]=d,t[7]=P,t[8]=v,t[9]=M,t[10]=I,t[11]=w,t[12]=f,t[13]=y,t[14]=E,t[15]=F,t[16]=g,t[17]=m,t[18]=j,t[19]=z}else z=t[19];let B;return t[34]!==z||t[35]!==L?(B=/* @__PURE__ */ (0,$.jsx)(`g`,{className:L,style:R,children:z}),t[34]=z,t[35]=L,t[36]=B):B=t[36],B});function pn(e){let t=(0,Z.c)(45),{d:n,dataKey:r,yAxisId:i,bandPos:a,seriesIndex:o,effectiveGroupGap:s,squareSize:c,squareGap:l,squareFit:u,fill:d,rx:f,effectiveOpacity:p,index:m,staggerDelay:h,animate:g,enterTransition:_,revealEpoch:v}=e,{innerHeight:y,animationDuration:b}=H(),x=re(i),S=n[r];if(typeof S!=`number`||S<=0)return null;let C;t[0]!==y||t[1]!==x?(C=x(0)??y,t[0]=y,t[1]=x,t[2]=C):C=t[2];let w=C,T;t[3]!==S||t[4]!==x?(T=x(S)??0,t[3]=S,t[4]=x,t[5]=T):T=t[5];let E=w-T,D,k,A,j;if(t[6]!==g||t[7]!==a||t[8]!==E||t[9]!==w||t[10]!==b||t[11]!==s||t[12]!==_||t[13]!==m||t[14]!==o||t[15]!==u||t[16]!==l||t[17]!==c||t[18]!==h){k=Symbol.for(`react.early_return_sentinel`);bb0:{let e=qt({barLengthPx:E,squareSize:c,gap:l,fit:u}),t=w-e.columnHeight;if(A=Math.max(0,t),A<=0&&!g){k=null;break bb0}j=a+o*(c+s),D=sn(_,b||1100,m,h,e.count)}t[6]=g,t[7]=a,t[8]=E,t[9]=w,t[10]=b,t[11]=s,t[12]=_,t[13]=m,t[14]=o,t[15]=u,t[16]=l,t[17]=c,t[18]=h,t[19]=D,t[20]=k,t[21]=A,t[22]=j}else D=t[19],k=t[20],A=t[21],j=t[22];if(k!==Symbol.for(`react.early_return_sentinel`))return k;let M=D,N=A>0?A:0;if(g){let e;t[23]===N?e=t[24]:(e={height:N,y:0},t[23]=N,t[24]=e);let n;t[25]===w?n=t[26]:(n={height:w,y:0},t[25]=w,t[26]=n);let r=`track-${m}-${o}-${v}`,i;return t[27]!==N||t[28]!==p||t[29]!==M||t[30]!==d||t[31]!==f||t[32]!==c||t[33]!==e||t[34]!==n||t[35]!==r||t[36]!==j?(i=/* @__PURE__ */ (0,$.jsx)(O.rect,{animate:e,fill:d,height:N,initial:n,opacity:p,rx:f,ry:f,transition:M,width:c,x:j},r),t[27]=N,t[28]=p,t[29]=M,t[30]=d,t[31]=f,t[32]=c,t[33]=e,t[34]=n,t[35]=r,t[36]=j,t[37]=i):i=t[37],i}if(A<=0)return null;let P;return t[38]!==p||t[39]!==d||t[40]!==f||t[41]!==c||t[42]!==A||t[43]!==j?(P=/* @__PURE__ */ (0,$.jsx)(`rect`,{fill:d,height:A,opacity:p,rx:f,ry:f,width:c,x:j,y:0}),t[38]=p,t[39]=d,t[40]=f,t[41]=c,t[42]=A,t[43]=j,t[44]=P):P=t[44],P}function mn(e){let t=(0,Z.c)(5),{barScale:n,bandWidth:r,barXAccessor:i}=U();if(!(n&&r&&i))return console.warn(`BarColumnTrack must be used within a BarChart`),null;let a;return t[0]!==r||t[1]!==n||t[2]!==i||t[3]!==e?(a=/* @__PURE__ */ (0,$.jsx)(fn,{...e,bandWidth:r,barScale:n,barXAccessor:i}),t[0]=r,t[1]=n,t[2]=i,t[3]=e,t[4]=a):a=t[4],a}mn.displayName=`BarColumnTrack`;var hn=/* @__PURE__ */ e(A(),1);function gn(e){let t=(0,Z.c)(13),{label:n,x:r,crosshairX:i,isHovering:a,tickerHalfWidth:o}=e,s=o+20,c=1;if(a&&i!==null){let e=Math.abs(r-i);e<o?c=0:e<s&&(c=(e-o)/20)}let l;t[0]===r?l=t[1]:(l={left:r,bottom:12,width:0,display:`flex`,justifyContent:`center`},t[0]=r,t[1]=l);let u;t[2]===c?u=t[3]:(u={opacity:c},t[2]=c,t[3]=u);let d,f,p;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(d=w(`pui-text-body-small-alt whitespace-nowrap text-chart-label`),f={opacity:1},p={duration:.4,ease:`easeInOut`},t[4]=d,t[5]=f,t[6]=p):(d=t[4],f=t[5],p=t[6]);let m;t[7]!==n||t[8]!==u?(m=/* @__PURE__ */ (0,$.jsx)(O.span,{animate:u,className:d,initial:f,transition:p,children:n}),t[7]=n,t[8]=u,t[9]=m):m=t[9];let h;return t[10]!==l||t[11]!==m?(h=/* @__PURE__ */ (0,$.jsx)(`div`,{className:`absolute`,style:l,children:m}),t[10]=l,t[11]=m,t[12]=h):h=t[12],h}function _n(e){let{containerRef:t,barScale:n}=U(),[r,i]=(0,Q.useState)(!1);(0,Q.useEffect)(()=>{i(!0)},[]);let a=t.current;return!(r&&a)||!n?null:/* @__PURE__ */ (0,$.jsx)(vn,{...e,container:a})}const vn=(0,Q.memo)(function(e){let t=(0,Z.c)(30),{tickerHalfWidth:n,showAllLabels:r,maxLabels:i,container:a}=e,o=n===void 0?50:n,s=r!==void 0&&r,{margin:c,tooltipData:l,barScale:u,bandWidth:d,barXAccessor:f,data:p,innerWidth:m,density:h}=H(),g,_,v;if(t[0]!==d||t[1]!==u||t[2]!==f||t[3]!==p||t[4]!==h||t[5]!==m||t[6]!==c||t[7]!==i||t[8]!==s||t[9]!==o||t[10]!==l){let e=pe(h,`x`,i),n;bb0:{if(!(u&&d&&f)){n=[];break bb0}let r;t[14]!==d||t[15]!==u||t[16]!==f||t[17]!==c?(r=e=>{let t=f(e);return{label:t,x:(u(t)??0)+d/2+c.left}},t[14]=d,t[15]=u,t[16]=f,t[17]=c,t[18]=r):r=t[18];let i=p.map(r);if(s){n=i;break bb0}let a=rt(it(i.map(yn)));n=at({length:i.length,availablePx:m,requestedMax:e,resolveXPx:e=>{let t=i[e];return t?t.x-c.left:0},slotPx:a}).flatMap(e=>{let t=i[e];return t?[t]:[]})}let r=n,a=l!==null,y=l?l.x+c.left:null;v=hn.createPortal,g=`pointer-events-none absolute inset-0`;let b;t[19]!==y||t[20]!==a||t[21]!==o?(b=e=>/* @__PURE__ */ (0,$.jsx)(gn,{crosshairX:y,isHovering:a,label:e.label,tickerHalfWidth:o,x:e.x},`${e.label}-${e.x}`),t[19]=y,t[20]=a,t[21]=o,t[22]=b):b=t[22],_=r.map(b),t[0]=d,t[1]=u,t[2]=f,t[3]=p,t[4]=h,t[5]=m,t[6]=c,t[7]=i,t[8]=s,t[9]=o,t[10]=l,t[11]=g,t[12]=_,t[13]=v}else g=t[11],_=t[12],v=t[13];let y;t[23]!==g||t[24]!==_?(y=/* @__PURE__ */ (0,$.jsx)(`div`,{className:g,children:_}),t[23]=g,t[24]=_,t[25]=y):y=t[25];let b;return t[26]!==a||t[27]!==v||t[28]!==y?(b=v(y,a),t[26]=a,t[27]=v,t[28]=y,t[29]=b):b=t[29],b});_n.displayName=`BarXAxis`;function yn(e){return e.label}const bn={1:`truncate whitespace-nowrap`,2:`line-clamp-2 whitespace-normal break-words`,3:`line-clamp-3 whitespace-normal break-words`};function xn(e){let t=(0,Z.c)(38),{label:n,y:r,bandHeight:i,isHovered:a,maxWidth:o,gap:s,align:c,labelClassName:l,maxLines:u}=e,d=c===`start`,f=(0,Q.useRef)(null),[p,m]=(0,Q.useState)(!1),h;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(h=()=>{let e=f.current;return e!=null&&(e.scrollWidth-e.clientWidth>1||e.scrollHeight-e.clientHeight>1)},t[0]=h):h=t[0];let g=h,_=d?`left-0 justify-start`:`right-0 justify-end`,v=!d&&s==null&&`pr-2`,y;t[1]!==_||t[2]!==v?(y=w(`absolute flex items-center`,_,v),t[1]=_,t[2]=v,t[3]=y):y=t[3];let b=d?o:void 0,x=d||s==null?void 0:s,S;t[4]!==i||t[5]!==b||t[6]!==x||t[7]!==r?(S={top:r,height:i,width:b,paddingRight:x},t[4]=i,t[5]=b,t[6]=x,t[7]=r,t[8]=S):S=t[8];let C;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(C=e=>m(e&&g()),t[9]=C):C=t[9];let k;t[10]!==a||t[11]!==l?(k=l?{opacity:1}:{opacity:a?1:.7,color:a?`var(--chart-foreground)`:`var(--chart-label, var(--color-text-soft))`},t[10]=a,t[11]=l,t[12]=k):k=t[12];let A=l??`pui-text-body-small-alt`,j=bn[u],M=d?`text-left`:`text-right`,N;t[13]!==A||t[14]!==j||t[15]!==M?(N=w(A,j,`pointer-events-auto`,M),t[13]=A,t[14]=j,t[15]=M,t[16]=N):N=t[16];let P;t[17]===l?P=t[18]:(P=l?{opacity:1}:{opacity:.7,color:`var(--chart-label, var(--color-text-soft))`},t[17]=l,t[18]=P);let F;t[19]===o?F=t[20]:(F={maxWidth:o},t[19]=o,t[20]=F);let I;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(I={duration:.15},t[21]=I):I=t[21];let L;t[22]!==n||t[23]!==N||t[24]!==P||t[25]!==F||t[26]!==k?(L=/* @__PURE__ */ (0,$.jsx)(T,{asChild:!0,children:/* @__PURE__ */ (0,$.jsx)(O.span,{animate:k,className:N,initial:P,ref:f,style:F,transition:I,children:n})}),t[22]=n,t[23]=N,t[24]=P,t[25]=F,t[26]=k,t[27]=L):L=t[27];let R;t[28]===n?R=t[29]:(R=/* @__PURE__ */ (0,$.jsx)(D,{className:`max-w-xs whitespace-normal`,side:`top`,children:n}),t[28]=n,t[29]=R);let z;t[30]!==L||t[31]!==R||t[32]!==p?(z=/* @__PURE__ */ (0,$.jsxs)(E,{onOpenChange:C,open:p,children:[L,R]}),t[30]=L,t[31]=R,t[32]=p,t[33]=z):z=t[33];let B;return t[34]!==z||t[35]!==y||t[36]!==S?(B=/* @__PURE__ */ (0,$.jsx)(`div`,{className:y,style:S,children:z}),t[34]=z,t[35]=y,t[36]=S,t[37]=B):B=t[37],B}function Sn(e){let{containerRef:t,barScale:n}=U(),[r,i]=(0,Q.useState)(!1);(0,Q.useEffect)(()=>{i(!0)},[]);let a=t.current;return!(r&&a)||!n?null:/* @__PURE__ */ (0,$.jsx)(Cn,{...e,container:a})}const Cn=(0,Q.memo)(function(e){let t=(0,Z.c)(42),{showAllLabels:n,maxLabels:r,labelMaxWidth:i,labelGap:a,align:o,labelClassName:s,maxLines:c,container:l}=e,u=i===void 0?70:i,d=o===void 0?`end`:o,f=c===void 0?1:c,{margin:p,barScale:m,bandWidth:h,barXAccessor:g,data:_,hoveredBarIndex:v,innerHeight:y,density:b}=H(),x,S,C,w;if(t[0]!==d||t[1]!==h||t[2]!==m||t[3]!==g||t[4]!==_||t[5]!==b||t[6]!==v||t[7]!==y||t[8]!==s||t[9]!==a||t[10]!==u||t[11]!==p.left||t[12]!==p.top||t[13]!==r||t[14]!==f||t[15]!==n){let e=pe(b,`y`,r),i=n??(b==null||b===`large`),o;bb0:{if(!(m&&h&&g)){o=[];break bb0}let n;t[20]!==h||t[21]!==m||t[22]!==g||t[23]!==p.top?(n=(e,t)=>{let n=g(e);return{label:n,y:(m(n)??0)+p.top,bandHeight:h,index:t}},t[20]=h,t[21]=m,t[22]=g,t[23]=p.top,t[24]=n):n=t[24];let r=_.map(n);if(i){o=r;break bb0}o=at({length:r.length,availablePx:y,requestedMax:e,resolveXPx:e=>{let t=r[e];return t?t.y-p.top:0},slotPx:20}).flatMap(e=>{let t=r[e];return t?[t]:[]})}let c=o;w=hn.createPortal,x=`pointer-events-none absolute top-0 bottom-0`,t[25]===p.left?S=t[26]:(S={left:0,width:p.left},t[25]=p.left,t[26]=S);let l;t[27]!==d||t[28]!==v||t[29]!==s||t[30]!==a||t[31]!==u||t[32]!==f?(l=e=>/* @__PURE__ */ (0,$.jsx)(xn,{align:d,bandHeight:e.bandHeight,gap:a,isHovered:v===e.index,label:e.label,labelClassName:s,maxLines:f,maxWidth:u,y:e.y},`${e.label}-${e.y}`),t[27]=d,t[28]=v,t[29]=s,t[30]=a,t[31]=u,t[32]=f,t[33]=l):l=t[33],C=c.map(l),t[0]=d,t[1]=h,t[2]=m,t[3]=g,t[4]=_,t[5]=b,t[6]=v,t[7]=y,t[8]=s,t[9]=a,t[10]=u,t[11]=p.left,t[12]=p.top,t[13]=r,t[14]=f,t[15]=n,t[16]=x,t[17]=S,t[18]=C,t[19]=w}else x=t[16],S=t[17],C=t[18],w=t[19];let T;t[34]!==x||t[35]!==S||t[36]!==C?(T=/* @__PURE__ */ (0,$.jsx)(`div`,{className:x,style:S,children:C}),t[34]=x,t[35]=S,t[36]=C,t[37]=T):T=t[37];let E;return t[38]!==l||t[39]!==w||t[40]!==T?(E=w(T,l),t[38]=l,t[39]=w,t[40]=T,t[41]=E):E=t[41],E});Sn.displayName=`BarYAxis`;export{gt as Background,Gt as Bar,$t as BarChart,rn as BarChartLoading,mn as BarColumnTrack,en as BarDatumMarker,a as BarLoadingSkeleton,tn as BarReferenceLine,dn as BarSquares,_n as BarXAxis,Sn as BarYAxis,Me as CHART_CLIP_PASSTHROUGH,_e as CHART_DENSITY,X as CHART_DENSITY_IDS,ae as ChartConfigProvider,se as ChartLegendHoverProvider,xe as ChartLoadingLabel,u as ChartMarkers,G as ChartProvider,l as ChartRevealClip,Ct as ChartTooltip,N as DEFAULT_ANIMATION_DURATION_MS,j as DEFAULT_ANIMATION_EASING,J as DEFAULT_CHART_CONFIG,ge as DEFAULT_CHART_DENSITY,M as DEFAULT_CHART_ENTER_TRANSITION,we as DEFAULT_CHART_LIFECYCLE,be as DEFAULT_CHART_STATUS,V as DEFAULT_Y_AXIS_ID,Se as DEFAULT_Y_DOMAIN_TWEEN_MS,_t as DateTicker,L as Grid,b as LineLoadingSweep,g as MarkerGroup,i as MarkerTooltipContent,ht as PATTERN_PRESET_IDS,r as PatternArea,ft as PatternCircles,mt as PatternHexagons,ct as PatternLines,ut as PatternWaves,ie as ProjectionLine,K as ProjectionLineEndMarker,wt as ReferenceArea,ue as SeriesMarkers,p as SeriesPoint,le as SeriesPointMarker,_ as SeriesTag,Ce as ShimmeringText,s as StaticChartPreviewProvider,Tt as TooltipBox,Et as TooltipContent,vt as TooltipDot,xt as TooltipIndicator,ot as XAxis,jt as YAxis,kt as Y_AXIS_DEFAULT_TICK_COUNT,At as Y_AXIS_MAX_TICK_COUNT,Ot as Y_AXIS_MIN_TICK_COUNT,Re as buildHorizontalTangentBezierPath,Ge as buildProjectionPath,ne as chartCssVars,We as clampHoverIndexToMaxTime,ze as clampPixelXToProjectionHoverMax,Fe as computeProjectionAnchorTangentSlope,qt as computeSquareColumn,Qe as computeYDomainsByAxis,W as defaultScatterColors,He as extractProjectionLineConfigs,f as generateChartSkeletonData,R as getPrimaryYScale,ce as getSeriesMarkerVisualExtent,n as getSkeletonHeights,bt as indicatorFadeGradientStops,ye as isChartInteractionPhase,dt as isCirclePattern,pt as isCirclesPattern,Ye as isLoadingChromePhase,$e as isYDomainTweenPhase,it as measureMaxLabelWidthPx,Le as mergeProjectionXDomainMax,Ne as mergeProjectionYDomain,Ke as mergeYDomainRecords,Xe as niceYDomain,lt as patternPresetTileSize,Ie as projectionDateExtents,Be as projectionHoverMaxBySeries,Ue as projectionHoverMaxTime,Pe as projectionPinnedOverlayX,Ve as projectionValueExtents,st as renderPatternPreset,me as resolveChartMargin,pe as resolveDensityMaxLabels,he as resolveDensityTickCount,ve as resolveRestingChartPhase,Y as resolveTooltipBoxMotion,St as resolveVerticalFadeSides,nt as resolveYAxisMarginPx,Dt as resolveYAxisTickCount,Je as shouldTweenYDomain,Jt as topSquareCenterY,m as useActiveMarkers,v as useAnimatedYDomains,H as useChart,q as useChartConfig,te as useChartHover,o as useChartInteraction,oe as useChartLegendHover,U as useChartStable,h as useSeriesPoint,c as useStaticChartPreview,re as useYScale};
1
+ import{a as e}from"../../../_chunks/rolldown-runtime-BWaJ3C7D.js";import{t}from"../../../_chunks/react-CUaU2Z9V.js";import{S as n,_ as r,a as i,b as a,c as o,d as s,f as c,g as l,i as u,l as d,m as f,n as p,o as m,r as h,s as g,t as _,u as v,v as y,x as b,y as x}from"../../../_chunks/series-tag-B5-Cbtpg.js";import{t as S}from"../../../_chunks/compiler-runtime-B3BlmaWz.js";import{t as C}from"../../../_chunks/jsx-runtime-Dgn0yPdi.js";import{t as w}from"../../../_chunks/dist-BNSTMZct.js";import{a as T,n as E,r as D}from"../../../_chunks/Tooltip-CZ9gmT5S.js";import{n as O}from"../../../_chunks/react-B3hSlcN2.js";import{t as k}from"../../../_chunks/use-reduced-motion-CNBdBisf.js";import{t as A}from"../../../_chunks/react-dom-BoXJ8nUa.js";import{n as j,r as M,t as N}from"../../../_chunks/animation-D8IqP_32.js";import{t as P}from"../../../_chunks/band-CBxHE99X.js";import{n as F,t as I}from"../../../_chunks/linear-CCtfjCEb.js";import{t as L}from"../../../_chunks/grid-DmEGskok.js";import{i as R,n as z,o as B,s as ee,t as V}from"../../../_chunks/y-axis-scales-Di1QS_P5.js";import{a as te,i as H,n as ne,o as U,r as W,s as re,t as G}from"../../../_chunks/chart-context-DEIvTsqh.js";import{n as ie,t as K}from"../../../_chunks/projection-line-end-marker-QD35F55G.js";import{i as q,n as J,r as Y,t as ae}from"../../../_chunks/chart-config-context-BpwYTVdv.js";import{n as oe,t as se}from"../../../_chunks/chart-legend-hover-BJijcIfO.js";import{i as ce,n as le,t as ue}from"../../../_chunks/series-markers-PiCafGdw.js";import{a as de,t as fe}from"../../../_chunks/chart-formatters-C23Gt1wa.js";import{a as pe,i as me,n as X,o as he,r as ge,t as _e}from"../../../_chunks/chart-density-B2pG6con.js";import{a as ve,i as ye,n as be,o as xe,r as Se,s as Ce,t as we}from"../../../_chunks/chart-phase-BaIoHaYw.js";import{a as Te,c as Ee,i as De,n as Oe,o as ke,r as Ae,s as je,t as Me}from"../../../_chunks/chart-child-passthrough-CU3_U3Y7.js";import{a as Ne,c as Pe,d as Fe,f as Ie,i as Le,l as Re,n as ze,o as Be,p as Ve,r as He,s as Ue,t as We,u as Ge}from"../../../_chunks/projection-config-BrjUSVSl.js";import{c as Ke,d as qe,f as Je,i as Ye,l as Xe,n as Ze,r as Qe,s as $e,t as et}from"../../../_chunks/y-domain-utils-DBuIZ5LP.js";import{t as tt}from"../../../_chunks/localPoint-BuWgV2HG.js";import{a as nt,i as rt,n as it,o as at,t as ot}from"../../../_chunks/x-axis-zEBQ8DnV.js";import{a as st,c as ct,i as lt,l as ut,n as dt,o as ft,r as pt,s as mt,t as ht}from"../../../_chunks/pattern-preset-CyGrTxZq.js";import{t as gt}from"../../../_chunks/background-BL4j0Aup.js";import{a as _t,i as vt,n as yt,o as bt,r as xt,s as St,t as Ct}from"../../../_chunks/chart-tooltip-BN_Xx-ha.js";import{t as wt}from"../../../_chunks/reference-area-C1I15Ptt.js";import{t as Tt}from"../../../_chunks/tooltip-box-DTNmTvby.js";import{t as Et}from"../../../_chunks/tooltip-content-CEeyDbtg.js";import{a as Dt,i as Ot,n as kt,r as At,t as jt}from"../../../_chunks/y-axis-R9BDlIer.js";import{n as Mt,t as Nt}from"../../../_chunks/chart-defs-DZc-Ynt6.js";import{t as Pt}from"../../../_chunks/reference-area-config-BIi3r2Ui.js";import{t as Ft}from"../../../_chunks/ParentSize-8O4qY4pg.js";import{t as It}from"../../../_chunks/motion-utils-FSUhZgF9.js";const Lt=F(`domain`,`range`,`reverse`,`align`,`padding`,`round`);function Rt(e){return Lt(P(),e)}function zt(e,t){let n=Math.max(0,e-t);return Math.min(t*.22,Math.max(0,n-1),7)}function Bt(e,t,n){let r=Math.min(1,Math.max(0,e))*Math.min(n,Math.max(0,t));return{depth:r,perspectiveRise:r*.45}}var Z=S(),Q=/* @__PURE__ */ e(t(),1),$=/* @__PURE__ */ e(C(),1);function Vt(e,t,n,r,i,a,o){let s=r/2;if(s<=0)return 0;let c=zt(e.step?.()??t,t),l=(e(n(i))??0)+t/2;return Bt(Math.min(1,Math.abs((l-s)/s)),Math.abs(o-a),c).perspectiveRise}function Ht(e){let t=(0,Z.c)(41),{x:n,y:r,width:i,height:a,fill:o,rx:s,ry:c,index:l,isFaded:u,animationType:d,growFromY:f,fadedOpacity:p,staggerDelay:m,startDelay:h,enterTransition:g,revealEpoch:_,isHorizontal:v}=e,y=h+l*m,b;t[0]!==g||t[1]!==y?(b=It(g,y),t[0]=g,t[1]=y,t[2]=b):b=t[2];let x=b;if(d===`fade`){let e=u?p:1,d;t[3]===e?d=t[4]:(d={opacity:e,filter:`blur(0px)`},t[3]=e,t[4]=d);let f;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(f={opacity:0,filter:`blur(2px)`},t[5]=f):f=t[5];let m=`fade-${l}-${_}`,h;return t[6]!==x||t[7]!==o||t[8]!==a||t[9]!==s||t[10]!==c||t[11]!==d||t[12]!==m||t[13]!==i||t[14]!==n||t[15]!==r?(h=/* @__PURE__ */ (0,$.jsx)(O.rect,{animate:d,fill:o,height:a,initial:f,rx:s,ry:c,transition:x,width:i,x:n,y:r},m),t[6]=x,t[7]=o,t[8]=a,t[9]=s,t[10]=c,t[11]=d,t[12]=m,t[13]=i,t[14]=n,t[15]=r,t[16]=h):h=t[16],h}let S;t[17]!==f||t[18]!==a||t[19]!==v||t[20]!==i||t[21]!==n||t[22]!==r?(S=v?{width:0,height:a,x:n,y:r}:{width:i,height:0,x:n,y:f},t[17]=f,t[18]=a,t[19]=v,t[20]=i,t[21]=n,t[22]=r,t[23]=S):S=t[23];let C=S,w;t[24]!==a||t[25]!==i||t[26]!==n||t[27]!==r?(w={width:i,height:a,x:n,y:r},t[24]=a,t[25]=i,t[26]=n,t[27]=r,t[28]=w):w=t[28];let T=w,E=u?p:1,D;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(D={transition:`opacity 0.15s ease-in-out`},t[29]=D):D=t[29];let k=`grow-${l}-${_}`,A;t[30]!==x||t[31]!==o||t[32]!==C||t[33]!==s||t[34]!==c||t[35]!==k||t[36]!==T?(A=/* @__PURE__ */ (0,$.jsx)(O.rect,{animate:T,fill:o,initial:C,rx:s,ry:c,transition:x},k),t[30]=x,t[31]=o,t[32]=C,t[33]=s,t[34]=c,t[35]=k,t[36]=T,t[37]=A):A=t[37];let j;return t[38]!==E||t[39]!==A?(j=/* @__PURE__ */ (0,$.jsx)(`g`,{opacity:E,style:D,children:A}),t[38]=E,t[39]=A,t[40]=j):j=t[40],j}function Ut(e,t){if(!t)return;let n=e[t];return typeof n==`number`?n:void 0}const Wt=(0,Q.memo)(function(e){let t=(0,Z.c)(82),{dataKey:n,baseDataKey:r,yAxisId:i,fill:a,lineCap:o,innerLineCap:s,animate:c,animationType:l,fadedOpacity:u,staggerDelay:d,stackGap:f,groupGap:p,perspective:m,minBarHeight:h,showValueLabels:g,valueLabelFormatter:_,valueLabelFill:v,valueLabelGap:y,valueLabelClassName:b,valueLabelPlacement:x,valueLabelInsideFill:S,deferValueLabels:C,barScale:w,bandWidth:T,barXAccessor:E}=e,D=a===void 0?ne.linePrimary:a,O=o===void 0?`round`:o,k=c===void 0||c,A=l===void 0?`grow`:l,j=u===void 0?.3:u,M=p===void 0?4:p,N=m!==void 0&&m,P=h===void 0?0:h,F=g!==void 0&&g,I=v===void 0?ne.label:v,L=y===void 0?8:y,R=x===void 0?`auto`:x,z=C!==void 0&&C,{data:B,yScale:ee,innerHeight:V,innerWidth:te,isLoaded:U,hoveredBarIndex:W,lines:G,orientation:ie,stacked:K,stackOffsets:q,stackGap:J,animationDuration:Y,animationDelay:ae,enterTransition:se,revealEpoch:ce}=H(),le=J===void 0?0:J,ue=ae===void 0?0:ae,de=ce===void 0?0:ce,fe=(Y||1100)*.4,pe=d??(B.length>1?fe/1e3/B.length:0),me=(0,Q.useId)(),X=ie===`horizontal`,he=f??le,{hoveredIndex:ge}=oe(),_e;if(t[0]!==n||t[1]!==G){let e;t[3]===n?e=t[4]:(e=e=>e.dataKey===n,t[3]=n,t[4]=e),_e=G.findIndex(e),t[0]=n,t[1]=G,t[2]=_e}else _e=t[2];let ve=Math.max(0,_e),ye=G[ve],be=re(i??ye?.yAxisId),xe=ge!==null&&ge!==ve,Se=G.length,Ce=ve===Se-1,we;bb0:{if(!T||Se===0){let e;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(e={barWidth:0,gap:0},t[5]=e):e=t[5],we=e;break bb0}if(K){let e;t[6]===T?e=t[7]:(e={barWidth:T,gap:0},t[6]=T,t[7]=e),we=e;break bb0}let e;t[8]!==T||t[9]!==M||t[10]!==Se?(e=yt(T,Se,M),t[8]=T,t[9]=M,t[10]=Se,t[11]=e):e=t[11],we=e}let{barWidth:Te,gap:Ee}=we,De;bb1:{if(N){De=0;break bb1}if(typeof O==`number`){De=O;break bb1}if(O===`round`&&Te){De=Math.min(Te/2,8);break bb1}De=0}let Oe=De,ke;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(ke=/* @__PURE__ */ new Map,t[12]=ke):ke=t[12];let Ae=(0,Q.useRef)(ke),[je,Me]=(0,Q.useState)(Kt),Ne;t[13]!==je||t[14]!==R?(Ne=()=>{if(R!==`fit`)return;let e=/* @__PURE__ */ new Map,t=!1;for(let[n,r]of Ae.current){let i=r.getComputedTextLength();e.set(n,i),je.get(n)!==i&&(t=!0)}(t||e.size!==je.size)&&Me(e)},t[13]=je,t[14]=R,t[15]=Ne):Ne=t[15],(0,Q.useLayoutEffect)(Ne);let Pe=K&&Oe>0&&(he===0||K&&he>0&&s!=null),Fe=he===0?0:Math.max(0,s??Oe),Ie;if(t[16]!==me){let e;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(e=/:/g,t[18]=e):e=t[18],Ie=me.replace(e,``),t[16]=me,t[17]=Ie}else Ie=t[17];let Le=`bar-stack-clip-${Ie}`,Re,ze;if(t[19]!==w||t[20]!==Te||t[21]!==E||t[22]!==ee||t[23]!==Oe||t[24]!==B||t[25]!==X||t[26]!==Pe||t[27]!==G||t[28]!==Le||t[29]!==me||t[30]!==be){let e=Pe?B.map(e=>{let t=0,n=0,r=0;for(let i of G){let a=e[i.dataKey];typeof a==`number`&&(t+=a,n=Math.min(n,t),r=Math.max(r,t))}let i=w(E(e))??0,a=X?ee:be,o=a(n)??0,s=a(r)??o;return X?{x:Math.min(o,s),y:i,width:Math.abs(s-o),height:Te}:{x:i,y:Math.min(o,s),width:Te,height:Math.abs(s-o)}}):[];Re=`bar-series-${me}`,ze=Pe?/* @__PURE__ */ (0,$.jsx)(`defs`,{children:e.map((e,t)=>/* @__PURE__ */ (0,$.jsx)(`clipPath`,{id:`${Le}-${t}`,children:/* @__PURE__ */ (0,$.jsx)(`rect`,{...e,rx:Oe,ry:Oe})},`${Le}-${t}`))}):null,t[19]=w,t[20]=Te,t[21]=E,t[22]=ee,t[23]=Oe,t[24]=B,t[25]=X,t[26]=Pe,t[27]=G,t[28]=Le,t[29]=me,t[30]=be,t[31]=Re,t[32]=ze}else Re=t[31],ze=t[32];let Be;t[33]!==k||t[34]!==ue||t[35]!==A||t[36]!==T||t[37]!==w||t[38]!==Te||t[39]!==E||t[40]!==r||t[41]!==pe||t[42]!==ee||t[43]!==Oe||t[44]!==B||t[45]!==n||t[46]!==z||t[47]!==Ee||t[48]!==se||t[49]!==j||t[50]!==D||t[51]!==W||t[52]!==V||t[53]!==te||t[54]!==X||t[55]!==Ce||t[56]!==xe||t[57]!==U||t[58]!==Pe||t[59]!==je||t[60]!==P||t[61]!==N||t[62]!==de||t[63]!==Le||t[64]!==Fe||t[65]!==ve||t[66]!==F||t[67]!==he||t[68]!==q||t[69]!==K||t[70]!==b||t[71]!==I||t[72]!==_||t[73]!==L||t[74]!==S||t[75]!==R||t[76]!==be?(Be=B.map((e,t)=>{let i=e[n];if(typeof i!=`number`)return null;let a=E(e),o=w(a)??0,s,c,l,u,d=X?ee:be,f=Ut(e,r)??0,p=r!==void 0;if(X){if(l=Te,K&&q){let e=q.get(t)?.get(n)??0,r=d(e)??0,a=d(e+i)??r;s=Math.min(r,a),u=Math.abs(a-r),!Ce&&he>0&&(u=Math.max(0,u-he))}else{let e=d(f)??0,t=d(i)??e;s=Math.min(e,t),u=Math.abs(t-e)}c=K?o:o+ve*(Te+Ee)}else{let r=d(f)??V,a=d(i)??r;if(u=Te,K&&q){let e=q.get(t)?.get(n)??0,r=d(e)??V,a=d(e+i)??r;c=Math.min(r,a),l=Math.abs(a-r),!Ce&&he>0&&(l=Math.max(0,l-he),a<r&&(c+=he))}else c=Math.min(r,a),l=Math.abs(a-r);s=K?o:o+ve*(Te+Ee);let m=!1;if(!K&&!p&&P>0&&i>=0&&l<P){let e=d(0)??V;l=P,c=e-P,m=!0}if(N&&i>0&&!m&&(!K||Ce)){let t=d(0)??V,n=Vt(w,T,E,te,e,c,t),r=Math.min(n,Math.max(0,l-1));c+=r,l-=r}}let m=W!==null&&W!==t||xe,h=`bar-${n}-${a}`,g=Pe?Fe:Oe,v=Pe?Fe:Oe,y=typeof D==`function`?D(e,t):D,x=k&&!U?/* @__PURE__ */ (0,$.jsx)(Ht,{animationType:A,enterTransition:se,fadedOpacity:j,fill:y,growFromY:X?c:be(f)??V,height:l,index:t,isFaded:m,isHorizontal:X,revealEpoch:de,rx:g,ry:v,staggerDelay:pe,startDelay:ue/1e3,width:u,x:s,y:c}):/* @__PURE__ */ (0,$.jsx)(`rect`,{fill:y,height:l,opacity:m?j:1,rx:g,ry:v,style:{cursor:`default`,transition:`opacity 0.15s ease-in-out`},width:u,x:s,y:c}),C=Pe?/* @__PURE__ */ (0,$.jsx)(`g`,{clipPath:`url(#${Le}-${t})`,children:x}):x;if(!F)return/* @__PURE__ */ (0,$.jsx)(Q.Fragment,{children:C},h);let O=_?_(i,e,t):String(i),M=je.get(h)??0,B=R!==`fit`||M<=0||s+u+L+M<=te,H=X&&(R===`inside`||R===`fit`&&!B),ne=typeof I==`function`?I(e,t):I,re=typeof S==`function`?S(e,t):S??ne,G=H?re:ne,ie=X?H?s+u-L:s+u+L:s+u/2,J=!X&&R===`auto`&&i<0&&!p,Y=X?c+l/2:J?c+l+L:c-L;return/* @__PURE__ */ (0,$.jsxs)(Q.Fragment,{children:[C,/* @__PURE__ */ (0,$.jsx)(`text`,{className:b,dominantBaseline:X?`central`:J?`hanging`:`auto`,fill:G,opacity:z?void 0:m?j:1,style:z?{opacity:U?m?j:1:0,transition:`opacity 280ms ease`}:void 0,ref:e=>{e?Ae.current.set(h,e):Ae.current.delete(h)},textAnchor:X?H?`end`:`start`:`middle`,x:ie,y:Y,children:O})]},h)}),t[33]=k,t[34]=ue,t[35]=A,t[36]=T,t[37]=w,t[38]=Te,t[39]=E,t[40]=r,t[41]=pe,t[42]=ee,t[43]=Oe,t[44]=B,t[45]=n,t[46]=z,t[47]=Ee,t[48]=se,t[49]=j,t[50]=D,t[51]=W,t[52]=V,t[53]=te,t[54]=X,t[55]=Ce,t[56]=xe,t[57]=U,t[58]=Pe,t[59]=je,t[60]=P,t[61]=N,t[62]=de,t[63]=Le,t[64]=Fe,t[65]=ve,t[66]=F,t[67]=he,t[68]=q,t[69]=K,t[70]=b,t[71]=I,t[72]=_,t[73]=L,t[74]=S,t[75]=R,t[76]=be,t[77]=Be):Be=t[77];let Ve;return t[78]!==Re||t[79]!==ze||t[80]!==Be?(Ve=/* @__PURE__ */ (0,$.jsxs)(`g`,{className:Re,children:[ze,Be]}),t[78]=Re,t[79]=ze,t[80]=Be,t[81]=Ve):Ve=t[81],Ve});function Gt(e){let t=(0,Z.c)(5),{barScale:n,bandWidth:r,barXAccessor:i}=U();if(!(n&&r&&i))return console.warn(`Bar component must be used within a BarChart`),null;let a;return t[0]!==r||t[1]!==n||t[2]!==i||t[3]!==e?(a=/* @__PURE__ */ (0,$.jsx)(Wt,{...e,bandWidth:r,barScale:n,barXAccessor:i}),t[0]=r,t[1]=n,t[2]=i,t[3]=e,t[4]=a):a=t[4],a}Gt.displayName=`Bar`;function Kt(){return/* @__PURE__ */ new Map}function qt({barLengthPx:e,squareSize:t,gap:n,fit:r=!1}){if(e<=0||t<=0)return{count:0,positions:[],columnHeight:0,squareSize:t,gap:n};if(r){let r=Math.max(1,Math.floor((e+n)/(t+n))),i=r>1?Math.max(0,(e-r*t)/(r-1)):0,a=t+i,o=e,s=[];for(let e=0;e<r;e++)s.push(o-t-e*a);return{count:r,positions:s,columnHeight:o,squareSize:t,gap:i}}let i=t+n,a=Math.max(1,Math.round(e/i)),o=a*t+Math.max(0,a-1)*n,s=[];for(let e=0;e<a;e++){let n=e*i;s.push(o-t-n)}return{count:a,positions:s,columnHeight:o,squareSize:t,gap:n}}function Jt({baselineY:e,barLengthPx:t,squareSize:n,gap:r,fit:i=!1}){let{count:a,squareSize:o,columnHeight:s}=qt({barLengthPx:t,squareSize:n,gap:r,fit:i});return a===0?e:e-s+o/2}function Yt(e,t,n,r){return e===`loading`&&t!==`loading`&&n===`fade`&&r===!1}function Xt(e){let t=[];return Oe(e,e=>{let n=e.type;if(n.__isBarDepthLayer)return;let r=typeof e.type==`function`&&(n.displayName||n.name)||``,i=e.props;if((r===`Bar`||r===`BarSquares`||i&&typeof i.dataKey==`string`&&i.dataKey.length>0)&&i?.dataKey){let e=typeof i.fill==`string`?i.fill:void 0,n=i.stroke||e||`var(--chart-line-primary)`;t.push({dataKey:i.dataKey,stroke:n,strokeWidth:0,yAxisId:i.yAxisId,baseDataKey:i.baseDataKey})}}),t}function Zt(e){let t=(0,Z.c)(2),{width:n,height:r}=e;if(n<10||r<10)return null;let i;return t[0]===e?i=t[1]:(i=/* @__PURE__ */ (0,$.jsx)(Qt,{...e}),t[0]=e,t[1]=i),i}const Qt=(0,Q.memo)(function({width:e,height:t,data:n,xDataKey:r,margin:i,density:o,animationDuration:s,animationDelay:c,animationEasing:l,enterTransition:u,revealSignature:f=``,barGap:p,barWidthProp:m,barAlign:h,orientation:g,loadingSkeletonOrientation:_,loadingExit:v,maxValue:b,stacked:S,stackGap:C,squareSnap:w,children:T,containerRef:E,onPhaseChange:D,status:O}){let{tooltipData:A,setTooltipData:j,scheduleTooltip:M,clearTooltip:N}=d(),[P,F]=(0,Q.useState)(!1),[L,V]=(0,Q.useState)(0),te=A?.index??null,H=k(),[ne,U]=(0,Q.useState)(O),[W,re]=(0,Q.useState)(!1);O!==ne&&(U(O),re(Yt(ne,O,v,H))),W&&H===!0&&re(!1),(0,Q.useEffect)(()=>{if(!W)return;let e=setTimeout(()=>re(!1),x);return()=>clearTimeout(e)},[W]);let ie=O===`loading`||W,K=g===`horizontal`,q=(0,Q.useMemo)(()=>Xt(T),[T]),J=e-i.left-i.right,Y=t-i.top-i.bottom,ae=(0,Q.useCallback)(e=>{let t=e[r];return t instanceof Date?de.format(t):String(t)},[r]),oe=(0,Q.useCallback)(e=>{let t=e[r];return t instanceof Date?t:/* @__PURE__ */ new Date},[r]),se=n.map(e=>ae(e)),ce=Rt({range:K?[0,Y]:[0,J],domain:se,padding:p}),le=h===`center`&&m!=null?(()=>{let e=(ce.bandwidth()-m)/2;return e>0?Object.assign(t=>{let n=ce(t);return n===void 0?void 0:n+e},ce):ce})():ce,ue=m??le.bandwidth(),fe=_===`match`&&K&&n.length>0?se.map(e=>({y:le(e)??0,thickness:ue})):void 0,pe=(0,Q.useMemo)(()=>{let e=S?Ze(n,q):et(n,q);return qe(e,b)},[n,q,S,b]),me=(0,Q.useMemo)(()=>I({range:K?[0,J]:[Y,0],domain:pe,nice:b===void 0}),[J,Y,K,b,pe]),X=(0,Q.useMemo)(()=>K?ee(me):z({lines:q,data:n,innerHeight:Y,resolveDomain:e=>{let t=q.filter(t=>e.includes(t.dataKey)),r=S?Ze(n,t):et(n,t);return qe(r,b)}}),[n,Y,K,q,b,S,me]),he=R(X,me),ge=(0,Q.useMemo)(()=>{if(!S)return;let e=/* @__PURE__ */ new Map;for(let t=0;t<n.length;t++){let r=n[t];if(!r)continue;let i=/* @__PURE__ */ new Map,a=0;for(let e of q){i.set(e.dataKey,a);let t=r[e.dataKey];typeof t==`number`&&(a+=t)}e.set(t,i)}return e},[n,q,S]),_e=(0,Q.useMemo)(()=>n.length<1?0:K?Y/n.length:J/n.length,[J,Y,n.length,K]),ye=(0,Q.useMemo)(()=>n.map(e=>ae(e)),[n,ae]),be=(0,Q.useMemo)(()=>{let e=Date.now(),t=e-n.length*24*60*60*1e3,r={...le,domain:()=>[new Date(t),new Date(e)],range:()=>[0,J],invert:n=>new Date(t+n/J*(e-t)),copy:()=>r};return r},[le,J,n.length]);(0,Q.useEffect)(()=>{if(V(e=>e+1),F(!1),O===`loading`)return;let e=n.length>1?s*.4:0,t=setTimeout(()=>{F(!0)},c+s+e);return()=>clearTimeout(t)},[c,s,f,O]),(0,Q.useEffect)(()=>{D?.(P?`ready`:`revealing`)},[P,D]);let xe=(0,Q.useCallback)(e=>{let t=tt(e);if(!t)return;let r=K?t.y-i.top:t.x-i.left,a=Math.floor(r/_e),o=Math.max(0,Math.min(n.length-1,a)),s=n[o];if(!s)return;let c={},l={},u=le(ae(s))??0;if(K){let e=q.length,{barWidth:t,gap:n}=yt(ue,e,4);if(S){let e=0;for(let t of q){let n=s[t.dataKey];if(typeof n==`number`){e+=n;let r=X[B(t.yAxisId)]??me;l[t.dataKey]=r(e)??0,c[t.dataKey]=u+ue/2}}}else q.forEach((e,r)=>{let i=s[e.dataKey];if(typeof i==`number`){let a=X[B(e.yAxisId)]??me;l[e.dataKey]=a(i)??0,c[e.dataKey]=u+r*(t+n)+t/2}})}else if(S){let e=0;q.forEach((t,n)=>{let r=s[t.dataKey];if(typeof r!=`number`)return;e+=r;let i=(X[B(t.yAxisId)]??he)(e)??0,a=n===q.length-1;c[t.dataKey]=!a&&C>0&&r>=0?i+C:i})}else{let e=q.length,{barWidth:t,gap:n}=yt(ue,e,4);q.forEach((e,r)=>{let i=s[e.dataKey];if(typeof i==`number`){let a=X[B(e.yAxisId)]??he,o=a(0)??Y,s=a(i)??0,d=o-s;w&&!K&&i>0?c[e.dataKey]=Jt({baselineY:o,barLengthPx:d,squareSize:t,gap:w.squareGap,fit:w.fit}):c[e.dataKey]=s,l[e.dataKey]=u+r*(t+n)+t/2}})}let d;d=K?Math.max(...Object.values(l),0):u+ue/2,M({point:s,index:o,x:d,yPositions:c,xPositions:Object.keys(l).length>0?l:void 0})},[le,me,n,q,i.left,i.top,ae,_e,ue,K,S,C,M,X,he,w,Y]),Se=(0,Q.useCallback)(()=>{N()},[N]),Ce=P,Me=[],Ne=[],Pe=[],Fe=[],Ie=[];Oe(T,e=>{let t=Ee(e);Nt(e)?Me.push(e):Mt(e)?Fe.push(e):Te(t)?Ie.push(t):De(t)?Ne.push(Ae(e.type)?t:e):ke(t)?Pe.push(t):Fe.push(e)});let Le=(0,Q.useMemo)(()=>Pt(T),[T]),Re={...we,chartPhase:ve(O),chartStatus:O,data:n,renderData:n,xScale:be,yScale:K?me:he,yScales:X,width:e,height:t,innerWidth:J,innerHeight:Y,margin:i,density:o,columnWidth:_e,tooltipData:A,setTooltipData:j,containerRef:E,lines:q,referenceAreas:Le,isLoaded:P,animationDuration:s,animationDelay:c,animationEasing:l,enterTransition:u,revealEpoch:L,xAccessor:oe,dateLabels:ye,xScaleType:`time`,barScale:le,bandWidth:ue,hoveredBarIndex:te,barXAccessor:ae,orientation:g,stacked:S,stackOffsets:ge,stackGap:C,squareSnap:w};return/* @__PURE__ */ (0,$.jsx)(G,{value:Re,children:/* @__PURE__ */ (0,$.jsxs)(`svg`,{"aria-hidden":`true`,className:`overflow-visible`,height:t,width:e,children:[Me.length>0&&/* @__PURE__ */ (0,$.jsx)(`defs`,{children:Me}),/* @__PURE__ */ (0,$.jsx)(`rect`,{fill:`transparent`,height:t,width:e,x:0,y:0}),/* @__PURE__ */ (0,$.jsxs)(`g`,{onMouseLeave:Ce?Se:void 0,onMouseMove:Ce?xe:void 0,style:{cursor:Ce?`crosshair`:`default`},transform:`translate(${i.left},${i.top})`,children:[/* @__PURE__ */ (0,$.jsx)(`rect`,{fill:`transparent`,height:Y,width:J,x:0,y:0}),je(Ne),je(Pe),O===`loading`?null:je(Fe),ie?/* @__PURE__ */ (0,$.jsx)(`g`,{"data-bar-loading-skeleton":``,"data-exiting":W?``:void 0,style:{opacity:+!W,transition:W?`opacity ${y}ms ease 150ms`:`none`},children:/* @__PURE__ */ (0,$.jsx)(a,{barCount:n.length||12,innerHeight:Y,innerWidth:J,orientation:_===`match`&&K?`horizontal`:`vertical`,rowSlots:fe})}):null,je(Ie)]})]})})});function $t(e){let t=(0,Z.c)(35),{data:n,xDataKey:r,density:i,margin:a,animationDuration:o,animationDelay:s,animationEasing:c,enterTransition:l,revealSignature:u,aspectRatio:d,height:f,className:p,barGap:m,barWidth:h,barAlign:g,orientation:_,loadingSkeletonOrientation:v,loadingExit:y,maxValue:b,stacked:x,stackGap:S,squareSnap:C,children:T,onPhaseChange:E,status:D}=e,O=r===void 0?`name`:r,k=i===void 0?ge:i,A=o===void 0?1100:o,M=s===void 0?0:s,N=c===void 0?j:c,P=d===void 0?`2 / 1`:d,F=p===void 0?``:p,I=m===void 0?.2:m,L=g===void 0?`start`:g,R=_===void 0?`vertical`:_,z=v===void 0?`vertical`:v,B=y===void 0?`fade`:y,ee=x!==void 0&&x,V=S===void 0?0:S,te=D===void 0?`ready`:D,H=(0,Q.useRef)(null),ne;t[0]!==k||t[1]!==a?(ne=me(k,a),t[0]=k,t[1]=a,t[2]=ne):ne=t[2];let U=ne,W;t[3]===F?W=t[4]:(W=w(`relative w-full overflow-visible`,F),t[3]=F,t[4]=W);let re;t[5]!==P||t[6]!==f?(re=f===void 0?{aspectRatio:P}:{height:f},t[5]=P,t[6]=f,t[7]=re):re=t[7];let G;t[8]!==M||t[9]!==A||t[10]!==N||t[11]!==L||t[12]!==I||t[13]!==h||t[14]!==T||t[15]!==n||t[16]!==k||t[17]!==l||t[18]!==B||t[19]!==z||t[20]!==U||t[21]!==b||t[22]!==E||t[23]!==R||t[24]!==u||t[25]!==C||t[26]!==V||t[27]!==ee||t[28]!==te||t[29]!==O?(G=/* @__PURE__ */ (0,$.jsx)(Ft,{debounceTime:10,children:e=>{let{width:t,height:r}=e;return/* @__PURE__ */ (0,$.jsx)(Zt,{animationDelay:M,animationDuration:A,animationEasing:N,barGap:I,barAlign:L,barWidthProp:h,containerRef:H,data:n,enterTransition:l,height:r,density:k,margin:U,maxValue:b,onPhaseChange:E,loadingExit:B,loadingSkeletonOrientation:z,orientation:R,revealSignature:u,squareSnap:C,stacked:ee,stackGap:V,status:te,width:t,xDataKey:O,children:T})}}),t[8]=M,t[9]=A,t[10]=N,t[11]=L,t[12]=I,t[13]=h,t[14]=T,t[15]=n,t[16]=k,t[17]=l,t[18]=B,t[19]=z,t[20]=U,t[21]=b,t[22]=E,t[23]=R,t[24]=u,t[25]=C,t[26]=V,t[27]=ee,t[28]=te,t[29]=O,t[30]=G):G=t[30];let ie;return t[31]!==W||t[32]!==re||t[33]!==G?(ie=/* @__PURE__ */ (0,$.jsx)(`div`,{className:W,ref:H,style:re,children:G}),t[31]=W,t[32]=re,t[33]=G,t[34]=ie):ie=t[34],ie}function en(e){let t=(0,Z.c)(26),{dataKey:n,stroke:r,strokeDasharray:i,strokeWidth:a,overhang:o,qaTestId:s}=e,c=r===void 0?`var(--color-depth-black-100)`:r,l=i===void 0?`2 2`:i,u=a===void 0?1.5:a,d=o===void 0?0:o,f=s===void 0?`bar-datum-marker`:s,{yScale:p,orientation:m,barScale:h,bandWidth:g,data:_,barXAccessor:v}=H();if(!h||!v||!g)return null;let y=m===`horizontal`,b=g,x;if(t[0]!==b||t[1]!==h||t[2]!==v||t[3]!==_||t[4]!==n||t[5]!==y||t[6]!==d||t[7]!==c||t[8]!==l||t[9]!==u||t[10]!==p){let e;t[12]!==b||t[13]!==h||t[14]!==v||t[15]!==n||t[16]!==y||t[17]!==d||t[18]!==c||t[19]!==l||t[20]!==u||t[21]!==p?(e=e=>{let t=v(e),r=fe(e[n]),i=h(t),a=r==null?void 0:p(r);if(i==null||a==null||!Number.isFinite(a))return null;let o=i-d,s=i+b+d;return/* @__PURE__ */ (0,$.jsx)(`line`,{stroke:c,strokeDasharray:l,strokeLinecap:`butt`,strokeWidth:u,x1:y?a:o,x2:y?a:s,y1:y?o:a,y2:y?s:a},t)},t[12]=b,t[13]=h,t[14]=v,t[15]=n,t[16]=y,t[17]=d,t[18]=c,t[19]=l,t[20]=u,t[21]=p,t[22]=e):e=t[22],x=_.map(e),t[0]=b,t[1]=h,t[2]=v,t[3]=_,t[4]=n,t[5]=y,t[6]=d,t[7]=c,t[8]=l,t[9]=u,t[10]=p,t[11]=x}else x=t[11];let S;return t[23]!==f||t[24]!==x?(S=/* @__PURE__ */ (0,$.jsx)(`g`,{pointerEvents:`none`,"qa-test-id":f,children:x}),t[23]=f,t[24]=x,t[25]=S):S=t[25],S}en.displayName=`BarDatumMarker`,en.__isBarDepthLayer=!0;function tn(e){let t=(0,Z.c)(32),{value:n,label:r,stroke:i,strokeDasharray:a,strokeWidth:o,qaTestId:s}=e,c=i===void 0?`var(--color-depth-black-100)`:i,l=a===void 0?`4 4`:a,u=o===void 0?1.5:o,d=s===void 0?`bar-reference-line`:s,{yScale:f,innerHeight:p,innerWidth:m,orientation:h,barScale:g,data:_,barXAccessor:v}=H(),y,b;if(t[0]!==n||t[1]!==f?(y=f(n),b=y==null||!Number.isFinite(y),t[0]=n,t[1]=f,t[2]=y,t[3]=b):(y=t[2],b=t[3]),b)return null;let x=h===`horizontal`,S=_[0],C,w;if(t[4]!==g||t[5]!==v||t[6]!==_||t[7]!==S){let e=_.at(-1),n=S&&v?v(S):void 0,r=e&&v?v(e):void 0;C=n!=null&&g?g(n)??0:0,w=r!=null&&g?g(r)??C:C,t[4]=g,t[5]=v,t[6]=_,t[7]=S,t[8]=C,t[9]=w}else C=t[8],w=t[9];let T=w,E;t[10]!==g||t[11]!==p||t[12]!==m||t[13]!==x?(E=g?.bandwidth()??(x?p:m),t[10]=g,t[11]=p,t[12]=m,t[13]=x,t[14]=E):E=t[14];let D=E,O=Math.min(C,T),k=Math.max(C,T)+D,A=x?y:0,j=x?y:m,M=x?O:y,N=x?k:y,P=r?r.length*7+12:0,F=x?y-P/2:m/2-P/2,I=x?-28:y-12,L;t[15]!==c||t[16]!==l||t[17]!==u||t[18]!==A||t[19]!==j||t[20]!==M||t[21]!==N?(L=/* @__PURE__ */ (0,$.jsx)(`line`,{stroke:c,strokeDasharray:l,strokeLinecap:`square`,strokeWidth:u,x1:A,x2:j,y1:M,y2:N}),t[15]=c,t[16]=l,t[17]=u,t[18]=A,t[19]=j,t[20]=M,t[21]=N,t[22]=L):L=t[22];let R;t[23]!==r||t[24]!==P||t[25]!==F||t[26]!==I?(R=r?/* @__PURE__ */ (0,$.jsxs)(`g`,{transform:`translate(${F}, ${I})`,children:[/* @__PURE__ */ (0,$.jsx)(`rect`,{fill:`var(--color-neutral-lighter)`,height:24,rx:8,ry:8,width:P}),/* @__PURE__ */ (0,$.jsx)(`text`,{className:`pui-text-mono-small`,dominantBaseline:`central`,fill:`var(--color-neutral-base)`,textAnchor:`middle`,x:P/2,y:12,children:r})]}):null,t[23]=r,t[24]=P,t[25]=F,t[26]=I,t[27]=R):R=t[27];let z;return t[28]!==d||t[29]!==L||t[30]!==R?(z=/* @__PURE__ */ (0,$.jsxs)(`g`,{pointerEvents:`none`,"qa-test-id":d,children:[L,R]}),t[28]=d,t[29]=L,t[30]=R,t[31]=z):z=t[31],z}tn.displayName=`BarReferenceLine`;const nn=[];function rn(e){let t=(0,Z.c)(4),{margin:n,aspectRatio:r,className:i}=e,a=r===void 0?`2 / 1`:r,o=i===void 0?``:i,s;return t[0]!==a||t[1]!==o||t[2]!==n?(s=/* @__PURE__ */ (0,$.jsx)($t,{aspectRatio:a,className:o,data:nn,margin:n,status:`loading`}),t[0]=a,t[1]=o,t[2]=n,t[3]=s):s=t[3],s}function an(e){return e.startsWith(`url(`)}function on(e,t,n){return n<=1?0:(e?.type===`tween`&&typeof e.duration==`number`?e.duration*1e3:t)*.4/1e3/(n-1)}function sn(e,t,n,r,i){let a=on(e,t,i),o=It(e,n*r);if(i<=1||o.type!==`tween`)return o;let s=typeof o.duration==`number`?o.duration:t/1e3;return{...o,duration:s+a*(i-1)}}function cn(e){let t=(0,Z.c)(39),{x:n,baselineY:r,barLengthPx:i,squareSize:a,squareGap:o,squareRadius:s,squareFit:c,fill:l,useGradient:u,gradientStops:d,patternPreset:f,index:p,isFaded:m,fadedOpacity:h,animate:g,staggerDelay:_,animationDuration:v,enterTransition:y,revealEpoch:b}=e,x,S;if(t[0]!==g||t[1]!==v||t[2]!==i||t[3]!==r||t[4]!==y||t[5]!==h||t[6]!==l||t[7]!==d||t[8]!==p||t[9]!==m||t[10]!==f||t[11]!==b||t[12]!==c||t[13]!==o||t[14]!==s||t[15]!==a||t[16]!==_||t[17]!==u||t[18]!==n){let e=qt({barLengthPx:i,squareSize:a,gap:o,fit:c}),C=a*s,w=r-e.columnHeight,T=`bar-squares-gradient-${p}-${b}`,E;t[21]===l?E=t[22]:(E=an(l),t[21]=l,t[22]=E);let D=E,k=`bar-squares-pattern-${p}-${b}`,A;bb0:{if(u){if(D&&f&&f!==`none`){A=`url(#${k})`;break bb0}A=`url(#${T})`;break bb0}A=l}let j=A,M=on(y,v,e.count),N=m?h:1,P;t[23]!==T||t[24]!==D||t[25]!==k||t[26]!==f||t[27]!==u?(P=u&&D&&f&&f!==`none`?st(f,k,{color:`url(#${T})`}):null,t[23]=T,t[24]=D,t[25]=k,t[26]=f,t[27]=u,t[28]=P):P=t[28];let F=P,I;t[29]!==r||t[30]!==w||t[31]!==T||t[32]!==F||t[33]!==d||t[34]!==u?(I=u?/* @__PURE__ */ (0,$.jsxs)(`defs`,{children:[/* @__PURE__ */ (0,$.jsx)(`linearGradient`,{gradientUnits:`userSpaceOnUse`,id:T,x1:0,x2:0,y1:r,y2:w,children:d.map(ln)}),F]}):null,t[29]=r,t[30]=w,t[31]=T,t[32]=F,t[33]=d,t[34]=u,t[35]=I):I=t[35],x=I,S=e.positions.map((e,t)=>{let r=w+e,i=r+a,o=`sq-${p}-${t}-${b}`;return g?/* @__PURE__ */ (0,$.jsx)(O.rect,{animate:{attrY:r,height:a,opacity:N},fill:j,height:a,initial:{attrY:i,height:0,opacity:1},rx:C,ry:C,transition:{...It(y,p*_+t*M),opacity:{duration:.15}},width:a,x:n},o):/* @__PURE__ */ (0,$.jsx)(`rect`,{fill:j,height:a,opacity:N,rx:C,ry:C,width:a,x:n,y:r},o)}),t[0]=g,t[1]=v,t[2]=i,t[3]=r,t[4]=y,t[5]=h,t[6]=l,t[7]=d,t[8]=p,t[9]=m,t[10]=f,t[11]=b,t[12]=c,t[13]=o,t[14]=s,t[15]=a,t[16]=_,t[17]=u,t[18]=n,t[19]=x,t[20]=S}else x=t[19],S=t[20];let C=S,w;return t[36]!==x||t[37]!==C?(w=/* @__PURE__ */ (0,$.jsxs)($.Fragment,{children:[x,C]}),t[36]=x,t[37]=C,t[38]=w):w=t[38],w}function ln(e){return/* @__PURE__ */ (0,$.jsx)(`stop`,{offset:`${e.offset}%`,stopColor:e.color},`${e.offset}-${e.color}`)}const un=(0,Q.memo)(function(e){let t=(0,Z.c)(69),{dataKey:n,yAxisId:r,fill:i,squareGap:a,squareRadius:o,squareFit:s,useGradient:c,gradientStops:l,patternPreset:u,animate:d,fadedOpacity:f,staggerDelay:p,groupGap:m,barScale:h,bandWidth:g,barXAccessor:_}=e,v=i===void 0?ne.linePrimary:i,y=a===void 0?3:a,b=o===void 0?.25:o,x=s!==void 0&&s,S=c!==void 0&&c,C;t[0]===l?C=t[1]:(C=l===void 0?[]:l,t[0]=l,t[1]=C);let w=C,T=d===void 0||d,E=f===void 0?.3:f,D=m===void 0?4:m,{data:O,innerHeight:k,hoveredBarIndex:A,lines:j,orientation:M,stacked:N,animationDuration:P,enterTransition:F,revealEpoch:I}=H(),L=I===void 0?0:I,{hoveredIndex:R}=oe(),z=(0,Q.useId)(),B=M===`horizontal`||N,ee;if(t[2]!==n||t[3]!==j){let e;t[5]===n?e=t[6]:(e=e=>e.dataKey===n,t[5]=n,t[6]=e),ee=j.findIndex(e),t[2]=n,t[3]=j,t[4]=ee}else ee=t[4];let V=Math.max(0,ee),te=j[V],U=re(r??te?.yAxisId),W=R!==null&&R!==V,G=j.length,ie;t[7]!==g||t[8]!==D||t[9]!==G?(ie=yt(g,G,D),t[7]=g,t[8]=D,t[9]=G,t[10]=ie):ie=t[10];let{barWidth:K,gap:q}=ie,J=(P||1100)*.4,Y=p??(O.length>1?J/1e3/O.length:0),ae;t[11]!==k||t[12]!==U?(ae=U(0)??k,t[11]=k,t[12]=U,t[13]=ae):ae=t[13];let se=ae,ce;t[14]!==v||t[15]!==w?(ce=w.length>=2?w:[{offset:0,color:v},{offset:100,color:v}],t[14]=v,t[15]=w,t[16]=ce):ce=t[16];let le=ce;if(B)return null;let ue=`bar-squares-${z}`,de;if(t[17]!==T||t[18]!==P||t[19]!==h||t[20]!==_||t[21]!==se||t[22]!==Y||t[23]!==O||t[24]!==n||t[25]!==q||t[26]!==F||t[27]!==E||t[28]!==v||t[29]!==A||t[30]!==W||t[31]!==u||t[32]!==L||t[33]!==V||t[34]!==x||t[35]!==y||t[36]!==b||t[37]!==K||t[38]!==le||t[39]!==S||t[40]!==U){let e;t[42]!==T||t[43]!==P||t[44]!==h||t[45]!==_||t[46]!==se||t[47]!==Y||t[48]!==n||t[49]!==q||t[50]!==F||t[51]!==E||t[52]!==v||t[53]!==A||t[54]!==W||t[55]!==u||t[56]!==L||t[57]!==V||t[58]!==x||t[59]!==y||t[60]!==b||t[61]!==K||t[62]!==le||t[63]!==S||t[64]!==U?(e=(e,t)=>{let r=e[n];if(typeof r!=`number`||r<=0)return null;let i=_(e),a=(h(i)??0)+V*(K+q),o=U(r)??0,s=se-o;return/* @__PURE__ */ (0,$.jsx)(cn,{animate:T,animationDuration:P||1100,barLengthPx:s,baselineY:se,enterTransition:F,fadedOpacity:E,fill:v,gradientStops:le,index:t,isFaded:A!==null&&A!==t||W,patternPreset:u,revealEpoch:L,squareFit:x,squareGap:y,squareRadius:b,squareSize:K,staggerDelay:Y,useGradient:S,x:a},`bar-squares-${n}-${i}`)},t[42]=T,t[43]=P,t[44]=h,t[45]=_,t[46]=se,t[47]=Y,t[48]=n,t[49]=q,t[50]=F,t[51]=E,t[52]=v,t[53]=A,t[54]=W,t[55]=u,t[56]=L,t[57]=V,t[58]=x,t[59]=y,t[60]=b,t[61]=K,t[62]=le,t[63]=S,t[64]=U,t[65]=e):e=t[65],de=O.map(e),t[17]=T,t[18]=P,t[19]=h,t[20]=_,t[21]=se,t[22]=Y,t[23]=O,t[24]=n,t[25]=q,t[26]=F,t[27]=E,t[28]=v,t[29]=A,t[30]=W,t[31]=u,t[32]=L,t[33]=V,t[34]=x,t[35]=y,t[36]=b,t[37]=K,t[38]=le,t[39]=S,t[40]=U,t[41]=de}else de=t[41];let fe;return t[66]!==ue||t[67]!==de?(fe=/* @__PURE__ */ (0,$.jsx)(`g`,{className:ue,children:de}),t[66]=ue,t[67]=de,t[68]=fe):fe=t[68],fe});function dn(e){let t=(0,Z.c)(5),{barScale:n,bandWidth:r,barXAccessor:i}=U();if(!(n&&r&&i))return console.warn(`BarSquares must be used within a BarChart`),null;let a;return t[0]!==r||t[1]!==n||t[2]!==i||t[3]!==e?(a=/* @__PURE__ */ (0,$.jsx)(un,{...e,bandWidth:r,barScale:n,barXAccessor:i}),t[0]=r,t[1]=n,t[2]=i,t[3]=e,t[4]=a):a=t[4],a}dn.displayName=`BarSquares`;const fn=(0,Q.memo)(function(e){let t=(0,Z.c)(37),{fill:n,opacity:r,squareGap:i,squareRadius:a,squareFit:o,groupGap:s,staggerDelay:c,barScale:l,bandWidth:u,barXAccessor:d}=e,f=n===void 0?ne.grid:n,p=r===void 0?.3:r,m=i===void 0?3:i,h=a===void 0?.25:a,g=o!==void 0&&o,_=s===void 0?4:s,{data:v,lines:y,orientation:b,stacked:x,hoveredBarIndex:S,animationDuration:C,enterTransition:w,revealEpoch:T}=H(),E=T===void 0?0:T,D=(0,Q.useId)(),O=b===`horizontal`||x,k=y.length,A;t[0]!==u||t[1]!==_||t[2]!==k?(A=yt(u,k,_),t[0]=u,t[1]=_,t[2]=k,t[3]=A):A=t[3];let{barWidth:j,gap:M}=A,N=(C||1100)*.4,P=c??(v.length>1?N/1e3/v.length:0);if(O)return null;let F=j*h,I=S===null?p:0,L=`bar-column-track-${D}`,R;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(R={transition:`opacity 0.15s ease-in-out`},t[4]=R):R=t[4];let z;if(t[5]!==l||t[6]!==d||t[7]!==P||t[8]!==v||t[9]!==M||t[10]!==I||t[11]!==w||t[12]!==f||t[13]!==y||t[14]!==E||t[15]!==F||t[16]!==g||t[17]!==m||t[18]!==j){let e;t[20]!==l||t[21]!==d||t[22]!==P||t[23]!==M||t[24]!==I||t[25]!==w||t[26]!==f||t[27]!==y||t[28]!==E||t[29]!==F||t[30]!==g||t[31]!==m||t[32]!==j?(e=(e,t)=>{let n=d(e),r=l(n)??0;return y.map((n,i)=>/* @__PURE__ */ (0,$.jsx)(pn,{animate:!0,bandPos:r,d:e,dataKey:n.dataKey,effectiveGroupGap:M,effectiveOpacity:I,enterTransition:w,fill:f,index:t,revealEpoch:E,rx:F,seriesIndex:i,squareFit:g,squareGap:m,squareSize:j,staggerDelay:P,yAxisId:n.yAxisId},`track-${t}-${n.dataKey}`))},t[20]=l,t[21]=d,t[22]=P,t[23]=M,t[24]=I,t[25]=w,t[26]=f,t[27]=y,t[28]=E,t[29]=F,t[30]=g,t[31]=m,t[32]=j,t[33]=e):e=t[33],z=v.map(e),t[5]=l,t[6]=d,t[7]=P,t[8]=v,t[9]=M,t[10]=I,t[11]=w,t[12]=f,t[13]=y,t[14]=E,t[15]=F,t[16]=g,t[17]=m,t[18]=j,t[19]=z}else z=t[19];let B;return t[34]!==z||t[35]!==L?(B=/* @__PURE__ */ (0,$.jsx)(`g`,{className:L,style:R,children:z}),t[34]=z,t[35]=L,t[36]=B):B=t[36],B});function pn(e){let t=(0,Z.c)(45),{d:n,dataKey:r,yAxisId:i,bandPos:a,seriesIndex:o,effectiveGroupGap:s,squareSize:c,squareGap:l,squareFit:u,fill:d,rx:f,effectiveOpacity:p,index:m,staggerDelay:h,animate:g,enterTransition:_,revealEpoch:v}=e,{innerHeight:y,animationDuration:b}=H(),x=re(i),S=n[r];if(typeof S!=`number`||S<=0)return null;let C;t[0]!==y||t[1]!==x?(C=x(0)??y,t[0]=y,t[1]=x,t[2]=C):C=t[2];let w=C,T;t[3]!==S||t[4]!==x?(T=x(S)??0,t[3]=S,t[4]=x,t[5]=T):T=t[5];let E=w-T,D,k,A,j;if(t[6]!==g||t[7]!==a||t[8]!==E||t[9]!==w||t[10]!==b||t[11]!==s||t[12]!==_||t[13]!==m||t[14]!==o||t[15]!==u||t[16]!==l||t[17]!==c||t[18]!==h){k=Symbol.for(`react.early_return_sentinel`);bb0:{let e=qt({barLengthPx:E,squareSize:c,gap:l,fit:u}),t=w-e.columnHeight;if(A=Math.max(0,t),A<=0&&!g){k=null;break bb0}j=a+o*(c+s),D=sn(_,b||1100,m,h,e.count)}t[6]=g,t[7]=a,t[8]=E,t[9]=w,t[10]=b,t[11]=s,t[12]=_,t[13]=m,t[14]=o,t[15]=u,t[16]=l,t[17]=c,t[18]=h,t[19]=D,t[20]=k,t[21]=A,t[22]=j}else D=t[19],k=t[20],A=t[21],j=t[22];if(k!==Symbol.for(`react.early_return_sentinel`))return k;let M=D,N=A>0?A:0;if(g){let e;t[23]===N?e=t[24]:(e={height:N,y:0},t[23]=N,t[24]=e);let n;t[25]===w?n=t[26]:(n={height:w,y:0},t[25]=w,t[26]=n);let r=`track-${m}-${o}-${v}`,i;return t[27]!==N||t[28]!==p||t[29]!==M||t[30]!==d||t[31]!==f||t[32]!==c||t[33]!==e||t[34]!==n||t[35]!==r||t[36]!==j?(i=/* @__PURE__ */ (0,$.jsx)(O.rect,{animate:e,fill:d,height:N,initial:n,opacity:p,rx:f,ry:f,transition:M,width:c,x:j},r),t[27]=N,t[28]=p,t[29]=M,t[30]=d,t[31]=f,t[32]=c,t[33]=e,t[34]=n,t[35]=r,t[36]=j,t[37]=i):i=t[37],i}if(A<=0)return null;let P;return t[38]!==p||t[39]!==d||t[40]!==f||t[41]!==c||t[42]!==A||t[43]!==j?(P=/* @__PURE__ */ (0,$.jsx)(`rect`,{fill:d,height:A,opacity:p,rx:f,ry:f,width:c,x:j,y:0}),t[38]=p,t[39]=d,t[40]=f,t[41]=c,t[42]=A,t[43]=j,t[44]=P):P=t[44],P}function mn(e){let t=(0,Z.c)(5),{barScale:n,bandWidth:r,barXAccessor:i}=U();if(!(n&&r&&i))return console.warn(`BarColumnTrack must be used within a BarChart`),null;let a;return t[0]!==r||t[1]!==n||t[2]!==i||t[3]!==e?(a=/* @__PURE__ */ (0,$.jsx)(fn,{...e,bandWidth:r,barScale:n,barXAccessor:i}),t[0]=r,t[1]=n,t[2]=i,t[3]=e,t[4]=a):a=t[4],a}mn.displayName=`BarColumnTrack`;var hn=/* @__PURE__ */ e(A(),1);function gn(e){let t=(0,Z.c)(13),{label:n,x:r,crosshairX:i,isHovering:a,tickerHalfWidth:o}=e,s=o+20,c=1;if(a&&i!==null){let e=Math.abs(r-i);e<o?c=0:e<s&&(c=(e-o)/20)}let l;t[0]===r?l=t[1]:(l={left:r,bottom:12,width:0,display:`flex`,justifyContent:`center`},t[0]=r,t[1]=l);let u;t[2]===c?u=t[3]:(u={opacity:c},t[2]=c,t[3]=u);let d,f,p;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(d=w(`pui-text-body-small-alt whitespace-nowrap text-chart-label`),f={opacity:1},p={duration:.4,ease:`easeInOut`},t[4]=d,t[5]=f,t[6]=p):(d=t[4],f=t[5],p=t[6]);let m;t[7]!==n||t[8]!==u?(m=/* @__PURE__ */ (0,$.jsx)(O.span,{animate:u,className:d,initial:f,transition:p,children:n}),t[7]=n,t[8]=u,t[9]=m):m=t[9];let h;return t[10]!==l||t[11]!==m?(h=/* @__PURE__ */ (0,$.jsx)(`div`,{className:`absolute`,style:l,children:m}),t[10]=l,t[11]=m,t[12]=h):h=t[12],h}function _n(e){let{containerRef:t,barScale:n}=U(),[r,i]=(0,Q.useState)(!1);(0,Q.useEffect)(()=>{i(!0)},[]);let a=t.current;return!(r&&a)||!n?null:/* @__PURE__ */ (0,$.jsx)(vn,{...e,container:a})}const vn=(0,Q.memo)(function(e){let t=(0,Z.c)(30),{tickerHalfWidth:n,showAllLabels:r,maxLabels:i,container:a}=e,o=n===void 0?50:n,s=r!==void 0&&r,{margin:c,tooltipData:l,barScale:u,bandWidth:d,barXAccessor:f,data:p,innerWidth:m,density:h}=H(),g,_,v;if(t[0]!==d||t[1]!==u||t[2]!==f||t[3]!==p||t[4]!==h||t[5]!==m||t[6]!==c||t[7]!==i||t[8]!==s||t[9]!==o||t[10]!==l){let e=pe(h,`x`,i),n;bb0:{if(!(u&&d&&f)){n=[];break bb0}let r;t[14]!==d||t[15]!==u||t[16]!==f||t[17]!==c?(r=e=>{let t=f(e);return{label:t,x:(u(t)??0)+d/2+c.left}},t[14]=d,t[15]=u,t[16]=f,t[17]=c,t[18]=r):r=t[18];let i=p.map(r);if(s){n=i;break bb0}let a=rt(it(i.map(yn)));n=at({length:i.length,availablePx:m,requestedMax:e,resolveXPx:e=>{let t=i[e];return t?t.x-c.left:0},slotPx:a}).flatMap(e=>{let t=i[e];return t?[t]:[]})}let r=n,a=l!==null,y=l?l.x+c.left:null;v=hn.createPortal,g=`pointer-events-none absolute inset-0`;let b;t[19]!==y||t[20]!==a||t[21]!==o?(b=e=>/* @__PURE__ */ (0,$.jsx)(gn,{crosshairX:y,isHovering:a,label:e.label,tickerHalfWidth:o,x:e.x},`${e.label}-${e.x}`),t[19]=y,t[20]=a,t[21]=o,t[22]=b):b=t[22],_=r.map(b),t[0]=d,t[1]=u,t[2]=f,t[3]=p,t[4]=h,t[5]=m,t[6]=c,t[7]=i,t[8]=s,t[9]=o,t[10]=l,t[11]=g,t[12]=_,t[13]=v}else g=t[11],_=t[12],v=t[13];let y;t[23]!==g||t[24]!==_?(y=/* @__PURE__ */ (0,$.jsx)(`div`,{className:g,children:_}),t[23]=g,t[24]=_,t[25]=y):y=t[25];let b;return t[26]!==a||t[27]!==v||t[28]!==y?(b=v(y,a),t[26]=a,t[27]=v,t[28]=y,t[29]=b):b=t[29],b});_n.displayName=`BarXAxis`;function yn(e){return e.label}const bn={1:`truncate whitespace-nowrap`,2:`line-clamp-2 whitespace-normal break-words`,3:`line-clamp-3 whitespace-normal break-words`};function xn(e){let t=(0,Z.c)(38),{label:n,y:r,bandHeight:i,isHovered:a,maxWidth:o,gap:s,align:c,labelClassName:l,maxLines:u}=e,d=c===`start`,f=(0,Q.useRef)(null),[p,m]=(0,Q.useState)(!1),h;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(h=()=>{let e=f.current;return e!=null&&(e.scrollWidth-e.clientWidth>1||e.scrollHeight-e.clientHeight>1)},t[0]=h):h=t[0];let g=h,_=d?`left-0 justify-start`:`right-0 justify-end`,v=!d&&s==null&&`pr-2`,y;t[1]!==_||t[2]!==v?(y=w(`absolute flex items-center`,_,v),t[1]=_,t[2]=v,t[3]=y):y=t[3];let b=d?o:void 0,x=d||s==null?void 0:s,S;t[4]!==i||t[5]!==b||t[6]!==x||t[7]!==r?(S={top:r,height:i,width:b,paddingRight:x},t[4]=i,t[5]=b,t[6]=x,t[7]=r,t[8]=S):S=t[8];let C;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(C=e=>m(e&&g()),t[9]=C):C=t[9];let k;t[10]!==a||t[11]!==l?(k=l?{opacity:1}:{opacity:a?1:.7,color:a?`var(--chart-foreground)`:`var(--chart-label, var(--color-text-soft))`},t[10]=a,t[11]=l,t[12]=k):k=t[12];let A=l??`pui-text-body-small-alt`,j=bn[u],M=d?`text-left`:`text-right`,N;t[13]!==A||t[14]!==j||t[15]!==M?(N=w(A,j,`pointer-events-auto`,M),t[13]=A,t[14]=j,t[15]=M,t[16]=N):N=t[16];let P;t[17]===l?P=t[18]:(P=l?{opacity:1}:{opacity:.7,color:`var(--chart-label, var(--color-text-soft))`},t[17]=l,t[18]=P);let F;t[19]===o?F=t[20]:(F={maxWidth:o},t[19]=o,t[20]=F);let I;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(I={duration:.15},t[21]=I):I=t[21];let L;t[22]!==n||t[23]!==N||t[24]!==P||t[25]!==F||t[26]!==k?(L=/* @__PURE__ */ (0,$.jsx)(T,{asChild:!0,children:/* @__PURE__ */ (0,$.jsx)(O.span,{animate:k,className:N,initial:P,ref:f,style:F,transition:I,children:n})}),t[22]=n,t[23]=N,t[24]=P,t[25]=F,t[26]=k,t[27]=L):L=t[27];let R;t[28]===n?R=t[29]:(R=/* @__PURE__ */ (0,$.jsx)(D,{className:`max-w-xs whitespace-normal`,side:`top`,children:n}),t[28]=n,t[29]=R);let z;t[30]!==L||t[31]!==R||t[32]!==p?(z=/* @__PURE__ */ (0,$.jsxs)(E,{onOpenChange:C,open:p,children:[L,R]}),t[30]=L,t[31]=R,t[32]=p,t[33]=z):z=t[33];let B;return t[34]!==z||t[35]!==y||t[36]!==S?(B=/* @__PURE__ */ (0,$.jsx)(`div`,{className:y,style:S,children:z}),t[34]=z,t[35]=y,t[36]=S,t[37]=B):B=t[37],B}function Sn(e){let{containerRef:t,barScale:n}=U(),[r,i]=(0,Q.useState)(!1);(0,Q.useEffect)(()=>{i(!0)},[]);let a=t.current;return!(r&&a)||!n?null:/* @__PURE__ */ (0,$.jsx)(Cn,{...e,container:a})}const Cn=(0,Q.memo)(function(e){let t=(0,Z.c)(42),{showAllLabels:n,maxLabels:r,labelMaxWidth:i,labelGap:a,align:o,labelClassName:s,maxLines:c,container:l}=e,u=i===void 0?70:i,d=o===void 0?`end`:o,f=c===void 0?1:c,{margin:p,barScale:m,bandWidth:h,barXAccessor:g,data:_,hoveredBarIndex:v,innerHeight:y,density:b}=H(),x,S,C,w;if(t[0]!==d||t[1]!==h||t[2]!==m||t[3]!==g||t[4]!==_||t[5]!==b||t[6]!==v||t[7]!==y||t[8]!==s||t[9]!==a||t[10]!==u||t[11]!==p.left||t[12]!==p.top||t[13]!==r||t[14]!==f||t[15]!==n){let e=pe(b,`y`,r),i=n??(b==null||b===`large`),o;bb0:{if(!(m&&h&&g)){o=[];break bb0}let n;t[20]!==h||t[21]!==m||t[22]!==g||t[23]!==p.top?(n=(e,t)=>{let n=g(e);return{label:n,y:(m(n)??0)+p.top,bandHeight:h,index:t}},t[20]=h,t[21]=m,t[22]=g,t[23]=p.top,t[24]=n):n=t[24];let r=_.map(n);if(i){o=r;break bb0}o=at({length:r.length,availablePx:y,requestedMax:e,resolveXPx:e=>{let t=r[e];return t?t.y-p.top:0},slotPx:20}).flatMap(e=>{let t=r[e];return t?[t]:[]})}let c=o;w=hn.createPortal,x=`pointer-events-none absolute top-0 bottom-0`,t[25]===p.left?S=t[26]:(S={left:0,width:p.left},t[25]=p.left,t[26]=S);let l;t[27]!==d||t[28]!==v||t[29]!==s||t[30]!==a||t[31]!==u||t[32]!==f?(l=e=>/* @__PURE__ */ (0,$.jsx)(xn,{align:d,bandHeight:e.bandHeight,gap:a,isHovered:v===e.index,label:e.label,labelClassName:s,maxLines:f,maxWidth:u,y:e.y},`${e.label}-${e.y}`),t[27]=d,t[28]=v,t[29]=s,t[30]=a,t[31]=u,t[32]=f,t[33]=l):l=t[33],C=c.map(l),t[0]=d,t[1]=h,t[2]=m,t[3]=g,t[4]=_,t[5]=b,t[6]=v,t[7]=y,t[8]=s,t[9]=a,t[10]=u,t[11]=p.left,t[12]=p.top,t[13]=r,t[14]=f,t[15]=n,t[16]=x,t[17]=S,t[18]=C,t[19]=w}else x=t[16],S=t[17],C=t[18],w=t[19];let T;t[34]!==x||t[35]!==S||t[36]!==C?(T=/* @__PURE__ */ (0,$.jsx)(`div`,{className:x,style:S,children:C}),t[34]=x,t[35]=S,t[36]=C,t[37]=T):T=t[37];let E;return t[38]!==l||t[39]!==w||t[40]!==T?(E=w(T,l),t[38]=l,t[39]=w,t[40]=T,t[41]=E):E=t[41],E});Sn.displayName=`BarYAxis`;export{gt as Background,Gt as Bar,$t as BarChart,rn as BarChartLoading,mn as BarColumnTrack,en as BarDatumMarker,a as BarLoadingSkeleton,tn as BarReferenceLine,dn as BarSquares,_n as BarXAxis,Sn as BarYAxis,Me as CHART_CLIP_PASSTHROUGH,_e as CHART_DENSITY,X as CHART_DENSITY_IDS,ae as ChartConfigProvider,se as ChartLegendHoverProvider,xe as ChartLoadingLabel,u as ChartMarkers,G as ChartProvider,l as ChartRevealClip,Ct as ChartTooltip,N as DEFAULT_ANIMATION_DURATION_MS,j as DEFAULT_ANIMATION_EASING,J as DEFAULT_CHART_CONFIG,ge as DEFAULT_CHART_DENSITY,M as DEFAULT_CHART_ENTER_TRANSITION,we as DEFAULT_CHART_LIFECYCLE,be as DEFAULT_CHART_STATUS,V as DEFAULT_Y_AXIS_ID,Se as DEFAULT_Y_DOMAIN_TWEEN_MS,_t as DateTicker,L as Grid,b as LineLoadingSweep,g as MarkerGroup,i as MarkerTooltipContent,ht as PATTERN_PRESET_IDS,r as PatternArea,ft as PatternCircles,mt as PatternHexagons,ct as PatternLines,ut as PatternWaves,ie as ProjectionLine,K as ProjectionLineEndMarker,wt as ReferenceArea,ue as SeriesMarkers,p as SeriesPoint,le as SeriesPointMarker,_ as SeriesTag,Ce as ShimmeringText,s as StaticChartPreviewProvider,Tt as TooltipBox,Et as TooltipContent,vt as TooltipDot,xt as TooltipIndicator,ot as XAxis,jt as YAxis,kt as Y_AXIS_DEFAULT_TICK_COUNT,At as Y_AXIS_MAX_TICK_COUNT,Ot as Y_AXIS_MIN_TICK_COUNT,Re as buildHorizontalTangentBezierPath,Ge as buildProjectionPath,ne as chartCssVars,We as clampHoverIndexToMaxTime,ze as clampPixelXToProjectionHoverMax,Fe as computeProjectionAnchorTangentSlope,qt as computeSquareColumn,Qe as computeYDomainsByAxis,W as defaultScatterColors,He as extractProjectionLineConfigs,f as generateChartSkeletonData,R as getPrimaryYScale,ce as getSeriesMarkerVisualExtent,n as getSkeletonHeights,bt as indicatorFadeGradientStops,ye as isChartInteractionPhase,dt as isCirclePattern,pt as isCirclesPattern,Ye as isLoadingChromePhase,$e as isYDomainTweenPhase,it as measureMaxLabelWidthPx,Le as mergeProjectionXDomainMax,Ne as mergeProjectionYDomain,Ke as mergeYDomainRecords,Xe as niceYDomain,lt as patternPresetTileSize,Ie as projectionDateExtents,Be as projectionHoverMaxBySeries,Ue as projectionHoverMaxTime,Pe as projectionPinnedOverlayX,Ve as projectionValueExtents,st as renderPatternPreset,me as resolveChartMargin,pe as resolveDensityMaxLabels,he as resolveDensityTickCount,ve as resolveRestingChartPhase,Y as resolveTooltipBoxMotion,St as resolveVerticalFadeSides,nt as resolveYAxisMarginPx,Dt as resolveYAxisTickCount,Je as shouldTweenYDomain,Jt as topSquareCenterY,m as useActiveMarkers,v as useAnimatedYDomains,H as useChart,q as useChartConfig,te as useChartHover,o as useChartInteraction,oe as useChartLegendHover,U as useChartStable,h as useSeriesPoint,c as useStaticChartPreview,re as useYScale};